@marigold/theme-rui 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +228 -248
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +228 -248
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +337 -203
- package/dist/theme.css +22 -5
- package/dist/utils.css +44 -3
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -35,6 +35,7 @@ __export(components_exports, {
|
|
|
35
35
|
Calendar: () => Calendar,
|
|
36
36
|
Card: () => Card,
|
|
37
37
|
Checkbox: () => Checkbox,
|
|
38
|
+
CloseButton: () => CloseButton,
|
|
38
39
|
ComboBox: () => ComboBox,
|
|
39
40
|
DateField: () => DateField,
|
|
40
41
|
DatePicker: () => DatePicker,
|
|
@@ -54,6 +55,7 @@ __export(components_exports, {
|
|
|
54
55
|
List: () => List,
|
|
55
56
|
ListBox: () => ListBox,
|
|
56
57
|
Menu: () => Menu,
|
|
58
|
+
Modal: () => Modal,
|
|
57
59
|
MultiSelect: () => MultiSelect,
|
|
58
60
|
NumberField: () => NumberField,
|
|
59
61
|
Pagination: () => Pagination,
|
|
@@ -95,7 +97,7 @@ var Accordion = {
|
|
|
95
97
|
card: [
|
|
96
98
|
"rounded-md border px-4 py-1 outline-none last:border-b",
|
|
97
99
|
// TODO: focus is still shown even if an item within the item is focused
|
|
98
|
-
"has-focus-visible:util-focus-ring"
|
|
100
|
+
"has-focus-visible:util-focus-ring outline-none"
|
|
99
101
|
]
|
|
100
102
|
}
|
|
101
103
|
},
|
|
@@ -113,7 +115,7 @@ var Accordion = {
|
|
|
113
115
|
{
|
|
114
116
|
variants: {
|
|
115
117
|
variant: {
|
|
116
|
-
default: "focus-visible:util-focus-ring",
|
|
118
|
+
default: "focus-visible:util-focus-ring outline-none",
|
|
117
119
|
card: "outline-none"
|
|
118
120
|
}
|
|
119
121
|
},
|
|
@@ -134,7 +136,7 @@ var circle = "before:size-1.5 before:rounded-full pr-2";
|
|
|
134
136
|
var Badge = (0, import_system2.cva)(
|
|
135
137
|
[
|
|
136
138
|
"inline-flex items-center justify-center rounded-full border px-1.5 text-xs font-medium leading-normal transition-colors",
|
|
137
|
-
"focus-visible:util-focus-ring"
|
|
139
|
+
"focus-visible:util-focus-ring outline-none"
|
|
138
140
|
],
|
|
139
141
|
{
|
|
140
142
|
variants: {
|
|
@@ -175,7 +177,7 @@ var Button = (0, import_system4.cva)(
|
|
|
175
177
|
[
|
|
176
178
|
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-[color,box-shadow]",
|
|
177
179
|
"[&_svg]:shrink-0",
|
|
178
|
-
"focus-visible:util-focus-ring disabled:util-disabled",
|
|
180
|
+
"focus-visible:util-focus-ring outline-none disabled:util-disabled",
|
|
179
181
|
"pending:text-disabled-foreground pending:bg-disabled pending:cursor-not-allowed pending:border-none",
|
|
180
182
|
"cursor-pointer"
|
|
181
183
|
],
|
|
@@ -207,10 +209,8 @@ var Button = (0, import_system4.cva)(
|
|
|
207
209
|
// src/components/Card.styles.ts
|
|
208
210
|
var import_system5 = require("@marigold/system");
|
|
209
211
|
var Card = (0, import_system5.cva)([
|
|
210
|
-
"
|
|
211
|
-
"
|
|
212
|
-
"p-4",
|
|
213
|
-
"shadow-sm shadow-black/5"
|
|
212
|
+
"p-4 rounded-md",
|
|
213
|
+
"util-surface-raised"
|
|
214
214
|
]);
|
|
215
215
|
|
|
216
216
|
// src/components/Checkbox.styles.ts
|
|
@@ -219,8 +219,8 @@ var Checkbox = {
|
|
|
219
219
|
checkbox: (0, import_system6.cva)([
|
|
220
220
|
"grid size-4 shrink-0 place-content-center rounded",
|
|
221
221
|
"border border-input shadow-sm shadow-black/5",
|
|
222
|
-
"group-focus-visible/checkbox:util-focus-ring",
|
|
223
|
-
"group-disabled/checkbox:bg-disabled
|
|
222
|
+
"group-focus-visible/checkbox:util-focus-ring outline-none",
|
|
223
|
+
"group-disabled/checkbox:group-selected/checkbox:bg-disabled group-disabled/checkbox:border-disabled! group-disabled/checkbox:text-disabled-foreground group-disabled/checkbox:cursor-not-allowed",
|
|
224
224
|
"group-selected/checkbox:border-brand group-selected/checkbox:bg-brand group-selected/checkbox:text-brand-foreground",
|
|
225
225
|
"group-[indeterminate]/checkbox:border-brand group-[indeterminate]/checkbox:bg-brand group-[indeterminate]/checkbox:text-brand-foreground"
|
|
226
226
|
]),
|
|
@@ -243,13 +243,13 @@ var Calendar = {
|
|
|
243
243
|
"outline-offset-2 duration-150 [transition-property:color,background-color,border-radius,box-shadow]",
|
|
244
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",
|
|
245
245
|
"disabled:opacity-30 data-[unavailable]:opacity-30",
|
|
246
|
-
"focus-visible:util-focus-borderless-ring"
|
|
246
|
+
"focus-visible:util-focus-borderless-ring outline-none"
|
|
247
247
|
]),
|
|
248
248
|
calendarControllers: (0, import_system7.cva)([
|
|
249
249
|
"size-9 rounded-lg",
|
|
250
250
|
"text-muted-foreground/80",
|
|
251
251
|
"transition-colors",
|
|
252
|
-
"focus-visible:util-focus-ring"
|
|
252
|
+
"focus-visible:util-focus-ring outline-none"
|
|
253
253
|
]),
|
|
254
254
|
calendarHeader: (0, import_system7.cva)([
|
|
255
255
|
"size-9 rounded-lg p-0 text-xs font-medium text-muted-foreground/80"
|
|
@@ -257,27 +257,38 @@ var Calendar = {
|
|
|
257
257
|
calendarGrid: (0, import_system7.cva)("[&_td]:p-2")
|
|
258
258
|
};
|
|
259
259
|
|
|
260
|
-
// src/components/
|
|
260
|
+
// src/components/CloseButton.styles.ts
|
|
261
261
|
var import_system8 = require("@marigold/system");
|
|
262
|
-
var
|
|
262
|
+
var CloseButton = (0, import_system8.cva)([
|
|
263
|
+
"flex items-center justify-center whitespace-nowrap",
|
|
264
|
+
"cursor-pointer",
|
|
265
|
+
"transition-[color,box-shadow]",
|
|
266
|
+
"mixin-ring-focus-visible",
|
|
267
|
+
"rounded",
|
|
268
|
+
"[&_svg]:size-4 [&_svg]:opacity-60 [&_svg]:transition-opacity hover:[&_svg]:opacity-100"
|
|
269
|
+
]);
|
|
270
|
+
|
|
271
|
+
// src/components/ComboBox.styles.ts
|
|
272
|
+
var import_system9 = require("@marigold/system");
|
|
273
|
+
var ComboBox = (0, import_system9.cva)(
|
|
263
274
|
"text-muted-foreground/80 right-2"
|
|
264
275
|
);
|
|
265
276
|
|
|
266
277
|
// src/components/DateField.styles.ts
|
|
267
|
-
var
|
|
278
|
+
var import_system11 = require("@marigold/system");
|
|
268
279
|
|
|
269
280
|
// src/components/Input.styles.ts
|
|
270
|
-
var
|
|
281
|
+
var import_system10 = require("@marigold/system");
|
|
271
282
|
var inputContainer = "flex w-full px-3 py-2 rounded-lg shadow-sm shadow-black/5 border border-input bg-background text-sm text-foreground transition-shadow group-read-only/field:bg-muted";
|
|
272
283
|
var inputDisabled = "disabled:cursor-not-allowed disabled:text-disabled-foreground disabled:bg-disabled";
|
|
273
284
|
var inputInvalid = "group-invalid/field:border-destructive group-invalid/field:focus:border-destructive group-invalid/field:focus:ring-destructive/20";
|
|
274
285
|
var inputReadOnly = "group-read-only/field:bg-muted";
|
|
275
286
|
var Input = {
|
|
276
|
-
input: (0,
|
|
287
|
+
input: (0, import_system10.cva)([
|
|
277
288
|
inputContainer,
|
|
278
289
|
inputDisabled,
|
|
279
290
|
inputInvalid,
|
|
280
|
-
"focus
|
|
291
|
+
"focus:util-focus-ring outline-none",
|
|
281
292
|
inputReadOnly,
|
|
282
293
|
"h-input",
|
|
283
294
|
"placeholder:text-placeholder",
|
|
@@ -286,39 +297,39 @@ var Input = {
|
|
|
286
297
|
"group-[[data-icon]]/input:pl-8",
|
|
287
298
|
"group-[[data-action]]/input:pr-7"
|
|
288
299
|
]),
|
|
289
|
-
icon: (0,
|
|
300
|
+
icon: (0, import_system10.cva)([
|
|
290
301
|
"pointer-events-none left-1",
|
|
291
302
|
"text-muted-foreground disabled:text-disabled-foreground"
|
|
292
303
|
]),
|
|
293
|
-
action: (0,
|
|
304
|
+
action: (0, import_system10.cva)(["text-muted-foreground right-1"])
|
|
294
305
|
};
|
|
295
306
|
|
|
296
307
|
// src/components/DateField.styles.ts
|
|
297
308
|
var DateField = {
|
|
298
|
-
field: (0,
|
|
309
|
+
field: (0, import_system11.cva)([
|
|
299
310
|
"h-input",
|
|
300
311
|
inputContainer,
|
|
301
312
|
inputDisabled,
|
|
302
|
-
"has-focus-visible:util-focus-ring",
|
|
313
|
+
"has-focus-visible:util-focus-ring outline-none",
|
|
303
314
|
inputInvalid,
|
|
304
315
|
inputReadOnly,
|
|
305
316
|
"invalid:focus-within:border-destructive invalid:focus-within:ring-destructive/20"
|
|
306
317
|
]),
|
|
307
|
-
segment: (0,
|
|
318
|
+
segment: (0, import_system11.cva)([
|
|
308
319
|
inputDisabled,
|
|
309
320
|
"inline rounded p-0.5 text-foreground caret-transparent outline-0 data-[type=literal]:px-0 data-[focused]:data-[placeholder]:text-foreground data-[focused]:text-foreground data-[type=literal]:text-placeholder ",
|
|
310
321
|
"data-[focused]:bg-focus",
|
|
311
322
|
"data-[placeholder]:disabled:text-disabled-foreground",
|
|
312
323
|
"invalid:data-[focused]:bg-destructive invalid:data-[focused]:data-[placeholder]:text-destructive-foreground invalid:data-[focused]:text-destructive-foreground invalid:placeholder:text-destructive invalid:text-destructive data-[placeholder]:text-placeholder"
|
|
313
324
|
]),
|
|
314
|
-
action: (0,
|
|
325
|
+
action: (0, import_system11.cva)(
|
|
315
326
|
"fill-muted-foreground disabled:text-disabled-foreground group-invalid/field:fill-destructive"
|
|
316
327
|
)
|
|
317
328
|
};
|
|
318
329
|
|
|
319
330
|
// src/components/DatePicker.styles.ts
|
|
320
|
-
var
|
|
321
|
-
var DatePicker = (0,
|
|
331
|
+
var import_system12 = require("@marigold/system");
|
|
332
|
+
var DatePicker = (0, import_system12.cva)([
|
|
322
333
|
"relative h-input -top-2",
|
|
323
334
|
"text-muted-foreground/80",
|
|
324
335
|
"hover:text-brand",
|
|
@@ -326,46 +337,27 @@ var DatePicker = (0, import_system11.cva)([
|
|
|
326
337
|
]);
|
|
327
338
|
|
|
328
339
|
// src/components/Dialog.styles.ts
|
|
329
|
-
var
|
|
340
|
+
var import_system13 = require("@marigold/system");
|
|
330
341
|
var Dialog = {
|
|
331
|
-
closeButton: (0,
|
|
332
|
-
|
|
333
|
-
"flex
|
|
334
|
-
"
|
|
335
|
-
"[&_svg]:size-4 [&_svg]:opacity-60 [&_svg]:transition-opacity hover:[&_svg]:opacity-100"
|
|
342
|
+
closeButton: (0, import_system13.cva)(["absolute top-6 right-3", "size-7 "]),
|
|
343
|
+
container: (0, import_system13.cva)([
|
|
344
|
+
"flex flex-col gap-0 rounded-xl p-6 overflow-y-auto",
|
|
345
|
+
"util-surface-overlay"
|
|
336
346
|
]),
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
"flex flex-col gap-0 p-0",
|
|
340
|
-
"bg-surface-overlay rounded-xl border p-6 shadow-lg overflow-y-auto",
|
|
341
|
-
"w-full max-w-[calc(100%-2rem)]",
|
|
342
|
-
"sm:max-h-[min(640px,80vh)] max-h-[calc(100%-2rem)]"
|
|
343
|
-
],
|
|
344
|
-
{
|
|
345
|
-
variants: {
|
|
346
|
-
size: {
|
|
347
|
-
default: "sm:max-w-100"
|
|
348
|
-
}
|
|
349
|
-
},
|
|
350
|
-
defaultVariants: {
|
|
351
|
-
size: "default"
|
|
352
|
-
}
|
|
353
|
-
}
|
|
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", {
|
|
347
|
+
header: (0, import_system13.cva)("flex flex-col gap-1 text-center sm:text-left"),
|
|
348
|
+
title: (0, import_system13.cva)("text-lg font-semibold mb-1", {
|
|
357
349
|
variants: {
|
|
358
350
|
variant: {},
|
|
359
351
|
size: {}
|
|
360
352
|
}
|
|
361
353
|
}),
|
|
362
|
-
content: (0,
|
|
363
|
-
actions: (0,
|
|
354
|
+
content: (0, import_system13.cva)("text-muted-foreground text-sm"),
|
|
355
|
+
actions: (0, import_system13.cva)("flex flex-col-reverse gap-3 sm:flex-row sm:justify-end mt-4")
|
|
364
356
|
};
|
|
365
357
|
|
|
366
358
|
// src/components/Divider.styles.ts
|
|
367
|
-
var
|
|
368
|
-
var Divider = (0,
|
|
359
|
+
var import_system14 = require("@marigold/system");
|
|
360
|
+
var Divider = (0, import_system14.cva)(
|
|
369
361
|
"bg-stone-300 h-px w-full",
|
|
370
362
|
{
|
|
371
363
|
variants: {
|
|
@@ -378,40 +370,16 @@ var Divider = (0, import_system13.cva)(
|
|
|
378
370
|
);
|
|
379
371
|
|
|
380
372
|
// src/components/Drawer.styles.ts
|
|
381
|
-
var
|
|
373
|
+
var import_system15 = require("@marigold/system");
|
|
382
374
|
var Drawer = {
|
|
383
|
-
overlay: (0,
|
|
375
|
+
overlay: (0, import_system15.cva)([
|
|
384
376
|
"group/overlay",
|
|
385
377
|
"entering:animate-slide-in-right exiting:animate-slide-out-right"
|
|
386
378
|
]),
|
|
387
|
-
container: (0,
|
|
379
|
+
container: (0, import_system15.cva)(
|
|
388
380
|
[
|
|
389
381
|
"relative grid-rows-[auto_1fr_auto]",
|
|
390
|
-
"
|
|
391
|
-
/**
|
|
392
|
-
* The fade animation only start when entering is finished,
|
|
393
|
-
* to prevent flickering we hide the elements during the
|
|
394
|
-
* slide in animation.
|
|
395
|
-
*/
|
|
396
|
-
// '*:group-entering/overlay:opacity-0',
|
|
397
|
-
// '*:animate-fade-in *:[animation-duration:0.2s]',
|
|
398
|
-
// '*:[animation-delay:var(--slide-in-duration)]',
|
|
399
|
-
/**
|
|
400
|
-
* The drawer's child elements will have a secondary fade-in-up animation,
|
|
401
|
-
* which starts only after the drawer has fully slid in.
|
|
402
|
-
*
|
|
403
|
-
* To achieve this, we initially hide the children and allow them to remain
|
|
404
|
-
* in their final animation state (using `animation-fill-mode`).
|
|
405
|
-
* A slight delay is applied to each child to create a staggered fade-in-up effect.
|
|
406
|
-
*/
|
|
407
|
-
"*:opacity-0 *:[animation-fill-mode:forwards]",
|
|
408
|
-
"*:animate-fade-in-up *:[animation-delay:calc(var(--slide-in-duration)+(var(--i)*150ms))]",
|
|
409
|
-
/**
|
|
410
|
-
* Fade out content of the slider, looks smoother and less clutter.
|
|
411
|
-
* Keep the "not-group-exiting" of the fade in animation, because
|
|
412
|
-
* elements can only have one animation.
|
|
413
|
-
*/
|
|
414
|
-
"*:group-exiting/overlay:animate-fade-out! *:group-exiting/overlay:[animation-delay:0s]!"
|
|
382
|
+
"util-surface-overlay border-y-0! border-r-0!"
|
|
415
383
|
],
|
|
416
384
|
{
|
|
417
385
|
variants: {
|
|
@@ -424,23 +392,18 @@ var Drawer = {
|
|
|
424
392
|
}
|
|
425
393
|
}
|
|
426
394
|
),
|
|
427
|
-
closeButton: (0,
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
]),
|
|
433
|
-
header: (0, import_system14.cva)("border-border border-b px-6 py-4"),
|
|
434
|
-
title: (0, import_system14.cva)("font-semibold text-base"),
|
|
435
|
-
content: (0, import_system14.cva)("px-6 py-4 overflow-y-auto outline-none"),
|
|
436
|
-
actions: (0, import_system14.cva)(
|
|
395
|
+
closeButton: (0, import_system15.cva)(["absolute top-3.5 right-3 z-50", "size-7"]),
|
|
396
|
+
header: (0, import_system15.cva)("border-border border-b px-6 py-4"),
|
|
397
|
+
title: (0, import_system15.cva)("font-semibold text-base"),
|
|
398
|
+
content: (0, import_system15.cva)("px-6 py-4 overflow-y-auto outline-none"),
|
|
399
|
+
actions: (0, import_system15.cva)(
|
|
437
400
|
"flex flex-row gap-3 justify-end border-border border-t px-6 py-4"
|
|
438
401
|
)
|
|
439
402
|
};
|
|
440
403
|
|
|
441
404
|
// src/components/IconButton.styles.ts
|
|
442
|
-
var
|
|
443
|
-
var IconButton = (0,
|
|
405
|
+
var import_system16 = require("@marigold/system");
|
|
406
|
+
var IconButton = (0, import_system16.cva)("", {
|
|
444
407
|
variants: {
|
|
445
408
|
variant: {
|
|
446
409
|
navigation: "inline-flex items-center justify-center whitespace-nowrap rounded-lg text-sm font-medium transition-colors outline-offset-2 focus-visible:outline-2 outline-ring/30 disabled:pointer-events-none disabled:bg-disabled disabled:text-disabled-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 hover:bg-hover hover:text-hover-foreground h-9 py-2 gap-1 px-2.5"
|
|
@@ -449,20 +412,20 @@ var IconButton = (0, import_system15.cva)("", {
|
|
|
449
412
|
});
|
|
450
413
|
|
|
451
414
|
// src/components/Field.styles.ts
|
|
452
|
-
var
|
|
453
|
-
var Field = (0,
|
|
415
|
+
var import_system17 = require("@marigold/system");
|
|
416
|
+
var Field = (0, import_system17.cva)("space-y-2");
|
|
454
417
|
|
|
455
418
|
// src/components/Footer.styles.ts
|
|
456
|
-
var
|
|
457
|
-
var Footer = (0,
|
|
419
|
+
var import_system18 = require("@marigold/system");
|
|
420
|
+
var Footer = (0, import_system18.cva)("");
|
|
458
421
|
|
|
459
422
|
// src/components/Header.styles.ts
|
|
460
|
-
var
|
|
461
|
-
var Header = (0,
|
|
423
|
+
var import_system19 = require("@marigold/system");
|
|
424
|
+
var Header = (0, import_system19.cva)("");
|
|
462
425
|
|
|
463
426
|
// src/components/Headline.styles.ts
|
|
464
|
-
var
|
|
465
|
-
var Headline = (0,
|
|
427
|
+
var import_system20 = require("@marigold/system");
|
|
428
|
+
var Headline = (0, import_system20.cva)("", {
|
|
466
429
|
variants: {
|
|
467
430
|
size: {
|
|
468
431
|
"level-1": "text-5xl font-black",
|
|
@@ -476,34 +439,34 @@ var Headline = (0, import_system19.cva)("", {
|
|
|
476
439
|
});
|
|
477
440
|
|
|
478
441
|
// src/components/HelpText.styles.ts
|
|
479
|
-
var
|
|
442
|
+
var import_system21 = require("@marigold/system");
|
|
480
443
|
var HelpText = {
|
|
481
|
-
container: (0,
|
|
444
|
+
container: (0, import_system21.cva)([
|
|
482
445
|
"mt-2 text-xs text-muted-foreground group-disabled/field:text-disabled-foreground",
|
|
483
446
|
"group-invalid/field:text-destructive"
|
|
484
447
|
]),
|
|
485
|
-
icon: (0,
|
|
448
|
+
icon: (0, import_system21.cva)("")
|
|
486
449
|
};
|
|
487
450
|
|
|
488
451
|
// src/components/Image.styles.ts
|
|
489
|
-
var
|
|
490
|
-
var Image = (0,
|
|
452
|
+
var import_system22 = require("@marigold/system");
|
|
453
|
+
var Image = (0, import_system22.cva)();
|
|
491
454
|
|
|
492
455
|
// src/components/Label.styles.ts
|
|
493
|
-
var
|
|
456
|
+
var import_system23 = require("@marigold/system");
|
|
494
457
|
var Label = {
|
|
495
|
-
container: (0,
|
|
458
|
+
container: (0, import_system23.cva)([
|
|
496
459
|
"text-sm font-medium leading-4 text-foreground",
|
|
497
460
|
"group-disabled/field:cursor-not-allowed group-disabled/field:text-disabled-foreground"
|
|
498
461
|
]),
|
|
499
|
-
indicator: (0,
|
|
500
|
-
"group-required/field:block
|
|
462
|
+
indicator: (0, import_system23.cva)(
|
|
463
|
+
"group-required/field:block text-destructive align-super size-2.5"
|
|
501
464
|
)
|
|
502
465
|
};
|
|
503
466
|
|
|
504
467
|
// src/components/Link.styles.ts
|
|
505
|
-
var
|
|
506
|
-
var Link = (0,
|
|
468
|
+
var import_system24 = require("@marigold/system");
|
|
469
|
+
var Link = (0, import_system24.cva)(
|
|
507
470
|
"underline aria-[disabled]:cursor-not-allowed py-2 underline-offset-4",
|
|
508
471
|
{
|
|
509
472
|
variants: {
|
|
@@ -516,52 +479,78 @@ var Link = (0, import_system23.cva)(
|
|
|
516
479
|
);
|
|
517
480
|
|
|
518
481
|
// src/components/List.styles.ts
|
|
519
|
-
var
|
|
482
|
+
var import_system25 = require("@marigold/system");
|
|
520
483
|
var List = {
|
|
521
|
-
ul: (0,
|
|
522
|
-
ol: (0,
|
|
523
|
-
item: (0,
|
|
484
|
+
ul: (0, import_system25.cva)("ml-6 list-inside list-disc py-3"),
|
|
485
|
+
ol: (0, import_system25.cva)("ml-6 list-inside list-decimal py-3"),
|
|
486
|
+
item: (0, import_system25.cva)("pt-3")
|
|
524
487
|
};
|
|
525
488
|
|
|
526
489
|
// src/components/ListBox.styles.ts
|
|
527
|
-
var
|
|
490
|
+
var import_system26 = require("@marigold/system");
|
|
528
491
|
var ListBox = {
|
|
529
|
-
container: (0,
|
|
530
|
-
"overflow-hidden rounded-md border border-input group-[trigger]/popover:border-0"
|
|
492
|
+
container: (0, import_system26.cva)([
|
|
493
|
+
"overflow-hidden rounded-md border border-input group-[[data-trigger]]/popover:border-0"
|
|
531
494
|
]),
|
|
532
|
-
list: (0,
|
|
533
|
-
item: (0,
|
|
495
|
+
list: (0, import_system26.cva)(["space-y-1 bg-background p-1 text-sm outline-0"]),
|
|
496
|
+
item: (0, import_system26.cva)([
|
|
534
497
|
"relative flex flex-col rounded-md px-2 py-1.5 text-sm text-foreground cursor-pointer",
|
|
535
498
|
"selected:bg-selected",
|
|
536
499
|
"hover:bg-hover hover:text-hover-foreground",
|
|
537
500
|
"disabled:cursor-not-allowed disabled:text-disabled-foreground",
|
|
538
|
-
"focus-visible:util-focus-ring"
|
|
501
|
+
"focus-visible:util-focus-ring outline-none"
|
|
539
502
|
]),
|
|
540
|
-
section: (0,
|
|
541
|
-
header: (0,
|
|
503
|
+
section: (0, import_system26.cva)(""),
|
|
504
|
+
header: (0, import_system26.cva)(
|
|
542
505
|
"[&_header]:px-2 [&_header]:py-1.5 [&_header]:text-xs [&_header]:font-medium [&_header]:text-muted-foreground"
|
|
543
506
|
)
|
|
544
507
|
};
|
|
545
508
|
|
|
546
509
|
// src/components/Menu.styles.ts
|
|
547
|
-
var
|
|
510
|
+
var import_system27 = require("@marigold/system");
|
|
548
511
|
var Menu = {
|
|
549
|
-
container: (0,
|
|
550
|
-
"
|
|
512
|
+
container: (0, import_system27.cva)([
|
|
513
|
+
"text-foreground z-50 min-w-40 overflow-hidden rounded-md p-1"
|
|
551
514
|
]),
|
|
552
|
-
item: (0,
|
|
553
|
-
"focus:bg-focus focus:text-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none
|
|
515
|
+
item: (0, import_system27.cva)([
|
|
516
|
+
"focus:bg-focus focus:text-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none disabled:text-disabled-foreground"
|
|
554
517
|
]),
|
|
555
|
-
section: (0,
|
|
518
|
+
section: (0, import_system27.cva)(
|
|
556
519
|
"text-muted-foreground px-2 py-1.5 text-xs font-medium border-t border-t-border in-first:border-t-0"
|
|
557
520
|
)
|
|
558
521
|
};
|
|
559
522
|
|
|
523
|
+
// src/components/Modal.styles.ts
|
|
524
|
+
var import_system28 = require("@marigold/system");
|
|
525
|
+
var Modal = (0, import_system28.cva)(
|
|
526
|
+
[
|
|
527
|
+
"sm:max-h-[min(640px,80vh)]",
|
|
528
|
+
"[--dialog-spacing-x:1rem]",
|
|
529
|
+
// Minimal padding to the horizontal edges
|
|
530
|
+
"w-[min(calc(100%_-_var(--dialog-spacing-x)),calc(var(--dialog-width)_-_var(--dialog-spacing-x)))]"
|
|
531
|
+
],
|
|
532
|
+
{
|
|
533
|
+
variants: {
|
|
534
|
+
size: {
|
|
535
|
+
xsmall: "[--dialog-width:480px]",
|
|
536
|
+
// "xs" breakpoint
|
|
537
|
+
small: "[--dialog-width:640px]",
|
|
538
|
+
// sm breakpoint
|
|
539
|
+
medium: "[--dialog-width:768px]"
|
|
540
|
+
// md breakpoint
|
|
541
|
+
}
|
|
542
|
+
},
|
|
543
|
+
defaultVariants: {
|
|
544
|
+
size: "small"
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
);
|
|
548
|
+
|
|
560
549
|
// src/components/Multiselect.styles.ts
|
|
561
|
-
var
|
|
550
|
+
var import_system29 = require("@marigold/system");
|
|
562
551
|
var MultiSelect = {
|
|
563
|
-
field: (0,
|
|
564
|
-
container: (0,
|
|
552
|
+
field: (0, import_system29.cva)("grid gap-y-0.5"),
|
|
553
|
+
container: (0, import_system29.cva)([
|
|
565
554
|
"bg-background shadow-sm shadow-black/5 border",
|
|
566
555
|
"px-3 text-sm text-foreground transition-shadow",
|
|
567
556
|
"border border-input rounded-lg outline-hidden",
|
|
@@ -571,7 +560,7 @@ var MultiSelect = {
|
|
|
571
560
|
"has-[input[data-focused=true]]:!border-ring has-[input[data-focused=true]]:!ring-ring/50 has-[input[data-focused=true]]:ring-[3px] has-[input[data-focused=true]]:!outline-none",
|
|
572
561
|
"has-[input[aria-readonly=true]]:bg-muted"
|
|
573
562
|
]),
|
|
574
|
-
input: (0,
|
|
563
|
+
input: (0, import_system29.cva)([
|
|
575
564
|
"bg-transparent flex-1 h-full",
|
|
576
565
|
"leading-loose",
|
|
577
566
|
"data-[focused]:outline-hidden outline-hidden border-0",
|
|
@@ -580,22 +569,20 @@ var MultiSelect = {
|
|
|
580
569
|
"group-data-[action]/input:pr-8",
|
|
581
570
|
"placeholder:text-placeholder"
|
|
582
571
|
]),
|
|
583
|
-
tag: (0,
|
|
572
|
+
tag: (0, import_system29.cva)([
|
|
584
573
|
"border border-solid border-input rounded-md",
|
|
585
574
|
"bg-background",
|
|
586
575
|
"font-medium text-xs",
|
|
587
576
|
"flex items-center gap-1 ",
|
|
588
577
|
"h-7 px-2 cursor-default"
|
|
589
578
|
]),
|
|
590
|
-
closeButton: (0,
|
|
579
|
+
closeButton: (0, import_system29.cva)(
|
|
591
580
|
"size-4 cursor-pointer border-none bg-transparent p-0 leading-normal outline-0"
|
|
592
581
|
),
|
|
593
|
-
icon: (0,
|
|
594
|
-
listContainer: (0,
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
list: (0, import_system27.cva)("pointer-events-auto space-y-1 p-1"),
|
|
598
|
-
option: (0, import_system27.cva)([
|
|
582
|
+
icon: (0, import_system29.cva)("left-1"),
|
|
583
|
+
listContainer: (0, import_system29.cva)(["util-surface-overlay mt-0.5 rounded-lg outline-0"]),
|
|
584
|
+
list: (0, import_system29.cva)("pointer-events-auto space-y-1 p-1"),
|
|
585
|
+
option: (0, import_system29.cva)([
|
|
599
586
|
"text-sm text-foreground",
|
|
600
587
|
"flex flex-col",
|
|
601
588
|
"cursor-pointer p-2 outline-hidden",
|
|
@@ -603,96 +590,97 @@ var MultiSelect = {
|
|
|
603
590
|
"aria-disabled:text-disabled-foreground aria-disabled:cursor-not-allowed",
|
|
604
591
|
"[&.isFocused:not([aria-disabled=true])]:!bg-hover"
|
|
605
592
|
]),
|
|
606
|
-
valueContainer: (0,
|
|
593
|
+
valueContainer: (0, import_system29.cva)("gap-2 py-2 min-h-input")
|
|
607
594
|
};
|
|
608
595
|
|
|
609
596
|
// src/components/NumberField.styles.ts
|
|
610
|
-
var
|
|
597
|
+
var import_system30 = require("@marigold/system");
|
|
611
598
|
var NumberField = {
|
|
612
|
-
group: (0,
|
|
613
|
-
"rounded-lg h-input",
|
|
614
|
-
"has-focus-visible:util-focus-ring",
|
|
599
|
+
group: (0, import_system30.cva)([
|
|
600
|
+
"rounded-lg h-input bg-background",
|
|
601
|
+
"has-focus-visible:util-focus-ring outline-none",
|
|
615
602
|
inputInvalid,
|
|
616
603
|
inputReadOnly,
|
|
617
604
|
"border border-input text-sm shadow-sm shadow-black/5 transition-shadow",
|
|
618
605
|
"data-invalid:data-[focus-within]:border-destructive data-invalid:data-[focus-within]:ring-destructive/20"
|
|
619
606
|
]),
|
|
620
|
-
stepper: (0,
|
|
607
|
+
stepper: (0, import_system30.cva)([
|
|
621
608
|
"w-7 h-full text-center shrink-0",
|
|
622
609
|
"disabled:text-disabled-foreground disabled:bg-disabled",
|
|
623
610
|
"border-input! first-of-type:border-r! last-of-type:border-l!"
|
|
624
611
|
]),
|
|
625
|
-
input: (0,
|
|
612
|
+
input: (0, import_system30.cva)([
|
|
626
613
|
"tabular-nums text-foreground px-3 py-2",
|
|
627
|
-
"min-w-0 flex-1",
|
|
614
|
+
"min-w-0 flex-1 bg-transparent",
|
|
628
615
|
"group-[[data-stepper]]/field:text-center",
|
|
629
616
|
"disabled:text-disabled-foreground disabled:bg-disabled"
|
|
630
617
|
])
|
|
631
618
|
};
|
|
632
619
|
|
|
633
620
|
// src/components/Popover.styles.ts
|
|
634
|
-
var
|
|
635
|
-
var Popover = (0,
|
|
621
|
+
var import_system31 = require("@marigold/system");
|
|
622
|
+
var Popover = (0, import_system31.cva)([
|
|
636
623
|
"group/popover",
|
|
637
|
-
"z-50 overflow-y-auto overflow-x-hidden rounded-md outline-0
|
|
638
|
-
/** animate stuff missing */
|
|
639
|
-
"bg-surface-overlay text-foreground shadow-md",
|
|
624
|
+
"text-foreground z-50 overflow-y-auto overflow-x-hidden rounded-md outline-0",
|
|
640
625
|
"placement-top:mb-1",
|
|
641
626
|
"placement-bottom:mt-1",
|
|
642
627
|
"placement-right:ml-1",
|
|
643
|
-
"placement-left:mr-1"
|
|
628
|
+
"placement-left:mr-1",
|
|
629
|
+
"util-surface-overlay"
|
|
644
630
|
]);
|
|
645
631
|
|
|
646
632
|
// src/components/Radio.styles.ts
|
|
647
|
-
var
|
|
633
|
+
var import_system32 = require("@marigold/system");
|
|
648
634
|
var Radio = {
|
|
649
|
-
container: (0,
|
|
650
|
-
label: (0,
|
|
635
|
+
container: (0, import_system32.cva)("group-disabled/radio:cursor-not-allowed"),
|
|
636
|
+
label: (0, import_system32.cva)([
|
|
651
637
|
"text-sm font-normal cursor-pointer",
|
|
652
638
|
"group-disabled/radio:text-disabled-foreground group-disabled/radio:cursor-not-allowed"
|
|
653
639
|
]),
|
|
654
|
-
radio: (0,
|
|
640
|
+
radio: (0, import_system32.cva)([
|
|
655
641
|
"aspect-square size-4 rounded-full",
|
|
656
642
|
"border border-input shadow-sm shadow-black/5",
|
|
657
|
-
"group-focus-visible/radio:util-focus-ring",
|
|
658
|
-
"group-disabled/radio:border-disabled",
|
|
643
|
+
"group-focus-visible/radio:util-focus-ring outline-none",
|
|
644
|
+
"group-disabled/radio:group-selected/radio:bg-disabled group-disabled/radio:border-disabled! group-disabled/radio:cursor-not-allowed",
|
|
659
645
|
"group-selected/radio:border-brand group-selected/radio:bg-brand group-selected/radio:text-brand-foreground"
|
|
660
646
|
]),
|
|
661
|
-
group: (0,
|
|
647
|
+
group: (0, import_system32.cva)()
|
|
662
648
|
};
|
|
663
649
|
|
|
664
650
|
// src/components/Pagination.styles.ts
|
|
665
|
-
var
|
|
651
|
+
var import_system33 = require("@marigold/system");
|
|
666
652
|
var Pagination = {
|
|
667
|
-
navigationButton: (0,
|
|
653
|
+
navigationButton: (0, import_system33.cva)([
|
|
668
654
|
"inline-flex items-center justify-center whitespace-nowrap rounded-lg text-sm font-medium transition-colors",
|
|
669
|
-
"focus-visible:util-focus-ring",
|
|
655
|
+
"focus-visible:util-focus-ring outline-none",
|
|
670
656
|
"disabled:pointer-events-none disabled:bg-disabled disabled:text-disabled-foreground",
|
|
671
657
|
"[&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
672
658
|
"hover:bg-hover hover:text-hover-foreground",
|
|
673
|
-
"h-9 py-2 gap-1 px-2.5"
|
|
659
|
+
"h-9 py-2 gap-1 px-2.5",
|
|
660
|
+
"cursor-pointer"
|
|
674
661
|
]),
|
|
675
|
-
pageButton: (0,
|
|
662
|
+
pageButton: (0, import_system33.cva)([
|
|
676
663
|
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm font-medium transition-colors bg-background size-9",
|
|
677
|
-
"focus-visible:util-focus-ring",
|
|
664
|
+
"focus-visible:util-focus-ring outline-none",
|
|
678
665
|
"disabled:pointer-events-none disabled:bg-disabled disabled:text-disabled-foreground",
|
|
679
666
|
"[&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
680
667
|
"data-[selected=true]:border data-[selected=true]:border-input data-[selected=true]:shadow-xs",
|
|
681
|
-
"hover:bg-hover hover:text-hover-foreground"
|
|
668
|
+
"hover:bg-hover hover:text-hover-foreground",
|
|
669
|
+
"cursor-pointer"
|
|
682
670
|
]),
|
|
683
|
-
icon: (0,
|
|
671
|
+
icon: (0, import_system33.cva)("h-4 w-4")
|
|
684
672
|
};
|
|
685
673
|
|
|
686
674
|
// src/components/ProgressCycle.styles.ts
|
|
687
|
-
var
|
|
688
|
-
var ProgressCycle = (0,
|
|
675
|
+
var import_system34 = require("@marigold/system");
|
|
676
|
+
var ProgressCycle = (0, import_system34.cva)([
|
|
689
677
|
"stroke-foreground"
|
|
690
678
|
]);
|
|
691
679
|
|
|
692
680
|
// src/components/SectionMessage.styles.ts
|
|
693
|
-
var
|
|
681
|
+
var import_system35 = require("@marigold/system");
|
|
694
682
|
var SectionMessage = {
|
|
695
|
-
container: (0,
|
|
683
|
+
container: (0, import_system35.cva)(
|
|
696
684
|
[
|
|
697
685
|
'grid-cols-[min-content_auto_min-content] gap-x-4 gap-y-1 [grid-template-areas:"icon_title_close""icon_content_content"]',
|
|
698
686
|
"bg-background rounded-md border px-3 py-4"
|
|
@@ -711,8 +699,8 @@ var SectionMessage = {
|
|
|
711
699
|
}
|
|
712
700
|
}
|
|
713
701
|
),
|
|
714
|
-
title: (0,
|
|
715
|
-
content: (0,
|
|
702
|
+
title: (0, import_system35.cva)("text-sm font-medium"),
|
|
703
|
+
content: (0, import_system35.cva)("text-muted-foreground text-sm leading-5 font-normal", {
|
|
716
704
|
variants: {
|
|
717
705
|
variant: {
|
|
718
706
|
success: "text-success-muted-foreground",
|
|
@@ -725,7 +713,7 @@ var SectionMessage = {
|
|
|
725
713
|
variant: "info"
|
|
726
714
|
}
|
|
727
715
|
}),
|
|
728
|
-
icon: (0,
|
|
716
|
+
icon: (0, import_system35.cva)("h-6 w-6 align-baseline leading-none -mt-0.5", {
|
|
729
717
|
variants: {
|
|
730
718
|
variant: {
|
|
731
719
|
success: "text-success-muted-accent",
|
|
@@ -738,26 +726,23 @@ var SectionMessage = {
|
|
|
738
726
|
variant: "info"
|
|
739
727
|
}
|
|
740
728
|
}),
|
|
741
|
-
close: (0,
|
|
742
|
-
"
|
|
743
|
-
"
|
|
744
|
-
"
|
|
745
|
-
"-my-1.5 -me-2",
|
|
729
|
+
close: (0, import_system35.cva)([
|
|
730
|
+
"size-8 text-foreground",
|
|
731
|
+
"[&_svg]:size-6",
|
|
732
|
+
"-my-1.5 -me-2"
|
|
746
733
|
// align button with title
|
|
747
|
-
"focus-visible:util-focus-ring",
|
|
748
|
-
"[&_svg]:opacity-60 [&_svg]:transition-opacity hover:[&_svg]:opacity-100"
|
|
749
734
|
])
|
|
750
735
|
};
|
|
751
736
|
|
|
752
737
|
// src/components/Select.styles.ts
|
|
753
|
-
var
|
|
738
|
+
var import_system36 = require("@marigold/system");
|
|
754
739
|
var Select = {
|
|
755
|
-
icon: (0,
|
|
756
|
-
select: (0,
|
|
740
|
+
icon: (0, import_system36.cva)("text-muted-foreground/80"),
|
|
741
|
+
select: (0, import_system36.cva)([
|
|
757
742
|
inputContainer,
|
|
758
743
|
inputInvalid,
|
|
759
744
|
inputDisabled,
|
|
760
|
-
"focus-visible:util-focus-ring",
|
|
745
|
+
"focus-visible:util-focus-ring outline-none",
|
|
761
746
|
"h-input",
|
|
762
747
|
"cursor-pointer",
|
|
763
748
|
"*:data-placeholder:text-placeholder"
|
|
@@ -765,37 +750,37 @@ var Select = {
|
|
|
765
750
|
};
|
|
766
751
|
|
|
767
752
|
// src/components/Slider.styles.ts
|
|
768
|
-
var
|
|
753
|
+
var import_system37 = require("@marigold/system");
|
|
769
754
|
var Slider = {
|
|
770
|
-
container: (0,
|
|
771
|
-
track: (0,
|
|
755
|
+
container: (0, import_system37.cva)("*:aria-hidden:hidden"),
|
|
756
|
+
track: (0, import_system37.cva)([
|
|
772
757
|
"relative bg-muted rounded-lg flex w-full touch-none select-none items-center data-[orientation=vertical]:h-full data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col data-[disabled]:opacity-50"
|
|
773
758
|
]),
|
|
774
|
-
selectedTrack: (0,
|
|
759
|
+
selectedTrack: (0, import_system37.cva)([
|
|
775
760
|
"absolute bg-black data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full rounded-lg"
|
|
776
761
|
]),
|
|
777
|
-
thumb: (0,
|
|
762
|
+
thumb: (0, import_system37.cva)([
|
|
778
763
|
"block h-5 w-5 rounded-full border-2 border-primary bg-background transition-colors",
|
|
779
|
-
"focus-visible:util-focus-borderless-ring",
|
|
764
|
+
"focus-visible:util-focus-borderless-ring outline-none",
|
|
780
765
|
"disabled:cursor-not-allowed"
|
|
781
766
|
]),
|
|
782
|
-
output: (0,
|
|
767
|
+
output: (0, import_system37.cva)("text-text-base text-sm")
|
|
783
768
|
};
|
|
784
769
|
|
|
785
770
|
// src/components/Switch.styles.ts
|
|
786
|
-
var
|
|
771
|
+
var import_system38 = require("@marigold/system");
|
|
787
772
|
var Switch = {
|
|
788
|
-
container: (0,
|
|
773
|
+
container: (0, import_system38.cva)(
|
|
789
774
|
"disabled:cursor-not-allowed disabled:text-disabled-foreground"
|
|
790
775
|
),
|
|
791
|
-
track: (0,
|
|
776
|
+
track: (0, import_system38.cva)([
|
|
792
777
|
"inline-flex h-6 w-10 shrink-0 cursor-pointer items-center rounded-full",
|
|
793
778
|
"border-2 border-transparent",
|
|
794
779
|
"group-disabled/switch:bg-disabled group-disabled/switch:text-disabled-foreground group-selected/switch:group-disabled/switch:bg-disabled group-selected/switch:group-disabled/switch:text-disabled-foreground",
|
|
795
780
|
"group-selected/switch:bg-brand bg-input",
|
|
796
|
-
"group-focus-visible/switch:util-focus-borderless-ring"
|
|
781
|
+
"group-focus-visible/switch:util-focus-borderless-ring outline-none"
|
|
797
782
|
]),
|
|
798
|
-
thumb: (0,
|
|
783
|
+
thumb: (0, import_system38.cva)([
|
|
799
784
|
"pointer-events-none block size-5 rounded-full",
|
|
800
785
|
"bg-background shadow-sm shadow-black/5",
|
|
801
786
|
"ring-0 transition-transform duration-300 ease-[cubic-bezier(0.16,1,0.3,1)]",
|
|
@@ -804,9 +789,9 @@ var Switch = {
|
|
|
804
789
|
};
|
|
805
790
|
|
|
806
791
|
// src/components/Table.styles.ts
|
|
807
|
-
var
|
|
792
|
+
var import_system39 = require("@marigold/system");
|
|
808
793
|
var Table = {
|
|
809
|
-
table: (0,
|
|
794
|
+
table: (0, import_system39.cva)(
|
|
810
795
|
"text-sm [&_td]:border-border [&_th]:border-border border-separate border-spacing-0 [&_th]:border-b [&_tr]:border-none [&_tr:not(:last-child)_td]:border-b",
|
|
811
796
|
{
|
|
812
797
|
variants: {
|
|
@@ -817,9 +802,9 @@ var Table = {
|
|
|
817
802
|
}
|
|
818
803
|
}
|
|
819
804
|
),
|
|
820
|
-
thead: (0,
|
|
805
|
+
thead: (0, import_system39.cva)(
|
|
821
806
|
// for sticky header
|
|
822
|
-
"bg-background/90 top-0 z-
|
|
807
|
+
"bg-background/90 top-0 z-1 backdrop-blur-xs ",
|
|
823
808
|
{
|
|
824
809
|
variants: {
|
|
825
810
|
variant: {
|
|
@@ -829,7 +814,7 @@ var Table = {
|
|
|
829
814
|
}
|
|
830
815
|
}
|
|
831
816
|
),
|
|
832
|
-
headerRow: (0,
|
|
817
|
+
headerRow: (0, import_system39.cva)(["border-border border-b"], {
|
|
833
818
|
variants: {
|
|
834
819
|
variant: {
|
|
835
820
|
default: "",
|
|
@@ -840,7 +825,7 @@ var Table = {
|
|
|
840
825
|
variant: "default"
|
|
841
826
|
}
|
|
842
827
|
}),
|
|
843
|
-
header: (0,
|
|
828
|
+
header: (0, import_system39.cva)(
|
|
844
829
|
[
|
|
845
830
|
"h-12 px-3 align-middle font-medium text-muted-foreground last:text-right",
|
|
846
831
|
"focus-visible:outline-2 outline-offset-2 outline-ring/70"
|
|
@@ -857,8 +842,8 @@ var Table = {
|
|
|
857
842
|
}
|
|
858
843
|
}
|
|
859
844
|
),
|
|
860
|
-
body: (0,
|
|
861
|
-
row: (0,
|
|
845
|
+
body: (0, import_system39.cva)("[&_tr:last-child]:border-0"),
|
|
846
|
+
row: (0, import_system39.cva)(
|
|
862
847
|
[
|
|
863
848
|
"border-b border-border transition-colors",
|
|
864
849
|
"focus-visible:outline-2 outline-offset-2 outline-ring/70",
|
|
@@ -876,7 +861,7 @@ var Table = {
|
|
|
876
861
|
}
|
|
877
862
|
}
|
|
878
863
|
),
|
|
879
|
-
cell: (0,
|
|
864
|
+
cell: (0, import_system39.cva)(
|
|
880
865
|
[
|
|
881
866
|
"p-3 align-middle last:text-right",
|
|
882
867
|
"focus-visible:outline-2 outline-offset-2 outline-ring/70"
|
|
@@ -896,29 +881,32 @@ var Table = {
|
|
|
896
881
|
};
|
|
897
882
|
|
|
898
883
|
// src/components/Tabs.styles.ts
|
|
899
|
-
var
|
|
884
|
+
var import_system40 = require("@marigold/system");
|
|
900
885
|
var Tabs = {
|
|
901
|
-
container: (0,
|
|
902
|
-
tabsList: (0,
|
|
886
|
+
container: (0, import_system40.cva)("flex flex-col gap-2"),
|
|
887
|
+
tabsList: (0, import_system40.cva)([
|
|
903
888
|
"text-muted-foreground",
|
|
904
|
-
"flex items-center p-0.5 h-auto gap-2 border-b px-0 py-1"
|
|
889
|
+
"flex items-center p-0.5 h-auto gap-2 border-b border-border px-0 py-1"
|
|
905
890
|
]),
|
|
906
|
-
tab: (0,
|
|
891
|
+
tab: (0, import_system40.cva)([
|
|
907
892
|
"relative inline-flex items-center justify-center rounded-sm px-3 py-1.5 text-sm font-medium whitespace-nowrap transition-colors",
|
|
908
893
|
"[&_svg]:shrink-0",
|
|
909
|
-
"focus-visible:util-focus-ring",
|
|
894
|
+
"focus-visible:util-focus-ring outline-none",
|
|
910
895
|
"hover:bg-hover hover:text-foreground",
|
|
911
896
|
"disabled:pointer-events-none disabled:opacity-50",
|
|
912
897
|
"data-selected:text-foreground data-selected:hover:bg-hover",
|
|
913
898
|
"data-[selected=true]:after:bg-foreground after:absolute after:inset-x-0 after:bottom-0 after:-mb-1 after:h-0.5"
|
|
914
899
|
]),
|
|
915
|
-
tabpanel: (0,
|
|
900
|
+
tabpanel: (0, import_system40.cva)([
|
|
901
|
+
"py-4 rounded-sm",
|
|
902
|
+
"focus-visible:util-focus-ring outline-none"
|
|
903
|
+
])
|
|
916
904
|
};
|
|
917
905
|
|
|
918
906
|
// src/components/Tag.styles.ts
|
|
919
|
-
var
|
|
907
|
+
var import_system41 = require("@marigold/system");
|
|
920
908
|
var Tag = {
|
|
921
|
-
tag: (0,
|
|
909
|
+
tag: (0, import_system41.cva)([
|
|
922
910
|
"relative inline-flex items-center gap-[7px]",
|
|
923
911
|
"border border-solid border-input rounded-md",
|
|
924
912
|
"font-medium text-xs",
|
|
@@ -926,31 +914,29 @@ var Tag = {
|
|
|
926
914
|
"bg-background",
|
|
927
915
|
"data-selected:text-white data-selected:bg-brand",
|
|
928
916
|
"data-[disabled]:cursor-not-allowed data-[disabled]:text-disabled-foreground data-[disabled]:bg-disabled",
|
|
929
|
-
"focus-visible:util-focus-ring"
|
|
917
|
+
"focus-visible:util-focus-ring outline-none"
|
|
930
918
|
]),
|
|
931
|
-
closeButton: (0,
|
|
932
|
-
"size-4
|
|
933
|
-
"font-medium text-muted-foreground text-sm hover:text-brand rounded-md",
|
|
934
|
-
"p-0 transition-colors outline-0 cursor-pointer",
|
|
919
|
+
closeButton: (0, import_system41.cva)([
|
|
920
|
+
"size-4",
|
|
935
921
|
"disabled:bg-disabled disabled:text-disabled-foreground disabled:cursor-not-allowed"
|
|
936
922
|
]),
|
|
937
|
-
listItems: (0,
|
|
923
|
+
listItems: (0, import_system41.cva)("flex flex-wrap items-center gap-1")
|
|
938
924
|
};
|
|
939
925
|
|
|
940
926
|
// src/components/TextArea.styles.ts
|
|
941
|
-
var
|
|
942
|
-
var TextArea = (0,
|
|
927
|
+
var import_system42 = require("@marigold/system");
|
|
928
|
+
var TextArea = (0, import_system42.cva)([
|
|
943
929
|
inputContainer,
|
|
944
930
|
inputInvalid,
|
|
945
|
-
"focus
|
|
931
|
+
"focus:util-focus-ring outline-none",
|
|
946
932
|
inputDisabled,
|
|
947
933
|
inputReadOnly,
|
|
948
934
|
"invalid:text-destructive"
|
|
949
935
|
]);
|
|
950
936
|
|
|
951
937
|
// src/components/Text.styles.ts
|
|
952
|
-
var
|
|
953
|
-
var Text = (0,
|
|
938
|
+
var import_system43 = require("@marigold/system");
|
|
939
|
+
var Text = (0, import_system43.cva)("", {
|
|
954
940
|
variants: {
|
|
955
941
|
variant: {
|
|
956
942
|
muted: "text-muted-foreground"
|
|
@@ -979,9 +965,9 @@ var Text = (0, import_system41.cva)("", {
|
|
|
979
965
|
});
|
|
980
966
|
|
|
981
967
|
// src/components/Tooltip.styles.ts
|
|
982
|
-
var
|
|
968
|
+
var import_system44 = require("@marigold/system");
|
|
983
969
|
var Tooltip = {
|
|
984
|
-
container: (0,
|
|
970
|
+
container: (0, import_system44.cva)(
|
|
985
971
|
[
|
|
986
972
|
"text-brand-foreground bg-brand relative z-50 max-w-70 rounded-md border border-brand px-3 py-1.5 text-sm ",
|
|
987
973
|
"placement-top:mb-2",
|
|
@@ -1001,7 +987,7 @@ var Tooltip = {
|
|
|
1001
987
|
}
|
|
1002
988
|
}
|
|
1003
989
|
),
|
|
1004
|
-
arrow: (0,
|
|
990
|
+
arrow: (0, import_system44.cva)(
|
|
1005
991
|
[
|
|
1006
992
|
"fill-brand stroke-brand",
|
|
1007
993
|
// right
|
|
@@ -1026,19 +1012,13 @@ var Tooltip = {
|
|
|
1026
1012
|
};
|
|
1027
1013
|
|
|
1028
1014
|
// src/components/Underlay.styles.ts
|
|
1029
|
-
var
|
|
1030
|
-
var Underlay = (0,
|
|
1031
|
-
variants: {
|
|
1032
|
-
variant: {
|
|
1033
|
-
modal: " bg-black/80 backdrop-blur-sm"
|
|
1034
|
-
}
|
|
1035
|
-
}
|
|
1036
|
-
});
|
|
1015
|
+
var import_system45 = require("@marigold/system");
|
|
1016
|
+
var Underlay = (0, import_system45.cva)("bg-black/80 px-4");
|
|
1037
1017
|
|
|
1038
1018
|
// src/components/XLoader.styles.ts
|
|
1039
|
-
var
|
|
1019
|
+
var import_system46 = require("@marigold/system");
|
|
1040
1020
|
var XLoader = {
|
|
1041
|
-
container: (0,
|
|
1021
|
+
container: (0, import_system46.cva)("grid place-items-center text-brand", {
|
|
1042
1022
|
variants: {
|
|
1043
1023
|
variant: {
|
|
1044
1024
|
default: "",
|
|
@@ -1055,7 +1035,7 @@ var XLoader = {
|
|
|
1055
1035
|
size: "default"
|
|
1056
1036
|
}
|
|
1057
1037
|
}),
|
|
1058
|
-
loader: (0,
|
|
1038
|
+
loader: (0, import_system46.cva)("size-full", {
|
|
1059
1039
|
variants: {
|
|
1060
1040
|
variant: {
|
|
1061
1041
|
default: "",
|
|
@@ -1072,7 +1052,7 @@ var XLoader = {
|
|
|
1072
1052
|
size: "default"
|
|
1073
1053
|
}
|
|
1074
1054
|
}),
|
|
1075
|
-
label: (0,
|
|
1055
|
+
label: (0, import_system46.cva)("text-current text-sm")
|
|
1076
1056
|
};
|
|
1077
1057
|
|
|
1078
1058
|
// src/theme.ts
|