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