@rescui/switcher 0.4.3 → 0.5.0
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 +39 -39
- package/lib/index.d.ts +7 -1
- package/lib/index.js +8 -1
- package/lib/index.p.module.css.js +14 -14
- package/package.json +6 -6
package/lib/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.
|
|
1
|
+
._switcher_fvhuws_4{
|
|
2
2
|
position:relative;
|
|
3
3
|
|
|
4
4
|
display:-webkit-inline-box;
|
|
@@ -15,21 +15,21 @@
|
|
|
15
15
|
|
|
16
16
|
background:transparent;
|
|
17
17
|
}
|
|
18
|
-
.
|
|
18
|
+
._themeLight_fvhuws_16{
|
|
19
19
|
-webkit-box-shadow:inset rgba(25,25,28,0.4) 0 0 0 1px;
|
|
20
20
|
box-shadow:inset rgba(25,25,28,0.4) 0 0 0 1px;
|
|
21
21
|
}
|
|
22
|
-
.
|
|
22
|
+
._themeDark_fvhuws_20{
|
|
23
23
|
-webkit-box-shadow:inset rgba(255,255,255,0.5) 0 0 0 1px;
|
|
24
24
|
box-shadow:inset rgba(255,255,255,0.5) 0 0 0 1px;
|
|
25
25
|
}
|
|
26
|
-
.
|
|
26
|
+
._sizeL_fvhuws_24{
|
|
27
27
|
border-radius:36px;
|
|
28
28
|
}
|
|
29
|
-
.
|
|
29
|
+
._sizeXS_fvhuws_28{
|
|
30
30
|
border-radius:4px;
|
|
31
31
|
}
|
|
32
|
-
.
|
|
32
|
+
._option_fvhuws_32{
|
|
33
33
|
position:relative;
|
|
34
34
|
-webkit-appearance:none;
|
|
35
35
|
-moz-appearance:none;
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
|
|
50
50
|
background:transparent;
|
|
51
51
|
}
|
|
52
|
-
.
|
|
52
|
+
._sizeL_fvhuws_24 ._option_fvhuws_32{
|
|
53
53
|
padding:12px 32px;
|
|
54
54
|
font-family:'JetBrains Sans', Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Droid Sans', 'Helvetica Neue', Arial, sans-serif;
|
|
55
55
|
font-family:var(--rs-font-family-ui, var(--rs-font-family-jb-sans, 'JetBrains Sans', Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Droid Sans', 'Helvetica Neue', Arial, sans-serif));
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
line-height:var(--rs-text-1-line-height, 28px);
|
|
63
63
|
border-radius:36px;
|
|
64
64
|
}
|
|
65
|
-
.
|
|
65
|
+
._sizeM_fvhuws_55 ._option_fvhuws_32{
|
|
66
66
|
padding:8px 24px;
|
|
67
67
|
letter-spacing:0.0015em;
|
|
68
68
|
font-family:'JetBrains Sans', Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Droid Sans', 'Helvetica Neue', Arial, sans-serif;
|
|
@@ -75,10 +75,10 @@
|
|
|
75
75
|
line-height:24px;
|
|
76
76
|
line-height:var(--rs-text-2-line-height, 24px);
|
|
77
77
|
}
|
|
78
|
-
._rs-reset-letter-
|
|
78
|
+
._rs-reset-letter-spacing_fvhuws_1 ._sizeM_fvhuws_55 ._option_fvhuws_32{
|
|
79
79
|
letter-spacing:normal;
|
|
80
80
|
}
|
|
81
|
-
.
|
|
81
|
+
._sizeS_fvhuws_60 ._option_fvhuws_32{
|
|
82
82
|
padding:6px 16px;
|
|
83
83
|
letter-spacing:0.0045em;
|
|
84
84
|
font-family:'JetBrains Sans', Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Droid Sans', 'Helvetica Neue', Arial, sans-serif;
|
|
@@ -90,10 +90,10 @@
|
|
|
90
90
|
line-height:20px;
|
|
91
91
|
line-height:var(--rs-text-3-line-height, 20px);
|
|
92
92
|
}
|
|
93
|
-
._rs-reset-letter-
|
|
93
|
+
._rs-reset-letter-spacing_fvhuws_1 ._sizeS_fvhuws_60 ._option_fvhuws_32{
|
|
94
94
|
letter-spacing:normal;
|
|
95
95
|
}
|
|
96
|
-
.
|
|
96
|
+
._sizeXS_fvhuws_28 ._option_fvhuws_32{
|
|
97
97
|
padding:2px 12px;
|
|
98
98
|
letter-spacing:0.0045em;
|
|
99
99
|
font-family:'JetBrains Sans', Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Droid Sans', 'Helvetica Neue', Arial, sans-serif;
|
|
@@ -105,68 +105,68 @@
|
|
|
105
105
|
line-height:20px;
|
|
106
106
|
line-height:var(--rs-text-3-line-height, 20px);
|
|
107
107
|
}
|
|
108
|
-
._rs-reset-letter-
|
|
108
|
+
._rs-reset-letter-spacing_fvhuws_1 ._sizeXS_fvhuws_28 ._option_fvhuws_32{
|
|
109
109
|
letter-spacing:normal;
|
|
110
110
|
}
|
|
111
|
-
.
|
|
111
|
+
._sizeXS_fvhuws_28 ._option_fvhuws_32 {
|
|
112
112
|
border-radius:4px;
|
|
113
113
|
}
|
|
114
|
-
.
|
|
114
|
+
._disabled_fvhuws_71 ._option_fvhuws_32{
|
|
115
115
|
cursor:not-allowed;
|
|
116
116
|
pointer-events:none;
|
|
117
117
|
}
|
|
118
|
-
.
|
|
118
|
+
._themeLight_fvhuws_16 ._option_fvhuws_32{
|
|
119
119
|
color:#19191C;
|
|
120
120
|
}
|
|
121
|
-
.
|
|
121
|
+
._themeLight_fvhuws_16 ._option_fvhuws_32:focus[data-focus-method='key']{
|
|
122
122
|
-webkit-box-shadow:rgba(107, 87, 255, 0.8) 0 0 0 4px;
|
|
123
123
|
-webkit-box-shadow:var(--rs-color-primary-t-dim-light-theme, rgba(107, 87, 255, 0.8)) 0 0 0 4px;
|
|
124
124
|
box-shadow:rgba(107, 87, 255, 0.8) 0 0 0 4px;
|
|
125
125
|
box-shadow:var(--rs-color-primary-t-dim-light-theme, rgba(107, 87, 255, 0.8)) 0 0 0 4px;
|
|
126
126
|
}
|
|
127
|
-
.
|
|
127
|
+
._themeLight_fvhuws_16 ._option_fvhuws_32._selected_fvhuws_84:hover, ._themeLight_fvhuws_16 ._option_fvhuws_32._selected_fvhuws_84:active{
|
|
128
128
|
background:transparent;
|
|
129
129
|
cursor:default;
|
|
130
130
|
}
|
|
131
|
-
.
|
|
131
|
+
._themeLight_fvhuws_16._modeClassic_fvhuws_92 ._option_fvhuws_32:hover{
|
|
132
132
|
background:rgba(107, 87, 255,0.2);
|
|
133
133
|
background:var(--rs-color-primary-t-fog-light-theme, rgba(107, 87, 255,0.2));
|
|
134
134
|
}
|
|
135
|
-
.
|
|
135
|
+
._themeLight_fvhuws_16._modeRock_fvhuws_98 ._option_fvhuws_32:hover{
|
|
136
136
|
background:rgba(25,25,28,0.1);
|
|
137
137
|
}
|
|
138
|
-
.
|
|
139
|
-
.
|
|
138
|
+
._disabled_fvhuws_71._themeLight_fvhuws_16 ._option_fvhuws_32,
|
|
139
|
+
._disabled_fvhuws_71._themeLight_fvhuws_16 ._option_fvhuws_32._selected_fvhuws_84{
|
|
140
140
|
color:rgba(25,25,28,0.4);
|
|
141
141
|
}
|
|
142
|
-
.
|
|
142
|
+
._themeDark_fvhuws_20 ._option_fvhuws_32{
|
|
143
143
|
color:#FFFFFF;
|
|
144
144
|
}
|
|
145
|
-
.
|
|
145
|
+
._themeDark_fvhuws_20 ._option_fvhuws_32:hover{
|
|
146
146
|
background:rgba(255,255,255,0.1);
|
|
147
147
|
}
|
|
148
|
-
.
|
|
148
|
+
._themeDark_fvhuws_20 ._option_fvhuws_32:focus[data-focus-method='key']{
|
|
149
149
|
-webkit-box-shadow:rgba(132, 115, 255,0.8) 0 0 0 4px;
|
|
150
150
|
-webkit-box-shadow:var(--rs-color-primary-t-dim-dark-theme, rgba(132, 115, 255,0.8)) 0 0 0 4px;
|
|
151
151
|
box-shadow:rgba(132, 115, 255,0.8) 0 0 0 4px;
|
|
152
152
|
box-shadow:var(--rs-color-primary-t-dim-dark-theme, rgba(132, 115, 255,0.8)) 0 0 0 4px;
|
|
153
153
|
}
|
|
154
|
-
.
|
|
154
|
+
._themeDark_fvhuws_20 ._option_fvhuws_32._selected_fvhuws_84:hover, ._themeDark_fvhuws_20 ._option_fvhuws_32._selected_fvhuws_84:active{
|
|
155
155
|
background:transparent;
|
|
156
156
|
cursor:default;
|
|
157
157
|
}
|
|
158
|
-
.
|
|
158
|
+
._themeDark_fvhuws_20._modeClassic_fvhuws_92 ._option_fvhuws_32:hover{
|
|
159
159
|
background:rgba(132, 115, 255,0.3);
|
|
160
160
|
background:var(--rs-color-primary-t-fog-dark-theme, rgba(132, 115, 255,0.3));
|
|
161
161
|
}
|
|
162
|
-
.
|
|
162
|
+
._themeDark_fvhuws_20._modeRock_fvhuws_98 ._option_fvhuws_32:hover{
|
|
163
163
|
background:rgba(255,255,255,0.1);
|
|
164
164
|
}
|
|
165
|
-
.
|
|
166
|
-
.
|
|
165
|
+
._disabled_fvhuws_71._themeDark_fvhuws_20 ._option_fvhuws_32,
|
|
166
|
+
._disabled_fvhuws_71._themeDark_fvhuws_20 ._option_fvhuws_32._selected_fvhuws_84{
|
|
167
167
|
color:rgba(255,255,255,0.2);
|
|
168
168
|
}
|
|
169
|
-
.
|
|
169
|
+
._mark_fvhuws_145{
|
|
170
170
|
position:absolute;
|
|
171
171
|
top:0;
|
|
172
172
|
bottom:0;
|
|
@@ -177,29 +177,29 @@
|
|
|
177
177
|
-webkit-transition:all 0.2s;
|
|
178
178
|
transition:all 0.2s;
|
|
179
179
|
}
|
|
180
|
-
.
|
|
180
|
+
._themeLight_fvhuws_16._modeClassic_fvhuws_92 ._mark_fvhuws_145{
|
|
181
181
|
border:solid 2px #6B57FF;
|
|
182
182
|
border:solid 2px var(--rs-color-primary-light-theme, #6B57FF);
|
|
183
183
|
}
|
|
184
|
-
.
|
|
184
|
+
._themeDark_fvhuws_20._modeClassic_fvhuws_92 ._mark_fvhuws_145{
|
|
185
185
|
border:solid 2px #8473FF;
|
|
186
186
|
border:solid 2px var(--rs-color-primary-dark-theme, #8473FF);
|
|
187
187
|
}
|
|
188
|
-
.
|
|
188
|
+
._themeLight_fvhuws_16._modeRock_fvhuws_98 ._mark_fvhuws_145{
|
|
189
189
|
border:solid 2px #19191C;
|
|
190
190
|
}
|
|
191
|
-
.
|
|
191
|
+
._themeDark_fvhuws_20._modeRock_fvhuws_98 ._mark_fvhuws_145{
|
|
192
192
|
border:solid 2px #FFFFFF;
|
|
193
193
|
}
|
|
194
|
-
.
|
|
194
|
+
._sizeL_fvhuws_24 ._mark_fvhuws_145{
|
|
195
195
|
border-radius:36px;
|
|
196
196
|
}
|
|
197
|
-
.
|
|
197
|
+
._sizeXS_fvhuws_28 ._mark_fvhuws_145{
|
|
198
198
|
border-radius:4px;
|
|
199
199
|
}
|
|
200
|
-
.
|
|
200
|
+
._themeLight_fvhuws_16._disabled_fvhuws_71 ._mark_fvhuws_145{
|
|
201
201
|
border:solid 2px rgba(25,25,28,0.4);
|
|
202
202
|
}
|
|
203
|
-
.
|
|
203
|
+
._themeDark_fvhuws_20._disabled_fvhuws_71 ._mark_fvhuws_145{
|
|
204
204
|
border:solid 2px rgba(255,255,255,0.2);
|
|
205
205
|
}
|
package/lib/index.d.ts
CHANGED
|
@@ -1,2 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import Switcher from './switcher';
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated use named import instead
|
|
4
|
+
*/
|
|
5
|
+
declare const DefaultSwitcher: typeof Switcher;
|
|
6
|
+
export default DefaultSwitcher;
|
|
7
|
+
export { Switcher } from './switcher';
|
|
2
8
|
export type { SwitcherProps } from './switcher';
|
package/lib/index.js
CHANGED
|
@@ -1,2 +1,9 @@
|
|
|
1
1
|
import './index.css';
|
|
2
|
-
|
|
2
|
+
import { Switcher } from './switcher.js';
|
|
3
|
+
export { Switcher } from './switcher.js';
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated use named import instead
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
var DefaultSwitcher = Switcher;
|
|
9
|
+
export { DefaultSwitcher as default };
|
|
@@ -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_fvhuws_4",
|
|
3
|
+
"themeLight": "_themeLight_fvhuws_16",
|
|
4
|
+
"themeDark": "_themeDark_fvhuws_20",
|
|
5
|
+
"sizeL": "_sizeL_fvhuws_24",
|
|
6
|
+
"sizeXS": "_sizeXS_fvhuws_28",
|
|
7
|
+
"option": "_option_fvhuws_32",
|
|
8
|
+
"sizeM": "_sizeM_fvhuws_55",
|
|
9
|
+
"rs-reset-letter-spacing": "_rs-reset-letter-spacing_fvhuws_1",
|
|
10
|
+
"sizeS": "_sizeS_fvhuws_60",
|
|
11
|
+
"disabled": "_disabled_fvhuws_71",
|
|
12
|
+
"selected": "_selected_fvhuws_84",
|
|
13
|
+
"modeClassic": "_modeClassic_fvhuws_92",
|
|
14
|
+
"modeRock": "_modeRock_fvhuws_98",
|
|
15
|
+
"mark": "_mark_fvhuws_145"
|
|
16
16
|
};
|
|
17
17
|
export { styles as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rescui/switcher",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "JetBrains",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@babel/runtime-corejs3": "^7.14.0",
|
|
19
|
-
"@rescui/use-resize-observer": "^0.1.
|
|
19
|
+
"@rescui/use-resize-observer": "^0.1.3",
|
|
20
20
|
"classnames": "^2.2.6",
|
|
21
21
|
"core-js": "^3.9.1"
|
|
22
22
|
},
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
"react": ">=16.8.0 <18"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@rescui/colors": "^0.1.
|
|
30
|
-
"@rescui/scripts": "^0.
|
|
31
|
-
"@rescui/typography": "^0.
|
|
29
|
+
"@rescui/colors": "^0.1.6",
|
|
30
|
+
"@rescui/scripts": "^0.2.0",
|
|
31
|
+
"@rescui/typography": "^0.10.0"
|
|
32
32
|
},
|
|
33
33
|
"scripts": {
|
|
34
34
|
"build": "rescui-scripts build"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "c87adfdebe07392a0aa67ce434ce465762d8fa95"
|
|
37
37
|
}
|