@dimasbaguspm/versaur 0.0.45 → 0.0.47
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/js/forms/index.js +18 -20
- package/dist/js/image-rectangle-B4nXH4Q5.js +2581 -0
- package/dist/js/index.js +72 -77
- package/dist/js/layouts/index.js +1 -1
- package/dist/js/navigation/index.js +1 -1
- package/dist/js/overlays/index.js +5 -6
- package/dist/js/primitive/index.js +28 -30
- package/dist/js/{tabs-D5aWU0pC.js → tabs-BAzThVka.js} +1 -1
- package/dist/js/{bottom-sheet-input-CxLwoZLr.js → time-picker-input-JBEgDV2V.js} +875 -800
- package/dist/js/tooltip-D6fUigp2.js +691 -0
- package/dist/js/{top-bar-vvLnMBwo.js → top-bar-Dx0JVXms.js} +1 -1
- package/dist/types/forms/index.d.ts +7 -9
- package/dist/types/forms/pin-field/index.d.ts +2 -0
- package/dist/types/forms/pin-field/pin-field.d.ts +9 -0
- package/dist/types/forms/pin-field/types.d.ts +86 -0
- package/dist/types/primitive/index.d.ts +0 -2
- package/dist/utils/enforce-subpath-import.js +1 -5
- package/package.json +1 -1
- package/dist/js/bottom-sheet-QdQ5L8Wo.js +0 -615
- package/dist/js/image-rectangle-BijhERaV.js +0 -2884
- package/dist/js/tooltip-D80OXyWL.js +0 -81
- package/dist/types/forms/bottom-sheet-input/bottom-sheet-input.d.ts +0 -7
- package/dist/types/forms/bottom-sheet-input/index.d.ts +0 -2
- package/dist/types/forms/bottom-sheet-input/types.d.ts +0 -17
- package/dist/types/forms/drawer-input/drawer-input.d.ts +0 -6
- package/dist/types/forms/drawer-input/index.d.ts +0 -2
- package/dist/types/forms/drawer-input/types.d.ts +0 -18
- package/dist/types/forms/modal-input/index.d.ts +0 -2
- package/dist/types/forms/modal-input/modal-input.d.ts +0 -6
- package/dist/types/forms/modal-input/types.d.ts +0 -18
- package/dist/types/primitive/button-float/button-float.d.ts +0 -8
- package/dist/types/primitive/button-float/index.d.ts +0 -2
- package/dist/types/primitive/button-float/types.d.ts +0 -31
- package/dist/types/primitive/button-float/use-floating-position.d.ts +0 -12
- package/dist/types/primitive/calculator/calculator.atoms.d.ts +0 -2
- package/dist/types/primitive/calculator/calculator.d.ts +0 -2
- package/dist/types/primitive/calculator/index.d.ts +0 -2
- package/dist/types/primitive/calculator/types.d.ts +0 -29
- package/dist/types/primitive/calculator/use-calculator.d.ts +0 -11
|
@@ -0,0 +1,2581 @@
|
|
|
1
|
+
import { c as w, j as r, a as u } from "./index-DOdDlCoL.js";
|
|
2
|
+
import * as a from "react";
|
|
3
|
+
import H, { createContext as P, useContext as F, forwardRef as f, useState as L, useEffect as A, useCallback as J, useRef as _, useId as le, cloneElement as ce } from "react";
|
|
4
|
+
import { ChevronDown as de, ChevronRight as ge, CheckIcon as he, EllipsisVerticalIcon as ue, XIcon as fe, ImageOff as be } from "lucide-react";
|
|
5
|
+
import me from "react-dom";
|
|
6
|
+
import { S as we } from "./skeleton-BNZyaRjo.js";
|
|
7
|
+
const K = P(
|
|
8
|
+
null
|
|
9
|
+
), Q = () => {
|
|
10
|
+
const e = F(K);
|
|
11
|
+
if (!e)
|
|
12
|
+
throw new Error(
|
|
13
|
+
"Accordion compound components must be used within Accordion"
|
|
14
|
+
);
|
|
15
|
+
return e;
|
|
16
|
+
}, ve = w(
|
|
17
|
+
"border-b border-border bg-background overflow-hidden",
|
|
18
|
+
{
|
|
19
|
+
variants: {
|
|
20
|
+
disabled: {
|
|
21
|
+
true: "opacity-50 cursor-not-allowed",
|
|
22
|
+
false: ""
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
defaultVariants: {
|
|
26
|
+
disabled: !1
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
), xe = w(
|
|
30
|
+
"flex items-center justify-between w-full p-4 text-left transition-colors duration-200 focus:outline-none focus-visible:ring-2 focus-visible:ring-primary-light focus-visible:ring-inset",
|
|
31
|
+
{
|
|
32
|
+
variants: {
|
|
33
|
+
disabled: {
|
|
34
|
+
true: "cursor-not-allowed",
|
|
35
|
+
false: "cursor-pointer hover:bg-neutral-soft"
|
|
36
|
+
},
|
|
37
|
+
isOpen: {
|
|
38
|
+
true: "",
|
|
39
|
+
false: "bg-background"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
defaultVariants: {
|
|
43
|
+
disabled: !1,
|
|
44
|
+
isOpen: !1
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
), pe = w(
|
|
48
|
+
"overflow-hidden transition-all duration-300",
|
|
49
|
+
{
|
|
50
|
+
variants: {
|
|
51
|
+
isOpen: {
|
|
52
|
+
true: "max-h-screen opacity-100",
|
|
53
|
+
false: "max-h-0 opacity-0"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
defaultVariants: {
|
|
57
|
+
isOpen: !1
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
), ye = w("p-4 pt-0"), je = w("transition-transform duration-200", {
|
|
61
|
+
variants: {
|
|
62
|
+
isOpen: {
|
|
63
|
+
true: "rotate-180",
|
|
64
|
+
false: "rotate-0"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
defaultVariants: {
|
|
68
|
+
isOpen: !1
|
|
69
|
+
}
|
|
70
|
+
}), ke = w("", {
|
|
71
|
+
variants: {
|
|
72
|
+
color: {
|
|
73
|
+
primary: "text-primary",
|
|
74
|
+
secondary: "text-secondary",
|
|
75
|
+
tertiary: "text-tertiary",
|
|
76
|
+
ghost: "text-ghost",
|
|
77
|
+
neutral: "text-ghost",
|
|
78
|
+
success: "text-success",
|
|
79
|
+
info: "text-info",
|
|
80
|
+
warning: "text-warning",
|
|
81
|
+
danger: "text-danger",
|
|
82
|
+
inherit: "",
|
|
83
|
+
gray: "text-gray-500",
|
|
84
|
+
black: "text-black",
|
|
85
|
+
white: "text-white"
|
|
86
|
+
},
|
|
87
|
+
hasUnderline: {
|
|
88
|
+
true: "underline",
|
|
89
|
+
false: ""
|
|
90
|
+
},
|
|
91
|
+
isCapitalize: {
|
|
92
|
+
true: "capitalize",
|
|
93
|
+
false: ""
|
|
94
|
+
},
|
|
95
|
+
hasMargin: {
|
|
96
|
+
true: "mb-4",
|
|
97
|
+
false: ""
|
|
98
|
+
},
|
|
99
|
+
align: {
|
|
100
|
+
left: "text-left",
|
|
101
|
+
center: "text-center",
|
|
102
|
+
right: "text-right",
|
|
103
|
+
justify: "text-justify"
|
|
104
|
+
},
|
|
105
|
+
italic: {
|
|
106
|
+
true: "italic",
|
|
107
|
+
false: ""
|
|
108
|
+
},
|
|
109
|
+
clamp: {
|
|
110
|
+
1: "line-clamp-1",
|
|
111
|
+
2: "line-clamp-2",
|
|
112
|
+
3: "line-clamp-3",
|
|
113
|
+
4: "line-clamp-4",
|
|
114
|
+
5: "line-clamp-5",
|
|
115
|
+
none: ""
|
|
116
|
+
},
|
|
117
|
+
ellipsis: {
|
|
118
|
+
true: "truncate",
|
|
119
|
+
false: ""
|
|
120
|
+
},
|
|
121
|
+
level: {
|
|
122
|
+
1: "font-bold text-2xl leading-loose",
|
|
123
|
+
2: "font-semibold text-xl leading-relaxed",
|
|
124
|
+
3: "font-semibold text-lg leading-relaxed",
|
|
125
|
+
4: "font-bold text-sm leading-normal",
|
|
126
|
+
5: "font-semibold text-sm leading-normal",
|
|
127
|
+
6: "font-medium text-xs leading-normal"
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
defaultVariants: {
|
|
131
|
+
color: "ghost",
|
|
132
|
+
hasUnderline: !1,
|
|
133
|
+
isCapitalize: !1,
|
|
134
|
+
hasMargin: !1,
|
|
135
|
+
align: "left",
|
|
136
|
+
italic: !1,
|
|
137
|
+
clamp: "none",
|
|
138
|
+
ellipsis: !1,
|
|
139
|
+
level: 1
|
|
140
|
+
}
|
|
141
|
+
}), Z = f(
|
|
142
|
+
({
|
|
143
|
+
level: e = 3,
|
|
144
|
+
color: t = "black",
|
|
145
|
+
hasUnderline: i = !1,
|
|
146
|
+
isCapitalize: n = !1,
|
|
147
|
+
hasMargin: s = !1,
|
|
148
|
+
align: o = "left",
|
|
149
|
+
italic: l = !1,
|
|
150
|
+
clamp: d = "none",
|
|
151
|
+
ellipsis: g = !1,
|
|
152
|
+
className: h,
|
|
153
|
+
children: m,
|
|
154
|
+
...c
|
|
155
|
+
}, v) => {
|
|
156
|
+
const y = `h${e}`;
|
|
157
|
+
return /* @__PURE__ */ r.jsx(
|
|
158
|
+
y,
|
|
159
|
+
{
|
|
160
|
+
ref: v,
|
|
161
|
+
className: u(
|
|
162
|
+
ke({
|
|
163
|
+
color: t,
|
|
164
|
+
hasUnderline: i,
|
|
165
|
+
isCapitalize: n,
|
|
166
|
+
hasMargin: s,
|
|
167
|
+
align: o,
|
|
168
|
+
italic: l,
|
|
169
|
+
clamp: d,
|
|
170
|
+
ellipsis: g,
|
|
171
|
+
level: e
|
|
172
|
+
}),
|
|
173
|
+
h
|
|
174
|
+
),
|
|
175
|
+
...c,
|
|
176
|
+
children: m
|
|
177
|
+
}
|
|
178
|
+
);
|
|
179
|
+
}
|
|
180
|
+
);
|
|
181
|
+
Z.displayName = "Heading";
|
|
182
|
+
const Ne = w("inline-flex items-center justify-center", {
|
|
183
|
+
variants: {
|
|
184
|
+
size: {
|
|
185
|
+
xs: "w-3 h-3",
|
|
186
|
+
sm: "w-4 h-4",
|
|
187
|
+
md: "w-5 h-5",
|
|
188
|
+
lg: "w-6 h-6",
|
|
189
|
+
xl: "w-8 h-8",
|
|
190
|
+
inherit: "w-auto h-auto"
|
|
191
|
+
},
|
|
192
|
+
color: {
|
|
193
|
+
primary: "text-primary",
|
|
194
|
+
secondary: "text-secondary",
|
|
195
|
+
tertiary: "text-tertiary",
|
|
196
|
+
ghost: "text-ghost",
|
|
197
|
+
neutral: "text-neutral",
|
|
198
|
+
success: "text-success",
|
|
199
|
+
info: "text-info",
|
|
200
|
+
warning: "text-warning",
|
|
201
|
+
danger: "text-danger",
|
|
202
|
+
gray: "text-gray-500",
|
|
203
|
+
black: "text-black",
|
|
204
|
+
white: "text-white",
|
|
205
|
+
inherit: ""
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
defaultVariants: {
|
|
209
|
+
size: "md",
|
|
210
|
+
color: "primary"
|
|
211
|
+
}
|
|
212
|
+
}), R = H.forwardRef(function({ as: t, color: i = "primary", size: n = "md", className: s, ...o }, l) {
|
|
213
|
+
return /* @__PURE__ */ r.jsx(
|
|
214
|
+
t,
|
|
215
|
+
{
|
|
216
|
+
ref: l,
|
|
217
|
+
className: Ne({ color: i, size: n, className: s }),
|
|
218
|
+
...o
|
|
219
|
+
}
|
|
220
|
+
);
|
|
221
|
+
}), Ee = f(function({ className: t, children: i, ...n }, s) {
|
|
222
|
+
return /* @__PURE__ */ r.jsx(
|
|
223
|
+
Z,
|
|
224
|
+
{
|
|
225
|
+
ref: s,
|
|
226
|
+
level: 4,
|
|
227
|
+
className: u("font-medium", t),
|
|
228
|
+
...n,
|
|
229
|
+
color: "black",
|
|
230
|
+
children: i
|
|
231
|
+
}
|
|
232
|
+
);
|
|
233
|
+
}), Ce = f(function({ className: t, children: i, ...n }, s) {
|
|
234
|
+
const { isOpen: o } = Q();
|
|
235
|
+
return /* @__PURE__ */ r.jsx(
|
|
236
|
+
"div",
|
|
237
|
+
{
|
|
238
|
+
ref: s,
|
|
239
|
+
className: u(pe({ isOpen: o }), t),
|
|
240
|
+
...n,
|
|
241
|
+
children: /* @__PURE__ */ r.jsx("div", { className: ye(), children: i })
|
|
242
|
+
}
|
|
243
|
+
);
|
|
244
|
+
}), ee = f(function({ as: t, ...i }, n) {
|
|
245
|
+
const { isOpen: s } = Q();
|
|
246
|
+
return /* @__PURE__ */ r.jsx(
|
|
247
|
+
R,
|
|
248
|
+
{
|
|
249
|
+
ref: n,
|
|
250
|
+
as: t,
|
|
251
|
+
color: "ghost",
|
|
252
|
+
size: "sm",
|
|
253
|
+
className: je({ isOpen: s }),
|
|
254
|
+
...i
|
|
255
|
+
}
|
|
256
|
+
);
|
|
257
|
+
}), ze = f(
|
|
258
|
+
function({
|
|
259
|
+
title: t,
|
|
260
|
+
subtitle: i,
|
|
261
|
+
isDefaultOpen: n = !1,
|
|
262
|
+
disabled: s = !1,
|
|
263
|
+
hasMargin: o,
|
|
264
|
+
className: l,
|
|
265
|
+
children: d,
|
|
266
|
+
...g
|
|
267
|
+
}, h) {
|
|
268
|
+
const [m, c] = L(n), v = () => {
|
|
269
|
+
s || c((j) => !j);
|
|
270
|
+
}, y = {
|
|
271
|
+
isOpen: m,
|
|
272
|
+
toggle: v,
|
|
273
|
+
disabled: s
|
|
274
|
+
};
|
|
275
|
+
return /* @__PURE__ */ r.jsx(K.Provider, { value: y, children: /* @__PURE__ */ r.jsxs(
|
|
276
|
+
"div",
|
|
277
|
+
{
|
|
278
|
+
ref: h,
|
|
279
|
+
className: u(
|
|
280
|
+
ve({ disabled: s }),
|
|
281
|
+
l,
|
|
282
|
+
o && "mb-4"
|
|
283
|
+
),
|
|
284
|
+
...g,
|
|
285
|
+
children: [
|
|
286
|
+
/* @__PURE__ */ r.jsx(
|
|
287
|
+
"div",
|
|
288
|
+
{
|
|
289
|
+
role: "button",
|
|
290
|
+
className: xe({ disabled: s, isOpen: m }),
|
|
291
|
+
onClick: v,
|
|
292
|
+
"aria-disabled": s,
|
|
293
|
+
"aria-expanded": m,
|
|
294
|
+
children: /* @__PURE__ */ r.jsxs("div", { className: "flex items-center justify-between w-full gap-2", children: [
|
|
295
|
+
/* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-3 flex-grow", children: [
|
|
296
|
+
/* @__PURE__ */ r.jsx("div", { className: "flex-1", children: t }),
|
|
297
|
+
i && /* @__PURE__ */ r.jsx("div", { className: "flex-shrink-0", children: i })
|
|
298
|
+
] }),
|
|
299
|
+
/* @__PURE__ */ r.jsx(ee, { as: de })
|
|
300
|
+
] })
|
|
301
|
+
}
|
|
302
|
+
),
|
|
303
|
+
/* @__PURE__ */ r.jsx(
|
|
304
|
+
"div",
|
|
305
|
+
{
|
|
306
|
+
className: u(
|
|
307
|
+
"overflow-hidden transition-all duration-300",
|
|
308
|
+
m ? "max-h-screen opacity-100" : "max-h-0 opacity-0"
|
|
309
|
+
),
|
|
310
|
+
children: /* @__PURE__ */ r.jsx("div", { className: "p-4 pt-2", children: d })
|
|
311
|
+
}
|
|
312
|
+
)
|
|
313
|
+
]
|
|
314
|
+
}
|
|
315
|
+
) });
|
|
316
|
+
}
|
|
317
|
+
), $t = Object.assign(ze, {
|
|
318
|
+
Title: Ee,
|
|
319
|
+
Content: Ce,
|
|
320
|
+
Icon: ee
|
|
321
|
+
}), Ve = w(
|
|
322
|
+
"group flex items-center justify-between transition-all duration-200 w-full",
|
|
323
|
+
{
|
|
324
|
+
variants: {
|
|
325
|
+
size: {
|
|
326
|
+
sm: "p-3",
|
|
327
|
+
md: "p-4",
|
|
328
|
+
lg: "p-5"
|
|
329
|
+
},
|
|
330
|
+
as: {
|
|
331
|
+
button: "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-light hover:bg-gray-50 cursor-pointer",
|
|
332
|
+
div: ""
|
|
333
|
+
}
|
|
334
|
+
},
|
|
335
|
+
defaultVariants: {
|
|
336
|
+
size: "md",
|
|
337
|
+
as: "button"
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
), Ie = w(
|
|
341
|
+
"bg-gradient-to-br from-gray-100 to-gray-200 rounded-xl flex items-center justify-center group-hover:from-primary-soft group-hover:to-primary-light duration-200",
|
|
342
|
+
{
|
|
343
|
+
variants: {
|
|
344
|
+
size: {
|
|
345
|
+
sm: "w-8 h-8",
|
|
346
|
+
md: "w-10 h-10",
|
|
347
|
+
lg: "w-12 h-12"
|
|
348
|
+
}
|
|
349
|
+
},
|
|
350
|
+
defaultVariants: {
|
|
351
|
+
size: "md"
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
), Le = w(
|
|
355
|
+
"inline-flex items-center justify-center text-ghost-bold transition-colors duration-200",
|
|
356
|
+
{
|
|
357
|
+
variants: {
|
|
358
|
+
size: {
|
|
359
|
+
sm: "w-3 h-3",
|
|
360
|
+
md: "w-4 h-4",
|
|
361
|
+
lg: "w-5 h-5"
|
|
362
|
+
}
|
|
363
|
+
},
|
|
364
|
+
defaultVariants: {
|
|
365
|
+
size: "md"
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
), Ae = w("", {
|
|
369
|
+
variants: {
|
|
370
|
+
color: {
|
|
371
|
+
primary: "text-primary",
|
|
372
|
+
secondary: "text-secondary",
|
|
373
|
+
tertiary: "text-tertiary",
|
|
374
|
+
ghost: "text-ghost",
|
|
375
|
+
neutral: "text-ghost",
|
|
376
|
+
success: "text-success",
|
|
377
|
+
info: "text-info",
|
|
378
|
+
warning: "text-warning",
|
|
379
|
+
danger: "text-danger",
|
|
380
|
+
inherit: "",
|
|
381
|
+
gray: "text-gray-500",
|
|
382
|
+
black: "text-black",
|
|
383
|
+
white: "text-white"
|
|
384
|
+
},
|
|
385
|
+
hasUnderline: {
|
|
386
|
+
true: "underline",
|
|
387
|
+
false: ""
|
|
388
|
+
},
|
|
389
|
+
isCapitalize: {
|
|
390
|
+
true: "capitalize",
|
|
391
|
+
false: ""
|
|
392
|
+
},
|
|
393
|
+
align: {
|
|
394
|
+
left: "text-left",
|
|
395
|
+
center: "text-center",
|
|
396
|
+
right: "text-right",
|
|
397
|
+
justify: "text-justify"
|
|
398
|
+
},
|
|
399
|
+
italic: {
|
|
400
|
+
true: "italic",
|
|
401
|
+
false: ""
|
|
402
|
+
},
|
|
403
|
+
clamp: {
|
|
404
|
+
1: "line-clamp-1",
|
|
405
|
+
2: "line-clamp-2",
|
|
406
|
+
3: "line-clamp-3",
|
|
407
|
+
4: "line-clamp-4",
|
|
408
|
+
5: "line-clamp-5",
|
|
409
|
+
none: ""
|
|
410
|
+
},
|
|
411
|
+
ellipsis: {
|
|
412
|
+
true: "truncate",
|
|
413
|
+
false: ""
|
|
414
|
+
},
|
|
415
|
+
as: {
|
|
416
|
+
h1: "font-bold text-4xl leading-loose",
|
|
417
|
+
h2: "font-semibold text-3xl leading-relaxed",
|
|
418
|
+
h3: "font-medium text-2xl leading-relaxed",
|
|
419
|
+
h4: "font-bold text-xl leading-normal",
|
|
420
|
+
h5: "font-semibold text-lg leading-normal",
|
|
421
|
+
h6: "font-medium text-base leading-normal",
|
|
422
|
+
p: "font-normal text-base leading-normal",
|
|
423
|
+
span: "font-normal text-base leading-normal",
|
|
424
|
+
label: "font-normal text-xs leading-normal"
|
|
425
|
+
}
|
|
426
|
+
},
|
|
427
|
+
defaultVariants: {
|
|
428
|
+
color: "neutral",
|
|
429
|
+
hasUnderline: !1,
|
|
430
|
+
isCapitalize: !1,
|
|
431
|
+
align: "left",
|
|
432
|
+
italic: !1,
|
|
433
|
+
clamp: "none",
|
|
434
|
+
ellipsis: !1,
|
|
435
|
+
as: "span"
|
|
436
|
+
}
|
|
437
|
+
}), z = f(
|
|
438
|
+
({
|
|
439
|
+
as: e = "span",
|
|
440
|
+
color: t = "ghost",
|
|
441
|
+
hasUnderline: i = !1,
|
|
442
|
+
isCapitalize: n = !1,
|
|
443
|
+
align: s = "left",
|
|
444
|
+
italic: o = !1,
|
|
445
|
+
clamp: l = "none",
|
|
446
|
+
ellipsis: d = !1,
|
|
447
|
+
fontSize: g,
|
|
448
|
+
fontWeight: h,
|
|
449
|
+
className: m,
|
|
450
|
+
children: c,
|
|
451
|
+
...v
|
|
452
|
+
}, y) => {
|
|
453
|
+
const C = [
|
|
454
|
+
"h1",
|
|
455
|
+
"h2",
|
|
456
|
+
"h3",
|
|
457
|
+
"h4",
|
|
458
|
+
"h5",
|
|
459
|
+
"h6",
|
|
460
|
+
"p",
|
|
461
|
+
"span",
|
|
462
|
+
"label"
|
|
463
|
+
].includes(e) ? e : "span", N = g ? `text-${g}` : "", I = h ? `font-${h}` : "";
|
|
464
|
+
return /* @__PURE__ */ r.jsx(
|
|
465
|
+
e,
|
|
466
|
+
{
|
|
467
|
+
ref: y,
|
|
468
|
+
className: u(
|
|
469
|
+
Ae({
|
|
470
|
+
color: t,
|
|
471
|
+
hasUnderline: i,
|
|
472
|
+
isCapitalize: n,
|
|
473
|
+
align: s,
|
|
474
|
+
italic: o,
|
|
475
|
+
clamp: l,
|
|
476
|
+
ellipsis: d,
|
|
477
|
+
// @ts-expect-error - `as` is not a valid variant
|
|
478
|
+
as: C
|
|
479
|
+
}),
|
|
480
|
+
N,
|
|
481
|
+
I,
|
|
482
|
+
m
|
|
483
|
+
),
|
|
484
|
+
...v,
|
|
485
|
+
children: c
|
|
486
|
+
}
|
|
487
|
+
);
|
|
488
|
+
}
|
|
489
|
+
), Me = f(
|
|
490
|
+
({ children: e, className: t }, i) => /* @__PURE__ */ r.jsx(
|
|
491
|
+
"div",
|
|
492
|
+
{
|
|
493
|
+
ref: i,
|
|
494
|
+
className: u(
|
|
495
|
+
"bg-background border border-border rounded-lg overflow-hidden",
|
|
496
|
+
"divide-y divide-border",
|
|
497
|
+
t
|
|
498
|
+
),
|
|
499
|
+
role: "group",
|
|
500
|
+
children: e
|
|
501
|
+
}
|
|
502
|
+
)
|
|
503
|
+
), Re = f(
|
|
504
|
+
({
|
|
505
|
+
size: e = "md",
|
|
506
|
+
icon: t,
|
|
507
|
+
title: i,
|
|
508
|
+
subtitle: n,
|
|
509
|
+
badge: s,
|
|
510
|
+
showArrow: o = !0,
|
|
511
|
+
as: l = "button",
|
|
512
|
+
className: d,
|
|
513
|
+
...g
|
|
514
|
+
}, h) => /* @__PURE__ */ r.jsxs(
|
|
515
|
+
l,
|
|
516
|
+
{
|
|
517
|
+
ref: h,
|
|
518
|
+
className: u(Ve({ size: e, as: l }), d),
|
|
519
|
+
...g,
|
|
520
|
+
children: [
|
|
521
|
+
/* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-4 flex-1", children: [
|
|
522
|
+
t && /* @__PURE__ */ r.jsx("div", { className: u(Ie({ size: e })), children: t }),
|
|
523
|
+
/* @__PURE__ */ r.jsxs("div", { className: "flex-1", children: [
|
|
524
|
+
/* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-3 mb-1", children: [
|
|
525
|
+
/* @__PURE__ */ r.jsx(
|
|
526
|
+
z,
|
|
527
|
+
{
|
|
528
|
+
as: "span",
|
|
529
|
+
fontSize: e === "sm" ? "sm" : "base",
|
|
530
|
+
fontWeight: "semibold",
|
|
531
|
+
color: "ghost",
|
|
532
|
+
className: "text-left leading-normal",
|
|
533
|
+
children: i
|
|
534
|
+
}
|
|
535
|
+
),
|
|
536
|
+
s && /* @__PURE__ */ r.jsx(
|
|
537
|
+
"div",
|
|
538
|
+
{
|
|
539
|
+
className: "flex flex-wrap items-center flex-row justify-start gap-3",
|
|
540
|
+
role: "group",
|
|
541
|
+
children: s
|
|
542
|
+
}
|
|
543
|
+
)
|
|
544
|
+
] }),
|
|
545
|
+
n && /* @__PURE__ */ r.jsx(
|
|
546
|
+
z,
|
|
547
|
+
{
|
|
548
|
+
as: "p",
|
|
549
|
+
fontSize: "sm",
|
|
550
|
+
color: "gray",
|
|
551
|
+
className: "text-left leading-normal",
|
|
552
|
+
children: n
|
|
553
|
+
}
|
|
554
|
+
)
|
|
555
|
+
] })
|
|
556
|
+
] }),
|
|
557
|
+
o && /* @__PURE__ */ r.jsx("div", { className: "flex items-center gap-3", children: /* @__PURE__ */ r.jsx(
|
|
558
|
+
R,
|
|
559
|
+
{
|
|
560
|
+
as: ge,
|
|
561
|
+
className: u(Le({ size: e })),
|
|
562
|
+
color: "ghost",
|
|
563
|
+
"aria-hidden": "true"
|
|
564
|
+
}
|
|
565
|
+
) })
|
|
566
|
+
]
|
|
567
|
+
}
|
|
568
|
+
)
|
|
569
|
+
), Xt = Object.assign(Re, {
|
|
570
|
+
Group: Me
|
|
571
|
+
}), Se = w(
|
|
572
|
+
"relative flex items-center gap-2 rounded-md p-2 text-sm transition-all duration-200",
|
|
573
|
+
{
|
|
574
|
+
variants: {
|
|
575
|
+
variant: {
|
|
576
|
+
default: "",
|
|
577
|
+
outline: "border"
|
|
578
|
+
},
|
|
579
|
+
color: {
|
|
580
|
+
// Core colors
|
|
581
|
+
primary: "",
|
|
582
|
+
secondary: "",
|
|
583
|
+
tertiary: "",
|
|
584
|
+
ghost: "",
|
|
585
|
+
neutral: "",
|
|
586
|
+
// Semantic colors
|
|
587
|
+
success: "",
|
|
588
|
+
info: "",
|
|
589
|
+
warning: "",
|
|
590
|
+
danger: ""
|
|
591
|
+
}
|
|
592
|
+
},
|
|
593
|
+
compoundVariants: [
|
|
594
|
+
// Default variant styles (soft backgrounds)
|
|
595
|
+
{
|
|
596
|
+
variant: "default",
|
|
597
|
+
color: "primary",
|
|
598
|
+
class: "bg-primary-soft text-primary border border-primary"
|
|
599
|
+
},
|
|
600
|
+
{
|
|
601
|
+
variant: "default",
|
|
602
|
+
color: "secondary",
|
|
603
|
+
class: "bg-secondary-soft text-secondary border border-secondary"
|
|
604
|
+
},
|
|
605
|
+
{
|
|
606
|
+
variant: "default",
|
|
607
|
+
color: "tertiary",
|
|
608
|
+
class: "bg-tertiary-soft text-tertiary border border-tertiary"
|
|
609
|
+
},
|
|
610
|
+
{
|
|
611
|
+
variant: "default",
|
|
612
|
+
color: "ghost",
|
|
613
|
+
class: "bg-ghost-soft text-ghost border border-ghost"
|
|
614
|
+
},
|
|
615
|
+
{
|
|
616
|
+
variant: "default",
|
|
617
|
+
color: "neutral",
|
|
618
|
+
class: "bg-border/50 text-foreground border border-border"
|
|
619
|
+
},
|
|
620
|
+
{
|
|
621
|
+
variant: "default",
|
|
622
|
+
color: "success",
|
|
623
|
+
class: "bg-success-soft text-success border border-success"
|
|
624
|
+
},
|
|
625
|
+
{
|
|
626
|
+
variant: "default",
|
|
627
|
+
color: "info",
|
|
628
|
+
class: "bg-info-soft text-info border border-info"
|
|
629
|
+
},
|
|
630
|
+
{
|
|
631
|
+
variant: "default",
|
|
632
|
+
color: "warning",
|
|
633
|
+
class: "bg-warning-soft text-warning border border-warning"
|
|
634
|
+
},
|
|
635
|
+
{
|
|
636
|
+
variant: "default",
|
|
637
|
+
color: "danger",
|
|
638
|
+
class: "bg-danger-soft text-danger border border-danger"
|
|
639
|
+
},
|
|
640
|
+
// Outline variant styles
|
|
641
|
+
{
|
|
642
|
+
variant: "outline",
|
|
643
|
+
color: "primary",
|
|
644
|
+
class: "bg-transparent text-primary border-primary"
|
|
645
|
+
},
|
|
646
|
+
{
|
|
647
|
+
variant: "outline",
|
|
648
|
+
color: "secondary",
|
|
649
|
+
class: "bg-transparent text-secondary border-secondary"
|
|
650
|
+
},
|
|
651
|
+
{
|
|
652
|
+
variant: "outline",
|
|
653
|
+
color: "tertiary",
|
|
654
|
+
class: "bg-transparent text-tertiary border-tertiary"
|
|
655
|
+
},
|
|
656
|
+
{
|
|
657
|
+
variant: "outline",
|
|
658
|
+
color: "ghost",
|
|
659
|
+
class: "bg-transparent text-ghost border-ghost"
|
|
660
|
+
},
|
|
661
|
+
{
|
|
662
|
+
variant: "outline",
|
|
663
|
+
color: "neutral",
|
|
664
|
+
class: "bg-transparent text-foreground border-border"
|
|
665
|
+
},
|
|
666
|
+
{
|
|
667
|
+
variant: "outline",
|
|
668
|
+
color: "success",
|
|
669
|
+
class: "bg-transparent text-success border-success"
|
|
670
|
+
},
|
|
671
|
+
{
|
|
672
|
+
variant: "outline",
|
|
673
|
+
color: "info",
|
|
674
|
+
class: "bg-transparent text-info border-info"
|
|
675
|
+
},
|
|
676
|
+
{
|
|
677
|
+
variant: "outline",
|
|
678
|
+
color: "warning",
|
|
679
|
+
class: "bg-transparent text-warning border-warning"
|
|
680
|
+
},
|
|
681
|
+
{
|
|
682
|
+
variant: "outline",
|
|
683
|
+
color: "danger",
|
|
684
|
+
class: "bg-transparent text-danger border-danger"
|
|
685
|
+
}
|
|
686
|
+
],
|
|
687
|
+
defaultVariants: {
|
|
688
|
+
variant: "default",
|
|
689
|
+
color: "neutral"
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
), We = w(
|
|
693
|
+
"flex-shrink-0 flex justify-center items-center ",
|
|
694
|
+
{
|
|
695
|
+
variants: {
|
|
696
|
+
size: {
|
|
697
|
+
sm: "w-4 h-4",
|
|
698
|
+
md: "w-5 h-5",
|
|
699
|
+
lg: "w-6 h-6"
|
|
700
|
+
}
|
|
701
|
+
},
|
|
702
|
+
defaultVariants: {
|
|
703
|
+
size: "md"
|
|
704
|
+
}
|
|
705
|
+
}
|
|
706
|
+
), te = f(
|
|
707
|
+
({ className: e, children: t, ...i }, n) => /* @__PURE__ */ r.jsx("div", { ref: n, className: u(We(), e), ...i, children: t })
|
|
708
|
+
), Be = f(
|
|
709
|
+
({
|
|
710
|
+
variant: e = "default",
|
|
711
|
+
color: t = "neutral",
|
|
712
|
+
icon: i,
|
|
713
|
+
className: n,
|
|
714
|
+
children: s,
|
|
715
|
+
...o
|
|
716
|
+
}, l) => /* @__PURE__ */ r.jsxs(
|
|
717
|
+
"div",
|
|
718
|
+
{
|
|
719
|
+
ref: l,
|
|
720
|
+
role: "alert",
|
|
721
|
+
className: u(Se({ variant: e, color: t }), n),
|
|
722
|
+
...o,
|
|
723
|
+
children: [
|
|
724
|
+
i && /* @__PURE__ */ r.jsx(te, { children: i }),
|
|
725
|
+
/* @__PURE__ */ r.jsx("div", { className: "flex-1", children: s })
|
|
726
|
+
]
|
|
727
|
+
}
|
|
728
|
+
)
|
|
729
|
+
), Yt = Object.assign(Be, {
|
|
730
|
+
Icon: te
|
|
731
|
+
}), Oe = w(
|
|
732
|
+
[
|
|
733
|
+
"inline-flex items-center transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2",
|
|
734
|
+
// pseudo selectors for anchor
|
|
735
|
+
"hover:no-underline"
|
|
736
|
+
],
|
|
737
|
+
{
|
|
738
|
+
variants: {
|
|
739
|
+
color: {
|
|
740
|
+
primary: "text-primary",
|
|
741
|
+
secondary: "text-secondary",
|
|
742
|
+
ghost: "text-ghost",
|
|
743
|
+
danger: "text-danger",
|
|
744
|
+
neutral: "text-neutral"
|
|
745
|
+
},
|
|
746
|
+
fontSize: {
|
|
747
|
+
xs: "text-xs",
|
|
748
|
+
sm: "text-sm",
|
|
749
|
+
base: "text-base",
|
|
750
|
+
lg: "text-lg",
|
|
751
|
+
xl: "text-xl",
|
|
752
|
+
"2xl": "text-2xl",
|
|
753
|
+
"3xl": "text-3xl",
|
|
754
|
+
"4xl": "text-4xl",
|
|
755
|
+
"5xl": "text-5xl",
|
|
756
|
+
"6xl": "text-6xl",
|
|
757
|
+
"7xl": "text-7xl",
|
|
758
|
+
"8xl": "text-8xl",
|
|
759
|
+
"9xl": "text-9xl",
|
|
760
|
+
inherit: "",
|
|
761
|
+
undefined: ""
|
|
762
|
+
},
|
|
763
|
+
fontWeight: {
|
|
764
|
+
thin: "font-thin",
|
|
765
|
+
extralight: "font-extralight",
|
|
766
|
+
light: "font-light",
|
|
767
|
+
normal: "font-normal",
|
|
768
|
+
medium: "font-medium",
|
|
769
|
+
semibold: "font-semibold",
|
|
770
|
+
bold: "font-bold",
|
|
771
|
+
extrabold: "font-extrabold",
|
|
772
|
+
black: "font-black",
|
|
773
|
+
inherit: "",
|
|
774
|
+
undefined: ""
|
|
775
|
+
},
|
|
776
|
+
quiet: {
|
|
777
|
+
true: "",
|
|
778
|
+
false: "underline underline-offset-2"
|
|
779
|
+
}
|
|
780
|
+
},
|
|
781
|
+
defaultVariants: {
|
|
782
|
+
color: "primary",
|
|
783
|
+
fontSize: "base",
|
|
784
|
+
fontWeight: "medium",
|
|
785
|
+
quiet: !1
|
|
786
|
+
}
|
|
787
|
+
}
|
|
788
|
+
), Dt = f(
|
|
789
|
+
({
|
|
790
|
+
children: e,
|
|
791
|
+
className: t,
|
|
792
|
+
color: i = "primary",
|
|
793
|
+
fontSize: n = "base",
|
|
794
|
+
fontWeight: s = "medium",
|
|
795
|
+
quiet: o = !1,
|
|
796
|
+
...l
|
|
797
|
+
}, d) => /* @__PURE__ */ r.jsx(
|
|
798
|
+
"a",
|
|
799
|
+
{
|
|
800
|
+
ref: d,
|
|
801
|
+
className: u(
|
|
802
|
+
Oe({ color: i, fontSize: n, fontWeight: s, quiet: o }),
|
|
803
|
+
t
|
|
804
|
+
),
|
|
805
|
+
...l,
|
|
806
|
+
children: e
|
|
807
|
+
}
|
|
808
|
+
)
|
|
809
|
+
), He = f(
|
|
810
|
+
function({ title: t, children: i, className: n, hasMargin: s, ...o }, l) {
|
|
811
|
+
return /* @__PURE__ */ r.jsxs(
|
|
812
|
+
"div",
|
|
813
|
+
{
|
|
814
|
+
ref: l,
|
|
815
|
+
className: u("space-y-1", n, s && "mb-4"),
|
|
816
|
+
...o,
|
|
817
|
+
children: [
|
|
818
|
+
/* @__PURE__ */ r.jsx(
|
|
819
|
+
z,
|
|
820
|
+
{
|
|
821
|
+
as: "h4",
|
|
822
|
+
fontSize: "sm",
|
|
823
|
+
fontWeight: "normal",
|
|
824
|
+
color: "gray",
|
|
825
|
+
className: "leading-none",
|
|
826
|
+
children: t
|
|
827
|
+
}
|
|
828
|
+
),
|
|
829
|
+
/* @__PURE__ */ r.jsx(z, { as: "p", fontSize: "base", fontWeight: "normal", children: i })
|
|
830
|
+
]
|
|
831
|
+
}
|
|
832
|
+
);
|
|
833
|
+
}
|
|
834
|
+
);
|
|
835
|
+
function Te(e = 1) {
|
|
836
|
+
switch (e) {
|
|
837
|
+
case 1:
|
|
838
|
+
return "col-span-1";
|
|
839
|
+
case 2:
|
|
840
|
+
return "col-span-2";
|
|
841
|
+
case 3:
|
|
842
|
+
return "col-span-3";
|
|
843
|
+
case 4:
|
|
844
|
+
return "col-span-4";
|
|
845
|
+
case 5:
|
|
846
|
+
return "col-span-5";
|
|
847
|
+
case 6:
|
|
848
|
+
return "col-span-6";
|
|
849
|
+
case 7:
|
|
850
|
+
return "col-span-7";
|
|
851
|
+
case 8:
|
|
852
|
+
return "col-span-8";
|
|
853
|
+
case 9:
|
|
854
|
+
return "col-span-9";
|
|
855
|
+
case 10:
|
|
856
|
+
return "col-span-10";
|
|
857
|
+
case 11:
|
|
858
|
+
return "col-span-11";
|
|
859
|
+
case 12:
|
|
860
|
+
return "col-span-12";
|
|
861
|
+
default:
|
|
862
|
+
return "col-span-1";
|
|
863
|
+
}
|
|
864
|
+
}
|
|
865
|
+
function qe(e = 4) {
|
|
866
|
+
switch (e) {
|
|
867
|
+
case 1:
|
|
868
|
+
return "grid-cols-1";
|
|
869
|
+
case 2:
|
|
870
|
+
return "grid-cols-2";
|
|
871
|
+
case 3:
|
|
872
|
+
return "grid-cols-3";
|
|
873
|
+
case 4:
|
|
874
|
+
return "grid-cols-4";
|
|
875
|
+
case 5:
|
|
876
|
+
return "grid-cols-5";
|
|
877
|
+
case 6:
|
|
878
|
+
return "grid-cols-6";
|
|
879
|
+
case 7:
|
|
880
|
+
return "grid-cols-7";
|
|
881
|
+
case 8:
|
|
882
|
+
return "grid-cols-8";
|
|
883
|
+
case 9:
|
|
884
|
+
return "grid-cols-9";
|
|
885
|
+
case 10:
|
|
886
|
+
return "grid-cols-10";
|
|
887
|
+
case 11:
|
|
888
|
+
return "grid-cols-11";
|
|
889
|
+
case 12:
|
|
890
|
+
return "grid-cols-12";
|
|
891
|
+
default:
|
|
892
|
+
return "grid-cols-4";
|
|
893
|
+
}
|
|
894
|
+
}
|
|
895
|
+
const _e = f(function({ children: t, className: i, span: n = 1, title: s, ...o }, l) {
|
|
896
|
+
const d = Te(n);
|
|
897
|
+
return /* @__PURE__ */ r.jsx("li", { ref: l, className: u(d, i), ...o, children: /* @__PURE__ */ r.jsx(He, { title: s, children: t }) });
|
|
898
|
+
}), Pe = f(
|
|
899
|
+
function({ children: t, className: i, columns: n = 4, ...s }, o) {
|
|
900
|
+
const l = qe(n);
|
|
901
|
+
return /* @__PURE__ */ r.jsx(
|
|
902
|
+
"ul",
|
|
903
|
+
{
|
|
904
|
+
ref: o,
|
|
905
|
+
className: u("grid gap-4", l, i),
|
|
906
|
+
...s,
|
|
907
|
+
children: t
|
|
908
|
+
}
|
|
909
|
+
);
|
|
910
|
+
}
|
|
911
|
+
), Jt = Object.assign(Pe, {
|
|
912
|
+
Item: _e
|
|
913
|
+
}), Fe = w(
|
|
914
|
+
"inline-flex items-center justify-center font-medium text-white overflow-hidden transition-all duration-200 select-none relative",
|
|
915
|
+
{
|
|
916
|
+
variants: {
|
|
917
|
+
variant: {
|
|
918
|
+
// Core variants using Versaur color system
|
|
919
|
+
primary: "bg-primary-light text-primary",
|
|
920
|
+
secondary: "bg-secondary-light text-secondary",
|
|
921
|
+
tertiary: "bg-tertiary-light text-tertiary",
|
|
922
|
+
ghost: "bg-ghost-light text-ghost",
|
|
923
|
+
neutral: "bg-neutral-light text-foreground border border-border",
|
|
924
|
+
// Accent variants
|
|
925
|
+
accent_1: "bg-accent-1-light text-accent-1",
|
|
926
|
+
accent_2: "bg-accent-2-light text-accent-2",
|
|
927
|
+
accent_3: "bg-accent-3-light text-accent-3",
|
|
928
|
+
// Semantic variants
|
|
929
|
+
success: "bg-success-light text-success",
|
|
930
|
+
info: "bg-info-light text-info",
|
|
931
|
+
warning: "bg-warning-light text-warning",
|
|
932
|
+
danger: "bg-danger-light text-danger"
|
|
933
|
+
},
|
|
934
|
+
size: {
|
|
935
|
+
xs: "h-6 w-6 text-xs",
|
|
936
|
+
sm: "h-7 w-7 text-xs",
|
|
937
|
+
md: "h-9 w-9 text-sm",
|
|
938
|
+
lg: "h-10 w-10 text-base",
|
|
939
|
+
xl: "h-12 w-12 text-xl"
|
|
940
|
+
},
|
|
941
|
+
shape: {
|
|
942
|
+
circle: "rounded-full",
|
|
943
|
+
square: "rounded-none",
|
|
944
|
+
rounded: "rounded-md"
|
|
945
|
+
}
|
|
946
|
+
},
|
|
947
|
+
defaultVariants: {
|
|
948
|
+
variant: "primary",
|
|
949
|
+
size: "md",
|
|
950
|
+
shape: "circle"
|
|
951
|
+
}
|
|
952
|
+
}
|
|
953
|
+
), Ue = w(
|
|
954
|
+
"absolute inset-0 h-full w-full object-cover"
|
|
955
|
+
), Ge = f(
|
|
956
|
+
({
|
|
957
|
+
variant: e = "primary",
|
|
958
|
+
size: t = "md",
|
|
959
|
+
shape: i = "circle",
|
|
960
|
+
className: n,
|
|
961
|
+
children: s,
|
|
962
|
+
...o
|
|
963
|
+
}, l) => /* @__PURE__ */ r.jsx(
|
|
964
|
+
"div",
|
|
965
|
+
{
|
|
966
|
+
ref: l,
|
|
967
|
+
className: u(Fe({ variant: e, size: t, shape: i }), n),
|
|
968
|
+
...o,
|
|
969
|
+
children: s
|
|
970
|
+
}
|
|
971
|
+
)
|
|
972
|
+
), $e = f(
|
|
973
|
+
({ src: e, alt: t, className: i, onError: n, ...s }, o) => {
|
|
974
|
+
const [l, d] = L(!1);
|
|
975
|
+
A(() => {
|
|
976
|
+
d(!1);
|
|
977
|
+
}, [e]);
|
|
978
|
+
const g = J(
|
|
979
|
+
(h) => {
|
|
980
|
+
d(!0), n?.(h);
|
|
981
|
+
},
|
|
982
|
+
[n]
|
|
983
|
+
);
|
|
984
|
+
return l ? null : /* @__PURE__ */ r.jsx(
|
|
985
|
+
"img",
|
|
986
|
+
{
|
|
987
|
+
ref: o,
|
|
988
|
+
src: e,
|
|
989
|
+
alt: t,
|
|
990
|
+
className: u(Ue(), i),
|
|
991
|
+
onError: g,
|
|
992
|
+
...s
|
|
993
|
+
}
|
|
994
|
+
);
|
|
995
|
+
}
|
|
996
|
+
), Kt = Object.assign(Ge, {
|
|
997
|
+
/**
|
|
998
|
+
* AvatarImage sub-component for displaying images with fallback behavior
|
|
999
|
+
*/
|
|
1000
|
+
Image: $e
|
|
1001
|
+
}), Xe = w(
|
|
1002
|
+
"inline-flex items-center justify-center font-medium transition-all duration-200 select-none gap-1 min-h-[1.25rem]",
|
|
1003
|
+
{
|
|
1004
|
+
variants: {
|
|
1005
|
+
variant: {
|
|
1006
|
+
default: "",
|
|
1007
|
+
outline: "border bg-background"
|
|
1008
|
+
},
|
|
1009
|
+
color: {
|
|
1010
|
+
// Core colors
|
|
1011
|
+
primary: "",
|
|
1012
|
+
secondary: "",
|
|
1013
|
+
tertiary: "",
|
|
1014
|
+
ghost: "",
|
|
1015
|
+
neutral: "",
|
|
1016
|
+
// Accent colors
|
|
1017
|
+
accent_1: "",
|
|
1018
|
+
accent_2: "",
|
|
1019
|
+
accent_3: "",
|
|
1020
|
+
// Semantic colors
|
|
1021
|
+
success: "",
|
|
1022
|
+
info: "",
|
|
1023
|
+
warning: "",
|
|
1024
|
+
danger: ""
|
|
1025
|
+
},
|
|
1026
|
+
shape: {
|
|
1027
|
+
rounded: "rounded-full",
|
|
1028
|
+
square: "rounded-xs"
|
|
1029
|
+
},
|
|
1030
|
+
size: {
|
|
1031
|
+
sm: "text-xs px-1 py-0.25 h-3",
|
|
1032
|
+
md: "text-xs px-1.5 py-0.5 h-4",
|
|
1033
|
+
lg: "text-sm px-2 py-1 h-6"
|
|
1034
|
+
},
|
|
1035
|
+
iconOnly: {
|
|
1036
|
+
true: "",
|
|
1037
|
+
false: ""
|
|
1038
|
+
}
|
|
1039
|
+
},
|
|
1040
|
+
compoundVariants: [
|
|
1041
|
+
// Default variant color combinations - using light/soft backgrounds
|
|
1042
|
+
{
|
|
1043
|
+
variant: "default",
|
|
1044
|
+
color: "primary",
|
|
1045
|
+
className: "bg-primary-light text-primary-bold"
|
|
1046
|
+
},
|
|
1047
|
+
{
|
|
1048
|
+
variant: "default",
|
|
1049
|
+
color: "secondary",
|
|
1050
|
+
className: "bg-secondary-light text-secondary-bold"
|
|
1051
|
+
},
|
|
1052
|
+
{
|
|
1053
|
+
variant: "default",
|
|
1054
|
+
color: "tertiary",
|
|
1055
|
+
className: "bg-tertiary-light text-tertiary-bold"
|
|
1056
|
+
},
|
|
1057
|
+
{
|
|
1058
|
+
variant: "default",
|
|
1059
|
+
color: "ghost",
|
|
1060
|
+
className: "bg-ghost/05 text-ghost"
|
|
1061
|
+
},
|
|
1062
|
+
{
|
|
1063
|
+
variant: "default",
|
|
1064
|
+
color: "neutral",
|
|
1065
|
+
className: "bg-neutral-light text-foreground"
|
|
1066
|
+
},
|
|
1067
|
+
{
|
|
1068
|
+
variant: "default",
|
|
1069
|
+
color: "success",
|
|
1070
|
+
className: "bg-success-light/50 text-success-bold"
|
|
1071
|
+
},
|
|
1072
|
+
{
|
|
1073
|
+
variant: "default",
|
|
1074
|
+
color: "info",
|
|
1075
|
+
className: "bg-info-light/50 text-info-bold"
|
|
1076
|
+
},
|
|
1077
|
+
{
|
|
1078
|
+
variant: "default",
|
|
1079
|
+
color: "warning",
|
|
1080
|
+
className: "bg-warning-light/50 text-warning-bold"
|
|
1081
|
+
},
|
|
1082
|
+
{
|
|
1083
|
+
variant: "default",
|
|
1084
|
+
color: "danger",
|
|
1085
|
+
className: "bg-danger-light/40 text-danger-bold"
|
|
1086
|
+
},
|
|
1087
|
+
{
|
|
1088
|
+
variant: "default",
|
|
1089
|
+
color: "accent_1",
|
|
1090
|
+
className: "bg-accent-1-light text-accent-1-bold"
|
|
1091
|
+
},
|
|
1092
|
+
{
|
|
1093
|
+
variant: "default",
|
|
1094
|
+
color: "accent_2",
|
|
1095
|
+
className: "bg-accent-2-light text-accent-2-bold"
|
|
1096
|
+
},
|
|
1097
|
+
{
|
|
1098
|
+
variant: "default",
|
|
1099
|
+
color: "accent_3",
|
|
1100
|
+
className: "bg-accent-3-light text-accent-3-bold"
|
|
1101
|
+
},
|
|
1102
|
+
// Outline variant color combinations
|
|
1103
|
+
{
|
|
1104
|
+
variant: "outline",
|
|
1105
|
+
color: "primary",
|
|
1106
|
+
className: "border-primary text-primary"
|
|
1107
|
+
},
|
|
1108
|
+
{
|
|
1109
|
+
variant: "outline",
|
|
1110
|
+
color: "secondary",
|
|
1111
|
+
className: "border-secondary text-secondary"
|
|
1112
|
+
},
|
|
1113
|
+
{
|
|
1114
|
+
variant: "outline",
|
|
1115
|
+
color: "tertiary",
|
|
1116
|
+
className: "border-tertiary text-tertiary"
|
|
1117
|
+
},
|
|
1118
|
+
{
|
|
1119
|
+
variant: "outline",
|
|
1120
|
+
color: "ghost",
|
|
1121
|
+
className: "border-ghost text-ghost"
|
|
1122
|
+
},
|
|
1123
|
+
{
|
|
1124
|
+
variant: "outline",
|
|
1125
|
+
color: "neutral",
|
|
1126
|
+
className: "border-neutral text-foreground"
|
|
1127
|
+
},
|
|
1128
|
+
{
|
|
1129
|
+
variant: "outline",
|
|
1130
|
+
color: "success",
|
|
1131
|
+
className: "border-success text-success"
|
|
1132
|
+
},
|
|
1133
|
+
{
|
|
1134
|
+
variant: "outline",
|
|
1135
|
+
color: "info",
|
|
1136
|
+
className: "border-info text-info"
|
|
1137
|
+
},
|
|
1138
|
+
{
|
|
1139
|
+
variant: "outline",
|
|
1140
|
+
color: "warning",
|
|
1141
|
+
className: "border-warning text-warning"
|
|
1142
|
+
},
|
|
1143
|
+
{
|
|
1144
|
+
variant: "outline",
|
|
1145
|
+
color: "danger",
|
|
1146
|
+
className: "border-danger text-danger"
|
|
1147
|
+
},
|
|
1148
|
+
{
|
|
1149
|
+
variant: "outline",
|
|
1150
|
+
color: "accent_1",
|
|
1151
|
+
className: "border-accent-1 text-accent-1"
|
|
1152
|
+
},
|
|
1153
|
+
{
|
|
1154
|
+
variant: "outline",
|
|
1155
|
+
color: "accent_2",
|
|
1156
|
+
className: "border-accent-2 text-accent-2"
|
|
1157
|
+
},
|
|
1158
|
+
{
|
|
1159
|
+
variant: "outline",
|
|
1160
|
+
color: "accent_3",
|
|
1161
|
+
className: "border-accent-3 text-accent-3"
|
|
1162
|
+
},
|
|
1163
|
+
// Icon-only size adjustments
|
|
1164
|
+
{
|
|
1165
|
+
iconOnly: !0,
|
|
1166
|
+
size: "sm",
|
|
1167
|
+
className: "px-1 py-1 w-5 h-5"
|
|
1168
|
+
},
|
|
1169
|
+
{
|
|
1170
|
+
iconOnly: !0,
|
|
1171
|
+
size: "md",
|
|
1172
|
+
className: "px-1.5 py-1.5 w-6 h-6"
|
|
1173
|
+
},
|
|
1174
|
+
{
|
|
1175
|
+
iconOnly: !0,
|
|
1176
|
+
size: "lg",
|
|
1177
|
+
className: "px-2 py-2 w-7 h-7"
|
|
1178
|
+
}
|
|
1179
|
+
],
|
|
1180
|
+
defaultVariants: {
|
|
1181
|
+
variant: "default",
|
|
1182
|
+
color: "primary",
|
|
1183
|
+
shape: "square",
|
|
1184
|
+
size: "md",
|
|
1185
|
+
iconOnly: !1
|
|
1186
|
+
}
|
|
1187
|
+
}
|
|
1188
|
+
), Qt = f(
|
|
1189
|
+
({
|
|
1190
|
+
variant: e = "default",
|
|
1191
|
+
shape: t = "square",
|
|
1192
|
+
color: i = "primary",
|
|
1193
|
+
size: n = "md",
|
|
1194
|
+
iconLeft: s,
|
|
1195
|
+
iconRight: o,
|
|
1196
|
+
className: l,
|
|
1197
|
+
children: d,
|
|
1198
|
+
...g
|
|
1199
|
+
}, h) => {
|
|
1200
|
+
const v = !(d != null && d !== "") && !!(s || o);
|
|
1201
|
+
return /* @__PURE__ */ r.jsx(
|
|
1202
|
+
"span",
|
|
1203
|
+
{
|
|
1204
|
+
ref: h,
|
|
1205
|
+
className: u(
|
|
1206
|
+
Xe({
|
|
1207
|
+
variant: e,
|
|
1208
|
+
color: i,
|
|
1209
|
+
shape: t,
|
|
1210
|
+
size: n,
|
|
1211
|
+
iconOnly: v
|
|
1212
|
+
}),
|
|
1213
|
+
l
|
|
1214
|
+
),
|
|
1215
|
+
...g,
|
|
1216
|
+
children: v ? (
|
|
1217
|
+
// Icon-only mode: display only the icon
|
|
1218
|
+
s || o
|
|
1219
|
+
) : (
|
|
1220
|
+
// Normal mode: display icon(s) and text
|
|
1221
|
+
/* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
1222
|
+
s,
|
|
1223
|
+
d,
|
|
1224
|
+
o
|
|
1225
|
+
] })
|
|
1226
|
+
)
|
|
1227
|
+
}
|
|
1228
|
+
);
|
|
1229
|
+
}
|
|
1230
|
+
), X = (e) => /* @__PURE__ */ a.createElement("svg", { width: 32, height: 32, viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ a.createElement("title", null, "Spenicle"), /* @__PURE__ */ a.createElement("rect", { width: 32, height: 32, fill: "#e07a5f" }), /* @__PURE__ */ a.createElement("g", { transform: "translate(16, 16) scale(0.625) translate(-12, -12)" }, /* @__PURE__ */ a.createElement("path", { d: "M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z", fill: "white" }))), Ye = (e) => /* @__PURE__ */ a.createElement("svg", { width: 32, height: 32, viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ a.createElement("title", null, "Spenicle"), /* @__PURE__ */ a.createElement("rect", { width: 32, height: 32, rx: 8, fill: "#e07a5f" }), /* @__PURE__ */ a.createElement("g", { transform: "translate(16, 16) scale(0.625) translate(-12, -12)" }, /* @__PURE__ */ a.createElement("path", { d: "M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z", fill: "white" }))), De = (e) => /* @__PURE__ */ a.createElement("svg", { width: 32, height: 32, viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ a.createElement("title", null, "Spenicle"), /* @__PURE__ */ a.createElement("circle", { cx: 16, cy: 16, r: 16, fill: "#e07a5f" }), /* @__PURE__ */ a.createElement("g", { transform: "translate(16, 16) scale(0.625) translate(-12, -12)" }, /* @__PURE__ */ a.createElement("path", { d: "M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z", fill: "white" }))), Je = (e) => /* @__PURE__ */ a.createElement("svg", { width: 32, height: 32, viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ a.createElement("title", null, "Hub (Square)"), /* @__PURE__ */ a.createElement("rect", { x: 0, y: 0, width: 32, height: 32, rx: 0, fill: "#e07a5f" }), /* @__PURE__ */ a.createElement("g", { transform: "translate(16, 16) scale(0.625) translate(-12, -12)" }, /* @__PURE__ */ a.createElement("path", { d: "M20.341 6.484A10 10 0 0 1 10.266 21.85", stroke: "white", strokeWidth: 2, fill: "none" }), /* @__PURE__ */ a.createElement("path", { d: "M3.659 17.516A10 10 0 0 1 13.74 2.152", stroke: "white", strokeWidth: 2, fill: "none" }), /* @__PURE__ */ a.createElement("circle", { cx: 12, cy: 12, r: 3, fill: "white" }), /* @__PURE__ */ a.createElement("circle", { cx: 19, cy: 5, r: 2, fill: "white" }), /* @__PURE__ */ a.createElement("circle", { cx: 5, cy: 19, r: 2, fill: "white" }))), Ke = (e) => /* @__PURE__ */ a.createElement("svg", { width: 32, height: 32, viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ a.createElement("title", null, "Hub (Rounded)"), /* @__PURE__ */ a.createElement("rect", { x: 0, y: 0, width: 32, height: 32, rx: 8, fill: "#e07a5f" }), /* @__PURE__ */ a.createElement("g", { transform: "translate(16, 16) scale(0.625) translate(-12, -12)" }, /* @__PURE__ */ a.createElement("path", { d: "M20.341 6.484A10 10 0 0 1 10.266 21.85", stroke: "white", strokeWidth: 2, fill: "none" }), /* @__PURE__ */ a.createElement("path", { d: "M3.659 17.516A10 10 0 0 1 13.74 2.152", stroke: "white", strokeWidth: 2, fill: "none" }), /* @__PURE__ */ a.createElement("circle", { cx: 12, cy: 12, r: 3, fill: "white" }), /* @__PURE__ */ a.createElement("circle", { cx: 19, cy: 5, r: 2, fill: "white" }), /* @__PURE__ */ a.createElement("circle", { cx: 5, cy: 19, r: 2, fill: "white" }))), Qe = (e) => /* @__PURE__ */ a.createElement("svg", { width: 32, height: 32, viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ a.createElement("title", null, "Hub (Circle)"), /* @__PURE__ */ a.createElement("circle", { cx: 16, cy: 16, r: 16, fill: "#e07a5f" }), /* @__PURE__ */ a.createElement("g", { transform: "translate(16, 16) scale(0.625) translate(-12, -12)" }, /* @__PURE__ */ a.createElement("path", { d: "M20.341 6.484A10 10 0 0 1 10.266 21.85", stroke: "white", strokeWidth: 2, fill: "none" }), /* @__PURE__ */ a.createElement("path", { d: "M3.659 17.516A10 10 0 0 1 13.74 2.152", stroke: "white", strokeWidth: 2, fill: "none" }), /* @__PURE__ */ a.createElement("circle", { cx: 12, cy: 12, r: 3, fill: "white" }), /* @__PURE__ */ a.createElement("circle", { cx: 19, cy: 5, r: 2, fill: "white" }), /* @__PURE__ */ a.createElement("circle", { cx: 5, cy: 19, r: 2, fill: "white" }))), Ze = (e) => /* @__PURE__ */ a.createElement("svg", { width: 32, height: 32, viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ a.createElement("title", null, "Notunic"), /* @__PURE__ */ a.createElement("rect", { width: 32, height: 32, fill: "#e07a5f" }), /* @__PURE__ */ a.createElement("g", { transform: "translate(16, 16) scale(0.625) translate(-12, -12)" }, /* @__PURE__ */ a.createElement("path", { d: "M13.4 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7.4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ a.createElement("path", { d: "M2 6h4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ a.createElement("path", { d: "M2 10h4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ a.createElement("path", { d: "M2 14h4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ a.createElement("path", { d: "M2 18h4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ a.createElement("path", { d: "M21.378 5.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z", fill: "white" }))), et = (e) => /* @__PURE__ */ a.createElement("svg", { width: 32, height: 32, viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ a.createElement("title", null, "Notunic"), /* @__PURE__ */ a.createElement("rect", { width: 32, height: 32, rx: 8, fill: "#e07a5f" }), /* @__PURE__ */ a.createElement("g", { transform: "translate(16, 16) scale(0.625) translate(-12, -12)" }, /* @__PURE__ */ a.createElement("path", { d: "M13.4 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7.4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ a.createElement("path", { d: "M2 6h4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ a.createElement("path", { d: "M2 10h4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ a.createElement("path", { d: "M2 14h4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ a.createElement("path", { d: "M2 18h4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ a.createElement("path", { d: "M21.378 5.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z", fill: "white" }))), tt = (e) => /* @__PURE__ */ a.createElement("svg", { width: 32, height: 32, viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ a.createElement("title", null, "Notunic"), /* @__PURE__ */ a.createElement("circle", { cx: 16, cy: 16, r: 16, fill: "#e07a5f" }), /* @__PURE__ */ a.createElement("g", { transform: "translate(16, 16) scale(0.625) translate(-12, -12)" }, /* @__PURE__ */ a.createElement("path", { d: "M13.4 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7.4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ a.createElement("path", { d: "M2 6h4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ a.createElement("path", { d: "M2 10h4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ a.createElement("path", { d: "M2 14h4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ a.createElement("path", { d: "M2 18h4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ a.createElement("path", { d: "M21.378 5.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z", fill: "white" }))), rt = w("", {
|
|
1231
|
+
variants: {
|
|
1232
|
+
size: {
|
|
1233
|
+
xs: "h-6 w-6",
|
|
1234
|
+
sm: "h-7 w-7",
|
|
1235
|
+
md: "h-9 w-9",
|
|
1236
|
+
lg: "h-10 w-10",
|
|
1237
|
+
xl: "h-12 w-12"
|
|
1238
|
+
}
|
|
1239
|
+
},
|
|
1240
|
+
defaultVariants: {
|
|
1241
|
+
size: "md"
|
|
1242
|
+
}
|
|
1243
|
+
}), it = f(
|
|
1244
|
+
({ shape: e = "square", size: t, name: i = "spenicle", ...n }, s) => {
|
|
1245
|
+
const o = {
|
|
1246
|
+
spenicle: {
|
|
1247
|
+
square: X,
|
|
1248
|
+
rounded: Ye,
|
|
1249
|
+
circle: De
|
|
1250
|
+
},
|
|
1251
|
+
hub: {
|
|
1252
|
+
square: Je,
|
|
1253
|
+
rounded: Ke,
|
|
1254
|
+
circle: Qe
|
|
1255
|
+
},
|
|
1256
|
+
notunic: {
|
|
1257
|
+
square: Ze,
|
|
1258
|
+
rounded: et,
|
|
1259
|
+
circle: tt
|
|
1260
|
+
}
|
|
1261
|
+
}, d = (o[i] || o.spenicle)[e || "square"] || X;
|
|
1262
|
+
return /* @__PURE__ */ r.jsx(
|
|
1263
|
+
d,
|
|
1264
|
+
{
|
|
1265
|
+
ref: s,
|
|
1266
|
+
...n,
|
|
1267
|
+
className: u("inline-block", rt({ size: t }))
|
|
1268
|
+
}
|
|
1269
|
+
);
|
|
1270
|
+
}
|
|
1271
|
+
), Zt = f(
|
|
1272
|
+
({ name: e = "spenicle", size: t = "md", shape: i, ...n }, s) => /* @__PURE__ */ r.jsx(
|
|
1273
|
+
"span",
|
|
1274
|
+
{
|
|
1275
|
+
ref: s,
|
|
1276
|
+
className: u("inline-flex items-center gap-2"),
|
|
1277
|
+
...n,
|
|
1278
|
+
children: /* @__PURE__ */ r.jsx(it, { name: e, shape: i, size: t, "aria-hidden": "true" })
|
|
1279
|
+
}
|
|
1280
|
+
)
|
|
1281
|
+
), st = w(
|
|
1282
|
+
"inline-flex items-center justify-center gap-2 rounded-md font-medium transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none active:scale-[0.98] select-none cursor-pointer",
|
|
1283
|
+
{
|
|
1284
|
+
variants: {
|
|
1285
|
+
variant: {
|
|
1286
|
+
// Core variants using Versaur color system
|
|
1287
|
+
primary: "bg-primary text-white hover:bg-primary/90 focus-visible:ring-primary-light focus-visible:ring-offset-white shadow-sm hover:shadow-md",
|
|
1288
|
+
secondary: "bg-secondary text-white hover:bg-secondary/90 focus-visible:ring-secondary-light focus-visible:ring-offset-white shadow-sm hover:shadow-md",
|
|
1289
|
+
tertiary: "bg-tertiary text-white hover:bg-tertiary/90 focus-visible:ring-tertiary-light focus-visible:ring-offset-white shadow-sm hover:shadow-md",
|
|
1290
|
+
accent_1: "bg-accent-1 text-white hover:bg-accent-1/90 focus-visible:ring-accent-1-light focus-visible:ring-offset-white shadow-sm hover:shadow-md",
|
|
1291
|
+
accent_2: "bg-accent-2 text-white hover:bg-accent-2/90 focus-visible:ring-accent-2-light focus-visible:ring-offset-white shadow-sm hover:shadow-md",
|
|
1292
|
+
accent_3: "bg-accent-3 text-white hover:bg-accent-3/90 focus-visible:ring-accent-3-light focus-visible:ring-offset-white shadow-sm hover:shadow-md",
|
|
1293
|
+
ghost: "bg-white text-foreground hover:bg-ghost-soft focus-visible:ring-ghost-light focus-visible:ring-offset-white",
|
|
1294
|
+
neutral: "bg-neutral text-foreground border border-border hover:bg-neutral/80 focus-visible:ring-foreground-light focus-visible:ring-offset-white shadow-sm",
|
|
1295
|
+
// Outline variants
|
|
1296
|
+
"primary-outline": "border border-primary text-primary bg-white hover:bg-primary hover:text-white focus-visible:ring-primary-light focus-visible:ring-offset-white transition-all",
|
|
1297
|
+
"secondary-outline": "border border-secondary text-secondary bg-white hover:bg-secondary hover:text-white focus-visible:ring-secondary-light focus-visible:ring-offset-white transition-all",
|
|
1298
|
+
"tertiary-outline": "border border-tertiary text-tertiary bg-white hover:bg-tertiary hover:text-white focus-visible:ring-tertiary-light focus-visible:ring-offset-white transition-all",
|
|
1299
|
+
"accent_1-outline": "border border-accent-1 text-accent-1 bg-white hover:bg-accent-1 hover:text-white focus-visible:ring-accent-1-light focus-visible:ring-offset-white transition-all",
|
|
1300
|
+
"accent_2-outline": "border border-accent-2 text-accent-2 bg-white hover:bg-accent-2 hover:text-white focus-visible:ring-accent-2-light focus-visible:ring-offset-white transition-all",
|
|
1301
|
+
"accent_3-outline": "border border-accent-3 text-accent-3 bg-white hover:bg-accent-3 hover:text-white focus-visible:ring-accent-3-light focus-visible:ring-offset-white transition-all",
|
|
1302
|
+
"ghost-outline": "border border-ghost text-ghost bg-white hover:bg-ghost hover:text-white focus-visible:ring-ghost-light focus-visible:ring-offset-white transition-all",
|
|
1303
|
+
"neutral-outline": "border border-border text-foreground bg-white hover:bg-neutral hover:text-foreground focus-visible:ring-foreground-light focus-visible:ring-offset-white transition-all",
|
|
1304
|
+
// Ghost variants (subtle)
|
|
1305
|
+
"primary-ghost": "text-primary bg-white hover:bg-primary/20 focus-visible:ring-primary focus-visible:ring-offset-white",
|
|
1306
|
+
"secondary-ghost": "text-secondary bg-white hover:bg-secondary/20 focus-visible:ring-secondary focus-visible:ring-offset-white",
|
|
1307
|
+
"tertiary-ghost": "text-tertiary bg-white hover:bg-tertiary/20 focus-visible:ring-tertiary focus-visible:ring-offset-white",
|
|
1308
|
+
"neutral-ghost": "text-foreground bg-white hover:bg-neutral/50 focus-visible:ring-foreground focus-visible:ring-offset-white",
|
|
1309
|
+
"accent_1-ghost": "text-accent-1 bg-white hover:bg-accent-1/20 focus-visible:ring-accent-1 focus-visible:ring-offset-white",
|
|
1310
|
+
"accent_2-ghost": "text-accent-2 bg-white hover:bg-accent-2/20 focus-visible:ring-accent-2 focus-visible:ring-offset-white",
|
|
1311
|
+
"accent_3-ghost": "text-accent-3 bg-white hover:bg-accent-3/20 focus-visible:ring-accent-3 focus-visible:ring-offset-white",
|
|
1312
|
+
// Semantic variants
|
|
1313
|
+
success: "bg-success text-white hover:bg-success/90 focus-visible:ring-success-light focus-visible:ring-offset-white shadow-sm hover:shadow-md",
|
|
1314
|
+
"success-outline": "border border-success text-success bg-white hover:bg-success hover:text-white focus-visible:ring-success-light focus-visible:ring-offset-white transition-all",
|
|
1315
|
+
"success-ghost": "text-success bg-white hover:bg-success/20 focus-visible:ring-success-light focus-visible:ring-offset-white",
|
|
1316
|
+
info: "bg-info text-white hover:bg-info/90 focus-visible:ring-info-light focus-visible:ring-offset-white shadow-sm hover:shadow-md",
|
|
1317
|
+
"info-outline": "border border-info text-info bg-white hover:bg-info hover:text-white focus-visible:ring-info-light focus-visible:ring-offset-white transition-all",
|
|
1318
|
+
"info-ghost": "text-info bg-white hover:bg-info/20 focus-visible:ring-info-light focus-visible:ring-offset-white",
|
|
1319
|
+
warning: "bg-warning text-white hover:bg-warning/90 focus-visible:ring-warning-light focus-visible:ring-offset-white shadow-sm hover:shadow-md",
|
|
1320
|
+
"warning-outline": "border border-warning text-warning bg-white hover:bg-warning hover:text-white focus-visible:ring-warning-light focus-visible:ring-offset-white transition-all",
|
|
1321
|
+
"warning-ghost": "text-warning bg-white hover:bg-warning/20 focus-visible:ring-warning-light focus-visible:ring-offset-white",
|
|
1322
|
+
danger: "bg-danger text-white hover:bg-danger/90 focus-visible:ring-danger-light focus-visible:ring-offset-white shadow-sm hover:shadow-md",
|
|
1323
|
+
"danger-outline": "border border-danger text-danger bg-white hover:bg-danger hover:text-white focus-visible:ring-danger-light focus-visible:ring-offset-white transition-all",
|
|
1324
|
+
"danger-ghost": "text-danger bg-white hover:bg-danger/20 focus-visible:ring-danger-light focus-visible:ring-offset-white",
|
|
1325
|
+
// Utility variants
|
|
1326
|
+
outline: "border border-border text-foreground bg-white hover:bg-accent-soft focus-visible:ring-accent-soft focus-visible:ring-offset-white transition-all",
|
|
1327
|
+
destructive: "bg-danger text-white hover:bg-danger/90 focus-visible:ring-danger-soft focus-visible:ring-offset-white shadow-sm hover:shadow-md"
|
|
1328
|
+
},
|
|
1329
|
+
size: {
|
|
1330
|
+
sm: "h-7 px-3 text-sm min-w-[2.25rem]",
|
|
1331
|
+
md: "h-9 px-4 text-sm min-w-[2.5rem]",
|
|
1332
|
+
lg: "h-10 px-8 text-lg min-w-[2.75rem]"
|
|
1333
|
+
}
|
|
1334
|
+
},
|
|
1335
|
+
defaultVariants: {
|
|
1336
|
+
variant: "primary",
|
|
1337
|
+
size: "md"
|
|
1338
|
+
}
|
|
1339
|
+
}
|
|
1340
|
+
), re = H.forwardRef(
|
|
1341
|
+
function({
|
|
1342
|
+
className: t,
|
|
1343
|
+
variant: i = "primary",
|
|
1344
|
+
size: n = "md",
|
|
1345
|
+
disabled: s = !1,
|
|
1346
|
+
type: o = "button",
|
|
1347
|
+
children: l,
|
|
1348
|
+
...d
|
|
1349
|
+
}, g) {
|
|
1350
|
+
return /* @__PURE__ */ r.jsx(
|
|
1351
|
+
"button",
|
|
1352
|
+
{
|
|
1353
|
+
ref: g,
|
|
1354
|
+
type: o,
|
|
1355
|
+
className: u(st({ variant: i, size: n }), t),
|
|
1356
|
+
disabled: s,
|
|
1357
|
+
"aria-disabled": s,
|
|
1358
|
+
inert: s ? !0 : void 0,
|
|
1359
|
+
...d,
|
|
1360
|
+
children: l
|
|
1361
|
+
}
|
|
1362
|
+
);
|
|
1363
|
+
}
|
|
1364
|
+
), nt = ({
|
|
1365
|
+
container: e,
|
|
1366
|
+
children: t
|
|
1367
|
+
}) => {
|
|
1368
|
+
if (typeof window > "u" || typeof document > "u")
|
|
1369
|
+
return /* @__PURE__ */ r.jsx(r.Fragment, { children: t });
|
|
1370
|
+
const i = e ?? document.body;
|
|
1371
|
+
return i ? me.createPortal(t, i) : /* @__PURE__ */ r.jsx(r.Fragment, { children: t });
|
|
1372
|
+
}, Y = w(
|
|
1373
|
+
"z-70 min-w-40 bg-background rounded-lg border border-border transition-all duration-200 ease-out will-change-transform shadow-lg",
|
|
1374
|
+
{
|
|
1375
|
+
variants: {
|
|
1376
|
+
size: {
|
|
1377
|
+
sm: "py-1.5 px-1",
|
|
1378
|
+
md: "py-2 px-1"
|
|
1379
|
+
},
|
|
1380
|
+
open: {
|
|
1381
|
+
true: "opacity-100 scale-100",
|
|
1382
|
+
false: "opacity-0 pointer-events-none scale-95"
|
|
1383
|
+
}
|
|
1384
|
+
},
|
|
1385
|
+
defaultVariants: {
|
|
1386
|
+
size: "md",
|
|
1387
|
+
open: !1
|
|
1388
|
+
}
|
|
1389
|
+
}
|
|
1390
|
+
);
|
|
1391
|
+
function ot(e, t, i, n) {
|
|
1392
|
+
A(() => {
|
|
1393
|
+
if (!e) return;
|
|
1394
|
+
function s(o) {
|
|
1395
|
+
!t.current?.contains(o.target) && !i.current?.contains(o.target) && n();
|
|
1396
|
+
}
|
|
1397
|
+
return document.addEventListener("mousedown", s), () => document.removeEventListener("mousedown", s);
|
|
1398
|
+
}, [e, n, t, i]);
|
|
1399
|
+
}
|
|
1400
|
+
function D(e) {
|
|
1401
|
+
const t = [];
|
|
1402
|
+
let i = e.parentElement;
|
|
1403
|
+
for (; i && i !== document.documentElement; ) {
|
|
1404
|
+
const n = getComputedStyle(i);
|
|
1405
|
+
(n.overflow === "auto" || n.overflow === "scroll" || n.overflowY === "auto" || n.overflowY === "scroll" || n.overflowX === "auto" || n.overflowX === "scroll") && t.push(i), i = i.parentElement;
|
|
1406
|
+
}
|
|
1407
|
+
return t.push(document.documentElement), t;
|
|
1408
|
+
}
|
|
1409
|
+
function at(e, t) {
|
|
1410
|
+
const i = e.getBoundingClientRect();
|
|
1411
|
+
if (i.bottom < 0 || i.top > window.innerHeight || i.right < 0 || i.left > window.innerWidth)
|
|
1412
|
+
return !1;
|
|
1413
|
+
for (const n of t) {
|
|
1414
|
+
if (n === document.documentElement) continue;
|
|
1415
|
+
const s = n.getBoundingClientRect();
|
|
1416
|
+
if (i.bottom < s.top || i.top > s.bottom || i.right < s.left || i.left > s.right)
|
|
1417
|
+
return !1;
|
|
1418
|
+
}
|
|
1419
|
+
return !0;
|
|
1420
|
+
}
|
|
1421
|
+
function lt(e, t, i, n = "bottom-start", s) {
|
|
1422
|
+
const [o, l] = L({ isReady: !1 }), d = J(() => {
|
|
1423
|
+
if (!e || !t.current) {
|
|
1424
|
+
l({ isReady: !1 });
|
|
1425
|
+
return;
|
|
1426
|
+
}
|
|
1427
|
+
if (!i.current) {
|
|
1428
|
+
const k = setTimeout(() => {
|
|
1429
|
+
l({ isReady: !1 });
|
|
1430
|
+
}, 0);
|
|
1431
|
+
return () => clearTimeout(k);
|
|
1432
|
+
}
|
|
1433
|
+
const g = t.current, h = i.current, m = D(g);
|
|
1434
|
+
if (!at(g, m)) {
|
|
1435
|
+
l({ isReady: !1 });
|
|
1436
|
+
return;
|
|
1437
|
+
}
|
|
1438
|
+
const c = g.getBoundingClientRect(), v = window.innerWidth, y = window.innerHeight;
|
|
1439
|
+
let j = null;
|
|
1440
|
+
s && ("getBoundingClientRect" in s ? j = s : "current" in s && (j = s.current));
|
|
1441
|
+
const C = j || document.documentElement, N = C === document.documentElement ? { top: 0, bottom: y, left: 0, right: v } : C.getBoundingClientRect(), I = h.style.visibility, S = h.style.position, W = h.style.opacity;
|
|
1442
|
+
h.style.visibility = "hidden", h.style.position = "absolute", h.style.opacity = "0";
|
|
1443
|
+
const p = h.getBoundingClientRect();
|
|
1444
|
+
h.style.visibility = I, h.style.position = S, h.style.opacity = W;
|
|
1445
|
+
const B = N.bottom - c.bottom - 8, O = c.top - N.top - 8, T = N.right - c.left - 8, q = c.right - N.left - 8;
|
|
1446
|
+
let E = n;
|
|
1447
|
+
if (n === "auto") {
|
|
1448
|
+
const x = [
|
|
1449
|
+
{
|
|
1450
|
+
name: "bottom-start",
|
|
1451
|
+
fits: B >= p.height && T >= p.width,
|
|
1452
|
+
spaceUsed: B,
|
|
1453
|
+
priority: 1
|
|
1454
|
+
// Prefer bottom-start as default
|
|
1455
|
+
},
|
|
1456
|
+
{
|
|
1457
|
+
name: "bottom-end",
|
|
1458
|
+
fits: B >= p.height && q >= p.width,
|
|
1459
|
+
spaceUsed: B,
|
|
1460
|
+
priority: 2
|
|
1461
|
+
},
|
|
1462
|
+
{
|
|
1463
|
+
name: "top-start",
|
|
1464
|
+
fits: O >= p.height && T >= p.width,
|
|
1465
|
+
spaceUsed: O,
|
|
1466
|
+
priority: 3
|
|
1467
|
+
},
|
|
1468
|
+
{
|
|
1469
|
+
name: "top-end",
|
|
1470
|
+
fits: O >= p.height && q >= p.width,
|
|
1471
|
+
spaceUsed: O,
|
|
1472
|
+
priority: 4
|
|
1473
|
+
}
|
|
1474
|
+
].filter((V) => V.fits);
|
|
1475
|
+
x.length > 0 ? E = x.sort(
|
|
1476
|
+
(V, ae) => V.priority - ae.priority
|
|
1477
|
+
)[0].name : B >= O ? E = T >= q ? "bottom-start" : "bottom-end" : E = T >= q ? "top-start" : "top-end";
|
|
1478
|
+
}
|
|
1479
|
+
const b = {};
|
|
1480
|
+
if (s)
|
|
1481
|
+
switch (b.position = "fixed", E) {
|
|
1482
|
+
case "bottom-start":
|
|
1483
|
+
b.top = c.bottom + 4, b.left = c.left;
|
|
1484
|
+
break;
|
|
1485
|
+
case "bottom-end":
|
|
1486
|
+
b.top = c.bottom + 4, b.right = window.innerWidth - c.right;
|
|
1487
|
+
break;
|
|
1488
|
+
case "top-start":
|
|
1489
|
+
b.bottom = window.innerHeight - c.top + 4, b.left = c.left;
|
|
1490
|
+
break;
|
|
1491
|
+
case "top-end":
|
|
1492
|
+
b.bottom = window.innerHeight - c.top + 4, b.right = window.innerWidth - c.right;
|
|
1493
|
+
break;
|
|
1494
|
+
}
|
|
1495
|
+
else
|
|
1496
|
+
switch (b.position = "absolute", E) {
|
|
1497
|
+
case "bottom-start":
|
|
1498
|
+
b.top = c.height + 4, b.left = 0;
|
|
1499
|
+
break;
|
|
1500
|
+
case "bottom-end":
|
|
1501
|
+
b.top = c.height + 4, b.right = 0;
|
|
1502
|
+
break;
|
|
1503
|
+
case "top-start":
|
|
1504
|
+
b.bottom = c.height + 4, b.left = 0;
|
|
1505
|
+
break;
|
|
1506
|
+
case "top-end":
|
|
1507
|
+
b.bottom = c.height + 4, b.right = 0;
|
|
1508
|
+
break;
|
|
1509
|
+
}
|
|
1510
|
+
if (s) {
|
|
1511
|
+
const k = {
|
|
1512
|
+
top: E.startsWith("bottom") ? c.bottom + 4 : c.top - p.height - 4,
|
|
1513
|
+
left: E.endsWith("start") ? c.left : c.right - p.width,
|
|
1514
|
+
width: p.width,
|
|
1515
|
+
height: p.height
|
|
1516
|
+
};
|
|
1517
|
+
if (k.left < N.left + 8) {
|
|
1518
|
+
const x = N.left + 8 - k.left;
|
|
1519
|
+
E.endsWith("start") ? b.left = (b.left || 0) + x : b.right = (b.right || 0) - x;
|
|
1520
|
+
} else if (k.left + k.width > N.right - 8) {
|
|
1521
|
+
const x = k.left + k.width - (N.right - 8);
|
|
1522
|
+
E.endsWith("start") ? b.left = (b.left || 0) - x : b.right = (b.right || 0) + x;
|
|
1523
|
+
}
|
|
1524
|
+
if (E.startsWith("bottom")) {
|
|
1525
|
+
const x = Math.max(
|
|
1526
|
+
50,
|
|
1527
|
+
N.bottom - c.bottom - 16
|
|
1528
|
+
);
|
|
1529
|
+
p.height > x && (b.maxHeight = x);
|
|
1530
|
+
} else {
|
|
1531
|
+
const x = Math.max(
|
|
1532
|
+
50,
|
|
1533
|
+
c.top - N.top - 16
|
|
1534
|
+
);
|
|
1535
|
+
p.height > x && (b.maxHeight = x);
|
|
1536
|
+
}
|
|
1537
|
+
} else {
|
|
1538
|
+
const k = {
|
|
1539
|
+
top: E.startsWith("bottom") ? c.height + 4 : -p.height - 4,
|
|
1540
|
+
left: E.endsWith("start") ? 0 : -p.width,
|
|
1541
|
+
width: p.width,
|
|
1542
|
+
height: p.height
|
|
1543
|
+
}, x = {
|
|
1544
|
+
left: c.left,
|
|
1545
|
+
right: c.right,
|
|
1546
|
+
top: c.top,
|
|
1547
|
+
bottom: c.bottom
|
|
1548
|
+
};
|
|
1549
|
+
if (x.left + k.left < 8) {
|
|
1550
|
+
const V = 8 - (x.left + k.left);
|
|
1551
|
+
E.endsWith("start") ? b.left = (b.left || 0) + V : b.right = (b.right || 0) - V;
|
|
1552
|
+
} else if (x.left + k.left + k.width > v - 8) {
|
|
1553
|
+
const V = x.left + k.left + k.width - (v - 8);
|
|
1554
|
+
E.endsWith("start") ? b.left = (b.left || 0) - V : b.right = (b.right || 0) + V;
|
|
1555
|
+
}
|
|
1556
|
+
}
|
|
1557
|
+
b.isReady = !0, l(b);
|
|
1558
|
+
}, [e, n, t, i, s]);
|
|
1559
|
+
return A(() => {
|
|
1560
|
+
d();
|
|
1561
|
+
}, [d]), A(() => {
|
|
1562
|
+
if (!e || !t.current) return;
|
|
1563
|
+
const g = t.current, h = D(g);
|
|
1564
|
+
let m = !1;
|
|
1565
|
+
const c = () => {
|
|
1566
|
+
m || (requestAnimationFrame(() => {
|
|
1567
|
+
d(), m = !1;
|
|
1568
|
+
}), m = !0);
|
|
1569
|
+
};
|
|
1570
|
+
return h.forEach((v) => {
|
|
1571
|
+
v === document.documentElement ? (window.addEventListener("scroll", c, { passive: !0 }), window.addEventListener("resize", c, { passive: !0 })) : v.addEventListener("scroll", c, { passive: !0 });
|
|
1572
|
+
}), () => {
|
|
1573
|
+
h.forEach((v) => {
|
|
1574
|
+
v === document.documentElement ? (window.removeEventListener("scroll", c), window.removeEventListener("resize", c)) : v.removeEventListener("scroll", c);
|
|
1575
|
+
});
|
|
1576
|
+
};
|
|
1577
|
+
}, [e, d, t]), o;
|
|
1578
|
+
}
|
|
1579
|
+
const ie = P(void 0), ct = ie.Provider, dt = () => {
|
|
1580
|
+
const e = F(ie);
|
|
1581
|
+
if (!e)
|
|
1582
|
+
throw new Error("useMenuProvider must be used within a MenuProvider");
|
|
1583
|
+
return e;
|
|
1584
|
+
}, gt = f(
|
|
1585
|
+
({ children: e }, t) => /* @__PURE__ */ r.jsx("ul", { ref: t, className: "flex flex-col gap-1", children: e })
|
|
1586
|
+
), ht = f(
|
|
1587
|
+
({ children: e, disabled: t, onClick: i, active: n, ...s }, o) => {
|
|
1588
|
+
const { preserve: l, onClose: d } = dt(), g = (h) => {
|
|
1589
|
+
i?.(h), l || d();
|
|
1590
|
+
};
|
|
1591
|
+
return /* @__PURE__ */ r.jsx("li", { ref: o, ...s, children: /* @__PURE__ */ r.jsxs(
|
|
1592
|
+
re,
|
|
1593
|
+
{
|
|
1594
|
+
variant: "ghost",
|
|
1595
|
+
className: u("justify-start w-full gap-2"),
|
|
1596
|
+
disabled: t,
|
|
1597
|
+
onClick: g,
|
|
1598
|
+
children: [
|
|
1599
|
+
e,
|
|
1600
|
+
n && /* @__PURE__ */ r.jsx(
|
|
1601
|
+
R,
|
|
1602
|
+
{
|
|
1603
|
+
as: he,
|
|
1604
|
+
color: "inherit",
|
|
1605
|
+
className: "ml-auto",
|
|
1606
|
+
size: "sm"
|
|
1607
|
+
}
|
|
1608
|
+
)
|
|
1609
|
+
]
|
|
1610
|
+
}
|
|
1611
|
+
) });
|
|
1612
|
+
}
|
|
1613
|
+
), ut = ({
|
|
1614
|
+
isOpen: e,
|
|
1615
|
+
onOutsideClick: t,
|
|
1616
|
+
size: i = "md",
|
|
1617
|
+
content: n,
|
|
1618
|
+
children: s,
|
|
1619
|
+
placement: o = "auto",
|
|
1620
|
+
container: l,
|
|
1621
|
+
preserve: d
|
|
1622
|
+
}) => {
|
|
1623
|
+
const g = _(null), h = _(null), m = le();
|
|
1624
|
+
ot(e, h, g, t);
|
|
1625
|
+
const c = lt(
|
|
1626
|
+
e,
|
|
1627
|
+
g,
|
|
1628
|
+
h,
|
|
1629
|
+
o,
|
|
1630
|
+
l || null
|
|
1631
|
+
), v = {
|
|
1632
|
+
...c,
|
|
1633
|
+
position: c.position || "absolute",
|
|
1634
|
+
overflowY: c.maxHeight ? "auto" : void 0,
|
|
1635
|
+
overflowX: c.maxWidth ? "auto" : void 0
|
|
1636
|
+
}, y = e && c.isReady, j = /* @__PURE__ */ r.jsx(
|
|
1637
|
+
"div",
|
|
1638
|
+
{
|
|
1639
|
+
id: m,
|
|
1640
|
+
ref: h,
|
|
1641
|
+
className: u(Y({ size: i, open: y })),
|
|
1642
|
+
style: v,
|
|
1643
|
+
role: "menu",
|
|
1644
|
+
"aria-hidden": !y,
|
|
1645
|
+
children: n
|
|
1646
|
+
}
|
|
1647
|
+
);
|
|
1648
|
+
return /* @__PURE__ */ r.jsx(
|
|
1649
|
+
ct,
|
|
1650
|
+
{
|
|
1651
|
+
value: { onClose: t, preserve: !!d },
|
|
1652
|
+
children: /* @__PURE__ */ r.jsxs("div", { className: "relative w-fit", children: [
|
|
1653
|
+
ce(s, {
|
|
1654
|
+
// @ts-expect-error: ref is valid for button or forwardRef components
|
|
1655
|
+
ref: g,
|
|
1656
|
+
"aria-haspopup": "menu",
|
|
1657
|
+
"aria-expanded": e,
|
|
1658
|
+
"aria-controls": m
|
|
1659
|
+
}),
|
|
1660
|
+
e && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
1661
|
+
!c.isReady && /* @__PURE__ */ r.jsx(
|
|
1662
|
+
"div",
|
|
1663
|
+
{
|
|
1664
|
+
ref: h,
|
|
1665
|
+
className: u(Y({ size: i, open: !1 })),
|
|
1666
|
+
style: {
|
|
1667
|
+
position: "absolute",
|
|
1668
|
+
visibility: "hidden",
|
|
1669
|
+
opacity: 0,
|
|
1670
|
+
pointerEvents: "none"
|
|
1671
|
+
},
|
|
1672
|
+
role: "menu",
|
|
1673
|
+
"aria-hidden": !0,
|
|
1674
|
+
children: n
|
|
1675
|
+
}
|
|
1676
|
+
),
|
|
1677
|
+
c.isReady && /* @__PURE__ */ r.jsx(r.Fragment, { children: c.position === "fixed" ? /* @__PURE__ */ r.jsx(nt, { children: j }) : j })
|
|
1678
|
+
] })
|
|
1679
|
+
] })
|
|
1680
|
+
}
|
|
1681
|
+
);
|
|
1682
|
+
}, M = Object.assign(ut, {
|
|
1683
|
+
Content: gt,
|
|
1684
|
+
Item: ht
|
|
1685
|
+
}), ft = f(
|
|
1686
|
+
(e, t) => {
|
|
1687
|
+
const {
|
|
1688
|
+
children: i,
|
|
1689
|
+
onOpenChange: n,
|
|
1690
|
+
onClick: s,
|
|
1691
|
+
placement: o,
|
|
1692
|
+
container: l,
|
|
1693
|
+
preserve: d,
|
|
1694
|
+
label: g,
|
|
1695
|
+
...h
|
|
1696
|
+
} = e ?? {}, [m, c] = L(!1);
|
|
1697
|
+
A(() => {
|
|
1698
|
+
n?.(m);
|
|
1699
|
+
}, [m, n]);
|
|
1700
|
+
const v = () => {
|
|
1701
|
+
c(!1);
|
|
1702
|
+
}, y = (j) => {
|
|
1703
|
+
c((C) => !C), s?.(j);
|
|
1704
|
+
};
|
|
1705
|
+
return /* @__PURE__ */ r.jsx(
|
|
1706
|
+
M,
|
|
1707
|
+
{
|
|
1708
|
+
isOpen: m,
|
|
1709
|
+
onOutsideClick: v,
|
|
1710
|
+
placement: o,
|
|
1711
|
+
container: l,
|
|
1712
|
+
preserve: d,
|
|
1713
|
+
content: /* @__PURE__ */ r.jsx(M.Content, { children: i }),
|
|
1714
|
+
children: /* @__PURE__ */ r.jsx(re, { ref: t, onClick: y, ...h, children: g })
|
|
1715
|
+
}
|
|
1716
|
+
);
|
|
1717
|
+
}
|
|
1718
|
+
), er = Object.assign(ft, {
|
|
1719
|
+
Item: M.Item
|
|
1720
|
+
});
|
|
1721
|
+
function bt(e = "primary") {
|
|
1722
|
+
const t = e.split("-");
|
|
1723
|
+
if (t.length === 1)
|
|
1724
|
+
switch (t[0]) {
|
|
1725
|
+
case "ghost":
|
|
1726
|
+
case "neutral":
|
|
1727
|
+
case "outline":
|
|
1728
|
+
return "ghost";
|
|
1729
|
+
default:
|
|
1730
|
+
return "white";
|
|
1731
|
+
}
|
|
1732
|
+
if (t?.[1] === "outline") return "inherit";
|
|
1733
|
+
switch (t[0]) {
|
|
1734
|
+
case "primary":
|
|
1735
|
+
return "primary";
|
|
1736
|
+
case "secondary":
|
|
1737
|
+
return "secondary";
|
|
1738
|
+
case "tertiary":
|
|
1739
|
+
return "tertiary";
|
|
1740
|
+
case "ghost":
|
|
1741
|
+
return "ghost";
|
|
1742
|
+
case "neutral":
|
|
1743
|
+
return "ghost";
|
|
1744
|
+
case "success":
|
|
1745
|
+
return "success";
|
|
1746
|
+
case "info":
|
|
1747
|
+
return "info";
|
|
1748
|
+
case "warning":
|
|
1749
|
+
return "warning";
|
|
1750
|
+
case "danger":
|
|
1751
|
+
return "danger";
|
|
1752
|
+
default:
|
|
1753
|
+
return "neutral";
|
|
1754
|
+
}
|
|
1755
|
+
}
|
|
1756
|
+
const mt = w(
|
|
1757
|
+
"inline-flex items-center justify-center font-medium transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none active:scale-[0.98] select-none cursor-pointer",
|
|
1758
|
+
{
|
|
1759
|
+
variants: {
|
|
1760
|
+
variant: {
|
|
1761
|
+
primary: "bg-primary text-white hover:bg-primary/90 focus-visible:ring-primary-light focus-visible:ring-offset-white shadow-sm hover:shadow-md",
|
|
1762
|
+
secondary: "bg-secondary text-white hover:bg-secondary/90 focus-visible:ring-secondary-light focus-visible:ring-offset-white shadow-sm hover:shadow-md",
|
|
1763
|
+
tertiary: "bg-tertiary text-white hover:bg-tertiary/90 focus-visible:ring-tertiary-light focus-visible:ring-offset-white shadow-sm hover:shadow-md",
|
|
1764
|
+
ghost: "bg-white text-foreground hover:bg-ghost-soft focus-visible:ring-ghost-light focus-visible:ring-offset-white",
|
|
1765
|
+
neutral: "bg-neutral text-foreground border border-border hover:bg-neutral/80 focus-visible:ring-foreground-light focus-visible:ring-offset-white shadow-sm",
|
|
1766
|
+
"primary-outline": "border border-border text-primary bg-white hover:bg-primary hover:text-white focus-visible:ring-primary-light focus-visible:ring-offset-white transition-all",
|
|
1767
|
+
"secondary-outline": "border border-border text-secondary bg-white hover:bg-secondary hover:text-white focus-visible:ring-secondary-light focus-visible:ring-offset-white transition-all",
|
|
1768
|
+
"tertiary-outline": "border border-border text-tertiary bg-white hover:bg-tertiary hover:text-white focus-visible:ring-tertiary-light focus-visible:ring-offset-white transition-all",
|
|
1769
|
+
"ghost-outline": "border border-border text-ghost bg-white hover:bg-ghost hover:text-white focus-visible:ring-ghost-light focus-visible:ring-offset-white transition-all",
|
|
1770
|
+
"neutral-outline": "border border-border text-foreground bg-white hover:bg-neutral hover:text-foreground focus-visible:ring-foreground-light focus-visible:ring-offset-white transition-all",
|
|
1771
|
+
"primary-ghost": "text-primary bg-white hover:bg-primary/20 focus-visible:ring-primary focus-visible:ring-offset-white",
|
|
1772
|
+
"secondary-ghost": "text-secondary bg-white hover:bg-secondary/20 focus-visible:ring-secondary focus-visible:ring-offset-white",
|
|
1773
|
+
"tertiary-ghost": "text-tertiary bg-white hover:bg-tertiary/20 focus-visible:ring-tertiary focus-visible:ring-offset-white",
|
|
1774
|
+
"neutral-ghost": "text-foreground bg-white hover:bg-neutral/50 focus-visible:ring-foreground focus-visible:ring-offset-white",
|
|
1775
|
+
success: "bg-success text-white hover:bg-success/90 focus-visible:ring-success-light focus-visible:ring-offset-white shadow-sm hover:shadow-md",
|
|
1776
|
+
"success-outline": "border border-border text-success bg-white hover:bg-success hover:text-white focus-visible:ring-success-light focus-visible:ring-offset-white transition-all",
|
|
1777
|
+
"success-ghost": "text-success bg-white hover:bg-success/20 focus-visible:ring-success-light focus-visible:ring-offset-white",
|
|
1778
|
+
info: "bg-info text-white hover:bg-info/90 focus-visible:ring-info-light focus-visible:ring-offset-white shadow-sm hover:shadow-md",
|
|
1779
|
+
"info-outline": "border border-border text-info bg-white hover:bg-info hover:text-white focus-visible:ring-info-light focus-visible:ring-offset-white transition-all",
|
|
1780
|
+
"info-ghost": "text-info bg-white hover:bg-info/20 focus-visible:ring-info-light focus-visible:ring-offset-white",
|
|
1781
|
+
warning: "bg-warning text-white hover:bg-warning/90 focus-visible:ring-warning-light focus-visible:ring-offset-white shadow-sm hover:shadow-md",
|
|
1782
|
+
"warning-outline": "border border-border text-warning bg-white hover:bg-warning hover:text-white focus-visible:ring-warning-light focus-visible:ring-offset-white transition-all",
|
|
1783
|
+
"warning-ghost": "text-warning bg-white hover:bg-warning/20 focus-visible:ring-warning-light focus-visible:ring-offset-white",
|
|
1784
|
+
danger: "bg-danger text-white hover:bg-danger/90 focus-visible:ring-danger-light focus-visible:ring-offset-white shadow-sm hover:shadow-md",
|
|
1785
|
+
"danger-outline": "border border-border text-danger bg-white hover:bg-danger hover:text-white focus-visible:ring-danger-light focus-visible:ring-offset-white transition-all",
|
|
1786
|
+
"danger-ghost": "text-danger bg-white hover:bg-danger/20 focus-visible:ring-danger-light focus-visible:ring-offset-white",
|
|
1787
|
+
outline: "border border-border text-foreground bg-white hover:bg-accent-soft focus-visible:ring-accent-soft focus-visible:ring-offset-white transition-all",
|
|
1788
|
+
destructive: "bg-danger text-white hover:bg-danger/90 focus-visible:ring-danger-soft focus-visible:ring-offset-white shadow-sm hover:shadow-md"
|
|
1789
|
+
},
|
|
1790
|
+
size: {
|
|
1791
|
+
xs: "h-6 w-6",
|
|
1792
|
+
sm: "h-7 w-7",
|
|
1793
|
+
md: "h-9 w-9",
|
|
1794
|
+
lg: "h-10 w-10",
|
|
1795
|
+
xl: "h-12 w-12"
|
|
1796
|
+
},
|
|
1797
|
+
shape: {
|
|
1798
|
+
rounded: "rounded-md",
|
|
1799
|
+
square: "rounded-sm",
|
|
1800
|
+
circle: "rounded-full"
|
|
1801
|
+
}
|
|
1802
|
+
},
|
|
1803
|
+
defaultVariants: {
|
|
1804
|
+
variant: "primary",
|
|
1805
|
+
size: "md",
|
|
1806
|
+
shape: "rounded"
|
|
1807
|
+
}
|
|
1808
|
+
}
|
|
1809
|
+
), wt = H.forwardRef(
|
|
1810
|
+
function({
|
|
1811
|
+
className: t,
|
|
1812
|
+
variant: i = "primary",
|
|
1813
|
+
size: n = "md",
|
|
1814
|
+
shape: s = "rounded",
|
|
1815
|
+
disabled: o = !1,
|
|
1816
|
+
as: l,
|
|
1817
|
+
"aria-label": d,
|
|
1818
|
+
...g
|
|
1819
|
+
}, h) {
|
|
1820
|
+
return /* @__PURE__ */ r.jsx(
|
|
1821
|
+
"button",
|
|
1822
|
+
{
|
|
1823
|
+
ref: h,
|
|
1824
|
+
type: "button",
|
|
1825
|
+
className: u(
|
|
1826
|
+
mt({
|
|
1827
|
+
variant: i,
|
|
1828
|
+
size: n,
|
|
1829
|
+
shape: s
|
|
1830
|
+
}),
|
|
1831
|
+
t
|
|
1832
|
+
),
|
|
1833
|
+
disabled: o,
|
|
1834
|
+
"aria-disabled": o,
|
|
1835
|
+
"aria-label": d,
|
|
1836
|
+
inert: o ? !0 : void 0,
|
|
1837
|
+
...g,
|
|
1838
|
+
children: /* @__PURE__ */ r.jsx(
|
|
1839
|
+
R,
|
|
1840
|
+
{
|
|
1841
|
+
as: l,
|
|
1842
|
+
size: "sm",
|
|
1843
|
+
color: bt(i)
|
|
1844
|
+
}
|
|
1845
|
+
)
|
|
1846
|
+
}
|
|
1847
|
+
);
|
|
1848
|
+
}
|
|
1849
|
+
), vt = f(
|
|
1850
|
+
(e, t) => {
|
|
1851
|
+
const {
|
|
1852
|
+
as: i = ue,
|
|
1853
|
+
children: n,
|
|
1854
|
+
onOpenChange: s,
|
|
1855
|
+
onClick: o,
|
|
1856
|
+
placement: l,
|
|
1857
|
+
container: d,
|
|
1858
|
+
preserve: g,
|
|
1859
|
+
...h
|
|
1860
|
+
} = e ?? {}, [m, c] = L(!1);
|
|
1861
|
+
A(() => {
|
|
1862
|
+
s?.(m);
|
|
1863
|
+
}, [m, s]);
|
|
1864
|
+
const v = () => {
|
|
1865
|
+
c(!1);
|
|
1866
|
+
}, y = (j) => {
|
|
1867
|
+
c((C) => !C), o?.(j);
|
|
1868
|
+
};
|
|
1869
|
+
return /* @__PURE__ */ r.jsx(
|
|
1870
|
+
M,
|
|
1871
|
+
{
|
|
1872
|
+
isOpen: m,
|
|
1873
|
+
onOutsideClick: v,
|
|
1874
|
+
placement: l,
|
|
1875
|
+
container: d,
|
|
1876
|
+
preserve: g,
|
|
1877
|
+
content: /* @__PURE__ */ r.jsx(M.Content, { children: n }),
|
|
1878
|
+
children: /* @__PURE__ */ r.jsx(wt, { ref: t, as: i, onClick: y, ...h })
|
|
1879
|
+
}
|
|
1880
|
+
);
|
|
1881
|
+
}
|
|
1882
|
+
), tr = Object.assign(vt, {
|
|
1883
|
+
Item: M.Item
|
|
1884
|
+
}), xt = w(
|
|
1885
|
+
"flex justify-between transition-colors duration-200 w-full",
|
|
1886
|
+
{
|
|
1887
|
+
variants: {
|
|
1888
|
+
size: {
|
|
1889
|
+
none: "p-0",
|
|
1890
|
+
xs: "p-2 sm:p-2",
|
|
1891
|
+
sm: "p-2 sm:p-3",
|
|
1892
|
+
md: "p-3 sm:p-4",
|
|
1893
|
+
lg: "p-4 sm:p-6",
|
|
1894
|
+
xl: "p-6 sm:p-8"
|
|
1895
|
+
},
|
|
1896
|
+
shape: {
|
|
1897
|
+
rounded: "rounded-lg",
|
|
1898
|
+
square: "rounded-none"
|
|
1899
|
+
},
|
|
1900
|
+
bordered: {
|
|
1901
|
+
true: "border border-border",
|
|
1902
|
+
false: ""
|
|
1903
|
+
},
|
|
1904
|
+
as: {
|
|
1905
|
+
button: "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-light hover:bg-gray-50 cursor-pointer",
|
|
1906
|
+
div: ""
|
|
1907
|
+
}
|
|
1908
|
+
},
|
|
1909
|
+
defaultVariants: {
|
|
1910
|
+
size: "md",
|
|
1911
|
+
shape: "rounded",
|
|
1912
|
+
bordered: !1,
|
|
1913
|
+
as: "button"
|
|
1914
|
+
}
|
|
1915
|
+
}
|
|
1916
|
+
), pt = f(
|
|
1917
|
+
({ children: e }, t) => /* @__PURE__ */ r.jsx(
|
|
1918
|
+
"ul",
|
|
1919
|
+
{
|
|
1920
|
+
ref: t,
|
|
1921
|
+
className: "flex flex-wrap items-center min-w-0 overflow-hidden w-full gap-x-0",
|
|
1922
|
+
children: e
|
|
1923
|
+
}
|
|
1924
|
+
)
|
|
1925
|
+
), yt = f(
|
|
1926
|
+
({ children: e }, t) => /* @__PURE__ */ r.jsx(
|
|
1927
|
+
"li",
|
|
1928
|
+
{
|
|
1929
|
+
ref: t,
|
|
1930
|
+
className: "flex items-center min-w-0 flex-shrink-0 after:content-[''] after:inline-block after:mx-1.5 @sm/card:after:mx-2 after:w-1 after:h-1 after:rounded-full after:bg-ghost last:after:hidden after:flex-shrink-0",
|
|
1931
|
+
children: /* @__PURE__ */ r.jsx(z, { as: "span", fontSize: "sm", color: "gray", ellipsis: !0, clamp: 1, children: e })
|
|
1932
|
+
}
|
|
1933
|
+
)
|
|
1934
|
+
), jt = f(
|
|
1935
|
+
({
|
|
1936
|
+
size: e = "md",
|
|
1937
|
+
shape: t = "rounded",
|
|
1938
|
+
avatar: i,
|
|
1939
|
+
title: n,
|
|
1940
|
+
subtitle: s,
|
|
1941
|
+
badge: o,
|
|
1942
|
+
supplementaryInfo: l,
|
|
1943
|
+
bordered: d = !1,
|
|
1944
|
+
as: g = "button",
|
|
1945
|
+
className: h,
|
|
1946
|
+
...m
|
|
1947
|
+
}, c) => /* @__PURE__ */ r.jsx(
|
|
1948
|
+
g,
|
|
1949
|
+
{
|
|
1950
|
+
ref: c,
|
|
1951
|
+
className: u(
|
|
1952
|
+
xt({ size: e, shape: t, bordered: d, as: g }),
|
|
1953
|
+
h,
|
|
1954
|
+
"@container/card"
|
|
1955
|
+
),
|
|
1956
|
+
...m,
|
|
1957
|
+
children: /* @__PURE__ */ r.jsxs("div", { className: "flex items-start gap-3 @sm/card:gap-4 w-full", children: [
|
|
1958
|
+
i && /* @__PURE__ */ r.jsx("div", { className: "flex-shrink-0", children: i }),
|
|
1959
|
+
/* @__PURE__ */ r.jsxs("div", { className: "w-full min-w-0", children: [
|
|
1960
|
+
/* @__PURE__ */ r.jsx("div", { className: "mb-2", children: /* @__PURE__ */ r.jsx("div", { className: "flex items-start justify-between gap-2", children: /* @__PURE__ */ r.jsxs("div", { className: "flex-1 min-w-0", children: [
|
|
1961
|
+
/* @__PURE__ */ r.jsx(
|
|
1962
|
+
z,
|
|
1963
|
+
{
|
|
1964
|
+
as: "h3",
|
|
1965
|
+
fontSize: "base",
|
|
1966
|
+
fontWeight: "semibold",
|
|
1967
|
+
className: "break-words leading-tight",
|
|
1968
|
+
children: n
|
|
1969
|
+
}
|
|
1970
|
+
),
|
|
1971
|
+
s && /* @__PURE__ */ r.jsx("div", { className: "mt-1", children: typeof s == "string" ? /* @__PURE__ */ r.jsx(z, { as: "p", fontSize: "sm", color: "gray", children: s }) : /* @__PURE__ */ r.jsx("div", { className: "min-w-0 overflow-hidden", children: s }) })
|
|
1972
|
+
] }) }) }),
|
|
1973
|
+
/* @__PURE__ */ r.jsxs("div", { className: "flex flex-col gap-2 @sm/card:flex-row @sm/card:justify-between @sm/card:items-center", children: [
|
|
1974
|
+
o && /* @__PURE__ */ r.jsx("div", { className: "order-1 @sm/card:order-none overflow-hidden", children: o }),
|
|
1975
|
+
l && /* @__PURE__ */ r.jsx("div", { className: "flex-shrink-0 order-2 @sm/card:order-none @sm/card:ml-auto", children: typeof l == "string" ? /* @__PURE__ */ r.jsx(
|
|
1976
|
+
z,
|
|
1977
|
+
{
|
|
1978
|
+
as: "p",
|
|
1979
|
+
fontSize: "sm",
|
|
1980
|
+
color: "gray",
|
|
1981
|
+
className: "truncate",
|
|
1982
|
+
align: "right",
|
|
1983
|
+
children: l
|
|
1984
|
+
}
|
|
1985
|
+
) : /* @__PURE__ */ r.jsx("div", { className: "overflow-hidden", children: l }) })
|
|
1986
|
+
] })
|
|
1987
|
+
] })
|
|
1988
|
+
] })
|
|
1989
|
+
}
|
|
1990
|
+
)
|
|
1991
|
+
), rr = Object.assign(jt, {
|
|
1992
|
+
List: pt,
|
|
1993
|
+
ListItem: yt
|
|
1994
|
+
}), kt = w(
|
|
1995
|
+
"inline-flex items-center gap-1.5 rounded-full font-medium transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none select-none cursor-pointer text-sm leading-none",
|
|
1996
|
+
{
|
|
1997
|
+
variants: {
|
|
1998
|
+
variant: {
|
|
1999
|
+
// Core variants using Versaur color system
|
|
2000
|
+
primary: "bg-primary-light text-primary hover:bg-primary-soft focus-visible:ring-primary-light focus-visible:ring-offset-white",
|
|
2001
|
+
secondary: "bg-secondary-light text-secondary hover:bg-secondary-soft focus-visible:ring-secondary-light focus-visible:ring-offset-white",
|
|
2002
|
+
tertiary: "bg-tertiary-light text-tertiary hover:bg-tertiary-soft focus-visible:ring-tertiary-light focus-visible:ring-offset-white",
|
|
2003
|
+
ghost: "bg-white text-foreground hover:bg-ghost-soft focus-visible:ring-ghost-light focus-visible:ring-offset-white",
|
|
2004
|
+
neutral: "bg-neutral text-foreground hover:bg-neutral/80 focus-visible:ring-foreground-light focus-visible:ring-offset-white",
|
|
2005
|
+
// Outline variants
|
|
2006
|
+
"primary-outline": "border border-primary text-primary bg-white hover:bg-primary-soft focus-visible:ring-primary-light focus-visible:ring-offset-white",
|
|
2007
|
+
"secondary-outline": "border border-secondary text-secondary bg-white hover:bg-secondary-soft focus-visible:ring-secondary-light focus-visible:ring-offset-white",
|
|
2008
|
+
"tertiary-outline": "border border-tertiary text-tertiary bg-white hover:bg-tertiary-soft focus-visible:ring-tertiary-light focus-visible:ring-offset-white",
|
|
2009
|
+
"ghost-outline": "border border-ghost text-ghost bg-white hover:bg-ghost-soft focus-visible:ring-ghost-light focus-visible:ring-offset-white",
|
|
2010
|
+
"neutral-outline": "border border-border text-foreground bg-white hover:bg-neutral focus-visible:ring-foreground-light focus-visible:ring-offset-white",
|
|
2011
|
+
// Semantic variants
|
|
2012
|
+
success: "bg-success text-white hover:bg-success/90 focus-visible:ring-success-light focus-visible:ring-offset-white",
|
|
2013
|
+
"success-outline": "border border-success text-success bg-white hover:bg-success-soft focus-visible:ring-success-light focus-visible:ring-offset-white",
|
|
2014
|
+
info: "bg-info text-white hover:bg-info/90 focus-visible:ring-info-light focus-visible:ring-offset-white",
|
|
2015
|
+
"info-outline": "border border-info text-info bg-white hover:bg-info-soft focus-visible:ring-info-light focus-visible:ring-offset-white",
|
|
2016
|
+
warning: "bg-warning text-white hover:bg-warning/90 focus-visible:ring-warning-light focus-visible:ring-offset-white",
|
|
2017
|
+
"warning-outline": "border border-warning text-warning bg-white hover:bg-warning-soft focus-visible:ring-warning-light focus-visible:ring-offset-white",
|
|
2018
|
+
danger: "bg-danger text-white hover:bg-danger/90 focus-visible:ring-danger-light focus-visible:ring-offset-white",
|
|
2019
|
+
"danger-outline": "border border-danger text-danger bg-white hover:bg-danger-soft focus-visible:ring-danger-light focus-visible:ring-offset-white"
|
|
2020
|
+
},
|
|
2021
|
+
size: {
|
|
2022
|
+
sm: "h-7 px-3 text-xs",
|
|
2023
|
+
md: "h-8 px-4 text-sm",
|
|
2024
|
+
lg: "h-9 px-5 text-sm"
|
|
2025
|
+
}
|
|
2026
|
+
},
|
|
2027
|
+
defaultVariants: {
|
|
2028
|
+
variant: "neutral-outline",
|
|
2029
|
+
size: "md"
|
|
2030
|
+
}
|
|
2031
|
+
}
|
|
2032
|
+
), ir = H.forwardRef(
|
|
2033
|
+
function({
|
|
2034
|
+
className: t,
|
|
2035
|
+
variant: i = "neutral-outline",
|
|
2036
|
+
size: n = "md",
|
|
2037
|
+
disabled: s = !1,
|
|
2038
|
+
children: o,
|
|
2039
|
+
...l
|
|
2040
|
+
}, d) {
|
|
2041
|
+
return /* @__PURE__ */ r.jsxs(
|
|
2042
|
+
"button",
|
|
2043
|
+
{
|
|
2044
|
+
ref: d,
|
|
2045
|
+
type: "button",
|
|
2046
|
+
className: u(kt({ variant: i, size: n }), t),
|
|
2047
|
+
disabled: s,
|
|
2048
|
+
"aria-disabled": s,
|
|
2049
|
+
"aria-label": `${o}, removable`,
|
|
2050
|
+
inert: s ? !0 : void 0,
|
|
2051
|
+
...l,
|
|
2052
|
+
children: [
|
|
2053
|
+
/* @__PURE__ */ r.jsx("span", { className: "flex-shrink-0", children: o }),
|
|
2054
|
+
/* @__PURE__ */ r.jsx(R, { as: fe, color: "inherit", size: n === "lg" ? "md" : "sm" })
|
|
2055
|
+
]
|
|
2056
|
+
}
|
|
2057
|
+
);
|
|
2058
|
+
}
|
|
2059
|
+
), Nt = w("h-px w-full bg-border border-0", {
|
|
2060
|
+
variants: {
|
|
2061
|
+
hasMargin: {
|
|
2062
|
+
true: "mb-4",
|
|
2063
|
+
false: ""
|
|
2064
|
+
}
|
|
2065
|
+
},
|
|
2066
|
+
defaultVariants: {
|
|
2067
|
+
hasMargin: !1
|
|
2068
|
+
}
|
|
2069
|
+
}), sr = f(
|
|
2070
|
+
({ hasMargin: e = !1, className: t, ...i }, n) => /* @__PURE__ */ r.jsx(
|
|
2071
|
+
"hr",
|
|
2072
|
+
{
|
|
2073
|
+
ref: n,
|
|
2074
|
+
className: u(Nt({ hasMargin: e }), t),
|
|
2075
|
+
...i
|
|
2076
|
+
}
|
|
2077
|
+
)
|
|
2078
|
+
), Et = w(
|
|
2079
|
+
"flex flex-col items-center justify-center text-center border border-border rounded-lg bg-background",
|
|
2080
|
+
{
|
|
2081
|
+
variants: {
|
|
2082
|
+
spacing: {
|
|
2083
|
+
sm: "py-8 px-4",
|
|
2084
|
+
md: "py-12 px-6",
|
|
2085
|
+
lg: "py-16 px-8"
|
|
2086
|
+
},
|
|
2087
|
+
hasGrayBackground: {
|
|
2088
|
+
true: "bg-neutral-soft",
|
|
2089
|
+
false: ""
|
|
2090
|
+
}
|
|
2091
|
+
},
|
|
2092
|
+
defaultVariants: {
|
|
2093
|
+
spacing: "md",
|
|
2094
|
+
hasGrayBackground: !1
|
|
2095
|
+
}
|
|
2096
|
+
}
|
|
2097
|
+
), Ct = w(
|
|
2098
|
+
"flex flex-row items-center gap-3 mb-2"
|
|
2099
|
+
), nr = H.forwardRef(
|
|
2100
|
+
function({ icon: t, title: i, subtitle: n, action: s, className: o, hasGrayBackground: l, ...d }, g) {
|
|
2101
|
+
return /* @__PURE__ */ r.jsxs(
|
|
2102
|
+
"section",
|
|
2103
|
+
{
|
|
2104
|
+
ref: g,
|
|
2105
|
+
className: u(Et({ hasGrayBackground: l }), o),
|
|
2106
|
+
role: "status",
|
|
2107
|
+
"aria-label": "No results found",
|
|
2108
|
+
...d,
|
|
2109
|
+
children: [
|
|
2110
|
+
/* @__PURE__ */ r.jsxs("header", { className: Ct(), children: [
|
|
2111
|
+
/* @__PURE__ */ r.jsx(R, { as: t, size: "lg", color: "ghost", "aria-hidden": "true" }),
|
|
2112
|
+
/* @__PURE__ */ r.jsx(z, { as: "h2", fontSize: "lg", children: i })
|
|
2113
|
+
] }),
|
|
2114
|
+
n && /* @__PURE__ */ r.jsx(z, { as: "p", align: "center", color: "gray", className: "mb-4", children: n }),
|
|
2115
|
+
s && /* @__PURE__ */ r.jsx("div", { role: "group", "aria-label": "Available actions", children: s })
|
|
2116
|
+
]
|
|
2117
|
+
}
|
|
2118
|
+
);
|
|
2119
|
+
}
|
|
2120
|
+
), se = P(null), zt = se.Provider;
|
|
2121
|
+
function U() {
|
|
2122
|
+
const e = F(se);
|
|
2123
|
+
if (!e)
|
|
2124
|
+
throw new Error("Table compound components must be used within <Table>");
|
|
2125
|
+
return e;
|
|
2126
|
+
}
|
|
2127
|
+
const G = (e) => {
|
|
2128
|
+
if (e < 1 || e > 12)
|
|
2129
|
+
throw new Error("Column span must be between 1 and 12");
|
|
2130
|
+
switch (e) {
|
|
2131
|
+
case 1:
|
|
2132
|
+
return "grid-cols-1";
|
|
2133
|
+
case 2:
|
|
2134
|
+
return "grid-cols-2";
|
|
2135
|
+
case 3:
|
|
2136
|
+
return "grid-cols-3";
|
|
2137
|
+
case 4:
|
|
2138
|
+
return "grid-cols-4";
|
|
2139
|
+
case 5:
|
|
2140
|
+
return "grid-cols-5";
|
|
2141
|
+
case 6:
|
|
2142
|
+
return "grid-cols-6";
|
|
2143
|
+
case 7:
|
|
2144
|
+
return "grid-cols-7";
|
|
2145
|
+
case 8:
|
|
2146
|
+
return "grid-cols-8";
|
|
2147
|
+
case 9:
|
|
2148
|
+
return "grid-cols-9";
|
|
2149
|
+
case 10:
|
|
2150
|
+
return "grid-cols-10";
|
|
2151
|
+
case 11:
|
|
2152
|
+
return "grid-cols-11";
|
|
2153
|
+
case 12:
|
|
2154
|
+
return "grid-cols-12";
|
|
2155
|
+
default:
|
|
2156
|
+
return "grid-cols-2";
|
|
2157
|
+
}
|
|
2158
|
+
}, Vt = (e) => {
|
|
2159
|
+
if (e < 1 || e > 12)
|
|
2160
|
+
throw new Error("Column span must be between 1 and 12");
|
|
2161
|
+
switch (e) {
|
|
2162
|
+
case 1:
|
|
2163
|
+
return "col-span-1";
|
|
2164
|
+
case 2:
|
|
2165
|
+
return "col-span-2";
|
|
2166
|
+
case 3:
|
|
2167
|
+
return "col-span-3";
|
|
2168
|
+
case 4:
|
|
2169
|
+
return "col-span-4";
|
|
2170
|
+
case 5:
|
|
2171
|
+
return "col-span-5";
|
|
2172
|
+
case 6:
|
|
2173
|
+
return "col-span-6";
|
|
2174
|
+
case 7:
|
|
2175
|
+
return "col-span-7";
|
|
2176
|
+
case 8:
|
|
2177
|
+
return "col-span-8";
|
|
2178
|
+
case 9:
|
|
2179
|
+
return "col-span-9";
|
|
2180
|
+
case 10:
|
|
2181
|
+
return "col-span-10";
|
|
2182
|
+
case 11:
|
|
2183
|
+
return "col-span-11";
|
|
2184
|
+
case 12:
|
|
2185
|
+
return "col-span-12";
|
|
2186
|
+
default:
|
|
2187
|
+
return "col-span-2";
|
|
2188
|
+
}
|
|
2189
|
+
}, It = f(
|
|
2190
|
+
({ children: e, className: t, ...i }, n) => {
|
|
2191
|
+
const { columns: s } = U();
|
|
2192
|
+
return /* @__PURE__ */ r.jsx(
|
|
2193
|
+
"div",
|
|
2194
|
+
{
|
|
2195
|
+
role: "rowgroup",
|
|
2196
|
+
className: u("bg-neutral-soft", t),
|
|
2197
|
+
...i,
|
|
2198
|
+
ref: n,
|
|
2199
|
+
children: /* @__PURE__ */ r.jsx(
|
|
2200
|
+
"div",
|
|
2201
|
+
{
|
|
2202
|
+
role: "row",
|
|
2203
|
+
className: u("grid gap-4", G(s)),
|
|
2204
|
+
children: e
|
|
2205
|
+
}
|
|
2206
|
+
)
|
|
2207
|
+
}
|
|
2208
|
+
);
|
|
2209
|
+
}
|
|
2210
|
+
), Lt = f(
|
|
2211
|
+
({ children: e, className: t, ...i }, n) => /* @__PURE__ */ r.jsx("div", { role: "rowgroup", ref: n, className: u(t), ...i, children: e })
|
|
2212
|
+
), At = f(
|
|
2213
|
+
({ children: e, className: t, ...i }, n) => {
|
|
2214
|
+
const { columns: s } = U();
|
|
2215
|
+
return /* @__PURE__ */ r.jsx(
|
|
2216
|
+
"div",
|
|
2217
|
+
{
|
|
2218
|
+
role: "rowgroup",
|
|
2219
|
+
className: u("bg-neutral-soft", t),
|
|
2220
|
+
...i,
|
|
2221
|
+
ref: n,
|
|
2222
|
+
children: /* @__PURE__ */ r.jsx(
|
|
2223
|
+
"div",
|
|
2224
|
+
{
|
|
2225
|
+
role: "row",
|
|
2226
|
+
className: u("grid gap-4", G(s)),
|
|
2227
|
+
children: e
|
|
2228
|
+
}
|
|
2229
|
+
)
|
|
2230
|
+
}
|
|
2231
|
+
);
|
|
2232
|
+
}
|
|
2233
|
+
), Mt = f(
|
|
2234
|
+
({ children: e, className: t, ...i }, n) => {
|
|
2235
|
+
const { columns: s } = U();
|
|
2236
|
+
return /* @__PURE__ */ r.jsx(
|
|
2237
|
+
"div",
|
|
2238
|
+
{
|
|
2239
|
+
role: "row",
|
|
2240
|
+
className: u(
|
|
2241
|
+
"grid gap-4",
|
|
2242
|
+
G(s),
|
|
2243
|
+
"border-b border-border last:border-0",
|
|
2244
|
+
t
|
|
2245
|
+
),
|
|
2246
|
+
ref: n,
|
|
2247
|
+
...i,
|
|
2248
|
+
children: e
|
|
2249
|
+
}
|
|
2250
|
+
);
|
|
2251
|
+
}
|
|
2252
|
+
), ne = f(
|
|
2253
|
+
({ as: e = "td", span: t, align: i = "left", children: n, className: s, ...o }, l) => {
|
|
2254
|
+
const d = e === "th" ? "columnheader" : "cell";
|
|
2255
|
+
let g = "text-left";
|
|
2256
|
+
return i === "center" ? g = "text-center" : i === "right" && (g = "text-right"), /* @__PURE__ */ r.jsx(
|
|
2257
|
+
"div",
|
|
2258
|
+
{
|
|
2259
|
+
ref: l,
|
|
2260
|
+
role: d,
|
|
2261
|
+
className: u(
|
|
2262
|
+
"px-4 py-2",
|
|
2263
|
+
"[&:not(:last-child)]:border-r [&:not(:last-child)]:border-border",
|
|
2264
|
+
Vt(t),
|
|
2265
|
+
g,
|
|
2266
|
+
"truncate overflow-hidden whitespace-nowrap",
|
|
2267
|
+
s
|
|
2268
|
+
),
|
|
2269
|
+
...o,
|
|
2270
|
+
children: n
|
|
2271
|
+
}
|
|
2272
|
+
);
|
|
2273
|
+
}
|
|
2274
|
+
), Rt = f(
|
|
2275
|
+
(e, t) => /* @__PURE__ */ r.jsx(
|
|
2276
|
+
ne,
|
|
2277
|
+
{
|
|
2278
|
+
...e,
|
|
2279
|
+
as: "td",
|
|
2280
|
+
ref: t,
|
|
2281
|
+
className: u(
|
|
2282
|
+
"truncate overflow-hidden whitespace-nowrap",
|
|
2283
|
+
e.className
|
|
2284
|
+
)
|
|
2285
|
+
}
|
|
2286
|
+
)
|
|
2287
|
+
), St = f(
|
|
2288
|
+
(e, t) => /* @__PURE__ */ r.jsx(
|
|
2289
|
+
ne,
|
|
2290
|
+
{
|
|
2291
|
+
...e,
|
|
2292
|
+
as: "th",
|
|
2293
|
+
ref: t,
|
|
2294
|
+
className: u(
|
|
2295
|
+
"truncate overflow-hidden whitespace-nowrap",
|
|
2296
|
+
e.className
|
|
2297
|
+
)
|
|
2298
|
+
}
|
|
2299
|
+
)
|
|
2300
|
+
), Wt = f(
|
|
2301
|
+
({ children: e, className: t, columns: i = 12, ...n }, s) => /* @__PURE__ */ r.jsx(zt, { value: { columns: i }, children: /* @__PURE__ */ r.jsx(
|
|
2302
|
+
"div",
|
|
2303
|
+
{
|
|
2304
|
+
ref: s,
|
|
2305
|
+
role: "table",
|
|
2306
|
+
className: u(
|
|
2307
|
+
// Versaur design system: border, background, shadow, rounded, spacing
|
|
2308
|
+
"w-full overflow-x-auto border border-border bg-background rounded-lg ",
|
|
2309
|
+
"text-foreground",
|
|
2310
|
+
"sm:rounded-xl",
|
|
2311
|
+
"transition-colors",
|
|
2312
|
+
t
|
|
2313
|
+
),
|
|
2314
|
+
...n,
|
|
2315
|
+
children: e
|
|
2316
|
+
}
|
|
2317
|
+
) })
|
|
2318
|
+
), or = Object.assign(Wt, {
|
|
2319
|
+
Header: It,
|
|
2320
|
+
HeaderItem: St,
|
|
2321
|
+
Body: Lt,
|
|
2322
|
+
Footer: At,
|
|
2323
|
+
Row: Mt,
|
|
2324
|
+
RowItem: Rt
|
|
2325
|
+
}), Bt = w(
|
|
2326
|
+
// Base classes
|
|
2327
|
+
"block transition-colors duration-200",
|
|
2328
|
+
{
|
|
2329
|
+
variants: {
|
|
2330
|
+
variant: {
|
|
2331
|
+
white: "bg-white border border-border",
|
|
2332
|
+
neutral: "bg-neutral border border-gray-200",
|
|
2333
|
+
primary: "bg-primary-soft border border-primary",
|
|
2334
|
+
secondary: "bg-secondary-soft border border-secondary",
|
|
2335
|
+
tertiary: "bg-tertiary-soft border border-tertiary",
|
|
2336
|
+
ghost: "bg-transparent border border-ghost",
|
|
2337
|
+
success: "bg-success-soft border border-success",
|
|
2338
|
+
info: "bg-info-soft border border-info",
|
|
2339
|
+
warning: "bg-warning-soft border border-warning",
|
|
2340
|
+
danger: "bg-danger-soft border border-danger"
|
|
2341
|
+
},
|
|
2342
|
+
size: {
|
|
2343
|
+
xs: "p-2",
|
|
2344
|
+
sm: "p-3",
|
|
2345
|
+
md: "p-4",
|
|
2346
|
+
lg: "p-6",
|
|
2347
|
+
xl: "p-8"
|
|
2348
|
+
},
|
|
2349
|
+
shape: {
|
|
2350
|
+
rounded: "rounded-lg",
|
|
2351
|
+
square: "rounded-none"
|
|
2352
|
+
}
|
|
2353
|
+
},
|
|
2354
|
+
defaultVariants: {
|
|
2355
|
+
variant: "white",
|
|
2356
|
+
size: "md",
|
|
2357
|
+
shape: "rounded"
|
|
2358
|
+
}
|
|
2359
|
+
}
|
|
2360
|
+
), ar = f(
|
|
2361
|
+
({ variant: e = "white", size: t = "md", shape: i = "rounded", className: n, ...s }, o) => /* @__PURE__ */ r.jsx(
|
|
2362
|
+
"div",
|
|
2363
|
+
{
|
|
2364
|
+
ref: o,
|
|
2365
|
+
className: u(Bt({ variant: e, size: t, shape: i }), n),
|
|
2366
|
+
...s
|
|
2367
|
+
}
|
|
2368
|
+
)
|
|
2369
|
+
);
|
|
2370
|
+
function Ot({ src: e }) {
|
|
2371
|
+
const [t, i] = L(!1), [n, s] = L(!1), o = _(!1), l = () => {
|
|
2372
|
+
i(!0);
|
|
2373
|
+
}, d = () => {
|
|
2374
|
+
s(!0);
|
|
2375
|
+
};
|
|
2376
|
+
return A(() => {
|
|
2377
|
+
if (!e) return;
|
|
2378
|
+
const g = new Image();
|
|
2379
|
+
return g.src = e, g.onload = () => {
|
|
2380
|
+
o.current || i(!0);
|
|
2381
|
+
}, g.onerror = () => {
|
|
2382
|
+
o.current || s(!0);
|
|
2383
|
+
}, () => {
|
|
2384
|
+
o.current = !0;
|
|
2385
|
+
};
|
|
2386
|
+
}, [e]), {
|
|
2387
|
+
loaded: t,
|
|
2388
|
+
errored: n,
|
|
2389
|
+
handleLoad: l,
|
|
2390
|
+
handleError: d
|
|
2391
|
+
};
|
|
2392
|
+
}
|
|
2393
|
+
const Ht = w("block object-cover", {
|
|
2394
|
+
variants: {
|
|
2395
|
+
position: {
|
|
2396
|
+
cover: "object-cover",
|
|
2397
|
+
contain: "object-contain",
|
|
2398
|
+
center: "object-center",
|
|
2399
|
+
top: "object-top",
|
|
2400
|
+
bottom: "object-bottom",
|
|
2401
|
+
left: "object-left",
|
|
2402
|
+
right: "object-right",
|
|
2403
|
+
none: ""
|
|
2404
|
+
},
|
|
2405
|
+
size: {
|
|
2406
|
+
sm: "w-16 h-16",
|
|
2407
|
+
md: "w-32 h-32",
|
|
2408
|
+
lg: "w-48 h-48",
|
|
2409
|
+
full: "w-full h-full",
|
|
2410
|
+
auto: ""
|
|
2411
|
+
},
|
|
2412
|
+
shape: {
|
|
2413
|
+
rectangle: "rounded",
|
|
2414
|
+
square: "aspect-square rounded",
|
|
2415
|
+
circle: "rounded-full aspect-square"
|
|
2416
|
+
}
|
|
2417
|
+
},
|
|
2418
|
+
defaultVariants: {
|
|
2419
|
+
position: "cover",
|
|
2420
|
+
size: "auto",
|
|
2421
|
+
shape: "rectangle"
|
|
2422
|
+
}
|
|
2423
|
+
}), oe = w(
|
|
2424
|
+
"flex items-center justify-center bg-neutral-soft text-ghost border border-border",
|
|
2425
|
+
{
|
|
2426
|
+
variants: {
|
|
2427
|
+
shape: {
|
|
2428
|
+
rectangle: "rounded",
|
|
2429
|
+
square: "aspect-square rounded",
|
|
2430
|
+
circle: "rounded-full aspect-square"
|
|
2431
|
+
},
|
|
2432
|
+
size: {
|
|
2433
|
+
sm: "w-16 h-16",
|
|
2434
|
+
md: "w-32 h-32",
|
|
2435
|
+
lg: "w-48 h-48",
|
|
2436
|
+
full: "w-full h-full",
|
|
2437
|
+
auto: "w-full h-full"
|
|
2438
|
+
}
|
|
2439
|
+
},
|
|
2440
|
+
defaultVariants: {
|
|
2441
|
+
shape: "rectangle",
|
|
2442
|
+
size: "auto"
|
|
2443
|
+
}
|
|
2444
|
+
}
|
|
2445
|
+
);
|
|
2446
|
+
function Tt({
|
|
2447
|
+
className: e,
|
|
2448
|
+
shape: t,
|
|
2449
|
+
size: i,
|
|
2450
|
+
height: n,
|
|
2451
|
+
width: s
|
|
2452
|
+
}) {
|
|
2453
|
+
return /* @__PURE__ */ r.jsx(
|
|
2454
|
+
we,
|
|
2455
|
+
{
|
|
2456
|
+
className: u(oe({ shape: t, size: i }), e),
|
|
2457
|
+
style: { height: n, width: s }
|
|
2458
|
+
}
|
|
2459
|
+
);
|
|
2460
|
+
}
|
|
2461
|
+
function qt({
|
|
2462
|
+
alt: e,
|
|
2463
|
+
width: t,
|
|
2464
|
+
height: i,
|
|
2465
|
+
className: n,
|
|
2466
|
+
style: s,
|
|
2467
|
+
shape: o,
|
|
2468
|
+
size: l
|
|
2469
|
+
}) {
|
|
2470
|
+
return /* @__PURE__ */ r.jsxs(
|
|
2471
|
+
"div",
|
|
2472
|
+
{
|
|
2473
|
+
className: oe({ shape: o, size: l, className: n }),
|
|
2474
|
+
style: { width: t, height: i, ...s },
|
|
2475
|
+
"aria-label": e,
|
|
2476
|
+
role: "img",
|
|
2477
|
+
children: [
|
|
2478
|
+
/* @__PURE__ */ r.jsx(
|
|
2479
|
+
be,
|
|
2480
|
+
{
|
|
2481
|
+
size: 32,
|
|
2482
|
+
style: { opacity: 0.5, marginRight: 4 },
|
|
2483
|
+
"aria-hidden": "true"
|
|
2484
|
+
}
|
|
2485
|
+
),
|
|
2486
|
+
/* @__PURE__ */ r.jsx("span", { style: { opacity: 0.7 }, children: e })
|
|
2487
|
+
]
|
|
2488
|
+
}
|
|
2489
|
+
);
|
|
2490
|
+
}
|
|
2491
|
+
const $ = f(
|
|
2492
|
+
({
|
|
2493
|
+
src: e,
|
|
2494
|
+
alt: t,
|
|
2495
|
+
onLoad: i,
|
|
2496
|
+
onError: n,
|
|
2497
|
+
width: s,
|
|
2498
|
+
height: o,
|
|
2499
|
+
loading: l = "lazy",
|
|
2500
|
+
position: d = "cover",
|
|
2501
|
+
size: g = "auto",
|
|
2502
|
+
shape: h,
|
|
2503
|
+
className: m,
|
|
2504
|
+
...c
|
|
2505
|
+
}, v) => {
|
|
2506
|
+
const { loaded: y, errored: j, handleLoad: C, handleError: N } = Ot({
|
|
2507
|
+
src: e
|
|
2508
|
+
}), I = typeof s == "number" ? s : Number(s), S = typeof o == "number" ? o : Number(o);
|
|
2509
|
+
return !y && !j ? /* @__PURE__ */ r.jsx(
|
|
2510
|
+
Tt,
|
|
2511
|
+
{
|
|
2512
|
+
shape: h,
|
|
2513
|
+
width: I,
|
|
2514
|
+
height: S
|
|
2515
|
+
}
|
|
2516
|
+
) : j ? /* @__PURE__ */ r.jsx(
|
|
2517
|
+
qt,
|
|
2518
|
+
{
|
|
2519
|
+
shape: h,
|
|
2520
|
+
alt: t,
|
|
2521
|
+
width: I,
|
|
2522
|
+
height: S
|
|
2523
|
+
}
|
|
2524
|
+
) : /* @__PURE__ */ r.jsx(
|
|
2525
|
+
"img",
|
|
2526
|
+
{
|
|
2527
|
+
ref: v,
|
|
2528
|
+
src: e,
|
|
2529
|
+
alt: t,
|
|
2530
|
+
width: I,
|
|
2531
|
+
height: S,
|
|
2532
|
+
loading: l,
|
|
2533
|
+
className: u(
|
|
2534
|
+
Ht({
|
|
2535
|
+
position: d,
|
|
2536
|
+
size: g,
|
|
2537
|
+
shape: h
|
|
2538
|
+
}),
|
|
2539
|
+
m
|
|
2540
|
+
),
|
|
2541
|
+
onLoad: (W) => {
|
|
2542
|
+
C(), i?.(W);
|
|
2543
|
+
},
|
|
2544
|
+
onError: (W) => {
|
|
2545
|
+
N(), n?.(W);
|
|
2546
|
+
},
|
|
2547
|
+
...c
|
|
2548
|
+
}
|
|
2549
|
+
);
|
|
2550
|
+
}
|
|
2551
|
+
), lr = f((e, t) => /* @__PURE__ */ r.jsx($, { ref: t, ...e, shape: "circle" })), cr = f((e, t) => /* @__PURE__ */ r.jsx($, { ref: t, ...e, shape: "square" })), dr = f((e, t) => /* @__PURE__ */ r.jsx($, { ref: t, ...e, shape: "rectangle" }));
|
|
2552
|
+
export {
|
|
2553
|
+
$t as A,
|
|
2554
|
+
Qt as B,
|
|
2555
|
+
rr as C,
|
|
2556
|
+
ir as F,
|
|
2557
|
+
Z as H,
|
|
2558
|
+
R as I,
|
|
2559
|
+
M,
|
|
2560
|
+
nr as N,
|
|
2561
|
+
nt as O,
|
|
2562
|
+
or as T,
|
|
2563
|
+
Xt as a,
|
|
2564
|
+
Yt as b,
|
|
2565
|
+
Dt as c,
|
|
2566
|
+
He as d,
|
|
2567
|
+
Jt as e,
|
|
2568
|
+
Kt as f,
|
|
2569
|
+
Zt as g,
|
|
2570
|
+
re as h,
|
|
2571
|
+
er as i,
|
|
2572
|
+
tr as j,
|
|
2573
|
+
wt as k,
|
|
2574
|
+
sr as l,
|
|
2575
|
+
z as m,
|
|
2576
|
+
ar as n,
|
|
2577
|
+
lr as o,
|
|
2578
|
+
cr as p,
|
|
2579
|
+
dr as q,
|
|
2580
|
+
$ as r
|
|
2581
|
+
};
|