@sikka/hawa 0.13.8-next → 0.13.10-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 +29 -17
- package/dist/index.d.mts +6 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.js +62 -32
- package/dist/index.mjs +82 -36
- package/package.json +13 -13
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-\[72px\] {
|
|
808
|
+
top: 72px;
|
|
809
|
+
}
|
|
810
|
+
.hawa-top-\[88px\] {
|
|
811
|
+
top: 88px;
|
|
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));
|
|
@@ -2852,6 +2857,10 @@ body {
|
|
|
2852
2857
|
--tw-bg-opacity: 1;
|
|
2853
2858
|
background-color: rgb(209 213 219 / var(--tw-bg-opacity));
|
|
2854
2859
|
}
|
|
2860
|
+
.hover\:hawa-bg-gray-950:hover {
|
|
2861
|
+
--tw-bg-opacity: 1;
|
|
2862
|
+
background-color: rgb(3 7 18 / var(--tw-bg-opacity));
|
|
2863
|
+
}
|
|
2855
2864
|
.hover\:hawa-bg-green-300:hover {
|
|
2856
2865
|
--tw-bg-opacity: 1;
|
|
2857
2866
|
background-color: rgb(134 239 172 / var(--tw-bg-opacity));
|
|
@@ -3341,6 +3350,9 @@ body {
|
|
|
3341
3350
|
.data-\[state\=open\]\:hawa-fade-in-0[data-state=open] {
|
|
3342
3351
|
--tw-enter-opacity: 0;
|
|
3343
3352
|
}
|
|
3353
|
+
.data-\[state\=open\]\:hawa-fade-in-90[data-state=open] {
|
|
3354
|
+
--tw-enter-opacity: 0.9;
|
|
3355
|
+
}
|
|
3344
3356
|
.data-\[state\=visible\]\:hawa-fade-in[data-state=visible] {
|
|
3345
3357
|
--tw-enter-opacity: 0;
|
|
3346
3358
|
}
|
package/dist/index.d.mts
CHANGED
|
@@ -902,10 +902,15 @@ 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[];
|
|
909
914
|
};
|
|
910
915
|
declare const Navbar: React__default.FC<NavbarType>;
|
|
911
916
|
|
package/dist/index.d.ts
CHANGED
|
@@ -902,10 +902,15 @@ 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[];
|
|
909
914
|
};
|
|
910
915
|
declare const Navbar: React__default.FC<NavbarType>;
|
|
911
916
|
|
package/dist/index.js
CHANGED
|
@@ -6834,33 +6834,31 @@ var CollapsibleTrigger2 = CollapsiblePrimitive.CollapsibleTrigger;
|
|
|
6834
6834
|
var CollapsibleContent2 = CollapsiblePrimitive.CollapsibleContent;
|
|
6835
6835
|
// components/layout/Navbar.tsx
|
|
6836
6836
|
var Navbar = function(props) {
|
|
6837
|
+
var _props_menuItems;
|
|
6837
6838
|
var _ref = _sliced_to_array((0, import_react35.useState)(false), 2), isOpen = _ref[0], setIsOpen = _ref[1];
|
|
6838
6839
|
return /* @__PURE__ */ import_react35.default.createElement("nav", {
|
|
6839
|
-
className: "hawa-
|
|
6840
|
-
}, /* @__PURE__ */ import_react35.default.createElement(Collapsible,
|
|
6841
|
-
className: "hawa-
|
|
6840
|
+
className: " hawa-transition-all hawa-sticky hawa-top-2"
|
|
6841
|
+
}, /* @__PURE__ */ import_react35.default.createElement(Collapsible, {
|
|
6842
|
+
className: "hawa-bg-gray-800 hawa-p-4 hawa-relative hawa-m-2 hawa-rounded"
|
|
6843
|
+
}, /* @__PURE__ */ import_react35.default.createElement("div", {
|
|
6844
|
+
className: "hawa-flex hawa-justify-between hawa-items-center"
|
|
6842
6845
|
}, /* @__PURE__ */ import_react35.default.createElement("div", {
|
|
6843
6846
|
className: "hawa-flex hawa-items-center"
|
|
6844
6847
|
}, /* @__PURE__ */ import_react35.default.createElement("div", {
|
|
6845
6848
|
className: "hawa-text-white hawa-text-xl hawa-font-bold"
|
|
6846
|
-
},
|
|
6847
|
-
|
|
6848
|
-
|
|
6849
|
-
|
|
6850
|
-
className: "hawa-text-white"
|
|
6851
|
-
}, "About"), /* @__PURE__ */ import_react35.default.createElement("a", {
|
|
6852
|
-
href: "/services",
|
|
6853
|
-
className: "hawa-text-white"
|
|
6854
|
-
}, "Services"), /* @__PURE__ */ import_react35.default.createElement("a", {
|
|
6855
|
-
href: "/contact",
|
|
6856
|
-
className: "hawa-text-white"
|
|
6857
|
-
}, "Contact")), /* @__PURE__ */ import_react35.default.createElement("div", {
|
|
6849
|
+
}, /* @__PURE__ */ import_react35.default.createElement(Logos.sikka, {
|
|
6850
|
+
color: "#ffffff",
|
|
6851
|
+
className: "hawa-h-6 hawa-w-6"
|
|
6852
|
+
}))), /* @__PURE__ */ import_react35.default.createElement("div", {
|
|
6858
6853
|
className: "hawa-md:hawa-hidden"
|
|
6859
6854
|
}, /* @__PURE__ */ import_react35.default.createElement(CollapsibleTrigger2, {
|
|
6855
|
+
onClick: function() {
|
|
6856
|
+
return setIsOpen(!isOpen);
|
|
6857
|
+
},
|
|
6860
6858
|
className: "hawa-text-white hawa-p-2",
|
|
6861
6859
|
"aria-label": "Toggle menu"
|
|
6862
6860
|
}, /* @__PURE__ */ import_react35.default.createElement("svg", {
|
|
6863
|
-
className: "hawa-w-6 hawa-h-6",
|
|
6861
|
+
className: cn("hawa-w-6 hawa-h-6", isOpen ? "hawa-invisible" : "hawa-visible"),
|
|
6864
6862
|
fill: "none",
|
|
6865
6863
|
stroke: "currentColor",
|
|
6866
6864
|
viewBox: "0 0 24 24",
|
|
@@ -6871,17 +6869,17 @@ var Navbar = function(props) {
|
|
|
6871
6869
|
strokeWidth: "2",
|
|
6872
6870
|
d: "M4 6h16M4 12h16m-7 6h7"
|
|
6873
6871
|
}))))), /* @__PURE__ */ import_react35.default.createElement(CollapsibleContent2, {
|
|
6874
|
-
className: "
|
|
6875
|
-
|
|
6876
|
-
|
|
6877
|
-
|
|
6878
|
-
|
|
6879
|
-
|
|
6880
|
-
|
|
6881
|
-
|
|
6882
|
-
|
|
6883
|
-
|
|
6884
|
-
}
|
|
6872
|
+
className: cn("data-[state=open]:hawa-animate-in", "data-[state=open]:hawa-fade-in-90", "hawa-transition-all hawa-bg-gray-400 hawa-absolute hawa-top-[88px] hawa-flex hawa-flex-col hawa-rounded"),
|
|
6873
|
+
style: {
|
|
6874
|
+
width: "calc(100% - 32px)",
|
|
6875
|
+
zIndex: -100
|
|
6876
|
+
}
|
|
6877
|
+
}, (_props_menuItems = props.menuItems) === null || _props_menuItems === void 0 ? void 0 : _props_menuItems.map(function(item) {
|
|
6878
|
+
return /* @__PURE__ */ import_react35.default.createElement("div", {
|
|
6879
|
+
onClick: item.action,
|
|
6880
|
+
className: "hawa-text-white hawa-p-4 hawa-px-10 hover:hawa-bg-gray-950 hawa-transition-all hawa-cursor-pointer"
|
|
6881
|
+
}, item.label);
|
|
6882
|
+
}))));
|
|
6885
6883
|
};
|
|
6886
6884
|
// components/layout/AppLayout.tsx
|
|
6887
6885
|
var import_react36 = __toESM(require("react"));
|
|
@@ -7447,6 +7445,32 @@ var EyeIcon = function(props) {
|
|
|
7447
7445
|
r: "3"
|
|
7448
7446
|
})));
|
|
7449
7447
|
};
|
|
7448
|
+
var HiddenEyeIcon = function(props) {
|
|
7449
|
+
return /* @__PURE__ */ React.createElement("div", {
|
|
7450
|
+
className: props.classNames
|
|
7451
|
+
}, /* @__PURE__ */ React.createElement("svg", {
|
|
7452
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7453
|
+
width: "24",
|
|
7454
|
+
height: "24",
|
|
7455
|
+
viewBox: "0 0 24 24",
|
|
7456
|
+
fill: "none",
|
|
7457
|
+
stroke: "currentColor",
|
|
7458
|
+
"stroke-width": "2",
|
|
7459
|
+
"stroke-linecap": "round",
|
|
7460
|
+
"stroke-linejoin": "round"
|
|
7461
|
+
}, /* @__PURE__ */ React.createElement("path", {
|
|
7462
|
+
d: "M9.88 9.88a3 3 0 1 0 4.24 4.24"
|
|
7463
|
+
}), /* @__PURE__ */ React.createElement("path", {
|
|
7464
|
+
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"
|
|
7465
|
+
}), /* @__PURE__ */ React.createElement("path", {
|
|
7466
|
+
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"
|
|
7467
|
+
}), /* @__PURE__ */ React.createElement("line", {
|
|
7468
|
+
x1: "2",
|
|
7469
|
+
x2: "22",
|
|
7470
|
+
y1: "2",
|
|
7471
|
+
y2: "22"
|
|
7472
|
+
})));
|
|
7473
|
+
};
|
|
7450
7474
|
// components/blocks/auth/LoginForm.tsx
|
|
7451
7475
|
var LoginForm = function(_param) {
|
|
7452
7476
|
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 +7590,9 @@ var LoginForm = function(_param) {
|
|
|
7566
7590
|
onClick: function() {
|
|
7567
7591
|
return setPasswordVisible(!passwordVisible);
|
|
7568
7592
|
}
|
|
7569
|
-
}, /* @__PURE__ */ import_react42.default.createElement(EyeIcon, {
|
|
7593
|
+
}, passwordVisible ? /* @__PURE__ */ import_react42.default.createElement(EyeIcon, {
|
|
7594
|
+
classNames: "hawa-text-gray-500"
|
|
7595
|
+
}) : /* @__PURE__ */ import_react42.default.createElement(HiddenEyeIcon, {
|
|
7570
7596
|
classNames: "hawa-text-gray-500"
|
|
7571
7597
|
})),
|
|
7572
7598
|
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 +7634,11 @@ var LoginForm = function(_param) {
|
|
|
7608
7634
|
onClick: function() {
|
|
7609
7635
|
return setPasswordVisible(!passwordVisible);
|
|
7610
7636
|
}
|
|
7611
|
-
}, /* @__PURE__ */ import_react42.default.createElement(EyeIcon, {
|
|
7637
|
+
}, passwordVisible ? /* @__PURE__ */ import_react42.default.createElement(EyeIcon, {
|
|
7612
7638
|
classNames: "hawa-text-gray-500"
|
|
7613
|
-
})
|
|
7639
|
+
}) : /* @__PURE__ */ import_react42.default.createElement(HiddenEyeIcon, {
|
|
7640
|
+
classNames: "hawa-text-gray-500"
|
|
7641
|
+
}), " "),
|
|
7614
7642
|
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
7643
|
helperText: (_formState_errors_password = formState.errors.password) === null || _formState_errors_password === void 0 ? void 0 : _formState_errors_password.message
|
|
7616
7644
|
}, field));
|
|
@@ -7884,9 +7912,11 @@ var RegisterForm = function(_param) {
|
|
|
7884
7912
|
onClick: function() {
|
|
7885
7913
|
return setPasswordVisible(!passwordVisible);
|
|
7886
7914
|
}
|
|
7887
|
-
}, /* @__PURE__ */ import_react43.default.createElement(EyeIcon, {
|
|
7915
|
+
}, passwordVisible ? /* @__PURE__ */ import_react43.default.createElement(EyeIcon, {
|
|
7916
|
+
classNames: "hawa-text-gray-500"
|
|
7917
|
+
}) : /* @__PURE__ */ import_react43.default.createElement(HiddenEyeIcon, {
|
|
7888
7918
|
classNames: "hawa-text-gray-500"
|
|
7889
|
-
})),
|
|
7919
|
+
}), " "),
|
|
7890
7920
|
autoComplete: "new-password",
|
|
7891
7921
|
label: texts === null || texts === void 0 ? void 0 : (_texts_password = texts.password) === null || _texts_password === void 0 ? void 0 : _texts_password.label,
|
|
7892
7922
|
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
|
@@ -6669,16 +6669,20 @@ var CollapsibleContent2 = CollapsiblePrimitive.CollapsibleContent;
|
|
|
6669
6669
|
// components/layout/Navbar.tsx
|
|
6670
6670
|
var Navbar = (props) => {
|
|
6671
6671
|
const [isOpen, setIsOpen] = useState22(false);
|
|
6672
|
-
return /* @__PURE__ */ React61.createElement("nav", { className: "hawa-
|
|
6672
|
+
return /* @__PURE__ */ React61.createElement("nav", { className: " hawa-transition-all hawa-sticky hawa-top-2" }, /* @__PURE__ */ React61.createElement(Collapsible, { className: "hawa-bg-gray-800 hawa-p-4 hawa-relative hawa-m-2 hawa-rounded" }, /* @__PURE__ */ React61.createElement("div", { className: "hawa-flex hawa-justify-between hawa-items-center" }, /* @__PURE__ */ React61.createElement("div", { className: "hawa-flex hawa-items-center" }, /* @__PURE__ */ React61.createElement("div", { className: "hawa-text-white hawa-text-xl hawa-font-bold" }, /* @__PURE__ */ React61.createElement(Logos.sikka, { color: "#ffffff", className: "hawa-h-6 hawa-w-6" }))), /* @__PURE__ */ React61.createElement("div", { className: "hawa-md:hawa-hidden" }, /* @__PURE__ */ React61.createElement(
|
|
6673
6673
|
CollapsibleTrigger2,
|
|
6674
6674
|
{
|
|
6675
|
+
onClick: () => setIsOpen(!isOpen),
|
|
6675
6676
|
className: "hawa-text-white hawa-p-2",
|
|
6676
6677
|
"aria-label": "Toggle menu"
|
|
6677
6678
|
},
|
|
6678
6679
|
/* @__PURE__ */ React61.createElement(
|
|
6679
6680
|
"svg",
|
|
6680
6681
|
{
|
|
6681
|
-
className:
|
|
6682
|
+
className: cn(
|
|
6683
|
+
"hawa-w-6 hawa-h-6",
|
|
6684
|
+
isOpen ? "hawa-invisible" : "hawa-visible"
|
|
6685
|
+
),
|
|
6682
6686
|
fill: "none",
|
|
6683
6687
|
stroke: "currentColor",
|
|
6684
6688
|
viewBox: "0 0 24 24",
|
|
@@ -6694,7 +6698,29 @@ var Navbar = (props) => {
|
|
|
6694
6698
|
}
|
|
6695
6699
|
)
|
|
6696
6700
|
)
|
|
6697
|
-
))), /* @__PURE__ */ React61.createElement(
|
|
6701
|
+
))), /* @__PURE__ */ React61.createElement(
|
|
6702
|
+
CollapsibleContent2,
|
|
6703
|
+
{
|
|
6704
|
+
className: cn(
|
|
6705
|
+
"data-[state=open]:hawa-animate-in",
|
|
6706
|
+
"data-[state=open]:hawa-fade-in-90",
|
|
6707
|
+
"hawa-transition-all hawa-bg-gray-400 hawa-absolute hawa-top-[88px] hawa-flex hawa-flex-col hawa-rounded"
|
|
6708
|
+
// "hawa-transition-all hawa-bg-gray-400 hawa-fixed hawa-left-0 hawa-top-[72px] hawa-w-full hawa-flex hawa-flex-col"
|
|
6709
|
+
),
|
|
6710
|
+
style: {
|
|
6711
|
+
width: "calc(100% - 32px)",
|
|
6712
|
+
zIndex: -100
|
|
6713
|
+
}
|
|
6714
|
+
},
|
|
6715
|
+
props.menuItems?.map((item) => /* @__PURE__ */ React61.createElement(
|
|
6716
|
+
"div",
|
|
6717
|
+
{
|
|
6718
|
+
onClick: item.action,
|
|
6719
|
+
className: "hawa-text-white hawa-p-4 hawa-px-10 hover:hawa-bg-gray-950 hawa-transition-all hawa-cursor-pointer"
|
|
6720
|
+
},
|
|
6721
|
+
item.label
|
|
6722
|
+
))
|
|
6723
|
+
)));
|
|
6698
6724
|
};
|
|
6699
6725
|
|
|
6700
6726
|
// components/layout/AppLayout.tsx
|
|
@@ -7471,6 +7497,24 @@ var EyeIcon = (props) => /* @__PURE__ */ React.createElement("div", { className:
|
|
|
7471
7497
|
/* @__PURE__ */ React.createElement("path", { d: "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z" }),
|
|
7472
7498
|
/* @__PURE__ */ React.createElement("circle", { cx: "12", cy: "12", r: "3" })
|
|
7473
7499
|
));
|
|
7500
|
+
var HiddenEyeIcon = (props) => /* @__PURE__ */ React.createElement("div", { className: props.classNames }, /* @__PURE__ */ React.createElement(
|
|
7501
|
+
"svg",
|
|
7502
|
+
{
|
|
7503
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7504
|
+
width: "24",
|
|
7505
|
+
height: "24",
|
|
7506
|
+
viewBox: "0 0 24 24",
|
|
7507
|
+
fill: "none",
|
|
7508
|
+
stroke: "currentColor",
|
|
7509
|
+
"stroke-width": "2",
|
|
7510
|
+
"stroke-linecap": "round",
|
|
7511
|
+
"stroke-linejoin": "round"
|
|
7512
|
+
},
|
|
7513
|
+
/* @__PURE__ */ React.createElement("path", { d: "M9.88 9.88a3 3 0 1 0 4.24 4.24" }),
|
|
7514
|
+
/* @__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" }),
|
|
7515
|
+
/* @__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" }),
|
|
7516
|
+
/* @__PURE__ */ React.createElement("line", { x1: "2", x2: "22", y1: "2", y2: "22" })
|
|
7517
|
+
));
|
|
7474
7518
|
|
|
7475
7519
|
// components/blocks/auth/LoginForm.tsx
|
|
7476
7520
|
var LoginForm = ({
|
|
@@ -7564,7 +7608,7 @@ var LoginForm = ({
|
|
|
7564
7608
|
className: "hawa-cursor-pointer",
|
|
7565
7609
|
onClick: () => setPasswordVisible(!passwordVisible)
|
|
7566
7610
|
},
|
|
7567
|
-
/* @__PURE__ */ React68.createElement(EyeIcon, { classNames: "hawa-text-gray-500" })
|
|
7611
|
+
passwordVisible ? /* @__PURE__ */ React68.createElement(EyeIcon, { classNames: "hawa-text-gray-500" }) : /* @__PURE__ */ React68.createElement(HiddenEyeIcon, { classNames: "hawa-text-gray-500" })
|
|
7568
7612
|
),
|
|
7569
7613
|
placeholder: texts?.password?.placeholder || "Enter your password",
|
|
7570
7614
|
helperText: formState.errors.password?.message,
|
|
@@ -7618,7 +7662,8 @@ var LoginForm = ({
|
|
|
7618
7662
|
className: "hawa-cursor-pointer",
|
|
7619
7663
|
onClick: () => setPasswordVisible(!passwordVisible)
|
|
7620
7664
|
},
|
|
7621
|
-
/* @__PURE__ */ React68.createElement(EyeIcon, { classNames: "hawa-text-gray-500" })
|
|
7665
|
+
passwordVisible ? /* @__PURE__ */ React68.createElement(EyeIcon, { classNames: "hawa-text-gray-500" }) : /* @__PURE__ */ React68.createElement(HiddenEyeIcon, { classNames: "hawa-text-gray-500" }),
|
|
7666
|
+
" "
|
|
7622
7667
|
),
|
|
7623
7668
|
placeholder: texts?.password?.placeholder || "Enter your password",
|
|
7624
7669
|
helperText: formState.errors.password?.message,
|
|
@@ -7901,7 +7946,8 @@ var RegisterForm = ({ texts, ...props }) => {
|
|
|
7901
7946
|
className: "hawa-cursor-pointer",
|
|
7902
7947
|
onClick: () => setPasswordVisible(!passwordVisible)
|
|
7903
7948
|
},
|
|
7904
|
-
/* @__PURE__ */ React69.createElement(EyeIcon, { classNames: "hawa-text-gray-500" })
|
|
7949
|
+
passwordVisible ? /* @__PURE__ */ React69.createElement(EyeIcon, { classNames: "hawa-text-gray-500" }) : /* @__PURE__ */ React69.createElement(HiddenEyeIcon, { classNames: "hawa-text-gray-500" }),
|
|
7950
|
+
" "
|
|
7905
7951
|
),
|
|
7906
7952
|
autoComplete: "new-password",
|
|
7907
7953
|
label: texts?.password?.label,
|
|
@@ -8367,7 +8413,7 @@ var CodeConfirmation = (props) => {
|
|
|
8367
8413
|
};
|
|
8368
8414
|
|
|
8369
8415
|
// components/blocks/feedback/UserReferralSource.tsx
|
|
8370
|
-
import React75, { useRef as useRef11, useState as
|
|
8416
|
+
import React75, { useRef as useRef11, useState as useState29 } from "react";
|
|
8371
8417
|
import { Controller as Controller6, useForm as useForm6 } from "react-hook-form";
|
|
8372
8418
|
import { zodResolver as zodResolver6 } from "@hookform/resolvers/zod";
|
|
8373
8419
|
import * as z6 from "zod";
|
|
@@ -8376,7 +8422,7 @@ var UserReferralSource = ({
|
|
|
8376
8422
|
options = [],
|
|
8377
8423
|
...props
|
|
8378
8424
|
}) => {
|
|
8379
|
-
const [closed, setClosed] =
|
|
8425
|
+
const [closed, setClosed] = useState29(false);
|
|
8380
8426
|
const popUpRef = useRef11(null);
|
|
8381
8427
|
const formSchema = z6.object({
|
|
8382
8428
|
source: z6.string({ required_error: props.texts?.pleaseSelectOption }),
|
|
@@ -8504,16 +8550,16 @@ var UserReferralSource = ({
|
|
|
8504
8550
|
};
|
|
8505
8551
|
|
|
8506
8552
|
// components/blocks/feedback/FeedbackRating.tsx
|
|
8507
|
-
import React76, { useEffect as useEffect20, useRef as useRef12, useState as
|
|
8553
|
+
import React76, { useEffect as useEffect20, useRef as useRef12, useState as useState30 } from "react";
|
|
8508
8554
|
import clsx11 from "clsx";
|
|
8509
8555
|
var FeedbackRating = ({
|
|
8510
8556
|
position = "bottom-right",
|
|
8511
8557
|
...props
|
|
8512
8558
|
}) => {
|
|
8513
|
-
const [closed, setClosed] =
|
|
8514
|
-
const [answered, setAnswered] =
|
|
8515
|
-
const [clickedOption, setClickedOption] =
|
|
8516
|
-
const [closingTimer, setClosingTimer] =
|
|
8559
|
+
const [closed, setClosed] = useState30(false);
|
|
8560
|
+
const [answered, setAnswered] = useState30(false);
|
|
8561
|
+
const [clickedOption, setClickedOption] = useState30(null);
|
|
8562
|
+
const [closingTimer, setClosingTimer] = useState30(5);
|
|
8517
8563
|
const popUpRef = useRef12(null);
|
|
8518
8564
|
const boxPosition = {
|
|
8519
8565
|
"bottom-right": "hawa-right-4",
|
|
@@ -8618,12 +8664,12 @@ var FeedbackRating = ({
|
|
|
8618
8664
|
};
|
|
8619
8665
|
|
|
8620
8666
|
// components/blocks/feedback/FeedbackEmoji.tsx
|
|
8621
|
-
import React77, { useState as
|
|
8667
|
+
import React77, { useState as useState31 } from "react";
|
|
8622
8668
|
var FeedbackEmoji = (props) => {
|
|
8623
|
-
const [selectedEmoji, setSelectedEmoji] =
|
|
8624
|
-
const [loadingSubmit, setLoadingSubmit] =
|
|
8625
|
-
const [feedbackText, setFeedbackText] =
|
|
8626
|
-
const [helperText, setHelperText] =
|
|
8669
|
+
const [selectedEmoji, setSelectedEmoji] = useState31(null);
|
|
8670
|
+
const [loadingSubmit, setLoadingSubmit] = useState31(false);
|
|
8671
|
+
const [feedbackText, setFeedbackText] = useState31("");
|
|
8672
|
+
const [helperText, setHelperText] = useState31(false);
|
|
8627
8673
|
let emojis = [
|
|
8628
8674
|
{ icon: /* @__PURE__ */ React77.createElement(VeryGoodEmoji, null), value: "very-good" },
|
|
8629
8675
|
{ icon: /* @__PURE__ */ React77.createElement(GoodEmoji, null), value: "good" },
|
|
@@ -9086,7 +9132,7 @@ var PricingPlans = (props) => {
|
|
|
9086
9132
|
};
|
|
9087
9133
|
|
|
9088
9134
|
// components/blocks/pricing/ComparingPlans.tsx
|
|
9089
|
-
import React87, { useState as
|
|
9135
|
+
import React87, { useState as useState32 } from "react";
|
|
9090
9136
|
var CheckMark = () => /* @__PURE__ */ React87.createElement(
|
|
9091
9137
|
"svg",
|
|
9092
9138
|
{
|
|
@@ -9122,8 +9168,8 @@ var UncheckMark = () => /* @__PURE__ */ React87.createElement(
|
|
|
9122
9168
|
)
|
|
9123
9169
|
);
|
|
9124
9170
|
var ComparingPlans = (props) => {
|
|
9125
|
-
const [currentCurrency, setCurrentCurrency] =
|
|
9126
|
-
const [currentCycle, setCurrentCycle] =
|
|
9171
|
+
const [currentCurrency, setCurrentCurrency] = useState32("sar");
|
|
9172
|
+
const [currentCycle, setCurrentCycle] = useState32("month");
|
|
9127
9173
|
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
9174
|
Radio,
|
|
9129
9175
|
{
|
|
@@ -9181,10 +9227,10 @@ var ComparingPlans = (props) => {
|
|
|
9181
9227
|
};
|
|
9182
9228
|
|
|
9183
9229
|
// components/blocks/pricing/HorizontalPricing.tsx
|
|
9184
|
-
import React88, { useState as
|
|
9230
|
+
import React88, { useState as useState33 } from "react";
|
|
9185
9231
|
import clsx12 from "clsx";
|
|
9186
9232
|
var HorizontalPricing = (props) => {
|
|
9187
|
-
const [selectedCard, setSelectedCard] =
|
|
9233
|
+
const [selectedCard, setSelectedCard] = useState33("");
|
|
9188
9234
|
let data = [
|
|
9189
9235
|
{ title: "basic", price: "$49", cycle: "/mo" },
|
|
9190
9236
|
{ title: "business", price: "$99", cycle: "/mo" },
|
|
@@ -9295,18 +9341,18 @@ var Usage = (props) => {
|
|
|
9295
9341
|
};
|
|
9296
9342
|
|
|
9297
9343
|
// components/hooks/useDiscloser.ts
|
|
9298
|
-
import { useState as
|
|
9344
|
+
import { useState as useState34 } from "react";
|
|
9299
9345
|
|
|
9300
9346
|
// components/hooks/useHover.ts
|
|
9301
|
-
import { useEffect as useEffect21, useRef as useRef13, useState as
|
|
9347
|
+
import { useEffect as useEffect21, useRef as useRef13, useState as useState35 } from "react";
|
|
9302
9348
|
|
|
9303
9349
|
// components/hooks/useCarousel.ts
|
|
9304
|
-
import { useState as
|
|
9350
|
+
import { useState as useState36, useRef as useRef14 } from "react";
|
|
9305
9351
|
|
|
9306
9352
|
// components/hooks/useWindowSize.ts
|
|
9307
|
-
import { useEffect as useEffect22, useState as
|
|
9353
|
+
import { useEffect as useEffect22, useState as useState37 } from "react";
|
|
9308
9354
|
var useWindowSize = () => {
|
|
9309
|
-
const [windowSize, setWindowSize] =
|
|
9355
|
+
const [windowSize, setWindowSize] = useState37({
|
|
9310
9356
|
width: void 0,
|
|
9311
9357
|
height: void 0
|
|
9312
9358
|
});
|
|
@@ -9325,7 +9371,7 @@ var useWindowSize = () => {
|
|
|
9325
9371
|
};
|
|
9326
9372
|
|
|
9327
9373
|
// components/hooks/useFocusWithin.ts
|
|
9328
|
-
import { useRef as useRef15, useState as
|
|
9374
|
+
import { useRef as useRef15, useState as useState38, useEffect as useEffect23 } from "react";
|
|
9329
9375
|
function containsRelatedTarget(event) {
|
|
9330
9376
|
if (event.currentTarget instanceof HTMLElement && event.relatedTarget instanceof HTMLElement) {
|
|
9331
9377
|
return event.currentTarget.contains(event.relatedTarget);
|
|
@@ -9337,7 +9383,7 @@ function useFocusWithin({
|
|
|
9337
9383
|
onFocus
|
|
9338
9384
|
} = {}) {
|
|
9339
9385
|
const ref = useRef15(null);
|
|
9340
|
-
const [focused, _setFocused] =
|
|
9386
|
+
const [focused, _setFocused] = useState38(false);
|
|
9341
9387
|
const focusedRef = useRef15(false);
|
|
9342
9388
|
const setFocused = (value) => {
|
|
9343
9389
|
_setFocused(value);
|
|
@@ -9370,7 +9416,7 @@ function useFocusWithin({
|
|
|
9370
9416
|
}
|
|
9371
9417
|
|
|
9372
9418
|
// components/hooks/useMediaQuery.ts
|
|
9373
|
-
import { useState as
|
|
9419
|
+
import { useState as useState39, useEffect as useEffect24, useRef as useRef16 } from "react";
|
|
9374
9420
|
function attachMediaListener(query, callback) {
|
|
9375
9421
|
try {
|
|
9376
9422
|
query.addEventListener("change", callback);
|
|
@@ -9392,7 +9438,7 @@ function getInitialValue(query, initialValue) {
|
|
|
9392
9438
|
function useMediaQuery(query, initialValue, { getInitialValueInEffect } = {
|
|
9393
9439
|
getInitialValueInEffect: true
|
|
9394
9440
|
}) {
|
|
9395
|
-
const [matches, setMatches] =
|
|
9441
|
+
const [matches, setMatches] = useState39(
|
|
9396
9442
|
getInitialValueInEffect ? initialValue : getInitialValue(query, initialValue)
|
|
9397
9443
|
);
|
|
9398
9444
|
const queryRef = useRef16();
|
|
@@ -9411,15 +9457,15 @@ function useMediaQuery(query, initialValue, { getInitialValueInEffect } = {
|
|
|
9411
9457
|
}
|
|
9412
9458
|
|
|
9413
9459
|
// components/hooks/useScrollPosition.ts
|
|
9414
|
-
import { useState as
|
|
9460
|
+
import { useState as useState40, useEffect as useEffect25 } from "react";
|
|
9415
9461
|
|
|
9416
9462
|
// components/hooks/useTable.ts
|
|
9417
|
-
import { useState as
|
|
9463
|
+
import { useState as useState41, useEffect as useEffect26 } from "react";
|
|
9418
9464
|
|
|
9419
9465
|
// components/hooks/useTabs.ts
|
|
9420
|
-
import { useEffect as useEffect27, useState as
|
|
9466
|
+
import { useEffect as useEffect27, useState as useState42 } from "react";
|
|
9421
9467
|
function useTabs(initialTab = "") {
|
|
9422
|
-
const [activeTab, setActiveTab] =
|
|
9468
|
+
const [activeTab, setActiveTab] = useState42(initialTab);
|
|
9423
9469
|
useEffect27(() => {
|
|
9424
9470
|
const handleHashChange = () => {
|
|
9425
9471
|
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.13.
|
|
3
|
+
"version": "0.13.10-next",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"eslint": "^8.52.0",
|
|
53
53
|
"eslint-config-next": "^14.0.0",
|
|
54
54
|
"libphonenumber-js": "^1.10.49",
|
|
55
|
-
"next": "^
|
|
55
|
+
"next": "^14.0.0",
|
|
56
56
|
"next-themes": "^0.2.1",
|
|
57
57
|
"prism-react-renderer": "^2.1.0",
|
|
58
58
|
"react": "18.2.0",
|
|
@@ -60,29 +60,29 @@
|
|
|
60
60
|
"react-dropzone": "^14.2.3",
|
|
61
61
|
"react-hook-form": "^7.47.0",
|
|
62
62
|
"react-select": "^5.7.7",
|
|
63
|
-
"tailwind-merge": "^
|
|
63
|
+
"tailwind-merge": "^2.0.0",
|
|
64
64
|
"typescript": "5.2.2",
|
|
65
65
|
"zod": "^3.22.3"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
|
-
"@storybook/addon-essentials": "^7.5.
|
|
69
|
-
"@storybook/addon-interactions": "^7.5.
|
|
70
|
-
"@storybook/addon-links": "^7.5.
|
|
71
|
-
"@storybook/addon-mdx-gfm": "^7.5.
|
|
68
|
+
"@storybook/addon-essentials": "^7.5.2",
|
|
69
|
+
"@storybook/addon-interactions": "^7.5.2",
|
|
70
|
+
"@storybook/addon-links": "^7.5.2",
|
|
71
|
+
"@storybook/addon-mdx-gfm": "^7.5.2",
|
|
72
72
|
"@storybook/addon-onboarding": "^1.0.8",
|
|
73
|
-
"@storybook/blocks": "^7.5.
|
|
74
|
-
"@storybook/manager-api": "^7.5.
|
|
75
|
-
"@storybook/nextjs": "^7.5.
|
|
76
|
-
"@storybook/react": "^7.5.
|
|
73
|
+
"@storybook/blocks": "^7.5.2",
|
|
74
|
+
"@storybook/manager-api": "^7.5.2",
|
|
75
|
+
"@storybook/nextjs": "^7.5.2",
|
|
76
|
+
"@storybook/react": "^7.5.2",
|
|
77
77
|
"@storybook/testing-library": "^0.2.2",
|
|
78
|
-
"@storybook/theming": "^7.5.
|
|
78
|
+
"@storybook/theming": "^7.5.2",
|
|
79
79
|
"autoprefixer": "^10.4.16",
|
|
80
80
|
"eslint-plugin-storybook": "^0.6.15",
|
|
81
81
|
"lucide-react": "^0.290.0",
|
|
82
82
|
"postcss": "^8.4.31",
|
|
83
83
|
"postcss-cli": "^10.1.0",
|
|
84
84
|
"postcss-import": "^15.1.0",
|
|
85
|
-
"storybook": "^7.5.
|
|
85
|
+
"storybook": "^7.5.2",
|
|
86
86
|
"storybook-dark-mode": "^3.0.1",
|
|
87
87
|
"tailwindcss": "^3.3.5",
|
|
88
88
|
"tailwindcss-animate": "^1.0.7",
|