@rescui/card 0.10.12-RUI-226-Update-card-cn-ba9c8d6c.74 → 0.10.12-RUI-226-Update-card-cn-9ae48d69.79
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/card.d.ts +0 -1
- package/lib/card.js +1 -10
- package/lib/card.p.module.css.js +26 -26
- package/lib/index.css +55 -59
- package/lib/index.d.ts +2 -1
- package/lib/index.js +2 -1
- package/lib/use-card-cn.d.ts +2 -0
- package/lib/use-card-cn.js +13 -0
- package/package.json +8 -8
package/lib/card.d.ts
CHANGED
|
@@ -73,4 +73,3 @@ export declare const cardLinkCn: () => any;
|
|
|
73
73
|
export declare const cardButtonCn: () => any;
|
|
74
74
|
export declare const cardCn: ({ isClickable, theme, mode, padding, borderRadius, disableBorder, disableBorderTransparency, paddings, hasGlowHover, legacyBorder }?: CardProps) => string;
|
|
75
75
|
export declare const cardImageCn: ({ cardImageType, disableFixedHeight, disableFullWidth }: CardImgType) => string;
|
|
76
|
-
export declare const useCardCn: () => (cardCnOptions?: CardProps) => string;
|
package/lib/card.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import cn from 'classnames';
|
|
2
|
-
import { useThemeWithUndefined } from '@rescui/ui-contexts';
|
|
3
2
|
import styles from './card.p.module.css.js';
|
|
4
3
|
|
|
5
4
|
const cardLinkCn = () => styles.innerLink;
|
|
@@ -61,12 +60,4 @@ const cardImageCn = _ref => {
|
|
|
61
60
|
return cn(styles.cardImage, cardImgExtraStyles, !disableFixedHeight && styles.fixedImageHeight, !disableFullWidth && styles.fullImageWidth);
|
|
62
61
|
};
|
|
63
62
|
|
|
64
|
-
|
|
65
|
-
const theme = useThemeWithUndefined();
|
|
66
|
-
return cardCnOptions => cardCn({
|
|
67
|
-
theme,
|
|
68
|
-
...cardCnOptions
|
|
69
|
-
});
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
export { cardButtonCn, cardCn, cardImageCn, cardLinkCn, useCardCn };
|
|
63
|
+
export { cardButtonCn, cardCn, cardImageCn, cardLinkCn };
|
package/lib/card.p.module.css.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
var styles = {
|
|
2
|
-
"themeLight": "
|
|
3
|
-
"themeDark": "
|
|
4
|
-
"padding0": "
|
|
5
|
-
"padding16": "
|
|
6
|
-
"padding24": "
|
|
7
|
-
"padding32": "
|
|
8
|
-
"borderRadius0": "
|
|
9
|
-
"borderRadius8": "
|
|
10
|
-
"borderRadius16": "
|
|
11
|
-
"borderRadius24": "
|
|
12
|
-
"modeClassic": "
|
|
13
|
-
"modeRock": "
|
|
14
|
-
"transparentBorderTrue": "
|
|
15
|
-
"transparentBorderFalse": "
|
|
16
|
-
"clickable": "
|
|
17
|
-
"disableBorder": "
|
|
18
|
-
"hasGlowHover": "
|
|
19
|
-
"legacyBorder": "
|
|
20
|
-
"tile": "
|
|
21
|
-
"fixedImageHeight": "
|
|
22
|
-
"fullImageWidth": "
|
|
23
|
-
"cardImage": "
|
|
24
|
-
"cardImageImg": "
|
|
25
|
-
"cardImageDiv": "
|
|
26
|
-
"innerLink": "
|
|
27
|
-
"innerButton": "
|
|
2
|
+
"themeLight": "_themeLight_xlwpfx_8",
|
|
3
|
+
"themeDark": "_themeDark_xlwpfx_11",
|
|
4
|
+
"padding0": "_padding0_xlwpfx_15",
|
|
5
|
+
"padding16": "_padding16_xlwpfx_18",
|
|
6
|
+
"padding24": "_padding24_xlwpfx_21",
|
|
7
|
+
"padding32": "_padding32_xlwpfx_24",
|
|
8
|
+
"borderRadius0": "_borderRadius0_xlwpfx_28",
|
|
9
|
+
"borderRadius8": "_borderRadius8_xlwpfx_31",
|
|
10
|
+
"borderRadius16": "_borderRadius16_xlwpfx_34",
|
|
11
|
+
"borderRadius24": "_borderRadius24_xlwpfx_37",
|
|
12
|
+
"modeClassic": "_modeClassic_xlwpfx_41",
|
|
13
|
+
"modeRock": "_modeRock_xlwpfx_51",
|
|
14
|
+
"transparentBorderTrue": "_transparentBorderTrue_xlwpfx_60",
|
|
15
|
+
"transparentBorderFalse": "_transparentBorderFalse_xlwpfx_63",
|
|
16
|
+
"clickable": "_clickable_xlwpfx_111",
|
|
17
|
+
"disableBorder": "_disableBorder_xlwpfx_70",
|
|
18
|
+
"hasGlowHover": "_hasGlowHover_xlwpfx_88",
|
|
19
|
+
"legacyBorder": "_legacyBorder_xlwpfx_133",
|
|
20
|
+
"tile": "_tile_xlwpfx_245",
|
|
21
|
+
"fixedImageHeight": "_fixedImageHeight_xlwpfx_321",
|
|
22
|
+
"fullImageWidth": "_fullImageWidth_xlwpfx_330",
|
|
23
|
+
"cardImage": "_cardImage_xlwpfx_334",
|
|
24
|
+
"cardImageImg": "_cardImageImg_xlwpfx_342",
|
|
25
|
+
"cardImageDiv": "_cardImageDiv_xlwpfx_367",
|
|
26
|
+
"innerLink": "_innerLink_xlwpfx_392",
|
|
27
|
+
"innerButton": "_innerButton_xlwpfx_404"
|
|
28
28
|
};
|
|
29
29
|
export { styles as default };
|
package/lib/index.css
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
.
|
|
1
|
+
._themeLight_xlwpfx_8{
|
|
2
2
|
--rs-theme-dark:0;
|
|
3
3
|
}
|
|
4
4
|
|
|
5
|
-
.
|
|
5
|
+
._themeDark_xlwpfx_11{
|
|
6
6
|
--rs-theme-dark:1;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
.
|
|
9
|
+
._padding0_xlwpfx_15{
|
|
10
10
|
--_rs-card-padding:0px;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
.
|
|
13
|
+
._padding16_xlwpfx_18{
|
|
14
14
|
--_rs-card-padding:16px;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
.
|
|
17
|
+
._padding24_xlwpfx_21{
|
|
18
18
|
--_rs-card-padding:24px;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
.
|
|
21
|
+
._padding32_xlwpfx_24{
|
|
22
22
|
--_rs-card-padding:32px;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
.
|
|
25
|
+
._borderRadius0_xlwpfx_28{
|
|
26
26
|
--_rs-card-border-radius:0px;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
.
|
|
29
|
+
._borderRadius8_xlwpfx_31{
|
|
30
30
|
--_rs-card-border-radius:8px;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
.
|
|
33
|
+
._borderRadius16_xlwpfx_34{
|
|
34
34
|
--_rs-card-border-radius:16px;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
.
|
|
37
|
+
._borderRadius24_xlwpfx_37{
|
|
38
38
|
--_rs-card-border-radius:24px;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
.
|
|
41
|
+
._modeClassic_xlwpfx_41{
|
|
42
42
|
--_rs-card-states-theme-flip:0;
|
|
43
43
|
|
|
44
44
|
--_rs-card-hover-focus-active-border-color:rgb(
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
--_rs-card-active-background:rgb(calc(255 - var(--_rs-theme-dark-coefficient, 0)*207), calc(255 - var(--_rs-theme-dark-coefficient, 0)*207), calc(255 - var(--_rs-theme-dark-coefficient, 0)*204));
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
.
|
|
52
|
+
._modeRock_xlwpfx_51{
|
|
53
53
|
--_rs-card-states-theme-flip:1;
|
|
54
54
|
|
|
55
55
|
--_rs-card-hover-focus-active-border-color:transparent;
|
|
@@ -58,15 +58,15 @@
|
|
|
58
58
|
--_rs-card-active-background:rgb(calc(244 - var(--_rs-theme-dark-coefficient, 0)*196), calc(244 - var(--_rs-theme-dark-coefficient, 0)*196), calc(244 - var(--_rs-theme-dark-coefficient, 0)*193));
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
.
|
|
61
|
+
._transparentBorderTrue_xlwpfx_60{
|
|
62
62
|
--_rs-card-grey-border-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.2);
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
.
|
|
65
|
+
._transparentBorderFalse_xlwpfx_63{
|
|
66
66
|
--_rs-card-grey-border-color:rgb(calc(209 - var(--_rs-theme-dark-coefficient, 0)*115), calc(209 - var(--_rs-theme-dark-coefficient, 0)*115), calc(210 - var(--_rs-theme-dark-coefficient, 0)*114));
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
.
|
|
69
|
+
._clickable_xlwpfx_111{
|
|
70
70
|
--_rs-theme-dark:var(
|
|
71
71
|
--_rs-internal-force-theme-dark-consult-rescui-before-using,
|
|
72
72
|
var(--rs-theme-dark, 0)
|
|
@@ -77,11 +77,11 @@
|
|
|
77
77
|
--_rs-card-native-static-border-color:var(--_rs-card-grey-border-color);
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
.
|
|
80
|
+
._clickable_xlwpfx_111._disableBorder_xlwpfx_70{
|
|
81
81
|
--_rs-card-native-static-border-color:transparent;
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
.
|
|
84
|
+
._clickable_xlwpfx_111 {
|
|
85
85
|
--_rs-card-native-hover-border-color:var(
|
|
86
86
|
--_rs-card-hover-focus-active-border-color
|
|
87
87
|
);
|
|
@@ -91,26 +91,26 @@
|
|
|
91
91
|
);
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
-
.
|
|
94
|
+
._clickable_xlwpfx_111:is([data-extra-hover-effect], ._hasGlowHover_xlwpfx_88){
|
|
95
95
|
--_rs-card-native-hover-border-color:var(--_rs-card-grey-border-color);
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
.
|
|
98
|
+
._clickable_xlwpfx_111:is([data-extra-hover-effect], ._hasGlowHover_xlwpfx_88)[data-extra-active-effect]{
|
|
99
99
|
--_rs-card-native-active-border-width:1px;
|
|
100
100
|
--_rs-card-native-active-border-color:var(--_rs-card-grey-border-color);
|
|
101
101
|
}
|
|
102
102
|
|
|
103
|
-
.
|
|
103
|
+
._clickable_xlwpfx_111:is([data-extra-hover-effect], ._hasGlowHover_xlwpfx_88)._disableBorder_xlwpfx_70{
|
|
104
104
|
--_rs-card-native-hover-border-color:transparent;
|
|
105
105
|
|
|
106
106
|
--_rs-card-native-active-border-width:1px;
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
-
.
|
|
109
|
+
._clickable_xlwpfx_111:is([data-extra-hover-effect], ._hasGlowHover_xlwpfx_88)._disableBorder_xlwpfx_70[data-extra-active-effect]{
|
|
110
110
|
--_rs-card-native-active-border-color:transparent;
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
.
|
|
113
|
+
._clickable_xlwpfx_111 {
|
|
114
114
|
|
|
115
115
|
--_rs-card-env-background:var(
|
|
116
116
|
--rs-card-static-background,
|
|
@@ -129,16 +129,14 @@
|
|
|
129
129
|
|
|
130
130
|
--_rs-card-css-padding:var(--_rs-card-padding-final);
|
|
131
131
|
--_rs-card-css-border:none;
|
|
132
|
-
--_rs-card-after-border-display:block;
|
|
133
132
|
}
|
|
134
133
|
|
|
135
|
-
.
|
|
134
|
+
._clickable_xlwpfx_111._legacyBorder_xlwpfx_133{
|
|
136
135
|
--_rs-card-css-padding:calc(var(--_rs-card-padding-final) - var(--_rs-card-env-border-width));
|
|
137
136
|
--_rs-card-css-border:var(--_rs-card-env-border-width) solid var(--_rs-card-env-border-color);
|
|
138
|
-
--_rs-card-after-border-display:none;
|
|
139
137
|
}
|
|
140
138
|
|
|
141
|
-
.
|
|
139
|
+
._clickable_xlwpfx_111 {
|
|
142
140
|
--rs-out-card-padding:var(--_rs-card-padding-final);
|
|
143
141
|
--rs-out-card-border-radius:var(--_rs-card-border-radius-final);
|
|
144
142
|
--rs-out-card-border-width:var(--_rs-card-env-border-width);
|
|
@@ -169,14 +167,14 @@
|
|
|
169
167
|
appearance:none;
|
|
170
168
|
}
|
|
171
169
|
|
|
172
|
-
.
|
|
170
|
+
._clickable_xlwpfx_111:not(._legacyBorder_xlwpfx_133)::after{
|
|
173
171
|
position:absolute;
|
|
174
172
|
top:0;
|
|
175
173
|
right:0;
|
|
176
174
|
bottom:0;
|
|
177
175
|
left:0;
|
|
178
176
|
|
|
179
|
-
display:
|
|
177
|
+
display:block;
|
|
180
178
|
|
|
181
179
|
border-radius:inherit;
|
|
182
180
|
|
|
@@ -188,13 +186,13 @@
|
|
|
188
186
|
transition:box-shadow 100ms;
|
|
189
187
|
}
|
|
190
188
|
|
|
191
|
-
.
|
|
192
|
-
.
|
|
189
|
+
._clickable_xlwpfx_111,
|
|
190
|
+
._clickable_xlwpfx_111:hover{
|
|
193
191
|
text-decoration:none;
|
|
194
192
|
}
|
|
195
193
|
|
|
196
194
|
@media (hover: hover){
|
|
197
|
-
.
|
|
195
|
+
._clickable_xlwpfx_111:hover{
|
|
198
196
|
--rs-theme-flip:var(--_rs-card-states-theme-flip);
|
|
199
197
|
|
|
200
198
|
--_rs-card-env-background:var(
|
|
@@ -209,7 +207,7 @@
|
|
|
209
207
|
}
|
|
210
208
|
}
|
|
211
209
|
|
|
212
|
-
.
|
|
210
|
+
._clickable_xlwpfx_111:focus-visible{
|
|
213
211
|
--rs-theme-flip:var(--_rs-card-states-theme-flip);
|
|
214
212
|
|
|
215
213
|
--_rs-card-env-background:var(
|
|
@@ -224,7 +222,7 @@
|
|
|
224
222
|
outline:none;
|
|
225
223
|
}
|
|
226
224
|
|
|
227
|
-
.
|
|
225
|
+
._clickable_xlwpfx_111:active{
|
|
228
226
|
--rs-theme-flip:var(--_rs-card-states-theme-flip);
|
|
229
227
|
|
|
230
228
|
--_rs-card-env-background:var(
|
|
@@ -241,7 +239,7 @@
|
|
|
241
239
|
);
|
|
242
240
|
}
|
|
243
241
|
|
|
244
|
-
.
|
|
242
|
+
._tile_xlwpfx_245{
|
|
245
243
|
--_rs-theme-dark:var(
|
|
246
244
|
--_rs-internal-force-theme-dark-consult-rescui-before-using,
|
|
247
245
|
var(--rs-theme-dark, 0)
|
|
@@ -252,11 +250,11 @@
|
|
|
252
250
|
--_rs-card-native-static-border-color:var(--_rs-card-grey-border-color);
|
|
253
251
|
}
|
|
254
252
|
|
|
255
|
-
.
|
|
253
|
+
._tile_xlwpfx_245._disableBorder_xlwpfx_70{
|
|
256
254
|
--_rs-card-native-static-border-color:transparent;
|
|
257
255
|
}
|
|
258
256
|
|
|
259
|
-
.
|
|
257
|
+
._tile_xlwpfx_245 {
|
|
260
258
|
|
|
261
259
|
--_rs-card-env-background:var(
|
|
262
260
|
--rs-card-static-background,
|
|
@@ -275,16 +273,14 @@
|
|
|
275
273
|
|
|
276
274
|
--_rs-card-css-padding:var(--_rs-card-padding-final);
|
|
277
275
|
--_rs-card-css-border:none;
|
|
278
|
-
--_rs-card-after-border-display:block;
|
|
279
276
|
}
|
|
280
277
|
|
|
281
|
-
.
|
|
278
|
+
._tile_xlwpfx_245._legacyBorder_xlwpfx_133{
|
|
282
279
|
--_rs-card-css-padding:calc(var(--_rs-card-padding-final) - var(--_rs-card-env-border-width));
|
|
283
280
|
--_rs-card-css-border:var(--_rs-card-env-border-width) solid var(--_rs-card-env-border-color);
|
|
284
|
-
--_rs-card-after-border-display:none;
|
|
285
281
|
}
|
|
286
282
|
|
|
287
|
-
.
|
|
283
|
+
._tile_xlwpfx_245 {
|
|
288
284
|
--rs-out-card-padding:var(--_rs-card-padding-final);
|
|
289
285
|
--rs-out-card-border-radius:var(--_rs-card-border-radius-final);
|
|
290
286
|
--rs-out-card-border-width:var(--_rs-card-env-border-width);
|
|
@@ -316,14 +312,14 @@
|
|
|
316
312
|
appearance:none;
|
|
317
313
|
}
|
|
318
314
|
|
|
319
|
-
.
|
|
315
|
+
._tile_xlwpfx_245:not(._legacyBorder_xlwpfx_133)::after{
|
|
320
316
|
position:absolute;
|
|
321
317
|
top:0;
|
|
322
318
|
right:0;
|
|
323
319
|
bottom:0;
|
|
324
320
|
left:0;
|
|
325
321
|
|
|
326
|
-
display:
|
|
322
|
+
display:block;
|
|
327
323
|
|
|
328
324
|
border-radius:inherit;
|
|
329
325
|
|
|
@@ -333,20 +329,20 @@
|
|
|
333
329
|
box-shadow:inset 0 0 0 var(--_rs-card-env-border-width) var(--_rs-card-env-border-color);
|
|
334
330
|
}
|
|
335
331
|
|
|
336
|
-
.
|
|
332
|
+
._fixedImageHeight_xlwpfx_321{
|
|
337
333
|
height:calc(188px + var(--_rs-card-padding-final));
|
|
338
334
|
max-height:calc(188px + var(--_rs-card-padding-final));
|
|
339
335
|
}
|
|
340
336
|
|
|
341
|
-
.
|
|
337
|
+
._fixedImageHeight_xlwpfx_321 img{
|
|
342
338
|
height:100%;
|
|
343
339
|
}
|
|
344
340
|
|
|
345
|
-
.
|
|
341
|
+
._fullImageWidth_xlwpfx_330 img{
|
|
346
342
|
width:100%;
|
|
347
343
|
}
|
|
348
344
|
|
|
349
|
-
.
|
|
345
|
+
._cardImage_xlwpfx_334{
|
|
350
346
|
position:relative;
|
|
351
347
|
|
|
352
348
|
overflow:hidden;
|
|
@@ -354,7 +350,7 @@
|
|
|
354
350
|
box-sizing:border-box;
|
|
355
351
|
}
|
|
356
352
|
|
|
357
|
-
.
|
|
353
|
+
._cardImageImg_xlwpfx_342{
|
|
358
354
|
top:calc(var(--_rs-card-padding-final)*-1);
|
|
359
355
|
left:calc(var(--_rs-card-padding-final)*-1);
|
|
360
356
|
|
|
@@ -365,21 +361,21 @@
|
|
|
365
361
|
width:calc(100% + var(--_rs-card-padding-final)*2);
|
|
366
362
|
}
|
|
367
363
|
|
|
368
|
-
.
|
|
364
|
+
._cardImageImg_xlwpfx_342 img{
|
|
369
365
|
max-width:100%;
|
|
370
366
|
max-height:100%;
|
|
371
367
|
}
|
|
372
368
|
|
|
373
|
-
.
|
|
369
|
+
._clickable_xlwpfx_111 ._cardImageImg_xlwpfx_342 img{
|
|
374
370
|
transition:transform 0.2s;
|
|
375
371
|
transform:scale(1);
|
|
376
372
|
}
|
|
377
373
|
|
|
378
|
-
.
|
|
374
|
+
._clickable_xlwpfx_111:hover ._cardImageImg_xlwpfx_342 img{
|
|
379
375
|
transform:scale(1.1);
|
|
380
376
|
}
|
|
381
377
|
|
|
382
|
-
.
|
|
378
|
+
._cardImageDiv_xlwpfx_367{
|
|
383
379
|
top:calc(var(--_rs-card-padding-final)*-1);
|
|
384
380
|
left:calc(var(--_rs-card-padding-final)*-1);
|
|
385
381
|
|
|
@@ -396,16 +392,16 @@
|
|
|
396
392
|
background-size:100% 100%;
|
|
397
393
|
}
|
|
398
394
|
|
|
399
|
-
.
|
|
395
|
+
._clickable_xlwpfx_111 ._cardImageDiv_xlwpfx_367{
|
|
400
396
|
transition:background-size 0.2s;
|
|
401
397
|
}
|
|
402
398
|
|
|
403
|
-
.
|
|
399
|
+
._clickable_xlwpfx_111:hover ._cardImageDiv_xlwpfx_367{
|
|
404
400
|
background-size:110% 110%;
|
|
405
401
|
}
|
|
406
402
|
|
|
407
403
|
@media (hover: hover){
|
|
408
|
-
.
|
|
404
|
+
._clickable_xlwpfx_111:hover ._innerLink_xlwpfx_392{
|
|
409
405
|
--_rs-typography-link-padding-bottom-from-state-hover:calc(1px - var(--_rs-typography-link-hover-underline-width-difference-wf));
|
|
410
406
|
--_rs-typography-link-border-bottom-width-from-state-hover:calc(var(--_rs-typography-link-border-bottom-width-wf) + var(--_rs-typography-link-hover-underline-width-difference-wf));
|
|
411
407
|
--_rs-typography-link-border-bottom-color-from-state-hover:var(
|
|
@@ -427,14 +423,14 @@
|
|
|
427
423
|
}
|
|
428
424
|
}
|
|
429
425
|
|
|
430
|
-
.
|
|
426
|
+
._clickable_xlwpfx_111:focus-visible ._innerLink_xlwpfx_392{
|
|
431
427
|
--_rs-typography-link-box-shadow-from-state-focus-visible:var(
|
|
432
428
|
--_rs-color-primary
|
|
433
429
|
) 0 0 0 4px;
|
|
434
430
|
}
|
|
435
431
|
|
|
436
432
|
@media (hover: hover){
|
|
437
|
-
.
|
|
433
|
+
._clickable_xlwpfx_111:hover ._innerButton_xlwpfx_404{
|
|
438
434
|
--_rs-button-border-inner-color:rgba(
|
|
439
435
|
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),
|
|
440
436
|
calc(0.3 + var(--_rs-theme-dark-coefficient, 0)*0.1)
|
|
@@ -443,7 +439,7 @@
|
|
|
443
439
|
}
|
|
444
440
|
}
|
|
445
441
|
|
|
446
|
-
.
|
|
442
|
+
._clickable_xlwpfx_111:active ._innerButton_xlwpfx_404{
|
|
447
443
|
--_rs-button-border-inner-width:2px;
|
|
448
444
|
--_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));
|
|
449
445
|
--_rs-button-background-from-state-active:var(
|
|
@@ -451,13 +447,13 @@
|
|
|
451
447
|
);
|
|
452
448
|
}
|
|
453
449
|
|
|
454
|
-
.
|
|
450
|
+
._clickable_xlwpfx_111:focus-visible ._innerButton_xlwpfx_404{
|
|
455
451
|
--_rs-button-box-shadow-from-state-focus-visible:var(
|
|
456
452
|
--_rs-color-primary-t-dim
|
|
457
453
|
) 0 0 0 4px;
|
|
458
454
|
}
|
|
459
455
|
|
|
460
|
-
.
|
|
456
|
+
._clickable_xlwpfx_111:active:focus-visible:not(:hover) ._innerButton_xlwpfx_404{
|
|
461
457
|
--_rs-button-background-from-state-active-focus-visible-no-hover:var(
|
|
462
458
|
--_rs-button-active-focus-visible-no-hover-background
|
|
463
459
|
);
|
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useThemeWithUndefined } from '@rescui/ui-contexts';
|
|
3
|
+
import { cardCn } from './card.js';
|
|
4
|
+
|
|
5
|
+
const useCardCn = () => {
|
|
6
|
+
const theme = useThemeWithUndefined();
|
|
7
|
+
return cardCnOptions => cardCn({
|
|
8
|
+
theme,
|
|
9
|
+
...cardCnOptions
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export { useCardCn };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rescui/card",
|
|
3
|
-
"version": "0.10.12-RUI-226-Update-card-cn-
|
|
3
|
+
"version": "0.10.12-RUI-226-Update-card-cn-9ae48d69.79+9ae48d69",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "lib/index.js",
|
|
@@ -18,21 +18,21 @@
|
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
20
|
"@rescui/ui-contexts": "^0.5.0",
|
|
21
|
-
"prop-types": "^15
|
|
22
|
-
"react": ">=16.8.0 <
|
|
21
|
+
"prop-types": "^15",
|
|
22
|
+
"react": ">=16.8.0 <20"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@jetbrains/logos": "^1.4.16",
|
|
26
|
-
"@rescui/button": "0.19.2-RUI-226-Update-card-cn-
|
|
27
|
-
"@rescui/colors": "0.2.7-RUI-226-Update-card-cn-
|
|
26
|
+
"@rescui/button": "0.19.2-RUI-226-Update-card-cn-9ae48d69.62+9ae48d69",
|
|
27
|
+
"@rescui/colors": "0.2.7-RUI-226-Update-card-cn-9ae48d69.79+9ae48d69",
|
|
28
28
|
"@rescui/postcss-preset-library": "0.2.2",
|
|
29
|
-
"@rescui/scripts": "0.5.
|
|
30
|
-
"@rescui/typography": "0.19.2-RUI-226-Update-card-cn-
|
|
29
|
+
"@rescui/scripts": "0.5.1",
|
|
30
|
+
"@rescui/typography": "0.19.2-RUI-226-Update-card-cn-9ae48d69.79+9ae48d69",
|
|
31
31
|
"@rescui/visual-regression": "0.1.2"
|
|
32
32
|
},
|
|
33
33
|
"scripts": {
|
|
34
34
|
"build": "rescui-scripts build"
|
|
35
35
|
},
|
|
36
36
|
"nx": {},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "9ae48d69f75477e5e8ecf86c0727802fd3794f79"
|
|
38
38
|
}
|