@alfalab/core-components-switch 6.0.1-alfasans → 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.
- 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 +2 -2
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_a3snf {
|
|
24
24
|
background-color: var(--switch-bg-color);
|
|
25
25
|
}
|
|
26
|
-
.
|
|
26
|
+
.switch__switch_a3snf:hover {
|
|
27
27
|
background-color: var(--switch-hover-bg-color);
|
|
28
28
|
}
|
|
29
|
-
.
|
|
29
|
+
.switch__label_a3snf {
|
|
30
30
|
color: var(--switch-label-color);
|
|
31
31
|
}
|
|
32
|
-
.
|
|
32
|
+
.switch__hint_a3snf {
|
|
33
33
|
color: var(--switch-hint-color);
|
|
34
34
|
}
|
|
35
|
-
.
|
|
35
|
+
.switch__checked_a3snf .switch__switch_a3snf {
|
|
36
36
|
background-color: var(--switch-checked-bg-color);
|
|
37
37
|
}
|
|
38
|
-
.
|
|
38
|
+
.switch__checked_a3snf .switch__switch_a3snf:hover {
|
|
39
39
|
background-color: var(--switch-checked-hover-bg-color);
|
|
40
40
|
}
|
|
41
|
-
.
|
|
41
|
+
.switch__disabled_a3snf .switch__label_a3snf {
|
|
42
42
|
color: var(--switch-disabled-color);
|
|
43
43
|
}
|
|
44
|
-
.
|
|
44
|
+
.switch__disabled_a3snf .switch__hint_a3snf {
|
|
45
45
|
color: var(--switch-disabled-color);
|
|
46
46
|
}
|
|
47
|
-
.
|
|
47
|
+
.switch__disabled_a3snf .switch__switch_a3snf {
|
|
48
48
|
background-color: var(--switch-disabled-bg-color);
|
|
49
49
|
}
|
|
50
|
-
.
|
|
50
|
+
.switch__disabled_a3snf .switch__switch_a3snf:before {
|
|
51
51
|
background-color: var(--switch-icon-disabled-color);
|
|
52
52
|
}
|
|
53
|
-
.
|
|
53
|
+
.switch__disabled_a3snf.switch__checked_a3snf .switch__switch_a3snf {
|
|
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_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
|
-
.
|
|
23
|
+
.switch__switch_a3snf {
|
|
24
24
|
background-color: var(--switch-bg-color);
|
|
25
25
|
}
|
|
26
|
-
.
|
|
26
|
+
.switch__switch_a3snf:hover {
|
|
27
27
|
background-color: var(--switch-hover-bg-color);
|
|
28
28
|
}
|
|
29
|
-
.
|
|
29
|
+
.switch__label_a3snf {
|
|
30
30
|
color: var(--switch-label-color);
|
|
31
31
|
}
|
|
32
|
-
.
|
|
32
|
+
.switch__hint_a3snf {
|
|
33
33
|
color: var(--switch-hint-color);
|
|
34
34
|
}
|
|
35
|
-
.
|
|
35
|
+
.switch__checked_a3snf .switch__switch_a3snf {
|
|
36
36
|
background-color: var(--switch-checked-bg-color);
|
|
37
37
|
}
|
|
38
|
-
.
|
|
38
|
+
.switch__checked_a3snf .switch__switch_a3snf:hover {
|
|
39
39
|
background-color: var(--switch-checked-hover-bg-color);
|
|
40
40
|
}
|
|
41
|
-
.
|
|
41
|
+
.switch__disabled_a3snf .switch__label_a3snf {
|
|
42
42
|
color: var(--switch-disabled-color);
|
|
43
43
|
}
|
|
44
|
-
.
|
|
44
|
+
.switch__disabled_a3snf .switch__hint_a3snf {
|
|
45
45
|
color: var(--switch-disabled-color);
|
|
46
46
|
}
|
|
47
|
-
.
|
|
47
|
+
.switch__disabled_a3snf .switch__switch_a3snf {
|
|
48
48
|
background-color: var(--switch-disabled-bg-color);
|
|
49
49
|
}
|
|
50
|
-
.
|
|
50
|
+
.switch__disabled_a3snf .switch__switch_a3snf:before {
|
|
51
51
|
background-color: var(--switch-icon-disabled-color);
|
|
52
52
|
}
|
|
53
|
-
.
|
|
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":"
|
|
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
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
--switch-error-color: var(--color-light-text-negative);
|
|
34
34
|
--switch-icon-color: var(--color-static-neutral-0);
|
|
35
35
|
}
|
|
36
|
-
.
|
|
36
|
+
.switch__component_4xozt {
|
|
37
37
|
display: inline-flex;
|
|
38
38
|
align-items: flex-start;
|
|
39
39
|
margin: var(--gap-0);
|
|
@@ -42,25 +42,25 @@
|
|
|
42
42
|
cursor: pointer;
|
|
43
43
|
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
44
44
|
}
|
|
45
|
-
.
|
|
45
|
+
.switch__component_4xozt input {
|
|
46
46
|
opacity: 0;
|
|
47
47
|
position: absolute;
|
|
48
48
|
}
|
|
49
|
-
.
|
|
49
|
+
.switch__start_4xozt {
|
|
50
50
|
align-items: flex-start;
|
|
51
51
|
}
|
|
52
|
-
.
|
|
52
|
+
.switch__center_4xozt {
|
|
53
53
|
align-items: center;
|
|
54
54
|
}
|
|
55
|
-
.
|
|
55
|
+
.switch__addons_4xozt {
|
|
56
56
|
margin-left: auto;
|
|
57
57
|
padding-left: var(--gap-16);
|
|
58
58
|
line-height: 24px;
|
|
59
59
|
}
|
|
60
|
-
.
|
|
60
|
+
.switch__block_4xozt {
|
|
61
61
|
width: 100%;
|
|
62
62
|
}
|
|
63
|
-
.
|
|
63
|
+
.switch__switch_4xozt {
|
|
64
64
|
position: relative;
|
|
65
65
|
border-radius: var(--border-radius-16);
|
|
66
66
|
width: 36px;
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
border-color 0.2s ease;
|
|
74
74
|
box-sizing: border-box;
|
|
75
75
|
}
|
|
76
|
-
.
|
|
76
|
+
.switch__switch_4xozt:before {
|
|
77
77
|
content: '';
|
|
78
78
|
position: absolute;
|
|
79
79
|
top: var(--gap-0);
|
|
@@ -86,11 +86,11 @@
|
|
|
86
86
|
box-sizing: border-box;
|
|
87
87
|
transition: transform 0.2s ease;
|
|
88
88
|
}
|
|
89
|
-
.
|
|
89
|
+
.switch__content_4xozt {
|
|
90
90
|
margin-left: var(--gap-12);
|
|
91
91
|
flex-grow: 1;
|
|
92
92
|
}
|
|
93
|
-
.
|
|
93
|
+
.switch__label_4xozt {
|
|
94
94
|
font-size: 16px;
|
|
95
95
|
line-height: 24px;
|
|
96
96
|
font-weight: 400;
|
|
@@ -98,10 +98,10 @@
|
|
|
98
98
|
font-family: var(--font-family-alfasans);
|
|
99
99
|
display: block;
|
|
100
100
|
}
|
|
101
|
-
.
|
|
101
|
+
.switch__label_4xozt:not(:only-child) {
|
|
102
102
|
margin-bottom: var(--gap-4);
|
|
103
103
|
}
|
|
104
|
-
.
|
|
104
|
+
.switch__errorMessage_4xozt {
|
|
105
105
|
font-size: 14px;
|
|
106
106
|
line-height: 18px;
|
|
107
107
|
font-weight: 400;
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
font-family: var(--font-family-alfasans);
|
|
110
110
|
color: var(--switch-error-color);
|
|
111
111
|
}
|
|
112
|
-
.
|
|
112
|
+
.switch__hint_4xozt {
|
|
113
113
|
font-size: 14px;
|
|
114
114
|
line-height: 18px;
|
|
115
115
|
font-weight: 400;
|
|
@@ -117,26 +117,26 @@
|
|
|
117
117
|
font-family: var(--font-family-alfasans);
|
|
118
118
|
display: block;
|
|
119
119
|
}
|
|
120
|
-
.
|
|
120
|
+
.switch__component_4xozt.switch__reversed_4xozt {
|
|
121
121
|
flex-direction: row-reverse;
|
|
122
122
|
}
|
|
123
|
-
.
|
|
123
|
+
.switch__reversed_4xozt .switch__content_4xozt {
|
|
124
124
|
margin-right: var(--gap-16);
|
|
125
125
|
margin-left: var(--gap-0);
|
|
126
126
|
}
|
|
127
|
-
.
|
|
127
|
+
.switch__reversed_4xozt .switch__addons_4xozt {
|
|
128
128
|
margin-left: var(--gap-0);
|
|
129
129
|
padding-left: var(--gap-0);
|
|
130
130
|
margin-right: auto;
|
|
131
131
|
padding-right: var(--gap-16);
|
|
132
132
|
}
|
|
133
|
-
.
|
|
133
|
+
.switch__checked_4xozt .switch__switch_4xozt:before {
|
|
134
134
|
transform: translateX(16px);
|
|
135
135
|
}
|
|
136
|
-
.
|
|
136
|
+
.switch__disabled_4xozt {
|
|
137
137
|
cursor: var(--disabled-cursor);
|
|
138
138
|
}
|
|
139
|
-
.
|
|
139
|
+
.switch__focused_4xozt .switch__switch_4xozt {
|
|
140
140
|
outline: 2px solid var(--focus-color);
|
|
141
141
|
outline-offset: 2px;
|
|
142
142
|
}
|
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_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
|
-
.
|
|
23
|
+
.switch__switch_6x7sw {
|
|
24
24
|
background-color: var(--switch-bg-inverted-color);
|
|
25
25
|
}
|
|
26
|
-
.
|
|
26
|
+
.switch__switch_6x7sw:hover {
|
|
27
27
|
background-color: var(--switch-hover-bg-inverted-color);
|
|
28
28
|
}
|
|
29
|
-
.
|
|
29
|
+
.switch__label_6x7sw {
|
|
30
30
|
color: var(--switch-label-inverted-color);
|
|
31
31
|
}
|
|
32
|
-
.
|
|
32
|
+
.switch__hint_6x7sw {
|
|
33
33
|
color: var(--switch-hint-inverted-color);
|
|
34
34
|
}
|
|
35
|
-
.
|
|
35
|
+
.switch__checked_6x7sw .switch__switch_6x7sw {
|
|
36
36
|
background-color: var(--switch-checked-bg-inverted-color);
|
|
37
37
|
}
|
|
38
|
-
.
|
|
38
|
+
.switch__checked_6x7sw .switch__switch_6x7sw:hover {
|
|
39
39
|
background-color: var(--switch-checked-hover-bg-inverted-color);
|
|
40
40
|
}
|
|
41
|
-
.
|
|
41
|
+
.switch__disabled_6x7sw .switch__label_6x7sw {
|
|
42
42
|
color: var(--switch-disabled-inverted-color);
|
|
43
43
|
}
|
|
44
|
-
.
|
|
44
|
+
.switch__disabled_6x7sw .switch__hint_6x7sw {
|
|
45
45
|
color: var(--switch-disabled-inverted-color);
|
|
46
46
|
}
|
|
47
|
-
.
|
|
47
|
+
.switch__disabled_6x7sw .switch__switch_6x7sw {
|
|
48
48
|
background-color: var(--switch-disabled-bg-inverted-color);
|
|
49
49
|
}
|
|
50
|
-
.
|
|
50
|
+
.switch__disabled_6x7sw .switch__switch_6x7sw:before {
|
|
51
51
|
background-color: var(--switch-icon-disabled-inverted-color);
|
|
52
52
|
}
|
|
53
|
-
.
|
|
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":"
|
|
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
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
--switch-error-color: var(--color-light-text-negative);
|
|
34
34
|
--switch-icon-color: var(--color-static-neutral-0);
|
|
35
35
|
}
|
|
36
|
-
.
|
|
36
|
+
.switch__component_4xozt {
|
|
37
37
|
display: inline-flex;
|
|
38
38
|
align-items: flex-start;
|
|
39
39
|
margin: var(--gap-0);
|
|
@@ -42,25 +42,25 @@
|
|
|
42
42
|
cursor: pointer;
|
|
43
43
|
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
44
44
|
}
|
|
45
|
-
.
|
|
45
|
+
.switch__component_4xozt input {
|
|
46
46
|
opacity: 0;
|
|
47
47
|
position: absolute;
|
|
48
48
|
}
|
|
49
|
-
.
|
|
49
|
+
.switch__start_4xozt {
|
|
50
50
|
align-items: flex-start;
|
|
51
51
|
}
|
|
52
|
-
.
|
|
52
|
+
.switch__center_4xozt {
|
|
53
53
|
align-items: center;
|
|
54
54
|
}
|
|
55
|
-
.
|
|
55
|
+
.switch__addons_4xozt {
|
|
56
56
|
margin-left: auto;
|
|
57
57
|
padding-left: var(--gap-16);
|
|
58
58
|
line-height: 24px;
|
|
59
59
|
}
|
|
60
|
-
.
|
|
60
|
+
.switch__block_4xozt {
|
|
61
61
|
width: 100%;
|
|
62
62
|
}
|
|
63
|
-
.
|
|
63
|
+
.switch__switch_4xozt {
|
|
64
64
|
position: relative;
|
|
65
65
|
border-radius: var(--border-radius-16);
|
|
66
66
|
width: 36px;
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
border-color 0.2s ease;
|
|
74
74
|
box-sizing: border-box;
|
|
75
75
|
}
|
|
76
|
-
.
|
|
76
|
+
.switch__switch_4xozt:before {
|
|
77
77
|
content: '';
|
|
78
78
|
position: absolute;
|
|
79
79
|
top: var(--gap-0);
|
|
@@ -86,11 +86,11 @@
|
|
|
86
86
|
box-sizing: border-box;
|
|
87
87
|
transition: transform 0.2s ease;
|
|
88
88
|
}
|
|
89
|
-
.
|
|
89
|
+
.switch__content_4xozt {
|
|
90
90
|
margin-left: var(--gap-12);
|
|
91
91
|
flex-grow: 1;
|
|
92
92
|
}
|
|
93
|
-
.
|
|
93
|
+
.switch__label_4xozt {
|
|
94
94
|
font-size: 16px;
|
|
95
95
|
line-height: 24px;
|
|
96
96
|
font-weight: 400;
|
|
@@ -98,10 +98,10 @@
|
|
|
98
98
|
font-family: var(--font-family-alfasans);
|
|
99
99
|
display: block;
|
|
100
100
|
}
|
|
101
|
-
.
|
|
101
|
+
.switch__label_4xozt:not(:only-child) {
|
|
102
102
|
margin-bottom: var(--gap-4);
|
|
103
103
|
}
|
|
104
|
-
.
|
|
104
|
+
.switch__errorMessage_4xozt {
|
|
105
105
|
font-size: 14px;
|
|
106
106
|
line-height: 18px;
|
|
107
107
|
font-weight: 400;
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
font-family: var(--font-family-alfasans);
|
|
110
110
|
color: var(--switch-error-color);
|
|
111
111
|
}
|
|
112
|
-
.
|
|
112
|
+
.switch__hint_4xozt {
|
|
113
113
|
font-size: 14px;
|
|
114
114
|
line-height: 18px;
|
|
115
115
|
font-weight: 400;
|
|
@@ -117,26 +117,26 @@
|
|
|
117
117
|
font-family: var(--font-family-alfasans);
|
|
118
118
|
display: block;
|
|
119
119
|
}
|
|
120
|
-
.
|
|
120
|
+
.switch__component_4xozt.switch__reversed_4xozt {
|
|
121
121
|
flex-direction: row-reverse;
|
|
122
122
|
}
|
|
123
|
-
.
|
|
123
|
+
.switch__reversed_4xozt .switch__content_4xozt {
|
|
124
124
|
margin-right: var(--gap-16);
|
|
125
125
|
margin-left: var(--gap-0);
|
|
126
126
|
}
|
|
127
|
-
.
|
|
127
|
+
.switch__reversed_4xozt .switch__addons_4xozt {
|
|
128
128
|
margin-left: var(--gap-0);
|
|
129
129
|
padding-left: var(--gap-0);
|
|
130
130
|
margin-right: auto;
|
|
131
131
|
padding-right: var(--gap-16);
|
|
132
132
|
}
|
|
133
|
-
.
|
|
133
|
+
.switch__checked_4xozt .switch__switch_4xozt:before {
|
|
134
134
|
transform: translateX(16px);
|
|
135
135
|
}
|
|
136
|
-
.
|
|
136
|
+
.switch__disabled_4xozt {
|
|
137
137
|
cursor: var(--disabled-cursor);
|
|
138
138
|
}
|
|
139
|
-
.
|
|
139
|
+
.switch__focused_4xozt .switch__switch_4xozt {
|
|
140
140
|
outline: 2px solid var(--focus-color);
|
|
141
141
|
outline-offset: 2px;
|
|
142
142
|
}
|
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_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
|
-
.
|
|
23
|
+
.switch__switch_6x7sw {
|
|
24
24
|
background-color: var(--switch-bg-inverted-color);
|
|
25
25
|
}
|
|
26
|
-
.
|
|
26
|
+
.switch__switch_6x7sw:hover {
|
|
27
27
|
background-color: var(--switch-hover-bg-inverted-color);
|
|
28
28
|
}
|
|
29
|
-
.
|
|
29
|
+
.switch__label_6x7sw {
|
|
30
30
|
color: var(--switch-label-inverted-color);
|
|
31
31
|
}
|
|
32
|
-
.
|
|
32
|
+
.switch__hint_6x7sw {
|
|
33
33
|
color: var(--switch-hint-inverted-color);
|
|
34
34
|
}
|
|
35
|
-
.
|
|
35
|
+
.switch__checked_6x7sw .switch__switch_6x7sw {
|
|
36
36
|
background-color: var(--switch-checked-bg-inverted-color);
|
|
37
37
|
}
|
|
38
|
-
.
|
|
38
|
+
.switch__checked_6x7sw .switch__switch_6x7sw:hover {
|
|
39
39
|
background-color: var(--switch-checked-hover-bg-inverted-color);
|
|
40
40
|
}
|
|
41
|
-
.
|
|
41
|
+
.switch__disabled_6x7sw .switch__label_6x7sw {
|
|
42
42
|
color: var(--switch-disabled-inverted-color);
|
|
43
43
|
}
|
|
44
|
-
.
|
|
44
|
+
.switch__disabled_6x7sw .switch__hint_6x7sw {
|
|
45
45
|
color: var(--switch-disabled-inverted-color);
|
|
46
46
|
}
|
|
47
|
-
.
|
|
47
|
+
.switch__disabled_6x7sw .switch__switch_6x7sw {
|
|
48
48
|
background-color: var(--switch-disabled-bg-inverted-color);
|
|
49
49
|
}
|
|
50
|
-
.
|
|
50
|
+
.switch__disabled_6x7sw .switch__switch_6x7sw:before {
|
|
51
51
|
background-color: var(--switch-icon-disabled-inverted-color);
|
|
52
52
|
}
|
|
53
|
-
.
|
|
53
|
+
.switch__disabled_6x7sw.switch__checked_6x7sw .switch__switch_6x7sw {
|
|
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_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
|
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_a3snf {
|
|
24
24
|
background-color: var(--switch-bg-color);
|
|
25
25
|
}
|
|
26
|
-
.
|
|
26
|
+
.switch__switch_a3snf:hover {
|
|
27
27
|
background-color: var(--switch-hover-bg-color);
|
|
28
28
|
}
|
|
29
|
-
.
|
|
29
|
+
.switch__label_a3snf {
|
|
30
30
|
color: var(--switch-label-color);
|
|
31
31
|
}
|
|
32
|
-
.
|
|
32
|
+
.switch__hint_a3snf {
|
|
33
33
|
color: var(--switch-hint-color);
|
|
34
34
|
}
|
|
35
|
-
.
|
|
35
|
+
.switch__checked_a3snf .switch__switch_a3snf {
|
|
36
36
|
background-color: var(--switch-checked-bg-color);
|
|
37
37
|
}
|
|
38
|
-
.
|
|
38
|
+
.switch__checked_a3snf .switch__switch_a3snf:hover {
|
|
39
39
|
background-color: var(--switch-checked-hover-bg-color);
|
|
40
40
|
}
|
|
41
|
-
.
|
|
41
|
+
.switch__disabled_a3snf .switch__label_a3snf {
|
|
42
42
|
color: var(--switch-disabled-color);
|
|
43
43
|
}
|
|
44
|
-
.
|
|
44
|
+
.switch__disabled_a3snf .switch__hint_a3snf {
|
|
45
45
|
color: var(--switch-disabled-color);
|
|
46
46
|
}
|
|
47
|
-
.
|
|
47
|
+
.switch__disabled_a3snf .switch__switch_a3snf {
|
|
48
48
|
background-color: var(--switch-disabled-bg-color);
|
|
49
49
|
}
|
|
50
|
-
.
|
|
50
|
+
.switch__disabled_a3snf .switch__switch_a3snf:before {
|
|
51
51
|
background-color: var(--switch-icon-disabled-color);
|
|
52
52
|
}
|
|
53
|
-
.
|
|
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":"
|
|
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
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
--switch-error-color: var(--color-light-text-negative);
|
|
34
34
|
--switch-icon-color: var(--color-static-neutral-0);
|
|
35
35
|
}
|
|
36
|
-
.
|
|
36
|
+
.switch__component_4xozt {
|
|
37
37
|
display: inline-flex;
|
|
38
38
|
align-items: flex-start;
|
|
39
39
|
margin: var(--gap-0);
|
|
@@ -42,25 +42,25 @@
|
|
|
42
42
|
cursor: pointer;
|
|
43
43
|
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
44
44
|
}
|
|
45
|
-
.
|
|
45
|
+
.switch__component_4xozt input {
|
|
46
46
|
opacity: 0;
|
|
47
47
|
position: absolute;
|
|
48
48
|
}
|
|
49
|
-
.
|
|
49
|
+
.switch__start_4xozt {
|
|
50
50
|
align-items: flex-start;
|
|
51
51
|
}
|
|
52
|
-
.
|
|
52
|
+
.switch__center_4xozt {
|
|
53
53
|
align-items: center;
|
|
54
54
|
}
|
|
55
|
-
.
|
|
55
|
+
.switch__addons_4xozt {
|
|
56
56
|
margin-left: auto;
|
|
57
57
|
padding-left: var(--gap-16);
|
|
58
58
|
line-height: 24px;
|
|
59
59
|
}
|
|
60
|
-
.
|
|
60
|
+
.switch__block_4xozt {
|
|
61
61
|
width: 100%;
|
|
62
62
|
}
|
|
63
|
-
.
|
|
63
|
+
.switch__switch_4xozt {
|
|
64
64
|
position: relative;
|
|
65
65
|
border-radius: var(--border-radius-16);
|
|
66
66
|
width: 36px;
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
border-color 0.2s ease;
|
|
74
74
|
box-sizing: border-box;
|
|
75
75
|
}
|
|
76
|
-
.
|
|
76
|
+
.switch__switch_4xozt:before {
|
|
77
77
|
content: '';
|
|
78
78
|
position: absolute;
|
|
79
79
|
top: var(--gap-0);
|
|
@@ -86,11 +86,11 @@
|
|
|
86
86
|
box-sizing: border-box;
|
|
87
87
|
transition: transform 0.2s ease;
|
|
88
88
|
}
|
|
89
|
-
.
|
|
89
|
+
.switch__content_4xozt {
|
|
90
90
|
margin-left: var(--gap-12);
|
|
91
91
|
flex-grow: 1;
|
|
92
92
|
}
|
|
93
|
-
.
|
|
93
|
+
.switch__label_4xozt {
|
|
94
94
|
font-size: 16px;
|
|
95
95
|
line-height: 24px;
|
|
96
96
|
font-weight: 400;
|
|
@@ -98,10 +98,10 @@
|
|
|
98
98
|
font-family: var(--font-family-alfasans);
|
|
99
99
|
display: block;
|
|
100
100
|
}
|
|
101
|
-
.
|
|
101
|
+
.switch__label_4xozt:not(:only-child) {
|
|
102
102
|
margin-bottom: var(--gap-4);
|
|
103
103
|
}
|
|
104
|
-
.
|
|
104
|
+
.switch__errorMessage_4xozt {
|
|
105
105
|
font-size: 14px;
|
|
106
106
|
line-height: 18px;
|
|
107
107
|
font-weight: 400;
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
font-family: var(--font-family-alfasans);
|
|
110
110
|
color: var(--switch-error-color);
|
|
111
111
|
}
|
|
112
|
-
.
|
|
112
|
+
.switch__hint_4xozt {
|
|
113
113
|
font-size: 14px;
|
|
114
114
|
line-height: 18px;
|
|
115
115
|
font-weight: 400;
|
|
@@ -117,26 +117,26 @@
|
|
|
117
117
|
font-family: var(--font-family-alfasans);
|
|
118
118
|
display: block;
|
|
119
119
|
}
|
|
120
|
-
.
|
|
120
|
+
.switch__component_4xozt.switch__reversed_4xozt {
|
|
121
121
|
flex-direction: row-reverse;
|
|
122
122
|
}
|
|
123
|
-
.
|
|
123
|
+
.switch__reversed_4xozt .switch__content_4xozt {
|
|
124
124
|
margin-right: var(--gap-16);
|
|
125
125
|
margin-left: var(--gap-0);
|
|
126
126
|
}
|
|
127
|
-
.
|
|
127
|
+
.switch__reversed_4xozt .switch__addons_4xozt {
|
|
128
128
|
margin-left: var(--gap-0);
|
|
129
129
|
padding-left: var(--gap-0);
|
|
130
130
|
margin-right: auto;
|
|
131
131
|
padding-right: var(--gap-16);
|
|
132
132
|
}
|
|
133
|
-
.
|
|
133
|
+
.switch__checked_4xozt .switch__switch_4xozt:before {
|
|
134
134
|
transform: translateX(16px);
|
|
135
135
|
}
|
|
136
|
-
.
|
|
136
|
+
.switch__disabled_4xozt {
|
|
137
137
|
cursor: var(--disabled-cursor);
|
|
138
138
|
}
|
|
139
|
-
.
|
|
139
|
+
.switch__focused_4xozt .switch__switch_4xozt {
|
|
140
140
|
outline: 2px solid var(--focus-color);
|
|
141
141
|
outline-offset: 2px;
|
|
142
142
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './index.css';
|
|
2
2
|
|
|
3
|
-
const styles = {"component":"
|
|
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
|
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_6x7sw {
|
|
24
24
|
background-color: var(--switch-bg-inverted-color);
|
|
25
25
|
}
|
|
26
|
-
.
|
|
26
|
+
.switch__switch_6x7sw:hover {
|
|
27
27
|
background-color: var(--switch-hover-bg-inverted-color);
|
|
28
28
|
}
|
|
29
|
-
.
|
|
29
|
+
.switch__label_6x7sw {
|
|
30
30
|
color: var(--switch-label-inverted-color);
|
|
31
31
|
}
|
|
32
|
-
.
|
|
32
|
+
.switch__hint_6x7sw {
|
|
33
33
|
color: var(--switch-hint-inverted-color);
|
|
34
34
|
}
|
|
35
|
-
.
|
|
35
|
+
.switch__checked_6x7sw .switch__switch_6x7sw {
|
|
36
36
|
background-color: var(--switch-checked-bg-inverted-color);
|
|
37
37
|
}
|
|
38
|
-
.
|
|
38
|
+
.switch__checked_6x7sw .switch__switch_6x7sw:hover {
|
|
39
39
|
background-color: var(--switch-checked-hover-bg-inverted-color);
|
|
40
40
|
}
|
|
41
|
-
.
|
|
41
|
+
.switch__disabled_6x7sw .switch__label_6x7sw {
|
|
42
42
|
color: var(--switch-disabled-inverted-color);
|
|
43
43
|
}
|
|
44
|
-
.
|
|
44
|
+
.switch__disabled_6x7sw .switch__hint_6x7sw {
|
|
45
45
|
color: var(--switch-disabled-inverted-color);
|
|
46
46
|
}
|
|
47
|
-
.
|
|
47
|
+
.switch__disabled_6x7sw .switch__switch_6x7sw {
|
|
48
48
|
background-color: var(--switch-disabled-bg-inverted-color);
|
|
49
49
|
}
|
|
50
|
-
.
|
|
50
|
+
.switch__disabled_6x7sw .switch__switch_6x7sw:before {
|
|
51
51
|
background-color: var(--switch-icon-disabled-inverted-color);
|
|
52
52
|
}
|
|
53
|
-
.
|
|
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":"
|
|
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
|
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.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
|
|
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",
|