@sikka/hawa 0.27.22-next → 0.27.24-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/avatar/index.d.mts +1 -0
- package/dist/avatar/index.d.ts +1 -0
- package/dist/avatar/index.js +2 -1
- package/dist/avatar/index.js.map +1 -1
- package/dist/avatar/index.mjs +2 -1
- package/dist/avatar/index.mjs.map +1 -1
- package/dist/blocks/auth/index.d.mts +29 -3
- package/dist/blocks/auth/index.d.ts +29 -3
- package/dist/blocks/auth/index.js +386 -383
- package/dist/blocks/auth/index.mjs +315 -309
- package/dist/blocks/feedback/index.d.mts +1 -1
- package/dist/blocks/feedback/index.d.ts +1 -1
- package/dist/blocks/feedback/index.mjs +5 -5
- package/dist/blocks/index.d.mts +28 -2
- package/dist/blocks/index.d.ts +28 -2
- package/dist/blocks/index.js +401 -398
- package/dist/blocks/index.mjs +19 -15
- package/dist/blocks/misc/index.d.mts +1 -1
- package/dist/blocks/misc/index.d.ts +1 -1
- package/dist/blocks/misc/index.mjs +5 -5
- package/dist/blocks/pricing/index.d.mts +1 -1
- package/dist/blocks/pricing/index.d.ts +1 -1
- package/dist/blocks/pricing/index.mjs +4 -4
- package/dist/{chunk-V42WPIDL.mjs → chunk-3ZURZ4TW.mjs} +2 -2
- package/dist/{chunk-W5I4VB5Z.mjs → chunk-4F7LNY2V.mjs} +1 -1
- package/dist/{chunk-MMOEFJSP.mjs → chunk-6HOSGMTV.mjs} +1 -1
- package/dist/{chunk-M6XGGAPQ.mjs → chunk-KZCOE6V3.mjs} +1 -1
- package/dist/{chunk-EFWL3FFK.mjs → chunk-N5J4XNGU.mjs} +1 -1
- package/dist/{chunk-DUL6C2S2.mjs → chunk-NK7TELIV.mjs} +1 -1
- package/dist/{chunk-ZOWDRDAM.mjs → chunk-R2NAPFAZ.mjs} +221 -221
- package/dist/{chunk-7QEBDFLT.mjs → chunk-SYZ5JMYJ.mjs} +2 -4
- package/dist/{chunk-7CYXEZDV.mjs → chunk-TIQERSM3.mjs} +1 -1
- package/dist/{chunk-DQHPOUHR.mjs → chunk-ZV3KYZ5G.mjs} +1 -1
- package/dist/elements/index.d.mts +5 -3
- package/dist/elements/index.d.ts +5 -3
- package/dist/elements/index.js +3 -2
- package/dist/elements/index.mjs +5 -4
- package/dist/index.css +3 -0
- package/dist/index.d.mts +54 -26
- package/dist/index.d.ts +54 -26
- package/dist/index.js +21 -15
- package/dist/index.mjs +20 -15
- package/dist/layout/index.mjs +2 -2
- package/dist/phoneInput/index.d.mts +1 -0
- package/dist/phoneInput/index.d.ts +1 -0
- package/dist/phoneInput/index.js +8 -8
- package/dist/phoneInput/index.js.map +1 -1
- package/dist/phoneInput/index.mjs +8 -8
- package/dist/phoneInput/index.mjs.map +1 -1
- package/dist/{textTypes-u4OSE-rn.d.mts → textTypes-ah2JJr8v.d.mts} +1 -1
- package/dist/{textTypes-u4OSE-rn.d.ts → textTypes-ah2JJr8v.d.ts} +1 -1
- package/package.json +6 -6
package/dist/blocks/index.mjs
CHANGED
@@ -26,7 +26,7 @@ import {
|
|
26
26
|
UncheckMark,
|
27
27
|
VeryBadEmoji,
|
28
28
|
VeryGoodEmoji
|
29
|
-
} from "../chunk-
|
29
|
+
} from "../chunk-3ZURZ4TW.mjs";
|
30
30
|
import {
|
31
31
|
Button,
|
32
32
|
Card,
|
@@ -42,16 +42,9 @@ import {
|
|
42
42
|
Skeleton,
|
43
43
|
Tooltip,
|
44
44
|
cn
|
45
|
-
} from "../chunk-
|
45
|
+
} from "../chunk-R2NAPFAZ.mjs";
|
46
46
|
import "../chunk-4OOSUQZG.mjs";
|
47
47
|
|
48
|
-
// blocks/auth/LoginForm.tsx
|
49
|
-
import React2, { useState } from "react";
|
50
|
-
import { Controller, useForm } from "react-hook-form";
|
51
|
-
import { zodResolver } from "@hookform/resolvers/zod";
|
52
|
-
import { parsePhoneNumber } from "libphonenumber-js";
|
53
|
-
import * as z from "zod";
|
54
|
-
|
55
48
|
// blocks/auth/AuthButtons.tsx
|
56
49
|
import React from "react";
|
57
50
|
var AuthButtons = (props) => {
|
@@ -130,6 +123,11 @@ var AuthButtons = (props) => {
|
|
130
123
|
};
|
131
124
|
|
132
125
|
// blocks/auth/LoginForm.tsx
|
126
|
+
import React2, { useState } from "react";
|
127
|
+
import { Controller, useForm } from "react-hook-form";
|
128
|
+
import { zodResolver } from "@hookform/resolvers/zod";
|
129
|
+
import { parsePhoneNumber } from "libphonenumber-js";
|
130
|
+
import * as z from "zod";
|
133
131
|
var LoginForm = ({
|
134
132
|
loginType = "email",
|
135
133
|
texts,
|
@@ -958,10 +956,15 @@ import React7 from "react";
|
|
958
956
|
import { Controller as Controller4, useForm as useForm4 } from "react-hook-form";
|
959
957
|
import { zodResolver as zodResolver4 } from "@hookform/resolvers/zod";
|
960
958
|
import * as z4 from "zod";
|
961
|
-
var ResetPasswordForm = (
|
959
|
+
var ResetPasswordForm = ({
|
960
|
+
allowRegister = true,
|
961
|
+
...props
|
962
|
+
}) => {
|
962
963
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
|
963
964
|
const formSchema = z4.object({
|
964
|
-
email: z4.string({
|
965
|
+
email: z4.string({
|
966
|
+
required_error: ((_b = (_a = props.texts) == null ? void 0 : _a.email) == null ? void 0 : _b.required) || "Email is required"
|
967
|
+
}).email({ message: ((_d = (_c = props.texts) == null ? void 0 : _c.email) == null ? void 0 : _d.invalid) || "Invalid email" }).min(1, { message: ((_f = (_e = props.texts) == null ? void 0 : _e.email) == null ? void 0 : _f.required) || "Email is required" })
|
965
968
|
});
|
966
969
|
const { handleSubmit, control, formState } = useForm4({
|
967
970
|
resolver: zodResolver4(formSchema)
|
@@ -978,7 +981,7 @@ var ResetPasswordForm = (props) => {
|
|
978
981
|
}
|
979
982
|
})
|
980
983
|
},
|
981
|
-
/* @__PURE__ */ React7.createElement(CardContent, { headless: props.headless }, /* @__PURE__ */ React7.createElement(
|
984
|
+
/* @__PURE__ */ React7.createElement(CardContent, { headless: props.headless, className: "hawa-pb-4" }, /* @__PURE__ */ React7.createElement(
|
982
985
|
Controller4,
|
983
986
|
{
|
984
987
|
control,
|
@@ -989,7 +992,7 @@ var ResetPasswordForm = (props) => {
|
|
989
992
|
Input,
|
990
993
|
{
|
991
994
|
width: "full",
|
992
|
-
label: (_b2 = (_a2 = props.texts) == null ? void 0 : _a2.email) == null ? void 0 : _b2.label,
|
995
|
+
label: ((_b2 = (_a2 = props.texts) == null ? void 0 : _a2.email) == null ? void 0 : _b2.label) || "Email",
|
993
996
|
helperText: (_c2 = formState.errors.email) == null ? void 0 : _c2.message,
|
994
997
|
placeholder: (_e2 = (_d2 = props.texts) == null ? void 0 : _d2.email) == null ? void 0 : _e2.placeholder,
|
995
998
|
...field
|
@@ -998,7 +1001,7 @@ var ResetPasswordForm = (props) => {
|
|
998
1001
|
}
|
999
1002
|
}
|
1000
1003
|
)),
|
1001
|
-
/* @__PURE__ */ React7.createElement(CardFooter, { className: "hawa-flex hawa-flex-col" }, /* @__PURE__ */ React7.createElement(Button, { type: "submit", className: "hawa-w-full" }, (_i = props.texts) == null ? void 0 : _i.resetPassword),
|
1004
|
+
/* @__PURE__ */ React7.createElement(CardFooter, { className: "hawa-flex hawa-flex-col" }, /* @__PURE__ */ React7.createElement(Button, { type: "submit", className: "hawa-w-full " }, ((_i = props.texts) == null ? void 0 : _i.resetPassword) || "Reset Password"), allowRegister && /* @__PURE__ */ React7.createElement("div", { className: "hawa-mt-4 hawa-pb-0 hawa-text-center hawa-text-sm dark:hawa-text-gray-300" }, (_k = (_j = props.texts) == null ? void 0 : _j.dontHaveAccount) != null ? _k : "Don't have an account? ", /* @__PURE__ */ React7.createElement(
|
1002
1005
|
"span",
|
1003
1006
|
{
|
1004
1007
|
className: "clickable-link",
|
@@ -1006,7 +1009,7 @@ var ResetPasswordForm = (props) => {
|
|
1006
1009
|
},
|
1007
1010
|
(_m = (_l = props.texts) == null ? void 0 : _l.registerText) != null ? _m : "Register"
|
1008
1011
|
)))
|
1009
|
-
)) : /* @__PURE__ */ React7.createElement(CardContent, { headless: true }, /* @__PURE__ */ React7.createElement("div", { className: "hawa-text-center" }, (_n = props.texts) == null ? void 0 : _n.emailSentText)));
|
1012
|
+
)) : /* @__PURE__ */ React7.createElement(CardContent, { headless: true }, /* @__PURE__ */ React7.createElement("div", { className: "hawa-text-center" }, ((_n = props.texts) == null ? void 0 : _n.emailSentText) || "An email has been sent with a link to set a new password")));
|
1010
1013
|
};
|
1011
1014
|
|
1012
1015
|
// blocks/auth/CodeConfirmation.tsx
|
@@ -2667,6 +2670,7 @@ export {
|
|
2667
2670
|
AdCard,
|
2668
2671
|
Announcement,
|
2669
2672
|
AppLanding,
|
2673
|
+
AuthButtons,
|
2670
2674
|
CheckEmail,
|
2671
2675
|
CodeConfirmation,
|
2672
2676
|
ComparingPlans,
|
@@ -1,17 +1,17 @@
|
|
1
1
|
"use client";
|
2
2
|
import {
|
3
3
|
Input
|
4
|
-
} from "../../chunk-
|
4
|
+
} from "../../chunk-KZCOE6V3.mjs";
|
5
5
|
import {
|
6
6
|
Chip,
|
7
7
|
ScrollArea
|
8
|
-
} from "../../chunk-
|
8
|
+
} from "../../chunk-6HOSGMTV.mjs";
|
9
9
|
import {
|
10
10
|
Textarea
|
11
|
-
} from "../../chunk-
|
11
|
+
} from "../../chunk-4F7LNY2V.mjs";
|
12
12
|
import {
|
13
13
|
Select
|
14
|
-
} from "../../chunk-
|
14
|
+
} from "../../chunk-ZV3KYZ5G.mjs";
|
15
15
|
import {
|
16
16
|
Button,
|
17
17
|
Card,
|
@@ -21,7 +21,7 @@ import {
|
|
21
21
|
CardHeader,
|
22
22
|
CardTitle,
|
23
23
|
cn
|
24
|
-
} from "../../chunk-
|
24
|
+
} from "../../chunk-SYZ5JMYJ.mjs";
|
25
25
|
|
26
26
|
// blocks/misc/LegalTexts.tsx
|
27
27
|
import React2 from "react";
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { FC, InputHTMLAttributes } from 'react';
|
2
|
-
import { P as PositionType, D as DirectionType, d as PricingPlanTexts, R as RadioOptionType } from '../../textTypes-
|
2
|
+
import { P as PositionType, D as DirectionType, d as PricingPlanTexts, R as RadioOptionType } from '../../textTypes-ah2JJr8v.mjs';
|
3
3
|
|
4
4
|
type PlanFeature = {
|
5
5
|
soon?: boolean;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { FC, InputHTMLAttributes } from 'react';
|
2
|
-
import { P as PositionType, D as DirectionType, d as PricingPlanTexts, R as RadioOptionType } from '../../textTypes-
|
2
|
+
import { P as PositionType, D as DirectionType, d as PricingPlanTexts, R as RadioOptionType } from '../../textTypes-ah2JJr8v.js';
|
3
3
|
|
4
4
|
type PlanFeature = {
|
5
5
|
soon?: boolean;
|
@@ -2,22 +2,22 @@
|
|
2
2
|
import {
|
3
3
|
Chip,
|
4
4
|
ScrollArea
|
5
|
-
} from "../../chunk-
|
5
|
+
} from "../../chunk-6HOSGMTV.mjs";
|
6
6
|
import "../../chunk-47APBDKK.mjs";
|
7
7
|
import {
|
8
8
|
Radio
|
9
|
-
} from "../../chunk-
|
9
|
+
} from "../../chunk-NK7TELIV.mjs";
|
10
10
|
import {
|
11
11
|
CheckMark,
|
12
12
|
UncheckMark
|
13
|
-
} from "../../chunk-
|
13
|
+
} from "../../chunk-N5J4XNGU.mjs";
|
14
14
|
import {
|
15
15
|
Button,
|
16
16
|
Card,
|
17
17
|
Skeleton,
|
18
18
|
Tooltip,
|
19
19
|
cn
|
20
|
-
} from "../../chunk-
|
20
|
+
} from "../../chunk-SYZ5JMYJ.mjs";
|
21
21
|
|
22
22
|
// blocks/pricing/PricingPlans.tsx
|
23
23
|
import React8 from "react";
|
@@ -5,7 +5,7 @@ import {
|
|
5
5
|
Skeleton,
|
6
6
|
Tooltip,
|
7
7
|
cn
|
8
|
-
} from "./chunk-
|
8
|
+
} from "./chunk-R2NAPFAZ.mjs";
|
9
9
|
|
10
10
|
// elements/alert/Alert.tsx
|
11
11
|
import React, { useRef, useState, useEffect } from "react";
|
@@ -2212,7 +2212,7 @@ var PhoneInput = ({ labelProps, ...props }) => {
|
|
2212
2212
|
onChange: handleInputChange,
|
2213
2213
|
value: phoneNumber,
|
2214
2214
|
type: "tel",
|
2215
|
-
placeholder:
|
2215
|
+
placeholder: props.placeholder
|
2216
2216
|
}
|
2217
2217
|
))), /* @__PURE__ */ React5.createElement(
|
2218
2218
|
"p",
|