@sikka/hawa 0.31.1-next → 0.31.3-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/alert/index.js +0 -1
- package/dist/alert/index.js.map +1 -1
- package/dist/alert/index.mjs +0 -1
- package/dist/alert/index.mjs.map +1 -1
- package/dist/appLayout/index.js +0 -1
- package/dist/appLayout/index.js.map +1 -1
- package/dist/appLayout/index.mjs +0 -1
- package/dist/appLayout/index.mjs.map +1 -1
- package/dist/backToTop/index.js +0 -1
- package/dist/backToTop/index.js.map +1 -1
- package/dist/backToTop/index.mjs +0 -1
- package/dist/backToTop/index.mjs.map +1 -1
- package/dist/blocks/auth/index.d.mts +13 -2
- package/dist/blocks/auth/index.d.ts +13 -2
- package/dist/blocks/auth/index.js +63 -57
- package/dist/blocks/auth/index.mjs +71 -66
- package/dist/blocks/feedback/index.js +0 -1
- package/dist/blocks/feedback/index.mjs +5 -5
- package/dist/blocks/index.d.mts +13 -2
- package/dist/blocks/index.d.ts +13 -2
- package/dist/blocks/index.js +64 -58
- package/dist/blocks/index.mjs +87 -82
- package/dist/blocks/misc/index.js +1 -2
- package/dist/blocks/misc/index.mjs +6 -6
- package/dist/blocks/pricing/index.js +0 -1
- package/dist/blocks/pricing/index.mjs +4 -4
- package/dist/button/index.js +3 -2
- package/dist/button/index.js.map +1 -1
- package/dist/button/index.mjs +3 -2
- package/dist/button/index.mjs.map +1 -1
- package/dist/{chunk-XTGWVGTN.mjs → chunk-CRKKOXUP.mjs} +2 -2
- package/dist/{chunk-KNG6AWIO.mjs → chunk-DNUJA5QC.mjs} +1 -1
- package/dist/{chunk-XLMVXGNC.mjs → chunk-HR37LWAO.mjs} +1 -1
- package/dist/{chunk-ER7YWU7Z.mjs → chunk-IKHGAGYN.mjs} +1 -1
- package/dist/{chunk-BXGDHNAY.mjs → chunk-MS7B36BZ.mjs} +1 -1
- package/dist/{chunk-ZGNBKYX7.mjs → chunk-NEJHLLDI.mjs} +0 -1
- package/dist/{chunk-AEFNDLFD.mjs → chunk-VYAFGNRW.mjs} +1 -1
- package/dist/{chunk-YR2YA3DQ.mjs → chunk-X5YH2OOE.mjs} +1 -1
- package/dist/{chunk-DGOT2FVH.mjs → chunk-XQ3GJWXB.mjs} +0 -1
- package/dist/{chunk-TKSAYWDH.mjs → chunk-YAGZ6WVL.mjs} +1 -1
- package/dist/codeBlock/index.js +0 -1
- package/dist/codeBlock/index.js.map +1 -1
- package/dist/codeBlock/index.mjs +0 -1
- package/dist/codeBlock/index.mjs.map +1 -1
- package/dist/dataTable/index.js +0 -1
- package/dist/dataTable/index.js.map +1 -1
- package/dist/dataTable/index.mjs +0 -1
- package/dist/dataTable/index.mjs.map +1 -1
- package/dist/docsLayout/index.js +3 -2
- package/dist/docsLayout/index.js.map +1 -1
- package/dist/docsLayout/index.mjs +3 -2
- package/dist/docsLayout/index.mjs.map +1 -1
- package/dist/elements/index.js +1 -2
- package/dist/elements/index.mjs +3 -3
- package/dist/fileDropzone/index.js +0 -1
- package/dist/fileDropzone/index.js.map +1 -1
- package/dist/fileDropzone/index.mjs +0 -1
- package/dist/fileDropzone/index.mjs.map +1 -1
- package/dist/floatBox/index.js +1 -1
- package/dist/floatBox/index.js.map +1 -1
- package/dist/floatBox/index.mjs +1 -1
- package/dist/floatBox/index.mjs.map +1 -1
- package/dist/index.d.mts +13 -2
- package/dist/index.d.ts +13 -2
- package/dist/index.js +61 -57
- package/dist/index.mjs +86 -82
- package/dist/layout/index.js +0 -1
- package/dist/layout/index.mjs +2 -2
- package/dist/sortButton/index.js +0 -1
- package/dist/sortButton/index.js.map +1 -1
- package/dist/sortButton/index.mjs +0 -1
- package/dist/sortButton/index.mjs.map +1 -1
- package/dist/splitButton/index.js +0 -1
- package/dist/splitButton/index.js.map +1 -1
- package/dist/splitButton/index.mjs +0 -1
- package/dist/splitButton/index.mjs.map +1 -1
- package/dist/tabs/index.js +1 -1
- package/dist/tabs/index.js.map +1 -1
- package/dist/tabs/index.mjs +1 -1
- package/dist/tabs/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
@@ -1683,10 +1683,15 @@ type NewPasswordTypes = {
|
|
1683
1683
|
handleRouteToRegister: () => void;
|
1684
1684
|
isLoading: boolean;
|
1685
1685
|
direction?: DirectionType;
|
1686
|
-
headless?: boolean;
|
1687
1686
|
allowRegister?: boolean;
|
1688
|
-
|
1687
|
+
showSuccess: boolean;
|
1689
1688
|
texts: NewPasswordTextsTypes;
|
1689
|
+
/** If true, an error alert is displayed at the top of the form. */
|
1690
|
+
showError?: boolean;
|
1691
|
+
/** Title text of error alert. */
|
1692
|
+
errorTitle?: string;
|
1693
|
+
/** Description text of error alert. */
|
1694
|
+
errorText?: string;
|
1690
1695
|
};
|
1691
1696
|
declare const NewPasswordForm: FC<NewPasswordTypes>;
|
1692
1697
|
|
@@ -1699,6 +1704,12 @@ type ResetPasswordType = {
|
|
1699
1704
|
allowRegister?: boolean;
|
1700
1705
|
direction?: DirectionType;
|
1701
1706
|
texts?: ResetPasswordTextsTypes;
|
1707
|
+
/** If true, an error alert is displayed at the top of the form. */
|
1708
|
+
showError?: boolean;
|
1709
|
+
/** Title text of error alert. */
|
1710
|
+
errorTitle?: string;
|
1711
|
+
/** Description text of error alert. */
|
1712
|
+
errorText?: string;
|
1702
1713
|
};
|
1703
1714
|
declare const ResetPasswordForm: FC<ResetPasswordType>;
|
1704
1715
|
|
package/dist/index.js
CHANGED
@@ -2274,7 +2274,6 @@ var Button = React15.forwardRef(
|
|
2274
2274
|
className: cn(
|
2275
2275
|
buttonVariants({ variant, size, className }),
|
2276
2276
|
centered && "hawa-justify-center"
|
2277
|
-
// "hawa-bg-red-500"
|
2278
2277
|
),
|
2279
2278
|
ref,
|
2280
2279
|
...props
|
@@ -4646,7 +4645,7 @@ var FloatBox = ({
|
|
4646
4645
|
"data-side": side,
|
4647
4646
|
"data-floatbox-state": open ? "open" : "closed"
|
4648
4647
|
},
|
4649
|
-
withArrow && /* @__PURE__ */ React39.createElement("div", { className: cn(
|
4648
|
+
withArrow && /* @__PURE__ */ React39.createElement("div", { className: cn(arrowDirection[side]) }),
|
4650
4649
|
/* @__PURE__ */ React39.createElement("span", null, props.children)
|
4651
4650
|
);
|
4652
4651
|
};
|
@@ -10865,7 +10864,7 @@ var NewPasswordForm = ({
|
|
10865
10864
|
isLoading,
|
10866
10865
|
...props
|
10867
10866
|
}) => {
|
10868
|
-
var _a, _b, _c, _d, _e, _f, _g, _h
|
10867
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
10869
10868
|
const formSchema = z3.object({
|
10870
10869
|
password: z3.string({ required_error: (_a = texts == null ? void 0 : texts.password) == null ? void 0 : _a.required }).min(1, { message: (_b = texts == null ? void 0 : texts.password) == null ? void 0 : _b.required }).min(8, { message: (_c = texts == null ? void 0 : texts.password) == null ? void 0 : _c.tooShort }),
|
10871
10870
|
confirm_password: z3.string({ required_error: (_d = texts == null ? void 0 : texts.confirm) == null ? void 0 : _d.required }).refine((value) => value !== "", {
|
@@ -10878,8 +10877,7 @@ var NewPasswordForm = ({
|
|
10878
10877
|
const { handleSubmit, control, formState } = (0, import_react_hook_form3.useForm)({
|
10879
10878
|
resolver: (0, import_zod3.zodResolver)(formSchema)
|
10880
10879
|
});
|
10881
|
-
|
10882
|
-
return /* @__PURE__ */ import_react64.default.createElement(Card, { dir: props.direction }, matchError && /* @__PURE__ */ import_react64.default.createElement(Alert, { text: (_g = texts == null ? void 0 : texts.confirm) == null ? void 0 : _g.dontMatch, severity: "error" }), props.passwordChanged ? /* @__PURE__ */ import_react64.default.createElement(CardContent, { headless: true }, /* @__PURE__ */ import_react64.default.createElement("div", { className: "hawa-text-center" }, texts == null ? void 0 : texts.passwordChanged)) : /* @__PURE__ */ import_react64.default.createElement(
|
10880
|
+
return /* @__PURE__ */ import_react64.default.createElement(Card, { dir: props.direction }, props.showSuccess ? /* @__PURE__ */ import_react64.default.createElement(CardContent, { headless: true }, /* @__PURE__ */ import_react64.default.createElement("div", { className: "hawa-text-center" }, texts == null ? void 0 : texts.passwordChanged)) : /* @__PURE__ */ import_react64.default.createElement(
|
10883
10881
|
"form",
|
10884
10882
|
{
|
10885
10883
|
noValidate: true,
|
@@ -10893,65 +10891,63 @@ var NewPasswordForm = ({
|
|
10893
10891
|
}
|
10894
10892
|
})
|
10895
10893
|
},
|
10896
|
-
|
10897
|
-
|
10898
|
-
CardContent,
|
10894
|
+
/* @__PURE__ */ import_react64.default.createElement(CardContent, { headless: true, className: "hawa-flex hawa-flex-col" }, props.showError && /* @__PURE__ */ import_react64.default.createElement(
|
10895
|
+
Alert,
|
10899
10896
|
{
|
10900
|
-
|
10901
|
-
|
10902
|
-
|
10903
|
-
|
10904
|
-
|
10905
|
-
|
10906
|
-
|
10907
|
-
|
10908
|
-
|
10909
|
-
|
10910
|
-
|
10911
|
-
|
10912
|
-
|
10913
|
-
|
10914
|
-
|
10915
|
-
|
10916
|
-
|
10917
|
-
|
10918
|
-
|
10919
|
-
|
10920
|
-
|
10921
|
-
|
10922
|
-
|
10897
|
+
direction: props.direction,
|
10898
|
+
title: props.errorTitle,
|
10899
|
+
text: props.errorText,
|
10900
|
+
severity: "error"
|
10901
|
+
}
|
10902
|
+
), /* @__PURE__ */ import_react64.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-4 hawa-mb-4" }, /* @__PURE__ */ import_react64.default.createElement(
|
10903
|
+
import_react_hook_form3.Controller,
|
10904
|
+
{
|
10905
|
+
control,
|
10906
|
+
name: "password",
|
10907
|
+
render: ({ field }) => {
|
10908
|
+
var _a2, _b2, _c2;
|
10909
|
+
return /* @__PURE__ */ import_react64.default.createElement(
|
10910
|
+
Input,
|
10911
|
+
{
|
10912
|
+
width: "full",
|
10913
|
+
type: "password",
|
10914
|
+
autoComplete: "new-password",
|
10915
|
+
label: (_a2 = texts == null ? void 0 : texts.password) == null ? void 0 : _a2.label,
|
10916
|
+
placeholder: (_b2 = texts == null ? void 0 : texts.password) == null ? void 0 : _b2.placeholder,
|
10917
|
+
helperText: (_c2 = formState.errors.password) == null ? void 0 : _c2.message,
|
10918
|
+
...field
|
10919
|
+
}
|
10920
|
+
);
|
10923
10921
|
}
|
10924
|
-
|
10925
|
-
|
10926
|
-
|
10927
|
-
|
10928
|
-
|
10929
|
-
|
10930
|
-
|
10931
|
-
|
10932
|
-
|
10933
|
-
|
10934
|
-
|
10935
|
-
|
10936
|
-
|
10937
|
-
|
10938
|
-
|
10939
|
-
|
10940
|
-
|
10941
|
-
|
10942
|
-
|
10943
|
-
|
10944
|
-
}
|
10922
|
+
}
|
10923
|
+
), /* @__PURE__ */ import_react64.default.createElement(
|
10924
|
+
import_react_hook_form3.Controller,
|
10925
|
+
{
|
10926
|
+
control,
|
10927
|
+
name: "confirm_password",
|
10928
|
+
render: ({ field }) => {
|
10929
|
+
var _a2, _b2, _c2;
|
10930
|
+
return /* @__PURE__ */ import_react64.default.createElement(
|
10931
|
+
Input,
|
10932
|
+
{
|
10933
|
+
width: "full",
|
10934
|
+
type: "password",
|
10935
|
+
autoComplete: "new-password",
|
10936
|
+
label: (_a2 = texts == null ? void 0 : texts.confirm) == null ? void 0 : _a2.label,
|
10937
|
+
placeholder: (_b2 = texts == null ? void 0 : texts.confirm) == null ? void 0 : _b2.placeholder,
|
10938
|
+
helperText: (_c2 = formState.errors.confirm_password) == null ? void 0 : _c2.message,
|
10939
|
+
...field
|
10940
|
+
}
|
10941
|
+
);
|
10945
10942
|
}
|
10946
|
-
|
10947
|
-
),
|
10948
|
-
/* @__PURE__ */ import_react64.default.createElement(CardFooter, { className: "hawa-flex hawa-flex-col" }, /* @__PURE__ */ import_react64.default.createElement(Button, { className: "hawa-w-full", type: "submit", isLoading }, texts == null ? void 0 : texts.updatePassword), props.allowRegister && /* @__PURE__ */ import_react64.default.createElement("div", { className: "hawa-mt-4 hawa-pb-0 hawa-text-center hawa-text-sm dark:hawa-text-gray-300" }, (_h = texts == null ? void 0 : texts.dontHaveAccount) != null ? _h : "Don't have an account? ", /* @__PURE__ */ import_react64.default.createElement(
|
10943
|
+
}
|
10944
|
+
)), /* @__PURE__ */ import_react64.default.createElement(Button, { className: "hawa-w-full", type: "submit", isLoading }, texts == null ? void 0 : texts.updatePassword), props.allowRegister && /* @__PURE__ */ import_react64.default.createElement("div", { className: "hawa-mt-4 hawa-pb-0 hawa-text-center hawa-text-sm dark:hawa-text-gray-300" }, (_g = texts == null ? void 0 : texts.dontHaveAccount) != null ? _g : "Don't have an account? ", /* @__PURE__ */ import_react64.default.createElement(
|
10949
10945
|
"span",
|
10950
10946
|
{
|
10951
10947
|
className: "clickable-link",
|
10952
10948
|
onClick: props.handleRouteToRegister
|
10953
10949
|
},
|
10954
|
-
(
|
10950
|
+
(_h = texts == null ? void 0 : texts.registerText) != null ? _h : "Register"
|
10955
10951
|
)))
|
10956
10952
|
));
|
10957
10953
|
};
|
@@ -10987,7 +10983,15 @@ var ResetPasswordForm = ({
|
|
10987
10983
|
}
|
10988
10984
|
})
|
10989
10985
|
},
|
10990
|
-
/* @__PURE__ */ import_react65.default.createElement(CardContent, { headless: props.headless, className: "hawa-pb-4" }, /* @__PURE__ */ import_react65.default.createElement(
|
10986
|
+
/* @__PURE__ */ import_react65.default.createElement(CardContent, { headless: props.headless, className: "hawa-pb-4" }, props.showError && /* @__PURE__ */ import_react65.default.createElement(
|
10987
|
+
Alert,
|
10988
|
+
{
|
10989
|
+
direction: props.direction,
|
10990
|
+
title: props.errorTitle,
|
10991
|
+
text: props.errorText,
|
10992
|
+
severity: "error"
|
10993
|
+
}
|
10994
|
+
), /* @__PURE__ */ import_react65.default.createElement(
|
10991
10995
|
import_react_hook_form4.Controller,
|
10992
10996
|
{
|
10993
10997
|
control,
|
package/dist/index.mjs
CHANGED
@@ -2036,7 +2036,6 @@ var Button = React15.forwardRef(
|
|
2036
2036
|
className: cn(
|
2037
2037
|
buttonVariants({ variant, size, className }),
|
2038
2038
|
centered && "hawa-justify-center"
|
2039
|
-
// "hawa-bg-red-500"
|
2040
2039
|
),
|
2041
2040
|
ref,
|
2042
2041
|
...props
|
@@ -4416,7 +4415,7 @@ var FloatBox = ({
|
|
4416
4415
|
"data-side": side,
|
4417
4416
|
"data-floatbox-state": open ? "open" : "closed"
|
4418
4417
|
},
|
4419
|
-
withArrow && /* @__PURE__ */ React39.createElement("div", { className: cn(
|
4418
|
+
withArrow && /* @__PURE__ */ React39.createElement("div", { className: cn(arrowDirection[side]) }),
|
4420
4419
|
/* @__PURE__ */ React39.createElement("span", null, props.children)
|
4421
4420
|
);
|
4422
4421
|
};
|
@@ -10633,7 +10632,7 @@ var CheckEmail = ({ texts, handleResend }) => {
|
|
10633
10632
|
};
|
10634
10633
|
|
10635
10634
|
// blocks/auth/NewPassword.tsx
|
10636
|
-
import React86
|
10635
|
+
import React86 from "react";
|
10637
10636
|
import { Controller as Controller3, useForm as useForm3 } from "react-hook-form";
|
10638
10637
|
import { zodResolver as zodResolver3 } from "@hookform/resolvers/zod";
|
10639
10638
|
import * as z3 from "zod";
|
@@ -10642,7 +10641,7 @@ var NewPasswordForm = ({
|
|
10642
10641
|
isLoading,
|
10643
10642
|
...props
|
10644
10643
|
}) => {
|
10645
|
-
var _a, _b, _c, _d, _e, _f, _g, _h
|
10644
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
10646
10645
|
const formSchema = z3.object({
|
10647
10646
|
password: z3.string({ required_error: (_a = texts == null ? void 0 : texts.password) == null ? void 0 : _a.required }).min(1, { message: (_b = texts == null ? void 0 : texts.password) == null ? void 0 : _b.required }).min(8, { message: (_c = texts == null ? void 0 : texts.password) == null ? void 0 : _c.tooShort }),
|
10648
10647
|
confirm_password: z3.string({ required_error: (_d = texts == null ? void 0 : texts.confirm) == null ? void 0 : _d.required }).refine((value) => value !== "", {
|
@@ -10655,8 +10654,7 @@ var NewPasswordForm = ({
|
|
10655
10654
|
const { handleSubmit, control, formState } = useForm3({
|
10656
10655
|
resolver: zodResolver3(formSchema)
|
10657
10656
|
});
|
10658
|
-
|
10659
|
-
return /* @__PURE__ */ React86.createElement(Card, { dir: props.direction }, matchError && /* @__PURE__ */ React86.createElement(Alert, { text: (_g = texts == null ? void 0 : texts.confirm) == null ? void 0 : _g.dontMatch, severity: "error" }), props.passwordChanged ? /* @__PURE__ */ React86.createElement(CardContent, { headless: true }, /* @__PURE__ */ React86.createElement("div", { className: "hawa-text-center" }, texts == null ? void 0 : texts.passwordChanged)) : /* @__PURE__ */ React86.createElement(
|
10657
|
+
return /* @__PURE__ */ React86.createElement(Card, { dir: props.direction }, props.showSuccess ? /* @__PURE__ */ React86.createElement(CardContent, { headless: true }, /* @__PURE__ */ React86.createElement("div", { className: "hawa-text-center" }, texts == null ? void 0 : texts.passwordChanged)) : /* @__PURE__ */ React86.createElement(
|
10660
10658
|
"form",
|
10661
10659
|
{
|
10662
10660
|
noValidate: true,
|
@@ -10670,65 +10668,63 @@ var NewPasswordForm = ({
|
|
10670
10668
|
}
|
10671
10669
|
})
|
10672
10670
|
},
|
10673
|
-
|
10674
|
-
|
10675
|
-
CardContent,
|
10671
|
+
/* @__PURE__ */ React86.createElement(CardContent, { headless: true, className: "hawa-flex hawa-flex-col" }, props.showError && /* @__PURE__ */ React86.createElement(
|
10672
|
+
Alert,
|
10676
10673
|
{
|
10677
|
-
|
10678
|
-
|
10679
|
-
|
10680
|
-
|
10681
|
-
|
10682
|
-
|
10683
|
-
|
10684
|
-
|
10685
|
-
|
10686
|
-
|
10687
|
-
|
10688
|
-
|
10689
|
-
|
10690
|
-
|
10691
|
-
|
10692
|
-
|
10693
|
-
|
10694
|
-
|
10695
|
-
|
10696
|
-
|
10697
|
-
|
10698
|
-
|
10699
|
-
|
10674
|
+
direction: props.direction,
|
10675
|
+
title: props.errorTitle,
|
10676
|
+
text: props.errorText,
|
10677
|
+
severity: "error"
|
10678
|
+
}
|
10679
|
+
), /* @__PURE__ */ React86.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-4 hawa-mb-4" }, /* @__PURE__ */ React86.createElement(
|
10680
|
+
Controller3,
|
10681
|
+
{
|
10682
|
+
control,
|
10683
|
+
name: "password",
|
10684
|
+
render: ({ field }) => {
|
10685
|
+
var _a2, _b2, _c2;
|
10686
|
+
return /* @__PURE__ */ React86.createElement(
|
10687
|
+
Input,
|
10688
|
+
{
|
10689
|
+
width: "full",
|
10690
|
+
type: "password",
|
10691
|
+
autoComplete: "new-password",
|
10692
|
+
label: (_a2 = texts == null ? void 0 : texts.password) == null ? void 0 : _a2.label,
|
10693
|
+
placeholder: (_b2 = texts == null ? void 0 : texts.password) == null ? void 0 : _b2.placeholder,
|
10694
|
+
helperText: (_c2 = formState.errors.password) == null ? void 0 : _c2.message,
|
10695
|
+
...field
|
10696
|
+
}
|
10697
|
+
);
|
10700
10698
|
}
|
10701
|
-
|
10702
|
-
|
10703
|
-
|
10704
|
-
|
10705
|
-
|
10706
|
-
|
10707
|
-
|
10708
|
-
|
10709
|
-
|
10710
|
-
|
10711
|
-
|
10712
|
-
|
10713
|
-
|
10714
|
-
|
10715
|
-
|
10716
|
-
|
10717
|
-
|
10718
|
-
|
10719
|
-
|
10720
|
-
|
10721
|
-
}
|
10699
|
+
}
|
10700
|
+
), /* @__PURE__ */ React86.createElement(
|
10701
|
+
Controller3,
|
10702
|
+
{
|
10703
|
+
control,
|
10704
|
+
name: "confirm_password",
|
10705
|
+
render: ({ field }) => {
|
10706
|
+
var _a2, _b2, _c2;
|
10707
|
+
return /* @__PURE__ */ React86.createElement(
|
10708
|
+
Input,
|
10709
|
+
{
|
10710
|
+
width: "full",
|
10711
|
+
type: "password",
|
10712
|
+
autoComplete: "new-password",
|
10713
|
+
label: (_a2 = texts == null ? void 0 : texts.confirm) == null ? void 0 : _a2.label,
|
10714
|
+
placeholder: (_b2 = texts == null ? void 0 : texts.confirm) == null ? void 0 : _b2.placeholder,
|
10715
|
+
helperText: (_c2 = formState.errors.confirm_password) == null ? void 0 : _c2.message,
|
10716
|
+
...field
|
10717
|
+
}
|
10718
|
+
);
|
10722
10719
|
}
|
10723
|
-
|
10724
|
-
),
|
10725
|
-
/* @__PURE__ */ React86.createElement(CardFooter, { className: "hawa-flex hawa-flex-col" }, /* @__PURE__ */ React86.createElement(Button, { className: "hawa-w-full", type: "submit", isLoading }, texts == null ? void 0 : texts.updatePassword), props.allowRegister && /* @__PURE__ */ React86.createElement("div", { className: "hawa-mt-4 hawa-pb-0 hawa-text-center hawa-text-sm dark:hawa-text-gray-300" }, (_h = texts == null ? void 0 : texts.dontHaveAccount) != null ? _h : "Don't have an account? ", /* @__PURE__ */ React86.createElement(
|
10720
|
+
}
|
10721
|
+
)), /* @__PURE__ */ React86.createElement(Button, { className: "hawa-w-full", type: "submit", isLoading }, texts == null ? void 0 : texts.updatePassword), props.allowRegister && /* @__PURE__ */ React86.createElement("div", { className: "hawa-mt-4 hawa-pb-0 hawa-text-center hawa-text-sm dark:hawa-text-gray-300" }, (_g = texts == null ? void 0 : texts.dontHaveAccount) != null ? _g : "Don't have an account? ", /* @__PURE__ */ React86.createElement(
|
10726
10722
|
"span",
|
10727
10723
|
{
|
10728
10724
|
className: "clickable-link",
|
10729
10725
|
onClick: props.handleRouteToRegister
|
10730
10726
|
},
|
10731
|
-
(
|
10727
|
+
(_h = texts == null ? void 0 : texts.registerText) != null ? _h : "Register"
|
10732
10728
|
)))
|
10733
10729
|
));
|
10734
10730
|
};
|
@@ -10764,7 +10760,15 @@ var ResetPasswordForm = ({
|
|
10764
10760
|
}
|
10765
10761
|
})
|
10766
10762
|
},
|
10767
|
-
/* @__PURE__ */ React87.createElement(CardContent, { headless: props.headless, className: "hawa-pb-4" }, /* @__PURE__ */ React87.createElement(
|
10763
|
+
/* @__PURE__ */ React87.createElement(CardContent, { headless: props.headless, className: "hawa-pb-4" }, props.showError && /* @__PURE__ */ React87.createElement(
|
10764
|
+
Alert,
|
10765
|
+
{
|
10766
|
+
direction: props.direction,
|
10767
|
+
title: props.errorTitle,
|
10768
|
+
text: props.errorText,
|
10769
|
+
severity: "error"
|
10770
|
+
}
|
10771
|
+
), /* @__PURE__ */ React87.createElement(
|
10768
10772
|
Controller4,
|
10769
10773
|
{
|
10770
10774
|
control,
|
@@ -10804,7 +10808,7 @@ var ResetPasswordForm = ({
|
|
10804
10808
|
};
|
10805
10809
|
|
10806
10810
|
// blocks/auth/CodeConfirmation.tsx
|
10807
|
-
import React88, { useEffect as useEffect30, useState as
|
10811
|
+
import React88, { useEffect as useEffect30, useState as useState41 } from "react";
|
10808
10812
|
import { Controller as Controller5, useForm as useForm5 } from "react-hook-form";
|
10809
10813
|
import { zodResolver as zodResolver5 } from "@hookform/resolvers/zod";
|
10810
10814
|
import * as z5 from "zod";
|
@@ -10816,9 +10820,9 @@ var CodeConfirmation = (props) => {
|
|
10816
10820
|
const { handleSubmit, control, formState, setValue } = useForm5({
|
10817
10821
|
resolver: zodResolver5(formSchema)
|
10818
10822
|
});
|
10819
|
-
const [resendTimer, setResendTimer] =
|
10820
|
-
const [remainingTime, setRemainingTime] =
|
10821
|
-
const [showResendTimer, setShowResendTimer] =
|
10823
|
+
const [resendTimer, setResendTimer] = useState41(null);
|
10824
|
+
const [remainingTime, setRemainingTime] = useState41(0);
|
10825
|
+
const [showResendTimer, setShowResendTimer] = useState41(false);
|
10822
10826
|
const startResendTimer = () => {
|
10823
10827
|
if (resendTimer !== null) {
|
10824
10828
|
clearInterval(resendTimer);
|
@@ -10903,7 +10907,7 @@ var CodeConfirmation = (props) => {
|
|
10903
10907
|
};
|
10904
10908
|
|
10905
10909
|
// blocks/feedback/UserReferralSource.tsx
|
10906
|
-
import React89, { useRef as useRef20, useState as
|
10910
|
+
import React89, { useRef as useRef20, useState as useState42 } from "react";
|
10907
10911
|
import { Controller as Controller6, useForm as useForm6 } from "react-hook-form";
|
10908
10912
|
import { zodResolver as zodResolver6 } from "@hookform/resolvers/zod";
|
10909
10913
|
import * as z6 from "zod";
|
@@ -10913,7 +10917,7 @@ var UserReferralSource = ({
|
|
10913
10917
|
...props
|
10914
10918
|
}) => {
|
10915
10919
|
var _a, _b;
|
10916
|
-
const [closed, setClosed] =
|
10920
|
+
const [closed, setClosed] = useState42(false);
|
10917
10921
|
const popUpRef = useRef20(null);
|
10918
10922
|
const formSchema = z6.object({
|
10919
10923
|
source: z6.string({ required_error: (_a = props.texts) == null ? void 0 : _a.pleaseSelectOption }),
|
@@ -11061,15 +11065,15 @@ var UserReferralSource = ({
|
|
11061
11065
|
};
|
11062
11066
|
|
11063
11067
|
// blocks/feedback/FeedbackRating.tsx
|
11064
|
-
import React90, { useEffect as useEffect31, useRef as useRef21, useState as
|
11068
|
+
import React90, { useEffect as useEffect31, useRef as useRef21, useState as useState43 } from "react";
|
11065
11069
|
var FeedbackRating = ({
|
11066
11070
|
position = "bottom-right",
|
11067
11071
|
...props
|
11068
11072
|
}) => {
|
11069
|
-
const [closed, setClosed] =
|
11070
|
-
const [answered, setAnswered] =
|
11071
|
-
const [clickedOption, setClickedOption] =
|
11072
|
-
const [closingTimer, setClosingTimer] =
|
11073
|
+
const [closed, setClosed] = useState43(false);
|
11074
|
+
const [answered, setAnswered] = useState43(false);
|
11075
|
+
const [clickedOption, setClickedOption] = useState43(null);
|
11076
|
+
const [closingTimer, setClosingTimer] = useState43(5);
|
11073
11077
|
const popUpRef = useRef21(null);
|
11074
11078
|
const boxPosition = {
|
11075
11079
|
"bottom-right": "hawa-right-4",
|
@@ -11175,12 +11179,12 @@ var FeedbackRating = ({
|
|
11175
11179
|
};
|
11176
11180
|
|
11177
11181
|
// blocks/feedback/FeedbackEmoji.tsx
|
11178
|
-
import React91, { useState as
|
11182
|
+
import React91, { useState as useState44 } from "react";
|
11179
11183
|
var FeedbackEmoji = (props) => {
|
11180
|
-
const [selectedEmoji, setSelectedEmoji] =
|
11181
|
-
const [loadingSubmit, setLoadingSubmit] =
|
11182
|
-
const [feedbackText, setFeedbackText] =
|
11183
|
-
const [helperText, setHelperText] =
|
11184
|
+
const [selectedEmoji, setSelectedEmoji] = useState44(null);
|
11185
|
+
const [loadingSubmit, setLoadingSubmit] = useState44(false);
|
11186
|
+
const [feedbackText, setFeedbackText] = useState44("");
|
11187
|
+
const [helperText, setHelperText] = useState44(false);
|
11184
11188
|
let emojis = [
|
11185
11189
|
{ icon: /* @__PURE__ */ React91.createElement(VeryGoodEmoji, null), value: "very-good" },
|
11186
11190
|
{ icon: /* @__PURE__ */ React91.createElement(GoodEmoji, null), value: "good" },
|
@@ -11743,9 +11747,9 @@ var ContactForm = ({
|
|
11743
11747
|
import React106 from "react";
|
11744
11748
|
|
11745
11749
|
// blocks/cards/ActionCard.tsx
|
11746
|
-
import React101, { useState as
|
11750
|
+
import React101, { useState as useState45 } from "react";
|
11747
11751
|
var ActionCard = (props) => {
|
11748
|
-
const [hovered, setHovered] =
|
11752
|
+
const [hovered, setHovered] = useState45(false);
|
11749
11753
|
return /* @__PURE__ */ React101.createElement("div", { className: "hawa-flex hawa-h-full hawa-w-full hawa-flex-col hawa-gap-1" }, /* @__PURE__ */ React101.createElement(
|
11750
11754
|
"div",
|
11751
11755
|
{
|
@@ -11782,13 +11786,13 @@ var ActionCard = (props) => {
|
|
11782
11786
|
};
|
11783
11787
|
|
11784
11788
|
// blocks/cards/AdCard.tsx
|
11785
|
-
import React102, { useState as
|
11789
|
+
import React102, { useState as useState46, useEffect as useEffect32, useRef as useRef22 } from "react";
|
11786
11790
|
var AdCard = ({
|
11787
11791
|
orientation = "vertical",
|
11788
11792
|
...props
|
11789
11793
|
}) => {
|
11790
11794
|
const adRef = useRef22(null);
|
11791
|
-
const [closed, setClosed] =
|
11795
|
+
const [closed, setClosed] = useState46(false);
|
11792
11796
|
let duration = 0;
|
11793
11797
|
useEffect32(() => {
|
11794
11798
|
if (duration) {
|
@@ -11978,7 +11982,7 @@ var PricingCard = ({
|
|
11978
11982
|
};
|
11979
11983
|
|
11980
11984
|
// blocks/cards/ItemCard.tsx
|
11981
|
-
import React104, { useEffect as useEffect33, useState as
|
11985
|
+
import React104, { useEffect as useEffect33, useState as useState47 } from "react";
|
11982
11986
|
var ItemCard = ({
|
11983
11987
|
actions,
|
11984
11988
|
counts,
|
@@ -12007,7 +12011,7 @@ var ItemCard = ({
|
|
12007
12011
|
)
|
12008
12012
|
};
|
12009
12013
|
let headerActionsButtonStyle = "hawa-inline-block hawa-rounded hawa-p-1 hawa-text-sm hawa-text-gray-500 hover:hawa-bg-gray-100 focus:hawa-outline-none focus:hawa-ring-4 focus:hawa-ring-gray-200 dark:hawa-text-gray-400 dark:hover:hawa-bg-gray-700 dark:focus:hawa-ring-gray-700";
|
12010
|
-
const [openActionHeader, setOpenActionHeader] =
|
12014
|
+
const [openActionHeader, setOpenActionHeader] = useState47(false);
|
12011
12015
|
function handleOpenActionHeader(e) {
|
12012
12016
|
e.stopPropagation();
|
12013
12017
|
setOpenActionHeader(!openActionHeader);
|
@@ -12339,9 +12343,9 @@ var ComparingPlans = (props) => {
|
|
12339
12343
|
};
|
12340
12344
|
|
12341
12345
|
// blocks/pricing/HorizontalPricing.tsx
|
12342
|
-
import React108, { useState as
|
12346
|
+
import React108, { useState as useState48 } from "react";
|
12343
12347
|
var HorizontalPricing = (props) => {
|
12344
|
-
const [selectedCard, setSelectedCard] =
|
12348
|
+
const [selectedCard, setSelectedCard] = useState48("");
|
12345
12349
|
let data = [
|
12346
12350
|
{ title: "basic", price: "$49", cycle: "/mo" },
|
12347
12351
|
{ title: "business", price: "$99", cycle: "/mo" },
|
package/dist/layout/index.js
CHANGED
package/dist/layout/index.mjs
CHANGED
@@ -3,7 +3,7 @@ import {
|
|
3
3
|
Sheet,
|
4
4
|
SheetContent,
|
5
5
|
SheetTrigger
|
6
|
-
} from "../chunk-
|
6
|
+
} from "../chunk-YAGZ6WVL.mjs";
|
7
7
|
import {
|
8
8
|
Button,
|
9
9
|
Card,
|
@@ -15,7 +15,7 @@ import {
|
|
15
15
|
Skeleton,
|
16
16
|
Tooltip,
|
17
17
|
cn
|
18
|
-
} from "../chunk-
|
18
|
+
} from "../chunk-XQ3GJWXB.mjs";
|
19
19
|
import {
|
20
20
|
useBreakpoint
|
21
21
|
} from "../chunk-UDCDD66A.mjs";
|