@sikka/hawa 0.42.5-next → 0.42.7-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 (131) hide show
  1. package/dist/{Chip-Cato49ar.d.ts → Chip-Cw1twk4G.d.ts} +6 -6
  2. package/dist/{Chip-CGl24Kd9.d.mts → Chip-KG1_ZmCL.d.mts} +6 -6
  3. package/dist/{DropdownMenu-DgV8PvW3.d.ts → DropdownMenu-CDnFCzfc.d.ts} +5 -5
  4. package/dist/{DropdownMenu-dvd9brmT.d.mts → DropdownMenu-mK9EvfKp.d.mts} +5 -5
  5. package/dist/{Toast-fy9tBz19.d.ts → Toast-BaXp3G7y.d.ts} +1 -1
  6. package/dist/{Toast-BcFD9aeQ.d.mts → Toast-CKWr23kg.d.mts} +1 -1
  7. package/dist/accordion/index.d.mts +3 -3
  8. package/dist/accordion/index.d.ts +3 -3
  9. package/dist/alert/index.js.map +1 -1
  10. package/dist/alert/index.mjs.map +1 -1
  11. package/dist/appLayout/index.js.map +1 -1
  12. package/dist/appLayout/index.mjs.map +1 -1
  13. package/dist/appMenubar/index.d.mts +8 -11
  14. package/dist/appMenubar/index.d.ts +8 -11
  15. package/dist/appMenubar/index.js.map +1 -1
  16. package/dist/appMenubar/index.mjs.map +1 -1
  17. package/dist/backToTop/index.js.map +1 -1
  18. package/dist/backToTop/index.mjs.map +1 -1
  19. package/dist/blocks/auth/index.d.mts +4 -2
  20. package/dist/blocks/auth/index.d.ts +4 -2
  21. package/dist/blocks/auth/index.js +37 -29
  22. package/dist/blocks/auth/index.mjs +37 -29
  23. package/dist/blocks/index.d.mts +5 -3
  24. package/dist/blocks/index.d.ts +5 -3
  25. package/dist/blocks/index.js +37 -29
  26. package/dist/blocks/index.mjs +15 -12
  27. package/dist/button/index.js.map +1 -1
  28. package/dist/button/index.mjs.map +1 -1
  29. package/dist/calendar/index.js.map +1 -1
  30. package/dist/calendar/index.mjs.map +1 -1
  31. package/dist/card/index.d.mts +3 -3
  32. package/dist/card/index.d.ts +3 -3
  33. package/dist/checkbox/index.d.mts +2 -2
  34. package/dist/checkbox/index.d.ts +2 -2
  35. package/dist/chip/index.d.mts +6 -6
  36. package/dist/chip/index.d.ts +6 -6
  37. package/dist/{chunk-DBOKFWWD.mjs → chunk-3DT2KQXP.mjs} +12 -7
  38. package/dist/{chunk-G7JRS64F.mjs → chunk-RIZBMJNK.mjs} +15 -15
  39. package/dist/{chunk-OXZBK6KQ.mjs → chunk-UZD7PSQG.mjs} +1 -1
  40. package/dist/{chunk-MA7CACEB.mjs → chunk-WL7C2A5D.mjs} +1 -6
  41. package/dist/codeBlock/index.js.map +1 -1
  42. package/dist/codeBlock/index.mjs.map +1 -1
  43. package/dist/colorPicker/index.js.map +1 -1
  44. package/dist/colorPicker/index.mjs.map +1 -1
  45. package/dist/combobox/index.js.map +1 -1
  46. package/dist/combobox/index.mjs.map +1 -1
  47. package/dist/dataTable/index.js.map +1 -1
  48. package/dist/dataTable/index.mjs.map +1 -1
  49. package/dist/datePicker/index.js.map +1 -1
  50. package/dist/datePicker/index.mjs.map +1 -1
  51. package/dist/dialog/index.d.mts +17 -16
  52. package/dist/dialog/index.d.ts +17 -16
  53. package/dist/docsLayout/index.js +12 -7
  54. package/dist/docsLayout/index.js.map +1 -1
  55. package/dist/docsLayout/index.mjs +12 -7
  56. package/dist/docsLayout/index.mjs.map +1 -1
  57. package/dist/dropdownMenu/index.d.mts +5 -5
  58. package/dist/dropdownMenu/index.d.ts +5 -5
  59. package/dist/elements/index.d.mts +77 -76
  60. package/dist/elements/index.d.ts +77 -76
  61. package/dist/elements/index.js +25 -20
  62. package/dist/elements/index.mjs +4 -4
  63. package/dist/fileDropzone/index.js.map +1 -1
  64. package/dist/fileDropzone/index.mjs.map +1 -1
  65. package/dist/hooks/index.d.mts +1 -1
  66. package/dist/hooks/index.d.ts +1 -1
  67. package/dist/hooks/index.js +1 -6
  68. package/dist/hooks/index.mjs +1 -1
  69. package/dist/index.d.mts +96 -96
  70. package/dist/index.d.ts +96 -96
  71. package/dist/index.js +38 -35
  72. package/dist/index.mjs +38 -35
  73. package/dist/input/index.d.mts +16 -16
  74. package/dist/input/index.d.ts +16 -16
  75. package/dist/input/index.js.map +1 -1
  76. package/dist/input/index.mjs.map +1 -1
  77. package/dist/interfaceSettings/index.js.map +1 -1
  78. package/dist/interfaceSettings/index.mjs.map +1 -1
  79. package/dist/label/index.js.map +1 -1
  80. package/dist/label/index.mjs.map +1 -1
  81. package/dist/layout/index.d.mts +10 -13
  82. package/dist/layout/index.d.ts +10 -13
  83. package/dist/layout/index.js +12 -7
  84. package/dist/layout/index.mjs +2 -2
  85. package/dist/logos/index.js +12 -7
  86. package/dist/logos/index.js.map +1 -1
  87. package/dist/logos/index.mjs +12 -7
  88. package/dist/logos/index.mjs.map +1 -1
  89. package/dist/navigationMenu/index.d.mts +1 -1
  90. package/dist/navigationMenu/index.d.ts +1 -1
  91. package/dist/passwordInput/index.js.map +1 -1
  92. package/dist/passwordInput/index.mjs.map +1 -1
  93. package/dist/phoneInput/index.js.map +1 -1
  94. package/dist/phoneInput/index.mjs.map +1 -1
  95. package/dist/pinInput/index.d.mts +16 -16
  96. package/dist/pinInput/index.d.ts +16 -16
  97. package/dist/pinInput/index.js +13 -13
  98. package/dist/pinInput/index.js.map +1 -1
  99. package/dist/pinInput/index.mjs +13 -13
  100. package/dist/pinInput/index.mjs.map +1 -1
  101. package/dist/popover/index.d.mts +1 -1
  102. package/dist/popover/index.d.ts +1 -1
  103. package/dist/progress/index.d.mts +2 -2
  104. package/dist/progress/index.d.ts +2 -2
  105. package/dist/progress/index.js.map +1 -1
  106. package/dist/progress/index.mjs.map +1 -1
  107. package/dist/radio/index.js.map +1 -1
  108. package/dist/radio/index.mjs.map +1 -1
  109. package/dist/scrollArea/index.d.mts +1 -1
  110. package/dist/scrollArea/index.d.ts +1 -1
  111. package/dist/select/index.js.map +1 -1
  112. package/dist/select/index.mjs.map +1 -1
  113. package/dist/signature/index.js.map +1 -1
  114. package/dist/signature/index.mjs.map +1 -1
  115. package/dist/sortButton/index.js.map +1 -1
  116. package/dist/sortButton/index.mjs.map +1 -1
  117. package/dist/splitButton/index.js.map +1 -1
  118. package/dist/splitButton/index.mjs.map +1 -1
  119. package/dist/tabs/index.d.mts +9 -9
  120. package/dist/tabs/index.d.ts +9 -9
  121. package/dist/tabs/index.js.map +1 -1
  122. package/dist/tabs/index.mjs.map +1 -1
  123. package/dist/textarea/index.js.map +1 -1
  124. package/dist/textarea/index.mjs.map +1 -1
  125. package/dist/toast/index.d.mts +1 -1
  126. package/dist/toast/index.d.ts +1 -1
  127. package/dist/tooltip/index.d.mts +1 -1
  128. package/dist/tooltip/index.d.ts +1 -1
  129. package/dist/tooltip/index.js.map +1 -1
  130. package/dist/tooltip/index.mjs.map +1 -1
  131. package/package.json +28 -28
@@ -199,16 +199,21 @@ var Logos = {
199
199
  sikka: (props) => /* @__PURE__ */ React.createElement(
200
200
  "svg",
201
201
  {
202
+ "aria-label": "Sikka Logo",
202
203
  xmlns: "http://www.w3.org/2000/svg",
203
- xmlnsXlink: "http://www.w3.org/1999/xlink",
204
- xmlSpace: "preserve",
205
- viewBox: "0 0 916.5 765",
206
- fill: "currentColor",
204
+ width: "512",
205
+ height: "512",
206
+ viewBox: "0 0 512 512",
207
207
  ...props
208
208
  },
209
- /* @__PURE__ */ React.createElement("defs", null, /* @__PURE__ */ React.createElement("path", { id: "a", d: "M0 0h916.5v765H0z" })),
210
- /* @__PURE__ */ React.createElement("clipPath", { id: "b" }, /* @__PURE__ */ React.createElement("use", { xlinkHref: "#a", overflow: "visible" })),
211
- /* @__PURE__ */ React.createElement("g", { clipPath: "url(#b)" }, /* @__PURE__ */ React.createElement("defs", null, /* @__PURE__ */ React.createElement("path", { id: "c", d: "M0 0h916.5v765H0z" })), /* @__PURE__ */ React.createElement("clipPath", { id: "d" }, /* @__PURE__ */ React.createElement("use", { xlinkHref: "#c", overflow: "visible" })), /* @__PURE__ */ React.createElement("g", { clipPath: "url(#d)" }, /* @__PURE__ */ React.createElement("path", { d: "M458.3 0h-31.9c-14.6 0-26.5 11.9-26.5 26.3v313.3L136.6 17.1C126 3.9 120.7 0 106.1 0H9.7C.5 0 0 7.9 0 17.1 0 21 1.3 26.3 4 29l288.7 353.6L4 736.1c-2.7 2.7-4 7.9-4 11.8 0 9.2.4 17.1 9.7 17.1h96.4c14.6 0 19.9-3.9 30.5-17.1l263.3-322.5v313.3c0 14.4 11.9 26.3 26.5 26.3h31.9M458.3 765h31.9c14.6 0 26.5-11.8 26.5-26.3V425.5L780 748c10.7 13.2 15.9 17.1 30.5 17.1h96.4c9.2 0 9.7-7.9 9.7-17.1 0-3.9-1.3-9.2-4-11.8L623.8 382.5 912.5 28.9c2.7-2.7 4-7.9 4-11.9 0-9.2-.5-17.1-9.7-17.1h-96.4c-14.6 0-19.9 3.9-30.5 17.1L516.7 339.5V26.3c0-14.4-11.9-26.3-26.5-26.3h-31.9" })))
209
+ /* @__PURE__ */ React.createElement(
210
+ "path",
211
+ {
212
+ d: "M242.26,91.23c-6.29,0-11.42,5.1-11.42,11.32v134.95L117.43,98.59c-4.58-5.66-6.86-7.36-13.15-7.36h-41.51c-3.98,0-4.18,3.41-4.18,7.36,0,1.7.58,3.96,1.73,5.1l124.37,152.31-124.37,152.31c-1.15,1.15-1.73,3.41-1.73,5.1,0,3.96.19,7.36,4.18,7.36h41.51c6.29,0,8.57-1.7,13.15-7.36l113.41-138.91v134.95c0,6.21,5.13,11.32,11.42,11.32h27.48c6.29,0,11.42-5.1,11.42-11.32v-134.95l113.41,138.91c4.58,5.66,6.86,7.36,13.15,7.36h41.51c3.98,0,4.18-3.41,4.18-7.36,0-1.7-.58-3.96-1.73-5.1l-124.37-152.31,124.37-152.31c1.15-1.15,1.73-3.41,1.73-5.1,0-3.96-.19-7.36-4.18-7.36h-41.51c-6.29,0-8.57,1.7-13.15,7.36l-113.41,138.91V102.54c0-6.21-5.13-11.32-11.42-11.32h-27.48Z",
213
+ fill: "currentColor",
214
+ "stroke-width": "0"
215
+ }
216
+ )
212
217
  ),
213
218
  mail: (props) => /* @__PURE__ */ React.createElement(
214
219
  "svg",
@@ -2550,7 +2555,7 @@ var PhoneInput = ({
2550
2555
  // blocks/auth/LoginForm.tsx
2551
2556
  var LoginForm = ({
2552
2557
  loginType = "email",
2553
- passwordLength = 8,
2558
+ minPasswordLength = 8,
2554
2559
  texts,
2555
2560
  ...props
2556
2561
  }) => {
@@ -2571,7 +2576,7 @@ var LoginForm = ({
2571
2576
  email: z.string({ required_error: ((_a = texts == null ? void 0 : texts.email) == null ? void 0 : _a.required) || "Email Required" }).min(1, { message: ((_b = texts == null ? void 0 : texts.email) == null ? void 0 : _b.required) || "Email Required" }).email({ message: ((_c = texts == null ? void 0 : texts.email) == null ? void 0 : _c.invalid) || "Email Invalid" }),
2572
2577
  password: z.string({
2573
2578
  required_error: ((_d = texts == null ? void 0 : texts.password) == null ? void 0 : _d.required) || "Password Required"
2574
- }).min(1, { message: ((_e = texts == null ? void 0 : texts.password) == null ? void 0 : _e.required) || "Password Required" }).min(passwordLength, {
2579
+ }).min(1, { message: ((_e = texts == null ? void 0 : texts.password) == null ? void 0 : _e.required) || "Password Required" }).min(minPasswordLength, {
2575
2580
  message: ((_f = texts == null ? void 0 : texts.password) == null ? void 0 : _f.tooShort) || "Password too short"
2576
2581
  })
2577
2582
  });
@@ -2588,7 +2593,7 @@ var LoginForm = ({
2588
2593
  ),
2589
2594
  password: z.string({
2590
2595
  required_error: ((_j = texts == null ? void 0 : texts.password) == null ? void 0 : _j.required) || "Password Required"
2591
- }).min(1, { message: ((_k = texts == null ? void 0 : texts.password) == null ? void 0 : _k.required) || "Password Required" }).min(passwordLength, {
2596
+ }).min(1, { message: ((_k = texts == null ? void 0 : texts.password) == null ? void 0 : _k.required) || "Password Required" }).min(minPasswordLength, {
2592
2597
  message: ((_l = texts == null ? void 0 : texts.password) == null ? void 0 : _l.tooShort) || "Password too short"
2593
2598
  })
2594
2599
  });
@@ -3019,11 +3024,12 @@ CheckboxElement.displayName = CheckboxPrimitive.Root.displayName;
3019
3024
  var RegisterForm = ({
3020
3025
  texts,
3021
3026
  registerFields = ["email"],
3027
+ minPasswordLength = 8,
3022
3028
  showTermsOption = false,
3023
3029
  showNewsletterOption = false,
3024
3030
  ...props
3025
3031
  }) => {
3026
- var _a, _b, _c, _d, _e, _f, _g, _h;
3032
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i;
3027
3033
  const [passwordVisible, setPasswordVisible] = useState4(false);
3028
3034
  const thirdPartyAuthTexts = {
3029
3035
  continueWithGoogle: texts == null ? void 0 : texts.continueWithGoogle,
@@ -3068,15 +3074,17 @@ var RegisterForm = ({
3068
3074
  ...fieldSchemas,
3069
3075
  password: z2.string({
3070
3076
  required_error: ((_a = texts == null ? void 0 : texts.password) == null ? void 0 : _a.required) || "Password is required"
3071
- }).min(5, {
3077
+ }).min(minPasswordLength, {
3072
3078
  message: ((_b = texts == null ? void 0 : texts.password) == null ? void 0 : _b.tooShort) || "Password is too short"
3073
3079
  }).refine((value) => value !== "", {
3074
3080
  message: ((_c = texts == null ? void 0 : texts.password) == null ? void 0 : _c.required) || "Password is required"
3075
3081
  }),
3076
3082
  confirm_password: z2.string({
3077
3083
  required_error: ((_d = texts == null ? void 0 : texts.confirm) == null ? void 0 : _d.required) || "Confirm password required"
3084
+ }).min(minPasswordLength, {
3085
+ message: ((_e = texts == null ? void 0 : texts.password) == null ? void 0 : _e.tooShort) || "Password is too short"
3078
3086
  }).refine((value) => value !== "", {
3079
- message: ((_e = texts == null ? void 0 : texts.password) == null ? void 0 : _e.required) || "Confirm password is required"
3087
+ message: ((_f = texts == null ? void 0 : texts.password) == null ? void 0 : _f.required) || "Confirm password is required"
3080
3088
  }),
3081
3089
  refCode: z2.string().optional(),
3082
3090
  reference: z2.string().optional(),
@@ -3085,7 +3093,7 @@ var RegisterForm = ({
3085
3093
  }),
3086
3094
  newsletter_accepted: z2.boolean().optional()
3087
3095
  }).refine((data) => data.password === data.confirm_password, {
3088
- message: ((_f = texts == null ? void 0 : texts.confirm) == null ? void 0 : _f.dontMatch) || "Passwords don't match",
3096
+ message: ((_g = texts == null ? void 0 : texts.confirm) == null ? void 0 : _g.dontMatch) || "Passwords don't match",
3089
3097
  path: ["confirm_password"]
3090
3098
  });
3091
3099
  const { handleSubmit, control, formState } = useForm2({
@@ -3096,7 +3104,7 @@ var RegisterForm = ({
3096
3104
  {
3097
3105
  className: cn(
3098
3106
  "hawa-flex hawa-flex-col hawa-gap-4",
3099
- (_g = props.classNames) == null ? void 0 : _g.root
3107
+ (_h = props.classNames) == null ? void 0 : _h.root
3100
3108
  )
3101
3109
  },
3102
3110
  /* @__PURE__ */ React7.createElement(
@@ -3104,7 +3112,7 @@ var RegisterForm = ({
3104
3112
  {
3105
3113
  dir: props.direction,
3106
3114
  className: cn(
3107
- (_h = props.classNames) == null ? void 0 : _h.card,
3115
+ (_i = props.classNames) == null ? void 0 : _i.card,
3108
3116
  props.cardless && "hawa-border-none hawa-bg-transparent !hawa-shadow-none !hawa-drop-shadow-none"
3109
3117
  )
3110
3118
  },
@@ -3654,19 +3662,19 @@ import * as z5 from "zod";
3654
3662
  import * as React12 from "react";
3655
3663
  import { OTPInput, OTPInputContext } from "input-otp";
3656
3664
 
3657
- // ../../node_modules/.pnpm/lucide-react@0.395.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
3665
+ // ../../node_modules/.pnpm/lucide-react@0.403.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
3658
3666
  import { forwardRef as forwardRef3, createElement as createElement3 } from "react";
3659
3667
 
3660
- // ../../node_modules/.pnpm/lucide-react@0.395.0_react@18.3.1/node_modules/lucide-react/dist/esm/shared/src/utils.js
3668
+ // ../../node_modules/.pnpm/lucide-react@0.403.0_react@18.3.1/node_modules/lucide-react/dist/esm/shared/src/utils.js
3661
3669
  var toKebabCase = (string6) => string6.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
3662
3670
  var mergeClasses = (...classes) => classes.filter((className, index, array) => {
3663
3671
  return Boolean(className) && array.indexOf(className) === index;
3664
3672
  }).join(" ");
3665
3673
 
3666
- // ../../node_modules/.pnpm/lucide-react@0.395.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js
3674
+ // ../../node_modules/.pnpm/lucide-react@0.403.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js
3667
3675
  import { forwardRef as forwardRef2, createElement as createElement2 } from "react";
3668
3676
 
3669
- // ../../node_modules/.pnpm/lucide-react@0.395.0_react@18.3.1/node_modules/lucide-react/dist/esm/defaultAttributes.js
3677
+ // ../../node_modules/.pnpm/lucide-react@0.403.0_react@18.3.1/node_modules/lucide-react/dist/esm/defaultAttributes.js
3670
3678
  var defaultAttributes = {
3671
3679
  xmlns: "http://www.w3.org/2000/svg",
3672
3680
  width: 24,
@@ -3679,7 +3687,7 @@ var defaultAttributes = {
3679
3687
  strokeLinejoin: "round"
3680
3688
  };
3681
3689
 
3682
- // ../../node_modules/.pnpm/lucide-react@0.395.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js
3690
+ // ../../node_modules/.pnpm/lucide-react@0.403.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js
3683
3691
  var Icon = forwardRef2(
3684
3692
  ({
3685
3693
  color = "currentColor",
@@ -3711,7 +3719,7 @@ var Icon = forwardRef2(
3711
3719
  }
3712
3720
  );
3713
3721
 
3714
- // ../../node_modules/.pnpm/lucide-react@0.395.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
3722
+ // ../../node_modules/.pnpm/lucide-react@0.403.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
3715
3723
  var createLucideIcon = (iconName, iconNode) => {
3716
3724
  const Component = forwardRef3(
3717
3725
  ({ className, ...props }, ref) => createElement3(Icon, {
@@ -3725,7 +3733,7 @@ var createLucideIcon = (iconName, iconNode) => {
3725
3733
  return Component;
3726
3734
  };
3727
3735
 
3728
- // ../../node_modules/.pnpm/lucide-react@0.395.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/dot.js
3736
+ // ../../node_modules/.pnpm/lucide-react@0.403.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/dot.js
3729
3737
  var Dot = createLucideIcon("Dot", [
3730
3738
  ["circle", { cx: "12.1", cy: "12.1", r: "1", key: "18d7e5" }]
3731
3739
  ]);
@@ -3902,7 +3910,7 @@ export {
3902
3910
 
3903
3911
  lucide-react/dist/esm/shared/src/utils.js:
3904
3912
  (**
3905
- * @license lucide-react v0.395.0 - ISC
3913
+ * @license lucide-react v0.403.0 - ISC
3906
3914
  *
3907
3915
  * This source code is licensed under the ISC license.
3908
3916
  * See the LICENSE file in the root directory of this source tree.
@@ -3910,7 +3918,7 @@ lucide-react/dist/esm/shared/src/utils.js:
3910
3918
 
3911
3919
  lucide-react/dist/esm/defaultAttributes.js:
3912
3920
  (**
3913
- * @license lucide-react v0.395.0 - ISC
3921
+ * @license lucide-react v0.403.0 - ISC
3914
3922
  *
3915
3923
  * This source code is licensed under the ISC license.
3916
3924
  * See the LICENSE file in the root directory of this source tree.
@@ -3918,7 +3926,7 @@ lucide-react/dist/esm/defaultAttributes.js:
3918
3926
 
3919
3927
  lucide-react/dist/esm/Icon.js:
3920
3928
  (**
3921
- * @license lucide-react v0.395.0 - ISC
3929
+ * @license lucide-react v0.403.0 - ISC
3922
3930
  *
3923
3931
  * This source code is licensed under the ISC license.
3924
3932
  * See the LICENSE file in the root directory of this source tree.
@@ -3926,7 +3934,7 @@ lucide-react/dist/esm/Icon.js:
3926
3934
 
3927
3935
  lucide-react/dist/esm/createLucideIcon.js:
3928
3936
  (**
3929
- * @license lucide-react v0.395.0 - ISC
3937
+ * @license lucide-react v0.403.0 - ISC
3930
3938
  *
3931
3939
  * This source code is licensed under the ISC license.
3932
3940
  * See the LICENSE file in the root directory of this source tree.
@@ -3934,7 +3942,7 @@ lucide-react/dist/esm/createLucideIcon.js:
3934
3942
 
3935
3943
  lucide-react/dist/esm/icons/dot.js:
3936
3944
  (**
3937
- * @license lucide-react v0.395.0 - ISC
3945
+ * @license lucide-react v0.403.0 - ISC
3938
3946
  *
3939
3947
  * This source code is licensed under the ISC license.
3940
3948
  * See the LICENSE file in the root directory of this source tree.
@@ -3942,7 +3950,7 @@ lucide-react/dist/esm/icons/dot.js:
3942
3950
 
3943
3951
  lucide-react/dist/esm/lucide-react.js:
3944
3952
  (**
3945
- * @license lucide-react v0.395.0 - ISC
3953
+ * @license lucide-react v0.403.0 - ISC
3946
3954
  *
3947
3955
  * This source code is licensed under the ISC license.
3948
3956
  * See the LICENSE file in the root directory of this source tree.
@@ -2,7 +2,7 @@ import React__default, { FC, InputHTMLAttributes } from 'react';
2
2
  import { ThirdPartyAuthTextsTypes, LoginFormTextsTypes, RegisterFormTextsTypes, NewPasswordTextsTypes, ResetPasswordTextsTypes, BaseInputType, TextInputType, PricingCardProps, PlanFeature, PricingPlanTexts } from '../types/index.mjs';
3
3
  import { P as PhoneInputProps, S as SelectOptionProps, L as LabelProps, R as RadioOptionsTypes } from '../Radio-Dyvlywnk.mjs';
4
4
  import { D as DirectionType, a as RadioOptionType, O as OrientationType } from '../commonTypes-C-g8nFFC.mjs';
5
- import { M as MenuItemType } from '../DropdownMenu-dvd9brmT.mjs';
5
+ import { M as MenuItemType } from '../DropdownMenu-mK9EvfKp.mjs';
6
6
  import '@radix-ui/react-popover';
7
7
  import '@radix-ui/react-dropdown-menu';
8
8
 
@@ -85,8 +85,8 @@ type LoginFormTypes = {
85
85
  onTwitterLogin?: () => void;
86
86
  /** Additional buttons to add under the login button */
87
87
  additionalButtons?: any;
88
- /** The allowed length of the password input field */
89
- passwordLength?: number;
88
+ /** The minimum length of the password input field */
89
+ minPasswordLength?: number;
90
90
  /** If true, the form is displayed without a card container styling.*/
91
91
  cardless?: boolean;
92
92
  /** Props to pass to the PhoneInput component */
@@ -160,6 +160,8 @@ type RegisterFormTypes = {
160
160
  form?: string;
161
161
  card?: string;
162
162
  };
163
+ /** The minimum length of the password input field */
164
+ minPasswordLength?: number;
163
165
  /** If true, the form is displayed without a card container styling.*/
164
166
  cardless?: boolean;
165
167
  };
@@ -2,7 +2,7 @@ import React__default, { FC, InputHTMLAttributes } from 'react';
2
2
  import { ThirdPartyAuthTextsTypes, LoginFormTextsTypes, RegisterFormTextsTypes, NewPasswordTextsTypes, ResetPasswordTextsTypes, BaseInputType, TextInputType, PricingCardProps, PlanFeature, PricingPlanTexts } from '../types/index.js';
3
3
  import { P as PhoneInputProps, S as SelectOptionProps, L as LabelProps, R as RadioOptionsTypes } from '../Radio-DlPwVCG4.js';
4
4
  import { D as DirectionType, a as RadioOptionType, O as OrientationType } from '../commonTypes-C-g8nFFC.js';
5
- import { M as MenuItemType } from '../DropdownMenu-DgV8PvW3.js';
5
+ import { M as MenuItemType } from '../DropdownMenu-CDnFCzfc.js';
6
6
  import '@radix-ui/react-popover';
7
7
  import '@radix-ui/react-dropdown-menu';
8
8
 
@@ -85,8 +85,8 @@ type LoginFormTypes = {
85
85
  onTwitterLogin?: () => void;
86
86
  /** Additional buttons to add under the login button */
87
87
  additionalButtons?: any;
88
- /** The allowed length of the password input field */
89
- passwordLength?: number;
88
+ /** The minimum length of the password input field */
89
+ minPasswordLength?: number;
90
90
  /** If true, the form is displayed without a card container styling.*/
91
91
  cardless?: boolean;
92
92
  /** Props to pass to the PhoneInput component */
@@ -160,6 +160,8 @@ type RegisterFormTypes = {
160
160
  form?: string;
161
161
  card?: string;
162
162
  };
163
+ /** The minimum length of the password input field */
164
+ minPasswordLength?: number;
163
165
  /** If true, the form is displayed without a card container styling.*/
164
166
  cardless?: boolean;
165
167
  };
@@ -691,16 +691,21 @@ var Logos = {
691
691
  sikka: (props) => /* @__PURE__ */ import_react4.default.createElement(
692
692
  "svg",
693
693
  {
694
+ "aria-label": "Sikka Logo",
694
695
  xmlns: "http://www.w3.org/2000/svg",
695
- xmlnsXlink: "http://www.w3.org/1999/xlink",
696
- xmlSpace: "preserve",
697
- viewBox: "0 0 916.5 765",
698
- fill: "currentColor",
696
+ width: "512",
697
+ height: "512",
698
+ viewBox: "0 0 512 512",
699
699
  ...props
700
700
  },
701
- /* @__PURE__ */ import_react4.default.createElement("defs", null, /* @__PURE__ */ import_react4.default.createElement("path", { id: "a", d: "M0 0h916.5v765H0z" })),
702
- /* @__PURE__ */ import_react4.default.createElement("clipPath", { id: "b" }, /* @__PURE__ */ import_react4.default.createElement("use", { xlinkHref: "#a", overflow: "visible" })),
703
- /* @__PURE__ */ import_react4.default.createElement("g", { clipPath: "url(#b)" }, /* @__PURE__ */ import_react4.default.createElement("defs", null, /* @__PURE__ */ import_react4.default.createElement("path", { id: "c", d: "M0 0h916.5v765H0z" })), /* @__PURE__ */ import_react4.default.createElement("clipPath", { id: "d" }, /* @__PURE__ */ import_react4.default.createElement("use", { xlinkHref: "#c", overflow: "visible" })), /* @__PURE__ */ import_react4.default.createElement("g", { clipPath: "url(#d)" }, /* @__PURE__ */ import_react4.default.createElement("path", { d: "M458.3 0h-31.9c-14.6 0-26.5 11.9-26.5 26.3v313.3L136.6 17.1C126 3.9 120.7 0 106.1 0H9.7C.5 0 0 7.9 0 17.1 0 21 1.3 26.3 4 29l288.7 353.6L4 736.1c-2.7 2.7-4 7.9-4 11.8 0 9.2.4 17.1 9.7 17.1h96.4c14.6 0 19.9-3.9 30.5-17.1l263.3-322.5v313.3c0 14.4 11.9 26.3 26.5 26.3h31.9M458.3 765h31.9c14.6 0 26.5-11.8 26.5-26.3V425.5L780 748c10.7 13.2 15.9 17.1 30.5 17.1h96.4c9.2 0 9.7-7.9 9.7-17.1 0-3.9-1.3-9.2-4-11.8L623.8 382.5 912.5 28.9c2.7-2.7 4-7.9 4-11.9 0-9.2-.5-17.1-9.7-17.1h-96.4c-14.6 0-19.9 3.9-30.5 17.1L516.7 339.5V26.3c0-14.4-11.9-26.3-26.5-26.3h-31.9" })))
701
+ /* @__PURE__ */ import_react4.default.createElement(
702
+ "path",
703
+ {
704
+ d: "M242.26,91.23c-6.29,0-11.42,5.1-11.42,11.32v134.95L117.43,98.59c-4.58-5.66-6.86-7.36-13.15-7.36h-41.51c-3.98,0-4.18,3.41-4.18,7.36,0,1.7.58,3.96,1.73,5.1l124.37,152.31-124.37,152.31c-1.15,1.15-1.73,3.41-1.73,5.1,0,3.96.19,7.36,4.18,7.36h41.51c6.29,0,8.57-1.7,13.15-7.36l113.41-138.91v134.95c0,6.21,5.13,11.32,11.42,11.32h27.48c6.29,0,11.42-5.1,11.42-11.32v-134.95l113.41,138.91c4.58,5.66,6.86,7.36,13.15,7.36h41.51c3.98,0,4.18-3.41,4.18-7.36,0-1.7-.58-3.96-1.73-5.1l-124.37-152.31,124.37-152.31c1.15-1.15,1.73-3.41,1.73-5.1,0-3.96-.19-7.36-4.18-7.36h-41.51c-6.29,0-8.57,1.7-13.15,7.36l-113.41,138.91V102.54c0-6.21-5.13-11.32-11.42-11.32h-27.48Z",
705
+ fill: "currentColor",
706
+ "stroke-width": "0"
707
+ }
708
+ )
704
709
  ),
705
710
  mail: (props) => /* @__PURE__ */ import_react4.default.createElement(
706
711
  "svg",
@@ -3680,7 +3685,7 @@ var UncheckMark = ({ size = "default", className }) => {
3680
3685
  // blocks/auth/LoginForm.tsx
3681
3686
  var LoginForm = ({
3682
3687
  loginType = "email",
3683
- passwordLength = 8,
3688
+ minPasswordLength = 8,
3684
3689
  texts,
3685
3690
  ...props
3686
3691
  }) => {
@@ -3701,7 +3706,7 @@ var LoginForm = ({
3701
3706
  email: z.string({ required_error: ((_a = texts == null ? void 0 : texts.email) == null ? void 0 : _a.required) || "Email Required" }).min(1, { message: ((_b = texts == null ? void 0 : texts.email) == null ? void 0 : _b.required) || "Email Required" }).email({ message: ((_c = texts == null ? void 0 : texts.email) == null ? void 0 : _c.invalid) || "Email Invalid" }),
3702
3707
  password: z.string({
3703
3708
  required_error: ((_d = texts == null ? void 0 : texts.password) == null ? void 0 : _d.required) || "Password Required"
3704
- }).min(1, { message: ((_e = texts == null ? void 0 : texts.password) == null ? void 0 : _e.required) || "Password Required" }).min(passwordLength, {
3709
+ }).min(1, { message: ((_e = texts == null ? void 0 : texts.password) == null ? void 0 : _e.required) || "Password Required" }).min(minPasswordLength, {
3705
3710
  message: ((_f = texts == null ? void 0 : texts.password) == null ? void 0 : _f.tooShort) || "Password too short"
3706
3711
  })
3707
3712
  });
@@ -3718,7 +3723,7 @@ var LoginForm = ({
3718
3723
  ),
3719
3724
  password: z.string({
3720
3725
  required_error: ((_j = texts == null ? void 0 : texts.password) == null ? void 0 : _j.required) || "Password Required"
3721
- }).min(1, { message: ((_k = texts == null ? void 0 : texts.password) == null ? void 0 : _k.required) || "Password Required" }).min(passwordLength, {
3726
+ }).min(1, { message: ((_k = texts == null ? void 0 : texts.password) == null ? void 0 : _k.required) || "Password Required" }).min(minPasswordLength, {
3722
3727
  message: ((_l = texts == null ? void 0 : texts.password) == null ? void 0 : _l.tooShort) || "Password too short"
3723
3728
  })
3724
3729
  });
@@ -4158,11 +4163,12 @@ var StopPropagationWrapper = (props) => {
4158
4163
  var RegisterForm = ({
4159
4164
  texts,
4160
4165
  registerFields = ["email"],
4166
+ minPasswordLength = 8,
4161
4167
  showTermsOption = false,
4162
4168
  showNewsletterOption = false,
4163
4169
  ...props
4164
4170
  }) => {
4165
- var _a, _b, _c, _d, _e, _f, _g, _h;
4171
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i;
4166
4172
  const [passwordVisible, setPasswordVisible] = (0, import_react17.useState)(false);
4167
4173
  const thirdPartyAuthTexts = {
4168
4174
  continueWithGoogle: texts == null ? void 0 : texts.continueWithGoogle,
@@ -4207,15 +4213,17 @@ var RegisterForm = ({
4207
4213
  ...fieldSchemas,
4208
4214
  password: z2.string({
4209
4215
  required_error: ((_a = texts == null ? void 0 : texts.password) == null ? void 0 : _a.required) || "Password is required"
4210
- }).min(5, {
4216
+ }).min(minPasswordLength, {
4211
4217
  message: ((_b = texts == null ? void 0 : texts.password) == null ? void 0 : _b.tooShort) || "Password is too short"
4212
4218
  }).refine((value) => value !== "", {
4213
4219
  message: ((_c = texts == null ? void 0 : texts.password) == null ? void 0 : _c.required) || "Password is required"
4214
4220
  }),
4215
4221
  confirm_password: z2.string({
4216
4222
  required_error: ((_d = texts == null ? void 0 : texts.confirm) == null ? void 0 : _d.required) || "Confirm password required"
4223
+ }).min(minPasswordLength, {
4224
+ message: ((_e = texts == null ? void 0 : texts.password) == null ? void 0 : _e.tooShort) || "Password is too short"
4217
4225
  }).refine((value) => value !== "", {
4218
- message: ((_e = texts == null ? void 0 : texts.password) == null ? void 0 : _e.required) || "Confirm password is required"
4226
+ message: ((_f = texts == null ? void 0 : texts.password) == null ? void 0 : _f.required) || "Confirm password is required"
4219
4227
  }),
4220
4228
  refCode: z2.string().optional(),
4221
4229
  reference: z2.string().optional(),
@@ -4224,7 +4232,7 @@ var RegisterForm = ({
4224
4232
  }),
4225
4233
  newsletter_accepted: z2.boolean().optional()
4226
4234
  }).refine((data) => data.password === data.confirm_password, {
4227
- message: ((_f = texts == null ? void 0 : texts.confirm) == null ? void 0 : _f.dontMatch) || "Passwords don't match",
4235
+ message: ((_g = texts == null ? void 0 : texts.confirm) == null ? void 0 : _g.dontMatch) || "Passwords don't match",
4228
4236
  path: ["confirm_password"]
4229
4237
  });
4230
4238
  const { handleSubmit, control, formState } = (0, import_react_hook_form2.useForm)({
@@ -4235,7 +4243,7 @@ var RegisterForm = ({
4235
4243
  {
4236
4244
  className: cn(
4237
4245
  "hawa-flex hawa-flex-col hawa-gap-4",
4238
- (_g = props.classNames) == null ? void 0 : _g.root
4246
+ (_h = props.classNames) == null ? void 0 : _h.root
4239
4247
  )
4240
4248
  },
4241
4249
  /* @__PURE__ */ import_react17.default.createElement(
@@ -4243,7 +4251,7 @@ var RegisterForm = ({
4243
4251
  {
4244
4252
  dir: props.direction,
4245
4253
  className: cn(
4246
- (_h = props.classNames) == null ? void 0 : _h.card,
4254
+ (_i = props.classNames) == null ? void 0 : _i.card,
4247
4255
  props.cardless && "hawa-border-none hawa-bg-transparent !hawa-shadow-none !hawa-drop-shadow-none"
4248
4256
  )
4249
4257
  },
@@ -4793,19 +4801,19 @@ var z5 = __toESM(require("zod"));
4793
4801
  var React25 = __toESM(require("react"));
4794
4802
  var import_input_otp = require("input-otp");
4795
4803
 
4796
- // ../../node_modules/.pnpm/lucide-react@0.395.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
4804
+ // ../../node_modules/.pnpm/lucide-react@0.403.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
4797
4805
  var import_react23 = require("react");
4798
4806
 
4799
- // ../../node_modules/.pnpm/lucide-react@0.395.0_react@18.3.1/node_modules/lucide-react/dist/esm/shared/src/utils.js
4807
+ // ../../node_modules/.pnpm/lucide-react@0.403.0_react@18.3.1/node_modules/lucide-react/dist/esm/shared/src/utils.js
4800
4808
  var toKebabCase = (string9) => string9.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
4801
4809
  var mergeClasses = (...classes) => classes.filter((className, index, array) => {
4802
4810
  return Boolean(className) && array.indexOf(className) === index;
4803
4811
  }).join(" ");
4804
4812
 
4805
- // ../../node_modules/.pnpm/lucide-react@0.395.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js
4813
+ // ../../node_modules/.pnpm/lucide-react@0.403.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js
4806
4814
  var import_react22 = require("react");
4807
4815
 
4808
- // ../../node_modules/.pnpm/lucide-react@0.395.0_react@18.3.1/node_modules/lucide-react/dist/esm/defaultAttributes.js
4816
+ // ../../node_modules/.pnpm/lucide-react@0.403.0_react@18.3.1/node_modules/lucide-react/dist/esm/defaultAttributes.js
4809
4817
  var defaultAttributes = {
4810
4818
  xmlns: "http://www.w3.org/2000/svg",
4811
4819
  width: 24,
@@ -4818,7 +4826,7 @@ var defaultAttributes = {
4818
4826
  strokeLinejoin: "round"
4819
4827
  };
4820
4828
 
4821
- // ../../node_modules/.pnpm/lucide-react@0.395.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js
4829
+ // ../../node_modules/.pnpm/lucide-react@0.403.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js
4822
4830
  var Icon = (0, import_react22.forwardRef)(
4823
4831
  ({
4824
4832
  color = "currentColor",
@@ -4850,7 +4858,7 @@ var Icon = (0, import_react22.forwardRef)(
4850
4858
  }
4851
4859
  );
4852
4860
 
4853
- // ../../node_modules/.pnpm/lucide-react@0.395.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
4861
+ // ../../node_modules/.pnpm/lucide-react@0.403.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
4854
4862
  var createLucideIcon = (iconName, iconNode) => {
4855
4863
  const Component = (0, import_react23.forwardRef)(
4856
4864
  ({ className, ...props }, ref) => (0, import_react23.createElement)(Icon, {
@@ -4864,7 +4872,7 @@ var createLucideIcon = (iconName, iconNode) => {
4864
4872
  return Component;
4865
4873
  };
4866
4874
 
4867
- // ../../node_modules/.pnpm/lucide-react@0.395.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/dot.js
4875
+ // ../../node_modules/.pnpm/lucide-react@0.403.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/dot.js
4868
4876
  var Dot = createLucideIcon("Dot", [
4869
4877
  ["circle", { cx: "12.1", cy: "12.1", r: "1", key: "18d7e5" }]
4870
4878
  ]);
@@ -7915,7 +7923,7 @@ var Usage = (props) => {
7915
7923
 
7916
7924
  lucide-react/dist/esm/shared/src/utils.js:
7917
7925
  (**
7918
- * @license lucide-react v0.395.0 - ISC
7926
+ * @license lucide-react v0.403.0 - ISC
7919
7927
  *
7920
7928
  * This source code is licensed under the ISC license.
7921
7929
  * See the LICENSE file in the root directory of this source tree.
@@ -7923,7 +7931,7 @@ lucide-react/dist/esm/shared/src/utils.js:
7923
7931
 
7924
7932
  lucide-react/dist/esm/defaultAttributes.js:
7925
7933
  (**
7926
- * @license lucide-react v0.395.0 - ISC
7934
+ * @license lucide-react v0.403.0 - ISC
7927
7935
  *
7928
7936
  * This source code is licensed under the ISC license.
7929
7937
  * See the LICENSE file in the root directory of this source tree.
@@ -7931,7 +7939,7 @@ lucide-react/dist/esm/defaultAttributes.js:
7931
7939
 
7932
7940
  lucide-react/dist/esm/Icon.js:
7933
7941
  (**
7934
- * @license lucide-react v0.395.0 - ISC
7942
+ * @license lucide-react v0.403.0 - ISC
7935
7943
  *
7936
7944
  * This source code is licensed under the ISC license.
7937
7945
  * See the LICENSE file in the root directory of this source tree.
@@ -7939,7 +7947,7 @@ lucide-react/dist/esm/Icon.js:
7939
7947
 
7940
7948
  lucide-react/dist/esm/createLucideIcon.js:
7941
7949
  (**
7942
- * @license lucide-react v0.395.0 - ISC
7950
+ * @license lucide-react v0.403.0 - ISC
7943
7951
  *
7944
7952
  * This source code is licensed under the ISC license.
7945
7953
  * See the LICENSE file in the root directory of this source tree.
@@ -7947,7 +7955,7 @@ lucide-react/dist/esm/createLucideIcon.js:
7947
7955
 
7948
7956
  lucide-react/dist/esm/icons/dot.js:
7949
7957
  (**
7950
- * @license lucide-react v0.395.0 - ISC
7958
+ * @license lucide-react v0.403.0 - ISC
7951
7959
  *
7952
7960
  * This source code is licensed under the ISC license.
7953
7961
  * See the LICENSE file in the root directory of this source tree.
@@ -7955,7 +7963,7 @@ lucide-react/dist/esm/icons/dot.js:
7955
7963
 
7956
7964
  lucide-react/dist/esm/lucide-react.js:
7957
7965
  (**
7958
- * @license lucide-react v0.395.0 - ISC
7966
+ * @license lucide-react v0.403.0 - ISC
7959
7967
  *
7960
7968
  * This source code is licensed under the ISC license.
7961
7969
  * See the LICENSE file in the root directory of this source tree.
@@ -17,8 +17,8 @@ import {
17
17
  TabsList,
18
18
  TabsTrigger,
19
19
  Textarea
20
- } from "../chunk-G7JRS64F.mjs";
21
- import "../chunk-MA7CACEB.mjs";
20
+ } from "../chunk-RIZBMJNK.mjs";
21
+ import "../chunk-WL7C2A5D.mjs";
22
22
  import {
23
23
  BadEmoji,
24
24
  Button,
@@ -42,7 +42,7 @@ import {
42
42
  VeryBadEmoji,
43
43
  VeryGoodEmoji,
44
44
  cn
45
- } from "../chunk-DBOKFWWD.mjs";
45
+ } from "../chunk-3DT2KQXP.mjs";
46
46
  import "../chunk-2LUXOXAL.mjs";
47
47
 
48
48
  // blocks/auth/AuthButtons.tsx
@@ -156,7 +156,7 @@ import {
156
156
  import * as z from "zod";
157
157
  var LoginForm = ({
158
158
  loginType = "email",
159
- passwordLength = 8,
159
+ minPasswordLength = 8,
160
160
  texts,
161
161
  ...props
162
162
  }) => {
@@ -177,7 +177,7 @@ var LoginForm = ({
177
177
  email: z.string({ required_error: ((_a = texts == null ? void 0 : texts.email) == null ? void 0 : _a.required) || "Email Required" }).min(1, { message: ((_b = texts == null ? void 0 : texts.email) == null ? void 0 : _b.required) || "Email Required" }).email({ message: ((_c = texts == null ? void 0 : texts.email) == null ? void 0 : _c.invalid) || "Email Invalid" }),
178
178
  password: z.string({
179
179
  required_error: ((_d = texts == null ? void 0 : texts.password) == null ? void 0 : _d.required) || "Password Required"
180
- }).min(1, { message: ((_e = texts == null ? void 0 : texts.password) == null ? void 0 : _e.required) || "Password Required" }).min(passwordLength, {
180
+ }).min(1, { message: ((_e = texts == null ? void 0 : texts.password) == null ? void 0 : _e.required) || "Password Required" }).min(minPasswordLength, {
181
181
  message: ((_f = texts == null ? void 0 : texts.password) == null ? void 0 : _f.tooShort) || "Password too short"
182
182
  })
183
183
  });
@@ -194,7 +194,7 @@ var LoginForm = ({
194
194
  ),
195
195
  password: z.string({
196
196
  required_error: ((_j = texts == null ? void 0 : texts.password) == null ? void 0 : _j.required) || "Password Required"
197
- }).min(1, { message: ((_k = texts == null ? void 0 : texts.password) == null ? void 0 : _k.required) || "Password Required" }).min(passwordLength, {
197
+ }).min(1, { message: ((_k = texts == null ? void 0 : texts.password) == null ? void 0 : _k.required) || "Password Required" }).min(minPasswordLength, {
198
198
  message: ((_l = texts == null ? void 0 : texts.password) == null ? void 0 : _l.tooShort) || "Password too short"
199
199
  })
200
200
  });
@@ -487,11 +487,12 @@ import * as z2 from "zod";
487
487
  var RegisterForm = ({
488
488
  texts,
489
489
  registerFields = ["email"],
490
+ minPasswordLength = 8,
490
491
  showTermsOption = false,
491
492
  showNewsletterOption = false,
492
493
  ...props
493
494
  }) => {
494
- var _a, _b, _c, _d, _e, _f, _g, _h;
495
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i;
495
496
  const [passwordVisible, setPasswordVisible] = useState2(false);
496
497
  const thirdPartyAuthTexts = {
497
498
  continueWithGoogle: texts == null ? void 0 : texts.continueWithGoogle,
@@ -536,15 +537,17 @@ var RegisterForm = ({
536
537
  ...fieldSchemas,
537
538
  password: z2.string({
538
539
  required_error: ((_a = texts == null ? void 0 : texts.password) == null ? void 0 : _a.required) || "Password is required"
539
- }).min(5, {
540
+ }).min(minPasswordLength, {
540
541
  message: ((_b = texts == null ? void 0 : texts.password) == null ? void 0 : _b.tooShort) || "Password is too short"
541
542
  }).refine((value) => value !== "", {
542
543
  message: ((_c = texts == null ? void 0 : texts.password) == null ? void 0 : _c.required) || "Password is required"
543
544
  }),
544
545
  confirm_password: z2.string({
545
546
  required_error: ((_d = texts == null ? void 0 : texts.confirm) == null ? void 0 : _d.required) || "Confirm password required"
547
+ }).min(minPasswordLength, {
548
+ message: ((_e = texts == null ? void 0 : texts.password) == null ? void 0 : _e.tooShort) || "Password is too short"
546
549
  }).refine((value) => value !== "", {
547
- message: ((_e = texts == null ? void 0 : texts.password) == null ? void 0 : _e.required) || "Confirm password is required"
550
+ message: ((_f = texts == null ? void 0 : texts.password) == null ? void 0 : _f.required) || "Confirm password is required"
548
551
  }),
549
552
  refCode: z2.string().optional(),
550
553
  reference: z2.string().optional(),
@@ -553,7 +556,7 @@ var RegisterForm = ({
553
556
  }),
554
557
  newsletter_accepted: z2.boolean().optional()
555
558
  }).refine((data) => data.password === data.confirm_password, {
556
- message: ((_f = texts == null ? void 0 : texts.confirm) == null ? void 0 : _f.dontMatch) || "Passwords don't match",
559
+ message: ((_g = texts == null ? void 0 : texts.confirm) == null ? void 0 : _g.dontMatch) || "Passwords don't match",
557
560
  path: ["confirm_password"]
558
561
  });
559
562
  const { handleSubmit, control, formState } = useForm2({
@@ -564,7 +567,7 @@ var RegisterForm = ({
564
567
  {
565
568
  className: cn(
566
569
  "hawa-flex hawa-flex-col hawa-gap-4",
567
- (_g = props.classNames) == null ? void 0 : _g.root
570
+ (_h = props.classNames) == null ? void 0 : _h.root
568
571
  )
569
572
  },
570
573
  /* @__PURE__ */ React3.createElement(
@@ -572,7 +575,7 @@ var RegisterForm = ({
572
575
  {
573
576
  dir: props.direction,
574
577
  className: cn(
575
- (_h = props.classNames) == null ? void 0 : _h.card,
578
+ (_i = props.classNames) == null ? void 0 : _i.card,
576
579
  props.cardless && "hawa-border-none hawa-bg-transparent !hawa-shadow-none !hawa-drop-shadow-none"
577
580
  )
578
581
  },