@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
@@ -4194,7 +4194,7 @@ var RegisterForm = ({
4194
4194
  isMulti: false,
4195
4195
  isSearchable: false,
4196
4196
  isClearable: false,
4197
- options: props.userReferenceOptions,
4197
+ options: props.userReferenceOptions || [],
4198
4198
  onChange: (e) => {
4199
4199
  field.onChange(e.value);
4200
4200
  }
@@ -4700,207 +4700,209 @@ var z6 = __toESM(require("zod"));
4700
4700
 
4701
4701
  // elements/radio/Radio.tsx
4702
4702
  var import_react22 = __toESM(require("react"));
4703
- var Radio = ({
4704
- design = "default",
4705
- width = "default",
4706
- size = "default",
4707
- orientation = "horizontal",
4708
- name,
4709
- labelProps,
4710
- tabsContainerClassName,
4711
- forceHideHelperText = false,
4712
- onChange,
4713
- ...props
4714
- }) => {
4715
- var _a, _b, _c;
4716
- const [selectedOption, setSelectedOption] = (0, import_react22.useState)(
4717
- props.defaultValue || props.value
4718
- );
4719
- let activeTabStyle = "hawa-inline-block hawa-w-full hawa-text-primary-foreground hawa-bg-primary hawa-active dark:hawa-bg-primary";
4720
- let inactiveTabStyle = `hawa-inline-block hawa-w-full hawa-transition-all hawa-bg-primary-foreground dark:hover:hawa-text-white
4703
+ var Radio = (0, import_react22.forwardRef)(
4704
+ ({
4705
+ design = "default",
4706
+ width = "default",
4707
+ size = "default",
4708
+ orientation = "horizontal",
4709
+ name,
4710
+ labelProps,
4711
+ tabsContainerClassName,
4712
+ forceHideHelperText = false,
4713
+ onChange,
4714
+ ...props
4715
+ }, ref) => {
4716
+ var _a, _b, _c;
4717
+ const [selectedOption, setSelectedOption] = (0, import_react22.useState)(
4718
+ props.defaultValue || props.value
4719
+ );
4720
+ let activeTabStyle = "hawa-inline-block hawa-w-full hawa-text-primary-foreground hawa-bg-primary hawa-active dark:hawa-bg-primary";
4721
+ let inactiveTabStyle = `hawa-inline-block hawa-w-full hawa-transition-all hawa-bg-primary-foreground dark:hover:hawa-text-white
4721
4722
  ${props.disabled ? "" : "hover:hawa-bg-muted"}`;
4722
- let orientationStyle = {
4723
- horizontal: "hawa-flex hawa-flex-row",
4724
- vertical: "hawa-flex hawa-flex-col"
4725
- };
4726
- let tabSizeStyle = {
4727
- default: "hawa-py-2 hawa-px-4 hawa-text-sm",
4728
- lg: "hawa-py-2 hawa-px-4",
4729
- sm: "hawa-p-1.5 hawa-text-xs",
4730
- xs: "hawa-p-1 hawa-text-[10px]"
4731
- };
4732
- let widthStyle = {
4733
- none: "",
4734
- default: "hawa-max-w-fit",
4735
- full: "hawa-w-full"
4736
- };
4737
- const [parentDirection, setParentDirection] = import_react22.default.useState(
4738
- null
4739
- );
4740
- const parentRef = (0, import_react22.useRef)(null);
4741
- (0, import_react22.useEffect)(() => {
4742
- var _a2;
4743
- const parentNode = (_a2 = parentRef.current) == null ? void 0 : _a2.parentNode;
4744
- if (parentNode) {
4745
- const dir = window.getComputedStyle(parentNode).direction;
4746
- setParentDirection(dir);
4747
- }
4748
- });
4749
- const handleChange = (opt) => {
4750
- setSelectedOption(opt.value);
4751
- if (onChange) {
4752
- onChange(opt.value);
4753
- } else {
4754
- console.log("onChange was not provided");
4755
- }
4756
- };
4757
- switch (design) {
4758
- case "tabs":
4759
- return /* @__PURE__ */ import_react22.default.createElement("div", { className: "hawa-gap-2 hawa-flex hawa-flex-col" }, props.label && /* @__PURE__ */ import_react22.default.createElement(Label, { ...labelProps }, props.label), /* @__PURE__ */ import_react22.default.createElement(
4760
- "ul",
4761
- {
4762
- ref: parentRef,
4763
- className: cn(
4764
- props.options && ((_a = props.options) == null ? void 0 : _a.length) > 2 ? "hawa-flex-wrap xs:hawa-max-w-full xs:hawa-flex-nowrap" : "",
4765
- "hawa-select-none hawa-whitespace-nowrap hawa-rounded hawa-border hawa-text-center hawa-font-medium",
4766
- orientationStyle[orientation],
4767
- widthStyle[width],
4768
- tabsContainerClassName
4769
- )
4770
- },
4771
- (_b = props.options) == null ? void 0 : _b.map((opt, o) => /* @__PURE__ */ import_react22.default.createElement(
4772
- "li",
4723
+ let orientationStyle = {
4724
+ horizontal: "hawa-flex hawa-flex-row",
4725
+ vertical: "hawa-flex hawa-flex-col"
4726
+ };
4727
+ let tabSizeStyle = {
4728
+ default: "hawa-py-2 hawa-px-4 hawa-text-sm",
4729
+ lg: "hawa-py-2 hawa-px-4",
4730
+ sm: "hawa-p-1.5 hawa-text-xs",
4731
+ xs: "hawa-p-1 hawa-text-[10px]"
4732
+ };
4733
+ let widthStyle = {
4734
+ none: "",
4735
+ default: "hawa-max-w-fit",
4736
+ full: "hawa-w-full"
4737
+ };
4738
+ const [parentDirection, setParentDirection] = import_react22.default.useState(
4739
+ null
4740
+ );
4741
+ const parentRef = (0, import_react22.useRef)(null);
4742
+ (0, import_react22.useEffect)(() => {
4743
+ var _a2;
4744
+ const parentNode = (_a2 = parentRef.current) == null ? void 0 : _a2.parentNode;
4745
+ if (parentNode) {
4746
+ const dir = window.getComputedStyle(parentNode).direction;
4747
+ setParentDirection(dir);
4748
+ }
4749
+ });
4750
+ const handleChange = (opt) => {
4751
+ setSelectedOption(opt.value);
4752
+ if (onChange) {
4753
+ onChange(opt.value);
4754
+ } else {
4755
+ console.log("onChange was not provided");
4756
+ }
4757
+ };
4758
+ switch (design) {
4759
+ case "tabs":
4760
+ return /* @__PURE__ */ import_react22.default.createElement("div", { className: "hawa-gap-2 hawa-flex hawa-flex-col" }, props.label && /* @__PURE__ */ import_react22.default.createElement(Label, { ...labelProps }, props.label), /* @__PURE__ */ import_react22.default.createElement(
4761
+ "ul",
4773
4762
  {
4774
- "aria-current": "page",
4775
- onClick: () => {
4776
- if (props.disabled)
4777
- return;
4778
- handleChange(opt);
4763
+ ref: parentRef,
4764
+ className: cn(
4765
+ props.options && ((_a = props.options) == null ? void 0 : _a.length) > 2 ? "hawa-flex-wrap xs:hawa-max-w-full xs:hawa-flex-nowrap" : "",
4766
+ "hawa-select-none hawa-whitespace-nowrap hawa-rounded hawa-border hawa-text-center hawa-font-medium",
4767
+ orientationStyle[orientation],
4768
+ widthStyle[width],
4769
+ tabsContainerClassName
4770
+ )
4771
+ },
4772
+ (_b = props.options) == null ? void 0 : _b.map((opt, o) => /* @__PURE__ */ import_react22.default.createElement(
4773
+ "li",
4774
+ {
4775
+ "aria-current": "page",
4776
+ onClick: () => {
4777
+ if (props.disabled)
4778
+ return;
4779
+ handleChange(opt);
4780
+ },
4781
+ className: cn(
4782
+ "hawa-w-full hawa-last hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-2 ",
4783
+ !props.disabled && "hawa-cursor-pointer",
4784
+ orientation === "horizontal" && parentDirection === "ltr" && "hawa-rounded-none first:hawa-rounded-l last:hawa-rounded-r",
4785
+ orientation === "horizontal" && parentDirection === "rtl" && "hawa-rounded-none first:hawa-rounded-r last:hawa-rounded-l",
4786
+ orientation === "vertical" && "hawa-rounded-none first:hawa-rounded-t last:hawa-rounded-b",
4787
+ tabSizeStyle[size],
4788
+ selectedOption === opt.value ? activeTabStyle : inactiveTabStyle
4789
+ ),
4790
+ key: o
4779
4791
  },
4792
+ opt.icon && opt.icon,
4793
+ opt.label
4794
+ ))
4795
+ ), !forceHideHelperText && /* @__PURE__ */ import_react22.default.createElement(
4796
+ "p",
4797
+ {
4798
+ className: cn(
4799
+ "hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
4800
+ props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
4801
+ )
4802
+ },
4803
+ props.helperText
4804
+ ));
4805
+ case "bordered":
4806
+ return /* @__PURE__ */ import_react22.default.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ import_react22.default.createElement("div", { key: i, className: "hawa-w-full hawa-rounded hawa-border" }, /* @__PURE__ */ import_react22.default.createElement(
4807
+ "div",
4808
+ {
4780
4809
  className: cn(
4781
- "hawa-w-full hawa-last hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-2 ",
4782
- !props.disabled && "hawa-cursor-pointer",
4783
- orientation === "horizontal" && parentDirection === "ltr" && "hawa-rounded-none first:hawa-rounded-l last:hawa-rounded-r",
4784
- orientation === "horizontal" && parentDirection === "rtl" && "hawa-rounded-none first:hawa-rounded-r last:hawa-rounded-l",
4785
- orientation === "vertical" && "hawa-rounded-none first:hawa-rounded-t last:hawa-rounded-b",
4786
- tabSizeStyle[size],
4787
- selectedOption === opt.value ? activeTabStyle : inactiveTabStyle
4810
+ "radio-item radio-item-bordered hawa-flex hawa-items-center hawa-transition-all",
4811
+ props.direction === "rtl" ? "margin-left right-19px" : "margin-right left-23px"
4788
4812
  ),
4789
- key: o
4813
+ key: i + 1
4790
4814
  },
4791
- opt.icon && opt.icon,
4792
- opt.label
4793
- ))
4794
- ), !forceHideHelperText && /* @__PURE__ */ import_react22.default.createElement(
4795
- "p",
4796
- {
4797
- className: cn(
4798
- "hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
4799
- props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
4800
- )
4801
- },
4802
- props.helperText
4803
- ));
4804
- case "bordered":
4805
- return /* @__PURE__ */ import_react22.default.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ import_react22.default.createElement("div", { key: i, className: "hawa-w-full hawa-rounded hawa-border" }, /* @__PURE__ */ import_react22.default.createElement(
4806
- "div",
4807
- {
4808
- className: cn(
4809
- "radio-item radio-item-bordered hawa-flex hawa-items-center hawa-transition-all",
4810
- props.direction === "rtl" ? "margin-left right-19px" : "margin-right left-23px"
4815
+ /* @__PURE__ */ import_react22.default.createElement(
4816
+ "input",
4817
+ {
4818
+ disabled: opt.disabled,
4819
+ id: opt.value.toString(),
4820
+ type: "radio",
4821
+ value: opt.value,
4822
+ name,
4823
+ onChange: () => handleChange(opt)
4824
+ }
4811
4825
  ),
4812
- key: i + 1
4813
- },
4814
- /* @__PURE__ */ import_react22.default.createElement(
4826
+ /* @__PURE__ */ import_react22.default.createElement(
4827
+ "label",
4828
+ {
4829
+ htmlFor: opt.value.toString(),
4830
+ className: cn(
4831
+ "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",
4832
+ opt.disabled ? "hawa-opacity-50" : "hawa-cursor-pointer hawa-text-gray-900"
4833
+ )
4834
+ },
4835
+ opt.label
4836
+ )
4837
+ ))));
4838
+ case "cards":
4839
+ return /* @__PURE__ */ import_react22.default.createElement("ul", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, (_c = props.options) == null ? void 0 : _c.map((opt, o) => /* @__PURE__ */ import_react22.default.createElement("li", { key: o, onClick: () => handleChange(opt) }, /* @__PURE__ */ import_react22.default.createElement(
4815
4840
  "input",
4816
4841
  {
4817
- disabled: opt.disabled,
4818
- id: opt.value.toString(),
4819
4842
  type: "radio",
4820
- value: opt.value,
4843
+ id: opt.value.toString(),
4821
4844
  name,
4822
- onChange: () => handleChange(opt)
4845
+ value: opt.value.toString(),
4846
+ className: "hawa-peer hawa-hidden",
4847
+ required: true,
4848
+ disabled: opt.disabled
4823
4849
  }
4824
- ),
4825
- /* @__PURE__ */ import_react22.default.createElement(
4850
+ ), /* @__PURE__ */ import_react22.default.createElement(
4826
4851
  "label",
4827
4852
  {
4828
4853
  htmlFor: opt.value.toString(),
4829
4854
  className: cn(
4830
- "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",
4831
- opt.disabled ? "hawa-opacity-50" : "hawa-cursor-pointer hawa-text-gray-900"
4855
+ "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",
4856
+ 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"
4832
4857
  )
4833
4858
  },
4834
- opt.label
4835
- )
4836
- ))));
4837
- case "cards":
4838
- return /* @__PURE__ */ import_react22.default.createElement("ul", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, (_c = props.options) == null ? void 0 : _c.map((opt, o) => /* @__PURE__ */ import_react22.default.createElement("li", { key: o, onClick: () => handleChange(opt) }, /* @__PURE__ */ import_react22.default.createElement(
4839
- "input",
4840
- {
4841
- type: "radio",
4842
- id: opt.value.toString(),
4843
- name,
4844
- value: opt.value.toString(),
4845
- className: "hawa-peer hawa-hidden",
4846
- required: true,
4847
- disabled: opt.disabled
4848
- }
4849
- ), /* @__PURE__ */ import_react22.default.createElement(
4850
- "label",
4851
- {
4852
- htmlFor: opt.value.toString(),
4853
- className: cn(
4854
- "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",
4855
- 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"
4856
- )
4857
- },
4858
- /* @__PURE__ */ import_react22.default.createElement("div", { className: "hawa-block hawa-h-full hawa-w-full" }, /* @__PURE__ */ import_react22.default.createElement("div", { className: "hawa-w-full hawa-text-lg hawa-font-semibold" }, opt.label), /* @__PURE__ */ import_react22.default.createElement("div", { className: "hawa-w-full" }, opt.sublabel))
4859
- ))));
4860
- default:
4861
- return /* @__PURE__ */ import_react22.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ import_react22.default.createElement(Label, { ...labelProps }, props.label), /* @__PURE__ */ import_react22.default.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-2") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ import_react22.default.createElement(
4862
- "div",
4863
- {
4864
- className: cn(
4865
- "radio-item radio-item-default hawa-flex hawa-items-center hawa-transition-all",
4866
- props.direction === "rtl" ? "margin-left right-3px" : "margin-right left-3px"
4867
- ),
4868
- key: i + 1
4869
- },
4870
- /* @__PURE__ */ import_react22.default.createElement(
4871
- "input",
4859
+ /* @__PURE__ */ import_react22.default.createElement("div", { className: "hawa-block hawa-h-full hawa-w-full" }, /* @__PURE__ */ import_react22.default.createElement("div", { className: "hawa-w-full hawa-text-lg hawa-font-semibold" }, opt.label), /* @__PURE__ */ import_react22.default.createElement("div", { className: "hawa-w-full" }, opt.sublabel))
4860
+ ))));
4861
+ default:
4862
+ return /* @__PURE__ */ import_react22.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ import_react22.default.createElement(Label, { ...labelProps }, props.label), /* @__PURE__ */ import_react22.default.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-2") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ import_react22.default.createElement(
4863
+ "div",
4872
4864
  {
4873
- disabled: opt.disabled,
4874
- id: opt.value.toString(),
4875
- type: "radio",
4876
- value: opt.value,
4877
- name,
4878
- onChange: () => handleChange(opt)
4879
- }
4880
- ),
4881
- /* @__PURE__ */ import_react22.default.createElement(
4882
- "label",
4865
+ className: cn(
4866
+ "radio-item radio-item-default hawa-flex hawa-items-center hawa-transition-all",
4867
+ props.direction === "rtl" ? "margin-left right-3px" : "margin-right left-3px"
4868
+ ),
4869
+ key: i + 1
4870
+ },
4871
+ /* @__PURE__ */ import_react22.default.createElement(
4872
+ "input",
4873
+ {
4874
+ disabled: opt.disabled,
4875
+ id: opt.value.toString(),
4876
+ type: "radio",
4877
+ value: opt.value,
4878
+ name,
4879
+ onChange: () => handleChange(opt)
4880
+ }
4881
+ ),
4882
+ /* @__PURE__ */ import_react22.default.createElement(
4883
+ "label",
4884
+ {
4885
+ htmlFor: opt.value.toString(),
4886
+ className: cn(
4887
+ "hawa-text-sm hawa-font-medium dark:hawa-text-white",
4888
+ opt.disabled ? "hawa-text-gray-400" : "hawa-cursor-pointer hawa-text-gray-900"
4889
+ )
4890
+ },
4891
+ opt.label
4892
+ )
4893
+ ))), /* @__PURE__ */ import_react22.default.createElement(
4894
+ "p",
4883
4895
  {
4884
- htmlFor: opt.value.toString(),
4885
4896
  className: cn(
4886
- "hawa-text-sm hawa-font-medium dark:hawa-text-white",
4887
- opt.disabled ? "hawa-text-gray-400" : "hawa-cursor-pointer hawa-text-gray-900"
4897
+ "hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
4898
+ props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
4888
4899
  )
4889
4900
  },
4890
- opt.label
4891
- )
4892
- ))), /* @__PURE__ */ import_react22.default.createElement(
4893
- "p",
4894
- {
4895
- className: cn(
4896
- "hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
4897
- props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
4898
- )
4899
- },
4900
- props.helperText
4901
- ));
4901
+ props.helperText
4902
+ ));
4903
+ }
4902
4904
  }
4903
- };
4905
+ );
4904
4906
 
4905
4907
  // elements/textarea/Textarea.tsx
4906
4908
  var React27 = __toESM(require("react"));
@@ -6074,7 +6076,7 @@ var ContactForm = ({
6074
6076
  Select,
6075
6077
  {
6076
6078
  label,
6077
- options: customField.options,
6079
+ options: customField.options || [],
6078
6080
  value: field.value,
6079
6081
  onChange: (option) => field.onChange(option.value)
6080
6082
  }
@@ -26,7 +26,7 @@ import {
26
26
  UncheckMark,
27
27
  VeryBadEmoji,
28
28
  VeryGoodEmoji
29
- } from "../chunk-3GZMGTI5.mjs";
29
+ } from "../chunk-OUAQNQWP.mjs";
30
30
  import {
31
31
  Button,
32
32
  Card,
@@ -752,7 +752,7 @@ var RegisterForm = ({
752
752
  isMulti: false,
753
753
  isSearchable: false,
754
754
  isClearable: false,
755
- options: props.userReferenceOptions,
755
+ options: props.userReferenceOptions || [],
756
756
  onChange: (e) => {
757
757
  field.onChange(e.value);
758
758
  }
@@ -1961,7 +1961,7 @@ var ContactForm = ({
1961
1961
  Select,
1962
1962
  {
1963
1963
  label,
1964
- options: customField.options,
1964
+ options: customField.options || [],
1965
1965
  value: field.value,
1966
1966
  onChange: (option) => field.onChange(option.value)
1967
1967
  }
@@ -1523,7 +1523,7 @@ var ContactForm = ({
1523
1523
  Select,
1524
1524
  {
1525
1525
  label,
1526
- options: customField.options,
1526
+ options: customField.options || [],
1527
1527
  value: field.value,
1528
1528
  onChange: (option) => field.onChange(option.value)
1529
1529
  }
@@ -11,7 +11,7 @@ import {
11
11
  } from "../../chunk-AEFNDLFD.mjs";
12
12
  import {
13
13
  Select
14
- } from "../../chunk-M3IRSZWA.mjs";
14
+ } from "../../chunk-ER7YWU7Z.mjs";
15
15
  import {
16
16
  Button,
17
17
  Card,
@@ -474,7 +474,7 @@ var ContactForm = ({
474
474
  Select,
475
475
  {
476
476
  label,
477
- options: customField.options,
477
+ options: customField.options || [],
478
478
  value: field.value,
479
479
  onChange: (option) => field.onChange(option.value)
480
480
  }