@sikka/hawa 0.42.6-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/blocks/auth/index.d.mts +4 -2
- package/dist/blocks/auth/index.d.ts +4 -2
- package/dist/blocks/auth/index.js +25 -22
- package/dist/blocks/auth/index.mjs +25 -22
- package/dist/blocks/index.d.mts +4 -2
- package/dist/blocks/index.d.ts +4 -2
- package/dist/blocks/index.js +25 -22
- package/dist/blocks/index.mjs +13 -10
- package/dist/{chunk-EBVZY3RJ.mjs → chunk-RIZBMJNK.mjs} +13 -13
- package/dist/elements/index.js +13 -13
- package/dist/elements/index.mjs +1 -1
- package/dist/index.d.mts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +25 -22
- package/dist/index.mjs +25 -22
- 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/package.json +14 -14
package/dist/blocks/index.mjs
CHANGED
@@ -17,7 +17,7 @@ import {
|
|
17
17
|
TabsList,
|
18
18
|
TabsTrigger,
|
19
19
|
Textarea
|
20
|
-
} from "../chunk-
|
20
|
+
} from "../chunk-RIZBMJNK.mjs";
|
21
21
|
import "../chunk-WL7C2A5D.mjs";
|
22
22
|
import {
|
23
23
|
BadEmoji,
|
@@ -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
|
},
|
@@ -2394,19 +2394,19 @@ var StopPropagationWrapper = (props) => {
|
|
2394
2394
|
import * as React7 from "react";
|
2395
2395
|
import { OTPInput, OTPInputContext } from "input-otp";
|
2396
2396
|
|
2397
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
2397
|
+
// ../../node_modules/.pnpm/lucide-react@0.403.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
|
2398
2398
|
import { forwardRef as forwardRef4, createElement as createElement3 } from "react";
|
2399
2399
|
|
2400
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
2400
|
+
// ../../node_modules/.pnpm/lucide-react@0.403.0_react@18.3.1/node_modules/lucide-react/dist/esm/shared/src/utils.js
|
2401
2401
|
var toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
2402
2402
|
var mergeClasses = (...classes) => classes.filter((className, index, array) => {
|
2403
2403
|
return Boolean(className) && array.indexOf(className) === index;
|
2404
2404
|
}).join(" ");
|
2405
2405
|
|
2406
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
2406
|
+
// ../../node_modules/.pnpm/lucide-react@0.403.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js
|
2407
2407
|
import { forwardRef as forwardRef3, createElement as createElement2 } from "react";
|
2408
2408
|
|
2409
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
2409
|
+
// ../../node_modules/.pnpm/lucide-react@0.403.0_react@18.3.1/node_modules/lucide-react/dist/esm/defaultAttributes.js
|
2410
2410
|
var defaultAttributes = {
|
2411
2411
|
xmlns: "http://www.w3.org/2000/svg",
|
2412
2412
|
width: 24,
|
@@ -2419,7 +2419,7 @@ var defaultAttributes = {
|
|
2419
2419
|
strokeLinejoin: "round"
|
2420
2420
|
};
|
2421
2421
|
|
2422
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
2422
|
+
// ../../node_modules/.pnpm/lucide-react@0.403.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js
|
2423
2423
|
var Icon = forwardRef3(
|
2424
2424
|
({
|
2425
2425
|
color = "currentColor",
|
@@ -2451,7 +2451,7 @@ var Icon = forwardRef3(
|
|
2451
2451
|
}
|
2452
2452
|
);
|
2453
2453
|
|
2454
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
2454
|
+
// ../../node_modules/.pnpm/lucide-react@0.403.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
|
2455
2455
|
var createLucideIcon = (iconName, iconNode) => {
|
2456
2456
|
const Component = forwardRef4(
|
2457
2457
|
({ className, ...props }, ref) => createElement3(Icon, {
|
@@ -2465,7 +2465,7 @@ var createLucideIcon = (iconName, iconNode) => {
|
|
2465
2465
|
return Component;
|
2466
2466
|
};
|
2467
2467
|
|
2468
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
2468
|
+
// ../../node_modules/.pnpm/lucide-react@0.403.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/dot.js
|
2469
2469
|
var Dot = createLucideIcon("Dot", [
|
2470
2470
|
["circle", { cx: "12.1", cy: "12.1", r: "1", key: "18d7e5" }]
|
2471
2471
|
]);
|
@@ -3282,7 +3282,7 @@ export {
|
|
3282
3282
|
|
3283
3283
|
lucide-react/dist/esm/shared/src/utils.js:
|
3284
3284
|
(**
|
3285
|
-
* @license lucide-react v0.
|
3285
|
+
* @license lucide-react v0.403.0 - ISC
|
3286
3286
|
*
|
3287
3287
|
* This source code is licensed under the ISC license.
|
3288
3288
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -3290,7 +3290,7 @@ lucide-react/dist/esm/shared/src/utils.js:
|
|
3290
3290
|
|
3291
3291
|
lucide-react/dist/esm/defaultAttributes.js:
|
3292
3292
|
(**
|
3293
|
-
* @license lucide-react v0.
|
3293
|
+
* @license lucide-react v0.403.0 - ISC
|
3294
3294
|
*
|
3295
3295
|
* This source code is licensed under the ISC license.
|
3296
3296
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -3298,7 +3298,7 @@ lucide-react/dist/esm/defaultAttributes.js:
|
|
3298
3298
|
|
3299
3299
|
lucide-react/dist/esm/Icon.js:
|
3300
3300
|
(**
|
3301
|
-
* @license lucide-react v0.
|
3301
|
+
* @license lucide-react v0.403.0 - ISC
|
3302
3302
|
*
|
3303
3303
|
* This source code is licensed under the ISC license.
|
3304
3304
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -3306,7 +3306,7 @@ lucide-react/dist/esm/Icon.js:
|
|
3306
3306
|
|
3307
3307
|
lucide-react/dist/esm/createLucideIcon.js:
|
3308
3308
|
(**
|
3309
|
-
* @license lucide-react v0.
|
3309
|
+
* @license lucide-react v0.403.0 - ISC
|
3310
3310
|
*
|
3311
3311
|
* This source code is licensed under the ISC license.
|
3312
3312
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -3314,7 +3314,7 @@ lucide-react/dist/esm/createLucideIcon.js:
|
|
3314
3314
|
|
3315
3315
|
lucide-react/dist/esm/icons/dot.js:
|
3316
3316
|
(**
|
3317
|
-
* @license lucide-react v0.
|
3317
|
+
* @license lucide-react v0.403.0 - ISC
|
3318
3318
|
*
|
3319
3319
|
* This source code is licensed under the ISC license.
|
3320
3320
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -3322,7 +3322,7 @@ lucide-react/dist/esm/icons/dot.js:
|
|
3322
3322
|
|
3323
3323
|
lucide-react/dist/esm/lucide-react.js:
|
3324
3324
|
(**
|
3325
|
-
* @license lucide-react v0.
|
3325
|
+
* @license lucide-react v0.403.0 - ISC
|
3326
3326
|
*
|
3327
3327
|
* This source code is licensed under the ISC license.
|
3328
3328
|
* See the LICENSE file in the root directory of this source tree.
|
package/dist/elements/index.js
CHANGED
@@ -7391,19 +7391,19 @@ var PhoneInput = ({
|
|
7391
7391
|
var React50 = __toESM(require("react"));
|
7392
7392
|
var import_input_otp = require("input-otp");
|
7393
7393
|
|
7394
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
7394
|
+
// ../../node_modules/.pnpm/lucide-react@0.403.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
|
7395
7395
|
var import_react41 = require("react");
|
7396
7396
|
|
7397
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
7397
|
+
// ../../node_modules/.pnpm/lucide-react@0.403.0_react@18.3.1/node_modules/lucide-react/dist/esm/shared/src/utils.js
|
7398
7398
|
var toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
7399
7399
|
var mergeClasses = (...classes) => classes.filter((className, index, array) => {
|
7400
7400
|
return Boolean(className) && array.indexOf(className) === index;
|
7401
7401
|
}).join(" ");
|
7402
7402
|
|
7403
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
7403
|
+
// ../../node_modules/.pnpm/lucide-react@0.403.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js
|
7404
7404
|
var import_react40 = require("react");
|
7405
7405
|
|
7406
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
7406
|
+
// ../../node_modules/.pnpm/lucide-react@0.403.0_react@18.3.1/node_modules/lucide-react/dist/esm/defaultAttributes.js
|
7407
7407
|
var defaultAttributes = {
|
7408
7408
|
xmlns: "http://www.w3.org/2000/svg",
|
7409
7409
|
width: 24,
|
@@ -7416,7 +7416,7 @@ var defaultAttributes = {
|
|
7416
7416
|
strokeLinejoin: "round"
|
7417
7417
|
};
|
7418
7418
|
|
7419
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
7419
|
+
// ../../node_modules/.pnpm/lucide-react@0.403.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js
|
7420
7420
|
var Icon = (0, import_react40.forwardRef)(
|
7421
7421
|
({
|
7422
7422
|
color = "currentColor",
|
@@ -7448,7 +7448,7 @@ var Icon = (0, import_react40.forwardRef)(
|
|
7448
7448
|
}
|
7449
7449
|
);
|
7450
7450
|
|
7451
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
7451
|
+
// ../../node_modules/.pnpm/lucide-react@0.403.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
|
7452
7452
|
var createLucideIcon = (iconName, iconNode) => {
|
7453
7453
|
const Component = (0, import_react41.forwardRef)(
|
7454
7454
|
({ className, ...props }, ref) => (0, import_react41.createElement)(Icon, {
|
@@ -7462,7 +7462,7 @@ var createLucideIcon = (iconName, iconNode) => {
|
|
7462
7462
|
return Component;
|
7463
7463
|
};
|
7464
7464
|
|
7465
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
7465
|
+
// ../../node_modules/.pnpm/lucide-react@0.403.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/dot.js
|
7466
7466
|
var Dot = createLucideIcon("Dot", [
|
7467
7467
|
["circle", { cx: "12.1", cy: "12.1", r: "1", key: "18d7e5" }]
|
7468
7468
|
]);
|
@@ -9008,7 +9008,7 @@ var PhoneMockup = ({
|
|
9008
9008
|
|
9009
9009
|
lucide-react/dist/esm/shared/src/utils.js:
|
9010
9010
|
(**
|
9011
|
-
* @license lucide-react v0.
|
9011
|
+
* @license lucide-react v0.403.0 - ISC
|
9012
9012
|
*
|
9013
9013
|
* This source code is licensed under the ISC license.
|
9014
9014
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -9016,7 +9016,7 @@ lucide-react/dist/esm/shared/src/utils.js:
|
|
9016
9016
|
|
9017
9017
|
lucide-react/dist/esm/defaultAttributes.js:
|
9018
9018
|
(**
|
9019
|
-
* @license lucide-react v0.
|
9019
|
+
* @license lucide-react v0.403.0 - ISC
|
9020
9020
|
*
|
9021
9021
|
* This source code is licensed under the ISC license.
|
9022
9022
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -9024,7 +9024,7 @@ lucide-react/dist/esm/defaultAttributes.js:
|
|
9024
9024
|
|
9025
9025
|
lucide-react/dist/esm/Icon.js:
|
9026
9026
|
(**
|
9027
|
-
* @license lucide-react v0.
|
9027
|
+
* @license lucide-react v0.403.0 - ISC
|
9028
9028
|
*
|
9029
9029
|
* This source code is licensed under the ISC license.
|
9030
9030
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -9032,7 +9032,7 @@ lucide-react/dist/esm/Icon.js:
|
|
9032
9032
|
|
9033
9033
|
lucide-react/dist/esm/createLucideIcon.js:
|
9034
9034
|
(**
|
9035
|
-
* @license lucide-react v0.
|
9035
|
+
* @license lucide-react v0.403.0 - ISC
|
9036
9036
|
*
|
9037
9037
|
* This source code is licensed under the ISC license.
|
9038
9038
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -9040,7 +9040,7 @@ lucide-react/dist/esm/createLucideIcon.js:
|
|
9040
9040
|
|
9041
9041
|
lucide-react/dist/esm/icons/dot.js:
|
9042
9042
|
(**
|
9043
|
-
* @license lucide-react v0.
|
9043
|
+
* @license lucide-react v0.403.0 - ISC
|
9044
9044
|
*
|
9045
9045
|
* This source code is licensed under the ISC license.
|
9046
9046
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -9048,7 +9048,7 @@ lucide-react/dist/esm/icons/dot.js:
|
|
9048
9048
|
|
9049
9049
|
lucide-react/dist/esm/lucide-react.js:
|
9050
9050
|
(**
|
9051
|
-
* @license lucide-react v0.
|
9051
|
+
* @license lucide-react v0.403.0 - ISC
|
9052
9052
|
*
|
9053
9053
|
* This source code is licensed under the ISC license.
|
9054
9054
|
* See the LICENSE file in the root directory of this source tree.
|
package/dist/elements/index.mjs
CHANGED
package/dist/index.d.mts
CHANGED
@@ -1690,8 +1690,8 @@ type LoginFormTypes = {
|
|
1690
1690
|
onTwitterLogin?: () => void;
|
1691
1691
|
/** Additional buttons to add under the login button */
|
1692
1692
|
additionalButtons?: any;
|
1693
|
-
/** The
|
1694
|
-
|
1693
|
+
/** The minimum length of the password input field */
|
1694
|
+
minPasswordLength?: number;
|
1695
1695
|
/** If true, the form is displayed without a card container styling.*/
|
1696
1696
|
cardless?: boolean;
|
1697
1697
|
/** Props to pass to the PhoneInput component */
|
@@ -1765,6 +1765,8 @@ type RegisterFormTypes = {
|
|
1765
1765
|
form?: string;
|
1766
1766
|
card?: string;
|
1767
1767
|
};
|
1768
|
+
/** The minimum length of the password input field */
|
1769
|
+
minPasswordLength?: number;
|
1768
1770
|
/** If true, the form is displayed without a card container styling.*/
|
1769
1771
|
cardless?: boolean;
|
1770
1772
|
};
|
package/dist/index.d.ts
CHANGED
@@ -1690,8 +1690,8 @@ type LoginFormTypes = {
|
|
1690
1690
|
onTwitterLogin?: () => void;
|
1691
1691
|
/** Additional buttons to add under the login button */
|
1692
1692
|
additionalButtons?: any;
|
1693
|
-
/** The
|
1694
|
-
|
1693
|
+
/** The minimum length of the password input field */
|
1694
|
+
minPasswordLength?: number;
|
1695
1695
|
/** If true, the form is displayed without a card container styling.*/
|
1696
1696
|
cardless?: boolean;
|
1697
1697
|
/** Props to pass to the PhoneInput component */
|
@@ -1765,6 +1765,8 @@ type RegisterFormTypes = {
|
|
1765
1765
|
form?: string;
|
1766
1766
|
card?: string;
|
1767
1767
|
};
|
1768
|
+
/** The minimum length of the password input field */
|
1769
|
+
minPasswordLength?: number;
|
1768
1770
|
/** If true, the form is displayed without a card container styling.*/
|
1769
1771
|
cardless?: boolean;
|
1770
1772
|
};
|
package/dist/index.js
CHANGED
@@ -7918,19 +7918,19 @@ var PhoneInput = ({
|
|
7918
7918
|
var React50 = __toESM(require("react"));
|
7919
7919
|
var import_input_otp = require("input-otp");
|
7920
7920
|
|
7921
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
7921
|
+
// ../../node_modules/.pnpm/lucide-react@0.403.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
|
7922
7922
|
var import_react41 = require("react");
|
7923
7923
|
|
7924
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
7924
|
+
// ../../node_modules/.pnpm/lucide-react@0.403.0_react@18.3.1/node_modules/lucide-react/dist/esm/shared/src/utils.js
|
7925
7925
|
var toKebabCase = (string9) => string9.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
7926
7926
|
var mergeClasses = (...classes) => classes.filter((className, index, array) => {
|
7927
7927
|
return Boolean(className) && array.indexOf(className) === index;
|
7928
7928
|
}).join(" ");
|
7929
7929
|
|
7930
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
7930
|
+
// ../../node_modules/.pnpm/lucide-react@0.403.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js
|
7931
7931
|
var import_react40 = require("react");
|
7932
7932
|
|
7933
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
7933
|
+
// ../../node_modules/.pnpm/lucide-react@0.403.0_react@18.3.1/node_modules/lucide-react/dist/esm/defaultAttributes.js
|
7934
7934
|
var defaultAttributes = {
|
7935
7935
|
xmlns: "http://www.w3.org/2000/svg",
|
7936
7936
|
width: 24,
|
@@ -7943,7 +7943,7 @@ var defaultAttributes = {
|
|
7943
7943
|
strokeLinejoin: "round"
|
7944
7944
|
};
|
7945
7945
|
|
7946
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
7946
|
+
// ../../node_modules/.pnpm/lucide-react@0.403.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js
|
7947
7947
|
var Icon = (0, import_react40.forwardRef)(
|
7948
7948
|
({
|
7949
7949
|
color = "currentColor",
|
@@ -7975,7 +7975,7 @@ var Icon = (0, import_react40.forwardRef)(
|
|
7975
7975
|
}
|
7976
7976
|
);
|
7977
7977
|
|
7978
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
7978
|
+
// ../../node_modules/.pnpm/lucide-react@0.403.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
|
7979
7979
|
var createLucideIcon = (iconName, iconNode) => {
|
7980
7980
|
const Component = (0, import_react41.forwardRef)(
|
7981
7981
|
({ className, ...props }, ref) => (0, import_react41.createElement)(Icon, {
|
@@ -7989,7 +7989,7 @@ var createLucideIcon = (iconName, iconNode) => {
|
|
7989
7989
|
return Component;
|
7990
7990
|
};
|
7991
7991
|
|
7992
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
7992
|
+
// ../../node_modules/.pnpm/lucide-react@0.403.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/dot.js
|
7993
7993
|
var Dot = createLucideIcon("Dot", [
|
7994
7994
|
["circle", { cx: "12.1", cy: "12.1", r: "1", key: "18d7e5" }]
|
7995
7995
|
]);
|
@@ -10943,7 +10943,7 @@ var import_libphonenumber_js = require("libphonenumber-js");
|
|
10943
10943
|
var z = __toESM(require("zod"));
|
10944
10944
|
var LoginForm = ({
|
10945
10945
|
loginType = "email",
|
10946
|
-
|
10946
|
+
minPasswordLength = 8,
|
10947
10947
|
texts,
|
10948
10948
|
...props
|
10949
10949
|
}) => {
|
@@ -10964,7 +10964,7 @@ var LoginForm = ({
|
|
10964
10964
|
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" }),
|
10965
10965
|
password: z.string({
|
10966
10966
|
required_error: ((_d = texts == null ? void 0 : texts.password) == null ? void 0 : _d.required) || "Password Required"
|
10967
|
-
}).min(1, { message: ((_e = texts == null ? void 0 : texts.password) == null ? void 0 : _e.required) || "Password Required" }).min(
|
10967
|
+
}).min(1, { message: ((_e = texts == null ? void 0 : texts.password) == null ? void 0 : _e.required) || "Password Required" }).min(minPasswordLength, {
|
10968
10968
|
message: ((_f = texts == null ? void 0 : texts.password) == null ? void 0 : _f.tooShort) || "Password too short"
|
10969
10969
|
})
|
10970
10970
|
});
|
@@ -10981,7 +10981,7 @@ var LoginForm = ({
|
|
10981
10981
|
),
|
10982
10982
|
password: z.string({
|
10983
10983
|
required_error: ((_j = texts == null ? void 0 : texts.password) == null ? void 0 : _j.required) || "Password Required"
|
10984
|
-
}).min(1, { message: ((_k = texts == null ? void 0 : texts.password) == null ? void 0 : _k.required) || "Password Required" }).min(
|
10984
|
+
}).min(1, { message: ((_k = texts == null ? void 0 : texts.password) == null ? void 0 : _k.required) || "Password Required" }).min(minPasswordLength, {
|
10985
10985
|
message: ((_l = texts == null ? void 0 : texts.password) == null ? void 0 : _l.tooShort) || "Password too short"
|
10986
10986
|
})
|
10987
10987
|
});
|
@@ -11274,11 +11274,12 @@ var z2 = __toESM(require("zod"));
|
|
11274
11274
|
var RegisterForm = ({
|
11275
11275
|
texts,
|
11276
11276
|
registerFields = ["email"],
|
11277
|
+
minPasswordLength = 8,
|
11277
11278
|
showTermsOption = false,
|
11278
11279
|
showNewsletterOption = false,
|
11279
11280
|
...props
|
11280
11281
|
}) => {
|
11281
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
11282
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i;
|
11282
11283
|
const [passwordVisible, setPasswordVisible] = (0, import_react69.useState)(false);
|
11283
11284
|
const thirdPartyAuthTexts = {
|
11284
11285
|
continueWithGoogle: texts == null ? void 0 : texts.continueWithGoogle,
|
@@ -11323,15 +11324,17 @@ var RegisterForm = ({
|
|
11323
11324
|
...fieldSchemas,
|
11324
11325
|
password: z2.string({
|
11325
11326
|
required_error: ((_a = texts == null ? void 0 : texts.password) == null ? void 0 : _a.required) || "Password is required"
|
11326
|
-
}).min(
|
11327
|
+
}).min(minPasswordLength, {
|
11327
11328
|
message: ((_b = texts == null ? void 0 : texts.password) == null ? void 0 : _b.tooShort) || "Password is too short"
|
11328
11329
|
}).refine((value) => value !== "", {
|
11329
11330
|
message: ((_c = texts == null ? void 0 : texts.password) == null ? void 0 : _c.required) || "Password is required"
|
11330
11331
|
}),
|
11331
11332
|
confirm_password: z2.string({
|
11332
11333
|
required_error: ((_d = texts == null ? void 0 : texts.confirm) == null ? void 0 : _d.required) || "Confirm password required"
|
11334
|
+
}).min(minPasswordLength, {
|
11335
|
+
message: ((_e = texts == null ? void 0 : texts.password) == null ? void 0 : _e.tooShort) || "Password is too short"
|
11333
11336
|
}).refine((value) => value !== "", {
|
11334
|
-
message: ((
|
11337
|
+
message: ((_f = texts == null ? void 0 : texts.password) == null ? void 0 : _f.required) || "Confirm password is required"
|
11335
11338
|
}),
|
11336
11339
|
refCode: z2.string().optional(),
|
11337
11340
|
reference: z2.string().optional(),
|
@@ -11340,7 +11343,7 @@ var RegisterForm = ({
|
|
11340
11343
|
}),
|
11341
11344
|
newsletter_accepted: z2.boolean().optional()
|
11342
11345
|
}).refine((data) => data.password === data.confirm_password, {
|
11343
|
-
message: ((
|
11346
|
+
message: ((_g = texts == null ? void 0 : texts.confirm) == null ? void 0 : _g.dontMatch) || "Passwords don't match",
|
11344
11347
|
path: ["confirm_password"]
|
11345
11348
|
});
|
11346
11349
|
const { handleSubmit, control, formState } = (0, import_react_hook_form2.useForm)({
|
@@ -11351,7 +11354,7 @@ var RegisterForm = ({
|
|
11351
11354
|
{
|
11352
11355
|
className: cn(
|
11353
11356
|
"hawa-flex hawa-flex-col hawa-gap-4",
|
11354
|
-
(
|
11357
|
+
(_h = props.classNames) == null ? void 0 : _h.root
|
11355
11358
|
)
|
11356
11359
|
},
|
11357
11360
|
/* @__PURE__ */ import_react69.default.createElement(
|
@@ -11359,7 +11362,7 @@ var RegisterForm = ({
|
|
11359
11362
|
{
|
11360
11363
|
dir: props.direction,
|
11361
11364
|
className: cn(
|
11362
|
-
(
|
11365
|
+
(_i = props.classNames) == null ? void 0 : _i.card,
|
11363
11366
|
props.cardless && "hawa-border-none hawa-bg-transparent !hawa-shadow-none !hawa-drop-shadow-none"
|
11364
11367
|
)
|
11365
11368
|
},
|
@@ -13790,7 +13793,7 @@ var Usage = (props) => {
|
|
13790
13793
|
|
13791
13794
|
lucide-react/dist/esm/shared/src/utils.js:
|
13792
13795
|
(**
|
13793
|
-
* @license lucide-react v0.
|
13796
|
+
* @license lucide-react v0.403.0 - ISC
|
13794
13797
|
*
|
13795
13798
|
* This source code is licensed under the ISC license.
|
13796
13799
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -13798,7 +13801,7 @@ lucide-react/dist/esm/shared/src/utils.js:
|
|
13798
13801
|
|
13799
13802
|
lucide-react/dist/esm/defaultAttributes.js:
|
13800
13803
|
(**
|
13801
|
-
* @license lucide-react v0.
|
13804
|
+
* @license lucide-react v0.403.0 - ISC
|
13802
13805
|
*
|
13803
13806
|
* This source code is licensed under the ISC license.
|
13804
13807
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -13806,7 +13809,7 @@ lucide-react/dist/esm/defaultAttributes.js:
|
|
13806
13809
|
|
13807
13810
|
lucide-react/dist/esm/Icon.js:
|
13808
13811
|
(**
|
13809
|
-
* @license lucide-react v0.
|
13812
|
+
* @license lucide-react v0.403.0 - ISC
|
13810
13813
|
*
|
13811
13814
|
* This source code is licensed under the ISC license.
|
13812
13815
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -13814,7 +13817,7 @@ lucide-react/dist/esm/Icon.js:
|
|
13814
13817
|
|
13815
13818
|
lucide-react/dist/esm/createLucideIcon.js:
|
13816
13819
|
(**
|
13817
|
-
* @license lucide-react v0.
|
13820
|
+
* @license lucide-react v0.403.0 - ISC
|
13818
13821
|
*
|
13819
13822
|
* This source code is licensed under the ISC license.
|
13820
13823
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -13822,7 +13825,7 @@ lucide-react/dist/esm/createLucideIcon.js:
|
|
13822
13825
|
|
13823
13826
|
lucide-react/dist/esm/icons/dot.js:
|
13824
13827
|
(**
|
13825
|
-
* @license lucide-react v0.
|
13828
|
+
* @license lucide-react v0.403.0 - ISC
|
13826
13829
|
*
|
13827
13830
|
* This source code is licensed under the ISC license.
|
13828
13831
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -13830,7 +13833,7 @@ lucide-react/dist/esm/icons/dot.js:
|
|
13830
13833
|
|
13831
13834
|
lucide-react/dist/esm/lucide-react.js:
|
13832
13835
|
(**
|
13833
|
-
* @license lucide-react v0.
|
13836
|
+
* @license lucide-react v0.403.0 - ISC
|
13834
13837
|
*
|
13835
13838
|
* This source code is licensed under the ISC license.
|
13836
13839
|
* See the LICENSE file in the root directory of this source tree.
|