@hh.ru/magritte-ui-switch 2.0.29 → 2.0.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{Skeleton-DCoEB2Lv.js → Skeleton-C4dU1eeK.js} +2 -2
- package/{Skeleton-DCoEB2Lv.js.map → Skeleton-C4dU1eeK.js.map} +1 -1
- package/Skeleton.js +1 -1
- package/Switch.js +1 -1
- package/index.css +606 -606
- package/index.js +1 -1
- package/package.json +6 -6
|
@@ -2,11 +2,11 @@ import './index.css';
|
|
|
2
2
|
import { jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { Skeleton } from '@hh.ru/magritte-ui-skeleton';
|
|
4
4
|
|
|
5
|
-
var styles = {"switch":"magritte-switch___0AZYC_2-0-
|
|
5
|
+
var styles = {"switch":"magritte-switch___0AZYC_2-0-30","slider":"magritte-slider___YN62u_2-0-30","checked":"magritte-checked___QEAn5_2-0-30","switch-skeleton":"magritte-switch-skeleton___g1MEY_2-0-30","switchSkeleton":"magritte-switch-skeleton___g1MEY_2-0-30"};
|
|
6
6
|
|
|
7
7
|
const SwitchSkeleton = ({ Component: Switch,
|
|
8
8
|
// skeleton props
|
|
9
9
|
width, height, borderRadius, inline, additionalClass, loading, ...switchProps }) => (jsx(Skeleton, { loading: loading, additionalClass: styles.switchSkeleton, inline: true, children: jsx(Switch, { ...switchProps }) }));
|
|
10
10
|
|
|
11
11
|
export { SwitchSkeleton as S, styles as s };
|
|
12
|
-
//# sourceMappingURL=Skeleton-
|
|
12
|
+
//# sourceMappingURL=Skeleton-C4dU1eeK.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Skeleton-
|
|
1
|
+
{"version":3,"file":"Skeleton-C4dU1eeK.js","sources":["../src/Skeleton.tsx"],"sourcesContent":["import { IncompleteSkeletonComponent, Skeleton } from '@hh.ru/magritte-ui-skeleton';\nimport { SwitchProps } from '@hh.ru/magritte-ui-switch/types';\n\nimport styles from './switch.less';\n\nexport const SwitchSkeleton: IncompleteSkeletonComponent<SwitchProps> = ({\n Component: Switch,\n\n // skeleton props\n width,\n height,\n borderRadius,\n inline,\n additionalClass,\n loading,\n\n ...switchProps\n}) => (\n <Skeleton loading={loading} additionalClass={styles.switchSkeleton} inline>\n <Switch {...switchProps} />\n </Skeleton>\n);\n"],"names":["_jsx"],"mappings":";;;;;MAKa,cAAc,GAA6C,CAAC,EACrE,SAAS,EAAE,MAAM;AAEjB;AACA,KAAK,EACL,MAAM,EACN,YAAY,EACZ,MAAM,EACN,eAAe,EACf,OAAO,EAEP,GAAG,WAAW,EACjB,MACGA,GAAC,CAAA,QAAQ,EAAC,EAAA,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,EAAA,IAAA,EAAA,QAAA,EACtEA,IAAC,MAAM,EAAA,EAAA,GAAK,WAAW,EAAI,CAAA,EAAA,CACpB;;;;"}
|
package/Skeleton.js
CHANGED
package/Switch.js
CHANGED
|
@@ -4,7 +4,7 @@ import classnames from 'classnames';
|
|
|
4
4
|
import { useDisabled } from '@hh.ru/magritte-common-use-disabled';
|
|
5
5
|
import { LockClosedFilledSize16 } from '@hh.ru/magritte-ui-icon/icon';
|
|
6
6
|
import { enrichWithSkeleton } from '@hh.ru/magritte-ui-skeleton';
|
|
7
|
-
import { S as SwitchSkeleton, s as styles } from './Skeleton-
|
|
7
|
+
import { S as SwitchSkeleton, s as styles } from './Skeleton-C4dU1eeK.js';
|
|
8
8
|
|
|
9
9
|
const SwitchComponent = ({ onClick, 'aria-label': ariaLabel, disabled = false, checked = false, ...props }) => {
|
|
10
10
|
const forceDisabled = useDisabled();
|