@dimasbaguspm/versaur 0.0.62 → 0.0.63
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 +1 -1
- package/dist/js/{image-rectangle-BwT5taeR.js → image-rectangle-Je73yhJX.js} +302 -311
- package/dist/js/index.js +5 -5
- package/dist/js/layouts/index.js +1 -1
- package/dist/js/navigation/index.js +1 -1
- package/dist/js/overlays/index.js +2 -2
- package/dist/js/primitive/index.js +1 -1
- package/dist/js/{tabs-FDdFo4WV.js → tabs-KrYzaUx1.js} +1 -1
- package/dist/js/{time-picker-input-DMNSwm-p.js → time-picker-input-1T8z4Ffd.js} +1 -1
- package/dist/js/{tooltip-BGJUYNL0.js → tooltip-DAyfV2gr.js} +1 -1
- package/dist/js/{top-bar-ChNgZEQx.js → top-bar-BD0gTsZF.js} +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { j as
|
|
1
|
+
import { j as r } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
2
|
import * as c from "react";
|
|
3
|
-
import _, { createContext as O, useContext as S, forwardRef as
|
|
3
|
+
import _, { createContext as O, useContext as S, forwardRef as f, useState as j, useRef as B, useCallback as A, useEffect as E, useId as re, cloneElement as ne } from "react";
|
|
4
4
|
import { ChevronDown as ae, ChevronRight as se, LoaderCircleIcon as F, CheckIcon as oe, EllipsisVerticalIcon as ie, XIcon as le, ImageOff as ce } from "lucide-react";
|
|
5
|
-
import { c as
|
|
5
|
+
import { c as g, a as u } from "./index-BDtz_hQY.js";
|
|
6
6
|
import { S as de } from "./skeleton-BRwIW26B.js";
|
|
7
7
|
const G = O(
|
|
8
8
|
null
|
|
@@ -13,7 +13,7 @@ const G = O(
|
|
|
13
13
|
"Accordion compound components must be used within Accordion"
|
|
14
14
|
);
|
|
15
15
|
return e;
|
|
16
|
-
}, ue =
|
|
16
|
+
}, ue = g(
|
|
17
17
|
"border-b border-border bg-background overflow-hidden",
|
|
18
18
|
{
|
|
19
19
|
variants: {
|
|
@@ -26,7 +26,7 @@ const G = O(
|
|
|
26
26
|
disabled: !1
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
-
), me =
|
|
29
|
+
), me = g(
|
|
30
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
31
|
{
|
|
32
32
|
variants: {
|
|
@@ -44,7 +44,7 @@ const G = O(
|
|
|
44
44
|
isOpen: !1
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
), he =
|
|
47
|
+
), he = g(
|
|
48
48
|
"overflow-hidden transition-all duration-300",
|
|
49
49
|
{
|
|
50
50
|
variants: {
|
|
@@ -57,7 +57,7 @@ const G = O(
|
|
|
57
57
|
isOpen: !1
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
),
|
|
60
|
+
), fe = g("p-4 pt-0"), ge = g("transition-transform duration-200", {
|
|
61
61
|
variants: {
|
|
62
62
|
isOpen: {
|
|
63
63
|
true: "rotate-180",
|
|
@@ -67,7 +67,7 @@ const G = O(
|
|
|
67
67
|
defaultVariants: {
|
|
68
68
|
isOpen: !1
|
|
69
69
|
}
|
|
70
|
-
}), xe =
|
|
70
|
+
}), xe = g("", {
|
|
71
71
|
variants: {
|
|
72
72
|
color: {
|
|
73
73
|
primary: "text-primary",
|
|
@@ -132,10 +132,10 @@ const G = O(
|
|
|
132
132
|
clamp: "none",
|
|
133
133
|
as: "h1"
|
|
134
134
|
}
|
|
135
|
-
}), L =
|
|
135
|
+
}), L = f(
|
|
136
136
|
({
|
|
137
137
|
as: e = "h3",
|
|
138
|
-
color:
|
|
138
|
+
color: n = "black",
|
|
139
139
|
transform: a = "none",
|
|
140
140
|
decoration: s = "none",
|
|
141
141
|
hasMargin: t = !1,
|
|
@@ -147,13 +147,13 @@ const G = O(
|
|
|
147
147
|
...h
|
|
148
148
|
}, x) => {
|
|
149
149
|
const p = e, b = l ? i === "none" ? "truncate" : "overflow-hidden" : "";
|
|
150
|
-
return /* @__PURE__ */
|
|
150
|
+
return /* @__PURE__ */ r.jsx(
|
|
151
151
|
p,
|
|
152
152
|
{
|
|
153
153
|
ref: x,
|
|
154
154
|
className: u(
|
|
155
155
|
xe({
|
|
156
|
-
color:
|
|
156
|
+
color: n,
|
|
157
157
|
transform: a,
|
|
158
158
|
decoration: s,
|
|
159
159
|
hasMargin: t,
|
|
@@ -171,7 +171,7 @@ const G = O(
|
|
|
171
171
|
}
|
|
172
172
|
);
|
|
173
173
|
L.displayName = "Heading";
|
|
174
|
-
const be =
|
|
174
|
+
const be = g("inline-flex items-center justify-center", {
|
|
175
175
|
variants: {
|
|
176
176
|
size: {
|
|
177
177
|
xs: "w-3 h-3",
|
|
@@ -201,54 +201,54 @@ const be = f("inline-flex items-center justify-center", {
|
|
|
201
201
|
size: "md",
|
|
202
202
|
color: "primary"
|
|
203
203
|
}
|
|
204
|
-
}),
|
|
205
|
-
return /* @__PURE__ */
|
|
206
|
-
|
|
204
|
+
}), k = _.forwardRef(function({ as: n, color: a = "primary", size: s = "md", className: t, ...o }, i) {
|
|
205
|
+
return /* @__PURE__ */ r.jsx(
|
|
206
|
+
n,
|
|
207
207
|
{
|
|
208
208
|
ref: i,
|
|
209
209
|
className: be({ color: a, size: s, className: t }),
|
|
210
210
|
...o
|
|
211
211
|
}
|
|
212
212
|
);
|
|
213
|
-
}), pe =
|
|
214
|
-
return /* @__PURE__ */
|
|
213
|
+
}), pe = f(function({ className: n, children: a, ...s }, t) {
|
|
214
|
+
return /* @__PURE__ */ r.jsx(
|
|
215
215
|
L,
|
|
216
216
|
{
|
|
217
217
|
ref: t,
|
|
218
218
|
as: "h6",
|
|
219
|
-
className: u("font-medium",
|
|
219
|
+
className: u("font-medium", n),
|
|
220
220
|
...s,
|
|
221
221
|
color: "black",
|
|
222
222
|
children: a
|
|
223
223
|
}
|
|
224
224
|
);
|
|
225
|
-
}),
|
|
225
|
+
}), ve = f(function({ className: n, children: a, ...s }, t) {
|
|
226
226
|
const { isOpen: o } = $();
|
|
227
|
-
return /* @__PURE__ */
|
|
227
|
+
return /* @__PURE__ */ r.jsx(
|
|
228
228
|
"div",
|
|
229
229
|
{
|
|
230
230
|
ref: t,
|
|
231
|
-
className: u(he({ isOpen: o }),
|
|
231
|
+
className: u(he({ isOpen: o }), n),
|
|
232
232
|
...s,
|
|
233
|
-
children: /* @__PURE__ */
|
|
233
|
+
children: /* @__PURE__ */ r.jsx("div", { className: fe(), children: a })
|
|
234
234
|
}
|
|
235
235
|
);
|
|
236
|
-
}), D =
|
|
236
|
+
}), D = f(function({ as: n, ...a }, s) {
|
|
237
237
|
const { isOpen: t } = $();
|
|
238
|
-
return /* @__PURE__ */
|
|
239
|
-
|
|
238
|
+
return /* @__PURE__ */ r.jsx(
|
|
239
|
+
k,
|
|
240
240
|
{
|
|
241
241
|
ref: s,
|
|
242
|
-
as:
|
|
242
|
+
as: n,
|
|
243
243
|
color: "ghost",
|
|
244
244
|
size: "sm",
|
|
245
|
-
className:
|
|
245
|
+
className: ge({ isOpen: t }),
|
|
246
246
|
...a
|
|
247
247
|
}
|
|
248
248
|
);
|
|
249
|
-
}),
|
|
249
|
+
}), we = f(
|
|
250
250
|
function({
|
|
251
|
-
title:
|
|
251
|
+
title: n,
|
|
252
252
|
subtitle: a,
|
|
253
253
|
isDefaultOpen: s = !1,
|
|
254
254
|
disabled: t = !1,
|
|
@@ -258,13 +258,13 @@ const be = f("inline-flex items-center justify-center", {
|
|
|
258
258
|
...d
|
|
259
259
|
}, m) {
|
|
260
260
|
const [h, x] = j(s), p = () => {
|
|
261
|
-
t || x((
|
|
261
|
+
t || x((v) => !v);
|
|
262
262
|
}, b = {
|
|
263
263
|
isOpen: h,
|
|
264
264
|
toggle: p,
|
|
265
265
|
disabled: t
|
|
266
266
|
};
|
|
267
|
-
return /* @__PURE__ */
|
|
267
|
+
return /* @__PURE__ */ r.jsx(G.Provider, { value: b, children: /* @__PURE__ */ r.jsxs(
|
|
268
268
|
"div",
|
|
269
269
|
{
|
|
270
270
|
ref: m,
|
|
@@ -275,7 +275,7 @@ const be = f("inline-flex items-center justify-center", {
|
|
|
275
275
|
),
|
|
276
276
|
...d,
|
|
277
277
|
children: [
|
|
278
|
-
/* @__PURE__ */
|
|
278
|
+
/* @__PURE__ */ r.jsx(
|
|
279
279
|
"div",
|
|
280
280
|
{
|
|
281
281
|
role: "button",
|
|
@@ -283,34 +283,34 @@ const be = f("inline-flex items-center justify-center", {
|
|
|
283
283
|
onClick: p,
|
|
284
284
|
"aria-disabled": t,
|
|
285
285
|
"aria-expanded": h,
|
|
286
|
-
children: /* @__PURE__ */
|
|
287
|
-
/* @__PURE__ */
|
|
288
|
-
/* @__PURE__ */
|
|
289
|
-
a && /* @__PURE__ */
|
|
286
|
+
children: /* @__PURE__ */ r.jsxs("div", { className: "flex items-center justify-between w-full gap-2", children: [
|
|
287
|
+
/* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-3 flex-grow", children: [
|
|
288
|
+
/* @__PURE__ */ r.jsx("div", { className: "flex-1", children: n }),
|
|
289
|
+
a && /* @__PURE__ */ r.jsx("div", { className: "flex-shrink-0", children: a })
|
|
290
290
|
] }),
|
|
291
|
-
/* @__PURE__ */
|
|
291
|
+
/* @__PURE__ */ r.jsx(D, { as: ae })
|
|
292
292
|
] })
|
|
293
293
|
}
|
|
294
294
|
),
|
|
295
|
-
/* @__PURE__ */
|
|
295
|
+
/* @__PURE__ */ r.jsx(
|
|
296
296
|
"div",
|
|
297
297
|
{
|
|
298
298
|
className: u(
|
|
299
299
|
"overflow-hidden transition-all duration-300",
|
|
300
300
|
h ? "max-h-screen opacity-100" : "max-h-0 opacity-0"
|
|
301
301
|
),
|
|
302
|
-
children: /* @__PURE__ */
|
|
302
|
+
children: /* @__PURE__ */ r.jsx("div", { className: "p-4 pt-2", children: l })
|
|
303
303
|
}
|
|
304
304
|
)
|
|
305
305
|
]
|
|
306
306
|
}
|
|
307
307
|
) });
|
|
308
308
|
}
|
|
309
|
-
), Ut = Object.assign(
|
|
309
|
+
), Ut = Object.assign(we, {
|
|
310
310
|
Title: pe,
|
|
311
|
-
Content:
|
|
311
|
+
Content: ve,
|
|
312
312
|
Icon: D
|
|
313
|
-
}), ye =
|
|
313
|
+
}), ye = g(
|
|
314
314
|
[
|
|
315
315
|
// Base styles
|
|
316
316
|
"fixed",
|
|
@@ -332,8 +332,8 @@ const be = f("inline-flex items-center justify-center", {
|
|
|
332
332
|
}
|
|
333
333
|
}
|
|
334
334
|
);
|
|
335
|
-
function je(e,
|
|
336
|
-
const t = e.getBoundingClientRect(), o =
|
|
335
|
+
function je(e, n, a = "bottom", s = 8) {
|
|
336
|
+
const t = e.getBoundingClientRect(), o = n.getBoundingClientRect();
|
|
337
337
|
let i = 0, l = 0;
|
|
338
338
|
switch (a) {
|
|
339
339
|
// Top placements
|
|
@@ -384,8 +384,8 @@ function je(e, r, a = "bottom", s = 8) {
|
|
|
384
384
|
margin: 0
|
|
385
385
|
};
|
|
386
386
|
}
|
|
387
|
-
function
|
|
388
|
-
const t = B(null), [o, i] = j(!1), l =
|
|
387
|
+
function Ne(e, n, a, s) {
|
|
388
|
+
const t = B(null), [o, i] = j(!1), l = n !== void 0, d = l ? n : o, m = A(() => {
|
|
389
389
|
t.current && t.current.showPopover?.();
|
|
390
390
|
}, []), h = A(() => {
|
|
391
391
|
t.current && t.current.hidePopover?.();
|
|
@@ -401,24 +401,24 @@ function ke(e, r, a, s) {
|
|
|
401
401
|
return E(() => {
|
|
402
402
|
const b = t.current;
|
|
403
403
|
if (!b) return;
|
|
404
|
-
const
|
|
405
|
-
const y =
|
|
404
|
+
const v = (w) => {
|
|
405
|
+
const y = w.newState === "open";
|
|
406
406
|
l || i(y), y && a ? a() : !y && s && s();
|
|
407
407
|
};
|
|
408
|
-
return b.addEventListener("toggle",
|
|
409
|
-
b.removeEventListener("toggle",
|
|
408
|
+
return b.addEventListener("toggle", v), () => {
|
|
409
|
+
b.removeEventListener("toggle", v);
|
|
410
410
|
};
|
|
411
411
|
}, [l, a, s]), E(() => {
|
|
412
412
|
if (!l || !t.current) return;
|
|
413
413
|
const b = t.current;
|
|
414
414
|
if (!b.showPopover || !b.hidePopover) return;
|
|
415
|
-
let
|
|
415
|
+
let v = !1;
|
|
416
416
|
try {
|
|
417
|
-
|
|
417
|
+
v = b.matches(":popover-open");
|
|
418
418
|
} catch {
|
|
419
419
|
}
|
|
420
|
-
|
|
421
|
-
}, [
|
|
420
|
+
n && !v ? m() : !n && v && h();
|
|
421
|
+
}, [n, l, m, h]), {
|
|
422
422
|
getTriggerProps: p,
|
|
423
423
|
show: m,
|
|
424
424
|
hide: h,
|
|
@@ -427,14 +427,14 @@ function ke(e, r, a, s) {
|
|
|
427
427
|
popoverRef: t
|
|
428
428
|
};
|
|
429
429
|
}
|
|
430
|
-
const
|
|
430
|
+
const ke = (...e) => (n) => {
|
|
431
431
|
e.forEach((a) => {
|
|
432
|
-
typeof a == "function" ? a(
|
|
432
|
+
typeof a == "function" ? a(n) : a && "current" in a && (a.current = n);
|
|
433
433
|
});
|
|
434
|
-
}, X =
|
|
434
|
+
}, X = f(
|
|
435
435
|
({
|
|
436
436
|
id: e,
|
|
437
|
-
children:
|
|
437
|
+
children: n,
|
|
438
438
|
isOpen: a,
|
|
439
439
|
onOpen: s,
|
|
440
440
|
onClose: t,
|
|
@@ -447,8 +447,8 @@ const Ne = (...e) => (r) => {
|
|
|
447
447
|
className: x,
|
|
448
448
|
style: p,
|
|
449
449
|
...b
|
|
450
|
-
},
|
|
451
|
-
const { popoverRef:
|
|
450
|
+
}, v) => {
|
|
451
|
+
const { popoverRef: w, isOpen: N } = Ne(
|
|
452
452
|
e,
|
|
453
453
|
a,
|
|
454
454
|
s,
|
|
@@ -457,19 +457,19 @@ const Ne = (...e) => (r) => {
|
|
|
457
457
|
{}
|
|
458
458
|
), [z, R] = j(!1);
|
|
459
459
|
E(() => {
|
|
460
|
-
if (!d?.current || !
|
|
460
|
+
if (!d?.current || !w.current)
|
|
461
461
|
return;
|
|
462
462
|
const T = () => {
|
|
463
|
-
if (!d.current || !
|
|
463
|
+
if (!d.current || !w.current) return;
|
|
464
464
|
const te = je(
|
|
465
465
|
d.current,
|
|
466
|
-
|
|
466
|
+
w.current,
|
|
467
467
|
l,
|
|
468
468
|
m
|
|
469
469
|
);
|
|
470
470
|
I(te);
|
|
471
471
|
};
|
|
472
|
-
|
|
472
|
+
N ? (R(!1), requestAnimationFrame(() => {
|
|
473
473
|
requestAnimationFrame(() => {
|
|
474
474
|
T(), requestAnimationFrame(() => {
|
|
475
475
|
R(!0);
|
|
@@ -477,12 +477,12 @@ const Ne = (...e) => (r) => {
|
|
|
477
477
|
});
|
|
478
478
|
})) : (R(!1), T());
|
|
479
479
|
const M = () => {
|
|
480
|
-
|
|
480
|
+
N && T();
|
|
481
481
|
};
|
|
482
482
|
return window.addEventListener("scroll", M, !0), window.addEventListener("resize", M), () => {
|
|
483
483
|
window.removeEventListener("scroll", M, !0), window.removeEventListener("resize", M);
|
|
484
484
|
};
|
|
485
|
-
}, [d,
|
|
485
|
+
}, [d, w, l, m, N]);
|
|
486
486
|
const ee = {
|
|
487
487
|
...y,
|
|
488
488
|
...p,
|
|
@@ -493,28 +493,28 @@ const Ne = (...e) => (r) => {
|
|
|
493
493
|
transition: "none"
|
|
494
494
|
}
|
|
495
495
|
};
|
|
496
|
-
return /* @__PURE__ */
|
|
496
|
+
return /* @__PURE__ */ r.jsx(
|
|
497
497
|
"div",
|
|
498
498
|
{
|
|
499
499
|
...b,
|
|
500
|
-
ref:
|
|
500
|
+
ref: ke(v, w),
|
|
501
501
|
id: e,
|
|
502
502
|
popover: i,
|
|
503
503
|
className: u(ye({ maxWidth: h }), x),
|
|
504
504
|
style: ee,
|
|
505
505
|
...o && { anchor: o },
|
|
506
|
-
children:
|
|
506
|
+
children: n
|
|
507
507
|
}
|
|
508
508
|
);
|
|
509
509
|
}
|
|
510
510
|
);
|
|
511
511
|
X.displayName = "Popover";
|
|
512
|
-
const Ee = (e,
|
|
512
|
+
const Ee = (e, n = "toggle") => ({
|
|
513
513
|
popoverTarget: e,
|
|
514
|
-
popoverTargetAction:
|
|
514
|
+
popoverTargetAction: n
|
|
515
515
|
}), Ce = Object.assign(X, {
|
|
516
516
|
getTriggerProps: Ee
|
|
517
|
-
}), _e =
|
|
517
|
+
}), _e = g(
|
|
518
518
|
"group flex items-center justify-between transition-all duration-200 w-full",
|
|
519
519
|
{
|
|
520
520
|
variants: {
|
|
@@ -533,7 +533,7 @@ const Ee = (e, r = "toggle") => ({
|
|
|
533
533
|
as: "button"
|
|
534
534
|
}
|
|
535
535
|
}
|
|
536
|
-
), Ve =
|
|
536
|
+
), Ve = g(
|
|
537
537
|
"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",
|
|
538
538
|
{
|
|
539
539
|
variants: {
|
|
@@ -547,7 +547,7 @@ const Ee = (e, r = "toggle") => ({
|
|
|
547
547
|
size: "md"
|
|
548
548
|
}
|
|
549
549
|
}
|
|
550
|
-
), Ie =
|
|
550
|
+
), Ie = g(
|
|
551
551
|
"inline-flex items-center justify-center text-ghost-bold transition-colors duration-200",
|
|
552
552
|
{
|
|
553
553
|
variants: {
|
|
@@ -570,7 +570,7 @@ const Ee = (e, r = "toggle") => ({
|
|
|
570
570
|
"em",
|
|
571
571
|
"small",
|
|
572
572
|
"label"
|
|
573
|
-
], Ae = (e) => ze.includes(e) ? e : "span", Le =
|
|
573
|
+
], Ae = (e) => ze.includes(e) ? e : "span", Le = g("", {
|
|
574
574
|
variants: {
|
|
575
575
|
color: {
|
|
576
576
|
primary: "text-primary",
|
|
@@ -637,10 +637,10 @@ const Ee = (e, r = "toggle") => ({
|
|
|
637
637
|
clamp: "none",
|
|
638
638
|
as: "span"
|
|
639
639
|
}
|
|
640
|
-
}), C =
|
|
640
|
+
}), C = f(
|
|
641
641
|
({
|
|
642
642
|
as: e = "span",
|
|
643
|
-
color:
|
|
643
|
+
color: n = "ghost",
|
|
644
644
|
transform: a = "none",
|
|
645
645
|
decoration: s = "none",
|
|
646
646
|
align: t = "left",
|
|
@@ -652,14 +652,14 @@ const Ee = (e, r = "toggle") => ({
|
|
|
652
652
|
children: h,
|
|
653
653
|
...x
|
|
654
654
|
}, p) => {
|
|
655
|
-
const b = Ae(e),
|
|
656
|
-
return /* @__PURE__ */
|
|
657
|
-
|
|
655
|
+
const b = Ae(e), v = e, w = d ? `font-${d}` : "", N = l ? i === "none" ? "truncate" : "overflow-hidden" : "";
|
|
656
|
+
return /* @__PURE__ */ r.jsx(
|
|
657
|
+
v,
|
|
658
658
|
{
|
|
659
659
|
ref: p,
|
|
660
660
|
className: u(
|
|
661
661
|
Le({
|
|
662
|
-
color:
|
|
662
|
+
color: n,
|
|
663
663
|
transform: a,
|
|
664
664
|
decoration: s,
|
|
665
665
|
align: t,
|
|
@@ -667,8 +667,8 @@ const Ee = (e, r = "toggle") => ({
|
|
|
667
667
|
clamp: i,
|
|
668
668
|
as: b
|
|
669
669
|
}),
|
|
670
|
-
|
|
671
|
-
|
|
670
|
+
w,
|
|
671
|
+
N,
|
|
672
672
|
m
|
|
673
673
|
),
|
|
674
674
|
...x,
|
|
@@ -676,24 +676,24 @@ const Ee = (e, r = "toggle") => ({
|
|
|
676
676
|
}
|
|
677
677
|
);
|
|
678
678
|
}
|
|
679
|
-
), Me =
|
|
680
|
-
({ children: e, className:
|
|
679
|
+
), Me = f(
|
|
680
|
+
({ children: e, className: n }, a) => /* @__PURE__ */ r.jsx(
|
|
681
681
|
"div",
|
|
682
682
|
{
|
|
683
683
|
ref: a,
|
|
684
684
|
className: u(
|
|
685
685
|
"bg-background border border-border rounded-lg overflow-hidden",
|
|
686
686
|
"divide-y divide-border",
|
|
687
|
-
|
|
687
|
+
n
|
|
688
688
|
),
|
|
689
689
|
role: "group",
|
|
690
690
|
children: e
|
|
691
691
|
}
|
|
692
692
|
)
|
|
693
|
-
), Re =
|
|
693
|
+
), Re = f(
|
|
694
694
|
({
|
|
695
695
|
size: e = "md",
|
|
696
|
-
icon:
|
|
696
|
+
icon: n,
|
|
697
697
|
title: a,
|
|
698
698
|
subtitle: s,
|
|
699
699
|
badge: t,
|
|
@@ -701,18 +701,18 @@ const Ee = (e, r = "toggle") => ({
|
|
|
701
701
|
as: i = "button",
|
|
702
702
|
className: l,
|
|
703
703
|
...d
|
|
704
|
-
}, m) => /* @__PURE__ */
|
|
704
|
+
}, m) => /* @__PURE__ */ r.jsxs(
|
|
705
705
|
i,
|
|
706
706
|
{
|
|
707
707
|
ref: m,
|
|
708
708
|
className: u(_e({ size: e, as: i }), l),
|
|
709
709
|
...d,
|
|
710
710
|
children: [
|
|
711
|
-
/* @__PURE__ */
|
|
712
|
-
|
|
713
|
-
/* @__PURE__ */
|
|
714
|
-
/* @__PURE__ */
|
|
715
|
-
/* @__PURE__ */
|
|
711
|
+
/* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-4 flex-1", children: [
|
|
712
|
+
n && /* @__PURE__ */ r.jsx("div", { className: u(Ve({ size: e })), children: n }),
|
|
713
|
+
/* @__PURE__ */ r.jsxs("div", { className: "flex-1", children: [
|
|
714
|
+
/* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-3 mb-1", children: [
|
|
715
|
+
/* @__PURE__ */ r.jsx(
|
|
716
716
|
C,
|
|
717
717
|
{
|
|
718
718
|
as: "span",
|
|
@@ -722,7 +722,7 @@ const Ee = (e, r = "toggle") => ({
|
|
|
722
722
|
children: a
|
|
723
723
|
}
|
|
724
724
|
),
|
|
725
|
-
t && /* @__PURE__ */
|
|
725
|
+
t && /* @__PURE__ */ r.jsx(
|
|
726
726
|
"div",
|
|
727
727
|
{
|
|
728
728
|
className: "flex flex-wrap items-center flex-row justify-start gap-3",
|
|
@@ -731,7 +731,7 @@ const Ee = (e, r = "toggle") => ({
|
|
|
731
731
|
}
|
|
732
732
|
)
|
|
733
733
|
] }),
|
|
734
|
-
s && /* @__PURE__ */
|
|
734
|
+
s && /* @__PURE__ */ r.jsx(
|
|
735
735
|
C,
|
|
736
736
|
{
|
|
737
737
|
as: "small",
|
|
@@ -742,8 +742,8 @@ const Ee = (e, r = "toggle") => ({
|
|
|
742
742
|
)
|
|
743
743
|
] })
|
|
744
744
|
] }),
|
|
745
|
-
o && /* @__PURE__ */
|
|
746
|
-
|
|
745
|
+
o && /* @__PURE__ */ r.jsx("div", { className: "flex items-center gap-3", children: /* @__PURE__ */ r.jsx(
|
|
746
|
+
k,
|
|
747
747
|
{
|
|
748
748
|
as: se,
|
|
749
749
|
className: u(Ie({ size: e })),
|
|
@@ -756,7 +756,7 @@ const Ee = (e, r = "toggle") => ({
|
|
|
756
756
|
)
|
|
757
757
|
), Jt = Object.assign(Re, {
|
|
758
758
|
Group: Me
|
|
759
|
-
}), Te =
|
|
759
|
+
}), Te = g(
|
|
760
760
|
"relative flex items-center gap-2 rounded-md p-2 text-sm transition-all duration-200",
|
|
761
761
|
{
|
|
762
762
|
variants: {
|
|
@@ -877,7 +877,7 @@ const Ee = (e, r = "toggle") => ({
|
|
|
877
877
|
color: "neutral"
|
|
878
878
|
}
|
|
879
879
|
}
|
|
880
|
-
), Oe =
|
|
880
|
+
), Oe = g(
|
|
881
881
|
"flex-shrink-0 flex justify-center items-center ",
|
|
882
882
|
{
|
|
883
883
|
variants: {
|
|
@@ -891,32 +891,32 @@ const Ee = (e, r = "toggle") => ({
|
|
|
891
891
|
size: "md"
|
|
892
892
|
}
|
|
893
893
|
}
|
|
894
|
-
), U =
|
|
895
|
-
({ className: e, children:
|
|
896
|
-
), Se =
|
|
894
|
+
), U = f(
|
|
895
|
+
({ className: e, children: n, ...a }, s) => /* @__PURE__ */ r.jsx("div", { ref: s, className: u(Oe(), e), ...a, children: n })
|
|
896
|
+
), Se = f(
|
|
897
897
|
({
|
|
898
898
|
variant: e = "default",
|
|
899
|
-
color:
|
|
899
|
+
color: n = "neutral",
|
|
900
900
|
icon: a,
|
|
901
901
|
className: s,
|
|
902
902
|
children: t,
|
|
903
903
|
...o
|
|
904
|
-
}, i) => /* @__PURE__ */
|
|
904
|
+
}, i) => /* @__PURE__ */ r.jsxs(
|
|
905
905
|
"div",
|
|
906
906
|
{
|
|
907
907
|
ref: i,
|
|
908
908
|
role: "alert",
|
|
909
|
-
className: u(Te({ variant: e, color:
|
|
909
|
+
className: u(Te({ variant: e, color: n }), s),
|
|
910
910
|
...o,
|
|
911
911
|
children: [
|
|
912
|
-
a && /* @__PURE__ */
|
|
913
|
-
/* @__PURE__ */
|
|
912
|
+
a && /* @__PURE__ */ r.jsx(U, { children: a }),
|
|
913
|
+
/* @__PURE__ */ r.jsx("div", { className: "flex-1", children: t })
|
|
914
914
|
]
|
|
915
915
|
}
|
|
916
916
|
)
|
|
917
917
|
), Kt = Object.assign(Se, {
|
|
918
918
|
Icon: U
|
|
919
|
-
}), Be =
|
|
919
|
+
}), Be = g(
|
|
920
920
|
[
|
|
921
921
|
"inline-flex items-center transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2",
|
|
922
922
|
// pseudo selectors for anchor
|
|
@@ -973,38 +973,38 @@ const Ee = (e, r = "toggle") => ({
|
|
|
973
973
|
quiet: !1
|
|
974
974
|
}
|
|
975
975
|
}
|
|
976
|
-
), Qt =
|
|
976
|
+
), Qt = f(
|
|
977
977
|
({
|
|
978
978
|
children: e,
|
|
979
|
-
className:
|
|
979
|
+
className: n,
|
|
980
980
|
color: a = "primary",
|
|
981
981
|
fontSize: s = "base",
|
|
982
982
|
fontWeight: t = "medium",
|
|
983
983
|
quiet: o = !1,
|
|
984
984
|
...i
|
|
985
|
-
}, l) => /* @__PURE__ */
|
|
985
|
+
}, l) => /* @__PURE__ */ r.jsx(
|
|
986
986
|
"a",
|
|
987
987
|
{
|
|
988
988
|
ref: l,
|
|
989
989
|
className: u(
|
|
990
990
|
Be({ color: a, fontSize: s, fontWeight: t, quiet: o }),
|
|
991
|
-
|
|
991
|
+
n
|
|
992
992
|
),
|
|
993
993
|
...i,
|
|
994
994
|
children: e
|
|
995
995
|
}
|
|
996
996
|
)
|
|
997
|
-
), We =
|
|
998
|
-
function({ title:
|
|
999
|
-
return /* @__PURE__ */
|
|
997
|
+
), We = f(
|
|
998
|
+
function({ title: n, children: a, className: s, hasMargin: t, ...o }, i) {
|
|
999
|
+
return /* @__PURE__ */ r.jsxs(
|
|
1000
1000
|
"div",
|
|
1001
1001
|
{
|
|
1002
1002
|
ref: i,
|
|
1003
1003
|
className: u("space-y-1", s, t && "mb-4"),
|
|
1004
1004
|
...o,
|
|
1005
1005
|
children: [
|
|
1006
|
-
/* @__PURE__ */
|
|
1007
|
-
/* @__PURE__ */
|
|
1006
|
+
/* @__PURE__ */ r.jsx(L, { as: "h6", color: "gray", className: "leading-none", children: n }),
|
|
1007
|
+
/* @__PURE__ */ r.jsx(C, { as: "small", fontWeight: "normal", children: a })
|
|
1008
1008
|
]
|
|
1009
1009
|
}
|
|
1010
1010
|
);
|
|
@@ -1070,25 +1070,25 @@ function Pe(e = 4) {
|
|
|
1070
1070
|
return "grid-cols-4";
|
|
1071
1071
|
}
|
|
1072
1072
|
}
|
|
1073
|
-
const He =
|
|
1073
|
+
const He = f(function({ children: n, className: a, span: s = 1, title: t, ...o }, i) {
|
|
1074
1074
|
const l = qe(s);
|
|
1075
|
-
return /* @__PURE__ */
|
|
1076
|
-
}), Fe =
|
|
1077
|
-
function({ children:
|
|
1075
|
+
return /* @__PURE__ */ r.jsx("li", { ref: i, className: u(l, a), ...o, children: /* @__PURE__ */ r.jsx(We, { title: t, children: n }) });
|
|
1076
|
+
}), Fe = f(
|
|
1077
|
+
function({ children: n, className: a, columns: s = 4, ...t }, o) {
|
|
1078
1078
|
const i = Pe(s);
|
|
1079
|
-
return /* @__PURE__ */
|
|
1079
|
+
return /* @__PURE__ */ r.jsx(
|
|
1080
1080
|
"ul",
|
|
1081
1081
|
{
|
|
1082
1082
|
ref: o,
|
|
1083
1083
|
className: u("grid gap-4", i, a),
|
|
1084
1084
|
...t,
|
|
1085
|
-
children:
|
|
1085
|
+
children: n
|
|
1086
1086
|
}
|
|
1087
1087
|
);
|
|
1088
1088
|
}
|
|
1089
1089
|
), Yt = Object.assign(Fe, {
|
|
1090
1090
|
Item: He
|
|
1091
|
-
}), Ge =
|
|
1091
|
+
}), Ge = g(
|
|
1092
1092
|
"inline-flex items-center justify-center font-medium text-white overflow-hidden transition-all duration-200 select-none relative",
|
|
1093
1093
|
{
|
|
1094
1094
|
variants: {
|
|
@@ -1128,27 +1128,27 @@ const He = g(function({ children: r, className: a, span: s = 1, title: t, ...o }
|
|
|
1128
1128
|
shape: "circle"
|
|
1129
1129
|
}
|
|
1130
1130
|
}
|
|
1131
|
-
), $e =
|
|
1131
|
+
), $e = g(
|
|
1132
1132
|
"absolute inset-0 h-full w-full object-cover"
|
|
1133
|
-
), De =
|
|
1133
|
+
), De = f(
|
|
1134
1134
|
({
|
|
1135
1135
|
variant: e = "primary",
|
|
1136
|
-
size:
|
|
1136
|
+
size: n = "md",
|
|
1137
1137
|
shape: a = "circle",
|
|
1138
1138
|
className: s,
|
|
1139
1139
|
children: t,
|
|
1140
1140
|
...o
|
|
1141
|
-
}, i) => /* @__PURE__ */
|
|
1141
|
+
}, i) => /* @__PURE__ */ r.jsx(
|
|
1142
1142
|
"div",
|
|
1143
1143
|
{
|
|
1144
1144
|
ref: i,
|
|
1145
|
-
className: u(Ge({ variant: e, size:
|
|
1145
|
+
className: u(Ge({ variant: e, size: n, shape: a }), s),
|
|
1146
1146
|
...o,
|
|
1147
1147
|
children: t
|
|
1148
1148
|
}
|
|
1149
1149
|
)
|
|
1150
|
-
), Xe =
|
|
1151
|
-
({ src: e, alt:
|
|
1150
|
+
), Xe = f(
|
|
1151
|
+
({ src: e, alt: n, className: a, onError: s, ...t }, o) => {
|
|
1152
1152
|
const [i, l] = j(!1);
|
|
1153
1153
|
E(() => {
|
|
1154
1154
|
l(!1);
|
|
@@ -1159,12 +1159,12 @@ const He = g(function({ children: r, className: a, span: s = 1, title: t, ...o }
|
|
|
1159
1159
|
},
|
|
1160
1160
|
[s]
|
|
1161
1161
|
);
|
|
1162
|
-
return i ? null : /* @__PURE__ */
|
|
1162
|
+
return i ? null : /* @__PURE__ */ r.jsx(
|
|
1163
1163
|
"img",
|
|
1164
1164
|
{
|
|
1165
1165
|
ref: o,
|
|
1166
1166
|
src: e,
|
|
1167
|
-
alt:
|
|
1167
|
+
alt: n,
|
|
1168
1168
|
className: u($e(), a),
|
|
1169
1169
|
onError: d,
|
|
1170
1170
|
...t
|
|
@@ -1176,7 +1176,7 @@ const He = g(function({ children: r, className: a, span: s = 1, title: t, ...o }
|
|
|
1176
1176
|
* AvatarImage sub-component for displaying images with fallback behavior
|
|
1177
1177
|
*/
|
|
1178
1178
|
Image: Xe
|
|
1179
|
-
}), Ue =
|
|
1179
|
+
}), Ue = g(
|
|
1180
1180
|
"inline-flex items-center justify-center font-medium transition-all duration-200 select-none gap-1 min-h-[1.25rem]",
|
|
1181
1181
|
{
|
|
1182
1182
|
variants: {
|
|
@@ -1363,10 +1363,10 @@ const He = g(function({ children: r, className: a, span: s = 1, title: t, ...o }
|
|
|
1363
1363
|
iconOnly: !1
|
|
1364
1364
|
}
|
|
1365
1365
|
}
|
|
1366
|
-
), er =
|
|
1366
|
+
), er = f(
|
|
1367
1367
|
({
|
|
1368
1368
|
variant: e = "default",
|
|
1369
|
-
shape:
|
|
1369
|
+
shape: n = "square",
|
|
1370
1370
|
color: a = "primary",
|
|
1371
1371
|
size: s = "md",
|
|
1372
1372
|
iconLeft: t,
|
|
@@ -1376,7 +1376,7 @@ const He = g(function({ children: r, className: a, span: s = 1, title: t, ...o }
|
|
|
1376
1376
|
...d
|
|
1377
1377
|
}, m) => {
|
|
1378
1378
|
const p = !(l != null && l !== "") && !!(t || o);
|
|
1379
|
-
return /* @__PURE__ */
|
|
1379
|
+
return /* @__PURE__ */ r.jsx(
|
|
1380
1380
|
"span",
|
|
1381
1381
|
{
|
|
1382
1382
|
ref: m,
|
|
@@ -1384,7 +1384,7 @@ const He = g(function({ children: r, className: a, span: s = 1, title: t, ...o }
|
|
|
1384
1384
|
Ue({
|
|
1385
1385
|
variant: e,
|
|
1386
1386
|
color: a,
|
|
1387
|
-
shape:
|
|
1387
|
+
shape: n,
|
|
1388
1388
|
size: s,
|
|
1389
1389
|
iconOnly: p
|
|
1390
1390
|
}),
|
|
@@ -1396,7 +1396,7 @@ const He = g(function({ children: r, className: a, span: s = 1, title: t, ...o }
|
|
|
1396
1396
|
t || o
|
|
1397
1397
|
) : (
|
|
1398
1398
|
// Normal mode: display icon(s) and text
|
|
1399
|
-
/* @__PURE__ */
|
|
1399
|
+
/* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
1400
1400
|
t,
|
|
1401
1401
|
l,
|
|
1402
1402
|
o
|
|
@@ -1405,7 +1405,7 @@ const He = g(function({ children: r, className: a, span: s = 1, title: t, ...o }
|
|
|
1405
1405
|
}
|
|
1406
1406
|
);
|
|
1407
1407
|
}
|
|
1408
|
-
), H = (e) => /* @__PURE__ */ c.createElement("svg", { width: 32, height: 32, viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ c.createElement("title", null, "Spenicle"), /* @__PURE__ */ c.createElement("rect", { width: 32, height: 32, fill: "#e07a5f" }), /* @__PURE__ */ c.createElement("g", { transform: "translate(16, 16) scale(0.625) translate(-12, -12)" }, /* @__PURE__ */ c.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__ */ c.createElement("svg", { width: 32, height: 32, viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ c.createElement("title", null, "Spenicle"), /* @__PURE__ */ c.createElement("rect", { width: 32, height: 32, rx: 8, fill: "#e07a5f" }), /* @__PURE__ */ c.createElement("g", { transform: "translate(16, 16) scale(0.625) translate(-12, -12)" }, /* @__PURE__ */ c.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" }))), Ke = (e) => /* @__PURE__ */ c.createElement("svg", { width: 32, height: 32, viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ c.createElement("title", null, "Spenicle"), /* @__PURE__ */ c.createElement("circle", { cx: 16, cy: 16, r: 16, fill: "#e07a5f" }), /* @__PURE__ */ c.createElement("g", { transform: "translate(16, 16) scale(0.625) translate(-12, -12)" }, /* @__PURE__ */ c.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" }))), Qe = (e) => /* @__PURE__ */ c.createElement("svg", { width: 32, height: 32, viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ c.createElement("title", null, "Hub (Square)"), /* @__PURE__ */ c.createElement("rect", { x: 0, y: 0, width: 32, height: 32, rx: 0, fill: "#e07a5f" }), /* @__PURE__ */ c.createElement("g", { transform: "translate(16, 16) scale(0.625) translate(-12, -12)" }, /* @__PURE__ */ c.createElement("path", { d: "M20.341 6.484A10 10 0 0 1 10.266 21.85", stroke: "white", strokeWidth: 2, fill: "none" }), /* @__PURE__ */ c.createElement("path", { d: "M3.659 17.516A10 10 0 0 1 13.74 2.152", stroke: "white", strokeWidth: 2, fill: "none" }), /* @__PURE__ */ c.createElement("circle", { cx: 12, cy: 12, r: 3, fill: "white" }), /* @__PURE__ */ c.createElement("circle", { cx: 19, cy: 5, r: 2, fill: "white" }), /* @__PURE__ */ c.createElement("circle", { cx: 5, cy: 19, r: 2, fill: "white" }))), Ye = (e) => /* @__PURE__ */ c.createElement("svg", { width: 32, height: 32, viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ c.createElement("title", null, "Hub (Rounded)"), /* @__PURE__ */ c.createElement("rect", { x: 0, y: 0, width: 32, height: 32, rx: 8, fill: "#e07a5f" }), /* @__PURE__ */ c.createElement("g", { transform: "translate(16, 16) scale(0.625) translate(-12, -12)" }, /* @__PURE__ */ c.createElement("path", { d: "M20.341 6.484A10 10 0 0 1 10.266 21.85", stroke: "white", strokeWidth: 2, fill: "none" }), /* @__PURE__ */ c.createElement("path", { d: "M3.659 17.516A10 10 0 0 1 13.74 2.152", stroke: "white", strokeWidth: 2, fill: "none" }), /* @__PURE__ */ c.createElement("circle", { cx: 12, cy: 12, r: 3, fill: "white" }), /* @__PURE__ */ c.createElement("circle", { cx: 19, cy: 5, r: 2, fill: "white" }), /* @__PURE__ */ c.createElement("circle", { cx: 5, cy: 19, r: 2, fill: "white" }))), Ze = (e) => /* @__PURE__ */ c.createElement("svg", { width: 32, height: 32, viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ c.createElement("title", null, "Hub (Circle)"), /* @__PURE__ */ c.createElement("circle", { cx: 16, cy: 16, r: 16, fill: "#e07a5f" }), /* @__PURE__ */ c.createElement("g", { transform: "translate(16, 16) scale(0.625) translate(-12, -12)" }, /* @__PURE__ */ c.createElement("path", { d: "M20.341 6.484A10 10 0 0 1 10.266 21.85", stroke: "white", strokeWidth: 2, fill: "none" }), /* @__PURE__ */ c.createElement("path", { d: "M3.659 17.516A10 10 0 0 1 13.74 2.152", stroke: "white", strokeWidth: 2, fill: "none" }), /* @__PURE__ */ c.createElement("circle", { cx: 12, cy: 12, r: 3, fill: "white" }), /* @__PURE__ */ c.createElement("circle", { cx: 19, cy: 5, r: 2, fill: "white" }), /* @__PURE__ */ c.createElement("circle", { cx: 5, cy: 19, r: 2, fill: "white" }))), et = (e) => /* @__PURE__ */ c.createElement("svg", { width: 32, height: 32, viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ c.createElement("title", null, "Notunic"), /* @__PURE__ */ c.createElement("rect", { width: 32, height: 32, fill: "#e07a5f" }), /* @__PURE__ */ c.createElement("g", { transform: "translate(16, 16) scale(0.625) translate(-12, -12)" }, /* @__PURE__ */ c.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__ */ c.createElement("path", { d: "M2 6h4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ c.createElement("path", { d: "M2 10h4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ c.createElement("path", { d: "M2 14h4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ c.createElement("path", { d: "M2 18h4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ c.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__ */ c.createElement("svg", { width: 32, height: 32, viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ c.createElement("title", null, "Notunic"), /* @__PURE__ */ c.createElement("rect", { width: 32, height: 32, rx: 8, fill: "#e07a5f" }), /* @__PURE__ */ c.createElement("g", { transform: "translate(16, 16) scale(0.625) translate(-12, -12)" }, /* @__PURE__ */ c.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__ */ c.createElement("path", { d: "M2 6h4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ c.createElement("path", { d: "M2 10h4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ c.createElement("path", { d: "M2 14h4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ c.createElement("path", { d: "M2 18h4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ c.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 = (e) => /* @__PURE__ */ c.createElement("svg", { width: 32, height: 32, viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ c.createElement("title", null, "Notunic"), /* @__PURE__ */ c.createElement("circle", { cx: 16, cy: 16, r: 16, fill: "#e07a5f" }), /* @__PURE__ */ c.createElement("g", { transform: "translate(16, 16) scale(0.625) translate(-12, -12)" }, /* @__PURE__ */ c.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__ */ c.createElement("path", { d: "M2 6h4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ c.createElement("path", { d: "M2 10h4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ c.createElement("path", { d: "M2 14h4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ c.createElement("path", { d: "M2 18h4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ c.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" }))), nt =
|
|
1408
|
+
), H = (e) => /* @__PURE__ */ c.createElement("svg", { width: 32, height: 32, viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ c.createElement("title", null, "Spenicle"), /* @__PURE__ */ c.createElement("rect", { width: 32, height: 32, fill: "#e07a5f" }), /* @__PURE__ */ c.createElement("g", { transform: "translate(16, 16) scale(0.625) translate(-12, -12)" }, /* @__PURE__ */ c.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__ */ c.createElement("svg", { width: 32, height: 32, viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ c.createElement("title", null, "Spenicle"), /* @__PURE__ */ c.createElement("rect", { width: 32, height: 32, rx: 8, fill: "#e07a5f" }), /* @__PURE__ */ c.createElement("g", { transform: "translate(16, 16) scale(0.625) translate(-12, -12)" }, /* @__PURE__ */ c.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" }))), Ke = (e) => /* @__PURE__ */ c.createElement("svg", { width: 32, height: 32, viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ c.createElement("title", null, "Spenicle"), /* @__PURE__ */ c.createElement("circle", { cx: 16, cy: 16, r: 16, fill: "#e07a5f" }), /* @__PURE__ */ c.createElement("g", { transform: "translate(16, 16) scale(0.625) translate(-12, -12)" }, /* @__PURE__ */ c.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" }))), Qe = (e) => /* @__PURE__ */ c.createElement("svg", { width: 32, height: 32, viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ c.createElement("title", null, "Hub (Square)"), /* @__PURE__ */ c.createElement("rect", { x: 0, y: 0, width: 32, height: 32, rx: 0, fill: "#e07a5f" }), /* @__PURE__ */ c.createElement("g", { transform: "translate(16, 16) scale(0.625) translate(-12, -12)" }, /* @__PURE__ */ c.createElement("path", { d: "M20.341 6.484A10 10 0 0 1 10.266 21.85", stroke: "white", strokeWidth: 2, fill: "none" }), /* @__PURE__ */ c.createElement("path", { d: "M3.659 17.516A10 10 0 0 1 13.74 2.152", stroke: "white", strokeWidth: 2, fill: "none" }), /* @__PURE__ */ c.createElement("circle", { cx: 12, cy: 12, r: 3, fill: "white" }), /* @__PURE__ */ c.createElement("circle", { cx: 19, cy: 5, r: 2, fill: "white" }), /* @__PURE__ */ c.createElement("circle", { cx: 5, cy: 19, r: 2, fill: "white" }))), Ye = (e) => /* @__PURE__ */ c.createElement("svg", { width: 32, height: 32, viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ c.createElement("title", null, "Hub (Rounded)"), /* @__PURE__ */ c.createElement("rect", { x: 0, y: 0, width: 32, height: 32, rx: 8, fill: "#e07a5f" }), /* @__PURE__ */ c.createElement("g", { transform: "translate(16, 16) scale(0.625) translate(-12, -12)" }, /* @__PURE__ */ c.createElement("path", { d: "M20.341 6.484A10 10 0 0 1 10.266 21.85", stroke: "white", strokeWidth: 2, fill: "none" }), /* @__PURE__ */ c.createElement("path", { d: "M3.659 17.516A10 10 0 0 1 13.74 2.152", stroke: "white", strokeWidth: 2, fill: "none" }), /* @__PURE__ */ c.createElement("circle", { cx: 12, cy: 12, r: 3, fill: "white" }), /* @__PURE__ */ c.createElement("circle", { cx: 19, cy: 5, r: 2, fill: "white" }), /* @__PURE__ */ c.createElement("circle", { cx: 5, cy: 19, r: 2, fill: "white" }))), Ze = (e) => /* @__PURE__ */ c.createElement("svg", { width: 32, height: 32, viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ c.createElement("title", null, "Hub (Circle)"), /* @__PURE__ */ c.createElement("circle", { cx: 16, cy: 16, r: 16, fill: "#e07a5f" }), /* @__PURE__ */ c.createElement("g", { transform: "translate(16, 16) scale(0.625) translate(-12, -12)" }, /* @__PURE__ */ c.createElement("path", { d: "M20.341 6.484A10 10 0 0 1 10.266 21.85", stroke: "white", strokeWidth: 2, fill: "none" }), /* @__PURE__ */ c.createElement("path", { d: "M3.659 17.516A10 10 0 0 1 13.74 2.152", stroke: "white", strokeWidth: 2, fill: "none" }), /* @__PURE__ */ c.createElement("circle", { cx: 12, cy: 12, r: 3, fill: "white" }), /* @__PURE__ */ c.createElement("circle", { cx: 19, cy: 5, r: 2, fill: "white" }), /* @__PURE__ */ c.createElement("circle", { cx: 5, cy: 19, r: 2, fill: "white" }))), et = (e) => /* @__PURE__ */ c.createElement("svg", { width: 32, height: 32, viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ c.createElement("title", null, "Notunic"), /* @__PURE__ */ c.createElement("rect", { width: 32, height: 32, fill: "#e07a5f" }), /* @__PURE__ */ c.createElement("g", { transform: "translate(16, 16) scale(0.625) translate(-12, -12)" }, /* @__PURE__ */ c.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__ */ c.createElement("path", { d: "M2 6h4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ c.createElement("path", { d: "M2 10h4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ c.createElement("path", { d: "M2 14h4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ c.createElement("path", { d: "M2 18h4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ c.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__ */ c.createElement("svg", { width: 32, height: 32, viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ c.createElement("title", null, "Notunic"), /* @__PURE__ */ c.createElement("rect", { width: 32, height: 32, rx: 8, fill: "#e07a5f" }), /* @__PURE__ */ c.createElement("g", { transform: "translate(16, 16) scale(0.625) translate(-12, -12)" }, /* @__PURE__ */ c.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__ */ c.createElement("path", { d: "M2 6h4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ c.createElement("path", { d: "M2 10h4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ c.createElement("path", { d: "M2 14h4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ c.createElement("path", { d: "M2 18h4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ c.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 = (e) => /* @__PURE__ */ c.createElement("svg", { width: 32, height: 32, viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ c.createElement("title", null, "Notunic"), /* @__PURE__ */ c.createElement("circle", { cx: 16, cy: 16, r: 16, fill: "#e07a5f" }), /* @__PURE__ */ c.createElement("g", { transform: "translate(16, 16) scale(0.625) translate(-12, -12)" }, /* @__PURE__ */ c.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__ */ c.createElement("path", { d: "M2 6h4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ c.createElement("path", { d: "M2 10h4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ c.createElement("path", { d: "M2 14h4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ c.createElement("path", { d: "M2 18h4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ c.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" }))), nt = g("", {
|
|
1409
1409
|
variants: {
|
|
1410
1410
|
size: {
|
|
1411
1411
|
xs: "h-6 w-6",
|
|
@@ -1418,8 +1418,8 @@ const He = g(function({ children: r, className: a, span: s = 1, title: t, ...o }
|
|
|
1418
1418
|
defaultVariants: {
|
|
1419
1419
|
size: "md"
|
|
1420
1420
|
}
|
|
1421
|
-
}), at =
|
|
1422
|
-
({ shape: e = "square", size:
|
|
1421
|
+
}), at = f(
|
|
1422
|
+
({ shape: e = "square", size: n, name: a = "spenicle", ...s }, t) => {
|
|
1423
1423
|
const o = {
|
|
1424
1424
|
spenicle: {
|
|
1425
1425
|
square: H,
|
|
@@ -1437,26 +1437,26 @@ const He = g(function({ children: r, className: a, span: s = 1, title: t, ...o }
|
|
|
1437
1437
|
circle: rt
|
|
1438
1438
|
}
|
|
1439
1439
|
}, l = (o[a] || o.spenicle)[e || "square"] || H;
|
|
1440
|
-
return /* @__PURE__ */
|
|
1440
|
+
return /* @__PURE__ */ r.jsx(
|
|
1441
1441
|
l,
|
|
1442
1442
|
{
|
|
1443
1443
|
ref: t,
|
|
1444
1444
|
...s,
|
|
1445
|
-
className: u("inline-block", nt({ size:
|
|
1445
|
+
className: u("inline-block", nt({ size: n }))
|
|
1446
1446
|
}
|
|
1447
1447
|
);
|
|
1448
1448
|
}
|
|
1449
|
-
), tr =
|
|
1450
|
-
({ name: e = "spenicle", size:
|
|
1449
|
+
), tr = f(
|
|
1450
|
+
({ name: e = "spenicle", size: n = "md", shape: a, ...s }, t) => /* @__PURE__ */ r.jsx(
|
|
1451
1451
|
"span",
|
|
1452
1452
|
{
|
|
1453
1453
|
ref: t,
|
|
1454
1454
|
className: u("inline-flex items-center gap-2"),
|
|
1455
1455
|
...s,
|
|
1456
|
-
children: /* @__PURE__ */
|
|
1456
|
+
children: /* @__PURE__ */ r.jsx(at, { name: e, shape: a, size: n, "aria-hidden": "true" })
|
|
1457
1457
|
}
|
|
1458
1458
|
)
|
|
1459
|
-
), st =
|
|
1459
|
+
), st = g(
|
|
1460
1460
|
"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",
|
|
1461
1461
|
{
|
|
1462
1462
|
variants: {
|
|
@@ -1483,7 +1483,7 @@ const He = g(function({ children: r, className: a, span: s = 1, title: t, ...o }
|
|
|
1483
1483
|
}
|
|
1484
1484
|
), J = _.forwardRef(
|
|
1485
1485
|
function({
|
|
1486
|
-
className:
|
|
1486
|
+
className: n,
|
|
1487
1487
|
variant: a = "primary",
|
|
1488
1488
|
size: s = "md",
|
|
1489
1489
|
disabled: t = !1,
|
|
@@ -1493,20 +1493,20 @@ const He = g(function({ children: r, className: a, span: s = 1, title: t, ...o }
|
|
|
1493
1493
|
...d
|
|
1494
1494
|
}, m) {
|
|
1495
1495
|
const h = s === "sm" ? "sm" : s === "lg" ? "md" : "sm", x = () => a === "primary" || a === "destructive" ? "white" : "inherit";
|
|
1496
|
-
return /* @__PURE__ */
|
|
1496
|
+
return /* @__PURE__ */ r.jsxs(
|
|
1497
1497
|
"button",
|
|
1498
1498
|
{
|
|
1499
1499
|
ref: m,
|
|
1500
1500
|
type: o,
|
|
1501
|
-
className: u(st({ variant: a, size: s }),
|
|
1501
|
+
className: u(st({ variant: a, size: s }), n),
|
|
1502
1502
|
disabled: t || i,
|
|
1503
1503
|
"aria-disabled": t || i,
|
|
1504
1504
|
inert: t || i ? !0 : void 0,
|
|
1505
1505
|
"aria-busy": i ? !0 : void 0,
|
|
1506
1506
|
...d,
|
|
1507
1507
|
children: [
|
|
1508
|
-
i && /* @__PURE__ */
|
|
1509
|
-
|
|
1508
|
+
i && /* @__PURE__ */ r.jsx(
|
|
1509
|
+
k,
|
|
1510
1510
|
{
|
|
1511
1511
|
as: F,
|
|
1512
1512
|
size: h,
|
|
@@ -1519,7 +1519,7 @@ const He = g(function({ children: r, className: a, span: s = 1, title: t, ...o }
|
|
|
1519
1519
|
}
|
|
1520
1520
|
);
|
|
1521
1521
|
}
|
|
1522
|
-
), ot =
|
|
1522
|
+
), ot = g(
|
|
1523
1523
|
"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 no-underline",
|
|
1524
1524
|
{
|
|
1525
1525
|
variants: {
|
|
@@ -1543,7 +1543,7 @@ const He = g(function({ children: r, className: a, span: s = 1, title: t, ...o }
|
|
|
1543
1543
|
}
|
|
1544
1544
|
}
|
|
1545
1545
|
), rr = _.forwardRef(function({
|
|
1546
|
-
className:
|
|
1546
|
+
className: n,
|
|
1547
1547
|
variant: a = "primary",
|
|
1548
1548
|
size: s = "md",
|
|
1549
1549
|
disabled: t = !1,
|
|
@@ -1559,12 +1559,12 @@ const He = g(function({ children: r, className: a, span: s = 1, title: t, ...o }
|
|
|
1559
1559
|
}
|
|
1560
1560
|
l?.(x);
|
|
1561
1561
|
};
|
|
1562
|
-
return /* @__PURE__ */
|
|
1562
|
+
return /* @__PURE__ */ r.jsx(
|
|
1563
1563
|
"a",
|
|
1564
1564
|
{
|
|
1565
1565
|
ref: m,
|
|
1566
1566
|
href: t ? void 0 : i,
|
|
1567
|
-
className: u(ot({ variant: a, size: s }),
|
|
1567
|
+
className: u(ot({ variant: a, size: s }), n),
|
|
1568
1568
|
"aria-disabled": t ? !0 : void 0,
|
|
1569
1569
|
tabIndex: t ? -1 : void 0,
|
|
1570
1570
|
role: t ? "link" : void 0,
|
|
@@ -1573,7 +1573,7 @@ const He = g(function({ children: r, className: a, span: s = 1, title: t, ...o }
|
|
|
1573
1573
|
children: o
|
|
1574
1574
|
}
|
|
1575
1575
|
);
|
|
1576
|
-
}), it =
|
|
1576
|
+
}), it = g(
|
|
1577
1577
|
"z-70 min-w-56 bg-background rounded-lg border border-border transition-all duration-200 ease-out will-change-transform shadow-lg",
|
|
1578
1578
|
{
|
|
1579
1579
|
variants: {
|
|
@@ -1596,24 +1596,24 @@ const He = g(function({ children: r, className: a, span: s = 1, title: t, ...o }
|
|
|
1596
1596
|
if (!e)
|
|
1597
1597
|
throw new Error("useMenuProvider must be used within a MenuProvider");
|
|
1598
1598
|
return e;
|
|
1599
|
-
}, dt =
|
|
1600
|
-
({ children: e },
|
|
1601
|
-
), ut =
|
|
1602
|
-
({ children: e, disabled:
|
|
1599
|
+
}, dt = f(
|
|
1600
|
+
({ children: e }, n) => /* @__PURE__ */ r.jsx("ul", { ref: n, className: "flex flex-col gap-1", children: e })
|
|
1601
|
+
), ut = f(
|
|
1602
|
+
({ children: e, disabled: n, onClick: a, active: s, ...t }, o) => {
|
|
1603
1603
|
const { preserve: i, onClose: l } = ct(), d = (m) => {
|
|
1604
1604
|
a?.(m), i || l();
|
|
1605
1605
|
};
|
|
1606
|
-
return /* @__PURE__ */
|
|
1606
|
+
return /* @__PURE__ */ r.jsx("li", { ref: o, ...t, children: /* @__PURE__ */ r.jsxs(
|
|
1607
1607
|
J,
|
|
1608
1608
|
{
|
|
1609
1609
|
variant: "ghost",
|
|
1610
1610
|
className: u("justify-start w-full gap-2"),
|
|
1611
|
-
disabled:
|
|
1611
|
+
disabled: n,
|
|
1612
1612
|
onClick: d,
|
|
1613
1613
|
children: [
|
|
1614
1614
|
e,
|
|
1615
|
-
s && /* @__PURE__ */
|
|
1616
|
-
|
|
1615
|
+
s && /* @__PURE__ */ r.jsx(
|
|
1616
|
+
k,
|
|
1617
1617
|
{
|
|
1618
1618
|
as: oe,
|
|
1619
1619
|
color: "inherit",
|
|
@@ -1627,7 +1627,7 @@ const He = g(function({ children: r, className: a, span: s = 1, title: t, ...o }
|
|
|
1627
1627
|
}
|
|
1628
1628
|
), mt = ({
|
|
1629
1629
|
isOpen: e,
|
|
1630
|
-
onClose:
|
|
1630
|
+
onClose: n,
|
|
1631
1631
|
size: a = "md",
|
|
1632
1632
|
content: s,
|
|
1633
1633
|
children: t,
|
|
@@ -1636,18 +1636,18 @@ const He = g(function({ children: r, className: a, span: s = 1, title: t, ...o }
|
|
|
1636
1636
|
preserve: l
|
|
1637
1637
|
}) => {
|
|
1638
1638
|
const d = B(null), m = re();
|
|
1639
|
-
return /* @__PURE__ */
|
|
1639
|
+
return /* @__PURE__ */ r.jsx(lt, { value: { onClose: n, preserve: !!l }, children: /* @__PURE__ */ r.jsxs("div", { className: "relative w-fit", children: [
|
|
1640
1640
|
ne(t, {
|
|
1641
1641
|
// @ts-expect-error: ref is valid for button or forwardRef components
|
|
1642
1642
|
ref: d
|
|
1643
1643
|
}),
|
|
1644
|
-
/* @__PURE__ */
|
|
1644
|
+
/* @__PURE__ */ r.jsx(
|
|
1645
1645
|
Ce,
|
|
1646
1646
|
{
|
|
1647
1647
|
id: m,
|
|
1648
1648
|
triggerRef: d,
|
|
1649
1649
|
isOpen: e,
|
|
1650
|
-
onClose:
|
|
1650
|
+
onClose: n,
|
|
1651
1651
|
placement: o,
|
|
1652
1652
|
gap: i,
|
|
1653
1653
|
maxWidth: "sm",
|
|
@@ -1659,8 +1659,8 @@ const He = g(function({ children: r, className: a, span: s = 1, title: t, ...o }
|
|
|
1659
1659
|
}, V = Object.assign(mt, {
|
|
1660
1660
|
Content: dt,
|
|
1661
1661
|
Item: ut
|
|
1662
|
-
}), ht =
|
|
1663
|
-
(e,
|
|
1662
|
+
}), ht = f(
|
|
1663
|
+
(e, n) => {
|
|
1664
1664
|
const {
|
|
1665
1665
|
children: a,
|
|
1666
1666
|
onOpenChange: s,
|
|
@@ -1676,27 +1676,27 @@ const He = g(function({ children: r, className: a, span: s = 1, title: t, ...o }
|
|
|
1676
1676
|
const x = () => {
|
|
1677
1677
|
h(!1);
|
|
1678
1678
|
}, p = (b) => {
|
|
1679
|
-
b.stopPropagation(), h((
|
|
1679
|
+
b.stopPropagation(), h((v) => !v), t?.(b);
|
|
1680
1680
|
};
|
|
1681
|
-
return /* @__PURE__ */
|
|
1681
|
+
return /* @__PURE__ */ r.jsx(
|
|
1682
1682
|
V,
|
|
1683
1683
|
{
|
|
1684
1684
|
isOpen: m,
|
|
1685
1685
|
onClose: x,
|
|
1686
1686
|
placement: o,
|
|
1687
1687
|
preserve: i,
|
|
1688
|
-
content: /* @__PURE__ */
|
|
1689
|
-
children: /* @__PURE__ */
|
|
1688
|
+
content: /* @__PURE__ */ r.jsx(V.Content, { children: a }),
|
|
1689
|
+
children: /* @__PURE__ */ r.jsx(J, { ref: n, onClick: p, ...d, children: l })
|
|
1690
1690
|
}
|
|
1691
1691
|
);
|
|
1692
1692
|
}
|
|
1693
1693
|
), nr = Object.assign(ht, {
|
|
1694
1694
|
Item: V.Item
|
|
1695
1695
|
});
|
|
1696
|
-
function
|
|
1696
|
+
function ft(e = "primary") {
|
|
1697
1697
|
return e === "primary" || e === "destructive" ? "white" : "inherit";
|
|
1698
1698
|
}
|
|
1699
|
-
const
|
|
1699
|
+
const gt = g(
|
|
1700
1700
|
"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",
|
|
1701
1701
|
{
|
|
1702
1702
|
variants: {
|
|
@@ -1729,7 +1729,7 @@ const ft = f(
|
|
|
1729
1729
|
}
|
|
1730
1730
|
), xt = _.forwardRef(
|
|
1731
1731
|
function({
|
|
1732
|
-
className:
|
|
1732
|
+
className: n,
|
|
1733
1733
|
variant: a = "primary",
|
|
1734
1734
|
size: s = "md",
|
|
1735
1735
|
shape: t = "rounded",
|
|
@@ -1739,19 +1739,19 @@ const ft = f(
|
|
|
1739
1739
|
"aria-label": d,
|
|
1740
1740
|
...m
|
|
1741
1741
|
}, h) {
|
|
1742
|
-
const x =
|
|
1743
|
-
return /* @__PURE__ */
|
|
1742
|
+
const x = ft(a);
|
|
1743
|
+
return /* @__PURE__ */ r.jsx(
|
|
1744
1744
|
"button",
|
|
1745
1745
|
{
|
|
1746
1746
|
ref: h,
|
|
1747
1747
|
type: "button",
|
|
1748
1748
|
className: u(
|
|
1749
|
-
|
|
1749
|
+
gt({
|
|
1750
1750
|
variant: a,
|
|
1751
1751
|
size: s,
|
|
1752
1752
|
shape: t
|
|
1753
1753
|
}),
|
|
1754
|
-
|
|
1754
|
+
n
|
|
1755
1755
|
),
|
|
1756
1756
|
disabled: o || i,
|
|
1757
1757
|
"aria-disabled": o || i,
|
|
@@ -1759,20 +1759,20 @@ const ft = f(
|
|
|
1759
1759
|
inert: o || i ? !0 : void 0,
|
|
1760
1760
|
"aria-busy": i ? !0 : void 0,
|
|
1761
1761
|
...m,
|
|
1762
|
-
children: i ? /* @__PURE__ */
|
|
1763
|
-
|
|
1762
|
+
children: i ? /* @__PURE__ */ r.jsx(
|
|
1763
|
+
k,
|
|
1764
1764
|
{
|
|
1765
1765
|
as: F,
|
|
1766
1766
|
size: "sm",
|
|
1767
1767
|
color: x,
|
|
1768
1768
|
className: "animate-spin"
|
|
1769
1769
|
}
|
|
1770
|
-
) : /* @__PURE__ */
|
|
1770
|
+
) : /* @__PURE__ */ r.jsx(k, { as: l, size: "sm", color: x })
|
|
1771
1771
|
}
|
|
1772
1772
|
);
|
|
1773
1773
|
}
|
|
1774
|
-
), bt =
|
|
1775
|
-
(e,
|
|
1774
|
+
), bt = f(
|
|
1775
|
+
(e, n) => {
|
|
1776
1776
|
const {
|
|
1777
1777
|
as: a = ie,
|
|
1778
1778
|
children: s,
|
|
@@ -1788,23 +1788,23 @@ const ft = f(
|
|
|
1788
1788
|
const x = () => {
|
|
1789
1789
|
h(!1);
|
|
1790
1790
|
}, p = (b) => {
|
|
1791
|
-
b.stopPropagation(), h((
|
|
1791
|
+
b.stopPropagation(), h((v) => !v), o?.(b);
|
|
1792
1792
|
};
|
|
1793
|
-
return /* @__PURE__ */
|
|
1793
|
+
return /* @__PURE__ */ r.jsx(
|
|
1794
1794
|
V,
|
|
1795
1795
|
{
|
|
1796
1796
|
isOpen: m,
|
|
1797
1797
|
onClose: x,
|
|
1798
1798
|
placement: i,
|
|
1799
1799
|
preserve: l,
|
|
1800
|
-
content: /* @__PURE__ */
|
|
1801
|
-
children: /* @__PURE__ */
|
|
1800
|
+
content: /* @__PURE__ */ r.jsx(V.Content, { children: s }),
|
|
1801
|
+
children: /* @__PURE__ */ r.jsx(xt, { ref: n, as: a, onClick: p, ...d })
|
|
1802
1802
|
}
|
|
1803
1803
|
);
|
|
1804
1804
|
}
|
|
1805
1805
|
), ar = Object.assign(bt, {
|
|
1806
1806
|
Item: V.Item
|
|
1807
|
-
}), pt =
|
|
1807
|
+
}), pt = g(
|
|
1808
1808
|
"flex justify-between transition-colors duration-200 w-full",
|
|
1809
1809
|
{
|
|
1810
1810
|
variants: {
|
|
@@ -1836,28 +1836,28 @@ const ft = f(
|
|
|
1836
1836
|
as: "button"
|
|
1837
1837
|
}
|
|
1838
1838
|
}
|
|
1839
|
-
),
|
|
1840
|
-
({ children: e },
|
|
1839
|
+
), vt = f(
|
|
1840
|
+
({ children: e }, n) => /* @__PURE__ */ r.jsx(
|
|
1841
1841
|
"ul",
|
|
1842
1842
|
{
|
|
1843
|
-
ref:
|
|
1843
|
+
ref: n,
|
|
1844
1844
|
className: "flex flex-wrap items-center min-w-0 overflow-hidden w-full gap-x-0",
|
|
1845
1845
|
children: e
|
|
1846
1846
|
}
|
|
1847
1847
|
)
|
|
1848
|
-
),
|
|
1849
|
-
({ children: e },
|
|
1848
|
+
), wt = f(
|
|
1849
|
+
({ children: e }, n) => /* @__PURE__ */ r.jsx(
|
|
1850
1850
|
"li",
|
|
1851
1851
|
{
|
|
1852
|
-
ref:
|
|
1852
|
+
ref: n,
|
|
1853
1853
|
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",
|
|
1854
|
-
children: /* @__PURE__ */
|
|
1854
|
+
children: /* @__PURE__ */ r.jsx(C, { as: "small", color: "gray", ellipsis: !0, clamp: 1, children: e })
|
|
1855
1855
|
}
|
|
1856
1856
|
)
|
|
1857
|
-
), yt =
|
|
1857
|
+
), yt = f(
|
|
1858
1858
|
({
|
|
1859
1859
|
size: e = "md",
|
|
1860
|
-
shape:
|
|
1860
|
+
shape: n = "rounded",
|
|
1861
1861
|
avatar: a,
|
|
1862
1862
|
title: s,
|
|
1863
1863
|
subtitle: t,
|
|
@@ -1867,44 +1867,35 @@ const ft = f(
|
|
|
1867
1867
|
as: d = "button",
|
|
1868
1868
|
className: m,
|
|
1869
1869
|
...h
|
|
1870
|
-
}, x) => /* @__PURE__ */
|
|
1870
|
+
}, x) => /* @__PURE__ */ r.jsx(
|
|
1871
1871
|
d,
|
|
1872
1872
|
{
|
|
1873
1873
|
ref: x,
|
|
1874
1874
|
className: u(
|
|
1875
|
-
pt({ size: e, shape:
|
|
1875
|
+
pt({ size: e, shape: n, bordered: l, as: d }),
|
|
1876
1876
|
m,
|
|
1877
1877
|
"@container/card"
|
|
1878
1878
|
),
|
|
1879
1879
|
...h,
|
|
1880
|
-
children: /* @__PURE__ */
|
|
1881
|
-
a && /* @__PURE__ */
|
|
1882
|
-
/* @__PURE__ */
|
|
1883
|
-
/* @__PURE__ */
|
|
1884
|
-
/* @__PURE__ */
|
|
1885
|
-
t && /* @__PURE__ */
|
|
1880
|
+
children: /* @__PURE__ */ r.jsxs("div", { className: "flex items-start gap-3 @sm/card:gap-4 w-full", children: [
|
|
1881
|
+
a && /* @__PURE__ */ r.jsx("div", { className: "flex-shrink-0", children: a }),
|
|
1882
|
+
/* @__PURE__ */ r.jsxs("div", { className: "w-full min-w-0", children: [
|
|
1883
|
+
/* @__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: [
|
|
1884
|
+
/* @__PURE__ */ r.jsx(L, { as: "h6", className: "break-words leading-tight", children: s }),
|
|
1885
|
+
t && /* @__PURE__ */ r.jsx("div", { className: "mt-1", children: typeof t == "string" ? /* @__PURE__ */ r.jsx("div", { className: "flex", children: /* @__PURE__ */ r.jsx(C, { as: "small", color: "gray", children: t }) }) : /* @__PURE__ */ r.jsx("div", { className: "min-w-0 overflow-hidden", children: t }) })
|
|
1886
1886
|
] }) }) }),
|
|
1887
|
-
/* @__PURE__ */
|
|
1888
|
-
o && /* @__PURE__ */
|
|
1889
|
-
i && /* @__PURE__ */
|
|
1890
|
-
C,
|
|
1891
|
-
{
|
|
1892
|
-
as: "small",
|
|
1893
|
-
color: "gray",
|
|
1894
|
-
className: "truncate",
|
|
1895
|
-
align: "right",
|
|
1896
|
-
children: i
|
|
1897
|
-
}
|
|
1898
|
-
) : /* @__PURE__ */ n.jsx("div", { className: "overflow-hidden", children: i }) })
|
|
1887
|
+
/* @__PURE__ */ r.jsxs("div", { className: "flex flex-col gap-2 @sm/card:flex-row @sm/card:justify-between @sm/card:items-center", children: [
|
|
1888
|
+
o && /* @__PURE__ */ r.jsx("div", { className: "order-1 @sm/card:order-none overflow-hidden", children: o }),
|
|
1889
|
+
i && /* @__PURE__ */ r.jsx("div", { className: "flex-shrink-0 order-2 @sm/card:order-none @sm/card:ml-auto", children: typeof i == "string" ? /* @__PURE__ */ r.jsx("div", { className: "flex justify-end", children: /* @__PURE__ */ r.jsx(C, { as: "small", color: "gray", className: "truncate", children: i }) }) : /* @__PURE__ */ r.jsx("div", { className: "overflow-hidden", children: i }) })
|
|
1899
1890
|
] })
|
|
1900
1891
|
] })
|
|
1901
1892
|
] })
|
|
1902
1893
|
}
|
|
1903
1894
|
)
|
|
1904
1895
|
), sr = Object.assign(yt, {
|
|
1905
|
-
List:
|
|
1906
|
-
ListItem:
|
|
1907
|
-
}), jt =
|
|
1896
|
+
List: vt,
|
|
1897
|
+
ListItem: wt
|
|
1898
|
+
}), jt = g(
|
|
1908
1899
|
"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 border border-border text-foreground bg-white hover:bg-neutral focus-visible:ring-foreground-light focus-visible:ring-offset-white",
|
|
1909
1900
|
{
|
|
1910
1901
|
variants: {
|
|
@@ -1919,26 +1910,26 @@ const ft = f(
|
|
|
1919
1910
|
}
|
|
1920
1911
|
}
|
|
1921
1912
|
), or = _.forwardRef(
|
|
1922
|
-
function({ className:
|
|
1923
|
-
return /* @__PURE__ */
|
|
1913
|
+
function({ className: n, size: a = "md", disabled: s = !1, children: t, ...o }, i) {
|
|
1914
|
+
return /* @__PURE__ */ r.jsxs(
|
|
1924
1915
|
"button",
|
|
1925
1916
|
{
|
|
1926
1917
|
ref: i,
|
|
1927
1918
|
type: "button",
|
|
1928
|
-
className: u(jt({ size: a }),
|
|
1919
|
+
className: u(jt({ size: a }), n),
|
|
1929
1920
|
disabled: s,
|
|
1930
1921
|
"aria-disabled": s,
|
|
1931
1922
|
"aria-label": `${t}, removable`,
|
|
1932
1923
|
inert: s ? !0 : void 0,
|
|
1933
1924
|
...o,
|
|
1934
1925
|
children: [
|
|
1935
|
-
/* @__PURE__ */
|
|
1936
|
-
/* @__PURE__ */
|
|
1926
|
+
/* @__PURE__ */ r.jsx("span", { className: "flex-shrink-0", children: t }),
|
|
1927
|
+
/* @__PURE__ */ r.jsx(k, { as: le, color: "inherit", size: a === "lg" ? "md" : "sm" })
|
|
1937
1928
|
]
|
|
1938
1929
|
}
|
|
1939
1930
|
);
|
|
1940
1931
|
}
|
|
1941
|
-
),
|
|
1932
|
+
), Nt = [
|
|
1942
1933
|
// Headings
|
|
1943
1934
|
"[&_h1]:text-2xl",
|
|
1944
1935
|
"[&_h1]:leading-loose",
|
|
@@ -1995,7 +1986,7 @@ const ft = f(
|
|
|
1995
1986
|
"[&_p]:my-2",
|
|
1996
1987
|
"[&_p:first-child]:mt-0",
|
|
1997
1988
|
"[&_p:last-child]:mb-0"
|
|
1998
|
-
],
|
|
1989
|
+
], kt = g(
|
|
1999
1990
|
"block w-full break-words text-ghost text-base leading-normal",
|
|
2000
1991
|
{
|
|
2001
1992
|
variants: {
|
|
@@ -2008,24 +1999,24 @@ const ft = f(
|
|
|
2008
1999
|
scrollable: !1
|
|
2009
2000
|
}
|
|
2010
2001
|
}
|
|
2011
|
-
), Et = _.forwardRef(({ content: e, scrollable:
|
|
2002
|
+
), Et = _.forwardRef(({ content: e, scrollable: n = !1, maxHeight: a, className: s, ...t }, o) => /* @__PURE__ */ r.jsx(
|
|
2012
2003
|
"div",
|
|
2013
2004
|
{
|
|
2014
2005
|
ref: o,
|
|
2015
2006
|
role: "article",
|
|
2016
2007
|
"aria-label": "Formatted text content",
|
|
2017
2008
|
dangerouslySetInnerHTML: { __html: e },
|
|
2018
|
-
style:
|
|
2009
|
+
style: n && a ? { maxHeight: `${a}rem` } : void 0,
|
|
2019
2010
|
className: u(
|
|
2020
|
-
|
|
2021
|
-
...
|
|
2011
|
+
kt({ scrollable: n }),
|
|
2012
|
+
...Nt,
|
|
2022
2013
|
s
|
|
2023
2014
|
),
|
|
2024
2015
|
...t
|
|
2025
2016
|
}
|
|
2026
2017
|
));
|
|
2027
2018
|
Et.displayName = "FormattedText";
|
|
2028
|
-
const Ct =
|
|
2019
|
+
const Ct = g("h-px w-full bg-border border-0", {
|
|
2029
2020
|
variants: {
|
|
2030
2021
|
hasMargin: {
|
|
2031
2022
|
true: "mb-4",
|
|
@@ -2035,16 +2026,16 @@ const Ct = f("h-px w-full bg-border border-0", {
|
|
|
2035
2026
|
defaultVariants: {
|
|
2036
2027
|
hasMargin: !1
|
|
2037
2028
|
}
|
|
2038
|
-
}), ir =
|
|
2039
|
-
({ hasMargin: e = !1, className:
|
|
2029
|
+
}), ir = f(
|
|
2030
|
+
({ hasMargin: e = !1, className: n, ...a }, s) => /* @__PURE__ */ r.jsx(
|
|
2040
2031
|
"hr",
|
|
2041
2032
|
{
|
|
2042
2033
|
ref: s,
|
|
2043
|
-
className: u(Ct({ hasMargin: e }),
|
|
2034
|
+
className: u(Ct({ hasMargin: e }), n),
|
|
2044
2035
|
...a
|
|
2045
2036
|
}
|
|
2046
2037
|
)
|
|
2047
|
-
), _t =
|
|
2038
|
+
), _t = g(
|
|
2048
2039
|
"flex flex-col items-center justify-center text-center border border-border rounded-lg bg-background",
|
|
2049
2040
|
{
|
|
2050
2041
|
variants: {
|
|
@@ -2063,11 +2054,11 @@ const Ct = f("h-px w-full bg-border border-0", {
|
|
|
2063
2054
|
hasGrayBackground: !1
|
|
2064
2055
|
}
|
|
2065
2056
|
}
|
|
2066
|
-
), Vt =
|
|
2057
|
+
), Vt = g(
|
|
2067
2058
|
"flex flex-row items-center gap-3 mb-2"
|
|
2068
2059
|
), lr = _.forwardRef(
|
|
2069
|
-
function({ icon:
|
|
2070
|
-
return /* @__PURE__ */
|
|
2060
|
+
function({ icon: n, title: a, subtitle: s, action: t, className: o, hasGrayBackground: i, ...l }, d) {
|
|
2061
|
+
return /* @__PURE__ */ r.jsxs(
|
|
2071
2062
|
"section",
|
|
2072
2063
|
{
|
|
2073
2064
|
ref: d,
|
|
@@ -2076,12 +2067,12 @@ const Ct = f("h-px w-full bg-border border-0", {
|
|
|
2076
2067
|
"aria-label": "No results found",
|
|
2077
2068
|
...l,
|
|
2078
2069
|
children: [
|
|
2079
|
-
/* @__PURE__ */
|
|
2080
|
-
/* @__PURE__ */
|
|
2081
|
-
/* @__PURE__ */
|
|
2070
|
+
/* @__PURE__ */ r.jsxs("header", { className: Vt(), children: [
|
|
2071
|
+
/* @__PURE__ */ r.jsx(k, { as: n, size: "lg", color: "ghost", "aria-hidden": "true" }),
|
|
2072
|
+
/* @__PURE__ */ r.jsx(L, { as: "h5", color: "neutral", children: a })
|
|
2082
2073
|
] }),
|
|
2083
|
-
s && /* @__PURE__ */
|
|
2084
|
-
t && /* @__PURE__ */
|
|
2074
|
+
s && /* @__PURE__ */ r.jsx(C, { as: "p", align: "center", color: "gray", className: "mb-4", children: s }),
|
|
2075
|
+
t && /* @__PURE__ */ r.jsx("div", { role: "group", "aria-label": "Available actions", children: t })
|
|
2085
2076
|
]
|
|
2086
2077
|
}
|
|
2087
2078
|
);
|
|
@@ -2155,17 +2146,17 @@ const q = (e) => {
|
|
|
2155
2146
|
default:
|
|
2156
2147
|
return "col-span-2";
|
|
2157
2148
|
}
|
|
2158
|
-
}, At =
|
|
2159
|
-
({ children: e, className:
|
|
2149
|
+
}, At = f(
|
|
2150
|
+
({ children: e, className: n, ...a }, s) => {
|
|
2160
2151
|
const { columns: t } = W();
|
|
2161
|
-
return /* @__PURE__ */
|
|
2152
|
+
return /* @__PURE__ */ r.jsx(
|
|
2162
2153
|
"div",
|
|
2163
2154
|
{
|
|
2164
2155
|
role: "rowgroup",
|
|
2165
|
-
className: u("bg-neutral-soft",
|
|
2156
|
+
className: u("bg-neutral-soft", n),
|
|
2166
2157
|
...a,
|
|
2167
2158
|
ref: s,
|
|
2168
|
-
children: /* @__PURE__ */
|
|
2159
|
+
children: /* @__PURE__ */ r.jsx(
|
|
2169
2160
|
"div",
|
|
2170
2161
|
{
|
|
2171
2162
|
role: "row",
|
|
@@ -2176,19 +2167,19 @@ const q = (e) => {
|
|
|
2176
2167
|
}
|
|
2177
2168
|
);
|
|
2178
2169
|
}
|
|
2179
|
-
), Lt =
|
|
2180
|
-
({ children: e, className:
|
|
2181
|
-
), Mt =
|
|
2182
|
-
({ children: e, className:
|
|
2170
|
+
), Lt = f(
|
|
2171
|
+
({ children: e, className: n, ...a }, s) => /* @__PURE__ */ r.jsx("div", { role: "rowgroup", ref: s, className: u(n), ...a, children: e })
|
|
2172
|
+
), Mt = f(
|
|
2173
|
+
({ children: e, className: n, ...a }, s) => {
|
|
2183
2174
|
const { columns: t } = W();
|
|
2184
|
-
return /* @__PURE__ */
|
|
2175
|
+
return /* @__PURE__ */ r.jsx(
|
|
2185
2176
|
"div",
|
|
2186
2177
|
{
|
|
2187
2178
|
role: "rowgroup",
|
|
2188
|
-
className: u("bg-neutral-soft",
|
|
2179
|
+
className: u("bg-neutral-soft", n),
|
|
2189
2180
|
...a,
|
|
2190
2181
|
ref: s,
|
|
2191
|
-
children: /* @__PURE__ */
|
|
2182
|
+
children: /* @__PURE__ */ r.jsx(
|
|
2192
2183
|
"div",
|
|
2193
2184
|
{
|
|
2194
2185
|
role: "row",
|
|
@@ -2199,10 +2190,10 @@ const q = (e) => {
|
|
|
2199
2190
|
}
|
|
2200
2191
|
);
|
|
2201
2192
|
}
|
|
2202
|
-
), Rt =
|
|
2203
|
-
({ children: e, className:
|
|
2193
|
+
), Rt = f(
|
|
2194
|
+
({ children: e, className: n, ...a }, s) => {
|
|
2204
2195
|
const { columns: t } = W();
|
|
2205
|
-
return /* @__PURE__ */
|
|
2196
|
+
return /* @__PURE__ */ r.jsx(
|
|
2206
2197
|
"div",
|
|
2207
2198
|
{
|
|
2208
2199
|
role: "row",
|
|
@@ -2210,7 +2201,7 @@ const q = (e) => {
|
|
|
2210
2201
|
"grid gap-4",
|
|
2211
2202
|
q(t),
|
|
2212
2203
|
"border-b border-border last:border-0",
|
|
2213
|
-
|
|
2204
|
+
n
|
|
2214
2205
|
),
|
|
2215
2206
|
ref: s,
|
|
2216
2207
|
...a,
|
|
@@ -2218,11 +2209,11 @@ const q = (e) => {
|
|
|
2218
2209
|
}
|
|
2219
2210
|
);
|
|
2220
2211
|
}
|
|
2221
|
-
), Y =
|
|
2222
|
-
({ as: e = "td", span:
|
|
2212
|
+
), Y = f(
|
|
2213
|
+
({ as: e = "td", span: n, align: a = "left", children: s, className: t, ...o }, i) => {
|
|
2223
2214
|
const l = e === "th" ? "columnheader" : "cell";
|
|
2224
2215
|
let d = "text-left";
|
|
2225
|
-
return a === "center" ? d = "text-center" : a === "right" && (d = "text-right"), /* @__PURE__ */
|
|
2216
|
+
return a === "center" ? d = "text-center" : a === "right" && (d = "text-right"), /* @__PURE__ */ r.jsx(
|
|
2226
2217
|
"div",
|
|
2227
2218
|
{
|
|
2228
2219
|
ref: i,
|
|
@@ -2230,7 +2221,7 @@ const q = (e) => {
|
|
|
2230
2221
|
className: u(
|
|
2231
2222
|
"px-4 py-2",
|
|
2232
2223
|
"[&:not(:last-child)]:border-r [&:not(:last-child)]:border-border",
|
|
2233
|
-
zt(
|
|
2224
|
+
zt(n),
|
|
2234
2225
|
d,
|
|
2235
2226
|
"truncate overflow-hidden whitespace-nowrap",
|
|
2236
2227
|
t
|
|
@@ -2240,34 +2231,34 @@ const q = (e) => {
|
|
|
2240
2231
|
}
|
|
2241
2232
|
);
|
|
2242
2233
|
}
|
|
2243
|
-
), Tt =
|
|
2244
|
-
(e,
|
|
2234
|
+
), Tt = f(
|
|
2235
|
+
(e, n) => /* @__PURE__ */ r.jsx(
|
|
2245
2236
|
Y,
|
|
2246
2237
|
{
|
|
2247
2238
|
...e,
|
|
2248
2239
|
as: "td",
|
|
2249
|
-
ref:
|
|
2240
|
+
ref: n,
|
|
2250
2241
|
className: u(
|
|
2251
2242
|
"truncate overflow-hidden whitespace-nowrap",
|
|
2252
2243
|
e.className
|
|
2253
2244
|
)
|
|
2254
2245
|
}
|
|
2255
2246
|
)
|
|
2256
|
-
), Ot =
|
|
2257
|
-
(e,
|
|
2247
|
+
), Ot = f(
|
|
2248
|
+
(e, n) => /* @__PURE__ */ r.jsx(
|
|
2258
2249
|
Y,
|
|
2259
2250
|
{
|
|
2260
2251
|
...e,
|
|
2261
2252
|
as: "th",
|
|
2262
|
-
ref:
|
|
2253
|
+
ref: n,
|
|
2263
2254
|
className: u(
|
|
2264
2255
|
"truncate overflow-hidden whitespace-nowrap",
|
|
2265
2256
|
e.className
|
|
2266
2257
|
)
|
|
2267
2258
|
}
|
|
2268
2259
|
)
|
|
2269
|
-
), St =
|
|
2270
|
-
({ children: e, className:
|
|
2260
|
+
), St = f(
|
|
2261
|
+
({ children: e, className: n, columns: a = 12, ...s }, t) => /* @__PURE__ */ r.jsx(It, { value: { columns: a }, children: /* @__PURE__ */ r.jsx(
|
|
2271
2262
|
"div",
|
|
2272
2263
|
{
|
|
2273
2264
|
ref: t,
|
|
@@ -2278,7 +2269,7 @@ const q = (e) => {
|
|
|
2278
2269
|
"text-foreground",
|
|
2279
2270
|
"sm:rounded-xl",
|
|
2280
2271
|
"transition-colors",
|
|
2281
|
-
|
|
2272
|
+
n
|
|
2282
2273
|
),
|
|
2283
2274
|
...s,
|
|
2284
2275
|
children: e
|
|
@@ -2291,7 +2282,7 @@ const q = (e) => {
|
|
|
2291
2282
|
Footer: Mt,
|
|
2292
2283
|
Row: Rt,
|
|
2293
2284
|
RowItem: Tt
|
|
2294
|
-
}), Bt =
|
|
2285
|
+
}), Bt = g(
|
|
2295
2286
|
// Base classes
|
|
2296
2287
|
"block transition-colors duration-200",
|
|
2297
2288
|
{
|
|
@@ -2326,25 +2317,25 @@ const q = (e) => {
|
|
|
2326
2317
|
shape: "rounded"
|
|
2327
2318
|
}
|
|
2328
2319
|
}
|
|
2329
|
-
), dr =
|
|
2320
|
+
), dr = f(
|
|
2330
2321
|
({
|
|
2331
2322
|
as: e = "div",
|
|
2332
|
-
variant:
|
|
2323
|
+
variant: n = "white",
|
|
2333
2324
|
size: a = "md",
|
|
2334
2325
|
shape: s = "rounded",
|
|
2335
2326
|
className: t,
|
|
2336
2327
|
...o
|
|
2337
|
-
}, i) => /* @__PURE__ */
|
|
2328
|
+
}, i) => /* @__PURE__ */ r.jsx(
|
|
2338
2329
|
e,
|
|
2339
2330
|
{
|
|
2340
2331
|
ref: i,
|
|
2341
|
-
className: u(Bt({ variant:
|
|
2332
|
+
className: u(Bt({ variant: n, size: a, shape: s }), t),
|
|
2342
2333
|
...o
|
|
2343
2334
|
}
|
|
2344
2335
|
)
|
|
2345
2336
|
);
|
|
2346
2337
|
function Wt({ src: e }) {
|
|
2347
|
-
const [
|
|
2338
|
+
const [n, a] = j(!1), [s, t] = j(!1), o = B(!1), i = () => {
|
|
2348
2339
|
a(!0);
|
|
2349
2340
|
}, l = () => {
|
|
2350
2341
|
t(!0);
|
|
@@ -2360,13 +2351,13 @@ function Wt({ src: e }) {
|
|
|
2360
2351
|
o.current = !0;
|
|
2361
2352
|
};
|
|
2362
2353
|
}, [e]), {
|
|
2363
|
-
loaded:
|
|
2354
|
+
loaded: n,
|
|
2364
2355
|
errored: s,
|
|
2365
2356
|
handleLoad: i,
|
|
2366
2357
|
handleError: l
|
|
2367
2358
|
};
|
|
2368
2359
|
}
|
|
2369
|
-
const qt =
|
|
2360
|
+
const qt = g("block object-cover", {
|
|
2370
2361
|
variants: {
|
|
2371
2362
|
position: {
|
|
2372
2363
|
cover: "object-cover",
|
|
@@ -2396,7 +2387,7 @@ const qt = f("block object-cover", {
|
|
|
2396
2387
|
size: "auto",
|
|
2397
2388
|
shape: "rectangle"
|
|
2398
2389
|
}
|
|
2399
|
-
}), Z =
|
|
2390
|
+
}), Z = g(
|
|
2400
2391
|
"flex items-center justify-center bg-neutral-soft text-ghost border border-border",
|
|
2401
2392
|
{
|
|
2402
2393
|
variants: {
|
|
@@ -2421,37 +2412,37 @@ const qt = f("block object-cover", {
|
|
|
2421
2412
|
);
|
|
2422
2413
|
function Pt({
|
|
2423
2414
|
className: e,
|
|
2424
|
-
shape:
|
|
2415
|
+
shape: n,
|
|
2425
2416
|
size: a,
|
|
2426
2417
|
height: s,
|
|
2427
2418
|
width: t
|
|
2428
2419
|
}) {
|
|
2429
|
-
return /* @__PURE__ */
|
|
2420
|
+
return /* @__PURE__ */ r.jsx(
|
|
2430
2421
|
de,
|
|
2431
2422
|
{
|
|
2432
|
-
className: u(Z({ shape:
|
|
2423
|
+
className: u(Z({ shape: n, size: a }), e),
|
|
2433
2424
|
style: { height: s, width: t }
|
|
2434
2425
|
}
|
|
2435
2426
|
);
|
|
2436
2427
|
}
|
|
2437
2428
|
function Ht({
|
|
2438
2429
|
alt: e,
|
|
2439
|
-
width:
|
|
2430
|
+
width: n,
|
|
2440
2431
|
height: a,
|
|
2441
2432
|
className: s,
|
|
2442
2433
|
style: t,
|
|
2443
2434
|
shape: o,
|
|
2444
2435
|
size: i
|
|
2445
2436
|
}) {
|
|
2446
|
-
return /* @__PURE__ */
|
|
2437
|
+
return /* @__PURE__ */ r.jsxs(
|
|
2447
2438
|
"div",
|
|
2448
2439
|
{
|
|
2449
2440
|
className: Z({ shape: o, size: i, className: s }),
|
|
2450
|
-
style: { width:
|
|
2441
|
+
style: { width: n, height: a, ...t },
|
|
2451
2442
|
"aria-label": e,
|
|
2452
2443
|
role: "img",
|
|
2453
2444
|
children: [
|
|
2454
|
-
/* @__PURE__ */
|
|
2445
|
+
/* @__PURE__ */ r.jsx(
|
|
2455
2446
|
ce,
|
|
2456
2447
|
{
|
|
2457
2448
|
size: 32,
|
|
@@ -2459,15 +2450,15 @@ function Ht({
|
|
|
2459
2450
|
"aria-hidden": "true"
|
|
2460
2451
|
}
|
|
2461
2452
|
),
|
|
2462
|
-
/* @__PURE__ */
|
|
2453
|
+
/* @__PURE__ */ r.jsx("span", { style: { opacity: 0.7 }, children: e })
|
|
2463
2454
|
]
|
|
2464
2455
|
}
|
|
2465
2456
|
);
|
|
2466
2457
|
}
|
|
2467
|
-
const P =
|
|
2458
|
+
const P = f(
|
|
2468
2459
|
({
|
|
2469
2460
|
src: e,
|
|
2470
|
-
alt:
|
|
2461
|
+
alt: n,
|
|
2471
2462
|
onLoad: a,
|
|
2472
2463
|
onError: s,
|
|
2473
2464
|
width: t,
|
|
@@ -2479,30 +2470,30 @@ const P = g(
|
|
|
2479
2470
|
className: h,
|
|
2480
2471
|
...x
|
|
2481
2472
|
}, p) => {
|
|
2482
|
-
const { loaded: b, errored:
|
|
2473
|
+
const { loaded: b, errored: v, handleLoad: w, handleError: N } = Wt({
|
|
2483
2474
|
src: e
|
|
2484
2475
|
}), y = typeof t == "number" ? t : Number(t), I = typeof o == "number" ? o : Number(o);
|
|
2485
|
-
return !b && !
|
|
2476
|
+
return !b && !v ? /* @__PURE__ */ r.jsx(
|
|
2486
2477
|
Pt,
|
|
2487
2478
|
{
|
|
2488
2479
|
shape: m,
|
|
2489
2480
|
width: y,
|
|
2490
2481
|
height: I
|
|
2491
2482
|
}
|
|
2492
|
-
) :
|
|
2483
|
+
) : v ? /* @__PURE__ */ r.jsx(
|
|
2493
2484
|
Ht,
|
|
2494
2485
|
{
|
|
2495
2486
|
shape: m,
|
|
2496
|
-
alt:
|
|
2487
|
+
alt: n,
|
|
2497
2488
|
width: y,
|
|
2498
2489
|
height: I
|
|
2499
2490
|
}
|
|
2500
|
-
) : /* @__PURE__ */
|
|
2491
|
+
) : /* @__PURE__ */ r.jsx(
|
|
2501
2492
|
"img",
|
|
2502
2493
|
{
|
|
2503
2494
|
ref: p,
|
|
2504
2495
|
src: e,
|
|
2505
|
-
alt:
|
|
2496
|
+
alt: n,
|
|
2506
2497
|
width: y,
|
|
2507
2498
|
height: I,
|
|
2508
2499
|
loading: i,
|
|
@@ -2515,23 +2506,23 @@ const P = g(
|
|
|
2515
2506
|
h
|
|
2516
2507
|
),
|
|
2517
2508
|
onLoad: (z) => {
|
|
2518
|
-
|
|
2509
|
+
w(), a?.(z);
|
|
2519
2510
|
},
|
|
2520
2511
|
onError: (z) => {
|
|
2521
|
-
|
|
2512
|
+
N(), s?.(z);
|
|
2522
2513
|
},
|
|
2523
2514
|
...x
|
|
2524
2515
|
}
|
|
2525
2516
|
);
|
|
2526
2517
|
}
|
|
2527
|
-
), ur =
|
|
2518
|
+
), ur = f((e, n) => /* @__PURE__ */ r.jsx(P, { ref: n, ...e, shape: "circle" })), mr = f((e, n) => /* @__PURE__ */ r.jsx(P, { ref: n, ...e, shape: "square" })), hr = f((e, n) => /* @__PURE__ */ r.jsx(P, { ref: n, ...e, shape: "rectangle" }));
|
|
2528
2519
|
export {
|
|
2529
2520
|
Ut as A,
|
|
2530
2521
|
er as B,
|
|
2531
2522
|
sr as C,
|
|
2532
2523
|
or as F,
|
|
2533
2524
|
L as H,
|
|
2534
|
-
|
|
2525
|
+
k as I,
|
|
2535
2526
|
V as M,
|
|
2536
2527
|
lr as N,
|
|
2537
2528
|
cr as T,
|
|
@@ -2548,7 +2539,7 @@ export {
|
|
|
2548
2539
|
ar as k,
|
|
2549
2540
|
xt as l,
|
|
2550
2541
|
Et as m,
|
|
2551
|
-
|
|
2542
|
+
Nt as n,
|
|
2552
2543
|
ir as o,
|
|
2553
2544
|
C as p,
|
|
2554
2545
|
dr as q,
|
|
@@ -2556,5 +2547,5 @@ export {
|
|
|
2556
2547
|
mr as s,
|
|
2557
2548
|
hr as t,
|
|
2558
2549
|
P as u,
|
|
2559
|
-
|
|
2550
|
+
ke as v
|
|
2560
2551
|
};
|