@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.
- package/dist/{Chip-Cato49ar.d.ts → Chip-Cw1twk4G.d.ts} +6 -6
- package/dist/{Chip-CGl24Kd9.d.mts → Chip-KG1_ZmCL.d.mts} +6 -6
- package/dist/{DropdownMenu-DgV8PvW3.d.ts → DropdownMenu-CDnFCzfc.d.ts} +5 -5
- package/dist/{DropdownMenu-dvd9brmT.d.mts → DropdownMenu-mK9EvfKp.d.mts} +5 -5
- package/dist/{Toast-fy9tBz19.d.ts → Toast-BaXp3G7y.d.ts} +1 -1
- package/dist/{Toast-BcFD9aeQ.d.mts → Toast-CKWr23kg.d.mts} +1 -1
- package/dist/accordion/index.d.mts +3 -3
- package/dist/accordion/index.d.ts +3 -3
- package/dist/alert/index.js.map +1 -1
- package/dist/alert/index.mjs.map +1 -1
- package/dist/appLayout/index.js.map +1 -1
- package/dist/appLayout/index.mjs.map +1 -1
- package/dist/appMenubar/index.d.mts +8 -11
- package/dist/appMenubar/index.d.ts +8 -11
- package/dist/appMenubar/index.js.map +1 -1
- package/dist/appMenubar/index.mjs.map +1 -1
- package/dist/backToTop/index.js.map +1 -1
- package/dist/backToTop/index.mjs.map +1 -1
- package/dist/blocks/auth/index.d.mts +4 -2
- package/dist/blocks/auth/index.d.ts +4 -2
- package/dist/blocks/auth/index.js +37 -29
- package/dist/blocks/auth/index.mjs +37 -29
- package/dist/blocks/index.d.mts +5 -3
- package/dist/blocks/index.d.ts +5 -3
- package/dist/blocks/index.js +37 -29
- package/dist/blocks/index.mjs +15 -12
- package/dist/button/index.js.map +1 -1
- package/dist/button/index.mjs.map +1 -1
- package/dist/calendar/index.js.map +1 -1
- package/dist/calendar/index.mjs.map +1 -1
- package/dist/card/index.d.mts +3 -3
- package/dist/card/index.d.ts +3 -3
- package/dist/checkbox/index.d.mts +2 -2
- package/dist/checkbox/index.d.ts +2 -2
- package/dist/chip/index.d.mts +6 -6
- package/dist/chip/index.d.ts +6 -6
- package/dist/{chunk-DBOKFWWD.mjs → chunk-3DT2KQXP.mjs} +12 -7
- package/dist/{chunk-G7JRS64F.mjs → chunk-RIZBMJNK.mjs} +15 -15
- package/dist/{chunk-OXZBK6KQ.mjs → chunk-UZD7PSQG.mjs} +1 -1
- package/dist/{chunk-MA7CACEB.mjs → chunk-WL7C2A5D.mjs} +1 -6
- package/dist/codeBlock/index.js.map +1 -1
- package/dist/codeBlock/index.mjs.map +1 -1
- package/dist/colorPicker/index.js.map +1 -1
- package/dist/colorPicker/index.mjs.map +1 -1
- package/dist/combobox/index.js.map +1 -1
- package/dist/combobox/index.mjs.map +1 -1
- package/dist/dataTable/index.js.map +1 -1
- package/dist/dataTable/index.mjs.map +1 -1
- package/dist/datePicker/index.js.map +1 -1
- package/dist/datePicker/index.mjs.map +1 -1
- package/dist/dialog/index.d.mts +17 -16
- package/dist/dialog/index.d.ts +17 -16
- package/dist/docsLayout/index.js +12 -7
- package/dist/docsLayout/index.js.map +1 -1
- package/dist/docsLayout/index.mjs +12 -7
- package/dist/docsLayout/index.mjs.map +1 -1
- package/dist/dropdownMenu/index.d.mts +5 -5
- package/dist/dropdownMenu/index.d.ts +5 -5
- package/dist/elements/index.d.mts +77 -76
- package/dist/elements/index.d.ts +77 -76
- package/dist/elements/index.js +25 -20
- package/dist/elements/index.mjs +4 -4
- package/dist/fileDropzone/index.js.map +1 -1
- package/dist/fileDropzone/index.mjs.map +1 -1
- package/dist/hooks/index.d.mts +1 -1
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/index.js +1 -6
- package/dist/hooks/index.mjs +1 -1
- package/dist/index.d.mts +96 -96
- package/dist/index.d.ts +96 -96
- package/dist/index.js +38 -35
- package/dist/index.mjs +38 -35
- package/dist/input/index.d.mts +16 -16
- package/dist/input/index.d.ts +16 -16
- package/dist/input/index.js.map +1 -1
- package/dist/input/index.mjs.map +1 -1
- package/dist/interfaceSettings/index.js.map +1 -1
- package/dist/interfaceSettings/index.mjs.map +1 -1
- package/dist/label/index.js.map +1 -1
- package/dist/label/index.mjs.map +1 -1
- package/dist/layout/index.d.mts +10 -13
- package/dist/layout/index.d.ts +10 -13
- package/dist/layout/index.js +12 -7
- package/dist/layout/index.mjs +2 -2
- package/dist/logos/index.js +12 -7
- package/dist/logos/index.js.map +1 -1
- package/dist/logos/index.mjs +12 -7
- package/dist/logos/index.mjs.map +1 -1
- package/dist/navigationMenu/index.d.mts +1 -1
- package/dist/navigationMenu/index.d.ts +1 -1
- package/dist/passwordInput/index.js.map +1 -1
- package/dist/passwordInput/index.mjs.map +1 -1
- package/dist/phoneInput/index.js.map +1 -1
- package/dist/phoneInput/index.mjs.map +1 -1
- package/dist/pinInput/index.d.mts +16 -16
- package/dist/pinInput/index.d.ts +16 -16
- package/dist/pinInput/index.js +13 -13
- package/dist/pinInput/index.js.map +1 -1
- package/dist/pinInput/index.mjs +13 -13
- package/dist/pinInput/index.mjs.map +1 -1
- package/dist/popover/index.d.mts +1 -1
- package/dist/popover/index.d.ts +1 -1
- package/dist/progress/index.d.mts +2 -2
- package/dist/progress/index.d.ts +2 -2
- package/dist/progress/index.js.map +1 -1
- package/dist/progress/index.mjs.map +1 -1
- package/dist/radio/index.js.map +1 -1
- package/dist/radio/index.mjs.map +1 -1
- package/dist/scrollArea/index.d.mts +1 -1
- package/dist/scrollArea/index.d.ts +1 -1
- package/dist/select/index.js.map +1 -1
- package/dist/select/index.mjs.map +1 -1
- package/dist/signature/index.js.map +1 -1
- package/dist/signature/index.mjs.map +1 -1
- package/dist/sortButton/index.js.map +1 -1
- package/dist/sortButton/index.mjs.map +1 -1
- package/dist/splitButton/index.js.map +1 -1
- package/dist/splitButton/index.mjs.map +1 -1
- package/dist/tabs/index.d.mts +9 -9
- package/dist/tabs/index.d.ts +9 -9
- package/dist/tabs/index.js.map +1 -1
- package/dist/tabs/index.mjs.map +1 -1
- package/dist/textarea/index.js.map +1 -1
- package/dist/textarea/index.mjs.map +1 -1
- package/dist/toast/index.d.mts +1 -1
- package/dist/toast/index.d.ts +1 -1
- package/dist/tooltip/index.d.mts +1 -1
- package/dist/tooltip/index.d.ts +1 -1
- package/dist/tooltip/index.js.map +1 -1
- package/dist/tooltip/index.mjs.map +1 -1
- 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
|
-
|
204
|
-
|
205
|
-
viewBox: "0 0
|
206
|
-
fill: "currentColor",
|
204
|
+
width: "512",
|
205
|
+
height: "512",
|
206
|
+
viewBox: "0 0 512 512",
|
207
207
|
...props
|
208
208
|
},
|
209
|
-
/* @__PURE__ */ React.createElement(
|
210
|
-
|
211
|
-
|
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
|
-
|
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(
|
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(
|
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(
|
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: ((
|
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: ((
|
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
|
-
(
|
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
|
-
(
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
package/dist/blocks/index.d.mts
CHANGED
@@ -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-
|
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
|
89
|
-
|
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
|
};
|
package/dist/blocks/index.d.ts
CHANGED
@@ -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-
|
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
|
89
|
-
|
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
|
};
|
package/dist/blocks/index.js
CHANGED
@@ -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
|
-
|
696
|
-
|
697
|
-
viewBox: "0 0
|
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(
|
702
|
-
|
703
|
-
|
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
|
-
|
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(
|
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(
|
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(
|
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: ((
|
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: ((
|
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
|
-
(
|
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
|
-
(
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
package/dist/blocks/index.mjs
CHANGED
@@ -17,8 +17,8 @@ import {
|
|
17
17
|
TabsList,
|
18
18
|
TabsTrigger,
|
19
19
|
Textarea
|
20
|
-
} from "../chunk-
|
21
|
-
import "../chunk-
|
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-
|
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
|
-
|
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(
|
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(
|
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(
|
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: ((
|
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: ((
|
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
|
-
(
|
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
|
-
(
|
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
|
},
|