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