@rescui/switcher 0.1.4 → 0.1.5
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/lib/index.css +55 -55
- package/lib/index.module.pcss.js +14 -14
- package/package.json +4 -4
package/lib/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.
|
|
1
|
+
._switcher_165bbt6_4{
|
|
2
2
|
|
|
3
3
|
position:relative;
|
|
4
4
|
|
|
@@ -16,21 +16,21 @@
|
|
|
16
16
|
|
|
17
17
|
background:transparent;
|
|
18
18
|
}
|
|
19
|
-
.
|
|
19
|
+
._themeLight_165bbt6_17{
|
|
20
20
|
-webkit-box-shadow:inset rgba(25,25,28,0.4) 0 0 0 1px;
|
|
21
21
|
box-shadow:inset rgba(25,25,28,0.4) 0 0 0 1px;
|
|
22
22
|
}
|
|
23
|
-
.
|
|
23
|
+
._themeDark_165bbt6_21{
|
|
24
24
|
-webkit-box-shadow:inset rgba(255,255,255,0.5) 0 0 0 1px;
|
|
25
25
|
box-shadow:inset rgba(255,255,255,0.5) 0 0 0 1px;
|
|
26
26
|
}
|
|
27
|
-
.
|
|
27
|
+
._sizeL_165bbt6_25{
|
|
28
28
|
border-radius:36px;
|
|
29
29
|
}
|
|
30
|
-
.
|
|
30
|
+
._sizeXS_165bbt6_29{
|
|
31
31
|
border-radius:4px;
|
|
32
32
|
}
|
|
33
|
-
.
|
|
33
|
+
._option_165bbt6_33{
|
|
34
34
|
position:relative;
|
|
35
35
|
-webkit-appearance:none;
|
|
36
36
|
-moz-appearance:none;
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
|
|
51
51
|
background:transparent;
|
|
52
52
|
}
|
|
53
|
-
.
|
|
53
|
+
._sizeL_165bbt6_25 ._option_165bbt6_33{
|
|
54
54
|
padding:12px 32px;
|
|
55
55
|
color:rgba(25,25,28,0.7);
|
|
56
56
|
color:var(--rs-typography-color-average, rgba(25,25,28,0.7));
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
line-height:var(--rs-text-1-line-height, 28px);
|
|
64
64
|
border-radius:36px;
|
|
65
65
|
}
|
|
66
|
-
.
|
|
66
|
+
._sizeM_165bbt6_56 ._option_165bbt6_33{
|
|
67
67
|
padding:8px 24px;
|
|
68
68
|
letter-spacing:0.0015em;
|
|
69
69
|
color:rgba(25,25,28,0.7);
|
|
@@ -76,10 +76,10 @@
|
|
|
76
76
|
line-height:24px;
|
|
77
77
|
line-height:var(--rs-text-2-line-height, 24px);
|
|
78
78
|
}
|
|
79
|
-
._rs-reset-letter-
|
|
79
|
+
._rs-reset-letter-spacing_165bbt6_1 ._sizeM_165bbt6_56 ._option_165bbt6_33{
|
|
80
80
|
letter-spacing:normal;
|
|
81
81
|
}
|
|
82
|
-
.
|
|
82
|
+
._sizeS_165bbt6_61 ._option_165bbt6_33{
|
|
83
83
|
padding:6px 16px;
|
|
84
84
|
letter-spacing:0.0015em;
|
|
85
85
|
color:rgba(25,25,28,0.7);
|
|
@@ -92,10 +92,10 @@
|
|
|
92
92
|
line-height:24px;
|
|
93
93
|
line-height:var(--rs-text-2-line-height, 24px);
|
|
94
94
|
}
|
|
95
|
-
._rs-reset-letter-
|
|
95
|
+
._rs-reset-letter-spacing_165bbt6_1 ._sizeS_165bbt6_61 ._option_165bbt6_33{
|
|
96
96
|
letter-spacing:normal;
|
|
97
97
|
}
|
|
98
|
-
.
|
|
98
|
+
._sizeXS_165bbt6_29 ._option_165bbt6_33{
|
|
99
99
|
padding:2px 12px;
|
|
100
100
|
letter-spacing:0.0045em;
|
|
101
101
|
color:rgba(25,25,28,0.7);
|
|
@@ -107,68 +107,68 @@
|
|
|
107
107
|
line-height:20px;
|
|
108
108
|
line-height:var(--rs-text-3-line-height, 20px);
|
|
109
109
|
}
|
|
110
|
-
._rs-reset-letter-
|
|
110
|
+
._rs-reset-letter-spacing_165bbt6_1 ._sizeXS_165bbt6_29 ._option_165bbt6_33{
|
|
111
111
|
letter-spacing:normal;
|
|
112
112
|
}
|
|
113
|
-
.
|
|
113
|
+
._sizeXS_165bbt6_29 ._option_165bbt6_33 {
|
|
114
114
|
border-radius:4px;
|
|
115
115
|
}
|
|
116
|
-
.
|
|
116
|
+
._disabled_165bbt6_72 ._option_165bbt6_33{
|
|
117
117
|
cursor:not-allowed;
|
|
118
118
|
pointer-events:none;
|
|
119
119
|
}
|
|
120
|
-
.
|
|
120
|
+
._themeLight_165bbt6_17 ._option_165bbt6_33{
|
|
121
121
|
color:#19191C;
|
|
122
122
|
}
|
|
123
|
-
.
|
|
124
|
-
-webkit-box-shadow:rgba(
|
|
125
|
-
-webkit-box-shadow:var(--rs-color-primary-t-dim-light-theme, rgba(
|
|
126
|
-
box-shadow:rgba(
|
|
127
|
-
box-shadow:var(--rs-color-primary-t-dim-light-theme, rgba(
|
|
123
|
+
._themeLight_165bbt6_17 ._option_165bbt6_33:focus[data-focus-method='key']{
|
|
124
|
+
-webkit-box-shadow:rgba(107, 87, 255, 0.8) 0 0 0 4px;
|
|
125
|
+
-webkit-box-shadow:var(--rs-color-primary-t-dim-light-theme, rgba(107, 87, 255, 0.8)) 0 0 0 4px;
|
|
126
|
+
box-shadow:rgba(107, 87, 255, 0.8) 0 0 0 4px;
|
|
127
|
+
box-shadow:var(--rs-color-primary-t-dim-light-theme, rgba(107, 87, 255, 0.8)) 0 0 0 4px;
|
|
128
128
|
}
|
|
129
|
-
.
|
|
129
|
+
._themeLight_165bbt6_17 ._option_165bbt6_33._selected_165bbt6_85:hover, ._themeLight_165bbt6_17 ._option_165bbt6_33._selected_165bbt6_85:active{
|
|
130
130
|
background:transparent;
|
|
131
131
|
cursor:default;
|
|
132
132
|
}
|
|
133
|
-
.
|
|
134
|
-
background:rgba(
|
|
135
|
-
background:var(--rs-color-primary-t-fog-light-theme, rgba(
|
|
133
|
+
._themeLight_165bbt6_17._modeClassic_165bbt6_93 ._option_165bbt6_33:hover{
|
|
134
|
+
background:rgba(107, 87, 255,0.2);
|
|
135
|
+
background:var(--rs-color-primary-t-fog-light-theme, rgba(107, 87, 255,0.2));
|
|
136
136
|
}
|
|
137
|
-
.
|
|
137
|
+
._themeLight_165bbt6_17._modeRock_165bbt6_99 ._option_165bbt6_33:hover{
|
|
138
138
|
background:rgba(25,25,28,0.1);
|
|
139
139
|
}
|
|
140
|
-
.
|
|
141
|
-
.
|
|
140
|
+
._disabled_165bbt6_72._themeLight_165bbt6_17 ._option_165bbt6_33,
|
|
141
|
+
._disabled_165bbt6_72._themeLight_165bbt6_17 ._option_165bbt6_33._selected_165bbt6_85{
|
|
142
142
|
color:rgba(25,25,28,0.4);
|
|
143
143
|
}
|
|
144
|
-
.
|
|
144
|
+
._themeDark_165bbt6_21 ._option_165bbt6_33{
|
|
145
145
|
color:#FFFFFF;
|
|
146
146
|
}
|
|
147
|
-
.
|
|
147
|
+
._themeDark_165bbt6_21 ._option_165bbt6_33:hover{
|
|
148
148
|
background:rgba(255,255,255,0.1);
|
|
149
149
|
}
|
|
150
|
-
.
|
|
151
|
-
-webkit-box-shadow:rgba(
|
|
152
|
-
-webkit-box-shadow:var(--rs-color-primary-t-dim-dark-theme, rgba(
|
|
153
|
-
box-shadow:rgba(
|
|
154
|
-
box-shadow:var(--rs-color-primary-t-dim-dark-theme, rgba(
|
|
150
|
+
._themeDark_165bbt6_21 ._option_165bbt6_33:focus[data-focus-method='key']{
|
|
151
|
+
-webkit-box-shadow:rgba(132, 115, 255,0.8) 0 0 0 4px;
|
|
152
|
+
-webkit-box-shadow:var(--rs-color-primary-t-dim-dark-theme, rgba(132, 115, 255,0.8)) 0 0 0 4px;
|
|
153
|
+
box-shadow:rgba(132, 115, 255,0.8) 0 0 0 4px;
|
|
154
|
+
box-shadow:var(--rs-color-primary-t-dim-dark-theme, rgba(132, 115, 255,0.8)) 0 0 0 4px;
|
|
155
155
|
}
|
|
156
|
-
.
|
|
156
|
+
._themeDark_165bbt6_21 ._option_165bbt6_33._selected_165bbt6_85:hover, ._themeDark_165bbt6_21 ._option_165bbt6_33._selected_165bbt6_85:active{
|
|
157
157
|
background:transparent;
|
|
158
158
|
cursor:default;
|
|
159
159
|
}
|
|
160
|
-
.
|
|
161
|
-
background:rgba(
|
|
162
|
-
background:var(--rs-color-primary-t-fog-dark-theme, rgba(
|
|
160
|
+
._themeDark_165bbt6_21._modeClassic_165bbt6_93 ._option_165bbt6_33:hover{
|
|
161
|
+
background:rgba(132, 115, 255,0.3);
|
|
162
|
+
background:var(--rs-color-primary-t-fog-dark-theme, rgba(132, 115, 255,0.3));
|
|
163
163
|
}
|
|
164
|
-
.
|
|
164
|
+
._themeDark_165bbt6_21._modeRock_165bbt6_99 ._option_165bbt6_33:hover{
|
|
165
165
|
background:rgba(255,255,255,0.1);
|
|
166
166
|
}
|
|
167
|
-
.
|
|
168
|
-
.
|
|
167
|
+
._disabled_165bbt6_72._themeDark_165bbt6_21 ._option_165bbt6_33,
|
|
168
|
+
._disabled_165bbt6_72._themeDark_165bbt6_21 ._option_165bbt6_33._selected_165bbt6_85{
|
|
169
169
|
color:rgba(255,255,255,0.2);
|
|
170
170
|
}
|
|
171
|
-
.
|
|
171
|
+
._mark_165bbt6_146{
|
|
172
172
|
position:absolute;
|
|
173
173
|
top:0;
|
|
174
174
|
bottom:0;
|
|
@@ -179,29 +179,29 @@
|
|
|
179
179
|
-webkit-transition:all 0.3s;
|
|
180
180
|
transition:all 0.3s;
|
|
181
181
|
}
|
|
182
|
-
.
|
|
183
|
-
border:solid 2px #
|
|
184
|
-
border:solid 2px var(--rs-color-primary-light-theme, #
|
|
182
|
+
._themeLight_165bbt6_17._modeClassic_165bbt6_93 ._mark_165bbt6_146{
|
|
183
|
+
border:solid 2px #6B57FF;
|
|
184
|
+
border:solid 2px var(--rs-color-primary-light-theme, #6B57FF);
|
|
185
185
|
}
|
|
186
|
-
.
|
|
187
|
-
border:solid 2px #
|
|
188
|
-
border:solid 2px var(--rs-color-primary-dark-theme, #
|
|
186
|
+
._themeDark_165bbt6_21._modeClassic_165bbt6_93 ._mark_165bbt6_146{
|
|
187
|
+
border:solid 2px #8473FF;
|
|
188
|
+
border:solid 2px var(--rs-color-primary-dark-theme, #8473FF);
|
|
189
189
|
}
|
|
190
|
-
.
|
|
190
|
+
._themeLight_165bbt6_17._modeRock_165bbt6_99 ._mark_165bbt6_146{
|
|
191
191
|
border:solid 2px #19191C;
|
|
192
192
|
}
|
|
193
|
-
.
|
|
193
|
+
._themeDark_165bbt6_21._modeRock_165bbt6_99 ._mark_165bbt6_146{
|
|
194
194
|
border:solid 2px #FFFFFF;
|
|
195
195
|
}
|
|
196
|
-
.
|
|
196
|
+
._sizeL_165bbt6_25 ._mark_165bbt6_146{
|
|
197
197
|
border-radius:36px;
|
|
198
198
|
}
|
|
199
|
-
.
|
|
199
|
+
._sizeXS_165bbt6_29 ._mark_165bbt6_146{
|
|
200
200
|
border-radius:4px;
|
|
201
201
|
}
|
|
202
|
-
.
|
|
202
|
+
._themeLight_165bbt6_17._disabled_165bbt6_72 ._mark_165bbt6_146{
|
|
203
203
|
border:solid 2px rgba(25,25,28,0.4);
|
|
204
204
|
}
|
|
205
|
-
.
|
|
205
|
+
._themeDark_165bbt6_21._disabled_165bbt6_72 ._mark_165bbt6_146{
|
|
206
206
|
border:solid 2px rgba(255,255,255,0.2);
|
|
207
207
|
}
|
package/lib/index.module.pcss.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
var styles = {
|
|
2
|
-
"switcher": "
|
|
3
|
-
"themeLight": "
|
|
4
|
-
"themeDark": "
|
|
5
|
-
"sizeL": "
|
|
6
|
-
"sizeXS": "
|
|
7
|
-
"option": "
|
|
8
|
-
"sizeM": "
|
|
9
|
-
"rs-reset-letter-spacing": "_rs-reset-letter-
|
|
10
|
-
"sizeS": "
|
|
11
|
-
"disabled": "
|
|
12
|
-
"selected": "
|
|
13
|
-
"modeClassic": "
|
|
14
|
-
"modeRock": "
|
|
15
|
-
"mark": "
|
|
2
|
+
"switcher": "_switcher_165bbt6_4",
|
|
3
|
+
"themeLight": "_themeLight_165bbt6_17",
|
|
4
|
+
"themeDark": "_themeDark_165bbt6_21",
|
|
5
|
+
"sizeL": "_sizeL_165bbt6_25",
|
|
6
|
+
"sizeXS": "_sizeXS_165bbt6_29",
|
|
7
|
+
"option": "_option_165bbt6_33",
|
|
8
|
+
"sizeM": "_sizeM_165bbt6_56",
|
|
9
|
+
"rs-reset-letter-spacing": "_rs-reset-letter-spacing_165bbt6_1",
|
|
10
|
+
"sizeS": "_sizeS_165bbt6_61",
|
|
11
|
+
"disabled": "_disabled_165bbt6_72",
|
|
12
|
+
"selected": "_selected_165bbt6_85",
|
|
13
|
+
"modeClassic": "_modeClassic_165bbt6_93",
|
|
14
|
+
"modeRock": "_modeRock_165bbt6_99",
|
|
15
|
+
"mark": "_mark_165bbt6_146"
|
|
16
16
|
};
|
|
17
17
|
export default styles;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rescui/switcher",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "JetBrains",
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
"react": ">=16.8.0 <18"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@rescui/colors": "^0.0
|
|
29
|
+
"@rescui/colors": "^0.1.0",
|
|
30
30
|
"@rescui/scripts": "^0.1.4",
|
|
31
|
-
"@rescui/typography": "^0.5.
|
|
31
|
+
"@rescui/typography": "^0.5.1"
|
|
32
32
|
},
|
|
33
33
|
"scripts": {
|
|
34
34
|
"build": "rescui-scripts build"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "24a3fbe87179468f1dc804374864b21042fa2dbe"
|
|
37
37
|
}
|