@rescui/button 0.16.2 → 0.16.4
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/_virtual/index.css.js +7 -7
- package/lib/button.p.module.css.js +29 -29
- package/lib/index.css +64 -64
- package/package.json +7 -7
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
var styles = {
|
|
2
|
-
"icon": "
|
|
3
|
-
"sizeXS": "
|
|
4
|
-
"sizeS": "
|
|
5
|
-
"sizeM": "
|
|
6
|
-
"sizeL": "
|
|
7
|
-
"light": "
|
|
8
|
-
"dark": "
|
|
2
|
+
"icon": "_icon_12q9sj9_4",
|
|
3
|
+
"sizeXS": "_sizeXS_12q9sj9_14",
|
|
4
|
+
"sizeS": "_sizeS_12q9sj9_18",
|
|
5
|
+
"sizeM": "_sizeM_12q9sj9_22",
|
|
6
|
+
"sizeL": "_sizeL_12q9sj9_26",
|
|
7
|
+
"light": "_light_12q9sj9_30",
|
|
8
|
+
"dark": "_dark_12q9sj9_34"
|
|
9
9
|
};
|
|
10
10
|
export { styles as default };
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
var styles = {
|
|
2
|
-
"light": "
|
|
3
|
-
"dark": "
|
|
4
|
-
"flatRight": "
|
|
5
|
-
"flatLeft": "
|
|
6
|
-
"sizeXs": "
|
|
7
|
-
"sizeS": "
|
|
8
|
-
"sizeM": "
|
|
9
|
-
"sizeL": "
|
|
10
|
-
"modeClassic": "
|
|
11
|
-
"modeRock": "
|
|
12
|
-
"modeTransparent": "
|
|
13
|
-
"modeOutline": "
|
|
14
|
-
"modeClear": "
|
|
15
|
-
"alignIconLeft": "
|
|
16
|
-
"alignIconRight": "
|
|
17
|
-
"main": "
|
|
18
|
-
"disabled": "
|
|
19
|
-
"busy": "
|
|
20
|
-
"busyOverlay": "
|
|
21
|
-
"allowMultiline": "
|
|
22
|
-
"multiline": "
|
|
23
|
-
"withoutText": "
|
|
24
|
-
"withIcon": "
|
|
25
|
-
"icon": "
|
|
26
|
-
"busyIcon": "
|
|
27
|
-
"shiftedLeft": "
|
|
28
|
-
"shiftedRight": "
|
|
29
|
-
"shiftedTop": "
|
|
30
|
-
"shiftedBottom": "
|
|
2
|
+
"light": "_light_hoz7kn_6",
|
|
3
|
+
"dark": "_dark_hoz7kn_9",
|
|
4
|
+
"flatRight": "_flatRight_hoz7kn_13",
|
|
5
|
+
"flatLeft": "_flatLeft_hoz7kn_16",
|
|
6
|
+
"sizeXs": "_sizeXs_hoz7kn_20",
|
|
7
|
+
"sizeS": "_sizeS_hoz7kn_23",
|
|
8
|
+
"sizeM": "_sizeM_hoz7kn_26",
|
|
9
|
+
"sizeL": "_sizeL_hoz7kn_29",
|
|
10
|
+
"modeClassic": "_modeClassic_hoz7kn_33",
|
|
11
|
+
"modeRock": "_modeRock_hoz7kn_36",
|
|
12
|
+
"modeTransparent": "_modeTransparent_hoz7kn_39",
|
|
13
|
+
"modeOutline": "_modeOutline_hoz7kn_42",
|
|
14
|
+
"modeClear": "_modeClear_hoz7kn_45",
|
|
15
|
+
"alignIconLeft": "_alignIconLeft_hoz7kn_49",
|
|
16
|
+
"alignIconRight": "_alignIconRight_hoz7kn_52",
|
|
17
|
+
"main": "_main_hoz7kn_56",
|
|
18
|
+
"disabled": "_disabled_hoz7kn_131",
|
|
19
|
+
"busy": "_busy_hoz7kn_141",
|
|
20
|
+
"busyOverlay": "_busyOverlay_hoz7kn_145",
|
|
21
|
+
"allowMultiline": "_allowMultiline_hoz7kn_185",
|
|
22
|
+
"multiline": "_multiline_hoz7kn_189",
|
|
23
|
+
"withoutText": "_withoutText_hoz7kn_193",
|
|
24
|
+
"withIcon": "_withIcon_hoz7kn_201",
|
|
25
|
+
"icon": "_icon_hoz7kn_207",
|
|
26
|
+
"busyIcon": "_busyIcon_hoz7kn_221",
|
|
27
|
+
"shiftedLeft": "_shiftedLeft_hoz7kn_238",
|
|
28
|
+
"shiftedRight": "_shiftedRight_hoz7kn_241",
|
|
29
|
+
"shiftedTop": "_shiftedTop_hoz7kn_244",
|
|
30
|
+
"shiftedBottom": "_shiftedBottom_hoz7kn_247"
|
|
31
31
|
};
|
|
32
32
|
export { styles as default };
|
package/lib/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.
|
|
1
|
+
._icon_12q9sj9_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_12q9sj9_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_12q9sj9_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_12q9sj9_4{
|
|
29
29
|
|
|
30
30
|
fill:var(--_rs-icons-themed-fill-or-initial, currentcolor);
|
|
31
31
|
|
|
32
32
|
width:auto;
|
|
33
33
|
height:var(--_rs-icons-height);
|
|
34
34
|
}
|
|
35
|
-
.
|
|
35
|
+
._sizeXS_12q9sj9_14{
|
|
36
36
|
--_rs-icons-height:16px;
|
|
37
37
|
}
|
|
38
|
-
.
|
|
38
|
+
._sizeS_12q9sj9_18{
|
|
39
39
|
--_rs-icons-height:20px;
|
|
40
40
|
}
|
|
41
|
-
.
|
|
41
|
+
._sizeM_12q9sj9_22{
|
|
42
42
|
--_rs-icons-height:24px;
|
|
43
43
|
}
|
|
44
|
-
.
|
|
44
|
+
._sizeL_12q9sj9_26{
|
|
45
45
|
--_rs-icons-height:28px;
|
|
46
46
|
}
|
|
47
|
-
.
|
|
47
|
+
._light_12q9sj9_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_12q9sj9_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
|
}
|
|
@@ -72,25 +72,25 @@
|
|
|
72
72
|
transform:rotate(360deg);
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
-
.
|
|
75
|
+
._light_hoz7kn_6{
|
|
76
76
|
--rs-theme-dark:0;
|
|
77
77
|
}
|
|
78
|
-
.
|
|
78
|
+
._dark_hoz7kn_9{
|
|
79
79
|
--rs-theme-dark:1;
|
|
80
80
|
}
|
|
81
|
-
.
|
|
81
|
+
._flatRight_hoz7kn_13{
|
|
82
82
|
--_rs-button-top-right-border-radius-or-initial:0px;
|
|
83
83
|
--_rs-button-bottom-right-border-radius-or-initial:0px;
|
|
84
84
|
--_rs-button-top-right-multiline-border-radius-or-initial:0px;
|
|
85
85
|
--_rs-button-bottom-right-multiline-border-radius-or-initial:0px;
|
|
86
86
|
}
|
|
87
|
-
.
|
|
87
|
+
._flatLeft_hoz7kn_16{
|
|
88
88
|
--_rs-button-top-left-border-radius-or-initial:0px;
|
|
89
89
|
--_rs-button-bottom-left-border-radius-or-initial:0px;
|
|
90
90
|
--_rs-button-top-left-multiline-border-radius-or-initial:0px;
|
|
91
91
|
--_rs-button-bottom-left-multiline-border-radius-or-initial:0px;
|
|
92
92
|
}
|
|
93
|
-
.
|
|
93
|
+
._sizeXs_hoz7kn_20{
|
|
94
94
|
--_rs-typography-letter-spacing:0.0045em;
|
|
95
95
|
--_rs-typography-text-transform:initial;
|
|
96
96
|
--_rs-typography-font-variant-numeric:initial;
|
|
@@ -137,7 +137,7 @@
|
|
|
137
137
|
--_rs-button-icon-offset:8px;
|
|
138
138
|
--_rs-button-icon-margin-top:2px;
|
|
139
139
|
}
|
|
140
|
-
.
|
|
140
|
+
._sizeS_hoz7kn_23{
|
|
141
141
|
--_rs-typography-letter-spacing:0.0045em;
|
|
142
142
|
--_rs-typography-text-transform:initial;
|
|
143
143
|
--_rs-typography-font-variant-numeric:initial;
|
|
@@ -184,7 +184,7 @@
|
|
|
184
184
|
--_rs-button-icon-offset:8px;
|
|
185
185
|
--_rs-button-icon-margin-top:0px;
|
|
186
186
|
}
|
|
187
|
-
.
|
|
187
|
+
._sizeM_hoz7kn_26{
|
|
188
188
|
--_rs-typography-letter-spacing:0.0015em;
|
|
189
189
|
--_rs-typography-text-transform:initial;
|
|
190
190
|
--_rs-typography-font-variant-numeric:initial;
|
|
@@ -219,11 +219,11 @@
|
|
|
219
219
|
--_rs-typography-link-border-bottom-width-from-text:1px;
|
|
220
220
|
}
|
|
221
221
|
@media screen and (max-width: 640px){
|
|
222
|
-
.
|
|
222
|
+
._sizeM_hoz7kn_26{
|
|
223
223
|
--_rs-typography-list-li-margin-top-from-text:12px;
|
|
224
224
|
}
|
|
225
225
|
}
|
|
226
|
-
.
|
|
226
|
+
._sizeM_hoz7kn_26 {
|
|
227
227
|
--_rs-button-border-radius-base:var(
|
|
228
228
|
--rs-button-m-border-radius,
|
|
229
229
|
var(--rs-button-border-radius, 20px)
|
|
@@ -238,7 +238,7 @@
|
|
|
238
238
|
--_rs-button-icon-offset:8px;
|
|
239
239
|
--_rs-button-icon-margin-top:0px;
|
|
240
240
|
}
|
|
241
|
-
.
|
|
241
|
+
._sizeL_hoz7kn_29{
|
|
242
242
|
--_rs-typography-letter-spacing:normal;
|
|
243
243
|
--_rs-typography-text-transform:initial;
|
|
244
244
|
--_rs-typography-font-variant-numeric:initial;
|
|
@@ -273,11 +273,11 @@
|
|
|
273
273
|
--_rs-typography-link-border-bottom-width-from-text:1px;
|
|
274
274
|
}
|
|
275
275
|
@media screen and (max-width: 640px){
|
|
276
|
-
.
|
|
276
|
+
._sizeL_hoz7kn_29{
|
|
277
277
|
--_rs-typography-list-li-margin-top-from-text:16px;
|
|
278
278
|
}
|
|
279
279
|
}
|
|
280
|
-
.
|
|
280
|
+
._sizeL_hoz7kn_29 {
|
|
281
281
|
--_rs-button-border-radius-base:var(
|
|
282
282
|
--rs-button-l-border-radius,
|
|
283
283
|
var(--rs-button-border-radius, 26px)
|
|
@@ -292,7 +292,7 @@
|
|
|
292
292
|
--_rs-button-icon-offset:16px;
|
|
293
293
|
--_rs-button-icon-margin-top:0px;
|
|
294
294
|
}
|
|
295
|
-
.
|
|
295
|
+
._modeClassic_hoz7kn_33{
|
|
296
296
|
--_rs-button-inner-border-display:none;
|
|
297
297
|
--_rs-button-color:#FFFFFF;
|
|
298
298
|
--_rs-button-background:var(--_rs-color-primary);
|
|
@@ -304,7 +304,7 @@
|
|
|
304
304
|
--_rs-button-disabled-color: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), 0.5);
|
|
305
305
|
--_rs-button-disabled-background: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), 0.2);
|
|
306
306
|
}
|
|
307
|
-
.
|
|
307
|
+
._modeRock_hoz7kn_36{
|
|
308
308
|
--_rs-button-inner-border-display:none;
|
|
309
309
|
--_rs-button-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));
|
|
310
310
|
--_rs-button-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));
|
|
@@ -317,7 +317,7 @@
|
|
|
317
317
|
--_rs-button-disabled-color: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), 0.5);
|
|
318
318
|
--_rs-button-disabled-background: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), 0.2);
|
|
319
319
|
}
|
|
320
|
-
.
|
|
320
|
+
._modeTransparent_hoz7kn_39{
|
|
321
321
|
--_rs-button-inner-border-display:none;
|
|
322
322
|
--_rs-button-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));
|
|
323
323
|
--_rs-button-background: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), 0.5);
|
|
@@ -329,7 +329,7 @@
|
|
|
329
329
|
--_rs-button-disabled-color:rgba(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), 0.5);
|
|
330
330
|
--_rs-button-disabled-background: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), 0.4);
|
|
331
331
|
}
|
|
332
|
-
.
|
|
332
|
+
._modeOutline_hoz7kn_42{
|
|
333
333
|
--_rs-button-inner-border-display:block;
|
|
334
334
|
--_rs-button-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));
|
|
335
335
|
--_rs-button-background:transparent;
|
|
@@ -341,7 +341,7 @@
|
|
|
341
341
|
--_rs-button-disabled-color: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), 0.5);
|
|
342
342
|
--_rs-button-disabled-background:transparent;
|
|
343
343
|
}
|
|
344
|
-
.
|
|
344
|
+
._modeClear_hoz7kn_45{
|
|
345
345
|
--_rs-button-inner-border-display:none;
|
|
346
346
|
--_rs-button-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));
|
|
347
347
|
--_rs-button-background:transparent;
|
|
@@ -353,17 +353,17 @@
|
|
|
353
353
|
--_rs-button-disabled-color: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), 0.5);
|
|
354
354
|
--_rs-button-disabled-background:transparent;
|
|
355
355
|
}
|
|
356
|
-
.
|
|
356
|
+
._alignIconLeft_hoz7kn_49{
|
|
357
357
|
--_rs-button-icon-flex-direction:row;
|
|
358
358
|
--_rs-button-icon-position-multiplier-left:1;
|
|
359
359
|
--_rs-button-icon-position-multiplier-right:0;
|
|
360
360
|
}
|
|
361
|
-
.
|
|
361
|
+
._alignIconRight_hoz7kn_52{
|
|
362
362
|
--_rs-button-icon-flex-direction:row-reverse;
|
|
363
363
|
--_rs-button-icon-position-multiplier-left:0;
|
|
364
364
|
--_rs-button-icon-position-multiplier-right:1;
|
|
365
365
|
}
|
|
366
|
-
.
|
|
366
|
+
._main_hoz7kn_56{
|
|
367
367
|
--_rs-theme-dark:var(
|
|
368
368
|
--_rs-internal-force-theme-dark-consult-rescui-before-using,
|
|
369
369
|
var(--rs-theme-dark, 0)
|
|
@@ -373,7 +373,7 @@
|
|
|
373
373
|
--_rs-theme-light-coefficient:calc(1 - var(--_rs-theme-dark-coefficient));
|
|
374
374
|
}
|
|
375
375
|
@supports (color: color-mix(in srgb, #fff 50%, #000 50%)){
|
|
376
|
-
.
|
|
376
|
+
._main_hoz7kn_56{
|
|
377
377
|
--_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)));
|
|
378
378
|
--_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)));
|
|
379
379
|
--_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)));
|
|
@@ -382,7 +382,7 @@
|
|
|
382
382
|
}
|
|
383
383
|
}
|
|
384
384
|
@supports not (color: color-mix(in srgb, #fff 50%, #000 50%)){
|
|
385
|
-
.
|
|
385
|
+
._main_hoz7kn_56{
|
|
386
386
|
--_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);
|
|
387
387
|
--_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));
|
|
388
388
|
--_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));
|
|
@@ -390,7 +390,7 @@
|
|
|
390
390
|
--_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));
|
|
391
391
|
}
|
|
392
392
|
}
|
|
393
|
-
.
|
|
393
|
+
._main_hoz7kn_56 {
|
|
394
394
|
--_rs-button-border-radius:var(
|
|
395
395
|
--_rs-button-top-left-border-radius-or-initial,
|
|
396
396
|
var(--_rs-button-border-radius-base)
|
|
@@ -463,19 +463,19 @@
|
|
|
463
463
|
|
|
464
464
|
transition:color 100ms, background-color 100ms;
|
|
465
465
|
}
|
|
466
|
-
.
|
|
467
|
-
.
|
|
468
|
-
.
|
|
466
|
+
._main_hoz7kn_56:hover,
|
|
467
|
+
._main_hoz7kn_56:focus,
|
|
468
|
+
._main_hoz7kn_56:active{
|
|
469
469
|
outline:none;
|
|
470
470
|
|
|
471
471
|
text-decoration:none;
|
|
472
472
|
}
|
|
473
|
-
.
|
|
473
|
+
._main_hoz7kn_56:focus{
|
|
474
474
|
color:var(--_rs-button-color);
|
|
475
475
|
background:var(--_rs-button-background);
|
|
476
476
|
}
|
|
477
477
|
@media (hover: hover){
|
|
478
|
-
.
|
|
478
|
+
._main_hoz7kn_56:hover{
|
|
479
479
|
--_rs-button-border-inner-color:rgba(
|
|
480
480
|
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),
|
|
481
481
|
calc(0.3 + var(--_rs-theme-dark-coefficient, 0)*0.1)
|
|
@@ -485,21 +485,21 @@
|
|
|
485
485
|
background:var(--_rs-button-hover-background);
|
|
486
486
|
}
|
|
487
487
|
}
|
|
488
|
-
.
|
|
488
|
+
._main_hoz7kn_56:active{
|
|
489
489
|
--_rs-button-border-inner-width:2px;
|
|
490
490
|
--_rs-button-border-inner-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));
|
|
491
491
|
|
|
492
492
|
color:var(--_rs-button-color);
|
|
493
493
|
background:var(--_rs-button-active-background);
|
|
494
494
|
}
|
|
495
|
-
.
|
|
495
|
+
._main_hoz7kn_56:focus[data-focus-method='key']{
|
|
496
496
|
-webkit-box-shadow:var(--_rs-color-primary-t-dim) 0 0 0 4px;
|
|
497
497
|
box-shadow:var(--_rs-color-primary-t-dim) 0 0 0 4px;
|
|
498
498
|
}
|
|
499
|
-
.
|
|
499
|
+
._main_hoz7kn_56:active:not(:hover):focus[data-focus-method='key']{
|
|
500
500
|
background:var(--_rs-button-active-focus-visible-no-hover-background);
|
|
501
501
|
}
|
|
502
|
-
.
|
|
502
|
+
._main_hoz7kn_56._disabled_hoz7kn_131{
|
|
503
503
|
--_rs-button-border-inner-color:rgba(
|
|
504
504
|
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),
|
|
505
505
|
0.2
|
|
@@ -508,10 +508,10 @@
|
|
|
508
508
|
color:var(--_rs-button-disabled-color);
|
|
509
509
|
background:var(--_rs-button-disabled-background);
|
|
510
510
|
}
|
|
511
|
-
.
|
|
511
|
+
._main_hoz7kn_56._busy_hoz7kn_141{
|
|
512
512
|
pointer-events:none;
|
|
513
513
|
}
|
|
514
|
-
.
|
|
514
|
+
._main_hoz7kn_56._busyOverlay_hoz7kn_145{
|
|
515
515
|
display:-webkit-inline-box;
|
|
516
516
|
display:-ms-inline-flexbox;
|
|
517
517
|
display:inline-flex;
|
|
@@ -522,11 +522,11 @@
|
|
|
522
522
|
-ms-flex-align:center;
|
|
523
523
|
align-items:center;
|
|
524
524
|
}
|
|
525
|
-
.
|
|
526
|
-
.
|
|
527
|
-
.
|
|
528
|
-
.
|
|
529
|
-
.
|
|
525
|
+
._main_hoz7kn_56._busyOverlay_hoz7kn_145,
|
|
526
|
+
._main_hoz7kn_56._busyOverlay_hoz7kn_145:hover,
|
|
527
|
+
._main_hoz7kn_56._busyOverlay_hoz7kn_145:active,
|
|
528
|
+
._main_hoz7kn_56._busyOverlay_hoz7kn_145._disabled_hoz7kn_131,
|
|
529
|
+
._main_hoz7kn_56._busyOverlay_hoz7kn_145:focus{
|
|
530
530
|
-webkit-user-select:none;
|
|
531
531
|
-moz-user-select:none;
|
|
532
532
|
-ms-user-select:none;
|
|
@@ -534,7 +534,7 @@
|
|
|
534
534
|
|
|
535
535
|
color:transparent;
|
|
536
536
|
}
|
|
537
|
-
.
|
|
537
|
+
._main_hoz7kn_56::before{
|
|
538
538
|
position:absolute;
|
|
539
539
|
top:0;
|
|
540
540
|
right:0;
|
|
@@ -553,16 +553,16 @@
|
|
|
553
553
|
|
|
554
554
|
transition:border-color 100ms;
|
|
555
555
|
}
|
|
556
|
-
.
|
|
556
|
+
._disabled_hoz7kn_131{
|
|
557
557
|
pointer-events:none;
|
|
558
558
|
}
|
|
559
|
-
.
|
|
559
|
+
._allowMultiline_hoz7kn_185{
|
|
560
560
|
white-space:normal;
|
|
561
561
|
}
|
|
562
|
-
.
|
|
562
|
+
._multiline_hoz7kn_189{
|
|
563
563
|
border-radius:var(--_rs-button-multiline-border-radius);
|
|
564
564
|
}
|
|
565
|
-
.
|
|
565
|
+
._withoutText_hoz7kn_193{
|
|
566
566
|
display:-webkit-inline-box;
|
|
567
567
|
display:-ms-inline-flexbox;
|
|
568
568
|
display:inline-flex;
|
|
@@ -575,7 +575,7 @@
|
|
|
575
575
|
|
|
576
576
|
padding:var(--_rs-button-vertical-padding);
|
|
577
577
|
}
|
|
578
|
-
.
|
|
578
|
+
._withIcon_hoz7kn_201{
|
|
579
579
|
display:-webkit-inline-box;
|
|
580
580
|
display:-ms-inline-flexbox;
|
|
581
581
|
display:inline-flex;
|
|
@@ -590,17 +590,17 @@
|
|
|
590
590
|
-ms-flex-align:center;
|
|
591
591
|
align-items:center;
|
|
592
592
|
}
|
|
593
|
-
.
|
|
593
|
+
._withIcon_hoz7kn_201 ._icon_hoz7kn_207{
|
|
594
594
|
width:auto;
|
|
595
595
|
height:var(--_rs-button-icon-size);
|
|
596
596
|
|
|
597
597
|
margin:var(--_rs-button-icon-margin-top) var(--_rs-button-icon-margin-right) 0 var(--_rs-button-icon-margin-left);
|
|
598
598
|
fill:currentColor;
|
|
599
599
|
}
|
|
600
|
-
.
|
|
600
|
+
._withIcon_hoz7kn_201._withoutText_hoz7kn_193 ._icon_hoz7kn_207{
|
|
601
601
|
margin:0;
|
|
602
602
|
}
|
|
603
|
-
.
|
|
603
|
+
._busyIcon_hoz7kn_221{
|
|
604
604
|
position:absolute;
|
|
605
605
|
top:50%;
|
|
606
606
|
left:50%;
|
|
@@ -609,21 +609,21 @@
|
|
|
609
609
|
|
|
610
610
|
transform:translate(-50%, -50%);
|
|
611
611
|
}
|
|
612
|
-
.
|
|
612
|
+
._main_hoz7kn_56 ._busyIcon_hoz7kn_221{
|
|
613
613
|
color:var(--_rs-button-color);
|
|
614
614
|
}
|
|
615
|
-
.
|
|
615
|
+
._main_hoz7kn_56._disabled_hoz7kn_131 ._busyIcon_hoz7kn_221{
|
|
616
616
|
color:var(--_rs-button-disabled-color);
|
|
617
617
|
}
|
|
618
|
-
.
|
|
618
|
+
._shiftedLeft_hoz7kn_238{
|
|
619
619
|
margin-left:calc(var(--_rs-button-horizontal-padding)*-1);
|
|
620
620
|
}
|
|
621
|
-
.
|
|
621
|
+
._shiftedRight_hoz7kn_241{
|
|
622
622
|
margin-right:calc(var(--_rs-button-horizontal-padding)*-1);
|
|
623
623
|
}
|
|
624
|
-
.
|
|
624
|
+
._shiftedTop_hoz7kn_244{
|
|
625
625
|
margin-top:calc(var(--_rs-button-vertical-padding)*-1);
|
|
626
626
|
}
|
|
627
|
-
.
|
|
627
|
+
._shiftedBottom_hoz7kn_247{
|
|
628
628
|
margin-bottom:calc(var(--_rs-button-vertical-padding)*-1);
|
|
629
629
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rescui/button",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.4",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "JetBrains",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@babel/runtime-corejs3": "^7.14.0",
|
|
18
|
-
"@rescui/use-resize-observer": "^0.2.
|
|
18
|
+
"@rescui/use-resize-observer": "^0.2.4",
|
|
19
19
|
"classnames": "^2.2.6",
|
|
20
20
|
"core-js": "^3.9.1"
|
|
21
21
|
},
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
"react": ">=16.8.0 <19"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@rescui/colors": "^0.2.
|
|
29
|
-
"@rescui/icons": "^0.16.
|
|
30
|
-
"@rescui/scripts": "^0.3.
|
|
31
|
-
"@rescui/typography": "^0.
|
|
28
|
+
"@rescui/colors": "^0.2.5",
|
|
29
|
+
"@rescui/icons": "^0.16.7",
|
|
30
|
+
"@rescui/scripts": "^0.3.4",
|
|
31
|
+
"@rescui/typography": "^0.18.1",
|
|
32
32
|
"@rescui/visual-regression": "^0.1.2",
|
|
33
33
|
"@types/classnames": "^2.2.11"
|
|
34
34
|
},
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"build-pcss-api": "rescui-scripts build-pcss-api --file public-api.p.css"
|
|
38
38
|
},
|
|
39
39
|
"nx": {},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "3de71c679695fe3ca490baeaa24ab2331eb2e3a8"
|
|
41
41
|
}
|