@marigold/theme-rui 5.0.1 → 5.2.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.cjs CHANGED
@@ -1,7 +1,7 @@
1
- Object.defineProperty(exports, '__esModule', { value: true });
2
- //#region rolldown:runtime
1
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
2
+ //#region \0rolldown/runtime.js
3
3
  var __defProp = Object.defineProperty;
4
- var __export = (all, symbols) => {
4
+ var __exportAll = (all, no_symbols) => {
5
5
  let target = {};
6
6
  for (var name in all) {
7
7
  __defProp(target, name, {
@@ -9,92 +9,106 @@ var __export = (all, symbols) => {
9
9
  enumerable: true
10
10
  });
11
11
  }
12
- if (symbols) {
12
+ if (!no_symbols) {
13
13
  __defProp(target, Symbol.toStringTag, { value: "Module" });
14
14
  }
15
15
  return target;
16
16
  };
17
17
 
18
18
  //#endregion
19
- let __marigold_system = require("@marigold/system");
19
+ let _marigold_system = require("@marigold/system");
20
20
 
21
21
  //#region src/components/Accordion.styles.ts
22
22
  const Accordion = {
23
- container: (0, __marigold_system.cva)("flex-col", {
23
+ container: (0, _marigold_system.cva)({
24
+ base: "flex-col",
24
25
  variants: { variant: {
25
26
  default: "",
26
27
  card: "space-y-2"
27
28
  } },
28
29
  defaultVariants: { variant: "default" }
29
30
  }),
30
- item: (0, __marigold_system.cva)("", {
31
+ item: (0, _marigold_system.cva)({
31
32
  variants: { variant: {
32
33
  default: ["bg-background border-b last:border-b-0 border-border"],
33
34
  card: ["ui-surface shadow-elevation-raised py-1 outline-none", "has-[[slot=trigger]:focus-visible]:ui-state-focus outline-none"]
34
35
  } },
35
36
  defaultVariants: { variant: "default" }
36
37
  }),
37
- header: (0, __marigold_system.cva)([
38
- "flex w-full items-center justify-between gap-4 py-2 rounded-md cursor-pointer text-foreground",
39
- "text-left text-base font-semibold leading-6 transition-all",
40
- "hover:no-underline",
41
- "disabled:cursor-not-allowed disabled:text-disabled-foreground"
42
- ], {
38
+ header: (0, _marigold_system.cva)({
39
+ base: [
40
+ "flex w-full items-center justify-between gap-4 py-2 rounded-md cursor-pointer text-foreground",
41
+ "text-left text-base font-semibold leading-6 transition-all",
42
+ "hover:no-underline",
43
+ "disabled:cursor-not-allowed disabled:text-disabled-foreground"
44
+ ],
43
45
  variants: { variant: {
44
46
  default: "focus-visible:ui-state-focus outline-none",
45
47
  card: "px-4 outline-none"
46
48
  } },
47
49
  defaultVariants: { variant: "default" }
48
50
  }),
49
- panel: (0, __marigold_system.cva)("overflow-clip h-(--disclosure-panel-height) transition-[height,padding] duration-250"),
50
- content: (0, __marigold_system.cva)("pb-2", { variants: { variant: {
51
- default: "",
52
- card: "px-4"
53
- } } }),
54
- icon: (0, __marigold_system.cva)("pointer-events-none shrink-0 opacity-60 transition-transform duration-250")
51
+ panel: (0, _marigold_system.cva)({ base: "overflow-clip h-(--disclosure-panel-height) transition-[height,padding] duration-250" }),
52
+ content: (0, _marigold_system.cva)({
53
+ base: "pb-2",
54
+ variants: { variant: {
55
+ default: "",
56
+ card: "px-4"
57
+ } }
58
+ }),
59
+ icon: (0, _marigold_system.cva)({ base: "pointer-events-none shrink-0 text-muted-foreground transition-transform duration-250" })
55
60
  };
56
61
 
57
62
  //#endregion
58
63
  //#region src/components/ActionBar.styles.ts
59
64
  const ActionBar = {
60
- container: (0, __marigold_system.cva)([
65
+ container: (0, _marigold_system.cva)({ base: [
61
66
  "relative w-fit",
62
- "flex items-center justify-between justify-items-center gap-4",
67
+ "flex items-center justify-between justify-items-center gap-16",
63
68
  "px-6 py-3",
64
- "shadow-lg",
65
- "bg-brand text-brand-foreground border-brand",
66
- "rounded-lg font-medium transition-colors",
67
- "focus-visible:util-focus-ring outline-none disabled:util-disabled",
68
- "[&_svg]:pointer-events-none [&_svg]:shrink-0"
69
- ]),
70
- count: (0, __marigold_system.cva)([
69
+ "shadow-elevation-overlay",
70
+ "ui-surface-contrast",
71
+ "rounded-full font-medium",
72
+ "focus-visible:ui-state-focus outline-none disabled:ui-state-disabled",
73
+ "[&_svg]:pointer-events-none [&_svg]:shrink-0",
74
+ "entering:animate-slide-in",
75
+ "exiting:animate-slide-out"
76
+ ] }),
77
+ selection: (0, _marigold_system.cva)({ base: "flex items-center gap-1" }),
78
+ count: (0, _marigold_system.cva)({ base: "flex items-center text-sm font-medium whitespace-nowrap" }),
79
+ toolbar: (0, _marigold_system.cva)({ base: [
71
80
  "flex items-center",
72
- "text-sm font-medium",
73
- "whitespace-nowrap"
74
- ]),
75
- actions: (0, __marigold_system.cva)([
76
- "flex items-center gap-2",
77
81
  "flex-1 justify-center",
78
- "overflow-x-auto"
79
- ]),
80
- clearButton: (0, __marigold_system.cva)([
81
- "shrink-0",
82
- "size-8",
83
- "transition-colors"
84
- ])
82
+ "overflow-x-auto",
83
+ "p-1 -m-1"
84
+ ] }),
85
+ clearButton: (0, _marigold_system.cva)({ base: [
86
+ "inline-flex items-center justify-center",
87
+ "shrink-0 size-8 rounded-full cursor-pointer transition-colors",
88
+ "hover:bg-current/10",
89
+ "focus-visible:ui-state-focus outline-none",
90
+ "disabled:ui-state-disabled",
91
+ "[&_svg]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0"
92
+ ] }),
93
+ actionButton: (0, _marigold_system.cva)({ base: [
94
+ "ui-button-base",
95
+ "hover:bg-current/10",
96
+ "text-sm h-button p-squish-relaxed [&_svg]:size-4"
97
+ ] })
85
98
  };
86
99
 
87
100
  //#endregion
88
101
  //#region src/components/Autocomplete.styles.ts
89
- const Autocomplete = { mobileTrigger: (0, __marigold_system.cva)("group/input relative flex items-center") };
102
+ const Autocomplete = { mobileTrigger: (0, _marigold_system.cva)({ base: "group/input relative flex items-center" }) };
90
103
 
91
104
  //#endregion
92
105
  //#region src/components/Badge.styles.ts
93
- const Badge = (0, __marigold_system.cva)([
94
- "inline-flex items-center justify-center rounded-full px-2 text-xs font-medium leading-normal transition-colors",
95
- "focus-visible:state-focus outline-none",
96
- "has-[svg]:gap-1"
97
- ], {
106
+ const Badge = (0, _marigold_system.cva)({
107
+ base: [
108
+ "inline-flex items-center justify-center rounded-full px-2 text-xs font-medium leading-normal transition-colors",
109
+ "focus-visible:ui-state-focus outline-none",
110
+ "has-[svg]:gap-1"
111
+ ],
98
112
  variants: { variant: {
99
113
  default: "bg-muted text-foreground border border-border",
100
114
  primary: "bg-brand text-brand-foreground ",
@@ -110,31 +124,24 @@ const Badge = (0, __marigold_system.cva)([
110
124
 
111
125
  //#endregion
112
126
  //#region src/components/Button.styles.ts
113
- const buttonBase = [
114
- "inline-flex items-center justify-center gap-2",
115
- "whitespace-nowrap rounded-surface font-medium transition-[color,box-shadow,transform]",
116
- "[&_svg]:pointer-events-none [&_svg]:shrink-0",
117
- "focus-visible:ui-state-focus outline-none disabled:ui-state-disabled",
118
- "cursor-pointer"
119
- ];
120
- const Button = (0, __marigold_system.cva)([
121
- ...buttonBase,
122
- "duration-150 active:scale-[0.97] pressed:not-expanded:scale-[0.97]",
123
- "pending:text-disabled-foreground pending:bg-disabled pending:cursor-not-allowed pending:border-none"
124
- ], {
127
+ const Button = (0, _marigold_system.cva)({
128
+ base: [
129
+ "ui-button-base gap-2",
130
+ "duration-150 active:scale-[0.97] pressed:not-aria-expanded:scale-[0.97]",
131
+ "pending:ui-state-disabled"
132
+ ],
125
133
  variants: {
126
134
  variant: {
127
- primary: "bg-brand text-brand-foreground hover:bg-brand/90",
135
+ primary: ["ui-surface-contrast", "hover:[--ui-background-color:oklch(from_var(--color-brand)_calc(l-0.05)_c_h)]"],
128
136
  secondary: [
129
137
  "ui-surface shadow-elevation-border",
130
138
  "hover:[--ui-background-color:var(--color-hover)] hover:text-foreground",
131
- "disabled:border-0 disabled:shadow-none disabled:[--ui-background-color:var(--color-disabled)]",
132
139
  "expanded:[--ui-background-color:var(--color-hover)]"
133
140
  ],
134
- ghost: "hover:bg-hover hover:text-foreground",
141
+ ghost: "hover:bg-current/10",
135
142
  destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
136
- "destructive-ghost": "text-destructive hover:bg-destructive/10",
137
- link: "text-link util-touch-hitbox"
143
+ "destructive-ghost": "text-destructive hover:bg-current/8",
144
+ link: "text-link ui-touch-hitbox"
138
145
  },
139
146
  size: {
140
147
  default: "text-sm",
@@ -207,9 +214,10 @@ const Button = (0, __marigold_system.cva)([
207
214
 
208
215
  //#endregion
209
216
  //#region src/components/Card.styles.ts
210
- const Card = (0, __marigold_system.cva)(["p-4 rounded-md"], {
217
+ const Card = (0, _marigold_system.cva)({
218
+ base: ["p-4 rounded-md shadow-elevation-raised"],
211
219
  variants: { variant: {
212
- default: "ui-surface shadow-elevation-raised",
220
+ default: "ui-surface",
213
221
  master: "bg-access-master/30 border border-access-master",
214
222
  admin: "bg-access-admin/30 border border-access-admin"
215
223
  } },
@@ -219,34 +227,34 @@ const Card = (0, __marigold_system.cva)(["p-4 rounded-md"], {
219
227
  //#endregion
220
228
  //#region src/components/Checkbox.styles.ts
221
229
  const Checkbox = {
222
- checkbox: (0, __marigold_system.cva)([
230
+ checkbox: (0, _marigold_system.cva)({ base: [
223
231
  "grid size-4 shrink-0 place-content-center rounded",
224
232
  "border border-input shadow-xs",
225
233
  "group-focus-visible/checkbox:ui-state-focus group-focus-visible/checkbox:border-(--ui-border-color) outline-none",
226
234
  "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",
227
235
  "group-selected/checkbox:border-brand group-selected/checkbox:bg-brand group-selected/checkbox:text-brand-foreground",
228
236
  "group-[indeterminate]/checkbox:border-brand group-[indeterminate]/checkbox:bg-brand group-[indeterminate]/checkbox:text-brand-foreground"
229
- ]),
230
- container: (0, __marigold_system.cva)("cursor-pointer read-only:cursor-default gap-2"),
231
- label: (0, __marigold_system.cva)([
237
+ ] }),
238
+ container: (0, _marigold_system.cva)({ base: "cursor-pointer read-only:cursor-default gap-2" }),
239
+ label: (0, _marigold_system.cva)({ base: [
232
240
  "flex items-center gap-1",
233
241
  "text-sm leading-4 group-[&]/checkboxgroup:font-normal font-medium text-foreground",
234
242
  "group-disabled/checkbox:text-disabled-foreground"
235
- ]),
236
- group: (0, __marigold_system.cva)("flex flex-col gap-1")
243
+ ] }),
244
+ group: (0, _marigold_system.cva)({ base: "flex flex-col gap-1" })
237
245
  };
238
246
 
239
247
  //#endregion
240
248
  //#region src/components/Calendar.styles.ts
241
249
  const Calendar = {
242
- calendar: (0, __marigold_system.cva)([
250
+ calendar: (0, _marigold_system.cva)({ base: [
243
251
  "ui-surface shadow-elevation-border p-2",
244
252
  "group-data-trigger/popover:shadow-elevation-overlay",
245
253
  "group-[[role=dialog]]/tray:shadow-none group-[[role=dialog]]/tray:border-0 group-[[role=dialog]]/tray:p-0 group-[[role=dialog]]/tray:place-self-center"
246
- ]),
247
- calendarContainer: (0, __marigold_system.cva)("flex gap-4"),
248
- calendarMonth: (0, __marigold_system.cva)("min-w-[250px] flex-1"),
249
- calendarCell: (0, __marigold_system.cva)([
254
+ ] }),
255
+ calendarContainer: (0, _marigold_system.cva)({ base: "flex gap-4" }),
256
+ calendarMonth: (0, _marigold_system.cva)({ base: "min-w-[250px] flex-1" }),
257
+ calendarCell: (0, _marigold_system.cva)({ base: [
250
258
  "relative flex size-9 items-center justify-center whitespace-nowrap rounded-lg justify-self-center",
251
259
  "border border-transparent p-0 text-sm font-normal text-foreground",
252
260
  "outline-offset-2 duration-150 transition-all",
@@ -256,67 +264,67 @@ const Calendar = {
256
264
  "disabled:pointer-events-none disabled:opacity-30",
257
265
  "unavailable:pointer-events-none unavailable:opacity-30 unavailable:line-through",
258
266
  "outside-month:hidden"
259
- ]),
260
- calendarControllers: (0, __marigold_system.cva)([
267
+ ] }),
268
+ calendarControllers: (0, _marigold_system.cva)({ base: [
261
269
  "size-9 rounded-lg",
262
- "text-muted-foreground/80",
270
+ "text-muted-foreground",
263
271
  "transition-colors",
264
272
  "focus-visible:ui-state-focus outline-none"
265
- ]),
266
- calendarHeader: (0, __marigold_system.cva)(["size-9 rounded-lg p-0 text-xs font-medium text-muted-foreground/80"]),
267
- calendarGrid: (0, __marigold_system.cva)("[&_td]:p-2 [&_td]:group-[[role=dialog]]/tray:p-0.75"),
268
- calendarListboxButton: (0, __marigold_system.cva)([
273
+ ] }),
274
+ calendarHeader: (0, _marigold_system.cva)({ base: ["size-9 rounded-lg p-0 text-xs font-medium text-muted-foreground"] }),
275
+ calendarGrid: (0, _marigold_system.cva)({ base: "[&_td]:p-2 [&_td]:group-[[role=dialog]]/tray:p-0.75" }),
276
+ calendarListboxButton: (0, _marigold_system.cva)({ base: [
269
277
  "rounded-md text-sm font-medium transition-[color,box-shadow]",
270
278
  "px-4 py-2",
271
279
  "focus-visible:ui-state-focus outline-none",
272
280
  "cursor-pointer",
273
281
  "hover:bg-hover",
274
282
  "aria-selected:bg-brand aria-selected:text-brand-foreground aria-selected:shadow-xs aria-selected:hover:bg-brand/90"
275
- ]),
276
- select: (0, __marigold_system.cva)([
277
- "[&svg]:text-muted-foreground/80",
283
+ ] }),
284
+ select: (0, _marigold_system.cva)({ base: [
285
+ "[&svg]:text-muted-foreground",
278
286
  "flex w-full px-3 py-2 rounded-lg shadow-xs border border-input bg-background text-sm text-foreground transition-shadow",
279
287
  "focus-visible:ui-state-focus outline-none",
280
288
  "h-input",
281
289
  "disabled:cursor-not-allowed disabled:text-disabled-foreground disabled:bg-disabled",
282
290
  "cursor-pointer"
283
- ])
291
+ ] })
284
292
  };
285
293
 
286
294
  //#endregion
287
295
  //#region src/components/CloseButton.styles.ts
288
- const CloseButton = (0, __marigold_system.cva)([
296
+ const CloseButton = (0, _marigold_system.cva)({ base: [
289
297
  "flex items-center justify-center whitespace-nowrap",
290
298
  "cursor-pointer",
291
- "transition-[color,box-shadow]",
299
+ "transition-[color,box-shadow,transform]",
292
300
  "focus-visible:ui-state-focus outline-none",
293
301
  "rounded-full",
294
- "duration-150 active:scale-[0.97] pressed:scale-[0.97] transition-transform",
302
+ "ui-press",
295
303
  "[&_svg]:size-4 [&_svg]:opacity-60 [&_svg]:transition-opacity hover:[&_svg]:opacity-100"
296
- ]);
304
+ ] });
297
305
 
298
306
  //#endregion
299
307
  //#region src/components/ComboBox.styles.ts
300
308
  const ComboBox = {
301
- icon: (0, __marigold_system.cva)("text-muted-foreground/80 right-2"),
302
- mobileTrigger: (0, __marigold_system.cva)("group/input relative flex items-center")
309
+ icon: (0, _marigold_system.cva)({ base: "text-muted-foreground/80 right-2" }),
310
+ mobileTrigger: (0, _marigold_system.cva)({ base: "group/input relative flex items-center" })
303
311
  };
304
312
 
305
313
  //#endregion
306
314
  //#region src/components/Collapsible.styles.ts
307
315
  const Collapsible = {
308
- container: (0, __marigold_system.cva)(),
309
- trigger: (0, __marigold_system.cva)([
310
- "inline-flex gap-2 whitespace-nowrap rounded-md font-medium transition-[color,box-shadow,transform]",
311
- "duration-150 active:scale-[0.97] pressed:scale-[0.97]",
312
- "[&_svg]:pointer-events-none [&_svg]:shrink-0",
313
- "focus-visible:ui-state-focus outline-none disabled:ui-state-disabled",
314
- "cursor-pointer"
315
- ], {
316
+ container: (0, _marigold_system.cva)({}),
317
+ trigger: (0, _marigold_system.cva)({
318
+ base: [
319
+ "inline-flex gap-2 whitespace-nowrap rounded-md font-medium transition-[color,box-shadow,transform]",
320
+ "ui-interactive",
321
+ "ui-press",
322
+ "[&_svg]:pointer-events-none [&_svg]:shrink-0"
323
+ ],
316
324
  variants: {
317
325
  variant: {
318
326
  default: "",
319
- link: "text-link util-touch-hitbox"
327
+ link: "text-link ui-touch-hitbox"
320
328
  },
321
329
  size: { default: "text-sm" }
322
330
  },
@@ -325,19 +333,20 @@ const Collapsible = {
325
333
  size: "default"
326
334
  }
327
335
  }),
328
- content: (0, __marigold_system.cva)()
336
+ content: (0, _marigold_system.cva)({})
329
337
  };
330
338
 
331
339
  //#endregion
332
340
  //#region src/components/ContextualHelp.styles.ts
333
341
  const ContextualHelp = {
334
- trigger: (0, __marigold_system.cva)([
335
- "inline-flex items-center justify-center rounded-full transition-[color,box-shadow]",
336
- "hover:util-focus-ring hover:text-foreground",
337
- "[&_svg]:pointer-events-none [&_svg]:shrink-0",
338
- "focus-visible:ui-state-focus outline-none",
339
- "cursor-pointer util-touch-hitbox"
340
- ], {
342
+ trigger: (0, _marigold_system.cva)({
343
+ base: [
344
+ "inline-flex items-center justify-center rounded-full transition-[color,box-shadow]",
345
+ "hover:ui-state-focus hover:text-foreground",
346
+ "[&_svg]:pointer-events-none [&_svg]:shrink-0",
347
+ "focus-visible:ui-state-focus outline-none",
348
+ "cursor-pointer ui-touch-hitbox"
349
+ ],
341
350
  variants: {
342
351
  variant: {
343
352
  help: "",
@@ -347,73 +356,75 @@ const ContextualHelp = {
347
356
  },
348
357
  defaultVariants: { size: "default" }
349
358
  }),
350
- container: (0, __marigold_system.cva)([
359
+ container: (0, _marigold_system.cva)({ base: [
351
360
  "outline-none",
352
- "ui-surface shadow-elevation-overlay util-scrollbar",
361
+ "ui-surface shadow-elevation-overlay ui-scrollbar",
353
362
  "p-5",
354
363
  "data-small:max-w-3xs data-medium:max-w-xs data-large:max-w-md"
355
- ]),
356
- title: (0, __marigold_system.cva)("text-lg font-semibold mb-1"),
357
- content: (0, __marigold_system.cva)("text-sm")
364
+ ] }),
365
+ title: (0, _marigold_system.cva)({ base: "text-lg font-semibold mb-1" }),
366
+ content: (0, _marigold_system.cva)({ base: "text-sm" })
358
367
  };
359
368
 
360
369
  //#endregion
361
370
  //#region src/components/DateField.styles.ts
362
371
  const DateField = {
363
- field: (0, __marigold_system.cva)([
372
+ field: (0, _marigold_system.cva)({ base: [
364
373
  "ui-surface shadow-elevation-border h-input",
365
374
  "flex items-center",
366
375
  "disabled:ui-state-disabled",
367
376
  "group-read-only/field:ui-state-readonly",
368
377
  "has-focus:ui-state-focus",
369
378
  "has-invalid:ui-state-error has-focus:has-invalid:ring-destructive/20"
370
- ]),
371
- input: (0, __marigold_system.cva)(["ui-input", "cursor-text"]),
372
- segment: (0, __marigold_system.cva)([
373
- "inline rounded p-0.5 text-foreground caret-transparent outline-0 type-literal:px-0 data-focused:data-placeholder:text-foreground data-focused:text-foreground type-literal:text-placeholder",
379
+ ] }),
380
+ input: (0, _marigold_system.cva)({ base: ["ui-input", "cursor-text"] }),
381
+ segment: (0, _marigold_system.cva)({ base: [
382
+ "group/segment inline rounded leading-none whitespace-pre p-0.5 outline-0 caret-transparent",
383
+ "text-foreground",
384
+ "data-placeholder:text-placeholder type-literal:text-placeholder type-literal:px-0",
385
+ "data-focused:bg-stone-300 data-focused:text-foreground data-focused:data-placeholder:text-foreground",
374
386
  "disabled:cursor-not-allowed disabled:text-disabled-foreground disabled:bg-disabled",
375
- "data-focused:bg-focus",
376
387
  "data-placeholder:disabled:text-disabled-foreground",
377
- "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",
378
- "group/segment",
379
- "outline-0",
380
- "whitespace-pre",
381
- "data-placeholder:text-placeholder text-foreground data-focused:bg-focus data-focused:text-foreground rounded leading-none"
382
- ]),
383
- action: (0, __marigold_system.cva)("fill-muted-foreground disabled:text-disabled-foreground group-invalid/field:fill-destructive")
388
+ "invalid:text-destructive invalid:data-focused:bg-destructive invalid:data-focused:text-destructive-foreground invalid:data-focused:data-placeholder:text-destructive-foreground"
389
+ ] }),
390
+ action: (0, _marigold_system.cva)({ base: "fill-muted-foreground disabled:text-disabled-foreground group-invalid/field:fill-destructive" })
384
391
  };
385
392
 
386
393
  //#endregion
387
394
  //#region src/components/DatePicker.styles.ts
388
- const DatePicker = (0, __marigold_system.cva)([
395
+ const DatePicker = (0, _marigold_system.cva)({ base: [
389
396
  "h-input pr-3",
390
- "text-muted-foreground/80",
397
+ "text-muted-foreground",
391
398
  "hover:text-brand",
392
399
  "disabled:cursor-not-allowed",
393
- "util-touch-hitbox"
394
- ]);
400
+ "ui-touch-hitbox"
401
+ ] });
395
402
 
396
403
  //#endregion
397
404
  //#region src/components/Dialog.styles.ts
398
405
  const Dialog = {
399
- closeButton: (0, __marigold_system.cva)(["absolute top-6 right-3", "size-7 "]),
400
- container: (0, __marigold_system.cva)(["flex flex-col gap-0 rounded-xl p-6 overflow-y-auto", "ui-surface shadow-elevation-overlay util-scrollbar"], { variants: {
401
- variant: {},
402
- size: {
403
- xsmall: "",
404
- small: "",
405
- medium: ""
406
+ closeButton: (0, _marigold_system.cva)({ base: ["absolute top-6 right-3", "size-7 "] }),
407
+ container: (0, _marigold_system.cva)({
408
+ base: ["flex flex-col gap-0 rounded-xl p-6 overflow-y-auto", "ui-surface shadow-elevation-overlay ui-scrollbar"],
409
+ variants: {
410
+ variant: {},
411
+ size: {
412
+ xsmall: "",
413
+ small: "",
414
+ medium: ""
415
+ }
406
416
  }
407
- } }),
408
- header: (0, __marigold_system.cva)("flex flex-col gap-1 text-center sm:text-left"),
409
- title: (0, __marigold_system.cva)("text-lg font-semibold mb-1"),
410
- content: (0, __marigold_system.cva)("text-muted-foreground text-sm"),
411
- actions: (0, __marigold_system.cva)("flex flex-col-reverse gap-3 sm:flex-row sm:justify-end mt-4")
417
+ }),
418
+ header: (0, _marigold_system.cva)({ base: "flex flex-col gap-1 text-center sm:text-left" }),
419
+ title: (0, _marigold_system.cva)({ base: "text-lg font-semibold mb-1" }),
420
+ content: (0, _marigold_system.cva)({ base: "text-muted-foreground text-sm" }),
421
+ actions: (0, _marigold_system.cva)({ base: "flex flex-col-reverse gap-3 sm:flex-row sm:justify-end mt-4" })
412
422
  };
413
423
 
414
424
  //#endregion
415
425
  //#region src/components/Divider.styles.ts
416
- const Divider = (0, __marigold_system.cva)("bg-border h-px w-full", {
426
+ const Divider = (0, _marigold_system.cva)({
427
+ base: "bg-border h-px w-full",
417
428
  variants: { variant: {
418
429
  default: "",
419
430
  bold: "h-0.5"
@@ -424,47 +435,49 @@ const Divider = (0, __marigold_system.cva)("bg-border h-px w-full", {
424
435
  //#endregion
425
436
  //#region src/components/Drawer.styles.ts
426
437
  const Drawer = {
427
- overlay: (0, __marigold_system.cva)([
438
+ overlay: (0, _marigold_system.cva)({ base: [
428
439
  "group/overlay",
429
- "placement-top:w-full placement-top:entering:animate-slide-in-top placement-top:exiting:animate-slide-out-top placement-top:top-0 placement-top:left-0",
430
- "placement-bottom:w-full placement-bottom:entering:animate-slide-in-bottom placement-bottom:exiting:animate-slide-out-bottom placement-bottom:bottom-0 placement-bottom:left-0",
431
- "placement-left:entering:animate-slide-in-left placement-left:exiting:animate-slide-out-left placement-left:top-0 placement-left:left-0",
432
- "placement-right:entering:animate-slide-in-right placement-right:exiting:animate-slide-out-right placement-right:top-0 placement-right:right-0"
433
- ]),
434
- container: (0, __marigold_system.cva)([
435
- "w-full relative grid-rows-[auto_1fr_auto]",
436
- "bg-surface border-surface-border shadow-elevation-overlay util-scrollbar",
437
- "placement-right:border-l placement-left:border-r placement-top:border-b placement-bottom:border-t",
438
- "placement-top:w-full placement-bottom:w-full"
439
- ], { variants: { size: {
440
- xsmall: "w-64 placement-top:sm:h-48 placement-bottom:sm:h-48",
441
- small: "w-72 placement-top:sm:h-64 placement-bottom:sm:h-64",
442
- medium: "w-96 placement-top:sm:h-80 placement-bottom:sm:h-80"
443
- } } }),
444
- closeButton: (0, __marigold_system.cva)(["absolute top-3.5 right-3", "size-7"]),
445
- header: (0, __marigold_system.cva)("border-border border-b px-6 py-4"),
446
- title: (0, __marigold_system.cva)("font-semibold text-base"),
447
- content: (0, __marigold_system.cva)("px-6 py-4 overflow-y-auto outline-none"),
448
- actions: (0, __marigold_system.cva)("flex flex-row gap-3 justify-end border-border border-t px-6 py-4")
440
+ "[--slide-offset:1rem]",
441
+ "inset-y-4 right-4 entering:animate-slide-in-right exiting:animate-slide-out-right"
442
+ ] }),
443
+ container: (0, _marigold_system.cva)({
444
+ base: [
445
+ "w-full relative grid-rows-[auto_1fr_auto]",
446
+ "rounded-xl ui-surface util-scrollbar",
447
+ "shadow-[var(--shadow-elevation-overlay),0_0_3px_1px_oklch(0_0_0/0.06)]",
448
+ "[--ui-border-color:oklch(from_var(--color-surface-border)_calc(l-0.1)_c_h)]",
449
+ "h-full"
450
+ ],
451
+ variants: { size: {
452
+ xsmall: "w-64",
453
+ small: "w-72",
454
+ medium: "w-96"
455
+ } }
456
+ }),
457
+ closeButton: (0, _marigold_system.cva)({ base: ["absolute top-3.5 right-3", "size-7"] }),
458
+ header: (0, _marigold_system.cva)({ base: "ui-panel-header" }),
459
+ title: (0, _marigold_system.cva)({ base: "font-semibold text-base" }),
460
+ content: (0, _marigold_system.cva)({ base: "px-6 py-4 overflow-y-auto outline-none" }),
461
+ actions: (0, _marigold_system.cva)({ base: "ui-panel-actions" })
449
462
  };
450
463
 
451
464
  //#endregion
452
465
  //#region src/components/EmptyState.styles.ts
453
466
  const EmptyState = {
454
- container: (0, __marigold_system.cva)(["mx-auto flex max-w-sm flex-col items-center p-6"]),
455
- title: (0, __marigold_system.cva)(["text-lg"]),
456
- description: (0, __marigold_system.cva)(["text-muted-foreground text-sm text-center"]),
457
- action: (0, __marigold_system.cva)(["mt-6"])
467
+ container: (0, _marigold_system.cva)({ base: ["mx-auto flex max-w-sm flex-col items-center p-6"] }),
468
+ title: (0, _marigold_system.cva)({ base: ["text-lg"] }),
469
+ description: (0, _marigold_system.cva)({ base: ["text-muted-foreground text-sm text-center"] }),
470
+ action: (0, _marigold_system.cva)({ base: ["mt-6"] })
458
471
  };
459
472
 
460
473
  //#endregion
461
474
  //#region src/components/IconButton.styles.ts
462
- const IconButton = (0, __marigold_system.cva)("", { variants: { variant: { 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" } } });
475
+ const IconButton = (0, _marigold_system.cva)({ variants: { variant: { navigation: "ui-button-base text-sm hover:bg-current/8 h-9 py-2 px-2.5 disabled:pointer-events-none" } } });
463
476
 
464
477
  //#endregion
465
478
  //#region src/components/Input.styles.ts
466
479
  const Input = {
467
- input: (0, __marigold_system.cva)([
480
+ input: (0, _marigold_system.cva)({ base: [
468
481
  "ui-surface shadow-elevation-border ui-input",
469
482
  "disabled:ui-state-disabled",
470
483
  "group-read-only/field:ui-state-readonly",
@@ -473,29 +486,25 @@ const Input = {
473
486
  "group-read-only/field:cursor-default",
474
487
  "group-data-icon/input:pl-8",
475
488
  "group-data-action/input:pr-7",
476
- "[&[type=file]]:cursor-pointer [&[type=file]]:border-solid [&[type=file]]:bg-background [&[type=file]]:h-[calc(var(--spacing-input)-2px)] [&[type=file]]:pl-0 [&[type=file]]:pr-3 [&[type=file]]:italic [&[type=file]]:text-muted-foreground/70",
489
+ "[&[type=file]]:cursor-pointer [&[type=file]]:border-solid [&[type=file]]:bg-background [&[type=file]]:h-[calc(var(--spacing-input)-2px)] [&[type=file]]:pl-0 [&[type=file]]:pr-3 [&[type=file]]:italic [&[type=file]]:text-muted-foreground",
477
490
  "file:cursor-pointer file:me-3 file:h-full file:border-0 file:border-r file:border-solid file:border-input file:bg-transparent file:px-3 file:text-sm file:font-medium file:not-italic file:text-foreground",
478
491
  "[&[type=color]]:h-input",
479
492
  "[&::-webkit-color-swatch-wrapper]:p-0",
480
493
  "[&::-webkit-color-swatch]:p-2 [&::-moz-color-swatch]:p-2",
481
494
  "[&::-webkit-color-swatch]:rounded-[inherit] [&::-moz-color-swatch]:rounded-[inherit]",
482
495
  "[&::-webkit-color-swatch]:border-0 [&::-moz-color-swatch]:border-0"
483
- ]),
484
- icon: (0, __marigold_system.cva)([
485
- "pointer-events-none left-2.5",
486
- "text-muted-foreground disabled:text-disabled-foreground",
487
- "disabled:text-gray-50"
488
- ]),
489
- action: (0, __marigold_system.cva)(["text-muted-foreground pr-1 right-2"])
496
+ ] }),
497
+ icon: (0, _marigold_system.cva)({ base: ["pointer-events-none left-2.5", "text-muted-foreground disabled:text-disabled-foreground"] }),
498
+ action: (0, _marigold_system.cva)({ base: ["text-muted-foreground pr-1 right-2"] })
490
499
  };
491
500
 
492
501
  //#endregion
493
502
  //#region src/components/Field.styles.ts
494
- const Field = (0, __marigold_system.cva)("space-y-2");
503
+ const Field = (0, _marigold_system.cva)({ base: "" });
495
504
 
496
505
  //#endregion
497
506
  //#region src/components/Headline.styles.ts
498
- const Headline = (0, __marigold_system.cva)("", { variants: { size: {
507
+ const Headline = (0, _marigold_system.cva)({ variants: { size: {
499
508
  "level-1": "text-3xl font-extrabold",
500
509
  "level-2": "text-2xl font-bold",
501
510
  "level-3": "text-xl font-semibold",
@@ -507,28 +516,29 @@ const Headline = (0, __marigold_system.cva)("", { variants: { size: {
507
516
  //#endregion
508
517
  //#region src/components/HelpText.styles.ts
509
518
  const HelpText = {
510
- container: (0, __marigold_system.cva)([
519
+ container: (0, _marigold_system.cva)({ base: [
511
520
  "text-xs text-muted-foreground group-disabled/field:text-disabled-foreground",
512
521
  "group-invalid/field:text-destructive",
513
522
  "has-[+_[aria-hidden=true]]:mb-0"
514
- ]),
515
- icon: (0, __marigold_system.cva)("")
523
+ ] }),
524
+ icon: (0, _marigold_system.cva)({ base: "" })
516
525
  };
517
526
 
518
527
  //#endregion
519
528
  //#region src/components/Label.styles.ts
520
- const Label = (0, __marigold_system.cva)([
529
+ const Label = (0, _marigold_system.cva)({ base: [
521
530
  "flex items-center gap-1",
522
531
  "text-sm font-medium leading-none text-foreground",
523
532
  "group-disabled/field:cursor-not-allowed group-disabled/field:text-disabled-foreground",
524
533
  "group-required/field:after:content-[\"*\"]",
525
534
  "group-required/field:after:-ml-1",
526
535
  "group-required/field:after:text-destructive"
527
- ]);
536
+ ] });
528
537
 
529
538
  //#endregion
530
539
  //#region src/components/Link.styles.ts
531
- const Link = (0, __marigold_system.cva)("aria-[disabled]:cursor-not-allowed", {
540
+ const Link = (0, _marigold_system.cva)({
541
+ base: "aria-[disabled]:cursor-not-allowed",
532
542
  variants: {
533
543
  variant: {
534
544
  default: "text-link font-normal",
@@ -548,37 +558,39 @@ const Link = (0, __marigold_system.cva)("aria-[disabled]:cursor-not-allowed", {
548
558
  //#endregion
549
559
  //#region src/components/List.styles.ts
550
560
  const List = {
551
- ul: (0, __marigold_system.cva)("ml-6 list-outside list-disc space-y-1 marker:text-foreground/50", {
561
+ ul: (0, _marigold_system.cva)({
562
+ base: "ml-6 list-outside list-disc space-y-1 marker:text-muted-foreground",
552
563
  variants: { size: {
553
564
  default: "",
554
565
  small: "*:text-sm"
555
566
  } },
556
567
  defaultVariants: { size: "default" }
557
568
  }),
558
- ol: (0, __marigold_system.cva)("ml-6 list-outside list-decimal space-y-1 marker:text-foreground/50", {
569
+ ol: (0, _marigold_system.cva)({
570
+ base: "ml-6 list-outside list-decimal space-y-1 marker:text-muted-foreground",
559
571
  variants: { size: {
560
572
  default: "",
561
573
  small: "*:text-sm"
562
574
  } },
563
575
  defaultVariants: { size: "default" }
564
576
  }),
565
- item: (0, __marigold_system.cva)("")
577
+ item: (0, _marigold_system.cva)({ base: "" })
566
578
  };
567
579
 
568
580
  //#endregion
569
581
  //#region src/components/ListBox.styles.ts
570
582
  const ListBox = {
571
- container: (0, __marigold_system.cva)([
583
+ container: (0, _marigold_system.cva)({ base: [
572
584
  "flex ui-surface",
573
585
  "not-group-data-trigger/popover:",
574
586
  "group-data-trigger/popover:shadow-elevation-overlay",
575
587
  "group-data-trigger/popover:w-full",
576
588
  "group-data-trigger/popover:overflow-hidden",
577
589
  "group-[[role=dialog]]/tray:border-0 group-[[role=dialog]]/tray:shadow-none"
578
- ]),
579
- list: (0, __marigold_system.cva)(["p-1 text-sm outline-0 space-y-px overflow-y-auto w-full"]),
580
- item: (0, __marigold_system.cva)([
581
- "relative grid grid-cols-[auto_1fr] items-center gap-x-2 rounded-md px-2 py-1.5 text-sm text-foreground",
590
+ ] }),
591
+ list: (0, _marigold_system.cva)({ base: ["p-1 text-sm outline-0 space-y-px overflow-y-auto w-full"] }),
592
+ item: (0, _marigold_system.cva)({ base: [
593
+ "relative grid grid-cols-[auto_1fr] items-center gap-x-2 rounded-md px-2 py-1.5 text-sm text-foreground max-sm:min-h-11",
582
594
  "[&_.selection-indicator>svg]:invisible [&_.selection-indicator>svg]:block",
583
595
  "selected:bg-selected selected:[&_.selection-indicator>svg]:visible",
584
596
  "hover:bg-hover hover:text-hover-foreground",
@@ -586,63 +598,97 @@ const ListBox = {
586
598
  "focus-visible:ui-state-focus outline-none focus-visible:z-1 transition-[border,color]",
587
599
  "cursor-default data-selection-mode:cursor-pointer",
588
600
  "[&_[slot=description]]:col-start-2 [&_[slot=description]]:row-start-2 [&_[slot=description]]:text-xs [&_[slot=description]]:text-muted-foreground"
589
- ]),
590
- section: (0, __marigold_system.cva)(""),
591
- header: (0, __marigold_system.cva)("[&_header]:px-2 [&_header]:py-1.5 [&_header]:text-xs [&_header]:font-medium [&_header]:text-muted-foreground")
601
+ ] }),
602
+ section: (0, _marigold_system.cva)({ base: "" }),
603
+ header: (0, _marigold_system.cva)({ base: "[&_header]:px-2 [&_header]:py-1.5 [&_header]:text-xs [&_header]:font-medium [&_header]:text-muted-foreground" })
592
604
  };
593
605
 
594
606
  //#endregion
595
607
  //#region src/components/Menu.styles.ts
596
608
  const Menu = {
597
- container: (0, __marigold_system.cva)([
609
+ container: (0, _marigold_system.cva)({ base: [
598
610
  "ui-surface shadow-elevation-overlay w-full",
599
- "text-foreground overflow-hidden p-1 outline-none",
611
+ "text-foreground overflow-x-hidden p-1 outline-none overflow-y-auto",
600
612
  "group-[[role=dialog]]/tray:border-0 group-[[role=dialog]]/tray:shadow-none"
601
- ]),
602
- item: (0, __marigold_system.cva)([
603
- "relative flex cursor-pointer items-center gap-2 rounded-[calc(var(--radius-surface)-3px)] p-2 text-sm outline-hidden select-none text-nowrap",
604
- "disabled:text-disabled-foreground",
605
- "[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg]:size-4"
606
- ], {
613
+ ] }),
614
+ item: (0, _marigold_system.cva)({
615
+ base: [
616
+ "relative flex cursor-pointer items-center gap-2 rounded-[calc(var(--radius-surface)-3px)] p-2 text-sm outline-hidden select-none text-nowrap max-sm:min-h-11",
617
+ "disabled:text-disabled-foreground",
618
+ "[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg]:size-4"
619
+ ],
607
620
  variants: { variant: {
608
- default: "text-foreground focus:bg-focus [&_svg]:opacity-60",
621
+ default: "text-foreground focus:bg-focus [&_svg]:text-muted-foreground:opacity-60",
609
622
  destructive: "text-destructive focus:bg-destructive/10"
610
623
  } },
611
624
  defaultVariants: { variant: "default" }
612
625
  }),
613
- section: (0, __marigold_system.cva)("text-muted-foreground p-2 text-xs font-medium border-t border-t-border in-first:border-t-0"),
614
- button: (0, __marigold_system.cva)([
615
- "inline-flex items-center justify-center gap-2 whitespace-nowrap text-sm font-medium",
616
- "focus-visible:ui-state-focus outline-none disabled:ui-state-disabled",
617
- "cursor-pointer",
618
- "[&_svg]:shrink-0 [&_svg]:pointer-events-none"
619
- ], {
626
+ section: (0, _marigold_system.cva)({ base: "text-muted-foreground p-2 text-xs font-medium border-t border-t-border in-first:border-t-0" }),
627
+ button: (0, _marigold_system.cva)({
628
+ base: [
629
+ "ui-button-base gap-2",
630
+ "duration-150 active:scale-[0.97] pressed:not-aria-expanded:scale-[0.97]",
631
+ "pending:ui-state-disabled"
632
+ ],
620
633
  variants: {
621
634
  variant: {
622
- default: "ui-surface expanded:bg-hover",
623
- ghost: "hover:bg-hover hover:text-foreground expanded:bg-hover rounded-surface"
635
+ default: [
636
+ "ui-surface shadow-elevation-border",
637
+ "hover:[--ui-background-color:var(--color-hover)] hover:text-foreground",
638
+ "disabled:border-0 disabled:shadow-none disabled:[--ui-background-color:var(--color-disabled)]",
639
+ "pending:[--ui-background-color:var(--color-disabled)] pending:border-0 pending:shadow-none",
640
+ "expanded:[--ui-background-color:var(--color-hover)]"
641
+ ],
642
+ ghost: "hover:bg-hover hover:text-foreground"
624
643
  },
625
644
  size: {
626
- default: "h-button px-4 py-2 [&_svg]:size-4",
627
- small: "h-button-small px-3 text-xs [&_svg]:size-3.5",
628
- large: "h-button-large px-8 [&_svg]:size-5",
629
- icon: "size-button [&_svg]:size-4"
645
+ default: "text-sm",
646
+ small: "text-xs",
647
+ large: "",
648
+ icon: ""
630
649
  }
631
650
  },
632
651
  defaultVariants: {
633
652
  variant: "default",
634
653
  size: "default"
635
- }
654
+ },
655
+ compoundVariants: [
656
+ {
657
+ variant: ["default", "ghost"],
658
+ class: "items-center justify-center"
659
+ },
660
+ {
661
+ variant: ["default", "ghost"],
662
+ size: "default",
663
+ class: "h-button p-squish-relaxed [&_svg]:size-4"
664
+ },
665
+ {
666
+ variant: ["default", "ghost"],
667
+ size: "small",
668
+ class: "h-button-small px-3 [&_svg]:size-3.5"
669
+ },
670
+ {
671
+ variant: ["default", "ghost"],
672
+ size: "large",
673
+ class: "h-button-large px-8 [&_svg]:size-5"
674
+ },
675
+ {
676
+ variant: ["default", "ghost"],
677
+ size: "icon",
678
+ class: "size-button [&_svg]:size-4"
679
+ }
680
+ ]
636
681
  })
637
682
  };
638
683
 
639
684
  //#endregion
640
685
  //#region src/components/Modal.styles.ts
641
- const Modal = (0, __marigold_system.cva)([
642
- "sm:max-h-[min(640px,80vh)]",
643
- "[--dialog-spacing-x:1rem]",
644
- "w-[min(calc(100%_-_var(--dialog-spacing-x)),calc(var(--dialog-width)_-_var(--dialog-spacing-x)))]"
645
- ], {
686
+ const Modal = (0, _marigold_system.cva)({
687
+ base: [
688
+ "sm:max-h-[min(640px,80vh)]",
689
+ "[--dialog-spacing-x:1rem]",
690
+ "w-[min(calc(100%_-_var(--dialog-spacing-x)),calc(var(--dialog-width)_-_var(--dialog-spacing-x)))]"
691
+ ],
646
692
  variants: { size: {
647
693
  xsmall: "[--dialog-width:480px]",
648
694
  small: "[--dialog-width:640px]",
@@ -654,9 +700,9 @@ const Modal = (0, __marigold_system.cva)([
654
700
  //#endregion
655
701
  //#region src/components/Multiselect.styles.ts
656
702
  const MultiSelect = {
657
- field: (0, __marigold_system.cva)("space-y-2"),
658
- container: (0, __marigold_system.cva)([
659
- "ui-surface",
703
+ field: (0, _marigold_system.cva)({ base: "space-y-2" }),
704
+ container: (0, _marigold_system.cva)({ base: [
705
+ "ui-surface shadow-elevation-border",
660
706
  "px-3 text-sm text-foreground transition-shadow",
661
707
  "border border-input rounded-lg outline-hidden",
662
708
  "aria-disabled:bg-disabled aria-disabled:text-disabled-foreground aria-disabled:hover:border-input aria-disabled:border-input aria-disabled:cursor-not-allowed",
@@ -664,8 +710,8 @@ const MultiSelect = {
664
710
  "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",
665
711
  "has-[input[aria-readonly=true]]:bg-muted",
666
712
  "min-h-input"
667
- ]),
668
- input: (0, __marigold_system.cva)([
713
+ ] }),
714
+ input: (0, _marigold_system.cva)({ base: [
669
715
  "bg-transparent flex-1 h-full",
670
716
  "leading-loose",
671
717
  "data-[focused]:outline-hidden outline-hidden border-0",
@@ -673,112 +719,105 @@ const MultiSelect = {
673
719
  "group-data-[icon]/input:pl-5",
674
720
  "group-data-[action]/input:pr-8",
675
721
  "placeholder:text-placeholder"
676
- ]),
677
- tag: (0, __marigold_system.cva)([
722
+ ] }),
723
+ tag: (0, _marigold_system.cva)({ base: [
678
724
  "border border-solid border-input rounded-md",
679
725
  "bg-background",
680
726
  "font-medium text-xs",
681
727
  "flex items-center gap-1 ",
682
728
  "h-7 px-2 cursor-default"
683
- ]),
684
- closeButton: (0, __marigold_system.cva)("size-4 cursor-pointer border-none bg-transparent p-0 leading-normal outline-0"),
685
- icon: (0, __marigold_system.cva)("left-1"),
686
- listContainer: (0, __marigold_system.cva)(["ui-surface shadow-elevation-overlay mt-0.5 outline-0"]),
687
- list: (0, __marigold_system.cva)("pointer-events-auto space-y-1 p-1"),
688
- option: (0, __marigold_system.cva)([
729
+ ] }),
730
+ closeButton: (0, _marigold_system.cva)({ base: "size-4 cursor-pointer border-none bg-transparent p-0 leading-normal outline-0" }),
731
+ icon: (0, _marigold_system.cva)({ base: "left-1" }),
732
+ listContainer: (0, _marigold_system.cva)({ base: ["ui-surface shadow-elevation-overlay mt-0.5 outline-0"] }),
733
+ list: (0, _marigold_system.cva)({ base: "pointer-events-auto space-y-1 p-1" }),
734
+ option: (0, _marigold_system.cva)({ base: [
689
735
  "text-sm text-foreground",
690
736
  "flex flex-col",
691
737
  "cursor-pointer p-2 outline-hidden",
692
738
  "[&.isFocused:not([aria-disabled=true])]:text-foreground! [&.isFocused[aria-disabled=true]]:bg-transparent",
693
739
  "aria-disabled:text-disabled-foreground aria-disabled:cursor-not-allowed",
694
740
  "[&.isFocused:not([aria-disabled=true])]:bg-hover!"
695
- ]),
696
- valueContainer: (0, __marigold_system.cva)("gap-2")
741
+ ] }),
742
+ valueContainer: (0, _marigold_system.cva)({ base: "gap-2" })
697
743
  };
698
744
 
699
745
  //#endregion
700
746
  //#region src/components/NumberField.styles.ts
701
747
  const NumberField = {
702
- group: (0, __marigold_system.cva)([
748
+ group: (0, _marigold_system.cva)({ base: [
703
749
  "ui-surface shadow-elevation-border h-input",
704
750
  "has-invalid:ui-state-error",
705
- "has-disabled:ui-state-disabled",
751
+ "group-data-disabled/field:ui-state-disabled",
706
752
  "group-read-only/field:ui-state-readonly",
707
753
  "has-focus:ui-state-focus outline-none"
708
- ]),
709
- stepper: (0, __marigold_system.cva)([
754
+ ] }),
755
+ stepper: (0, _marigold_system.cva)({ base: [
710
756
  "w-8 h-full text-center shrink-0 grid palce-items-center",
711
757
  "text-foreground",
712
758
  "disabled:text-disabled-foreground disabled:bg-disabled",
713
759
  "border-input!",
714
760
  "first-of-type:border-r! first-of-type:rounded-l-[calc(var(--radius-lg)-1px)]",
715
761
  "last-of-type:border-l! last-of-type:rounded-r-[calc(var(--radius-lg)-1px)]"
716
- ]),
717
- input: (0, __marigold_system.cva)([
762
+ ] }),
763
+ input: (0, _marigold_system.cva)({ base: [
718
764
  "ui-input",
719
765
  "flex-1",
720
766
  "group-data-stepper/field:text-center",
721
767
  "disabled:text-disabled-foreground disabled:bg-disabled"
722
- ])
768
+ ] })
723
769
  };
724
770
 
725
771
  //#endregion
726
772
  //#region src/components/Popover.styles.ts
727
- const Popover = (0, __marigold_system.cva)([
773
+ const Popover = (0, _marigold_system.cva)({ base: [
728
774
  "group/popover",
729
775
  "outline-0",
730
776
  "placement-top:mb-1",
731
777
  "placement-bottom:mt-1",
732
778
  "placement-right:ml-1",
733
779
  "placement-left:mr-1"
734
- ]);
780
+ ] });
735
781
 
736
782
  //#endregion
737
783
  //#region src/components/Radio.styles.ts
738
784
  const Radio = {
739
- container: (0, __marigold_system.cva)("group-disabled/radio:cursor-not-allowed"),
740
- label: (0, __marigold_system.cva)(["text-sm font-normal cursor-pointer w-full", "group-disabled/radio:text-disabled-foreground group-disabled/radio:cursor-not-allowed"]),
741
- radio: (0, __marigold_system.cva)([
785
+ container: (0, _marigold_system.cva)({ base: "group-disabled/radio:cursor-not-allowed" }),
786
+ label: (0, _marigold_system.cva)({ base: ["text-sm font-normal cursor-pointer w-full", "group-disabled/radio:text-disabled-foreground group-disabled/radio:cursor-not-allowed"] }),
787
+ radio: (0, _marigold_system.cva)({ base: [
742
788
  "aspect-square size-4 rounded-full",
743
789
  "border border-input shadow-xs",
744
790
  "group-focus-visible/radio:ui-state-focus outline-none",
745
791
  "group-disabled/radio:group-selected/radio:bg-disabled group-disabled/radio:border-disabled! group-disabled/radio:cursor-not-allowed",
746
792
  "group-selected/radio:border-brand group-selected/radio:bg-brand group-selected/radio:text-brand-foreground"
747
- ]),
748
- group: (0, __marigold_system.cva)()
793
+ ] }),
794
+ group: (0, _marigold_system.cva)({})
749
795
  };
750
796
 
751
797
  //#endregion
752
798
  //#region src/components/Pagination.styles.ts
753
- const button = [
754
- "inline-flex items-center justify-center whitespace-nowrap rounded-lg text-sm font-medium transition-colors",
755
- "focus-visible:ui-state-focus outline-none",
756
- "disabled:pointer-events-none disabled:bg-disabled disabled:text-disabled-foreground",
757
- "[&_svg]:pointer-events-none [&_svg]:shrink-0",
758
- "hover:bg-hover hover:text-hover-foreground",
759
- "cursor-pointer"
760
- ];
761
799
  const Pagination = {
762
- container: (0, __marigold_system.cva)("flex items-center justify-center space-x-2"),
763
- navigationButton: (0, __marigold_system.cva)([
764
- ...button,
765
- "disabled:pointer-events-none disabled:bg-disabled disabled:text-disabled-foreground",
800
+ container: (0, _marigold_system.cva)({ base: "flex items-center justify-center space-x-2" }),
801
+ navigationButton: (0, _marigold_system.cva)({ base: [
802
+ "ui-button-base",
803
+ "text-sm hover:bg-current/10",
766
804
  "h-9 py-2 gap-1 px-2.5",
767
805
  "has-[+_[hidden]]:mr-0"
768
- ]),
769
- pageButton: (0, __marigold_system.cva)([
770
- ...button,
771
- "bg-background size-9",
806
+ ] }),
807
+ pageButton: (0, _marigold_system.cva)({ base: [
808
+ "ui-button-base",
809
+ "text-sm bg-background size-9",
772
810
  "data-[selected=true]:ui-surface data-[selected=true]:shadow-elevation-border"
773
- ]),
774
- icon: (0, __marigold_system.cva)("h-4 w-4"),
775
- ellipsis: (0, __marigold_system.cva)("text-foreground flex h-8 w-8 items-center justify-center")
811
+ ] }),
812
+ icon: (0, _marigold_system.cva)({ base: "h-4 w-4" }),
813
+ ellipsis: (0, _marigold_system.cva)({ base: "text-foreground flex h-8 w-8 items-center justify-center" })
776
814
  };
777
815
 
778
816
  //#endregion
779
817
  //#region src/components/ProgressCircle.styles.ts
780
818
  const ProgressCircle = {
781
- container: (0, __marigold_system.cva)("stroke-foreground", {
819
+ container: (0, _marigold_system.cva)({
820
+ base: "stroke-foreground",
782
821
  variants: {
783
822
  variant: {
784
823
  default: "",
@@ -795,7 +834,7 @@ const ProgressCircle = {
795
834
  size: "default"
796
835
  }
797
836
  }),
798
- loader: (0, __marigold_system.cva)("", {
837
+ loader: (0, _marigold_system.cva)({
799
838
  variants: {
800
839
  variant: {
801
840
  default: "",
@@ -812,13 +851,14 @@ const ProgressCircle = {
812
851
  size: "default"
813
852
  }
814
853
  }),
815
- label: (0, __marigold_system.cva)("text-current text-sm")
854
+ label: (0, _marigold_system.cva)({ base: "text-current text-sm" })
816
855
  };
817
856
 
818
857
  //#endregion
819
858
  //#region src/components/SectionMessage.styles.ts
820
859
  const SectionMessage = {
821
- container: (0, __marigold_system.cva)(["grid-cols-[min-content_auto_min-content] gap-x-4 gap-y-1 [grid-template-areas:'icon_title_close''icon_content_content']", "bg-background rounded-md border px-3 py-4"], {
860
+ container: (0, _marigold_system.cva)({
861
+ base: ["grid-cols-[min-content_auto_min-content] gap-x-4 gap-y-1 [grid-template-areas:'icon_title_close''icon_content_content']", "bg-background rounded-md border px-3 py-4"],
822
862
  variants: { variant: {
823
863
  success: "border-success-muted-accent bg-success-muted text-success-muted-foreground",
824
864
  warning: "border-warning-muted-accent bg-warning-muted text-warning-muted-foreground",
@@ -827,8 +867,9 @@ const SectionMessage = {
827
867
  } },
828
868
  defaultVariants: { variant: "info" }
829
869
  }),
830
- title: (0, __marigold_system.cva)("text-sm font-medium"),
831
- content: (0, __marigold_system.cva)("text-muted-foreground text-sm leading-5 font-normal", {
870
+ title: (0, _marigold_system.cva)({ base: "text-sm font-medium" }),
871
+ content: (0, _marigold_system.cva)({
872
+ base: "text-muted-foreground text-sm leading-5 font-normal",
832
873
  variants: { variant: {
833
874
  success: "text-success-muted-foreground",
834
875
  warning: "text-warning-muted-foreground",
@@ -837,7 +878,8 @@ const SectionMessage = {
837
878
  } },
838
879
  defaultVariants: { variant: "info" }
839
880
  }),
840
- icon: (0, __marigold_system.cva)("h-6 w-6 align-baseline leading-none -mt-0.5", {
881
+ icon: (0, _marigold_system.cva)({
882
+ base: "h-6 w-6 align-baseline leading-none -mt-0.5",
841
883
  variants: { variant: {
842
884
  success: "text-success-muted-accent",
843
885
  warning: "text-warning-muted-accent",
@@ -846,18 +888,18 @@ const SectionMessage = {
846
888
  } },
847
889
  defaultVariants: { variant: "info" }
848
890
  }),
849
- close: (0, __marigold_system.cva)([
891
+ close: (0, _marigold_system.cva)({ base: [
850
892
  "size-8 text-foreground",
851
893
  "[&_svg]:size-6",
852
894
  "-my-1.5 -me-2"
853
- ])
895
+ ] })
854
896
  };
855
897
 
856
898
  //#endregion
857
899
  //#region src/components/Select.styles.ts
858
900
  const Select = {
859
- icon: (0, __marigold_system.cva)("text-muted-foreground/80"),
860
- select: (0, __marigold_system.cva)([
901
+ icon: (0, _marigold_system.cva)({ base: "text-muted-foreground/80" }),
902
+ select: (0, _marigold_system.cva)({ base: [
861
903
  "ui-surface shadow-elevation-border ui-input h-input ",
862
904
  "cursor-pointer",
863
905
  "group-invalid/field:ui-state-error",
@@ -865,46 +907,110 @@ const Select = {
865
907
  "focus-visible:ui-state-focus outline-none",
866
908
  "*:data-placeholder:text-placeholder",
867
909
  "has-[+_[aria-hidden=true]]:mb-0"
868
- ])
910
+ ] })
911
+ };
912
+
913
+ //#endregion
914
+ //#region src/components/Sidebar.styles.ts
915
+ const Sidebar = {
916
+ overlay: (0, _marigold_system.cva)({}),
917
+ modal: (0, _marigold_system.cva)({ base: [
918
+ "flex h-full *:flex-1",
919
+ "justify-start",
920
+ "entering:animate-slide-in-left",
921
+ "exiting:animate-slide-out-left exiting:[--slide-out-duration:0.1s]",
922
+ "motion-reduce:entering:animate-none motion-reduce:exiting:animate-none"
923
+ ] }),
924
+ root: (0, _marigold_system.cva)({ base: [
925
+ "relative h-full overflow-hidden",
926
+ "bg-surface border-surface-border ui-elevation-overlay util-scrollbar",
927
+ "sm:data-[state=expanded]:w-64",
928
+ "sm:data-[state=collapsed]:w-0",
929
+ "sm:transition-[width] sm:duration-200 sm:ease-in-out",
930
+ "motion-reduce:sm:transition-none",
931
+ "border-r"
932
+ ] }),
933
+ closeButton: (0, _marigold_system.cva)({ base: ["absolute top-3.5 right-3", "size-7"] }),
934
+ content: (0, _marigold_system.cva)({ base: "sm:w-64" }),
935
+ header: (0, _marigold_system.cva)({ base: "ui-panel-header" }),
936
+ nav: (0, _marigold_system.cva)({ base: ["flex flex-col px-3 py-1 overflow-y-auto outline-none", "ui-scrollbar"] }),
937
+ footer: (0, _marigold_system.cva)({ base: "ui-panel-actions" }),
938
+ toggle: (0, _marigold_system.cva)({ base: [
939
+ "ui-button-base ui-press",
940
+ "hover:bg-current/10",
941
+ "size-button [&_svg]:size-6"
942
+ ] }),
943
+ separator: (0, _marigold_system.cva)({ base: "bg-border my-1 h-px border-0" }),
944
+ groupLabel: (0, _marigold_system.cva)({ base: "px-2 h-7.5 pt-3 pb-0.5 mb-1 text-xs font-medium text-muted-foreground uppercase tracking-wider" }),
945
+ navPanel: (0, _marigold_system.cva)({ base: [
946
+ "flex flex-col gap-0.5 p-1",
947
+ "transition-[opacity,translate,filter] duration-300 ease-out sm:duration-200",
948
+ "data-[position=before]:absolute data-[position=before]:inset-x-0 data-[position=before]:top-0",
949
+ "data-[position=before]:invisible data-[position=before]:opacity-0",
950
+ "data-[position=before]:-translate-x-1/3 data-[position=before]:sm:-translate-x-2",
951
+ "data-[position=before]:sm:blur-[2px]",
952
+ "data-[position=before]:pointer-events-none",
953
+ "data-[position=after]:absolute data-[position=after]:inset-x-0 data-[position=after]:top-0",
954
+ "data-[position=after]:invisible data-[position=after]:opacity-0",
955
+ "data-[position=after]:translate-x-1/3 data-[position=after]:sm:translate-x-2",
956
+ "data-[position=after]:sm:blur-[2px]",
957
+ "data-[position=after]:pointer-events-none",
958
+ "motion-reduce:transition-none"
959
+ ] }),
960
+ navLink: (0, _marigold_system.cva)({ base: [
961
+ "flex items-center gap-2 w-full px-2 h-9 text-sm rounded-md",
962
+ "text-foreground/80 hover:text-foreground hover:bg-hover transition-colors",
963
+ "data-active:bg-selected data-active:text-foreground data-active:font-medium",
964
+ "motion-reduce:transition-none",
965
+ "outline-none focus-visible:ui-state-focus"
966
+ ] }),
967
+ backButton: (0, _marigold_system.cva)({ base: [
968
+ "flex items-center gap-2 w-full pl-0.5 pr-2 h-9 text-sm rounded-md",
969
+ "text-foreground/80 hover:text-foreground hover:bg-hover transition-colors",
970
+ "motion-reduce:transition-none",
971
+ "outline-none focus-visible:ui-state-focus",
972
+ "cursor-pointer mb-1"
973
+ ] })
869
974
  };
870
975
 
871
976
  //#endregion
872
977
  //#region src/components/Slider.styles.ts
873
978
  const Slider = {
874
- container: (0, __marigold_system.cva)("*:aria-hidden:hidden"),
875
- track: (0, __marigold_system.cva)(["relative bg-muted rounded-lg flex w-full touch-none select-none items-center", "orientation-vertical:h-full orientation-vertical:w-auto orientation-vertical:flex-col disabled:opacity-50"]),
876
- selectedTrack: (0, __marigold_system.cva)(["absolute bg-black orientation-horizontal:h-full orientation-vertical:w-full rounded-lg"]),
877
- thumb: (0, __marigold_system.cva)([
979
+ container: (0, _marigold_system.cva)({ base: "*:aria-hidden:hidden" }),
980
+ track: (0, _marigold_system.cva)({ base: ["relative bg-muted rounded-lg flex w-full touch-none select-none items-center", "orientation-vertical:h-full orientation-vertical:w-auto orientation-vertical:flex-col disabled:opacity-50"] }),
981
+ selectedTrack: (0, _marigold_system.cva)({ base: ["absolute bg-black orientation-horizontal:h-full orientation-vertical:w-full rounded-lg"] }),
982
+ thumb: (0, _marigold_system.cva)({ base: [
878
983
  "block h-5 w-5 rounded-full border-2 border-primary bg-background transition-colors",
879
984
  "focus-visible:ui-state-focus outline-none",
880
985
  "disabled:cursor-not-allowed"
881
- ]),
882
- output: (0, __marigold_system.cva)("text-foreground text-sm")
986
+ ] }),
987
+ output: (0, _marigold_system.cva)({ base: "text-foreground text-sm" })
883
988
  };
884
989
 
885
990
  //#endregion
886
991
  //#region src/components/Switch.styles.ts
887
992
  const Switch = {
888
- container: (0, __marigold_system.cva)("disabled:cursor-not-allowed disabled:text-disabled-foreground"),
889
- track: (0, __marigold_system.cva)([
993
+ container: (0, _marigold_system.cva)({ base: "disabled:cursor-not-allowed disabled:text-disabled-foreground" }),
994
+ track: (0, _marigold_system.cva)({ base: [
890
995
  "flex h-6 w-10 shrink-0 cursor-pointer items-center rounded-full transition-colors",
891
996
  "border-2 border-transparent",
892
997
  "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",
893
998
  "group-selected/switch:bg-brand bg-input",
894
999
  "group-focus-visible/switch:ui-state-focus outline-none"
895
- ]),
896
- thumb: (0, __marigold_system.cva)([
1000
+ ] }),
1001
+ thumb: (0, _marigold_system.cva)({ base: [
897
1002
  "pointer-events-none block size-5 rounded-full",
898
1003
  "bg-background shadow-xs",
899
1004
  "ring-0 transition-transform duration-150 ease-out-quint",
900
1005
  "group-selected/switch:translate-x-4 translate-x-0"
901
- ])
1006
+ ] })
902
1007
  };
903
1008
 
904
1009
  //#endregion
905
1010
  //#region src/components/Table.styles.ts
906
1011
  const Table = {
907
- table: (0, __marigold_system.cva)(["text-sm bg-background"], {
1012
+ table: (0, _marigold_system.cva)({
1013
+ base: ["text-sm bg-background"],
908
1014
  variants: {
909
1015
  variant: {
910
1016
  default: "",
@@ -934,14 +1040,15 @@ const Table = {
934
1040
  size: "default"
935
1041
  }
936
1042
  }),
937
- row: (0, __marigold_system.cva)([
938
- "border-border not-last:border-b",
939
- "transition-[background-color]",
940
- "focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-ring/50",
941
- "disabled:cursor-not-allowed",
942
- "data-selection-mode:cursor-pointer data-selection-mode:hover:bg-muted",
943
- "dragging:opacity-50 dragging:transform-gpu"
944
- ], {
1043
+ row: (0, _marigold_system.cva)({
1044
+ base: [
1045
+ "border-border not-last:border-b",
1046
+ "transition-[background-color]",
1047
+ "focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-ring/50",
1048
+ "disabled:cursor-not-allowed",
1049
+ "data-selection-mode:cursor-pointer data-selection-mode:hover:bg-muted",
1050
+ "dragging:opacity-50 dragging:transform-gpu"
1051
+ ],
945
1052
  variants: { variant: {
946
1053
  default: "",
947
1054
  grid: ["**:not-last:[[role=rowheader]]:border-r **:not-last:[[role=rowheader]]:border-border", "**:not-last:[[role=gridcell]]:border-r **:not-last:[[role=gridcell]]:border-border"],
@@ -950,14 +1057,15 @@ const Table = {
950
1057
  } },
951
1058
  defaultVariants: { variant: "default" }
952
1059
  }),
953
- head: (0, __marigold_system.cva)(["bg-background/90", "border-border border-b"]),
954
- column: (0, __marigold_system.cva)([
955
- "h-(--header-height) px-(--cell-x-padding) align-middle",
956
- "font-medium text-muted-foreground",
957
- "not-has-[[type=checkbox]]:has-focus-visible:outline-2 not-has-[[type=checkbox]]:has-focus-visible:-outline-offset-2 not-has-[[type=checkbox]]:has-focus-visible:outline-ring/50",
958
- "focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-ring/50",
959
- "aria-[sort]:hover:bg-muted aria-[sort]:hover:cursor-pointer aria-[sort]:hover:text-foreground"
960
- ], {
1060
+ head: (0, _marigold_system.cva)({ base: ["bg-background/90", "border-border border-b"] }),
1061
+ column: (0, _marigold_system.cva)({
1062
+ base: [
1063
+ "h-(--header-height) px-(--cell-x-padding) py-0 align-middle",
1064
+ "font-medium text-muted-foreground",
1065
+ "not-has-[[type=checkbox]]:has-focus-visible:outline-2 not-has-[[type=checkbox]]:has-focus-visible:-outline-offset-2 not-has-[[type=checkbox]]:has-focus-visible:outline-ring/50",
1066
+ "focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-ring/50",
1067
+ "aria-[sort]:hover:bg-muted aria-[sort]:hover:cursor-pointer aria-[sort]:hover:text-foreground"
1068
+ ],
961
1069
  variants: { variant: {
962
1070
  default: "",
963
1071
  grid: "not-last:border-r border-border",
@@ -965,75 +1073,81 @@ const Table = {
965
1073
  } },
966
1074
  defaultVariants: { variant: "default" }
967
1075
  }),
968
- body: (0, __marigold_system.cva)(["bg-background"]),
969
- cell: (0, __marigold_system.cva)([
1076
+ body: (0, _marigold_system.cva)({ base: ["bg-background"] }),
1077
+ cell: (0, _marigold_system.cva)({ base: [
970
1078
  "px-(--cell-x-padding) py-(--cell-y-padding)",
971
1079
  "focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-ring/50",
972
1080
  "has-[[data-cell-content]:focus-visible]:outline-2 has-[[data-cell-content]:focus-visible]:-outline-offset-2 has-[[data-cell-content]:focus-visible]:outline-ring/50",
973
1081
  "**:data-cell-content:outline-none"
974
- ]),
975
- dragHandle: (0, __marigold_system.cva)([
1082
+ ] }),
1083
+ dragHandle: (0, _marigold_system.cva)({ base: [
976
1084
  "text-muted-foreground rounded size-4",
977
1085
  "[&_svg]:size-4",
978
- "focus-visible:util-focus-ring outline-none"
979
- ]),
980
- dragPreview: (0, __marigold_system.cva)(["px-4 py-3 bg-brand rounded-lg shadow-lg", "text-sm text-brand-foreground"]),
981
- dragPreviewCounter: (0, __marigold_system.cva)([
1086
+ "focus-visible:ui-state-focus outline-none"
1087
+ ] }),
1088
+ dragPreview: (0, _marigold_system.cva)({ base: ["px-4 py-3 bg-brand rounded-lg shadow-lg", "text-sm text-brand-foreground"] }),
1089
+ dragPreviewCounter: (0, _marigold_system.cva)({ base: [
982
1090
  "flex items-center justify-center rounded-full",
983
1091
  "bg-brand-foreground px-2",
984
1092
  "text-xs font-medium leading-normal text-brand"
985
- ]),
986
- dropIndicator: (0, __marigold_system.cva)([
1093
+ ] }),
1094
+ dropIndicator: (0, _marigold_system.cva)({ base: [
987
1095
  "relative",
988
- "before:absolute before:inset-0 before:h-0.5 before:-translate-y-1/2 before:bg-stone-300",
989
- "drop-target:before:z-10 drop-target:before:bg-stone-800"
990
- ]),
991
- editablePopover: (0, __marigold_system.cva)(["ui-surface ui-elevation-overlay", "flex items-start justify-center gap-1 pl-1 pr-1 py-1"]),
992
- editTrigger: (0, __marigold_system.cva)([
1096
+ "before:absolute before:inset-0 before:h-0.5 before:-translate-y-1/2 before:bg-border",
1097
+ "drop-target:before:z-10 drop-target:before:bg-brand"
1098
+ ] }),
1099
+ editablePopover: (0, _marigold_system.cva)({ base: ["ui-surface shadow-elevation-overlay", "flex items-start justify-center gap-1 pl-1 pr-1 py-1"] }),
1100
+ editTrigger: (0, _marigold_system.cva)({ base: [
993
1101
  "flex items-center justify-center",
994
- "text-foreground/60",
1102
+ "text-muted-foreground",
995
1103
  "size-button aspect-square rounded-surface transition-[color,background,transform]",
996
- "cursor-pointer",
997
- "focus-visible:ui-state-focus outline-none disabled:ui-state-disabled",
998
- "duration-150 active:scale-[0.97] pressed:scale-[0.97]",
999
- "hover:bg-hover hover:text-foreground",
1104
+ "ui-interactive",
1105
+ "ui-press",
1106
+ "hover:bg-current/10",
1000
1107
  "[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg]:size-5"
1001
- ]),
1002
- editCancel: (0, __marigold_system.cva)([
1108
+ ] }),
1109
+ editCancel: (0, _marigold_system.cva)({ base: [
1003
1110
  "inline-flex items-center justify-center",
1004
- "min-[600px]:text-foreground/60 font-medium",
1005
- "text-sm h-button-small min-[600px]:size-button min-[600px]:aspect-square rounded-surface transition-[color,background,transform]",
1111
+ "sm:text-muted-foreground font-medium",
1112
+ "text-sm h-button-small sm:size-button sm:aspect-square rounded-surface transition-[color,background,transform]",
1006
1113
  "cursor-pointer",
1007
1114
  "ml-1.5",
1008
1115
  "focus-visible:ui-state-focus outline-none",
1009
- "duration-150 active:scale-[0.97] pressed:scale-[0.97]",
1010
- "hover:bg-hover hover:text-foreground",
1116
+ "ui-press",
1117
+ "hover:bg-current/10",
1011
1118
  "[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg]:size-5"
1012
- ]),
1013
- editSave: (0, __marigold_system.cva)([
1119
+ ] }),
1120
+ editSave: (0, _marigold_system.cva)({ base: [
1014
1121
  "inline-flex items-center justify-center",
1015
- "min-[600px]:text-foreground/60 font-medium",
1016
- "text-sm h-button-small min-[600px]:size-button min-[600px]:aspect-square rounded-surface transition-[color,background,transform]",
1122
+ "sm:text-muted-foreground font-medium",
1123
+ "text-sm h-button-small sm:size-button sm:aspect-square rounded-surface transition-[color,background,transform]",
1017
1124
  "cursor-pointer",
1018
1125
  "focus-visible:ui-state-focus outline-none",
1019
- "duration-150 active:scale-[0.97] pressed:scale-[0.97]",
1020
- "hover:bg-hover hover:text-foreground",
1126
+ "ui-press",
1127
+ "hover:bg-current/10",
1021
1128
  "[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg]:size-4.5"
1022
- ])
1129
+ ] })
1023
1130
  };
1024
1131
 
1025
1132
  //#endregion
1026
1133
  //#region src/components/LegacyTable.styles.ts
1027
1134
  const LegacyTable = {
1028
- table: (0, __marigold_system.cva)("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", { variants: { variant: {
1029
- default: "",
1030
- grid: ""
1031
- } } }),
1032
- thead: (0, __marigold_system.cva)("bg-background/90 top-0 z-1 backdrop-blur-xs ", { variants: { variant: {
1033
- default: "",
1034
- grid: ""
1035
- } } }),
1036
- headerRow: (0, __marigold_system.cva)(["border-border border-b"], {
1135
+ table: (0, _marigold_system.cva)({
1136
+ base: "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",
1137
+ variants: { variant: {
1138
+ default: "",
1139
+ grid: ""
1140
+ } }
1141
+ }),
1142
+ thead: (0, _marigold_system.cva)({
1143
+ base: "bg-background/90 top-0 z-1 backdrop-blur-xs ",
1144
+ variants: { variant: {
1145
+ default: "",
1146
+ grid: ""
1147
+ } }
1148
+ }),
1149
+ headerRow: (0, _marigold_system.cva)({
1150
+ base: ["border-border border-b"],
1037
1151
  variants: { variant: {
1038
1152
  default: "",
1039
1153
  grid: "[&>:not(:last-child)]:border-r [&>:not(:last-child)]:border-border",
@@ -1041,7 +1155,8 @@ const LegacyTable = {
1041
1155
  } },
1042
1156
  defaultVariants: { variant: "default" }
1043
1157
  }),
1044
- header: (0, __marigold_system.cva)(["h-12 px-3 align-middle font-medium text-muted-foreground", "focus-visible:outline-2 outline-offset-2 outline-ring/70"], {
1158
+ header: (0, _marigold_system.cva)({
1159
+ base: ["h-12 px-3 align-middle font-medium text-muted-foreground", "focus-visible:outline-2 outline-offset-2 outline-ring/70"],
1045
1160
  variants: { variant: {
1046
1161
  default: "[&:has([type=checkbox])]:pr-0",
1047
1162
  grid: "",
@@ -1049,12 +1164,13 @@ const LegacyTable = {
1049
1164
  } },
1050
1165
  defaultVariants: { variant: "default" }
1051
1166
  }),
1052
- body: (0, __marigold_system.cva)("[&_tr:last-child]:border-0 bg-background"),
1053
- row: (0, __marigold_system.cva)([
1054
- "border-b border-border transition-colors",
1055
- "focus-visible:outline-2 outline-offset-2 outline-ring/70",
1056
- "data-disabled:cursor-not-allowed"
1057
- ], {
1167
+ body: (0, _marigold_system.cva)({ base: "[&_tr:last-child]:border-0 bg-background" }),
1168
+ row: (0, _marigold_system.cva)({
1169
+ base: [
1170
+ "border-b border-border transition-colors",
1171
+ "focus-visible:outline-2 outline-offset-2 outline-ring/70",
1172
+ "data-disabled:cursor-not-allowed"
1173
+ ],
1058
1174
  variants: { variant: {
1059
1175
  default: "aria-selected:bg-muted",
1060
1176
  grid: "aria-selected:bg-muted [&>:not(:last-child)]:border-r [&>:not(:last-child)]:border-border",
@@ -1073,7 +1189,8 @@ const LegacyTable = {
1073
1189
  } },
1074
1190
  defaultVariants: { variant: "default" }
1075
1191
  }),
1076
- cell: (0, __marigold_system.cva)("p-3 focus-visible:outline-2 outline-offset-2 outline-ring/70", {
1192
+ cell: (0, _marigold_system.cva)({
1193
+ base: "p-3 focus-visible:outline-2 outline-offset-2 outline-ring/70",
1077
1194
  variants: { variant: {
1078
1195
  default: "[&:has([type=checkbox])]:pr-0",
1079
1196
  grid: ""
@@ -1085,25 +1202,25 @@ const LegacyTable = {
1085
1202
  //#endregion
1086
1203
  //#region src/components/Tabs.styles.ts
1087
1204
  const Tabs = {
1088
- container: (0, __marigold_system.cva)("flex flex-col gap-2"),
1089
- tabsList: (0, __marigold_system.cva)(["text-muted-foreground", "flex items-center p-0.5 h-auto gap-2 border-b border-border px-0 py-1"]),
1090
- tab: (0, __marigold_system.cva)([
1205
+ container: (0, _marigold_system.cva)({ base: "flex flex-col gap-2" }),
1206
+ tabsList: (0, _marigold_system.cva)({ base: ["text-muted-foreground", "flex items-center p-0.5 h-auto gap-2 border-b border-border px-0 py-1"] }),
1207
+ tab: (0, _marigold_system.cva)({ base: [
1091
1208
  "relative inline-flex items-center justify-center gap-1 rounded-sm px-3 py-1.5 text-sm font-medium whitespace-nowrap transition-colors",
1092
1209
  "[&_svg]:shrink-0",
1093
1210
  "focus-visible:ui-state-focus outline-none",
1094
- "hover:bg-hover hover:text-foreground",
1095
- "disabled:pointer-events-none disabled:opacity-50",
1096
- "selected:text-foreground selected:hover:bg-hover",
1097
- "data-[selected=true]:after:bg-foreground after:absolute after:inset-x-0 after:bottom-0 after:-mb-1 after:h-0.5"
1098
- ]),
1099
- tabpanel: (0, __marigold_system.cva)(["py-4 rounded-sm", "focus-visible:ui-state-focus outline-none"])
1211
+ "hover:bg-current/10",
1212
+ "disabled:pointer-events-none disabled:text-disabled-foreground",
1213
+ "selected:text-foreground selected:hover:bg-current/10"
1214
+ ] }),
1215
+ tabIndicator: (0, _marigold_system.cva)({ base: ["absolute inset-x-0 bottom-0 -mb-1 h-0.5 bg-foreground", "origin-left"] }),
1216
+ tabpanel: (0, _marigold_system.cva)({ base: ["py-4 rounded-sm", "focus-visible:ui-state-focus outline-none"] })
1100
1217
  };
1101
1218
 
1102
1219
  //#endregion
1103
1220
  //#region src/components/Tag.styles.ts
1104
1221
  const Tag = {
1105
- container: (0, __marigold_system.cva)(["flex gap-3", "min-h-7"]),
1106
- tag: (0, __marigold_system.cva)([
1222
+ container: (0, _marigold_system.cva)({ base: ["flex gap-3", "min-h-7"] }),
1223
+ tag: (0, _marigold_system.cva)({ base: [
1107
1224
  "relative inline-flex items-center gap-1.75",
1108
1225
  "ui-surface shadow-elevation-border",
1109
1226
  "font-medium text-xs",
@@ -1111,62 +1228,53 @@ const Tag = {
1111
1228
  "selected:text-white selected:[--ui-background-color:var(--color-brand)]",
1112
1229
  "data-disabled:cursor-not-allowed data-disabled:text-disabled-foreground data-disabled:bg-disabled",
1113
1230
  "focus-visible:ui-state-focus outline-none"
1114
- ]),
1115
- closeButton: (0, __marigold_system.cva)(["size-4", "disabled:bg-disabled disabled:text-disabled-foreground disabled:cursor-not-allowed"]),
1116
- listItems: (0, __marigold_system.cva)(["flex flex-wrap gap-1", "mb-0"]),
1117
- removeAll: (0, __marigold_system.cva)([
1231
+ ] }),
1232
+ closeButton: (0, _marigold_system.cva)({ base: ["size-4", "disabled:bg-disabled disabled:text-disabled-foreground disabled:cursor-not-allowed"] }),
1233
+ listItems: (0, _marigold_system.cva)({ base: ["flex flex-wrap gap-1", "mb-0"] }),
1234
+ removeAll: (0, _marigold_system.cva)({ base: [
1118
1235
  "inline whitespace-nowrap font-medium transition-[color,box-shadow,transform] rounded-md",
1119
- "duration-150 active:scale-[0.97] pressed:scale-[0.97]",
1236
+ "ui-press",
1120
1237
  "focus-visible:ui-state-focus outline-none",
1121
1238
  "cursor-pointer",
1122
- "text-link text-xs util-touch-hitbox"
1123
- ])
1239
+ "text-link text-xs ui-touch-hitbox"
1240
+ ] })
1124
1241
  };
1125
1242
 
1126
1243
  //#endregion
1127
1244
  //#region src/components/TagField.styles.ts
1128
1245
  const TagField = {
1129
- trigger: (0, __marigold_system.cva)([
1130
- "flex w-full items-center justify-between gap-1",
1246
+ trigger: (0, _marigold_system.cva)({ base: [
1131
1247
  "ui-surface shadow-elevation-border ui-input h-fit min-h-input",
1132
1248
  "cursor-pointer py-1",
1133
1249
  "group-disabled/field:ui-state-disabled",
1134
- "has-focus:ui-state-focus",
1250
+ "[&:has(>button[data-focus-visible])]:ui-state-focus",
1135
1251
  "group-invalid/field:ui-state-error",
1136
- "has-focus:group-invalid/field:ring-destructive/20"
1137
- ]),
1138
- tagGroup: (0, __marigold_system.cva)("flex flex-1 flex-wrap items-center gap-1"),
1139
- listItems: (0, __marigold_system.cva)("flex flex-wrap gap-1"),
1140
- button: (0, __marigold_system.cva)([
1141
- "util-touch-hitbox rounded-full [&_svg]:size-4",
1142
- "shrink-0 cursor-pointer outline-0",
1143
- "flex items-center justify-center",
1144
- "hover:bg-hover size-6",
1145
- "focus:ui-state-focus",
1146
- "disabled:ui-state-disabled"
1147
- ]),
1148
- container: (0, __marigold_system.cva)([
1252
+ "[&:has(>button[data-focus-visible])]:group-invalid/field:ring-destructive/20"
1253
+ ] }),
1254
+ tagGroup: (0, _marigold_system.cva)({ base: "flex flex-1 flex-wrap items-center gap-1" }),
1255
+ listItems: (0, _marigold_system.cva)({ base: "flex flex-wrap gap-1" }),
1256
+ container: (0, _marigold_system.cva)({ base: [
1149
1257
  "ui-surface shadow-elevation-border group/tagfield",
1150
1258
  "flex flex-col overflow-hidden gap-1.5 p-2",
1151
1259
  "w-(--tagfield-trigger-width)",
1152
1260
  "[&_div]:shadow-none! [&_div]:border-0!"
1153
- ])
1261
+ ] })
1154
1262
  };
1155
1263
 
1156
1264
  //#endregion
1157
1265
  //#region src/components/TextArea.styles.ts
1158
- const TextArea = (0, __marigold_system.cva)([
1266
+ const TextArea = (0, _marigold_system.cva)({ base: [
1159
1267
  "inline-flex",
1160
1268
  "ui-surface shadow-elevation-border ui-input h-[initial]",
1161
1269
  "disabled:ui-state-disabled",
1162
1270
  "group-read-only/field:ui-state-readonly",
1163
1271
  "invalid:ui-state-error",
1164
1272
  "focus:ui-state-focus outline-none"
1165
- ]);
1273
+ ] });
1166
1274
 
1167
1275
  //#endregion
1168
1276
  //#region src/components/Text.styles.ts
1169
- const Text = (0, __marigold_system.cva)("", {
1277
+ const Text = (0, _marigold_system.cva)({
1170
1278
  variants: {
1171
1279
  variant: {
1172
1280
  default: "",
@@ -1198,31 +1306,32 @@ const Text = (0, __marigold_system.cva)("", {
1198
1306
  //#endregion
1199
1307
  //#region src/components/Toast.styles.ts
1200
1308
  const Toast = {
1201
- toast: (0, __marigold_system.cva)([
1309
+ toast: (0, _marigold_system.cva)({ base: [
1202
1310
  "ui-surface shadow-elevation-overlay",
1203
1311
  "max-w-sm w-full pointer-events-auto overflow-hidden text-foreground",
1204
1312
  "grid grid-cols-[auto_1fr_auto_auto] grid-rows-[auto_auto] gap-x-1 gap-y-0",
1205
- "[grid-template-areas:'icon_title_action_close''icon_description_action_close'] focus-visible:state-focus outline-none",
1313
+ "[grid-template-areas:'icon_title_action_close''icon_description_action_close'] focus-visible:ui-state-focus outline-none",
1206
1314
  "p-4"
1207
- ]),
1208
- title: (0, __marigold_system.cva)([
1315
+ ] }),
1316
+ title: (0, _marigold_system.cva)({ base: [
1209
1317
  "text-sm font-medium",
1210
1318
  "[grid-area:title]",
1211
1319
  "flex items-center mb-0"
1212
- ]),
1213
- description: (0, __marigold_system.cva)(["text-muted-foreground text-sm", "[grid-area:description] mt-0"]),
1214
- closeButton: (0, __marigold_system.cva)([
1320
+ ] }),
1321
+ description: (0, _marigold_system.cva)({ base: ["text-muted-foreground text-sm", "[grid-area:description] mt-0"] }),
1322
+ closeButton: (0, _marigold_system.cva)({ base: [
1215
1323
  "[grid-area:close] row-end-1",
1216
1324
  "ml-2",
1217
1325
  "flex items-center justify-center",
1218
1326
  "size-5 rounded transition-[color,box-shadow] outline-none",
1219
1327
  "focus-visible:ui-state-focus outline-none text-muted-foreground hover:text-hover-foreground"
1220
- ]),
1221
- icon: (0, __marigold_system.cva)([
1222
- "[grid-area:icon]",
1223
- "flex items-center justify-center",
1224
- "h-5 w-5 leading-none"
1225
- ], {
1328
+ ] }),
1329
+ icon: (0, _marigold_system.cva)({
1330
+ base: [
1331
+ "[grid-area:icon]",
1332
+ "flex items-center justify-center",
1333
+ "h-5 w-5 leading-none"
1334
+ ],
1226
1335
  variants: { variant: {
1227
1336
  default: "",
1228
1337
  success: "text-success-muted-accent",
@@ -1232,37 +1341,39 @@ const Toast = {
1232
1341
  } },
1233
1342
  defaultVariants: { variant: "default" }
1234
1343
  }),
1235
- content: (0, __marigold_system.cva)(["contents"]),
1236
- "bottom-left": (0, __marigold_system.cva)(["fixed bottom-4 left-4 flex flex-col-reverse"]),
1237
- "bottom-right": (0, __marigold_system.cva)(["fixed bottom-4 right-4 flex flex-col-reverse"]),
1238
- "top-left": (0, __marigold_system.cva)(["fixed top-4 left-4 flex flex-col"]),
1239
- "top-right": (0, __marigold_system.cva)(["fixed top-4 right-4 flex flex-col"]),
1240
- top: (0, __marigold_system.cva)(["fixed top-4 left-1/2 right-auto -translate-x-1/2 flex flex-col items-center w-auto align-middle"]),
1241
- bottom: (0, __marigold_system.cva)(["fixed bottom-4 left-1/2 right-auto -translate-x-1/2 flex flex-col-reverse items-center w-auto align-middle"]),
1242
- action: (0, __marigold_system.cva)(["[grid-area:action] flex items-start pl-4"])
1344
+ content: (0, _marigold_system.cva)({ base: ["contents"] }),
1345
+ "bottom-left": (0, _marigold_system.cva)({ base: ["fixed bottom-4 left-4 flex flex-col-reverse"] }),
1346
+ "bottom-right": (0, _marigold_system.cva)({ base: ["fixed bottom-4 right-4 flex flex-col-reverse"] }),
1347
+ "top-left": (0, _marigold_system.cva)({ base: ["fixed top-4 left-4 flex flex-col"] }),
1348
+ "top-right": (0, _marigold_system.cva)({ base: ["fixed top-4 right-4 flex flex-col"] }),
1349
+ top: (0, _marigold_system.cva)({ base: ["fixed top-4 left-1/2 right-auto -translate-x-1/2 flex flex-col items-center w-auto align-middle"] }),
1350
+ bottom: (0, _marigold_system.cva)({ base: ["fixed bottom-4 left-1/2 right-auto -translate-x-1/2 flex flex-col-reverse items-center w-auto align-middle"] }),
1351
+ action: (0, _marigold_system.cva)({ base: ["[grid-area:action] flex items-start pl-4"] })
1243
1352
  };
1244
1353
 
1245
1354
  //#endregion
1246
1355
  //#region src/components/Tooltip.styles.ts
1247
1356
  const Tooltip = {
1248
- container: (0, __marigold_system.cva)([
1249
- "relative max-w-70 rounded-md border px-3 py-1.5 text-sm",
1250
- "placement-top:mb-2",
1251
- "placement-bottom:mt-2",
1252
- "placement-right:ml-2",
1253
- "placement-left:mr-2"
1254
- ], {
1357
+ container: (0, _marigold_system.cva)({
1358
+ base: [
1359
+ "relative max-w-70 rounded-md border px-3 py-1.5 text-sm",
1360
+ "placement-top:mb-2",
1361
+ "placement-bottom:mt-2",
1362
+ "placement-right:ml-2",
1363
+ "placement-left:mr-2"
1364
+ ],
1255
1365
  variants: { variant: {
1256
1366
  default: "text-brand-foreground bg-brand border-brand",
1257
1367
  white: "text-secondary-foreground border-input bg-white"
1258
1368
  } },
1259
1369
  defaultVariants: { variant: "default" }
1260
1370
  }),
1261
- arrow: (0, __marigold_system.cva)([
1262
- "placement-right:[&_svg]:rotate-90",
1263
- "placement-left:[&_svg]:-rotate-90",
1264
- "placement-bottom:[&_svg]:rotate-180"
1265
- ], {
1371
+ arrow: (0, _marigold_system.cva)({
1372
+ base: [
1373
+ "placement-right:[&_svg]:rotate-90",
1374
+ "placement-left:[&_svg]:-rotate-90",
1375
+ "placement-bottom:[&_svg]:rotate-180"
1376
+ ],
1266
1377
  variants: { variant: {
1267
1378
  default: "fill-brand stroke-brand",
1268
1379
  white: "fill-white stroke-input "
@@ -1274,29 +1385,30 @@ const Tooltip = {
1274
1385
  //#endregion
1275
1386
  //#region src/components/Tray.styles.ts
1276
1387
  const Tray = {
1277
- overlay: (0, __marigold_system.cva)("bg-black/50 fixed inset-0 z-40 flex items-end justify-center"),
1278
- container: (0, __marigold_system.cva)([
1388
+ overlay: (0, _marigold_system.cva)({ base: "bg-black/50 fixed inset-0 z-40 flex items-end justify-center" }),
1389
+ container: (0, _marigold_system.cva)({ base: [
1279
1390
  "w-full border-0 inset-shadow-black inset-shadow-sm/20",
1280
1391
  "relative grid-rows-[auto_auto_1fr_auto] max-h-[95vh] rounded-b-none",
1281
- "ui-surface ui-elevation-overlay",
1392
+ "ui-surface shadow-elevation-overlay",
1282
1393
  "outline-hidden grid",
1283
1394
  "after:absolute after:inset-x-0 after:top-full after:h-screen after:bg-background after:content-['']"
1284
- ]),
1285
- dragHandle: (0, __marigold_system.cva)("bg-surface-border mx-auto mt-2 h-1.5 w-12 rounded-full"),
1286
- header: (0, __marigold_system.cva)("border-border border-b px-6 py-4"),
1287
- title: (0, __marigold_system.cva)("font-semibold text-base"),
1288
- content: (0, __marigold_system.cva)("overflow-y-auto outline-none p-2"),
1289
- actions: (0, __marigold_system.cva)("flex flex-row gap-3 justify-end border-border border-t px-6 py-4")
1395
+ ] }),
1396
+ dragHandle: (0, _marigold_system.cva)({ base: "bg-surface-border mx-auto mt-2 h-1.5 w-12 rounded-full" }),
1397
+ header: (0, _marigold_system.cva)({ base: "ui-panel-header" }),
1398
+ title: (0, _marigold_system.cva)({ base: "font-semibold text-base" }),
1399
+ content: (0, _marigold_system.cva)({ base: "overflow-y-auto outline-none p-2" }),
1400
+ actions: (0, _marigold_system.cva)({ base: "ui-panel-actions" })
1290
1401
  };
1291
1402
 
1292
1403
  //#endregion
1293
1404
  //#region src/components/Underlay.styles.ts
1294
- const Underlay = (0, __marigold_system.cva)(["bg-black/80 px-4"]);
1405
+ const Underlay = (0, _marigold_system.cva)({ base: "bg-black/80 px-4" });
1295
1406
 
1296
1407
  //#endregion
1297
1408
  //#region src/components/Loader.styles.ts
1298
1409
  const Loader = {
1299
- container: (0, __marigold_system.cva)("grid place-items-center text-brand", {
1410
+ container: (0, _marigold_system.cva)({
1411
+ base: "grid place-items-center text-brand",
1300
1412
  variants: {
1301
1413
  variant: {
1302
1414
  default: "",
@@ -1313,7 +1425,8 @@ const Loader = {
1313
1425
  size: "default"
1314
1426
  }
1315
1427
  }),
1316
- loader: (0, __marigold_system.cva)("size-full", {
1428
+ loader: (0, _marigold_system.cva)({
1429
+ base: "size-full",
1317
1430
  variants: {
1318
1431
  variant: {
1319
1432
  default: "",
@@ -1330,13 +1443,14 @@ const Loader = {
1330
1443
  size: "default"
1331
1444
  }
1332
1445
  }),
1333
- label: (0, __marigold_system.cva)("text-current text-sm")
1446
+ label: (0, _marigold_system.cva)({ base: "text-current text-sm" })
1334
1447
  };
1335
1448
 
1336
1449
  //#endregion
1337
1450
  //#region src/components/Breadcrumbs.styles.ts
1338
1451
  const Breadcrumbs = {
1339
- container: (0, __marigold_system.cva)(["flex flex-wrap items-center gap-1.5 wrap-break-word text-sm sm:gap-2.5 text-muted-foreground"], {
1452
+ container: (0, _marigold_system.cva)({
1453
+ base: ["flex flex-wrap items-center gap-1 wrap-break-word text-sm sm:gap-1.5 text-muted-foreground"],
1340
1454
  variants: {
1341
1455
  variant: { default: "" },
1342
1456
  size: {
@@ -1350,38 +1464,39 @@ const Breadcrumbs = {
1350
1464
  size: "default"
1351
1465
  }
1352
1466
  }),
1353
- item: (0, __marigold_system.cva)("inline-flex items-center gap-1.5 sm:gap-2.5"),
1354
- link: (0, __marigold_system.cva)("transition-colors hover:text-foreground cursor-pointer"),
1355
- current: (0, __marigold_system.cva)("font-normal text-foreground")
1467
+ item: (0, _marigold_system.cva)({ base: "inline-flex items-center gap-1.5 sm:gap-2.5" }),
1468
+ link: (0, _marigold_system.cva)({ base: "transition-colors hover:text-foreground cursor-pointer" }),
1469
+ current: (0, _marigold_system.cva)({ base: "font-normal text-foreground" })
1356
1470
  };
1357
1471
 
1358
1472
  //#endregion
1359
1473
  //#region src/components/FileField.styles.ts
1360
1474
  const FileField = {
1361
- container: (0, __marigold_system.cva)("space-y-2 "),
1362
- dropZone: (0, __marigold_system.cva)([
1475
+ container: (0, _marigold_system.cva)({ base: "space-y-2 " }),
1476
+ dropZone: (0, _marigold_system.cva)({ base: [
1363
1477
  "relative flex min-h-52 flex-col items-center overflow-hidden",
1364
1478
  "rounded-xl border border-dashed border-surface-border",
1365
1479
  "p-4 transition-[color,background] not-data-files:justify-center",
1366
1480
  "data-[drop-target=true]:bg-muted",
1367
1481
  "focus-visible:bg-focus/50"
1368
- ]),
1369
- dropZoneContent: (0, __marigold_system.cva)("flex flex-col items-center justify-center gap-2 px-4 py-3 text-center"),
1370
- dropZoneLabel: (0, __marigold_system.cva)("text-sm font-medium"),
1371
- item: (0, __marigold_system.cva)([
1482
+ ] }),
1483
+ dropZoneContent: (0, _marigold_system.cva)({ base: "flex flex-col items-center justify-center gap-2 px-4 py-3 text-center" }),
1484
+ dropZoneLabel: (0, _marigold_system.cva)({ base: "text-sm font-medium" }),
1485
+ item: (0, _marigold_system.cva)({ base: [
1372
1486
  "[grid-template-areas:'label_remove'_'description_remove'] grid-cols-[1fr_auto] gap-y-0.5 gap-x-2",
1373
1487
  "p-2",
1374
1488
  "ui-surface shadow-elevation-border"
1375
- ]),
1376
- itemLabel: (0, __marigold_system.cva)(["truncate text-[13px] font-medium"]),
1377
- itemDescription: (0, __marigold_system.cva)(["text-muted-foreground text-xs"]),
1378
- itemRemove: (0, __marigold_system.cva)(["flex items-center"])
1489
+ ] }),
1490
+ itemLabel: (0, _marigold_system.cva)({ base: ["truncate text-[13px] font-medium"] }),
1491
+ itemDescription: (0, _marigold_system.cva)({ base: ["text-muted-foreground text-xs"] }),
1492
+ itemRemove: (0, _marigold_system.cva)({ base: ["flex items-center"] })
1379
1493
  };
1380
1494
 
1381
1495
  //#endregion
1382
1496
  //#region src/components/ToggleButton.styles.ts
1383
1497
  const ToggleButton = {
1384
- group: (0, __marigold_system.cva)("group inline-flex ui-surface shadow-elevation-border", {
1498
+ group: (0, _marigold_system.cva)({
1499
+ base: "group inline-flex ui-surface shadow-elevation-border",
1385
1500
  variants: { size: {
1386
1501
  default: "text-sm",
1387
1502
  small: "text-xs",
@@ -1389,16 +1504,17 @@ const ToggleButton = {
1389
1504
  } },
1390
1505
  defaultVariants: { size: "default" }
1391
1506
  }),
1392
- button: (0, __marigold_system.cva)([
1393
- ...buttonBase,
1394
- "ui-surface shadow-elevation-border",
1395
- "hover:[--ui-background-color:var(--color-hover)] hover:text-foreground",
1396
- "disabled:border-0 disabled:shadow-none disabled:[--ui-background-color:var(--color-disabled)]",
1397
- "selected:[--ui-background-color:var(--color-input)] selected:shadow-none",
1398
- "in-[.group]:rounded-none in-[.group]:shadow-none in-[.group]:border-y-0 in-[.group]:border-l-0",
1399
- "in-[.group]:first:rounded-l-surface",
1400
- "in-[.group]:last:rounded-r-surface in-[.group]:last:border-r-0"
1401
- ], {
1507
+ button: (0, _marigold_system.cva)({
1508
+ base: [
1509
+ "ui-button-base gap-2",
1510
+ "ui-surface shadow-elevation-border",
1511
+ "hover:[--ui-background-color:var(--color-hover)] hover:text-foreground",
1512
+ "disabled:border-0 disabled:shadow-none disabled:[--ui-background-color:var(--color-disabled)]",
1513
+ "selected:[--ui-background-color:var(--color-input)] selected:shadow-none",
1514
+ "in-[.group]:rounded-none in-[.group]:shadow-none in-[.group]:border-y-0 in-[.group]:border-l-0",
1515
+ "in-[.group]:first:rounded-l-surface",
1516
+ "in-[.group]:last:rounded-r-surface in-[.group]:last:border-r-0"
1517
+ ],
1402
1518
  variants: { size: {
1403
1519
  default: "text-sm",
1404
1520
  small: "text-xs",
@@ -1422,9 +1538,22 @@ const ToggleButton = {
1422
1538
  })
1423
1539
  };
1424
1540
 
1541
+ //#endregion
1542
+ //#region src/components/TopNavigation.styles.ts
1543
+ const TopNavigation = {
1544
+ container: (0, _marigold_system.cva)({ base: [
1545
+ "w-full min-h-14",
1546
+ "bg-background border-b border-border shadow-elevation-border",
1547
+ "gap-4 px-3 pt-2 sm:gap-6 md:gap-8 lg:gap-12"
1548
+ ] }),
1549
+ start: (0, _marigold_system.cva)({ base: "flex justify-start gap-4" }),
1550
+ middle: (0, _marigold_system.cva)({ base: ["flex items-end", "p-1 -m-1"] }),
1551
+ end: (0, _marigold_system.cva)({ base: "flex justify-end gap-4" })
1552
+ };
1553
+
1425
1554
  //#endregion
1426
1555
  //#region src/components/index.ts
1427
- var components_exports = /* @__PURE__ */ __export({
1556
+ var components_exports = /* @__PURE__ */ __exportAll({
1428
1557
  Accordion: () => Accordion,
1429
1558
  ActionBar: () => ActionBar,
1430
1559
  Autocomplete: () => Autocomplete,
@@ -1466,6 +1595,7 @@ var components_exports = /* @__PURE__ */ __export({
1466
1595
  Radio: () => Radio,
1467
1596
  SectionMessage: () => SectionMessage,
1468
1597
  Select: () => Select,
1598
+ Sidebar: () => Sidebar,
1469
1599
  Slider: () => Slider,
1470
1600
  Switch: () => Switch,
1471
1601
  Table: () => Table,
@@ -1477,6 +1607,7 @@ var components_exports = /* @__PURE__ */ __export({
1477
1607
  Toast: () => Toast,
1478
1608
  ToggleButton: () => ToggleButton,
1479
1609
  Tooltip: () => Tooltip,
1610
+ TopNavigation: () => TopNavigation,
1480
1611
  Tray: () => Tray,
1481
1612
  Underlay: () => Underlay
1482
1613
  });