@marigold/theme-rui 1.0.1 → 1.1.1
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 +165 -166
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +165 -166
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +83 -134
- package/dist/utils.css +0 -3
- package/package.json +6 -6
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
|
},
|
|
@@ -131,33 +132,20 @@ var Accordion = {
|
|
|
131
132
|
|
|
132
133
|
// src/components/Badge.styles.ts
|
|
133
134
|
var import_system2 = require("@marigold/system");
|
|
134
|
-
var circle = "before:size-1.5 before:rounded-full pr-2";
|
|
135
135
|
var Badge = (0, import_system2.cva)(
|
|
136
136
|
[
|
|
137
|
-
"inline-flex items-center justify-center rounded-full
|
|
138
|
-
"focus-visible:util-focus-ring"
|
|
137
|
+
"inline-flex items-center justify-center rounded-full px-2 text-xs font-medium leading-normal transition-colors",
|
|
138
|
+
"focus-visible:util-focus-ring outline-none"
|
|
139
139
|
],
|
|
140
140
|
{
|
|
141
141
|
variants: {
|
|
142
142
|
variant: {
|
|
143
|
-
default: "
|
|
144
|
-
primary: "bg-brand text-brand-foreground
|
|
145
|
-
success:
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
warning: [
|
|
150
|
-
"bg-warning-muted text-warning-muted-foreground border-warning-muted-accent before:bg-warning-muted-accent gap-1.5",
|
|
151
|
-
circle
|
|
152
|
-
],
|
|
153
|
-
info: [
|
|
154
|
-
"bg-info-muted text-info-muted-foreground border-info-muted-accent before:bg-info-muted-accent gap-1.5",
|
|
155
|
-
circle
|
|
156
|
-
],
|
|
157
|
-
error: [
|
|
158
|
-
"bg-destructive-muted text-destructive-muted-foreground border-destructive-muted-accent before:bg-destructive-muted-accent gap-1.5",
|
|
159
|
-
circle
|
|
160
|
-
]
|
|
143
|
+
default: "bg-muted text-foreground border border-border",
|
|
144
|
+
primary: "bg-brand text-brand-foreground ",
|
|
145
|
+
success: "bg-success-muted text-success-muted-foreground",
|
|
146
|
+
warning: "bg-warning-muted text-warning-muted-foreground",
|
|
147
|
+
info: "bg-info-muted text-info-muted-foreground",
|
|
148
|
+
error: "bg-destructive-muted text-destructive-muted-foreground"
|
|
161
149
|
}
|
|
162
150
|
},
|
|
163
151
|
defaultVariants: {
|
|
@@ -176,7 +164,7 @@ var Button = (0, import_system4.cva)(
|
|
|
176
164
|
[
|
|
177
165
|
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-[color,box-shadow]",
|
|
178
166
|
"[&_svg]:shrink-0",
|
|
179
|
-
"focus-visible:util-focus-ring disabled:util-disabled",
|
|
167
|
+
"focus-visible:util-focus-ring outline-none disabled:util-disabled",
|
|
180
168
|
"pending:text-disabled-foreground pending:bg-disabled pending:cursor-not-allowed pending:border-none",
|
|
181
169
|
"cursor-pointer"
|
|
182
170
|
],
|
|
@@ -218,8 +206,8 @@ var Checkbox = {
|
|
|
218
206
|
checkbox: (0, import_system6.cva)([
|
|
219
207
|
"grid size-4 shrink-0 place-content-center rounded",
|
|
220
208
|
"border border-input shadow-sm shadow-black/5",
|
|
221
|
-
"group-focus-visible/checkbox:util-focus-ring",
|
|
222
|
-
"group-disabled/checkbox:bg-disabled
|
|
209
|
+
"group-focus-visible/checkbox:util-focus-ring outline-none",
|
|
210
|
+
"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
211
|
"group-selected/checkbox:border-brand group-selected/checkbox:bg-brand group-selected/checkbox:text-brand-foreground",
|
|
224
212
|
"group-[indeterminate]/checkbox:border-brand group-[indeterminate]/checkbox:bg-brand group-[indeterminate]/checkbox:text-brand-foreground"
|
|
225
213
|
]),
|
|
@@ -242,13 +230,13 @@ var Calendar = {
|
|
|
242
230
|
"outline-offset-2 duration-150 [transition-property:color,background-color,border-radius,box-shadow]",
|
|
243
231
|
"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
232
|
"disabled:opacity-30 data-[unavailable]:opacity-30",
|
|
245
|
-
"focus-visible:util-focus-borderless-ring"
|
|
233
|
+
"focus-visible:util-focus-borderless-ring outline-none"
|
|
246
234
|
]),
|
|
247
235
|
calendarControllers: (0, import_system7.cva)([
|
|
248
236
|
"size-9 rounded-lg",
|
|
249
237
|
"text-muted-foreground/80",
|
|
250
238
|
"transition-colors",
|
|
251
|
-
"focus-visible:util-focus-ring"
|
|
239
|
+
"focus-visible:util-focus-ring outline-none"
|
|
252
240
|
]),
|
|
253
241
|
calendarHeader: (0, import_system7.cva)([
|
|
254
242
|
"size-9 rounded-lg p-0 text-xs font-medium text-muted-foreground/80"
|
|
@@ -287,7 +275,7 @@ var Input = {
|
|
|
287
275
|
inputContainer,
|
|
288
276
|
inputDisabled,
|
|
289
277
|
inputInvalid,
|
|
290
|
-
"focus:util-focus-ring",
|
|
278
|
+
"focus:util-focus-ring outline-none",
|
|
291
279
|
inputReadOnly,
|
|
292
280
|
"h-input",
|
|
293
281
|
"placeholder:text-placeholder",
|
|
@@ -309,7 +297,7 @@ var DateField = {
|
|
|
309
297
|
"h-input",
|
|
310
298
|
inputContainer,
|
|
311
299
|
inputDisabled,
|
|
312
|
-
"has-focus-visible:util-focus-ring",
|
|
300
|
+
"has-focus-visible:util-focus-ring outline-none",
|
|
313
301
|
inputInvalid,
|
|
314
302
|
inputReadOnly,
|
|
315
303
|
"invalid:focus-within:border-destructive invalid:focus-within:ring-destructive/20"
|
|
@@ -339,23 +327,10 @@ var DatePicker = (0, import_system12.cva)([
|
|
|
339
327
|
var import_system13 = require("@marigold/system");
|
|
340
328
|
var Dialog = {
|
|
341
329
|
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
|
-
),
|
|
330
|
+
container: (0, import_system13.cva)([
|
|
331
|
+
"flex flex-col gap-0 rounded-xl p-6 overflow-y-auto",
|
|
332
|
+
"util-surface-overlay"
|
|
333
|
+
]),
|
|
359
334
|
header: (0, import_system13.cva)("flex flex-col gap-1 text-center sm:text-left"),
|
|
360
335
|
title: (0, import_system13.cva)("text-lg font-semibold mb-1", {
|
|
361
336
|
variants: {
|
|
@@ -479,15 +454,7 @@ var Label = {
|
|
|
479
454
|
// src/components/Link.styles.ts
|
|
480
455
|
var import_system24 = require("@marigold/system");
|
|
481
456
|
var Link = (0, import_system24.cva)(
|
|
482
|
-
"underline aria-[disabled]:cursor-not-allowed
|
|
483
|
-
{
|
|
484
|
-
variants: {
|
|
485
|
-
variant: {
|
|
486
|
-
menuItemLink: "",
|
|
487
|
-
secondary: ""
|
|
488
|
-
}
|
|
489
|
-
}
|
|
490
|
-
}
|
|
457
|
+
"font-medium underline aria-[disabled]:cursor-not-allowed underline-offset-4"
|
|
491
458
|
);
|
|
492
459
|
|
|
493
460
|
// src/components/List.styles.ts
|
|
@@ -504,13 +471,15 @@ var ListBox = {
|
|
|
504
471
|
container: (0, import_system26.cva)([
|
|
505
472
|
"overflow-hidden rounded-md border border-input group-[[data-trigger]]/popover:border-0"
|
|
506
473
|
]),
|
|
507
|
-
list: (0, import_system26.cva)(["
|
|
474
|
+
list: (0, import_system26.cva)(["bg-background p-1 text-sm outline-0"]),
|
|
508
475
|
item: (0, import_system26.cva)([
|
|
509
|
-
"relative flex
|
|
510
|
-
"
|
|
476
|
+
"relative flex items-center gap-2 rounded-md px-2 py-1.5 text-sm text-foreground cursor-pointer",
|
|
477
|
+
"[&_svg]:invisible [&_svg]:block",
|
|
478
|
+
"selected:bg-selected selected:[&_svg]:visible",
|
|
511
479
|
"hover:bg-hover hover:text-hover-foreground",
|
|
512
480
|
"disabled:cursor-not-allowed disabled:text-disabled-foreground",
|
|
513
|
-
"focus-visible:util-focus-ring"
|
|
481
|
+
"focus-visible:util-focus-ring outline-none",
|
|
482
|
+
"cursor-default data-selection-mode:cursor-pointer"
|
|
514
483
|
]),
|
|
515
484
|
section: (0, import_system26.cva)(""),
|
|
516
485
|
header: (0, import_system26.cva)(
|
|
@@ -521,32 +490,64 @@ var ListBox = {
|
|
|
521
490
|
// src/components/Menu.styles.ts
|
|
522
491
|
var import_system27 = require("@marigold/system");
|
|
523
492
|
var Menu = {
|
|
524
|
-
container: (0, import_system27.cva)([
|
|
525
|
-
"text-foreground z-50 min-w-40 overflow-hidden rounded-md p-1"
|
|
526
|
-
]),
|
|
493
|
+
container: (0, import_system27.cva)(["text-foreground z-50 overflow-hidden rounded-md p-1"]),
|
|
527
494
|
item: (0, import_system27.cva)([
|
|
528
|
-
"focus:bg-focus focus:text-foreground relative flex cursor-
|
|
495
|
+
"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"
|
|
529
496
|
]),
|
|
530
497
|
section: (0, import_system27.cva)(
|
|
531
498
|
"text-muted-foreground px-2 py-1.5 text-xs font-medium border-t border-t-border in-first:border-t-0"
|
|
532
|
-
)
|
|
499
|
+
),
|
|
500
|
+
button: (0, import_system27.cva)([
|
|
501
|
+
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md h-button px-4 py-2",
|
|
502
|
+
"text-sm font-medium outline-none cursor-pointer",
|
|
503
|
+
"border border-input bg-background shadow-xs",
|
|
504
|
+
"hover:bg-hover hover:text-foreground",
|
|
505
|
+
"transition-[color,box-shadow]",
|
|
506
|
+
"disabled:pointer-not-allowed disabled:bg-disabled disabled:text-disabled-foreground",
|
|
507
|
+
"focus-visible:util-focus-ring"
|
|
508
|
+
])
|
|
533
509
|
};
|
|
534
510
|
|
|
535
|
-
// src/components/
|
|
511
|
+
// src/components/Modal.styles.ts
|
|
536
512
|
var import_system28 = require("@marigold/system");
|
|
513
|
+
var Modal = (0, import_system28.cva)(
|
|
514
|
+
[
|
|
515
|
+
"sm:max-h-[min(640px,80vh)]",
|
|
516
|
+
"[--dialog-spacing-x:1rem]",
|
|
517
|
+
// Minimal padding to the horizontal edges
|
|
518
|
+
"w-[min(calc(100%_-_var(--dialog-spacing-x)),calc(var(--dialog-width)_-_var(--dialog-spacing-x)))]"
|
|
519
|
+
],
|
|
520
|
+
{
|
|
521
|
+
variants: {
|
|
522
|
+
size: {
|
|
523
|
+
xsmall: "[--dialog-width:480px]",
|
|
524
|
+
// "xs" breakpoint
|
|
525
|
+
small: "[--dialog-width:640px]",
|
|
526
|
+
// sm breakpoint
|
|
527
|
+
medium: "[--dialog-width:768px]"
|
|
528
|
+
// md breakpoint
|
|
529
|
+
}
|
|
530
|
+
},
|
|
531
|
+
defaultVariants: {
|
|
532
|
+
size: "small"
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
);
|
|
536
|
+
|
|
537
|
+
// src/components/Multiselect.styles.ts
|
|
538
|
+
var import_system29 = require("@marigold/system");
|
|
537
539
|
var MultiSelect = {
|
|
538
|
-
field: (0,
|
|
539
|
-
container: (0,
|
|
540
|
+
field: (0, import_system29.cva)("grid gap-y-0.5"),
|
|
541
|
+
container: (0, import_system29.cva)([
|
|
540
542
|
"bg-background shadow-sm shadow-black/5 border",
|
|
541
543
|
"px-3 text-sm text-foreground transition-shadow",
|
|
542
544
|
"border border-input rounded-lg outline-hidden",
|
|
543
545
|
"aria-disabled:bg-disabled aria-disabled:text-disabled-foreground aria-disabled:hover:border-input aria-disabled:border-input aria-disabled:cursor-not-allowed",
|
|
544
546
|
"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",
|
|
545
|
-
"[&>*:first-child]:p-0",
|
|
546
547
|
"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
548
|
"has-[input[aria-readonly=true]]:bg-muted"
|
|
548
549
|
]),
|
|
549
|
-
input: (0,
|
|
550
|
+
input: (0, import_system29.cva)([
|
|
550
551
|
"bg-transparent flex-1 h-full",
|
|
551
552
|
"leading-loose",
|
|
552
553
|
"data-[focused]:outline-hidden outline-hidden border-0",
|
|
@@ -555,20 +556,20 @@ var MultiSelect = {
|
|
|
555
556
|
"group-data-[action]/input:pr-8",
|
|
556
557
|
"placeholder:text-placeholder"
|
|
557
558
|
]),
|
|
558
|
-
tag: (0,
|
|
559
|
+
tag: (0, import_system29.cva)([
|
|
559
560
|
"border border-solid border-input rounded-md",
|
|
560
561
|
"bg-background",
|
|
561
562
|
"font-medium text-xs",
|
|
562
563
|
"flex items-center gap-1 ",
|
|
563
564
|
"h-7 px-2 cursor-default"
|
|
564
565
|
]),
|
|
565
|
-
closeButton: (0,
|
|
566
|
+
closeButton: (0, import_system29.cva)(
|
|
566
567
|
"size-4 cursor-pointer border-none bg-transparent p-0 leading-normal outline-0"
|
|
567
568
|
),
|
|
568
|
-
icon: (0,
|
|
569
|
-
listContainer: (0,
|
|
570
|
-
list: (0,
|
|
571
|
-
option: (0,
|
|
569
|
+
icon: (0, import_system29.cva)("left-1"),
|
|
570
|
+
listContainer: (0, import_system29.cva)(["util-surface-overlay mt-0.5 rounded-lg outline-0"]),
|
|
571
|
+
list: (0, import_system29.cva)("pointer-events-auto space-y-1 p-1"),
|
|
572
|
+
option: (0, import_system29.cva)([
|
|
572
573
|
"text-sm text-foreground",
|
|
573
574
|
"flex flex-col",
|
|
574
575
|
"cursor-pointer p-2 outline-hidden",
|
|
@@ -576,36 +577,36 @@ var MultiSelect = {
|
|
|
576
577
|
"aria-disabled:text-disabled-foreground aria-disabled:cursor-not-allowed",
|
|
577
578
|
"[&.isFocused:not([aria-disabled=true])]:!bg-hover"
|
|
578
579
|
]),
|
|
579
|
-
valueContainer: (0,
|
|
580
|
+
valueContainer: (0, import_system29.cva)("gap-2 !py-2 min-h-input")
|
|
580
581
|
};
|
|
581
582
|
|
|
582
583
|
// src/components/NumberField.styles.ts
|
|
583
|
-
var
|
|
584
|
+
var import_system30 = require("@marigold/system");
|
|
584
585
|
var NumberField = {
|
|
585
|
-
group: (0,
|
|
586
|
-
"rounded-lg h-input",
|
|
587
|
-
"has-focus-visible:util-focus-ring",
|
|
586
|
+
group: (0, import_system30.cva)([
|
|
587
|
+
"rounded-lg h-input bg-background",
|
|
588
|
+
"has-focus-visible:util-focus-ring outline-none",
|
|
588
589
|
inputInvalid,
|
|
589
590
|
inputReadOnly,
|
|
590
591
|
"border border-input text-sm shadow-sm shadow-black/5 transition-shadow",
|
|
591
592
|
"data-invalid:data-[focus-within]:border-destructive data-invalid:data-[focus-within]:ring-destructive/20"
|
|
592
593
|
]),
|
|
593
|
-
stepper: (0,
|
|
594
|
+
stepper: (0, import_system30.cva)([
|
|
594
595
|
"w-7 h-full text-center shrink-0",
|
|
595
596
|
"disabled:text-disabled-foreground disabled:bg-disabled",
|
|
596
597
|
"border-input! first-of-type:border-r! last-of-type:border-l!"
|
|
597
598
|
]),
|
|
598
|
-
input: (0,
|
|
599
|
+
input: (0, import_system30.cva)([
|
|
599
600
|
"tabular-nums text-foreground px-3 py-2",
|
|
600
|
-
"min-w-0 flex-1",
|
|
601
|
+
"min-w-0 flex-1 bg-transparent",
|
|
601
602
|
"group-[[data-stepper]]/field:text-center",
|
|
602
603
|
"disabled:text-disabled-foreground disabled:bg-disabled"
|
|
603
604
|
])
|
|
604
605
|
};
|
|
605
606
|
|
|
606
607
|
// src/components/Popover.styles.ts
|
|
607
|
-
var
|
|
608
|
-
var Popover = (0,
|
|
608
|
+
var import_system31 = require("@marigold/system");
|
|
609
|
+
var Popover = (0, import_system31.cva)([
|
|
609
610
|
"group/popover",
|
|
610
611
|
"text-foreground z-50 overflow-y-auto overflow-x-hidden rounded-md outline-0",
|
|
611
612
|
"placement-top:mb-1",
|
|
@@ -616,57 +617,57 @@ var Popover = (0, import_system30.cva)([
|
|
|
616
617
|
]);
|
|
617
618
|
|
|
618
619
|
// src/components/Radio.styles.ts
|
|
619
|
-
var
|
|
620
|
+
var import_system32 = require("@marigold/system");
|
|
620
621
|
var Radio = {
|
|
621
|
-
container: (0,
|
|
622
|
-
label: (0,
|
|
622
|
+
container: (0, import_system32.cva)("group-disabled/radio:cursor-not-allowed"),
|
|
623
|
+
label: (0, import_system32.cva)([
|
|
623
624
|
"text-sm font-normal cursor-pointer",
|
|
624
625
|
"group-disabled/radio:text-disabled-foreground group-disabled/radio:cursor-not-allowed"
|
|
625
626
|
]),
|
|
626
|
-
radio: (0,
|
|
627
|
+
radio: (0, import_system32.cva)([
|
|
627
628
|
"aspect-square size-4 rounded-full",
|
|
628
629
|
"border border-input shadow-sm shadow-black/5",
|
|
629
|
-
"group-focus-visible/radio:util-focus-ring",
|
|
630
|
-
"group-disabled/radio:border-disabled",
|
|
630
|
+
"group-focus-visible/radio:util-focus-ring outline-none",
|
|
631
|
+
"group-disabled/radio:group-selected/radio:bg-disabled group-disabled/radio:border-disabled! group-disabled/radio:cursor-not-allowed",
|
|
631
632
|
"group-selected/radio:border-brand group-selected/radio:bg-brand group-selected/radio:text-brand-foreground"
|
|
632
633
|
]),
|
|
633
|
-
group: (0,
|
|
634
|
+
group: (0, import_system32.cva)()
|
|
634
635
|
};
|
|
635
636
|
|
|
636
637
|
// src/components/Pagination.styles.ts
|
|
637
|
-
var
|
|
638
|
+
var import_system33 = require("@marigold/system");
|
|
638
639
|
var Pagination = {
|
|
639
|
-
navigationButton: (0,
|
|
640
|
+
navigationButton: (0, import_system33.cva)([
|
|
640
641
|
"inline-flex items-center justify-center whitespace-nowrap rounded-lg text-sm font-medium transition-colors",
|
|
641
|
-
"focus-visible:util-focus-ring",
|
|
642
|
+
"focus-visible:util-focus-ring outline-none",
|
|
642
643
|
"disabled:pointer-events-none disabled:bg-disabled disabled:text-disabled-foreground",
|
|
643
644
|
"[&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
644
645
|
"hover:bg-hover hover:text-hover-foreground",
|
|
645
646
|
"h-9 py-2 gap-1 px-2.5",
|
|
646
647
|
"cursor-pointer"
|
|
647
648
|
]),
|
|
648
|
-
pageButton: (0,
|
|
649
|
+
pageButton: (0, import_system33.cva)([
|
|
649
650
|
"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",
|
|
651
|
+
"focus-visible:util-focus-ring outline-none",
|
|
651
652
|
"disabled:pointer-events-none disabled:bg-disabled disabled:text-disabled-foreground",
|
|
652
653
|
"[&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
653
654
|
"data-[selected=true]:border data-[selected=true]:border-input data-[selected=true]:shadow-xs",
|
|
654
655
|
"hover:bg-hover hover:text-hover-foreground",
|
|
655
656
|
"cursor-pointer"
|
|
656
657
|
]),
|
|
657
|
-
icon: (0,
|
|
658
|
+
icon: (0, import_system33.cva)("h-4 w-4")
|
|
658
659
|
};
|
|
659
660
|
|
|
660
661
|
// src/components/ProgressCycle.styles.ts
|
|
661
|
-
var
|
|
662
|
-
var ProgressCycle = (0,
|
|
662
|
+
var import_system34 = require("@marigold/system");
|
|
663
|
+
var ProgressCycle = (0, import_system34.cva)([
|
|
663
664
|
"stroke-foreground"
|
|
664
665
|
]);
|
|
665
666
|
|
|
666
667
|
// src/components/SectionMessage.styles.ts
|
|
667
|
-
var
|
|
668
|
+
var import_system35 = require("@marigold/system");
|
|
668
669
|
var SectionMessage = {
|
|
669
|
-
container: (0,
|
|
670
|
+
container: (0, import_system35.cva)(
|
|
670
671
|
[
|
|
671
672
|
'grid-cols-[min-content_auto_min-content] gap-x-4 gap-y-1 [grid-template-areas:"icon_title_close""icon_content_content"]',
|
|
672
673
|
"bg-background rounded-md border px-3 py-4"
|
|
@@ -685,8 +686,8 @@ var SectionMessage = {
|
|
|
685
686
|
}
|
|
686
687
|
}
|
|
687
688
|
),
|
|
688
|
-
title: (0,
|
|
689
|
-
content: (0,
|
|
689
|
+
title: (0, import_system35.cva)("text-sm font-medium"),
|
|
690
|
+
content: (0, import_system35.cva)("text-muted-foreground text-sm leading-5 font-normal", {
|
|
690
691
|
variants: {
|
|
691
692
|
variant: {
|
|
692
693
|
success: "text-success-muted-foreground",
|
|
@@ -699,7 +700,7 @@ var SectionMessage = {
|
|
|
699
700
|
variant: "info"
|
|
700
701
|
}
|
|
701
702
|
}),
|
|
702
|
-
icon: (0,
|
|
703
|
+
icon: (0, import_system35.cva)("h-6 w-6 align-baseline leading-none -mt-0.5", {
|
|
703
704
|
variants: {
|
|
704
705
|
variant: {
|
|
705
706
|
success: "text-success-muted-accent",
|
|
@@ -712,7 +713,7 @@ var SectionMessage = {
|
|
|
712
713
|
variant: "info"
|
|
713
714
|
}
|
|
714
715
|
}),
|
|
715
|
-
close: (0,
|
|
716
|
+
close: (0, import_system35.cva)([
|
|
716
717
|
"size-8 text-foreground",
|
|
717
718
|
"[&_svg]:size-6",
|
|
718
719
|
"-my-1.5 -me-2"
|
|
@@ -721,14 +722,14 @@ var SectionMessage = {
|
|
|
721
722
|
};
|
|
722
723
|
|
|
723
724
|
// src/components/Select.styles.ts
|
|
724
|
-
var
|
|
725
|
+
var import_system36 = require("@marigold/system");
|
|
725
726
|
var Select = {
|
|
726
|
-
icon: (0,
|
|
727
|
-
select: (0,
|
|
727
|
+
icon: (0, import_system36.cva)("text-muted-foreground/80"),
|
|
728
|
+
select: (0, import_system36.cva)([
|
|
728
729
|
inputContainer,
|
|
729
730
|
inputInvalid,
|
|
730
731
|
inputDisabled,
|
|
731
|
-
"focus-visible:util-focus-ring",
|
|
732
|
+
"focus-visible:util-focus-ring outline-none",
|
|
732
733
|
"h-input",
|
|
733
734
|
"cursor-pointer",
|
|
734
735
|
"*:data-placeholder:text-placeholder"
|
|
@@ -736,48 +737,49 @@ var Select = {
|
|
|
736
737
|
};
|
|
737
738
|
|
|
738
739
|
// src/components/Slider.styles.ts
|
|
739
|
-
var
|
|
740
|
+
var import_system37 = require("@marigold/system");
|
|
740
741
|
var Slider = {
|
|
741
|
-
container: (0,
|
|
742
|
-
track: (0,
|
|
742
|
+
container: (0, import_system37.cva)("*:aria-hidden:hidden"),
|
|
743
|
+
track: (0, import_system37.cva)([
|
|
743
744
|
"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
745
|
]),
|
|
745
|
-
selectedTrack: (0,
|
|
746
|
+
selectedTrack: (0, import_system37.cva)([
|
|
746
747
|
"absolute bg-black data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full rounded-lg"
|
|
747
748
|
]),
|
|
748
|
-
thumb: (0,
|
|
749
|
+
thumb: (0, import_system37.cva)([
|
|
749
750
|
"block h-5 w-5 rounded-full border-2 border-primary bg-background transition-colors",
|
|
750
|
-
"focus-visible:util-focus-borderless-ring",
|
|
751
|
+
"focus-visible:util-focus-borderless-ring outline-none",
|
|
751
752
|
"disabled:cursor-not-allowed"
|
|
752
753
|
]),
|
|
753
|
-
output: (0,
|
|
754
|
+
output: (0, import_system37.cva)("text-text-base text-sm")
|
|
754
755
|
};
|
|
755
756
|
|
|
756
757
|
// src/components/Switch.styles.ts
|
|
757
|
-
var
|
|
758
|
+
var import_system38 = require("@marigold/system");
|
|
758
759
|
var Switch = {
|
|
759
|
-
container: (0,
|
|
760
|
+
container: (0, import_system38.cva)(
|
|
760
761
|
"disabled:cursor-not-allowed disabled:text-disabled-foreground"
|
|
761
762
|
),
|
|
762
|
-
track: (0,
|
|
763
|
-
"
|
|
763
|
+
track: (0, import_system38.cva)([
|
|
764
|
+
"flex h-6 w-10 shrink-0 cursor-pointer items-center rounded-full transition-colors",
|
|
764
765
|
"border-2 border-transparent",
|
|
766
|
+
// this increases the hit area so it is 24px
|
|
765
767
|
"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
768
|
"group-selected/switch:bg-brand bg-input",
|
|
767
|
-
"group-focus-visible/switch:util-focus-borderless-ring"
|
|
769
|
+
"group-focus-visible/switch:util-focus-borderless-ring outline-none"
|
|
768
770
|
]),
|
|
769
|
-
thumb: (0,
|
|
771
|
+
thumb: (0, import_system38.cva)([
|
|
770
772
|
"pointer-events-none block size-5 rounded-full",
|
|
771
773
|
"bg-background shadow-sm shadow-black/5",
|
|
772
|
-
"ring-0 transition-transform duration-
|
|
773
|
-
"group-selected/switch:translate-x-4 translate-x-0
|
|
774
|
+
"ring-0 transition-transform duration-150 ease-out-quint",
|
|
775
|
+
"group-selected/switch:translate-x-4 translate-x-0"
|
|
774
776
|
])
|
|
775
777
|
};
|
|
776
778
|
|
|
777
779
|
// src/components/Table.styles.ts
|
|
778
|
-
var
|
|
780
|
+
var import_system39 = require("@marigold/system");
|
|
779
781
|
var Table = {
|
|
780
|
-
table: (0,
|
|
782
|
+
table: (0, import_system39.cva)(
|
|
781
783
|
"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
784
|
{
|
|
783
785
|
variants: {
|
|
@@ -788,7 +790,7 @@ var Table = {
|
|
|
788
790
|
}
|
|
789
791
|
}
|
|
790
792
|
),
|
|
791
|
-
thead: (0,
|
|
793
|
+
thead: (0, import_system39.cva)(
|
|
792
794
|
// for sticky header
|
|
793
795
|
"bg-background/90 top-0 z-1 backdrop-blur-xs ",
|
|
794
796
|
{
|
|
@@ -800,7 +802,7 @@ var Table = {
|
|
|
800
802
|
}
|
|
801
803
|
}
|
|
802
804
|
),
|
|
803
|
-
headerRow: (0,
|
|
805
|
+
headerRow: (0, import_system39.cva)(["border-border border-b"], {
|
|
804
806
|
variants: {
|
|
805
807
|
variant: {
|
|
806
808
|
default: "",
|
|
@@ -811,7 +813,7 @@ var Table = {
|
|
|
811
813
|
variant: "default"
|
|
812
814
|
}
|
|
813
815
|
}),
|
|
814
|
-
header: (0,
|
|
816
|
+
header: (0, import_system39.cva)(
|
|
815
817
|
[
|
|
816
818
|
"h-12 px-3 align-middle font-medium text-muted-foreground last:text-right",
|
|
817
819
|
"focus-visible:outline-2 outline-offset-2 outline-ring/70"
|
|
@@ -828,8 +830,8 @@ var Table = {
|
|
|
828
830
|
}
|
|
829
831
|
}
|
|
830
832
|
),
|
|
831
|
-
body: (0,
|
|
832
|
-
row: (0,
|
|
833
|
+
body: (0, import_system39.cva)("[&_tr:last-child]:border-0"),
|
|
834
|
+
row: (0, import_system39.cva)(
|
|
833
835
|
[
|
|
834
836
|
"border-b border-border transition-colors",
|
|
835
837
|
"focus-visible:outline-2 outline-offset-2 outline-ring/70",
|
|
@@ -847,7 +849,7 @@ var Table = {
|
|
|
847
849
|
}
|
|
848
850
|
}
|
|
849
851
|
),
|
|
850
|
-
cell: (0,
|
|
852
|
+
cell: (0, import_system39.cva)(
|
|
851
853
|
[
|
|
852
854
|
"p-3 align-middle last:text-right",
|
|
853
855
|
"focus-visible:outline-2 outline-offset-2 outline-ring/70"
|
|
@@ -867,29 +869,32 @@ var Table = {
|
|
|
867
869
|
};
|
|
868
870
|
|
|
869
871
|
// src/components/Tabs.styles.ts
|
|
870
|
-
var
|
|
872
|
+
var import_system40 = require("@marigold/system");
|
|
871
873
|
var Tabs = {
|
|
872
|
-
container: (0,
|
|
873
|
-
tabsList: (0,
|
|
874
|
+
container: (0, import_system40.cva)("flex flex-col gap-2"),
|
|
875
|
+
tabsList: (0, import_system40.cva)([
|
|
874
876
|
"text-muted-foreground",
|
|
875
|
-
"flex items-center p-0.5 h-auto gap-2 border-b px-0 py-1"
|
|
877
|
+
"flex items-center p-0.5 h-auto gap-2 border-b border-border px-0 py-1"
|
|
876
878
|
]),
|
|
877
|
-
tab: (0,
|
|
879
|
+
tab: (0, import_system40.cva)([
|
|
878
880
|
"relative inline-flex items-center justify-center rounded-sm px-3 py-1.5 text-sm font-medium whitespace-nowrap transition-colors",
|
|
879
881
|
"[&_svg]:shrink-0",
|
|
880
|
-
"focus-visible:util-focus-ring",
|
|
882
|
+
"focus-visible:util-focus-ring outline-none",
|
|
881
883
|
"hover:bg-hover hover:text-foreground",
|
|
882
884
|
"disabled:pointer-events-none disabled:opacity-50",
|
|
883
885
|
"data-selected:text-foreground data-selected:hover:bg-hover",
|
|
884
886
|
"data-[selected=true]:after:bg-foreground after:absolute after:inset-x-0 after:bottom-0 after:-mb-1 after:h-0.5"
|
|
885
887
|
]),
|
|
886
|
-
tabpanel: (0,
|
|
888
|
+
tabpanel: (0, import_system40.cva)([
|
|
889
|
+
"py-4 rounded-sm",
|
|
890
|
+
"focus-visible:util-focus-ring outline-none"
|
|
891
|
+
])
|
|
887
892
|
};
|
|
888
893
|
|
|
889
894
|
// src/components/Tag.styles.ts
|
|
890
|
-
var
|
|
895
|
+
var import_system41 = require("@marigold/system");
|
|
891
896
|
var Tag = {
|
|
892
|
-
tag: (0,
|
|
897
|
+
tag: (0, import_system41.cva)([
|
|
893
898
|
"relative inline-flex items-center gap-[7px]",
|
|
894
899
|
"border border-solid border-input rounded-md",
|
|
895
900
|
"font-medium text-xs",
|
|
@@ -897,29 +902,29 @@ var Tag = {
|
|
|
897
902
|
"bg-background",
|
|
898
903
|
"data-selected:text-white data-selected:bg-brand",
|
|
899
904
|
"data-[disabled]:cursor-not-allowed data-[disabled]:text-disabled-foreground data-[disabled]:bg-disabled",
|
|
900
|
-
"focus-visible:util-focus-ring"
|
|
905
|
+
"focus-visible:util-focus-ring outline-none"
|
|
901
906
|
]),
|
|
902
|
-
closeButton: (0,
|
|
907
|
+
closeButton: (0, import_system41.cva)([
|
|
903
908
|
"size-4",
|
|
904
909
|
"disabled:bg-disabled disabled:text-disabled-foreground disabled:cursor-not-allowed"
|
|
905
910
|
]),
|
|
906
|
-
listItems: (0,
|
|
911
|
+
listItems: (0, import_system41.cva)("flex flex-wrap items-center gap-1")
|
|
907
912
|
};
|
|
908
913
|
|
|
909
914
|
// src/components/TextArea.styles.ts
|
|
910
|
-
var
|
|
911
|
-
var TextArea = (0,
|
|
915
|
+
var import_system42 = require("@marigold/system");
|
|
916
|
+
var TextArea = (0, import_system42.cva)([
|
|
912
917
|
inputContainer,
|
|
913
918
|
inputInvalid,
|
|
914
|
-
"focus:util-focus-ring",
|
|
919
|
+
"focus:util-focus-ring outline-none",
|
|
915
920
|
inputDisabled,
|
|
916
921
|
inputReadOnly,
|
|
917
922
|
"invalid:text-destructive"
|
|
918
923
|
]);
|
|
919
924
|
|
|
920
925
|
// src/components/Text.styles.ts
|
|
921
|
-
var
|
|
922
|
-
var Text = (0,
|
|
926
|
+
var import_system43 = require("@marigold/system");
|
|
927
|
+
var Text = (0, import_system43.cva)("", {
|
|
923
928
|
variants: {
|
|
924
929
|
variant: {
|
|
925
930
|
muted: "text-muted-foreground"
|
|
@@ -948,9 +953,9 @@ var Text = (0, import_system42.cva)("", {
|
|
|
948
953
|
});
|
|
949
954
|
|
|
950
955
|
// src/components/Tooltip.styles.ts
|
|
951
|
-
var
|
|
956
|
+
var import_system44 = require("@marigold/system");
|
|
952
957
|
var Tooltip = {
|
|
953
|
-
container: (0,
|
|
958
|
+
container: (0, import_system44.cva)(
|
|
954
959
|
[
|
|
955
960
|
"text-brand-foreground bg-brand relative z-50 max-w-70 rounded-md border border-brand px-3 py-1.5 text-sm ",
|
|
956
961
|
"placement-top:mb-2",
|
|
@@ -970,7 +975,7 @@ var Tooltip = {
|
|
|
970
975
|
}
|
|
971
976
|
}
|
|
972
977
|
),
|
|
973
|
-
arrow: (0,
|
|
978
|
+
arrow: (0, import_system44.cva)(
|
|
974
979
|
[
|
|
975
980
|
"fill-brand stroke-brand",
|
|
976
981
|
// right
|
|
@@ -995,19 +1000,13 @@ var Tooltip = {
|
|
|
995
1000
|
};
|
|
996
1001
|
|
|
997
1002
|
// 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
|
-
});
|
|
1003
|
+
var import_system45 = require("@marigold/system");
|
|
1004
|
+
var Underlay = (0, import_system45.cva)("bg-black/80 px-4");
|
|
1006
1005
|
|
|
1007
1006
|
// src/components/XLoader.styles.ts
|
|
1008
|
-
var
|
|
1007
|
+
var import_system46 = require("@marigold/system");
|
|
1009
1008
|
var XLoader = {
|
|
1010
|
-
container: (0,
|
|
1009
|
+
container: (0, import_system46.cva)("grid place-items-center text-brand", {
|
|
1011
1010
|
variants: {
|
|
1012
1011
|
variant: {
|
|
1013
1012
|
default: "",
|
|
@@ -1024,7 +1023,7 @@ var XLoader = {
|
|
|
1024
1023
|
size: "default"
|
|
1025
1024
|
}
|
|
1026
1025
|
}),
|
|
1027
|
-
loader: (0,
|
|
1026
|
+
loader: (0, import_system46.cva)("size-full", {
|
|
1028
1027
|
variants: {
|
|
1029
1028
|
variant: {
|
|
1030
1029
|
default: "",
|
|
@@ -1041,7 +1040,7 @@ var XLoader = {
|
|
|
1041
1040
|
size: "default"
|
|
1042
1041
|
}
|
|
1043
1042
|
}),
|
|
1044
|
-
label: (0,
|
|
1043
|
+
label: (0, import_system46.cva)("text-current text-sm")
|
|
1045
1044
|
};
|
|
1046
1045
|
|
|
1047
1046
|
// src/theme.ts
|