origam 2.30.0 → 2.32.0
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/CHANGELOG.md +21 -0
- package/dist/src/assets/css/main.css +1 -1
- package/dist/src/assets/css/tokens/dark.css +14 -0
- package/dist/src/assets/css/tokens/light.css +7 -0
- package/dist/src/assets/scss/tokens/_dark.scss +14 -0
- package/dist/src/assets/scss/tokens/_light.scss +7 -0
- package/dist/src/components/Blockquote/OrigamBlockquote.vue +3 -1
- package/dist/src/components/Card/OrigamCard.vue +13 -3
- package/dist/src/components/Chip/OrigamChip.vue +13 -1
- package/dist/src/components/Dialog/OrigamDialog.vue +3 -1
- package/dist/src/components/Dialog/OrigamDialogConfirmation.vue +3 -1
- package/dist/src/components/TextMask/OrigamTextMask.vue +3 -1
- package/dist/src/components/Title/OrigamTitle.vue +3 -1
- package/dist/src/composables/Commons/typography.composable.cjs +1 -1
- package/dist/src/composables/Commons/typography.composable.js +2 -1
- package/dist/src/enums/Card/card.enum.cjs +9 -2
- package/dist/src/enums/Card/card.enum.d.ts +6 -0
- package/dist/src/enums/Card/card.enum.js +7 -0
- package/dist/src/enums/Commons/text-transform.enum.cjs +13 -0
- package/dist/src/enums/Commons/text-transform.enum.d.ts +13 -0
- package/dist/src/enums/Commons/text-transform.enum.js +7 -0
- package/dist/src/enums/index.cjs +11 -0
- package/dist/src/enums/index.d.ts +1 -0
- package/dist/src/enums/index.js +1 -0
- package/dist/src/interfaces/Card/card.interface.d.ts +12 -4
- package/dist/src/interfaces/Chip/chip.interface.d.ts +1 -1
- package/dist/src/interfaces/Commons/typography.interface.d.ts +22 -3
- package/dist/src/types/Card/card.type.d.ts +2 -1
- package/dist/src/types/Commons/text-transform.type.cjs +1 -0
- package/dist/src/types/Commons/text-transform.type.d.ts +9 -0
- package/dist/src/types/Commons/text-transform.type.js +0 -0
- package/dist/src/types/index.cjs +11 -0
- package/dist/src/types/index.d.ts +1 -0
- package/dist/src/types/index.js +1 -0
- package/dist/src/types/tokens.type.d.ts +1 -1
- package/package.json +1 -1
|
@@ -427,6 +427,7 @@
|
|
|
427
427
|
--origam-card--loading---min-width: 240px;
|
|
428
428
|
--origam-card--loading---min-height: 120px;
|
|
429
429
|
--origam-card__asset---aspect-ratio: 16 / 9;
|
|
430
|
+
--origam-card__content---display: block;
|
|
430
431
|
--origam-card__loader---min-height: 4px;
|
|
431
432
|
--origam-card__skeleton---padding: var(--origam-space---4);
|
|
432
433
|
--origam-card__loader---z-index: 3;
|
|
@@ -469,6 +470,9 @@
|
|
|
469
470
|
--origam-chip---border-radius: var(--origam-radius---full);
|
|
470
471
|
--origam-chip---border-radius-label: var(--origam-radius---sm);
|
|
471
472
|
--origam-chip---font-weight: var(--origam-font__weight---regular);
|
|
473
|
+
--origam-chip---font-family: initial;
|
|
474
|
+
--origam-chip---letter-spacing: initial;
|
|
475
|
+
--origam-chip---text-transform: initial;
|
|
472
476
|
--origam-chip---opacity-disabled: var(--origam-opacity---32);
|
|
473
477
|
--origam-chip---density: 0px;
|
|
474
478
|
--origam-chip---overlay-opacity: var(--origam-opacity---0);
|
|
@@ -2376,6 +2380,7 @@
|
|
|
2376
2380
|
--origam-title---font-family: var(--origam-font__family---sans);
|
|
2377
2381
|
--origam-title---font-weight: var(--origam-font__weight---semibold);
|
|
2378
2382
|
--origam-title---letter-spacing: var(--origam-font__letterSpacing---tight);
|
|
2383
|
+
--origam-title---text-transform: initial;
|
|
2379
2384
|
--origam-title---line-height: var(--origam-font__lineHeight---tight);
|
|
2380
2385
|
--origam-title---margin-block-start: var(--origam-space---0);
|
|
2381
2386
|
--origam-title---margin-block-end: var(--origam-space---0);
|
|
@@ -2704,6 +2709,7 @@
|
|
|
2704
2709
|
--origam-blockquote---font-weight: var(--origam-font__weight---regular);
|
|
2705
2710
|
--origam-blockquote---line-height: var(--origam-font__lineHeight---relaxed);
|
|
2706
2711
|
--origam-blockquote---letter-spacing: var(--origam-font__letterSpacing---normal);
|
|
2712
|
+
--origam-blockquote---text-transform: initial;
|
|
2707
2713
|
--origam-blockquote---color: var(--origam-color__text---primary);
|
|
2708
2714
|
--origam-blockquote__accent---color: var(--origam-color__action--primary---bg);
|
|
2709
2715
|
--origam-blockquote__accent---width: 4px;
|
|
@@ -2888,6 +2894,7 @@
|
|
|
2888
2894
|
--origam-text-mask---font-size-default: var(--origam-font__size---5xl);
|
|
2889
2895
|
--origam-text-mask---font-weight-default: var(--origam-font__weight---bold);
|
|
2890
2896
|
--origam-text-mask---line-height-default: var(--origam-font__lineHeight---tight);
|
|
2897
|
+
--origam-text-mask---text-transform: initial;
|
|
2891
2898
|
--origam-text-mask__animation---duration-default: 3s;
|
|
2892
2899
|
--origam-text-mask__animation---easing-default: var(--origam-motion__easing---standard);
|
|
2893
2900
|
--origam-empty-state---padding-block: var(--origam-space---10);
|
|
@@ -3441,6 +3448,7 @@
|
|
|
3441
3448
|
--origam-card--loading---min-width: 240px;
|
|
3442
3449
|
--origam-card--loading---min-height: 120px;
|
|
3443
3450
|
--origam-card__asset---aspect-ratio: 16 / 9;
|
|
3451
|
+
--origam-card__content---display: block;
|
|
3444
3452
|
--origam-card__loader---min-height: 4px;
|
|
3445
3453
|
--origam-card__skeleton---padding: var(--origam-space---4);
|
|
3446
3454
|
--origam-card__loader---z-index: 3;
|
|
@@ -3483,6 +3491,9 @@
|
|
|
3483
3491
|
--origam-chip---border-radius: var(--origam-radius---full);
|
|
3484
3492
|
--origam-chip---border-radius-label: var(--origam-radius---sm);
|
|
3485
3493
|
--origam-chip---font-weight: var(--origam-font__weight---regular);
|
|
3494
|
+
--origam-chip---font-family: initial;
|
|
3495
|
+
--origam-chip---letter-spacing: initial;
|
|
3496
|
+
--origam-chip---text-transform: initial;
|
|
3486
3497
|
--origam-chip---opacity-disabled: var(--origam-opacity---32);
|
|
3487
3498
|
--origam-chip---density: 0px;
|
|
3488
3499
|
--origam-chip---overlay-opacity: var(--origam-opacity---0);
|
|
@@ -5389,6 +5400,7 @@
|
|
|
5389
5400
|
--origam-title---font-family: var(--origam-font__family---sans);
|
|
5390
5401
|
--origam-title---font-weight: var(--origam-font__weight---semibold);
|
|
5391
5402
|
--origam-title---letter-spacing: var(--origam-font__letterSpacing---tight);
|
|
5403
|
+
--origam-title---text-transform: initial;
|
|
5392
5404
|
--origam-title---line-height: var(--origam-font__lineHeight---tight);
|
|
5393
5405
|
--origam-title---margin-block-start: var(--origam-space---0);
|
|
5394
5406
|
--origam-title---margin-block-end: var(--origam-space---0);
|
|
@@ -5717,6 +5729,7 @@
|
|
|
5717
5729
|
--origam-blockquote---font-weight: var(--origam-font__weight---regular);
|
|
5718
5730
|
--origam-blockquote---line-height: var(--origam-font__lineHeight---relaxed);
|
|
5719
5731
|
--origam-blockquote---letter-spacing: var(--origam-font__letterSpacing---normal);
|
|
5732
|
+
--origam-blockquote---text-transform: initial;
|
|
5720
5733
|
--origam-blockquote---color: var(--origam-color__text---primary);
|
|
5721
5734
|
--origam-blockquote__accent---color: var(--origam-color__action--primary---bg);
|
|
5722
5735
|
--origam-blockquote__accent---width: 4px;
|
|
@@ -5901,6 +5914,7 @@
|
|
|
5901
5914
|
--origam-text-mask---font-size-default: var(--origam-font__size---5xl);
|
|
5902
5915
|
--origam-text-mask---font-weight-default: var(--origam-font__weight---bold);
|
|
5903
5916
|
--origam-text-mask---line-height-default: var(--origam-font__lineHeight---tight);
|
|
5917
|
+
--origam-text-mask---text-transform: initial;
|
|
5904
5918
|
--origam-text-mask__animation---duration-default: 3s;
|
|
5905
5919
|
--origam-text-mask__animation---easing-default: var(--origam-motion__easing---standard);
|
|
5906
5920
|
--origam-empty-state---padding-block: var(--origam-space---10);
|
|
@@ -327,6 +327,7 @@
|
|
|
327
327
|
--origam-card--loading---min-width: 240px;
|
|
328
328
|
--origam-card--loading---min-height: 120px;
|
|
329
329
|
--origam-card__asset---aspect-ratio: 16 / 9;
|
|
330
|
+
--origam-card__content---display: block;
|
|
330
331
|
--origam-card__loader---min-height: 4px;
|
|
331
332
|
--origam-card__skeleton---padding: var(--origam-space---4);
|
|
332
333
|
--origam-card__loader---z-index: 3;
|
|
@@ -369,6 +370,9 @@
|
|
|
369
370
|
--origam-chip---border-radius: var(--origam-radius---full);
|
|
370
371
|
--origam-chip---border-radius-label: var(--origam-radius---sm);
|
|
371
372
|
--origam-chip---font-weight: var(--origam-font__weight---regular);
|
|
373
|
+
--origam-chip---font-family: initial;
|
|
374
|
+
--origam-chip---letter-spacing: initial;
|
|
375
|
+
--origam-chip---text-transform: initial;
|
|
372
376
|
--origam-chip---opacity-disabled: var(--origam-opacity---32);
|
|
373
377
|
--origam-chip---density: 0px;
|
|
374
378
|
--origam-chip---overlay-opacity: var(--origam-opacity---0);
|
|
@@ -2290,6 +2294,7 @@
|
|
|
2290
2294
|
--origam-title---font-family: var(--origam-font__family---sans);
|
|
2291
2295
|
--origam-title---font-weight: var(--origam-font__weight---semibold);
|
|
2292
2296
|
--origam-title---letter-spacing: var(--origam-font__letterSpacing---tight);
|
|
2297
|
+
--origam-title---text-transform: initial;
|
|
2293
2298
|
--origam-title---line-height: var(--origam-font__lineHeight---tight);
|
|
2294
2299
|
--origam-title---margin-block-start: var(--origam-space---0);
|
|
2295
2300
|
--origam-title---margin-block-end: var(--origam-space---0);
|
|
@@ -2618,6 +2623,7 @@
|
|
|
2618
2623
|
--origam-blockquote---font-weight: var(--origam-font__weight---regular);
|
|
2619
2624
|
--origam-blockquote---line-height: var(--origam-font__lineHeight---relaxed);
|
|
2620
2625
|
--origam-blockquote---letter-spacing: var(--origam-font__letterSpacing---normal);
|
|
2626
|
+
--origam-blockquote---text-transform: initial;
|
|
2621
2627
|
--origam-blockquote---color: var(--origam-color__text---primary);
|
|
2622
2628
|
--origam-blockquote__accent---color: var(--origam-color__action--primary---bg);
|
|
2623
2629
|
--origam-blockquote__accent---width: 4px;
|
|
@@ -2802,6 +2808,7 @@
|
|
|
2802
2808
|
--origam-text-mask---font-size-default: var(--origam-font__size---5xl);
|
|
2803
2809
|
--origam-text-mask---font-weight-default: var(--origam-font__weight---bold);
|
|
2804
2810
|
--origam-text-mask---line-height-default: var(--origam-font__lineHeight---tight);
|
|
2811
|
+
--origam-text-mask---text-transform: initial;
|
|
2805
2812
|
--origam-text-mask__animation---duration-default: 3s;
|
|
2806
2813
|
--origam-text-mask__animation---easing-default: var(--origam-motion__easing---standard);
|
|
2807
2814
|
--origam-empty-state---padding-block: var(--origam-space---10);
|
|
@@ -427,6 +427,7 @@
|
|
|
427
427
|
--origam-card--loading---min-width: 240px;
|
|
428
428
|
--origam-card--loading---min-height: 120px;
|
|
429
429
|
--origam-card__asset---aspect-ratio: 16 / 9;
|
|
430
|
+
--origam-card__content---display: block;
|
|
430
431
|
--origam-card__loader---min-height: 4px;
|
|
431
432
|
--origam-card__skeleton---padding: var(--origam-space---4);
|
|
432
433
|
--origam-card__loader---z-index: 3;
|
|
@@ -469,6 +470,9 @@
|
|
|
469
470
|
--origam-chip---border-radius: var(--origam-radius---full);
|
|
470
471
|
--origam-chip---border-radius-label: var(--origam-radius---sm);
|
|
471
472
|
--origam-chip---font-weight: var(--origam-font__weight---regular);
|
|
473
|
+
--origam-chip---font-family: initial;
|
|
474
|
+
--origam-chip---letter-spacing: initial;
|
|
475
|
+
--origam-chip---text-transform: initial;
|
|
472
476
|
--origam-chip---opacity-disabled: var(--origam-opacity---32);
|
|
473
477
|
--origam-chip---density: 0px;
|
|
474
478
|
--origam-chip---overlay-opacity: var(--origam-opacity---0);
|
|
@@ -2376,6 +2380,7 @@
|
|
|
2376
2380
|
--origam-title---font-family: var(--origam-font__family---sans);
|
|
2377
2381
|
--origam-title---font-weight: var(--origam-font__weight---semibold);
|
|
2378
2382
|
--origam-title---letter-spacing: var(--origam-font__letterSpacing---tight);
|
|
2383
|
+
--origam-title---text-transform: initial;
|
|
2379
2384
|
--origam-title---line-height: var(--origam-font__lineHeight---tight);
|
|
2380
2385
|
--origam-title---margin-block-start: var(--origam-space---0);
|
|
2381
2386
|
--origam-title---margin-block-end: var(--origam-space---0);
|
|
@@ -2704,6 +2709,7 @@
|
|
|
2704
2709
|
--origam-blockquote---font-weight: var(--origam-font__weight---regular);
|
|
2705
2710
|
--origam-blockquote---line-height: var(--origam-font__lineHeight---relaxed);
|
|
2706
2711
|
--origam-blockquote---letter-spacing: var(--origam-font__letterSpacing---normal);
|
|
2712
|
+
--origam-blockquote---text-transform: initial;
|
|
2707
2713
|
--origam-blockquote---color: var(--origam-color__text---primary);
|
|
2708
2714
|
--origam-blockquote__accent---color: var(--origam-color__action--primary---bg);
|
|
2709
2715
|
--origam-blockquote__accent---width: 4px;
|
|
@@ -2888,6 +2894,7 @@
|
|
|
2888
2894
|
--origam-text-mask---font-size-default: var(--origam-font__size---5xl);
|
|
2889
2895
|
--origam-text-mask---font-weight-default: var(--origam-font__weight---bold);
|
|
2890
2896
|
--origam-text-mask---line-height-default: var(--origam-font__lineHeight---tight);
|
|
2897
|
+
--origam-text-mask---text-transform: initial;
|
|
2891
2898
|
--origam-text-mask__animation---duration-default: 3s;
|
|
2892
2899
|
--origam-text-mask__animation---easing-default: var(--origam-motion__easing---standard);
|
|
2893
2900
|
--origam-empty-state---padding-block: var(--origam-space---10);
|
|
@@ -3441,6 +3448,7 @@
|
|
|
3441
3448
|
--origam-card--loading---min-width: 240px;
|
|
3442
3449
|
--origam-card--loading---min-height: 120px;
|
|
3443
3450
|
--origam-card__asset---aspect-ratio: 16 / 9;
|
|
3451
|
+
--origam-card__content---display: block;
|
|
3444
3452
|
--origam-card__loader---min-height: 4px;
|
|
3445
3453
|
--origam-card__skeleton---padding: var(--origam-space---4);
|
|
3446
3454
|
--origam-card__loader---z-index: 3;
|
|
@@ -3483,6 +3491,9 @@
|
|
|
3483
3491
|
--origam-chip---border-radius: var(--origam-radius---full);
|
|
3484
3492
|
--origam-chip---border-radius-label: var(--origam-radius---sm);
|
|
3485
3493
|
--origam-chip---font-weight: var(--origam-font__weight---regular);
|
|
3494
|
+
--origam-chip---font-family: initial;
|
|
3495
|
+
--origam-chip---letter-spacing: initial;
|
|
3496
|
+
--origam-chip---text-transform: initial;
|
|
3486
3497
|
--origam-chip---opacity-disabled: var(--origam-opacity---32);
|
|
3487
3498
|
--origam-chip---density: 0px;
|
|
3488
3499
|
--origam-chip---overlay-opacity: var(--origam-opacity---0);
|
|
@@ -5389,6 +5400,7 @@
|
|
|
5389
5400
|
--origam-title---font-family: var(--origam-font__family---sans);
|
|
5390
5401
|
--origam-title---font-weight: var(--origam-font__weight---semibold);
|
|
5391
5402
|
--origam-title---letter-spacing: var(--origam-font__letterSpacing---tight);
|
|
5403
|
+
--origam-title---text-transform: initial;
|
|
5392
5404
|
--origam-title---line-height: var(--origam-font__lineHeight---tight);
|
|
5393
5405
|
--origam-title---margin-block-start: var(--origam-space---0);
|
|
5394
5406
|
--origam-title---margin-block-end: var(--origam-space---0);
|
|
@@ -5717,6 +5729,7 @@
|
|
|
5717
5729
|
--origam-blockquote---font-weight: var(--origam-font__weight---regular);
|
|
5718
5730
|
--origam-blockquote---line-height: var(--origam-font__lineHeight---relaxed);
|
|
5719
5731
|
--origam-blockquote---letter-spacing: var(--origam-font__letterSpacing---normal);
|
|
5732
|
+
--origam-blockquote---text-transform: initial;
|
|
5720
5733
|
--origam-blockquote---color: var(--origam-color__text---primary);
|
|
5721
5734
|
--origam-blockquote__accent---color: var(--origam-color__action--primary---bg);
|
|
5722
5735
|
--origam-blockquote__accent---width: 4px;
|
|
@@ -5901,6 +5914,7 @@
|
|
|
5901
5914
|
--origam-text-mask---font-size-default: var(--origam-font__size---5xl);
|
|
5902
5915
|
--origam-text-mask---font-weight-default: var(--origam-font__weight---bold);
|
|
5903
5916
|
--origam-text-mask---line-height-default: var(--origam-font__lineHeight---tight);
|
|
5917
|
+
--origam-text-mask---text-transform: initial;
|
|
5904
5918
|
--origam-text-mask__animation---duration-default: 3s;
|
|
5905
5919
|
--origam-text-mask__animation---easing-default: var(--origam-motion__easing---standard);
|
|
5906
5920
|
--origam-empty-state---padding-block: var(--origam-space---10);
|
|
@@ -327,6 +327,7 @@
|
|
|
327
327
|
--origam-card--loading---min-width: 240px;
|
|
328
328
|
--origam-card--loading---min-height: 120px;
|
|
329
329
|
--origam-card__asset---aspect-ratio: 16 / 9;
|
|
330
|
+
--origam-card__content---display: block;
|
|
330
331
|
--origam-card__loader---min-height: 4px;
|
|
331
332
|
--origam-card__skeleton---padding: var(--origam-space---4);
|
|
332
333
|
--origam-card__loader---z-index: 3;
|
|
@@ -369,6 +370,9 @@
|
|
|
369
370
|
--origam-chip---border-radius: var(--origam-radius---full);
|
|
370
371
|
--origam-chip---border-radius-label: var(--origam-radius---sm);
|
|
371
372
|
--origam-chip---font-weight: var(--origam-font__weight---regular);
|
|
373
|
+
--origam-chip---font-family: initial;
|
|
374
|
+
--origam-chip---letter-spacing: initial;
|
|
375
|
+
--origam-chip---text-transform: initial;
|
|
372
376
|
--origam-chip---opacity-disabled: var(--origam-opacity---32);
|
|
373
377
|
--origam-chip---density: 0px;
|
|
374
378
|
--origam-chip---overlay-opacity: var(--origam-opacity---0);
|
|
@@ -2290,6 +2294,7 @@
|
|
|
2290
2294
|
--origam-title---font-family: var(--origam-font__family---sans);
|
|
2291
2295
|
--origam-title---font-weight: var(--origam-font__weight---semibold);
|
|
2292
2296
|
--origam-title---letter-spacing: var(--origam-font__letterSpacing---tight);
|
|
2297
|
+
--origam-title---text-transform: initial;
|
|
2293
2298
|
--origam-title---line-height: var(--origam-font__lineHeight---tight);
|
|
2294
2299
|
--origam-title---margin-block-start: var(--origam-space---0);
|
|
2295
2300
|
--origam-title---margin-block-end: var(--origam-space---0);
|
|
@@ -2618,6 +2623,7 @@
|
|
|
2618
2623
|
--origam-blockquote---font-weight: var(--origam-font__weight---regular);
|
|
2619
2624
|
--origam-blockquote---line-height: var(--origam-font__lineHeight---relaxed);
|
|
2620
2625
|
--origam-blockquote---letter-spacing: var(--origam-font__letterSpacing---normal);
|
|
2626
|
+
--origam-blockquote---text-transform: initial;
|
|
2621
2627
|
--origam-blockquote---color: var(--origam-color__text---primary);
|
|
2622
2628
|
--origam-blockquote__accent---color: var(--origam-color__action--primary---bg);
|
|
2623
2629
|
--origam-blockquote__accent---width: 4px;
|
|
@@ -2802,6 +2808,7 @@
|
|
|
2802
2808
|
--origam-text-mask---font-size-default: var(--origam-font__size---5xl);
|
|
2803
2809
|
--origam-text-mask---font-weight-default: var(--origam-font__weight---bold);
|
|
2804
2810
|
--origam-text-mask---line-height-default: var(--origam-font__lineHeight---tight);
|
|
2811
|
+
--origam-text-mask---text-transform: initial;
|
|
2805
2812
|
--origam-text-mask__animation---duration-default: 3s;
|
|
2806
2813
|
--origam-text-mask__animation---easing-default: var(--origam-motion__easing---standard);
|
|
2807
2814
|
--origam-empty-state---padding-block: var(--origam-space---10);
|
|
@@ -135,7 +135,8 @@ const props = defineProps({
|
|
|
135
135
|
fontWeight: { type: null, required: false },
|
|
136
136
|
lineHeight: { type: null, required: false },
|
|
137
137
|
letterSpacing: { type: null, required: false },
|
|
138
|
-
fontStyle: { type: String, required: false }
|
|
138
|
+
fontStyle: { type: String, required: false },
|
|
139
|
+
textTransform: { type: null, required: false }
|
|
139
140
|
});
|
|
140
141
|
defineEmits([]);
|
|
141
142
|
defineSlots();
|
|
@@ -272,6 +273,7 @@ defineExpose({
|
|
|
272
273
|
font-weight: var(--origam-blockquote---resolved-font-weight);
|
|
273
274
|
line-height: var(--origam-blockquote---resolved-line-height);
|
|
274
275
|
letter-spacing: var(--origam-blockquote---resolved-letter-spacing);
|
|
276
|
+
text-transform: var(--origam-blockquote---text-transform, inherit);
|
|
275
277
|
color: var(--origam-blockquote---color, var(--origam-color__text---primary, #171717));
|
|
276
278
|
box-sizing: border-box;
|
|
277
279
|
}
|
|
@@ -162,7 +162,10 @@
|
|
|
162
162
|
</div>
|
|
163
163
|
</template>
|
|
164
164
|
|
|
165
|
-
<div
|
|
165
|
+
<div
|
|
166
|
+
class="origam-card__content"
|
|
167
|
+
:style="contentStyles"
|
|
168
|
+
>
|
|
166
169
|
<template v-if="hasText">
|
|
167
170
|
<slot name="text">
|
|
168
171
|
<origam-card-text
|
|
@@ -214,9 +217,9 @@ import { PROGRESS_TYPE } from "../../enums/Progress/progress.enum";
|
|
|
214
217
|
import { splitSkeletonOverrides } from "../../utils/Skeleton/skeleton.util";
|
|
215
218
|
import { computed, ref, StyleValue, toRef, useAttrs, useSlots } from "vue";
|
|
216
219
|
const props = defineProps({
|
|
220
|
+
contentDisplay: { type: null, required: false },
|
|
217
221
|
disabled: { type: Boolean, required: false },
|
|
218
222
|
flat: { type: Boolean, required: false },
|
|
219
|
-
hover: { type: Boolean, required: false },
|
|
220
223
|
image: { type: String, required: false },
|
|
221
224
|
link: { type: Boolean, required: false },
|
|
222
225
|
subtitle: { type: [String, Number], required: false },
|
|
@@ -310,7 +313,9 @@ const props = defineProps({
|
|
|
310
313
|
prependAriaLabel: { type: String, required: false },
|
|
311
314
|
appendAriaLabel: { type: String, required: false },
|
|
312
315
|
active: { type: [Boolean, Object], required: false },
|
|
313
|
-
activeClass: { type: String, required: false }
|
|
316
|
+
activeClass: { type: String, required: false },
|
|
317
|
+
hover: { type: [Boolean, Object], required: false },
|
|
318
|
+
hoverClass: { type: String, required: false }
|
|
314
319
|
});
|
|
315
320
|
defineEmits(["click:append", "click:prepend", "update:active", "update:hover"]);
|
|
316
321
|
defineSlots();
|
|
@@ -419,6 +424,7 @@ const cardStyles = computed(() => {
|
|
|
419
424
|
props.style
|
|
420
425
|
];
|
|
421
426
|
});
|
|
427
|
+
const contentStyles = computed(() => props.contentDisplay ? { display: props.contentDisplay } : void 0);
|
|
422
428
|
const cardProgressClasses = computed(() => {
|
|
423
429
|
return [
|
|
424
430
|
"origam-card__progress",
|
|
@@ -516,6 +522,10 @@ defineExpose({
|
|
|
516
522
|
border-end-end-radius: var(--origam-card---border-end-end-radius, 0);
|
|
517
523
|
border-end-start-radius: var(--origam-card---border-end-start-radius, 0);
|
|
518
524
|
|
|
525
|
+
&__content {
|
|
526
|
+
display: var(--origam-card__content---display, block);
|
|
527
|
+
}
|
|
528
|
+
|
|
519
529
|
&__asset {
|
|
520
530
|
aspect-ratio: var(--origam-card__asset---aspect-ratio, 16 / 9);
|
|
521
531
|
overflow: hidden;
|
|
@@ -245,8 +245,11 @@ const props = defineProps({
|
|
|
245
245
|
activeClass: { type: String, required: false },
|
|
246
246
|
hover: { type: [Boolean, Object], required: false },
|
|
247
247
|
hoverClass: { type: String, required: false },
|
|
248
|
+
fontFamily: { type: null, required: false },
|
|
248
249
|
fontSize: { type: null, required: false },
|
|
249
|
-
fontWeight: { type: null, required: false }
|
|
250
|
+
fontWeight: { type: null, required: false },
|
|
251
|
+
letterSpacing: { type: null, required: false },
|
|
252
|
+
textTransform: { type: null, required: false }
|
|
250
253
|
});
|
|
251
254
|
const emits = defineEmits(["update:modelValue", "click", "click:close", "click:append", "click:prepend", "group:selected"]);
|
|
252
255
|
defineSlots();
|
|
@@ -423,7 +426,16 @@ defineExpose({
|
|
|
423
426
|
// Pinning `content-box` here keeps the token math identical no
|
|
424
427
|
// matter which tag ends up on the root.
|
|
425
428
|
box-sizing: content-box;
|
|
429
|
+
// #1101 — `font-family` / `letter-spacing` : lus par le var GENERIQUE
|
|
430
|
+
// que `useTypography` emet en inline quand la prop est posee. Le
|
|
431
|
+
// generique n'est volontairement declare dans AUCUNE feuille (meme
|
|
432
|
+
// regle que `---font-size`) : un token statique porteur de ce nom
|
|
433
|
+
// gagnerait toujours et figerait la valeur heritee du contexte. Sans
|
|
434
|
+
// prop, le repli `inherit` laisse le chip heriter, comme avant.
|
|
435
|
+
font-family: var(--origam-chip---font-family, inherit);
|
|
426
436
|
font-weight: var(--origam-chip---font-weight, 400);
|
|
437
|
+
letter-spacing: var(--origam-chip---letter-spacing, inherit);
|
|
438
|
+
text-transform: var(--origam-chip---text-transform, inherit);
|
|
427
439
|
max-width: 100%;
|
|
428
440
|
min-width: 0;
|
|
429
441
|
overflow: hidden;
|
|
@@ -204,8 +204,8 @@ const props = defineProps({
|
|
|
204
204
|
transition: { type: [Boolean, String, Object], required: false, default: () => ({ component: OrigamTranslateScale }) },
|
|
205
205
|
scrim: { type: [Boolean, String], required: false, default: true },
|
|
206
206
|
attach: { type: [Boolean, String, null], required: false, skipCheck: true },
|
|
207
|
+
contentDisplay: { type: null, required: false },
|
|
207
208
|
flat: { type: Boolean, required: false },
|
|
208
|
-
hover: { type: Boolean, required: false },
|
|
209
209
|
image: { type: String, required: false },
|
|
210
210
|
link: { type: Boolean, required: false },
|
|
211
211
|
subtitle: { type: [String, Number], required: false },
|
|
@@ -290,6 +290,8 @@ const props = defineProps({
|
|
|
290
290
|
appendAriaLabel: { type: String, required: false },
|
|
291
291
|
active: { type: [Boolean, Object], required: false },
|
|
292
292
|
activeClass: { type: String, required: false },
|
|
293
|
+
hover: { type: [Boolean, Object], required: false },
|
|
294
|
+
hoverClass: { type: String, required: false },
|
|
293
295
|
status: { type: null, required: false },
|
|
294
296
|
statusIconPosition: { type: null, required: false },
|
|
295
297
|
icon: { type: null, required: false }
|
|
@@ -180,8 +180,8 @@ const props = defineProps({
|
|
|
180
180
|
transition: { type: [Boolean, String, Object], required: false },
|
|
181
181
|
scrim: { type: [Boolean, String], required: false },
|
|
182
182
|
attach: { type: [Boolean, String, null], required: false, skipCheck: true },
|
|
183
|
+
contentDisplay: { type: null, required: false },
|
|
183
184
|
flat: { type: Boolean, required: false },
|
|
184
|
-
hover: { type: Boolean, required: false },
|
|
185
185
|
image: { type: String, required: false },
|
|
186
186
|
link: { type: Boolean, required: false },
|
|
187
187
|
subtitle: { type: [String, Number], required: false },
|
|
@@ -266,6 +266,8 @@ const props = defineProps({
|
|
|
266
266
|
appendAriaLabel: { type: String, required: false },
|
|
267
267
|
active: { type: [Boolean, Object], required: false },
|
|
268
268
|
activeClass: { type: String, required: false },
|
|
269
|
+
hover: { type: [Boolean, Object], required: false },
|
|
270
|
+
hoverClass: { type: String, required: false },
|
|
269
271
|
status: { type: null, required: false },
|
|
270
272
|
statusIconPosition: { type: null, required: false },
|
|
271
273
|
icon: { type: null, required: false }
|
|
@@ -34,7 +34,8 @@ const props = defineProps({
|
|
|
34
34
|
fontWeight: { type: null, required: false },
|
|
35
35
|
lineHeight: { type: null, required: false },
|
|
36
36
|
letterSpacing: { type: null, required: false },
|
|
37
|
-
fontStyle: { type: String, required: false }
|
|
37
|
+
fontStyle: { type: String, required: false },
|
|
38
|
+
textTransform: { type: null, required: false }
|
|
38
39
|
});
|
|
39
40
|
defineEmits([]);
|
|
40
41
|
defineSlots();
|
|
@@ -89,6 +90,7 @@ defineExpose({
|
|
|
89
90
|
font-family: var(--origam-text-mask---font-family, inherit);
|
|
90
91
|
line-height: var(--origam-text-mask---line-height, var(--origam-text-mask---line-height-default));
|
|
91
92
|
letter-spacing: var(--origam-text-mask---letter-spacing, normal);
|
|
93
|
+
text-transform: var(--origam-text-mask---text-transform, inherit);
|
|
92
94
|
}
|
|
93
95
|
|
|
94
96
|
.origam-text-mask--align-left {
|
|
@@ -83,7 +83,8 @@ const props = defineProps({
|
|
|
83
83
|
fontWeight: { type: null, required: false },
|
|
84
84
|
lineHeight: { type: null, required: false },
|
|
85
85
|
letterSpacing: { type: null, required: false },
|
|
86
|
-
fontStyle: { type: String, required: false }
|
|
86
|
+
fontStyle: { type: String, required: false },
|
|
87
|
+
textTransform: { type: null, required: false }
|
|
87
88
|
});
|
|
88
89
|
const { filterProps } = useProps(props);
|
|
89
90
|
defineEmits([]);
|
|
@@ -137,6 +138,7 @@ defineExpose({
|
|
|
137
138
|
font-size: var(--origam-title---font-size, var(--origam-title---font-size-md));
|
|
138
139
|
font-weight: var(--origam-title---font-weight);
|
|
139
140
|
letter-spacing: var(--origam-title---letter-spacing);
|
|
141
|
+
text-transform: var(--origam-title---text-transform, inherit);
|
|
140
142
|
line-height: var(--origam-title---line-height);
|
|
141
143
|
// ⛔ #950 — zero-specificity default. `:where(&)` compiles to
|
|
142
144
|
// `:where(.origam-title[data-v-hash])` = (0,0,0), so the
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.useTypography = useTypography;
|
|
7
7
|
var _vue = require("vue");
|
|
8
8
|
const TYPOGRAPHY_TOKEN_MAP = [["fontFamily", "font-family", "font__family"], ["fontSize", "font-size", "font__size"], ["fontWeight", "font-weight", "font__weight"], ["lineHeight", "line-height", "font__lineHeight"], ["letterSpacing", "letter-spacing", "font__letterSpacing"]];
|
|
9
|
-
const TYPOGRAPHY_PASSTHROUGH_MAP = [["fontStyle", "font-style"]];
|
|
9
|
+
const TYPOGRAPHY_PASSTHROUGH_MAP = [["fontStyle", "font-style"], ["textTransform", "text-transform"]];
|
|
10
10
|
function useTypography(props, varPrefix) {
|
|
11
11
|
const typographyStyles = (0, _vue.computed)(() => {
|
|
12
12
|
const styles = {};
|
|
@@ -7,7 +7,8 @@ const TYPOGRAPHY_TOKEN_MAP = [
|
|
|
7
7
|
["letterSpacing", "letter-spacing", "font__letterSpacing"]
|
|
8
8
|
];
|
|
9
9
|
const TYPOGRAPHY_PASSTHROUGH_MAP = [
|
|
10
|
-
["fontStyle", "font-style"]
|
|
10
|
+
["fontStyle", "font-style"],
|
|
11
|
+
["textTransform", "text-transform"]
|
|
11
12
|
];
|
|
12
13
|
export function useTypography(props, varPrefix) {
|
|
13
14
|
const typographyStyles = computed(() => {
|
|
@@ -3,9 +3,16 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.CARD_TYPE = void 0;
|
|
6
|
+
exports.CARD_TYPE = exports.CARD_CONTENT_DISPLAY = void 0;
|
|
7
7
|
var CARD_TYPE = exports.CARD_TYPE = /* @__PURE__ */(CARD_TYPE2 => {
|
|
8
8
|
CARD_TYPE2["GRID"] = "grid";
|
|
9
9
|
CARD_TYPE2["LIST"] = "list";
|
|
10
10
|
return CARD_TYPE2;
|
|
11
|
-
})(CARD_TYPE || {});
|
|
11
|
+
})(CARD_TYPE || {});
|
|
12
|
+
var CARD_CONTENT_DISPLAY = exports.CARD_CONTENT_DISPLAY = /* @__PURE__ */(CARD_CONTENT_DISPLAY2 => {
|
|
13
|
+
CARD_CONTENT_DISPLAY2["BLOCK"] = "block";
|
|
14
|
+
CARD_CONTENT_DISPLAY2["CONTENTS"] = "contents";
|
|
15
|
+
CARD_CONTENT_DISPLAY2["FLEX"] = "flex";
|
|
16
|
+
CARD_CONTENT_DISPLAY2["GRID"] = "grid";
|
|
17
|
+
return CARD_CONTENT_DISPLAY2;
|
|
18
|
+
})(CARD_CONTENT_DISPLAY || {});
|
|
@@ -3,3 +3,10 @@ export var CARD_TYPE = /* @__PURE__ */ ((CARD_TYPE2) => {
|
|
|
3
3
|
CARD_TYPE2["LIST"] = "list";
|
|
4
4
|
return CARD_TYPE2;
|
|
5
5
|
})(CARD_TYPE || {});
|
|
6
|
+
export var CARD_CONTENT_DISPLAY = /* @__PURE__ */ ((CARD_CONTENT_DISPLAY2) => {
|
|
7
|
+
CARD_CONTENT_DISPLAY2["BLOCK"] = "block";
|
|
8
|
+
CARD_CONTENT_DISPLAY2["CONTENTS"] = "contents";
|
|
9
|
+
CARD_CONTENT_DISPLAY2["FLEX"] = "flex";
|
|
10
|
+
CARD_CONTENT_DISPLAY2["GRID"] = "grid";
|
|
11
|
+
return CARD_CONTENT_DISPLAY2;
|
|
12
|
+
})(CARD_CONTENT_DISPLAY || {});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.TEXT_TRANSFORM = void 0;
|
|
7
|
+
var TEXT_TRANSFORM = exports.TEXT_TRANSFORM = /* @__PURE__ */(TEXT_TRANSFORM2 => {
|
|
8
|
+
TEXT_TRANSFORM2["NONE"] = "none";
|
|
9
|
+
TEXT_TRANSFORM2["UPPERCASE"] = "uppercase";
|
|
10
|
+
TEXT_TRANSFORM2["LOWERCASE"] = "lowercase";
|
|
11
|
+
TEXT_TRANSFORM2["CAPITALIZE"] = "capitalize";
|
|
12
|
+
return TEXT_TRANSFORM2;
|
|
13
|
+
})(TEXT_TRANSFORM || {});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*********************************************************
|
|
2
|
+
* TEXT_TRANSFORM
|
|
3
|
+
*
|
|
4
|
+
* @description
|
|
5
|
+
* Mots-cles `text-transform` acceptes par `ITypographyProps.textTransform`,
|
|
6
|
+
* emis verbatim (aucune echelle de design, aucun groupe de tokens).
|
|
7
|
+
********************************************************/
|
|
8
|
+
export declare enum TEXT_TRANSFORM {
|
|
9
|
+
NONE = "none",
|
|
10
|
+
UPPERCASE = "uppercase",
|
|
11
|
+
LOWERCASE = "lowercase",
|
|
12
|
+
CAPITALIZE = "capitalize"
|
|
13
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export var TEXT_TRANSFORM = /* @__PURE__ */ ((TEXT_TRANSFORM2) => {
|
|
2
|
+
TEXT_TRANSFORM2["NONE"] = "none";
|
|
3
|
+
TEXT_TRANSFORM2["UPPERCASE"] = "uppercase";
|
|
4
|
+
TEXT_TRANSFORM2["LOWERCASE"] = "lowercase";
|
|
5
|
+
TEXT_TRANSFORM2["CAPITALIZE"] = "capitalize";
|
|
6
|
+
return TEXT_TRANSFORM2;
|
|
7
|
+
})(TEXT_TRANSFORM || {});
|
package/dist/src/enums/index.cjs
CHANGED
|
@@ -553,6 +553,17 @@ Object.keys(_letterSpacing).forEach(function (key) {
|
|
|
553
553
|
}
|
|
554
554
|
});
|
|
555
555
|
});
|
|
556
|
+
var _textTransform = require("./Commons/text-transform.enum.cjs");
|
|
557
|
+
Object.keys(_textTransform).forEach(function (key) {
|
|
558
|
+
if (key === "default" || key === "__esModule") return;
|
|
559
|
+
if (key in exports && exports[key] === _textTransform[key]) return;
|
|
560
|
+
Object.defineProperty(exports, key, {
|
|
561
|
+
enumerable: true,
|
|
562
|
+
get: function () {
|
|
563
|
+
return _textTransform[key];
|
|
564
|
+
}
|
|
565
|
+
});
|
|
566
|
+
});
|
|
556
567
|
var _lineHeight = require("./Commons/line-height.enum.cjs");
|
|
557
568
|
Object.keys(_lineHeight).forEach(function (key) {
|
|
558
569
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -48,6 +48,7 @@ export * from './Commons/font-family.enum';
|
|
|
48
48
|
export * from './Commons/font-size.enum';
|
|
49
49
|
export * from './Commons/font-weight.enum';
|
|
50
50
|
export * from './Commons/letter-spacing.enum';
|
|
51
|
+
export * from './Commons/text-transform.enum';
|
|
51
52
|
export * from './Commons/line-height.enum';
|
|
52
53
|
export * from './Commons/loader.enum';
|
|
53
54
|
export * from './Commons/theme.enum';
|
package/dist/src/enums/index.js
CHANGED
|
@@ -48,6 +48,7 @@ export * from "./Commons/font-family.enum.js";
|
|
|
48
48
|
export * from "./Commons/font-size.enum.js";
|
|
49
49
|
export * from "./Commons/font-weight.enum.js";
|
|
50
50
|
export * from "./Commons/letter-spacing.enum.js";
|
|
51
|
+
export * from "./Commons/text-transform.enum.js";
|
|
51
52
|
export * from "./Commons/line-height.enum.js";
|
|
52
53
|
export * from "./Commons/loader.enum.js";
|
|
53
54
|
export * from "./Commons/theme.enum.js";
|
|
@@ -6,7 +6,7 @@ import type { ICommonsComponentProps, ITagProps } from '../Commons/commons.inter
|
|
|
6
6
|
import type { IDensityProps } from '../Commons/density.interface';
|
|
7
7
|
import type { IDimensionProps } from '../Commons/dimension.interface';
|
|
8
8
|
import type { IElevationProps } from '../Commons/elevation.interface';
|
|
9
|
-
import type { IHoverEmits } from '../Commons/hover.interface';
|
|
9
|
+
import type { IHoverEmits, IHoverProps } from '../Commons/hover.interface';
|
|
10
10
|
import type { ILinkProps } from '../Commons/router.interface';
|
|
11
11
|
import type { ILoaderProps } from '../Commons/loader.interface';
|
|
12
12
|
import type { ILocationProps } from '../Commons/location.interface';
|
|
@@ -15,11 +15,19 @@ import type { IPaddingProps } from '../Commons/padding.interface';
|
|
|
15
15
|
import type { IPositionProps } from '../Commons/position.interface';
|
|
16
16
|
import type { IRippleProps } from '../Commons/ripple.interface';
|
|
17
17
|
import type { IRoundedProps } from '../Commons/rounded.interface';
|
|
18
|
-
import type { TCardType } from '../../types/Card/card.type';
|
|
19
|
-
export interface ICardProps extends ICommonsComponentProps, ITagProps, IBorderProps, IColorProps, IBgColorProps, IDensityProps, IDimensionProps, IElevationProps, ILoaderProps, ILocationProps, IPositionProps, IRoundedProps, IMarginProps, IPaddingProps, ILinkProps, IRippleProps, IAdjacentProps, IActiveProps {
|
|
18
|
+
import type { TCardContentDisplay, TCardType } from '../../types/Card/card.type';
|
|
19
|
+
export interface ICardProps extends ICommonsComponentProps, ITagProps, IBorderProps, IColorProps, IBgColorProps, IDensityProps, IDimensionProps, IElevationProps, ILoaderProps, ILocationProps, IPositionProps, IRoundedProps, IMarginProps, IPaddingProps, ILinkProps, IRippleProps, IAdjacentProps, IActiveProps, IHoverProps {
|
|
20
|
+
/*********************************************************
|
|
21
|
+
* contentDisplay
|
|
22
|
+
*
|
|
23
|
+
* @description
|
|
24
|
+
* `display` of the `.origam-card__content` wrapper around the default and `text` slots (#1100).
|
|
25
|
+
* `contents` flattens it so the slotted children become direct items of the card's own grid / flex layout.
|
|
26
|
+
* Defaults to the `--origam-card__content---display` token (`block`).
|
|
27
|
+
********************************************************/
|
|
28
|
+
contentDisplay?: TCardContentDisplay;
|
|
20
29
|
disabled?: boolean;
|
|
21
30
|
flat?: boolean;
|
|
22
|
-
hover?: boolean;
|
|
23
31
|
image?: string;
|
|
24
32
|
link?: boolean;
|
|
25
33
|
subtitle?: string | number;
|
|
@@ -15,7 +15,7 @@ import type { IRoundedProps } from '../Commons/rounded.interface';
|
|
|
15
15
|
import type { ISizeProps } from '../Commons/size.interface';
|
|
16
16
|
import type { ITypographyProps } from '../Commons/typography.interface';
|
|
17
17
|
import type { TIcon } from '../../types/Icon/icon.type';
|
|
18
|
-
export interface IChipProps extends ICommonsComponentProps, IAdjacentProps, ITagProps, IColorProps, IBgColorProps, IRippleProps, IBorderProps, IRoundedProps, IPaddingProps, IMarginProps, IDensityProps, IGroupItemProps, ILinkProps, ISizeProps, IElevationProps, IActiveProps, IHoverProps, Pick<ITypographyProps, 'fontSize' | 'fontWeight'> {
|
|
18
|
+
export interface IChipProps extends ICommonsComponentProps, IAdjacentProps, ITagProps, IColorProps, IBgColorProps, IRippleProps, IBorderProps, IRoundedProps, IPaddingProps, IMarginProps, IDensityProps, IGroupItemProps, ILinkProps, ISizeProps, IElevationProps, IActiveProps, IHoverProps, Pick<ITypographyProps, 'fontFamily' | 'fontSize' | 'fontWeight' | 'letterSpacing' | 'textTransform'> {
|
|
19
19
|
closable?: boolean;
|
|
20
20
|
closeIcon?: TIcon;
|
|
21
21
|
closeLabel?: string;
|