@alfalab/core-components-switch 6.1.0 → 6.1.1-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.
@@ -23,8 +23,9 @@
23
23
  --gap-16: var(--gap-m);
24
24
  }
25
25
  :root {
26
- --font-family-system:
27
- system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, sans-serif;
26
+ --font-family-alfasans:
27
+ 'Alfa Interface Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
28
+ Helvetica, sans-serif;
28
29
  }
29
30
  :root {
30
31
  --focus-color: var(--color-light-status-info);
@@ -102,7 +103,8 @@
102
103
  font-size: 16px;
103
104
  line-height: 24px;
104
105
  font-weight: 400;
105
- font-family: var(--font-family-system);
106
+ letter-spacing: -0.24px;
107
+ font-family: var(--font-family-alfasans);
106
108
  display: block;
107
109
  }
108
110
  .labelWrap:not(:only-child) {
@@ -119,14 +121,16 @@
119
121
  font-size: 14px;
120
122
  line-height: 18px;
121
123
  font-weight: 400;
122
- font-family: var(--font-family-system);
124
+ letter-spacing: -0.08px;
125
+ font-family: var(--font-family-alfasans);
123
126
  color: var(--switch-error-color);
124
127
  }
125
128
  .hint {
126
129
  font-size: 14px;
127
130
  line-height: 18px;
128
131
  font-weight: 400;
129
- font-family: var(--font-family-system);
132
+ letter-spacing: -0.08px;
133
+ font-family: var(--font-family-alfasans);
130
134
  display: block;
131
135
  }
132
136
  .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_1cr6w {
23
+ .switch__switch_gmm6u {
24
24
  background-color: var(--switch-bg-color);
25
25
  }
26
- .switch__switch_1cr6w:hover {
26
+ .switch__switch_gmm6u:hover {
27
27
  background-color: var(--switch-hover-bg-color);
28
28
  }
29
- .switch__label_1cr6w {
29
+ .switch__label_gmm6u {
30
30
  color: var(--switch-label-color);
31
31
  }
32
- .switch__hint_1cr6w {
32
+ .switch__hint_gmm6u {
33
33
  color: var(--switch-hint-color);
34
34
  }
35
- .switch__checked_1cr6w .switch__switch_1cr6w {
35
+ .switch__checked_gmm6u .switch__switch_gmm6u {
36
36
  background-color: var(--switch-checked-bg-color);
37
37
  }
38
- .switch__checked_1cr6w .switch__switch_1cr6w:hover {
38
+ .switch__checked_gmm6u .switch__switch_gmm6u:hover {
39
39
  background-color: var(--switch-checked-hover-bg-color);
40
40
  }
41
- .switch__disabled_1cr6w .switch__label_1cr6w {
41
+ .switch__disabled_gmm6u .switch__label_gmm6u {
42
42
  color: var(--switch-disabled-color);
43
43
  }
44
- .switch__disabled_1cr6w .switch__hint_1cr6w {
44
+ .switch__disabled_gmm6u .switch__hint_gmm6u {
45
45
  color: var(--switch-disabled-color);
46
46
  }
47
- .switch__disabled_1cr6w .switch__switch_1cr6w {
47
+ .switch__disabled_gmm6u .switch__switch_gmm6u {
48
48
  background-color: var(--switch-disabled-bg-color);
49
49
  }
50
- .switch__disabled_1cr6w .switch__switch_1cr6w:before {
50
+ .switch__disabled_gmm6u .switch__switch_gmm6u: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_gmm6u.switch__checked_gmm6u .switch__switch_gmm6u {
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_gmm6u","label":"switch__label_gmm6u","hint":"switch__hint_gmm6u","checked":"switch__checked_gmm6u","disabled":"switch__disabled_gmm6u"};
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_gmm6u {
24
24
  background-color: var(--switch-bg-color);
25
25
  }
26
- .switch__switch_1cr6w:hover {
26
+ .switch__switch_gmm6u:hover {
27
27
  background-color: var(--switch-hover-bg-color);
28
28
  }
29
- .switch__label_1cr6w {
29
+ .switch__label_gmm6u {
30
30
  color: var(--switch-label-color);
31
31
  }
32
- .switch__hint_1cr6w {
32
+ .switch__hint_gmm6u {
33
33
  color: var(--switch-hint-color);
34
34
  }
35
- .switch__checked_1cr6w .switch__switch_1cr6w {
35
+ .switch__checked_gmm6u .switch__switch_gmm6u {
36
36
  background-color: var(--switch-checked-bg-color);
37
37
  }
38
- .switch__checked_1cr6w .switch__switch_1cr6w:hover {
38
+ .switch__checked_gmm6u .switch__switch_gmm6u:hover {
39
39
  background-color: var(--switch-checked-hover-bg-color);
40
40
  }
41
- .switch__disabled_1cr6w .switch__label_1cr6w {
41
+ .switch__disabled_gmm6u .switch__label_gmm6u {
42
42
  color: var(--switch-disabled-color);
43
43
  }
44
- .switch__disabled_1cr6w .switch__hint_1cr6w {
44
+ .switch__disabled_gmm6u .switch__hint_gmm6u {
45
45
  color: var(--switch-disabled-color);
46
46
  }
47
- .switch__disabled_1cr6w .switch__switch_1cr6w {
47
+ .switch__disabled_gmm6u .switch__switch_gmm6u {
48
48
  background-color: var(--switch-disabled-bg-color);
49
49
  }
50
- .switch__disabled_1cr6w .switch__switch_1cr6w:before {
50
+ .switch__disabled_gmm6u .switch__switch_gmm6u: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_gmm6u.switch__checked_gmm6u .switch__switch_gmm6u {
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_gmm6u","label":"switch__label_gmm6u","hint":"switch__hint_gmm6u","checked":"switch__checked_gmm6u","disabled":"switch__disabled_gmm6u"};
4
4
 
5
5
  export { defaultStyles as default };
6
6
  //# sourceMappingURL=default.module.css.js.map
package/esm/index.css CHANGED
@@ -23,8 +23,9 @@
23
23
  --gap-16: var(--gap-m);
24
24
  }
25
25
  :root {
26
- --font-family-system:
27
- system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, sans-serif;
26
+ --font-family-alfasans:
27
+ 'Alfa Interface Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
28
+ Helvetica, sans-serif;
28
29
  }
29
30
  :root {
30
31
  --focus-color: var(--color-light-status-info);
@@ -35,7 +36,7 @@
35
36
  --switch-error-color: var(--color-light-text-negative);
36
37
  --switch-icon-color: var(--color-static-neutral-0);
37
38
  }
38
- .switch__component_afshm {
39
+ .switch__component_1uguw {
39
40
  display: inline-flex;
40
41
  align-items: flex-start;
41
42
  margin: var(--gap-0);
@@ -44,25 +45,25 @@
44
45
  cursor: pointer;
45
46
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
46
47
  }
47
- .switch__component_afshm input {
48
+ .switch__component_1uguw input {
48
49
  opacity: 0;
49
50
  position: absolute;
50
51
  }
51
- .switch__start_afshm {
52
+ .switch__start_1uguw {
52
53
  align-items: flex-start;
53
54
  }
54
- .switch__center_afshm {
55
+ .switch__center_1uguw {
55
56
  align-items: center;
56
57
  }
57
- .switch__addons_afshm {
58
+ .switch__addons_1uguw {
58
59
  margin-left: auto;
59
60
  padding-left: var(--gap-16);
60
61
  line-height: 24px;
61
62
  }
62
- .switch__block_afshm {
63
+ .switch__block_1uguw {
63
64
  width: 100%;
64
65
  }
65
- .switch__switch_afshm {
66
+ .switch__switch_1uguw {
66
67
  position: relative;
67
68
  display: block;
68
69
  border-radius: var(--border-radius-16);
@@ -76,12 +77,12 @@
76
77
  border-color 0.2s ease;
77
78
  box-sizing: border-box;
78
79
  }
79
- .switch__switchSkeleton_afshm {
80
+ .switch__switchSkeleton_1uguw {
80
81
  width: 36px;
81
82
  height: 20px;
82
83
  margin: var(--gap-2);
83
84
  }
84
- .switch__switch_afshm:before {
85
+ .switch__switch_1uguw:before {
85
86
  content: '';
86
87
  position: absolute;
87
88
  top: var(--gap-0);
@@ -94,65 +95,68 @@
94
95
  box-sizing: border-box;
95
96
  transition: transform 0.2s ease;
96
97
  }
97
- .switch__content_afshm {
98
+ .switch__content_1uguw {
98
99
  margin-left: var(--gap-12);
99
100
  flex-grow: 1;
100
101
  }
101
- .switch__label_afshm {
102
+ .switch__label_1uguw {
102
103
  font-size: 16px;
103
104
  line-height: 24px;
104
105
  font-weight: 400;
105
- font-family: var(--font-family-system);
106
+ letter-spacing: -0.24px;
107
+ font-family: var(--font-family-alfasans);
106
108
  display: block;
107
109
  }
108
- .switch__labelWrap_afshm:not(:only-child) {
110
+ .switch__labelWrap_1uguw:not(:only-child) {
109
111
  margin-bottom: var(--gap-4);
110
112
  }
111
- .switch__labelWrap_afshm.switch__loading_afshm {
113
+ .switch__labelWrap_1uguw.switch__loading_1uguw {
112
114
  height: var(--gap-12);
113
115
  margin: var(--gap-6) 0;
114
116
  }
115
- .switch__labelWrap_afshm.switch__loading_afshm:not(:only-child) {
117
+ .switch__labelWrap_1uguw.switch__loading_1uguw:not(:only-child) {
116
118
  margin-bottom: var(--gap-2s);
117
119
  }
118
- .switch__errorMessage_afshm {
120
+ .switch__errorMessage_1uguw {
119
121
  font-size: 14px;
120
122
  line-height: 18px;
121
123
  font-weight: 400;
122
- font-family: var(--font-family-system);
124
+ letter-spacing: -0.08px;
125
+ font-family: var(--font-family-alfasans);
123
126
  color: var(--switch-error-color);
124
127
  }
125
- .switch__hint_afshm {
128
+ .switch__hint_1uguw {
126
129
  font-size: 14px;
127
130
  line-height: 18px;
128
131
  font-weight: 400;
129
- font-family: var(--font-family-system);
132
+ letter-spacing: -0.08px;
133
+ font-family: var(--font-family-alfasans);
130
134
  display: block;
131
135
  }
132
- .switch__hintWrap_afshm.switch__loading_afshm {
136
+ .switch__hintWrap_1uguw.switch__loading_1uguw {
133
137
  height: var(--gap-10);
134
138
  margin-bottom: var(--gap-4);
135
139
  }
136
- .switch__component_afshm.switch__reversed_afshm {
140
+ .switch__component_1uguw.switch__reversed_1uguw {
137
141
  flex-direction: row-reverse;
138
142
  }
139
- .switch__reversed_afshm .switch__content_afshm {
143
+ .switch__reversed_1uguw .switch__content_1uguw {
140
144
  margin-right: var(--gap-16);
141
145
  margin-left: var(--gap-0);
142
146
  }
143
- .switch__reversed_afshm .switch__addons_afshm {
147
+ .switch__reversed_1uguw .switch__addons_1uguw {
144
148
  margin-left: var(--gap-0);
145
149
  padding-left: var(--gap-0);
146
150
  margin-right: auto;
147
151
  padding-right: var(--gap-16);
148
152
  }
149
- .switch__checked_afshm .switch__switch_afshm:before {
153
+ .switch__checked_1uguw .switch__switch_1uguw:before {
150
154
  transform: translateX(16px);
151
155
  }
152
- .switch__disabled_afshm {
156
+ .switch__disabled_1uguw {
153
157
  cursor: var(--disabled-cursor);
154
158
  }
155
- .switch__focused_afshm .switch__switch_afshm {
159
+ .switch__focused_1uguw .switch__switch_1uguw {
156
160
  outline: 2px solid var(--focus-color);
157
161
  outline-offset: 2px;
158
162
  }
@@ -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_1uguw","start":"switch__start_1uguw","center":"switch__center_1uguw","addons":"switch__addons_1uguw","block":"switch__block_1uguw","switch":"switch__switch_1uguw","switchSkeleton":"switch__switchSkeleton_1uguw","content":"switch__content_1uguw","label":"switch__label_1uguw","labelWrap":"switch__labelWrap_1uguw","loading":"switch__loading_1uguw","errorMessage":"switch__errorMessage_1uguw","hint":"switch__hint_1uguw","hintWrap":"switch__hintWrap_1uguw","reversed":"switch__reversed_1uguw","checked":"switch__checked_1uguw","disabled":"switch__disabled_1uguw","focused":"switch__focused_1uguw"};
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_dg1ca {
24
24
  background-color: var(--switch-bg-inverted-color);
25
25
  }
26
- .switch__switch_11ccj:hover {
26
+ .switch__switch_dg1ca:hover {
27
27
  background-color: var(--switch-hover-bg-inverted-color);
28
28
  }
29
- .switch__label_11ccj {
29
+ .switch__label_dg1ca {
30
30
  color: var(--switch-label-inverted-color);
31
31
  }
32
- .switch__hint_11ccj {
32
+ .switch__hint_dg1ca {
33
33
  color: var(--switch-hint-inverted-color);
34
34
  }
35
- .switch__checked_11ccj .switch__switch_11ccj {
35
+ .switch__checked_dg1ca .switch__switch_dg1ca {
36
36
  background-color: var(--switch-checked-bg-inverted-color);
37
37
  }
38
- .switch__checked_11ccj .switch__switch_11ccj:hover {
38
+ .switch__checked_dg1ca .switch__switch_dg1ca:hover {
39
39
  background-color: var(--switch-checked-hover-bg-inverted-color);
40
40
  }
41
- .switch__disabled_11ccj .switch__label_11ccj {
41
+ .switch__disabled_dg1ca .switch__label_dg1ca {
42
42
  color: var(--switch-disabled-inverted-color);
43
43
  }
44
- .switch__disabled_11ccj .switch__hint_11ccj {
44
+ .switch__disabled_dg1ca .switch__hint_dg1ca {
45
45
  color: var(--switch-disabled-inverted-color);
46
46
  }
47
- .switch__disabled_11ccj .switch__switch_11ccj {
47
+ .switch__disabled_dg1ca .switch__switch_dg1ca {
48
48
  background-color: var(--switch-disabled-bg-inverted-color);
49
49
  }
50
- .switch__disabled_11ccj .switch__switch_11ccj:before {
50
+ .switch__disabled_dg1ca .switch__switch_dg1ca: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_dg1ca.switch__checked_dg1ca .switch__switch_dg1ca {
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_dg1ca","label":"switch__label_dg1ca","hint":"switch__hint_dg1ca","checked":"switch__checked_dg1ca","disabled":"switch__disabled_dg1ca"};
4
4
 
5
5
  export { invertedStyles as default };
6
6
  //# sourceMappingURL=inverted.module.css.js.map
package/index.css CHANGED
@@ -23,8 +23,9 @@
23
23
  --gap-16: var(--gap-m);
24
24
  }
25
25
  :root {
26
- --font-family-system:
27
- system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, sans-serif;
26
+ --font-family-alfasans:
27
+ 'Alfa Interface Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
28
+ Helvetica, sans-serif;
28
29
  }
29
30
  :root {
30
31
  --focus-color: var(--color-light-status-info);
@@ -35,7 +36,7 @@
35
36
  --switch-error-color: var(--color-light-text-negative);
36
37
  --switch-icon-color: var(--color-static-neutral-0);
37
38
  }
38
- .switch__component_afshm {
39
+ .switch__component_1uguw {
39
40
  display: inline-flex;
40
41
  align-items: flex-start;
41
42
  margin: var(--gap-0);
@@ -44,25 +45,25 @@
44
45
  cursor: pointer;
45
46
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
46
47
  }
47
- .switch__component_afshm input {
48
+ .switch__component_1uguw input {
48
49
  opacity: 0;
49
50
  position: absolute;
50
51
  }
51
- .switch__start_afshm {
52
+ .switch__start_1uguw {
52
53
  align-items: flex-start;
53
54
  }
54
- .switch__center_afshm {
55
+ .switch__center_1uguw {
55
56
  align-items: center;
56
57
  }
57
- .switch__addons_afshm {
58
+ .switch__addons_1uguw {
58
59
  margin-left: auto;
59
60
  padding-left: var(--gap-16);
60
61
  line-height: 24px;
61
62
  }
62
- .switch__block_afshm {
63
+ .switch__block_1uguw {
63
64
  width: 100%;
64
65
  }
65
- .switch__switch_afshm {
66
+ .switch__switch_1uguw {
66
67
  position: relative;
67
68
  display: block;
68
69
  border-radius: var(--border-radius-16);
@@ -76,12 +77,12 @@
76
77
  border-color 0.2s ease;
77
78
  box-sizing: border-box;
78
79
  }
79
- .switch__switchSkeleton_afshm {
80
+ .switch__switchSkeleton_1uguw {
80
81
  width: 36px;
81
82
  height: 20px;
82
83
  margin: var(--gap-2);
83
84
  }
84
- .switch__switch_afshm:before {
85
+ .switch__switch_1uguw:before {
85
86
  content: '';
86
87
  position: absolute;
87
88
  top: var(--gap-0);
@@ -94,65 +95,68 @@
94
95
  box-sizing: border-box;
95
96
  transition: transform 0.2s ease;
96
97
  }
97
- .switch__content_afshm {
98
+ .switch__content_1uguw {
98
99
  margin-left: var(--gap-12);
99
100
  flex-grow: 1;
100
101
  }
101
- .switch__label_afshm {
102
+ .switch__label_1uguw {
102
103
  font-size: 16px;
103
104
  line-height: 24px;
104
105
  font-weight: 400;
105
- font-family: var(--font-family-system);
106
+ letter-spacing: -0.24px;
107
+ font-family: var(--font-family-alfasans);
106
108
  display: block;
107
109
  }
108
- .switch__labelWrap_afshm:not(:only-child) {
110
+ .switch__labelWrap_1uguw:not(:only-child) {
109
111
  margin-bottom: var(--gap-4);
110
112
  }
111
- .switch__labelWrap_afshm.switch__loading_afshm {
113
+ .switch__labelWrap_1uguw.switch__loading_1uguw {
112
114
  height: var(--gap-12);
113
115
  margin: var(--gap-6) 0;
114
116
  }
115
- .switch__labelWrap_afshm.switch__loading_afshm:not(:only-child) {
117
+ .switch__labelWrap_1uguw.switch__loading_1uguw:not(:only-child) {
116
118
  margin-bottom: var(--gap-2s);
117
119
  }
118
- .switch__errorMessage_afshm {
120
+ .switch__errorMessage_1uguw {
119
121
  font-size: 14px;
120
122
  line-height: 18px;
121
123
  font-weight: 400;
122
- font-family: var(--font-family-system);
124
+ letter-spacing: -0.08px;
125
+ font-family: var(--font-family-alfasans);
123
126
  color: var(--switch-error-color);
124
127
  }
125
- .switch__hint_afshm {
128
+ .switch__hint_1uguw {
126
129
  font-size: 14px;
127
130
  line-height: 18px;
128
131
  font-weight: 400;
129
- font-family: var(--font-family-system);
132
+ letter-spacing: -0.08px;
133
+ font-family: var(--font-family-alfasans);
130
134
  display: block;
131
135
  }
132
- .switch__hintWrap_afshm.switch__loading_afshm {
136
+ .switch__hintWrap_1uguw.switch__loading_1uguw {
133
137
  height: var(--gap-10);
134
138
  margin-bottom: var(--gap-4);
135
139
  }
136
- .switch__component_afshm.switch__reversed_afshm {
140
+ .switch__component_1uguw.switch__reversed_1uguw {
137
141
  flex-direction: row-reverse;
138
142
  }
139
- .switch__reversed_afshm .switch__content_afshm {
143
+ .switch__reversed_1uguw .switch__content_1uguw {
140
144
  margin-right: var(--gap-16);
141
145
  margin-left: var(--gap-0);
142
146
  }
143
- .switch__reversed_afshm .switch__addons_afshm {
147
+ .switch__reversed_1uguw .switch__addons_1uguw {
144
148
  margin-left: var(--gap-0);
145
149
  padding-left: var(--gap-0);
146
150
  margin-right: auto;
147
151
  padding-right: var(--gap-16);
148
152
  }
149
- .switch__checked_afshm .switch__switch_afshm:before {
153
+ .switch__checked_1uguw .switch__switch_1uguw:before {
150
154
  transform: translateX(16px);
151
155
  }
152
- .switch__disabled_afshm {
156
+ .switch__disabled_1uguw {
153
157
  cursor: var(--disabled-cursor);
154
158
  }
155
- .switch__focused_afshm .switch__switch_afshm {
159
+ .switch__focused_1uguw .switch__switch_1uguw {
156
160
  outline: 2px solid var(--focus-color);
157
161
  outline-offset: 2px;
158
162
  }
@@ -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_1uguw","start":"switch__start_1uguw","center":"switch__center_1uguw","addons":"switch__addons_1uguw","block":"switch__block_1uguw","switch":"switch__switch_1uguw","switchSkeleton":"switch__switchSkeleton_1uguw","content":"switch__content_1uguw","label":"switch__label_1uguw","labelWrap":"switch__labelWrap_1uguw","loading":"switch__loading_1uguw","errorMessage":"switch__errorMessage_1uguw","hint":"switch__hint_1uguw","hintWrap":"switch__hintWrap_1uguw","reversed":"switch__reversed_1uguw","checked":"switch__checked_1uguw","disabled":"switch__disabled_1uguw","focused":"switch__focused_1uguw"};
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_dg1ca {
24
24
  background-color: var(--switch-bg-inverted-color);
25
25
  }
26
- .switch__switch_11ccj:hover {
26
+ .switch__switch_dg1ca:hover {
27
27
  background-color: var(--switch-hover-bg-inverted-color);
28
28
  }
29
- .switch__label_11ccj {
29
+ .switch__label_dg1ca {
30
30
  color: var(--switch-label-inverted-color);
31
31
  }
32
- .switch__hint_11ccj {
32
+ .switch__hint_dg1ca {
33
33
  color: var(--switch-hint-inverted-color);
34
34
  }
35
- .switch__checked_11ccj .switch__switch_11ccj {
35
+ .switch__checked_dg1ca .switch__switch_dg1ca {
36
36
  background-color: var(--switch-checked-bg-inverted-color);
37
37
  }
38
- .switch__checked_11ccj .switch__switch_11ccj:hover {
38
+ .switch__checked_dg1ca .switch__switch_dg1ca:hover {
39
39
  background-color: var(--switch-checked-hover-bg-inverted-color);
40
40
  }
41
- .switch__disabled_11ccj .switch__label_11ccj {
41
+ .switch__disabled_dg1ca .switch__label_dg1ca {
42
42
  color: var(--switch-disabled-inverted-color);
43
43
  }
44
- .switch__disabled_11ccj .switch__hint_11ccj {
44
+ .switch__disabled_dg1ca .switch__hint_dg1ca {
45
45
  color: var(--switch-disabled-inverted-color);
46
46
  }
47
- .switch__disabled_11ccj .switch__switch_11ccj {
47
+ .switch__disabled_dg1ca .switch__switch_dg1ca {
48
48
  background-color: var(--switch-disabled-bg-inverted-color);
49
49
  }
50
- .switch__disabled_11ccj .switch__switch_11ccj:before {
50
+ .switch__disabled_dg1ca .switch__switch_dg1ca: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_dg1ca.switch__checked_dg1ca .switch__switch_dg1ca {
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_dg1ca","label":"switch__label_dg1ca","hint":"switch__hint_dg1ca","checked":"switch__checked_dg1ca","disabled":"switch__disabled_dg1ca"};
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_gmm6u {
24
24
  background-color: var(--switch-bg-color);
25
25
  }
26
- .switch__switch_1cr6w:hover {
26
+ .switch__switch_gmm6u:hover {
27
27
  background-color: var(--switch-hover-bg-color);
28
28
  }
29
- .switch__label_1cr6w {
29
+ .switch__label_gmm6u {
30
30
  color: var(--switch-label-color);
31
31
  }
32
- .switch__hint_1cr6w {
32
+ .switch__hint_gmm6u {
33
33
  color: var(--switch-hint-color);
34
34
  }
35
- .switch__checked_1cr6w .switch__switch_1cr6w {
35
+ .switch__checked_gmm6u .switch__switch_gmm6u {
36
36
  background-color: var(--switch-checked-bg-color);
37
37
  }
38
- .switch__checked_1cr6w .switch__switch_1cr6w:hover {
38
+ .switch__checked_gmm6u .switch__switch_gmm6u:hover {
39
39
  background-color: var(--switch-checked-hover-bg-color);
40
40
  }
41
- .switch__disabled_1cr6w .switch__label_1cr6w {
41
+ .switch__disabled_gmm6u .switch__label_gmm6u {
42
42
  color: var(--switch-disabled-color);
43
43
  }
44
- .switch__disabled_1cr6w .switch__hint_1cr6w {
44
+ .switch__disabled_gmm6u .switch__hint_gmm6u {
45
45
  color: var(--switch-disabled-color);
46
46
  }
47
- .switch__disabled_1cr6w .switch__switch_1cr6w {
47
+ .switch__disabled_gmm6u .switch__switch_gmm6u {
48
48
  background-color: var(--switch-disabled-bg-color);
49
49
  }
50
- .switch__disabled_1cr6w .switch__switch_1cr6w:before {
50
+ .switch__disabled_gmm6u .switch__switch_gmm6u: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_gmm6u.switch__checked_gmm6u .switch__switch_gmm6u {
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_gmm6u","label":"switch__label_gmm6u","hint":"switch__hint_gmm6u","checked":"switch__checked_gmm6u","disabled":"switch__disabled_gmm6u"};
4
4
 
5
5
  export { defaultStyles as default };
6
6
  //# sourceMappingURL=default.module.css.js.map
package/modern/index.css CHANGED
@@ -23,8 +23,9 @@
23
23
  --gap-16: var(--gap-m);
24
24
  }
25
25
  :root {
26
- --font-family-system:
27
- system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, sans-serif;
26
+ --font-family-alfasans:
27
+ 'Alfa Interface Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
28
+ Helvetica, sans-serif;
28
29
  }
29
30
  :root {
30
31
  --focus-color: var(--color-light-status-info);
@@ -35,7 +36,7 @@
35
36
  --switch-error-color: var(--color-light-text-negative);
36
37
  --switch-icon-color: var(--color-static-neutral-0);
37
38
  }
38
- .switch__component_afshm {
39
+ .switch__component_1uguw {
39
40
  display: inline-flex;
40
41
  align-items: flex-start;
41
42
  margin: var(--gap-0);
@@ -44,25 +45,25 @@
44
45
  cursor: pointer;
45
46
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
46
47
  }
47
- .switch__component_afshm input {
48
+ .switch__component_1uguw input {
48
49
  opacity: 0;
49
50
  position: absolute;
50
51
  }
51
- .switch__start_afshm {
52
+ .switch__start_1uguw {
52
53
  align-items: flex-start;
53
54
  }
54
- .switch__center_afshm {
55
+ .switch__center_1uguw {
55
56
  align-items: center;
56
57
  }
57
- .switch__addons_afshm {
58
+ .switch__addons_1uguw {
58
59
  margin-left: auto;
59
60
  padding-left: var(--gap-16);
60
61
  line-height: 24px;
61
62
  }
62
- .switch__block_afshm {
63
+ .switch__block_1uguw {
63
64
  width: 100%;
64
65
  }
65
- .switch__switch_afshm {
66
+ .switch__switch_1uguw {
66
67
  position: relative;
67
68
  display: block;
68
69
  border-radius: var(--border-radius-16);
@@ -76,12 +77,12 @@
76
77
  border-color 0.2s ease;
77
78
  box-sizing: border-box;
78
79
  }
79
- .switch__switchSkeleton_afshm {
80
+ .switch__switchSkeleton_1uguw {
80
81
  width: 36px;
81
82
  height: 20px;
82
83
  margin: var(--gap-2);
83
84
  }
84
- .switch__switch_afshm:before {
85
+ .switch__switch_1uguw:before {
85
86
  content: '';
86
87
  position: absolute;
87
88
  top: var(--gap-0);
@@ -94,65 +95,68 @@
94
95
  box-sizing: border-box;
95
96
  transition: transform 0.2s ease;
96
97
  }
97
- .switch__content_afshm {
98
+ .switch__content_1uguw {
98
99
  margin-left: var(--gap-12);
99
100
  flex-grow: 1;
100
101
  }
101
- .switch__label_afshm {
102
+ .switch__label_1uguw {
102
103
  font-size: 16px;
103
104
  line-height: 24px;
104
105
  font-weight: 400;
105
- font-family: var(--font-family-system);
106
+ letter-spacing: -0.24px;
107
+ font-family: var(--font-family-alfasans);
106
108
  display: block;
107
109
  }
108
- .switch__labelWrap_afshm:not(:only-child) {
110
+ .switch__labelWrap_1uguw:not(:only-child) {
109
111
  margin-bottom: var(--gap-4);
110
112
  }
111
- .switch__labelWrap_afshm.switch__loading_afshm {
113
+ .switch__labelWrap_1uguw.switch__loading_1uguw {
112
114
  height: var(--gap-12);
113
115
  margin: var(--gap-6) 0;
114
116
  }
115
- .switch__labelWrap_afshm.switch__loading_afshm:not(:only-child) {
117
+ .switch__labelWrap_1uguw.switch__loading_1uguw:not(:only-child) {
116
118
  margin-bottom: var(--gap-2s);
117
119
  }
118
- .switch__errorMessage_afshm {
120
+ .switch__errorMessage_1uguw {
119
121
  font-size: 14px;
120
122
  line-height: 18px;
121
123
  font-weight: 400;
122
- font-family: var(--font-family-system);
124
+ letter-spacing: -0.08px;
125
+ font-family: var(--font-family-alfasans);
123
126
  color: var(--switch-error-color);
124
127
  }
125
- .switch__hint_afshm {
128
+ .switch__hint_1uguw {
126
129
  font-size: 14px;
127
130
  line-height: 18px;
128
131
  font-weight: 400;
129
- font-family: var(--font-family-system);
132
+ letter-spacing: -0.08px;
133
+ font-family: var(--font-family-alfasans);
130
134
  display: block;
131
135
  }
132
- .switch__hintWrap_afshm.switch__loading_afshm {
136
+ .switch__hintWrap_1uguw.switch__loading_1uguw {
133
137
  height: var(--gap-10);
134
138
  margin-bottom: var(--gap-4);
135
139
  }
136
- .switch__component_afshm.switch__reversed_afshm {
140
+ .switch__component_1uguw.switch__reversed_1uguw {
137
141
  flex-direction: row-reverse;
138
142
  }
139
- .switch__reversed_afshm .switch__content_afshm {
143
+ .switch__reversed_1uguw .switch__content_1uguw {
140
144
  margin-right: var(--gap-16);
141
145
  margin-left: var(--gap-0);
142
146
  }
143
- .switch__reversed_afshm .switch__addons_afshm {
147
+ .switch__reversed_1uguw .switch__addons_1uguw {
144
148
  margin-left: var(--gap-0);
145
149
  padding-left: var(--gap-0);
146
150
  margin-right: auto;
147
151
  padding-right: var(--gap-16);
148
152
  }
149
- .switch__checked_afshm .switch__switch_afshm:before {
153
+ .switch__checked_1uguw .switch__switch_1uguw:before {
150
154
  transform: translateX(16px);
151
155
  }
152
- .switch__disabled_afshm {
156
+ .switch__disabled_1uguw {
153
157
  cursor: var(--disabled-cursor);
154
158
  }
155
- .switch__focused_afshm .switch__switch_afshm {
159
+ .switch__focused_1uguw .switch__switch_1uguw {
156
160
  outline: 2px solid var(--focus-color);
157
161
  outline-offset: 2px;
158
162
  }
@@ -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_1uguw","start":"switch__start_1uguw","center":"switch__center_1uguw","addons":"switch__addons_1uguw","block":"switch__block_1uguw","switch":"switch__switch_1uguw","switchSkeleton":"switch__switchSkeleton_1uguw","content":"switch__content_1uguw","label":"switch__label_1uguw","labelWrap":"switch__labelWrap_1uguw","loading":"switch__loading_1uguw","errorMessage":"switch__errorMessage_1uguw","hint":"switch__hint_1uguw","hintWrap":"switch__hintWrap_1uguw","reversed":"switch__reversed_1uguw","checked":"switch__checked_1uguw","disabled":"switch__disabled_1uguw","focused":"switch__focused_1uguw"};
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_dg1ca {
24
24
  background-color: var(--switch-bg-inverted-color);
25
25
  }
26
- .switch__switch_11ccj:hover {
26
+ .switch__switch_dg1ca:hover {
27
27
  background-color: var(--switch-hover-bg-inverted-color);
28
28
  }
29
- .switch__label_11ccj {
29
+ .switch__label_dg1ca {
30
30
  color: var(--switch-label-inverted-color);
31
31
  }
32
- .switch__hint_11ccj {
32
+ .switch__hint_dg1ca {
33
33
  color: var(--switch-hint-inverted-color);
34
34
  }
35
- .switch__checked_11ccj .switch__switch_11ccj {
35
+ .switch__checked_dg1ca .switch__switch_dg1ca {
36
36
  background-color: var(--switch-checked-bg-inverted-color);
37
37
  }
38
- .switch__checked_11ccj .switch__switch_11ccj:hover {
38
+ .switch__checked_dg1ca .switch__switch_dg1ca:hover {
39
39
  background-color: var(--switch-checked-hover-bg-inverted-color);
40
40
  }
41
- .switch__disabled_11ccj .switch__label_11ccj {
41
+ .switch__disabled_dg1ca .switch__label_dg1ca {
42
42
  color: var(--switch-disabled-inverted-color);
43
43
  }
44
- .switch__disabled_11ccj .switch__hint_11ccj {
44
+ .switch__disabled_dg1ca .switch__hint_dg1ca {
45
45
  color: var(--switch-disabled-inverted-color);
46
46
  }
47
- .switch__disabled_11ccj .switch__switch_11ccj {
47
+ .switch__disabled_dg1ca .switch__switch_dg1ca {
48
48
  background-color: var(--switch-disabled-bg-inverted-color);
49
49
  }
50
- .switch__disabled_11ccj .switch__switch_11ccj:before {
50
+ .switch__disabled_dg1ca .switch__switch_dg1ca: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_dg1ca.switch__checked_dg1ca .switch__switch_dg1ca {
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_dg1ca","label":"switch__label_dg1ca","hint":"switch__hint_dg1ca","checked":"switch__checked_dg1ca","disabled":"switch__disabled_dg1ca"};
4
4
 
5
5
  export { invertedStyles as default };
6
6
  //# sourceMappingURL=inverted.module.css.js.map
@@ -81,7 +81,8 @@
81
81
  font-size: 16px;
82
82
  line-height: 24px;
83
83
  font-weight: 400;
84
- font-family: var(--font-family-system);
84
+ letter-spacing: -0.24px;
85
+ font-family: var(--font-family-alfasans);
85
86
  display: block;
86
87
  }
87
88
 
@@ -102,7 +103,8 @@
102
103
  font-size: 14px;
103
104
  line-height: 18px;
104
105
  font-weight: 400;
105
- font-family: var(--font-family-system);
106
+ letter-spacing: -0.08px;
107
+ font-family: var(--font-family-alfasans);
106
108
  color: var(--switch-error-color);
107
109
  }
108
110
 
@@ -110,7 +112,8 @@
110
112
  font-size: 14px;
111
113
  line-height: 18px;
112
114
  font-weight: 400;
113
- font-family: var(--font-family-system);
115
+ letter-spacing: -0.08px;
116
+ font-family: var(--font-family-alfasans);
114
117
  display: block;
115
118
  }
116
119
 
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-alfasans",
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",
14
- "@alfalab/core-components-skeleton": "^7.0.2",
13
+ "@alfalab/core-components-shared": "2.1.1-alfasans",
14
+ "@alfalab/core-components-skeleton": "7.0.3-alfasans",
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",
30
- "varsVersion": "11.0.2"
29
+ "themesVersion": "15.0.2-alfasans",
30
+ "varsVersion": "11.0.2-alfasans"
31
31
  }