@alfalab/core-components-switch 6.0.1 → 6.0.2-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.
@@ -20,8 +20,9 @@
20
20
  --gap-16: var(--gap-m);
21
21
  }
22
22
  :root {
23
- --font-family-system:
24
- system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, sans-serif;
23
+ --font-family-alfasans:
24
+ 'Alfa Interface Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
25
+ Helvetica, sans-serif;
25
26
  }
26
27
  :root {
27
28
  --focus-color: var(--color-light-status-info);
@@ -93,7 +94,8 @@
93
94
  font-size: 16px;
94
95
  line-height: 24px;
95
96
  font-weight: 400;
96
- font-family: var(--font-family-system);
97
+ letter-spacing: -0.24px;
98
+ font-family: var(--font-family-alfasans);
97
99
  display: block;
98
100
  }
99
101
  .label:not(:only-child) {
@@ -103,14 +105,16 @@
103
105
  font-size: 14px;
104
106
  line-height: 18px;
105
107
  font-weight: 400;
106
- font-family: var(--font-family-system);
108
+ letter-spacing: -0.08px;
109
+ font-family: var(--font-family-alfasans);
107
110
  color: var(--switch-error-color);
108
111
  }
109
112
  .hint {
110
113
  font-size: 14px;
111
114
  line-height: 18px;
112
115
  font-weight: 400;
113
- font-family: var(--font-family-system);
116
+ letter-spacing: -0.08px;
117
+ font-family: var(--font-family-alfasans);
114
118
  display: block;
115
119
  }
116
120
  .component.reversed {
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_wlmmg {
23
+ .switch__switch_a3snf {
24
24
  background-color: var(--switch-bg-color);
25
25
  }
26
- .switch__switch_wlmmg:hover {
26
+ .switch__switch_a3snf:hover {
27
27
  background-color: var(--switch-hover-bg-color);
28
28
  }
29
- .switch__label_wlmmg {
29
+ .switch__label_a3snf {
30
30
  color: var(--switch-label-color);
31
31
  }
32
- .switch__hint_wlmmg {
32
+ .switch__hint_a3snf {
33
33
  color: var(--switch-hint-color);
34
34
  }
35
- .switch__checked_wlmmg .switch__switch_wlmmg {
35
+ .switch__checked_a3snf .switch__switch_a3snf {
36
36
  background-color: var(--switch-checked-bg-color);
37
37
  }
38
- .switch__checked_wlmmg .switch__switch_wlmmg:hover {
38
+ .switch__checked_a3snf .switch__switch_a3snf:hover {
39
39
  background-color: var(--switch-checked-hover-bg-color);
40
40
  }
41
- .switch__disabled_wlmmg .switch__label_wlmmg {
41
+ .switch__disabled_a3snf .switch__label_a3snf {
42
42
  color: var(--switch-disabled-color);
43
43
  }
44
- .switch__disabled_wlmmg .switch__hint_wlmmg {
44
+ .switch__disabled_a3snf .switch__hint_a3snf {
45
45
  color: var(--switch-disabled-color);
46
46
  }
47
- .switch__disabled_wlmmg .switch__switch_wlmmg {
47
+ .switch__disabled_a3snf .switch__switch_a3snf {
48
48
  background-color: var(--switch-disabled-bg-color);
49
49
  }
50
- .switch__disabled_wlmmg .switch__switch_wlmmg:before {
50
+ .switch__disabled_a3snf .switch__switch_a3snf:before {
51
51
  background-color: var(--switch-icon-disabled-color);
52
52
  }
53
- .switch__disabled_wlmmg.switch__checked_wlmmg .switch__switch_wlmmg {
53
+ .switch__disabled_a3snf.switch__checked_a3snf .switch__switch_a3snf {
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_wlmmg","label":"switch__label_wlmmg","hint":"switch__hint_wlmmg","checked":"switch__checked_wlmmg","disabled":"switch__disabled_wlmmg"};
5
+ var defaultStyles = {"switch":"switch__switch_a3snf","label":"switch__label_a3snf","hint":"switch__hint_a3snf","checked":"switch__checked_a3snf","disabled":"switch__disabled_a3snf"};
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_wlmmg {
23
+ .switch__switch_a3snf {
24
24
  background-color: var(--switch-bg-color);
25
25
  }
26
- .switch__switch_wlmmg:hover {
26
+ .switch__switch_a3snf:hover {
27
27
  background-color: var(--switch-hover-bg-color);
28
28
  }
29
- .switch__label_wlmmg {
29
+ .switch__label_a3snf {
30
30
  color: var(--switch-label-color);
31
31
  }
32
- .switch__hint_wlmmg {
32
+ .switch__hint_a3snf {
33
33
  color: var(--switch-hint-color);
34
34
  }
35
- .switch__checked_wlmmg .switch__switch_wlmmg {
35
+ .switch__checked_a3snf .switch__switch_a3snf {
36
36
  background-color: var(--switch-checked-bg-color);
37
37
  }
38
- .switch__checked_wlmmg .switch__switch_wlmmg:hover {
38
+ .switch__checked_a3snf .switch__switch_a3snf:hover {
39
39
  background-color: var(--switch-checked-hover-bg-color);
40
40
  }
41
- .switch__disabled_wlmmg .switch__label_wlmmg {
41
+ .switch__disabled_a3snf .switch__label_a3snf {
42
42
  color: var(--switch-disabled-color);
43
43
  }
44
- .switch__disabled_wlmmg .switch__hint_wlmmg {
44
+ .switch__disabled_a3snf .switch__hint_a3snf {
45
45
  color: var(--switch-disabled-color);
46
46
  }
47
- .switch__disabled_wlmmg .switch__switch_wlmmg {
47
+ .switch__disabled_a3snf .switch__switch_a3snf {
48
48
  background-color: var(--switch-disabled-bg-color);
49
49
  }
50
- .switch__disabled_wlmmg .switch__switch_wlmmg:before {
50
+ .switch__disabled_a3snf .switch__switch_a3snf:before {
51
51
  background-color: var(--switch-icon-disabled-color);
52
52
  }
53
- .switch__disabled_wlmmg.switch__checked_wlmmg .switch__switch_wlmmg {
53
+ .switch__disabled_a3snf.switch__checked_a3snf .switch__switch_a3snf {
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_wlmmg","label":"switch__label_wlmmg","hint":"switch__hint_wlmmg","checked":"switch__checked_wlmmg","disabled":"switch__disabled_wlmmg"};
3
+ var defaultStyles = {"switch":"switch__switch_a3snf","label":"switch__label_a3snf","hint":"switch__hint_a3snf","checked":"switch__checked_a3snf","disabled":"switch__disabled_a3snf"};
4
4
 
5
5
  export { defaultStyles as default };
6
6
  //# sourceMappingURL=default.module.css.js.map
package/esm/index.css CHANGED
@@ -20,8 +20,9 @@
20
20
  --gap-16: var(--gap-m);
21
21
  }
22
22
  :root {
23
- --font-family-system:
24
- system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, sans-serif;
23
+ --font-family-alfasans:
24
+ 'Alfa Interface Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
25
+ Helvetica, sans-serif;
25
26
  }
26
27
  :root {
27
28
  --focus-color: var(--color-light-status-info);
@@ -32,7 +33,7 @@
32
33
  --switch-error-color: var(--color-light-text-negative);
33
34
  --switch-icon-color: var(--color-static-neutral-0);
34
35
  }
35
- .switch__component_2fen2 {
36
+ .switch__component_4xozt {
36
37
  display: inline-flex;
37
38
  align-items: flex-start;
38
39
  margin: var(--gap-0);
@@ -41,25 +42,25 @@
41
42
  cursor: pointer;
42
43
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
43
44
  }
44
- .switch__component_2fen2 input {
45
+ .switch__component_4xozt input {
45
46
  opacity: 0;
46
47
  position: absolute;
47
48
  }
48
- .switch__start_2fen2 {
49
+ .switch__start_4xozt {
49
50
  align-items: flex-start;
50
51
  }
51
- .switch__center_2fen2 {
52
+ .switch__center_4xozt {
52
53
  align-items: center;
53
54
  }
54
- .switch__addons_2fen2 {
55
+ .switch__addons_4xozt {
55
56
  margin-left: auto;
56
57
  padding-left: var(--gap-16);
57
58
  line-height: 24px;
58
59
  }
59
- .switch__block_2fen2 {
60
+ .switch__block_4xozt {
60
61
  width: 100%;
61
62
  }
62
- .switch__switch_2fen2 {
63
+ .switch__switch_4xozt {
63
64
  position: relative;
64
65
  border-radius: var(--border-radius-16);
65
66
  width: 36px;
@@ -72,7 +73,7 @@
72
73
  border-color 0.2s ease;
73
74
  box-sizing: border-box;
74
75
  }
75
- .switch__switch_2fen2:before {
76
+ .switch__switch_4xozt:before {
76
77
  content: '';
77
78
  position: absolute;
78
79
  top: var(--gap-0);
@@ -85,54 +86,57 @@
85
86
  box-sizing: border-box;
86
87
  transition: transform 0.2s ease;
87
88
  }
88
- .switch__content_2fen2 {
89
+ .switch__content_4xozt {
89
90
  margin-left: var(--gap-12);
90
91
  flex-grow: 1;
91
92
  }
92
- .switch__label_2fen2 {
93
+ .switch__label_4xozt {
93
94
  font-size: 16px;
94
95
  line-height: 24px;
95
96
  font-weight: 400;
96
- font-family: var(--font-family-system);
97
+ letter-spacing: -0.24px;
98
+ font-family: var(--font-family-alfasans);
97
99
  display: block;
98
100
  }
99
- .switch__label_2fen2:not(:only-child) {
101
+ .switch__label_4xozt:not(:only-child) {
100
102
  margin-bottom: var(--gap-4);
101
103
  }
102
- .switch__errorMessage_2fen2 {
104
+ .switch__errorMessage_4xozt {
103
105
  font-size: 14px;
104
106
  line-height: 18px;
105
107
  font-weight: 400;
106
- font-family: var(--font-family-system);
108
+ letter-spacing: -0.08px;
109
+ font-family: var(--font-family-alfasans);
107
110
  color: var(--switch-error-color);
108
111
  }
109
- .switch__hint_2fen2 {
112
+ .switch__hint_4xozt {
110
113
  font-size: 14px;
111
114
  line-height: 18px;
112
115
  font-weight: 400;
113
- font-family: var(--font-family-system);
116
+ letter-spacing: -0.08px;
117
+ font-family: var(--font-family-alfasans);
114
118
  display: block;
115
119
  }
116
- .switch__component_2fen2.switch__reversed_2fen2 {
120
+ .switch__component_4xozt.switch__reversed_4xozt {
117
121
  flex-direction: row-reverse;
118
122
  }
119
- .switch__reversed_2fen2 .switch__content_2fen2 {
123
+ .switch__reversed_4xozt .switch__content_4xozt {
120
124
  margin-right: var(--gap-16);
121
125
  margin-left: var(--gap-0);
122
126
  }
123
- .switch__reversed_2fen2 .switch__addons_2fen2 {
127
+ .switch__reversed_4xozt .switch__addons_4xozt {
124
128
  margin-left: var(--gap-0);
125
129
  padding-left: var(--gap-0);
126
130
  margin-right: auto;
127
131
  padding-right: var(--gap-16);
128
132
  }
129
- .switch__checked_2fen2 .switch__switch_2fen2:before {
133
+ .switch__checked_4xozt .switch__switch_4xozt:before {
130
134
  transform: translateX(16px);
131
135
  }
132
- .switch__disabled_2fen2 {
136
+ .switch__disabled_4xozt {
133
137
  cursor: var(--disabled-cursor);
134
138
  }
135
- .switch__focused_2fen2 .switch__switch_2fen2 {
139
+ .switch__focused_4xozt .switch__switch_4xozt {
136
140
  outline: 2px solid var(--focus-color);
137
141
  outline-offset: 2px;
138
142
  }
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- var styles = {"component":"switch__component_2fen2","start":"switch__start_2fen2","center":"switch__center_2fen2","addons":"switch__addons_2fen2","block":"switch__block_2fen2","switch":"switch__switch_2fen2","content":"switch__content_2fen2","label":"switch__label_2fen2","errorMessage":"switch__errorMessage_2fen2","hint":"switch__hint_2fen2","reversed":"switch__reversed_2fen2","checked":"switch__checked_2fen2","disabled":"switch__disabled_2fen2","focused":"switch__focused_2fen2"};
3
+ var styles = {"component":"switch__component_4xozt","start":"switch__start_4xozt","center":"switch__center_4xozt","addons":"switch__addons_4xozt","block":"switch__block_4xozt","switch":"switch__switch_4xozt","content":"switch__content_4xozt","label":"switch__label_4xozt","errorMessage":"switch__errorMessage_4xozt","hint":"switch__hint_4xozt","reversed":"switch__reversed_4xozt","checked":"switch__checked_4xozt","disabled":"switch__disabled_4xozt","focused":"switch__focused_4xozt"};
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_l6s9m {
23
+ .switch__switch_6x7sw {
24
24
  background-color: var(--switch-bg-inverted-color);
25
25
  }
26
- .switch__switch_l6s9m:hover {
26
+ .switch__switch_6x7sw:hover {
27
27
  background-color: var(--switch-hover-bg-inverted-color);
28
28
  }
29
- .switch__label_l6s9m {
29
+ .switch__label_6x7sw {
30
30
  color: var(--switch-label-inverted-color);
31
31
  }
32
- .switch__hint_l6s9m {
32
+ .switch__hint_6x7sw {
33
33
  color: var(--switch-hint-inverted-color);
34
34
  }
35
- .switch__checked_l6s9m .switch__switch_l6s9m {
35
+ .switch__checked_6x7sw .switch__switch_6x7sw {
36
36
  background-color: var(--switch-checked-bg-inverted-color);
37
37
  }
38
- .switch__checked_l6s9m .switch__switch_l6s9m:hover {
38
+ .switch__checked_6x7sw .switch__switch_6x7sw:hover {
39
39
  background-color: var(--switch-checked-hover-bg-inverted-color);
40
40
  }
41
- .switch__disabled_l6s9m .switch__label_l6s9m {
41
+ .switch__disabled_6x7sw .switch__label_6x7sw {
42
42
  color: var(--switch-disabled-inverted-color);
43
43
  }
44
- .switch__disabled_l6s9m .switch__hint_l6s9m {
44
+ .switch__disabled_6x7sw .switch__hint_6x7sw {
45
45
  color: var(--switch-disabled-inverted-color);
46
46
  }
47
- .switch__disabled_l6s9m .switch__switch_l6s9m {
47
+ .switch__disabled_6x7sw .switch__switch_6x7sw {
48
48
  background-color: var(--switch-disabled-bg-inverted-color);
49
49
  }
50
- .switch__disabled_l6s9m .switch__switch_l6s9m:before {
50
+ .switch__disabled_6x7sw .switch__switch_6x7sw:before {
51
51
  background-color: var(--switch-icon-disabled-inverted-color);
52
52
  }
53
- .switch__disabled_l6s9m.switch__checked_l6s9m .switch__switch_l6s9m {
53
+ .switch__disabled_6x7sw.switch__checked_6x7sw .switch__switch_6x7sw {
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_l6s9m","label":"switch__label_l6s9m","hint":"switch__hint_l6s9m","checked":"switch__checked_l6s9m","disabled":"switch__disabled_l6s9m"};
3
+ var invertedStyles = {"switch":"switch__switch_6x7sw","label":"switch__label_6x7sw","hint":"switch__hint_6x7sw","checked":"switch__checked_6x7sw","disabled":"switch__disabled_6x7sw"};
4
4
 
5
5
  export { invertedStyles as default };
6
6
  //# sourceMappingURL=inverted.module.css.js.map
package/index.css CHANGED
@@ -20,8 +20,9 @@
20
20
  --gap-16: var(--gap-m);
21
21
  }
22
22
  :root {
23
- --font-family-system:
24
- system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, sans-serif;
23
+ --font-family-alfasans:
24
+ 'Alfa Interface Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
25
+ Helvetica, sans-serif;
25
26
  }
26
27
  :root {
27
28
  --focus-color: var(--color-light-status-info);
@@ -32,7 +33,7 @@
32
33
  --switch-error-color: var(--color-light-text-negative);
33
34
  --switch-icon-color: var(--color-static-neutral-0);
34
35
  }
35
- .switch__component_2fen2 {
36
+ .switch__component_4xozt {
36
37
  display: inline-flex;
37
38
  align-items: flex-start;
38
39
  margin: var(--gap-0);
@@ -41,25 +42,25 @@
41
42
  cursor: pointer;
42
43
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
43
44
  }
44
- .switch__component_2fen2 input {
45
+ .switch__component_4xozt input {
45
46
  opacity: 0;
46
47
  position: absolute;
47
48
  }
48
- .switch__start_2fen2 {
49
+ .switch__start_4xozt {
49
50
  align-items: flex-start;
50
51
  }
51
- .switch__center_2fen2 {
52
+ .switch__center_4xozt {
52
53
  align-items: center;
53
54
  }
54
- .switch__addons_2fen2 {
55
+ .switch__addons_4xozt {
55
56
  margin-left: auto;
56
57
  padding-left: var(--gap-16);
57
58
  line-height: 24px;
58
59
  }
59
- .switch__block_2fen2 {
60
+ .switch__block_4xozt {
60
61
  width: 100%;
61
62
  }
62
- .switch__switch_2fen2 {
63
+ .switch__switch_4xozt {
63
64
  position: relative;
64
65
  border-radius: var(--border-radius-16);
65
66
  width: 36px;
@@ -72,7 +73,7 @@
72
73
  border-color 0.2s ease;
73
74
  box-sizing: border-box;
74
75
  }
75
- .switch__switch_2fen2:before {
76
+ .switch__switch_4xozt:before {
76
77
  content: '';
77
78
  position: absolute;
78
79
  top: var(--gap-0);
@@ -85,54 +86,57 @@
85
86
  box-sizing: border-box;
86
87
  transition: transform 0.2s ease;
87
88
  }
88
- .switch__content_2fen2 {
89
+ .switch__content_4xozt {
89
90
  margin-left: var(--gap-12);
90
91
  flex-grow: 1;
91
92
  }
92
- .switch__label_2fen2 {
93
+ .switch__label_4xozt {
93
94
  font-size: 16px;
94
95
  line-height: 24px;
95
96
  font-weight: 400;
96
- font-family: var(--font-family-system);
97
+ letter-spacing: -0.24px;
98
+ font-family: var(--font-family-alfasans);
97
99
  display: block;
98
100
  }
99
- .switch__label_2fen2:not(:only-child) {
101
+ .switch__label_4xozt:not(:only-child) {
100
102
  margin-bottom: var(--gap-4);
101
103
  }
102
- .switch__errorMessage_2fen2 {
104
+ .switch__errorMessage_4xozt {
103
105
  font-size: 14px;
104
106
  line-height: 18px;
105
107
  font-weight: 400;
106
- font-family: var(--font-family-system);
108
+ letter-spacing: -0.08px;
109
+ font-family: var(--font-family-alfasans);
107
110
  color: var(--switch-error-color);
108
111
  }
109
- .switch__hint_2fen2 {
112
+ .switch__hint_4xozt {
110
113
  font-size: 14px;
111
114
  line-height: 18px;
112
115
  font-weight: 400;
113
- font-family: var(--font-family-system);
116
+ letter-spacing: -0.08px;
117
+ font-family: var(--font-family-alfasans);
114
118
  display: block;
115
119
  }
116
- .switch__component_2fen2.switch__reversed_2fen2 {
120
+ .switch__component_4xozt.switch__reversed_4xozt {
117
121
  flex-direction: row-reverse;
118
122
  }
119
- .switch__reversed_2fen2 .switch__content_2fen2 {
123
+ .switch__reversed_4xozt .switch__content_4xozt {
120
124
  margin-right: var(--gap-16);
121
125
  margin-left: var(--gap-0);
122
126
  }
123
- .switch__reversed_2fen2 .switch__addons_2fen2 {
127
+ .switch__reversed_4xozt .switch__addons_4xozt {
124
128
  margin-left: var(--gap-0);
125
129
  padding-left: var(--gap-0);
126
130
  margin-right: auto;
127
131
  padding-right: var(--gap-16);
128
132
  }
129
- .switch__checked_2fen2 .switch__switch_2fen2:before {
133
+ .switch__checked_4xozt .switch__switch_4xozt:before {
130
134
  transform: translateX(16px);
131
135
  }
132
- .switch__disabled_2fen2 {
136
+ .switch__disabled_4xozt {
133
137
  cursor: var(--disabled-cursor);
134
138
  }
135
- .switch__focused_2fen2 .switch__switch_2fen2 {
139
+ .switch__focused_4xozt .switch__switch_4xozt {
136
140
  outline: 2px solid var(--focus-color);
137
141
  outline-offset: 2px;
138
142
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  require('./index.css');
4
4
 
5
- var styles = {"component":"switch__component_2fen2","start":"switch__start_2fen2","center":"switch__center_2fen2","addons":"switch__addons_2fen2","block":"switch__block_2fen2","switch":"switch__switch_2fen2","content":"switch__content_2fen2","label":"switch__label_2fen2","errorMessage":"switch__errorMessage_2fen2","hint":"switch__hint_2fen2","reversed":"switch__reversed_2fen2","checked":"switch__checked_2fen2","disabled":"switch__disabled_2fen2","focused":"switch__focused_2fen2"};
5
+ var styles = {"component":"switch__component_4xozt","start":"switch__start_4xozt","center":"switch__center_4xozt","addons":"switch__addons_4xozt","block":"switch__block_4xozt","switch":"switch__switch_4xozt","content":"switch__content_4xozt","label":"switch__label_4xozt","errorMessage":"switch__errorMessage_4xozt","hint":"switch__hint_4xozt","reversed":"switch__reversed_4xozt","checked":"switch__checked_4xozt","disabled":"switch__disabled_4xozt","focused":"switch__focused_4xozt"};
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_l6s9m {
23
+ .switch__switch_6x7sw {
24
24
  background-color: var(--switch-bg-inverted-color);
25
25
  }
26
- .switch__switch_l6s9m:hover {
26
+ .switch__switch_6x7sw:hover {
27
27
  background-color: var(--switch-hover-bg-inverted-color);
28
28
  }
29
- .switch__label_l6s9m {
29
+ .switch__label_6x7sw {
30
30
  color: var(--switch-label-inverted-color);
31
31
  }
32
- .switch__hint_l6s9m {
32
+ .switch__hint_6x7sw {
33
33
  color: var(--switch-hint-inverted-color);
34
34
  }
35
- .switch__checked_l6s9m .switch__switch_l6s9m {
35
+ .switch__checked_6x7sw .switch__switch_6x7sw {
36
36
  background-color: var(--switch-checked-bg-inverted-color);
37
37
  }
38
- .switch__checked_l6s9m .switch__switch_l6s9m:hover {
38
+ .switch__checked_6x7sw .switch__switch_6x7sw:hover {
39
39
  background-color: var(--switch-checked-hover-bg-inverted-color);
40
40
  }
41
- .switch__disabled_l6s9m .switch__label_l6s9m {
41
+ .switch__disabled_6x7sw .switch__label_6x7sw {
42
42
  color: var(--switch-disabled-inverted-color);
43
43
  }
44
- .switch__disabled_l6s9m .switch__hint_l6s9m {
44
+ .switch__disabled_6x7sw .switch__hint_6x7sw {
45
45
  color: var(--switch-disabled-inverted-color);
46
46
  }
47
- .switch__disabled_l6s9m .switch__switch_l6s9m {
47
+ .switch__disabled_6x7sw .switch__switch_6x7sw {
48
48
  background-color: var(--switch-disabled-bg-inverted-color);
49
49
  }
50
- .switch__disabled_l6s9m .switch__switch_l6s9m:before {
50
+ .switch__disabled_6x7sw .switch__switch_6x7sw:before {
51
51
  background-color: var(--switch-icon-disabled-inverted-color);
52
52
  }
53
- .switch__disabled_l6s9m.switch__checked_l6s9m .switch__switch_l6s9m {
53
+ .switch__disabled_6x7sw.switch__checked_6x7sw .switch__switch_6x7sw {
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_l6s9m","label":"switch__label_l6s9m","hint":"switch__hint_l6s9m","checked":"switch__checked_l6s9m","disabled":"switch__disabled_l6s9m"};
5
+ var invertedStyles = {"switch":"switch__switch_6x7sw","label":"switch__label_6x7sw","hint":"switch__hint_6x7sw","checked":"switch__checked_6x7sw","disabled":"switch__disabled_6x7sw"};
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_wlmmg {
23
+ .switch__switch_a3snf {
24
24
  background-color: var(--switch-bg-color);
25
25
  }
26
- .switch__switch_wlmmg:hover {
26
+ .switch__switch_a3snf:hover {
27
27
  background-color: var(--switch-hover-bg-color);
28
28
  }
29
- .switch__label_wlmmg {
29
+ .switch__label_a3snf {
30
30
  color: var(--switch-label-color);
31
31
  }
32
- .switch__hint_wlmmg {
32
+ .switch__hint_a3snf {
33
33
  color: var(--switch-hint-color);
34
34
  }
35
- .switch__checked_wlmmg .switch__switch_wlmmg {
35
+ .switch__checked_a3snf .switch__switch_a3snf {
36
36
  background-color: var(--switch-checked-bg-color);
37
37
  }
38
- .switch__checked_wlmmg .switch__switch_wlmmg:hover {
38
+ .switch__checked_a3snf .switch__switch_a3snf:hover {
39
39
  background-color: var(--switch-checked-hover-bg-color);
40
40
  }
41
- .switch__disabled_wlmmg .switch__label_wlmmg {
41
+ .switch__disabled_a3snf .switch__label_a3snf {
42
42
  color: var(--switch-disabled-color);
43
43
  }
44
- .switch__disabled_wlmmg .switch__hint_wlmmg {
44
+ .switch__disabled_a3snf .switch__hint_a3snf {
45
45
  color: var(--switch-disabled-color);
46
46
  }
47
- .switch__disabled_wlmmg .switch__switch_wlmmg {
47
+ .switch__disabled_a3snf .switch__switch_a3snf {
48
48
  background-color: var(--switch-disabled-bg-color);
49
49
  }
50
- .switch__disabled_wlmmg .switch__switch_wlmmg:before {
50
+ .switch__disabled_a3snf .switch__switch_a3snf:before {
51
51
  background-color: var(--switch-icon-disabled-color);
52
52
  }
53
- .switch__disabled_wlmmg.switch__checked_wlmmg .switch__switch_wlmmg {
53
+ .switch__disabled_a3snf.switch__checked_a3snf .switch__switch_a3snf {
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_wlmmg","label":"switch__label_wlmmg","hint":"switch__hint_wlmmg","checked":"switch__checked_wlmmg","disabled":"switch__disabled_wlmmg"};
3
+ const defaultStyles = {"switch":"switch__switch_a3snf","label":"switch__label_a3snf","hint":"switch__hint_a3snf","checked":"switch__checked_a3snf","disabled":"switch__disabled_a3snf"};
4
4
 
5
5
  export { defaultStyles as default };
6
6
  //# sourceMappingURL=default.module.css.js.map
package/modern/index.css CHANGED
@@ -20,8 +20,9 @@
20
20
  --gap-16: var(--gap-m);
21
21
  }
22
22
  :root {
23
- --font-family-system:
24
- system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, sans-serif;
23
+ --font-family-alfasans:
24
+ 'Alfa Interface Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
25
+ Helvetica, sans-serif;
25
26
  }
26
27
  :root {
27
28
  --focus-color: var(--color-light-status-info);
@@ -32,7 +33,7 @@
32
33
  --switch-error-color: var(--color-light-text-negative);
33
34
  --switch-icon-color: var(--color-static-neutral-0);
34
35
  }
35
- .switch__component_2fen2 {
36
+ .switch__component_4xozt {
36
37
  display: inline-flex;
37
38
  align-items: flex-start;
38
39
  margin: var(--gap-0);
@@ -41,25 +42,25 @@
41
42
  cursor: pointer;
42
43
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
43
44
  }
44
- .switch__component_2fen2 input {
45
+ .switch__component_4xozt input {
45
46
  opacity: 0;
46
47
  position: absolute;
47
48
  }
48
- .switch__start_2fen2 {
49
+ .switch__start_4xozt {
49
50
  align-items: flex-start;
50
51
  }
51
- .switch__center_2fen2 {
52
+ .switch__center_4xozt {
52
53
  align-items: center;
53
54
  }
54
- .switch__addons_2fen2 {
55
+ .switch__addons_4xozt {
55
56
  margin-left: auto;
56
57
  padding-left: var(--gap-16);
57
58
  line-height: 24px;
58
59
  }
59
- .switch__block_2fen2 {
60
+ .switch__block_4xozt {
60
61
  width: 100%;
61
62
  }
62
- .switch__switch_2fen2 {
63
+ .switch__switch_4xozt {
63
64
  position: relative;
64
65
  border-radius: var(--border-radius-16);
65
66
  width: 36px;
@@ -72,7 +73,7 @@
72
73
  border-color 0.2s ease;
73
74
  box-sizing: border-box;
74
75
  }
75
- .switch__switch_2fen2:before {
76
+ .switch__switch_4xozt:before {
76
77
  content: '';
77
78
  position: absolute;
78
79
  top: var(--gap-0);
@@ -85,54 +86,57 @@
85
86
  box-sizing: border-box;
86
87
  transition: transform 0.2s ease;
87
88
  }
88
- .switch__content_2fen2 {
89
+ .switch__content_4xozt {
89
90
  margin-left: var(--gap-12);
90
91
  flex-grow: 1;
91
92
  }
92
- .switch__label_2fen2 {
93
+ .switch__label_4xozt {
93
94
  font-size: 16px;
94
95
  line-height: 24px;
95
96
  font-weight: 400;
96
- font-family: var(--font-family-system);
97
+ letter-spacing: -0.24px;
98
+ font-family: var(--font-family-alfasans);
97
99
  display: block;
98
100
  }
99
- .switch__label_2fen2:not(:only-child) {
101
+ .switch__label_4xozt:not(:only-child) {
100
102
  margin-bottom: var(--gap-4);
101
103
  }
102
- .switch__errorMessage_2fen2 {
104
+ .switch__errorMessage_4xozt {
103
105
  font-size: 14px;
104
106
  line-height: 18px;
105
107
  font-weight: 400;
106
- font-family: var(--font-family-system);
108
+ letter-spacing: -0.08px;
109
+ font-family: var(--font-family-alfasans);
107
110
  color: var(--switch-error-color);
108
111
  }
109
- .switch__hint_2fen2 {
112
+ .switch__hint_4xozt {
110
113
  font-size: 14px;
111
114
  line-height: 18px;
112
115
  font-weight: 400;
113
- font-family: var(--font-family-system);
116
+ letter-spacing: -0.08px;
117
+ font-family: var(--font-family-alfasans);
114
118
  display: block;
115
119
  }
116
- .switch__component_2fen2.switch__reversed_2fen2 {
120
+ .switch__component_4xozt.switch__reversed_4xozt {
117
121
  flex-direction: row-reverse;
118
122
  }
119
- .switch__reversed_2fen2 .switch__content_2fen2 {
123
+ .switch__reversed_4xozt .switch__content_4xozt {
120
124
  margin-right: var(--gap-16);
121
125
  margin-left: var(--gap-0);
122
126
  }
123
- .switch__reversed_2fen2 .switch__addons_2fen2 {
127
+ .switch__reversed_4xozt .switch__addons_4xozt {
124
128
  margin-left: var(--gap-0);
125
129
  padding-left: var(--gap-0);
126
130
  margin-right: auto;
127
131
  padding-right: var(--gap-16);
128
132
  }
129
- .switch__checked_2fen2 .switch__switch_2fen2:before {
133
+ .switch__checked_4xozt .switch__switch_4xozt:before {
130
134
  transform: translateX(16px);
131
135
  }
132
- .switch__disabled_2fen2 {
136
+ .switch__disabled_4xozt {
133
137
  cursor: var(--disabled-cursor);
134
138
  }
135
- .switch__focused_2fen2 .switch__switch_2fen2 {
139
+ .switch__focused_4xozt .switch__switch_4xozt {
136
140
  outline: 2px solid var(--focus-color);
137
141
  outline-offset: 2px;
138
142
  }
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- const styles = {"component":"switch__component_2fen2","start":"switch__start_2fen2","center":"switch__center_2fen2","addons":"switch__addons_2fen2","block":"switch__block_2fen2","switch":"switch__switch_2fen2","content":"switch__content_2fen2","label":"switch__label_2fen2","errorMessage":"switch__errorMessage_2fen2","hint":"switch__hint_2fen2","reversed":"switch__reversed_2fen2","checked":"switch__checked_2fen2","disabled":"switch__disabled_2fen2","focused":"switch__focused_2fen2"};
3
+ const styles = {"component":"switch__component_4xozt","start":"switch__start_4xozt","center":"switch__center_4xozt","addons":"switch__addons_4xozt","block":"switch__block_4xozt","switch":"switch__switch_4xozt","content":"switch__content_4xozt","label":"switch__label_4xozt","errorMessage":"switch__errorMessage_4xozt","hint":"switch__hint_4xozt","reversed":"switch__reversed_4xozt","checked":"switch__checked_4xozt","disabled":"switch__disabled_4xozt","focused":"switch__focused_4xozt"};
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_l6s9m {
23
+ .switch__switch_6x7sw {
24
24
  background-color: var(--switch-bg-inverted-color);
25
25
  }
26
- .switch__switch_l6s9m:hover {
26
+ .switch__switch_6x7sw:hover {
27
27
  background-color: var(--switch-hover-bg-inverted-color);
28
28
  }
29
- .switch__label_l6s9m {
29
+ .switch__label_6x7sw {
30
30
  color: var(--switch-label-inverted-color);
31
31
  }
32
- .switch__hint_l6s9m {
32
+ .switch__hint_6x7sw {
33
33
  color: var(--switch-hint-inverted-color);
34
34
  }
35
- .switch__checked_l6s9m .switch__switch_l6s9m {
35
+ .switch__checked_6x7sw .switch__switch_6x7sw {
36
36
  background-color: var(--switch-checked-bg-inverted-color);
37
37
  }
38
- .switch__checked_l6s9m .switch__switch_l6s9m:hover {
38
+ .switch__checked_6x7sw .switch__switch_6x7sw:hover {
39
39
  background-color: var(--switch-checked-hover-bg-inverted-color);
40
40
  }
41
- .switch__disabled_l6s9m .switch__label_l6s9m {
41
+ .switch__disabled_6x7sw .switch__label_6x7sw {
42
42
  color: var(--switch-disabled-inverted-color);
43
43
  }
44
- .switch__disabled_l6s9m .switch__hint_l6s9m {
44
+ .switch__disabled_6x7sw .switch__hint_6x7sw {
45
45
  color: var(--switch-disabled-inverted-color);
46
46
  }
47
- .switch__disabled_l6s9m .switch__switch_l6s9m {
47
+ .switch__disabled_6x7sw .switch__switch_6x7sw {
48
48
  background-color: var(--switch-disabled-bg-inverted-color);
49
49
  }
50
- .switch__disabled_l6s9m .switch__switch_l6s9m:before {
50
+ .switch__disabled_6x7sw .switch__switch_6x7sw:before {
51
51
  background-color: var(--switch-icon-disabled-inverted-color);
52
52
  }
53
- .switch__disabled_l6s9m.switch__checked_l6s9m .switch__switch_l6s9m {
53
+ .switch__disabled_6x7sw.switch__checked_6x7sw .switch__switch_6x7sw {
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_l6s9m","label":"switch__label_l6s9m","hint":"switch__hint_l6s9m","checked":"switch__checked_l6s9m","disabled":"switch__disabled_l6s9m"};
3
+ const invertedStyles = {"switch":"switch__switch_6x7sw","label":"switch__label_6x7sw","hint":"switch__hint_6x7sw","checked":"switch__checked_6x7sw","disabled":"switch__disabled_6x7sw"};
4
4
 
5
5
  export { invertedStyles as default };
6
6
  //# sourceMappingURL=inverted.module.css.js.map
@@ -74,7 +74,8 @@
74
74
  font-size: 16px;
75
75
  line-height: 24px;
76
76
  font-weight: 400;
77
- font-family: var(--font-family-system);
77
+ letter-spacing: -0.24px;
78
+ font-family: var(--font-family-alfasans);
78
79
  display: block;
79
80
  }
80
81
 
@@ -86,7 +87,8 @@
86
87
  font-size: 14px;
87
88
  line-height: 18px;
88
89
  font-weight: 400;
89
- font-family: var(--font-family-system);
90
+ letter-spacing: -0.08px;
91
+ font-family: var(--font-family-alfasans);
90
92
  color: var(--switch-error-color);
91
93
  }
92
94
 
@@ -94,7 +96,8 @@
94
96
  font-size: 14px;
95
97
  line-height: 18px;
96
98
  font-weight: 400;
97
- font-family: var(--font-family-system);
99
+ letter-spacing: -0.08px;
100
+ font-family: var(--font-family-alfasans);
98
101
  display: block;
99
102
  }
100
103
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-switch",
3
- "version": "6.0.1",
3
+ "version": "6.0.2-alfasans",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -10,7 +10,7 @@
10
10
  "main": "index.js",
11
11
  "module": "./esm/index.js",
12
12
  "dependencies": {
13
- "@alfalab/core-components-shared": "^2.0.1",
13
+ "@alfalab/core-components-shared": "2.1.0-alfasans",
14
14
  "@alfalab/hooks": "^1.13.1",
15
15
  "classnames": "^2.5.1",
16
16
  "react-merge-refs": "^1.1.0",
@@ -25,6 +25,6 @@
25
25
  "directory": "dist"
26
26
  },
27
27
  "gitHead": "f054fef20200664c65e2501ef1f916c555cdf05d",
28
- "themesVersion": "15.0.1",
29
- "varsVersion": "11.0.1"
28
+ "themesVersion": "15.0.1-alfasans",
29
+ "varsVersion": "11.0.1-alfasans"
30
30
  }