@marigold/theme-rui 1.1.3 → 1.1.4

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
@@ -16,6 +16,7 @@ __export(components_exports, {
16
16
  Checkbox: () => Checkbox,
17
17
  CloseButton: () => CloseButton,
18
18
  ComboBox: () => ComboBox,
19
+ ContextualHelp: () => ContextualHelp,
19
20
  DateField: () => DateField,
20
21
  DatePicker: () => DatePicker,
21
22
  Dialog: () => Dialog,
@@ -159,10 +160,10 @@ var Button = cva4(
159
160
  text: "hover:bg-hover"
160
161
  },
161
162
  size: {
162
- default: "h-button px-4 py-2",
163
- small: "h-button-small px-3 text-xs",
164
- large: "h-button-large px-8",
165
- icon: "size-9"
163
+ default: "h-button px-4 py-2 [&_svg]:size-4",
164
+ small: "h-button-small px-3 text-xs [&_svg]:size-3.5",
165
+ large: "h-button-large px-8 [&_svg]:size-5",
166
+ icon: "size-button [&_svg]:size-4"
166
167
  }
167
168
  },
168
169
  defaultVariants: {
@@ -266,17 +267,45 @@ var ComboBox = cva9(
266
267
  "text-muted-foreground/80 right-2"
267
268
  );
268
269
 
270
+ // src/components/ContextualHelp.styles.ts
271
+ import { cva as cva10 } from "@marigold/system";
272
+ var ContextualHelp = {
273
+ trigger: cva10(
274
+ [
275
+ "inline-flex items-center p-0.5 transition-colors justify-center hover:text-hover-foreground cursor-pointer hover:bg-gray-200 rounded-md focus:bg-gray-200"
276
+ ],
277
+ {
278
+ variants: {
279
+ size: {
280
+ small: "w-4 h-4",
281
+ medium: "w-5 h-5",
282
+ large: "w-8 h-8"
283
+ }
284
+ },
285
+ defaultVariants: {
286
+ size: "medium"
287
+ }
288
+ }
289
+ ),
290
+ popover: cva10(
291
+ "bg-white border border-gray-200 p-3 rounded shadow-md z-50 data-[small]:max-w-3xs data-[medium]:max-w-xs data-[large]:max-w-md"
292
+ ),
293
+ dialog: cva10("text-sm leading-normal"),
294
+ title: cva10("text-lg font-semibold mb-1"),
295
+ content: cva10("text-sm")
296
+ };
297
+
269
298
  // src/components/DateField.styles.ts
270
- import { cva as cva11 } from "@marigold/system";
299
+ import { cva as cva12 } from "@marigold/system";
271
300
 
272
301
  // src/components/Input.styles.ts
273
- import { cva as cva10 } from "@marigold/system";
302
+ import { cva as cva11 } from "@marigold/system";
274
303
  var inputContainer = "flex w-full px-3 py-2 rounded-lg shadow-sm shadow-black/5 border border-input bg-background text-sm text-foreground transition-shadow group-read-only/field:bg-muted";
275
304
  var inputDisabled = "disabled:cursor-not-allowed disabled:text-disabled-foreground disabled:bg-disabled";
276
305
  var inputInvalid = "group-invalid/field:border-destructive group-invalid/field:focus:border-destructive group-invalid/field:focus:ring-destructive/20";
277
306
  var inputReadOnly = "group-read-only/field:bg-muted";
278
307
  var Input = {
279
- input: cva10([
308
+ input: cva11([
280
309
  inputContainer,
281
310
  inputDisabled,
282
311
  inputInvalid,
@@ -289,16 +318,16 @@ var Input = {
289
318
  "group-[[data-icon]]/input:pl-8",
290
319
  "group-[[data-action]]/input:pr-7"
291
320
  ]),
292
- icon: cva10([
321
+ icon: cva11([
293
322
  "pointer-events-none left-1",
294
323
  "text-muted-foreground disabled:text-disabled-foreground"
295
324
  ]),
296
- action: cva10(["text-muted-foreground right-1"])
325
+ action: cva11(["text-muted-foreground right-1"])
297
326
  };
298
327
 
299
328
  // src/components/DateField.styles.ts
300
329
  var DateField = {
301
- field: cva11([
330
+ field: cva12([
302
331
  "h-input",
303
332
  inputContainer,
304
333
  inputDisabled,
@@ -308,7 +337,7 @@ var DateField = {
308
337
  "invalid:focus-within:border-destructive invalid:focus-within:ring-destructive/20",
309
338
  "data-[focus-within]:util-focus-ring outline-0"
310
339
  ]),
311
- segment: cva11([
340
+ segment: cva12([
312
341
  inputDisabled,
313
342
  "inline rounded p-0.5 text-foreground caret-transparent outline-0 data-[type=literal]:px-0 data-[focused]:data-[placeholder]:text-foreground data-[focused]:text-foreground data-[type=literal]:text-placeholder ",
314
343
  "data-[focused]:bg-focus",
@@ -319,14 +348,14 @@ var DateField = {
319
348
  "whitespace-pre",
320
349
  "data-[placeholder]:text-placeholder text-foreground data-[focused]:bg-focus data-[focused]:text-foreground rounded leading-none"
321
350
  ]),
322
- action: cva11(
351
+ action: cva12(
323
352
  "fill-muted-foreground disabled:text-disabled-foreground group-invalid/field:fill-destructive"
324
353
  )
325
354
  };
326
355
 
327
356
  // src/components/DatePicker.styles.ts
328
- import { cva as cva12 } from "@marigold/system";
329
- var DatePicker = cva12([
357
+ import { cva as cva13 } from "@marigold/system";
358
+ var DatePicker = cva13([
330
359
  "relative h-input -top-2",
331
360
  "text-muted-foreground/80",
332
361
  "hover:text-brand",
@@ -334,27 +363,27 @@ var DatePicker = cva12([
334
363
  ]);
335
364
 
336
365
  // src/components/Dialog.styles.ts
337
- import { cva as cva13 } from "@marigold/system";
366
+ import { cva as cva14 } from "@marigold/system";
338
367
  var Dialog = {
339
- closeButton: cva13(["absolute top-6 right-3", "size-7 "]),
340
- container: cva13([
368
+ closeButton: cva14(["absolute top-6 right-3", "size-7 "]),
369
+ container: cva14([
341
370
  "flex flex-col gap-0 rounded-xl p-6 overflow-y-auto",
342
371
  "util-surface-overlay"
343
372
  ]),
344
- header: cva13("flex flex-col gap-1 text-center sm:text-left"),
345
- title: cva13("text-lg font-semibold mb-1", {
373
+ header: cva14("flex flex-col gap-1 text-center sm:text-left"),
374
+ title: cva14("text-lg font-semibold mb-1", {
346
375
  variants: {
347
376
  variant: {},
348
377
  size: {}
349
378
  }
350
379
  }),
351
- content: cva13("text-muted-foreground text-sm"),
352
- actions: cva13("flex flex-col-reverse gap-3 sm:flex-row sm:justify-end mt-4")
380
+ content: cva14("text-muted-foreground text-sm"),
381
+ actions: cva14("flex flex-col-reverse gap-3 sm:flex-row sm:justify-end mt-4")
353
382
  };
354
383
 
355
384
  // src/components/Divider.styles.ts
356
- import { cva as cva14 } from "@marigold/system";
357
- var Divider = cva14(
385
+ import { cva as cva15 } from "@marigold/system";
386
+ var Divider = cva15(
358
387
  "bg-stone-300 h-px w-full",
359
388
  {
360
389
  variants: {
@@ -367,13 +396,13 @@ var Divider = cva14(
367
396
  );
368
397
 
369
398
  // src/components/Drawer.styles.ts
370
- import { cva as cva15 } from "@marigold/system";
399
+ import { cva as cva16 } from "@marigold/system";
371
400
  var Drawer = {
372
- overlay: cva15([
401
+ overlay: cva16([
373
402
  "group/overlay",
374
403
  "entering:animate-slide-in-right exiting:animate-slide-out-right"
375
404
  ]),
376
- container: cva15(
405
+ container: cva16(
377
406
  [
378
407
  "relative grid-rows-[auto_1fr_auto]",
379
408
  "util-surface-overlay border-y-0! border-r-0!"
@@ -389,18 +418,18 @@ var Drawer = {
389
418
  }
390
419
  }
391
420
  ),
392
- closeButton: cva15(["absolute top-3.5 right-3 z-50", "size-7"]),
393
- header: cva15("border-border border-b px-6 py-4"),
394
- title: cva15("font-semibold text-base"),
395
- content: cva15("px-6 py-4 overflow-y-auto outline-none"),
396
- actions: cva15(
421
+ closeButton: cva16(["absolute top-3.5 right-3 z-50", "size-7"]),
422
+ header: cva16("border-border border-b px-6 py-4"),
423
+ title: cva16("font-semibold text-base"),
424
+ content: cva16("px-6 py-4 overflow-y-auto outline-none"),
425
+ actions: cva16(
397
426
  "flex flex-row gap-3 justify-end border-border border-t px-6 py-4"
398
427
  )
399
428
  };
400
429
 
401
430
  // src/components/IconButton.styles.ts
402
- import { cva as cva16 } from "@marigold/system";
403
- var IconButton = cva16("", {
431
+ import { cva as cva17 } from "@marigold/system";
432
+ var IconButton = cva17("", {
404
433
  variants: {
405
434
  variant: {
406
435
  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"
@@ -409,20 +438,20 @@ var IconButton = cva16("", {
409
438
  });
410
439
 
411
440
  // src/components/Field.styles.ts
412
- import { cva as cva17 } from "@marigold/system";
413
- var Field = cva17("space-y-2");
441
+ import { cva as cva18 } from "@marigold/system";
442
+ var Field = cva18("space-y-2");
414
443
 
415
444
  // src/components/Footer.styles.ts
416
- import { cva as cva18 } from "@marigold/system";
417
- var Footer = cva18("");
445
+ import { cva as cva19 } from "@marigold/system";
446
+ var Footer = cva19("");
418
447
 
419
448
  // src/components/Header.styles.ts
420
- import { cva as cva19 } from "@marigold/system";
421
- var Header = cva19("");
449
+ import { cva as cva20 } from "@marigold/system";
450
+ var Header = cva20("");
422
451
 
423
452
  // src/components/Headline.styles.ts
424
- import { cva as cva20 } from "@marigold/system";
425
- var Headline = cva20("", {
453
+ import { cva as cva21 } from "@marigold/system";
454
+ var Headline = cva21("", {
426
455
  variants: {
427
456
  size: {
428
457
  "level-1": "text-5xl font-black",
@@ -436,53 +465,64 @@ var Headline = cva20("", {
436
465
  });
437
466
 
438
467
  // src/components/HelpText.styles.ts
439
- import { cva as cva21 } from "@marigold/system";
468
+ import { cva as cva22 } from "@marigold/system";
440
469
  var HelpText = {
441
- container: cva21([
470
+ container: cva22([
442
471
  "mt-2 text-xs text-muted-foreground group-disabled/field:text-disabled-foreground",
443
472
  "group-invalid/field:text-destructive"
444
473
  ]),
445
- icon: cva21("")
474
+ icon: cva22("")
446
475
  };
447
476
 
448
477
  // src/components/Image.styles.ts
449
- import { cva as cva22 } from "@marigold/system";
450
- var Image = cva22();
478
+ import { cva as cva23 } from "@marigold/system";
479
+ var Image = cva23();
451
480
 
452
481
  // src/components/Label.styles.ts
453
- import { cva as cva23 } from "@marigold/system";
482
+ import { cva as cva24 } from "@marigold/system";
454
483
  var Label = {
455
- container: cva23([
484
+ container: cva24([
456
485
  "text-sm font-medium leading-4 text-foreground",
457
486
  "group-disabled/field:cursor-not-allowed group-disabled/field:text-disabled-foreground"
458
487
  ]),
459
- indicator: cva23(
488
+ indicator: cva24(
460
489
  "group-required/field:block text-destructive align-super size-2.5"
461
490
  )
462
491
  };
463
492
 
464
493
  // src/components/Link.styles.ts
465
- import { cva as cva24 } from "@marigold/system";
466
- var Link = cva24(
467
- "font-medium underline aria-[disabled]:cursor-not-allowed underline-offset-4"
494
+ import { cva as cva25 } from "@marigold/system";
495
+ var Link = cva25(
496
+ " text-link font-normal aria-[disabled]:cursor-not-allowed",
497
+ {
498
+ variants: {
499
+ variant: {
500
+ default: "",
501
+ secondary: "font-medium text-foreground underline hover:no-underline"
502
+ }
503
+ },
504
+ defaultVariants: {
505
+ variant: "default"
506
+ }
507
+ }
468
508
  );
469
509
 
470
510
  // src/components/List.styles.ts
471
- import { cva as cva25 } from "@marigold/system";
511
+ import { cva as cva26 } from "@marigold/system";
472
512
  var List = {
473
- ul: cva25("ml-6 list-inside list-disc py-3"),
474
- ol: cva25("ml-6 list-inside list-decimal py-3"),
475
- item: cva25("pt-3")
513
+ ul: cva26("ml-6 list-inside list-disc py-3"),
514
+ ol: cva26("ml-6 list-inside list-decimal py-3"),
515
+ item: cva26("pt-3")
476
516
  };
477
517
 
478
518
  // src/components/ListBox.styles.ts
479
- import { cva as cva26 } from "@marigold/system";
519
+ import { cva as cva27 } from "@marigold/system";
480
520
  var ListBox = {
481
- container: cva26([
521
+ container: cva27([
482
522
  "overflow-hidden rounded-md border border-input group-[[data-trigger]]/popover:border-0"
483
523
  ]),
484
- list: cva26(["bg-background p-1 text-sm outline-0"]),
485
- item: cva26([
524
+ list: cva27(["bg-background p-1 text-sm outline-0"]),
525
+ item: cva27([
486
526
  "relative flex items-center gap-2 rounded-md px-2 py-1.5 text-sm text-foreground cursor-pointer",
487
527
  "[&_svg]:invisible [&_svg]:block",
488
528
  "selected:bg-selected selected:[&_svg]:visible",
@@ -491,36 +531,53 @@ var ListBox = {
491
531
  "focus-visible:util-focus-ring outline-none",
492
532
  "cursor-default data-selection-mode:cursor-pointer"
493
533
  ]),
494
- section: cva26(""),
495
- header: cva26(
534
+ section: cva27(""),
535
+ header: cva27(
496
536
  "[&_header]:px-2 [&_header]:py-1.5 [&_header]:text-xs [&_header]:font-medium [&_header]:text-muted-foreground"
497
537
  )
498
538
  };
499
539
 
500
540
  // src/components/Menu.styles.ts
501
- import { cva as cva27 } from "@marigold/system";
541
+ import { cva as cva28 } from "@marigold/system";
502
542
  var Menu = {
503
- container: cva27(["text-foreground z-50 overflow-hidden rounded-md p-1"]),
504
- item: cva27([
543
+ container: cva28(["text-foreground z-50 overflow-hidden rounded-md p-1"]),
544
+ item: cva28([
505
545
  "focus:bg-focus focus:text-foreground relative flex cursor-pointer items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none disabled:text-disabled-foreground"
506
546
  ]),
507
- section: cva27(
547
+ section: cva28(
508
548
  "text-muted-foreground px-2 py-1.5 text-xs font-medium border-t border-t-border in-first:border-t-0"
509
549
  ),
510
- button: cva27([
511
- "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md h-button px-4 py-2",
512
- "text-sm font-medium outline-none cursor-pointer",
513
- "border border-input bg-background shadow-xs",
514
- "hover:bg-hover hover:text-foreground",
515
- "transition-[color,box-shadow]",
516
- "disabled:pointer-not-allowed disabled:bg-disabled disabled:text-disabled-foreground",
517
- "focus-visible:util-focus-ring"
518
- ])
550
+ button: cva28(
551
+ [
552
+ "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-[color,box-shadow]",
553
+ "[&_svg]:shrink-0",
554
+ "focus-visible:util-focus-ring outline-none disabled:util-disabled",
555
+ "cursor-pointer"
556
+ ],
557
+ {
558
+ variants: {
559
+ variant: {
560
+ secondary: "border border-input bg-background shadow-sm shadow-black/5 hover:bg-hover hover:text-foreground expanded:bg-hover",
561
+ ghost: "hover:bg-hover hover:text-foreground expanded:bg-hover"
562
+ },
563
+ size: {
564
+ default: "h-button px-4 py-2 [&_svg]:size-4",
565
+ small: "h-button-small px-3 text-xs [&_svg]:size-3.5",
566
+ large: "h-button-large px-8 [&_svg]:size-5",
567
+ icon: "size-button [&_svg]:size-4"
568
+ }
569
+ },
570
+ defaultVariants: {
571
+ variant: "secondary",
572
+ size: "default"
573
+ }
574
+ }
575
+ )
519
576
  };
520
577
 
521
578
  // src/components/Modal.styles.ts
522
- import { cva as cva28 } from "@marigold/system";
523
- var Modal = cva28(
579
+ import { cva as cva29 } from "@marigold/system";
580
+ var Modal = cva29(
524
581
  [
525
582
  "sm:max-h-[min(640px,80vh)]",
526
583
  "[--dialog-spacing-x:1rem]",
@@ -545,10 +602,10 @@ var Modal = cva28(
545
602
  );
546
603
 
547
604
  // src/components/Multiselect.styles.ts
548
- import { cva as cva29 } from "@marigold/system";
605
+ import { cva as cva30 } from "@marigold/system";
549
606
  var MultiSelect = {
550
- field: cva29("grid gap-y-0.5"),
551
- container: cva29([
607
+ field: cva30("grid gap-y-0.5"),
608
+ container: cva30([
552
609
  "bg-background shadow-sm shadow-black/5 border",
553
610
  "px-3 text-sm text-foreground transition-shadow",
554
611
  "border border-input rounded-lg outline-hidden",
@@ -557,7 +614,7 @@ var MultiSelect = {
557
614
  "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",
558
615
  "has-[input[aria-readonly=true]]:bg-muted"
559
616
  ]),
560
- input: cva29([
617
+ input: cva30([
561
618
  "bg-transparent flex-1 h-full",
562
619
  "leading-loose",
563
620
  "data-[focused]:outline-hidden outline-hidden border-0",
@@ -566,20 +623,20 @@ var MultiSelect = {
566
623
  "group-data-[action]/input:pr-8",
567
624
  "placeholder:text-placeholder"
568
625
  ]),
569
- tag: cva29([
626
+ tag: cva30([
570
627
  "border border-solid border-input rounded-md",
571
628
  "bg-background",
572
629
  "font-medium text-xs",
573
630
  "flex items-center gap-1 ",
574
631
  "h-7 px-2 cursor-default"
575
632
  ]),
576
- closeButton: cva29(
633
+ closeButton: cva30(
577
634
  "size-4 cursor-pointer border-none bg-transparent p-0 leading-normal outline-0"
578
635
  ),
579
- icon: cva29("left-1"),
580
- listContainer: cva29(["util-surface-overlay mt-0.5 rounded-lg outline-0"]),
581
- list: cva29("pointer-events-auto space-y-1 p-1"),
582
- option: cva29([
636
+ icon: cva30("left-1"),
637
+ listContainer: cva30(["util-surface-overlay mt-0.5 rounded-lg outline-0"]),
638
+ list: cva30("pointer-events-auto space-y-1 p-1"),
639
+ option: cva30([
583
640
  "text-sm text-foreground",
584
641
  "flex flex-col",
585
642
  "cursor-pointer p-2 outline-hidden",
@@ -587,13 +644,13 @@ var MultiSelect = {
587
644
  "aria-disabled:text-disabled-foreground aria-disabled:cursor-not-allowed",
588
645
  "[&.isFocused:not([aria-disabled=true])]:!bg-hover"
589
646
  ]),
590
- valueContainer: cva29("gap-2 !py-2 min-h-input")
647
+ valueContainer: cva30("gap-2 !py-2 min-h-input")
591
648
  };
592
649
 
593
650
  // src/components/NumberField.styles.ts
594
- import { cva as cva30 } from "@marigold/system";
651
+ import { cva as cva31 } from "@marigold/system";
595
652
  var NumberField = {
596
- group: cva30([
653
+ group: cva31([
597
654
  "rounded-lg h-input bg-background",
598
655
  "has-focus-visible:util-focus-ring outline-none",
599
656
  inputInvalid,
@@ -601,12 +658,12 @@ var NumberField = {
601
658
  "border border-input text-sm shadow-sm shadow-black/5 transition-shadow",
602
659
  "data-invalid:data-[focus-within]:border-destructive data-invalid:data-[focus-within]:ring-destructive/20"
603
660
  ]),
604
- stepper: cva30([
661
+ stepper: cva31([
605
662
  "w-7 h-full text-center shrink-0",
606
663
  "disabled:text-disabled-foreground disabled:bg-disabled",
607
664
  "border-input! first-of-type:border-r! last-of-type:border-l!"
608
665
  ]),
609
- input: cva30([
666
+ input: cva31([
610
667
  "tabular-nums text-foreground px-3 py-2",
611
668
  "min-w-0 flex-1 bg-transparent",
612
669
  "group-[[data-stepper]]/field:text-center",
@@ -615,8 +672,8 @@ var NumberField = {
615
672
  };
616
673
 
617
674
  // src/components/Popover.styles.ts
618
- import { cva as cva31 } from "@marigold/system";
619
- var Popover = cva31([
675
+ import { cva as cva32 } from "@marigold/system";
676
+ var Popover = cva32([
620
677
  "group/popover",
621
678
  "text-foreground z-50 overflow-y-auto overflow-x-hidden rounded-md outline-0",
622
679
  "placement-top:mb-1",
@@ -627,27 +684,27 @@ var Popover = cva31([
627
684
  ]);
628
685
 
629
686
  // src/components/Radio.styles.ts
630
- import { cva as cva32 } from "@marigold/system";
687
+ import { cva as cva33 } from "@marigold/system";
631
688
  var Radio = {
632
- container: cva32("group-disabled/radio:cursor-not-allowed"),
633
- label: cva32([
689
+ container: cva33("group-disabled/radio:cursor-not-allowed"),
690
+ label: cva33([
634
691
  "text-sm font-normal cursor-pointer",
635
692
  "group-disabled/radio:text-disabled-foreground group-disabled/radio:cursor-not-allowed"
636
693
  ]),
637
- radio: cva32([
694
+ radio: cva33([
638
695
  "aspect-square size-4 rounded-full",
639
696
  "border border-input shadow-sm shadow-black/5",
640
697
  "group-focus-visible/radio:util-focus-ring outline-none",
641
698
  "group-disabled/radio:group-selected/radio:bg-disabled group-disabled/radio:border-disabled! group-disabled/radio:cursor-not-allowed",
642
699
  "group-selected/radio:border-brand group-selected/radio:bg-brand group-selected/radio:text-brand-foreground"
643
700
  ]),
644
- group: cva32()
701
+ group: cva33()
645
702
  };
646
703
 
647
704
  // src/components/Pagination.styles.ts
648
- import { cva as cva33 } from "@marigold/system";
705
+ import { cva as cva34 } from "@marigold/system";
649
706
  var Pagination = {
650
- navigationButton: cva33([
707
+ navigationButton: cva34([
651
708
  "inline-flex items-center justify-center whitespace-nowrap rounded-lg text-sm font-medium transition-colors",
652
709
  "focus-visible:util-focus-ring outline-none",
653
710
  "disabled:pointer-events-none disabled:bg-disabled disabled:text-disabled-foreground",
@@ -656,7 +713,7 @@ var Pagination = {
656
713
  "h-9 py-2 gap-1 px-2.5",
657
714
  "cursor-pointer"
658
715
  ]),
659
- pageButton: cva33([
716
+ pageButton: cva34([
660
717
  "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm font-medium transition-colors bg-background size-9",
661
718
  "focus-visible:util-focus-ring outline-none",
662
719
  "disabled:pointer-events-none disabled:bg-disabled disabled:text-disabled-foreground",
@@ -665,19 +722,19 @@ var Pagination = {
665
722
  "hover:bg-hover hover:text-hover-foreground",
666
723
  "cursor-pointer"
667
724
  ]),
668
- icon: cva33("h-4 w-4")
725
+ icon: cva34("h-4 w-4")
669
726
  };
670
727
 
671
728
  // src/components/ProgressCycle.styles.ts
672
- import { cva as cva34 } from "@marigold/system";
673
- var ProgressCycle = cva34([
729
+ import { cva as cva35 } from "@marigold/system";
730
+ var ProgressCycle = cva35([
674
731
  "stroke-foreground"
675
732
  ]);
676
733
 
677
734
  // src/components/SectionMessage.styles.ts
678
- import { cva as cva35 } from "@marigold/system";
735
+ import { cva as cva36 } from "@marigold/system";
679
736
  var SectionMessage = {
680
- container: cva35(
737
+ container: cva36(
681
738
  [
682
739
  'grid-cols-[min-content_auto_min-content] gap-x-4 gap-y-1 [grid-template-areas:"icon_title_close""icon_content_content"]',
683
740
  "bg-background rounded-md border px-3 py-4"
@@ -696,8 +753,8 @@ var SectionMessage = {
696
753
  }
697
754
  }
698
755
  ),
699
- title: cva35("text-sm font-medium"),
700
- content: cva35("text-muted-foreground text-sm leading-5 font-normal", {
756
+ title: cva36("text-sm font-medium"),
757
+ content: cva36("text-muted-foreground text-sm leading-5 font-normal", {
701
758
  variants: {
702
759
  variant: {
703
760
  success: "text-success-muted-foreground",
@@ -710,7 +767,7 @@ var SectionMessage = {
710
767
  variant: "info"
711
768
  }
712
769
  }),
713
- icon: cva35("h-6 w-6 align-baseline leading-none -mt-0.5", {
770
+ icon: cva36("h-6 w-6 align-baseline leading-none -mt-0.5", {
714
771
  variants: {
715
772
  variant: {
716
773
  success: "text-success-muted-accent",
@@ -723,7 +780,7 @@ var SectionMessage = {
723
780
  variant: "info"
724
781
  }
725
782
  }),
726
- close: cva35([
783
+ close: cva36([
727
784
  "size-8 text-foreground",
728
785
  "[&_svg]:size-6",
729
786
  "-my-1.5 -me-2"
@@ -732,10 +789,10 @@ var SectionMessage = {
732
789
  };
733
790
 
734
791
  // src/components/Select.styles.ts
735
- import { cva as cva36 } from "@marigold/system";
792
+ import { cva as cva37 } from "@marigold/system";
736
793
  var Select = {
737
- icon: cva36("text-muted-foreground/80"),
738
- select: cva36([
794
+ icon: cva37("text-muted-foreground/80"),
795
+ select: cva37([
739
796
  inputContainer,
740
797
  inputInvalid,
741
798
  inputDisabled,
@@ -747,30 +804,30 @@ var Select = {
747
804
  };
748
805
 
749
806
  // src/components/Slider.styles.ts
750
- import { cva as cva37 } from "@marigold/system";
807
+ import { cva as cva38 } from "@marigold/system";
751
808
  var Slider = {
752
- container: cva37("*:aria-hidden:hidden"),
753
- track: cva37([
809
+ container: cva38("*:aria-hidden:hidden"),
810
+ track: cva38([
754
811
  "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"
755
812
  ]),
756
- selectedTrack: cva37([
813
+ selectedTrack: cva38([
757
814
  "absolute bg-black data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full rounded-lg"
758
815
  ]),
759
- thumb: cva37([
816
+ thumb: cva38([
760
817
  "block h-5 w-5 rounded-full border-2 border-primary bg-background transition-colors",
761
818
  "focus-visible:util-focus-borderless-ring outline-none",
762
819
  "disabled:cursor-not-allowed"
763
820
  ]),
764
- output: cva37("text-text-base text-sm")
821
+ output: cva38("text-text-base text-sm")
765
822
  };
766
823
 
767
824
  // src/components/Switch.styles.ts
768
- import { cva as cva38 } from "@marigold/system";
825
+ import { cva as cva39 } from "@marigold/system";
769
826
  var Switch = {
770
- container: cva38(
827
+ container: cva39(
771
828
  "disabled:cursor-not-allowed disabled:text-disabled-foreground"
772
829
  ),
773
- track: cva38([
830
+ track: cva39([
774
831
  "flex h-6 w-10 shrink-0 cursor-pointer items-center rounded-full transition-colors",
775
832
  "border-2 border-transparent",
776
833
  // this increases the hit area so it is 24px
@@ -778,7 +835,7 @@ var Switch = {
778
835
  "group-selected/switch:bg-brand bg-input",
779
836
  "group-focus-visible/switch:util-focus-borderless-ring outline-none"
780
837
  ]),
781
- thumb: cva38([
838
+ thumb: cva39([
782
839
  "pointer-events-none block size-5 rounded-full",
783
840
  "bg-background shadow-sm shadow-black/5",
784
841
  "ring-0 transition-transform duration-150 ease-out-quint",
@@ -787,9 +844,9 @@ var Switch = {
787
844
  };
788
845
 
789
846
  // src/components/Table.styles.ts
790
- import { cva as cva39 } from "@marigold/system";
847
+ import { cva as cva40 } from "@marigold/system";
791
848
  var Table = {
792
- table: cva39(
849
+ table: cva40(
793
850
  "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",
794
851
  {
795
852
  variants: {
@@ -800,7 +857,7 @@ var Table = {
800
857
  }
801
858
  }
802
859
  ),
803
- thead: cva39(
860
+ thead: cva40(
804
861
  // for sticky header
805
862
  "bg-background/90 top-0 z-1 backdrop-blur-xs ",
806
863
  {
@@ -812,27 +869,29 @@ var Table = {
812
869
  }
813
870
  }
814
871
  ),
815
- headerRow: cva39(["border-border border-b"], {
872
+ headerRow: cva40(["border-border border-b"], {
816
873
  variants: {
817
874
  variant: {
818
875
  default: "",
819
- grid: "[&>:not(:last-child)]:border-r [&>:not(:last-child)]:border-border"
876
+ grid: "[&>:not(:last-child)]:border-r [&>:not(:last-child)]:border-border",
877
+ muted: "bg-muted"
820
878
  }
821
879
  },
822
880
  defaultVariants: {
823
881
  variant: "default"
824
882
  }
825
883
  }),
826
- header: cva39(
884
+ header: cva40(
827
885
  [
828
- "h-12 px-3 align-middle font-medium text-muted-foreground last:text-right",
886
+ "h-12 px-3 align-middle font-medium text-muted-foreground",
829
887
  "focus-visible:outline-2 outline-offset-2 outline-ring/70"
830
888
  ],
831
889
  {
832
890
  variants: {
833
891
  variant: {
834
892
  default: "[&:has([type=checkbox])]:pr-0",
835
- grid: ""
893
+ grid: "",
894
+ muted: "border-t"
836
895
  }
837
896
  },
838
897
  defaultVariants: {
@@ -840,8 +899,8 @@ var Table = {
840
899
  }
841
900
  }
842
901
  ),
843
- body: cva39("[&_tr:last-child]:border-0"),
844
- row: cva39(
902
+ body: cva40("[&_tr:last-child]:border-0"),
903
+ row: cva40(
845
904
  [
846
905
  "border-b border-border transition-colors",
847
906
  "focus-visible:outline-2 outline-offset-2 outline-ring/70",
@@ -859,11 +918,8 @@ var Table = {
859
918
  }
860
919
  }
861
920
  ),
862
- cell: cva39(
863
- [
864
- "p-3 align-middle last:text-right",
865
- "focus-visible:outline-2 outline-offset-2 outline-ring/70"
866
- ],
921
+ cell: cva40(
922
+ ["p-3", "focus-visible:outline-2 outline-offset-2 outline-ring/70"],
867
923
  {
868
924
  variants: {
869
925
  variant: {
@@ -879,14 +935,14 @@ var Table = {
879
935
  };
880
936
 
881
937
  // src/components/Tabs.styles.ts
882
- import { cva as cva40 } from "@marigold/system";
938
+ import { cva as cva41 } from "@marigold/system";
883
939
  var Tabs = {
884
- container: cva40("flex flex-col gap-2"),
885
- tabsList: cva40([
940
+ container: cva41("flex flex-col gap-2"),
941
+ tabsList: cva41([
886
942
  "text-muted-foreground",
887
943
  "flex items-center p-0.5 h-auto gap-2 border-b border-border px-0 py-1"
888
944
  ]),
889
- tab: cva40([
945
+ tab: cva41([
890
946
  "relative inline-flex items-center justify-center rounded-sm px-3 py-1.5 text-sm font-medium whitespace-nowrap transition-colors",
891
947
  "[&_svg]:shrink-0",
892
948
  "focus-visible:util-focus-ring outline-none",
@@ -895,16 +951,16 @@ var Tabs = {
895
951
  "data-selected:text-foreground data-selected:hover:bg-hover",
896
952
  "data-[selected=true]:after:bg-foreground after:absolute after:inset-x-0 after:bottom-0 after:-mb-1 after:h-0.5"
897
953
  ]),
898
- tabpanel: cva40([
954
+ tabpanel: cva41([
899
955
  "py-4 rounded-sm",
900
956
  "focus-visible:util-focus-ring outline-none"
901
957
  ])
902
958
  };
903
959
 
904
960
  // src/components/Tag.styles.ts
905
- import { cva as cva41 } from "@marigold/system";
961
+ import { cva as cva42 } from "@marigold/system";
906
962
  var Tag = {
907
- tag: cva41([
963
+ tag: cva42([
908
964
  "relative inline-flex items-center gap-[7px]",
909
965
  "border border-solid border-input rounded-md",
910
966
  "font-medium text-xs",
@@ -914,16 +970,16 @@ var Tag = {
914
970
  "data-[disabled]:cursor-not-allowed data-[disabled]:text-disabled-foreground data-[disabled]:bg-disabled",
915
971
  "focus-visible:util-focus-ring outline-none"
916
972
  ]),
917
- closeButton: cva41([
973
+ closeButton: cva42([
918
974
  "size-4",
919
975
  "disabled:bg-disabled disabled:text-disabled-foreground disabled:cursor-not-allowed"
920
976
  ]),
921
- listItems: cva41("flex flex-wrap items-center gap-1")
977
+ listItems: cva42("flex flex-wrap items-center gap-1")
922
978
  };
923
979
 
924
980
  // src/components/TextArea.styles.ts
925
- import { cva as cva42 } from "@marigold/system";
926
- var TextArea = cva42([
981
+ import { cva as cva43 } from "@marigold/system";
982
+ var TextArea = cva43([
927
983
  inputContainer,
928
984
  inputInvalid,
929
985
  "focus:util-focus-ring outline-none",
@@ -933,8 +989,8 @@ var TextArea = cva42([
933
989
  ]);
934
990
 
935
991
  // src/components/Text.styles.ts
936
- import { cva as cva43 } from "@marigold/system";
937
- var Text = cva43("", {
992
+ import { cva as cva44 } from "@marigold/system";
993
+ var Text = cva44("", {
938
994
  variants: {
939
995
  variant: {
940
996
  muted: "text-muted-foreground"
@@ -963,9 +1019,9 @@ var Text = cva43("", {
963
1019
  });
964
1020
 
965
1021
  // src/components/Tooltip.styles.ts
966
- import { cva as cva44 } from "@marigold/system";
1022
+ import { cva as cva45 } from "@marigold/system";
967
1023
  var Tooltip = {
968
- container: cva44(
1024
+ container: cva45(
969
1025
  [
970
1026
  "text-brand-foreground bg-brand relative z-50 max-w-70 rounded-md border border-brand px-3 py-1.5 text-sm ",
971
1027
  "placement-top:mb-2",
@@ -985,7 +1041,7 @@ var Tooltip = {
985
1041
  }
986
1042
  }
987
1043
  ),
988
- arrow: cva44(
1044
+ arrow: cva45(
989
1045
  [
990
1046
  "fill-brand stroke-brand",
991
1047
  // right
@@ -1010,13 +1066,13 @@ var Tooltip = {
1010
1066
  };
1011
1067
 
1012
1068
  // src/components/Underlay.styles.ts
1013
- import { cva as cva45 } from "@marigold/system";
1014
- var Underlay = cva45("bg-black/80 px-4");
1069
+ import { cva as cva46 } from "@marigold/system";
1070
+ var Underlay = cva46("bg-black/80 px-4");
1015
1071
 
1016
1072
  // src/components/XLoader.styles.ts
1017
- import { cva as cva46 } from "@marigold/system";
1073
+ import { cva as cva47 } from "@marigold/system";
1018
1074
  var XLoader = {
1019
- container: cva46("grid place-items-center text-brand", {
1075
+ container: cva47("grid place-items-center text-brand", {
1020
1076
  variants: {
1021
1077
  variant: {
1022
1078
  default: "",
@@ -1033,7 +1089,7 @@ var XLoader = {
1033
1089
  size: "default"
1034
1090
  }
1035
1091
  }),
1036
- loader: cva46("size-full", {
1092
+ loader: cva47("size-full", {
1037
1093
  variants: {
1038
1094
  variant: {
1039
1095
  default: "",
@@ -1050,7 +1106,7 @@ var XLoader = {
1050
1106
  size: "default"
1051
1107
  }
1052
1108
  }),
1053
- label: cva46("text-current text-sm")
1109
+ label: cva47("text-current text-sm")
1054
1110
  };
1055
1111
 
1056
1112
  // src/theme.ts