@marigold/theme-rui 2.3.0 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,1360 +1,1129 @@
1
+ import { cva } from "@marigold/system";
2
+
3
+ //#region rolldown:runtime
1
4
  var __defProp = Object.defineProperty;
2
- var __export = (target, all) => {
3
- for (var name in all)
4
- __defProp(target, name, { get: all[name], enumerable: true });
5
+ var __export = (all) => {
6
+ let target = {};
7
+ for (var name in all) __defProp(target, name, {
8
+ get: all[name],
9
+ enumerable: true
10
+ });
11
+ return target;
5
12
  };
6
13
 
7
- // src/components/index.ts
8
- var components_exports = {};
9
- __export(components_exports, {
10
- Accordion: () => Accordion,
11
- Badge: () => Badge,
12
- Breadcrumbs: () => Breadcrumbs,
13
- Button: () => Button,
14
- Calendar: () => Calendar,
15
- Card: () => Card,
16
- Checkbox: () => Checkbox,
17
- CloseButton: () => CloseButton,
18
- Collapsible: () => Collapsible,
19
- ComboBox: () => ComboBox,
20
- ContextualHelp: () => ContextualHelp,
21
- DateField: () => DateField,
22
- DatePicker: () => DatePicker,
23
- Dialog: () => Dialog,
24
- Divider: () => Divider,
25
- Drawer: () => Drawer,
26
- Field: () => Field,
27
- Headline: () => Headline,
28
- HelpText: () => HelpText,
29
- IconButton: () => IconButton,
30
- Input: () => Input,
31
- Label: () => Label,
32
- Link: () => Link,
33
- List: () => List,
34
- ListBox: () => ListBox,
35
- Menu: () => Menu,
36
- Modal: () => Modal,
37
- MultiSelect: () => MultiSelect,
38
- NumberField: () => NumberField,
39
- Pagination: () => Pagination,
40
- Popover: () => Popover,
41
- ProgressCycle: () => ProgressCycle,
42
- Radio: () => Radio,
43
- SectionMessage: () => SectionMessage,
44
- Select: () => Select,
45
- Slider: () => Slider,
46
- Switch: () => Switch,
47
- Table: () => Table,
48
- Tabs: () => Tabs,
49
- Tag: () => Tag,
50
- Text: () => Text,
51
- TextArea: () => TextArea,
52
- Toast: () => Toast,
53
- Tooltip: () => Tooltip,
54
- Underlay: () => Underlay,
55
- XLoader: () => XLoader
56
- });
57
-
58
- // src/components/Accordion.styles.ts
59
- import { cva } from "@marigold/system";
60
- var Accordion = {
61
- container: cva("flex-col", {
62
- variants: {
63
- variant: {
64
- default: "",
65
- card: "space-y-2"
66
- }
67
- },
68
- defaultVariants: {
69
- variant: "default"
70
- }
71
- }),
72
- item: cva("bg-background border-b last:border-b-0 border-border", {
73
- variants: {
74
- variant: {
75
- default: "",
76
- card: [
77
- "rounded-md border px-4 py-1 outline-none last:border-b",
78
- // TODO: focus is still shown even if an item within the item is focused
79
- "has-focus-visible:util-focus-ring outline-none"
80
- ]
81
- }
82
- },
83
- defaultVariants: {
84
- variant: "default"
85
- }
86
- }),
87
- header: cva(
88
- [
89
- "flex w-full items-center justify-between gap-4 rounded-md py-2 cursor-pointer text-foreground",
90
- "text-left text-sm font-semibold leading-6 transition-all",
91
- "hover:no-underline",
92
- "disabled:cursor-not-allowed disabled:text-disabled-foreground"
93
- ],
94
- {
95
- variants: {
96
- variant: {
97
- default: "focus-visible:util-focus-ring outline-none",
98
- card: "outline-none"
99
- }
100
- },
101
- defaultVariants: {
102
- variant: "default"
103
- }
104
- }
105
- ),
106
- content: cva("in-data-[expanded]:pb-2"),
107
- icon: cva(
108
- "pointer-events-none shrink-0 opacity-60 transition-transform duration-200"
109
- )
14
+ //#endregion
15
+ //#region src/components/Accordion.styles.ts
16
+ const Accordion = {
17
+ container: cva("flex-col", {
18
+ variants: { variant: {
19
+ default: "",
20
+ card: "space-y-2"
21
+ } },
22
+ defaultVariants: { variant: "default" }
23
+ }),
24
+ item: cva("bg-background border-b last:border-b-0 border-border", {
25
+ variants: { variant: {
26
+ default: "",
27
+ card: ["rounded-md border px-4 py-1 outline-none last:border-b", "has-focus-visible:util-focus-ring outline-none"]
28
+ } },
29
+ defaultVariants: { variant: "default" }
30
+ }),
31
+ header: cva([
32
+ "flex w-full items-center justify-between gap-4 rounded-md py-2 cursor-pointer text-foreground",
33
+ "text-left text-base font-semibold leading-6 transition-all",
34
+ "hover:no-underline",
35
+ "disabled:cursor-not-allowed disabled:text-disabled-foreground"
36
+ ], {
37
+ variants: { variant: {
38
+ default: "focus-visible:util-focus-ring outline-none",
39
+ card: "outline-none"
40
+ } },
41
+ defaultVariants: { variant: "default" }
42
+ }),
43
+ content: cva("in-data-[expanded]:pb-2"),
44
+ icon: cva("pointer-events-none shrink-0 opacity-60 transition-transform duration-200")
110
45
  };
111
46
 
112
- // src/components/Badge.styles.ts
113
- import { cva as cva2 } from "@marigold/system";
114
- var Badge = cva2(
115
- [
116
- "inline-flex items-center justify-center rounded-full px-2 text-xs font-medium leading-normal transition-colors",
117
- "focus-visible:util-focus-ring outline-none"
118
- ],
119
- {
120
- variants: {
121
- variant: {
122
- default: "bg-muted text-foreground border border-border",
123
- primary: "bg-brand text-brand-foreground ",
124
- success: "bg-success-muted text-success-muted-foreground",
125
- warning: "bg-warning-muted text-warning-muted-foreground",
126
- info: "bg-info-muted text-info-muted-foreground",
127
- error: "bg-destructive-muted text-destructive-muted-foreground",
128
- admin: "text-access-admin-foreground border border-access-admin-foreground bg-background",
129
- master: "text-access-master-foreground border border-access-master-foreground bg-background"
130
- }
131
- },
132
- defaultVariants: {
133
- variant: "default"
134
- }
135
- }
136
- );
47
+ //#endregion
48
+ //#region src/components/Badge.styles.ts
49
+ const Badge = 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"], {
50
+ variants: { variant: {
51
+ default: "bg-muted text-foreground border border-border",
52
+ primary: "bg-brand text-brand-foreground ",
53
+ success: "bg-success-muted text-success-muted-foreground",
54
+ warning: "bg-warning-muted text-warning-muted-foreground",
55
+ info: "bg-info-muted text-info-muted-foreground",
56
+ error: "bg-destructive-muted text-destructive-muted-foreground",
57
+ admin: "text-access-admin-foreground border border-access-admin-foreground bg-background",
58
+ master: "text-access-master-foreground border border-access-master-foreground bg-background"
59
+ } },
60
+ defaultVariants: { variant: "default" }
61
+ });
137
62
 
138
- // src/components/Button.styles.ts
139
- import { cva as cva3 } from "@marigold/system";
140
- var Button = cva3(
141
- [
142
- "inline-flex items-center justify-center gap-2",
143
- "whitespace-nowrap rounded-md font-medium transition-[color,box-shadow,transform]",
144
- "duration-150 active:scale-[0.98] pressed:scale-[0.98]",
145
- "[&_svg]:pointer-events-none [&_svg]:shrink-0",
146
- "focus-visible:util-focus-ring outline-none disabled:util-disabled",
147
- "pending:text-disabled-foreground pending:bg-disabled pending:cursor-not-allowed pending:border-none",
148
- "cursor-pointer"
149
- ],
150
- {
151
- variants: {
152
- variant: {
153
- primary: "bg-brand text-brand-foreground shadow-xs hover:bg-brand/90",
154
- secondary: "border border-input bg-background shadow-xs hover:bg-hover hover:text-foreground expanded:bg-hover",
155
- destructive: "bg-destructive text-destructive-foreground shadow-xs hover:bg-destructive/90",
156
- ghost: "hover:bg-hover hover:text-foreground",
157
- link: "text-link util-touch-hitbox"
158
- },
159
- size: {
160
- default: "text-sm",
161
- small: "text-xs",
162
- large: "",
163
- icon: ""
164
- }
165
- },
166
- defaultVariants: {
167
- variant: "secondary",
168
- size: "default"
169
- },
170
- compoundVariants: [
171
- {
172
- variant: ["primary", "secondary", "destructive", "ghost"],
173
- class: "items-center justify-center"
174
- },
175
- {
176
- variant: ["primary", "secondary", "destructive", "ghost"],
177
- size: "default",
178
- class: "h-button px-4 py-2 [&_svg]:size-4"
179
- },
180
- {
181
- variant: ["primary", "secondary", "destructive", "ghost"],
182
- size: "small",
183
- class: "h-button-small px-3 [&_svg]:size-3.5"
184
- },
185
- {
186
- variant: ["primary", "secondary", "destructive", "ghost"],
187
- size: "large",
188
- class: "h-button-large px-8 [&_svg]:size-5"
189
- },
190
- {
191
- variant: ["primary", "secondary", "destructive", "ghost"],
192
- size: "icon",
193
- class: "size-button [&_svg]:size-4"
194
- }
195
- ]
196
- }
197
- );
63
+ //#endregion
64
+ //#region src/components/Button.styles.ts
65
+ const Button = cva([
66
+ "inline-flex items-center justify-center gap-2",
67
+ "whitespace-nowrap rounded-md font-medium transition-[color,box-shadow,transform]",
68
+ "duration-150 active:scale-[0.98] pressed:scale-[0.98]",
69
+ "[&_svg]:pointer-events-none [&_svg]:shrink-0",
70
+ "focus-visible:util-focus-ring outline-none disabled:util-disabled",
71
+ "pending:text-disabled-foreground pending:bg-disabled pending:cursor-not-allowed pending:border-none",
72
+ "cursor-pointer"
73
+ ], {
74
+ variants: {
75
+ variant: {
76
+ primary: "bg-brand text-brand-foreground shadow-xs hover:bg-brand/90",
77
+ secondary: "border border-input bg-background shadow-xs hover:bg-hover hover:text-foreground expanded:bg-hover",
78
+ destructive: "bg-destructive text-destructive-foreground shadow-xs hover:bg-destructive/90",
79
+ ghost: "hover:bg-hover hover:text-foreground",
80
+ link: "text-link util-touch-hitbox"
81
+ },
82
+ size: {
83
+ default: "text-sm",
84
+ small: "text-xs",
85
+ large: "",
86
+ icon: ""
87
+ }
88
+ },
89
+ defaultVariants: {
90
+ variant: "secondary",
91
+ size: "default"
92
+ },
93
+ compoundVariants: [
94
+ {
95
+ variant: [
96
+ "primary",
97
+ "secondary",
98
+ "destructive",
99
+ "ghost"
100
+ ],
101
+ class: "items-center justify-center"
102
+ },
103
+ {
104
+ variant: [
105
+ "primary",
106
+ "secondary",
107
+ "destructive",
108
+ "ghost"
109
+ ],
110
+ size: "default",
111
+ class: "h-button px-4 py-2 [&_svg]:size-4"
112
+ },
113
+ {
114
+ variant: [
115
+ "primary",
116
+ "secondary",
117
+ "destructive",
118
+ "ghost"
119
+ ],
120
+ size: "small",
121
+ class: "h-button-small px-3 [&_svg]:size-3.5"
122
+ },
123
+ {
124
+ variant: [
125
+ "primary",
126
+ "secondary",
127
+ "destructive",
128
+ "ghost"
129
+ ],
130
+ size: "large",
131
+ class: "h-button-large px-8 [&_svg]:size-5"
132
+ },
133
+ {
134
+ variant: [
135
+ "primary",
136
+ "secondary",
137
+ "destructive",
138
+ "ghost"
139
+ ],
140
+ size: "icon",
141
+ class: "size-button [&_svg]:size-4"
142
+ }
143
+ ]
144
+ });
198
145
 
199
- // src/components/Card.styles.ts
200
- import { cva as cva4 } from "@marigold/system";
201
- var Card = cva4(["p-4 rounded-md"], {
202
- variants: {
203
- variant: {
204
- default: "util-surface-raised",
205
- master: "rounded-md bg-access-master/30 p-4 border border-access-master",
206
- admin: "rounded-md bg-access-admin/30 p-4 border border-access-admin"
207
- },
208
- size: {
209
- default: "",
210
- full: "w-full"
211
- }
212
- },
213
- defaultVariants: {
214
- variant: "default",
215
- size: "default"
216
- }
146
+ //#endregion
147
+ //#region src/components/Card.styles.ts
148
+ const Card = cva(["p-4 rounded-md"], {
149
+ variants: {
150
+ variant: {
151
+ default: "util-surface-raised",
152
+ master: "rounded-md bg-access-master/30 p-4 border border-access-master",
153
+ admin: "rounded-md bg-access-admin/30 p-4 border border-access-admin"
154
+ },
155
+ size: {
156
+ default: "",
157
+ full: "w-full"
158
+ }
159
+ },
160
+ defaultVariants: {
161
+ variant: "default",
162
+ size: "default"
163
+ }
217
164
  });
218
165
 
219
- // src/components/Checkbox.styles.ts
220
- import { cva as cva5 } from "@marigold/system";
221
- var Checkbox = {
222
- checkbox: cva5([
223
- "grid size-4 shrink-0 place-content-center rounded",
224
- "border border-input shadow-xs",
225
- "group-focus-visible/checkbox:util-focus-ring outline-none",
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",
227
- "group-selected/checkbox:border-brand group-selected/checkbox:bg-brand group-selected/checkbox:text-brand-foreground",
228
- "group-[indeterminate]/checkbox:border-brand group-[indeterminate]/checkbox:bg-brand group-[indeterminate]/checkbox:text-brand-foreground"
229
- ]),
230
- container: cva5("cursor-pointer read-only:cursor-default gap-2"),
231
- label: cva5([
232
- "flex items-center gap-1",
233
- 'text-sm leading-4 group-[group="checkbox"]/checkboxgroup:font-normal font-medium text-foregroun',
234
- "group-disabled/checkbox:text-disabled-foreground"
235
- ]),
236
- group: cva5()
166
+ //#endregion
167
+ //#region src/components/Checkbox.styles.ts
168
+ const Checkbox = {
169
+ checkbox: cva([
170
+ "grid size-4 shrink-0 place-content-center rounded",
171
+ "border border-input shadow-xs",
172
+ "group-focus-visible/checkbox:util-focus-ring outline-none",
173
+ "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",
174
+ "group-selected/checkbox:border-brand group-selected/checkbox:bg-brand group-selected/checkbox:text-brand-foreground",
175
+ "group-[indeterminate]/checkbox:border-brand group-[indeterminate]/checkbox:bg-brand group-[indeterminate]/checkbox:text-brand-foreground"
176
+ ]),
177
+ container: cva("cursor-pointer read-only:cursor-default gap-2"),
178
+ label: cva([
179
+ "flex items-center gap-1",
180
+ "text-sm leading-4 group-[group=\"checkbox\"]/checkboxgroup:font-normal font-medium text-foregroun",
181
+ "group-disabled/checkbox:text-disabled-foreground"
182
+ ]),
183
+ group: cva()
237
184
  };
238
185
 
239
- // src/components/Calendar.styles.ts
240
- import { cva as cva6 } from "@marigold/system";
241
- var Calendar = {
242
- calendar: cva6(
243
- "rounded-md border group-[[data-trigger]]/popover:border-0 border-border p-2"
244
- ),
245
- calendarCell: cva6([
246
- "relative flex size-9 items-center justify-center whitespace-nowrap rounded-lg justify-self-center",
247
- "border border-transparent p-0 text-sm font-normal text-foreground",
248
- "outline-offset-2 duration-150 [transition-property:color,background-color,border-radius,box-shadow]",
249
- "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",
250
- "disabled:opacity-30 data-[unavailable]:opacity-30",
251
- "focus-visible:util-focus-borderless-ring outline-none"
252
- ]),
253
- calendarControllers: cva6([
254
- "size-9 rounded-lg",
255
- "text-muted-foreground/80",
256
- "transition-colors",
257
- "focus-visible:util-focus-ring outline-none"
258
- ]),
259
- calendarHeader: cva6([
260
- "size-9 rounded-lg p-0 text-xs font-medium text-muted-foreground/80"
261
- ]),
262
- calendarGrid: cva6("[&_td]:p-2"),
263
- calendarListboxButton: cva6([
264
- "rounded-md text-sm font-medium transition-[color,box-shadow]",
265
- "px-4 py-2",
266
- "focus-visible:util-focus-ring outline-none",
267
- "cursor-pointer",
268
- "hover:bg-hover",
269
- "aria-selected:bg-brand aria-selected:text-brand-foreground aria-selected:shadow-xs aria-selected:hover:bg-brand/90"
270
- ]),
271
- select: cva6([
272
- "[&svg]:text-muted-foreground/80",
273
- "flex w-full px-3 py-2 rounded-lg shadow-xs border border-input bg-background text-sm text-foreground transition-shadow",
274
- "focus-visible:util-focus-ring outline-none",
275
- "h-input",
276
- "disabled:cursor-not-allowed disabled:text-disabled-foreground disabled:bg-disabled",
277
- "cursor-pointer"
278
- ])
186
+ //#endregion
187
+ //#region src/components/Calendar.styles.ts
188
+ const Calendar = {
189
+ calendar: cva("rounded-md border group-[[data-trigger]]/popover:border-0 border-border p-2"),
190
+ calendarCell: cva([
191
+ "relative flex size-9 items-center justify-center whitespace-nowrap rounded-lg justify-self-center",
192
+ "border border-transparent p-0 text-sm font-normal text-foreground",
193
+ "outline-offset-2 duration-150 [transition-property:color,background-color,border-radius,box-shadow]",
194
+ "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",
195
+ "disabled:opacity-30 data-[unavailable]:opacity-30",
196
+ "focus-visible:util-focus-borderless-ring outline-none"
197
+ ]),
198
+ calendarControllers: cva([
199
+ "size-9 rounded-lg",
200
+ "text-muted-foreground/80",
201
+ "transition-colors",
202
+ "focus-visible:util-focus-ring outline-none"
203
+ ]),
204
+ calendarHeader: cva(["size-9 rounded-lg p-0 text-xs font-medium text-muted-foreground/80"]),
205
+ calendarGrid: cva("[&_td]:p-2"),
206
+ calendarListboxButton: cva([
207
+ "rounded-md text-sm font-medium transition-[color,box-shadow]",
208
+ "px-4 py-2",
209
+ "focus-visible:util-focus-ring outline-none",
210
+ "cursor-pointer",
211
+ "hover:bg-hover",
212
+ "aria-selected:bg-brand aria-selected:text-brand-foreground aria-selected:shadow-xs aria-selected:hover:bg-brand/90"
213
+ ]),
214
+ select: cva([
215
+ "[&svg]:text-muted-foreground/80",
216
+ "flex w-full px-3 py-2 rounded-lg shadow-xs border border-input bg-background text-sm text-foreground transition-shadow",
217
+ "focus-visible:util-focus-ring outline-none",
218
+ "h-input",
219
+ "disabled:cursor-not-allowed disabled:text-disabled-foreground disabled:bg-disabled",
220
+ "cursor-pointer"
221
+ ])
279
222
  };
280
223
 
281
- // src/components/CloseButton.styles.ts
282
- import { cva as cva7 } from "@marigold/system";
283
- var CloseButton = cva7([
284
- "flex items-center justify-center whitespace-nowrap",
285
- "cursor-pointer",
286
- "transition-[color,box-shadow]",
287
- "mixin-ring-focus-visible",
288
- "rounded",
289
- "duration-150 active:scale-[0.98] pressed:scale-[0.98] transition-transform",
290
- "[&_svg]:size-4 [&_svg]:opacity-60 [&_svg]:transition-opacity hover:[&_svg]:opacity-100"
224
+ //#endregion
225
+ //#region src/components/CloseButton.styles.ts
226
+ const CloseButton = cva([
227
+ "flex items-center justify-center whitespace-nowrap",
228
+ "cursor-pointer",
229
+ "transition-[color,box-shadow]",
230
+ "mixin-ring-focus-visible",
231
+ "rounded",
232
+ "duration-150 active:scale-[0.98] pressed:scale-[0.98] transition-transform",
233
+ "[&_svg]:size-4 [&_svg]:opacity-60 [&_svg]:transition-opacity hover:[&_svg]:opacity-100"
291
234
  ]);
292
235
 
293
- // src/components/ComboBox.styles.ts
294
- import { cva as cva8 } from "@marigold/system";
295
- var ComboBox = cva8(
296
- "text-muted-foreground/80 right-2"
297
- );
236
+ //#endregion
237
+ //#region src/components/ComboBox.styles.ts
238
+ const ComboBox = cva("text-muted-foreground/80 right-2");
298
239
 
299
- // src/components/Collapsible.styles.ts
300
- import { cva as cva9 } from "@marigold/system";
301
- var Collapsible = {
302
- container: cva9(),
303
- trigger: cva9(
304
- [
305
- "inline-flex gap-2 whitespace-nowrap rounded-md font-medium transition-[color,box-shadow,transform]",
306
- "duration-150 active:scale-[0.98] pressed:scale-[0.98]",
307
- "[&_svg]:pointer-events-none [&_svg]:shrink-0",
308
- "focus-visible:util-focus-ring outline-none disabled:util-disabled",
309
- "cursor-pointer"
310
- ],
311
- {
312
- variants: {
313
- variant: {
314
- default: "",
315
- link: "text-link util-touch-hitbox"
316
- },
317
- size: {
318
- default: "text-sm"
319
- }
320
- },
321
- defaultVariants: {
322
- variant: "default",
323
- size: "default"
324
- }
325
- }
326
- ),
327
- content: cva9()
240
+ //#endregion
241
+ //#region src/components/Collapsible.styles.ts
242
+ const Collapsible = {
243
+ container: cva(),
244
+ trigger: cva([
245
+ "inline-flex gap-2 whitespace-nowrap rounded-md font-medium transition-[color,box-shadow,transform]",
246
+ "duration-150 active:scale-[0.98] pressed:scale-[0.98]",
247
+ "[&_svg]:pointer-events-none [&_svg]:shrink-0",
248
+ "focus-visible:util-focus-ring outline-none disabled:util-disabled",
249
+ "cursor-pointer"
250
+ ], {
251
+ variants: {
252
+ variant: {
253
+ default: "",
254
+ link: "text-link util-touch-hitbox"
255
+ },
256
+ size: { default: "text-sm" }
257
+ },
258
+ defaultVariants: {
259
+ variant: "default",
260
+ size: "default"
261
+ }
262
+ }),
263
+ content: cva()
328
264
  };
329
265
 
330
- // src/components/ContextualHelp.styles.ts
331
- import { cva as cva10 } from "@marigold/system";
332
- var ContextualHelp = {
333
- trigger: cva10(
334
- [
335
- "inline-flex items-center justify-center rounded-full transition-[color,box-shadow] hover:bg-hover hover:text-foreground",
336
- "[&_svg]:pointer-events-none [&_svg]:shrink-0",
337
- "focus-visible:util-focus-ring outline-none",
338
- "cursor-pointer"
339
- ],
340
- {
341
- variants: {
342
- variant: {
343
- help: "",
344
- info: ""
345
- },
346
- size: {
347
- default: "size-button [&_svg]:size-4",
348
- small: "size-button-small [&_svg]:size-3.5",
349
- large: "size-button-large [&_svg]:size-5"
350
- }
351
- },
352
- defaultVariants: {
353
- size: "default"
354
- }
355
- }
356
- ),
357
- popover: cva10(
358
- "bg-white border border-gray-200 p-3 rounded shadow-md z-50 data-[small]:max-w-3xs data-[medium]:max-w-xs data-[large]:max-w-md"
359
- ),
360
- dialog: cva10("text-sm leading-normal"),
361
- title: cva10("text-lg font-semibold mb-1"),
362
- content: cva10("text-sm")
266
+ //#endregion
267
+ //#region src/components/ContextualHelp.styles.ts
268
+ const ContextualHelp = {
269
+ trigger: cva([
270
+ "inline-flex items-center justify-center rounded-full transition-[color,box-shadow] hover:bg-hover hover:text-foreground",
271
+ "[&_svg]:pointer-events-none [&_svg]:shrink-0",
272
+ "focus-visible:util-focus-ring outline-none",
273
+ "cursor-pointer"
274
+ ], {
275
+ variants: {
276
+ variant: {
277
+ help: "",
278
+ info: ""
279
+ },
280
+ size: {
281
+ default: "size-button [&_svg]:size-4",
282
+ small: "size-button-small [&_svg]:size-3.5",
283
+ large: "size-button-large [&_svg]:size-5"
284
+ }
285
+ },
286
+ defaultVariants: { size: "default" }
287
+ }),
288
+ popover: cva([
289
+ "flex flex-col gap-0 rounded-xl p-5 util-surface-overlay",
290
+ "data-[small]:max-w-3xs data-[medium]:max-w-xs data-[large]:max-w-md",
291
+ "overflow-y-auto util-scrollbar"
292
+ ]),
293
+ container: cva(""),
294
+ title: cva("text-lg font-semibold mb-1"),
295
+ content: cva("text-sm")
363
296
  };
364
297
 
365
- // src/components/DateField.styles.ts
366
- import { cva as cva12 } from "@marigold/system";
367
-
368
- // src/components/Input.styles.ts
369
- import { cva as cva11 } from "@marigold/system";
370
- var inputContainer = "flex w-full px-3 py-2 rounded-lg shadow-xs border border-input bg-background text-sm text-foreground transition-shadow group-read-only/field:bg-muted";
371
- var inputDisabled = "disabled:cursor-not-allowed disabled:text-disabled-foreground disabled:bg-disabled";
372
- var inputInvalid = "group-invalid/field:border-destructive group-invalid/field:focus:border-destructive group-invalid/field:focus:ring-destructive/20";
373
- var inputReadOnly = "group-read-only/field:bg-muted";
374
- var Input = {
375
- input: cva11([
376
- inputContainer,
377
- inputDisabled,
378
- inputInvalid,
379
- "focus:util-focus-ring outline-none",
380
- inputReadOnly,
381
- "h-input",
382
- "placeholder:text-placeholder",
383
- "[&[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",
384
- "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",
385
- "group-[[data-icon]]/input:pl-8",
386
- "group-[[data-action]]/input:pr-7"
387
- ]),
388
- icon: cva11([
389
- "pointer-events-none left-1",
390
- "text-muted-foreground disabled:text-disabled-foreground"
391
- ]),
392
- action: cva11(["text-muted-foreground right-1"])
298
+ //#endregion
299
+ //#region src/components/Input.styles.ts
300
+ 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";
301
+ const inputDisabled = "disabled:cursor-not-allowed disabled:text-disabled-foreground disabled:bg-disabled";
302
+ const inputInvalid = "group-invalid/field:border-destructive group-invalid/field:focus:border-destructive group-invalid/field:focus:ring-destructive/20";
303
+ const inputReadOnly = "group-read-only/field:bg-muted";
304
+ const Input = {
305
+ input: cva([
306
+ inputContainer,
307
+ inputDisabled,
308
+ inputInvalid,
309
+ "focus:util-focus-ring outline-none",
310
+ inputReadOnly,
311
+ "h-input",
312
+ "placeholder:text-placeholder",
313
+ "[&[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",
314
+ "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",
315
+ "group-[[data-icon]]/input:pl-8",
316
+ "group-[[data-action]]/input:pr-7"
317
+ ]),
318
+ icon: cva(["pointer-events-none left-2", "text-muted-foreground disabled:text-disabled-foreground"]),
319
+ action: cva(["text-muted-foreground pr-1"])
393
320
  };
394
321
 
395
- // src/components/DateField.styles.ts
396
- var DateField = {
397
- field: cva12([
398
- "h-input",
399
- inputContainer,
400
- inputDisabled,
401
- "has-focus-visible:util-focus-ring outline-none",
402
- inputInvalid,
403
- inputReadOnly,
404
- "invalid:focus-within:border-destructive invalid:focus-within:ring-destructive/20",
405
- "data-[focus-within]:util-focus-ring outline-0"
406
- ]),
407
- segment: cva12([
408
- inputDisabled,
409
- "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 ",
410
- "data-[focused]:bg-focus",
411
- "data-[placeholder]:disabled:text-disabled-foreground",
412
- "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",
413
- "group/segment",
414
- "outline-0",
415
- "whitespace-pre",
416
- "data-[placeholder]:text-placeholder text-foreground data-[focused]:bg-focus data-[focused]:text-foreground rounded leading-none"
417
- ]),
418
- action: cva12(
419
- "fill-muted-foreground disabled:text-disabled-foreground group-invalid/field:fill-destructive"
420
- )
322
+ //#endregion
323
+ //#region src/components/DateField.styles.ts
324
+ const DateField = {
325
+ field: cva([
326
+ "h-input",
327
+ inputContainer,
328
+ inputDisabled,
329
+ "has-focus-visible:util-focus-ring outline-none",
330
+ inputInvalid,
331
+ inputReadOnly,
332
+ "invalid:focus-within:border-destructive invalid:focus-within:ring-destructive/20",
333
+ "data-[focus-within]:util-focus-ring outline-0"
334
+ ]),
335
+ segment: cva([
336
+ inputDisabled,
337
+ "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 ",
338
+ "data-[focused]:bg-focus",
339
+ "data-[placeholder]:disabled:text-disabled-foreground",
340
+ "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",
341
+ "group/segment",
342
+ "outline-0",
343
+ "whitespace-pre",
344
+ "data-[placeholder]:text-placeholder text-foreground data-[focused]:bg-focus data-[focused]:text-foreground rounded leading-none"
345
+ ]),
346
+ action: cva("fill-muted-foreground disabled:text-disabled-foreground group-invalid/field:fill-destructive")
421
347
  };
422
348
 
423
- // src/components/DatePicker.styles.ts
424
- import { cva as cva13 } from "@marigold/system";
425
- var DatePicker = cva13([
426
- "relative h-input -top-2",
427
- "text-muted-foreground/80",
428
- "hover:text-brand",
429
- "disabled:cursor-not-allowed"
349
+ //#endregion
350
+ //#region src/components/DatePicker.styles.ts
351
+ const DatePicker = cva([
352
+ "relative h-input -top-2",
353
+ "text-muted-foreground/80",
354
+ "hover:text-brand",
355
+ "disabled:cursor-not-allowed"
430
356
  ]);
431
357
 
432
- // src/components/Dialog.styles.ts
433
- import { cva as cva14 } from "@marigold/system";
434
- var Dialog = {
435
- closeButton: cva14(["absolute top-6 right-3", "size-7 "]),
436
- container: cva14(
437
- [
438
- "flex flex-col gap-0 rounded-xl p-6 overflow-y-auto",
439
- "util-surface-overlay"
440
- ],
441
- {
442
- variants: {
443
- variant: {},
444
- // Does not do anything, just to make the size appear in the appearance demo (Modal is setting the size)
445
- size: {
446
- xsmall: "",
447
- small: "",
448
- medium: ""
449
- }
450
- }
451
- }
452
- ),
453
- header: cva14("flex flex-col gap-1 text-center sm:text-left"),
454
- title: cva14("text-lg font-semibold mb-1"),
455
- content: cva14("text-muted-foreground text-sm"),
456
- actions: cva14("flex flex-col-reverse gap-3 sm:flex-row sm:justify-end mt-4")
358
+ //#endregion
359
+ //#region src/components/Dialog.styles.ts
360
+ const Dialog = {
361
+ closeButton: cva(["absolute top-6 right-3", "size-7 "]),
362
+ container: cva(["flex flex-col gap-0 rounded-xl p-6 overflow-y-auto", "util-surface-overlay"], { variants: {
363
+ variant: {},
364
+ size: {
365
+ xsmall: "",
366
+ small: "",
367
+ medium: ""
368
+ }
369
+ } }),
370
+ header: cva("flex flex-col gap-1 text-center sm:text-left"),
371
+ title: cva("text-lg font-semibold mb-1"),
372
+ content: cva("text-muted-foreground text-sm"),
373
+ actions: cva("flex flex-col-reverse gap-3 sm:flex-row sm:justify-end mt-4")
457
374
  };
458
375
 
459
- // src/components/Divider.styles.ts
460
- import { cva as cva15 } from "@marigold/system";
461
- var Divider = cva15("bg-border h-px w-full", {
462
- variants: {
463
- variant: {
464
- default: "",
465
- bold: "h-0.5"
466
- }
467
- },
468
- defaultVariants: {
469
- variant: "default"
470
- }
376
+ //#endregion
377
+ //#region src/components/Divider.styles.ts
378
+ const Divider = cva("bg-border h-px w-full", {
379
+ variants: { variant: {
380
+ default: "",
381
+ bold: "h-0.5"
382
+ } },
383
+ defaultVariants: { variant: "default" }
471
384
  });
472
385
 
473
- // src/components/Drawer.styles.ts
474
- import { cva as cva16 } from "@marigold/system";
475
- var Drawer = {
476
- overlay: cva16([
477
- "group/overlay z-40",
478
- "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",
479
- "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",
480
- "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",
481
- "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"
482
- ]),
483
- container: cva16(
484
- [
485
- "w-full relative grid-rows-[auto_1fr_auto]",
486
- "util-surface-overlay",
487
- "data-[placement=top]:w-full data-[placement=bottom]:w-full"
488
- ],
489
- {
490
- variants: {
491
- size: {
492
- xsmall: "w-64 data-[placement=top]:h-48 data-[placement=bottom]:h-48",
493
- small: "w-72 data-[placement=top]:h-64 data-[placement=bottom]:h-64",
494
- medium: "w-96 data-[placement=top]:h-80 data-[placement=bottom]:h-80"
495
- }
496
- }
497
- }
498
- ),
499
- closeButton: cva16(["absolute top-3.5 right-3 z-50", "size-7"]),
500
- header: cva16("border-border border-b px-6 py-4"),
501
- title: cva16("font-semibold text-base"),
502
- content: cva16("px-6 py-4 overflow-y-auto outline-none"),
503
- actions: cva16(
504
- "flex flex-row gap-3 justify-end border-border border-t px-6 py-4"
505
- )
386
+ //#endregion
387
+ //#region src/components/Drawer.styles.ts
388
+ const Drawer = {
389
+ overlay: cva([
390
+ "group/overlay z-40",
391
+ "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",
392
+ "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",
393
+ "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",
394
+ "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"
395
+ ]),
396
+ container: cva([
397
+ "w-full relative grid-rows-[auto_1fr_auto]",
398
+ "util-surface-overlay",
399
+ "data-[placement=top]:w-full data-[placement=bottom]:w-full"
400
+ ], { variants: { size: {
401
+ xsmall: "w-64 data-[placement=top]:h-48 data-[placement=bottom]:h-48",
402
+ small: "w-72 data-[placement=top]:h-64 data-[placement=bottom]:h-64",
403
+ medium: "w-96 data-[placement=top]:h-80 data-[placement=bottom]:h-80"
404
+ } } }),
405
+ closeButton: cva(["absolute top-3.5 right-3 z-50", "size-7"]),
406
+ header: cva("border-border border-b px-6 py-4"),
407
+ title: cva("font-semibold text-base"),
408
+ content: cva("px-6 py-4 overflow-y-auto outline-none"),
409
+ actions: cva("flex flex-row gap-3 justify-end border-border border-t px-6 py-4")
506
410
  };
507
411
 
508
- // src/components/IconButton.styles.ts
509
- import { cva as cva17 } from "@marigold/system";
510
- var IconButton = cva17("", {
511
- variants: {
512
- variant: {
513
- 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"
514
- }
515
- }
516
- });
412
+ //#endregion
413
+ //#region src/components/IconButton.styles.ts
414
+ const IconButton = 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" } } });
517
415
 
518
- // src/components/Field.styles.ts
519
- import { cva as cva18 } from "@marigold/system";
520
- var Field = cva18("space-y-2");
416
+ //#endregion
417
+ //#region src/components/Field.styles.ts
418
+ const Field = cva("space-y-2");
521
419
 
522
- // src/components/Headline.styles.ts
523
- import { cva as cva19 } from "@marigold/system";
524
- var Headline = cva19("", {
525
- variants: {
526
- size: {
527
- "level-1": "text-3xl font-extrabold",
528
- "level-2": "text-2xl font-bold",
529
- "level-3": "text-xl font-semibold",
530
- "level-4": "text-lg font-semibold",
531
- "level-5": "text-base font-medium",
532
- "level-6": "text-base font-normal"
533
- }
534
- }
535
- });
420
+ //#endregion
421
+ //#region src/components/Headline.styles.ts
422
+ const Headline = cva("", { variants: { size: {
423
+ "level-1": "text-3xl font-extrabold",
424
+ "level-2": "text-2xl font-bold",
425
+ "level-3": "text-xl font-semibold",
426
+ "level-4": "text-lg font-semibold",
427
+ "level-5": "text-base font-medium",
428
+ "level-6": "text-base font-normal"
429
+ } } });
536
430
 
537
- // src/components/HelpText.styles.ts
538
- import { cva as cva20 } from "@marigold/system";
539
- var HelpText = {
540
- container: cva20([
541
- "text-xs text-muted-foreground group-disabled/field:text-disabled-foreground",
542
- "group-invalid/field:text-destructive",
543
- /**
544
- * Removes the spacing from the field when when there are hidden
545
- * elements (e.g. the hidden select rendered by react-aria).
546
- */
547
- 'has-[+_[aria-hidden="true"]]:mb-0'
548
- ]),
549
- icon: cva20("")
431
+ //#endregion
432
+ //#region src/components/HelpText.styles.ts
433
+ const HelpText = {
434
+ container: cva([
435
+ "text-xs text-muted-foreground group-disabled/field:text-disabled-foreground",
436
+ "group-invalid/field:text-destructive",
437
+ "has-[+_[aria-hidden=\"true\"]]:mb-0"
438
+ ]),
439
+ icon: cva("")
550
440
  };
551
441
 
552
- // src/components/Label.styles.ts
553
- import { cva as cva21 } from "@marigold/system";
554
- var Label = {
555
- container: cva21([
556
- "flex items-center gap-1",
557
- "text-sm font-medium leading-none text-foreground",
558
- "group-disabled/field:cursor-not-allowed group-disabled/field:text-disabled-foreground"
559
- ]),
560
- indicator: cva21(
561
- "group-required/field:block text-destructive align-super size-2.5"
562
- )
442
+ //#endregion
443
+ //#region src/components/Label.styles.ts
444
+ const Label = {
445
+ container: cva([
446
+ "flex items-center gap-1",
447
+ "text-sm font-medium leading-none text-foreground",
448
+ "group-disabled/field:cursor-not-allowed group-disabled/field:text-disabled-foreground"
449
+ ]),
450
+ indicator: cva("group-required/field:block text-destructive -ml-1")
563
451
  };
564
452
 
565
- // src/components/Link.styles.ts
566
- import { cva as cva22 } from "@marigold/system";
567
- var Link = cva22(
568
- "aria-[disabled]:cursor-not-allowed",
569
- {
570
- variants: {
571
- variant: {
572
- default: "text-link font-normal",
573
- secondary: "font-medium text-foreground underline hover:no-underline"
574
- },
575
- size: {
576
- default: "",
577
- small: "text-sm"
578
- }
579
- },
580
- defaultVariants: {
581
- variant: "default",
582
- size: "default"
583
- }
584
- }
585
- );
453
+ //#endregion
454
+ //#region src/components/Link.styles.ts
455
+ const Link = cva("aria-[disabled]:cursor-not-allowed", {
456
+ variants: {
457
+ variant: {
458
+ default: "text-link font-normal",
459
+ secondary: "font-medium text-foreground underline hover:no-underline"
460
+ },
461
+ size: {
462
+ default: "",
463
+ small: "text-sm"
464
+ }
465
+ },
466
+ defaultVariants: {
467
+ variant: "default",
468
+ size: "default"
469
+ }
470
+ });
586
471
 
587
- // src/components/List.styles.ts
588
- import { cva as cva23 } from "@marigold/system";
589
- var List = {
590
- ul: cva23("ml-6 list-outside list-disc space-y-1 marker:text-foreground/50", {
591
- variants: {
592
- size: {
593
- default: "",
594
- small: "*:text-sm"
595
- }
596
- },
597
- defaultVariants: {
598
- size: "default"
599
- }
600
- }),
601
- ol: cva23(
602
- "ml-6 list-outside list-decimal space-y-1 marker:text-foreground/50",
603
- {
604
- variants: {
605
- size: {
606
- default: "",
607
- small: "*:text-sm"
608
- }
609
- },
610
- defaultVariants: {
611
- size: "default"
612
- }
613
- }
614
- ),
615
- item: cva23("")
472
+ //#endregion
473
+ //#region src/components/List.styles.ts
474
+ const List = {
475
+ ul: cva("ml-6 list-outside list-disc space-y-1 marker:text-foreground/50", {
476
+ variants: { size: {
477
+ default: "",
478
+ small: "*:text-sm"
479
+ } },
480
+ defaultVariants: { size: "default" }
481
+ }),
482
+ ol: cva("ml-6 list-outside list-decimal space-y-1 marker:text-foreground/50", {
483
+ variants: { size: {
484
+ default: "",
485
+ small: "*:text-sm"
486
+ } },
487
+ defaultVariants: { size: "default" }
488
+ }),
489
+ item: cva("")
616
490
  };
617
491
 
618
- // src/components/ListBox.styles.ts
619
- import { cva as cva24 } from "@marigold/system";
620
- var ListBox = {
621
- container: cva24([
622
- "overflow-hidden rounded-md border border-input group-[[data-trigger]]/popover:border-0"
623
- ]),
624
- list: cva24(["bg-background p-1 text-sm outline-0"]),
625
- item: cva24([
626
- "relative flex items-center gap-2 rounded-md px-2 py-1.5 text-sm text-foreground",
627
- "[&_.selection-indicator>svg]:invisible [&_.selection-indicator>svg]:block",
628
- "selected:bg-selected selected:[&_.selection-indicator>svg]:visible",
629
- "hover:bg-hover hover:text-hover-foreground",
630
- "disabled:cursor-not-allowed disabled:text-disabled-foreground",
631
- "focus-visible:util-focus-ring outline-none",
632
- "cursor-default data-selection-mode:cursor-pointer"
633
- ]),
634
- section: cva24(""),
635
- header: cva24(
636
- "[&_header]:px-2 [&_header]:py-1.5 [&_header]:text-xs [&_header]:font-medium [&_header]:text-muted-foreground"
637
- )
492
+ //#endregion
493
+ //#region src/components/ListBox.styles.ts
494
+ const ListBox = {
495
+ container: cva(["overflow-hidden rounded-md border border-input group-[[data-trigger]]/popover:border-0"]),
496
+ list: cva(["bg-background p-1 text-sm outline-0 space-y-px"]),
497
+ item: cva([
498
+ "relative flex items-center gap-2 rounded-md px-2 py-1.5 text-sm text-foreground",
499
+ "[&_.selection-indicator>svg]:invisible [&_.selection-indicator>svg]:block",
500
+ "selected:bg-selected selected:[&_.selection-indicator>svg]:visible",
501
+ "hover:bg-hover hover:text-hover-foreground",
502
+ "disabled:cursor-not-allowed disabled:text-disabled-foreground",
503
+ "focus-visible:util-focus-ring outline-none focus-visible:z-1",
504
+ "cursor-default data-selection-mode:cursor-pointer"
505
+ ]),
506
+ section: cva(""),
507
+ header: cva("[&_header]:px-2 [&_header]:py-1.5 [&_header]:text-xs [&_header]:font-medium [&_header]:text-muted-foreground")
638
508
  };
639
509
 
640
- // src/components/Menu.styles.ts
641
- import { cva as cva25 } from "@marigold/system";
642
- var Menu = {
643
- container: cva25([
644
- "text-foreground z-50 overflow-hidden rounded-md p-1 outline-none"
645
- ]),
646
- item: cva25(
647
- [
648
- "relative flex cursor-pointer items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none text-nowrap",
649
- "disabled:text-disabled-foreground",
650
- "[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg]:size-4"
651
- ],
652
- {
653
- variants: {
654
- variant: {
655
- default: "text-foreground focus:bg-focus [&_svg]:opacity-60",
656
- destructive: "text-destructive focus:bg-destructive/10"
657
- }
658
- },
659
- defaultVariants: {
660
- variant: "default"
661
- }
662
- }
663
- ),
664
- section: cva25(
665
- "text-muted-foreground px-2 py-1.5 text-xs font-medium border-t border-t-border in-first:border-t-0"
666
- ),
667
- button: cva25(
668
- [
669
- "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-[color,box-shadow]",
670
- "[&_svg]:shrink-0 [&_svg]:pointer-events-none",
671
- "focus-visible:util-focus-ring outline-none disabled:util-disabled",
672
- "cursor-pointer"
673
- ],
674
- {
675
- variants: {
676
- variant: {
677
- default: "border border-input bg-background shadow-xs hover:bg-hover hover:text-foreground expanded:bg-hover",
678
- ghost: "hover:bg-hover hover:text-foreground expanded:bg-hover"
679
- },
680
- size: {
681
- default: "h-button px-4 py-2 [&_svg]:size-4",
682
- small: "h-button-small px-3 text-xs [&_svg]:size-3.5",
683
- large: "h-button-large px-8 [&_svg]:size-5",
684
- icon: "size-button [&_svg]:size-4"
685
- }
686
- },
687
- defaultVariants: {
688
- variant: "default",
689
- size: "default"
690
- }
691
- }
692
- )
510
+ //#endregion
511
+ //#region src/components/Menu.styles.ts
512
+ const Menu = {
513
+ container: cva(["text-foreground z-50 overflow-hidden rounded-md p-1 outline-none"]),
514
+ item: cva([
515
+ "relative flex cursor-pointer items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none text-nowrap",
516
+ "disabled:text-disabled-foreground",
517
+ "[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg]:size-4"
518
+ ], {
519
+ variants: { variant: {
520
+ default: "text-foreground focus:bg-focus [&_svg]:opacity-60",
521
+ destructive: "text-destructive focus:bg-destructive/10"
522
+ } },
523
+ defaultVariants: { variant: "default" }
524
+ }),
525
+ section: cva("text-muted-foreground px-2 py-1.5 text-xs font-medium border-t border-t-border in-first:border-t-0"),
526
+ button: cva([
527
+ "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-[color,box-shadow]",
528
+ "[&_svg]:shrink-0 [&_svg]:pointer-events-none",
529
+ "focus-visible:util-focus-ring outline-none disabled:util-disabled",
530
+ "cursor-pointer"
531
+ ], {
532
+ variants: {
533
+ variant: {
534
+ default: "border border-input bg-background shadow-xs hover:bg-hover hover:text-foreground expanded:bg-hover",
535
+ ghost: "hover:bg-hover hover:text-foreground expanded:bg-hover"
536
+ },
537
+ size: {
538
+ default: "h-button px-4 py-2 [&_svg]:size-4",
539
+ small: "h-button-small px-3 text-xs [&_svg]:size-3.5",
540
+ large: "h-button-large px-8 [&_svg]:size-5",
541
+ icon: "size-button [&_svg]:size-4"
542
+ }
543
+ },
544
+ defaultVariants: {
545
+ variant: "default",
546
+ size: "default"
547
+ }
548
+ })
693
549
  };
694
550
 
695
- // src/components/Modal.styles.ts
696
- import { cva as cva26 } from "@marigold/system";
697
- var Modal = cva26(
698
- [
699
- "sm:max-h-[min(640px,80vh)]",
700
- "[--dialog-spacing-x:1rem]",
701
- // Minimal padding to the horizontal edges
702
- "w-[min(calc(100%_-_var(--dialog-spacing-x)),calc(var(--dialog-width)_-_var(--dialog-spacing-x)))]"
703
- ],
704
- {
705
- variants: {
706
- size: {
707
- xsmall: "[--dialog-width:480px]",
708
- // "xs" breakpoint
709
- small: "[--dialog-width:640px]",
710
- // sm breakpoint
711
- medium: "[--dialog-width:768px]"
712
- // md breakpoint
713
- }
714
- },
715
- defaultVariants: {
716
- size: "small"
717
- }
718
- }
719
- );
551
+ //#endregion
552
+ //#region src/components/Modal.styles.ts
553
+ const Modal = cva([
554
+ "sm:max-h-[min(640px,80vh)]",
555
+ "[--dialog-spacing-x:1rem]",
556
+ "w-[min(calc(100%_-_var(--dialog-spacing-x)),calc(var(--dialog-width)_-_var(--dialog-spacing-x)))]"
557
+ ], {
558
+ variants: { size: {
559
+ xsmall: "[--dialog-width:480px]",
560
+ small: "[--dialog-width:640px]",
561
+ medium: "[--dialog-width:768px]"
562
+ } },
563
+ defaultVariants: { size: "small" }
564
+ });
720
565
 
721
- // src/components/Multiselect.styles.ts
722
- import { cva as cva27 } from "@marigold/system";
723
- var MultiSelect = {
724
- field: cva27("space-y-2"),
725
- container: cva27([
726
- "bg-background shadow-xs border",
727
- "px-3 text-sm text-foreground transition-shadow",
728
- "border border-input rounded-lg outline-hidden",
729
- "aria-disabled:bg-disabled aria-disabled:text-disabled-foreground aria-disabled:hover:border-input aria-disabled:border-input aria-disabled:cursor-not-allowed",
730
- "has-[input[data-invalid=true]]:border-destructive has-[input[data-invalid=true][data-focused=true]]:!border-destructive has-[input[data-invalid=true][data-focused=true]]:!ring-destructive/20",
731
- "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",
732
- "has-[input[aria-readonly=true]]:bg-muted",
733
- "min-h-input"
734
- ]),
735
- input: cva27([
736
- "bg-transparent flex-1 h-full",
737
- "leading-loose",
738
- "data-[focused]:outline-hidden outline-hidden border-0",
739
- "disabled:cursor-not-allowed",
740
- "group-data-[icon]/input:pl-5",
741
- "group-data-[action]/input:pr-8",
742
- "placeholder:text-placeholder"
743
- ]),
744
- tag: cva27([
745
- "border border-solid border-input rounded-md",
746
- "bg-background",
747
- "font-medium text-xs",
748
- "flex items-center gap-1 ",
749
- "h-7 px-2 cursor-default"
750
- ]),
751
- closeButton: cva27(
752
- "size-4 cursor-pointer border-none bg-transparent p-0 leading-normal outline-0"
753
- ),
754
- icon: cva27("left-1"),
755
- listContainer: cva27(["util-surface-overlay mt-0.5 rounded-lg outline-0"]),
756
- list: cva27("pointer-events-auto space-y-1 p-1"),
757
- option: cva27([
758
- "text-sm text-foreground",
759
- "flex flex-col",
760
- "cursor-pointer p-2 outline-hidden",
761
- "[&.isFocused:not([aria-disabled=true])]:!text-foreground [&.isFocused[aria-disabled=true]]:bg-transparent",
762
- "aria-disabled:text-disabled-foreground aria-disabled:cursor-not-allowed",
763
- "[&.isFocused:not([aria-disabled=true])]:!bg-hover"
764
- ]),
765
- valueContainer: cva27("gap-2")
566
+ //#endregion
567
+ //#region src/components/Multiselect.styles.ts
568
+ const MultiSelect = {
569
+ field: cva("space-y-2"),
570
+ container: cva([
571
+ "bg-background shadow-xs border",
572
+ "px-3 text-sm text-foreground transition-shadow",
573
+ "border border-input rounded-lg outline-hidden",
574
+ "aria-disabled:bg-disabled aria-disabled:text-disabled-foreground aria-disabled:hover:border-input aria-disabled:border-input aria-disabled:cursor-not-allowed",
575
+ "has-[input[data-invalid=true]]:border-destructive has-[input[data-invalid=true][data-focused=true]]:!border-destructive has-[input[data-invalid=true][data-focused=true]]:!ring-destructive/20",
576
+ "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",
577
+ "has-[input[aria-readonly=true]]:bg-muted",
578
+ "min-h-input"
579
+ ]),
580
+ input: cva([
581
+ "bg-transparent flex-1 h-full",
582
+ "leading-loose",
583
+ "data-[focused]:outline-hidden outline-hidden border-0",
584
+ "disabled:cursor-not-allowed",
585
+ "group-data-[icon]/input:pl-5",
586
+ "group-data-[action]/input:pr-8",
587
+ "placeholder:text-placeholder"
588
+ ]),
589
+ tag: cva([
590
+ "border border-solid border-input rounded-md",
591
+ "bg-background",
592
+ "font-medium text-xs",
593
+ "flex items-center gap-1 ",
594
+ "h-7 px-2 cursor-default"
595
+ ]),
596
+ closeButton: cva("size-4 cursor-pointer border-none bg-transparent p-0 leading-normal outline-0"),
597
+ icon: cva("left-1"),
598
+ listContainer: cva(["util-surface-overlay mt-0.5 rounded-lg outline-0"]),
599
+ list: cva("pointer-events-auto space-y-1 p-1"),
600
+ option: cva([
601
+ "text-sm text-foreground",
602
+ "flex flex-col",
603
+ "cursor-pointer p-2 outline-hidden",
604
+ "[&.isFocused:not([aria-disabled=true])]:!text-foreground [&.isFocused[aria-disabled=true]]:bg-transparent",
605
+ "aria-disabled:text-disabled-foreground aria-disabled:cursor-not-allowed",
606
+ "[&.isFocused:not([aria-disabled=true])]:!bg-hover"
607
+ ]),
608
+ valueContainer: cva("gap-2")
766
609
  };
767
610
 
768
- // src/components/NumberField.styles.ts
769
- import { cva as cva28 } from "@marigold/system";
770
- var NumberField = {
771
- group: cva28([
772
- "rounded-lg h-input bg-background",
773
- "has-focus-visible:util-focus-ring outline-none",
774
- inputInvalid,
775
- inputReadOnly,
776
- "border border-input text-sm shadow-xs transition-shadow",
777
- "data-invalid:data-[focus-within]:border-destructive data-invalid:data-[focus-within]:ring-destructive/20"
778
- ]),
779
- stepper: cva28([
780
- "w-7 h-full text-center shrink-0",
781
- "disabled:text-disabled-foreground disabled:bg-disabled",
782
- "border-input! first-of-type:border-r! last-of-type:border-l!"
783
- ]),
784
- input: cva28([
785
- "tabular-nums text-foreground px-3 py-2",
786
- "min-w-0 flex-1 bg-transparent",
787
- "group-[[data-stepper]]/field:text-center",
788
- "disabled:text-disabled-foreground disabled:bg-disabled"
789
- ])
611
+ //#endregion
612
+ //#region src/components/NumberField.styles.ts
613
+ const NumberField = {
614
+ group: cva([
615
+ "rounded-lg h-input bg-background",
616
+ "has-focus-visible:util-focus-ring outline-none",
617
+ inputInvalid,
618
+ inputReadOnly,
619
+ "border border-input text-sm shadow-xs transition-shadow",
620
+ "data-invalid:data-[focus-within]:border-destructive data-invalid:data-[focus-within]:ring-destructive/20"
621
+ ]),
622
+ stepper: cva([
623
+ "w-7 h-full text-center shrink-0",
624
+ "disabled:text-disabled-foreground disabled:bg-disabled",
625
+ "border-input! first-of-type:border-r! last-of-type:border-l!"
626
+ ]),
627
+ input: cva([
628
+ "tabular-nums text-foreground px-3 py-2",
629
+ "min-w-0 flex-1 bg-transparent",
630
+ "group-[[data-stepper]]/field:text-center",
631
+ "disabled:text-disabled-foreground disabled:bg-disabled"
632
+ ])
790
633
  };
791
634
 
792
- // src/components/Popover.styles.ts
793
- import { cva as cva29 } from "@marigold/system";
794
- var Popover = cva29([
795
- "group/popover",
796
- "text-foreground z-50 overflow-y-auto overflow-x-hidden rounded-md outline-0",
797
- "placement-top:mb-1",
798
- "placement-bottom:mt-1",
799
- "placement-right:ml-1",
800
- "placement-left:mr-1",
801
- "util-surface-overlay"
635
+ //#endregion
636
+ //#region src/components/Popover.styles.ts
637
+ const Popover = cva([
638
+ "group/popover",
639
+ "text-foreground z-50 overflow-y-auto overflow-x-hidden rounded-md outline-0",
640
+ "placement-top:mb-1",
641
+ "placement-bottom:mt-1",
642
+ "placement-right:ml-1",
643
+ "placement-left:mr-1",
644
+ "util-surface-overlay"
802
645
  ]);
803
646
 
804
- // src/components/Radio.styles.ts
805
- import { cva as cva30 } from "@marigold/system";
806
- var Radio = {
807
- container: cva30("group-disabled/radio:cursor-not-allowed"),
808
- label: cva30([
809
- "text-sm font-normal cursor-pointer",
810
- "group-disabled/radio:text-disabled-foreground group-disabled/radio:cursor-not-allowed"
811
- ]),
812
- radio: cva30([
813
- "aspect-square size-4 rounded-full",
814
- "border border-input shadow-xs",
815
- "group-focus-visible/radio:util-focus-ring outline-none",
816
- "group-disabled/radio:group-selected/radio:bg-disabled group-disabled/radio:border-disabled! group-disabled/radio:cursor-not-allowed",
817
- "group-selected/radio:border-brand group-selected/radio:bg-brand group-selected/radio:text-brand-foreground"
818
- ]),
819
- group: cva30()
647
+ //#endregion
648
+ //#region src/components/Radio.styles.ts
649
+ const Radio = {
650
+ container: cva("group-disabled/radio:cursor-not-allowed"),
651
+ label: cva(["text-sm font-normal cursor-pointer", "group-disabled/radio:text-disabled-foreground group-disabled/radio:cursor-not-allowed"]),
652
+ radio: cva([
653
+ "aspect-square size-4 rounded-full",
654
+ "border border-input shadow-xs",
655
+ "group-focus-visible/radio:util-focus-ring outline-none",
656
+ "group-disabled/radio:group-selected/radio:bg-disabled group-disabled/radio:border-disabled! group-disabled/radio:cursor-not-allowed",
657
+ "group-selected/radio:border-brand group-selected/radio:bg-brand group-selected/radio:text-brand-foreground"
658
+ ]),
659
+ group: cva()
820
660
  };
821
661
 
822
- // src/components/Pagination.styles.ts
823
- import { cva as cva31 } from "@marigold/system";
824
- var button = [
825
- "inline-flex items-center justify-center whitespace-nowrap rounded-lg text-sm font-medium transition-colors",
826
- "focus-visible:util-focus-ring outline-none",
827
- "disabled:pointer-events-none disabled:bg-disabled disabled:text-disabled-foreground",
828
- "[&_svg]:pointer-events-none [&_svg]:shrink-0",
829
- "hover:bg-hover hover:text-hover-foreground",
830
- "cursor-pointer"
662
+ //#endregion
663
+ //#region src/components/Pagination.styles.ts
664
+ const button = [
665
+ "inline-flex items-center justify-center whitespace-nowrap rounded-lg text-sm font-medium transition-colors",
666
+ "focus-visible:util-focus-ring outline-none",
667
+ "disabled:pointer-events-none disabled:bg-disabled disabled:text-disabled-foreground",
668
+ "[&_svg]:pointer-events-none [&_svg]:shrink-0",
669
+ "hover:bg-hover hover:text-hover-foreground",
670
+ "cursor-pointer"
831
671
  ];
832
- var Pagination = {
833
- container: cva31("flex items-center justify-center space-x-2"),
834
- navigationButton: cva31([
835
- ...button,
836
- "disabled:pointer-events-none disabled:bg-disabled disabled:text-disabled-foreground",
837
- "h-9 py-2 gap-1 px-2.5"
838
- ]),
839
- pageButton: cva31([
840
- ...button,
841
- "bg-background size-9",
842
- "data-[selected=true]:border data-[selected=true]:border-input data-[selected=true]:shadow-xs"
843
- ]),
844
- icon: cva31("h-4 w-4"),
845
- ellipsis: cva31("text-foreground flex h-8 w-8 items-center justify-center")
672
+ const Pagination = {
673
+ container: cva("flex items-center justify-center space-x-2"),
674
+ navigationButton: cva([
675
+ ...button,
676
+ "disabled:pointer-events-none disabled:bg-disabled disabled:text-disabled-foreground",
677
+ "h-9 py-2 gap-1 px-2.5"
678
+ ]),
679
+ pageButton: cva([
680
+ ...button,
681
+ "bg-background size-9",
682
+ "data-[selected=true]:border data-[selected=true]:border-input data-[selected=true]:shadow-xs"
683
+ ]),
684
+ icon: cva("h-4 w-4"),
685
+ ellipsis: cva("text-foreground flex h-8 w-8 items-center justify-center")
846
686
  };
847
687
 
848
- // src/components/ProgressCycle.styles.ts
849
- import { cva as cva32 } from "@marigold/system";
850
- var ProgressCycle = cva32([
851
- "stroke-foreground"
852
- ]);
688
+ //#endregion
689
+ //#region src/components/ProgressCycle.styles.ts
690
+ const ProgressCycle = cva(["stroke-foreground"]);
853
691
 
854
- // src/components/SectionMessage.styles.ts
855
- import { cva as cva33 } from "@marigold/system";
856
- var SectionMessage = {
857
- container: cva33(
858
- [
859
- 'grid-cols-[min-content_auto_min-content] gap-x-4 gap-y-1 [grid-template-areas:"icon_title_close""icon_content_content"]',
860
- "bg-background rounded-md border px-3 py-4"
861
- ],
862
- {
863
- variants: {
864
- variant: {
865
- success: "border-success-muted-accent bg-success-muted text-success-muted-foreground",
866
- warning: "border-warning-muted-accent bg-warning-muted text-warning-muted-foreground",
867
- info: "border-info-muted-accent bg-info-muted text-info-muted-foreground",
868
- error: "border-destructive-muted-accent bg-destructive-muted text-destructive-muted-foreground"
869
- }
870
- },
871
- defaultVariants: {
872
- variant: "info"
873
- }
874
- }
875
- ),
876
- title: cva33("text-sm font-medium"),
877
- content: cva33("text-muted-foreground text-sm leading-5 font-normal", {
878
- variants: {
879
- variant: {
880
- success: "text-success-muted-foreground",
881
- warning: "text-warning-muted-foreground",
882
- info: "text-info-muted-foreground",
883
- error: "text-destructive-muted-foreground"
884
- }
885
- },
886
- defaultVariants: {
887
- variant: "info"
888
- }
889
- }),
890
- icon: cva33("h-6 w-6 align-baseline leading-none -mt-0.5", {
891
- variants: {
892
- variant: {
893
- success: "text-success-muted-accent",
894
- warning: "text-warning-muted-accent",
895
- info: "text-info-muted-accent",
896
- error: "text-destructive-muted-accent"
897
- }
898
- },
899
- defaultVariants: {
900
- variant: "info"
901
- }
902
- }),
903
- close: cva33([
904
- "size-8 text-foreground",
905
- "[&_svg]:size-6",
906
- "-my-1.5 -me-2"
907
- // align button with title
908
- ])
692
+ //#endregion
693
+ //#region src/components/SectionMessage.styles.ts
694
+ const SectionMessage = {
695
+ container: 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"], {
696
+ variants: { variant: {
697
+ success: "border-success-muted-accent bg-success-muted text-success-muted-foreground",
698
+ warning: "border-warning-muted-accent bg-warning-muted text-warning-muted-foreground",
699
+ info: "border-info-muted-accent bg-info-muted text-info-muted-foreground",
700
+ error: "border-destructive-muted-accent bg-destructive-muted text-destructive-muted-foreground"
701
+ } },
702
+ defaultVariants: { variant: "info" }
703
+ }),
704
+ title: cva("text-sm font-medium"),
705
+ content: cva("text-muted-foreground text-sm leading-5 font-normal", {
706
+ variants: { variant: {
707
+ success: "text-success-muted-foreground",
708
+ warning: "text-warning-muted-foreground",
709
+ info: "text-info-muted-foreground",
710
+ error: "text-destructive-muted-foreground"
711
+ } },
712
+ defaultVariants: { variant: "info" }
713
+ }),
714
+ icon: cva("h-6 w-6 align-baseline leading-none -mt-0.5", {
715
+ variants: { variant: {
716
+ success: "text-success-muted-accent",
717
+ warning: "text-warning-muted-accent",
718
+ info: "text-info-muted-accent",
719
+ error: "text-destructive-muted-accent"
720
+ } },
721
+ defaultVariants: { variant: "info" }
722
+ }),
723
+ close: cva([
724
+ "size-8 text-foreground",
725
+ "[&_svg]:size-6",
726
+ "-my-1.5 -me-2"
727
+ ])
909
728
  };
910
729
 
911
- // src/components/Select.styles.ts
912
- import { cva as cva34 } from "@marigold/system";
913
- var Select = {
914
- icon: cva34("text-muted-foreground/80"),
915
- select: cva34([
916
- inputContainer,
917
- inputInvalid,
918
- inputDisabled,
919
- "focus-visible:util-focus-ring outline-none",
920
- "h-input",
921
- "cursor-pointer",
922
- "*:data-placeholder:text-placeholder",
923
- /**
924
- * Removes the spacing from the field when there is no
925
- * helptext. Spacing is applied because the select is followed
926
- * by a hidden select that is rendered by react-aria.
927
- */
928
- 'has-[+_[aria-hidden="true"]]:mb-0'
929
- ])
730
+ //#endregion
731
+ //#region src/components/Select.styles.ts
732
+ const Select = {
733
+ icon: cva("text-muted-foreground/80"),
734
+ select: cva([
735
+ inputContainer,
736
+ inputInvalid,
737
+ inputDisabled,
738
+ "focus-visible:util-focus-ring outline-none",
739
+ "h-input",
740
+ "cursor-pointer",
741
+ "*:data-placeholder:text-placeholder",
742
+ "has-[+_[aria-hidden=\"true\"]]:mb-0"
743
+ ])
930
744
  };
931
745
 
932
- // src/components/Slider.styles.ts
933
- import { cva as cva35 } from "@marigold/system";
934
- var Slider = {
935
- container: cva35("*:aria-hidden:hidden"),
936
- track: cva35([
937
- "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"
938
- ]),
939
- selectedTrack: cva35([
940
- "absolute bg-black data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full rounded-lg"
941
- ]),
942
- thumb: cva35([
943
- "block h-5 w-5 rounded-full border-2 border-primary bg-background transition-colors",
944
- "focus-visible:util-focus-borderless-ring outline-none",
945
- "disabled:cursor-not-allowed"
946
- ]),
947
- output: cva35("text-foreground text-sm")
746
+ //#endregion
747
+ //#region src/components/Slider.styles.ts
748
+ const Slider = {
749
+ container: cva("*:aria-hidden:hidden"),
750
+ track: 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"]),
751
+ selectedTrack: cva(["absolute bg-black data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full rounded-lg"]),
752
+ thumb: cva([
753
+ "block h-5 w-5 rounded-full border-2 border-primary bg-background transition-colors",
754
+ "focus-visible:util-focus-borderless-ring outline-none",
755
+ "disabled:cursor-not-allowed"
756
+ ]),
757
+ output: cva("text-foreground text-sm")
948
758
  };
949
759
 
950
- // src/components/Switch.styles.ts
951
- import { cva as cva36 } from "@marigold/system";
952
- var Switch = {
953
- container: cva36(
954
- "disabled:cursor-not-allowed disabled:text-disabled-foreground"
955
- ),
956
- track: cva36([
957
- "flex h-6 w-10 shrink-0 cursor-pointer items-center rounded-full transition-colors",
958
- "border-2 border-transparent",
959
- // this increases the hit area so it is 24px
960
- "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",
961
- "group-selected/switch:bg-brand bg-input",
962
- "group-focus-visible/switch:util-focus-borderless-ring outline-none"
963
- ]),
964
- thumb: cva36([
965
- "pointer-events-none block size-5 rounded-full",
966
- "bg-background shadow-xs",
967
- "ring-0 transition-transform duration-150 ease-out-quint",
968
- "group-selected/switch:translate-x-4 translate-x-0"
969
- ])
760
+ //#endregion
761
+ //#region src/components/Switch.styles.ts
762
+ const Switch = {
763
+ container: cva("disabled:cursor-not-allowed disabled:text-disabled-foreground"),
764
+ track: cva([
765
+ "flex h-6 w-10 shrink-0 cursor-pointer items-center rounded-full transition-colors",
766
+ "border-2 border-transparent",
767
+ "group-disabled/switch:bg-disabled group-disabled/switch:text-disabled-foreground group-selected/switch:group-disabled/switch:bg-disabled group-selected/switch:group-disabled/switch:text-disabled-foreground",
768
+ "group-selected/switch:bg-brand bg-input",
769
+ "group-focus-visible/switch:util-focus-borderless-ring outline-none"
770
+ ]),
771
+ thumb: cva([
772
+ "pointer-events-none block size-5 rounded-full",
773
+ "bg-background shadow-xs",
774
+ "ring-0 transition-transform duration-150 ease-out-quint",
775
+ "group-selected/switch:translate-x-4 translate-x-0"
776
+ ])
970
777
  };
971
778
 
972
- // src/components/Table.styles.ts
973
- import { cva as cva37 } from "@marigold/system";
974
- var Table = {
975
- table: cva37(
976
- "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",
977
- {
978
- variants: {
979
- variant: {
980
- default: "",
981
- grid: ""
982
- }
983
- }
984
- }
985
- ),
986
- thead: cva37(
987
- // for sticky header
988
- "bg-background/90 top-0 z-1 backdrop-blur-xs ",
989
- {
990
- variants: {
991
- variant: {
992
- default: "",
993
- grid: ""
994
- }
995
- }
996
- }
997
- ),
998
- headerRow: cva37(["border-border border-b"], {
999
- variants: {
1000
- variant: {
1001
- default: "",
1002
- grid: "[&>:not(:last-child)]:border-r [&>:not(:last-child)]:border-border",
1003
- muted: "bg-muted"
1004
- }
1005
- },
1006
- defaultVariants: {
1007
- variant: "default"
1008
- }
1009
- }),
1010
- header: cva37(
1011
- [
1012
- "h-12 px-3 align-middle font-medium text-muted-foreground",
1013
- "focus-visible:outline-2 outline-offset-2 outline-ring/70"
1014
- ],
1015
- {
1016
- variants: {
1017
- variant: {
1018
- default: "[&:has([type=checkbox])]:pr-0",
1019
- grid: "",
1020
- muted: "border-t"
1021
- }
1022
- },
1023
- defaultVariants: {
1024
- variant: "default"
1025
- }
1026
- }
1027
- ),
1028
- body: cva37("[&_tr:last-child]:border-0"),
1029
- row: cva37(
1030
- [
1031
- "border-b border-border transition-colors",
1032
- "focus-visible:outline-2 outline-offset-2 outline-ring/70",
1033
- "data-disabled:cursor-not-allowed"
1034
- ],
1035
- {
1036
- variants: {
1037
- variant: {
1038
- default: "aria-[selected=true]:bg-muted",
1039
- grid: "aria-[selected=true]:bg-muted [&>:not(:last-child)]:border-r [&>:not(:last-child)]:border-border",
1040
- admin: [
1041
- "bg-access-admin",
1042
- "[&_td:first-child]:relative [&_td:first-child]:pl-4",
1043
- '[&_td:first-child:before]:content-[""] [&_td:first-child:before]:absolute [&_td:first-child:before]:top-0 [&_td:first-child:before]:bottom-0 [&_td:first-child:before]:left-0 [&_td:first-child:before]:w-1',
1044
- "[&_td:first-child:before]:bg-access-admin-foreground"
1045
- ],
1046
- master: [
1047
- "bg-access-master",
1048
- "[&_td:first-child]:relative [&_td:first-child]:pl-4",
1049
- '[&_td:first-child:before]:content-[""] [&_td:first-child:before]:absolute [&_td:first-child:before]:top-0 [&_td:first-child:before]:bottom-0 [&_td:first-child:before]:left-0 [&_td:first-child:before]:w-1',
1050
- "[&_td:first-child:before]:bg-access-master-foreground"
1051
- ]
1052
- }
1053
- },
1054
- defaultVariants: {
1055
- variant: "default"
1056
- }
1057
- }
1058
- ),
1059
- cell: cva37("p-3 focus-visible:outline-2 outline-offset-2 outline-ring/70", {
1060
- variants: {
1061
- variant: {
1062
- default: "[&:has([type=checkbox])]:pr-0",
1063
- grid: ""
1064
- }
1065
- },
1066
- defaultVariants: {
1067
- variant: "default"
1068
- }
1069
- })
779
+ //#endregion
780
+ //#region src/components/Table.styles.ts
781
+ const Table = {
782
+ table: 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: {
783
+ default: "",
784
+ grid: ""
785
+ } } }),
786
+ thead: cva("bg-background/90 top-0 z-1 backdrop-blur-xs ", { variants: { variant: {
787
+ default: "",
788
+ grid: ""
789
+ } } }),
790
+ headerRow: cva(["border-border border-b"], {
791
+ variants: { variant: {
792
+ default: "",
793
+ grid: "[&>:not(:last-child)]:border-r [&>:not(:last-child)]:border-border",
794
+ muted: "bg-muted"
795
+ } },
796
+ defaultVariants: { variant: "default" }
797
+ }),
798
+ header: cva(["h-12 px-3 align-middle font-medium text-muted-foreground", "focus-visible:outline-2 outline-offset-2 outline-ring/70"], {
799
+ variants: { variant: {
800
+ default: "[&:has([type=checkbox])]:pr-0",
801
+ grid: "",
802
+ muted: "border-t"
803
+ } },
804
+ defaultVariants: { variant: "default" }
805
+ }),
806
+ body: cva("[&_tr:last-child]:border-0"),
807
+ row: cva([
808
+ "border-b border-border transition-colors",
809
+ "focus-visible:outline-2 outline-offset-2 outline-ring/70",
810
+ "data-disabled:cursor-not-allowed"
811
+ ], {
812
+ variants: { variant: {
813
+ default: "aria-[selected=true]:bg-muted",
814
+ grid: "aria-[selected=true]:bg-muted [&>:not(:last-child)]:border-r [&>:not(:last-child)]:border-border",
815
+ admin: [
816
+ "bg-access-admin",
817
+ "[&_td:first-child]:relative [&_td:first-child]:pl-4",
818
+ "[&_td:first-child:before]:content-[\"\"] [&_td:first-child:before]:absolute [&_td:first-child:before]:top-0 [&_td:first-child:before]:bottom-0 [&_td:first-child:before]:left-0 [&_td:first-child:before]:w-1",
819
+ "[&_td:first-child:before]:bg-access-admin-foreground"
820
+ ],
821
+ master: [
822
+ "bg-access-master",
823
+ "[&_td:first-child]:relative [&_td:first-child]:pl-4",
824
+ "[&_td:first-child:before]:content-[\"\"] [&_td:first-child:before]:absolute [&_td:first-child:before]:top-0 [&_td:first-child:before]:bottom-0 [&_td:first-child:before]:left-0 [&_td:first-child:before]:w-1",
825
+ "[&_td:first-child:before]:bg-access-master-foreground"
826
+ ]
827
+ } },
828
+ defaultVariants: { variant: "default" }
829
+ }),
830
+ cell: cva("p-3 focus-visible:outline-2 outline-offset-2 outline-ring/70", {
831
+ variants: { variant: {
832
+ default: "[&:has([type=checkbox])]:pr-0",
833
+ grid: ""
834
+ } },
835
+ defaultVariants: { variant: "default" }
836
+ })
1070
837
  };
1071
838
 
1072
- // src/components/Tabs.styles.ts
1073
- import { cva as cva38 } from "@marigold/system";
1074
- var Tabs = {
1075
- container: cva38("flex flex-col gap-2"),
1076
- tabsList: cva38([
1077
- "text-muted-foreground",
1078
- "flex items-center p-0.5 h-auto gap-2 border-b border-border px-0 py-1"
1079
- ]),
1080
- tab: cva38([
1081
- "relative inline-flex items-center justify-center gap-1 rounded-sm px-3 py-1.5 text-sm font-medium whitespace-nowrap transition-colors",
1082
- "[&_svg]:shrink-0",
1083
- "focus-visible:util-focus-ring outline-none",
1084
- "hover:bg-hover hover:text-foreground",
1085
- "disabled:pointer-events-none disabled:opacity-50",
1086
- "data-selected:text-foreground data-selected:hover:bg-hover",
1087
- "data-[selected=true]:after:bg-foreground after:absolute after:inset-x-0 after:bottom-0 after:-mb-1 after:h-0.5"
1088
- ]),
1089
- tabpanel: cva38([
1090
- "py-4 rounded-sm",
1091
- "focus-visible:util-focus-ring outline-none"
1092
- ])
839
+ //#endregion
840
+ //#region src/components/Tabs.styles.ts
841
+ const Tabs = {
842
+ container: cva("flex flex-col gap-2"),
843
+ tabsList: cva(["text-muted-foreground", "flex items-center p-0.5 h-auto gap-2 border-b border-border px-0 py-1"]),
844
+ tab: cva([
845
+ "relative inline-flex items-center justify-center gap-1 rounded-sm px-3 py-1.5 text-sm font-medium whitespace-nowrap transition-colors",
846
+ "[&_svg]:shrink-0",
847
+ "focus-visible:util-focus-ring outline-none",
848
+ "hover:bg-hover hover:text-foreground",
849
+ "disabled:pointer-events-none disabled:opacity-50",
850
+ "data-selected:text-foreground data-selected:hover:bg-hover",
851
+ "data-[selected=true]:after:bg-foreground after:absolute after:inset-x-0 after:bottom-0 after:-mb-1 after:h-0.5"
852
+ ]),
853
+ tabpanel: cva(["py-4 rounded-sm", "focus-visible:util-focus-ring outline-none"])
1093
854
  };
1094
855
 
1095
- // src/components/Tag.styles.ts
1096
- import { cva as cva39 } from "@marigold/system";
1097
- var Tag = {
1098
- container: cva39([
1099
- "flex gap-3",
1100
- // prevent layout jumps when a smaller empty state is shown (min height is set to height of tags)
1101
- "min-h-7"
1102
- ]),
1103
- tag: cva39([
1104
- "relative inline-flex items-center gap-[7px]",
1105
- "border border-solid border-input rounded-lg",
1106
- "font-medium text-xs",
1107
- "h-7 px-2 cursor-default",
1108
- "bg-background",
1109
- "data-selected:text-white data-selected:bg-brand",
1110
- "data-[disabled]:cursor-not-allowed data-[disabled]:text-disabled-foreground data-[disabled]:bg-disabled",
1111
- "focus-visible:util-focus-ring outline-none"
1112
- ]),
1113
- closeButton: cva39([
1114
- "size-4",
1115
- "disabled:bg-disabled disabled:text-disabled-foreground disabled:cursor-not-allowed"
1116
- ]),
1117
- listItems: cva39([
1118
- "flex flex-wrap gap-1",
1119
- // mb-0 prevents whitespace when the hidden field is rendered
1120
- "mb-0"
1121
- ]),
1122
- removeAll: cva39([
1123
- "inline whitespace-nowrap font-medium transition-[color,box-shadow,transform]",
1124
- "duration-150 active:scale-[0.98] pressed:scale-[0.98]",
1125
- "focus-visible:util-focus-ring outline-none",
1126
- "cursor-pointer",
1127
- "text-link text-xs util-touch-hitbox"
1128
- ])
856
+ //#endregion
857
+ //#region src/components/Tag.styles.ts
858
+ const Tag = {
859
+ container: cva(["flex gap-3", "min-h-7"]),
860
+ tag: cva([
861
+ "relative inline-flex items-center gap-[7px]",
862
+ "border border-solid border-input rounded-lg",
863
+ "font-medium text-xs",
864
+ "h-7 px-2 cursor-default",
865
+ "bg-background",
866
+ "data-selected:text-white data-selected:bg-brand",
867
+ "data-[disabled]:cursor-not-allowed data-[disabled]:text-disabled-foreground data-[disabled]:bg-disabled",
868
+ "focus-visible:util-focus-ring outline-none"
869
+ ]),
870
+ closeButton: cva(["size-4", "disabled:bg-disabled disabled:text-disabled-foreground disabled:cursor-not-allowed"]),
871
+ listItems: cva(["flex flex-wrap gap-1", "mb-0"]),
872
+ removeAll: cva([
873
+ "inline whitespace-nowrap font-medium transition-[color,box-shadow,transform]",
874
+ "duration-150 active:scale-[0.98] pressed:scale-[0.98]",
875
+ "focus-visible:util-focus-ring outline-none",
876
+ "cursor-pointer",
877
+ "text-link text-xs util-touch-hitbox"
878
+ ])
1129
879
  };
1130
880
 
1131
- // src/components/TextArea.styles.ts
1132
- import { cva as cva40 } from "@marigold/system";
1133
- var TextArea = cva40([
1134
- inputContainer,
1135
- inputInvalid,
1136
- "focus:util-focus-ring outline-none",
1137
- inputDisabled,
1138
- inputReadOnly,
1139
- "invalid:text-destructive"
881
+ //#endregion
882
+ //#region src/components/TextArea.styles.ts
883
+ const TextArea = cva([
884
+ inputContainer,
885
+ inputInvalid,
886
+ "focus:util-focus-ring outline-none",
887
+ inputDisabled,
888
+ inputReadOnly,
889
+ "invalid:text-destructive"
1140
890
  ]);
1141
891
 
1142
- // src/components/Text.styles.ts
1143
- import { cva as cva41 } from "@marigold/system";
1144
- var Text = cva41("", {
1145
- variants: {
1146
- variant: {
1147
- default: "",
1148
- muted: "text-muted-foreground"
1149
- },
1150
- size: {
1151
- // Adding a default here, which beasically acts as an inherit
1152
- default: "",
1153
- xs: "text-xs",
1154
- sm: "text-sm",
1155
- base: "text-base",
1156
- lg: "text-lg",
1157
- xl: "text-xl",
1158
- "2xl": "text-2xl",
1159
- "3xl": "text-3xl",
1160
- "4xl": "text-4xl",
1161
- "5xl": "text-5xl",
1162
- "6xl": "text-6xl",
1163
- "7xl": "text-7xl",
1164
- "8xl": "text-8xl",
1165
- "9xl": "text-9xl"
1166
- }
1167
- },
1168
- defaultVariants: {
1169
- variant: "default",
1170
- size: "default"
1171
- }
892
+ //#endregion
893
+ //#region src/components/Text.styles.ts
894
+ const Text = cva("", {
895
+ variants: {
896
+ variant: {
897
+ default: "",
898
+ muted: "text-muted-foreground"
899
+ },
900
+ size: {
901
+ default: "",
902
+ xs: "text-xs",
903
+ sm: "text-sm",
904
+ base: "text-base",
905
+ lg: "text-lg",
906
+ xl: "text-xl",
907
+ "2xl": "text-2xl",
908
+ "3xl": "text-3xl",
909
+ "4xl": "text-4xl",
910
+ "5xl": "text-5xl",
911
+ "6xl": "text-6xl",
912
+ "7xl": "text-7xl",
913
+ "8xl": "text-8xl",
914
+ "9xl": "text-9xl"
915
+ }
916
+ },
917
+ defaultVariants: {
918
+ variant: "default",
919
+ size: "default"
920
+ }
1172
921
  });
1173
922
 
1174
- // src/components/Toast.styles.ts
1175
- import { cva as cva42 } from "@marigold/system";
1176
- var Toast = {
1177
- toast: cva42([
1178
- "z-50",
1179
- "max-w-sm w-full pointer-events-auto overflow-hidden rounded-md border shadow-lg bg-background text-foreground border-border",
1180
- "grid grid-cols-[auto_1fr_auto] grid-rows-[auto_auto] gap-x-1 gap-y-0",
1181
- '[grid-template-areas:"icon_title_close""icon_description_description"] focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]',
1182
- "p-4"
1183
- ]),
1184
- title: cva42([
1185
- "text-sm font-medium",
1186
- "[grid-area:title]",
1187
- "flex items-center mb-0"
1188
- ]),
1189
- description: cva42([
1190
- "text-muted-foreground text-sm",
1191
- "[grid-area:description] mt-0"
1192
- ]),
1193
- closeButton: cva42([
1194
- "[grid-area:close] row-end-1",
1195
- "ml-2",
1196
- "flex items-center justify-center",
1197
- "size-5 rounded transition-[color,box-shadow] outline-none",
1198
- "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] text-muted-foreground hover:text-hover-foreground"
1199
- ]),
1200
- icon: cva42(
1201
- [
1202
- "[grid-area:icon]",
1203
- "flex items-center justify-center",
1204
- "h-5 w-5 leading-none"
1205
- ],
1206
- {
1207
- variants: {
1208
- variant: {
1209
- default: "",
1210
- success: "text-success-muted-accent",
1211
- warning: "text-warning-muted-accent",
1212
- info: "text-info-muted-accent",
1213
- error: "text-destructive-muted-accent"
1214
- }
1215
- },
1216
- defaultVariants: {
1217
- variant: "default"
1218
- }
1219
- }
1220
- ),
1221
- content: cva42(["contents"]),
1222
- "bottom-left": cva42(["fixed bottom-4 left-4 flex flex-col-reverse"]),
1223
- "bottom-right": cva42(["fixed bottom-4 right-4 flex flex-col-reverse"]),
1224
- "top-left": cva42(["fixed top-4 left-4 flex flex-col"]),
1225
- "top-right": cva42(["fixed top-4 right-4 flex flex-col"]),
1226
- top: cva42([
1227
- "fixed top-4 left-1/2 right-auto -translate-x-1/2 flex flex-col items-center w-auto align-middle"
1228
- ]),
1229
- bottom: cva42([
1230
- "fixed bottom-4 left-1/2 right-auto -translate-x-1/2 flex flex-col-reverse items-center w-auto align-middle"
1231
- ])
923
+ //#endregion
924
+ //#region src/components/Toast.styles.ts
925
+ const Toast = {
926
+ toast: cva([
927
+ "z-50",
928
+ "max-w-sm w-full pointer-events-auto overflow-hidden rounded-md border shadow-lg bg-background text-foreground border-border",
929
+ "grid grid-cols-[auto_1fr_auto_auto] grid-rows-[auto_auto] gap-x-1 gap-y-0",
930
+ "[grid-template-areas:\"icon_title_action_close\"\"icon_description_action_close\"] focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
931
+ "p-4"
932
+ ]),
933
+ title: cva([
934
+ "text-sm font-medium",
935
+ "[grid-area:title]",
936
+ "flex items-center mb-0"
937
+ ]),
938
+ description: cva(["text-muted-foreground text-sm", "[grid-area:description] mt-0"]),
939
+ closeButton: cva([
940
+ "[grid-area:close] row-end-1",
941
+ "ml-2",
942
+ "flex items-center justify-center",
943
+ "size-5 rounded transition-[color,box-shadow] outline-none",
944
+ "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] text-muted-foreground hover:text-hover-foreground"
945
+ ]),
946
+ icon: cva([
947
+ "[grid-area:icon]",
948
+ "flex items-center justify-center",
949
+ "h-5 w-5 leading-none"
950
+ ], {
951
+ variants: { variant: {
952
+ default: "",
953
+ success: "text-success-muted-accent",
954
+ warning: "text-warning-muted-accent",
955
+ info: "text-info-muted-accent",
956
+ error: "text-destructive-muted-accent"
957
+ } },
958
+ defaultVariants: { variant: "default" }
959
+ }),
960
+ content: cva(["contents"]),
961
+ "bottom-left": cva(["fixed bottom-4 left-4 flex flex-col-reverse"]),
962
+ "bottom-right": cva(["fixed bottom-4 right-4 flex flex-col-reverse"]),
963
+ "top-left": cva(["fixed top-4 left-4 flex flex-col"]),
964
+ "top-right": cva(["fixed top-4 right-4 flex flex-col"]),
965
+ top: cva(["fixed top-4 left-1/2 right-auto -translate-x-1/2 flex flex-col items-center w-auto align-middle"]),
966
+ bottom: cva(["fixed bottom-4 left-1/2 right-auto -translate-x-1/2 flex flex-col-reverse items-center w-auto align-middle"]),
967
+ action: cva(["[grid-area:action] flex items-start pl-4"])
1232
968
  };
1233
969
 
1234
- // src/components/Tooltip.styles.ts
1235
- import { cva as cva43 } from "@marigold/system";
1236
- var Tooltip = {
1237
- container: cva43(
1238
- [
1239
- "relative z-50 max-w-70 rounded-md border px-3 py-1.5 text-sm",
1240
- "placement-top:mb-2",
1241
- "placement-bottom:mt-2",
1242
- "placement-right:ml-2",
1243
- "placement-left:mr-2"
1244
- ],
1245
- {
1246
- variants: {
1247
- variant: {
1248
- default: "text-brand-foreground bg-brand border-brand",
1249
- white: "text-secondary-foreground border-border bg-white"
1250
- }
1251
- },
1252
- defaultVariants: {
1253
- variant: "default"
1254
- }
1255
- }
1256
- ),
1257
- arrow: cva43(
1258
- [
1259
- // right
1260
- "data-[placement=right]:[&_svg]:rotate-90",
1261
- // left
1262
- "data-[placement=left]:[&_svg]:-rotate-90",
1263
- // bottom
1264
- "data-[placement=bottom]:[&_svg]:rotate-180"
1265
- ],
1266
- {
1267
- variants: {
1268
- variant: {
1269
- default: "fill-brand stroke-brand",
1270
- white: "fill-white stroke-border "
1271
- }
1272
- },
1273
- defaultVariants: {
1274
- variant: "default"
1275
- }
1276
- }
1277
- )
970
+ //#endregion
971
+ //#region src/components/Tooltip.styles.ts
972
+ const Tooltip = {
973
+ container: cva([
974
+ "relative z-50 max-w-70 rounded-md border px-3 py-1.5 text-sm",
975
+ "placement-top:mb-2",
976
+ "placement-bottom:mt-2",
977
+ "placement-right:ml-2",
978
+ "placement-left:mr-2"
979
+ ], {
980
+ variants: { variant: {
981
+ default: "text-brand-foreground bg-brand border-brand",
982
+ white: "text-secondary-foreground border-border bg-white"
983
+ } },
984
+ defaultVariants: { variant: "default" }
985
+ }),
986
+ arrow: cva([
987
+ "data-[placement=right]:[&_svg]:rotate-90",
988
+ "data-[placement=left]:[&_svg]:-rotate-90",
989
+ "data-[placement=bottom]:[&_svg]:rotate-180"
990
+ ], {
991
+ variants: { variant: {
992
+ default: "fill-brand stroke-brand",
993
+ white: "fill-white stroke-border "
994
+ } },
995
+ defaultVariants: { variant: "default" }
996
+ })
1278
997
  };
1279
998
 
1280
- // src/components/Underlay.styles.ts
1281
- import { cva as cva44 } from "@marigold/system";
1282
- var Underlay = cva44("bg-black/80 px-4");
999
+ //#endregion
1000
+ //#region src/components/Underlay.styles.ts
1001
+ const Underlay = cva("bg-black/80 px-4");
1283
1002
 
1284
- // src/components/XLoader.styles.ts
1285
- import { cva as cva45 } from "@marigold/system";
1286
- var XLoader = {
1287
- container: cva45("grid place-items-center text-brand", {
1288
- variants: {
1289
- variant: {
1290
- default: "",
1291
- inverted: "text-secondary"
1292
- },
1293
- size: {
1294
- default: "size-20",
1295
- large: "size-36",
1296
- fit: "size-full"
1297
- }
1298
- },
1299
- defaultVariants: {
1300
- variant: "default",
1301
- size: "default"
1302
- }
1303
- }),
1304
- loader: cva45("size-full", {
1305
- variants: {
1306
- variant: {
1307
- default: "",
1308
- inverted: ""
1309
- },
1310
- size: {
1311
- default: "",
1312
- large: "",
1313
- fit: ""
1314
- }
1315
- },
1316
- defaultVariants: {
1317
- variant: "default",
1318
- size: "default"
1319
- }
1320
- }),
1321
- label: cva45("text-current text-sm")
1003
+ //#endregion
1004
+ //#region src/components/XLoader.styles.ts
1005
+ const XLoader = {
1006
+ container: cva("grid place-items-center text-brand", {
1007
+ variants: {
1008
+ variant: {
1009
+ default: "",
1010
+ inverted: "text-secondary"
1011
+ },
1012
+ size: {
1013
+ default: "size-20",
1014
+ large: "size-36",
1015
+ fit: "size-full"
1016
+ }
1017
+ },
1018
+ defaultVariants: {
1019
+ variant: "default",
1020
+ size: "default"
1021
+ }
1022
+ }),
1023
+ loader: cva("size-full", {
1024
+ variants: {
1025
+ variant: {
1026
+ default: "",
1027
+ inverted: ""
1028
+ },
1029
+ size: {
1030
+ default: "",
1031
+ large: "",
1032
+ fit: ""
1033
+ }
1034
+ },
1035
+ defaultVariants: {
1036
+ variant: "default",
1037
+ size: "default"
1038
+ }
1039
+ }),
1040
+ label: cva("text-current text-sm")
1322
1041
  };
1323
1042
 
1324
- // src/components/Breadcrumbs.styles.ts
1325
- import { cva as cva46 } from "@marigold/system";
1326
- var Breadcrumbs = {
1327
- container: cva46(["flex flex-wrap items-center"], {
1328
- variants: {
1329
- variant: {
1330
- default: "text-foreground"
1331
- },
1332
- size: {
1333
- small: "text-xs gap-1.5",
1334
- default: "text-sm gap-1.5",
1335
- large: "text-base gap-1.5"
1336
- }
1337
- },
1338
- defaultVariants: {
1339
- variant: "default",
1340
- size: "default"
1341
- }
1342
- }),
1343
- item: cva46("inline-flex items-center gap-1.5 whitespace-nowrap "),
1344
- link: cva46("hover:underline cursor-pointer"),
1345
- current: cva46("font-medium")
1043
+ //#endregion
1044
+ //#region src/components/Breadcrumbs.styles.ts
1045
+ const Breadcrumbs = {
1046
+ container: cva(["flex flex-wrap items-center"], {
1047
+ variants: {
1048
+ variant: { default: "text-foreground" },
1049
+ size: {
1050
+ small: "text-xs gap-1.5",
1051
+ default: "text-sm gap-1.5",
1052
+ large: "text-base gap-1.5"
1053
+ }
1054
+ },
1055
+ defaultVariants: {
1056
+ variant: "default",
1057
+ size: "default"
1058
+ }
1059
+ }),
1060
+ item: cva("inline-flex items-center gap-1.5 whitespace-nowrap "),
1061
+ link: cva("hover:underline cursor-pointer"),
1062
+ current: cva("font-medium")
1346
1063
  };
1347
1064
 
1348
- // src/theme.ts
1349
- var theme = {
1350
- name: "rui",
1351
- components: components_exports
1352
- };
1065
+ //#endregion
1066
+ //#region src/components/index.ts
1067
+ var components_exports = /* @__PURE__ */ __export({
1068
+ Accordion: () => Accordion,
1069
+ Badge: () => Badge,
1070
+ Breadcrumbs: () => Breadcrumbs,
1071
+ Button: () => Button,
1072
+ Calendar: () => Calendar,
1073
+ Card: () => Card,
1074
+ Checkbox: () => Checkbox,
1075
+ CloseButton: () => CloseButton,
1076
+ Collapsible: () => Collapsible,
1077
+ ComboBox: () => ComboBox,
1078
+ ContextualHelp: () => ContextualHelp,
1079
+ DateField: () => DateField,
1080
+ DatePicker: () => DatePicker,
1081
+ Dialog: () => Dialog,
1082
+ Divider: () => Divider,
1083
+ Drawer: () => Drawer,
1084
+ Field: () => Field,
1085
+ Headline: () => Headline,
1086
+ HelpText: () => HelpText,
1087
+ IconButton: () => IconButton,
1088
+ Input: () => Input,
1089
+ Label: () => Label,
1090
+ Link: () => Link,
1091
+ List: () => List,
1092
+ ListBox: () => ListBox,
1093
+ Menu: () => Menu,
1094
+ Modal: () => Modal,
1095
+ MultiSelect: () => MultiSelect,
1096
+ NumberField: () => NumberField,
1097
+ Pagination: () => Pagination,
1098
+ Popover: () => Popover,
1099
+ ProgressCycle: () => ProgressCycle,
1100
+ Radio: () => Radio,
1101
+ SectionMessage: () => SectionMessage,
1102
+ Select: () => Select,
1103
+ Slider: () => Slider,
1104
+ Switch: () => Switch,
1105
+ Table: () => Table,
1106
+ Tabs: () => Tabs,
1107
+ Tag: () => Tag,
1108
+ Text: () => Text,
1109
+ TextArea: () => TextArea,
1110
+ Toast: () => Toast,
1111
+ Tooltip: () => Tooltip,
1112
+ Underlay: () => Underlay,
1113
+ XLoader: () => XLoader
1114
+ });
1353
1115
 
1354
- // src/index.ts
1355
- var index_default = theme;
1356
- export {
1357
- index_default as default,
1358
- theme
1116
+ //#endregion
1117
+ //#region src/theme.ts
1118
+ const theme = {
1119
+ name: "rui",
1120
+ components: components_exports
1359
1121
  };
1122
+
1123
+ //#endregion
1124
+ //#region src/index.ts
1125
+ var src_default = theme;
1126
+
1127
+ //#endregion
1128
+ export { src_default as default, theme };
1360
1129
  //# sourceMappingURL=index.mjs.map