@dimasbaguspm/versaur 0.0.60 → 0.0.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/js/forms/index.js +1 -1
- package/dist/js/{image-rectangle-CCvXv24a.js → image-rectangle-BwT5taeR.js} +694 -634
- package/dist/js/index.js +63 -61
- package/dist/js/layouts/index.js +1 -1
- package/dist/js/navigation/index.js +1 -1
- package/dist/js/overlays/index.js +2 -2
- package/dist/js/primitive/index.js +27 -25
- package/dist/js/{tabs-BQs53hHL.js → tabs-FDdFo4WV.js} +1 -1
- package/dist/js/{time-picker-input-Disd231b.js → time-picker-input-DMNSwm-p.js} +854 -642
- package/dist/js/tooltip-BGJUYNL0.js +625 -0
- package/dist/js/{top-bar-DMBbEIlR.js → top-bar-ChNgZEQx.js} +157 -187
- package/dist/types/forms/textarea-input/index.d.ts +1 -1
- package/dist/types/forms/textarea-input/textarea-input.atoms.d.ts +53 -0
- package/dist/types/forms/textarea-input/textarea-input.d.ts +1 -0
- package/dist/types/forms/textarea-input/types.d.ts +28 -0
- package/dist/types/forms/textarea-input/use-textarea-formatting.d.ts +21 -0
- package/dist/types/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/formatted-text/formatted-text.d.ts +10 -0
- package/dist/types/primitive/formatted-text/index.d.ts +3 -0
- package/dist/types/primitive/formatted-text/types.d.ts +19 -0
- package/dist/types/primitive/heading/types.d.ts +9 -12
- package/dist/types/primitive/index.d.ts +1 -0
- 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/dist/utils/enforce-subpath-import.js +2 -0
- package/package.json +2 -1
- package/dist/js/tooltip-Dpx3TpR6.js +0 -693
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { j as
|
|
1
|
+
import { j as n } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
2
|
import * as c from "react";
|
|
3
|
-
import
|
|
4
|
-
import { ChevronDown as ae, ChevronRight as se, LoaderCircleIcon as
|
|
5
|
-
import { c as
|
|
3
|
+
import _, { createContext as O, useContext as S, forwardRef as g, 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 f, 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"
|
|
14
14
|
);
|
|
15
15
|
return e;
|
|
16
|
-
}, ue =
|
|
16
|
+
}, ue = f(
|
|
17
17
|
"border-b border-border bg-background overflow-hidden",
|
|
18
18
|
{
|
|
19
19
|
variants: {
|
|
@@ -26,7 +26,7 @@ const F = O(
|
|
|
26
26
|
disabled: !1
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
-
),
|
|
29
|
+
), me = f(
|
|
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 = O(
|
|
|
44
44
|
isOpen: !1
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
),
|
|
47
|
+
), he = f(
|
|
48
48
|
"overflow-hidden transition-all duration-300",
|
|
49
49
|
{
|
|
50
50
|
variants: {
|
|
@@ -57,7 +57,7 @@ const F = O(
|
|
|
57
57
|
isOpen: !1
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
),
|
|
60
|
+
), ge = f("p-4 pt-0"), fe = f("transition-transform duration-200", {
|
|
61
61
|
variants: {
|
|
62
62
|
isOpen: {
|
|
63
63
|
true: "rotate-180",
|
|
@@ -67,7 +67,7 @@ const F = O(
|
|
|
67
67
|
defaultVariants: {
|
|
68
68
|
isOpen: !1
|
|
69
69
|
}
|
|
70
|
-
}), xe =
|
|
70
|
+
}), xe = f("", {
|
|
71
71
|
variants: {
|
|
72
72
|
color: {
|
|
73
73
|
primary: "text-primary",
|
|
@@ -84,13 +84,17 @@ const F = O(
|
|
|
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 = O(
|
|
|
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,72 +114,64 @@ const F = O(
|
|
|
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 = g(
|
|
142
136
|
({
|
|
143
|
-
|
|
144
|
-
color:
|
|
145
|
-
|
|
146
|
-
|
|
137
|
+
as: e = "h3",
|
|
138
|
+
color: r = "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 p =
|
|
157
|
-
return /* @__PURE__ */
|
|
147
|
+
...h
|
|
148
|
+
}, x) => {
|
|
149
|
+
const p = e, b = l ? i === "none" ? "truncate" : "overflow-hidden" : "";
|
|
150
|
+
return /* @__PURE__ */ n.jsx(
|
|
158
151
|
p,
|
|
159
152
|
{
|
|
160
|
-
ref:
|
|
161
|
-
className:
|
|
153
|
+
ref: x,
|
|
154
|
+
className: u(
|
|
162
155
|
xe({
|
|
163
|
-
color:
|
|
164
|
-
|
|
165
|
-
|
|
156
|
+
color: r,
|
|
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
|
-
|
|
182
|
-
const
|
|
173
|
+
L.displayName = "Heading";
|
|
174
|
+
const be = f("inline-flex items-center justify-center", {
|
|
183
175
|
variants: {
|
|
184
176
|
size: {
|
|
185
177
|
xs: "w-3 h-3",
|
|
@@ -209,54 +201,54 @@ const pe = g("inline-flex items-center justify-center", {
|
|
|
209
201
|
size: "md",
|
|
210
202
|
color: "primary"
|
|
211
203
|
}
|
|
212
|
-
}),
|
|
213
|
-
return /* @__PURE__ */
|
|
214
|
-
|
|
204
|
+
}), N = _.forwardRef(function({ as: r, color: a = "primary", size: s = "md", className: t, ...o }, i) {
|
|
205
|
+
return /* @__PURE__ */ n.jsx(
|
|
206
|
+
r,
|
|
215
207
|
{
|
|
216
208
|
ref: i,
|
|
217
|
-
className:
|
|
209
|
+
className: be({ color: a, size: s, className: t }),
|
|
218
210
|
...o
|
|
219
211
|
}
|
|
220
212
|
);
|
|
221
|
-
}),
|
|
222
|
-
return /* @__PURE__ */
|
|
223
|
-
|
|
213
|
+
}), pe = g(function({ className: r, children: a, ...s }, t) {
|
|
214
|
+
return /* @__PURE__ */ n.jsx(
|
|
215
|
+
L,
|
|
224
216
|
{
|
|
225
217
|
ref: t,
|
|
226
|
-
|
|
227
|
-
className:
|
|
218
|
+
as: "h6",
|
|
219
|
+
className: u("font-medium", r),
|
|
228
220
|
...s,
|
|
229
221
|
color: "black",
|
|
230
222
|
children: a
|
|
231
223
|
}
|
|
232
224
|
);
|
|
233
|
-
}), we =
|
|
225
|
+
}), we = g(function({ className: r, children: a, ...s }, t) {
|
|
234
226
|
const { isOpen: o } = $();
|
|
235
|
-
return /* @__PURE__ */
|
|
227
|
+
return /* @__PURE__ */ n.jsx(
|
|
236
228
|
"div",
|
|
237
229
|
{
|
|
238
230
|
ref: t,
|
|
239
|
-
className:
|
|
231
|
+
className: u(he({ isOpen: o }), r),
|
|
240
232
|
...s,
|
|
241
|
-
children: /* @__PURE__ */
|
|
233
|
+
children: /* @__PURE__ */ n.jsx("div", { className: ge(), children: a })
|
|
242
234
|
}
|
|
243
235
|
);
|
|
244
|
-
}),
|
|
236
|
+
}), D = g(function({ as: r, ...a }, s) {
|
|
245
237
|
const { isOpen: t } = $();
|
|
246
|
-
return /* @__PURE__ */
|
|
247
|
-
|
|
238
|
+
return /* @__PURE__ */ n.jsx(
|
|
239
|
+
N,
|
|
248
240
|
{
|
|
249
241
|
ref: s,
|
|
250
|
-
as:
|
|
242
|
+
as: r,
|
|
251
243
|
color: "ghost",
|
|
252
244
|
size: "sm",
|
|
253
|
-
className:
|
|
245
|
+
className: fe({ isOpen: t }),
|
|
254
246
|
...a
|
|
255
247
|
}
|
|
256
248
|
);
|
|
257
|
-
}), ve =
|
|
249
|
+
}), ve = g(
|
|
258
250
|
function({
|
|
259
|
-
title:
|
|
251
|
+
title: r,
|
|
260
252
|
subtitle: a,
|
|
261
253
|
isDefaultOpen: s = !1,
|
|
262
254
|
disabled: t = !1,
|
|
@@ -264,61 +256,61 @@ const pe = g("inline-flex items-center justify-center", {
|
|
|
264
256
|
className: i,
|
|
265
257
|
children: l,
|
|
266
258
|
...d
|
|
267
|
-
},
|
|
268
|
-
const [
|
|
259
|
+
}, m) {
|
|
260
|
+
const [h, x] = j(s), p = () => {
|
|
269
261
|
t || x((w) => !w);
|
|
270
|
-
},
|
|
271
|
-
isOpen:
|
|
272
|
-
toggle:
|
|
262
|
+
}, b = {
|
|
263
|
+
isOpen: h,
|
|
264
|
+
toggle: p,
|
|
273
265
|
disabled: t
|
|
274
266
|
};
|
|
275
|
-
return /* @__PURE__ */
|
|
267
|
+
return /* @__PURE__ */ n.jsx(G.Provider, { value: b, children: /* @__PURE__ */ n.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__ */ n.jsx(
|
|
287
279
|
"div",
|
|
288
280
|
{
|
|
289
281
|
role: "button",
|
|
290
|
-
className:
|
|
291
|
-
onClick:
|
|
282
|
+
className: me({ disabled: t, isOpen: h }),
|
|
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__ */ n.jsxs("div", { className: "flex items-center justify-between w-full gap-2", children: [
|
|
287
|
+
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-3 flex-grow", children: [
|
|
288
|
+
/* @__PURE__ */ n.jsx("div", { className: "flex-1", children: r }),
|
|
289
|
+
a && /* @__PURE__ */ n.jsx("div", { className: "flex-shrink-0", children: a })
|
|
298
290
|
] }),
|
|
299
|
-
/* @__PURE__ */
|
|
291
|
+
/* @__PURE__ */ n.jsx(D, { as: ae })
|
|
300
292
|
] })
|
|
301
293
|
}
|
|
302
294
|
),
|
|
303
|
-
/* @__PURE__ */
|
|
295
|
+
/* @__PURE__ */ n.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__ */ n.jsx("div", { className: "p-4 pt-2", children: l })
|
|
311
303
|
}
|
|
312
304
|
)
|
|
313
305
|
]
|
|
314
306
|
}
|
|
315
307
|
) });
|
|
316
308
|
}
|
|
317
|
-
),
|
|
318
|
-
Title:
|
|
309
|
+
), Ut = Object.assign(ve, {
|
|
310
|
+
Title: pe,
|
|
319
311
|
Content: we,
|
|
320
|
-
Icon:
|
|
321
|
-
}), ye =
|
|
312
|
+
Icon: D
|
|
313
|
+
}), ye = f(
|
|
322
314
|
[
|
|
323
315
|
// Base styles
|
|
324
316
|
"fixed",
|
|
@@ -340,8 +332,8 @@ const pe = 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, r, a = "bottom", s = 8) {
|
|
336
|
+
const t = e.getBoundingClientRect(), o = r.getBoundingClientRect();
|
|
345
337
|
let i = 0, l = 0;
|
|
346
338
|
switch (a) {
|
|
347
339
|
// Top placements
|
|
@@ -385,64 +377,64 @@ function je(e, n, 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 ke(e,
|
|
396
|
-
const t = B(null), [o, i] =
|
|
387
|
+
function ke(e, r, a, s) {
|
|
388
|
+
const t = B(null), [o, i] = j(!1), l = r !== void 0, d = l ? r : 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
|
-
}, []),
|
|
403
|
-
(
|
|
394
|
+
}, []), p = A(
|
|
395
|
+
(b = "toggle") => ({
|
|
404
396
|
popoverTarget: e,
|
|
405
|
-
popoverTargetAction:
|
|
397
|
+
popoverTargetAction: b
|
|
406
398
|
}),
|
|
407
399
|
[e]
|
|
408
400
|
);
|
|
409
|
-
return
|
|
410
|
-
const
|
|
411
|
-
if (!
|
|
401
|
+
return E(() => {
|
|
402
|
+
const b = t.current;
|
|
403
|
+
if (!b) return;
|
|
412
404
|
const w = (v) => {
|
|
413
405
|
const y = v.newState === "open";
|
|
414
406
|
l || i(y), y && a ? a() : !y && s && s();
|
|
415
407
|
};
|
|
416
|
-
return
|
|
417
|
-
|
|
408
|
+
return b.addEventListener("toggle", w), () => {
|
|
409
|
+
b.removeEventListener("toggle", w);
|
|
418
410
|
};
|
|
419
|
-
}, [l, a, s]),
|
|
411
|
+
}, [l, a, s]), E(() => {
|
|
420
412
|
if (!l || !t.current) return;
|
|
421
|
-
const
|
|
422
|
-
if (!
|
|
413
|
+
const b = t.current;
|
|
414
|
+
if (!b.showPopover || !b.hidePopover) return;
|
|
423
415
|
let w = !1;
|
|
424
416
|
try {
|
|
425
|
-
w =
|
|
417
|
+
w = b.matches(":popover-open");
|
|
426
418
|
} catch {
|
|
427
419
|
}
|
|
428
|
-
|
|
429
|
-
}, [
|
|
430
|
-
getTriggerProps:
|
|
431
|
-
show:
|
|
432
|
-
hide:
|
|
420
|
+
r && !w ? m() : !r && w && h();
|
|
421
|
+
}, [r, l, m, h]), {
|
|
422
|
+
getTriggerProps: p,
|
|
423
|
+
show: m,
|
|
424
|
+
hide: h,
|
|
433
425
|
toggle: x,
|
|
434
426
|
isOpen: d,
|
|
435
427
|
popoverRef: t
|
|
436
428
|
};
|
|
437
429
|
}
|
|
438
|
-
const Ne = (...e) => (
|
|
430
|
+
const Ne = (...e) => (r) => {
|
|
439
431
|
e.forEach((a) => {
|
|
440
|
-
typeof a == "function" ? a(
|
|
432
|
+
typeof a == "function" ? a(r) : a && "current" in a && (a.current = r);
|
|
441
433
|
});
|
|
442
|
-
},
|
|
434
|
+
}, X = g(
|
|
443
435
|
({
|
|
444
436
|
id: e,
|
|
445
|
-
children:
|
|
437
|
+
children: r,
|
|
446
438
|
isOpen: a,
|
|
447
439
|
onOpen: s,
|
|
448
440
|
onClose: t,
|
|
@@ -450,79 +442,79 @@ const Ne = (...e) => (n) => {
|
|
|
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
|
-
style:
|
|
457
|
-
...
|
|
448
|
+
style: p,
|
|
449
|
+
...b
|
|
458
450
|
}, w) => {
|
|
459
|
-
const { popoverRef: v, isOpen:
|
|
451
|
+
const { popoverRef: v, isOpen: k } = ke(
|
|
460
452
|
e,
|
|
461
453
|
a,
|
|
462
454
|
s,
|
|
463
455
|
t
|
|
464
|
-
), [y, I] =
|
|
456
|
+
), [y, I] = j(
|
|
465
457
|
{}
|
|
466
|
-
), [
|
|
467
|
-
|
|
458
|
+
), [z, R] = j(!1);
|
|
459
|
+
E(() => {
|
|
468
460
|
if (!d?.current || !v.current)
|
|
469
461
|
return;
|
|
470
|
-
const
|
|
462
|
+
const T = () => {
|
|
471
463
|
if (!d.current || !v.current) return;
|
|
472
464
|
const te = je(
|
|
473
465
|
d.current,
|
|
474
466
|
v.current,
|
|
475
467
|
l,
|
|
476
|
-
|
|
468
|
+
m
|
|
477
469
|
);
|
|
478
470
|
I(te);
|
|
479
471
|
};
|
|
480
|
-
|
|
472
|
+
k ? (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
|
-
|
|
480
|
+
k && 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, v, l,
|
|
485
|
+
}, [d, v, l, m, k]);
|
|
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__ */ n.jsx(
|
|
505
497
|
"div",
|
|
506
498
|
{
|
|
507
|
-
...
|
|
499
|
+
...b,
|
|
508
500
|
ref: Ne(w, v),
|
|
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: r
|
|
515
507
|
}
|
|
516
508
|
);
|
|
517
509
|
}
|
|
518
510
|
);
|
|
519
|
-
|
|
520
|
-
const Ee = (e,
|
|
511
|
+
X.displayName = "Popover";
|
|
512
|
+
const Ee = (e, r = "toggle") => ({
|
|
521
513
|
popoverTarget: e,
|
|
522
|
-
popoverTargetAction:
|
|
523
|
-
}), Ce = Object.assign(
|
|
514
|
+
popoverTargetAction: r
|
|
515
|
+
}), Ce = Object.assign(X, {
|
|
524
516
|
getTriggerProps: Ee
|
|
525
|
-
}),
|
|
517
|
+
}), _e = f(
|
|
526
518
|
"group flex items-center justify-between transition-all duration-200 w-full",
|
|
527
519
|
{
|
|
528
520
|
variants: {
|
|
@@ -541,7 +533,7 @@ const Ee = (e, n = "toggle") => ({
|
|
|
541
533
|
as: "button"
|
|
542
534
|
}
|
|
543
535
|
}
|
|
544
|
-
), Ve =
|
|
536
|
+
), Ve = f(
|
|
545
537
|
"bg-gradient-to-br from-gray-100 to-gray-200 rounded-xl flex items-center justify-center group-hover:from-primary-soft group-hover:to-primary-light duration-200",
|
|
546
538
|
{
|
|
547
539
|
variants: {
|
|
@@ -555,7 +547,7 @@ const Ee = (e, n = "toggle") => ({
|
|
|
555
547
|
size: "md"
|
|
556
548
|
}
|
|
557
549
|
}
|
|
558
|
-
), Ie =
|
|
550
|
+
), Ie = f(
|
|
559
551
|
"inline-flex items-center justify-center text-ghost-bold transition-colors duration-200",
|
|
560
552
|
{
|
|
561
553
|
variants: {
|
|
@@ -569,7 +561,16 @@ const Ee = (e, n = "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 = f("", {
|
|
573
574
|
variants: {
|
|
574
575
|
color: {
|
|
575
576
|
primary: "text-primary",
|
|
@@ -586,13 +587,17 @@ const Ee = (e, n = "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, n = "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 = g(
|
|
642
641
|
({
|
|
643
642
|
as: e = "span",
|
|
644
|
-
color:
|
|
645
|
-
|
|
646
|
-
|
|
643
|
+
color: r = "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
|
-
...
|
|
652
|
+
children: h,
|
|
653
|
+
...x
|
|
656
654
|
}, p) => {
|
|
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__ */ r.jsx(
|
|
669
|
-
e,
|
|
655
|
+
const b = Ae(e), w = e, v = d ? `font-${d}` : "", k = l ? i === "none" ? "truncate" : "overflow-hidden" : "";
|
|
656
|
+
return /* @__PURE__ */ n.jsx(
|
|
657
|
+
w,
|
|
670
658
|
{
|
|
671
659
|
ref: p,
|
|
672
|
-
className:
|
|
673
|
-
|
|
674
|
-
color:
|
|
675
|
-
|
|
676
|
-
|
|
660
|
+
className: u(
|
|
661
|
+
Le({
|
|
662
|
+
color: r,
|
|
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
|
}),
|
|
684
|
-
|
|
685
|
-
|
|
670
|
+
v,
|
|
671
|
+
k,
|
|
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 = g(
|
|
680
|
+
({ children: e, className: r }, a) => /* @__PURE__ */ n.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
|
+
r
|
|
702
688
|
),
|
|
703
689
|
role: "group",
|
|
704
690
|
children: e
|
|
705
691
|
}
|
|
706
692
|
)
|
|
707
|
-
),
|
|
693
|
+
), Re = g(
|
|
708
694
|
({
|
|
709
695
|
size: e = "md",
|
|
710
|
-
icon:
|
|
696
|
+
icon: r,
|
|
711
697
|
title: a,
|
|
712
698
|
subtitle: s,
|
|
713
699
|
badge: t,
|
|
@@ -715,29 +701,28 @@ const Ee = (e, n = "toggle") => ({
|
|
|
715
701
|
as: i = "button",
|
|
716
702
|
className: l,
|
|
717
703
|
...d
|
|
718
|
-
},
|
|
704
|
+
}, m) => /* @__PURE__ */ n.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__ */ n.jsxs("div", { className: "flex items-center gap-4 flex-1", children: [
|
|
712
|
+
r && /* @__PURE__ */ n.jsx("div", { className: u(Ve({ size: e })), children: r }),
|
|
713
|
+
/* @__PURE__ */ n.jsxs("div", { className: "flex-1", children: [
|
|
714
|
+
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-3 mb-1", children: [
|
|
715
|
+
/* @__PURE__ */ n.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__ */ n.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, n = "toggle") => ({
|
|
|
746
731
|
}
|
|
747
732
|
)
|
|
748
733
|
] }),
|
|
749
|
-
s && /* @__PURE__ */
|
|
750
|
-
|
|
734
|
+
s && /* @__PURE__ */ n.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, n = "toggle") => ({
|
|
|
758
742
|
)
|
|
759
743
|
] })
|
|
760
744
|
] }),
|
|
761
|
-
o && /* @__PURE__ */
|
|
762
|
-
|
|
745
|
+
o && /* @__PURE__ */ n.jsx("div", { className: "flex items-center gap-3", children: /* @__PURE__ */ n.jsx(
|
|
746
|
+
N,
|
|
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, n = "toggle") => ({
|
|
|
770
754
|
]
|
|
771
755
|
}
|
|
772
756
|
)
|
|
773
|
-
),
|
|
774
|
-
Group:
|
|
775
|
-
}),
|
|
757
|
+
), Jt = Object.assign(Re, {
|
|
758
|
+
Group: Me
|
|
759
|
+
}), Te = f(
|
|
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, n = "toggle") => ({
|
|
|
893
877
|
color: "neutral"
|
|
894
878
|
}
|
|
895
879
|
}
|
|
896
|
-
),
|
|
880
|
+
), Oe = f(
|
|
897
881
|
"flex-shrink-0 flex justify-center items-center ",
|
|
898
882
|
{
|
|
899
883
|
variants: {
|
|
@@ -907,32 +891,32 @@ const Ee = (e, n = "toggle") => ({
|
|
|
907
891
|
size: "md"
|
|
908
892
|
}
|
|
909
893
|
}
|
|
910
|
-
),
|
|
911
|
-
({ className: e, children:
|
|
912
|
-
),
|
|
894
|
+
), U = g(
|
|
895
|
+
({ className: e, children: r, ...a }, s) => /* @__PURE__ */ n.jsx("div", { ref: s, className: u(Oe(), e), ...a, children: r })
|
|
896
|
+
), Se = g(
|
|
913
897
|
({
|
|
914
898
|
variant: e = "default",
|
|
915
|
-
color:
|
|
899
|
+
color: r = "neutral",
|
|
916
900
|
icon: a,
|
|
917
901
|
className: s,
|
|
918
902
|
children: t,
|
|
919
903
|
...o
|
|
920
|
-
}, i) => /* @__PURE__ */
|
|
904
|
+
}, i) => /* @__PURE__ */ n.jsxs(
|
|
921
905
|
"div",
|
|
922
906
|
{
|
|
923
907
|
ref: i,
|
|
924
908
|
role: "alert",
|
|
925
|
-
className:
|
|
909
|
+
className: u(Te({ variant: e, color: r }), s),
|
|
926
910
|
...o,
|
|
927
911
|
children: [
|
|
928
|
-
a && /* @__PURE__ */
|
|
929
|
-
/* @__PURE__ */
|
|
912
|
+
a && /* @__PURE__ */ n.jsx(U, { children: a }),
|
|
913
|
+
/* @__PURE__ */ n.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 = f(
|
|
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, n = "toggle") => ({
|
|
|
989
973
|
quiet: !1
|
|
990
974
|
}
|
|
991
975
|
}
|
|
992
|
-
),
|
|
976
|
+
), Qt = g(
|
|
993
977
|
({
|
|
994
978
|
children: e,
|
|
995
|
-
className:
|
|
979
|
+
className: r,
|
|
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__ */ n.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
|
+
r
|
|
1008
992
|
),
|
|
1009
993
|
...i,
|
|
1010
994
|
children: e
|
|
1011
995
|
}
|
|
1012
996
|
)
|
|
1013
|
-
),
|
|
1014
|
-
function({ title:
|
|
1015
|
-
return /* @__PURE__ */
|
|
997
|
+
), We = g(
|
|
998
|
+
function({ title: r, children: a, className: s, hasMargin: t, ...o }, i) {
|
|
999
|
+
return /* @__PURE__ */ n.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: n
|
|
1031
|
-
}
|
|
1032
|
-
),
|
|
1033
|
-
/* @__PURE__ */ r.jsx(j, { as: "p", fontSize: "sm", fontWeight: "normal", children: a })
|
|
1006
|
+
/* @__PURE__ */ n.jsx(L, { as: "h6", color: "gray", className: "leading-none", children: r }),
|
|
1007
|
+
/* @__PURE__ */ n.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 Te(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 qe(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 = g(function({ children: r, className: a, span: s = 1, title: t, ...o }, i) {
|
|
1074
|
+
const l = qe(s);
|
|
1075
|
+
return /* @__PURE__ */ n.jsx("li", { ref: i, className: u(l, a), ...o, children: /* @__PURE__ */ n.jsx(We, { title: t, children: r }) });
|
|
1076
|
+
}), Fe = g(
|
|
1077
|
+
function({ children: r, className: a, columns: s = 4, ...t }, o) {
|
|
1078
|
+
const i = Pe(s);
|
|
1079
|
+
return /* @__PURE__ */ n.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: r
|
|
1112
1086
|
}
|
|
1113
1087
|
);
|
|
1114
1088
|
}
|
|
1115
|
-
),
|
|
1116
|
-
Item:
|
|
1117
|
-
}),
|
|
1089
|
+
), Yt = Object.assign(Fe, {
|
|
1090
|
+
Item: He
|
|
1091
|
+
}), Ge = f(
|
|
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,55 +1128,55 @@ const Pe = h(function({ children: n, className: a, span: s = 1, title: t, ...o }
|
|
|
1154
1128
|
shape: "circle"
|
|
1155
1129
|
}
|
|
1156
1130
|
}
|
|
1157
|
-
),
|
|
1131
|
+
), $e = f(
|
|
1158
1132
|
"absolute inset-0 h-full w-full object-cover"
|
|
1159
|
-
),
|
|
1133
|
+
), De = g(
|
|
1160
1134
|
({
|
|
1161
1135
|
variant: e = "primary",
|
|
1162
|
-
size:
|
|
1136
|
+
size: r = "md",
|
|
1163
1137
|
shape: a = "circle",
|
|
1164
1138
|
className: s,
|
|
1165
1139
|
children: t,
|
|
1166
1140
|
...o
|
|
1167
|
-
}, i) => /* @__PURE__ */
|
|
1141
|
+
}, i) => /* @__PURE__ */ n.jsx(
|
|
1168
1142
|
"div",
|
|
1169
1143
|
{
|
|
1170
1144
|
ref: i,
|
|
1171
|
-
className:
|
|
1145
|
+
className: u(Ge({ variant: e, size: r, 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 = g(
|
|
1151
|
+
({ src: e, alt: r, 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__ */ n.jsx(
|
|
1189
1163
|
"img",
|
|
1190
1164
|
{
|
|
1191
1165
|
ref: o,
|
|
1192
1166
|
src: e,
|
|
1193
|
-
alt:
|
|
1194
|
-
className:
|
|
1167
|
+
alt: r,
|
|
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:
|
|
1205
|
-
}), Ue =
|
|
1178
|
+
Image: Xe
|
|
1179
|
+
}), Ue = f(
|
|
1206
1180
|
"inline-flex items-center justify-center font-medium transition-all duration-200 select-none gap-1 min-h-[1.25rem]",
|
|
1207
1181
|
{
|
|
1208
1182
|
variants: {
|
|
@@ -1389,10 +1363,10 @@ const Pe = h(function({ children: n, className: a, span: s = 1, title: t, ...o }
|
|
|
1389
1363
|
iconOnly: !1
|
|
1390
1364
|
}
|
|
1391
1365
|
}
|
|
1392
|
-
),
|
|
1366
|
+
), er = g(
|
|
1393
1367
|
({
|
|
1394
1368
|
variant: e = "default",
|
|
1395
|
-
shape:
|
|
1369
|
+
shape: r = "square",
|
|
1396
1370
|
color: a = "primary",
|
|
1397
1371
|
size: s = "md",
|
|
1398
1372
|
iconLeft: t,
|
|
@@ -1400,29 +1374,29 @@ const Pe = h(function({ children: n, className: a, span: s = 1, title: t, ...o }
|
|
|
1400
1374
|
className: i,
|
|
1401
1375
|
children: l,
|
|
1402
1376
|
...d
|
|
1403
|
-
},
|
|
1404
|
-
const
|
|
1405
|
-
return /* @__PURE__ */
|
|
1377
|
+
}, m) => {
|
|
1378
|
+
const p = !(l != null && l !== "") && !!(t || o);
|
|
1379
|
+
return /* @__PURE__ */ n.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: r,
|
|
1414
1388
|
size: s,
|
|
1415
|
-
iconOnly:
|
|
1389
|
+
iconOnly: p
|
|
1416
1390
|
}),
|
|
1417
1391
|
i
|
|
1418
1392
|
),
|
|
1419
1393
|
...d,
|
|
1420
|
-
children:
|
|
1394
|
+
children: p ? (
|
|
1421
1395
|
// Icon-only mode: display only the icon
|
|
1422
1396
|
t || o
|
|
1423
1397
|
) : (
|
|
1424
1398
|
// Normal mode: display icon(s) and text
|
|
1425
|
-
/* @__PURE__ */
|
|
1399
|
+
/* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
1426
1400
|
t,
|
|
1427
1401
|
l,
|
|
1428
1402
|
o
|
|
@@ -1431,7 +1405,7 @@ const Pe = h(function({ children: n, className: a, span: s = 1, title: t, ...o }
|
|
|
1431
1405
|
}
|
|
1432
1406
|
);
|
|
1433
1407
|
}
|
|
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" }))),
|
|
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 = f("", {
|
|
1435
1409
|
variants: {
|
|
1436
1410
|
size: {
|
|
1437
1411
|
xs: "h-6 w-6",
|
|
@@ -1444,45 +1418,45 @@ const Pe = h(function({ children: n, 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 = g(
|
|
1422
|
+
({ shape: e = "square", size: r, name: a = "spenicle", ...s }, t) => {
|
|
1449
1423
|
const o = {
|
|
1450
1424
|
spenicle: {
|
|
1451
1425
|
square: H,
|
|
1452
|
-
rounded:
|
|
1453
|
-
circle:
|
|
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
1439
|
}, l = (o[a] || o.spenicle)[e || "square"] || H;
|
|
1466
|
-
return /* @__PURE__ */
|
|
1440
|
+
return /* @__PURE__ */ n.jsx(
|
|
1467
1441
|
l,
|
|
1468
1442
|
{
|
|
1469
1443
|
ref: t,
|
|
1470
1444
|
...s,
|
|
1471
|
-
className:
|
|
1445
|
+
className: u("inline-block", nt({ size: r }))
|
|
1472
1446
|
}
|
|
1473
1447
|
);
|
|
1474
1448
|
}
|
|
1475
|
-
),
|
|
1476
|
-
({ name: e = "spenicle", size:
|
|
1449
|
+
), tr = g(
|
|
1450
|
+
({ name: e = "spenicle", size: r = "md", shape: a, ...s }, t) => /* @__PURE__ */ n.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__ */ n.jsx(at, { name: e, shape: a, size: r, "aria-hidden": "true" })
|
|
1483
1457
|
}
|
|
1484
1458
|
)
|
|
1485
|
-
),
|
|
1459
|
+
), st = f(
|
|
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 Pe = h(function({ children: n, 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: r,
|
|
1513
1487
|
variant: a = "primary",
|
|
1514
1488
|
size: s = "md",
|
|
1515
1489
|
disabled: t = !1,
|
|
@@ -1517,25 +1491,25 @@ const Pe = h(function({ children: n, 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__ */ n.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 }), r),
|
|
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__ */ n.jsx(
|
|
1509
|
+
N,
|
|
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 Pe = h(function({ children: n, className: a, span: s = 1, title: t, ...o }
|
|
|
1545
1519
|
}
|
|
1546
1520
|
);
|
|
1547
1521
|
}
|
|
1548
|
-
),
|
|
1522
|
+
), ot = f(
|
|
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 Pe = h(function({ children: n, 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: r,
|
|
1573
1547
|
variant: a = "primary",
|
|
1574
1548
|
size: s = "md",
|
|
1575
1549
|
disabled: t = !1,
|
|
@@ -1577,29 +1551,29 @@ const Pe = h(function({ children: n, 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__ */ n.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 }), r),
|
|
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 = f(
|
|
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 Pe = h(function({ children: n, className: a, span: s = 1, title: t, ...o }
|
|
|
1617
1591
|
open: !1
|
|
1618
1592
|
}
|
|
1619
1593
|
}
|
|
1620
|
-
), K = O(void 0),
|
|
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 = g(
|
|
1600
|
+
({ children: e }, r) => /* @__PURE__ */ n.jsx("ul", { ref: r, className: "flex flex-col gap-1", children: e })
|
|
1601
|
+
), ut = g(
|
|
1602
|
+
({ children: e, disabled: r, 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__ */ n.jsx("li", { ref: o, ...t, children: /* @__PURE__ */ n.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: r,
|
|
1638
1612
|
onClick: d,
|
|
1639
1613
|
children: [
|
|
1640
1614
|
e,
|
|
1641
|
-
s && /* @__PURE__ */
|
|
1642
|
-
|
|
1615
|
+
s && /* @__PURE__ */ n.jsx(
|
|
1616
|
+
N,
|
|
1643
1617
|
{
|
|
1644
1618
|
as: oe,
|
|
1645
1619
|
color: "inherit",
|
|
@@ -1651,9 +1625,9 @@ const Pe = h(function({ children: n, 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: r,
|
|
1657
1631
|
size: a = "md",
|
|
1658
1632
|
content: s,
|
|
1659
1633
|
children: t,
|
|
@@ -1661,32 +1635,32 @@ const Pe = h(function({ children: n, className: a, span: s = 1, title: t, ...o }
|
|
|
1661
1635
|
gap: i = 4,
|
|
1662
1636
|
preserve: l
|
|
1663
1637
|
}) => {
|
|
1664
|
-
const d = B(null),
|
|
1665
|
-
return /* @__PURE__ */
|
|
1638
|
+
const d = B(null), m = re();
|
|
1639
|
+
return /* @__PURE__ */ n.jsx(lt, { value: { onClose: r, preserve: !!l }, children: /* @__PURE__ */ n.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__ */ n.jsx(
|
|
1671
1645
|
Ce,
|
|
1672
1646
|
{
|
|
1673
|
-
id:
|
|
1647
|
+
id: m,
|
|
1674
1648
|
triggerRef: d,
|
|
1675
1649
|
isOpen: e,
|
|
1676
|
-
onClose:
|
|
1650
|
+
onClose: r,
|
|
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
|
-
},
|
|
1686
|
-
Content:
|
|
1687
|
-
Item:
|
|
1688
|
-
}),
|
|
1689
|
-
(e,
|
|
1659
|
+
}, V = Object.assign(mt, {
|
|
1660
|
+
Content: dt,
|
|
1661
|
+
Item: ut
|
|
1662
|
+
}), ht = g(
|
|
1663
|
+
(e, r) => {
|
|
1690
1664
|
const {
|
|
1691
1665
|
children: a,
|
|
1692
1666
|
onOpenChange: s,
|
|
@@ -1695,34 +1669,34 @@ const Pe = h(function({ children: n, 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
|
-
|
|
1704
|
-
},
|
|
1705
|
-
|
|
1677
|
+
h(!1);
|
|
1678
|
+
}, p = (b) => {
|
|
1679
|
+
b.stopPropagation(), h((w) => !w), t?.(b);
|
|
1706
1680
|
};
|
|
1707
|
-
return /* @__PURE__ */
|
|
1708
|
-
|
|
1681
|
+
return /* @__PURE__ */ n.jsx(
|
|
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__ */ n.jsx(V.Content, { children: a }),
|
|
1689
|
+
children: /* @__PURE__ */ n.jsx(J, { ref: r, onClick: p, ...d, children: l })
|
|
1716
1690
|
}
|
|
1717
1691
|
);
|
|
1718
1692
|
}
|
|
1719
|
-
),
|
|
1720
|
-
Item:
|
|
1693
|
+
), nr = Object.assign(ht, {
|
|
1694
|
+
Item: V.Item
|
|
1721
1695
|
});
|
|
1722
|
-
function
|
|
1696
|
+
function gt(e = "primary") {
|
|
1723
1697
|
return e === "primary" || e === "destructive" ? "white" : "inherit";
|
|
1724
1698
|
}
|
|
1725
|
-
const
|
|
1699
|
+
const ft = f(
|
|
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: r,
|
|
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
|
-
},
|
|
1768
|
-
const x =
|
|
1769
|
-
return /* @__PURE__ */
|
|
1740
|
+
...m
|
|
1741
|
+
}, h) {
|
|
1742
|
+
const x = gt(a);
|
|
1743
|
+
return /* @__PURE__ */ n.jsx(
|
|
1770
1744
|
"button",
|
|
1771
1745
|
{
|
|
1772
|
-
ref:
|
|
1746
|
+
ref: h,
|
|
1773
1747
|
type: "button",
|
|
1774
|
-
className:
|
|
1775
|
-
|
|
1748
|
+
className: u(
|
|
1749
|
+
ft({
|
|
1776
1750
|
variant: a,
|
|
1777
1751
|
size: s,
|
|
1778
1752
|
shape: t
|
|
1779
1753
|
}),
|
|
1780
|
-
|
|
1754
|
+
r
|
|
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__ */ n.jsx(
|
|
1763
|
+
N,
|
|
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__ */ n.jsx(N, { as: l, size: "sm", color: x })
|
|
1797
1771
|
}
|
|
1798
1772
|
);
|
|
1799
1773
|
}
|
|
1800
|
-
),
|
|
1801
|
-
(e,
|
|
1774
|
+
), bt = g(
|
|
1775
|
+
(e, r) => {
|
|
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
|
-
|
|
1816
|
-
},
|
|
1817
|
-
|
|
1789
|
+
h(!1);
|
|
1790
|
+
}, p = (b) => {
|
|
1791
|
+
b.stopPropagation(), h((w) => !w), o?.(b);
|
|
1818
1792
|
};
|
|
1819
|
-
return /* @__PURE__ */
|
|
1820
|
-
|
|
1793
|
+
return /* @__PURE__ */ n.jsx(
|
|
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__ */ n.jsx(V.Content, { children: s }),
|
|
1801
|
+
children: /* @__PURE__ */ n.jsx(xt, { ref: r, as: a, onClick: p, ...d })
|
|
1828
1802
|
}
|
|
1829
1803
|
);
|
|
1830
1804
|
}
|
|
1831
|
-
),
|
|
1832
|
-
Item:
|
|
1833
|
-
}),
|
|
1805
|
+
), ar = Object.assign(bt, {
|
|
1806
|
+
Item: V.Item
|
|
1807
|
+
}), pt = f(
|
|
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
|
+
), wt = g(
|
|
1840
|
+
({ children: e }, r) => /* @__PURE__ */ n.jsx(
|
|
1867
1841
|
"ul",
|
|
1868
1842
|
{
|
|
1869
|
-
ref:
|
|
1843
|
+
ref: r,
|
|
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
|
+
), vt = g(
|
|
1849
|
+
({ children: e }, r) => /* @__PURE__ */ n.jsx(
|
|
1876
1850
|
"li",
|
|
1877
1851
|
{
|
|
1878
|
-
ref:
|
|
1852
|
+
ref: r,
|
|
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__ */ n.jsx(C, { as: "small", color: "gray", ellipsis: !0, clamp: 1, children: e })
|
|
1881
1855
|
}
|
|
1882
1856
|
)
|
|
1883
|
-
),
|
|
1857
|
+
), yt = g(
|
|
1884
1858
|
({
|
|
1885
1859
|
size: e = "md",
|
|
1886
|
-
shape:
|
|
1860
|
+
shape: r = "rounded",
|
|
1887
1861
|
avatar: a,
|
|
1888
1862
|
title: s,
|
|
1889
1863
|
subtitle: t,
|
|
@@ -1891,56 +1865,46 @@ 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__ */ n.jsx(
|
|
1897
1871
|
d,
|
|
1898
1872
|
{
|
|
1899
1873
|
ref: x,
|
|
1900
|
-
className:
|
|
1901
|
-
|
|
1902
|
-
|
|
1874
|
+
className: u(
|
|
1875
|
+
pt({ size: e, shape: r, 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__ */ 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 }) })
|
|
1879
|
+
...h,
|
|
1880
|
+
children: /* @__PURE__ */ n.jsxs("div", { className: "flex items-start gap-3 @sm/card:gap-4 w-full", children: [
|
|
1881
|
+
a && /* @__PURE__ */ n.jsx("div", { className: "flex-shrink-0", children: a }),
|
|
1882
|
+
/* @__PURE__ */ n.jsxs("div", { className: "w-full min-w-0", children: [
|
|
1883
|
+
/* @__PURE__ */ n.jsx("div", { className: "mb-2", children: /* @__PURE__ */ n.jsx("div", { className: "flex items-start justify-between gap-2", children: /* @__PURE__ */ n.jsxs("div", { className: "flex-1 min-w-0", children: [
|
|
1884
|
+
/* @__PURE__ */ n.jsx(L, { as: "h6", className: "break-words leading-tight", children: s }),
|
|
1885
|
+
t && /* @__PURE__ */ n.jsx("div", { className: "mt-1", children: typeof t == "string" ? /* @__PURE__ */ n.jsx(C, { as: "small", color: "gray", children: t }) : /* @__PURE__ */ n.jsx("div", { className: "min-w-0 overflow-hidden", children: t }) })
|
|
1921
1886
|
] }) }) }),
|
|
1922
|
-
/* @__PURE__ */
|
|
1923
|
-
o && /* @__PURE__ */
|
|
1924
|
-
i && /* @__PURE__ */
|
|
1925
|
-
|
|
1887
|
+
/* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-2 @sm/card:flex-row @sm/card:justify-between @sm/card:items-center", children: [
|
|
1888
|
+
o && /* @__PURE__ */ n.jsx("div", { className: "order-1 @sm/card:order-none overflow-hidden", children: o }),
|
|
1889
|
+
i && /* @__PURE__ */ n.jsx("div", { className: "flex-shrink-0 order-2 @sm/card:order-none @sm/card:ml-auto", children: typeof i == "string" ? /* @__PURE__ */ n.jsx(
|
|
1890
|
+
C,
|
|
1926
1891
|
{
|
|
1927
|
-
as: "
|
|
1928
|
-
fontSize: "sm",
|
|
1892
|
+
as: "small",
|
|
1929
1893
|
color: "gray",
|
|
1930
1894
|
className: "truncate",
|
|
1931
1895
|
align: "right",
|
|
1932
1896
|
children: i
|
|
1933
1897
|
}
|
|
1934
|
-
) : /* @__PURE__ */
|
|
1898
|
+
) : /* @__PURE__ */ n.jsx("div", { className: "overflow-hidden", children: i }) })
|
|
1935
1899
|
] })
|
|
1936
1900
|
] })
|
|
1937
1901
|
] })
|
|
1938
1902
|
}
|
|
1939
1903
|
)
|
|
1940
|
-
),
|
|
1941
|
-
List:
|
|
1942
|
-
ListItem:
|
|
1943
|
-
}),
|
|
1904
|
+
), sr = Object.assign(yt, {
|
|
1905
|
+
List: wt,
|
|
1906
|
+
ListItem: vt
|
|
1907
|
+
}), jt = f(
|
|
1944
1908
|
"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
1909
|
{
|
|
1946
1910
|
variants: {
|
|
@@ -1954,27 +1918,114 @@ const mt = g(
|
|
|
1954
1918
|
size: "md"
|
|
1955
1919
|
}
|
|
1956
1920
|
}
|
|
1957
|
-
),
|
|
1958
|
-
function({ className:
|
|
1959
|
-
return /* @__PURE__ */
|
|
1921
|
+
), or = _.forwardRef(
|
|
1922
|
+
function({ className: r, size: a = "md", disabled: s = !1, children: t, ...o }, i) {
|
|
1923
|
+
return /* @__PURE__ */ n.jsxs(
|
|
1960
1924
|
"button",
|
|
1961
1925
|
{
|
|
1962
1926
|
ref: i,
|
|
1963
1927
|
type: "button",
|
|
1964
|
-
className:
|
|
1928
|
+
className: u(jt({ size: a }), r),
|
|
1965
1929
|
disabled: s,
|
|
1966
1930
|
"aria-disabled": s,
|
|
1967
1931
|
"aria-label": `${t}, removable`,
|
|
1968
1932
|
inert: s ? !0 : void 0,
|
|
1969
1933
|
...o,
|
|
1970
1934
|
children: [
|
|
1971
|
-
/* @__PURE__ */
|
|
1972
|
-
/* @__PURE__ */
|
|
1935
|
+
/* @__PURE__ */ n.jsx("span", { className: "flex-shrink-0", children: t }),
|
|
1936
|
+
/* @__PURE__ */ n.jsx(N, { as: le, color: "inherit", size: a === "lg" ? "md" : "sm" })
|
|
1973
1937
|
]
|
|
1974
1938
|
}
|
|
1975
1939
|
);
|
|
1976
1940
|
}
|
|
1977
|
-
),
|
|
1941
|
+
), kt = [
|
|
1942
|
+
// Headings
|
|
1943
|
+
"[&_h1]:text-2xl",
|
|
1944
|
+
"[&_h1]:leading-loose",
|
|
1945
|
+
"[&_h1]:font-bold",
|
|
1946
|
+
"[&_h1]:my-2",
|
|
1947
|
+
"[&_h2]:text-2xl",
|
|
1948
|
+
"[&_h2]:leading-relaxed",
|
|
1949
|
+
"[&_h2]:font-semibold",
|
|
1950
|
+
"[&_h2]:my-2",
|
|
1951
|
+
"[&_h3]:text-2xl",
|
|
1952
|
+
"[&_h3]:leading-relaxed",
|
|
1953
|
+
"[&_h3]:font-medium",
|
|
1954
|
+
"[&_h3]:my-1.5",
|
|
1955
|
+
"[&_h4]:text-xl",
|
|
1956
|
+
"[&_h4]:leading-normal",
|
|
1957
|
+
"[&_h4]:font-bold",
|
|
1958
|
+
"[&_h4]:my-1.5",
|
|
1959
|
+
"[&_h5]:text-lg",
|
|
1960
|
+
"[&_h5]:leading-normal",
|
|
1961
|
+
"[&_h5]:font-semibold",
|
|
1962
|
+
"[&_h5]:my-1.5",
|
|
1963
|
+
"[&_h6]:text-base",
|
|
1964
|
+
"[&_h6]:leading-normal",
|
|
1965
|
+
"[&_h6]:font-medium",
|
|
1966
|
+
"[&_h6]:my-1",
|
|
1967
|
+
// Lists
|
|
1968
|
+
"[&_ul]:list-disc",
|
|
1969
|
+
"[&_ul]:ml-6",
|
|
1970
|
+
"[&_ul]:my-2",
|
|
1971
|
+
"[&_ul]:text-base",
|
|
1972
|
+
"[&_ul]:leading-normal",
|
|
1973
|
+
"[&_ol]:list-decimal",
|
|
1974
|
+
"[&_ol]:ml-6",
|
|
1975
|
+
"[&_ol]:my-2",
|
|
1976
|
+
"[&_ol]:text-base",
|
|
1977
|
+
"[&_ol]:leading-normal",
|
|
1978
|
+
"[&_li]:my-0.5",
|
|
1979
|
+
"[&_li]:text-base",
|
|
1980
|
+
"[&_li]:leading-normal",
|
|
1981
|
+
// Links
|
|
1982
|
+
"[&_a]:text-primary",
|
|
1983
|
+
"[&_a]:underline",
|
|
1984
|
+
"[&_a]:cursor-pointer",
|
|
1985
|
+
"hover:[&_a]:text-primary-bold",
|
|
1986
|
+
// Text formatting
|
|
1987
|
+
"[&_strong]:font-bold",
|
|
1988
|
+
"[&_em]:italic",
|
|
1989
|
+
"[&_u]:underline",
|
|
1990
|
+
"[&_s]:line-through",
|
|
1991
|
+
// Paragraphs
|
|
1992
|
+
"[&_p]:text-base",
|
|
1993
|
+
"[&_p]:leading-normal",
|
|
1994
|
+
"[&_p]:text-ghost",
|
|
1995
|
+
"[&_p]:my-2",
|
|
1996
|
+
"[&_p:first-child]:mt-0",
|
|
1997
|
+
"[&_p:last-child]:mb-0"
|
|
1998
|
+
], Nt = f(
|
|
1999
|
+
"block w-full break-words text-ghost text-base leading-normal",
|
|
2000
|
+
{
|
|
2001
|
+
variants: {
|
|
2002
|
+
scrollable: {
|
|
2003
|
+
true: "overflow-y-auto",
|
|
2004
|
+
false: "overflow-visible"
|
|
2005
|
+
}
|
|
2006
|
+
},
|
|
2007
|
+
defaultVariants: {
|
|
2008
|
+
scrollable: !1
|
|
2009
|
+
}
|
|
2010
|
+
}
|
|
2011
|
+
), Et = _.forwardRef(({ content: e, scrollable: r = !1, maxHeight: a, className: s, ...t }, o) => /* @__PURE__ */ n.jsx(
|
|
2012
|
+
"div",
|
|
2013
|
+
{
|
|
2014
|
+
ref: o,
|
|
2015
|
+
role: "article",
|
|
2016
|
+
"aria-label": "Formatted text content",
|
|
2017
|
+
dangerouslySetInnerHTML: { __html: e },
|
|
2018
|
+
style: r && a ? { maxHeight: `${a}rem` } : void 0,
|
|
2019
|
+
className: u(
|
|
2020
|
+
Nt({ scrollable: r }),
|
|
2021
|
+
...kt,
|
|
2022
|
+
s
|
|
2023
|
+
),
|
|
2024
|
+
...t
|
|
2025
|
+
}
|
|
2026
|
+
));
|
|
2027
|
+
Et.displayName = "FormattedText";
|
|
2028
|
+
const Ct = f("h-px w-full bg-border border-0", {
|
|
1978
2029
|
variants: {
|
|
1979
2030
|
hasMargin: {
|
|
1980
2031
|
true: "mb-4",
|
|
@@ -1984,16 +2035,16 @@ const mt = g(
|
|
|
1984
2035
|
defaultVariants: {
|
|
1985
2036
|
hasMargin: !1
|
|
1986
2037
|
}
|
|
1987
|
-
}),
|
|
1988
|
-
({ hasMargin: e = !1, className:
|
|
2038
|
+
}), ir = g(
|
|
2039
|
+
({ hasMargin: e = !1, className: r, ...a }, s) => /* @__PURE__ */ n.jsx(
|
|
1989
2040
|
"hr",
|
|
1990
2041
|
{
|
|
1991
2042
|
ref: s,
|
|
1992
|
-
className:
|
|
2043
|
+
className: u(Ct({ hasMargin: e }), r),
|
|
1993
2044
|
...a
|
|
1994
2045
|
}
|
|
1995
2046
|
)
|
|
1996
|
-
),
|
|
2047
|
+
), _t = f(
|
|
1997
2048
|
"flex flex-col items-center justify-center text-center border border-border rounded-lg bg-background",
|
|
1998
2049
|
{
|
|
1999
2050
|
variants: {
|
|
@@ -2012,32 +2063,32 @@ const mt = g(
|
|
|
2012
2063
|
hasGrayBackground: !1
|
|
2013
2064
|
}
|
|
2014
2065
|
}
|
|
2015
|
-
),
|
|
2066
|
+
), Vt = f(
|
|
2016
2067
|
"flex flex-row items-center gap-3 mb-2"
|
|
2017
|
-
),
|
|
2018
|
-
function({ icon:
|
|
2019
|
-
return /* @__PURE__ */
|
|
2068
|
+
), lr = _.forwardRef(
|
|
2069
|
+
function({ icon: r, title: a, subtitle: s, action: t, className: o, hasGrayBackground: i, ...l }, d) {
|
|
2070
|
+
return /* @__PURE__ */ n.jsxs(
|
|
2020
2071
|
"section",
|
|
2021
2072
|
{
|
|
2022
2073
|
ref: d,
|
|
2023
|
-
className:
|
|
2074
|
+
className: u(_t({ hasGrayBackground: i }), o),
|
|
2024
2075
|
role: "status",
|
|
2025
2076
|
"aria-label": "No results found",
|
|
2026
2077
|
...l,
|
|
2027
2078
|
children: [
|
|
2028
|
-
/* @__PURE__ */
|
|
2029
|
-
/* @__PURE__ */
|
|
2030
|
-
/* @__PURE__ */
|
|
2079
|
+
/* @__PURE__ */ n.jsxs("header", { className: Vt(), children: [
|
|
2080
|
+
/* @__PURE__ */ n.jsx(N, { as: r, size: "lg", color: "ghost", "aria-hidden": "true" }),
|
|
2081
|
+
/* @__PURE__ */ n.jsx(L, { as: "h5", color: "neutral", children: a })
|
|
2031
2082
|
] }),
|
|
2032
|
-
s && /* @__PURE__ */
|
|
2033
|
-
t && /* @__PURE__ */
|
|
2083
|
+
s && /* @__PURE__ */ n.jsx(C, { as: "p", align: "center", color: "gray", className: "mb-4", children: s }),
|
|
2084
|
+
t && /* @__PURE__ */ n.jsx("div", { role: "group", "aria-label": "Available actions", children: t })
|
|
2034
2085
|
]
|
|
2035
2086
|
}
|
|
2036
2087
|
);
|
|
2037
2088
|
}
|
|
2038
|
-
), Q = O(null),
|
|
2039
|
-
function
|
|
2040
|
-
const e =
|
|
2089
|
+
), Q = O(null), It = Q.Provider;
|
|
2090
|
+
function W() {
|
|
2091
|
+
const e = S(Q);
|
|
2041
2092
|
if (!e)
|
|
2042
2093
|
throw new Error("Table compound components must be used within <Table>");
|
|
2043
2094
|
return e;
|
|
@@ -2073,7 +2124,7 @@ const q = (e) => {
|
|
|
2073
2124
|
default:
|
|
2074
2125
|
return "grid-cols-2";
|
|
2075
2126
|
}
|
|
2076
|
-
},
|
|
2127
|
+
}, zt = (e) => {
|
|
2077
2128
|
if (e < 1 || e > 12)
|
|
2078
2129
|
throw new Error("Column span must be between 1 and 12");
|
|
2079
2130
|
switch (e) {
|
|
@@ -2104,62 +2155,62 @@ const q = (e) => {
|
|
|
2104
2155
|
default:
|
|
2105
2156
|
return "col-span-2";
|
|
2106
2157
|
}
|
|
2107
|
-
},
|
|
2108
|
-
({ children: e, className:
|
|
2109
|
-
const { columns: t } =
|
|
2110
|
-
return /* @__PURE__ */
|
|
2158
|
+
}, At = g(
|
|
2159
|
+
({ children: e, className: r, ...a }, s) => {
|
|
2160
|
+
const { columns: t } = W();
|
|
2161
|
+
return /* @__PURE__ */ n.jsx(
|
|
2111
2162
|
"div",
|
|
2112
2163
|
{
|
|
2113
2164
|
role: "rowgroup",
|
|
2114
|
-
className:
|
|
2165
|
+
className: u("bg-neutral-soft", r),
|
|
2115
2166
|
...a,
|
|
2116
2167
|
ref: s,
|
|
2117
|
-
children: /* @__PURE__ */
|
|
2168
|
+
children: /* @__PURE__ */ n.jsx(
|
|
2118
2169
|
"div",
|
|
2119
2170
|
{
|
|
2120
2171
|
role: "row",
|
|
2121
|
-
className:
|
|
2172
|
+
className: u("grid gap-4", q(t)),
|
|
2122
2173
|
children: e
|
|
2123
2174
|
}
|
|
2124
2175
|
)
|
|
2125
2176
|
}
|
|
2126
2177
|
);
|
|
2127
2178
|
}
|
|
2128
|
-
),
|
|
2129
|
-
({ children: e, className:
|
|
2130
|
-
),
|
|
2131
|
-
({ children: e, className:
|
|
2132
|
-
const { columns: t } =
|
|
2133
|
-
return /* @__PURE__ */
|
|
2179
|
+
), Lt = g(
|
|
2180
|
+
({ children: e, className: r, ...a }, s) => /* @__PURE__ */ n.jsx("div", { role: "rowgroup", ref: s, className: u(r), ...a, children: e })
|
|
2181
|
+
), Mt = g(
|
|
2182
|
+
({ children: e, className: r, ...a }, s) => {
|
|
2183
|
+
const { columns: t } = W();
|
|
2184
|
+
return /* @__PURE__ */ n.jsx(
|
|
2134
2185
|
"div",
|
|
2135
2186
|
{
|
|
2136
2187
|
role: "rowgroup",
|
|
2137
|
-
className:
|
|
2188
|
+
className: u("bg-neutral-soft", r),
|
|
2138
2189
|
...a,
|
|
2139
2190
|
ref: s,
|
|
2140
|
-
children: /* @__PURE__ */
|
|
2191
|
+
children: /* @__PURE__ */ n.jsx(
|
|
2141
2192
|
"div",
|
|
2142
2193
|
{
|
|
2143
2194
|
role: "row",
|
|
2144
|
-
className:
|
|
2195
|
+
className: u("grid gap-4", q(t)),
|
|
2145
2196
|
children: e
|
|
2146
2197
|
}
|
|
2147
2198
|
)
|
|
2148
2199
|
}
|
|
2149
2200
|
);
|
|
2150
2201
|
}
|
|
2151
|
-
),
|
|
2152
|
-
({ children: e, className:
|
|
2153
|
-
const { columns: t } =
|
|
2154
|
-
return /* @__PURE__ */
|
|
2202
|
+
), Rt = g(
|
|
2203
|
+
({ children: e, className: r, ...a }, s) => {
|
|
2204
|
+
const { columns: t } = W();
|
|
2205
|
+
return /* @__PURE__ */ n.jsx(
|
|
2155
2206
|
"div",
|
|
2156
2207
|
{
|
|
2157
2208
|
role: "row",
|
|
2158
|
-
className:
|
|
2209
|
+
className: u(
|
|
2159
2210
|
"grid gap-4",
|
|
2160
2211
|
q(t),
|
|
2161
2212
|
"border-b border-border last:border-0",
|
|
2162
|
-
|
|
2213
|
+
r
|
|
2163
2214
|
),
|
|
2164
2215
|
ref: s,
|
|
2165
2216
|
...a,
|
|
@@ -2167,19 +2218,19 @@ const q = (e) => {
|
|
|
2167
2218
|
}
|
|
2168
2219
|
);
|
|
2169
2220
|
}
|
|
2170
|
-
), Y =
|
|
2171
|
-
({ as: e = "td", span:
|
|
2221
|
+
), Y = g(
|
|
2222
|
+
({ as: e = "td", span: r, align: a = "left", children: s, className: t, ...o }, i) => {
|
|
2172
2223
|
const l = e === "th" ? "columnheader" : "cell";
|
|
2173
2224
|
let d = "text-left";
|
|
2174
|
-
return a === "center" ? d = "text-center" : a === "right" && (d = "text-right"), /* @__PURE__ */
|
|
2225
|
+
return a === "center" ? d = "text-center" : a === "right" && (d = "text-right"), /* @__PURE__ */ n.jsx(
|
|
2175
2226
|
"div",
|
|
2176
2227
|
{
|
|
2177
2228
|
ref: i,
|
|
2178
2229
|
role: l,
|
|
2179
|
-
className:
|
|
2230
|
+
className: u(
|
|
2180
2231
|
"px-4 py-2",
|
|
2181
2232
|
"[&:not(:last-child)]:border-r [&:not(:last-child)]:border-border",
|
|
2182
|
-
|
|
2233
|
+
zt(r),
|
|
2183
2234
|
d,
|
|
2184
2235
|
"truncate overflow-hidden whitespace-nowrap",
|
|
2185
2236
|
t
|
|
@@ -2189,58 +2240,58 @@ const q = (e) => {
|
|
|
2189
2240
|
}
|
|
2190
2241
|
);
|
|
2191
2242
|
}
|
|
2192
|
-
),
|
|
2193
|
-
(e,
|
|
2243
|
+
), Tt = g(
|
|
2244
|
+
(e, r) => /* @__PURE__ */ n.jsx(
|
|
2194
2245
|
Y,
|
|
2195
2246
|
{
|
|
2196
2247
|
...e,
|
|
2197
2248
|
as: "td",
|
|
2198
|
-
ref:
|
|
2199
|
-
className:
|
|
2249
|
+
ref: r,
|
|
2250
|
+
className: u(
|
|
2200
2251
|
"truncate overflow-hidden whitespace-nowrap",
|
|
2201
2252
|
e.className
|
|
2202
2253
|
)
|
|
2203
2254
|
}
|
|
2204
2255
|
)
|
|
2205
|
-
),
|
|
2206
|
-
(e,
|
|
2256
|
+
), Ot = g(
|
|
2257
|
+
(e, r) => /* @__PURE__ */ n.jsx(
|
|
2207
2258
|
Y,
|
|
2208
2259
|
{
|
|
2209
2260
|
...e,
|
|
2210
2261
|
as: "th",
|
|
2211
|
-
ref:
|
|
2212
|
-
className:
|
|
2262
|
+
ref: r,
|
|
2263
|
+
className: u(
|
|
2213
2264
|
"truncate overflow-hidden whitespace-nowrap",
|
|
2214
2265
|
e.className
|
|
2215
2266
|
)
|
|
2216
2267
|
}
|
|
2217
2268
|
)
|
|
2218
|
-
),
|
|
2219
|
-
({ children: e, className:
|
|
2269
|
+
), St = g(
|
|
2270
|
+
({ children: e, className: r, columns: a = 12, ...s }, t) => /* @__PURE__ */ n.jsx(It, { value: { columns: a }, children: /* @__PURE__ */ n.jsx(
|
|
2220
2271
|
"div",
|
|
2221
2272
|
{
|
|
2222
2273
|
ref: t,
|
|
2223
2274
|
role: "table",
|
|
2224
|
-
className:
|
|
2275
|
+
className: u(
|
|
2225
2276
|
// Versaur design system: border, background, shadow, rounded, spacing
|
|
2226
2277
|
"w-full overflow-x-auto border border-border bg-background rounded-lg ",
|
|
2227
2278
|
"text-foreground",
|
|
2228
2279
|
"sm:rounded-xl",
|
|
2229
2280
|
"transition-colors",
|
|
2230
|
-
|
|
2281
|
+
r
|
|
2231
2282
|
),
|
|
2232
2283
|
...s,
|
|
2233
2284
|
children: e
|
|
2234
2285
|
}
|
|
2235
2286
|
) })
|
|
2236
|
-
),
|
|
2237
|
-
Header:
|
|
2238
|
-
HeaderItem:
|
|
2239
|
-
Body:
|
|
2240
|
-
Footer:
|
|
2241
|
-
Row:
|
|
2242
|
-
RowItem:
|
|
2243
|
-
}),
|
|
2287
|
+
), cr = Object.assign(St, {
|
|
2288
|
+
Header: At,
|
|
2289
|
+
HeaderItem: Ot,
|
|
2290
|
+
Body: Lt,
|
|
2291
|
+
Footer: Mt,
|
|
2292
|
+
Row: Rt,
|
|
2293
|
+
RowItem: Tt
|
|
2294
|
+
}), Bt = f(
|
|
2244
2295
|
// Base classes
|
|
2245
2296
|
"block transition-colors duration-200",
|
|
2246
2297
|
{
|
|
@@ -2248,14 +2299,14 @@ const q = (e) => {
|
|
|
2248
2299
|
variant: {
|
|
2249
2300
|
white: "bg-white border border-border",
|
|
2250
2301
|
neutral: "bg-neutral border border-gray-200",
|
|
2251
|
-
primary: "bg-primary
|
|
2252
|
-
secondary: "bg-secondary
|
|
2253
|
-
tertiary: "bg-tertiary
|
|
2302
|
+
primary: "bg-primary border border-primary",
|
|
2303
|
+
secondary: "bg-secondary border border-secondary",
|
|
2304
|
+
tertiary: "bg-tertiary border border-tertiary",
|
|
2254
2305
|
ghost: "bg-transparent border border-ghost",
|
|
2255
|
-
success: "bg-success
|
|
2256
|
-
info: "bg-info
|
|
2257
|
-
warning: "bg-warning
|
|
2258
|
-
danger: "bg-danger
|
|
2306
|
+
success: "bg-success border border-success",
|
|
2307
|
+
info: "bg-info border border-info",
|
|
2308
|
+
warning: "bg-warning border border-warning",
|
|
2309
|
+
danger: "bg-danger border border-danger"
|
|
2259
2310
|
},
|
|
2260
2311
|
size: {
|
|
2261
2312
|
xs: "p-2",
|
|
@@ -2275,23 +2326,30 @@ const q = (e) => {
|
|
|
2275
2326
|
shape: "rounded"
|
|
2276
2327
|
}
|
|
2277
2328
|
}
|
|
2278
|
-
),
|
|
2279
|
-
({
|
|
2280
|
-
"div",
|
|
2329
|
+
), dr = g(
|
|
2330
|
+
({
|
|
2331
|
+
as: e = "div",
|
|
2332
|
+
variant: r = "white",
|
|
2333
|
+
size: a = "md",
|
|
2334
|
+
shape: s = "rounded",
|
|
2335
|
+
className: t,
|
|
2336
|
+
...o
|
|
2337
|
+
}, i) => /* @__PURE__ */ n.jsx(
|
|
2338
|
+
e,
|
|
2281
2339
|
{
|
|
2282
|
-
ref:
|
|
2283
|
-
className:
|
|
2284
|
-
...
|
|
2340
|
+
ref: i,
|
|
2341
|
+
className: u(Bt({ variant: r, size: a, shape: s }), t),
|
|
2342
|
+
...o
|
|
2285
2343
|
}
|
|
2286
2344
|
)
|
|
2287
2345
|
);
|
|
2288
|
-
function
|
|
2289
|
-
const [
|
|
2346
|
+
function Wt({ src: e }) {
|
|
2347
|
+
const [r, a] = j(!1), [s, t] = j(!1), o = B(!1), i = () => {
|
|
2290
2348
|
a(!0);
|
|
2291
2349
|
}, l = () => {
|
|
2292
2350
|
t(!0);
|
|
2293
2351
|
};
|
|
2294
|
-
return
|
|
2352
|
+
return E(() => {
|
|
2295
2353
|
if (!e) return;
|
|
2296
2354
|
const d = new Image();
|
|
2297
2355
|
return d.src = e, d.onload = () => {
|
|
@@ -2302,13 +2360,13 @@ function Rt({ src: e }) {
|
|
|
2302
2360
|
o.current = !0;
|
|
2303
2361
|
};
|
|
2304
2362
|
}, [e]), {
|
|
2305
|
-
loaded:
|
|
2363
|
+
loaded: r,
|
|
2306
2364
|
errored: s,
|
|
2307
2365
|
handleLoad: i,
|
|
2308
2366
|
handleError: l
|
|
2309
2367
|
};
|
|
2310
2368
|
}
|
|
2311
|
-
const
|
|
2369
|
+
const qt = f("block object-cover", {
|
|
2312
2370
|
variants: {
|
|
2313
2371
|
position: {
|
|
2314
2372
|
cover: "object-cover",
|
|
@@ -2338,7 +2396,7 @@ const Ot = g("block object-cover", {
|
|
|
2338
2396
|
size: "auto",
|
|
2339
2397
|
shape: "rectangle"
|
|
2340
2398
|
}
|
|
2341
|
-
}), Z =
|
|
2399
|
+
}), Z = f(
|
|
2342
2400
|
"flex items-center justify-center bg-neutral-soft text-ghost border border-border",
|
|
2343
2401
|
{
|
|
2344
2402
|
variants: {
|
|
@@ -2361,39 +2419,39 @@ const Ot = g("block object-cover", {
|
|
|
2361
2419
|
}
|
|
2362
2420
|
}
|
|
2363
2421
|
);
|
|
2364
|
-
function
|
|
2422
|
+
function Pt({
|
|
2365
2423
|
className: e,
|
|
2366
|
-
shape:
|
|
2424
|
+
shape: r,
|
|
2367
2425
|
size: a,
|
|
2368
2426
|
height: s,
|
|
2369
2427
|
width: t
|
|
2370
2428
|
}) {
|
|
2371
|
-
return /* @__PURE__ */
|
|
2429
|
+
return /* @__PURE__ */ n.jsx(
|
|
2372
2430
|
de,
|
|
2373
2431
|
{
|
|
2374
|
-
className:
|
|
2432
|
+
className: u(Z({ shape: r, size: a }), e),
|
|
2375
2433
|
style: { height: s, width: t }
|
|
2376
2434
|
}
|
|
2377
2435
|
);
|
|
2378
2436
|
}
|
|
2379
|
-
function
|
|
2437
|
+
function Ht({
|
|
2380
2438
|
alt: e,
|
|
2381
|
-
width:
|
|
2439
|
+
width: r,
|
|
2382
2440
|
height: a,
|
|
2383
2441
|
className: s,
|
|
2384
2442
|
style: t,
|
|
2385
2443
|
shape: o,
|
|
2386
2444
|
size: i
|
|
2387
2445
|
}) {
|
|
2388
|
-
return /* @__PURE__ */
|
|
2446
|
+
return /* @__PURE__ */ n.jsxs(
|
|
2389
2447
|
"div",
|
|
2390
2448
|
{
|
|
2391
2449
|
className: Z({ shape: o, size: i, className: s }),
|
|
2392
|
-
style: { width:
|
|
2450
|
+
style: { width: r, height: a, ...t },
|
|
2393
2451
|
"aria-label": e,
|
|
2394
2452
|
role: "img",
|
|
2395
2453
|
children: [
|
|
2396
|
-
/* @__PURE__ */
|
|
2454
|
+
/* @__PURE__ */ n.jsx(
|
|
2397
2455
|
ce,
|
|
2398
2456
|
{
|
|
2399
2457
|
size: 32,
|
|
@@ -2401,15 +2459,15 @@ function Bt({
|
|
|
2401
2459
|
"aria-hidden": "true"
|
|
2402
2460
|
}
|
|
2403
2461
|
),
|
|
2404
|
-
/* @__PURE__ */
|
|
2462
|
+
/* @__PURE__ */ n.jsx("span", { style: { opacity: 0.7 }, children: e })
|
|
2405
2463
|
]
|
|
2406
2464
|
}
|
|
2407
2465
|
);
|
|
2408
2466
|
}
|
|
2409
|
-
const P =
|
|
2467
|
+
const P = g(
|
|
2410
2468
|
({
|
|
2411
2469
|
src: e,
|
|
2412
|
-
alt:
|
|
2470
|
+
alt: r,
|
|
2413
2471
|
onLoad: a,
|
|
2414
2472
|
onError: s,
|
|
2415
2473
|
width: t,
|
|
@@ -2417,84 +2475,86 @@ const P = h(
|
|
|
2417
2475
|
loading: i = "lazy",
|
|
2418
2476
|
position: l = "cover",
|
|
2419
2477
|
size: d = "auto",
|
|
2420
|
-
shape:
|
|
2421
|
-
className:
|
|
2478
|
+
shape: m,
|
|
2479
|
+
className: h,
|
|
2422
2480
|
...x
|
|
2423
|
-
},
|
|
2424
|
-
const { loaded:
|
|
2481
|
+
}, p) => {
|
|
2482
|
+
const { loaded: b, errored: w, handleLoad: v, handleError: k } = Wt({
|
|
2425
2483
|
src: e
|
|
2426
2484
|
}), y = typeof t == "number" ? t : Number(t), I = typeof o == "number" ? o : Number(o);
|
|
2427
|
-
return !
|
|
2428
|
-
|
|
2485
|
+
return !b && !w ? /* @__PURE__ */ n.jsx(
|
|
2486
|
+
Pt,
|
|
2429
2487
|
{
|
|
2430
|
-
shape:
|
|
2488
|
+
shape: m,
|
|
2431
2489
|
width: y,
|
|
2432
2490
|
height: I
|
|
2433
2491
|
}
|
|
2434
|
-
) : w ? /* @__PURE__ */
|
|
2435
|
-
|
|
2492
|
+
) : w ? /* @__PURE__ */ n.jsx(
|
|
2493
|
+
Ht,
|
|
2436
2494
|
{
|
|
2437
|
-
shape:
|
|
2438
|
-
alt:
|
|
2495
|
+
shape: m,
|
|
2496
|
+
alt: r,
|
|
2439
2497
|
width: y,
|
|
2440
2498
|
height: I
|
|
2441
2499
|
}
|
|
2442
|
-
) : /* @__PURE__ */
|
|
2500
|
+
) : /* @__PURE__ */ n.jsx(
|
|
2443
2501
|
"img",
|
|
2444
2502
|
{
|
|
2445
|
-
ref:
|
|
2503
|
+
ref: p,
|
|
2446
2504
|
src: e,
|
|
2447
|
-
alt:
|
|
2505
|
+
alt: r,
|
|
2448
2506
|
width: y,
|
|
2449
2507
|
height: I,
|
|
2450
2508
|
loading: i,
|
|
2451
|
-
className:
|
|
2452
|
-
|
|
2509
|
+
className: u(
|
|
2510
|
+
qt({
|
|
2453
2511
|
position: l,
|
|
2454
2512
|
size: d,
|
|
2455
|
-
shape:
|
|
2513
|
+
shape: m
|
|
2456
2514
|
}),
|
|
2457
|
-
|
|
2515
|
+
h
|
|
2458
2516
|
),
|
|
2459
|
-
onLoad: (
|
|
2460
|
-
v(), a?.(
|
|
2517
|
+
onLoad: (z) => {
|
|
2518
|
+
v(), a?.(z);
|
|
2461
2519
|
},
|
|
2462
|
-
onError: (
|
|
2463
|
-
|
|
2520
|
+
onError: (z) => {
|
|
2521
|
+
k(), s?.(z);
|
|
2464
2522
|
},
|
|
2465
2523
|
...x
|
|
2466
2524
|
}
|
|
2467
2525
|
);
|
|
2468
2526
|
}
|
|
2469
|
-
),
|
|
2527
|
+
), ur = g((e, r) => /* @__PURE__ */ n.jsx(P, { ref: r, ...e, shape: "circle" })), mr = g((e, r) => /* @__PURE__ */ n.jsx(P, { ref: r, ...e, shape: "square" })), hr = g((e, r) => /* @__PURE__ */ n.jsx(P, { ref: r, ...e, shape: "rectangle" }));
|
|
2470
2528
|
export {
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2529
|
+
Ut as A,
|
|
2530
|
+
er as B,
|
|
2531
|
+
sr as C,
|
|
2532
|
+
or as F,
|
|
2533
|
+
L as H,
|
|
2534
|
+
N as I,
|
|
2535
|
+
V as M,
|
|
2536
|
+
lr as N,
|
|
2537
|
+
cr as T,
|
|
2538
|
+
Jt as a,
|
|
2539
|
+
Kt as b,
|
|
2540
|
+
Qt as c,
|
|
2541
|
+
We as d,
|
|
2542
|
+
Yt as e,
|
|
2543
|
+
Zt as f,
|
|
2544
|
+
tr as g,
|
|
2487
2545
|
J as h,
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2546
|
+
rr as i,
|
|
2547
|
+
nr as j,
|
|
2548
|
+
ar as k,
|
|
2549
|
+
xt as l,
|
|
2550
|
+
Et as m,
|
|
2551
|
+
kt as n,
|
|
2552
|
+
ir as o,
|
|
2553
|
+
C as p,
|
|
2554
|
+
dr as q,
|
|
2555
|
+
ur as r,
|
|
2556
|
+
mr as s,
|
|
2557
|
+
hr as t,
|
|
2558
|
+
P as u,
|
|
2559
|
+
Ne as v
|
|
2500
2560
|
};
|