@sikka/hawa 0.10.20-next → 0.10.21-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 +22 -0
- package/dist/index.d.mts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +57 -28
- package/dist/index.mjs +71 -54
- package/package.json +2 -1
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
|
-
|
|
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
|
-
|
|
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. */
|
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
|
-
|
|
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
|
-
|
|
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. */
|
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
|
-
|
|
6857
|
-
|
|
6858
|
-
|
|
6859
|
-
|
|
6860
|
-
|
|
6861
|
-
|
|
6862
|
-
|
|
6863
|
-
|
|
6864
|
-
|
|
6865
|
-
|
|
6866
|
-
|
|
6867
|
-
|
|
6868
|
-
|
|
6869
|
-
|
|
6870
|
-
|
|
6871
|
-
|
|
6872
|
-
|
|
6873
|
-
|
|
6874
|
-
|
|
6875
|
-
|
|
6876
|
-
|
|
6877
|
-
|
|
6878
|
-
|
|
6879
|
-
|
|
6880
|
-
|
|
6881
|
-
|
|
6882
|
-
|
|
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"));
|
|
@@ -7089,7 +7118,7 @@ var LoginForm = function(_param) {
|
|
|
7089
7118
|
className: "hawa-mt-0 hawa-w-full",
|
|
7090
7119
|
type: "submit",
|
|
7091
7120
|
isLoading: props.isLoading
|
|
7092
|
-
}, (texts === null || texts === void 0 ? void 0 : texts.loginText) || "Login"), props.additionalButtons,
|
|
7121
|
+
}, (texts === null || texts === void 0 ? void 0 : texts.loginText) || "Login"), props.additionalButtons, props.allowRegister && /* @__PURE__ */ import_react38.default.createElement("div", {
|
|
7093
7122
|
className: "hawa-p-3 hawa-text-center hawa-text-sm hawa-font-normal hawa-select-none dark:hawa-text-gray-300"
|
|
7094
7123
|
}, (texts === null || texts === void 0 ? void 0 : texts.newUserText) || "New user?", " ", /* @__PURE__ */ import_react38.default.createElement("span", {
|
|
7095
7124
|
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
|
-
|
|
6738
|
-
|
|
6739
|
-
|
|
6740
|
-
|
|
6741
|
-
|
|
6742
|
-
|
|
6743
|
-
|
|
6744
|
-
|
|
6745
|
-
|
|
6746
|
-
|
|
6747
|
-
|
|
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
|
-
|
|
6751
|
-
|
|
6765
|
+
strokeLinecap: "round",
|
|
6766
|
+
strokeLinejoin: "round",
|
|
6767
|
+
strokeWidth: "2",
|
|
6768
|
+
d: "M4 6h16M4 12h16m-7 6h7"
|
|
6752
6769
|
}
|
|
6753
|
-
|
|
6754
|
-
|
|
6755
|
-
)), /* @__PURE__ */ React57.createElement("
|
|
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
|
|
@@ -6965,7 +6982,7 @@ var LoginForm = ({
|
|
|
6965
6982
|
texts?.loginText || "Login"
|
|
6966
6983
|
),
|
|
6967
6984
|
props.additionalButtons,
|
|
6968
|
-
|
|
6985
|
+
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
6986
|
"span",
|
|
6970
6987
|
{
|
|
6971
6988
|
onClick: props.onRouteToRegister,
|
|
@@ -7486,7 +7503,7 @@ var CheckEmail = ({ texts, handleResend }) => {
|
|
|
7486
7503
|
};
|
|
7487
7504
|
|
|
7488
7505
|
// components/blocks/auth/NewPassword.tsx
|
|
7489
|
-
import React62, { useState as
|
|
7506
|
+
import React62, { useState as useState23 } from "react";
|
|
7490
7507
|
import { Controller as Controller4, useForm as useForm3 } from "react-hook-form";
|
|
7491
7508
|
import { zodResolver as zodResolver3 } from "@hookform/resolvers/zod";
|
|
7492
7509
|
import * as z3 from "zod";
|
|
@@ -7503,7 +7520,7 @@ var NewPasswordForm = ({ texts, ...props }) => {
|
|
|
7503
7520
|
const { handleSubmit, control, formState } = useForm3({
|
|
7504
7521
|
resolver: zodResolver3(formSchema)
|
|
7505
7522
|
});
|
|
7506
|
-
const [matchError, setMatchError] =
|
|
7523
|
+
const [matchError, setMatchError] = useState23(false);
|
|
7507
7524
|
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
7525
|
"form",
|
|
7509
7526
|
{
|
|
@@ -7676,17 +7693,17 @@ var CodeConfirmation = (props) => {
|
|
|
7676
7693
|
};
|
|
7677
7694
|
|
|
7678
7695
|
// components/blocks/feedback/UserReferralSource.tsx
|
|
7679
|
-
import React65, { useEffect as useEffect15, useRef as useRef8, useState as
|
|
7696
|
+
import React65, { useEffect as useEffect15, useRef as useRef8, useState as useState25 } from "react";
|
|
7680
7697
|
import clsx12 from "clsx";
|
|
7681
7698
|
var UserReferralSource = ({
|
|
7682
7699
|
position = "bottom-right",
|
|
7683
7700
|
options = [],
|
|
7684
7701
|
...props
|
|
7685
7702
|
}) => {
|
|
7686
|
-
const [closed, setClosed] =
|
|
7687
|
-
const [answered, setAnswered] =
|
|
7688
|
-
const [clickedOption, setClickedOption] =
|
|
7689
|
-
const [closingTimer, setClosingTimer] =
|
|
7703
|
+
const [closed, setClosed] = useState25(false);
|
|
7704
|
+
const [answered, setAnswered] = useState25(false);
|
|
7705
|
+
const [clickedOption, setClickedOption] = useState25(null);
|
|
7706
|
+
const [closingTimer, setClosingTimer] = useState25(5);
|
|
7690
7707
|
const popUpRef = useRef8(null);
|
|
7691
7708
|
const boxPosition = {
|
|
7692
7709
|
"bottom-right": "hawa-right-4",
|
|
@@ -7762,16 +7779,16 @@ var UserReferralSource = ({
|
|
|
7762
7779
|
};
|
|
7763
7780
|
|
|
7764
7781
|
// components/blocks/feedback/FeedbackRating.tsx
|
|
7765
|
-
import React66, { useEffect as useEffect16, useRef as useRef9, useState as
|
|
7782
|
+
import React66, { useEffect as useEffect16, useRef as useRef9, useState as useState26 } from "react";
|
|
7766
7783
|
import clsx13 from "clsx";
|
|
7767
7784
|
var FeedbackRating = ({
|
|
7768
7785
|
position = "bottom-right",
|
|
7769
7786
|
...props
|
|
7770
7787
|
}) => {
|
|
7771
|
-
const [closed, setClosed] =
|
|
7772
|
-
const [answered, setAnswered] =
|
|
7773
|
-
const [clickedOption, setClickedOption] =
|
|
7774
|
-
const [closingTimer, setClosingTimer] =
|
|
7788
|
+
const [closed, setClosed] = useState26(false);
|
|
7789
|
+
const [answered, setAnswered] = useState26(false);
|
|
7790
|
+
const [clickedOption, setClickedOption] = useState26(null);
|
|
7791
|
+
const [closingTimer, setClosingTimer] = useState26(5);
|
|
7775
7792
|
const popUpRef = useRef9(null);
|
|
7776
7793
|
const boxPosition = {
|
|
7777
7794
|
"bottom-right": "hawa-right-4",
|
|
@@ -7876,12 +7893,12 @@ var FeedbackRating = ({
|
|
|
7876
7893
|
};
|
|
7877
7894
|
|
|
7878
7895
|
// components/blocks/feedback/FeedbackEmoji.tsx
|
|
7879
|
-
import React67, { useState as
|
|
7896
|
+
import React67, { useState as useState27 } from "react";
|
|
7880
7897
|
var FeedbackEmoji = (props) => {
|
|
7881
|
-
const [selectedEmoji, setSelectedEmoji] =
|
|
7882
|
-
const [loadingSubmit, setLoadingSubmit] =
|
|
7883
|
-
const [feedbackText, setFeedbackText] =
|
|
7884
|
-
const [helperText, setHelperText] =
|
|
7898
|
+
const [selectedEmoji, setSelectedEmoji] = useState27(null);
|
|
7899
|
+
const [loadingSubmit, setLoadingSubmit] = useState27(false);
|
|
7900
|
+
const [feedbackText, setFeedbackText] = useState27("");
|
|
7901
|
+
const [helperText, setHelperText] = useState27(false);
|
|
7885
7902
|
let emojis = [
|
|
7886
7903
|
{ icon: /* @__PURE__ */ React67.createElement(VeryGoodEmoji, null), value: "very-good" },
|
|
7887
7904
|
{ icon: /* @__PURE__ */ React67.createElement(GoodEmoji, null), value: "good" },
|
|
@@ -8342,7 +8359,7 @@ var PricingPlans = (props) => {
|
|
|
8342
8359
|
};
|
|
8343
8360
|
|
|
8344
8361
|
// components/blocks/pricing/ComparingPlans.tsx
|
|
8345
|
-
import React77, { useState as
|
|
8362
|
+
import React77, { useState as useState28 } from "react";
|
|
8346
8363
|
var CheckMark = () => /* @__PURE__ */ React77.createElement(
|
|
8347
8364
|
"svg",
|
|
8348
8365
|
{
|
|
@@ -8378,8 +8395,8 @@ var UncheckMark = () => /* @__PURE__ */ React77.createElement(
|
|
|
8378
8395
|
)
|
|
8379
8396
|
);
|
|
8380
8397
|
var ComparingPlans = (props) => {
|
|
8381
|
-
const [currentCurrency, setCurrentCurrency] =
|
|
8382
|
-
const [currentCycle, setCurrentCycle] =
|
|
8398
|
+
const [currentCurrency, setCurrentCurrency] = useState28("sar");
|
|
8399
|
+
const [currentCycle, setCurrentCycle] = useState28("month");
|
|
8383
8400
|
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
8401
|
Radio,
|
|
8385
8402
|
{
|
|
@@ -8437,10 +8454,10 @@ var ComparingPlans = (props) => {
|
|
|
8437
8454
|
};
|
|
8438
8455
|
|
|
8439
8456
|
// components/blocks/pricing/HorizontalPricing.tsx
|
|
8440
|
-
import React78, { useState as
|
|
8457
|
+
import React78, { useState as useState29 } from "react";
|
|
8441
8458
|
import clsx14 from "clsx";
|
|
8442
8459
|
var HorizontalPricing = (props) => {
|
|
8443
|
-
const [selectedCard, setSelectedCard] =
|
|
8460
|
+
const [selectedCard, setSelectedCard] = useState29("");
|
|
8444
8461
|
let data = [
|
|
8445
8462
|
{ title: "basic", price: "$49", cycle: "/mo" },
|
|
8446
8463
|
{ title: "business", price: "$99", cycle: "/mo" },
|
|
@@ -8551,18 +8568,18 @@ var Usage = (props) => {
|
|
|
8551
8568
|
};
|
|
8552
8569
|
|
|
8553
8570
|
// components/hooks/useDiscloser.ts
|
|
8554
|
-
import { useState as
|
|
8571
|
+
import { useState as useState30 } from "react";
|
|
8555
8572
|
|
|
8556
8573
|
// components/hooks/useHover.ts
|
|
8557
|
-
import { useEffect as useEffect17, useRef as useRef10, useState as
|
|
8574
|
+
import { useEffect as useEffect17, useRef as useRef10, useState as useState31 } from "react";
|
|
8558
8575
|
|
|
8559
8576
|
// components/hooks/useCarousel.ts
|
|
8560
|
-
import { useState as
|
|
8577
|
+
import { useState as useState32, useRef as useRef11 } from "react";
|
|
8561
8578
|
|
|
8562
8579
|
// components/hooks/useWindowSize.ts
|
|
8563
|
-
import { useEffect as useEffect18, useState as
|
|
8580
|
+
import { useEffect as useEffect18, useState as useState33 } from "react";
|
|
8564
8581
|
var useWindowSize = () => {
|
|
8565
|
-
const [windowSize, setWindowSize] =
|
|
8582
|
+
const [windowSize, setWindowSize] = useState33({
|
|
8566
8583
|
width: void 0,
|
|
8567
8584
|
height: void 0
|
|
8568
8585
|
});
|
|
@@ -8581,7 +8598,7 @@ var useWindowSize = () => {
|
|
|
8581
8598
|
};
|
|
8582
8599
|
|
|
8583
8600
|
// components/hooks/useFocusWithin.ts
|
|
8584
|
-
import { useRef as useRef12, useState as
|
|
8601
|
+
import { useRef as useRef12, useState as useState34, useEffect as useEffect19 } from "react";
|
|
8585
8602
|
function containsRelatedTarget(event) {
|
|
8586
8603
|
if (event.currentTarget instanceof HTMLElement && event.relatedTarget instanceof HTMLElement) {
|
|
8587
8604
|
return event.currentTarget.contains(event.relatedTarget);
|
|
@@ -8593,7 +8610,7 @@ function useFocusWithin({
|
|
|
8593
8610
|
onFocus
|
|
8594
8611
|
} = {}) {
|
|
8595
8612
|
const ref = useRef12(null);
|
|
8596
|
-
const [focused, _setFocused] =
|
|
8613
|
+
const [focused, _setFocused] = useState34(false);
|
|
8597
8614
|
const focusedRef = useRef12(false);
|
|
8598
8615
|
const setFocused = (value) => {
|
|
8599
8616
|
_setFocused(value);
|
|
@@ -8626,7 +8643,7 @@ function useFocusWithin({
|
|
|
8626
8643
|
}
|
|
8627
8644
|
|
|
8628
8645
|
// components/hooks/useMediaQuery.ts
|
|
8629
|
-
import { useState as
|
|
8646
|
+
import { useState as useState35, useEffect as useEffect20, useRef as useRef13 } from "react";
|
|
8630
8647
|
function attachMediaListener(query, callback) {
|
|
8631
8648
|
try {
|
|
8632
8649
|
query.addEventListener("change", callback);
|
|
@@ -8648,7 +8665,7 @@ function getInitialValue(query, initialValue) {
|
|
|
8648
8665
|
function useMediaQuery(query, initialValue, { getInitialValueInEffect } = {
|
|
8649
8666
|
getInitialValueInEffect: true
|
|
8650
8667
|
}) {
|
|
8651
|
-
const [matches, setMatches] =
|
|
8668
|
+
const [matches, setMatches] = useState35(
|
|
8652
8669
|
getInitialValueInEffect ? initialValue : getInitialValue(query, initialValue)
|
|
8653
8670
|
);
|
|
8654
8671
|
const queryRef = useRef13();
|
|
@@ -8667,15 +8684,15 @@ function useMediaQuery(query, initialValue, { getInitialValueInEffect } = {
|
|
|
8667
8684
|
}
|
|
8668
8685
|
|
|
8669
8686
|
// components/hooks/useScrollPosition.ts
|
|
8670
|
-
import { useState as
|
|
8687
|
+
import { useState as useState36, useEffect as useEffect21 } from "react";
|
|
8671
8688
|
|
|
8672
8689
|
// components/hooks/useTable.ts
|
|
8673
|
-
import { useState as
|
|
8690
|
+
import { useState as useState37, useEffect as useEffect22 } from "react";
|
|
8674
8691
|
|
|
8675
8692
|
// components/hooks/useTabs.ts
|
|
8676
|
-
import { useEffect as useEffect23, useState as
|
|
8693
|
+
import { useEffect as useEffect23, useState as useState38 } from "react";
|
|
8677
8694
|
function useTabs(initialTab = "") {
|
|
8678
|
-
const [activeTab, setActiveTab] =
|
|
8695
|
+
const [activeTab, setActiveTab] = useState38(initialTab);
|
|
8679
8696
|
useEffect23(() => {
|
|
8680
8697
|
const handleHashChange = () => {
|
|
8681
8698
|
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.
|
|
3
|
+
"version": "0.10.21-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",
|