@alfalab/core-components-switch 6.1.0-alfasans → 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.
@@ -23,9 +23,8 @@
23
23
  --gap-16: var(--gap-m);
24
24
  }
25
25
  :root {
26
- --font-family-alfasans:
27
- 'Alfa Interface Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
28
- Helvetica, sans-serif;
26
+ --font-family-system:
27
+ system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, sans-serif;
29
28
  }
30
29
  :root {
31
30
  --focus-color: var(--color-light-status-info);
@@ -103,8 +102,7 @@
103
102
  font-size: 16px;
104
103
  line-height: 24px;
105
104
  font-weight: 400;
106
- letter-spacing: -0.24px;
107
- font-family: var(--font-family-alfasans);
105
+ font-family: var(--font-family-system);
108
106
  display: block;
109
107
  }
110
108
  .labelWrap:not(:only-child) {
@@ -121,16 +119,14 @@
121
119
  font-size: 14px;
122
120
  line-height: 18px;
123
121
  font-weight: 400;
124
- letter-spacing: -0.08px;
125
- font-family: var(--font-family-alfasans);
122
+ font-family: var(--font-family-system);
126
123
  color: var(--switch-error-color);
127
124
  }
128
125
  .hint {
129
126
  font-size: 14px;
130
127
  line-height: 18px;
131
128
  font-weight: 400;
132
- letter-spacing: -0.08px;
133
- font-family: var(--font-family-alfasans);
129
+ font-family: var(--font-family-system);
134
130
  display: block;
135
131
  }
136
132
  .hintWrap.loading {
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_18pzn {
23
+ .switch__switch_17r6f {
24
24
  background-color: var(--switch-bg-color);
25
25
  }
26
- .switch__switch_18pzn:hover {
26
+ .switch__switch_17r6f:hover {
27
27
  background-color: var(--switch-hover-bg-color);
28
28
  }
29
- .switch__label_18pzn {
29
+ .switch__label_17r6f {
30
30
  color: var(--switch-label-color);
31
31
  }
32
- .switch__hint_18pzn {
32
+ .switch__hint_17r6f {
33
33
  color: var(--switch-hint-color);
34
34
  }
35
- .switch__checked_18pzn .switch__switch_18pzn {
35
+ .switch__checked_17r6f .switch__switch_17r6f {
36
36
  background-color: var(--switch-checked-bg-color);
37
37
  }
38
- .switch__checked_18pzn .switch__switch_18pzn:hover {
38
+ .switch__checked_17r6f .switch__switch_17r6f:hover {
39
39
  background-color: var(--switch-checked-hover-bg-color);
40
40
  }
41
- .switch__disabled_18pzn .switch__label_18pzn {
41
+ .switch__disabled_17r6f .switch__label_17r6f {
42
42
  color: var(--switch-disabled-color);
43
43
  }
44
- .switch__disabled_18pzn .switch__hint_18pzn {
44
+ .switch__disabled_17r6f .switch__hint_17r6f {
45
45
  color: var(--switch-disabled-color);
46
46
  }
47
- .switch__disabled_18pzn .switch__switch_18pzn {
47
+ .switch__disabled_17r6f .switch__switch_17r6f {
48
48
  background-color: var(--switch-disabled-bg-color);
49
49
  }
50
- .switch__disabled_18pzn .switch__switch_18pzn:before {
50
+ .switch__disabled_17r6f .switch__switch_17r6f:before {
51
51
  background-color: var(--switch-icon-disabled-color);
52
52
  }
53
- .switch__disabled_18pzn.switch__checked_18pzn .switch__switch_18pzn {
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_18pzn","label":"switch__label_18pzn","hint":"switch__hint_18pzn","checked":"switch__checked_18pzn","disabled":"switch__disabled_18pzn"};
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_18pzn {
23
+ .switch__switch_17r6f {
24
24
  background-color: var(--switch-bg-color);
25
25
  }
26
- .switch__switch_18pzn:hover {
26
+ .switch__switch_17r6f:hover {
27
27
  background-color: var(--switch-hover-bg-color);
28
28
  }
29
- .switch__label_18pzn {
29
+ .switch__label_17r6f {
30
30
  color: var(--switch-label-color);
31
31
  }
32
- .switch__hint_18pzn {
32
+ .switch__hint_17r6f {
33
33
  color: var(--switch-hint-color);
34
34
  }
35
- .switch__checked_18pzn .switch__switch_18pzn {
35
+ .switch__checked_17r6f .switch__switch_17r6f {
36
36
  background-color: var(--switch-checked-bg-color);
37
37
  }
38
- .switch__checked_18pzn .switch__switch_18pzn:hover {
38
+ .switch__checked_17r6f .switch__switch_17r6f:hover {
39
39
  background-color: var(--switch-checked-hover-bg-color);
40
40
  }
41
- .switch__disabled_18pzn .switch__label_18pzn {
41
+ .switch__disabled_17r6f .switch__label_17r6f {
42
42
  color: var(--switch-disabled-color);
43
43
  }
44
- .switch__disabled_18pzn .switch__hint_18pzn {
44
+ .switch__disabled_17r6f .switch__hint_17r6f {
45
45
  color: var(--switch-disabled-color);
46
46
  }
47
- .switch__disabled_18pzn .switch__switch_18pzn {
47
+ .switch__disabled_17r6f .switch__switch_17r6f {
48
48
  background-color: var(--switch-disabled-bg-color);
49
49
  }
50
- .switch__disabled_18pzn .switch__switch_18pzn:before {
50
+ .switch__disabled_17r6f .switch__switch_17r6f:before {
51
51
  background-color: var(--switch-icon-disabled-color);
52
52
  }
53
- .switch__disabled_18pzn.switch__checked_18pzn .switch__switch_18pzn {
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_18pzn","label":"switch__label_18pzn","hint":"switch__hint_18pzn","checked":"switch__checked_18pzn","disabled":"switch__disabled_18pzn"};
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
@@ -23,9 +23,8 @@
23
23
  --gap-16: var(--gap-m);
24
24
  }
25
25
  :root {
26
- --font-family-alfasans:
27
- 'Alfa Interface Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
28
- Helvetica, sans-serif;
26
+ --font-family-system:
27
+ system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, sans-serif;
29
28
  }
30
29
  :root {
31
30
  --focus-color: var(--color-light-status-info);
@@ -36,7 +35,7 @@
36
35
  --switch-error-color: var(--color-light-text-negative);
37
36
  --switch-icon-color: var(--color-static-neutral-0);
38
37
  }
39
- .switch__component_12dhf {
38
+ .switch__component_756jd {
40
39
  display: inline-flex;
41
40
  align-items: flex-start;
42
41
  margin: var(--gap-0);
@@ -45,25 +44,25 @@
45
44
  cursor: pointer;
46
45
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
47
46
  }
48
- .switch__component_12dhf input {
47
+ .switch__component_756jd input {
49
48
  opacity: 0;
50
49
  position: absolute;
51
50
  }
52
- .switch__start_12dhf {
51
+ .switch__start_756jd {
53
52
  align-items: flex-start;
54
53
  }
55
- .switch__center_12dhf {
54
+ .switch__center_756jd {
56
55
  align-items: center;
57
56
  }
58
- .switch__addons_12dhf {
57
+ .switch__addons_756jd {
59
58
  margin-left: auto;
60
59
  padding-left: var(--gap-16);
61
60
  line-height: 24px;
62
61
  }
63
- .switch__block_12dhf {
62
+ .switch__block_756jd {
64
63
  width: 100%;
65
64
  }
66
- .switch__switch_12dhf {
65
+ .switch__switch_756jd {
67
66
  position: relative;
68
67
  display: block;
69
68
  border-radius: var(--border-radius-16);
@@ -77,12 +76,12 @@
77
76
  border-color 0.2s ease;
78
77
  box-sizing: border-box;
79
78
  }
80
- .switch__switchSkeleton_12dhf {
79
+ .switch__switchSkeleton_756jd {
81
80
  width: 36px;
82
81
  height: 20px;
83
82
  margin: var(--gap-2);
84
83
  }
85
- .switch__switch_12dhf:before {
84
+ .switch__switch_756jd:before {
86
85
  content: '';
87
86
  position: absolute;
88
87
  top: var(--gap-0);
@@ -95,68 +94,65 @@
95
94
  box-sizing: border-box;
96
95
  transition: transform 0.2s ease;
97
96
  }
98
- .switch__content_12dhf {
97
+ .switch__content_756jd {
99
98
  margin-left: var(--gap-12);
100
99
  flex-grow: 1;
101
100
  }
102
- .switch__label_12dhf {
101
+ .switch__label_756jd {
103
102
  font-size: 16px;
104
103
  line-height: 24px;
105
104
  font-weight: 400;
106
- letter-spacing: -0.24px;
107
- font-family: var(--font-family-alfasans);
105
+ font-family: var(--font-family-system);
108
106
  display: block;
109
107
  }
110
- .switch__labelWrap_12dhf:not(:only-child) {
108
+ .switch__labelWrap_756jd:not(:only-child) {
111
109
  margin-bottom: var(--gap-4);
112
110
  }
113
- .switch__labelWrap_12dhf.switch__loading_12dhf {
111
+ .switch__labelWrap_756jd.switch__loading_756jd {
114
112
  height: var(--gap-12);
115
113
  margin: var(--gap-6) 0;
116
114
  }
117
- .switch__labelWrap_12dhf.switch__loading_12dhf:not(:only-child) {
115
+ .switch__labelWrap_756jd.switch__loading_756jd:not(:only-child) {
118
116
  margin-bottom: var(--gap-2s);
119
117
  }
120
- .switch__errorMessage_12dhf {
118
+ .switch__errorMessage_756jd {
121
119
  font-size: 14px;
122
120
  line-height: 18px;
123
121
  font-weight: 400;
124
- letter-spacing: -0.08px;
125
- font-family: var(--font-family-alfasans);
122
+ font-family: var(--font-family-system);
126
123
  color: var(--switch-error-color);
127
124
  }
128
- .switch__hint_12dhf {
125
+ .switch__hint_756jd {
129
126
  font-size: 14px;
130
127
  line-height: 18px;
131
128
  font-weight: 400;
132
- letter-spacing: -0.08px;
133
- font-family: var(--font-family-alfasans);
129
+ font-family: var(--font-family-system);
134
130
  display: block;
135
131
  }
136
- .switch__hintWrap_12dhf.switch__loading_12dhf {
132
+ .switch__hintWrap_756jd.switch__loading_756jd {
137
133
  height: var(--gap-10);
138
134
  margin-bottom: var(--gap-4);
139
135
  }
140
- .switch__component_12dhf.switch__reversed_12dhf {
136
+ .switch__component_756jd.switch__reversed_756jd {
141
137
  flex-direction: row-reverse;
142
138
  }
143
- .switch__reversed_12dhf .switch__content_12dhf {
139
+ .switch__reversed_756jd .switch__content_756jd {
144
140
  margin-right: var(--gap-16);
145
141
  margin-left: var(--gap-0);
146
142
  }
147
- .switch__reversed_12dhf .switch__addons_12dhf {
143
+ .switch__reversed_756jd .switch__addons_756jd {
148
144
  margin-left: var(--gap-0);
149
145
  padding-left: var(--gap-0);
150
146
  margin-right: auto;
151
147
  padding-right: var(--gap-16);
152
148
  }
153
- .switch__checked_12dhf .switch__switch_12dhf:before {
149
+ .switch__checked_756jd .switch__switch_756jd:before {
154
150
  transform: translateX(16px);
155
151
  }
156
- .switch__disabled_12dhf {
152
+ .switch__disabled_756jd {
157
153
  cursor: var(--disabled-cursor);
158
154
  }
159
- .switch__focused_12dhf .switch__switch_12dhf {
155
+ .switch__focused_756jd .switch__switch_756jd {
160
156
  outline: 2px solid var(--focus-color);
161
157
  outline-offset: 2px;
162
158
  }
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- var styles = {"component":"switch__component_12dhf","start":"switch__start_12dhf","center":"switch__center_12dhf","addons":"switch__addons_12dhf","block":"switch__block_12dhf","switch":"switch__switch_12dhf","switchSkeleton":"switch__switchSkeleton_12dhf","content":"switch__content_12dhf","label":"switch__label_12dhf","labelWrap":"switch__labelWrap_12dhf","loading":"switch__loading_12dhf","errorMessage":"switch__errorMessage_12dhf","hint":"switch__hint_12dhf","hintWrap":"switch__hintWrap_12dhf","reversed":"switch__reversed_12dhf","checked":"switch__checked_12dhf","disabled":"switch__disabled_12dhf","focused":"switch__focused_12dhf"};
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_15jes {
23
+ .switch__switch_wcc2q {
24
24
  background-color: var(--switch-bg-inverted-color);
25
25
  }
26
- .switch__switch_15jes:hover {
26
+ .switch__switch_wcc2q:hover {
27
27
  background-color: var(--switch-hover-bg-inverted-color);
28
28
  }
29
- .switch__label_15jes {
29
+ .switch__label_wcc2q {
30
30
  color: var(--switch-label-inverted-color);
31
31
  }
32
- .switch__hint_15jes {
32
+ .switch__hint_wcc2q {
33
33
  color: var(--switch-hint-inverted-color);
34
34
  }
35
- .switch__checked_15jes .switch__switch_15jes {
35
+ .switch__checked_wcc2q .switch__switch_wcc2q {
36
36
  background-color: var(--switch-checked-bg-inverted-color);
37
37
  }
38
- .switch__checked_15jes .switch__switch_15jes: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_15jes .switch__label_15jes {
41
+ .switch__disabled_wcc2q .switch__label_wcc2q {
42
42
  color: var(--switch-disabled-inverted-color);
43
43
  }
44
- .switch__disabled_15jes .switch__hint_15jes {
44
+ .switch__disabled_wcc2q .switch__hint_wcc2q {
45
45
  color: var(--switch-disabled-inverted-color);
46
46
  }
47
- .switch__disabled_15jes .switch__switch_15jes {
47
+ .switch__disabled_wcc2q .switch__switch_wcc2q {
48
48
  background-color: var(--switch-disabled-bg-inverted-color);
49
49
  }
50
- .switch__disabled_15jes .switch__switch_15jes:before {
50
+ .switch__disabled_wcc2q .switch__switch_wcc2q:before {
51
51
  background-color: var(--switch-icon-disabled-inverted-color);
52
52
  }
53
- .switch__disabled_15jes.switch__checked_15jes .switch__switch_15jes {
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_15jes","label":"switch__label_15jes","hint":"switch__hint_15jes","checked":"switch__checked_15jes","disabled":"switch__disabled_15jes"};
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
@@ -23,9 +23,8 @@
23
23
  --gap-16: var(--gap-m);
24
24
  }
25
25
  :root {
26
- --font-family-alfasans:
27
- 'Alfa Interface Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
28
- Helvetica, sans-serif;
26
+ --font-family-system:
27
+ system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, sans-serif;
29
28
  }
30
29
  :root {
31
30
  --focus-color: var(--color-light-status-info);
@@ -36,7 +35,7 @@
36
35
  --switch-error-color: var(--color-light-text-negative);
37
36
  --switch-icon-color: var(--color-static-neutral-0);
38
37
  }
39
- .switch__component_12dhf {
38
+ .switch__component_756jd {
40
39
  display: inline-flex;
41
40
  align-items: flex-start;
42
41
  margin: var(--gap-0);
@@ -45,25 +44,25 @@
45
44
  cursor: pointer;
46
45
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
47
46
  }
48
- .switch__component_12dhf input {
47
+ .switch__component_756jd input {
49
48
  opacity: 0;
50
49
  position: absolute;
51
50
  }
52
- .switch__start_12dhf {
51
+ .switch__start_756jd {
53
52
  align-items: flex-start;
54
53
  }
55
- .switch__center_12dhf {
54
+ .switch__center_756jd {
56
55
  align-items: center;
57
56
  }
58
- .switch__addons_12dhf {
57
+ .switch__addons_756jd {
59
58
  margin-left: auto;
60
59
  padding-left: var(--gap-16);
61
60
  line-height: 24px;
62
61
  }
63
- .switch__block_12dhf {
62
+ .switch__block_756jd {
64
63
  width: 100%;
65
64
  }
66
- .switch__switch_12dhf {
65
+ .switch__switch_756jd {
67
66
  position: relative;
68
67
  display: block;
69
68
  border-radius: var(--border-radius-16);
@@ -77,12 +76,12 @@
77
76
  border-color 0.2s ease;
78
77
  box-sizing: border-box;
79
78
  }
80
- .switch__switchSkeleton_12dhf {
79
+ .switch__switchSkeleton_756jd {
81
80
  width: 36px;
82
81
  height: 20px;
83
82
  margin: var(--gap-2);
84
83
  }
85
- .switch__switch_12dhf:before {
84
+ .switch__switch_756jd:before {
86
85
  content: '';
87
86
  position: absolute;
88
87
  top: var(--gap-0);
@@ -95,68 +94,65 @@
95
94
  box-sizing: border-box;
96
95
  transition: transform 0.2s ease;
97
96
  }
98
- .switch__content_12dhf {
97
+ .switch__content_756jd {
99
98
  margin-left: var(--gap-12);
100
99
  flex-grow: 1;
101
100
  }
102
- .switch__label_12dhf {
101
+ .switch__label_756jd {
103
102
  font-size: 16px;
104
103
  line-height: 24px;
105
104
  font-weight: 400;
106
- letter-spacing: -0.24px;
107
- font-family: var(--font-family-alfasans);
105
+ font-family: var(--font-family-system);
108
106
  display: block;
109
107
  }
110
- .switch__labelWrap_12dhf:not(:only-child) {
108
+ .switch__labelWrap_756jd:not(:only-child) {
111
109
  margin-bottom: var(--gap-4);
112
110
  }
113
- .switch__labelWrap_12dhf.switch__loading_12dhf {
111
+ .switch__labelWrap_756jd.switch__loading_756jd {
114
112
  height: var(--gap-12);
115
113
  margin: var(--gap-6) 0;
116
114
  }
117
- .switch__labelWrap_12dhf.switch__loading_12dhf:not(:only-child) {
115
+ .switch__labelWrap_756jd.switch__loading_756jd:not(:only-child) {
118
116
  margin-bottom: var(--gap-2s);
119
117
  }
120
- .switch__errorMessage_12dhf {
118
+ .switch__errorMessage_756jd {
121
119
  font-size: 14px;
122
120
  line-height: 18px;
123
121
  font-weight: 400;
124
- letter-spacing: -0.08px;
125
- font-family: var(--font-family-alfasans);
122
+ font-family: var(--font-family-system);
126
123
  color: var(--switch-error-color);
127
124
  }
128
- .switch__hint_12dhf {
125
+ .switch__hint_756jd {
129
126
  font-size: 14px;
130
127
  line-height: 18px;
131
128
  font-weight: 400;
132
- letter-spacing: -0.08px;
133
- font-family: var(--font-family-alfasans);
129
+ font-family: var(--font-family-system);
134
130
  display: block;
135
131
  }
136
- .switch__hintWrap_12dhf.switch__loading_12dhf {
132
+ .switch__hintWrap_756jd.switch__loading_756jd {
137
133
  height: var(--gap-10);
138
134
  margin-bottom: var(--gap-4);
139
135
  }
140
- .switch__component_12dhf.switch__reversed_12dhf {
136
+ .switch__component_756jd.switch__reversed_756jd {
141
137
  flex-direction: row-reverse;
142
138
  }
143
- .switch__reversed_12dhf .switch__content_12dhf {
139
+ .switch__reversed_756jd .switch__content_756jd {
144
140
  margin-right: var(--gap-16);
145
141
  margin-left: var(--gap-0);
146
142
  }
147
- .switch__reversed_12dhf .switch__addons_12dhf {
143
+ .switch__reversed_756jd .switch__addons_756jd {
148
144
  margin-left: var(--gap-0);
149
145
  padding-left: var(--gap-0);
150
146
  margin-right: auto;
151
147
  padding-right: var(--gap-16);
152
148
  }
153
- .switch__checked_12dhf .switch__switch_12dhf:before {
149
+ .switch__checked_756jd .switch__switch_756jd:before {
154
150
  transform: translateX(16px);
155
151
  }
156
- .switch__disabled_12dhf {
152
+ .switch__disabled_756jd {
157
153
  cursor: var(--disabled-cursor);
158
154
  }
159
- .switch__focused_12dhf .switch__switch_12dhf {
155
+ .switch__focused_756jd .switch__switch_756jd {
160
156
  outline: 2px solid var(--focus-color);
161
157
  outline-offset: 2px;
162
158
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  require('./index.css');
4
4
 
5
- var styles = {"component":"switch__component_12dhf","start":"switch__start_12dhf","center":"switch__center_12dhf","addons":"switch__addons_12dhf","block":"switch__block_12dhf","switch":"switch__switch_12dhf","switchSkeleton":"switch__switchSkeleton_12dhf","content":"switch__content_12dhf","label":"switch__label_12dhf","labelWrap":"switch__labelWrap_12dhf","loading":"switch__loading_12dhf","errorMessage":"switch__errorMessage_12dhf","hint":"switch__hint_12dhf","hintWrap":"switch__hintWrap_12dhf","reversed":"switch__reversed_12dhf","checked":"switch__checked_12dhf","disabled":"switch__disabled_12dhf","focused":"switch__focused_12dhf"};
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_15jes {
23
+ .switch__switch_wcc2q {
24
24
  background-color: var(--switch-bg-inverted-color);
25
25
  }
26
- .switch__switch_15jes:hover {
26
+ .switch__switch_wcc2q:hover {
27
27
  background-color: var(--switch-hover-bg-inverted-color);
28
28
  }
29
- .switch__label_15jes {
29
+ .switch__label_wcc2q {
30
30
  color: var(--switch-label-inverted-color);
31
31
  }
32
- .switch__hint_15jes {
32
+ .switch__hint_wcc2q {
33
33
  color: var(--switch-hint-inverted-color);
34
34
  }
35
- .switch__checked_15jes .switch__switch_15jes {
35
+ .switch__checked_wcc2q .switch__switch_wcc2q {
36
36
  background-color: var(--switch-checked-bg-inverted-color);
37
37
  }
38
- .switch__checked_15jes .switch__switch_15jes: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_15jes .switch__label_15jes {
41
+ .switch__disabled_wcc2q .switch__label_wcc2q {
42
42
  color: var(--switch-disabled-inverted-color);
43
43
  }
44
- .switch__disabled_15jes .switch__hint_15jes {
44
+ .switch__disabled_wcc2q .switch__hint_wcc2q {
45
45
  color: var(--switch-disabled-inverted-color);
46
46
  }
47
- .switch__disabled_15jes .switch__switch_15jes {
47
+ .switch__disabled_wcc2q .switch__switch_wcc2q {
48
48
  background-color: var(--switch-disabled-bg-inverted-color);
49
49
  }
50
- .switch__disabled_15jes .switch__switch_15jes:before {
50
+ .switch__disabled_wcc2q .switch__switch_wcc2q:before {
51
51
  background-color: var(--switch-icon-disabled-inverted-color);
52
52
  }
53
- .switch__disabled_15jes.switch__checked_15jes .switch__switch_15jes {
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_15jes","label":"switch__label_15jes","hint":"switch__hint_15jes","checked":"switch__checked_15jes","disabled":"switch__disabled_15jes"};
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_18pzn {
23
+ .switch__switch_17r6f {
24
24
  background-color: var(--switch-bg-color);
25
25
  }
26
- .switch__switch_18pzn:hover {
26
+ .switch__switch_17r6f:hover {
27
27
  background-color: var(--switch-hover-bg-color);
28
28
  }
29
- .switch__label_18pzn {
29
+ .switch__label_17r6f {
30
30
  color: var(--switch-label-color);
31
31
  }
32
- .switch__hint_18pzn {
32
+ .switch__hint_17r6f {
33
33
  color: var(--switch-hint-color);
34
34
  }
35
- .switch__checked_18pzn .switch__switch_18pzn {
35
+ .switch__checked_17r6f .switch__switch_17r6f {
36
36
  background-color: var(--switch-checked-bg-color);
37
37
  }
38
- .switch__checked_18pzn .switch__switch_18pzn:hover {
38
+ .switch__checked_17r6f .switch__switch_17r6f:hover {
39
39
  background-color: var(--switch-checked-hover-bg-color);
40
40
  }
41
- .switch__disabled_18pzn .switch__label_18pzn {
41
+ .switch__disabled_17r6f .switch__label_17r6f {
42
42
  color: var(--switch-disabled-color);
43
43
  }
44
- .switch__disabled_18pzn .switch__hint_18pzn {
44
+ .switch__disabled_17r6f .switch__hint_17r6f {
45
45
  color: var(--switch-disabled-color);
46
46
  }
47
- .switch__disabled_18pzn .switch__switch_18pzn {
47
+ .switch__disabled_17r6f .switch__switch_17r6f {
48
48
  background-color: var(--switch-disabled-bg-color);
49
49
  }
50
- .switch__disabled_18pzn .switch__switch_18pzn:before {
50
+ .switch__disabled_17r6f .switch__switch_17r6f:before {
51
51
  background-color: var(--switch-icon-disabled-color);
52
52
  }
53
- .switch__disabled_18pzn.switch__checked_18pzn .switch__switch_18pzn {
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_18pzn","label":"switch__label_18pzn","hint":"switch__hint_18pzn","checked":"switch__checked_18pzn","disabled":"switch__disabled_18pzn"};
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
@@ -23,9 +23,8 @@
23
23
  --gap-16: var(--gap-m);
24
24
  }
25
25
  :root {
26
- --font-family-alfasans:
27
- 'Alfa Interface Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
28
- Helvetica, sans-serif;
26
+ --font-family-system:
27
+ system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, sans-serif;
29
28
  }
30
29
  :root {
31
30
  --focus-color: var(--color-light-status-info);
@@ -36,7 +35,7 @@
36
35
  --switch-error-color: var(--color-light-text-negative);
37
36
  --switch-icon-color: var(--color-static-neutral-0);
38
37
  }
39
- .switch__component_12dhf {
38
+ .switch__component_756jd {
40
39
  display: inline-flex;
41
40
  align-items: flex-start;
42
41
  margin: var(--gap-0);
@@ -45,25 +44,25 @@
45
44
  cursor: pointer;
46
45
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
47
46
  }
48
- .switch__component_12dhf input {
47
+ .switch__component_756jd input {
49
48
  opacity: 0;
50
49
  position: absolute;
51
50
  }
52
- .switch__start_12dhf {
51
+ .switch__start_756jd {
53
52
  align-items: flex-start;
54
53
  }
55
- .switch__center_12dhf {
54
+ .switch__center_756jd {
56
55
  align-items: center;
57
56
  }
58
- .switch__addons_12dhf {
57
+ .switch__addons_756jd {
59
58
  margin-left: auto;
60
59
  padding-left: var(--gap-16);
61
60
  line-height: 24px;
62
61
  }
63
- .switch__block_12dhf {
62
+ .switch__block_756jd {
64
63
  width: 100%;
65
64
  }
66
- .switch__switch_12dhf {
65
+ .switch__switch_756jd {
67
66
  position: relative;
68
67
  display: block;
69
68
  border-radius: var(--border-radius-16);
@@ -77,12 +76,12 @@
77
76
  border-color 0.2s ease;
78
77
  box-sizing: border-box;
79
78
  }
80
- .switch__switchSkeleton_12dhf {
79
+ .switch__switchSkeleton_756jd {
81
80
  width: 36px;
82
81
  height: 20px;
83
82
  margin: var(--gap-2);
84
83
  }
85
- .switch__switch_12dhf:before {
84
+ .switch__switch_756jd:before {
86
85
  content: '';
87
86
  position: absolute;
88
87
  top: var(--gap-0);
@@ -95,68 +94,65 @@
95
94
  box-sizing: border-box;
96
95
  transition: transform 0.2s ease;
97
96
  }
98
- .switch__content_12dhf {
97
+ .switch__content_756jd {
99
98
  margin-left: var(--gap-12);
100
99
  flex-grow: 1;
101
100
  }
102
- .switch__label_12dhf {
101
+ .switch__label_756jd {
103
102
  font-size: 16px;
104
103
  line-height: 24px;
105
104
  font-weight: 400;
106
- letter-spacing: -0.24px;
107
- font-family: var(--font-family-alfasans);
105
+ font-family: var(--font-family-system);
108
106
  display: block;
109
107
  }
110
- .switch__labelWrap_12dhf:not(:only-child) {
108
+ .switch__labelWrap_756jd:not(:only-child) {
111
109
  margin-bottom: var(--gap-4);
112
110
  }
113
- .switch__labelWrap_12dhf.switch__loading_12dhf {
111
+ .switch__labelWrap_756jd.switch__loading_756jd {
114
112
  height: var(--gap-12);
115
113
  margin: var(--gap-6) 0;
116
114
  }
117
- .switch__labelWrap_12dhf.switch__loading_12dhf:not(:only-child) {
115
+ .switch__labelWrap_756jd.switch__loading_756jd:not(:only-child) {
118
116
  margin-bottom: var(--gap-2s);
119
117
  }
120
- .switch__errorMessage_12dhf {
118
+ .switch__errorMessage_756jd {
121
119
  font-size: 14px;
122
120
  line-height: 18px;
123
121
  font-weight: 400;
124
- letter-spacing: -0.08px;
125
- font-family: var(--font-family-alfasans);
122
+ font-family: var(--font-family-system);
126
123
  color: var(--switch-error-color);
127
124
  }
128
- .switch__hint_12dhf {
125
+ .switch__hint_756jd {
129
126
  font-size: 14px;
130
127
  line-height: 18px;
131
128
  font-weight: 400;
132
- letter-spacing: -0.08px;
133
- font-family: var(--font-family-alfasans);
129
+ font-family: var(--font-family-system);
134
130
  display: block;
135
131
  }
136
- .switch__hintWrap_12dhf.switch__loading_12dhf {
132
+ .switch__hintWrap_756jd.switch__loading_756jd {
137
133
  height: var(--gap-10);
138
134
  margin-bottom: var(--gap-4);
139
135
  }
140
- .switch__component_12dhf.switch__reversed_12dhf {
136
+ .switch__component_756jd.switch__reversed_756jd {
141
137
  flex-direction: row-reverse;
142
138
  }
143
- .switch__reversed_12dhf .switch__content_12dhf {
139
+ .switch__reversed_756jd .switch__content_756jd {
144
140
  margin-right: var(--gap-16);
145
141
  margin-left: var(--gap-0);
146
142
  }
147
- .switch__reversed_12dhf .switch__addons_12dhf {
143
+ .switch__reversed_756jd .switch__addons_756jd {
148
144
  margin-left: var(--gap-0);
149
145
  padding-left: var(--gap-0);
150
146
  margin-right: auto;
151
147
  padding-right: var(--gap-16);
152
148
  }
153
- .switch__checked_12dhf .switch__switch_12dhf:before {
149
+ .switch__checked_756jd .switch__switch_756jd:before {
154
150
  transform: translateX(16px);
155
151
  }
156
- .switch__disabled_12dhf {
152
+ .switch__disabled_756jd {
157
153
  cursor: var(--disabled-cursor);
158
154
  }
159
- .switch__focused_12dhf .switch__switch_12dhf {
155
+ .switch__focused_756jd .switch__switch_756jd {
160
156
  outline: 2px solid var(--focus-color);
161
157
  outline-offset: 2px;
162
158
  }
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- const styles = {"component":"switch__component_12dhf","start":"switch__start_12dhf","center":"switch__center_12dhf","addons":"switch__addons_12dhf","block":"switch__block_12dhf","switch":"switch__switch_12dhf","switchSkeleton":"switch__switchSkeleton_12dhf","content":"switch__content_12dhf","label":"switch__label_12dhf","labelWrap":"switch__labelWrap_12dhf","loading":"switch__loading_12dhf","errorMessage":"switch__errorMessage_12dhf","hint":"switch__hint_12dhf","hintWrap":"switch__hintWrap_12dhf","reversed":"switch__reversed_12dhf","checked":"switch__checked_12dhf","disabled":"switch__disabled_12dhf","focused":"switch__focused_12dhf"};
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_15jes {
23
+ .switch__switch_wcc2q {
24
24
  background-color: var(--switch-bg-inverted-color);
25
25
  }
26
- .switch__switch_15jes:hover {
26
+ .switch__switch_wcc2q:hover {
27
27
  background-color: var(--switch-hover-bg-inverted-color);
28
28
  }
29
- .switch__label_15jes {
29
+ .switch__label_wcc2q {
30
30
  color: var(--switch-label-inverted-color);
31
31
  }
32
- .switch__hint_15jes {
32
+ .switch__hint_wcc2q {
33
33
  color: var(--switch-hint-inverted-color);
34
34
  }
35
- .switch__checked_15jes .switch__switch_15jes {
35
+ .switch__checked_wcc2q .switch__switch_wcc2q {
36
36
  background-color: var(--switch-checked-bg-inverted-color);
37
37
  }
38
- .switch__checked_15jes .switch__switch_15jes: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_15jes .switch__label_15jes {
41
+ .switch__disabled_wcc2q .switch__label_wcc2q {
42
42
  color: var(--switch-disabled-inverted-color);
43
43
  }
44
- .switch__disabled_15jes .switch__hint_15jes {
44
+ .switch__disabled_wcc2q .switch__hint_wcc2q {
45
45
  color: var(--switch-disabled-inverted-color);
46
46
  }
47
- .switch__disabled_15jes .switch__switch_15jes {
47
+ .switch__disabled_wcc2q .switch__switch_wcc2q {
48
48
  background-color: var(--switch-disabled-bg-inverted-color);
49
49
  }
50
- .switch__disabled_15jes .switch__switch_15jes:before {
50
+ .switch__disabled_wcc2q .switch__switch_wcc2q:before {
51
51
  background-color: var(--switch-icon-disabled-inverted-color);
52
52
  }
53
- .switch__disabled_15jes.switch__checked_15jes .switch__switch_15jes {
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_15jes","label":"switch__label_15jes","hint":"switch__hint_15jes","checked":"switch__checked_15jes","disabled":"switch__disabled_15jes"};
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
@@ -81,8 +81,7 @@
81
81
  font-size: 16px;
82
82
  line-height: 24px;
83
83
  font-weight: 400;
84
- letter-spacing: -0.24px;
85
- font-family: var(--font-family-alfasans);
84
+ font-family: var(--font-family-system);
86
85
  display: block;
87
86
  }
88
87
 
@@ -103,8 +102,7 @@
103
102
  font-size: 14px;
104
103
  line-height: 18px;
105
104
  font-weight: 400;
106
- letter-spacing: -0.08px;
107
- font-family: var(--font-family-alfasans);
105
+ font-family: var(--font-family-system);
108
106
  color: var(--switch-error-color);
109
107
  }
110
108
 
@@ -112,8 +110,7 @@
112
110
  font-size: 14px;
113
111
  line-height: 18px;
114
112
  font-weight: 400;
115
- letter-spacing: -0.08px;
116
- font-family: var(--font-family-alfasans);
113
+ font-family: var(--font-family-system);
117
114
  display: block;
118
115
  }
119
116
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-switch",
3
- "version": "6.1.0-alfasans",
3
+ "version": "6.1.1",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -10,8 +10,8 @@
10
10
  "main": "index.js",
11
11
  "module": "./esm/index.js",
12
12
  "dependencies": {
13
- "@alfalab/core-components-shared": "2.1.1-alfasans",
14
- "@alfalab/core-components-skeleton": "7.0.2-alfasans",
13
+ "@alfalab/core-components-shared": "^2.1.1",
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",
@@ -26,6 +26,6 @@
26
26
  "directory": "dist"
27
27
  },
28
28
  "gitHead": "f054fef20200664c65e2501ef1f916c555cdf05d",
29
- "themesVersion": "15.0.2-alfasans",
30
- "varsVersion": "11.0.2-alfasans"
29
+ "themesVersion": "15.0.2",
30
+ "varsVersion": "11.0.2"
31
31
  }