@dimasbaguspm/versaur 0.0.43 → 0.0.45

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,7 +1,7 @@
1
1
  import { c as cva, j as jsxRuntimeExports, a as cn } from "./index-DOdDlCoL.js";
2
2
  import * as React from "react";
3
3
  import React__default, { createContext, useContext, forwardRef, useState, useEffect, useCallback, useRef, useId, cloneElement } from "react";
4
- import { ChevronDown, CheckIcon, EllipsisVerticalIcon, X, XIcon, ImageOff } from "lucide-react";
4
+ import { ChevronDown, ChevronRight, CheckIcon, EllipsisVerticalIcon, X, XIcon, ImageOff } from "lucide-react";
5
5
  import ReactDOM from "react-dom";
6
6
  import { S as Skeleton } from "./skeleton-BNZyaRjo.js";
7
7
  const AccordionContext = createContext(
@@ -145,13 +145,13 @@ const AccordionContext = createContext(
145
145
  hasUnderline: r = !1,
146
146
  isCapitalize: i = !1,
147
147
  hasMargin: s = !1,
148
- align: o = "left",
149
- italic: a = !1,
148
+ align: n = "left",
149
+ italic: o = !1,
150
150
  clamp: l = "none",
151
151
  ellipsis: u = !1,
152
152
  className: c,
153
153
  children: f,
154
- ...n
154
+ ...a
155
155
  }, d) => {
156
156
  const h = `h${e}`;
157
157
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -164,15 +164,15 @@ const AccordionContext = createContext(
164
164
  hasUnderline: r,
165
165
  isCapitalize: i,
166
166
  hasMargin: s,
167
- align: o,
168
- italic: a,
167
+ align: n,
168
+ italic: o,
169
169
  clamp: l,
170
170
  ellipsis: u,
171
171
  level: e
172
172
  }),
173
173
  c
174
174
  ),
175
- ...n,
175
+ ...a,
176
176
  children: f
177
177
  }
178
178
  );
@@ -209,13 +209,13 @@ const iconVariants = cva("inline-flex items-center justify-center", {
209
209
  size: "md",
210
210
  color: "primary"
211
211
  }
212
- }), Icon = React__default.forwardRef(function({ as: t, color: r = "primary", size: i = "md", className: s, ...o }, a) {
212
+ }), Icon = React__default.forwardRef(function({ as: t, color: r = "primary", size: i = "md", className: s, ...n }, o) {
213
213
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
214
214
  t,
215
215
  {
216
- ref: a,
216
+ ref: o,
217
217
  className: iconVariants({ color: r, size: i, className: s }),
218
- ...o
218
+ ...n
219
219
  }
220
220
  );
221
221
  }), AccordionTitle = forwardRef(function({ className: t, children: r, ...i }, s) {
@@ -231,12 +231,12 @@ const iconVariants = cva("inline-flex items-center justify-center", {
231
231
  }
232
232
  );
233
233
  }), AccordionContent = forwardRef(function({ className: t, children: r, ...i }, s) {
234
- const { isOpen: o } = useAccordionContext();
234
+ const { isOpen: n } = useAccordionContext();
235
235
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
236
236
  "div",
237
237
  {
238
238
  ref: s,
239
- className: cn(accordionContentVariants({ isOpen: o }), t),
239
+ className: cn(accordionContentVariants({ isOpen: n }), t),
240
240
  ...i,
241
241
  children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: accordionContentInnerVariants(), children: r })
242
242
  }
@@ -260,13 +260,13 @@ const iconVariants = cva("inline-flex items-center justify-center", {
260
260
  subtitle: r,
261
261
  isDefaultOpen: i = !1,
262
262
  disabled: s = !1,
263
- hasMargin: o,
264
- className: a,
263
+ hasMargin: n,
264
+ className: o,
265
265
  children: l,
266
266
  ...u
267
267
  }, c) {
268
- const [f, n] = useState(i), d = () => {
269
- s || n((m) => !m);
268
+ const [f, a] = useState(i), d = () => {
269
+ s || a((x) => !x);
270
270
  }, h = {
271
271
  isOpen: f,
272
272
  toggle: d,
@@ -278,8 +278,8 @@ const iconVariants = cva("inline-flex items-center justify-center", {
278
278
  ref: c,
279
279
  className: cn(
280
280
  accordionVariants({ disabled: s }),
281
- a,
282
- o && "mb-4"
281
+ o,
282
+ n && "mb-4"
283
283
  ),
284
284
  ...u,
285
285
  children: [
@@ -318,6 +318,256 @@ const iconVariants = cva("inline-flex items-center justify-center", {
318
318
  Title: AccordionTitle,
319
319
  Content: AccordionContent,
320
320
  Icon: AccordionIcon
321
+ }), actionCardVariants = cva(
322
+ "group flex items-center justify-between transition-all duration-200 w-full",
323
+ {
324
+ variants: {
325
+ size: {
326
+ sm: "p-3",
327
+ md: "p-4",
328
+ lg: "p-5"
329
+ },
330
+ as: {
331
+ button: "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-light hover:bg-gray-50 cursor-pointer",
332
+ div: ""
333
+ }
334
+ },
335
+ defaultVariants: {
336
+ size: "md",
337
+ as: "button"
338
+ }
339
+ }
340
+ ), iconContainerVariants = cva(
341
+ "bg-gradient-to-br from-gray-100 to-gray-200 rounded-xl flex items-center justify-center group-hover:from-primary-soft group-hover:to-primary-light duration-200",
342
+ {
343
+ variants: {
344
+ size: {
345
+ sm: "w-8 h-8",
346
+ md: "w-10 h-10",
347
+ lg: "w-12 h-12"
348
+ }
349
+ },
350
+ defaultVariants: {
351
+ size: "md"
352
+ }
353
+ }
354
+ ), arrowVariants = cva(
355
+ "inline-flex items-center justify-center text-ghost-bold transition-colors duration-200",
356
+ {
357
+ variants: {
358
+ size: {
359
+ sm: "w-3 h-3",
360
+ md: "w-4 h-4",
361
+ lg: "w-5 h-5"
362
+ }
363
+ },
364
+ defaultVariants: {
365
+ size: "md"
366
+ }
367
+ }
368
+ ), textVariants = cva("", {
369
+ variants: {
370
+ color: {
371
+ primary: "text-primary",
372
+ secondary: "text-secondary",
373
+ tertiary: "text-tertiary",
374
+ ghost: "text-ghost",
375
+ neutral: "text-ghost",
376
+ success: "text-success",
377
+ info: "text-info",
378
+ warning: "text-warning",
379
+ danger: "text-danger",
380
+ inherit: "",
381
+ gray: "text-gray-500",
382
+ black: "text-black",
383
+ white: "text-white"
384
+ },
385
+ hasUnderline: {
386
+ true: "underline",
387
+ false: ""
388
+ },
389
+ isCapitalize: {
390
+ true: "capitalize",
391
+ false: ""
392
+ },
393
+ align: {
394
+ left: "text-left",
395
+ center: "text-center",
396
+ right: "text-right",
397
+ justify: "text-justify"
398
+ },
399
+ italic: {
400
+ true: "italic",
401
+ false: ""
402
+ },
403
+ clamp: {
404
+ 1: "line-clamp-1",
405
+ 2: "line-clamp-2",
406
+ 3: "line-clamp-3",
407
+ 4: "line-clamp-4",
408
+ 5: "line-clamp-5",
409
+ none: ""
410
+ },
411
+ ellipsis: {
412
+ true: "truncate",
413
+ false: ""
414
+ },
415
+ as: {
416
+ h1: "font-bold text-4xl leading-loose",
417
+ h2: "font-semibold text-3xl leading-relaxed",
418
+ h3: "font-medium text-2xl leading-relaxed",
419
+ h4: "font-bold text-xl leading-normal",
420
+ h5: "font-semibold text-lg leading-normal",
421
+ h6: "font-medium text-base leading-normal",
422
+ p: "font-normal text-base leading-normal",
423
+ span: "font-normal text-base leading-normal",
424
+ label: "font-normal text-xs leading-normal"
425
+ }
426
+ },
427
+ defaultVariants: {
428
+ color: "neutral",
429
+ hasUnderline: !1,
430
+ isCapitalize: !1,
431
+ align: "left",
432
+ italic: !1,
433
+ clamp: "none",
434
+ ellipsis: !1,
435
+ as: "span"
436
+ }
437
+ }), Text = forwardRef(
438
+ ({
439
+ as: e = "span",
440
+ color: t = "ghost",
441
+ hasUnderline: r = !1,
442
+ isCapitalize: i = !1,
443
+ align: s = "left",
444
+ italic: n = !1,
445
+ clamp: o = "none",
446
+ ellipsis: l = !1,
447
+ fontSize: u,
448
+ fontWeight: c,
449
+ className: f,
450
+ children: a,
451
+ ...d
452
+ }, h) => {
453
+ const y = [
454
+ "h1",
455
+ "h2",
456
+ "h3",
457
+ "h4",
458
+ "h5",
459
+ "h6",
460
+ "p",
461
+ "span",
462
+ "label"
463
+ ].includes(e) ? e : "span", w = u ? `text-${u}` : "", j = c ? `font-${c}` : "";
464
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
465
+ e,
466
+ {
467
+ ref: h,
468
+ className: cn(
469
+ textVariants({
470
+ color: t,
471
+ hasUnderline: r,
472
+ isCapitalize: i,
473
+ align: s,
474
+ italic: n,
475
+ clamp: o,
476
+ ellipsis: l,
477
+ // @ts-expect-error - `as` is not a valid variant
478
+ as: y
479
+ }),
480
+ w,
481
+ j,
482
+ f
483
+ ),
484
+ ...d,
485
+ children: a
486
+ }
487
+ );
488
+ }
489
+ ), ActionCardGroup = forwardRef(
490
+ ({ children: e, className: t }, r) => /* @__PURE__ */ jsxRuntimeExports.jsx(
491
+ "div",
492
+ {
493
+ ref: r,
494
+ className: cn(
495
+ "bg-background border border-border rounded-lg overflow-hidden",
496
+ "divide-y divide-border",
497
+ t
498
+ ),
499
+ role: "group",
500
+ children: e
501
+ }
502
+ )
503
+ ), ActionCardRoot = forwardRef(
504
+ ({
505
+ size: e = "md",
506
+ icon: t,
507
+ title: r,
508
+ subtitle: i,
509
+ badge: s,
510
+ showArrow: n = !0,
511
+ as: o = "button",
512
+ className: l,
513
+ ...u
514
+ }, c) => /* @__PURE__ */ jsxRuntimeExports.jsxs(
515
+ o,
516
+ {
517
+ ref: c,
518
+ className: cn(actionCardVariants({ size: e, as: o }), l),
519
+ ...u,
520
+ children: [
521
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-4 flex-1", children: [
522
+ t && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: cn(iconContainerVariants({ size: e })), children: t }),
523
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex-1", children: [
524
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-3 mb-1", children: [
525
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
526
+ Text,
527
+ {
528
+ as: "span",
529
+ fontSize: e === "sm" ? "sm" : "base",
530
+ fontWeight: "semibold",
531
+ color: "ghost",
532
+ className: "text-left leading-normal",
533
+ children: r
534
+ }
535
+ ),
536
+ s && /* @__PURE__ */ jsxRuntimeExports.jsx(
537
+ "div",
538
+ {
539
+ className: "flex flex-wrap items-center flex-row justify-start gap-3",
540
+ role: "group",
541
+ children: s
542
+ }
543
+ )
544
+ ] }),
545
+ i && /* @__PURE__ */ jsxRuntimeExports.jsx(
546
+ Text,
547
+ {
548
+ as: "p",
549
+ fontSize: "sm",
550
+ color: "gray",
551
+ className: "text-left leading-normal",
552
+ children: i
553
+ }
554
+ )
555
+ ] })
556
+ ] }),
557
+ n && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex items-center gap-3", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
558
+ Icon,
559
+ {
560
+ as: ChevronRight,
561
+ className: cn(arrowVariants({ size: e })),
562
+ color: "ghost",
563
+ "aria-hidden": "true"
564
+ }
565
+ ) })
566
+ ]
567
+ }
568
+ )
569
+ ), ActionCard = Object.assign(ActionCardRoot, {
570
+ Group: ActionCardGroup
321
571
  }), alertVariants = cva(
322
572
  "relative flex items-center gap-2 rounded-md p-2 text-sm transition-all duration-200",
323
573
  {
@@ -462,14 +712,14 @@ const iconVariants = cva("inline-flex items-center justify-center", {
462
712
  icon: r,
463
713
  className: i,
464
714
  children: s,
465
- ...o
466
- }, a) => /* @__PURE__ */ jsxRuntimeExports.jsxs(
715
+ ...n
716
+ }, o) => /* @__PURE__ */ jsxRuntimeExports.jsxs(
467
717
  "div",
468
718
  {
469
- ref: a,
719
+ ref: o,
470
720
  role: "alert",
471
721
  className: cn(alertVariants({ variant: e, color: t }), i),
472
- ...o,
722
+ ...n,
473
723
  children: [
474
724
  r && /* @__PURE__ */ jsxRuntimeExports.jsx(AlertIcon, { children: r }),
475
725
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-1", children: s })
@@ -542,149 +792,28 @@ const iconVariants = cva("inline-flex items-center justify-center", {
542
792
  color: r = "primary",
543
793
  fontSize: i = "base",
544
794
  fontWeight: s = "medium",
545
- quiet: o = !1,
546
- ...a
795
+ quiet: n = !1,
796
+ ...o
547
797
  }, l) => /* @__PURE__ */ jsxRuntimeExports.jsx(
548
798
  "a",
549
799
  {
550
800
  ref: l,
551
801
  className: cn(
552
- anchorVariants({ color: r, fontSize: i, fontWeight: s, quiet: o }),
802
+ anchorVariants({ color: r, fontSize: i, fontWeight: s, quiet: n }),
553
803
  t
554
804
  ),
555
- ...a,
805
+ ...o,
556
806
  children: e
557
807
  }
558
808
  )
559
- ), textVariants = cva("", {
560
- variants: {
561
- color: {
562
- primary: "text-primary",
563
- secondary: "text-secondary",
564
- tertiary: "text-tertiary",
565
- ghost: "text-ghost",
566
- neutral: "text-ghost",
567
- success: "text-success",
568
- info: "text-info",
569
- warning: "text-warning",
570
- danger: "text-danger",
571
- inherit: "",
572
- gray: "text-gray-500",
573
- black: "text-black",
574
- white: "text-white"
575
- },
576
- hasUnderline: {
577
- true: "underline",
578
- false: ""
579
- },
580
- isCapitalize: {
581
- true: "capitalize",
582
- false: ""
583
- },
584
- align: {
585
- left: "text-left",
586
- center: "text-center",
587
- right: "text-right",
588
- justify: "text-justify"
589
- },
590
- italic: {
591
- true: "italic",
592
- false: ""
593
- },
594
- clamp: {
595
- 1: "line-clamp-1",
596
- 2: "line-clamp-2",
597
- 3: "line-clamp-3",
598
- 4: "line-clamp-4",
599
- 5: "line-clamp-5",
600
- none: ""
601
- },
602
- ellipsis: {
603
- true: "truncate",
604
- false: ""
605
- },
606
- as: {
607
- h1: "font-bold text-4xl leading-loose",
608
- h2: "font-semibold text-3xl leading-relaxed",
609
- h3: "font-medium text-2xl leading-relaxed",
610
- h4: "font-bold text-xl leading-normal",
611
- h5: "font-semibold text-lg leading-normal",
612
- h6: "font-medium text-base leading-normal",
613
- p: "font-normal text-base leading-normal",
614
- span: "font-normal text-base leading-normal",
615
- label: "font-normal text-xs leading-normal"
616
- }
617
- },
618
- defaultVariants: {
619
- color: "neutral",
620
- hasUnderline: !1,
621
- isCapitalize: !1,
622
- align: "left",
623
- italic: !1,
624
- clamp: "none",
625
- ellipsis: !1,
626
- as: "span"
627
- }
628
- }), Text = forwardRef(
629
- ({
630
- as: e = "span",
631
- color: t = "ghost",
632
- hasUnderline: r = !1,
633
- isCapitalize: i = !1,
634
- align: s = "left",
635
- italic: o = !1,
636
- clamp: a = "none",
637
- ellipsis: l = !1,
638
- fontSize: u,
639
- fontWeight: c,
640
- className: f,
641
- children: n,
642
- ...d
643
- }, h) => {
644
- const y = [
645
- "h1",
646
- "h2",
647
- "h3",
648
- "h4",
649
- "h5",
650
- "h6",
651
- "p",
652
- "span",
653
- "label"
654
- ].includes(e) ? e : "span", w = u ? `text-${u}` : "", R = c ? `font-${c}` : "";
655
- return /* @__PURE__ */ jsxRuntimeExports.jsx(
656
- e,
657
- {
658
- ref: h,
659
- className: cn(
660
- textVariants({
661
- color: t,
662
- hasUnderline: r,
663
- isCapitalize: i,
664
- align: s,
665
- italic: o,
666
- clamp: a,
667
- ellipsis: l,
668
- // @ts-expect-error - `as` is not a valid variant
669
- as: y
670
- }),
671
- w,
672
- R,
673
- f
674
- ),
675
- ...d,
676
- children: n
677
- }
678
- );
679
- }
680
809
  ), Attribute = forwardRef(
681
- function({ title: t, children: r, className: i, hasMargin: s, ...o }, a) {
810
+ function({ title: t, children: r, className: i, hasMargin: s, ...n }, o) {
682
811
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(
683
812
  "div",
684
813
  {
685
- ref: a,
814
+ ref: o,
686
815
  className: cn("space-y-1", i, s && "mb-4"),
687
- ...o,
816
+ ...n,
688
817
  children: [
689
818
  /* @__PURE__ */ jsxRuntimeExports.jsx(
690
819
  Text,
@@ -763,17 +892,17 @@ function getGridCols(e = 4) {
763
892
  return "grid-cols-4";
764
893
  }
765
894
  }
766
- const AttributeListItem = forwardRef(function({ children: t, className: r, span: i = 1, title: s, ...o }, a) {
895
+ const AttributeListItem = forwardRef(function({ children: t, className: r, span: i = 1, title: s, ...n }, o) {
767
896
  const l = getColSpan(i);
768
- return /* @__PURE__ */ jsxRuntimeExports.jsx("li", { ref: a, className: cn(l, r), ...o, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Attribute, { title: s, children: t }) });
897
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("li", { ref: o, className: cn(l, r), ...n, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Attribute, { title: s, children: t }) });
769
898
  }), AttributeListRoot = forwardRef(
770
- function({ children: t, className: r, columns: i = 4, ...s }, o) {
771
- const a = getGridCols(i);
899
+ function({ children: t, className: r, columns: i = 4, ...s }, n) {
900
+ const o = getGridCols(i);
772
901
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
773
902
  "ul",
774
903
  {
775
- ref: o,
776
- className: cn("grid gap-4", a, r),
904
+ ref: n,
905
+ className: cn("grid gap-4", o, r),
777
906
  ...s,
778
907
  children: t
779
908
  }
@@ -830,19 +959,19 @@ const AttributeListItem = forwardRef(function({ children: t, className: r, span:
830
959
  shape: r = "circle",
831
960
  className: i,
832
961
  children: s,
833
- ...o
834
- }, a) => /* @__PURE__ */ jsxRuntimeExports.jsx(
962
+ ...n
963
+ }, o) => /* @__PURE__ */ jsxRuntimeExports.jsx(
835
964
  "div",
836
965
  {
837
- ref: a,
966
+ ref: o,
838
967
  className: cn(avatarVariants({ variant: e, size: t, shape: r }), i),
839
- ...o,
968
+ ...n,
840
969
  children: s
841
970
  }
842
971
  )
843
972
  ), AvatarImage = forwardRef(
844
- ({ src: e, alt: t, className: r, onError: i, ...s }, o) => {
845
- const [a, l] = useState(!1);
973
+ ({ src: e, alt: t, className: r, onError: i, ...s }, n) => {
974
+ const [o, l] = useState(!1);
846
975
  useEffect(() => {
847
976
  l(!1);
848
977
  }, [e]);
@@ -852,10 +981,10 @@ const AttributeListItem = forwardRef(function({ children: t, className: r, span:
852
981
  },
853
982
  [i]
854
983
  );
855
- return a ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(
984
+ return o ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(
856
985
  "img",
857
986
  {
858
- ref: o,
987
+ ref: n,
859
988
  src: e,
860
989
  alt: t,
861
990
  className: cn(avatarImageVariants(), r),
@@ -1063,12 +1192,12 @@ const AttributeListItem = forwardRef(function({ children: t, className: r, span:
1063
1192
  color: r = "primary",
1064
1193
  size: i = "md",
1065
1194
  iconLeft: s,
1066
- iconRight: o,
1067
- className: a,
1195
+ iconRight: n,
1196
+ className: o,
1068
1197
  children: l,
1069
1198
  ...u
1070
1199
  }, c) => {
1071
- const d = !(l != null && l !== "") && !!(s || o);
1200
+ const d = !(l != null && l !== "") && !!(s || n);
1072
1201
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
1073
1202
  "span",
1074
1203
  {
@@ -1081,24 +1210,24 @@ const AttributeListItem = forwardRef(function({ children: t, className: r, span:
1081
1210
  size: i,
1082
1211
  iconOnly: d
1083
1212
  }),
1084
- a
1213
+ o
1085
1214
  ),
1086
1215
  ...u,
1087
1216
  children: d ? (
1088
1217
  // Icon-only mode: display only the icon
1089
- s || o
1218
+ s || n
1090
1219
  ) : (
1091
1220
  // Normal mode: display icon(s) and text
1092
1221
  /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
1093
1222
  s,
1094
1223
  l,
1095
- o
1224
+ n
1096
1225
  ] })
1097
1226
  )
1098
1227
  }
1099
1228
  );
1100
1229
  }
1101
- ), SvgSpenicleSquare = (e) => /* @__PURE__ */ React.createElement("svg", { width: 32, height: 32, viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ React.createElement("title", null, "Spenicle"), /* @__PURE__ */ React.createElement("rect", { width: 32, height: 32, fill: "#e07a5f" }), /* @__PURE__ */ React.createElement("g", { transform: "translate(16, 16) scale(0.625) translate(-12, -12)" }, /* @__PURE__ */ React.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" }))), SvgSpenicleRounded = (e) => /* @__PURE__ */ React.createElement("svg", { width: 32, height: 32, viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ React.createElement("title", null, "Spenicle"), /* @__PURE__ */ React.createElement("rect", { width: 32, height: 32, rx: 8, fill: "#e07a5f" }), /* @__PURE__ */ React.createElement("g", { transform: "translate(16, 16) scale(0.625) translate(-12, -12)" }, /* @__PURE__ */ React.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" }))), SvgSpenicleCircle = (e) => /* @__PURE__ */ React.createElement("svg", { width: 32, height: 32, viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ React.createElement("title", null, "Spenicle"), /* @__PURE__ */ React.createElement("circle", { cx: 16, cy: 16, r: 16, fill: "#e07a5f" }), /* @__PURE__ */ React.createElement("g", { transform: "translate(16, 16) scale(0.625) translate(-12, -12)" }, /* @__PURE__ */ React.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" }))), brandSizeClass = cva("", {
1230
+ ), SvgSpenicleSquare = (e) => /* @__PURE__ */ React.createElement("svg", { width: 32, height: 32, viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ React.createElement("title", null, "Spenicle"), /* @__PURE__ */ React.createElement("rect", { width: 32, height: 32, fill: "#e07a5f" }), /* @__PURE__ */ React.createElement("g", { transform: "translate(16, 16) scale(0.625) translate(-12, -12)" }, /* @__PURE__ */ React.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" }))), SvgSpenicleRounded = (e) => /* @__PURE__ */ React.createElement("svg", { width: 32, height: 32, viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ React.createElement("title", null, "Spenicle"), /* @__PURE__ */ React.createElement("rect", { width: 32, height: 32, rx: 8, fill: "#e07a5f" }), /* @__PURE__ */ React.createElement("g", { transform: "translate(16, 16) scale(0.625) translate(-12, -12)" }, /* @__PURE__ */ React.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" }))), SvgSpenicleCircle = (e) => /* @__PURE__ */ React.createElement("svg", { width: 32, height: 32, viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ React.createElement("title", null, "Spenicle"), /* @__PURE__ */ React.createElement("circle", { cx: 16, cy: 16, r: 16, fill: "#e07a5f" }), /* @__PURE__ */ React.createElement("g", { transform: "translate(16, 16) scale(0.625) translate(-12, -12)" }, /* @__PURE__ */ React.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" }))), SvgHubSquare = (e) => /* @__PURE__ */ React.createElement("svg", { width: 32, height: 32, viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ React.createElement("title", null, "Hub (Square)"), /* @__PURE__ */ React.createElement("rect", { x: 0, y: 0, width: 32, height: 32, rx: 0, fill: "#e07a5f" }), /* @__PURE__ */ React.createElement("g", { transform: "translate(16, 16) scale(0.625) translate(-12, -12)" }, /* @__PURE__ */ React.createElement("path", { d: "M20.341 6.484A10 10 0 0 1 10.266 21.85", stroke: "white", strokeWidth: 2, fill: "none" }), /* @__PURE__ */ React.createElement("path", { d: "M3.659 17.516A10 10 0 0 1 13.74 2.152", stroke: "white", strokeWidth: 2, fill: "none" }), /* @__PURE__ */ React.createElement("circle", { cx: 12, cy: 12, r: 3, fill: "white" }), /* @__PURE__ */ React.createElement("circle", { cx: 19, cy: 5, r: 2, fill: "white" }), /* @__PURE__ */ React.createElement("circle", { cx: 5, cy: 19, r: 2, fill: "white" }))), SvgHubRounded = (e) => /* @__PURE__ */ React.createElement("svg", { width: 32, height: 32, viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ React.createElement("title", null, "Hub (Rounded)"), /* @__PURE__ */ React.createElement("rect", { x: 0, y: 0, width: 32, height: 32, rx: 8, fill: "#e07a5f" }), /* @__PURE__ */ React.createElement("g", { transform: "translate(16, 16) scale(0.625) translate(-12, -12)" }, /* @__PURE__ */ React.createElement("path", { d: "M20.341 6.484A10 10 0 0 1 10.266 21.85", stroke: "white", strokeWidth: 2, fill: "none" }), /* @__PURE__ */ React.createElement("path", { d: "M3.659 17.516A10 10 0 0 1 13.74 2.152", stroke: "white", strokeWidth: 2, fill: "none" }), /* @__PURE__ */ React.createElement("circle", { cx: 12, cy: 12, r: 3, fill: "white" }), /* @__PURE__ */ React.createElement("circle", { cx: 19, cy: 5, r: 2, fill: "white" }), /* @__PURE__ */ React.createElement("circle", { cx: 5, cy: 19, r: 2, fill: "white" }))), SvgHubCircle = (e) => /* @__PURE__ */ React.createElement("svg", { width: 32, height: 32, viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ React.createElement("title", null, "Hub (Circle)"), /* @__PURE__ */ React.createElement("circle", { cx: 16, cy: 16, r: 16, fill: "#e07a5f" }), /* @__PURE__ */ React.createElement("g", { transform: "translate(16, 16) scale(0.625) translate(-12, -12)" }, /* @__PURE__ */ React.createElement("path", { d: "M20.341 6.484A10 10 0 0 1 10.266 21.85", stroke: "white", strokeWidth: 2, fill: "none" }), /* @__PURE__ */ React.createElement("path", { d: "M3.659 17.516A10 10 0 0 1 13.74 2.152", stroke: "white", strokeWidth: 2, fill: "none" }), /* @__PURE__ */ React.createElement("circle", { cx: 12, cy: 12, r: 3, fill: "white" }), /* @__PURE__ */ React.createElement("circle", { cx: 19, cy: 5, r: 2, fill: "white" }), /* @__PURE__ */ React.createElement("circle", { cx: 5, cy: 19, r: 2, fill: "white" }))), SvgNotunicSquare = (e) => /* @__PURE__ */ React.createElement("svg", { width: 32, height: 32, viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ React.createElement("title", null, "Notunic"), /* @__PURE__ */ React.createElement("rect", { width: 32, height: 32, fill: "#e07a5f" }), /* @__PURE__ */ React.createElement("g", { transform: "translate(16, 16) scale(0.625) translate(-12, -12)" }, /* @__PURE__ */ React.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__ */ React.createElement("path", { d: "M2 6h4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ React.createElement("path", { d: "M2 10h4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ React.createElement("path", { d: "M2 14h4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ React.createElement("path", { d: "M2 18h4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ React.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" }))), SvgNotunicRounded = (e) => /* @__PURE__ */ React.createElement("svg", { width: 32, height: 32, viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ React.createElement("title", null, "Notunic"), /* @__PURE__ */ React.createElement("rect", { width: 32, height: 32, rx: 8, fill: "#e07a5f" }), /* @__PURE__ */ React.createElement("g", { transform: "translate(16, 16) scale(0.625) translate(-12, -12)" }, /* @__PURE__ */ React.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__ */ React.createElement("path", { d: "M2 6h4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ React.createElement("path", { d: "M2 10h4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ React.createElement("path", { d: "M2 14h4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ React.createElement("path", { d: "M2 18h4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ React.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" }))), SvgNotunicCircle = (e) => /* @__PURE__ */ React.createElement("svg", { width: 32, height: 32, viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ React.createElement("title", null, "Notunic"), /* @__PURE__ */ React.createElement("circle", { cx: 16, cy: 16, r: 16, fill: "#e07a5f" }), /* @__PURE__ */ React.createElement("g", { transform: "translate(16, 16) scale(0.625) translate(-12, -12)" }, /* @__PURE__ */ React.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__ */ React.createElement("path", { d: "M2 6h4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ React.createElement("path", { d: "M2 10h4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ React.createElement("path", { d: "M2 14h4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ React.createElement("path", { d: "M2 18h4", fill: "none", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ React.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" }))), brandSizeClass = cva("", {
1102
1231
  variants: {
1103
1232
  size: {
1104
1233
  xs: "h-6 w-6",
@@ -1112,17 +1241,29 @@ const AttributeListItem = forwardRef(function({ children: t, className: r, span:
1112
1241
  size: "md"
1113
1242
  }
1114
1243
  }), BrandLogo = forwardRef(
1115
- ({ shape: e = "square", size: t, ...r }, i) => {
1116
- const o = {
1117
- square: SvgSpenicleSquare,
1118
- rounded: SvgSpenicleRounded,
1119
- circle: SvgSpenicleCircle
1120
- }[e] || SvgSpenicleSquare;
1244
+ ({ shape: e = "square", size: t, name: r = "spenicle", ...i }, s) => {
1245
+ const n = {
1246
+ spenicle: {
1247
+ square: SvgSpenicleSquare,
1248
+ rounded: SvgSpenicleRounded,
1249
+ circle: SvgSpenicleCircle
1250
+ },
1251
+ hub: {
1252
+ square: SvgHubSquare,
1253
+ rounded: SvgHubRounded,
1254
+ circle: SvgHubCircle
1255
+ },
1256
+ notunic: {
1257
+ square: SvgNotunicSquare,
1258
+ rounded: SvgNotunicRounded,
1259
+ circle: SvgNotunicCircle
1260
+ }
1261
+ }, l = (n[r] || n.spenicle)[e || "square"] || SvgSpenicleSquare;
1121
1262
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
1122
- o,
1263
+ l,
1123
1264
  {
1124
- ref: i,
1125
- ...r,
1265
+ ref: s,
1266
+ ...i,
1126
1267
  className: cn("inline-block", brandSizeClass({ size: t }))
1127
1268
  }
1128
1269
  );
@@ -1134,7 +1275,7 @@ const AttributeListItem = forwardRef(function({ children: t, className: r, span:
1134
1275
  ref: s,
1135
1276
  className: cn("inline-flex items-center gap-2"),
1136
1277
  ...i,
1137
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(BrandLogo, { shape: r, size: t, "aria-hidden": "true" })
1278
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(BrandLogo, { name: e, shape: r, size: t, "aria-hidden": "true" })
1138
1279
  }
1139
1280
  )
1140
1281
  ), buttonVariants = cva(
@@ -1202,21 +1343,21 @@ const AttributeListItem = forwardRef(function({ children: t, className: r, span:
1202
1343
  variant: r = "primary",
1203
1344
  size: i = "md",
1204
1345
  disabled: s = !1,
1205
- type: o = "button",
1206
- children: a,
1346
+ type: n = "button",
1347
+ children: o,
1207
1348
  ...l
1208
1349
  }, u) {
1209
1350
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
1210
1351
  "button",
1211
1352
  {
1212
1353
  ref: u,
1213
- type: o,
1354
+ type: n,
1214
1355
  className: cn(buttonVariants({ variant: r, size: i }), t),
1215
1356
  disabled: s,
1216
1357
  "aria-disabled": s,
1217
1358
  inert: s ? !0 : void 0,
1218
1359
  ...l,
1219
- children: a
1360
+ children: o
1220
1361
  }
1221
1362
  );
1222
1363
  }
@@ -1250,8 +1391,8 @@ const AttributeListItem = forwardRef(function({ children: t, className: r, span:
1250
1391
  function useMenuOutsideClick(e, t, r, i) {
1251
1392
  useEffect(() => {
1252
1393
  if (!e) return;
1253
- function s(o) {
1254
- !t.current?.contains(o.target) && !r.current?.contains(o.target) && i();
1394
+ function s(n) {
1395
+ !t.current?.contains(n.target) && !r.current?.contains(n.target) && i();
1255
1396
  }
1256
1397
  return document.addEventListener("mousedown", s), () => document.removeEventListener("mousedown", s);
1257
1398
  }, [e, i, t, r]);
@@ -1278,100 +1419,100 @@ function isTriggerVisible(e, t) {
1278
1419
  return !0;
1279
1420
  }
1280
1421
  function useMenuPosition(e, t, r, i = "bottom-start", s) {
1281
- const [o, a] = useState({ isReady: !1 }), l = useCallback(() => {
1422
+ const [n, o] = useState({ isReady: !1 }), l = useCallback(() => {
1282
1423
  if (!e || !t.current) {
1283
- a({ isReady: !1 });
1424
+ o({ isReady: !1 });
1284
1425
  return;
1285
1426
  }
1286
1427
  if (!r.current) {
1287
1428
  const v = setTimeout(() => {
1288
- a({ isReady: !1 });
1429
+ o({ isReady: !1 });
1289
1430
  }, 0);
1290
1431
  return () => clearTimeout(v);
1291
1432
  }
1292
1433
  const u = t.current, c = r.current, f = getScrollableAncestors(u);
1293
1434
  if (!isTriggerVisible(u, f)) {
1294
- a({ isReady: !1 });
1435
+ o({ isReady: !1 });
1295
1436
  return;
1296
1437
  }
1297
- const n = u.getBoundingClientRect(), d = window.innerWidth, h = window.innerHeight;
1298
- let m = null;
1299
- s && ("getBoundingClientRect" in s ? m = s : "current" in s && (m = s.current));
1300
- const y = m || document.documentElement, w = y === document.documentElement ? { top: 0, bottom: h, left: 0, right: d } : y.getBoundingClientRect(), R = c.style.visibility, E = c.style.position, C = c.style.opacity;
1438
+ const a = u.getBoundingClientRect(), d = window.innerWidth, h = window.innerHeight;
1439
+ let x = null;
1440
+ s && ("getBoundingClientRect" in s ? x = s : "current" in s && (x = s.current));
1441
+ const y = x || document.documentElement, w = y === document.documentElement ? { top: 0, bottom: h, left: 0, right: d } : y.getBoundingClientRect(), j = c.style.visibility, E = c.style.position, C = c.style.opacity;
1301
1442
  c.style.visibility = "hidden", c.style.position = "absolute", c.style.opacity = "0";
1302
- const x = c.getBoundingClientRect();
1303
- c.style.visibility = R, c.style.position = E, c.style.opacity = C;
1304
- const N = w.bottom - n.bottom - 8, I = n.top - w.top - 8, V = w.right - n.left - 8, k = n.right - w.left - 8;
1443
+ const m = c.getBoundingClientRect();
1444
+ c.style.visibility = j, c.style.position = E, c.style.opacity = C;
1445
+ const k = w.bottom - a.bottom - 8, N = a.top - w.top - 8, I = w.right - a.left - 8, V = a.right - w.left - 8;
1305
1446
  let p = i;
1306
1447
  if (i === "auto") {
1307
1448
  const b = [
1308
1449
  {
1309
1450
  name: "bottom-start",
1310
- fits: N >= x.height && V >= x.width,
1311
- spaceUsed: N,
1451
+ fits: k >= m.height && I >= m.width,
1452
+ spaceUsed: k,
1312
1453
  priority: 1
1313
1454
  // Prefer bottom-start as default
1314
1455
  },
1315
1456
  {
1316
1457
  name: "bottom-end",
1317
- fits: N >= x.height && k >= x.width,
1318
- spaceUsed: N,
1458
+ fits: k >= m.height && V >= m.width,
1459
+ spaceUsed: k,
1319
1460
  priority: 2
1320
1461
  },
1321
1462
  {
1322
1463
  name: "top-start",
1323
- fits: I >= x.height && V >= x.width,
1324
- spaceUsed: I,
1464
+ fits: N >= m.height && I >= m.width,
1465
+ spaceUsed: N,
1325
1466
  priority: 3
1326
1467
  },
1327
1468
  {
1328
1469
  name: "top-end",
1329
- fits: I >= x.height && k >= x.width,
1330
- spaceUsed: I,
1470
+ fits: N >= m.height && V >= m.width,
1471
+ spaceUsed: N,
1331
1472
  priority: 4
1332
1473
  }
1333
- ].filter((j) => j.fits);
1474
+ ].filter((R) => R.fits);
1334
1475
  b.length > 0 ? p = b.sort(
1335
- (j, B) => j.priority - B.priority
1336
- )[0].name : N >= I ? p = V >= k ? "bottom-start" : "bottom-end" : p = V >= k ? "top-start" : "top-end";
1476
+ (R, S) => R.priority - S.priority
1477
+ )[0].name : k >= N ? p = I >= V ? "bottom-start" : "bottom-end" : p = I >= V ? "top-start" : "top-end";
1337
1478
  }
1338
1479
  const g = {};
1339
1480
  if (s)
1340
1481
  switch (g.position = "fixed", p) {
1341
1482
  case "bottom-start":
1342
- g.top = n.bottom + 4, g.left = n.left;
1483
+ g.top = a.bottom + 4, g.left = a.left;
1343
1484
  break;
1344
1485
  case "bottom-end":
1345
- g.top = n.bottom + 4, g.right = window.innerWidth - n.right;
1486
+ g.top = a.bottom + 4, g.right = window.innerWidth - a.right;
1346
1487
  break;
1347
1488
  case "top-start":
1348
- g.bottom = window.innerHeight - n.top + 4, g.left = n.left;
1489
+ g.bottom = window.innerHeight - a.top + 4, g.left = a.left;
1349
1490
  break;
1350
1491
  case "top-end":
1351
- g.bottom = window.innerHeight - n.top + 4, g.right = window.innerWidth - n.right;
1492
+ g.bottom = window.innerHeight - a.top + 4, g.right = window.innerWidth - a.right;
1352
1493
  break;
1353
1494
  }
1354
1495
  else
1355
1496
  switch (g.position = "absolute", p) {
1356
1497
  case "bottom-start":
1357
- g.top = n.height + 4, g.left = 0;
1498
+ g.top = a.height + 4, g.left = 0;
1358
1499
  break;
1359
1500
  case "bottom-end":
1360
- g.top = n.height + 4, g.right = 0;
1501
+ g.top = a.height + 4, g.right = 0;
1361
1502
  break;
1362
1503
  case "top-start":
1363
- g.bottom = n.height + 4, g.left = 0;
1504
+ g.bottom = a.height + 4, g.left = 0;
1364
1505
  break;
1365
1506
  case "top-end":
1366
- g.bottom = n.height + 4, g.right = 0;
1507
+ g.bottom = a.height + 4, g.right = 0;
1367
1508
  break;
1368
1509
  }
1369
1510
  if (s) {
1370
1511
  const v = {
1371
- top: p.startsWith("bottom") ? n.bottom + 4 : n.top - x.height - 4,
1372
- left: p.endsWith("start") ? n.left : n.right - x.width,
1373
- width: x.width,
1374
- height: x.height
1512
+ top: p.startsWith("bottom") ? a.bottom + 4 : a.top - m.height - 4,
1513
+ left: p.endsWith("start") ? a.left : a.right - m.width,
1514
+ width: m.width,
1515
+ height: m.height
1375
1516
  };
1376
1517
  if (v.left < w.left + 8) {
1377
1518
  const b = w.left + 8 - v.left;
@@ -1383,37 +1524,37 @@ function useMenuPosition(e, t, r, i = "bottom-start", s) {
1383
1524
  if (p.startsWith("bottom")) {
1384
1525
  const b = Math.max(
1385
1526
  50,
1386
- w.bottom - n.bottom - 16
1527
+ w.bottom - a.bottom - 16
1387
1528
  );
1388
- x.height > b && (g.maxHeight = b);
1529
+ m.height > b && (g.maxHeight = b);
1389
1530
  } else {
1390
1531
  const b = Math.max(
1391
1532
  50,
1392
- n.top - w.top - 16
1533
+ a.top - w.top - 16
1393
1534
  );
1394
- x.height > b && (g.maxHeight = b);
1535
+ m.height > b && (g.maxHeight = b);
1395
1536
  }
1396
1537
  } else {
1397
1538
  const v = {
1398
- top: p.startsWith("bottom") ? n.height + 4 : -x.height - 4,
1399
- left: p.endsWith("start") ? 0 : -x.width,
1400
- width: x.width,
1401
- height: x.height
1539
+ top: p.startsWith("bottom") ? a.height + 4 : -m.height - 4,
1540
+ left: p.endsWith("start") ? 0 : -m.width,
1541
+ width: m.width,
1542
+ height: m.height
1402
1543
  }, b = {
1403
- left: n.left,
1404
- right: n.right,
1405
- top: n.top,
1406
- bottom: n.bottom
1544
+ left: a.left,
1545
+ right: a.right,
1546
+ top: a.top,
1547
+ bottom: a.bottom
1407
1548
  };
1408
1549
  if (b.left + v.left < 8) {
1409
- const j = 8 - (b.left + v.left);
1410
- p.endsWith("start") ? g.left = (g.left || 0) + j : g.right = (g.right || 0) - j;
1550
+ const R = 8 - (b.left + v.left);
1551
+ p.endsWith("start") ? g.left = (g.left || 0) + R : g.right = (g.right || 0) - R;
1411
1552
  } else if (b.left + v.left + v.width > d - 8) {
1412
- const j = b.left + v.left + v.width - (d - 8);
1413
- p.endsWith("start") ? g.left = (g.left || 0) - j : g.right = (g.right || 0) + j;
1553
+ const R = b.left + v.left + v.width - (d - 8);
1554
+ p.endsWith("start") ? g.left = (g.left || 0) - R : g.right = (g.right || 0) + R;
1414
1555
  }
1415
1556
  }
1416
- g.isReady = !0, a(g);
1557
+ g.isReady = !0, o(g);
1417
1558
  }, [e, i, t, r, s]);
1418
1559
  return useEffect(() => {
1419
1560
  l();
@@ -1421,19 +1562,19 @@ function useMenuPosition(e, t, r, i = "bottom-start", s) {
1421
1562
  if (!e || !t.current) return;
1422
1563
  const u = t.current, c = getScrollableAncestors(u);
1423
1564
  let f = !1;
1424
- const n = () => {
1565
+ const a = () => {
1425
1566
  f || (requestAnimationFrame(() => {
1426
1567
  l(), f = !1;
1427
1568
  }), f = !0);
1428
1569
  };
1429
1570
  return c.forEach((d) => {
1430
- d === document.documentElement ? (window.addEventListener("scroll", n, { passive: !0 }), window.addEventListener("resize", n, { passive: !0 })) : d.addEventListener("scroll", n, { passive: !0 });
1571
+ d === document.documentElement ? (window.addEventListener("scroll", a, { passive: !0 }), window.addEventListener("resize", a, { passive: !0 })) : d.addEventListener("scroll", a, { passive: !0 });
1431
1572
  }), () => {
1432
1573
  c.forEach((d) => {
1433
- d === document.documentElement ? (window.removeEventListener("scroll", n), window.removeEventListener("resize", n)) : d.removeEventListener("scroll", n);
1574
+ d === document.documentElement ? (window.removeEventListener("scroll", a), window.removeEventListener("resize", a)) : d.removeEventListener("scroll", a);
1434
1575
  });
1435
1576
  };
1436
- }, [e, l, t]), o;
1577
+ }, [e, l, t]), n;
1437
1578
  }
1438
1579
  const MenuContext = createContext(void 0), MenuProvider = MenuContext.Provider, useMenuProvider = () => {
1439
1580
  const e = useContext(MenuContext);
@@ -1443,11 +1584,11 @@ const MenuContext = createContext(void 0), MenuProvider = MenuContext.Provider,
1443
1584
  }, MenuContent = forwardRef(
1444
1585
  ({ children: e }, t) => /* @__PURE__ */ jsxRuntimeExports.jsx("ul", { ref: t, className: "flex flex-col gap-1", children: e })
1445
1586
  ), MenuItem = forwardRef(
1446
- ({ children: e, disabled: t, onClick: r, active: i, ...s }, o) => {
1447
- const { preserve: a, onClose: l } = useMenuProvider(), u = (c) => {
1448
- r?.(c), a || l();
1587
+ ({ children: e, disabled: t, onClick: r, active: i, ...s }, n) => {
1588
+ const { preserve: o, onClose: l } = useMenuProvider(), u = (c) => {
1589
+ r?.(c), o || l();
1449
1590
  };
1450
- return /* @__PURE__ */ jsxRuntimeExports.jsx("li", { ref: o, ...s, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
1591
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("li", { ref: n, ...s, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
1451
1592
  Button,
1452
1593
  {
1453
1594
  variant: "ghost",
@@ -1475,24 +1616,24 @@ const MenuContext = createContext(void 0), MenuProvider = MenuContext.Provider,
1475
1616
  size: r = "md",
1476
1617
  content: i,
1477
1618
  children: s,
1478
- placement: o = "auto",
1479
- container: a,
1619
+ placement: n = "auto",
1620
+ container: o,
1480
1621
  preserve: l
1481
1622
  }) => {
1482
1623
  const u = useRef(null), c = useRef(null), f = useId();
1483
1624
  useMenuOutsideClick(e, c, u, t);
1484
- const n = useMenuPosition(
1625
+ const a = useMenuPosition(
1485
1626
  e,
1486
1627
  u,
1487
1628
  c,
1488
- o,
1489
- a || null
1629
+ n,
1630
+ o || null
1490
1631
  ), d = {
1491
- ...n,
1492
- position: n.position || "absolute",
1493
- overflowY: n.maxHeight ? "auto" : void 0,
1494
- overflowX: n.maxWidth ? "auto" : void 0
1495
- }, h = e && n.isReady, m = /* @__PURE__ */ jsxRuntimeExports.jsx(
1632
+ ...a,
1633
+ position: a.position || "absolute",
1634
+ overflowY: a.maxHeight ? "auto" : void 0,
1635
+ overflowX: a.maxWidth ? "auto" : void 0
1636
+ }, h = e && a.isReady, x = /* @__PURE__ */ jsxRuntimeExports.jsx(
1496
1637
  "div",
1497
1638
  {
1498
1639
  id: f,
@@ -1517,7 +1658,7 @@ const MenuContext = createContext(void 0), MenuProvider = MenuContext.Provider,
1517
1658
  "aria-controls": f
1518
1659
  }),
1519
1660
  e && /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
1520
- !n.isReady && /* @__PURE__ */ jsxRuntimeExports.jsx(
1661
+ !a.isReady && /* @__PURE__ */ jsxRuntimeExports.jsx(
1521
1662
  "div",
1522
1663
  {
1523
1664
  ref: c,
@@ -1533,7 +1674,7 @@ const MenuContext = createContext(void 0), MenuProvider = MenuContext.Provider,
1533
1674
  children: i
1534
1675
  }
1535
1676
  ),
1536
- n.isReady && /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: n.position === "fixed" ? /* @__PURE__ */ jsxRuntimeExports.jsx(OverlayPortal, { children: m }) : m })
1677
+ a.isReady && /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: a.position === "fixed" ? /* @__PURE__ */ jsxRuntimeExports.jsx(OverlayPortal, { children: x }) : x })
1537
1678
  ] })
1538
1679
  ] })
1539
1680
  }
@@ -1547,27 +1688,27 @@ const MenuContext = createContext(void 0), MenuProvider = MenuContext.Provider,
1547
1688
  children: r,
1548
1689
  onOpenChange: i,
1549
1690
  onClick: s,
1550
- placement: o,
1551
- container: a,
1691
+ placement: n,
1692
+ container: o,
1552
1693
  preserve: l,
1553
1694
  label: u,
1554
1695
  ...c
1555
- } = e ?? {}, [f, n] = useState(!1);
1696
+ } = e ?? {}, [f, a] = useState(!1);
1556
1697
  useEffect(() => {
1557
1698
  i?.(f);
1558
1699
  }, [f, i]);
1559
1700
  const d = () => {
1560
- n(!1);
1561
- }, h = (m) => {
1562
- n((y) => !y), s?.(m);
1701
+ a(!1);
1702
+ }, h = (x) => {
1703
+ a((y) => !y), s?.(x);
1563
1704
  };
1564
1705
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
1565
1706
  Menu,
1566
1707
  {
1567
1708
  isOpen: f,
1568
1709
  onOutsideClick: d,
1569
- placement: o,
1570
- container: a,
1710
+ placement: n,
1711
+ container: o,
1571
1712
  preserve: l,
1572
1713
  content: /* @__PURE__ */ jsxRuntimeExports.jsx(Menu.Content, { children: r }),
1573
1714
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { ref: t, onClick: h, ...c, children: u })
@@ -1671,8 +1812,8 @@ const buttonIconVariants = cva(
1671
1812
  variant: r = "primary",
1672
1813
  size: i = "md",
1673
1814
  shape: s = "rounded",
1674
- disabled: o = !1,
1675
- as: a,
1815
+ disabled: n = !1,
1816
+ as: o,
1676
1817
  "aria-label": l,
1677
1818
  ...u
1678
1819
  }, c) {
@@ -1689,15 +1830,15 @@ const buttonIconVariants = cva(
1689
1830
  }),
1690
1831
  t
1691
1832
  ),
1692
- disabled: o,
1693
- "aria-disabled": o,
1833
+ disabled: n,
1834
+ "aria-disabled": n,
1694
1835
  "aria-label": l,
1695
- inert: o ? !0 : void 0,
1836
+ inert: n ? !0 : void 0,
1696
1837
  ...u,
1697
1838
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(
1698
1839
  Icon,
1699
1840
  {
1700
- as: a,
1841
+ as: o,
1701
1842
  size: "sm",
1702
1843
  color: getIconColorFromVariant(r)
1703
1844
  }
@@ -1711,26 +1852,26 @@ const buttonIconVariants = cva(
1711
1852
  as: r = EllipsisVerticalIcon,
1712
1853
  children: i,
1713
1854
  onOpenChange: s,
1714
- onClick: o,
1715
- placement: a,
1855
+ onClick: n,
1856
+ placement: o,
1716
1857
  container: l,
1717
1858
  preserve: u,
1718
1859
  ...c
1719
- } = e ?? {}, [f, n] = useState(!1);
1860
+ } = e ?? {}, [f, a] = useState(!1);
1720
1861
  useEffect(() => {
1721
1862
  s?.(f);
1722
1863
  }, [f, s]);
1723
1864
  const d = () => {
1724
- n(!1);
1725
- }, h = (m) => {
1726
- n((y) => !y), o?.(m);
1865
+ a(!1);
1866
+ }, h = (x) => {
1867
+ a((y) => !y), n?.(x);
1727
1868
  };
1728
1869
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
1729
1870
  Menu,
1730
1871
  {
1731
1872
  isOpen: f,
1732
1873
  onOutsideClick: d,
1733
- placement: a,
1874
+ placement: o,
1734
1875
  container: l,
1735
1876
  preserve: u,
1736
1877
  content: /* @__PURE__ */ jsxRuntimeExports.jsx(Menu.Content, { children: i }),
@@ -1808,12 +1949,12 @@ const buttonIconVariants = cva(
1808
1949
  }
1809
1950
  );
1810
1951
  function useFloatingPosition(e, t = "1rem") {
1811
- const r = useRef(null), [i, s] = useState({}), [o, a] = useState("fixed bottom-4 right-4"), l = useCallback(() => {
1952
+ const r = useRef(null), [i, s] = useState({}), [n, o] = useState("fixed bottom-4 right-4"), l = useCallback(() => {
1812
1953
  const c = r.current;
1813
1954
  if (!c) return;
1814
- const n = c.getBoundingClientRect().height > window.innerHeight;
1955
+ const a = c.getBoundingClientRect().height > window.innerHeight;
1815
1956
  let d = {}, h = "";
1816
- n ? (d = {
1957
+ a ? (d = {
1817
1958
  position: "fixed",
1818
1959
  bottom: t,
1819
1960
  zIndex: 50,
@@ -1822,7 +1963,7 @@ function useFloatingPosition(e, t = "1rem") {
1822
1963
  position: "fixed",
1823
1964
  bottom: t,
1824
1965
  zIndex: 50
1825
- }, h = `fixed bottom-4 ${e}-4`), s(d), a(h);
1966
+ }, h = `fixed bottom-4 ${e}-4`), s(d), o(h);
1826
1967
  }, [e, t]);
1827
1968
  return useEffect(() => {
1828
1969
  l();
@@ -1837,7 +1978,7 @@ function useFloatingPosition(e, t = "1rem") {
1837
1978
  r.current = c, c && l();
1838
1979
  },
1839
1980
  [l]
1840
- ), i, o];
1981
+ ), i, n];
1841
1982
  }
1842
1983
  const ButtonFloat = forwardRef(
1843
1984
  function({
@@ -1845,28 +1986,28 @@ const ButtonFloat = forwardRef(
1845
1986
  variant: r = "primary",
1846
1987
  size: i = "md",
1847
1988
  side: s = "right",
1848
- offset: o = "1rem",
1849
- ...a
1989
+ offset: n = "1rem",
1990
+ ...o
1850
1991
  }, l) {
1851
1992
  const [u, c, f] = useFloatingPosition(
1852
1993
  s,
1853
- o
1854
- ), [n, d] = useState(!1);
1994
+ n
1995
+ ), [a, d] = useState(!1);
1855
1996
  return useEffect(() => {
1856
1997
  d(!0);
1857
1998
  }, []), /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ref: u, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
1858
1999
  "button",
1859
2000
  {
1860
2001
  ref: l,
1861
- type: a.type || "button",
2002
+ type: o.type || "button",
1862
2003
  className: cn(
1863
2004
  buttonFloatVariants({ variant: r, size: i }),
1864
2005
  f,
1865
- n && "animate-fab-in",
2006
+ a && "animate-fab-in",
1866
2007
  t
1867
2008
  ),
1868
2009
  style: c,
1869
- ...a
2010
+ ...o
1870
2011
  }
1871
2012
  ) });
1872
2013
  }
@@ -1987,8 +2128,8 @@ const BUTTONS = [
1987
2128
  disabled: r,
1988
2129
  className: i,
1989
2130
  "aria-label": s
1990
- }, o) => {
1991
- const { input: a, inputRef: l, handleButton: u, handleInput: c } = useCalculator({
2131
+ }, n) => {
2132
+ const { input: o, inputRef: l, handleButton: u, handleInput: c } = useCalculator({
1992
2133
  initialValue: e,
1993
2134
  disabled: r,
1994
2135
  onChange: t
@@ -1996,7 +2137,7 @@ const BUTTONS = [
1996
2137
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(
1997
2138
  "div",
1998
2139
  {
1999
- ref: o,
2140
+ ref: n,
2000
2141
  className: cn(calculatorRootVariants({ disabled: r }), i),
2001
2142
  "aria-label": s || "Calculator",
2002
2143
  role: "region",
@@ -2006,14 +2147,14 @@ const BUTTONS = [
2006
2147
  {
2007
2148
  ref: l,
2008
2149
  className: "w-full mb-3 px-3 py-2 rounded border border-[var(--color-neutral)] bg-[var(--color-neutral-soft)] text-right text-xl font-mono focus:outline-none focus:ring-2 focus:ring-[var(--color-primary)]",
2009
- value: a,
2150
+ value: o,
2010
2151
  onChange: c,
2011
2152
  disabled: r,
2012
2153
  inputMode: "decimal",
2013
2154
  "aria-label": "Calculator input"
2014
2155
  }
2015
2156
  ),
2016
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex flex-col gap-1 mb-3", children: BUTTONS.map((f, n) => /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex w-full", children: f.map((d) => d === "⌫" ? /* @__PURE__ */ jsxRuntimeExports.jsx(
2157
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex flex-col gap-1 mb-3", children: BUTTONS.map((f, a) => /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex w-full", children: f.map((d) => d === "⌫" ? /* @__PURE__ */ jsxRuntimeExports.jsx(
2017
2158
  ButtonIcon,
2018
2159
  {
2019
2160
  as: X,
@@ -2034,7 +2175,7 @@ const BUTTONS = [
2034
2175
  children: d
2035
2176
  },
2036
2177
  d
2037
- )) }, n)) })
2178
+ )) }, a)) })
2038
2179
  ]
2039
2180
  }
2040
2181
  );
@@ -2098,16 +2239,16 @@ const cardVariants = cva(
2098
2239
  avatar: r,
2099
2240
  title: i,
2100
2241
  subtitle: s,
2101
- badge: o,
2102
- supplementaryInfo: a,
2242
+ badge: n,
2243
+ supplementaryInfo: o,
2103
2244
  bordered: l = !1,
2104
2245
  as: u = "button",
2105
2246
  className: c,
2106
2247
  ...f
2107
- }, n) => /* @__PURE__ */ jsxRuntimeExports.jsx(
2248
+ }, a) => /* @__PURE__ */ jsxRuntimeExports.jsx(
2108
2249
  u,
2109
2250
  {
2110
- ref: n,
2251
+ ref: a,
2111
2252
  className: cn(
2112
2253
  cardVariants({ size: e, shape: t, bordered: l, as: u }),
2113
2254
  c,
@@ -2131,8 +2272,8 @@ const cardVariants = cva(
2131
2272
  s && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "mt-1", children: typeof s == "string" ? /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { as: "p", fontSize: "sm", color: "gray", children: s }) : /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "min-w-0 overflow-hidden", children: s }) })
2132
2273
  ] }) }) }),
2133
2274
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-col gap-2 @sm/card:flex-row @sm/card:justify-between @sm/card:items-center", children: [
2134
- o && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "order-1 @sm/card:order-none overflow-hidden", children: o }),
2135
- a && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-shrink-0 order-2 @sm/card:order-none @sm/card:ml-auto", children: typeof a == "string" ? /* @__PURE__ */ jsxRuntimeExports.jsx(
2275
+ n && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "order-1 @sm/card:order-none overflow-hidden", children: n }),
2276
+ o && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-shrink-0 order-2 @sm/card:order-none @sm/card:ml-auto", children: typeof o == "string" ? /* @__PURE__ */ jsxRuntimeExports.jsx(
2136
2277
  Text,
2137
2278
  {
2138
2279
  as: "p",
@@ -2140,9 +2281,9 @@ const cardVariants = cva(
2140
2281
  color: "gray",
2141
2282
  className: "truncate",
2142
2283
  align: "right",
2143
- children: a
2284
+ children: o
2144
2285
  }
2145
- ) : /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "overflow-hidden", children: a }) })
2286
+ ) : /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "overflow-hidden", children: o }) })
2146
2287
  ] })
2147
2288
  ] })
2148
2289
  ] })
@@ -2195,8 +2336,8 @@ const cardVariants = cva(
2195
2336
  variant: r = "neutral-outline",
2196
2337
  size: i = "md",
2197
2338
  disabled: s = !1,
2198
- children: o,
2199
- ...a
2339
+ children: n,
2340
+ ...o
2200
2341
  }, l) {
2201
2342
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(
2202
2343
  "button",
@@ -2206,11 +2347,11 @@ const cardVariants = cva(
2206
2347
  className: cn(filterChipVariants({ variant: r, size: i }), t),
2207
2348
  disabled: s,
2208
2349
  "aria-disabled": s,
2209
- "aria-label": `${o}, removable`,
2350
+ "aria-label": `${n}, removable`,
2210
2351
  inert: s ? !0 : void 0,
2211
- ...a,
2352
+ ...o,
2212
2353
  children: [
2213
- /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "flex-shrink-0", children: o }),
2354
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "flex-shrink-0", children: n }),
2214
2355
  /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, { as: XIcon, color: "inherit", size: i === "lg" ? "md" : "sm" })
2215
2356
  ]
2216
2357
  }
@@ -2257,12 +2398,12 @@ const cardVariants = cva(
2257
2398
  ), noResultsHeaderVariants = cva(
2258
2399
  "flex flex-row items-center gap-3 mb-2"
2259
2400
  ), NoResults = React__default.forwardRef(
2260
- function e({ icon: t, title: r, subtitle: i, action: s, className: o, hasGrayBackground: a, ...l }, u) {
2401
+ function e({ icon: t, title: r, subtitle: i, action: s, className: n, hasGrayBackground: o, ...l }, u) {
2261
2402
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(
2262
2403
  "section",
2263
2404
  {
2264
2405
  ref: u,
2265
- className: cn(noResultsVariants({ hasGrayBackground: a }), o),
2406
+ className: cn(noResultsVariants({ hasGrayBackground: o }), n),
2266
2407
  role: "status",
2267
2408
  "aria-label": "No results found",
2268
2409
  ...l,
@@ -2410,13 +2551,13 @@ const getTableColumnClass = (e) => {
2410
2551
  );
2411
2552
  }
2412
2553
  ), TableColumn = forwardRef(
2413
- ({ as: e = "td", span: t, align: r = "left", children: i, className: s, ...o }, a) => {
2554
+ ({ as: e = "td", span: t, align: r = "left", children: i, className: s, ...n }, o) => {
2414
2555
  const l = e === "th" ? "columnheader" : "cell";
2415
2556
  let u = "text-left";
2416
2557
  return r === "center" ? u = "text-center" : r === "right" && (u = "text-right"), /* @__PURE__ */ jsxRuntimeExports.jsx(
2417
2558
  "div",
2418
2559
  {
2419
- ref: a,
2560
+ ref: o,
2420
2561
  role: l,
2421
2562
  className: cn(
2422
2563
  "px-4 py-2",
@@ -2426,7 +2567,7 @@ const getTableColumnClass = (e) => {
2426
2567
  "truncate overflow-hidden whitespace-nowrap",
2427
2568
  s
2428
2569
  ),
2429
- ...o,
2570
+ ...n,
2430
2571
  children: i
2431
2572
  }
2432
2573
  );
@@ -2518,17 +2659,17 @@ const getTableColumnClass = (e) => {
2518
2659
  }
2519
2660
  }
2520
2661
  ), Tile = forwardRef(
2521
- ({ variant: e = "white", size: t = "md", shape: r = "rounded", className: i, ...s }, o) => /* @__PURE__ */ jsxRuntimeExports.jsx(
2662
+ ({ variant: e = "white", size: t = "md", shape: r = "rounded", className: i, ...s }, n) => /* @__PURE__ */ jsxRuntimeExports.jsx(
2522
2663
  "div",
2523
2664
  {
2524
- ref: o,
2665
+ ref: n,
2525
2666
  className: cn(tileVariants({ variant: e, size: t, shape: r }), i),
2526
2667
  ...s
2527
2668
  }
2528
2669
  )
2529
2670
  );
2530
2671
  function useImage({ src: e }) {
2531
- const [t, r] = useState(!1), [i, s] = useState(!1), o = useRef(!1), a = () => {
2672
+ const [t, r] = useState(!1), [i, s] = useState(!1), n = useRef(!1), o = () => {
2532
2673
  r(!0);
2533
2674
  }, l = () => {
2534
2675
  s(!0);
@@ -2537,16 +2678,16 @@ function useImage({ src: e }) {
2537
2678
  if (!e) return;
2538
2679
  const u = new Image();
2539
2680
  return u.src = e, u.onload = () => {
2540
- o.current || r(!0);
2681
+ n.current || r(!0);
2541
2682
  }, u.onerror = () => {
2542
- o.current || s(!0);
2683
+ n.current || s(!0);
2543
2684
  }, () => {
2544
- o.current = !0;
2685
+ n.current = !0;
2545
2686
  };
2546
2687
  }, [e]), {
2547
2688
  loaded: t,
2548
2689
  errored: i,
2549
- handleLoad: a,
2690
+ handleLoad: o,
2550
2691
  handleError: l
2551
2692
  };
2552
2693
  }
@@ -2624,13 +2765,13 @@ function BaseImageFallback({
2624
2765
  height: r,
2625
2766
  className: i,
2626
2767
  style: s,
2627
- shape: o,
2628
- size: a
2768
+ shape: n,
2769
+ size: o
2629
2770
  }) {
2630
2771
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(
2631
2772
  "div",
2632
2773
  {
2633
- className: imageAtomVariants({ shape: o, size: a, className: i }),
2774
+ className: imageAtomVariants({ shape: n, size: o, className: i }),
2634
2775
  style: { width: t, height: r, ...s },
2635
2776
  "aria-label": e,
2636
2777
  role: "img",
@@ -2655,30 +2796,30 @@ const BaseImage = forwardRef(
2655
2796
  onLoad: r,
2656
2797
  onError: i,
2657
2798
  width: s,
2658
- height: o,
2659
- loading: a = "lazy",
2799
+ height: n,
2800
+ loading: o = "lazy",
2660
2801
  position: l = "cover",
2661
2802
  size: u = "auto",
2662
2803
  shape: c,
2663
2804
  className: f,
2664
- ...n
2805
+ ...a
2665
2806
  }, d) => {
2666
- const { loaded: h, errored: m, handleLoad: y, handleError: w } = useImage({
2807
+ const { loaded: h, errored: x, handleLoad: y, handleError: w } = useImage({
2667
2808
  src: e
2668
- }), R = typeof s == "number" ? s : Number(s), E = typeof o == "number" ? o : Number(o);
2669
- return !h && !m ? /* @__PURE__ */ jsxRuntimeExports.jsx(
2809
+ }), j = typeof s == "number" ? s : Number(s), E = typeof n == "number" ? n : Number(n);
2810
+ return !h && !x ? /* @__PURE__ */ jsxRuntimeExports.jsx(
2670
2811
  BaseImageSkeleton,
2671
2812
  {
2672
2813
  shape: c,
2673
- width: R,
2814
+ width: j,
2674
2815
  height: E
2675
2816
  }
2676
- ) : m ? /* @__PURE__ */ jsxRuntimeExports.jsx(
2817
+ ) : x ? /* @__PURE__ */ jsxRuntimeExports.jsx(
2677
2818
  BaseImageFallback,
2678
2819
  {
2679
2820
  shape: c,
2680
2821
  alt: t,
2681
- width: R,
2822
+ width: j,
2682
2823
  height: E
2683
2824
  }
2684
2825
  ) : /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -2687,9 +2828,9 @@ const BaseImage = forwardRef(
2687
2828
  ref: d,
2688
2829
  src: e,
2689
2830
  alt: t,
2690
- width: R,
2831
+ width: j,
2691
2832
  height: E,
2692
- loading: a,
2833
+ loading: o,
2693
2834
  className: cn(
2694
2835
  imageVariants({
2695
2836
  position: l,
@@ -2704,7 +2845,7 @@ const BaseImage = forwardRef(
2704
2845
  onError: (C) => {
2705
2846
  w(), i?.(C);
2706
2847
  },
2707
- ...n
2848
+ ...a
2708
2849
  }
2709
2850
  );
2710
2851
  }
@@ -2720,23 +2861,24 @@ export {
2720
2861
  NoResults as N,
2721
2862
  OverlayPortal as O,
2722
2863
  Table as T,
2723
- Alert as a,
2724
- Anchor as b,
2725
- Attribute as c,
2726
- AttributeList as d,
2727
- Avatar as e,
2728
- Brand as f,
2729
- Button as g,
2730
- ButtonMenu as h,
2731
- ButtonMenuIcon as i,
2732
- ButtonFloat as j,
2733
- ButtonIcon as k,
2734
- Card as l,
2735
- Hr as m,
2736
- Text as n,
2737
- Tile as o,
2738
- ImageCircle as p,
2739
- ImageSquare as q,
2740
- ImageRectangle as r,
2741
- BaseImage as s
2864
+ ActionCard as a,
2865
+ Alert as b,
2866
+ Anchor as c,
2867
+ Attribute as d,
2868
+ AttributeList as e,
2869
+ Avatar as f,
2870
+ Brand as g,
2871
+ Button as h,
2872
+ ButtonMenu as i,
2873
+ ButtonMenuIcon as j,
2874
+ ButtonFloat as k,
2875
+ ButtonIcon as l,
2876
+ Card as m,
2877
+ Hr as n,
2878
+ Text as o,
2879
+ Tile as p,
2880
+ ImageCircle as q,
2881
+ ImageSquare as r,
2882
+ ImageRectangle as s,
2883
+ BaseImage as t
2742
2884
  };