@alfalab/core-components-switch 6.1.3-alfasans → 6.1.4-alfasans

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_i46hz {
23
+ .switch__switch_1ehl5 {
24
24
  background-color: var(--switch-bg-color);
25
25
  }
26
- .switch__switch_i46hz:hover {
26
+ .switch__switch_1ehl5:hover {
27
27
  background-color: var(--switch-hover-bg-color);
28
28
  }
29
- .switch__label_i46hz {
29
+ .switch__label_1ehl5 {
30
30
  color: var(--switch-label-color);
31
31
  }
32
- .switch__hint_i46hz {
32
+ .switch__hint_1ehl5 {
33
33
  color: var(--switch-hint-color);
34
34
  }
35
- .switch__checked_i46hz .switch__switch_i46hz {
35
+ .switch__checked_1ehl5 .switch__switch_1ehl5 {
36
36
  background-color: var(--switch-checked-bg-color);
37
37
  }
38
- .switch__checked_i46hz .switch__switch_i46hz:hover {
38
+ .switch__checked_1ehl5 .switch__switch_1ehl5:hover {
39
39
  background-color: var(--switch-checked-hover-bg-color);
40
40
  }
41
- .switch__disabled_i46hz .switch__label_i46hz {
41
+ .switch__disabled_1ehl5 .switch__label_1ehl5 {
42
42
  color: var(--switch-disabled-color);
43
43
  }
44
- .switch__disabled_i46hz .switch__hint_i46hz {
44
+ .switch__disabled_1ehl5 .switch__hint_1ehl5 {
45
45
  color: var(--switch-disabled-color);
46
46
  }
47
- .switch__disabled_i46hz .switch__switch_i46hz {
47
+ .switch__disabled_1ehl5 .switch__switch_1ehl5 {
48
48
  background-color: var(--switch-disabled-bg-color);
49
49
  }
50
- .switch__disabled_i46hz .switch__switch_i46hz:before {
50
+ .switch__disabled_1ehl5 .switch__switch_1ehl5:before {
51
51
  background-color: var(--switch-icon-disabled-color);
52
52
  }
53
- .switch__disabled_i46hz.switch__checked_i46hz .switch__switch_i46hz {
53
+ .switch__disabled_1ehl5.switch__checked_1ehl5 .switch__switch_1ehl5 {
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_i46hz","label":"switch__label_i46hz","hint":"switch__hint_i46hz","checked":"switch__checked_i46hz","disabled":"switch__disabled_i46hz"};
5
+ var defaultStyles = {"switch":"switch__switch_1ehl5","label":"switch__label_1ehl5","hint":"switch__hint_1ehl5","checked":"switch__checked_1ehl5","disabled":"switch__disabled_1ehl5"};
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_i46hz {
23
+ .switch__switch_1ehl5 {
24
24
  background-color: var(--switch-bg-color);
25
25
  }
26
- .switch__switch_i46hz:hover {
26
+ .switch__switch_1ehl5:hover {
27
27
  background-color: var(--switch-hover-bg-color);
28
28
  }
29
- .switch__label_i46hz {
29
+ .switch__label_1ehl5 {
30
30
  color: var(--switch-label-color);
31
31
  }
32
- .switch__hint_i46hz {
32
+ .switch__hint_1ehl5 {
33
33
  color: var(--switch-hint-color);
34
34
  }
35
- .switch__checked_i46hz .switch__switch_i46hz {
35
+ .switch__checked_1ehl5 .switch__switch_1ehl5 {
36
36
  background-color: var(--switch-checked-bg-color);
37
37
  }
38
- .switch__checked_i46hz .switch__switch_i46hz:hover {
38
+ .switch__checked_1ehl5 .switch__switch_1ehl5:hover {
39
39
  background-color: var(--switch-checked-hover-bg-color);
40
40
  }
41
- .switch__disabled_i46hz .switch__label_i46hz {
41
+ .switch__disabled_1ehl5 .switch__label_1ehl5 {
42
42
  color: var(--switch-disabled-color);
43
43
  }
44
- .switch__disabled_i46hz .switch__hint_i46hz {
44
+ .switch__disabled_1ehl5 .switch__hint_1ehl5 {
45
45
  color: var(--switch-disabled-color);
46
46
  }
47
- .switch__disabled_i46hz .switch__switch_i46hz {
47
+ .switch__disabled_1ehl5 .switch__switch_1ehl5 {
48
48
  background-color: var(--switch-disabled-bg-color);
49
49
  }
50
- .switch__disabled_i46hz .switch__switch_i46hz:before {
50
+ .switch__disabled_1ehl5 .switch__switch_1ehl5:before {
51
51
  background-color: var(--switch-icon-disabled-color);
52
52
  }
53
- .switch__disabled_i46hz.switch__checked_i46hz .switch__switch_i46hz {
53
+ .switch__disabled_1ehl5.switch__checked_1ehl5 .switch__switch_1ehl5 {
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_i46hz","label":"switch__label_i46hz","hint":"switch__hint_i46hz","checked":"switch__checked_i46hz","disabled":"switch__disabled_i46hz"};
3
+ var defaultStyles = {"switch":"switch__switch_1ehl5","label":"switch__label_1ehl5","hint":"switch__hint_1ehl5","checked":"switch__checked_1ehl5","disabled":"switch__disabled_1ehl5"};
4
4
 
5
5
  export { defaultStyles as default };
6
6
  //# sourceMappingURL=default.module.css.js.map
package/esm/index.css CHANGED
@@ -36,7 +36,7 @@
36
36
  --switch-error-color: var(--color-light-text-negative);
37
37
  --switch-icon-color: var(--color-static-neutral-0);
38
38
  }
39
- .switch__component_1vyf7 {
39
+ .switch__component_wlvxc {
40
40
  display: inline-flex;
41
41
  align-items: flex-start;
42
42
  margin: var(--gap-0);
@@ -45,25 +45,25 @@
45
45
  cursor: pointer;
46
46
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
47
47
  }
48
- .switch__component_1vyf7 input {
48
+ .switch__component_wlvxc input {
49
49
  opacity: 0;
50
50
  position: absolute;
51
51
  }
52
- .switch__start_1vyf7 {
52
+ .switch__start_wlvxc {
53
53
  align-items: flex-start;
54
54
  }
55
- .switch__center_1vyf7 {
55
+ .switch__center_wlvxc {
56
56
  align-items: center;
57
57
  }
58
- .switch__addons_1vyf7 {
58
+ .switch__addons_wlvxc {
59
59
  margin-left: auto;
60
60
  padding-left: var(--gap-16);
61
61
  line-height: 24px;
62
62
  }
63
- .switch__block_1vyf7 {
63
+ .switch__block_wlvxc {
64
64
  width: 100%;
65
65
  }
66
- .switch__switch_1vyf7 {
66
+ .switch__switch_wlvxc {
67
67
  position: relative;
68
68
  display: block;
69
69
  border-radius: var(--border-radius-16);
@@ -77,12 +77,12 @@
77
77
  border-color 0.2s ease;
78
78
  box-sizing: border-box;
79
79
  }
80
- .switch__switchSkeleton_1vyf7 {
80
+ .switch__switchSkeleton_wlvxc {
81
81
  width: 36px;
82
82
  height: 20px;
83
83
  margin: var(--gap-2);
84
84
  }
85
- .switch__switch_1vyf7:before {
85
+ .switch__switch_wlvxc:before {
86
86
  content: '';
87
87
  position: absolute;
88
88
  top: var(--gap-0);
@@ -95,11 +95,11 @@
95
95
  box-sizing: border-box;
96
96
  transition: transform 0.2s ease;
97
97
  }
98
- .switch__content_1vyf7 {
98
+ .switch__content_wlvxc {
99
99
  margin-left: var(--gap-12);
100
100
  flex-grow: 1;
101
101
  }
102
- .switch__label_1vyf7 {
102
+ .switch__label_wlvxc {
103
103
  font-size: 16px;
104
104
  line-height: 24px;
105
105
  font-weight: 400;
@@ -107,17 +107,17 @@
107
107
  font-family: var(--font-family-alfasans);
108
108
  display: block;
109
109
  }
110
- .switch__labelWrap_1vyf7:not(:only-child) {
110
+ .switch__labelWrap_wlvxc:not(:only-child) {
111
111
  margin-bottom: var(--gap-4);
112
112
  }
113
- .switch__labelWrap_1vyf7.switch__loading_1vyf7 {
113
+ .switch__labelWrap_wlvxc.switch__loading_wlvxc {
114
114
  height: var(--gap-12);
115
115
  margin: var(--gap-6) 0;
116
116
  }
117
- .switch__labelWrap_1vyf7.switch__loading_1vyf7:not(:only-child) {
117
+ .switch__labelWrap_wlvxc.switch__loading_wlvxc:not(:only-child) {
118
118
  margin-bottom: var(--gap-2s);
119
119
  }
120
- .switch__errorMessage_1vyf7 {
120
+ .switch__errorMessage_wlvxc {
121
121
  font-size: 14px;
122
122
  line-height: 18px;
123
123
  font-weight: 400;
@@ -125,7 +125,7 @@
125
125
  font-family: var(--font-family-alfasans);
126
126
  color: var(--switch-error-color);
127
127
  }
128
- .switch__hint_1vyf7 {
128
+ .switch__hint_wlvxc {
129
129
  font-size: 14px;
130
130
  line-height: 18px;
131
131
  font-weight: 400;
@@ -133,30 +133,30 @@
133
133
  font-family: var(--font-family-alfasans);
134
134
  display: block;
135
135
  }
136
- .switch__hintWrap_1vyf7.switch__loading_1vyf7 {
136
+ .switch__hintWrap_wlvxc.switch__loading_wlvxc {
137
137
  height: var(--gap-10);
138
138
  margin-bottom: var(--gap-4);
139
139
  }
140
- .switch__component_1vyf7.switch__reversed_1vyf7 {
140
+ .switch__component_wlvxc.switch__reversed_wlvxc {
141
141
  flex-direction: row-reverse;
142
142
  }
143
- .switch__reversed_1vyf7 .switch__content_1vyf7 {
143
+ .switch__reversed_wlvxc .switch__content_wlvxc {
144
144
  margin-right: var(--gap-16);
145
145
  margin-left: var(--gap-0);
146
146
  }
147
- .switch__reversed_1vyf7 .switch__addons_1vyf7 {
147
+ .switch__reversed_wlvxc .switch__addons_wlvxc {
148
148
  margin-left: var(--gap-0);
149
149
  padding-left: var(--gap-0);
150
150
  margin-right: auto;
151
151
  padding-right: var(--gap-16);
152
152
  }
153
- .switch__checked_1vyf7 .switch__switch_1vyf7:before {
153
+ .switch__checked_wlvxc .switch__switch_wlvxc:before {
154
154
  transform: translateX(16px);
155
155
  }
156
- .switch__disabled_1vyf7 {
156
+ .switch__disabled_wlvxc {
157
157
  cursor: var(--disabled-cursor);
158
158
  }
159
- .switch__focused_1vyf7 .switch__switch_1vyf7 {
159
+ .switch__focused_wlvxc .switch__switch_wlvxc {
160
160
  outline: 2px solid var(--focus-color);
161
161
  outline-offset: 2px;
162
162
  }
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- var styles = {"component":"switch__component_1vyf7","start":"switch__start_1vyf7","center":"switch__center_1vyf7","addons":"switch__addons_1vyf7","block":"switch__block_1vyf7","switch":"switch__switch_1vyf7","switchSkeleton":"switch__switchSkeleton_1vyf7","content":"switch__content_1vyf7","label":"switch__label_1vyf7","labelWrap":"switch__labelWrap_1vyf7","loading":"switch__loading_1vyf7","errorMessage":"switch__errorMessage_1vyf7","hint":"switch__hint_1vyf7","hintWrap":"switch__hintWrap_1vyf7","reversed":"switch__reversed_1vyf7","checked":"switch__checked_1vyf7","disabled":"switch__disabled_1vyf7","focused":"switch__focused_1vyf7"};
3
+ var styles = {"component":"switch__component_wlvxc","start":"switch__start_wlvxc","center":"switch__center_wlvxc","addons":"switch__addons_wlvxc","block":"switch__block_wlvxc","switch":"switch__switch_wlvxc","switchSkeleton":"switch__switchSkeleton_wlvxc","content":"switch__content_wlvxc","label":"switch__label_wlvxc","labelWrap":"switch__labelWrap_wlvxc","loading":"switch__loading_wlvxc","errorMessage":"switch__errorMessage_wlvxc","hint":"switch__hint_wlvxc","hintWrap":"switch__hintWrap_wlvxc","reversed":"switch__reversed_wlvxc","checked":"switch__checked_wlvxc","disabled":"switch__disabled_wlvxc","focused":"switch__focused_wlvxc"};
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_exlng {
23
+ .switch__switch_1bb0b {
24
24
  background-color: var(--switch-bg-inverted-color);
25
25
  }
26
- .switch__switch_exlng:hover {
26
+ .switch__switch_1bb0b:hover {
27
27
  background-color: var(--switch-hover-bg-inverted-color);
28
28
  }
29
- .switch__label_exlng {
29
+ .switch__label_1bb0b {
30
30
  color: var(--switch-label-inverted-color);
31
31
  }
32
- .switch__hint_exlng {
32
+ .switch__hint_1bb0b {
33
33
  color: var(--switch-hint-inverted-color);
34
34
  }
35
- .switch__checked_exlng .switch__switch_exlng {
35
+ .switch__checked_1bb0b .switch__switch_1bb0b {
36
36
  background-color: var(--switch-checked-bg-inverted-color);
37
37
  }
38
- .switch__checked_exlng .switch__switch_exlng:hover {
38
+ .switch__checked_1bb0b .switch__switch_1bb0b:hover {
39
39
  background-color: var(--switch-checked-hover-bg-inverted-color);
40
40
  }
41
- .switch__disabled_exlng .switch__label_exlng {
41
+ .switch__disabled_1bb0b .switch__label_1bb0b {
42
42
  color: var(--switch-disabled-inverted-color);
43
43
  }
44
- .switch__disabled_exlng .switch__hint_exlng {
44
+ .switch__disabled_1bb0b .switch__hint_1bb0b {
45
45
  color: var(--switch-disabled-inverted-color);
46
46
  }
47
- .switch__disabled_exlng .switch__switch_exlng {
47
+ .switch__disabled_1bb0b .switch__switch_1bb0b {
48
48
  background-color: var(--switch-disabled-bg-inverted-color);
49
49
  }
50
- .switch__disabled_exlng .switch__switch_exlng:before {
50
+ .switch__disabled_1bb0b .switch__switch_1bb0b:before {
51
51
  background-color: var(--switch-icon-disabled-inverted-color);
52
52
  }
53
- .switch__disabled_exlng.switch__checked_exlng .switch__switch_exlng {
53
+ .switch__disabled_1bb0b.switch__checked_1bb0b .switch__switch_1bb0b {
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_exlng","label":"switch__label_exlng","hint":"switch__hint_exlng","checked":"switch__checked_exlng","disabled":"switch__disabled_exlng"};
3
+ var invertedStyles = {"switch":"switch__switch_1bb0b","label":"switch__label_1bb0b","hint":"switch__hint_1bb0b","checked":"switch__checked_1bb0b","disabled":"switch__disabled_1bb0b"};
4
4
 
5
5
  export { invertedStyles as default };
6
6
  //# sourceMappingURL=inverted.module.css.js.map
package/index.css CHANGED
@@ -36,7 +36,7 @@
36
36
  --switch-error-color: var(--color-light-text-negative);
37
37
  --switch-icon-color: var(--color-static-neutral-0);
38
38
  }
39
- .switch__component_1vyf7 {
39
+ .switch__component_wlvxc {
40
40
  display: inline-flex;
41
41
  align-items: flex-start;
42
42
  margin: var(--gap-0);
@@ -45,25 +45,25 @@
45
45
  cursor: pointer;
46
46
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
47
47
  }
48
- .switch__component_1vyf7 input {
48
+ .switch__component_wlvxc input {
49
49
  opacity: 0;
50
50
  position: absolute;
51
51
  }
52
- .switch__start_1vyf7 {
52
+ .switch__start_wlvxc {
53
53
  align-items: flex-start;
54
54
  }
55
- .switch__center_1vyf7 {
55
+ .switch__center_wlvxc {
56
56
  align-items: center;
57
57
  }
58
- .switch__addons_1vyf7 {
58
+ .switch__addons_wlvxc {
59
59
  margin-left: auto;
60
60
  padding-left: var(--gap-16);
61
61
  line-height: 24px;
62
62
  }
63
- .switch__block_1vyf7 {
63
+ .switch__block_wlvxc {
64
64
  width: 100%;
65
65
  }
66
- .switch__switch_1vyf7 {
66
+ .switch__switch_wlvxc {
67
67
  position: relative;
68
68
  display: block;
69
69
  border-radius: var(--border-radius-16);
@@ -77,12 +77,12 @@
77
77
  border-color 0.2s ease;
78
78
  box-sizing: border-box;
79
79
  }
80
- .switch__switchSkeleton_1vyf7 {
80
+ .switch__switchSkeleton_wlvxc {
81
81
  width: 36px;
82
82
  height: 20px;
83
83
  margin: var(--gap-2);
84
84
  }
85
- .switch__switch_1vyf7:before {
85
+ .switch__switch_wlvxc:before {
86
86
  content: '';
87
87
  position: absolute;
88
88
  top: var(--gap-0);
@@ -95,11 +95,11 @@
95
95
  box-sizing: border-box;
96
96
  transition: transform 0.2s ease;
97
97
  }
98
- .switch__content_1vyf7 {
98
+ .switch__content_wlvxc {
99
99
  margin-left: var(--gap-12);
100
100
  flex-grow: 1;
101
101
  }
102
- .switch__label_1vyf7 {
102
+ .switch__label_wlvxc {
103
103
  font-size: 16px;
104
104
  line-height: 24px;
105
105
  font-weight: 400;
@@ -107,17 +107,17 @@
107
107
  font-family: var(--font-family-alfasans);
108
108
  display: block;
109
109
  }
110
- .switch__labelWrap_1vyf7:not(:only-child) {
110
+ .switch__labelWrap_wlvxc:not(:only-child) {
111
111
  margin-bottom: var(--gap-4);
112
112
  }
113
- .switch__labelWrap_1vyf7.switch__loading_1vyf7 {
113
+ .switch__labelWrap_wlvxc.switch__loading_wlvxc {
114
114
  height: var(--gap-12);
115
115
  margin: var(--gap-6) 0;
116
116
  }
117
- .switch__labelWrap_1vyf7.switch__loading_1vyf7:not(:only-child) {
117
+ .switch__labelWrap_wlvxc.switch__loading_wlvxc:not(:only-child) {
118
118
  margin-bottom: var(--gap-2s);
119
119
  }
120
- .switch__errorMessage_1vyf7 {
120
+ .switch__errorMessage_wlvxc {
121
121
  font-size: 14px;
122
122
  line-height: 18px;
123
123
  font-weight: 400;
@@ -125,7 +125,7 @@
125
125
  font-family: var(--font-family-alfasans);
126
126
  color: var(--switch-error-color);
127
127
  }
128
- .switch__hint_1vyf7 {
128
+ .switch__hint_wlvxc {
129
129
  font-size: 14px;
130
130
  line-height: 18px;
131
131
  font-weight: 400;
@@ -133,30 +133,30 @@
133
133
  font-family: var(--font-family-alfasans);
134
134
  display: block;
135
135
  }
136
- .switch__hintWrap_1vyf7.switch__loading_1vyf7 {
136
+ .switch__hintWrap_wlvxc.switch__loading_wlvxc {
137
137
  height: var(--gap-10);
138
138
  margin-bottom: var(--gap-4);
139
139
  }
140
- .switch__component_1vyf7.switch__reversed_1vyf7 {
140
+ .switch__component_wlvxc.switch__reversed_wlvxc {
141
141
  flex-direction: row-reverse;
142
142
  }
143
- .switch__reversed_1vyf7 .switch__content_1vyf7 {
143
+ .switch__reversed_wlvxc .switch__content_wlvxc {
144
144
  margin-right: var(--gap-16);
145
145
  margin-left: var(--gap-0);
146
146
  }
147
- .switch__reversed_1vyf7 .switch__addons_1vyf7 {
147
+ .switch__reversed_wlvxc .switch__addons_wlvxc {
148
148
  margin-left: var(--gap-0);
149
149
  padding-left: var(--gap-0);
150
150
  margin-right: auto;
151
151
  padding-right: var(--gap-16);
152
152
  }
153
- .switch__checked_1vyf7 .switch__switch_1vyf7:before {
153
+ .switch__checked_wlvxc .switch__switch_wlvxc:before {
154
154
  transform: translateX(16px);
155
155
  }
156
- .switch__disabled_1vyf7 {
156
+ .switch__disabled_wlvxc {
157
157
  cursor: var(--disabled-cursor);
158
158
  }
159
- .switch__focused_1vyf7 .switch__switch_1vyf7 {
159
+ .switch__focused_wlvxc .switch__switch_wlvxc {
160
160
  outline: 2px solid var(--focus-color);
161
161
  outline-offset: 2px;
162
162
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  require('./index.css');
4
4
 
5
- var styles = {"component":"switch__component_1vyf7","start":"switch__start_1vyf7","center":"switch__center_1vyf7","addons":"switch__addons_1vyf7","block":"switch__block_1vyf7","switch":"switch__switch_1vyf7","switchSkeleton":"switch__switchSkeleton_1vyf7","content":"switch__content_1vyf7","label":"switch__label_1vyf7","labelWrap":"switch__labelWrap_1vyf7","loading":"switch__loading_1vyf7","errorMessage":"switch__errorMessage_1vyf7","hint":"switch__hint_1vyf7","hintWrap":"switch__hintWrap_1vyf7","reversed":"switch__reversed_1vyf7","checked":"switch__checked_1vyf7","disabled":"switch__disabled_1vyf7","focused":"switch__focused_1vyf7"};
5
+ var styles = {"component":"switch__component_wlvxc","start":"switch__start_wlvxc","center":"switch__center_wlvxc","addons":"switch__addons_wlvxc","block":"switch__block_wlvxc","switch":"switch__switch_wlvxc","switchSkeleton":"switch__switchSkeleton_wlvxc","content":"switch__content_wlvxc","label":"switch__label_wlvxc","labelWrap":"switch__labelWrap_wlvxc","loading":"switch__loading_wlvxc","errorMessage":"switch__errorMessage_wlvxc","hint":"switch__hint_wlvxc","hintWrap":"switch__hintWrap_wlvxc","reversed":"switch__reversed_wlvxc","checked":"switch__checked_wlvxc","disabled":"switch__disabled_wlvxc","focused":"switch__focused_wlvxc"};
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_exlng {
23
+ .switch__switch_1bb0b {
24
24
  background-color: var(--switch-bg-inverted-color);
25
25
  }
26
- .switch__switch_exlng:hover {
26
+ .switch__switch_1bb0b:hover {
27
27
  background-color: var(--switch-hover-bg-inverted-color);
28
28
  }
29
- .switch__label_exlng {
29
+ .switch__label_1bb0b {
30
30
  color: var(--switch-label-inverted-color);
31
31
  }
32
- .switch__hint_exlng {
32
+ .switch__hint_1bb0b {
33
33
  color: var(--switch-hint-inverted-color);
34
34
  }
35
- .switch__checked_exlng .switch__switch_exlng {
35
+ .switch__checked_1bb0b .switch__switch_1bb0b {
36
36
  background-color: var(--switch-checked-bg-inverted-color);
37
37
  }
38
- .switch__checked_exlng .switch__switch_exlng:hover {
38
+ .switch__checked_1bb0b .switch__switch_1bb0b:hover {
39
39
  background-color: var(--switch-checked-hover-bg-inverted-color);
40
40
  }
41
- .switch__disabled_exlng .switch__label_exlng {
41
+ .switch__disabled_1bb0b .switch__label_1bb0b {
42
42
  color: var(--switch-disabled-inverted-color);
43
43
  }
44
- .switch__disabled_exlng .switch__hint_exlng {
44
+ .switch__disabled_1bb0b .switch__hint_1bb0b {
45
45
  color: var(--switch-disabled-inverted-color);
46
46
  }
47
- .switch__disabled_exlng .switch__switch_exlng {
47
+ .switch__disabled_1bb0b .switch__switch_1bb0b {
48
48
  background-color: var(--switch-disabled-bg-inverted-color);
49
49
  }
50
- .switch__disabled_exlng .switch__switch_exlng:before {
50
+ .switch__disabled_1bb0b .switch__switch_1bb0b:before {
51
51
  background-color: var(--switch-icon-disabled-inverted-color);
52
52
  }
53
- .switch__disabled_exlng.switch__checked_exlng .switch__switch_exlng {
53
+ .switch__disabled_1bb0b.switch__checked_1bb0b .switch__switch_1bb0b {
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_exlng","label":"switch__label_exlng","hint":"switch__hint_exlng","checked":"switch__checked_exlng","disabled":"switch__disabled_exlng"};
5
+ var invertedStyles = {"switch":"switch__switch_1bb0b","label":"switch__label_1bb0b","hint":"switch__hint_1bb0b","checked":"switch__checked_1bb0b","disabled":"switch__disabled_1bb0b"};
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_i46hz {
23
+ .switch__switch_1ehl5 {
24
24
  background-color: var(--switch-bg-color);
25
25
  }
26
- .switch__switch_i46hz:hover {
26
+ .switch__switch_1ehl5:hover {
27
27
  background-color: var(--switch-hover-bg-color);
28
28
  }
29
- .switch__label_i46hz {
29
+ .switch__label_1ehl5 {
30
30
  color: var(--switch-label-color);
31
31
  }
32
- .switch__hint_i46hz {
32
+ .switch__hint_1ehl5 {
33
33
  color: var(--switch-hint-color);
34
34
  }
35
- .switch__checked_i46hz .switch__switch_i46hz {
35
+ .switch__checked_1ehl5 .switch__switch_1ehl5 {
36
36
  background-color: var(--switch-checked-bg-color);
37
37
  }
38
- .switch__checked_i46hz .switch__switch_i46hz:hover {
38
+ .switch__checked_1ehl5 .switch__switch_1ehl5:hover {
39
39
  background-color: var(--switch-checked-hover-bg-color);
40
40
  }
41
- .switch__disabled_i46hz .switch__label_i46hz {
41
+ .switch__disabled_1ehl5 .switch__label_1ehl5 {
42
42
  color: var(--switch-disabled-color);
43
43
  }
44
- .switch__disabled_i46hz .switch__hint_i46hz {
44
+ .switch__disabled_1ehl5 .switch__hint_1ehl5 {
45
45
  color: var(--switch-disabled-color);
46
46
  }
47
- .switch__disabled_i46hz .switch__switch_i46hz {
47
+ .switch__disabled_1ehl5 .switch__switch_1ehl5 {
48
48
  background-color: var(--switch-disabled-bg-color);
49
49
  }
50
- .switch__disabled_i46hz .switch__switch_i46hz:before {
50
+ .switch__disabled_1ehl5 .switch__switch_1ehl5:before {
51
51
  background-color: var(--switch-icon-disabled-color);
52
52
  }
53
- .switch__disabled_i46hz.switch__checked_i46hz .switch__switch_i46hz {
53
+ .switch__disabled_1ehl5.switch__checked_1ehl5 .switch__switch_1ehl5 {
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_i46hz","label":"switch__label_i46hz","hint":"switch__hint_i46hz","checked":"switch__checked_i46hz","disabled":"switch__disabled_i46hz"};
3
+ const defaultStyles = {"switch":"switch__switch_1ehl5","label":"switch__label_1ehl5","hint":"switch__hint_1ehl5","checked":"switch__checked_1ehl5","disabled":"switch__disabled_1ehl5"};
4
4
 
5
5
  export { defaultStyles as default };
6
6
  //# sourceMappingURL=default.module.css.js.map
package/modern/index.css CHANGED
@@ -36,7 +36,7 @@
36
36
  --switch-error-color: var(--color-light-text-negative);
37
37
  --switch-icon-color: var(--color-static-neutral-0);
38
38
  }
39
- .switch__component_1vyf7 {
39
+ .switch__component_wlvxc {
40
40
  display: inline-flex;
41
41
  align-items: flex-start;
42
42
  margin: var(--gap-0);
@@ -45,25 +45,25 @@
45
45
  cursor: pointer;
46
46
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
47
47
  }
48
- .switch__component_1vyf7 input {
48
+ .switch__component_wlvxc input {
49
49
  opacity: 0;
50
50
  position: absolute;
51
51
  }
52
- .switch__start_1vyf7 {
52
+ .switch__start_wlvxc {
53
53
  align-items: flex-start;
54
54
  }
55
- .switch__center_1vyf7 {
55
+ .switch__center_wlvxc {
56
56
  align-items: center;
57
57
  }
58
- .switch__addons_1vyf7 {
58
+ .switch__addons_wlvxc {
59
59
  margin-left: auto;
60
60
  padding-left: var(--gap-16);
61
61
  line-height: 24px;
62
62
  }
63
- .switch__block_1vyf7 {
63
+ .switch__block_wlvxc {
64
64
  width: 100%;
65
65
  }
66
- .switch__switch_1vyf7 {
66
+ .switch__switch_wlvxc {
67
67
  position: relative;
68
68
  display: block;
69
69
  border-radius: var(--border-radius-16);
@@ -77,12 +77,12 @@
77
77
  border-color 0.2s ease;
78
78
  box-sizing: border-box;
79
79
  }
80
- .switch__switchSkeleton_1vyf7 {
80
+ .switch__switchSkeleton_wlvxc {
81
81
  width: 36px;
82
82
  height: 20px;
83
83
  margin: var(--gap-2);
84
84
  }
85
- .switch__switch_1vyf7:before {
85
+ .switch__switch_wlvxc:before {
86
86
  content: '';
87
87
  position: absolute;
88
88
  top: var(--gap-0);
@@ -95,11 +95,11 @@
95
95
  box-sizing: border-box;
96
96
  transition: transform 0.2s ease;
97
97
  }
98
- .switch__content_1vyf7 {
98
+ .switch__content_wlvxc {
99
99
  margin-left: var(--gap-12);
100
100
  flex-grow: 1;
101
101
  }
102
- .switch__label_1vyf7 {
102
+ .switch__label_wlvxc {
103
103
  font-size: 16px;
104
104
  line-height: 24px;
105
105
  font-weight: 400;
@@ -107,17 +107,17 @@
107
107
  font-family: var(--font-family-alfasans);
108
108
  display: block;
109
109
  }
110
- .switch__labelWrap_1vyf7:not(:only-child) {
110
+ .switch__labelWrap_wlvxc:not(:only-child) {
111
111
  margin-bottom: var(--gap-4);
112
112
  }
113
- .switch__labelWrap_1vyf7.switch__loading_1vyf7 {
113
+ .switch__labelWrap_wlvxc.switch__loading_wlvxc {
114
114
  height: var(--gap-12);
115
115
  margin: var(--gap-6) 0;
116
116
  }
117
- .switch__labelWrap_1vyf7.switch__loading_1vyf7:not(:only-child) {
117
+ .switch__labelWrap_wlvxc.switch__loading_wlvxc:not(:only-child) {
118
118
  margin-bottom: var(--gap-2s);
119
119
  }
120
- .switch__errorMessage_1vyf7 {
120
+ .switch__errorMessage_wlvxc {
121
121
  font-size: 14px;
122
122
  line-height: 18px;
123
123
  font-weight: 400;
@@ -125,7 +125,7 @@
125
125
  font-family: var(--font-family-alfasans);
126
126
  color: var(--switch-error-color);
127
127
  }
128
- .switch__hint_1vyf7 {
128
+ .switch__hint_wlvxc {
129
129
  font-size: 14px;
130
130
  line-height: 18px;
131
131
  font-weight: 400;
@@ -133,30 +133,30 @@
133
133
  font-family: var(--font-family-alfasans);
134
134
  display: block;
135
135
  }
136
- .switch__hintWrap_1vyf7.switch__loading_1vyf7 {
136
+ .switch__hintWrap_wlvxc.switch__loading_wlvxc {
137
137
  height: var(--gap-10);
138
138
  margin-bottom: var(--gap-4);
139
139
  }
140
- .switch__component_1vyf7.switch__reversed_1vyf7 {
140
+ .switch__component_wlvxc.switch__reversed_wlvxc {
141
141
  flex-direction: row-reverse;
142
142
  }
143
- .switch__reversed_1vyf7 .switch__content_1vyf7 {
143
+ .switch__reversed_wlvxc .switch__content_wlvxc {
144
144
  margin-right: var(--gap-16);
145
145
  margin-left: var(--gap-0);
146
146
  }
147
- .switch__reversed_1vyf7 .switch__addons_1vyf7 {
147
+ .switch__reversed_wlvxc .switch__addons_wlvxc {
148
148
  margin-left: var(--gap-0);
149
149
  padding-left: var(--gap-0);
150
150
  margin-right: auto;
151
151
  padding-right: var(--gap-16);
152
152
  }
153
- .switch__checked_1vyf7 .switch__switch_1vyf7:before {
153
+ .switch__checked_wlvxc .switch__switch_wlvxc:before {
154
154
  transform: translateX(16px);
155
155
  }
156
- .switch__disabled_1vyf7 {
156
+ .switch__disabled_wlvxc {
157
157
  cursor: var(--disabled-cursor);
158
158
  }
159
- .switch__focused_1vyf7 .switch__switch_1vyf7 {
159
+ .switch__focused_wlvxc .switch__switch_wlvxc {
160
160
  outline: 2px solid var(--focus-color);
161
161
  outline-offset: 2px;
162
162
  }
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- const styles = {"component":"switch__component_1vyf7","start":"switch__start_1vyf7","center":"switch__center_1vyf7","addons":"switch__addons_1vyf7","block":"switch__block_1vyf7","switch":"switch__switch_1vyf7","switchSkeleton":"switch__switchSkeleton_1vyf7","content":"switch__content_1vyf7","label":"switch__label_1vyf7","labelWrap":"switch__labelWrap_1vyf7","loading":"switch__loading_1vyf7","errorMessage":"switch__errorMessage_1vyf7","hint":"switch__hint_1vyf7","hintWrap":"switch__hintWrap_1vyf7","reversed":"switch__reversed_1vyf7","checked":"switch__checked_1vyf7","disabled":"switch__disabled_1vyf7","focused":"switch__focused_1vyf7"};
3
+ const styles = {"component":"switch__component_wlvxc","start":"switch__start_wlvxc","center":"switch__center_wlvxc","addons":"switch__addons_wlvxc","block":"switch__block_wlvxc","switch":"switch__switch_wlvxc","switchSkeleton":"switch__switchSkeleton_wlvxc","content":"switch__content_wlvxc","label":"switch__label_wlvxc","labelWrap":"switch__labelWrap_wlvxc","loading":"switch__loading_wlvxc","errorMessage":"switch__errorMessage_wlvxc","hint":"switch__hint_wlvxc","hintWrap":"switch__hintWrap_wlvxc","reversed":"switch__reversed_wlvxc","checked":"switch__checked_wlvxc","disabled":"switch__disabled_wlvxc","focused":"switch__focused_wlvxc"};
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_exlng {
23
+ .switch__switch_1bb0b {
24
24
  background-color: var(--switch-bg-inverted-color);
25
25
  }
26
- .switch__switch_exlng:hover {
26
+ .switch__switch_1bb0b:hover {
27
27
  background-color: var(--switch-hover-bg-inverted-color);
28
28
  }
29
- .switch__label_exlng {
29
+ .switch__label_1bb0b {
30
30
  color: var(--switch-label-inverted-color);
31
31
  }
32
- .switch__hint_exlng {
32
+ .switch__hint_1bb0b {
33
33
  color: var(--switch-hint-inverted-color);
34
34
  }
35
- .switch__checked_exlng .switch__switch_exlng {
35
+ .switch__checked_1bb0b .switch__switch_1bb0b {
36
36
  background-color: var(--switch-checked-bg-inverted-color);
37
37
  }
38
- .switch__checked_exlng .switch__switch_exlng:hover {
38
+ .switch__checked_1bb0b .switch__switch_1bb0b:hover {
39
39
  background-color: var(--switch-checked-hover-bg-inverted-color);
40
40
  }
41
- .switch__disabled_exlng .switch__label_exlng {
41
+ .switch__disabled_1bb0b .switch__label_1bb0b {
42
42
  color: var(--switch-disabled-inverted-color);
43
43
  }
44
- .switch__disabled_exlng .switch__hint_exlng {
44
+ .switch__disabled_1bb0b .switch__hint_1bb0b {
45
45
  color: var(--switch-disabled-inverted-color);
46
46
  }
47
- .switch__disabled_exlng .switch__switch_exlng {
47
+ .switch__disabled_1bb0b .switch__switch_1bb0b {
48
48
  background-color: var(--switch-disabled-bg-inverted-color);
49
49
  }
50
- .switch__disabled_exlng .switch__switch_exlng:before {
50
+ .switch__disabled_1bb0b .switch__switch_1bb0b:before {
51
51
  background-color: var(--switch-icon-disabled-inverted-color);
52
52
  }
53
- .switch__disabled_exlng.switch__checked_exlng .switch__switch_exlng {
53
+ .switch__disabled_1bb0b.switch__checked_1bb0b .switch__switch_1bb0b {
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_exlng","label":"switch__label_exlng","hint":"switch__hint_exlng","checked":"switch__checked_exlng","disabled":"switch__disabled_exlng"};
3
+ const invertedStyles = {"switch":"switch__switch_1bb0b","label":"switch__label_1bb0b","hint":"switch__hint_1bb0b","checked":"switch__checked_1bb0b","disabled":"switch__disabled_1bb0b"};
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.3-alfasans",
3
+ "version": "6.1.4-alfasans",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -13,7 +13,7 @@
13
13
  "build": "rollup -c ../../tools/rollup/rollup.config.mjs --silent"
14
14
  },
15
15
  "dependencies": {
16
- "@alfalab/core-components-shared": "2.2.1-alfasans",
16
+ "@alfalab/core-components-shared": "2.2.2-alfasans",
17
17
  "@alfalab/core-components-skeleton": "7.0.4-alfasans",
18
18
  "@alfalab/hooks": "^1.17.0",
19
19
  "classnames": "^2.5.1",
@@ -29,6 +29,6 @@
29
29
  "directory": "dist"
30
30
  },
31
31
  "gitHead": "f054fef20200664c65e2501ef1f916c555cdf05d",
32
- "themesVersion": "15.1.0-alfasans",
32
+ "themesVersion": "15.2.0-alfasans",
33
33
  "varsVersion": "11.1.0-alfasans"
34
34
  }