@sikka/hawa 0.10.20-next → 0.10.22-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/index.css CHANGED
@@ -557,6 +557,19 @@ video {
557
557
  --tw-backdrop-saturate: ;
558
558
  --tw-backdrop-sepia: ;
559
559
  }
560
+ .hawa-container {
561
+ width: 100%;
562
+ margin-right: auto;
563
+ margin-left: auto;
564
+ padding-right: 2rem;
565
+ padding-left: 2rem;
566
+ }
567
+ @media (min-width: 1400px) {
568
+
569
+ .hawa-container {
570
+ max-width: 1400px;
571
+ }
572
+ }
560
573
  .link::after {
561
574
  content: url("data:image/svg+xml,%3Csvg stroke='%234c37eb' fill='none' stroke-width='2' viewBox='0 0 24 24' aria-hidden='true' height='1em' width='1em' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14'%3E%3C/path%3E%3C/svg%3E");
562
575
  display: inline-block;
@@ -876,6 +889,10 @@ input[type="number"]::-webkit-inner-spin-button,
876
889
  margin-left: 1rem;
877
890
  margin-right: 1rem;
878
891
  }
892
+ .hawa-mx-auto {
893
+ margin-left: auto;
894
+ margin-right: auto;
895
+ }
879
896
  .hawa-my-0 {
880
897
  margin-top: 0px;
881
898
  margin-bottom: 0px;
@@ -1586,6 +1603,11 @@ input[type="number"]::-webkit-inner-spin-button,
1586
1603
  margin-top: calc(0.375rem * calc(1 - var(--tw-space-y-reverse)));
1587
1604
  margin-bottom: calc(0.375rem * var(--tw-space-y-reverse));
1588
1605
  }
1606
+ .hawa-space-y-2 > :not([hidden]) ~ :not([hidden]) {
1607
+ --tw-space-y-reverse: 0;
1608
+ margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));
1609
+ margin-bottom: calc(0.5rem * var(--tw-space-y-reverse));
1610
+ }
1589
1611
  .hawa-space-y-4 > :not([hidden]) ~ :not([hidden]) {
1590
1612
  --tw-space-y-reverse: 0;
1591
1613
  margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
package/dist/index.d.mts CHANGED
@@ -905,7 +905,9 @@ type CopyRightsTypes = {
905
905
  declare const Copyrights: FC<CopyRightsTypes>;
906
906
 
907
907
  type NavbarType = {
908
- test?: any;
908
+ logo?: any;
909
+ buttons?: any;
910
+ menuItems?: any;
909
911
  };
910
912
  declare const Navbar: React__default.FC<NavbarType>;
911
913
 
@@ -957,7 +959,7 @@ type LoginFormTypes = {
957
959
  /** If true, the reset password option is hidden. */
958
960
  withoutResetPassword?: boolean;
959
961
  /** If true, the register option is hidden. */
960
- withoutRegister?: boolean;
962
+ allowRegister?: boolean;
961
963
  /** If true, a loading spinner is displayed within the main form submit button. */
962
964
  isLoading?: boolean;
963
965
  /** If true, a loading spinner is displayed within the Google login button. */
@@ -986,6 +988,7 @@ type LoginFormTypes = {
986
988
  onTwitterLogin?: () => void;
987
989
  /** Additional buttons to add under the login button */
988
990
  additionalButtons?: any;
991
+ passwordLength?: number;
989
992
  };
990
993
  declare const LoginForm: FC<LoginFormTypes>;
991
994
 
package/dist/index.d.ts CHANGED
@@ -905,7 +905,9 @@ type CopyRightsTypes = {
905
905
  declare const Copyrights: FC<CopyRightsTypes>;
906
906
 
907
907
  type NavbarType = {
908
- test?: any;
908
+ logo?: any;
909
+ buttons?: any;
910
+ menuItems?: any;
909
911
  };
910
912
  declare const Navbar: React__default.FC<NavbarType>;
911
913
 
@@ -957,7 +959,7 @@ type LoginFormTypes = {
957
959
  /** If true, the reset password option is hidden. */
958
960
  withoutResetPassword?: boolean;
959
961
  /** If true, the register option is hidden. */
960
- withoutRegister?: boolean;
962
+ allowRegister?: boolean;
961
963
  /** If true, a loading spinner is displayed within the main form submit button. */
962
964
  isLoading?: boolean;
963
965
  /** If true, a loading spinner is displayed within the Google login button. */
@@ -986,6 +988,7 @@ type LoginFormTypes = {
986
988
  onTwitterLogin?: () => void;
987
989
  /** Additional buttons to add under the login button */
988
990
  additionalButtons?: any;
991
+ passwordLength?: number;
989
992
  };
990
993
  declare const LoginForm: FC<LoginFormTypes>;
991
994
 
package/dist/index.js CHANGED
@@ -6853,33 +6853,62 @@ var Copyrights = function(props) {
6853
6853
  };
6854
6854
  // components/layout/Navbar.tsx
6855
6855
  var import_react37 = __toESM(require("react"));
6856
- var Navbar = function(_param) {
6857
- var test = _param.test, props = _object_without_properties(_param, [
6858
- "test"
6859
- ]);
6860
- return /* @__PURE__ */ import_react37.default.createElement("div", {
6861
- className: "hawa-flex hawa-flex-row hawa-justify-between hawa-items-center hawa-bg-card hawa-p-4 hawa-rounded hawa-border"
6862
- }, /* @__PURE__ */ import_react37.default.createElement("div", null, /* @__PURE__ */ import_react37.default.createElement(Logos.sikka, {
6863
- className: "hawa-h-8 hawa-w-8"
6864
- })), /* @__PURE__ */ import_react37.default.createElement("div", null, /* @__PURE__ */ import_react37.default.createElement(NavigationMenu, {
6865
- direction: "ltr",
6866
- rootClassNames: "hawa-w-fit",
6867
- viewportClassNames: "hawa-max-w-md",
6868
- items: [
6869
- {
6870
- trigger: "item 2",
6871
- action: function() {
6872
- return console.log("clicked on item");
6873
- }
6874
- },
6875
- {
6876
- trigger: "item 3",
6877
- content: /* @__PURE__ */ import_react37.default.createElement("div", {
6878
- className: "hawa-p-4"
6879
- }, "something here")
6880
- }
6881
- ]
6882
- })), /* @__PURE__ */ import_react37.default.createElement("div", null, /* @__PURE__ */ import_react37.default.createElement(Button, null, "Login")));
6856
+ // components/elements/Collapsible.tsx
6857
+ var CollapsiblePrimitive = __toESM(require("@radix-ui/react-collapsible"));
6858
+ var Collapsible = CollapsiblePrimitive.Root;
6859
+ var CollapsibleTrigger2 = CollapsiblePrimitive.CollapsibleTrigger;
6860
+ var CollapsibleContent2 = CollapsiblePrimitive.CollapsibleContent;
6861
+ // components/layout/Navbar.tsx
6862
+ var Navbar = function(props) {
6863
+ var _ref = _sliced_to_array((0, import_react37.useState)(false), 2), isOpen = _ref[0], setIsOpen = _ref[1];
6864
+ return /* @__PURE__ */ import_react37.default.createElement("nav", {
6865
+ className: "hawa-bg-gray-800 hawa-p-4 hawa-transition-all"
6866
+ }, /* @__PURE__ */ import_react37.default.createElement(Collapsible, null, /* @__PURE__ */ import_react37.default.createElement("div", {
6867
+ className: "hawa-container hawa-mx-auto hawa-flex hawa-justify-between hawa-items-center"
6868
+ }, /* @__PURE__ */ import_react37.default.createElement("div", {
6869
+ className: "hawa-flex hawa-items-center"
6870
+ }, /* @__PURE__ */ import_react37.default.createElement("a", {
6871
+ href: "/",
6872
+ className: "hawa-text-white hawa-text-xl hawa-font-bold"
6873
+ }, "YourLogo")), /* @__PURE__ */ import_react37.default.createElement("div", {
6874
+ className: "hawa-hidden hawa-md:hawa-flex hawa-space-x-4"
6875
+ }, /* @__PURE__ */ import_react37.default.createElement("a", {
6876
+ href: "/about",
6877
+ className: "hawa-text-white"
6878
+ }, "About"), /* @__PURE__ */ import_react37.default.createElement("a", {
6879
+ href: "/services",
6880
+ className: "hawa-text-white"
6881
+ }, "Services"), /* @__PURE__ */ import_react37.default.createElement("a", {
6882
+ href: "/contact",
6883
+ className: "hawa-text-white"
6884
+ }, "Contact")), /* @__PURE__ */ import_react37.default.createElement("div", {
6885
+ className: "hawa-md:hawa-hidden"
6886
+ }, /* @__PURE__ */ import_react37.default.createElement(CollapsibleTrigger2, {
6887
+ className: "hawa-text-white hawa-p-2",
6888
+ "aria-label": "Toggle menu"
6889
+ }, /* @__PURE__ */ import_react37.default.createElement("svg", {
6890
+ className: "hawa-w-6 hawa-h-6",
6891
+ fill: "none",
6892
+ stroke: "currentColor",
6893
+ viewBox: "0 0 24 24",
6894
+ xmlns: "http://www.w3.org/2000/svg"
6895
+ }, /* @__PURE__ */ import_react37.default.createElement("path", {
6896
+ strokeLinecap: "round",
6897
+ strokeLinejoin: "round",
6898
+ strokeWidth: "2",
6899
+ d: "M4 6h16M4 12h16m-7 6h7"
6900
+ }))))), /* @__PURE__ */ import_react37.default.createElement(CollapsibleContent2, {
6901
+ className: "hwa-transition-all hawa-fade-in-0 data-[state=open]:hawa-zoom-in-95 data-[state=open]:hawa-animate-in hawa-flex hawa-flex-col hawa-space-y-2 hawa-mt-4"
6902
+ }, /* @__PURE__ */ import_react37.default.createElement("a", {
6903
+ href: "/about",
6904
+ className: "hawa-text-white hawa-px-2"
6905
+ }, "About"), /* @__PURE__ */ import_react37.default.createElement("a", {
6906
+ href: "/services",
6907
+ className: "hawa-text-white hawa-px-2"
6908
+ }, "Services"), /* @__PURE__ */ import_react37.default.createElement("a", {
6909
+ href: "/contact",
6910
+ className: "hawa-text-white hawa-px-2"
6911
+ }, "Contact"))));
6883
6912
  };
6884
6913
  // components/blocks/auth/LoginForm.tsx
6885
6914
  var import_react38 = __toESM(require("react"));
@@ -6888,9 +6917,10 @@ var import_zod = require("@hookform/resolvers/zod");
6888
6917
  var import_libphonenumber_js = require("libphonenumber-js");
6889
6918
  var z = __toESM(require("zod"));
6890
6919
  var LoginForm = function(_param) {
6891
- var loginType = _param.loginType, texts = _param.texts, props = _object_without_properties(_param, [
6920
+ var loginType = _param.loginType, texts = _param.texts, _param_passwordLength = _param.passwordLength, passwordLength = _param_passwordLength === void 0 ? 8 : _param_passwordLength, props = _object_without_properties(_param, [
6892
6921
  "loginType",
6893
- "texts"
6922
+ "texts",
6923
+ "passwordLength"
6894
6924
  ]);
6895
6925
  var formSchema;
6896
6926
  if (loginType === "email") {
@@ -6906,7 +6936,7 @@ var LoginForm = function(_param) {
6906
6936
  required_error: texts === null || texts === void 0 ? void 0 : texts.passwordRequired
6907
6937
  }).min(1, {
6908
6938
  message: texts === null || texts === void 0 ? void 0 : texts.passwordRequired
6909
- }).min(8, {
6939
+ }).min(passwordLength, {
6910
6940
  message: texts === null || texts === void 0 ? void 0 : texts.passwordTooShort
6911
6941
  })
6912
6942
  });
@@ -6926,7 +6956,7 @@ var LoginForm = function(_param) {
6926
6956
  required_error: texts === null || texts === void 0 ? void 0 : texts.passwordRequired
6927
6957
  }).min(1, {
6928
6958
  message: texts === null || texts === void 0 ? void 0 : texts.passwordRequired
6929
- }).min(8, {
6959
+ }).min(passwordLength, {
6930
6960
  message: texts === null || texts === void 0 ? void 0 : texts.passwordTooShort
6931
6961
  })
6932
6962
  });
@@ -7089,7 +7119,7 @@ var LoginForm = function(_param) {
7089
7119
  className: "hawa-mt-0 hawa-w-full",
7090
7120
  type: "submit",
7091
7121
  isLoading: props.isLoading
7092
- }, (texts === null || texts === void 0 ? void 0 : texts.loginText) || "Login"), props.additionalButtons, !props.withoutRegister && /* @__PURE__ */ import_react38.default.createElement("div", {
7122
+ }, (texts === null || texts === void 0 ? void 0 : texts.loginText) || "Login"), props.additionalButtons, props.allowRegister && /* @__PURE__ */ import_react38.default.createElement("div", {
7093
7123
  className: "hawa-p-3 hawa-text-center hawa-text-sm hawa-font-normal hawa-select-none dark:hawa-text-gray-300"
7094
7124
  }, (texts === null || texts === void 0 ? void 0 : texts.newUserText) || "New user?", " ", /* @__PURE__ */ import_react38.default.createElement("span", {
7095
7125
  onClick: props.onRouteToRegister,
package/dist/index.mjs CHANGED
@@ -6733,26 +6733,43 @@ var Copyrights = (props) => {
6733
6733
  };
6734
6734
 
6735
6735
  // components/layout/Navbar.tsx
6736
- import React57 from "react";
6737
- var Navbar = ({ test, ...props }) => {
6738
- return /* @__PURE__ */ React57.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between hawa-items-center hawa-bg-card hawa-p-4 hawa-rounded hawa-border" }, /* @__PURE__ */ React57.createElement("div", null, /* @__PURE__ */ React57.createElement(Logos.sikka, { className: "hawa-h-8 hawa-w-8" })), /* @__PURE__ */ React57.createElement("div", null, /* @__PURE__ */ React57.createElement(
6739
- NavigationMenu,
6740
- {
6741
- direction: "ltr",
6742
- rootClassNames: "hawa-w-fit",
6743
- viewportClassNames: "hawa-max-w-md",
6744
- items: [
6745
- {
6746
- trigger: "item 2",
6747
- action: () => console.log("clicked on item")
6748
- },
6736
+ import React57, { useState as useState21 } from "react";
6737
+
6738
+ // components/elements/Collapsible.tsx
6739
+ import * as CollapsiblePrimitive from "@radix-ui/react-collapsible";
6740
+ var Collapsible = CollapsiblePrimitive.Root;
6741
+ var CollapsibleTrigger2 = CollapsiblePrimitive.CollapsibleTrigger;
6742
+ var CollapsibleContent2 = CollapsiblePrimitive.CollapsibleContent;
6743
+
6744
+ // components/layout/Navbar.tsx
6745
+ var Navbar = (props) => {
6746
+ const [isOpen, setIsOpen] = useState21(false);
6747
+ return /* @__PURE__ */ React57.createElement("nav", { className: "hawa-bg-gray-800 hawa-p-4 hawa-transition-all" }, /* @__PURE__ */ React57.createElement(Collapsible, null, /* @__PURE__ */ React57.createElement("div", { className: "hawa-container hawa-mx-auto hawa-flex hawa-justify-between hawa-items-center" }, /* @__PURE__ */ React57.createElement("div", { className: "hawa-flex hawa-items-center" }, /* @__PURE__ */ React57.createElement("a", { href: "/", className: "hawa-text-white hawa-text-xl hawa-font-bold" }, "YourLogo")), /* @__PURE__ */ React57.createElement("div", { className: "hawa-hidden hawa-md:hawa-flex hawa-space-x-4" }, /* @__PURE__ */ React57.createElement("a", { href: "/about", className: "hawa-text-white" }, "About"), /* @__PURE__ */ React57.createElement("a", { href: "/services", className: "hawa-text-white" }, "Services"), /* @__PURE__ */ React57.createElement("a", { href: "/contact", className: "hawa-text-white" }, "Contact")), /* @__PURE__ */ React57.createElement("div", { className: "hawa-md:hawa-hidden" }, /* @__PURE__ */ React57.createElement(
6748
+ CollapsibleTrigger2,
6749
+ {
6750
+ className: "hawa-text-white hawa-p-2",
6751
+ "aria-label": "Toggle menu"
6752
+ },
6753
+ /* @__PURE__ */ React57.createElement(
6754
+ "svg",
6755
+ {
6756
+ className: "hawa-w-6 hawa-h-6",
6757
+ fill: "none",
6758
+ stroke: "currentColor",
6759
+ viewBox: "0 0 24 24",
6760
+ xmlns: "http://www.w3.org/2000/svg"
6761
+ },
6762
+ /* @__PURE__ */ React57.createElement(
6763
+ "path",
6749
6764
  {
6750
- trigger: "item 3",
6751
- content: /* @__PURE__ */ React57.createElement("div", { className: "hawa-p-4" }, "something here")
6765
+ strokeLinecap: "round",
6766
+ strokeLinejoin: "round",
6767
+ strokeWidth: "2",
6768
+ d: "M4 6h16M4 12h16m-7 6h7"
6752
6769
  }
6753
- ]
6754
- }
6755
- )), /* @__PURE__ */ React57.createElement("div", null, /* @__PURE__ */ React57.createElement(Button, null, "Login")));
6770
+ )
6771
+ )
6772
+ ))), /* @__PURE__ */ React57.createElement(CollapsibleContent2, { className: "hwa-transition-all hawa-fade-in-0 data-[state=open]:hawa-zoom-in-95 data-[state=open]:hawa-animate-in hawa-flex hawa-flex-col hawa-space-y-2 hawa-mt-4" }, /* @__PURE__ */ React57.createElement("a", { href: "/about", className: "hawa-text-white hawa-px-2" }, "About"), /* @__PURE__ */ React57.createElement("a", { href: "/services", className: "hawa-text-white hawa-px-2" }, "Services"), /* @__PURE__ */ React57.createElement("a", { href: "/contact", className: "hawa-text-white hawa-px-2" }, "Contact"))));
6756
6773
  };
6757
6774
 
6758
6775
  // components/blocks/auth/LoginForm.tsx
@@ -6764,13 +6781,14 @@ import * as z from "zod";
6764
6781
  var LoginForm = ({
6765
6782
  loginType,
6766
6783
  texts,
6784
+ passwordLength = 8,
6767
6785
  ...props
6768
6786
  }) => {
6769
6787
  let formSchema;
6770
6788
  if (loginType === "email") {
6771
6789
  formSchema = z.object({
6772
6790
  email: z.string({ required_error: texts?.emailRequired }).min(1, { message: texts?.emailRequired }).email({ message: texts?.emailInvalid }),
6773
- password: z.string({ required_error: texts?.passwordRequired }).min(1, { message: texts?.passwordRequired }).min(8, { message: texts?.passwordTooShort })
6791
+ password: z.string({ required_error: texts?.passwordRequired }).min(1, { message: texts?.passwordRequired }).min(passwordLength, { message: texts?.passwordTooShort })
6774
6792
  });
6775
6793
  } else if (loginType === "username") {
6776
6794
  formSchema = z.object({
@@ -6781,7 +6799,7 @@ var LoginForm = ({
6781
6799
  },
6782
6800
  { message: texts?.usernameInvalid }
6783
6801
  ),
6784
- password: z.string({ required_error: texts?.passwordRequired }).min(1, { message: texts?.passwordRequired }).min(8, { message: texts?.passwordTooShort })
6802
+ password: z.string({ required_error: texts?.passwordRequired }).min(1, { message: texts?.passwordRequired }).min(passwordLength, { message: texts?.passwordTooShort })
6785
6803
  });
6786
6804
  } else if (loginType === "phone") {
6787
6805
  formSchema = z.object({
@@ -6965,7 +6983,7 @@ var LoginForm = ({
6965
6983
  texts?.loginText || "Login"
6966
6984
  ),
6967
6985
  props.additionalButtons,
6968
- !props.withoutRegister && /* @__PURE__ */ React58.createElement("div", { className: "hawa-p-3 hawa-text-center hawa-text-sm hawa-font-normal hawa-select-none dark:hawa-text-gray-300" }, texts?.newUserText || "New user?", " ", /* @__PURE__ */ React58.createElement(
6986
+ props.allowRegister && /* @__PURE__ */ React58.createElement("div", { className: "hawa-p-3 hawa-text-center hawa-text-sm hawa-font-normal hawa-select-none dark:hawa-text-gray-300" }, texts?.newUserText || "New user?", " ", /* @__PURE__ */ React58.createElement(
6969
6987
  "span",
6970
6988
  {
6971
6989
  onClick: props.onRouteToRegister,
@@ -7486,7 +7504,7 @@ var CheckEmail = ({ texts, handleResend }) => {
7486
7504
  };
7487
7505
 
7488
7506
  // components/blocks/auth/NewPassword.tsx
7489
- import React62, { useState as useState22 } from "react";
7507
+ import React62, { useState as useState23 } from "react";
7490
7508
  import { Controller as Controller4, useForm as useForm3 } from "react-hook-form";
7491
7509
  import { zodResolver as zodResolver3 } from "@hookform/resolvers/zod";
7492
7510
  import * as z3 from "zod";
@@ -7503,7 +7521,7 @@ var NewPasswordForm = ({ texts, ...props }) => {
7503
7521
  const { handleSubmit, control, formState } = useForm3({
7504
7522
  resolver: zodResolver3(formSchema)
7505
7523
  });
7506
- const [matchError, setMatchError] = useState22(false);
7524
+ const [matchError, setMatchError] = useState23(false);
7507
7525
  return /* @__PURE__ */ React62.createElement(Card, { dir: props.direction }, matchError && /* @__PURE__ */ React62.createElement(Alert, { text: texts?.passwordMatchError, severity: "error" }), props.passwordChanged ? /* @__PURE__ */ React62.createElement(CardContent, { headless: true }, /* @__PURE__ */ React62.createElement("div", { className: "hawa-text-center" }, texts?.passwordChanged)) : /* @__PURE__ */ React62.createElement(
7508
7526
  "form",
7509
7527
  {
@@ -7676,17 +7694,17 @@ var CodeConfirmation = (props) => {
7676
7694
  };
7677
7695
 
7678
7696
  // components/blocks/feedback/UserReferralSource.tsx
7679
- import React65, { useEffect as useEffect15, useRef as useRef8, useState as useState24 } from "react";
7697
+ import React65, { useEffect as useEffect15, useRef as useRef8, useState as useState25 } from "react";
7680
7698
  import clsx12 from "clsx";
7681
7699
  var UserReferralSource = ({
7682
7700
  position = "bottom-right",
7683
7701
  options = [],
7684
7702
  ...props
7685
7703
  }) => {
7686
- const [closed, setClosed] = useState24(false);
7687
- const [answered, setAnswered] = useState24(false);
7688
- const [clickedOption, setClickedOption] = useState24(null);
7689
- const [closingTimer, setClosingTimer] = useState24(5);
7704
+ const [closed, setClosed] = useState25(false);
7705
+ const [answered, setAnswered] = useState25(false);
7706
+ const [clickedOption, setClickedOption] = useState25(null);
7707
+ const [closingTimer, setClosingTimer] = useState25(5);
7690
7708
  const popUpRef = useRef8(null);
7691
7709
  const boxPosition = {
7692
7710
  "bottom-right": "hawa-right-4",
@@ -7762,16 +7780,16 @@ var UserReferralSource = ({
7762
7780
  };
7763
7781
 
7764
7782
  // components/blocks/feedback/FeedbackRating.tsx
7765
- import React66, { useEffect as useEffect16, useRef as useRef9, useState as useState25 } from "react";
7783
+ import React66, { useEffect as useEffect16, useRef as useRef9, useState as useState26 } from "react";
7766
7784
  import clsx13 from "clsx";
7767
7785
  var FeedbackRating = ({
7768
7786
  position = "bottom-right",
7769
7787
  ...props
7770
7788
  }) => {
7771
- const [closed, setClosed] = useState25(false);
7772
- const [answered, setAnswered] = useState25(false);
7773
- const [clickedOption, setClickedOption] = useState25(null);
7774
- const [closingTimer, setClosingTimer] = useState25(5);
7789
+ const [closed, setClosed] = useState26(false);
7790
+ const [answered, setAnswered] = useState26(false);
7791
+ const [clickedOption, setClickedOption] = useState26(null);
7792
+ const [closingTimer, setClosingTimer] = useState26(5);
7775
7793
  const popUpRef = useRef9(null);
7776
7794
  const boxPosition = {
7777
7795
  "bottom-right": "hawa-right-4",
@@ -7876,12 +7894,12 @@ var FeedbackRating = ({
7876
7894
  };
7877
7895
 
7878
7896
  // components/blocks/feedback/FeedbackEmoji.tsx
7879
- import React67, { useState as useState26 } from "react";
7897
+ import React67, { useState as useState27 } from "react";
7880
7898
  var FeedbackEmoji = (props) => {
7881
- const [selectedEmoji, setSelectedEmoji] = useState26(null);
7882
- const [loadingSubmit, setLoadingSubmit] = useState26(false);
7883
- const [feedbackText, setFeedbackText] = useState26("");
7884
- const [helperText, setHelperText] = useState26(false);
7899
+ const [selectedEmoji, setSelectedEmoji] = useState27(null);
7900
+ const [loadingSubmit, setLoadingSubmit] = useState27(false);
7901
+ const [feedbackText, setFeedbackText] = useState27("");
7902
+ const [helperText, setHelperText] = useState27(false);
7885
7903
  let emojis = [
7886
7904
  { icon: /* @__PURE__ */ React67.createElement(VeryGoodEmoji, null), value: "very-good" },
7887
7905
  { icon: /* @__PURE__ */ React67.createElement(GoodEmoji, null), value: "good" },
@@ -8342,7 +8360,7 @@ var PricingPlans = (props) => {
8342
8360
  };
8343
8361
 
8344
8362
  // components/blocks/pricing/ComparingPlans.tsx
8345
- import React77, { useState as useState27 } from "react";
8363
+ import React77, { useState as useState28 } from "react";
8346
8364
  var CheckMark = () => /* @__PURE__ */ React77.createElement(
8347
8365
  "svg",
8348
8366
  {
@@ -8378,8 +8396,8 @@ var UncheckMark = () => /* @__PURE__ */ React77.createElement(
8378
8396
  )
8379
8397
  );
8380
8398
  var ComparingPlans = (props) => {
8381
- const [currentCurrency, setCurrentCurrency] = useState27("sar");
8382
- const [currentCycle, setCurrentCycle] = useState27("month");
8399
+ const [currentCurrency, setCurrentCurrency] = useState28("sar");
8400
+ const [currentCycle, setCurrentCycle] = useState28("month");
8383
8401
  return /* @__PURE__ */ React77.createElement("div", { id: "detailed-pricing", className: "hawa-w-full hawa-overflow-x-auto" }, /* @__PURE__ */ React77.createElement("div", { className: "hawa-mb-2 hawa-flex hawa-w-full hawa-justify-between" }, /* @__PURE__ */ React77.createElement(
8384
8402
  Radio,
8385
8403
  {
@@ -8437,10 +8455,10 @@ var ComparingPlans = (props) => {
8437
8455
  };
8438
8456
 
8439
8457
  // components/blocks/pricing/HorizontalPricing.tsx
8440
- import React78, { useState as useState28 } from "react";
8458
+ import React78, { useState as useState29 } from "react";
8441
8459
  import clsx14 from "clsx";
8442
8460
  var HorizontalPricing = (props) => {
8443
- const [selectedCard, setSelectedCard] = useState28("");
8461
+ const [selectedCard, setSelectedCard] = useState29("");
8444
8462
  let data = [
8445
8463
  { title: "basic", price: "$49", cycle: "/mo" },
8446
8464
  { title: "business", price: "$99", cycle: "/mo" },
@@ -8551,18 +8569,18 @@ var Usage = (props) => {
8551
8569
  };
8552
8570
 
8553
8571
  // components/hooks/useDiscloser.ts
8554
- import { useState as useState29 } from "react";
8572
+ import { useState as useState30 } from "react";
8555
8573
 
8556
8574
  // components/hooks/useHover.ts
8557
- import { useEffect as useEffect17, useRef as useRef10, useState as useState30 } from "react";
8575
+ import { useEffect as useEffect17, useRef as useRef10, useState as useState31 } from "react";
8558
8576
 
8559
8577
  // components/hooks/useCarousel.ts
8560
- import { useState as useState31, useRef as useRef11 } from "react";
8578
+ import { useState as useState32, useRef as useRef11 } from "react";
8561
8579
 
8562
8580
  // components/hooks/useWindowSize.ts
8563
- import { useEffect as useEffect18, useState as useState32 } from "react";
8581
+ import { useEffect as useEffect18, useState as useState33 } from "react";
8564
8582
  var useWindowSize = () => {
8565
- const [windowSize, setWindowSize] = useState32({
8583
+ const [windowSize, setWindowSize] = useState33({
8566
8584
  width: void 0,
8567
8585
  height: void 0
8568
8586
  });
@@ -8581,7 +8599,7 @@ var useWindowSize = () => {
8581
8599
  };
8582
8600
 
8583
8601
  // components/hooks/useFocusWithin.ts
8584
- import { useRef as useRef12, useState as useState33, useEffect as useEffect19 } from "react";
8602
+ import { useRef as useRef12, useState as useState34, useEffect as useEffect19 } from "react";
8585
8603
  function containsRelatedTarget(event) {
8586
8604
  if (event.currentTarget instanceof HTMLElement && event.relatedTarget instanceof HTMLElement) {
8587
8605
  return event.currentTarget.contains(event.relatedTarget);
@@ -8593,7 +8611,7 @@ function useFocusWithin({
8593
8611
  onFocus
8594
8612
  } = {}) {
8595
8613
  const ref = useRef12(null);
8596
- const [focused, _setFocused] = useState33(false);
8614
+ const [focused, _setFocused] = useState34(false);
8597
8615
  const focusedRef = useRef12(false);
8598
8616
  const setFocused = (value) => {
8599
8617
  _setFocused(value);
@@ -8626,7 +8644,7 @@ function useFocusWithin({
8626
8644
  }
8627
8645
 
8628
8646
  // components/hooks/useMediaQuery.ts
8629
- import { useState as useState34, useEffect as useEffect20, useRef as useRef13 } from "react";
8647
+ import { useState as useState35, useEffect as useEffect20, useRef as useRef13 } from "react";
8630
8648
  function attachMediaListener(query, callback) {
8631
8649
  try {
8632
8650
  query.addEventListener("change", callback);
@@ -8648,7 +8666,7 @@ function getInitialValue(query, initialValue) {
8648
8666
  function useMediaQuery(query, initialValue, { getInitialValueInEffect } = {
8649
8667
  getInitialValueInEffect: true
8650
8668
  }) {
8651
- const [matches, setMatches] = useState34(
8669
+ const [matches, setMatches] = useState35(
8652
8670
  getInitialValueInEffect ? initialValue : getInitialValue(query, initialValue)
8653
8671
  );
8654
8672
  const queryRef = useRef13();
@@ -8667,15 +8685,15 @@ function useMediaQuery(query, initialValue, { getInitialValueInEffect } = {
8667
8685
  }
8668
8686
 
8669
8687
  // components/hooks/useScrollPosition.ts
8670
- import { useState as useState35, useEffect as useEffect21 } from "react";
8688
+ import { useState as useState36, useEffect as useEffect21 } from "react";
8671
8689
 
8672
8690
  // components/hooks/useTable.ts
8673
- import { useState as useState36, useEffect as useEffect22 } from "react";
8691
+ import { useState as useState37, useEffect as useEffect22 } from "react";
8674
8692
 
8675
8693
  // components/hooks/useTabs.ts
8676
- import { useEffect as useEffect23, useState as useState37 } from "react";
8694
+ import { useEffect as useEffect23, useState as useState38 } from "react";
8677
8695
  function useTabs(initialTab = "") {
8678
- const [activeTab, setActiveTab] = useState37(initialTab);
8696
+ const [activeTab, setActiveTab] = useState38(initialTab);
8679
8697
  useEffect23(() => {
8680
8698
  const handleHashChange = () => {
8681
8699
  const hash = window.location.hash.substring(1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sikka/hawa",
3
- "version": "0.10.20-next",
3
+ "version": "0.10.22-next",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {
@@ -28,6 +28,7 @@
28
28
  "@hookform/resolvers": "^3.3.1",
29
29
  "@radix-ui/react-accordion": "^1.1.2",
30
30
  "@radix-ui/react-checkbox": "^1.0.4",
31
+ "@radix-ui/react-collapsible": "^1.0.3",
31
32
  "@radix-ui/react-dialog": "^1.0.5",
32
33
  "@radix-ui/react-dropdown-menu": "^2.0.6",
33
34
  "@radix-ui/react-label": "^2.0.2",