Skip to content

Commit c2b0b44

Browse files
committed
Improve classNames JS helper example
1 parent 308e8c3 commit c2b0b44

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+156
-114
lines changed

mkdocs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ nav:
131131
- Spacing: 'docs/css-helpers/spacing.md'
132132
- Typography: 'docs/css-helpers/typography.md'
133133
- JS Helpers:
134-
- ClassNames: 'jsHelpers/classNames/README.md'
135-
- TransferProps: 'jsHelpers/transferProps/README.md'
134+
- ClassNames: 'helpers/classNames/README.md'
135+
- TransferProps: 'helpers/transferProps/README.md'
136136
- Guides:
137137
- Customize:
138138
- Theming:

src/components/Alert/Alert.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import PropTypes from 'prop-types';
22
import React, { useContext } from 'react';
33
import { withGlobalProps } from '../../providers/globalProps';
44
import { TranslationsContext } from '../../providers/translations';
5-
import { classNames } from '../../jsHelpers/classNames/classNames';
6-
import { transferProps } from '../../jsHelpers/transferProps/transferProps';
5+
import { classNames } from '../../helpers/classNames/classNames';
6+
import { transferProps } from '../../helpers/transferProps';
77
import { getRootColorClassName } from '../_helpers/getRootColorClassName';
88
import styles from './Alert.module.scss';
99

src/components/Badge/Badge.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import PropTypes from 'prop-types';
22
import React from 'react';
33
import { withGlobalProps } from '../../providers/globalProps';
4-
import { classNames } from '../../jsHelpers/classNames/classNames';
5-
import { transferProps } from '../../jsHelpers/transferProps/transferProps';
4+
import { classNames } from '../../helpers/classNames/classNames';
5+
import { transferProps } from '../../helpers/transferProps';
66
import { getRootColorClassName } from '../_helpers/getRootColorClassName';
77
import { getRootPriorityClassName } from '../_helpers/getRootPriorityClassName';
88
import styles from './Badge.module.scss';

src/components/Button/Button.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import PropTypes from 'prop-types';
22
import React, { useContext } from 'react';
33
import { withGlobalProps } from '../../providers/globalProps';
4-
import { classNames } from '../../jsHelpers/classNames/classNames';
5-
import { transferProps } from '../../jsHelpers/transferProps/transferProps';
4+
import { classNames } from '../../helpers/classNames/classNames';
5+
import { transferProps } from '../../helpers/transferProps';
66
import { getRootColorClassName } from '../_helpers/getRootColorClassName';
77
import { getRootPriorityClassName } from '../_helpers/getRootPriorityClassName';
88
import { getRootSizeClassName } from '../_helpers/getRootSizeClassName';

src/components/ButtonGroup/ButtonGroup.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import React, {
33
useMemo,
44
} from 'react';
55
import { withGlobalProps } from '../../providers/globalProps';
6-
import { classNames } from '../../jsHelpers/classNames/classNames';
7-
import { transferProps } from '../../jsHelpers/transferProps/transferProps';
6+
import { classNames } from '../../helpers/classNames/classNames';
7+
import { transferProps } from '../../helpers/transferProps';
88
import { getRootPriorityClassName } from '../_helpers/getRootPriorityClassName';
99
import { isChildrenEmpty } from '../_helpers/isChildrenEmpty';
1010
import styles from './ButtonGroup.module.scss';

src/components/Card/Card.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import PropTypes from 'prop-types';
22
import React from 'react';
33
import { withGlobalProps } from '../../providers/globalProps';
4-
import { classNames } from '../../jsHelpers/classNames/classNames';
5-
import { transferProps } from '../../jsHelpers/transferProps/transferProps';
4+
import { classNames } from '../../helpers/classNames/classNames';
5+
import { transferProps } from '../../helpers/transferProps';
66
import { getRootColorClassName } from '../_helpers/getRootColorClassName';
77
import styles from './Card.module.scss';
88

src/components/Card/CardBody.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import PropTypes from 'prop-types';
22
import React from 'react';
33
import { withGlobalProps } from '../../providers/globalProps';
4-
import { transferProps } from '../../jsHelpers/transferProps/transferProps';
4+
import { transferProps } from '../../helpers/transferProps';
55
import styles from './Card.module.scss';
66

77
export const CardBody = ({

src/components/Card/CardFooter.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import PropTypes from 'prop-types';
22
import React from 'react';
3-
import { transferProps } from '../../jsHelpers/transferProps/transferProps';
3+
import { transferProps } from '../../helpers/transferProps';
44
import { withGlobalProps } from '../../providers/globalProps';
55
import { isChildrenEmpty } from '../_helpers/isChildrenEmpty';
66
import styles from './Card.module.scss';

src/components/CheckboxField/CheckboxField.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import PropTypes from 'prop-types';
22
import React, { useContext } from 'react';
33
import { withGlobalProps } from '../../providers/globalProps';
4-
import { classNames } from '../../jsHelpers/classNames/classNames';
5-
import { transferProps } from '../../jsHelpers/transferProps/transferProps';
4+
import { classNames } from '../../helpers/classNames/classNames';
5+
import { transferProps } from '../../helpers/transferProps';
66
import { getRootValidationStateClassName } from '../_helpers/getRootValidationStateClassName';
77
import { FormLayoutContext } from '../FormLayout';
88
import styles from './CheckboxField.module.scss';

src/components/FileInputField/FileInputField.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import PropTypes from 'prop-types';
22
import React, { useContext } from 'react';
33
import { withGlobalProps } from '../../providers/globalProps';
4-
import { classNames } from '../../jsHelpers/classNames/classNames';
5-
import { transferProps } from '../../jsHelpers/transferProps/transferProps';
4+
import { classNames } from '../../helpers/classNames/classNames';
5+
import { transferProps } from '../../helpers/transferProps';
66
import { getRootValidationStateClassName } from '../_helpers/getRootValidationStateClassName';
77
import { resolveContextOrProp } from '../_helpers/resolveContextOrProp';
88
import { FormLayoutContext } from '../FormLayout';

0 commit comments

Comments
 (0)