@hh.ru/magritte-ui-switch 2.0.63 → 3.0.1
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-DCUlf9qo.js → Skeleton-D3iHK4YX.js} +2 -2
- package/{Skeleton-DCUlf9qo.js.map → Skeleton-D3iHK4YX.js.map} +1 -1
- package/Skeleton.js +1 -1
- package/Switch.js +1 -1
- package/index.css +101 -79
- package/index.d.ts +0 -1
- package/index.js +1 -2
- package/index.js.map +1 -1
- package/package.json +6 -7
|
@@ -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-
|
|
5
|
+
var styles = {"switch":"magritte-switch___0AZYC_3-0-1","slider":"magritte-slider___YN62u_3-0-1","checked":"magritte-checked___QEAn5_3-0-1","switch-skeleton":"magritte-switch-skeleton___g1MEY_3-0-1","switchSkeleton":"magritte-switch-skeleton___g1MEY_3-0-1"};
|
|
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-D3iHK4YX.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Skeleton-
|
|
1
|
+
{"version":3,"file":"Skeleton-D3iHK4YX.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-D3iHK4YX.js';
|
|
8
8
|
|
|
9
9
|
const SwitchComponent = ({ onClick, 'aria-label': ariaLabel, disabled = false, checked = false, ...props }) => {
|
|
10
10
|
const forceDisabled = useDisabled();
|
package/index.css
CHANGED
|
@@ -1,133 +1,155 @@
|
|
|
1
1
|
:root{
|
|
2
|
-
--magritte-color-component-switch-stroke-state-focused-accessible-v22-
|
|
3
|
-
--magritte-color-component-switch-background-container-checked-v22-
|
|
4
|
-
--magritte-color-component-switch-background-container-unchecked-v22-
|
|
5
|
-
--magritte-color-component-switch-background-toggle-checked-v22-
|
|
6
|
-
--magritte-color-component-switch-background-toggle-unchecked-v22-
|
|
7
|
-
--magritte-color-component-switch-background-state-container-checked-hovered-v22-
|
|
8
|
-
--magritte-color-component-switch-background-state-container-checked-pressed-v22-
|
|
9
|
-
--magritte-color-component-switch-background-state-container-unchecked-hovered-v22-
|
|
10
|
-
--magritte-color-component-switch-background-state-container-unchecked-pressed-v22-
|
|
11
|
-
--magritte-color-component-switch-background-state-toggle-checked-pressed-v22-
|
|
12
|
-
--magritte-color-component-switch-background-state-toggle-unchecked-pressed-v22-
|
|
13
|
-
--magritte-color-component-switch-background-state-container-checked-disabled-v22-
|
|
14
|
-
--magritte-color-component-switch-background-state-container-unchecked-disabled-v22-
|
|
15
|
-
--magritte-color-component-switch-icon-state-toggle-checked-disabled-v22-
|
|
16
|
-
--magritte-color-component-switch-icon-state-toggle-unchecked-disabled-v22-
|
|
17
|
-
--magritte-shadow-level-1-color-v22-
|
|
18
|
-
--magritte-shadow-level-1-x-v22-
|
|
19
|
-
--magritte-shadow-level-1-y-v22-
|
|
20
|
-
--magritte-shadow-level-1-blur-v22-
|
|
21
|
-
--magritte-shadow-level-1-spread-v22-
|
|
2
|
+
--magritte-color-component-switch-stroke-state-focused-accessible-v22-1-0:#0070ff7a;
|
|
3
|
+
--magritte-color-component-switch-background-container-checked-v22-1-0:#0dc267;
|
|
4
|
+
--magritte-color-component-switch-background-container-unchecked-v22-1-0:#DCE3EB;
|
|
5
|
+
--magritte-color-component-switch-background-toggle-checked-v22-1-0:#ffffff;
|
|
6
|
+
--magritte-color-component-switch-background-toggle-unchecked-v22-1-0:#ffffff;
|
|
7
|
+
--magritte-color-component-switch-background-state-container-checked-hovered-v22-1-0:#5bcf83;
|
|
8
|
+
--magritte-color-component-switch-background-state-container-checked-pressed-v22-1-0:#5bcf83;
|
|
9
|
+
--magritte-color-component-switch-background-state-container-unchecked-hovered-v22-1-0:#CCD5DF;
|
|
10
|
+
--magritte-color-component-switch-background-state-container-unchecked-pressed-v22-1-0:#CCD5DF;
|
|
11
|
+
--magritte-color-component-switch-background-state-toggle-checked-pressed-v22-1-0:#ffffff;
|
|
12
|
+
--magritte-color-component-switch-background-state-toggle-unchecked-pressed-v22-1-0:#ffffff;
|
|
13
|
+
--magritte-color-component-switch-background-state-container-checked-disabled-v22-1-0:#0dc2677a;
|
|
14
|
+
--magritte-color-component-switch-background-state-container-unchecked-disabled-v22-1-0:#dce3eb7a;
|
|
15
|
+
--magritte-color-component-switch-icon-state-toggle-checked-disabled-v22-1-0:#0ea6587a;
|
|
16
|
+
--magritte-color-component-switch-icon-state-toggle-unchecked-disabled-v22-1-0:#7686947a;
|
|
17
|
+
--magritte-shadow-level-1-color-v22-1-0:#7090b029;
|
|
18
|
+
--magritte-shadow-level-1-x-v22-1-0:0px;
|
|
19
|
+
--magritte-shadow-level-1-y-v22-1-0:4px;
|
|
20
|
+
--magritte-shadow-level-1-blur-v22-1-0:12px;
|
|
21
|
+
--magritte-shadow-level-1-spread-v22-1-0:0px;
|
|
22
22
|
}
|
|
23
23
|
:root{
|
|
24
|
-
--magritte-semantic-animation-ease-in-out-leopard-300-timing-function-v22-
|
|
25
|
-
--magritte-semantic-animation-ease-in-out-leopard-300-duration-v22-
|
|
24
|
+
--magritte-semantic-animation-ease-in-out-leopard-300-timing-function-v22-1-0:cubic-bezier(0.35, 0.1, 0.1, 1);
|
|
25
|
+
--magritte-semantic-animation-ease-in-out-leopard-300-duration-v22-1-0:300ms;
|
|
26
26
|
}
|
|
27
27
|
.magritte-night-theme{
|
|
28
|
-
--magritte-color-component-switch-stroke-state-focused-accessible-v22-
|
|
29
|
-
--magritte-color-component-switch-background-container-checked-v22-
|
|
30
|
-
--magritte-color-component-switch-background-container-unchecked-v22-
|
|
31
|
-
--magritte-color-component-switch-background-toggle-checked-v22-
|
|
32
|
-
--magritte-color-component-switch-background-toggle-unchecked-v22-
|
|
33
|
-
--magritte-color-component-switch-background-state-container-checked-hovered-v22-
|
|
34
|
-
--magritte-color-component-switch-background-state-container-checked-pressed-v22-
|
|
35
|
-
--magritte-color-component-switch-background-state-container-unchecked-hovered-v22-
|
|
36
|
-
--magritte-color-component-switch-background-state-container-unchecked-pressed-v22-
|
|
37
|
-
--magritte-color-component-switch-background-state-toggle-checked-pressed-v22-
|
|
38
|
-
--magritte-color-component-switch-background-state-toggle-unchecked-pressed-v22-
|
|
39
|
-
--magritte-color-component-switch-background-state-container-checked-disabled-v22-
|
|
40
|
-
--magritte-color-component-switch-background-state-container-unchecked-disabled-v22-
|
|
41
|
-
--magritte-color-component-switch-icon-state-toggle-checked-disabled-v22-
|
|
42
|
-
--magritte-color-component-switch-icon-state-toggle-unchecked-disabled-v22-
|
|
43
|
-
--magritte-shadow-level-1-color-v22-
|
|
44
|
-
--magritte-shadow-level-1-x-v22-
|
|
45
|
-
--magritte-shadow-level-1-y-v22-
|
|
46
|
-
--magritte-shadow-level-1-blur-v22-
|
|
47
|
-
--magritte-shadow-level-1-spread-v22-
|
|
48
|
-
}
|
|
49
|
-
.magritte-
|
|
28
|
+
--magritte-color-component-switch-stroke-state-focused-accessible-v22-1-0:#0070ff7a;
|
|
29
|
+
--magritte-color-component-switch-background-container-checked-v22-1-0:#0dc267;
|
|
30
|
+
--magritte-color-component-switch-background-container-unchecked-v22-1-0:#303030;
|
|
31
|
+
--magritte-color-component-switch-background-toggle-checked-v22-1-0:#ffffff;
|
|
32
|
+
--magritte-color-component-switch-background-toggle-unchecked-v22-1-0:#ffffff;
|
|
33
|
+
--magritte-color-component-switch-background-state-container-checked-hovered-v22-1-0:#5bcf83;
|
|
34
|
+
--magritte-color-component-switch-background-state-container-checked-pressed-v22-1-0:#5bcf83;
|
|
35
|
+
--magritte-color-component-switch-background-state-container-unchecked-hovered-v22-1-0:#3B3B3B;
|
|
36
|
+
--magritte-color-component-switch-background-state-container-unchecked-pressed-v22-1-0:#3B3B3B;
|
|
37
|
+
--magritte-color-component-switch-background-state-toggle-checked-pressed-v22-1-0:#ffffff;
|
|
38
|
+
--magritte-color-component-switch-background-state-toggle-unchecked-pressed-v22-1-0:#ffffff;
|
|
39
|
+
--magritte-color-component-switch-background-state-container-checked-disabled-v22-1-0:#0dc2677a;
|
|
40
|
+
--magritte-color-component-switch-background-state-container-unchecked-disabled-v22-1-0:#3030307a;
|
|
41
|
+
--magritte-color-component-switch-icon-state-toggle-checked-disabled-v22-1-0:#0ea6587a;
|
|
42
|
+
--magritte-color-component-switch-icon-state-toggle-unchecked-disabled-v22-1-0:#7686947a;
|
|
43
|
+
--magritte-shadow-level-1-color-v22-1-0:#00000029;
|
|
44
|
+
--magritte-shadow-level-1-x-v22-1-0:0px;
|
|
45
|
+
--magritte-shadow-level-1-y-v22-1-0:4px;
|
|
46
|
+
--magritte-shadow-level-1-blur-v22-1-0:12px;
|
|
47
|
+
--magritte-shadow-level-1-spread-v22-1-0:0px;
|
|
48
|
+
}
|
|
49
|
+
.magritte-zp-day-theme{
|
|
50
|
+
--magritte-color-component-switch-stroke-state-focused-accessible-v22-1-0:#0070ff7a;
|
|
51
|
+
--magritte-color-component-switch-background-container-checked-v22-1-0:#0dc267;
|
|
52
|
+
--magritte-color-component-switch-background-container-unchecked-v22-1-0:#DCE3EB;
|
|
53
|
+
--magritte-color-component-switch-background-toggle-checked-v22-1-0:#ffffff;
|
|
54
|
+
--magritte-color-component-switch-background-toggle-unchecked-v22-1-0:#ffffff;
|
|
55
|
+
--magritte-color-component-switch-background-state-container-checked-hovered-v22-1-0:#5bcf83;
|
|
56
|
+
--magritte-color-component-switch-background-state-container-checked-pressed-v22-1-0:#5bcf83;
|
|
57
|
+
--magritte-color-component-switch-background-state-container-unchecked-hovered-v22-1-0:#CCD5DF;
|
|
58
|
+
--magritte-color-component-switch-background-state-container-unchecked-pressed-v22-1-0:#CCD5DF;
|
|
59
|
+
--magritte-color-component-switch-background-state-toggle-checked-pressed-v22-1-0:#ffffff;
|
|
60
|
+
--magritte-color-component-switch-background-state-toggle-unchecked-pressed-v22-1-0:#ffffff;
|
|
61
|
+
--magritte-color-component-switch-background-state-container-checked-disabled-v22-1-0:#0dc2677a;
|
|
62
|
+
--magritte-color-component-switch-background-state-container-unchecked-disabled-v22-1-0:#dce3eb7a;
|
|
63
|
+
--magritte-color-component-switch-icon-state-toggle-checked-disabled-v22-1-0:#0ea6587a;
|
|
64
|
+
--magritte-color-component-switch-icon-state-toggle-unchecked-disabled-v22-1-0:#7686947a;
|
|
65
|
+
--magritte-shadow-level-1-color-v22-1-0:#7090b029;
|
|
66
|
+
--magritte-shadow-level-1-x-v22-1-0:0px;
|
|
67
|
+
--magritte-shadow-level-1-y-v22-1-0:4px;
|
|
68
|
+
--magritte-shadow-level-1-blur-v22-1-0:12px;
|
|
69
|
+
--magritte-shadow-level-1-spread-v22-1-0:0px;
|
|
70
|
+
}
|
|
71
|
+
.magritte-switch___0AZYC_3-0-1{
|
|
50
72
|
width:52px;
|
|
51
73
|
height:32px;
|
|
52
|
-
background-color:var(--magritte-color-component-switch-background-container-unchecked-v22-
|
|
74
|
+
background-color:var(--magritte-color-component-switch-background-container-unchecked-v22-1-0);
|
|
53
75
|
border-radius:16px;
|
|
54
76
|
cursor:pointer;
|
|
55
77
|
position:relative;
|
|
56
78
|
}
|
|
57
|
-
.magritte-
|
|
58
|
-
background-color:var(--magritte-color-component-switch-background-state-container-unchecked-pressed-v22-
|
|
79
|
+
.magritte-switch___0AZYC_3-0-1:active:not(:disabled){
|
|
80
|
+
background-color:var(--magritte-color-component-switch-background-state-container-unchecked-pressed-v22-1-0);
|
|
59
81
|
}
|
|
60
|
-
.magritte-
|
|
82
|
+
.magritte-switch___0AZYC_3-0-1:active:not(:disabled) .magritte-slider___YN62u_3-0-1{
|
|
61
83
|
border-radius:14px;
|
|
62
|
-
background-color:var(--magritte-color-component-switch-background-state-toggle-unchecked-pressed-v22-
|
|
84
|
+
background-color:var(--magritte-color-component-switch-background-state-toggle-unchecked-pressed-v22-1-0);
|
|
63
85
|
width:32px;
|
|
64
86
|
}
|
|
65
|
-
.magritte-
|
|
87
|
+
.magritte-switch___0AZYC_3-0-1:disabled{
|
|
66
88
|
cursor:not-allowed;
|
|
67
|
-
background-color:var(--magritte-color-component-switch-background-state-container-unchecked-disabled-v22-
|
|
89
|
+
background-color:var(--magritte-color-component-switch-background-state-container-unchecked-disabled-v22-1-0);
|
|
68
90
|
border-radius:20px;
|
|
69
91
|
}
|
|
70
|
-
.magritte-
|
|
71
|
-
background-color:var(--magritte-color-component-switch-background-state-container-checked-disabled-v22-
|
|
92
|
+
.magritte-switch___0AZYC_3-0-1:disabled.magritte-checked___QEAn5_3-0-1{
|
|
93
|
+
background-color:var(--magritte-color-component-switch-background-state-container-checked-disabled-v22-1-0);
|
|
72
94
|
}
|
|
73
|
-
.magritte-
|
|
74
|
-
outline:var(--magritte-color-component-switch-stroke-state-focused-accessible-v22-
|
|
95
|
+
.magritte-switch___0AZYC_3-0-1.focus-visible{
|
|
96
|
+
outline:var(--magritte-color-component-switch-stroke-state-focused-accessible-v22-1-0) solid 4px;
|
|
75
97
|
}
|
|
76
98
|
@media (min-width: 1020px){
|
|
77
|
-
body.magritte-old-layout .magritte-
|
|
78
|
-
background-color:var(--magritte-color-component-switch-background-state-container-unchecked-hovered-v22-
|
|
99
|
+
body.magritte-old-layout .magritte-switch___0AZYC_3-0-1:hover:not(:disabled):not(:active){
|
|
100
|
+
background-color:var(--magritte-color-component-switch-background-state-container-unchecked-hovered-v22-1-0);
|
|
79
101
|
}
|
|
80
102
|
}
|
|
81
103
|
@media (min-width: 1024px){
|
|
82
|
-
body:not(.magritte-old-layout) .magritte-
|
|
83
|
-
background-color:var(--magritte-color-component-switch-background-state-container-unchecked-hovered-v22-
|
|
104
|
+
body:not(.magritte-old-layout) .magritte-switch___0AZYC_3-0-1:hover:not(:disabled):not(:active){
|
|
105
|
+
background-color:var(--magritte-color-component-switch-background-state-container-unchecked-hovered-v22-1-0);
|
|
84
106
|
}
|
|
85
107
|
}
|
|
86
|
-
.magritte-
|
|
108
|
+
.magritte-slider___YN62u_3-0-1{
|
|
87
109
|
width:24px;
|
|
88
110
|
height:24px;
|
|
89
|
-
background-color:var(--magritte-color-component-switch-background-toggle-unchecked-v22-
|
|
111
|
+
background-color:var(--magritte-color-component-switch-background-toggle-unchecked-v22-1-0);
|
|
90
112
|
border-radius:50%;
|
|
91
113
|
position:absolute;
|
|
92
114
|
left:0;
|
|
93
115
|
right:auto;
|
|
94
116
|
top:0;
|
|
95
|
-
transition-duration:var(--magritte-semantic-animation-ease-in-out-leopard-300-duration-v22-
|
|
96
|
-
transition-timing-function:var(--magritte-semantic-animation-ease-in-out-leopard-300-timing-function-v22-
|
|
117
|
+
transition-duration:var(--magritte-semantic-animation-ease-in-out-leopard-300-duration-v22-1-0);
|
|
118
|
+
transition-timing-function:var(--magritte-semantic-animation-ease-in-out-leopard-300-timing-function-v22-1-0);
|
|
97
119
|
margin:4px;
|
|
98
120
|
display:flex;
|
|
99
121
|
justify-content:center;
|
|
100
122
|
align-items:center;
|
|
101
|
-
--magritte-ui-icon-color-override:var(--magritte-color-component-switch-icon-state-toggle-unchecked-disabled-v22-
|
|
102
|
-
box-shadow:var(--magritte-shadow-level-1-x-v22-
|
|
123
|
+
--magritte-ui-icon-color-override:var(--magritte-color-component-switch-icon-state-toggle-unchecked-disabled-v22-1-0);
|
|
124
|
+
box-shadow:var(--magritte-shadow-level-1-x-v22-1-0) var(--magritte-shadow-level-1-y-v22-1-0) var(--magritte-shadow-level-1-blur-v22-1-0) var(--magritte-shadow-level-1-spread-v22-1-0) var(--magritte-shadow-level-1-color-v22-1-0);
|
|
103
125
|
}
|
|
104
|
-
.magritte-
|
|
105
|
-
background-color:var(--magritte-color-component-switch-background-container-checked-v22-
|
|
126
|
+
.magritte-checked___QEAn5_3-0-1{
|
|
127
|
+
background-color:var(--magritte-color-component-switch-background-container-checked-v22-1-0);
|
|
106
128
|
}
|
|
107
|
-
.magritte-
|
|
108
|
-
background-color:var(--magritte-color-component-switch-background-toggle-checked-v22-
|
|
129
|
+
.magritte-checked___QEAn5_3-0-1 .magritte-slider___YN62u_3-0-1{
|
|
130
|
+
background-color:var(--magritte-color-component-switch-background-toggle-checked-v22-1-0);
|
|
109
131
|
left:calc(52px - (24px + 4px*2));
|
|
110
|
-
--magritte-ui-icon-color-override:var(--magritte-color-component-switch-icon-state-toggle-checked-disabled-v22-
|
|
132
|
+
--magritte-ui-icon-color-override:var(--magritte-color-component-switch-icon-state-toggle-checked-disabled-v22-1-0);
|
|
111
133
|
}
|
|
112
|
-
.magritte-
|
|
113
|
-
background-color:var(--magritte-color-component-switch-background-state-container-checked-pressed-v22-
|
|
134
|
+
.magritte-checked___QEAn5_3-0-1:active:not(:disabled){
|
|
135
|
+
background-color:var(--magritte-color-component-switch-background-state-container-checked-pressed-v22-1-0);
|
|
114
136
|
}
|
|
115
|
-
.magritte-
|
|
116
|
-
background-color:var(--magritte-color-component-switch-background-state-toggle-checked-pressed-v22-
|
|
137
|
+
.magritte-checked___QEAn5_3-0-1:active:not(:disabled) .magritte-slider___YN62u_3-0-1{
|
|
138
|
+
background-color:var(--magritte-color-component-switch-background-state-toggle-checked-pressed-v22-1-0);
|
|
117
139
|
width:32px;
|
|
118
140
|
left:calc(52px - (32px + 4px*2));
|
|
119
141
|
}
|
|
120
142
|
@media (min-width: 1020px){
|
|
121
|
-
body.magritte-old-layout .magritte-
|
|
122
|
-
background-color:var(--magritte-color-component-switch-background-state-container-checked-hovered-v22-
|
|
143
|
+
body.magritte-old-layout .magritte-checked___QEAn5_3-0-1:hover:not(:disabled):not(:active){
|
|
144
|
+
background-color:var(--magritte-color-component-switch-background-state-container-checked-hovered-v22-1-0);
|
|
123
145
|
}
|
|
124
146
|
}
|
|
125
147
|
@media (min-width: 1024px){
|
|
126
|
-
body:not(.magritte-old-layout) .magritte-
|
|
127
|
-
background-color:var(--magritte-color-component-switch-background-state-container-checked-hovered-v22-
|
|
148
|
+
body:not(.magritte-old-layout) .magritte-checked___QEAn5_3-0-1:hover:not(:disabled):not(:active){
|
|
149
|
+
background-color:var(--magritte-color-component-switch-background-state-container-checked-hovered-v22-1-0);
|
|
128
150
|
}
|
|
129
151
|
}
|
|
130
|
-
.magritte-switch-
|
|
152
|
+
.magritte-switch-skeleton___g1MEY_3-0-1{
|
|
131
153
|
width:52px;
|
|
132
154
|
height:32px;
|
|
133
155
|
border-radius:16px;
|
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import './index.css';
|
|
2
2
|
export { Switch } from './Switch.js';
|
|
3
|
-
export * from '@hh.ru/magritte-ui-theme-provider';
|
|
4
3
|
import 'react/jsx-runtime';
|
|
5
4
|
import 'classnames';
|
|
6
5
|
import '@hh.ru/magritte-common-use-disabled';
|
|
7
6
|
import '@hh.ru/magritte-ui-icon/icon';
|
|
8
7
|
import '@hh.ru/magritte-ui-skeleton';
|
|
9
|
-
import './Skeleton-
|
|
8
|
+
import './Skeleton-D3iHK4YX.js';
|
|
10
9
|
//# sourceMappingURL=index.js.map
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hh.ru/magritte-ui-switch",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"types": "index.d.ts",
|
|
6
6
|
"sideEffects": [
|
|
@@ -20,11 +20,10 @@
|
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@hh.ru/magritte-common-use-disabled": "1.0.12",
|
|
23
|
-
"@hh.ru/magritte-design-tokens": "22.
|
|
24
|
-
"@hh.ru/magritte-ui-breakpoint": "
|
|
25
|
-
"@hh.ru/magritte-ui-icon": "
|
|
26
|
-
"@hh.ru/magritte-ui-skeleton": "
|
|
27
|
-
"@hh.ru/magritte-ui-theme-provider": "1.1.51"
|
|
23
|
+
"@hh.ru/magritte-design-tokens": "22.1.0",
|
|
24
|
+
"@hh.ru/magritte-ui-breakpoint": "6.0.0",
|
|
25
|
+
"@hh.ru/magritte-ui-icon": "12.0.0",
|
|
26
|
+
"@hh.ru/magritte-ui-skeleton": "3.0.0"
|
|
28
27
|
},
|
|
29
28
|
"peerDependencies": {
|
|
30
29
|
"classnames": ">=2.3.2",
|
|
@@ -33,5 +32,5 @@
|
|
|
33
32
|
"publishConfig": {
|
|
34
33
|
"access": "public"
|
|
35
34
|
},
|
|
36
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "3683d6878ef11d2912f1bcda4bd1112735fb0493"
|
|
37
36
|
}
|