@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.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 +1057 -1224
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1041 -1209
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +211 -38
- package/dist/theme.css +23 -9
- package/dist/utils.css +30 -0
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -1,1318 +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",
|
|
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",
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
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
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
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
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
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
|
-
"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
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
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
|
-
|
|
311
|
-
|
|
312
|
-
|
|
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
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
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
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
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
|
-
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
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
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
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
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
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
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
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
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
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
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
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
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
|
-
|
|
518
|
-
|
|
519
|
-
|
|
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
|
-
|
|
528
|
-
|
|
529
|
-
|
|
437
|
+
//#endregion
|
|
438
|
+
//#region src/components/Field.styles.ts
|
|
439
|
+
const Field = (0, __marigold_system.cva)("space-y-2");
|
|
530
440
|
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
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
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
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
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
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
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
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
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
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
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
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
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
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
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
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
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
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
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
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
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
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
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
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
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
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
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
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
|
-
|
|
813
|
-
|
|
814
|
-
|
|
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
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
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
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
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
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
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
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
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
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
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
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
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
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
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
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
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
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
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
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
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
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
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
|
-
// 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
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1020
|
+
//#endregion
|
|
1021
|
+
//#region src/components/Underlay.styles.ts
|
|
1022
|
+
const Underlay = (0, __marigold_system.cva)("bg-black/80 px-4");
|
|
1241
1023
|
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
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
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
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
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
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
|