@sikka/hawa 0.29.13-next → 0.30.0-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 (72) hide show
  1. package/dist/{Radio-aAiNsg4d.d.ts → Radio-MHGhfbpA.d.ts} +3 -2
  2. package/dist/{Radio-H5-wIs2r.d.mts → Radio-ZM5l4CwH.d.mts} +3 -2
  3. package/dist/appLayout/index.js +2 -10
  4. package/dist/appLayout/index.js.map +1 -1
  5. package/dist/appLayout/index.mjs +2 -10
  6. package/dist/appLayout/index.mjs.map +1 -1
  7. package/dist/blocks/feedback/index.js +24 -17
  8. package/dist/blocks/feedback/index.mjs +16 -14
  9. package/dist/blocks/index.d.mts +1 -1
  10. package/dist/blocks/index.d.ts +1 -1
  11. package/dist/blocks/index.js +24 -17
  12. package/dist/blocks/index.mjs +1 -1
  13. package/dist/blocks/pricing/index.js +9 -4
  14. package/dist/blocks/pricing/index.mjs +1 -1
  15. package/dist/{chunk-JESKKO3W.mjs → chunk-JMBRP2WR.mjs} +9 -4
  16. package/dist/{chunk-W2RAWZAF.mjs → chunk-TGB72TYK.mjs} +24 -17
  17. package/dist/combobox/index.d.mts +1 -0
  18. package/dist/combobox/index.d.ts +1 -0
  19. package/dist/combobox/index.js +224 -218
  20. package/dist/combobox/index.js.map +1 -1
  21. package/dist/combobox/index.mjs +224 -218
  22. package/dist/combobox/index.mjs.map +1 -1
  23. package/dist/command/index.js +1 -1
  24. package/dist/command/index.js.map +1 -1
  25. package/dist/command/index.mjs +1 -1
  26. package/dist/command/index.mjs.map +1 -1
  27. package/dist/dataTable/index.d.mts +1 -1
  28. package/dist/dataTable/index.d.ts +1 -1
  29. package/dist/dataTable/index.js.map +1 -1
  30. package/dist/dataTable/index.mjs.map +1 -1
  31. package/dist/dialog/index.d.mts +1 -0
  32. package/dist/dialog/index.d.ts +1 -0
  33. package/dist/dialog/index.js +1 -1
  34. package/dist/dialog/index.js.map +1 -1
  35. package/dist/dialog/index.mjs +1 -1
  36. package/dist/dialog/index.mjs.map +1 -1
  37. package/dist/elements/index.d.mts +11 -6
  38. package/dist/elements/index.d.ts +11 -6
  39. package/dist/elements/index.js +96 -85
  40. package/dist/elements/index.mjs +15 -11
  41. package/dist/index.css +0 -3
  42. package/dist/index.d.mts +12 -6
  43. package/dist/index.d.ts +12 -6
  44. package/dist/index.js +98 -95
  45. package/dist/index.mjs +124 -121
  46. package/dist/interfaceSettings/index.js +9 -4
  47. package/dist/interfaceSettings/index.js.map +1 -1
  48. package/dist/interfaceSettings/index.mjs +9 -4
  49. package/dist/interfaceSettings/index.mjs.map +1 -1
  50. package/dist/layout/index.js +2 -10
  51. package/dist/layout/index.mjs +2 -10
  52. package/dist/passwordInput/index.js +15 -13
  53. package/dist/passwordInput/index.js.map +1 -1
  54. package/dist/passwordInput/index.mjs +15 -13
  55. package/dist/passwordInput/index.mjs.map +1 -1
  56. package/dist/popover/index.d.mts +3 -1
  57. package/dist/popover/index.d.ts +3 -1
  58. package/dist/popover/index.js +15 -13
  59. package/dist/popover/index.js.map +1 -1
  60. package/dist/popover/index.mjs +15 -13
  61. package/dist/popover/index.mjs.map +1 -1
  62. package/dist/radio/index.d.mts +3 -2
  63. package/dist/radio/index.d.ts +3 -2
  64. package/dist/radio/index.js +9 -4
  65. package/dist/radio/index.js.map +1 -1
  66. package/dist/radio/index.mjs +9 -4
  67. package/dist/radio/index.mjs.map +1 -1
  68. package/dist/simpleTable/index.d.mts +4 -3
  69. package/dist/simpleTable/index.d.ts +4 -3
  70. package/dist/simpleTable/index.js.map +1 -1
  71. package/dist/simpleTable/index.mjs.map +1 -1
  72. 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) => {
@@ -3007,7 +3007,8 @@ var Radio = ({
3007
3007
  props.defaultValue || props.value
3008
3008
  );
3009
3009
  let activeTabStyle = "hawa-inline-block hawa-w-full hawa-text-primary-foreground hawa-bg-primary hawa-active dark:hawa-bg-primary";
3010
- let inactiveTabStyle = "hawa-inline-block hawa-w-full hawa-transition-all hover:hawa-bg-muted hawa-bg-primary-foreground dark:hover:hawa-text-white";
3010
+ let inactiveTabStyle = `hawa-inline-block hawa-w-full hawa-transition-all hawa-bg-primary-foreground dark:hover:hawa-text-white
3011
+ ${props.disabled ? "" : "hover:hawa-bg-muted"}`;
3011
3012
  let orientationStyle = {
3012
3013
  horizontal: "hawa-flex hawa-flex-row",
3013
3014
  vertical: "hawa-flex hawa-flex-col"
@@ -3061,14 +3062,18 @@ var Radio = ({
3061
3062
  "li",
3062
3063
  {
3063
3064
  "aria-current": "page",
3064
- onClick: () => handleChange(opt),
3065
+ onClick: () => {
3066
+ if (props.disabled)
3067
+ return;
3068
+ handleChange(opt);
3069
+ },
3065
3070
  className: cn(
3066
- "hawa-w-full hawa-cursor-pointer ",
3071
+ "hawa-w-full hawa-last hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-2 ",
3072
+ !props.disabled && "hawa-cursor-pointer",
3067
3073
  orientation === "horizontal" && parentDirection === "ltr" && "hawa-rounded-none first:hawa-rounded-l last:hawa-rounded-r",
3068
3074
  orientation === "horizontal" && parentDirection === "rtl" && "hawa-rounded-none first:hawa-rounded-r last:hawa-rounded-l",
3069
3075
  orientation === "vertical" && "hawa-rounded-none first:hawa-rounded-t last:hawa-rounded-b",
3070
3076
  tabSizeStyle[size],
3071
- "hawa-last hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-2 ",
3072
3077
  selectedOption === opt.value ? activeTabStyle : inactiveTabStyle
3073
3078
  ),
3074
3079
  key: o
@@ -3191,72 +3196,10 @@ var Radio = ({
3191
3196
  import * as React27 from "react";
3192
3197
  import * as PopoverPrimitive2 from "@radix-ui/react-popover";
3193
3198
 
3194
- // elements/popover/Popover.tsx
3195
- import * as React25 from "react";
3196
- import * as PopoverPrimitive from "@radix-ui/react-popover";
3197
- var PopoverContent = React25.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React25.createElement(PopoverPrimitive.Portal, null, /* @__PURE__ */ React25.createElement(
3198
- PopoverPrimitive.Content,
3199
- {
3200
- ref,
3201
- align,
3202
- sideOffset,
3203
- className: cn(
3204
- "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",
3205
- className
3206
- ),
3207
- ...props
3208
- }
3209
- )));
3210
- PopoverContent.displayName = PopoverPrimitive.Content.displayName;
3211
- var Popover = ({
3212
- trigger,
3213
- children,
3214
- className,
3215
- align = "center",
3216
- side,
3217
- sideOffset = 4,
3218
- open,
3219
- width = "default",
3220
- disableTrigger,
3221
- contentProps,
3222
- triggerProps,
3223
- ...props
3224
- }) => {
3225
- let widthStyles = {
3226
- trigger: "var(--radix-popover-trigger-width)",
3227
- default: "auto"
3228
- };
3229
- return /* @__PURE__ */ React25.createElement(PopoverPrimitive.Root, { open, ...props }, /* @__PURE__ */ React25.createElement(
3230
- PopoverPrimitive.Trigger,
3231
- {
3232
- className: "hawa-w-full",
3233
- disabled: disableTrigger,
3234
- ...triggerProps
3235
- },
3236
- trigger
3237
- ), /* @__PURE__ */ React25.createElement(
3238
- PopoverContent,
3239
- {
3240
- side,
3241
- className,
3242
- align,
3243
- sideOffset,
3244
- style: {
3245
- width: widthStyles[width],
3246
- maxWidth: "var(--radix-popover-content-available-width)",
3247
- maxHeight: "var(--radix-popover-content-available-height)"
3248
- },
3249
- ...contentProps
3250
- },
3251
- children
3252
- ));
3253
- };
3254
- var PopoverTrigger = PopoverPrimitive.Trigger;
3255
-
3256
3199
  // elements/command/Command.tsx
3257
- import * as React26 from "react";
3200
+ import * as React25 from "react";
3258
3201
  import { Command as CommandPrimitive } from "cmdk";
3259
- var Command = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React26.createElement(
3202
+ var Command = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React25.createElement(
3260
3203
  CommandPrimitive,
3261
3204
  {
3262
3205
  ref,
@@ -3269,15 +3212,15 @@ var Command = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__
3269
3212
  ));
3270
3213
  Command.displayName = CommandPrimitive.displayName;
3271
3214
  var CommandDialog = ({ children, ...props }) => {
3272
- 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)));
3215
+ 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)));
3273
3216
  };
3274
- var CommandInput = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React26.createElement(
3217
+ var CommandInput = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React25.createElement(
3275
3218
  "div",
3276
3219
  {
3277
3220
  className: "hawa-flex hawa-items-center hawa-border-b hawa-px-3",
3278
3221
  "cmdk-input-wrapper": ""
3279
3222
  },
3280
- /* @__PURE__ */ React26.createElement(
3223
+ /* @__PURE__ */ React25.createElement(
3281
3224
  "svg",
3282
3225
  {
3283
3226
  "aria-label": "Search Icon",
@@ -3292,10 +3235,10 @@ var CommandInput = React26.forwardRef(({ className, ...props }, ref) => /* @__PU
3292
3235
  strokeLinejoin: "round",
3293
3236
  className: "hawa-icon hawa-me-2 hawa-shrink-0 hawa-opacity-50"
3294
3237
  },
3295
- /* @__PURE__ */ React26.createElement("circle", { cx: "11", cy: "11", r: "8" }),
3296
- /* @__PURE__ */ React26.createElement("path", { d: "m21 21-4.3-4.3" })
3238
+ /* @__PURE__ */ React25.createElement("circle", { cx: "11", cy: "11", r: "8" }),
3239
+ /* @__PURE__ */ React25.createElement("path", { d: "m21 21-4.3-4.3" })
3297
3240
  ),
3298
- /* @__PURE__ */ React26.createElement(
3241
+ /* @__PURE__ */ React25.createElement(
3299
3242
  CommandPrimitive.Input,
3300
3243
  {
3301
3244
  ref,
@@ -3308,7 +3251,7 @@ var CommandInput = React26.forwardRef(({ className, ...props }, ref) => /* @__PU
3308
3251
  )
3309
3252
  ));
3310
3253
  CommandInput.displayName = CommandPrimitive.Input.displayName;
3311
- var CommandList = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React26.createElement(
3254
+ var CommandList = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React25.createElement(
3312
3255
  CommandPrimitive.List,
3313
3256
  {
3314
3257
  ref,
@@ -3320,7 +3263,7 @@ var CommandList = React26.forwardRef(({ className, ...props }, ref) => /* @__PUR
3320
3263
  }
3321
3264
  ));
3322
3265
  CommandList.displayName = CommandPrimitive.List.displayName;
3323
- var CommandEmpty = React26.forwardRef((props, ref) => /* @__PURE__ */ React26.createElement(
3266
+ var CommandEmpty = React25.forwardRef((props, ref) => /* @__PURE__ */ React25.createElement(
3324
3267
  CommandPrimitive.Empty,
3325
3268
  {
3326
3269
  ref,
@@ -3329,7 +3272,7 @@ var CommandEmpty = React26.forwardRef((props, ref) => /* @__PURE__ */ React26.cr
3329
3272
  }
3330
3273
  ));
3331
3274
  CommandEmpty.displayName = CommandPrimitive.Empty.displayName;
3332
- var CommandGroup = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React26.createElement(
3275
+ var CommandGroup = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React25.createElement(
3333
3276
  CommandPrimitive.Group,
3334
3277
  {
3335
3278
  ref,
@@ -3341,7 +3284,7 @@ var CommandGroup = React26.forwardRef(({ className, ...props }, ref) => /* @__PU
3341
3284
  }
3342
3285
  ));
3343
3286
  CommandGroup.displayName = CommandPrimitive.Group.displayName;
3344
- var CommandSeparator = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React26.createElement(
3287
+ var CommandSeparator = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React25.createElement(
3345
3288
  CommandPrimitive.Separator,
3346
3289
  {
3347
3290
  ref,
@@ -3350,7 +3293,7 @@ var CommandSeparator = React26.forwardRef(({ className, ...props }, ref) => /* @
3350
3293
  }
3351
3294
  ));
3352
3295
  CommandSeparator.displayName = CommandPrimitive.Separator.displayName;
3353
- var CommandItem = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React26.createElement(
3296
+ var CommandItem = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React25.createElement(
3354
3297
  CommandPrimitive.Item,
3355
3298
  {
3356
3299
  ref,
@@ -3366,7 +3309,7 @@ var CommandShortcut = ({
3366
3309
  className,
3367
3310
  ...props
3368
3311
  }) => {
3369
- return /* @__PURE__ */ React26.createElement(
3312
+ return /* @__PURE__ */ React25.createElement(
3370
3313
  "span",
3371
3314
  {
3372
3315
  className: cn(
@@ -3379,6 +3322,70 @@ var CommandShortcut = ({
3379
3322
  };
3380
3323
  CommandShortcut.displayName = "CommandShortcut";
3381
3324
 
3325
+ // elements/popover/Popover.tsx
3326
+ import * as React26 from "react";
3327
+ import * as PopoverPrimitive from "@radix-ui/react-popover";
3328
+ var PopoverContent = React26.forwardRef(
3329
+ ({ className, align = "center", sideOffset = 4, container, ...props }, ref) => /* @__PURE__ */ React26.createElement(PopoverPrimitive.Portal, { container }, /* @__PURE__ */ React26.createElement(
3330
+ PopoverPrimitive.Content,
3331
+ {
3332
+ ref,
3333
+ align,
3334
+ sideOffset,
3335
+ className: cn(
3336
+ "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",
3337
+ className
3338
+ ),
3339
+ ...props
3340
+ }
3341
+ ))
3342
+ );
3343
+ PopoverContent.displayName = PopoverPrimitive.Content.displayName;
3344
+ var Popover = ({
3345
+ trigger,
3346
+ children,
3347
+ className,
3348
+ align = "center",
3349
+ side,
3350
+ sideOffset = 4,
3351
+ open,
3352
+ width = "default",
3353
+ disableTrigger,
3354
+ contentProps,
3355
+ triggerProps,
3356
+ ...props
3357
+ }) => {
3358
+ let widthStyles = {
3359
+ trigger: "var(--radix-popover-trigger-width)",
3360
+ default: "auto"
3361
+ };
3362
+ return /* @__PURE__ */ React26.createElement(PopoverPrimitive.Root, { open, ...props }, /* @__PURE__ */ React26.createElement(
3363
+ PopoverPrimitive.Trigger,
3364
+ {
3365
+ className: "hawa-w-full",
3366
+ disabled: disableTrigger,
3367
+ ...triggerProps
3368
+ },
3369
+ trigger
3370
+ ), /* @__PURE__ */ React26.createElement(
3371
+ PopoverContent,
3372
+ {
3373
+ side,
3374
+ className,
3375
+ align,
3376
+ sideOffset,
3377
+ style: {
3378
+ width: widthStyles[width],
3379
+ maxWidth: "var(--radix-popover-content-available-width)",
3380
+ maxHeight: "var(--radix-popover-content-available-height)"
3381
+ },
3382
+ ...contentProps
3383
+ },
3384
+ children
3385
+ ));
3386
+ };
3387
+ var PopoverTrigger = PopoverPrimitive.Trigger;
3388
+
3382
3389
  // elements/combobox/Combobox.tsx
3383
3390
  var Combobox = React27.forwardRef(
3384
3391
  ({
@@ -3389,11 +3396,13 @@ var Combobox = React27.forwardRef(
3389
3396
  direction,
3390
3397
  labelProps,
3391
3398
  data,
3399
+ renderOption,
3392
3400
  ...props
3393
3401
  }, ref) => {
3394
3402
  var _a, _b, _c;
3395
3403
  const [open, setOpen] = React27.useState(false);
3396
3404
  const [value, setValue] = React27.useState(defaultValue);
3405
+ const containerRef = React27.useRef(null);
3397
3406
  function getProperty(obj, key) {
3398
3407
  return obj[key];
3399
3408
  }
@@ -3408,7 +3417,8 @@ var Combobox = React27.forwardRef(
3408
3417
  className: cn(
3409
3418
  "hawa-relative hawa-flex hawa-h-fit hawa-flex-col hawa-gap-2",
3410
3419
  props.width === "fit" ? "hawa-w-fit" : "hawa-w-full"
3411
- )
3420
+ ),
3421
+ ref: containerRef
3412
3422
  },
3413
3423
  props.label && /* @__PURE__ */ React27.createElement(Label2, { ...labelProps }, props.label),
3414
3424
  /* @__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(
@@ -3466,7 +3476,8 @@ var Combobox = React27.forwardRef(
3466
3476
  {
3467
3477
  sideOffset: 0,
3468
3478
  className: cn("popover-w-parent", props.helperText && "-hawa-mt-4"),
3469
- dir: direction
3479
+ dir: direction,
3480
+ container: containerRef.current
3470
3481
  },
3471
3482
  /* @__PURE__ */ React27.createElement(Command, null, !props.hideInput && /* @__PURE__ */ React27.createElement(
3472
3483
  CommandInput,
@@ -3474,7 +3485,7 @@ var Combobox = React27.forwardRef(
3474
3485
  dir: direction,
3475
3486
  placeholder: ((_b = props.texts) == null ? void 0 : _b.searchPlaceholder) || "Search"
3476
3487
  }
3477
- ), /* @__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(
3488
+ ), /* @__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(
3478
3489
  CommandItem,
3479
3490
  {
3480
3491
  key: i,
@@ -3510,7 +3521,7 @@ var Combobox = React27.forwardRef(
3510
3521
  },
3511
3522
  /* @__PURE__ */ React27.createElement("polyline", { points: "20 6 9 17 4 12" })
3512
3523
  ),
3513
- getProperty(item, labelKey)
3524
+ renderOption ? renderOption(item) : getProperty(item, labelKey)
3514
3525
  ))))
3515
3526
  ))
3516
3527
  );
@@ -4414,7 +4425,7 @@ var AppStores = (props) => {
4414
4425
  };
4415
4426
 
4416
4427
  // elements/badge/Badge.tsx
4417
- import React38, { useEffect as useEffect7, useState as useState9, useRef as useRef6 } from "react";
4428
+ import React38, { useEffect as useEffect7, useState as useState9, useRef as useRef7 } from "react";
4418
4429
  var Badge = ({
4419
4430
  anchor,
4420
4431
  position = "right",
@@ -4423,7 +4434,7 @@ var Badge = ({
4423
4434
  className
4424
4435
  }) => {
4425
4436
  const [badgePosition, setBadgePosition] = useState9(null);
4426
- const indicatorRef = useRef6(null);
4437
+ const indicatorRef = useRef7(null);
4427
4438
  const sizeStyles2 = {
4428
4439
  small: { top: 4, left: 6, right: 7, classes: "hawa-w-3 hawa-h-3" },
4429
4440
  default: { top: 4, left: 7, right: 5, classes: "hawa-w-3 hawa-h-3" },
@@ -4477,7 +4488,7 @@ var BadgedComponent = ({
4477
4488
  size,
4478
4489
  text
4479
4490
  }) => {
4480
- const ref = useRef6(null);
4491
+ const ref = useRef7(null);
4481
4492
  return /* @__PURE__ */ React38.createElement("div", { className: cn("hawa-relative hawa-w-fit", className), ref }, !hideBadge && /* @__PURE__ */ React38.createElement(
4482
4493
  Badge,
4483
4494
  {
@@ -4491,7 +4502,7 @@ var BadgedComponent = ({
4491
4502
  };
4492
4503
 
4493
4504
  // elements/phoneInput/PhoneInput.tsx
4494
- import React39, { useState as useState10, useRef as useRef7, useEffect as useEffect8 } from "react";
4505
+ import React39, { useState as useState10, useRef as useRef8, useEffect as useEffect8 } from "react";
4495
4506
 
4496
4507
  // countries.ts
4497
4508
  var countries = [
@@ -6190,7 +6201,7 @@ var countries_default = countries;
6190
6201
  var PhoneInput = ({ labelProps, ...props }) => {
6191
6202
  const [phoneNumber, setPhoneNumber] = useState10("");
6192
6203
  const [countryCode, setCountryCode] = useState10(props.preferredCountry);
6193
- const inputRef = useRef7(null);
6204
+ const inputRef = useRef8(null);
6194
6205
  useEffect8(() => {
6195
6206
  var _a;
6196
6207
  if (inputRef.current) {
@@ -7674,7 +7685,7 @@ function Toaster(props) {
7674
7685
  }
7675
7686
 
7676
7687
  // elements/destroyableCard/DestroyableCard.tsx
7677
- import React59, { useRef as useRef8, useState as useState18 } from "react";
7688
+ import React59, { useRef as useRef9, useState as useState18 } from "react";
7678
7689
  var DestroyableCard = ({
7679
7690
  position = "bottom-right",
7680
7691
  fixed,
@@ -7682,7 +7693,7 @@ var DestroyableCard = ({
7682
7693
  ...props
7683
7694
  }) => {
7684
7695
  const [closed, setClosed] = useState18(false);
7685
- const popUpRef = useRef8(null);
7696
+ const popUpRef = useRef9(null);
7686
7697
  const boxPosition = {
7687
7698
  "bottom-right": "hawa-right-4 hawa-bottom-4",
7688
7699
  "bottom-left": "hawa-left-4 hawa-bottom-4"
@@ -8218,7 +8229,7 @@ var Navbar = ({
8218
8229
  };
8219
8230
 
8220
8231
  // layout/appLayout/AppLayout.tsx
8221
- import React66, { useEffect as useEffect14, useRef as useRef9, useState as useState21 } from "react";
8232
+ import React66, { useEffect as useEffect14, useRef as useRef10, useState as useState21 } from "react";
8222
8233
  var AppLayout = ({
8223
8234
  profileMenuWidth = "default",
8224
8235
  DrawerFooterActions,
@@ -8238,18 +8249,10 @@ var AppLayout = ({
8238
8249
  let closeDrawerWidth = 56;
8239
8250
  let openDrawerWidth = 200;
8240
8251
  let drawerSizeStyle = {
8241
- opened: {
8242
- sm: "100",
8243
- md: openDrawerWidth,
8244
- lg: "250"
8245
- },
8246
- closed: {
8247
- sm: closeDrawerWidth,
8248
- md: closeDrawerWidth,
8249
- lg: closeDrawerWidth
8250
- }
8252
+ opened: { sm: "100", md: openDrawerWidth, lg: "250" },
8253
+ closed: { sm: closeDrawerWidth, md: closeDrawerWidth, lg: closeDrawerWidth }
8251
8254
  };
8252
- const ref = useRef9(null);
8255
+ const ref = useRef10(null);
8253
8256
  const isRTL = direction === "rtl";
8254
8257
  const [openedSidebarItem, setOpenedSidebarItem] = useState21("");
8255
8258
  const [size, setSize] = useState21(1200);
@@ -8933,7 +8936,7 @@ var AppTabs = ({ tabs, className }) => {
8933
8936
  };
8934
8937
 
8935
8938
  // layout/docsLayout/DocsLayout.tsx
8936
- import React72, { useEffect as useEffect16, useRef as useRef10, useState as useState24 } from "react";
8939
+ import React72, { useEffect as useEffect16, useRef as useRef11, useState as useState24 } from "react";
8937
8940
 
8938
8941
  // hooks/useBreakpoint.ts
8939
8942
  import { useState as useState23, useEffect as useEffect15 } from "react";
@@ -9042,7 +9045,7 @@ var DocsLayout = ({
9042
9045
  lg: closeDrawerWidth
9043
9046
  }
9044
9047
  };
9045
- const ref = useRef10(null);
9048
+ const ref = useRef11(null);
9046
9049
  const isRTL = direction === "rtl";
9047
9050
  let size = useBreakpoint();
9048
9051
  if (typeof window == "undefined") {
@@ -10313,7 +10316,7 @@ var CodeConfirmation = (props) => {
10313
10316
  };
10314
10317
 
10315
10318
  // blocks/feedback/UserReferralSource.tsx
10316
- import React81, { useRef as useRef11, useState as useState29 } from "react";
10319
+ import React81, { useRef as useRef12, useState as useState29 } from "react";
10317
10320
  import { Controller as Controller6, useForm as useForm6 } from "react-hook-form";
10318
10321
  import { zodResolver as zodResolver6 } from "@hookform/resolvers/zod";
10319
10322
  import * as z6 from "zod";
@@ -10324,7 +10327,7 @@ var UserReferralSource = ({
10324
10327
  }) => {
10325
10328
  var _a, _b;
10326
10329
  const [closed, setClosed] = useState29(false);
10327
- const popUpRef = useRef11(null);
10330
+ const popUpRef = useRef12(null);
10328
10331
  const formSchema = z6.object({
10329
10332
  source: z6.string({ required_error: (_a = props.texts) == null ? void 0 : _a.pleaseSelectOption }),
10330
10333
  feedback: z6.string().optional()
@@ -10471,7 +10474,7 @@ var UserReferralSource = ({
10471
10474
  };
10472
10475
 
10473
10476
  // blocks/feedback/FeedbackRating.tsx
10474
- import React82, { useEffect as useEffect18, useRef as useRef12, useState as useState30 } from "react";
10477
+ import React82, { useEffect as useEffect18, useRef as useRef13, useState as useState30 } from "react";
10475
10478
  var FeedbackRating = ({
10476
10479
  position = "bottom-right",
10477
10480
  ...props
@@ -10480,7 +10483,7 @@ var FeedbackRating = ({
10480
10483
  const [answered, setAnswered] = useState30(false);
10481
10484
  const [clickedOption, setClickedOption] = useState30(null);
10482
10485
  const [closingTimer, setClosingTimer] = useState30(5);
10483
- const popUpRef = useRef12(null);
10486
+ const popUpRef = useRef13(null);
10484
10487
  const boxPosition = {
10485
10488
  "bottom-right": "hawa-right-4",
10486
10489
  "bottom-left": "hawa-left-4"
@@ -11192,12 +11195,12 @@ var ActionCard = (props) => {
11192
11195
  };
11193
11196
 
11194
11197
  // blocks/cards/AdCard.tsx
11195
- import React94, { useState as useState33, useEffect as useEffect19, useRef as useRef13 } from "react";
11198
+ import React94, { useState as useState33, useEffect as useEffect19, useRef as useRef14 } from "react";
11196
11199
  var AdCard = ({
11197
11200
  orientation = "vertical",
11198
11201
  ...props
11199
11202
  }) => {
11200
- const adRef = useRef13(null);
11203
+ const adRef = useRef14(null);
11201
11204
  const [closed, setClosed] = useState33(false);
11202
11205
  let duration = 0;
11203
11206
  useEffect19(() => {
@@ -11872,7 +11875,7 @@ var useIsomorphicEffect = typeof document !== "undefined" ? useLayoutEffect : us
11872
11875
  import { useState as useState36 } from "react";
11873
11876
 
11874
11877
  // hooks/useHover.ts
11875
- import { useEffect as useEffect22, useRef as useRef14, useState as useState37 } from "react";
11878
+ import { useEffect as useEffect22, useRef as useRef15, useState as useState37 } from "react";
11876
11879
 
11877
11880
  // hooks/useToast.ts
11878
11881
  import * as React104 from "react";
@@ -11979,7 +11982,7 @@ function useToast() {
11979
11982
  }
11980
11983
 
11981
11984
  // hooks/useCarousel.ts
11982
- import { useState as useState39, useRef as useRef15 } from "react";
11985
+ import { useState as useState39, useRef as useRef16 } from "react";
11983
11986
 
11984
11987
  // hooks/useDialogCarousel.ts
11985
11988
  import { useEffect as useEffect24, useState as useState40 } from "react";
@@ -12025,11 +12028,11 @@ var useDialogCarousel = (options) => {
12025
12028
  };
12026
12029
 
12027
12030
  // hooks/useDialogSteps.ts
12028
- import { useState as useState41, useEffect as useEffect25, useRef as useRef16 } from "react";
12031
+ import { useState as useState41, useEffect as useEffect25, useRef as useRef17 } from "react";
12029
12032
  var useMultiStepDialog = (initialStep, stepIds, setOpenDialog) => {
12030
12033
  const [currentStep, setCurrentStep] = useState41(initialStep);
12031
12034
  const [dialogHeight, setDialogHeight] = useState41(null);
12032
- const visibleStepRef = useRef16(null);
12035
+ const visibleStepRef = useRef17(null);
12033
12036
  useEffect25(() => {
12034
12037
  if (visibleStepRef.current) {
12035
12038
  setDialogHeight(visibleStepRef.current.offsetHeight);
@@ -12082,7 +12085,7 @@ var useWindowSize = () => {
12082
12085
  };
12083
12086
 
12084
12087
  // hooks/useFocusWithin.ts
12085
- import { useRef as useRef17, useState as useState43, useEffect as useEffect27 } from "react";
12088
+ import { useRef as useRef18, useState as useState43, useEffect as useEffect27 } from "react";
12086
12089
  function containsRelatedTarget(event) {
12087
12090
  if (event.currentTarget instanceof HTMLElement && event.relatedTarget instanceof HTMLElement) {
12088
12091
  return event.currentTarget.contains(event.relatedTarget);
@@ -12093,9 +12096,9 @@ function useFocusWithin({
12093
12096
  onBlur,
12094
12097
  onFocus
12095
12098
  } = {}) {
12096
- const ref = useRef17(null);
12099
+ const ref = useRef18(null);
12097
12100
  const [focused, _setFocused] = useState43(false);
12098
- const focusedRef = useRef17(false);
12101
+ const focusedRef = useRef18(false);
12099
12102
  const setFocused = (value) => {
12100
12103
  _setFocused(value);
12101
12104
  focusedRef.current = value;
@@ -12128,7 +12131,7 @@ function useFocusWithin({
12128
12131
  }
12129
12132
 
12130
12133
  // hooks/useMediaQuery.ts
12131
- import { useState as useState44, useEffect as useEffect28, useRef as useRef18 } from "react";
12134
+ import { useState as useState44, useEffect as useEffect28, useRef as useRef19 } from "react";
12132
12135
  function attachMediaListener(query, callback) {
12133
12136
  try {
12134
12137
  query.addEventListener("change", callback);
@@ -12153,7 +12156,7 @@ function useMediaQuery(query, initialValue, { getInitialValueInEffect } = {
12153
12156
  const [matches, setMatches] = useState44(
12154
12157
  getInitialValueInEffect ? initialValue : getInitialValue(query, initialValue)
12155
12158
  );
12156
- const queryRef = useRef18();
12159
+ const queryRef = useRef19();
12157
12160
  useEffect28(() => {
12158
12161
  if ("matchMedia" in window) {
12159
12162
  queryRef.current = window.matchMedia(query);
@@ -182,7 +182,8 @@ var Radio = ({
182
182
  props.defaultValue || props.value
183
183
  );
184
184
  let activeTabStyle = "hawa-inline-block hawa-w-full hawa-text-primary-foreground hawa-bg-primary hawa-active dark:hawa-bg-primary";
185
- let inactiveTabStyle = "hawa-inline-block hawa-w-full hawa-transition-all hover:hawa-bg-muted hawa-bg-primary-foreground dark:hover:hawa-text-white";
185
+ let inactiveTabStyle = `hawa-inline-block hawa-w-full hawa-transition-all hawa-bg-primary-foreground dark:hover:hawa-text-white
186
+ ${props.disabled ? "" : "hover:hawa-bg-muted"}`;
186
187
  let orientationStyle = {
187
188
  horizontal: "hawa-flex hawa-flex-row",
188
189
  vertical: "hawa-flex hawa-flex-col"
@@ -236,14 +237,18 @@ var Radio = ({
236
237
  "li",
237
238
  {
238
239
  "aria-current": "page",
239
- onClick: () => handleChange(opt),
240
+ onClick: () => {
241
+ if (props.disabled)
242
+ return;
243
+ handleChange(opt);
244
+ },
240
245
  className: cn(
241
- "hawa-w-full hawa-cursor-pointer ",
246
+ "hawa-w-full hawa-last hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-2 ",
247
+ !props.disabled && "hawa-cursor-pointer",
242
248
  orientation === "horizontal" && parentDirection === "ltr" && "hawa-rounded-none first:hawa-rounded-l last:hawa-rounded-r",
243
249
  orientation === "horizontal" && parentDirection === "rtl" && "hawa-rounded-none first:hawa-rounded-r last:hawa-rounded-l",
244
250
  orientation === "vertical" && "hawa-rounded-none first:hawa-rounded-t last:hawa-rounded-b",
245
251
  tabSizeStyle[size],
246
- "hawa-last hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-2 ",
247
252
  selectedOption === opt.value ? activeTabStyle : inactiveTabStyle
248
253
  ),
249
254
  key: o