@sikka/hawa 0.31.0-next → 0.31.2-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.
@@ -3685,7 +3685,7 @@ var LoginForm = ({
3685
3685
  props.cardless && "!hawa-border-none !hawa-bg-transparent !hawa-shadow-none !hawa-drop-shadow-none"
3686
3686
  )
3687
3687
  },
3688
- /* @__PURE__ */ import_react13.default.createElement(CardContent, { headless: true, noPadding: props.cardless }, props.showError && /* @__PURE__ */ import_react13.default.createElement(
3688
+ /* @__PURE__ */ import_react13.default.createElement(CardContent, { headless: true, noPadding: props.cardless, className: "hawa-bg-red-400" }, props.showError && /* @__PURE__ */ import_react13.default.createElement(
3689
3689
  Alert,
3690
3690
  {
3691
3691
  direction: props.direction,
@@ -4360,7 +4360,7 @@ var NewPasswordForm = ({
4360
4360
  isLoading,
4361
4361
  ...props
4362
4362
  }) => {
4363
- var _a, _b, _c, _d, _e, _f, _g, _h, _i;
4363
+ var _a, _b, _c, _d, _e, _f, _g, _h;
4364
4364
  const formSchema = z3.object({
4365
4365
  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 }),
4366
4366
  confirm_password: z3.string({ required_error: (_d = texts == null ? void 0 : texts.confirm) == null ? void 0 : _d.required }).refine((value) => value !== "", {
@@ -4373,8 +4373,7 @@ var NewPasswordForm = ({
4373
4373
  const { handleSubmit, control, formState } = (0, import_react_hook_form3.useForm)({
4374
4374
  resolver: (0, import_zod3.zodResolver)(formSchema)
4375
4375
  });
4376
- const [matchError, setMatchError] = (0, import_react18.useState)(false);
4377
- return /* @__PURE__ */ import_react18.default.createElement(Card, { dir: props.direction }, matchError && /* @__PURE__ */ import_react18.default.createElement(Alert, { text: (_g = texts == null ? void 0 : texts.confirm) == null ? void 0 : _g.dontMatch, severity: "error" }), props.passwordChanged ? /* @__PURE__ */ import_react18.default.createElement(CardContent, { headless: true }, /* @__PURE__ */ import_react18.default.createElement("div", { className: "hawa-text-center" }, texts == null ? void 0 : texts.passwordChanged)) : /* @__PURE__ */ import_react18.default.createElement(
4376
+ return /* @__PURE__ */ import_react18.default.createElement(Card, { dir: props.direction }, props.showSuccess ? /* @__PURE__ */ import_react18.default.createElement(CardContent, { headless: true }, /* @__PURE__ */ import_react18.default.createElement("div", { className: "hawa-text-center" }, texts == null ? void 0 : texts.passwordChanged)) : /* @__PURE__ */ import_react18.default.createElement(
4378
4377
  "form",
4379
4378
  {
4380
4379
  noValidate: true,
@@ -4388,65 +4387,63 @@ var NewPasswordForm = ({
4388
4387
  }
4389
4388
  })
4390
4389
  },
4391
- !props.headless && /* @__PURE__ */ import_react18.default.createElement(CardHeader, null, /* @__PURE__ */ import_react18.default.createElement(CardTitle, null, "Create Password"), /* @__PURE__ */ import_react18.default.createElement(CardDescription, null, "Set a new password for your account")),
4392
- /* @__PURE__ */ import_react18.default.createElement(
4393
- CardContent,
4390
+ /* @__PURE__ */ import_react18.default.createElement(CardContent, { headless: true, className: "hawa-flex hawa-flex-col" }, props.showError && /* @__PURE__ */ import_react18.default.createElement(
4391
+ Alert,
4394
4392
  {
4395
- headless: props.headless,
4396
- className: "hawa-flex hawa-flex-col hawa-gap-4"
4397
- },
4398
- /* @__PURE__ */ import_react18.default.createElement(
4399
- import_react_hook_form3.Controller,
4400
- {
4401
- control,
4402
- name: "password",
4403
- render: ({ field }) => {
4404
- var _a2, _b2, _c2;
4405
- return /* @__PURE__ */ import_react18.default.createElement(
4406
- Input,
4407
- {
4408
- width: "full",
4409
- type: "password",
4410
- autoComplete: "new-password",
4411
- label: (_a2 = texts == null ? void 0 : texts.password) == null ? void 0 : _a2.label,
4412
- placeholder: (_b2 = texts == null ? void 0 : texts.password) == null ? void 0 : _b2.placeholder,
4413
- helperText: (_c2 = formState.errors.password) == null ? void 0 : _c2.message,
4414
- ...field
4415
- }
4416
- );
4417
- }
4393
+ direction: props.direction,
4394
+ title: props.errorTitle,
4395
+ text: props.errorText,
4396
+ severity: "error"
4397
+ }
4398
+ ), /* @__PURE__ */ import_react18.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-4 hawa-mb-4" }, /* @__PURE__ */ import_react18.default.createElement(
4399
+ import_react_hook_form3.Controller,
4400
+ {
4401
+ control,
4402
+ name: "password",
4403
+ render: ({ field }) => {
4404
+ var _a2, _b2, _c2;
4405
+ return /* @__PURE__ */ import_react18.default.createElement(
4406
+ Input,
4407
+ {
4408
+ width: "full",
4409
+ type: "password",
4410
+ autoComplete: "new-password",
4411
+ label: (_a2 = texts == null ? void 0 : texts.password) == null ? void 0 : _a2.label,
4412
+ placeholder: (_b2 = texts == null ? void 0 : texts.password) == null ? void 0 : _b2.placeholder,
4413
+ helperText: (_c2 = formState.errors.password) == null ? void 0 : _c2.message,
4414
+ ...field
4415
+ }
4416
+ );
4418
4417
  }
4419
- ),
4420
- /* @__PURE__ */ import_react18.default.createElement(
4421
- import_react_hook_form3.Controller,
4422
- {
4423
- control,
4424
- name: "confirm_password",
4425
- render: ({ field }) => {
4426
- var _a2, _b2, _c2;
4427
- return /* @__PURE__ */ import_react18.default.createElement(
4428
- Input,
4429
- {
4430
- width: "full",
4431
- type: "password",
4432
- autoComplete: "new-password",
4433
- label: (_a2 = texts == null ? void 0 : texts.confirm) == null ? void 0 : _a2.label,
4434
- placeholder: (_b2 = texts == null ? void 0 : texts.confirm) == null ? void 0 : _b2.placeholder,
4435
- helperText: (_c2 = formState.errors.confirm_password) == null ? void 0 : _c2.message,
4436
- ...field
4437
- }
4438
- );
4439
- }
4418
+ }
4419
+ ), /* @__PURE__ */ import_react18.default.createElement(
4420
+ import_react_hook_form3.Controller,
4421
+ {
4422
+ control,
4423
+ name: "confirm_password",
4424
+ render: ({ field }) => {
4425
+ var _a2, _b2, _c2;
4426
+ return /* @__PURE__ */ import_react18.default.createElement(
4427
+ Input,
4428
+ {
4429
+ width: "full",
4430
+ type: "password",
4431
+ autoComplete: "new-password",
4432
+ label: (_a2 = texts == null ? void 0 : texts.confirm) == null ? void 0 : _a2.label,
4433
+ placeholder: (_b2 = texts == null ? void 0 : texts.confirm) == null ? void 0 : _b2.placeholder,
4434
+ helperText: (_c2 = formState.errors.confirm_password) == null ? void 0 : _c2.message,
4435
+ ...field
4436
+ }
4437
+ );
4440
4438
  }
4441
- )
4442
- ),
4443
- /* @__PURE__ */ import_react18.default.createElement(CardFooter, { className: "hawa-flex hawa-flex-col" }, /* @__PURE__ */ import_react18.default.createElement(Button, { className: "hawa-w-full", type: "submit", isLoading }, texts == null ? void 0 : texts.updatePassword), props.allowRegister && /* @__PURE__ */ import_react18.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_react18.default.createElement(
4439
+ }
4440
+ )), /* @__PURE__ */ import_react18.default.createElement(Button, { className: "hawa-w-full", type: "submit", isLoading }, texts == null ? void 0 : texts.updatePassword), props.allowRegister && /* @__PURE__ */ import_react18.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_react18.default.createElement(
4444
4441
  "span",
4445
4442
  {
4446
4443
  className: "clickable-link",
4447
4444
  onClick: props.handleRouteToRegister
4448
4445
  },
4449
- (_i = texts == null ? void 0 : texts.registerText) != null ? _i : "Register"
4446
+ (_h = texts == null ? void 0 : texts.registerText) != null ? _h : "Register"
4450
4447
  )))
4451
4448
  ));
4452
4449
  };
@@ -4482,7 +4479,15 @@ var ResetPasswordForm = ({
4482
4479
  }
4483
4480
  })
4484
4481
  },
4485
- /* @__PURE__ */ import_react19.default.createElement(CardContent, { headless: props.headless, className: "hawa-pb-4" }, /* @__PURE__ */ import_react19.default.createElement(
4482
+ /* @__PURE__ */ import_react19.default.createElement(CardContent, { headless: props.headless, className: "hawa-pb-4" }, props.showError && /* @__PURE__ */ import_react19.default.createElement(
4483
+ Alert,
4484
+ {
4485
+ direction: props.direction,
4486
+ title: props.errorTitle,
4487
+ text: props.errorText,
4488
+ severity: "error"
4489
+ }
4490
+ ), /* @__PURE__ */ import_react19.default.createElement(
4486
4491
  import_react_hook_form4.Controller,
4487
4492
  {
4488
4493
  control,
@@ -391,7 +391,7 @@ var LoginForm = ({
391
391
  props.cardless && "!hawa-border-none !hawa-bg-transparent !hawa-shadow-none !hawa-drop-shadow-none"
392
392
  )
393
393
  },
394
- /* @__PURE__ */ React2.createElement(CardContent, { headless: true, noPadding: props.cardless }, props.showError && /* @__PURE__ */ React2.createElement(
394
+ /* @__PURE__ */ React2.createElement(CardContent, { headless: true, noPadding: props.cardless, className: "hawa-bg-red-400" }, props.showError && /* @__PURE__ */ React2.createElement(
395
395
  Alert,
396
396
  {
397
397
  direction: props.direction,
@@ -910,7 +910,7 @@ var CheckEmail = ({ texts, handleResend }) => {
910
910
  };
911
911
 
912
912
  // blocks/auth/NewPassword.tsx
913
- import React6, { useState as useState3 } from "react";
913
+ import React6 from "react";
914
914
  import { Controller as Controller3, useForm as useForm3 } from "react-hook-form";
915
915
  import { zodResolver as zodResolver3 } from "@hookform/resolvers/zod";
916
916
  import * as z3 from "zod";
@@ -919,7 +919,7 @@ var NewPasswordForm = ({
919
919
  isLoading,
920
920
  ...props
921
921
  }) => {
922
- var _a, _b, _c, _d, _e, _f, _g, _h, _i;
922
+ var _a, _b, _c, _d, _e, _f, _g, _h;
923
923
  const formSchema = z3.object({
924
924
  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 }),
925
925
  confirm_password: z3.string({ required_error: (_d = texts == null ? void 0 : texts.confirm) == null ? void 0 : _d.required }).refine((value) => value !== "", {
@@ -932,8 +932,7 @@ var NewPasswordForm = ({
932
932
  const { handleSubmit, control, formState } = useForm3({
933
933
  resolver: zodResolver3(formSchema)
934
934
  });
935
- const [matchError, setMatchError] = useState3(false);
936
- return /* @__PURE__ */ React6.createElement(Card, { dir: props.direction }, matchError && /* @__PURE__ */ React6.createElement(Alert, { text: (_g = texts == null ? void 0 : texts.confirm) == null ? void 0 : _g.dontMatch, severity: "error" }), props.passwordChanged ? /* @__PURE__ */ React6.createElement(CardContent, { headless: true }, /* @__PURE__ */ React6.createElement("div", { className: "hawa-text-center" }, texts == null ? void 0 : texts.passwordChanged)) : /* @__PURE__ */ React6.createElement(
935
+ return /* @__PURE__ */ React6.createElement(Card, { dir: props.direction }, props.showSuccess ? /* @__PURE__ */ React6.createElement(CardContent, { headless: true }, /* @__PURE__ */ React6.createElement("div", { className: "hawa-text-center" }, texts == null ? void 0 : texts.passwordChanged)) : /* @__PURE__ */ React6.createElement(
937
936
  "form",
938
937
  {
939
938
  noValidate: true,
@@ -947,65 +946,63 @@ var NewPasswordForm = ({
947
946
  }
948
947
  })
949
948
  },
950
- !props.headless && /* @__PURE__ */ React6.createElement(CardHeader, null, /* @__PURE__ */ React6.createElement(CardTitle, null, "Create Password"), /* @__PURE__ */ React6.createElement(CardDescription, null, "Set a new password for your account")),
951
- /* @__PURE__ */ React6.createElement(
952
- CardContent,
949
+ /* @__PURE__ */ React6.createElement(CardContent, { headless: true, className: "hawa-flex hawa-flex-col" }, props.showError && /* @__PURE__ */ React6.createElement(
950
+ Alert,
953
951
  {
954
- headless: props.headless,
955
- className: "hawa-flex hawa-flex-col hawa-gap-4"
956
- },
957
- /* @__PURE__ */ React6.createElement(
958
- Controller3,
959
- {
960
- control,
961
- name: "password",
962
- render: ({ field }) => {
963
- var _a2, _b2, _c2;
964
- return /* @__PURE__ */ React6.createElement(
965
- Input,
966
- {
967
- width: "full",
968
- type: "password",
969
- autoComplete: "new-password",
970
- label: (_a2 = texts == null ? void 0 : texts.password) == null ? void 0 : _a2.label,
971
- placeholder: (_b2 = texts == null ? void 0 : texts.password) == null ? void 0 : _b2.placeholder,
972
- helperText: (_c2 = formState.errors.password) == null ? void 0 : _c2.message,
973
- ...field
974
- }
975
- );
976
- }
952
+ direction: props.direction,
953
+ title: props.errorTitle,
954
+ text: props.errorText,
955
+ severity: "error"
956
+ }
957
+ ), /* @__PURE__ */ React6.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-4 hawa-mb-4" }, /* @__PURE__ */ React6.createElement(
958
+ Controller3,
959
+ {
960
+ control,
961
+ name: "password",
962
+ render: ({ field }) => {
963
+ var _a2, _b2, _c2;
964
+ return /* @__PURE__ */ React6.createElement(
965
+ Input,
966
+ {
967
+ width: "full",
968
+ type: "password",
969
+ autoComplete: "new-password",
970
+ label: (_a2 = texts == null ? void 0 : texts.password) == null ? void 0 : _a2.label,
971
+ placeholder: (_b2 = texts == null ? void 0 : texts.password) == null ? void 0 : _b2.placeholder,
972
+ helperText: (_c2 = formState.errors.password) == null ? void 0 : _c2.message,
973
+ ...field
974
+ }
975
+ );
977
976
  }
978
- ),
979
- /* @__PURE__ */ React6.createElement(
980
- Controller3,
981
- {
982
- control,
983
- name: "confirm_password",
984
- render: ({ field }) => {
985
- var _a2, _b2, _c2;
986
- return /* @__PURE__ */ React6.createElement(
987
- Input,
988
- {
989
- width: "full",
990
- type: "password",
991
- autoComplete: "new-password",
992
- label: (_a2 = texts == null ? void 0 : texts.confirm) == null ? void 0 : _a2.label,
993
- placeholder: (_b2 = texts == null ? void 0 : texts.confirm) == null ? void 0 : _b2.placeholder,
994
- helperText: (_c2 = formState.errors.confirm_password) == null ? void 0 : _c2.message,
995
- ...field
996
- }
997
- );
998
- }
977
+ }
978
+ ), /* @__PURE__ */ React6.createElement(
979
+ Controller3,
980
+ {
981
+ control,
982
+ name: "confirm_password",
983
+ render: ({ field }) => {
984
+ var _a2, _b2, _c2;
985
+ return /* @__PURE__ */ React6.createElement(
986
+ Input,
987
+ {
988
+ width: "full",
989
+ type: "password",
990
+ autoComplete: "new-password",
991
+ label: (_a2 = texts == null ? void 0 : texts.confirm) == null ? void 0 : _a2.label,
992
+ placeholder: (_b2 = texts == null ? void 0 : texts.confirm) == null ? void 0 : _b2.placeholder,
993
+ helperText: (_c2 = formState.errors.confirm_password) == null ? void 0 : _c2.message,
994
+ ...field
995
+ }
996
+ );
999
997
  }
1000
- )
1001
- ),
1002
- /* @__PURE__ */ React6.createElement(CardFooter, { className: "hawa-flex hawa-flex-col" }, /* @__PURE__ */ React6.createElement(Button, { className: "hawa-w-full", type: "submit", isLoading }, texts == null ? void 0 : texts.updatePassword), props.allowRegister && /* @__PURE__ */ React6.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__ */ React6.createElement(
998
+ }
999
+ )), /* @__PURE__ */ React6.createElement(Button, { className: "hawa-w-full", type: "submit", isLoading }, texts == null ? void 0 : texts.updatePassword), props.allowRegister && /* @__PURE__ */ React6.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__ */ React6.createElement(
1003
1000
  "span",
1004
1001
  {
1005
1002
  className: "clickable-link",
1006
1003
  onClick: props.handleRouteToRegister
1007
1004
  },
1008
- (_i = texts == null ? void 0 : texts.registerText) != null ? _i : "Register"
1005
+ (_h = texts == null ? void 0 : texts.registerText) != null ? _h : "Register"
1009
1006
  )))
1010
1007
  ));
1011
1008
  };
@@ -1041,7 +1038,15 @@ var ResetPasswordForm = ({
1041
1038
  }
1042
1039
  })
1043
1040
  },
1044
- /* @__PURE__ */ React7.createElement(CardContent, { headless: props.headless, className: "hawa-pb-4" }, /* @__PURE__ */ React7.createElement(
1041
+ /* @__PURE__ */ React7.createElement(CardContent, { headless: props.headless, className: "hawa-pb-4" }, props.showError && /* @__PURE__ */ React7.createElement(
1042
+ Alert,
1043
+ {
1044
+ direction: props.direction,
1045
+ title: props.errorTitle,
1046
+ text: props.errorText,
1047
+ severity: "error"
1048
+ }
1049
+ ), /* @__PURE__ */ React7.createElement(
1045
1050
  Controller4,
1046
1051
  {
1047
1052
  control,
@@ -1081,7 +1086,7 @@ var ResetPasswordForm = ({
1081
1086
  };
1082
1087
 
1083
1088
  // blocks/auth/CodeConfirmation.tsx
1084
- import React8, { useEffect, useState as useState4 } from "react";
1089
+ import React8, { useEffect, useState as useState3 } from "react";
1085
1090
  import { Controller as Controller5, useForm as useForm5 } from "react-hook-form";
1086
1091
  import { zodResolver as zodResolver5 } from "@hookform/resolvers/zod";
1087
1092
  import * as z5 from "zod";
@@ -1093,9 +1098,9 @@ var CodeConfirmation = (props) => {
1093
1098
  const { handleSubmit, control, formState, setValue } = useForm5({
1094
1099
  resolver: zodResolver5(formSchema)
1095
1100
  });
1096
- const [resendTimer, setResendTimer] = useState4(null);
1097
- const [remainingTime, setRemainingTime] = useState4(0);
1098
- const [showResendTimer, setShowResendTimer] = useState4(false);
1101
+ const [resendTimer, setResendTimer] = useState3(null);
1102
+ const [remainingTime, setRemainingTime] = useState3(0);
1103
+ const [showResendTimer, setShowResendTimer] = useState3(false);
1099
1104
  const startResendTimer = () => {
1100
1105
  if (resendTimer !== null) {
1101
1106
  clearInterval(resendTimer);
@@ -1180,7 +1185,7 @@ var CodeConfirmation = (props) => {
1180
1185
  };
1181
1186
 
1182
1187
  // blocks/feedback/UserReferralSource.tsx
1183
- import React9, { useRef, useState as useState5 } from "react";
1188
+ import React9, { useRef, useState as useState4 } from "react";
1184
1189
  import { Controller as Controller6, useForm as useForm6 } from "react-hook-form";
1185
1190
  import { zodResolver as zodResolver6 } from "@hookform/resolvers/zod";
1186
1191
  import * as z6 from "zod";
@@ -1190,7 +1195,7 @@ var UserReferralSource = ({
1190
1195
  ...props
1191
1196
  }) => {
1192
1197
  var _a, _b;
1193
- const [closed, setClosed] = useState5(false);
1198
+ const [closed, setClosed] = useState4(false);
1194
1199
  const popUpRef = useRef(null);
1195
1200
  const formSchema = z6.object({
1196
1201
  source: z6.string({ required_error: (_a = props.texts) == null ? void 0 : _a.pleaseSelectOption }),
@@ -1338,15 +1343,15 @@ var UserReferralSource = ({
1338
1343
  };
1339
1344
 
1340
1345
  // blocks/feedback/FeedbackRating.tsx
1341
- import React10, { useEffect as useEffect2, useRef as useRef2, useState as useState6 } from "react";
1346
+ import React10, { useEffect as useEffect2, useRef as useRef2, useState as useState5 } from "react";
1342
1347
  var FeedbackRating = ({
1343
1348
  position = "bottom-right",
1344
1349
  ...props
1345
1350
  }) => {
1346
- const [closed, setClosed] = useState6(false);
1347
- const [answered, setAnswered] = useState6(false);
1348
- const [clickedOption, setClickedOption] = useState6(null);
1349
- const [closingTimer, setClosingTimer] = useState6(5);
1351
+ const [closed, setClosed] = useState5(false);
1352
+ const [answered, setAnswered] = useState5(false);
1353
+ const [clickedOption, setClickedOption] = useState5(null);
1354
+ const [closingTimer, setClosingTimer] = useState5(5);
1350
1355
  const popUpRef = useRef2(null);
1351
1356
  const boxPosition = {
1352
1357
  "bottom-right": "hawa-right-4",
@@ -1452,12 +1457,12 @@ var FeedbackRating = ({
1452
1457
  };
1453
1458
 
1454
1459
  // blocks/feedback/FeedbackEmoji.tsx
1455
- import React11, { useState as useState7 } from "react";
1460
+ import React11, { useState as useState6 } from "react";
1456
1461
  var FeedbackEmoji = (props) => {
1457
- const [selectedEmoji, setSelectedEmoji] = useState7(null);
1458
- const [loadingSubmit, setLoadingSubmit] = useState7(false);
1459
- const [feedbackText, setFeedbackText] = useState7("");
1460
- const [helperText, setHelperText] = useState7(false);
1462
+ const [selectedEmoji, setSelectedEmoji] = useState6(null);
1463
+ const [loadingSubmit, setLoadingSubmit] = useState6(false);
1464
+ const [feedbackText, setFeedbackText] = useState6("");
1465
+ const [helperText, setHelperText] = useState6(false);
1461
1466
  let emojis = [
1462
1467
  { icon: /* @__PURE__ */ React11.createElement(VeryGoodEmoji, null), value: "very-good" },
1463
1468
  { icon: /* @__PURE__ */ React11.createElement(GoodEmoji, null), value: "good" },
@@ -2020,9 +2025,9 @@ var ContactForm = ({
2020
2025
  import React26 from "react";
2021
2026
 
2022
2027
  // blocks/cards/ActionCard.tsx
2023
- import React21, { useState as useState8 } from "react";
2028
+ import React21, { useState as useState7 } from "react";
2024
2029
  var ActionCard = (props) => {
2025
- const [hovered, setHovered] = useState8(false);
2030
+ const [hovered, setHovered] = useState7(false);
2026
2031
  return /* @__PURE__ */ React21.createElement("div", { className: "hawa-flex hawa-h-full hawa-w-full hawa-flex-col hawa-gap-1" }, /* @__PURE__ */ React21.createElement(
2027
2032
  "div",
2028
2033
  {
@@ -2059,13 +2064,13 @@ var ActionCard = (props) => {
2059
2064
  };
2060
2065
 
2061
2066
  // blocks/cards/AdCard.tsx
2062
- import React22, { useState as useState9, useEffect as useEffect3, useRef as useRef3 } from "react";
2067
+ import React22, { useState as useState8, useEffect as useEffect3, useRef as useRef3 } from "react";
2063
2068
  var AdCard = ({
2064
2069
  orientation = "vertical",
2065
2070
  ...props
2066
2071
  }) => {
2067
2072
  const adRef = useRef3(null);
2068
- const [closed, setClosed] = useState9(false);
2073
+ const [closed, setClosed] = useState8(false);
2069
2074
  let duration = 0;
2070
2075
  useEffect3(() => {
2071
2076
  if (duration) {
@@ -2255,7 +2260,7 @@ var PricingCard = ({
2255
2260
  };
2256
2261
 
2257
2262
  // blocks/cards/ItemCard.tsx
2258
- import React24, { useEffect as useEffect4, useState as useState10 } from "react";
2263
+ import React24, { useEffect as useEffect4, useState as useState9 } from "react";
2259
2264
  var ItemCard = ({
2260
2265
  actions,
2261
2266
  counts,
@@ -2284,7 +2289,7 @@ var ItemCard = ({
2284
2289
  )
2285
2290
  };
2286
2291
  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";
2287
- const [openActionHeader, setOpenActionHeader] = useState10(false);
2292
+ const [openActionHeader, setOpenActionHeader] = useState9(false);
2288
2293
  function handleOpenActionHeader(e) {
2289
2294
  e.stopPropagation();
2290
2295
  setOpenActionHeader(!openActionHeader);
@@ -2616,9 +2621,9 @@ var ComparingPlans = (props) => {
2616
2621
  };
2617
2622
 
2618
2623
  // blocks/pricing/HorizontalPricing.tsx
2619
- import React28, { useState as useState11 } from "react";
2624
+ import React28, { useState as useState10 } from "react";
2620
2625
  var HorizontalPricing = (props) => {
2621
- const [selectedCard, setSelectedCard] = useState11("");
2626
+ const [selectedCard, setSelectedCard] = useState10("");
2622
2627
  let data = [
2623
2628
  { title: "basic", price: "$49", cycle: "/mo" },
2624
2629
  { title: "business", price: "$99", cycle: "/mo" },
package/dist/index.d.mts 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
- passwordChanged: any;
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.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
- passwordChanged: any;
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