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