@dimasbaguspm/versaur 0.0.61 → 0.0.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/js/forms/index.js +1 -1
- package/dist/js/{image-rectangle-CLLXF8w_.js → image-rectangle-Je73yhJX.js} +625 -636
- package/dist/js/index.js +5 -5
- package/dist/js/layouts/index.js +1 -1
- package/dist/js/navigation/index.js +1 -1
- package/dist/js/overlays/index.js +2 -2
- package/dist/js/primitive/index.js +1 -1
- package/dist/js/{tabs-DeyqSghV.js → tabs-KrYzaUx1.js} +1 -1
- package/dist/js/{time-picker-input-B_cV6nlk.js → time-picker-input-1T8z4Ffd.js} +1 -1
- package/dist/js/tooltip-DAyfV2gr.js +625 -0
- package/dist/js/{top-bar-BGJufFzt.js → top-bar-BD0gTsZF.js} +157 -187
- package/dist/types/overlays/drawer/drawer.atoms.d.ts +2 -7
- package/dist/types/overlays/drawer/drawer.d.ts +1 -1
- package/dist/types/overlays/drawer/types.d.ts +1 -11
- package/dist/types/overlays/modal/modal.atoms.d.ts +1 -5
- package/dist/types/overlays/modal/types.d.ts +1 -2
- package/dist/types/primitive/heading/types.d.ts +9 -12
- package/dist/types/primitive/text/text.d.ts +6 -3
- package/dist/types/primitive/text/types.d.ts +10 -18
- package/dist/types/primitive/tile/tile.d.ts +7 -1
- package/dist/types/primitive/tile/types.d.ts +6 -1
- package/package.json +2 -1
- package/dist/js/tooltip-C1TbSbNF.js +0 -693
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { j as
|
|
1
|
+
import { j as r } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
2
|
import * as c from "react";
|
|
3
|
-
import
|
|
4
|
-
import { ChevronDown as ae, ChevronRight as se, LoaderCircleIcon as
|
|
5
|
-
import { c as g, a as
|
|
3
|
+
import _, { createContext as O, useContext as S, forwardRef as f, useState as j, useRef as B, useCallback as A, useEffect as E, useId as re, cloneElement as ne } from "react";
|
|
4
|
+
import { ChevronDown as ae, ChevronRight as se, LoaderCircleIcon as F, CheckIcon as oe, EllipsisVerticalIcon as ie, XIcon as le, ImageOff as ce } from "lucide-react";
|
|
5
|
+
import { c as g, a as u } from "./index-BDtz_hQY.js";
|
|
6
6
|
import { S as de } from "./skeleton-BRwIW26B.js";
|
|
7
|
-
const
|
|
7
|
+
const G = O(
|
|
8
8
|
null
|
|
9
9
|
), $ = () => {
|
|
10
|
-
const e =
|
|
10
|
+
const e = S(G);
|
|
11
11
|
if (!e)
|
|
12
12
|
throw new Error(
|
|
13
13
|
"Accordion compound components must be used within Accordion"
|
|
@@ -26,7 +26,7 @@ const F = R(
|
|
|
26
26
|
disabled: !1
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
-
),
|
|
29
|
+
), me = g(
|
|
30
30
|
"flex items-center justify-between w-full p-4 text-left transition-colors duration-200 focus:outline-none focus-visible:ring-2 focus-visible:ring-primary-light focus-visible:ring-inset",
|
|
31
31
|
{
|
|
32
32
|
variants: {
|
|
@@ -44,7 +44,7 @@ const F = R(
|
|
|
44
44
|
isOpen: !1
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
),
|
|
47
|
+
), he = g(
|
|
48
48
|
"overflow-hidden transition-all duration-300",
|
|
49
49
|
{
|
|
50
50
|
variants: {
|
|
@@ -57,7 +57,7 @@ const F = R(
|
|
|
57
57
|
isOpen: !1
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
),
|
|
60
|
+
), fe = g("p-4 pt-0"), ge = g("transition-transform duration-200", {
|
|
61
61
|
variants: {
|
|
62
62
|
isOpen: {
|
|
63
63
|
true: "rotate-180",
|
|
@@ -84,13 +84,17 @@ const F = R(
|
|
|
84
84
|
black: "text-black",
|
|
85
85
|
white: "text-white"
|
|
86
86
|
},
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
87
|
+
transform: {
|
|
88
|
+
none: "normal-case",
|
|
89
|
+
capitalize: "capitalize",
|
|
90
|
+
uppercase: "uppercase",
|
|
91
|
+
lowercase: "lowercase"
|
|
90
92
|
},
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
93
|
+
decoration: {
|
|
94
|
+
none: "no-underline",
|
|
95
|
+
underline: "underline",
|
|
96
|
+
"line-through": "line-through",
|
|
97
|
+
overline: "overline"
|
|
94
98
|
},
|
|
95
99
|
hasMargin: {
|
|
96
100
|
true: "mb-4",
|
|
@@ -102,10 +106,6 @@ const F = R(
|
|
|
102
106
|
right: "text-right",
|
|
103
107
|
justify: "text-justify"
|
|
104
108
|
},
|
|
105
|
-
italic: {
|
|
106
|
-
true: "italic",
|
|
107
|
-
false: ""
|
|
108
|
-
},
|
|
109
109
|
clamp: {
|
|
110
110
|
1: "line-clamp-1",
|
|
111
111
|
2: "line-clamp-2",
|
|
@@ -114,71 +114,63 @@ const F = R(
|
|
|
114
114
|
5: "line-clamp-5",
|
|
115
115
|
none: ""
|
|
116
116
|
},
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
3: "font-semibold text-lg leading-relaxed",
|
|
125
|
-
4: "font-bold text-sm leading-normal",
|
|
126
|
-
5: "font-semibold text-sm leading-normal",
|
|
127
|
-
6: "font-medium text-xs leading-normal"
|
|
117
|
+
as: {
|
|
118
|
+
h1: "font-bold text-2xl leading-loose",
|
|
119
|
+
h2: "font-semibold text-2xl leading-relaxed",
|
|
120
|
+
h3: "font-medium text-2xl leading-relaxed",
|
|
121
|
+
h4: "font-bold text-xl leading-normal",
|
|
122
|
+
h5: "font-semibold text-lg leading-normal",
|
|
123
|
+
h6: "font-medium text-base leading-normal"
|
|
128
124
|
}
|
|
129
125
|
},
|
|
130
126
|
defaultVariants: {
|
|
131
127
|
color: "ghost",
|
|
132
|
-
|
|
133
|
-
|
|
128
|
+
transform: "none",
|
|
129
|
+
decoration: "none",
|
|
134
130
|
hasMargin: !1,
|
|
135
131
|
align: "left",
|
|
136
|
-
italic: !1,
|
|
137
132
|
clamp: "none",
|
|
138
|
-
|
|
139
|
-
level: 1
|
|
133
|
+
as: "h1"
|
|
140
134
|
}
|
|
141
|
-
}),
|
|
135
|
+
}), L = f(
|
|
142
136
|
({
|
|
143
|
-
|
|
144
|
-
color:
|
|
145
|
-
|
|
146
|
-
|
|
137
|
+
as: e = "h3",
|
|
138
|
+
color: n = "black",
|
|
139
|
+
transform: a = "none",
|
|
140
|
+
decoration: s = "none",
|
|
147
141
|
hasMargin: t = !1,
|
|
148
142
|
align: o = "left",
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
className: u,
|
|
143
|
+
clamp: i = "none",
|
|
144
|
+
ellipsis: l = !1,
|
|
145
|
+
className: d,
|
|
153
146
|
children: m,
|
|
154
|
-
...
|
|
155
|
-
},
|
|
156
|
-
const b =
|
|
157
|
-
return /* @__PURE__ */
|
|
158
|
-
|
|
159
|
-
{
|
|
160
|
-
ref:
|
|
161
|
-
className:
|
|
147
|
+
...h
|
|
148
|
+
}, x) => {
|
|
149
|
+
const p = e, b = l ? i === "none" ? "truncate" : "overflow-hidden" : "";
|
|
150
|
+
return /* @__PURE__ */ r.jsx(
|
|
151
|
+
p,
|
|
152
|
+
{
|
|
153
|
+
ref: x,
|
|
154
|
+
className: u(
|
|
162
155
|
xe({
|
|
163
|
-
color:
|
|
164
|
-
|
|
165
|
-
|
|
156
|
+
color: n,
|
|
157
|
+
transform: a,
|
|
158
|
+
decoration: s,
|
|
166
159
|
hasMargin: t,
|
|
167
160
|
align: o,
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
ellipsis: d,
|
|
171
|
-
level: e
|
|
161
|
+
clamp: i,
|
|
162
|
+
as: p
|
|
172
163
|
}),
|
|
173
|
-
|
|
164
|
+
b,
|
|
165
|
+
d
|
|
174
166
|
),
|
|
175
|
-
...
|
|
167
|
+
...h,
|
|
176
168
|
children: m
|
|
177
169
|
}
|
|
178
170
|
);
|
|
179
171
|
}
|
|
180
172
|
);
|
|
181
|
-
|
|
173
|
+
L.displayName = "Heading";
|
|
182
174
|
const be = g("inline-flex items-center justify-center", {
|
|
183
175
|
variants: {
|
|
184
176
|
size: {
|
|
@@ -209,54 +201,54 @@ const be = g("inline-flex items-center justify-center", {
|
|
|
209
201
|
size: "md",
|
|
210
202
|
color: "primary"
|
|
211
203
|
}
|
|
212
|
-
}),
|
|
213
|
-
return /* @__PURE__ */
|
|
214
|
-
|
|
204
|
+
}), k = _.forwardRef(function({ as: n, color: a = "primary", size: s = "md", className: t, ...o }, i) {
|
|
205
|
+
return /* @__PURE__ */ r.jsx(
|
|
206
|
+
n,
|
|
215
207
|
{
|
|
216
208
|
ref: i,
|
|
217
209
|
className: be({ color: a, size: s, className: t }),
|
|
218
210
|
...o
|
|
219
211
|
}
|
|
220
212
|
);
|
|
221
|
-
}), pe =
|
|
222
|
-
return /* @__PURE__ */
|
|
223
|
-
|
|
213
|
+
}), pe = f(function({ className: n, children: a, ...s }, t) {
|
|
214
|
+
return /* @__PURE__ */ r.jsx(
|
|
215
|
+
L,
|
|
224
216
|
{
|
|
225
217
|
ref: t,
|
|
226
|
-
|
|
227
|
-
className:
|
|
218
|
+
as: "h6",
|
|
219
|
+
className: u("font-medium", n),
|
|
228
220
|
...s,
|
|
229
221
|
color: "black",
|
|
230
222
|
children: a
|
|
231
223
|
}
|
|
232
224
|
);
|
|
233
|
-
}),
|
|
225
|
+
}), ve = f(function({ className: n, children: a, ...s }, t) {
|
|
234
226
|
const { isOpen: o } = $();
|
|
235
|
-
return /* @__PURE__ */
|
|
227
|
+
return /* @__PURE__ */ r.jsx(
|
|
236
228
|
"div",
|
|
237
229
|
{
|
|
238
230
|
ref: t,
|
|
239
|
-
className:
|
|
231
|
+
className: u(he({ isOpen: o }), n),
|
|
240
232
|
...s,
|
|
241
|
-
children: /* @__PURE__ */
|
|
233
|
+
children: /* @__PURE__ */ r.jsx("div", { className: fe(), children: a })
|
|
242
234
|
}
|
|
243
235
|
);
|
|
244
|
-
}),
|
|
236
|
+
}), D = f(function({ as: n, ...a }, s) {
|
|
245
237
|
const { isOpen: t } = $();
|
|
246
|
-
return /* @__PURE__ */
|
|
247
|
-
|
|
238
|
+
return /* @__PURE__ */ r.jsx(
|
|
239
|
+
k,
|
|
248
240
|
{
|
|
249
241
|
ref: s,
|
|
250
|
-
as:
|
|
242
|
+
as: n,
|
|
251
243
|
color: "ghost",
|
|
252
244
|
size: "sm",
|
|
253
245
|
className: ge({ isOpen: t }),
|
|
254
246
|
...a
|
|
255
247
|
}
|
|
256
248
|
);
|
|
257
|
-
}),
|
|
249
|
+
}), we = f(
|
|
258
250
|
function({
|
|
259
|
-
title:
|
|
251
|
+
title: n,
|
|
260
252
|
subtitle: a,
|
|
261
253
|
isDefaultOpen: s = !1,
|
|
262
254
|
disabled: t = !1,
|
|
@@ -264,60 +256,60 @@ const be = g("inline-flex items-center justify-center", {
|
|
|
264
256
|
className: i,
|
|
265
257
|
children: l,
|
|
266
258
|
...d
|
|
267
|
-
},
|
|
268
|
-
const [
|
|
269
|
-
t || x((
|
|
259
|
+
}, m) {
|
|
260
|
+
const [h, x] = j(s), p = () => {
|
|
261
|
+
t || x((v) => !v);
|
|
270
262
|
}, b = {
|
|
271
|
-
isOpen:
|
|
263
|
+
isOpen: h,
|
|
272
264
|
toggle: p,
|
|
273
265
|
disabled: t
|
|
274
266
|
};
|
|
275
|
-
return /* @__PURE__ */
|
|
267
|
+
return /* @__PURE__ */ r.jsx(G.Provider, { value: b, children: /* @__PURE__ */ r.jsxs(
|
|
276
268
|
"div",
|
|
277
269
|
{
|
|
278
|
-
ref:
|
|
279
|
-
className:
|
|
270
|
+
ref: m,
|
|
271
|
+
className: u(
|
|
280
272
|
ue({ disabled: t }),
|
|
281
273
|
i,
|
|
282
274
|
o && "mb-4"
|
|
283
275
|
),
|
|
284
276
|
...d,
|
|
285
277
|
children: [
|
|
286
|
-
/* @__PURE__ */
|
|
278
|
+
/* @__PURE__ */ r.jsx(
|
|
287
279
|
"div",
|
|
288
280
|
{
|
|
289
281
|
role: "button",
|
|
290
|
-
className:
|
|
282
|
+
className: me({ disabled: t, isOpen: h }),
|
|
291
283
|
onClick: p,
|
|
292
284
|
"aria-disabled": t,
|
|
293
|
-
"aria-expanded":
|
|
294
|
-
children: /* @__PURE__ */
|
|
295
|
-
/* @__PURE__ */
|
|
296
|
-
/* @__PURE__ */
|
|
297
|
-
a && /* @__PURE__ */
|
|
285
|
+
"aria-expanded": h,
|
|
286
|
+
children: /* @__PURE__ */ r.jsxs("div", { className: "flex items-center justify-between w-full gap-2", children: [
|
|
287
|
+
/* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-3 flex-grow", children: [
|
|
288
|
+
/* @__PURE__ */ r.jsx("div", { className: "flex-1", children: n }),
|
|
289
|
+
a && /* @__PURE__ */ r.jsx("div", { className: "flex-shrink-0", children: a })
|
|
298
290
|
] }),
|
|
299
|
-
/* @__PURE__ */
|
|
291
|
+
/* @__PURE__ */ r.jsx(D, { as: ae })
|
|
300
292
|
] })
|
|
301
293
|
}
|
|
302
294
|
),
|
|
303
|
-
/* @__PURE__ */
|
|
295
|
+
/* @__PURE__ */ r.jsx(
|
|
304
296
|
"div",
|
|
305
297
|
{
|
|
306
|
-
className:
|
|
298
|
+
className: u(
|
|
307
299
|
"overflow-hidden transition-all duration-300",
|
|
308
|
-
|
|
300
|
+
h ? "max-h-screen opacity-100" : "max-h-0 opacity-0"
|
|
309
301
|
),
|
|
310
|
-
children: /* @__PURE__ */
|
|
302
|
+
children: /* @__PURE__ */ r.jsx("div", { className: "p-4 pt-2", children: l })
|
|
311
303
|
}
|
|
312
304
|
)
|
|
313
305
|
]
|
|
314
306
|
}
|
|
315
307
|
) });
|
|
316
308
|
}
|
|
317
|
-
), Ut = Object.assign(
|
|
309
|
+
), Ut = Object.assign(we, {
|
|
318
310
|
Title: pe,
|
|
319
|
-
Content:
|
|
320
|
-
Icon:
|
|
311
|
+
Content: ve,
|
|
312
|
+
Icon: D
|
|
321
313
|
}), ye = g(
|
|
322
314
|
[
|
|
323
315
|
// Base styles
|
|
@@ -340,8 +332,8 @@ const be = g("inline-flex items-center justify-center", {
|
|
|
340
332
|
}
|
|
341
333
|
}
|
|
342
334
|
);
|
|
343
|
-
function je(e,
|
|
344
|
-
const t = e.getBoundingClientRect(), o =
|
|
335
|
+
function je(e, n, a = "bottom", s = 8) {
|
|
336
|
+
const t = e.getBoundingClientRect(), o = n.getBoundingClientRect();
|
|
345
337
|
let i = 0, l = 0;
|
|
346
338
|
switch (a) {
|
|
347
339
|
// Top placements
|
|
@@ -385,64 +377,64 @@ function je(e, r, a = "bottom", s = 8) {
|
|
|
385
377
|
i = t.bottom - o.height, l = t.left - o.width - s;
|
|
386
378
|
break;
|
|
387
379
|
}
|
|
388
|
-
const d = window.innerWidth,
|
|
389
|
-
return l + o.width > d -
|
|
390
|
-
top: `${Math.max(
|
|
391
|
-
left: `${Math.max(
|
|
380
|
+
const d = window.innerWidth, m = window.innerHeight, h = 8;
|
|
381
|
+
return l + o.width > d - h && (l = d - o.width - h), l < h && (l = h), i + o.height > m - h && (a.startsWith("bottom") ? i = t.top - o.height - s : i < h && (i = h)), i < h && (a.startsWith("top") ? i = t.bottom + s : i = h), {
|
|
382
|
+
top: `${Math.max(h, i)}px`,
|
|
383
|
+
left: `${Math.max(h, l)}px`,
|
|
392
384
|
margin: 0
|
|
393
385
|
};
|
|
394
386
|
}
|
|
395
|
-
function
|
|
396
|
-
const t =
|
|
387
|
+
function Ne(e, n, a, s) {
|
|
388
|
+
const t = B(null), [o, i] = j(!1), l = n !== void 0, d = l ? n : o, m = A(() => {
|
|
397
389
|
t.current && t.current.showPopover?.();
|
|
398
|
-
}, []),
|
|
390
|
+
}, []), h = A(() => {
|
|
399
391
|
t.current && t.current.hidePopover?.();
|
|
400
|
-
}, []), x =
|
|
392
|
+
}, []), x = A(() => {
|
|
401
393
|
t.current && t.current.togglePopover?.();
|
|
402
|
-
}, []), p =
|
|
394
|
+
}, []), p = A(
|
|
403
395
|
(b = "toggle") => ({
|
|
404
396
|
popoverTarget: e,
|
|
405
397
|
popoverTargetAction: b
|
|
406
398
|
}),
|
|
407
399
|
[e]
|
|
408
400
|
);
|
|
409
|
-
return
|
|
401
|
+
return E(() => {
|
|
410
402
|
const b = t.current;
|
|
411
403
|
if (!b) return;
|
|
412
|
-
const
|
|
413
|
-
const y =
|
|
404
|
+
const v = (w) => {
|
|
405
|
+
const y = w.newState === "open";
|
|
414
406
|
l || i(y), y && a ? a() : !y && s && s();
|
|
415
407
|
};
|
|
416
|
-
return b.addEventListener("toggle",
|
|
417
|
-
b.removeEventListener("toggle",
|
|
408
|
+
return b.addEventListener("toggle", v), () => {
|
|
409
|
+
b.removeEventListener("toggle", v);
|
|
418
410
|
};
|
|
419
|
-
}, [l, a, s]),
|
|
411
|
+
}, [l, a, s]), E(() => {
|
|
420
412
|
if (!l || !t.current) return;
|
|
421
413
|
const b = t.current;
|
|
422
414
|
if (!b.showPopover || !b.hidePopover) return;
|
|
423
|
-
let
|
|
415
|
+
let v = !1;
|
|
424
416
|
try {
|
|
425
|
-
|
|
417
|
+
v = b.matches(":popover-open");
|
|
426
418
|
} catch {
|
|
427
419
|
}
|
|
428
|
-
|
|
429
|
-
}, [
|
|
420
|
+
n && !v ? m() : !n && v && h();
|
|
421
|
+
}, [n, l, m, h]), {
|
|
430
422
|
getTriggerProps: p,
|
|
431
|
-
show:
|
|
432
|
-
hide:
|
|
423
|
+
show: m,
|
|
424
|
+
hide: h,
|
|
433
425
|
toggle: x,
|
|
434
426
|
isOpen: d,
|
|
435
427
|
popoverRef: t
|
|
436
428
|
};
|
|
437
429
|
}
|
|
438
|
-
const
|
|
430
|
+
const ke = (...e) => (n) => {
|
|
439
431
|
e.forEach((a) => {
|
|
440
|
-
typeof a == "function" ? a(
|
|
432
|
+
typeof a == "function" ? a(n) : a && "current" in a && (a.current = n);
|
|
441
433
|
});
|
|
442
|
-
},
|
|
434
|
+
}, X = f(
|
|
443
435
|
({
|
|
444
436
|
id: e,
|
|
445
|
-
children:
|
|
437
|
+
children: n,
|
|
446
438
|
isOpen: a,
|
|
447
439
|
onOpen: s,
|
|
448
440
|
onClose: t,
|
|
@@ -450,79 +442,79 @@ const Ne = (...e) => (r) => {
|
|
|
450
442
|
popover: i = "auto",
|
|
451
443
|
placement: l = "bottom",
|
|
452
444
|
triggerRef: d,
|
|
453
|
-
gap:
|
|
454
|
-
maxWidth:
|
|
445
|
+
gap: m = 8,
|
|
446
|
+
maxWidth: h = "sm",
|
|
455
447
|
className: x,
|
|
456
448
|
style: p,
|
|
457
449
|
...b
|
|
458
|
-
},
|
|
459
|
-
const { popoverRef:
|
|
450
|
+
}, v) => {
|
|
451
|
+
const { popoverRef: w, isOpen: N } = Ne(
|
|
460
452
|
e,
|
|
461
453
|
a,
|
|
462
454
|
s,
|
|
463
455
|
t
|
|
464
|
-
), [y, I] =
|
|
456
|
+
), [y, I] = j(
|
|
465
457
|
{}
|
|
466
|
-
), [
|
|
467
|
-
|
|
468
|
-
if (!d?.current || !
|
|
458
|
+
), [z, R] = j(!1);
|
|
459
|
+
E(() => {
|
|
460
|
+
if (!d?.current || !w.current)
|
|
469
461
|
return;
|
|
470
|
-
const
|
|
471
|
-
if (!d.current || !
|
|
462
|
+
const T = () => {
|
|
463
|
+
if (!d.current || !w.current) return;
|
|
472
464
|
const te = je(
|
|
473
465
|
d.current,
|
|
474
|
-
|
|
466
|
+
w.current,
|
|
475
467
|
l,
|
|
476
|
-
|
|
468
|
+
m
|
|
477
469
|
);
|
|
478
470
|
I(te);
|
|
479
471
|
};
|
|
480
|
-
N ? (
|
|
472
|
+
N ? (R(!1), requestAnimationFrame(() => {
|
|
481
473
|
requestAnimationFrame(() => {
|
|
482
|
-
|
|
483
|
-
|
|
474
|
+
T(), requestAnimationFrame(() => {
|
|
475
|
+
R(!0);
|
|
484
476
|
});
|
|
485
477
|
});
|
|
486
|
-
})) : (
|
|
478
|
+
})) : (R(!1), T());
|
|
487
479
|
const M = () => {
|
|
488
|
-
N &&
|
|
480
|
+
N && T();
|
|
489
481
|
};
|
|
490
482
|
return window.addEventListener("scroll", M, !0), window.addEventListener("resize", M), () => {
|
|
491
483
|
window.removeEventListener("scroll", M, !0), window.removeEventListener("resize", M);
|
|
492
484
|
};
|
|
493
|
-
}, [d,
|
|
485
|
+
}, [d, w, l, m, N]);
|
|
494
486
|
const ee = {
|
|
495
487
|
...y,
|
|
496
488
|
...p,
|
|
497
489
|
// Hide until positioned to prevent flash
|
|
498
|
-
...
|
|
490
|
+
...z ? {} : {
|
|
499
491
|
opacity: 0,
|
|
500
492
|
pointerEvents: "none",
|
|
501
493
|
transition: "none"
|
|
502
494
|
}
|
|
503
495
|
};
|
|
504
|
-
return /* @__PURE__ */
|
|
496
|
+
return /* @__PURE__ */ r.jsx(
|
|
505
497
|
"div",
|
|
506
498
|
{
|
|
507
499
|
...b,
|
|
508
|
-
ref:
|
|
500
|
+
ref: ke(v, w),
|
|
509
501
|
id: e,
|
|
510
502
|
popover: i,
|
|
511
|
-
className:
|
|
503
|
+
className: u(ye({ maxWidth: h }), x),
|
|
512
504
|
style: ee,
|
|
513
505
|
...o && { anchor: o },
|
|
514
|
-
children:
|
|
506
|
+
children: n
|
|
515
507
|
}
|
|
516
508
|
);
|
|
517
509
|
}
|
|
518
510
|
);
|
|
519
|
-
|
|
520
|
-
const Ee = (e,
|
|
511
|
+
X.displayName = "Popover";
|
|
512
|
+
const Ee = (e, n = "toggle") => ({
|
|
521
513
|
popoverTarget: e,
|
|
522
|
-
popoverTargetAction:
|
|
523
|
-
}), Ce = Object.assign(
|
|
514
|
+
popoverTargetAction: n
|
|
515
|
+
}), Ce = Object.assign(X, {
|
|
524
516
|
getTriggerProps: Ee
|
|
525
|
-
}),
|
|
517
|
+
}), _e = g(
|
|
526
518
|
"group flex items-center justify-between transition-all duration-200 w-full",
|
|
527
519
|
{
|
|
528
520
|
variants: {
|
|
@@ -569,7 +561,16 @@ const Ee = (e, r = "toggle") => ({
|
|
|
569
561
|
size: "md"
|
|
570
562
|
}
|
|
571
563
|
}
|
|
572
|
-
),
|
|
564
|
+
), ze = [
|
|
565
|
+
"p",
|
|
566
|
+
"span",
|
|
567
|
+
"q",
|
|
568
|
+
"s",
|
|
569
|
+
"strong",
|
|
570
|
+
"em",
|
|
571
|
+
"small",
|
|
572
|
+
"label"
|
|
573
|
+
], Ae = (e) => ze.includes(e) ? e : "span", Le = g("", {
|
|
573
574
|
variants: {
|
|
574
575
|
color: {
|
|
575
576
|
primary: "text-primary",
|
|
@@ -586,13 +587,17 @@ const Ee = (e, r = "toggle") => ({
|
|
|
586
587
|
black: "text-black",
|
|
587
588
|
white: "text-white"
|
|
588
589
|
},
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
590
|
+
transform: {
|
|
591
|
+
none: "normal-case",
|
|
592
|
+
capitalize: "capitalize",
|
|
593
|
+
uppercase: "uppercase",
|
|
594
|
+
lowercase: "lowercase"
|
|
592
595
|
},
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
+
decoration: {
|
|
597
|
+
none: "no-underline",
|
|
598
|
+
underline: "underline",
|
|
599
|
+
"line-through": "line-through",
|
|
600
|
+
overline: "overline"
|
|
596
601
|
},
|
|
597
602
|
align: {
|
|
598
603
|
left: "text-left",
|
|
@@ -612,102 +617,83 @@ const Ee = (e, r = "toggle") => ({
|
|
|
612
617
|
5: "line-clamp-5",
|
|
613
618
|
none: ""
|
|
614
619
|
},
|
|
615
|
-
ellipsis: {
|
|
616
|
-
true: "truncate",
|
|
617
|
-
false: ""
|
|
618
|
-
},
|
|
619
620
|
as: {
|
|
620
|
-
h1: "font-bold text-4xl leading-loose",
|
|
621
|
-
h2: "font-semibold text-3xl leading-relaxed",
|
|
622
|
-
h3: "font-medium text-2xl leading-relaxed",
|
|
623
|
-
h4: "font-bold text-xl leading-normal",
|
|
624
|
-
h5: "font-semibold text-lg leading-normal",
|
|
625
|
-
h6: "font-medium text-base leading-normal",
|
|
626
621
|
p: "font-normal text-base leading-normal",
|
|
627
622
|
span: "font-normal text-base leading-normal",
|
|
623
|
+
q: "font-normal text-base leading-normal",
|
|
624
|
+
s: "font-normal text-base leading-normal",
|
|
625
|
+
strong: "font-semibold text-base leading-normal",
|
|
626
|
+
em: "font-normal italic text-base leading-normal",
|
|
627
|
+
small: "font-normal text-sm leading-normal",
|
|
628
628
|
label: "font-normal text-xs leading-normal"
|
|
629
629
|
}
|
|
630
630
|
},
|
|
631
631
|
defaultVariants: {
|
|
632
632
|
color: "neutral",
|
|
633
|
-
|
|
634
|
-
|
|
633
|
+
transform: "none",
|
|
634
|
+
decoration: "none",
|
|
635
635
|
align: "left",
|
|
636
636
|
italic: !1,
|
|
637
637
|
clamp: "none",
|
|
638
|
-
ellipsis: !1,
|
|
639
638
|
as: "span"
|
|
640
639
|
}
|
|
641
|
-
}),
|
|
640
|
+
}), C = f(
|
|
642
641
|
({
|
|
643
642
|
as: e = "span",
|
|
644
|
-
color:
|
|
645
|
-
|
|
646
|
-
|
|
643
|
+
color: n = "ghost",
|
|
644
|
+
transform: a = "none",
|
|
645
|
+
decoration: s = "none",
|
|
647
646
|
align: t = "left",
|
|
648
647
|
italic: o = !1,
|
|
649
648
|
clamp: i = "none",
|
|
650
649
|
ellipsis: l = !1,
|
|
651
|
-
|
|
652
|
-
fontWeight: u,
|
|
650
|
+
fontWeight: d,
|
|
653
651
|
className: m,
|
|
654
|
-
children:
|
|
655
|
-
...
|
|
656
|
-
},
|
|
657
|
-
const v =
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
"h3",
|
|
661
|
-
"h4",
|
|
662
|
-
"h5",
|
|
663
|
-
"h6",
|
|
664
|
-
"p",
|
|
665
|
-
"span",
|
|
666
|
-
"label"
|
|
667
|
-
].includes(e) ? e : "span", N = d ? `text-${d}` : "", y = u ? `font-${u}` : "";
|
|
668
|
-
return /* @__PURE__ */ n.jsx(
|
|
669
|
-
e,
|
|
652
|
+
children: h,
|
|
653
|
+
...x
|
|
654
|
+
}, p) => {
|
|
655
|
+
const b = Ae(e), v = e, w = d ? `font-${d}` : "", N = l ? i === "none" ? "truncate" : "overflow-hidden" : "";
|
|
656
|
+
return /* @__PURE__ */ r.jsx(
|
|
657
|
+
v,
|
|
670
658
|
{
|
|
671
|
-
ref:
|
|
672
|
-
className:
|
|
673
|
-
|
|
674
|
-
color:
|
|
675
|
-
|
|
676
|
-
|
|
659
|
+
ref: p,
|
|
660
|
+
className: u(
|
|
661
|
+
Le({
|
|
662
|
+
color: n,
|
|
663
|
+
transform: a,
|
|
664
|
+
decoration: s,
|
|
677
665
|
align: t,
|
|
678
666
|
italic: o,
|
|
679
667
|
clamp: i,
|
|
680
|
-
|
|
681
|
-
// @ts-expect-error - `as` is not a valid variant
|
|
682
|
-
as: v
|
|
668
|
+
as: b
|
|
683
669
|
}),
|
|
670
|
+
w,
|
|
684
671
|
N,
|
|
685
|
-
y,
|
|
686
672
|
m
|
|
687
673
|
),
|
|
688
|
-
...
|
|
689
|
-
children:
|
|
674
|
+
...x,
|
|
675
|
+
children: h
|
|
690
676
|
}
|
|
691
677
|
);
|
|
692
678
|
}
|
|
693
|
-
),
|
|
694
|
-
({ children: e, className:
|
|
679
|
+
), Me = f(
|
|
680
|
+
({ children: e, className: n }, a) => /* @__PURE__ */ r.jsx(
|
|
695
681
|
"div",
|
|
696
682
|
{
|
|
697
683
|
ref: a,
|
|
698
|
-
className:
|
|
684
|
+
className: u(
|
|
699
685
|
"bg-background border border-border rounded-lg overflow-hidden",
|
|
700
686
|
"divide-y divide-border",
|
|
701
|
-
|
|
687
|
+
n
|
|
702
688
|
),
|
|
703
689
|
role: "group",
|
|
704
690
|
children: e
|
|
705
691
|
}
|
|
706
692
|
)
|
|
707
|
-
),
|
|
693
|
+
), Re = f(
|
|
708
694
|
({
|
|
709
695
|
size: e = "md",
|
|
710
|
-
icon:
|
|
696
|
+
icon: n,
|
|
711
697
|
title: a,
|
|
712
698
|
subtitle: s,
|
|
713
699
|
badge: t,
|
|
@@ -715,29 +701,28 @@ const Ee = (e, r = "toggle") => ({
|
|
|
715
701
|
as: i = "button",
|
|
716
702
|
className: l,
|
|
717
703
|
...d
|
|
718
|
-
},
|
|
704
|
+
}, m) => /* @__PURE__ */ r.jsxs(
|
|
719
705
|
i,
|
|
720
706
|
{
|
|
721
|
-
ref:
|
|
722
|
-
className:
|
|
707
|
+
ref: m,
|
|
708
|
+
className: u(_e({ size: e, as: i }), l),
|
|
723
709
|
...d,
|
|
724
710
|
children: [
|
|
725
|
-
/* @__PURE__ */
|
|
726
|
-
|
|
727
|
-
/* @__PURE__ */
|
|
728
|
-
/* @__PURE__ */
|
|
729
|
-
/* @__PURE__ */
|
|
730
|
-
|
|
711
|
+
/* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-4 flex-1", children: [
|
|
712
|
+
n && /* @__PURE__ */ r.jsx("div", { className: u(Ve({ size: e })), children: n }),
|
|
713
|
+
/* @__PURE__ */ r.jsxs("div", { className: "flex-1", children: [
|
|
714
|
+
/* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-3 mb-1", children: [
|
|
715
|
+
/* @__PURE__ */ r.jsx(
|
|
716
|
+
C,
|
|
731
717
|
{
|
|
732
718
|
as: "span",
|
|
733
|
-
fontSize: e === "sm" ? "sm" : "base",
|
|
734
719
|
fontWeight: "semibold",
|
|
735
720
|
color: "ghost",
|
|
736
721
|
className: "text-left leading-normal",
|
|
737
722
|
children: a
|
|
738
723
|
}
|
|
739
724
|
),
|
|
740
|
-
t && /* @__PURE__ */
|
|
725
|
+
t && /* @__PURE__ */ r.jsx(
|
|
741
726
|
"div",
|
|
742
727
|
{
|
|
743
728
|
className: "flex flex-wrap items-center flex-row justify-start gap-3",
|
|
@@ -746,11 +731,10 @@ const Ee = (e, r = "toggle") => ({
|
|
|
746
731
|
}
|
|
747
732
|
)
|
|
748
733
|
] }),
|
|
749
|
-
s && /* @__PURE__ */
|
|
750
|
-
|
|
734
|
+
s && /* @__PURE__ */ r.jsx(
|
|
735
|
+
C,
|
|
751
736
|
{
|
|
752
|
-
as: "
|
|
753
|
-
fontSize: "sm",
|
|
737
|
+
as: "small",
|
|
754
738
|
color: "gray",
|
|
755
739
|
className: "text-left leading-normal",
|
|
756
740
|
children: s
|
|
@@ -758,11 +742,11 @@ const Ee = (e, r = "toggle") => ({
|
|
|
758
742
|
)
|
|
759
743
|
] })
|
|
760
744
|
] }),
|
|
761
|
-
o && /* @__PURE__ */
|
|
762
|
-
|
|
745
|
+
o && /* @__PURE__ */ r.jsx("div", { className: "flex items-center gap-3", children: /* @__PURE__ */ r.jsx(
|
|
746
|
+
k,
|
|
763
747
|
{
|
|
764
748
|
as: se,
|
|
765
|
-
className:
|
|
749
|
+
className: u(Ie({ size: e })),
|
|
766
750
|
color: "ghost",
|
|
767
751
|
"aria-hidden": "true"
|
|
768
752
|
}
|
|
@@ -770,9 +754,9 @@ const Ee = (e, r = "toggle") => ({
|
|
|
770
754
|
]
|
|
771
755
|
}
|
|
772
756
|
)
|
|
773
|
-
),
|
|
774
|
-
Group:
|
|
775
|
-
}),
|
|
757
|
+
), Jt = Object.assign(Re, {
|
|
758
|
+
Group: Me
|
|
759
|
+
}), Te = g(
|
|
776
760
|
"relative flex items-center gap-2 rounded-md p-2 text-sm transition-all duration-200",
|
|
777
761
|
{
|
|
778
762
|
variants: {
|
|
@@ -893,7 +877,7 @@ const Ee = (e, r = "toggle") => ({
|
|
|
893
877
|
color: "neutral"
|
|
894
878
|
}
|
|
895
879
|
}
|
|
896
|
-
),
|
|
880
|
+
), Oe = g(
|
|
897
881
|
"flex-shrink-0 flex justify-center items-center ",
|
|
898
882
|
{
|
|
899
883
|
variants: {
|
|
@@ -907,32 +891,32 @@ const Ee = (e, r = "toggle") => ({
|
|
|
907
891
|
size: "md"
|
|
908
892
|
}
|
|
909
893
|
}
|
|
910
|
-
),
|
|
911
|
-
({ className: e, children:
|
|
912
|
-
),
|
|
894
|
+
), U = f(
|
|
895
|
+
({ className: e, children: n, ...a }, s) => /* @__PURE__ */ r.jsx("div", { ref: s, className: u(Oe(), e), ...a, children: n })
|
|
896
|
+
), Se = f(
|
|
913
897
|
({
|
|
914
898
|
variant: e = "default",
|
|
915
|
-
color:
|
|
899
|
+
color: n = "neutral",
|
|
916
900
|
icon: a,
|
|
917
901
|
className: s,
|
|
918
902
|
children: t,
|
|
919
903
|
...o
|
|
920
|
-
}, i) => /* @__PURE__ */
|
|
904
|
+
}, i) => /* @__PURE__ */ r.jsxs(
|
|
921
905
|
"div",
|
|
922
906
|
{
|
|
923
907
|
ref: i,
|
|
924
908
|
role: "alert",
|
|
925
|
-
className:
|
|
909
|
+
className: u(Te({ variant: e, color: n }), s),
|
|
926
910
|
...o,
|
|
927
911
|
children: [
|
|
928
|
-
a && /* @__PURE__ */
|
|
929
|
-
/* @__PURE__ */
|
|
912
|
+
a && /* @__PURE__ */ r.jsx(U, { children: a }),
|
|
913
|
+
/* @__PURE__ */ r.jsx("div", { className: "flex-1", children: t })
|
|
930
914
|
]
|
|
931
915
|
}
|
|
932
916
|
)
|
|
933
|
-
),
|
|
934
|
-
Icon:
|
|
935
|
-
}),
|
|
917
|
+
), Kt = Object.assign(Se, {
|
|
918
|
+
Icon: U
|
|
919
|
+
}), Be = g(
|
|
936
920
|
[
|
|
937
921
|
"inline-flex items-center transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2",
|
|
938
922
|
// pseudo selectors for anchor
|
|
@@ -989,54 +973,44 @@ const Ee = (e, r = "toggle") => ({
|
|
|
989
973
|
quiet: !1
|
|
990
974
|
}
|
|
991
975
|
}
|
|
992
|
-
),
|
|
976
|
+
), Qt = f(
|
|
993
977
|
({
|
|
994
978
|
children: e,
|
|
995
|
-
className:
|
|
979
|
+
className: n,
|
|
996
980
|
color: a = "primary",
|
|
997
981
|
fontSize: s = "base",
|
|
998
982
|
fontWeight: t = "medium",
|
|
999
983
|
quiet: o = !1,
|
|
1000
984
|
...i
|
|
1001
|
-
}, l) => /* @__PURE__ */
|
|
985
|
+
}, l) => /* @__PURE__ */ r.jsx(
|
|
1002
986
|
"a",
|
|
1003
987
|
{
|
|
1004
988
|
ref: l,
|
|
1005
|
-
className:
|
|
1006
|
-
|
|
1007
|
-
|
|
989
|
+
className: u(
|
|
990
|
+
Be({ color: a, fontSize: s, fontWeight: t, quiet: o }),
|
|
991
|
+
n
|
|
1008
992
|
),
|
|
1009
993
|
...i,
|
|
1010
994
|
children: e
|
|
1011
995
|
}
|
|
1012
996
|
)
|
|
1013
|
-
),
|
|
1014
|
-
function({ title:
|
|
1015
|
-
return /* @__PURE__ */
|
|
997
|
+
), We = f(
|
|
998
|
+
function({ title: n, children: a, className: s, hasMargin: t, ...o }, i) {
|
|
999
|
+
return /* @__PURE__ */ r.jsxs(
|
|
1016
1000
|
"div",
|
|
1017
1001
|
{
|
|
1018
1002
|
ref: i,
|
|
1019
|
-
className:
|
|
1003
|
+
className: u("space-y-1", s, t && "mb-4"),
|
|
1020
1004
|
...o,
|
|
1021
1005
|
children: [
|
|
1022
|
-
/* @__PURE__ */
|
|
1023
|
-
|
|
1024
|
-
{
|
|
1025
|
-
as: "h4",
|
|
1026
|
-
fontSize: "xs",
|
|
1027
|
-
fontWeight: "normal",
|
|
1028
|
-
color: "gray",
|
|
1029
|
-
className: "leading-none",
|
|
1030
|
-
children: r
|
|
1031
|
-
}
|
|
1032
|
-
),
|
|
1033
|
-
/* @__PURE__ */ n.jsx(j, { as: "p", fontSize: "sm", fontWeight: "normal", children: a })
|
|
1006
|
+
/* @__PURE__ */ r.jsx(L, { as: "h6", color: "gray", className: "leading-none", children: n }),
|
|
1007
|
+
/* @__PURE__ */ r.jsx(C, { as: "small", fontWeight: "normal", children: a })
|
|
1034
1008
|
]
|
|
1035
1009
|
}
|
|
1036
1010
|
);
|
|
1037
1011
|
}
|
|
1038
1012
|
);
|
|
1039
|
-
function
|
|
1013
|
+
function qe(e = 1) {
|
|
1040
1014
|
switch (e) {
|
|
1041
1015
|
case 1:
|
|
1042
1016
|
return "col-span-1";
|
|
@@ -1066,7 +1040,7 @@ function We(e = 1) {
|
|
|
1066
1040
|
return "col-span-1";
|
|
1067
1041
|
}
|
|
1068
1042
|
}
|
|
1069
|
-
function
|
|
1043
|
+
function Pe(e = 4) {
|
|
1070
1044
|
switch (e) {
|
|
1071
1045
|
case 1:
|
|
1072
1046
|
return "grid-cols-1";
|
|
@@ -1096,25 +1070,25 @@ function Be(e = 4) {
|
|
|
1096
1070
|
return "grid-cols-4";
|
|
1097
1071
|
}
|
|
1098
1072
|
}
|
|
1099
|
-
const
|
|
1100
|
-
const l =
|
|
1101
|
-
return /* @__PURE__ */
|
|
1102
|
-
}),
|
|
1103
|
-
function({ children:
|
|
1104
|
-
const i =
|
|
1105
|
-
return /* @__PURE__ */
|
|
1073
|
+
const He = f(function({ children: n, className: a, span: s = 1, title: t, ...o }, i) {
|
|
1074
|
+
const l = qe(s);
|
|
1075
|
+
return /* @__PURE__ */ r.jsx("li", { ref: i, className: u(l, a), ...o, children: /* @__PURE__ */ r.jsx(We, { title: t, children: n }) });
|
|
1076
|
+
}), Fe = f(
|
|
1077
|
+
function({ children: n, className: a, columns: s = 4, ...t }, o) {
|
|
1078
|
+
const i = Pe(s);
|
|
1079
|
+
return /* @__PURE__ */ r.jsx(
|
|
1106
1080
|
"ul",
|
|
1107
1081
|
{
|
|
1108
1082
|
ref: o,
|
|
1109
|
-
className:
|
|
1083
|
+
className: u("grid gap-4", i, a),
|
|
1110
1084
|
...t,
|
|
1111
|
-
children:
|
|
1085
|
+
children: n
|
|
1112
1086
|
}
|
|
1113
1087
|
);
|
|
1114
1088
|
}
|
|
1115
|
-
),
|
|
1116
|
-
Item:
|
|
1117
|
-
}),
|
|
1089
|
+
), Yt = Object.assign(Fe, {
|
|
1090
|
+
Item: He
|
|
1091
|
+
}), Ge = g(
|
|
1118
1092
|
"inline-flex items-center justify-center font-medium text-white overflow-hidden transition-all duration-200 select-none relative",
|
|
1119
1093
|
{
|
|
1120
1094
|
variants: {
|
|
@@ -1154,54 +1128,54 @@ const qe = h(function({ children: r, className: a, span: s = 1, title: t, ...o }
|
|
|
1154
1128
|
shape: "circle"
|
|
1155
1129
|
}
|
|
1156
1130
|
}
|
|
1157
|
-
),
|
|
1131
|
+
), $e = g(
|
|
1158
1132
|
"absolute inset-0 h-full w-full object-cover"
|
|
1159
|
-
),
|
|
1133
|
+
), De = f(
|
|
1160
1134
|
({
|
|
1161
1135
|
variant: e = "primary",
|
|
1162
|
-
size:
|
|
1136
|
+
size: n = "md",
|
|
1163
1137
|
shape: a = "circle",
|
|
1164
1138
|
className: s,
|
|
1165
1139
|
children: t,
|
|
1166
1140
|
...o
|
|
1167
|
-
}, i) => /* @__PURE__ */
|
|
1141
|
+
}, i) => /* @__PURE__ */ r.jsx(
|
|
1168
1142
|
"div",
|
|
1169
1143
|
{
|
|
1170
1144
|
ref: i,
|
|
1171
|
-
className:
|
|
1145
|
+
className: u(Ge({ variant: e, size: n, shape: a }), s),
|
|
1172
1146
|
...o,
|
|
1173
1147
|
children: t
|
|
1174
1148
|
}
|
|
1175
1149
|
)
|
|
1176
|
-
),
|
|
1177
|
-
({ src: e, alt:
|
|
1178
|
-
const [i, l] =
|
|
1179
|
-
|
|
1150
|
+
), Xe = f(
|
|
1151
|
+
({ src: e, alt: n, className: a, onError: s, ...t }, o) => {
|
|
1152
|
+
const [i, l] = j(!1);
|
|
1153
|
+
E(() => {
|
|
1180
1154
|
l(!1);
|
|
1181
1155
|
}, [e]);
|
|
1182
|
-
const d =
|
|
1183
|
-
(
|
|
1184
|
-
l(!0), s?.(
|
|
1156
|
+
const d = A(
|
|
1157
|
+
(m) => {
|
|
1158
|
+
l(!0), s?.(m);
|
|
1185
1159
|
},
|
|
1186
1160
|
[s]
|
|
1187
1161
|
);
|
|
1188
|
-
return i ? null : /* @__PURE__ */
|
|
1162
|
+
return i ? null : /* @__PURE__ */ r.jsx(
|
|
1189
1163
|
"img",
|
|
1190
1164
|
{
|
|
1191
1165
|
ref: o,
|
|
1192
1166
|
src: e,
|
|
1193
|
-
alt:
|
|
1194
|
-
className:
|
|
1167
|
+
alt: n,
|
|
1168
|
+
className: u($e(), a),
|
|
1195
1169
|
onError: d,
|
|
1196
1170
|
...t
|
|
1197
1171
|
}
|
|
1198
1172
|
);
|
|
1199
1173
|
}
|
|
1200
|
-
),
|
|
1174
|
+
), Zt = Object.assign(De, {
|
|
1201
1175
|
/**
|
|
1202
1176
|
* AvatarImage sub-component for displaying images with fallback behavior
|
|
1203
1177
|
*/
|
|
1204
|
-
Image:
|
|
1178
|
+
Image: Xe
|
|
1205
1179
|
}), Ue = g(
|
|
1206
1180
|
"inline-flex items-center justify-center font-medium transition-all duration-200 select-none gap-1 min-h-[1.25rem]",
|
|
1207
1181
|
{
|
|
@@ -1389,10 +1363,10 @@ const qe = h(function({ children: r, className: a, span: s = 1, title: t, ...o }
|
|
|
1389
1363
|
iconOnly: !1
|
|
1390
1364
|
}
|
|
1391
1365
|
}
|
|
1392
|
-
),
|
|
1366
|
+
), er = f(
|
|
1393
1367
|
({
|
|
1394
1368
|
variant: e = "default",
|
|
1395
|
-
shape:
|
|
1369
|
+
shape: n = "square",
|
|
1396
1370
|
color: a = "primary",
|
|
1397
1371
|
size: s = "md",
|
|
1398
1372
|
iconLeft: t,
|
|
@@ -1400,17 +1374,17 @@ const qe = h(function({ children: r, className: a, span: s = 1, title: t, ...o }
|
|
|
1400
1374
|
className: i,
|
|
1401
1375
|
children: l,
|
|
1402
1376
|
...d
|
|
1403
|
-
},
|
|
1377
|
+
}, m) => {
|
|
1404
1378
|
const p = !(l != null && l !== "") && !!(t || o);
|
|
1405
|
-
return /* @__PURE__ */
|
|
1379
|
+
return /* @__PURE__ */ r.jsx(
|
|
1406
1380
|
"span",
|
|
1407
1381
|
{
|
|
1408
|
-
ref:
|
|
1409
|
-
className:
|
|
1382
|
+
ref: m,
|
|
1383
|
+
className: u(
|
|
1410
1384
|
Ue({
|
|
1411
1385
|
variant: e,
|
|
1412
1386
|
color: a,
|
|
1413
|
-
shape:
|
|
1387
|
+
shape: n,
|
|
1414
1388
|
size: s,
|
|
1415
1389
|
iconOnly: p
|
|
1416
1390
|
}),
|
|
@@ -1422,7 +1396,7 @@ const qe = h(function({ children: r, className: a, span: s = 1, title: t, ...o }
|
|
|
1422
1396
|
t || o
|
|
1423
1397
|
) : (
|
|
1424
1398
|
// Normal mode: display icon(s) and text
|
|
1425
|
-
/* @__PURE__ */
|
|
1399
|
+
/* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
1426
1400
|
t,
|
|
1427
1401
|
l,
|
|
1428
1402
|
o
|
|
@@ -1431,7 +1405,7 @@ const qe = h(function({ children: r, className: a, span: s = 1, title: t, ...o }
|
|
|
1431
1405
|
}
|
|
1432
1406
|
);
|
|
1433
1407
|
}
|
|
1434
|
-
),
|
|
1408
|
+
), H = (e) => /* @__PURE__ */ c.createElement("svg", { width: 32, height: 32, viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ c.createElement("title", null, "Spenicle"), /* @__PURE__ */ c.createElement("rect", { width: 32, height: 32, fill: "#e07a5f" }), /* @__PURE__ */ c.createElement("g", { transform: "translate(16, 16) scale(0.625) translate(-12, -12)" }, /* @__PURE__ */ c.createElement("path", { d: "M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z", fill: "white" }))), Je = (e) => /* @__PURE__ */ c.createElement("svg", { width: 32, height: 32, viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ c.createElement("title", null, "Spenicle"), /* @__PURE__ */ c.createElement("rect", { width: 32, height: 32, rx: 8, fill: "#e07a5f" }), /* @__PURE__ */ c.createElement("g", { transform: "translate(16, 16) scale(0.625) translate(-12, -12)" }, /* @__PURE__ */ c.createElement("path", { d: "M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z", fill: "white" }))), Ke = (e) => /* @__PURE__ */ c.createElement("svg", { width: 32, height: 32, viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ c.createElement("title", null, "Spenicle"), /* @__PURE__ */ c.createElement("circle", { cx: 16, cy: 16, r: 16, fill: "#e07a5f" }), /* @__PURE__ */ c.createElement("g", { transform: "translate(16, 16) scale(0.625) translate(-12, -12)" }, /* @__PURE__ */ c.createElement("path", { d: "M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z", fill: "white" }))), Qe = (e) => /* @__PURE__ */ c.createElement("svg", { width: 32, height: 32, viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ c.createElement("title", null, "Hub (Square)"), /* @__PURE__ */ c.createElement("rect", { x: 0, y: 0, width: 32, height: 32, rx: 0, fill: "#e07a5f" }), /* @__PURE__ */ c.createElement("g", { transform: "translate(16, 16) scale(0.625) translate(-12, -12)" }, /* @__PURE__ */ c.createElement("path", { d: "M20.341 6.484A10 10 0 0 1 10.266 21.85", stroke: "white", strokeWidth: 2, fill: "none" }), /* @__PURE__ */ c.createElement("path", { d: "M3.659 17.516A10 10 0 0 1 13.74 2.152", stroke: "white", strokeWidth: 2, fill: "none" }), /* @__PURE__ */ c.createElement("circle", { cx: 12, cy: 12, r: 3, fill: "white" }), /* @__PURE__ */ c.createElement("circle", { cx: 19, cy: 5, r: 2, fill: "white" }), /* @__PURE__ */ c.createElement("circle", { cx: 5, cy: 19, r: 2, fill: "white" }))), Ye = (e) => /* @__PURE__ */ c.createElement("svg", { width: 32, height: 32, viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ c.createElement("title", null, "Hub (Rounded)"), /* @__PURE__ */ c.createElement("rect", { x: 0, y: 0, width: 32, height: 32, rx: 8, fill: "#e07a5f" }), /* @__PURE__ */ c.createElement("g", { transform: "translate(16, 16) scale(0.625) translate(-12, -12)" }, /* @__PURE__ */ c.createElement("path", { d: "M20.341 6.484A10 10 0 0 1 10.266 21.85", stroke: "white", strokeWidth: 2, fill: "none" }), /* @__PURE__ */ c.createElement("path", { d: "M3.659 17.516A10 10 0 0 1 13.74 2.152", stroke: "white", strokeWidth: 2, fill: "none" }), /* @__PURE__ */ c.createElement("circle", { cx: 12, cy: 12, r: 3, fill: "white" }), /* @__PURE__ */ c.createElement("circle", { cx: 19, cy: 5, r: 2, fill: "white" }), /* @__PURE__ */ c.createElement("circle", { cx: 5, cy: 19, r: 2, fill: "white" }))), Ze = (e) => /* @__PURE__ */ c.createElement("svg", { width: 32, height: 32, viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ c.createElement("title", null, "Hub (Circle)"), /* @__PURE__ */ c.createElement("circle", { cx: 16, cy: 16, r: 16, fill: "#e07a5f" }), /* @__PURE__ */ c.createElement("g", { transform: "translate(16, 16) scale(0.625) translate(-12, -12)" }, /* @__PURE__ */ c.createElement("path", { d: "M20.341 6.484A10 10 0 0 1 10.266 21.85", stroke: "white", strokeWidth: 2, fill: "none" }), /* @__PURE__ */ c.createElement("path", { d: "M3.659 17.516A10 10 0 0 1 13.74 2.152", stroke: "white", strokeWidth: 2, fill: "none" }), /* @__PURE__ */ c.createElement("circle", { cx: 12, cy: 12, r: 3, fill: "white" }), /* @__PURE__ */ c.createElement("circle", { cx: 19, cy: 5, r: 2, fill: "white" }), /* @__PURE__ */ c.createElement("circle", { cx: 5, cy: 19, r: 2, fill: "white" }))), et = (e) => /* @__PURE__ */ c.createElement("svg", { width: 32, height: 32, viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ c.createElement("title", null, "Notunic"), /* @__PURE__ */ c.createElement("rect", { width: 32, height: 32, fill: "#e07a5f" }), /* @__PURE__ */ c.createElement("g", { transform: "translate(16, 16) scale(0.625) translate(-12, -12)" }, /* @__PURE__ */ c.createElement("path", { d: "M13.4 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7.4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ c.createElement("path", { d: "M2 6h4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ c.createElement("path", { d: "M2 10h4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ c.createElement("path", { d: "M2 14h4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ c.createElement("path", { d: "M2 18h4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ c.createElement("path", { d: "M21.378 5.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z", fill: "white" }))), tt = (e) => /* @__PURE__ */ c.createElement("svg", { width: 32, height: 32, viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ c.createElement("title", null, "Notunic"), /* @__PURE__ */ c.createElement("rect", { width: 32, height: 32, rx: 8, fill: "#e07a5f" }), /* @__PURE__ */ c.createElement("g", { transform: "translate(16, 16) scale(0.625) translate(-12, -12)" }, /* @__PURE__ */ c.createElement("path", { d: "M13.4 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7.4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ c.createElement("path", { d: "M2 6h4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ c.createElement("path", { d: "M2 10h4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ c.createElement("path", { d: "M2 14h4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ c.createElement("path", { d: "M2 18h4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ c.createElement("path", { d: "M21.378 5.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z", fill: "white" }))), rt = (e) => /* @__PURE__ */ c.createElement("svg", { width: 32, height: 32, viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ c.createElement("title", null, "Notunic"), /* @__PURE__ */ c.createElement("circle", { cx: 16, cy: 16, r: 16, fill: "#e07a5f" }), /* @__PURE__ */ c.createElement("g", { transform: "translate(16, 16) scale(0.625) translate(-12, -12)" }, /* @__PURE__ */ c.createElement("path", { d: "M13.4 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7.4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ c.createElement("path", { d: "M2 6h4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ c.createElement("path", { d: "M2 10h4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ c.createElement("path", { d: "M2 14h4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ c.createElement("path", { d: "M2 18h4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ c.createElement("path", { d: "M21.378 5.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z", fill: "white" }))), nt = g("", {
|
|
1435
1409
|
variants: {
|
|
1436
1410
|
size: {
|
|
1437
1411
|
xs: "h-6 w-6",
|
|
@@ -1444,45 +1418,45 @@ const qe = h(function({ children: r, className: a, span: s = 1, title: t, ...o }
|
|
|
1444
1418
|
defaultVariants: {
|
|
1445
1419
|
size: "md"
|
|
1446
1420
|
}
|
|
1447
|
-
}),
|
|
1448
|
-
({ shape: e = "square", size:
|
|
1421
|
+
}), at = f(
|
|
1422
|
+
({ shape: e = "square", size: n, name: a = "spenicle", ...s }, t) => {
|
|
1449
1423
|
const o = {
|
|
1450
1424
|
spenicle: {
|
|
1451
|
-
square:
|
|
1452
|
-
rounded:
|
|
1453
|
-
circle:
|
|
1425
|
+
square: H,
|
|
1426
|
+
rounded: Je,
|
|
1427
|
+
circle: Ke
|
|
1454
1428
|
},
|
|
1455
1429
|
hub: {
|
|
1456
|
-
square:
|
|
1457
|
-
rounded:
|
|
1458
|
-
circle:
|
|
1430
|
+
square: Qe,
|
|
1431
|
+
rounded: Ye,
|
|
1432
|
+
circle: Ze
|
|
1459
1433
|
},
|
|
1460
1434
|
notunic: {
|
|
1461
|
-
square:
|
|
1462
|
-
rounded:
|
|
1463
|
-
circle:
|
|
1435
|
+
square: et,
|
|
1436
|
+
rounded: tt,
|
|
1437
|
+
circle: rt
|
|
1464
1438
|
}
|
|
1465
|
-
}, l = (o[a] || o.spenicle)[e || "square"] ||
|
|
1466
|
-
return /* @__PURE__ */
|
|
1439
|
+
}, l = (o[a] || o.spenicle)[e || "square"] || H;
|
|
1440
|
+
return /* @__PURE__ */ r.jsx(
|
|
1467
1441
|
l,
|
|
1468
1442
|
{
|
|
1469
1443
|
ref: t,
|
|
1470
1444
|
...s,
|
|
1471
|
-
className:
|
|
1445
|
+
className: u("inline-block", nt({ size: n }))
|
|
1472
1446
|
}
|
|
1473
1447
|
);
|
|
1474
1448
|
}
|
|
1475
|
-
),
|
|
1476
|
-
({ name: e = "spenicle", size:
|
|
1449
|
+
), tr = f(
|
|
1450
|
+
({ name: e = "spenicle", size: n = "md", shape: a, ...s }, t) => /* @__PURE__ */ r.jsx(
|
|
1477
1451
|
"span",
|
|
1478
1452
|
{
|
|
1479
1453
|
ref: t,
|
|
1480
|
-
className:
|
|
1454
|
+
className: u("inline-flex items-center gap-2"),
|
|
1481
1455
|
...s,
|
|
1482
|
-
children: /* @__PURE__ */
|
|
1456
|
+
children: /* @__PURE__ */ r.jsx(at, { name: e, shape: a, size: n, "aria-hidden": "true" })
|
|
1483
1457
|
}
|
|
1484
1458
|
)
|
|
1485
|
-
),
|
|
1459
|
+
), st = g(
|
|
1486
1460
|
"inline-flex items-center justify-center gap-2 rounded-md font-medium transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none active:scale-[0.98] select-none cursor-pointer",
|
|
1487
1461
|
{
|
|
1488
1462
|
variants: {
|
|
@@ -1507,9 +1481,9 @@ const qe = h(function({ children: r, className: a, span: s = 1, title: t, ...o }
|
|
|
1507
1481
|
size: "md"
|
|
1508
1482
|
}
|
|
1509
1483
|
}
|
|
1510
|
-
), J =
|
|
1484
|
+
), J = _.forwardRef(
|
|
1511
1485
|
function({
|
|
1512
|
-
className:
|
|
1486
|
+
className: n,
|
|
1513
1487
|
variant: a = "primary",
|
|
1514
1488
|
size: s = "md",
|
|
1515
1489
|
disabled: t = !1,
|
|
@@ -1517,25 +1491,25 @@ const qe = h(function({ children: r, className: a, span: s = 1, title: t, ...o }
|
|
|
1517
1491
|
busy: i,
|
|
1518
1492
|
children: l,
|
|
1519
1493
|
...d
|
|
1520
|
-
},
|
|
1521
|
-
const
|
|
1522
|
-
return /* @__PURE__ */
|
|
1494
|
+
}, m) {
|
|
1495
|
+
const h = s === "sm" ? "sm" : s === "lg" ? "md" : "sm", x = () => a === "primary" || a === "destructive" ? "white" : "inherit";
|
|
1496
|
+
return /* @__PURE__ */ r.jsxs(
|
|
1523
1497
|
"button",
|
|
1524
1498
|
{
|
|
1525
|
-
ref:
|
|
1499
|
+
ref: m,
|
|
1526
1500
|
type: o,
|
|
1527
|
-
className:
|
|
1501
|
+
className: u(st({ variant: a, size: s }), n),
|
|
1528
1502
|
disabled: t || i,
|
|
1529
1503
|
"aria-disabled": t || i,
|
|
1530
1504
|
inert: t || i ? !0 : void 0,
|
|
1531
1505
|
"aria-busy": i ? !0 : void 0,
|
|
1532
1506
|
...d,
|
|
1533
1507
|
children: [
|
|
1534
|
-
i && /* @__PURE__ */
|
|
1535
|
-
|
|
1508
|
+
i && /* @__PURE__ */ r.jsx(
|
|
1509
|
+
k,
|
|
1536
1510
|
{
|
|
1537
|
-
as:
|
|
1538
|
-
size:
|
|
1511
|
+
as: F,
|
|
1512
|
+
size: h,
|
|
1539
1513
|
color: x(),
|
|
1540
1514
|
className: "animate-spin"
|
|
1541
1515
|
}
|
|
@@ -1545,7 +1519,7 @@ const qe = h(function({ children: r, className: a, span: s = 1, title: t, ...o }
|
|
|
1545
1519
|
}
|
|
1546
1520
|
);
|
|
1547
1521
|
}
|
|
1548
|
-
),
|
|
1522
|
+
), ot = g(
|
|
1549
1523
|
"inline-flex items-center justify-center gap-2 rounded-md font-medium transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none active:scale-[0.98] select-none cursor-pointer no-underline",
|
|
1550
1524
|
{
|
|
1551
1525
|
variants: {
|
|
@@ -1568,8 +1542,8 @@ const qe = h(function({ children: r, className: a, span: s = 1, title: t, ...o }
|
|
|
1568
1542
|
size: "md"
|
|
1569
1543
|
}
|
|
1570
1544
|
}
|
|
1571
|
-
),
|
|
1572
|
-
className:
|
|
1545
|
+
), rr = _.forwardRef(function({
|
|
1546
|
+
className: n,
|
|
1573
1547
|
variant: a = "primary",
|
|
1574
1548
|
size: s = "md",
|
|
1575
1549
|
disabled: t = !1,
|
|
@@ -1577,29 +1551,29 @@ const qe = h(function({ children: r, className: a, span: s = 1, title: t, ...o }
|
|
|
1577
1551
|
href: i,
|
|
1578
1552
|
onClick: l,
|
|
1579
1553
|
...d
|
|
1580
|
-
},
|
|
1581
|
-
const
|
|
1554
|
+
}, m) {
|
|
1555
|
+
const h = (x) => {
|
|
1582
1556
|
if (t) {
|
|
1583
1557
|
x.preventDefault();
|
|
1584
1558
|
return;
|
|
1585
1559
|
}
|
|
1586
1560
|
l?.(x);
|
|
1587
1561
|
};
|
|
1588
|
-
return /* @__PURE__ */
|
|
1562
|
+
return /* @__PURE__ */ r.jsx(
|
|
1589
1563
|
"a",
|
|
1590
1564
|
{
|
|
1591
|
-
ref:
|
|
1565
|
+
ref: m,
|
|
1592
1566
|
href: t ? void 0 : i,
|
|
1593
|
-
className:
|
|
1567
|
+
className: u(ot({ variant: a, size: s }), n),
|
|
1594
1568
|
"aria-disabled": t ? !0 : void 0,
|
|
1595
1569
|
tabIndex: t ? -1 : void 0,
|
|
1596
1570
|
role: t ? "link" : void 0,
|
|
1597
|
-
onClick:
|
|
1571
|
+
onClick: h,
|
|
1598
1572
|
...d,
|
|
1599
1573
|
children: o
|
|
1600
1574
|
}
|
|
1601
1575
|
);
|
|
1602
|
-
}),
|
|
1576
|
+
}), it = g(
|
|
1603
1577
|
"z-70 min-w-56 bg-background rounded-lg border border-border transition-all duration-200 ease-out will-change-transform shadow-lg",
|
|
1604
1578
|
{
|
|
1605
1579
|
variants: {
|
|
@@ -1617,29 +1591,29 @@ const qe = h(function({ children: r, className: a, span: s = 1, title: t, ...o }
|
|
|
1617
1591
|
open: !1
|
|
1618
1592
|
}
|
|
1619
1593
|
}
|
|
1620
|
-
), K =
|
|
1621
|
-
const e =
|
|
1594
|
+
), K = O(void 0), lt = K.Provider, ct = () => {
|
|
1595
|
+
const e = S(K);
|
|
1622
1596
|
if (!e)
|
|
1623
1597
|
throw new Error("useMenuProvider must be used within a MenuProvider");
|
|
1624
1598
|
return e;
|
|
1625
|
-
},
|
|
1626
|
-
({ children: e },
|
|
1627
|
-
),
|
|
1628
|
-
({ children: e, disabled:
|
|
1629
|
-
const { preserve: i, onClose: l } =
|
|
1630
|
-
a?.(
|
|
1599
|
+
}, dt = f(
|
|
1600
|
+
({ children: e }, n) => /* @__PURE__ */ r.jsx("ul", { ref: n, className: "flex flex-col gap-1", children: e })
|
|
1601
|
+
), ut = f(
|
|
1602
|
+
({ children: e, disabled: n, onClick: a, active: s, ...t }, o) => {
|
|
1603
|
+
const { preserve: i, onClose: l } = ct(), d = (m) => {
|
|
1604
|
+
a?.(m), i || l();
|
|
1631
1605
|
};
|
|
1632
|
-
return /* @__PURE__ */
|
|
1606
|
+
return /* @__PURE__ */ r.jsx("li", { ref: o, ...t, children: /* @__PURE__ */ r.jsxs(
|
|
1633
1607
|
J,
|
|
1634
1608
|
{
|
|
1635
1609
|
variant: "ghost",
|
|
1636
|
-
className:
|
|
1637
|
-
disabled:
|
|
1610
|
+
className: u("justify-start w-full gap-2"),
|
|
1611
|
+
disabled: n,
|
|
1638
1612
|
onClick: d,
|
|
1639
1613
|
children: [
|
|
1640
1614
|
e,
|
|
1641
|
-
s && /* @__PURE__ */
|
|
1642
|
-
|
|
1615
|
+
s && /* @__PURE__ */ r.jsx(
|
|
1616
|
+
k,
|
|
1643
1617
|
{
|
|
1644
1618
|
as: oe,
|
|
1645
1619
|
color: "inherit",
|
|
@@ -1651,9 +1625,9 @@ const qe = h(function({ children: r, className: a, span: s = 1, title: t, ...o }
|
|
|
1651
1625
|
}
|
|
1652
1626
|
) });
|
|
1653
1627
|
}
|
|
1654
|
-
),
|
|
1628
|
+
), mt = ({
|
|
1655
1629
|
isOpen: e,
|
|
1656
|
-
onClose:
|
|
1630
|
+
onClose: n,
|
|
1657
1631
|
size: a = "md",
|
|
1658
1632
|
content: s,
|
|
1659
1633
|
children: t,
|
|
@@ -1661,32 +1635,32 @@ const qe = h(function({ children: r, className: a, span: s = 1, title: t, ...o }
|
|
|
1661
1635
|
gap: i = 4,
|
|
1662
1636
|
preserve: l
|
|
1663
1637
|
}) => {
|
|
1664
|
-
const d =
|
|
1665
|
-
return /* @__PURE__ */
|
|
1638
|
+
const d = B(null), m = re();
|
|
1639
|
+
return /* @__PURE__ */ r.jsx(lt, { value: { onClose: n, preserve: !!l }, children: /* @__PURE__ */ r.jsxs("div", { className: "relative w-fit", children: [
|
|
1666
1640
|
ne(t, {
|
|
1667
1641
|
// @ts-expect-error: ref is valid for button or forwardRef components
|
|
1668
1642
|
ref: d
|
|
1669
1643
|
}),
|
|
1670
|
-
/* @__PURE__ */
|
|
1644
|
+
/* @__PURE__ */ r.jsx(
|
|
1671
1645
|
Ce,
|
|
1672
1646
|
{
|
|
1673
|
-
id:
|
|
1647
|
+
id: m,
|
|
1674
1648
|
triggerRef: d,
|
|
1675
1649
|
isOpen: e,
|
|
1676
|
-
onClose:
|
|
1650
|
+
onClose: n,
|
|
1677
1651
|
placement: o,
|
|
1678
1652
|
gap: i,
|
|
1679
1653
|
maxWidth: "sm",
|
|
1680
|
-
className:
|
|
1654
|
+
className: u(it({ size: a, open: e })),
|
|
1681
1655
|
children: s
|
|
1682
1656
|
}
|
|
1683
1657
|
)
|
|
1684
1658
|
] }) });
|
|
1685
|
-
}, V = Object.assign(
|
|
1686
|
-
Content:
|
|
1687
|
-
Item:
|
|
1688
|
-
}),
|
|
1689
|
-
(e,
|
|
1659
|
+
}, V = Object.assign(mt, {
|
|
1660
|
+
Content: dt,
|
|
1661
|
+
Item: ut
|
|
1662
|
+
}), ht = f(
|
|
1663
|
+
(e, n) => {
|
|
1690
1664
|
const {
|
|
1691
1665
|
children: a,
|
|
1692
1666
|
onOpenChange: s,
|
|
@@ -1695,34 +1669,34 @@ const qe = h(function({ children: r, className: a, span: s = 1, title: t, ...o }
|
|
|
1695
1669
|
preserve: i,
|
|
1696
1670
|
label: l,
|
|
1697
1671
|
...d
|
|
1698
|
-
} = e ?? {}, [
|
|
1699
|
-
|
|
1700
|
-
s?.(
|
|
1701
|
-
}, [
|
|
1672
|
+
} = e ?? {}, [m, h] = j(!1);
|
|
1673
|
+
E(() => {
|
|
1674
|
+
s?.(m);
|
|
1675
|
+
}, [m, s]);
|
|
1702
1676
|
const x = () => {
|
|
1703
|
-
|
|
1677
|
+
h(!1);
|
|
1704
1678
|
}, p = (b) => {
|
|
1705
|
-
b.stopPropagation(),
|
|
1679
|
+
b.stopPropagation(), h((v) => !v), t?.(b);
|
|
1706
1680
|
};
|
|
1707
|
-
return /* @__PURE__ */
|
|
1681
|
+
return /* @__PURE__ */ r.jsx(
|
|
1708
1682
|
V,
|
|
1709
1683
|
{
|
|
1710
|
-
isOpen:
|
|
1684
|
+
isOpen: m,
|
|
1711
1685
|
onClose: x,
|
|
1712
1686
|
placement: o,
|
|
1713
1687
|
preserve: i,
|
|
1714
|
-
content: /* @__PURE__ */
|
|
1715
|
-
children: /* @__PURE__ */
|
|
1688
|
+
content: /* @__PURE__ */ r.jsx(V.Content, { children: a }),
|
|
1689
|
+
children: /* @__PURE__ */ r.jsx(J, { ref: n, onClick: p, ...d, children: l })
|
|
1716
1690
|
}
|
|
1717
1691
|
);
|
|
1718
1692
|
}
|
|
1719
|
-
),
|
|
1693
|
+
), nr = Object.assign(ht, {
|
|
1720
1694
|
Item: V.Item
|
|
1721
1695
|
});
|
|
1722
1696
|
function ft(e = "primary") {
|
|
1723
1697
|
return e === "primary" || e === "destructive" ? "white" : "inherit";
|
|
1724
1698
|
}
|
|
1725
|
-
const
|
|
1699
|
+
const gt = g(
|
|
1726
1700
|
"inline-flex items-center justify-center font-medium transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none active:scale-[0.98] select-none cursor-pointer",
|
|
1727
1701
|
{
|
|
1728
1702
|
variants: {
|
|
@@ -1753,9 +1727,9 @@ const mt = g(
|
|
|
1753
1727
|
shape: "rounded"
|
|
1754
1728
|
}
|
|
1755
1729
|
}
|
|
1756
|
-
),
|
|
1730
|
+
), xt = _.forwardRef(
|
|
1757
1731
|
function({
|
|
1758
|
-
className:
|
|
1732
|
+
className: n,
|
|
1759
1733
|
variant: a = "primary",
|
|
1760
1734
|
size: s = "md",
|
|
1761
1735
|
shape: t = "rounded",
|
|
@@ -1763,42 +1737,42 @@ const mt = g(
|
|
|
1763
1737
|
busy: i,
|
|
1764
1738
|
as: l,
|
|
1765
1739
|
"aria-label": d,
|
|
1766
|
-
...
|
|
1767
|
-
},
|
|
1740
|
+
...m
|
|
1741
|
+
}, h) {
|
|
1768
1742
|
const x = ft(a);
|
|
1769
|
-
return /* @__PURE__ */
|
|
1743
|
+
return /* @__PURE__ */ r.jsx(
|
|
1770
1744
|
"button",
|
|
1771
1745
|
{
|
|
1772
|
-
ref:
|
|
1746
|
+
ref: h,
|
|
1773
1747
|
type: "button",
|
|
1774
|
-
className:
|
|
1775
|
-
|
|
1748
|
+
className: u(
|
|
1749
|
+
gt({
|
|
1776
1750
|
variant: a,
|
|
1777
1751
|
size: s,
|
|
1778
1752
|
shape: t
|
|
1779
1753
|
}),
|
|
1780
|
-
|
|
1754
|
+
n
|
|
1781
1755
|
),
|
|
1782
1756
|
disabled: o || i,
|
|
1783
1757
|
"aria-disabled": o || i,
|
|
1784
1758
|
"aria-label": d,
|
|
1785
1759
|
inert: o || i ? !0 : void 0,
|
|
1786
1760
|
"aria-busy": i ? !0 : void 0,
|
|
1787
|
-
...
|
|
1788
|
-
children: i ? /* @__PURE__ */
|
|
1789
|
-
|
|
1761
|
+
...m,
|
|
1762
|
+
children: i ? /* @__PURE__ */ r.jsx(
|
|
1763
|
+
k,
|
|
1790
1764
|
{
|
|
1791
|
-
as:
|
|
1765
|
+
as: F,
|
|
1792
1766
|
size: "sm",
|
|
1793
1767
|
color: x,
|
|
1794
1768
|
className: "animate-spin"
|
|
1795
1769
|
}
|
|
1796
|
-
) : /* @__PURE__ */
|
|
1770
|
+
) : /* @__PURE__ */ r.jsx(k, { as: l, size: "sm", color: x })
|
|
1797
1771
|
}
|
|
1798
1772
|
);
|
|
1799
1773
|
}
|
|
1800
|
-
),
|
|
1801
|
-
(e,
|
|
1774
|
+
), bt = f(
|
|
1775
|
+
(e, n) => {
|
|
1802
1776
|
const {
|
|
1803
1777
|
as: a = ie,
|
|
1804
1778
|
children: s,
|
|
@@ -1807,30 +1781,30 @@ const mt = g(
|
|
|
1807
1781
|
placement: i,
|
|
1808
1782
|
preserve: l,
|
|
1809
1783
|
...d
|
|
1810
|
-
} = e ?? {}, [
|
|
1811
|
-
|
|
1812
|
-
t?.(
|
|
1813
|
-
}, [
|
|
1784
|
+
} = e ?? {}, [m, h] = j(!1);
|
|
1785
|
+
E(() => {
|
|
1786
|
+
t?.(m);
|
|
1787
|
+
}, [m, t]);
|
|
1814
1788
|
const x = () => {
|
|
1815
|
-
|
|
1789
|
+
h(!1);
|
|
1816
1790
|
}, p = (b) => {
|
|
1817
|
-
b.stopPropagation(),
|
|
1791
|
+
b.stopPropagation(), h((v) => !v), o?.(b);
|
|
1818
1792
|
};
|
|
1819
|
-
return /* @__PURE__ */
|
|
1793
|
+
return /* @__PURE__ */ r.jsx(
|
|
1820
1794
|
V,
|
|
1821
1795
|
{
|
|
1822
|
-
isOpen:
|
|
1796
|
+
isOpen: m,
|
|
1823
1797
|
onClose: x,
|
|
1824
1798
|
placement: i,
|
|
1825
1799
|
preserve: l,
|
|
1826
|
-
content: /* @__PURE__ */
|
|
1827
|
-
children: /* @__PURE__ */
|
|
1800
|
+
content: /* @__PURE__ */ r.jsx(V.Content, { children: s }),
|
|
1801
|
+
children: /* @__PURE__ */ r.jsx(xt, { ref: n, as: a, onClick: p, ...d })
|
|
1828
1802
|
}
|
|
1829
1803
|
);
|
|
1830
1804
|
}
|
|
1831
|
-
),
|
|
1805
|
+
), ar = Object.assign(bt, {
|
|
1832
1806
|
Item: V.Item
|
|
1833
|
-
}),
|
|
1807
|
+
}), pt = g(
|
|
1834
1808
|
"flex justify-between transition-colors duration-200 w-full",
|
|
1835
1809
|
{
|
|
1836
1810
|
variants: {
|
|
@@ -1862,28 +1836,28 @@ const mt = g(
|
|
|
1862
1836
|
as: "button"
|
|
1863
1837
|
}
|
|
1864
1838
|
}
|
|
1865
|
-
),
|
|
1866
|
-
({ children: e },
|
|
1839
|
+
), vt = f(
|
|
1840
|
+
({ children: e }, n) => /* @__PURE__ */ r.jsx(
|
|
1867
1841
|
"ul",
|
|
1868
1842
|
{
|
|
1869
|
-
ref:
|
|
1843
|
+
ref: n,
|
|
1870
1844
|
className: "flex flex-wrap items-center min-w-0 overflow-hidden w-full gap-x-0",
|
|
1871
1845
|
children: e
|
|
1872
1846
|
}
|
|
1873
1847
|
)
|
|
1874
|
-
),
|
|
1875
|
-
({ children: e },
|
|
1848
|
+
), wt = f(
|
|
1849
|
+
({ children: e }, n) => /* @__PURE__ */ r.jsx(
|
|
1876
1850
|
"li",
|
|
1877
1851
|
{
|
|
1878
|
-
ref:
|
|
1852
|
+
ref: n,
|
|
1879
1853
|
className: "flex items-center min-w-0 flex-shrink-0 after:content-[''] after:inline-block after:mx-1.5 @sm/card:after:mx-2 after:w-1 after:h-1 after:rounded-full after:bg-ghost last:after:hidden after:flex-shrink-0",
|
|
1880
|
-
children: /* @__PURE__ */
|
|
1854
|
+
children: /* @__PURE__ */ r.jsx(C, { as: "small", color: "gray", ellipsis: !0, clamp: 1, children: e })
|
|
1881
1855
|
}
|
|
1882
1856
|
)
|
|
1883
|
-
),
|
|
1857
|
+
), yt = f(
|
|
1884
1858
|
({
|
|
1885
1859
|
size: e = "md",
|
|
1886
|
-
shape:
|
|
1860
|
+
shape: n = "rounded",
|
|
1887
1861
|
avatar: a,
|
|
1888
1862
|
title: s,
|
|
1889
1863
|
subtitle: t,
|
|
@@ -1891,56 +1865,37 @@ const mt = g(
|
|
|
1891
1865
|
supplementaryInfo: i,
|
|
1892
1866
|
bordered: l = !1,
|
|
1893
1867
|
as: d = "button",
|
|
1894
|
-
className:
|
|
1895
|
-
...
|
|
1896
|
-
}, x) => /* @__PURE__ */
|
|
1868
|
+
className: m,
|
|
1869
|
+
...h
|
|
1870
|
+
}, x) => /* @__PURE__ */ r.jsx(
|
|
1897
1871
|
d,
|
|
1898
1872
|
{
|
|
1899
1873
|
ref: x,
|
|
1900
|
-
className:
|
|
1901
|
-
|
|
1902
|
-
|
|
1874
|
+
className: u(
|
|
1875
|
+
pt({ size: e, shape: n, bordered: l, as: d }),
|
|
1876
|
+
m,
|
|
1903
1877
|
"@container/card"
|
|
1904
1878
|
),
|
|
1905
|
-
...
|
|
1906
|
-
children: /* @__PURE__ */
|
|
1907
|
-
a && /* @__PURE__ */
|
|
1908
|
-
/* @__PURE__ */
|
|
1909
|
-
/* @__PURE__ */
|
|
1910
|
-
/* @__PURE__ */
|
|
1911
|
-
|
|
1912
|
-
{
|
|
1913
|
-
as: "h3",
|
|
1914
|
-
fontSize: "base",
|
|
1915
|
-
fontWeight: "semibold",
|
|
1916
|
-
className: "break-words leading-tight",
|
|
1917
|
-
children: s
|
|
1918
|
-
}
|
|
1919
|
-
),
|
|
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 }) })
|
|
1879
|
+
...h,
|
|
1880
|
+
children: /* @__PURE__ */ r.jsxs("div", { className: "flex items-start gap-3 @sm/card:gap-4 w-full", children: [
|
|
1881
|
+
a && /* @__PURE__ */ r.jsx("div", { className: "flex-shrink-0", children: a }),
|
|
1882
|
+
/* @__PURE__ */ r.jsxs("div", { className: "w-full min-w-0", children: [
|
|
1883
|
+
/* @__PURE__ */ r.jsx("div", { className: "mb-2", children: /* @__PURE__ */ r.jsx("div", { className: "flex items-start justify-between gap-2", children: /* @__PURE__ */ r.jsxs("div", { className: "flex-1 min-w-0", children: [
|
|
1884
|
+
/* @__PURE__ */ r.jsx(L, { as: "h6", className: "break-words leading-tight", children: s }),
|
|
1885
|
+
t && /* @__PURE__ */ r.jsx("div", { className: "mt-1", children: typeof t == "string" ? /* @__PURE__ */ r.jsx("div", { className: "flex", children: /* @__PURE__ */ r.jsx(C, { as: "small", color: "gray", children: t }) }) : /* @__PURE__ */ r.jsx("div", { className: "min-w-0 overflow-hidden", children: t }) })
|
|
1921
1886
|
] }) }) }),
|
|
1922
|
-
/* @__PURE__ */
|
|
1923
|
-
o && /* @__PURE__ */
|
|
1924
|
-
i && /* @__PURE__ */
|
|
1925
|
-
j,
|
|
1926
|
-
{
|
|
1927
|
-
as: "p",
|
|
1928
|
-
fontSize: "sm",
|
|
1929
|
-
color: "gray",
|
|
1930
|
-
className: "truncate",
|
|
1931
|
-
align: "right",
|
|
1932
|
-
children: i
|
|
1933
|
-
}
|
|
1934
|
-
) : /* @__PURE__ */ n.jsx("div", { className: "overflow-hidden", children: i }) })
|
|
1887
|
+
/* @__PURE__ */ r.jsxs("div", { className: "flex flex-col gap-2 @sm/card:flex-row @sm/card:justify-between @sm/card:items-center", children: [
|
|
1888
|
+
o && /* @__PURE__ */ r.jsx("div", { className: "order-1 @sm/card:order-none overflow-hidden", children: o }),
|
|
1889
|
+
i && /* @__PURE__ */ r.jsx("div", { className: "flex-shrink-0 order-2 @sm/card:order-none @sm/card:ml-auto", children: typeof i == "string" ? /* @__PURE__ */ r.jsx("div", { className: "flex justify-end", children: /* @__PURE__ */ r.jsx(C, { as: "small", color: "gray", className: "truncate", children: i }) }) : /* @__PURE__ */ r.jsx("div", { className: "overflow-hidden", children: i }) })
|
|
1935
1890
|
] })
|
|
1936
1891
|
] })
|
|
1937
1892
|
] })
|
|
1938
1893
|
}
|
|
1939
1894
|
)
|
|
1940
|
-
),
|
|
1941
|
-
List:
|
|
1942
|
-
ListItem:
|
|
1943
|
-
}),
|
|
1895
|
+
), sr = Object.assign(yt, {
|
|
1896
|
+
List: vt,
|
|
1897
|
+
ListItem: wt
|
|
1898
|
+
}), jt = g(
|
|
1944
1899
|
"inline-flex items-center gap-1.5 rounded-full font-medium transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none select-none cursor-pointer text-sm leading-none border border-border text-foreground bg-white hover:bg-neutral focus-visible:ring-foreground-light focus-visible:ring-offset-white",
|
|
1945
1900
|
{
|
|
1946
1901
|
variants: {
|
|
@@ -1954,45 +1909,66 @@ const mt = g(
|
|
|
1954
1909
|
size: "md"
|
|
1955
1910
|
}
|
|
1956
1911
|
}
|
|
1957
|
-
),
|
|
1958
|
-
function({ className:
|
|
1959
|
-
return /* @__PURE__ */
|
|
1912
|
+
), or = _.forwardRef(
|
|
1913
|
+
function({ className: n, size: a = "md", disabled: s = !1, children: t, ...o }, i) {
|
|
1914
|
+
return /* @__PURE__ */ r.jsxs(
|
|
1960
1915
|
"button",
|
|
1961
1916
|
{
|
|
1962
1917
|
ref: i,
|
|
1963
1918
|
type: "button",
|
|
1964
|
-
className:
|
|
1919
|
+
className: u(jt({ size: a }), n),
|
|
1965
1920
|
disabled: s,
|
|
1966
1921
|
"aria-disabled": s,
|
|
1967
1922
|
"aria-label": `${t}, removable`,
|
|
1968
1923
|
inert: s ? !0 : void 0,
|
|
1969
1924
|
...o,
|
|
1970
1925
|
children: [
|
|
1971
|
-
/* @__PURE__ */
|
|
1972
|
-
/* @__PURE__ */
|
|
1926
|
+
/* @__PURE__ */ r.jsx("span", { className: "flex-shrink-0", children: t }),
|
|
1927
|
+
/* @__PURE__ */ r.jsx(k, { as: le, color: "inherit", size: a === "lg" ? "md" : "sm" })
|
|
1973
1928
|
]
|
|
1974
1929
|
}
|
|
1975
1930
|
);
|
|
1976
1931
|
}
|
|
1977
|
-
),
|
|
1932
|
+
), Nt = [
|
|
1978
1933
|
// Headings
|
|
1979
1934
|
"[&_h1]:text-2xl",
|
|
1935
|
+
"[&_h1]:leading-loose",
|
|
1980
1936
|
"[&_h1]:font-bold",
|
|
1981
1937
|
"[&_h1]:my-2",
|
|
1982
|
-
"[&_h2]:text-
|
|
1983
|
-
"[&_h2]:
|
|
1984
|
-
"[&_h2]:
|
|
1985
|
-
"[&
|
|
1986
|
-
"[&_h3]:
|
|
1987
|
-
"[&_h3]:
|
|
1938
|
+
"[&_h2]:text-2xl",
|
|
1939
|
+
"[&_h2]:leading-relaxed",
|
|
1940
|
+
"[&_h2]:font-semibold",
|
|
1941
|
+
"[&_h2]:my-2",
|
|
1942
|
+
"[&_h3]:text-2xl",
|
|
1943
|
+
"[&_h3]:leading-relaxed",
|
|
1944
|
+
"[&_h3]:font-medium",
|
|
1945
|
+
"[&_h3]:my-1.5",
|
|
1946
|
+
"[&_h4]:text-xl",
|
|
1947
|
+
"[&_h4]:leading-normal",
|
|
1948
|
+
"[&_h4]:font-bold",
|
|
1949
|
+
"[&_h4]:my-1.5",
|
|
1950
|
+
"[&_h5]:text-lg",
|
|
1951
|
+
"[&_h5]:leading-normal",
|
|
1952
|
+
"[&_h5]:font-semibold",
|
|
1953
|
+
"[&_h5]:my-1.5",
|
|
1954
|
+
"[&_h6]:text-base",
|
|
1955
|
+
"[&_h6]:leading-normal",
|
|
1956
|
+
"[&_h6]:font-medium",
|
|
1957
|
+
"[&_h6]:my-1",
|
|
1988
1958
|
// Lists
|
|
1989
1959
|
"[&_ul]:list-disc",
|
|
1990
1960
|
"[&_ul]:ml-6",
|
|
1991
1961
|
"[&_ul]:my-2",
|
|
1962
|
+
"[&_ul]:text-base",
|
|
1963
|
+
"[&_ul]:leading-normal",
|
|
1992
1964
|
"[&_ol]:list-decimal",
|
|
1993
1965
|
"[&_ol]:ml-6",
|
|
1994
1966
|
"[&_ol]:my-2",
|
|
1967
|
+
"[&_ol]:text-base",
|
|
1968
|
+
"[&_ol]:leading-normal",
|
|
1995
1969
|
"[&_li]:my-0.5",
|
|
1970
|
+
"[&_li]:text-base",
|
|
1971
|
+
"[&_li]:leading-normal",
|
|
1996
1972
|
// Links
|
|
1997
1973
|
"[&_a]:text-primary",
|
|
1998
1974
|
"[&_a]:underline",
|
|
@@ -2004,37 +1980,43 @@ const mt = g(
|
|
|
2004
1980
|
"[&_u]:underline",
|
|
2005
1981
|
"[&_s]:line-through",
|
|
2006
1982
|
// Paragraphs
|
|
1983
|
+
"[&_p]:text-base",
|
|
1984
|
+
"[&_p]:leading-normal",
|
|
1985
|
+
"[&_p]:text-ghost",
|
|
2007
1986
|
"[&_p]:my-2",
|
|
2008
1987
|
"[&_p:first-child]:mt-0",
|
|
2009
1988
|
"[&_p:last-child]:mb-0"
|
|
2010
|
-
],
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
1989
|
+
], kt = g(
|
|
1990
|
+
"block w-full break-words text-ghost text-base leading-normal",
|
|
1991
|
+
{
|
|
1992
|
+
variants: {
|
|
1993
|
+
scrollable: {
|
|
1994
|
+
true: "overflow-y-auto",
|
|
1995
|
+
false: "overflow-visible"
|
|
1996
|
+
}
|
|
1997
|
+
},
|
|
1998
|
+
defaultVariants: {
|
|
1999
|
+
scrollable: !1
|
|
2015
2000
|
}
|
|
2016
|
-
},
|
|
2017
|
-
defaultVariants: {
|
|
2018
|
-
scrollable: !1
|
|
2019
2001
|
}
|
|
2020
|
-
|
|
2002
|
+
), Et = _.forwardRef(({ content: e, scrollable: n = !1, maxHeight: a, className: s, ...t }, o) => /* @__PURE__ */ r.jsx(
|
|
2021
2003
|
"div",
|
|
2022
2004
|
{
|
|
2023
2005
|
ref: o,
|
|
2024
2006
|
role: "article",
|
|
2025
2007
|
"aria-label": "Formatted text content",
|
|
2026
2008
|
dangerouslySetInnerHTML: { __html: e },
|
|
2027
|
-
style:
|
|
2028
|
-
className:
|
|
2029
|
-
|
|
2030
|
-
...
|
|
2009
|
+
style: n && a ? { maxHeight: `${a}rem` } : void 0,
|
|
2010
|
+
className: u(
|
|
2011
|
+
kt({ scrollable: n }),
|
|
2012
|
+
...Nt,
|
|
2031
2013
|
s
|
|
2032
2014
|
),
|
|
2033
2015
|
...t
|
|
2034
2016
|
}
|
|
2035
2017
|
));
|
|
2036
|
-
|
|
2037
|
-
const
|
|
2018
|
+
Et.displayName = "FormattedText";
|
|
2019
|
+
const Ct = g("h-px w-full bg-border border-0", {
|
|
2038
2020
|
variants: {
|
|
2039
2021
|
hasMargin: {
|
|
2040
2022
|
true: "mb-4",
|
|
@@ -2044,16 +2026,16 @@ const Nt = g("h-px w-full bg-border border-0", {
|
|
|
2044
2026
|
defaultVariants: {
|
|
2045
2027
|
hasMargin: !1
|
|
2046
2028
|
}
|
|
2047
|
-
}),
|
|
2048
|
-
({ hasMargin: e = !1, className:
|
|
2029
|
+
}), ir = f(
|
|
2030
|
+
({ hasMargin: e = !1, className: n, ...a }, s) => /* @__PURE__ */ r.jsx(
|
|
2049
2031
|
"hr",
|
|
2050
2032
|
{
|
|
2051
2033
|
ref: s,
|
|
2052
|
-
className:
|
|
2034
|
+
className: u(Ct({ hasMargin: e }), n),
|
|
2053
2035
|
...a
|
|
2054
2036
|
}
|
|
2055
2037
|
)
|
|
2056
|
-
),
|
|
2038
|
+
), _t = g(
|
|
2057
2039
|
"flex flex-col items-center justify-center text-center border border-border rounded-lg bg-background",
|
|
2058
2040
|
{
|
|
2059
2041
|
variants: {
|
|
@@ -2072,37 +2054,37 @@ const Nt = g("h-px w-full bg-border border-0", {
|
|
|
2072
2054
|
hasGrayBackground: !1
|
|
2073
2055
|
}
|
|
2074
2056
|
}
|
|
2075
|
-
),
|
|
2057
|
+
), Vt = g(
|
|
2076
2058
|
"flex flex-row items-center gap-3 mb-2"
|
|
2077
|
-
),
|
|
2078
|
-
function({ icon:
|
|
2079
|
-
return /* @__PURE__ */
|
|
2059
|
+
), lr = _.forwardRef(
|
|
2060
|
+
function({ icon: n, title: a, subtitle: s, action: t, className: o, hasGrayBackground: i, ...l }, d) {
|
|
2061
|
+
return /* @__PURE__ */ r.jsxs(
|
|
2080
2062
|
"section",
|
|
2081
2063
|
{
|
|
2082
2064
|
ref: d,
|
|
2083
|
-
className:
|
|
2065
|
+
className: u(_t({ hasGrayBackground: i }), o),
|
|
2084
2066
|
role: "status",
|
|
2085
2067
|
"aria-label": "No results found",
|
|
2086
2068
|
...l,
|
|
2087
2069
|
children: [
|
|
2088
|
-
/* @__PURE__ */
|
|
2089
|
-
/* @__PURE__ */
|
|
2090
|
-
/* @__PURE__ */
|
|
2070
|
+
/* @__PURE__ */ r.jsxs("header", { className: Vt(), children: [
|
|
2071
|
+
/* @__PURE__ */ r.jsx(k, { as: n, size: "lg", color: "ghost", "aria-hidden": "true" }),
|
|
2072
|
+
/* @__PURE__ */ r.jsx(L, { as: "h5", color: "neutral", children: a })
|
|
2091
2073
|
] }),
|
|
2092
|
-
s && /* @__PURE__ */
|
|
2093
|
-
t && /* @__PURE__ */
|
|
2074
|
+
s && /* @__PURE__ */ r.jsx(C, { as: "p", align: "center", color: "gray", className: "mb-4", children: s }),
|
|
2075
|
+
t && /* @__PURE__ */ r.jsx("div", { role: "group", "aria-label": "Available actions", children: t })
|
|
2094
2076
|
]
|
|
2095
2077
|
}
|
|
2096
2078
|
);
|
|
2097
2079
|
}
|
|
2098
|
-
), Q =
|
|
2080
|
+
), Q = O(null), It = Q.Provider;
|
|
2099
2081
|
function W() {
|
|
2100
|
-
const e =
|
|
2082
|
+
const e = S(Q);
|
|
2101
2083
|
if (!e)
|
|
2102
2084
|
throw new Error("Table compound components must be used within <Table>");
|
|
2103
2085
|
return e;
|
|
2104
2086
|
}
|
|
2105
|
-
const
|
|
2087
|
+
const q = (e) => {
|
|
2106
2088
|
if (e < 1 || e > 12)
|
|
2107
2089
|
throw new Error("Column span must be between 1 and 12");
|
|
2108
2090
|
switch (e) {
|
|
@@ -2133,7 +2115,7 @@ const B = (e) => {
|
|
|
2133
2115
|
default:
|
|
2134
2116
|
return "grid-cols-2";
|
|
2135
2117
|
}
|
|
2136
|
-
},
|
|
2118
|
+
}, zt = (e) => {
|
|
2137
2119
|
if (e < 1 || e > 12)
|
|
2138
2120
|
throw new Error("Column span must be between 1 and 12");
|
|
2139
2121
|
switch (e) {
|
|
@@ -2164,62 +2146,62 @@ const B = (e) => {
|
|
|
2164
2146
|
default:
|
|
2165
2147
|
return "col-span-2";
|
|
2166
2148
|
}
|
|
2167
|
-
},
|
|
2168
|
-
({ children: e, className:
|
|
2149
|
+
}, At = f(
|
|
2150
|
+
({ children: e, className: n, ...a }, s) => {
|
|
2169
2151
|
const { columns: t } = W();
|
|
2170
|
-
return /* @__PURE__ */
|
|
2152
|
+
return /* @__PURE__ */ r.jsx(
|
|
2171
2153
|
"div",
|
|
2172
2154
|
{
|
|
2173
2155
|
role: "rowgroup",
|
|
2174
|
-
className:
|
|
2156
|
+
className: u("bg-neutral-soft", n),
|
|
2175
2157
|
...a,
|
|
2176
2158
|
ref: s,
|
|
2177
|
-
children: /* @__PURE__ */
|
|
2159
|
+
children: /* @__PURE__ */ r.jsx(
|
|
2178
2160
|
"div",
|
|
2179
2161
|
{
|
|
2180
2162
|
role: "row",
|
|
2181
|
-
className:
|
|
2163
|
+
className: u("grid gap-4", q(t)),
|
|
2182
2164
|
children: e
|
|
2183
2165
|
}
|
|
2184
2166
|
)
|
|
2185
2167
|
}
|
|
2186
2168
|
);
|
|
2187
2169
|
}
|
|
2188
|
-
),
|
|
2189
|
-
({ children: e, className:
|
|
2190
|
-
),
|
|
2191
|
-
({ children: e, className:
|
|
2170
|
+
), Lt = f(
|
|
2171
|
+
({ children: e, className: n, ...a }, s) => /* @__PURE__ */ r.jsx("div", { role: "rowgroup", ref: s, className: u(n), ...a, children: e })
|
|
2172
|
+
), Mt = f(
|
|
2173
|
+
({ children: e, className: n, ...a }, s) => {
|
|
2192
2174
|
const { columns: t } = W();
|
|
2193
|
-
return /* @__PURE__ */
|
|
2175
|
+
return /* @__PURE__ */ r.jsx(
|
|
2194
2176
|
"div",
|
|
2195
2177
|
{
|
|
2196
2178
|
role: "rowgroup",
|
|
2197
|
-
className:
|
|
2179
|
+
className: u("bg-neutral-soft", n),
|
|
2198
2180
|
...a,
|
|
2199
2181
|
ref: s,
|
|
2200
|
-
children: /* @__PURE__ */
|
|
2182
|
+
children: /* @__PURE__ */ r.jsx(
|
|
2201
2183
|
"div",
|
|
2202
2184
|
{
|
|
2203
2185
|
role: "row",
|
|
2204
|
-
className:
|
|
2186
|
+
className: u("grid gap-4", q(t)),
|
|
2205
2187
|
children: e
|
|
2206
2188
|
}
|
|
2207
2189
|
)
|
|
2208
2190
|
}
|
|
2209
2191
|
);
|
|
2210
2192
|
}
|
|
2211
|
-
),
|
|
2212
|
-
({ children: e, className:
|
|
2193
|
+
), Rt = f(
|
|
2194
|
+
({ children: e, className: n, ...a }, s) => {
|
|
2213
2195
|
const { columns: t } = W();
|
|
2214
|
-
return /* @__PURE__ */
|
|
2196
|
+
return /* @__PURE__ */ r.jsx(
|
|
2215
2197
|
"div",
|
|
2216
2198
|
{
|
|
2217
2199
|
role: "row",
|
|
2218
|
-
className:
|
|
2200
|
+
className: u(
|
|
2219
2201
|
"grid gap-4",
|
|
2220
|
-
|
|
2202
|
+
q(t),
|
|
2221
2203
|
"border-b border-border last:border-0",
|
|
2222
|
-
|
|
2204
|
+
n
|
|
2223
2205
|
),
|
|
2224
2206
|
ref: s,
|
|
2225
2207
|
...a,
|
|
@@ -2227,19 +2209,19 @@ const B = (e) => {
|
|
|
2227
2209
|
}
|
|
2228
2210
|
);
|
|
2229
2211
|
}
|
|
2230
|
-
), Y =
|
|
2231
|
-
({ as: e = "td", span:
|
|
2212
|
+
), Y = f(
|
|
2213
|
+
({ as: e = "td", span: n, align: a = "left", children: s, className: t, ...o }, i) => {
|
|
2232
2214
|
const l = e === "th" ? "columnheader" : "cell";
|
|
2233
2215
|
let d = "text-left";
|
|
2234
|
-
return a === "center" ? d = "text-center" : a === "right" && (d = "text-right"), /* @__PURE__ */
|
|
2216
|
+
return a === "center" ? d = "text-center" : a === "right" && (d = "text-right"), /* @__PURE__ */ r.jsx(
|
|
2235
2217
|
"div",
|
|
2236
2218
|
{
|
|
2237
2219
|
ref: i,
|
|
2238
2220
|
role: l,
|
|
2239
|
-
className:
|
|
2221
|
+
className: u(
|
|
2240
2222
|
"px-4 py-2",
|
|
2241
2223
|
"[&:not(:last-child)]:border-r [&:not(:last-child)]:border-border",
|
|
2242
|
-
|
|
2224
|
+
zt(n),
|
|
2243
2225
|
d,
|
|
2244
2226
|
"truncate overflow-hidden whitespace-nowrap",
|
|
2245
2227
|
t
|
|
@@ -2249,58 +2231,58 @@ const B = (e) => {
|
|
|
2249
2231
|
}
|
|
2250
2232
|
);
|
|
2251
2233
|
}
|
|
2252
|
-
),
|
|
2253
|
-
(e,
|
|
2234
|
+
), Tt = f(
|
|
2235
|
+
(e, n) => /* @__PURE__ */ r.jsx(
|
|
2254
2236
|
Y,
|
|
2255
2237
|
{
|
|
2256
2238
|
...e,
|
|
2257
2239
|
as: "td",
|
|
2258
|
-
ref:
|
|
2259
|
-
className:
|
|
2240
|
+
ref: n,
|
|
2241
|
+
className: u(
|
|
2260
2242
|
"truncate overflow-hidden whitespace-nowrap",
|
|
2261
2243
|
e.className
|
|
2262
2244
|
)
|
|
2263
2245
|
}
|
|
2264
2246
|
)
|
|
2265
|
-
),
|
|
2266
|
-
(e,
|
|
2247
|
+
), Ot = f(
|
|
2248
|
+
(e, n) => /* @__PURE__ */ r.jsx(
|
|
2267
2249
|
Y,
|
|
2268
2250
|
{
|
|
2269
2251
|
...e,
|
|
2270
2252
|
as: "th",
|
|
2271
|
-
ref:
|
|
2272
|
-
className:
|
|
2253
|
+
ref: n,
|
|
2254
|
+
className: u(
|
|
2273
2255
|
"truncate overflow-hidden whitespace-nowrap",
|
|
2274
2256
|
e.className
|
|
2275
2257
|
)
|
|
2276
2258
|
}
|
|
2277
2259
|
)
|
|
2278
|
-
),
|
|
2279
|
-
({ children: e, className:
|
|
2260
|
+
), St = f(
|
|
2261
|
+
({ children: e, className: n, columns: a = 12, ...s }, t) => /* @__PURE__ */ r.jsx(It, { value: { columns: a }, children: /* @__PURE__ */ r.jsx(
|
|
2280
2262
|
"div",
|
|
2281
2263
|
{
|
|
2282
2264
|
ref: t,
|
|
2283
2265
|
role: "table",
|
|
2284
|
-
className:
|
|
2266
|
+
className: u(
|
|
2285
2267
|
// Versaur design system: border, background, shadow, rounded, spacing
|
|
2286
2268
|
"w-full overflow-x-auto border border-border bg-background rounded-lg ",
|
|
2287
2269
|
"text-foreground",
|
|
2288
2270
|
"sm:rounded-xl",
|
|
2289
2271
|
"transition-colors",
|
|
2290
|
-
|
|
2272
|
+
n
|
|
2291
2273
|
),
|
|
2292
2274
|
...s,
|
|
2293
2275
|
children: e
|
|
2294
2276
|
}
|
|
2295
2277
|
) })
|
|
2296
|
-
),
|
|
2297
|
-
Header:
|
|
2298
|
-
HeaderItem:
|
|
2299
|
-
Body:
|
|
2300
|
-
Footer:
|
|
2301
|
-
Row:
|
|
2302
|
-
RowItem:
|
|
2303
|
-
}),
|
|
2278
|
+
), cr = Object.assign(St, {
|
|
2279
|
+
Header: At,
|
|
2280
|
+
HeaderItem: Ot,
|
|
2281
|
+
Body: Lt,
|
|
2282
|
+
Footer: Mt,
|
|
2283
|
+
Row: Rt,
|
|
2284
|
+
RowItem: Tt
|
|
2285
|
+
}), Bt = g(
|
|
2304
2286
|
// Base classes
|
|
2305
2287
|
"block transition-colors duration-200",
|
|
2306
2288
|
{
|
|
@@ -2308,14 +2290,14 @@ const B = (e) => {
|
|
|
2308
2290
|
variant: {
|
|
2309
2291
|
white: "bg-white border border-border",
|
|
2310
2292
|
neutral: "bg-neutral border border-gray-200",
|
|
2311
|
-
primary: "bg-primary
|
|
2312
|
-
secondary: "bg-secondary
|
|
2313
|
-
tertiary: "bg-tertiary
|
|
2293
|
+
primary: "bg-primary border border-primary",
|
|
2294
|
+
secondary: "bg-secondary border border-secondary",
|
|
2295
|
+
tertiary: "bg-tertiary border border-tertiary",
|
|
2314
2296
|
ghost: "bg-transparent border border-ghost",
|
|
2315
|
-
success: "bg-success
|
|
2316
|
-
info: "bg-info
|
|
2317
|
-
warning: "bg-warning
|
|
2318
|
-
danger: "bg-danger
|
|
2297
|
+
success: "bg-success border border-success",
|
|
2298
|
+
info: "bg-info border border-info",
|
|
2299
|
+
warning: "bg-warning border border-warning",
|
|
2300
|
+
danger: "bg-danger border border-danger"
|
|
2319
2301
|
},
|
|
2320
2302
|
size: {
|
|
2321
2303
|
xs: "p-2",
|
|
@@ -2335,23 +2317,30 @@ const B = (e) => {
|
|
|
2335
2317
|
shape: "rounded"
|
|
2336
2318
|
}
|
|
2337
2319
|
}
|
|
2338
|
-
),
|
|
2339
|
-
({
|
|
2340
|
-
"div",
|
|
2320
|
+
), dr = f(
|
|
2321
|
+
({
|
|
2322
|
+
as: e = "div",
|
|
2323
|
+
variant: n = "white",
|
|
2324
|
+
size: a = "md",
|
|
2325
|
+
shape: s = "rounded",
|
|
2326
|
+
className: t,
|
|
2327
|
+
...o
|
|
2328
|
+
}, i) => /* @__PURE__ */ r.jsx(
|
|
2329
|
+
e,
|
|
2341
2330
|
{
|
|
2342
|
-
ref:
|
|
2343
|
-
className:
|
|
2344
|
-
...
|
|
2331
|
+
ref: i,
|
|
2332
|
+
className: u(Bt({ variant: n, size: a, shape: s }), t),
|
|
2333
|
+
...o
|
|
2345
2334
|
}
|
|
2346
2335
|
)
|
|
2347
2336
|
);
|
|
2348
|
-
function
|
|
2349
|
-
const [
|
|
2337
|
+
function Wt({ src: e }) {
|
|
2338
|
+
const [n, a] = j(!1), [s, t] = j(!1), o = B(!1), i = () => {
|
|
2350
2339
|
a(!0);
|
|
2351
2340
|
}, l = () => {
|
|
2352
2341
|
t(!0);
|
|
2353
2342
|
};
|
|
2354
|
-
return
|
|
2343
|
+
return E(() => {
|
|
2355
2344
|
if (!e) return;
|
|
2356
2345
|
const d = new Image();
|
|
2357
2346
|
return d.src = e, d.onload = () => {
|
|
@@ -2362,13 +2351,13 @@ function Tt({ src: e }) {
|
|
|
2362
2351
|
o.current = !0;
|
|
2363
2352
|
};
|
|
2364
2353
|
}, [e]), {
|
|
2365
|
-
loaded:
|
|
2354
|
+
loaded: n,
|
|
2366
2355
|
errored: s,
|
|
2367
2356
|
handleLoad: i,
|
|
2368
2357
|
handleError: l
|
|
2369
2358
|
};
|
|
2370
2359
|
}
|
|
2371
|
-
const
|
|
2360
|
+
const qt = g("block object-cover", {
|
|
2372
2361
|
variants: {
|
|
2373
2362
|
position: {
|
|
2374
2363
|
cover: "object-cover",
|
|
@@ -2421,39 +2410,39 @@ const Wt = g("block object-cover", {
|
|
|
2421
2410
|
}
|
|
2422
2411
|
}
|
|
2423
2412
|
);
|
|
2424
|
-
function
|
|
2413
|
+
function Pt({
|
|
2425
2414
|
className: e,
|
|
2426
|
-
shape:
|
|
2415
|
+
shape: n,
|
|
2427
2416
|
size: a,
|
|
2428
2417
|
height: s,
|
|
2429
2418
|
width: t
|
|
2430
2419
|
}) {
|
|
2431
|
-
return /* @__PURE__ */
|
|
2420
|
+
return /* @__PURE__ */ r.jsx(
|
|
2432
2421
|
de,
|
|
2433
2422
|
{
|
|
2434
|
-
className:
|
|
2423
|
+
className: u(Z({ shape: n, size: a }), e),
|
|
2435
2424
|
style: { height: s, width: t }
|
|
2436
2425
|
}
|
|
2437
2426
|
);
|
|
2438
2427
|
}
|
|
2439
|
-
function
|
|
2428
|
+
function Ht({
|
|
2440
2429
|
alt: e,
|
|
2441
|
-
width:
|
|
2430
|
+
width: n,
|
|
2442
2431
|
height: a,
|
|
2443
2432
|
className: s,
|
|
2444
2433
|
style: t,
|
|
2445
2434
|
shape: o,
|
|
2446
2435
|
size: i
|
|
2447
2436
|
}) {
|
|
2448
|
-
return /* @__PURE__ */
|
|
2437
|
+
return /* @__PURE__ */ r.jsxs(
|
|
2449
2438
|
"div",
|
|
2450
2439
|
{
|
|
2451
2440
|
className: Z({ shape: o, size: i, className: s }),
|
|
2452
|
-
style: { width:
|
|
2441
|
+
style: { width: n, height: a, ...t },
|
|
2453
2442
|
"aria-label": e,
|
|
2454
2443
|
role: "img",
|
|
2455
2444
|
children: [
|
|
2456
|
-
/* @__PURE__ */
|
|
2445
|
+
/* @__PURE__ */ r.jsx(
|
|
2457
2446
|
ce,
|
|
2458
2447
|
{
|
|
2459
2448
|
size: 32,
|
|
@@ -2461,15 +2450,15 @@ function qt({
|
|
|
2461
2450
|
"aria-hidden": "true"
|
|
2462
2451
|
}
|
|
2463
2452
|
),
|
|
2464
|
-
/* @__PURE__ */
|
|
2453
|
+
/* @__PURE__ */ r.jsx("span", { style: { opacity: 0.7 }, children: e })
|
|
2465
2454
|
]
|
|
2466
2455
|
}
|
|
2467
2456
|
);
|
|
2468
2457
|
}
|
|
2469
|
-
const
|
|
2458
|
+
const P = f(
|
|
2470
2459
|
({
|
|
2471
2460
|
src: e,
|
|
2472
|
-
alt:
|
|
2461
|
+
alt: n,
|
|
2473
2462
|
onLoad: a,
|
|
2474
2463
|
onError: s,
|
|
2475
2464
|
width: t,
|
|
@@ -2477,86 +2466,86 @@ const q = h(
|
|
|
2477
2466
|
loading: i = "lazy",
|
|
2478
2467
|
position: l = "cover",
|
|
2479
2468
|
size: d = "auto",
|
|
2480
|
-
shape:
|
|
2481
|
-
className:
|
|
2469
|
+
shape: m,
|
|
2470
|
+
className: h,
|
|
2482
2471
|
...x
|
|
2483
2472
|
}, p) => {
|
|
2484
|
-
const { loaded: b, errored:
|
|
2473
|
+
const { loaded: b, errored: v, handleLoad: w, handleError: N } = Wt({
|
|
2485
2474
|
src: e
|
|
2486
2475
|
}), y = typeof t == "number" ? t : Number(t), I = typeof o == "number" ? o : Number(o);
|
|
2487
|
-
return !b && !
|
|
2488
|
-
|
|
2476
|
+
return !b && !v ? /* @__PURE__ */ r.jsx(
|
|
2477
|
+
Pt,
|
|
2489
2478
|
{
|
|
2490
|
-
shape:
|
|
2479
|
+
shape: m,
|
|
2491
2480
|
width: y,
|
|
2492
2481
|
height: I
|
|
2493
2482
|
}
|
|
2494
|
-
) :
|
|
2495
|
-
|
|
2483
|
+
) : v ? /* @__PURE__ */ r.jsx(
|
|
2484
|
+
Ht,
|
|
2496
2485
|
{
|
|
2497
|
-
shape:
|
|
2498
|
-
alt:
|
|
2486
|
+
shape: m,
|
|
2487
|
+
alt: n,
|
|
2499
2488
|
width: y,
|
|
2500
2489
|
height: I
|
|
2501
2490
|
}
|
|
2502
|
-
) : /* @__PURE__ */
|
|
2491
|
+
) : /* @__PURE__ */ r.jsx(
|
|
2503
2492
|
"img",
|
|
2504
2493
|
{
|
|
2505
2494
|
ref: p,
|
|
2506
2495
|
src: e,
|
|
2507
|
-
alt:
|
|
2496
|
+
alt: n,
|
|
2508
2497
|
width: y,
|
|
2509
2498
|
height: I,
|
|
2510
2499
|
loading: i,
|
|
2511
|
-
className:
|
|
2512
|
-
|
|
2500
|
+
className: u(
|
|
2501
|
+
qt({
|
|
2513
2502
|
position: l,
|
|
2514
2503
|
size: d,
|
|
2515
|
-
shape:
|
|
2504
|
+
shape: m
|
|
2516
2505
|
}),
|
|
2517
|
-
|
|
2506
|
+
h
|
|
2518
2507
|
),
|
|
2519
|
-
onLoad: (
|
|
2520
|
-
|
|
2508
|
+
onLoad: (z) => {
|
|
2509
|
+
w(), a?.(z);
|
|
2521
2510
|
},
|
|
2522
|
-
onError: (
|
|
2523
|
-
N(), s?.(
|
|
2511
|
+
onError: (z) => {
|
|
2512
|
+
N(), s?.(z);
|
|
2524
2513
|
},
|
|
2525
2514
|
...x
|
|
2526
2515
|
}
|
|
2527
2516
|
);
|
|
2528
2517
|
}
|
|
2529
|
-
),
|
|
2518
|
+
), ur = f((e, n) => /* @__PURE__ */ r.jsx(P, { ref: n, ...e, shape: "circle" })), mr = f((e, n) => /* @__PURE__ */ r.jsx(P, { ref: n, ...e, shape: "square" })), hr = f((e, n) => /* @__PURE__ */ r.jsx(P, { ref: n, ...e, shape: "rectangle" }));
|
|
2530
2519
|
export {
|
|
2531
2520
|
Ut as A,
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2521
|
+
er as B,
|
|
2522
|
+
sr as C,
|
|
2523
|
+
or as F,
|
|
2524
|
+
L as H,
|
|
2525
|
+
k as I,
|
|
2537
2526
|
V as M,
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2527
|
+
lr as N,
|
|
2528
|
+
cr as T,
|
|
2529
|
+
Jt as a,
|
|
2530
|
+
Kt as b,
|
|
2531
|
+
Qt as c,
|
|
2532
|
+
We as d,
|
|
2533
|
+
Yt as e,
|
|
2534
|
+
Zt as f,
|
|
2535
|
+
tr as g,
|
|
2547
2536
|
J as h,
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2537
|
+
rr as i,
|
|
2538
|
+
nr as j,
|
|
2539
|
+
ar as k,
|
|
2540
|
+
xt as l,
|
|
2541
|
+
Et as m,
|
|
2542
|
+
Nt as n,
|
|
2543
|
+
ir as o,
|
|
2544
|
+
C as p,
|
|
2545
|
+
dr as q,
|
|
2546
|
+
ur as r,
|
|
2547
|
+
mr as s,
|
|
2548
|
+
hr as t,
|
|
2549
|
+
P as u,
|
|
2550
|
+
ke as v
|
|
2562
2551
|
};
|