@alfalab/core-components-switch 6.1.0 → 6.1.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/default.css CHANGED
@@ -20,36 +20,36 @@
20
20
  --switch-disabled-checked-bg-color: var(--switch-disabled-bg-color);
21
21
  --switch-icon-disabled-color: var(--color-light-neutral-translucent-500);
22
22
  }
23
- .switch__switch_1cr6w {
23
+ .switch__switch_17r6f {
24
24
  background-color: var(--switch-bg-color);
25
25
  }
26
- .switch__switch_1cr6w:hover {
26
+ .switch__switch_17r6f:hover {
27
27
  background-color: var(--switch-hover-bg-color);
28
28
  }
29
- .switch__label_1cr6w {
29
+ .switch__label_17r6f {
30
30
  color: var(--switch-label-color);
31
31
  }
32
- .switch__hint_1cr6w {
32
+ .switch__hint_17r6f {
33
33
  color: var(--switch-hint-color);
34
34
  }
35
- .switch__checked_1cr6w .switch__switch_1cr6w {
35
+ .switch__checked_17r6f .switch__switch_17r6f {
36
36
  background-color: var(--switch-checked-bg-color);
37
37
  }
38
- .switch__checked_1cr6w .switch__switch_1cr6w:hover {
38
+ .switch__checked_17r6f .switch__switch_17r6f:hover {
39
39
  background-color: var(--switch-checked-hover-bg-color);
40
40
  }
41
- .switch__disabled_1cr6w .switch__label_1cr6w {
41
+ .switch__disabled_17r6f .switch__label_17r6f {
42
42
  color: var(--switch-disabled-color);
43
43
  }
44
- .switch__disabled_1cr6w .switch__hint_1cr6w {
44
+ .switch__disabled_17r6f .switch__hint_17r6f {
45
45
  color: var(--switch-disabled-color);
46
46
  }
47
- .switch__disabled_1cr6w .switch__switch_1cr6w {
47
+ .switch__disabled_17r6f .switch__switch_17r6f {
48
48
  background-color: var(--switch-disabled-bg-color);
49
49
  }
50
- .switch__disabled_1cr6w .switch__switch_1cr6w:before {
50
+ .switch__disabled_17r6f .switch__switch_17r6f:before {
51
51
  background-color: var(--switch-icon-disabled-color);
52
52
  }
53
- .switch__disabled_1cr6w.switch__checked_1cr6w .switch__switch_1cr6w {
53
+ .switch__disabled_17r6f.switch__checked_17r6f .switch__switch_17r6f {
54
54
  background-color: var(--switch-disabled-checked-bg-color);
55
55
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  require('./default.css');
4
4
 
5
- var defaultStyles = {"switch":"switch__switch_1cr6w","label":"switch__label_1cr6w","hint":"switch__hint_1cr6w","checked":"switch__checked_1cr6w","disabled":"switch__disabled_1cr6w"};
5
+ var defaultStyles = {"switch":"switch__switch_17r6f","label":"switch__label_17r6f","hint":"switch__hint_17r6f","checked":"switch__checked_17r6f","disabled":"switch__disabled_17r6f"};
6
6
 
7
7
  module.exports = defaultStyles;
8
8
  //# sourceMappingURL=default.module.css.js.map
package/esm/default.css CHANGED
@@ -20,36 +20,36 @@
20
20
  --switch-disabled-checked-bg-color: var(--switch-disabled-bg-color);
21
21
  --switch-icon-disabled-color: var(--color-light-neutral-translucent-500);
22
22
  }
23
- .switch__switch_1cr6w {
23
+ .switch__switch_17r6f {
24
24
  background-color: var(--switch-bg-color);
25
25
  }
26
- .switch__switch_1cr6w:hover {
26
+ .switch__switch_17r6f:hover {
27
27
  background-color: var(--switch-hover-bg-color);
28
28
  }
29
- .switch__label_1cr6w {
29
+ .switch__label_17r6f {
30
30
  color: var(--switch-label-color);
31
31
  }
32
- .switch__hint_1cr6w {
32
+ .switch__hint_17r6f {
33
33
  color: var(--switch-hint-color);
34
34
  }
35
- .switch__checked_1cr6w .switch__switch_1cr6w {
35
+ .switch__checked_17r6f .switch__switch_17r6f {
36
36
  background-color: var(--switch-checked-bg-color);
37
37
  }
38
- .switch__checked_1cr6w .switch__switch_1cr6w:hover {
38
+ .switch__checked_17r6f .switch__switch_17r6f:hover {
39
39
  background-color: var(--switch-checked-hover-bg-color);
40
40
  }
41
- .switch__disabled_1cr6w .switch__label_1cr6w {
41
+ .switch__disabled_17r6f .switch__label_17r6f {
42
42
  color: var(--switch-disabled-color);
43
43
  }
44
- .switch__disabled_1cr6w .switch__hint_1cr6w {
44
+ .switch__disabled_17r6f .switch__hint_17r6f {
45
45
  color: var(--switch-disabled-color);
46
46
  }
47
- .switch__disabled_1cr6w .switch__switch_1cr6w {
47
+ .switch__disabled_17r6f .switch__switch_17r6f {
48
48
  background-color: var(--switch-disabled-bg-color);
49
49
  }
50
- .switch__disabled_1cr6w .switch__switch_1cr6w:before {
50
+ .switch__disabled_17r6f .switch__switch_17r6f:before {
51
51
  background-color: var(--switch-icon-disabled-color);
52
52
  }
53
- .switch__disabled_1cr6w.switch__checked_1cr6w .switch__switch_1cr6w {
53
+ .switch__disabled_17r6f.switch__checked_17r6f .switch__switch_17r6f {
54
54
  background-color: var(--switch-disabled-checked-bg-color);
55
55
  }
@@ -1,6 +1,6 @@
1
1
  import './default.css';
2
2
 
3
- var defaultStyles = {"switch":"switch__switch_1cr6w","label":"switch__label_1cr6w","hint":"switch__hint_1cr6w","checked":"switch__checked_1cr6w","disabled":"switch__disabled_1cr6w"};
3
+ var defaultStyles = {"switch":"switch__switch_17r6f","label":"switch__label_17r6f","hint":"switch__hint_17r6f","checked":"switch__checked_17r6f","disabled":"switch__disabled_17r6f"};
4
4
 
5
5
  export { defaultStyles as default };
6
6
  //# sourceMappingURL=default.module.css.js.map
package/esm/index.css CHANGED
@@ -35,7 +35,7 @@
35
35
  --switch-error-color: var(--color-light-text-negative);
36
36
  --switch-icon-color: var(--color-static-neutral-0);
37
37
  }
38
- .switch__component_afshm {
38
+ .switch__component_756jd {
39
39
  display: inline-flex;
40
40
  align-items: flex-start;
41
41
  margin: var(--gap-0);
@@ -44,25 +44,25 @@
44
44
  cursor: pointer;
45
45
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
46
46
  }
47
- .switch__component_afshm input {
47
+ .switch__component_756jd input {
48
48
  opacity: 0;
49
49
  position: absolute;
50
50
  }
51
- .switch__start_afshm {
51
+ .switch__start_756jd {
52
52
  align-items: flex-start;
53
53
  }
54
- .switch__center_afshm {
54
+ .switch__center_756jd {
55
55
  align-items: center;
56
56
  }
57
- .switch__addons_afshm {
57
+ .switch__addons_756jd {
58
58
  margin-left: auto;
59
59
  padding-left: var(--gap-16);
60
60
  line-height: 24px;
61
61
  }
62
- .switch__block_afshm {
62
+ .switch__block_756jd {
63
63
  width: 100%;
64
64
  }
65
- .switch__switch_afshm {
65
+ .switch__switch_756jd {
66
66
  position: relative;
67
67
  display: block;
68
68
  border-radius: var(--border-radius-16);
@@ -76,12 +76,12 @@
76
76
  border-color 0.2s ease;
77
77
  box-sizing: border-box;
78
78
  }
79
- .switch__switchSkeleton_afshm {
79
+ .switch__switchSkeleton_756jd {
80
80
  width: 36px;
81
81
  height: 20px;
82
82
  margin: var(--gap-2);
83
83
  }
84
- .switch__switch_afshm:before {
84
+ .switch__switch_756jd:before {
85
85
  content: '';
86
86
  position: absolute;
87
87
  top: var(--gap-0);
@@ -94,65 +94,65 @@
94
94
  box-sizing: border-box;
95
95
  transition: transform 0.2s ease;
96
96
  }
97
- .switch__content_afshm {
97
+ .switch__content_756jd {
98
98
  margin-left: var(--gap-12);
99
99
  flex-grow: 1;
100
100
  }
101
- .switch__label_afshm {
101
+ .switch__label_756jd {
102
102
  font-size: 16px;
103
103
  line-height: 24px;
104
104
  font-weight: 400;
105
105
  font-family: var(--font-family-system);
106
106
  display: block;
107
107
  }
108
- .switch__labelWrap_afshm:not(:only-child) {
108
+ .switch__labelWrap_756jd:not(:only-child) {
109
109
  margin-bottom: var(--gap-4);
110
110
  }
111
- .switch__labelWrap_afshm.switch__loading_afshm {
111
+ .switch__labelWrap_756jd.switch__loading_756jd {
112
112
  height: var(--gap-12);
113
113
  margin: var(--gap-6) 0;
114
114
  }
115
- .switch__labelWrap_afshm.switch__loading_afshm:not(:only-child) {
115
+ .switch__labelWrap_756jd.switch__loading_756jd:not(:only-child) {
116
116
  margin-bottom: var(--gap-2s);
117
117
  }
118
- .switch__errorMessage_afshm {
118
+ .switch__errorMessage_756jd {
119
119
  font-size: 14px;
120
120
  line-height: 18px;
121
121
  font-weight: 400;
122
122
  font-family: var(--font-family-system);
123
123
  color: var(--switch-error-color);
124
124
  }
125
- .switch__hint_afshm {
125
+ .switch__hint_756jd {
126
126
  font-size: 14px;
127
127
  line-height: 18px;
128
128
  font-weight: 400;
129
129
  font-family: var(--font-family-system);
130
130
  display: block;
131
131
  }
132
- .switch__hintWrap_afshm.switch__loading_afshm {
132
+ .switch__hintWrap_756jd.switch__loading_756jd {
133
133
  height: var(--gap-10);
134
134
  margin-bottom: var(--gap-4);
135
135
  }
136
- .switch__component_afshm.switch__reversed_afshm {
136
+ .switch__component_756jd.switch__reversed_756jd {
137
137
  flex-direction: row-reverse;
138
138
  }
139
- .switch__reversed_afshm .switch__content_afshm {
139
+ .switch__reversed_756jd .switch__content_756jd {
140
140
  margin-right: var(--gap-16);
141
141
  margin-left: var(--gap-0);
142
142
  }
143
- .switch__reversed_afshm .switch__addons_afshm {
143
+ .switch__reversed_756jd .switch__addons_756jd {
144
144
  margin-left: var(--gap-0);
145
145
  padding-left: var(--gap-0);
146
146
  margin-right: auto;
147
147
  padding-right: var(--gap-16);
148
148
  }
149
- .switch__checked_afshm .switch__switch_afshm:before {
149
+ .switch__checked_756jd .switch__switch_756jd:before {
150
150
  transform: translateX(16px);
151
151
  }
152
- .switch__disabled_afshm {
152
+ .switch__disabled_756jd {
153
153
  cursor: var(--disabled-cursor);
154
154
  }
155
- .switch__focused_afshm .switch__switch_afshm {
155
+ .switch__focused_756jd .switch__switch_756jd {
156
156
  outline: 2px solid var(--focus-color);
157
157
  outline-offset: 2px;
158
158
  }
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- var styles = {"component":"switch__component_afshm","start":"switch__start_afshm","center":"switch__center_afshm","addons":"switch__addons_afshm","block":"switch__block_afshm","switch":"switch__switch_afshm","switchSkeleton":"switch__switchSkeleton_afshm","content":"switch__content_afshm","label":"switch__label_afshm","labelWrap":"switch__labelWrap_afshm","loading":"switch__loading_afshm","errorMessage":"switch__errorMessage_afshm","hint":"switch__hint_afshm","hintWrap":"switch__hintWrap_afshm","reversed":"switch__reversed_afshm","checked":"switch__checked_afshm","disabled":"switch__disabled_afshm","focused":"switch__focused_afshm"};
3
+ var styles = {"component":"switch__component_756jd","start":"switch__start_756jd","center":"switch__center_756jd","addons":"switch__addons_756jd","block":"switch__block_756jd","switch":"switch__switch_756jd","switchSkeleton":"switch__switchSkeleton_756jd","content":"switch__content_756jd","label":"switch__label_756jd","labelWrap":"switch__labelWrap_756jd","loading":"switch__loading_756jd","errorMessage":"switch__errorMessage_756jd","hint":"switch__hint_756jd","hintWrap":"switch__hintWrap_756jd","reversed":"switch__reversed_756jd","checked":"switch__checked_756jd","disabled":"switch__disabled_756jd","focused":"switch__focused_756jd"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=index.module.css.js.map
package/esm/inverted.css CHANGED
@@ -20,36 +20,36 @@
20
20
  --switch-disabled-checked-bg-inverted-color: var(--switch-disabled-bg-inverted-color);
21
21
  --switch-icon-disabled-inverted-color: var(--color-light-neutral-translucent-500-inverted);
22
22
  }
23
- .switch__switch_11ccj {
23
+ .switch__switch_wcc2q {
24
24
  background-color: var(--switch-bg-inverted-color);
25
25
  }
26
- .switch__switch_11ccj:hover {
26
+ .switch__switch_wcc2q:hover {
27
27
  background-color: var(--switch-hover-bg-inverted-color);
28
28
  }
29
- .switch__label_11ccj {
29
+ .switch__label_wcc2q {
30
30
  color: var(--switch-label-inverted-color);
31
31
  }
32
- .switch__hint_11ccj {
32
+ .switch__hint_wcc2q {
33
33
  color: var(--switch-hint-inverted-color);
34
34
  }
35
- .switch__checked_11ccj .switch__switch_11ccj {
35
+ .switch__checked_wcc2q .switch__switch_wcc2q {
36
36
  background-color: var(--switch-checked-bg-inverted-color);
37
37
  }
38
- .switch__checked_11ccj .switch__switch_11ccj:hover {
38
+ .switch__checked_wcc2q .switch__switch_wcc2q:hover {
39
39
  background-color: var(--switch-checked-hover-bg-inverted-color);
40
40
  }
41
- .switch__disabled_11ccj .switch__label_11ccj {
41
+ .switch__disabled_wcc2q .switch__label_wcc2q {
42
42
  color: var(--switch-disabled-inverted-color);
43
43
  }
44
- .switch__disabled_11ccj .switch__hint_11ccj {
44
+ .switch__disabled_wcc2q .switch__hint_wcc2q {
45
45
  color: var(--switch-disabled-inverted-color);
46
46
  }
47
- .switch__disabled_11ccj .switch__switch_11ccj {
47
+ .switch__disabled_wcc2q .switch__switch_wcc2q {
48
48
  background-color: var(--switch-disabled-bg-inverted-color);
49
49
  }
50
- .switch__disabled_11ccj .switch__switch_11ccj:before {
50
+ .switch__disabled_wcc2q .switch__switch_wcc2q:before {
51
51
  background-color: var(--switch-icon-disabled-inverted-color);
52
52
  }
53
- .switch__disabled_11ccj.switch__checked_11ccj .switch__switch_11ccj {
53
+ .switch__disabled_wcc2q.switch__checked_wcc2q .switch__switch_wcc2q {
54
54
  background-color: var(--switch-disabled-checked-bg-inverted-color);
55
55
  }
@@ -1,6 +1,6 @@
1
1
  import './inverted.css';
2
2
 
3
- var invertedStyles = {"switch":"switch__switch_11ccj","label":"switch__label_11ccj","hint":"switch__hint_11ccj","checked":"switch__checked_11ccj","disabled":"switch__disabled_11ccj"};
3
+ var invertedStyles = {"switch":"switch__switch_wcc2q","label":"switch__label_wcc2q","hint":"switch__hint_wcc2q","checked":"switch__checked_wcc2q","disabled":"switch__disabled_wcc2q"};
4
4
 
5
5
  export { invertedStyles as default };
6
6
  //# sourceMappingURL=inverted.module.css.js.map
package/index.css CHANGED
@@ -35,7 +35,7 @@
35
35
  --switch-error-color: var(--color-light-text-negative);
36
36
  --switch-icon-color: var(--color-static-neutral-0);
37
37
  }
38
- .switch__component_afshm {
38
+ .switch__component_756jd {
39
39
  display: inline-flex;
40
40
  align-items: flex-start;
41
41
  margin: var(--gap-0);
@@ -44,25 +44,25 @@
44
44
  cursor: pointer;
45
45
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
46
46
  }
47
- .switch__component_afshm input {
47
+ .switch__component_756jd input {
48
48
  opacity: 0;
49
49
  position: absolute;
50
50
  }
51
- .switch__start_afshm {
51
+ .switch__start_756jd {
52
52
  align-items: flex-start;
53
53
  }
54
- .switch__center_afshm {
54
+ .switch__center_756jd {
55
55
  align-items: center;
56
56
  }
57
- .switch__addons_afshm {
57
+ .switch__addons_756jd {
58
58
  margin-left: auto;
59
59
  padding-left: var(--gap-16);
60
60
  line-height: 24px;
61
61
  }
62
- .switch__block_afshm {
62
+ .switch__block_756jd {
63
63
  width: 100%;
64
64
  }
65
- .switch__switch_afshm {
65
+ .switch__switch_756jd {
66
66
  position: relative;
67
67
  display: block;
68
68
  border-radius: var(--border-radius-16);
@@ -76,12 +76,12 @@
76
76
  border-color 0.2s ease;
77
77
  box-sizing: border-box;
78
78
  }
79
- .switch__switchSkeleton_afshm {
79
+ .switch__switchSkeleton_756jd {
80
80
  width: 36px;
81
81
  height: 20px;
82
82
  margin: var(--gap-2);
83
83
  }
84
- .switch__switch_afshm:before {
84
+ .switch__switch_756jd:before {
85
85
  content: '';
86
86
  position: absolute;
87
87
  top: var(--gap-0);
@@ -94,65 +94,65 @@
94
94
  box-sizing: border-box;
95
95
  transition: transform 0.2s ease;
96
96
  }
97
- .switch__content_afshm {
97
+ .switch__content_756jd {
98
98
  margin-left: var(--gap-12);
99
99
  flex-grow: 1;
100
100
  }
101
- .switch__label_afshm {
101
+ .switch__label_756jd {
102
102
  font-size: 16px;
103
103
  line-height: 24px;
104
104
  font-weight: 400;
105
105
  font-family: var(--font-family-system);
106
106
  display: block;
107
107
  }
108
- .switch__labelWrap_afshm:not(:only-child) {
108
+ .switch__labelWrap_756jd:not(:only-child) {
109
109
  margin-bottom: var(--gap-4);
110
110
  }
111
- .switch__labelWrap_afshm.switch__loading_afshm {
111
+ .switch__labelWrap_756jd.switch__loading_756jd {
112
112
  height: var(--gap-12);
113
113
  margin: var(--gap-6) 0;
114
114
  }
115
- .switch__labelWrap_afshm.switch__loading_afshm:not(:only-child) {
115
+ .switch__labelWrap_756jd.switch__loading_756jd:not(:only-child) {
116
116
  margin-bottom: var(--gap-2s);
117
117
  }
118
- .switch__errorMessage_afshm {
118
+ .switch__errorMessage_756jd {
119
119
  font-size: 14px;
120
120
  line-height: 18px;
121
121
  font-weight: 400;
122
122
  font-family: var(--font-family-system);
123
123
  color: var(--switch-error-color);
124
124
  }
125
- .switch__hint_afshm {
125
+ .switch__hint_756jd {
126
126
  font-size: 14px;
127
127
  line-height: 18px;
128
128
  font-weight: 400;
129
129
  font-family: var(--font-family-system);
130
130
  display: block;
131
131
  }
132
- .switch__hintWrap_afshm.switch__loading_afshm {
132
+ .switch__hintWrap_756jd.switch__loading_756jd {
133
133
  height: var(--gap-10);
134
134
  margin-bottom: var(--gap-4);
135
135
  }
136
- .switch__component_afshm.switch__reversed_afshm {
136
+ .switch__component_756jd.switch__reversed_756jd {
137
137
  flex-direction: row-reverse;
138
138
  }
139
- .switch__reversed_afshm .switch__content_afshm {
139
+ .switch__reversed_756jd .switch__content_756jd {
140
140
  margin-right: var(--gap-16);
141
141
  margin-left: var(--gap-0);
142
142
  }
143
- .switch__reversed_afshm .switch__addons_afshm {
143
+ .switch__reversed_756jd .switch__addons_756jd {
144
144
  margin-left: var(--gap-0);
145
145
  padding-left: var(--gap-0);
146
146
  margin-right: auto;
147
147
  padding-right: var(--gap-16);
148
148
  }
149
- .switch__checked_afshm .switch__switch_afshm:before {
149
+ .switch__checked_756jd .switch__switch_756jd:before {
150
150
  transform: translateX(16px);
151
151
  }
152
- .switch__disabled_afshm {
152
+ .switch__disabled_756jd {
153
153
  cursor: var(--disabled-cursor);
154
154
  }
155
- .switch__focused_afshm .switch__switch_afshm {
155
+ .switch__focused_756jd .switch__switch_756jd {
156
156
  outline: 2px solid var(--focus-color);
157
157
  outline-offset: 2px;
158
158
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  require('./index.css');
4
4
 
5
- var styles = {"component":"switch__component_afshm","start":"switch__start_afshm","center":"switch__center_afshm","addons":"switch__addons_afshm","block":"switch__block_afshm","switch":"switch__switch_afshm","switchSkeleton":"switch__switchSkeleton_afshm","content":"switch__content_afshm","label":"switch__label_afshm","labelWrap":"switch__labelWrap_afshm","loading":"switch__loading_afshm","errorMessage":"switch__errorMessage_afshm","hint":"switch__hint_afshm","hintWrap":"switch__hintWrap_afshm","reversed":"switch__reversed_afshm","checked":"switch__checked_afshm","disabled":"switch__disabled_afshm","focused":"switch__focused_afshm"};
5
+ var styles = {"component":"switch__component_756jd","start":"switch__start_756jd","center":"switch__center_756jd","addons":"switch__addons_756jd","block":"switch__block_756jd","switch":"switch__switch_756jd","switchSkeleton":"switch__switchSkeleton_756jd","content":"switch__content_756jd","label":"switch__label_756jd","labelWrap":"switch__labelWrap_756jd","loading":"switch__loading_756jd","errorMessage":"switch__errorMessage_756jd","hint":"switch__hint_756jd","hintWrap":"switch__hintWrap_756jd","reversed":"switch__reversed_756jd","checked":"switch__checked_756jd","disabled":"switch__disabled_756jd","focused":"switch__focused_756jd"};
6
6
 
7
7
  module.exports = styles;
8
8
  //# sourceMappingURL=index.module.css.js.map
package/inverted.css CHANGED
@@ -20,36 +20,36 @@
20
20
  --switch-disabled-checked-bg-inverted-color: var(--switch-disabled-bg-inverted-color);
21
21
  --switch-icon-disabled-inverted-color: var(--color-light-neutral-translucent-500-inverted);
22
22
  }
23
- .switch__switch_11ccj {
23
+ .switch__switch_wcc2q {
24
24
  background-color: var(--switch-bg-inverted-color);
25
25
  }
26
- .switch__switch_11ccj:hover {
26
+ .switch__switch_wcc2q:hover {
27
27
  background-color: var(--switch-hover-bg-inverted-color);
28
28
  }
29
- .switch__label_11ccj {
29
+ .switch__label_wcc2q {
30
30
  color: var(--switch-label-inverted-color);
31
31
  }
32
- .switch__hint_11ccj {
32
+ .switch__hint_wcc2q {
33
33
  color: var(--switch-hint-inverted-color);
34
34
  }
35
- .switch__checked_11ccj .switch__switch_11ccj {
35
+ .switch__checked_wcc2q .switch__switch_wcc2q {
36
36
  background-color: var(--switch-checked-bg-inverted-color);
37
37
  }
38
- .switch__checked_11ccj .switch__switch_11ccj:hover {
38
+ .switch__checked_wcc2q .switch__switch_wcc2q:hover {
39
39
  background-color: var(--switch-checked-hover-bg-inverted-color);
40
40
  }
41
- .switch__disabled_11ccj .switch__label_11ccj {
41
+ .switch__disabled_wcc2q .switch__label_wcc2q {
42
42
  color: var(--switch-disabled-inverted-color);
43
43
  }
44
- .switch__disabled_11ccj .switch__hint_11ccj {
44
+ .switch__disabled_wcc2q .switch__hint_wcc2q {
45
45
  color: var(--switch-disabled-inverted-color);
46
46
  }
47
- .switch__disabled_11ccj .switch__switch_11ccj {
47
+ .switch__disabled_wcc2q .switch__switch_wcc2q {
48
48
  background-color: var(--switch-disabled-bg-inverted-color);
49
49
  }
50
- .switch__disabled_11ccj .switch__switch_11ccj:before {
50
+ .switch__disabled_wcc2q .switch__switch_wcc2q:before {
51
51
  background-color: var(--switch-icon-disabled-inverted-color);
52
52
  }
53
- .switch__disabled_11ccj.switch__checked_11ccj .switch__switch_11ccj {
53
+ .switch__disabled_wcc2q.switch__checked_wcc2q .switch__switch_wcc2q {
54
54
  background-color: var(--switch-disabled-checked-bg-inverted-color);
55
55
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  require('./inverted.css');
4
4
 
5
- var invertedStyles = {"switch":"switch__switch_11ccj","label":"switch__label_11ccj","hint":"switch__hint_11ccj","checked":"switch__checked_11ccj","disabled":"switch__disabled_11ccj"};
5
+ var invertedStyles = {"switch":"switch__switch_wcc2q","label":"switch__label_wcc2q","hint":"switch__hint_wcc2q","checked":"switch__checked_wcc2q","disabled":"switch__disabled_wcc2q"};
6
6
 
7
7
  module.exports = invertedStyles;
8
8
  //# sourceMappingURL=inverted.module.css.js.map
@@ -20,36 +20,36 @@
20
20
  --switch-disabled-checked-bg-color: var(--switch-disabled-bg-color);
21
21
  --switch-icon-disabled-color: var(--color-light-neutral-translucent-500);
22
22
  }
23
- .switch__switch_1cr6w {
23
+ .switch__switch_17r6f {
24
24
  background-color: var(--switch-bg-color);
25
25
  }
26
- .switch__switch_1cr6w:hover {
26
+ .switch__switch_17r6f:hover {
27
27
  background-color: var(--switch-hover-bg-color);
28
28
  }
29
- .switch__label_1cr6w {
29
+ .switch__label_17r6f {
30
30
  color: var(--switch-label-color);
31
31
  }
32
- .switch__hint_1cr6w {
32
+ .switch__hint_17r6f {
33
33
  color: var(--switch-hint-color);
34
34
  }
35
- .switch__checked_1cr6w .switch__switch_1cr6w {
35
+ .switch__checked_17r6f .switch__switch_17r6f {
36
36
  background-color: var(--switch-checked-bg-color);
37
37
  }
38
- .switch__checked_1cr6w .switch__switch_1cr6w:hover {
38
+ .switch__checked_17r6f .switch__switch_17r6f:hover {
39
39
  background-color: var(--switch-checked-hover-bg-color);
40
40
  }
41
- .switch__disabled_1cr6w .switch__label_1cr6w {
41
+ .switch__disabled_17r6f .switch__label_17r6f {
42
42
  color: var(--switch-disabled-color);
43
43
  }
44
- .switch__disabled_1cr6w .switch__hint_1cr6w {
44
+ .switch__disabled_17r6f .switch__hint_17r6f {
45
45
  color: var(--switch-disabled-color);
46
46
  }
47
- .switch__disabled_1cr6w .switch__switch_1cr6w {
47
+ .switch__disabled_17r6f .switch__switch_17r6f {
48
48
  background-color: var(--switch-disabled-bg-color);
49
49
  }
50
- .switch__disabled_1cr6w .switch__switch_1cr6w:before {
50
+ .switch__disabled_17r6f .switch__switch_17r6f:before {
51
51
  background-color: var(--switch-icon-disabled-color);
52
52
  }
53
- .switch__disabled_1cr6w.switch__checked_1cr6w .switch__switch_1cr6w {
53
+ .switch__disabled_17r6f.switch__checked_17r6f .switch__switch_17r6f {
54
54
  background-color: var(--switch-disabled-checked-bg-color);
55
55
  }
@@ -1,6 +1,6 @@
1
1
  import './default.css';
2
2
 
3
- const defaultStyles = {"switch":"switch__switch_1cr6w","label":"switch__label_1cr6w","hint":"switch__hint_1cr6w","checked":"switch__checked_1cr6w","disabled":"switch__disabled_1cr6w"};
3
+ const defaultStyles = {"switch":"switch__switch_17r6f","label":"switch__label_17r6f","hint":"switch__hint_17r6f","checked":"switch__checked_17r6f","disabled":"switch__disabled_17r6f"};
4
4
 
5
5
  export { defaultStyles as default };
6
6
  //# sourceMappingURL=default.module.css.js.map
package/modern/index.css CHANGED
@@ -35,7 +35,7 @@
35
35
  --switch-error-color: var(--color-light-text-negative);
36
36
  --switch-icon-color: var(--color-static-neutral-0);
37
37
  }
38
- .switch__component_afshm {
38
+ .switch__component_756jd {
39
39
  display: inline-flex;
40
40
  align-items: flex-start;
41
41
  margin: var(--gap-0);
@@ -44,25 +44,25 @@
44
44
  cursor: pointer;
45
45
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
46
46
  }
47
- .switch__component_afshm input {
47
+ .switch__component_756jd input {
48
48
  opacity: 0;
49
49
  position: absolute;
50
50
  }
51
- .switch__start_afshm {
51
+ .switch__start_756jd {
52
52
  align-items: flex-start;
53
53
  }
54
- .switch__center_afshm {
54
+ .switch__center_756jd {
55
55
  align-items: center;
56
56
  }
57
- .switch__addons_afshm {
57
+ .switch__addons_756jd {
58
58
  margin-left: auto;
59
59
  padding-left: var(--gap-16);
60
60
  line-height: 24px;
61
61
  }
62
- .switch__block_afshm {
62
+ .switch__block_756jd {
63
63
  width: 100%;
64
64
  }
65
- .switch__switch_afshm {
65
+ .switch__switch_756jd {
66
66
  position: relative;
67
67
  display: block;
68
68
  border-radius: var(--border-radius-16);
@@ -76,12 +76,12 @@
76
76
  border-color 0.2s ease;
77
77
  box-sizing: border-box;
78
78
  }
79
- .switch__switchSkeleton_afshm {
79
+ .switch__switchSkeleton_756jd {
80
80
  width: 36px;
81
81
  height: 20px;
82
82
  margin: var(--gap-2);
83
83
  }
84
- .switch__switch_afshm:before {
84
+ .switch__switch_756jd:before {
85
85
  content: '';
86
86
  position: absolute;
87
87
  top: var(--gap-0);
@@ -94,65 +94,65 @@
94
94
  box-sizing: border-box;
95
95
  transition: transform 0.2s ease;
96
96
  }
97
- .switch__content_afshm {
97
+ .switch__content_756jd {
98
98
  margin-left: var(--gap-12);
99
99
  flex-grow: 1;
100
100
  }
101
- .switch__label_afshm {
101
+ .switch__label_756jd {
102
102
  font-size: 16px;
103
103
  line-height: 24px;
104
104
  font-weight: 400;
105
105
  font-family: var(--font-family-system);
106
106
  display: block;
107
107
  }
108
- .switch__labelWrap_afshm:not(:only-child) {
108
+ .switch__labelWrap_756jd:not(:only-child) {
109
109
  margin-bottom: var(--gap-4);
110
110
  }
111
- .switch__labelWrap_afshm.switch__loading_afshm {
111
+ .switch__labelWrap_756jd.switch__loading_756jd {
112
112
  height: var(--gap-12);
113
113
  margin: var(--gap-6) 0;
114
114
  }
115
- .switch__labelWrap_afshm.switch__loading_afshm:not(:only-child) {
115
+ .switch__labelWrap_756jd.switch__loading_756jd:not(:only-child) {
116
116
  margin-bottom: var(--gap-2s);
117
117
  }
118
- .switch__errorMessage_afshm {
118
+ .switch__errorMessage_756jd {
119
119
  font-size: 14px;
120
120
  line-height: 18px;
121
121
  font-weight: 400;
122
122
  font-family: var(--font-family-system);
123
123
  color: var(--switch-error-color);
124
124
  }
125
- .switch__hint_afshm {
125
+ .switch__hint_756jd {
126
126
  font-size: 14px;
127
127
  line-height: 18px;
128
128
  font-weight: 400;
129
129
  font-family: var(--font-family-system);
130
130
  display: block;
131
131
  }
132
- .switch__hintWrap_afshm.switch__loading_afshm {
132
+ .switch__hintWrap_756jd.switch__loading_756jd {
133
133
  height: var(--gap-10);
134
134
  margin-bottom: var(--gap-4);
135
135
  }
136
- .switch__component_afshm.switch__reversed_afshm {
136
+ .switch__component_756jd.switch__reversed_756jd {
137
137
  flex-direction: row-reverse;
138
138
  }
139
- .switch__reversed_afshm .switch__content_afshm {
139
+ .switch__reversed_756jd .switch__content_756jd {
140
140
  margin-right: var(--gap-16);
141
141
  margin-left: var(--gap-0);
142
142
  }
143
- .switch__reversed_afshm .switch__addons_afshm {
143
+ .switch__reversed_756jd .switch__addons_756jd {
144
144
  margin-left: var(--gap-0);
145
145
  padding-left: var(--gap-0);
146
146
  margin-right: auto;
147
147
  padding-right: var(--gap-16);
148
148
  }
149
- .switch__checked_afshm .switch__switch_afshm:before {
149
+ .switch__checked_756jd .switch__switch_756jd:before {
150
150
  transform: translateX(16px);
151
151
  }
152
- .switch__disabled_afshm {
152
+ .switch__disabled_756jd {
153
153
  cursor: var(--disabled-cursor);
154
154
  }
155
- .switch__focused_afshm .switch__switch_afshm {
155
+ .switch__focused_756jd .switch__switch_756jd {
156
156
  outline: 2px solid var(--focus-color);
157
157
  outline-offset: 2px;
158
158
  }
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- const styles = {"component":"switch__component_afshm","start":"switch__start_afshm","center":"switch__center_afshm","addons":"switch__addons_afshm","block":"switch__block_afshm","switch":"switch__switch_afshm","switchSkeleton":"switch__switchSkeleton_afshm","content":"switch__content_afshm","label":"switch__label_afshm","labelWrap":"switch__labelWrap_afshm","loading":"switch__loading_afshm","errorMessage":"switch__errorMessage_afshm","hint":"switch__hint_afshm","hintWrap":"switch__hintWrap_afshm","reversed":"switch__reversed_afshm","checked":"switch__checked_afshm","disabled":"switch__disabled_afshm","focused":"switch__focused_afshm"};
3
+ const styles = {"component":"switch__component_756jd","start":"switch__start_756jd","center":"switch__center_756jd","addons":"switch__addons_756jd","block":"switch__block_756jd","switch":"switch__switch_756jd","switchSkeleton":"switch__switchSkeleton_756jd","content":"switch__content_756jd","label":"switch__label_756jd","labelWrap":"switch__labelWrap_756jd","loading":"switch__loading_756jd","errorMessage":"switch__errorMessage_756jd","hint":"switch__hint_756jd","hintWrap":"switch__hintWrap_756jd","reversed":"switch__reversed_756jd","checked":"switch__checked_756jd","disabled":"switch__disabled_756jd","focused":"switch__focused_756jd"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=index.module.css.js.map
@@ -20,36 +20,36 @@
20
20
  --switch-disabled-checked-bg-inverted-color: var(--switch-disabled-bg-inverted-color);
21
21
  --switch-icon-disabled-inverted-color: var(--color-light-neutral-translucent-500-inverted);
22
22
  }
23
- .switch__switch_11ccj {
23
+ .switch__switch_wcc2q {
24
24
  background-color: var(--switch-bg-inverted-color);
25
25
  }
26
- .switch__switch_11ccj:hover {
26
+ .switch__switch_wcc2q:hover {
27
27
  background-color: var(--switch-hover-bg-inverted-color);
28
28
  }
29
- .switch__label_11ccj {
29
+ .switch__label_wcc2q {
30
30
  color: var(--switch-label-inverted-color);
31
31
  }
32
- .switch__hint_11ccj {
32
+ .switch__hint_wcc2q {
33
33
  color: var(--switch-hint-inverted-color);
34
34
  }
35
- .switch__checked_11ccj .switch__switch_11ccj {
35
+ .switch__checked_wcc2q .switch__switch_wcc2q {
36
36
  background-color: var(--switch-checked-bg-inverted-color);
37
37
  }
38
- .switch__checked_11ccj .switch__switch_11ccj:hover {
38
+ .switch__checked_wcc2q .switch__switch_wcc2q:hover {
39
39
  background-color: var(--switch-checked-hover-bg-inverted-color);
40
40
  }
41
- .switch__disabled_11ccj .switch__label_11ccj {
41
+ .switch__disabled_wcc2q .switch__label_wcc2q {
42
42
  color: var(--switch-disabled-inverted-color);
43
43
  }
44
- .switch__disabled_11ccj .switch__hint_11ccj {
44
+ .switch__disabled_wcc2q .switch__hint_wcc2q {
45
45
  color: var(--switch-disabled-inverted-color);
46
46
  }
47
- .switch__disabled_11ccj .switch__switch_11ccj {
47
+ .switch__disabled_wcc2q .switch__switch_wcc2q {
48
48
  background-color: var(--switch-disabled-bg-inverted-color);
49
49
  }
50
- .switch__disabled_11ccj .switch__switch_11ccj:before {
50
+ .switch__disabled_wcc2q .switch__switch_wcc2q:before {
51
51
  background-color: var(--switch-icon-disabled-inverted-color);
52
52
  }
53
- .switch__disabled_11ccj.switch__checked_11ccj .switch__switch_11ccj {
53
+ .switch__disabled_wcc2q.switch__checked_wcc2q .switch__switch_wcc2q {
54
54
  background-color: var(--switch-disabled-checked-bg-inverted-color);
55
55
  }
@@ -1,6 +1,6 @@
1
1
  import './inverted.css';
2
2
 
3
- const invertedStyles = {"switch":"switch__switch_11ccj","label":"switch__label_11ccj","hint":"switch__hint_11ccj","checked":"switch__checked_11ccj","disabled":"switch__disabled_11ccj"};
3
+ const invertedStyles = {"switch":"switch__switch_wcc2q","label":"switch__label_wcc2q","hint":"switch__hint_wcc2q","checked":"switch__checked_wcc2q","disabled":"switch__disabled_wcc2q"};
4
4
 
5
5
  export { invertedStyles as default };
6
6
  //# sourceMappingURL=inverted.module.css.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-switch",
3
- "version": "6.1.0",
3
+ "version": "6.1.1",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -11,7 +11,7 @@
11
11
  "module": "./esm/index.js",
12
12
  "dependencies": {
13
13
  "@alfalab/core-components-shared": "^2.1.1",
14
- "@alfalab/core-components-skeleton": "^7.0.2",
14
+ "@alfalab/core-components-skeleton": "^7.0.3",
15
15
  "@alfalab/hooks": "^1.13.1",
16
16
  "classnames": "^2.5.1",
17
17
  "react-merge-refs": "^1.1.0",