@marigold/theme-rui 2.3.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +4 -2
- package/dist/index.d.mts.map +1 -0
- package/dist/index.d.ts +4 -2
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1056 -1286
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1040 -1271
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +123 -27
- package/dist/theme.css +23 -9
- package/dist/utils.css +30 -0
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -1,1381 +1,1151 @@
|
|
|
1
|
-
|
|
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 = (
|
|
7
|
-
|
|
8
|
-
|
|
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
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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
|
|
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
|
-
|
|
21
|
-
|
|
22
|
-
|
|
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
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
[
|
|
110
|
-
"flex w-full items-center justify-between gap-4 rounded-md py-2 cursor-pointer text-foreground",
|
|
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
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
error: "bg-destructive-muted text-destructive-muted-foreground",
|
|
149
|
-
admin: "text-access-admin-foreground border border-access-admin-foreground bg-background",
|
|
150
|
-
master: "text-access-master-foreground border border-access-master-foreground bg-background"
|
|
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
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
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
|
+
});
|
|
219
166
|
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
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
|
+
}
|
|
238
185
|
});
|
|
239
186
|
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
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)()
|
|
258
205
|
};
|
|
259
206
|
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
"h-input",
|
|
297
|
-
"disabled:cursor-not-allowed disabled:text-disabled-foreground disabled:bg-disabled",
|
|
298
|
-
"cursor-pointer"
|
|
299
|
-
])
|
|
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
|
+
])
|
|
300
243
|
};
|
|
301
244
|
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
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"
|
|
312
255
|
]);
|
|
313
256
|
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
"text-muted-foreground/80 right-2"
|
|
318
|
-
);
|
|
257
|
+
//#endregion
|
|
258
|
+
//#region src/components/ComboBox.styles.ts
|
|
259
|
+
const ComboBox = (0, __marigold_system.cva)("text-muted-foreground/80 right-2");
|
|
319
260
|
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
size: "default"
|
|
345
|
-
}
|
|
346
|
-
}
|
|
347
|
-
),
|
|
348
|
-
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)()
|
|
349
285
|
};
|
|
350
286
|
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
dialog: (0, import_system10.cva)("text-sm leading-normal"),
|
|
382
|
-
title: (0, import_system10.cva)("text-lg font-semibold mb-1"),
|
|
383
|
-
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")
|
|
384
317
|
};
|
|
385
318
|
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
]),
|
|
409
|
-
icon: (0, import_system11.cva)([
|
|
410
|
-
"pointer-events-none left-1",
|
|
411
|
-
"text-muted-foreground disabled:text-disabled-foreground"
|
|
412
|
-
]),
|
|
413
|
-
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"])
|
|
414
341
|
};
|
|
415
342
|
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
)
|
|
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")
|
|
442
368
|
};
|
|
443
369
|
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
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"
|
|
451
377
|
]);
|
|
452
378
|
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
medium: ""
|
|
470
|
-
}
|
|
471
|
-
}
|
|
472
|
-
}
|
|
473
|
-
),
|
|
474
|
-
header: (0, import_system14.cva)("flex flex-col gap-1 text-center sm:text-left"),
|
|
475
|
-
title: (0, import_system14.cva)("text-lg font-semibold mb-1"),
|
|
476
|
-
content: (0, import_system14.cva)("text-muted-foreground text-sm"),
|
|
477
|
-
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")
|
|
478
395
|
};
|
|
479
396
|
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
},
|
|
489
|
-
defaultVariants: {
|
|
490
|
-
variant: "default"
|
|
491
|
-
}
|
|
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" }
|
|
492
405
|
});
|
|
493
406
|
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
}
|
|
519
|
-
),
|
|
520
|
-
closeButton: (0, import_system16.cva)(["absolute top-3.5 right-3 z-50", "size-7"]),
|
|
521
|
-
header: (0, import_system16.cva)("border-border border-b px-6 py-4"),
|
|
522
|
-
title: (0, import_system16.cva)("font-semibold text-base"),
|
|
523
|
-
content: (0, import_system16.cva)("px-6 py-4 overflow-y-auto outline-none"),
|
|
524
|
-
actions: (0, import_system16.cva)(
|
|
525
|
-
"flex flex-row gap-3 justify-end border-border border-t px-6 py-4"
|
|
526
|
-
)
|
|
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")
|
|
527
431
|
};
|
|
528
432
|
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
variants: {
|
|
533
|
-
variant: {
|
|
534
|
-
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"
|
|
535
|
-
}
|
|
536
|
-
}
|
|
537
|
-
});
|
|
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" } } });
|
|
538
436
|
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
437
|
+
//#endregion
|
|
438
|
+
//#region src/components/Field.styles.ts
|
|
439
|
+
const Field = (0, __marigold_system.cva)("space-y-2");
|
|
542
440
|
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
"level-6": "text-base font-normal"
|
|
554
|
-
}
|
|
555
|
-
}
|
|
556
|
-
});
|
|
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
|
+
} } });
|
|
557
451
|
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
*/
|
|
568
|
-
'has-[+_[aria-hidden="true"]]:mb-0'
|
|
569
|
-
]),
|
|
570
|
-
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)("")
|
|
571
461
|
};
|
|
572
462
|
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
"group-required/field:block text-destructive align-super size-2.5"
|
|
583
|
-
)
|
|
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")
|
|
584
472
|
};
|
|
585
473
|
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
}
|
|
605
|
-
}
|
|
606
|
-
);
|
|
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
|
+
});
|
|
607
492
|
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
size: {
|
|
627
|
-
default: "",
|
|
628
|
-
small: "*:text-sm"
|
|
629
|
-
}
|
|
630
|
-
},
|
|
631
|
-
defaultVariants: {
|
|
632
|
-
size: "default"
|
|
633
|
-
}
|
|
634
|
-
}
|
|
635
|
-
),
|
|
636
|
-
item: (0, import_system23.cva)("")
|
|
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)("")
|
|
637
511
|
};
|
|
638
512
|
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
section: (0, import_system24.cva)(""),
|
|
656
|
-
header: (0, import_system24.cva)(
|
|
657
|
-
"[&_header]:px-2 [&_header]:py-1.5 [&_header]:text-xs [&_header]:font-medium [&_header]:text-muted-foreground"
|
|
658
|
-
)
|
|
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")
|
|
659
529
|
};
|
|
660
530
|
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
},
|
|
701
|
-
size: {
|
|
702
|
-
default: "h-button px-4 py-2 [&_svg]:size-4",
|
|
703
|
-
small: "h-button-small px-3 text-xs [&_svg]:size-3.5",
|
|
704
|
-
large: "h-button-large px-8 [&_svg]:size-5",
|
|
705
|
-
icon: "size-button [&_svg]:size-4"
|
|
706
|
-
}
|
|
707
|
-
},
|
|
708
|
-
defaultVariants: {
|
|
709
|
-
variant: "default",
|
|
710
|
-
size: "default"
|
|
711
|
-
}
|
|
712
|
-
}
|
|
713
|
-
)
|
|
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
|
+
})
|
|
714
570
|
};
|
|
715
571
|
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
small: "[--dialog-width:640px]",
|
|
731
|
-
// sm breakpoint
|
|
732
|
-
medium: "[--dialog-width:768px]"
|
|
733
|
-
// md breakpoint
|
|
734
|
-
}
|
|
735
|
-
},
|
|
736
|
-
defaultVariants: {
|
|
737
|
-
size: "small"
|
|
738
|
-
}
|
|
739
|
-
}
|
|
740
|
-
);
|
|
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
|
+
});
|
|
741
586
|
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
]),
|
|
786
|
-
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")
|
|
787
630
|
};
|
|
788
631
|
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
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
|
+
])
|
|
811
654
|
};
|
|
812
655
|
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
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"
|
|
823
666
|
]);
|
|
824
667
|
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
"group-selected/radio:border-brand group-selected/radio:bg-brand group-selected/radio:text-brand-foreground"
|
|
839
|
-
]),
|
|
840
|
-
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)()
|
|
841
681
|
};
|
|
842
682
|
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
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"
|
|
852
692
|
];
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
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")
|
|
867
707
|
};
|
|
868
708
|
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
"stroke-foreground"
|
|
873
|
-
]);
|
|
709
|
+
//#endregion
|
|
710
|
+
//#region src/components/ProgressCycle.styles.ts
|
|
711
|
+
const ProgressCycle = (0, __marigold_system.cva)(["stroke-foreground"]);
|
|
874
712
|
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
icon: (0, import_system33.cva)("h-6 w-6 align-baseline leading-none -mt-0.5", {
|
|
912
|
-
variants: {
|
|
913
|
-
variant: {
|
|
914
|
-
success: "text-success-muted-accent",
|
|
915
|
-
warning: "text-warning-muted-accent",
|
|
916
|
-
info: "text-info-muted-accent",
|
|
917
|
-
error: "text-destructive-muted-accent"
|
|
918
|
-
}
|
|
919
|
-
},
|
|
920
|
-
defaultVariants: {
|
|
921
|
-
variant: "info"
|
|
922
|
-
}
|
|
923
|
-
}),
|
|
924
|
-
close: (0, import_system33.cva)([
|
|
925
|
-
"size-8 text-foreground",
|
|
926
|
-
"[&_svg]:size-6",
|
|
927
|
-
"-my-1.5 -me-2"
|
|
928
|
-
// align button with title
|
|
929
|
-
])
|
|
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
|
+
])
|
|
930
749
|
};
|
|
931
750
|
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
* helptext. Spacing is applied because the select is followed
|
|
947
|
-
* by a hidden select that is rendered by react-aria.
|
|
948
|
-
*/
|
|
949
|
-
'has-[+_[aria-hidden="true"]]:mb-0'
|
|
950
|
-
])
|
|
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
|
+
])
|
|
951
765
|
};
|
|
952
766
|
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
"focus-visible:util-focus-borderless-ring outline-none",
|
|
966
|
-
"disabled:cursor-not-allowed"
|
|
967
|
-
]),
|
|
968
|
-
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")
|
|
969
779
|
};
|
|
970
780
|
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
"ring-0 transition-transform duration-150 ease-out-quint",
|
|
989
|
-
"group-selected/switch:translate-x-4 translate-x-0"
|
|
990
|
-
])
|
|
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
|
+
])
|
|
991
798
|
};
|
|
992
799
|
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
[
|
|
1052
|
-
"border-b border-border transition-colors",
|
|
1053
|
-
"focus-visible:outline-2 outline-offset-2 outline-ring/70",
|
|
1054
|
-
"data-disabled:cursor-not-allowed"
|
|
1055
|
-
],
|
|
1056
|
-
{
|
|
1057
|
-
variants: {
|
|
1058
|
-
variant: {
|
|
1059
|
-
default: "aria-[selected=true]:bg-muted",
|
|
1060
|
-
grid: "aria-[selected=true]:bg-muted [&>:not(:last-child)]:border-r [&>:not(:last-child)]:border-border",
|
|
1061
|
-
admin: [
|
|
1062
|
-
"bg-access-admin",
|
|
1063
|
-
"[&_td:first-child]:relative [&_td:first-child]:pl-4",
|
|
1064
|
-
'[&_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',
|
|
1065
|
-
"[&_td:first-child:before]:bg-access-admin-foreground"
|
|
1066
|
-
],
|
|
1067
|
-
master: [
|
|
1068
|
-
"bg-access-master",
|
|
1069
|
-
"[&_td:first-child]:relative [&_td:first-child]:pl-4",
|
|
1070
|
-
'[&_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',
|
|
1071
|
-
"[&_td:first-child:before]:bg-access-master-foreground"
|
|
1072
|
-
]
|
|
1073
|
-
}
|
|
1074
|
-
},
|
|
1075
|
-
defaultVariants: {
|
|
1076
|
-
variant: "default"
|
|
1077
|
-
}
|
|
1078
|
-
}
|
|
1079
|
-
),
|
|
1080
|
-
cell: (0, import_system37.cva)("p-3 focus-visible:outline-2 outline-offset-2 outline-ring/70", {
|
|
1081
|
-
variants: {
|
|
1082
|
-
variant: {
|
|
1083
|
-
default: "[&:has([type=checkbox])]:pr-0",
|
|
1084
|
-
grid: ""
|
|
1085
|
-
}
|
|
1086
|
-
},
|
|
1087
|
-
defaultVariants: {
|
|
1088
|
-
variant: "default"
|
|
1089
|
-
}
|
|
1090
|
-
})
|
|
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
|
+
})
|
|
1091
858
|
};
|
|
1092
859
|
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
"data-[selected=true]:after:bg-foreground after:absolute after:inset-x-0 after:bottom-0 after:-mb-1 after:h-0.5"
|
|
1109
|
-
]),
|
|
1110
|
-
tabpanel: (0, import_system38.cva)([
|
|
1111
|
-
"py-4 rounded-sm",
|
|
1112
|
-
"focus-visible:util-focus-ring outline-none"
|
|
1113
|
-
])
|
|
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"])
|
|
1114
875
|
};
|
|
1115
876
|
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
"flex flex-wrap gap-1",
|
|
1140
|
-
// mb-0 prevents whitespace when the hidden field is rendered
|
|
1141
|
-
"mb-0"
|
|
1142
|
-
]),
|
|
1143
|
-
removeAll: (0, import_system39.cva)([
|
|
1144
|
-
"inline whitespace-nowrap font-medium transition-[color,box-shadow,transform]",
|
|
1145
|
-
"duration-150 active:scale-[0.98] pressed:scale-[0.98]",
|
|
1146
|
-
"focus-visible:util-focus-ring outline-none",
|
|
1147
|
-
"cursor-pointer",
|
|
1148
|
-
"text-link text-xs util-touch-hitbox"
|
|
1149
|
-
])
|
|
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
|
+
])
|
|
1150
900
|
};
|
|
1151
901
|
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
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"
|
|
1161
911
|
]);
|
|
1162
912
|
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
}
|
|
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
|
+
}
|
|
1193
942
|
});
|
|
1194
943
|
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
}
|
|
1241
|
-
),
|
|
1242
|
-
content: (0, import_system42.cva)(["contents"]),
|
|
1243
|
-
"bottom-left": (0, import_system42.cva)(["fixed bottom-4 left-4 flex flex-col-reverse"]),
|
|
1244
|
-
"bottom-right": (0, import_system42.cva)(["fixed bottom-4 right-4 flex flex-col-reverse"]),
|
|
1245
|
-
"top-left": (0, import_system42.cva)(["fixed top-4 left-4 flex flex-col"]),
|
|
1246
|
-
"top-right": (0, import_system42.cva)(["fixed top-4 right-4 flex flex-col"]),
|
|
1247
|
-
top: (0, import_system42.cva)([
|
|
1248
|
-
"fixed top-4 left-1/2 right-auto -translate-x-1/2 flex flex-col items-center w-auto align-middle"
|
|
1249
|
-
]),
|
|
1250
|
-
bottom: (0, import_system42.cva)([
|
|
1251
|
-
"fixed bottom-4 left-1/2 right-auto -translate-x-1/2 flex flex-col-reverse items-center w-auto align-middle"
|
|
1252
|
-
])
|
|
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"])
|
|
1253
989
|
};
|
|
1254
990
|
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
// left
|
|
1283
|
-
"data-[placement=left]:[&_svg]:-rotate-90",
|
|
1284
|
-
// bottom
|
|
1285
|
-
"data-[placement=bottom]:[&_svg]:rotate-180"
|
|
1286
|
-
],
|
|
1287
|
-
{
|
|
1288
|
-
variants: {
|
|
1289
|
-
variant: {
|
|
1290
|
-
default: "fill-brand stroke-brand",
|
|
1291
|
-
white: "fill-white stroke-border "
|
|
1292
|
-
}
|
|
1293
|
-
},
|
|
1294
|
-
defaultVariants: {
|
|
1295
|
-
variant: "default"
|
|
1296
|
-
}
|
|
1297
|
-
}
|
|
1298
|
-
)
|
|
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
|
+
})
|
|
1299
1018
|
};
|
|
1300
1019
|
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1020
|
+
//#endregion
|
|
1021
|
+
//#region src/components/Underlay.styles.ts
|
|
1022
|
+
const Underlay = (0, __marigold_system.cva)("bg-black/80 px-4");
|
|
1304
1023
|
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
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")
|
|
1343
1062
|
};
|
|
1344
1063
|
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
link: (0, import_system46.cva)("hover:underline cursor-pointer"),
|
|
1366
|
-
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")
|
|
1367
1084
|
};
|
|
1368
1085
|
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
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
|
|
1373
1142
|
};
|
|
1374
1143
|
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1144
|
+
//#endregion
|
|
1145
|
+
//#region src/index.ts
|
|
1146
|
+
var src_default = theme;
|
|
1147
|
+
|
|
1148
|
+
//#endregion
|
|
1149
|
+
exports.default = src_default;
|
|
1150
|
+
exports.theme = theme;
|
|
1381
1151
|
//# sourceMappingURL=index.js.map
|