@marigold/theme-rui 0.4.0 → 1.0.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 +151 -95
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +151 -95
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +546 -244
- package/dist/theme.css +1 -1
- package/dist/utils.css +61 -0
- package/package.json +7 -7
- package/dist/mixins.css +0 -54
package/dist/index.js
CHANGED
|
@@ -54,6 +54,7 @@ __export(components_exports, {
|
|
|
54
54
|
List: () => List,
|
|
55
55
|
ListBox: () => ListBox,
|
|
56
56
|
Menu: () => Menu,
|
|
57
|
+
MultiSelect: () => MultiSelect,
|
|
57
58
|
NumberField: () => NumberField,
|
|
58
59
|
Pagination: () => Pagination,
|
|
59
60
|
Popover: () => Popover,
|
|
@@ -94,7 +95,7 @@ var Accordion = {
|
|
|
94
95
|
card: [
|
|
95
96
|
"rounded-md border px-4 py-1 outline-none last:border-b",
|
|
96
97
|
// TODO: focus is still shown even if an item within the item is focused
|
|
97
|
-
"
|
|
98
|
+
"has-focus-visible:util-focus-ring"
|
|
98
99
|
]
|
|
99
100
|
}
|
|
100
101
|
},
|
|
@@ -112,7 +113,7 @@ var Accordion = {
|
|
|
112
113
|
{
|
|
113
114
|
variants: {
|
|
114
115
|
variant: {
|
|
115
|
-
default: "
|
|
116
|
+
default: "focus-visible:util-focus-ring",
|
|
116
117
|
card: "outline-none"
|
|
117
118
|
}
|
|
118
119
|
},
|
|
@@ -133,7 +134,7 @@ var circle = "before:size-1.5 before:rounded-full pr-2";
|
|
|
133
134
|
var Badge = (0, import_system2.cva)(
|
|
134
135
|
[
|
|
135
136
|
"inline-flex items-center justify-center rounded-full border px-1.5 text-xs font-medium leading-normal transition-colors",
|
|
136
|
-
"
|
|
137
|
+
"focus-visible:util-focus-ring"
|
|
137
138
|
],
|
|
138
139
|
{
|
|
139
140
|
variants: {
|
|
@@ -174,7 +175,7 @@ var Button = (0, import_system4.cva)(
|
|
|
174
175
|
[
|
|
175
176
|
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-[color,box-shadow]",
|
|
176
177
|
"[&_svg]:shrink-0",
|
|
177
|
-
"
|
|
178
|
+
"focus-visible:util-focus-ring disabled:util-disabled",
|
|
178
179
|
"pending:text-disabled-foreground pending:bg-disabled pending:cursor-not-allowed pending:border-none",
|
|
179
180
|
"cursor-pointer"
|
|
180
181
|
],
|
|
@@ -218,7 +219,7 @@ 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
|
-
"
|
|
222
|
+
"group-focus-visible/checkbox:util-focus-ring",
|
|
222
223
|
"group-disabled/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"
|
|
@@ -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
|
-
"
|
|
246
|
+
"focus-visible:util-focus-borderless-ring"
|
|
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
|
-
"
|
|
252
|
+
"focus-visible:util-focus-ring"
|
|
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"
|
|
@@ -276,7 +277,7 @@ var Input = {
|
|
|
276
277
|
inputContainer,
|
|
277
278
|
inputDisabled,
|
|
278
279
|
inputInvalid,
|
|
279
|
-
"
|
|
280
|
+
"focus-visible:util-focus-ring",
|
|
280
281
|
inputReadOnly,
|
|
281
282
|
"h-input",
|
|
282
283
|
"placeholder:text-placeholder",
|
|
@@ -298,7 +299,7 @@ var DateField = {
|
|
|
298
299
|
"h-input",
|
|
299
300
|
inputContainer,
|
|
300
301
|
inputDisabled,
|
|
301
|
-
"
|
|
302
|
+
"has-focus-visible:util-focus-ring",
|
|
302
303
|
inputInvalid,
|
|
303
304
|
inputReadOnly,
|
|
304
305
|
"invalid:focus-within:border-destructive invalid:focus-within:ring-destructive/20"
|
|
@@ -328,9 +329,9 @@ var DatePicker = (0, import_system11.cva)([
|
|
|
328
329
|
var import_system12 = require("@marigold/system");
|
|
329
330
|
var Dialog = {
|
|
330
331
|
closeButton: (0, import_system12.cva)([
|
|
331
|
-
"absolute top-
|
|
332
|
+
"absolute top-6 right-3",
|
|
332
333
|
"flex size-7 items-center justify-center rounded transition-[color,box-shadow]",
|
|
333
|
-
"
|
|
334
|
+
"focus-visible:util-focus-ring",
|
|
334
335
|
"[&_svg]:size-4 [&_svg]:opacity-60 [&_svg]:transition-opacity hover:[&_svg]:opacity-100"
|
|
335
336
|
]),
|
|
336
337
|
container: (0, import_system12.cva)(
|
|
@@ -352,8 +353,14 @@ var Dialog = {
|
|
|
352
353
|
}
|
|
353
354
|
),
|
|
354
355
|
header: (0, import_system12.cva)("flex flex-col gap-1 text-center sm:text-left"),
|
|
356
|
+
title: (0, import_system12.cva)("text-lg font-semibold mb-1", {
|
|
357
|
+
variants: {
|
|
358
|
+
variant: {},
|
|
359
|
+
size: {}
|
|
360
|
+
}
|
|
361
|
+
}),
|
|
355
362
|
content: (0, import_system12.cva)("text-muted-foreground text-sm"),
|
|
356
|
-
actions: (0, import_system12.cva)("flex flex-col-reverse gap-3 sm:flex-row sm:justify-end")
|
|
363
|
+
actions: (0, import_system12.cva)("flex flex-col-reverse gap-3 sm:flex-row sm:justify-end mt-4")
|
|
357
364
|
};
|
|
358
365
|
|
|
359
366
|
// src/components/Divider.styles.ts
|
|
@@ -420,7 +427,7 @@ var Drawer = {
|
|
|
420
427
|
closeButton: (0, import_system14.cva)([
|
|
421
428
|
"absolute top-3.5 right-3 z-50",
|
|
422
429
|
"flex size-7 items-center justify-center rounded transition-[color,box-shadow]",
|
|
423
|
-
"
|
|
430
|
+
"focus-visible:util-focus-ring",
|
|
424
431
|
"[&_svg]:size-4 [&_svg]:opacity-60 [&_svg]:transition-opacity hover:[&_svg]:opacity-100"
|
|
425
432
|
]),
|
|
426
433
|
header: (0, import_system14.cva)("border-border border-b px-6 py-4"),
|
|
@@ -523,12 +530,12 @@ var ListBox = {
|
|
|
523
530
|
"overflow-hidden rounded-md border border-input group-[trigger]/popover:border-0"
|
|
524
531
|
]),
|
|
525
532
|
list: (0, import_system25.cva)(["space-y-1 bg-background p-1 text-sm outline-0"]),
|
|
526
|
-
|
|
533
|
+
item: (0, import_system25.cva)([
|
|
527
534
|
"relative flex flex-col rounded-md px-2 py-1.5 text-sm text-foreground cursor-pointer",
|
|
528
535
|
"selected:bg-selected",
|
|
529
536
|
"hover:bg-hover hover:text-hover-foreground",
|
|
530
537
|
"disabled:cursor-not-allowed disabled:text-disabled-foreground",
|
|
531
|
-
"
|
|
538
|
+
"focus-visible:util-focus-ring"
|
|
532
539
|
]),
|
|
533
540
|
section: (0, import_system25.cva)(""),
|
|
534
541
|
header: (0, import_system25.cva)(
|
|
@@ -550,23 +557,72 @@ var Menu = {
|
|
|
550
557
|
)
|
|
551
558
|
};
|
|
552
559
|
|
|
553
|
-
// src/components/
|
|
560
|
+
// src/components/Multiselect.styles.ts
|
|
554
561
|
var import_system27 = require("@marigold/system");
|
|
562
|
+
var MultiSelect = {
|
|
563
|
+
field: (0, import_system27.cva)("grid gap-y-0.5"),
|
|
564
|
+
container: (0, import_system27.cva)([
|
|
565
|
+
"bg-background shadow-sm shadow-black/5 border",
|
|
566
|
+
"px-3 text-sm text-foreground transition-shadow",
|
|
567
|
+
"border border-input rounded-lg outline-hidden",
|
|
568
|
+
"aria-disabled:bg-disabled aria-disabled:text-disabled-foreground aria-disabled:hover:border-input aria-disabled:border-input aria-disabled:cursor-not-allowed",
|
|
569
|
+
"has-[input[data-invalid=true]]:border-destructive has-[input[data-invalid=true][data-focused=true]]:!border-destructive has-[input[data-invalid=true][data-focused=true]]:!ring-destructive/20",
|
|
570
|
+
"[&>*:first-child]:p-0",
|
|
571
|
+
"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",
|
|
572
|
+
"has-[input[aria-readonly=true]]:bg-muted"
|
|
573
|
+
]),
|
|
574
|
+
input: (0, import_system27.cva)([
|
|
575
|
+
"bg-transparent flex-1 h-full",
|
|
576
|
+
"leading-loose",
|
|
577
|
+
"data-[focused]:outline-hidden outline-hidden border-0",
|
|
578
|
+
"disabled:cursor-not-allowed",
|
|
579
|
+
"group-data-[icon]/input:pl-5",
|
|
580
|
+
"group-data-[action]/input:pr-8",
|
|
581
|
+
"placeholder:text-placeholder"
|
|
582
|
+
]),
|
|
583
|
+
tag: (0, import_system27.cva)([
|
|
584
|
+
"border border-solid border-input rounded-md",
|
|
585
|
+
"bg-background",
|
|
586
|
+
"font-medium text-xs",
|
|
587
|
+
"flex items-center gap-1 ",
|
|
588
|
+
"h-7 px-2 cursor-default"
|
|
589
|
+
]),
|
|
590
|
+
closeButton: (0, import_system27.cva)(
|
|
591
|
+
"size-4 cursor-pointer border-none bg-transparent p-0 leading-normal outline-0"
|
|
592
|
+
),
|
|
593
|
+
icon: (0, import_system27.cva)("left-1"),
|
|
594
|
+
listContainer: (0, import_system27.cva)([
|
|
595
|
+
"bg-background border border-solid border-input mt-0.5 rounded-lg outline-0"
|
|
596
|
+
]),
|
|
597
|
+
list: (0, import_system27.cva)("pointer-events-auto space-y-1 p-1"),
|
|
598
|
+
option: (0, import_system27.cva)([
|
|
599
|
+
"text-sm text-foreground",
|
|
600
|
+
"flex flex-col",
|
|
601
|
+
"cursor-pointer p-2 outline-hidden",
|
|
602
|
+
"[&.isFocused:not([aria-disabled=true])]:!text-foreground [&.isFocused[aria-disabled=true]]:bg-transparent",
|
|
603
|
+
"aria-disabled:text-disabled-foreground aria-disabled:cursor-not-allowed",
|
|
604
|
+
"[&.isFocused:not([aria-disabled=true])]:!bg-hover"
|
|
605
|
+
]),
|
|
606
|
+
valueContainer: (0, import_system27.cva)("gap-2 py-2 min-h-input")
|
|
607
|
+
};
|
|
608
|
+
|
|
609
|
+
// src/components/NumberField.styles.ts
|
|
610
|
+
var import_system28 = require("@marigold/system");
|
|
555
611
|
var NumberField = {
|
|
556
|
-
group: (0,
|
|
612
|
+
group: (0, import_system28.cva)([
|
|
557
613
|
"rounded-lg h-input",
|
|
558
|
-
"
|
|
614
|
+
"has-focus-visible:util-focus-ring",
|
|
559
615
|
inputInvalid,
|
|
560
616
|
inputReadOnly,
|
|
561
617
|
"border border-input text-sm shadow-sm shadow-black/5 transition-shadow",
|
|
562
618
|
"data-invalid:data-[focus-within]:border-destructive data-invalid:data-[focus-within]:ring-destructive/20"
|
|
563
619
|
]),
|
|
564
|
-
stepper: (0,
|
|
620
|
+
stepper: (0, import_system28.cva)([
|
|
565
621
|
"w-7 h-full text-center shrink-0",
|
|
566
622
|
"disabled:text-disabled-foreground disabled:bg-disabled",
|
|
567
623
|
"border-input! first-of-type:border-r! last-of-type:border-l!"
|
|
568
624
|
]),
|
|
569
|
-
input: (0,
|
|
625
|
+
input: (0, import_system28.cva)([
|
|
570
626
|
"tabular-nums text-foreground px-3 py-2",
|
|
571
627
|
"min-w-0 flex-1",
|
|
572
628
|
"group-[[data-stepper]]/field:text-center",
|
|
@@ -575,8 +631,8 @@ var NumberField = {
|
|
|
575
631
|
};
|
|
576
632
|
|
|
577
633
|
// src/components/Popover.styles.ts
|
|
578
|
-
var
|
|
579
|
-
var Popover = (0,
|
|
634
|
+
var import_system29 = require("@marigold/system");
|
|
635
|
+
var Popover = (0, import_system29.cva)([
|
|
580
636
|
"group/popover",
|
|
581
637
|
"z-50 overflow-y-auto overflow-x-hidden rounded-md outline-0 border-input",
|
|
582
638
|
/** animate stuff missing */
|
|
@@ -588,57 +644,57 @@ var Popover = (0, import_system28.cva)([
|
|
|
588
644
|
]);
|
|
589
645
|
|
|
590
646
|
// src/components/Radio.styles.ts
|
|
591
|
-
var
|
|
647
|
+
var import_system30 = require("@marigold/system");
|
|
592
648
|
var Radio = {
|
|
593
|
-
container: (0,
|
|
594
|
-
label: (0,
|
|
649
|
+
container: (0, import_system30.cva)("group-disabled/radio:cursor-not-allowed"),
|
|
650
|
+
label: (0, import_system30.cva)([
|
|
595
651
|
"text-sm font-normal cursor-pointer",
|
|
596
652
|
"group-disabled/radio:text-disabled-foreground group-disabled/radio:cursor-not-allowed"
|
|
597
653
|
]),
|
|
598
|
-
radio: (0,
|
|
654
|
+
radio: (0, import_system30.cva)([
|
|
599
655
|
"aspect-square size-4 rounded-full",
|
|
600
656
|
"border border-input shadow-sm shadow-black/5",
|
|
601
|
-
"
|
|
657
|
+
"group-focus-visible/radio:util-focus-ring",
|
|
602
658
|
"group-disabled/radio:border-disabled",
|
|
603
659
|
"group-selected/radio:border-brand group-selected/radio:bg-brand group-selected/radio:text-brand-foreground"
|
|
604
660
|
]),
|
|
605
|
-
group: (0,
|
|
661
|
+
group: (0, import_system30.cva)()
|
|
606
662
|
};
|
|
607
663
|
|
|
608
664
|
// src/components/Pagination.styles.ts
|
|
609
|
-
var
|
|
665
|
+
var import_system31 = require("@marigold/system");
|
|
610
666
|
var Pagination = {
|
|
611
|
-
navigationButton: (0,
|
|
667
|
+
navigationButton: (0, import_system31.cva)([
|
|
612
668
|
"inline-flex items-center justify-center whitespace-nowrap rounded-lg text-sm font-medium transition-colors",
|
|
613
|
-
"
|
|
669
|
+
"focus-visible:util-focus-ring",
|
|
614
670
|
"disabled:pointer-events-none disabled:bg-disabled disabled:text-disabled-foreground",
|
|
615
671
|
"[&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
616
672
|
"hover:bg-hover hover:text-hover-foreground",
|
|
617
673
|
"h-9 py-2 gap-1 px-2.5"
|
|
618
674
|
]),
|
|
619
|
-
pageButton: (0,
|
|
675
|
+
pageButton: (0, import_system31.cva)([
|
|
620
676
|
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm font-medium transition-colors bg-background size-9",
|
|
621
|
-
"
|
|
677
|
+
"focus-visible:util-focus-ring",
|
|
622
678
|
"disabled:pointer-events-none disabled:bg-disabled disabled:text-disabled-foreground",
|
|
623
679
|
"[&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
624
680
|
"data-[selected=true]:border data-[selected=true]:border-input data-[selected=true]:shadow-xs",
|
|
625
681
|
"hover:bg-hover hover:text-hover-foreground"
|
|
626
682
|
]),
|
|
627
|
-
icon: (0,
|
|
683
|
+
icon: (0, import_system31.cva)("h-4 w-4")
|
|
628
684
|
};
|
|
629
685
|
|
|
630
686
|
// src/components/ProgressCycle.styles.ts
|
|
631
|
-
var
|
|
632
|
-
var ProgressCycle = (0,
|
|
687
|
+
var import_system32 = require("@marigold/system");
|
|
688
|
+
var ProgressCycle = (0, import_system32.cva)([
|
|
633
689
|
"stroke-foreground"
|
|
634
690
|
]);
|
|
635
691
|
|
|
636
692
|
// src/components/SectionMessage.styles.ts
|
|
637
|
-
var
|
|
693
|
+
var import_system33 = require("@marigold/system");
|
|
638
694
|
var SectionMessage = {
|
|
639
|
-
container: (0,
|
|
695
|
+
container: (0, import_system33.cva)(
|
|
640
696
|
[
|
|
641
|
-
'grid-cols-[min-content_auto_min-content] gap-x-
|
|
697
|
+
'grid-cols-[min-content_auto_min-content] gap-x-4 gap-y-1 [grid-template-areas:"icon_title_close""icon_content_content"]',
|
|
642
698
|
"bg-background rounded-md border px-3 py-4"
|
|
643
699
|
],
|
|
644
700
|
{
|
|
@@ -655,8 +711,8 @@ var SectionMessage = {
|
|
|
655
711
|
}
|
|
656
712
|
}
|
|
657
713
|
),
|
|
658
|
-
title: (0,
|
|
659
|
-
content: (0,
|
|
714
|
+
title: (0, import_system33.cva)("text-sm font-medium"),
|
|
715
|
+
content: (0, import_system33.cva)("text-muted-foreground text-sm leading-5 font-normal", {
|
|
660
716
|
variants: {
|
|
661
717
|
variant: {
|
|
662
718
|
success: "text-success-muted-foreground",
|
|
@@ -669,7 +725,7 @@ var SectionMessage = {
|
|
|
669
725
|
variant: "info"
|
|
670
726
|
}
|
|
671
727
|
}),
|
|
672
|
-
icon: (0,
|
|
728
|
+
icon: (0, import_system33.cva)("h-6 w-6 align-baseline leading-none -mt-0.5", {
|
|
673
729
|
variants: {
|
|
674
730
|
variant: {
|
|
675
731
|
success: "text-success-muted-accent",
|
|
@@ -682,26 +738,26 @@ var SectionMessage = {
|
|
|
682
738
|
variant: "info"
|
|
683
739
|
}
|
|
684
740
|
}),
|
|
685
|
-
close: (0,
|
|
741
|
+
close: (0, import_system33.cva)([
|
|
686
742
|
"flex items-center justify-center",
|
|
687
743
|
"rounded-md transition-color size-8 shrink-0 p-0 text-foreground cursor-pointer",
|
|
688
|
-
"[&_svg]:pointer-events-none [&_svg]:size-
|
|
744
|
+
"[&_svg]:pointer-events-none [&_svg]:size-6 [&_svg]:shrink-0",
|
|
689
745
|
"-my-1.5 -me-2",
|
|
690
746
|
// align button with title
|
|
691
|
-
"
|
|
747
|
+
"focus-visible:util-focus-ring",
|
|
692
748
|
"[&_svg]:opacity-60 [&_svg]:transition-opacity hover:[&_svg]:opacity-100"
|
|
693
749
|
])
|
|
694
750
|
};
|
|
695
751
|
|
|
696
752
|
// src/components/Select.styles.ts
|
|
697
|
-
var
|
|
753
|
+
var import_system34 = require("@marigold/system");
|
|
698
754
|
var Select = {
|
|
699
|
-
icon: (0,
|
|
700
|
-
select: (0,
|
|
755
|
+
icon: (0, import_system34.cva)("text-muted-foreground/80"),
|
|
756
|
+
select: (0, import_system34.cva)([
|
|
701
757
|
inputContainer,
|
|
702
758
|
inputInvalid,
|
|
703
759
|
inputDisabled,
|
|
704
|
-
"
|
|
760
|
+
"focus-visible:util-focus-ring",
|
|
705
761
|
"h-input",
|
|
706
762
|
"cursor-pointer",
|
|
707
763
|
"*:data-placeholder:text-placeholder"
|
|
@@ -709,37 +765,37 @@ var Select = {
|
|
|
709
765
|
};
|
|
710
766
|
|
|
711
767
|
// src/components/Slider.styles.ts
|
|
712
|
-
var
|
|
768
|
+
var import_system35 = require("@marigold/system");
|
|
713
769
|
var Slider = {
|
|
714
|
-
container: (0,
|
|
715
|
-
track: (0,
|
|
770
|
+
container: (0, import_system35.cva)("*:aria-hidden:hidden"),
|
|
771
|
+
track: (0, import_system35.cva)([
|
|
716
772
|
"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"
|
|
717
773
|
]),
|
|
718
|
-
selectedTrack: (0,
|
|
774
|
+
selectedTrack: (0, import_system35.cva)([
|
|
719
775
|
"absolute bg-black data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full rounded-lg"
|
|
720
776
|
]),
|
|
721
|
-
thumb: (0,
|
|
777
|
+
thumb: (0, import_system35.cva)([
|
|
722
778
|
"block h-5 w-5 rounded-full border-2 border-primary bg-background transition-colors",
|
|
723
|
-
"
|
|
724
|
-
"
|
|
779
|
+
"focus-visible:util-focus-borderless-ring",
|
|
780
|
+
"disabled:cursor-not-allowed"
|
|
725
781
|
]),
|
|
726
|
-
output: (0,
|
|
782
|
+
output: (0, import_system35.cva)("text-text-base text-sm")
|
|
727
783
|
};
|
|
728
784
|
|
|
729
785
|
// src/components/Switch.styles.ts
|
|
730
|
-
var
|
|
786
|
+
var import_system36 = require("@marigold/system");
|
|
731
787
|
var Switch = {
|
|
732
|
-
container: (0,
|
|
788
|
+
container: (0, import_system36.cva)(
|
|
733
789
|
"disabled:cursor-not-allowed disabled:text-disabled-foreground"
|
|
734
790
|
),
|
|
735
|
-
track: (0,
|
|
791
|
+
track: (0, import_system36.cva)([
|
|
736
792
|
"inline-flex h-6 w-10 shrink-0 cursor-pointer items-center rounded-full",
|
|
737
793
|
"border-2 border-transparent",
|
|
738
794
|
"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",
|
|
739
795
|
"group-selected/switch:bg-brand bg-input",
|
|
740
|
-
"
|
|
796
|
+
"group-focus-visible/switch:util-focus-borderless-ring"
|
|
741
797
|
]),
|
|
742
|
-
thumb: (0,
|
|
798
|
+
thumb: (0, import_system36.cva)([
|
|
743
799
|
"pointer-events-none block size-5 rounded-full",
|
|
744
800
|
"bg-background shadow-sm shadow-black/5",
|
|
745
801
|
"ring-0 transition-transform duration-300 ease-[cubic-bezier(0.16,1,0.3,1)]",
|
|
@@ -748,9 +804,9 @@ var Switch = {
|
|
|
748
804
|
};
|
|
749
805
|
|
|
750
806
|
// src/components/Table.styles.ts
|
|
751
|
-
var
|
|
807
|
+
var import_system37 = require("@marigold/system");
|
|
752
808
|
var Table = {
|
|
753
|
-
table: (0,
|
|
809
|
+
table: (0, import_system37.cva)(
|
|
754
810
|
"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",
|
|
755
811
|
{
|
|
756
812
|
variants: {
|
|
@@ -761,7 +817,7 @@ var Table = {
|
|
|
761
817
|
}
|
|
762
818
|
}
|
|
763
819
|
),
|
|
764
|
-
thead: (0,
|
|
820
|
+
thead: (0, import_system37.cva)(
|
|
765
821
|
// for sticky header
|
|
766
822
|
"bg-background/90 top-0 z-10 backdrop-blur-xs ",
|
|
767
823
|
{
|
|
@@ -773,7 +829,7 @@ var Table = {
|
|
|
773
829
|
}
|
|
774
830
|
}
|
|
775
831
|
),
|
|
776
|
-
headerRow: (0,
|
|
832
|
+
headerRow: (0, import_system37.cva)(["border-border border-b"], {
|
|
777
833
|
variants: {
|
|
778
834
|
variant: {
|
|
779
835
|
default: "",
|
|
@@ -784,7 +840,7 @@ var Table = {
|
|
|
784
840
|
variant: "default"
|
|
785
841
|
}
|
|
786
842
|
}),
|
|
787
|
-
header: (0,
|
|
843
|
+
header: (0, import_system37.cva)(
|
|
788
844
|
[
|
|
789
845
|
"h-12 px-3 align-middle font-medium text-muted-foreground last:text-right",
|
|
790
846
|
"focus-visible:outline-2 outline-offset-2 outline-ring/70"
|
|
@@ -801,8 +857,8 @@ var Table = {
|
|
|
801
857
|
}
|
|
802
858
|
}
|
|
803
859
|
),
|
|
804
|
-
body: (0,
|
|
805
|
-
row: (0,
|
|
860
|
+
body: (0, import_system37.cva)("[&_tr:last-child]:border-0"),
|
|
861
|
+
row: (0, import_system37.cva)(
|
|
806
862
|
[
|
|
807
863
|
"border-b border-border transition-colors",
|
|
808
864
|
"focus-visible:outline-2 outline-offset-2 outline-ring/70",
|
|
@@ -820,7 +876,7 @@ var Table = {
|
|
|
820
876
|
}
|
|
821
877
|
}
|
|
822
878
|
),
|
|
823
|
-
cell: (0,
|
|
879
|
+
cell: (0, import_system37.cva)(
|
|
824
880
|
[
|
|
825
881
|
"p-3 align-middle last:text-right",
|
|
826
882
|
"focus-visible:outline-2 outline-offset-2 outline-ring/70"
|
|
@@ -840,29 +896,29 @@ var Table = {
|
|
|
840
896
|
};
|
|
841
897
|
|
|
842
898
|
// src/components/Tabs.styles.ts
|
|
843
|
-
var
|
|
899
|
+
var import_system38 = require("@marigold/system");
|
|
844
900
|
var Tabs = {
|
|
845
|
-
container: (0,
|
|
846
|
-
tabsList: (0,
|
|
901
|
+
container: (0, import_system38.cva)("flex flex-col gap-2"),
|
|
902
|
+
tabsList: (0, import_system38.cva)([
|
|
847
903
|
"text-muted-foreground",
|
|
848
904
|
"flex items-center p-0.5 h-auto gap-2 border-b px-0 py-1"
|
|
849
905
|
]),
|
|
850
|
-
tab: (0,
|
|
906
|
+
tab: (0, import_system38.cva)([
|
|
851
907
|
"relative inline-flex items-center justify-center rounded-sm px-3 py-1.5 text-sm font-medium whitespace-nowrap transition-colors",
|
|
852
908
|
"[&_svg]:shrink-0",
|
|
853
|
-
"
|
|
909
|
+
"focus-visible:util-focus-ring",
|
|
854
910
|
"hover:bg-hover hover:text-foreground",
|
|
855
911
|
"disabled:pointer-events-none disabled:opacity-50",
|
|
856
912
|
"data-selected:text-foreground data-selected:hover:bg-hover",
|
|
857
913
|
"data-[selected=true]:after:bg-foreground after:absolute after:inset-x-0 after:bottom-0 after:-mb-1 after:h-0.5"
|
|
858
914
|
]),
|
|
859
|
-
tabpanel: (0,
|
|
915
|
+
tabpanel: (0, import_system38.cva)(["py-4 rounded-sm", "focus-visible:util-focus-ring"])
|
|
860
916
|
};
|
|
861
917
|
|
|
862
918
|
// src/components/Tag.styles.ts
|
|
863
|
-
var
|
|
919
|
+
var import_system39 = require("@marigold/system");
|
|
864
920
|
var Tag = {
|
|
865
|
-
tag: (0,
|
|
921
|
+
tag: (0, import_system39.cva)([
|
|
866
922
|
"relative inline-flex items-center gap-[7px]",
|
|
867
923
|
"border border-solid border-input rounded-md",
|
|
868
924
|
"font-medium text-xs",
|
|
@@ -870,31 +926,31 @@ var Tag = {
|
|
|
870
926
|
"bg-background",
|
|
871
927
|
"data-selected:text-white data-selected:bg-brand",
|
|
872
928
|
"data-[disabled]:cursor-not-allowed data-[disabled]:text-disabled-foreground data-[disabled]:bg-disabled",
|
|
873
|
-
"
|
|
929
|
+
"focus-visible:util-focus-ring"
|
|
874
930
|
]),
|
|
875
|
-
closeButton: (0,
|
|
931
|
+
closeButton: (0, import_system39.cva)([
|
|
876
932
|
"size-4 flex items-center justify-end whitespace-nowrap",
|
|
877
933
|
"font-medium text-muted-foreground text-sm hover:text-brand rounded-md",
|
|
878
934
|
"p-0 transition-colors outline-0 cursor-pointer",
|
|
879
935
|
"disabled:bg-disabled disabled:text-disabled-foreground disabled:cursor-not-allowed"
|
|
880
936
|
]),
|
|
881
|
-
listItems: (0,
|
|
937
|
+
listItems: (0, import_system39.cva)("flex flex-wrap items-center gap-1")
|
|
882
938
|
};
|
|
883
939
|
|
|
884
940
|
// src/components/TextArea.styles.ts
|
|
885
|
-
var
|
|
886
|
-
var TextArea = (0,
|
|
941
|
+
var import_system40 = require("@marigold/system");
|
|
942
|
+
var TextArea = (0, import_system40.cva)([
|
|
887
943
|
inputContainer,
|
|
888
944
|
inputInvalid,
|
|
889
|
-
"
|
|
945
|
+
"focus-visible:util-focus-ring",
|
|
890
946
|
inputDisabled,
|
|
891
947
|
inputReadOnly,
|
|
892
948
|
"invalid:text-destructive"
|
|
893
949
|
]);
|
|
894
950
|
|
|
895
951
|
// src/components/Text.styles.ts
|
|
896
|
-
var
|
|
897
|
-
var Text = (0,
|
|
952
|
+
var import_system41 = require("@marigold/system");
|
|
953
|
+
var Text = (0, import_system41.cva)("", {
|
|
898
954
|
variants: {
|
|
899
955
|
variant: {
|
|
900
956
|
muted: "text-muted-foreground"
|
|
@@ -923,9 +979,9 @@ var Text = (0, import_system40.cva)("", {
|
|
|
923
979
|
});
|
|
924
980
|
|
|
925
981
|
// src/components/Tooltip.styles.ts
|
|
926
|
-
var
|
|
982
|
+
var import_system42 = require("@marigold/system");
|
|
927
983
|
var Tooltip = {
|
|
928
|
-
container: (0,
|
|
984
|
+
container: (0, import_system42.cva)(
|
|
929
985
|
[
|
|
930
986
|
"text-brand-foreground bg-brand relative z-50 max-w-70 rounded-md border border-brand px-3 py-1.5 text-sm ",
|
|
931
987
|
"placement-top:mb-2",
|
|
@@ -945,7 +1001,7 @@ var Tooltip = {
|
|
|
945
1001
|
}
|
|
946
1002
|
}
|
|
947
1003
|
),
|
|
948
|
-
arrow: (0,
|
|
1004
|
+
arrow: (0, import_system42.cva)(
|
|
949
1005
|
[
|
|
950
1006
|
"fill-brand stroke-brand",
|
|
951
1007
|
// right
|
|
@@ -970,8 +1026,8 @@ var Tooltip = {
|
|
|
970
1026
|
};
|
|
971
1027
|
|
|
972
1028
|
// src/components/Underlay.styles.ts
|
|
973
|
-
var
|
|
974
|
-
var Underlay = (0,
|
|
1029
|
+
var import_system43 = require("@marigold/system");
|
|
1030
|
+
var Underlay = (0, import_system43.cva)("", {
|
|
975
1031
|
variants: {
|
|
976
1032
|
variant: {
|
|
977
1033
|
modal: " bg-black/80 backdrop-blur-sm"
|
|
@@ -980,9 +1036,9 @@ var Underlay = (0, import_system42.cva)("", {
|
|
|
980
1036
|
});
|
|
981
1037
|
|
|
982
1038
|
// src/components/XLoader.styles.ts
|
|
983
|
-
var
|
|
1039
|
+
var import_system44 = require("@marigold/system");
|
|
984
1040
|
var XLoader = {
|
|
985
|
-
container: (0,
|
|
1041
|
+
container: (0, import_system44.cva)("grid place-items-center text-brand", {
|
|
986
1042
|
variants: {
|
|
987
1043
|
variant: {
|
|
988
1044
|
default: "",
|
|
@@ -999,7 +1055,7 @@ var XLoader = {
|
|
|
999
1055
|
size: "default"
|
|
1000
1056
|
}
|
|
1001
1057
|
}),
|
|
1002
|
-
loader: (0,
|
|
1058
|
+
loader: (0, import_system44.cva)("size-full", {
|
|
1003
1059
|
variants: {
|
|
1004
1060
|
variant: {
|
|
1005
1061
|
default: "",
|
|
@@ -1016,7 +1072,7 @@ var XLoader = {
|
|
|
1016
1072
|
size: "default"
|
|
1017
1073
|
}
|
|
1018
1074
|
}),
|
|
1019
|
-
label: (0,
|
|
1075
|
+
label: (0, import_system44.cva)("text-current text-sm")
|
|
1020
1076
|
};
|
|
1021
1077
|
|
|
1022
1078
|
// src/theme.ts
|