@marigold/theme-rui 4.0.2 → 5.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -27,10 +27,10 @@ const Accordion = {
27
27
  } },
28
28
  defaultVariants: { variant: "default" }
29
29
  }),
30
- item: (0, __marigold_system.cva)("bg-background border-b last:border-b-0 border-border", {
30
+ item: (0, __marigold_system.cva)("", {
31
31
  variants: { variant: {
32
- default: "",
33
- card: ["rounded-md border px-4 py-1 outline-none last:border-b", "has-focus-visible:util-focus-ring outline-none"]
32
+ default: ["bg-background border-b last:border-b-0 border-border"],
33
+ card: ["ui-surface shadow-elevation-raised py-1 outline-none", "has-[[slot=trigger]:focus-visible]:ui-state-focus outline-none"]
34
34
  } },
35
35
  defaultVariants: { variant: "default" }
36
36
  }),
@@ -41,19 +41,60 @@ const Accordion = {
41
41
  "disabled:cursor-not-allowed disabled:text-disabled-foreground"
42
42
  ], {
43
43
  variants: { variant: {
44
- default: "focus-visible:util-focus-ring outline-none",
45
- card: "outline-none"
44
+ default: "focus-visible:ui-state-focus outline-none",
45
+ card: "px-4 outline-none"
46
46
  } },
47
47
  defaultVariants: { variant: "default" }
48
48
  }),
49
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"),
50
+ content: (0, __marigold_system.cva)("pb-2", { variants: { variant: {
51
+ default: "",
52
+ card: "px-4"
53
+ } } }),
51
54
  icon: (0, __marigold_system.cva)("pointer-events-none shrink-0 opacity-60 transition-transform duration-250")
52
55
  };
53
56
 
57
+ //#endregion
58
+ //#region src/components/ActionBar.styles.ts
59
+ const ActionBar = {
60
+ container: (0, __marigold_system.cva)([
61
+ "relative w-fit",
62
+ "flex items-center justify-between justify-items-center gap-4",
63
+ "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)([
71
+ "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
+ "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
+ ])
85
+ };
86
+
87
+ //#endregion
88
+ //#region src/components/Autocomplete.styles.ts
89
+ const Autocomplete = { mobileTrigger: (0, __marigold_system.cva)("group/input relative flex items-center") };
90
+
54
91
  //#endregion
55
92
  //#region src/components/Badge.styles.ts
56
- const Badge = (0, __marigold_system.cva)(["inline-flex items-center justify-center rounded-full px-2 text-xs font-medium leading-normal transition-colors", "focus-visible:util-focus-ring outline-none"], {
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
+ ], {
57
98
  variants: { variant: {
58
99
  default: "bg-muted text-foreground border border-border",
59
100
  primary: "bg-brand text-brand-foreground ",
@@ -69,22 +110,30 @@ const Badge = (0, __marigold_system.cva)(["inline-flex items-center justify-cent
69
110
 
70
111
  //#endregion
71
112
  //#region src/components/Button.styles.ts
72
- const Button = (0, __marigold_system.cva)([
113
+ const buttonBase = [
73
114
  "inline-flex items-center justify-center gap-2",
74
- "whitespace-nowrap rounded-md font-medium transition-[color,box-shadow,transform]",
75
- "duration-150 active:scale-[0.98] pressed:scale-[0.98]",
115
+ "whitespace-nowrap rounded-surface font-medium transition-[color,box-shadow,transform]",
76
116
  "[&_svg]:pointer-events-none [&_svg]:shrink-0",
77
- "focus-visible:util-focus-ring outline-none disabled:util-disabled",
78
- "pending:text-disabled-foreground pending:bg-disabled pending:cursor-not-allowed pending:border-none",
117
+ "focus-visible:ui-state-focus outline-none disabled:ui-state-disabled",
79
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"
80
124
  ], {
81
125
  variants: {
82
126
  variant: {
83
- primary: "bg-brand text-brand-foreground shadow-xs hover:bg-brand/90",
84
- secondary: "border border-input bg-background shadow-xs hover:bg-hover hover:text-foreground expanded:bg-hover",
85
- destructive: "bg-destructive text-destructive-foreground shadow-xs hover:bg-destructive/90",
86
- "destructive-ghost": "text-destructive hover:bg-destructive/10",
127
+ primary: "bg-brand text-brand-foreground hover:bg-brand/90",
128
+ secondary: [
129
+ "ui-surface shadow-elevation-border",
130
+ "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
+ "expanded:[--ui-background-color:var(--color-hover)]"
133
+ ],
87
134
  ghost: "hover:bg-hover hover:text-foreground",
135
+ destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
136
+ "destructive-ghost": "text-destructive hover:bg-destructive/10",
88
137
  link: "text-link util-touch-hitbox"
89
138
  },
90
139
  size: {
@@ -118,7 +167,7 @@ const Button = (0, __marigold_system.cva)([
118
167
  "destructive-ghost"
119
168
  ],
120
169
  size: "default",
121
- class: "h-button px-4 py-2 [&_svg]:size-4"
170
+ class: "h-button p-squish-relaxed [&_svg]:size-4"
122
171
  },
123
172
  {
124
173
  variant: [
@@ -159,21 +208,12 @@ const Button = (0, __marigold_system.cva)([
159
208
  //#endregion
160
209
  //#region src/components/Card.styles.ts
161
210
  const Card = (0, __marigold_system.cva)(["p-4 rounded-md"], {
162
- variants: {
163
- variant: {
164
- default: "util-surface-raised",
165
- master: "rounded-md bg-access-master/30 p-4 border border-access-master",
166
- admin: "rounded-md bg-access-admin/30 p-4 border border-access-admin"
167
- },
168
- size: {
169
- default: "",
170
- full: "w-full"
171
- }
172
- },
173
- defaultVariants: {
174
- variant: "default",
175
- size: "default"
176
- }
211
+ variants: { variant: {
212
+ default: "ui-surface shadow-elevation-raised",
213
+ master: "bg-access-master/30 border border-access-master",
214
+ admin: "bg-access-admin/30 border border-access-admin"
215
+ } },
216
+ defaultVariants: { variant: "default" }
177
217
  });
178
218
 
179
219
  //#endregion
@@ -182,7 +222,7 @@ const Checkbox = {
182
222
  checkbox: (0, __marigold_system.cva)([
183
223
  "grid size-4 shrink-0 place-content-center rounded",
184
224
  "border border-input shadow-xs",
185
- "group-focus-visible/checkbox:util-focus-ring outline-none",
225
+ "group-focus-visible/checkbox:ui-state-focus group-focus-visible/checkbox:border-(--ui-border-color) outline-none",
186
226
  "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",
187
227
  "group-selected/checkbox:border-brand group-selected/checkbox:bg-brand group-selected/checkbox:text-brand-foreground",
188
228
  "group-[indeterminate]/checkbox:border-brand group-[indeterminate]/checkbox:bg-brand group-[indeterminate]/checkbox:text-brand-foreground"
@@ -190,36 +230,45 @@ const Checkbox = {
190
230
  container: (0, __marigold_system.cva)("cursor-pointer read-only:cursor-default gap-2"),
191
231
  label: (0, __marigold_system.cva)([
192
232
  "flex items-center gap-1",
193
- "text-sm leading-4 group-[&]/checkboxgroup:font-normal font-medium text-foregroun",
233
+ "text-sm leading-4 group-[&]/checkboxgroup:font-normal font-medium text-foreground",
194
234
  "group-disabled/checkbox:text-disabled-foreground"
195
235
  ]),
196
- group: (0, __marigold_system.cva)()
236
+ group: (0, __marigold_system.cva)("flex flex-col gap-1")
197
237
  };
198
238
 
199
239
  //#endregion
200
240
  //#region src/components/Calendar.styles.ts
201
241
  const Calendar = {
202
- calendar: (0, __marigold_system.cva)("rounded-md border group-[[data-trigger]]/popover:border-0 border-border p-2"),
242
+ calendar: (0, __marigold_system.cva)([
243
+ "ui-surface shadow-elevation-border p-2",
244
+ "group-data-trigger/popover:shadow-elevation-overlay",
245
+ "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"),
203
249
  calendarCell: (0, __marigold_system.cva)([
204
250
  "relative flex size-9 items-center justify-center whitespace-nowrap rounded-lg justify-self-center",
205
251
  "border border-transparent p-0 text-sm font-normal text-foreground",
206
- "outline-offset-2 duration-150 [transition-property:color,background-color,border-radius,box-shadow]",
207
- "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",
208
- "disabled:opacity-30 data-[unavailable]:opacity-30",
209
- "focus-visible:util-focus-borderless-ring outline-none"
252
+ "outline-offset-2 duration-150 transition-all",
253
+ "selected:bg-brand selected:text-brand-foreground",
254
+ "data-hovered:bg-hover data-hovered:text-foreground",
255
+ "data-focus-visible:z-10 focus-visible:ui-state-focus outline-none",
256
+ "disabled:pointer-events-none disabled:opacity-30",
257
+ "unavailable:pointer-events-none unavailable:opacity-30 unavailable:line-through",
258
+ "outside-month:hidden"
210
259
  ]),
211
260
  calendarControllers: (0, __marigold_system.cva)([
212
261
  "size-9 rounded-lg",
213
262
  "text-muted-foreground/80",
214
263
  "transition-colors",
215
- "focus-visible:util-focus-ring outline-none"
264
+ "focus-visible:ui-state-focus outline-none"
216
265
  ]),
217
266
  calendarHeader: (0, __marigold_system.cva)(["size-9 rounded-lg p-0 text-xs font-medium text-muted-foreground/80"]),
218
- calendarGrid: (0, __marigold_system.cva)("[&_td]:p-2"),
267
+ calendarGrid: (0, __marigold_system.cva)("[&_td]:p-2 [&_td]:group-[[role=dialog]]/tray:p-0.75"),
219
268
  calendarListboxButton: (0, __marigold_system.cva)([
220
269
  "rounded-md text-sm font-medium transition-[color,box-shadow]",
221
270
  "px-4 py-2",
222
- "focus-visible:util-focus-ring outline-none",
271
+ "focus-visible:ui-state-focus outline-none",
223
272
  "cursor-pointer",
224
273
  "hover:bg-hover",
225
274
  "aria-selected:bg-brand aria-selected:text-brand-foreground aria-selected:shadow-xs aria-selected:hover:bg-brand/90"
@@ -227,7 +276,7 @@ const Calendar = {
227
276
  select: (0, __marigold_system.cva)([
228
277
  "[&svg]:text-muted-foreground/80",
229
278
  "flex w-full px-3 py-2 rounded-lg shadow-xs border border-input bg-background text-sm text-foreground transition-shadow",
230
- "focus-visible:util-focus-ring outline-none",
279
+ "focus-visible:ui-state-focus outline-none",
231
280
  "h-input",
232
281
  "disabled:cursor-not-allowed disabled:text-disabled-foreground disabled:bg-disabled",
233
282
  "cursor-pointer"
@@ -240,15 +289,18 @@ const CloseButton = (0, __marigold_system.cva)([
240
289
  "flex items-center justify-center whitespace-nowrap",
241
290
  "cursor-pointer",
242
291
  "transition-[color,box-shadow]",
243
- "focus-visible:util-focus-ring outline-none",
292
+ "focus-visible:ui-state-focus outline-none",
244
293
  "rounded-full",
245
- "duration-150 active:scale-[0.98] pressed:scale-[0.98] transition-transform",
294
+ "duration-150 active:scale-[0.97] pressed:scale-[0.97] transition-transform",
246
295
  "[&_svg]:size-4 [&_svg]:opacity-60 [&_svg]:transition-opacity hover:[&_svg]:opacity-100"
247
296
  ]);
248
297
 
249
298
  //#endregion
250
299
  //#region src/components/ComboBox.styles.ts
251
- const ComboBox = (0, __marigold_system.cva)("text-muted-foreground/80 right-2");
300
+ 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")
303
+ };
252
304
 
253
305
  //#endregion
254
306
  //#region src/components/Collapsible.styles.ts
@@ -256,9 +308,9 @@ const Collapsible = {
256
308
  container: (0, __marigold_system.cva)(),
257
309
  trigger: (0, __marigold_system.cva)([
258
310
  "inline-flex gap-2 whitespace-nowrap rounded-md font-medium transition-[color,box-shadow,transform]",
259
- "duration-150 active:scale-[0.98] pressed:scale-[0.98]",
311
+ "duration-150 active:scale-[0.97] pressed:scale-[0.97]",
260
312
  "[&_svg]:pointer-events-none [&_svg]:shrink-0",
261
- "focus-visible:util-focus-ring outline-none disabled:util-disabled",
313
+ "focus-visible:ui-state-focus outline-none disabled:ui-state-disabled",
262
314
  "cursor-pointer"
263
315
  ], {
264
316
  variants: {
@@ -280,81 +332,53 @@ const Collapsible = {
280
332
  //#region src/components/ContextualHelp.styles.ts
281
333
  const ContextualHelp = {
282
334
  trigger: (0, __marigold_system.cva)([
283
- "inline-flex items-center justify-center rounded-full transition-[color,box-shadow] hover:bg-hover hover:text-foreground",
335
+ "inline-flex items-center justify-center rounded-full transition-[color,box-shadow]",
336
+ "hover:util-focus-ring hover:text-foreground",
284
337
  "[&_svg]:pointer-events-none [&_svg]:shrink-0",
285
- "focus-visible:util-focus-ring outline-none",
286
- "cursor-pointer"
338
+ "focus-visible:ui-state-focus outline-none",
339
+ "cursor-pointer util-touch-hitbox"
287
340
  ], {
288
341
  variants: {
289
342
  variant: {
290
343
  help: "",
291
344
  info: ""
292
345
  },
293
- size: {
294
- default: "size-button [&_svg]:size-4",
295
- small: "size-button-small [&_svg]:size-3.5",
296
- large: "size-button-large [&_svg]:size-5"
297
- }
346
+ size: { default: "[&_svg]:size-4" }
298
347
  },
299
348
  defaultVariants: { size: "default" }
300
349
  }),
301
- popover: (0, __marigold_system.cva)([
302
- "flex flex-col gap-0 rounded-xl p-5 util-surface-overlay",
303
- "data-[small]:max-w-3xs data-[medium]:max-w-xs data-[large]:max-w-md",
304
- "overflow-y-auto util-scrollbar"
350
+ container: (0, __marigold_system.cva)([
351
+ "outline-none",
352
+ "ui-surface shadow-elevation-overlay util-scrollbar",
353
+ "p-5",
354
+ "data-small:max-w-3xs data-medium:max-w-xs data-large:max-w-md"
305
355
  ]),
306
- container: (0, __marigold_system.cva)(""),
307
356
  title: (0, __marigold_system.cva)("text-lg font-semibold mb-1"),
308
357
  content: (0, __marigold_system.cva)("text-sm")
309
358
  };
310
359
 
311
- //#endregion
312
- //#region src/components/Input.styles.ts
313
- const inputContainer = "flex w-full px-3 py-2 rounded-lg shadow-xs border border-input bg-background text-sm text-foreground transition-shadow group-read-only/field:bg-muted";
314
- const inputDisabled = "disabled:cursor-not-allowed disabled:text-disabled-foreground disabled:bg-disabled";
315
- const inputInvalid = "group-invalid/field:border-destructive group-invalid/field:focus:border-destructive group-invalid/field:focus:ring-destructive/20";
316
- const inputReadOnly = "group-read-only/field:bg-muted";
317
- const Input = {
318
- input: (0, __marigold_system.cva)([
319
- inputContainer,
320
- inputDisabled,
321
- inputInvalid,
322
- "focus:util-focus-ring outline-none",
323
- inputReadOnly,
324
- "h-input",
325
- "placeholder:text-placeholder",
326
- "[&[type=file]]:cursor-pointer [&[type=file]]:border-solid [&[type=file]]:bg-background [&[type=file]]:p-0 [&[type=file]]:pr-3 [&[type=file]]:italic [&[type=file]]:text-muted-foreground/70",
327
- "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",
328
- "group-[[data-icon]]/input:pl-8",
329
- "group-[[data-action]]/input:pr-7"
330
- ]),
331
- icon: (0, __marigold_system.cva)(["pointer-events-none left-2", "text-muted-foreground disabled:text-disabled-foreground"]),
332
- action: (0, __marigold_system.cva)(["text-muted-foreground pr-1"])
333
- };
334
-
335
360
  //#endregion
336
361
  //#region src/components/DateField.styles.ts
337
362
  const DateField = {
338
363
  field: (0, __marigold_system.cva)([
339
- "h-input",
340
- inputContainer,
341
- inputDisabled,
342
- "has-focus-visible:util-focus-ring outline-none",
343
- inputInvalid,
344
- inputReadOnly,
345
- "invalid:focus-within:border-destructive invalid:focus-within:ring-destructive/20",
346
- "data-[focus-within]:util-focus-ring outline-0"
364
+ "ui-surface shadow-elevation-border h-input",
365
+ "flex items-center",
366
+ "disabled:ui-state-disabled",
367
+ "group-read-only/field:ui-state-readonly",
368
+ "has-focus:ui-state-focus",
369
+ "has-invalid:ui-state-error has-focus:has-invalid:ring-destructive/20"
347
370
  ]),
371
+ input: (0, __marigold_system.cva)(["ui-input", "cursor-text"]),
348
372
  segment: (0, __marigold_system.cva)([
349
- inputDisabled,
350
- "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 ",
351
- "data-[focused]:bg-focus",
352
- "data-[placeholder]:disabled:text-disabled-foreground",
353
- "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",
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",
374
+ "disabled:cursor-not-allowed disabled:text-disabled-foreground disabled:bg-disabled",
375
+ "data-focused:bg-focus",
376
+ "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",
354
378
  "group/segment",
355
379
  "outline-0",
356
380
  "whitespace-pre",
357
- "data-[placeholder]:text-placeholder text-foreground data-[focused]:bg-focus data-[focused]:text-foreground rounded leading-none"
381
+ "data-placeholder:text-placeholder text-foreground data-focused:bg-focus data-focused:text-foreground rounded leading-none"
358
382
  ]),
359
383
  action: (0, __marigold_system.cva)("fill-muted-foreground disabled:text-disabled-foreground group-invalid/field:fill-destructive")
360
384
  };
@@ -362,17 +386,18 @@ const DateField = {
362
386
  //#endregion
363
387
  //#region src/components/DatePicker.styles.ts
364
388
  const DatePicker = (0, __marigold_system.cva)([
365
- "relative h-input -top-2",
389
+ "h-input pr-3",
366
390
  "text-muted-foreground/80",
367
391
  "hover:text-brand",
368
- "disabled:cursor-not-allowed"
392
+ "disabled:cursor-not-allowed",
393
+ "util-touch-hitbox"
369
394
  ]);
370
395
 
371
396
  //#endregion
372
397
  //#region src/components/Dialog.styles.ts
373
398
  const Dialog = {
374
399
  closeButton: (0, __marigold_system.cva)(["absolute top-6 right-3", "size-7 "]),
375
- container: (0, __marigold_system.cva)(["flex flex-col gap-0 rounded-xl p-6 overflow-y-auto", "util-surface-overlay"], { variants: {
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: {
376
401
  variant: {},
377
402
  size: {
378
403
  xsmall: "",
@@ -400,32 +425,70 @@ const Divider = (0, __marigold_system.cva)("bg-border h-px w-full", {
400
425
  //#region src/components/Drawer.styles.ts
401
426
  const Drawer = {
402
427
  overlay: (0, __marigold_system.cva)([
403
- "group/overlay z-40",
404
- "data-[placement=top]:w-full data-[placement=top]:entering:animate-slide-in-top data-[placement=top]:exiting:animate-slide-out-top data-[placement=top]:top-0 data-[placement=top]:left-0",
405
- "data-[placement=bottom]:w-full data-[placement=bottom]:entering:animate-slide-in-bottom data-[placement=bottom]:exiting:animate-slide-out-bottom data-[placement=bottom]:bottom-0 data-[placement=bottom]:left-0",
406
- "data-[placement=left]:entering:animate-slide-in-left data-[placement=left]:exiting:animate-slide-out-left data-[placement=left]:top-0 data-[placement=left]:left-0",
407
- "data-[placement=right]:entering:animate-slide-in-right data-[placement=right]:exiting:animate-slide-out-right data-[placement=right]:top-0 data-[placement=right]:right-0"
428
+ "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"
408
433
  ]),
409
434
  container: (0, __marigold_system.cva)([
410
435
  "w-full relative grid-rows-[auto_1fr_auto]",
411
- "util-surface-overlay",
412
- "data-[placement=top]:w-full data-[placement=bottom]:w-full"
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"
413
439
  ], { variants: { size: {
414
- xsmall: "w-64 data-[placement=top]:h-48 data-[placement=bottom]:h-48",
415
- small: "w-72 data-[placement=top]:h-64 data-[placement=bottom]:h-64",
416
- medium: "w-96 data-[placement=top]:h-80 data-[placement=bottom]:h-80"
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"
417
443
  } } }),
418
- closeButton: (0, __marigold_system.cva)(["absolute top-3.5 right-3 z-50", "size-7"]),
444
+ closeButton: (0, __marigold_system.cva)(["absolute top-3.5 right-3", "size-7"]),
419
445
  header: (0, __marigold_system.cva)("border-border border-b px-6 py-4"),
420
446
  title: (0, __marigold_system.cva)("font-semibold text-base"),
421
447
  content: (0, __marigold_system.cva)("px-6 py-4 overflow-y-auto outline-none"),
422
448
  actions: (0, __marigold_system.cva)("flex flex-row gap-3 justify-end border-border border-t px-6 py-4")
423
449
  };
424
450
 
451
+ //#endregion
452
+ //#region src/components/EmptyState.styles.ts
453
+ 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"])
458
+ };
459
+
425
460
  //#endregion
426
461
  //#region src/components/IconButton.styles.ts
427
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" } } });
428
463
 
464
+ //#endregion
465
+ //#region src/components/Input.styles.ts
466
+ const Input = {
467
+ input: (0, __marigold_system.cva)([
468
+ "ui-surface shadow-elevation-border ui-input",
469
+ "disabled:ui-state-disabled",
470
+ "group-read-only/field:ui-state-readonly",
471
+ "invalid:ui-state-error",
472
+ "focus:ui-state-focus outline-none",
473
+ "group-read-only/field:cursor-default",
474
+ "group-data-icon/input:pl-8",
475
+ "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",
477
+ "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
+ "[&[type=color]]:h-input",
479
+ "[&::-webkit-color-swatch-wrapper]:p-0",
480
+ "[&::-webkit-color-swatch]:p-2 [&::-moz-color-swatch]:p-2",
481
+ "[&::-webkit-color-swatch]:rounded-[inherit] [&::-moz-color-swatch]:rounded-[inherit]",
482
+ "[&::-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"])
490
+ };
491
+
429
492
  //#endregion
430
493
  //#region src/components/Field.styles.ts
431
494
  const Field = (0, __marigold_system.cva)("space-y-2");
@@ -505,15 +568,22 @@ const List = {
505
568
  //#endregion
506
569
  //#region src/components/ListBox.styles.ts
507
570
  const ListBox = {
508
- container: (0, __marigold_system.cva)(["overflow-hidden rounded-md border border-input group-[[data-trigger]]/popover:border-0"]),
509
- list: (0, __marigold_system.cva)(["bg-background p-1 text-sm outline-0 space-y-px"]),
571
+ container: (0, __marigold_system.cva)([
572
+ "flex ui-surface",
573
+ "not-group-data-trigger/popover:",
574
+ "group-data-trigger/popover:shadow-elevation-overlay",
575
+ "group-data-trigger/popover:w-full",
576
+ "group-data-trigger/popover:overflow-hidden",
577
+ "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"]),
510
580
  item: (0, __marigold_system.cva)([
511
581
  "relative grid grid-cols-[auto_1fr] items-center gap-x-2 rounded-md px-2 py-1.5 text-sm text-foreground",
512
582
  "[&_.selection-indicator>svg]:invisible [&_.selection-indicator>svg]:block",
513
583
  "selected:bg-selected selected:[&_.selection-indicator>svg]:visible",
514
584
  "hover:bg-hover hover:text-hover-foreground",
515
585
  "disabled:cursor-not-allowed disabled:text-disabled-foreground",
516
- "focus-visible:util-focus-ring outline-none focus-visible:z-1",
586
+ "focus-visible:ui-state-focus outline-none focus-visible:z-1 transition-[border,color]",
517
587
  "cursor-default data-selection-mode:cursor-pointer",
518
588
  "[&_[slot=description]]:col-start-2 [&_[slot=description]]:row-start-2 [&_[slot=description]]:text-xs [&_[slot=description]]:text-muted-foreground"
519
589
  ]),
@@ -524,9 +594,13 @@ const ListBox = {
524
594
  //#endregion
525
595
  //#region src/components/Menu.styles.ts
526
596
  const Menu = {
527
- container: (0, __marigold_system.cva)(["text-foreground z-50 overflow-hidden rounded-md p-1 outline-none"]),
597
+ container: (0, __marigold_system.cva)([
598
+ "ui-surface shadow-elevation-overlay w-full",
599
+ "text-foreground overflow-hidden p-1 outline-none",
600
+ "group-[[role=dialog]]/tray:border-0 group-[[role=dialog]]/tray:shadow-none"
601
+ ]),
528
602
  item: (0, __marigold_system.cva)([
529
- "relative flex cursor-pointer items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none text-nowrap",
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",
530
604
  "disabled:text-disabled-foreground",
531
605
  "[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg]:size-4"
532
606
  ], {
@@ -536,17 +610,17 @@ const Menu = {
536
610
  } },
537
611
  defaultVariants: { variant: "default" }
538
612
  }),
539
- section: (0, __marigold_system.cva)("text-muted-foreground px-2 py-1.5 text-xs font-medium border-t border-t-border in-first:border-t-0"),
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"),
540
614
  button: (0, __marigold_system.cva)([
541
- "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-[color,box-shadow]",
542
- "[&_svg]:shrink-0 [&_svg]:pointer-events-none",
543
- "focus-visible:util-focus-ring outline-none disabled:util-disabled",
544
- "cursor-pointer"
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"
545
619
  ], {
546
620
  variants: {
547
621
  variant: {
548
- default: "border border-input bg-background shadow-xs hover:bg-hover hover:text-foreground expanded:bg-hover",
549
- ghost: "hover:bg-hover hover:text-foreground expanded:bg-hover"
622
+ default: "ui-surface expanded:bg-hover",
623
+ ghost: "hover:bg-hover hover:text-foreground expanded:bg-hover rounded-surface"
550
624
  },
551
625
  size: {
552
626
  default: "h-button px-4 py-2 [&_svg]:size-4",
@@ -582,7 +656,7 @@ const Modal = (0, __marigold_system.cva)([
582
656
  const MultiSelect = {
583
657
  field: (0, __marigold_system.cva)("space-y-2"),
584
658
  container: (0, __marigold_system.cva)([
585
- "bg-background shadow-xs border",
659
+ "ui-surface",
586
660
  "px-3 text-sm text-foreground transition-shadow",
587
661
  "border border-input rounded-lg outline-hidden",
588
662
  "aria-disabled:bg-disabled aria-disabled:text-disabled-foreground aria-disabled:hover:border-input aria-disabled:border-input aria-disabled:cursor-not-allowed",
@@ -609,15 +683,15 @@ const MultiSelect = {
609
683
  ]),
610
684
  closeButton: (0, __marigold_system.cva)("size-4 cursor-pointer border-none bg-transparent p-0 leading-normal outline-0"),
611
685
  icon: (0, __marigold_system.cva)("left-1"),
612
- listContainer: (0, __marigold_system.cva)(["util-surface-overlay mt-0.5 rounded-lg outline-0"]),
686
+ listContainer: (0, __marigold_system.cva)(["ui-surface shadow-elevation-overlay mt-0.5 outline-0"]),
613
687
  list: (0, __marigold_system.cva)("pointer-events-auto space-y-1 p-1"),
614
688
  option: (0, __marigold_system.cva)([
615
689
  "text-sm text-foreground",
616
690
  "flex flex-col",
617
691
  "cursor-pointer p-2 outline-hidden",
618
- "[&.isFocused:not([aria-disabled=true])]:!text-foreground [&.isFocused[aria-disabled=true]]:bg-transparent",
692
+ "[&.isFocused:not([aria-disabled=true])]:text-foreground! [&.isFocused[aria-disabled=true]]:bg-transparent",
619
693
  "aria-disabled:text-disabled-foreground aria-disabled:cursor-not-allowed",
620
- "[&.isFocused:not([aria-disabled=true])]:!bg-hover"
694
+ "[&.isFocused:not([aria-disabled=true])]:bg-hover!"
621
695
  ]),
622
696
  valueContainer: (0, __marigold_system.cva)("gap-2")
623
697
  };
@@ -626,22 +700,24 @@ const MultiSelect = {
626
700
  //#region src/components/NumberField.styles.ts
627
701
  const NumberField = {
628
702
  group: (0, __marigold_system.cva)([
629
- "rounded-lg h-input bg-background",
630
- "has-focus-visible:util-focus-ring outline-none",
631
- inputInvalid,
632
- inputReadOnly,
633
- "border border-input text-sm shadow-xs transition-shadow",
634
- "data-invalid:data-[focus-within]:border-destructive data-invalid:data-[focus-within]:ring-destructive/20"
703
+ "ui-surface shadow-elevation-border h-input",
704
+ "has-invalid:ui-state-error",
705
+ "has-disabled:ui-state-disabled",
706
+ "group-read-only/field:ui-state-readonly",
707
+ "has-focus:ui-state-focus outline-none"
635
708
  ]),
636
709
  stepper: (0, __marigold_system.cva)([
637
- "w-7 h-full text-center shrink-0",
710
+ "w-8 h-full text-center shrink-0 grid palce-items-center",
711
+ "text-foreground",
638
712
  "disabled:text-disabled-foreground disabled:bg-disabled",
639
- "border-input! first-of-type:border-r! last-of-type:border-l!"
713
+ "border-input!",
714
+ "first-of-type:border-r! first-of-type:rounded-l-[calc(var(--radius-lg)-1px)]",
715
+ "last-of-type:border-l! last-of-type:rounded-r-[calc(var(--radius-lg)-1px)]"
640
716
  ]),
641
717
  input: (0, __marigold_system.cva)([
642
- "tabular-nums text-foreground px-3 py-2",
643
- "min-w-0 flex-1 bg-transparent",
644
- "group-[[data-stepper]]/field:text-center",
718
+ "ui-input",
719
+ "flex-1",
720
+ "group-data-stepper/field:text-center",
645
721
  "disabled:text-disabled-foreground disabled:bg-disabled"
646
722
  ])
647
723
  };
@@ -650,12 +726,11 @@ const NumberField = {
650
726
  //#region src/components/Popover.styles.ts
651
727
  const Popover = (0, __marigold_system.cva)([
652
728
  "group/popover",
653
- "text-foreground z-50 overflow-y-auto overflow-x-hidden rounded-md outline-0",
729
+ "outline-0",
654
730
  "placement-top:mb-1",
655
731
  "placement-bottom:mt-1",
656
732
  "placement-right:ml-1",
657
- "placement-left:mr-1",
658
- "util-surface-overlay"
733
+ "placement-left:mr-1"
659
734
  ]);
660
735
 
661
736
  //#endregion
@@ -666,7 +741,7 @@ const Radio = {
666
741
  radio: (0, __marigold_system.cva)([
667
742
  "aspect-square size-4 rounded-full",
668
743
  "border border-input shadow-xs",
669
- "group-focus-visible/radio:util-focus-ring outline-none",
744
+ "group-focus-visible/radio:ui-state-focus outline-none",
670
745
  "group-disabled/radio:group-selected/radio:bg-disabled group-disabled/radio:border-disabled! group-disabled/radio:cursor-not-allowed",
671
746
  "group-selected/radio:border-brand group-selected/radio:bg-brand group-selected/radio:text-brand-foreground"
672
747
  ]),
@@ -677,7 +752,7 @@ const Radio = {
677
752
  //#region src/components/Pagination.styles.ts
678
753
  const button = [
679
754
  "inline-flex items-center justify-center whitespace-nowrap rounded-lg text-sm font-medium transition-colors",
680
- "focus-visible:util-focus-ring outline-none",
755
+ "focus-visible:ui-state-focus outline-none",
681
756
  "disabled:pointer-events-none disabled:bg-disabled disabled:text-disabled-foreground",
682
757
  "[&_svg]:pointer-events-none [&_svg]:shrink-0",
683
758
  "hover:bg-hover hover:text-hover-foreground",
@@ -694,7 +769,7 @@ const Pagination = {
694
769
  pageButton: (0, __marigold_system.cva)([
695
770
  ...button,
696
771
  "bg-background size-9",
697
- "data-[selected=true]:border data-[selected=true]:border-input data-[selected=true]:shadow-xs"
772
+ "data-[selected=true]:ui-surface data-[selected=true]:shadow-elevation-border"
698
773
  ]),
699
774
  icon: (0, __marigold_system.cva)("h-4 w-4"),
700
775
  ellipsis: (0, __marigold_system.cva)("text-foreground flex h-8 w-8 items-center justify-center")
@@ -783,12 +858,11 @@ const SectionMessage = {
783
858
  const Select = {
784
859
  icon: (0, __marigold_system.cva)("text-muted-foreground/80"),
785
860
  select: (0, __marigold_system.cva)([
786
- inputContainer,
787
- inputInvalid,
788
- inputDisabled,
789
- "focus-visible:util-focus-ring outline-none",
790
- "h-input",
861
+ "ui-surface shadow-elevation-border ui-input h-input ",
791
862
  "cursor-pointer",
863
+ "group-invalid/field:ui-state-error",
864
+ "disabled:ui-state-disabled",
865
+ "focus-visible:ui-state-focus outline-none",
792
866
  "*:data-placeholder:text-placeholder",
793
867
  "has-[+_[aria-hidden=true]]:mb-0"
794
868
  ])
@@ -798,11 +872,11 @@ const Select = {
798
872
  //#region src/components/Slider.styles.ts
799
873
  const Slider = {
800
874
  container: (0, __marigold_system.cva)("*:aria-hidden:hidden"),
801
- track: (0, __marigold_system.cva)(["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"]),
802
- selectedTrack: (0, __marigold_system.cva)(["absolute bg-black data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full rounded-lg"]),
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"]),
803
877
  thumb: (0, __marigold_system.cva)([
804
878
  "block h-5 w-5 rounded-full border-2 border-primary bg-background transition-colors",
805
- "focus-visible:util-focus-borderless-ring outline-none",
879
+ "focus-visible:ui-state-focus outline-none",
806
880
  "disabled:cursor-not-allowed"
807
881
  ]),
808
882
  output: (0, __marigold_system.cva)("text-foreground text-sm")
@@ -817,7 +891,7 @@ const Switch = {
817
891
  "border-2 border-transparent",
818
892
  "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",
819
893
  "group-selected/switch:bg-brand bg-input",
820
- "group-focus-visible/switch:util-focus-borderless-ring outline-none"
894
+ "group-focus-visible/switch:ui-state-focus outline-none"
821
895
  ]),
822
896
  thumb: (0, __marigold_system.cva)([
823
897
  "pointer-events-none block size-5 rounded-full",
@@ -830,6 +904,127 @@ const Switch = {
830
904
  //#endregion
831
905
  //#region src/components/Table.styles.ts
832
906
  const Table = {
907
+ table: (0, __marigold_system.cva)(["text-sm bg-background"], {
908
+ variants: {
909
+ variant: {
910
+ default: "",
911
+ grid: "border-hidden",
912
+ muted: ""
913
+ },
914
+ size: {
915
+ compact: [
916
+ "[--cell-y-padding:calc(var(--spacing)*1.5)]",
917
+ "[--cell-x-padding:calc(var(--spacing)*2)]",
918
+ "[--header-height:calc(var(--spacing)*8)]"
919
+ ],
920
+ default: [
921
+ "[--cell-y-padding:calc(var(--spacing)*2.5)]",
922
+ "[--cell-x-padding:calc(var(--spacing)*2.5)]",
923
+ "[--header-height:calc(var(--spacing)*10)]"
924
+ ],
925
+ spacious: [
926
+ "[--cell-y-padding:calc(var(--spacing)*4)]",
927
+ "[--cell-x-padding:calc(var(--spacing)*4)]",
928
+ "[--header-height:calc(var(--spacing)*12)]"
929
+ ]
930
+ }
931
+ },
932
+ defaultVariants: {
933
+ variant: "default",
934
+ size: "default"
935
+ }
936
+ }),
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
+ ], {
945
+ variants: { variant: {
946
+ default: "",
947
+ 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"],
948
+ admin: ["bg-access-admin"],
949
+ master: ["bg-access-master"]
950
+ } },
951
+ defaultVariants: { variant: "default" }
952
+ }),
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
+ ], {
961
+ variants: { variant: {
962
+ default: "",
963
+ grid: "not-last:border-r border-border",
964
+ muted: "bg-muted border-t border-border"
965
+ } },
966
+ defaultVariants: { variant: "default" }
967
+ }),
968
+ body: (0, __marigold_system.cva)(["bg-background"]),
969
+ cell: (0, __marigold_system.cva)([
970
+ "px-(--cell-x-padding) py-(--cell-y-padding)",
971
+ "focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-ring/50",
972
+ "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
+ "**:data-cell-content:outline-none"
974
+ ]),
975
+ dragHandle: (0, __marigold_system.cva)([
976
+ "text-muted-foreground rounded size-4",
977
+ "[&_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)([
982
+ "flex items-center justify-center rounded-full",
983
+ "bg-brand-foreground px-2",
984
+ "text-xs font-medium leading-normal text-brand"
985
+ ]),
986
+ dropIndicator: (0, __marigold_system.cva)([
987
+ "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)([
993
+ "flex items-center justify-center",
994
+ "text-foreground/60",
995
+ "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",
1000
+ "[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg]:size-5"
1001
+ ]),
1002
+ editCancel: (0, __marigold_system.cva)([
1003
+ "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]",
1006
+ "cursor-pointer",
1007
+ "ml-1.5",
1008
+ "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",
1011
+ "[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg]:size-5"
1012
+ ]),
1013
+ editSave: (0, __marigold_system.cva)([
1014
+ "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]",
1017
+ "cursor-pointer",
1018
+ "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",
1021
+ "[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg]:size-4.5"
1022
+ ])
1023
+ };
1024
+
1025
+ //#endregion
1026
+ //#region src/components/LegacyTable.styles.ts
1027
+ const LegacyTable = {
833
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: {
834
1029
  default: "",
835
1030
  grid: ""
@@ -854,15 +1049,15 @@ const Table = {
854
1049
  } },
855
1050
  defaultVariants: { variant: "default" }
856
1051
  }),
857
- body: (0, __marigold_system.cva)("[&_tr:last-child]:border-0"),
1052
+ body: (0, __marigold_system.cva)("[&_tr:last-child]:border-0 bg-background"),
858
1053
  row: (0, __marigold_system.cva)([
859
1054
  "border-b border-border transition-colors",
860
1055
  "focus-visible:outline-2 outline-offset-2 outline-ring/70",
861
1056
  "data-disabled:cursor-not-allowed"
862
1057
  ], {
863
1058
  variants: { variant: {
864
- default: "aria-[selected=true]:bg-muted",
865
- grid: "aria-[selected=true]:bg-muted [&>:not(:last-child)]:border-r [&>:not(:last-child)]:border-border",
1059
+ default: "aria-selected:bg-muted",
1060
+ grid: "aria-selected:bg-muted [&>:not(:last-child)]:border-r [&>:not(:last-child)]:border-border",
866
1061
  admin: [
867
1062
  "bg-access-admin",
868
1063
  "[&_td:first-child]:relative [&_td:first-child]:pl-4",
@@ -895,13 +1090,13 @@ const Tabs = {
895
1090
  tab: (0, __marigold_system.cva)([
896
1091
  "relative inline-flex items-center justify-center gap-1 rounded-sm px-3 py-1.5 text-sm font-medium whitespace-nowrap transition-colors",
897
1092
  "[&_svg]:shrink-0",
898
- "focus-visible:util-focus-ring outline-none",
1093
+ "focus-visible:ui-state-focus outline-none",
899
1094
  "hover:bg-hover hover:text-foreground",
900
1095
  "disabled:pointer-events-none disabled:opacity-50",
901
- "data-selected:text-foreground data-selected:hover:bg-hover",
1096
+ "selected:text-foreground selected:hover:bg-hover",
902
1097
  "data-[selected=true]:after:bg-foreground after:absolute after:inset-x-0 after:bottom-0 after:-mb-1 after:h-0.5"
903
1098
  ]),
904
- tabpanel: (0, __marigold_system.cva)(["py-4 rounded-sm", "focus-visible:util-focus-ring outline-none"])
1099
+ tabpanel: (0, __marigold_system.cva)(["py-4 rounded-sm", "focus-visible:ui-state-focus outline-none"])
905
1100
  };
906
1101
 
907
1102
  //#endregion
@@ -909,35 +1104,64 @@ const Tabs = {
909
1104
  const Tag = {
910
1105
  container: (0, __marigold_system.cva)(["flex gap-3", "min-h-7"]),
911
1106
  tag: (0, __marigold_system.cva)([
912
- "relative inline-flex items-center gap-[7px]",
913
- "border border-solid border-input rounded-lg",
1107
+ "relative inline-flex items-center gap-1.75",
1108
+ "ui-surface shadow-elevation-border",
914
1109
  "font-medium text-xs",
915
- "h-7 px-2 cursor-default",
916
- "bg-background",
917
- "selected:text-white selected:bg-brand",
1110
+ "h-6 px-2 cursor-default",
1111
+ "selected:text-white selected:[--ui-background-color:var(--color-brand)]",
918
1112
  "data-disabled:cursor-not-allowed data-disabled:text-disabled-foreground data-disabled:bg-disabled",
919
- "focus-visible:util-focus-ring outline-none"
1113
+ "focus-visible:ui-state-focus outline-none"
920
1114
  ]),
921
1115
  closeButton: (0, __marigold_system.cva)(["size-4", "disabled:bg-disabled disabled:text-disabled-foreground disabled:cursor-not-allowed"]),
922
1116
  listItems: (0, __marigold_system.cva)(["flex flex-wrap gap-1", "mb-0"]),
923
1117
  removeAll: (0, __marigold_system.cva)([
924
1118
  "inline whitespace-nowrap font-medium transition-[color,box-shadow,transform] rounded-md",
925
- "duration-150 active:scale-[0.98] pressed:scale-[0.98]",
926
- "focus-visible:util-focus-ring outline-none",
1119
+ "duration-150 active:scale-[0.97] pressed:scale-[0.97]",
1120
+ "focus-visible:ui-state-focus outline-none",
927
1121
  "cursor-pointer",
928
1122
  "text-link text-xs util-touch-hitbox"
929
1123
  ])
930
1124
  };
931
1125
 
1126
+ //#endregion
1127
+ //#region src/components/TagField.styles.ts
1128
+ const TagField = {
1129
+ trigger: (0, __marigold_system.cva)([
1130
+ "flex w-full items-center justify-between gap-1",
1131
+ "ui-surface shadow-elevation-border ui-input h-fit min-h-input",
1132
+ "cursor-pointer py-1",
1133
+ "group-disabled/field:ui-state-disabled",
1134
+ "has-focus:ui-state-focus",
1135
+ "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)([
1149
+ "ui-surface shadow-elevation-border group/tagfield",
1150
+ "flex flex-col overflow-hidden gap-1.5 p-2",
1151
+ "w-(--tagfield-trigger-width)",
1152
+ "[&_div]:shadow-none! [&_div]:border-0!"
1153
+ ])
1154
+ };
1155
+
932
1156
  //#endregion
933
1157
  //#region src/components/TextArea.styles.ts
934
1158
  const TextArea = (0, __marigold_system.cva)([
935
- inputContainer,
936
- inputInvalid,
937
- "focus:util-focus-ring outline-none",
938
- inputDisabled,
939
- inputReadOnly,
940
- "invalid:text-destructive"
1159
+ "inline-flex",
1160
+ "ui-surface shadow-elevation-border ui-input h-[initial]",
1161
+ "disabled:ui-state-disabled",
1162
+ "group-read-only/field:ui-state-readonly",
1163
+ "invalid:ui-state-error",
1164
+ "focus:ui-state-focus outline-none"
941
1165
  ]);
942
1166
 
943
1167
  //#endregion
@@ -975,10 +1199,10 @@ const Text = (0, __marigold_system.cva)("", {
975
1199
  //#region src/components/Toast.styles.ts
976
1200
  const Toast = {
977
1201
  toast: (0, __marigold_system.cva)([
978
- "z-50",
979
- "max-w-sm w-full pointer-events-auto overflow-hidden rounded-md border shadow-lg bg-background text-foreground border-border",
1202
+ "ui-surface shadow-elevation-overlay",
1203
+ "max-w-sm w-full pointer-events-auto overflow-hidden text-foreground",
980
1204
  "grid grid-cols-[auto_1fr_auto_auto] grid-rows-[auto_auto] gap-x-1 gap-y-0",
981
- "[grid-template-areas:'icon_title_action_close''icon_description_action_close'] focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
1205
+ "[grid-template-areas:'icon_title_action_close''icon_description_action_close'] focus-visible:state-focus outline-none",
982
1206
  "p-4"
983
1207
  ]),
984
1208
  title: (0, __marigold_system.cva)([
@@ -992,7 +1216,7 @@ const Toast = {
992
1216
  "ml-2",
993
1217
  "flex items-center justify-center",
994
1218
  "size-5 rounded transition-[color,box-shadow] outline-none",
995
- "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] text-muted-foreground hover:text-hover-foreground"
1219
+ "focus-visible:ui-state-focus outline-none text-muted-foreground hover:text-hover-foreground"
996
1220
  ]),
997
1221
  icon: (0, __marigold_system.cva)([
998
1222
  "[grid-area:icon]",
@@ -1022,7 +1246,7 @@ const Toast = {
1022
1246
  //#region src/components/Tooltip.styles.ts
1023
1247
  const Tooltip = {
1024
1248
  container: (0, __marigold_system.cva)([
1025
- "relative z-50 max-w-70 rounded-md border px-3 py-1.5 text-sm",
1249
+ "relative max-w-70 rounded-md border px-3 py-1.5 text-sm",
1026
1250
  "placement-top:mb-2",
1027
1251
  "placement-bottom:mt-2",
1028
1252
  "placement-right:ml-2",
@@ -1030,26 +1254,44 @@ const Tooltip = {
1030
1254
  ], {
1031
1255
  variants: { variant: {
1032
1256
  default: "text-brand-foreground bg-brand border-brand",
1033
- white: "text-secondary-foreground border-border bg-white"
1257
+ white: "text-secondary-foreground border-input bg-white"
1034
1258
  } },
1035
1259
  defaultVariants: { variant: "default" }
1036
1260
  }),
1037
1261
  arrow: (0, __marigold_system.cva)([
1038
- "data-[placement=right]:[&_svg]:rotate-90",
1039
- "data-[placement=left]:[&_svg]:-rotate-90",
1040
- "data-[placement=bottom]:[&_svg]:rotate-180"
1262
+ "placement-right:[&_svg]:rotate-90",
1263
+ "placement-left:[&_svg]:-rotate-90",
1264
+ "placement-bottom:[&_svg]:rotate-180"
1041
1265
  ], {
1042
1266
  variants: { variant: {
1043
1267
  default: "fill-brand stroke-brand",
1044
- white: "fill-white stroke-border "
1268
+ white: "fill-white stroke-input "
1045
1269
  } },
1046
1270
  defaultVariants: { variant: "default" }
1047
1271
  })
1048
1272
  };
1049
1273
 
1274
+ //#endregion
1275
+ //#region src/components/Tray.styles.ts
1276
+ 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)([
1279
+ "w-full border-0 inset-shadow-black inset-shadow-sm/20",
1280
+ "relative grid-rows-[auto_auto_1fr_auto] max-h-[95vh] rounded-b-none",
1281
+ "ui-surface ui-elevation-overlay",
1282
+ "outline-hidden grid",
1283
+ "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")
1290
+ };
1291
+
1050
1292
  //#endregion
1051
1293
  //#region src/components/Underlay.styles.ts
1052
- const Underlay = (0, __marigold_system.cva)("bg-black/80 px-4");
1294
+ const Underlay = (0, __marigold_system.cva)(["bg-black/80 px-4"]);
1053
1295
 
1054
1296
  //#endregion
1055
1297
  //#region src/components/Loader.styles.ts
@@ -1117,18 +1359,75 @@ const Breadcrumbs = {
1117
1359
  //#region src/components/FileField.styles.ts
1118
1360
  const FileField = {
1119
1361
  container: (0, __marigold_system.cva)("space-y-2 "),
1120
- dropZone: (0, __marigold_system.cva)("data-[drop-target=true]:bg-muted border-input has-[input:focus]:border-ring has-[input:focus]:ring-ring/50 relative flex min-h-52 flex-col items-center overflow-hidden rounded-xl border border-dashed p-4 transition-colors not-data-[files]:justify-center has-[input:focus]:ring-[3px]"),
1362
+ dropZone: (0, __marigold_system.cva)([
1363
+ "relative flex min-h-52 flex-col items-center overflow-hidden",
1364
+ "rounded-xl border border-dashed border-surface-border",
1365
+ "p-4 transition-[color,background] not-data-files:justify-center",
1366
+ "data-[drop-target=true]:bg-muted",
1367
+ "focus-visible:bg-focus/50"
1368
+ ]),
1121
1369
  dropZoneContent: (0, __marigold_system.cva)("flex flex-col items-center justify-center gap-2 px-4 py-3 text-center"),
1122
1370
  dropZoneLabel: (0, __marigold_system.cva)("text-sm font-medium"),
1123
- item: (0, __marigold_system.cva)("flex min-w-0 flex-col gap-0.5"),
1124
- itemLabel: (0, __marigold_system.cva)("truncate text-[13px] font-medium"),
1125
- itemDescription: (0, __marigold_system.cva)("text-muted-foreground text-xs")
1371
+ item: (0, __marigold_system.cva)([
1372
+ "[grid-template-areas:'label_remove'_'description_remove'] grid-cols-[1fr_auto] gap-y-0.5 gap-x-2",
1373
+ "p-2",
1374
+ "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"])
1379
+ };
1380
+
1381
+ //#endregion
1382
+ //#region src/components/ToggleButton.styles.ts
1383
+ const ToggleButton = {
1384
+ group: (0, __marigold_system.cva)("group inline-flex ui-surface shadow-elevation-border", {
1385
+ variants: { size: {
1386
+ default: "text-sm",
1387
+ small: "text-xs",
1388
+ icon: ""
1389
+ } },
1390
+ defaultVariants: { size: "default" }
1391
+ }),
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
+ ], {
1402
+ variants: { size: {
1403
+ default: "text-sm",
1404
+ small: "text-xs",
1405
+ icon: ""
1406
+ } },
1407
+ defaultVariants: { size: "default" },
1408
+ compoundVariants: [
1409
+ {
1410
+ size: "default",
1411
+ class: "h-button px-4 py-2 [&_svg]:size-4"
1412
+ },
1413
+ {
1414
+ size: "small",
1415
+ class: "h-button-small px-3 [&_svg]:size-3.5"
1416
+ },
1417
+ {
1418
+ size: "icon",
1419
+ class: "size-button [&_svg]:size-4"
1420
+ }
1421
+ ]
1422
+ })
1126
1423
  };
1127
1424
 
1128
1425
  //#endregion
1129
1426
  //#region src/components/index.ts
1130
1427
  var components_exports = /* @__PURE__ */ __export({
1131
1428
  Accordion: () => Accordion,
1429
+ ActionBar: () => ActionBar,
1430
+ Autocomplete: () => Autocomplete,
1132
1431
  Badge: () => Badge,
1133
1432
  Breadcrumbs: () => Breadcrumbs,
1134
1433
  Button: () => Button,
@@ -1144,6 +1443,7 @@ var components_exports = /* @__PURE__ */ __export({
1144
1443
  Dialog: () => Dialog,
1145
1444
  Divider: () => Divider,
1146
1445
  Drawer: () => Drawer,
1446
+ EmptyState: () => EmptyState,
1147
1447
  Field: () => Field,
1148
1448
  FileField: () => FileField,
1149
1449
  Headline: () => Headline,
@@ -1151,6 +1451,7 @@ var components_exports = /* @__PURE__ */ __export({
1151
1451
  IconButton: () => IconButton,
1152
1452
  Input: () => Input,
1153
1453
  Label: () => Label,
1454
+ LegacyTable: () => LegacyTable,
1154
1455
  Link: () => Link,
1155
1456
  List: () => List,
1156
1457
  ListBox: () => ListBox,
@@ -1170,10 +1471,13 @@ var components_exports = /* @__PURE__ */ __export({
1170
1471
  Table: () => Table,
1171
1472
  Tabs: () => Tabs,
1172
1473
  Tag: () => Tag,
1474
+ TagField: () => TagField,
1173
1475
  Text: () => Text,
1174
1476
  TextArea: () => TextArea,
1175
1477
  Toast: () => Toast,
1478
+ ToggleButton: () => ToggleButton,
1176
1479
  Tooltip: () => Tooltip,
1480
+ Tray: () => Tray,
1177
1481
  Underlay: () => Underlay
1178
1482
  });
1179
1483