@hh.ru/magritte-ui-switch 2.0.63 → 3.0.0

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.
@@ -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-63","slider":"magritte-slider___YN62u_2-0-63","checked":"magritte-checked___QEAn5_2-0-63","switch-skeleton":"magritte-switch-skeleton___g1MEY_2-0-63","switchSkeleton":"magritte-switch-skeleton___g1MEY_2-0-63"};
5
+ var styles = {"switch":"magritte-switch___0AZYC_3-0-0","slider":"magritte-slider___YN62u_3-0-0","checked":"magritte-checked___QEAn5_3-0-0","switch-skeleton":"magritte-switch-skeleton___g1MEY_3-0-0","switchSkeleton":"magritte-switch-skeleton___g1MEY_3-0-0"};
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-DCUlf9qo.js.map
12
+ //# sourceMappingURL=Skeleton-ILKT5CjM.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Skeleton-DCUlf9qo.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;;;;"}
1
+ {"version":3,"file":"Skeleton-ILKT5CjM.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
@@ -1,5 +1,5 @@
1
1
  import './index.css';
2
2
  import 'react/jsx-runtime';
3
3
  import '@hh.ru/magritte-ui-skeleton';
4
- export { S as SwitchSkeleton } from './Skeleton-DCUlf9qo.js';
4
+ export { S as SwitchSkeleton } from './Skeleton-ILKT5CjM.js';
5
5
  //# sourceMappingURL=Skeleton.js.map
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-DCUlf9qo.js';
7
+ import { S as SwitchSkeleton, s as styles } from './Skeleton-ILKT5CjM.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-0-0:#0070ff7a;
3
- --magritte-color-component-switch-background-container-checked-v22-0-0:#0dc267;
4
- --magritte-color-component-switch-background-container-unchecked-v22-0-0:#DCE3EB;
5
- --magritte-color-component-switch-background-toggle-checked-v22-0-0:#ffffff;
6
- --magritte-color-component-switch-background-toggle-unchecked-v22-0-0:#ffffff;
7
- --magritte-color-component-switch-background-state-container-checked-hovered-v22-0-0:#5bcf83;
8
- --magritte-color-component-switch-background-state-container-checked-pressed-v22-0-0:#5bcf83;
9
- --magritte-color-component-switch-background-state-container-unchecked-hovered-v22-0-0:#CCD5DF;
10
- --magritte-color-component-switch-background-state-container-unchecked-pressed-v22-0-0:#CCD5DF;
11
- --magritte-color-component-switch-background-state-toggle-checked-pressed-v22-0-0:#ffffff;
12
- --magritte-color-component-switch-background-state-toggle-unchecked-pressed-v22-0-0:#ffffff;
13
- --magritte-color-component-switch-background-state-container-checked-disabled-v22-0-0:#0dc2677a;
14
- --magritte-color-component-switch-background-state-container-unchecked-disabled-v22-0-0:#dce3eb7a;
15
- --magritte-color-component-switch-icon-state-toggle-checked-disabled-v22-0-0:#0ea6587a;
16
- --magritte-color-component-switch-icon-state-toggle-unchecked-disabled-v22-0-0:#7686947a;
17
- --magritte-shadow-level-1-color-v22-0-0:#7090b029;
18
- --magritte-shadow-level-1-x-v22-0-0:0px;
19
- --magritte-shadow-level-1-y-v22-0-0:4px;
20
- --magritte-shadow-level-1-blur-v22-0-0:12px;
21
- --magritte-shadow-level-1-spread-v22-0-0:0px;
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-0-0:cubic-bezier(0.35, 0.1, 0.1, 1);
25
- --magritte-semantic-animation-ease-in-out-leopard-300-duration-v22-0-0:300ms;
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-0-0:#0070ff7a;
29
- --magritte-color-component-switch-background-container-checked-v22-0-0:#0dc267;
30
- --magritte-color-component-switch-background-container-unchecked-v22-0-0:#303030;
31
- --magritte-color-component-switch-background-toggle-checked-v22-0-0:#ffffff;
32
- --magritte-color-component-switch-background-toggle-unchecked-v22-0-0:#ffffff;
33
- --magritte-color-component-switch-background-state-container-checked-hovered-v22-0-0:#5bcf83;
34
- --magritte-color-component-switch-background-state-container-checked-pressed-v22-0-0:#5bcf83;
35
- --magritte-color-component-switch-background-state-container-unchecked-hovered-v22-0-0:#3B3B3B;
36
- --magritte-color-component-switch-background-state-container-unchecked-pressed-v22-0-0:#3B3B3B;
37
- --magritte-color-component-switch-background-state-toggle-checked-pressed-v22-0-0:#ffffff;
38
- --magritte-color-component-switch-background-state-toggle-unchecked-pressed-v22-0-0:#ffffff;
39
- --magritte-color-component-switch-background-state-container-checked-disabled-v22-0-0:#0dc2677a;
40
- --magritte-color-component-switch-background-state-container-unchecked-disabled-v22-0-0:#3030307a;
41
- --magritte-color-component-switch-icon-state-toggle-checked-disabled-v22-0-0:#0ea6587a;
42
- --magritte-color-component-switch-icon-state-toggle-unchecked-disabled-v22-0-0:#7686947a;
43
- --magritte-shadow-level-1-color-v22-0-0:#00000029;
44
- --magritte-shadow-level-1-x-v22-0-0:0px;
45
- --magritte-shadow-level-1-y-v22-0-0:4px;
46
- --magritte-shadow-level-1-blur-v22-0-0:12px;
47
- --magritte-shadow-level-1-spread-v22-0-0:0px;
48
- }
49
- .magritte-switch___0AZYC_2-0-63{
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-0{
50
72
  width:52px;
51
73
  height:32px;
52
- background-color:var(--magritte-color-component-switch-background-container-unchecked-v22-0-0);
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-switch___0AZYC_2-0-63:active:not(:disabled){
58
- background-color:var(--magritte-color-component-switch-background-state-container-unchecked-pressed-v22-0-0);
79
+ .magritte-switch___0AZYC_3-0-0:active:not(:disabled){
80
+ background-color:var(--magritte-color-component-switch-background-state-container-unchecked-pressed-v22-1-0);
59
81
  }
60
- .magritte-switch___0AZYC_2-0-63:active:not(:disabled) .magritte-slider___YN62u_2-0-63{
82
+ .magritte-switch___0AZYC_3-0-0:active:not(:disabled) .magritte-slider___YN62u_3-0-0{
61
83
  border-radius:14px;
62
- background-color:var(--magritte-color-component-switch-background-state-toggle-unchecked-pressed-v22-0-0);
84
+ background-color:var(--magritte-color-component-switch-background-state-toggle-unchecked-pressed-v22-1-0);
63
85
  width:32px;
64
86
  }
65
- .magritte-switch___0AZYC_2-0-63:disabled{
87
+ .magritte-switch___0AZYC_3-0-0:disabled{
66
88
  cursor:not-allowed;
67
- background-color:var(--magritte-color-component-switch-background-state-container-unchecked-disabled-v22-0-0);
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-switch___0AZYC_2-0-63:disabled.magritte-checked___QEAn5_2-0-63{
71
- background-color:var(--magritte-color-component-switch-background-state-container-checked-disabled-v22-0-0);
92
+ .magritte-switch___0AZYC_3-0-0:disabled.magritte-checked___QEAn5_3-0-0{
93
+ background-color:var(--magritte-color-component-switch-background-state-container-checked-disabled-v22-1-0);
72
94
  }
73
- .magritte-switch___0AZYC_2-0-63.focus-visible{
74
- outline:var(--magritte-color-component-switch-stroke-state-focused-accessible-v22-0-0) solid 4px;
95
+ .magritte-switch___0AZYC_3-0-0.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-switch___0AZYC_2-0-63:hover:not(:disabled):not(:active){
78
- background-color:var(--magritte-color-component-switch-background-state-container-unchecked-hovered-v22-0-0);
99
+ body.magritte-old-layout .magritte-switch___0AZYC_3-0-0: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-switch___0AZYC_2-0-63:hover:not(:disabled):not(:active){
83
- background-color:var(--magritte-color-component-switch-background-state-container-unchecked-hovered-v22-0-0);
104
+ body:not(.magritte-old-layout) .magritte-switch___0AZYC_3-0-0: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-slider___YN62u_2-0-63{
108
+ .magritte-slider___YN62u_3-0-0{
87
109
  width:24px;
88
110
  height:24px;
89
- background-color:var(--magritte-color-component-switch-background-toggle-unchecked-v22-0-0);
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-0-0);
96
- transition-timing-function:var(--magritte-semantic-animation-ease-in-out-leopard-300-timing-function-v22-0-0);
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-0-0);
102
- box-shadow:var(--magritte-shadow-level-1-x-v22-0-0) var(--magritte-shadow-level-1-y-v22-0-0) var(--magritte-shadow-level-1-blur-v22-0-0) var(--magritte-shadow-level-1-spread-v22-0-0) var(--magritte-shadow-level-1-color-v22-0-0);
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-checked___QEAn5_2-0-63{
105
- background-color:var(--magritte-color-component-switch-background-container-checked-v22-0-0);
126
+ .magritte-checked___QEAn5_3-0-0{
127
+ background-color:var(--magritte-color-component-switch-background-container-checked-v22-1-0);
106
128
  }
107
- .magritte-checked___QEAn5_2-0-63 .magritte-slider___YN62u_2-0-63{
108
- background-color:var(--magritte-color-component-switch-background-toggle-checked-v22-0-0);
129
+ .magritte-checked___QEAn5_3-0-0 .magritte-slider___YN62u_3-0-0{
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-0-0);
132
+ --magritte-ui-icon-color-override:var(--magritte-color-component-switch-icon-state-toggle-checked-disabled-v22-1-0);
111
133
  }
112
- .magritte-checked___QEAn5_2-0-63:active:not(:disabled){
113
- background-color:var(--magritte-color-component-switch-background-state-container-checked-pressed-v22-0-0);
134
+ .magritte-checked___QEAn5_3-0-0:active:not(:disabled){
135
+ background-color:var(--magritte-color-component-switch-background-state-container-checked-pressed-v22-1-0);
114
136
  }
115
- .magritte-checked___QEAn5_2-0-63:active:not(:disabled) .magritte-slider___YN62u_2-0-63{
116
- background-color:var(--magritte-color-component-switch-background-state-toggle-checked-pressed-v22-0-0);
137
+ .magritte-checked___QEAn5_3-0-0:active:not(:disabled) .magritte-slider___YN62u_3-0-0{
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-checked___QEAn5_2-0-63:hover:not(:disabled):not(:active){
122
- background-color:var(--magritte-color-component-switch-background-state-container-checked-hovered-v22-0-0);
143
+ body.magritte-old-layout .magritte-checked___QEAn5_3-0-0: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-checked___QEAn5_2-0-63:hover:not(:disabled):not(:active){
127
- background-color:var(--magritte-color-component-switch-background-state-container-checked-hovered-v22-0-0);
148
+ body:not(.magritte-old-layout) .magritte-checked___QEAn5_3-0-0: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-skeleton___g1MEY_2-0-63{
152
+ .magritte-switch-skeleton___g1MEY_3-0-0{
131
153
  width:52px;
132
154
  height:32px;
133
155
  border-radius:16px;
package/index.d.ts CHANGED
@@ -1,3 +1,2 @@
1
1
  export * from '@hh.ru/magritte-ui-switch/Switch';
2
2
  export * from '@hh.ru/magritte-ui-switch/types';
3
- export * from '@hh.ru/magritte-ui-theme-provider';
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-DCUlf9qo.js';
8
+ import './Skeleton-ILKT5CjM.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": "2.0.63",
3
+ "version": "3.0.0",
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.0.0",
23
+ "@hh.ru/magritte-design-tokens": "22.1.0",
24
24
  "@hh.ru/magritte-ui-breakpoint": "5.0.3",
25
- "@hh.ru/magritte-ui-icon": "11.1.0",
26
- "@hh.ru/magritte-ui-skeleton": "2.1.37",
27
- "@hh.ru/magritte-ui-theme-provider": "1.1.51"
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": "5b83b8f36a1aa79857e35ef038d9d32abef39be0"
35
+ "gitHead": "a823b2d582e812bf99b5fdf32058a93eaa59076b"
37
36
  }