@alfalab/core-components-switch 6.0.0 → 6.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/default.css +11 -11
- package/default.module.css.js +1 -1
- package/esm/default.css +11 -11
- package/esm/default.module.css.js +1 -1
- package/esm/index.css +19 -19
- package/esm/index.module.css.js +1 -1
- package/esm/inverted.css +11 -11
- package/esm/inverted.module.css.js +1 -1
- package/index.css +19 -19
- package/index.module.css.js +1 -1
- package/inverted.css +11 -11
- package/inverted.module.css.js +1 -1
- package/modern/default.css +11 -11
- package/modern/default.module.css.js +1 -1
- package/modern/index.css +19 -19
- package/modern/index.module.css.js +1 -1
- package/modern/inverted.css +11 -11
- package/modern/inverted.module.css.js +1 -1
- package/package.json +4 -4
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
|
-
.
|
|
23
|
+
.switch__switch_wlmmg {
|
|
24
24
|
background-color: var(--switch-bg-color);
|
|
25
25
|
}
|
|
26
|
-
.
|
|
26
|
+
.switch__switch_wlmmg:hover {
|
|
27
27
|
background-color: var(--switch-hover-bg-color);
|
|
28
28
|
}
|
|
29
|
-
.
|
|
29
|
+
.switch__label_wlmmg {
|
|
30
30
|
color: var(--switch-label-color);
|
|
31
31
|
}
|
|
32
|
-
.
|
|
32
|
+
.switch__hint_wlmmg {
|
|
33
33
|
color: var(--switch-hint-color);
|
|
34
34
|
}
|
|
35
|
-
.
|
|
35
|
+
.switch__checked_wlmmg .switch__switch_wlmmg {
|
|
36
36
|
background-color: var(--switch-checked-bg-color);
|
|
37
37
|
}
|
|
38
|
-
.
|
|
38
|
+
.switch__checked_wlmmg .switch__switch_wlmmg:hover {
|
|
39
39
|
background-color: var(--switch-checked-hover-bg-color);
|
|
40
40
|
}
|
|
41
|
-
.
|
|
41
|
+
.switch__disabled_wlmmg .switch__label_wlmmg {
|
|
42
42
|
color: var(--switch-disabled-color);
|
|
43
43
|
}
|
|
44
|
-
.
|
|
44
|
+
.switch__disabled_wlmmg .switch__hint_wlmmg {
|
|
45
45
|
color: var(--switch-disabled-color);
|
|
46
46
|
}
|
|
47
|
-
.
|
|
47
|
+
.switch__disabled_wlmmg .switch__switch_wlmmg {
|
|
48
48
|
background-color: var(--switch-disabled-bg-color);
|
|
49
49
|
}
|
|
50
|
-
.
|
|
50
|
+
.switch__disabled_wlmmg .switch__switch_wlmmg:before {
|
|
51
51
|
background-color: var(--switch-icon-disabled-color);
|
|
52
52
|
}
|
|
53
|
-
.
|
|
53
|
+
.switch__disabled_wlmmg.switch__checked_wlmmg .switch__switch_wlmmg {
|
|
54
54
|
background-color: var(--switch-disabled-checked-bg-color);
|
|
55
55
|
}
|
package/default.module.css.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
require('./default.css');
|
|
4
4
|
|
|
5
|
-
var defaultStyles = {"switch":"
|
|
5
|
+
var defaultStyles = {"switch":"switch__switch_wlmmg","label":"switch__label_wlmmg","hint":"switch__hint_wlmmg","checked":"switch__checked_wlmmg","disabled":"switch__disabled_wlmmg"};
|
|
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
|
-
.
|
|
23
|
+
.switch__switch_wlmmg {
|
|
24
24
|
background-color: var(--switch-bg-color);
|
|
25
25
|
}
|
|
26
|
-
.
|
|
26
|
+
.switch__switch_wlmmg:hover {
|
|
27
27
|
background-color: var(--switch-hover-bg-color);
|
|
28
28
|
}
|
|
29
|
-
.
|
|
29
|
+
.switch__label_wlmmg {
|
|
30
30
|
color: var(--switch-label-color);
|
|
31
31
|
}
|
|
32
|
-
.
|
|
32
|
+
.switch__hint_wlmmg {
|
|
33
33
|
color: var(--switch-hint-color);
|
|
34
34
|
}
|
|
35
|
-
.
|
|
35
|
+
.switch__checked_wlmmg .switch__switch_wlmmg {
|
|
36
36
|
background-color: var(--switch-checked-bg-color);
|
|
37
37
|
}
|
|
38
|
-
.
|
|
38
|
+
.switch__checked_wlmmg .switch__switch_wlmmg:hover {
|
|
39
39
|
background-color: var(--switch-checked-hover-bg-color);
|
|
40
40
|
}
|
|
41
|
-
.
|
|
41
|
+
.switch__disabled_wlmmg .switch__label_wlmmg {
|
|
42
42
|
color: var(--switch-disabled-color);
|
|
43
43
|
}
|
|
44
|
-
.
|
|
44
|
+
.switch__disabled_wlmmg .switch__hint_wlmmg {
|
|
45
45
|
color: var(--switch-disabled-color);
|
|
46
46
|
}
|
|
47
|
-
.
|
|
47
|
+
.switch__disabled_wlmmg .switch__switch_wlmmg {
|
|
48
48
|
background-color: var(--switch-disabled-bg-color);
|
|
49
49
|
}
|
|
50
|
-
.
|
|
50
|
+
.switch__disabled_wlmmg .switch__switch_wlmmg:before {
|
|
51
51
|
background-color: var(--switch-icon-disabled-color);
|
|
52
52
|
}
|
|
53
|
-
.
|
|
53
|
+
.switch__disabled_wlmmg.switch__checked_wlmmg .switch__switch_wlmmg {
|
|
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":"
|
|
3
|
+
var defaultStyles = {"switch":"switch__switch_wlmmg","label":"switch__label_wlmmg","hint":"switch__hint_wlmmg","checked":"switch__checked_wlmmg","disabled":"switch__disabled_wlmmg"};
|
|
4
4
|
|
|
5
5
|
export { defaultStyles as default };
|
|
6
6
|
//# sourceMappingURL=default.module.css.js.map
|
package/esm/index.css
CHANGED
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
--switch-error-color: var(--color-light-text-negative);
|
|
33
33
|
--switch-icon-color: var(--color-static-neutral-0);
|
|
34
34
|
}
|
|
35
|
-
.
|
|
35
|
+
.switch__component_2fen2 {
|
|
36
36
|
display: inline-flex;
|
|
37
37
|
align-items: flex-start;
|
|
38
38
|
margin: var(--gap-0);
|
|
@@ -41,25 +41,25 @@
|
|
|
41
41
|
cursor: pointer;
|
|
42
42
|
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
43
43
|
}
|
|
44
|
-
.
|
|
44
|
+
.switch__component_2fen2 input {
|
|
45
45
|
opacity: 0;
|
|
46
46
|
position: absolute;
|
|
47
47
|
}
|
|
48
|
-
.
|
|
48
|
+
.switch__start_2fen2 {
|
|
49
49
|
align-items: flex-start;
|
|
50
50
|
}
|
|
51
|
-
.
|
|
51
|
+
.switch__center_2fen2 {
|
|
52
52
|
align-items: center;
|
|
53
53
|
}
|
|
54
|
-
.
|
|
54
|
+
.switch__addons_2fen2 {
|
|
55
55
|
margin-left: auto;
|
|
56
56
|
padding-left: var(--gap-16);
|
|
57
57
|
line-height: 24px;
|
|
58
58
|
}
|
|
59
|
-
.
|
|
59
|
+
.switch__block_2fen2 {
|
|
60
60
|
width: 100%;
|
|
61
61
|
}
|
|
62
|
-
.
|
|
62
|
+
.switch__switch_2fen2 {
|
|
63
63
|
position: relative;
|
|
64
64
|
border-radius: var(--border-radius-16);
|
|
65
65
|
width: 36px;
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
border-color 0.2s ease;
|
|
73
73
|
box-sizing: border-box;
|
|
74
74
|
}
|
|
75
|
-
.
|
|
75
|
+
.switch__switch_2fen2:before {
|
|
76
76
|
content: '';
|
|
77
77
|
position: absolute;
|
|
78
78
|
top: var(--gap-0);
|
|
@@ -85,54 +85,54 @@
|
|
|
85
85
|
box-sizing: border-box;
|
|
86
86
|
transition: transform 0.2s ease;
|
|
87
87
|
}
|
|
88
|
-
.
|
|
88
|
+
.switch__content_2fen2 {
|
|
89
89
|
margin-left: var(--gap-12);
|
|
90
90
|
flex-grow: 1;
|
|
91
91
|
}
|
|
92
|
-
.
|
|
92
|
+
.switch__label_2fen2 {
|
|
93
93
|
font-size: 16px;
|
|
94
94
|
line-height: 24px;
|
|
95
95
|
font-weight: 400;
|
|
96
96
|
font-family: var(--font-family-system);
|
|
97
97
|
display: block;
|
|
98
98
|
}
|
|
99
|
-
.
|
|
99
|
+
.switch__label_2fen2:not(:only-child) {
|
|
100
100
|
margin-bottom: var(--gap-4);
|
|
101
101
|
}
|
|
102
|
-
.
|
|
102
|
+
.switch__errorMessage_2fen2 {
|
|
103
103
|
font-size: 14px;
|
|
104
104
|
line-height: 18px;
|
|
105
105
|
font-weight: 400;
|
|
106
106
|
font-family: var(--font-family-system);
|
|
107
107
|
color: var(--switch-error-color);
|
|
108
108
|
}
|
|
109
|
-
.
|
|
109
|
+
.switch__hint_2fen2 {
|
|
110
110
|
font-size: 14px;
|
|
111
111
|
line-height: 18px;
|
|
112
112
|
font-weight: 400;
|
|
113
113
|
font-family: var(--font-family-system);
|
|
114
114
|
display: block;
|
|
115
115
|
}
|
|
116
|
-
.
|
|
116
|
+
.switch__component_2fen2.switch__reversed_2fen2 {
|
|
117
117
|
flex-direction: row-reverse;
|
|
118
118
|
}
|
|
119
|
-
.
|
|
119
|
+
.switch__reversed_2fen2 .switch__content_2fen2 {
|
|
120
120
|
margin-right: var(--gap-16);
|
|
121
121
|
margin-left: var(--gap-0);
|
|
122
122
|
}
|
|
123
|
-
.
|
|
123
|
+
.switch__reversed_2fen2 .switch__addons_2fen2 {
|
|
124
124
|
margin-left: var(--gap-0);
|
|
125
125
|
padding-left: var(--gap-0);
|
|
126
126
|
margin-right: auto;
|
|
127
127
|
padding-right: var(--gap-16);
|
|
128
128
|
}
|
|
129
|
-
.
|
|
129
|
+
.switch__checked_2fen2 .switch__switch_2fen2:before {
|
|
130
130
|
transform: translateX(16px);
|
|
131
131
|
}
|
|
132
|
-
.
|
|
132
|
+
.switch__disabled_2fen2 {
|
|
133
133
|
cursor: var(--disabled-cursor);
|
|
134
134
|
}
|
|
135
|
-
.
|
|
135
|
+
.switch__focused_2fen2 .switch__switch_2fen2 {
|
|
136
136
|
outline: 2px solid var(--focus-color);
|
|
137
137
|
outline-offset: 2px;
|
|
138
138
|
}
|
package/esm/index.module.css.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './index.css';
|
|
2
2
|
|
|
3
|
-
var styles = {"component":"
|
|
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"};
|
|
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
|
-
.
|
|
23
|
+
.switch__switch_l6s9m {
|
|
24
24
|
background-color: var(--switch-bg-inverted-color);
|
|
25
25
|
}
|
|
26
|
-
.
|
|
26
|
+
.switch__switch_l6s9m:hover {
|
|
27
27
|
background-color: var(--switch-hover-bg-inverted-color);
|
|
28
28
|
}
|
|
29
|
-
.
|
|
29
|
+
.switch__label_l6s9m {
|
|
30
30
|
color: var(--switch-label-inverted-color);
|
|
31
31
|
}
|
|
32
|
-
.
|
|
32
|
+
.switch__hint_l6s9m {
|
|
33
33
|
color: var(--switch-hint-inverted-color);
|
|
34
34
|
}
|
|
35
|
-
.
|
|
35
|
+
.switch__checked_l6s9m .switch__switch_l6s9m {
|
|
36
36
|
background-color: var(--switch-checked-bg-inverted-color);
|
|
37
37
|
}
|
|
38
|
-
.
|
|
38
|
+
.switch__checked_l6s9m .switch__switch_l6s9m:hover {
|
|
39
39
|
background-color: var(--switch-checked-hover-bg-inverted-color);
|
|
40
40
|
}
|
|
41
|
-
.
|
|
41
|
+
.switch__disabled_l6s9m .switch__label_l6s9m {
|
|
42
42
|
color: var(--switch-disabled-inverted-color);
|
|
43
43
|
}
|
|
44
|
-
.
|
|
44
|
+
.switch__disabled_l6s9m .switch__hint_l6s9m {
|
|
45
45
|
color: var(--switch-disabled-inverted-color);
|
|
46
46
|
}
|
|
47
|
-
.
|
|
47
|
+
.switch__disabled_l6s9m .switch__switch_l6s9m {
|
|
48
48
|
background-color: var(--switch-disabled-bg-inverted-color);
|
|
49
49
|
}
|
|
50
|
-
.
|
|
50
|
+
.switch__disabled_l6s9m .switch__switch_l6s9m:before {
|
|
51
51
|
background-color: var(--switch-icon-disabled-inverted-color);
|
|
52
52
|
}
|
|
53
|
-
.
|
|
53
|
+
.switch__disabled_l6s9m.switch__checked_l6s9m .switch__switch_l6s9m {
|
|
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":"
|
|
3
|
+
var invertedStyles = {"switch":"switch__switch_l6s9m","label":"switch__label_l6s9m","hint":"switch__hint_l6s9m","checked":"switch__checked_l6s9m","disabled":"switch__disabled_l6s9m"};
|
|
4
4
|
|
|
5
5
|
export { invertedStyles as default };
|
|
6
6
|
//# sourceMappingURL=inverted.module.css.js.map
|
package/index.css
CHANGED
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
--switch-error-color: var(--color-light-text-negative);
|
|
33
33
|
--switch-icon-color: var(--color-static-neutral-0);
|
|
34
34
|
}
|
|
35
|
-
.
|
|
35
|
+
.switch__component_2fen2 {
|
|
36
36
|
display: inline-flex;
|
|
37
37
|
align-items: flex-start;
|
|
38
38
|
margin: var(--gap-0);
|
|
@@ -41,25 +41,25 @@
|
|
|
41
41
|
cursor: pointer;
|
|
42
42
|
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
43
43
|
}
|
|
44
|
-
.
|
|
44
|
+
.switch__component_2fen2 input {
|
|
45
45
|
opacity: 0;
|
|
46
46
|
position: absolute;
|
|
47
47
|
}
|
|
48
|
-
.
|
|
48
|
+
.switch__start_2fen2 {
|
|
49
49
|
align-items: flex-start;
|
|
50
50
|
}
|
|
51
|
-
.
|
|
51
|
+
.switch__center_2fen2 {
|
|
52
52
|
align-items: center;
|
|
53
53
|
}
|
|
54
|
-
.
|
|
54
|
+
.switch__addons_2fen2 {
|
|
55
55
|
margin-left: auto;
|
|
56
56
|
padding-left: var(--gap-16);
|
|
57
57
|
line-height: 24px;
|
|
58
58
|
}
|
|
59
|
-
.
|
|
59
|
+
.switch__block_2fen2 {
|
|
60
60
|
width: 100%;
|
|
61
61
|
}
|
|
62
|
-
.
|
|
62
|
+
.switch__switch_2fen2 {
|
|
63
63
|
position: relative;
|
|
64
64
|
border-radius: var(--border-radius-16);
|
|
65
65
|
width: 36px;
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
border-color 0.2s ease;
|
|
73
73
|
box-sizing: border-box;
|
|
74
74
|
}
|
|
75
|
-
.
|
|
75
|
+
.switch__switch_2fen2:before {
|
|
76
76
|
content: '';
|
|
77
77
|
position: absolute;
|
|
78
78
|
top: var(--gap-0);
|
|
@@ -85,54 +85,54 @@
|
|
|
85
85
|
box-sizing: border-box;
|
|
86
86
|
transition: transform 0.2s ease;
|
|
87
87
|
}
|
|
88
|
-
.
|
|
88
|
+
.switch__content_2fen2 {
|
|
89
89
|
margin-left: var(--gap-12);
|
|
90
90
|
flex-grow: 1;
|
|
91
91
|
}
|
|
92
|
-
.
|
|
92
|
+
.switch__label_2fen2 {
|
|
93
93
|
font-size: 16px;
|
|
94
94
|
line-height: 24px;
|
|
95
95
|
font-weight: 400;
|
|
96
96
|
font-family: var(--font-family-system);
|
|
97
97
|
display: block;
|
|
98
98
|
}
|
|
99
|
-
.
|
|
99
|
+
.switch__label_2fen2:not(:only-child) {
|
|
100
100
|
margin-bottom: var(--gap-4);
|
|
101
101
|
}
|
|
102
|
-
.
|
|
102
|
+
.switch__errorMessage_2fen2 {
|
|
103
103
|
font-size: 14px;
|
|
104
104
|
line-height: 18px;
|
|
105
105
|
font-weight: 400;
|
|
106
106
|
font-family: var(--font-family-system);
|
|
107
107
|
color: var(--switch-error-color);
|
|
108
108
|
}
|
|
109
|
-
.
|
|
109
|
+
.switch__hint_2fen2 {
|
|
110
110
|
font-size: 14px;
|
|
111
111
|
line-height: 18px;
|
|
112
112
|
font-weight: 400;
|
|
113
113
|
font-family: var(--font-family-system);
|
|
114
114
|
display: block;
|
|
115
115
|
}
|
|
116
|
-
.
|
|
116
|
+
.switch__component_2fen2.switch__reversed_2fen2 {
|
|
117
117
|
flex-direction: row-reverse;
|
|
118
118
|
}
|
|
119
|
-
.
|
|
119
|
+
.switch__reversed_2fen2 .switch__content_2fen2 {
|
|
120
120
|
margin-right: var(--gap-16);
|
|
121
121
|
margin-left: var(--gap-0);
|
|
122
122
|
}
|
|
123
|
-
.
|
|
123
|
+
.switch__reversed_2fen2 .switch__addons_2fen2 {
|
|
124
124
|
margin-left: var(--gap-0);
|
|
125
125
|
padding-left: var(--gap-0);
|
|
126
126
|
margin-right: auto;
|
|
127
127
|
padding-right: var(--gap-16);
|
|
128
128
|
}
|
|
129
|
-
.
|
|
129
|
+
.switch__checked_2fen2 .switch__switch_2fen2:before {
|
|
130
130
|
transform: translateX(16px);
|
|
131
131
|
}
|
|
132
|
-
.
|
|
132
|
+
.switch__disabled_2fen2 {
|
|
133
133
|
cursor: var(--disabled-cursor);
|
|
134
134
|
}
|
|
135
|
-
.
|
|
135
|
+
.switch__focused_2fen2 .switch__switch_2fen2 {
|
|
136
136
|
outline: 2px solid var(--focus-color);
|
|
137
137
|
outline-offset: 2px;
|
|
138
138
|
}
|
package/index.module.css.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
require('./index.css');
|
|
4
4
|
|
|
5
|
-
var styles = {"component":"
|
|
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"};
|
|
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
|
-
.
|
|
23
|
+
.switch__switch_l6s9m {
|
|
24
24
|
background-color: var(--switch-bg-inverted-color);
|
|
25
25
|
}
|
|
26
|
-
.
|
|
26
|
+
.switch__switch_l6s9m:hover {
|
|
27
27
|
background-color: var(--switch-hover-bg-inverted-color);
|
|
28
28
|
}
|
|
29
|
-
.
|
|
29
|
+
.switch__label_l6s9m {
|
|
30
30
|
color: var(--switch-label-inverted-color);
|
|
31
31
|
}
|
|
32
|
-
.
|
|
32
|
+
.switch__hint_l6s9m {
|
|
33
33
|
color: var(--switch-hint-inverted-color);
|
|
34
34
|
}
|
|
35
|
-
.
|
|
35
|
+
.switch__checked_l6s9m .switch__switch_l6s9m {
|
|
36
36
|
background-color: var(--switch-checked-bg-inverted-color);
|
|
37
37
|
}
|
|
38
|
-
.
|
|
38
|
+
.switch__checked_l6s9m .switch__switch_l6s9m:hover {
|
|
39
39
|
background-color: var(--switch-checked-hover-bg-inverted-color);
|
|
40
40
|
}
|
|
41
|
-
.
|
|
41
|
+
.switch__disabled_l6s9m .switch__label_l6s9m {
|
|
42
42
|
color: var(--switch-disabled-inverted-color);
|
|
43
43
|
}
|
|
44
|
-
.
|
|
44
|
+
.switch__disabled_l6s9m .switch__hint_l6s9m {
|
|
45
45
|
color: var(--switch-disabled-inverted-color);
|
|
46
46
|
}
|
|
47
|
-
.
|
|
47
|
+
.switch__disabled_l6s9m .switch__switch_l6s9m {
|
|
48
48
|
background-color: var(--switch-disabled-bg-inverted-color);
|
|
49
49
|
}
|
|
50
|
-
.
|
|
50
|
+
.switch__disabled_l6s9m .switch__switch_l6s9m:before {
|
|
51
51
|
background-color: var(--switch-icon-disabled-inverted-color);
|
|
52
52
|
}
|
|
53
|
-
.
|
|
53
|
+
.switch__disabled_l6s9m.switch__checked_l6s9m .switch__switch_l6s9m {
|
|
54
54
|
background-color: var(--switch-disabled-checked-bg-inverted-color);
|
|
55
55
|
}
|
package/inverted.module.css.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
require('./inverted.css');
|
|
4
4
|
|
|
5
|
-
var invertedStyles = {"switch":"
|
|
5
|
+
var invertedStyles = {"switch":"switch__switch_l6s9m","label":"switch__label_l6s9m","hint":"switch__hint_l6s9m","checked":"switch__checked_l6s9m","disabled":"switch__disabled_l6s9m"};
|
|
6
6
|
|
|
7
7
|
module.exports = invertedStyles;
|
|
8
8
|
//# sourceMappingURL=inverted.module.css.js.map
|
package/modern/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
|
-
.
|
|
23
|
+
.switch__switch_wlmmg {
|
|
24
24
|
background-color: var(--switch-bg-color);
|
|
25
25
|
}
|
|
26
|
-
.
|
|
26
|
+
.switch__switch_wlmmg:hover {
|
|
27
27
|
background-color: var(--switch-hover-bg-color);
|
|
28
28
|
}
|
|
29
|
-
.
|
|
29
|
+
.switch__label_wlmmg {
|
|
30
30
|
color: var(--switch-label-color);
|
|
31
31
|
}
|
|
32
|
-
.
|
|
32
|
+
.switch__hint_wlmmg {
|
|
33
33
|
color: var(--switch-hint-color);
|
|
34
34
|
}
|
|
35
|
-
.
|
|
35
|
+
.switch__checked_wlmmg .switch__switch_wlmmg {
|
|
36
36
|
background-color: var(--switch-checked-bg-color);
|
|
37
37
|
}
|
|
38
|
-
.
|
|
38
|
+
.switch__checked_wlmmg .switch__switch_wlmmg:hover {
|
|
39
39
|
background-color: var(--switch-checked-hover-bg-color);
|
|
40
40
|
}
|
|
41
|
-
.
|
|
41
|
+
.switch__disabled_wlmmg .switch__label_wlmmg {
|
|
42
42
|
color: var(--switch-disabled-color);
|
|
43
43
|
}
|
|
44
|
-
.
|
|
44
|
+
.switch__disabled_wlmmg .switch__hint_wlmmg {
|
|
45
45
|
color: var(--switch-disabled-color);
|
|
46
46
|
}
|
|
47
|
-
.
|
|
47
|
+
.switch__disabled_wlmmg .switch__switch_wlmmg {
|
|
48
48
|
background-color: var(--switch-disabled-bg-color);
|
|
49
49
|
}
|
|
50
|
-
.
|
|
50
|
+
.switch__disabled_wlmmg .switch__switch_wlmmg:before {
|
|
51
51
|
background-color: var(--switch-icon-disabled-color);
|
|
52
52
|
}
|
|
53
|
-
.
|
|
53
|
+
.switch__disabled_wlmmg.switch__checked_wlmmg .switch__switch_wlmmg {
|
|
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":"
|
|
3
|
+
const defaultStyles = {"switch":"switch__switch_wlmmg","label":"switch__label_wlmmg","hint":"switch__hint_wlmmg","checked":"switch__checked_wlmmg","disabled":"switch__disabled_wlmmg"};
|
|
4
4
|
|
|
5
5
|
export { defaultStyles as default };
|
|
6
6
|
//# sourceMappingURL=default.module.css.js.map
|
package/modern/index.css
CHANGED
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
--switch-error-color: var(--color-light-text-negative);
|
|
33
33
|
--switch-icon-color: var(--color-static-neutral-0);
|
|
34
34
|
}
|
|
35
|
-
.
|
|
35
|
+
.switch__component_2fen2 {
|
|
36
36
|
display: inline-flex;
|
|
37
37
|
align-items: flex-start;
|
|
38
38
|
margin: var(--gap-0);
|
|
@@ -41,25 +41,25 @@
|
|
|
41
41
|
cursor: pointer;
|
|
42
42
|
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
43
43
|
}
|
|
44
|
-
.
|
|
44
|
+
.switch__component_2fen2 input {
|
|
45
45
|
opacity: 0;
|
|
46
46
|
position: absolute;
|
|
47
47
|
}
|
|
48
|
-
.
|
|
48
|
+
.switch__start_2fen2 {
|
|
49
49
|
align-items: flex-start;
|
|
50
50
|
}
|
|
51
|
-
.
|
|
51
|
+
.switch__center_2fen2 {
|
|
52
52
|
align-items: center;
|
|
53
53
|
}
|
|
54
|
-
.
|
|
54
|
+
.switch__addons_2fen2 {
|
|
55
55
|
margin-left: auto;
|
|
56
56
|
padding-left: var(--gap-16);
|
|
57
57
|
line-height: 24px;
|
|
58
58
|
}
|
|
59
|
-
.
|
|
59
|
+
.switch__block_2fen2 {
|
|
60
60
|
width: 100%;
|
|
61
61
|
}
|
|
62
|
-
.
|
|
62
|
+
.switch__switch_2fen2 {
|
|
63
63
|
position: relative;
|
|
64
64
|
border-radius: var(--border-radius-16);
|
|
65
65
|
width: 36px;
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
border-color 0.2s ease;
|
|
73
73
|
box-sizing: border-box;
|
|
74
74
|
}
|
|
75
|
-
.
|
|
75
|
+
.switch__switch_2fen2:before {
|
|
76
76
|
content: '';
|
|
77
77
|
position: absolute;
|
|
78
78
|
top: var(--gap-0);
|
|
@@ -85,54 +85,54 @@
|
|
|
85
85
|
box-sizing: border-box;
|
|
86
86
|
transition: transform 0.2s ease;
|
|
87
87
|
}
|
|
88
|
-
.
|
|
88
|
+
.switch__content_2fen2 {
|
|
89
89
|
margin-left: var(--gap-12);
|
|
90
90
|
flex-grow: 1;
|
|
91
91
|
}
|
|
92
|
-
.
|
|
92
|
+
.switch__label_2fen2 {
|
|
93
93
|
font-size: 16px;
|
|
94
94
|
line-height: 24px;
|
|
95
95
|
font-weight: 400;
|
|
96
96
|
font-family: var(--font-family-system);
|
|
97
97
|
display: block;
|
|
98
98
|
}
|
|
99
|
-
.
|
|
99
|
+
.switch__label_2fen2:not(:only-child) {
|
|
100
100
|
margin-bottom: var(--gap-4);
|
|
101
101
|
}
|
|
102
|
-
.
|
|
102
|
+
.switch__errorMessage_2fen2 {
|
|
103
103
|
font-size: 14px;
|
|
104
104
|
line-height: 18px;
|
|
105
105
|
font-weight: 400;
|
|
106
106
|
font-family: var(--font-family-system);
|
|
107
107
|
color: var(--switch-error-color);
|
|
108
108
|
}
|
|
109
|
-
.
|
|
109
|
+
.switch__hint_2fen2 {
|
|
110
110
|
font-size: 14px;
|
|
111
111
|
line-height: 18px;
|
|
112
112
|
font-weight: 400;
|
|
113
113
|
font-family: var(--font-family-system);
|
|
114
114
|
display: block;
|
|
115
115
|
}
|
|
116
|
-
.
|
|
116
|
+
.switch__component_2fen2.switch__reversed_2fen2 {
|
|
117
117
|
flex-direction: row-reverse;
|
|
118
118
|
}
|
|
119
|
-
.
|
|
119
|
+
.switch__reversed_2fen2 .switch__content_2fen2 {
|
|
120
120
|
margin-right: var(--gap-16);
|
|
121
121
|
margin-left: var(--gap-0);
|
|
122
122
|
}
|
|
123
|
-
.
|
|
123
|
+
.switch__reversed_2fen2 .switch__addons_2fen2 {
|
|
124
124
|
margin-left: var(--gap-0);
|
|
125
125
|
padding-left: var(--gap-0);
|
|
126
126
|
margin-right: auto;
|
|
127
127
|
padding-right: var(--gap-16);
|
|
128
128
|
}
|
|
129
|
-
.
|
|
129
|
+
.switch__checked_2fen2 .switch__switch_2fen2:before {
|
|
130
130
|
transform: translateX(16px);
|
|
131
131
|
}
|
|
132
|
-
.
|
|
132
|
+
.switch__disabled_2fen2 {
|
|
133
133
|
cursor: var(--disabled-cursor);
|
|
134
134
|
}
|
|
135
|
-
.
|
|
135
|
+
.switch__focused_2fen2 .switch__switch_2fen2 {
|
|
136
136
|
outline: 2px solid var(--focus-color);
|
|
137
137
|
outline-offset: 2px;
|
|
138
138
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './index.css';
|
|
2
2
|
|
|
3
|
-
const styles = {"component":"
|
|
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"};
|
|
4
4
|
|
|
5
5
|
export { styles as default };
|
|
6
6
|
//# sourceMappingURL=index.module.css.js.map
|
package/modern/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
|
-
.
|
|
23
|
+
.switch__switch_l6s9m {
|
|
24
24
|
background-color: var(--switch-bg-inverted-color);
|
|
25
25
|
}
|
|
26
|
-
.
|
|
26
|
+
.switch__switch_l6s9m:hover {
|
|
27
27
|
background-color: var(--switch-hover-bg-inverted-color);
|
|
28
28
|
}
|
|
29
|
-
.
|
|
29
|
+
.switch__label_l6s9m {
|
|
30
30
|
color: var(--switch-label-inverted-color);
|
|
31
31
|
}
|
|
32
|
-
.
|
|
32
|
+
.switch__hint_l6s9m {
|
|
33
33
|
color: var(--switch-hint-inverted-color);
|
|
34
34
|
}
|
|
35
|
-
.
|
|
35
|
+
.switch__checked_l6s9m .switch__switch_l6s9m {
|
|
36
36
|
background-color: var(--switch-checked-bg-inverted-color);
|
|
37
37
|
}
|
|
38
|
-
.
|
|
38
|
+
.switch__checked_l6s9m .switch__switch_l6s9m:hover {
|
|
39
39
|
background-color: var(--switch-checked-hover-bg-inverted-color);
|
|
40
40
|
}
|
|
41
|
-
.
|
|
41
|
+
.switch__disabled_l6s9m .switch__label_l6s9m {
|
|
42
42
|
color: var(--switch-disabled-inverted-color);
|
|
43
43
|
}
|
|
44
|
-
.
|
|
44
|
+
.switch__disabled_l6s9m .switch__hint_l6s9m {
|
|
45
45
|
color: var(--switch-disabled-inverted-color);
|
|
46
46
|
}
|
|
47
|
-
.
|
|
47
|
+
.switch__disabled_l6s9m .switch__switch_l6s9m {
|
|
48
48
|
background-color: var(--switch-disabled-bg-inverted-color);
|
|
49
49
|
}
|
|
50
|
-
.
|
|
50
|
+
.switch__disabled_l6s9m .switch__switch_l6s9m:before {
|
|
51
51
|
background-color: var(--switch-icon-disabled-inverted-color);
|
|
52
52
|
}
|
|
53
|
-
.
|
|
53
|
+
.switch__disabled_l6s9m.switch__checked_l6s9m .switch__switch_l6s9m {
|
|
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":"
|
|
3
|
+
const invertedStyles = {"switch":"switch__switch_l6s9m","label":"switch__label_l6s9m","hint":"switch__hint_l6s9m","checked":"switch__checked_l6s9m","disabled":"switch__disabled_l6s9m"};
|
|
4
4
|
|
|
5
5
|
export { invertedStyles as default };
|
|
6
6
|
//# sourceMappingURL=inverted.module.css.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-switch",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.1",
|
|
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.
|
|
13
|
+
"@alfalab/core-components-shared": "^2.0.1",
|
|
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.
|
|
29
|
-
"varsVersion": "11.0.
|
|
28
|
+
"themesVersion": "15.0.1",
|
|
29
|
+
"varsVersion": "11.0.1"
|
|
30
30
|
}
|