@sikka/hawa 0.27.18-next → 0.27.20-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 (93) hide show
  1. package/dist/appLayout/index.js +1 -1
  2. package/dist/appLayout/index.js.map +1 -1
  3. package/dist/appLayout/index.mjs +1 -1
  4. package/dist/appLayout/index.mjs.map +1 -1
  5. package/dist/blocks/auth/index.d.mts +5 -0
  6. package/dist/blocks/auth/index.d.ts +5 -0
  7. package/dist/blocks/auth/index.js +257 -248
  8. package/dist/blocks/auth/index.mjs +260 -251
  9. package/dist/blocks/feedback/index.js +1 -1
  10. package/dist/blocks/feedback/index.mjs +5 -5
  11. package/dist/blocks/index.d.mts +5 -0
  12. package/dist/blocks/index.d.ts +5 -0
  13. package/dist/blocks/index.js +257 -248
  14. package/dist/blocks/index.mjs +258 -249
  15. package/dist/blocks/misc/index.js +1 -1
  16. package/dist/blocks/misc/index.mjs +5 -5
  17. package/dist/blocks/pricing/index.js +1 -1
  18. package/dist/blocks/pricing/index.mjs +4 -4
  19. package/dist/{chunk-X43DYWMS.mjs → chunk-7CYXEZDV.mjs} +1 -1
  20. package/dist/{chunk-ELDUKPOJ.mjs → chunk-7QEBDFLT.mjs} +1 -1
  21. package/dist/{chunk-4V3JYKXA.mjs → chunk-DQHPOUHR.mjs} +1 -1
  22. package/dist/{chunk-OKTSMWI6.mjs → chunk-DUL6C2S2.mjs} +1 -1
  23. package/dist/{chunk-V5EPRL6U.mjs → chunk-EFWL3FFK.mjs} +1 -1
  24. package/dist/{chunk-2EUB7RZD.mjs → chunk-F56X3EW2.mjs} +1 -1
  25. package/dist/{chunk-OOTIDLPP.mjs → chunk-M6XGGAPQ.mjs} +1 -1
  26. package/dist/{chunk-M7YG4RQ3.mjs → chunk-MMOEFJSP.mjs} +1 -1
  27. package/dist/{chunk-TKEDUZKG.mjs → chunk-W5I4VB5Z.mjs} +1 -1
  28. package/dist/{chunk-WXHZXK5S.mjs → chunk-ZOWDRDAM.mjs} +1 -1
  29. package/dist/codeBlock/index.js +1 -1
  30. package/dist/codeBlock/index.js.map +1 -1
  31. package/dist/codeBlock/index.mjs +1 -1
  32. package/dist/codeBlock/index.mjs.map +1 -1
  33. package/dist/colorPicker/index.js +1 -1
  34. package/dist/colorPicker/index.js.map +1 -1
  35. package/dist/colorPicker/index.mjs +1 -1
  36. package/dist/colorPicker/index.mjs.map +1 -1
  37. package/dist/combobox/index.js +1 -1
  38. package/dist/combobox/index.js.map +1 -1
  39. package/dist/combobox/index.mjs +1 -1
  40. package/dist/combobox/index.mjs.map +1 -1
  41. package/dist/dataTable/index.js +1 -1
  42. package/dist/dataTable/index.js.map +1 -1
  43. package/dist/dataTable/index.mjs +1 -1
  44. package/dist/dataTable/index.mjs.map +1 -1
  45. package/dist/elements/index.js +1 -1
  46. package/dist/elements/index.mjs +3 -3
  47. package/dist/index.d.mts +5 -0
  48. package/dist/index.d.ts +5 -0
  49. package/dist/index.js +257 -248
  50. package/dist/index.mjs +257 -248
  51. package/dist/input/index.js +1 -1
  52. package/dist/input/index.js.map +1 -1
  53. package/dist/input/index.mjs +1 -1
  54. package/dist/input/index.mjs.map +1 -1
  55. package/dist/interfaceSettings/index.js +1 -1
  56. package/dist/interfaceSettings/index.js.map +1 -1
  57. package/dist/interfaceSettings/index.mjs +1 -1
  58. package/dist/interfaceSettings/index.mjs.map +1 -1
  59. package/dist/label/index.js +1 -1
  60. package/dist/label/index.js.map +1 -1
  61. package/dist/label/index.mjs +1 -1
  62. package/dist/label/index.mjs.map +1 -1
  63. package/dist/layout/index.js +1 -1
  64. package/dist/layout/index.mjs +2 -2
  65. package/dist/passwordInput/index.js +1 -1
  66. package/dist/passwordInput/index.js.map +1 -1
  67. package/dist/passwordInput/index.mjs +1 -1
  68. package/dist/passwordInput/index.mjs.map +1 -1
  69. package/dist/phoneInput/index.js +1 -1
  70. package/dist/phoneInput/index.js.map +1 -1
  71. package/dist/phoneInput/index.mjs +1 -1
  72. package/dist/phoneInput/index.mjs.map +1 -1
  73. package/dist/radio/index.js +1 -1
  74. package/dist/radio/index.js.map +1 -1
  75. package/dist/radio/index.mjs +1 -1
  76. package/dist/radio/index.mjs.map +1 -1
  77. package/dist/select/index.js +1 -1
  78. package/dist/select/index.js.map +1 -1
  79. package/dist/select/index.mjs +1 -1
  80. package/dist/select/index.mjs.map +1 -1
  81. package/dist/signature/index.js +1 -1
  82. package/dist/signature/index.js.map +1 -1
  83. package/dist/signature/index.mjs +1 -1
  84. package/dist/signature/index.mjs.map +1 -1
  85. package/dist/textarea/index.js +1 -1
  86. package/dist/textarea/index.js.map +1 -1
  87. package/dist/textarea/index.mjs +1 -1
  88. package/dist/textarea/index.mjs.map +1 -1
  89. package/dist/tooltip/index.js +1 -1
  90. package/dist/tooltip/index.js.map +1 -1
  91. package/dist/tooltip/index.mjs +1 -1
  92. package/dist/tooltip/index.mjs.map +1 -1
  93. package/package.json +1 -1
@@ -1,17 +1,17 @@
1
1
  "use client";
2
2
  import {
3
3
  Input
4
- } from "../../chunk-OOTIDLPP.mjs";
4
+ } from "../../chunk-M6XGGAPQ.mjs";
5
5
  import {
6
6
  StopPropagationWrapper
7
7
  } from "../../chunk-47APBDKK.mjs";
8
8
  import {
9
9
  Select
10
- } from "../../chunk-4V3JYKXA.mjs";
10
+ } from "../../chunk-DQHPOUHR.mjs";
11
11
  import {
12
12
  EyeIcon,
13
13
  HiddenEyeIcon
14
- } from "../../chunk-V5EPRL6U.mjs";
14
+ } from "../../chunk-EFWL3FFK.mjs";
15
15
  import {
16
16
  Button,
17
17
  Card,
@@ -23,7 +23,7 @@ import {
23
23
  Label,
24
24
  Loading,
25
25
  cn
26
- } from "../../chunk-ELDUKPOJ.mjs";
26
+ } from "../../chunk-7QEBDFLT.mjs";
27
27
 
28
28
  // blocks/auth/LoginForm.tsx
29
29
  import React5, { useState as useState3 } from "react";
@@ -2668,7 +2668,7 @@ var RegisterForm = ({
2668
2668
  showNewsletterOption = false,
2669
2669
  ...props
2670
2670
  }) => {
2671
- var _a, _b, _c, _d, _e, _f;
2671
+ var _a, _b, _c, _d, _e, _f, _g, _h;
2672
2672
  const [passwordVisible, setPasswordVisible] = useState4(false);
2673
2673
  const thirdPartyAuthTexts = {
2674
2674
  continueWithGoogle: texts == null ? void 0 : texts.continueWithGoogle,
@@ -2734,281 +2734,290 @@ var RegisterForm = ({
2734
2734
  const { handleSubmit, control, formState } = useForm2({
2735
2735
  resolver: zodResolver2(formSchema)
2736
2736
  });
2737
- return /* @__PURE__ */ React7.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-4" }, /* @__PURE__ */ React7.createElement(Card, { dir: props.direction }, /* @__PURE__ */ React7.createElement(CardContent, { headless: true }, /* @__PURE__ */ React7.createElement("div", null, props.showError && /* @__PURE__ */ React7.createElement(
2738
- Alert,
2739
- {
2740
- title: props.errorTitle,
2741
- text: props.errorText,
2742
- severity: "error"
2743
- }
2744
- ), /* @__PURE__ */ React7.createElement(FormProvider, { ...methods }, /* @__PURE__ */ React7.createElement(
2745
- "form",
2737
+ return /* @__PURE__ */ React7.createElement(
2738
+ "div",
2746
2739
  {
2747
- noValidate: true,
2748
- onSubmit: handleSubmit((e) => {
2749
- if (props.onRegister) {
2750
- return props.onRegister(e);
2751
- } else {
2752
- console.log(
2753
- "Form is submitted but onRegister prop is missing"
2754
- );
2755
- }
2756
- }),
2757
- className: "hawa-flex hawa-flex-col hawa-gap-4"
2740
+ className: cn(
2741
+ "hawa-flex hawa-flex-col hawa-gap-4",
2742
+ (_g = props.classNames) == null ? void 0 : _g.root
2743
+ )
2758
2744
  },
2759
- /* @__PURE__ */ React7.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-4" }, registerFields.map((fld, i) => {
2760
- if (fld === "fullname") {
2761
- return /* @__PURE__ */ React7.createElement(
2762
- Controller2,
2763
- {
2764
- key: i,
2765
- control,
2766
- name: "fullName",
2767
- render: ({ field }) => {
2768
- var _a2, _b2, _c2;
2769
- return /* @__PURE__ */ React7.createElement(
2770
- Input,
2771
- {
2772
- width: "full",
2773
- label: ((_a2 = texts == null ? void 0 : texts.fullName) == null ? void 0 : _a2.label) || "Full Name",
2774
- placeholder: (_b2 = texts == null ? void 0 : texts.fullName) == null ? void 0 : _b2.placeholder,
2775
- helperText: (_c2 = formState.errors.fullName) == null ? void 0 : _c2.message,
2776
- ...field
2777
- }
2778
- );
2779
- }
2780
- }
2781
- );
2782
- }
2783
- if (fld === "email") {
2784
- return /* @__PURE__ */ React7.createElement(
2785
- Controller2,
2786
- {
2787
- key: i,
2788
- control,
2789
- name: "email",
2790
- render: ({ field }) => {
2791
- var _a2, _b2, _c2;
2792
- return /* @__PURE__ */ React7.createElement(
2793
- Input,
2794
- {
2795
- dir: "ltr",
2796
- inputProps: {
2797
- className: props.direction === "rtl" ? "hawa-text-right" : "hawa-text-left"
2798
- },
2799
- width: "full",
2800
- autoComplete: "email",
2801
- label: ((_a2 = texts == null ? void 0 : texts.email) == null ? void 0 : _a2.label) || "Email",
2802
- helperText: (_b2 = formState.errors.email) == null ? void 0 : _b2.message,
2803
- placeholder: ((_c2 = texts == null ? void 0 : texts.email) == null ? void 0 : _c2.placeholder) || "Enter your email",
2804
- ...field
2805
- }
2806
- );
2807
- }
2808
- }
2809
- );
2810
- }
2811
- if (fld === "username") {
2812
- return /* @__PURE__ */ React7.createElement(
2813
- Controller2,
2814
- {
2815
- key: i,
2816
- control,
2817
- name: "username",
2818
- render: ({ field }) => {
2819
- var _a2, _b2, _c2, _d2;
2820
- return /* @__PURE__ */ React7.createElement(
2821
- Input,
2822
- {
2823
- width: "full",
2824
- autoComplete: "username",
2825
- label: ((_a2 = texts == null ? void 0 : texts.username) == null ? void 0 : _a2.label) || "Username",
2826
- labelProps: {
2827
- ...(_b2 = props.usernameOptions) == null ? void 0 : _b2.label
2828
- },
2829
- helperText: (_c2 = formState.errors.username) == null ? void 0 : _c2.message,
2830
- placeholder: (_d2 = texts == null ? void 0 : texts.username) == null ? void 0 : _d2.placeholder,
2831
- ...field
2832
- }
2833
- );
2834
- }
2835
- }
2836
- );
2837
- }
2838
- })),
2839
- /* @__PURE__ */ React7.createElement(
2840
- Controller2,
2745
+ /* @__PURE__ */ React7.createElement(Card, { dir: props.direction, className: cn((_h = props.classNames) == null ? void 0 : _h.card) }, /* @__PURE__ */ React7.createElement(CardContent, { headless: true }, /* @__PURE__ */ React7.createElement("div", null, props.showError && /* @__PURE__ */ React7.createElement(
2746
+ Alert,
2841
2747
  {
2842
- control,
2843
- name: "password",
2844
- render: ({ field }) => {
2845
- var _a2, _b2, _c2;
2846
- return /* @__PURE__ */ React7.createElement(
2847
- Input,
2848
- {
2849
- width: "full",
2850
- type: passwordVisible ? "text" : "password",
2851
- endIcon: /* @__PURE__ */ React7.createElement(
2852
- "div",
2853
- {
2854
- className: "hawa-cursor-pointer",
2855
- onClick: () => setPasswordVisible(!passwordVisible)
2856
- },
2857
- passwordVisible ? /* @__PURE__ */ React7.createElement(EyeIcon, { className: "hawa-text-gray-500" }) : /* @__PURE__ */ React7.createElement(HiddenEyeIcon, { className: "hawa-text-gray-500" }),
2858
- " "
2859
- ),
2860
- autoComplete: "new-password",
2861
- label: ((_a2 = texts == null ? void 0 : texts.password) == null ? void 0 : _a2.label) || "Password",
2862
- placeholder: (_b2 = texts == null ? void 0 : texts.password) == null ? void 0 : _b2.placeholder,
2863
- helperText: (_c2 = formState.errors.password) == null ? void 0 : _c2.message,
2864
- ...field
2865
- }
2866
- );
2867
- }
2748
+ title: props.errorTitle,
2749
+ text: props.errorText,
2750
+ severity: "error"
2868
2751
  }
2869
- ),
2870
- /* @__PURE__ */ React7.createElement(
2871
- Controller2,
2752
+ ), /* @__PURE__ */ React7.createElement(FormProvider, { ...methods }, /* @__PURE__ */ React7.createElement(
2753
+ "form",
2872
2754
  {
2873
- control,
2874
- name: "confirm_password",
2875
- render: ({ field }) => {
2876
- var _a2, _b2, _c2;
2755
+ noValidate: true,
2756
+ onSubmit: handleSubmit((e) => {
2757
+ if (props.onRegister) {
2758
+ return props.onRegister(e);
2759
+ } else {
2760
+ console.log(
2761
+ "Form is submitted but onRegister prop is missing"
2762
+ );
2763
+ }
2764
+ }),
2765
+ className: "hawa-flex hawa-flex-col hawa-gap-4"
2766
+ },
2767
+ /* @__PURE__ */ React7.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-4" }, registerFields.map((fld, i) => {
2768
+ if (fld === "fullname") {
2877
2769
  return /* @__PURE__ */ React7.createElement(
2878
- Input,
2770
+ Controller2,
2879
2771
  {
2880
- width: "full",
2881
- type: "password",
2882
- autoComplete: "new-password",
2883
- label: ((_a2 = texts == null ? void 0 : texts.confirm) == null ? void 0 : _a2.label) || "Confirm Password",
2884
- placeholder: ((_b2 = texts == null ? void 0 : texts.confirm) == null ? void 0 : _b2.placeholder) || "Confirm your Password",
2885
- helperText: (_c2 = formState.errors.confirm_password) == null ? void 0 : _c2.message,
2886
- ...field
2772
+ key: i,
2773
+ control,
2774
+ name: "fullName",
2775
+ render: ({ field }) => {
2776
+ var _a2, _b2, _c2;
2777
+ return /* @__PURE__ */ React7.createElement(
2778
+ Input,
2779
+ {
2780
+ width: "full",
2781
+ label: ((_a2 = texts == null ? void 0 : texts.fullName) == null ? void 0 : _a2.label) || "Full Name",
2782
+ placeholder: (_b2 = texts == null ? void 0 : texts.fullName) == null ? void 0 : _b2.placeholder,
2783
+ helperText: (_c2 = formState.errors.fullName) == null ? void 0 : _c2.message,
2784
+ ...field
2785
+ }
2786
+ );
2787
+ }
2887
2788
  }
2888
2789
  );
2889
2790
  }
2890
- }
2891
- ),
2892
- props.additionalInputs,
2893
- props.showRefCode && /* @__PURE__ */ React7.createElement(
2894
- Controller2,
2895
- {
2896
- control,
2897
- name: "refCode",
2898
- render: ({ field }) => {
2899
- var _a2;
2791
+ if (fld === "email") {
2900
2792
  return /* @__PURE__ */ React7.createElement(
2901
- Input,
2793
+ Controller2,
2902
2794
  {
2903
- width: "full",
2904
- label: texts == null ? void 0 : texts.refCode,
2905
- placeholder: (texts == null ? void 0 : texts.refCodePlaceholder) || "Enter the referral code",
2906
- helperText: (_a2 = formState.errors.refCode) == null ? void 0 : _a2.message,
2907
- ...field
2795
+ key: i,
2796
+ control,
2797
+ name: "email",
2798
+ render: ({ field }) => {
2799
+ var _a2, _b2, _c2;
2800
+ return /* @__PURE__ */ React7.createElement(
2801
+ Input,
2802
+ {
2803
+ dir: "ltr",
2804
+ inputProps: {
2805
+ className: props.direction === "rtl" ? "hawa-text-right" : "hawa-text-left"
2806
+ },
2807
+ width: "full",
2808
+ autoComplete: "email",
2809
+ label: ((_a2 = texts == null ? void 0 : texts.email) == null ? void 0 : _a2.label) || "Email",
2810
+ helperText: (_b2 = formState.errors.email) == null ? void 0 : _b2.message,
2811
+ placeholder: ((_c2 = texts == null ? void 0 : texts.email) == null ? void 0 : _c2.placeholder) || "Enter your email",
2812
+ ...field
2813
+ }
2814
+ );
2815
+ }
2908
2816
  }
2909
2817
  );
2910
2818
  }
2911
- }
2912
- ),
2913
- props.showUserSource && /* @__PURE__ */ React7.createElement(
2914
- Controller2,
2915
- {
2916
- control,
2917
- name: "reference",
2918
- render: ({ field }) => {
2919
- var _a2, _b2;
2819
+ if (fld === "username") {
2920
2820
  return /* @__PURE__ */ React7.createElement(
2921
- Select,
2821
+ Controller2,
2922
2822
  {
2923
- label: ((_a2 = texts == null ? void 0 : texts.userReference) == null ? void 0 : _a2.label) || "How did you learn about us?",
2924
- placeholder: (_b2 = texts == null ? void 0 : texts.userReference) == null ? void 0 : _b2.placeholder,
2925
- isCreatable: false,
2926
- isMulti: false,
2927
- isSearchable: false,
2928
- isClearable: false,
2929
- options: props.userReferenceOptions,
2930
- onChange: (e) => {
2931
- field.onChange(e.value);
2823
+ key: i,
2824
+ control,
2825
+ name: "username",
2826
+ render: ({ field }) => {
2827
+ var _a2, _b2, _c2, _d2;
2828
+ return /* @__PURE__ */ React7.createElement(
2829
+ Input,
2830
+ {
2831
+ width: "full",
2832
+ autoComplete: "username",
2833
+ label: ((_a2 = texts == null ? void 0 : texts.username) == null ? void 0 : _a2.label) || "Username",
2834
+ labelProps: {
2835
+ ...(_b2 = props.usernameOptions) == null ? void 0 : _b2.label
2836
+ },
2837
+ helperText: (_c2 = formState.errors.username) == null ? void 0 : _c2.message,
2838
+ placeholder: (_d2 = texts == null ? void 0 : texts.username) == null ? void 0 : _d2.placeholder,
2839
+ ...field
2840
+ }
2841
+ );
2932
2842
  }
2933
2843
  }
2934
2844
  );
2935
2845
  }
2936
- }
2937
- ),
2938
- showTermsOption || showNewsletterOption ? /* @__PURE__ */ React7.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-3 hawa-mb-2" }, showTermsOption && /* @__PURE__ */ React7.createElement(
2939
- Controller2,
2940
- {
2941
- control,
2942
- name: "terms_accepted",
2943
- render: ({ field }) => {
2944
- var _a2, _b2;
2945
- return /* @__PURE__ */ React7.createElement(
2846
+ })),
2847
+ /* @__PURE__ */ React7.createElement(
2848
+ Controller2,
2849
+ {
2850
+ control,
2851
+ name: "password",
2852
+ render: ({ field }) => {
2853
+ var _a2, _b2, _c2;
2854
+ return /* @__PURE__ */ React7.createElement(
2855
+ Input,
2856
+ {
2857
+ width: "full",
2858
+ type: passwordVisible ? "text" : "password",
2859
+ endIcon: /* @__PURE__ */ React7.createElement(
2860
+ "div",
2861
+ {
2862
+ className: "hawa-cursor-pointer",
2863
+ onClick: () => setPasswordVisible(!passwordVisible)
2864
+ },
2865
+ passwordVisible ? /* @__PURE__ */ React7.createElement(EyeIcon, { className: "hawa-text-gray-500" }) : /* @__PURE__ */ React7.createElement(HiddenEyeIcon, { className: "hawa-text-gray-500" }),
2866
+ " "
2867
+ ),
2868
+ autoComplete: "new-password",
2869
+ label: ((_a2 = texts == null ? void 0 : texts.password) == null ? void 0 : _a2.label) || "Password",
2870
+ placeholder: (_b2 = texts == null ? void 0 : texts.password) == null ? void 0 : _b2.placeholder,
2871
+ helperText: (_c2 = formState.errors.password) == null ? void 0 : _c2.message,
2872
+ ...field
2873
+ }
2874
+ );
2875
+ }
2876
+ }
2877
+ ),
2878
+ /* @__PURE__ */ React7.createElement(
2879
+ Controller2,
2880
+ {
2881
+ control,
2882
+ name: "confirm_password",
2883
+ render: ({ field }) => {
2884
+ var _a2, _b2, _c2;
2885
+ return /* @__PURE__ */ React7.createElement(
2886
+ Input,
2887
+ {
2888
+ width: "full",
2889
+ type: "password",
2890
+ autoComplete: "new-password",
2891
+ label: ((_a2 = texts == null ? void 0 : texts.confirm) == null ? void 0 : _a2.label) || "Confirm Password",
2892
+ placeholder: ((_b2 = texts == null ? void 0 : texts.confirm) == null ? void 0 : _b2.placeholder) || "Confirm your Password",
2893
+ helperText: (_c2 = formState.errors.confirm_password) == null ? void 0 : _c2.message,
2894
+ ...field
2895
+ }
2896
+ );
2897
+ }
2898
+ }
2899
+ ),
2900
+ props.additionalInputs,
2901
+ props.showRefCode && /* @__PURE__ */ React7.createElement(
2902
+ Controller2,
2903
+ {
2904
+ control,
2905
+ name: "refCode",
2906
+ render: ({ field }) => {
2907
+ var _a2;
2908
+ return /* @__PURE__ */ React7.createElement(
2909
+ Input,
2910
+ {
2911
+ width: "full",
2912
+ label: texts == null ? void 0 : texts.refCode,
2913
+ placeholder: (texts == null ? void 0 : texts.refCodePlaceholder) || "Enter the referral code",
2914
+ helperText: (_a2 = formState.errors.refCode) == null ? void 0 : _a2.message,
2915
+ ...field
2916
+ }
2917
+ );
2918
+ }
2919
+ }
2920
+ ),
2921
+ props.showUserSource && /* @__PURE__ */ React7.createElement(
2922
+ Controller2,
2923
+ {
2924
+ control,
2925
+ name: "reference",
2926
+ render: ({ field }) => {
2927
+ var _a2, _b2;
2928
+ return /* @__PURE__ */ React7.createElement(
2929
+ Select,
2930
+ {
2931
+ label: ((_a2 = texts == null ? void 0 : texts.userReference) == null ? void 0 : _a2.label) || "How did you learn about us?",
2932
+ placeholder: (_b2 = texts == null ? void 0 : texts.userReference) == null ? void 0 : _b2.placeholder,
2933
+ isCreatable: false,
2934
+ isMulti: false,
2935
+ isSearchable: false,
2936
+ isClearable: false,
2937
+ options: props.userReferenceOptions,
2938
+ onChange: (e) => {
2939
+ field.onChange(e.value);
2940
+ }
2941
+ }
2942
+ );
2943
+ }
2944
+ }
2945
+ ),
2946
+ showTermsOption || showNewsletterOption ? /* @__PURE__ */ React7.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-3 hawa-mb-2" }, showTermsOption && /* @__PURE__ */ React7.createElement(
2947
+ Controller2,
2948
+ {
2949
+ control,
2950
+ name: "terms_accepted",
2951
+ render: ({ field }) => {
2952
+ var _a2, _b2;
2953
+ return /* @__PURE__ */ React7.createElement(
2954
+ Checkbox,
2955
+ {
2956
+ id: "terms_accepted",
2957
+ helperText: (_b2 = (_a2 = formState.errors.terms_accepted) == null ? void 0 : _a2.message) == null ? void 0 : _b2.toString(),
2958
+ onCheckedChange: (e) => field.onChange(e),
2959
+ label: /* @__PURE__ */ React7.createElement("div", { className: "hawa-flex hawa-flex-row hawa-gap-0.5" }, /* @__PURE__ */ React7.createElement("span", null, (texts == null ? void 0 : texts.iAcceptText) || "I accept the "), " ", /* @__PURE__ */ React7.createElement(StopPropagationWrapper, null, /* @__PURE__ */ React7.createElement(
2960
+ "a",
2961
+ {
2962
+ onClick: props.onRouteToTOS,
2963
+ className: "clickable-link"
2964
+ },
2965
+ (texts == null ? void 0 : texts.termsText) || "Terms of Service"
2966
+ )))
2967
+ }
2968
+ );
2969
+ }
2970
+ }
2971
+ ), showNewsletterOption && /* @__PURE__ */ React7.createElement(
2972
+ Controller2,
2973
+ {
2974
+ control,
2975
+ name: "newsletter_accepted",
2976
+ render: ({ field }) => /* @__PURE__ */ React7.createElement(
2946
2977
  Checkbox,
2947
2978
  {
2948
- id: "terms_accepted",
2949
- helperText: (_b2 = (_a2 = formState.errors.terms_accepted) == null ? void 0 : _a2.message) == null ? void 0 : _b2.toString(),
2950
- onCheckedChange: (e) => field.onChange(e),
2951
- label: /* @__PURE__ */ React7.createElement("div", { className: "hawa-flex hawa-flex-row hawa-gap-0.5" }, /* @__PURE__ */ React7.createElement("span", null, (texts == null ? void 0 : texts.iAcceptText) || "I accept the "), " ", /* @__PURE__ */ React7.createElement(StopPropagationWrapper, null, /* @__PURE__ */ React7.createElement(
2952
- "a",
2953
- {
2954
- onClick: props.onRouteToTOS,
2955
- className: "clickable-link"
2956
- },
2957
- (texts == null ? void 0 : texts.termsText) || "Terms of Service"
2958
- )))
2979
+ id: "newsletter_accepted",
2980
+ label: (texts == null ? void 0 : texts.subscribeToNewsletter) || "Subscribe to our newsletter",
2981
+ onCheckedChange: field.onChange
2959
2982
  }
2960
- );
2983
+ )
2961
2984
  }
2962
- }
2963
- ), showNewsletterOption && /* @__PURE__ */ React7.createElement(
2964
- Controller2,
2985
+ )) : null,
2986
+ /* @__PURE__ */ React7.createElement(
2987
+ Button,
2988
+ {
2989
+ className: " hawa-w-full",
2990
+ type: "submit",
2991
+ isLoading: props.isLoading,
2992
+ disabled: props.isLoading
2993
+ },
2994
+ (texts == null ? void 0 : texts.registerText) || "Register"
2995
+ ),
2996
+ props.additionalButtons
2997
+ )), /* @__PURE__ */ React7.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-1 hawa-p-3 hawa-text-center hawa-text-sm hawa-font-normal dark:hawa-text-white" }, /* @__PURE__ */ React7.createElement("span", null, (texts == null ? void 0 : texts.existingUserText) || "Already have an account?"), /* @__PURE__ */ React7.createElement("span", { onClick: props.onRouteToLogin, className: "clickable-link" }, (texts == null ? void 0 : texts.loginText) || "Login")))), props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */ React7.createElement(
2998
+ CardFooter,
2965
2999
  {
2966
- control,
2967
- name: "newsletter_accepted",
2968
- render: ({ field }) => /* @__PURE__ */ React7.createElement(
2969
- Checkbox,
2970
- {
2971
- id: "newsletter_accepted",
2972
- label: (texts == null ? void 0 : texts.subscribeToNewsletter) || "Subscribe to our newsletter",
2973
- onCheckedChange: field.onChange
2974
- }
3000
+ className: cn(
3001
+ props.logosOnly ? "hawa-flex hawa-flex-row hawa-justify-center hawa-gap-2" : "hawa-grid hawa-grid-cols-1 hawa-gap-2"
2975
3002
  )
2976
- }
2977
- )) : null,
2978
- /* @__PURE__ */ React7.createElement(
2979
- Button,
2980
- {
2981
- className: " hawa-w-full",
2982
- type: "submit",
2983
- isLoading: props.isLoading,
2984
- disabled: props.isLoading
2985
3003
  },
2986
- (texts == null ? void 0 : texts.registerText) || "Register"
2987
- ),
2988
- props.additionalButtons
2989
- )), /* @__PURE__ */ React7.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-1 hawa-p-3 hawa-text-center hawa-text-sm hawa-font-normal dark:hawa-text-white" }, /* @__PURE__ */ React7.createElement("span", null, (texts == null ? void 0 : texts.existingUserText) || "Already have an account?"), /* @__PURE__ */ React7.createElement("span", { onClick: props.onRouteToLogin, className: "clickable-link" }, (texts == null ? void 0 : texts.loginText) || "Login")))), props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */ React7.createElement(
2990
- CardFooter,
2991
- {
2992
- className: cn(
2993
- props.logosOnly ? "hawa-flex hawa-flex-row hawa-justify-center hawa-gap-2" : "hawa-grid hawa-grid-cols-1 hawa-gap-2"
3004
+ /* @__PURE__ */ React7.createElement(
3005
+ AuthButtons,
3006
+ {
3007
+ texts: thirdPartyAuthTexts,
3008
+ viaGoogle: props.viaGoogle,
3009
+ viaGithub: props.viaGithub,
3010
+ viaTwitter: props.viaTwitter,
3011
+ isGoogleLoading: props.isGoogleLoading,
3012
+ isGithubLoading: props.isGithubLoading,
3013
+ isTwitterLoading: props.isTwitterLoading,
3014
+ handleGoogle: props.onGoogleRegister,
3015
+ handleGithub: props.onGithubRegister,
3016
+ handleTwitter: props.onTwitterRegister
3017
+ }
2994
3018
  )
2995
- },
2996
- /* @__PURE__ */ React7.createElement(
2997
- AuthButtons,
2998
- {
2999
- texts: thirdPartyAuthTexts,
3000
- viaGoogle: props.viaGoogle,
3001
- viaGithub: props.viaGithub,
3002
- viaTwitter: props.viaTwitter,
3003
- isGoogleLoading: props.isGoogleLoading,
3004
- isGithubLoading: props.isGithubLoading,
3005
- isTwitterLoading: props.isTwitterLoading,
3006
- handleGoogle: props.onGoogleRegister,
3007
- handleGithub: props.onGithubRegister,
3008
- handleTwitter: props.onTwitterRegister
3009
- }
3010
- )
3011
- ) : null));
3019
+ ) : null)
3020
+ );
3012
3021
  };
3013
3022
 
3014
3023
  // blocks/auth/AppLanding.tsx
@@ -495,7 +495,7 @@ var Tooltip = ({
495
495
  ...contentProps,
496
496
  style: {
497
497
  ...contentProps == null ? void 0 : contentProps.style,
498
- maxWidth: "var(--radix-tooltip-content-available-width) !important",
498
+ maxWidth: "var(--radix-tooltip-content-available-width)",
499
499
  maxHeight: "var(--radix-tooltip-content-available-height)"
500
500
  }
501
501
  },
@@ -1,26 +1,26 @@
1
1
  "use client";
2
2
  import {
3
3
  Textarea
4
- } from "../../chunk-TKEDUZKG.mjs";
4
+ } from "../../chunk-W5I4VB5Z.mjs";
5
5
  import {
6
6
  Select
7
- } from "../../chunk-4V3JYKXA.mjs";
7
+ } from "../../chunk-DQHPOUHR.mjs";
8
8
  import {
9
9
  Radio
10
- } from "../../chunk-OKTSMWI6.mjs";
10
+ } from "../../chunk-DUL6C2S2.mjs";
11
11
  import {
12
12
  BadEmoji,
13
13
  GoodEmoji,
14
14
  VeryBadEmoji,
15
15
  VeryGoodEmoji
16
- } from "../../chunk-V5EPRL6U.mjs";
16
+ } from "../../chunk-EFWL3FFK.mjs";
17
17
  import {
18
18
  Button,
19
19
  Card,
20
20
  CardContent,
21
21
  Label,
22
22
  cn
23
- } from "../../chunk-ELDUKPOJ.mjs";
23
+ } from "../../chunk-7QEBDFLT.mjs";
24
24
 
25
25
  // blocks/feedback/UserReferralSource.tsx
26
26
  import React, { useRef, useState } from "react";
@@ -116,6 +116,11 @@ type RegisterFormTypes = {
116
116
  usernameOptions?: {
117
117
  label?: LabelProps;
118
118
  };
119
+ classNames?: {
120
+ root?: string;
121
+ form?: string;
122
+ card?: string;
123
+ };
119
124
  };
120
125
  declare const RegisterForm: FC<RegisterFormTypes>;
121
126
 
@@ -116,6 +116,11 @@ type RegisterFormTypes = {
116
116
  usernameOptions?: {
117
117
  label?: LabelProps;
118
118
  };
119
+ classNames?: {
120
+ root?: string;
121
+ form?: string;
122
+ card?: string;
123
+ };
119
124
  };
120
125
  declare const RegisterForm: FC<RegisterFormTypes>;
121
126