@sikka/hawa 0.13.9-next → 0.13.11-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 +52 -17
- package/dist/index.d.mts +8 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.js +118 -41
- package/dist/index.mjs +149 -52
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -557,19 +557,6 @@ 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
|
-
}
|
|
573
560
|
.link::after {
|
|
574
561
|
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");
|
|
575
562
|
display: inline-block;
|
|
@@ -817,6 +804,12 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
817
804
|
.hawa-top-\[60\%\] {
|
|
818
805
|
top: 60%;
|
|
819
806
|
}
|
|
807
|
+
.hawa-top-\[60px\] {
|
|
808
|
+
top: 60px;
|
|
809
|
+
}
|
|
810
|
+
.hawa-top-\[72px\] {
|
|
811
|
+
top: 72px;
|
|
812
|
+
}
|
|
820
813
|
.hawa-top-full {
|
|
821
814
|
top: 100%;
|
|
822
815
|
}
|
|
@@ -881,10 +874,6 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
881
874
|
margin-left: 1rem;
|
|
882
875
|
margin-right: 1rem;
|
|
883
876
|
}
|
|
884
|
-
.hawa-mx-auto {
|
|
885
|
-
margin-left: auto;
|
|
886
|
-
margin-right: auto;
|
|
887
|
-
}
|
|
888
877
|
.hawa-my-0 {
|
|
889
878
|
margin-top: 0px;
|
|
890
879
|
margin-bottom: 0px;
|
|
@@ -1135,6 +1124,9 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1135
1124
|
.hawa-h-\[calc\(100dvh\)\] {
|
|
1136
1125
|
height: calc(100dvh);
|
|
1137
1126
|
}
|
|
1127
|
+
.hawa-h-\[calc\(200dvh\)\] {
|
|
1128
|
+
height: calc(200dvh);
|
|
1129
|
+
}
|
|
1138
1130
|
.hawa-h-\[calc\(60vh\)\] {
|
|
1139
1131
|
height: calc(60vh);
|
|
1140
1132
|
}
|
|
@@ -1379,6 +1371,11 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1379
1371
|
.hawa-border-collapse {
|
|
1380
1372
|
border-collapse: collapse;
|
|
1381
1373
|
}
|
|
1374
|
+
.hawa-border-spacing-3 {
|
|
1375
|
+
--tw-border-spacing-x: 0.75rem;
|
|
1376
|
+
--tw-border-spacing-y: 0.75rem;
|
|
1377
|
+
border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y);
|
|
1378
|
+
}
|
|
1382
1379
|
.hawa-origin-bottom {
|
|
1383
1380
|
transform-origin: bottom;
|
|
1384
1381
|
}
|
|
@@ -1816,6 +1813,10 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1816
1813
|
--tw-border-opacity: 1;
|
|
1817
1814
|
border-color: rgb(209 213 219 / var(--tw-border-opacity));
|
|
1818
1815
|
}
|
|
1816
|
+
.hawa-border-gray-500 {
|
|
1817
|
+
--tw-border-opacity: 1;
|
|
1818
|
+
border-color: rgb(107 114 128 / var(--tw-border-opacity));
|
|
1819
|
+
}
|
|
1819
1820
|
.hawa-border-input {
|
|
1820
1821
|
border-color: hsl(var(--input));
|
|
1821
1822
|
}
|
|
@@ -1896,6 +1897,10 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1896
1897
|
--tw-bg-opacity: 1;
|
|
1897
1898
|
background-color: rgb(209 213 219 / var(--tw-bg-opacity));
|
|
1898
1899
|
}
|
|
1900
|
+
.hawa-bg-gray-400 {
|
|
1901
|
+
--tw-bg-opacity: 1;
|
|
1902
|
+
background-color: rgb(156 163 175 / var(--tw-bg-opacity));
|
|
1903
|
+
}
|
|
1899
1904
|
.hawa-bg-gray-50 {
|
|
1900
1905
|
--tw-bg-opacity: 1;
|
|
1901
1906
|
background-color: rgb(249 250 251 / var(--tw-bg-opacity));
|
|
@@ -2749,6 +2754,18 @@ body {
|
|
|
2749
2754
|
box-shadow: 0 10px 15px -3px rgba(255, 255, 255, 0.1),
|
|
2750
2755
|
0 4px 6px -2px rgba(255, 255, 255, 0.05);
|
|
2751
2756
|
}
|
|
2757
|
+
.selection\:hawa-p-0 *::-moz-selection {
|
|
2758
|
+
padding: 0px;
|
|
2759
|
+
}
|
|
2760
|
+
.selection\:hawa-p-0 *::selection {
|
|
2761
|
+
padding: 0px;
|
|
2762
|
+
}
|
|
2763
|
+
.selection\:hawa-p-0::-moz-selection {
|
|
2764
|
+
padding: 0px;
|
|
2765
|
+
}
|
|
2766
|
+
.selection\:hawa-p-0::selection {
|
|
2767
|
+
padding: 0px;
|
|
2768
|
+
}
|
|
2752
2769
|
.placeholder\:hawa-text-muted-foreground::-moz-placeholder {
|
|
2753
2770
|
color: hsl(var(--muted-foreground));
|
|
2754
2771
|
}
|
|
@@ -2894,6 +2911,10 @@ body {
|
|
|
2894
2911
|
.hover\:hawa-text-accent-foreground:hover {
|
|
2895
2912
|
color: hsl(var(--accent-foreground));
|
|
2896
2913
|
}
|
|
2914
|
+
.hover\:hawa-text-black:hover {
|
|
2915
|
+
--tw-text-opacity: 1;
|
|
2916
|
+
color: rgb(0 0 0 / var(--tw-text-opacity));
|
|
2917
|
+
}
|
|
2897
2918
|
.hover\:hawa-text-foreground:hover {
|
|
2898
2919
|
color: hsl(var(--foreground));
|
|
2899
2920
|
}
|
|
@@ -3246,6 +3267,9 @@ body {
|
|
|
3246
3267
|
.data-\[disabled\]\:hawa-opacity-50[data-disabled] {
|
|
3247
3268
|
opacity: 0.5;
|
|
3248
3269
|
}
|
|
3270
|
+
.data-\[state\=closed\]\:hawa-opacity-0[data-state=closed] {
|
|
3271
|
+
opacity: 0;
|
|
3272
|
+
}
|
|
3249
3273
|
.data-\[state\=active\]\:hawa-shadow-sm[data-state=active] {
|
|
3250
3274
|
--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
|
3251
3275
|
--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
|
|
@@ -3341,6 +3365,9 @@ body {
|
|
|
3341
3365
|
.data-\[state\=open\]\:hawa-fade-in-0[data-state=open] {
|
|
3342
3366
|
--tw-enter-opacity: 0;
|
|
3343
3367
|
}
|
|
3368
|
+
.data-\[state\=open\]\:hawa-fade-in-90[data-state=open] {
|
|
3369
|
+
--tw-enter-opacity: 0.9;
|
|
3370
|
+
}
|
|
3344
3371
|
.data-\[state\=visible\]\:hawa-fade-in[data-state=visible] {
|
|
3345
3372
|
--tw-enter-opacity: 0;
|
|
3346
3373
|
}
|
|
@@ -3743,6 +3770,14 @@ body {
|
|
|
3743
3770
|
position: absolute;
|
|
3744
3771
|
}
|
|
3745
3772
|
|
|
3773
|
+
.md\:hawa-flex {
|
|
3774
|
+
display: flex;
|
|
3775
|
+
}
|
|
3776
|
+
|
|
3777
|
+
.md\:hawa-hidden {
|
|
3778
|
+
display: none;
|
|
3779
|
+
}
|
|
3780
|
+
|
|
3746
3781
|
.md\:hawa-w-\[var\(--radix-navigation-menu-viewport-width\)\] {
|
|
3747
3782
|
width: var(--radix-navigation-menu-viewport-width);
|
|
3748
3783
|
}
|
package/dist/index.d.mts
CHANGED
|
@@ -902,10 +902,17 @@ type CopyRightsTypes = {
|
|
|
902
902
|
};
|
|
903
903
|
declare const Copyrights: FC<CopyRightsTypes>;
|
|
904
904
|
|
|
905
|
+
type NavigationMenuItem = {
|
|
906
|
+
label: string;
|
|
907
|
+
action: () => void;
|
|
908
|
+
trigger?: any;
|
|
909
|
+
};
|
|
905
910
|
type NavbarType = {
|
|
906
911
|
logo?: any;
|
|
907
912
|
buttons?: any;
|
|
908
|
-
menuItems?:
|
|
913
|
+
menuItems?: NavigationMenuItem[];
|
|
914
|
+
handleLogoClick?: () => void;
|
|
915
|
+
backgroundColor?: string;
|
|
909
916
|
};
|
|
910
917
|
declare const Navbar: React__default.FC<NavbarType>;
|
|
911
918
|
|
package/dist/index.d.ts
CHANGED
|
@@ -902,10 +902,17 @@ type CopyRightsTypes = {
|
|
|
902
902
|
};
|
|
903
903
|
declare const Copyrights: FC<CopyRightsTypes>;
|
|
904
904
|
|
|
905
|
+
type NavigationMenuItem = {
|
|
906
|
+
label: string;
|
|
907
|
+
action: () => void;
|
|
908
|
+
trigger?: any;
|
|
909
|
+
};
|
|
905
910
|
type NavbarType = {
|
|
906
911
|
logo?: any;
|
|
907
912
|
buttons?: any;
|
|
908
|
-
menuItems?:
|
|
913
|
+
menuItems?: NavigationMenuItem[];
|
|
914
|
+
handleLogoClick?: () => void;
|
|
915
|
+
backgroundColor?: string;
|
|
909
916
|
};
|
|
910
917
|
declare const Navbar: React__default.FC<NavbarType>;
|
|
911
918
|
|
package/dist/index.js
CHANGED
|
@@ -6833,55 +6833,100 @@ var Collapsible = CollapsiblePrimitive.Root;
|
|
|
6833
6833
|
var CollapsibleTrigger2 = CollapsiblePrimitive.CollapsibleTrigger;
|
|
6834
6834
|
var CollapsibleContent2 = CollapsiblePrimitive.CollapsibleContent;
|
|
6835
6835
|
// components/layout/Navbar.tsx
|
|
6836
|
-
var Navbar = function(
|
|
6836
|
+
var Navbar = function(_param) {
|
|
6837
|
+
var backgroundColor = _param.backgroundColor, logo = _param.logo, handleLogoClick = _param.handleLogoClick, props = _object_without_properties(_param, [
|
|
6838
|
+
"backgroundColor",
|
|
6839
|
+
"logo",
|
|
6840
|
+
"handleLogoClick"
|
|
6841
|
+
]);
|
|
6842
|
+
var _props_menuItems, _props_menuItems1;
|
|
6837
6843
|
var _ref = _sliced_to_array((0, import_react35.useState)(false), 2), isOpen = _ref[0], setIsOpen = _ref[1];
|
|
6838
6844
|
return /* @__PURE__ */ import_react35.default.createElement("nav", {
|
|
6839
|
-
className: "hawa-
|
|
6840
|
-
}, /* @__PURE__ */ import_react35.default.createElement(Collapsible,
|
|
6841
|
-
className: "hawa-
|
|
6845
|
+
className: " hawa-transition-all hawa-sticky hawa-top-2"
|
|
6846
|
+
}, /* @__PURE__ */ import_react35.default.createElement(Collapsible, {
|
|
6847
|
+
className: "hawa-p-2 hawa-relative hawa-m-2 hawa-rounded",
|
|
6848
|
+
style: {
|
|
6849
|
+
backgroundColor: backgroundColor || "#1f2937"
|
|
6850
|
+
}
|
|
6851
|
+
}, /* @__PURE__ */ import_react35.default.createElement("div", {
|
|
6852
|
+
className: "hawa-flex hawa-justify-between hawa-items-center hawa-px-3 "
|
|
6842
6853
|
}, /* @__PURE__ */ import_react35.default.createElement("div", {
|
|
6843
6854
|
className: "hawa-flex hawa-items-center"
|
|
6844
6855
|
}, /* @__PURE__ */ import_react35.default.createElement("div", {
|
|
6845
|
-
className: "hawa-text-white hawa-text-xl hawa-font-bold"
|
|
6846
|
-
|
|
6847
|
-
|
|
6848
|
-
|
|
6849
|
-
|
|
6850
|
-
|
|
6851
|
-
},
|
|
6852
|
-
|
|
6853
|
-
|
|
6854
|
-
|
|
6855
|
-
|
|
6856
|
-
|
|
6857
|
-
|
|
6858
|
-
|
|
6856
|
+
className: "hawa-text-white hawa-text-xl hawa-p-1.5 hawa-font-bold",
|
|
6857
|
+
onClick: function() {
|
|
6858
|
+
if (handleLogoClick) {
|
|
6859
|
+
handleLogoClick();
|
|
6860
|
+
}
|
|
6861
|
+
}
|
|
6862
|
+
}, logo)), /* @__PURE__ */ import_react35.default.createElement("div", {
|
|
6863
|
+
className: "hawa-hidden md:hawa-flex "
|
|
6864
|
+
}, (_props_menuItems = props.menuItems) === null || _props_menuItems === void 0 ? void 0 : _props_menuItems.map(function(item) {
|
|
6865
|
+
return /* @__PURE__ */ import_react35.default.createElement("div", {
|
|
6866
|
+
onClick: item.action,
|
|
6867
|
+
className: "hawa-p-1.5 hawa-px-2 hawa-text-sm hawa-text-center hawa-rounded hawa-text-white hover:hawa-text-black hover:hawa-bg-gray-300 hawa-transition-all hawa-cursor-pointer"
|
|
6868
|
+
}, item.label);
|
|
6869
|
+
})), /* @__PURE__ */ import_react35.default.createElement("div", {
|
|
6870
|
+
className: "md:hawa-hidden hawa-flex hawa-h-fit hawa-p-0 hawa-m-0"
|
|
6859
6871
|
}, /* @__PURE__ */ import_react35.default.createElement(CollapsibleTrigger2, {
|
|
6860
|
-
|
|
6872
|
+
onClick: function() {
|
|
6873
|
+
return setIsOpen(!isOpen);
|
|
6874
|
+
},
|
|
6875
|
+
className: "hawa-text-white selection:hawa-p-0 hawa-h-full ",
|
|
6861
6876
|
"aria-label": "Toggle menu"
|
|
6862
6877
|
}, /* @__PURE__ */ import_react35.default.createElement("svg", {
|
|
6863
|
-
|
|
6878
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6879
|
+
width: "24",
|
|
6880
|
+
height: "24",
|
|
6881
|
+
viewBox: "0 0 24 24",
|
|
6864
6882
|
fill: "none",
|
|
6865
6883
|
stroke: "currentColor",
|
|
6884
|
+
"stroke-width": "2",
|
|
6885
|
+
"stroke-linecap": "round",
|
|
6886
|
+
"stroke-linejoin": "round",
|
|
6887
|
+
className: cn("hawa-w-6 hawa-h-6 hawa-fixed", isOpen ? "hawa-invisible" : "hawa-visible")
|
|
6888
|
+
}, /* @__PURE__ */ import_react35.default.createElement("line", {
|
|
6889
|
+
x1: "4",
|
|
6890
|
+
x2: "20",
|
|
6891
|
+
y1: "12",
|
|
6892
|
+
y2: "12"
|
|
6893
|
+
}), /* @__PURE__ */ import_react35.default.createElement("line", {
|
|
6894
|
+
x1: "4",
|
|
6895
|
+
x2: "20",
|
|
6896
|
+
y1: "6",
|
|
6897
|
+
y2: "6"
|
|
6898
|
+
}), /* @__PURE__ */ import_react35.default.createElement("line", {
|
|
6899
|
+
x1: "4",
|
|
6900
|
+
x2: "20",
|
|
6901
|
+
y1: "18",
|
|
6902
|
+
y2: "18"
|
|
6903
|
+
})), /* @__PURE__ */ import_react35.default.createElement("svg", {
|
|
6904
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6905
|
+
width: "24",
|
|
6906
|
+
height: "24",
|
|
6866
6907
|
viewBox: "0 0 24 24",
|
|
6867
|
-
|
|
6908
|
+
fill: "none",
|
|
6909
|
+
stroke: "currentColor",
|
|
6910
|
+
"stroke-width": "2",
|
|
6911
|
+
"stroke-linecap": "round",
|
|
6912
|
+
"stroke-linejoin": "round",
|
|
6913
|
+
className: cn("hawa-w-6 hawa-h-6", !isOpen ? "hawa-invisible" : "hawa-visible")
|
|
6868
6914
|
}, /* @__PURE__ */ import_react35.default.createElement("path", {
|
|
6869
|
-
|
|
6870
|
-
|
|
6871
|
-
|
|
6872
|
-
d: "M4 6h16M4 12h16m-7 6h7"
|
|
6915
|
+
d: "M18 6 6 18"
|
|
6916
|
+
}), /* @__PURE__ */ import_react35.default.createElement("path", {
|
|
6917
|
+
d: "m6 6 12 12"
|
|
6873
6918
|
}))))), /* @__PURE__ */ import_react35.default.createElement(CollapsibleContent2, {
|
|
6874
|
-
className: "
|
|
6875
|
-
|
|
6876
|
-
|
|
6877
|
-
|
|
6878
|
-
|
|
6879
|
-
|
|
6880
|
-
|
|
6881
|
-
|
|
6882
|
-
|
|
6883
|
-
|
|
6884
|
-
}
|
|
6919
|
+
className: cn("data-[state=closed]:hawa-opacity-0", "data-[state=open]:hawa-animate-in", "data-[state=open]:hawa-fade-in-90", "hawa-transition-all hawa-bg-gray-200 hawa-border hawa-absolute hawa-p-1 hawa-left-0 hawa-top-[60px] hawa-flex hawa-flex-col hawa-rounded"),
|
|
6920
|
+
style: {
|
|
6921
|
+
width: "calc(100%)",
|
|
6922
|
+
zIndex: -100
|
|
6923
|
+
}
|
|
6924
|
+
}, (_props_menuItems1 = props.menuItems) === null || _props_menuItems1 === void 0 ? void 0 : _props_menuItems1.map(function(item) {
|
|
6925
|
+
return /* @__PURE__ */ import_react35.default.createElement("div", {
|
|
6926
|
+
onClick: item.action,
|
|
6927
|
+
className: "hawa-text-black hawa-p-2 hawa-px-10 hawa-text-center hawa-rounded hover:hawa-bg-gray-300 hawa-transition-all hawa-cursor-pointer"
|
|
6928
|
+
}, item.label);
|
|
6929
|
+
}))));
|
|
6885
6930
|
};
|
|
6886
6931
|
// components/layout/AppLayout.tsx
|
|
6887
6932
|
var import_react36 = __toESM(require("react"));
|
|
@@ -7447,6 +7492,32 @@ var EyeIcon = function(props) {
|
|
|
7447
7492
|
r: "3"
|
|
7448
7493
|
})));
|
|
7449
7494
|
};
|
|
7495
|
+
var HiddenEyeIcon = function(props) {
|
|
7496
|
+
return /* @__PURE__ */ React.createElement("div", {
|
|
7497
|
+
className: props.classNames
|
|
7498
|
+
}, /* @__PURE__ */ React.createElement("svg", {
|
|
7499
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7500
|
+
width: "24",
|
|
7501
|
+
height: "24",
|
|
7502
|
+
viewBox: "0 0 24 24",
|
|
7503
|
+
fill: "none",
|
|
7504
|
+
stroke: "currentColor",
|
|
7505
|
+
"stroke-width": "2",
|
|
7506
|
+
"stroke-linecap": "round",
|
|
7507
|
+
"stroke-linejoin": "round"
|
|
7508
|
+
}, /* @__PURE__ */ React.createElement("path", {
|
|
7509
|
+
d: "M9.88 9.88a3 3 0 1 0 4.24 4.24"
|
|
7510
|
+
}), /* @__PURE__ */ React.createElement("path", {
|
|
7511
|
+
d: "M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68"
|
|
7512
|
+
}), /* @__PURE__ */ React.createElement("path", {
|
|
7513
|
+
d: "M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61"
|
|
7514
|
+
}), /* @__PURE__ */ React.createElement("line", {
|
|
7515
|
+
x1: "2",
|
|
7516
|
+
x2: "22",
|
|
7517
|
+
y1: "2",
|
|
7518
|
+
y2: "22"
|
|
7519
|
+
})));
|
|
7520
|
+
};
|
|
7450
7521
|
// components/blocks/auth/LoginForm.tsx
|
|
7451
7522
|
var LoginForm = function(_param) {
|
|
7452
7523
|
var loginType = _param.loginType, texts = _param.texts, _param_passwordLength = _param.passwordLength, passwordLength = _param_passwordLength === void 0 ? 8 : _param_passwordLength, props = _object_without_properties(_param, [
|
|
@@ -7566,7 +7637,9 @@ var LoginForm = function(_param) {
|
|
|
7566
7637
|
onClick: function() {
|
|
7567
7638
|
return setPasswordVisible(!passwordVisible);
|
|
7568
7639
|
}
|
|
7569
|
-
}, /* @__PURE__ */ import_react42.default.createElement(EyeIcon, {
|
|
7640
|
+
}, passwordVisible ? /* @__PURE__ */ import_react42.default.createElement(EyeIcon, {
|
|
7641
|
+
classNames: "hawa-text-gray-500"
|
|
7642
|
+
}) : /* @__PURE__ */ import_react42.default.createElement(HiddenEyeIcon, {
|
|
7570
7643
|
classNames: "hawa-text-gray-500"
|
|
7571
7644
|
})),
|
|
7572
7645
|
placeholder: (texts === null || texts === void 0 ? void 0 : (_texts_password1 = texts.password) === null || _texts_password1 === void 0 ? void 0 : _texts_password1.placeholder) || "Enter your password",
|
|
@@ -7608,9 +7681,11 @@ var LoginForm = function(_param) {
|
|
|
7608
7681
|
onClick: function() {
|
|
7609
7682
|
return setPasswordVisible(!passwordVisible);
|
|
7610
7683
|
}
|
|
7611
|
-
}, /* @__PURE__ */ import_react42.default.createElement(EyeIcon, {
|
|
7684
|
+
}, passwordVisible ? /* @__PURE__ */ import_react42.default.createElement(EyeIcon, {
|
|
7612
7685
|
classNames: "hawa-text-gray-500"
|
|
7613
|
-
})
|
|
7686
|
+
}) : /* @__PURE__ */ import_react42.default.createElement(HiddenEyeIcon, {
|
|
7687
|
+
classNames: "hawa-text-gray-500"
|
|
7688
|
+
}), " "),
|
|
7614
7689
|
placeholder: (texts === null || texts === void 0 ? void 0 : (_texts_password1 = texts.password) === null || _texts_password1 === void 0 ? void 0 : _texts_password1.placeholder) || "Enter your password",
|
|
7615
7690
|
helperText: (_formState_errors_password = formState.errors.password) === null || _formState_errors_password === void 0 ? void 0 : _formState_errors_password.message
|
|
7616
7691
|
}, field));
|
|
@@ -7884,9 +7959,11 @@ var RegisterForm = function(_param) {
|
|
|
7884
7959
|
onClick: function() {
|
|
7885
7960
|
return setPasswordVisible(!passwordVisible);
|
|
7886
7961
|
}
|
|
7887
|
-
}, /* @__PURE__ */ import_react43.default.createElement(EyeIcon, {
|
|
7962
|
+
}, passwordVisible ? /* @__PURE__ */ import_react43.default.createElement(EyeIcon, {
|
|
7963
|
+
classNames: "hawa-text-gray-500"
|
|
7964
|
+
}) : /* @__PURE__ */ import_react43.default.createElement(HiddenEyeIcon, {
|
|
7888
7965
|
classNames: "hawa-text-gray-500"
|
|
7889
|
-
})),
|
|
7966
|
+
}), " "),
|
|
7890
7967
|
autoComplete: "new-password",
|
|
7891
7968
|
label: texts === null || texts === void 0 ? void 0 : (_texts_password = texts.password) === null || _texts_password === void 0 ? void 0 : _texts_password.label,
|
|
7892
7969
|
placeholder: texts === null || texts === void 0 ? void 0 : (_texts_password1 = texts.password) === null || _texts_password1 === void 0 ? void 0 : _texts_password1.placeholder,
|
package/dist/index.mjs
CHANGED
|
@@ -6667,34 +6667,111 @@ var CollapsibleTrigger2 = CollapsiblePrimitive.CollapsibleTrigger;
|
|
|
6667
6667
|
var CollapsibleContent2 = CollapsiblePrimitive.CollapsibleContent;
|
|
6668
6668
|
|
|
6669
6669
|
// components/layout/Navbar.tsx
|
|
6670
|
-
var Navbar = (
|
|
6670
|
+
var Navbar = ({
|
|
6671
|
+
backgroundColor,
|
|
6672
|
+
logo,
|
|
6673
|
+
handleLogoClick,
|
|
6674
|
+
...props
|
|
6675
|
+
}) => {
|
|
6671
6676
|
const [isOpen, setIsOpen] = useState22(false);
|
|
6672
|
-
return /* @__PURE__ */ React61.createElement("nav", { className: "
|
|
6673
|
-
|
|
6677
|
+
return /* @__PURE__ */ React61.createElement("nav", { className: " hawa-transition-all hawa-sticky hawa-top-2" }, /* @__PURE__ */ React61.createElement(
|
|
6678
|
+
Collapsible,
|
|
6674
6679
|
{
|
|
6675
|
-
className: "hawa-
|
|
6676
|
-
|
|
6680
|
+
className: "hawa-p-2 hawa-relative hawa-m-2 hawa-rounded",
|
|
6681
|
+
style: { backgroundColor: backgroundColor || "#1f2937" }
|
|
6677
6682
|
},
|
|
6678
|
-
/* @__PURE__ */ React61.createElement(
|
|
6679
|
-
"
|
|
6683
|
+
/* @__PURE__ */ React61.createElement("div", { className: "hawa-flex hawa-justify-between hawa-items-center hawa-px-3 " }, /* @__PURE__ */ React61.createElement("div", { className: "hawa-flex hawa-items-center" }, /* @__PURE__ */ React61.createElement(
|
|
6684
|
+
"div",
|
|
6680
6685
|
{
|
|
6681
|
-
className: "hawa-
|
|
6682
|
-
|
|
6683
|
-
|
|
6684
|
-
|
|
6685
|
-
|
|
6686
|
+
className: "hawa-text-white hawa-text-xl hawa-p-1.5 hawa-font-bold",
|
|
6687
|
+
onClick: () => {
|
|
6688
|
+
if (handleLogoClick) {
|
|
6689
|
+
handleLogoClick();
|
|
6690
|
+
}
|
|
6691
|
+
}
|
|
6692
|
+
},
|
|
6693
|
+
logo
|
|
6694
|
+
)), /* @__PURE__ */ React61.createElement("div", { className: "hawa-hidden md:hawa-flex " }, props.menuItems?.map((item) => /* @__PURE__ */ React61.createElement(
|
|
6695
|
+
"div",
|
|
6696
|
+
{
|
|
6697
|
+
onClick: item.action,
|
|
6698
|
+
className: "hawa-p-1.5 hawa-px-2 hawa-text-sm hawa-text-center hawa-rounded hawa-text-white hover:hawa-text-black hover:hawa-bg-gray-300 hawa-transition-all hawa-cursor-pointer"
|
|
6699
|
+
},
|
|
6700
|
+
item.label
|
|
6701
|
+
))), /* @__PURE__ */ React61.createElement("div", { className: "md:hawa-hidden hawa-flex hawa-h-fit hawa-p-0 hawa-m-0" }, /* @__PURE__ */ React61.createElement(
|
|
6702
|
+
CollapsibleTrigger2,
|
|
6703
|
+
{
|
|
6704
|
+
onClick: () => setIsOpen(!isOpen),
|
|
6705
|
+
className: "hawa-text-white selection:hawa-p-0 hawa-h-full ",
|
|
6706
|
+
"aria-label": "Toggle menu"
|
|
6686
6707
|
},
|
|
6687
6708
|
/* @__PURE__ */ React61.createElement(
|
|
6688
|
-
"
|
|
6709
|
+
"svg",
|
|
6689
6710
|
{
|
|
6690
|
-
|
|
6691
|
-
|
|
6692
|
-
|
|
6693
|
-
|
|
6694
|
-
|
|
6711
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6712
|
+
width: "24",
|
|
6713
|
+
height: "24",
|
|
6714
|
+
viewBox: "0 0 24 24",
|
|
6715
|
+
fill: "none",
|
|
6716
|
+
stroke: "currentColor",
|
|
6717
|
+
"stroke-width": "2",
|
|
6718
|
+
"stroke-linecap": "round",
|
|
6719
|
+
"stroke-linejoin": "round",
|
|
6720
|
+
className: cn(
|
|
6721
|
+
"hawa-w-6 hawa-h-6 hawa-fixed",
|
|
6722
|
+
isOpen ? "hawa-invisible" : "hawa-visible"
|
|
6723
|
+
)
|
|
6724
|
+
},
|
|
6725
|
+
/* @__PURE__ */ React61.createElement("line", { x1: "4", x2: "20", y1: "12", y2: "12" }),
|
|
6726
|
+
/* @__PURE__ */ React61.createElement("line", { x1: "4", x2: "20", y1: "6", y2: "6" }),
|
|
6727
|
+
/* @__PURE__ */ React61.createElement("line", { x1: "4", x2: "20", y1: "18", y2: "18" })
|
|
6728
|
+
),
|
|
6729
|
+
/* @__PURE__ */ React61.createElement(
|
|
6730
|
+
"svg",
|
|
6731
|
+
{
|
|
6732
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6733
|
+
width: "24",
|
|
6734
|
+
height: "24",
|
|
6735
|
+
viewBox: "0 0 24 24",
|
|
6736
|
+
fill: "none",
|
|
6737
|
+
stroke: "currentColor",
|
|
6738
|
+
"stroke-width": "2",
|
|
6739
|
+
"stroke-linecap": "round",
|
|
6740
|
+
"stroke-linejoin": "round",
|
|
6741
|
+
className: cn(
|
|
6742
|
+
"hawa-w-6 hawa-h-6",
|
|
6743
|
+
!isOpen ? "hawa-invisible" : "hawa-visible"
|
|
6744
|
+
)
|
|
6745
|
+
},
|
|
6746
|
+
/* @__PURE__ */ React61.createElement("path", { d: "M18 6 6 18" }),
|
|
6747
|
+
/* @__PURE__ */ React61.createElement("path", { d: "m6 6 12 12" })
|
|
6695
6748
|
)
|
|
6749
|
+
))),
|
|
6750
|
+
/* @__PURE__ */ React61.createElement(
|
|
6751
|
+
CollapsibleContent2,
|
|
6752
|
+
{
|
|
6753
|
+
className: cn(
|
|
6754
|
+
"data-[state=closed]:hawa-opacity-0",
|
|
6755
|
+
"data-[state=open]:hawa-animate-in",
|
|
6756
|
+
"data-[state=open]:hawa-fade-in-90",
|
|
6757
|
+
"hawa-transition-all hawa-bg-gray-200 hawa-border hawa-absolute hawa-p-1 hawa-left-0 hawa-top-[60px] hawa-flex hawa-flex-col hawa-rounded"
|
|
6758
|
+
// "hawa-transition-all hawa-bg-gray-400 hawa-fixed hawa-left-0 hawa-top-[72px] hawa-w-full hawa-flex hawa-flex-col"
|
|
6759
|
+
),
|
|
6760
|
+
style: {
|
|
6761
|
+
width: "calc(100%)",
|
|
6762
|
+
zIndex: -100
|
|
6763
|
+
}
|
|
6764
|
+
},
|
|
6765
|
+
props.menuItems?.map((item) => /* @__PURE__ */ React61.createElement(
|
|
6766
|
+
"div",
|
|
6767
|
+
{
|
|
6768
|
+
onClick: item.action,
|
|
6769
|
+
className: "hawa-text-black hawa-p-2 hawa-px-10 hawa-text-center hawa-rounded hover:hawa-bg-gray-300 hawa-transition-all hawa-cursor-pointer"
|
|
6770
|
+
},
|
|
6771
|
+
item.label
|
|
6772
|
+
))
|
|
6696
6773
|
)
|
|
6697
|
-
))
|
|
6774
|
+
));
|
|
6698
6775
|
};
|
|
6699
6776
|
|
|
6700
6777
|
// components/layout/AppLayout.tsx
|
|
@@ -7471,6 +7548,24 @@ var EyeIcon = (props) => /* @__PURE__ */ React.createElement("div", { className:
|
|
|
7471
7548
|
/* @__PURE__ */ React.createElement("path", { d: "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z" }),
|
|
7472
7549
|
/* @__PURE__ */ React.createElement("circle", { cx: "12", cy: "12", r: "3" })
|
|
7473
7550
|
));
|
|
7551
|
+
var HiddenEyeIcon = (props) => /* @__PURE__ */ React.createElement("div", { className: props.classNames }, /* @__PURE__ */ React.createElement(
|
|
7552
|
+
"svg",
|
|
7553
|
+
{
|
|
7554
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7555
|
+
width: "24",
|
|
7556
|
+
height: "24",
|
|
7557
|
+
viewBox: "0 0 24 24",
|
|
7558
|
+
fill: "none",
|
|
7559
|
+
stroke: "currentColor",
|
|
7560
|
+
"stroke-width": "2",
|
|
7561
|
+
"stroke-linecap": "round",
|
|
7562
|
+
"stroke-linejoin": "round"
|
|
7563
|
+
},
|
|
7564
|
+
/* @__PURE__ */ React.createElement("path", { d: "M9.88 9.88a3 3 0 1 0 4.24 4.24" }),
|
|
7565
|
+
/* @__PURE__ */ React.createElement("path", { d: "M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68" }),
|
|
7566
|
+
/* @__PURE__ */ React.createElement("path", { d: "M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61" }),
|
|
7567
|
+
/* @__PURE__ */ React.createElement("line", { x1: "2", x2: "22", y1: "2", y2: "22" })
|
|
7568
|
+
));
|
|
7474
7569
|
|
|
7475
7570
|
// components/blocks/auth/LoginForm.tsx
|
|
7476
7571
|
var LoginForm = ({
|
|
@@ -7564,7 +7659,7 @@ var LoginForm = ({
|
|
|
7564
7659
|
className: "hawa-cursor-pointer",
|
|
7565
7660
|
onClick: () => setPasswordVisible(!passwordVisible)
|
|
7566
7661
|
},
|
|
7567
|
-
/* @__PURE__ */ React68.createElement(EyeIcon, { classNames: "hawa-text-gray-500" })
|
|
7662
|
+
passwordVisible ? /* @__PURE__ */ React68.createElement(EyeIcon, { classNames: "hawa-text-gray-500" }) : /* @__PURE__ */ React68.createElement(HiddenEyeIcon, { classNames: "hawa-text-gray-500" })
|
|
7568
7663
|
),
|
|
7569
7664
|
placeholder: texts?.password?.placeholder || "Enter your password",
|
|
7570
7665
|
helperText: formState.errors.password?.message,
|
|
@@ -7618,7 +7713,8 @@ var LoginForm = ({
|
|
|
7618
7713
|
className: "hawa-cursor-pointer",
|
|
7619
7714
|
onClick: () => setPasswordVisible(!passwordVisible)
|
|
7620
7715
|
},
|
|
7621
|
-
/* @__PURE__ */ React68.createElement(EyeIcon, { classNames: "hawa-text-gray-500" })
|
|
7716
|
+
passwordVisible ? /* @__PURE__ */ React68.createElement(EyeIcon, { classNames: "hawa-text-gray-500" }) : /* @__PURE__ */ React68.createElement(HiddenEyeIcon, { classNames: "hawa-text-gray-500" }),
|
|
7717
|
+
" "
|
|
7622
7718
|
),
|
|
7623
7719
|
placeholder: texts?.password?.placeholder || "Enter your password",
|
|
7624
7720
|
helperText: formState.errors.password?.message,
|
|
@@ -7901,7 +7997,8 @@ var RegisterForm = ({ texts, ...props }) => {
|
|
|
7901
7997
|
className: "hawa-cursor-pointer",
|
|
7902
7998
|
onClick: () => setPasswordVisible(!passwordVisible)
|
|
7903
7999
|
},
|
|
7904
|
-
/* @__PURE__ */ React69.createElement(EyeIcon, { classNames: "hawa-text-gray-500" })
|
|
8000
|
+
passwordVisible ? /* @__PURE__ */ React69.createElement(EyeIcon, { classNames: "hawa-text-gray-500" }) : /* @__PURE__ */ React69.createElement(HiddenEyeIcon, { classNames: "hawa-text-gray-500" }),
|
|
8001
|
+
" "
|
|
7905
8002
|
),
|
|
7906
8003
|
autoComplete: "new-password",
|
|
7907
8004
|
label: texts?.password?.label,
|
|
@@ -8367,7 +8464,7 @@ var CodeConfirmation = (props) => {
|
|
|
8367
8464
|
};
|
|
8368
8465
|
|
|
8369
8466
|
// components/blocks/feedback/UserReferralSource.tsx
|
|
8370
|
-
import React75, { useRef as useRef11, useState as
|
|
8467
|
+
import React75, { useRef as useRef11, useState as useState29 } from "react";
|
|
8371
8468
|
import { Controller as Controller6, useForm as useForm6 } from "react-hook-form";
|
|
8372
8469
|
import { zodResolver as zodResolver6 } from "@hookform/resolvers/zod";
|
|
8373
8470
|
import * as z6 from "zod";
|
|
@@ -8376,7 +8473,7 @@ var UserReferralSource = ({
|
|
|
8376
8473
|
options = [],
|
|
8377
8474
|
...props
|
|
8378
8475
|
}) => {
|
|
8379
|
-
const [closed, setClosed] =
|
|
8476
|
+
const [closed, setClosed] = useState29(false);
|
|
8380
8477
|
const popUpRef = useRef11(null);
|
|
8381
8478
|
const formSchema = z6.object({
|
|
8382
8479
|
source: z6.string({ required_error: props.texts?.pleaseSelectOption }),
|
|
@@ -8504,16 +8601,16 @@ var UserReferralSource = ({
|
|
|
8504
8601
|
};
|
|
8505
8602
|
|
|
8506
8603
|
// components/blocks/feedback/FeedbackRating.tsx
|
|
8507
|
-
import React76, { useEffect as useEffect20, useRef as useRef12, useState as
|
|
8604
|
+
import React76, { useEffect as useEffect20, useRef as useRef12, useState as useState30 } from "react";
|
|
8508
8605
|
import clsx11 from "clsx";
|
|
8509
8606
|
var FeedbackRating = ({
|
|
8510
8607
|
position = "bottom-right",
|
|
8511
8608
|
...props
|
|
8512
8609
|
}) => {
|
|
8513
|
-
const [closed, setClosed] =
|
|
8514
|
-
const [answered, setAnswered] =
|
|
8515
|
-
const [clickedOption, setClickedOption] =
|
|
8516
|
-
const [closingTimer, setClosingTimer] =
|
|
8610
|
+
const [closed, setClosed] = useState30(false);
|
|
8611
|
+
const [answered, setAnswered] = useState30(false);
|
|
8612
|
+
const [clickedOption, setClickedOption] = useState30(null);
|
|
8613
|
+
const [closingTimer, setClosingTimer] = useState30(5);
|
|
8517
8614
|
const popUpRef = useRef12(null);
|
|
8518
8615
|
const boxPosition = {
|
|
8519
8616
|
"bottom-right": "hawa-right-4",
|
|
@@ -8618,12 +8715,12 @@ var FeedbackRating = ({
|
|
|
8618
8715
|
};
|
|
8619
8716
|
|
|
8620
8717
|
// components/blocks/feedback/FeedbackEmoji.tsx
|
|
8621
|
-
import React77, { useState as
|
|
8718
|
+
import React77, { useState as useState31 } from "react";
|
|
8622
8719
|
var FeedbackEmoji = (props) => {
|
|
8623
|
-
const [selectedEmoji, setSelectedEmoji] =
|
|
8624
|
-
const [loadingSubmit, setLoadingSubmit] =
|
|
8625
|
-
const [feedbackText, setFeedbackText] =
|
|
8626
|
-
const [helperText, setHelperText] =
|
|
8720
|
+
const [selectedEmoji, setSelectedEmoji] = useState31(null);
|
|
8721
|
+
const [loadingSubmit, setLoadingSubmit] = useState31(false);
|
|
8722
|
+
const [feedbackText, setFeedbackText] = useState31("");
|
|
8723
|
+
const [helperText, setHelperText] = useState31(false);
|
|
8627
8724
|
let emojis = [
|
|
8628
8725
|
{ icon: /* @__PURE__ */ React77.createElement(VeryGoodEmoji, null), value: "very-good" },
|
|
8629
8726
|
{ icon: /* @__PURE__ */ React77.createElement(GoodEmoji, null), value: "good" },
|
|
@@ -9086,7 +9183,7 @@ var PricingPlans = (props) => {
|
|
|
9086
9183
|
};
|
|
9087
9184
|
|
|
9088
9185
|
// components/blocks/pricing/ComparingPlans.tsx
|
|
9089
|
-
import React87, { useState as
|
|
9186
|
+
import React87, { useState as useState32 } from "react";
|
|
9090
9187
|
var CheckMark = () => /* @__PURE__ */ React87.createElement(
|
|
9091
9188
|
"svg",
|
|
9092
9189
|
{
|
|
@@ -9122,8 +9219,8 @@ var UncheckMark = () => /* @__PURE__ */ React87.createElement(
|
|
|
9122
9219
|
)
|
|
9123
9220
|
);
|
|
9124
9221
|
var ComparingPlans = (props) => {
|
|
9125
|
-
const [currentCurrency, setCurrentCurrency] =
|
|
9126
|
-
const [currentCycle, setCurrentCycle] =
|
|
9222
|
+
const [currentCurrency, setCurrentCurrency] = useState32("sar");
|
|
9223
|
+
const [currentCycle, setCurrentCycle] = useState32("month");
|
|
9127
9224
|
return /* @__PURE__ */ React87.createElement("div", { id: "detailed-pricing", className: "hawa-w-full hawa-overflow-x-auto" }, /* @__PURE__ */ React87.createElement("div", { className: "hawa-mb-2 hawa-flex hawa-w-full hawa-justify-between" }, /* @__PURE__ */ React87.createElement(
|
|
9128
9225
|
Radio,
|
|
9129
9226
|
{
|
|
@@ -9181,10 +9278,10 @@ var ComparingPlans = (props) => {
|
|
|
9181
9278
|
};
|
|
9182
9279
|
|
|
9183
9280
|
// components/blocks/pricing/HorizontalPricing.tsx
|
|
9184
|
-
import React88, { useState as
|
|
9281
|
+
import React88, { useState as useState33 } from "react";
|
|
9185
9282
|
import clsx12 from "clsx";
|
|
9186
9283
|
var HorizontalPricing = (props) => {
|
|
9187
|
-
const [selectedCard, setSelectedCard] =
|
|
9284
|
+
const [selectedCard, setSelectedCard] = useState33("");
|
|
9188
9285
|
let data = [
|
|
9189
9286
|
{ title: "basic", price: "$49", cycle: "/mo" },
|
|
9190
9287
|
{ title: "business", price: "$99", cycle: "/mo" },
|
|
@@ -9295,18 +9392,18 @@ var Usage = (props) => {
|
|
|
9295
9392
|
};
|
|
9296
9393
|
|
|
9297
9394
|
// components/hooks/useDiscloser.ts
|
|
9298
|
-
import { useState as
|
|
9395
|
+
import { useState as useState34 } from "react";
|
|
9299
9396
|
|
|
9300
9397
|
// components/hooks/useHover.ts
|
|
9301
|
-
import { useEffect as useEffect21, useRef as useRef13, useState as
|
|
9398
|
+
import { useEffect as useEffect21, useRef as useRef13, useState as useState35 } from "react";
|
|
9302
9399
|
|
|
9303
9400
|
// components/hooks/useCarousel.ts
|
|
9304
|
-
import { useState as
|
|
9401
|
+
import { useState as useState36, useRef as useRef14 } from "react";
|
|
9305
9402
|
|
|
9306
9403
|
// components/hooks/useWindowSize.ts
|
|
9307
|
-
import { useEffect as useEffect22, useState as
|
|
9404
|
+
import { useEffect as useEffect22, useState as useState37 } from "react";
|
|
9308
9405
|
var useWindowSize = () => {
|
|
9309
|
-
const [windowSize, setWindowSize] =
|
|
9406
|
+
const [windowSize, setWindowSize] = useState37({
|
|
9310
9407
|
width: void 0,
|
|
9311
9408
|
height: void 0
|
|
9312
9409
|
});
|
|
@@ -9325,7 +9422,7 @@ var useWindowSize = () => {
|
|
|
9325
9422
|
};
|
|
9326
9423
|
|
|
9327
9424
|
// components/hooks/useFocusWithin.ts
|
|
9328
|
-
import { useRef as useRef15, useState as
|
|
9425
|
+
import { useRef as useRef15, useState as useState38, useEffect as useEffect23 } from "react";
|
|
9329
9426
|
function containsRelatedTarget(event) {
|
|
9330
9427
|
if (event.currentTarget instanceof HTMLElement && event.relatedTarget instanceof HTMLElement) {
|
|
9331
9428
|
return event.currentTarget.contains(event.relatedTarget);
|
|
@@ -9337,7 +9434,7 @@ function useFocusWithin({
|
|
|
9337
9434
|
onFocus
|
|
9338
9435
|
} = {}) {
|
|
9339
9436
|
const ref = useRef15(null);
|
|
9340
|
-
const [focused, _setFocused] =
|
|
9437
|
+
const [focused, _setFocused] = useState38(false);
|
|
9341
9438
|
const focusedRef = useRef15(false);
|
|
9342
9439
|
const setFocused = (value) => {
|
|
9343
9440
|
_setFocused(value);
|
|
@@ -9370,7 +9467,7 @@ function useFocusWithin({
|
|
|
9370
9467
|
}
|
|
9371
9468
|
|
|
9372
9469
|
// components/hooks/useMediaQuery.ts
|
|
9373
|
-
import { useState as
|
|
9470
|
+
import { useState as useState39, useEffect as useEffect24, useRef as useRef16 } from "react";
|
|
9374
9471
|
function attachMediaListener(query, callback) {
|
|
9375
9472
|
try {
|
|
9376
9473
|
query.addEventListener("change", callback);
|
|
@@ -9392,7 +9489,7 @@ function getInitialValue(query, initialValue) {
|
|
|
9392
9489
|
function useMediaQuery(query, initialValue, { getInitialValueInEffect } = {
|
|
9393
9490
|
getInitialValueInEffect: true
|
|
9394
9491
|
}) {
|
|
9395
|
-
const [matches, setMatches] =
|
|
9492
|
+
const [matches, setMatches] = useState39(
|
|
9396
9493
|
getInitialValueInEffect ? initialValue : getInitialValue(query, initialValue)
|
|
9397
9494
|
);
|
|
9398
9495
|
const queryRef = useRef16();
|
|
@@ -9411,15 +9508,15 @@ function useMediaQuery(query, initialValue, { getInitialValueInEffect } = {
|
|
|
9411
9508
|
}
|
|
9412
9509
|
|
|
9413
9510
|
// components/hooks/useScrollPosition.ts
|
|
9414
|
-
import { useState as
|
|
9511
|
+
import { useState as useState40, useEffect as useEffect25 } from "react";
|
|
9415
9512
|
|
|
9416
9513
|
// components/hooks/useTable.ts
|
|
9417
|
-
import { useState as
|
|
9514
|
+
import { useState as useState41, useEffect as useEffect26 } from "react";
|
|
9418
9515
|
|
|
9419
9516
|
// components/hooks/useTabs.ts
|
|
9420
|
-
import { useEffect as useEffect27, useState as
|
|
9517
|
+
import { useEffect as useEffect27, useState as useState42 } from "react";
|
|
9421
9518
|
function useTabs(initialTab = "") {
|
|
9422
|
-
const [activeTab, setActiveTab] =
|
|
9519
|
+
const [activeTab, setActiveTab] = useState42(initialTab);
|
|
9423
9520
|
useEffect27(() => {
|
|
9424
9521
|
const handleHashChange = () => {
|
|
9425
9522
|
const hash = window.location.hash.substring(1);
|