@rescui/button 0.26.0 → 0.27.1
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 +12 -12
- package/lib/button.p.module.css.js +1 -1
- package/lib/index.css +81 -79
- package/package.json +6 -6
|
@@ -1,16 +1,16 @@
|
|
|
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_7vq2bk_4",
|
|
3
|
+
"sizeXS": "_sizeXS_7vq2bk_14",
|
|
4
|
+
"sizeS": "_sizeS_7vq2bk_18",
|
|
5
|
+
"sizeM": "_sizeM_7vq2bk_22",
|
|
6
|
+
"sizeL": "_sizeL_7vq2bk_26",
|
|
7
|
+
"light": "_light_7vq2bk_30",
|
|
8
|
+
"dark": "_dark_7vq2bk_34",
|
|
9
|
+
"allVariants": "_allVariants_7vq2bk_48",
|
|
10
|
+
"variant16": "_variant16_7vq2bk_53",
|
|
11
|
+
"variant20": "_variant20_7vq2bk_54",
|
|
12
|
+
"variant24": "_variant24_7vq2bk_55",
|
|
13
|
+
"variant28": "_variant28_7vq2bk_58"
|
|
14
14
|
};
|
|
15
15
|
|
|
16
16
|
export { styles as default };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var styles = {"light":"
|
|
1
|
+
var styles = {"light":"_light_1vdkkms_6","dark":"_dark_1vdkkms_9","flatRight":"_flatRight_1vdkkms_13","flatLeft":"_flatLeft_1vdkkms_16","sizeXs":"_sizeXs_1vdkkms_20","sizeS":"_sizeS_1vdkkms_23","sizeM":"_sizeM_1vdkkms_26","sizeL":"_sizeL_1vdkkms_29","modeClassic":"_modeClassic_1vdkkms_33","modeRock":"_modeRock_1vdkkms_36","modeTransparent":"_modeTransparent_1vdkkms_39","modeOutline":"_modeOutline_1vdkkms_42","modeClear":"_modeClear_1vdkkms_45","alignIconLeft":"_alignIconLeft_1vdkkms_49","alignIconLeftEdge":"_alignIconLeftEdge_1vdkkms_52","alignIconRight":"_alignIconRight_1vdkkms_55","alignIconRightEdge":"_alignIconRightEdge_1vdkkms_58","main":"_main_1vdkkms_62","disabled":"_disabled_1vdkkms_141","busy":"_busy_1vdkkms_151","busyOverlay":"_busyOverlay_1vdkkms_155","icon":"_icon_1vdkkms_190","allowMultiline":"_allowMultiline_1vdkkms_205","content":"_content_1vdkkms_209","multiline":"_multiline_1vdkkms_215","withoutText":"_withoutText_1vdkkms_219","busyIcon":"_busyIcon_1vdkkms_224","shiftedLeft":"_shiftedLeft_1vdkkms_245","shiftedRight":"_shiftedRight_1vdkkms_248","shiftedTop":"_shiftedTop_1vdkkms_251","shiftedBottom":"_shiftedBottom_1vdkkms_254"};
|
|
2
2
|
|
|
3
3
|
export { styles as default };
|
package/lib/index.css
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
inherits:true;
|
|
4
4
|
initial-value:0;
|
|
5
5
|
}
|
|
6
|
-
.
|
|
6
|
+
._icon_7vq2bk_4{
|
|
7
7
|
--_rs-theme-dark:var(
|
|
8
8
|
--_rs-internal-force-theme-dark-consult-rescui-before-using,
|
|
9
9
|
var(--rs-theme-dark, 0)
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
--_rs-theme-light-coefficient:calc(1 - var(--_rs-theme-dark-coefficient));
|
|
14
14
|
}
|
|
15
15
|
@supports (color: color-mix(in srgb, #fff 50%, #000 50%)){
|
|
16
|
-
.
|
|
16
|
+
._icon_7vq2bk_4{
|
|
17
17
|
--_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)));
|
|
18
18
|
--_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)));
|
|
19
19
|
--_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)));
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
@supports not (color: color-mix(in srgb, #fff 50%, #000 50%)){
|
|
25
|
-
.
|
|
25
|
+
._icon_7vq2bk_4{
|
|
26
26
|
--_rs-color-primary:rgb(calc(107 * var(--_rs-theme-light-coefficient, 1) + 132 * var(--_rs-theme-dark-coefficient, 0)), calc(87 * var(--_rs-theme-light-coefficient, 1) + 115 * var(--_rs-theme-dark-coefficient, 0)), 255);
|
|
27
27
|
--_rs-color-primary-dim:rgb(calc(137 * var(--_rs-theme-light-coefficient, 1) + 111 * var(--_rs-theme-dark-coefficient, 0)), calc(121 * var(--_rs-theme-light-coefficient, 1) + 97 * var(--_rs-theme-dark-coefficient, 0)), calc(255 * var(--_rs-theme-light-coefficient, 1) + 210 * var(--_rs-theme-dark-coefficient, 0)));
|
|
28
28
|
--_rs-color-primary-fog:rgb(calc(225 * var(--_rs-theme-light-coefficient, 1) + 46 * var(--_rs-theme-dark-coefficient, 0)), calc(221 * var(--_rs-theme-light-coefficient, 1) + 43 * var(--_rs-theme-dark-coefficient, 0)), calc(255 * var(--_rs-theme-light-coefficient, 1) + 73 * var(--_rs-theme-dark-coefficient, 0)));
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
--_rs-color-primary-t-fog:rgba(calc(107 * var(--_rs-theme-light-coefficient, 1) + 132 * var(--_rs-theme-dark-coefficient, 0)), calc(87 * var(--_rs-theme-light-coefficient, 1) + 115 * var(--_rs-theme-dark-coefficient, 0)), 255, calc(.2 * var(--_rs-theme-light-coefficient, 1) + .3 * var(--_rs-theme-dark-coefficient, 0)));
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
|
-
.
|
|
33
|
+
._icon_7vq2bk_4{
|
|
34
34
|
|
|
35
35
|
fill:var(--_rs-icons-themed-fill-or-initial, currentcolor);
|
|
36
36
|
|
|
@@ -38,27 +38,27 @@
|
|
|
38
38
|
height:var(--rs-icons-height, var(--_rs-icons-height));
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
.
|
|
41
|
+
._sizeXS_7vq2bk_14{
|
|
42
42
|
--_rs-icons-height:16px;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
.
|
|
45
|
+
._sizeS_7vq2bk_18{
|
|
46
46
|
--_rs-icons-height:20px;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
.
|
|
49
|
+
._sizeM_7vq2bk_22{
|
|
50
50
|
--_rs-icons-height:24px;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
.
|
|
53
|
+
._sizeL_7vq2bk_26{
|
|
54
54
|
--_rs-icons-height:28px;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
.
|
|
57
|
+
._light_7vq2bk_30{
|
|
58
58
|
--rs-theme-dark:0;
|
|
59
59
|
--_rs-icons-themed-fill-or-initial:rgb(calc(25 + 230 * var(--_rs-theme-dark-coefficient, 0)), calc(25 + 230 * var(--_rs-theme-dark-coefficient, 0)), calc(28 + 227 * var(--_rs-theme-dark-coefficient, 0)));
|
|
60
60
|
}
|
|
61
|
-
.
|
|
61
|
+
._dark_7vq2bk_34{
|
|
62
62
|
--rs-theme-dark:1;
|
|
63
63
|
--_rs-icons-themed-fill-or-initial:rgb(calc(25 + 230 * var(--_rs-theme-dark-coefficient, 0)), calc(25 + 230 * var(--_rs-theme-dark-coefficient, 0)), calc(28 + 227 * var(--_rs-theme-dark-coefficient, 0)));
|
|
64
64
|
}
|
|
@@ -72,40 +72,40 @@
|
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
.
|
|
75
|
+
._allVariants_7vq2bk_48{
|
|
76
76
|
aspect-ratio:var(--rs-icon-ar-width, 1) / var(--rs-icon-ar-height, 1);
|
|
77
77
|
container:rs-icon / size;
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
.
|
|
81
|
-
.
|
|
82
|
-
.
|
|
80
|
+
._variant16_7vq2bk_53,
|
|
81
|
+
._variant20_7vq2bk_54,
|
|
82
|
+
._variant24_7vq2bk_55{
|
|
83
83
|
display:none;
|
|
84
84
|
}
|
|
85
|
-
.
|
|
85
|
+
._variant28_7vq2bk_58{
|
|
86
86
|
display:block;
|
|
87
87
|
}
|
|
88
88
|
@container rs-icon (max-height: 24px){
|
|
89
|
-
.
|
|
89
|
+
._variant24_7vq2bk_55{
|
|
90
90
|
display:block;
|
|
91
91
|
}
|
|
92
|
-
.
|
|
92
|
+
._variant28_7vq2bk_58{
|
|
93
93
|
display:none;
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
@container rs-icon (max-height: 20px){
|
|
97
|
-
.
|
|
97
|
+
._variant20_7vq2bk_54{
|
|
98
98
|
display:block;
|
|
99
99
|
}
|
|
100
|
-
.
|
|
100
|
+
._variant24_7vq2bk_55{
|
|
101
101
|
display:none;
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
104
|
@container rs-icon (max-height: 16px){
|
|
105
|
-
.
|
|
105
|
+
._variant16_7vq2bk_53{
|
|
106
106
|
display:block;
|
|
107
107
|
}
|
|
108
|
-
.
|
|
108
|
+
._variant20_7vq2bk_54{
|
|
109
109
|
display:none;
|
|
110
110
|
}
|
|
111
111
|
}
|
|
@@ -116,27 +116,27 @@
|
|
|
116
116
|
initial-value:0;
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
.
|
|
119
|
+
._light_1vdkkms_6{
|
|
120
120
|
--rs-theme-dark:0;
|
|
121
121
|
}
|
|
122
|
-
.
|
|
122
|
+
._dark_1vdkkms_9{
|
|
123
123
|
--rs-theme-dark:1;
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
-
.
|
|
126
|
+
._flatRight_1vdkkms_13{
|
|
127
127
|
--_rs-button-top-right-border-radius-or-initial:0px;
|
|
128
128
|
--_rs-button-bottom-right-border-radius-or-initial:0px;
|
|
129
129
|
--_rs-button-top-right-multiline-border-radius-or-initial:0px;
|
|
130
130
|
--_rs-button-bottom-right-multiline-border-radius-or-initial:0px;
|
|
131
131
|
}
|
|
132
|
-
.
|
|
132
|
+
._flatLeft_1vdkkms_16{
|
|
133
133
|
--_rs-button-top-left-border-radius-or-initial:0px;
|
|
134
134
|
--_rs-button-bottom-left-border-radius-or-initial:0px;
|
|
135
135
|
--_rs-button-top-left-multiline-border-radius-or-initial:0px;
|
|
136
136
|
--_rs-button-bottom-left-multiline-border-radius-or-initial:0px;
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
-
.
|
|
139
|
+
._sizeXs_1vdkkms_20{
|
|
140
140
|
--_rs-button-border-radius-base:var(
|
|
141
141
|
--rs-button-xs-border-radius,
|
|
142
142
|
var(--rs-button-border-radius, 4px)
|
|
@@ -152,7 +152,7 @@
|
|
|
152
152
|
--_rs-button-icon-offset:4px;
|
|
153
153
|
}
|
|
154
154
|
|
|
155
|
-
.
|
|
155
|
+
._sizeXs_1vdkkms_20 [data-rs-internal='button__content']{
|
|
156
156
|
--_rs-typography-letter-spacing:var(--rs-text-3-letter-spacing, 0.0045em);
|
|
157
157
|
--_rs-typography-text-transform:initial;
|
|
158
158
|
--_rs-typography-font-variant-numeric:initial;
|
|
@@ -187,7 +187,7 @@
|
|
|
187
187
|
--_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
|
|
188
188
|
--_rs-typography-link-border-bottom-width-from-text:1px;
|
|
189
189
|
}
|
|
190
|
-
.
|
|
190
|
+
._sizeS_1vdkkms_23{
|
|
191
191
|
--_rs-button-border-radius-base:var(
|
|
192
192
|
--rs-button-s-border-radius,
|
|
193
193
|
var(--rs-button-border-radius, 16px)
|
|
@@ -202,7 +202,7 @@
|
|
|
202
202
|
--_rs-button-icon-size:20px;
|
|
203
203
|
--_rs-button-icon-offset:8px;
|
|
204
204
|
}
|
|
205
|
-
.
|
|
205
|
+
._sizeS_1vdkkms_23 [data-rs-internal='button__content']{
|
|
206
206
|
--_rs-typography-letter-spacing:var(--rs-text-3-letter-spacing, 0.0045em);
|
|
207
207
|
--_rs-typography-text-transform:initial;
|
|
208
208
|
--_rs-typography-font-variant-numeric:initial;
|
|
@@ -237,7 +237,7 @@
|
|
|
237
237
|
--_rs-typography-link-external-standalone-border-offset-from-text-base:1.02em;
|
|
238
238
|
--_rs-typography-link-border-bottom-width-from-text:1px;
|
|
239
239
|
}
|
|
240
|
-
.
|
|
240
|
+
._sizeM_1vdkkms_26{
|
|
241
241
|
--_rs-button-border-radius-base:var(
|
|
242
242
|
--rs-button-m-border-radius,
|
|
243
243
|
var(--rs-button-border-radius, 20px)
|
|
@@ -252,7 +252,7 @@
|
|
|
252
252
|
--_rs-button-icon-size:24px;
|
|
253
253
|
--_rs-button-icon-offset:8px;
|
|
254
254
|
}
|
|
255
|
-
.
|
|
255
|
+
._sizeM_1vdkkms_26 [data-rs-internal='button__content']{
|
|
256
256
|
--_rs-typography-letter-spacing:var(--rs-text-2-letter-spacing, 0.0015em);
|
|
257
257
|
--_rs-typography-text-transform:initial;
|
|
258
258
|
--_rs-typography-font-variant-numeric:initial;
|
|
@@ -291,11 +291,11 @@
|
|
|
291
291
|
--_rs-typography-link-border-bottom-width-from-text:1px;
|
|
292
292
|
}
|
|
293
293
|
@media screen and (max-width: 640px){
|
|
294
|
-
.
|
|
294
|
+
._sizeM_1vdkkms_26 [data-rs-internal='button__content']{
|
|
295
295
|
--_rs-typography-text-2-sm-list-li-margin-top-from-text:12px;
|
|
296
296
|
}
|
|
297
297
|
}
|
|
298
|
-
.
|
|
298
|
+
._sizeL_1vdkkms_29{
|
|
299
299
|
--_rs-button-border-radius-base:var(
|
|
300
300
|
--rs-button-l-border-radius,
|
|
301
301
|
var(--rs-button-border-radius, 26px)
|
|
@@ -310,7 +310,7 @@
|
|
|
310
310
|
--_rs-button-icon-size:28px;
|
|
311
311
|
--_rs-button-icon-offset:16px;
|
|
312
312
|
}
|
|
313
|
-
.
|
|
313
|
+
._sizeL_1vdkkms_29 [data-rs-internal='button__content']{
|
|
314
314
|
--_rs-typography-letter-spacing:var(--rs-text-1-letter-spacing, normal);
|
|
315
315
|
--_rs-typography-text-transform:initial;
|
|
316
316
|
--_rs-typography-font-variant-numeric:initial;
|
|
@@ -349,12 +349,12 @@
|
|
|
349
349
|
--_rs-typography-link-border-bottom-width-from-text:1px;
|
|
350
350
|
}
|
|
351
351
|
@media screen and (max-width: 640px){
|
|
352
|
-
.
|
|
352
|
+
._sizeL_1vdkkms_29 [data-rs-internal='button__content']{
|
|
353
353
|
--_rs-typography-text-1-sm-list-li-margin-top-from-text:16px;
|
|
354
354
|
}
|
|
355
355
|
}
|
|
356
356
|
|
|
357
|
-
.
|
|
357
|
+
._modeClassic_1vdkkms_33{
|
|
358
358
|
--_rs-button-inner-border-display:none;
|
|
359
359
|
--_rs-button-color:rgb(
|
|
360
360
|
calc(255 - 230 * var(--rs-button-flip-text-color, 0)),
|
|
@@ -370,7 +370,7 @@
|
|
|
370
370
|
--_rs-button-disabled-color:rgba(calc(25 + 230 * var(--_rs-theme-dark-coefficient, 0)), calc(25 + 230 * var(--_rs-theme-dark-coefficient, 0)), calc(28 + 227 * var(--_rs-theme-dark-coefficient, 0)), 0.5);
|
|
371
371
|
--_rs-button-disabled-background:rgba(calc(25 + 230 * var(--_rs-theme-dark-coefficient, 0)), calc(25 + 230 * var(--_rs-theme-dark-coefficient, 0)), calc(28 + 227 * var(--_rs-theme-dark-coefficient, 0)), 0.2);
|
|
372
372
|
}
|
|
373
|
-
.
|
|
373
|
+
._modeRock_1vdkkms_36{
|
|
374
374
|
--_rs-button-inner-border-display:none;
|
|
375
375
|
--_rs-button-color:rgb(calc(255 - 230 * var(--_rs-theme-dark-coefficient, 0)), calc(255 - 230 * var(--_rs-theme-dark-coefficient, 0)), calc(255 - 227 * var(--_rs-theme-dark-coefficient, 0)));
|
|
376
376
|
--_rs-button-background:rgb(calc(25 + 230 * var(--_rs-theme-dark-coefficient, 0)), calc(25 + 230 * var(--_rs-theme-dark-coefficient, 0)), calc(28 + 227 * var(--_rs-theme-dark-coefficient, 0)));
|
|
@@ -383,7 +383,7 @@
|
|
|
383
383
|
--_rs-button-disabled-color:rgba(calc(25 + 230 * var(--_rs-theme-dark-coefficient, 0)), calc(25 + 230 * var(--_rs-theme-dark-coefficient, 0)), calc(28 + 227 * var(--_rs-theme-dark-coefficient, 0)), 0.5);
|
|
384
384
|
--_rs-button-disabled-background:rgba(calc(25 + 230 * var(--_rs-theme-dark-coefficient, 0)), calc(25 + 230 * var(--_rs-theme-dark-coefficient, 0)), calc(28 + 227 * var(--_rs-theme-dark-coefficient, 0)), 0.2);
|
|
385
385
|
}
|
|
386
|
-
.
|
|
386
|
+
._modeTransparent_1vdkkms_39{
|
|
387
387
|
--_rs-button-inner-border-display:none;
|
|
388
388
|
--_rs-button-color:rgb(calc(255 - 230 * var(--_rs-theme-dark-coefficient, 0)), calc(255 - 230 * var(--_rs-theme-dark-coefficient, 0)), calc(255 - 227 * var(--_rs-theme-dark-coefficient, 0)));
|
|
389
389
|
--_rs-button-background:rgba(calc(25 + 230 * var(--_rs-theme-dark-coefficient, 0)), calc(25 + 230 * var(--_rs-theme-dark-coefficient, 0)), calc(28 + 227 * var(--_rs-theme-dark-coefficient, 0)), 0.5);
|
|
@@ -395,7 +395,7 @@
|
|
|
395
395
|
--_rs-button-disabled-color:rgba(calc(255 - 230 * var(--_rs-theme-dark-coefficient, 0)), calc(255 - 230 * var(--_rs-theme-dark-coefficient, 0)), calc(255 - 227 * var(--_rs-theme-dark-coefficient, 0)), 0.5);
|
|
396
396
|
--_rs-button-disabled-background:rgba(calc(25 + 230 * var(--_rs-theme-dark-coefficient, 0)), calc(25 + 230 * var(--_rs-theme-dark-coefficient, 0)), calc(28 + 227 * var(--_rs-theme-dark-coefficient, 0)), 0.4);
|
|
397
397
|
}
|
|
398
|
-
.
|
|
398
|
+
._modeOutline_1vdkkms_42{
|
|
399
399
|
--_rs-button-inner-border-display:block;
|
|
400
400
|
--_rs-button-color:rgb(calc(25 + 230 * var(--_rs-theme-dark-coefficient, 0)), calc(25 + 230 * var(--_rs-theme-dark-coefficient, 0)), calc(28 + 227 * var(--_rs-theme-dark-coefficient, 0)));
|
|
401
401
|
--_rs-button-background:transparent;
|
|
@@ -407,7 +407,7 @@
|
|
|
407
407
|
--_rs-button-disabled-color:rgba(calc(25 + 230 * var(--_rs-theme-dark-coefficient, 0)), calc(25 + 230 * var(--_rs-theme-dark-coefficient, 0)), calc(28 + 227 * var(--_rs-theme-dark-coefficient, 0)), 0.5);
|
|
408
408
|
--_rs-button-disabled-background:transparent;
|
|
409
409
|
}
|
|
410
|
-
.
|
|
410
|
+
._modeClear_1vdkkms_45{
|
|
411
411
|
--_rs-button-inner-border-display:none;
|
|
412
412
|
--_rs-button-color:rgb(calc(25 + 230 * var(--_rs-theme-dark-coefficient, 0)), calc(25 + 230 * var(--_rs-theme-dark-coefficient, 0)), calc(28 + 227 * var(--_rs-theme-dark-coefficient, 0)));
|
|
413
413
|
--_rs-button-background:transparent;
|
|
@@ -420,24 +420,24 @@
|
|
|
420
420
|
--_rs-button-disabled-background:transparent;
|
|
421
421
|
}
|
|
422
422
|
|
|
423
|
-
.
|
|
423
|
+
._alignIconLeft_1vdkkms_49{
|
|
424
424
|
--_rs-button-icon-flex-direction:row;
|
|
425
425
|
--_rs-button-content-grow:0;
|
|
426
426
|
}
|
|
427
|
-
.
|
|
427
|
+
._alignIconLeftEdge_1vdkkms_52{
|
|
428
428
|
--_rs-button-icon-flex-direction:row;
|
|
429
429
|
--_rs-button-content-grow:1;
|
|
430
430
|
}
|
|
431
|
-
.
|
|
431
|
+
._alignIconRight_1vdkkms_55{
|
|
432
432
|
--_rs-button-icon-flex-direction:row-reverse;
|
|
433
433
|
--_rs-button-content-grow:0;
|
|
434
434
|
}
|
|
435
|
-
.
|
|
435
|
+
._alignIconRightEdge_1vdkkms_58{
|
|
436
436
|
--_rs-button-icon-flex-direction:row-reverse;
|
|
437
437
|
--_rs-button-content-grow:1;
|
|
438
438
|
}
|
|
439
439
|
|
|
440
|
-
.
|
|
440
|
+
._main_1vdkkms_62{
|
|
441
441
|
--_rs-theme-dark:var(
|
|
442
442
|
--_rs-internal-force-theme-dark-consult-rescui-before-using,
|
|
443
443
|
var(--rs-theme-dark, 0)
|
|
@@ -449,7 +449,7 @@
|
|
|
449
449
|
|
|
450
450
|
@supports (color: color-mix(in srgb, #fff 50%, #000 50%)){
|
|
451
451
|
|
|
452
|
-
.
|
|
452
|
+
._main_1vdkkms_62{
|
|
453
453
|
--_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)));
|
|
454
454
|
--_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)));
|
|
455
455
|
--_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)));
|
|
@@ -460,7 +460,7 @@
|
|
|
460
460
|
|
|
461
461
|
@supports not (color: color-mix(in srgb, #fff 50%, #000 50%)){
|
|
462
462
|
|
|
463
|
-
.
|
|
463
|
+
._main_1vdkkms_62{
|
|
464
464
|
--_rs-color-primary:rgb(calc(107 * var(--_rs-theme-light-coefficient, 1) + 132 * var(--_rs-theme-dark-coefficient, 0)), calc(87 * var(--_rs-theme-light-coefficient, 1) + 115 * var(--_rs-theme-dark-coefficient, 0)), 255);
|
|
465
465
|
--_rs-color-primary-dim:rgb(calc(137 * var(--_rs-theme-light-coefficient, 1) + 111 * var(--_rs-theme-dark-coefficient, 0)), calc(121 * var(--_rs-theme-light-coefficient, 1) + 97 * var(--_rs-theme-dark-coefficient, 0)), calc(255 * var(--_rs-theme-light-coefficient, 1) + 210 * var(--_rs-theme-dark-coefficient, 0)));
|
|
466
466
|
--_rs-color-primary-fog:rgb(calc(225 * var(--_rs-theme-light-coefficient, 1) + 46 * var(--_rs-theme-dark-coefficient, 0)), calc(221 * var(--_rs-theme-light-coefficient, 1) + 43 * var(--_rs-theme-dark-coefficient, 0)), calc(255 * var(--_rs-theme-light-coefficient, 1) + 73 * var(--_rs-theme-dark-coefficient, 0)));
|
|
@@ -469,7 +469,7 @@
|
|
|
469
469
|
}
|
|
470
470
|
}
|
|
471
471
|
|
|
472
|
-
.
|
|
472
|
+
._main_1vdkkms_62 {
|
|
473
473
|
--_rs-button-background-final:var(
|
|
474
474
|
--_rs-button-background-from-state-active-focus-visible-no-hover,
|
|
475
475
|
var(
|
|
@@ -550,21 +550,21 @@
|
|
|
550
550
|
column-gap:var(--_rs-button-icon-offset);
|
|
551
551
|
}
|
|
552
552
|
|
|
553
|
-
.
|
|
554
|
-
.
|
|
555
|
-
.
|
|
553
|
+
._main_1vdkkms_62:hover,
|
|
554
|
+
._main_1vdkkms_62:focus,
|
|
555
|
+
._main_1vdkkms_62:active{
|
|
556
556
|
outline:none;
|
|
557
557
|
|
|
558
558
|
text-decoration:none;
|
|
559
559
|
}
|
|
560
560
|
|
|
561
|
-
.
|
|
561
|
+
._main_1vdkkms_62:focus{
|
|
562
562
|
color:var(--_rs-button-color);
|
|
563
563
|
background:var(--_rs-button-background-final);
|
|
564
564
|
}
|
|
565
565
|
|
|
566
566
|
@media (hover: hover){
|
|
567
|
-
.
|
|
567
|
+
._main_1vdkkms_62:hover{
|
|
568
568
|
--_rs-button-border-inner-color:rgba(
|
|
569
569
|
calc(25 + 230 * var(--_rs-theme-dark-coefficient, 0)), calc(25 + 230 * var(--_rs-theme-dark-coefficient, 0)), calc(28 + 227 * var(--_rs-theme-dark-coefficient, 0)),
|
|
570
570
|
calc(.3 + .1 * var(--_rs-theme-dark-coefficient, 0))
|
|
@@ -573,7 +573,7 @@
|
|
|
573
573
|
}
|
|
574
574
|
}
|
|
575
575
|
|
|
576
|
-
.
|
|
576
|
+
._main_1vdkkms_62:active{
|
|
577
577
|
--_rs-button-border-inner-width:2px;
|
|
578
578
|
--_rs-button-border-inner-color:rgb(calc(25 + 230 * var(--_rs-theme-dark-coefficient, 0)), calc(25 + 230 * var(--_rs-theme-dark-coefficient, 0)), calc(28 + 227 * var(--_rs-theme-dark-coefficient, 0)));
|
|
579
579
|
--_rs-button-background-from-state-active:var(
|
|
@@ -581,19 +581,21 @@
|
|
|
581
581
|
);
|
|
582
582
|
}
|
|
583
583
|
|
|
584
|
-
.
|
|
584
|
+
._main_1vdkkms_62:focus-visible,
|
|
585
|
+
._main_1vdkkms_62:focus[data-focus-method='key']{
|
|
585
586
|
--_rs-button-box-shadow-from-state-focus-visible:var(
|
|
586
587
|
--_rs-color-primary-t-dim
|
|
587
588
|
) 0 0 0 4px;
|
|
588
589
|
}
|
|
589
590
|
|
|
590
|
-
.
|
|
591
|
+
._main_1vdkkms_62:active:not(:hover):focus-visible,
|
|
592
|
+
._main_1vdkkms_62:active:not(:hover):focus[data-focus-method='key']{
|
|
591
593
|
--_rs-button-background-from-state-active-focus-visible-no-hover:var(
|
|
592
594
|
--_rs-button-active-focus-visible-no-hover-background
|
|
593
595
|
);
|
|
594
596
|
}
|
|
595
597
|
|
|
596
|
-
.
|
|
598
|
+
._main_1vdkkms_62._disabled_1vdkkms_141{
|
|
597
599
|
--_rs-button-border-inner-color:rgba(
|
|
598
600
|
calc(25 + 230 * var(--_rs-theme-dark-coefficient, 0)), calc(25 + 230 * var(--_rs-theme-dark-coefficient, 0)), calc(28 + 227 * var(--_rs-theme-dark-coefficient, 0)),
|
|
599
601
|
0.2
|
|
@@ -603,28 +605,28 @@
|
|
|
603
605
|
background:var(--_rs-button-disabled-background);
|
|
604
606
|
}
|
|
605
607
|
|
|
606
|
-
.
|
|
608
|
+
._main_1vdkkms_62._busy_1vdkkms_151{
|
|
607
609
|
pointer-events:none;
|
|
608
610
|
}
|
|
609
611
|
|
|
610
|
-
.
|
|
612
|
+
._main_1vdkkms_62._busyOverlay_1vdkkms_155{
|
|
611
613
|
display:inline-flex;
|
|
612
614
|
justify-content:center;
|
|
613
615
|
align-items:center;
|
|
614
616
|
}
|
|
615
617
|
|
|
616
|
-
.
|
|
617
|
-
.
|
|
618
|
-
.
|
|
619
|
-
.
|
|
620
|
-
.
|
|
618
|
+
._main_1vdkkms_62._busyOverlay_1vdkkms_155,
|
|
619
|
+
._main_1vdkkms_62._busyOverlay_1vdkkms_155:hover,
|
|
620
|
+
._main_1vdkkms_62._busyOverlay_1vdkkms_155:active,
|
|
621
|
+
._main_1vdkkms_62._busyOverlay_1vdkkms_155._disabled_1vdkkms_141,
|
|
622
|
+
._main_1vdkkms_62._busyOverlay_1vdkkms_155:focus{
|
|
621
623
|
-webkit-user-select:none;
|
|
622
624
|
user-select:none;
|
|
623
625
|
|
|
624
626
|
color:transparent;
|
|
625
627
|
}
|
|
626
628
|
|
|
627
|
-
.
|
|
629
|
+
._main_1vdkkms_62::before{
|
|
628
630
|
position:absolute;
|
|
629
631
|
top:0;
|
|
630
632
|
right:0;
|
|
@@ -642,7 +644,7 @@
|
|
|
642
644
|
transition:border-color 100ms var(--rs-transition-function, ease);
|
|
643
645
|
}
|
|
644
646
|
|
|
645
|
-
.
|
|
647
|
+
._main_1vdkkms_62 ._icon_1vdkkms_190{
|
|
646
648
|
flex:0 0 auto;
|
|
647
649
|
|
|
648
650
|
width:auto;
|
|
@@ -652,30 +654,30 @@
|
|
|
652
654
|
fill:currentColor;
|
|
653
655
|
}
|
|
654
656
|
|
|
655
|
-
.
|
|
657
|
+
._disabled_1vdkkms_141{
|
|
656
658
|
pointer-events:none;
|
|
657
659
|
}
|
|
658
660
|
|
|
659
|
-
.
|
|
661
|
+
._allowMultiline_1vdkkms_205{
|
|
660
662
|
white-space:normal;
|
|
661
663
|
}
|
|
662
664
|
|
|
663
|
-
.
|
|
665
|
+
._content_1vdkkms_209{
|
|
664
666
|
flex:var(--_rs-button-content-grow) 1 auto;
|
|
665
667
|
|
|
666
668
|
min-width:0;
|
|
667
669
|
}
|
|
668
670
|
|
|
669
|
-
.
|
|
671
|
+
._multiline_1vdkkms_215{
|
|
670
672
|
border-radius:var(--_rs-button-multiline-border-radius);
|
|
671
673
|
}
|
|
672
674
|
|
|
673
|
-
.
|
|
675
|
+
._withoutText_1vdkkms_219{
|
|
674
676
|
--_rs-button-horizontal-real-padding:var(--_rs-button-icon-only-padding);
|
|
675
677
|
--_rs-button-vertical-real-padding:var(--_rs-button-icon-only-padding);
|
|
676
678
|
}
|
|
677
679
|
|
|
678
|
-
.
|
|
680
|
+
._busyIcon_1vdkkms_224{
|
|
679
681
|
position:absolute;
|
|
680
682
|
top:50%;
|
|
681
683
|
left:50%;
|
|
@@ -683,15 +685,15 @@
|
|
|
683
685
|
transform:translate(-50%, -50%);
|
|
684
686
|
}
|
|
685
687
|
|
|
686
|
-
.
|
|
688
|
+
._main_1vdkkms_62 ._busyIcon_1vdkkms_224{
|
|
687
689
|
color:var(--_rs-button-color);
|
|
688
690
|
}
|
|
689
691
|
|
|
690
|
-
.
|
|
692
|
+
._main_1vdkkms_62._disabled_1vdkkms_141 ._busyIcon_1vdkkms_224{
|
|
691
693
|
color:var(--_rs-button-disabled-color);
|
|
692
694
|
}
|
|
693
695
|
|
|
694
|
-
.
|
|
696
|
+
._content_1vdkkms_209{
|
|
695
697
|
letter-spacing:var(
|
|
696
698
|
--rs-text-base-letter-spacing,
|
|
697
699
|
var(--_rs-typography-letter-spacing)
|
|
@@ -704,15 +706,15 @@
|
|
|
704
706
|
font-variant-numeric:var(--_rs-typography-font-variant-numeric);
|
|
705
707
|
font-feature-settings:'kern', 'liga', 'calt';
|
|
706
708
|
}
|
|
707
|
-
.
|
|
709
|
+
._shiftedLeft_1vdkkms_245{
|
|
708
710
|
margin-left:calc(-1 * var(--_rs-button-horizontal-real-padding));
|
|
709
711
|
}
|
|
710
|
-
.
|
|
712
|
+
._shiftedRight_1vdkkms_248{
|
|
711
713
|
margin-right:calc(-1 * var(--_rs-button-horizontal-real-padding));
|
|
712
714
|
}
|
|
713
|
-
.
|
|
715
|
+
._shiftedTop_1vdkkms_251{
|
|
714
716
|
margin-top:calc(-1 * var(--_rs-button-vertical-real-padding));
|
|
715
717
|
}
|
|
716
|
-
.
|
|
718
|
+
._shiftedBottom_1vdkkms_254{
|
|
717
719
|
margin-bottom:calc(-1 * var(--_rs-button-vertical-real-padding));
|
|
718
720
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rescui/button",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.27.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "JetBrains",
|
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
"react": ">=17.0.0 <20"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@rescui/colors": "^0.3.
|
|
30
|
-
"@rescui/icons": "^1.11.
|
|
29
|
+
"@rescui/colors": "^0.3.6",
|
|
30
|
+
"@rescui/icons": "^1.11.2",
|
|
31
31
|
"@rescui/scripts": "^0.6.0",
|
|
32
|
-
"@rescui/typography": "^0.
|
|
33
|
-
"@rescui/visual-regression": "^0.1.
|
|
32
|
+
"@rescui/typography": "^0.30.1",
|
|
33
|
+
"@rescui/visual-regression": "^0.1.5",
|
|
34
34
|
"@types/classnames": "^2.2.11"
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"build-pcss-api": "rescui-scripts build-pcss-api --file public-api.p.css"
|
|
39
39
|
},
|
|
40
40
|
"nx": {},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "428fe8428862945a1199cf875bbe180ccbb71df3"
|
|
42
42
|
}
|