@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
package/dist/index.mjs CHANGED
@@ -1665,7 +1665,7 @@ var DialogOverlay = React14.forwardRef(({ className, ...props }, ref) => /* @__P
1665
1665
  ...props
1666
1666
  }
1667
1667
  ));
1668
- var DialogContent = React14.forwardRef(({ className, children, persist, hideCloseButton, ...props }, ref) => /* @__PURE__ */ React14.createElement(DialogPortal, null, /* @__PURE__ */ React14.createElement(DialogOverlay, null), /* @__PURE__ */ React14.createElement(
1668
+ 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(
1669
1669
  DialogPrimitive.Content,
1670
1670
  {
1671
1671
  onPointerDownOutside: (e) => {
@@ -2129,12 +2129,16 @@ var Alert = ({
2129
2129
  if (props.onAlertClosed) {
2130
2130
  props.onAlertClosed();
2131
2131
  }
2132
- setClosed(true);
2133
- setTimeout(() => {
2134
- if (alertRef == null ? void 0 : alertRef.current) {
2135
- alertRef == null ? void 0 : alertRef.current.removeChild(alertRef == null ? void 0 : alertRef.current.children[0]);
2136
- }
2137
- }, 200);
2132
+ if (!props.noDestroy) {
2133
+ setClosed(true);
2134
+ setTimeout(() => {
2135
+ if (alertRef == null ? void 0 : alertRef.current) {
2136
+ alertRef == null ? void 0 : alertRef.current.removeChild(
2137
+ alertRef == null ? void 0 : alertRef.current.children[0]
2138
+ );
2139
+ }
2140
+ }, 200);
2141
+ }
2138
2142
  }
2139
2143
  },
2140
2144
  /* @__PURE__ */ React16.createElement("span", { className: "hawa-sr-only" }, "Close"),
@@ -3196,72 +3200,10 @@ var Radio = ({
3196
3200
  import * as React27 from "react";
3197
3201
  import * as PopoverPrimitive2 from "@radix-ui/react-popover";
3198
3202
 
3199
- // elements/popover/Popover.tsx
3200
- import * as React25 from "react";
3201
- import * as PopoverPrimitive from "@radix-ui/react-popover";
3202
- var PopoverContent = React25.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React25.createElement(PopoverPrimitive.Portal, null, /* @__PURE__ */ React25.createElement(
3203
- PopoverPrimitive.Content,
3204
- {
3205
- ref,
3206
- align,
3207
- sideOffset,
3208
- className: cn(
3209
- "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",
3210
- className
3211
- ),
3212
- ...props
3213
- }
3214
- )));
3215
- PopoverContent.displayName = PopoverPrimitive.Content.displayName;
3216
- var Popover = ({
3217
- trigger,
3218
- children,
3219
- className,
3220
- align = "center",
3221
- side,
3222
- sideOffset = 4,
3223
- open,
3224
- width = "default",
3225
- disableTrigger,
3226
- contentProps,
3227
- triggerProps,
3228
- ...props
3229
- }) => {
3230
- let widthStyles = {
3231
- trigger: "var(--radix-popover-trigger-width)",
3232
- default: "auto"
3233
- };
3234
- return /* @__PURE__ */ React25.createElement(PopoverPrimitive.Root, { open, ...props }, /* @__PURE__ */ React25.createElement(
3235
- PopoverPrimitive.Trigger,
3236
- {
3237
- className: "hawa-w-full",
3238
- disabled: disableTrigger,
3239
- ...triggerProps
3240
- },
3241
- trigger
3242
- ), /* @__PURE__ */ React25.createElement(
3243
- PopoverContent,
3244
- {
3245
- side,
3246
- className,
3247
- align,
3248
- sideOffset,
3249
- style: {
3250
- width: widthStyles[width],
3251
- maxWidth: "var(--radix-popover-content-available-width)",
3252
- maxHeight: "var(--radix-popover-content-available-height)"
3253
- },
3254
- ...contentProps
3255
- },
3256
- children
3257
- ));
3258
- };
3259
- var PopoverTrigger = PopoverPrimitive.Trigger;
3260
-
3261
3203
  // elements/command/Command.tsx
3262
- import * as React26 from "react";
3204
+ import * as React25 from "react";
3263
3205
  import { Command as CommandPrimitive } from "cmdk";
3264
- var Command = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React26.createElement(
3206
+ var Command = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React25.createElement(
3265
3207
  CommandPrimitive,
3266
3208
  {
3267
3209
  ref,
@@ -3274,15 +3216,15 @@ var Command = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__
3274
3216
  ));
3275
3217
  Command.displayName = CommandPrimitive.displayName;
3276
3218
  var CommandDialog = ({ children, ...props }) => {
3277
- 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)));
3219
+ 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)));
3278
3220
  };
3279
- var CommandInput = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React26.createElement(
3221
+ var CommandInput = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React25.createElement(
3280
3222
  "div",
3281
3223
  {
3282
3224
  className: "hawa-flex hawa-items-center hawa-border-b hawa-px-3",
3283
3225
  "cmdk-input-wrapper": ""
3284
3226
  },
3285
- /* @__PURE__ */ React26.createElement(
3227
+ /* @__PURE__ */ React25.createElement(
3286
3228
  "svg",
3287
3229
  {
3288
3230
  "aria-label": "Search Icon",
@@ -3297,10 +3239,10 @@ var CommandInput = React26.forwardRef(({ className, ...props }, ref) => /* @__PU
3297
3239
  strokeLinejoin: "round",
3298
3240
  className: "hawa-icon hawa-me-2 hawa-shrink-0 hawa-opacity-50"
3299
3241
  },
3300
- /* @__PURE__ */ React26.createElement("circle", { cx: "11", cy: "11", r: "8" }),
3301
- /* @__PURE__ */ React26.createElement("path", { d: "m21 21-4.3-4.3" })
3242
+ /* @__PURE__ */ React25.createElement("circle", { cx: "11", cy: "11", r: "8" }),
3243
+ /* @__PURE__ */ React25.createElement("path", { d: "m21 21-4.3-4.3" })
3302
3244
  ),
3303
- /* @__PURE__ */ React26.createElement(
3245
+ /* @__PURE__ */ React25.createElement(
3304
3246
  CommandPrimitive.Input,
3305
3247
  {
3306
3248
  ref,
@@ -3313,7 +3255,7 @@ var CommandInput = React26.forwardRef(({ className, ...props }, ref) => /* @__PU
3313
3255
  )
3314
3256
  ));
3315
3257
  CommandInput.displayName = CommandPrimitive.Input.displayName;
3316
- var CommandList = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React26.createElement(
3258
+ var CommandList = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React25.createElement(
3317
3259
  CommandPrimitive.List,
3318
3260
  {
3319
3261
  ref,
@@ -3325,7 +3267,7 @@ var CommandList = React26.forwardRef(({ className, ...props }, ref) => /* @__PUR
3325
3267
  }
3326
3268
  ));
3327
3269
  CommandList.displayName = CommandPrimitive.List.displayName;
3328
- var CommandEmpty = React26.forwardRef((props, ref) => /* @__PURE__ */ React26.createElement(
3270
+ var CommandEmpty = React25.forwardRef((props, ref) => /* @__PURE__ */ React25.createElement(
3329
3271
  CommandPrimitive.Empty,
3330
3272
  {
3331
3273
  ref,
@@ -3334,7 +3276,7 @@ var CommandEmpty = React26.forwardRef((props, ref) => /* @__PURE__ */ React26.cr
3334
3276
  }
3335
3277
  ));
3336
3278
  CommandEmpty.displayName = CommandPrimitive.Empty.displayName;
3337
- var CommandGroup = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React26.createElement(
3279
+ var CommandGroup = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React25.createElement(
3338
3280
  CommandPrimitive.Group,
3339
3281
  {
3340
3282
  ref,
@@ -3346,7 +3288,7 @@ var CommandGroup = React26.forwardRef(({ className, ...props }, ref) => /* @__PU
3346
3288
  }
3347
3289
  ));
3348
3290
  CommandGroup.displayName = CommandPrimitive.Group.displayName;
3349
- var CommandSeparator = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React26.createElement(
3291
+ var CommandSeparator = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React25.createElement(
3350
3292
  CommandPrimitive.Separator,
3351
3293
  {
3352
3294
  ref,
@@ -3355,7 +3297,7 @@ var CommandSeparator = React26.forwardRef(({ className, ...props }, ref) => /* @
3355
3297
  }
3356
3298
  ));
3357
3299
  CommandSeparator.displayName = CommandPrimitive.Separator.displayName;
3358
- var CommandItem = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React26.createElement(
3300
+ var CommandItem = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React25.createElement(
3359
3301
  CommandPrimitive.Item,
3360
3302
  {
3361
3303
  ref,
@@ -3371,7 +3313,7 @@ var CommandShortcut = ({
3371
3313
  className,
3372
3314
  ...props
3373
3315
  }) => {
3374
- return /* @__PURE__ */ React26.createElement(
3316
+ return /* @__PURE__ */ React25.createElement(
3375
3317
  "span",
3376
3318
  {
3377
3319
  className: cn(
@@ -3384,6 +3326,70 @@ var CommandShortcut = ({
3384
3326
  };
3385
3327
  CommandShortcut.displayName = "CommandShortcut";
3386
3328
 
3329
+ // elements/popover/Popover.tsx
3330
+ import * as React26 from "react";
3331
+ import * as PopoverPrimitive from "@radix-ui/react-popover";
3332
+ var PopoverContent = React26.forwardRef(
3333
+ ({ className, align = "center", sideOffset = 4, container, ...props }, ref) => /* @__PURE__ */ React26.createElement(PopoverPrimitive.Portal, { container }, /* @__PURE__ */ React26.createElement(
3334
+ PopoverPrimitive.Content,
3335
+ {
3336
+ ref,
3337
+ align,
3338
+ sideOffset,
3339
+ className: cn(
3340
+ "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",
3341
+ className
3342
+ ),
3343
+ ...props
3344
+ }
3345
+ ))
3346
+ );
3347
+ PopoverContent.displayName = PopoverPrimitive.Content.displayName;
3348
+ var Popover = ({
3349
+ trigger,
3350
+ children,
3351
+ className,
3352
+ align = "center",
3353
+ side,
3354
+ sideOffset = 4,
3355
+ open,
3356
+ width = "default",
3357
+ disableTrigger,
3358
+ contentProps,
3359
+ triggerProps,
3360
+ ...props
3361
+ }) => {
3362
+ let widthStyles = {
3363
+ trigger: "var(--radix-popover-trigger-width)",
3364
+ default: "auto"
3365
+ };
3366
+ return /* @__PURE__ */ React26.createElement(PopoverPrimitive.Root, { open, ...props }, /* @__PURE__ */ React26.createElement(
3367
+ PopoverPrimitive.Trigger,
3368
+ {
3369
+ className: "hawa-w-full",
3370
+ disabled: disableTrigger,
3371
+ ...triggerProps
3372
+ },
3373
+ trigger
3374
+ ), /* @__PURE__ */ React26.createElement(
3375
+ PopoverContent,
3376
+ {
3377
+ side,
3378
+ className,
3379
+ align,
3380
+ sideOffset,
3381
+ style: {
3382
+ width: widthStyles[width],
3383
+ maxWidth: "var(--radix-popover-content-available-width)",
3384
+ maxHeight: "var(--radix-popover-content-available-height)"
3385
+ },
3386
+ ...contentProps
3387
+ },
3388
+ children
3389
+ ));
3390
+ };
3391
+ var PopoverTrigger = PopoverPrimitive.Trigger;
3392
+
3387
3393
  // elements/combobox/Combobox.tsx
3388
3394
  var Combobox = React27.forwardRef(
3389
3395
  ({
@@ -3394,11 +3400,13 @@ var Combobox = React27.forwardRef(
3394
3400
  direction,
3395
3401
  labelProps,
3396
3402
  data,
3403
+ renderOption,
3397
3404
  ...props
3398
3405
  }, ref) => {
3399
3406
  var _a, _b, _c;
3400
3407
  const [open, setOpen] = React27.useState(false);
3401
3408
  const [value, setValue] = React27.useState(defaultValue);
3409
+ const containerRef = React27.useRef(null);
3402
3410
  function getProperty(obj, key) {
3403
3411
  return obj[key];
3404
3412
  }
@@ -3413,7 +3421,8 @@ var Combobox = React27.forwardRef(
3413
3421
  className: cn(
3414
3422
  "hawa-relative hawa-flex hawa-h-fit hawa-flex-col hawa-gap-2",
3415
3423
  props.width === "fit" ? "hawa-w-fit" : "hawa-w-full"
3416
- )
3424
+ ),
3425
+ ref: containerRef
3417
3426
  },
3418
3427
  props.label && /* @__PURE__ */ React27.createElement(Label2, { ...labelProps }, props.label),
3419
3428
  /* @__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(
@@ -3471,7 +3480,8 @@ var Combobox = React27.forwardRef(
3471
3480
  {
3472
3481
  sideOffset: 0,
3473
3482
  className: cn("popover-w-parent", props.helperText && "-hawa-mt-4"),
3474
- dir: direction
3483
+ dir: direction,
3484
+ container: containerRef.current
3475
3485
  },
3476
3486
  /* @__PURE__ */ React27.createElement(Command, null, !props.hideInput && /* @__PURE__ */ React27.createElement(
3477
3487
  CommandInput,
@@ -3479,7 +3489,7 @@ var Combobox = React27.forwardRef(
3479
3489
  dir: direction,
3480
3490
  placeholder: ((_b = props.texts) == null ? void 0 : _b.searchPlaceholder) || "Search"
3481
3491
  }
3482
- ), /* @__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(
3492
+ ), /* @__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(
3483
3493
  CommandItem,
3484
3494
  {
3485
3495
  key: i,
@@ -3515,7 +3525,7 @@ var Combobox = React27.forwardRef(
3515
3525
  },
3516
3526
  /* @__PURE__ */ React27.createElement("polyline", { points: "20 6 9 17 4 12" })
3517
3527
  ),
3518
- getProperty(item, labelKey)
3528
+ renderOption ? renderOption(item) : getProperty(item, labelKey)
3519
3529
  ))))
3520
3530
  ))
3521
3531
  );
@@ -4419,7 +4429,7 @@ var AppStores = (props) => {
4419
4429
  };
4420
4430
 
4421
4431
  // elements/badge/Badge.tsx
4422
- import React38, { useEffect as useEffect7, useState as useState9, useRef as useRef6 } from "react";
4432
+ import React38, { useEffect as useEffect7, useState as useState9, useRef as useRef7 } from "react";
4423
4433
  var Badge = ({
4424
4434
  anchor,
4425
4435
  position = "right",
@@ -4428,7 +4438,7 @@ var Badge = ({
4428
4438
  className
4429
4439
  }) => {
4430
4440
  const [badgePosition, setBadgePosition] = useState9(null);
4431
- const indicatorRef = useRef6(null);
4441
+ const indicatorRef = useRef7(null);
4432
4442
  const sizeStyles2 = {
4433
4443
  small: { top: 4, left: 6, right: 7, classes: "hawa-w-3 hawa-h-3" },
4434
4444
  default: { top: 4, left: 7, right: 5, classes: "hawa-w-3 hawa-h-3" },
@@ -4482,7 +4492,7 @@ var BadgedComponent = ({
4482
4492
  size,
4483
4493
  text
4484
4494
  }) => {
4485
- const ref = useRef6(null);
4495
+ const ref = useRef7(null);
4486
4496
  return /* @__PURE__ */ React38.createElement("div", { className: cn("hawa-relative hawa-w-fit", className), ref }, !hideBadge && /* @__PURE__ */ React38.createElement(
4487
4497
  Badge,
4488
4498
  {
@@ -4496,7 +4506,7 @@ var BadgedComponent = ({
4496
4506
  };
4497
4507
 
4498
4508
  // elements/phoneInput/PhoneInput.tsx
4499
- import React39, { useState as useState10, useRef as useRef7, useEffect as useEffect8 } from "react";
4509
+ import React39, { useState as useState10, useRef as useRef8, useEffect as useEffect8 } from "react";
4500
4510
 
4501
4511
  // countries.ts
4502
4512
  var countries = [
@@ -6195,7 +6205,7 @@ var countries_default = countries;
6195
6205
  var PhoneInput = ({ labelProps, ...props }) => {
6196
6206
  const [phoneNumber, setPhoneNumber] = useState10("");
6197
6207
  const [countryCode, setCountryCode] = useState10(props.preferredCountry);
6198
- const inputRef = useRef7(null);
6208
+ const inputRef = useRef8(null);
6199
6209
  useEffect8(() => {
6200
6210
  var _a;
6201
6211
  if (inputRef.current) {
@@ -7679,7 +7689,7 @@ function Toaster(props) {
7679
7689
  }
7680
7690
 
7681
7691
  // elements/destroyableCard/DestroyableCard.tsx
7682
- import React59, { useRef as useRef8, useState as useState18 } from "react";
7692
+ import React59, { useRef as useRef9, useState as useState18 } from "react";
7683
7693
  var DestroyableCard = ({
7684
7694
  position = "bottom-right",
7685
7695
  fixed,
@@ -7687,7 +7697,7 @@ var DestroyableCard = ({
7687
7697
  ...props
7688
7698
  }) => {
7689
7699
  const [closed, setClosed] = useState18(false);
7690
- const popUpRef = useRef8(null);
7700
+ const popUpRef = useRef9(null);
7691
7701
  const boxPosition = {
7692
7702
  "bottom-right": "hawa-right-4 hawa-bottom-4",
7693
7703
  "bottom-left": "hawa-left-4 hawa-bottom-4"
@@ -8223,7 +8233,7 @@ var Navbar = ({
8223
8233
  };
8224
8234
 
8225
8235
  // layout/appLayout/AppLayout.tsx
8226
- import React66, { useEffect as useEffect14, useRef as useRef9, useState as useState21 } from "react";
8236
+ import React66, { useEffect as useEffect14, useRef as useRef10, useState as useState21 } from "react";
8227
8237
  var AppLayout = ({
8228
8238
  profileMenuWidth = "default",
8229
8239
  DrawerFooterActions,
@@ -8246,7 +8256,7 @@ var AppLayout = ({
8246
8256
  opened: { sm: "100", md: openDrawerWidth, lg: "250" },
8247
8257
  closed: { sm: closeDrawerWidth, md: closeDrawerWidth, lg: closeDrawerWidth }
8248
8258
  };
8249
- const ref = useRef9(null);
8259
+ const ref = useRef10(null);
8250
8260
  const isRTL = direction === "rtl";
8251
8261
  const [openedSidebarItem, setOpenedSidebarItem] = useState21("");
8252
8262
  const [size, setSize] = useState21(1200);
@@ -8930,7 +8940,7 @@ var AppTabs = ({ tabs, className }) => {
8930
8940
  };
8931
8941
 
8932
8942
  // layout/docsLayout/DocsLayout.tsx
8933
- import React72, { useEffect as useEffect16, useRef as useRef10, useState as useState24 } from "react";
8943
+ import React72, { useEffect as useEffect16, useRef as useRef11, useState as useState24 } from "react";
8934
8944
 
8935
8945
  // hooks/useBreakpoint.ts
8936
8946
  import { useState as useState23, useEffect as useEffect15 } from "react";
@@ -9039,7 +9049,7 @@ var DocsLayout = ({
9039
9049
  lg: closeDrawerWidth
9040
9050
  }
9041
9051
  };
9042
- const ref = useRef10(null);
9052
+ const ref = useRef11(null);
9043
9053
  const isRTL = direction === "rtl";
9044
9054
  let size = useBreakpoint();
9045
9055
  if (typeof window == "undefined") {
@@ -9712,7 +9722,13 @@ var RegisterForm = ({
9712
9722
  {
9713
9723
  title: props.errorTitle,
9714
9724
  text: props.errorText,
9715
- severity: "error"
9725
+ severity: "error",
9726
+ noDestroy: true,
9727
+ onAlertClosed: () => {
9728
+ if (props.onErrorDismissed) {
9729
+ props.onErrorDismissed();
9730
+ }
9731
+ }
9716
9732
  }
9717
9733
  ), /* @__PURE__ */ React75.createElement(FormProvider, { ...methods }, /* @__PURE__ */ React75.createElement(
9718
9734
  "form",
@@ -10310,7 +10326,7 @@ var CodeConfirmation = (props) => {
10310
10326
  };
10311
10327
 
10312
10328
  // blocks/feedback/UserReferralSource.tsx
10313
- import React81, { useRef as useRef11, useState as useState29 } from "react";
10329
+ import React81, { useRef as useRef12, useState as useState29 } from "react";
10314
10330
  import { Controller as Controller6, useForm as useForm6 } from "react-hook-form";
10315
10331
  import { zodResolver as zodResolver6 } from "@hookform/resolvers/zod";
10316
10332
  import * as z6 from "zod";
@@ -10321,7 +10337,7 @@ var UserReferralSource = ({
10321
10337
  }) => {
10322
10338
  var _a, _b;
10323
10339
  const [closed, setClosed] = useState29(false);
10324
- const popUpRef = useRef11(null);
10340
+ const popUpRef = useRef12(null);
10325
10341
  const formSchema = z6.object({
10326
10342
  source: z6.string({ required_error: (_a = props.texts) == null ? void 0 : _a.pleaseSelectOption }),
10327
10343
  feedback: z6.string().optional()
@@ -10468,7 +10484,7 @@ var UserReferralSource = ({
10468
10484
  };
10469
10485
 
10470
10486
  // blocks/feedback/FeedbackRating.tsx
10471
- import React82, { useEffect as useEffect18, useRef as useRef12, useState as useState30 } from "react";
10487
+ import React82, { useEffect as useEffect18, useRef as useRef13, useState as useState30 } from "react";
10472
10488
  var FeedbackRating = ({
10473
10489
  position = "bottom-right",
10474
10490
  ...props
@@ -10477,7 +10493,7 @@ var FeedbackRating = ({
10477
10493
  const [answered, setAnswered] = useState30(false);
10478
10494
  const [clickedOption, setClickedOption] = useState30(null);
10479
10495
  const [closingTimer, setClosingTimer] = useState30(5);
10480
- const popUpRef = useRef12(null);
10496
+ const popUpRef = useRef13(null);
10481
10497
  const boxPosition = {
10482
10498
  "bottom-right": "hawa-right-4",
10483
10499
  "bottom-left": "hawa-left-4"
@@ -11189,12 +11205,12 @@ var ActionCard = (props) => {
11189
11205
  };
11190
11206
 
11191
11207
  // blocks/cards/AdCard.tsx
11192
- import React94, { useState as useState33, useEffect as useEffect19, useRef as useRef13 } from "react";
11208
+ import React94, { useState as useState33, useEffect as useEffect19, useRef as useRef14 } from "react";
11193
11209
  var AdCard = ({
11194
11210
  orientation = "vertical",
11195
11211
  ...props
11196
11212
  }) => {
11197
- const adRef = useRef13(null);
11213
+ const adRef = useRef14(null);
11198
11214
  const [closed, setClosed] = useState33(false);
11199
11215
  let duration = 0;
11200
11216
  useEffect19(() => {
@@ -11869,7 +11885,7 @@ var useIsomorphicEffect = typeof document !== "undefined" ? useLayoutEffect : us
11869
11885
  import { useState as useState36 } from "react";
11870
11886
 
11871
11887
  // hooks/useHover.ts
11872
- import { useEffect as useEffect22, useRef as useRef14, useState as useState37 } from "react";
11888
+ import { useEffect as useEffect22, useRef as useRef15, useState as useState37 } from "react";
11873
11889
 
11874
11890
  // hooks/useToast.ts
11875
11891
  import * as React104 from "react";
@@ -11976,7 +11992,7 @@ function useToast() {
11976
11992
  }
11977
11993
 
11978
11994
  // hooks/useCarousel.ts
11979
- import { useState as useState39, useRef as useRef15 } from "react";
11995
+ import { useState as useState39, useRef as useRef16 } from "react";
11980
11996
 
11981
11997
  // hooks/useDialogCarousel.ts
11982
11998
  import { useEffect as useEffect24, useState as useState40 } from "react";
@@ -12022,11 +12038,11 @@ var useDialogCarousel = (options) => {
12022
12038
  };
12023
12039
 
12024
12040
  // hooks/useDialogSteps.ts
12025
- import { useState as useState41, useEffect as useEffect25, useRef as useRef16 } from "react";
12041
+ import { useState as useState41, useEffect as useEffect25, useRef as useRef17 } from "react";
12026
12042
  var useMultiStepDialog = (initialStep, stepIds, setOpenDialog) => {
12027
12043
  const [currentStep, setCurrentStep] = useState41(initialStep);
12028
12044
  const [dialogHeight, setDialogHeight] = useState41(null);
12029
- const visibleStepRef = useRef16(null);
12045
+ const visibleStepRef = useRef17(null);
12030
12046
  useEffect25(() => {
12031
12047
  if (visibleStepRef.current) {
12032
12048
  setDialogHeight(visibleStepRef.current.offsetHeight);
@@ -12079,7 +12095,7 @@ var useWindowSize = () => {
12079
12095
  };
12080
12096
 
12081
12097
  // hooks/useFocusWithin.ts
12082
- import { useRef as useRef17, useState as useState43, useEffect as useEffect27 } from "react";
12098
+ import { useRef as useRef18, useState as useState43, useEffect as useEffect27 } from "react";
12083
12099
  function containsRelatedTarget(event) {
12084
12100
  if (event.currentTarget instanceof HTMLElement && event.relatedTarget instanceof HTMLElement) {
12085
12101
  return event.currentTarget.contains(event.relatedTarget);
@@ -12090,9 +12106,9 @@ function useFocusWithin({
12090
12106
  onBlur,
12091
12107
  onFocus
12092
12108
  } = {}) {
12093
- const ref = useRef17(null);
12109
+ const ref = useRef18(null);
12094
12110
  const [focused, _setFocused] = useState43(false);
12095
- const focusedRef = useRef17(false);
12111
+ const focusedRef = useRef18(false);
12096
12112
  const setFocused = (value) => {
12097
12113
  _setFocused(value);
12098
12114
  focusedRef.current = value;
@@ -12125,7 +12141,7 @@ function useFocusWithin({
12125
12141
  }
12126
12142
 
12127
12143
  // hooks/useMediaQuery.ts
12128
- import { useState as useState44, useEffect as useEffect28, useRef as useRef18 } from "react";
12144
+ import { useState as useState44, useEffect as useEffect28, useRef as useRef19 } from "react";
12129
12145
  function attachMediaListener(query, callback) {
12130
12146
  try {
12131
12147
  query.addEventListener("change", callback);
@@ -12150,7 +12166,7 @@ function useMediaQuery(query, initialValue, { getInitialValueInEffect } = {
12150
12166
  const [matches, setMatches] = useState44(
12151
12167
  getInitialValueInEffect ? initialValue : getInitialValue(query, initialValue)
12152
12168
  );
12153
- const queryRef = useRef18();
12169
+ const queryRef = useRef19();
12154
12170
  useEffect28(() => {
12155
12171
  if ("matchMedia" in window) {
12156
12172
  queryRef.current = window.matchMedia(query);
@@ -411,19 +411,21 @@ var Input = (0, import_react6.forwardRef)(
411
411
  // elements/popover/Popover.tsx
412
412
  var React8 = __toESM(require("react"));
413
413
  var PopoverPrimitive = __toESM(require("@radix-ui/react-popover"));
414
- var PopoverContent = React8.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React8.createElement(PopoverPrimitive.Portal, null, /* @__PURE__ */ React8.createElement(
415
- PopoverPrimitive.Content,
416
- {
417
- ref,
418
- align,
419
- sideOffset,
420
- className: cn(
421
- "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",
422
- className
423
- ),
424
- ...props
425
- }
426
- )));
414
+ var PopoverContent = React8.forwardRef(
415
+ ({ className, align = "center", sideOffset = 4, container, ...props }, ref) => /* @__PURE__ */ React8.createElement(PopoverPrimitive.Portal, { container }, /* @__PURE__ */ React8.createElement(
416
+ PopoverPrimitive.Content,
417
+ {
418
+ ref,
419
+ align,
420
+ sideOffset,
421
+ className: cn(
422
+ "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",
423
+ className
424
+ ),
425
+ ...props
426
+ }
427
+ ))
428
+ );
427
429
  PopoverContent.displayName = PopoverPrimitive.Content.displayName;
428
430
  var Popover = ({
429
431
  trigger,