@dimasbaguspm/versaur 0.0.60 → 0.0.61
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-CCvXv24a.js → image-rectangle-CLLXF8w_.js} +409 -347
- package/dist/js/index.js +63 -61
- 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 +27 -25
- package/dist/js/{tabs-BQs53hHL.js → tabs-DeyqSghV.js} +1 -1
- package/dist/js/{time-picker-input-Disd231b.js → time-picker-input-B_cV6nlk.js} +854 -642
- package/dist/js/{tooltip-Dpx3TpR6.js → tooltip-C1TbSbNF.js} +1 -1
- package/dist/js/{top-bar-DMBbEIlR.js → top-bar-BGJufFzt.js} +1 -1
- package/dist/types/forms/textarea-input/index.d.ts +1 -1
- package/dist/types/forms/textarea-input/textarea-input.atoms.d.ts +53 -0
- package/dist/types/forms/textarea-input/textarea-input.d.ts +1 -0
- package/dist/types/forms/textarea-input/types.d.ts +28 -0
- package/dist/types/forms/textarea-input/use-textarea-formatting.d.ts +21 -0
- package/dist/types/primitive/formatted-text/formatted-text.d.ts +10 -0
- package/dist/types/primitive/formatted-text/index.d.ts +3 -0
- package/dist/types/primitive/formatted-text/types.d.ts +19 -0
- package/dist/types/primitive/index.d.ts +1 -0
- package/dist/utils/enforce-subpath-import.js +2 -0
- package/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { j as
|
|
1
|
+
import { j as n } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
2
|
import * as c from "react";
|
|
3
|
-
import
|
|
4
|
-
import { ChevronDown as ae, ChevronRight as se, LoaderCircleIcon as
|
|
3
|
+
import z, { createContext as R, useContext as O, forwardRef as h, useState as k, useRef as T, useCallback as L, useEffect as C, useId as re, cloneElement as ne } from "react";
|
|
4
|
+
import { ChevronDown as ae, ChevronRight as se, LoaderCircleIcon as H, CheckIcon as oe, EllipsisVerticalIcon as ie, XIcon as le, ImageOff as ce } from "lucide-react";
|
|
5
5
|
import { c as g, a as f } from "./index-BDtz_hQY.js";
|
|
6
6
|
import { S as de } from "./skeleton-BRwIW26B.js";
|
|
7
|
-
const F =
|
|
7
|
+
const F = R(
|
|
8
8
|
null
|
|
9
9
|
), $ = () => {
|
|
10
|
-
const e =
|
|
10
|
+
const e = O(F);
|
|
11
11
|
if (!e)
|
|
12
12
|
throw new Error(
|
|
13
13
|
"Accordion compound components must be used within Accordion"
|
|
@@ -141,7 +141,7 @@ const F = O(
|
|
|
141
141
|
}), G = h(
|
|
142
142
|
({
|
|
143
143
|
level: e = 3,
|
|
144
|
-
color:
|
|
144
|
+
color: r = "black",
|
|
145
145
|
hasUnderline: a = !1,
|
|
146
146
|
isCapitalize: s = !1,
|
|
147
147
|
hasMargin: t = !1,
|
|
@@ -152,15 +152,15 @@ const F = O(
|
|
|
152
152
|
className: u,
|
|
153
153
|
children: m,
|
|
154
154
|
...x
|
|
155
|
-
},
|
|
156
|
-
const
|
|
157
|
-
return /* @__PURE__ */
|
|
158
|
-
|
|
155
|
+
}, p) => {
|
|
156
|
+
const b = `h${e}`;
|
|
157
|
+
return /* @__PURE__ */ n.jsx(
|
|
158
|
+
b,
|
|
159
159
|
{
|
|
160
|
-
ref:
|
|
160
|
+
ref: p,
|
|
161
161
|
className: f(
|
|
162
162
|
xe({
|
|
163
|
-
color:
|
|
163
|
+
color: r,
|
|
164
164
|
hasUnderline: a,
|
|
165
165
|
isCapitalize: s,
|
|
166
166
|
hasMargin: t,
|
|
@@ -179,7 +179,7 @@ const F = O(
|
|
|
179
179
|
}
|
|
180
180
|
);
|
|
181
181
|
G.displayName = "Heading";
|
|
182
|
-
const
|
|
182
|
+
const be = g("inline-flex items-center justify-center", {
|
|
183
183
|
variants: {
|
|
184
184
|
size: {
|
|
185
185
|
xs: "w-3 h-3",
|
|
@@ -209,45 +209,45 @@ const pe = g("inline-flex items-center justify-center", {
|
|
|
209
209
|
size: "md",
|
|
210
210
|
color: "primary"
|
|
211
211
|
}
|
|
212
|
-
}), E =
|
|
213
|
-
return /* @__PURE__ */
|
|
214
|
-
|
|
212
|
+
}), E = z.forwardRef(function({ as: r, color: a = "primary", size: s = "md", className: t, ...o }, i) {
|
|
213
|
+
return /* @__PURE__ */ n.jsx(
|
|
214
|
+
r,
|
|
215
215
|
{
|
|
216
216
|
ref: i,
|
|
217
|
-
className:
|
|
217
|
+
className: be({ color: a, size: s, className: t }),
|
|
218
218
|
...o
|
|
219
219
|
}
|
|
220
220
|
);
|
|
221
|
-
}),
|
|
222
|
-
return /* @__PURE__ */
|
|
221
|
+
}), pe = h(function({ className: r, children: a, ...s }, t) {
|
|
222
|
+
return /* @__PURE__ */ n.jsx(
|
|
223
223
|
G,
|
|
224
224
|
{
|
|
225
225
|
ref: t,
|
|
226
226
|
level: 4,
|
|
227
|
-
className: f("font-medium",
|
|
227
|
+
className: f("font-medium", r),
|
|
228
228
|
...s,
|
|
229
229
|
color: "black",
|
|
230
230
|
children: a
|
|
231
231
|
}
|
|
232
232
|
);
|
|
233
|
-
}), we = h(function({ className:
|
|
233
|
+
}), we = h(function({ className: r, children: a, ...s }, t) {
|
|
234
234
|
const { isOpen: o } = $();
|
|
235
|
-
return /* @__PURE__ */
|
|
235
|
+
return /* @__PURE__ */ n.jsx(
|
|
236
236
|
"div",
|
|
237
237
|
{
|
|
238
238
|
ref: t,
|
|
239
|
-
className: f(me({ isOpen: o }),
|
|
239
|
+
className: f(me({ isOpen: o }), r),
|
|
240
240
|
...s,
|
|
241
|
-
children: /* @__PURE__ */
|
|
241
|
+
children: /* @__PURE__ */ n.jsx("div", { className: he(), children: a })
|
|
242
242
|
}
|
|
243
243
|
);
|
|
244
|
-
}), U = h(function({ as:
|
|
244
|
+
}), U = h(function({ as: r, ...a }, s) {
|
|
245
245
|
const { isOpen: t } = $();
|
|
246
|
-
return /* @__PURE__ */
|
|
246
|
+
return /* @__PURE__ */ n.jsx(
|
|
247
247
|
E,
|
|
248
248
|
{
|
|
249
249
|
ref: s,
|
|
250
|
-
as:
|
|
250
|
+
as: r,
|
|
251
251
|
color: "ghost",
|
|
252
252
|
size: "sm",
|
|
253
253
|
className: ge({ isOpen: t }),
|
|
@@ -256,7 +256,7 @@ const pe = g("inline-flex items-center justify-center", {
|
|
|
256
256
|
);
|
|
257
257
|
}), ve = h(
|
|
258
258
|
function({
|
|
259
|
-
title:
|
|
259
|
+
title: r,
|
|
260
260
|
subtitle: a,
|
|
261
261
|
isDefaultOpen: s = !1,
|
|
262
262
|
disabled: t = !1,
|
|
@@ -265,14 +265,14 @@ const pe = g("inline-flex items-center justify-center", {
|
|
|
265
265
|
children: l,
|
|
266
266
|
...d
|
|
267
267
|
}, u) {
|
|
268
|
-
const [m, x] = k(s),
|
|
268
|
+
const [m, x] = k(s), p = () => {
|
|
269
269
|
t || x((w) => !w);
|
|
270
|
-
},
|
|
270
|
+
}, b = {
|
|
271
271
|
isOpen: m,
|
|
272
|
-
toggle:
|
|
272
|
+
toggle: p,
|
|
273
273
|
disabled: t
|
|
274
274
|
};
|
|
275
|
-
return /* @__PURE__ */
|
|
275
|
+
return /* @__PURE__ */ n.jsx(F.Provider, { value: b, children: /* @__PURE__ */ n.jsxs(
|
|
276
276
|
"div",
|
|
277
277
|
{
|
|
278
278
|
ref: u,
|
|
@@ -283,39 +283,39 @@ const pe = g("inline-flex items-center justify-center", {
|
|
|
283
283
|
),
|
|
284
284
|
...d,
|
|
285
285
|
children: [
|
|
286
|
-
/* @__PURE__ */
|
|
286
|
+
/* @__PURE__ */ n.jsx(
|
|
287
287
|
"div",
|
|
288
288
|
{
|
|
289
289
|
role: "button",
|
|
290
290
|
className: fe({ disabled: t, isOpen: m }),
|
|
291
|
-
onClick:
|
|
291
|
+
onClick: p,
|
|
292
292
|
"aria-disabled": t,
|
|
293
293
|
"aria-expanded": m,
|
|
294
|
-
children: /* @__PURE__ */
|
|
295
|
-
/* @__PURE__ */
|
|
296
|
-
/* @__PURE__ */
|
|
297
|
-
a && /* @__PURE__ */
|
|
294
|
+
children: /* @__PURE__ */ n.jsxs("div", { className: "flex items-center justify-between w-full gap-2", children: [
|
|
295
|
+
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-3 flex-grow", children: [
|
|
296
|
+
/* @__PURE__ */ n.jsx("div", { className: "flex-1", children: r }),
|
|
297
|
+
a && /* @__PURE__ */ n.jsx("div", { className: "flex-shrink-0", children: a })
|
|
298
298
|
] }),
|
|
299
|
-
/* @__PURE__ */
|
|
299
|
+
/* @__PURE__ */ n.jsx(U, { as: ae })
|
|
300
300
|
] })
|
|
301
301
|
}
|
|
302
302
|
),
|
|
303
|
-
/* @__PURE__ */
|
|
303
|
+
/* @__PURE__ */ n.jsx(
|
|
304
304
|
"div",
|
|
305
305
|
{
|
|
306
306
|
className: f(
|
|
307
307
|
"overflow-hidden transition-all duration-300",
|
|
308
308
|
m ? "max-h-screen opacity-100" : "max-h-0 opacity-0"
|
|
309
309
|
),
|
|
310
|
-
children: /* @__PURE__ */
|
|
310
|
+
children: /* @__PURE__ */ n.jsx("div", { className: "p-4 pt-2", children: l })
|
|
311
311
|
}
|
|
312
312
|
)
|
|
313
313
|
]
|
|
314
314
|
}
|
|
315
315
|
) });
|
|
316
316
|
}
|
|
317
|
-
),
|
|
318
|
-
Title:
|
|
317
|
+
), Ut = Object.assign(ve, {
|
|
318
|
+
Title: pe,
|
|
319
319
|
Content: we,
|
|
320
320
|
Icon: U
|
|
321
321
|
}), ye = g(
|
|
@@ -340,8 +340,8 @@ const pe = g("inline-flex items-center justify-center", {
|
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
);
|
|
343
|
-
function je(e,
|
|
344
|
-
const t = e.getBoundingClientRect(), o =
|
|
343
|
+
function je(e, r, a = "bottom", s = 8) {
|
|
344
|
+
const t = e.getBoundingClientRect(), o = r.getBoundingClientRect();
|
|
345
345
|
let i = 0, l = 0;
|
|
346
346
|
switch (a) {
|
|
347
347
|
// Top placements
|
|
@@ -392,42 +392,42 @@ function je(e, n, a = "bottom", s = 8) {
|
|
|
392
392
|
margin: 0
|
|
393
393
|
};
|
|
394
394
|
}
|
|
395
|
-
function ke(e,
|
|
396
|
-
const t =
|
|
395
|
+
function ke(e, r, a, s) {
|
|
396
|
+
const t = T(null), [o, i] = k(!1), l = r !== void 0, d = l ? r : o, u = L(() => {
|
|
397
397
|
t.current && t.current.showPopover?.();
|
|
398
398
|
}, []), m = L(() => {
|
|
399
399
|
t.current && t.current.hidePopover?.();
|
|
400
400
|
}, []), x = L(() => {
|
|
401
401
|
t.current && t.current.togglePopover?.();
|
|
402
|
-
}, []),
|
|
403
|
-
(
|
|
402
|
+
}, []), p = L(
|
|
403
|
+
(b = "toggle") => ({
|
|
404
404
|
popoverTarget: e,
|
|
405
|
-
popoverTargetAction:
|
|
405
|
+
popoverTargetAction: b
|
|
406
406
|
}),
|
|
407
407
|
[e]
|
|
408
408
|
);
|
|
409
409
|
return C(() => {
|
|
410
|
-
const
|
|
411
|
-
if (!
|
|
410
|
+
const b = t.current;
|
|
411
|
+
if (!b) return;
|
|
412
412
|
const w = (v) => {
|
|
413
413
|
const y = v.newState === "open";
|
|
414
414
|
l || i(y), y && a ? a() : !y && s && s();
|
|
415
415
|
};
|
|
416
|
-
return
|
|
417
|
-
|
|
416
|
+
return b.addEventListener("toggle", w), () => {
|
|
417
|
+
b.removeEventListener("toggle", w);
|
|
418
418
|
};
|
|
419
419
|
}, [l, a, s]), C(() => {
|
|
420
420
|
if (!l || !t.current) return;
|
|
421
|
-
const
|
|
422
|
-
if (!
|
|
421
|
+
const b = t.current;
|
|
422
|
+
if (!b.showPopover || !b.hidePopover) return;
|
|
423
423
|
let w = !1;
|
|
424
424
|
try {
|
|
425
|
-
w =
|
|
425
|
+
w = b.matches(":popover-open");
|
|
426
426
|
} catch {
|
|
427
427
|
}
|
|
428
|
-
|
|
429
|
-
}, [
|
|
430
|
-
getTriggerProps:
|
|
428
|
+
r && !w ? u() : !r && w && m();
|
|
429
|
+
}, [r, l, u, m]), {
|
|
430
|
+
getTriggerProps: p,
|
|
431
431
|
show: u,
|
|
432
432
|
hide: m,
|
|
433
433
|
toggle: x,
|
|
@@ -435,14 +435,14 @@ function ke(e, n, a, s) {
|
|
|
435
435
|
popoverRef: t
|
|
436
436
|
};
|
|
437
437
|
}
|
|
438
|
-
const Ne = (...e) => (
|
|
438
|
+
const Ne = (...e) => (r) => {
|
|
439
439
|
e.forEach((a) => {
|
|
440
|
-
typeof a == "function" ? a(
|
|
440
|
+
typeof a == "function" ? a(r) : a && "current" in a && (a.current = r);
|
|
441
441
|
});
|
|
442
442
|
}, D = h(
|
|
443
443
|
({
|
|
444
444
|
id: e,
|
|
445
|
-
children:
|
|
445
|
+
children: r,
|
|
446
446
|
isOpen: a,
|
|
447
447
|
onOpen: s,
|
|
448
448
|
onClose: t,
|
|
@@ -453,8 +453,8 @@ const Ne = (...e) => (n) => {
|
|
|
453
453
|
gap: u = 8,
|
|
454
454
|
maxWidth: m = "sm",
|
|
455
455
|
className: x,
|
|
456
|
-
style:
|
|
457
|
-
...
|
|
456
|
+
style: p,
|
|
457
|
+
...b
|
|
458
458
|
}, w) => {
|
|
459
459
|
const { popoverRef: v, isOpen: N } = ke(
|
|
460
460
|
e,
|
|
@@ -467,7 +467,7 @@ const Ne = (...e) => (n) => {
|
|
|
467
467
|
C(() => {
|
|
468
468
|
if (!d?.current || !v.current)
|
|
469
469
|
return;
|
|
470
|
-
const
|
|
470
|
+
const _ = () => {
|
|
471
471
|
if (!d.current || !v.current) return;
|
|
472
472
|
const te = je(
|
|
473
473
|
d.current,
|
|
@@ -479,13 +479,13 @@ const Ne = (...e) => (n) => {
|
|
|
479
479
|
};
|
|
480
480
|
N ? (S(!1), requestAnimationFrame(() => {
|
|
481
481
|
requestAnimationFrame(() => {
|
|
482
|
-
|
|
482
|
+
_(), requestAnimationFrame(() => {
|
|
483
483
|
S(!0);
|
|
484
484
|
});
|
|
485
485
|
});
|
|
486
|
-
})) : (S(!1),
|
|
486
|
+
})) : (S(!1), _());
|
|
487
487
|
const M = () => {
|
|
488
|
-
N &&
|
|
488
|
+
N && _();
|
|
489
489
|
};
|
|
490
490
|
return window.addEventListener("scroll", M, !0), window.addEventListener("resize", M), () => {
|
|
491
491
|
window.removeEventListener("scroll", M, !0), window.removeEventListener("resize", M);
|
|
@@ -493,7 +493,7 @@ const Ne = (...e) => (n) => {
|
|
|
493
493
|
}, [d, v, l, u, N]);
|
|
494
494
|
const ee = {
|
|
495
495
|
...y,
|
|
496
|
-
...
|
|
496
|
+
...p,
|
|
497
497
|
// Hide until positioned to prevent flash
|
|
498
498
|
...A ? {} : {
|
|
499
499
|
opacity: 0,
|
|
@@ -501,25 +501,25 @@ const Ne = (...e) => (n) => {
|
|
|
501
501
|
transition: "none"
|
|
502
502
|
}
|
|
503
503
|
};
|
|
504
|
-
return /* @__PURE__ */
|
|
504
|
+
return /* @__PURE__ */ n.jsx(
|
|
505
505
|
"div",
|
|
506
506
|
{
|
|
507
|
-
...
|
|
507
|
+
...b,
|
|
508
508
|
ref: Ne(w, v),
|
|
509
509
|
id: e,
|
|
510
510
|
popover: i,
|
|
511
511
|
className: f(ye({ maxWidth: m }), x),
|
|
512
512
|
style: ee,
|
|
513
513
|
...o && { anchor: o },
|
|
514
|
-
children:
|
|
514
|
+
children: r
|
|
515
515
|
}
|
|
516
516
|
);
|
|
517
517
|
}
|
|
518
518
|
);
|
|
519
519
|
D.displayName = "Popover";
|
|
520
|
-
const Ee = (e,
|
|
520
|
+
const Ee = (e, r = "toggle") => ({
|
|
521
521
|
popoverTarget: e,
|
|
522
|
-
popoverTargetAction:
|
|
522
|
+
popoverTargetAction: r
|
|
523
523
|
}), Ce = Object.assign(D, {
|
|
524
524
|
getTriggerProps: Ee
|
|
525
525
|
}), ze = g(
|
|
@@ -641,7 +641,7 @@ const Ee = (e, n = "toggle") => ({
|
|
|
641
641
|
}), j = h(
|
|
642
642
|
({
|
|
643
643
|
as: e = "span",
|
|
644
|
-
color:
|
|
644
|
+
color: r = "ghost",
|
|
645
645
|
hasUnderline: a = !1,
|
|
646
646
|
isCapitalize: s = !1,
|
|
647
647
|
align: t = "left",
|
|
@@ -652,8 +652,8 @@ const Ee = (e, n = "toggle") => ({
|
|
|
652
652
|
fontWeight: u,
|
|
653
653
|
className: m,
|
|
654
654
|
children: x,
|
|
655
|
-
...
|
|
656
|
-
},
|
|
655
|
+
...p
|
|
656
|
+
}, b) => {
|
|
657
657
|
const v = [
|
|
658
658
|
"h1",
|
|
659
659
|
"h2",
|
|
@@ -665,13 +665,13 @@ const Ee = (e, n = "toggle") => ({
|
|
|
665
665
|
"span",
|
|
666
666
|
"label"
|
|
667
667
|
].includes(e) ? e : "span", N = d ? `text-${d}` : "", y = u ? `font-${u}` : "";
|
|
668
|
-
return /* @__PURE__ */
|
|
668
|
+
return /* @__PURE__ */ n.jsx(
|
|
669
669
|
e,
|
|
670
670
|
{
|
|
671
|
-
ref:
|
|
671
|
+
ref: b,
|
|
672
672
|
className: f(
|
|
673
673
|
Ae({
|
|
674
|
-
color:
|
|
674
|
+
color: r,
|
|
675
675
|
hasUnderline: a,
|
|
676
676
|
isCapitalize: s,
|
|
677
677
|
align: t,
|
|
@@ -685,20 +685,20 @@ const Ee = (e, n = "toggle") => ({
|
|
|
685
685
|
y,
|
|
686
686
|
m
|
|
687
687
|
),
|
|
688
|
-
...
|
|
688
|
+
...p,
|
|
689
689
|
children: x
|
|
690
690
|
}
|
|
691
691
|
);
|
|
692
692
|
}
|
|
693
693
|
), Le = h(
|
|
694
|
-
({ children: e, className:
|
|
694
|
+
({ children: e, className: r }, a) => /* @__PURE__ */ n.jsx(
|
|
695
695
|
"div",
|
|
696
696
|
{
|
|
697
697
|
ref: a,
|
|
698
698
|
className: f(
|
|
699
699
|
"bg-background border border-border rounded-lg overflow-hidden",
|
|
700
700
|
"divide-y divide-border",
|
|
701
|
-
|
|
701
|
+
r
|
|
702
702
|
),
|
|
703
703
|
role: "group",
|
|
704
704
|
children: e
|
|
@@ -707,7 +707,7 @@ const Ee = (e, n = "toggle") => ({
|
|
|
707
707
|
), Me = h(
|
|
708
708
|
({
|
|
709
709
|
size: e = "md",
|
|
710
|
-
icon:
|
|
710
|
+
icon: r,
|
|
711
711
|
title: a,
|
|
712
712
|
subtitle: s,
|
|
713
713
|
badge: t,
|
|
@@ -715,18 +715,18 @@ const Ee = (e, n = "toggle") => ({
|
|
|
715
715
|
as: i = "button",
|
|
716
716
|
className: l,
|
|
717
717
|
...d
|
|
718
|
-
}, u) => /* @__PURE__ */
|
|
718
|
+
}, u) => /* @__PURE__ */ n.jsxs(
|
|
719
719
|
i,
|
|
720
720
|
{
|
|
721
721
|
ref: u,
|
|
722
722
|
className: f(ze({ size: e, as: i }), l),
|
|
723
723
|
...d,
|
|
724
724
|
children: [
|
|
725
|
-
/* @__PURE__ */
|
|
726
|
-
|
|
727
|
-
/* @__PURE__ */
|
|
728
|
-
/* @__PURE__ */
|
|
729
|
-
/* @__PURE__ */
|
|
725
|
+
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-4 flex-1", children: [
|
|
726
|
+
r && /* @__PURE__ */ n.jsx("div", { className: f(Ve({ size: e })), children: r }),
|
|
727
|
+
/* @__PURE__ */ n.jsxs("div", { className: "flex-1", children: [
|
|
728
|
+
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-3 mb-1", children: [
|
|
729
|
+
/* @__PURE__ */ n.jsx(
|
|
730
730
|
j,
|
|
731
731
|
{
|
|
732
732
|
as: "span",
|
|
@@ -737,7 +737,7 @@ const Ee = (e, n = "toggle") => ({
|
|
|
737
737
|
children: a
|
|
738
738
|
}
|
|
739
739
|
),
|
|
740
|
-
t && /* @__PURE__ */
|
|
740
|
+
t && /* @__PURE__ */ n.jsx(
|
|
741
741
|
"div",
|
|
742
742
|
{
|
|
743
743
|
className: "flex flex-wrap items-center flex-row justify-start gap-3",
|
|
@@ -746,7 +746,7 @@ const Ee = (e, n = "toggle") => ({
|
|
|
746
746
|
}
|
|
747
747
|
)
|
|
748
748
|
] }),
|
|
749
|
-
s && /* @__PURE__ */
|
|
749
|
+
s && /* @__PURE__ */ n.jsx(
|
|
750
750
|
j,
|
|
751
751
|
{
|
|
752
752
|
as: "p",
|
|
@@ -758,7 +758,7 @@ const Ee = (e, n = "toggle") => ({
|
|
|
758
758
|
)
|
|
759
759
|
] })
|
|
760
760
|
] }),
|
|
761
|
-
o && /* @__PURE__ */
|
|
761
|
+
o && /* @__PURE__ */ n.jsx("div", { className: "flex items-center gap-3", children: /* @__PURE__ */ n.jsx(
|
|
762
762
|
E,
|
|
763
763
|
{
|
|
764
764
|
as: se,
|
|
@@ -770,7 +770,7 @@ const Ee = (e, n = "toggle") => ({
|
|
|
770
770
|
]
|
|
771
771
|
}
|
|
772
772
|
)
|
|
773
|
-
),
|
|
773
|
+
), Dt = Object.assign(Me, {
|
|
774
774
|
Group: Le
|
|
775
775
|
}), Se = g(
|
|
776
776
|
"relative flex items-center gap-2 rounded-md p-2 text-sm transition-all duration-200",
|
|
@@ -893,7 +893,7 @@ const Ee = (e, n = "toggle") => ({
|
|
|
893
893
|
color: "neutral"
|
|
894
894
|
}
|
|
895
895
|
}
|
|
896
|
-
),
|
|
896
|
+
), _e = g(
|
|
897
897
|
"flex-shrink-0 flex justify-center items-center ",
|
|
898
898
|
{
|
|
899
899
|
variants: {
|
|
@@ -908,31 +908,31 @@ const Ee = (e, n = "toggle") => ({
|
|
|
908
908
|
}
|
|
909
909
|
}
|
|
910
910
|
), X = h(
|
|
911
|
-
({ className: e, children:
|
|
912
|
-
),
|
|
911
|
+
({ className: e, children: r, ...a }, s) => /* @__PURE__ */ n.jsx("div", { ref: s, className: f(_e(), e), ...a, children: r })
|
|
912
|
+
), Re = h(
|
|
913
913
|
({
|
|
914
914
|
variant: e = "default",
|
|
915
|
-
color:
|
|
915
|
+
color: r = "neutral",
|
|
916
916
|
icon: a,
|
|
917
917
|
className: s,
|
|
918
918
|
children: t,
|
|
919
919
|
...o
|
|
920
|
-
}, i) => /* @__PURE__ */
|
|
920
|
+
}, i) => /* @__PURE__ */ n.jsxs(
|
|
921
921
|
"div",
|
|
922
922
|
{
|
|
923
923
|
ref: i,
|
|
924
924
|
role: "alert",
|
|
925
|
-
className: f(Se({ variant: e, color:
|
|
925
|
+
className: f(Se({ variant: e, color: r }), s),
|
|
926
926
|
...o,
|
|
927
927
|
children: [
|
|
928
|
-
a && /* @__PURE__ */
|
|
929
|
-
/* @__PURE__ */
|
|
928
|
+
a && /* @__PURE__ */ n.jsx(X, { children: a }),
|
|
929
|
+
/* @__PURE__ */ n.jsx("div", { className: "flex-1", children: t })
|
|
930
930
|
]
|
|
931
931
|
}
|
|
932
932
|
)
|
|
933
|
-
),
|
|
933
|
+
), Xt = Object.assign(Re, {
|
|
934
934
|
Icon: X
|
|
935
|
-
}),
|
|
935
|
+
}), Oe = g(
|
|
936
936
|
[
|
|
937
937
|
"inline-flex items-center transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2",
|
|
938
938
|
// pseudo selectors for anchor
|
|
@@ -989,37 +989,37 @@ const Ee = (e, n = "toggle") => ({
|
|
|
989
989
|
quiet: !1
|
|
990
990
|
}
|
|
991
991
|
}
|
|
992
|
-
),
|
|
992
|
+
), Jt = h(
|
|
993
993
|
({
|
|
994
994
|
children: e,
|
|
995
|
-
className:
|
|
995
|
+
className: r,
|
|
996
996
|
color: a = "primary",
|
|
997
997
|
fontSize: s = "base",
|
|
998
998
|
fontWeight: t = "medium",
|
|
999
999
|
quiet: o = !1,
|
|
1000
1000
|
...i
|
|
1001
|
-
}, l) => /* @__PURE__ */
|
|
1001
|
+
}, l) => /* @__PURE__ */ n.jsx(
|
|
1002
1002
|
"a",
|
|
1003
1003
|
{
|
|
1004
1004
|
ref: l,
|
|
1005
1005
|
className: f(
|
|
1006
|
-
|
|
1007
|
-
|
|
1006
|
+
Oe({ color: a, fontSize: s, fontWeight: t, quiet: o }),
|
|
1007
|
+
r
|
|
1008
1008
|
),
|
|
1009
1009
|
...i,
|
|
1010
1010
|
children: e
|
|
1011
1011
|
}
|
|
1012
1012
|
)
|
|
1013
|
-
),
|
|
1014
|
-
function({ title:
|
|
1015
|
-
return /* @__PURE__ */
|
|
1013
|
+
), Te = h(
|
|
1014
|
+
function({ title: r, children: a, className: s, hasMargin: t, ...o }, i) {
|
|
1015
|
+
return /* @__PURE__ */ n.jsxs(
|
|
1016
1016
|
"div",
|
|
1017
1017
|
{
|
|
1018
1018
|
ref: i,
|
|
1019
1019
|
className: f("space-y-1", s, t && "mb-4"),
|
|
1020
1020
|
...o,
|
|
1021
1021
|
children: [
|
|
1022
|
-
/* @__PURE__ */
|
|
1022
|
+
/* @__PURE__ */ n.jsx(
|
|
1023
1023
|
j,
|
|
1024
1024
|
{
|
|
1025
1025
|
as: "h4",
|
|
@@ -1027,16 +1027,16 @@ const Ee = (e, n = "toggle") => ({
|
|
|
1027
1027
|
fontWeight: "normal",
|
|
1028
1028
|
color: "gray",
|
|
1029
1029
|
className: "leading-none",
|
|
1030
|
-
children:
|
|
1030
|
+
children: r
|
|
1031
1031
|
}
|
|
1032
1032
|
),
|
|
1033
|
-
/* @__PURE__ */
|
|
1033
|
+
/* @__PURE__ */ n.jsx(j, { as: "p", fontSize: "sm", fontWeight: "normal", children: a })
|
|
1034
1034
|
]
|
|
1035
1035
|
}
|
|
1036
1036
|
);
|
|
1037
1037
|
}
|
|
1038
1038
|
);
|
|
1039
|
-
function
|
|
1039
|
+
function We(e = 1) {
|
|
1040
1040
|
switch (e) {
|
|
1041
1041
|
case 1:
|
|
1042
1042
|
return "col-span-1";
|
|
@@ -1066,7 +1066,7 @@ function Te(e = 1) {
|
|
|
1066
1066
|
return "col-span-1";
|
|
1067
1067
|
}
|
|
1068
1068
|
}
|
|
1069
|
-
function
|
|
1069
|
+
function Be(e = 4) {
|
|
1070
1070
|
switch (e) {
|
|
1071
1071
|
case 1:
|
|
1072
1072
|
return "grid-cols-1";
|
|
@@ -1096,25 +1096,25 @@ function qe(e = 4) {
|
|
|
1096
1096
|
return "grid-cols-4";
|
|
1097
1097
|
}
|
|
1098
1098
|
}
|
|
1099
|
-
const
|
|
1100
|
-
const l =
|
|
1101
|
-
return /* @__PURE__ */
|
|
1102
|
-
}),
|
|
1103
|
-
function({ children:
|
|
1104
|
-
const i =
|
|
1105
|
-
return /* @__PURE__ */
|
|
1099
|
+
const qe = h(function({ children: r, className: a, span: s = 1, title: t, ...o }, i) {
|
|
1100
|
+
const l = We(s);
|
|
1101
|
+
return /* @__PURE__ */ n.jsx("li", { ref: i, className: f(l, a), ...o, children: /* @__PURE__ */ n.jsx(Te, { title: t, children: r }) });
|
|
1102
|
+
}), Pe = h(
|
|
1103
|
+
function({ children: r, className: a, columns: s = 4, ...t }, o) {
|
|
1104
|
+
const i = Be(s);
|
|
1105
|
+
return /* @__PURE__ */ n.jsx(
|
|
1106
1106
|
"ul",
|
|
1107
1107
|
{
|
|
1108
1108
|
ref: o,
|
|
1109
1109
|
className: f("grid gap-4", i, a),
|
|
1110
1110
|
...t,
|
|
1111
|
-
children:
|
|
1111
|
+
children: r
|
|
1112
1112
|
}
|
|
1113
1113
|
);
|
|
1114
1114
|
}
|
|
1115
|
-
),
|
|
1116
|
-
Item:
|
|
1117
|
-
}),
|
|
1115
|
+
), Kt = Object.assign(Pe, {
|
|
1116
|
+
Item: qe
|
|
1117
|
+
}), He = g(
|
|
1118
1118
|
"inline-flex items-center justify-center font-medium text-white overflow-hidden transition-all duration-200 select-none relative",
|
|
1119
1119
|
{
|
|
1120
1120
|
variants: {
|
|
@@ -1159,22 +1159,22 @@ const Pe = h(function({ children: n, className: a, span: s = 1, title: t, ...o }
|
|
|
1159
1159
|
), $e = h(
|
|
1160
1160
|
({
|
|
1161
1161
|
variant: e = "primary",
|
|
1162
|
-
size:
|
|
1162
|
+
size: r = "md",
|
|
1163
1163
|
shape: a = "circle",
|
|
1164
1164
|
className: s,
|
|
1165
1165
|
children: t,
|
|
1166
1166
|
...o
|
|
1167
|
-
}, i) => /* @__PURE__ */
|
|
1167
|
+
}, i) => /* @__PURE__ */ n.jsx(
|
|
1168
1168
|
"div",
|
|
1169
1169
|
{
|
|
1170
1170
|
ref: i,
|
|
1171
|
-
className: f(
|
|
1171
|
+
className: f(He({ variant: e, size: r, shape: a }), s),
|
|
1172
1172
|
...o,
|
|
1173
1173
|
children: t
|
|
1174
1174
|
}
|
|
1175
1175
|
)
|
|
1176
1176
|
), Ge = h(
|
|
1177
|
-
({ src: e, alt:
|
|
1177
|
+
({ src: e, alt: r, className: a, onError: s, ...t }, o) => {
|
|
1178
1178
|
const [i, l] = k(!1);
|
|
1179
1179
|
C(() => {
|
|
1180
1180
|
l(!1);
|
|
@@ -1185,19 +1185,19 @@ const Pe = h(function({ children: n, className: a, span: s = 1, title: t, ...o }
|
|
|
1185
1185
|
},
|
|
1186
1186
|
[s]
|
|
1187
1187
|
);
|
|
1188
|
-
return i ? null : /* @__PURE__ */
|
|
1188
|
+
return i ? null : /* @__PURE__ */ n.jsx(
|
|
1189
1189
|
"img",
|
|
1190
1190
|
{
|
|
1191
1191
|
ref: o,
|
|
1192
1192
|
src: e,
|
|
1193
|
-
alt:
|
|
1193
|
+
alt: r,
|
|
1194
1194
|
className: f(Fe(), a),
|
|
1195
1195
|
onError: d,
|
|
1196
1196
|
...t
|
|
1197
1197
|
}
|
|
1198
1198
|
);
|
|
1199
1199
|
}
|
|
1200
|
-
),
|
|
1200
|
+
), Qt = Object.assign($e, {
|
|
1201
1201
|
/**
|
|
1202
1202
|
* AvatarImage sub-component for displaying images with fallback behavior
|
|
1203
1203
|
*/
|
|
@@ -1389,10 +1389,10 @@ const Pe = h(function({ children: n, className: a, span: s = 1, title: t, ...o }
|
|
|
1389
1389
|
iconOnly: !1
|
|
1390
1390
|
}
|
|
1391
1391
|
}
|
|
1392
|
-
),
|
|
1392
|
+
), Yt = h(
|
|
1393
1393
|
({
|
|
1394
1394
|
variant: e = "default",
|
|
1395
|
-
shape:
|
|
1395
|
+
shape: r = "square",
|
|
1396
1396
|
color: a = "primary",
|
|
1397
1397
|
size: s = "md",
|
|
1398
1398
|
iconLeft: t,
|
|
@@ -1401,8 +1401,8 @@ const Pe = h(function({ children: n, className: a, span: s = 1, title: t, ...o }
|
|
|
1401
1401
|
children: l,
|
|
1402
1402
|
...d
|
|
1403
1403
|
}, u) => {
|
|
1404
|
-
const
|
|
1405
|
-
return /* @__PURE__ */
|
|
1404
|
+
const p = !(l != null && l !== "") && !!(t || o);
|
|
1405
|
+
return /* @__PURE__ */ n.jsx(
|
|
1406
1406
|
"span",
|
|
1407
1407
|
{
|
|
1408
1408
|
ref: u,
|
|
@@ -1410,19 +1410,19 @@ const Pe = h(function({ children: n, className: a, span: s = 1, title: t, ...o }
|
|
|
1410
1410
|
Ue({
|
|
1411
1411
|
variant: e,
|
|
1412
1412
|
color: a,
|
|
1413
|
-
shape:
|
|
1413
|
+
shape: r,
|
|
1414
1414
|
size: s,
|
|
1415
|
-
iconOnly:
|
|
1415
|
+
iconOnly: p
|
|
1416
1416
|
}),
|
|
1417
1417
|
i
|
|
1418
1418
|
),
|
|
1419
1419
|
...d,
|
|
1420
|
-
children:
|
|
1420
|
+
children: p ? (
|
|
1421
1421
|
// Icon-only mode: display only the icon
|
|
1422
1422
|
t || o
|
|
1423
1423
|
) : (
|
|
1424
1424
|
// Normal mode: display icon(s) and text
|
|
1425
|
-
/* @__PURE__ */
|
|
1425
|
+
/* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
1426
1426
|
t,
|
|
1427
1427
|
l,
|
|
1428
1428
|
o
|
|
@@ -1431,7 +1431,7 @@ const Pe = h(function({ children: n, className: a, span: s = 1, title: t, ...o }
|
|
|
1431
1431
|
}
|
|
1432
1432
|
);
|
|
1433
1433
|
}
|
|
1434
|
-
),
|
|
1434
|
+
), P = (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" }))), De = (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" }))), Xe = (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" }))), 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, "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" }))), 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, "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" }))), 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 (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" }))), 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, "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" }))), 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, "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" }))), 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("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" }))), tt = g("", {
|
|
1435
1435
|
variants: {
|
|
1436
1436
|
size: {
|
|
1437
1437
|
xs: "h-6 w-6",
|
|
@@ -1445,10 +1445,10 @@ const Pe = h(function({ children: n, className: a, span: s = 1, title: t, ...o }
|
|
|
1445
1445
|
size: "md"
|
|
1446
1446
|
}
|
|
1447
1447
|
}), rt = h(
|
|
1448
|
-
({ shape: e = "square", size:
|
|
1448
|
+
({ shape: e = "square", size: r, name: a = "spenicle", ...s }, t) => {
|
|
1449
1449
|
const o = {
|
|
1450
1450
|
spenicle: {
|
|
1451
|
-
square:
|
|
1451
|
+
square: P,
|
|
1452
1452
|
rounded: De,
|
|
1453
1453
|
circle: Xe
|
|
1454
1454
|
},
|
|
@@ -1462,24 +1462,24 @@ const Pe = h(function({ children: n, className: a, span: s = 1, title: t, ...o }
|
|
|
1462
1462
|
rounded: Ze,
|
|
1463
1463
|
circle: et
|
|
1464
1464
|
}
|
|
1465
|
-
}, l = (o[a] || o.spenicle)[e || "square"] ||
|
|
1466
|
-
return /* @__PURE__ */
|
|
1465
|
+
}, l = (o[a] || o.spenicle)[e || "square"] || P;
|
|
1466
|
+
return /* @__PURE__ */ n.jsx(
|
|
1467
1467
|
l,
|
|
1468
1468
|
{
|
|
1469
1469
|
ref: t,
|
|
1470
1470
|
...s,
|
|
1471
|
-
className: f("inline-block", tt({ size:
|
|
1471
|
+
className: f("inline-block", tt({ size: r }))
|
|
1472
1472
|
}
|
|
1473
1473
|
);
|
|
1474
1474
|
}
|
|
1475
|
-
),
|
|
1476
|
-
({ name: e = "spenicle", size:
|
|
1475
|
+
), Zt = h(
|
|
1476
|
+
({ name: e = "spenicle", size: r = "md", shape: a, ...s }, t) => /* @__PURE__ */ n.jsx(
|
|
1477
1477
|
"span",
|
|
1478
1478
|
{
|
|
1479
1479
|
ref: t,
|
|
1480
1480
|
className: f("inline-flex items-center gap-2"),
|
|
1481
1481
|
...s,
|
|
1482
|
-
children: /* @__PURE__ */
|
|
1482
|
+
children: /* @__PURE__ */ n.jsx(rt, { name: e, shape: a, size: r, "aria-hidden": "true" })
|
|
1483
1483
|
}
|
|
1484
1484
|
)
|
|
1485
1485
|
), nt = g(
|
|
@@ -1507,9 +1507,9 @@ const Pe = h(function({ children: n, className: a, span: s = 1, title: t, ...o }
|
|
|
1507
1507
|
size: "md"
|
|
1508
1508
|
}
|
|
1509
1509
|
}
|
|
1510
|
-
), J =
|
|
1510
|
+
), J = z.forwardRef(
|
|
1511
1511
|
function({
|
|
1512
|
-
className:
|
|
1512
|
+
className: r,
|
|
1513
1513
|
variant: a = "primary",
|
|
1514
1514
|
size: s = "md",
|
|
1515
1515
|
disabled: t = !1,
|
|
@@ -1519,22 +1519,22 @@ const Pe = h(function({ children: n, className: a, span: s = 1, title: t, ...o }
|
|
|
1519
1519
|
...d
|
|
1520
1520
|
}, u) {
|
|
1521
1521
|
const m = s === "sm" ? "sm" : s === "lg" ? "md" : "sm", x = () => a === "primary" || a === "destructive" ? "white" : "inherit";
|
|
1522
|
-
return /* @__PURE__ */
|
|
1522
|
+
return /* @__PURE__ */ n.jsxs(
|
|
1523
1523
|
"button",
|
|
1524
1524
|
{
|
|
1525
1525
|
ref: u,
|
|
1526
1526
|
type: o,
|
|
1527
|
-
className: f(nt({ variant: a, size: s }),
|
|
1527
|
+
className: f(nt({ variant: a, size: s }), r),
|
|
1528
1528
|
disabled: t || i,
|
|
1529
1529
|
"aria-disabled": t || i,
|
|
1530
1530
|
inert: t || i ? !0 : void 0,
|
|
1531
1531
|
"aria-busy": i ? !0 : void 0,
|
|
1532
1532
|
...d,
|
|
1533
1533
|
children: [
|
|
1534
|
-
i && /* @__PURE__ */
|
|
1534
|
+
i && /* @__PURE__ */ n.jsx(
|
|
1535
1535
|
E,
|
|
1536
1536
|
{
|
|
1537
|
-
as:
|
|
1537
|
+
as: H,
|
|
1538
1538
|
size: m,
|
|
1539
1539
|
color: x(),
|
|
1540
1540
|
className: "animate-spin"
|
|
@@ -1568,8 +1568,8 @@ const Pe = h(function({ children: n, className: a, span: s = 1, title: t, ...o }
|
|
|
1568
1568
|
size: "md"
|
|
1569
1569
|
}
|
|
1570
1570
|
}
|
|
1571
|
-
),
|
|
1572
|
-
className:
|
|
1571
|
+
), er = z.forwardRef(function({
|
|
1572
|
+
className: r,
|
|
1573
1573
|
variant: a = "primary",
|
|
1574
1574
|
size: s = "md",
|
|
1575
1575
|
disabled: t = !1,
|
|
@@ -1585,12 +1585,12 @@ const Pe = h(function({ children: n, className: a, span: s = 1, title: t, ...o }
|
|
|
1585
1585
|
}
|
|
1586
1586
|
l?.(x);
|
|
1587
1587
|
};
|
|
1588
|
-
return /* @__PURE__ */
|
|
1588
|
+
return /* @__PURE__ */ n.jsx(
|
|
1589
1589
|
"a",
|
|
1590
1590
|
{
|
|
1591
1591
|
ref: u,
|
|
1592
1592
|
href: t ? void 0 : i,
|
|
1593
|
-
className: f(at({ variant: a, size: s }),
|
|
1593
|
+
className: f(at({ variant: a, size: s }), r),
|
|
1594
1594
|
"aria-disabled": t ? !0 : void 0,
|
|
1595
1595
|
tabIndex: t ? -1 : void 0,
|
|
1596
1596
|
role: t ? "link" : void 0,
|
|
@@ -1617,28 +1617,28 @@ const Pe = h(function({ children: n, className: a, span: s = 1, title: t, ...o }
|
|
|
1617
1617
|
open: !1
|
|
1618
1618
|
}
|
|
1619
1619
|
}
|
|
1620
|
-
), K =
|
|
1621
|
-
const e =
|
|
1620
|
+
), K = R(void 0), ot = K.Provider, it = () => {
|
|
1621
|
+
const e = O(K);
|
|
1622
1622
|
if (!e)
|
|
1623
1623
|
throw new Error("useMenuProvider must be used within a MenuProvider");
|
|
1624
1624
|
return e;
|
|
1625
1625
|
}, lt = h(
|
|
1626
|
-
({ children: e },
|
|
1626
|
+
({ children: e }, r) => /* @__PURE__ */ n.jsx("ul", { ref: r, className: "flex flex-col gap-1", children: e })
|
|
1627
1627
|
), ct = h(
|
|
1628
|
-
({ children: e, disabled:
|
|
1628
|
+
({ children: e, disabled: r, onClick: a, active: s, ...t }, o) => {
|
|
1629
1629
|
const { preserve: i, onClose: l } = it(), d = (u) => {
|
|
1630
1630
|
a?.(u), i || l();
|
|
1631
1631
|
};
|
|
1632
|
-
return /* @__PURE__ */
|
|
1632
|
+
return /* @__PURE__ */ n.jsx("li", { ref: o, ...t, children: /* @__PURE__ */ n.jsxs(
|
|
1633
1633
|
J,
|
|
1634
1634
|
{
|
|
1635
1635
|
variant: "ghost",
|
|
1636
1636
|
className: f("justify-start w-full gap-2"),
|
|
1637
|
-
disabled:
|
|
1637
|
+
disabled: r,
|
|
1638
1638
|
onClick: d,
|
|
1639
1639
|
children: [
|
|
1640
1640
|
e,
|
|
1641
|
-
s && /* @__PURE__ */
|
|
1641
|
+
s && /* @__PURE__ */ n.jsx(
|
|
1642
1642
|
E,
|
|
1643
1643
|
{
|
|
1644
1644
|
as: oe,
|
|
@@ -1653,7 +1653,7 @@ const Pe = h(function({ children: n, className: a, span: s = 1, title: t, ...o }
|
|
|
1653
1653
|
}
|
|
1654
1654
|
), dt = ({
|
|
1655
1655
|
isOpen: e,
|
|
1656
|
-
onClose:
|
|
1656
|
+
onClose: r,
|
|
1657
1657
|
size: a = "md",
|
|
1658
1658
|
content: s,
|
|
1659
1659
|
children: t,
|
|
@@ -1661,19 +1661,19 @@ const Pe = h(function({ children: n, className: a, span: s = 1, title: t, ...o }
|
|
|
1661
1661
|
gap: i = 4,
|
|
1662
1662
|
preserve: l
|
|
1663
1663
|
}) => {
|
|
1664
|
-
const d =
|
|
1665
|
-
return /* @__PURE__ */
|
|
1664
|
+
const d = T(null), u = re();
|
|
1665
|
+
return /* @__PURE__ */ n.jsx(ot, { value: { onClose: r, preserve: !!l }, children: /* @__PURE__ */ n.jsxs("div", { className: "relative w-fit", children: [
|
|
1666
1666
|
ne(t, {
|
|
1667
1667
|
// @ts-expect-error: ref is valid for button or forwardRef components
|
|
1668
1668
|
ref: d
|
|
1669
1669
|
}),
|
|
1670
|
-
/* @__PURE__ */
|
|
1670
|
+
/* @__PURE__ */ n.jsx(
|
|
1671
1671
|
Ce,
|
|
1672
1672
|
{
|
|
1673
1673
|
id: u,
|
|
1674
1674
|
triggerRef: d,
|
|
1675
1675
|
isOpen: e,
|
|
1676
|
-
onClose:
|
|
1676
|
+
onClose: r,
|
|
1677
1677
|
placement: o,
|
|
1678
1678
|
gap: i,
|
|
1679
1679
|
maxWidth: "sm",
|
|
@@ -1682,11 +1682,11 @@ const Pe = h(function({ children: n, className: a, span: s = 1, title: t, ...o }
|
|
|
1682
1682
|
}
|
|
1683
1683
|
)
|
|
1684
1684
|
] }) });
|
|
1685
|
-
},
|
|
1685
|
+
}, V = Object.assign(dt, {
|
|
1686
1686
|
Content: lt,
|
|
1687
1687
|
Item: ct
|
|
1688
1688
|
}), ut = h(
|
|
1689
|
-
(e,
|
|
1689
|
+
(e, r) => {
|
|
1690
1690
|
const {
|
|
1691
1691
|
children: a,
|
|
1692
1692
|
onOpenChange: s,
|
|
@@ -1701,23 +1701,23 @@ const Pe = h(function({ children: n, className: a, span: s = 1, title: t, ...o }
|
|
|
1701
1701
|
}, [u, s]);
|
|
1702
1702
|
const x = () => {
|
|
1703
1703
|
m(!1);
|
|
1704
|
-
},
|
|
1705
|
-
|
|
1704
|
+
}, p = (b) => {
|
|
1705
|
+
b.stopPropagation(), m((w) => !w), t?.(b);
|
|
1706
1706
|
};
|
|
1707
|
-
return /* @__PURE__ */
|
|
1708
|
-
|
|
1707
|
+
return /* @__PURE__ */ n.jsx(
|
|
1708
|
+
V,
|
|
1709
1709
|
{
|
|
1710
1710
|
isOpen: u,
|
|
1711
1711
|
onClose: x,
|
|
1712
1712
|
placement: o,
|
|
1713
1713
|
preserve: i,
|
|
1714
|
-
content: /* @__PURE__ */
|
|
1715
|
-
children: /* @__PURE__ */
|
|
1714
|
+
content: /* @__PURE__ */ n.jsx(V.Content, { children: a }),
|
|
1715
|
+
children: /* @__PURE__ */ n.jsx(J, { ref: r, onClick: p, ...d, children: l })
|
|
1716
1716
|
}
|
|
1717
1717
|
);
|
|
1718
1718
|
}
|
|
1719
|
-
),
|
|
1720
|
-
Item:
|
|
1719
|
+
), tr = Object.assign(ut, {
|
|
1720
|
+
Item: V.Item
|
|
1721
1721
|
});
|
|
1722
1722
|
function ft(e = "primary") {
|
|
1723
1723
|
return e === "primary" || e === "destructive" ? "white" : "inherit";
|
|
@@ -1753,9 +1753,9 @@ const mt = g(
|
|
|
1753
1753
|
shape: "rounded"
|
|
1754
1754
|
}
|
|
1755
1755
|
}
|
|
1756
|
-
), ht =
|
|
1756
|
+
), ht = z.forwardRef(
|
|
1757
1757
|
function({
|
|
1758
|
-
className:
|
|
1758
|
+
className: r,
|
|
1759
1759
|
variant: a = "primary",
|
|
1760
1760
|
size: s = "md",
|
|
1761
1761
|
shape: t = "rounded",
|
|
@@ -1766,7 +1766,7 @@ const mt = g(
|
|
|
1766
1766
|
...u
|
|
1767
1767
|
}, m) {
|
|
1768
1768
|
const x = ft(a);
|
|
1769
|
-
return /* @__PURE__ */
|
|
1769
|
+
return /* @__PURE__ */ n.jsx(
|
|
1770
1770
|
"button",
|
|
1771
1771
|
{
|
|
1772
1772
|
ref: m,
|
|
@@ -1777,7 +1777,7 @@ const mt = g(
|
|
|
1777
1777
|
size: s,
|
|
1778
1778
|
shape: t
|
|
1779
1779
|
}),
|
|
1780
|
-
|
|
1780
|
+
r
|
|
1781
1781
|
),
|
|
1782
1782
|
disabled: o || i,
|
|
1783
1783
|
"aria-disabled": o || i,
|
|
@@ -1785,20 +1785,20 @@ const mt = g(
|
|
|
1785
1785
|
inert: o || i ? !0 : void 0,
|
|
1786
1786
|
"aria-busy": i ? !0 : void 0,
|
|
1787
1787
|
...u,
|
|
1788
|
-
children: i ? /* @__PURE__ */
|
|
1788
|
+
children: i ? /* @__PURE__ */ n.jsx(
|
|
1789
1789
|
E,
|
|
1790
1790
|
{
|
|
1791
|
-
as:
|
|
1791
|
+
as: H,
|
|
1792
1792
|
size: "sm",
|
|
1793
1793
|
color: x,
|
|
1794
1794
|
className: "animate-spin"
|
|
1795
1795
|
}
|
|
1796
|
-
) : /* @__PURE__ */
|
|
1796
|
+
) : /* @__PURE__ */ n.jsx(E, { as: l, size: "sm", color: x })
|
|
1797
1797
|
}
|
|
1798
1798
|
);
|
|
1799
1799
|
}
|
|
1800
1800
|
), gt = h(
|
|
1801
|
-
(e,
|
|
1801
|
+
(e, r) => {
|
|
1802
1802
|
const {
|
|
1803
1803
|
as: a = ie,
|
|
1804
1804
|
children: s,
|
|
@@ -1813,23 +1813,23 @@ const mt = g(
|
|
|
1813
1813
|
}, [u, t]);
|
|
1814
1814
|
const x = () => {
|
|
1815
1815
|
m(!1);
|
|
1816
|
-
},
|
|
1817
|
-
|
|
1816
|
+
}, p = (b) => {
|
|
1817
|
+
b.stopPropagation(), m((w) => !w), o?.(b);
|
|
1818
1818
|
};
|
|
1819
|
-
return /* @__PURE__ */
|
|
1820
|
-
|
|
1819
|
+
return /* @__PURE__ */ n.jsx(
|
|
1820
|
+
V,
|
|
1821
1821
|
{
|
|
1822
1822
|
isOpen: u,
|
|
1823
1823
|
onClose: x,
|
|
1824
1824
|
placement: i,
|
|
1825
1825
|
preserve: l,
|
|
1826
|
-
content: /* @__PURE__ */
|
|
1827
|
-
children: /* @__PURE__ */
|
|
1826
|
+
content: /* @__PURE__ */ n.jsx(V.Content, { children: s }),
|
|
1827
|
+
children: /* @__PURE__ */ n.jsx(ht, { ref: r, as: a, onClick: p, ...d })
|
|
1828
1828
|
}
|
|
1829
1829
|
);
|
|
1830
1830
|
}
|
|
1831
|
-
),
|
|
1832
|
-
Item:
|
|
1831
|
+
), rr = Object.assign(gt, {
|
|
1832
|
+
Item: V.Item
|
|
1833
1833
|
}), xt = g(
|
|
1834
1834
|
"flex justify-between transition-colors duration-200 w-full",
|
|
1835
1835
|
{
|
|
@@ -1862,28 +1862,28 @@ const mt = g(
|
|
|
1862
1862
|
as: "button"
|
|
1863
1863
|
}
|
|
1864
1864
|
}
|
|
1865
|
-
),
|
|
1866
|
-
({ children: e },
|
|
1865
|
+
), bt = h(
|
|
1866
|
+
({ children: e }, r) => /* @__PURE__ */ n.jsx(
|
|
1867
1867
|
"ul",
|
|
1868
1868
|
{
|
|
1869
|
-
ref:
|
|
1869
|
+
ref: r,
|
|
1870
1870
|
className: "flex flex-wrap items-center min-w-0 overflow-hidden w-full gap-x-0",
|
|
1871
1871
|
children: e
|
|
1872
1872
|
}
|
|
1873
1873
|
)
|
|
1874
|
-
),
|
|
1875
|
-
({ children: e },
|
|
1874
|
+
), pt = h(
|
|
1875
|
+
({ children: e }, r) => /* @__PURE__ */ n.jsx(
|
|
1876
1876
|
"li",
|
|
1877
1877
|
{
|
|
1878
|
-
ref:
|
|
1878
|
+
ref: r,
|
|
1879
1879
|
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",
|
|
1880
|
-
children: /* @__PURE__ */
|
|
1880
|
+
children: /* @__PURE__ */ n.jsx(j, { as: "span", fontSize: "sm", color: "gray", ellipsis: !0, clamp: 1, children: e })
|
|
1881
1881
|
}
|
|
1882
1882
|
)
|
|
1883
1883
|
), wt = h(
|
|
1884
1884
|
({
|
|
1885
1885
|
size: e = "md",
|
|
1886
|
-
shape:
|
|
1886
|
+
shape: r = "rounded",
|
|
1887
1887
|
avatar: a,
|
|
1888
1888
|
title: s,
|
|
1889
1889
|
subtitle: t,
|
|
@@ -1893,21 +1893,21 @@ const mt = g(
|
|
|
1893
1893
|
as: d = "button",
|
|
1894
1894
|
className: u,
|
|
1895
1895
|
...m
|
|
1896
|
-
}, x) => /* @__PURE__ */
|
|
1896
|
+
}, x) => /* @__PURE__ */ n.jsx(
|
|
1897
1897
|
d,
|
|
1898
1898
|
{
|
|
1899
1899
|
ref: x,
|
|
1900
1900
|
className: f(
|
|
1901
|
-
xt({ size: e, shape:
|
|
1901
|
+
xt({ size: e, shape: r, bordered: l, as: d }),
|
|
1902
1902
|
u,
|
|
1903
1903
|
"@container/card"
|
|
1904
1904
|
),
|
|
1905
1905
|
...m,
|
|
1906
|
-
children: /* @__PURE__ */
|
|
1907
|
-
a && /* @__PURE__ */
|
|
1908
|
-
/* @__PURE__ */
|
|
1909
|
-
/* @__PURE__ */
|
|
1910
|
-
/* @__PURE__ */
|
|
1906
|
+
children: /* @__PURE__ */ n.jsxs("div", { className: "flex items-start gap-3 @sm/card:gap-4 w-full", children: [
|
|
1907
|
+
a && /* @__PURE__ */ n.jsx("div", { className: "flex-shrink-0", children: a }),
|
|
1908
|
+
/* @__PURE__ */ n.jsxs("div", { className: "w-full min-w-0", children: [
|
|
1909
|
+
/* @__PURE__ */ n.jsx("div", { className: "mb-2", children: /* @__PURE__ */ n.jsx("div", { className: "flex items-start justify-between gap-2", children: /* @__PURE__ */ n.jsxs("div", { className: "flex-1 min-w-0", children: [
|
|
1910
|
+
/* @__PURE__ */ n.jsx(
|
|
1911
1911
|
j,
|
|
1912
1912
|
{
|
|
1913
1913
|
as: "h3",
|
|
@@ -1917,11 +1917,11 @@ const mt = g(
|
|
|
1917
1917
|
children: s
|
|
1918
1918
|
}
|
|
1919
1919
|
),
|
|
1920
|
-
t && /* @__PURE__ */
|
|
1920
|
+
t && /* @__PURE__ */ n.jsx("div", { className: "mt-1", children: typeof t == "string" ? /* @__PURE__ */ n.jsx(j, { as: "p", fontSize: "sm", color: "gray", children: t }) : /* @__PURE__ */ n.jsx("div", { className: "min-w-0 overflow-hidden", children: t }) })
|
|
1921
1921
|
] }) }) }),
|
|
1922
|
-
/* @__PURE__ */
|
|
1923
|
-
o && /* @__PURE__ */
|
|
1924
|
-
i && /* @__PURE__ */
|
|
1922
|
+
/* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-2 @sm/card:flex-row @sm/card:justify-between @sm/card:items-center", children: [
|
|
1923
|
+
o && /* @__PURE__ */ n.jsx("div", { className: "order-1 @sm/card:order-none overflow-hidden", children: o }),
|
|
1924
|
+
i && /* @__PURE__ */ n.jsx("div", { className: "flex-shrink-0 order-2 @sm/card:order-none @sm/card:ml-auto", children: typeof i == "string" ? /* @__PURE__ */ n.jsx(
|
|
1925
1925
|
j,
|
|
1926
1926
|
{
|
|
1927
1927
|
as: "p",
|
|
@@ -1931,15 +1931,15 @@ const mt = g(
|
|
|
1931
1931
|
align: "right",
|
|
1932
1932
|
children: i
|
|
1933
1933
|
}
|
|
1934
|
-
) : /* @__PURE__ */
|
|
1934
|
+
) : /* @__PURE__ */ n.jsx("div", { className: "overflow-hidden", children: i }) })
|
|
1935
1935
|
] })
|
|
1936
1936
|
] })
|
|
1937
1937
|
] })
|
|
1938
1938
|
}
|
|
1939
1939
|
)
|
|
1940
|
-
),
|
|
1941
|
-
List:
|
|
1942
|
-
ListItem:
|
|
1940
|
+
), nr = Object.assign(wt, {
|
|
1941
|
+
List: bt,
|
|
1942
|
+
ListItem: pt
|
|
1943
1943
|
}), vt = g(
|
|
1944
1944
|
"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",
|
|
1945
1945
|
{
|
|
@@ -1954,27 +1954,87 @@ const mt = g(
|
|
|
1954
1954
|
size: "md"
|
|
1955
1955
|
}
|
|
1956
1956
|
}
|
|
1957
|
-
),
|
|
1958
|
-
function({ className:
|
|
1959
|
-
return /* @__PURE__ */
|
|
1957
|
+
), ar = z.forwardRef(
|
|
1958
|
+
function({ className: r, size: a = "md", disabled: s = !1, children: t, ...o }, i) {
|
|
1959
|
+
return /* @__PURE__ */ n.jsxs(
|
|
1960
1960
|
"button",
|
|
1961
1961
|
{
|
|
1962
1962
|
ref: i,
|
|
1963
1963
|
type: "button",
|
|
1964
|
-
className: f(vt({ size: a }),
|
|
1964
|
+
className: f(vt({ size: a }), r),
|
|
1965
1965
|
disabled: s,
|
|
1966
1966
|
"aria-disabled": s,
|
|
1967
1967
|
"aria-label": `${t}, removable`,
|
|
1968
1968
|
inert: s ? !0 : void 0,
|
|
1969
1969
|
...o,
|
|
1970
1970
|
children: [
|
|
1971
|
-
/* @__PURE__ */
|
|
1972
|
-
/* @__PURE__ */
|
|
1971
|
+
/* @__PURE__ */ n.jsx("span", { className: "flex-shrink-0", children: t }),
|
|
1972
|
+
/* @__PURE__ */ n.jsx(E, { as: le, color: "inherit", size: a === "lg" ? "md" : "sm" })
|
|
1973
1973
|
]
|
|
1974
1974
|
}
|
|
1975
1975
|
);
|
|
1976
1976
|
}
|
|
1977
|
-
), yt =
|
|
1977
|
+
), yt = [
|
|
1978
|
+
// Headings
|
|
1979
|
+
"[&_h1]:text-2xl",
|
|
1980
|
+
"[&_h1]:font-bold",
|
|
1981
|
+
"[&_h1]:my-2",
|
|
1982
|
+
"[&_h2]:text-xl",
|
|
1983
|
+
"[&_h2]:font-bold",
|
|
1984
|
+
"[&_h2]:my-1.5",
|
|
1985
|
+
"[&_h3]:text-lg",
|
|
1986
|
+
"[&_h3]:font-semibold",
|
|
1987
|
+
"[&_h3]:my-1",
|
|
1988
|
+
// Lists
|
|
1989
|
+
"[&_ul]:list-disc",
|
|
1990
|
+
"[&_ul]:ml-6",
|
|
1991
|
+
"[&_ul]:my-2",
|
|
1992
|
+
"[&_ol]:list-decimal",
|
|
1993
|
+
"[&_ol]:ml-6",
|
|
1994
|
+
"[&_ol]:my-2",
|
|
1995
|
+
"[&_li]:my-0.5",
|
|
1996
|
+
// Links
|
|
1997
|
+
"[&_a]:text-primary",
|
|
1998
|
+
"[&_a]:underline",
|
|
1999
|
+
"[&_a]:cursor-pointer",
|
|
2000
|
+
"hover:[&_a]:text-primary-bold",
|
|
2001
|
+
// Text formatting
|
|
2002
|
+
"[&_strong]:font-bold",
|
|
2003
|
+
"[&_em]:italic",
|
|
2004
|
+
"[&_u]:underline",
|
|
2005
|
+
"[&_s]:line-through",
|
|
2006
|
+
// Paragraphs
|
|
2007
|
+
"[&_p]:my-2",
|
|
2008
|
+
"[&_p:first-child]:mt-0",
|
|
2009
|
+
"[&_p:last-child]:mb-0"
|
|
2010
|
+
], jt = g("block w-full break-words", {
|
|
2011
|
+
variants: {
|
|
2012
|
+
scrollable: {
|
|
2013
|
+
true: "overflow-y-auto",
|
|
2014
|
+
false: "overflow-visible"
|
|
2015
|
+
}
|
|
2016
|
+
},
|
|
2017
|
+
defaultVariants: {
|
|
2018
|
+
scrollable: !1
|
|
2019
|
+
}
|
|
2020
|
+
}), kt = z.forwardRef(({ content: e, scrollable: r = !1, maxHeight: a, className: s, ...t }, o) => /* @__PURE__ */ n.jsx(
|
|
2021
|
+
"div",
|
|
2022
|
+
{
|
|
2023
|
+
ref: o,
|
|
2024
|
+
role: "article",
|
|
2025
|
+
"aria-label": "Formatted text content",
|
|
2026
|
+
dangerouslySetInnerHTML: { __html: e },
|
|
2027
|
+
style: r && a ? { maxHeight: `${a}rem` } : void 0,
|
|
2028
|
+
className: f(
|
|
2029
|
+
jt({ scrollable: r }),
|
|
2030
|
+
...yt,
|
|
2031
|
+
s
|
|
2032
|
+
),
|
|
2033
|
+
...t
|
|
2034
|
+
}
|
|
2035
|
+
));
|
|
2036
|
+
kt.displayName = "FormattedText";
|
|
2037
|
+
const Nt = g("h-px w-full bg-border border-0", {
|
|
1978
2038
|
variants: {
|
|
1979
2039
|
hasMargin: {
|
|
1980
2040
|
true: "mb-4",
|
|
@@ -1984,16 +2044,16 @@ const mt = g(
|
|
|
1984
2044
|
defaultVariants: {
|
|
1985
2045
|
hasMargin: !1
|
|
1986
2046
|
}
|
|
1987
|
-
}),
|
|
1988
|
-
({ hasMargin: e = !1, className:
|
|
2047
|
+
}), sr = h(
|
|
2048
|
+
({ hasMargin: e = !1, className: r, ...a }, s) => /* @__PURE__ */ n.jsx(
|
|
1989
2049
|
"hr",
|
|
1990
2050
|
{
|
|
1991
2051
|
ref: s,
|
|
1992
|
-
className: f(
|
|
2052
|
+
className: f(Nt({ hasMargin: e }), r),
|
|
1993
2053
|
...a
|
|
1994
2054
|
}
|
|
1995
2055
|
)
|
|
1996
|
-
),
|
|
2056
|
+
), Et = g(
|
|
1997
2057
|
"flex flex-col items-center justify-center text-center border border-border rounded-lg bg-background",
|
|
1998
2058
|
{
|
|
1999
2059
|
variants: {
|
|
@@ -2012,37 +2072,37 @@ const mt = g(
|
|
|
2012
2072
|
hasGrayBackground: !1
|
|
2013
2073
|
}
|
|
2014
2074
|
}
|
|
2015
|
-
),
|
|
2075
|
+
), Ct = g(
|
|
2016
2076
|
"flex flex-row items-center gap-3 mb-2"
|
|
2017
|
-
),
|
|
2018
|
-
function({ icon:
|
|
2019
|
-
return /* @__PURE__ */
|
|
2077
|
+
), or = z.forwardRef(
|
|
2078
|
+
function({ icon: r, title: a, subtitle: s, action: t, className: o, hasGrayBackground: i, ...l }, d) {
|
|
2079
|
+
return /* @__PURE__ */ n.jsxs(
|
|
2020
2080
|
"section",
|
|
2021
2081
|
{
|
|
2022
2082
|
ref: d,
|
|
2023
|
-
className: f(
|
|
2083
|
+
className: f(Et({ hasGrayBackground: i }), o),
|
|
2024
2084
|
role: "status",
|
|
2025
2085
|
"aria-label": "No results found",
|
|
2026
2086
|
...l,
|
|
2027
2087
|
children: [
|
|
2028
|
-
/* @__PURE__ */
|
|
2029
|
-
/* @__PURE__ */
|
|
2030
|
-
/* @__PURE__ */
|
|
2088
|
+
/* @__PURE__ */ n.jsxs("header", { className: Ct(), children: [
|
|
2089
|
+
/* @__PURE__ */ n.jsx(E, { as: r, size: "lg", color: "ghost", "aria-hidden": "true" }),
|
|
2090
|
+
/* @__PURE__ */ n.jsx(j, { as: "h2", fontSize: "lg", children: a })
|
|
2031
2091
|
] }),
|
|
2032
|
-
s && /* @__PURE__ */
|
|
2033
|
-
t && /* @__PURE__ */
|
|
2092
|
+
s && /* @__PURE__ */ n.jsx(j, { as: "p", align: "center", color: "gray", className: "mb-4", children: s }),
|
|
2093
|
+
t && /* @__PURE__ */ n.jsx("div", { role: "group", "aria-label": "Available actions", children: t })
|
|
2034
2094
|
]
|
|
2035
2095
|
}
|
|
2036
2096
|
);
|
|
2037
2097
|
}
|
|
2038
|
-
), Q =
|
|
2039
|
-
function
|
|
2040
|
-
const e =
|
|
2098
|
+
), Q = R(null), zt = Q.Provider;
|
|
2099
|
+
function W() {
|
|
2100
|
+
const e = O(Q);
|
|
2041
2101
|
if (!e)
|
|
2042
2102
|
throw new Error("Table compound components must be used within <Table>");
|
|
2043
2103
|
return e;
|
|
2044
2104
|
}
|
|
2045
|
-
const
|
|
2105
|
+
const B = (e) => {
|
|
2046
2106
|
if (e < 1 || e > 12)
|
|
2047
2107
|
throw new Error("Column span must be between 1 and 12");
|
|
2048
2108
|
switch (e) {
|
|
@@ -2073,7 +2133,7 @@ const q = (e) => {
|
|
|
2073
2133
|
default:
|
|
2074
2134
|
return "grid-cols-2";
|
|
2075
2135
|
}
|
|
2076
|
-
},
|
|
2136
|
+
}, Vt = (e) => {
|
|
2077
2137
|
if (e < 1 || e > 12)
|
|
2078
2138
|
throw new Error("Column span must be between 1 and 12");
|
|
2079
2139
|
switch (e) {
|
|
@@ -2104,62 +2164,62 @@ const q = (e) => {
|
|
|
2104
2164
|
default:
|
|
2105
2165
|
return "col-span-2";
|
|
2106
2166
|
}
|
|
2107
|
-
},
|
|
2108
|
-
({ children: e, className:
|
|
2109
|
-
const { columns: t } =
|
|
2110
|
-
return /* @__PURE__ */
|
|
2167
|
+
}, It = h(
|
|
2168
|
+
({ children: e, className: r, ...a }, s) => {
|
|
2169
|
+
const { columns: t } = W();
|
|
2170
|
+
return /* @__PURE__ */ n.jsx(
|
|
2111
2171
|
"div",
|
|
2112
2172
|
{
|
|
2113
2173
|
role: "rowgroup",
|
|
2114
|
-
className: f("bg-neutral-soft",
|
|
2174
|
+
className: f("bg-neutral-soft", r),
|
|
2115
2175
|
...a,
|
|
2116
2176
|
ref: s,
|
|
2117
|
-
children: /* @__PURE__ */
|
|
2177
|
+
children: /* @__PURE__ */ n.jsx(
|
|
2118
2178
|
"div",
|
|
2119
2179
|
{
|
|
2120
2180
|
role: "row",
|
|
2121
|
-
className: f("grid gap-4",
|
|
2181
|
+
className: f("grid gap-4", B(t)),
|
|
2122
2182
|
children: e
|
|
2123
2183
|
}
|
|
2124
2184
|
)
|
|
2125
2185
|
}
|
|
2126
2186
|
);
|
|
2127
2187
|
}
|
|
2128
|
-
),
|
|
2129
|
-
({ children: e, className:
|
|
2130
|
-
),
|
|
2131
|
-
({ children: e, className:
|
|
2132
|
-
const { columns: t } =
|
|
2133
|
-
return /* @__PURE__ */
|
|
2188
|
+
), At = h(
|
|
2189
|
+
({ children: e, className: r, ...a }, s) => /* @__PURE__ */ n.jsx("div", { role: "rowgroup", ref: s, className: f(r), ...a, children: e })
|
|
2190
|
+
), Lt = h(
|
|
2191
|
+
({ children: e, className: r, ...a }, s) => {
|
|
2192
|
+
const { columns: t } = W();
|
|
2193
|
+
return /* @__PURE__ */ n.jsx(
|
|
2134
2194
|
"div",
|
|
2135
2195
|
{
|
|
2136
2196
|
role: "rowgroup",
|
|
2137
|
-
className: f("bg-neutral-soft",
|
|
2197
|
+
className: f("bg-neutral-soft", r),
|
|
2138
2198
|
...a,
|
|
2139
2199
|
ref: s,
|
|
2140
|
-
children: /* @__PURE__ */
|
|
2200
|
+
children: /* @__PURE__ */ n.jsx(
|
|
2141
2201
|
"div",
|
|
2142
2202
|
{
|
|
2143
2203
|
role: "row",
|
|
2144
|
-
className: f("grid gap-4",
|
|
2204
|
+
className: f("grid gap-4", B(t)),
|
|
2145
2205
|
children: e
|
|
2146
2206
|
}
|
|
2147
2207
|
)
|
|
2148
2208
|
}
|
|
2149
2209
|
);
|
|
2150
2210
|
}
|
|
2151
|
-
),
|
|
2152
|
-
({ children: e, className:
|
|
2153
|
-
const { columns: t } =
|
|
2154
|
-
return /* @__PURE__ */
|
|
2211
|
+
), Mt = h(
|
|
2212
|
+
({ children: e, className: r, ...a }, s) => {
|
|
2213
|
+
const { columns: t } = W();
|
|
2214
|
+
return /* @__PURE__ */ n.jsx(
|
|
2155
2215
|
"div",
|
|
2156
2216
|
{
|
|
2157
2217
|
role: "row",
|
|
2158
2218
|
className: f(
|
|
2159
2219
|
"grid gap-4",
|
|
2160
|
-
|
|
2220
|
+
B(t),
|
|
2161
2221
|
"border-b border-border last:border-0",
|
|
2162
|
-
|
|
2222
|
+
r
|
|
2163
2223
|
),
|
|
2164
2224
|
ref: s,
|
|
2165
2225
|
...a,
|
|
@@ -2168,10 +2228,10 @@ const q = (e) => {
|
|
|
2168
2228
|
);
|
|
2169
2229
|
}
|
|
2170
2230
|
), Y = h(
|
|
2171
|
-
({ as: e = "td", span:
|
|
2231
|
+
({ as: e = "td", span: r, align: a = "left", children: s, className: t, ...o }, i) => {
|
|
2172
2232
|
const l = e === "th" ? "columnheader" : "cell";
|
|
2173
2233
|
let d = "text-left";
|
|
2174
|
-
return a === "center" ? d = "text-center" : a === "right" && (d = "text-right"), /* @__PURE__ */
|
|
2234
|
+
return a === "center" ? d = "text-center" : a === "right" && (d = "text-right"), /* @__PURE__ */ n.jsx(
|
|
2175
2235
|
"div",
|
|
2176
2236
|
{
|
|
2177
2237
|
ref: i,
|
|
@@ -2179,7 +2239,7 @@ const q = (e) => {
|
|
|
2179
2239
|
className: f(
|
|
2180
2240
|
"px-4 py-2",
|
|
2181
2241
|
"[&:not(:last-child)]:border-r [&:not(:last-child)]:border-border",
|
|
2182
|
-
|
|
2242
|
+
Vt(r),
|
|
2183
2243
|
d,
|
|
2184
2244
|
"truncate overflow-hidden whitespace-nowrap",
|
|
2185
2245
|
t
|
|
@@ -2189,34 +2249,34 @@ const q = (e) => {
|
|
|
2189
2249
|
}
|
|
2190
2250
|
);
|
|
2191
2251
|
}
|
|
2192
|
-
),
|
|
2193
|
-
(e,
|
|
2252
|
+
), St = h(
|
|
2253
|
+
(e, r) => /* @__PURE__ */ n.jsx(
|
|
2194
2254
|
Y,
|
|
2195
2255
|
{
|
|
2196
2256
|
...e,
|
|
2197
2257
|
as: "td",
|
|
2198
|
-
ref:
|
|
2258
|
+
ref: r,
|
|
2199
2259
|
className: f(
|
|
2200
2260
|
"truncate overflow-hidden whitespace-nowrap",
|
|
2201
2261
|
e.className
|
|
2202
2262
|
)
|
|
2203
2263
|
}
|
|
2204
2264
|
)
|
|
2205
|
-
),
|
|
2206
|
-
(e,
|
|
2265
|
+
), _t = h(
|
|
2266
|
+
(e, r) => /* @__PURE__ */ n.jsx(
|
|
2207
2267
|
Y,
|
|
2208
2268
|
{
|
|
2209
2269
|
...e,
|
|
2210
2270
|
as: "th",
|
|
2211
|
-
ref:
|
|
2271
|
+
ref: r,
|
|
2212
2272
|
className: f(
|
|
2213
2273
|
"truncate overflow-hidden whitespace-nowrap",
|
|
2214
2274
|
e.className
|
|
2215
2275
|
)
|
|
2216
2276
|
}
|
|
2217
2277
|
)
|
|
2218
|
-
),
|
|
2219
|
-
({ children: e, className:
|
|
2278
|
+
), Rt = h(
|
|
2279
|
+
({ children: e, className: r, columns: a = 12, ...s }, t) => /* @__PURE__ */ n.jsx(zt, { value: { columns: a }, children: /* @__PURE__ */ n.jsx(
|
|
2220
2280
|
"div",
|
|
2221
2281
|
{
|
|
2222
2282
|
ref: t,
|
|
@@ -2227,20 +2287,20 @@ const q = (e) => {
|
|
|
2227
2287
|
"text-foreground",
|
|
2228
2288
|
"sm:rounded-xl",
|
|
2229
2289
|
"transition-colors",
|
|
2230
|
-
|
|
2290
|
+
r
|
|
2231
2291
|
),
|
|
2232
2292
|
...s,
|
|
2233
2293
|
children: e
|
|
2234
2294
|
}
|
|
2235
2295
|
) })
|
|
2236
|
-
),
|
|
2237
|
-
Header:
|
|
2238
|
-
HeaderItem:
|
|
2239
|
-
Body:
|
|
2240
|
-
Footer:
|
|
2241
|
-
Row:
|
|
2242
|
-
RowItem:
|
|
2243
|
-
}),
|
|
2296
|
+
), ir = Object.assign(Rt, {
|
|
2297
|
+
Header: It,
|
|
2298
|
+
HeaderItem: _t,
|
|
2299
|
+
Body: At,
|
|
2300
|
+
Footer: Lt,
|
|
2301
|
+
Row: Mt,
|
|
2302
|
+
RowItem: St
|
|
2303
|
+
}), Ot = g(
|
|
2244
2304
|
// Base classes
|
|
2245
2305
|
"block transition-colors duration-200",
|
|
2246
2306
|
{
|
|
@@ -2275,18 +2335,18 @@ const q = (e) => {
|
|
|
2275
2335
|
shape: "rounded"
|
|
2276
2336
|
}
|
|
2277
2337
|
}
|
|
2278
|
-
),
|
|
2279
|
-
({ variant: e = "white", size:
|
|
2338
|
+
), lr = h(
|
|
2339
|
+
({ variant: e = "white", size: r = "md", shape: a = "rounded", className: s, ...t }, o) => /* @__PURE__ */ n.jsx(
|
|
2280
2340
|
"div",
|
|
2281
2341
|
{
|
|
2282
2342
|
ref: o,
|
|
2283
|
-
className: f(
|
|
2343
|
+
className: f(Ot({ variant: e, size: r, shape: a }), s),
|
|
2284
2344
|
...t
|
|
2285
2345
|
}
|
|
2286
2346
|
)
|
|
2287
2347
|
);
|
|
2288
|
-
function
|
|
2289
|
-
const [
|
|
2348
|
+
function Tt({ src: e }) {
|
|
2349
|
+
const [r, a] = k(!1), [s, t] = k(!1), o = T(!1), i = () => {
|
|
2290
2350
|
a(!0);
|
|
2291
2351
|
}, l = () => {
|
|
2292
2352
|
t(!0);
|
|
@@ -2302,13 +2362,13 @@ function Rt({ src: e }) {
|
|
|
2302
2362
|
o.current = !0;
|
|
2303
2363
|
};
|
|
2304
2364
|
}, [e]), {
|
|
2305
|
-
loaded:
|
|
2365
|
+
loaded: r,
|
|
2306
2366
|
errored: s,
|
|
2307
2367
|
handleLoad: i,
|
|
2308
2368
|
handleError: l
|
|
2309
2369
|
};
|
|
2310
2370
|
}
|
|
2311
|
-
const
|
|
2371
|
+
const Wt = g("block object-cover", {
|
|
2312
2372
|
variants: {
|
|
2313
2373
|
position: {
|
|
2314
2374
|
cover: "object-cover",
|
|
@@ -2361,39 +2421,39 @@ const Ot = g("block object-cover", {
|
|
|
2361
2421
|
}
|
|
2362
2422
|
}
|
|
2363
2423
|
);
|
|
2364
|
-
function
|
|
2424
|
+
function Bt({
|
|
2365
2425
|
className: e,
|
|
2366
|
-
shape:
|
|
2426
|
+
shape: r,
|
|
2367
2427
|
size: a,
|
|
2368
2428
|
height: s,
|
|
2369
2429
|
width: t
|
|
2370
2430
|
}) {
|
|
2371
|
-
return /* @__PURE__ */
|
|
2431
|
+
return /* @__PURE__ */ n.jsx(
|
|
2372
2432
|
de,
|
|
2373
2433
|
{
|
|
2374
|
-
className: f(Z({ shape:
|
|
2434
|
+
className: f(Z({ shape: r, size: a }), e),
|
|
2375
2435
|
style: { height: s, width: t }
|
|
2376
2436
|
}
|
|
2377
2437
|
);
|
|
2378
2438
|
}
|
|
2379
|
-
function
|
|
2439
|
+
function qt({
|
|
2380
2440
|
alt: e,
|
|
2381
|
-
width:
|
|
2441
|
+
width: r,
|
|
2382
2442
|
height: a,
|
|
2383
2443
|
className: s,
|
|
2384
2444
|
style: t,
|
|
2385
2445
|
shape: o,
|
|
2386
2446
|
size: i
|
|
2387
2447
|
}) {
|
|
2388
|
-
return /* @__PURE__ */
|
|
2448
|
+
return /* @__PURE__ */ n.jsxs(
|
|
2389
2449
|
"div",
|
|
2390
2450
|
{
|
|
2391
2451
|
className: Z({ shape: o, size: i, className: s }),
|
|
2392
|
-
style: { width:
|
|
2452
|
+
style: { width: r, height: a, ...t },
|
|
2393
2453
|
"aria-label": e,
|
|
2394
2454
|
role: "img",
|
|
2395
2455
|
children: [
|
|
2396
|
-
/* @__PURE__ */
|
|
2456
|
+
/* @__PURE__ */ n.jsx(
|
|
2397
2457
|
ce,
|
|
2398
2458
|
{
|
|
2399
2459
|
size: 32,
|
|
@@ -2401,15 +2461,15 @@ function Bt({
|
|
|
2401
2461
|
"aria-hidden": "true"
|
|
2402
2462
|
}
|
|
2403
2463
|
),
|
|
2404
|
-
/* @__PURE__ */
|
|
2464
|
+
/* @__PURE__ */ n.jsx("span", { style: { opacity: 0.7 }, children: e })
|
|
2405
2465
|
]
|
|
2406
2466
|
}
|
|
2407
2467
|
);
|
|
2408
2468
|
}
|
|
2409
|
-
const
|
|
2469
|
+
const q = h(
|
|
2410
2470
|
({
|
|
2411
2471
|
src: e,
|
|
2412
|
-
alt:
|
|
2472
|
+
alt: r,
|
|
2413
2473
|
onLoad: a,
|
|
2414
2474
|
onError: s,
|
|
2415
2475
|
width: t,
|
|
@@ -2420,36 +2480,36 @@ const P = h(
|
|
|
2420
2480
|
shape: u,
|
|
2421
2481
|
className: m,
|
|
2422
2482
|
...x
|
|
2423
|
-
},
|
|
2424
|
-
const { loaded:
|
|
2483
|
+
}, p) => {
|
|
2484
|
+
const { loaded: b, errored: w, handleLoad: v, handleError: N } = Tt({
|
|
2425
2485
|
src: e
|
|
2426
2486
|
}), y = typeof t == "number" ? t : Number(t), I = typeof o == "number" ? o : Number(o);
|
|
2427
|
-
return !
|
|
2428
|
-
|
|
2487
|
+
return !b && !w ? /* @__PURE__ */ n.jsx(
|
|
2488
|
+
Bt,
|
|
2429
2489
|
{
|
|
2430
2490
|
shape: u,
|
|
2431
2491
|
width: y,
|
|
2432
2492
|
height: I
|
|
2433
2493
|
}
|
|
2434
|
-
) : w ? /* @__PURE__ */
|
|
2435
|
-
|
|
2494
|
+
) : w ? /* @__PURE__ */ n.jsx(
|
|
2495
|
+
qt,
|
|
2436
2496
|
{
|
|
2437
2497
|
shape: u,
|
|
2438
|
-
alt:
|
|
2498
|
+
alt: r,
|
|
2439
2499
|
width: y,
|
|
2440
2500
|
height: I
|
|
2441
2501
|
}
|
|
2442
|
-
) : /* @__PURE__ */
|
|
2502
|
+
) : /* @__PURE__ */ n.jsx(
|
|
2443
2503
|
"img",
|
|
2444
2504
|
{
|
|
2445
|
-
ref:
|
|
2505
|
+
ref: p,
|
|
2446
2506
|
src: e,
|
|
2447
|
-
alt:
|
|
2507
|
+
alt: r,
|
|
2448
2508
|
width: y,
|
|
2449
2509
|
height: I,
|
|
2450
2510
|
loading: i,
|
|
2451
2511
|
className: f(
|
|
2452
|
-
|
|
2512
|
+
Wt({
|
|
2453
2513
|
position: l,
|
|
2454
2514
|
size: d,
|
|
2455
2515
|
shape: u
|
|
@@ -2466,35 +2526,37 @@ const P = h(
|
|
|
2466
2526
|
}
|
|
2467
2527
|
);
|
|
2468
2528
|
}
|
|
2469
|
-
),
|
|
2529
|
+
), cr = h((e, r) => /* @__PURE__ */ n.jsx(q, { ref: r, ...e, shape: "circle" })), dr = h((e, r) => /* @__PURE__ */ n.jsx(q, { ref: r, ...e, shape: "square" })), ur = h((e, r) => /* @__PURE__ */ n.jsx(q, { ref: r, ...e, shape: "rectangle" }));
|
|
2470
2530
|
export {
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2531
|
+
Ut as A,
|
|
2532
|
+
Yt as B,
|
|
2533
|
+
nr as C,
|
|
2534
|
+
ar as F,
|
|
2475
2535
|
G as H,
|
|
2476
2536
|
E as I,
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2537
|
+
V as M,
|
|
2538
|
+
or as N,
|
|
2539
|
+
ir as T,
|
|
2540
|
+
Dt as a,
|
|
2541
|
+
Xt as b,
|
|
2542
|
+
Jt as c,
|
|
2543
|
+
Te as d,
|
|
2544
|
+
Kt as e,
|
|
2545
|
+
Qt as f,
|
|
2546
|
+
Zt as g,
|
|
2487
2547
|
J as h,
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2548
|
+
er as i,
|
|
2549
|
+
tr as j,
|
|
2550
|
+
rr as k,
|
|
2491
2551
|
ht as l,
|
|
2492
|
-
|
|
2493
|
-
|
|
2552
|
+
kt as m,
|
|
2553
|
+
yt as n,
|
|
2494
2554
|
sr as o,
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2555
|
+
j as p,
|
|
2556
|
+
lr as q,
|
|
2557
|
+
cr as r,
|
|
2558
|
+
dr as s,
|
|
2559
|
+
ur as t,
|
|
2560
|
+
q as u,
|
|
2561
|
+
Ne as v
|
|
2500
2562
|
};
|