@sikka/hawa 0.30.12-next → 0.30.14-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 (68) hide show
  1. package/dist/{DropdownMenu-o2-hzTmS.d.mts → DropdownMenu-arqV1gRt.d.mts} +1 -1
  2. package/dist/{DropdownMenu-q6HfeO08.d.ts → DropdownMenu-sSnQc6fT.d.ts} +1 -1
  3. package/dist/{Radio-ZM5l4CwH.d.mts → Radio-9MkZay6D.d.mts} +3 -3
  4. package/dist/{Radio-MHGhfbpA.d.ts → Radio-bhKmANMf.d.ts} +3 -3
  5. package/dist/appLayout/index.js +6 -2
  6. package/dist/appLayout/index.js.map +1 -1
  7. package/dist/appLayout/index.mjs +6 -2
  8. package/dist/appLayout/index.mjs.map +1 -1
  9. package/dist/appTopbar/index.js +3 -5
  10. package/dist/appTopbar/index.js.map +1 -1
  11. package/dist/appTopbar/index.mjs +3 -5
  12. package/dist/appTopbar/index.mjs.map +1 -1
  13. package/dist/blocks/auth/index.js +1 -1
  14. package/dist/blocks/auth/index.mjs +2 -2
  15. package/dist/blocks/feedback/index.js +179 -177
  16. package/dist/blocks/feedback/index.mjs +2 -2
  17. package/dist/blocks/index.d.mts +2 -2
  18. package/dist/blocks/index.d.ts +2 -2
  19. package/dist/blocks/index.js +181 -179
  20. package/dist/blocks/index.mjs +3 -3
  21. package/dist/blocks/misc/index.js +1 -1
  22. package/dist/blocks/misc/index.mjs +2 -2
  23. package/dist/blocks/pricing/index.js +179 -177
  24. package/dist/blocks/pricing/index.mjs +1 -1
  25. package/dist/{chunk-3GZMGTI5.mjs → chunk-OUAQNQWP.mjs} +180 -178
  26. package/dist/chunk-R52CZJK3.mjs +215 -0
  27. package/dist/dataTable/index.js.map +1 -1
  28. package/dist/dataTable/index.mjs.map +1 -1
  29. package/dist/dropdownMenu/index.d.mts +1 -1
  30. package/dist/dropdownMenu/index.d.ts +1 -1
  31. package/dist/dropdownMenu/index.js.map +1 -1
  32. package/dist/dropdownMenu/index.mjs.map +1 -1
  33. package/dist/elements/index.d.mts +3 -3
  34. package/dist/elements/index.d.ts +3 -3
  35. package/dist/elements/index.js +179 -177
  36. package/dist/elements/index.mjs +1 -1
  37. package/dist/index.css +9 -0
  38. package/dist/index.d.mts +3 -3
  39. package/dist/index.d.ts +3 -3
  40. package/dist/index.js +188 -182
  41. package/dist/index.mjs +189 -183
  42. package/dist/interfaceSettings/index.js +179 -177
  43. package/dist/interfaceSettings/index.js.map +1 -1
  44. package/dist/interfaceSettings/index.mjs +180 -178
  45. package/dist/interfaceSettings/index.mjs.map +1 -1
  46. package/dist/layout/index.d.mts +1 -1
  47. package/dist/layout/index.d.ts +1 -1
  48. package/dist/layout/index.js +7 -3
  49. package/dist/layout/index.mjs +7 -3
  50. package/dist/phoneInput/index.js.map +1 -1
  51. package/dist/phoneInput/index.mjs.map +1 -1
  52. package/dist/radio/index.d.mts +2 -2
  53. package/dist/radio/index.d.ts +2 -2
  54. package/dist/radio/index.js +179 -177
  55. package/dist/radio/index.js.map +1 -1
  56. package/dist/radio/index.mjs +180 -178
  57. package/dist/radio/index.mjs.map +1 -1
  58. package/dist/select/index.d.mts +1 -1
  59. package/dist/select/index.d.ts +1 -1
  60. package/dist/select/index.js +3 -1
  61. package/dist/select/index.js.map +1 -1
  62. package/dist/select/index.mjs +3 -1
  63. package/dist/select/index.mjs.map +1 -1
  64. package/dist/splitButton/index.js.map +1 -1
  65. package/dist/splitButton/index.mjs.map +1 -1
  66. package/package.json +1 -1
  67. package/dist/chunk-U42KD2OQ.mjs +0 -213
  68. /package/dist/{chunk-M3IRSZWA.mjs → chunk-ER7YWU7Z.mjs} +0 -0
package/dist/index.js CHANGED
@@ -3260,207 +3260,209 @@ var BackToTop = ({ ...props }) => {
3260
3260
 
3261
3261
  // elements/radio/Radio.tsx
3262
3262
  var import_react11 = __toESM(require("react"));
3263
- var Radio = ({
3264
- design = "default",
3265
- width = "default",
3266
- size = "default",
3267
- orientation = "horizontal",
3268
- name,
3269
- labelProps,
3270
- tabsContainerClassName,
3271
- forceHideHelperText = false,
3272
- onChange,
3273
- ...props
3274
- }) => {
3275
- var _a, _b, _c;
3276
- const [selectedOption, setSelectedOption] = (0, import_react11.useState)(
3277
- props.defaultValue || props.value
3278
- );
3279
- let activeTabStyle = "hawa-inline-block hawa-w-full hawa-text-primary-foreground hawa-bg-primary hawa-active dark:hawa-bg-primary";
3280
- let inactiveTabStyle = `hawa-inline-block hawa-w-full hawa-transition-all hawa-bg-primary-foreground dark:hover:hawa-text-white
3263
+ var Radio = (0, import_react11.forwardRef)(
3264
+ ({
3265
+ design = "default",
3266
+ width = "default",
3267
+ size = "default",
3268
+ orientation = "horizontal",
3269
+ name,
3270
+ labelProps,
3271
+ tabsContainerClassName,
3272
+ forceHideHelperText = false,
3273
+ onChange,
3274
+ ...props
3275
+ }, ref) => {
3276
+ var _a, _b, _c;
3277
+ const [selectedOption, setSelectedOption] = (0, import_react11.useState)(
3278
+ props.defaultValue || props.value
3279
+ );
3280
+ let activeTabStyle = "hawa-inline-block hawa-w-full hawa-text-primary-foreground hawa-bg-primary hawa-active dark:hawa-bg-primary";
3281
+ let inactiveTabStyle = `hawa-inline-block hawa-w-full hawa-transition-all hawa-bg-primary-foreground dark:hover:hawa-text-white
3281
3282
  ${props.disabled ? "" : "hover:hawa-bg-muted"}`;
3282
- let orientationStyle = {
3283
- horizontal: "hawa-flex hawa-flex-row",
3284
- vertical: "hawa-flex hawa-flex-col"
3285
- };
3286
- let tabSizeStyle = {
3287
- default: "hawa-py-2 hawa-px-4 hawa-text-sm",
3288
- lg: "hawa-py-2 hawa-px-4",
3289
- sm: "hawa-p-1.5 hawa-text-xs",
3290
- xs: "hawa-p-1 hawa-text-[10px]"
3291
- };
3292
- let widthStyle = {
3293
- none: "",
3294
- default: "hawa-max-w-fit",
3295
- full: "hawa-w-full"
3296
- };
3297
- const [parentDirection, setParentDirection] = import_react11.default.useState(
3298
- null
3299
- );
3300
- const parentRef = (0, import_react11.useRef)(null);
3301
- (0, import_react11.useEffect)(() => {
3302
- var _a2;
3303
- const parentNode = (_a2 = parentRef.current) == null ? void 0 : _a2.parentNode;
3304
- if (parentNode) {
3305
- const dir = window.getComputedStyle(parentNode).direction;
3306
- setParentDirection(dir);
3307
- }
3308
- });
3309
- const handleChange = (opt) => {
3310
- setSelectedOption(opt.value);
3311
- if (onChange) {
3312
- onChange(opt.value);
3313
- } else {
3314
- console.log("onChange was not provided");
3315
- }
3316
- };
3317
- switch (design) {
3318
- case "tabs":
3319
- return /* @__PURE__ */ import_react11.default.createElement("div", { className: "hawa-gap-2 hawa-flex hawa-flex-col" }, props.label && /* @__PURE__ */ import_react11.default.createElement(Label2, { ...labelProps }, props.label), /* @__PURE__ */ import_react11.default.createElement(
3320
- "ul",
3321
- {
3322
- ref: parentRef,
3323
- className: cn(
3324
- props.options && ((_a = props.options) == null ? void 0 : _a.length) > 2 ? "hawa-flex-wrap xs:hawa-max-w-full xs:hawa-flex-nowrap" : "",
3325
- "hawa-select-none hawa-whitespace-nowrap hawa-rounded hawa-border hawa-text-center hawa-font-medium",
3326
- orientationStyle[orientation],
3327
- widthStyle[width],
3328
- tabsContainerClassName
3329
- )
3330
- },
3331
- (_b = props.options) == null ? void 0 : _b.map((opt, o) => /* @__PURE__ */ import_react11.default.createElement(
3332
- "li",
3283
+ let orientationStyle = {
3284
+ horizontal: "hawa-flex hawa-flex-row",
3285
+ vertical: "hawa-flex hawa-flex-col"
3286
+ };
3287
+ let tabSizeStyle = {
3288
+ default: "hawa-py-2 hawa-px-4 hawa-text-sm",
3289
+ lg: "hawa-py-2 hawa-px-4",
3290
+ sm: "hawa-p-1.5 hawa-text-xs",
3291
+ xs: "hawa-p-1 hawa-text-[10px]"
3292
+ };
3293
+ let widthStyle = {
3294
+ none: "",
3295
+ default: "hawa-max-w-fit",
3296
+ full: "hawa-w-full"
3297
+ };
3298
+ const [parentDirection, setParentDirection] = import_react11.default.useState(
3299
+ null
3300
+ );
3301
+ const parentRef = (0, import_react11.useRef)(null);
3302
+ (0, import_react11.useEffect)(() => {
3303
+ var _a2;
3304
+ const parentNode = (_a2 = parentRef.current) == null ? void 0 : _a2.parentNode;
3305
+ if (parentNode) {
3306
+ const dir = window.getComputedStyle(parentNode).direction;
3307
+ setParentDirection(dir);
3308
+ }
3309
+ });
3310
+ const handleChange = (opt) => {
3311
+ setSelectedOption(opt.value);
3312
+ if (onChange) {
3313
+ onChange(opt.value);
3314
+ } else {
3315
+ console.log("onChange was not provided");
3316
+ }
3317
+ };
3318
+ switch (design) {
3319
+ case "tabs":
3320
+ return /* @__PURE__ */ import_react11.default.createElement("div", { className: "hawa-gap-2 hawa-flex hawa-flex-col" }, props.label && /* @__PURE__ */ import_react11.default.createElement(Label2, { ...labelProps }, props.label), /* @__PURE__ */ import_react11.default.createElement(
3321
+ "ul",
3333
3322
  {
3334
- "aria-current": "page",
3335
- onClick: () => {
3336
- if (props.disabled)
3337
- return;
3338
- handleChange(opt);
3323
+ ref: parentRef,
3324
+ className: cn(
3325
+ props.options && ((_a = props.options) == null ? void 0 : _a.length) > 2 ? "hawa-flex-wrap xs:hawa-max-w-full xs:hawa-flex-nowrap" : "",
3326
+ "hawa-select-none hawa-whitespace-nowrap hawa-rounded hawa-border hawa-text-center hawa-font-medium",
3327
+ orientationStyle[orientation],
3328
+ widthStyle[width],
3329
+ tabsContainerClassName
3330
+ )
3331
+ },
3332
+ (_b = props.options) == null ? void 0 : _b.map((opt, o) => /* @__PURE__ */ import_react11.default.createElement(
3333
+ "li",
3334
+ {
3335
+ "aria-current": "page",
3336
+ onClick: () => {
3337
+ if (props.disabled)
3338
+ return;
3339
+ handleChange(opt);
3340
+ },
3341
+ className: cn(
3342
+ "hawa-w-full hawa-last hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-2 ",
3343
+ !props.disabled && "hawa-cursor-pointer",
3344
+ orientation === "horizontal" && parentDirection === "ltr" && "hawa-rounded-none first:hawa-rounded-l last:hawa-rounded-r",
3345
+ orientation === "horizontal" && parentDirection === "rtl" && "hawa-rounded-none first:hawa-rounded-r last:hawa-rounded-l",
3346
+ orientation === "vertical" && "hawa-rounded-none first:hawa-rounded-t last:hawa-rounded-b",
3347
+ tabSizeStyle[size],
3348
+ selectedOption === opt.value ? activeTabStyle : inactiveTabStyle
3349
+ ),
3350
+ key: o
3339
3351
  },
3352
+ opt.icon && opt.icon,
3353
+ opt.label
3354
+ ))
3355
+ ), !forceHideHelperText && /* @__PURE__ */ import_react11.default.createElement(
3356
+ "p",
3357
+ {
3340
3358
  className: cn(
3341
- "hawa-w-full hawa-last hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-2 ",
3342
- !props.disabled && "hawa-cursor-pointer",
3343
- orientation === "horizontal" && parentDirection === "ltr" && "hawa-rounded-none first:hawa-rounded-l last:hawa-rounded-r",
3344
- orientation === "horizontal" && parentDirection === "rtl" && "hawa-rounded-none first:hawa-rounded-r last:hawa-rounded-l",
3345
- orientation === "vertical" && "hawa-rounded-none first:hawa-rounded-t last:hawa-rounded-b",
3346
- tabSizeStyle[size],
3347
- selectedOption === opt.value ? activeTabStyle : inactiveTabStyle
3359
+ "hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
3360
+ props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
3361
+ )
3362
+ },
3363
+ props.helperText
3364
+ ));
3365
+ case "bordered":
3366
+ return /* @__PURE__ */ import_react11.default.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ import_react11.default.createElement("div", { key: i, className: "hawa-w-full hawa-rounded hawa-border" }, /* @__PURE__ */ import_react11.default.createElement(
3367
+ "div",
3368
+ {
3369
+ className: cn(
3370
+ "radio-item radio-item-bordered hawa-flex hawa-items-center hawa-transition-all",
3371
+ props.direction === "rtl" ? "margin-left right-19px" : "margin-right left-23px"
3348
3372
  ),
3349
- key: o
3373
+ key: i + 1
3350
3374
  },
3351
- opt.icon && opt.icon,
3352
- opt.label
3353
- ))
3354
- ), !forceHideHelperText && /* @__PURE__ */ import_react11.default.createElement(
3355
- "p",
3356
- {
3357
- className: cn(
3358
- "hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
3359
- props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
3360
- )
3361
- },
3362
- props.helperText
3363
- ));
3364
- case "bordered":
3365
- return /* @__PURE__ */ import_react11.default.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ import_react11.default.createElement("div", { key: i, className: "hawa-w-full hawa-rounded hawa-border" }, /* @__PURE__ */ import_react11.default.createElement(
3366
- "div",
3367
- {
3368
- className: cn(
3369
- "radio-item radio-item-bordered hawa-flex hawa-items-center hawa-transition-all",
3370
- props.direction === "rtl" ? "margin-left right-19px" : "margin-right left-23px"
3375
+ /* @__PURE__ */ import_react11.default.createElement(
3376
+ "input",
3377
+ {
3378
+ disabled: opt.disabled,
3379
+ id: opt.value.toString(),
3380
+ type: "radio",
3381
+ value: opt.value,
3382
+ name,
3383
+ onChange: () => handleChange(opt)
3384
+ }
3371
3385
  ),
3372
- key: i + 1
3373
- },
3374
- /* @__PURE__ */ import_react11.default.createElement(
3386
+ /* @__PURE__ */ import_react11.default.createElement(
3387
+ "label",
3388
+ {
3389
+ htmlFor: opt.value.toString(),
3390
+ className: cn(
3391
+ "hawa-ml-2 hawa-w-full hawa-select-none hawa-p-4 hawa-pl-3 hawa-text-sm hawa-font-medium hawa-text-black dark:hawa-text-white",
3392
+ opt.disabled ? "hawa-opacity-50" : "hawa-cursor-pointer hawa-text-gray-900"
3393
+ )
3394
+ },
3395
+ opt.label
3396
+ )
3397
+ ))));
3398
+ case "cards":
3399
+ return /* @__PURE__ */ import_react11.default.createElement("ul", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, (_c = props.options) == null ? void 0 : _c.map((opt, o) => /* @__PURE__ */ import_react11.default.createElement("li", { key: o, onClick: () => handleChange(opt) }, /* @__PURE__ */ import_react11.default.createElement(
3375
3400
  "input",
3376
3401
  {
3377
- disabled: opt.disabled,
3378
- id: opt.value.toString(),
3379
3402
  type: "radio",
3380
- value: opt.value,
3403
+ id: opt.value.toString(),
3381
3404
  name,
3382
- onChange: () => handleChange(opt)
3405
+ value: opt.value.toString(),
3406
+ className: "hawa-peer hawa-hidden",
3407
+ required: true,
3408
+ disabled: opt.disabled
3383
3409
  }
3384
- ),
3385
- /* @__PURE__ */ import_react11.default.createElement(
3410
+ ), /* @__PURE__ */ import_react11.default.createElement(
3386
3411
  "label",
3387
3412
  {
3388
3413
  htmlFor: opt.value.toString(),
3389
3414
  className: cn(
3390
- "hawa-ml-2 hawa-w-full hawa-select-none hawa-p-4 hawa-pl-3 hawa-text-sm hawa-font-medium hawa-text-black dark:hawa-text-white",
3391
- opt.disabled ? "hawa-opacity-50" : "hawa-cursor-pointer hawa-text-gray-900"
3415
+ "hawa-inline-flex hawa-h-full hawa-w-full hawa-transition-all hawa-items-center hawa-justify-between hawa-rounded-lg hawa-border hawa-border-gray-200 hawa-bg-background hawa-p-5 hawa-text-gray-500 peer-checked:hawa-border-primary peer-checked:hawa-text-primary dark:hawa-border-gray-700 dark:hawa-bg-foreground/5 dark:hawa-text-gray-400 dark:peer-checked:hawa-text-primary",
3416
+ opt.disabled ? "hawa-opacity-50" : "hawa-cursor-pointer hover:hawa-bg-foreground/10 hover:hawa-text-gray-600 dark:hover:hawa-bg-foreground/20 dark:hover:hawa-text-gray-300"
3392
3417
  )
3393
3418
  },
3394
- opt.label
3395
- )
3396
- ))));
3397
- case "cards":
3398
- return /* @__PURE__ */ import_react11.default.createElement("ul", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, (_c = props.options) == null ? void 0 : _c.map((opt, o) => /* @__PURE__ */ import_react11.default.createElement("li", { key: o, onClick: () => handleChange(opt) }, /* @__PURE__ */ import_react11.default.createElement(
3399
- "input",
3400
- {
3401
- type: "radio",
3402
- id: opt.value.toString(),
3403
- name,
3404
- value: opt.value.toString(),
3405
- className: "hawa-peer hawa-hidden",
3406
- required: true,
3407
- disabled: opt.disabled
3408
- }
3409
- ), /* @__PURE__ */ import_react11.default.createElement(
3410
- "label",
3411
- {
3412
- htmlFor: opt.value.toString(),
3413
- className: cn(
3414
- "hawa-inline-flex hawa-h-full hawa-w-full hawa-items-center hawa-justify-between hawa-rounded-lg hawa-border hawa-border-gray-200 hawa-bg-white hawa-p-5 hawa-text-gray-500 peer-checked:hawa-border-primary peer-checked:hawa-text-primary dark:hawa-border-gray-700 dark:hawa-bg-gray-800 dark:hawa-text-gray-400 dark:peer-checked:hawa-text-primary",
3415
- opt.disabled ? "hawa-opacity-50" : "hawa-cursor-pointer hover:hawa-bg-gray-100 hover:hawa-text-gray-600 dark:hover:hawa-bg-gray-700 dark:hover:hawa-text-gray-300"
3416
- )
3417
- },
3418
- /* @__PURE__ */ import_react11.default.createElement("div", { className: "hawa-block hawa-h-full hawa-w-full" }, /* @__PURE__ */ import_react11.default.createElement("div", { className: "hawa-w-full hawa-text-lg hawa-font-semibold" }, opt.label), /* @__PURE__ */ import_react11.default.createElement("div", { className: "hawa-w-full" }, opt.sublabel))
3419
- ))));
3420
- default:
3421
- return /* @__PURE__ */ import_react11.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ import_react11.default.createElement(Label2, { ...labelProps }, props.label), /* @__PURE__ */ import_react11.default.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-2") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ import_react11.default.createElement(
3422
- "div",
3423
- {
3424
- className: cn(
3425
- "radio-item radio-item-default hawa-flex hawa-items-center hawa-transition-all",
3426
- props.direction === "rtl" ? "margin-left right-3px" : "margin-right left-3px"
3427
- ),
3428
- key: i + 1
3429
- },
3430
- /* @__PURE__ */ import_react11.default.createElement(
3431
- "input",
3419
+ /* @__PURE__ */ import_react11.default.createElement("div", { className: "hawa-block hawa-h-full hawa-w-full" }, /* @__PURE__ */ import_react11.default.createElement("div", { className: "hawa-w-full hawa-text-lg hawa-font-semibold" }, opt.label), /* @__PURE__ */ import_react11.default.createElement("div", { className: "hawa-w-full" }, opt.sublabel))
3420
+ ))));
3421
+ default:
3422
+ return /* @__PURE__ */ import_react11.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ import_react11.default.createElement(Label2, { ...labelProps }, props.label), /* @__PURE__ */ import_react11.default.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-2") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ import_react11.default.createElement(
3423
+ "div",
3432
3424
  {
3433
- disabled: opt.disabled,
3434
- id: opt.value.toString(),
3435
- type: "radio",
3436
- value: opt.value,
3437
- name,
3438
- onChange: () => handleChange(opt)
3439
- }
3440
- ),
3441
- /* @__PURE__ */ import_react11.default.createElement(
3442
- "label",
3425
+ className: cn(
3426
+ "radio-item radio-item-default hawa-flex hawa-items-center hawa-transition-all",
3427
+ props.direction === "rtl" ? "margin-left right-3px" : "margin-right left-3px"
3428
+ ),
3429
+ key: i + 1
3430
+ },
3431
+ /* @__PURE__ */ import_react11.default.createElement(
3432
+ "input",
3433
+ {
3434
+ disabled: opt.disabled,
3435
+ id: opt.value.toString(),
3436
+ type: "radio",
3437
+ value: opt.value,
3438
+ name,
3439
+ onChange: () => handleChange(opt)
3440
+ }
3441
+ ),
3442
+ /* @__PURE__ */ import_react11.default.createElement(
3443
+ "label",
3444
+ {
3445
+ htmlFor: opt.value.toString(),
3446
+ className: cn(
3447
+ "hawa-text-sm hawa-font-medium dark:hawa-text-white",
3448
+ opt.disabled ? "hawa-text-gray-400" : "hawa-cursor-pointer hawa-text-gray-900"
3449
+ )
3450
+ },
3451
+ opt.label
3452
+ )
3453
+ ))), /* @__PURE__ */ import_react11.default.createElement(
3454
+ "p",
3443
3455
  {
3444
- htmlFor: opt.value.toString(),
3445
3456
  className: cn(
3446
- "hawa-text-sm hawa-font-medium dark:hawa-text-white",
3447
- opt.disabled ? "hawa-text-gray-400" : "hawa-cursor-pointer hawa-text-gray-900"
3457
+ "hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
3458
+ props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
3448
3459
  )
3449
3460
  },
3450
- opt.label
3451
- )
3452
- ))), /* @__PURE__ */ import_react11.default.createElement(
3453
- "p",
3454
- {
3455
- className: cn(
3456
- "hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
3457
- props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
3458
- )
3459
- },
3460
- props.helperText
3461
- ));
3461
+ props.helperText
3462
+ ));
3463
+ }
3462
3464
  }
3463
- };
3465
+ );
3464
3466
 
3465
3467
  // elements/combobox/Combobox.tsx
3466
3468
  var React27 = __toESM(require("react"));
@@ -8505,7 +8507,11 @@ var AppLayout = ({
8505
8507
  let openDrawerWidth = 200;
8506
8508
  let drawerSizeStyle = {
8507
8509
  opened: { sm: "100", md: openDrawerWidth, lg: "250" },
8508
- closed: { sm: closeDrawerWidth, md: closeDrawerWidth, lg: closeDrawerWidth }
8510
+ closed: {
8511
+ sm: closeDrawerWidth,
8512
+ md: closeDrawerWidth,
8513
+ lg: closeDrawerWidth
8514
+ }
8509
8515
  };
8510
8516
  const ref = (0, import_react40.useRef)(null);
8511
8517
  const isRTL = direction === "rtl";
@@ -8618,7 +8624,7 @@ var AppLayout = ({
8618
8624
  sideOffset: 5,
8619
8625
  width: profileMenuWidth,
8620
8626
  direction: isRTL ? "rtl" : "ltr",
8621
- items: props.profileMenuItems,
8627
+ items: props.profileMenuItems || [],
8622
8628
  onItemSelect: (e) => console.log("selecting item ", e),
8623
8629
  trigger: /* @__PURE__ */ import_react40.default.createElement("div", { className: "hawa-relative hawa-h-8 hawa-w-8 hawa-cursor-pointer hawa-overflow-clip hawa-rounded hawa-ring-1 hawa-ring-primary/30 dark:hawa-bg-gray-600" }, props.avatarImage ? /* @__PURE__ */ import_react40.default.createElement("img", { src: props.avatarImage, alt: "User Avatar" }) : /* @__PURE__ */ import_react40.default.createElement(
8624
8630
  "svg",
@@ -8918,7 +8924,7 @@ var AppTopbar = ({ ...props }) => {
8918
8924
  side: "bottom",
8919
8925
  sideOffset: 5,
8920
8926
  direction: isRTL ? "rtl" : "ltr",
8921
- items: props.profileMenuItems,
8927
+ items: props.profileMenuItems || [],
8922
8928
  onItemSelect: (e) => console.log("selecting item ", e),
8923
8929
  trigger: /* @__PURE__ */ import_react41.default.createElement("div", { className: "hawa-relative hawa-h-8 hawa-w-8 hawa-cursor-pointer hawa-overflow-clip hawa-rounded hawa-ring-1 hawa-ring-primary/30 dark:hawa-bg-gray-600" }, props.avatarImage ? /* @__PURE__ */ import_react41.default.createElement("img", { src: props.avatarImage, alt: "User Avatar" }) : /* @__PURE__ */ import_react41.default.createElement(
8924
8930
  "svg",
@@ -10186,7 +10192,7 @@ var RegisterForm = ({
10186
10192
  isMulti: false,
10187
10193
  isSearchable: false,
10188
10194
  isClearable: false,
10189
- options: props.userReferenceOptions,
10195
+ options: props.userReferenceOptions || [],
10190
10196
  onChange: (e) => {
10191
10197
  field.onChange(e.value);
10192
10198
  }
@@ -11395,7 +11401,7 @@ var ContactForm = ({
11395
11401
  Select,
11396
11402
  {
11397
11403
  label,
11398
- options: customField.options,
11404
+ options: customField.options || [],
11399
11405
  value: field.value,
11400
11406
  onChange: (option) => field.onChange(option.value)
11401
11407
  }