@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 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
- const useCardCn = () => {
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 };
@@ -1,29 +1,29 @@
1
1
  var styles = {
2
- "themeLight": "_themeLight_7rqyzh_8",
3
- "themeDark": "_themeDark_7rqyzh_11",
4
- "padding0": "_padding0_7rqyzh_15",
5
- "padding16": "_padding16_7rqyzh_18",
6
- "padding24": "_padding24_7rqyzh_21",
7
- "padding32": "_padding32_7rqyzh_24",
8
- "borderRadius0": "_borderRadius0_7rqyzh_28",
9
- "borderRadius8": "_borderRadius8_7rqyzh_31",
10
- "borderRadius16": "_borderRadius16_7rqyzh_34",
11
- "borderRadius24": "_borderRadius24_7rqyzh_37",
12
- "modeClassic": "_modeClassic_7rqyzh_41",
13
- "modeRock": "_modeRock_7rqyzh_51",
14
- "transparentBorderTrue": "_transparentBorderTrue_7rqyzh_60",
15
- "transparentBorderFalse": "_transparentBorderFalse_7rqyzh_63",
16
- "clickable": "_clickable_7rqyzh_111",
17
- "disableBorder": "_disableBorder_7rqyzh_70",
18
- "hasGlowHover": "_hasGlowHover_7rqyzh_88",
19
- "legacyBorder": "_legacyBorder_7rqyzh_134",
20
- "tile": "_tile_7rqyzh_247",
21
- "fixedImageHeight": "_fixedImageHeight_7rqyzh_325",
22
- "fullImageWidth": "_fullImageWidth_7rqyzh_334",
23
- "cardImage": "_cardImage_7rqyzh_338",
24
- "cardImageImg": "_cardImageImg_7rqyzh_346",
25
- "cardImageDiv": "_cardImageDiv_7rqyzh_371",
26
- "innerLink": "_innerLink_7rqyzh_396",
27
- "innerButton": "_innerButton_7rqyzh_408"
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
- ._themeLight_7rqyzh_8{
1
+ ._themeLight_xlwpfx_8{
2
2
  --rs-theme-dark:0;
3
3
  }
4
4
 
5
- ._themeDark_7rqyzh_11{
5
+ ._themeDark_xlwpfx_11{
6
6
  --rs-theme-dark:1;
7
7
  }
8
8
 
9
- ._padding0_7rqyzh_15{
9
+ ._padding0_xlwpfx_15{
10
10
  --_rs-card-padding:0px;
11
11
  }
12
12
 
13
- ._padding16_7rqyzh_18{
13
+ ._padding16_xlwpfx_18{
14
14
  --_rs-card-padding:16px;
15
15
  }
16
16
 
17
- ._padding24_7rqyzh_21{
17
+ ._padding24_xlwpfx_21{
18
18
  --_rs-card-padding:24px;
19
19
  }
20
20
 
21
- ._padding32_7rqyzh_24{
21
+ ._padding32_xlwpfx_24{
22
22
  --_rs-card-padding:32px;
23
23
  }
24
24
 
25
- ._borderRadius0_7rqyzh_28{
25
+ ._borderRadius0_xlwpfx_28{
26
26
  --_rs-card-border-radius:0px;
27
27
  }
28
28
 
29
- ._borderRadius8_7rqyzh_31{
29
+ ._borderRadius8_xlwpfx_31{
30
30
  --_rs-card-border-radius:8px;
31
31
  }
32
32
 
33
- ._borderRadius16_7rqyzh_34{
33
+ ._borderRadius16_xlwpfx_34{
34
34
  --_rs-card-border-radius:16px;
35
35
  }
36
36
 
37
- ._borderRadius24_7rqyzh_37{
37
+ ._borderRadius24_xlwpfx_37{
38
38
  --_rs-card-border-radius:24px;
39
39
  }
40
40
 
41
- ._modeClassic_7rqyzh_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
- ._modeRock_7rqyzh_51{
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
- ._transparentBorderTrue_7rqyzh_60{
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
- ._transparentBorderFalse_7rqyzh_63{
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
- ._clickable_7rqyzh_111{
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
- ._clickable_7rqyzh_111._disableBorder_7rqyzh_70{
80
+ ._clickable_xlwpfx_111._disableBorder_xlwpfx_70{
81
81
  --_rs-card-native-static-border-color:transparent;
82
82
  }
83
83
 
84
- ._clickable_7rqyzh_111 {
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
- ._clickable_7rqyzh_111:is([data-extra-hover-effect], ._hasGlowHover_7rqyzh_88){
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
- ._clickable_7rqyzh_111:is([data-extra-hover-effect], ._hasGlowHover_7rqyzh_88)[data-extra-active-effect]{
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
- ._clickable_7rqyzh_111:is([data-extra-hover-effect], ._hasGlowHover_7rqyzh_88)._disableBorder_7rqyzh_70{
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
- ._clickable_7rqyzh_111:is([data-extra-hover-effect], ._hasGlowHover_7rqyzh_88)._disableBorder_7rqyzh_70[data-extra-active-effect]{
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
- ._clickable_7rqyzh_111 {
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
- ._clickable_7rqyzh_111._legacyBorder_7rqyzh_134{
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
- ._clickable_7rqyzh_111 {
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
- ._clickable_7rqyzh_111::after{
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:var(--_rs-card-after-border-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
- ._clickable_7rqyzh_111,
192
- ._clickable_7rqyzh_111:hover{
189
+ ._clickable_xlwpfx_111,
190
+ ._clickable_xlwpfx_111:hover{
193
191
  text-decoration:none;
194
192
  }
195
193
 
196
194
  @media (hover: hover){
197
- ._clickable_7rqyzh_111:hover{
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
- ._clickable_7rqyzh_111:focus-visible{
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
- ._clickable_7rqyzh_111:active{
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
- ._tile_7rqyzh_247{
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
- ._tile_7rqyzh_247._disableBorder_7rqyzh_70{
253
+ ._tile_xlwpfx_245._disableBorder_xlwpfx_70{
256
254
  --_rs-card-native-static-border-color:transparent;
257
255
  }
258
256
 
259
- ._tile_7rqyzh_247 {
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
- ._tile_7rqyzh_247._legacyBorder_7rqyzh_134{
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
- ._tile_7rqyzh_247 {
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
- ._tile_7rqyzh_247::after{
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:var(--_rs-card-after-border-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
- ._fixedImageHeight_7rqyzh_325{
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
- ._fixedImageHeight_7rqyzh_325 img{
337
+ ._fixedImageHeight_xlwpfx_321 img{
342
338
  height:100%;
343
339
  }
344
340
 
345
- ._fullImageWidth_7rqyzh_334 img{
341
+ ._fullImageWidth_xlwpfx_330 img{
346
342
  width:100%;
347
343
  }
348
344
 
349
- ._cardImage_7rqyzh_338{
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
- ._cardImageImg_7rqyzh_346{
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
- ._cardImageImg_7rqyzh_346 img{
364
+ ._cardImageImg_xlwpfx_342 img{
369
365
  max-width:100%;
370
366
  max-height:100%;
371
367
  }
372
368
 
373
- ._clickable_7rqyzh_111 ._cardImageImg_7rqyzh_346 img{
369
+ ._clickable_xlwpfx_111 ._cardImageImg_xlwpfx_342 img{
374
370
  transition:transform 0.2s;
375
371
  transform:scale(1);
376
372
  }
377
373
 
378
- ._clickable_7rqyzh_111:hover ._cardImageImg_7rqyzh_346 img{
374
+ ._clickable_xlwpfx_111:hover ._cardImageImg_xlwpfx_342 img{
379
375
  transform:scale(1.1);
380
376
  }
381
377
 
382
- ._cardImageDiv_7rqyzh_371{
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
- ._clickable_7rqyzh_111 ._cardImageDiv_7rqyzh_371{
395
+ ._clickable_xlwpfx_111 ._cardImageDiv_xlwpfx_367{
400
396
  transition:background-size 0.2s;
401
397
  }
402
398
 
403
- ._clickable_7rqyzh_111:hover ._cardImageDiv_7rqyzh_371{
399
+ ._clickable_xlwpfx_111:hover ._cardImageDiv_xlwpfx_367{
404
400
  background-size:110% 110%;
405
401
  }
406
402
 
407
403
  @media (hover: hover){
408
- ._clickable_7rqyzh_111:hover ._innerLink_7rqyzh_396{
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
- ._clickable_7rqyzh_111:focus-visible ._innerLink_7rqyzh_396{
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
- ._clickable_7rqyzh_111:hover ._innerButton_7rqyzh_408{
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
- ._clickable_7rqyzh_111:active ._innerButton_7rqyzh_408{
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
- ._clickable_7rqyzh_111:focus-visible ._innerButton_7rqyzh_408{
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
- ._clickable_7rqyzh_111:active:focus-visible:not(:hover) ._innerButton_7rqyzh_408{
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
@@ -1,2 +1,3 @@
1
- export { cardCn, cardImageCn, useCardCn, cardButtonCn, cardLinkCn } from './card';
1
+ export { cardCn, cardImageCn, cardButtonCn, cardLinkCn } from './card';
2
2
  export type { CardProps, CardImgType } from './card';
3
+ export { useCardCn } from './use-card-cn';
package/lib/index.js CHANGED
@@ -1,2 +1,3 @@
1
1
  import './index.css';
2
- export { cardButtonCn, cardCn, cardImageCn, cardLinkCn, useCardCn } from './card.js';
2
+ export { cardButtonCn, cardCn, cardImageCn, cardLinkCn } from './card.js';
3
+ export { useCardCn } from './use-card-cn.js';
@@ -0,0 +1,2 @@
1
+ import { CardProps } from './card';
2
+ export declare const useCardCn: () => (cardCnOptions?: CardProps) => string;
@@ -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-ba9c8d6c.74+ba9c8d6c",
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.7.2",
22
- "react": ">=16.8.0 <19"
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-ba9c8d6c.57+ba9c8d6c",
27
- "@rescui/colors": "0.2.7-RUI-226-Update-card-cn-ba9c8d6c.74+ba9c8d6c",
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.0",
30
- "@rescui/typography": "0.19.2-RUI-226-Update-card-cn-ba9c8d6c.74+ba9c8d6c",
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": "ba9c8d6cc1c93025711a614bb4063d659a6c4d9e"
37
+ "gitHead": "9ae48d69f75477e5e8ecf86c0727802fd3794f79"
38
38
  }