@dimasbaguspm/versaur 0.0.61 → 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.
@@ -1,19 +1,19 @@
1
1
  import { j as n } 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 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 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"
14
14
  );
15
15
  return e;
16
- }, ue = g(
16
+ }, ue = f(
17
17
  "border-b border-border bg-background overflow-hidden",
18
18
  {
19
19
  variants: {
@@ -26,7 +26,7 @@ const F = R(
26
26
  disabled: !1
27
27
  }
28
28
  }
29
- ), fe = g(
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 = R(
44
44
  isOpen: !1
45
45
  }
46
46
  }
47
- ), me = g(
47
+ ), he = f(
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
+ ), 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 = R(
67
67
  defaultVariants: {
68
68
  isOpen: !1
69
69
  }
70
- }), xe = g("", {
70
+ }), xe = f("", {
71
71
  variants: {
72
72
  color: {
73
73
  primary: "text-primary",
@@ -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,72 +114,64 @@ 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 = g(
142
136
  ({
143
- level: e = 3,
137
+ as: e = "h3",
144
138
  color: r = "black",
145
- hasUnderline: a = !1,
146
- isCapitalize: s = !1,
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}`;
147
+ ...h
148
+ }, x) => {
149
+ const p = e, b = l ? i === "none" ? "truncate" : "overflow-hidden" : "";
157
150
  return /* @__PURE__ */ n.jsx(
158
- b,
151
+ p,
159
152
  {
160
- ref: p,
161
- className: f(
153
+ ref: x,
154
+ className: u(
162
155
  xe({
163
156
  color: r,
164
- hasUnderline: a,
165
- isCapitalize: s,
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";
182
- const be = g("inline-flex items-center justify-center", {
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,7 +201,7 @@ 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) {
204
+ }), N = _.forwardRef(function({ as: r, color: a = "primary", size: s = "md", className: t, ...o }, i) {
213
205
  return /* @__PURE__ */ n.jsx(
214
206
  r,
215
207
  {
@@ -218,43 +210,43 @@ const be = g("inline-flex items-center justify-center", {
218
210
  ...o
219
211
  }
220
212
  );
221
- }), pe = h(function({ className: r, children: a, ...s }, t) {
213
+ }), pe = g(function({ className: r, children: a, ...s }, t) {
222
214
  return /* @__PURE__ */ n.jsx(
223
- G,
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", r),
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
+ }), we = g(function({ className: r, children: a, ...s }, t) {
234
226
  const { isOpen: o } = $();
235
227
  return /* @__PURE__ */ n.jsx(
236
228
  "div",
237
229
  {
238
230
  ref: t,
239
- className: f(me({ isOpen: o }), r),
231
+ className: u(he({ isOpen: o }), r),
240
232
  ...s,
241
- children: /* @__PURE__ */ n.jsx("div", { className: he(), children: a })
233
+ children: /* @__PURE__ */ n.jsx("div", { className: ge(), children: a })
242
234
  }
243
235
  );
244
- }), U = h(function({ as: r, ...a }, s) {
236
+ }), D = g(function({ as: r, ...a }, s) {
245
237
  const { isOpen: t } = $();
246
238
  return /* @__PURE__ */ n.jsx(
247
- E,
239
+ N,
248
240
  {
249
241
  ref: s,
250
242
  as: r,
251
243
  color: "ghost",
252
244
  size: "sm",
253
- className: ge({ isOpen: t }),
245
+ className: fe({ isOpen: t }),
254
246
  ...a
255
247
  }
256
248
  );
257
- }), ve = h(
249
+ }), ve = g(
258
250
  function({
259
251
  title: r,
260
252
  subtitle: a,
@@ -264,19 +256,19 @@ 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 = () => {
259
+ }, m) {
260
+ const [h, x] = j(s), p = () => {
269
261
  t || x((w) => !w);
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__ */ n.jsx(G.Provider, { value: b, children: /* @__PURE__ */ n.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"
@@ -287,25 +279,25 @@ const be = g("inline-flex items-center justify-center", {
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,
285
+ "aria-expanded": h,
294
286
  children: /* @__PURE__ */ n.jsxs("div", { className: "flex items-center justify-between w-full gap-2", children: [
295
287
  /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-3 flex-grow", children: [
296
288
  /* @__PURE__ */ n.jsx("div", { className: "flex-1", children: r }),
297
289
  a && /* @__PURE__ */ n.jsx("div", { className: "flex-shrink-0", children: a })
298
290
  ] }),
299
- /* @__PURE__ */ n.jsx(U, { as: ae })
291
+ /* @__PURE__ */ n.jsx(D, { as: ae })
300
292
  ] })
301
293
  }
302
294
  ),
303
295
  /* @__PURE__ */ n.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
302
  children: /* @__PURE__ */ n.jsx("div", { className: "p-4 pt-2", children: l })
311
303
  }
@@ -317,8 +309,8 @@ const be = g("inline-flex items-center justify-center", {
317
309
  ), Ut = Object.assign(ve, {
318
310
  Title: pe,
319
311
  Content: we,
320
- Icon: U
321
- }), ye = g(
312
+ Icon: D
313
+ }), ye = f(
322
314
  [
323
315
  // Base styles
324
316
  "fixed",
@@ -385,28 +377,28 @@ 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
387
  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(() => {
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
- }, []), 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
404
  const w = (v) => {
@@ -416,7 +408,7 @@ function ke(e, r, a, s) {
416
408
  return b.addEventListener("toggle", w), () => {
417
409
  b.removeEventListener("toggle", w);
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;
@@ -425,11 +417,11 @@ function ke(e, r, a, s) {
425
417
  w = b.matches(":popover-open");
426
418
  } catch {
427
419
  }
428
- r && !w ? u() : !r && w && m();
429
- }, [r, l, u, m]), {
420
+ r && !w ? m() : !r && w && h();
421
+ }, [r, 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
@@ -439,7 +431,7 @@ const Ne = (...e) => (r) => {
439
431
  e.forEach((a) => {
440
432
  typeof a == "function" ? a(r) : a && "current" in a && (a.current = r);
441
433
  });
442
- }, D = h(
434
+ }, X = g(
443
435
  ({
444
436
  id: e,
445
437
  children: r,
@@ -450,52 +442,52 @@ 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
450
  }, w) => {
459
- const { popoverRef: v, isOpen: N } = ke(
451
+ const { popoverRef: v, isOpen: k } = ke(
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(() => {
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
- u
468
+ m
477
469
  );
478
470
  I(te);
479
471
  };
480
- N ? (S(!1), requestAnimationFrame(() => {
472
+ k ? (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
+ 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, u, N]);
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
- ...A ? {} : {
490
+ ...z ? {} : {
499
491
  opacity: 0,
500
492
  pointerEvents: "none",
501
493
  transition: "none"
@@ -508,7 +500,7 @@ const Ne = (...e) => (r) => {
508
500
  ref: Ne(w, v),
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
506
  children: r
@@ -516,13 +508,13 @@ const Ne = (...e) => (r) => {
516
508
  );
517
509
  }
518
510
  );
519
- D.displayName = "Popover";
511
+ X.displayName = "Popover";
520
512
  const Ee = (e, r = "toggle") => ({
521
513
  popoverTarget: e,
522
514
  popoverTargetAction: r
523
- }), Ce = Object.assign(D, {
515
+ }), Ce = Object.assign(X, {
524
516
  getTriggerProps: Ee
525
- }), ze = g(
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, r = "toggle") => ({
541
533
  as: "button"
542
534
  }
543
535
  }
544
- ), Ve = g(
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, r = "toggle") => ({
555
547
  size: "md"
556
548
  }
557
549
  }
558
- ), Ie = g(
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, 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 = f("", {
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,90 +617,71 @@ 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 = g(
642
641
  ({
643
642
  as: e = "span",
644
643
  color: r = "ghost",
645
- hasUnderline: a = !1,
646
- isCapitalize: s = !1,
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}` : "";
652
+ children: h,
653
+ ...x
654
+ }, p) => {
655
+ const b = Ae(e), w = e, v = d ? `font-${d}` : "", k = l ? i === "none" ? "truncate" : "overflow-hidden" : "";
668
656
  return /* @__PURE__ */ n.jsx(
669
- e,
657
+ w,
670
658
  {
671
- ref: b,
672
- className: f(
673
- Ae({
659
+ ref: p,
660
+ className: u(
661
+ Le({
674
662
  color: r,
675
- hasUnderline: a,
676
- isCapitalize: s,
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
  }),
684
- N,
685
- y,
670
+ v,
671
+ k,
686
672
  m
687
673
  ),
688
- ...p,
689
- children: x
674
+ ...x,
675
+ children: h
690
676
  }
691
677
  );
692
678
  }
693
- ), Le = h(
679
+ ), Me = g(
694
680
  ({ children: e, className: r }, a) => /* @__PURE__ */ n.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
687
  r
@@ -704,7 +690,7 @@ const Ee = (e, r = "toggle") => ({
704
690
  children: e
705
691
  }
706
692
  )
707
- ), Me = h(
693
+ ), Re = g(
708
694
  ({
709
695
  size: e = "md",
710
696
  icon: r,
@@ -715,22 +701,21 @@ 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__ */ n.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
711
  /* @__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 }),
712
+ r && /* @__PURE__ */ n.jsx("div", { className: u(Ve({ size: e })), children: r }),
727
713
  /* @__PURE__ */ n.jsxs("div", { className: "flex-1", children: [
728
714
  /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-3 mb-1", children: [
729
715
  /* @__PURE__ */ n.jsx(
730
- j,
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",
@@ -747,10 +732,9 @@ const Ee = (e, r = "toggle") => ({
747
732
  )
748
733
  ] }),
749
734
  s && /* @__PURE__ */ n.jsx(
750
- j,
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
@@ -759,10 +743,10 @@ const Ee = (e, r = "toggle") => ({
759
743
  ] })
760
744
  ] }),
761
745
  o && /* @__PURE__ */ n.jsx("div", { className: "flex items-center gap-3", children: /* @__PURE__ */ n.jsx(
762
- E,
746
+ N,
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 = 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, r = "toggle") => ({
893
877
  color: "neutral"
894
878
  }
895
879
  }
896
- ), _e = g(
880
+ ), Oe = f(
897
881
  "flex-shrink-0 flex justify-center items-center ",
898
882
  {
899
883
  variants: {
@@ -907,9 +891,9 @@ 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 = 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
899
  color: r = "neutral",
@@ -922,17 +906,17 @@ const Ee = (e, r = "toggle") => ({
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: r }), s),
926
910
  ...o,
927
911
  children: [
928
- a && /* @__PURE__ */ n.jsx(X, { children: a }),
912
+ a && /* @__PURE__ */ n.jsx(U, { children: a }),
929
913
  /* @__PURE__ */ n.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 = 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,7 +973,7 @@ const Ee = (e, r = "toggle") => ({
989
973
  quiet: !1
990
974
  }
991
975
  }
992
- ), Jt = h(
976
+ ), Qt = g(
993
977
  ({
994
978
  children: e,
995
979
  className: r,
@@ -1002,41 +986,31 @@ const Ee = (e, r = "toggle") => ({
1002
986
  "a",
1003
987
  {
1004
988
  ref: l,
1005
- className: f(
1006
- Oe({ color: a, fontSize: s, fontWeight: t, quiet: o }),
989
+ className: u(
990
+ Be({ color: a, fontSize: s, fontWeight: t, quiet: o }),
1007
991
  r
1008
992
  ),
1009
993
  ...i,
1010
994
  children: e
1011
995
  }
1012
996
  )
1013
- ), Te = h(
997
+ ), We = g(
1014
998
  function({ title: r, children: a, className: s, hasMargin: t, ...o }, i) {
1015
999
  return /* @__PURE__ */ n.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__ */ 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 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(
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(
1103
1077
  function({ children: r, className: a, columns: s = 4, ...t }, o) {
1104
- const i = Be(s);
1078
+ const i = Pe(s);
1105
1079
  return /* @__PURE__ */ n.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
1085
  children: r
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 = 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,9 +1128,9 @@ 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 = f(
1158
1132
  "absolute inset-0 h-full w-full object-cover"
1159
- ), $e = h(
1133
+ ), De = g(
1160
1134
  ({
1161
1135
  variant: e = "primary",
1162
1136
  size: r = "md",
@@ -1168,20 +1142,20 @@ const qe = h(function({ children: r, className: a, span: s = 1, title: t, ...o }
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: r, shape: a }), s),
1172
1146
  ...o,
1173
1147
  children: t
1174
1148
  }
1175
1149
  )
1176
- ), Ge = h(
1150
+ ), Xe = g(
1177
1151
  ({ src: e, alt: r, className: a, onError: s, ...t }, o) => {
1178
- const [i, l] = k(!1);
1179
- C(() => {
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
  );
@@ -1191,18 +1165,18 @@ const qe = h(function({ children: r, className: a, span: s = 1, title: t, ...o }
1191
1165
  ref: o,
1192
1166
  src: e,
1193
1167
  alt: r,
1194
- className: f(Fe(), a),
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
1205
- }), Ue = g(
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,7 +1363,7 @@ 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 = g(
1393
1367
  ({
1394
1368
  variant: e = "default",
1395
1369
  shape: r = "square",
@@ -1400,13 +1374,13 @@ 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
1379
  return /* @__PURE__ */ n.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,
@@ -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 = f("", {
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(
1421
+ }), at = g(
1448
1422
  ({ shape: e = "square", size: r, 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;
1439
+ }, l = (o[a] || o.spenicle)[e || "square"] || H;
1466
1440
  return /* @__PURE__ */ n.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: r }))
1472
1446
  }
1473
1447
  );
1474
1448
  }
1475
- ), Zt = h(
1449
+ ), tr = g(
1476
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: 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__ */ n.jsx(at, { name: e, shape: a, size: r, "aria-hidden": "true" })
1483
1457
  }
1484
1458
  )
1485
- ), nt = g(
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,7 +1481,7 @@ 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
1486
  className: r,
1513
1487
  variant: a = "primary",
@@ -1517,14 +1491,14 @@ 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";
1494
+ }, m) {
1495
+ const h = s === "sm" ? "sm" : s === "lg" ? "md" : "sm", x = () => a === "primary" || a === "destructive" ? "white" : "inherit";
1522
1496
  return /* @__PURE__ */ n.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 }), r),
1528
1502
  disabled: t || i,
1529
1503
  "aria-disabled": t || i,
1530
1504
  inert: t || i ? !0 : void 0,
@@ -1532,10 +1506,10 @@ const qe = h(function({ children: r, className: a, span: s = 1, title: t, ...o }
1532
1506
  ...d,
1533
1507
  children: [
1534
1508
  i && /* @__PURE__ */ n.jsx(
1535
- E,
1509
+ N,
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 = 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,7 +1542,7 @@ 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({
1545
+ ), rr = _.forwardRef(function({
1572
1546
  className: r,
1573
1547
  variant: a = "primary",
1574
1548
  size: s = "md",
@@ -1577,8 +1551,8 @@ 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;
@@ -1588,18 +1562,18 @@ const qe = h(function({ children: r, className: a, span: s = 1, title: t, ...o }
1588
1562
  return /* @__PURE__ */ n.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 }), 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: m,
1571
+ onClick: h,
1598
1572
  ...d,
1599
1573
  children: o
1600
1574
  }
1601
1575
  );
1602
- }), st = g(
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 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(
1599
+ }, dt = g(
1626
1600
  ({ children: e }, r) => /* @__PURE__ */ n.jsx("ul", { ref: r, className: "flex flex-col gap-1", children: e })
1627
- ), ct = h(
1601
+ ), ut = g(
1628
1602
  ({ children: e, disabled: r, onClick: a, active: s, ...t }, o) => {
1629
- const { preserve: i, onClose: l } = it(), d = (u) => {
1630
- a?.(u), i || l();
1603
+ const { preserve: i, onClose: l } = ct(), d = (m) => {
1604
+ a?.(m), i || l();
1631
1605
  };
1632
1606
  return /* @__PURE__ */ n.jsx("li", { ref: o, ...t, children: /* @__PURE__ */ n.jsxs(
1633
1607
  J,
1634
1608
  {
1635
1609
  variant: "ghost",
1636
- className: f("justify-start w-full gap-2"),
1610
+ className: u("justify-start w-full gap-2"),
1637
1611
  disabled: r,
1638
1612
  onClick: d,
1639
1613
  children: [
1640
1614
  e,
1641
1615
  s && /* @__PURE__ */ n.jsx(
1642
- E,
1616
+ N,
1643
1617
  {
1644
1618
  as: oe,
1645
1619
  color: "inherit",
@@ -1651,7 +1625,7 @@ 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
1630
  onClose: r,
1657
1631
  size: a = "md",
@@ -1661,8 +1635,8 @@ 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__ */ 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
@@ -1670,22 +1644,22 @@ const qe = h(function({ children: r, className: a, span: s = 1, title: t, ...o }
1670
1644
  /* @__PURE__ */ n.jsx(
1671
1645
  Ce,
1672
1646
  {
1673
- id: u,
1647
+ id: m,
1674
1648
  triggerRef: d,
1675
1649
  isOpen: e,
1676
1650
  onClose: r,
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(
1659
+ }, V = Object.assign(mt, {
1660
+ Content: dt,
1661
+ Item: ut
1662
+ }), ht = g(
1689
1663
  (e, r) => {
1690
1664
  const {
1691
1665
  children: a,
@@ -1695,19 +1669,19 @@ 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((w) => !w), t?.(b);
1706
1680
  };
1707
1681
  return /* @__PURE__ */ n.jsx(
1708
1682
  V,
1709
1683
  {
1710
- isOpen: u,
1684
+ isOpen: m,
1711
1685
  onClose: x,
1712
1686
  placement: o,
1713
1687
  preserve: i,
@@ -1716,13 +1690,13 @@ const qe = h(function({ children: r, className: a, span: s = 1, title: t, ...o }
1716
1690
  }
1717
1691
  );
1718
1692
  }
1719
- ), tr = Object.assign(ut, {
1693
+ ), nr = Object.assign(ht, {
1720
1694
  Item: V.Item
1721
1695
  });
1722
- function ft(e = "primary") {
1696
+ function gt(e = "primary") {
1723
1697
  return e === "primary" || e === "destructive" ? "white" : "inherit";
1724
1698
  }
1725
- const mt = g(
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,7 +1727,7 @@ const mt = g(
1753
1727
  shape: "rounded"
1754
1728
  }
1755
1729
  }
1756
- ), ht = z.forwardRef(
1730
+ ), xt = _.forwardRef(
1757
1731
  function({
1758
1732
  className: r,
1759
1733
  variant: a = "primary",
@@ -1763,16 +1737,16 @@ const mt = g(
1763
1737
  busy: i,
1764
1738
  as: l,
1765
1739
  "aria-label": d,
1766
- ...u
1767
- }, m) {
1768
- const x = ft(a);
1740
+ ...m
1741
+ }, h) {
1742
+ const x = gt(a);
1769
1743
  return /* @__PURE__ */ n.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
+ ft({
1776
1750
  variant: a,
1777
1751
  size: s,
1778
1752
  shape: t
@@ -1784,20 +1758,20 @@ const mt = g(
1784
1758
  "aria-label": d,
1785
1759
  inert: o || i ? !0 : void 0,
1786
1760
  "aria-busy": i ? !0 : void 0,
1787
- ...u,
1761
+ ...m,
1788
1762
  children: i ? /* @__PURE__ */ n.jsx(
1789
- E,
1763
+ N,
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__ */ n.jsx(N, { as: l, size: "sm", color: x })
1797
1771
  }
1798
1772
  );
1799
1773
  }
1800
- ), gt = h(
1774
+ ), bt = g(
1801
1775
  (e, r) => {
1802
1776
  const {
1803
1777
  as: a = ie,
@@ -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((w) => !w), o?.(b);
1818
1792
  };
1819
1793
  return /* @__PURE__ */ n.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
1800
  content: /* @__PURE__ */ n.jsx(V.Content, { children: s }),
1827
- children: /* @__PURE__ */ n.jsx(ht, { ref: r, as: a, onClick: p, ...d })
1801
+ children: /* @__PURE__ */ n.jsx(xt, { ref: r, 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 = f(
1834
1808
  "flex justify-between transition-colors duration-200 w-full",
1835
1809
  {
1836
1810
  variants: {
@@ -1862,7 +1836,7 @@ const mt = g(
1862
1836
  as: "button"
1863
1837
  }
1864
1838
  }
1865
- ), bt = h(
1839
+ ), wt = g(
1866
1840
  ({ children: e }, r) => /* @__PURE__ */ n.jsx(
1867
1841
  "ul",
1868
1842
  {
@@ -1871,16 +1845,16 @@ const mt = g(
1871
1845
  children: e
1872
1846
  }
1873
1847
  )
1874
- ), pt = h(
1848
+ ), vt = g(
1875
1849
  ({ children: e }, r) => /* @__PURE__ */ n.jsx(
1876
1850
  "li",
1877
1851
  {
1878
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__ */ n.jsx(j, { as: "span", fontSize: "sm", color: "gray", ellipsis: !0, clamp: 1, children: e })
1854
+ children: /* @__PURE__ */ n.jsx(C, { as: "small", color: "gray", ellipsis: !0, clamp: 1, children: e })
1881
1855
  }
1882
1856
  )
1883
- ), wt = h(
1857
+ ), yt = g(
1884
1858
  ({
1885
1859
  size: e = "md",
1886
1860
  shape: r = "rounded",
@@ -1891,41 +1865,31 @@ const mt = g(
1891
1865
  supplementaryInfo: i,
1892
1866
  bordered: l = !1,
1893
1867
  as: d = "button",
1894
- className: u,
1895
- ...m
1868
+ className: m,
1869
+ ...h
1896
1870
  }, x) => /* @__PURE__ */ n.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: r, bordered: l, as: d }),
1876
+ m,
1903
1877
  "@container/card"
1904
1878
  ),
1905
- ...m,
1879
+ ...h,
1906
1880
  children: /* @__PURE__ */ n.jsxs("div", { className: "flex items-start gap-3 @sm/card:gap-4 w-full", children: [
1907
1881
  a && /* @__PURE__ */ n.jsx("div", { className: "flex-shrink-0", children: a }),
1908
1882
  /* @__PURE__ */ n.jsxs("div", { className: "w-full min-w-0", children: [
1909
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: [
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 }) })
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
1887
  /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-2 @sm/card:flex-row @sm/card:justify-between @sm/card:items-center", children: [
1923
1888
  o && /* @__PURE__ */ n.jsx("div", { className: "order-1 @sm/card:order-none overflow-hidden", children: o }),
1924
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(
1925
- j,
1890
+ C,
1926
1891
  {
1927
- as: "p",
1928
- fontSize: "sm",
1892
+ as: "small",
1929
1893
  color: "gray",
1930
1894
  className: "truncate",
1931
1895
  align: "right",
@@ -1937,10 +1901,10 @@ const mt = g(
1937
1901
  ] })
1938
1902
  }
1939
1903
  )
1940
- ), nr = Object.assign(wt, {
1941
- List: bt,
1942
- ListItem: pt
1943
- }), vt = g(
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,14 +1918,14 @@ const mt = g(
1954
1918
  size: "md"
1955
1919
  }
1956
1920
  }
1957
- ), ar = z.forwardRef(
1921
+ ), or = _.forwardRef(
1958
1922
  function({ className: r, size: a = "md", disabled: s = !1, children: t, ...o }, i) {
1959
1923
  return /* @__PURE__ */ n.jsxs(
1960
1924
  "button",
1961
1925
  {
1962
1926
  ref: i,
1963
1927
  type: "button",
1964
- className: f(vt({ size: a }), r),
1928
+ className: u(jt({ size: a }), r),
1965
1929
  disabled: s,
1966
1930
  "aria-disabled": s,
1967
1931
  "aria-label": `${t}, removable`,
@@ -1969,30 +1933,51 @@ const mt = g(
1969
1933
  ...o,
1970
1934
  children: [
1971
1935
  /* @__PURE__ */ n.jsx("span", { className: "flex-shrink-0", children: t }),
1972
- /* @__PURE__ */ n.jsx(E, { as: le, color: "inherit", size: a === "lg" ? "md" : "sm" })
1936
+ /* @__PURE__ */ n.jsx(N, { as: le, color: "inherit", size: a === "lg" ? "md" : "sm" })
1973
1937
  ]
1974
1938
  }
1975
1939
  );
1976
1940
  }
1977
- ), yt = [
1941
+ ), kt = [
1978
1942
  // Headings
1979
1943
  "[&_h1]:text-2xl",
1944
+ "[&_h1]:leading-loose",
1980
1945
  "[&_h1]:font-bold",
1981
1946
  "[&_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",
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",
1988
1967
  // Lists
1989
1968
  "[&_ul]:list-disc",
1990
1969
  "[&_ul]:ml-6",
1991
1970
  "[&_ul]:my-2",
1971
+ "[&_ul]:text-base",
1972
+ "[&_ul]:leading-normal",
1992
1973
  "[&_ol]:list-decimal",
1993
1974
  "[&_ol]:ml-6",
1994
1975
  "[&_ol]:my-2",
1976
+ "[&_ol]:text-base",
1977
+ "[&_ol]:leading-normal",
1995
1978
  "[&_li]:my-0.5",
1979
+ "[&_li]:text-base",
1980
+ "[&_li]:leading-normal",
1996
1981
  // Links
1997
1982
  "[&_a]:text-primary",
1998
1983
  "[&_a]:underline",
@@ -2004,20 +1989,26 @@ const mt = g(
2004
1989
  "[&_u]:underline",
2005
1990
  "[&_s]:line-through",
2006
1991
  // Paragraphs
1992
+ "[&_p]:text-base",
1993
+ "[&_p]:leading-normal",
1994
+ "[&_p]:text-ghost",
2007
1995
  "[&_p]:my-2",
2008
1996
  "[&_p:first-child]:mt-0",
2009
1997
  "[&_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"
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
2015
2009
  }
2016
- },
2017
- defaultVariants: {
2018
- scrollable: !1
2019
2010
  }
2020
- }), kt = z.forwardRef(({ content: e, scrollable: r = !1, maxHeight: a, className: s, ...t }, o) => /* @__PURE__ */ n.jsx(
2011
+ ), Et = _.forwardRef(({ content: e, scrollable: r = !1, maxHeight: a, className: s, ...t }, o) => /* @__PURE__ */ n.jsx(
2021
2012
  "div",
2022
2013
  {
2023
2014
  ref: o,
@@ -2025,16 +2016,16 @@ const mt = g(
2025
2016
  "aria-label": "Formatted text content",
2026
2017
  dangerouslySetInnerHTML: { __html: e },
2027
2018
  style: r && a ? { maxHeight: `${a}rem` } : void 0,
2028
- className: f(
2029
- jt({ scrollable: r }),
2030
- ...yt,
2019
+ className: u(
2020
+ Nt({ scrollable: r }),
2021
+ ...kt,
2031
2022
  s
2032
2023
  ),
2033
2024
  ...t
2034
2025
  }
2035
2026
  ));
2036
- kt.displayName = "FormattedText";
2037
- const Nt = g("h-px w-full bg-border border-0", {
2027
+ Et.displayName = "FormattedText";
2028
+ const Ct = f("h-px w-full bg-border border-0", {
2038
2029
  variants: {
2039
2030
  hasMargin: {
2040
2031
  true: "mb-4",
@@ -2044,16 +2035,16 @@ const Nt = g("h-px w-full bg-border border-0", {
2044
2035
  defaultVariants: {
2045
2036
  hasMargin: !1
2046
2037
  }
2047
- }), sr = h(
2038
+ }), ir = g(
2048
2039
  ({ hasMargin: e = !1, className: r, ...a }, s) => /* @__PURE__ */ n.jsx(
2049
2040
  "hr",
2050
2041
  {
2051
2042
  ref: s,
2052
- className: f(Nt({ hasMargin: e }), r),
2043
+ className: u(Ct({ hasMargin: e }), r),
2053
2044
  ...a
2054
2045
  }
2055
2046
  )
2056
- ), Et = g(
2047
+ ), _t = f(
2057
2048
  "flex flex-col items-center justify-center text-center border border-border rounded-lg bg-background",
2058
2049
  {
2059
2050
  variants: {
@@ -2072,37 +2063,37 @@ const Nt = g("h-px w-full bg-border border-0", {
2072
2063
  hasGrayBackground: !1
2073
2064
  }
2074
2065
  }
2075
- ), Ct = g(
2066
+ ), Vt = f(
2076
2067
  "flex flex-row items-center gap-3 mb-2"
2077
- ), or = z.forwardRef(
2068
+ ), lr = _.forwardRef(
2078
2069
  function({ icon: r, title: a, subtitle: s, action: t, className: o, hasGrayBackground: i, ...l }, d) {
2079
2070
  return /* @__PURE__ */ n.jsxs(
2080
2071
  "section",
2081
2072
  {
2082
2073
  ref: d,
2083
- className: f(Et({ hasGrayBackground: i }), o),
2074
+ className: u(_t({ hasGrayBackground: i }), o),
2084
2075
  role: "status",
2085
2076
  "aria-label": "No results found",
2086
2077
  ...l,
2087
2078
  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 })
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 })
2091
2082
  ] }),
2092
- s && /* @__PURE__ */ n.jsx(j, { as: "p", align: "center", color: "gray", className: "mb-4", children: s }),
2083
+ s && /* @__PURE__ */ n.jsx(C, { as: "p", align: "center", color: "gray", className: "mb-4", children: s }),
2093
2084
  t && /* @__PURE__ */ n.jsx("div", { role: "group", "aria-label": "Available actions", children: t })
2094
2085
  ]
2095
2086
  }
2096
2087
  );
2097
2088
  }
2098
- ), Q = R(null), zt = Q.Provider;
2089
+ ), Q = O(null), It = Q.Provider;
2099
2090
  function W() {
2100
- const e = O(Q);
2091
+ const e = S(Q);
2101
2092
  if (!e)
2102
2093
  throw new Error("Table compound components must be used within <Table>");
2103
2094
  return e;
2104
2095
  }
2105
- const B = (e) => {
2096
+ const q = (e) => {
2106
2097
  if (e < 1 || e > 12)
2107
2098
  throw new Error("Column span must be between 1 and 12");
2108
2099
  switch (e) {
@@ -2133,7 +2124,7 @@ const B = (e) => {
2133
2124
  default:
2134
2125
  return "grid-cols-2";
2135
2126
  }
2136
- }, Vt = (e) => {
2127
+ }, zt = (e) => {
2137
2128
  if (e < 1 || e > 12)
2138
2129
  throw new Error("Column span must be between 1 and 12");
2139
2130
  switch (e) {
@@ -2164,60 +2155,60 @@ const B = (e) => {
2164
2155
  default:
2165
2156
  return "col-span-2";
2166
2157
  }
2167
- }, It = h(
2158
+ }, At = g(
2168
2159
  ({ children: e, className: r, ...a }, s) => {
2169
2160
  const { columns: t } = W();
2170
2161
  return /* @__PURE__ */ n.jsx(
2171
2162
  "div",
2172
2163
  {
2173
2164
  role: "rowgroup",
2174
- className: f("bg-neutral-soft", r),
2165
+ className: u("bg-neutral-soft", r),
2175
2166
  ...a,
2176
2167
  ref: s,
2177
2168
  children: /* @__PURE__ */ n.jsx(
2178
2169
  "div",
2179
2170
  {
2180
2171
  role: "row",
2181
- className: f("grid gap-4", B(t)),
2172
+ className: u("grid gap-4", q(t)),
2182
2173
  children: e
2183
2174
  }
2184
2175
  )
2185
2176
  }
2186
2177
  );
2187
2178
  }
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(
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(
2191
2182
  ({ children: e, className: r, ...a }, s) => {
2192
2183
  const { columns: t } = W();
2193
2184
  return /* @__PURE__ */ n.jsx(
2194
2185
  "div",
2195
2186
  {
2196
2187
  role: "rowgroup",
2197
- className: f("bg-neutral-soft", r),
2188
+ className: u("bg-neutral-soft", r),
2198
2189
  ...a,
2199
2190
  ref: s,
2200
2191
  children: /* @__PURE__ */ n.jsx(
2201
2192
  "div",
2202
2193
  {
2203
2194
  role: "row",
2204
- className: f("grid gap-4", B(t)),
2195
+ className: u("grid gap-4", q(t)),
2205
2196
  children: e
2206
2197
  }
2207
2198
  )
2208
2199
  }
2209
2200
  );
2210
2201
  }
2211
- ), Mt = h(
2202
+ ), Rt = g(
2212
2203
  ({ children: e, className: r, ...a }, s) => {
2213
2204
  const { columns: t } = W();
2214
2205
  return /* @__PURE__ */ n.jsx(
2215
2206
  "div",
2216
2207
  {
2217
2208
  role: "row",
2218
- className: f(
2209
+ className: u(
2219
2210
  "grid gap-4",
2220
- B(t),
2211
+ q(t),
2221
2212
  "border-b border-border last:border-0",
2222
2213
  r
2223
2214
  ),
@@ -2227,7 +2218,7 @@ const B = (e) => {
2227
2218
  }
2228
2219
  );
2229
2220
  }
2230
- ), Y = h(
2221
+ ), Y = g(
2231
2222
  ({ as: e = "td", span: r, align: a = "left", children: s, className: t, ...o }, i) => {
2232
2223
  const l = e === "th" ? "columnheader" : "cell";
2233
2224
  let d = "text-left";
@@ -2236,10 +2227,10 @@ const B = (e) => {
2236
2227
  {
2237
2228
  ref: i,
2238
2229
  role: l,
2239
- className: f(
2230
+ className: u(
2240
2231
  "px-4 py-2",
2241
2232
  "[&:not(:last-child)]:border-r [&:not(:last-child)]:border-border",
2242
- Vt(r),
2233
+ zt(r),
2243
2234
  d,
2244
2235
  "truncate overflow-hidden whitespace-nowrap",
2245
2236
  t
@@ -2249,39 +2240,39 @@ const B = (e) => {
2249
2240
  }
2250
2241
  );
2251
2242
  }
2252
- ), St = h(
2243
+ ), Tt = g(
2253
2244
  (e, r) => /* @__PURE__ */ n.jsx(
2254
2245
  Y,
2255
2246
  {
2256
2247
  ...e,
2257
2248
  as: "td",
2258
2249
  ref: r,
2259
- className: f(
2250
+ className: u(
2260
2251
  "truncate overflow-hidden whitespace-nowrap",
2261
2252
  e.className
2262
2253
  )
2263
2254
  }
2264
2255
  )
2265
- ), _t = h(
2256
+ ), Ot = g(
2266
2257
  (e, r) => /* @__PURE__ */ n.jsx(
2267
2258
  Y,
2268
2259
  {
2269
2260
  ...e,
2270
2261
  as: "th",
2271
2262
  ref: r,
2272
- className: f(
2263
+ className: u(
2273
2264
  "truncate overflow-hidden whitespace-nowrap",
2274
2265
  e.className
2275
2266
  )
2276
2267
  }
2277
2268
  )
2278
- ), Rt = h(
2279
- ({ children: e, className: r, columns: a = 12, ...s }, t) => /* @__PURE__ */ n.jsx(zt, { value: { columns: a }, children: /* @__PURE__ */ n.jsx(
2269
+ ), St = g(
2270
+ ({ children: e, className: r, columns: a = 12, ...s }, t) => /* @__PURE__ */ n.jsx(It, { value: { columns: a }, children: /* @__PURE__ */ n.jsx(
2280
2271
  "div",
2281
2272
  {
2282
2273
  ref: t,
2283
2274
  role: "table",
2284
- className: f(
2275
+ className: u(
2285
2276
  // Versaur design system: border, background, shadow, rounded, spacing
2286
2277
  "w-full overflow-x-auto border border-border bg-background rounded-lg ",
2287
2278
  "text-foreground",
@@ -2293,14 +2284,14 @@ const B = (e) => {
2293
2284
  children: e
2294
2285
  }
2295
2286
  ) })
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(
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(
2304
2295
  // Base classes
2305
2296
  "block transition-colors duration-200",
2306
2297
  {
@@ -2308,14 +2299,14 @@ const B = (e) => {
2308
2299
  variant: {
2309
2300
  white: "bg-white border border-border",
2310
2301
  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",
2302
+ primary: "bg-primary border border-primary",
2303
+ secondary: "bg-secondary border border-secondary",
2304
+ tertiary: "bg-tertiary border border-tertiary",
2314
2305
  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"
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"
2319
2310
  },
2320
2311
  size: {
2321
2312
  xs: "p-2",
@@ -2335,23 +2326,30 @@ const B = (e) => {
2335
2326
  shape: "rounded"
2336
2327
  }
2337
2328
  }
2338
- ), lr = h(
2339
- ({ variant: e = "white", size: r = "md", shape: a = "rounded", className: s, ...t }, o) => /* @__PURE__ */ n.jsx(
2340
- "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,
2341
2339
  {
2342
- ref: o,
2343
- className: f(Ot({ variant: e, size: r, shape: a }), s),
2344
- ...t
2340
+ ref: i,
2341
+ className: u(Bt({ variant: r, size: a, shape: s }), t),
2342
+ ...o
2345
2343
  }
2346
2344
  )
2347
2345
  );
2348
- function Tt({ src: e }) {
2349
- const [r, a] = k(!1), [s, t] = k(!1), o = T(!1), i = () => {
2346
+ function Wt({ src: e }) {
2347
+ const [r, a] = j(!1), [s, t] = j(!1), o = B(!1), i = () => {
2350
2348
  a(!0);
2351
2349
  }, l = () => {
2352
2350
  t(!0);
2353
2351
  };
2354
- return C(() => {
2352
+ return E(() => {
2355
2353
  if (!e) return;
2356
2354
  const d = new Image();
2357
2355
  return d.src = e, d.onload = () => {
@@ -2368,7 +2366,7 @@ function Tt({ src: e }) {
2368
2366
  handleError: l
2369
2367
  };
2370
2368
  }
2371
- const Wt = g("block object-cover", {
2369
+ const qt = f("block object-cover", {
2372
2370
  variants: {
2373
2371
  position: {
2374
2372
  cover: "object-cover",
@@ -2398,7 +2396,7 @@ const Wt = g("block object-cover", {
2398
2396
  size: "auto",
2399
2397
  shape: "rectangle"
2400
2398
  }
2401
- }), Z = g(
2399
+ }), Z = f(
2402
2400
  "flex items-center justify-center bg-neutral-soft text-ghost border border-border",
2403
2401
  {
2404
2402
  variants: {
@@ -2421,7 +2419,7 @@ const Wt = g("block object-cover", {
2421
2419
  }
2422
2420
  }
2423
2421
  );
2424
- function Bt({
2422
+ function Pt({
2425
2423
  className: e,
2426
2424
  shape: r,
2427
2425
  size: a,
@@ -2431,12 +2429,12 @@ function Bt({
2431
2429
  return /* @__PURE__ */ n.jsx(
2432
2430
  de,
2433
2431
  {
2434
- className: f(Z({ shape: r, size: a }), e),
2432
+ className: u(Z({ shape: r, size: a }), e),
2435
2433
  style: { height: s, width: t }
2436
2434
  }
2437
2435
  );
2438
2436
  }
2439
- function qt({
2437
+ function Ht({
2440
2438
  alt: e,
2441
2439
  width: r,
2442
2440
  height: a,
@@ -2466,7 +2464,7 @@ function qt({
2466
2464
  }
2467
2465
  );
2468
2466
  }
2469
- const q = h(
2467
+ const P = g(
2470
2468
  ({
2471
2469
  src: e,
2472
2470
  alt: r,
@@ -2477,24 +2475,24 @@ const q = h(
2477
2475
  loading: i = "lazy",
2478
2476
  position: l = "cover",
2479
2477
  size: d = "auto",
2480
- shape: u,
2481
- className: m,
2478
+ shape: m,
2479
+ className: h,
2482
2480
  ...x
2483
2481
  }, p) => {
2484
- const { loaded: b, errored: w, handleLoad: v, handleError: N } = Tt({
2482
+ const { loaded: b, errored: w, handleLoad: v, handleError: k } = Wt({
2485
2483
  src: e
2486
2484
  }), y = typeof t == "number" ? t : Number(t), I = typeof o == "number" ? o : Number(o);
2487
2485
  return !b && !w ? /* @__PURE__ */ n.jsx(
2488
- Bt,
2486
+ Pt,
2489
2487
  {
2490
- shape: u,
2488
+ shape: m,
2491
2489
  width: y,
2492
2490
  height: I
2493
2491
  }
2494
2492
  ) : w ? /* @__PURE__ */ n.jsx(
2495
- qt,
2493
+ Ht,
2496
2494
  {
2497
- shape: u,
2495
+ shape: m,
2498
2496
  alt: r,
2499
2497
  width: y,
2500
2498
  height: I
@@ -2508,55 +2506,55 @@ const q = h(
2508
2506
  width: y,
2509
2507
  height: I,
2510
2508
  loading: i,
2511
- className: f(
2512
- Wt({
2509
+ className: u(
2510
+ qt({
2513
2511
  position: l,
2514
2512
  size: d,
2515
- shape: u
2513
+ shape: m
2516
2514
  }),
2517
- m
2515
+ h
2518
2516
  ),
2519
- onLoad: (A) => {
2520
- v(), a?.(A);
2517
+ onLoad: (z) => {
2518
+ v(), a?.(z);
2521
2519
  },
2522
- onError: (A) => {
2523
- N(), s?.(A);
2520
+ onError: (z) => {
2521
+ k(), s?.(z);
2524
2522
  },
2525
2523
  ...x
2526
2524
  }
2527
2525
  );
2528
2526
  }
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" }));
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" }));
2530
2528
  export {
2531
2529
  Ut as A,
2532
- Yt as B,
2533
- nr as C,
2534
- ar as F,
2535
- G as H,
2536
- E as I,
2530
+ er as B,
2531
+ sr as C,
2532
+ or as F,
2533
+ L as H,
2534
+ N as I,
2537
2535
  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,
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,
2547
2545
  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,
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,
2561
2559
  Ne as v
2562
2560
  };