@rescui/tab-list 0.17.1 → 0.17.2-RUI-296-Build-docs-md-files-for-each-docs-section-2a311c841.14
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/README.md +3 -2
- package/lib/_virtual/index.css.js +12 -12
- package/lib/index.css +180 -194
- package/lib/index.d.ts +6 -6
- package/lib/index.js +1 -1
- package/lib/parts/deep-map.d.ts +2 -2
- package/lib/parts/separator.p.module.css.js +3 -3
- package/lib/parts/tab-list-context.d.ts +13 -13
- package/lib/parts/tab-list.p.module.css.js +25 -16
- package/lib/parts/tab-separator.d.ts +8 -8
- package/lib/parts/tab.d.ts +35 -35
- package/lib/parts/use-indicator.d.ts +13 -13
- package/lib/parts/use-roving-tab-index.d.ts +8 -8
- package/lib/parts/use-scrollable-list.d.ts +18 -18
- package/lib/parts/use-scrollable-list.js +5 -8
- package/lib/tab-list.d.ts +43 -42
- package/lib/tab-list.js +78 -23
- package/package.json +9 -9
- package/lib/parts/with-scroll-arrows.d.ts +0 -28
- package/lib/parts/with-scroll-arrows.js +0 -101
- package/lib/parts/with-scroll-arrows.p.module.css.js +0 -14
package/README.md
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
var styles = {
|
|
2
|
-
"icon": "
|
|
3
|
-
"sizeXS": "
|
|
4
|
-
"sizeS": "
|
|
5
|
-
"sizeM": "
|
|
6
|
-
"sizeL": "
|
|
7
|
-
"light": "
|
|
8
|
-
"dark": "
|
|
9
|
-
"allVariants": "
|
|
10
|
-
"variant16": "
|
|
11
|
-
"variant20": "
|
|
12
|
-
"variant24": "
|
|
13
|
-
"variant28": "
|
|
2
|
+
"icon": "_icon_16ewrhm_4",
|
|
3
|
+
"sizeXS": "_sizeXS_16ewrhm_14",
|
|
4
|
+
"sizeS": "_sizeS_16ewrhm_18",
|
|
5
|
+
"sizeM": "_sizeM_16ewrhm_22",
|
|
6
|
+
"sizeL": "_sizeL_16ewrhm_26",
|
|
7
|
+
"light": "_light_16ewrhm_30",
|
|
8
|
+
"dark": "_dark_16ewrhm_34",
|
|
9
|
+
"allVariants": "_allVariants_16ewrhm_48",
|
|
10
|
+
"variant16": "_variant16_16ewrhm_53",
|
|
11
|
+
"variant20": "_variant20_16ewrhm_54",
|
|
12
|
+
"variant24": "_variant24_16ewrhm_55",
|
|
13
|
+
"variant28": "_variant28_16ewrhm_58"
|
|
14
14
|
};
|
|
15
15
|
export { styles as default };
|
package/lib/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.
|
|
1
|
+
._icon_16ewrhm_4{
|
|
2
2
|
--_rs-theme-dark:var(
|
|
3
3
|
--_rs-internal-force-theme-dark-consult-rescui-before-using,
|
|
4
4
|
var(--rs-theme-dark, 0)
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
--_rs-theme-light-coefficient:calc(1 - var(--_rs-theme-dark-coefficient));
|
|
9
9
|
}
|
|
10
10
|
@supports (color: color-mix(in srgb, #fff 50%, #000 50%)){
|
|
11
|
-
.
|
|
11
|
+
._icon_16ewrhm_4{
|
|
12
12
|
--_rs-color-primary:color-mix(in srgb, var(--rs-color-primary-light-theme, #6B57FF) calc(100%*var(--_rs-theme-light-coefficient, 1)), var(--rs-color-primary-dark-theme, #8473FF) calc(100%*var(--_rs-theme-dark-coefficient, 0)));
|
|
13
13
|
--_rs-color-primary-dim:color-mix(in srgb, var(--rs-color-primary-dim-light-theme, #8979ff) calc(100%*var(--_rs-theme-light-coefficient, 1)), var(--rs-color-primary-dim-dark-theme, #6f61d2) calc(100%*var(--_rs-theme-dark-coefficient, 0)));
|
|
14
14
|
--_rs-color-primary-fog:color-mix(in srgb, var(--rs-color-primary-fog-light-theme, #e1ddff) calc(100%*var(--_rs-theme-light-coefficient, 1)), var(--rs-color-primary-fog-dark-theme, #2e2b49) calc(100%*var(--_rs-theme-dark-coefficient, 0)));
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
@supports not (color: color-mix(in srgb, #fff 50%, #000 50%)){
|
|
20
|
-
.
|
|
20
|
+
._icon_16ewrhm_4{
|
|
21
21
|
--_rs-color-primary:rgb(calc(var(--_rs-theme-light-coefficient, 1)*107 + var(--_rs-theme-dark-coefficient, 0)*132), calc(var(--_rs-theme-light-coefficient, 1)*87 + var(--_rs-theme-dark-coefficient, 0)*115), 255);
|
|
22
22
|
--_rs-color-primary-dim:rgb(calc(var(--_rs-theme-light-coefficient, 1)*137 + var(--_rs-theme-dark-coefficient, 0)*111), calc(var(--_rs-theme-light-coefficient, 1)*121 + var(--_rs-theme-dark-coefficient, 0)*97), calc(var(--_rs-theme-light-coefficient, 1)*255 + var(--_rs-theme-dark-coefficient, 0)*210));
|
|
23
23
|
--_rs-color-primary-fog:rgb(calc(var(--_rs-theme-light-coefficient, 1)*225 + var(--_rs-theme-dark-coefficient, 0)*46), calc(var(--_rs-theme-light-coefficient, 1)*221 + var(--_rs-theme-dark-coefficient, 0)*43), calc(var(--_rs-theme-light-coefficient, 1)*255 + var(--_rs-theme-dark-coefficient, 0)*73));
|
|
@@ -25,30 +25,30 @@
|
|
|
25
25
|
--_rs-color-primary-t-fog:rgba(calc(var(--_rs-theme-light-coefficient, 1)*107 + var(--_rs-theme-dark-coefficient, 0)*132), calc(var(--_rs-theme-light-coefficient, 1)*87 + var(--_rs-theme-dark-coefficient, 0)*115), 255, calc(var(--_rs-theme-light-coefficient, 1)*0.2 + var(--_rs-theme-dark-coefficient, 0)*0.3));
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
-
.
|
|
28
|
+
._icon_16ewrhm_4{
|
|
29
29
|
|
|
30
30
|
fill:var(--_rs-icons-themed-fill-or-initial, currentcolor);
|
|
31
31
|
|
|
32
32
|
width:var(--rs-icons-width, auto);
|
|
33
33
|
height:var(--rs-icons-height, var(--_rs-icons-height));
|
|
34
34
|
}
|
|
35
|
-
.
|
|
35
|
+
._sizeXS_16ewrhm_14{
|
|
36
36
|
--_rs-icons-height:16px;
|
|
37
37
|
}
|
|
38
|
-
.
|
|
38
|
+
._sizeS_16ewrhm_18{
|
|
39
39
|
--_rs-icons-height:20px;
|
|
40
40
|
}
|
|
41
|
-
.
|
|
41
|
+
._sizeM_16ewrhm_22{
|
|
42
42
|
--_rs-icons-height:24px;
|
|
43
43
|
}
|
|
44
|
-
.
|
|
44
|
+
._sizeL_16ewrhm_26{
|
|
45
45
|
--_rs-icons-height:28px;
|
|
46
46
|
}
|
|
47
|
-
.
|
|
47
|
+
._light_16ewrhm_30{
|
|
48
48
|
--rs-theme-dark:0;
|
|
49
49
|
--_rs-icons-themed-fill-or-initial:rgb(calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(28 + var(--_rs-theme-dark-coefficient, 0)*227));
|
|
50
50
|
}
|
|
51
|
-
.
|
|
51
|
+
._dark_16ewrhm_34{
|
|
52
52
|
--rs-theme-dark:1;
|
|
53
53
|
--_rs-icons-themed-fill-or-initial:rgb(calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(28 + var(--_rs-theme-dark-coefficient, 0)*227));
|
|
54
54
|
}
|
|
@@ -60,54 +60,54 @@
|
|
|
60
60
|
transform:rotate(360deg);
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
|
-
.
|
|
63
|
+
._allVariants_16ewrhm_48{
|
|
64
64
|
aspect-ratio:var(--rs-icon-ar-width, 1) / var(--rs-icon-ar-height, 1);
|
|
65
65
|
container:rs-icon / size;
|
|
66
66
|
}
|
|
67
|
-
.
|
|
68
|
-
.
|
|
69
|
-
.
|
|
67
|
+
._variant16_16ewrhm_53,
|
|
68
|
+
._variant20_16ewrhm_54,
|
|
69
|
+
._variant24_16ewrhm_55{
|
|
70
70
|
display:none;
|
|
71
71
|
}
|
|
72
|
-
.
|
|
72
|
+
._variant28_16ewrhm_58{
|
|
73
73
|
display:block;
|
|
74
74
|
}
|
|
75
75
|
@container rs-icon (max-height: 24px){
|
|
76
|
-
.
|
|
76
|
+
._variant24_16ewrhm_55{
|
|
77
77
|
display:block;
|
|
78
78
|
}
|
|
79
|
-
.
|
|
79
|
+
._variant28_16ewrhm_58{
|
|
80
80
|
display:none;
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
@container rs-icon (max-height: 20px){
|
|
84
|
-
.
|
|
84
|
+
._variant20_16ewrhm_54{
|
|
85
85
|
display:block;
|
|
86
86
|
}
|
|
87
|
-
.
|
|
87
|
+
._variant24_16ewrhm_55{
|
|
88
88
|
display:none;
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
@container rs-icon (max-height: 16px){
|
|
92
|
-
.
|
|
92
|
+
._variant16_16ewrhm_53{
|
|
93
93
|
display:block;
|
|
94
94
|
}
|
|
95
|
-
.
|
|
95
|
+
._variant20_16ewrhm_54{
|
|
96
96
|
display:none;
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
|
-
.
|
|
99
|
+
._light_18sd8nl_10{
|
|
100
100
|
--rs-theme-dark:0;
|
|
101
101
|
}
|
|
102
|
-
.
|
|
102
|
+
._dark_18sd8nl_13{
|
|
103
103
|
--rs-theme-dark:1;
|
|
104
104
|
}
|
|
105
|
-
.
|
|
105
|
+
._sizeM_18sd8nl_17{
|
|
106
106
|
--_rs-tab-list-tab-vertical-padding:8px;
|
|
107
107
|
--_rs-tab-list-icon-size:24px;
|
|
108
108
|
--_rs-tab-list-icon-offset:4px;
|
|
109
109
|
}
|
|
110
|
-
.
|
|
110
|
+
._sizeM_18sd8nl_17 [data-rs-internal='tab-list__tab']{
|
|
111
111
|
--_rs-typography-letter-spacing:var(--rs-text-2-letter-spacing, 0.0015em);
|
|
112
112
|
--_rs-typography-text-transform:initial;
|
|
113
113
|
--_rs-typography-font-variant-numeric:initial;
|
|
@@ -146,16 +146,16 @@
|
|
|
146
146
|
--_rs-typography-link-border-bottom-width-from-text:1px;
|
|
147
147
|
}
|
|
148
148
|
@media screen and (max-width: 640px){
|
|
149
|
-
.
|
|
149
|
+
._sizeM_18sd8nl_17 [data-rs-internal='tab-list__tab']{
|
|
150
150
|
--_rs-typography-text-2-sm-list-li-margin-top-from-text:12px;
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
|
-
.
|
|
153
|
+
._sizeL_18sd8nl_20{
|
|
154
154
|
--_rs-tab-list-tab-vertical-padding:12px;
|
|
155
155
|
--_rs-tab-list-icon-size:28px;
|
|
156
156
|
--_rs-tab-list-icon-offset:8px;
|
|
157
157
|
}
|
|
158
|
-
.
|
|
158
|
+
._sizeL_18sd8nl_20 [data-rs-internal='tab-list__tab']{
|
|
159
159
|
--_rs-typography-letter-spacing:var(--rs-text-1-letter-spacing, normal);
|
|
160
160
|
--_rs-typography-text-transform:initial;
|
|
161
161
|
--_rs-typography-font-variant-numeric:initial;
|
|
@@ -194,28 +194,28 @@
|
|
|
194
194
|
--_rs-typography-link-border-bottom-width-from-text:1px;
|
|
195
195
|
}
|
|
196
196
|
@media screen and (max-width: 640px){
|
|
197
|
-
.
|
|
197
|
+
._sizeL_18sd8nl_20 [data-rs-internal='tab-list__tab']{
|
|
198
198
|
--_rs-typography-text-1-sm-list-li-margin-top-from-text:16px;
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
|
-
.
|
|
201
|
+
._classic_18sd8nl_24{
|
|
202
202
|
--_rs-tab-list-indicator-background:var(--_rs-color-primary);
|
|
203
203
|
}
|
|
204
|
-
.
|
|
204
|
+
._rock_18sd8nl_27{
|
|
205
205
|
--_rs-tab-list-indicator-background:rgb(calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(28 + var(--_rs-theme-dark-coefficient, 0)*227));
|
|
206
206
|
}
|
|
207
|
-
.
|
|
207
|
+
._sparse_18sd8nl_31{
|
|
208
208
|
--_rs-tab-list-tab-margin-left-or-initial:32px;
|
|
209
209
|
}
|
|
210
210
|
@media screen and (max-width: 640px){
|
|
211
|
-
.
|
|
211
|
+
._sparse_18sd8nl_31{
|
|
212
212
|
--_rs-tab-list-tab-margin-left-or-initial:24px;
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
|
-
.
|
|
215
|
+
._short_18sd8nl_35{
|
|
216
216
|
--_rs-tab-list-tab-box-shadow:inset 0 -1px 0 rgba(calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(28 + var(--_rs-theme-dark-coefficient, 0)*227), calc(0.3 + var(--_rs-theme-dark-coefficient)*0.1));
|
|
217
217
|
}
|
|
218
|
-
.
|
|
218
|
+
._wrapper_18sd8nl_39{
|
|
219
219
|
--_rs-theme-dark:var(
|
|
220
220
|
--_rs-internal-force-theme-dark-consult-rescui-before-using,
|
|
221
221
|
var(--rs-theme-dark, 0)
|
|
@@ -225,7 +225,7 @@
|
|
|
225
225
|
--_rs-theme-light-coefficient:calc(1 - var(--_rs-theme-dark-coefficient));
|
|
226
226
|
}
|
|
227
227
|
@supports (color: color-mix(in srgb, #fff 50%, #000 50%)){
|
|
228
|
-
.
|
|
228
|
+
._wrapper_18sd8nl_39{
|
|
229
229
|
--_rs-color-primary:color-mix(in srgb, var(--rs-color-primary-light-theme, #6B57FF) calc(100%*var(--_rs-theme-light-coefficient, 1)), var(--rs-color-primary-dark-theme, #8473FF) calc(100%*var(--_rs-theme-dark-coefficient, 0)));
|
|
230
230
|
--_rs-color-primary-dim:color-mix(in srgb, var(--rs-color-primary-dim-light-theme, #8979ff) calc(100%*var(--_rs-theme-light-coefficient, 1)), var(--rs-color-primary-dim-dark-theme, #6f61d2) calc(100%*var(--_rs-theme-dark-coefficient, 0)));
|
|
231
231
|
--_rs-color-primary-fog:color-mix(in srgb, var(--rs-color-primary-fog-light-theme, #e1ddff) calc(100%*var(--_rs-theme-light-coefficient, 1)), var(--rs-color-primary-fog-dark-theme, #2e2b49) calc(100%*var(--_rs-theme-dark-coefficient, 0)));
|
|
@@ -234,7 +234,7 @@
|
|
|
234
234
|
}
|
|
235
235
|
}
|
|
236
236
|
@supports not (color: color-mix(in srgb, #fff 50%, #000 50%)){
|
|
237
|
-
.
|
|
237
|
+
._wrapper_18sd8nl_39{
|
|
238
238
|
--_rs-color-primary:rgb(calc(var(--_rs-theme-light-coefficient, 1)*107 + var(--_rs-theme-dark-coefficient, 0)*132), calc(var(--_rs-theme-light-coefficient, 1)*87 + var(--_rs-theme-dark-coefficient, 0)*115), 255);
|
|
239
239
|
--_rs-color-primary-dim:rgb(calc(var(--_rs-theme-light-coefficient, 1)*137 + var(--_rs-theme-dark-coefficient, 0)*111), calc(var(--_rs-theme-light-coefficient, 1)*121 + var(--_rs-theme-dark-coefficient, 0)*97), calc(var(--_rs-theme-light-coefficient, 1)*255 + var(--_rs-theme-dark-coefficient, 0)*210));
|
|
240
240
|
--_rs-color-primary-fog:rgb(calc(var(--_rs-theme-light-coefficient, 1)*225 + var(--_rs-theme-dark-coefficient, 0)*46), calc(var(--_rs-theme-light-coefficient, 1)*221 + var(--_rs-theme-dark-coefficient, 0)*43), calc(var(--_rs-theme-light-coefficient, 1)*255 + var(--_rs-theme-dark-coefficient, 0)*73));
|
|
@@ -242,15 +242,15 @@
|
|
|
242
242
|
--_rs-color-primary-t-fog:rgba(calc(var(--_rs-theme-light-coefficient, 1)*107 + var(--_rs-theme-dark-coefficient, 0)*132), calc(var(--_rs-theme-light-coefficient, 1)*87 + var(--_rs-theme-dark-coefficient, 0)*115), 255, calc(var(--_rs-theme-light-coefficient, 1)*0.2 + var(--_rs-theme-dark-coefficient, 0)*0.3));
|
|
243
243
|
}
|
|
244
244
|
}
|
|
245
|
-
.
|
|
245
|
+
._wrapper_18sd8nl_39 {
|
|
246
246
|
--_rs-tab-list-tab-base-margin-left:24px;
|
|
247
247
|
}
|
|
248
248
|
@media screen and (max-width: 640px){
|
|
249
|
-
.
|
|
249
|
+
._wrapper_18sd8nl_39{
|
|
250
250
|
--_rs-tab-list-tab-base-margin-left:16px;
|
|
251
251
|
}
|
|
252
252
|
}
|
|
253
|
-
.
|
|
253
|
+
._wrapper_18sd8nl_39 {
|
|
254
254
|
--_rs-tab-list-tab-margin-left:var(
|
|
255
255
|
--_rs-tab-list-tab-margin-left-or-initial,
|
|
256
256
|
var(--_rs-tab-list-tab-base-margin-left)
|
|
@@ -260,7 +260,120 @@
|
|
|
260
260
|
|
|
261
261
|
display:flex;
|
|
262
262
|
}
|
|
263
|
-
.
|
|
263
|
+
._scrollable_18sd8nl_49{
|
|
264
|
+
display:flex;
|
|
265
|
+
overflow-x:scroll;
|
|
266
|
+
|
|
267
|
+
margin:-4px;
|
|
268
|
+
padding:4px;
|
|
269
|
+
}
|
|
270
|
+
._scrollable_18sd8nl_49::after{
|
|
271
|
+
display:block;
|
|
272
|
+
|
|
273
|
+
height:100%;
|
|
274
|
+
|
|
275
|
+
border-left:4px solid transparent;
|
|
276
|
+
|
|
277
|
+
content:'';
|
|
278
|
+
}
|
|
279
|
+
._scrollable_18sd8nl_49 {
|
|
280
|
+
|
|
281
|
+
-ms-overflow-style:none;
|
|
282
|
+
scrollbar-width:none;
|
|
283
|
+
}
|
|
284
|
+
._scrollable_18sd8nl_49::-webkit-scrollbar{
|
|
285
|
+
display:none;
|
|
286
|
+
}
|
|
287
|
+
._arrow_18sd8nl_78{
|
|
288
|
+
position:absolute;
|
|
289
|
+
z-index:2;
|
|
290
|
+
top:50%;
|
|
291
|
+
|
|
292
|
+
display:flex;
|
|
293
|
+
|
|
294
|
+
opacity:0;
|
|
295
|
+
align-items:center;
|
|
296
|
+
|
|
297
|
+
height:100%;
|
|
298
|
+
|
|
299
|
+
pointer-events:none;
|
|
300
|
+
|
|
301
|
+
color:rgb(calc(255 - var(--_rs-theme-dark-coefficient, 0)*230), calc(255 - var(--_rs-theme-dark-coefficient, 0)*230), calc(255 - var(--_rs-theme-dark-coefficient, 0)*227));
|
|
302
|
+
background-color:transparent;
|
|
303
|
+
|
|
304
|
+
transition:opacity 0.15s var(--rs-transition-function, ease-out);
|
|
305
|
+
transform:translateY(-50%);
|
|
306
|
+
}
|
|
307
|
+
._arrow_18sd8nl_78._shown_18sd8nl_98{
|
|
308
|
+
opacity:1;
|
|
309
|
+
|
|
310
|
+
pointer-events:auto;
|
|
311
|
+
|
|
312
|
+
transition:opacity 0.15s var(--rs-transition-function, ease-in);
|
|
313
|
+
}
|
|
314
|
+
._arrow_18sd8nl_78._arrowLeft_18sd8nl_106{
|
|
315
|
+
left:-5px;
|
|
316
|
+
}
|
|
317
|
+
._arrow_18sd8nl_78._arrowRight_18sd8nl_111{
|
|
318
|
+
right:-5px;
|
|
319
|
+
}
|
|
320
|
+
._withLeftArrow_18sd8nl_117{
|
|
321
|
+
-webkit-mask-image:linear-gradient(
|
|
322
|
+
to right,
|
|
323
|
+
rgba(0, 0, 0, 0) 0%,
|
|
324
|
+
rgba(0, 0, 0, 0) 32px,
|
|
325
|
+
black 56px
|
|
326
|
+
);
|
|
327
|
+
mask-image:linear-gradient(
|
|
328
|
+
to right,
|
|
329
|
+
rgba(0, 0, 0, 0) 0%,
|
|
330
|
+
rgba(0, 0, 0, 0) 32px,
|
|
331
|
+
black 56px
|
|
332
|
+
);
|
|
333
|
+
}
|
|
334
|
+
._withRightArrow_18sd8nl_126{
|
|
335
|
+
-webkit-mask-image:linear-gradient(
|
|
336
|
+
to left,
|
|
337
|
+
rgba(0, 0, 0, 0) 0%,
|
|
338
|
+
rgba(0, 0, 0, 0) 32px,
|
|
339
|
+
black 56px
|
|
340
|
+
);
|
|
341
|
+
mask-image:linear-gradient(
|
|
342
|
+
to left,
|
|
343
|
+
rgba(0, 0, 0, 0) 0%,
|
|
344
|
+
rgba(0, 0, 0, 0) 32px,
|
|
345
|
+
black 56px
|
|
346
|
+
);
|
|
347
|
+
}
|
|
348
|
+
._withLeftArrow_18sd8nl_117._withRightArrow_18sd8nl_126{
|
|
349
|
+
-webkit-mask-image:linear-gradient(
|
|
350
|
+
to right,
|
|
351
|
+
rgba(0, 0, 0, 0) 0%,
|
|
352
|
+
rgba(0, 0, 0, 0) 32px,
|
|
353
|
+
black 56px,
|
|
354
|
+
black calc(100% - 56px),
|
|
355
|
+
rgba(0, 0, 0, 0) calc(100% - 32px),
|
|
356
|
+
rgba(0, 0, 0, 0) 100%
|
|
357
|
+
);
|
|
358
|
+
mask-image:linear-gradient(
|
|
359
|
+
to right,
|
|
360
|
+
rgba(0, 0, 0, 0) 0%,
|
|
361
|
+
rgba(0, 0, 0, 0) 32px,
|
|
362
|
+
black 56px,
|
|
363
|
+
black calc(100% - 56px),
|
|
364
|
+
rgba(0, 0, 0, 0) calc(100% - 32px),
|
|
365
|
+
rgba(0, 0, 0, 0) 100%
|
|
366
|
+
);
|
|
367
|
+
}
|
|
368
|
+
._arrowButton_18sd8nl_147{
|
|
369
|
+
cursor:pointer;
|
|
370
|
+
}
|
|
371
|
+
._tabsContainer_18sd8nl_151{
|
|
372
|
+
position:relative;
|
|
373
|
+
|
|
374
|
+
display:flex;
|
|
375
|
+
}
|
|
376
|
+
._indicator_18sd8nl_157{
|
|
264
377
|
position:absolute;
|
|
265
378
|
z-index:3;
|
|
266
379
|
bottom:0;
|
|
@@ -273,17 +386,17 @@
|
|
|
273
386
|
transition:left 300ms var(--rs-transition-function, cubic-bezier(0.4, 0, 0.2, 1)) 0ms, width 300ms var(--rs-transition-function, cubic-bezier(0.4, 0, 0.2, 1)) 0ms;
|
|
274
387
|
will-change:left, width;
|
|
275
388
|
}
|
|
276
|
-
.
|
|
277
|
-
[data-calculating-scrollable='true'] .
|
|
389
|
+
._isIndicatorHidden_18sd8nl_172 ._indicator_18sd8nl_157,
|
|
390
|
+
[data-calculating-scrollable='true'] ._indicator_18sd8nl_157{
|
|
278
391
|
display:none;
|
|
279
392
|
}
|
|
280
|
-
.
|
|
393
|
+
._iconLeft_18sd8nl_178{
|
|
281
394
|
--_rs-tab-list-tab-flex-direction:row;
|
|
282
395
|
}
|
|
283
|
-
.
|
|
396
|
+
._iconRight_18sd8nl_181{
|
|
284
397
|
--_rs-tab-list-tab-flex-direction:row-reverse;
|
|
285
398
|
}
|
|
286
|
-
.
|
|
399
|
+
._tab_18sd8nl_151{
|
|
287
400
|
--_rs-theme-dark:var(
|
|
288
401
|
--_rs-internal-force-theme-dark-consult-rescui-before-using,
|
|
289
402
|
var(--rs-theme-dark, 0)
|
|
@@ -293,7 +406,7 @@
|
|
|
293
406
|
--_rs-theme-light-coefficient:calc(1 - var(--_rs-theme-dark-coefficient));
|
|
294
407
|
}
|
|
295
408
|
@supports (color: color-mix(in srgb, #fff 50%, #000 50%)){
|
|
296
|
-
.
|
|
409
|
+
._tab_18sd8nl_151{
|
|
297
410
|
--_rs-color-primary:color-mix(in srgb, var(--rs-color-primary-light-theme, #6B57FF) calc(100%*var(--_rs-theme-light-coefficient, 1)), var(--rs-color-primary-dark-theme, #8473FF) calc(100%*var(--_rs-theme-dark-coefficient, 0)));
|
|
298
411
|
--_rs-color-primary-dim:color-mix(in srgb, var(--rs-color-primary-dim-light-theme, #8979ff) calc(100%*var(--_rs-theme-light-coefficient, 1)), var(--rs-color-primary-dim-dark-theme, #6f61d2) calc(100%*var(--_rs-theme-dark-coefficient, 0)));
|
|
299
412
|
--_rs-color-primary-fog:color-mix(in srgb, var(--rs-color-primary-fog-light-theme, #e1ddff) calc(100%*var(--_rs-theme-light-coefficient, 1)), var(--rs-color-primary-fog-dark-theme, #2e2b49) calc(100%*var(--_rs-theme-dark-coefficient, 0)));
|
|
@@ -302,7 +415,7 @@
|
|
|
302
415
|
}
|
|
303
416
|
}
|
|
304
417
|
@supports not (color: color-mix(in srgb, #fff 50%, #000 50%)){
|
|
305
|
-
.
|
|
418
|
+
._tab_18sd8nl_151{
|
|
306
419
|
--_rs-color-primary:rgb(calc(var(--_rs-theme-light-coefficient, 1)*107 + var(--_rs-theme-dark-coefficient, 0)*132), calc(var(--_rs-theme-light-coefficient, 1)*87 + var(--_rs-theme-dark-coefficient, 0)*115), 255);
|
|
307
420
|
--_rs-color-primary-dim:rgb(calc(var(--_rs-theme-light-coefficient, 1)*137 + var(--_rs-theme-dark-coefficient, 0)*111), calc(var(--_rs-theme-light-coefficient, 1)*121 + var(--_rs-theme-dark-coefficient, 0)*97), calc(var(--_rs-theme-light-coefficient, 1)*255 + var(--_rs-theme-dark-coefficient, 0)*210));
|
|
308
421
|
--_rs-color-primary-fog:rgb(calc(var(--_rs-theme-light-coefficient, 1)*225 + var(--_rs-theme-dark-coefficient, 0)*46), calc(var(--_rs-theme-light-coefficient, 1)*221 + var(--_rs-theme-dark-coefficient, 0)*43), calc(var(--_rs-theme-light-coefficient, 1)*255 + var(--_rs-theme-dark-coefficient, 0)*73));
|
|
@@ -310,7 +423,7 @@
|
|
|
310
423
|
--_rs-color-primary-t-fog:rgba(calc(var(--_rs-theme-light-coefficient, 1)*107 + var(--_rs-theme-dark-coefficient, 0)*132), calc(var(--_rs-theme-light-coefficient, 1)*87 + var(--_rs-theme-dark-coefficient, 0)*115), 255, calc(var(--_rs-theme-light-coefficient, 1)*0.2 + var(--_rs-theme-dark-coefficient, 0)*0.3));
|
|
311
424
|
}
|
|
312
425
|
}
|
|
313
|
-
.
|
|
426
|
+
._tab_18sd8nl_151 {
|
|
314
427
|
letter-spacing:var(
|
|
315
428
|
--rs-text-base-letter-spacing,
|
|
316
429
|
var(--_rs-typography-letter-spacing)
|
|
@@ -354,23 +467,23 @@
|
|
|
354
467
|
-moz-osx-font-smoothing:inherit;
|
|
355
468
|
-webkit-appearance:none;
|
|
356
469
|
}
|
|
357
|
-
.
|
|
470
|
+
._tab_18sd8nl_151::-moz-focus-inner{
|
|
358
471
|
padding:0;
|
|
359
472
|
|
|
360
473
|
border:none;
|
|
361
474
|
}
|
|
362
|
-
.
|
|
363
|
-
.
|
|
364
|
-
.
|
|
475
|
+
._tab_18sd8nl_151:hover,
|
|
476
|
+
._tab_18sd8nl_151:active,
|
|
477
|
+
._tab_18sd8nl_151:focus{
|
|
365
478
|
outline:none;
|
|
366
479
|
|
|
367
480
|
text-decoration:none;
|
|
368
481
|
}
|
|
369
|
-
.
|
|
482
|
+
._tab_18sd8nl_151:after{
|
|
370
483
|
position:absolute;
|
|
484
|
+
right:0;
|
|
371
485
|
bottom:0;
|
|
372
486
|
left:0;
|
|
373
|
-
right:0;
|
|
374
487
|
|
|
375
488
|
width:100%;
|
|
376
489
|
height:0;
|
|
@@ -379,18 +492,18 @@
|
|
|
379
492
|
|
|
380
493
|
background-color:transparent;
|
|
381
494
|
}
|
|
382
|
-
.
|
|
495
|
+
._tab_18sd8nl_151:focus[data-focus-method='key']:after{
|
|
383
496
|
opacity:0;
|
|
384
497
|
}
|
|
385
|
-
.
|
|
498
|
+
._tab_18sd8nl_151:hover{
|
|
386
499
|
color:rgb(calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(28 + var(--_rs-theme-dark-coefficient, 0)*227));
|
|
387
500
|
}
|
|
388
|
-
.
|
|
501
|
+
._tab_18sd8nl_151:hover:after{
|
|
389
502
|
height:1px;
|
|
390
503
|
|
|
391
504
|
background-color:rgb(calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(28 + var(--_rs-theme-dark-coefficient, 0)*227));
|
|
392
505
|
}
|
|
393
|
-
.
|
|
506
|
+
._tab_18sd8nl_151._selected_18sd8nl_272{
|
|
394
507
|
z-index:1;
|
|
395
508
|
|
|
396
509
|
cursor:default;
|
|
@@ -399,20 +512,20 @@
|
|
|
399
512
|
|
|
400
513
|
transition:color 200ms var(--rs-transition-function, cubic-bezier(0.4, 0, 0.2, 1)) 0ms;
|
|
401
514
|
}
|
|
402
|
-
.
|
|
515
|
+
._tab_18sd8nl_151._selected_18sd8nl_272:after{
|
|
403
516
|
height:2px;
|
|
404
517
|
|
|
405
518
|
background-color:var(--_rs-tab-list-indicator-background);
|
|
406
519
|
|
|
407
520
|
transition:background-color 0ms var(--rs-transition-function, ease) 300ms, height 0ms var(--rs-transition-function, ease) 300ms;
|
|
408
521
|
}
|
|
409
|
-
.
|
|
522
|
+
._tab_18sd8nl_151:focus[data-focus-method='key']{
|
|
410
523
|
box-shadow:inset var(--_rs-color-primary-dim) 0 -4px 0 0, inset var(--_rs-color-primary-dim) 0 4px 0 0, var(--_rs-color-primary-dim) -4px 0 0 0, var(--_rs-color-primary-dim) 4px 0 0 0;
|
|
411
524
|
}
|
|
412
|
-
.
|
|
525
|
+
._tab_18sd8nl_151:first-child{
|
|
413
526
|
margin-left:0;
|
|
414
527
|
}
|
|
415
|
-
.
|
|
528
|
+
._tab_18sd8nl_151 ._icon_18sd8nl_178{
|
|
416
529
|
flex:0 0;
|
|
417
530
|
flex-basis:auto;
|
|
418
531
|
|
|
@@ -420,140 +533,13 @@
|
|
|
420
533
|
height:var(--_rs-tab-list-icon-size);
|
|
421
534
|
}
|
|
422
535
|
|
|
423
|
-
.
|
|
424
|
-
--rs-theme-dark:0;
|
|
425
|
-
}
|
|
426
|
-
._dark_mwv45g_12{
|
|
427
|
-
--rs-theme-dark:1;
|
|
428
|
-
}
|
|
429
|
-
._wrapper_mwv45g_16{
|
|
430
|
-
--_rs-theme-dark:var(
|
|
431
|
-
--_rs-internal-force-theme-dark-consult-rescui-before-using,
|
|
432
|
-
var(--rs-theme-dark, 0)
|
|
433
|
-
);
|
|
434
|
-
--_rs-theme-flip:var(--rs-theme-flip, 0);
|
|
435
|
-
--_rs-theme-dark-coefficient:calc(var(--_rs-theme-dark)*(1 - var(--_rs-theme-flip)) + var(--_rs-theme-flip)*(1 - var(--_rs-theme-dark)));
|
|
436
|
-
--_rs-theme-light-coefficient:calc(1 - var(--_rs-theme-dark-coefficient));
|
|
437
|
-
position:relative;
|
|
438
|
-
|
|
439
|
-
display:flex;
|
|
440
|
-
}
|
|
441
|
-
._scrollable_mwv45g_23{
|
|
442
|
-
display:flex;
|
|
443
|
-
overflow-x:scroll;
|
|
444
|
-
|
|
445
|
-
margin:-4px;
|
|
446
|
-
padding:4px;
|
|
447
|
-
}
|
|
448
|
-
._scrollable_mwv45g_23::after{
|
|
449
|
-
display:block;
|
|
450
|
-
|
|
451
|
-
height:100%;
|
|
452
|
-
|
|
453
|
-
border-left:4px solid transparent;
|
|
454
|
-
|
|
455
|
-
content:'';
|
|
456
|
-
}
|
|
457
|
-
._scrollable_mwv45g_23 {
|
|
458
|
-
|
|
459
|
-
-ms-overflow-style:none;
|
|
460
|
-
scrollbar-width:none;
|
|
461
|
-
}
|
|
462
|
-
._scrollable_mwv45g_23::-webkit-scrollbar{
|
|
463
|
-
display:none;
|
|
464
|
-
}
|
|
465
|
-
._arrow_mwv45g_52{
|
|
466
|
-
position:absolute;
|
|
467
|
-
z-index:2;
|
|
468
|
-
top:50%;
|
|
469
|
-
|
|
470
|
-
display:flex;
|
|
471
|
-
|
|
472
|
-
opacity:0;
|
|
473
|
-
align-items:center;
|
|
474
|
-
|
|
475
|
-
height:100%;
|
|
476
|
-
|
|
477
|
-
pointer-events:none;
|
|
478
|
-
|
|
479
|
-
color:rgb(calc(255 - var(--_rs-theme-dark-coefficient, 0)*230), calc(255 - var(--_rs-theme-dark-coefficient, 0)*230), calc(255 - var(--_rs-theme-dark-coefficient, 0)*227));
|
|
480
|
-
background-color:transparent;
|
|
481
|
-
|
|
482
|
-
transition:opacity 0.15s var(--rs-transition-function, ease-out);
|
|
483
|
-
transform:translateY(-50%);
|
|
484
|
-
}
|
|
485
|
-
._arrow_mwv45g_52._shown_mwv45g_72{
|
|
486
|
-
opacity:1;
|
|
487
|
-
|
|
488
|
-
pointer-events:auto;
|
|
489
|
-
|
|
490
|
-
transition:opacity 0.15s var(--rs-transition-function, ease-in);
|
|
491
|
-
}
|
|
492
|
-
._arrow_mwv45g_52._arrowLeft_mwv45g_80{
|
|
493
|
-
left:-5px;
|
|
494
|
-
}
|
|
495
|
-
._arrow_mwv45g_52._arrowRight_mwv45g_85{
|
|
496
|
-
right:-5px;
|
|
497
|
-
}
|
|
498
|
-
._withLeftArrow_mwv45g_91{
|
|
499
|
-
-webkit-mask-image:linear-gradient(
|
|
500
|
-
to right,
|
|
501
|
-
rgba(0, 0, 0, 0) 0%,
|
|
502
|
-
rgba(0, 0, 0, 0) 32px,
|
|
503
|
-
black 56px
|
|
504
|
-
);
|
|
505
|
-
mask-image:linear-gradient(
|
|
506
|
-
to right,
|
|
507
|
-
rgba(0, 0, 0, 0) 0%,
|
|
508
|
-
rgba(0, 0, 0, 0) 32px,
|
|
509
|
-
black 56px
|
|
510
|
-
);
|
|
511
|
-
}
|
|
512
|
-
._withRightArrow_mwv45g_100{
|
|
513
|
-
-webkit-mask-image:linear-gradient(
|
|
514
|
-
to left,
|
|
515
|
-
rgba(0, 0, 0, 0) 0%,
|
|
516
|
-
rgba(0, 0, 0, 0) 32px,
|
|
517
|
-
black 56px
|
|
518
|
-
);
|
|
519
|
-
mask-image:linear-gradient(
|
|
520
|
-
to left,
|
|
521
|
-
rgba(0, 0, 0, 0) 0%,
|
|
522
|
-
rgba(0, 0, 0, 0) 32px,
|
|
523
|
-
black 56px
|
|
524
|
-
);
|
|
525
|
-
}
|
|
526
|
-
._withLeftArrow_mwv45g_91._withRightArrow_mwv45g_100{
|
|
527
|
-
-webkit-mask-image:linear-gradient(
|
|
528
|
-
to right,
|
|
529
|
-
rgba(0, 0, 0, 0) 0%,
|
|
530
|
-
rgba(0, 0, 0, 0) 32px,
|
|
531
|
-
black 56px,
|
|
532
|
-
black calc(100% - 56px),
|
|
533
|
-
rgba(0, 0, 0, 0) calc(100% - 32px),
|
|
534
|
-
rgba(0, 0, 0, 0) 100%
|
|
535
|
-
);
|
|
536
|
-
mask-image:linear-gradient(
|
|
537
|
-
to right,
|
|
538
|
-
rgba(0, 0, 0, 0) 0%,
|
|
539
|
-
rgba(0, 0, 0, 0) 32px,
|
|
540
|
-
black 56px,
|
|
541
|
-
black calc(100% - 56px),
|
|
542
|
-
rgba(0, 0, 0, 0) calc(100% - 32px),
|
|
543
|
-
rgba(0, 0, 0, 0) 100%
|
|
544
|
-
);
|
|
545
|
-
}
|
|
546
|
-
._arrowButton_mwv45g_121{
|
|
547
|
-
cursor:pointer;
|
|
548
|
-
}
|
|
549
|
-
|
|
550
|
-
._light_d6tpp8_4{
|
|
536
|
+
._light_1t5lej6_4{
|
|
551
537
|
--rs-theme-dark:0;
|
|
552
538
|
}
|
|
553
|
-
.
|
|
539
|
+
._dark_1t5lej6_7{
|
|
554
540
|
--rs-theme-dark:1;
|
|
555
541
|
}
|
|
556
|
-
.
|
|
542
|
+
._separator_1t5lej6_11{
|
|
557
543
|
--_rs-theme-dark:var(
|
|
558
544
|
--_rs-internal-force-theme-dark-consult-rescui-before-using,
|
|
559
545
|
var(--rs-theme-dark, 0)
|
|
@@ -567,7 +553,7 @@
|
|
|
567
553
|
|
|
568
554
|
width:100%;
|
|
569
555
|
}
|
|
570
|
-
.
|
|
556
|
+
._separator_1t5lej6_11:after{
|
|
571
557
|
position:absolute;
|
|
572
558
|
right:0;
|
|
573
559
|
bottom:0;
|
package/lib/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { default as TabList } from './tab-list';
|
|
2
|
-
export type { TabListProps } from './tab-list';
|
|
3
|
-
export { default as TabSeparator } from './parts/tab-separator';
|
|
4
|
-
export type { TabSeparatorProps } from './parts/tab-separator';
|
|
5
|
-
export { default as Tab } from './parts/tab';
|
|
6
|
-
export type { TabProps } from './parts/tab';
|
|
1
|
+
export { default as TabList } from './tab-list';
|
|
2
|
+
export type { TabListProps } from './tab-list';
|
|
3
|
+
export { default as TabSeparator } from './parts/tab-separator';
|
|
4
|
+
export type { TabSeparatorProps } from './parts/tab-separator';
|
|
5
|
+
export { default as Tab } from './parts/tab';
|
|
6
|
+
export type { TabProps } from './parts/tab';
|
package/lib/index.js
CHANGED
package/lib/parts/deep-map.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export declare function deepMap(children: React.ReactNode, fn: (child: React.ReactNode) => React.ReactNode): React.ReactNode;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare function deepMap(children: React.ReactNode, fn: (child: React.ReactNode) => React.ReactNode): React.ReactNode;
|