@sikka/hawa 0.23.2-next → 0.23.7-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/accordion/index.js +30 -2399
- package/dist/accordion/index.mjs +19 -461
- package/dist/alert/index.mjs +0 -1
- package/dist/appStores/index.js +75 -0
- package/dist/appStores/index.mjs +38 -0
- package/dist/avatar/index.mjs +118 -3
- package/dist/backToTop/index.mjs +102 -4
- package/dist/badge/index.js +127 -0
- package/dist/badge/index.mjs +84 -0
- package/dist/blocks/auth/index.js +1173 -3092
- package/dist/blocks/auth/index.mjs +16 -10
- package/dist/blocks/feedback/index.js +864 -2913
- package/dist/blocks/feedback/index.mjs +14 -8
- package/dist/blocks/index.js +5714 -5316
- package/dist/blocks/index.mjs +390 -45
- package/dist/blocks/misc/index.js +634 -2409
- package/dist/blocks/misc/index.mjs +14 -8
- package/dist/blocks/pricing/index.js +522 -524
- package/dist/blocks/pricing/index.mjs +1861 -45
- package/dist/breadcrumb/index.js +63 -0
- package/dist/breadcrumb/index.mjs +26 -0
- package/dist/card/index.mjs +83 -8
- package/dist/checkbox/index.mjs +138 -3
- package/dist/chip/index.js +129 -0
- package/dist/chip/index.mjs +8 -0
- package/dist/{chunk-X6PCWJYD.mjs → chunk-2R2QPJT7.mjs} +761 -1104
- package/dist/chunk-677VOLD4.mjs +464 -0
- package/dist/chunk-72HYR6WB.mjs +88 -0
- package/dist/chunk-A25EXELT.mjs +131 -0
- package/dist/{chunk-OE27DSIY.mjs → chunk-F6TKEDDP.mjs} +2 -4
- package/dist/{chunk-YFC2GSJ6.mjs → chunk-P2O6R3S6.mjs} +66 -5
- package/dist/{chunk-GXXX5UB4.mjs → chunk-QGKW5R5F.mjs} +59 -20
- package/dist/chunk-TR56G3NM.mjs +2350 -0
- package/dist/chunk-UAVBFK53.mjs +346 -0
- package/dist/combobox/index.mjs +153 -7
- package/dist/dataTable/index.mjs +355 -8
- package/dist/elements/index.js +800 -1148
- package/dist/elements/index.mjs +1 -11
- package/dist/fileDropzone/index.mjs +226 -4
- package/dist/index.js +1721 -1721
- package/dist/index.mjs +1663 -1663
- package/dist/layout/index.js +493 -510
- package/dist/layout/index.mjs +1 -1
- package/dist/loading/index.mjs +0 -1
- package/dist/logos/index.mjs +204 -3
- package/dist/navigationMenu/index.mjs +155 -13
- package/dist/phoneInput/index.js +2074 -0
- package/dist/phoneInput/index.mjs +1776 -0
- package/dist/pinInput/index.js +130 -0
- package/dist/pinInput/index.mjs +88 -0
- package/dist/progress/index.js +71 -0
- package/dist/progress/index.mjs +29 -0
- package/dist/radio/index.mjs +202 -4
- package/dist/scrollArea/index.js +90 -0
- package/dist/scrollArea/index.mjs +47 -0
- package/dist/select/index.mjs +1 -1
- package/dist/sheet/index.mjs +137 -12
- package/dist/sortButton/index.mjs +40 -4
- package/dist/stopPropagationWrapper/index.js +48 -0
- package/dist/stopPropagationWrapper/index.mjs +11 -0
- package/dist/switch/index.mjs +79 -3
- package/dist/tabs/index.js +1 -1
- package/dist/tabs/index.mjs +68 -6
- package/dist/textarea/index.mjs +54 -4
- package/package.json +2 -2
- package/dist/Chip-DJ6ThZc_.d.ts +0 -21
- package/dist/Chip-eal8vwDz.d.mts +0 -21
- package/dist/accordion/index.d.mts +0 -42
- package/dist/accordion/index.d.ts +0 -42
- package/dist/alert/index.d.mts +0 -28
- package/dist/alert/index.d.ts +0 -28
- package/dist/avatar/index.d.mts +0 -15
- package/dist/avatar/index.d.ts +0 -15
- package/dist/backToTop/index.d.mts +0 -15
- package/dist/backToTop/index.d.ts +0 -15
- package/dist/button/index.d.mts +0 -16
- package/dist/button/index.d.ts +0 -16
- package/dist/card/index.d.mts +0 -17
- package/dist/card/index.d.ts +0 -17
- package/dist/checkbox/index.d.mts +0 -20
- package/dist/checkbox/index.d.ts +0 -20
- package/dist/chunk-BK5WF7UO.mjs +0 -231
- package/dist/chunk-CXWYC6FS.mjs +0 -360
- package/dist/chunk-D2USGMDT.mjs +0 -208
- package/dist/chunk-DX4SLF2L.mjs +0 -45
- package/dist/chunk-ENNSA4VR.mjs +0 -5566
- package/dist/chunk-GXSYCLZZ.mjs +0 -158
- package/dist/chunk-IQPGAHUR.mjs +0 -107
- package/dist/chunk-POT2IP62.mjs +0 -123
- package/dist/chunk-TWDZB2VH.mjs +0 -151
- package/dist/chunk-VBTYVVA7.mjs +0 -93
- package/dist/chunk-VCGW5DIP.mjs +0 -170
- package/dist/chunk-X3SMPIA3.mjs +0 -0
- package/dist/chunk-XA646BZ2.mjs +0 -143
- package/dist/chunk-ZCUUQ5VV.mjs +0 -84
- package/dist/combobox/index.d.mts +0 -32
- package/dist/combobox/index.d.ts +0 -32
- package/dist/command/index.d.mts +0 -48
- package/dist/command/index.d.ts +0 -48
- package/dist/commonTypes-gbO4hPli.d.mts +0 -7
- package/dist/commonTypes-gbO4hPli.d.ts +0 -7
- package/dist/dataTable/index.d.mts +0 -39
- package/dist/dataTable/index.d.ts +0 -39
- package/dist/dialog/index.d.mts +0 -57
- package/dist/dialog/index.d.ts +0 -57
- package/dist/dropdownMenu/index.d.mts +0 -95
- package/dist/dropdownMenu/index.d.ts +0 -95
- package/dist/fileDropzone/index.d.mts +0 -37
- package/dist/fileDropzone/index.d.ts +0 -37
- package/dist/input/index.d.mts +0 -36
- package/dist/input/index.d.ts +0 -36
- package/dist/label/index.d.mts +0 -12
- package/dist/label/index.d.ts +0 -12
- package/dist/loading/index.d.mts +0 -15
- package/dist/loading/index.d.ts +0 -15
- package/dist/logos/index.d.mts +0 -27
- package/dist/logos/index.d.ts +0 -27
- package/dist/navigationMenu/index.d.mts +0 -39
- package/dist/navigationMenu/index.d.ts +0 -39
- package/dist/popover/index.d.mts +0 -23
- package/dist/popover/index.d.ts +0 -23
- package/dist/radio/index.d.mts +0 -28
- package/dist/radio/index.d.ts +0 -28
- package/dist/select/index.d.mts +0 -43
- package/dist/select/index.d.ts +0 -43
- package/dist/sheet/index.d.mts +0 -30
- package/dist/sheet/index.d.ts +0 -30
- package/dist/skeleton/index.d.mts +0 -10
- package/dist/skeleton/index.d.ts +0 -10
- package/dist/sortButton/index.d.mts +0 -10
- package/dist/sortButton/index.d.ts +0 -10
- package/dist/splitButton/index.d.mts +0 -15
- package/dist/splitButton/index.d.ts +0 -15
- package/dist/switch/index.d.mts +0 -12
- package/dist/switch/index.d.ts +0 -12
- package/dist/table/index.d.mts +0 -21
- package/dist/table/index.d.ts +0 -21
- package/dist/tabs/index.d.mts +0 -16
- package/dist/tabs/index.d.ts +0 -16
- package/dist/textarea/index.d.mts +0 -17
- package/dist/textarea/index.d.ts +0 -17
- package/dist/tooltip/index.d.mts +0 -26
- package/dist/tooltip/index.d.ts +0 -26
- /package/dist/{chunk-A7OPD7H7.mjs → chunk-B6UCD4GP.mjs} +0 -0
- /package/dist/{chunk-O2ALK7UE.mjs → chunk-Z4M72OD3.mjs} +0 -0
package/dist/layout/index.js
CHANGED
|
@@ -60,7 +60,7 @@ __export(layout_exports, {
|
|
|
60
60
|
module.exports = __toCommonJS(layout_exports);
|
|
61
61
|
|
|
62
62
|
// components/layout/Stats.tsx
|
|
63
|
-
var
|
|
63
|
+
var import_react36 = __toESM(require("react"));
|
|
64
64
|
|
|
65
65
|
// components/elements/card/Card.tsx
|
|
66
66
|
var React = __toESM(require("react"));
|
|
@@ -736,13 +736,94 @@ var DropdownMenu = ({
|
|
|
736
736
|
};
|
|
737
737
|
|
|
738
738
|
// components/elements/accordion/Accordion.tsx
|
|
739
|
-
var
|
|
739
|
+
var React9 = __toESM(require("react"));
|
|
740
740
|
var AccordionPrimitive3 = __toESM(require("@radix-ui/react-accordion"));
|
|
741
741
|
|
|
742
|
+
// components/elements/chip/Chip.tsx
|
|
743
|
+
var import_react4 = __toESM(require("react"));
|
|
744
|
+
var Chip = import_react4.default.forwardRef(
|
|
745
|
+
({
|
|
746
|
+
label,
|
|
747
|
+
size = "normal",
|
|
748
|
+
icon,
|
|
749
|
+
color,
|
|
750
|
+
radius = "inherit",
|
|
751
|
+
dotType,
|
|
752
|
+
...rest
|
|
753
|
+
}, ref) => {
|
|
754
|
+
let defaultStyles = "hawa-flex hawa-flex-row hawa-w-fit hawa-gap-1 hawa-items-center hawa-px-2.5 hawa-py-1 hawa-font-bold ";
|
|
755
|
+
let radiusStyles = {
|
|
756
|
+
inherit: " hawa-rounded",
|
|
757
|
+
full: "hawa-rounded-full",
|
|
758
|
+
none: "hawa-rounded-none"
|
|
759
|
+
};
|
|
760
|
+
let sizeStyles = {
|
|
761
|
+
small: "hawa-h-[15px] hawa-leading-4 hawa-px-0 hawa-py-0 hawa-text-[9px] hawa-gap-0.5 ",
|
|
762
|
+
normal: "hawa-h-fit hawa-text-xs",
|
|
763
|
+
large: "hawa-text-base"
|
|
764
|
+
};
|
|
765
|
+
let dotStyles = {
|
|
766
|
+
small: "hawa-flex hawa-h-1 hawa-w-1 hawa-rounded-full",
|
|
767
|
+
normal: "hawa-flex hawa-h-2 hawa-w-2 hawa-rounded-full",
|
|
768
|
+
large: "hawa-flex hawa-h-3 hawa-w-3 hawa-rounded-full"
|
|
769
|
+
};
|
|
770
|
+
let dotTypeStyles = {
|
|
771
|
+
available: "hawa-bg-green-500",
|
|
772
|
+
unavailable: "hawa-bg-red-500"
|
|
773
|
+
};
|
|
774
|
+
let colorStyles = {
|
|
775
|
+
green: "hawa-bg-green-100 hawa-text-green-500 dark:hawa-bg-green-400 dark:hawa-text-green-800",
|
|
776
|
+
blue: "hawa-bg-blue-100 hawa-text-blue-500 dark:hawa-bg-blue-400 dark:hawa-text-blue-100",
|
|
777
|
+
red: "hawa-bg-red-100 hawa-text-red-500 dark:hawa-bg-red-400 dark:hawa-text-red-100",
|
|
778
|
+
yellow: "hawa-bg-yellow-100 hawa-text-yellow-600 dark:hawa-bg-yellow-400 dark:hawa-text-yellow-800",
|
|
779
|
+
orange: "hawa-bg-orange-100 hawa-text-orange-500 dark:hawa-bg-orange-400 dark:hawa-text-orange-100",
|
|
780
|
+
purple: "hawa-bg-purple-100 hawa-text-purple-500 dark:hawa-bg-purple-400 dark:hawa-text-purple-100",
|
|
781
|
+
cyan: "hawa-bg-cyan-100 hawa-text-cyan-800 dark:hawa-bg-cyan-400 dark:hawa-text-cyan-800",
|
|
782
|
+
hyper: "hawa-text-white hawa-bg-gradient-to-tl hawa-from-pink-500 hawa-via-red-500 hawa-to-yellow-500 ",
|
|
783
|
+
oceanic: "hawa-text-white hawa-bg-gradient-to-bl hawa-from-green-300 hawa-via-blue-500 hawa-to-purple-600"
|
|
784
|
+
};
|
|
785
|
+
if (label) {
|
|
786
|
+
return /* @__PURE__ */ import_react4.default.createElement(
|
|
787
|
+
"span",
|
|
788
|
+
{
|
|
789
|
+
...rest,
|
|
790
|
+
ref,
|
|
791
|
+
className: cn(
|
|
792
|
+
defaultStyles,
|
|
793
|
+
sizeStyles[size],
|
|
794
|
+
radiusStyles[radius],
|
|
795
|
+
color ? colorStyles[color] : "hawa-border hawa-bg-none"
|
|
796
|
+
)
|
|
797
|
+
},
|
|
798
|
+
dotType && /* @__PURE__ */ import_react4.default.createElement(
|
|
799
|
+
"span",
|
|
800
|
+
{
|
|
801
|
+
className: cn(dotStyles[size], dotTypeStyles[dotType])
|
|
802
|
+
}
|
|
803
|
+
),
|
|
804
|
+
icon && icon,
|
|
805
|
+
label
|
|
806
|
+
);
|
|
807
|
+
} else {
|
|
808
|
+
return /* @__PURE__ */ import_react4.default.createElement(
|
|
809
|
+
"span",
|
|
810
|
+
{
|
|
811
|
+
...rest,
|
|
812
|
+
ref,
|
|
813
|
+
className: cn(
|
|
814
|
+
"hawa-h-2 hawa-w-2 hawa-rounded-full",
|
|
815
|
+
color ? colorStyles[color] : "hawa-border hawa-bg-none"
|
|
816
|
+
)
|
|
817
|
+
}
|
|
818
|
+
);
|
|
819
|
+
}
|
|
820
|
+
}
|
|
821
|
+
);
|
|
822
|
+
|
|
742
823
|
// components/elements/accordion/AccordionContent.tsx
|
|
743
|
-
var
|
|
824
|
+
var React7 = __toESM(require("react"));
|
|
744
825
|
var AccordionPrimitive = __toESM(require("@radix-ui/react-accordion"));
|
|
745
|
-
var AccordionContent =
|
|
826
|
+
var AccordionContent = React7.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React7.createElement(
|
|
746
827
|
AccordionPrimitive.Content,
|
|
747
828
|
{
|
|
748
829
|
ref,
|
|
@@ -752,14 +833,14 @@ var AccordionContent = React6.forwardRef(({ className, children, ...props }, ref
|
|
|
752
833
|
) : className,
|
|
753
834
|
...props
|
|
754
835
|
},
|
|
755
|
-
/* @__PURE__ */
|
|
836
|
+
/* @__PURE__ */ React7.createElement("div", { className: "hawa-bg-background hawa-p-4" }, children)
|
|
756
837
|
));
|
|
757
838
|
AccordionContent.displayName = AccordionPrimitive.Content.displayName;
|
|
758
839
|
|
|
759
840
|
// components/elements/accordion/AccordionTrigger.tsx
|
|
760
|
-
var
|
|
841
|
+
var React8 = __toESM(require("react"));
|
|
761
842
|
var AccordionPrimitive2 = __toESM(require("@radix-ui/react-accordion"));
|
|
762
|
-
var AccordionTrigger =
|
|
843
|
+
var AccordionTrigger = React8.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React8.createElement(AccordionPrimitive2.Header, { className: "hawa-flex" }, /* @__PURE__ */ React8.createElement(
|
|
763
844
|
AccordionPrimitive2.Trigger,
|
|
764
845
|
{
|
|
765
846
|
ref,
|
|
@@ -771,7 +852,7 @@ var AccordionTrigger = React7.forwardRef(({ className, children, ...props }, ref
|
|
|
771
852
|
...props
|
|
772
853
|
},
|
|
773
854
|
children,
|
|
774
|
-
!props.hideArrow && /* @__PURE__ */
|
|
855
|
+
!props.hideArrow && /* @__PURE__ */ React8.createElement(
|
|
775
856
|
"svg",
|
|
776
857
|
{
|
|
777
858
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -785,13 +866,13 @@ var AccordionTrigger = React7.forwardRef(({ className, children, ...props }, ref
|
|
|
785
866
|
strokeLinejoin: "round",
|
|
786
867
|
className: "hawa-icon hawa-shrink-0 hawa-transition-transform hawa-duration-200"
|
|
787
868
|
},
|
|
788
|
-
/* @__PURE__ */
|
|
869
|
+
/* @__PURE__ */ React8.createElement("path", { d: "m6 9 6 6 6-6" })
|
|
789
870
|
)
|
|
790
871
|
)));
|
|
791
872
|
AccordionTrigger.displayName = AccordionPrimitive2.Trigger.displayName;
|
|
792
873
|
|
|
793
874
|
// components/elements/accordion/Accordion.tsx
|
|
794
|
-
var Accordion =
|
|
875
|
+
var Accordion = React9.forwardRef(
|
|
795
876
|
({
|
|
796
877
|
items,
|
|
797
878
|
design = "default",
|
|
@@ -800,7 +881,7 @@ var Accordion = React8.forwardRef(
|
|
|
800
881
|
contentclassNames,
|
|
801
882
|
className,
|
|
802
883
|
...props
|
|
803
|
-
}, ref) => /* @__PURE__ */
|
|
884
|
+
}, ref) => /* @__PURE__ */ React9.createElement(AccordionPrimitive3.Root, { type: props.type, collapsible: true }, /* @__PURE__ */ React9.createElement(
|
|
804
885
|
"div",
|
|
805
886
|
{
|
|
806
887
|
className: cn("hawa-flex hawa-flex-col", {
|
|
@@ -808,7 +889,7 @@ var Accordion = React8.forwardRef(
|
|
|
808
889
|
"hawa-gap-0": design === "default"
|
|
809
890
|
})
|
|
810
891
|
},
|
|
811
|
-
items.map((item, index) => /* @__PURE__ */
|
|
892
|
+
items.map((item, index) => /* @__PURE__ */ React9.createElement(
|
|
812
893
|
AccordionPrimitive3.Item,
|
|
813
894
|
{
|
|
814
895
|
disabled: item.disabled || false,
|
|
@@ -816,7 +897,7 @@ var Accordion = React8.forwardRef(
|
|
|
816
897
|
key: index,
|
|
817
898
|
value: `item-${index}`
|
|
818
899
|
},
|
|
819
|
-
/* @__PURE__ */
|
|
900
|
+
/* @__PURE__ */ React9.createElement(
|
|
820
901
|
AccordionTrigger,
|
|
821
902
|
{
|
|
822
903
|
disabled: item.disabled || false,
|
|
@@ -829,7 +910,7 @@ var Accordion = React8.forwardRef(
|
|
|
829
910
|
triggerclassNames
|
|
830
911
|
)
|
|
831
912
|
},
|
|
832
|
-
/* @__PURE__ */
|
|
913
|
+
/* @__PURE__ */ React9.createElement(
|
|
833
914
|
"span",
|
|
834
915
|
{
|
|
835
916
|
className: cn(
|
|
@@ -839,10 +920,10 @@ var Accordion = React8.forwardRef(
|
|
|
839
920
|
},
|
|
840
921
|
item.trigger,
|
|
841
922
|
" ",
|
|
842
|
-
item.chip && /* @__PURE__ */
|
|
923
|
+
item.chip && /* @__PURE__ */ React9.createElement(Chip, { ...item.chip })
|
|
843
924
|
)
|
|
844
925
|
),
|
|
845
|
-
/* @__PURE__ */
|
|
926
|
+
/* @__PURE__ */ React9.createElement(
|
|
846
927
|
AccordionContent,
|
|
847
928
|
{
|
|
848
929
|
"aria-disabled": item.disabled || false,
|
|
@@ -862,18 +943,18 @@ var Accordion = React8.forwardRef(
|
|
|
862
943
|
Accordion.displayName = "Accordion";
|
|
863
944
|
|
|
864
945
|
// components/elements/accordion/AccordionItem.tsx
|
|
865
|
-
var
|
|
946
|
+
var React10 = __toESM(require("react"));
|
|
866
947
|
var AccordionPrimitive4 = __toESM(require("@radix-ui/react-accordion"));
|
|
867
|
-
var AccordionItem =
|
|
948
|
+
var AccordionItem = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React10.createElement(AccordionPrimitive4.Item, { ref, className: cn(className), ...props }));
|
|
868
949
|
AccordionItem.displayName = "AccordionItem";
|
|
869
950
|
|
|
870
951
|
// components/elements/accordion/AccordionRoot.tsx
|
|
871
952
|
var AccordionPrimitive5 = __toESM(require("@radix-ui/react-accordion"));
|
|
872
953
|
|
|
873
954
|
// components/elements/logos/Logos.tsx
|
|
874
|
-
var
|
|
955
|
+
var import_react5 = __toESM(require("react"));
|
|
875
956
|
var Logos = {
|
|
876
|
-
hawa: (props) => /* @__PURE__ */
|
|
957
|
+
hawa: (props) => /* @__PURE__ */ import_react5.default.createElement(
|
|
877
958
|
"svg",
|
|
878
959
|
{
|
|
879
960
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -881,7 +962,7 @@ var Logos = {
|
|
|
881
962
|
viewBox: "0 0 765 765",
|
|
882
963
|
...props
|
|
883
964
|
},
|
|
884
|
-
/* @__PURE__ */
|
|
965
|
+
/* @__PURE__ */ import_react5.default.createElement(
|
|
885
966
|
"path",
|
|
886
967
|
{
|
|
887
968
|
d: "M382.5 0C171.6 0 0 171.6 0 382.5V765h382.5C593.4 765 765 593.4 765 382.5S593.4 0 382.5 0zM281.6 305.7c98 0 177.7 79.7 177.7 177.7 0 98-79.7 177.7-177.7 177.7s-177.7-79.7-177.7-177.7c0-98 79.7-177.7 177.7-177.7zm246 314.5c23.2-41.6 35.6-88.7 35.6-136.7 0-155.3-126.3-281.6-281.6-281.6-48 0-95.1 12.4-136.8 35.6C194.9 156 285 104 382.5 104c153.6 0 278.6 125 278.6 278.6 0 97.3-52 187.5-133.5 237.6z",
|
|
@@ -889,7 +970,7 @@ var Logos = {
|
|
|
889
970
|
}
|
|
890
971
|
)
|
|
891
972
|
),
|
|
892
|
-
sikka: (props) => /* @__PURE__ */
|
|
973
|
+
sikka: (props) => /* @__PURE__ */ import_react5.default.createElement(
|
|
893
974
|
"svg",
|
|
894
975
|
{
|
|
895
976
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -899,11 +980,11 @@ var Logos = {
|
|
|
899
980
|
fill: "currentColor",
|
|
900
981
|
...props
|
|
901
982
|
},
|
|
902
|
-
/* @__PURE__ */
|
|
903
|
-
/* @__PURE__ */
|
|
904
|
-
/* @__PURE__ */
|
|
983
|
+
/* @__PURE__ */ import_react5.default.createElement("defs", null, /* @__PURE__ */ import_react5.default.createElement("path", { id: "a", d: "M0 0h916.5v765H0z" })),
|
|
984
|
+
/* @__PURE__ */ import_react5.default.createElement("clipPath", { id: "b" }, /* @__PURE__ */ import_react5.default.createElement("use", { xlinkHref: "#a", overflow: "visible" })),
|
|
985
|
+
/* @__PURE__ */ import_react5.default.createElement("g", { clipPath: "url(#b)" }, /* @__PURE__ */ import_react5.default.createElement("defs", null, /* @__PURE__ */ import_react5.default.createElement("path", { id: "c", d: "M0 0h916.5v765H0z" })), /* @__PURE__ */ import_react5.default.createElement("clipPath", { id: "d" }, /* @__PURE__ */ import_react5.default.createElement("use", { xlinkHref: "#c", overflow: "visible" })), /* @__PURE__ */ import_react5.default.createElement("g", { clipPath: "url(#d)" }, /* @__PURE__ */ import_react5.default.createElement("path", { d: "M458.3 0h-31.9c-14.6 0-26.5 11.9-26.5 26.3v313.3L136.6 17.1C126 3.9 120.7 0 106.1 0H9.7C.5 0 0 7.9 0 17.1 0 21 1.3 26.3 4 29l288.7 353.6L4 736.1c-2.7 2.7-4 7.9-4 11.8 0 9.2.4 17.1 9.7 17.1h96.4c14.6 0 19.9-3.9 30.5-17.1l263.3-322.5v313.3c0 14.4 11.9 26.3 26.5 26.3h31.9M458.3 765h31.9c14.6 0 26.5-11.8 26.5-26.3V425.5L780 748c10.7 13.2 15.9 17.1 30.5 17.1h96.4c9.2 0 9.7-7.9 9.7-17.1 0-3.9-1.3-9.2-4-11.8L623.8 382.5 912.5 28.9c2.7-2.7 4-7.9 4-11.9 0-9.2-.5-17.1-9.7-17.1h-96.4c-14.6 0-19.9 3.9-30.5 17.1L516.7 339.5V26.3c0-14.4-11.9-26.3-26.5-26.3h-31.9" })))
|
|
905
986
|
),
|
|
906
|
-
mail: (props) => /* @__PURE__ */
|
|
987
|
+
mail: (props) => /* @__PURE__ */ import_react5.default.createElement(
|
|
907
988
|
"svg",
|
|
908
989
|
{
|
|
909
990
|
stroke: "currentColor",
|
|
@@ -915,10 +996,10 @@ var Logos = {
|
|
|
915
996
|
xmlns: "http://www.w3.org/2000/svg",
|
|
916
997
|
...props
|
|
917
998
|
},
|
|
918
|
-
/* @__PURE__ */
|
|
919
|
-
/* @__PURE__ */
|
|
999
|
+
/* @__PURE__ */ import_react5.default.createElement("path", { d: "M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z" }),
|
|
1000
|
+
/* @__PURE__ */ import_react5.default.createElement("polyline", { points: "22,6 12,13 2,6" })
|
|
920
1001
|
),
|
|
921
|
-
phone: (props) => /* @__PURE__ */
|
|
1002
|
+
phone: (props) => /* @__PURE__ */ import_react5.default.createElement(
|
|
922
1003
|
"svg",
|
|
923
1004
|
{
|
|
924
1005
|
stroke: "currentColor",
|
|
@@ -929,7 +1010,7 @@ var Logos = {
|
|
|
929
1010
|
xmlns: "http://www.w3.org/2000/svg",
|
|
930
1011
|
...props
|
|
931
1012
|
},
|
|
932
|
-
/* @__PURE__ */
|
|
1013
|
+
/* @__PURE__ */ import_react5.default.createElement(
|
|
933
1014
|
"path",
|
|
934
1015
|
{
|
|
935
1016
|
strokeLinecap: "round",
|
|
@@ -938,14 +1019,14 @@ var Logos = {
|
|
|
938
1019
|
}
|
|
939
1020
|
)
|
|
940
1021
|
),
|
|
941
|
-
twitter: (props) => /* @__PURE__ */
|
|
1022
|
+
twitter: (props) => /* @__PURE__ */ import_react5.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ import_react5.default.createElement(
|
|
942
1023
|
"path",
|
|
943
1024
|
{
|
|
944
1025
|
fill: "currentColor",
|
|
945
1026
|
d: "M21.543 7.104c.015.211.015.423.015.636 0 6.507-4.954 14.01-14.01 14.01v-.003A13.94 13.94 0 0 1 0 19.539a9.88 9.88 0 0 0 7.287-2.041 4.93 4.93 0 0 1-4.6-3.42 4.916 4.916 0 0 0 2.223-.084A4.926 4.926 0 0 1 .96 9.167v-.062a4.887 4.887 0 0 0 2.235.616A4.928 4.928 0 0 1 1.67 3.148a13.98 13.98 0 0 0 10.15 5.144 4.929 4.929 0 0 1 8.39-4.49 9.868 9.868 0 0 0 3.128-1.196 4.941 4.941 0 0 1-2.165 2.724A9.828 9.828 0 0 0 24 4.555a10.019 10.019 0 0 1-2.457 2.549z"
|
|
946
1027
|
}
|
|
947
1028
|
)),
|
|
948
|
-
instagram: (props) => /* @__PURE__ */
|
|
1029
|
+
instagram: (props) => /* @__PURE__ */ import_react5.default.createElement(
|
|
949
1030
|
"svg",
|
|
950
1031
|
{
|
|
951
1032
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -953,23 +1034,23 @@ var Logos = {
|
|
|
953
1034
|
viewBox: "0 0 16 16",
|
|
954
1035
|
...props
|
|
955
1036
|
},
|
|
956
|
-
/* @__PURE__ */
|
|
1037
|
+
/* @__PURE__ */ import_react5.default.createElement("path", { d: "M8 0C5.829 0 5.556.01 4.703.048 3.85.088 3.269.222 2.76.42a3.917 3.917 0 0 0-1.417.923A3.927 3.927 0 0 0 .42 2.76C.222 3.268.087 3.85.048 4.7.01 5.555 0 5.827 0 8.001c0 2.172.01 2.444.048 3.297.04.852.174 1.433.372 1.942.205.526.478.972.923 1.417.444.445.89.719 1.416.923.51.198 1.09.333 1.942.372C5.555 15.99 5.827 16 8 16s2.444-.01 3.298-.048c.851-.04 1.434-.174 1.943-.372a3.916 3.916 0 0 0 1.416-.923c.445-.445.718-.891.923-1.417.197-.509.332-1.09.372-1.942C15.99 10.445 16 10.173 16 8s-.01-2.445-.048-3.299c-.04-.851-.175-1.433-.372-1.941a3.926 3.926 0 0 0-.923-1.417A3.911 3.911 0 0 0 13.24.42c-.51-.198-1.092-.333-1.943-.372C10.443.01 10.172 0 7.998 0h.003zm-.717 1.442h.718c2.136 0 2.389.007 3.232.046.78.035 1.204.166 1.486.275.373.145.64.319.92.599.28.28.453.546.598.92.11.281.24.705.275 1.485.039.843.047 1.096.047 3.231s-.008 2.389-.047 3.232c-.035.78-.166 1.203-.275 1.485a2.47 2.47 0 0 1-.599.919c-.28.28-.546.453-.92.598-.28.11-.704.24-1.485.276-.843.038-1.096.047-3.232.047s-2.39-.009-3.233-.047c-.78-.036-1.203-.166-1.485-.276a2.478 2.478 0 0 1-.92-.598 2.48 2.48 0 0 1-.6-.92c-.109-.281-.24-.705-.275-1.485-.038-.843-.046-1.096-.046-3.233 0-2.136.008-2.388.046-3.231.036-.78.166-1.204.276-1.486.145-.373.319-.64.599-.92.28-.28.546-.453.92-.598.282-.11.705-.24 1.485-.276.738-.034 1.024-.044 2.515-.045v.002zm4.988 1.328a.96.96 0 1 0 0 1.92.96.96 0 0 0 0-1.92zm-4.27 1.122a4.109 4.109 0 1 0 0 8.217 4.109 4.109 0 0 0 0-8.217zm0 1.441a2.667 2.667 0 1 1 0 5.334 2.667 2.667 0 0 1 0-5.334z" })
|
|
957
1038
|
),
|
|
958
|
-
microsoft: (props) => /* @__PURE__ */
|
|
1039
|
+
microsoft: (props) => /* @__PURE__ */ import_react5.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", ...props }, /* @__PURE__ */ import_react5.default.createElement(
|
|
959
1040
|
"path",
|
|
960
1041
|
{
|
|
961
1042
|
fill: "currentColor",
|
|
962
1043
|
d: "M7.462 0H0v7.19h7.462V0zM16 0H8.538v7.19H16V0zM7.462 8.211H0V16h7.462V8.211zm8.538 0H8.538V16H16V8.211z"
|
|
963
1044
|
}
|
|
964
1045
|
)),
|
|
965
|
-
github: (props) => /* @__PURE__ */
|
|
1046
|
+
github: (props) => /* @__PURE__ */ import_react5.default.createElement(
|
|
966
1047
|
"svg",
|
|
967
1048
|
{
|
|
968
1049
|
xmlns: "http://www.w3.org/2000/svg",
|
|
969
1050
|
viewBox: "0 0 438.549 438.549",
|
|
970
1051
|
...props
|
|
971
1052
|
},
|
|
972
|
-
/* @__PURE__ */
|
|
1053
|
+
/* @__PURE__ */ import_react5.default.createElement(
|
|
973
1054
|
"path",
|
|
974
1055
|
{
|
|
975
1056
|
fill: "currentColor",
|
|
@@ -977,77 +1058,77 @@ var Logos = {
|
|
|
977
1058
|
}
|
|
978
1059
|
)
|
|
979
1060
|
),
|
|
980
|
-
radix: (props) => /* @__PURE__ */
|
|
1061
|
+
radix: (props) => /* @__PURE__ */ import_react5.default.createElement("svg", { viewBox: "0 0 25 25", fill: "none", ...props }, /* @__PURE__ */ import_react5.default.createElement(
|
|
981
1062
|
"path",
|
|
982
1063
|
{
|
|
983
1064
|
d: "M12 25C7.58173 25 4 21.4183 4 17C4 12.5817 7.58173 9 12 9V25Z",
|
|
984
1065
|
fill: "currentcolor"
|
|
985
1066
|
}
|
|
986
|
-
), /* @__PURE__ */
|
|
1067
|
+
), /* @__PURE__ */ import_react5.default.createElement("path", { d: "M12 0H4V8H12V0Z", fill: "currentcolor" }), /* @__PURE__ */ import_react5.default.createElement(
|
|
987
1068
|
"path",
|
|
988
1069
|
{
|
|
989
1070
|
d: "M17 8C19.2091 8 21 6.20914 21 4C21 1.79086 19.2091 0 17 0C14.7909 0 13 1.79086 13 4C13 6.20914 14.7909 8 17 8Z",
|
|
990
1071
|
fill: "currentcolor"
|
|
991
1072
|
}
|
|
992
1073
|
)),
|
|
993
|
-
aria: (props) => /* @__PURE__ */
|
|
994
|
-
npm: (props) => /* @__PURE__ */
|
|
1074
|
+
aria: (props) => /* @__PURE__ */ import_react5.default.createElement("svg", { role: "img", viewBox: "0 0 24 24", fill: "currentColor", ...props }, /* @__PURE__ */ import_react5.default.createElement("path", { d: "M13.966 22.624l-1.69-4.281H8.122l3.892-9.144 5.662 13.425zM8.884 1.376H0v21.248zm15.116 0h-8.884L24 22.624Z" })),
|
|
1075
|
+
npm: (props) => /* @__PURE__ */ import_react5.default.createElement("svg", { viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ import_react5.default.createElement(
|
|
995
1076
|
"path",
|
|
996
1077
|
{
|
|
997
1078
|
d: "M1.763 0C.786 0 0 .786 0 1.763v20.474C0 23.214.786 24 1.763 24h20.474c.977 0 1.763-.786 1.763-1.763V1.763C24 .786 23.214 0 22.237 0zM5.13 5.323l13.837.019-.009 13.836h-3.464l.01-10.382h-3.456L12.04 19.17H5.113z",
|
|
998
1079
|
fill: "currentColor"
|
|
999
1080
|
}
|
|
1000
1081
|
)),
|
|
1001
|
-
yarn: (props) => /* @__PURE__ */
|
|
1082
|
+
yarn: (props) => /* @__PURE__ */ import_react5.default.createElement("svg", { viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ import_react5.default.createElement(
|
|
1002
1083
|
"path",
|
|
1003
1084
|
{
|
|
1004
1085
|
d: "M12 0C5.375 0 0 5.375 0 12s5.375 12 12 12 12-5.375 12-12S18.625 0 12 0zm.768 4.105c.183 0 .363.053.525.157.125.083.287.185.755 1.154.31-.088.468-.042.551-.019.204.056.366.19.463.375.477.917.542 2.553.334 3.605-.241 1.232-.755 2.029-1.131 2.576.324.329.778.899 1.117 1.825.278.774.31 1.478.273 2.015a5.51 5.51 0 0 0 .602-.329c.593-.366 1.487-.917 2.553-.931.714-.009 1.269.445 1.353 1.103a1.23 1.23 0 0 1-.945 1.362c-.649.158-.95.278-1.821.843-1.232.797-2.539 1.242-3.012 1.39a1.686 1.686 0 0 1-.704.343c-.737.181-3.266.315-3.466.315h-.046c-.783 0-1.214-.241-1.45-.491-.658.329-1.51.19-2.122-.134a1.078 1.078 0 0 1-.58-1.153 1.243 1.243 0 0 1-.153-.195c-.162-.25-.528-.936-.454-1.946.056-.723.556-1.367.88-1.71a5.522 5.522 0 0 1 .408-2.256c.306-.727.885-1.348 1.32-1.737-.32-.537-.644-1.367-.329-2.21.227-.602.412-.936.82-1.08h-.005c.199-.074.389-.153.486-.259a3.418 3.418 0 0 1 2.298-1.103c.037-.093.079-.185.125-.283.31-.658.639-1.029 1.024-1.168a.94.94 0 0 1 .328-.06zm.006.7c-.507.016-1.001 1.519-1.001 1.519s-1.27-.204-2.266.871c-.199.218-.468.334-.746.44-.079.028-.176.023-.417.672-.371.991.625 2.094.625 2.094s-1.186.839-1.626 1.881c-.486 1.144-.338 2.261-.338 2.261s-.843.732-.899 1.487c-.051.663.139 1.2.343 1.515.227.343.51.176.51.176s-.561.653-.037.931c.477.25 1.283.394 1.71-.037.31-.31.371-1.001.486-1.283.028-.065.12.111.209.199.097.093.264.195.264.195s-.755.324-.445 1.066c.102.246.468.403 1.066.398.222-.005 2.664-.139 3.313-.296.375-.088.505-.283.505-.283s1.566-.431 2.998-1.357c.917-.598 1.293-.76 2.034-.936.612-.148.57-1.098-.241-1.084-.839.009-1.575.44-2.196.825-1.163.718-1.742.672-1.742.672l-.018-.032c-.079-.13.371-1.293-.134-2.678-.547-1.515-1.413-1.881-1.344-1.997.297-.5 1.038-1.297 1.334-2.78.176-.899.13-2.377-.269-3.151-.074-.144-.732.241-.732.241s-.616-1.371-.788-1.483a.271.271 0 0 0-.157-.046z",
|
|
1005
1086
|
fill: "currentColor"
|
|
1006
1087
|
}
|
|
1007
1088
|
)),
|
|
1008
|
-
pnpm: (props) => /* @__PURE__ */
|
|
1089
|
+
pnpm: (props) => /* @__PURE__ */ import_react5.default.createElement("svg", { viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ import_react5.default.createElement(
|
|
1009
1090
|
"path",
|
|
1010
1091
|
{
|
|
1011
1092
|
d: "M0 0v7.5h7.5V0zm8.25 0v7.5h7.498V0zm8.25 0v7.5H24V0zM8.25 8.25v7.5h7.498v-7.5zm8.25 0v7.5H24v-7.5zM0 16.5V24h7.5v-7.5zm8.25 0V24h7.498v-7.5zm8.25 0V24H24v-7.5z",
|
|
1012
1093
|
fill: "currentColor"
|
|
1013
1094
|
}
|
|
1014
1095
|
)),
|
|
1015
|
-
react: (props) => /* @__PURE__ */
|
|
1096
|
+
react: (props) => /* @__PURE__ */ import_react5.default.createElement("svg", { viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ import_react5.default.createElement(
|
|
1016
1097
|
"path",
|
|
1017
1098
|
{
|
|
1018
1099
|
d: "M14.23 12.004a2.236 2.236 0 0 1-2.235 2.236 2.236 2.236 0 0 1-2.236-2.236 2.236 2.236 0 0 1 2.235-2.236 2.236 2.236 0 0 1 2.236 2.236zm2.648-10.69c-1.346 0-3.107.96-4.888 2.622-1.78-1.653-3.542-2.602-4.887-2.602-.41 0-.783.093-1.106.278-1.375.793-1.683 3.264-.973 6.365C1.98 8.917 0 10.42 0 12.004c0 1.59 1.99 3.097 5.043 4.03-.704 3.113-.39 5.588.988 6.38.32.187.69.275 1.102.275 1.345 0 3.107-.96 4.888-2.624 1.78 1.654 3.542 2.603 4.887 2.603.41 0 .783-.09 1.106-.275 1.374-.792 1.683-3.263.973-6.365C22.02 15.096 24 13.59 24 12.004c0-1.59-1.99-3.097-5.043-4.032.704-3.11.39-5.587-.988-6.38-.318-.184-.688-.277-1.092-.278zm-.005 1.09v.006c.225 0 .406.044.558.127.666.382.955 1.835.73 3.704-.054.46-.142.945-.25 1.44-.96-.236-2.006-.417-3.107-.534-.66-.905-1.345-1.727-2.035-2.447 1.592-1.48 3.087-2.292 4.105-2.295zm-9.77.02c1.012 0 2.514.808 4.11 2.28-.686.72-1.37 1.537-2.02 2.442-1.107.117-2.154.298-3.113.538-.112-.49-.195-.964-.254-1.42-.23-1.868.054-3.32.714-3.707.19-.09.4-.127.563-.132zm4.882 3.05c.455.468.91.992 1.36 1.564-.44-.02-.89-.034-1.345-.034-.46 0-.915.01-1.36.034.44-.572.895-1.096 1.345-1.565zM12 8.1c.74 0 1.477.034 2.202.093.406.582.802 1.203 1.183 1.86.372.64.71 1.29 1.018 1.946-.308.655-.646 1.31-1.013 1.95-.38.66-.773 1.288-1.18 1.87-.728.063-1.466.098-2.21.098-.74 0-1.477-.035-2.202-.093-.406-.582-.802-1.204-1.183-1.86-.372-.64-.71-1.29-1.018-1.946.303-.657.646-1.313 1.013-1.954.38-.66.773-1.286 1.18-1.868.728-.064 1.466-.098 2.21-.098zm-3.635.254c-.24.377-.48.763-.704 1.16-.225.39-.435.782-.635 1.174-.265-.656-.49-1.31-.676-1.947.64-.15 1.315-.283 2.015-.386zm7.26 0c.695.103 1.365.23 2.006.387-.18.632-.405 1.282-.66 1.933-.2-.39-.41-.783-.64-1.174-.225-.392-.465-.774-.705-1.146zm3.063.675c.484.15.944.317 1.375.498 1.732.74 2.852 1.708 2.852 2.476-.005.768-1.125 1.74-2.857 2.475-.42.18-.88.342-1.355.493-.28-.958-.646-1.956-1.1-2.98.45-1.017.81-2.01 1.085-2.964zm-13.395.004c.278.96.645 1.957 1.1 2.98-.45 1.017-.812 2.01-1.086 2.964-.484-.15-.944-.318-1.37-.5-1.732-.737-2.852-1.706-2.852-2.474 0-.768 1.12-1.742 2.852-2.476.42-.18.88-.342 1.356-.494zm11.678 4.28c.265.657.49 1.312.676 1.948-.64.157-1.316.29-2.016.39.24-.375.48-.762.705-1.158.225-.39.435-.788.636-1.18zm-9.945.02c.2.392.41.783.64 1.175.23.39.465.772.705 1.143-.695-.102-1.365-.23-2.006-.386.18-.63.406-1.282.66-1.933zM17.92 16.32c.112.493.2.968.254 1.423.23 1.868-.054 3.32-.714 3.708-.147.09-.338.128-.563.128-1.012 0-2.514-.807-4.11-2.28.686-.72 1.37-1.536 2.02-2.44 1.107-.118 2.154-.3 3.113-.54zm-11.83.01c.96.234 2.006.415 3.107.532.66.905 1.345 1.727 2.035 2.446-1.595 1.483-3.092 2.295-4.11 2.295-.22-.005-.406-.05-.553-.132-.666-.38-.955-1.834-.73-3.703.054-.46.142-.944.25-1.438zm4.56.64c.44.02.89.034 1.345.034.46 0 .915-.01 1.36-.034-.44.572-.895 1.095-1.345 1.565-.455-.47-.91-.993-1.36-1.565z",
|
|
1019
1100
|
fill: "currentColor"
|
|
1020
1101
|
}
|
|
1021
1102
|
)),
|
|
1022
|
-
tailwind: (props) => /* @__PURE__ */
|
|
1103
|
+
tailwind: (props) => /* @__PURE__ */ import_react5.default.createElement("svg", { viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ import_react5.default.createElement(
|
|
1023
1104
|
"path",
|
|
1024
1105
|
{
|
|
1025
1106
|
d: "M12.001,4.8c-3.2,0-5.2,1.6-6,4.8c1.2-1.6,2.6-2.2,4.2-1.8c0.913,0.228,1.565,0.89,2.288,1.624 C13.666,10.618,15.027,12,18.001,12c3.2,0,5.2-1.6,6-4.8c-1.2,1.6-2.6,2.2-4.2,1.8c-0.913-0.228-1.565-0.89-2.288-1.624 C16.337,6.182,14.976,4.8,12.001,4.8z M6.001,12c-3.2,0-5.2,1.6-6,4.8c1.2-1.6,2.6-2.2,4.2-1.8c0.913,0.228,1.565,0.89,2.288,1.624 c1.177,1.194,2.538,2.576,5.512,2.576c3.2,0,5.2-1.6,6-4.8c-1.2,1.6-2.6,2.2-4.2,1.8c-0.913-0.228-1.565-0.89-2.288-1.624 C10.337,13.382,8.976,12,6.001,12z",
|
|
1026
1107
|
fill: "currentColor"
|
|
1027
1108
|
}
|
|
1028
1109
|
)),
|
|
1029
|
-
google: (props) => /* @__PURE__ */
|
|
1110
|
+
google: (props) => /* @__PURE__ */ import_react5.default.createElement("svg", { role: "img", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ import_react5.default.createElement(
|
|
1030
1111
|
"path",
|
|
1031
1112
|
{
|
|
1032
1113
|
fill: "currentColor",
|
|
1033
1114
|
d: "M12.48 10.92v3.28h7.84c-.24 1.84-.853 3.187-1.787 4.133-1.147 1.147-2.933 2.4-6.053 2.4-4.827 0-8.6-3.893-8.6-8.72s3.773-8.72 8.6-8.72c2.6 0 4.507 1.027 5.907 2.347l2.307-2.307C18.747 1.44 16.133 0 12.48 0 5.867 0 .307 5.387.307 12s5.56 12 12.173 12c3.573 0 6.267-1.173 8.373-3.36 2.16-2.16 2.84-5.213 2.84-7.667 0-.76-.053-1.467-.173-2.053H12.48z"
|
|
1034
1115
|
}
|
|
1035
1116
|
)),
|
|
1036
|
-
apple: (props) => /* @__PURE__ */
|
|
1117
|
+
apple: (props) => /* @__PURE__ */ import_react5.default.createElement("svg", { role: "img", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ import_react5.default.createElement(
|
|
1037
1118
|
"path",
|
|
1038
1119
|
{
|
|
1039
1120
|
d: "M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04-2.04.027-3.91 1.183-4.961 3.014-2.117 3.675-.546 9.103 1.519 12.09 1.013 1.454 2.208 3.09 3.792 3.039 1.52-.065 2.09-.987 3.935-.987 1.831 0 2.35.987 3.96.948 1.637-.026 2.676-1.48 3.676-2.948 1.156-1.688 1.636-3.325 1.662-3.415-.039-.013-3.182-1.221-3.22-4.857-.026-3.04 2.48-4.494 2.597-4.559-1.429-2.09-3.623-2.324-4.39-2.376-2-.156-3.675 1.09-4.61 1.09zM15.53 3.83c.843-1.012 1.4-2.427 1.245-3.83-1.207.052-2.662.805-3.532 1.818-.78.896-1.454 2.338-1.273 3.714 1.338.104 2.715-.688 3.559-1.701",
|
|
1040
1121
|
fill: "currentColor"
|
|
1041
1122
|
}
|
|
1042
1123
|
)),
|
|
1043
|
-
paypal: (props) => /* @__PURE__ */
|
|
1124
|
+
paypal: (props) => /* @__PURE__ */ import_react5.default.createElement("svg", { role: "img", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ import_react5.default.createElement(
|
|
1044
1125
|
"path",
|
|
1045
1126
|
{
|
|
1046
1127
|
d: "M7.076 21.337H2.47a.641.641 0 0 1-.633-.74L4.944.901C5.026.382 5.474 0 5.998 0h7.46c2.57 0 4.578.543 5.69 1.81 1.01 1.15 1.304 2.42 1.012 4.287-.023.143-.047.288-.077.437-.983 5.05-4.349 6.797-8.647 6.797h-2.19c-.524 0-.968.382-1.05.9l-1.12 7.106zm14.146-14.42a3.35 3.35 0 0 0-.607-.541c-.013.076-.026.175-.041.254-.93 4.778-4.005 7.201-9.138 7.201h-2.19a.563.563 0 0 0-.556.479l-1.187 7.527h-.506l-.24 1.516a.56.56 0 0 0 .554.647h3.882c.46 0 .85-.334.922-.788.06-.26.76-4.852.816-5.09a.932.932 0 0 1 .923-.788h.58c3.76 0 6.705-1.528 7.565-5.946.36-1.847.174-3.388-.777-4.471z",
|
|
1047
1128
|
fill: "currentColor"
|
|
1048
1129
|
}
|
|
1049
1130
|
)),
|
|
1050
|
-
spinner: (props) => /* @__PURE__ */
|
|
1131
|
+
spinner: (props) => /* @__PURE__ */ import_react5.default.createElement(
|
|
1051
1132
|
"svg",
|
|
1052
1133
|
{
|
|
1053
1134
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1061,9 +1142,9 @@ var Logos = {
|
|
|
1061
1142
|
strokeLinejoin: "round",
|
|
1062
1143
|
...props
|
|
1063
1144
|
},
|
|
1064
|
-
/* @__PURE__ */
|
|
1145
|
+
/* @__PURE__ */ import_react5.default.createElement("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" })
|
|
1065
1146
|
),
|
|
1066
|
-
whatsapp: (props) => /* @__PURE__ */
|
|
1147
|
+
whatsapp: (props) => /* @__PURE__ */ import_react5.default.createElement(
|
|
1067
1148
|
"svg",
|
|
1068
1149
|
{
|
|
1069
1150
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1071,18 +1152,18 @@ var Logos = {
|
|
|
1071
1152
|
fill: "currentColor",
|
|
1072
1153
|
...props
|
|
1073
1154
|
},
|
|
1074
|
-
/* @__PURE__ */
|
|
1155
|
+
/* @__PURE__ */ import_react5.default.createElement("path", { d: "M.057 24l1.687-6.163c-1.041-1.804-1.588-3.849-1.587-5.946.003-6.556 5.338-11.891 11.893-11.891 3.181.001 6.167 1.24 8.413 3.488 2.245 2.248 3.481 5.236 3.48 8.414-.003 6.557-5.338 11.892-11.893 11.892-1.99-.001-3.951-.5-5.688-1.448l-6.305 1.654zm6.597-3.807c1.676.995 3.276 1.591 5.392 1.592 5.448 0 9.886-4.434 9.889-9.885.002-5.462-4.415-9.89-9.881-9.892-5.452 0-9.887 4.434-9.889 9.884-.001 2.225.651 3.891 1.746 5.634l-.999 3.648 3.742-.981zm11.387-5.464c-.074-.124-.272-.198-.57-.347-.297-.149-1.758-.868-2.031-.967-.272-.099-.47-.149-.669.149-.198.297-.768.967-.941 1.165-.173.198-.347.223-.644.074-.297-.149-1.255-.462-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.297-.347.446-.521.151-.172.2-.296.3-.495.099-.198.05-.372-.025-.521-.075-.148-.669-1.611-.916-2.206-.242-.579-.487-.501-.669-.51l-.57-.01c-.198 0-.52.074-.792.372s-1.04 1.016-1.04 2.479 1.065 2.876 1.213 3.074c.149.198 2.095 3.2 5.076 4.487.709.306 1.263.489 1.694.626.712.226 1.36.194 1.872.118.571-.085 1.758-.719 2.006-1.413.248-.695.248-1.29.173-1.414z" })
|
|
1075
1156
|
)
|
|
1076
1157
|
};
|
|
1077
1158
|
|
|
1078
1159
|
// components/elements/navigationMenu/NavigationMenu.tsx
|
|
1079
|
-
var
|
|
1160
|
+
var React12 = __toESM(require("react"));
|
|
1080
1161
|
var NavigationMenuPrimitive = __toESM(require("@radix-ui/react-navigation-menu"));
|
|
1081
1162
|
var import_class_variance_authority = require("class-variance-authority");
|
|
1082
1163
|
var navigationMenuTriggerStyle = (0, import_class_variance_authority.cva)(
|
|
1083
1164
|
"hawa-group hawa-inline-flex hawa-h-10 hawa-w-max hawa-items-center hawa-gap-1 hawa-justify-center hawa-rounded-md hawa-bg-background hawa-px-4 hawa-py-2 hawa-text-sm hawa-font-medium hawa-transition-colors hover:hawa-bg-accent hover:hawa-text-accent-foreground focus:hawa-bg-accent focus:hawa-text-accent-foreground focus:hawa-outline-none disabled:hawa-pointer-events-none disabled:hawa-opacity-50 data-[active]:hawa-bg-accent/50 "
|
|
1084
1165
|
);
|
|
1085
|
-
var NavigationMenuRoot =
|
|
1166
|
+
var NavigationMenuRoot = React12.forwardRef(({ className, children, viewportClassNames, ...props }, ref) => /* @__PURE__ */ React12.createElement(
|
|
1086
1167
|
NavigationMenuPrimitive.Root,
|
|
1087
1168
|
{
|
|
1088
1169
|
ref,
|
|
@@ -1094,9 +1175,9 @@ var NavigationMenuRoot = React11.forwardRef(({ className, children, viewportClas
|
|
|
1094
1175
|
...props
|
|
1095
1176
|
},
|
|
1096
1177
|
children,
|
|
1097
|
-
/* @__PURE__ */
|
|
1178
|
+
/* @__PURE__ */ React12.createElement(NavigationMenuViewport, { className: viewportClassNames })
|
|
1098
1179
|
));
|
|
1099
|
-
var NavigationMenuList =
|
|
1180
|
+
var NavigationMenuList = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React12.createElement(
|
|
1100
1181
|
NavigationMenuPrimitive.List,
|
|
1101
1182
|
{
|
|
1102
1183
|
ref,
|
|
@@ -1107,7 +1188,7 @@ var NavigationMenuList = React11.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1107
1188
|
...props
|
|
1108
1189
|
}
|
|
1109
1190
|
));
|
|
1110
|
-
var NavigationMenuTrigger =
|
|
1191
|
+
var NavigationMenuTrigger = React12.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React12.createElement(
|
|
1111
1192
|
NavigationMenuPrimitive.Trigger,
|
|
1112
1193
|
{
|
|
1113
1194
|
ref,
|
|
@@ -1115,7 +1196,7 @@ var NavigationMenuTrigger = React11.forwardRef(({ className, children, ...props
|
|
|
1115
1196
|
...props
|
|
1116
1197
|
},
|
|
1117
1198
|
children,
|
|
1118
|
-
/* @__PURE__ */
|
|
1199
|
+
/* @__PURE__ */ React12.createElement(
|
|
1119
1200
|
"svg",
|
|
1120
1201
|
{
|
|
1121
1202
|
"aria-label": "Chevron Icon",
|
|
@@ -1131,10 +1212,10 @@ var NavigationMenuTrigger = React11.forwardRef(({ className, children, ...props
|
|
|
1131
1212
|
"aria-hidden": "true",
|
|
1132
1213
|
className: "hawa-icon hawa-relative hawa-top-[1px] hawa-transition hawa-duration-200 group-data-[state=open]:hawa-rotate-180"
|
|
1133
1214
|
},
|
|
1134
|
-
/* @__PURE__ */
|
|
1215
|
+
/* @__PURE__ */ React12.createElement("path", { d: "m6 9 6 6 6-6" })
|
|
1135
1216
|
)
|
|
1136
1217
|
));
|
|
1137
|
-
var NavigationMenuContent =
|
|
1218
|
+
var NavigationMenuContent = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React12.createElement(
|
|
1138
1219
|
NavigationMenuPrimitive.Content,
|
|
1139
1220
|
{
|
|
1140
1221
|
ref,
|
|
@@ -1148,14 +1229,14 @@ var NavigationMenuContent = React11.forwardRef(({ className, ...props }, ref) =>
|
|
|
1148
1229
|
...props
|
|
1149
1230
|
}
|
|
1150
1231
|
));
|
|
1151
|
-
var NavigationMenuViewport =
|
|
1232
|
+
var NavigationMenuViewport = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React12.createElement(
|
|
1152
1233
|
"div",
|
|
1153
1234
|
{
|
|
1154
1235
|
className: cn(
|
|
1155
1236
|
"hawa-absolute hawa-top-full hawa-flex hawa-w-full hawa-justify-center"
|
|
1156
1237
|
)
|
|
1157
1238
|
},
|
|
1158
|
-
/* @__PURE__ */
|
|
1239
|
+
/* @__PURE__ */ React12.createElement(
|
|
1159
1240
|
NavigationMenuPrimitive.Viewport,
|
|
1160
1241
|
{
|
|
1161
1242
|
className: cn(
|
|
@@ -1172,7 +1253,7 @@ var NavigationMenuViewport = React11.forwardRef(({ className, ...props }, ref) =
|
|
|
1172
1253
|
}
|
|
1173
1254
|
)
|
|
1174
1255
|
));
|
|
1175
|
-
var NavigationMenuIndicator =
|
|
1256
|
+
var NavigationMenuIndicator = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React12.createElement(
|
|
1176
1257
|
NavigationMenuPrimitive.Indicator,
|
|
1177
1258
|
{
|
|
1178
1259
|
ref,
|
|
@@ -1182,7 +1263,7 @@ var NavigationMenuIndicator = React11.forwardRef(({ className, ...props }, ref)
|
|
|
1182
1263
|
),
|
|
1183
1264
|
...props
|
|
1184
1265
|
},
|
|
1185
|
-
/* @__PURE__ */
|
|
1266
|
+
/* @__PURE__ */ React12.createElement("div", { className: "hawa-relative hawa-top-[60%] hawa-h-2 hawa-w-2 hawa-rotate-45 hawa-rounded-tl-sm hawa-bg-border hawa-shadow-md" })
|
|
1186
1267
|
));
|
|
1187
1268
|
NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
|
|
1188
1269
|
NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;
|
|
@@ -1192,13 +1273,13 @@ NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayN
|
|
|
1192
1273
|
NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
|
|
1193
1274
|
|
|
1194
1275
|
// components/elements/sheet/Sheet.tsx
|
|
1195
|
-
var
|
|
1276
|
+
var React13 = __toESM(require("react"));
|
|
1196
1277
|
var SheetPrimitive = __toESM(require("@radix-ui/react-dialog"));
|
|
1197
1278
|
var import_class_variance_authority2 = require("class-variance-authority");
|
|
1198
1279
|
var Sheet = SheetPrimitive.Root;
|
|
1199
1280
|
var SheetTrigger = SheetPrimitive.Trigger;
|
|
1200
1281
|
var SheetPortal = SheetPrimitive.Portal;
|
|
1201
|
-
var SheetOverlay =
|
|
1282
|
+
var SheetOverlay = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React13.createElement(
|
|
1202
1283
|
SheetPrimitive.Overlay,
|
|
1203
1284
|
{
|
|
1204
1285
|
className: cn(
|
|
@@ -1225,8 +1306,8 @@ var sheetVariants = (0, import_class_variance_authority2.cva)(
|
|
|
1225
1306
|
}
|
|
1226
1307
|
}
|
|
1227
1308
|
);
|
|
1228
|
-
var SheetContent =
|
|
1229
|
-
({ side = "right", className, children, persist, hideCloseButton, ...props }, ref) => /* @__PURE__ */
|
|
1309
|
+
var SheetContent = React13.forwardRef(
|
|
1310
|
+
({ side = "right", className, children, persist, hideCloseButton, ...props }, ref) => /* @__PURE__ */ React13.createElement(SheetPortal, null, /* @__PURE__ */ React13.createElement(SheetOverlay, null), /* @__PURE__ */ React13.createElement(
|
|
1230
1311
|
SheetPrimitive.Content,
|
|
1231
1312
|
{
|
|
1232
1313
|
ref,
|
|
@@ -1239,7 +1320,7 @@ var SheetContent = React12.forwardRef(
|
|
|
1239
1320
|
...props
|
|
1240
1321
|
},
|
|
1241
1322
|
children,
|
|
1242
|
-
!hideCloseButton && /* @__PURE__ */
|
|
1323
|
+
!hideCloseButton && /* @__PURE__ */ React13.createElement(
|
|
1243
1324
|
SheetPrimitive.Close,
|
|
1244
1325
|
{
|
|
1245
1326
|
className: cn(
|
|
@@ -1251,7 +1332,7 @@ var SheetContent = React12.forwardRef(
|
|
|
1251
1332
|
}
|
|
1252
1333
|
)
|
|
1253
1334
|
},
|
|
1254
|
-
/* @__PURE__ */
|
|
1335
|
+
/* @__PURE__ */ React13.createElement(
|
|
1255
1336
|
"svg",
|
|
1256
1337
|
{
|
|
1257
1338
|
"aria-label": "Close Icon",
|
|
@@ -1260,7 +1341,7 @@ var SheetContent = React12.forwardRef(
|
|
|
1260
1341
|
fill: "currentColor",
|
|
1261
1342
|
viewBox: "0 0 20 20"
|
|
1262
1343
|
},
|
|
1263
|
-
/* @__PURE__ */
|
|
1344
|
+
/* @__PURE__ */ React13.createElement(
|
|
1264
1345
|
"path",
|
|
1265
1346
|
{
|
|
1266
1347
|
fillRule: "evenodd",
|
|
@@ -1269,14 +1350,14 @@ var SheetContent = React12.forwardRef(
|
|
|
1269
1350
|
}
|
|
1270
1351
|
)
|
|
1271
1352
|
),
|
|
1272
|
-
/* @__PURE__ */
|
|
1353
|
+
/* @__PURE__ */ React13.createElement("span", { className: "hawa-sr-only" }, "Close")
|
|
1273
1354
|
)
|
|
1274
1355
|
))
|
|
1275
1356
|
);
|
|
1276
1357
|
var SheetHeader = ({
|
|
1277
1358
|
className,
|
|
1278
1359
|
...props
|
|
1279
|
-
}) => /* @__PURE__ */
|
|
1360
|
+
}) => /* @__PURE__ */ React13.createElement(
|
|
1280
1361
|
"div",
|
|
1281
1362
|
{
|
|
1282
1363
|
className: cn(
|
|
@@ -1289,7 +1370,7 @@ var SheetHeader = ({
|
|
|
1289
1370
|
var SheetFooter = ({
|
|
1290
1371
|
className,
|
|
1291
1372
|
...props
|
|
1292
|
-
}) => /* @__PURE__ */
|
|
1373
|
+
}) => /* @__PURE__ */ React13.createElement(
|
|
1293
1374
|
"div",
|
|
1294
1375
|
{
|
|
1295
1376
|
className: cn(
|
|
@@ -1299,7 +1380,7 @@ var SheetFooter = ({
|
|
|
1299
1380
|
...props
|
|
1300
1381
|
}
|
|
1301
1382
|
);
|
|
1302
|
-
var SheetTitle =
|
|
1383
|
+
var SheetTitle = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React13.createElement(
|
|
1303
1384
|
SheetPrimitive.Title,
|
|
1304
1385
|
{
|
|
1305
1386
|
ref,
|
|
@@ -1310,7 +1391,7 @@ var SheetTitle = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
1310
1391
|
...props
|
|
1311
1392
|
}
|
|
1312
1393
|
));
|
|
1313
|
-
var SheetDescription =
|
|
1394
|
+
var SheetDescription = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React13.createElement(
|
|
1314
1395
|
SheetPrimitive.Description,
|
|
1315
1396
|
{
|
|
1316
1397
|
ref,
|
|
@@ -1326,10 +1407,10 @@ SheetFooter.displayName = "SheetFooter";
|
|
|
1326
1407
|
SheetTitle.displayName = SheetPrimitive.Title.displayName;
|
|
1327
1408
|
|
|
1328
1409
|
// components/elements/dialog/Dialog.tsx
|
|
1329
|
-
var
|
|
1410
|
+
var React14 = __toESM(require("react"));
|
|
1330
1411
|
var DialogPrimitive = __toESM(require("@radix-ui/react-dialog"));
|
|
1331
|
-
var DialogPortal = ({ ...props }) => /* @__PURE__ */
|
|
1332
|
-
var DialogOverlay =
|
|
1412
|
+
var DialogPortal = ({ ...props }) => /* @__PURE__ */ React14.createElement(DialogPrimitive.Portal, { ...props });
|
|
1413
|
+
var DialogOverlay = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React14.createElement(
|
|
1333
1414
|
DialogPrimitive.Overlay,
|
|
1334
1415
|
{
|
|
1335
1416
|
ref,
|
|
@@ -1340,7 +1421,7 @@ var DialogOverlay = React13.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
1340
1421
|
...props
|
|
1341
1422
|
}
|
|
1342
1423
|
));
|
|
1343
|
-
var DialogContent =
|
|
1424
|
+
var DialogContent = React14.forwardRef(({ className, children, persist, hideCloseButton, ...props }, ref) => /* @__PURE__ */ React14.createElement(DialogPortal, null, /* @__PURE__ */ React14.createElement(DialogOverlay, null), /* @__PURE__ */ React14.createElement(
|
|
1344
1425
|
DialogPrimitive.Content,
|
|
1345
1426
|
{
|
|
1346
1427
|
onPointerDownOutside: (e) => {
|
|
@@ -1356,7 +1437,7 @@ var DialogContent = React13.forwardRef(({ className, children, persist, hideClos
|
|
|
1356
1437
|
...props
|
|
1357
1438
|
},
|
|
1358
1439
|
children,
|
|
1359
|
-
!hideCloseButton && /* @__PURE__ */
|
|
1440
|
+
!hideCloseButton && /* @__PURE__ */ React14.createElement(
|
|
1360
1441
|
DialogPrimitive.Close,
|
|
1361
1442
|
{
|
|
1362
1443
|
className: cn(
|
|
@@ -1364,7 +1445,7 @@ var DialogContent = React13.forwardRef(({ className, children, persist, hideClos
|
|
|
1364
1445
|
props.dir === "rtl" ? " hawa-left-4" : " hawa-right-4"
|
|
1365
1446
|
)
|
|
1366
1447
|
},
|
|
1367
|
-
/* @__PURE__ */
|
|
1448
|
+
/* @__PURE__ */ React14.createElement(
|
|
1368
1449
|
"svg",
|
|
1369
1450
|
{
|
|
1370
1451
|
"aria-label": "Close Icon",
|
|
@@ -1373,7 +1454,7 @@ var DialogContent = React13.forwardRef(({ className, children, persist, hideClos
|
|
|
1373
1454
|
fill: "currentColor",
|
|
1374
1455
|
viewBox: "0 0 20 20"
|
|
1375
1456
|
},
|
|
1376
|
-
/* @__PURE__ */
|
|
1457
|
+
/* @__PURE__ */ React14.createElement(
|
|
1377
1458
|
"path",
|
|
1378
1459
|
{
|
|
1379
1460
|
fillRule: "evenodd",
|
|
@@ -1382,10 +1463,10 @@ var DialogContent = React13.forwardRef(({ className, children, persist, hideClos
|
|
|
1382
1463
|
}
|
|
1383
1464
|
)
|
|
1384
1465
|
),
|
|
1385
|
-
/* @__PURE__ */
|
|
1466
|
+
/* @__PURE__ */ React14.createElement("span", { className: "hawa-sr-only" }, "Close")
|
|
1386
1467
|
)
|
|
1387
1468
|
)));
|
|
1388
|
-
var DialogCarouselContent =
|
|
1469
|
+
var DialogCarouselContent = React14.forwardRef(
|
|
1389
1470
|
({
|
|
1390
1471
|
className,
|
|
1391
1472
|
children,
|
|
@@ -1394,7 +1475,7 @@ var DialogCarouselContent = React13.forwardRef(
|
|
|
1394
1475
|
hideCloseButton,
|
|
1395
1476
|
hidePrevButton,
|
|
1396
1477
|
...props
|
|
1397
|
-
}, ref) => /* @__PURE__ */
|
|
1478
|
+
}, ref) => /* @__PURE__ */ React14.createElement(DialogPortal, null, /* @__PURE__ */ React14.createElement(DialogOverlay, null), /* @__PURE__ */ React14.createElement(
|
|
1398
1479
|
DialogPrimitive.Content,
|
|
1399
1480
|
{
|
|
1400
1481
|
onPointerDownOutside: (e) => {
|
|
@@ -1410,7 +1491,7 @@ var DialogCarouselContent = React13.forwardRef(
|
|
|
1410
1491
|
...props
|
|
1411
1492
|
},
|
|
1412
1493
|
children,
|
|
1413
|
-
/* @__PURE__ */
|
|
1494
|
+
/* @__PURE__ */ React14.createElement(
|
|
1414
1495
|
"div",
|
|
1415
1496
|
{
|
|
1416
1497
|
className: cn(
|
|
@@ -1418,7 +1499,7 @@ var DialogCarouselContent = React13.forwardRef(
|
|
|
1418
1499
|
onPrev ? "hawa-justify-between" : "hawa-justify-end"
|
|
1419
1500
|
)
|
|
1420
1501
|
},
|
|
1421
|
-
hidePrevButton ? /* @__PURE__ */
|
|
1502
|
+
hidePrevButton ? /* @__PURE__ */ React14.createElement("div", null) : /* @__PURE__ */ React14.createElement(
|
|
1422
1503
|
"div",
|
|
1423
1504
|
{
|
|
1424
1505
|
onClick: onPrev,
|
|
@@ -1427,7 +1508,7 @@ var DialogCarouselContent = React13.forwardRef(
|
|
|
1427
1508
|
props.dir === "rtl" && "hawa-rotate-180"
|
|
1428
1509
|
)
|
|
1429
1510
|
},
|
|
1430
|
-
/* @__PURE__ */
|
|
1511
|
+
/* @__PURE__ */ React14.createElement(
|
|
1431
1512
|
"svg",
|
|
1432
1513
|
{
|
|
1433
1514
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1441,10 +1522,10 @@ var DialogCarouselContent = React13.forwardRef(
|
|
|
1441
1522
|
strokeLinecap: "round",
|
|
1442
1523
|
strokeLinejoin: "round"
|
|
1443
1524
|
},
|
|
1444
|
-
/* @__PURE__ */
|
|
1525
|
+
/* @__PURE__ */ React14.createElement("path", { d: "m15 18-6-6 6-6" })
|
|
1445
1526
|
)
|
|
1446
1527
|
),
|
|
1447
|
-
!hideCloseButton && /* @__PURE__ */
|
|
1528
|
+
!hideCloseButton && /* @__PURE__ */ React14.createElement(
|
|
1448
1529
|
DialogPrimitive.Close,
|
|
1449
1530
|
{
|
|
1450
1531
|
className: cn(
|
|
@@ -1452,7 +1533,7 @@ var DialogCarouselContent = React13.forwardRef(
|
|
|
1452
1533
|
props.dir === "rtl" ? " hawa-left-4" : " hawa-right-4"
|
|
1453
1534
|
)
|
|
1454
1535
|
},
|
|
1455
|
-
/* @__PURE__ */
|
|
1536
|
+
/* @__PURE__ */ React14.createElement(
|
|
1456
1537
|
"svg",
|
|
1457
1538
|
{
|
|
1458
1539
|
"aria-label": "Close Icon",
|
|
@@ -1461,7 +1542,7 @@ var DialogCarouselContent = React13.forwardRef(
|
|
|
1461
1542
|
fill: "currentColor",
|
|
1462
1543
|
viewBox: "0 0 20 20"
|
|
1463
1544
|
},
|
|
1464
|
-
/* @__PURE__ */
|
|
1545
|
+
/* @__PURE__ */ React14.createElement(
|
|
1465
1546
|
"path",
|
|
1466
1547
|
{
|
|
1467
1548
|
fillRule: "evenodd",
|
|
@@ -1470,7 +1551,7 @@ var DialogCarouselContent = React13.forwardRef(
|
|
|
1470
1551
|
}
|
|
1471
1552
|
)
|
|
1472
1553
|
),
|
|
1473
|
-
/* @__PURE__ */
|
|
1554
|
+
/* @__PURE__ */ React14.createElement("span", { className: "hawa-sr-only" }, "Close")
|
|
1474
1555
|
)
|
|
1475
1556
|
)
|
|
1476
1557
|
))
|
|
@@ -1478,7 +1559,7 @@ var DialogCarouselContent = React13.forwardRef(
|
|
|
1478
1559
|
var DialogHeader = ({
|
|
1479
1560
|
className,
|
|
1480
1561
|
...props
|
|
1481
|
-
}) => /* @__PURE__ */
|
|
1562
|
+
}) => /* @__PURE__ */ React14.createElement(
|
|
1482
1563
|
"div",
|
|
1483
1564
|
{
|
|
1484
1565
|
className: cn(
|
|
@@ -1488,7 +1569,7 @@ var DialogHeader = ({
|
|
|
1488
1569
|
...props
|
|
1489
1570
|
}
|
|
1490
1571
|
);
|
|
1491
|
-
var DialogTitle =
|
|
1572
|
+
var DialogTitle = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React14.createElement(
|
|
1492
1573
|
DialogPrimitive.Title,
|
|
1493
1574
|
{
|
|
1494
1575
|
ref,
|
|
@@ -1499,7 +1580,7 @@ var DialogTitle = React13.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1499
1580
|
...props
|
|
1500
1581
|
}
|
|
1501
1582
|
));
|
|
1502
|
-
var DialogDescription =
|
|
1583
|
+
var DialogDescription = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React14.createElement(
|
|
1503
1584
|
DialogPrimitive.Description,
|
|
1504
1585
|
{
|
|
1505
1586
|
ref,
|
|
@@ -1513,7 +1594,7 @@ var DialogDescription = React13.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1513
1594
|
var DialogFooter = ({
|
|
1514
1595
|
className,
|
|
1515
1596
|
...props
|
|
1516
|
-
}) => /* @__PURE__ */
|
|
1597
|
+
}) => /* @__PURE__ */ React14.createElement(
|
|
1517
1598
|
"div",
|
|
1518
1599
|
{
|
|
1519
1600
|
className: cn(
|
|
@@ -1529,12 +1610,12 @@ var DialogCarousel = ({
|
|
|
1529
1610
|
children,
|
|
1530
1611
|
direction
|
|
1531
1612
|
}) => {
|
|
1532
|
-
|
|
1613
|
+
React14.useEffect(() => {
|
|
1533
1614
|
if (stepsApi) {
|
|
1534
1615
|
stepsApi.reInit();
|
|
1535
1616
|
}
|
|
1536
1617
|
}, [stepsApi, children]);
|
|
1537
|
-
return /* @__PURE__ */
|
|
1618
|
+
return /* @__PURE__ */ React14.createElement("div", { className: "hawa-overflow-hidden" }, /* @__PURE__ */ React14.createElement("div", { ref: stepsRef, dir: direction }, /* @__PURE__ */ React14.createElement(
|
|
1538
1619
|
"div",
|
|
1539
1620
|
{
|
|
1540
1621
|
className: "hawa-flex",
|
|
@@ -1542,7 +1623,7 @@ var DialogCarousel = ({
|
|
|
1542
1623
|
transition: "height 0.2s"
|
|
1543
1624
|
}
|
|
1544
1625
|
},
|
|
1545
|
-
|
|
1626
|
+
React14.Children.map(children, (child, index) => /* @__PURE__ */ React14.createElement(
|
|
1546
1627
|
"div",
|
|
1547
1628
|
{
|
|
1548
1629
|
className: cn(
|
|
@@ -1559,14 +1640,14 @@ var DialogSteps = ({
|
|
|
1559
1640
|
visibleStepRef,
|
|
1560
1641
|
children
|
|
1561
1642
|
}) => {
|
|
1562
|
-
const [dialogHeight, setDialogHeight] =
|
|
1563
|
-
|
|
1643
|
+
const [dialogHeight, setDialogHeight] = React14.useState(null);
|
|
1644
|
+
React14.useEffect(() => {
|
|
1564
1645
|
if (visibleStepRef.current) {
|
|
1565
1646
|
setDialogHeight(visibleStepRef.current.offsetHeight);
|
|
1566
1647
|
console.log("height is ", visibleStepRef.current.offsetHeight);
|
|
1567
1648
|
}
|
|
1568
1649
|
}, [currentStep, visibleStepRef]);
|
|
1569
|
-
return /* @__PURE__ */
|
|
1650
|
+
return /* @__PURE__ */ React14.createElement(
|
|
1570
1651
|
"div",
|
|
1571
1652
|
{
|
|
1572
1653
|
className: "hawa-relative hawa-overflow-clip",
|
|
@@ -1575,7 +1656,7 @@ var DialogSteps = ({
|
|
|
1575
1656
|
transition: "height 0.2s"
|
|
1576
1657
|
}
|
|
1577
1658
|
},
|
|
1578
|
-
|
|
1659
|
+
React14.Children.map(children, (child, index) => /* @__PURE__ */ React14.createElement(
|
|
1579
1660
|
"div",
|
|
1580
1661
|
{
|
|
1581
1662
|
ref: currentStep === `step-${index + 1}` ? visibleStepRef : null,
|
|
@@ -1593,7 +1674,7 @@ var DialogStep = ({
|
|
|
1593
1674
|
className,
|
|
1594
1675
|
stepRef
|
|
1595
1676
|
}) => {
|
|
1596
|
-
return /* @__PURE__ */
|
|
1677
|
+
return /* @__PURE__ */ React14.createElement(
|
|
1597
1678
|
"div",
|
|
1598
1679
|
{
|
|
1599
1680
|
id,
|
|
@@ -1604,7 +1685,7 @@ var DialogStep = ({
|
|
|
1604
1685
|
);
|
|
1605
1686
|
};
|
|
1606
1687
|
var DialogBody = ({ children, className }) => {
|
|
1607
|
-
return /* @__PURE__ */
|
|
1688
|
+
return /* @__PURE__ */ React14.createElement("div", { className: cn("hawa-py-6", className) }, children);
|
|
1608
1689
|
};
|
|
1609
1690
|
DialogBody.displayName = "DialogBody";
|
|
1610
1691
|
DialogStep.displayName = "DialogStep";
|
|
@@ -1620,10 +1701,10 @@ DialogContent.displayName = DialogPrimitive.Content.displayName;
|
|
|
1620
1701
|
DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
|
1621
1702
|
|
|
1622
1703
|
// components/elements/alert/Alert.tsx
|
|
1623
|
-
var
|
|
1704
|
+
var import_react6 = __toESM(require("react"));
|
|
1624
1705
|
|
|
1625
1706
|
// components/elements/button/Button.tsx
|
|
1626
|
-
var
|
|
1707
|
+
var React15 = __toESM(require("react"));
|
|
1627
1708
|
var import_class_variance_authority3 = require("class-variance-authority");
|
|
1628
1709
|
var buttonVariants = (0, import_class_variance_authority3.cva)(
|
|
1629
1710
|
"hawa-inline-flex hawa-items-center hawa-select-none hawa-rounded-md hawa-text-sm hawa-font-medium hawa-ring-offset-background hawa-transition-colors focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-2 disabled:hawa-pointer-events-none disabled:hawa-opacity-50",
|
|
@@ -1658,7 +1739,7 @@ var buttonVariants = (0, import_class_variance_authority3.cva)(
|
|
|
1658
1739
|
}
|
|
1659
1740
|
}
|
|
1660
1741
|
);
|
|
1661
|
-
var Button =
|
|
1742
|
+
var Button = React15.forwardRef(
|
|
1662
1743
|
({
|
|
1663
1744
|
className,
|
|
1664
1745
|
variant,
|
|
@@ -1671,7 +1752,7 @@ var Button = React14.forwardRef(
|
|
|
1671
1752
|
}, ref) => {
|
|
1672
1753
|
const Comp = "button";
|
|
1673
1754
|
const loadingColor = variant === "outline" || variant === "ghost" || variant === "neoBrutalism" ? "hawa-bg-primary" : "hawa-bg-primary-foreground";
|
|
1674
|
-
return /* @__PURE__ */
|
|
1755
|
+
return /* @__PURE__ */ React15.createElement(
|
|
1675
1756
|
Comp,
|
|
1676
1757
|
{
|
|
1677
1758
|
className: cn(
|
|
@@ -1681,7 +1762,7 @@ var Button = React14.forwardRef(
|
|
|
1681
1762
|
ref,
|
|
1682
1763
|
...props
|
|
1683
1764
|
},
|
|
1684
|
-
isLoading ? /* @__PURE__ */
|
|
1765
|
+
isLoading ? /* @__PURE__ */ React15.createElement(
|
|
1685
1766
|
Loading,
|
|
1686
1767
|
{
|
|
1687
1768
|
design: size === "icon" || size === "smallIcon" ? "spinner" : "dots-pulse",
|
|
@@ -1696,21 +1777,21 @@ var Button = React14.forwardRef(
|
|
|
1696
1777
|
Button.displayName = "Button";
|
|
1697
1778
|
|
|
1698
1779
|
// components/elements/avatar/Avatar.tsx
|
|
1699
|
-
var
|
|
1780
|
+
var import_react8 = __toESM(require("react"));
|
|
1700
1781
|
|
|
1701
1782
|
// components/elements/FileUploader.tsx
|
|
1702
|
-
var
|
|
1783
|
+
var import_react7 = __toESM(require("react"));
|
|
1703
1784
|
|
|
1704
1785
|
// components/elements/dataTable/DataTable.tsx
|
|
1705
|
-
var
|
|
1786
|
+
var React22 = __toESM(require("react"));
|
|
1706
1787
|
var import_react_table = require("@tanstack/react-table");
|
|
1707
1788
|
|
|
1708
1789
|
// components/elements/input/Input.tsx
|
|
1709
|
-
var
|
|
1790
|
+
var import_react9 = __toESM(require("react"));
|
|
1710
1791
|
|
|
1711
1792
|
// components/elements/label/Label.tsx
|
|
1712
|
-
var
|
|
1713
|
-
var Label2 =
|
|
1793
|
+
var React19 = __toESM(require("react"));
|
|
1794
|
+
var Label2 = React19.forwardRef(({ className, hint, hintSide, required, children, ...props }, ref) => /* @__PURE__ */ React19.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-1 hawa-transition-all" }, /* @__PURE__ */ React19.createElement(
|
|
1714
1795
|
"label",
|
|
1715
1796
|
{
|
|
1716
1797
|
ref,
|
|
@@ -1721,8 +1802,8 @@ var Label2 = React18.forwardRef(({ className, hint, hintSide, required, children
|
|
|
1721
1802
|
...props
|
|
1722
1803
|
},
|
|
1723
1804
|
children,
|
|
1724
|
-
required && /* @__PURE__ */
|
|
1725
|
-
), hint && /* @__PURE__ */
|
|
1805
|
+
required && /* @__PURE__ */ React19.createElement("span", { className: "hawa-mx-0.5 hawa-text-red-500" }, "*")
|
|
1806
|
+
), hint && /* @__PURE__ */ React19.createElement(Tooltip, { content: hint, side: hintSide }, /* @__PURE__ */ React19.createElement(
|
|
1726
1807
|
"svg",
|
|
1727
1808
|
{
|
|
1728
1809
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1734,14 +1815,14 @@ var Label2 = React18.forwardRef(({ className, hint, hintSide, required, children
|
|
|
1734
1815
|
strokeLinecap: "round",
|
|
1735
1816
|
strokeLinejoin: "round"
|
|
1736
1817
|
},
|
|
1737
|
-
/* @__PURE__ */
|
|
1738
|
-
/* @__PURE__ */
|
|
1739
|
-
/* @__PURE__ */
|
|
1818
|
+
/* @__PURE__ */ React19.createElement("circle", { cx: "12", cy: "12", r: "10" }),
|
|
1819
|
+
/* @__PURE__ */ React19.createElement("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
|
|
1820
|
+
/* @__PURE__ */ React19.createElement("path", { d: "M12 17h.01" })
|
|
1740
1821
|
))));
|
|
1741
1822
|
Label2.displayName = "Label";
|
|
1742
1823
|
|
|
1743
1824
|
// components/elements/input/Input.tsx
|
|
1744
|
-
var Input = (0,
|
|
1825
|
+
var Input = (0, import_react9.forwardRef)(
|
|
1745
1826
|
({
|
|
1746
1827
|
margin = "none",
|
|
1747
1828
|
width = "full",
|
|
@@ -1768,7 +1849,7 @@ var Input = (0, import_react8.forwardRef)(
|
|
|
1768
1849
|
};
|
|
1769
1850
|
let defaultStyle = "hawa-flex hawa-max-h-fit hawa-h-fit hawa-relative hawa-flex-col hawa-justify-center hawa-gap-0";
|
|
1770
1851
|
let defaultInputStyle = "hawa-block hawa-w-full hawa-rounded hawa-border hawa-transition-all hawa-bg-background hawa-p-3 hawa-text-sm ";
|
|
1771
|
-
return /* @__PURE__ */
|
|
1852
|
+
return /* @__PURE__ */ import_react9.default.createElement(
|
|
1772
1853
|
"div",
|
|
1773
1854
|
{
|
|
1774
1855
|
className: cn(
|
|
@@ -1779,8 +1860,8 @@ var Input = (0, import_react8.forwardRef)(
|
|
|
1779
1860
|
"hawa-w-full hawa-gap-2"
|
|
1780
1861
|
)
|
|
1781
1862
|
},
|
|
1782
|
-
props.label && /* @__PURE__ */
|
|
1783
|
-
props.isLoading ? /* @__PURE__ */
|
|
1863
|
+
props.label && /* @__PURE__ */ import_react9.default.createElement(Label2, { ...labelProps }, props.label),
|
|
1864
|
+
props.isLoading ? /* @__PURE__ */ import_react9.default.createElement("div", { className: "hawa-pb-2" }, /* @__PURE__ */ import_react9.default.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" })) : /* @__PURE__ */ import_react9.default.createElement(import_react9.default.Fragment, null, !props.hideSeparator && /* @__PURE__ */ import_react9.default.createElement(
|
|
1784
1865
|
"div",
|
|
1785
1866
|
{
|
|
1786
1867
|
className: cn(
|
|
@@ -1788,7 +1869,7 @@ var Input = (0, import_react8.forwardRef)(
|
|
|
1788
1869
|
preview ? "hawa-opacity-100" : "hawa-opacity-0"
|
|
1789
1870
|
)
|
|
1790
1871
|
}
|
|
1791
|
-
), /* @__PURE__ */
|
|
1872
|
+
), /* @__PURE__ */ import_react9.default.createElement(import_react9.default.Fragment, null, /* @__PURE__ */ import_react9.default.createElement("div", { className: "hawa-relative" }, props.startIcon && /* @__PURE__ */ import_react9.default.createElement("div", { className: "hawa-absolute hawa-start-3 hawa-top-1/2 hawa--translate-y-1/2" }, props.startIcon), props.endIcon && /* @__PURE__ */ import_react9.default.createElement(
|
|
1792
1873
|
"div",
|
|
1793
1874
|
{
|
|
1794
1875
|
className: cn(
|
|
@@ -1797,7 +1878,7 @@ var Input = (0, import_react8.forwardRef)(
|
|
|
1797
1878
|
)
|
|
1798
1879
|
},
|
|
1799
1880
|
props.endIcon
|
|
1800
|
-
), /* @__PURE__ */
|
|
1881
|
+
), /* @__PURE__ */ import_react9.default.createElement(
|
|
1801
1882
|
"input",
|
|
1802
1883
|
{
|
|
1803
1884
|
required: true,
|
|
@@ -1823,7 +1904,7 @@ var Input = (0, import_react8.forwardRef)(
|
|
|
1823
1904
|
inputProps == null ? void 0 : inputProps.className
|
|
1824
1905
|
)
|
|
1825
1906
|
}
|
|
1826
|
-
)), !forceHideHelperText && /* @__PURE__ */
|
|
1907
|
+
)), !forceHideHelperText && /* @__PURE__ */ import_react9.default.createElement(
|
|
1827
1908
|
"p",
|
|
1828
1909
|
{
|
|
1829
1910
|
className: cn(
|
|
@@ -1832,7 +1913,7 @@ var Input = (0, import_react8.forwardRef)(
|
|
|
1832
1913
|
)
|
|
1833
1914
|
},
|
|
1834
1915
|
props.helperText
|
|
1835
|
-
), !props.disabled && forceHideHelperText && /* @__PURE__ */
|
|
1916
|
+
), !props.disabled && forceHideHelperText && /* @__PURE__ */ import_react9.default.createElement(
|
|
1836
1917
|
"div",
|
|
1837
1918
|
{
|
|
1838
1919
|
className: cn(
|
|
@@ -1841,7 +1922,7 @@ var Input = (0, import_react8.forwardRef)(
|
|
|
1841
1922
|
)
|
|
1842
1923
|
},
|
|
1843
1924
|
props.helperText
|
|
1844
|
-
), showCount && /* @__PURE__ */
|
|
1925
|
+
), showCount && /* @__PURE__ */ import_react9.default.createElement(
|
|
1845
1926
|
"div",
|
|
1846
1927
|
{
|
|
1847
1928
|
className: cn(
|
|
@@ -1862,8 +1943,8 @@ var Input = (0, import_react8.forwardRef)(
|
|
|
1862
1943
|
);
|
|
1863
1944
|
|
|
1864
1945
|
// components/elements/table/Table.tsx
|
|
1865
|
-
var
|
|
1866
|
-
var Table =
|
|
1946
|
+
var React21 = __toESM(require("react"));
|
|
1947
|
+
var Table = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React21.createElement("div", { className: "hawa-relative hawa-w-full hawa-overflow-auto hawa-rounded hawa-border" }, /* @__PURE__ */ React21.createElement(
|
|
1867
1948
|
"table",
|
|
1868
1949
|
{
|
|
1869
1950
|
ref,
|
|
@@ -1872,7 +1953,7 @@ var Table = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
1872
1953
|
}
|
|
1873
1954
|
)));
|
|
1874
1955
|
Table.displayName = "Table";
|
|
1875
|
-
var TableHeader =
|
|
1956
|
+
var TableHeader = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React21.createElement(
|
|
1876
1957
|
"thead",
|
|
1877
1958
|
{
|
|
1878
1959
|
ref,
|
|
@@ -1881,8 +1962,8 @@ var TableHeader = React20.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1881
1962
|
}
|
|
1882
1963
|
));
|
|
1883
1964
|
TableHeader.displayName = "TableHeader";
|
|
1884
|
-
var TableHead =
|
|
1885
|
-
({ className, condensed, clickable, dir, ...props }, ref) => /* @__PURE__ */
|
|
1965
|
+
var TableHead = React21.forwardRef(
|
|
1966
|
+
({ className, condensed, clickable, dir, ...props }, ref) => /* @__PURE__ */ React21.createElement(
|
|
1886
1967
|
"th",
|
|
1887
1968
|
{
|
|
1888
1969
|
ref,
|
|
@@ -1901,9 +1982,9 @@ var TableHead = React20.forwardRef(
|
|
|
1901
1982
|
)
|
|
1902
1983
|
);
|
|
1903
1984
|
TableHead.displayName = "TableHead";
|
|
1904
|
-
var TableBody =
|
|
1985
|
+
var TableBody = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React21.createElement("tbody", { ref, className: cn("hawa-border-none", className), ...props }));
|
|
1905
1986
|
TableBody.displayName = "TableBody";
|
|
1906
|
-
var TableFooter =
|
|
1987
|
+
var TableFooter = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React21.createElement(
|
|
1907
1988
|
"tfoot",
|
|
1908
1989
|
{
|
|
1909
1990
|
ref,
|
|
@@ -1915,7 +1996,7 @@ var TableFooter = React20.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1915
1996
|
}
|
|
1916
1997
|
));
|
|
1917
1998
|
TableFooter.displayName = "TableFooter";
|
|
1918
|
-
var TableRow =
|
|
1999
|
+
var TableRow = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React21.createElement(
|
|
1919
2000
|
"tr",
|
|
1920
2001
|
{
|
|
1921
2002
|
ref,
|
|
@@ -1929,14 +2010,14 @@ var TableRow = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
1929
2010
|
}
|
|
1930
2011
|
));
|
|
1931
2012
|
TableRow.displayName = "TableRow";
|
|
1932
|
-
var TableCell =
|
|
2013
|
+
var TableCell = React21.forwardRef(
|
|
1933
2014
|
({ className, enablePadding = true, padding = "default", ...props }, ref) => {
|
|
1934
2015
|
let paddingStyles = {
|
|
1935
2016
|
condensed: "hawa-p-0 hawa-px-4",
|
|
1936
2017
|
default: "hawa-p-4",
|
|
1937
2018
|
noPadding: "hawa-p-0"
|
|
1938
2019
|
};
|
|
1939
|
-
return /* @__PURE__ */
|
|
2020
|
+
return /* @__PURE__ */ React21.createElement(
|
|
1940
2021
|
"td",
|
|
1941
2022
|
{
|
|
1942
2023
|
ref,
|
|
@@ -1958,7 +2039,7 @@ var TableCell = React20.forwardRef(
|
|
|
1958
2039
|
}
|
|
1959
2040
|
);
|
|
1960
2041
|
TableCell.displayName = "TableCell";
|
|
1961
|
-
var TableCaption =
|
|
2042
|
+
var TableCaption = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React21.createElement(
|
|
1962
2043
|
"caption",
|
|
1963
2044
|
{
|
|
1964
2045
|
ref,
|
|
@@ -1972,19 +2053,19 @@ var TableCaption = React20.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
1972
2053
|
TableCaption.displayName = "TableCaption";
|
|
1973
2054
|
|
|
1974
2055
|
// components/elements/backToTop/BackToTop.tsx
|
|
1975
|
-
var
|
|
2056
|
+
var import_react10 = __toESM(require("react"));
|
|
1976
2057
|
|
|
1977
2058
|
// components/elements/radio/Radio.tsx
|
|
1978
|
-
var
|
|
2059
|
+
var import_react11 = __toESM(require("react"));
|
|
1979
2060
|
|
|
1980
2061
|
// components/elements/combobox/Combobox.tsx
|
|
1981
|
-
var
|
|
2062
|
+
var React27 = __toESM(require("react"));
|
|
1982
2063
|
var PopoverPrimitive2 = __toESM(require("@radix-ui/react-popover"));
|
|
1983
2064
|
|
|
1984
2065
|
// components/elements/command/Command.tsx
|
|
1985
|
-
var
|
|
2066
|
+
var React25 = __toESM(require("react"));
|
|
1986
2067
|
var import_cmdk = require("cmdk");
|
|
1987
|
-
var Command =
|
|
2068
|
+
var Command = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React25.createElement(
|
|
1988
2069
|
import_cmdk.Command,
|
|
1989
2070
|
{
|
|
1990
2071
|
ref,
|
|
@@ -1996,13 +2077,13 @@ var Command = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
1996
2077
|
}
|
|
1997
2078
|
));
|
|
1998
2079
|
Command.displayName = import_cmdk.Command.displayName;
|
|
1999
|
-
var CommandInput =
|
|
2080
|
+
var CommandInput = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React25.createElement(
|
|
2000
2081
|
"div",
|
|
2001
2082
|
{
|
|
2002
2083
|
className: "hawa-flex hawa-items-center hawa-border-b hawa-px-3",
|
|
2003
2084
|
"cmdk-input-wrapper": ""
|
|
2004
2085
|
},
|
|
2005
|
-
/* @__PURE__ */
|
|
2086
|
+
/* @__PURE__ */ React25.createElement(
|
|
2006
2087
|
"svg",
|
|
2007
2088
|
{
|
|
2008
2089
|
"aria-label": "Search Icon",
|
|
@@ -2017,10 +2098,10 @@ var CommandInput = React24.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
2017
2098
|
strokeLinejoin: "round",
|
|
2018
2099
|
className: "hawa-icon hawa-mr-2 hawa-shrink-0 hawa-opacity-50"
|
|
2019
2100
|
},
|
|
2020
|
-
/* @__PURE__ */
|
|
2021
|
-
/* @__PURE__ */
|
|
2101
|
+
/* @__PURE__ */ React25.createElement("circle", { cx: "11", cy: "11", r: "8" }),
|
|
2102
|
+
/* @__PURE__ */ React25.createElement("path", { d: "m21 21-4.3-4.3" })
|
|
2022
2103
|
),
|
|
2023
|
-
/* @__PURE__ */
|
|
2104
|
+
/* @__PURE__ */ React25.createElement(
|
|
2024
2105
|
import_cmdk.Command.Input,
|
|
2025
2106
|
{
|
|
2026
2107
|
ref,
|
|
@@ -2033,7 +2114,7 @@ var CommandInput = React24.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
2033
2114
|
)
|
|
2034
2115
|
));
|
|
2035
2116
|
CommandInput.displayName = import_cmdk.Command.Input.displayName;
|
|
2036
|
-
var CommandList =
|
|
2117
|
+
var CommandList = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React25.createElement(
|
|
2037
2118
|
import_cmdk.Command.List,
|
|
2038
2119
|
{
|
|
2039
2120
|
ref,
|
|
@@ -2045,7 +2126,7 @@ var CommandList = React24.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
2045
2126
|
}
|
|
2046
2127
|
));
|
|
2047
2128
|
CommandList.displayName = import_cmdk.Command.List.displayName;
|
|
2048
|
-
var CommandEmpty =
|
|
2129
|
+
var CommandEmpty = React25.forwardRef((props, ref) => /* @__PURE__ */ React25.createElement(
|
|
2049
2130
|
import_cmdk.Command.Empty,
|
|
2050
2131
|
{
|
|
2051
2132
|
ref,
|
|
@@ -2054,7 +2135,7 @@ var CommandEmpty = React24.forwardRef((props, ref) => /* @__PURE__ */ React24.cr
|
|
|
2054
2135
|
}
|
|
2055
2136
|
));
|
|
2056
2137
|
CommandEmpty.displayName = import_cmdk.Command.Empty.displayName;
|
|
2057
|
-
var CommandGroup =
|
|
2138
|
+
var CommandGroup = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React25.createElement(
|
|
2058
2139
|
import_cmdk.Command.Group,
|
|
2059
2140
|
{
|
|
2060
2141
|
ref,
|
|
@@ -2066,7 +2147,7 @@ var CommandGroup = React24.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
2066
2147
|
}
|
|
2067
2148
|
));
|
|
2068
2149
|
CommandGroup.displayName = import_cmdk.Command.Group.displayName;
|
|
2069
|
-
var CommandSeparator =
|
|
2150
|
+
var CommandSeparator = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React25.createElement(
|
|
2070
2151
|
import_cmdk.Command.Separator,
|
|
2071
2152
|
{
|
|
2072
2153
|
ref,
|
|
@@ -2075,7 +2156,7 @@ var CommandSeparator = React24.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
2075
2156
|
}
|
|
2076
2157
|
));
|
|
2077
2158
|
CommandSeparator.displayName = import_cmdk.Command.Separator.displayName;
|
|
2078
|
-
var CommandItem =
|
|
2159
|
+
var CommandItem = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React25.createElement(
|
|
2079
2160
|
import_cmdk.Command.Item,
|
|
2080
2161
|
{
|
|
2081
2162
|
ref,
|
|
@@ -2091,7 +2172,7 @@ var CommandShortcut = ({
|
|
|
2091
2172
|
className,
|
|
2092
2173
|
...props
|
|
2093
2174
|
}) => {
|
|
2094
|
-
return /* @__PURE__ */
|
|
2175
|
+
return /* @__PURE__ */ React25.createElement(
|
|
2095
2176
|
"span",
|
|
2096
2177
|
{
|
|
2097
2178
|
className: cn(
|
|
@@ -2105,9 +2186,9 @@ var CommandShortcut = ({
|
|
|
2105
2186
|
CommandShortcut.displayName = "CommandShortcut";
|
|
2106
2187
|
|
|
2107
2188
|
// components/elements/popover/Popover.tsx
|
|
2108
|
-
var
|
|
2189
|
+
var React26 = __toESM(require("react"));
|
|
2109
2190
|
var PopoverPrimitive = __toESM(require("@radix-ui/react-popover"));
|
|
2110
|
-
var PopoverContent =
|
|
2191
|
+
var PopoverContent = React26.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React26.createElement(PopoverPrimitive.Portal, null, /* @__PURE__ */ React26.createElement(
|
|
2111
2192
|
PopoverPrimitive.Content,
|
|
2112
2193
|
{
|
|
2113
2194
|
ref,
|
|
@@ -2124,7 +2205,7 @@ PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
|
|
2124
2205
|
var PopoverTrigger = PopoverPrimitive.Trigger;
|
|
2125
2206
|
|
|
2126
2207
|
// components/elements/combobox/Combobox.tsx
|
|
2127
|
-
var Combobox =
|
|
2208
|
+
var Combobox = React27.forwardRef(
|
|
2128
2209
|
({
|
|
2129
2210
|
labelKey = "label",
|
|
2130
2211
|
valueKey = "value",
|
|
@@ -2135,8 +2216,8 @@ var Combobox = React26.forwardRef(
|
|
|
2135
2216
|
...props
|
|
2136
2217
|
}, ref) => {
|
|
2137
2218
|
var _a, _b, _c;
|
|
2138
|
-
const [open, setOpen] =
|
|
2139
|
-
const [value, setValue] =
|
|
2219
|
+
const [open, setOpen] = React27.useState(false);
|
|
2220
|
+
const [value, setValue] = React27.useState(defaultValue);
|
|
2140
2221
|
function getProperty(obj, key) {
|
|
2141
2222
|
return obj[key];
|
|
2142
2223
|
}
|
|
@@ -2145,7 +2226,7 @@ var Combobox = React26.forwardRef(
|
|
|
2145
2226
|
setOpen(open2);
|
|
2146
2227
|
}
|
|
2147
2228
|
};
|
|
2148
|
-
return /* @__PURE__ */
|
|
2229
|
+
return /* @__PURE__ */ React27.createElement(
|
|
2149
2230
|
"div",
|
|
2150
2231
|
{
|
|
2151
2232
|
className: cn(
|
|
@@ -2153,8 +2234,8 @@ var Combobox = React26.forwardRef(
|
|
|
2153
2234
|
props.width === "fit" ? "hawa-w-fit" : "hawa-w-full"
|
|
2154
2235
|
)
|
|
2155
2236
|
},
|
|
2156
|
-
props.label && /* @__PURE__ */
|
|
2157
|
-
/* @__PURE__ */
|
|
2237
|
+
props.label && /* @__PURE__ */ React27.createElement(Label2, { ...labelProps }, props.label),
|
|
2238
|
+
/* @__PURE__ */ React27.createElement(PopoverPrimitive2.Root, { open, onOpenChange: handleOpenChange }, /* @__PURE__ */ React27.createElement(PopoverTrigger, { asChild: true }, props.isLoading ? /* @__PURE__ */ React27.createElement("div", { className: "hawa-pb-2" }, /* @__PURE__ */ React27.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" })) : /* @__PURE__ */ React27.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-start hawa-gap-2 " }, /* @__PURE__ */ React27.createElement(
|
|
2158
2239
|
"div",
|
|
2159
2240
|
{
|
|
2160
2241
|
className: cn(
|
|
@@ -2162,7 +2243,7 @@ var Combobox = React26.forwardRef(
|
|
|
2162
2243
|
props.preview ? "hawa-opacity-100" : "hawa-opacity-0"
|
|
2163
2244
|
)
|
|
2164
2245
|
}
|
|
2165
|
-
), /* @__PURE__ */
|
|
2246
|
+
), /* @__PURE__ */ React27.createElement(
|
|
2166
2247
|
"button",
|
|
2167
2248
|
{
|
|
2168
2249
|
role: "combobox",
|
|
@@ -2176,7 +2257,7 @@ var Combobox = React26.forwardRef(
|
|
|
2176
2257
|
data.find((item) => item[valueKey] === value) || {},
|
|
2177
2258
|
labelKey
|
|
2178
2259
|
) : ((_a = props.texts) == null ? void 0 : _a.placeholder) || "...",
|
|
2179
|
-
/* @__PURE__ */
|
|
2260
|
+
/* @__PURE__ */ React27.createElement(
|
|
2180
2261
|
"svg",
|
|
2181
2262
|
{
|
|
2182
2263
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2192,9 +2273,9 @@ var Combobox = React26.forwardRef(
|
|
|
2192
2273
|
strokeLinecap: "round",
|
|
2193
2274
|
strokeLinejoin: "round"
|
|
2194
2275
|
},
|
|
2195
|
-
/* @__PURE__ */
|
|
2276
|
+
/* @__PURE__ */ React27.createElement("path", { d: "m6 9 6 6 6-6" })
|
|
2196
2277
|
)
|
|
2197
|
-
), /* @__PURE__ */
|
|
2278
|
+
), /* @__PURE__ */ React27.createElement(
|
|
2198
2279
|
"p",
|
|
2199
2280
|
{
|
|
2200
2281
|
className: cn(
|
|
@@ -2203,17 +2284,17 @@ var Combobox = React26.forwardRef(
|
|
|
2203
2284
|
)
|
|
2204
2285
|
},
|
|
2205
2286
|
props.helperText
|
|
2206
|
-
))), /* @__PURE__ */
|
|
2287
|
+
))), /* @__PURE__ */ React27.createElement(
|
|
2207
2288
|
PopoverContent,
|
|
2208
2289
|
{
|
|
2209
2290
|
className: cn("popover-w-parent", props.helperText && "-hawa-mt-4")
|
|
2210
2291
|
},
|
|
2211
|
-
/* @__PURE__ */
|
|
2292
|
+
/* @__PURE__ */ React27.createElement(Command, null, !props.hideInput && /* @__PURE__ */ React27.createElement(
|
|
2212
2293
|
CommandInput,
|
|
2213
2294
|
{
|
|
2214
2295
|
placeholder: ((_b = props.texts) == null ? void 0 : _b.searchPlaceholder) || "Search"
|
|
2215
2296
|
}
|
|
2216
|
-
), /* @__PURE__ */
|
|
2297
|
+
), /* @__PURE__ */ React27.createElement(CommandEmpty, null, ((_c = props.texts) == null ? void 0 : _c.noItems) || "No items found."), /* @__PURE__ */ React27.createElement(CommandGroup, { className: "hawa-max-h-[200px] hawa-overflow-y-auto" }, data.map((item, i) => /* @__PURE__ */ React27.createElement(
|
|
2217
2298
|
CommandItem,
|
|
2218
2299
|
{
|
|
2219
2300
|
key: i,
|
|
@@ -2228,7 +2309,7 @@ var Combobox = React26.forwardRef(
|
|
|
2228
2309
|
setOpen(false);
|
|
2229
2310
|
}
|
|
2230
2311
|
},
|
|
2231
|
-
/* @__PURE__ */
|
|
2312
|
+
/* @__PURE__ */ React27.createElement(
|
|
2232
2313
|
"svg",
|
|
2233
2314
|
{
|
|
2234
2315
|
"aria-label": "Check Icon",
|
|
@@ -2246,7 +2327,7 @@ var Combobox = React26.forwardRef(
|
|
|
2246
2327
|
value === getProperty(item, valueKey) ? "hawa-opacity-100" : "hawa-opacity-0"
|
|
2247
2328
|
)
|
|
2248
2329
|
},
|
|
2249
|
-
/* @__PURE__ */
|
|
2330
|
+
/* @__PURE__ */ React27.createElement("polyline", { points: "20 6 9 17 4 12" })
|
|
2250
2331
|
),
|
|
2251
2332
|
getProperty(item, labelKey)
|
|
2252
2333
|
))))
|
|
@@ -2256,8 +2337,8 @@ var Combobox = React26.forwardRef(
|
|
|
2256
2337
|
);
|
|
2257
2338
|
|
|
2258
2339
|
// components/elements/textarea/Textarea.tsx
|
|
2259
|
-
var
|
|
2260
|
-
var Textarea =
|
|
2340
|
+
var React28 = __toESM(require("react"));
|
|
2341
|
+
var Textarea = React28.forwardRef(
|
|
2261
2342
|
({
|
|
2262
2343
|
className,
|
|
2263
2344
|
labelProps,
|
|
@@ -2267,7 +2348,7 @@ var Textarea = React27.forwardRef(
|
|
|
2267
2348
|
countPosition = "bottom",
|
|
2268
2349
|
...props
|
|
2269
2350
|
}, ref) => {
|
|
2270
|
-
return /* @__PURE__ */
|
|
2351
|
+
return /* @__PURE__ */ React28.createElement("div", { className: "hawa-relative hawa-flex hawa-h-full hawa-w-full hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ React28.createElement(Label2, { ...labelProps }, props.label), /* @__PURE__ */ React28.createElement(
|
|
2271
2352
|
"textarea",
|
|
2272
2353
|
{
|
|
2273
2354
|
className: cn(
|
|
@@ -2277,7 +2358,7 @@ var Textarea = React27.forwardRef(
|
|
|
2277
2358
|
ref,
|
|
2278
2359
|
...textareaProps
|
|
2279
2360
|
}
|
|
2280
|
-
), /* @__PURE__ */
|
|
2361
|
+
), /* @__PURE__ */ React28.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, !forceHideHelperText && /* @__PURE__ */ React28.createElement(
|
|
2281
2362
|
"p",
|
|
2282
2363
|
{
|
|
2283
2364
|
className: cn(
|
|
@@ -2286,7 +2367,7 @@ var Textarea = React27.forwardRef(
|
|
|
2286
2367
|
)
|
|
2287
2368
|
},
|
|
2288
2369
|
props.helperText
|
|
2289
|
-
), showCount && /* @__PURE__ */
|
|
2370
|
+
), showCount && /* @__PURE__ */ React28.createElement(
|
|
2290
2371
|
"div",
|
|
2291
2372
|
{
|
|
2292
2373
|
className: cn(
|
|
@@ -2305,99 +2386,16 @@ var Textarea = React27.forwardRef(
|
|
|
2305
2386
|
Textarea.displayName = "Textarea";
|
|
2306
2387
|
|
|
2307
2388
|
// components/elements/fileDropzone/FileDropzone.tsx
|
|
2308
|
-
var
|
|
2389
|
+
var import_react12 = __toESM(require("react"));
|
|
2309
2390
|
var import_react_dropzone = require("react-dropzone");
|
|
2310
2391
|
var import_clsx2 = __toESM(require("clsx"));
|
|
2311
2392
|
|
|
2312
2393
|
// components/elements/sortButton/SortButton.tsx
|
|
2313
|
-
var
|
|
2394
|
+
var import_react13 = __toESM(require("react"));
|
|
2314
2395
|
|
|
2315
2396
|
// components/elements/tabs/Tabs.tsx
|
|
2316
2397
|
var React31 = __toESM(require("react"));
|
|
2317
2398
|
var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"));
|
|
2318
|
-
|
|
2319
|
-
// components/elements/Chip.tsx
|
|
2320
|
-
var import_react13 = __toESM(require("react"));
|
|
2321
|
-
var Chip = import_react13.default.forwardRef(
|
|
2322
|
-
({
|
|
2323
|
-
label,
|
|
2324
|
-
size = "normal",
|
|
2325
|
-
icon,
|
|
2326
|
-
color,
|
|
2327
|
-
radius = "inherit",
|
|
2328
|
-
dotType,
|
|
2329
|
-
...rest
|
|
2330
|
-
}, ref) => {
|
|
2331
|
-
let defaultStyles = "hawa-flex hawa-flex-row hawa-w-fit hawa-gap-1 hawa-items-center hawa-px-2.5 hawa-py-1 hawa-font-bold ";
|
|
2332
|
-
let radiusStyles = {
|
|
2333
|
-
inherit: " hawa-rounded",
|
|
2334
|
-
full: "hawa-rounded-full",
|
|
2335
|
-
none: "hawa-rounded-none"
|
|
2336
|
-
};
|
|
2337
|
-
let sizeStyles = {
|
|
2338
|
-
small: "hawa-h-[15px] hawa-leading-4 hawa-px-0 hawa-py-0 hawa-text-[9px] hawa-gap-0.5 ",
|
|
2339
|
-
normal: "hawa-h-fit hawa-text-xs",
|
|
2340
|
-
large: "hawa-text-base"
|
|
2341
|
-
};
|
|
2342
|
-
let dotStyles = {
|
|
2343
|
-
small: "hawa-flex hawa-h-1 hawa-w-1 hawa-rounded-full",
|
|
2344
|
-
normal: "hawa-flex hawa-h-2 hawa-w-2 hawa-rounded-full",
|
|
2345
|
-
large: "hawa-flex hawa-h-3 hawa-w-3 hawa-rounded-full"
|
|
2346
|
-
};
|
|
2347
|
-
let dotTypeStyles = {
|
|
2348
|
-
available: "hawa-bg-green-500",
|
|
2349
|
-
unavailable: "hawa-bg-red-500"
|
|
2350
|
-
};
|
|
2351
|
-
let colorStyles = {
|
|
2352
|
-
green: "hawa-bg-green-100 hawa-text-green-500 dark:hawa-bg-green-400 dark:hawa-text-green-800",
|
|
2353
|
-
blue: "hawa-bg-blue-100 hawa-text-blue-500 dark:hawa-bg-blue-400 dark:hawa-text-blue-100",
|
|
2354
|
-
red: "hawa-bg-red-100 hawa-text-red-500 dark:hawa-bg-red-400 dark:hawa-text-red-100",
|
|
2355
|
-
yellow: "hawa-bg-yellow-100 hawa-text-yellow-600 dark:hawa-bg-yellow-400 dark:hawa-text-yellow-800",
|
|
2356
|
-
orange: "hawa-bg-orange-100 hawa-text-orange-500 dark:hawa-bg-orange-400 dark:hawa-text-orange-100",
|
|
2357
|
-
purple: "hawa-bg-purple-100 hawa-text-purple-500 dark:hawa-bg-purple-400 dark:hawa-text-purple-100",
|
|
2358
|
-
cyan: "hawa-bg-cyan-100 hawa-text-cyan-800 dark:hawa-bg-cyan-400 dark:hawa-text-cyan-800",
|
|
2359
|
-
hyper: "hawa-text-white hawa-bg-gradient-to-tl hawa-from-pink-500 hawa-via-red-500 hawa-to-yellow-500 ",
|
|
2360
|
-
oceanic: "hawa-text-white hawa-bg-gradient-to-bl hawa-from-green-300 hawa-via-blue-500 hawa-to-purple-600"
|
|
2361
|
-
};
|
|
2362
|
-
if (label) {
|
|
2363
|
-
return /* @__PURE__ */ import_react13.default.createElement(
|
|
2364
|
-
"span",
|
|
2365
|
-
{
|
|
2366
|
-
...rest,
|
|
2367
|
-
ref,
|
|
2368
|
-
className: cn(
|
|
2369
|
-
defaultStyles,
|
|
2370
|
-
sizeStyles[size],
|
|
2371
|
-
radiusStyles[radius],
|
|
2372
|
-
color ? colorStyles[color] : "hawa-border hawa-bg-none"
|
|
2373
|
-
)
|
|
2374
|
-
},
|
|
2375
|
-
dotType && /* @__PURE__ */ import_react13.default.createElement(
|
|
2376
|
-
"span",
|
|
2377
|
-
{
|
|
2378
|
-
className: cn(dotStyles[size], dotTypeStyles[dotType])
|
|
2379
|
-
}
|
|
2380
|
-
),
|
|
2381
|
-
icon && icon,
|
|
2382
|
-
label
|
|
2383
|
-
);
|
|
2384
|
-
} else {
|
|
2385
|
-
return /* @__PURE__ */ import_react13.default.createElement(
|
|
2386
|
-
"span",
|
|
2387
|
-
{
|
|
2388
|
-
...rest,
|
|
2389
|
-
ref,
|
|
2390
|
-
className: cn(
|
|
2391
|
-
"hawa-h-2 hawa-w-2 hawa-rounded-full",
|
|
2392
|
-
color ? colorStyles[color] : "hawa-border hawa-bg-none"
|
|
2393
|
-
)
|
|
2394
|
-
}
|
|
2395
|
-
);
|
|
2396
|
-
}
|
|
2397
|
-
}
|
|
2398
|
-
);
|
|
2399
|
-
|
|
2400
|
-
// components/elements/tabs/Tabs.tsx
|
|
2401
2399
|
var TabsContext = React31.createContext({ orientation: "vertical" });
|
|
2402
2400
|
var Tabs = React31.forwardRef(({ className, orientation, ...props }, ref) => /* @__PURE__ */ React31.createElement(
|
|
2403
2401
|
TabsPrimitive.Root,
|
|
@@ -2604,52 +2602,89 @@ var CheckboxElement = React34.forwardRef(({ radius = "inherit", size = "default"
|
|
|
2604
2602
|
});
|
|
2605
2603
|
CheckboxElement.displayName = CheckboxPrimitive.Root.displayName;
|
|
2606
2604
|
|
|
2607
|
-
// components/elements/
|
|
2605
|
+
// components/elements/progress/Progress.tsx
|
|
2606
|
+
var React35 = __toESM(require("react"));
|
|
2607
|
+
var ProgressPrimitive = __toESM(require("@radix-ui/react-progress"));
|
|
2608
|
+
var Progress = React35.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ React35.createElement(
|
|
2609
|
+
ProgressPrimitive.Root,
|
|
2610
|
+
{
|
|
2611
|
+
ref,
|
|
2612
|
+
className: cn(
|
|
2613
|
+
"hawa-relative hawa-h-4 hawa-w-full hawa-overflow-hidden hawa-rounded hawa-bg-secondary",
|
|
2614
|
+
className
|
|
2615
|
+
),
|
|
2616
|
+
...props
|
|
2617
|
+
},
|
|
2618
|
+
/* @__PURE__ */ React35.createElement(
|
|
2619
|
+
ProgressPrimitive.Indicator,
|
|
2620
|
+
{
|
|
2621
|
+
className: "hawa-h-full hawa-w-full hawa-flex-1 hawa-bg-primary hawa-transition-all",
|
|
2622
|
+
style: { transform: `translateX(-${100 - (value || 0)}%)` }
|
|
2623
|
+
}
|
|
2624
|
+
)
|
|
2625
|
+
));
|
|
2626
|
+
Progress.displayName = ProgressPrimitive.Root.displayName;
|
|
2627
|
+
|
|
2628
|
+
// components/elements/breadcrumb/Breadcrumb.tsx
|
|
2608
2629
|
var import_react15 = __toESM(require("react"));
|
|
2609
2630
|
|
|
2610
|
-
// components/elements/
|
|
2631
|
+
// components/elements/appStores/AppStores.tsx
|
|
2611
2632
|
var import_react16 = __toESM(require("react"));
|
|
2612
2633
|
|
|
2613
|
-
// components/elements/
|
|
2634
|
+
// components/elements/badge/Badge.tsx
|
|
2614
2635
|
var import_react17 = __toESM(require("react"));
|
|
2615
2636
|
|
|
2616
|
-
// components/elements/
|
|
2637
|
+
// components/elements/phoneInput/PhoneInput.tsx
|
|
2617
2638
|
var import_react18 = __toESM(require("react"));
|
|
2618
2639
|
|
|
2619
|
-
// components/elements/
|
|
2640
|
+
// components/elements/pinInput/PinInput.tsx
|
|
2620
2641
|
var import_react19 = __toESM(require("react"));
|
|
2621
2642
|
|
|
2622
|
-
// components/elements/
|
|
2643
|
+
// components/elements/stopPropagationWrapper/StopPropagationWrapper.tsx
|
|
2623
2644
|
var import_react20 = __toESM(require("react"));
|
|
2624
2645
|
|
|
2625
|
-
// components/elements/
|
|
2626
|
-
var import_react21 = __toESM(require("react"));
|
|
2627
|
-
|
|
2628
|
-
// components/elements/Progress.tsx
|
|
2646
|
+
// components/elements/scrollArea/ScrollArea.tsx
|
|
2629
2647
|
var React42 = __toESM(require("react"));
|
|
2630
|
-
var
|
|
2631
|
-
var
|
|
2632
|
-
|
|
2648
|
+
var ScrollAreaPrimitive = __toESM(require("@radix-ui/react-scroll-area"));
|
|
2649
|
+
var ScrollArea = React42.forwardRef(({ className, children, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React42.createElement(
|
|
2650
|
+
ScrollAreaPrimitive.Root,
|
|
2651
|
+
{
|
|
2652
|
+
ref,
|
|
2653
|
+
className: cn("hawa-relative hawa-overflow-hidden", className),
|
|
2654
|
+
...props
|
|
2655
|
+
},
|
|
2656
|
+
/* @__PURE__ */ React42.createElement(ScrollAreaPrimitive.Viewport, { className: "hawa-h-full hawa-w-full hawa-rounded-[inherit]" }, children),
|
|
2657
|
+
/* @__PURE__ */ React42.createElement(ScrollBar, { orientation }),
|
|
2658
|
+
/* @__PURE__ */ React42.createElement(ScrollAreaPrimitive.Corner, null)
|
|
2659
|
+
));
|
|
2660
|
+
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
|
|
2661
|
+
var ScrollBar = React42.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React42.createElement(
|
|
2662
|
+
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
|
2633
2663
|
{
|
|
2634
2664
|
ref,
|
|
2665
|
+
orientation,
|
|
2635
2666
|
className: cn(
|
|
2636
|
-
"hawa-
|
|
2667
|
+
"hawa-flex hawa-touch-none hawa-select-none hawa-transition-colors",
|
|
2668
|
+
orientation === "vertical" && "hawa-h-full hawa-w-2.5 hawa-border-l hawa-border-l-transparent hawa-p-[1px]",
|
|
2669
|
+
orientation === "horizontal" && "hawa-h-2.5 hawa-border-t hawa-border-t-transparent hawa-p-[1px]",
|
|
2637
2670
|
className
|
|
2638
2671
|
),
|
|
2639
2672
|
...props
|
|
2640
2673
|
},
|
|
2641
2674
|
/* @__PURE__ */ React42.createElement(
|
|
2642
|
-
|
|
2675
|
+
ScrollAreaPrimitive.ScrollAreaThumb,
|
|
2643
2676
|
{
|
|
2644
|
-
className:
|
|
2645
|
-
|
|
2677
|
+
className: cn(
|
|
2678
|
+
"hawa-relative hawa-rounded-full hawa-bg-border",
|
|
2679
|
+
orientation === "vertical" && "hawa-flex-1"
|
|
2680
|
+
)
|
|
2646
2681
|
}
|
|
2647
2682
|
)
|
|
2648
2683
|
));
|
|
2649
|
-
|
|
2684
|
+
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
|
2650
2685
|
|
|
2651
2686
|
// components/elements/ProgressCircle.tsx
|
|
2652
|
-
var
|
|
2687
|
+
var import_react21 = __toESM(require("react"));
|
|
2653
2688
|
var size2config = {
|
|
2654
2689
|
xs: {
|
|
2655
2690
|
radius: 15,
|
|
@@ -2681,7 +2716,7 @@ function getLimitedValue(input) {
|
|
|
2681
2716
|
return input;
|
|
2682
2717
|
}
|
|
2683
2718
|
}
|
|
2684
|
-
var ProgressCircle =
|
|
2719
|
+
var ProgressCircle = import_react21.default.forwardRef((props, ref) => {
|
|
2685
2720
|
const {
|
|
2686
2721
|
value: inputValue,
|
|
2687
2722
|
size = "md",
|
|
@@ -2701,7 +2736,7 @@ var ProgressCircle = import_react22.default.forwardRef((props, ref) => {
|
|
|
2701
2736
|
const circumference = normalizedRadius * 2 * Math.PI;
|
|
2702
2737
|
const strokeDashoffset = value / 100 * circumference;
|
|
2703
2738
|
const offset = circumference - strokeDashoffset;
|
|
2704
|
-
return /* @__PURE__ */
|
|
2739
|
+
return /* @__PURE__ */ import_react21.default.createElement(import_react21.default.Fragment, null, /* @__PURE__ */ import_react21.default.createElement(
|
|
2705
2740
|
"div",
|
|
2706
2741
|
{
|
|
2707
2742
|
ref,
|
|
@@ -2710,7 +2745,7 @@ var ProgressCircle = import_react22.default.forwardRef((props, ref) => {
|
|
|
2710
2745
|
className
|
|
2711
2746
|
)
|
|
2712
2747
|
},
|
|
2713
|
-
/* @__PURE__ */
|
|
2748
|
+
/* @__PURE__ */ import_react21.default.createElement(
|
|
2714
2749
|
"svg",
|
|
2715
2750
|
{
|
|
2716
2751
|
width: radius * 2,
|
|
@@ -2718,7 +2753,7 @@ var ProgressCircle = import_react22.default.forwardRef((props, ref) => {
|
|
|
2718
2753
|
viewBox: `0 0 ${radius * 2} ${radius * 2}`,
|
|
2719
2754
|
className: "hawa-rotate-180 hawa-transform"
|
|
2720
2755
|
},
|
|
2721
|
-
/* @__PURE__ */
|
|
2756
|
+
/* @__PURE__ */ import_react21.default.createElement(
|
|
2722
2757
|
"circle",
|
|
2723
2758
|
{
|
|
2724
2759
|
r: normalizedRadius,
|
|
@@ -2734,7 +2769,7 @@ var ProgressCircle = import_react22.default.forwardRef((props, ref) => {
|
|
|
2734
2769
|
)
|
|
2735
2770
|
}
|
|
2736
2771
|
),
|
|
2737
|
-
value > 0 ? /* @__PURE__ */
|
|
2772
|
+
value > 0 ? /* @__PURE__ */ import_react21.default.createElement(
|
|
2738
2773
|
"circle",
|
|
2739
2774
|
{
|
|
2740
2775
|
r: normalizedRadius,
|
|
@@ -2754,26 +2789,26 @@ var ProgressCircle = import_react22.default.forwardRef((props, ref) => {
|
|
|
2754
2789
|
}
|
|
2755
2790
|
) : null
|
|
2756
2791
|
),
|
|
2757
|
-
/* @__PURE__ */
|
|
2792
|
+
/* @__PURE__ */ import_react21.default.createElement("div", { className: cn("hawa-absolute hawa-flex") }, children)
|
|
2758
2793
|
));
|
|
2759
2794
|
});
|
|
2760
2795
|
ProgressCircle.displayName = "ProgressCircle";
|
|
2761
2796
|
|
|
2762
2797
|
// components/elements/Pagination.tsx
|
|
2763
|
-
var
|
|
2798
|
+
var import_react22 = __toESM(require("react"));
|
|
2764
2799
|
var import_react_headless_pagination = require("react-headless-pagination");
|
|
2765
2800
|
|
|
2766
2801
|
// components/elements/PasswordInput.tsx
|
|
2767
|
-
var
|
|
2802
|
+
var import_react26 = __toESM(require("react"));
|
|
2768
2803
|
|
|
2769
2804
|
// components/icons/Emojis.tsx
|
|
2770
|
-
var
|
|
2805
|
+
var import_react23 = __toESM(require("react"));
|
|
2771
2806
|
|
|
2772
2807
|
// components/icons/InputIcons.tsx
|
|
2773
|
-
var
|
|
2808
|
+
var import_react24 = __toESM(require("react"));
|
|
2774
2809
|
|
|
2775
2810
|
// components/icons/CommonIcons.tsx
|
|
2776
|
-
var
|
|
2811
|
+
var import_react25 = __toESM(require("react"));
|
|
2777
2812
|
|
|
2778
2813
|
// components/elements/Slider.tsx
|
|
2779
2814
|
var React49 = __toESM(require("react"));
|
|
@@ -2800,71 +2835,28 @@ var import_react_table2 = require("@tanstack/react-table");
|
|
|
2800
2835
|
// components/elements/Separator.tsx
|
|
2801
2836
|
var React51 = __toESM(require("react"));
|
|
2802
2837
|
|
|
2803
|
-
// components/elements/ScrollArea.tsx
|
|
2804
|
-
var React52 = __toESM(require("react"));
|
|
2805
|
-
var ScrollAreaPrimitive = __toESM(require("@radix-ui/react-scroll-area"));
|
|
2806
|
-
var ScrollArea = React52.forwardRef(({ className, children, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React52.createElement(
|
|
2807
|
-
ScrollAreaPrimitive.Root,
|
|
2808
|
-
{
|
|
2809
|
-
ref,
|
|
2810
|
-
className: cn("hawa-relative hawa-overflow-hidden", className),
|
|
2811
|
-
...props
|
|
2812
|
-
},
|
|
2813
|
-
/* @__PURE__ */ React52.createElement(ScrollAreaPrimitive.Viewport, { className: "hawa-h-full hawa-w-full hawa-rounded-[inherit]" }, children),
|
|
2814
|
-
/* @__PURE__ */ React52.createElement(ScrollBar, { orientation }),
|
|
2815
|
-
/* @__PURE__ */ React52.createElement(ScrollAreaPrimitive.Corner, null)
|
|
2816
|
-
));
|
|
2817
|
-
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
|
|
2818
|
-
var ScrollBar = React52.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React52.createElement(
|
|
2819
|
-
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
|
2820
|
-
{
|
|
2821
|
-
ref,
|
|
2822
|
-
orientation,
|
|
2823
|
-
className: cn(
|
|
2824
|
-
"hawa-flex hawa-touch-none hawa-select-none hawa-transition-colors",
|
|
2825
|
-
orientation === "vertical" && "hawa-h-full hawa-w-2.5 hawa-border-l hawa-border-l-transparent hawa-p-[1px]",
|
|
2826
|
-
orientation === "horizontal" && "hawa-h-2.5 hawa-border-t hawa-border-t-transparent hawa-p-[1px]",
|
|
2827
|
-
className
|
|
2828
|
-
),
|
|
2829
|
-
...props
|
|
2830
|
-
},
|
|
2831
|
-
/* @__PURE__ */ React52.createElement(
|
|
2832
|
-
ScrollAreaPrimitive.ScrollAreaThumb,
|
|
2833
|
-
{
|
|
2834
|
-
className: cn(
|
|
2835
|
-
"hawa-relative hawa-rounded-full hawa-bg-border",
|
|
2836
|
-
orientation === "vertical" && "hawa-flex-1"
|
|
2837
|
-
)
|
|
2838
|
-
}
|
|
2839
|
-
)
|
|
2840
|
-
));
|
|
2841
|
-
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
|
2842
|
-
|
|
2843
2838
|
// components/elements/ScrollIndicator.tsx
|
|
2844
|
-
var
|
|
2845
|
-
|
|
2846
|
-
// components/elements/StopPropagationWrapper.tsx
|
|
2847
|
-
var import_react29 = __toESM(require("react"));
|
|
2839
|
+
var import_react27 = __toESM(require("react"));
|
|
2848
2840
|
|
|
2849
2841
|
// components/elements/ColorPicker.tsx
|
|
2850
|
-
var
|
|
2842
|
+
var import_react28 = __toESM(require("react"));
|
|
2851
2843
|
|
|
2852
2844
|
// components/elements/CodeBlock.tsx
|
|
2853
|
-
var
|
|
2845
|
+
var import_react30 = __toESM(require("react"));
|
|
2854
2846
|
var import_prism_react_renderer = require("prism-react-renderer");
|
|
2855
2847
|
|
|
2856
2848
|
// components/hooks/useClipboard.ts
|
|
2857
|
-
var
|
|
2849
|
+
var import_react29 = require("react");
|
|
2858
2850
|
|
|
2859
2851
|
// components/elements/Carousel.tsx
|
|
2860
|
-
var
|
|
2852
|
+
var import_react31 = __toESM(require("react"));
|
|
2861
2853
|
var import_embla_carousel_react = __toESM(require("embla-carousel-react"));
|
|
2862
2854
|
|
|
2863
2855
|
// components/elements/Count.tsx
|
|
2864
|
-
var
|
|
2856
|
+
var import_react32 = __toESM(require("react"));
|
|
2865
2857
|
|
|
2866
2858
|
// components/elements/Toast.tsx
|
|
2867
|
-
var
|
|
2859
|
+
var React57 = __toESM(require("react"));
|
|
2868
2860
|
var ToastPrimitives = __toESM(require("@radix-ui/react-toast"));
|
|
2869
2861
|
var import_class_variance_authority4 = require("class-variance-authority");
|
|
2870
2862
|
var toastVariants = (0, import_class_variance_authority4.cva)(
|
|
@@ -2888,7 +2880,7 @@ var toastVariants = (0, import_class_variance_authority4.cva)(
|
|
|
2888
2880
|
}
|
|
2889
2881
|
}
|
|
2890
2882
|
);
|
|
2891
|
-
var ToastViewport =
|
|
2883
|
+
var ToastViewport = React57.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React57.createElement(
|
|
2892
2884
|
ToastPrimitives.Viewport,
|
|
2893
2885
|
{
|
|
2894
2886
|
ref,
|
|
@@ -2900,8 +2892,8 @@ var ToastViewport = React59.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
2900
2892
|
}
|
|
2901
2893
|
));
|
|
2902
2894
|
ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
|
|
2903
|
-
var Toast =
|
|
2904
|
-
return /* @__PURE__ */
|
|
2895
|
+
var Toast = React57.forwardRef(({ className, variant, severity = "none", direction, ...props }, ref) => {
|
|
2896
|
+
return /* @__PURE__ */ React57.createElement(
|
|
2905
2897
|
ToastPrimitives.Root,
|
|
2906
2898
|
{
|
|
2907
2899
|
ref,
|
|
@@ -2916,8 +2908,8 @@ var Toast = React59.forwardRef(({ className, variant, severity = "none", directi
|
|
|
2916
2908
|
);
|
|
2917
2909
|
});
|
|
2918
2910
|
Toast.displayName = ToastPrimitives.Root.displayName;
|
|
2919
|
-
var ToastAction =
|
|
2920
|
-
return /* @__PURE__ */
|
|
2911
|
+
var ToastAction = React57.forwardRef(({ className, ...props }, ref) => {
|
|
2912
|
+
return /* @__PURE__ */ React57.createElement(
|
|
2921
2913
|
ToastPrimitives.Action,
|
|
2922
2914
|
{
|
|
2923
2915
|
ref,
|
|
@@ -2934,7 +2926,7 @@ var ToastAction = React59.forwardRef(({ className, ...props }, ref) => {
|
|
|
2934
2926
|
);
|
|
2935
2927
|
});
|
|
2936
2928
|
ToastAction.displayName = ToastPrimitives.Action.displayName;
|
|
2937
|
-
var ToastClose =
|
|
2929
|
+
var ToastClose = React57.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React57.createElement(
|
|
2938
2930
|
ToastPrimitives.Close,
|
|
2939
2931
|
{
|
|
2940
2932
|
ref,
|
|
@@ -2945,7 +2937,7 @@ var ToastClose = React59.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
2945
2937
|
"toast-close": "",
|
|
2946
2938
|
...props
|
|
2947
2939
|
},
|
|
2948
|
-
/* @__PURE__ */
|
|
2940
|
+
/* @__PURE__ */ React57.createElement(
|
|
2949
2941
|
"svg",
|
|
2950
2942
|
{
|
|
2951
2943
|
"aria-label": "Close Icon",
|
|
@@ -2954,7 +2946,7 @@ var ToastClose = React59.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
2954
2946
|
fill: "currentColor",
|
|
2955
2947
|
viewBox: "0 0 20 20"
|
|
2956
2948
|
},
|
|
2957
|
-
/* @__PURE__ */
|
|
2949
|
+
/* @__PURE__ */ React57.createElement(
|
|
2958
2950
|
"path",
|
|
2959
2951
|
{
|
|
2960
2952
|
fillRule: "evenodd",
|
|
@@ -2965,7 +2957,7 @@ var ToastClose = React59.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
2965
2957
|
)
|
|
2966
2958
|
));
|
|
2967
2959
|
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
|
2968
|
-
var ToastTitle =
|
|
2960
|
+
var ToastTitle = React57.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React57.createElement(
|
|
2969
2961
|
ToastPrimitives.Title,
|
|
2970
2962
|
{
|
|
2971
2963
|
ref,
|
|
@@ -2977,7 +2969,7 @@ var ToastTitle = React59.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
2977
2969
|
}
|
|
2978
2970
|
));
|
|
2979
2971
|
ToastTitle.displayName = ToastPrimitives.Title.displayName;
|
|
2980
|
-
var ToastDescription =
|
|
2972
|
+
var ToastDescription = React57.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React57.createElement(
|
|
2981
2973
|
ToastPrimitives.Description,
|
|
2982
2974
|
{
|
|
2983
2975
|
ref,
|
|
@@ -2988,25 +2980,16 @@ var ToastDescription = React59.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
2988
2980
|
ToastDescription.displayName = ToastPrimitives.Description.displayName;
|
|
2989
2981
|
|
|
2990
2982
|
// components/elements/Toaster.tsx
|
|
2991
|
-
var
|
|
2983
|
+
var import_react33 = __toESM(require("react"));
|
|
2992
2984
|
|
|
2993
2985
|
// components/hooks/useToast.ts
|
|
2994
|
-
var
|
|
2995
|
-
|
|
2996
|
-
// components/elements/Breadcrumb.tsx
|
|
2997
|
-
var import_react36 = __toESM(require("react"));
|
|
2998
|
-
|
|
2999
|
-
// components/elements/Badge.tsx
|
|
3000
|
-
var import_react37 = __toESM(require("react"));
|
|
3001
|
-
|
|
3002
|
-
// components/elements/AppStores.tsx
|
|
3003
|
-
var import_react38 = __toESM(require("react"));
|
|
2986
|
+
var React58 = __toESM(require("react"));
|
|
3004
2987
|
|
|
3005
2988
|
// components/elements/DestroyableCard.tsx
|
|
3006
|
-
var
|
|
2989
|
+
var import_react34 = __toESM(require("react"));
|
|
3007
2990
|
|
|
3008
2991
|
// components/elements/InterfaceSettings.tsx
|
|
3009
|
-
var
|
|
2992
|
+
var import_react35 = __toESM(require("react"));
|
|
3010
2993
|
|
|
3011
2994
|
// components/layout/Stats.tsx
|
|
3012
2995
|
var Stats = ({
|
|
@@ -3026,7 +3009,7 @@ var Stats = ({
|
|
|
3026
3009
|
negative: "hawa-text-red-600 dark:hawa-text-red-500",
|
|
3027
3010
|
muted: "hawa-text-muted-foreground"
|
|
3028
3011
|
};
|
|
3029
|
-
return /* @__PURE__ */
|
|
3012
|
+
return /* @__PURE__ */ import_react36.default.createElement(Card, { ...props, clickable: Boolean(props.onClick) }, /* @__PURE__ */ import_react36.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-between hawa-p-4" }, /* @__PURE__ */ import_react36.default.createElement(CardTitle, { className: "hawa-text-sm hawa-font-medium" }, label), icon && /* @__PURE__ */ import_react36.default.createElement("span", null, icon)), /* @__PURE__ */ import_react36.default.createElement(CardContent, { className: "hawa-transition-all" }, isLoading ? /* @__PURE__ */ import_react36.default.createElement(Skeleton, { className: "hawa-h-8 hawa-w-3/4" }) : /* @__PURE__ */ import_react36.default.createElement("div", { className: "hawa-text-2xl hawa-font-bold" }, number), helperText && /* @__PURE__ */ import_react36.default.createElement(
|
|
3030
3013
|
"div",
|
|
3031
3014
|
{
|
|
3032
3015
|
className: cn(
|
|
@@ -3035,18 +3018,18 @@ var Stats = ({
|
|
|
3035
3018
|
helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
|
3036
3019
|
)
|
|
3037
3020
|
},
|
|
3038
|
-
isLoading ? /* @__PURE__ */
|
|
3039
|
-
), chart && (isLoading ? /* @__PURE__ */
|
|
3021
|
+
isLoading ? /* @__PURE__ */ import_react36.default.createElement(Skeleton, { className: "hawa-mt-2 hawa-h-4 hawa-w-1/2" }) : helperText
|
|
3022
|
+
), chart && (isLoading ? /* @__PURE__ */ import_react36.default.createElement(Skeleton, { className: "hawa-mt-2 hawa-h-4 hawa-w-1/2" }) : chart)));
|
|
3040
3023
|
};
|
|
3041
3024
|
|
|
3042
3025
|
// components/layout/Sidebar.tsx
|
|
3043
|
-
var
|
|
3026
|
+
var React63 = __toESM(require("react"));
|
|
3044
3027
|
var AccordionPrimitive6 = __toESM(require("@radix-ui/react-accordion"));
|
|
3045
3028
|
var Accordion2 = AccordionPrimitive6.Root;
|
|
3046
3029
|
var triggerStyles = "hawa-flex hawa-flex-1 hawa-items-center hawa-duration-75 hawa-select-none hawa-cursor-pointer hawa-rounded hawa-justify-between hawa-p-2 hawa-px-3 hawa-font-medium hawa-transition-all [&[data-state=open]>svg]:hawa--rotate-90";
|
|
3047
|
-
var AccordionItem2 =
|
|
3030
|
+
var AccordionItem2 = React63.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React63.createElement(AccordionPrimitive6.Item, { ref, className: cn(className), ...props }));
|
|
3048
3031
|
AccordionItem2.displayName = "AccordionItem";
|
|
3049
|
-
var AccordionTrigger2 =
|
|
3032
|
+
var AccordionTrigger2 = React63.forwardRef(({ className, showArrow, children, ...props }, ref) => /* @__PURE__ */ React63.createElement(AccordionPrimitive6.Header, { className: "flex" }, /* @__PURE__ */ React63.createElement(
|
|
3050
3033
|
AccordionPrimitive6.Trigger,
|
|
3051
3034
|
{
|
|
3052
3035
|
ref,
|
|
@@ -3054,7 +3037,7 @@ var AccordionTrigger2 = React68.forwardRef(({ className, showArrow, children, ..
|
|
|
3054
3037
|
...props
|
|
3055
3038
|
},
|
|
3056
3039
|
children,
|
|
3057
|
-
showArrow && /* @__PURE__ */
|
|
3040
|
+
showArrow && /* @__PURE__ */ React63.createElement(
|
|
3058
3041
|
"svg",
|
|
3059
3042
|
{
|
|
3060
3043
|
"aria-label": "Chevron Right Icon",
|
|
@@ -3065,11 +3048,11 @@ var AccordionTrigger2 = React68.forwardRef(({ className, showArrow, children, ..
|
|
|
3065
3048
|
width: "1em",
|
|
3066
3049
|
className: "hawa-icon hawa-shrink-0 hawa-rotate-90 hawa-transition-transform hawa-duration-200"
|
|
3067
3050
|
},
|
|
3068
|
-
/* @__PURE__ */
|
|
3051
|
+
/* @__PURE__ */ React63.createElement("path", { d: "M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z" })
|
|
3069
3052
|
)
|
|
3070
3053
|
)));
|
|
3071
3054
|
AccordionTrigger2.displayName = AccordionPrimitive6.Trigger.displayName;
|
|
3072
|
-
var AccordionContent2 =
|
|
3055
|
+
var AccordionContent2 = React63.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React63.createElement(
|
|
3073
3056
|
AccordionPrimitive6.Content,
|
|
3074
3057
|
{
|
|
3075
3058
|
ref,
|
|
@@ -3079,7 +3062,7 @@ var AccordionContent2 = React68.forwardRef(({ className, children, ...props }, r
|
|
|
3079
3062
|
),
|
|
3080
3063
|
...props
|
|
3081
3064
|
},
|
|
3082
|
-
/* @__PURE__ */
|
|
3065
|
+
/* @__PURE__ */ React63.createElement("div", null, children)
|
|
3083
3066
|
));
|
|
3084
3067
|
AccordionContent2.displayName = AccordionPrimitive6.Content.displayName;
|
|
3085
3068
|
var SidebarGroup = ({
|
|
@@ -3093,7 +3076,7 @@ var SidebarGroup = ({
|
|
|
3093
3076
|
direction,
|
|
3094
3077
|
isOpen
|
|
3095
3078
|
}) => {
|
|
3096
|
-
return /* @__PURE__ */
|
|
3079
|
+
return /* @__PURE__ */ React63.createElement("div", { className: "hawa-m-2" }, title && /* @__PURE__ */ React63.createElement("h3", { className: "hawa-mb-1 hawa-font-bold" }, title), /* @__PURE__ */ React63.createElement("ul", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, /* @__PURE__ */ React63.createElement(
|
|
3097
3080
|
Accordion2,
|
|
3098
3081
|
{
|
|
3099
3082
|
value: openedItem,
|
|
@@ -3104,7 +3087,7 @@ var SidebarGroup = ({
|
|
|
3104
3087
|
collapsible: true,
|
|
3105
3088
|
className: "hawa-flex hawa-flex-col hawa-gap-1"
|
|
3106
3089
|
},
|
|
3107
|
-
items.map((item, idx) => /* @__PURE__ */
|
|
3090
|
+
items.map((item, idx) => /* @__PURE__ */ React63.createElement(
|
|
3108
3091
|
SidebarItem,
|
|
3109
3092
|
{
|
|
3110
3093
|
isOpen,
|
|
@@ -3130,14 +3113,14 @@ var SidebarItem = ({
|
|
|
3130
3113
|
return props.selectedItem === value ? "hawa-bg-primary/90 hawa-text-primary-foreground hawa-cursor-default" : "hover:hawa-bg-primary/10";
|
|
3131
3114
|
};
|
|
3132
3115
|
if (item.subitems) {
|
|
3133
|
-
return /* @__PURE__ */
|
|
3116
|
+
return /* @__PURE__ */ React63.createElement(
|
|
3134
3117
|
AccordionItem2,
|
|
3135
3118
|
{
|
|
3136
3119
|
value: item.value,
|
|
3137
3120
|
className: "hawa-overflow-x-clip ",
|
|
3138
3121
|
dir: direction
|
|
3139
3122
|
},
|
|
3140
|
-
/* @__PURE__ */
|
|
3123
|
+
/* @__PURE__ */ React63.createElement(
|
|
3141
3124
|
AccordionTrigger2,
|
|
3142
3125
|
{
|
|
3143
3126
|
className: cn(
|
|
@@ -3149,7 +3132,7 @@ var SidebarItem = ({
|
|
|
3149
3132
|
),
|
|
3150
3133
|
showArrow: isOpen
|
|
3151
3134
|
},
|
|
3152
|
-
/* @__PURE__ */
|
|
3135
|
+
/* @__PURE__ */ React63.createElement(
|
|
3153
3136
|
"div",
|
|
3154
3137
|
{
|
|
3155
3138
|
className: cn(
|
|
@@ -3157,7 +3140,7 @@ var SidebarItem = ({
|
|
|
3157
3140
|
)
|
|
3158
3141
|
},
|
|
3159
3142
|
item.icon && item.icon,
|
|
3160
|
-
/* @__PURE__ */
|
|
3143
|
+
/* @__PURE__ */ React63.createElement(
|
|
3161
3144
|
"span",
|
|
3162
3145
|
{
|
|
3163
3146
|
className: cn(
|
|
@@ -3169,14 +3152,14 @@ var SidebarItem = ({
|
|
|
3169
3152
|
)
|
|
3170
3153
|
)
|
|
3171
3154
|
),
|
|
3172
|
-
item.subitems && /* @__PURE__ */
|
|
3155
|
+
item.subitems && /* @__PURE__ */ React63.createElement(AccordionContent2, { className: "hawa-mt-1 hawa-h-full hawa-rounded" }, /* @__PURE__ */ React63.createElement(
|
|
3173
3156
|
"div",
|
|
3174
3157
|
{
|
|
3175
3158
|
className: cn(
|
|
3176
3159
|
"hawa-flex hawa-h-full hawa-flex-col hawa-gap-2 hawa-bg-foreground/5 hawa-p-1"
|
|
3177
3160
|
)
|
|
3178
3161
|
},
|
|
3179
|
-
item.subitems.map((subitem, idx) => /* @__PURE__ */
|
|
3162
|
+
item.subitems.map((subitem, idx) => /* @__PURE__ */ React63.createElement(
|
|
3180
3163
|
"a",
|
|
3181
3164
|
{
|
|
3182
3165
|
href: subitem.slug,
|
|
@@ -3207,7 +3190,7 @@ var SidebarItem = ({
|
|
|
3207
3190
|
))
|
|
3208
3191
|
);
|
|
3209
3192
|
} else {
|
|
3210
|
-
return /* @__PURE__ */
|
|
3193
|
+
return /* @__PURE__ */ React63.createElement(
|
|
3211
3194
|
"a",
|
|
3212
3195
|
{
|
|
3213
3196
|
href: item.slug,
|
|
@@ -3231,7 +3214,7 @@ var SidebarItem = ({
|
|
|
3231
3214
|
"hawa-overflow-x-clip "
|
|
3232
3215
|
)
|
|
3233
3216
|
},
|
|
3234
|
-
/* @__PURE__ */
|
|
3217
|
+
/* @__PURE__ */ React63.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2" }, item.icon && item.icon, /* @__PURE__ */ React63.createElement(
|
|
3235
3218
|
"span",
|
|
3236
3219
|
{
|
|
3237
3220
|
className: cn(
|
|
@@ -3241,20 +3224,20 @@ var SidebarItem = ({
|
|
|
3241
3224
|
},
|
|
3242
3225
|
item.label,
|
|
3243
3226
|
" ",
|
|
3244
|
-
item.badge && /* @__PURE__ */
|
|
3227
|
+
item.badge && /* @__PURE__ */ React63.createElement(Chip, { label: item.badge.label, color: "hyper", size: "small" })
|
|
3245
3228
|
))
|
|
3246
3229
|
);
|
|
3247
3230
|
}
|
|
3248
3231
|
};
|
|
3249
3232
|
|
|
3250
3233
|
// components/layout/Copyrights.tsx
|
|
3251
|
-
var
|
|
3234
|
+
var import_react37 = __toESM(require("react"));
|
|
3252
3235
|
var Copyrights = (props) => {
|
|
3253
|
-
return /* @__PURE__ */
|
|
3236
|
+
return /* @__PURE__ */ import_react37.default.createElement("div", { className: "hawa-my-2 hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-gap-1 hawa-text-xs hawa-text-gray-400" }, props.withLogo ? /* @__PURE__ */ import_react37.default.createElement("a", { href: props.onLogoClicked }, /* @__PURE__ */ import_react37.default.createElement("div", { className: "hawa-cursor-pointer" }, /* @__PURE__ */ import_react37.default.createElement("image", { href: props.logoURL, width: 100, height: 50 }))) : null, /* @__PURE__ */ import_react37.default.createElement("div", null, props.version), props.credits ? props.credits : null);
|
|
3254
3237
|
};
|
|
3255
3238
|
|
|
3256
3239
|
// components/layout/Navbar.tsx
|
|
3257
|
-
var
|
|
3240
|
+
var import_react38 = __toESM(require("react"));
|
|
3258
3241
|
|
|
3259
3242
|
// components/elements/Collapsible.tsx
|
|
3260
3243
|
var CollapsiblePrimitive = __toESM(require("@radix-ui/react-collapsible"));
|
|
@@ -3270,14 +3253,14 @@ var Navbar = ({
|
|
|
3270
3253
|
...props
|
|
3271
3254
|
}) => {
|
|
3272
3255
|
var _a, _b;
|
|
3273
|
-
const [isOpen, setIsOpen] = (0,
|
|
3274
|
-
return /* @__PURE__ */
|
|
3256
|
+
const [isOpen, setIsOpen] = (0, import_react38.useState)(false);
|
|
3257
|
+
return /* @__PURE__ */ import_react38.default.createElement("nav", { className: " hawa-sticky hawa-top-2 hawa-transition-all" }, /* @__PURE__ */ import_react38.default.createElement(
|
|
3275
3258
|
Collapsible,
|
|
3276
3259
|
{
|
|
3277
3260
|
className: "hawa-relative hawa-m-2 hawa-rounded hawa-p-2",
|
|
3278
3261
|
style: { backgroundColor: backgroundColor || "#1f2937" }
|
|
3279
3262
|
},
|
|
3280
|
-
/* @__PURE__ */
|
|
3263
|
+
/* @__PURE__ */ import_react38.default.createElement("div", { className: "hawa-flex hawa-items-center hawa-justify-between hawa-px-3 " }, /* @__PURE__ */ import_react38.default.createElement("div", { className: "hawa-flex hawa-items-center" }, /* @__PURE__ */ import_react38.default.createElement(
|
|
3281
3264
|
"div",
|
|
3282
3265
|
{
|
|
3283
3266
|
className: "hawa-p-1.5 hawa-text-xl hawa-font-bold hawa-text-white",
|
|
@@ -3288,7 +3271,7 @@ var Navbar = ({
|
|
|
3288
3271
|
}
|
|
3289
3272
|
},
|
|
3290
3273
|
logo
|
|
3291
|
-
)), /* @__PURE__ */
|
|
3274
|
+
)), /* @__PURE__ */ import_react38.default.createElement("div", { className: "hawa-hidden md:hawa-flex " }, (_a = props.menuItems) == null ? void 0 : _a.map((item, i) => /* @__PURE__ */ import_react38.default.createElement(
|
|
3292
3275
|
"div",
|
|
3293
3276
|
{
|
|
3294
3277
|
key: i,
|
|
@@ -3296,14 +3279,14 @@ var Navbar = ({
|
|
|
3296
3279
|
className: "hawa-cursor-pointer hawa-rounded hawa-p-1.5 hawa-px-2 hawa-text-center hawa-text-sm hawa-text-white hawa-transition-all hover:hawa-bg-gray-300 hover:hawa-text-black"
|
|
3297
3280
|
},
|
|
3298
3281
|
item.label
|
|
3299
|
-
))), /* @__PURE__ */
|
|
3282
|
+
))), /* @__PURE__ */ import_react38.default.createElement("div", { className: "hawa-m-0 hawa-flex hawa-h-fit hawa-p-0 md:hawa-hidden" }, /* @__PURE__ */ import_react38.default.createElement(
|
|
3300
3283
|
CollapsibleTrigger2,
|
|
3301
3284
|
{
|
|
3302
3285
|
onClick: () => setIsOpen(!isOpen),
|
|
3303
3286
|
className: "hawa-h-full hawa-text-white selection:hawa-p-0 ",
|
|
3304
3287
|
"aria-label": "Toggle menu"
|
|
3305
3288
|
},
|
|
3306
|
-
/* @__PURE__ */
|
|
3289
|
+
/* @__PURE__ */ import_react38.default.createElement(
|
|
3307
3290
|
"svg",
|
|
3308
3291
|
{
|
|
3309
3292
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3320,11 +3303,11 @@ var Navbar = ({
|
|
|
3320
3303
|
isOpen ? "hawa-invisible" : "hawa-visible"
|
|
3321
3304
|
)
|
|
3322
3305
|
},
|
|
3323
|
-
/* @__PURE__ */
|
|
3324
|
-
/* @__PURE__ */
|
|
3325
|
-
/* @__PURE__ */
|
|
3306
|
+
/* @__PURE__ */ import_react38.default.createElement("line", { x1: "4", x2: "20", y1: "12", y2: "12" }),
|
|
3307
|
+
/* @__PURE__ */ import_react38.default.createElement("line", { x1: "4", x2: "20", y1: "6", y2: "6" }),
|
|
3308
|
+
/* @__PURE__ */ import_react38.default.createElement("line", { x1: "4", x2: "20", y1: "18", y2: "18" })
|
|
3326
3309
|
),
|
|
3327
|
-
/* @__PURE__ */
|
|
3310
|
+
/* @__PURE__ */ import_react38.default.createElement(
|
|
3328
3311
|
"svg",
|
|
3329
3312
|
{
|
|
3330
3313
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3341,11 +3324,11 @@ var Navbar = ({
|
|
|
3341
3324
|
!isOpen ? "hawa-invisible" : "hawa-visible"
|
|
3342
3325
|
)
|
|
3343
3326
|
},
|
|
3344
|
-
/* @__PURE__ */
|
|
3345
|
-
/* @__PURE__ */
|
|
3327
|
+
/* @__PURE__ */ import_react38.default.createElement("path", { d: "M18 6 6 18" }),
|
|
3328
|
+
/* @__PURE__ */ import_react38.default.createElement("path", { d: "m6 6 12 12" })
|
|
3346
3329
|
)
|
|
3347
3330
|
))),
|
|
3348
|
-
/* @__PURE__ */
|
|
3331
|
+
/* @__PURE__ */ import_react38.default.createElement(
|
|
3349
3332
|
CollapsibleContent2,
|
|
3350
3333
|
{
|
|
3351
3334
|
className: cn(
|
|
@@ -3360,7 +3343,7 @@ var Navbar = ({
|
|
|
3360
3343
|
zIndex: -100
|
|
3361
3344
|
}
|
|
3362
3345
|
},
|
|
3363
|
-
(_b = props.menuItems) == null ? void 0 : _b.map((item, i) => /* @__PURE__ */
|
|
3346
|
+
(_b = props.menuItems) == null ? void 0 : _b.map((item, i) => /* @__PURE__ */ import_react38.default.createElement(
|
|
3364
3347
|
"div",
|
|
3365
3348
|
{
|
|
3366
3349
|
key: i,
|
|
@@ -3374,7 +3357,7 @@ var Navbar = ({
|
|
|
3374
3357
|
};
|
|
3375
3358
|
|
|
3376
3359
|
// components/layout/AppLayout.tsx
|
|
3377
|
-
var
|
|
3360
|
+
var import_react39 = __toESM(require("react"));
|
|
3378
3361
|
var AppLayout = ({
|
|
3379
3362
|
profileMenuWidth = "default",
|
|
3380
3363
|
DrawerFooterActions,
|
|
@@ -3402,13 +3385,13 @@ var AppLayout = ({
|
|
|
3402
3385
|
lg: closeDrawerWidth
|
|
3403
3386
|
}
|
|
3404
3387
|
};
|
|
3405
|
-
const ref = (0,
|
|
3388
|
+
const ref = (0, import_react39.useRef)(null);
|
|
3406
3389
|
const isRTL = direction === "rtl";
|
|
3407
|
-
const [openedSidebarItem, setOpenedSidebarItem] = (0,
|
|
3408
|
-
const [size, setSize] = (0,
|
|
3409
|
-
const [openSideMenu, setOpenSideMenu] = (0,
|
|
3390
|
+
const [openedSidebarItem, setOpenedSidebarItem] = (0, import_react39.useState)("");
|
|
3391
|
+
const [size, setSize] = (0, import_react39.useState)(1200);
|
|
3392
|
+
const [openSideMenu, setOpenSideMenu] = (0, import_react39.useState)(true);
|
|
3410
3393
|
const drawerSizeCondition = size > 600 ? drawerSizeStyle[keepOpen ? "opened" : "closed"][drawerSize] : 0;
|
|
3411
|
-
(0,
|
|
3394
|
+
(0, import_react39.useEffect)(() => {
|
|
3412
3395
|
if (typeof window !== "undefined") {
|
|
3413
3396
|
const resize = () => {
|
|
3414
3397
|
setSize(window.innerWidth);
|
|
@@ -3420,14 +3403,14 @@ var AppLayout = ({
|
|
|
3420
3403
|
};
|
|
3421
3404
|
}
|
|
3422
3405
|
}, []);
|
|
3423
|
-
(0,
|
|
3406
|
+
(0, import_react39.useEffect)(() => {
|
|
3424
3407
|
if (size > 600) {
|
|
3425
3408
|
setOpenSideMenu(keepOpen);
|
|
3426
3409
|
} else {
|
|
3427
3410
|
setOpenSideMenu(false);
|
|
3428
3411
|
}
|
|
3429
3412
|
}, [size]);
|
|
3430
|
-
(0,
|
|
3413
|
+
(0, import_react39.useEffect)(() => {
|
|
3431
3414
|
const handleClickOutside = (event) => {
|
|
3432
3415
|
if (ref.current && !ref.current.contains(event.target) && !keepOpen) {
|
|
3433
3416
|
setOpenSideMenu(false);
|
|
@@ -3438,7 +3421,7 @@ var AppLayout = ({
|
|
|
3438
3421
|
document.removeEventListener("click", handleClickOutside, true);
|
|
3439
3422
|
};
|
|
3440
3423
|
}, [keepOpen]);
|
|
3441
|
-
return /* @__PURE__ */
|
|
3424
|
+
return /* @__PURE__ */ import_react39.default.createElement("div", { className: "hawa-fixed hawa-left-0" }, props.topBar && /* @__PURE__ */ import_react39.default.createElement(
|
|
3442
3425
|
"div",
|
|
3443
3426
|
{
|
|
3444
3427
|
className: cn(
|
|
@@ -3446,7 +3429,7 @@ var AppLayout = ({
|
|
|
3446
3429
|
isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row"
|
|
3447
3430
|
)
|
|
3448
3431
|
},
|
|
3449
|
-
size > 600 ? /* @__PURE__ */
|
|
3432
|
+
size > 600 ? /* @__PURE__ */ import_react39.default.createElement(
|
|
3450
3433
|
"div",
|
|
3451
3434
|
{
|
|
3452
3435
|
className: cn(
|
|
@@ -3468,24 +3451,24 @@ var AppLayout = ({
|
|
|
3468
3451
|
props.pageTitle
|
|
3469
3452
|
) : (
|
|
3470
3453
|
// Mobile Drawer Menu Button
|
|
3471
|
-
/* @__PURE__ */
|
|
3454
|
+
/* @__PURE__ */ import_react39.default.createElement(
|
|
3472
3455
|
"div",
|
|
3473
3456
|
{
|
|
3474
3457
|
dir: direction,
|
|
3475
3458
|
className: "hawa-flex hawa-items-center hawa-justify-center hawa-gap-0.5"
|
|
3476
3459
|
},
|
|
3477
|
-
/* @__PURE__ */
|
|
3460
|
+
/* @__PURE__ */ import_react39.default.createElement(
|
|
3478
3461
|
"div",
|
|
3479
3462
|
{
|
|
3480
3463
|
onClick: () => setOpenSideMenu(true),
|
|
3481
3464
|
className: "hawa-z-40 hawa-mx-1 hawa-cursor-pointer hawa-rounded hawa-p-2 hawa-transition-all hover:hawa-bg-gray-100"
|
|
3482
3465
|
},
|
|
3483
|
-
/* @__PURE__ */
|
|
3466
|
+
/* @__PURE__ */ import_react39.default.createElement(MenuIcon, null)
|
|
3484
3467
|
),
|
|
3485
|
-
props.pageTitle ? /* @__PURE__ */
|
|
3468
|
+
props.pageTitle ? /* @__PURE__ */ import_react39.default.createElement("div", { className: "hawa-text-sm" }, props.pageTitle) : /* @__PURE__ */ import_react39.default.createElement("div", null)
|
|
3486
3469
|
)
|
|
3487
3470
|
),
|
|
3488
|
-
/* @__PURE__ */
|
|
3471
|
+
/* @__PURE__ */ import_react39.default.createElement(
|
|
3489
3472
|
"div",
|
|
3490
3473
|
{
|
|
3491
3474
|
className: cn(
|
|
@@ -3493,16 +3476,16 @@ var AppLayout = ({
|
|
|
3493
3476
|
isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row"
|
|
3494
3477
|
)
|
|
3495
3478
|
},
|
|
3496
|
-
size > 600 ? /* @__PURE__ */
|
|
3479
|
+
size > 600 ? /* @__PURE__ */ import_react39.default.createElement(
|
|
3497
3480
|
"div",
|
|
3498
3481
|
{
|
|
3499
3482
|
className: isRTL ? "hawa-text-left hawa-text-xs" : "hawa-text-right hawa-text-xs"
|
|
3500
3483
|
},
|
|
3501
|
-
/* @__PURE__ */
|
|
3484
|
+
/* @__PURE__ */ import_react39.default.createElement("div", { className: "hawa-font-bold" }, props.username),
|
|
3502
3485
|
" ",
|
|
3503
|
-
/* @__PURE__ */
|
|
3486
|
+
/* @__PURE__ */ import_react39.default.createElement("div", null, props.email)
|
|
3504
3487
|
) : null,
|
|
3505
|
-
/* @__PURE__ */
|
|
3488
|
+
/* @__PURE__ */ import_react39.default.createElement(
|
|
3506
3489
|
DropdownMenu,
|
|
3507
3490
|
{
|
|
3508
3491
|
triggerClassname: "hawa-mx-2",
|
|
@@ -3514,7 +3497,7 @@ var AppLayout = ({
|
|
|
3514
3497
|
direction: isRTL ? "rtl" : "ltr",
|
|
3515
3498
|
items: props.profileMenuItems,
|
|
3516
3499
|
onItemSelect: (e) => console.log("selecting item ", e),
|
|
3517
|
-
trigger: /* @__PURE__ */
|
|
3500
|
+
trigger: /* @__PURE__ */ import_react39.default.createElement("div", { className: "hawa-relative hawa-h-8 hawa-w-8 hawa-cursor-pointer hawa-overflow-clip hawa-rounded hawa-ring-1 hawa-ring-primary/30 dark:hawa-bg-gray-600" }, props.avatarImage ? /* @__PURE__ */ import_react39.default.createElement("img", { src: props.avatarImage, alt: "User Avatar" }) : /* @__PURE__ */ import_react39.default.createElement(
|
|
3518
3501
|
"svg",
|
|
3519
3502
|
{
|
|
3520
3503
|
"aria-label": "Avatar Icon",
|
|
@@ -3522,7 +3505,7 @@ var AppLayout = ({
|
|
|
3522
3505
|
fill: "currentColor",
|
|
3523
3506
|
viewBox: "0 0 20 20"
|
|
3524
3507
|
},
|
|
3525
|
-
/* @__PURE__ */
|
|
3508
|
+
/* @__PURE__ */ import_react39.default.createElement(
|
|
3526
3509
|
"path",
|
|
3527
3510
|
{
|
|
3528
3511
|
fillRule: "evenodd",
|
|
@@ -3534,7 +3517,7 @@ var AppLayout = ({
|
|
|
3534
3517
|
}
|
|
3535
3518
|
)
|
|
3536
3519
|
)
|
|
3537
|
-
), /* @__PURE__ */
|
|
3520
|
+
), /* @__PURE__ */ import_react39.default.createElement(
|
|
3538
3521
|
"div",
|
|
3539
3522
|
{
|
|
3540
3523
|
className: cn(
|
|
@@ -3562,7 +3545,7 @@ var AppLayout = ({
|
|
|
3562
3545
|
},
|
|
3563
3546
|
ref
|
|
3564
3547
|
},
|
|
3565
|
-
/* @__PURE__ */
|
|
3548
|
+
/* @__PURE__ */ import_react39.default.createElement(
|
|
3566
3549
|
"div",
|
|
3567
3550
|
{
|
|
3568
3551
|
onClick: props.onLogoClick,
|
|
@@ -3576,7 +3559,7 @@ var AppLayout = ({
|
|
|
3576
3559
|
}
|
|
3577
3560
|
},
|
|
3578
3561
|
openSideMenu && props.header && props.header,
|
|
3579
|
-
!props.header && /* @__PURE__ */
|
|
3562
|
+
!props.header && /* @__PURE__ */ import_react39.default.createElement(
|
|
3580
3563
|
"img",
|
|
3581
3564
|
{
|
|
3582
3565
|
className: cn(
|
|
@@ -3586,7 +3569,7 @@ var AppLayout = ({
|
|
|
3586
3569
|
src: props.logoLink
|
|
3587
3570
|
}
|
|
3588
3571
|
),
|
|
3589
|
-
size > 600 ? /* @__PURE__ */
|
|
3572
|
+
size > 600 ? /* @__PURE__ */ import_react39.default.createElement(
|
|
3590
3573
|
"img",
|
|
3591
3574
|
{
|
|
3592
3575
|
className: cn(
|
|
@@ -3598,7 +3581,7 @@ var AppLayout = ({
|
|
|
3598
3581
|
}
|
|
3599
3582
|
) : null
|
|
3600
3583
|
),
|
|
3601
|
-
/* @__PURE__ */
|
|
3584
|
+
/* @__PURE__ */ import_react39.default.createElement(
|
|
3602
3585
|
"div",
|
|
3603
3586
|
{
|
|
3604
3587
|
className: cn(
|
|
@@ -3609,7 +3592,7 @@ var AppLayout = ({
|
|
|
3609
3592
|
width: size > 600 ? `${openSideMenu ? openDrawerWidth : drawerSizeCondition}px` : `${openSideMenu ? openDrawerWidth : 0}px`
|
|
3610
3593
|
}
|
|
3611
3594
|
},
|
|
3612
|
-
/* @__PURE__ */
|
|
3595
|
+
/* @__PURE__ */ import_react39.default.createElement(
|
|
3613
3596
|
SidebarGroup,
|
|
3614
3597
|
{
|
|
3615
3598
|
direction,
|
|
@@ -3631,7 +3614,7 @@ var AppLayout = ({
|
|
|
3631
3614
|
}
|
|
3632
3615
|
)
|
|
3633
3616
|
),
|
|
3634
|
-
/* @__PURE__ */
|
|
3617
|
+
/* @__PURE__ */ import_react39.default.createElement(
|
|
3635
3618
|
"div",
|
|
3636
3619
|
{
|
|
3637
3620
|
className: cn(
|
|
@@ -3643,8 +3626,8 @@ var AppLayout = ({
|
|
|
3643
3626
|
width: size > 600 ? `${openSideMenu ? openDrawerWidth : 56}px` : `${openSideMenu ? openDrawerWidth : 0}px`
|
|
3644
3627
|
}
|
|
3645
3628
|
},
|
|
3646
|
-
DrawerFooterActions && openSideMenu ? /* @__PURE__ */
|
|
3647
|
-
size > 600 && openSideMenu ? /* @__PURE__ */
|
|
3629
|
+
DrawerFooterActions && openSideMenu ? /* @__PURE__ */ import_react39.default.createElement(import_react39.default.Fragment, null, DrawerFooterActions) : null,
|
|
3630
|
+
size > 600 && openSideMenu ? /* @__PURE__ */ import_react39.default.createElement(
|
|
3648
3631
|
Tooltip,
|
|
3649
3632
|
{
|
|
3650
3633
|
side: "left",
|
|
@@ -3652,7 +3635,7 @@ var AppLayout = ({
|
|
|
3652
3635
|
content: keepOpen ? ((_a = props.texts) == null ? void 0 : _a.collapseSidebar) || "Collapse Sidebar" : ((_b = props.texts) == null ? void 0 : _b.expandSidebar) || "Expand Sidebar",
|
|
3653
3636
|
triggerProps: { asChild: true }
|
|
3654
3637
|
},
|
|
3655
|
-
/* @__PURE__ */
|
|
3638
|
+
/* @__PURE__ */ import_react39.default.createElement(
|
|
3656
3639
|
Button,
|
|
3657
3640
|
{
|
|
3658
3641
|
variant: "outline",
|
|
@@ -3665,7 +3648,7 @@ var AppLayout = ({
|
|
|
3665
3648
|
},
|
|
3666
3649
|
size: "smallIcon"
|
|
3667
3650
|
},
|
|
3668
|
-
/* @__PURE__ */
|
|
3651
|
+
/* @__PURE__ */ import_react39.default.createElement(
|
|
3669
3652
|
"svg",
|
|
3670
3653
|
{
|
|
3671
3654
|
className: cn(
|
|
@@ -3675,7 +3658,7 @@ var AppLayout = ({
|
|
|
3675
3658
|
fill: "currentColor",
|
|
3676
3659
|
viewBox: "0 0 20 20"
|
|
3677
3660
|
},
|
|
3678
|
-
/* @__PURE__ */
|
|
3661
|
+
/* @__PURE__ */ import_react39.default.createElement(
|
|
3679
3662
|
"path",
|
|
3680
3663
|
{
|
|
3681
3664
|
fillRule: "evenodd",
|
|
@@ -3687,7 +3670,7 @@ var AppLayout = ({
|
|
|
3687
3670
|
)
|
|
3688
3671
|
) : null
|
|
3689
3672
|
)
|
|
3690
|
-
), /* @__PURE__ */
|
|
3673
|
+
), /* @__PURE__ */ import_react39.default.createElement(
|
|
3691
3674
|
"div",
|
|
3692
3675
|
{
|
|
3693
3676
|
className: "hawa-fixed -hawa-z-10 hawa-overflow-y-auto hawa-transition-all",
|
|
@@ -3706,7 +3689,7 @@ var AppLayout = ({
|
|
|
3706
3689
|
props.children
|
|
3707
3690
|
));
|
|
3708
3691
|
};
|
|
3709
|
-
var MenuIcon = () => /* @__PURE__ */
|
|
3692
|
+
var MenuIcon = () => /* @__PURE__ */ import_react39.default.createElement(
|
|
3710
3693
|
"svg",
|
|
3711
3694
|
{
|
|
3712
3695
|
"aria-label": "Menu Button",
|
|
@@ -3718,7 +3701,7 @@ var MenuIcon = () => /* @__PURE__ */ import_react44.default.createElement(
|
|
|
3718
3701
|
height: "1.6em",
|
|
3719
3702
|
width: "1.6em"
|
|
3720
3703
|
},
|
|
3721
|
-
/* @__PURE__ */
|
|
3704
|
+
/* @__PURE__ */ import_react39.default.createElement(
|
|
3722
3705
|
"path",
|
|
3723
3706
|
{
|
|
3724
3707
|
fillRule: "evenodd",
|
|
@@ -3729,11 +3712,11 @@ var MenuIcon = () => /* @__PURE__ */ import_react44.default.createElement(
|
|
|
3729
3712
|
);
|
|
3730
3713
|
|
|
3731
3714
|
// components/layout/AppTopbar.tsx
|
|
3732
|
-
var
|
|
3715
|
+
var import_react40 = __toESM(require("react"));
|
|
3733
3716
|
var AppTopbar = ({ ...props }) => {
|
|
3734
3717
|
const isRTL = props.direction === "ltr";
|
|
3735
3718
|
const size = 1200;
|
|
3736
|
-
return /* @__PURE__ */
|
|
3719
|
+
return /* @__PURE__ */ import_react40.default.createElement(
|
|
3737
3720
|
"div",
|
|
3738
3721
|
{
|
|
3739
3722
|
className: cn(
|
|
@@ -3741,24 +3724,24 @@ var AppTopbar = ({ ...props }) => {
|
|
|
3741
3724
|
isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row"
|
|
3742
3725
|
)
|
|
3743
3726
|
},
|
|
3744
|
-
size > 600 ? /* @__PURE__ */
|
|
3727
|
+
size > 600 ? /* @__PURE__ */ import_react40.default.createElement(
|
|
3745
3728
|
"div",
|
|
3746
3729
|
null,
|
|
3747
3730
|
"page title"
|
|
3748
3731
|
) : (
|
|
3749
3732
|
// Mobile Drawer Menu Button
|
|
3750
|
-
/* @__PURE__ */
|
|
3733
|
+
/* @__PURE__ */ import_react40.default.createElement(
|
|
3751
3734
|
"div",
|
|
3752
3735
|
{
|
|
3753
3736
|
dir: props.direction,
|
|
3754
3737
|
className: "hawa-flex hawa-items-center hawa-justify-center hawa-gap-0.5"
|
|
3755
3738
|
},
|
|
3756
|
-
/* @__PURE__ */
|
|
3739
|
+
/* @__PURE__ */ import_react40.default.createElement(
|
|
3757
3740
|
"div",
|
|
3758
3741
|
{
|
|
3759
3742
|
className: "hawa-z-40 hawa-mx-1 hawa-cursor-pointer hawa-rounded hawa-p-2 hawa-transition-all hover:hawa-bg-gray-100"
|
|
3760
3743
|
},
|
|
3761
|
-
/* @__PURE__ */
|
|
3744
|
+
/* @__PURE__ */ import_react40.default.createElement(
|
|
3762
3745
|
"svg",
|
|
3763
3746
|
{
|
|
3764
3747
|
stroke: "currentColor",
|
|
@@ -3769,7 +3752,7 @@ var AppTopbar = ({ ...props }) => {
|
|
|
3769
3752
|
height: "1.6em",
|
|
3770
3753
|
width: "1.6em"
|
|
3771
3754
|
},
|
|
3772
|
-
/* @__PURE__ */
|
|
3755
|
+
/* @__PURE__ */ import_react40.default.createElement(
|
|
3773
3756
|
"path",
|
|
3774
3757
|
{
|
|
3775
3758
|
fillRule: "evenodd",
|
|
@@ -3782,7 +3765,7 @@ var AppTopbar = ({ ...props }) => {
|
|
|
3782
3765
|
"Mobile title"
|
|
3783
3766
|
)
|
|
3784
3767
|
),
|
|
3785
|
-
/* @__PURE__ */
|
|
3768
|
+
/* @__PURE__ */ import_react40.default.createElement(
|
|
3786
3769
|
"div",
|
|
3787
3770
|
{
|
|
3788
3771
|
className: cn(
|
|
@@ -3790,16 +3773,16 @@ var AppTopbar = ({ ...props }) => {
|
|
|
3790
3773
|
isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row"
|
|
3791
3774
|
)
|
|
3792
3775
|
},
|
|
3793
|
-
size > 600 ? /* @__PURE__ */
|
|
3776
|
+
size > 600 ? /* @__PURE__ */ import_react40.default.createElement(
|
|
3794
3777
|
"div",
|
|
3795
3778
|
{
|
|
3796
3779
|
className: isRTL ? "hawa-text-left hawa-text-xs" : "hawa-text-right hawa-text-xs"
|
|
3797
3780
|
},
|
|
3798
|
-
/* @__PURE__ */
|
|
3781
|
+
/* @__PURE__ */ import_react40.default.createElement("div", { className: "hawa-font-bold" }, props.username),
|
|
3799
3782
|
" ",
|
|
3800
|
-
/* @__PURE__ */
|
|
3783
|
+
/* @__PURE__ */ import_react40.default.createElement("div", null, props.email)
|
|
3801
3784
|
) : null,
|
|
3802
|
-
/* @__PURE__ */
|
|
3785
|
+
/* @__PURE__ */ import_react40.default.createElement(
|
|
3803
3786
|
DropdownMenu,
|
|
3804
3787
|
{
|
|
3805
3788
|
triggerClassname: "hawa-mx-2",
|
|
@@ -3810,7 +3793,7 @@ var AppTopbar = ({ ...props }) => {
|
|
|
3810
3793
|
direction: isRTL ? "rtl" : "ltr",
|
|
3811
3794
|
items: props.profileMenuItems,
|
|
3812
3795
|
onItemSelect: (e) => console.log("selecting item ", e),
|
|
3813
|
-
trigger: /* @__PURE__ */
|
|
3796
|
+
trigger: /* @__PURE__ */ import_react40.default.createElement("div", { className: "hawa-relative hawa-h-8 hawa-w-8 hawa-cursor-pointer hawa-overflow-clip hawa-rounded hawa-ring-1 hawa-ring-primary/30 dark:hawa-bg-gray-600" }, props.avatarImage ? /* @__PURE__ */ import_react40.default.createElement("img", { src: props.avatarImage, alt: "User Avatar" }) : /* @__PURE__ */ import_react40.default.createElement(
|
|
3814
3797
|
"svg",
|
|
3815
3798
|
{
|
|
3816
3799
|
"aria-label": "Avatar Icon",
|
|
@@ -3818,7 +3801,7 @@ var AppTopbar = ({ ...props }) => {
|
|
|
3818
3801
|
fill: "currentColor",
|
|
3819
3802
|
viewBox: "0 0 20 20"
|
|
3820
3803
|
},
|
|
3821
|
-
/* @__PURE__ */
|
|
3804
|
+
/* @__PURE__ */ import_react40.default.createElement(
|
|
3822
3805
|
"path",
|
|
3823
3806
|
{
|
|
3824
3807
|
fillRule: "evenodd",
|
|
@@ -3834,14 +3817,14 @@ var AppTopbar = ({ ...props }) => {
|
|
|
3834
3817
|
};
|
|
3835
3818
|
|
|
3836
3819
|
// components/layout/AppMenubar.tsx
|
|
3837
|
-
var
|
|
3820
|
+
var React68 = __toESM(require("react"));
|
|
3838
3821
|
var MenubarPrimitive = __toESM(require("@radix-ui/react-menubar"));
|
|
3839
3822
|
var MenubarMenu = MenubarPrimitive.Menu;
|
|
3840
3823
|
var MenubarGroup = MenubarPrimitive.Group;
|
|
3841
3824
|
var MenubarPortal = MenubarPrimitive.Portal;
|
|
3842
3825
|
var MenubarSub = MenubarPrimitive.Sub;
|
|
3843
3826
|
var MenubarRadioGroup = MenubarPrimitive.RadioGroup;
|
|
3844
|
-
var Menubar =
|
|
3827
|
+
var Menubar = React68.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React68.createElement(
|
|
3845
3828
|
MenubarPrimitive.Root,
|
|
3846
3829
|
{
|
|
3847
3830
|
ref,
|
|
@@ -3853,7 +3836,7 @@ var Menubar = React73.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
3853
3836
|
}
|
|
3854
3837
|
));
|
|
3855
3838
|
Menubar.displayName = MenubarPrimitive.Root.displayName;
|
|
3856
|
-
var MenubarTrigger =
|
|
3839
|
+
var MenubarTrigger = React68.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React68.createElement(
|
|
3857
3840
|
MenubarPrimitive.Trigger,
|
|
3858
3841
|
{
|
|
3859
3842
|
ref,
|
|
@@ -3865,7 +3848,7 @@ var MenubarTrigger = React73.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
3865
3848
|
}
|
|
3866
3849
|
));
|
|
3867
3850
|
MenubarTrigger.displayName = MenubarPrimitive.Trigger.displayName;
|
|
3868
|
-
var MenubarSubTrigger =
|
|
3851
|
+
var MenubarSubTrigger = React68.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ React68.createElement(
|
|
3869
3852
|
MenubarPrimitive.SubTrigger,
|
|
3870
3853
|
{
|
|
3871
3854
|
ref,
|
|
@@ -3877,7 +3860,7 @@ var MenubarSubTrigger = React73.forwardRef(({ className, inset, children, ...pro
|
|
|
3877
3860
|
...props
|
|
3878
3861
|
},
|
|
3879
3862
|
children,
|
|
3880
|
-
/* @__PURE__ */
|
|
3863
|
+
/* @__PURE__ */ React68.createElement(
|
|
3881
3864
|
"svg",
|
|
3882
3865
|
{
|
|
3883
3866
|
"aria-label": "Chevron Right Icon",
|
|
@@ -3892,11 +3875,11 @@ var MenubarSubTrigger = React73.forwardRef(({ className, inset, children, ...pro
|
|
|
3892
3875
|
strokeLinejoin: "round",
|
|
3893
3876
|
className: "hawa-icon hawa-ml-auto"
|
|
3894
3877
|
},
|
|
3895
|
-
/* @__PURE__ */
|
|
3878
|
+
/* @__PURE__ */ React68.createElement("path", { d: "m9 18 6-6-6-6" })
|
|
3896
3879
|
)
|
|
3897
3880
|
));
|
|
3898
3881
|
MenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName;
|
|
3899
|
-
var MenubarSubContent =
|
|
3882
|
+
var MenubarSubContent = React68.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React68.createElement(
|
|
3900
3883
|
MenubarPrimitive.SubContent,
|
|
3901
3884
|
{
|
|
3902
3885
|
ref,
|
|
@@ -3908,8 +3891,8 @@ var MenubarSubContent = React73.forwardRef(({ className, ...props }, ref) => /*
|
|
|
3908
3891
|
}
|
|
3909
3892
|
));
|
|
3910
3893
|
MenubarSubContent.displayName = MenubarPrimitive.SubContent.displayName;
|
|
3911
|
-
var MenubarContent =
|
|
3912
|
-
({ className, align = "start", alignOffset = -4, sideOffset = 8, ...props }, ref) => /* @__PURE__ */
|
|
3894
|
+
var MenubarContent = React68.forwardRef(
|
|
3895
|
+
({ className, align = "start", alignOffset = -4, sideOffset = 8, ...props }, ref) => /* @__PURE__ */ React68.createElement(MenubarPrimitive.Portal, null, /* @__PURE__ */ React68.createElement(
|
|
3913
3896
|
MenubarPrimitive.Content,
|
|
3914
3897
|
{
|
|
3915
3898
|
ref,
|
|
@@ -3925,7 +3908,7 @@ var MenubarContent = React73.forwardRef(
|
|
|
3925
3908
|
))
|
|
3926
3909
|
);
|
|
3927
3910
|
MenubarContent.displayName = MenubarPrimitive.Content.displayName;
|
|
3928
|
-
var MenubarItem =
|
|
3911
|
+
var MenubarItem = React68.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ React68.createElement(
|
|
3929
3912
|
MenubarPrimitive.Item,
|
|
3930
3913
|
{
|
|
3931
3914
|
ref,
|
|
@@ -3938,7 +3921,7 @@ var MenubarItem = React73.forwardRef(({ className, inset, ...props }, ref) => /*
|
|
|
3938
3921
|
}
|
|
3939
3922
|
));
|
|
3940
3923
|
MenubarItem.displayName = MenubarPrimitive.Item.displayName;
|
|
3941
|
-
var MenubarCheckboxItem =
|
|
3924
|
+
var MenubarCheckboxItem = React68.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ React68.createElement(
|
|
3942
3925
|
MenubarPrimitive.CheckboxItem,
|
|
3943
3926
|
{
|
|
3944
3927
|
ref,
|
|
@@ -3949,7 +3932,7 @@ var MenubarCheckboxItem = React73.forwardRef(({ className, children, checked, ..
|
|
|
3949
3932
|
checked,
|
|
3950
3933
|
...props
|
|
3951
3934
|
},
|
|
3952
|
-
/* @__PURE__ */
|
|
3935
|
+
/* @__PURE__ */ React68.createElement("span", { className: "hawa-absolute hawa-left-2 hawa-flex hawa-h-3.5 hawa-w-3.5 hawa-items-center hawa-justify-center" }, /* @__PURE__ */ React68.createElement(MenubarPrimitive.ItemIndicator, null, /* @__PURE__ */ React68.createElement(
|
|
3953
3936
|
"svg",
|
|
3954
3937
|
{
|
|
3955
3938
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3963,12 +3946,12 @@ var MenubarCheckboxItem = React73.forwardRef(({ className, children, checked, ..
|
|
|
3963
3946
|
strokeLinejoin: "round",
|
|
3964
3947
|
className: "hawa-icon"
|
|
3965
3948
|
},
|
|
3966
|
-
/* @__PURE__ */
|
|
3949
|
+
/* @__PURE__ */ React68.createElement("path", { d: "M20 6 9 17l-5-5" })
|
|
3967
3950
|
))),
|
|
3968
3951
|
children
|
|
3969
3952
|
));
|
|
3970
3953
|
MenubarCheckboxItem.displayName = MenubarPrimitive.CheckboxItem.displayName;
|
|
3971
|
-
var MenubarRadioItem =
|
|
3954
|
+
var MenubarRadioItem = React68.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React68.createElement(
|
|
3972
3955
|
MenubarPrimitive.RadioItem,
|
|
3973
3956
|
{
|
|
3974
3957
|
ref,
|
|
@@ -3978,7 +3961,7 @@ var MenubarRadioItem = React73.forwardRef(({ className, children, ...props }, re
|
|
|
3978
3961
|
),
|
|
3979
3962
|
...props
|
|
3980
3963
|
},
|
|
3981
|
-
/* @__PURE__ */
|
|
3964
|
+
/* @__PURE__ */ React68.createElement("span", { className: "hawa-absolute hawa-left-2 hawa-flex hawa-h-3.5 hawa-w-3.5 hawa-items-center hawa-justify-center" }, /* @__PURE__ */ React68.createElement(MenubarPrimitive.ItemIndicator, null, /* @__PURE__ */ React68.createElement(
|
|
3982
3965
|
"svg",
|
|
3983
3966
|
{
|
|
3984
3967
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3992,12 +3975,12 @@ var MenubarRadioItem = React73.forwardRef(({ className, children, ...props }, re
|
|
|
3992
3975
|
strokeLinejoin: "round",
|
|
3993
3976
|
className: "hawa-h-2 hawa-w-2 hawa-fill-current"
|
|
3994
3977
|
},
|
|
3995
|
-
/* @__PURE__ */
|
|
3978
|
+
/* @__PURE__ */ React68.createElement("circle", { cx: "12", cy: "12", r: "10" })
|
|
3996
3979
|
))),
|
|
3997
3980
|
children
|
|
3998
3981
|
));
|
|
3999
3982
|
MenubarRadioItem.displayName = MenubarPrimitive.RadioItem.displayName;
|
|
4000
|
-
var MenubarLabel =
|
|
3983
|
+
var MenubarLabel = React68.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ React68.createElement(
|
|
4001
3984
|
MenubarPrimitive.Label,
|
|
4002
3985
|
{
|
|
4003
3986
|
ref,
|
|
@@ -4010,7 +3993,7 @@ var MenubarLabel = React73.forwardRef(({ className, inset, ...props }, ref) => /
|
|
|
4010
3993
|
}
|
|
4011
3994
|
));
|
|
4012
3995
|
MenubarLabel.displayName = MenubarPrimitive.Label.displayName;
|
|
4013
|
-
var MenubarSeparator =
|
|
3996
|
+
var MenubarSeparator = React68.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React68.createElement(
|
|
4014
3997
|
MenubarPrimitive.Separator,
|
|
4015
3998
|
{
|
|
4016
3999
|
ref,
|
|
@@ -4023,7 +4006,7 @@ var MenubarShortcut = ({
|
|
|
4023
4006
|
className,
|
|
4024
4007
|
...props
|
|
4025
4008
|
}) => {
|
|
4026
|
-
return /* @__PURE__ */
|
|
4009
|
+
return /* @__PURE__ */ React68.createElement(
|
|
4027
4010
|
"span",
|
|
4028
4011
|
{
|
|
4029
4012
|
className: cn(
|
|
@@ -4037,12 +4020,12 @@ var MenubarShortcut = ({
|
|
|
4037
4020
|
MenubarShortcut.displayname = "MenubarShortcut";
|
|
4038
4021
|
|
|
4039
4022
|
// components/layout/AppTabs.tsx
|
|
4040
|
-
var
|
|
4023
|
+
var import_react41 = __toESM(require("react"));
|
|
4041
4024
|
var AppTabs = ({ tabs, ...props }) => {
|
|
4042
|
-
const [selectedIndex, setSelectedIndex] = (0,
|
|
4043
|
-
return /* @__PURE__ */
|
|
4025
|
+
const [selectedIndex, setSelectedIndex] = (0, import_react41.useState)(0);
|
|
4026
|
+
return /* @__PURE__ */ import_react41.default.createElement("div", { className: "hawa-w-full hawa-border-b hawa-bg-gray-100 hawa-p-6 hawa-pb-0 dark:hawa-bg-gray-900 " }, /* @__PURE__ */ import_react41.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-center " }, tabs.map((tab, index) => {
|
|
4044
4027
|
const selected = index === selectedIndex;
|
|
4045
|
-
return /* @__PURE__ */
|
|
4028
|
+
return /* @__PURE__ */ import_react41.default.createElement(
|
|
4046
4029
|
AppSingleTab,
|
|
4047
4030
|
{
|
|
4048
4031
|
key: index,
|
|
@@ -4054,7 +4037,7 @@ var AppTabs = ({ tabs, ...props }) => {
|
|
|
4054
4037
|
})));
|
|
4055
4038
|
};
|
|
4056
4039
|
var AppSingleTab = ({ tab, ...props }) => {
|
|
4057
|
-
return /* @__PURE__ */
|
|
4040
|
+
return /* @__PURE__ */ import_react41.default.createElement(
|
|
4058
4041
|
"div",
|
|
4059
4042
|
{
|
|
4060
4043
|
key: props.key,
|
|
@@ -4072,13 +4055,13 @@ var AppSingleTab = ({ tab, ...props }) => {
|
|
|
4072
4055
|
};
|
|
4073
4056
|
|
|
4074
4057
|
// components/layout/DocsLayout.tsx
|
|
4075
|
-
var
|
|
4058
|
+
var import_react44 = __toESM(require("react"));
|
|
4076
4059
|
|
|
4077
4060
|
// components/hooks/useBreakpoint.ts
|
|
4078
|
-
var
|
|
4061
|
+
var import_react42 = require("react");
|
|
4079
4062
|
var useBreakpoint = () => {
|
|
4080
|
-
const [breakpoint, setBreakpoint] = (0,
|
|
4081
|
-
(0,
|
|
4063
|
+
const [breakpoint, setBreakpoint] = (0, import_react42.useState)(null);
|
|
4064
|
+
(0, import_react42.useEffect)(() => {
|
|
4082
4065
|
if (typeof window !== "undefined") {
|
|
4083
4066
|
const resize = () => {
|
|
4084
4067
|
setBreakpoint(window.innerWidth);
|
|
@@ -4094,13 +4077,13 @@ var useBreakpoint = () => {
|
|
|
4094
4077
|
};
|
|
4095
4078
|
|
|
4096
4079
|
// components/layout/DocsSidebar.tsx
|
|
4097
|
-
var
|
|
4080
|
+
var import_react43 = __toESM(require("react"));
|
|
4098
4081
|
var DocsSidebar = ({
|
|
4099
4082
|
currentPage: propCurrentPage,
|
|
4100
4083
|
pages,
|
|
4101
4084
|
direction
|
|
4102
4085
|
}) => {
|
|
4103
|
-
const [activePage, setActivePage] =
|
|
4086
|
+
const [activePage, setActivePage] = import_react43.default.useState(pages[0]);
|
|
4104
4087
|
const handlePageClick = (page, event) => {
|
|
4105
4088
|
event.preventDefault();
|
|
4106
4089
|
setTimeout(() => {
|
|
@@ -4122,7 +4105,7 @@ var DocsSidebar = ({
|
|
|
4122
4105
|
}
|
|
4123
4106
|
return pages[0];
|
|
4124
4107
|
};
|
|
4125
|
-
|
|
4108
|
+
import_react43.default.useEffect(() => {
|
|
4126
4109
|
const handleScroll = () => {
|
|
4127
4110
|
setActivePage(getCurrentSection());
|
|
4128
4111
|
};
|
|
@@ -4135,13 +4118,13 @@ var DocsSidebar = ({
|
|
|
4135
4118
|
rtl: "hawa-border-r-4 hawa-border-primary hawa-border-collapse hawa-bg-gray-200",
|
|
4136
4119
|
ltr: "hawa-border-l-4 hawa-border-primary hawa-border-collapse hawa-bg-gray-200"
|
|
4137
4120
|
};
|
|
4138
|
-
return /* @__PURE__ */
|
|
4121
|
+
return /* @__PURE__ */ import_react43.default.createElement(
|
|
4139
4122
|
"div",
|
|
4140
4123
|
{
|
|
4141
4124
|
className: "hawa-flex hawa-flex-col hawa-overflow-x-clip",
|
|
4142
4125
|
dir: direction
|
|
4143
4126
|
},
|
|
4144
|
-
pages.map((page, index) => /* @__PURE__ */
|
|
4127
|
+
pages.map((page, index) => /* @__PURE__ */ import_react43.default.createElement(
|
|
4145
4128
|
"div",
|
|
4146
4129
|
{
|
|
4147
4130
|
key: index,
|
|
@@ -4181,15 +4164,15 @@ var DocsLayout = ({
|
|
|
4181
4164
|
lg: closeDrawerWidth
|
|
4182
4165
|
}
|
|
4183
4166
|
};
|
|
4184
|
-
const ref = (0,
|
|
4167
|
+
const ref = (0, import_react44.useRef)(null);
|
|
4185
4168
|
const isRTL = direction === "rtl";
|
|
4186
4169
|
let size = useBreakpoint();
|
|
4187
4170
|
if (typeof window == "undefined") {
|
|
4188
4171
|
size = 1200;
|
|
4189
4172
|
}
|
|
4190
|
-
const [currentPage, setCurrentPage] = (0,
|
|
4191
|
-
const [openSideMenu, setOpenSideMenu] = (0,
|
|
4192
|
-
(0,
|
|
4173
|
+
const [currentPage, setCurrentPage] = (0, import_react44.useState)("Introduction");
|
|
4174
|
+
const [openSideMenu, setOpenSideMenu] = (0, import_react44.useState)(true);
|
|
4175
|
+
(0, import_react44.useEffect)(() => {
|
|
4193
4176
|
const handleClickOutside = (event) => {
|
|
4194
4177
|
if (ref.current && !ref.current.contains(event.target) && !openSideMenu) {
|
|
4195
4178
|
setOpenSideMenu(false);
|
|
@@ -4200,7 +4183,7 @@ var DocsLayout = ({
|
|
|
4200
4183
|
document.removeEventListener("click", handleClickOutside, true);
|
|
4201
4184
|
};
|
|
4202
4185
|
}, [openSideMenu]);
|
|
4203
|
-
(0,
|
|
4186
|
+
(0, import_react44.useEffect)(() => {
|
|
4204
4187
|
const handleResize = () => {
|
|
4205
4188
|
setOpenSideMenu(window.innerWidth > 600 ? true : false);
|
|
4206
4189
|
};
|
|
@@ -4210,19 +4193,19 @@ var DocsLayout = ({
|
|
|
4210
4193
|
window.removeEventListener("resize", handleResize);
|
|
4211
4194
|
};
|
|
4212
4195
|
}, [keepOpen]);
|
|
4213
|
-
const observerRef =
|
|
4196
|
+
const observerRef = import_react44.default.useRef(null);
|
|
4214
4197
|
const handleIntersection = (entries) => {
|
|
4215
4198
|
const entry = entries.find((entry2) => entry2.isIntersecting);
|
|
4216
4199
|
if (entry) {
|
|
4217
4200
|
setCurrentPage(entry.target.id);
|
|
4218
4201
|
}
|
|
4219
4202
|
};
|
|
4220
|
-
(0,
|
|
4203
|
+
(0, import_react44.useEffect)(() => {
|
|
4221
4204
|
observerRef.current = new IntersectionObserver(handleIntersection, {
|
|
4222
4205
|
threshold: 0.5
|
|
4223
4206
|
// Adjust threshold as needed to determine when a section is in view
|
|
4224
4207
|
});
|
|
4225
|
-
|
|
4208
|
+
import_react44.default.Children.forEach(props.children, (child) => {
|
|
4226
4209
|
if (child && child.props.id) {
|
|
4227
4210
|
const element = document.getElementById(child.props.id);
|
|
4228
4211
|
if (element && observerRef.current) {
|
|
@@ -4237,7 +4220,7 @@ var DocsLayout = ({
|
|
|
4237
4220
|
};
|
|
4238
4221
|
}, [props.children]);
|
|
4239
4222
|
let drawerSizeCondition = drawerSizeStyle[openSideMenu ? "opened" : "closed"][drawerSize];
|
|
4240
|
-
return /* @__PURE__ */
|
|
4223
|
+
return /* @__PURE__ */ import_react44.default.createElement("div", { className: "hawa-fixed" }, /* @__PURE__ */ import_react44.default.createElement(
|
|
4241
4224
|
"div",
|
|
4242
4225
|
{
|
|
4243
4226
|
className: cn(
|
|
@@ -4245,7 +4228,7 @@ var DocsLayout = ({
|
|
|
4245
4228
|
isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row"
|
|
4246
4229
|
)
|
|
4247
4230
|
},
|
|
4248
|
-
size > 600 ? /* @__PURE__ */
|
|
4231
|
+
size > 600 ? /* @__PURE__ */ import_react44.default.createElement("div", { onClick: props.onLogoClick, dir: direction }, /* @__PURE__ */ import_react44.default.createElement(
|
|
4249
4232
|
"img",
|
|
4250
4233
|
{
|
|
4251
4234
|
className: cn(
|
|
@@ -4256,18 +4239,18 @@ var DocsLayout = ({
|
|
|
4256
4239
|
}
|
|
4257
4240
|
)) : (
|
|
4258
4241
|
// Mobile Drawer Menu Button
|
|
4259
|
-
/* @__PURE__ */
|
|
4242
|
+
/* @__PURE__ */ import_react44.default.createElement(
|
|
4260
4243
|
"div",
|
|
4261
4244
|
{
|
|
4262
4245
|
dir: direction,
|
|
4263
4246
|
className: "hawa-flex hawa-items-center hawa-justify-center hawa-gap-0.5"
|
|
4264
4247
|
},
|
|
4265
|
-
/* @__PURE__ */
|
|
4248
|
+
/* @__PURE__ */ import_react44.default.createElement(Sheet, null, /* @__PURE__ */ import_react44.default.createElement(SheetTrigger, null, " ", /* @__PURE__ */ import_react44.default.createElement(
|
|
4266
4249
|
"div",
|
|
4267
4250
|
{
|
|
4268
4251
|
className: "hawa-z-40 hawa-mx-1 hawa-cursor-pointer hawa-rounded hawa-p-2 hawa-transition-all hover:hawa-bg-gray-100"
|
|
4269
4252
|
},
|
|
4270
|
-
/* @__PURE__ */
|
|
4253
|
+
/* @__PURE__ */ import_react44.default.createElement(
|
|
4271
4254
|
"svg",
|
|
4272
4255
|
{
|
|
4273
4256
|
"aria-label": "Menu Icon",
|
|
@@ -4279,7 +4262,7 @@ var DocsLayout = ({
|
|
|
4279
4262
|
height: "1.6em",
|
|
4280
4263
|
width: "1.6em"
|
|
4281
4264
|
},
|
|
4282
|
-
/* @__PURE__ */
|
|
4265
|
+
/* @__PURE__ */ import_react44.default.createElement(
|
|
4283
4266
|
"path",
|
|
4284
4267
|
{
|
|
4285
4268
|
fillRule: "evenodd",
|
|
@@ -4288,17 +4271,17 @@ var DocsLayout = ({
|
|
|
4288
4271
|
}
|
|
4289
4272
|
)
|
|
4290
4273
|
)
|
|
4291
|
-
)), /* @__PURE__ */
|
|
4274
|
+
)), /* @__PURE__ */ import_react44.default.createElement(
|
|
4292
4275
|
SheetContent,
|
|
4293
4276
|
{
|
|
4294
4277
|
side: isRTL ? "right" : "left",
|
|
4295
4278
|
className: "hawa-pt-10"
|
|
4296
4279
|
},
|
|
4297
|
-
/* @__PURE__ */
|
|
4280
|
+
/* @__PURE__ */ import_react44.default.createElement(DocsSidebar, { direction, pages: pages || [] })
|
|
4298
4281
|
))
|
|
4299
4282
|
)
|
|
4300
4283
|
),
|
|
4301
|
-
/* @__PURE__ */
|
|
4284
|
+
/* @__PURE__ */ import_react44.default.createElement(
|
|
4302
4285
|
"div",
|
|
4303
4286
|
{
|
|
4304
4287
|
className: cn(
|
|
@@ -4306,9 +4289,9 @@ var DocsLayout = ({
|
|
|
4306
4289
|
isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row"
|
|
4307
4290
|
)
|
|
4308
4291
|
},
|
|
4309
|
-
/* @__PURE__ */
|
|
4292
|
+
/* @__PURE__ */ import_react44.default.createElement(Button, { variant: "ghost", size: "smallIcon" }, /* @__PURE__ */ import_react44.default.createElement(Logos.github, { className: "hawa-icon" }))
|
|
4310
4293
|
)
|
|
4311
|
-
), /* @__PURE__ */
|
|
4294
|
+
), /* @__PURE__ */ import_react44.default.createElement(
|
|
4312
4295
|
"div",
|
|
4313
4296
|
{
|
|
4314
4297
|
className: cn(
|
|
@@ -4331,7 +4314,7 @@ var DocsLayout = ({
|
|
|
4331
4314
|
},
|
|
4332
4315
|
ref
|
|
4333
4316
|
},
|
|
4334
|
-
/* @__PURE__ */
|
|
4317
|
+
/* @__PURE__ */ import_react44.default.createElement(
|
|
4335
4318
|
DocsSidebar,
|
|
4336
4319
|
{
|
|
4337
4320
|
direction,
|
|
@@ -4339,7 +4322,7 @@ var DocsLayout = ({
|
|
|
4339
4322
|
currentPage
|
|
4340
4323
|
}
|
|
4341
4324
|
)
|
|
4342
|
-
), /* @__PURE__ */
|
|
4325
|
+
), /* @__PURE__ */ import_react44.default.createElement(
|
|
4343
4326
|
"div",
|
|
4344
4327
|
{
|
|
4345
4328
|
className: "hawa-fixed hawa-overflow-y-auto hawa-transition-all ",
|