@alfalab/core-components-switch 5.0.0 → 5.0.1-snapshot-c2c8d5a

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/default.css CHANGED
@@ -18,26 +18,26 @@
18
18
  --switch-disabled-bg-color: var(--color-light-neutral-translucent-200);
19
19
  --switch-disabled-checked-bg-color: var(--switch-disabled-bg-color);
20
20
  --switch-icon-disabled-color: var(--color-light-neutral-translucent-500);
21
- } .switch__switch_1lbvd {
21
+ } .switch__switch_1hhos {
22
22
  background-color: var(--switch-bg-color)
23
- } .switch__switch_1lbvd:hover {
23
+ } .switch__switch_1hhos:hover {
24
24
  background-color: var(--switch-hover-bg-color);
25
- } .switch__label_1lbvd {
25
+ } .switch__label_1hhos {
26
26
  color: var(--switch-label-color);
27
- } .switch__hint_1lbvd {
27
+ } .switch__hint_1hhos {
28
28
  color: var(--switch-hint-color);
29
- } .switch__checked_1lbvd .switch__switch_1lbvd {
29
+ } .switch__checked_1hhos .switch__switch_1hhos {
30
30
  background-color: var(--switch-checked-bg-color)
31
- } .switch__checked_1lbvd .switch__switch_1lbvd:hover {
31
+ } .switch__checked_1hhos .switch__switch_1hhos:hover {
32
32
  background-color: var(--switch-checked-hover-bg-color);
33
- } .switch__disabled_1lbvd .switch__label_1lbvd {
33
+ } .switch__disabled_1hhos .switch__label_1hhos {
34
34
  color: var(--switch-disabled-color);
35
- } .switch__disabled_1lbvd .switch__hint_1lbvd {
35
+ } .switch__disabled_1hhos .switch__hint_1hhos {
36
36
  color: var(--switch-disabled-color);
37
- } .switch__disabled_1lbvd .switch__switch_1lbvd {
37
+ } .switch__disabled_1hhos .switch__switch_1hhos {
38
38
  background-color: var(--switch-disabled-bg-color)
39
- } .switch__disabled_1lbvd .switch__switch_1lbvd:before {
39
+ } .switch__disabled_1hhos .switch__switch_1hhos:before {
40
40
  background-color: var(--switch-icon-disabled-color);
41
- } .switch__disabled_1lbvd.switch__checked_1lbvd .switch__switch_1lbvd {
41
+ } .switch__disabled_1hhos.switch__checked_1hhos .switch__switch_1hhos {
42
42
  background-color: var(--switch-disabled-checked-bg-color);
43
43
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  require('./default.css');
4
4
 
5
- var defaultStyles = {"switch":"switch__switch_1lbvd","label":"switch__label_1lbvd","hint":"switch__hint_1lbvd","checked":"switch__checked_1lbvd","disabled":"switch__disabled_1lbvd"};
5
+ var defaultStyles = {"switch":"switch__switch_1hhos","label":"switch__label_1hhos","hint":"switch__hint_1hhos","checked":"switch__checked_1hhos","disabled":"switch__disabled_1hhos"};
6
6
 
7
7
  module.exports = defaultStyles;
8
8
  //# sourceMappingURL=default.module.css.js.map
package/esm/default.css CHANGED
@@ -18,26 +18,26 @@
18
18
  --switch-disabled-bg-color: var(--color-light-neutral-translucent-200);
19
19
  --switch-disabled-checked-bg-color: var(--switch-disabled-bg-color);
20
20
  --switch-icon-disabled-color: var(--color-light-neutral-translucent-500);
21
- } .switch__switch_1lbvd {
21
+ } .switch__switch_1hhos {
22
22
  background-color: var(--switch-bg-color)
23
- } .switch__switch_1lbvd:hover {
23
+ } .switch__switch_1hhos:hover {
24
24
  background-color: var(--switch-hover-bg-color);
25
- } .switch__label_1lbvd {
25
+ } .switch__label_1hhos {
26
26
  color: var(--switch-label-color);
27
- } .switch__hint_1lbvd {
27
+ } .switch__hint_1hhos {
28
28
  color: var(--switch-hint-color);
29
- } .switch__checked_1lbvd .switch__switch_1lbvd {
29
+ } .switch__checked_1hhos .switch__switch_1hhos {
30
30
  background-color: var(--switch-checked-bg-color)
31
- } .switch__checked_1lbvd .switch__switch_1lbvd:hover {
31
+ } .switch__checked_1hhos .switch__switch_1hhos:hover {
32
32
  background-color: var(--switch-checked-hover-bg-color);
33
- } .switch__disabled_1lbvd .switch__label_1lbvd {
33
+ } .switch__disabled_1hhos .switch__label_1hhos {
34
34
  color: var(--switch-disabled-color);
35
- } .switch__disabled_1lbvd .switch__hint_1lbvd {
35
+ } .switch__disabled_1hhos .switch__hint_1hhos {
36
36
  color: var(--switch-disabled-color);
37
- } .switch__disabled_1lbvd .switch__switch_1lbvd {
37
+ } .switch__disabled_1hhos .switch__switch_1hhos {
38
38
  background-color: var(--switch-disabled-bg-color)
39
- } .switch__disabled_1lbvd .switch__switch_1lbvd:before {
39
+ } .switch__disabled_1hhos .switch__switch_1hhos:before {
40
40
  background-color: var(--switch-icon-disabled-color);
41
- } .switch__disabled_1lbvd.switch__checked_1lbvd .switch__switch_1lbvd {
41
+ } .switch__disabled_1hhos.switch__checked_1hhos .switch__switch_1hhos {
42
42
  background-color: var(--switch-disabled-checked-bg-color);
43
43
  }
@@ -1,6 +1,6 @@
1
1
  import './default.css';
2
2
 
3
- var defaultStyles = {"switch":"switch__switch_1lbvd","label":"switch__label_1lbvd","hint":"switch__hint_1lbvd","checked":"switch__checked_1lbvd","disabled":"switch__disabled_1lbvd"};
3
+ var defaultStyles = {"switch":"switch__switch_1hhos","label":"switch__label_1hhos","hint":"switch__hint_1hhos","checked":"switch__checked_1hhos","disabled":"switch__disabled_1hhos"};
4
4
 
5
5
  export { defaultStyles as default };
6
6
  //# sourceMappingURL=default.module.css.js.map
package/esm/index.css CHANGED
@@ -23,7 +23,7 @@
23
23
  --switch-border-color: transparent;
24
24
  --switch-error-color: var(--color-light-text-negative);
25
25
  --switch-icon-color: var(--color-static-neutral-0);
26
- } .switch__component_57i6y {
26
+ } .switch__component_cb5ce {
27
27
  display: inline-flex;
28
28
  align-items: flex-start;
29
29
  margin: var(--gap-0);
@@ -31,20 +31,20 @@
31
31
  border: 0;
32
32
  cursor: pointer;
33
33
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
34
- } .switch__component_57i6y input {
34
+ } .switch__component_cb5ce input {
35
35
  opacity: 0;
36
36
  position: absolute;
37
- } .switch__start_57i6y {
37
+ } .switch__start_cb5ce {
38
38
  align-items: flex-start;
39
- } .switch__center_57i6y {
39
+ } .switch__center_cb5ce {
40
40
  align-items: center;
41
- } .switch__addons_57i6y {
41
+ } .switch__addons_cb5ce {
42
42
  margin-left: auto;
43
43
  padding-left: var(--gap-16);
44
44
  line-height: 24px;
45
- } .switch__block_57i6y {
45
+ } .switch__block_cb5ce {
46
46
  width: 100%;
47
- } .switch__switch_57i6y {
47
+ } .switch__switch_cb5ce {
48
48
  position: relative;
49
49
  border-radius: var(--border-radius-16);
50
50
  width: 36px;
@@ -54,7 +54,7 @@
54
54
  border: 2px solid var(--switch-border-color);
55
55
  transition: background-color 0.2s ease, border-color 0.2s ease;
56
56
  box-sizing: border-box;
57
- } .switch__switch_57i6y:before {
57
+ } .switch__switch_cb5ce:before {
58
58
  content: '';
59
59
  position: absolute;
60
60
  top: var(--gap-0);
@@ -66,41 +66,41 @@
66
66
  background-color: var(--switch-icon-color);
67
67
  box-sizing: border-box;
68
68
  transition: transform 0.2s ease;
69
- } .switch__content_57i6y {
69
+ } .switch__content_cb5ce {
70
70
  margin-left: var(--gap-12);
71
71
  flex-grow: 1;
72
- } .switch__label_57i6y {
72
+ } .switch__label_cb5ce {
73
73
  font-size: 16px;
74
74
  line-height: 24px;
75
75
  font-weight: 400;
76
76
  display: block;
77
- } .switch__label_57i6y:not(:only-child) {
77
+ } .switch__label_cb5ce:not(:only-child) {
78
78
  margin-bottom: var(--gap-4);
79
- } .switch__errorMessage_57i6y {
79
+ } .switch__errorMessage_cb5ce {
80
80
  font-size: 14px;
81
81
  line-height: 18px;
82
82
  font-weight: 400;
83
83
  color: var(--switch-error-color);
84
- } .switch__hint_57i6y {
84
+ } .switch__hint_cb5ce {
85
85
  font-size: 14px;
86
86
  line-height: 18px;
87
87
  font-weight: 400;
88
88
  display: block;
89
- } .switch__component_57i6y.switch__reversed_57i6y {
89
+ } .switch__component_cb5ce.switch__reversed_cb5ce {
90
90
  flex-direction: row-reverse;
91
- } .switch__reversed_57i6y .switch__content_57i6y {
91
+ } .switch__reversed_cb5ce .switch__content_cb5ce {
92
92
  margin-right: var(--gap-16);
93
93
  margin-left: var(--gap-0);
94
- } .switch__reversed_57i6y .switch__addons_57i6y {
94
+ } .switch__reversed_cb5ce .switch__addons_cb5ce {
95
95
  margin-left: var(--gap-0);
96
96
  padding-left: var(--gap-0);
97
97
  margin-right: auto;
98
98
  padding-right: var(--gap-16);
99
- } .switch__checked_57i6y .switch__switch_57i6y:before {
99
+ } .switch__checked_cb5ce .switch__switch_cb5ce:before {
100
100
  transform: translateX(16px);
101
- } .switch__disabled_57i6y {
101
+ } .switch__disabled_cb5ce {
102
102
  cursor: var(--disabled-cursor);
103
- } .switch__focused_57i6y .switch__switch_57i6y {
103
+ } .switch__focused_cb5ce .switch__switch_cb5ce {
104
104
  outline: 2px solid var(--focus-color);
105
105
  outline-offset: 2px;
106
106
  }
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- var styles = {"component":"switch__component_57i6y","start":"switch__start_57i6y","center":"switch__center_57i6y","addons":"switch__addons_57i6y","block":"switch__block_57i6y","switch":"switch__switch_57i6y","content":"switch__content_57i6y","label":"switch__label_57i6y","errorMessage":"switch__errorMessage_57i6y","hint":"switch__hint_57i6y","reversed":"switch__reversed_57i6y","checked":"switch__checked_57i6y","disabled":"switch__disabled_57i6y","focused":"switch__focused_57i6y"};
3
+ var styles = {"component":"switch__component_cb5ce","start":"switch__start_cb5ce","center":"switch__center_cb5ce","addons":"switch__addons_cb5ce","block":"switch__block_cb5ce","switch":"switch__switch_cb5ce","content":"switch__content_cb5ce","label":"switch__label_cb5ce","errorMessage":"switch__errorMessage_cb5ce","hint":"switch__hint_cb5ce","reversed":"switch__reversed_cb5ce","checked":"switch__checked_cb5ce","disabled":"switch__disabled_cb5ce","focused":"switch__focused_cb5ce"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=index.module.css.js.map
package/esm/inverted.css CHANGED
@@ -18,26 +18,26 @@
18
18
  --switch-disabled-bg-inverted-color: var(--color-light-neutral-translucent-200-inverted);
19
19
  --switch-disabled-checked-bg-inverted-color: var(--switch-disabled-bg-inverted-color);
20
20
  --switch-icon-disabled-inverted-color: var(--color-light-neutral-translucent-500-inverted);
21
- } .switch__switch_19x10 {
21
+ } .switch__switch_1t2h6 {
22
22
  background-color: var(--switch-bg-inverted-color)
23
- } .switch__switch_19x10:hover {
23
+ } .switch__switch_1t2h6:hover {
24
24
  background-color: var(--switch-hover-bg-inverted-color);
25
- } .switch__label_19x10 {
25
+ } .switch__label_1t2h6 {
26
26
  color: var(--switch-label-inverted-color);
27
- } .switch__hint_19x10 {
27
+ } .switch__hint_1t2h6 {
28
28
  color: var(--switch-hint-inverted-color);
29
- } .switch__checked_19x10 .switch__switch_19x10 {
29
+ } .switch__checked_1t2h6 .switch__switch_1t2h6 {
30
30
  background-color: var(--switch-checked-bg-inverted-color)
31
- } .switch__checked_19x10 .switch__switch_19x10:hover {
31
+ } .switch__checked_1t2h6 .switch__switch_1t2h6:hover {
32
32
  background-color: var(--switch-checked-hover-bg-inverted-color);
33
- } .switch__disabled_19x10 .switch__label_19x10 {
33
+ } .switch__disabled_1t2h6 .switch__label_1t2h6 {
34
34
  color: var(--switch-disabled-inverted-color);
35
- } .switch__disabled_19x10 .switch__hint_19x10 {
35
+ } .switch__disabled_1t2h6 .switch__hint_1t2h6 {
36
36
  color: var(--switch-disabled-inverted-color);
37
- } .switch__disabled_19x10 .switch__switch_19x10 {
37
+ } .switch__disabled_1t2h6 .switch__switch_1t2h6 {
38
38
  background-color: var(--switch-disabled-bg-inverted-color)
39
- } .switch__disabled_19x10 .switch__switch_19x10:before {
39
+ } .switch__disabled_1t2h6 .switch__switch_1t2h6:before {
40
40
  background-color: var(--switch-icon-disabled-inverted-color);
41
- } .switch__disabled_19x10.switch__checked_19x10 .switch__switch_19x10 {
41
+ } .switch__disabled_1t2h6.switch__checked_1t2h6 .switch__switch_1t2h6 {
42
42
  background-color: var(--switch-disabled-checked-bg-inverted-color);
43
43
  }
@@ -1,6 +1,6 @@
1
1
  import './inverted.css';
2
2
 
3
- var invertedStyles = {"switch":"switch__switch_19x10","label":"switch__label_19x10","hint":"switch__hint_19x10","checked":"switch__checked_19x10","disabled":"switch__disabled_19x10"};
3
+ var invertedStyles = {"switch":"switch__switch_1t2h6","label":"switch__label_1t2h6","hint":"switch__hint_1t2h6","checked":"switch__checked_1t2h6","disabled":"switch__disabled_1t2h6"};
4
4
 
5
5
  export { invertedStyles as default };
6
6
  //# sourceMappingURL=inverted.module.css.js.map
package/index.css CHANGED
@@ -23,7 +23,7 @@
23
23
  --switch-border-color: transparent;
24
24
  --switch-error-color: var(--color-light-text-negative);
25
25
  --switch-icon-color: var(--color-static-neutral-0);
26
- } .switch__component_57i6y {
26
+ } .switch__component_cb5ce {
27
27
  display: inline-flex;
28
28
  align-items: flex-start;
29
29
  margin: var(--gap-0);
@@ -31,20 +31,20 @@
31
31
  border: 0;
32
32
  cursor: pointer;
33
33
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
34
- } .switch__component_57i6y input {
34
+ } .switch__component_cb5ce input {
35
35
  opacity: 0;
36
36
  position: absolute;
37
- } .switch__start_57i6y {
37
+ } .switch__start_cb5ce {
38
38
  align-items: flex-start;
39
- } .switch__center_57i6y {
39
+ } .switch__center_cb5ce {
40
40
  align-items: center;
41
- } .switch__addons_57i6y {
41
+ } .switch__addons_cb5ce {
42
42
  margin-left: auto;
43
43
  padding-left: var(--gap-16);
44
44
  line-height: 24px;
45
- } .switch__block_57i6y {
45
+ } .switch__block_cb5ce {
46
46
  width: 100%;
47
- } .switch__switch_57i6y {
47
+ } .switch__switch_cb5ce {
48
48
  position: relative;
49
49
  border-radius: var(--border-radius-16);
50
50
  width: 36px;
@@ -54,7 +54,7 @@
54
54
  border: 2px solid var(--switch-border-color);
55
55
  transition: background-color 0.2s ease, border-color 0.2s ease;
56
56
  box-sizing: border-box;
57
- } .switch__switch_57i6y:before {
57
+ } .switch__switch_cb5ce:before {
58
58
  content: '';
59
59
  position: absolute;
60
60
  top: var(--gap-0);
@@ -66,41 +66,41 @@
66
66
  background-color: var(--switch-icon-color);
67
67
  box-sizing: border-box;
68
68
  transition: transform 0.2s ease;
69
- } .switch__content_57i6y {
69
+ } .switch__content_cb5ce {
70
70
  margin-left: var(--gap-12);
71
71
  flex-grow: 1;
72
- } .switch__label_57i6y {
72
+ } .switch__label_cb5ce {
73
73
  font-size: 16px;
74
74
  line-height: 24px;
75
75
  font-weight: 400;
76
76
  display: block;
77
- } .switch__label_57i6y:not(:only-child) {
77
+ } .switch__label_cb5ce:not(:only-child) {
78
78
  margin-bottom: var(--gap-4);
79
- } .switch__errorMessage_57i6y {
79
+ } .switch__errorMessage_cb5ce {
80
80
  font-size: 14px;
81
81
  line-height: 18px;
82
82
  font-weight: 400;
83
83
  color: var(--switch-error-color);
84
- } .switch__hint_57i6y {
84
+ } .switch__hint_cb5ce {
85
85
  font-size: 14px;
86
86
  line-height: 18px;
87
87
  font-weight: 400;
88
88
  display: block;
89
- } .switch__component_57i6y.switch__reversed_57i6y {
89
+ } .switch__component_cb5ce.switch__reversed_cb5ce {
90
90
  flex-direction: row-reverse;
91
- } .switch__reversed_57i6y .switch__content_57i6y {
91
+ } .switch__reversed_cb5ce .switch__content_cb5ce {
92
92
  margin-right: var(--gap-16);
93
93
  margin-left: var(--gap-0);
94
- } .switch__reversed_57i6y .switch__addons_57i6y {
94
+ } .switch__reversed_cb5ce .switch__addons_cb5ce {
95
95
  margin-left: var(--gap-0);
96
96
  padding-left: var(--gap-0);
97
97
  margin-right: auto;
98
98
  padding-right: var(--gap-16);
99
- } .switch__checked_57i6y .switch__switch_57i6y:before {
99
+ } .switch__checked_cb5ce .switch__switch_cb5ce:before {
100
100
  transform: translateX(16px);
101
- } .switch__disabled_57i6y {
101
+ } .switch__disabled_cb5ce {
102
102
  cursor: var(--disabled-cursor);
103
- } .switch__focused_57i6y .switch__switch_57i6y {
103
+ } .switch__focused_cb5ce .switch__switch_cb5ce {
104
104
  outline: 2px solid var(--focus-color);
105
105
  outline-offset: 2px;
106
106
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  require('./index.css');
4
4
 
5
- var styles = {"component":"switch__component_57i6y","start":"switch__start_57i6y","center":"switch__center_57i6y","addons":"switch__addons_57i6y","block":"switch__block_57i6y","switch":"switch__switch_57i6y","content":"switch__content_57i6y","label":"switch__label_57i6y","errorMessage":"switch__errorMessage_57i6y","hint":"switch__hint_57i6y","reversed":"switch__reversed_57i6y","checked":"switch__checked_57i6y","disabled":"switch__disabled_57i6y","focused":"switch__focused_57i6y"};
5
+ var styles = {"component":"switch__component_cb5ce","start":"switch__start_cb5ce","center":"switch__center_cb5ce","addons":"switch__addons_cb5ce","block":"switch__block_cb5ce","switch":"switch__switch_cb5ce","content":"switch__content_cb5ce","label":"switch__label_cb5ce","errorMessage":"switch__errorMessage_cb5ce","hint":"switch__hint_cb5ce","reversed":"switch__reversed_cb5ce","checked":"switch__checked_cb5ce","disabled":"switch__disabled_cb5ce","focused":"switch__focused_cb5ce"};
6
6
 
7
7
  module.exports = styles;
8
8
  //# sourceMappingURL=index.module.css.js.map
package/inverted.css CHANGED
@@ -18,26 +18,26 @@
18
18
  --switch-disabled-bg-inverted-color: var(--color-light-neutral-translucent-200-inverted);
19
19
  --switch-disabled-checked-bg-inverted-color: var(--switch-disabled-bg-inverted-color);
20
20
  --switch-icon-disabled-inverted-color: var(--color-light-neutral-translucent-500-inverted);
21
- } .switch__switch_19x10 {
21
+ } .switch__switch_1t2h6 {
22
22
  background-color: var(--switch-bg-inverted-color)
23
- } .switch__switch_19x10:hover {
23
+ } .switch__switch_1t2h6:hover {
24
24
  background-color: var(--switch-hover-bg-inverted-color);
25
- } .switch__label_19x10 {
25
+ } .switch__label_1t2h6 {
26
26
  color: var(--switch-label-inverted-color);
27
- } .switch__hint_19x10 {
27
+ } .switch__hint_1t2h6 {
28
28
  color: var(--switch-hint-inverted-color);
29
- } .switch__checked_19x10 .switch__switch_19x10 {
29
+ } .switch__checked_1t2h6 .switch__switch_1t2h6 {
30
30
  background-color: var(--switch-checked-bg-inverted-color)
31
- } .switch__checked_19x10 .switch__switch_19x10:hover {
31
+ } .switch__checked_1t2h6 .switch__switch_1t2h6:hover {
32
32
  background-color: var(--switch-checked-hover-bg-inverted-color);
33
- } .switch__disabled_19x10 .switch__label_19x10 {
33
+ } .switch__disabled_1t2h6 .switch__label_1t2h6 {
34
34
  color: var(--switch-disabled-inverted-color);
35
- } .switch__disabled_19x10 .switch__hint_19x10 {
35
+ } .switch__disabled_1t2h6 .switch__hint_1t2h6 {
36
36
  color: var(--switch-disabled-inverted-color);
37
- } .switch__disabled_19x10 .switch__switch_19x10 {
37
+ } .switch__disabled_1t2h6 .switch__switch_1t2h6 {
38
38
  background-color: var(--switch-disabled-bg-inverted-color)
39
- } .switch__disabled_19x10 .switch__switch_19x10:before {
39
+ } .switch__disabled_1t2h6 .switch__switch_1t2h6:before {
40
40
  background-color: var(--switch-icon-disabled-inverted-color);
41
- } .switch__disabled_19x10.switch__checked_19x10 .switch__switch_19x10 {
41
+ } .switch__disabled_1t2h6.switch__checked_1t2h6 .switch__switch_1t2h6 {
42
42
  background-color: var(--switch-disabled-checked-bg-inverted-color);
43
43
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  require('./inverted.css');
4
4
 
5
- var invertedStyles = {"switch":"switch__switch_19x10","label":"switch__label_19x10","hint":"switch__hint_19x10","checked":"switch__checked_19x10","disabled":"switch__disabled_19x10"};
5
+ var invertedStyles = {"switch":"switch__switch_1t2h6","label":"switch__label_1t2h6","hint":"switch__hint_1t2h6","checked":"switch__checked_1t2h6","disabled":"switch__disabled_1t2h6"};
6
6
 
7
7
  module.exports = invertedStyles;
8
8
  //# sourceMappingURL=inverted.module.css.js.map
@@ -18,26 +18,26 @@
18
18
  --switch-disabled-bg-color: var(--color-light-neutral-translucent-200);
19
19
  --switch-disabled-checked-bg-color: var(--switch-disabled-bg-color);
20
20
  --switch-icon-disabled-color: var(--color-light-neutral-translucent-500);
21
- } .switch__switch_1lbvd {
21
+ } .switch__switch_1hhos {
22
22
  background-color: var(--switch-bg-color)
23
- } .switch__switch_1lbvd:hover {
23
+ } .switch__switch_1hhos:hover {
24
24
  background-color: var(--switch-hover-bg-color);
25
- } .switch__label_1lbvd {
25
+ } .switch__label_1hhos {
26
26
  color: var(--switch-label-color);
27
- } .switch__hint_1lbvd {
27
+ } .switch__hint_1hhos {
28
28
  color: var(--switch-hint-color);
29
- } .switch__checked_1lbvd .switch__switch_1lbvd {
29
+ } .switch__checked_1hhos .switch__switch_1hhos {
30
30
  background-color: var(--switch-checked-bg-color)
31
- } .switch__checked_1lbvd .switch__switch_1lbvd:hover {
31
+ } .switch__checked_1hhos .switch__switch_1hhos:hover {
32
32
  background-color: var(--switch-checked-hover-bg-color);
33
- } .switch__disabled_1lbvd .switch__label_1lbvd {
33
+ } .switch__disabled_1hhos .switch__label_1hhos {
34
34
  color: var(--switch-disabled-color);
35
- } .switch__disabled_1lbvd .switch__hint_1lbvd {
35
+ } .switch__disabled_1hhos .switch__hint_1hhos {
36
36
  color: var(--switch-disabled-color);
37
- } .switch__disabled_1lbvd .switch__switch_1lbvd {
37
+ } .switch__disabled_1hhos .switch__switch_1hhos {
38
38
  background-color: var(--switch-disabled-bg-color)
39
- } .switch__disabled_1lbvd .switch__switch_1lbvd:before {
39
+ } .switch__disabled_1hhos .switch__switch_1hhos:before {
40
40
  background-color: var(--switch-icon-disabled-color);
41
- } .switch__disabled_1lbvd.switch__checked_1lbvd .switch__switch_1lbvd {
41
+ } .switch__disabled_1hhos.switch__checked_1hhos .switch__switch_1hhos {
42
42
  background-color: var(--switch-disabled-checked-bg-color);
43
43
  }
@@ -1,6 +1,6 @@
1
1
  import './default.css';
2
2
 
3
- const defaultStyles = {"switch":"switch__switch_1lbvd","label":"switch__label_1lbvd","hint":"switch__hint_1lbvd","checked":"switch__checked_1lbvd","disabled":"switch__disabled_1lbvd"};
3
+ const defaultStyles = {"switch":"switch__switch_1hhos","label":"switch__label_1hhos","hint":"switch__hint_1hhos","checked":"switch__checked_1hhos","disabled":"switch__disabled_1hhos"};
4
4
 
5
5
  export { defaultStyles as default };
6
6
  //# sourceMappingURL=default.module.css.js.map
package/modern/index.css CHANGED
@@ -23,7 +23,7 @@
23
23
  --switch-border-color: transparent;
24
24
  --switch-error-color: var(--color-light-text-negative);
25
25
  --switch-icon-color: var(--color-static-neutral-0);
26
- } .switch__component_57i6y {
26
+ } .switch__component_cb5ce {
27
27
  display: inline-flex;
28
28
  align-items: flex-start;
29
29
  margin: var(--gap-0);
@@ -31,20 +31,20 @@
31
31
  border: 0;
32
32
  cursor: pointer;
33
33
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
34
- } .switch__component_57i6y input {
34
+ } .switch__component_cb5ce input {
35
35
  opacity: 0;
36
36
  position: absolute;
37
- } .switch__start_57i6y {
37
+ } .switch__start_cb5ce {
38
38
  align-items: flex-start;
39
- } .switch__center_57i6y {
39
+ } .switch__center_cb5ce {
40
40
  align-items: center;
41
- } .switch__addons_57i6y {
41
+ } .switch__addons_cb5ce {
42
42
  margin-left: auto;
43
43
  padding-left: var(--gap-16);
44
44
  line-height: 24px;
45
- } .switch__block_57i6y {
45
+ } .switch__block_cb5ce {
46
46
  width: 100%;
47
- } .switch__switch_57i6y {
47
+ } .switch__switch_cb5ce {
48
48
  position: relative;
49
49
  border-radius: var(--border-radius-16);
50
50
  width: 36px;
@@ -54,7 +54,7 @@
54
54
  border: 2px solid var(--switch-border-color);
55
55
  transition: background-color 0.2s ease, border-color 0.2s ease;
56
56
  box-sizing: border-box;
57
- } .switch__switch_57i6y:before {
57
+ } .switch__switch_cb5ce:before {
58
58
  content: '';
59
59
  position: absolute;
60
60
  top: var(--gap-0);
@@ -66,41 +66,41 @@
66
66
  background-color: var(--switch-icon-color);
67
67
  box-sizing: border-box;
68
68
  transition: transform 0.2s ease;
69
- } .switch__content_57i6y {
69
+ } .switch__content_cb5ce {
70
70
  margin-left: var(--gap-12);
71
71
  flex-grow: 1;
72
- } .switch__label_57i6y {
72
+ } .switch__label_cb5ce {
73
73
  font-size: 16px;
74
74
  line-height: 24px;
75
75
  font-weight: 400;
76
76
  display: block;
77
- } .switch__label_57i6y:not(:only-child) {
77
+ } .switch__label_cb5ce:not(:only-child) {
78
78
  margin-bottom: var(--gap-4);
79
- } .switch__errorMessage_57i6y {
79
+ } .switch__errorMessage_cb5ce {
80
80
  font-size: 14px;
81
81
  line-height: 18px;
82
82
  font-weight: 400;
83
83
  color: var(--switch-error-color);
84
- } .switch__hint_57i6y {
84
+ } .switch__hint_cb5ce {
85
85
  font-size: 14px;
86
86
  line-height: 18px;
87
87
  font-weight: 400;
88
88
  display: block;
89
- } .switch__component_57i6y.switch__reversed_57i6y {
89
+ } .switch__component_cb5ce.switch__reversed_cb5ce {
90
90
  flex-direction: row-reverse;
91
- } .switch__reversed_57i6y .switch__content_57i6y {
91
+ } .switch__reversed_cb5ce .switch__content_cb5ce {
92
92
  margin-right: var(--gap-16);
93
93
  margin-left: var(--gap-0);
94
- } .switch__reversed_57i6y .switch__addons_57i6y {
94
+ } .switch__reversed_cb5ce .switch__addons_cb5ce {
95
95
  margin-left: var(--gap-0);
96
96
  padding-left: var(--gap-0);
97
97
  margin-right: auto;
98
98
  padding-right: var(--gap-16);
99
- } .switch__checked_57i6y .switch__switch_57i6y:before {
99
+ } .switch__checked_cb5ce .switch__switch_cb5ce:before {
100
100
  transform: translateX(16px);
101
- } .switch__disabled_57i6y {
101
+ } .switch__disabled_cb5ce {
102
102
  cursor: var(--disabled-cursor);
103
- } .switch__focused_57i6y .switch__switch_57i6y {
103
+ } .switch__focused_cb5ce .switch__switch_cb5ce {
104
104
  outline: 2px solid var(--focus-color);
105
105
  outline-offset: 2px;
106
106
  }
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- const styles = {"component":"switch__component_57i6y","start":"switch__start_57i6y","center":"switch__center_57i6y","addons":"switch__addons_57i6y","block":"switch__block_57i6y","switch":"switch__switch_57i6y","content":"switch__content_57i6y","label":"switch__label_57i6y","errorMessage":"switch__errorMessage_57i6y","hint":"switch__hint_57i6y","reversed":"switch__reversed_57i6y","checked":"switch__checked_57i6y","disabled":"switch__disabled_57i6y","focused":"switch__focused_57i6y"};
3
+ const styles = {"component":"switch__component_cb5ce","start":"switch__start_cb5ce","center":"switch__center_cb5ce","addons":"switch__addons_cb5ce","block":"switch__block_cb5ce","switch":"switch__switch_cb5ce","content":"switch__content_cb5ce","label":"switch__label_cb5ce","errorMessage":"switch__errorMessage_cb5ce","hint":"switch__hint_cb5ce","reversed":"switch__reversed_cb5ce","checked":"switch__checked_cb5ce","disabled":"switch__disabled_cb5ce","focused":"switch__focused_cb5ce"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=index.module.css.js.map
@@ -18,26 +18,26 @@
18
18
  --switch-disabled-bg-inverted-color: var(--color-light-neutral-translucent-200-inverted);
19
19
  --switch-disabled-checked-bg-inverted-color: var(--switch-disabled-bg-inverted-color);
20
20
  --switch-icon-disabled-inverted-color: var(--color-light-neutral-translucent-500-inverted);
21
- } .switch__switch_19x10 {
21
+ } .switch__switch_1t2h6 {
22
22
  background-color: var(--switch-bg-inverted-color)
23
- } .switch__switch_19x10:hover {
23
+ } .switch__switch_1t2h6:hover {
24
24
  background-color: var(--switch-hover-bg-inverted-color);
25
- } .switch__label_19x10 {
25
+ } .switch__label_1t2h6 {
26
26
  color: var(--switch-label-inverted-color);
27
- } .switch__hint_19x10 {
27
+ } .switch__hint_1t2h6 {
28
28
  color: var(--switch-hint-inverted-color);
29
- } .switch__checked_19x10 .switch__switch_19x10 {
29
+ } .switch__checked_1t2h6 .switch__switch_1t2h6 {
30
30
  background-color: var(--switch-checked-bg-inverted-color)
31
- } .switch__checked_19x10 .switch__switch_19x10:hover {
31
+ } .switch__checked_1t2h6 .switch__switch_1t2h6:hover {
32
32
  background-color: var(--switch-checked-hover-bg-inverted-color);
33
- } .switch__disabled_19x10 .switch__label_19x10 {
33
+ } .switch__disabled_1t2h6 .switch__label_1t2h6 {
34
34
  color: var(--switch-disabled-inverted-color);
35
- } .switch__disabled_19x10 .switch__hint_19x10 {
35
+ } .switch__disabled_1t2h6 .switch__hint_1t2h6 {
36
36
  color: var(--switch-disabled-inverted-color);
37
- } .switch__disabled_19x10 .switch__switch_19x10 {
37
+ } .switch__disabled_1t2h6 .switch__switch_1t2h6 {
38
38
  background-color: var(--switch-disabled-bg-inverted-color)
39
- } .switch__disabled_19x10 .switch__switch_19x10:before {
39
+ } .switch__disabled_1t2h6 .switch__switch_1t2h6:before {
40
40
  background-color: var(--switch-icon-disabled-inverted-color);
41
- } .switch__disabled_19x10.switch__checked_19x10 .switch__switch_19x10 {
41
+ } .switch__disabled_1t2h6.switch__checked_1t2h6 .switch__switch_1t2h6 {
42
42
  background-color: var(--switch-disabled-checked-bg-inverted-color);
43
43
  }
@@ -1,6 +1,6 @@
1
1
  import './inverted.css';
2
2
 
3
- const invertedStyles = {"switch":"switch__switch_19x10","label":"switch__label_19x10","hint":"switch__hint_19x10","checked":"switch__checked_19x10","disabled":"switch__disabled_19x10"};
3
+ const invertedStyles = {"switch":"switch__switch_1t2h6","label":"switch__label_1t2h6","hint":"switch__hint_1t2h6","checked":"switch__checked_1t2h6","disabled":"switch__disabled_1t2h6"};
4
4
 
5
5
  export { invertedStyles as default };
6
6
  //# sourceMappingURL=inverted.module.css.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-switch",
3
- "version": "5.0.0",
3
+ "version": "5.0.1-snapshot-c2c8d5a",
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": "^1.0.0",
13
+ "@alfalab/core-components-shared": "1.0.1-snapshot-c2c8d5a",
14
14
  "@alfalab/hooks": "^1.13.1",
15
15
  "classnames": "^2.5.1",
16
16
  "react-merge-refs": "^1.1.0",
@@ -26,5 +26,5 @@
26
26
  },
27
27
  "gitHead": "f054fef20200664c65e2501ef1f916c555cdf05d",
28
28
  "themesVersion": "14.0.0",
29
- "varsVersion": "10.0.0"
29
+ "varsVersion": "10.0.1-snapshot-c2c8d5a"
30
30
  }