@sikka/hawa 0.29.14-next → 0.30.1-next

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.
Files changed (64) hide show
  1. package/dist/alert/index.d.mts +5 -4
  2. package/dist/alert/index.d.ts +5 -4
  3. package/dist/alert/index.js +10 -6
  4. package/dist/alert/index.js.map +1 -1
  5. package/dist/alert/index.mjs +10 -6
  6. package/dist/alert/index.mjs.map +1 -1
  7. package/dist/blocks/auth/index.d.mts +2 -0
  8. package/dist/blocks/auth/index.d.ts +2 -0
  9. package/dist/blocks/auth/index.js +17 -7
  10. package/dist/blocks/auth/index.mjs +17 -7
  11. package/dist/blocks/feedback/index.js +15 -13
  12. package/dist/blocks/feedback/index.mjs +15 -13
  13. package/dist/blocks/index.d.mts +2 -0
  14. package/dist/blocks/index.d.ts +2 -0
  15. package/dist/blocks/index.js +32 -20
  16. package/dist/blocks/index.mjs +8 -2
  17. package/dist/{chunk-XKVSLAKW.mjs → chunk-Q754X27Z.mjs} +25 -19
  18. package/dist/combobox/index.d.mts +1 -0
  19. package/dist/combobox/index.d.ts +1 -0
  20. package/dist/combobox/index.js +224 -218
  21. package/dist/combobox/index.js.map +1 -1
  22. package/dist/combobox/index.mjs +224 -218
  23. package/dist/combobox/index.mjs.map +1 -1
  24. package/dist/command/index.js +1 -1
  25. package/dist/command/index.js.map +1 -1
  26. package/dist/command/index.mjs +1 -1
  27. package/dist/command/index.mjs.map +1 -1
  28. package/dist/dataTable/index.d.mts +1 -1
  29. package/dist/dataTable/index.d.ts +1 -1
  30. package/dist/dataTable/index.js.map +1 -1
  31. package/dist/dataTable/index.mjs.map +1 -1
  32. package/dist/dialog/index.d.mts +1 -0
  33. package/dist/dialog/index.d.ts +1 -0
  34. package/dist/dialog/index.js +1 -1
  35. package/dist/dialog/index.js.map +1 -1
  36. package/dist/dialog/index.mjs +1 -1
  37. package/dist/dialog/index.mjs.map +1 -1
  38. package/dist/elements/index.d.mts +14 -8
  39. package/dist/elements/index.d.ts +14 -8
  40. package/dist/elements/index.js +97 -87
  41. package/dist/elements/index.mjs +15 -11
  42. package/dist/fileDropzone/index.js +10 -6
  43. package/dist/fileDropzone/index.js.map +1 -1
  44. package/dist/fileDropzone/index.mjs +10 -6
  45. package/dist/fileDropzone/index.mjs.map +1 -1
  46. package/dist/index.d.mts +16 -8
  47. package/dist/index.d.ts +16 -8
  48. package/dist/index.js +104 -88
  49. package/dist/index.mjs +130 -114
  50. package/dist/passwordInput/index.js +15 -13
  51. package/dist/passwordInput/index.js.map +1 -1
  52. package/dist/passwordInput/index.mjs +15 -13
  53. package/dist/passwordInput/index.mjs.map +1 -1
  54. package/dist/popover/index.d.mts +3 -1
  55. package/dist/popover/index.d.ts +3 -1
  56. package/dist/popover/index.js +15 -13
  57. package/dist/popover/index.js.map +1 -1
  58. package/dist/popover/index.mjs +15 -13
  59. package/dist/popover/index.mjs.map +1 -1
  60. package/dist/simpleTable/index.d.mts +4 -3
  61. package/dist/simpleTable/index.d.ts +4 -3
  62. package/dist/simpleTable/index.js.map +1 -1
  63. package/dist/simpleTable/index.mjs.map +1 -1
  64. package/package.json +1 -1
@@ -1833,7 +1833,7 @@ var DialogOverlay = React14.forwardRef(({ className, ...props }, ref) => /* @__P
1833
1833
  ...props
1834
1834
  }
1835
1835
  ));
1836
- var DialogContent = React14.forwardRef(({ className, children, persist, hideCloseButton, ...props }, ref) => /* @__PURE__ */ React14.createElement(DialogPortal, null, /* @__PURE__ */ React14.createElement(DialogOverlay, null), /* @__PURE__ */ React14.createElement(
1836
+ var DialogContent = React14.forwardRef(({ className, children, persist, hideCloseButton, ...props }, ref) => /* @__PURE__ */ React14.createElement(DialogPortal, { container: props.container }, /* @__PURE__ */ React14.createElement(DialogOverlay, null), /* @__PURE__ */ React14.createElement(
1837
1837
  DialogPrimitive.Content,
1838
1838
  {
1839
1839
  onPointerDownOutside: (e) => {
@@ -2297,12 +2297,16 @@ var Alert = ({
2297
2297
  if (props.onAlertClosed) {
2298
2298
  props.onAlertClosed();
2299
2299
  }
2300
- setClosed(true);
2301
- setTimeout(() => {
2302
- if (alertRef == null ? void 0 : alertRef.current) {
2303
- alertRef == null ? void 0 : alertRef.current.removeChild(alertRef == null ? void 0 : alertRef.current.children[0]);
2304
- }
2305
- }, 200);
2300
+ if (!props.noDestroy) {
2301
+ setClosed(true);
2302
+ setTimeout(() => {
2303
+ if (alertRef == null ? void 0 : alertRef.current) {
2304
+ alertRef == null ? void 0 : alertRef.current.removeChild(
2305
+ alertRef == null ? void 0 : alertRef.current.children[0]
2306
+ );
2307
+ }
2308
+ }, 200);
2309
+ }
2306
2310
  }
2307
2311
  },
2308
2312
  /* @__PURE__ */ import_react6.default.createElement("span", { className: "hawa-sr-only" }, "Close"),
@@ -3356,72 +3360,10 @@ var Radio = ({
3356
3360
  var React27 = __toESM(require("react"));
3357
3361
  var PopoverPrimitive2 = __toESM(require("@radix-ui/react-popover"));
3358
3362
 
3359
- // elements/popover/Popover.tsx
3360
- var React25 = __toESM(require("react"));
3361
- var PopoverPrimitive = __toESM(require("@radix-ui/react-popover"));
3362
- var PopoverContent = React25.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React25.createElement(PopoverPrimitive.Portal, null, /* @__PURE__ */ React25.createElement(
3363
- PopoverPrimitive.Content,
3364
- {
3365
- ref,
3366
- align,
3367
- sideOffset,
3368
- className: cn(
3369
- "dark:dark-shadow hawa-z-50 hawa-rounded hawa-border hawa-bg-popover hawa-text-popover-foreground hawa-shadow-md hawa-outline-none data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0 data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-95 data-[side=bottom]:hawa-slide-in-from-top-2 data-[side=left]:hawa-slide-in-from-right-2 data-[side=right]:hawa-slide-in-from-left-2 data-[side=top]:hawa-slide-in-from-bottom-2",
3370
- className
3371
- ),
3372
- ...props
3373
- }
3374
- )));
3375
- PopoverContent.displayName = PopoverPrimitive.Content.displayName;
3376
- var Popover = ({
3377
- trigger,
3378
- children,
3379
- className,
3380
- align = "center",
3381
- side,
3382
- sideOffset = 4,
3383
- open,
3384
- width = "default",
3385
- disableTrigger,
3386
- contentProps,
3387
- triggerProps,
3388
- ...props
3389
- }) => {
3390
- let widthStyles = {
3391
- trigger: "var(--radix-popover-trigger-width)",
3392
- default: "auto"
3393
- };
3394
- return /* @__PURE__ */ React25.createElement(PopoverPrimitive.Root, { open, ...props }, /* @__PURE__ */ React25.createElement(
3395
- PopoverPrimitive.Trigger,
3396
- {
3397
- className: "hawa-w-full",
3398
- disabled: disableTrigger,
3399
- ...triggerProps
3400
- },
3401
- trigger
3402
- ), /* @__PURE__ */ React25.createElement(
3403
- PopoverContent,
3404
- {
3405
- side,
3406
- className,
3407
- align,
3408
- sideOffset,
3409
- style: {
3410
- width: widthStyles[width],
3411
- maxWidth: "var(--radix-popover-content-available-width)",
3412
- maxHeight: "var(--radix-popover-content-available-height)"
3413
- },
3414
- ...contentProps
3415
- },
3416
- children
3417
- ));
3418
- };
3419
- var PopoverTrigger = PopoverPrimitive.Trigger;
3420
-
3421
3363
  // elements/command/Command.tsx
3422
- var React26 = __toESM(require("react"));
3364
+ var React25 = __toESM(require("react"));
3423
3365
  var import_cmdk = require("cmdk");
3424
- var Command = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React26.createElement(
3366
+ var Command = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React25.createElement(
3425
3367
  import_cmdk.Command,
3426
3368
  {
3427
3369
  ref,
@@ -3434,15 +3376,15 @@ var Command = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__
3434
3376
  ));
3435
3377
  Command.displayName = import_cmdk.Command.displayName;
3436
3378
  var CommandDialog = ({ children, ...props }) => {
3437
- return /* @__PURE__ */ React26.createElement(Dialog, { ...props }, /* @__PURE__ */ React26.createElement(DialogContent, { className: "hawa-overflow-hidden hawa-p-0 hawa-shadow-lg" }, /* @__PURE__ */ React26.createElement(Command, { className: "[&_[cmdk-group-heading]]:hawa-px-2 [&_[cmdk-group-heading]]:hawa-font-medium [&_[cmdk-group-heading]]:hawa-text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:hawa-pt-0 [&_[cmdk-group]]:hawa-px-2 [&_[cmdk-input-wrapper]_svg]:hawa-h-5 [&_[cmdk-input-wrapper]_svg]:hawa-w-5 [&_[cmdk-input]]:hawa-h-12 [&_[cmdk-item]]:hawa-px-2 [&_[cmdk-item]]:hawa-py-3 [&_[cmdk-item]_svg]:hawa-h-5 [&_[cmdk-item]_svg]:hawa-w-5" }, children)));
3379
+ return /* @__PURE__ */ React25.createElement(Dialog, { ...props }, /* @__PURE__ */ React25.createElement(DialogContent, { className: "hawa-overflow-hidden hawa-p-0 hawa-shadow-lg" }, /* @__PURE__ */ React25.createElement(Command, { className: "[&_[cmdk-group-heading]]:hawa-px-2 [&_[cmdk-group-heading]]:hawa-font-medium [&_[cmdk-group-heading]]:hawa-text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:hawa-pt-0 [&_[cmdk-group]]:hawa-px-2 [&_[cmdk-input-wrapper]_svg]:hawa-h-5 [&_[cmdk-input-wrapper]_svg]:hawa-w-5 [&_[cmdk-input]]:hawa-h-12 [&_[cmdk-item]]:hawa-px-2 [&_[cmdk-item]]:hawa-py-3 [&_[cmdk-item]_svg]:hawa-h-5 [&_[cmdk-item]_svg]:hawa-w-5" }, children)));
3438
3380
  };
3439
- var CommandInput = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React26.createElement(
3381
+ var CommandInput = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React25.createElement(
3440
3382
  "div",
3441
3383
  {
3442
3384
  className: "hawa-flex hawa-items-center hawa-border-b hawa-px-3",
3443
3385
  "cmdk-input-wrapper": ""
3444
3386
  },
3445
- /* @__PURE__ */ React26.createElement(
3387
+ /* @__PURE__ */ React25.createElement(
3446
3388
  "svg",
3447
3389
  {
3448
3390
  "aria-label": "Search Icon",
@@ -3457,10 +3399,10 @@ var CommandInput = React26.forwardRef(({ className, ...props }, ref) => /* @__PU
3457
3399
  strokeLinejoin: "round",
3458
3400
  className: "hawa-icon hawa-me-2 hawa-shrink-0 hawa-opacity-50"
3459
3401
  },
3460
- /* @__PURE__ */ React26.createElement("circle", { cx: "11", cy: "11", r: "8" }),
3461
- /* @__PURE__ */ React26.createElement("path", { d: "m21 21-4.3-4.3" })
3402
+ /* @__PURE__ */ React25.createElement("circle", { cx: "11", cy: "11", r: "8" }),
3403
+ /* @__PURE__ */ React25.createElement("path", { d: "m21 21-4.3-4.3" })
3462
3404
  ),
3463
- /* @__PURE__ */ React26.createElement(
3405
+ /* @__PURE__ */ React25.createElement(
3464
3406
  import_cmdk.Command.Input,
3465
3407
  {
3466
3408
  ref,
@@ -3473,7 +3415,7 @@ var CommandInput = React26.forwardRef(({ className, ...props }, ref) => /* @__PU
3473
3415
  )
3474
3416
  ));
3475
3417
  CommandInput.displayName = import_cmdk.Command.Input.displayName;
3476
- var CommandList = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React26.createElement(
3418
+ var CommandList = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React25.createElement(
3477
3419
  import_cmdk.Command.List,
3478
3420
  {
3479
3421
  ref,
@@ -3485,7 +3427,7 @@ var CommandList = React26.forwardRef(({ className, ...props }, ref) => /* @__PUR
3485
3427
  }
3486
3428
  ));
3487
3429
  CommandList.displayName = import_cmdk.Command.List.displayName;
3488
- var CommandEmpty = React26.forwardRef((props, ref) => /* @__PURE__ */ React26.createElement(
3430
+ var CommandEmpty = React25.forwardRef((props, ref) => /* @__PURE__ */ React25.createElement(
3489
3431
  import_cmdk.Command.Empty,
3490
3432
  {
3491
3433
  ref,
@@ -3494,7 +3436,7 @@ var CommandEmpty = React26.forwardRef((props, ref) => /* @__PURE__ */ React26.cr
3494
3436
  }
3495
3437
  ));
3496
3438
  CommandEmpty.displayName = import_cmdk.Command.Empty.displayName;
3497
- var CommandGroup = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React26.createElement(
3439
+ var CommandGroup = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React25.createElement(
3498
3440
  import_cmdk.Command.Group,
3499
3441
  {
3500
3442
  ref,
@@ -3506,7 +3448,7 @@ var CommandGroup = React26.forwardRef(({ className, ...props }, ref) => /* @__PU
3506
3448
  }
3507
3449
  ));
3508
3450
  CommandGroup.displayName = import_cmdk.Command.Group.displayName;
3509
- var CommandSeparator = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React26.createElement(
3451
+ var CommandSeparator = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React25.createElement(
3510
3452
  import_cmdk.Command.Separator,
3511
3453
  {
3512
3454
  ref,
@@ -3515,7 +3457,7 @@ var CommandSeparator = React26.forwardRef(({ className, ...props }, ref) => /* @
3515
3457
  }
3516
3458
  ));
3517
3459
  CommandSeparator.displayName = import_cmdk.Command.Separator.displayName;
3518
- var CommandItem = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React26.createElement(
3460
+ var CommandItem = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React25.createElement(
3519
3461
  import_cmdk.Command.Item,
3520
3462
  {
3521
3463
  ref,
@@ -3531,7 +3473,7 @@ var CommandShortcut = ({
3531
3473
  className,
3532
3474
  ...props
3533
3475
  }) => {
3534
- return /* @__PURE__ */ React26.createElement(
3476
+ return /* @__PURE__ */ React25.createElement(
3535
3477
  "span",
3536
3478
  {
3537
3479
  className: cn(
@@ -3544,6 +3486,70 @@ var CommandShortcut = ({
3544
3486
  };
3545
3487
  CommandShortcut.displayName = "CommandShortcut";
3546
3488
 
3489
+ // elements/popover/Popover.tsx
3490
+ var React26 = __toESM(require("react"));
3491
+ var PopoverPrimitive = __toESM(require("@radix-ui/react-popover"));
3492
+ var PopoverContent = React26.forwardRef(
3493
+ ({ className, align = "center", sideOffset = 4, container, ...props }, ref) => /* @__PURE__ */ React26.createElement(PopoverPrimitive.Portal, { container }, /* @__PURE__ */ React26.createElement(
3494
+ PopoverPrimitive.Content,
3495
+ {
3496
+ ref,
3497
+ align,
3498
+ sideOffset,
3499
+ className: cn(
3500
+ "dark:dark-shadow hawa-z-50 hawa-rounded hawa-border hawa-bg-popover hawa-text-popover-foreground hawa-shadow-md hawa-outline-none data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0 data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-95 data-[side=bottom]:hawa-slide-in-from-top-2 data-[side=left]:hawa-slide-in-from-right-2 data-[side=right]:hawa-slide-in-from-left-2 data-[side=top]:hawa-slide-in-from-bottom-2",
3501
+ className
3502
+ ),
3503
+ ...props
3504
+ }
3505
+ ))
3506
+ );
3507
+ PopoverContent.displayName = PopoverPrimitive.Content.displayName;
3508
+ var Popover = ({
3509
+ trigger,
3510
+ children,
3511
+ className,
3512
+ align = "center",
3513
+ side,
3514
+ sideOffset = 4,
3515
+ open,
3516
+ width = "default",
3517
+ disableTrigger,
3518
+ contentProps,
3519
+ triggerProps,
3520
+ ...props
3521
+ }) => {
3522
+ let widthStyles = {
3523
+ trigger: "var(--radix-popover-trigger-width)",
3524
+ default: "auto"
3525
+ };
3526
+ return /* @__PURE__ */ React26.createElement(PopoverPrimitive.Root, { open, ...props }, /* @__PURE__ */ React26.createElement(
3527
+ PopoverPrimitive.Trigger,
3528
+ {
3529
+ className: "hawa-w-full",
3530
+ disabled: disableTrigger,
3531
+ ...triggerProps
3532
+ },
3533
+ trigger
3534
+ ), /* @__PURE__ */ React26.createElement(
3535
+ PopoverContent,
3536
+ {
3537
+ side,
3538
+ className,
3539
+ align,
3540
+ sideOffset,
3541
+ style: {
3542
+ width: widthStyles[width],
3543
+ maxWidth: "var(--radix-popover-content-available-width)",
3544
+ maxHeight: "var(--radix-popover-content-available-height)"
3545
+ },
3546
+ ...contentProps
3547
+ },
3548
+ children
3549
+ ));
3550
+ };
3551
+ var PopoverTrigger = PopoverPrimitive.Trigger;
3552
+
3547
3553
  // elements/combobox/Combobox.tsx
3548
3554
  var Combobox = React27.forwardRef(
3549
3555
  ({
@@ -3554,11 +3560,13 @@ var Combobox = React27.forwardRef(
3554
3560
  direction,
3555
3561
  labelProps,
3556
3562
  data,
3563
+ renderOption,
3557
3564
  ...props
3558
3565
  }, ref) => {
3559
3566
  var _a, _b, _c;
3560
3567
  const [open, setOpen] = React27.useState(false);
3561
3568
  const [value, setValue] = React27.useState(defaultValue);
3569
+ const containerRef = React27.useRef(null);
3562
3570
  function getProperty(obj, key) {
3563
3571
  return obj[key];
3564
3572
  }
@@ -3573,7 +3581,8 @@ var Combobox = React27.forwardRef(
3573
3581
  className: cn(
3574
3582
  "hawa-relative hawa-flex hawa-h-fit hawa-flex-col hawa-gap-2",
3575
3583
  props.width === "fit" ? "hawa-w-fit" : "hawa-w-full"
3576
- )
3584
+ ),
3585
+ ref: containerRef
3577
3586
  },
3578
3587
  props.label && /* @__PURE__ */ React27.createElement(Label2, { ...labelProps }, props.label),
3579
3588
  /* @__PURE__ */ React27.createElement(PopoverPrimitive2.Root, { open, onOpenChange: handleOpenChange }, /* @__PURE__ */ React27.createElement(PopoverTrigger, { asChild: true }, props.isLoading ? /* @__PURE__ */ React27.createElement("div", { className: "hawa-pb-2" }, /* @__PURE__ */ React27.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" })) : /* @__PURE__ */ React27.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-start hawa-gap-2 " }, /* @__PURE__ */ React27.createElement(
@@ -3631,7 +3640,8 @@ var Combobox = React27.forwardRef(
3631
3640
  {
3632
3641
  sideOffset: 0,
3633
3642
  className: cn("popover-w-parent", props.helperText && "-hawa-mt-4"),
3634
- dir: direction
3643
+ dir: direction,
3644
+ container: containerRef.current
3635
3645
  },
3636
3646
  /* @__PURE__ */ React27.createElement(Command, null, !props.hideInput && /* @__PURE__ */ React27.createElement(
3637
3647
  CommandInput,
@@ -3639,7 +3649,7 @@ var Combobox = React27.forwardRef(
3639
3649
  dir: direction,
3640
3650
  placeholder: ((_b = props.texts) == null ? void 0 : _b.searchPlaceholder) || "Search"
3641
3651
  }
3642
- ), /* @__PURE__ */ React27.createElement(CommandEmpty, null, ((_c = props.texts) == null ? void 0 : _c.noItems) || "No items found."), /* @__PURE__ */ React27.createElement(CommandGroup, { className: "hawa-max-h-[200px] hawa-overflow-y-auto" }, data.map((item, i) => /* @__PURE__ */ React27.createElement(
3652
+ ), /* @__PURE__ */ React27.createElement(CommandEmpty, null, ((_c = props.texts) == null ? void 0 : _c.noItems) || "No items found."), /* @__PURE__ */ React27.createElement(CommandGroup, { className: "hawa-max-h-[200px] hawa-overflow-y-scroll" }, data.map((item, i) => /* @__PURE__ */ React27.createElement(
3643
3653
  CommandItem,
3644
3654
  {
3645
3655
  key: i,
@@ -3675,7 +3685,7 @@ var Combobox = React27.forwardRef(
3675
3685
  },
3676
3686
  /* @__PURE__ */ React27.createElement("polyline", { points: "20 6 9 17 4 12" })
3677
3687
  ),
3678
- getProperty(item, labelKey)
3688
+ renderOption ? renderOption(item) : getProperty(item, labelKey)
3679
3689
  ))))
3680
3690
  ))
3681
3691
  );
@@ -28,7 +28,7 @@ import {
28
28
  TabsTrigger,
29
29
  Textarea,
30
30
  UncheckMark
31
- } from "../chunk-XKVSLAKW.mjs";
31
+ } from "../chunk-Q754X27Z.mjs";
32
32
  import {
33
33
  Sheet,
34
34
  SheetClose,
@@ -385,7 +385,7 @@ var DialogOverlay = React6.forwardRef(({ className, ...props }, ref) => /* @__PU
385
385
  ...props
386
386
  }
387
387
  ));
388
- var DialogContent = React6.forwardRef(({ className, children, persist, hideCloseButton, ...props }, ref) => /* @__PURE__ */ React6.createElement(DialogPortal, null, /* @__PURE__ */ React6.createElement(DialogOverlay, null), /* @__PURE__ */ React6.createElement(
388
+ var DialogContent = React6.forwardRef(({ className, children, persist, hideCloseButton, ...props }, ref) => /* @__PURE__ */ React6.createElement(DialogPortal, { container: props.container }, /* @__PURE__ */ React6.createElement(DialogOverlay, null), /* @__PURE__ */ React6.createElement(
389
389
  DialogPrimitive.Content,
390
390
  {
391
391
  onPointerDownOutside: (e) => {
@@ -1465,11 +1465,13 @@ var Combobox = React13.forwardRef(
1465
1465
  direction,
1466
1466
  labelProps,
1467
1467
  data,
1468
+ renderOption,
1468
1469
  ...props
1469
1470
  }, ref) => {
1470
1471
  var _a, _b, _c;
1471
1472
  const [open, setOpen] = React13.useState(false);
1472
1473
  const [value, setValue] = React13.useState(defaultValue);
1474
+ const containerRef = React13.useRef(null);
1473
1475
  function getProperty(obj, key) {
1474
1476
  return obj[key];
1475
1477
  }
@@ -1484,7 +1486,8 @@ var Combobox = React13.forwardRef(
1484
1486
  className: cn(
1485
1487
  "hawa-relative hawa-flex hawa-h-fit hawa-flex-col hawa-gap-2",
1486
1488
  props.width === "fit" ? "hawa-w-fit" : "hawa-w-full"
1487
- )
1489
+ ),
1490
+ ref: containerRef
1488
1491
  },
1489
1492
  props.label && /* @__PURE__ */ React13.createElement(Label, { ...labelProps }, props.label),
1490
1493
  /* @__PURE__ */ React13.createElement(PopoverPrimitive.Root, { open, onOpenChange: handleOpenChange }, /* @__PURE__ */ React13.createElement(PopoverTrigger, { asChild: true }, props.isLoading ? /* @__PURE__ */ React13.createElement("div", { className: "hawa-pb-2" }, /* @__PURE__ */ React13.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" })) : /* @__PURE__ */ React13.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-start hawa-gap-2 " }, /* @__PURE__ */ React13.createElement(
@@ -1542,7 +1545,8 @@ var Combobox = React13.forwardRef(
1542
1545
  {
1543
1546
  sideOffset: 0,
1544
1547
  className: cn("popover-w-parent", props.helperText && "-hawa-mt-4"),
1545
- dir: direction
1548
+ dir: direction,
1549
+ container: containerRef.current
1546
1550
  },
1547
1551
  /* @__PURE__ */ React13.createElement(Command, null, !props.hideInput && /* @__PURE__ */ React13.createElement(
1548
1552
  CommandInput,
@@ -1550,7 +1554,7 @@ var Combobox = React13.forwardRef(
1550
1554
  dir: direction,
1551
1555
  placeholder: ((_b = props.texts) == null ? void 0 : _b.searchPlaceholder) || "Search"
1552
1556
  }
1553
- ), /* @__PURE__ */ React13.createElement(CommandEmpty, null, ((_c = props.texts) == null ? void 0 : _c.noItems) || "No items found."), /* @__PURE__ */ React13.createElement(CommandGroup, { className: "hawa-max-h-[200px] hawa-overflow-y-auto" }, data.map((item, i) => /* @__PURE__ */ React13.createElement(
1557
+ ), /* @__PURE__ */ React13.createElement(CommandEmpty, null, ((_c = props.texts) == null ? void 0 : _c.noItems) || "No items found."), /* @__PURE__ */ React13.createElement(CommandGroup, { className: "hawa-max-h-[200px] hawa-overflow-y-scroll" }, data.map((item, i) => /* @__PURE__ */ React13.createElement(
1554
1558
  CommandItem,
1555
1559
  {
1556
1560
  key: i,
@@ -1586,7 +1590,7 @@ var Combobox = React13.forwardRef(
1586
1590
  },
1587
1591
  /* @__PURE__ */ React13.createElement("polyline", { points: "20 6 9 17 4 12" })
1588
1592
  ),
1589
- getProperty(item, labelKey)
1593
+ renderOption ? renderOption(item) : getProperty(item, labelKey)
1590
1594
  ))))
1591
1595
  ))
1592
1596
  );
@@ -1987,7 +1991,7 @@ var AppStores = (props) => {
1987
1991
  };
1988
1992
 
1989
1993
  // elements/badge/Badge.tsx
1990
- import React19, { useEffect as useEffect5, useState as useState7, useRef as useRef4 } from "react";
1994
+ import React19, { useEffect as useEffect5, useState as useState7, useRef as useRef5 } from "react";
1991
1995
  var Badge = ({
1992
1996
  anchor,
1993
1997
  position = "right",
@@ -1996,7 +2000,7 @@ var Badge = ({
1996
2000
  className
1997
2001
  }) => {
1998
2002
  const [badgePosition, setBadgePosition] = useState7(null);
1999
- const indicatorRef = useRef4(null);
2003
+ const indicatorRef = useRef5(null);
2000
2004
  const sizeStyles2 = {
2001
2005
  small: { top: 4, left: 6, right: 7, classes: "hawa-w-3 hawa-h-3" },
2002
2006
  default: { top: 4, left: 7, right: 5, classes: "hawa-w-3 hawa-h-3" },
@@ -2050,7 +2054,7 @@ var BadgedComponent = ({
2050
2054
  size,
2051
2055
  text
2052
2056
  }) => {
2053
- const ref = useRef4(null);
2057
+ const ref = useRef5(null);
2054
2058
  return /* @__PURE__ */ React19.createElement("div", { className: cn("hawa-relative hawa-w-fit", className), ref }, !hideBadge && /* @__PURE__ */ React19.createElement(
2055
2059
  Badge,
2056
2060
  {
@@ -3132,7 +3136,7 @@ function Toaster(props) {
3132
3136
  }
3133
3137
 
3134
3138
  // elements/destroyableCard/DestroyableCard.tsx
3135
- import React32, { useRef as useRef5, useState as useState13 } from "react";
3139
+ import React32, { useRef as useRef6, useState as useState13 } from "react";
3136
3140
  var DestroyableCard = ({
3137
3141
  position = "bottom-right",
3138
3142
  fixed,
@@ -3140,7 +3144,7 @@ var DestroyableCard = ({
3140
3144
  ...props
3141
3145
  }) => {
3142
3146
  const [closed, setClosed] = useState13(false);
3143
- const popUpRef = useRef5(null);
3147
+ const popUpRef = useRef6(null);
3144
3148
  const boxPosition = {
3145
3149
  "bottom-right": "hawa-right-4 hawa-bottom-4",
3146
3150
  "bottom-left": "hawa-left-4 hawa-bottom-4"
@@ -452,12 +452,16 @@ var Alert = ({
452
452
  if (props.onAlertClosed) {
453
453
  props.onAlertClosed();
454
454
  }
455
- setClosed(true);
456
- setTimeout(() => {
457
- if (alertRef == null ? void 0 : alertRef.current) {
458
- alertRef == null ? void 0 : alertRef.current.removeChild(alertRef == null ? void 0 : alertRef.current.children[0]);
459
- }
460
- }, 200);
455
+ if (!props.noDestroy) {
456
+ setClosed(true);
457
+ setTimeout(() => {
458
+ if (alertRef == null ? void 0 : alertRef.current) {
459
+ alertRef == null ? void 0 : alertRef.current.removeChild(
460
+ alertRef == null ? void 0 : alertRef.current.children[0]
461
+ );
462
+ }
463
+ }, 200);
464
+ }
461
465
  }
462
466
  },
463
467
  /* @__PURE__ */ import_react2.default.createElement("span", { className: "hawa-sr-only" }, "Close"),