@marigold/theme-rui 1.0.1 → 1.1.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 +136 -125
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +136 -125
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +45 -57
- package/dist/utils.css +0 -3
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -55,6 +55,7 @@ __export(components_exports, {
|
|
|
55
55
|
List: () => List,
|
|
56
56
|
ListBox: () => ListBox,
|
|
57
57
|
Menu: () => Menu,
|
|
58
|
+
Modal: () => Modal,
|
|
58
59
|
MultiSelect: () => MultiSelect,
|
|
59
60
|
NumberField: () => NumberField,
|
|
60
61
|
Pagination: () => Pagination,
|
|
@@ -96,7 +97,7 @@ var Accordion = {
|
|
|
96
97
|
card: [
|
|
97
98
|
"rounded-md border px-4 py-1 outline-none last:border-b",
|
|
98
99
|
// TODO: focus is still shown even if an item within the item is focused
|
|
99
|
-
"has-focus-visible:util-focus-ring"
|
|
100
|
+
"has-focus-visible:util-focus-ring outline-none"
|
|
100
101
|
]
|
|
101
102
|
}
|
|
102
103
|
},
|
|
@@ -114,7 +115,7 @@ var Accordion = {
|
|
|
114
115
|
{
|
|
115
116
|
variants: {
|
|
116
117
|
variant: {
|
|
117
|
-
default: "focus-visible:util-focus-ring",
|
|
118
|
+
default: "focus-visible:util-focus-ring outline-none",
|
|
118
119
|
card: "outline-none"
|
|
119
120
|
}
|
|
120
121
|
},
|
|
@@ -135,7 +136,7 @@ var circle = "before:size-1.5 before:rounded-full pr-2";
|
|
|
135
136
|
var Badge = (0, import_system2.cva)(
|
|
136
137
|
[
|
|
137
138
|
"inline-flex items-center justify-center rounded-full border px-1.5 text-xs font-medium leading-normal transition-colors",
|
|
138
|
-
"focus-visible:util-focus-ring"
|
|
139
|
+
"focus-visible:util-focus-ring outline-none"
|
|
139
140
|
],
|
|
140
141
|
{
|
|
141
142
|
variants: {
|
|
@@ -176,7 +177,7 @@ var Button = (0, import_system4.cva)(
|
|
|
176
177
|
[
|
|
177
178
|
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-[color,box-shadow]",
|
|
178
179
|
"[&_svg]:shrink-0",
|
|
179
|
-
"focus-visible:util-focus-ring disabled:util-disabled",
|
|
180
|
+
"focus-visible:util-focus-ring outline-none disabled:util-disabled",
|
|
180
181
|
"pending:text-disabled-foreground pending:bg-disabled pending:cursor-not-allowed pending:border-none",
|
|
181
182
|
"cursor-pointer"
|
|
182
183
|
],
|
|
@@ -218,8 +219,8 @@ var Checkbox = {
|
|
|
218
219
|
checkbox: (0, import_system6.cva)([
|
|
219
220
|
"grid size-4 shrink-0 place-content-center rounded",
|
|
220
221
|
"border border-input shadow-sm shadow-black/5",
|
|
221
|
-
"group-focus-visible/checkbox:util-focus-ring",
|
|
222
|
-
"group-disabled/checkbox:bg-disabled
|
|
222
|
+
"group-focus-visible/checkbox:util-focus-ring outline-none",
|
|
223
|
+
"group-disabled/checkbox:group-selected/checkbox:bg-disabled group-disabled/checkbox:border-disabled! group-disabled/checkbox:text-disabled-foreground group-disabled/checkbox:cursor-not-allowed",
|
|
223
224
|
"group-selected/checkbox:border-brand group-selected/checkbox:bg-brand group-selected/checkbox:text-brand-foreground",
|
|
224
225
|
"group-[indeterminate]/checkbox:border-brand group-[indeterminate]/checkbox:bg-brand group-[indeterminate]/checkbox:text-brand-foreground"
|
|
225
226
|
]),
|
|
@@ -242,13 +243,13 @@ var Calendar = {
|
|
|
242
243
|
"outline-offset-2 duration-150 [transition-property:color,background-color,border-radius,box-shadow]",
|
|
243
244
|
"disabled:pointer-events-none data-[unavailable]:pointer-events-none data-focus-visible:z-10 data-[hovered]:bg-hover selected:bg-brand data-[hovered]:text-foreground selected:text-brand-foreground data-[unavailable]:line-through",
|
|
244
245
|
"disabled:opacity-30 data-[unavailable]:opacity-30",
|
|
245
|
-
"focus-visible:util-focus-borderless-ring"
|
|
246
|
+
"focus-visible:util-focus-borderless-ring outline-none"
|
|
246
247
|
]),
|
|
247
248
|
calendarControllers: (0, import_system7.cva)([
|
|
248
249
|
"size-9 rounded-lg",
|
|
249
250
|
"text-muted-foreground/80",
|
|
250
251
|
"transition-colors",
|
|
251
|
-
"focus-visible:util-focus-ring"
|
|
252
|
+
"focus-visible:util-focus-ring outline-none"
|
|
252
253
|
]),
|
|
253
254
|
calendarHeader: (0, import_system7.cva)([
|
|
254
255
|
"size-9 rounded-lg p-0 text-xs font-medium text-muted-foreground/80"
|
|
@@ -287,7 +288,7 @@ var Input = {
|
|
|
287
288
|
inputContainer,
|
|
288
289
|
inputDisabled,
|
|
289
290
|
inputInvalid,
|
|
290
|
-
"focus:util-focus-ring",
|
|
291
|
+
"focus:util-focus-ring outline-none",
|
|
291
292
|
inputReadOnly,
|
|
292
293
|
"h-input",
|
|
293
294
|
"placeholder:text-placeholder",
|
|
@@ -309,7 +310,7 @@ var DateField = {
|
|
|
309
310
|
"h-input",
|
|
310
311
|
inputContainer,
|
|
311
312
|
inputDisabled,
|
|
312
|
-
"has-focus-visible:util-focus-ring",
|
|
313
|
+
"has-focus-visible:util-focus-ring outline-none",
|
|
313
314
|
inputInvalid,
|
|
314
315
|
inputReadOnly,
|
|
315
316
|
"invalid:focus-within:border-destructive invalid:focus-within:ring-destructive/20"
|
|
@@ -339,23 +340,10 @@ var DatePicker = (0, import_system12.cva)([
|
|
|
339
340
|
var import_system13 = require("@marigold/system");
|
|
340
341
|
var Dialog = {
|
|
341
342
|
closeButton: (0, import_system13.cva)(["absolute top-6 right-3", "size-7 "]),
|
|
342
|
-
container: (0, import_system13.cva)(
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
"util-surface-overlay"
|
|
347
|
-
],
|
|
348
|
-
{
|
|
349
|
-
variants: {
|
|
350
|
-
size: {
|
|
351
|
-
default: "sm:max-w-100"
|
|
352
|
-
}
|
|
353
|
-
},
|
|
354
|
-
defaultVariants: {
|
|
355
|
-
size: "default"
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
|
-
),
|
|
343
|
+
container: (0, import_system13.cva)([
|
|
344
|
+
"flex flex-col gap-0 rounded-xl p-6 overflow-y-auto",
|
|
345
|
+
"util-surface-overlay"
|
|
346
|
+
]),
|
|
359
347
|
header: (0, import_system13.cva)("flex flex-col gap-1 text-center sm:text-left"),
|
|
360
348
|
title: (0, import_system13.cva)("text-lg font-semibold mb-1", {
|
|
361
349
|
variants: {
|
|
@@ -510,7 +498,7 @@ var ListBox = {
|
|
|
510
498
|
"selected:bg-selected",
|
|
511
499
|
"hover:bg-hover hover:text-hover-foreground",
|
|
512
500
|
"disabled:cursor-not-allowed disabled:text-disabled-foreground",
|
|
513
|
-
"focus-visible:util-focus-ring"
|
|
501
|
+
"focus-visible:util-focus-ring outline-none"
|
|
514
502
|
]),
|
|
515
503
|
section: (0, import_system26.cva)(""),
|
|
516
504
|
header: (0, import_system26.cva)(
|
|
@@ -532,11 +520,37 @@ var Menu = {
|
|
|
532
520
|
)
|
|
533
521
|
};
|
|
534
522
|
|
|
535
|
-
// src/components/
|
|
523
|
+
// src/components/Modal.styles.ts
|
|
536
524
|
var import_system28 = require("@marigold/system");
|
|
525
|
+
var Modal = (0, import_system28.cva)(
|
|
526
|
+
[
|
|
527
|
+
"sm:max-h-[min(640px,80vh)]",
|
|
528
|
+
"[--dialog-spacing-x:1rem]",
|
|
529
|
+
// Minimal padding to the horizontal edges
|
|
530
|
+
"w-[min(calc(100%_-_var(--dialog-spacing-x)),calc(var(--dialog-width)_-_var(--dialog-spacing-x)))]"
|
|
531
|
+
],
|
|
532
|
+
{
|
|
533
|
+
variants: {
|
|
534
|
+
size: {
|
|
535
|
+
xsmall: "[--dialog-width:480px]",
|
|
536
|
+
// "xs" breakpoint
|
|
537
|
+
small: "[--dialog-width:640px]",
|
|
538
|
+
// sm breakpoint
|
|
539
|
+
medium: "[--dialog-width:768px]"
|
|
540
|
+
// md breakpoint
|
|
541
|
+
}
|
|
542
|
+
},
|
|
543
|
+
defaultVariants: {
|
|
544
|
+
size: "small"
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
);
|
|
548
|
+
|
|
549
|
+
// src/components/Multiselect.styles.ts
|
|
550
|
+
var import_system29 = require("@marigold/system");
|
|
537
551
|
var MultiSelect = {
|
|
538
|
-
field: (0,
|
|
539
|
-
container: (0,
|
|
552
|
+
field: (0, import_system29.cva)("grid gap-y-0.5"),
|
|
553
|
+
container: (0, import_system29.cva)([
|
|
540
554
|
"bg-background shadow-sm shadow-black/5 border",
|
|
541
555
|
"px-3 text-sm text-foreground transition-shadow",
|
|
542
556
|
"border border-input rounded-lg outline-hidden",
|
|
@@ -546,7 +560,7 @@ var MultiSelect = {
|
|
|
546
560
|
"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",
|
|
547
561
|
"has-[input[aria-readonly=true]]:bg-muted"
|
|
548
562
|
]),
|
|
549
|
-
input: (0,
|
|
563
|
+
input: (0, import_system29.cva)([
|
|
550
564
|
"bg-transparent flex-1 h-full",
|
|
551
565
|
"leading-loose",
|
|
552
566
|
"data-[focused]:outline-hidden outline-hidden border-0",
|
|
@@ -555,20 +569,20 @@ var MultiSelect = {
|
|
|
555
569
|
"group-data-[action]/input:pr-8",
|
|
556
570
|
"placeholder:text-placeholder"
|
|
557
571
|
]),
|
|
558
|
-
tag: (0,
|
|
572
|
+
tag: (0, import_system29.cva)([
|
|
559
573
|
"border border-solid border-input rounded-md",
|
|
560
574
|
"bg-background",
|
|
561
575
|
"font-medium text-xs",
|
|
562
576
|
"flex items-center gap-1 ",
|
|
563
577
|
"h-7 px-2 cursor-default"
|
|
564
578
|
]),
|
|
565
|
-
closeButton: (0,
|
|
579
|
+
closeButton: (0, import_system29.cva)(
|
|
566
580
|
"size-4 cursor-pointer border-none bg-transparent p-0 leading-normal outline-0"
|
|
567
581
|
),
|
|
568
|
-
icon: (0,
|
|
569
|
-
listContainer: (0,
|
|
570
|
-
list: (0,
|
|
571
|
-
option: (0,
|
|
582
|
+
icon: (0, import_system29.cva)("left-1"),
|
|
583
|
+
listContainer: (0, import_system29.cva)(["util-surface-overlay mt-0.5 rounded-lg outline-0"]),
|
|
584
|
+
list: (0, import_system29.cva)("pointer-events-auto space-y-1 p-1"),
|
|
585
|
+
option: (0, import_system29.cva)([
|
|
572
586
|
"text-sm text-foreground",
|
|
573
587
|
"flex flex-col",
|
|
574
588
|
"cursor-pointer p-2 outline-hidden",
|
|
@@ -576,36 +590,36 @@ var MultiSelect = {
|
|
|
576
590
|
"aria-disabled:text-disabled-foreground aria-disabled:cursor-not-allowed",
|
|
577
591
|
"[&.isFocused:not([aria-disabled=true])]:!bg-hover"
|
|
578
592
|
]),
|
|
579
|
-
valueContainer: (0,
|
|
593
|
+
valueContainer: (0, import_system29.cva)("gap-2 py-2 min-h-input")
|
|
580
594
|
};
|
|
581
595
|
|
|
582
596
|
// src/components/NumberField.styles.ts
|
|
583
|
-
var
|
|
597
|
+
var import_system30 = require("@marigold/system");
|
|
584
598
|
var NumberField = {
|
|
585
|
-
group: (0,
|
|
586
|
-
"rounded-lg h-input",
|
|
587
|
-
"has-focus-visible:util-focus-ring",
|
|
599
|
+
group: (0, import_system30.cva)([
|
|
600
|
+
"rounded-lg h-input bg-background",
|
|
601
|
+
"has-focus-visible:util-focus-ring outline-none",
|
|
588
602
|
inputInvalid,
|
|
589
603
|
inputReadOnly,
|
|
590
604
|
"border border-input text-sm shadow-sm shadow-black/5 transition-shadow",
|
|
591
605
|
"data-invalid:data-[focus-within]:border-destructive data-invalid:data-[focus-within]:ring-destructive/20"
|
|
592
606
|
]),
|
|
593
|
-
stepper: (0,
|
|
607
|
+
stepper: (0, import_system30.cva)([
|
|
594
608
|
"w-7 h-full text-center shrink-0",
|
|
595
609
|
"disabled:text-disabled-foreground disabled:bg-disabled",
|
|
596
610
|
"border-input! first-of-type:border-r! last-of-type:border-l!"
|
|
597
611
|
]),
|
|
598
|
-
input: (0,
|
|
612
|
+
input: (0, import_system30.cva)([
|
|
599
613
|
"tabular-nums text-foreground px-3 py-2",
|
|
600
|
-
"min-w-0 flex-1",
|
|
614
|
+
"min-w-0 flex-1 bg-transparent",
|
|
601
615
|
"group-[[data-stepper]]/field:text-center",
|
|
602
616
|
"disabled:text-disabled-foreground disabled:bg-disabled"
|
|
603
617
|
])
|
|
604
618
|
};
|
|
605
619
|
|
|
606
620
|
// src/components/Popover.styles.ts
|
|
607
|
-
var
|
|
608
|
-
var Popover = (0,
|
|
621
|
+
var import_system31 = require("@marigold/system");
|
|
622
|
+
var Popover = (0, import_system31.cva)([
|
|
609
623
|
"group/popover",
|
|
610
624
|
"text-foreground z-50 overflow-y-auto overflow-x-hidden rounded-md outline-0",
|
|
611
625
|
"placement-top:mb-1",
|
|
@@ -616,57 +630,57 @@ var Popover = (0, import_system30.cva)([
|
|
|
616
630
|
]);
|
|
617
631
|
|
|
618
632
|
// src/components/Radio.styles.ts
|
|
619
|
-
var
|
|
633
|
+
var import_system32 = require("@marigold/system");
|
|
620
634
|
var Radio = {
|
|
621
|
-
container: (0,
|
|
622
|
-
label: (0,
|
|
635
|
+
container: (0, import_system32.cva)("group-disabled/radio:cursor-not-allowed"),
|
|
636
|
+
label: (0, import_system32.cva)([
|
|
623
637
|
"text-sm font-normal cursor-pointer",
|
|
624
638
|
"group-disabled/radio:text-disabled-foreground group-disabled/radio:cursor-not-allowed"
|
|
625
639
|
]),
|
|
626
|
-
radio: (0,
|
|
640
|
+
radio: (0, import_system32.cva)([
|
|
627
641
|
"aspect-square size-4 rounded-full",
|
|
628
642
|
"border border-input shadow-sm shadow-black/5",
|
|
629
|
-
"group-focus-visible/radio:util-focus-ring",
|
|
630
|
-
"group-disabled/radio:border-disabled",
|
|
643
|
+
"group-focus-visible/radio:util-focus-ring outline-none",
|
|
644
|
+
"group-disabled/radio:group-selected/radio:bg-disabled group-disabled/radio:border-disabled! group-disabled/radio:cursor-not-allowed",
|
|
631
645
|
"group-selected/radio:border-brand group-selected/radio:bg-brand group-selected/radio:text-brand-foreground"
|
|
632
646
|
]),
|
|
633
|
-
group: (0,
|
|
647
|
+
group: (0, import_system32.cva)()
|
|
634
648
|
};
|
|
635
649
|
|
|
636
650
|
// src/components/Pagination.styles.ts
|
|
637
|
-
var
|
|
651
|
+
var import_system33 = require("@marigold/system");
|
|
638
652
|
var Pagination = {
|
|
639
|
-
navigationButton: (0,
|
|
653
|
+
navigationButton: (0, import_system33.cva)([
|
|
640
654
|
"inline-flex items-center justify-center whitespace-nowrap rounded-lg text-sm font-medium transition-colors",
|
|
641
|
-
"focus-visible:util-focus-ring",
|
|
655
|
+
"focus-visible:util-focus-ring outline-none",
|
|
642
656
|
"disabled:pointer-events-none disabled:bg-disabled disabled:text-disabled-foreground",
|
|
643
657
|
"[&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
644
658
|
"hover:bg-hover hover:text-hover-foreground",
|
|
645
659
|
"h-9 py-2 gap-1 px-2.5",
|
|
646
660
|
"cursor-pointer"
|
|
647
661
|
]),
|
|
648
|
-
pageButton: (0,
|
|
662
|
+
pageButton: (0, import_system33.cva)([
|
|
649
663
|
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm font-medium transition-colors bg-background size-9",
|
|
650
|
-
"focus-visible:util-focus-ring",
|
|
664
|
+
"focus-visible:util-focus-ring outline-none",
|
|
651
665
|
"disabled:pointer-events-none disabled:bg-disabled disabled:text-disabled-foreground",
|
|
652
666
|
"[&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
653
667
|
"data-[selected=true]:border data-[selected=true]:border-input data-[selected=true]:shadow-xs",
|
|
654
668
|
"hover:bg-hover hover:text-hover-foreground",
|
|
655
669
|
"cursor-pointer"
|
|
656
670
|
]),
|
|
657
|
-
icon: (0,
|
|
671
|
+
icon: (0, import_system33.cva)("h-4 w-4")
|
|
658
672
|
};
|
|
659
673
|
|
|
660
674
|
// src/components/ProgressCycle.styles.ts
|
|
661
|
-
var
|
|
662
|
-
var ProgressCycle = (0,
|
|
675
|
+
var import_system34 = require("@marigold/system");
|
|
676
|
+
var ProgressCycle = (0, import_system34.cva)([
|
|
663
677
|
"stroke-foreground"
|
|
664
678
|
]);
|
|
665
679
|
|
|
666
680
|
// src/components/SectionMessage.styles.ts
|
|
667
|
-
var
|
|
681
|
+
var import_system35 = require("@marigold/system");
|
|
668
682
|
var SectionMessage = {
|
|
669
|
-
container: (0,
|
|
683
|
+
container: (0, import_system35.cva)(
|
|
670
684
|
[
|
|
671
685
|
'grid-cols-[min-content_auto_min-content] gap-x-4 gap-y-1 [grid-template-areas:"icon_title_close""icon_content_content"]',
|
|
672
686
|
"bg-background rounded-md border px-3 py-4"
|
|
@@ -685,8 +699,8 @@ var SectionMessage = {
|
|
|
685
699
|
}
|
|
686
700
|
}
|
|
687
701
|
),
|
|
688
|
-
title: (0,
|
|
689
|
-
content: (0,
|
|
702
|
+
title: (0, import_system35.cva)("text-sm font-medium"),
|
|
703
|
+
content: (0, import_system35.cva)("text-muted-foreground text-sm leading-5 font-normal", {
|
|
690
704
|
variants: {
|
|
691
705
|
variant: {
|
|
692
706
|
success: "text-success-muted-foreground",
|
|
@@ -699,7 +713,7 @@ var SectionMessage = {
|
|
|
699
713
|
variant: "info"
|
|
700
714
|
}
|
|
701
715
|
}),
|
|
702
|
-
icon: (0,
|
|
716
|
+
icon: (0, import_system35.cva)("h-6 w-6 align-baseline leading-none -mt-0.5", {
|
|
703
717
|
variants: {
|
|
704
718
|
variant: {
|
|
705
719
|
success: "text-success-muted-accent",
|
|
@@ -712,7 +726,7 @@ var SectionMessage = {
|
|
|
712
726
|
variant: "info"
|
|
713
727
|
}
|
|
714
728
|
}),
|
|
715
|
-
close: (0,
|
|
729
|
+
close: (0, import_system35.cva)([
|
|
716
730
|
"size-8 text-foreground",
|
|
717
731
|
"[&_svg]:size-6",
|
|
718
732
|
"-my-1.5 -me-2"
|
|
@@ -721,14 +735,14 @@ var SectionMessage = {
|
|
|
721
735
|
};
|
|
722
736
|
|
|
723
737
|
// src/components/Select.styles.ts
|
|
724
|
-
var
|
|
738
|
+
var import_system36 = require("@marigold/system");
|
|
725
739
|
var Select = {
|
|
726
|
-
icon: (0,
|
|
727
|
-
select: (0,
|
|
740
|
+
icon: (0, import_system36.cva)("text-muted-foreground/80"),
|
|
741
|
+
select: (0, import_system36.cva)([
|
|
728
742
|
inputContainer,
|
|
729
743
|
inputInvalid,
|
|
730
744
|
inputDisabled,
|
|
731
|
-
"focus-visible:util-focus-ring",
|
|
745
|
+
"focus-visible:util-focus-ring outline-none",
|
|
732
746
|
"h-input",
|
|
733
747
|
"cursor-pointer",
|
|
734
748
|
"*:data-placeholder:text-placeholder"
|
|
@@ -736,37 +750,37 @@ var Select = {
|
|
|
736
750
|
};
|
|
737
751
|
|
|
738
752
|
// src/components/Slider.styles.ts
|
|
739
|
-
var
|
|
753
|
+
var import_system37 = require("@marigold/system");
|
|
740
754
|
var Slider = {
|
|
741
|
-
container: (0,
|
|
742
|
-
track: (0,
|
|
755
|
+
container: (0, import_system37.cva)("*:aria-hidden:hidden"),
|
|
756
|
+
track: (0, import_system37.cva)([
|
|
743
757
|
"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"
|
|
744
758
|
]),
|
|
745
|
-
selectedTrack: (0,
|
|
759
|
+
selectedTrack: (0, import_system37.cva)([
|
|
746
760
|
"absolute bg-black data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full rounded-lg"
|
|
747
761
|
]),
|
|
748
|
-
thumb: (0,
|
|
762
|
+
thumb: (0, import_system37.cva)([
|
|
749
763
|
"block h-5 w-5 rounded-full border-2 border-primary bg-background transition-colors",
|
|
750
|
-
"focus-visible:util-focus-borderless-ring",
|
|
764
|
+
"focus-visible:util-focus-borderless-ring outline-none",
|
|
751
765
|
"disabled:cursor-not-allowed"
|
|
752
766
|
]),
|
|
753
|
-
output: (0,
|
|
767
|
+
output: (0, import_system37.cva)("text-text-base text-sm")
|
|
754
768
|
};
|
|
755
769
|
|
|
756
770
|
// src/components/Switch.styles.ts
|
|
757
|
-
var
|
|
771
|
+
var import_system38 = require("@marigold/system");
|
|
758
772
|
var Switch = {
|
|
759
|
-
container: (0,
|
|
773
|
+
container: (0, import_system38.cva)(
|
|
760
774
|
"disabled:cursor-not-allowed disabled:text-disabled-foreground"
|
|
761
775
|
),
|
|
762
|
-
track: (0,
|
|
776
|
+
track: (0, import_system38.cva)([
|
|
763
777
|
"inline-flex h-6 w-10 shrink-0 cursor-pointer items-center rounded-full",
|
|
764
778
|
"border-2 border-transparent",
|
|
765
779
|
"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",
|
|
766
780
|
"group-selected/switch:bg-brand bg-input",
|
|
767
|
-
"group-focus-visible/switch:util-focus-borderless-ring"
|
|
781
|
+
"group-focus-visible/switch:util-focus-borderless-ring outline-none"
|
|
768
782
|
]),
|
|
769
|
-
thumb: (0,
|
|
783
|
+
thumb: (0, import_system38.cva)([
|
|
770
784
|
"pointer-events-none block size-5 rounded-full",
|
|
771
785
|
"bg-background shadow-sm shadow-black/5",
|
|
772
786
|
"ring-0 transition-transform duration-300 ease-[cubic-bezier(0.16,1,0.3,1)]",
|
|
@@ -775,9 +789,9 @@ var Switch = {
|
|
|
775
789
|
};
|
|
776
790
|
|
|
777
791
|
// src/components/Table.styles.ts
|
|
778
|
-
var
|
|
792
|
+
var import_system39 = require("@marigold/system");
|
|
779
793
|
var Table = {
|
|
780
|
-
table: (0,
|
|
794
|
+
table: (0, import_system39.cva)(
|
|
781
795
|
"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",
|
|
782
796
|
{
|
|
783
797
|
variants: {
|
|
@@ -788,7 +802,7 @@ var Table = {
|
|
|
788
802
|
}
|
|
789
803
|
}
|
|
790
804
|
),
|
|
791
|
-
thead: (0,
|
|
805
|
+
thead: (0, import_system39.cva)(
|
|
792
806
|
// for sticky header
|
|
793
807
|
"bg-background/90 top-0 z-1 backdrop-blur-xs ",
|
|
794
808
|
{
|
|
@@ -800,7 +814,7 @@ var Table = {
|
|
|
800
814
|
}
|
|
801
815
|
}
|
|
802
816
|
),
|
|
803
|
-
headerRow: (0,
|
|
817
|
+
headerRow: (0, import_system39.cva)(["border-border border-b"], {
|
|
804
818
|
variants: {
|
|
805
819
|
variant: {
|
|
806
820
|
default: "",
|
|
@@ -811,7 +825,7 @@ var Table = {
|
|
|
811
825
|
variant: "default"
|
|
812
826
|
}
|
|
813
827
|
}),
|
|
814
|
-
header: (0,
|
|
828
|
+
header: (0, import_system39.cva)(
|
|
815
829
|
[
|
|
816
830
|
"h-12 px-3 align-middle font-medium text-muted-foreground last:text-right",
|
|
817
831
|
"focus-visible:outline-2 outline-offset-2 outline-ring/70"
|
|
@@ -828,8 +842,8 @@ var Table = {
|
|
|
828
842
|
}
|
|
829
843
|
}
|
|
830
844
|
),
|
|
831
|
-
body: (0,
|
|
832
|
-
row: (0,
|
|
845
|
+
body: (0, import_system39.cva)("[&_tr:last-child]:border-0"),
|
|
846
|
+
row: (0, import_system39.cva)(
|
|
833
847
|
[
|
|
834
848
|
"border-b border-border transition-colors",
|
|
835
849
|
"focus-visible:outline-2 outline-offset-2 outline-ring/70",
|
|
@@ -847,7 +861,7 @@ var Table = {
|
|
|
847
861
|
}
|
|
848
862
|
}
|
|
849
863
|
),
|
|
850
|
-
cell: (0,
|
|
864
|
+
cell: (0, import_system39.cva)(
|
|
851
865
|
[
|
|
852
866
|
"p-3 align-middle last:text-right",
|
|
853
867
|
"focus-visible:outline-2 outline-offset-2 outline-ring/70"
|
|
@@ -867,29 +881,32 @@ var Table = {
|
|
|
867
881
|
};
|
|
868
882
|
|
|
869
883
|
// src/components/Tabs.styles.ts
|
|
870
|
-
var
|
|
884
|
+
var import_system40 = require("@marigold/system");
|
|
871
885
|
var Tabs = {
|
|
872
|
-
container: (0,
|
|
873
|
-
tabsList: (0,
|
|
886
|
+
container: (0, import_system40.cva)("flex flex-col gap-2"),
|
|
887
|
+
tabsList: (0, import_system40.cva)([
|
|
874
888
|
"text-muted-foreground",
|
|
875
|
-
"flex items-center p-0.5 h-auto gap-2 border-b px-0 py-1"
|
|
889
|
+
"flex items-center p-0.5 h-auto gap-2 border-b border-border px-0 py-1"
|
|
876
890
|
]),
|
|
877
|
-
tab: (0,
|
|
891
|
+
tab: (0, import_system40.cva)([
|
|
878
892
|
"relative inline-flex items-center justify-center rounded-sm px-3 py-1.5 text-sm font-medium whitespace-nowrap transition-colors",
|
|
879
893
|
"[&_svg]:shrink-0",
|
|
880
|
-
"focus-visible:util-focus-ring",
|
|
894
|
+
"focus-visible:util-focus-ring outline-none",
|
|
881
895
|
"hover:bg-hover hover:text-foreground",
|
|
882
896
|
"disabled:pointer-events-none disabled:opacity-50",
|
|
883
897
|
"data-selected:text-foreground data-selected:hover:bg-hover",
|
|
884
898
|
"data-[selected=true]:after:bg-foreground after:absolute after:inset-x-0 after:bottom-0 after:-mb-1 after:h-0.5"
|
|
885
899
|
]),
|
|
886
|
-
tabpanel: (0,
|
|
900
|
+
tabpanel: (0, import_system40.cva)([
|
|
901
|
+
"py-4 rounded-sm",
|
|
902
|
+
"focus-visible:util-focus-ring outline-none"
|
|
903
|
+
])
|
|
887
904
|
};
|
|
888
905
|
|
|
889
906
|
// src/components/Tag.styles.ts
|
|
890
|
-
var
|
|
907
|
+
var import_system41 = require("@marigold/system");
|
|
891
908
|
var Tag = {
|
|
892
|
-
tag: (0,
|
|
909
|
+
tag: (0, import_system41.cva)([
|
|
893
910
|
"relative inline-flex items-center gap-[7px]",
|
|
894
911
|
"border border-solid border-input rounded-md",
|
|
895
912
|
"font-medium text-xs",
|
|
@@ -897,29 +914,29 @@ var Tag = {
|
|
|
897
914
|
"bg-background",
|
|
898
915
|
"data-selected:text-white data-selected:bg-brand",
|
|
899
916
|
"data-[disabled]:cursor-not-allowed data-[disabled]:text-disabled-foreground data-[disabled]:bg-disabled",
|
|
900
|
-
"focus-visible:util-focus-ring"
|
|
917
|
+
"focus-visible:util-focus-ring outline-none"
|
|
901
918
|
]),
|
|
902
|
-
closeButton: (0,
|
|
919
|
+
closeButton: (0, import_system41.cva)([
|
|
903
920
|
"size-4",
|
|
904
921
|
"disabled:bg-disabled disabled:text-disabled-foreground disabled:cursor-not-allowed"
|
|
905
922
|
]),
|
|
906
|
-
listItems: (0,
|
|
923
|
+
listItems: (0, import_system41.cva)("flex flex-wrap items-center gap-1")
|
|
907
924
|
};
|
|
908
925
|
|
|
909
926
|
// src/components/TextArea.styles.ts
|
|
910
|
-
var
|
|
911
|
-
var TextArea = (0,
|
|
927
|
+
var import_system42 = require("@marigold/system");
|
|
928
|
+
var TextArea = (0, import_system42.cva)([
|
|
912
929
|
inputContainer,
|
|
913
930
|
inputInvalid,
|
|
914
|
-
"focus:util-focus-ring",
|
|
931
|
+
"focus:util-focus-ring outline-none",
|
|
915
932
|
inputDisabled,
|
|
916
933
|
inputReadOnly,
|
|
917
934
|
"invalid:text-destructive"
|
|
918
935
|
]);
|
|
919
936
|
|
|
920
937
|
// src/components/Text.styles.ts
|
|
921
|
-
var
|
|
922
|
-
var Text = (0,
|
|
938
|
+
var import_system43 = require("@marigold/system");
|
|
939
|
+
var Text = (0, import_system43.cva)("", {
|
|
923
940
|
variants: {
|
|
924
941
|
variant: {
|
|
925
942
|
muted: "text-muted-foreground"
|
|
@@ -948,9 +965,9 @@ var Text = (0, import_system42.cva)("", {
|
|
|
948
965
|
});
|
|
949
966
|
|
|
950
967
|
// src/components/Tooltip.styles.ts
|
|
951
|
-
var
|
|
968
|
+
var import_system44 = require("@marigold/system");
|
|
952
969
|
var Tooltip = {
|
|
953
|
-
container: (0,
|
|
970
|
+
container: (0, import_system44.cva)(
|
|
954
971
|
[
|
|
955
972
|
"text-brand-foreground bg-brand relative z-50 max-w-70 rounded-md border border-brand px-3 py-1.5 text-sm ",
|
|
956
973
|
"placement-top:mb-2",
|
|
@@ -970,7 +987,7 @@ var Tooltip = {
|
|
|
970
987
|
}
|
|
971
988
|
}
|
|
972
989
|
),
|
|
973
|
-
arrow: (0,
|
|
990
|
+
arrow: (0, import_system44.cva)(
|
|
974
991
|
[
|
|
975
992
|
"fill-brand stroke-brand",
|
|
976
993
|
// right
|
|
@@ -995,19 +1012,13 @@ var Tooltip = {
|
|
|
995
1012
|
};
|
|
996
1013
|
|
|
997
1014
|
// src/components/Underlay.styles.ts
|
|
998
|
-
var
|
|
999
|
-
var Underlay = (0,
|
|
1000
|
-
variants: {
|
|
1001
|
-
variant: {
|
|
1002
|
-
modal: " bg-black/80 backdrop-blur-sm"
|
|
1003
|
-
}
|
|
1004
|
-
}
|
|
1005
|
-
});
|
|
1015
|
+
var import_system45 = require("@marigold/system");
|
|
1016
|
+
var Underlay = (0, import_system45.cva)("bg-black/80 px-4");
|
|
1006
1017
|
|
|
1007
1018
|
// src/components/XLoader.styles.ts
|
|
1008
|
-
var
|
|
1019
|
+
var import_system46 = require("@marigold/system");
|
|
1009
1020
|
var XLoader = {
|
|
1010
|
-
container: (0,
|
|
1021
|
+
container: (0, import_system46.cva)("grid place-items-center text-brand", {
|
|
1011
1022
|
variants: {
|
|
1012
1023
|
variant: {
|
|
1013
1024
|
default: "",
|
|
@@ -1024,7 +1035,7 @@ var XLoader = {
|
|
|
1024
1035
|
size: "default"
|
|
1025
1036
|
}
|
|
1026
1037
|
}),
|
|
1027
|
-
loader: (0,
|
|
1038
|
+
loader: (0, import_system46.cva)("size-full", {
|
|
1028
1039
|
variants: {
|
|
1029
1040
|
variant: {
|
|
1030
1041
|
default: "",
|
|
@@ -1041,7 +1052,7 @@ var XLoader = {
|
|
|
1041
1052
|
size: "default"
|
|
1042
1053
|
}
|
|
1043
1054
|
}),
|
|
1044
|
-
label: (0,
|
|
1055
|
+
label: (0, import_system46.cva)("text-current text-sm")
|
|
1045
1056
|
};
|
|
1046
1057
|
|
|
1047
1058
|
// src/theme.ts
|