@marigold/theme-rui 1.3.0 → 2.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 +332 -185
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +332 -185
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +192 -136
- package/dist/utils.css +26 -3
- package/package.json +7 -7
package/dist/index.mjs
CHANGED
|
@@ -9,12 +9,13 @@ var components_exports = {};
|
|
|
9
9
|
__export(components_exports, {
|
|
10
10
|
Accordion: () => Accordion,
|
|
11
11
|
Badge: () => Badge,
|
|
12
|
-
|
|
12
|
+
Breadcrumbs: () => Breadcrumbs,
|
|
13
13
|
Button: () => Button,
|
|
14
14
|
Calendar: () => Calendar,
|
|
15
15
|
Card: () => Card,
|
|
16
16
|
Checkbox: () => Checkbox,
|
|
17
17
|
CloseButton: () => CloseButton,
|
|
18
|
+
Collapsible: () => Collapsible,
|
|
18
19
|
ComboBox: () => ComboBox,
|
|
19
20
|
ContextualHelp: () => ContextualHelp,
|
|
20
21
|
DateField: () => DateField,
|
|
@@ -23,12 +24,9 @@ __export(components_exports, {
|
|
|
23
24
|
Divider: () => Divider,
|
|
24
25
|
Drawer: () => Drawer,
|
|
25
26
|
Field: () => Field,
|
|
26
|
-
Footer: () => Footer,
|
|
27
|
-
Header: () => Header,
|
|
28
27
|
Headline: () => Headline,
|
|
29
28
|
HelpText: () => HelpText,
|
|
30
29
|
IconButton: () => IconButton,
|
|
31
|
-
Image: () => Image,
|
|
32
30
|
Input: () => Input,
|
|
33
31
|
Label: () => Label,
|
|
34
32
|
Link: () => Link,
|
|
@@ -51,6 +49,7 @@ __export(components_exports, {
|
|
|
51
49
|
Tag: () => Tag,
|
|
52
50
|
Text: () => Text,
|
|
53
51
|
TextArea: () => TextArea,
|
|
52
|
+
Toast: () => Toast,
|
|
54
53
|
Tooltip: () => Tooltip,
|
|
55
54
|
Underlay: () => Underlay,
|
|
56
55
|
XLoader: () => XLoader
|
|
@@ -136,16 +135,13 @@ var Badge = cva2(
|
|
|
136
135
|
}
|
|
137
136
|
);
|
|
138
137
|
|
|
139
|
-
// src/components/Body.styles.ts
|
|
140
|
-
import { cva as cva3 } from "@marigold/system";
|
|
141
|
-
var Body = cva3("bg-bg-body");
|
|
142
|
-
|
|
143
138
|
// src/components/Button.styles.ts
|
|
144
|
-
import { cva as
|
|
145
|
-
var Button =
|
|
139
|
+
import { cva as cva3 } from "@marigold/system";
|
|
140
|
+
var Button = cva3(
|
|
146
141
|
[
|
|
147
|
-
"inline-flex
|
|
148
|
-
"[
|
|
142
|
+
"inline-flex gap-2 whitespace-nowrap rounded-md font-medium transition-[color,box-shadow,transform]",
|
|
143
|
+
"duration-150 active:scale-[0.98] pressed:scale-[0.98]",
|
|
144
|
+
"[&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
149
145
|
"focus-visible:util-focus-ring outline-none disabled:util-disabled",
|
|
150
146
|
"pending:text-disabled-foreground pending:bg-disabled pending:cursor-not-allowed pending:border-none",
|
|
151
147
|
"cursor-pointer"
|
|
@@ -153,31 +149,55 @@ var Button = cva4(
|
|
|
153
149
|
{
|
|
154
150
|
variants: {
|
|
155
151
|
variant: {
|
|
156
|
-
primary: "bg-brand text-brand-foreground shadow-
|
|
157
|
-
secondary: "border border-input bg-background shadow-
|
|
158
|
-
destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
|
|
152
|
+
primary: "bg-brand text-brand-foreground shadow-xs hover:bg-brand/90",
|
|
153
|
+
secondary: "border border-input bg-background shadow-xs hover:bg-hover hover:text-foreground expanded:bg-hover",
|
|
154
|
+
destructive: "bg-destructive text-destructive-foreground shadow-xs hover:bg-destructive/90",
|
|
159
155
|
ghost: "hover:bg-hover hover:text-foreground",
|
|
160
|
-
|
|
161
|
-
// TODO: Remove this in future and rethink the MonthListBox and YearListBox or use another variant
|
|
162
|
-
text: "hover:bg-hover"
|
|
156
|
+
link: "text-link util-touch-hitbox"
|
|
163
157
|
},
|
|
164
158
|
size: {
|
|
165
|
-
default: "
|
|
166
|
-
small: "
|
|
167
|
-
large: "
|
|
168
|
-
icon: "
|
|
159
|
+
default: "text-sm",
|
|
160
|
+
small: "text-xs",
|
|
161
|
+
large: "",
|
|
162
|
+
icon: ""
|
|
169
163
|
}
|
|
170
164
|
},
|
|
171
165
|
defaultVariants: {
|
|
172
166
|
variant: "secondary",
|
|
173
167
|
size: "default"
|
|
174
|
-
}
|
|
168
|
+
},
|
|
169
|
+
compoundVariants: [
|
|
170
|
+
{
|
|
171
|
+
variant: ["primary", "secondary", "destructive", "ghost"],
|
|
172
|
+
class: "items-center justify-center"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
variant: ["primary", "secondary", "destructive", "ghost"],
|
|
176
|
+
size: "default",
|
|
177
|
+
class: "h-button px-4 py-2 [&_svg]:size-4"
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
variant: ["primary", "secondary", "destructive", "ghost"],
|
|
181
|
+
size: "small",
|
|
182
|
+
class: "h-button-small px-3 [&_svg]:size-3.5"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
variant: ["primary", "secondary", "destructive", "ghost"],
|
|
186
|
+
size: "large",
|
|
187
|
+
class: "h-button-large px-8 [&_svg]:size-5"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
variant: ["primary", "secondary", "destructive", "ghost"],
|
|
191
|
+
size: "icon",
|
|
192
|
+
class: "size-button [&_svg]:size-4"
|
|
193
|
+
}
|
|
194
|
+
]
|
|
175
195
|
}
|
|
176
196
|
);
|
|
177
197
|
|
|
178
198
|
// src/components/Card.styles.ts
|
|
179
|
-
import { cva as
|
|
180
|
-
var Card =
|
|
199
|
+
import { cva as cva4 } from "@marigold/system";
|
|
200
|
+
var Card = cva4(
|
|
181
201
|
["p-4 rounded-md", "util-surface-raised"],
|
|
182
202
|
{
|
|
183
203
|
variants: {
|
|
@@ -193,32 +213,32 @@ var Card = cva5(
|
|
|
193
213
|
);
|
|
194
214
|
|
|
195
215
|
// src/components/Checkbox.styles.ts
|
|
196
|
-
import { cva as
|
|
216
|
+
import { cva as cva5 } from "@marigold/system";
|
|
197
217
|
var Checkbox = {
|
|
198
|
-
checkbox:
|
|
218
|
+
checkbox: cva5([
|
|
199
219
|
"grid size-4 shrink-0 place-content-center rounded",
|
|
200
|
-
"border border-input shadow-
|
|
220
|
+
"border border-input shadow-xs",
|
|
201
221
|
"group-focus-visible/checkbox:util-focus-ring outline-none",
|
|
202
222
|
"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",
|
|
203
223
|
"group-selected/checkbox:border-brand group-selected/checkbox:bg-brand group-selected/checkbox:text-brand-foreground",
|
|
204
224
|
"group-[indeterminate]/checkbox:border-brand group-[indeterminate]/checkbox:bg-brand group-[indeterminate]/checkbox:text-brand-foreground"
|
|
205
225
|
]),
|
|
206
|
-
container:
|
|
207
|
-
label:
|
|
226
|
+
container: cva5("cursor-pointer read-only:cursor-default"),
|
|
227
|
+
label: cva5([
|
|
208
228
|
"flex items-center gap-1",
|
|
209
229
|
'text-sm leading-4 group-[group="checkbox"]/checkboxgroup:font-normal font-medium text-foregroun',
|
|
210
230
|
"group-disabled/checkbox:text-disabled-foreground"
|
|
211
231
|
]),
|
|
212
|
-
group:
|
|
232
|
+
group: cva5()
|
|
213
233
|
};
|
|
214
234
|
|
|
215
235
|
// src/components/Calendar.styles.ts
|
|
216
|
-
import { cva as
|
|
236
|
+
import { cva as cva6 } from "@marigold/system";
|
|
217
237
|
var Calendar = {
|
|
218
|
-
calendar:
|
|
238
|
+
calendar: cva6(
|
|
219
239
|
"rounded-md border group-[[data-trigger]]/popover:border-0 border-border p-2"
|
|
220
240
|
),
|
|
221
|
-
calendarCell:
|
|
241
|
+
calendarCell: cva6([
|
|
222
242
|
"relative flex size-9 items-center justify-center whitespace-nowrap rounded-lg justify-self-center",
|
|
223
243
|
"border border-transparent p-0 text-sm font-normal text-foreground",
|
|
224
244
|
"outline-offset-2 duration-150 [transition-property:color,background-color,border-radius,box-shadow]",
|
|
@@ -226,27 +246,27 @@ var Calendar = {
|
|
|
226
246
|
"disabled:opacity-30 data-[unavailable]:opacity-30",
|
|
227
247
|
"focus-visible:util-focus-borderless-ring outline-none"
|
|
228
248
|
]),
|
|
229
|
-
calendarControllers:
|
|
249
|
+
calendarControllers: cva6([
|
|
230
250
|
"size-9 rounded-lg",
|
|
231
251
|
"text-muted-foreground/80",
|
|
232
252
|
"transition-colors",
|
|
233
253
|
"focus-visible:util-focus-ring outline-none"
|
|
234
254
|
]),
|
|
235
|
-
calendarHeader:
|
|
255
|
+
calendarHeader: cva6([
|
|
236
256
|
"size-9 rounded-lg p-0 text-xs font-medium text-muted-foreground/80"
|
|
237
257
|
]),
|
|
238
|
-
calendarGrid:
|
|
239
|
-
calendarListboxButton:
|
|
258
|
+
calendarGrid: cva6("[&_td]:p-2"),
|
|
259
|
+
calendarListboxButton: cva6([
|
|
240
260
|
"rounded-md text-sm font-medium transition-[color,box-shadow]",
|
|
241
261
|
"px-4 py-2",
|
|
242
262
|
"focus-visible:util-focus-ring outline-none",
|
|
243
263
|
"cursor-pointer",
|
|
244
264
|
"hover:bg-hover",
|
|
245
|
-
"aria-
|
|
265
|
+
"aria-selected:bg-brand aria-selected:text-brand-foreground aria-selected:shadow-xs aria-selected:hover:bg-brand/90"
|
|
246
266
|
]),
|
|
247
|
-
select:
|
|
267
|
+
select: cva6([
|
|
248
268
|
"[&svg]:text-muted-foreground/80",
|
|
249
|
-
"flex w-full px-3 py-2 rounded-lg shadow-
|
|
269
|
+
"flex w-full px-3 py-2 rounded-lg shadow-xs border border-input bg-background text-sm text-foreground transition-shadow",
|
|
250
270
|
"focus-visible:util-focus-ring outline-none",
|
|
251
271
|
"h-input",
|
|
252
272
|
"disabled:cursor-not-allowed disabled:text-disabled-foreground disabled:bg-disabled",
|
|
@@ -255,22 +275,54 @@ var Calendar = {
|
|
|
255
275
|
};
|
|
256
276
|
|
|
257
277
|
// src/components/CloseButton.styles.ts
|
|
258
|
-
import { cva as
|
|
259
|
-
var CloseButton =
|
|
278
|
+
import { cva as cva7 } from "@marigold/system";
|
|
279
|
+
var CloseButton = cva7([
|
|
260
280
|
"flex items-center justify-center whitespace-nowrap",
|
|
261
281
|
"cursor-pointer",
|
|
262
282
|
"transition-[color,box-shadow]",
|
|
263
283
|
"mixin-ring-focus-visible",
|
|
264
284
|
"rounded",
|
|
285
|
+
"duration-150 active:scale-[0.98] pressed:scale-[0.98] transition-transform",
|
|
265
286
|
"[&_svg]:size-4 [&_svg]:opacity-60 [&_svg]:transition-opacity hover:[&_svg]:opacity-100"
|
|
266
287
|
]);
|
|
267
288
|
|
|
268
289
|
// src/components/ComboBox.styles.ts
|
|
269
|
-
import { cva as
|
|
270
|
-
var ComboBox =
|
|
290
|
+
import { cva as cva8 } from "@marigold/system";
|
|
291
|
+
var ComboBox = cva8(
|
|
271
292
|
"text-muted-foreground/80 right-2"
|
|
272
293
|
);
|
|
273
294
|
|
|
295
|
+
// src/components/Collapsible.styles.ts
|
|
296
|
+
import { cva as cva9 } from "@marigold/system";
|
|
297
|
+
var Collapsible = {
|
|
298
|
+
container: cva9(),
|
|
299
|
+
trigger: cva9(
|
|
300
|
+
[
|
|
301
|
+
"inline-flex gap-2 whitespace-nowrap rounded-md font-medium transition-[color,box-shadow,transform]",
|
|
302
|
+
"duration-150 active:scale-[0.98] pressed:scale-[0.98]",
|
|
303
|
+
"[&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
304
|
+
"focus-visible:util-focus-ring outline-none disabled:util-disabled",
|
|
305
|
+
"cursor-pointer"
|
|
306
|
+
],
|
|
307
|
+
{
|
|
308
|
+
variants: {
|
|
309
|
+
variant: {
|
|
310
|
+
default: "",
|
|
311
|
+
link: "text-link util-touch-hitbox"
|
|
312
|
+
},
|
|
313
|
+
size: {
|
|
314
|
+
default: "text-sm"
|
|
315
|
+
}
|
|
316
|
+
},
|
|
317
|
+
defaultVariants: {
|
|
318
|
+
variant: "default",
|
|
319
|
+
size: "default"
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
),
|
|
323
|
+
content: cva9()
|
|
324
|
+
};
|
|
325
|
+
|
|
274
326
|
// src/components/ContextualHelp.styles.ts
|
|
275
327
|
import { cva as cva10 } from "@marigold/system";
|
|
276
328
|
var ContextualHelp = {
|
|
@@ -311,7 +363,7 @@ import { cva as cva12 } from "@marigold/system";
|
|
|
311
363
|
|
|
312
364
|
// src/components/Input.styles.ts
|
|
313
365
|
import { cva as cva11 } from "@marigold/system";
|
|
314
|
-
var inputContainer = "flex w-full px-3 py-2 rounded-lg shadow-
|
|
366
|
+
var inputContainer = "flex w-full px-3 py-2 rounded-lg shadow-xs border border-input bg-background text-sm text-foreground transition-shadow group-read-only/field:bg-muted";
|
|
315
367
|
var inputDisabled = "disabled:cursor-not-allowed disabled:text-disabled-foreground disabled:bg-disabled";
|
|
316
368
|
var inputInvalid = "group-invalid/field:border-destructive group-invalid/field:focus:border-destructive group-invalid/field:focus:ring-destructive/20";
|
|
317
369
|
var inputReadOnly = "group-read-only/field:bg-muted";
|
|
@@ -452,17 +504,9 @@ var IconButton = cva17("", {
|
|
|
452
504
|
import { cva as cva18 } from "@marigold/system";
|
|
453
505
|
var Field = cva18("space-y-2");
|
|
454
506
|
|
|
455
|
-
// src/components/Footer.styles.ts
|
|
456
|
-
import { cva as cva19 } from "@marigold/system";
|
|
457
|
-
var Footer = cva19("");
|
|
458
|
-
|
|
459
|
-
// src/components/Header.styles.ts
|
|
460
|
-
import { cva as cva20 } from "@marigold/system";
|
|
461
|
-
var Header = cva20("");
|
|
462
|
-
|
|
463
507
|
// src/components/Headline.styles.ts
|
|
464
|
-
import { cva as
|
|
465
|
-
var Headline =
|
|
508
|
+
import { cva as cva19 } from "@marigold/system";
|
|
509
|
+
var Headline = cva19("", {
|
|
466
510
|
variants: {
|
|
467
511
|
size: {
|
|
468
512
|
"level-1": "text-5xl font-black",
|
|
@@ -476,40 +520,36 @@ var Headline = cva21("", {
|
|
|
476
520
|
});
|
|
477
521
|
|
|
478
522
|
// src/components/HelpText.styles.ts
|
|
479
|
-
import { cva as
|
|
523
|
+
import { cva as cva20 } from "@marigold/system";
|
|
480
524
|
var HelpText = {
|
|
481
|
-
container:
|
|
525
|
+
container: cva20([
|
|
482
526
|
"text-xs text-muted-foreground group-disabled/field:text-disabled-foreground",
|
|
483
527
|
"group-invalid/field:text-destructive"
|
|
484
528
|
]),
|
|
485
|
-
icon:
|
|
529
|
+
icon: cva20("")
|
|
486
530
|
};
|
|
487
531
|
|
|
488
|
-
// src/components/Image.styles.ts
|
|
489
|
-
import { cva as cva23 } from "@marigold/system";
|
|
490
|
-
var Image = cva23();
|
|
491
|
-
|
|
492
532
|
// src/components/Label.styles.ts
|
|
493
|
-
import { cva as
|
|
533
|
+
import { cva as cva21 } from "@marigold/system";
|
|
494
534
|
var Label = {
|
|
495
|
-
container:
|
|
535
|
+
container: cva21([
|
|
496
536
|
"flex items-center gap-1",
|
|
497
537
|
"text-sm font-medium leading-none text-foreground",
|
|
498
538
|
"group-disabled/field:cursor-not-allowed group-disabled/field:text-disabled-foreground"
|
|
499
539
|
]),
|
|
500
|
-
indicator:
|
|
540
|
+
indicator: cva21(
|
|
501
541
|
"group-required/field:block text-destructive align-super size-2.5"
|
|
502
542
|
)
|
|
503
543
|
};
|
|
504
544
|
|
|
505
545
|
// src/components/Link.styles.ts
|
|
506
|
-
import { cva as
|
|
507
|
-
var Link =
|
|
508
|
-
"
|
|
546
|
+
import { cva as cva22 } from "@marigold/system";
|
|
547
|
+
var Link = cva22(
|
|
548
|
+
"aria-[disabled]:cursor-not-allowed",
|
|
509
549
|
{
|
|
510
550
|
variants: {
|
|
511
551
|
variant: {
|
|
512
|
-
default: "",
|
|
552
|
+
default: "text-link font-normal",
|
|
513
553
|
secondary: "font-medium text-foreground underline hover:no-underline"
|
|
514
554
|
}
|
|
515
555
|
},
|
|
@@ -520,21 +560,21 @@ var Link = cva25(
|
|
|
520
560
|
);
|
|
521
561
|
|
|
522
562
|
// src/components/List.styles.ts
|
|
523
|
-
import { cva as
|
|
563
|
+
import { cva as cva23 } from "@marigold/system";
|
|
524
564
|
var List = {
|
|
525
|
-
ul:
|
|
526
|
-
ol:
|
|
527
|
-
item:
|
|
565
|
+
ul: cva23("ml-6 list-outside list-disc"),
|
|
566
|
+
ol: cva23("ml-6 list-outside list-decimal"),
|
|
567
|
+
item: cva23("not-first:pt-3")
|
|
528
568
|
};
|
|
529
569
|
|
|
530
570
|
// src/components/ListBox.styles.ts
|
|
531
|
-
import { cva as
|
|
571
|
+
import { cva as cva24 } from "@marigold/system";
|
|
532
572
|
var ListBox = {
|
|
533
|
-
container:
|
|
573
|
+
container: cva24([
|
|
534
574
|
"overflow-hidden rounded-md border border-input group-[[data-trigger]]/popover:border-0"
|
|
535
575
|
]),
|
|
536
|
-
list:
|
|
537
|
-
item:
|
|
576
|
+
list: cva24(["bg-background p-1 text-sm outline-0"]),
|
|
577
|
+
item: cva24([
|
|
538
578
|
"relative flex items-center gap-2 rounded-md px-2 py-1.5 text-sm text-foreground",
|
|
539
579
|
"[&_.selection-indicator>svg]:invisible [&_.selection-indicator>svg]:block",
|
|
540
580
|
"selected:bg-selected selected:[&_.selection-indicator>svg]:visible",
|
|
@@ -543,33 +583,38 @@ var ListBox = {
|
|
|
543
583
|
"focus-visible:util-focus-ring outline-none",
|
|
544
584
|
"cursor-default data-selection-mode:cursor-pointer"
|
|
545
585
|
]),
|
|
546
|
-
section:
|
|
547
|
-
header:
|
|
586
|
+
section: cva24(""),
|
|
587
|
+
header: cva24(
|
|
548
588
|
"[&_header]:px-2 [&_header]:py-1.5 [&_header]:text-xs [&_header]:font-medium [&_header]:text-muted-foreground"
|
|
549
589
|
)
|
|
550
590
|
};
|
|
551
591
|
|
|
552
592
|
// src/components/Menu.styles.ts
|
|
553
|
-
import { cva as
|
|
593
|
+
import { cva as cva25 } from "@marigold/system";
|
|
554
594
|
var Menu = {
|
|
555
|
-
container:
|
|
556
|
-
|
|
557
|
-
"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"
|
|
595
|
+
container: cva25([
|
|
596
|
+
"text-foreground z-50 overflow-hidden rounded-md p-1 outline-none"
|
|
558
597
|
]),
|
|
559
|
-
|
|
598
|
+
item: cva25([
|
|
599
|
+
"relative flex cursor-pointer items-center gap-2 rounded-sm px-2 py-1.5 text-sm text-foreground outline-hidden select-none",
|
|
600
|
+
"focus:bg-focus",
|
|
601
|
+
"disabled:text-disabled-foreground",
|
|
602
|
+
"[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg]:size-4 [&_svg]:opacity-60"
|
|
603
|
+
]),
|
|
604
|
+
section: cva25(
|
|
560
605
|
"text-muted-foreground px-2 py-1.5 text-xs font-medium border-t border-t-border in-first:border-t-0"
|
|
561
606
|
),
|
|
562
|
-
button:
|
|
607
|
+
button: cva25(
|
|
563
608
|
[
|
|
564
609
|
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-[color,box-shadow]",
|
|
565
|
-
"[&_svg]:shrink-0",
|
|
610
|
+
"[&_svg]:shrink-0 [&_svg]:pointer-events-none",
|
|
566
611
|
"focus-visible:util-focus-ring outline-none disabled:util-disabled",
|
|
567
612
|
"cursor-pointer"
|
|
568
613
|
],
|
|
569
614
|
{
|
|
570
615
|
variants: {
|
|
571
616
|
variant: {
|
|
572
|
-
|
|
617
|
+
default: "border border-input bg-background shadow-xs hover:bg-hover hover:text-foreground expanded:bg-hover",
|
|
573
618
|
ghost: "hover:bg-hover hover:text-foreground expanded:bg-hover"
|
|
574
619
|
},
|
|
575
620
|
size: {
|
|
@@ -580,7 +625,7 @@ var Menu = {
|
|
|
580
625
|
}
|
|
581
626
|
},
|
|
582
627
|
defaultVariants: {
|
|
583
|
-
variant: "
|
|
628
|
+
variant: "default",
|
|
584
629
|
size: "default"
|
|
585
630
|
}
|
|
586
631
|
}
|
|
@@ -588,8 +633,8 @@ var Menu = {
|
|
|
588
633
|
};
|
|
589
634
|
|
|
590
635
|
// src/components/Modal.styles.ts
|
|
591
|
-
import { cva as
|
|
592
|
-
var Modal =
|
|
636
|
+
import { cva as cva26 } from "@marigold/system";
|
|
637
|
+
var Modal = cva26(
|
|
593
638
|
[
|
|
594
639
|
"sm:max-h-[min(640px,80vh)]",
|
|
595
640
|
"[--dialog-spacing-x:1rem]",
|
|
@@ -614,11 +659,11 @@ var Modal = cva29(
|
|
|
614
659
|
);
|
|
615
660
|
|
|
616
661
|
// src/components/Multiselect.styles.ts
|
|
617
|
-
import { cva as
|
|
662
|
+
import { cva as cva27 } from "@marigold/system";
|
|
618
663
|
var MultiSelect = {
|
|
619
|
-
field:
|
|
620
|
-
container:
|
|
621
|
-
"bg-background shadow-
|
|
664
|
+
field: cva27("space-y-2"),
|
|
665
|
+
container: cva27([
|
|
666
|
+
"bg-background shadow-xs border",
|
|
622
667
|
"px-3 text-sm text-foreground transition-shadow",
|
|
623
668
|
"border border-input rounded-lg outline-hidden",
|
|
624
669
|
"aria-disabled:bg-disabled aria-disabled:text-disabled-foreground aria-disabled:hover:border-input aria-disabled:border-input aria-disabled:cursor-not-allowed",
|
|
@@ -627,7 +672,7 @@ var MultiSelect = {
|
|
|
627
672
|
"has-[input[aria-readonly=true]]:bg-muted",
|
|
628
673
|
"min-h-input"
|
|
629
674
|
]),
|
|
630
|
-
input:
|
|
675
|
+
input: cva27([
|
|
631
676
|
"bg-transparent flex-1 h-full",
|
|
632
677
|
"leading-loose",
|
|
633
678
|
"data-[focused]:outline-hidden outline-hidden border-0",
|
|
@@ -636,20 +681,20 @@ var MultiSelect = {
|
|
|
636
681
|
"group-data-[action]/input:pr-8",
|
|
637
682
|
"placeholder:text-placeholder"
|
|
638
683
|
]),
|
|
639
|
-
tag:
|
|
684
|
+
tag: cva27([
|
|
640
685
|
"border border-solid border-input rounded-md",
|
|
641
686
|
"bg-background",
|
|
642
687
|
"font-medium text-xs",
|
|
643
688
|
"flex items-center gap-1 ",
|
|
644
689
|
"h-7 px-2 cursor-default"
|
|
645
690
|
]),
|
|
646
|
-
closeButton:
|
|
691
|
+
closeButton: cva27(
|
|
647
692
|
"size-4 cursor-pointer border-none bg-transparent p-0 leading-normal outline-0"
|
|
648
693
|
),
|
|
649
|
-
icon:
|
|
650
|
-
listContainer:
|
|
651
|
-
list:
|
|
652
|
-
option:
|
|
694
|
+
icon: cva27("left-1"),
|
|
695
|
+
listContainer: cva27(["util-surface-overlay mt-0.5 rounded-lg outline-0"]),
|
|
696
|
+
list: cva27("pointer-events-auto space-y-1 p-1"),
|
|
697
|
+
option: cva27([
|
|
653
698
|
"text-sm text-foreground",
|
|
654
699
|
"flex flex-col",
|
|
655
700
|
"cursor-pointer p-2 outline-hidden",
|
|
@@ -657,26 +702,26 @@ var MultiSelect = {
|
|
|
657
702
|
"aria-disabled:text-disabled-foreground aria-disabled:cursor-not-allowed",
|
|
658
703
|
"[&.isFocused:not([aria-disabled=true])]:!bg-hover"
|
|
659
704
|
]),
|
|
660
|
-
valueContainer:
|
|
705
|
+
valueContainer: cva27("gap-2")
|
|
661
706
|
};
|
|
662
707
|
|
|
663
708
|
// src/components/NumberField.styles.ts
|
|
664
|
-
import { cva as
|
|
709
|
+
import { cva as cva28 } from "@marigold/system";
|
|
665
710
|
var NumberField = {
|
|
666
|
-
group:
|
|
711
|
+
group: cva28([
|
|
667
712
|
"rounded-lg h-input bg-background",
|
|
668
713
|
"has-focus-visible:util-focus-ring outline-none",
|
|
669
714
|
inputInvalid,
|
|
670
715
|
inputReadOnly,
|
|
671
|
-
"border border-input text-sm shadow-
|
|
716
|
+
"border border-input text-sm shadow-xs transition-shadow",
|
|
672
717
|
"data-invalid:data-[focus-within]:border-destructive data-invalid:data-[focus-within]:ring-destructive/20"
|
|
673
718
|
]),
|
|
674
|
-
stepper:
|
|
719
|
+
stepper: cva28([
|
|
675
720
|
"w-7 h-full text-center shrink-0",
|
|
676
721
|
"disabled:text-disabled-foreground disabled:bg-disabled",
|
|
677
722
|
"border-input! first-of-type:border-r! last-of-type:border-l!"
|
|
678
723
|
]),
|
|
679
|
-
input:
|
|
724
|
+
input: cva28([
|
|
680
725
|
"tabular-nums text-foreground px-3 py-2",
|
|
681
726
|
"min-w-0 flex-1 bg-transparent",
|
|
682
727
|
"group-[[data-stepper]]/field:text-center",
|
|
@@ -685,8 +730,8 @@ var NumberField = {
|
|
|
685
730
|
};
|
|
686
731
|
|
|
687
732
|
// src/components/Popover.styles.ts
|
|
688
|
-
import { cva as
|
|
689
|
-
var Popover =
|
|
733
|
+
import { cva as cva29 } from "@marigold/system";
|
|
734
|
+
var Popover = cva29([
|
|
690
735
|
"group/popover",
|
|
691
736
|
"text-foreground z-50 overflow-y-auto overflow-x-hidden rounded-md outline-0",
|
|
692
737
|
"placement-top:mb-1",
|
|
@@ -697,57 +742,59 @@ var Popover = cva32([
|
|
|
697
742
|
]);
|
|
698
743
|
|
|
699
744
|
// src/components/Radio.styles.ts
|
|
700
|
-
import { cva as
|
|
745
|
+
import { cva as cva30 } from "@marigold/system";
|
|
701
746
|
var Radio = {
|
|
702
|
-
container:
|
|
703
|
-
label:
|
|
747
|
+
container: cva30("group-disabled/radio:cursor-not-allowed"),
|
|
748
|
+
label: cva30([
|
|
704
749
|
"text-sm font-normal cursor-pointer",
|
|
705
750
|
"group-disabled/radio:text-disabled-foreground group-disabled/radio:cursor-not-allowed"
|
|
706
751
|
]),
|
|
707
|
-
radio:
|
|
752
|
+
radio: cva30([
|
|
708
753
|
"aspect-square size-4 rounded-full",
|
|
709
|
-
"border border-input shadow-
|
|
754
|
+
"border border-input shadow-xs",
|
|
710
755
|
"group-focus-visible/radio:util-focus-ring outline-none",
|
|
711
756
|
"group-disabled/radio:group-selected/radio:bg-disabled group-disabled/radio:border-disabled! group-disabled/radio:cursor-not-allowed",
|
|
712
757
|
"group-selected/radio:border-brand group-selected/radio:bg-brand group-selected/radio:text-brand-foreground"
|
|
713
758
|
]),
|
|
714
|
-
group:
|
|
759
|
+
group: cva30()
|
|
715
760
|
};
|
|
716
761
|
|
|
717
762
|
// src/components/Pagination.styles.ts
|
|
718
|
-
import { cva as
|
|
763
|
+
import { cva as cva31 } from "@marigold/system";
|
|
764
|
+
var button = [
|
|
765
|
+
"inline-flex items-center justify-center whitespace-nowrap rounded-lg text-sm font-medium transition-colors",
|
|
766
|
+
"focus-visible:util-focus-ring outline-none",
|
|
767
|
+
"disabled:pointer-events-none disabled:bg-disabled disabled:text-disabled-foreground",
|
|
768
|
+
"[&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
769
|
+
"hover:bg-hover hover:text-hover-foreground",
|
|
770
|
+
"cursor-pointer"
|
|
771
|
+
];
|
|
719
772
|
var Pagination = {
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
773
|
+
container: cva31("flex items-center justify-center space-x-2"),
|
|
774
|
+
navigationButton: cva31([
|
|
775
|
+
...button,
|
|
723
776
|
"disabled:pointer-events-none disabled:bg-disabled disabled:text-disabled-foreground",
|
|
724
|
-
"
|
|
725
|
-
"hover:bg-hover hover:text-hover-foreground",
|
|
726
|
-
"h-9 py-2 gap-1 px-2.5",
|
|
727
|
-
"cursor-pointer"
|
|
777
|
+
"h-9 py-2 gap-1 px-2.5"
|
|
728
778
|
]),
|
|
729
|
-
pageButton:
|
|
730
|
-
|
|
731
|
-
"
|
|
732
|
-
"
|
|
733
|
-
"[&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
734
|
-
"data-[selected=true]:border data-[selected=true]:border-input data-[selected=true]:shadow-xs",
|
|
735
|
-
"hover:bg-hover hover:text-hover-foreground",
|
|
736
|
-
"cursor-pointer"
|
|
779
|
+
pageButton: cva31([
|
|
780
|
+
...button,
|
|
781
|
+
"bg-background size-9",
|
|
782
|
+
"data-[selected=true]:border data-[selected=true]:border-input data-[selected=true]:shadow-xs"
|
|
737
783
|
]),
|
|
738
|
-
icon:
|
|
784
|
+
icon: cva31("h-4 w-4"),
|
|
785
|
+
ellipsis: cva31("text-foreground flex h-8 w-8 items-center justify-center")
|
|
739
786
|
};
|
|
740
787
|
|
|
741
788
|
// src/components/ProgressCycle.styles.ts
|
|
742
|
-
import { cva as
|
|
743
|
-
var ProgressCycle =
|
|
789
|
+
import { cva as cva32 } from "@marigold/system";
|
|
790
|
+
var ProgressCycle = cva32([
|
|
744
791
|
"stroke-foreground"
|
|
745
792
|
]);
|
|
746
793
|
|
|
747
794
|
// src/components/SectionMessage.styles.ts
|
|
748
|
-
import { cva as
|
|
795
|
+
import { cva as cva33 } from "@marigold/system";
|
|
749
796
|
var SectionMessage = {
|
|
750
|
-
container:
|
|
797
|
+
container: cva33(
|
|
751
798
|
[
|
|
752
799
|
'grid-cols-[min-content_auto_min-content] gap-x-4 gap-y-1 [grid-template-areas:"icon_title_close""icon_content_content"]',
|
|
753
800
|
"bg-background rounded-md border px-3 py-4"
|
|
@@ -766,8 +813,8 @@ var SectionMessage = {
|
|
|
766
813
|
}
|
|
767
814
|
}
|
|
768
815
|
),
|
|
769
|
-
title:
|
|
770
|
-
content:
|
|
816
|
+
title: cva33("text-sm font-medium"),
|
|
817
|
+
content: cva33("text-muted-foreground text-sm leading-5 font-normal", {
|
|
771
818
|
variants: {
|
|
772
819
|
variant: {
|
|
773
820
|
success: "text-success-muted-foreground",
|
|
@@ -780,7 +827,7 @@ var SectionMessage = {
|
|
|
780
827
|
variant: "info"
|
|
781
828
|
}
|
|
782
829
|
}),
|
|
783
|
-
icon:
|
|
830
|
+
icon: cva33("h-6 w-6 align-baseline leading-none -mt-0.5", {
|
|
784
831
|
variants: {
|
|
785
832
|
variant: {
|
|
786
833
|
success: "text-success-muted-accent",
|
|
@@ -793,7 +840,7 @@ var SectionMessage = {
|
|
|
793
840
|
variant: "info"
|
|
794
841
|
}
|
|
795
842
|
}),
|
|
796
|
-
close:
|
|
843
|
+
close: cva33([
|
|
797
844
|
"size-8 text-foreground",
|
|
798
845
|
"[&_svg]:size-6",
|
|
799
846
|
"-my-1.5 -me-2"
|
|
@@ -802,10 +849,10 @@ var SectionMessage = {
|
|
|
802
849
|
};
|
|
803
850
|
|
|
804
851
|
// src/components/Select.styles.ts
|
|
805
|
-
import { cva as
|
|
852
|
+
import { cva as cva34 } from "@marigold/system";
|
|
806
853
|
var Select = {
|
|
807
|
-
icon:
|
|
808
|
-
select:
|
|
854
|
+
icon: cva34("text-muted-foreground/80"),
|
|
855
|
+
select: cva34([
|
|
809
856
|
inputContainer,
|
|
810
857
|
inputInvalid,
|
|
811
858
|
inputDisabled,
|
|
@@ -817,30 +864,30 @@ var Select = {
|
|
|
817
864
|
};
|
|
818
865
|
|
|
819
866
|
// src/components/Slider.styles.ts
|
|
820
|
-
import { cva as
|
|
867
|
+
import { cva as cva35 } from "@marigold/system";
|
|
821
868
|
var Slider = {
|
|
822
|
-
container:
|
|
823
|
-
track:
|
|
869
|
+
container: cva35("*:aria-hidden:hidden"),
|
|
870
|
+
track: cva35([
|
|
824
871
|
"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"
|
|
825
872
|
]),
|
|
826
|
-
selectedTrack:
|
|
873
|
+
selectedTrack: cva35([
|
|
827
874
|
"absolute bg-black data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full rounded-lg"
|
|
828
875
|
]),
|
|
829
|
-
thumb:
|
|
876
|
+
thumb: cva35([
|
|
830
877
|
"block h-5 w-5 rounded-full border-2 border-primary bg-background transition-colors",
|
|
831
878
|
"focus-visible:util-focus-borderless-ring outline-none",
|
|
832
879
|
"disabled:cursor-not-allowed"
|
|
833
880
|
]),
|
|
834
|
-
output:
|
|
881
|
+
output: cva35("text-foreground text-sm")
|
|
835
882
|
};
|
|
836
883
|
|
|
837
884
|
// src/components/Switch.styles.ts
|
|
838
|
-
import { cva as
|
|
885
|
+
import { cva as cva36 } from "@marigold/system";
|
|
839
886
|
var Switch = {
|
|
840
|
-
container:
|
|
887
|
+
container: cva36(
|
|
841
888
|
"disabled:cursor-not-allowed disabled:text-disabled-foreground"
|
|
842
889
|
),
|
|
843
|
-
track:
|
|
890
|
+
track: cva36([
|
|
844
891
|
"flex h-6 w-10 shrink-0 cursor-pointer items-center rounded-full transition-colors",
|
|
845
892
|
"border-2 border-transparent",
|
|
846
893
|
// this increases the hit area so it is 24px
|
|
@@ -848,18 +895,18 @@ var Switch = {
|
|
|
848
895
|
"group-selected/switch:bg-brand bg-input",
|
|
849
896
|
"group-focus-visible/switch:util-focus-borderless-ring outline-none"
|
|
850
897
|
]),
|
|
851
|
-
thumb:
|
|
898
|
+
thumb: cva36([
|
|
852
899
|
"pointer-events-none block size-5 rounded-full",
|
|
853
|
-
"bg-background shadow-
|
|
900
|
+
"bg-background shadow-xs",
|
|
854
901
|
"ring-0 transition-transform duration-150 ease-out-quint",
|
|
855
902
|
"group-selected/switch:translate-x-4 translate-x-0"
|
|
856
903
|
])
|
|
857
904
|
};
|
|
858
905
|
|
|
859
906
|
// src/components/Table.styles.ts
|
|
860
|
-
import { cva as
|
|
907
|
+
import { cva as cva37 } from "@marigold/system";
|
|
861
908
|
var Table = {
|
|
862
|
-
table:
|
|
909
|
+
table: cva37(
|
|
863
910
|
"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",
|
|
864
911
|
{
|
|
865
912
|
variants: {
|
|
@@ -870,7 +917,7 @@ var Table = {
|
|
|
870
917
|
}
|
|
871
918
|
}
|
|
872
919
|
),
|
|
873
|
-
thead:
|
|
920
|
+
thead: cva37(
|
|
874
921
|
// for sticky header
|
|
875
922
|
"bg-background/90 top-0 z-1 backdrop-blur-xs ",
|
|
876
923
|
{
|
|
@@ -882,7 +929,7 @@ var Table = {
|
|
|
882
929
|
}
|
|
883
930
|
}
|
|
884
931
|
),
|
|
885
|
-
headerRow:
|
|
932
|
+
headerRow: cva37(["border-border border-b"], {
|
|
886
933
|
variants: {
|
|
887
934
|
variant: {
|
|
888
935
|
default: "",
|
|
@@ -894,7 +941,7 @@ var Table = {
|
|
|
894
941
|
variant: "default"
|
|
895
942
|
}
|
|
896
943
|
}),
|
|
897
|
-
header:
|
|
944
|
+
header: cva37(
|
|
898
945
|
[
|
|
899
946
|
"h-12 px-3 align-middle font-medium text-muted-foreground",
|
|
900
947
|
"focus-visible:outline-2 outline-offset-2 outline-ring/70"
|
|
@@ -912,8 +959,8 @@ var Table = {
|
|
|
912
959
|
}
|
|
913
960
|
}
|
|
914
961
|
),
|
|
915
|
-
body:
|
|
916
|
-
row:
|
|
962
|
+
body: cva37("[&_tr:last-child]:border-0"),
|
|
963
|
+
row: cva37(
|
|
917
964
|
[
|
|
918
965
|
"border-b border-border transition-colors",
|
|
919
966
|
"focus-visible:outline-2 outline-offset-2 outline-ring/70",
|
|
@@ -943,7 +990,7 @@ var Table = {
|
|
|
943
990
|
}
|
|
944
991
|
}
|
|
945
992
|
),
|
|
946
|
-
cell:
|
|
993
|
+
cell: cva37("p-3 focus-visible:outline-2 outline-offset-2 outline-ring/70", {
|
|
947
994
|
variants: {
|
|
948
995
|
variant: {
|
|
949
996
|
default: "[&:has([type=checkbox])]:pr-0",
|
|
@@ -957,14 +1004,14 @@ var Table = {
|
|
|
957
1004
|
};
|
|
958
1005
|
|
|
959
1006
|
// src/components/Tabs.styles.ts
|
|
960
|
-
import { cva as
|
|
1007
|
+
import { cva as cva38 } from "@marigold/system";
|
|
961
1008
|
var Tabs = {
|
|
962
|
-
container:
|
|
963
|
-
tabsList:
|
|
1009
|
+
container: cva38("flex flex-col gap-2"),
|
|
1010
|
+
tabsList: cva38([
|
|
964
1011
|
"text-muted-foreground",
|
|
965
1012
|
"flex items-center p-0.5 h-auto gap-2 border-b border-border px-0 py-1"
|
|
966
1013
|
]),
|
|
967
|
-
tab:
|
|
1014
|
+
tab: cva38([
|
|
968
1015
|
"relative inline-flex items-center justify-center gap-1 rounded-sm px-3 py-1.5 text-sm font-medium whitespace-nowrap transition-colors",
|
|
969
1016
|
"[&_svg]:shrink-0",
|
|
970
1017
|
"focus-visible:util-focus-ring outline-none",
|
|
@@ -973,16 +1020,21 @@ var Tabs = {
|
|
|
973
1020
|
"data-selected:text-foreground data-selected:hover:bg-hover",
|
|
974
1021
|
"data-[selected=true]:after:bg-foreground after:absolute after:inset-x-0 after:bottom-0 after:-mb-1 after:h-0.5"
|
|
975
1022
|
]),
|
|
976
|
-
tabpanel:
|
|
1023
|
+
tabpanel: cva38([
|
|
977
1024
|
"py-4 rounded-sm",
|
|
978
1025
|
"focus-visible:util-focus-ring outline-none"
|
|
979
1026
|
])
|
|
980
1027
|
};
|
|
981
1028
|
|
|
982
1029
|
// src/components/Tag.styles.ts
|
|
983
|
-
import { cva as
|
|
1030
|
+
import { cva as cva39 } from "@marigold/system";
|
|
984
1031
|
var Tag = {
|
|
985
|
-
|
|
1032
|
+
container: cva39([
|
|
1033
|
+
"flex gap-3",
|
|
1034
|
+
// prevent collapsing when the empty state is shown
|
|
1035
|
+
"min-h-button-small"
|
|
1036
|
+
]),
|
|
1037
|
+
tag: cva39([
|
|
986
1038
|
"relative inline-flex items-center gap-[7px]",
|
|
987
1039
|
"border border-solid border-input rounded-md",
|
|
988
1040
|
"font-medium text-xs",
|
|
@@ -992,16 +1044,27 @@ var Tag = {
|
|
|
992
1044
|
"data-[disabled]:cursor-not-allowed data-[disabled]:text-disabled-foreground data-[disabled]:bg-disabled",
|
|
993
1045
|
"focus-visible:util-focus-ring outline-none"
|
|
994
1046
|
]),
|
|
995
|
-
closeButton:
|
|
1047
|
+
closeButton: cva39([
|
|
996
1048
|
"size-4",
|
|
997
1049
|
"disabled:bg-disabled disabled:text-disabled-foreground disabled:cursor-not-allowed"
|
|
998
1050
|
]),
|
|
999
|
-
listItems:
|
|
1051
|
+
listItems: cva39([
|
|
1052
|
+
"flex flex-wrap items-center gap-1",
|
|
1053
|
+
// mb-0 prevents whitespace when the hidden field is rendered
|
|
1054
|
+
"mb-0"
|
|
1055
|
+
]),
|
|
1056
|
+
removeAll: cva39([
|
|
1057
|
+
"inline whitespace-nowrap font-medium transition-[color,box-shadow,transform]",
|
|
1058
|
+
"duration-150 active:scale-[0.98] pressed:scale-[0.98]",
|
|
1059
|
+
"focus-visible:util-focus-ring outline-none",
|
|
1060
|
+
"cursor-pointer",
|
|
1061
|
+
"text-link text-xs h-button-small"
|
|
1062
|
+
])
|
|
1000
1063
|
};
|
|
1001
1064
|
|
|
1002
1065
|
// src/components/TextArea.styles.ts
|
|
1003
|
-
import { cva as
|
|
1004
|
-
var TextArea =
|
|
1066
|
+
import { cva as cva40 } from "@marigold/system";
|
|
1067
|
+
var TextArea = cva40([
|
|
1005
1068
|
inputContainer,
|
|
1006
1069
|
inputInvalid,
|
|
1007
1070
|
"focus:util-focus-ring outline-none",
|
|
@@ -1011,8 +1074,8 @@ var TextArea = cva43([
|
|
|
1011
1074
|
]);
|
|
1012
1075
|
|
|
1013
1076
|
// src/components/Text.styles.ts
|
|
1014
|
-
import { cva as
|
|
1015
|
-
var Text =
|
|
1077
|
+
import { cva as cva41 } from "@marigold/system";
|
|
1078
|
+
var Text = cva41("", {
|
|
1016
1079
|
variants: {
|
|
1017
1080
|
variant: {
|
|
1018
1081
|
default: "",
|
|
@@ -1042,10 +1105,70 @@ var Text = cva44("", {
|
|
|
1042
1105
|
}
|
|
1043
1106
|
});
|
|
1044
1107
|
|
|
1108
|
+
// src/components/Toast.styles.ts
|
|
1109
|
+
import { cva as cva42 } from "@marigold/system";
|
|
1110
|
+
var Toast = {
|
|
1111
|
+
toast: cva42([
|
|
1112
|
+
"z-50",
|
|
1113
|
+
"max-w-sm w-full pointer-events-auto overflow-hidden rounded-md border shadow-lg bg-background text-foreground border-border",
|
|
1114
|
+
"grid grid-cols-[auto_1fr_auto] grid-rows-[auto_auto] gap-x-1 gap-y-0",
|
|
1115
|
+
'[grid-template-areas:"icon_title_close""icon_description_description"] focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]',
|
|
1116
|
+
"p-4"
|
|
1117
|
+
]),
|
|
1118
|
+
title: cva42([
|
|
1119
|
+
"text-sm font-medium",
|
|
1120
|
+
"[grid-area:title]",
|
|
1121
|
+
"flex items-center mb-0"
|
|
1122
|
+
]),
|
|
1123
|
+
description: cva42([
|
|
1124
|
+
"text-muted-foreground text-sm",
|
|
1125
|
+
"[grid-area:description] mt-0"
|
|
1126
|
+
]),
|
|
1127
|
+
closeButton: cva42([
|
|
1128
|
+
"[grid-area:close] row-end-1",
|
|
1129
|
+
"ml-2",
|
|
1130
|
+
"flex items-center justify-center",
|
|
1131
|
+
"size-5 rounded transition-[color,box-shadow] outline-none",
|
|
1132
|
+
"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] text-muted-foreground hover:text-hover-foreground"
|
|
1133
|
+
]),
|
|
1134
|
+
icon: cva42(
|
|
1135
|
+
[
|
|
1136
|
+
"[grid-area:icon]",
|
|
1137
|
+
"flex items-center justify-center",
|
|
1138
|
+
"h-5 w-5 leading-none"
|
|
1139
|
+
],
|
|
1140
|
+
{
|
|
1141
|
+
variants: {
|
|
1142
|
+
variant: {
|
|
1143
|
+
default: "",
|
|
1144
|
+
success: "text-success-muted-accent",
|
|
1145
|
+
warning: "text-warning-muted-accent",
|
|
1146
|
+
info: "text-info-muted-accent",
|
|
1147
|
+
error: "text-destructive-muted-accent"
|
|
1148
|
+
}
|
|
1149
|
+
},
|
|
1150
|
+
defaultVariants: {
|
|
1151
|
+
variant: "default"
|
|
1152
|
+
}
|
|
1153
|
+
}
|
|
1154
|
+
),
|
|
1155
|
+
content: cva42(["contents"]),
|
|
1156
|
+
"bottom-left": cva42(["fixed bottom-4 left-4 flex flex-col-reverse"]),
|
|
1157
|
+
"bottom-right": cva42(["fixed bottom-4 right-4 flex flex-col-reverse"]),
|
|
1158
|
+
"top-left": cva42(["fixed top-4 left-4 flex flex-col"]),
|
|
1159
|
+
"top-right": cva42(["fixed top-4 right-4 flex flex-col"]),
|
|
1160
|
+
top: cva42([
|
|
1161
|
+
"fixed top-4 left-1/2 right-auto -translate-x-1/2 flex flex-col items-center w-auto align-middle"
|
|
1162
|
+
]),
|
|
1163
|
+
bottom: cva42([
|
|
1164
|
+
"fixed bottom-4 left-1/2 right-auto -translate-x-1/2 flex flex-col-reverse items-center w-auto align-middle"
|
|
1165
|
+
])
|
|
1166
|
+
};
|
|
1167
|
+
|
|
1045
1168
|
// src/components/Tooltip.styles.ts
|
|
1046
|
-
import { cva as
|
|
1169
|
+
import { cva as cva43 } from "@marigold/system";
|
|
1047
1170
|
var Tooltip = {
|
|
1048
|
-
container:
|
|
1171
|
+
container: cva43(
|
|
1049
1172
|
[
|
|
1050
1173
|
"relative z-50 max-w-70 rounded-md border px-3 py-1.5 text-sm",
|
|
1051
1174
|
"placement-top:mb-2",
|
|
@@ -1065,7 +1188,7 @@ var Tooltip = {
|
|
|
1065
1188
|
}
|
|
1066
1189
|
}
|
|
1067
1190
|
),
|
|
1068
|
-
arrow:
|
|
1191
|
+
arrow: cva43(
|
|
1069
1192
|
[
|
|
1070
1193
|
// right
|
|
1071
1194
|
"data-[placement=right]:[&_svg]:rotate-90",
|
|
@@ -1089,13 +1212,13 @@ var Tooltip = {
|
|
|
1089
1212
|
};
|
|
1090
1213
|
|
|
1091
1214
|
// src/components/Underlay.styles.ts
|
|
1092
|
-
import { cva as
|
|
1093
|
-
var Underlay =
|
|
1215
|
+
import { cva as cva44 } from "@marigold/system";
|
|
1216
|
+
var Underlay = cva44("bg-black/80 px-4");
|
|
1094
1217
|
|
|
1095
1218
|
// src/components/XLoader.styles.ts
|
|
1096
|
-
import { cva as
|
|
1219
|
+
import { cva as cva45 } from "@marigold/system";
|
|
1097
1220
|
var XLoader = {
|
|
1098
|
-
container:
|
|
1221
|
+
container: cva45("grid place-items-center text-brand", {
|
|
1099
1222
|
variants: {
|
|
1100
1223
|
variant: {
|
|
1101
1224
|
default: "",
|
|
@@ -1112,7 +1235,7 @@ var XLoader = {
|
|
|
1112
1235
|
size: "default"
|
|
1113
1236
|
}
|
|
1114
1237
|
}),
|
|
1115
|
-
loader:
|
|
1238
|
+
loader: cva45("size-full", {
|
|
1116
1239
|
variants: {
|
|
1117
1240
|
variant: {
|
|
1118
1241
|
default: "",
|
|
@@ -1129,7 +1252,31 @@ var XLoader = {
|
|
|
1129
1252
|
size: "default"
|
|
1130
1253
|
}
|
|
1131
1254
|
}),
|
|
1132
|
-
label:
|
|
1255
|
+
label: cva45("text-current text-sm")
|
|
1256
|
+
};
|
|
1257
|
+
|
|
1258
|
+
// src/components/Breadcrumbs.styles.ts
|
|
1259
|
+
import { cva as cva46 } from "@marigold/system";
|
|
1260
|
+
var Breadcrumbs = {
|
|
1261
|
+
container: cva46(["flex flex-wrap items-center"], {
|
|
1262
|
+
variants: {
|
|
1263
|
+
variant: {
|
|
1264
|
+
default: "text-foreground"
|
|
1265
|
+
},
|
|
1266
|
+
size: {
|
|
1267
|
+
small: "text-xs gap-1.5",
|
|
1268
|
+
default: "text-sm gap-1.5",
|
|
1269
|
+
large: "text-base gap-1.5"
|
|
1270
|
+
}
|
|
1271
|
+
},
|
|
1272
|
+
defaultVariants: {
|
|
1273
|
+
variant: "default",
|
|
1274
|
+
size: "default"
|
|
1275
|
+
}
|
|
1276
|
+
}),
|
|
1277
|
+
item: cva46("inline-flex items-center gap-1.5 whitespace-nowrap "),
|
|
1278
|
+
link: cva46("hover:underline cursor-pointer"),
|
|
1279
|
+
current: cva46("font-medium")
|
|
1133
1280
|
};
|
|
1134
1281
|
|
|
1135
1282
|
// src/theme.ts
|