@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
|
@@ -689,13 +689,94 @@ var DropdownMenuRadio = (props) => {
|
|
|
689
689
|
};
|
|
690
690
|
|
|
691
691
|
// components/elements/accordion/Accordion.tsx
|
|
692
|
-
import * as
|
|
692
|
+
import * as React9 from "react";
|
|
693
693
|
import * as AccordionPrimitive3 from "@radix-ui/react-accordion";
|
|
694
694
|
|
|
695
|
+
// components/elements/chip/Chip.tsx
|
|
696
|
+
import React6 from "react";
|
|
697
|
+
var Chip = React6.forwardRef(
|
|
698
|
+
({
|
|
699
|
+
label,
|
|
700
|
+
size = "normal",
|
|
701
|
+
icon,
|
|
702
|
+
color,
|
|
703
|
+
radius = "inherit",
|
|
704
|
+
dotType,
|
|
705
|
+
...rest
|
|
706
|
+
}, ref) => {
|
|
707
|
+
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 ";
|
|
708
|
+
let radiusStyles = {
|
|
709
|
+
inherit: " hawa-rounded",
|
|
710
|
+
full: "hawa-rounded-full",
|
|
711
|
+
none: "hawa-rounded-none"
|
|
712
|
+
};
|
|
713
|
+
let sizeStyles = {
|
|
714
|
+
small: "hawa-h-[15px] hawa-leading-4 hawa-px-0 hawa-py-0 hawa-text-[9px] hawa-gap-0.5 ",
|
|
715
|
+
normal: "hawa-h-fit hawa-text-xs",
|
|
716
|
+
large: "hawa-text-base"
|
|
717
|
+
};
|
|
718
|
+
let dotStyles = {
|
|
719
|
+
small: "hawa-flex hawa-h-1 hawa-w-1 hawa-rounded-full",
|
|
720
|
+
normal: "hawa-flex hawa-h-2 hawa-w-2 hawa-rounded-full",
|
|
721
|
+
large: "hawa-flex hawa-h-3 hawa-w-3 hawa-rounded-full"
|
|
722
|
+
};
|
|
723
|
+
let dotTypeStyles = {
|
|
724
|
+
available: "hawa-bg-green-500",
|
|
725
|
+
unavailable: "hawa-bg-red-500"
|
|
726
|
+
};
|
|
727
|
+
let colorStyles = {
|
|
728
|
+
green: "hawa-bg-green-100 hawa-text-green-500 dark:hawa-bg-green-400 dark:hawa-text-green-800",
|
|
729
|
+
blue: "hawa-bg-blue-100 hawa-text-blue-500 dark:hawa-bg-blue-400 dark:hawa-text-blue-100",
|
|
730
|
+
red: "hawa-bg-red-100 hawa-text-red-500 dark:hawa-bg-red-400 dark:hawa-text-red-100",
|
|
731
|
+
yellow: "hawa-bg-yellow-100 hawa-text-yellow-600 dark:hawa-bg-yellow-400 dark:hawa-text-yellow-800",
|
|
732
|
+
orange: "hawa-bg-orange-100 hawa-text-orange-500 dark:hawa-bg-orange-400 dark:hawa-text-orange-100",
|
|
733
|
+
purple: "hawa-bg-purple-100 hawa-text-purple-500 dark:hawa-bg-purple-400 dark:hawa-text-purple-100",
|
|
734
|
+
cyan: "hawa-bg-cyan-100 hawa-text-cyan-800 dark:hawa-bg-cyan-400 dark:hawa-text-cyan-800",
|
|
735
|
+
hyper: "hawa-text-white hawa-bg-gradient-to-tl hawa-from-pink-500 hawa-via-red-500 hawa-to-yellow-500 ",
|
|
736
|
+
oceanic: "hawa-text-white hawa-bg-gradient-to-bl hawa-from-green-300 hawa-via-blue-500 hawa-to-purple-600"
|
|
737
|
+
};
|
|
738
|
+
if (label) {
|
|
739
|
+
return /* @__PURE__ */ React6.createElement(
|
|
740
|
+
"span",
|
|
741
|
+
{
|
|
742
|
+
...rest,
|
|
743
|
+
ref,
|
|
744
|
+
className: cn(
|
|
745
|
+
defaultStyles,
|
|
746
|
+
sizeStyles[size],
|
|
747
|
+
radiusStyles[radius],
|
|
748
|
+
color ? colorStyles[color] : "hawa-border hawa-bg-none"
|
|
749
|
+
)
|
|
750
|
+
},
|
|
751
|
+
dotType && /* @__PURE__ */ React6.createElement(
|
|
752
|
+
"span",
|
|
753
|
+
{
|
|
754
|
+
className: cn(dotStyles[size], dotTypeStyles[dotType])
|
|
755
|
+
}
|
|
756
|
+
),
|
|
757
|
+
icon && icon,
|
|
758
|
+
label
|
|
759
|
+
);
|
|
760
|
+
} else {
|
|
761
|
+
return /* @__PURE__ */ React6.createElement(
|
|
762
|
+
"span",
|
|
763
|
+
{
|
|
764
|
+
...rest,
|
|
765
|
+
ref,
|
|
766
|
+
className: cn(
|
|
767
|
+
"hawa-h-2 hawa-w-2 hawa-rounded-full",
|
|
768
|
+
color ? colorStyles[color] : "hawa-border hawa-bg-none"
|
|
769
|
+
)
|
|
770
|
+
}
|
|
771
|
+
);
|
|
772
|
+
}
|
|
773
|
+
}
|
|
774
|
+
);
|
|
775
|
+
|
|
695
776
|
// components/elements/accordion/AccordionContent.tsx
|
|
696
|
-
import * as
|
|
777
|
+
import * as React7 from "react";
|
|
697
778
|
import * as AccordionPrimitive from "@radix-ui/react-accordion";
|
|
698
|
-
var AccordionContent =
|
|
779
|
+
var AccordionContent = React7.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React7.createElement(
|
|
699
780
|
AccordionPrimitive.Content,
|
|
700
781
|
{
|
|
701
782
|
ref,
|
|
@@ -705,14 +786,14 @@ var AccordionContent = React6.forwardRef(({ className, children, ...props }, ref
|
|
|
705
786
|
) : className,
|
|
706
787
|
...props
|
|
707
788
|
},
|
|
708
|
-
/* @__PURE__ */
|
|
789
|
+
/* @__PURE__ */ React7.createElement("div", { className: "hawa-bg-background hawa-p-4" }, children)
|
|
709
790
|
));
|
|
710
791
|
AccordionContent.displayName = AccordionPrimitive.Content.displayName;
|
|
711
792
|
|
|
712
793
|
// components/elements/accordion/AccordionTrigger.tsx
|
|
713
|
-
import * as
|
|
794
|
+
import * as React8 from "react";
|
|
714
795
|
import * as AccordionPrimitive2 from "@radix-ui/react-accordion";
|
|
715
|
-
var AccordionTrigger =
|
|
796
|
+
var AccordionTrigger = React8.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React8.createElement(AccordionPrimitive2.Header, { className: "hawa-flex" }, /* @__PURE__ */ React8.createElement(
|
|
716
797
|
AccordionPrimitive2.Trigger,
|
|
717
798
|
{
|
|
718
799
|
ref,
|
|
@@ -724,7 +805,7 @@ var AccordionTrigger = React7.forwardRef(({ className, children, ...props }, ref
|
|
|
724
805
|
...props
|
|
725
806
|
},
|
|
726
807
|
children,
|
|
727
|
-
!props.hideArrow && /* @__PURE__ */
|
|
808
|
+
!props.hideArrow && /* @__PURE__ */ React8.createElement(
|
|
728
809
|
"svg",
|
|
729
810
|
{
|
|
730
811
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -738,13 +819,13 @@ var AccordionTrigger = React7.forwardRef(({ className, children, ...props }, ref
|
|
|
738
819
|
strokeLinejoin: "round",
|
|
739
820
|
className: "hawa-icon hawa-shrink-0 hawa-transition-transform hawa-duration-200"
|
|
740
821
|
},
|
|
741
|
-
/* @__PURE__ */
|
|
822
|
+
/* @__PURE__ */ React8.createElement("path", { d: "m6 9 6 6 6-6" })
|
|
742
823
|
)
|
|
743
824
|
)));
|
|
744
825
|
AccordionTrigger.displayName = AccordionPrimitive2.Trigger.displayName;
|
|
745
826
|
|
|
746
827
|
// components/elements/accordion/Accordion.tsx
|
|
747
|
-
var Accordion =
|
|
828
|
+
var Accordion = React9.forwardRef(
|
|
748
829
|
({
|
|
749
830
|
items,
|
|
750
831
|
design = "default",
|
|
@@ -753,7 +834,7 @@ var Accordion = React8.forwardRef(
|
|
|
753
834
|
contentclassNames,
|
|
754
835
|
className,
|
|
755
836
|
...props
|
|
756
|
-
}, ref) => /* @__PURE__ */
|
|
837
|
+
}, ref) => /* @__PURE__ */ React9.createElement(AccordionPrimitive3.Root, { type: props.type, collapsible: true }, /* @__PURE__ */ React9.createElement(
|
|
757
838
|
"div",
|
|
758
839
|
{
|
|
759
840
|
className: cn("hawa-flex hawa-flex-col", {
|
|
@@ -761,7 +842,7 @@ var Accordion = React8.forwardRef(
|
|
|
761
842
|
"hawa-gap-0": design === "default"
|
|
762
843
|
})
|
|
763
844
|
},
|
|
764
|
-
items.map((item, index) => /* @__PURE__ */
|
|
845
|
+
items.map((item, index) => /* @__PURE__ */ React9.createElement(
|
|
765
846
|
AccordionPrimitive3.Item,
|
|
766
847
|
{
|
|
767
848
|
disabled: item.disabled || false,
|
|
@@ -769,7 +850,7 @@ var Accordion = React8.forwardRef(
|
|
|
769
850
|
key: index,
|
|
770
851
|
value: `item-${index}`
|
|
771
852
|
},
|
|
772
|
-
/* @__PURE__ */
|
|
853
|
+
/* @__PURE__ */ React9.createElement(
|
|
773
854
|
AccordionTrigger,
|
|
774
855
|
{
|
|
775
856
|
disabled: item.disabled || false,
|
|
@@ -782,7 +863,7 @@ var Accordion = React8.forwardRef(
|
|
|
782
863
|
triggerclassNames
|
|
783
864
|
)
|
|
784
865
|
},
|
|
785
|
-
/* @__PURE__ */
|
|
866
|
+
/* @__PURE__ */ React9.createElement(
|
|
786
867
|
"span",
|
|
787
868
|
{
|
|
788
869
|
className: cn(
|
|
@@ -792,10 +873,10 @@ var Accordion = React8.forwardRef(
|
|
|
792
873
|
},
|
|
793
874
|
item.trigger,
|
|
794
875
|
" ",
|
|
795
|
-
item.chip && /* @__PURE__ */
|
|
876
|
+
item.chip && /* @__PURE__ */ React9.createElement(Chip, { ...item.chip })
|
|
796
877
|
)
|
|
797
878
|
),
|
|
798
|
-
/* @__PURE__ */
|
|
879
|
+
/* @__PURE__ */ React9.createElement(
|
|
799
880
|
AccordionContent,
|
|
800
881
|
{
|
|
801
882
|
"aria-disabled": item.disabled || false,
|
|
@@ -815,9 +896,9 @@ var Accordion = React8.forwardRef(
|
|
|
815
896
|
Accordion.displayName = "Accordion";
|
|
816
897
|
|
|
817
898
|
// components/elements/accordion/AccordionItem.tsx
|
|
818
|
-
import * as
|
|
899
|
+
import * as React10 from "react";
|
|
819
900
|
import * as AccordionPrimitive4 from "@radix-ui/react-accordion";
|
|
820
|
-
var AccordionItem =
|
|
901
|
+
var AccordionItem = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React10.createElement(AccordionPrimitive4.Item, { ref, className: cn(className), ...props }));
|
|
821
902
|
AccordionItem.displayName = "AccordionItem";
|
|
822
903
|
|
|
823
904
|
// components/elements/accordion/AccordionRoot.tsx
|
|
@@ -825,9 +906,9 @@ import * as AccordionPrimitive5 from "@radix-ui/react-accordion";
|
|
|
825
906
|
var AccordionRoot = AccordionPrimitive5.Root;
|
|
826
907
|
|
|
827
908
|
// components/elements/logos/Logos.tsx
|
|
828
|
-
import
|
|
909
|
+
import React11 from "react";
|
|
829
910
|
var Logos = {
|
|
830
|
-
hawa: (props) => /* @__PURE__ */
|
|
911
|
+
hawa: (props) => /* @__PURE__ */ React11.createElement(
|
|
831
912
|
"svg",
|
|
832
913
|
{
|
|
833
914
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -835,7 +916,7 @@ var Logos = {
|
|
|
835
916
|
viewBox: "0 0 765 765",
|
|
836
917
|
...props
|
|
837
918
|
},
|
|
838
|
-
/* @__PURE__ */
|
|
919
|
+
/* @__PURE__ */ React11.createElement(
|
|
839
920
|
"path",
|
|
840
921
|
{
|
|
841
922
|
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",
|
|
@@ -843,7 +924,7 @@ var Logos = {
|
|
|
843
924
|
}
|
|
844
925
|
)
|
|
845
926
|
),
|
|
846
|
-
sikka: (props) => /* @__PURE__ */
|
|
927
|
+
sikka: (props) => /* @__PURE__ */ React11.createElement(
|
|
847
928
|
"svg",
|
|
848
929
|
{
|
|
849
930
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -853,11 +934,11 @@ var Logos = {
|
|
|
853
934
|
fill: "currentColor",
|
|
854
935
|
...props
|
|
855
936
|
},
|
|
856
|
-
/* @__PURE__ */
|
|
857
|
-
/* @__PURE__ */
|
|
858
|
-
/* @__PURE__ */
|
|
937
|
+
/* @__PURE__ */ React11.createElement("defs", null, /* @__PURE__ */ React11.createElement("path", { id: "a", d: "M0 0h916.5v765H0z" })),
|
|
938
|
+
/* @__PURE__ */ React11.createElement("clipPath", { id: "b" }, /* @__PURE__ */ React11.createElement("use", { xlinkHref: "#a", overflow: "visible" })),
|
|
939
|
+
/* @__PURE__ */ React11.createElement("g", { clipPath: "url(#b)" }, /* @__PURE__ */ React11.createElement("defs", null, /* @__PURE__ */ React11.createElement("path", { id: "c", d: "M0 0h916.5v765H0z" })), /* @__PURE__ */ React11.createElement("clipPath", { id: "d" }, /* @__PURE__ */ React11.createElement("use", { xlinkHref: "#c", overflow: "visible" })), /* @__PURE__ */ React11.createElement("g", { clipPath: "url(#d)" }, /* @__PURE__ */ React11.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" })))
|
|
859
940
|
),
|
|
860
|
-
mail: (props) => /* @__PURE__ */
|
|
941
|
+
mail: (props) => /* @__PURE__ */ React11.createElement(
|
|
861
942
|
"svg",
|
|
862
943
|
{
|
|
863
944
|
stroke: "currentColor",
|
|
@@ -869,10 +950,10 @@ var Logos = {
|
|
|
869
950
|
xmlns: "http://www.w3.org/2000/svg",
|
|
870
951
|
...props
|
|
871
952
|
},
|
|
872
|
-
/* @__PURE__ */
|
|
873
|
-
/* @__PURE__ */
|
|
953
|
+
/* @__PURE__ */ React11.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" }),
|
|
954
|
+
/* @__PURE__ */ React11.createElement("polyline", { points: "22,6 12,13 2,6" })
|
|
874
955
|
),
|
|
875
|
-
phone: (props) => /* @__PURE__ */
|
|
956
|
+
phone: (props) => /* @__PURE__ */ React11.createElement(
|
|
876
957
|
"svg",
|
|
877
958
|
{
|
|
878
959
|
stroke: "currentColor",
|
|
@@ -883,7 +964,7 @@ var Logos = {
|
|
|
883
964
|
xmlns: "http://www.w3.org/2000/svg",
|
|
884
965
|
...props
|
|
885
966
|
},
|
|
886
|
-
/* @__PURE__ */
|
|
967
|
+
/* @__PURE__ */ React11.createElement(
|
|
887
968
|
"path",
|
|
888
969
|
{
|
|
889
970
|
strokeLinecap: "round",
|
|
@@ -892,14 +973,14 @@ var Logos = {
|
|
|
892
973
|
}
|
|
893
974
|
)
|
|
894
975
|
),
|
|
895
|
-
twitter: (props) => /* @__PURE__ */
|
|
976
|
+
twitter: (props) => /* @__PURE__ */ React11.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React11.createElement(
|
|
896
977
|
"path",
|
|
897
978
|
{
|
|
898
979
|
fill: "currentColor",
|
|
899
980
|
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"
|
|
900
981
|
}
|
|
901
982
|
)),
|
|
902
|
-
instagram: (props) => /* @__PURE__ */
|
|
983
|
+
instagram: (props) => /* @__PURE__ */ React11.createElement(
|
|
903
984
|
"svg",
|
|
904
985
|
{
|
|
905
986
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -907,23 +988,23 @@ var Logos = {
|
|
|
907
988
|
viewBox: "0 0 16 16",
|
|
908
989
|
...props
|
|
909
990
|
},
|
|
910
|
-
/* @__PURE__ */
|
|
991
|
+
/* @__PURE__ */ React11.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" })
|
|
911
992
|
),
|
|
912
|
-
microsoft: (props) => /* @__PURE__ */
|
|
993
|
+
microsoft: (props) => /* @__PURE__ */ React11.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", ...props }, /* @__PURE__ */ React11.createElement(
|
|
913
994
|
"path",
|
|
914
995
|
{
|
|
915
996
|
fill: "currentColor",
|
|
916
997
|
d: "M7.462 0H0v7.19h7.462V0zM16 0H8.538v7.19H16V0zM7.462 8.211H0V16h7.462V8.211zm8.538 0H8.538V16H16V8.211z"
|
|
917
998
|
}
|
|
918
999
|
)),
|
|
919
|
-
github: (props) => /* @__PURE__ */
|
|
1000
|
+
github: (props) => /* @__PURE__ */ React11.createElement(
|
|
920
1001
|
"svg",
|
|
921
1002
|
{
|
|
922
1003
|
xmlns: "http://www.w3.org/2000/svg",
|
|
923
1004
|
viewBox: "0 0 438.549 438.549",
|
|
924
1005
|
...props
|
|
925
1006
|
},
|
|
926
|
-
/* @__PURE__ */
|
|
1007
|
+
/* @__PURE__ */ React11.createElement(
|
|
927
1008
|
"path",
|
|
928
1009
|
{
|
|
929
1010
|
fill: "currentColor",
|
|
@@ -931,77 +1012,77 @@ var Logos = {
|
|
|
931
1012
|
}
|
|
932
1013
|
)
|
|
933
1014
|
),
|
|
934
|
-
radix: (props) => /* @__PURE__ */
|
|
1015
|
+
radix: (props) => /* @__PURE__ */ React11.createElement("svg", { viewBox: "0 0 25 25", fill: "none", ...props }, /* @__PURE__ */ React11.createElement(
|
|
935
1016
|
"path",
|
|
936
1017
|
{
|
|
937
1018
|
d: "M12 25C7.58173 25 4 21.4183 4 17C4 12.5817 7.58173 9 12 9V25Z",
|
|
938
1019
|
fill: "currentcolor"
|
|
939
1020
|
}
|
|
940
|
-
), /* @__PURE__ */
|
|
1021
|
+
), /* @__PURE__ */ React11.createElement("path", { d: "M12 0H4V8H12V0Z", fill: "currentcolor" }), /* @__PURE__ */ React11.createElement(
|
|
941
1022
|
"path",
|
|
942
1023
|
{
|
|
943
1024
|
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",
|
|
944
1025
|
fill: "currentcolor"
|
|
945
1026
|
}
|
|
946
1027
|
)),
|
|
947
|
-
aria: (props) => /* @__PURE__ */
|
|
948
|
-
npm: (props) => /* @__PURE__ */
|
|
1028
|
+
aria: (props) => /* @__PURE__ */ React11.createElement("svg", { role: "img", viewBox: "0 0 24 24", fill: "currentColor", ...props }, /* @__PURE__ */ React11.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" })),
|
|
1029
|
+
npm: (props) => /* @__PURE__ */ React11.createElement("svg", { viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React11.createElement(
|
|
949
1030
|
"path",
|
|
950
1031
|
{
|
|
951
1032
|
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",
|
|
952
1033
|
fill: "currentColor"
|
|
953
1034
|
}
|
|
954
1035
|
)),
|
|
955
|
-
yarn: (props) => /* @__PURE__ */
|
|
1036
|
+
yarn: (props) => /* @__PURE__ */ React11.createElement("svg", { viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React11.createElement(
|
|
956
1037
|
"path",
|
|
957
1038
|
{
|
|
958
1039
|
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",
|
|
959
1040
|
fill: "currentColor"
|
|
960
1041
|
}
|
|
961
1042
|
)),
|
|
962
|
-
pnpm: (props) => /* @__PURE__ */
|
|
1043
|
+
pnpm: (props) => /* @__PURE__ */ React11.createElement("svg", { viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React11.createElement(
|
|
963
1044
|
"path",
|
|
964
1045
|
{
|
|
965
1046
|
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",
|
|
966
1047
|
fill: "currentColor"
|
|
967
1048
|
}
|
|
968
1049
|
)),
|
|
969
|
-
react: (props) => /* @__PURE__ */
|
|
1050
|
+
react: (props) => /* @__PURE__ */ React11.createElement("svg", { viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React11.createElement(
|
|
970
1051
|
"path",
|
|
971
1052
|
{
|
|
972
1053
|
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",
|
|
973
1054
|
fill: "currentColor"
|
|
974
1055
|
}
|
|
975
1056
|
)),
|
|
976
|
-
tailwind: (props) => /* @__PURE__ */
|
|
1057
|
+
tailwind: (props) => /* @__PURE__ */ React11.createElement("svg", { viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React11.createElement(
|
|
977
1058
|
"path",
|
|
978
1059
|
{
|
|
979
1060
|
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",
|
|
980
1061
|
fill: "currentColor"
|
|
981
1062
|
}
|
|
982
1063
|
)),
|
|
983
|
-
google: (props) => /* @__PURE__ */
|
|
1064
|
+
google: (props) => /* @__PURE__ */ React11.createElement("svg", { role: "img", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React11.createElement(
|
|
984
1065
|
"path",
|
|
985
1066
|
{
|
|
986
1067
|
fill: "currentColor",
|
|
987
1068
|
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"
|
|
988
1069
|
}
|
|
989
1070
|
)),
|
|
990
|
-
apple: (props) => /* @__PURE__ */
|
|
1071
|
+
apple: (props) => /* @__PURE__ */ React11.createElement("svg", { role: "img", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React11.createElement(
|
|
991
1072
|
"path",
|
|
992
1073
|
{
|
|
993
1074
|
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",
|
|
994
1075
|
fill: "currentColor"
|
|
995
1076
|
}
|
|
996
1077
|
)),
|
|
997
|
-
paypal: (props) => /* @__PURE__ */
|
|
1078
|
+
paypal: (props) => /* @__PURE__ */ React11.createElement("svg", { role: "img", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React11.createElement(
|
|
998
1079
|
"path",
|
|
999
1080
|
{
|
|
1000
1081
|
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",
|
|
1001
1082
|
fill: "currentColor"
|
|
1002
1083
|
}
|
|
1003
1084
|
)),
|
|
1004
|
-
spinner: (props) => /* @__PURE__ */
|
|
1085
|
+
spinner: (props) => /* @__PURE__ */ React11.createElement(
|
|
1005
1086
|
"svg",
|
|
1006
1087
|
{
|
|
1007
1088
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1015,9 +1096,9 @@ var Logos = {
|
|
|
1015
1096
|
strokeLinejoin: "round",
|
|
1016
1097
|
...props
|
|
1017
1098
|
},
|
|
1018
|
-
/* @__PURE__ */
|
|
1099
|
+
/* @__PURE__ */ React11.createElement("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" })
|
|
1019
1100
|
),
|
|
1020
|
-
whatsapp: (props) => /* @__PURE__ */
|
|
1101
|
+
whatsapp: (props) => /* @__PURE__ */ React11.createElement(
|
|
1021
1102
|
"svg",
|
|
1022
1103
|
{
|
|
1023
1104
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1025,18 +1106,18 @@ var Logos = {
|
|
|
1025
1106
|
fill: "currentColor",
|
|
1026
1107
|
...props
|
|
1027
1108
|
},
|
|
1028
|
-
/* @__PURE__ */
|
|
1109
|
+
/* @__PURE__ */ React11.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" })
|
|
1029
1110
|
)
|
|
1030
1111
|
};
|
|
1031
1112
|
|
|
1032
1113
|
// components/elements/navigationMenu/NavigationMenu.tsx
|
|
1033
|
-
import * as
|
|
1114
|
+
import * as React12 from "react";
|
|
1034
1115
|
import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
|
|
1035
1116
|
import { cva } from "class-variance-authority";
|
|
1036
1117
|
var navigationMenuTriggerStyle = cva(
|
|
1037
1118
|
"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 "
|
|
1038
1119
|
);
|
|
1039
|
-
var NavigationMenuRoot =
|
|
1120
|
+
var NavigationMenuRoot = React12.forwardRef(({ className, children, viewportClassNames, ...props }, ref) => /* @__PURE__ */ React12.createElement(
|
|
1040
1121
|
NavigationMenuPrimitive.Root,
|
|
1041
1122
|
{
|
|
1042
1123
|
ref,
|
|
@@ -1048,9 +1129,9 @@ var NavigationMenuRoot = React11.forwardRef(({ className, children, viewportClas
|
|
|
1048
1129
|
...props
|
|
1049
1130
|
},
|
|
1050
1131
|
children,
|
|
1051
|
-
/* @__PURE__ */
|
|
1132
|
+
/* @__PURE__ */ React12.createElement(NavigationMenuViewport, { className: viewportClassNames })
|
|
1052
1133
|
));
|
|
1053
|
-
var NavigationMenuList =
|
|
1134
|
+
var NavigationMenuList = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React12.createElement(
|
|
1054
1135
|
NavigationMenuPrimitive.List,
|
|
1055
1136
|
{
|
|
1056
1137
|
ref,
|
|
@@ -1061,7 +1142,7 @@ var NavigationMenuList = React11.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1061
1142
|
...props
|
|
1062
1143
|
}
|
|
1063
1144
|
));
|
|
1064
|
-
var NavigationMenuTrigger =
|
|
1145
|
+
var NavigationMenuTrigger = React12.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React12.createElement(
|
|
1065
1146
|
NavigationMenuPrimitive.Trigger,
|
|
1066
1147
|
{
|
|
1067
1148
|
ref,
|
|
@@ -1069,7 +1150,7 @@ var NavigationMenuTrigger = React11.forwardRef(({ className, children, ...props
|
|
|
1069
1150
|
...props
|
|
1070
1151
|
},
|
|
1071
1152
|
children,
|
|
1072
|
-
/* @__PURE__ */
|
|
1153
|
+
/* @__PURE__ */ React12.createElement(
|
|
1073
1154
|
"svg",
|
|
1074
1155
|
{
|
|
1075
1156
|
"aria-label": "Chevron Icon",
|
|
@@ -1085,10 +1166,10 @@ var NavigationMenuTrigger = React11.forwardRef(({ className, children, ...props
|
|
|
1085
1166
|
"aria-hidden": "true",
|
|
1086
1167
|
className: "hawa-icon hawa-relative hawa-top-[1px] hawa-transition hawa-duration-200 group-data-[state=open]:hawa-rotate-180"
|
|
1087
1168
|
},
|
|
1088
|
-
/* @__PURE__ */
|
|
1169
|
+
/* @__PURE__ */ React12.createElement("path", { d: "m6 9 6 6 6-6" })
|
|
1089
1170
|
)
|
|
1090
1171
|
));
|
|
1091
|
-
var NavigationMenuContent =
|
|
1172
|
+
var NavigationMenuContent = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React12.createElement(
|
|
1092
1173
|
NavigationMenuPrimitive.Content,
|
|
1093
1174
|
{
|
|
1094
1175
|
ref,
|
|
@@ -1102,15 +1183,15 @@ var NavigationMenuContent = React11.forwardRef(({ className, ...props }, ref) =>
|
|
|
1102
1183
|
...props
|
|
1103
1184
|
}
|
|
1104
1185
|
));
|
|
1105
|
-
var StandardNavigationMenuItem = ({ icon, title, subtitle, ...linkProps }) => /* @__PURE__ */
|
|
1106
|
-
var NavigationMenuViewport =
|
|
1186
|
+
var StandardNavigationMenuItem = ({ icon, title, subtitle, ...linkProps }) => /* @__PURE__ */ React12.createElement(NavigationMenuLink, { ...linkProps }, /* @__PURE__ */ React12.createElement("div", { className: "hawa-flex hawa-max-w-md hawa-cursor-pointer hawa-flex-row hawa-items-center hawa-gap-4 hawa-rounded-inner hawa-p-4 hawa-py-2 hawa-transition-all hover:hawa-bg-muted" }, icon && icon, /* @__PURE__ */ React12.createElement("div", { className: "hawa-flex hawa-flex-col" }, /* @__PURE__ */ React12.createElement("h1", { className: "hawa-text-xl hawa-font-bold" }, title), /* @__PURE__ */ React12.createElement("p", { className: "hawa-text-sm" }, subtitle))));
|
|
1187
|
+
var NavigationMenuViewport = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React12.createElement(
|
|
1107
1188
|
"div",
|
|
1108
1189
|
{
|
|
1109
1190
|
className: cn(
|
|
1110
1191
|
"hawa-absolute hawa-top-full hawa-flex hawa-w-full hawa-justify-center"
|
|
1111
1192
|
)
|
|
1112
1193
|
},
|
|
1113
|
-
/* @__PURE__ */
|
|
1194
|
+
/* @__PURE__ */ React12.createElement(
|
|
1114
1195
|
NavigationMenuPrimitive.Viewport,
|
|
1115
1196
|
{
|
|
1116
1197
|
className: cn(
|
|
@@ -1127,7 +1208,7 @@ var NavigationMenuViewport = React11.forwardRef(({ className, ...props }, ref) =
|
|
|
1127
1208
|
}
|
|
1128
1209
|
)
|
|
1129
1210
|
));
|
|
1130
|
-
var NavigationMenuIndicator =
|
|
1211
|
+
var NavigationMenuIndicator = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React12.createElement(
|
|
1131
1212
|
NavigationMenuPrimitive.Indicator,
|
|
1132
1213
|
{
|
|
1133
1214
|
ref,
|
|
@@ -1137,7 +1218,7 @@ var NavigationMenuIndicator = React11.forwardRef(({ className, ...props }, ref)
|
|
|
1137
1218
|
),
|
|
1138
1219
|
...props
|
|
1139
1220
|
},
|
|
1140
|
-
/* @__PURE__ */
|
|
1221
|
+
/* @__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" })
|
|
1141
1222
|
));
|
|
1142
1223
|
var NavigationMenu = ({
|
|
1143
1224
|
viewportClassNames,
|
|
@@ -1146,7 +1227,7 @@ var NavigationMenu = ({
|
|
|
1146
1227
|
actionFirst,
|
|
1147
1228
|
...props
|
|
1148
1229
|
}) => {
|
|
1149
|
-
return /* @__PURE__ */
|
|
1230
|
+
return /* @__PURE__ */ React12.createElement(
|
|
1150
1231
|
NavigationMenuRoot,
|
|
1151
1232
|
{
|
|
1152
1233
|
dir: props.direction,
|
|
@@ -1154,7 +1235,7 @@ var NavigationMenu = ({
|
|
|
1154
1235
|
className: rootClassNames,
|
|
1155
1236
|
viewportClassNames
|
|
1156
1237
|
},
|
|
1157
|
-
/* @__PURE__ */
|
|
1238
|
+
/* @__PURE__ */ React12.createElement(NavigationMenuList, null, props.items.map((item, i) => /* @__PURE__ */ React12.createElement(NavigationMenuItem, { key: i }, item.content ? /* @__PURE__ */ React12.createElement(React12.Fragment, null, /* @__PURE__ */ React12.createElement(NavigationMenuTrigger, { className: cn(triggerClassNames) }, item.trigger), /* @__PURE__ */ React12.createElement(NavigationMenuContent, null, item.content)) : /* @__PURE__ */ React12.createElement(
|
|
1158
1239
|
NavigationMenuLink,
|
|
1159
1240
|
{
|
|
1160
1241
|
href: actionFirst ? void 0 : item.path,
|
|
@@ -1183,14 +1264,14 @@ NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayN
|
|
|
1183
1264
|
NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
|
|
1184
1265
|
|
|
1185
1266
|
// components/elements/sheet/Sheet.tsx
|
|
1186
|
-
import * as
|
|
1267
|
+
import * as React13 from "react";
|
|
1187
1268
|
import * as SheetPrimitive from "@radix-ui/react-dialog";
|
|
1188
1269
|
import { cva as cva2 } from "class-variance-authority";
|
|
1189
1270
|
var Sheet = SheetPrimitive.Root;
|
|
1190
1271
|
var SheetTrigger = SheetPrimitive.Trigger;
|
|
1191
1272
|
var SheetClose = SheetPrimitive.Close;
|
|
1192
1273
|
var SheetPortal = SheetPrimitive.Portal;
|
|
1193
|
-
var SheetOverlay =
|
|
1274
|
+
var SheetOverlay = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React13.createElement(
|
|
1194
1275
|
SheetPrimitive.Overlay,
|
|
1195
1276
|
{
|
|
1196
1277
|
className: cn(
|
|
@@ -1217,8 +1298,8 @@ var sheetVariants = cva2(
|
|
|
1217
1298
|
}
|
|
1218
1299
|
}
|
|
1219
1300
|
);
|
|
1220
|
-
var SheetContent =
|
|
1221
|
-
({ side = "right", className, children, persist, hideCloseButton, ...props }, ref) => /* @__PURE__ */
|
|
1301
|
+
var SheetContent = React13.forwardRef(
|
|
1302
|
+
({ side = "right", className, children, persist, hideCloseButton, ...props }, ref) => /* @__PURE__ */ React13.createElement(SheetPortal, null, /* @__PURE__ */ React13.createElement(SheetOverlay, null), /* @__PURE__ */ React13.createElement(
|
|
1222
1303
|
SheetPrimitive.Content,
|
|
1223
1304
|
{
|
|
1224
1305
|
ref,
|
|
@@ -1231,7 +1312,7 @@ var SheetContent = React12.forwardRef(
|
|
|
1231
1312
|
...props
|
|
1232
1313
|
},
|
|
1233
1314
|
children,
|
|
1234
|
-
!hideCloseButton && /* @__PURE__ */
|
|
1315
|
+
!hideCloseButton && /* @__PURE__ */ React13.createElement(
|
|
1235
1316
|
SheetPrimitive.Close,
|
|
1236
1317
|
{
|
|
1237
1318
|
className: cn(
|
|
@@ -1243,7 +1324,7 @@ var SheetContent = React12.forwardRef(
|
|
|
1243
1324
|
}
|
|
1244
1325
|
)
|
|
1245
1326
|
},
|
|
1246
|
-
/* @__PURE__ */
|
|
1327
|
+
/* @__PURE__ */ React13.createElement(
|
|
1247
1328
|
"svg",
|
|
1248
1329
|
{
|
|
1249
1330
|
"aria-label": "Close Icon",
|
|
@@ -1252,7 +1333,7 @@ var SheetContent = React12.forwardRef(
|
|
|
1252
1333
|
fill: "currentColor",
|
|
1253
1334
|
viewBox: "0 0 20 20"
|
|
1254
1335
|
},
|
|
1255
|
-
/* @__PURE__ */
|
|
1336
|
+
/* @__PURE__ */ React13.createElement(
|
|
1256
1337
|
"path",
|
|
1257
1338
|
{
|
|
1258
1339
|
fillRule: "evenodd",
|
|
@@ -1261,14 +1342,14 @@ var SheetContent = React12.forwardRef(
|
|
|
1261
1342
|
}
|
|
1262
1343
|
)
|
|
1263
1344
|
),
|
|
1264
|
-
/* @__PURE__ */
|
|
1345
|
+
/* @__PURE__ */ React13.createElement("span", { className: "hawa-sr-only" }, "Close")
|
|
1265
1346
|
)
|
|
1266
1347
|
))
|
|
1267
1348
|
);
|
|
1268
1349
|
var SheetHeader = ({
|
|
1269
1350
|
className,
|
|
1270
1351
|
...props
|
|
1271
|
-
}) => /* @__PURE__ */
|
|
1352
|
+
}) => /* @__PURE__ */ React13.createElement(
|
|
1272
1353
|
"div",
|
|
1273
1354
|
{
|
|
1274
1355
|
className: cn(
|
|
@@ -1281,7 +1362,7 @@ var SheetHeader = ({
|
|
|
1281
1362
|
var SheetFooter = ({
|
|
1282
1363
|
className,
|
|
1283
1364
|
...props
|
|
1284
|
-
}) => /* @__PURE__ */
|
|
1365
|
+
}) => /* @__PURE__ */ React13.createElement(
|
|
1285
1366
|
"div",
|
|
1286
1367
|
{
|
|
1287
1368
|
className: cn(
|
|
@@ -1291,7 +1372,7 @@ var SheetFooter = ({
|
|
|
1291
1372
|
...props
|
|
1292
1373
|
}
|
|
1293
1374
|
);
|
|
1294
|
-
var SheetTitle =
|
|
1375
|
+
var SheetTitle = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React13.createElement(
|
|
1295
1376
|
SheetPrimitive.Title,
|
|
1296
1377
|
{
|
|
1297
1378
|
ref,
|
|
@@ -1302,7 +1383,7 @@ var SheetTitle = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
1302
1383
|
...props
|
|
1303
1384
|
}
|
|
1304
1385
|
));
|
|
1305
|
-
var SheetDescription =
|
|
1386
|
+
var SheetDescription = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React13.createElement(
|
|
1306
1387
|
SheetPrimitive.Description,
|
|
1307
1388
|
{
|
|
1308
1389
|
ref,
|
|
@@ -1318,12 +1399,12 @@ SheetFooter.displayName = "SheetFooter";
|
|
|
1318
1399
|
SheetTitle.displayName = SheetPrimitive.Title.displayName;
|
|
1319
1400
|
|
|
1320
1401
|
// components/elements/dialog/Dialog.tsx
|
|
1321
|
-
import * as
|
|
1402
|
+
import * as React14 from "react";
|
|
1322
1403
|
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
1323
1404
|
var Dialog = DialogPrimitive.Root;
|
|
1324
1405
|
var DialogTrigger = DialogPrimitive.Trigger;
|
|
1325
|
-
var DialogPortal = ({ ...props }) => /* @__PURE__ */
|
|
1326
|
-
var DialogOverlay =
|
|
1406
|
+
var DialogPortal = ({ ...props }) => /* @__PURE__ */ React14.createElement(DialogPrimitive.Portal, { ...props });
|
|
1407
|
+
var DialogOverlay = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React14.createElement(
|
|
1327
1408
|
DialogPrimitive.Overlay,
|
|
1328
1409
|
{
|
|
1329
1410
|
ref,
|
|
@@ -1334,7 +1415,7 @@ var DialogOverlay = React13.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
1334
1415
|
...props
|
|
1335
1416
|
}
|
|
1336
1417
|
));
|
|
1337
|
-
var DialogContent =
|
|
1418
|
+
var DialogContent = React14.forwardRef(({ className, children, persist, hideCloseButton, ...props }, ref) => /* @__PURE__ */ React14.createElement(DialogPortal, null, /* @__PURE__ */ React14.createElement(DialogOverlay, null), /* @__PURE__ */ React14.createElement(
|
|
1338
1419
|
DialogPrimitive.Content,
|
|
1339
1420
|
{
|
|
1340
1421
|
onPointerDownOutside: (e) => {
|
|
@@ -1350,7 +1431,7 @@ var DialogContent = React13.forwardRef(({ className, children, persist, hideClos
|
|
|
1350
1431
|
...props
|
|
1351
1432
|
},
|
|
1352
1433
|
children,
|
|
1353
|
-
!hideCloseButton && /* @__PURE__ */
|
|
1434
|
+
!hideCloseButton && /* @__PURE__ */ React14.createElement(
|
|
1354
1435
|
DialogPrimitive.Close,
|
|
1355
1436
|
{
|
|
1356
1437
|
className: cn(
|
|
@@ -1358,7 +1439,7 @@ var DialogContent = React13.forwardRef(({ className, children, persist, hideClos
|
|
|
1358
1439
|
props.dir === "rtl" ? " hawa-left-4" : " hawa-right-4"
|
|
1359
1440
|
)
|
|
1360
1441
|
},
|
|
1361
|
-
/* @__PURE__ */
|
|
1442
|
+
/* @__PURE__ */ React14.createElement(
|
|
1362
1443
|
"svg",
|
|
1363
1444
|
{
|
|
1364
1445
|
"aria-label": "Close Icon",
|
|
@@ -1367,7 +1448,7 @@ var DialogContent = React13.forwardRef(({ className, children, persist, hideClos
|
|
|
1367
1448
|
fill: "currentColor",
|
|
1368
1449
|
viewBox: "0 0 20 20"
|
|
1369
1450
|
},
|
|
1370
|
-
/* @__PURE__ */
|
|
1451
|
+
/* @__PURE__ */ React14.createElement(
|
|
1371
1452
|
"path",
|
|
1372
1453
|
{
|
|
1373
1454
|
fillRule: "evenodd",
|
|
@@ -1376,10 +1457,10 @@ var DialogContent = React13.forwardRef(({ className, children, persist, hideClos
|
|
|
1376
1457
|
}
|
|
1377
1458
|
)
|
|
1378
1459
|
),
|
|
1379
|
-
/* @__PURE__ */
|
|
1460
|
+
/* @__PURE__ */ React14.createElement("span", { className: "hawa-sr-only" }, "Close")
|
|
1380
1461
|
)
|
|
1381
1462
|
)));
|
|
1382
|
-
var DialogCarouselContent =
|
|
1463
|
+
var DialogCarouselContent = React14.forwardRef(
|
|
1383
1464
|
({
|
|
1384
1465
|
className,
|
|
1385
1466
|
children,
|
|
@@ -1388,7 +1469,7 @@ var DialogCarouselContent = React13.forwardRef(
|
|
|
1388
1469
|
hideCloseButton,
|
|
1389
1470
|
hidePrevButton,
|
|
1390
1471
|
...props
|
|
1391
|
-
}, ref) => /* @__PURE__ */
|
|
1472
|
+
}, ref) => /* @__PURE__ */ React14.createElement(DialogPortal, null, /* @__PURE__ */ React14.createElement(DialogOverlay, null), /* @__PURE__ */ React14.createElement(
|
|
1392
1473
|
DialogPrimitive.Content,
|
|
1393
1474
|
{
|
|
1394
1475
|
onPointerDownOutside: (e) => {
|
|
@@ -1404,7 +1485,7 @@ var DialogCarouselContent = React13.forwardRef(
|
|
|
1404
1485
|
...props
|
|
1405
1486
|
},
|
|
1406
1487
|
children,
|
|
1407
|
-
/* @__PURE__ */
|
|
1488
|
+
/* @__PURE__ */ React14.createElement(
|
|
1408
1489
|
"div",
|
|
1409
1490
|
{
|
|
1410
1491
|
className: cn(
|
|
@@ -1412,7 +1493,7 @@ var DialogCarouselContent = React13.forwardRef(
|
|
|
1412
1493
|
onPrev ? "hawa-justify-between" : "hawa-justify-end"
|
|
1413
1494
|
)
|
|
1414
1495
|
},
|
|
1415
|
-
hidePrevButton ? /* @__PURE__ */
|
|
1496
|
+
hidePrevButton ? /* @__PURE__ */ React14.createElement("div", null) : /* @__PURE__ */ React14.createElement(
|
|
1416
1497
|
"div",
|
|
1417
1498
|
{
|
|
1418
1499
|
onClick: onPrev,
|
|
@@ -1421,7 +1502,7 @@ var DialogCarouselContent = React13.forwardRef(
|
|
|
1421
1502
|
props.dir === "rtl" && "hawa-rotate-180"
|
|
1422
1503
|
)
|
|
1423
1504
|
},
|
|
1424
|
-
/* @__PURE__ */
|
|
1505
|
+
/* @__PURE__ */ React14.createElement(
|
|
1425
1506
|
"svg",
|
|
1426
1507
|
{
|
|
1427
1508
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1435,10 +1516,10 @@ var DialogCarouselContent = React13.forwardRef(
|
|
|
1435
1516
|
strokeLinecap: "round",
|
|
1436
1517
|
strokeLinejoin: "round"
|
|
1437
1518
|
},
|
|
1438
|
-
/* @__PURE__ */
|
|
1519
|
+
/* @__PURE__ */ React14.createElement("path", { d: "m15 18-6-6 6-6" })
|
|
1439
1520
|
)
|
|
1440
1521
|
),
|
|
1441
|
-
!hideCloseButton && /* @__PURE__ */
|
|
1522
|
+
!hideCloseButton && /* @__PURE__ */ React14.createElement(
|
|
1442
1523
|
DialogPrimitive.Close,
|
|
1443
1524
|
{
|
|
1444
1525
|
className: cn(
|
|
@@ -1446,7 +1527,7 @@ var DialogCarouselContent = React13.forwardRef(
|
|
|
1446
1527
|
props.dir === "rtl" ? " hawa-left-4" : " hawa-right-4"
|
|
1447
1528
|
)
|
|
1448
1529
|
},
|
|
1449
|
-
/* @__PURE__ */
|
|
1530
|
+
/* @__PURE__ */ React14.createElement(
|
|
1450
1531
|
"svg",
|
|
1451
1532
|
{
|
|
1452
1533
|
"aria-label": "Close Icon",
|
|
@@ -1455,7 +1536,7 @@ var DialogCarouselContent = React13.forwardRef(
|
|
|
1455
1536
|
fill: "currentColor",
|
|
1456
1537
|
viewBox: "0 0 20 20"
|
|
1457
1538
|
},
|
|
1458
|
-
/* @__PURE__ */
|
|
1539
|
+
/* @__PURE__ */ React14.createElement(
|
|
1459
1540
|
"path",
|
|
1460
1541
|
{
|
|
1461
1542
|
fillRule: "evenodd",
|
|
@@ -1464,7 +1545,7 @@ var DialogCarouselContent = React13.forwardRef(
|
|
|
1464
1545
|
}
|
|
1465
1546
|
)
|
|
1466
1547
|
),
|
|
1467
|
-
/* @__PURE__ */
|
|
1548
|
+
/* @__PURE__ */ React14.createElement("span", { className: "hawa-sr-only" }, "Close")
|
|
1468
1549
|
)
|
|
1469
1550
|
)
|
|
1470
1551
|
))
|
|
@@ -1472,7 +1553,7 @@ var DialogCarouselContent = React13.forwardRef(
|
|
|
1472
1553
|
var DialogHeader = ({
|
|
1473
1554
|
className,
|
|
1474
1555
|
...props
|
|
1475
|
-
}) => /* @__PURE__ */
|
|
1556
|
+
}) => /* @__PURE__ */ React14.createElement(
|
|
1476
1557
|
"div",
|
|
1477
1558
|
{
|
|
1478
1559
|
className: cn(
|
|
@@ -1482,7 +1563,7 @@ var DialogHeader = ({
|
|
|
1482
1563
|
...props
|
|
1483
1564
|
}
|
|
1484
1565
|
);
|
|
1485
|
-
var DialogTitle =
|
|
1566
|
+
var DialogTitle = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React14.createElement(
|
|
1486
1567
|
DialogPrimitive.Title,
|
|
1487
1568
|
{
|
|
1488
1569
|
ref,
|
|
@@ -1493,7 +1574,7 @@ var DialogTitle = React13.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1493
1574
|
...props
|
|
1494
1575
|
}
|
|
1495
1576
|
));
|
|
1496
|
-
var DialogDescription =
|
|
1577
|
+
var DialogDescription = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React14.createElement(
|
|
1497
1578
|
DialogPrimitive.Description,
|
|
1498
1579
|
{
|
|
1499
1580
|
ref,
|
|
@@ -1507,7 +1588,7 @@ var DialogDescription = React13.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1507
1588
|
var DialogFooter = ({
|
|
1508
1589
|
className,
|
|
1509
1590
|
...props
|
|
1510
|
-
}) => /* @__PURE__ */
|
|
1591
|
+
}) => /* @__PURE__ */ React14.createElement(
|
|
1511
1592
|
"div",
|
|
1512
1593
|
{
|
|
1513
1594
|
className: cn(
|
|
@@ -1523,12 +1604,12 @@ var DialogCarousel = ({
|
|
|
1523
1604
|
children,
|
|
1524
1605
|
direction
|
|
1525
1606
|
}) => {
|
|
1526
|
-
|
|
1607
|
+
React14.useEffect(() => {
|
|
1527
1608
|
if (stepsApi) {
|
|
1528
1609
|
stepsApi.reInit();
|
|
1529
1610
|
}
|
|
1530
1611
|
}, [stepsApi, children]);
|
|
1531
|
-
return /* @__PURE__ */
|
|
1612
|
+
return /* @__PURE__ */ React14.createElement("div", { className: "hawa-overflow-hidden" }, /* @__PURE__ */ React14.createElement("div", { ref: stepsRef, dir: direction }, /* @__PURE__ */ React14.createElement(
|
|
1532
1613
|
"div",
|
|
1533
1614
|
{
|
|
1534
1615
|
className: "hawa-flex",
|
|
@@ -1536,7 +1617,7 @@ var DialogCarousel = ({
|
|
|
1536
1617
|
transition: "height 0.2s"
|
|
1537
1618
|
}
|
|
1538
1619
|
},
|
|
1539
|
-
|
|
1620
|
+
React14.Children.map(children, (child, index) => /* @__PURE__ */ React14.createElement(
|
|
1540
1621
|
"div",
|
|
1541
1622
|
{
|
|
1542
1623
|
className: cn(
|
|
@@ -1553,14 +1634,14 @@ var DialogSteps = ({
|
|
|
1553
1634
|
visibleStepRef,
|
|
1554
1635
|
children
|
|
1555
1636
|
}) => {
|
|
1556
|
-
const [dialogHeight, setDialogHeight] =
|
|
1557
|
-
|
|
1637
|
+
const [dialogHeight, setDialogHeight] = React14.useState(null);
|
|
1638
|
+
React14.useEffect(() => {
|
|
1558
1639
|
if (visibleStepRef.current) {
|
|
1559
1640
|
setDialogHeight(visibleStepRef.current.offsetHeight);
|
|
1560
1641
|
console.log("height is ", visibleStepRef.current.offsetHeight);
|
|
1561
1642
|
}
|
|
1562
1643
|
}, [currentStep, visibleStepRef]);
|
|
1563
|
-
return /* @__PURE__ */
|
|
1644
|
+
return /* @__PURE__ */ React14.createElement(
|
|
1564
1645
|
"div",
|
|
1565
1646
|
{
|
|
1566
1647
|
className: "hawa-relative hawa-overflow-clip",
|
|
@@ -1569,7 +1650,7 @@ var DialogSteps = ({
|
|
|
1569
1650
|
transition: "height 0.2s"
|
|
1570
1651
|
}
|
|
1571
1652
|
},
|
|
1572
|
-
|
|
1653
|
+
React14.Children.map(children, (child, index) => /* @__PURE__ */ React14.createElement(
|
|
1573
1654
|
"div",
|
|
1574
1655
|
{
|
|
1575
1656
|
ref: currentStep === `step-${index + 1}` ? visibleStepRef : null,
|
|
@@ -1587,7 +1668,7 @@ var DialogStep = ({
|
|
|
1587
1668
|
className,
|
|
1588
1669
|
stepRef
|
|
1589
1670
|
}) => {
|
|
1590
|
-
return /* @__PURE__ */
|
|
1671
|
+
return /* @__PURE__ */ React14.createElement(
|
|
1591
1672
|
"div",
|
|
1592
1673
|
{
|
|
1593
1674
|
id,
|
|
@@ -1598,7 +1679,7 @@ var DialogStep = ({
|
|
|
1598
1679
|
);
|
|
1599
1680
|
};
|
|
1600
1681
|
var DialogBody = ({ children, className }) => {
|
|
1601
|
-
return /* @__PURE__ */
|
|
1682
|
+
return /* @__PURE__ */ React14.createElement("div", { className: cn("hawa-py-6", className) }, children);
|
|
1602
1683
|
};
|
|
1603
1684
|
DialogBody.displayName = "DialogBody";
|
|
1604
1685
|
DialogStep.displayName = "DialogStep";
|
|
@@ -1614,10 +1695,10 @@ DialogContent.displayName = DialogPrimitive.Content.displayName;
|
|
|
1614
1695
|
DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
|
1615
1696
|
|
|
1616
1697
|
// components/elements/alert/Alert.tsx
|
|
1617
|
-
import
|
|
1698
|
+
import React16, { useRef, useState as useState2, useEffect as useEffect2 } from "react";
|
|
1618
1699
|
|
|
1619
1700
|
// components/elements/button/Button.tsx
|
|
1620
|
-
import * as
|
|
1701
|
+
import * as React15 from "react";
|
|
1621
1702
|
import { cva as cva3 } from "class-variance-authority";
|
|
1622
1703
|
var buttonVariants = cva3(
|
|
1623
1704
|
"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",
|
|
@@ -1652,7 +1733,7 @@ var buttonVariants = cva3(
|
|
|
1652
1733
|
}
|
|
1653
1734
|
}
|
|
1654
1735
|
);
|
|
1655
|
-
var Button =
|
|
1736
|
+
var Button = React15.forwardRef(
|
|
1656
1737
|
({
|
|
1657
1738
|
className,
|
|
1658
1739
|
variant,
|
|
@@ -1665,7 +1746,7 @@ var Button = React14.forwardRef(
|
|
|
1665
1746
|
}, ref) => {
|
|
1666
1747
|
const Comp = "button";
|
|
1667
1748
|
const loadingColor = variant === "outline" || variant === "ghost" || variant === "neoBrutalism" ? "hawa-bg-primary" : "hawa-bg-primary-foreground";
|
|
1668
|
-
return /* @__PURE__ */
|
|
1749
|
+
return /* @__PURE__ */ React15.createElement(
|
|
1669
1750
|
Comp,
|
|
1670
1751
|
{
|
|
1671
1752
|
className: cn(
|
|
@@ -1675,7 +1756,7 @@ var Button = React14.forwardRef(
|
|
|
1675
1756
|
ref,
|
|
1676
1757
|
...props
|
|
1677
1758
|
},
|
|
1678
|
-
isLoading ? /* @__PURE__ */
|
|
1759
|
+
isLoading ? /* @__PURE__ */ React15.createElement(
|
|
1679
1760
|
Loading,
|
|
1680
1761
|
{
|
|
1681
1762
|
design: size === "icon" || size === "smallIcon" ? "spinner" : "dots-pulse",
|
|
@@ -1736,7 +1817,7 @@ var Alert = ({
|
|
|
1736
1817
|
hyper: "hawa-text-white hawa-bg-gradient-to-tl hawa-from-pink-700 hawa-via-red-500 hawa-to-yellow-600 ",
|
|
1737
1818
|
oceanic: "hawa-text-white hawa-bg-gradient-to-bl hawa-from-green-500 hawa-via-blue-700 hawa-to-purple-500"
|
|
1738
1819
|
};
|
|
1739
|
-
return /* @__PURE__ */
|
|
1820
|
+
return /* @__PURE__ */ React16.createElement("div", { ref: alertRef }, /* @__PURE__ */ React16.createElement(
|
|
1740
1821
|
"div",
|
|
1741
1822
|
{
|
|
1742
1823
|
"data-testid": "alert",
|
|
@@ -1750,13 +1831,13 @@ var Alert = ({
|
|
|
1750
1831
|
className
|
|
1751
1832
|
)
|
|
1752
1833
|
},
|
|
1753
|
-
/* @__PURE__ */
|
|
1834
|
+
/* @__PURE__ */ React16.createElement("div", { className: "hawa-flex hawa-flex-row" }, icon && /* @__PURE__ */ React16.createElement(
|
|
1754
1835
|
"div",
|
|
1755
1836
|
{
|
|
1756
1837
|
className: direction === "rtl" ? "hawa-pl-2 hawa-pt-1" : "hawa-pr-2 hawa-pt-1"
|
|
1757
1838
|
},
|
|
1758
1839
|
icon
|
|
1759
|
-
), /* @__PURE__ */
|
|
1840
|
+
), /* @__PURE__ */ React16.createElement("div", { className: "hawa-flex hawa-flex-col" }, /* @__PURE__ */ React16.createElement(
|
|
1760
1841
|
"span",
|
|
1761
1842
|
{
|
|
1762
1843
|
className: cn(
|
|
@@ -1765,7 +1846,7 @@ var Alert = ({
|
|
|
1765
1846
|
)
|
|
1766
1847
|
},
|
|
1767
1848
|
props.title
|
|
1768
|
-
), /* @__PURE__ */
|
|
1849
|
+
), /* @__PURE__ */ React16.createElement(
|
|
1769
1850
|
"span",
|
|
1770
1851
|
{
|
|
1771
1852
|
className: cn(
|
|
@@ -1774,7 +1855,7 @@ var Alert = ({
|
|
|
1774
1855
|
)
|
|
1775
1856
|
},
|
|
1776
1857
|
props.text
|
|
1777
|
-
), props.actions && /* @__PURE__ */
|
|
1858
|
+
), props.actions && /* @__PURE__ */ React16.createElement("div", { className: "hawa-mt-2 hawa-flex hawa-flex-row hawa-gap-2" }, props.actions.map((act, index) => /* @__PURE__ */ React16.createElement(
|
|
1778
1859
|
Button,
|
|
1779
1860
|
{
|
|
1780
1861
|
key: index,
|
|
@@ -1783,7 +1864,7 @@ var Alert = ({
|
|
|
1783
1864
|
},
|
|
1784
1865
|
act.label
|
|
1785
1866
|
))))),
|
|
1786
|
-
!props.persistent && /* @__PURE__ */
|
|
1867
|
+
!props.persistent && /* @__PURE__ */ React16.createElement(
|
|
1787
1868
|
"button",
|
|
1788
1869
|
{
|
|
1789
1870
|
type: "button",
|
|
@@ -1806,8 +1887,8 @@ var Alert = ({
|
|
|
1806
1887
|
}, 200);
|
|
1807
1888
|
}
|
|
1808
1889
|
},
|
|
1809
|
-
/* @__PURE__ */
|
|
1810
|
-
/* @__PURE__ */
|
|
1890
|
+
/* @__PURE__ */ React16.createElement("span", { className: "hawa-sr-only" }, "Close"),
|
|
1891
|
+
/* @__PURE__ */ React16.createElement(
|
|
1811
1892
|
"svg",
|
|
1812
1893
|
{
|
|
1813
1894
|
"aria-label": "Close Icon",
|
|
@@ -1816,7 +1897,7 @@ var Alert = ({
|
|
|
1816
1897
|
fill: "currentColor",
|
|
1817
1898
|
viewBox: "0 0 20 20"
|
|
1818
1899
|
},
|
|
1819
|
-
/* @__PURE__ */
|
|
1900
|
+
/* @__PURE__ */ React16.createElement(
|
|
1820
1901
|
"path",
|
|
1821
1902
|
{
|
|
1822
1903
|
fillRule: "evenodd",
|
|
@@ -1830,10 +1911,10 @@ var Alert = ({
|
|
|
1830
1911
|
};
|
|
1831
1912
|
|
|
1832
1913
|
// components/elements/avatar/Avatar.tsx
|
|
1833
|
-
import
|
|
1914
|
+
import React18 from "react";
|
|
1834
1915
|
|
|
1835
1916
|
// components/elements/FileUploader.tsx
|
|
1836
|
-
import
|
|
1917
|
+
import React17, { useRef as useRef2 } from "react";
|
|
1837
1918
|
var FileUploader = ({ handleFile, className }) => {
|
|
1838
1919
|
const hiddenFileInput = useRef2(null);
|
|
1839
1920
|
const handleClick = () => {
|
|
@@ -1844,7 +1925,7 @@ var FileUploader = ({ handleFile, className }) => {
|
|
|
1844
1925
|
const fileUploaded = event.target.files[0];
|
|
1845
1926
|
handleFile(fileUploaded);
|
|
1846
1927
|
};
|
|
1847
|
-
return /* @__PURE__ */
|
|
1928
|
+
return /* @__PURE__ */ React17.createElement("div", { className }, /* @__PURE__ */ React17.createElement("div", { className: "hawa-h-full hawa-w-full", onClick: handleClick }), /* @__PURE__ */ React17.createElement(
|
|
1848
1929
|
"input",
|
|
1849
1930
|
{
|
|
1850
1931
|
type: "file",
|
|
@@ -1884,7 +1965,7 @@ var Avatar = ({
|
|
|
1884
1965
|
inherit: "hawa-rounded",
|
|
1885
1966
|
none: "hawa-rounded-none"
|
|
1886
1967
|
};
|
|
1887
|
-
return /* @__PURE__ */
|
|
1968
|
+
return /* @__PURE__ */ React18.createElement(
|
|
1888
1969
|
"div",
|
|
1889
1970
|
{
|
|
1890
1971
|
className: cn(
|
|
@@ -1894,7 +1975,7 @@ var Avatar = ({
|
|
|
1894
1975
|
className
|
|
1895
1976
|
)
|
|
1896
1977
|
},
|
|
1897
|
-
/* @__PURE__ */
|
|
1978
|
+
/* @__PURE__ */ React18.createElement(
|
|
1898
1979
|
FileUploader,
|
|
1899
1980
|
{
|
|
1900
1981
|
className: cn(
|
|
@@ -1905,7 +1986,7 @@ var Avatar = ({
|
|
|
1905
1986
|
)
|
|
1906
1987
|
}
|
|
1907
1988
|
),
|
|
1908
|
-
/* @__PURE__ */
|
|
1989
|
+
/* @__PURE__ */ React18.createElement(
|
|
1909
1990
|
"img",
|
|
1910
1991
|
{
|
|
1911
1992
|
className: cn(
|
|
@@ -1918,7 +1999,7 @@ var Avatar = ({
|
|
|
1918
1999
|
alt
|
|
1919
2000
|
}
|
|
1920
2001
|
),
|
|
1921
|
-
!src && !isUploadable && /* @__PURE__ */
|
|
2002
|
+
!src && !isUploadable && /* @__PURE__ */ React18.createElement(
|
|
1922
2003
|
"div",
|
|
1923
2004
|
{
|
|
1924
2005
|
className: cn(
|
|
@@ -1926,7 +2007,7 @@ var Avatar = ({
|
|
|
1926
2007
|
"hawa-flex hawa-flex-col hawa-items-center hawa-justify-center"
|
|
1927
2008
|
)
|
|
1928
2009
|
},
|
|
1929
|
-
icon ? icon : /* @__PURE__ */
|
|
2010
|
+
icon ? icon : /* @__PURE__ */ React18.createElement(
|
|
1930
2011
|
"svg",
|
|
1931
2012
|
{
|
|
1932
2013
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1938,15 +2019,15 @@ var Avatar = ({
|
|
|
1938
2019
|
strokeLinecap: "round",
|
|
1939
2020
|
strokeLinejoin: "round"
|
|
1940
2021
|
},
|
|
1941
|
-
/* @__PURE__ */
|
|
1942
|
-
/* @__PURE__ */
|
|
2022
|
+
/* @__PURE__ */ React18.createElement("circle", { cx: "12", cy: "8", r: "5" }),
|
|
2023
|
+
/* @__PURE__ */ React18.createElement("path", { d: "M20 21a8 8 0 1 0-16 0" })
|
|
1943
2024
|
)
|
|
1944
2025
|
)
|
|
1945
2026
|
);
|
|
1946
2027
|
};
|
|
1947
2028
|
|
|
1948
2029
|
// components/elements/dataTable/DataTable.tsx
|
|
1949
|
-
import * as
|
|
2030
|
+
import * as React22 from "react";
|
|
1950
2031
|
import {
|
|
1951
2032
|
flexRender,
|
|
1952
2033
|
getCoreRowModel,
|
|
@@ -1958,11 +2039,11 @@ import {
|
|
|
1958
2039
|
} from "@tanstack/react-table";
|
|
1959
2040
|
|
|
1960
2041
|
// components/elements/input/Input.tsx
|
|
1961
|
-
import
|
|
2042
|
+
import React20, { forwardRef as forwardRef12 } from "react";
|
|
1962
2043
|
|
|
1963
2044
|
// components/elements/label/Label.tsx
|
|
1964
|
-
import * as
|
|
1965
|
-
var Label2 =
|
|
2045
|
+
import * as React19 from "react";
|
|
2046
|
+
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(
|
|
1966
2047
|
"label",
|
|
1967
2048
|
{
|
|
1968
2049
|
ref,
|
|
@@ -1973,8 +2054,8 @@ var Label2 = React18.forwardRef(({ className, hint, hintSide, required, children
|
|
|
1973
2054
|
...props
|
|
1974
2055
|
},
|
|
1975
2056
|
children,
|
|
1976
|
-
required && /* @__PURE__ */
|
|
1977
|
-
), hint && /* @__PURE__ */
|
|
2057
|
+
required && /* @__PURE__ */ React19.createElement("span", { className: "hawa-mx-0.5 hawa-text-red-500" }, "*")
|
|
2058
|
+
), hint && /* @__PURE__ */ React19.createElement(Tooltip, { content: hint, side: hintSide }, /* @__PURE__ */ React19.createElement(
|
|
1978
2059
|
"svg",
|
|
1979
2060
|
{
|
|
1980
2061
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1986,9 +2067,9 @@ var Label2 = React18.forwardRef(({ className, hint, hintSide, required, children
|
|
|
1986
2067
|
strokeLinecap: "round",
|
|
1987
2068
|
strokeLinejoin: "round"
|
|
1988
2069
|
},
|
|
1989
|
-
/* @__PURE__ */
|
|
1990
|
-
/* @__PURE__ */
|
|
1991
|
-
/* @__PURE__ */
|
|
2070
|
+
/* @__PURE__ */ React19.createElement("circle", { cx: "12", cy: "12", r: "10" }),
|
|
2071
|
+
/* @__PURE__ */ React19.createElement("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
|
|
2072
|
+
/* @__PURE__ */ React19.createElement("path", { d: "M12 17h.01" })
|
|
1992
2073
|
))));
|
|
1993
2074
|
Label2.displayName = "Label";
|
|
1994
2075
|
|
|
@@ -2020,7 +2101,7 @@ var Input = forwardRef12(
|
|
|
2020
2101
|
};
|
|
2021
2102
|
let defaultStyle = "hawa-flex hawa-max-h-fit hawa-h-fit hawa-relative hawa-flex-col hawa-justify-center hawa-gap-0";
|
|
2022
2103
|
let defaultInputStyle = "hawa-block hawa-w-full hawa-rounded hawa-border hawa-transition-all hawa-bg-background hawa-p-3 hawa-text-sm ";
|
|
2023
|
-
return /* @__PURE__ */
|
|
2104
|
+
return /* @__PURE__ */ React20.createElement(
|
|
2024
2105
|
"div",
|
|
2025
2106
|
{
|
|
2026
2107
|
className: cn(
|
|
@@ -2031,8 +2112,8 @@ var Input = forwardRef12(
|
|
|
2031
2112
|
"hawa-w-full hawa-gap-2"
|
|
2032
2113
|
)
|
|
2033
2114
|
},
|
|
2034
|
-
props.label && /* @__PURE__ */
|
|
2035
|
-
props.isLoading ? /* @__PURE__ */
|
|
2115
|
+
props.label && /* @__PURE__ */ React20.createElement(Label2, { ...labelProps }, props.label),
|
|
2116
|
+
props.isLoading ? /* @__PURE__ */ React20.createElement("div", { className: "hawa-pb-2" }, /* @__PURE__ */ React20.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" })) : /* @__PURE__ */ React20.createElement(React20.Fragment, null, !props.hideSeparator && /* @__PURE__ */ React20.createElement(
|
|
2036
2117
|
"div",
|
|
2037
2118
|
{
|
|
2038
2119
|
className: cn(
|
|
@@ -2040,7 +2121,7 @@ var Input = forwardRef12(
|
|
|
2040
2121
|
preview ? "hawa-opacity-100" : "hawa-opacity-0"
|
|
2041
2122
|
)
|
|
2042
2123
|
}
|
|
2043
|
-
), /* @__PURE__ */
|
|
2124
|
+
), /* @__PURE__ */ React20.createElement(React20.Fragment, null, /* @__PURE__ */ React20.createElement("div", { className: "hawa-relative" }, props.startIcon && /* @__PURE__ */ React20.createElement("div", { className: "hawa-absolute hawa-start-3 hawa-top-1/2 hawa--translate-y-1/2" }, props.startIcon), props.endIcon && /* @__PURE__ */ React20.createElement(
|
|
2044
2125
|
"div",
|
|
2045
2126
|
{
|
|
2046
2127
|
className: cn(
|
|
@@ -2049,7 +2130,7 @@ var Input = forwardRef12(
|
|
|
2049
2130
|
)
|
|
2050
2131
|
},
|
|
2051
2132
|
props.endIcon
|
|
2052
|
-
), /* @__PURE__ */
|
|
2133
|
+
), /* @__PURE__ */ React20.createElement(
|
|
2053
2134
|
"input",
|
|
2054
2135
|
{
|
|
2055
2136
|
required: true,
|
|
@@ -2075,7 +2156,7 @@ var Input = forwardRef12(
|
|
|
2075
2156
|
inputProps == null ? void 0 : inputProps.className
|
|
2076
2157
|
)
|
|
2077
2158
|
}
|
|
2078
|
-
)), !forceHideHelperText && /* @__PURE__ */
|
|
2159
|
+
)), !forceHideHelperText && /* @__PURE__ */ React20.createElement(
|
|
2079
2160
|
"p",
|
|
2080
2161
|
{
|
|
2081
2162
|
className: cn(
|
|
@@ -2084,7 +2165,7 @@ var Input = forwardRef12(
|
|
|
2084
2165
|
)
|
|
2085
2166
|
},
|
|
2086
2167
|
props.helperText
|
|
2087
|
-
), !props.disabled && forceHideHelperText && /* @__PURE__ */
|
|
2168
|
+
), !props.disabled && forceHideHelperText && /* @__PURE__ */ React20.createElement(
|
|
2088
2169
|
"div",
|
|
2089
2170
|
{
|
|
2090
2171
|
className: cn(
|
|
@@ -2093,7 +2174,7 @@ var Input = forwardRef12(
|
|
|
2093
2174
|
)
|
|
2094
2175
|
},
|
|
2095
2176
|
props.helperText
|
|
2096
|
-
), showCount && /* @__PURE__ */
|
|
2177
|
+
), showCount && /* @__PURE__ */ React20.createElement(
|
|
2097
2178
|
"div",
|
|
2098
2179
|
{
|
|
2099
2180
|
className: cn(
|
|
@@ -2114,8 +2195,8 @@ var Input = forwardRef12(
|
|
|
2114
2195
|
);
|
|
2115
2196
|
|
|
2116
2197
|
// components/elements/table/Table.tsx
|
|
2117
|
-
import * as
|
|
2118
|
-
var Table =
|
|
2198
|
+
import * as React21 from "react";
|
|
2199
|
+
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(
|
|
2119
2200
|
"table",
|
|
2120
2201
|
{
|
|
2121
2202
|
ref,
|
|
@@ -2124,7 +2205,7 @@ var Table = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
2124
2205
|
}
|
|
2125
2206
|
)));
|
|
2126
2207
|
Table.displayName = "Table";
|
|
2127
|
-
var TableHeader =
|
|
2208
|
+
var TableHeader = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React21.createElement(
|
|
2128
2209
|
"thead",
|
|
2129
2210
|
{
|
|
2130
2211
|
ref,
|
|
@@ -2133,8 +2214,8 @@ var TableHeader = React20.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
2133
2214
|
}
|
|
2134
2215
|
));
|
|
2135
2216
|
TableHeader.displayName = "TableHeader";
|
|
2136
|
-
var TableHead =
|
|
2137
|
-
({ className, condensed, clickable, dir, ...props }, ref) => /* @__PURE__ */
|
|
2217
|
+
var TableHead = React21.forwardRef(
|
|
2218
|
+
({ className, condensed, clickable, dir, ...props }, ref) => /* @__PURE__ */ React21.createElement(
|
|
2138
2219
|
"th",
|
|
2139
2220
|
{
|
|
2140
2221
|
ref,
|
|
@@ -2153,9 +2234,9 @@ var TableHead = React20.forwardRef(
|
|
|
2153
2234
|
)
|
|
2154
2235
|
);
|
|
2155
2236
|
TableHead.displayName = "TableHead";
|
|
2156
|
-
var TableBody =
|
|
2237
|
+
var TableBody = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React21.createElement("tbody", { ref, className: cn("hawa-border-none", className), ...props }));
|
|
2157
2238
|
TableBody.displayName = "TableBody";
|
|
2158
|
-
var TableFooter =
|
|
2239
|
+
var TableFooter = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React21.createElement(
|
|
2159
2240
|
"tfoot",
|
|
2160
2241
|
{
|
|
2161
2242
|
ref,
|
|
@@ -2167,7 +2248,7 @@ var TableFooter = React20.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
2167
2248
|
}
|
|
2168
2249
|
));
|
|
2169
2250
|
TableFooter.displayName = "TableFooter";
|
|
2170
|
-
var TableRow =
|
|
2251
|
+
var TableRow = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React21.createElement(
|
|
2171
2252
|
"tr",
|
|
2172
2253
|
{
|
|
2173
2254
|
ref,
|
|
@@ -2181,14 +2262,14 @@ var TableRow = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
2181
2262
|
}
|
|
2182
2263
|
));
|
|
2183
2264
|
TableRow.displayName = "TableRow";
|
|
2184
|
-
var TableCell =
|
|
2265
|
+
var TableCell = React21.forwardRef(
|
|
2185
2266
|
({ className, enablePadding = true, padding = "default", ...props }, ref) => {
|
|
2186
2267
|
let paddingStyles = {
|
|
2187
2268
|
condensed: "hawa-p-0 hawa-px-4",
|
|
2188
2269
|
default: "hawa-p-4",
|
|
2189
2270
|
noPadding: "hawa-p-0"
|
|
2190
2271
|
};
|
|
2191
|
-
return /* @__PURE__ */
|
|
2272
|
+
return /* @__PURE__ */ React21.createElement(
|
|
2192
2273
|
"td",
|
|
2193
2274
|
{
|
|
2194
2275
|
ref,
|
|
@@ -2210,7 +2291,7 @@ var TableCell = React20.forwardRef(
|
|
|
2210
2291
|
}
|
|
2211
2292
|
);
|
|
2212
2293
|
TableCell.displayName = "TableCell";
|
|
2213
|
-
var TableCaption =
|
|
2294
|
+
var TableCaption = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React21.createElement(
|
|
2214
2295
|
"caption",
|
|
2215
2296
|
{
|
|
2216
2297
|
ref,
|
|
@@ -2235,16 +2316,16 @@ var DataTable = ({
|
|
|
2235
2316
|
...props
|
|
2236
2317
|
}) => {
|
|
2237
2318
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
|
|
2238
|
-
const [sorting, setSorting] =
|
|
2319
|
+
const [sorting, setSorting] = React22.useState(
|
|
2239
2320
|
props.defaultSort ? [{ id: props.defaultSort, desc: false }] : []
|
|
2240
2321
|
);
|
|
2241
|
-
const [columnFilters, setColumnFilters] =
|
|
2322
|
+
const [columnFilters, setColumnFilters] = React22.useState(
|
|
2242
2323
|
[]
|
|
2243
2324
|
);
|
|
2244
|
-
const [globalFilter, setGlobalFilter] =
|
|
2245
|
-
const [expanded, setExpanded] =
|
|
2246
|
-
const [columnVisibility, setColumnVisibility] =
|
|
2247
|
-
const [rowSelection, setRowSelection] =
|
|
2325
|
+
const [globalFilter, setGlobalFilter] = React22.useState("");
|
|
2326
|
+
const [expanded, setExpanded] = React22.useState({});
|
|
2327
|
+
const [columnVisibility, setColumnVisibility] = React22.useState({});
|
|
2328
|
+
const [rowSelection, setRowSelection] = React22.useState({});
|
|
2248
2329
|
const table = useReactTable({
|
|
2249
2330
|
data,
|
|
2250
2331
|
columns,
|
|
@@ -2273,7 +2354,7 @@ var DataTable = ({
|
|
|
2273
2354
|
label: `${item} / ${pageText}`,
|
|
2274
2355
|
value: item
|
|
2275
2356
|
}));
|
|
2276
|
-
return /* @__PURE__ */
|
|
2357
|
+
return /* @__PURE__ */ React22.createElement("div", { className: "hawa-flex hawa-w-full hawa-flex-col hawa-gap-4" }, (enableSearch || enableHideColumns) && /* @__PURE__ */ React22.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-4" }, enableSearch && /* @__PURE__ */ React22.createElement(
|
|
2277
2358
|
Input,
|
|
2278
2359
|
{
|
|
2279
2360
|
forceHideHelperText: true,
|
|
@@ -2283,14 +2364,14 @@ var DataTable = ({
|
|
|
2283
2364
|
margin: "none",
|
|
2284
2365
|
className: "hawa-w-full md:hawa-max-w-sm"
|
|
2285
2366
|
}
|
|
2286
|
-
), enableHideColumns && /* @__PURE__ */
|
|
2367
|
+
), enableHideColumns && /* @__PURE__ */ React22.createElement(DropdownMenuRoot, null, /* @__PURE__ */ React22.createElement(DropdownMenuTrigger, { asChild: true }, /* @__PURE__ */ React22.createElement(
|
|
2287
2368
|
Button,
|
|
2288
2369
|
{
|
|
2289
2370
|
variant: "outline",
|
|
2290
2371
|
className: "hawa-flex hawa-flex-row hawa-gap-2"
|
|
2291
2372
|
},
|
|
2292
2373
|
((_d = props.texts) == null ? void 0 : _d.columns) || "Columns",
|
|
2293
|
-
/* @__PURE__ */
|
|
2374
|
+
/* @__PURE__ */ React22.createElement(
|
|
2294
2375
|
"svg",
|
|
2295
2376
|
{
|
|
2296
2377
|
"aria-label": "Chevron Down Icon",
|
|
@@ -2305,15 +2386,15 @@ var DataTable = ({
|
|
|
2305
2386
|
strokeLinejoin: "round",
|
|
2306
2387
|
className: "hawa-icon hawa-rotate-90"
|
|
2307
2388
|
},
|
|
2308
|
-
/* @__PURE__ */
|
|
2389
|
+
/* @__PURE__ */ React22.createElement("path", { d: "m9 18 6-6-6-6" })
|
|
2309
2390
|
)
|
|
2310
|
-
)), /* @__PURE__ */
|
|
2391
|
+
)), /* @__PURE__ */ React22.createElement(
|
|
2311
2392
|
DropdownMenuContent,
|
|
2312
2393
|
{
|
|
2313
2394
|
align: props.direction === "rtl" ? "start" : "end"
|
|
2314
2395
|
},
|
|
2315
2396
|
table.getAllColumns().filter((column) => column.getCanHide()).map((column) => {
|
|
2316
|
-
return /* @__PURE__ */
|
|
2397
|
+
return /* @__PURE__ */ React22.createElement(
|
|
2317
2398
|
DropdownMenuCheckboxItem,
|
|
2318
2399
|
{
|
|
2319
2400
|
key: column.id,
|
|
@@ -2323,7 +2404,7 @@ var DataTable = ({
|
|
|
2323
2404
|
translateFn ? translateFn(column.id) : column.id
|
|
2324
2405
|
);
|
|
2325
2406
|
})
|
|
2326
|
-
))), props.isLoading ? /* @__PURE__ */
|
|
2407
|
+
))), props.isLoading ? /* @__PURE__ */ React22.createElement(Skeleton, { className: "hawa-h-[130px] hawa-w-full" }) : /* @__PURE__ */ React22.createElement(
|
|
2327
2408
|
"div",
|
|
2328
2409
|
{
|
|
2329
2410
|
className: cn(
|
|
@@ -2331,10 +2412,10 @@ var DataTable = ({
|
|
|
2331
2412
|
paginationPosition === "top" ? "hawa-flex-col-reverse" : "hawa-flex-col"
|
|
2332
2413
|
)
|
|
2333
2414
|
},
|
|
2334
|
-
/* @__PURE__ */
|
|
2415
|
+
/* @__PURE__ */ React22.createElement("div", { className: "hawa-rounded-md" }, /* @__PURE__ */ React22.createElement(Table, null, table.getAllColumns().length > 0 && /* @__PURE__ */ React22.createElement(TableHeader, null, table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ React22.createElement(TableRow, { key: headerGroup.id }, headerGroup.headers.map((header) => {
|
|
2335
2416
|
var _a2;
|
|
2336
2417
|
let isSortable = (_a2 = header.column.columnDef.meta) == null ? void 0 : _a2.sortable;
|
|
2337
|
-
return /* @__PURE__ */
|
|
2418
|
+
return /* @__PURE__ */ React22.createElement(
|
|
2338
2419
|
TableHead,
|
|
2339
2420
|
{
|
|
2340
2421
|
dir: props.direction,
|
|
@@ -2347,7 +2428,7 @@ var DataTable = ({
|
|
|
2347
2428
|
header.getContext()
|
|
2348
2429
|
)
|
|
2349
2430
|
);
|
|
2350
|
-
})))), /* @__PURE__ */
|
|
2431
|
+
})))), /* @__PURE__ */ React22.createElement(TableBody, null, ((_e = table.getRowModel().rows) == null ? void 0 : _e.length) ? table.getRowModel().rows.map((row) => /* @__PURE__ */ React22.createElement(
|
|
2351
2432
|
TableRow,
|
|
2352
2433
|
{
|
|
2353
2434
|
key: row.id,
|
|
@@ -2355,7 +2436,7 @@ var DataTable = ({
|
|
|
2355
2436
|
},
|
|
2356
2437
|
row.getVisibleCells().map((cell) => {
|
|
2357
2438
|
var _a2;
|
|
2358
|
-
return /* @__PURE__ */
|
|
2439
|
+
return /* @__PURE__ */ React22.createElement(
|
|
2359
2440
|
TableCell,
|
|
2360
2441
|
{
|
|
2361
2442
|
dir: props.direction,
|
|
@@ -2368,7 +2449,7 @@ var DataTable = ({
|
|
|
2368
2449
|
)
|
|
2369
2450
|
);
|
|
2370
2451
|
})
|
|
2371
|
-
)) : /* @__PURE__ */
|
|
2452
|
+
)) : /* @__PURE__ */ React22.createElement(TableRow, null, /* @__PURE__ */ React22.createElement(
|
|
2372
2453
|
TableCell,
|
|
2373
2454
|
{
|
|
2374
2455
|
colSpan: columns.length,
|
|
@@ -2376,16 +2457,16 @@ var DataTable = ({
|
|
|
2376
2457
|
},
|
|
2377
2458
|
(_f = props.texts) == null ? void 0 : _f.noData
|
|
2378
2459
|
))))),
|
|
2379
|
-
/* @__PURE__ */
|
|
2460
|
+
/* @__PURE__ */ React22.createElement("div", { className: "hawa-flex hawa-items-center hawa-justify-between" }, !props.showCount && /* @__PURE__ */ React22.createElement("div", { className: "hawa-flex hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-text-sm hawa-text-muted-foreground" }), props.showCount && /* @__PURE__ */ React22.createElement(
|
|
2380
2461
|
"div",
|
|
2381
2462
|
{
|
|
2382
2463
|
className: "text-sm text-muted-foreground",
|
|
2383
2464
|
dir: props.direction
|
|
2384
2465
|
},
|
|
2385
|
-
/* @__PURE__ */
|
|
2466
|
+
/* @__PURE__ */ React22.createElement("span", null, (_g = props.texts) == null ? void 0 : _g.total),
|
|
2386
2467
|
" ",
|
|
2387
|
-
/* @__PURE__ */
|
|
2388
|
-
), /* @__PURE__ */
|
|
2468
|
+
/* @__PURE__ */ React22.createElement("span", null, table.getFilteredRowModel().rows.length.toLocaleString())
|
|
2469
|
+
), /* @__PURE__ */ React22.createElement("div", { className: "hawa-flex hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 " }, enableGoTo && /* @__PURE__ */ React22.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-2" }, /* @__PURE__ */ React22.createElement("span", { className: "hawa-text-sm" }, (_h = props.texts) == null ? void 0 : _h.goTo), /* @__PURE__ */ React22.createElement(
|
|
2389
2470
|
"input",
|
|
2390
2471
|
{
|
|
2391
2472
|
max: table.getPageCount(),
|
|
@@ -2402,7 +2483,7 @@ var DataTable = ({
|
|
|
2402
2483
|
},
|
|
2403
2484
|
className: "hawa-w-16 hawa-rounded hawa-border hawa-p-1 hawa-px-2 hawa-text-sm"
|
|
2404
2485
|
}
|
|
2405
|
-
)), /* @__PURE__ */
|
|
2486
|
+
)), /* @__PURE__ */ React22.createElement(
|
|
2406
2487
|
DropdownMenu,
|
|
2407
2488
|
{
|
|
2408
2489
|
size: "sm",
|
|
@@ -2415,7 +2496,7 @@ var DataTable = ({
|
|
|
2415
2496
|
{ label: `40 / ${pageText}`, value: 40 },
|
|
2416
2497
|
{ label: `50 / ${pageText}`, value: 50 }
|
|
2417
2498
|
],
|
|
2418
|
-
trigger: /* @__PURE__ */
|
|
2499
|
+
trigger: /* @__PURE__ */ React22.createElement(
|
|
2419
2500
|
Button,
|
|
2420
2501
|
{
|
|
2421
2502
|
variant: "outline",
|
|
@@ -2426,7 +2507,7 @@ var DataTable = ({
|
|
|
2426
2507
|
),
|
|
2427
2508
|
onItemSelect: (e) => table.setPageSize(Number(e))
|
|
2428
2509
|
}
|
|
2429
|
-
), table.getPageCount() > 1 && /* @__PURE__ */
|
|
2510
|
+
), table.getPageCount() > 1 && /* @__PURE__ */ React22.createElement(React22.Fragment, null, /* @__PURE__ */ React22.createElement("div", { className: "hawa-flex hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-text-sm " }, /* @__PURE__ */ React22.createElement("span", { className: "hawa-flex hawa-items-center hawa-gap-1" }, /* @__PURE__ */ React22.createElement("div", null, (_j = props.texts) == null ? void 0 : _j.page), /* @__PURE__ */ React22.createElement("div", { className: "hawa-flex hawa-flex-row hawa-gap-1" }, /* @__PURE__ */ React22.createElement("span", { className: "hawa-font-bold" }, table.getState().pagination.pageIndex + 1), /* @__PURE__ */ React22.createElement("span", null, (_k = props.texts) == null ? void 0 : _k.of), /* @__PURE__ */ React22.createElement("span", { className: "hawa-font-bold" }, table.getPageCount())))), /* @__PURE__ */ React22.createElement(
|
|
2430
2511
|
Button,
|
|
2431
2512
|
{
|
|
2432
2513
|
"aria-label": "Next Table Page",
|
|
@@ -2438,7 +2519,7 @@ var DataTable = ({
|
|
|
2438
2519
|
props.direction === "rtl" && "hawa-rotate-180"
|
|
2439
2520
|
)
|
|
2440
2521
|
},
|
|
2441
|
-
/* @__PURE__ */
|
|
2522
|
+
/* @__PURE__ */ React22.createElement(
|
|
2442
2523
|
"svg",
|
|
2443
2524
|
{
|
|
2444
2525
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2451,10 +2532,10 @@ var DataTable = ({
|
|
|
2451
2532
|
strokeLinecap: "round",
|
|
2452
2533
|
strokeLinejoin: "round"
|
|
2453
2534
|
},
|
|
2454
|
-
/* @__PURE__ */
|
|
2455
|
-
/* @__PURE__ */
|
|
2535
|
+
/* @__PURE__ */ React22.createElement("path", { d: "m11 17-5-5 5-5" }),
|
|
2536
|
+
/* @__PURE__ */ React22.createElement("path", { d: "m18 17-5-5 5-5" })
|
|
2456
2537
|
)
|
|
2457
|
-
), /* @__PURE__ */
|
|
2538
|
+
), /* @__PURE__ */ React22.createElement(
|
|
2458
2539
|
Button,
|
|
2459
2540
|
{
|
|
2460
2541
|
"aria-label": "Previous Table Page",
|
|
@@ -2466,7 +2547,7 @@ var DataTable = ({
|
|
|
2466
2547
|
props.direction === "rtl" && "hawa-rotate-180"
|
|
2467
2548
|
)
|
|
2468
2549
|
},
|
|
2469
|
-
/* @__PURE__ */
|
|
2550
|
+
/* @__PURE__ */ React22.createElement(
|
|
2470
2551
|
"svg",
|
|
2471
2552
|
{
|
|
2472
2553
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2480,9 +2561,9 @@ var DataTable = ({
|
|
|
2480
2561
|
strokeLinecap: "round",
|
|
2481
2562
|
strokeLinejoin: "round"
|
|
2482
2563
|
},
|
|
2483
|
-
/* @__PURE__ */
|
|
2564
|
+
/* @__PURE__ */ React22.createElement("path", { d: "m15 18-6-6 6-6" })
|
|
2484
2565
|
)
|
|
2485
|
-
), /* @__PURE__ */
|
|
2566
|
+
), /* @__PURE__ */ React22.createElement(
|
|
2486
2567
|
Button,
|
|
2487
2568
|
{
|
|
2488
2569
|
"aria-label": "Next Table Page",
|
|
@@ -2494,7 +2575,7 @@ var DataTable = ({
|
|
|
2494
2575
|
props.direction === "ltr" && "hawa-rotate-180"
|
|
2495
2576
|
)
|
|
2496
2577
|
},
|
|
2497
|
-
/* @__PURE__ */
|
|
2578
|
+
/* @__PURE__ */ React22.createElement(
|
|
2498
2579
|
"svg",
|
|
2499
2580
|
{
|
|
2500
2581
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2508,9 +2589,9 @@ var DataTable = ({
|
|
|
2508
2589
|
strokeLinecap: "round",
|
|
2509
2590
|
strokeLinejoin: "round"
|
|
2510
2591
|
},
|
|
2511
|
-
/* @__PURE__ */
|
|
2592
|
+
/* @__PURE__ */ React22.createElement("path", { d: "m15 18-6-6 6-6" })
|
|
2512
2593
|
)
|
|
2513
|
-
), /* @__PURE__ */
|
|
2594
|
+
), /* @__PURE__ */ React22.createElement(
|
|
2514
2595
|
Button,
|
|
2515
2596
|
{
|
|
2516
2597
|
"aria-label": "Next Table Page",
|
|
@@ -2522,7 +2603,7 @@ var DataTable = ({
|
|
|
2522
2603
|
props.direction === "ltr" && "hawa-rotate-180"
|
|
2523
2604
|
)
|
|
2524
2605
|
},
|
|
2525
|
-
/* @__PURE__ */
|
|
2606
|
+
/* @__PURE__ */ React22.createElement(
|
|
2526
2607
|
"svg",
|
|
2527
2608
|
{
|
|
2528
2609
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2535,15 +2616,15 @@ var DataTable = ({
|
|
|
2535
2616
|
strokeLinecap: "round",
|
|
2536
2617
|
strokeLinejoin: "round"
|
|
2537
2618
|
},
|
|
2538
|
-
/* @__PURE__ */
|
|
2539
|
-
/* @__PURE__ */
|
|
2619
|
+
/* @__PURE__ */ React22.createElement("path", { d: "m11 17-5-5 5-5" }),
|
|
2620
|
+
/* @__PURE__ */ React22.createElement("path", { d: "m18 17-5-5 5-5" })
|
|
2540
2621
|
)
|
|
2541
2622
|
))))
|
|
2542
2623
|
));
|
|
2543
2624
|
};
|
|
2544
2625
|
|
|
2545
2626
|
// components/elements/backToTop/BackToTop.tsx
|
|
2546
|
-
import
|
|
2627
|
+
import React23, { useState as useState4, useEffect as useEffect3, useRef as useRef3 } from "react";
|
|
2547
2628
|
var BackToTop = ({ ...props }) => {
|
|
2548
2629
|
const [visible, setVisible] = useState4(false);
|
|
2549
2630
|
const [rect, _setRect] = useState4(null);
|
|
@@ -2609,7 +2690,7 @@ var BackToTop = ({ ...props }) => {
|
|
|
2609
2690
|
};
|
|
2610
2691
|
return style;
|
|
2611
2692
|
};
|
|
2612
|
-
return /* @__PURE__ */
|
|
2693
|
+
return /* @__PURE__ */ React23.createElement(
|
|
2613
2694
|
Button,
|
|
2614
2695
|
{
|
|
2615
2696
|
className: cn(
|
|
@@ -2624,7 +2705,7 @@ var BackToTop = ({ ...props }) => {
|
|
|
2624
2705
|
ref: self,
|
|
2625
2706
|
size: "icon"
|
|
2626
2707
|
},
|
|
2627
|
-
/* @__PURE__ */
|
|
2708
|
+
/* @__PURE__ */ React23.createElement(
|
|
2628
2709
|
"svg",
|
|
2629
2710
|
{
|
|
2630
2711
|
className: cn(
|
|
@@ -2634,13 +2715,13 @@ var BackToTop = ({ ...props }) => {
|
|
|
2634
2715
|
viewBox: "0 0 20 20",
|
|
2635
2716
|
fill: "currentColor"
|
|
2636
2717
|
},
|
|
2637
|
-
/* @__PURE__ */
|
|
2718
|
+
/* @__PURE__ */ React23.createElement("path", { d: "M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" })
|
|
2638
2719
|
)
|
|
2639
2720
|
);
|
|
2640
2721
|
};
|
|
2641
2722
|
|
|
2642
2723
|
// components/elements/radio/Radio.tsx
|
|
2643
|
-
import
|
|
2724
|
+
import React24, { useState as useState5, useRef as useRef4, useEffect as useEffect4 } from "react";
|
|
2644
2725
|
var Radio = ({
|
|
2645
2726
|
design = "default",
|
|
2646
2727
|
width = "default",
|
|
@@ -2669,7 +2750,7 @@ var Radio = ({
|
|
|
2669
2750
|
default: "hawa-max-w-fit",
|
|
2670
2751
|
full: "hawa-w-full"
|
|
2671
2752
|
};
|
|
2672
|
-
const [parentDirection, setParentDirection] =
|
|
2753
|
+
const [parentDirection, setParentDirection] = React24.useState(
|
|
2673
2754
|
null
|
|
2674
2755
|
);
|
|
2675
2756
|
const parentRef = useRef4(null);
|
|
@@ -2683,7 +2764,7 @@ var Radio = ({
|
|
|
2683
2764
|
});
|
|
2684
2765
|
switch (design) {
|
|
2685
2766
|
case "tabs":
|
|
2686
|
-
return /* @__PURE__ */
|
|
2767
|
+
return /* @__PURE__ */ React24.createElement(
|
|
2687
2768
|
"ul",
|
|
2688
2769
|
{
|
|
2689
2770
|
ref: parentRef,
|
|
@@ -2695,7 +2776,7 @@ var Radio = ({
|
|
|
2695
2776
|
tabsContainerClassName
|
|
2696
2777
|
)
|
|
2697
2778
|
},
|
|
2698
|
-
(_b = props.options) == null ? void 0 : _b.map((opt, o) => /* @__PURE__ */
|
|
2779
|
+
(_b = props.options) == null ? void 0 : _b.map((opt, o) => /* @__PURE__ */ React24.createElement(
|
|
2699
2780
|
"li",
|
|
2700
2781
|
{
|
|
2701
2782
|
"aria-current": "page",
|
|
@@ -2723,13 +2804,13 @@ var Radio = ({
|
|
|
2723
2804
|
))
|
|
2724
2805
|
);
|
|
2725
2806
|
case "bordered":
|
|
2726
|
-
return /* @__PURE__ */
|
|
2807
|
+
return /* @__PURE__ */ React24.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ React24.createElement(
|
|
2727
2808
|
"div",
|
|
2728
2809
|
{
|
|
2729
2810
|
key: i,
|
|
2730
2811
|
className: "hawa-rounded hawa-border hawa-border-gray-200 "
|
|
2731
2812
|
},
|
|
2732
|
-
/* @__PURE__ */
|
|
2813
|
+
/* @__PURE__ */ React24.createElement(
|
|
2733
2814
|
"div",
|
|
2734
2815
|
{
|
|
2735
2816
|
className: cn(
|
|
@@ -2738,7 +2819,7 @@ var Radio = ({
|
|
|
2738
2819
|
),
|
|
2739
2820
|
key: i + 1
|
|
2740
2821
|
},
|
|
2741
|
-
/* @__PURE__ */
|
|
2822
|
+
/* @__PURE__ */ React24.createElement(
|
|
2742
2823
|
"input",
|
|
2743
2824
|
{
|
|
2744
2825
|
disabled: opt.disabled,
|
|
@@ -2748,7 +2829,7 @@ var Radio = ({
|
|
|
2748
2829
|
name: "bordered-radio"
|
|
2749
2830
|
}
|
|
2750
2831
|
),
|
|
2751
|
-
/* @__PURE__ */
|
|
2832
|
+
/* @__PURE__ */ React24.createElement(
|
|
2752
2833
|
"label",
|
|
2753
2834
|
{
|
|
2754
2835
|
htmlFor: opt.value.toString(),
|
|
@@ -2762,7 +2843,7 @@ var Radio = ({
|
|
|
2762
2843
|
)
|
|
2763
2844
|
)));
|
|
2764
2845
|
case "cards":
|
|
2765
|
-
return /* @__PURE__ */
|
|
2846
|
+
return /* @__PURE__ */ React24.createElement("ul", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, (_c = props.options) == null ? void 0 : _c.map((opt, o) => /* @__PURE__ */ React24.createElement("li", { key: o }, /* @__PURE__ */ React24.createElement(
|
|
2766
2847
|
"input",
|
|
2767
2848
|
{
|
|
2768
2849
|
type: "radio",
|
|
@@ -2773,7 +2854,7 @@ var Radio = ({
|
|
|
2773
2854
|
required: true,
|
|
2774
2855
|
disabled: opt.disabled
|
|
2775
2856
|
}
|
|
2776
|
-
), /* @__PURE__ */
|
|
2857
|
+
), /* @__PURE__ */ React24.createElement(
|
|
2777
2858
|
"label",
|
|
2778
2859
|
{
|
|
2779
2860
|
htmlFor: opt.value.toString(),
|
|
@@ -2782,10 +2863,10 @@ var Radio = ({
|
|
|
2782
2863
|
opt.disabled ? "hawa-opacity-50" : "hawa-cursor-pointer hover:hawa-bg-gray-100 hover:hawa-text-gray-600 dark:hover:hawa-bg-gray-700 dark:hover:hawa-text-gray-300"
|
|
2783
2864
|
)
|
|
2784
2865
|
},
|
|
2785
|
-
/* @__PURE__ */
|
|
2866
|
+
/* @__PURE__ */ React24.createElement("div", { className: "hawa-block hawa-h-full hawa-w-full" }, /* @__PURE__ */ React24.createElement("div", { className: "hawa-w-full hawa-text-lg hawa-font-semibold" }, opt.label), /* @__PURE__ */ React24.createElement("div", { className: "hawa-w-full" }, opt.sublabel))
|
|
2786
2867
|
))));
|
|
2787
2868
|
default:
|
|
2788
|
-
return /* @__PURE__ */
|
|
2869
|
+
return /* @__PURE__ */ React24.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ React24.createElement(Label2, { ...labelProps }, props.label), /* @__PURE__ */ React24.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-2") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ React24.createElement(
|
|
2789
2870
|
"div",
|
|
2790
2871
|
{
|
|
2791
2872
|
className: cn(
|
|
@@ -2794,7 +2875,7 @@ var Radio = ({
|
|
|
2794
2875
|
),
|
|
2795
2876
|
key: i + 1
|
|
2796
2877
|
},
|
|
2797
|
-
/* @__PURE__ */
|
|
2878
|
+
/* @__PURE__ */ React24.createElement(
|
|
2798
2879
|
"input",
|
|
2799
2880
|
{
|
|
2800
2881
|
disabled: opt.disabled,
|
|
@@ -2812,7 +2893,7 @@ var Radio = ({
|
|
|
2812
2893
|
}
|
|
2813
2894
|
}
|
|
2814
2895
|
),
|
|
2815
|
-
/* @__PURE__ */
|
|
2896
|
+
/* @__PURE__ */ React24.createElement(
|
|
2816
2897
|
"label",
|
|
2817
2898
|
{
|
|
2818
2899
|
htmlFor: opt.value.toString(),
|
|
@@ -2823,7 +2904,7 @@ var Radio = ({
|
|
|
2823
2904
|
},
|
|
2824
2905
|
opt.label
|
|
2825
2906
|
)
|
|
2826
|
-
))), /* @__PURE__ */
|
|
2907
|
+
))), /* @__PURE__ */ React24.createElement(
|
|
2827
2908
|
"p",
|
|
2828
2909
|
{
|
|
2829
2910
|
className: cn(
|
|
@@ -2837,13 +2918,13 @@ var Radio = ({
|
|
|
2837
2918
|
};
|
|
2838
2919
|
|
|
2839
2920
|
// components/elements/combobox/Combobox.tsx
|
|
2840
|
-
import * as
|
|
2921
|
+
import * as React27 from "react";
|
|
2841
2922
|
import * as PopoverPrimitive2 from "@radix-ui/react-popover";
|
|
2842
2923
|
|
|
2843
2924
|
// components/elements/command/Command.tsx
|
|
2844
|
-
import * as
|
|
2925
|
+
import * as React25 from "react";
|
|
2845
2926
|
import { Command as CommandPrimitive } from "cmdk";
|
|
2846
|
-
var Command =
|
|
2927
|
+
var Command = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React25.createElement(
|
|
2847
2928
|
CommandPrimitive,
|
|
2848
2929
|
{
|
|
2849
2930
|
ref,
|
|
@@ -2856,15 +2937,15 @@ var Command = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
2856
2937
|
));
|
|
2857
2938
|
Command.displayName = CommandPrimitive.displayName;
|
|
2858
2939
|
var CommandDialog = ({ children, ...props }) => {
|
|
2859
|
-
return /* @__PURE__ */
|
|
2940
|
+
return /* @__PURE__ */ React25.createElement(Dialog, { ...props }, /* @__PURE__ */ React25.createElement(DialogContent, { className: "hawa-overflow-hidden hawa-p-0 hawa-shadow-lg" }, /* @__PURE__ */ React25.createElement(Command, { className: "[&_[cmdk-group-heading]]:hawa-px-2 [&_[cmdk-group-heading]]:hawa-font-medium [&_[cmdk-group-heading]]:hawa-text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:hawa-pt-0 [&_[cmdk-group]]:hawa-px-2 [&_[cmdk-input-wrapper]_svg]:hawa-h-5 [&_[cmdk-input-wrapper]_svg]:hawa-w-5 [&_[cmdk-input]]:hawa-h-12 [&_[cmdk-item]]:hawa-px-2 [&_[cmdk-item]]:hawa-py-3 [&_[cmdk-item]_svg]:hawa-h-5 [&_[cmdk-item]_svg]:hawa-w-5" }, children)));
|
|
2860
2941
|
};
|
|
2861
|
-
var CommandInput =
|
|
2942
|
+
var CommandInput = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React25.createElement(
|
|
2862
2943
|
"div",
|
|
2863
2944
|
{
|
|
2864
2945
|
className: "hawa-flex hawa-items-center hawa-border-b hawa-px-3",
|
|
2865
2946
|
"cmdk-input-wrapper": ""
|
|
2866
2947
|
},
|
|
2867
|
-
/* @__PURE__ */
|
|
2948
|
+
/* @__PURE__ */ React25.createElement(
|
|
2868
2949
|
"svg",
|
|
2869
2950
|
{
|
|
2870
2951
|
"aria-label": "Search Icon",
|
|
@@ -2879,10 +2960,10 @@ var CommandInput = React24.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
2879
2960
|
strokeLinejoin: "round",
|
|
2880
2961
|
className: "hawa-icon hawa-mr-2 hawa-shrink-0 hawa-opacity-50"
|
|
2881
2962
|
},
|
|
2882
|
-
/* @__PURE__ */
|
|
2883
|
-
/* @__PURE__ */
|
|
2963
|
+
/* @__PURE__ */ React25.createElement("circle", { cx: "11", cy: "11", r: "8" }),
|
|
2964
|
+
/* @__PURE__ */ React25.createElement("path", { d: "m21 21-4.3-4.3" })
|
|
2884
2965
|
),
|
|
2885
|
-
/* @__PURE__ */
|
|
2966
|
+
/* @__PURE__ */ React25.createElement(
|
|
2886
2967
|
CommandPrimitive.Input,
|
|
2887
2968
|
{
|
|
2888
2969
|
ref,
|
|
@@ -2895,7 +2976,7 @@ var CommandInput = React24.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
2895
2976
|
)
|
|
2896
2977
|
));
|
|
2897
2978
|
CommandInput.displayName = CommandPrimitive.Input.displayName;
|
|
2898
|
-
var CommandList =
|
|
2979
|
+
var CommandList = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React25.createElement(
|
|
2899
2980
|
CommandPrimitive.List,
|
|
2900
2981
|
{
|
|
2901
2982
|
ref,
|
|
@@ -2907,7 +2988,7 @@ var CommandList = React24.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
2907
2988
|
}
|
|
2908
2989
|
));
|
|
2909
2990
|
CommandList.displayName = CommandPrimitive.List.displayName;
|
|
2910
|
-
var CommandEmpty =
|
|
2991
|
+
var CommandEmpty = React25.forwardRef((props, ref) => /* @__PURE__ */ React25.createElement(
|
|
2911
2992
|
CommandPrimitive.Empty,
|
|
2912
2993
|
{
|
|
2913
2994
|
ref,
|
|
@@ -2916,7 +2997,7 @@ var CommandEmpty = React24.forwardRef((props, ref) => /* @__PURE__ */ React24.cr
|
|
|
2916
2997
|
}
|
|
2917
2998
|
));
|
|
2918
2999
|
CommandEmpty.displayName = CommandPrimitive.Empty.displayName;
|
|
2919
|
-
var CommandGroup =
|
|
3000
|
+
var CommandGroup = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React25.createElement(
|
|
2920
3001
|
CommandPrimitive.Group,
|
|
2921
3002
|
{
|
|
2922
3003
|
ref,
|
|
@@ -2928,7 +3009,7 @@ var CommandGroup = React24.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
2928
3009
|
}
|
|
2929
3010
|
));
|
|
2930
3011
|
CommandGroup.displayName = CommandPrimitive.Group.displayName;
|
|
2931
|
-
var CommandSeparator =
|
|
3012
|
+
var CommandSeparator = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React25.createElement(
|
|
2932
3013
|
CommandPrimitive.Separator,
|
|
2933
3014
|
{
|
|
2934
3015
|
ref,
|
|
@@ -2937,7 +3018,7 @@ var CommandSeparator = React24.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
2937
3018
|
}
|
|
2938
3019
|
));
|
|
2939
3020
|
CommandSeparator.displayName = CommandPrimitive.Separator.displayName;
|
|
2940
|
-
var CommandItem =
|
|
3021
|
+
var CommandItem = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React25.createElement(
|
|
2941
3022
|
CommandPrimitive.Item,
|
|
2942
3023
|
{
|
|
2943
3024
|
ref,
|
|
@@ -2953,7 +3034,7 @@ var CommandShortcut = ({
|
|
|
2953
3034
|
className,
|
|
2954
3035
|
...props
|
|
2955
3036
|
}) => {
|
|
2956
|
-
return /* @__PURE__ */
|
|
3037
|
+
return /* @__PURE__ */ React25.createElement(
|
|
2957
3038
|
"span",
|
|
2958
3039
|
{
|
|
2959
3040
|
className: cn(
|
|
@@ -2967,9 +3048,9 @@ var CommandShortcut = ({
|
|
|
2967
3048
|
CommandShortcut.displayName = "CommandShortcut";
|
|
2968
3049
|
|
|
2969
3050
|
// components/elements/popover/Popover.tsx
|
|
2970
|
-
import * as
|
|
3051
|
+
import * as React26 from "react";
|
|
2971
3052
|
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
2972
|
-
var PopoverContent =
|
|
3053
|
+
var PopoverContent = React26.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React26.createElement(PopoverPrimitive.Portal, null, /* @__PURE__ */ React26.createElement(
|
|
2973
3054
|
PopoverPrimitive.Content,
|
|
2974
3055
|
{
|
|
2975
3056
|
ref,
|
|
@@ -3001,7 +3082,7 @@ var Popover = ({
|
|
|
3001
3082
|
trigger: "var(--radix-popover-trigger-width)",
|
|
3002
3083
|
default: "auto"
|
|
3003
3084
|
};
|
|
3004
|
-
return /* @__PURE__ */
|
|
3085
|
+
return /* @__PURE__ */ React26.createElement(PopoverPrimitive.Root, { open, ...props }, /* @__PURE__ */ React26.createElement(
|
|
3005
3086
|
PopoverPrimitive.Trigger,
|
|
3006
3087
|
{
|
|
3007
3088
|
className: "hawa-w-full",
|
|
@@ -3009,7 +3090,7 @@ var Popover = ({
|
|
|
3009
3090
|
...triggerProps
|
|
3010
3091
|
},
|
|
3011
3092
|
trigger
|
|
3012
|
-
), /* @__PURE__ */
|
|
3093
|
+
), /* @__PURE__ */ React26.createElement(
|
|
3013
3094
|
PopoverContent,
|
|
3014
3095
|
{
|
|
3015
3096
|
side,
|
|
@@ -3027,7 +3108,7 @@ var Popover = ({
|
|
|
3027
3108
|
var PopoverTrigger = PopoverPrimitive.Trigger;
|
|
3028
3109
|
|
|
3029
3110
|
// components/elements/combobox/Combobox.tsx
|
|
3030
|
-
var Combobox =
|
|
3111
|
+
var Combobox = React27.forwardRef(
|
|
3031
3112
|
({
|
|
3032
3113
|
labelKey = "label",
|
|
3033
3114
|
valueKey = "value",
|
|
@@ -3038,8 +3119,8 @@ var Combobox = React26.forwardRef(
|
|
|
3038
3119
|
...props
|
|
3039
3120
|
}, ref) => {
|
|
3040
3121
|
var _a, _b, _c;
|
|
3041
|
-
const [open, setOpen] =
|
|
3042
|
-
const [value, setValue] =
|
|
3122
|
+
const [open, setOpen] = React27.useState(false);
|
|
3123
|
+
const [value, setValue] = React27.useState(defaultValue);
|
|
3043
3124
|
function getProperty(obj, key) {
|
|
3044
3125
|
return obj[key];
|
|
3045
3126
|
}
|
|
@@ -3048,7 +3129,7 @@ var Combobox = React26.forwardRef(
|
|
|
3048
3129
|
setOpen(open2);
|
|
3049
3130
|
}
|
|
3050
3131
|
};
|
|
3051
|
-
return /* @__PURE__ */
|
|
3132
|
+
return /* @__PURE__ */ React27.createElement(
|
|
3052
3133
|
"div",
|
|
3053
3134
|
{
|
|
3054
3135
|
className: cn(
|
|
@@ -3056,8 +3137,8 @@ var Combobox = React26.forwardRef(
|
|
|
3056
3137
|
props.width === "fit" ? "hawa-w-fit" : "hawa-w-full"
|
|
3057
3138
|
)
|
|
3058
3139
|
},
|
|
3059
|
-
props.label && /* @__PURE__ */
|
|
3060
|
-
/* @__PURE__ */
|
|
3140
|
+
props.label && /* @__PURE__ */ React27.createElement(Label2, { ...labelProps }, props.label),
|
|
3141
|
+
/* @__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(
|
|
3061
3142
|
"div",
|
|
3062
3143
|
{
|
|
3063
3144
|
className: cn(
|
|
@@ -3065,7 +3146,7 @@ var Combobox = React26.forwardRef(
|
|
|
3065
3146
|
props.preview ? "hawa-opacity-100" : "hawa-opacity-0"
|
|
3066
3147
|
)
|
|
3067
3148
|
}
|
|
3068
|
-
), /* @__PURE__ */
|
|
3149
|
+
), /* @__PURE__ */ React27.createElement(
|
|
3069
3150
|
"button",
|
|
3070
3151
|
{
|
|
3071
3152
|
role: "combobox",
|
|
@@ -3079,7 +3160,7 @@ var Combobox = React26.forwardRef(
|
|
|
3079
3160
|
data.find((item) => item[valueKey] === value) || {},
|
|
3080
3161
|
labelKey
|
|
3081
3162
|
) : ((_a = props.texts) == null ? void 0 : _a.placeholder) || "...",
|
|
3082
|
-
/* @__PURE__ */
|
|
3163
|
+
/* @__PURE__ */ React27.createElement(
|
|
3083
3164
|
"svg",
|
|
3084
3165
|
{
|
|
3085
3166
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3095,9 +3176,9 @@ var Combobox = React26.forwardRef(
|
|
|
3095
3176
|
strokeLinecap: "round",
|
|
3096
3177
|
strokeLinejoin: "round"
|
|
3097
3178
|
},
|
|
3098
|
-
/* @__PURE__ */
|
|
3179
|
+
/* @__PURE__ */ React27.createElement("path", { d: "m6 9 6 6 6-6" })
|
|
3099
3180
|
)
|
|
3100
|
-
), /* @__PURE__ */
|
|
3181
|
+
), /* @__PURE__ */ React27.createElement(
|
|
3101
3182
|
"p",
|
|
3102
3183
|
{
|
|
3103
3184
|
className: cn(
|
|
@@ -3106,17 +3187,17 @@ var Combobox = React26.forwardRef(
|
|
|
3106
3187
|
)
|
|
3107
3188
|
},
|
|
3108
3189
|
props.helperText
|
|
3109
|
-
))), /* @__PURE__ */
|
|
3190
|
+
))), /* @__PURE__ */ React27.createElement(
|
|
3110
3191
|
PopoverContent,
|
|
3111
3192
|
{
|
|
3112
3193
|
className: cn("popover-w-parent", props.helperText && "-hawa-mt-4")
|
|
3113
3194
|
},
|
|
3114
|
-
/* @__PURE__ */
|
|
3195
|
+
/* @__PURE__ */ React27.createElement(Command, null, !props.hideInput && /* @__PURE__ */ React27.createElement(
|
|
3115
3196
|
CommandInput,
|
|
3116
3197
|
{
|
|
3117
3198
|
placeholder: ((_b = props.texts) == null ? void 0 : _b.searchPlaceholder) || "Search"
|
|
3118
3199
|
}
|
|
3119
|
-
), /* @__PURE__ */
|
|
3200
|
+
), /* @__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(
|
|
3120
3201
|
CommandItem,
|
|
3121
3202
|
{
|
|
3122
3203
|
key: i,
|
|
@@ -3131,7 +3212,7 @@ var Combobox = React26.forwardRef(
|
|
|
3131
3212
|
setOpen(false);
|
|
3132
3213
|
}
|
|
3133
3214
|
},
|
|
3134
|
-
/* @__PURE__ */
|
|
3215
|
+
/* @__PURE__ */ React27.createElement(
|
|
3135
3216
|
"svg",
|
|
3136
3217
|
{
|
|
3137
3218
|
"aria-label": "Check Icon",
|
|
@@ -3149,7 +3230,7 @@ var Combobox = React26.forwardRef(
|
|
|
3149
3230
|
value === getProperty(item, valueKey) ? "hawa-opacity-100" : "hawa-opacity-0"
|
|
3150
3231
|
)
|
|
3151
3232
|
},
|
|
3152
|
-
/* @__PURE__ */
|
|
3233
|
+
/* @__PURE__ */ React27.createElement("polyline", { points: "20 6 9 17 4 12" })
|
|
3153
3234
|
),
|
|
3154
3235
|
getProperty(item, labelKey)
|
|
3155
3236
|
))))
|
|
@@ -3159,8 +3240,8 @@ var Combobox = React26.forwardRef(
|
|
|
3159
3240
|
);
|
|
3160
3241
|
|
|
3161
3242
|
// components/elements/textarea/Textarea.tsx
|
|
3162
|
-
import * as
|
|
3163
|
-
var Textarea =
|
|
3243
|
+
import * as React28 from "react";
|
|
3244
|
+
var Textarea = React28.forwardRef(
|
|
3164
3245
|
({
|
|
3165
3246
|
className,
|
|
3166
3247
|
labelProps,
|
|
@@ -3170,7 +3251,7 @@ var Textarea = React27.forwardRef(
|
|
|
3170
3251
|
countPosition = "bottom",
|
|
3171
3252
|
...props
|
|
3172
3253
|
}, ref) => {
|
|
3173
|
-
return /* @__PURE__ */
|
|
3254
|
+
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(
|
|
3174
3255
|
"textarea",
|
|
3175
3256
|
{
|
|
3176
3257
|
className: cn(
|
|
@@ -3180,7 +3261,7 @@ var Textarea = React27.forwardRef(
|
|
|
3180
3261
|
ref,
|
|
3181
3262
|
...textareaProps
|
|
3182
3263
|
}
|
|
3183
|
-
), /* @__PURE__ */
|
|
3264
|
+
), /* @__PURE__ */ React28.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, !forceHideHelperText && /* @__PURE__ */ React28.createElement(
|
|
3184
3265
|
"p",
|
|
3185
3266
|
{
|
|
3186
3267
|
className: cn(
|
|
@@ -3189,7 +3270,7 @@ var Textarea = React27.forwardRef(
|
|
|
3189
3270
|
)
|
|
3190
3271
|
},
|
|
3191
3272
|
props.helperText
|
|
3192
|
-
), showCount && /* @__PURE__ */
|
|
3273
|
+
), showCount && /* @__PURE__ */ React28.createElement(
|
|
3193
3274
|
"div",
|
|
3194
3275
|
{
|
|
3195
3276
|
className: cn(
|
|
@@ -3208,7 +3289,7 @@ var Textarea = React27.forwardRef(
|
|
|
3208
3289
|
Textarea.displayName = "Textarea";
|
|
3209
3290
|
|
|
3210
3291
|
// components/elements/fileDropzone/FileDropzone.tsx
|
|
3211
|
-
import
|
|
3292
|
+
import React29, { useEffect as useEffect5, useState as useState7 } from "react";
|
|
3212
3293
|
import { useDropzone } from "react-dropzone";
|
|
3213
3294
|
import clsx2 from "clsx";
|
|
3214
3295
|
var FileDropzone = ({
|
|
@@ -3286,7 +3367,7 @@ var FileDropzone = ({
|
|
|
3286
3367
|
const errs = fileRejections.map((rej, i) => {
|
|
3287
3368
|
switch (rej.errors[0].code) {
|
|
3288
3369
|
case "file-too-large":
|
|
3289
|
-
return /* @__PURE__ */
|
|
3370
|
+
return /* @__PURE__ */ React29.createElement(
|
|
3290
3371
|
Alert,
|
|
3291
3372
|
{
|
|
3292
3373
|
key: i,
|
|
@@ -3296,7 +3377,7 @@ var FileDropzone = ({
|
|
|
3296
3377
|
}
|
|
3297
3378
|
);
|
|
3298
3379
|
case "too-many-files":
|
|
3299
|
-
return /* @__PURE__ */
|
|
3380
|
+
return /* @__PURE__ */ React29.createElement(
|
|
3300
3381
|
Alert,
|
|
3301
3382
|
{
|
|
3302
3383
|
key: i,
|
|
@@ -3306,7 +3387,7 @@ var FileDropzone = ({
|
|
|
3306
3387
|
}
|
|
3307
3388
|
);
|
|
3308
3389
|
case "file-invalid-type":
|
|
3309
|
-
return /* @__PURE__ */
|
|
3390
|
+
return /* @__PURE__ */ React29.createElement(
|
|
3310
3391
|
Alert,
|
|
3311
3392
|
{
|
|
3312
3393
|
key: i,
|
|
@@ -3316,7 +3397,7 @@ var FileDropzone = ({
|
|
|
3316
3397
|
}
|
|
3317
3398
|
);
|
|
3318
3399
|
default:
|
|
3319
|
-
return /* @__PURE__ */
|
|
3400
|
+
return /* @__PURE__ */ React29.createElement(
|
|
3320
3401
|
Alert,
|
|
3321
3402
|
{
|
|
3322
3403
|
key: i,
|
|
@@ -3327,7 +3408,7 @@ var FileDropzone = ({
|
|
|
3327
3408
|
);
|
|
3328
3409
|
}
|
|
3329
3410
|
});
|
|
3330
|
-
const thumbs = files == null ? void 0 : files.map((file, index) => /* @__PURE__ */
|
|
3411
|
+
const thumbs = files == null ? void 0 : files.map((file, index) => /* @__PURE__ */ React29.createElement("div", { className: "hawa-relative hawa-rounded", key: index }, /* @__PURE__ */ React29.createElement(
|
|
3331
3412
|
"button",
|
|
3332
3413
|
{
|
|
3333
3414
|
onClick: (e) => {
|
|
@@ -3340,7 +3421,7 @@ var FileDropzone = ({
|
|
|
3340
3421
|
className: "hawa-absolute hawa-left-0 hawa-ml-auto hawa-inline-flex hawa-items-center hawa-rounded-inner hawa-rounded-bl-none hawa-rounded-tr-none hawa-bg-gray-900 hawa-p-1.5 hawa-text-sm hawa-text-gray-400 hawa-transition-all hover:hawa-bg-gray-200 hover:hawa-text-gray-900 dark:hover:hawa-bg-gray-600 dark:hover:hawa-text-white",
|
|
3341
3422
|
"data-modal-toggle": "defaultModal"
|
|
3342
3423
|
},
|
|
3343
|
-
/* @__PURE__ */
|
|
3424
|
+
/* @__PURE__ */ React29.createElement(
|
|
3344
3425
|
"svg",
|
|
3345
3426
|
{
|
|
3346
3427
|
"aria-hidden": "true",
|
|
@@ -3348,7 +3429,7 @@ var FileDropzone = ({
|
|
|
3348
3429
|
fill: "currentColor",
|
|
3349
3430
|
viewBox: "0 0 20 20"
|
|
3350
3431
|
},
|
|
3351
|
-
/* @__PURE__ */
|
|
3432
|
+
/* @__PURE__ */ React29.createElement(
|
|
3352
3433
|
"path",
|
|
3353
3434
|
{
|
|
3354
3435
|
fillRule: "evenodd",
|
|
@@ -3357,8 +3438,8 @@ var FileDropzone = ({
|
|
|
3357
3438
|
}
|
|
3358
3439
|
)
|
|
3359
3440
|
),
|
|
3360
|
-
/* @__PURE__ */
|
|
3361
|
-
), /* @__PURE__ */
|
|
3441
|
+
/* @__PURE__ */ React29.createElement("span", { className: "hawa-sr-only" }, "Close modal")
|
|
3442
|
+
), /* @__PURE__ */ React29.createElement(
|
|
3362
3443
|
"div",
|
|
3363
3444
|
{
|
|
3364
3445
|
style: {
|
|
@@ -3377,7 +3458,7 @@ var FileDropzone = ({
|
|
|
3377
3458
|
key: file.name
|
|
3378
3459
|
}
|
|
3379
3460
|
)));
|
|
3380
|
-
return /* @__PURE__ */
|
|
3461
|
+
return /* @__PURE__ */ React29.createElement("div", null, label && /* @__PURE__ */ React29.createElement("div", { className: "hawa-mb-2 hawa-block hawa-text-sm hawa-font-medium hawa-text-gray-900 dark:hawa-text-gray-300" }, label), /* @__PURE__ */ React29.createElement(
|
|
3381
3462
|
"div",
|
|
3382
3463
|
{
|
|
3383
3464
|
className: clsx2(
|
|
@@ -3385,7 +3466,7 @@ var FileDropzone = ({
|
|
|
3385
3466
|
isDragActive ? "hawa-bg-muted" : "hawa-bg-muted/20 hover:hawa-bg-muted/50 "
|
|
3386
3467
|
)
|
|
3387
3468
|
},
|
|
3388
|
-
/* @__PURE__ */
|
|
3469
|
+
/* @__PURE__ */ React29.createElement("div", { ...getRootProps({}) }, /* @__PURE__ */ React29.createElement("p", { ...getInputProps() }), /* @__PURE__ */ React29.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-gap-2 hawa-pt-4 hawa-text-center" }, /* @__PURE__ */ React29.createElement(
|
|
3389
3470
|
"svg",
|
|
3390
3471
|
{
|
|
3391
3472
|
stroke: "currentColor",
|
|
@@ -3397,28 +3478,28 @@ var FileDropzone = ({
|
|
|
3397
3478
|
height: "1.5em",
|
|
3398
3479
|
width: "1.5em"
|
|
3399
3480
|
},
|
|
3400
|
-
/* @__PURE__ */
|
|
3401
|
-
/* @__PURE__ */
|
|
3402
|
-
/* @__PURE__ */
|
|
3403
|
-
/* @__PURE__ */
|
|
3404
|
-
/* @__PURE__ */
|
|
3405
|
-
/* @__PURE__ */
|
|
3406
|
-
/* @__PURE__ */
|
|
3407
|
-
/* @__PURE__ */
|
|
3408
|
-
/* @__PURE__ */
|
|
3409
|
-
/* @__PURE__ */
|
|
3410
|
-
), typeof texts.clickHereToUpload === "function" ? texts.clickHereToUpload() : texts.clickHereToUpload), /* @__PURE__ */
|
|
3411
|
-
acceptedFiles.length > 0 && /* @__PURE__ */
|
|
3412
|
-
acceptedFiles.length > 0 && thumbs && showPreview ? /* @__PURE__ */
|
|
3413
|
-
/* @__PURE__ */
|
|
3414
|
-
), disclaimer && /* @__PURE__ */
|
|
3481
|
+
/* @__PURE__ */ React29.createElement("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }),
|
|
3482
|
+
/* @__PURE__ */ React29.createElement("path", { d: "M19 11v-2a2 2 0 0 0 -2 -2h-8a2 2 0 0 0 -2 2v8a2 2 0 0 0 2 2h2" }),
|
|
3483
|
+
/* @__PURE__ */ React29.createElement("path", { d: "M13 13l9 3l-4 2l-2 4l-3 -9" }),
|
|
3484
|
+
/* @__PURE__ */ React29.createElement("path", { d: "M3 3l0 .01" }),
|
|
3485
|
+
/* @__PURE__ */ React29.createElement("path", { d: "M7 3l0 .01" }),
|
|
3486
|
+
/* @__PURE__ */ React29.createElement("path", { d: "M11 3l0 .01" }),
|
|
3487
|
+
/* @__PURE__ */ React29.createElement("path", { d: "M15 3l0 .01" }),
|
|
3488
|
+
/* @__PURE__ */ React29.createElement("path", { d: "M3 7l0 .01" }),
|
|
3489
|
+
/* @__PURE__ */ React29.createElement("path", { d: "M3 11l0 .01" }),
|
|
3490
|
+
/* @__PURE__ */ React29.createElement("path", { d: "M3 15l0 .01" })
|
|
3491
|
+
), typeof texts.clickHereToUpload === "function" ? texts.clickHereToUpload() : texts.clickHereToUpload), /* @__PURE__ */ React29.createElement("div", { className: "hawa-select-none hawa-pt-2 hawa-text-center hawa-text-xs" }, texts.acceptedFileTypes, " ", accept.split(",")), /* @__PURE__ */ React29.createElement("div", { className: "hawa-select-none hawa-pb-2 hawa-pt-1 hawa-text-center hawa-text-xs" }, texts.maxFileSize, " ", max)),
|
|
3492
|
+
acceptedFiles.length > 0 && /* @__PURE__ */ React29.createElement("div", { className: "hawa-flex hawa-justify-center hawa-rounded-lg hawa-p-2 " }, /* @__PURE__ */ React29.createElement(Button, { onClick: clearAllFiles }, "Clear All")),
|
|
3493
|
+
acceptedFiles.length > 0 && thumbs && showPreview ? /* @__PURE__ */ React29.createElement("aside", { className: "hawa-flex hawa-flex-row hawa-flex-wrap hawa-justify-center hawa-gap-2 hawa-rounded-lg hawa-p-2" }, thumbs) : null,
|
|
3494
|
+
/* @__PURE__ */ React29.createElement("div", { className: "px-4" }, ((_b = (_a = fileRejections[0]) == null ? void 0 : _a.errors[0]) == null ? void 0 : _b.code) && errs)
|
|
3495
|
+
), disclaimer && /* @__PURE__ */ React29.createElement("div", { className: "hawa-mt-2 hawa-text-sm hawa-text-muted-foreground/50" }, (_c = texts.disclaimer) != null ? _c : "By uploading a file you agree to our", " ", /* @__PURE__ */ React29.createElement(
|
|
3415
3496
|
"a",
|
|
3416
3497
|
{
|
|
3417
3498
|
href: termsLink,
|
|
3418
3499
|
className: "clickable-link hawa-text-muted-foreground/50"
|
|
3419
3500
|
},
|
|
3420
3501
|
(_d = texts.terms) != null ? _d : "Terms"
|
|
3421
|
-
), " ", (_e = texts.and) != null ? _e : "and", " ", /* @__PURE__ */
|
|
3502
|
+
), " ", (_e = texts.and) != null ? _e : "and", " ", /* @__PURE__ */ React29.createElement(
|
|
3422
3503
|
"a",
|
|
3423
3504
|
{
|
|
3424
3505
|
href: privacyLink,
|
|
@@ -3429,9 +3510,9 @@ var FileDropzone = ({
|
|
|
3429
3510
|
};
|
|
3430
3511
|
|
|
3431
3512
|
// components/elements/sortButton/SortButton.tsx
|
|
3432
|
-
import
|
|
3513
|
+
import React30 from "react";
|
|
3433
3514
|
var SortButton = (props) => {
|
|
3434
|
-
return /* @__PURE__ */
|
|
3515
|
+
return /* @__PURE__ */ React30.createElement(
|
|
3435
3516
|
Button,
|
|
3436
3517
|
{
|
|
3437
3518
|
variant: "ghost",
|
|
@@ -3443,7 +3524,7 @@ var SortButton = (props) => {
|
|
|
3443
3524
|
onClick: props.onSort
|
|
3444
3525
|
},
|
|
3445
3526
|
props.label,
|
|
3446
|
-
/* @__PURE__ */
|
|
3527
|
+
/* @__PURE__ */ React30.createElement(
|
|
3447
3528
|
"svg",
|
|
3448
3529
|
{
|
|
3449
3530
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3455,10 +3536,10 @@ var SortButton = (props) => {
|
|
|
3455
3536
|
strokeLinejoin: "round",
|
|
3456
3537
|
className: props.condensed ? "hawa-h-3 hawa-w-3" : "hawa-icon"
|
|
3457
3538
|
},
|
|
3458
|
-
/* @__PURE__ */
|
|
3459
|
-
/* @__PURE__ */
|
|
3460
|
-
/* @__PURE__ */
|
|
3461
|
-
/* @__PURE__ */
|
|
3539
|
+
/* @__PURE__ */ React30.createElement("path", { d: "m21 16-4 4-4-4" }),
|
|
3540
|
+
/* @__PURE__ */ React30.createElement("path", { d: "M17 20V4" }),
|
|
3541
|
+
/* @__PURE__ */ React30.createElement("path", { d: "m3 8 4-4 4 4" }),
|
|
3542
|
+
/* @__PURE__ */ React30.createElement("path", { d: "M7 4v16" })
|
|
3462
3543
|
)
|
|
3463
3544
|
);
|
|
3464
3545
|
};
|
|
@@ -3466,89 +3547,6 @@ var SortButton = (props) => {
|
|
|
3466
3547
|
// components/elements/tabs/Tabs.tsx
|
|
3467
3548
|
import * as React31 from "react";
|
|
3468
3549
|
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
3469
|
-
|
|
3470
|
-
// components/elements/Chip.tsx
|
|
3471
|
-
import React30 from "react";
|
|
3472
|
-
var Chip = React30.forwardRef(
|
|
3473
|
-
({
|
|
3474
|
-
label,
|
|
3475
|
-
size = "normal",
|
|
3476
|
-
icon,
|
|
3477
|
-
color,
|
|
3478
|
-
radius = "inherit",
|
|
3479
|
-
dotType,
|
|
3480
|
-
...rest
|
|
3481
|
-
}, ref) => {
|
|
3482
|
-
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 ";
|
|
3483
|
-
let radiusStyles = {
|
|
3484
|
-
inherit: " hawa-rounded",
|
|
3485
|
-
full: "hawa-rounded-full",
|
|
3486
|
-
none: "hawa-rounded-none"
|
|
3487
|
-
};
|
|
3488
|
-
let sizeStyles = {
|
|
3489
|
-
small: "hawa-h-[15px] hawa-leading-4 hawa-px-0 hawa-py-0 hawa-text-[9px] hawa-gap-0.5 ",
|
|
3490
|
-
normal: "hawa-h-fit hawa-text-xs",
|
|
3491
|
-
large: "hawa-text-base"
|
|
3492
|
-
};
|
|
3493
|
-
let dotStyles = {
|
|
3494
|
-
small: "hawa-flex hawa-h-1 hawa-w-1 hawa-rounded-full",
|
|
3495
|
-
normal: "hawa-flex hawa-h-2 hawa-w-2 hawa-rounded-full",
|
|
3496
|
-
large: "hawa-flex hawa-h-3 hawa-w-3 hawa-rounded-full"
|
|
3497
|
-
};
|
|
3498
|
-
let dotTypeStyles = {
|
|
3499
|
-
available: "hawa-bg-green-500",
|
|
3500
|
-
unavailable: "hawa-bg-red-500"
|
|
3501
|
-
};
|
|
3502
|
-
let colorStyles = {
|
|
3503
|
-
green: "hawa-bg-green-100 hawa-text-green-500 dark:hawa-bg-green-400 dark:hawa-text-green-800",
|
|
3504
|
-
blue: "hawa-bg-blue-100 hawa-text-blue-500 dark:hawa-bg-blue-400 dark:hawa-text-blue-100",
|
|
3505
|
-
red: "hawa-bg-red-100 hawa-text-red-500 dark:hawa-bg-red-400 dark:hawa-text-red-100",
|
|
3506
|
-
yellow: "hawa-bg-yellow-100 hawa-text-yellow-600 dark:hawa-bg-yellow-400 dark:hawa-text-yellow-800",
|
|
3507
|
-
orange: "hawa-bg-orange-100 hawa-text-orange-500 dark:hawa-bg-orange-400 dark:hawa-text-orange-100",
|
|
3508
|
-
purple: "hawa-bg-purple-100 hawa-text-purple-500 dark:hawa-bg-purple-400 dark:hawa-text-purple-100",
|
|
3509
|
-
cyan: "hawa-bg-cyan-100 hawa-text-cyan-800 dark:hawa-bg-cyan-400 dark:hawa-text-cyan-800",
|
|
3510
|
-
hyper: "hawa-text-white hawa-bg-gradient-to-tl hawa-from-pink-500 hawa-via-red-500 hawa-to-yellow-500 ",
|
|
3511
|
-
oceanic: "hawa-text-white hawa-bg-gradient-to-bl hawa-from-green-300 hawa-via-blue-500 hawa-to-purple-600"
|
|
3512
|
-
};
|
|
3513
|
-
if (label) {
|
|
3514
|
-
return /* @__PURE__ */ React30.createElement(
|
|
3515
|
-
"span",
|
|
3516
|
-
{
|
|
3517
|
-
...rest,
|
|
3518
|
-
ref,
|
|
3519
|
-
className: cn(
|
|
3520
|
-
defaultStyles,
|
|
3521
|
-
sizeStyles[size],
|
|
3522
|
-
radiusStyles[radius],
|
|
3523
|
-
color ? colorStyles[color] : "hawa-border hawa-bg-none"
|
|
3524
|
-
)
|
|
3525
|
-
},
|
|
3526
|
-
dotType && /* @__PURE__ */ React30.createElement(
|
|
3527
|
-
"span",
|
|
3528
|
-
{
|
|
3529
|
-
className: cn(dotStyles[size], dotTypeStyles[dotType])
|
|
3530
|
-
}
|
|
3531
|
-
),
|
|
3532
|
-
icon && icon,
|
|
3533
|
-
label
|
|
3534
|
-
);
|
|
3535
|
-
} else {
|
|
3536
|
-
return /* @__PURE__ */ React30.createElement(
|
|
3537
|
-
"span",
|
|
3538
|
-
{
|
|
3539
|
-
...rest,
|
|
3540
|
-
ref,
|
|
3541
|
-
className: cn(
|
|
3542
|
-
"hawa-h-2 hawa-w-2 hawa-rounded-full",
|
|
3543
|
-
color ? colorStyles[color] : "hawa-border hawa-bg-none"
|
|
3544
|
-
)
|
|
3545
|
-
}
|
|
3546
|
-
);
|
|
3547
|
-
}
|
|
3548
|
-
}
|
|
3549
|
-
);
|
|
3550
|
-
|
|
3551
|
-
// components/elements/tabs/Tabs.tsx
|
|
3552
3550
|
var TabsContext = React31.createContext({ orientation: "vertical" });
|
|
3553
3551
|
var Tabs = React31.forwardRef(({ className, orientation, ...props }, ref) => /* @__PURE__ */ React31.createElement(
|
|
3554
3552
|
TabsPrimitive.Root,
|
|
@@ -3976,426 +3974,168 @@ var CheckboxElement = React34.forwardRef(({ radius = "inherit", size = "default"
|
|
|
3976
3974
|
});
|
|
3977
3975
|
CheckboxElement.displayName = CheckboxPrimitive.Root.displayName;
|
|
3978
3976
|
|
|
3979
|
-
// components/elements/
|
|
3980
|
-
import
|
|
3981
|
-
|
|
3982
|
-
|
|
3983
|
-
|
|
3977
|
+
// components/elements/progress/Progress.tsx
|
|
3978
|
+
import * as React35 from "react";
|
|
3979
|
+
import * as ProgressPrimitive from "@radix-ui/react-progress";
|
|
3980
|
+
var Progress = React35.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ React35.createElement(
|
|
3981
|
+
ProgressPrimitive.Root,
|
|
3982
|
+
{
|
|
3983
|
+
ref,
|
|
3984
|
+
className: cn(
|
|
3985
|
+
"hawa-relative hawa-h-4 hawa-w-full hawa-overflow-hidden hawa-rounded hawa-bg-secondary",
|
|
3986
|
+
className
|
|
3987
|
+
),
|
|
3988
|
+
...props
|
|
3989
|
+
},
|
|
3990
|
+
/* @__PURE__ */ React35.createElement(
|
|
3991
|
+
ProgressPrimitive.Indicator,
|
|
3992
|
+
{
|
|
3993
|
+
className: "hawa-h-full hawa-w-full hawa-flex-1 hawa-bg-primary hawa-transition-all",
|
|
3994
|
+
style: { transform: `translateX(-${100 - (value || 0)}%)` }
|
|
3995
|
+
}
|
|
3996
|
+
)
|
|
3997
|
+
));
|
|
3998
|
+
Progress.displayName = ProgressPrimitive.Root.displayName;
|
|
3999
|
+
|
|
4000
|
+
// components/elements/breadcrumb/Breadcrumb.tsx
|
|
4001
|
+
import React36 from "react";
|
|
4002
|
+
var Breadcrumb = ({
|
|
4003
|
+
breadcrumbLinks,
|
|
4004
|
+
separator = ">"
|
|
4005
|
+
}) => {
|
|
4006
|
+
return /* @__PURE__ */ React36.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 hawa-text-sm" }, breadcrumbLinks.map((singleBreadcrumbLink, index) => /* @__PURE__ */ React36.createElement(
|
|
3984
4007
|
"div",
|
|
3985
4008
|
{
|
|
3986
|
-
|
|
3987
|
-
|
|
3988
|
-
backgroundImage: `url(${props.blank ? "" : props.cardImage})`
|
|
3989
|
-
},
|
|
3990
|
-
onMouseEnter: () => setHovered(true),
|
|
3991
|
-
onMouseLeave: () => setHovered(false)
|
|
4009
|
+
key: index,
|
|
4010
|
+
className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-2"
|
|
3992
4011
|
},
|
|
3993
|
-
|
|
3994
|
-
"
|
|
4012
|
+
/* @__PURE__ */ React36.createElement(
|
|
4013
|
+
"a",
|
|
3995
4014
|
{
|
|
3996
|
-
|
|
3997
|
-
|
|
3998
|
-
fill: "currentColor",
|
|
3999
|
-
strokeWidth: "0",
|
|
4000
|
-
viewBox: "0 0 24 24",
|
|
4001
|
-
height: "1em",
|
|
4002
|
-
width: "1em",
|
|
4003
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
4015
|
+
href: singleBreadcrumbLink.href,
|
|
4016
|
+
className: index + 1 === breadcrumbLinks.length ? "hawa-pointer-events-none" : "hawa-underline-offset-4 hawa-transition-all hover:hawa-text-primary hover:hawa-underline hover:hawa-decoration-2"
|
|
4004
4017
|
},
|
|
4005
|
-
|
|
4006
|
-
)
|
|
4007
|
-
/* @__PURE__ */
|
|
4008
|
-
|
|
4009
|
-
), /* @__PURE__ */ React35.createElement(
|
|
4010
|
-
"div",
|
|
4011
|
-
{
|
|
4012
|
-
className: `hawa-flex hawa-flex-row hawa-justify-between hawa-text-sm hawa-transition-all hawa-duration-200 ${hovered ? "hawa-opacity-100" : "hawa-opacity-0"}`
|
|
4013
|
-
},
|
|
4014
|
-
props.bottomElement
|
|
4015
|
-
));
|
|
4018
|
+
singleBreadcrumbLink.label
|
|
4019
|
+
),
|
|
4020
|
+
index != breadcrumbLinks.length - 1 ? typeof separator == "string" ? /* @__PURE__ */ React36.createElement("div", null, separator) : /* @__PURE__ */ React36.createElement("div", null, separator) : null
|
|
4021
|
+
)));
|
|
4016
4022
|
};
|
|
4017
4023
|
|
|
4018
|
-
// components/elements/
|
|
4019
|
-
import
|
|
4020
|
-
var
|
|
4021
|
-
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
|
|
4026
|
-
let duration = 0;
|
|
4027
|
-
useEffect7(() => {
|
|
4028
|
-
if (duration) {
|
|
4029
|
-
const timeoutHide = setTimeout(() => {
|
|
4030
|
-
setClosed(true);
|
|
4031
|
-
}, duration);
|
|
4032
|
-
const timeoutDestroy = setTimeout(() => {
|
|
4033
|
-
setClosed(true);
|
|
4034
|
-
if (adRef.current) {
|
|
4035
|
-
adRef.current.removeChild(adRef.current.children[0]);
|
|
4036
|
-
}
|
|
4037
|
-
}, duration + 1e3);
|
|
4038
|
-
return () => {
|
|
4039
|
-
clearTimeout(timeoutHide);
|
|
4040
|
-
clearTimeout(timeoutDestroy);
|
|
4041
|
-
};
|
|
4024
|
+
// components/elements/appStores/AppStores.tsx
|
|
4025
|
+
import React37 from "react";
|
|
4026
|
+
var AppStores = (props) => {
|
|
4027
|
+
return /* @__PURE__ */ React37.createElement("div", { className: "hawa-flex hawa-justify-center" }, /* @__PURE__ */ React37.createElement("div", null, props.store === "apple" ? /* @__PURE__ */ React37.createElement("div", { className: "hawa-mt-3 hawa-flex hawa-h-14 hawa-w-48 hawa-items-center hawa-justify-center hawa-rounded-lg hawa-bg-black hawa-text-white dark:hawa-bg-white dark:hawa-text-black" }, /* @__PURE__ */ React37.createElement("div", { className: "hawa-mr-3" }, /* @__PURE__ */ React37.createElement("svg", { viewBox: "0 0 384 512", width: "30" }, /* @__PURE__ */ React37.createElement(
|
|
4028
|
+
"path",
|
|
4029
|
+
{
|
|
4030
|
+
fill: "currentColor",
|
|
4031
|
+
d: "M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"
|
|
4042
4032
|
}
|
|
4043
|
-
},
|
|
4044
|
-
|
|
4045
|
-
horizontal: "hawa-flex hawa-flex-row hawa-max-w-xl hawa-rounded hawa-border hawa-bg-card hawa-p-2 hawa-gap-2 hawa-items-center hawa-relative ",
|
|
4046
|
-
vertical: "hawa-flex hawa-flex-col hawa-max-w-[200px] hawa-justify-start hawa-rounded hawa-border hawa-bg-card hawa-gap-2 hawa-p-2 hawa-relative"
|
|
4047
|
-
};
|
|
4048
|
-
let imageStyles = {
|
|
4049
|
-
horizontal: "hawa-w-auto hawa-h-full hawa-bg-blue-500 hawa-rounded-inner",
|
|
4050
|
-
vertical: "hawa-bg-blue-500 hawa-rounded-inner hawa-w-auto "
|
|
4051
|
-
};
|
|
4052
|
-
return /* @__PURE__ */ React36.createElement("div", { ref: adRef }, /* @__PURE__ */ React36.createElement(
|
|
4053
|
-
"div",
|
|
4033
|
+
))), /* @__PURE__ */ React37.createElement("div", null, /* @__PURE__ */ React37.createElement("div", { className: "hawa-text-xs" }, "Download on the"), /* @__PURE__ */ React37.createElement("div", { className: "hawa--mt-1 hawa-font-sans hawa-text-2xl hawa-font-semibold" }, "App Store"))) : /* @__PURE__ */ React37.createElement("div", { className: "hawa-mt-3 hawa-flex hawa-h-14 hawa-w-48 hawa-items-center hawa-justify-center hawa-rounded-lg hawa-border hawa-border-black hawa-bg-black hawa-text-white dark:hawa-bg-white dark:hawa-text-black" }, /* @__PURE__ */ React37.createElement("div", { className: "hawa-mr-3" }, /* @__PURE__ */ React37.createElement("svg", { viewBox: "30 336.7 120.9 129.2", width: "30" }, /* @__PURE__ */ React37.createElement(
|
|
4034
|
+
"path",
|
|
4054
4035
|
{
|
|
4055
|
-
|
|
4056
|
-
|
|
4057
|
-
}
|
|
4058
|
-
|
|
4059
|
-
|
|
4060
|
-
{
|
|
4061
|
-
src: props.imageURL ? props.imageURL : "https://via.placeholder.com/50",
|
|
4062
|
-
className: imageStyles[orientation]
|
|
4063
|
-
}
|
|
4064
|
-
)),
|
|
4065
|
-
/* @__PURE__ */ React36.createElement("div", { className: "hawa-w-full hawa-text-xs" }, /* @__PURE__ */ React36.createElement("div", { className: "hawa-font-bold" }, props.title), /* @__PURE__ */ React36.createElement("div", { className: "hawa-text-[12px]" }, props.description)),
|
|
4066
|
-
props.canHide && /* @__PURE__ */ React36.createElement(
|
|
4067
|
-
"span",
|
|
4068
|
-
{
|
|
4069
|
-
onClick: (e) => {
|
|
4070
|
-
e.stopPropagation();
|
|
4071
|
-
if (props.canHide) {
|
|
4072
|
-
setClosed(true);
|
|
4073
|
-
setTimeout(() => {
|
|
4074
|
-
if (adRef.current) {
|
|
4075
|
-
adRef.current.removeChild(adRef.current.children[0]);
|
|
4076
|
-
}
|
|
4077
|
-
}, 200);
|
|
4078
|
-
} else {
|
|
4079
|
-
if (props.handleCantHide) {
|
|
4080
|
-
props.handleCantHide();
|
|
4081
|
-
}
|
|
4082
|
-
}
|
|
4083
|
-
},
|
|
4084
|
-
className: "hawa-absolute hawa-right-0 hawa-top-0 hawa-h-fit hawa-cursor-pointer hawa-select-none hawa-rounded-bl-lg hawa-rounded-tr-lg hawa-bg-primary/50 hawa-px-2.5 hawa-py-0.5 hawa-text-[10px] hawa-font-semibold hawa-text-primary-foreground"
|
|
4085
|
-
},
|
|
4086
|
-
"Hide"
|
|
4087
|
-
)
|
|
4088
|
-
));
|
|
4089
|
-
};
|
|
4090
|
-
|
|
4091
|
-
// components/elements/cards/PricingCard.tsx
|
|
4092
|
-
import React37 from "react";
|
|
4093
|
-
var PricingCard = ({
|
|
4094
|
-
size = "medium",
|
|
4095
|
-
direction = "ltr",
|
|
4096
|
-
endButton = true,
|
|
4097
|
-
recommended,
|
|
4098
|
-
currentPlan = false,
|
|
4099
|
-
...props
|
|
4100
|
-
}) => {
|
|
4101
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i;
|
|
4102
|
-
let cardSizes = {
|
|
4103
|
-
small: "hawa-w-full hawa-max-w-sm hawa-rounded hawa-border dark:hawa-border-gray-700 hawa-bg-background ",
|
|
4104
|
-
medium: "hawa-w-full hawa-rounded hawa-min-w-fit hawa-border dark:hawa-border-gray-700 hawa-bg-background ",
|
|
4105
|
-
large: "hawa-w-full hawa-max-w-lg hawa-rounded hawa-border dark:hawa-border-gray-700 hawa-bg-background "
|
|
4106
|
-
};
|
|
4107
|
-
return /* @__PURE__ */ React37.createElement(
|
|
4108
|
-
Card,
|
|
4036
|
+
fill: "#FFD400",
|
|
4037
|
+
d: "M119.2,421.2c15.3-8.4,27-14.8,28-15.3c3.2-1.7,6.5-6.2,0-9.7 c-2.1-1.1-13.4-7.3-28-15.3l-20.1,20.2L119.2,421.2z"
|
|
4038
|
+
}
|
|
4039
|
+
), /* @__PURE__ */ React37.createElement(
|
|
4040
|
+
"path",
|
|
4109
4041
|
{
|
|
4110
|
-
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
|
|
4114
|
-
|
|
4115
|
-
|
|
4116
|
-
|
|
4117
|
-
|
|
4118
|
-
|
|
4119
|
-
|
|
4120
|
-
|
|
4121
|
-
|
|
4122
|
-
|
|
4123
|
-
|
|
4124
|
-
|
|
4125
|
-
|
|
4126
|
-
/* @__PURE__ */ React37.createElement("div", { className: "hawa-flex hawa-h-full hawa-flex-col hawa-gap-4" }, /* @__PURE__ */ React37.createElement("div", { className: "hawa-text-md hawa-relative hawa-flex hawa-flex-col hawa-justify-between hawa-font-bold hawa-text-primary/70" }, /* @__PURE__ */ React37.createElement("span", null, (_b = props.texts) == null ? void 0 : _b.title), /* @__PURE__ */ React37.createElement("h5", { className: "hawa-text-sm hawa-font-normal hawa-text-primary/70" }, (_c = props.texts) == null ? void 0 : _c.subtitle), props.discount && /* @__PURE__ */ React37.createElement("span", { className: "hawa-absolute hawa-end-0" }, /* @__PURE__ */ React37.createElement(Chip, { label: props.discount, size: "large", color: "hyper" }))), /* @__PURE__ */ React37.createElement("div", { className: " hawa-flex hawa-items-baseline hawa-text-primary" }, props.isLoading ? /* @__PURE__ */ React37.createElement(Skeleton, { className: "hawa-h-[48px] hawa-w-full hawa-max-w-[200px] hawa-p-0 " }) : /* @__PURE__ */ React37.createElement(React37.Fragment, null, props.noPrice ? /* @__PURE__ */ React37.createElement("div", { className: "hawa-text-5xl hawa-font-extrabold hawa-tracking-tight" }, ((_d = props.texts) == null ? void 0 : _d.priceless) || "Contact Us") : /* @__PURE__ */ React37.createElement(React37.Fragment, null, /* @__PURE__ */ React37.createElement(React37.Fragment, null, /* @__PURE__ */ React37.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-end hawa-gap-2" }, props.oldPrice && props.oldPrice > 0 && /* @__PURE__ */ React37.createElement("span", { className: "hawa-line-through hawa-opacity-70" }, props.oldPrice + " " + ((_e = props.texts) == null ? void 0 : _e.currencyText)), /* @__PURE__ */ React37.createElement("span", { className: "hawa-text-5xl hawa-font-extrabold hawa-tracking-tight" }, props.price)), /* @__PURE__ */ React37.createElement("span", { className: "hawa-mx-1 hawa-text-sm hawa-font-semibold" }, (_f = props.texts) == null ? void 0 : _f.currencyText)), /* @__PURE__ */ React37.createElement("span", { className: "hawa-ml-1 hawa-whitespace-nowrap hawa-text-xl hawa-font-normal hawa-text-primary/70" }, "/ ", (_g = props.texts) == null ? void 0 : _g.cycleText)))), endButton && /* @__PURE__ */ React37.createElement(Separator2, null), /* @__PURE__ */ React37.createElement(
|
|
4127
|
-
"div",
|
|
4128
|
-
{
|
|
4129
|
-
className: cn(
|
|
4130
|
-
"hawa-flex hawa-h-full hawa-justify-between hawa-gap-4",
|
|
4131
|
-
endButton ? "hawa-flex-col" : "hawa-flex-col-reverse"
|
|
4132
|
-
)
|
|
4133
|
-
},
|
|
4134
|
-
props.features && /* @__PURE__ */ React37.createElement("ul", { role: "list", className: "hawa-space-y-0 hawa-overflow-x-auto" }, (_h = props.features) == null ? void 0 : _h.map((feature, o) => {
|
|
4135
|
-
return /* @__PURE__ */ React37.createElement(
|
|
4136
|
-
"li",
|
|
4137
|
-
{
|
|
4138
|
-
key: o,
|
|
4139
|
-
className: cn(
|
|
4140
|
-
"hawa-flex hawa-flex-row hawa-justify-between hawa-gap-2",
|
|
4141
|
-
!feature.included && "hawa-line-through"
|
|
4142
|
-
)
|
|
4143
|
-
},
|
|
4144
|
-
/* @__PURE__ */ React37.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center" }, feature.included ? /* @__PURE__ */ React37.createElement(
|
|
4145
|
-
"svg",
|
|
4146
|
-
{
|
|
4147
|
-
"aria-label": "Check Icon",
|
|
4148
|
-
"aria-hidden": "true",
|
|
4149
|
-
className: "hawa-m-2 hawa-h-5 hawa-w-5 hawa-flex-shrink-0 hawa-text-primary",
|
|
4150
|
-
fill: "currentColor",
|
|
4151
|
-
viewBox: "0 0 20 20"
|
|
4152
|
-
},
|
|
4153
|
-
/* @__PURE__ */ React37.createElement(
|
|
4154
|
-
"path",
|
|
4155
|
-
{
|
|
4156
|
-
fillRule: "evenodd",
|
|
4157
|
-
d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",
|
|
4158
|
-
clipRule: "evenodd"
|
|
4159
|
-
}
|
|
4160
|
-
)
|
|
4161
|
-
) : /* @__PURE__ */ React37.createElement("div", { className: "hawa-m-2 hawa-mx-2.5 hawa-h-4 hawa-w-4 hawa-rounded-full hawa-bg-primary/10" }), /* @__PURE__ */ React37.createElement("span", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 hawa-whitespace-nowrap hawa-text-start hawa-font-normal hawa-leading-tight hawa-text-primary/70 " }, feature.text, " ", feature.soon && feature.included && /* @__PURE__ */ React37.createElement(Chip, { label: "soon", color: "oceanic", size: "small" }))),
|
|
4162
|
-
feature.hint && /* @__PURE__ */ React37.createElement(Tooltip, { content: feature.hint, side: feature.hintSide }, /* @__PURE__ */ React37.createElement(
|
|
4163
|
-
"svg",
|
|
4164
|
-
{
|
|
4165
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
4166
|
-
className: "hawa-h-[14px] hawa-w-[14px] hawa-cursor-help",
|
|
4167
|
-
viewBox: "0 0 24 24",
|
|
4168
|
-
fill: "none",
|
|
4169
|
-
stroke: "currentColor",
|
|
4170
|
-
strokeWidth: "2",
|
|
4171
|
-
strokeLinecap: "round",
|
|
4172
|
-
strokeLinejoin: "round"
|
|
4173
|
-
},
|
|
4174
|
-
/* @__PURE__ */ React37.createElement("circle", { cx: "12", cy: "12", r: "10" }),
|
|
4175
|
-
/* @__PURE__ */ React37.createElement("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
|
|
4176
|
-
/* @__PURE__ */ React37.createElement("path", { d: "M12 17h.01" })
|
|
4177
|
-
))
|
|
4178
|
-
);
|
|
4179
|
-
})),
|
|
4180
|
-
/* @__PURE__ */ React37.createElement(
|
|
4181
|
-
Button,
|
|
4182
|
-
{
|
|
4183
|
-
onClick: props.onPlanClicked,
|
|
4184
|
-
disabled: currentPlan,
|
|
4185
|
-
className: "hawa-w-full"
|
|
4186
|
-
},
|
|
4187
|
-
(_i = props.texts) == null ? void 0 : _i.buttonText
|
|
4188
|
-
)
|
|
4189
|
-
))
|
|
4190
|
-
);
|
|
4042
|
+
fill: "#FF3333",
|
|
4043
|
+
d: "M99.1,401.1l-64.2,64.7c1.5,0.2,3.2-0.2,5.2-1.3 c4.2-2.3,48.8-26.7,79.1-43.3L99.1,401.1L99.1,401.1z"
|
|
4044
|
+
}
|
|
4045
|
+
), /* @__PURE__ */ React37.createElement(
|
|
4046
|
+
"path",
|
|
4047
|
+
{
|
|
4048
|
+
fill: "#48FF48",
|
|
4049
|
+
d: "M99.1,401.1l20.1-20.2c0,0-74.6-40.7-79.1-43.1 c-1.7-1-3.6-1.3-5.3-1L99.1,401.1z"
|
|
4050
|
+
}
|
|
4051
|
+
), /* @__PURE__ */ React37.createElement(
|
|
4052
|
+
"path",
|
|
4053
|
+
{
|
|
4054
|
+
fill: "#3BCCFF",
|
|
4055
|
+
d: "M99.1,401.1l-64.3-64.3c-2.6,0.6-4.8,2.9-4.8,7.6 c0,7.5,0,107.5,0,113.8c0,4.3,1.7,7.4,4.9,7.7L99.1,401.1z"
|
|
4056
|
+
}
|
|
4057
|
+
))), /* @__PURE__ */ React37.createElement("div", null, /* @__PURE__ */ React37.createElement("div", { className: "hawa-text-xs" }, "GET IT ON"), /* @__PURE__ */ React37.createElement("div", { className: "hawa--mt-1 hawa-font-sans hawa-text-xl hawa-font-semibold" }, "Google Play")))));
|
|
4191
4058
|
};
|
|
4192
4059
|
|
|
4193
|
-
// components/elements/
|
|
4194
|
-
import React38, { useEffect as
|
|
4195
|
-
var
|
|
4196
|
-
|
|
4197
|
-
|
|
4198
|
-
|
|
4199
|
-
|
|
4200
|
-
|
|
4201
|
-
onImageClick,
|
|
4202
|
-
clickableImageActionText,
|
|
4203
|
-
clickableImageActionIcon,
|
|
4204
|
-
header,
|
|
4205
|
-
cardImage,
|
|
4206
|
-
orientation = "vertical",
|
|
4207
|
-
...props
|
|
4060
|
+
// components/elements/badge/Badge.tsx
|
|
4061
|
+
import React38, { useEffect as useEffect7, useState as useState9, useRef as useRef6 } from "react";
|
|
4062
|
+
var Badge = ({
|
|
4063
|
+
anchor,
|
|
4064
|
+
position = "right",
|
|
4065
|
+
size = "default",
|
|
4066
|
+
text,
|
|
4067
|
+
className
|
|
4208
4068
|
}) => {
|
|
4209
|
-
|
|
4210
|
-
|
|
4211
|
-
|
|
4212
|
-
|
|
4213
|
-
|
|
4214
|
-
|
|
4215
|
-
vertical: "hawa-h-auto hawa-max-h-56 hawa-w-full hawa-rounded-t-lg hawa-object-cover",
|
|
4216
|
-
horizontal: (
|
|
4217
|
-
// "h-auto w-full rounded-l-lg object-cover md:h-auto md:w-48 md:rounded-none md:rounded-l-lg",
|
|
4218
|
-
// "h-full w-full rounded-l-lg object-cover md:w-48 md:rounded-none md:rounded-l-lg",
|
|
4219
|
-
"hawa-h-full hawa-w-48 hawa-rounded-l hawa-object-cover"
|
|
4220
|
-
)
|
|
4069
|
+
const [badgePosition, setBadgePosition] = useState9(null);
|
|
4070
|
+
const indicatorRef = useRef6(null);
|
|
4071
|
+
const sizeStyles = {
|
|
4072
|
+
small: { top: 4, left: 6, right: 7, classes: "hawa-w-3 hawa-h-3" },
|
|
4073
|
+
default: { top: 4, left: 7, right: 5, classes: "hawa-w-3 hawa-h-3" },
|
|
4074
|
+
large: { top: 6, left: 12, right: 7, classes: "hawa-w-6 hawa-h-6" }
|
|
4221
4075
|
};
|
|
4222
|
-
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
-
|
|
4076
|
+
useEffect7(() => {
|
|
4077
|
+
const handlePositioning = () => {
|
|
4078
|
+
var _a;
|
|
4079
|
+
if (anchor.current && indicatorRef.current) {
|
|
4080
|
+
const rect = anchor.current.getBoundingClientRect();
|
|
4081
|
+
const parentRect = (_a = indicatorRef.current.parentElement) == null ? void 0 : _a.getBoundingClientRect();
|
|
4082
|
+
const style = window.getComputedStyle(anchor.current);
|
|
4083
|
+
const marginTop = parseFloat(style.marginTop.replace("px", ""));
|
|
4084
|
+
const marginRight = parseFloat(style.marginRight.replace("px", ""));
|
|
4085
|
+
if (parentRect) {
|
|
4086
|
+
setBadgePosition({
|
|
4087
|
+
top: rect.top - parentRect.top - marginTop - sizeStyles[size].top,
|
|
4088
|
+
left: position === "right" ? parentRect.right - parentRect.left - sizeStyles[size].left : rect.right - parentRect.left - parentRect.width - marginRight - sizeStyles[size].right
|
|
4089
|
+
});
|
|
4090
|
+
}
|
|
4232
4091
|
}
|
|
4233
4092
|
};
|
|
4234
|
-
|
|
4235
|
-
|
|
4236
|
-
|
|
4093
|
+
handlePositioning();
|
|
4094
|
+
window.addEventListener("resize", handlePositioning);
|
|
4095
|
+
return () => {
|
|
4096
|
+
window.removeEventListener("resize", handlePositioning);
|
|
4097
|
+
};
|
|
4098
|
+
}, [anchor]);
|
|
4099
|
+
return /* @__PURE__ */ React38.createElement("div", { ref: indicatorRef, className: cn("hawa-relative", className) }, badgePosition && /* @__PURE__ */ React38.createElement(
|
|
4237
4100
|
"div",
|
|
4238
4101
|
{
|
|
4239
|
-
|
|
4240
|
-
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
props.className
|
|
4244
|
-
),
|
|
4245
|
-
onClick: (e) => {
|
|
4246
|
-
e.stopPropagation();
|
|
4247
|
-
if (props.onCardClick) {
|
|
4248
|
-
props.onCardClick(e);
|
|
4249
|
-
}
|
|
4250
|
-
}
|
|
4251
|
-
},
|
|
4252
|
-
cardImage && /* @__PURE__ */ React38.createElement("div", { className: "hawa-group hawa-relative hawa-overflow-clip" }, /* @__PURE__ */ React38.createElement(
|
|
4253
|
-
"img",
|
|
4254
|
-
{
|
|
4255
|
-
src: cardImage,
|
|
4256
|
-
className: cn(
|
|
4257
|
-
imageStyles[orientation],
|
|
4258
|
-
clickableImage ? "hawa-overflow-clip hawa-transition-all group-hover:hawa-blur-lg" : ""
|
|
4259
|
-
)
|
|
4260
|
-
}
|
|
4261
|
-
), clickableImage && /* @__PURE__ */ React38.createElement(StopPropagationWrapper, null, /* @__PURE__ */ React38.createElement("div", { className: "hawa-absolute hawa-left-0 hawa-top-0 hawa-flex hawa-h-full hawa-w-full hawa-items-center hawa-justify-center hawa-opacity-0 hawa-transition-all group-hover:hawa-opacity-100 " }, /* @__PURE__ */ React38.createElement(
|
|
4262
|
-
Button,
|
|
4263
|
-
{
|
|
4264
|
-
variant: "secondary",
|
|
4265
|
-
onClick: onImageClick,
|
|
4266
|
-
className: "hawa-flex hawa-flex-row hawa-gap-2"
|
|
4267
|
-
},
|
|
4268
|
-
clickableImageActionIcon,
|
|
4269
|
-
clickableImageActionText || "Click"
|
|
4270
|
-
)))),
|
|
4271
|
-
/* @__PURE__ */ React38.createElement("div", { className: "hawa-relative hawa-w-full hawa-p-4 xs:hawa-p-6 xs:hawa-px-2 xs:hawa-pb-2" }, headerActions && /* @__PURE__ */ React38.createElement("div", { className: "hawa-absolute hawa-right-0 hawa-top-0 hawa-flex hawa-justify-end hawa-pr-3 hawa-pt-3" }, /* @__PURE__ */ React38.createElement(StopPropagationWrapper, null, /* @__PURE__ */ React38.createElement(
|
|
4272
|
-
DropdownMenu,
|
|
4273
|
-
{
|
|
4274
|
-
items: headerActions,
|
|
4275
|
-
trigger: /* @__PURE__ */ React38.createElement(
|
|
4276
|
-
Button,
|
|
4277
|
-
{
|
|
4278
|
-
variant: "ghost",
|
|
4279
|
-
size: "smallIcon",
|
|
4280
|
-
onClick: handleOpenActionHeader
|
|
4281
|
-
},
|
|
4282
|
-
/* @__PURE__ */ React38.createElement("span", { className: "hawa-sr-only" }, "Open dropdown"),
|
|
4283
|
-
/* @__PURE__ */ React38.createElement(
|
|
4284
|
-
"svg",
|
|
4285
|
-
{
|
|
4286
|
-
className: "hawa-h-5 hawa-w-5",
|
|
4287
|
-
"aria-hidden": "true",
|
|
4288
|
-
fill: "currentColor",
|
|
4289
|
-
viewBox: "0 0 20 20"
|
|
4290
|
-
},
|
|
4291
|
-
/* @__PURE__ */ React38.createElement("path", { d: "M10 6a2 2 0 110-4 2 2 0 010 4zM10 12a2 2 0 110-4 2 2 0 010 4zM10 18a2 2 0 110-4 2 2 0 010 4z" })
|
|
4292
|
-
)
|
|
4293
|
-
)
|
|
4294
|
-
}
|
|
4295
|
-
))), /* @__PURE__ */ React38.createElement("div", { className: " hawa-mx-2" }, header && /* @__PURE__ */ React38.createElement("h5", { className: "hawa-mb-2 hawa-text-2xl hawa-font-bold hawa-tracking-tight " }, header), content && /* @__PURE__ */ React38.createElement("span", { className: "hawa-w-full hawa-font-normal " }, content)), actions || counts ? /* @__PURE__ */ React38.createElement(
|
|
4296
|
-
"div",
|
|
4297
|
-
{
|
|
4298
|
-
className: cn(
|
|
4299
|
-
"hawa-mt-3 hawa-flex hawa-flex-col hawa-items-center hawa-rounded-b-lg dark:hawa-text-white xs:hawa-flex-row ",
|
|
4300
|
-
actions && counts ? "hawa-justify-between" : "hawa-justify-end"
|
|
4301
|
-
)
|
|
4102
|
+
style: {
|
|
4103
|
+
position: "absolute",
|
|
4104
|
+
top: badgePosition == null ? void 0 : badgePosition.top,
|
|
4105
|
+
left: badgePosition == null ? void 0 : badgePosition.left
|
|
4302
4106
|
},
|
|
4303
|
-
counts,
|
|
4304
|
-
/* @__PURE__ */ React38.createElement(StopPropagationWrapper, null, actions)
|
|
4305
|
-
) : null)
|
|
4306
|
-
);
|
|
4307
|
-
};
|
|
4308
|
-
|
|
4309
|
-
// components/elements/cards/LandingCard.tsx
|
|
4310
|
-
import React39 from "react";
|
|
4311
|
-
var LandingCard = (props) => {
|
|
4312
|
-
return /* @__PURE__ */ React39.createElement(Card, { className: props.className }, /* @__PURE__ */ React39.createElement(CardHeader, null, props.icon, /* @__PURE__ */ React39.createElement(CardTitle, null, props.title), /* @__PURE__ */ React39.createElement(CardDescription, null, props.subtitle)));
|
|
4313
|
-
};
|
|
4314
|
-
|
|
4315
|
-
// components/elements/PinInput.tsx
|
|
4316
|
-
import React40, { useEffect as useEffect9, useState as useState12 } from "react";
|
|
4317
|
-
var PinInput = ({
|
|
4318
|
-
label,
|
|
4319
|
-
icon,
|
|
4320
|
-
digits,
|
|
4321
|
-
width = "normal",
|
|
4322
|
-
getPins,
|
|
4323
|
-
inputProps,
|
|
4324
|
-
...props
|
|
4325
|
-
}) => {
|
|
4326
|
-
const [pin, setPin] = useState12(Array.from(Array(digits)));
|
|
4327
|
-
const handleKeyDown = (e, index) => {
|
|
4328
|
-
let backTo = 0;
|
|
4329
|
-
if (e.key === "Backspace") {
|
|
4330
|
-
e.target.value.length === 0 ? backTo = index - 1 : backTo = index;
|
|
4331
|
-
const previousInput = document.getElementById(`input-${backTo}`);
|
|
4332
|
-
previousInput == null ? void 0 : previousInput.focus();
|
|
4333
|
-
}
|
|
4334
|
-
};
|
|
4335
|
-
useEffect9(() => {
|
|
4336
|
-
let unfilled = pin.includes(void 0);
|
|
4337
|
-
if (!unfilled && getPins) {
|
|
4338
|
-
getPins(pin);
|
|
4339
|
-
}
|
|
4340
|
-
});
|
|
4341
|
-
const handleChange = (e, index) => {
|
|
4342
|
-
if (!/^\d*$/.test(e.target.value)) {
|
|
4343
|
-
const newPin = [...pin];
|
|
4344
|
-
newPin[index] = "";
|
|
4345
|
-
setPin(newPin);
|
|
4346
|
-
return;
|
|
4347
|
-
} else {
|
|
4348
|
-
const newPin = [...pin];
|
|
4349
|
-
newPin[index] = e.target.value;
|
|
4350
|
-
setPin(newPin);
|
|
4351
|
-
if (e.target.value.length === 1) {
|
|
4352
|
-
const nextInput = document.getElementById(`input-${index + 1}`);
|
|
4353
|
-
nextInput == null ? void 0 : nextInput.focus();
|
|
4354
|
-
} else if (e.target.value.length === 0) {
|
|
4355
|
-
const previousInput = document.getElementById(`input-${index - 1}`);
|
|
4356
|
-
previousInput == null ? void 0 : previousInput.focus();
|
|
4357
|
-
}
|
|
4358
|
-
}
|
|
4359
|
-
};
|
|
4360
|
-
return /* @__PURE__ */ React40.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, /* @__PURE__ */ React40.createElement(
|
|
4361
|
-
"div",
|
|
4362
|
-
{
|
|
4363
|
-
className: "hawa-flex hawa-w-full hawa-flex-row hawa-justify-center hawa-gap-2",
|
|
4364
|
-
dir: "ltr"
|
|
4365
|
-
},
|
|
4366
|
-
pin.map((value, index) => /* @__PURE__ */ React40.createElement(
|
|
4367
|
-
"input",
|
|
4368
|
-
{
|
|
4369
|
-
key: index,
|
|
4370
|
-
type: "text",
|
|
4371
|
-
maxLength: 1,
|
|
4372
|
-
value,
|
|
4373
|
-
id: `input-${index}`,
|
|
4374
|
-
pattern: "[0-9]*",
|
|
4375
|
-
className: cn(
|
|
4376
|
-
"hawa-h-10 hawa-rounded hawa-border hawa-bg-background hawa-text-center",
|
|
4377
|
-
width === "full" ? "hawa-w-full" : "hawa-w-10"
|
|
4378
|
-
),
|
|
4379
|
-
onChange: (e) => handleChange(e, index),
|
|
4380
|
-
onKeyDown: (e) => handleKeyDown(e, index),
|
|
4381
|
-
onFocus: (e) => e.target.select(),
|
|
4382
|
-
...inputProps
|
|
4383
|
-
}
|
|
4384
|
-
))
|
|
4385
|
-
), /* @__PURE__ */ React40.createElement(
|
|
4386
|
-
"p",
|
|
4387
|
-
{
|
|
4388
4107
|
className: cn(
|
|
4389
|
-
"hawa-
|
|
4390
|
-
|
|
4108
|
+
"hawa-origin-center hawa-rounded-full hawa-bg-red-500 ",
|
|
4109
|
+
sizeStyles[size].classes,
|
|
4110
|
+
"hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-text-[9px] hawa-text-white"
|
|
4391
4111
|
)
|
|
4392
4112
|
},
|
|
4393
|
-
|
|
4113
|
+
size === "large" && text && text
|
|
4394
4114
|
));
|
|
4395
4115
|
};
|
|
4116
|
+
var BadgedComponent = ({
|
|
4117
|
+
children,
|
|
4118
|
+
className,
|
|
4119
|
+
hideBadge,
|
|
4120
|
+
position,
|
|
4121
|
+
size,
|
|
4122
|
+
text
|
|
4123
|
+
}) => {
|
|
4124
|
+
const ref = useRef6(null);
|
|
4125
|
+
return /* @__PURE__ */ React38.createElement("div", { className: cn("hawa-relative hawa-w-fit", className), ref }, !hideBadge && /* @__PURE__ */ React38.createElement(
|
|
4126
|
+
Badge,
|
|
4127
|
+
{
|
|
4128
|
+
size,
|
|
4129
|
+
text,
|
|
4130
|
+
position,
|
|
4131
|
+
anchor: ref,
|
|
4132
|
+
className: "hawa-z-10"
|
|
4133
|
+
}
|
|
4134
|
+
), children);
|
|
4135
|
+
};
|
|
4396
4136
|
|
|
4397
|
-
// components/elements/PhoneInput.tsx
|
|
4398
|
-
import
|
|
4137
|
+
// components/elements/phoneInput/PhoneInput.tsx
|
|
4138
|
+
import React39, { useState as useState10, useRef as useRef7, useEffect as useEffect8 } from "react";
|
|
4399
4139
|
|
|
4400
4140
|
// components/countries.ts
|
|
4401
4141
|
var countries = [
|
|
@@ -6090,12 +5830,12 @@ var countries = [
|
|
|
6090
5830
|
];
|
|
6091
5831
|
var countries_default = countries;
|
|
6092
5832
|
|
|
6093
|
-
// components/elements/PhoneInput.tsx
|
|
5833
|
+
// components/elements/phoneInput/PhoneInput.tsx
|
|
6094
5834
|
var PhoneInput = ({ labelProps, ...props }) => {
|
|
6095
|
-
const [phoneNumber, setPhoneNumber] =
|
|
6096
|
-
const [countryCode, setCountryCode] =
|
|
5835
|
+
const [phoneNumber, setPhoneNumber] = useState10("");
|
|
5836
|
+
const [countryCode, setCountryCode] = useState10(props.preferredCountry);
|
|
6097
5837
|
const inputRef = useRef7(null);
|
|
6098
|
-
|
|
5838
|
+
useEffect8(() => {
|
|
6099
5839
|
var _a;
|
|
6100
5840
|
if (inputRef.current) {
|
|
6101
5841
|
(_a = inputRef.current) == null ? void 0 : _a.focus();
|
|
@@ -6113,7 +5853,7 @@ var PhoneInput = ({ labelProps, ...props }) => {
|
|
|
6113
5853
|
console.log("handleChange prop was not provided in <PhoneInput/>");
|
|
6114
5854
|
}
|
|
6115
5855
|
};
|
|
6116
|
-
return /* @__PURE__ */
|
|
5856
|
+
return /* @__PURE__ */ React39.createElement("div", { className: "hawa-flex hawa-h-fit hawa-w-full hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ React39.createElement(Label2, { ...labelProps }, props.label), /* @__PURE__ */ React39.createElement("div", { dir: "ltr", className: "hawa-flex hawa-w-full hawa-flex-row" }, /* @__PURE__ */ React39.createElement(
|
|
6117
5857
|
Select,
|
|
6118
5858
|
{
|
|
6119
5859
|
width: "fit",
|
|
@@ -6129,7 +5869,7 @@ var PhoneInput = ({ labelProps, ...props }) => {
|
|
|
6129
5869
|
value: countryCode == null ? void 0 : countryCode.label,
|
|
6130
5870
|
onChange: setCountryCode
|
|
6131
5871
|
}
|
|
6132
|
-
), /* @__PURE__ */
|
|
5872
|
+
), /* @__PURE__ */ React39.createElement("div", { className: "hawa-relative hawa-flex hawa-h-fit hawa-w-full hawa-flex-col hawa-justify-center hawa-gap-0" }, /* @__PURE__ */ React39.createElement(
|
|
6133
5873
|
"input",
|
|
6134
5874
|
{
|
|
6135
5875
|
ref: inputRef,
|
|
@@ -6142,7 +5882,7 @@ var PhoneInput = ({ labelProps, ...props }) => {
|
|
|
6142
5882
|
type: "tel",
|
|
6143
5883
|
placeholder: "531045453"
|
|
6144
5884
|
}
|
|
6145
|
-
))), /* @__PURE__ */
|
|
5885
|
+
))), /* @__PURE__ */ React39.createElement(
|
|
6146
5886
|
"p",
|
|
6147
5887
|
{
|
|
6148
5888
|
className: cn(
|
|
@@ -6154,28 +5894,136 @@ var PhoneInput = ({ labelProps, ...props }) => {
|
|
|
6154
5894
|
));
|
|
6155
5895
|
};
|
|
6156
5896
|
|
|
6157
|
-
// components/elements/
|
|
5897
|
+
// components/elements/pinInput/PinInput.tsx
|
|
5898
|
+
import React40, { useEffect as useEffect9, useState as useState11 } from "react";
|
|
5899
|
+
var PinInput = ({
|
|
5900
|
+
label,
|
|
5901
|
+
icon,
|
|
5902
|
+
digits,
|
|
5903
|
+
width = "normal",
|
|
5904
|
+
getPins,
|
|
5905
|
+
inputProps,
|
|
5906
|
+
...props
|
|
5907
|
+
}) => {
|
|
5908
|
+
const [pin, setPin] = useState11(Array.from(Array(digits)));
|
|
5909
|
+
const handleKeyDown = (e, index) => {
|
|
5910
|
+
let backTo = 0;
|
|
5911
|
+
if (e.key === "Backspace") {
|
|
5912
|
+
e.target.value.length === 0 ? backTo = index - 1 : backTo = index;
|
|
5913
|
+
const previousInput = document.getElementById(`input-${backTo}`);
|
|
5914
|
+
previousInput == null ? void 0 : previousInput.focus();
|
|
5915
|
+
}
|
|
5916
|
+
};
|
|
5917
|
+
useEffect9(() => {
|
|
5918
|
+
let unfilled = pin.includes(void 0);
|
|
5919
|
+
if (!unfilled && getPins) {
|
|
5920
|
+
getPins(pin);
|
|
5921
|
+
}
|
|
5922
|
+
});
|
|
5923
|
+
const handleChange = (e, index) => {
|
|
5924
|
+
if (!/^\d*$/.test(e.target.value)) {
|
|
5925
|
+
const newPin = [...pin];
|
|
5926
|
+
newPin[index] = "";
|
|
5927
|
+
setPin(newPin);
|
|
5928
|
+
return;
|
|
5929
|
+
} else {
|
|
5930
|
+
const newPin = [...pin];
|
|
5931
|
+
newPin[index] = e.target.value;
|
|
5932
|
+
setPin(newPin);
|
|
5933
|
+
if (e.target.value.length === 1) {
|
|
5934
|
+
const nextInput = document.getElementById(`input-${index + 1}`);
|
|
5935
|
+
nextInput == null ? void 0 : nextInput.focus();
|
|
5936
|
+
} else if (e.target.value.length === 0) {
|
|
5937
|
+
const previousInput = document.getElementById(`input-${index - 1}`);
|
|
5938
|
+
previousInput == null ? void 0 : previousInput.focus();
|
|
5939
|
+
}
|
|
5940
|
+
}
|
|
5941
|
+
};
|
|
5942
|
+
return /* @__PURE__ */ React40.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, /* @__PURE__ */ React40.createElement(
|
|
5943
|
+
"div",
|
|
5944
|
+
{
|
|
5945
|
+
className: "hawa-flex hawa-w-full hawa-flex-row hawa-justify-center hawa-gap-2",
|
|
5946
|
+
dir: "ltr"
|
|
5947
|
+
},
|
|
5948
|
+
pin.map((value, index) => /* @__PURE__ */ React40.createElement(
|
|
5949
|
+
"input",
|
|
5950
|
+
{
|
|
5951
|
+
key: index,
|
|
5952
|
+
type: "text",
|
|
5953
|
+
maxLength: 1,
|
|
5954
|
+
value,
|
|
5955
|
+
id: `input-${index}`,
|
|
5956
|
+
pattern: "[0-9]*",
|
|
5957
|
+
className: cn(
|
|
5958
|
+
"hawa-h-10 hawa-rounded hawa-border hawa-bg-background hawa-text-center",
|
|
5959
|
+
width === "full" ? "hawa-w-full" : "hawa-w-10"
|
|
5960
|
+
),
|
|
5961
|
+
onChange: (e) => handleChange(e, index),
|
|
5962
|
+
onKeyDown: (e) => handleKeyDown(e, index),
|
|
5963
|
+
onFocus: (e) => e.target.select(),
|
|
5964
|
+
...inputProps
|
|
5965
|
+
}
|
|
5966
|
+
))
|
|
5967
|
+
), /* @__PURE__ */ React40.createElement(
|
|
5968
|
+
"p",
|
|
5969
|
+
{
|
|
5970
|
+
className: cn(
|
|
5971
|
+
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
|
5972
|
+
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
|
5973
|
+
)
|
|
5974
|
+
},
|
|
5975
|
+
props.helperText
|
|
5976
|
+
));
|
|
5977
|
+
};
|
|
5978
|
+
|
|
5979
|
+
// components/elements/stopPropagationWrapper/StopPropagationWrapper.tsx
|
|
5980
|
+
import React41 from "react";
|
|
5981
|
+
var StopPropagationWrapper = (props) => {
|
|
5982
|
+
const handleClick = (e) => {
|
|
5983
|
+
e.stopPropagation();
|
|
5984
|
+
};
|
|
5985
|
+
return /* @__PURE__ */ React41.createElement("div", { onClick: handleClick }, props.children);
|
|
5986
|
+
};
|
|
5987
|
+
|
|
5988
|
+
// components/elements/scrollArea/ScrollArea.tsx
|
|
6158
5989
|
import * as React42 from "react";
|
|
6159
|
-
import * as
|
|
6160
|
-
var
|
|
6161
|
-
|
|
5990
|
+
import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
|
|
5991
|
+
var ScrollArea = React42.forwardRef(({ className, children, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React42.createElement(
|
|
5992
|
+
ScrollAreaPrimitive.Root,
|
|
6162
5993
|
{
|
|
6163
5994
|
ref,
|
|
5995
|
+
className: cn("hawa-relative hawa-overflow-hidden", className),
|
|
5996
|
+
...props
|
|
5997
|
+
},
|
|
5998
|
+
/* @__PURE__ */ React42.createElement(ScrollAreaPrimitive.Viewport, { className: "hawa-h-full hawa-w-full hawa-rounded-[inherit]" }, children),
|
|
5999
|
+
/* @__PURE__ */ React42.createElement(ScrollBar, { orientation }),
|
|
6000
|
+
/* @__PURE__ */ React42.createElement(ScrollAreaPrimitive.Corner, null)
|
|
6001
|
+
));
|
|
6002
|
+
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
|
|
6003
|
+
var ScrollBar = React42.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React42.createElement(
|
|
6004
|
+
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
|
6005
|
+
{
|
|
6006
|
+
ref,
|
|
6007
|
+
orientation,
|
|
6164
6008
|
className: cn(
|
|
6165
|
-
"hawa-
|
|
6009
|
+
"hawa-flex hawa-touch-none hawa-select-none hawa-transition-colors",
|
|
6010
|
+
orientation === "vertical" && "hawa-h-full hawa-w-2.5 hawa-border-l hawa-border-l-transparent hawa-p-[1px]",
|
|
6011
|
+
orientation === "horizontal" && "hawa-h-2.5 hawa-border-t hawa-border-t-transparent hawa-p-[1px]",
|
|
6166
6012
|
className
|
|
6167
6013
|
),
|
|
6168
6014
|
...props
|
|
6169
6015
|
},
|
|
6170
6016
|
/* @__PURE__ */ React42.createElement(
|
|
6171
|
-
|
|
6017
|
+
ScrollAreaPrimitive.ScrollAreaThumb,
|
|
6172
6018
|
{
|
|
6173
|
-
className:
|
|
6174
|
-
|
|
6019
|
+
className: cn(
|
|
6020
|
+
"hawa-relative hawa-rounded-full hawa-bg-border",
|
|
6021
|
+
orientation === "vertical" && "hawa-flex-1"
|
|
6022
|
+
)
|
|
6175
6023
|
}
|
|
6176
6024
|
)
|
|
6177
6025
|
));
|
|
6178
|
-
|
|
6026
|
+
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
|
6179
6027
|
|
|
6180
6028
|
// components/elements/ProgressCircle.tsx
|
|
6181
6029
|
import React43 from "react";
|
|
@@ -6401,7 +6249,7 @@ var Pagination = ({
|
|
|
6401
6249
|
};
|
|
6402
6250
|
|
|
6403
6251
|
// components/elements/PasswordInput.tsx
|
|
6404
|
-
import React48, { useEffect as
|
|
6252
|
+
import React48, { useEffect as useEffect10, useState as useState12 } from "react";
|
|
6405
6253
|
|
|
6406
6254
|
// components/icons/Emojis.tsx
|
|
6407
6255
|
import React45 from "react";
|
|
@@ -6617,16 +6465,16 @@ var PasswordInput = ({
|
|
|
6617
6465
|
hidePopover,
|
|
6618
6466
|
...props
|
|
6619
6467
|
}) => {
|
|
6620
|
-
const [inputValue, setInputValue] =
|
|
6621
|
-
const [isInputFocused, setIsInputFocused] =
|
|
6622
|
-
const [currentStr, setCurrentStr] =
|
|
6623
|
-
const [passwordVisible, setPasswordVisible] =
|
|
6624
|
-
const [lengthCriteriaMet, setLengthCriteriaMet] =
|
|
6625
|
-
const [numberCriteriaMet, setNumberCriteriaMet] =
|
|
6626
|
-
const [specialCharCriteriaMet, setSpecialCharCriteriaMet] =
|
|
6627
|
-
const [lowercaseCriteriaMet, setLowercaseCriteriaMet] =
|
|
6628
|
-
const [uppercaseCriteriaMet, setUppercaseCriteriaMet] =
|
|
6629
|
-
|
|
6468
|
+
const [inputValue, setInputValue] = useState12("");
|
|
6469
|
+
const [isInputFocused, setIsInputFocused] = useState12(false);
|
|
6470
|
+
const [currentStr, setCurrentStr] = useState12(0);
|
|
6471
|
+
const [passwordVisible, setPasswordVisible] = useState12(false);
|
|
6472
|
+
const [lengthCriteriaMet, setLengthCriteriaMet] = useState12(false);
|
|
6473
|
+
const [numberCriteriaMet, setNumberCriteriaMet] = useState12(false);
|
|
6474
|
+
const [specialCharCriteriaMet, setSpecialCharCriteriaMet] = useState12(false);
|
|
6475
|
+
const [lowercaseCriteriaMet, setLowercaseCriteriaMet] = useState12(false);
|
|
6476
|
+
const [uppercaseCriteriaMet, setUppercaseCriteriaMet] = useState12(false);
|
|
6477
|
+
useEffect10(() => {
|
|
6630
6478
|
const calculateStrength = () => {
|
|
6631
6479
|
let strengthScore = 0;
|
|
6632
6480
|
if (lengthCriteriaMet)
|
|
@@ -6819,53 +6667,13 @@ var Separator2 = ({
|
|
|
6819
6667
|
}
|
|
6820
6668
|
);
|
|
6821
6669
|
|
|
6822
|
-
// components/elements/ScrollArea.tsx
|
|
6823
|
-
import * as React52 from "react";
|
|
6824
|
-
import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
|
|
6825
|
-
var ScrollArea = React52.forwardRef(({ className, children, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React52.createElement(
|
|
6826
|
-
ScrollAreaPrimitive.Root,
|
|
6827
|
-
{
|
|
6828
|
-
ref,
|
|
6829
|
-
className: cn("hawa-relative hawa-overflow-hidden", className),
|
|
6830
|
-
...props
|
|
6831
|
-
},
|
|
6832
|
-
/* @__PURE__ */ React52.createElement(ScrollAreaPrimitive.Viewport, { className: "hawa-h-full hawa-w-full hawa-rounded-[inherit]" }, children),
|
|
6833
|
-
/* @__PURE__ */ React52.createElement(ScrollBar, { orientation }),
|
|
6834
|
-
/* @__PURE__ */ React52.createElement(ScrollAreaPrimitive.Corner, null)
|
|
6835
|
-
));
|
|
6836
|
-
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
|
|
6837
|
-
var ScrollBar = React52.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React52.createElement(
|
|
6838
|
-
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
|
6839
|
-
{
|
|
6840
|
-
ref,
|
|
6841
|
-
orientation,
|
|
6842
|
-
className: cn(
|
|
6843
|
-
"hawa-flex hawa-touch-none hawa-select-none hawa-transition-colors",
|
|
6844
|
-
orientation === "vertical" && "hawa-h-full hawa-w-2.5 hawa-border-l hawa-border-l-transparent hawa-p-[1px]",
|
|
6845
|
-
orientation === "horizontal" && "hawa-h-2.5 hawa-border-t hawa-border-t-transparent hawa-p-[1px]",
|
|
6846
|
-
className
|
|
6847
|
-
),
|
|
6848
|
-
...props
|
|
6849
|
-
},
|
|
6850
|
-
/* @__PURE__ */ React52.createElement(
|
|
6851
|
-
ScrollAreaPrimitive.ScrollAreaThumb,
|
|
6852
|
-
{
|
|
6853
|
-
className: cn(
|
|
6854
|
-
"hawa-relative hawa-rounded-full hawa-bg-border",
|
|
6855
|
-
orientation === "vertical" && "hawa-flex-1"
|
|
6856
|
-
)
|
|
6857
|
-
}
|
|
6858
|
-
)
|
|
6859
|
-
));
|
|
6860
|
-
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
|
6861
|
-
|
|
6862
6670
|
// components/elements/ScrollIndicator.tsx
|
|
6863
|
-
import
|
|
6671
|
+
import React52, { useState as useState13, useEffect as useEffect11 } from "react";
|
|
6864
6672
|
var ScrollIndicator = ({
|
|
6865
6673
|
anchor,
|
|
6866
6674
|
inContainer = false
|
|
6867
6675
|
}) => {
|
|
6868
|
-
const [scrollPercentage, setScrollPercentage] =
|
|
6676
|
+
const [scrollPercentage, setScrollPercentage] = useState13(0);
|
|
6869
6677
|
const onScroll = () => {
|
|
6870
6678
|
const scrollElement = anchor.current;
|
|
6871
6679
|
if (scrollElement) {
|
|
@@ -6876,7 +6684,7 @@ var ScrollIndicator = ({
|
|
|
6876
6684
|
setScrollPercentage(percentageScrolled);
|
|
6877
6685
|
}
|
|
6878
6686
|
};
|
|
6879
|
-
|
|
6687
|
+
useEffect11(() => {
|
|
6880
6688
|
if (!anchor.current)
|
|
6881
6689
|
return;
|
|
6882
6690
|
anchor.current.addEventListener("scroll", onScroll);
|
|
@@ -6885,7 +6693,7 @@ var ScrollIndicator = ({
|
|
|
6885
6693
|
(_a = anchor.current) == null ? void 0 : _a.removeEventListener("scroll", onScroll);
|
|
6886
6694
|
};
|
|
6887
6695
|
}, [anchor]);
|
|
6888
|
-
return /* @__PURE__ */
|
|
6696
|
+
return /* @__PURE__ */ React52.createElement(
|
|
6889
6697
|
"div",
|
|
6890
6698
|
{
|
|
6891
6699
|
style: {
|
|
@@ -6900,19 +6708,10 @@ var ScrollIndicator = ({
|
|
|
6900
6708
|
);
|
|
6901
6709
|
};
|
|
6902
6710
|
|
|
6903
|
-
// components/elements/StopPropagationWrapper.tsx
|
|
6904
|
-
import React54 from "react";
|
|
6905
|
-
var StopPropagationWrapper = (props) => {
|
|
6906
|
-
const handleClick = (e) => {
|
|
6907
|
-
e.stopPropagation();
|
|
6908
|
-
};
|
|
6909
|
-
return /* @__PURE__ */ React54.createElement("div", { onClick: handleClick }, props.children);
|
|
6910
|
-
};
|
|
6911
|
-
|
|
6912
6711
|
// components/elements/ColorPicker.tsx
|
|
6913
|
-
import
|
|
6914
|
-
useState as
|
|
6915
|
-
useEffect as
|
|
6712
|
+
import React53, {
|
|
6713
|
+
useState as useState14,
|
|
6714
|
+
useEffect as useEffect12
|
|
6916
6715
|
} from "react";
|
|
6917
6716
|
var ColorPicker = ({
|
|
6918
6717
|
containerProps,
|
|
@@ -6921,8 +6720,8 @@ var ColorPicker = ({
|
|
|
6921
6720
|
labelProps,
|
|
6922
6721
|
...props
|
|
6923
6722
|
}) => {
|
|
6924
|
-
const [selectedColor, setSelectedColor] =
|
|
6925
|
-
|
|
6723
|
+
const [selectedColor, setSelectedColor] = useState14(props.color);
|
|
6724
|
+
useEffect12(() => {
|
|
6926
6725
|
if (selectedColor && selectedColor[0] !== "#") {
|
|
6927
6726
|
setSelectedColor(`#${selectedColor}`);
|
|
6928
6727
|
}
|
|
@@ -6939,13 +6738,13 @@ var ColorPicker = ({
|
|
|
6939
6738
|
props.handleChange(e);
|
|
6940
6739
|
}
|
|
6941
6740
|
};
|
|
6942
|
-
return /* @__PURE__ */
|
|
6741
|
+
return /* @__PURE__ */ React53.createElement("div", { className: "hawa-flex hawa-w-full hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ React53.createElement(Label2, { ...labelProps }, props.label), /* @__PURE__ */ React53.createElement("div", { dir: "ltr", className: "hawa-flex hawa-w-full hawa-flex-row" }, /* @__PURE__ */ React53.createElement(
|
|
6943
6742
|
"div",
|
|
6944
6743
|
{
|
|
6945
6744
|
style: { height: 40, backgroundColor: selectedColor },
|
|
6946
6745
|
className: "hawa-rounded-bl-lg hawa-rounded-tl-lg hawa-border"
|
|
6947
6746
|
},
|
|
6948
|
-
/* @__PURE__ */
|
|
6747
|
+
/* @__PURE__ */ React53.createElement(
|
|
6949
6748
|
"input",
|
|
6950
6749
|
{
|
|
6951
6750
|
type: "color",
|
|
@@ -6963,7 +6762,7 @@ var ColorPicker = ({
|
|
|
6963
6762
|
...colorPickerProps
|
|
6964
6763
|
}
|
|
6965
6764
|
)
|
|
6966
|
-
), /* @__PURE__ */
|
|
6765
|
+
), /* @__PURE__ */ React53.createElement("div", { className: "hawa-relative hawa-flex hawa-max-h-fit hawa-w-full hawa-flex-col hawa-justify-center hawa-gap-0" }, /* @__PURE__ */ React53.createElement(
|
|
6967
6766
|
"input",
|
|
6968
6767
|
{
|
|
6969
6768
|
maxLength: 7,
|
|
@@ -6975,7 +6774,7 @@ var ColorPicker = ({
|
|
|
6975
6774
|
),
|
|
6976
6775
|
...textInputProps
|
|
6977
6776
|
}
|
|
6978
|
-
))), /* @__PURE__ */
|
|
6777
|
+
))), /* @__PURE__ */ React53.createElement(
|
|
6979
6778
|
"p",
|
|
6980
6779
|
{
|
|
6981
6780
|
className: cn(
|
|
@@ -6988,7 +6787,7 @@ var ColorPicker = ({
|
|
|
6988
6787
|
};
|
|
6989
6788
|
|
|
6990
6789
|
// components/elements/CodeBlock.tsx
|
|
6991
|
-
import
|
|
6790
|
+
import React54, { useState as useState15 } from "react";
|
|
6992
6791
|
import { Highlight, themes } from "prism-react-renderer";
|
|
6993
6792
|
var CodeBlock = ({
|
|
6994
6793
|
tabs,
|
|
@@ -7001,7 +6800,7 @@ var CodeBlock = ({
|
|
|
7001
6800
|
...props
|
|
7002
6801
|
}) => {
|
|
7003
6802
|
const clipboard = useClipboard();
|
|
7004
|
-
const [selectedTab, setSelectedTab] =
|
|
6803
|
+
const [selectedTab, setSelectedTab] = useState15(0);
|
|
7005
6804
|
const isDarkMode = props.forcedDarkMode || document.body.classList.contains("dark");
|
|
7006
6805
|
const theme = isDarkMode ? themes.vsDark : themes.vsLight;
|
|
7007
6806
|
let widthStyles = {
|
|
@@ -7010,7 +6809,7 @@ var CodeBlock = ({
|
|
|
7010
6809
|
sm: "hawa-w-full hawa-max-w-sm",
|
|
7011
6810
|
xs: "hawa-w-full hawa-max-w-xs"
|
|
7012
6811
|
};
|
|
7013
|
-
return /* @__PURE__ */
|
|
6812
|
+
return /* @__PURE__ */ React54.createElement(
|
|
7014
6813
|
"div",
|
|
7015
6814
|
{
|
|
7016
6815
|
className: cn(
|
|
@@ -7019,7 +6818,7 @@ var CodeBlock = ({
|
|
|
7019
6818
|
className
|
|
7020
6819
|
)
|
|
7021
6820
|
},
|
|
7022
|
-
fileName && /* @__PURE__ */
|
|
6821
|
+
fileName && /* @__PURE__ */ React54.createElement(
|
|
7023
6822
|
"div",
|
|
7024
6823
|
{
|
|
7025
6824
|
className: cn(
|
|
@@ -7027,7 +6826,7 @@ var CodeBlock = ({
|
|
|
7027
6826
|
fileName && tabs ? "hawa-bg-gray-300 dark:hawa-bg-muted/50" : "hawa-bg-gray-200"
|
|
7028
6827
|
)
|
|
7029
6828
|
},
|
|
7030
|
-
/* @__PURE__ */
|
|
6829
|
+
/* @__PURE__ */ React54.createElement(
|
|
7031
6830
|
"div",
|
|
7032
6831
|
{
|
|
7033
6832
|
className: cn(
|
|
@@ -7037,7 +6836,7 @@ var CodeBlock = ({
|
|
|
7037
6836
|
fileName
|
|
7038
6837
|
)
|
|
7039
6838
|
),
|
|
7040
|
-
tabs && /* @__PURE__ */
|
|
6839
|
+
tabs && /* @__PURE__ */ React54.createElement(
|
|
7041
6840
|
"div",
|
|
7042
6841
|
{
|
|
7043
6842
|
className: cn(
|
|
@@ -7045,7 +6844,7 @@ var CodeBlock = ({
|
|
|
7045
6844
|
tabs && fileName && "hawa-rounded-t-none"
|
|
7046
6845
|
)
|
|
7047
6846
|
},
|
|
7048
|
-
tabs.map((tab, i) => /* @__PURE__ */
|
|
6847
|
+
tabs.map((tab, i) => /* @__PURE__ */ React54.createElement(
|
|
7049
6848
|
"div",
|
|
7050
6849
|
{
|
|
7051
6850
|
key: i,
|
|
@@ -7053,7 +6852,7 @@ var CodeBlock = ({
|
|
|
7053
6852
|
selectedTab === i ? " hawa-border-b-2 hawa-border-primary" : "hawa-bg-transparent"
|
|
7054
6853
|
)
|
|
7055
6854
|
},
|
|
7056
|
-
/* @__PURE__ */
|
|
6855
|
+
/* @__PURE__ */ React54.createElement(
|
|
7057
6856
|
"div",
|
|
7058
6857
|
{
|
|
7059
6858
|
onClick: () => setSelectedTab(i),
|
|
@@ -7065,7 +6864,7 @@ var CodeBlock = ({
|
|
|
7065
6864
|
)
|
|
7066
6865
|
))
|
|
7067
6866
|
),
|
|
7068
|
-
/* @__PURE__ */
|
|
6867
|
+
/* @__PURE__ */ React54.createElement(
|
|
7069
6868
|
"div",
|
|
7070
6869
|
{
|
|
7071
6870
|
className: cn(
|
|
@@ -7073,26 +6872,26 @@ var CodeBlock = ({
|
|
|
7073
6872
|
tabs || fileName ? "hawa-rounded-b hawa-rounded-t-none" : "hawa-rounded"
|
|
7074
6873
|
)
|
|
7075
6874
|
},
|
|
7076
|
-
/* @__PURE__ */
|
|
6875
|
+
/* @__PURE__ */ React54.createElement(
|
|
7077
6876
|
Highlight,
|
|
7078
6877
|
{
|
|
7079
6878
|
theme,
|
|
7080
6879
|
code: tabs ? tabs[selectedTab].code : code || "",
|
|
7081
6880
|
language
|
|
7082
6881
|
},
|
|
7083
|
-
({ className: className2, style, tokens, getLineProps, getTokenProps }) => /* @__PURE__ */
|
|
6882
|
+
({ className: className2, style, tokens, getLineProps, getTokenProps }) => /* @__PURE__ */ React54.createElement("pre", { className: "hawa-min-h-[37.75px] hawa-w-full hawa-overflow-auto hawa-p-4 hawa-font-mono hawa-text-foreground" }, tokens.map((line, i) => /* @__PURE__ */ React54.createElement("div", { key: i, ...getLineProps({ line }) }, props.lineNumbers && /* @__PURE__ */ React54.createElement("span", { className: "hawa-mr-4" }, i + 1), line.map((token, key) => /* @__PURE__ */ React54.createElement("span", { key, ...getTokenProps({ token }) })))))
|
|
7084
6883
|
),
|
|
7085
|
-
/* @__PURE__ */
|
|
6884
|
+
/* @__PURE__ */ React54.createElement("div", { className: "hawa-flex hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-p-2" }, /* @__PURE__ */ React54.createElement(
|
|
7086
6885
|
Tooltip,
|
|
7087
6886
|
{
|
|
7088
6887
|
open: clipboard.copied,
|
|
7089
6888
|
side: "left",
|
|
7090
|
-
content: /* @__PURE__ */
|
|
6889
|
+
content: /* @__PURE__ */ React54.createElement("div", null, "Copied!"),
|
|
7091
6890
|
triggerProps: {
|
|
7092
6891
|
asChild: true
|
|
7093
6892
|
}
|
|
7094
6893
|
},
|
|
7095
|
-
/* @__PURE__ */
|
|
6894
|
+
/* @__PURE__ */ React54.createElement(
|
|
7096
6895
|
Button,
|
|
7097
6896
|
{
|
|
7098
6897
|
size: "icon",
|
|
@@ -7100,7 +6899,7 @@ var CodeBlock = ({
|
|
|
7100
6899
|
variant: "outline",
|
|
7101
6900
|
className: "hawa-text-foreground hawa-opacity-50 sm:hawa-opacity-100"
|
|
7102
6901
|
},
|
|
7103
|
-
/* @__PURE__ */
|
|
6902
|
+
/* @__PURE__ */ React54.createElement(
|
|
7104
6903
|
"svg",
|
|
7105
6904
|
{
|
|
7106
6905
|
"aria-label": "Copy Icon",
|
|
@@ -7113,8 +6912,8 @@ var CodeBlock = ({
|
|
|
7113
6912
|
height: "1em",
|
|
7114
6913
|
width: "1em"
|
|
7115
6914
|
},
|
|
7116
|
-
/* @__PURE__ */
|
|
7117
|
-
/* @__PURE__ */
|
|
6915
|
+
/* @__PURE__ */ React54.createElement("rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2" }),
|
|
6916
|
+
/* @__PURE__ */ React54.createElement("path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" })
|
|
7118
6917
|
)
|
|
7119
6918
|
)
|
|
7120
6919
|
))
|
|
@@ -7123,7 +6922,7 @@ var CodeBlock = ({
|
|
|
7123
6922
|
};
|
|
7124
6923
|
|
|
7125
6924
|
// components/elements/Carousel.tsx
|
|
7126
|
-
import
|
|
6925
|
+
import React55, { useEffect as useEffect14, useState as useState16 } from "react";
|
|
7127
6926
|
import useEmblaCarousel from "embla-carousel-react";
|
|
7128
6927
|
var Carousel = (props) => {
|
|
7129
6928
|
const {
|
|
@@ -7137,8 +6936,8 @@ var Carousel = (props) => {
|
|
|
7137
6936
|
const [emblaRef, emblaApi] = useEmblaCarousel({
|
|
7138
6937
|
loop: autoplay ? true : options.loop || false
|
|
7139
6938
|
});
|
|
7140
|
-
const [selectedIndex, setSelectedIndex] =
|
|
7141
|
-
|
|
6939
|
+
const [selectedIndex, setSelectedIndex] = useState16(0);
|
|
6940
|
+
useEffect14(() => {
|
|
7142
6941
|
function selectHandler() {
|
|
7143
6942
|
const index = emblaApi == null ? void 0 : emblaApi.selectedScrollSnap();
|
|
7144
6943
|
setSelectedIndex(index || 0);
|
|
@@ -7148,7 +6947,7 @@ var Carousel = (props) => {
|
|
|
7148
6947
|
emblaApi == null ? void 0 : emblaApi.off("select", selectHandler);
|
|
7149
6948
|
};
|
|
7150
6949
|
}, [emblaApi]);
|
|
7151
|
-
|
|
6950
|
+
useEffect14(() => {
|
|
7152
6951
|
let autoplayTimer;
|
|
7153
6952
|
if (autoplay && emblaApi) {
|
|
7154
6953
|
autoplayTimer = setInterval(() => {
|
|
@@ -7160,24 +6959,24 @@ var Carousel = (props) => {
|
|
|
7160
6959
|
clearInterval(autoplayTimer);
|
|
7161
6960
|
};
|
|
7162
6961
|
}, [emblaApi, autoplay, autoplayInterval]);
|
|
7163
|
-
const length =
|
|
6962
|
+
const length = React55.Children.count(items);
|
|
7164
6963
|
const canScrollNext = !!(emblaApi == null ? void 0 : emblaApi.canScrollNext());
|
|
7165
6964
|
const canScrollPrev = !!(emblaApi == null ? void 0 : emblaApi.canScrollPrev());
|
|
7166
|
-
return /* @__PURE__ */
|
|
6965
|
+
return /* @__PURE__ */ React55.createElement("div", { className: " hawa-relative hawa-h-full" }, /* @__PURE__ */ React55.createElement("div", { className: "hawa-h-full hawa-overflow-hidden" }, /* @__PURE__ */ React55.createElement("div", { className: "hawa-h-full", ref: emblaRef }, /* @__PURE__ */ React55.createElement("div", { className: "hawa-flex hawa-h-full" }, items == null ? void 0 : items.map((item, i) => /* @__PURE__ */ React55.createElement(
|
|
7167
6966
|
"div",
|
|
7168
6967
|
{
|
|
7169
6968
|
key: i,
|
|
7170
6969
|
className: "hawa-flex hawa-h-full hawa-min-w-0 hawa-flex-[0_0_100%] hawa-items-center hawa-justify-center"
|
|
7171
6970
|
},
|
|
7172
6971
|
item
|
|
7173
|
-
))))), /* @__PURE__ */
|
|
6972
|
+
))))), /* @__PURE__ */ React55.createElement(
|
|
7174
6973
|
Dots,
|
|
7175
6974
|
{
|
|
7176
6975
|
itemsLength: length,
|
|
7177
6976
|
selectedIndex,
|
|
7178
6977
|
onDotClick: (index) => emblaApi == null ? void 0 : emblaApi.scrollTo(index)
|
|
7179
6978
|
}
|
|
7180
|
-
), showArrows && /* @__PURE__ */
|
|
6979
|
+
), showArrows && /* @__PURE__ */ React55.createElement(
|
|
7181
6980
|
CarouselControls,
|
|
7182
6981
|
{
|
|
7183
6982
|
canScrollNext,
|
|
@@ -7189,9 +6988,9 @@ var Carousel = (props) => {
|
|
|
7189
6988
|
};
|
|
7190
6989
|
var Dots = ({ onDotClick, itemsLength, selectedIndex }) => {
|
|
7191
6990
|
const arr = new Array(itemsLength).fill(0);
|
|
7192
|
-
return /* @__PURE__ */
|
|
6991
|
+
return /* @__PURE__ */ React55.createElement("div", { className: "hawa-z-50 hawa-my-2 hawa-flex hawa-justify-center hawa-gap-1" }, arr.map((_, index) => {
|
|
7193
6992
|
const selected = index === selectedIndex;
|
|
7194
|
-
return /* @__PURE__ */
|
|
6993
|
+
return /* @__PURE__ */ React55.createElement(
|
|
7195
6994
|
"div",
|
|
7196
6995
|
{
|
|
7197
6996
|
onClick: () => onDotClick(index),
|
|
@@ -7205,7 +7004,7 @@ var Dots = ({ onDotClick, itemsLength, selectedIndex }) => {
|
|
|
7205
7004
|
}));
|
|
7206
7005
|
};
|
|
7207
7006
|
var CarouselControls = (props) => {
|
|
7208
|
-
return /* @__PURE__ */
|
|
7007
|
+
return /* @__PURE__ */ React55.createElement("div", { className: "hawa-flex hawa-justify-end hawa-gap-2 " }, /* @__PURE__ */ React55.createElement(
|
|
7209
7008
|
"button",
|
|
7210
7009
|
{
|
|
7211
7010
|
onClick: () => {
|
|
@@ -7220,7 +7019,7 @@ var CarouselControls = (props) => {
|
|
|
7220
7019
|
props.canScrollPrev && "hawa-bg-primary"
|
|
7221
7020
|
)
|
|
7222
7021
|
},
|
|
7223
|
-
/* @__PURE__ */
|
|
7022
|
+
/* @__PURE__ */ React55.createElement(
|
|
7224
7023
|
"svg",
|
|
7225
7024
|
{
|
|
7226
7025
|
"aria-label": "Chevron Right Icon",
|
|
@@ -7229,9 +7028,9 @@ var CarouselControls = (props) => {
|
|
|
7229
7028
|
viewBox: "0 0 16 16",
|
|
7230
7029
|
className: "hawa-h-2 hawa-w-2 hawa-shrink-0 hawa-rotate-180 hawa-transition-transform hawa-duration-200 "
|
|
7231
7030
|
},
|
|
7232
|
-
/* @__PURE__ */
|
|
7031
|
+
/* @__PURE__ */ React55.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" })
|
|
7233
7032
|
)
|
|
7234
|
-
), /* @__PURE__ */
|
|
7033
|
+
), /* @__PURE__ */ React55.createElement(
|
|
7235
7034
|
"button",
|
|
7236
7035
|
{
|
|
7237
7036
|
onClick: () => {
|
|
@@ -7246,7 +7045,7 @@ var CarouselControls = (props) => {
|
|
|
7246
7045
|
props.canScrollNext && "hawa-bg-primary"
|
|
7247
7046
|
)
|
|
7248
7047
|
},
|
|
7249
|
-
/* @__PURE__ */
|
|
7048
|
+
/* @__PURE__ */ React55.createElement(
|
|
7250
7049
|
"svg",
|
|
7251
7050
|
{
|
|
7252
7051
|
"aria-label": "Chevron Right Icon",
|
|
@@ -7255,19 +7054,19 @@ var CarouselControls = (props) => {
|
|
|
7255
7054
|
viewBox: "0 0 16 16",
|
|
7256
7055
|
className: "hawa-h-2 hawa-w-2 hawa-shrink-0 hawa-transition-transform hawa-duration-200 "
|
|
7257
7056
|
},
|
|
7258
|
-
/* @__PURE__ */
|
|
7057
|
+
/* @__PURE__ */ React55.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" })
|
|
7259
7058
|
)
|
|
7260
7059
|
));
|
|
7261
7060
|
};
|
|
7262
7061
|
|
|
7263
7062
|
// components/elements/Count.tsx
|
|
7264
|
-
import
|
|
7063
|
+
import React56 from "react";
|
|
7265
7064
|
var Count = (props) => {
|
|
7266
|
-
return /* @__PURE__ */
|
|
7065
|
+
return /* @__PURE__ */ React56.createElement("div", { className: "hawa-flex hawa-h-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-px-2" }, /* @__PURE__ */ React56.createElement("div", null, props.icon), /* @__PURE__ */ React56.createElement("div", { className: "hawa-text-sm" }, props.count));
|
|
7267
7066
|
};
|
|
7268
7067
|
|
|
7269
7068
|
// components/elements/Toast.tsx
|
|
7270
|
-
import * as
|
|
7069
|
+
import * as React57 from "react";
|
|
7271
7070
|
import * as ToastPrimitives from "@radix-ui/react-toast";
|
|
7272
7071
|
import { cva as cva4 } from "class-variance-authority";
|
|
7273
7072
|
var toastVariants = cva4(
|
|
@@ -7292,7 +7091,7 @@ var toastVariants = cva4(
|
|
|
7292
7091
|
}
|
|
7293
7092
|
);
|
|
7294
7093
|
var ToastProvider = ToastPrimitives.Provider;
|
|
7295
|
-
var ToastViewport =
|
|
7094
|
+
var ToastViewport = React57.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React57.createElement(
|
|
7296
7095
|
ToastPrimitives.Viewport,
|
|
7297
7096
|
{
|
|
7298
7097
|
ref,
|
|
@@ -7304,8 +7103,8 @@ var ToastViewport = React59.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
7304
7103
|
}
|
|
7305
7104
|
));
|
|
7306
7105
|
ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
|
|
7307
|
-
var Toast =
|
|
7308
|
-
return /* @__PURE__ */
|
|
7106
|
+
var Toast = React57.forwardRef(({ className, variant, severity = "none", direction, ...props }, ref) => {
|
|
7107
|
+
return /* @__PURE__ */ React57.createElement(
|
|
7309
7108
|
ToastPrimitives.Root,
|
|
7310
7109
|
{
|
|
7311
7110
|
ref,
|
|
@@ -7320,8 +7119,8 @@ var Toast = React59.forwardRef(({ className, variant, severity = "none", directi
|
|
|
7320
7119
|
);
|
|
7321
7120
|
});
|
|
7322
7121
|
Toast.displayName = ToastPrimitives.Root.displayName;
|
|
7323
|
-
var ToastAction =
|
|
7324
|
-
return /* @__PURE__ */
|
|
7122
|
+
var ToastAction = React57.forwardRef(({ className, ...props }, ref) => {
|
|
7123
|
+
return /* @__PURE__ */ React57.createElement(
|
|
7325
7124
|
ToastPrimitives.Action,
|
|
7326
7125
|
{
|
|
7327
7126
|
ref,
|
|
@@ -7338,7 +7137,7 @@ var ToastAction = React59.forwardRef(({ className, ...props }, ref) => {
|
|
|
7338
7137
|
);
|
|
7339
7138
|
});
|
|
7340
7139
|
ToastAction.displayName = ToastPrimitives.Action.displayName;
|
|
7341
|
-
var ToastClose =
|
|
7140
|
+
var ToastClose = React57.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React57.createElement(
|
|
7342
7141
|
ToastPrimitives.Close,
|
|
7343
7142
|
{
|
|
7344
7143
|
ref,
|
|
@@ -7349,7 +7148,7 @@ var ToastClose = React59.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
7349
7148
|
"toast-close": "",
|
|
7350
7149
|
...props
|
|
7351
7150
|
},
|
|
7352
|
-
/* @__PURE__ */
|
|
7151
|
+
/* @__PURE__ */ React57.createElement(
|
|
7353
7152
|
"svg",
|
|
7354
7153
|
{
|
|
7355
7154
|
"aria-label": "Close Icon",
|
|
@@ -7358,7 +7157,7 @@ var ToastClose = React59.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
7358
7157
|
fill: "currentColor",
|
|
7359
7158
|
viewBox: "0 0 20 20"
|
|
7360
7159
|
},
|
|
7361
|
-
/* @__PURE__ */
|
|
7160
|
+
/* @__PURE__ */ React57.createElement(
|
|
7362
7161
|
"path",
|
|
7363
7162
|
{
|
|
7364
7163
|
fillRule: "evenodd",
|
|
@@ -7369,7 +7168,7 @@ var ToastClose = React59.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
7369
7168
|
)
|
|
7370
7169
|
));
|
|
7371
7170
|
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
|
7372
|
-
var ToastTitle =
|
|
7171
|
+
var ToastTitle = React57.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React57.createElement(
|
|
7373
7172
|
ToastPrimitives.Title,
|
|
7374
7173
|
{
|
|
7375
7174
|
ref,
|
|
@@ -7381,7 +7180,7 @@ var ToastTitle = React59.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
7381
7180
|
}
|
|
7382
7181
|
));
|
|
7383
7182
|
ToastTitle.displayName = ToastPrimitives.Title.displayName;
|
|
7384
|
-
var ToastDescription =
|
|
7183
|
+
var ToastDescription = React57.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React57.createElement(
|
|
7385
7184
|
ToastPrimitives.Description,
|
|
7386
7185
|
{
|
|
7387
7186
|
ref,
|
|
@@ -7392,13 +7191,13 @@ var ToastDescription = React59.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
7392
7191
|
ToastDescription.displayName = ToastPrimitives.Description.displayName;
|
|
7393
7192
|
|
|
7394
7193
|
// components/elements/Toaster.tsx
|
|
7395
|
-
import
|
|
7194
|
+
import React58 from "react";
|
|
7396
7195
|
function Toaster(props) {
|
|
7397
7196
|
const { toasts } = useToast();
|
|
7398
7197
|
let isRTL = props.direction === "rtl";
|
|
7399
|
-
return /* @__PURE__ */
|
|
7400
|
-
return /* @__PURE__ */
|
|
7401
|
-
}), /* @__PURE__ */
|
|
7198
|
+
return /* @__PURE__ */ React58.createElement(ToastProvider, { swipeDirection: isRTL ? "left" : "right" }, toasts.map(function({ id, title, description, action, ...toastProps }) {
|
|
7199
|
+
return /* @__PURE__ */ React58.createElement(Toast, { direction: props.direction, key: id, ...toastProps }, /* @__PURE__ */ React58.createElement("div", { className: "hawa-grid hawa-gap-1 hawa-text-start" }, title && /* @__PURE__ */ React58.createElement(ToastTitle, null, title), description && /* @__PURE__ */ React58.createElement(ToastDescription, null, description)), action, /* @__PURE__ */ React58.createElement(ToastClose, null));
|
|
7200
|
+
}), /* @__PURE__ */ React58.createElement(
|
|
7402
7201
|
ToastViewport,
|
|
7403
7202
|
{
|
|
7404
7203
|
className: cn("hawa-gap-2", isRTL && "hawa-fixed hawa-left-0")
|
|
@@ -7406,158 +7205,21 @@ function Toaster(props) {
|
|
|
7406
7205
|
));
|
|
7407
7206
|
}
|
|
7408
7207
|
|
|
7409
|
-
// components/elements/Breadcrumb.tsx
|
|
7410
|
-
import React61 from "react";
|
|
7411
|
-
var Breadcrumb = ({
|
|
7412
|
-
breadcrumbLinks,
|
|
7413
|
-
separator = ">"
|
|
7414
|
-
}) => {
|
|
7415
|
-
return /* @__PURE__ */ React61.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 hawa-text-sm" }, breadcrumbLinks.map((singleBreadcrumbLink, index) => /* @__PURE__ */ React61.createElement(
|
|
7416
|
-
"div",
|
|
7417
|
-
{
|
|
7418
|
-
key: index,
|
|
7419
|
-
className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-2"
|
|
7420
|
-
},
|
|
7421
|
-
/* @__PURE__ */ React61.createElement(
|
|
7422
|
-
"a",
|
|
7423
|
-
{
|
|
7424
|
-
href: singleBreadcrumbLink.href,
|
|
7425
|
-
className: index + 1 === breadcrumbLinks.length ? "hawa-pointer-events-none" : "hawa-underline-offset-4 hawa-transition-all hover:hawa-text-primary hover:hawa-underline hover:hawa-decoration-2"
|
|
7426
|
-
},
|
|
7427
|
-
singleBreadcrumbLink.label
|
|
7428
|
-
),
|
|
7429
|
-
index != breadcrumbLinks.length - 1 ? typeof separator == "string" ? /* @__PURE__ */ React61.createElement("div", null, separator) : /* @__PURE__ */ React61.createElement("div", null, separator) : null
|
|
7430
|
-
)));
|
|
7431
|
-
};
|
|
7432
|
-
|
|
7433
|
-
// components/elements/Badge.tsx
|
|
7434
|
-
import React62, { useEffect as useEffect16, useState as useState19, useRef as useRef8 } from "react";
|
|
7435
|
-
var Badge = ({
|
|
7436
|
-
anchor,
|
|
7437
|
-
position = "right",
|
|
7438
|
-
size = "default",
|
|
7439
|
-
text,
|
|
7440
|
-
className
|
|
7441
|
-
}) => {
|
|
7442
|
-
const [badgePosition, setBadgePosition] = useState19(null);
|
|
7443
|
-
const indicatorRef = useRef8(null);
|
|
7444
|
-
const sizeStyles = {
|
|
7445
|
-
small: { top: 4, left: 6, right: 7, classes: "hawa-w-3 hawa-h-3" },
|
|
7446
|
-
default: { top: 4, left: 7, right: 5, classes: "hawa-w-3 hawa-h-3" },
|
|
7447
|
-
large: { top: 6, left: 12, right: 7, classes: "hawa-w-6 hawa-h-6" }
|
|
7448
|
-
};
|
|
7449
|
-
useEffect16(() => {
|
|
7450
|
-
const handlePositioning = () => {
|
|
7451
|
-
var _a;
|
|
7452
|
-
if (anchor.current && indicatorRef.current) {
|
|
7453
|
-
const rect = anchor.current.getBoundingClientRect();
|
|
7454
|
-
const parentRect = (_a = indicatorRef.current.parentElement) == null ? void 0 : _a.getBoundingClientRect();
|
|
7455
|
-
const style = window.getComputedStyle(anchor.current);
|
|
7456
|
-
const marginTop = parseFloat(style.marginTop.replace("px", ""));
|
|
7457
|
-
const marginRight = parseFloat(style.marginRight.replace("px", ""));
|
|
7458
|
-
if (parentRect) {
|
|
7459
|
-
setBadgePosition({
|
|
7460
|
-
top: rect.top - parentRect.top - marginTop - sizeStyles[size].top,
|
|
7461
|
-
left: position === "right" ? parentRect.right - parentRect.left - sizeStyles[size].left : rect.right - parentRect.left - parentRect.width - marginRight - sizeStyles[size].right
|
|
7462
|
-
});
|
|
7463
|
-
}
|
|
7464
|
-
}
|
|
7465
|
-
};
|
|
7466
|
-
handlePositioning();
|
|
7467
|
-
window.addEventListener("resize", handlePositioning);
|
|
7468
|
-
return () => {
|
|
7469
|
-
window.removeEventListener("resize", handlePositioning);
|
|
7470
|
-
};
|
|
7471
|
-
}, [anchor]);
|
|
7472
|
-
return /* @__PURE__ */ React62.createElement("div", { ref: indicatorRef, className: cn("hawa-relative", className) }, badgePosition && /* @__PURE__ */ React62.createElement(
|
|
7473
|
-
"div",
|
|
7474
|
-
{
|
|
7475
|
-
style: {
|
|
7476
|
-
position: "absolute",
|
|
7477
|
-
top: badgePosition == null ? void 0 : badgePosition.top,
|
|
7478
|
-
left: badgePosition == null ? void 0 : badgePosition.left
|
|
7479
|
-
},
|
|
7480
|
-
className: cn(
|
|
7481
|
-
"hawa-origin-center hawa-rounded-full hawa-bg-red-500 ",
|
|
7482
|
-
sizeStyles[size].classes,
|
|
7483
|
-
"hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-text-[9px] hawa-text-white"
|
|
7484
|
-
)
|
|
7485
|
-
},
|
|
7486
|
-
size === "large" && text && text
|
|
7487
|
-
));
|
|
7488
|
-
};
|
|
7489
|
-
var BadgedComponent = ({
|
|
7490
|
-
children,
|
|
7491
|
-
className,
|
|
7492
|
-
hideBadge,
|
|
7493
|
-
position,
|
|
7494
|
-
size,
|
|
7495
|
-
text
|
|
7496
|
-
}) => {
|
|
7497
|
-
const ref = useRef8(null);
|
|
7498
|
-
return /* @__PURE__ */ React62.createElement("div", { className: cn("hawa-relative hawa-w-fit", className), ref }, !hideBadge && /* @__PURE__ */ React62.createElement(
|
|
7499
|
-
Badge,
|
|
7500
|
-
{
|
|
7501
|
-
size,
|
|
7502
|
-
text,
|
|
7503
|
-
position,
|
|
7504
|
-
anchor: ref,
|
|
7505
|
-
className: "hawa-z-10"
|
|
7506
|
-
}
|
|
7507
|
-
), children);
|
|
7508
|
-
};
|
|
7509
|
-
|
|
7510
|
-
// components/elements/AppStores.tsx
|
|
7511
|
-
import React63 from "react";
|
|
7512
|
-
var AppStores = (props) => {
|
|
7513
|
-
return /* @__PURE__ */ React63.createElement("div", { className: "hawa-flex hawa-justify-center" }, /* @__PURE__ */ React63.createElement("div", null, props.store === "apple" ? /* @__PURE__ */ React63.createElement("div", { className: "hawa-mt-3 hawa-flex hawa-h-14 hawa-w-48 hawa-items-center hawa-justify-center hawa-rounded-lg hawa-bg-black hawa-text-white dark:hawa-bg-white dark:hawa-text-black" }, /* @__PURE__ */ React63.createElement("div", { className: "hawa-mr-3" }, /* @__PURE__ */ React63.createElement("svg", { viewBox: "0 0 384 512", width: "30" }, /* @__PURE__ */ React63.createElement(
|
|
7514
|
-
"path",
|
|
7515
|
-
{
|
|
7516
|
-
fill: "currentColor",
|
|
7517
|
-
d: "M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"
|
|
7518
|
-
}
|
|
7519
|
-
))), /* @__PURE__ */ React63.createElement("div", null, /* @__PURE__ */ React63.createElement("div", { className: "hawa-text-xs" }, "Download on the"), /* @__PURE__ */ React63.createElement("div", { className: "hawa--mt-1 hawa-font-sans hawa-text-2xl hawa-font-semibold" }, "App Store"))) : /* @__PURE__ */ React63.createElement("div", { className: "hawa-mt-3 hawa-flex hawa-h-14 hawa-w-48 hawa-items-center hawa-justify-center hawa-rounded-lg hawa-border hawa-border-black hawa-bg-black hawa-text-white dark:hawa-bg-white dark:hawa-text-black" }, /* @__PURE__ */ React63.createElement("div", { className: "hawa-mr-3" }, /* @__PURE__ */ React63.createElement("svg", { viewBox: "30 336.7 120.9 129.2", width: "30" }, /* @__PURE__ */ React63.createElement(
|
|
7520
|
-
"path",
|
|
7521
|
-
{
|
|
7522
|
-
fill: "#FFD400",
|
|
7523
|
-
d: "M119.2,421.2c15.3-8.4,27-14.8,28-15.3c3.2-1.7,6.5-6.2,0-9.7 c-2.1-1.1-13.4-7.3-28-15.3l-20.1,20.2L119.2,421.2z"
|
|
7524
|
-
}
|
|
7525
|
-
), /* @__PURE__ */ React63.createElement(
|
|
7526
|
-
"path",
|
|
7527
|
-
{
|
|
7528
|
-
fill: "#FF3333",
|
|
7529
|
-
d: "M99.1,401.1l-64.2,64.7c1.5,0.2,3.2-0.2,5.2-1.3 c4.2-2.3,48.8-26.7,79.1-43.3L99.1,401.1L99.1,401.1z"
|
|
7530
|
-
}
|
|
7531
|
-
), /* @__PURE__ */ React63.createElement(
|
|
7532
|
-
"path",
|
|
7533
|
-
{
|
|
7534
|
-
fill: "#48FF48",
|
|
7535
|
-
d: "M99.1,401.1l20.1-20.2c0,0-74.6-40.7-79.1-43.1 c-1.7-1-3.6-1.3-5.3-1L99.1,401.1z"
|
|
7536
|
-
}
|
|
7537
|
-
), /* @__PURE__ */ React63.createElement(
|
|
7538
|
-
"path",
|
|
7539
|
-
{
|
|
7540
|
-
fill: "#3BCCFF",
|
|
7541
|
-
d: "M99.1,401.1l-64.3-64.3c-2.6,0.6-4.8,2.9-4.8,7.6 c0,7.5,0,107.5,0,113.8c0,4.3,1.7,7.4,4.9,7.7L99.1,401.1z"
|
|
7542
|
-
}
|
|
7543
|
-
))), /* @__PURE__ */ React63.createElement("div", null, /* @__PURE__ */ React63.createElement("div", { className: "hawa-text-xs" }, "GET IT ON"), /* @__PURE__ */ React63.createElement("div", { className: "hawa--mt-1 hawa-font-sans hawa-text-xl hawa-font-semibold" }, "Google Play")))));
|
|
7544
|
-
};
|
|
7545
|
-
|
|
7546
7208
|
// components/elements/DestroyableCard.tsx
|
|
7547
|
-
import
|
|
7209
|
+
import React59, { useRef as useRef8, useState as useState17 } from "react";
|
|
7548
7210
|
var DestroyableCard = ({
|
|
7549
7211
|
position = "bottom-right",
|
|
7550
7212
|
fixed,
|
|
7551
7213
|
direction,
|
|
7552
7214
|
...props
|
|
7553
7215
|
}) => {
|
|
7554
|
-
const [closed, setClosed] =
|
|
7555
|
-
const popUpRef =
|
|
7216
|
+
const [closed, setClosed] = useState17(false);
|
|
7217
|
+
const popUpRef = useRef8(null);
|
|
7556
7218
|
const boxPosition = {
|
|
7557
7219
|
"bottom-right": "hawa-right-4 hawa-bottom-4",
|
|
7558
7220
|
"bottom-left": "hawa-left-4 hawa-bottom-4"
|
|
7559
7221
|
};
|
|
7560
|
-
return /* @__PURE__ */
|
|
7222
|
+
return /* @__PURE__ */ React59.createElement(
|
|
7561
7223
|
"div",
|
|
7562
7224
|
{
|
|
7563
7225
|
className: cn(
|
|
@@ -7566,7 +7228,7 @@ var DestroyableCard = ({
|
|
|
7566
7228
|
),
|
|
7567
7229
|
ref: popUpRef
|
|
7568
7230
|
},
|
|
7569
|
-
/* @__PURE__ */
|
|
7231
|
+
/* @__PURE__ */ React59.createElement(
|
|
7570
7232
|
Card,
|
|
7571
7233
|
{
|
|
7572
7234
|
className: cn(
|
|
@@ -7575,7 +7237,7 @@ var DestroyableCard = ({
|
|
|
7575
7237
|
),
|
|
7576
7238
|
dir: direction
|
|
7577
7239
|
},
|
|
7578
|
-
/* @__PURE__ */
|
|
7240
|
+
/* @__PURE__ */ React59.createElement(
|
|
7579
7241
|
"button",
|
|
7580
7242
|
{
|
|
7581
7243
|
type: "button",
|
|
@@ -7594,7 +7256,7 @@ var DestroyableCard = ({
|
|
|
7594
7256
|
}, 200);
|
|
7595
7257
|
}
|
|
7596
7258
|
},
|
|
7597
|
-
/* @__PURE__ */
|
|
7259
|
+
/* @__PURE__ */ React59.createElement(
|
|
7598
7260
|
"svg",
|
|
7599
7261
|
{
|
|
7600
7262
|
"aria-hidden": "true",
|
|
@@ -7602,7 +7264,7 @@ var DestroyableCard = ({
|
|
|
7602
7264
|
fill: "currentColor",
|
|
7603
7265
|
viewBox: "0 0 20 20"
|
|
7604
7266
|
},
|
|
7605
|
-
/* @__PURE__ */
|
|
7267
|
+
/* @__PURE__ */ React59.createElement(
|
|
7606
7268
|
"path",
|
|
7607
7269
|
{
|
|
7608
7270
|
fillRule: "evenodd",
|
|
@@ -7612,13 +7274,13 @@ var DestroyableCard = ({
|
|
|
7612
7274
|
)
|
|
7613
7275
|
)
|
|
7614
7276
|
),
|
|
7615
|
-
/* @__PURE__ */
|
|
7277
|
+
/* @__PURE__ */ React59.createElement(CardContent, { headless: true }, props.children)
|
|
7616
7278
|
)
|
|
7617
7279
|
);
|
|
7618
7280
|
};
|
|
7619
7281
|
|
|
7620
7282
|
// components/elements/InterfaceSettings.tsx
|
|
7621
|
-
import
|
|
7283
|
+
import React60, { useState as useState18 } from "react";
|
|
7622
7284
|
var InterfaceSettings = ({
|
|
7623
7285
|
orientation = "horizontal",
|
|
7624
7286
|
width = "default",
|
|
@@ -7626,13 +7288,13 @@ var InterfaceSettings = ({
|
|
|
7626
7288
|
handleLanguage,
|
|
7627
7289
|
...props
|
|
7628
7290
|
}) => {
|
|
7629
|
-
const [color, setColor] =
|
|
7630
|
-
const [language, setLanguage] =
|
|
7291
|
+
const [color, setColor] = useState18(props.currentColorMode);
|
|
7292
|
+
const [language, setLanguage] = useState18(props.currentLanguage);
|
|
7631
7293
|
let orientationStyle = {
|
|
7632
7294
|
horizontal: "hawa-flex hawa-flex-row hawa-justify-between",
|
|
7633
7295
|
vertical: "hawa-flex hawa-flex-col hawa-items-center hawa-gap-2"
|
|
7634
7296
|
};
|
|
7635
|
-
return /* @__PURE__ */
|
|
7297
|
+
return /* @__PURE__ */ React60.createElement("div", { className: cn(orientationStyle[orientation]) }, /* @__PURE__ */ React60.createElement(
|
|
7636
7298
|
Radio,
|
|
7637
7299
|
{
|
|
7638
7300
|
width,
|
|
@@ -7649,7 +7311,7 @@ var InterfaceSettings = ({
|
|
|
7649
7311
|
{ value: "en", label: "English" }
|
|
7650
7312
|
]
|
|
7651
7313
|
}
|
|
7652
|
-
), /* @__PURE__ */
|
|
7314
|
+
), /* @__PURE__ */ React60.createElement(
|
|
7653
7315
|
Radio,
|
|
7654
7316
|
{
|
|
7655
7317
|
width,
|
|
@@ -7664,7 +7326,7 @@ var InterfaceSettings = ({
|
|
|
7664
7326
|
options: [
|
|
7665
7327
|
{
|
|
7666
7328
|
value: "light",
|
|
7667
|
-
label: /* @__PURE__ */
|
|
7329
|
+
label: /* @__PURE__ */ React60.createElement(
|
|
7668
7330
|
"svg",
|
|
7669
7331
|
{
|
|
7670
7332
|
width: "15",
|
|
@@ -7674,7 +7336,7 @@ var InterfaceSettings = ({
|
|
|
7674
7336
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7675
7337
|
className: "hawa-h-[1.2rem] hawa-w-[1.2rem] hawa-rotate-0 hawa-scale-100 hawa-transition-all dark:hawa--rotate-90"
|
|
7676
7338
|
},
|
|
7677
|
-
/* @__PURE__ */
|
|
7339
|
+
/* @__PURE__ */ React60.createElement(
|
|
7678
7340
|
"path",
|
|
7679
7341
|
{
|
|
7680
7342
|
d: "M7.5 0C7.77614 0 8 0.223858 8 0.5V2.5C8 2.77614 7.77614 3 7.5 3C7.22386 3 7 2.77614 7 2.5V0.5C7 0.223858 7.22386 0 7.5 0ZM2.1967 2.1967C2.39196 2.00144 2.70854 2.00144 2.90381 2.1967L4.31802 3.61091C4.51328 3.80617 4.51328 4.12276 4.31802 4.31802C4.12276 4.51328 3.80617 4.51328 3.61091 4.31802L2.1967 2.90381C2.00144 2.70854 2.00144 2.39196 2.1967 2.1967ZM0.5 7C0.223858 7 0 7.22386 0 7.5C0 7.77614 0.223858 8 0.5 8H2.5C2.77614 8 3 7.77614 3 7.5C3 7.22386 2.77614 7 2.5 7H0.5ZM2.1967 12.8033C2.00144 12.608 2.00144 12.2915 2.1967 12.0962L3.61091 10.682C3.80617 10.4867 4.12276 10.4867 4.31802 10.682C4.51328 10.8772 4.51328 11.1938 4.31802 11.3891L2.90381 12.8033C2.70854 12.9986 2.39196 12.9986 2.1967 12.8033ZM12.5 7C12.2239 7 12 7.22386 12 7.5C12 7.77614 12.2239 8 12.5 8H14.5C14.7761 8 15 7.77614 15 7.5C15 7.22386 14.7761 7 14.5 7H12.5ZM10.682 4.31802C10.4867 4.12276 10.4867 3.80617 10.682 3.61091L12.0962 2.1967C12.2915 2.00144 12.608 2.00144 12.8033 2.1967C12.9986 2.39196 12.9986 2.70854 12.8033 2.90381L11.3891 4.31802C11.1938 4.51328 10.8772 4.51328 10.682 4.31802ZM8 12.5C8 12.2239 7.77614 12 7.5 12C7.22386 12 7 12.2239 7 12.5V14.5C7 14.7761 7.22386 15 7.5 15C7.77614 15 8 14.7761 8 14.5V12.5ZM10.682 10.682C10.8772 10.4867 11.1938 10.4867 11.3891 10.682L12.8033 12.0962C12.9986 12.2915 12.9986 12.608 12.8033 12.8033C12.608 12.9986 12.2915 12.9986 12.0962 12.8033L10.682 11.3891C10.4867 11.1938 10.4867 10.8772 10.682 10.682ZM5.5 7.5C5.5 6.39543 6.39543 5.5 7.5 5.5C8.60457 5.5 9.5 6.39543 9.5 7.5C9.5 8.60457 8.60457 9.5 7.5 9.5C6.39543 9.5 5.5 8.60457 5.5 7.5ZM7.5 4.5C5.84315 4.5 4.5 5.84315 4.5 7.5C4.5 9.15685 5.84315 10.5 7.5 10.5C9.15685 10.5 10.5 9.15685 10.5 7.5C10.5 5.84315 9.15685 4.5 7.5 4.5Z",
|
|
@@ -7685,7 +7347,7 @@ var InterfaceSettings = ({
|
|
|
7685
7347
|
},
|
|
7686
7348
|
{
|
|
7687
7349
|
value: "dark",
|
|
7688
|
-
label: /* @__PURE__ */
|
|
7350
|
+
label: /* @__PURE__ */ React60.createElement(
|
|
7689
7351
|
"svg",
|
|
7690
7352
|
{
|
|
7691
7353
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7696,7 +7358,7 @@ var InterfaceSettings = ({
|
|
|
7696
7358
|
stroke: "currentColor",
|
|
7697
7359
|
className: "hawa-h-[1.2rem] hawa-w-[1.2rem] hawa-transition-all dark:hawa-rotate-0 dark:hawa-scale-100"
|
|
7698
7360
|
},
|
|
7699
|
-
/* @__PURE__ */
|
|
7361
|
+
/* @__PURE__ */ React60.createElement("path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z" })
|
|
7700
7362
|
)
|
|
7701
7363
|
}
|
|
7702
7364
|
]
|
|
@@ -7706,15 +7368,46 @@ var InterfaceSettings = ({
|
|
|
7706
7368
|
|
|
7707
7369
|
export {
|
|
7708
7370
|
cn,
|
|
7371
|
+
Loading,
|
|
7372
|
+
buttonVariants,
|
|
7373
|
+
Button,
|
|
7374
|
+
Alert,
|
|
7709
7375
|
Card,
|
|
7710
7376
|
CardHeader,
|
|
7711
7377
|
CardTitle,
|
|
7712
7378
|
CardDescription,
|
|
7713
7379
|
CardContent,
|
|
7714
7380
|
CardFooter,
|
|
7715
|
-
Loading,
|
|
7716
7381
|
Tooltip,
|
|
7382
|
+
Label2 as Label,
|
|
7717
7383
|
Skeleton,
|
|
7384
|
+
Input,
|
|
7385
|
+
Select,
|
|
7386
|
+
PhoneInput,
|
|
7387
|
+
VeryGoodEmoji,
|
|
7388
|
+
GoodEmoji,
|
|
7389
|
+
BadEmoji,
|
|
7390
|
+
VeryBadEmoji,
|
|
7391
|
+
EyeIcon,
|
|
7392
|
+
HiddenEyeIcon,
|
|
7393
|
+
CheckMark,
|
|
7394
|
+
UncheckMark,
|
|
7395
|
+
Logos,
|
|
7396
|
+
Checkbox,
|
|
7397
|
+
StopPropagationWrapper,
|
|
7398
|
+
PinInput,
|
|
7399
|
+
Radio,
|
|
7400
|
+
Textarea,
|
|
7401
|
+
PopoverContent,
|
|
7402
|
+
Popover,
|
|
7403
|
+
PopoverTrigger,
|
|
7404
|
+
ScrollArea,
|
|
7405
|
+
ScrollBar,
|
|
7406
|
+
Chip,
|
|
7407
|
+
Tabs,
|
|
7408
|
+
TabsList,
|
|
7409
|
+
TabsTrigger,
|
|
7410
|
+
TabsContent,
|
|
7718
7411
|
DropdownMenuRoot,
|
|
7719
7412
|
DropdownMenuTrigger,
|
|
7720
7413
|
DropdownMenuGroup,
|
|
@@ -7737,7 +7430,6 @@ export {
|
|
|
7737
7430
|
Accordion,
|
|
7738
7431
|
AccordionItem,
|
|
7739
7432
|
AccordionRoot,
|
|
7740
|
-
Logos,
|
|
7741
7433
|
navigationMenuTriggerStyle,
|
|
7742
7434
|
NavigationMenuRoot,
|
|
7743
7435
|
NavigationMenuList,
|
|
@@ -7772,13 +7464,8 @@ export {
|
|
|
7772
7464
|
DialogSteps,
|
|
7773
7465
|
DialogStep,
|
|
7774
7466
|
DialogBody,
|
|
7775
|
-
buttonVariants,
|
|
7776
|
-
Button,
|
|
7777
|
-
Alert,
|
|
7778
7467
|
FileUploader,
|
|
7779
7468
|
Avatar,
|
|
7780
|
-
Label2 as Label,
|
|
7781
|
-
Input,
|
|
7782
7469
|
Table,
|
|
7783
7470
|
TableHeader,
|
|
7784
7471
|
TableHead,
|
|
@@ -7789,7 +7476,6 @@ export {
|
|
|
7789
7476
|
TableCaption,
|
|
7790
7477
|
DataTable,
|
|
7791
7478
|
BackToTop,
|
|
7792
|
-
Radio,
|
|
7793
7479
|
Command,
|
|
7794
7480
|
CommandDialog,
|
|
7795
7481
|
CommandInput,
|
|
@@ -7799,48 +7485,23 @@ export {
|
|
|
7799
7485
|
CommandSeparator,
|
|
7800
7486
|
CommandItem,
|
|
7801
7487
|
CommandShortcut,
|
|
7802
|
-
PopoverContent,
|
|
7803
|
-
Popover,
|
|
7804
|
-
PopoverTrigger,
|
|
7805
7488
|
Combobox,
|
|
7806
|
-
Textarea,
|
|
7807
7489
|
FileDropzone,
|
|
7808
7490
|
SortButton,
|
|
7809
|
-
Chip,
|
|
7810
|
-
Tabs,
|
|
7811
|
-
TabsList,
|
|
7812
|
-
TabsTrigger,
|
|
7813
|
-
TabsContent,
|
|
7814
|
-
Select,
|
|
7815
7491
|
Switch,
|
|
7816
|
-
Checkbox,
|
|
7817
|
-
ActionCard,
|
|
7818
|
-
AdCard,
|
|
7819
|
-
PricingCard,
|
|
7820
|
-
ItemCard,
|
|
7821
|
-
LandingCard,
|
|
7822
|
-
PinInput,
|
|
7823
|
-
PhoneInput,
|
|
7824
7492
|
Progress,
|
|
7493
|
+
Breadcrumb,
|
|
7494
|
+
AppStores,
|
|
7495
|
+
Badge,
|
|
7496
|
+
BadgedComponent,
|
|
7825
7497
|
ProgressCircle,
|
|
7826
7498
|
Pagination,
|
|
7827
|
-
VeryGoodEmoji,
|
|
7828
|
-
GoodEmoji,
|
|
7829
|
-
BadEmoji,
|
|
7830
|
-
VeryBadEmoji,
|
|
7831
|
-
EyeIcon,
|
|
7832
|
-
HiddenEyeIcon,
|
|
7833
|
-
CheckMark,
|
|
7834
|
-
UncheckMark,
|
|
7835
7499
|
PasswordStrengthIndicator,
|
|
7836
7500
|
PasswordInput,
|
|
7837
7501
|
Slider,
|
|
7838
7502
|
SimpleTable,
|
|
7839
7503
|
Separator2 as Separator,
|
|
7840
|
-
ScrollArea,
|
|
7841
|
-
ScrollBar,
|
|
7842
7504
|
ScrollIndicator,
|
|
7843
|
-
StopPropagationWrapper,
|
|
7844
7505
|
ColorPicker,
|
|
7845
7506
|
CodeBlock,
|
|
7846
7507
|
Carousel,
|
|
@@ -7853,10 +7514,6 @@ export {
|
|
|
7853
7514
|
ToastTitle,
|
|
7854
7515
|
ToastDescription,
|
|
7855
7516
|
Toaster,
|
|
7856
|
-
Breadcrumb,
|
|
7857
|
-
Badge,
|
|
7858
|
-
BadgedComponent,
|
|
7859
|
-
AppStores,
|
|
7860
7517
|
DestroyableCard,
|
|
7861
7518
|
InterfaceSettings
|
|
7862
7519
|
};
|