@marigold/theme-rui 0.3.2 → 0.5.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.js CHANGED
@@ -40,6 +40,7 @@ __export(components_exports, {
40
40
  DatePicker: () => DatePicker,
41
41
  Dialog: () => Dialog,
42
42
  Divider: () => Divider,
43
+ Drawer: () => Drawer,
43
44
  Field: () => Field,
44
45
  Footer: () => Footer,
45
46
  Header: () => Header,
@@ -53,6 +54,7 @@ __export(components_exports, {
53
54
  List: () => List,
54
55
  ListBox: () => ListBox,
55
56
  Menu: () => Menu,
57
+ MultiSelect: () => MultiSelect,
56
58
  NumberField: () => NumberField,
57
59
  Pagination: () => Pagination,
58
60
  Popover: () => Popover,
@@ -120,9 +122,7 @@ var Accordion = {
120
122
  }
121
123
  }
122
124
  ),
123
- content: (0, import_system.cva)(
124
- "overflow-hidden text-sm text-muted-foreground in-data-[expanded]:pb-2"
125
- ),
125
+ content: (0, import_system.cva)("overflow-hidden in-data-[expanded]:pb-2"),
126
126
  icon: (0, import_system.cva)(
127
127
  "pointer-events-none shrink-0 opacity-60 transition-transform duration-200"
128
128
  )
@@ -183,7 +183,7 @@ var Button = (0, import_system4.cva)(
183
183
  variants: {
184
184
  variant: {
185
185
  primary: "bg-brand text-brand-foreground shadow-sm shadow-black/5 hover:bg-brand/90",
186
- secondary: "border border-input bg-background shadow-sm shadow-black/5 hover:bg-hover hover:text-foreground",
186
+ secondary: "border border-input bg-background shadow-sm shadow-black/5 hover:bg-hover hover:text-foreground expanded:bg-hover",
187
187
  destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
188
188
  ghost: "hover:bg-hover hover:text-foreground",
189
189
  // only used for calendar in MonthListBox and YearListBox to have a hover over other options
@@ -337,7 +337,7 @@ var Dialog = {
337
337
  container: (0, import_system12.cva)(
338
338
  [
339
339
  "flex flex-col gap-0 p-0",
340
- "bg-background rounded-xl border p-6 shadow-lg overflow-y-auto",
340
+ "bg-surface-overlay rounded-xl border p-6 shadow-lg overflow-y-auto",
341
341
  "w-full max-w-[calc(100%-2rem)]",
342
342
  "sm:max-h-[min(640px,80vh)] max-h-[calc(100%-2rem)]"
343
343
  ],
@@ -371,9 +371,70 @@ var Divider = (0, import_system13.cva)(
371
371
  }
372
372
  );
373
373
 
374
- // src/components/IconButton.styles.ts
374
+ // src/components/Drawer.styles.ts
375
375
  var import_system14 = require("@marigold/system");
376
- var IconButton = (0, import_system14.cva)("", {
376
+ var Drawer = {
377
+ overlay: (0, import_system14.cva)([
378
+ "group/overlay",
379
+ "entering:animate-slide-in-right exiting:animate-slide-out-right"
380
+ ]),
381
+ container: (0, import_system14.cva)(
382
+ [
383
+ "relative grid-rows-[auto_1fr_auto]",
384
+ "bg-surface-overlay border-input border-l shadow-lg",
385
+ /**
386
+ * The fade animation only start when entering is finished,
387
+ * to prevent flickering we hide the elements during the
388
+ * slide in animation.
389
+ */
390
+ // '*:group-entering/overlay:opacity-0',
391
+ // '*:animate-fade-in *:[animation-duration:0.2s]',
392
+ // '*:[animation-delay:var(--slide-in-duration)]',
393
+ /**
394
+ * The drawer's child elements will have a secondary fade-in-up animation,
395
+ * which starts only after the drawer has fully slid in.
396
+ *
397
+ * To achieve this, we initially hide the children and allow them to remain
398
+ * in their final animation state (using `animation-fill-mode`).
399
+ * A slight delay is applied to each child to create a staggered fade-in-up effect.
400
+ */
401
+ "*:opacity-0 *:[animation-fill-mode:forwards]",
402
+ "*:animate-fade-in-up *:[animation-delay:calc(var(--slide-in-duration)+(var(--i)*150ms))]",
403
+ /**
404
+ * Fade out content of the slider, looks smoother and less clutter.
405
+ * Keep the "not-group-exiting" of the fade in animation, because
406
+ * elements can only have one animation.
407
+ */
408
+ "*:group-exiting/overlay:animate-fade-out! *:group-exiting/overlay:[animation-delay:0s]!"
409
+ ],
410
+ {
411
+ variants: {
412
+ size: {
413
+ default: "w-80"
414
+ }
415
+ },
416
+ defaultVariants: {
417
+ size: "default"
418
+ }
419
+ }
420
+ ),
421
+ closeButton: (0, import_system14.cva)([
422
+ "absolute top-3.5 right-3 z-50",
423
+ "flex size-7 items-center justify-center rounded transition-[color,box-shadow]",
424
+ "mixin-ring-focus-visible",
425
+ "[&_svg]:size-4 [&_svg]:opacity-60 [&_svg]:transition-opacity hover:[&_svg]:opacity-100"
426
+ ]),
427
+ header: (0, import_system14.cva)("border-border border-b px-6 py-4"),
428
+ title: (0, import_system14.cva)("font-semibold text-base"),
429
+ content: (0, import_system14.cva)("px-6 py-4 overflow-y-auto outline-none"),
430
+ actions: (0, import_system14.cva)(
431
+ "flex flex-row gap-3 justify-end border-border border-t px-6 py-4"
432
+ )
433
+ };
434
+
435
+ // src/components/IconButton.styles.ts
436
+ var import_system15 = require("@marigold/system");
437
+ var IconButton = (0, import_system15.cva)("", {
377
438
  variants: {
378
439
  variant: {
379
440
  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"
@@ -382,20 +443,20 @@ var IconButton = (0, import_system14.cva)("", {
382
443
  });
383
444
 
384
445
  // src/components/Field.styles.ts
385
- var import_system15 = require("@marigold/system");
386
- var Field = (0, import_system15.cva)("space-y-2");
446
+ var import_system16 = require("@marigold/system");
447
+ var Field = (0, import_system16.cva)("space-y-2");
387
448
 
388
449
  // src/components/Footer.styles.ts
389
- var import_system16 = require("@marigold/system");
390
- var Footer = (0, import_system16.cva)("");
450
+ var import_system17 = require("@marigold/system");
451
+ var Footer = (0, import_system17.cva)("");
391
452
 
392
453
  // src/components/Header.styles.ts
393
- var import_system17 = require("@marigold/system");
394
- var Header = (0, import_system17.cva)("");
454
+ var import_system18 = require("@marigold/system");
455
+ var Header = (0, import_system18.cva)("");
395
456
 
396
457
  // src/components/Headline.styles.ts
397
- var import_system18 = require("@marigold/system");
398
- var Headline = (0, import_system18.cva)("", {
458
+ var import_system19 = require("@marigold/system");
459
+ var Headline = (0, import_system19.cva)("", {
399
460
  variants: {
400
461
  size: {
401
462
  "level-1": "text-5xl font-black",
@@ -409,34 +470,34 @@ var Headline = (0, import_system18.cva)("", {
409
470
  });
410
471
 
411
472
  // src/components/HelpText.styles.ts
412
- var import_system19 = require("@marigold/system");
473
+ var import_system20 = require("@marigold/system");
413
474
  var HelpText = {
414
- container: (0, import_system19.cva)([
475
+ container: (0, import_system20.cva)([
415
476
  "mt-2 text-xs text-muted-foreground group-disabled/field:text-disabled-foreground",
416
477
  "group-invalid/field:text-destructive"
417
478
  ]),
418
- icon: (0, import_system19.cva)("")
479
+ icon: (0, import_system20.cva)("")
419
480
  };
420
481
 
421
482
  // src/components/Image.styles.ts
422
- var import_system20 = require("@marigold/system");
423
- var Image = (0, import_system20.cva)();
483
+ var import_system21 = require("@marigold/system");
484
+ var Image = (0, import_system21.cva)();
424
485
 
425
486
  // src/components/Label.styles.ts
426
- var import_system21 = require("@marigold/system");
487
+ var import_system22 = require("@marigold/system");
427
488
  var Label = {
428
- container: (0, import_system21.cva)([
489
+ container: (0, import_system22.cva)([
429
490
  "text-sm font-medium leading-4 text-foreground",
430
491
  "group-disabled/field:cursor-not-allowed group-disabled/field:text-disabled-foreground"
431
492
  ]),
432
- indicator: (0, import_system21.cva)(
493
+ indicator: (0, import_system22.cva)(
433
494
  "group-required/field:block group-required/field:text-destructive"
434
495
  )
435
496
  };
436
497
 
437
498
  // src/components/Link.styles.ts
438
- var import_system22 = require("@marigold/system");
439
- var Link = (0, import_system22.cva)(
499
+ var import_system23 = require("@marigold/system");
500
+ var Link = (0, import_system23.cva)(
440
501
  "underline aria-[disabled]:cursor-not-allowed py-2 underline-offset-4",
441
502
  {
442
503
  variants: {
@@ -449,71 +510,123 @@ var Link = (0, import_system22.cva)(
449
510
  );
450
511
 
451
512
  // src/components/List.styles.ts
452
- var import_system23 = require("@marigold/system");
513
+ var import_system24 = require("@marigold/system");
453
514
  var List = {
454
- ul: (0, import_system23.cva)("ml-6 list-inside list-disc py-3"),
455
- ol: (0, import_system23.cva)("ml-6 list-inside list-decimal py-3"),
456
- item: (0, import_system23.cva)("pt-3")
515
+ ul: (0, import_system24.cva)("ml-6 list-inside list-disc py-3"),
516
+ ol: (0, import_system24.cva)("ml-6 list-inside list-decimal py-3"),
517
+ item: (0, import_system24.cva)("pt-3")
457
518
  };
458
519
 
459
520
  // src/components/ListBox.styles.ts
460
- var import_system24 = require("@marigold/system");
521
+ var import_system25 = require("@marigold/system");
461
522
  var ListBox = {
462
- container: (0, import_system24.cva)([
523
+ container: (0, import_system25.cva)([
463
524
  "overflow-hidden rounded-md border border-input group-[trigger]/popover:border-0"
464
525
  ]),
465
- list: (0, import_system24.cva)(["space-y-1 bg-background p-1 text-sm outline-0"]),
466
- option: (0, import_system24.cva)([
526
+ list: (0, import_system25.cva)(["space-y-1 bg-background p-1 text-sm outline-0"]),
527
+ option: (0, import_system25.cva)([
467
528
  "relative flex flex-col rounded-md px-2 py-1.5 text-sm text-foreground cursor-pointer",
468
529
  "selected:bg-selected",
469
530
  "hover:bg-hover hover:text-hover-foreground",
470
531
  "disabled:cursor-not-allowed disabled:text-disabled-foreground",
471
532
  "mixin-ring-focus-visible"
472
533
  ]),
473
- section: (0, import_system24.cva)(""),
474
- header: (0, import_system24.cva)(
534
+ section: (0, import_system25.cva)(""),
535
+ header: (0, import_system25.cva)(
475
536
  "[&_header]:px-2 [&_header]:py-1.5 [&_header]:text-xs [&_header]:font-medium [&_header]:text-muted-foreground"
476
537
  )
477
538
  };
478
539
 
479
540
  // src/components/Menu.styles.ts
480
- var import_system25 = require("@marigold/system");
541
+ var import_system26 = require("@marigold/system");
481
542
  var Menu = {
482
- container: (0, import_system25.cva)([
543
+ container: (0, import_system26.cva)([
483
544
  "bg-surface-overlay text-foreground z-50 min-w-40 overflow-hidden rounded-md p-1 border-border"
484
545
  ]),
485
- item: (0, import_system25.cva)([
546
+ item: (0, import_system26.cva)([
486
547
  "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"
487
548
  ]),
488
- section: (0, import_system25.cva)(
549
+ section: (0, import_system26.cva)(
489
550
  "text-muted-foreground px-2 py-1.5 text-xs font-medium border-t border-t-border in-first:border-t-0"
490
551
  )
491
552
  };
492
553
 
554
+ // src/components/Multiselect.styles.ts
555
+ var import_system27 = require("@marigold/system");
556
+ var MultiSelect = {
557
+ field: (0, import_system27.cva)("grid gap-y-0.5"),
558
+ container: (0, import_system27.cva)([
559
+ "bg-background shadow-sm shadow-black/5 border",
560
+ "px-3 text-sm text-foreground transition-shadow",
561
+ "border border-input rounded-lg outline-hidden",
562
+ "aria-disabled:bg-disabled aria-disabled:text-disabled-foreground aria-disabled:hover:border-input aria-disabled:border-input aria-disabled:cursor-not-allowed",
563
+ "has-[input[data-invalid=true]]:border-destructive has-[input[data-invalid=true][data-focused=true]]:!border-destructive has-[input[data-invalid=true][data-focused=true]]:!ring-destructive/20",
564
+ "[&>*:first-child]:p-0",
565
+ "has-[input[data-focused=true]]:!border-ring has-[input[data-focused=true]]:!ring-ring/50 has-[input[data-focused=true]]:ring-[3px] has-[input[data-focused=true]]:!outline-none",
566
+ "has-[input[aria-readonly=true]]:bg-muted"
567
+ ]),
568
+ input: (0, import_system27.cva)([
569
+ "bg-transparent flex-1 h-full",
570
+ "leading-loose",
571
+ "data-[focused]:outline-hidden outline-hidden border-0",
572
+ "disabled:cursor-not-allowed",
573
+ "group-data-[icon]/input:pl-5",
574
+ "group-data-[action]/input:pr-8",
575
+ "placeholder:text-placeholder"
576
+ ]),
577
+ tag: (0, import_system27.cva)([
578
+ "border border-solid border-input rounded-md",
579
+ "bg-background",
580
+ "font-medium text-xs",
581
+ "flex items-center gap-1 ",
582
+ "h-7 px-2 cursor-default"
583
+ ]),
584
+ closeButton: (0, import_system27.cva)(
585
+ "size-4 cursor-pointer border-none bg-transparent p-0 leading-normal outline-0"
586
+ ),
587
+ icon: (0, import_system27.cva)("left-1"),
588
+ listContainer: (0, import_system27.cva)([
589
+ "bg-background border border-solid border-input mt-0.5 rounded-lg outline-0"
590
+ ]),
591
+ list: (0, import_system27.cva)("pointer-events-auto space-y-1 p-1"),
592
+ option: (0, import_system27.cva)([
593
+ "text-sm text-foreground",
594
+ "flex flex-col",
595
+ "cursor-pointer p-2 outline-hidden",
596
+ "[&.isFocused:not([aria-disabled=true])]:!text-foreground [&.isFocused[aria-disabled=true]]:bg-transparent",
597
+ "aria-disabled:text-disabled-foreground aria-disabled:cursor-not-allowed",
598
+ "[&.isFocused:not([aria-disabled=true])]:!bg-hover"
599
+ ]),
600
+ valueContainer: (0, import_system27.cva)("gap-2 py-2 min-h-input")
601
+ };
602
+
493
603
  // src/components/NumberField.styles.ts
494
- var import_system26 = require("@marigold/system");
604
+ var import_system28 = require("@marigold/system");
495
605
  var NumberField = {
496
- group: (0, import_system26.cva)([
606
+ group: (0, import_system28.cva)([
607
+ "rounded-lg h-input",
497
608
  "mixin-ring-has-focus-visible",
498
609
  inputInvalid,
499
- "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",
610
+ inputReadOnly,
500
611
  "border border-input text-sm shadow-sm shadow-black/5 transition-shadow",
501
612
  "data-invalid:data-[focus-within]:border-destructive data-invalid:data-[focus-within]:ring-destructive/20"
502
613
  ]),
503
- stepper: (0, import_system26.cva)([
504
- "w-7 h-full",
614
+ stepper: (0, import_system28.cva)([
615
+ "w-7 h-full text-center shrink-0",
505
616
  "disabled:text-disabled-foreground disabled:bg-disabled",
506
- // Make sure focus ring is only around the component and not the stepper buttons
507
617
  "border-input! first-of-type:border-r! last-of-type:border-l!"
508
618
  ]),
509
- input: (0, import_system26.cva)(
510
- "border-none shadow-none rounded-none outline-offset-0 text-center focus-visible:ring-0"
511
- )
619
+ input: (0, import_system28.cva)([
620
+ "tabular-nums text-foreground px-3 py-2",
621
+ "min-w-0 flex-1",
622
+ "group-[[data-stepper]]/field:text-center",
623
+ "disabled:text-disabled-foreground disabled:bg-disabled"
624
+ ])
512
625
  };
513
626
 
514
627
  // src/components/Popover.styles.ts
515
- var import_system27 = require("@marigold/system");
516
- var Popover = (0, import_system27.cva)([
628
+ var import_system29 = require("@marigold/system");
629
+ var Popover = (0, import_system29.cva)([
517
630
  "group/popover",
518
631
  "z-50 overflow-y-auto overflow-x-hidden rounded-md outline-0 border-input",
519
632
  /** animate stuff missing */
@@ -525,27 +638,27 @@ var Popover = (0, import_system27.cva)([
525
638
  ]);
526
639
 
527
640
  // src/components/Radio.styles.ts
528
- var import_system28 = require("@marigold/system");
641
+ var import_system30 = require("@marigold/system");
529
642
  var Radio = {
530
- container: (0, import_system28.cva)("group-disabled/radio:cursor-not-allowed"),
531
- label: (0, import_system28.cva)([
643
+ container: (0, import_system30.cva)("group-disabled/radio:cursor-not-allowed"),
644
+ label: (0, import_system30.cva)([
532
645
  "text-sm font-normal cursor-pointer",
533
646
  "group-disabled/radio:text-disabled-foreground group-disabled/radio:cursor-not-allowed"
534
647
  ]),
535
- radio: (0, import_system28.cva)([
648
+ radio: (0, import_system30.cva)([
536
649
  "aspect-square size-4 rounded-full",
537
650
  "border border-input shadow-sm shadow-black/5",
538
651
  "mixin-ring-focus-visible-radio",
539
652
  "group-disabled/radio:border-disabled",
540
653
  "group-selected/radio:border-brand group-selected/radio:bg-brand group-selected/radio:text-brand-foreground"
541
654
  ]),
542
- group: (0, import_system28.cva)()
655
+ group: (0, import_system30.cva)()
543
656
  };
544
657
 
545
658
  // src/components/Pagination.styles.ts
546
- var import_system29 = require("@marigold/system");
659
+ var import_system31 = require("@marigold/system");
547
660
  var Pagination = {
548
- navigationButton: (0, import_system29.cva)([
661
+ navigationButton: (0, import_system31.cva)([
549
662
  "inline-flex items-center justify-center whitespace-nowrap rounded-lg text-sm font-medium transition-colors",
550
663
  "mixin-ring-focus-visible",
551
664
  "disabled:pointer-events-none disabled:bg-disabled disabled:text-disabled-foreground",
@@ -553,7 +666,7 @@ var Pagination = {
553
666
  "hover:bg-hover hover:text-hover-foreground",
554
667
  "h-9 py-2 gap-1 px-2.5"
555
668
  ]),
556
- pageButton: (0, import_system29.cva)([
669
+ pageButton: (0, import_system31.cva)([
557
670
  "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm font-medium transition-colors bg-background size-9",
558
671
  "mixin-ring-focus-visible",
559
672
  "disabled:pointer-events-none disabled:bg-disabled disabled:text-disabled-foreground",
@@ -561,19 +674,19 @@ var Pagination = {
561
674
  "data-[selected=true]:border data-[selected=true]:border-input data-[selected=true]:shadow-xs",
562
675
  "hover:bg-hover hover:text-hover-foreground"
563
676
  ]),
564
- icon: (0, import_system29.cva)("h-4 w-4")
677
+ icon: (0, import_system31.cva)("h-4 w-4")
565
678
  };
566
679
 
567
680
  // src/components/ProgressCycle.styles.ts
568
- var import_system30 = require("@marigold/system");
569
- var ProgressCycle = (0, import_system30.cva)([
681
+ var import_system32 = require("@marigold/system");
682
+ var ProgressCycle = (0, import_system32.cva)([
570
683
  "stroke-foreground"
571
684
  ]);
572
685
 
573
686
  // src/components/SectionMessage.styles.ts
574
- var import_system31 = require("@marigold/system");
687
+ var import_system33 = require("@marigold/system");
575
688
  var SectionMessage = {
576
- container: (0, import_system31.cva)(
689
+ container: (0, import_system33.cva)(
577
690
  [
578
691
  'grid-cols-[min-content_auto_min-content] gap-x-3 gap-y-1 [grid-template-areas:"icon_title_close""icon_content_content"]',
579
692
  "bg-background rounded-md border px-3 py-4"
@@ -592,8 +705,8 @@ var SectionMessage = {
592
705
  }
593
706
  }
594
707
  ),
595
- title: (0, import_system31.cva)("text-sm font-medium"),
596
- content: (0, import_system31.cva)("text-muted-foreground text-sm leading-5 font-normal", {
708
+ title: (0, import_system33.cva)("text-sm font-medium"),
709
+ content: (0, import_system33.cva)("text-muted-foreground text-sm leading-5 font-normal", {
597
710
  variants: {
598
711
  variant: {
599
712
  success: "text-success-muted-foreground",
@@ -606,7 +719,7 @@ var SectionMessage = {
606
719
  variant: "info"
607
720
  }
608
721
  }),
609
- icon: (0, import_system31.cva)("h-4 w-4 align-baseline leading-none pt-0.5", {
722
+ icon: (0, import_system33.cva)("h-4 w-4 align-baseline leading-none pt-0.5", {
610
723
  variants: {
611
724
  variant: {
612
725
  success: "text-success-muted-accent",
@@ -619,7 +732,7 @@ var SectionMessage = {
619
732
  variant: "info"
620
733
  }
621
734
  }),
622
- close: (0, import_system31.cva)([
735
+ close: (0, import_system33.cva)([
623
736
  "flex items-center justify-center",
624
737
  "rounded-md transition-color size-8 shrink-0 p-0 text-foreground cursor-pointer",
625
738
  "[&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
@@ -631,10 +744,10 @@ var SectionMessage = {
631
744
  };
632
745
 
633
746
  // src/components/Select.styles.ts
634
- var import_system32 = require("@marigold/system");
747
+ var import_system34 = require("@marigold/system");
635
748
  var Select = {
636
- icon: (0, import_system32.cva)("text-muted-foreground/80"),
637
- select: (0, import_system32.cva)([
749
+ icon: (0, import_system34.cva)("text-muted-foreground/80"),
750
+ select: (0, import_system34.cva)([
638
751
  inputContainer,
639
752
  inputInvalid,
640
753
  inputDisabled,
@@ -646,37 +759,37 @@ var Select = {
646
759
  };
647
760
 
648
761
  // src/components/Slider.styles.ts
649
- var import_system33 = require("@marigold/system");
762
+ var import_system35 = require("@marigold/system");
650
763
  var Slider = {
651
- container: (0, import_system33.cva)("*:aria-hidden:hidden"),
652
- track: (0, import_system33.cva)([
764
+ container: (0, import_system35.cva)("*:aria-hidden:hidden"),
765
+ track: (0, import_system35.cva)([
653
766
  "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"
654
767
  ]),
655
- selectedTrack: (0, import_system33.cva)([
768
+ selectedTrack: (0, import_system35.cva)([
656
769
  "absolute bg-black data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full rounded-lg"
657
770
  ]),
658
- thumb: (0, import_system33.cva)([
771
+ thumb: (0, import_system35.cva)([
659
772
  "block h-5 w-5 rounded-full border-2 border-primary bg-background transition-colors",
660
773
  "mixin-ring-focus-visible-borderless",
661
774
  "data-[disabled]:cursor-not-allowed"
662
775
  ]),
663
- output: (0, import_system33.cva)("text-text-base text-sm")
776
+ output: (0, import_system35.cva)("text-text-base text-sm")
664
777
  };
665
778
 
666
779
  // src/components/Switch.styles.ts
667
- var import_system34 = require("@marigold/system");
780
+ var import_system36 = require("@marigold/system");
668
781
  var Switch = {
669
- container: (0, import_system34.cva)(
782
+ container: (0, import_system36.cva)(
670
783
  "disabled:cursor-not-allowed disabled:text-disabled-foreground"
671
784
  ),
672
- track: (0, import_system34.cva)([
785
+ track: (0, import_system36.cva)([
673
786
  "inline-flex h-6 w-10 shrink-0 cursor-pointer items-center rounded-full",
674
787
  "border-2 border-transparent",
675
788
  "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",
676
789
  "group-selected/switch:bg-brand bg-input",
677
790
  "mixin-ring-focus-visible-switch"
678
791
  ]),
679
- thumb: (0, import_system34.cva)([
792
+ thumb: (0, import_system36.cva)([
680
793
  "pointer-events-none block size-5 rounded-full",
681
794
  "bg-background shadow-sm shadow-black/5",
682
795
  "ring-0 transition-transform duration-300 ease-[cubic-bezier(0.16,1,0.3,1)]",
@@ -685,9 +798,9 @@ var Switch = {
685
798
  };
686
799
 
687
800
  // src/components/Table.styles.ts
688
- var import_system35 = require("@marigold/system");
801
+ var import_system37 = require("@marigold/system");
689
802
  var Table = {
690
- table: (0, import_system35.cva)(
803
+ table: (0, import_system37.cva)(
691
804
  "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",
692
805
  {
693
806
  variants: {
@@ -698,7 +811,7 @@ var Table = {
698
811
  }
699
812
  }
700
813
  ),
701
- thead: (0, import_system35.cva)(
814
+ thead: (0, import_system37.cva)(
702
815
  // for sticky header
703
816
  "bg-background/90 top-0 z-10 backdrop-blur-xs ",
704
817
  {
@@ -710,7 +823,7 @@ var Table = {
710
823
  }
711
824
  }
712
825
  ),
713
- headerRow: (0, import_system35.cva)(["border-border border-b"], {
826
+ headerRow: (0, import_system37.cva)(["border-border border-b"], {
714
827
  variants: {
715
828
  variant: {
716
829
  default: "",
@@ -721,7 +834,7 @@ var Table = {
721
834
  variant: "default"
722
835
  }
723
836
  }),
724
- header: (0, import_system35.cva)(
837
+ header: (0, import_system37.cva)(
725
838
  [
726
839
  "h-12 px-3 align-middle font-medium text-muted-foreground last:text-right",
727
840
  "focus-visible:outline-2 outline-offset-2 outline-ring/70"
@@ -738,8 +851,8 @@ var Table = {
738
851
  }
739
852
  }
740
853
  ),
741
- body: (0, import_system35.cva)("[&_tr:last-child]:border-0"),
742
- row: (0, import_system35.cva)(
854
+ body: (0, import_system37.cva)("[&_tr:last-child]:border-0"),
855
+ row: (0, import_system37.cva)(
743
856
  [
744
857
  "border-b border-border transition-colors",
745
858
  "focus-visible:outline-2 outline-offset-2 outline-ring/70",
@@ -757,7 +870,7 @@ var Table = {
757
870
  }
758
871
  }
759
872
  ),
760
- cell: (0, import_system35.cva)(
873
+ cell: (0, import_system37.cva)(
761
874
  [
762
875
  "p-3 align-middle last:text-right",
763
876
  "focus-visible:outline-2 outline-offset-2 outline-ring/70"
@@ -777,14 +890,14 @@ var Table = {
777
890
  };
778
891
 
779
892
  // src/components/Tabs.styles.ts
780
- var import_system36 = require("@marigold/system");
893
+ var import_system38 = require("@marigold/system");
781
894
  var Tabs = {
782
- container: (0, import_system36.cva)("flex flex-col gap-2"),
783
- tabsList: (0, import_system36.cva)([
895
+ container: (0, import_system38.cva)("flex flex-col gap-2"),
896
+ tabsList: (0, import_system38.cva)([
784
897
  "text-muted-foreground",
785
898
  "flex items-center p-0.5 h-auto gap-2 border-b px-0 py-1"
786
899
  ]),
787
- tab: (0, import_system36.cva)([
900
+ tab: (0, import_system38.cva)([
788
901
  "relative inline-flex items-center justify-center rounded-sm px-3 py-1.5 text-sm font-medium whitespace-nowrap transition-colors",
789
902
  "[&_svg]:shrink-0",
790
903
  "mixin-ring-focus-visible",
@@ -793,13 +906,13 @@ var Tabs = {
793
906
  "data-selected:text-foreground data-selected:hover:bg-hover",
794
907
  "data-[selected=true]:after:bg-foreground after:absolute after:inset-x-0 after:bottom-0 after:-mb-1 after:h-0.5"
795
908
  ]),
796
- tabpanel: (0, import_system36.cva)(["py-4 rounded-sm", "mixin-ring-focus-visible"])
909
+ tabpanel: (0, import_system38.cva)(["py-4 rounded-sm", "mixin-ring-focus-visible"])
797
910
  };
798
911
 
799
912
  // src/components/Tag.styles.ts
800
- var import_system37 = require("@marigold/system");
913
+ var import_system39 = require("@marigold/system");
801
914
  var Tag = {
802
- tag: (0, import_system37.cva)([
915
+ tag: (0, import_system39.cva)([
803
916
  "relative inline-flex items-center gap-[7px]",
804
917
  "border border-solid border-input rounded-md",
805
918
  "font-medium text-xs",
@@ -809,18 +922,18 @@ var Tag = {
809
922
  "data-[disabled]:cursor-not-allowed data-[disabled]:text-disabled-foreground data-[disabled]:bg-disabled",
810
923
  "mixin-ring-focus-visible"
811
924
  ]),
812
- closeButton: (0, import_system37.cva)([
925
+ closeButton: (0, import_system39.cva)([
813
926
  "size-4 flex items-center justify-end whitespace-nowrap",
814
927
  "font-medium text-muted-foreground text-sm hover:text-brand rounded-md",
815
928
  "p-0 transition-colors outline-0 cursor-pointer",
816
929
  "disabled:bg-disabled disabled:text-disabled-foreground disabled:cursor-not-allowed"
817
930
  ]),
818
- listItems: (0, import_system37.cva)("flex flex-wrap items-center gap-1")
931
+ listItems: (0, import_system39.cva)("flex flex-wrap items-center gap-1")
819
932
  };
820
933
 
821
934
  // src/components/TextArea.styles.ts
822
- var import_system38 = require("@marigold/system");
823
- var TextArea = (0, import_system38.cva)([
935
+ var import_system40 = require("@marigold/system");
936
+ var TextArea = (0, import_system40.cva)([
824
937
  inputContainer,
825
938
  inputInvalid,
826
939
  "mixin-ring-focus-visible",
@@ -830,9 +943,12 @@ var TextArea = (0, import_system38.cva)([
830
943
  ]);
831
944
 
832
945
  // src/components/Text.styles.ts
833
- var import_system39 = require("@marigold/system");
834
- var Text = (0, import_system39.cva)("", {
946
+ var import_system41 = require("@marigold/system");
947
+ var Text = (0, import_system41.cva)("", {
835
948
  variants: {
949
+ variant: {
950
+ muted: "text-muted-foreground"
951
+ },
836
952
  size: {
837
953
  // Adding a default here, which beasically acts as an inherit
838
954
  default: "",
@@ -857,9 +973,9 @@ var Text = (0, import_system39.cva)("", {
857
973
  });
858
974
 
859
975
  // src/components/Tooltip.styles.ts
860
- var import_system40 = require("@marigold/system");
976
+ var import_system42 = require("@marigold/system");
861
977
  var Tooltip = {
862
- container: (0, import_system40.cva)(
978
+ container: (0, import_system42.cva)(
863
979
  [
864
980
  "text-brand-foreground bg-brand relative z-50 max-w-70 rounded-md border border-brand px-3 py-1.5 text-sm ",
865
981
  "placement-top:mb-2",
@@ -879,7 +995,7 @@ var Tooltip = {
879
995
  }
880
996
  }
881
997
  ),
882
- arrow: (0, import_system40.cva)(
998
+ arrow: (0, import_system42.cva)(
883
999
  [
884
1000
  "fill-brand stroke-brand",
885
1001
  // right
@@ -904,8 +1020,8 @@ var Tooltip = {
904
1020
  };
905
1021
 
906
1022
  // src/components/Underlay.styles.ts
907
- var import_system41 = require("@marigold/system");
908
- var Underlay = (0, import_system41.cva)("", {
1023
+ var import_system43 = require("@marigold/system");
1024
+ var Underlay = (0, import_system43.cva)("", {
909
1025
  variants: {
910
1026
  variant: {
911
1027
  modal: " bg-black/80 backdrop-blur-sm"
@@ -914,9 +1030,9 @@ var Underlay = (0, import_system41.cva)("", {
914
1030
  });
915
1031
 
916
1032
  // src/components/XLoader.styles.ts
917
- var import_system42 = require("@marigold/system");
1033
+ var import_system44 = require("@marigold/system");
918
1034
  var XLoader = {
919
- container: (0, import_system42.cva)("grid place-items-center text-brand", {
1035
+ container: (0, import_system44.cva)("grid place-items-center text-brand", {
920
1036
  variants: {
921
1037
  variant: {
922
1038
  default: "",
@@ -933,7 +1049,7 @@ var XLoader = {
933
1049
  size: "default"
934
1050
  }
935
1051
  }),
936
- loader: (0, import_system42.cva)("size-full", {
1052
+ loader: (0, import_system44.cva)("size-full", {
937
1053
  variants: {
938
1054
  variant: {
939
1055
  default: "",
@@ -950,7 +1066,7 @@ var XLoader = {
950
1066
  size: "default"
951
1067
  }
952
1068
  }),
953
- label: (0, import_system42.cva)("text-current text-sm")
1069
+ label: (0, import_system44.cva)("text-current text-sm")
954
1070
  };
955
1071
 
956
1072
  // src/theme.ts