@marigold/theme-rui 0.3.2 → 0.4.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/dist/index.mjs CHANGED
@@ -19,6 +19,7 @@ __export(components_exports, {
19
19
  DatePicker: () => DatePicker,
20
20
  Dialog: () => Dialog,
21
21
  Divider: () => Divider,
22
+ Drawer: () => Drawer,
22
23
  Field: () => Field,
23
24
  Footer: () => Footer,
24
25
  Header: () => Header,
@@ -99,9 +100,7 @@ var Accordion = {
99
100
  }
100
101
  }
101
102
  ),
102
- content: cva(
103
- "overflow-hidden text-sm text-muted-foreground in-data-[expanded]:pb-2"
104
- ),
103
+ content: cva("overflow-hidden in-data-[expanded]:pb-2"),
105
104
  icon: cva(
106
105
  "pointer-events-none shrink-0 opacity-60 transition-transform duration-200"
107
106
  )
@@ -162,7 +161,7 @@ var Button = cva4(
162
161
  variants: {
163
162
  variant: {
164
163
  primary: "bg-brand text-brand-foreground shadow-sm shadow-black/5 hover:bg-brand/90",
165
- secondary: "border border-input bg-background shadow-sm shadow-black/5 hover:bg-hover hover:text-foreground",
164
+ secondary: "border border-input bg-background shadow-sm shadow-black/5 hover:bg-hover hover:text-foreground expanded:bg-hover",
166
165
  destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
167
166
  ghost: "hover:bg-hover hover:text-foreground",
168
167
  // only used for calendar in MonthListBox and YearListBox to have a hover over other options
@@ -316,7 +315,7 @@ var Dialog = {
316
315
  container: cva12(
317
316
  [
318
317
  "flex flex-col gap-0 p-0",
319
- "bg-background rounded-xl border p-6 shadow-lg overflow-y-auto",
318
+ "bg-surface-overlay rounded-xl border p-6 shadow-lg overflow-y-auto",
320
319
  "w-full max-w-[calc(100%-2rem)]",
321
320
  "sm:max-h-[min(640px,80vh)] max-h-[calc(100%-2rem)]"
322
321
  ],
@@ -350,9 +349,70 @@ var Divider = cva13(
350
349
  }
351
350
  );
352
351
 
353
- // src/components/IconButton.styles.ts
352
+ // src/components/Drawer.styles.ts
354
353
  import { cva as cva14 } from "@marigold/system";
355
- var IconButton = cva14("", {
354
+ var Drawer = {
355
+ overlay: cva14([
356
+ "group/overlay",
357
+ "entering:animate-slide-in-right exiting:animate-slide-out-right"
358
+ ]),
359
+ container: cva14(
360
+ [
361
+ "relative grid-rows-[auto_1fr_auto]",
362
+ "bg-surface-overlay border-input border-l shadow-lg",
363
+ /**
364
+ * The fade animation only start when entering is finished,
365
+ * to prevent flickering we hide the elements during the
366
+ * slide in animation.
367
+ */
368
+ // '*:group-entering/overlay:opacity-0',
369
+ // '*:animate-fade-in *:[animation-duration:0.2s]',
370
+ // '*:[animation-delay:var(--slide-in-duration)]',
371
+ /**
372
+ * The drawer's child elements will have a secondary fade-in-up animation,
373
+ * which starts only after the drawer has fully slid in.
374
+ *
375
+ * To achieve this, we initially hide the children and allow them to remain
376
+ * in their final animation state (using `animation-fill-mode`).
377
+ * A slight delay is applied to each child to create a staggered fade-in-up effect.
378
+ */
379
+ "*:opacity-0 *:[animation-fill-mode:forwards]",
380
+ "*:animate-fade-in-up *:[animation-delay:calc(var(--slide-in-duration)+(var(--i)*150ms))]",
381
+ /**
382
+ * Fade out content of the slider, looks smoother and less clutter.
383
+ * Keep the "not-group-exiting" of the fade in animation, because
384
+ * elements can only have one animation.
385
+ */
386
+ "*:group-exiting/overlay:animate-fade-out! *:group-exiting/overlay:[animation-delay:0s]!"
387
+ ],
388
+ {
389
+ variants: {
390
+ size: {
391
+ default: "w-80"
392
+ }
393
+ },
394
+ defaultVariants: {
395
+ size: "default"
396
+ }
397
+ }
398
+ ),
399
+ closeButton: cva14([
400
+ "absolute top-3.5 right-3 z-50",
401
+ "flex size-7 items-center justify-center rounded transition-[color,box-shadow]",
402
+ "mixin-ring-focus-visible",
403
+ "[&_svg]:size-4 [&_svg]:opacity-60 [&_svg]:transition-opacity hover:[&_svg]:opacity-100"
404
+ ]),
405
+ header: cva14("border-border border-b px-6 py-4"),
406
+ title: cva14("font-semibold text-base"),
407
+ content: cva14("px-6 py-4 overflow-y-auto outline-none"),
408
+ actions: cva14(
409
+ "flex flex-row gap-3 justify-end border-border border-t px-6 py-4"
410
+ )
411
+ };
412
+
413
+ // src/components/IconButton.styles.ts
414
+ import { cva as cva15 } from "@marigold/system";
415
+ var IconButton = cva15("", {
356
416
  variants: {
357
417
  variant: {
358
418
  navigation: "inline-flex items-center justify-center whitespace-nowrap rounded-lg text-sm font-medium transition-colors outline-offset-2 focus-visible:outline-2 outline-ring/30 disabled:pointer-events-none disabled:bg-disabled disabled:text-disabled-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 hover:bg-hover hover:text-hover-foreground h-9 py-2 gap-1 px-2.5"
@@ -361,20 +421,20 @@ var IconButton = cva14("", {
361
421
  });
362
422
 
363
423
  // src/components/Field.styles.ts
364
- import { cva as cva15 } from "@marigold/system";
365
- var Field = cva15("space-y-2");
424
+ import { cva as cva16 } from "@marigold/system";
425
+ var Field = cva16("space-y-2");
366
426
 
367
427
  // src/components/Footer.styles.ts
368
- import { cva as cva16 } from "@marigold/system";
369
- var Footer = cva16("");
428
+ import { cva as cva17 } from "@marigold/system";
429
+ var Footer = cva17("");
370
430
 
371
431
  // src/components/Header.styles.ts
372
- import { cva as cva17 } from "@marigold/system";
373
- var Header = cva17("");
432
+ import { cva as cva18 } from "@marigold/system";
433
+ var Header = cva18("");
374
434
 
375
435
  // src/components/Headline.styles.ts
376
- import { cva as cva18 } from "@marigold/system";
377
- var Headline = cva18("", {
436
+ import { cva as cva19 } from "@marigold/system";
437
+ var Headline = cva19("", {
378
438
  variants: {
379
439
  size: {
380
440
  "level-1": "text-5xl font-black",
@@ -388,34 +448,34 @@ var Headline = cva18("", {
388
448
  });
389
449
 
390
450
  // src/components/HelpText.styles.ts
391
- import { cva as cva19 } from "@marigold/system";
451
+ import { cva as cva20 } from "@marigold/system";
392
452
  var HelpText = {
393
- container: cva19([
453
+ container: cva20([
394
454
  "mt-2 text-xs text-muted-foreground group-disabled/field:text-disabled-foreground",
395
455
  "group-invalid/field:text-destructive"
396
456
  ]),
397
- icon: cva19("")
457
+ icon: cva20("")
398
458
  };
399
459
 
400
460
  // src/components/Image.styles.ts
401
- import { cva as cva20 } from "@marigold/system";
402
- var Image = cva20();
461
+ import { cva as cva21 } from "@marigold/system";
462
+ var Image = cva21();
403
463
 
404
464
  // src/components/Label.styles.ts
405
- import { cva as cva21 } from "@marigold/system";
465
+ import { cva as cva22 } from "@marigold/system";
406
466
  var Label = {
407
- container: cva21([
467
+ container: cva22([
408
468
  "text-sm font-medium leading-4 text-foreground",
409
469
  "group-disabled/field:cursor-not-allowed group-disabled/field:text-disabled-foreground"
410
470
  ]),
411
- indicator: cva21(
471
+ indicator: cva22(
412
472
  "group-required/field:block group-required/field:text-destructive"
413
473
  )
414
474
  };
415
475
 
416
476
  // src/components/Link.styles.ts
417
- import { cva as cva22 } from "@marigold/system";
418
- var Link = cva22(
477
+ import { cva as cva23 } from "@marigold/system";
478
+ var Link = cva23(
419
479
  "underline aria-[disabled]:cursor-not-allowed py-2 underline-offset-4",
420
480
  {
421
481
  variants: {
@@ -428,71 +488,74 @@ var Link = cva22(
428
488
  );
429
489
 
430
490
  // src/components/List.styles.ts
431
- import { cva as cva23 } from "@marigold/system";
491
+ import { cva as cva24 } from "@marigold/system";
432
492
  var List = {
433
- ul: cva23("ml-6 list-inside list-disc py-3"),
434
- ol: cva23("ml-6 list-inside list-decimal py-3"),
435
- item: cva23("pt-3")
493
+ ul: cva24("ml-6 list-inside list-disc py-3"),
494
+ ol: cva24("ml-6 list-inside list-decimal py-3"),
495
+ item: cva24("pt-3")
436
496
  };
437
497
 
438
498
  // src/components/ListBox.styles.ts
439
- import { cva as cva24 } from "@marigold/system";
499
+ import { cva as cva25 } from "@marigold/system";
440
500
  var ListBox = {
441
- container: cva24([
501
+ container: cva25([
442
502
  "overflow-hidden rounded-md border border-input group-[trigger]/popover:border-0"
443
503
  ]),
444
- list: cva24(["space-y-1 bg-background p-1 text-sm outline-0"]),
445
- option: cva24([
504
+ list: cva25(["space-y-1 bg-background p-1 text-sm outline-0"]),
505
+ option: cva25([
446
506
  "relative flex flex-col rounded-md px-2 py-1.5 text-sm text-foreground cursor-pointer",
447
507
  "selected:bg-selected",
448
508
  "hover:bg-hover hover:text-hover-foreground",
449
509
  "disabled:cursor-not-allowed disabled:text-disabled-foreground",
450
510
  "mixin-ring-focus-visible"
451
511
  ]),
452
- section: cva24(""),
453
- header: cva24(
512
+ section: cva25(""),
513
+ header: cva25(
454
514
  "[&_header]:px-2 [&_header]:py-1.5 [&_header]:text-xs [&_header]:font-medium [&_header]:text-muted-foreground"
455
515
  )
456
516
  };
457
517
 
458
518
  // src/components/Menu.styles.ts
459
- import { cva as cva25 } from "@marigold/system";
519
+ import { cva as cva26 } from "@marigold/system";
460
520
  var Menu = {
461
- container: cva25([
521
+ container: cva26([
462
522
  "bg-surface-overlay text-foreground z-50 min-w-40 overflow-hidden rounded-md p-1 border-border"
463
523
  ]),
464
- item: cva25([
524
+ item: cva26([
465
525
  "focus:bg-focus focus:text-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none disabled:text-disabled-foreground"
466
526
  ]),
467
- section: cva25(
527
+ section: cva26(
468
528
  "text-muted-foreground px-2 py-1.5 text-xs font-medium border-t border-t-border in-first:border-t-0"
469
529
  )
470
530
  };
471
531
 
472
532
  // src/components/NumberField.styles.ts
473
- import { cva as cva26 } from "@marigold/system";
533
+ import { cva as cva27 } from "@marigold/system";
474
534
  var NumberField = {
475
- group: cva26([
535
+ group: cva27([
536
+ "rounded-lg h-input",
476
537
  "mixin-ring-has-focus-visible",
477
538
  inputInvalid,
478
- "relative inline-flex w-full -mb-0.5 items-center overflow-hidden whitespace-nowrap rounded-lg h-input grow text-center tabular-nums text-foreground",
539
+ inputReadOnly,
479
540
  "border border-input text-sm shadow-sm shadow-black/5 transition-shadow",
480
541
  "data-invalid:data-[focus-within]:border-destructive data-invalid:data-[focus-within]:ring-destructive/20"
481
542
  ]),
482
- stepper: cva26([
483
- "w-7 h-full",
543
+ stepper: cva27([
544
+ "w-7 h-full text-center shrink-0",
484
545
  "disabled:text-disabled-foreground disabled:bg-disabled",
485
- // Make sure focus ring is only around the component and not the stepper buttons
486
546
  "border-input! first-of-type:border-r! last-of-type:border-l!"
487
547
  ]),
488
- input: cva26(
489
- "border-none shadow-none rounded-none outline-offset-0 text-center focus-visible:ring-0"
490
- )
548
+ input: cva27([
549
+ "tabular-nums text-foreground px-3 py-2",
550
+ "min-w-0 flex-1",
551
+ "group-[[data-stepper]]/field:text-center",
552
+ "disabled:text-disabled-foreground disabled:bg-disabled"
553
+ ])
491
554
  };
492
555
 
493
556
  // src/components/Popover.styles.ts
494
- import { cva as cva27 } from "@marigold/system";
495
- var Popover = cva27([
557
+ import { cva as cva28 } from "@marigold/system";
558
+ var Popover = cva28([
496
559
  "group/popover",
497
560
  "z-50 overflow-y-auto overflow-x-hidden rounded-md outline-0 border-input",
498
561
  /** animate stuff missing */
@@ -504,27 +567,27 @@ var Popover = cva27([
504
567
  ]);
505
568
 
506
569
  // src/components/Radio.styles.ts
507
- import { cva as cva28 } from "@marigold/system";
570
+ import { cva as cva29 } from "@marigold/system";
508
571
  var Radio = {
509
- container: cva28("group-disabled/radio:cursor-not-allowed"),
510
- label: cva28([
572
+ container: cva29("group-disabled/radio:cursor-not-allowed"),
573
+ label: cva29([
511
574
  "text-sm font-normal cursor-pointer",
512
575
  "group-disabled/radio:text-disabled-foreground group-disabled/radio:cursor-not-allowed"
513
576
  ]),
514
- radio: cva28([
577
+ radio: cva29([
515
578
  "aspect-square size-4 rounded-full",
516
579
  "border border-input shadow-sm shadow-black/5",
517
580
  "mixin-ring-focus-visible-radio",
518
581
  "group-disabled/radio:border-disabled",
519
582
  "group-selected/radio:border-brand group-selected/radio:bg-brand group-selected/radio:text-brand-foreground"
520
583
  ]),
521
- group: cva28()
584
+ group: cva29()
522
585
  };
523
586
 
524
587
  // src/components/Pagination.styles.ts
525
- import { cva as cva29 } from "@marigold/system";
588
+ import { cva as cva30 } from "@marigold/system";
526
589
  var Pagination = {
527
- navigationButton: cva29([
590
+ navigationButton: cva30([
528
591
  "inline-flex items-center justify-center whitespace-nowrap rounded-lg text-sm font-medium transition-colors",
529
592
  "mixin-ring-focus-visible",
530
593
  "disabled:pointer-events-none disabled:bg-disabled disabled:text-disabled-foreground",
@@ -532,7 +595,7 @@ var Pagination = {
532
595
  "hover:bg-hover hover:text-hover-foreground",
533
596
  "h-9 py-2 gap-1 px-2.5"
534
597
  ]),
535
- pageButton: cva29([
598
+ pageButton: cva30([
536
599
  "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm font-medium transition-colors bg-background size-9",
537
600
  "mixin-ring-focus-visible",
538
601
  "disabled:pointer-events-none disabled:bg-disabled disabled:text-disabled-foreground",
@@ -540,19 +603,19 @@ var Pagination = {
540
603
  "data-[selected=true]:border data-[selected=true]:border-input data-[selected=true]:shadow-xs",
541
604
  "hover:bg-hover hover:text-hover-foreground"
542
605
  ]),
543
- icon: cva29("h-4 w-4")
606
+ icon: cva30("h-4 w-4")
544
607
  };
545
608
 
546
609
  // src/components/ProgressCycle.styles.ts
547
- import { cva as cva30 } from "@marigold/system";
548
- var ProgressCycle = cva30([
610
+ import { cva as cva31 } from "@marigold/system";
611
+ var ProgressCycle = cva31([
549
612
  "stroke-foreground"
550
613
  ]);
551
614
 
552
615
  // src/components/SectionMessage.styles.ts
553
- import { cva as cva31 } from "@marigold/system";
616
+ import { cva as cva32 } from "@marigold/system";
554
617
  var SectionMessage = {
555
- container: cva31(
618
+ container: cva32(
556
619
  [
557
620
  'grid-cols-[min-content_auto_min-content] gap-x-3 gap-y-1 [grid-template-areas:"icon_title_close""icon_content_content"]',
558
621
  "bg-background rounded-md border px-3 py-4"
@@ -571,8 +634,8 @@ var SectionMessage = {
571
634
  }
572
635
  }
573
636
  ),
574
- title: cva31("text-sm font-medium"),
575
- content: cva31("text-muted-foreground text-sm leading-5 font-normal", {
637
+ title: cva32("text-sm font-medium"),
638
+ content: cva32("text-muted-foreground text-sm leading-5 font-normal", {
576
639
  variants: {
577
640
  variant: {
578
641
  success: "text-success-muted-foreground",
@@ -585,7 +648,7 @@ var SectionMessage = {
585
648
  variant: "info"
586
649
  }
587
650
  }),
588
- icon: cva31("h-4 w-4 align-baseline leading-none pt-0.5", {
651
+ icon: cva32("h-4 w-4 align-baseline leading-none pt-0.5", {
589
652
  variants: {
590
653
  variant: {
591
654
  success: "text-success-muted-accent",
@@ -598,7 +661,7 @@ var SectionMessage = {
598
661
  variant: "info"
599
662
  }
600
663
  }),
601
- close: cva31([
664
+ close: cva32([
602
665
  "flex items-center justify-center",
603
666
  "rounded-md transition-color size-8 shrink-0 p-0 text-foreground cursor-pointer",
604
667
  "[&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
@@ -610,10 +673,10 @@ var SectionMessage = {
610
673
  };
611
674
 
612
675
  // src/components/Select.styles.ts
613
- import { cva as cva32 } from "@marigold/system";
676
+ import { cva as cva33 } from "@marigold/system";
614
677
  var Select = {
615
- icon: cva32("text-muted-foreground/80"),
616
- select: cva32([
678
+ icon: cva33("text-muted-foreground/80"),
679
+ select: cva33([
617
680
  inputContainer,
618
681
  inputInvalid,
619
682
  inputDisabled,
@@ -625,37 +688,37 @@ var Select = {
625
688
  };
626
689
 
627
690
  // src/components/Slider.styles.ts
628
- import { cva as cva33 } from "@marigold/system";
691
+ import { cva as cva34 } from "@marigold/system";
629
692
  var Slider = {
630
- container: cva33("*:aria-hidden:hidden"),
631
- track: cva33([
693
+ container: cva34("*:aria-hidden:hidden"),
694
+ track: cva34([
632
695
  "relative bg-muted rounded-lg flex w-full touch-none select-none items-center data-[orientation=vertical]:h-full data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col data-[disabled]:opacity-50"
633
696
  ]),
634
- selectedTrack: cva33([
697
+ selectedTrack: cva34([
635
698
  "absolute bg-black data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full rounded-lg"
636
699
  ]),
637
- thumb: cva33([
700
+ thumb: cva34([
638
701
  "block h-5 w-5 rounded-full border-2 border-primary bg-background transition-colors",
639
702
  "mixin-ring-focus-visible-borderless",
640
703
  "data-[disabled]:cursor-not-allowed"
641
704
  ]),
642
- output: cva33("text-text-base text-sm")
705
+ output: cva34("text-text-base text-sm")
643
706
  };
644
707
 
645
708
  // src/components/Switch.styles.ts
646
- import { cva as cva34 } from "@marigold/system";
709
+ import { cva as cva35 } from "@marigold/system";
647
710
  var Switch = {
648
- container: cva34(
711
+ container: cva35(
649
712
  "disabled:cursor-not-allowed disabled:text-disabled-foreground"
650
713
  ),
651
- track: cva34([
714
+ track: cva35([
652
715
  "inline-flex h-6 w-10 shrink-0 cursor-pointer items-center rounded-full",
653
716
  "border-2 border-transparent",
654
717
  "group-disabled/switch:bg-disabled group-disabled/switch:text-disabled-foreground group-selected/switch:group-disabled/switch:bg-disabled group-selected/switch:group-disabled/switch:text-disabled-foreground",
655
718
  "group-selected/switch:bg-brand bg-input",
656
719
  "mixin-ring-focus-visible-switch"
657
720
  ]),
658
- thumb: cva34([
721
+ thumb: cva35([
659
722
  "pointer-events-none block size-5 rounded-full",
660
723
  "bg-background shadow-sm shadow-black/5",
661
724
  "ring-0 transition-transform duration-300 ease-[cubic-bezier(0.16,1,0.3,1)]",
@@ -664,9 +727,9 @@ var Switch = {
664
727
  };
665
728
 
666
729
  // src/components/Table.styles.ts
667
- import { cva as cva35 } from "@marigold/system";
730
+ import { cva as cva36 } from "@marigold/system";
668
731
  var Table = {
669
- table: cva35(
732
+ table: cva36(
670
733
  "text-sm [&_td]:border-border [&_th]:border-border border-separate border-spacing-0 [&_th]:border-b [&_tr]:border-none [&_tr:not(:last-child)_td]:border-b",
671
734
  {
672
735
  variants: {
@@ -677,7 +740,7 @@ var Table = {
677
740
  }
678
741
  }
679
742
  ),
680
- thead: cva35(
743
+ thead: cva36(
681
744
  // for sticky header
682
745
  "bg-background/90 top-0 z-10 backdrop-blur-xs ",
683
746
  {
@@ -689,7 +752,7 @@ var Table = {
689
752
  }
690
753
  }
691
754
  ),
692
- headerRow: cva35(["border-border border-b"], {
755
+ headerRow: cva36(["border-border border-b"], {
693
756
  variants: {
694
757
  variant: {
695
758
  default: "",
@@ -700,7 +763,7 @@ var Table = {
700
763
  variant: "default"
701
764
  }
702
765
  }),
703
- header: cva35(
766
+ header: cva36(
704
767
  [
705
768
  "h-12 px-3 align-middle font-medium text-muted-foreground last:text-right",
706
769
  "focus-visible:outline-2 outline-offset-2 outline-ring/70"
@@ -717,8 +780,8 @@ var Table = {
717
780
  }
718
781
  }
719
782
  ),
720
- body: cva35("[&_tr:last-child]:border-0"),
721
- row: cva35(
783
+ body: cva36("[&_tr:last-child]:border-0"),
784
+ row: cva36(
722
785
  [
723
786
  "border-b border-border transition-colors",
724
787
  "focus-visible:outline-2 outline-offset-2 outline-ring/70",
@@ -736,7 +799,7 @@ var Table = {
736
799
  }
737
800
  }
738
801
  ),
739
- cell: cva35(
802
+ cell: cva36(
740
803
  [
741
804
  "p-3 align-middle last:text-right",
742
805
  "focus-visible:outline-2 outline-offset-2 outline-ring/70"
@@ -756,14 +819,14 @@ var Table = {
756
819
  };
757
820
 
758
821
  // src/components/Tabs.styles.ts
759
- import { cva as cva36 } from "@marigold/system";
822
+ import { cva as cva37 } from "@marigold/system";
760
823
  var Tabs = {
761
- container: cva36("flex flex-col gap-2"),
762
- tabsList: cva36([
824
+ container: cva37("flex flex-col gap-2"),
825
+ tabsList: cva37([
763
826
  "text-muted-foreground",
764
827
  "flex items-center p-0.5 h-auto gap-2 border-b px-0 py-1"
765
828
  ]),
766
- tab: cva36([
829
+ tab: cva37([
767
830
  "relative inline-flex items-center justify-center rounded-sm px-3 py-1.5 text-sm font-medium whitespace-nowrap transition-colors",
768
831
  "[&_svg]:shrink-0",
769
832
  "mixin-ring-focus-visible",
@@ -772,13 +835,13 @@ var Tabs = {
772
835
  "data-selected:text-foreground data-selected:hover:bg-hover",
773
836
  "data-[selected=true]:after:bg-foreground after:absolute after:inset-x-0 after:bottom-0 after:-mb-1 after:h-0.5"
774
837
  ]),
775
- tabpanel: cva36(["py-4 rounded-sm", "mixin-ring-focus-visible"])
838
+ tabpanel: cva37(["py-4 rounded-sm", "mixin-ring-focus-visible"])
776
839
  };
777
840
 
778
841
  // src/components/Tag.styles.ts
779
- import { cva as cva37 } from "@marigold/system";
842
+ import { cva as cva38 } from "@marigold/system";
780
843
  var Tag = {
781
- tag: cva37([
844
+ tag: cva38([
782
845
  "relative inline-flex items-center gap-[7px]",
783
846
  "border border-solid border-input rounded-md",
784
847
  "font-medium text-xs",
@@ -788,18 +851,18 @@ var Tag = {
788
851
  "data-[disabled]:cursor-not-allowed data-[disabled]:text-disabled-foreground data-[disabled]:bg-disabled",
789
852
  "mixin-ring-focus-visible"
790
853
  ]),
791
- closeButton: cva37([
854
+ closeButton: cva38([
792
855
  "size-4 flex items-center justify-end whitespace-nowrap",
793
856
  "font-medium text-muted-foreground text-sm hover:text-brand rounded-md",
794
857
  "p-0 transition-colors outline-0 cursor-pointer",
795
858
  "disabled:bg-disabled disabled:text-disabled-foreground disabled:cursor-not-allowed"
796
859
  ]),
797
- listItems: cva37("flex flex-wrap items-center gap-1")
860
+ listItems: cva38("flex flex-wrap items-center gap-1")
798
861
  };
799
862
 
800
863
  // src/components/TextArea.styles.ts
801
- import { cva as cva38 } from "@marigold/system";
802
- var TextArea = cva38([
864
+ import { cva as cva39 } from "@marigold/system";
865
+ var TextArea = cva39([
803
866
  inputContainer,
804
867
  inputInvalid,
805
868
  "mixin-ring-focus-visible",
@@ -809,9 +872,12 @@ var TextArea = cva38([
809
872
  ]);
810
873
 
811
874
  // src/components/Text.styles.ts
812
- import { cva as cva39 } from "@marigold/system";
813
- var Text = cva39("", {
875
+ import { cva as cva40 } from "@marigold/system";
876
+ var Text = cva40("", {
814
877
  variants: {
878
+ variant: {
879
+ muted: "text-muted-foreground"
880
+ },
815
881
  size: {
816
882
  // Adding a default here, which beasically acts as an inherit
817
883
  default: "",
@@ -836,9 +902,9 @@ var Text = cva39("", {
836
902
  });
837
903
 
838
904
  // src/components/Tooltip.styles.ts
839
- import { cva as cva40 } from "@marigold/system";
905
+ import { cva as cva41 } from "@marigold/system";
840
906
  var Tooltip = {
841
- container: cva40(
907
+ container: cva41(
842
908
  [
843
909
  "text-brand-foreground bg-brand relative z-50 max-w-70 rounded-md border border-brand px-3 py-1.5 text-sm ",
844
910
  "placement-top:mb-2",
@@ -858,7 +924,7 @@ var Tooltip = {
858
924
  }
859
925
  }
860
926
  ),
861
- arrow: cva40(
927
+ arrow: cva41(
862
928
  [
863
929
  "fill-brand stroke-brand",
864
930
  // right
@@ -883,8 +949,8 @@ var Tooltip = {
883
949
  };
884
950
 
885
951
  // src/components/Underlay.styles.ts
886
- import { cva as cva41 } from "@marigold/system";
887
- var Underlay = cva41("", {
952
+ import { cva as cva42 } from "@marigold/system";
953
+ var Underlay = cva42("", {
888
954
  variants: {
889
955
  variant: {
890
956
  modal: " bg-black/80 backdrop-blur-sm"
@@ -893,9 +959,9 @@ var Underlay = cva41("", {
893
959
  });
894
960
 
895
961
  // src/components/XLoader.styles.ts
896
- import { cva as cva42 } from "@marigold/system";
962
+ import { cva as cva43 } from "@marigold/system";
897
963
  var XLoader = {
898
- container: cva42("grid place-items-center text-brand", {
964
+ container: cva43("grid place-items-center text-brand", {
899
965
  variants: {
900
966
  variant: {
901
967
  default: "",
@@ -912,7 +978,7 @@ var XLoader = {
912
978
  size: "default"
913
979
  }
914
980
  }),
915
- loader: cva42("size-full", {
981
+ loader: cva43("size-full", {
916
982
  variants: {
917
983
  variant: {
918
984
  default: "",
@@ -929,7 +995,7 @@ var XLoader = {
929
995
  size: "default"
930
996
  }
931
997
  }),
932
- label: cva42("text-current text-sm")
998
+ label: cva43("text-current text-sm")
933
999
  };
934
1000
 
935
1001
  // src/theme.ts