@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.
@@ -1,13 +1,13 @@
1
- import { j as n } from "./jsx-runtime-C5mzlN2N.js";
1
+ import { j as r } from "./jsx-runtime-C5mzlN2N.js";
2
2
  import * as c from "react";
3
- import z, { createContext as R, useContext as O, forwardRef as h, useState as k, useRef as T, useCallback as L, useEffect as C, useId as re, cloneElement as ne } from "react";
4
- import { ChevronDown as ae, ChevronRight as se, LoaderCircleIcon as H, CheckIcon as oe, EllipsisVerticalIcon as ie, XIcon as le, ImageOff as ce } from "lucide-react";
5
- import { c as g, a as f } from "./index-BDtz_hQY.js";
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 F = R(
7
+ const G = O(
8
8
  null
9
9
  ), $ = () => {
10
- const e = O(F);
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
- ), fe = g(
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
- ), me = g(
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
- ), he = g("p-4 pt-0"), ge = g("transition-transform duration-200", {
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
- hasUnderline: {
88
- true: "underline",
89
- false: ""
87
+ transform: {
88
+ none: "normal-case",
89
+ capitalize: "capitalize",
90
+ uppercase: "uppercase",
91
+ lowercase: "lowercase"
90
92
  },
91
- isCapitalize: {
92
- true: "capitalize",
93
- false: ""
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
- ellipsis: {
118
- true: "truncate",
119
- false: ""
120
- },
121
- level: {
122
- 1: "font-bold text-2xl leading-loose",
123
- 2: "font-semibold text-xl leading-relaxed",
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
- hasUnderline: !1,
133
- isCapitalize: !1,
128
+ transform: "none",
129
+ decoration: "none",
134
130
  hasMargin: !1,
135
131
  align: "left",
136
- italic: !1,
137
132
  clamp: "none",
138
- ellipsis: !1,
139
- level: 1
133
+ as: "h1"
140
134
  }
141
- }), G = h(
135
+ }), L = f(
142
136
  ({
143
- level: e = 3,
144
- color: r = "black",
145
- hasUnderline: a = !1,
146
- isCapitalize: s = !1,
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
- italic: i = !1,
150
- clamp: l = "none",
151
- ellipsis: d = !1,
152
- className: u,
143
+ clamp: i = "none",
144
+ ellipsis: l = !1,
145
+ className: d,
153
146
  children: m,
154
- ...x
155
- }, p) => {
156
- const b = `h${e}`;
157
- return /* @__PURE__ */ n.jsx(
158
- b,
159
- {
160
- ref: p,
161
- className: f(
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: r,
164
- hasUnderline: a,
165
- isCapitalize: s,
156
+ color: n,
157
+ transform: a,
158
+ decoration: s,
166
159
  hasMargin: t,
167
160
  align: o,
168
- italic: i,
169
- clamp: l,
170
- ellipsis: d,
171
- level: e
161
+ clamp: i,
162
+ as: p
172
163
  }),
173
- u
164
+ b,
165
+ d
174
166
  ),
175
- ...x,
167
+ ...h,
176
168
  children: m
177
169
  }
178
170
  );
179
171
  }
180
172
  );
181
- G.displayName = "Heading";
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
- }), E = z.forwardRef(function({ as: r, color: a = "primary", size: s = "md", className: t, ...o }, i) {
213
- return /* @__PURE__ */ n.jsx(
214
- r,
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 = h(function({ className: r, children: a, ...s }, t) {
222
- return /* @__PURE__ */ n.jsx(
223
- G,
213
+ }), pe = f(function({ className: n, children: a, ...s }, t) {
214
+ return /* @__PURE__ */ r.jsx(
215
+ L,
224
216
  {
225
217
  ref: t,
226
- level: 4,
227
- className: f("font-medium", r),
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
- }), we = h(function({ className: r, children: a, ...s }, t) {
225
+ }), ve = f(function({ className: n, children: a, ...s }, t) {
234
226
  const { isOpen: o } = $();
235
- return /* @__PURE__ */ n.jsx(
227
+ return /* @__PURE__ */ r.jsx(
236
228
  "div",
237
229
  {
238
230
  ref: t,
239
- className: f(me({ isOpen: o }), r),
231
+ className: u(he({ isOpen: o }), n),
240
232
  ...s,
241
- children: /* @__PURE__ */ n.jsx("div", { className: he(), children: a })
233
+ children: /* @__PURE__ */ r.jsx("div", { className: fe(), children: a })
242
234
  }
243
235
  );
244
- }), U = h(function({ as: r, ...a }, s) {
236
+ }), D = f(function({ as: n, ...a }, s) {
245
237
  const { isOpen: t } = $();
246
- return /* @__PURE__ */ n.jsx(
247
- E,
238
+ return /* @__PURE__ */ r.jsx(
239
+ k,
248
240
  {
249
241
  ref: s,
250
- as: r,
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
- }), ve = h(
249
+ }), we = f(
258
250
  function({
259
- title: r,
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
- }, u) {
268
- const [m, x] = k(s), p = () => {
269
- t || x((w) => !w);
259
+ }, m) {
260
+ const [h, x] = j(s), p = () => {
261
+ t || x((v) => !v);
270
262
  }, b = {
271
- isOpen: m,
263
+ isOpen: h,
272
264
  toggle: p,
273
265
  disabled: t
274
266
  };
275
- return /* @__PURE__ */ n.jsx(F.Provider, { value: b, children: /* @__PURE__ */ n.jsxs(
267
+ return /* @__PURE__ */ r.jsx(G.Provider, { value: b, children: /* @__PURE__ */ r.jsxs(
276
268
  "div",
277
269
  {
278
- ref: u,
279
- className: f(
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__ */ n.jsx(
278
+ /* @__PURE__ */ r.jsx(
287
279
  "div",
288
280
  {
289
281
  role: "button",
290
- className: fe({ disabled: t, isOpen: m }),
282
+ className: me({ disabled: t, isOpen: h }),
291
283
  onClick: p,
292
284
  "aria-disabled": t,
293
- "aria-expanded": m,
294
- children: /* @__PURE__ */ n.jsxs("div", { className: "flex items-center justify-between w-full gap-2", children: [
295
- /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-3 flex-grow", children: [
296
- /* @__PURE__ */ n.jsx("div", { className: "flex-1", children: r }),
297
- a && /* @__PURE__ */ n.jsx("div", { className: "flex-shrink-0", children: a })
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__ */ n.jsx(U, { as: ae })
291
+ /* @__PURE__ */ r.jsx(D, { as: ae })
300
292
  ] })
301
293
  }
302
294
  ),
303
- /* @__PURE__ */ n.jsx(
295
+ /* @__PURE__ */ r.jsx(
304
296
  "div",
305
297
  {
306
- className: f(
298
+ className: u(
307
299
  "overflow-hidden transition-all duration-300",
308
- m ? "max-h-screen opacity-100" : "max-h-0 opacity-0"
300
+ h ? "max-h-screen opacity-100" : "max-h-0 opacity-0"
309
301
  ),
310
- children: /* @__PURE__ */ n.jsx("div", { className: "p-4 pt-2", children: l })
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(ve, {
309
+ ), Ut = Object.assign(we, {
318
310
  Title: pe,
319
- Content: we,
320
- Icon: U
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, r, a = "bottom", s = 8) {
344
- const t = e.getBoundingClientRect(), o = r.getBoundingClientRect();
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, u = window.innerHeight, m = 8;
389
- return l + o.width > d - m && (l = d - o.width - m), l < m && (l = m), i + o.height > u - m && (a.startsWith("bottom") ? i = t.top - o.height - s : i < m && (i = m)), i < m && (a.startsWith("top") ? i = t.bottom + s : i = m), {
390
- top: `${Math.max(m, i)}px`,
391
- left: `${Math.max(m, l)}px`,
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, r, a, s) {
396
- const t = T(null), [o, i] = k(!1), l = r !== void 0, d = l ? r : o, u = L(() => {
387
+ function Ne(e, n, a, s) {
388
+ const t = B(null), [o, i] = j(!1), l = n !== void 0, d = l ? n : o, m = A(() => {
397
389
  t.current && t.current.showPopover?.();
398
- }, []), m = L(() => {
390
+ }, []), h = A(() => {
399
391
  t.current && t.current.hidePopover?.();
400
- }, []), x = L(() => {
392
+ }, []), x = A(() => {
401
393
  t.current && t.current.togglePopover?.();
402
- }, []), p = L(
394
+ }, []), p = A(
403
395
  (b = "toggle") => ({
404
396
  popoverTarget: e,
405
397
  popoverTargetAction: b
406
398
  }),
407
399
  [e]
408
400
  );
409
- return C(() => {
401
+ return E(() => {
410
402
  const b = t.current;
411
403
  if (!b) return;
412
- const w = (v) => {
413
- const y = v.newState === "open";
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", w), () => {
417
- b.removeEventListener("toggle", w);
408
+ return b.addEventListener("toggle", v), () => {
409
+ b.removeEventListener("toggle", v);
418
410
  };
419
- }, [l, a, s]), C(() => {
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 w = !1;
415
+ let v = !1;
424
416
  try {
425
- w = b.matches(":popover-open");
417
+ v = b.matches(":popover-open");
426
418
  } catch {
427
419
  }
428
- r && !w ? u() : !r && w && m();
429
- }, [r, l, u, m]), {
420
+ n && !v ? m() : !n && v && h();
421
+ }, [n, l, m, h]), {
430
422
  getTriggerProps: p,
431
- show: u,
432
- hide: m,
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) => (r) => {
430
+ const ke = (...e) => (n) => {
439
431
  e.forEach((a) => {
440
- typeof a == "function" ? a(r) : a && "current" in a && (a.current = r);
432
+ typeof a == "function" ? a(n) : a && "current" in a && (a.current = n);
441
433
  });
442
- }, D = h(
434
+ }, X = f(
443
435
  ({
444
436
  id: e,
445
- children: r,
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: u = 8,
454
- maxWidth: m = "sm",
445
+ gap: m = 8,
446
+ maxWidth: h = "sm",
455
447
  className: x,
456
448
  style: p,
457
449
  ...b
458
- }, w) => {
459
- const { popoverRef: v, isOpen: N } = ke(
450
+ }, v) => {
451
+ const { popoverRef: w, isOpen: N } = Ne(
460
452
  e,
461
453
  a,
462
454
  s,
463
455
  t
464
- ), [y, I] = k(
456
+ ), [y, I] = j(
465
457
  {}
466
- ), [A, S] = k(!1);
467
- C(() => {
468
- if (!d?.current || !v.current)
458
+ ), [z, R] = j(!1);
459
+ E(() => {
460
+ if (!d?.current || !w.current)
469
461
  return;
470
- const _ = () => {
471
- if (!d.current || !v.current) return;
462
+ const T = () => {
463
+ if (!d.current || !w.current) return;
472
464
  const te = je(
473
465
  d.current,
474
- v.current,
466
+ w.current,
475
467
  l,
476
- u
468
+ m
477
469
  );
478
470
  I(te);
479
471
  };
480
- N ? (S(!1), requestAnimationFrame(() => {
472
+ N ? (R(!1), requestAnimationFrame(() => {
481
473
  requestAnimationFrame(() => {
482
- _(), requestAnimationFrame(() => {
483
- S(!0);
474
+ T(), requestAnimationFrame(() => {
475
+ R(!0);
484
476
  });
485
477
  });
486
- })) : (S(!1), _());
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, v, l, u, N]);
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
- ...A ? {} : {
490
+ ...z ? {} : {
499
491
  opacity: 0,
500
492
  pointerEvents: "none",
501
493
  transition: "none"
502
494
  }
503
495
  };
504
- return /* @__PURE__ */ n.jsx(
496
+ return /* @__PURE__ */ r.jsx(
505
497
  "div",
506
498
  {
507
499
  ...b,
508
- ref: Ne(w, v),
500
+ ref: ke(v, w),
509
501
  id: e,
510
502
  popover: i,
511
- className: f(ye({ maxWidth: m }), x),
503
+ className: u(ye({ maxWidth: h }), x),
512
504
  style: ee,
513
505
  ...o && { anchor: o },
514
- children: r
506
+ children: n
515
507
  }
516
508
  );
517
509
  }
518
510
  );
519
- D.displayName = "Popover";
520
- const Ee = (e, r = "toggle") => ({
511
+ X.displayName = "Popover";
512
+ const Ee = (e, n = "toggle") => ({
521
513
  popoverTarget: e,
522
- popoverTargetAction: r
523
- }), Ce = Object.assign(D, {
514
+ popoverTargetAction: n
515
+ }), Ce = Object.assign(X, {
524
516
  getTriggerProps: Ee
525
- }), ze = g(
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
- ), Ae = g("", {
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
- hasUnderline: {
590
- true: "underline",
591
- false: ""
590
+ transform: {
591
+ none: "normal-case",
592
+ capitalize: "capitalize",
593
+ uppercase: "uppercase",
594
+ lowercase: "lowercase"
592
595
  },
593
- isCapitalize: {
594
- true: "capitalize",
595
- false: ""
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
- hasUnderline: !1,
634
- isCapitalize: !1,
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
- }), j = h(
640
+ }), C = f(
642
641
  ({
643
642
  as: e = "span",
644
- color: r = "ghost",
645
- hasUnderline: a = !1,
646
- isCapitalize: s = !1,
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
- fontSize: d,
652
- fontWeight: u,
650
+ fontWeight: d,
653
651
  className: m,
654
- children: x,
655
- ...p
656
- }, b) => {
657
- const v = [
658
- "h1",
659
- "h2",
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: b,
672
- className: f(
673
- Ae({
674
- color: r,
675
- hasUnderline: a,
676
- isCapitalize: s,
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
- ellipsis: l,
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
- ...p,
689
- children: x
674
+ ...x,
675
+ children: h
690
676
  }
691
677
  );
692
678
  }
693
- ), Le = h(
694
- ({ children: e, className: r }, a) => /* @__PURE__ */ n.jsx(
679
+ ), Me = f(
680
+ ({ children: e, className: n }, a) => /* @__PURE__ */ r.jsx(
695
681
  "div",
696
682
  {
697
683
  ref: a,
698
- className: f(
684
+ className: u(
699
685
  "bg-background border border-border rounded-lg overflow-hidden",
700
686
  "divide-y divide-border",
701
- r
687
+ n
702
688
  ),
703
689
  role: "group",
704
690
  children: e
705
691
  }
706
692
  )
707
- ), Me = h(
693
+ ), Re = f(
708
694
  ({
709
695
  size: e = "md",
710
- icon: r,
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
- }, u) => /* @__PURE__ */ n.jsxs(
704
+ }, m) => /* @__PURE__ */ r.jsxs(
719
705
  i,
720
706
  {
721
- ref: u,
722
- className: f(ze({ size: e, as: i }), l),
707
+ ref: m,
708
+ className: u(_e({ size: e, as: i }), l),
723
709
  ...d,
724
710
  children: [
725
- /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-4 flex-1", children: [
726
- r && /* @__PURE__ */ n.jsx("div", { className: f(Ve({ size: e })), children: r }),
727
- /* @__PURE__ */ n.jsxs("div", { className: "flex-1", children: [
728
- /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-3 mb-1", children: [
729
- /* @__PURE__ */ n.jsx(
730
- j,
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__ */ n.jsx(
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__ */ n.jsx(
750
- j,
734
+ s && /* @__PURE__ */ r.jsx(
735
+ C,
751
736
  {
752
- as: "p",
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__ */ n.jsx("div", { className: "flex items-center gap-3", children: /* @__PURE__ */ n.jsx(
762
- E,
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: f(Ie({ size: e })),
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
- ), Dt = Object.assign(Me, {
774
- Group: Le
775
- }), Se = g(
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
- ), _e = g(
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
- ), X = h(
911
- ({ className: e, children: r, ...a }, s) => /* @__PURE__ */ n.jsx("div", { ref: s, className: f(_e(), e), ...a, children: r })
912
- ), Re = h(
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: r = "neutral",
899
+ color: n = "neutral",
916
900
  icon: a,
917
901
  className: s,
918
902
  children: t,
919
903
  ...o
920
- }, i) => /* @__PURE__ */ n.jsxs(
904
+ }, i) => /* @__PURE__ */ r.jsxs(
921
905
  "div",
922
906
  {
923
907
  ref: i,
924
908
  role: "alert",
925
- className: f(Se({ variant: e, color: r }), s),
909
+ className: u(Te({ variant: e, color: n }), s),
926
910
  ...o,
927
911
  children: [
928
- a && /* @__PURE__ */ n.jsx(X, { children: a }),
929
- /* @__PURE__ */ n.jsx("div", { className: "flex-1", children: t })
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
- ), Xt = Object.assign(Re, {
934
- Icon: X
935
- }), Oe = g(
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
- ), Jt = h(
976
+ ), Qt = f(
993
977
  ({
994
978
  children: e,
995
- className: r,
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__ */ n.jsx(
985
+ }, l) => /* @__PURE__ */ r.jsx(
1002
986
  "a",
1003
987
  {
1004
988
  ref: l,
1005
- className: f(
1006
- Oe({ color: a, fontSize: s, fontWeight: t, quiet: o }),
1007
- r
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
- ), Te = h(
1014
- function({ title: r, children: a, className: s, hasMargin: t, ...o }, i) {
1015
- return /* @__PURE__ */ n.jsxs(
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: f("space-y-1", s, t && "mb-4"),
1003
+ className: u("space-y-1", s, t && "mb-4"),
1020
1004
  ...o,
1021
1005
  children: [
1022
- /* @__PURE__ */ n.jsx(
1023
- j,
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 We(e = 1) {
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 Be(e = 4) {
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 qe = h(function({ children: r, className: a, span: s = 1, title: t, ...o }, i) {
1100
- const l = We(s);
1101
- return /* @__PURE__ */ n.jsx("li", { ref: i, className: f(l, a), ...o, children: /* @__PURE__ */ n.jsx(Te, { title: t, children: r }) });
1102
- }), Pe = h(
1103
- function({ children: r, className: a, columns: s = 4, ...t }, o) {
1104
- const i = Be(s);
1105
- return /* @__PURE__ */ n.jsx(
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: f("grid gap-4", i, a),
1083
+ className: u("grid gap-4", i, a),
1110
1084
  ...t,
1111
- children: r
1085
+ children: n
1112
1086
  }
1113
1087
  );
1114
1088
  }
1115
- ), Kt = Object.assign(Pe, {
1116
- Item: qe
1117
- }), He = g(
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
- ), Fe = g(
1131
+ ), $e = g(
1158
1132
  "absolute inset-0 h-full w-full object-cover"
1159
- ), $e = h(
1133
+ ), De = f(
1160
1134
  ({
1161
1135
  variant: e = "primary",
1162
- size: r = "md",
1136
+ size: n = "md",
1163
1137
  shape: a = "circle",
1164
1138
  className: s,
1165
1139
  children: t,
1166
1140
  ...o
1167
- }, i) => /* @__PURE__ */ n.jsx(
1141
+ }, i) => /* @__PURE__ */ r.jsx(
1168
1142
  "div",
1169
1143
  {
1170
1144
  ref: i,
1171
- className: f(He({ variant: e, size: r, shape: a }), s),
1145
+ className: u(Ge({ variant: e, size: n, shape: a }), s),
1172
1146
  ...o,
1173
1147
  children: t
1174
1148
  }
1175
1149
  )
1176
- ), Ge = h(
1177
- ({ src: e, alt: r, className: a, onError: s, ...t }, o) => {
1178
- const [i, l] = k(!1);
1179
- C(() => {
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 = L(
1183
- (u) => {
1184
- l(!0), s?.(u);
1156
+ const d = A(
1157
+ (m) => {
1158
+ l(!0), s?.(m);
1185
1159
  },
1186
1160
  [s]
1187
1161
  );
1188
- return i ? null : /* @__PURE__ */ n.jsx(
1162
+ return i ? null : /* @__PURE__ */ r.jsx(
1189
1163
  "img",
1190
1164
  {
1191
1165
  ref: o,
1192
1166
  src: e,
1193
- alt: r,
1194
- className: f(Fe(), a),
1167
+ alt: n,
1168
+ className: u($e(), a),
1195
1169
  onError: d,
1196
1170
  ...t
1197
1171
  }
1198
1172
  );
1199
1173
  }
1200
- ), Qt = Object.assign($e, {
1174
+ ), Zt = Object.assign(De, {
1201
1175
  /**
1202
1176
  * AvatarImage sub-component for displaying images with fallback behavior
1203
1177
  */
1204
- Image: Ge
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
- ), Yt = h(
1366
+ ), er = f(
1393
1367
  ({
1394
1368
  variant: e = "default",
1395
- shape: r = "square",
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
- }, u) => {
1377
+ }, m) => {
1404
1378
  const p = !(l != null && l !== "") && !!(t || o);
1405
- return /* @__PURE__ */ n.jsx(
1379
+ return /* @__PURE__ */ r.jsx(
1406
1380
  "span",
1407
1381
  {
1408
- ref: u,
1409
- className: f(
1382
+ ref: m,
1383
+ className: u(
1410
1384
  Ue({
1411
1385
  variant: e,
1412
1386
  color: a,
1413
- shape: r,
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__ */ n.jsxs(n.Fragment, { children: [
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
- ), P = (e) => /* @__PURE__ */ c.createElement("svg", { width: 32, height: 32, viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ c.createElement("title", null, "Spenicle"), /* @__PURE__ */ c.createElement("rect", { width: 32, height: 32, fill: "#e07a5f" }), /* @__PURE__ */ c.createElement("g", { transform: "translate(16, 16) scale(0.625) translate(-12, -12)" }, /* @__PURE__ */ c.createElement("path", { d: "M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z", fill: "white" }))), De = (e) => /* @__PURE__ */ c.createElement("svg", { width: 32, height: 32, viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ c.createElement("title", null, "Spenicle"), /* @__PURE__ */ c.createElement("rect", { width: 32, height: 32, rx: 8, fill: "#e07a5f" }), /* @__PURE__ */ c.createElement("g", { transform: "translate(16, 16) scale(0.625) translate(-12, -12)" }, /* @__PURE__ */ c.createElement("path", { d: "M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z", fill: "white" }))), Xe = (e) => /* @__PURE__ */ c.createElement("svg", { width: 32, height: 32, viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ c.createElement("title", null, "Spenicle"), /* @__PURE__ */ c.createElement("circle", { cx: 16, cy: 16, r: 16, fill: "#e07a5f" }), /* @__PURE__ */ c.createElement("g", { transform: "translate(16, 16) scale(0.625) translate(-12, -12)" }, /* @__PURE__ */ c.createElement("path", { d: "M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z", fill: "white" }))), Je = (e) => /* @__PURE__ */ c.createElement("svg", { width: 32, height: 32, viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ c.createElement("title", null, "Hub (Square)"), /* @__PURE__ */ c.createElement("rect", { x: 0, y: 0, width: 32, height: 32, rx: 0, fill: "#e07a5f" }), /* @__PURE__ */ c.createElement("g", { transform: "translate(16, 16) scale(0.625) translate(-12, -12)" }, /* @__PURE__ */ c.createElement("path", { d: "M20.341 6.484A10 10 0 0 1 10.266 21.85", stroke: "white", strokeWidth: 2, fill: "none" }), /* @__PURE__ */ c.createElement("path", { d: "M3.659 17.516A10 10 0 0 1 13.74 2.152", stroke: "white", strokeWidth: 2, fill: "none" }), /* @__PURE__ */ c.createElement("circle", { cx: 12, cy: 12, r: 3, fill: "white" }), /* @__PURE__ */ c.createElement("circle", { cx: 19, cy: 5, r: 2, fill: "white" }), /* @__PURE__ */ c.createElement("circle", { cx: 5, cy: 19, r: 2, fill: "white" }))), Ke = (e) => /* @__PURE__ */ c.createElement("svg", { width: 32, height: 32, viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ c.createElement("title", null, "Hub (Rounded)"), /* @__PURE__ */ c.createElement("rect", { x: 0, y: 0, width: 32, height: 32, rx: 8, fill: "#e07a5f" }), /* @__PURE__ */ c.createElement("g", { transform: "translate(16, 16) scale(0.625) translate(-12, -12)" }, /* @__PURE__ */ c.createElement("path", { d: "M20.341 6.484A10 10 0 0 1 10.266 21.85", stroke: "white", strokeWidth: 2, fill: "none" }), /* @__PURE__ */ c.createElement("path", { d: "M3.659 17.516A10 10 0 0 1 13.74 2.152", stroke: "white", strokeWidth: 2, fill: "none" }), /* @__PURE__ */ c.createElement("circle", { cx: 12, cy: 12, r: 3, fill: "white" }), /* @__PURE__ */ c.createElement("circle", { cx: 19, cy: 5, r: 2, fill: "white" }), /* @__PURE__ */ c.createElement("circle", { cx: 5, cy: 19, r: 2, fill: "white" }))), Qe = (e) => /* @__PURE__ */ c.createElement("svg", { width: 32, height: 32, viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ c.createElement("title", null, "Hub (Circle)"), /* @__PURE__ */ c.createElement("circle", { cx: 16, cy: 16, r: 16, fill: "#e07a5f" }), /* @__PURE__ */ c.createElement("g", { transform: "translate(16, 16) scale(0.625) translate(-12, -12)" }, /* @__PURE__ */ c.createElement("path", { d: "M20.341 6.484A10 10 0 0 1 10.266 21.85", stroke: "white", strokeWidth: 2, fill: "none" }), /* @__PURE__ */ c.createElement("path", { d: "M3.659 17.516A10 10 0 0 1 13.74 2.152", stroke: "white", strokeWidth: 2, fill: "none" }), /* @__PURE__ */ c.createElement("circle", { cx: 12, cy: 12, r: 3, fill: "white" }), /* @__PURE__ */ c.createElement("circle", { cx: 19, cy: 5, r: 2, fill: "white" }), /* @__PURE__ */ c.createElement("circle", { cx: 5, cy: 19, r: 2, fill: "white" }))), Ye = (e) => /* @__PURE__ */ c.createElement("svg", { width: 32, height: 32, viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ c.createElement("title", null, "Notunic"), /* @__PURE__ */ c.createElement("rect", { width: 32, height: 32, fill: "#e07a5f" }), /* @__PURE__ */ c.createElement("g", { transform: "translate(16, 16) scale(0.625) translate(-12, -12)" }, /* @__PURE__ */ c.createElement("path", { d: "M13.4 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7.4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ c.createElement("path", { d: "M2 6h4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ c.createElement("path", { d: "M2 10h4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ c.createElement("path", { d: "M2 14h4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ c.createElement("path", { d: "M2 18h4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ c.createElement("path", { d: "M21.378 5.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z", fill: "white" }))), Ze = (e) => /* @__PURE__ */ c.createElement("svg", { width: 32, height: 32, viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ c.createElement("title", null, "Notunic"), /* @__PURE__ */ c.createElement("rect", { width: 32, height: 32, rx: 8, fill: "#e07a5f" }), /* @__PURE__ */ c.createElement("g", { transform: "translate(16, 16) scale(0.625) translate(-12, -12)" }, /* @__PURE__ */ c.createElement("path", { d: "M13.4 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7.4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ c.createElement("path", { d: "M2 6h4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ c.createElement("path", { d: "M2 10h4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ c.createElement("path", { d: "M2 14h4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ c.createElement("path", { d: "M2 18h4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ c.createElement("path", { d: "M21.378 5.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z", fill: "white" }))), et = (e) => /* @__PURE__ */ c.createElement("svg", { width: 32, height: 32, viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ c.createElement("title", null, "Notunic"), /* @__PURE__ */ c.createElement("circle", { cx: 16, cy: 16, r: 16, fill: "#e07a5f" }), /* @__PURE__ */ c.createElement("g", { transform: "translate(16, 16) scale(0.625) translate(-12, -12)" }, /* @__PURE__ */ c.createElement("path", { d: "M13.4 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7.4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ c.createElement("path", { d: "M2 6h4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ c.createElement("path", { d: "M2 10h4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ c.createElement("path", { d: "M2 14h4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ c.createElement("path", { d: "M2 18h4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ c.createElement("path", { d: "M21.378 5.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z", fill: "white" }))), tt = g("", {
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
- }), rt = h(
1448
- ({ shape: e = "square", size: r, name: a = "spenicle", ...s }, t) => {
1421
+ }), at = f(
1422
+ ({ shape: e = "square", size: n, name: a = "spenicle", ...s }, t) => {
1449
1423
  const o = {
1450
1424
  spenicle: {
1451
- square: P,
1452
- rounded: De,
1453
- circle: Xe
1425
+ square: H,
1426
+ rounded: Je,
1427
+ circle: Ke
1454
1428
  },
1455
1429
  hub: {
1456
- square: Je,
1457
- rounded: Ke,
1458
- circle: Qe
1430
+ square: Qe,
1431
+ rounded: Ye,
1432
+ circle: Ze
1459
1433
  },
1460
1434
  notunic: {
1461
- square: Ye,
1462
- rounded: Ze,
1463
- circle: et
1435
+ square: et,
1436
+ rounded: tt,
1437
+ circle: rt
1464
1438
  }
1465
- }, l = (o[a] || o.spenicle)[e || "square"] || P;
1466
- return /* @__PURE__ */ n.jsx(
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: f("inline-block", tt({ size: r }))
1445
+ className: u("inline-block", nt({ size: n }))
1472
1446
  }
1473
1447
  );
1474
1448
  }
1475
- ), Zt = h(
1476
- ({ name: e = "spenicle", size: r = "md", shape: a, ...s }, t) => /* @__PURE__ */ n.jsx(
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: f("inline-flex items-center gap-2"),
1454
+ className: u("inline-flex items-center gap-2"),
1481
1455
  ...s,
1482
- children: /* @__PURE__ */ n.jsx(rt, { name: e, shape: a, size: r, "aria-hidden": "true" })
1456
+ children: /* @__PURE__ */ r.jsx(at, { name: e, shape: a, size: n, "aria-hidden": "true" })
1483
1457
  }
1484
1458
  )
1485
- ), nt = g(
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 = z.forwardRef(
1484
+ ), J = _.forwardRef(
1511
1485
  function({
1512
- className: r,
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
- }, u) {
1521
- const m = s === "sm" ? "sm" : s === "lg" ? "md" : "sm", x = () => a === "primary" || a === "destructive" ? "white" : "inherit";
1522
- return /* @__PURE__ */ n.jsxs(
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: u,
1499
+ ref: m,
1526
1500
  type: o,
1527
- className: f(nt({ variant: a, size: s }), r),
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__ */ n.jsx(
1535
- E,
1508
+ i && /* @__PURE__ */ r.jsx(
1509
+ k,
1536
1510
  {
1537
- as: H,
1538
- size: m,
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
- ), at = g(
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
- ), er = z.forwardRef(function({
1572
- className: r,
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
- }, u) {
1581
- const m = (x) => {
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__ */ n.jsx(
1562
+ return /* @__PURE__ */ r.jsx(
1589
1563
  "a",
1590
1564
  {
1591
- ref: u,
1565
+ ref: m,
1592
1566
  href: t ? void 0 : i,
1593
- className: f(at({ variant: a, size: s }), r),
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: m,
1571
+ onClick: h,
1598
1572
  ...d,
1599
1573
  children: o
1600
1574
  }
1601
1575
  );
1602
- }), st = g(
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 = R(void 0), ot = K.Provider, it = () => {
1621
- const e = O(K);
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
- }, lt = h(
1626
- ({ children: e }, r) => /* @__PURE__ */ n.jsx("ul", { ref: r, className: "flex flex-col gap-1", children: e })
1627
- ), ct = h(
1628
- ({ children: e, disabled: r, onClick: a, active: s, ...t }, o) => {
1629
- const { preserve: i, onClose: l } = it(), d = (u) => {
1630
- a?.(u), i || l();
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__ */ n.jsx("li", { ref: o, ...t, children: /* @__PURE__ */ n.jsxs(
1606
+ return /* @__PURE__ */ r.jsx("li", { ref: o, ...t, children: /* @__PURE__ */ r.jsxs(
1633
1607
  J,
1634
1608
  {
1635
1609
  variant: "ghost",
1636
- className: f("justify-start w-full gap-2"),
1637
- disabled: r,
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__ */ n.jsx(
1642
- E,
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
- ), dt = ({
1628
+ ), mt = ({
1655
1629
  isOpen: e,
1656
- onClose: r,
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 = T(null), u = re();
1665
- return /* @__PURE__ */ n.jsx(ot, { value: { onClose: r, preserve: !!l }, children: /* @__PURE__ */ n.jsxs("div", { className: "relative w-fit", children: [
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__ */ n.jsx(
1644
+ /* @__PURE__ */ r.jsx(
1671
1645
  Ce,
1672
1646
  {
1673
- id: u,
1647
+ id: m,
1674
1648
  triggerRef: d,
1675
1649
  isOpen: e,
1676
- onClose: r,
1650
+ onClose: n,
1677
1651
  placement: o,
1678
1652
  gap: i,
1679
1653
  maxWidth: "sm",
1680
- className: f(st({ size: a, open: e })),
1654
+ className: u(it({ size: a, open: e })),
1681
1655
  children: s
1682
1656
  }
1683
1657
  )
1684
1658
  ] }) });
1685
- }, V = Object.assign(dt, {
1686
- Content: lt,
1687
- Item: ct
1688
- }), ut = h(
1689
- (e, r) => {
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 ?? {}, [u, m] = k(!1);
1699
- C(() => {
1700
- s?.(u);
1701
- }, [u, s]);
1672
+ } = e ?? {}, [m, h] = j(!1);
1673
+ E(() => {
1674
+ s?.(m);
1675
+ }, [m, s]);
1702
1676
  const x = () => {
1703
- m(!1);
1677
+ h(!1);
1704
1678
  }, p = (b) => {
1705
- b.stopPropagation(), m((w) => !w), t?.(b);
1679
+ b.stopPropagation(), h((v) => !v), t?.(b);
1706
1680
  };
1707
- return /* @__PURE__ */ n.jsx(
1681
+ return /* @__PURE__ */ r.jsx(
1708
1682
  V,
1709
1683
  {
1710
- isOpen: u,
1684
+ isOpen: m,
1711
1685
  onClose: x,
1712
1686
  placement: o,
1713
1687
  preserve: i,
1714
- content: /* @__PURE__ */ n.jsx(V.Content, { children: a }),
1715
- children: /* @__PURE__ */ n.jsx(J, { ref: r, onClick: p, ...d, children: l })
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
- ), tr = Object.assign(ut, {
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 mt = g(
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
- ), ht = z.forwardRef(
1730
+ ), xt = _.forwardRef(
1757
1731
  function({
1758
- className: r,
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
- ...u
1767
- }, m) {
1740
+ ...m
1741
+ }, h) {
1768
1742
  const x = ft(a);
1769
- return /* @__PURE__ */ n.jsx(
1743
+ return /* @__PURE__ */ r.jsx(
1770
1744
  "button",
1771
1745
  {
1772
- ref: m,
1746
+ ref: h,
1773
1747
  type: "button",
1774
- className: f(
1775
- mt({
1748
+ className: u(
1749
+ gt({
1776
1750
  variant: a,
1777
1751
  size: s,
1778
1752
  shape: t
1779
1753
  }),
1780
- r
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
- ...u,
1788
- children: i ? /* @__PURE__ */ n.jsx(
1789
- E,
1761
+ ...m,
1762
+ children: i ? /* @__PURE__ */ r.jsx(
1763
+ k,
1790
1764
  {
1791
- as: H,
1765
+ as: F,
1792
1766
  size: "sm",
1793
1767
  color: x,
1794
1768
  className: "animate-spin"
1795
1769
  }
1796
- ) : /* @__PURE__ */ n.jsx(E, { as: l, size: "sm", color: x })
1770
+ ) : /* @__PURE__ */ r.jsx(k, { as: l, size: "sm", color: x })
1797
1771
  }
1798
1772
  );
1799
1773
  }
1800
- ), gt = h(
1801
- (e, r) => {
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 ?? {}, [u, m] = k(!1);
1811
- C(() => {
1812
- t?.(u);
1813
- }, [u, t]);
1784
+ } = e ?? {}, [m, h] = j(!1);
1785
+ E(() => {
1786
+ t?.(m);
1787
+ }, [m, t]);
1814
1788
  const x = () => {
1815
- m(!1);
1789
+ h(!1);
1816
1790
  }, p = (b) => {
1817
- b.stopPropagation(), m((w) => !w), o?.(b);
1791
+ b.stopPropagation(), h((v) => !v), o?.(b);
1818
1792
  };
1819
- return /* @__PURE__ */ n.jsx(
1793
+ return /* @__PURE__ */ r.jsx(
1820
1794
  V,
1821
1795
  {
1822
- isOpen: u,
1796
+ isOpen: m,
1823
1797
  onClose: x,
1824
1798
  placement: i,
1825
1799
  preserve: l,
1826
- content: /* @__PURE__ */ n.jsx(V.Content, { children: s }),
1827
- children: /* @__PURE__ */ n.jsx(ht, { ref: r, as: a, onClick: p, ...d })
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
- ), rr = Object.assign(gt, {
1805
+ ), ar = Object.assign(bt, {
1832
1806
  Item: V.Item
1833
- }), xt = g(
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
- ), bt = h(
1866
- ({ children: e }, r) => /* @__PURE__ */ n.jsx(
1839
+ ), vt = f(
1840
+ ({ children: e }, n) => /* @__PURE__ */ r.jsx(
1867
1841
  "ul",
1868
1842
  {
1869
- ref: r,
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
- ), pt = h(
1875
- ({ children: e }, r) => /* @__PURE__ */ n.jsx(
1848
+ ), wt = f(
1849
+ ({ children: e }, n) => /* @__PURE__ */ r.jsx(
1876
1850
  "li",
1877
1851
  {
1878
- ref: r,
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__ */ n.jsx(j, { as: "span", fontSize: "sm", color: "gray", ellipsis: !0, clamp: 1, children: e })
1854
+ children: /* @__PURE__ */ r.jsx(C, { as: "small", color: "gray", ellipsis: !0, clamp: 1, children: e })
1881
1855
  }
1882
1856
  )
1883
- ), wt = h(
1857
+ ), yt = f(
1884
1858
  ({
1885
1859
  size: e = "md",
1886
- shape: r = "rounded",
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: u,
1895
- ...m
1896
- }, x) => /* @__PURE__ */ n.jsx(
1868
+ className: m,
1869
+ ...h
1870
+ }, x) => /* @__PURE__ */ r.jsx(
1897
1871
  d,
1898
1872
  {
1899
1873
  ref: x,
1900
- className: f(
1901
- xt({ size: e, shape: r, bordered: l, as: d }),
1902
- u,
1874
+ className: u(
1875
+ pt({ size: e, shape: n, bordered: l, as: d }),
1876
+ m,
1903
1877
  "@container/card"
1904
1878
  ),
1905
- ...m,
1906
- children: /* @__PURE__ */ n.jsxs("div", { className: "flex items-start gap-3 @sm/card:gap-4 w-full", children: [
1907
- a && /* @__PURE__ */ n.jsx("div", { className: "flex-shrink-0", children: a }),
1908
- /* @__PURE__ */ n.jsxs("div", { className: "w-full min-w-0", children: [
1909
- /* @__PURE__ */ n.jsx("div", { className: "mb-2", children: /* @__PURE__ */ n.jsx("div", { className: "flex items-start justify-between gap-2", children: /* @__PURE__ */ n.jsxs("div", { className: "flex-1 min-w-0", children: [
1910
- /* @__PURE__ */ n.jsx(
1911
- j,
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__ */ n.jsxs("div", { className: "flex flex-col gap-2 @sm/card:flex-row @sm/card:justify-between @sm/card:items-center", children: [
1923
- o && /* @__PURE__ */ n.jsx("div", { className: "order-1 @sm/card:order-none overflow-hidden", children: o }),
1924
- i && /* @__PURE__ */ n.jsx("div", { className: "flex-shrink-0 order-2 @sm/card:order-none @sm/card:ml-auto", children: typeof i == "string" ? /* @__PURE__ */ n.jsx(
1925
- 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
- ), nr = Object.assign(wt, {
1941
- List: bt,
1942
- ListItem: pt
1943
- }), vt = g(
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
- ), ar = z.forwardRef(
1958
- function({ className: r, size: a = "md", disabled: s = !1, children: t, ...o }, i) {
1959
- return /* @__PURE__ */ n.jsxs(
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: f(vt({ size: a }), r),
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__ */ n.jsx("span", { className: "flex-shrink-0", children: t }),
1972
- /* @__PURE__ */ n.jsx(E, { as: le, color: "inherit", size: a === "lg" ? "md" : "sm" })
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
- ), yt = [
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-xl",
1983
- "[&_h2]:font-bold",
1984
- "[&_h2]:my-1.5",
1985
- "[&_h3]:text-lg",
1986
- "[&_h3]:font-semibold",
1987
- "[&_h3]:my-1",
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
- ], jt = g("block w-full break-words", {
2011
- variants: {
2012
- scrollable: {
2013
- true: "overflow-y-auto",
2014
- false: "overflow-visible"
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
- }), kt = z.forwardRef(({ content: e, scrollable: r = !1, maxHeight: a, className: s, ...t }, o) => /* @__PURE__ */ n.jsx(
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: r && a ? { maxHeight: `${a}rem` } : void 0,
2028
- className: f(
2029
- jt({ scrollable: r }),
2030
- ...yt,
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
- kt.displayName = "FormattedText";
2037
- const Nt = g("h-px w-full bg-border border-0", {
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
- }), sr = h(
2048
- ({ hasMargin: e = !1, className: r, ...a }, s) => /* @__PURE__ */ n.jsx(
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: f(Nt({ hasMargin: e }), r),
2034
+ className: u(Ct({ hasMargin: e }), n),
2053
2035
  ...a
2054
2036
  }
2055
2037
  )
2056
- ), Et = g(
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
- ), Ct = g(
2057
+ ), Vt = g(
2076
2058
  "flex flex-row items-center gap-3 mb-2"
2077
- ), or = z.forwardRef(
2078
- function({ icon: r, title: a, subtitle: s, action: t, className: o, hasGrayBackground: i, ...l }, d) {
2079
- return /* @__PURE__ */ n.jsxs(
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: f(Et({ hasGrayBackground: i }), o),
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__ */ n.jsxs("header", { className: Ct(), children: [
2089
- /* @__PURE__ */ n.jsx(E, { as: r, size: "lg", color: "ghost", "aria-hidden": "true" }),
2090
- /* @__PURE__ */ n.jsx(j, { as: "h2", fontSize: "lg", children: a })
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__ */ n.jsx(j, { as: "p", align: "center", color: "gray", className: "mb-4", children: s }),
2093
- t && /* @__PURE__ */ n.jsx("div", { role: "group", "aria-label": "Available actions", children: t })
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 = R(null), zt = Q.Provider;
2080
+ ), Q = O(null), It = Q.Provider;
2099
2081
  function W() {
2100
- const e = O(Q);
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 B = (e) => {
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
- }, Vt = (e) => {
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
- }, It = h(
2168
- ({ children: e, className: r, ...a }, s) => {
2149
+ }, At = f(
2150
+ ({ children: e, className: n, ...a }, s) => {
2169
2151
  const { columns: t } = W();
2170
- return /* @__PURE__ */ n.jsx(
2152
+ return /* @__PURE__ */ r.jsx(
2171
2153
  "div",
2172
2154
  {
2173
2155
  role: "rowgroup",
2174
- className: f("bg-neutral-soft", r),
2156
+ className: u("bg-neutral-soft", n),
2175
2157
  ...a,
2176
2158
  ref: s,
2177
- children: /* @__PURE__ */ n.jsx(
2159
+ children: /* @__PURE__ */ r.jsx(
2178
2160
  "div",
2179
2161
  {
2180
2162
  role: "row",
2181
- className: f("grid gap-4", B(t)),
2163
+ className: u("grid gap-4", q(t)),
2182
2164
  children: e
2183
2165
  }
2184
2166
  )
2185
2167
  }
2186
2168
  );
2187
2169
  }
2188
- ), At = h(
2189
- ({ children: e, className: r, ...a }, s) => /* @__PURE__ */ n.jsx("div", { role: "rowgroup", ref: s, className: f(r), ...a, children: e })
2190
- ), Lt = h(
2191
- ({ children: e, className: r, ...a }, s) => {
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__ */ n.jsx(
2175
+ return /* @__PURE__ */ r.jsx(
2194
2176
  "div",
2195
2177
  {
2196
2178
  role: "rowgroup",
2197
- className: f("bg-neutral-soft", r),
2179
+ className: u("bg-neutral-soft", n),
2198
2180
  ...a,
2199
2181
  ref: s,
2200
- children: /* @__PURE__ */ n.jsx(
2182
+ children: /* @__PURE__ */ r.jsx(
2201
2183
  "div",
2202
2184
  {
2203
2185
  role: "row",
2204
- className: f("grid gap-4", B(t)),
2186
+ className: u("grid gap-4", q(t)),
2205
2187
  children: e
2206
2188
  }
2207
2189
  )
2208
2190
  }
2209
2191
  );
2210
2192
  }
2211
- ), Mt = h(
2212
- ({ children: e, className: r, ...a }, s) => {
2193
+ ), Rt = f(
2194
+ ({ children: e, className: n, ...a }, s) => {
2213
2195
  const { columns: t } = W();
2214
- return /* @__PURE__ */ n.jsx(
2196
+ return /* @__PURE__ */ r.jsx(
2215
2197
  "div",
2216
2198
  {
2217
2199
  role: "row",
2218
- className: f(
2200
+ className: u(
2219
2201
  "grid gap-4",
2220
- B(t),
2202
+ q(t),
2221
2203
  "border-b border-border last:border-0",
2222
- r
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 = h(
2231
- ({ as: e = "td", span: r, align: a = "left", children: s, className: t, ...o }, i) => {
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__ */ n.jsx(
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: f(
2221
+ className: u(
2240
2222
  "px-4 py-2",
2241
2223
  "[&:not(:last-child)]:border-r [&:not(:last-child)]:border-border",
2242
- Vt(r),
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
- ), St = h(
2253
- (e, r) => /* @__PURE__ */ n.jsx(
2234
+ ), Tt = f(
2235
+ (e, n) => /* @__PURE__ */ r.jsx(
2254
2236
  Y,
2255
2237
  {
2256
2238
  ...e,
2257
2239
  as: "td",
2258
- ref: r,
2259
- className: f(
2240
+ ref: n,
2241
+ className: u(
2260
2242
  "truncate overflow-hidden whitespace-nowrap",
2261
2243
  e.className
2262
2244
  )
2263
2245
  }
2264
2246
  )
2265
- ), _t = h(
2266
- (e, r) => /* @__PURE__ */ n.jsx(
2247
+ ), Ot = f(
2248
+ (e, n) => /* @__PURE__ */ r.jsx(
2267
2249
  Y,
2268
2250
  {
2269
2251
  ...e,
2270
2252
  as: "th",
2271
- ref: r,
2272
- className: f(
2253
+ ref: n,
2254
+ className: u(
2273
2255
  "truncate overflow-hidden whitespace-nowrap",
2274
2256
  e.className
2275
2257
  )
2276
2258
  }
2277
2259
  )
2278
- ), Rt = h(
2279
- ({ children: e, className: r, columns: a = 12, ...s }, t) => /* @__PURE__ */ n.jsx(zt, { value: { columns: a }, children: /* @__PURE__ */ n.jsx(
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: f(
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
- r
2272
+ n
2291
2273
  ),
2292
2274
  ...s,
2293
2275
  children: e
2294
2276
  }
2295
2277
  ) })
2296
- ), ir = Object.assign(Rt, {
2297
- Header: It,
2298
- HeaderItem: _t,
2299
- Body: At,
2300
- Footer: Lt,
2301
- Row: Mt,
2302
- RowItem: St
2303
- }), Ot = g(
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-soft border border-primary",
2312
- secondary: "bg-secondary-soft border border-secondary",
2313
- tertiary: "bg-tertiary-soft border border-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-soft border border-success",
2316
- info: "bg-info-soft border border-info",
2317
- warning: "bg-warning-soft border border-warning",
2318
- danger: "bg-danger-soft border border-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
- ), lr = h(
2339
- ({ variant: e = "white", size: r = "md", shape: a = "rounded", className: s, ...t }, o) => /* @__PURE__ */ n.jsx(
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: o,
2343
- className: f(Ot({ variant: e, size: r, shape: a }), s),
2344
- ...t
2331
+ ref: i,
2332
+ className: u(Bt({ variant: n, size: a, shape: s }), t),
2333
+ ...o
2345
2334
  }
2346
2335
  )
2347
2336
  );
2348
- function Tt({ src: e }) {
2349
- const [r, a] = k(!1), [s, t] = k(!1), o = T(!1), i = () => {
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 C(() => {
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: r,
2354
+ loaded: n,
2366
2355
  errored: s,
2367
2356
  handleLoad: i,
2368
2357
  handleError: l
2369
2358
  };
2370
2359
  }
2371
- const Wt = g("block object-cover", {
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 Bt({
2413
+ function Pt({
2425
2414
  className: e,
2426
- shape: r,
2415
+ shape: n,
2427
2416
  size: a,
2428
2417
  height: s,
2429
2418
  width: t
2430
2419
  }) {
2431
- return /* @__PURE__ */ n.jsx(
2420
+ return /* @__PURE__ */ r.jsx(
2432
2421
  de,
2433
2422
  {
2434
- className: f(Z({ shape: r, size: a }), e),
2423
+ className: u(Z({ shape: n, size: a }), e),
2435
2424
  style: { height: s, width: t }
2436
2425
  }
2437
2426
  );
2438
2427
  }
2439
- function qt({
2428
+ function Ht({
2440
2429
  alt: e,
2441
- width: r,
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__ */ n.jsxs(
2437
+ return /* @__PURE__ */ r.jsxs(
2449
2438
  "div",
2450
2439
  {
2451
2440
  className: Z({ shape: o, size: i, className: s }),
2452
- style: { width: r, height: a, ...t },
2441
+ style: { width: n, height: a, ...t },
2453
2442
  "aria-label": e,
2454
2443
  role: "img",
2455
2444
  children: [
2456
- /* @__PURE__ */ n.jsx(
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__ */ n.jsx("span", { style: { opacity: 0.7 }, children: e })
2453
+ /* @__PURE__ */ r.jsx("span", { style: { opacity: 0.7 }, children: e })
2465
2454
  ]
2466
2455
  }
2467
2456
  );
2468
2457
  }
2469
- const q = h(
2458
+ const P = f(
2470
2459
  ({
2471
2460
  src: e,
2472
- alt: r,
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: u,
2481
- className: m,
2469
+ shape: m,
2470
+ className: h,
2482
2471
  ...x
2483
2472
  }, p) => {
2484
- const { loaded: b, errored: w, handleLoad: v, handleError: N } = Tt({
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 && !w ? /* @__PURE__ */ n.jsx(
2488
- Bt,
2476
+ return !b && !v ? /* @__PURE__ */ r.jsx(
2477
+ Pt,
2489
2478
  {
2490
- shape: u,
2479
+ shape: m,
2491
2480
  width: y,
2492
2481
  height: I
2493
2482
  }
2494
- ) : w ? /* @__PURE__ */ n.jsx(
2495
- qt,
2483
+ ) : v ? /* @__PURE__ */ r.jsx(
2484
+ Ht,
2496
2485
  {
2497
- shape: u,
2498
- alt: r,
2486
+ shape: m,
2487
+ alt: n,
2499
2488
  width: y,
2500
2489
  height: I
2501
2490
  }
2502
- ) : /* @__PURE__ */ n.jsx(
2491
+ ) : /* @__PURE__ */ r.jsx(
2503
2492
  "img",
2504
2493
  {
2505
2494
  ref: p,
2506
2495
  src: e,
2507
- alt: r,
2496
+ alt: n,
2508
2497
  width: y,
2509
2498
  height: I,
2510
2499
  loading: i,
2511
- className: f(
2512
- Wt({
2500
+ className: u(
2501
+ qt({
2513
2502
  position: l,
2514
2503
  size: d,
2515
- shape: u
2504
+ shape: m
2516
2505
  }),
2517
- m
2506
+ h
2518
2507
  ),
2519
- onLoad: (A) => {
2520
- v(), a?.(A);
2508
+ onLoad: (z) => {
2509
+ w(), a?.(z);
2521
2510
  },
2522
- onError: (A) => {
2523
- N(), s?.(A);
2511
+ onError: (z) => {
2512
+ N(), s?.(z);
2524
2513
  },
2525
2514
  ...x
2526
2515
  }
2527
2516
  );
2528
2517
  }
2529
- ), cr = h((e, r) => /* @__PURE__ */ n.jsx(q, { ref: r, ...e, shape: "circle" })), dr = h((e, r) => /* @__PURE__ */ n.jsx(q, { ref: r, ...e, shape: "square" })), ur = h((e, r) => /* @__PURE__ */ n.jsx(q, { ref: r, ...e, shape: "rectangle" }));
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
- Yt as B,
2533
- nr as C,
2534
- ar as F,
2535
- G as H,
2536
- E as I,
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
- or as N,
2539
- ir as T,
2540
- Dt as a,
2541
- Xt as b,
2542
- Jt as c,
2543
- Te as d,
2544
- Kt as e,
2545
- Qt as f,
2546
- Zt as g,
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
- er as i,
2549
- tr as j,
2550
- rr as k,
2551
- ht as l,
2552
- kt as m,
2553
- yt as n,
2554
- sr as o,
2555
- j as p,
2556
- lr as q,
2557
- cr as r,
2558
- dr as s,
2559
- ur as t,
2560
- q as u,
2561
- Ne as v
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
  };