@sikka/hawa 0.35.0-next → 0.35.2-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/alert/index.js +38 -37
- package/dist/alert/index.js.map +1 -1
- package/dist/alert/index.mjs +1 -0
- package/dist/alert/index.mjs.map +1 -1
- package/dist/appLayout/index.js +63 -62
- package/dist/appLayout/index.js.map +1 -1
- package/dist/appLayout/index.mjs +5 -4
- package/dist/appLayout/index.mjs.map +1 -1
- package/dist/backToTop/index.js +34 -33
- package/dist/backToTop/index.js.map +1 -1
- package/dist/backToTop/index.mjs +1 -0
- package/dist/backToTop/index.mjs.map +1 -1
- package/dist/blocks/auth/index.js +255 -254
- package/dist/blocks/auth/index.mjs +4 -4
- package/dist/blocks/feedback/index.js +137 -136
- package/dist/blocks/feedback/index.mjs +5 -5
- package/dist/blocks/index.js +511 -510
- package/dist/blocks/index.mjs +2 -2
- package/dist/blocks/misc/index.js +115 -114
- package/dist/blocks/misc/index.mjs +5 -5
- package/dist/blocks/pricing/index.js +121 -120
- package/dist/blocks/pricing/index.mjs +4 -4
- package/dist/button/index.js +25 -24
- package/dist/button/index.js.map +1 -1
- package/dist/button/index.mjs +1 -0
- package/dist/button/index.mjs.map +1 -1
- package/dist/calendar/index.js +25 -24
- package/dist/calendar/index.js.map +1 -1
- package/dist/calendar/index.mjs +1 -0
- package/dist/calendar/index.mjs.map +1 -1
- package/dist/{chunk-XJMDUR5A.mjs → chunk-7L2JUNG2.mjs} +1 -1
- package/dist/{chunk-GVZWOUGN.mjs → chunk-CD6AQVU3.mjs} +1 -1
- package/dist/{chunk-IDKXEJET.mjs → chunk-FY7BKFH7.mjs} +33 -32
- package/dist/{chunk-A376BKNX.mjs → chunk-JEZLVXSU.mjs} +1 -1
- package/dist/{chunk-YOT2GVXO.mjs → chunk-LVXG3SMD.mjs} +1 -1
- package/dist/{chunk-HHC34DXN.mjs → chunk-MVKP55SZ.mjs} +1 -1
- package/dist/{chunk-L56XQRQI.mjs → chunk-WABHQMUI.mjs} +1 -1
- package/dist/{chunk-XFRJ62W3.mjs → chunk-WVMMGOXW.mjs} +1 -1
- package/dist/{chunk-DFWFQWWT.mjs → chunk-Y6XTMPVO.mjs} +1 -1
- package/dist/{chunk-DABX3SU6.mjs → chunk-YP2CCKZG.mjs} +33 -32
- package/dist/codeBlock/index.js +45 -44
- package/dist/codeBlock/index.js.map +1 -1
- package/dist/codeBlock/index.mjs +1 -0
- package/dist/codeBlock/index.mjs.map +1 -1
- package/dist/dataTable/index.js +38 -37
- package/dist/dataTable/index.js.map +1 -1
- package/dist/dataTable/index.mjs +1 -0
- package/dist/dataTable/index.mjs.map +1 -1
- package/dist/datePicker/index.d.mts +18 -0
- package/dist/datePicker/index.d.ts +18 -0
- package/dist/datePicker/index.js +37 -33
- package/dist/datePicker/index.js.map +1 -1
- package/dist/datePicker/index.mjs +5 -1
- package/dist/datePicker/index.mjs.map +1 -1
- package/dist/docsLayout/index.js +106 -105
- package/dist/docsLayout/index.js.map +1 -1
- package/dist/docsLayout/index.mjs +1 -0
- package/dist/docsLayout/index.mjs.map +1 -1
- package/dist/elements/index.js +432 -431
- package/dist/elements/index.mjs +3 -3
- package/dist/fileDropzone/index.js +71 -70
- package/dist/fileDropzone/index.js.map +1 -1
- package/dist/fileDropzone/index.mjs +1 -0
- package/dist/fileDropzone/index.mjs.map +1 -1
- package/dist/index.js +871 -870
- package/dist/index.mjs +204 -203
- package/dist/layout/index.js +185 -184
- package/dist/layout/index.mjs +2 -2
- package/dist/sortButton/index.js +32 -31
- package/dist/sortButton/index.js.map +1 -1
- package/dist/sortButton/index.mjs +1 -0
- package/dist/sortButton/index.mjs.map +1 -1
- package/dist/splitButton/index.js +60 -59
- package/dist/splitButton/index.js.map +1 -1
- package/dist/splitButton/index.mjs +37 -36
- package/dist/splitButton/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/elements/index.js
CHANGED
@@ -178,7 +178,7 @@ __export(elements_exports, {
|
|
178
178
|
module.exports = __toCommonJS(elements_exports);
|
179
179
|
|
180
180
|
// elements/card/Card.tsx
|
181
|
-
var
|
181
|
+
var React = __toESM(require("react"));
|
182
182
|
|
183
183
|
// util/index.ts
|
184
184
|
var import_clsx = require("clsx");
|
@@ -207,7 +207,7 @@ var calculateLuminance = (color) => {
|
|
207
207
|
};
|
208
208
|
|
209
209
|
// elements/card/Card.tsx
|
210
|
-
var Card =
|
210
|
+
var Card = React.forwardRef(
|
211
211
|
({
|
212
212
|
className,
|
213
213
|
variant = "default",
|
@@ -226,7 +226,7 @@ var Card = React2.forwardRef(
|
|
226
226
|
clickable && "hawa-cursor-pointer active:hawa-translate-x-0.5 active:hawa-translate-y-0.5 active:hawa-shadow-color-primary-active active:translate-x-0.5 active:translate-y-0.5 active:shadow-color-primary-active"
|
227
227
|
)
|
228
228
|
};
|
229
|
-
return /* @__PURE__ */
|
229
|
+
return /* @__PURE__ */ React.createElement(
|
230
230
|
"div",
|
231
231
|
{
|
232
232
|
ref,
|
@@ -236,7 +236,7 @@ var Card = React2.forwardRef(
|
|
236
236
|
);
|
237
237
|
}
|
238
238
|
);
|
239
|
-
var CardHeader =
|
239
|
+
var CardHeader = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
240
240
|
"div",
|
241
241
|
{
|
242
242
|
ref,
|
@@ -247,7 +247,7 @@ var CardHeader = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
247
247
|
...props
|
248
248
|
}
|
249
249
|
));
|
250
|
-
var CardTitle =
|
250
|
+
var CardTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
251
251
|
"h3",
|
252
252
|
{
|
253
253
|
ref,
|
@@ -255,7 +255,7 @@ var CardTitle = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
255
255
|
...props
|
256
256
|
}
|
257
257
|
));
|
258
|
-
var CardDescription =
|
258
|
+
var CardDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
259
259
|
"p",
|
260
260
|
{
|
261
261
|
ref,
|
@@ -263,8 +263,8 @@ var CardDescription = React2.forwardRef(({ className, ...props }, ref) => /* @__
|
|
263
263
|
...props
|
264
264
|
}
|
265
265
|
));
|
266
|
-
var CardContent =
|
267
|
-
({ headless, noPadding, className, ...props }, ref) => /* @__PURE__ */
|
266
|
+
var CardContent = React.forwardRef(
|
267
|
+
({ headless, noPadding, className, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
268
268
|
"div",
|
269
269
|
{
|
270
270
|
ref,
|
@@ -277,7 +277,7 @@ var CardContent = React2.forwardRef(
|
|
277
277
|
}
|
278
278
|
)
|
279
279
|
);
|
280
|
-
var CardFooter =
|
280
|
+
var CardFooter = React.forwardRef(({ className, noPadding, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
281
281
|
"div",
|
282
282
|
{
|
283
283
|
ref,
|
@@ -621,7 +621,7 @@ function Skeleton({
|
|
621
621
|
}
|
622
622
|
|
623
623
|
// elements/dropdownMenu/DropdownMenu.tsx
|
624
|
-
var
|
624
|
+
var React5 = __toESM(require("react"));
|
625
625
|
var DropdownMenuPrimitive = __toESM(require("@radix-ui/react-dropdown-menu"));
|
626
626
|
var DropdownMenuRoot = DropdownMenuPrimitive.Root;
|
627
627
|
var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
@@ -629,7 +629,7 @@ var DropdownMenuGroup = DropdownMenuPrimitive.Group;
|
|
629
629
|
var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
|
630
630
|
var DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
631
631
|
var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
|
632
|
-
var DropdownMenuSubTrigger =
|
632
|
+
var DropdownMenuSubTrigger = React5.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ React5.createElement(
|
633
633
|
DropdownMenuPrimitive.SubTrigger,
|
634
634
|
{
|
635
635
|
ref,
|
@@ -640,9 +640,9 @@ var DropdownMenuSubTrigger = React6.forwardRef(({ className, inset, children, ..
|
|
640
640
|
),
|
641
641
|
...props
|
642
642
|
},
|
643
|
-
/* @__PURE__ */
|
643
|
+
/* @__PURE__ */ React5.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2" }, children),
|
644
644
|
" ",
|
645
|
-
/* @__PURE__ */
|
645
|
+
/* @__PURE__ */ React5.createElement(
|
646
646
|
"svg",
|
647
647
|
{
|
648
648
|
"aria-label": "Chevron Right Icon",
|
@@ -654,7 +654,7 @@ var DropdownMenuSubTrigger = React6.forwardRef(({ className, inset, children, ..
|
|
654
654
|
width: "1em",
|
655
655
|
className: cn(props.dir === "rtl" ? "hawa-rotate-180" : "")
|
656
656
|
},
|
657
|
-
/* @__PURE__ */
|
657
|
+
/* @__PURE__ */ React5.createElement(
|
658
658
|
"path",
|
659
659
|
{
|
660
660
|
fillRule: "evenodd",
|
@@ -664,7 +664,7 @@ var DropdownMenuSubTrigger = React6.forwardRef(({ className, inset, children, ..
|
|
664
664
|
)
|
665
665
|
));
|
666
666
|
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
667
|
-
var DropdownMenuSubContent =
|
667
|
+
var DropdownMenuSubContent = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React5.createElement(
|
668
668
|
DropdownMenuPrimitive.SubContent,
|
669
669
|
{
|
670
670
|
ref,
|
@@ -676,7 +676,7 @@ var DropdownMenuSubContent = React6.forwardRef(({ className, ...props }, ref) =>
|
|
676
676
|
}
|
677
677
|
));
|
678
678
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
679
|
-
var DropdownMenuContent =
|
679
|
+
var DropdownMenuContent = React5.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React5.createElement(DropdownMenuPrimitive.Portal, null, /* @__PURE__ */ React5.createElement(
|
680
680
|
DropdownMenuPrimitive.Content,
|
681
681
|
{
|
682
682
|
ref,
|
@@ -689,8 +689,8 @@ var DropdownMenuContent = React6.forwardRef(({ className, sideOffset = 4, ...pro
|
|
689
689
|
}
|
690
690
|
)));
|
691
691
|
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
692
|
-
var DropdownMenuItem =
|
693
|
-
return /* @__PURE__ */
|
692
|
+
var DropdownMenuItem = React5.forwardRef(({ className, inset, badged, slug, LinkComponent, ...props }, ref) => {
|
693
|
+
return /* @__PURE__ */ React5.createElement(LinkComponent, { href: slug }, /* @__PURE__ */ React5.createElement(
|
694
694
|
DropdownMenuPrimitive.Item,
|
695
695
|
{
|
696
696
|
disabled: props.disabled,
|
@@ -703,14 +703,14 @@ var DropdownMenuItem = React6.forwardRef(({ className, inset, badged, slug, Link
|
|
703
703
|
),
|
704
704
|
...props
|
705
705
|
},
|
706
|
-
/* @__PURE__ */
|
706
|
+
/* @__PURE__ */ React5.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 " }, props.children),
|
707
707
|
props.end && props.end,
|
708
|
-
!props.end && props.shortcut && /* @__PURE__ */
|
709
|
-
!props.end && badged && /* @__PURE__ */
|
708
|
+
!props.end && props.shortcut && /* @__PURE__ */ React5.createElement(DropdownMenuShortcut, null, props.shortcut),
|
709
|
+
!props.end && badged && /* @__PURE__ */ React5.createElement("div", { className: "hawa-h-3 hawa-w-3 hawa-rounded-full hawa-bg-red-500" })
|
710
710
|
));
|
711
711
|
});
|
712
712
|
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
713
|
-
var DropdownMenuCheckboxItem =
|
713
|
+
var DropdownMenuCheckboxItem = React5.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ React5.createElement(
|
714
714
|
DropdownMenuPrimitive.CheckboxItem,
|
715
715
|
{
|
716
716
|
ref,
|
@@ -721,7 +721,7 @@ var DropdownMenuCheckboxItem = React6.forwardRef(({ className, children, checked
|
|
721
721
|
checked,
|
722
722
|
...props
|
723
723
|
},
|
724
|
-
/* @__PURE__ */
|
724
|
+
/* @__PURE__ */ React5.createElement("span", { className: "hawa-absolute hawa-left-2 hawa-flex hawa-h-3.5 hawa-w-3.5 hawa-items-center hawa-justify-center" }, /* @__PURE__ */ React5.createElement(DropdownMenuPrimitive.ItemIndicator, null, /* @__PURE__ */ React5.createElement(
|
725
725
|
"svg",
|
726
726
|
{
|
727
727
|
"aria-label": "Check Mark",
|
@@ -732,12 +732,12 @@ var DropdownMenuCheckboxItem = React6.forwardRef(({ className, children, checked
|
|
732
732
|
height: "0.60em",
|
733
733
|
width: "0.60em"
|
734
734
|
},
|
735
|
-
/* @__PURE__ */
|
735
|
+
/* @__PURE__ */ React5.createElement("path", { d: "M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z" })
|
736
736
|
), " ")),
|
737
737
|
children
|
738
738
|
));
|
739
739
|
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
740
|
-
var DropdownMenuRadioItem =
|
740
|
+
var DropdownMenuRadioItem = React5.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React5.createElement(
|
741
741
|
DropdownMenuPrimitive.RadioItem,
|
742
742
|
{
|
743
743
|
ref,
|
@@ -747,7 +747,7 @@ var DropdownMenuRadioItem = React6.forwardRef(({ className, children, ...props }
|
|
747
747
|
),
|
748
748
|
...props
|
749
749
|
},
|
750
|
-
/* @__PURE__ */
|
750
|
+
/* @__PURE__ */ React5.createElement("span", { className: "hawa-absolute hawa-left-2 hawa-flex hawa-h-3.5 hawa-w-3.5 hawa-items-center hawa-justify-center" }, /* @__PURE__ */ React5.createElement(DropdownMenuPrimitive.ItemIndicator, null, /* @__PURE__ */ React5.createElement(
|
751
751
|
"svg",
|
752
752
|
{
|
753
753
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -762,12 +762,12 @@ var DropdownMenuRadioItem = React6.forwardRef(({ className, children, ...props }
|
|
762
762
|
strokeLinejoin: "round",
|
763
763
|
className: "hawa-h-2 hawa-w-2 hawa-fill-current"
|
764
764
|
},
|
765
|
-
/* @__PURE__ */
|
765
|
+
/* @__PURE__ */ React5.createElement("circle", { cx: "12", cy: "12", r: "10" })
|
766
766
|
))),
|
767
767
|
children
|
768
768
|
));
|
769
769
|
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
770
|
-
var DropdownMenuLabel =
|
770
|
+
var DropdownMenuLabel = React5.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ React5.createElement(
|
771
771
|
DropdownMenuPrimitive.Label,
|
772
772
|
{
|
773
773
|
ref,
|
@@ -780,7 +780,7 @@ var DropdownMenuLabel = React6.forwardRef(({ className, inset, ...props }, ref)
|
|
780
780
|
}
|
781
781
|
));
|
782
782
|
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
783
|
-
var DropdownMenuSeparator =
|
783
|
+
var DropdownMenuSeparator = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React5.createElement(
|
784
784
|
DropdownMenuPrimitive.Separator,
|
785
785
|
{
|
786
786
|
ref,
|
@@ -793,7 +793,7 @@ var DropdownMenuShortcut = ({
|
|
793
793
|
className,
|
794
794
|
...props
|
795
795
|
}) => {
|
796
|
-
return /* @__PURE__ */
|
796
|
+
return /* @__PURE__ */ React5.createElement(
|
797
797
|
"span",
|
798
798
|
{
|
799
799
|
className: cn(
|
@@ -833,10 +833,10 @@ var DropdownMenu = ({
|
|
833
833
|
default: "hawa-px-2 hawa-py-3 ",
|
834
834
|
sm: "hawa-text-xs hawa-px-1.5 hawa-py-1.5 "
|
835
835
|
};
|
836
|
-
let [values, setValues] =
|
836
|
+
let [values, setValues] = React5.useState(
|
837
837
|
items.map((item) => item.currentOption)
|
838
838
|
);
|
839
|
-
return /* @__PURE__ */
|
839
|
+
return /* @__PURE__ */ React5.createElement(
|
840
840
|
DropdownMenuRoot,
|
841
841
|
{
|
842
842
|
onOpenChange,
|
@@ -844,8 +844,8 @@ var DropdownMenu = ({
|
|
844
844
|
modal: false,
|
845
845
|
dir: direction
|
846
846
|
},
|
847
|
-
/* @__PURE__ */
|
848
|
-
/* @__PURE__ */
|
847
|
+
/* @__PURE__ */ React5.createElement(DropdownMenuTrigger, { asChild: true, className: triggerClassname }, trigger),
|
848
|
+
/* @__PURE__ */ React5.createElement(DropdownMenuPortal, null, /* @__PURE__ */ React5.createElement(
|
849
849
|
DropdownMenuContent,
|
850
850
|
{
|
851
851
|
side,
|
@@ -866,12 +866,12 @@ var DropdownMenu = ({
|
|
866
866
|
var _a;
|
867
867
|
const ItemLinkComponent = item.slug ? LinkComponent : "a";
|
868
868
|
if (item.itemType === "separator") {
|
869
|
-
return /* @__PURE__ */
|
869
|
+
return /* @__PURE__ */ React5.createElement(DropdownMenuSeparator, { key: index });
|
870
870
|
} else if (item.itemType === "label") {
|
871
|
-
return /* @__PURE__ */
|
871
|
+
return /* @__PURE__ */ React5.createElement(DropdownMenuLabel, { key: index }, item.label);
|
872
872
|
} else if (item.itemType === "radio") {
|
873
873
|
let dd = item.currentOption;
|
874
|
-
return /* @__PURE__ */
|
874
|
+
return /* @__PURE__ */ React5.createElement(DropdownMenuSub, { key: index }, /* @__PURE__ */ React5.createElement(
|
875
875
|
DropdownMenuSubTrigger,
|
876
876
|
{
|
877
877
|
dir: direction,
|
@@ -879,7 +879,7 @@ var DropdownMenu = ({
|
|
879
879
|
},
|
880
880
|
item.icon && item.icon,
|
881
881
|
item.label && item.label
|
882
|
-
), /* @__PURE__ */
|
882
|
+
), /* @__PURE__ */ React5.createElement(DropdownMenuSubContent, null, /* @__PURE__ */ React5.createElement(
|
883
883
|
DropdownMenuRadioGroup,
|
884
884
|
{
|
885
885
|
value: values[index],
|
@@ -893,12 +893,12 @@ var DropdownMenu = ({
|
|
893
893
|
}
|
894
894
|
}
|
895
895
|
},
|
896
|
-
(_a = item.options) == null ? void 0 : _a.map((opt, i) => /* @__PURE__ */
|
896
|
+
(_a = item.options) == null ? void 0 : _a.map((opt, i) => /* @__PURE__ */ React5.createElement(DropdownMenuRadioItem, { key: i, value: opt.value }, opt.label))
|
897
897
|
)));
|
898
898
|
} else if (item.itemType === "custom") {
|
899
|
-
return /* @__PURE__ */
|
899
|
+
return /* @__PURE__ */ React5.createElement("div", { key: index }, item.content);
|
900
900
|
} else {
|
901
|
-
return item.subitems ? /* @__PURE__ */
|
901
|
+
return item.subitems ? /* @__PURE__ */ React5.createElement(DropdownMenuSub, { key: index }, /* @__PURE__ */ React5.createElement(
|
902
902
|
DropdownMenuSubTrigger,
|
903
903
|
{
|
904
904
|
dir: direction,
|
@@ -906,9 +906,9 @@ var DropdownMenu = ({
|
|
906
906
|
},
|
907
907
|
item.icon && item.icon,
|
908
908
|
item.label && item.label
|
909
|
-
), /* @__PURE__ */
|
909
|
+
), /* @__PURE__ */ React5.createElement(DropdownMenuPortal, null, /* @__PURE__ */ React5.createElement(DropdownMenuSubContent, null, item.subitems.map((subitem, subIndex) => {
|
910
910
|
const SubitemLinkComponent = subitem.slug ? LinkComponent : "a";
|
911
|
-
return /* @__PURE__ */
|
911
|
+
return /* @__PURE__ */ React5.createElement(
|
912
912
|
DropdownMenuItem,
|
913
913
|
{
|
914
914
|
key: subIndex,
|
@@ -937,7 +937,7 @@ var DropdownMenu = ({
|
|
937
937
|
subitem.icon && subitem.icon,
|
938
938
|
subitem.label && subitem.label
|
939
939
|
);
|
940
|
-
})))) : /* @__PURE__ */
|
940
|
+
})))) : /* @__PURE__ */ React5.createElement(
|
941
941
|
DropdownMenuItem,
|
942
942
|
{
|
943
943
|
LinkComponent: ItemLinkComponent,
|
@@ -990,18 +990,18 @@ var DropdownMenu = ({
|
|
990
990
|
);
|
991
991
|
};
|
992
992
|
var DropdownMenuRadio = (props) => {
|
993
|
-
return /* @__PURE__ */
|
993
|
+
return /* @__PURE__ */ React5.createElement(DropdownMenuRoot, null, /* @__PURE__ */ React5.createElement(DropdownMenuTrigger, { asChild: true }, props.trigger), /* @__PURE__ */ React5.createElement(DropdownMenuContent, { align: props.align, side: props.side }, props.label && /* @__PURE__ */ React5.createElement(React5.Fragment, null, /* @__PURE__ */ React5.createElement(DropdownMenuLabel, null, props.label), /* @__PURE__ */ React5.createElement(DropdownMenuSeparator, null)), /* @__PURE__ */ React5.createElement(
|
994
994
|
DropdownMenuRadioGroup,
|
995
995
|
{
|
996
996
|
value: props.value,
|
997
997
|
onValueChange: props.onValueChange
|
998
998
|
},
|
999
|
-
props.options.map((opt, i) => /* @__PURE__ */
|
999
|
+
props.options.map((opt, i) => /* @__PURE__ */ React5.createElement(DropdownMenuRadioItem, { key: i, value: opt.value }, opt.label))
|
1000
1000
|
)));
|
1001
1001
|
};
|
1002
1002
|
|
1003
1003
|
// elements/accordion/Accordion.tsx
|
1004
|
-
var
|
1004
|
+
var React9 = __toESM(require("react"));
|
1005
1005
|
var AccordionPrimitive3 = __toESM(require("@radix-ui/react-accordion"));
|
1006
1006
|
|
1007
1007
|
// elements/chip/Chip.tsx
|
@@ -1086,9 +1086,9 @@ var Chip = import_react4.default.forwardRef(
|
|
1086
1086
|
);
|
1087
1087
|
|
1088
1088
|
// elements/accordion/AccordionContent.tsx
|
1089
|
-
var
|
1089
|
+
var React7 = __toESM(require("react"));
|
1090
1090
|
var AccordionPrimitive = __toESM(require("@radix-ui/react-accordion"));
|
1091
|
-
var AccordionContent =
|
1091
|
+
var AccordionContent = React7.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React7.createElement(
|
1092
1092
|
AccordionPrimitive.Content,
|
1093
1093
|
{
|
1094
1094
|
ref,
|
@@ -1098,14 +1098,14 @@ var AccordionContent = React8.forwardRef(({ className, children, ...props }, ref
|
|
1098
1098
|
) : className,
|
1099
1099
|
...props
|
1100
1100
|
},
|
1101
|
-
/* @__PURE__ */
|
1101
|
+
/* @__PURE__ */ React7.createElement("div", { className: "hawa-bg-background hawa-p-4" }, children)
|
1102
1102
|
));
|
1103
1103
|
AccordionContent.displayName = AccordionPrimitive.Content.displayName;
|
1104
1104
|
|
1105
1105
|
// elements/accordion/AccordionTrigger.tsx
|
1106
|
-
var
|
1106
|
+
var React8 = __toESM(require("react"));
|
1107
1107
|
var AccordionPrimitive2 = __toESM(require("@radix-ui/react-accordion"));
|
1108
|
-
var AccordionTrigger =
|
1108
|
+
var AccordionTrigger = React8.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React8.createElement(AccordionPrimitive2.Header, { className: "hawa-flex" }, /* @__PURE__ */ React8.createElement(
|
1109
1109
|
AccordionPrimitive2.Trigger,
|
1110
1110
|
{
|
1111
1111
|
ref,
|
@@ -1117,7 +1117,7 @@ var AccordionTrigger = React9.forwardRef(({ className, children, ...props }, ref
|
|
1117
1117
|
...props
|
1118
1118
|
},
|
1119
1119
|
children,
|
1120
|
-
!props.hideArrow && /* @__PURE__ */
|
1120
|
+
!props.hideArrow && /* @__PURE__ */ React8.createElement(
|
1121
1121
|
"svg",
|
1122
1122
|
{
|
1123
1123
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -1131,13 +1131,13 @@ var AccordionTrigger = React9.forwardRef(({ className, children, ...props }, ref
|
|
1131
1131
|
strokeLinejoin: "round",
|
1132
1132
|
className: "hawa-icon hawa-shrink-0 hawa-transition-transform hawa-duration-200"
|
1133
1133
|
},
|
1134
|
-
/* @__PURE__ */
|
1134
|
+
/* @__PURE__ */ React8.createElement("path", { d: "m6 9 6 6 6-6" })
|
1135
1135
|
)
|
1136
1136
|
)));
|
1137
1137
|
AccordionTrigger.displayName = AccordionPrimitive2.Trigger.displayName;
|
1138
1138
|
|
1139
1139
|
// elements/accordion/Accordion.tsx
|
1140
|
-
var Accordion =
|
1140
|
+
var Accordion = React9.forwardRef(
|
1141
1141
|
({
|
1142
1142
|
items,
|
1143
1143
|
design = "default",
|
@@ -1146,7 +1146,7 @@ var Accordion = React10.forwardRef(
|
|
1146
1146
|
contentclassNames,
|
1147
1147
|
className,
|
1148
1148
|
...props
|
1149
|
-
}, ref) => /* @__PURE__ */
|
1149
|
+
}, ref) => /* @__PURE__ */ React9.createElement(AccordionPrimitive3.Root, { type: props.type, collapsible: true }, /* @__PURE__ */ React9.createElement(
|
1150
1150
|
"div",
|
1151
1151
|
{
|
1152
1152
|
className: cn("hawa-flex hawa-flex-col", {
|
@@ -1154,7 +1154,7 @@ var Accordion = React10.forwardRef(
|
|
1154
1154
|
"hawa-gap-0": design === "default"
|
1155
1155
|
})
|
1156
1156
|
},
|
1157
|
-
items.map((item, index) => /* @__PURE__ */
|
1157
|
+
items.map((item, index) => /* @__PURE__ */ React9.createElement(
|
1158
1158
|
AccordionPrimitive3.Item,
|
1159
1159
|
{
|
1160
1160
|
disabled: item.disabled || false,
|
@@ -1162,7 +1162,7 @@ var Accordion = React10.forwardRef(
|
|
1162
1162
|
key: index,
|
1163
1163
|
value: `item-${index}`
|
1164
1164
|
},
|
1165
|
-
/* @__PURE__ */
|
1165
|
+
/* @__PURE__ */ React9.createElement(
|
1166
1166
|
AccordionTrigger,
|
1167
1167
|
{
|
1168
1168
|
disabled: item.disabled || false,
|
@@ -1175,7 +1175,7 @@ var Accordion = React10.forwardRef(
|
|
1175
1175
|
triggerclassNames
|
1176
1176
|
)
|
1177
1177
|
},
|
1178
|
-
/* @__PURE__ */
|
1178
|
+
/* @__PURE__ */ React9.createElement(
|
1179
1179
|
"span",
|
1180
1180
|
{
|
1181
1181
|
className: cn(
|
@@ -1185,10 +1185,10 @@ var Accordion = React10.forwardRef(
|
|
1185
1185
|
},
|
1186
1186
|
item.trigger,
|
1187
1187
|
" ",
|
1188
|
-
item.chip && /* @__PURE__ */
|
1188
|
+
item.chip && /* @__PURE__ */ React9.createElement(Chip, { ...item.chip })
|
1189
1189
|
)
|
1190
1190
|
),
|
1191
|
-
/* @__PURE__ */
|
1191
|
+
/* @__PURE__ */ React9.createElement(
|
1192
1192
|
AccordionContent,
|
1193
1193
|
{
|
1194
1194
|
"aria-disabled": item.disabled || false,
|
@@ -1208,9 +1208,9 @@ var Accordion = React10.forwardRef(
|
|
1208
1208
|
Accordion.displayName = "Accordion";
|
1209
1209
|
|
1210
1210
|
// elements/accordion/AccordionItem.tsx
|
1211
|
-
var
|
1211
|
+
var React10 = __toESM(require("react"));
|
1212
1212
|
var AccordionPrimitive4 = __toESM(require("@radix-ui/react-accordion"));
|
1213
|
-
var AccordionItem =
|
1213
|
+
var AccordionItem = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React10.createElement(AccordionPrimitive4.Item, { ref, className: cn(className), ...props }));
|
1214
1214
|
AccordionItem.displayName = "AccordionItem";
|
1215
1215
|
|
1216
1216
|
// elements/accordion/AccordionRoot.tsx
|
@@ -1571,13 +1571,13 @@ var Logos = {
|
|
1571
1571
|
};
|
1572
1572
|
|
1573
1573
|
// elements/navigationMenu/NavigationMenu.tsx
|
1574
|
-
var
|
1574
|
+
var React12 = __toESM(require("react"));
|
1575
1575
|
var NavigationMenuPrimitive = __toESM(require("@radix-ui/react-navigation-menu"));
|
1576
1576
|
var import_class_variance_authority = require("class-variance-authority");
|
1577
1577
|
var navigationMenuTriggerStyle = (0, import_class_variance_authority.cva)(
|
1578
1578
|
"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 "
|
1579
1579
|
);
|
1580
|
-
var NavigationMenuRoot =
|
1580
|
+
var NavigationMenuRoot = React12.forwardRef(({ className, children, viewportClassNames, ...props }, ref) => /* @__PURE__ */ React12.createElement(
|
1581
1581
|
NavigationMenuPrimitive.Root,
|
1582
1582
|
{
|
1583
1583
|
ref,
|
@@ -1589,9 +1589,9 @@ var NavigationMenuRoot = React13.forwardRef(({ className, children, viewportClas
|
|
1589
1589
|
...props
|
1590
1590
|
},
|
1591
1591
|
children,
|
1592
|
-
/* @__PURE__ */
|
1592
|
+
/* @__PURE__ */ React12.createElement(NavigationMenuViewport, { className: viewportClassNames })
|
1593
1593
|
));
|
1594
|
-
var NavigationMenuList =
|
1594
|
+
var NavigationMenuList = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React12.createElement(
|
1595
1595
|
NavigationMenuPrimitive.List,
|
1596
1596
|
{
|
1597
1597
|
ref,
|
@@ -1602,7 +1602,7 @@ var NavigationMenuList = React13.forwardRef(({ className, ...props }, ref) => /*
|
|
1602
1602
|
...props
|
1603
1603
|
}
|
1604
1604
|
));
|
1605
|
-
var NavigationMenuTrigger =
|
1605
|
+
var NavigationMenuTrigger = React12.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React12.createElement(
|
1606
1606
|
NavigationMenuPrimitive.Trigger,
|
1607
1607
|
{
|
1608
1608
|
ref,
|
@@ -1610,7 +1610,7 @@ var NavigationMenuTrigger = React13.forwardRef(({ className, children, ...props
|
|
1610
1610
|
...props
|
1611
1611
|
},
|
1612
1612
|
children,
|
1613
|
-
/* @__PURE__ */
|
1613
|
+
/* @__PURE__ */ React12.createElement(
|
1614
1614
|
"svg",
|
1615
1615
|
{
|
1616
1616
|
"aria-label": "Chevron Icon",
|
@@ -1626,10 +1626,10 @@ var NavigationMenuTrigger = React13.forwardRef(({ className, children, ...props
|
|
1626
1626
|
"aria-hidden": "true",
|
1627
1627
|
className: "hawa-icon hawa-relative hawa-top-[1px] hawa-transition hawa-duration-200 group-data-[state=open]:hawa-rotate-180"
|
1628
1628
|
},
|
1629
|
-
/* @__PURE__ */
|
1629
|
+
/* @__PURE__ */ React12.createElement("path", { d: "m6 9 6 6 6-6" })
|
1630
1630
|
)
|
1631
1631
|
));
|
1632
|
-
var NavigationMenuContent =
|
1632
|
+
var NavigationMenuContent = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React12.createElement(
|
1633
1633
|
NavigationMenuPrimitive.Content,
|
1634
1634
|
{
|
1635
1635
|
ref,
|
@@ -1643,15 +1643,15 @@ var NavigationMenuContent = React13.forwardRef(({ className, ...props }, ref) =>
|
|
1643
1643
|
...props
|
1644
1644
|
}
|
1645
1645
|
));
|
1646
|
-
var StandardNavigationMenuItem = ({ icon, title, subtitle, ...linkProps }) => /* @__PURE__ */
|
1647
|
-
var NavigationMenuViewport =
|
1646
|
+
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))));
|
1647
|
+
var NavigationMenuViewport = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React12.createElement(
|
1648
1648
|
"div",
|
1649
1649
|
{
|
1650
1650
|
className: cn(
|
1651
1651
|
"hawa-absolute hawa-top-full hawa-flex hawa-w-full hawa-justify-center"
|
1652
1652
|
)
|
1653
1653
|
},
|
1654
|
-
/* @__PURE__ */
|
1654
|
+
/* @__PURE__ */ React12.createElement(
|
1655
1655
|
NavigationMenuPrimitive.Viewport,
|
1656
1656
|
{
|
1657
1657
|
className: cn(
|
@@ -1668,7 +1668,7 @@ var NavigationMenuViewport = React13.forwardRef(({ className, ...props }, ref) =
|
|
1668
1668
|
}
|
1669
1669
|
)
|
1670
1670
|
));
|
1671
|
-
var NavigationMenuIndicator =
|
1671
|
+
var NavigationMenuIndicator = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React12.createElement(
|
1672
1672
|
NavigationMenuPrimitive.Indicator,
|
1673
1673
|
{
|
1674
1674
|
ref,
|
@@ -1678,7 +1678,7 @@ var NavigationMenuIndicator = React13.forwardRef(({ className, ...props }, ref)
|
|
1678
1678
|
),
|
1679
1679
|
...props
|
1680
1680
|
},
|
1681
|
-
/* @__PURE__ */
|
1681
|
+
/* @__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" })
|
1682
1682
|
));
|
1683
1683
|
var NavigationMenu = ({
|
1684
1684
|
viewportClassNames,
|
@@ -1687,7 +1687,7 @@ var NavigationMenu = ({
|
|
1687
1687
|
actionFirst,
|
1688
1688
|
...props
|
1689
1689
|
}) => {
|
1690
|
-
return /* @__PURE__ */
|
1690
|
+
return /* @__PURE__ */ React12.createElement(
|
1691
1691
|
NavigationMenuRoot,
|
1692
1692
|
{
|
1693
1693
|
dir: props.direction,
|
@@ -1695,7 +1695,7 @@ var NavigationMenu = ({
|
|
1695
1695
|
className: rootClassNames,
|
1696
1696
|
viewportClassNames
|
1697
1697
|
},
|
1698
|
-
/* @__PURE__ */
|
1698
|
+
/* @__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(
|
1699
1699
|
NavigationMenuLink,
|
1700
1700
|
{
|
1701
1701
|
href: actionFirst ? void 0 : item.path,
|
@@ -1724,14 +1724,14 @@ NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayN
|
|
1724
1724
|
NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
|
1725
1725
|
|
1726
1726
|
// elements/sheet/Sheet.tsx
|
1727
|
-
var
|
1727
|
+
var React13 = __toESM(require("react"));
|
1728
1728
|
var SheetPrimitive = __toESM(require("@radix-ui/react-dialog"));
|
1729
1729
|
var import_class_variance_authority2 = require("class-variance-authority");
|
1730
1730
|
var Sheet = SheetPrimitive.Root;
|
1731
1731
|
var SheetTrigger = SheetPrimitive.Trigger;
|
1732
1732
|
var SheetClose = SheetPrimitive.Close;
|
1733
1733
|
var SheetPortal = SheetPrimitive.Portal;
|
1734
|
-
var SheetOverlay =
|
1734
|
+
var SheetOverlay = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React13.createElement(
|
1735
1735
|
SheetPrimitive.Overlay,
|
1736
1736
|
{
|
1737
1737
|
className: cn(
|
@@ -1758,8 +1758,8 @@ var sheetVariants = (0, import_class_variance_authority2.cva)(
|
|
1758
1758
|
}
|
1759
1759
|
}
|
1760
1760
|
);
|
1761
|
-
var SheetContent =
|
1762
|
-
({ side = "right", className, children, persist, hideCloseButton, ...props }, ref) => /* @__PURE__ */
|
1761
|
+
var SheetContent = React13.forwardRef(
|
1762
|
+
({ side = "right", className, children, persist, hideCloseButton, ...props }, ref) => /* @__PURE__ */ React13.createElement(SheetPortal, null, /* @__PURE__ */ React13.createElement(SheetOverlay, null), /* @__PURE__ */ React13.createElement(
|
1763
1763
|
SheetPrimitive.Content,
|
1764
1764
|
{
|
1765
1765
|
ref,
|
@@ -1772,7 +1772,7 @@ var SheetContent = React14.forwardRef(
|
|
1772
1772
|
...props
|
1773
1773
|
},
|
1774
1774
|
children,
|
1775
|
-
!hideCloseButton && /* @__PURE__ */
|
1775
|
+
!hideCloseButton && /* @__PURE__ */ React13.createElement(
|
1776
1776
|
SheetPrimitive.Close,
|
1777
1777
|
{
|
1778
1778
|
className: cn(
|
@@ -1784,7 +1784,7 @@ var SheetContent = React14.forwardRef(
|
|
1784
1784
|
}
|
1785
1785
|
)
|
1786
1786
|
},
|
1787
|
-
/* @__PURE__ */
|
1787
|
+
/* @__PURE__ */ React13.createElement(
|
1788
1788
|
"svg",
|
1789
1789
|
{
|
1790
1790
|
"aria-label": "Close Icon",
|
@@ -1793,7 +1793,7 @@ var SheetContent = React14.forwardRef(
|
|
1793
1793
|
fill: "currentColor",
|
1794
1794
|
viewBox: "0 0 20 20"
|
1795
1795
|
},
|
1796
|
-
/* @__PURE__ */
|
1796
|
+
/* @__PURE__ */ React13.createElement(
|
1797
1797
|
"path",
|
1798
1798
|
{
|
1799
1799
|
fillRule: "evenodd",
|
@@ -1802,14 +1802,14 @@ var SheetContent = React14.forwardRef(
|
|
1802
1802
|
}
|
1803
1803
|
)
|
1804
1804
|
),
|
1805
|
-
/* @__PURE__ */
|
1805
|
+
/* @__PURE__ */ React13.createElement("span", { className: "hawa-sr-only" }, "Close")
|
1806
1806
|
)
|
1807
1807
|
))
|
1808
1808
|
);
|
1809
1809
|
var SheetHeader = ({
|
1810
1810
|
className,
|
1811
1811
|
...props
|
1812
|
-
}) => /* @__PURE__ */
|
1812
|
+
}) => /* @__PURE__ */ React13.createElement(
|
1813
1813
|
"div",
|
1814
1814
|
{
|
1815
1815
|
className: cn(
|
@@ -1822,7 +1822,7 @@ var SheetHeader = ({
|
|
1822
1822
|
var SheetFooter = ({
|
1823
1823
|
className,
|
1824
1824
|
...props
|
1825
|
-
}) => /* @__PURE__ */
|
1825
|
+
}) => /* @__PURE__ */ React13.createElement(
|
1826
1826
|
"div",
|
1827
1827
|
{
|
1828
1828
|
className: cn(
|
@@ -1832,7 +1832,7 @@ var SheetFooter = ({
|
|
1832
1832
|
...props
|
1833
1833
|
}
|
1834
1834
|
);
|
1835
|
-
var SheetTitle =
|
1835
|
+
var SheetTitle = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React13.createElement(
|
1836
1836
|
SheetPrimitive.Title,
|
1837
1837
|
{
|
1838
1838
|
ref,
|
@@ -1843,7 +1843,7 @@ var SheetTitle = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
1843
1843
|
...props
|
1844
1844
|
}
|
1845
1845
|
));
|
1846
|
-
var SheetDescription =
|
1846
|
+
var SheetDescription = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React13.createElement(
|
1847
1847
|
SheetPrimitive.Description,
|
1848
1848
|
{
|
1849
1849
|
ref,
|
@@ -1859,12 +1859,12 @@ SheetFooter.displayName = "SheetFooter";
|
|
1859
1859
|
SheetTitle.displayName = SheetPrimitive.Title.displayName;
|
1860
1860
|
|
1861
1861
|
// elements/dialog/Dialog.tsx
|
1862
|
-
var
|
1862
|
+
var React14 = __toESM(require("react"));
|
1863
1863
|
var DialogPrimitive = __toESM(require("@radix-ui/react-dialog"));
|
1864
1864
|
var Dialog = DialogPrimitive.Root;
|
1865
1865
|
var DialogTrigger = DialogPrimitive.Trigger;
|
1866
|
-
var DialogPortal = ({ ...props }) => /* @__PURE__ */
|
1867
|
-
var DialogOverlay =
|
1866
|
+
var DialogPortal = ({ ...props }) => /* @__PURE__ */ React14.createElement(DialogPrimitive.Portal, { ...props });
|
1867
|
+
var DialogOverlay = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React14.createElement(
|
1868
1868
|
DialogPrimitive.Overlay,
|
1869
1869
|
{
|
1870
1870
|
ref,
|
@@ -1875,7 +1875,7 @@ var DialogOverlay = React15.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
1875
1875
|
...props
|
1876
1876
|
}
|
1877
1877
|
));
|
1878
|
-
var DialogContent =
|
1878
|
+
var DialogContent = React14.forwardRef(({ className, children, persist, hideCloseButton, ...props }, ref) => /* @__PURE__ */ React14.createElement(DialogPortal, { container: props.container }, /* @__PURE__ */ React14.createElement(DialogOverlay, null), /* @__PURE__ */ React14.createElement(
|
1879
1879
|
DialogPrimitive.Content,
|
1880
1880
|
{
|
1881
1881
|
onPointerDownOutside: (e) => {
|
@@ -1891,7 +1891,7 @@ var DialogContent = React15.forwardRef(({ className, children, persist, hideClos
|
|
1891
1891
|
...props
|
1892
1892
|
},
|
1893
1893
|
children,
|
1894
|
-
!hideCloseButton && /* @__PURE__ */
|
1894
|
+
!hideCloseButton && /* @__PURE__ */ React14.createElement(
|
1895
1895
|
DialogPrimitive.Close,
|
1896
1896
|
{
|
1897
1897
|
className: cn(
|
@@ -1899,7 +1899,7 @@ var DialogContent = React15.forwardRef(({ className, children, persist, hideClos
|
|
1899
1899
|
props.dir === "rtl" ? " hawa-left-4" : " hawa-right-4"
|
1900
1900
|
)
|
1901
1901
|
},
|
1902
|
-
/* @__PURE__ */
|
1902
|
+
/* @__PURE__ */ React14.createElement(
|
1903
1903
|
"svg",
|
1904
1904
|
{
|
1905
1905
|
"aria-label": "Close Icon",
|
@@ -1908,7 +1908,7 @@ var DialogContent = React15.forwardRef(({ className, children, persist, hideClos
|
|
1908
1908
|
fill: "currentColor",
|
1909
1909
|
viewBox: "0 0 20 20"
|
1910
1910
|
},
|
1911
|
-
/* @__PURE__ */
|
1911
|
+
/* @__PURE__ */ React14.createElement(
|
1912
1912
|
"path",
|
1913
1913
|
{
|
1914
1914
|
fillRule: "evenodd",
|
@@ -1917,10 +1917,10 @@ var DialogContent = React15.forwardRef(({ className, children, persist, hideClos
|
|
1917
1917
|
}
|
1918
1918
|
)
|
1919
1919
|
),
|
1920
|
-
/* @__PURE__ */
|
1920
|
+
/* @__PURE__ */ React14.createElement("span", { className: "hawa-sr-only" }, "Close")
|
1921
1921
|
)
|
1922
1922
|
)));
|
1923
|
-
var DialogCarouselContent =
|
1923
|
+
var DialogCarouselContent = React14.forwardRef(
|
1924
1924
|
({
|
1925
1925
|
className,
|
1926
1926
|
children,
|
@@ -1929,7 +1929,7 @@ var DialogCarouselContent = React15.forwardRef(
|
|
1929
1929
|
hideCloseButton,
|
1930
1930
|
hidePrevButton,
|
1931
1931
|
...props
|
1932
|
-
}, ref) => /* @__PURE__ */
|
1932
|
+
}, ref) => /* @__PURE__ */ React14.createElement(DialogPortal, null, /* @__PURE__ */ React14.createElement(DialogOverlay, null), /* @__PURE__ */ React14.createElement(
|
1933
1933
|
DialogPrimitive.Content,
|
1934
1934
|
{
|
1935
1935
|
onPointerDownOutside: (e) => {
|
@@ -1945,7 +1945,7 @@ var DialogCarouselContent = React15.forwardRef(
|
|
1945
1945
|
...props
|
1946
1946
|
},
|
1947
1947
|
children,
|
1948
|
-
/* @__PURE__ */
|
1948
|
+
/* @__PURE__ */ React14.createElement(
|
1949
1949
|
"div",
|
1950
1950
|
{
|
1951
1951
|
className: cn(
|
@@ -1953,7 +1953,7 @@ var DialogCarouselContent = React15.forwardRef(
|
|
1953
1953
|
onPrev ? "hawa-justify-between" : "hawa-justify-end"
|
1954
1954
|
)
|
1955
1955
|
},
|
1956
|
-
hidePrevButton ? /* @__PURE__ */
|
1956
|
+
hidePrevButton ? /* @__PURE__ */ React14.createElement("div", null) : /* @__PURE__ */ React14.createElement(
|
1957
1957
|
"div",
|
1958
1958
|
{
|
1959
1959
|
onClick: onPrev,
|
@@ -1962,7 +1962,7 @@ var DialogCarouselContent = React15.forwardRef(
|
|
1962
1962
|
props.dir === "rtl" && "hawa-rotate-180"
|
1963
1963
|
)
|
1964
1964
|
},
|
1965
|
-
/* @__PURE__ */
|
1965
|
+
/* @__PURE__ */ React14.createElement(
|
1966
1966
|
"svg",
|
1967
1967
|
{
|
1968
1968
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -1976,10 +1976,10 @@ var DialogCarouselContent = React15.forwardRef(
|
|
1976
1976
|
strokeLinecap: "round",
|
1977
1977
|
strokeLinejoin: "round"
|
1978
1978
|
},
|
1979
|
-
/* @__PURE__ */
|
1979
|
+
/* @__PURE__ */ React14.createElement("path", { d: "m15 18-6-6 6-6" })
|
1980
1980
|
)
|
1981
1981
|
),
|
1982
|
-
!hideCloseButton && /* @__PURE__ */
|
1982
|
+
!hideCloseButton && /* @__PURE__ */ React14.createElement(
|
1983
1983
|
DialogPrimitive.Close,
|
1984
1984
|
{
|
1985
1985
|
className: cn(
|
@@ -1987,7 +1987,7 @@ var DialogCarouselContent = React15.forwardRef(
|
|
1987
1987
|
props.dir === "rtl" ? " hawa-left-4" : " hawa-right-4"
|
1988
1988
|
)
|
1989
1989
|
},
|
1990
|
-
/* @__PURE__ */
|
1990
|
+
/* @__PURE__ */ React14.createElement(
|
1991
1991
|
"svg",
|
1992
1992
|
{
|
1993
1993
|
"aria-label": "Close Icon",
|
@@ -1996,7 +1996,7 @@ var DialogCarouselContent = React15.forwardRef(
|
|
1996
1996
|
fill: "currentColor",
|
1997
1997
|
viewBox: "0 0 20 20"
|
1998
1998
|
},
|
1999
|
-
/* @__PURE__ */
|
1999
|
+
/* @__PURE__ */ React14.createElement(
|
2000
2000
|
"path",
|
2001
2001
|
{
|
2002
2002
|
fillRule: "evenodd",
|
@@ -2005,7 +2005,7 @@ var DialogCarouselContent = React15.forwardRef(
|
|
2005
2005
|
}
|
2006
2006
|
)
|
2007
2007
|
),
|
2008
|
-
/* @__PURE__ */
|
2008
|
+
/* @__PURE__ */ React14.createElement("span", { className: "hawa-sr-only" }, "Close")
|
2009
2009
|
)
|
2010
2010
|
)
|
2011
2011
|
))
|
@@ -2013,7 +2013,7 @@ var DialogCarouselContent = React15.forwardRef(
|
|
2013
2013
|
var DialogHeader = ({
|
2014
2014
|
className,
|
2015
2015
|
...props
|
2016
|
-
}) => /* @__PURE__ */
|
2016
|
+
}) => /* @__PURE__ */ React14.createElement(
|
2017
2017
|
"div",
|
2018
2018
|
{
|
2019
2019
|
className: cn(
|
@@ -2023,7 +2023,7 @@ var DialogHeader = ({
|
|
2023
2023
|
...props
|
2024
2024
|
}
|
2025
2025
|
);
|
2026
|
-
var DialogTitle =
|
2026
|
+
var DialogTitle = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React14.createElement(
|
2027
2027
|
DialogPrimitive.Title,
|
2028
2028
|
{
|
2029
2029
|
ref,
|
@@ -2034,7 +2034,7 @@ var DialogTitle = React15.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
2034
2034
|
...props
|
2035
2035
|
}
|
2036
2036
|
));
|
2037
|
-
var DialogDescription =
|
2037
|
+
var DialogDescription = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React14.createElement(
|
2038
2038
|
DialogPrimitive.Description,
|
2039
2039
|
{
|
2040
2040
|
ref,
|
@@ -2048,7 +2048,7 @@ var DialogDescription = React15.forwardRef(({ className, ...props }, ref) => /*
|
|
2048
2048
|
var DialogFooter = ({
|
2049
2049
|
className,
|
2050
2050
|
...props
|
2051
|
-
}) => /* @__PURE__ */
|
2051
|
+
}) => /* @__PURE__ */ React14.createElement(
|
2052
2052
|
"div",
|
2053
2053
|
{
|
2054
2054
|
className: cn(
|
@@ -2064,12 +2064,12 @@ var DialogCarousel = ({
|
|
2064
2064
|
children,
|
2065
2065
|
direction
|
2066
2066
|
}) => {
|
2067
|
-
|
2067
|
+
React14.useEffect(() => {
|
2068
2068
|
if (stepsApi) {
|
2069
2069
|
stepsApi.reInit();
|
2070
2070
|
}
|
2071
2071
|
}, [stepsApi, children]);
|
2072
|
-
return /* @__PURE__ */
|
2072
|
+
return /* @__PURE__ */ React14.createElement("div", { className: "hawa-overflow-hidden" }, /* @__PURE__ */ React14.createElement("div", { ref: stepsRef, dir: direction }, /* @__PURE__ */ React14.createElement(
|
2073
2073
|
"div",
|
2074
2074
|
{
|
2075
2075
|
className: "hawa-flex",
|
@@ -2077,7 +2077,7 @@ var DialogCarousel = ({
|
|
2077
2077
|
transition: "height 0.2s"
|
2078
2078
|
}
|
2079
2079
|
},
|
2080
|
-
|
2080
|
+
React14.Children.map(children, (child, index) => /* @__PURE__ */ React14.createElement(
|
2081
2081
|
"div",
|
2082
2082
|
{
|
2083
2083
|
className: cn(
|
@@ -2094,14 +2094,14 @@ var DialogSteps = ({
|
|
2094
2094
|
visibleStepRef,
|
2095
2095
|
children
|
2096
2096
|
}) => {
|
2097
|
-
const [dialogHeight, setDialogHeight] =
|
2098
|
-
|
2097
|
+
const [dialogHeight, setDialogHeight] = React14.useState(null);
|
2098
|
+
React14.useEffect(() => {
|
2099
2099
|
if (visibleStepRef.current) {
|
2100
2100
|
setDialogHeight(visibleStepRef.current.offsetHeight);
|
2101
2101
|
console.log("height is ", visibleStepRef.current.offsetHeight);
|
2102
2102
|
}
|
2103
2103
|
}, [currentStep, visibleStepRef]);
|
2104
|
-
return /* @__PURE__ */
|
2104
|
+
return /* @__PURE__ */ React14.createElement(
|
2105
2105
|
"div",
|
2106
2106
|
{
|
2107
2107
|
className: "hawa-relative hawa-overflow-clip",
|
@@ -2110,7 +2110,7 @@ var DialogSteps = ({
|
|
2110
2110
|
transition: "height 0.2s"
|
2111
2111
|
}
|
2112
2112
|
},
|
2113
|
-
|
2113
|
+
React14.Children.map(children, (child, index) => /* @__PURE__ */ React14.createElement(
|
2114
2114
|
"div",
|
2115
2115
|
{
|
2116
2116
|
ref: currentStep === `step-${index + 1}` ? visibleStepRef : null,
|
@@ -2128,7 +2128,7 @@ var DialogStep = ({
|
|
2128
2128
|
className,
|
2129
2129
|
stepRef
|
2130
2130
|
}) => {
|
2131
|
-
return /* @__PURE__ */
|
2131
|
+
return /* @__PURE__ */ React14.createElement(
|
2132
2132
|
"div",
|
2133
2133
|
{
|
2134
2134
|
id,
|
@@ -2139,7 +2139,7 @@ var DialogStep = ({
|
|
2139
2139
|
);
|
2140
2140
|
};
|
2141
2141
|
var DialogBody = ({ children, className }) => {
|
2142
|
-
return /* @__PURE__ */
|
2142
|
+
return /* @__PURE__ */ React14.createElement("div", { className: cn("hawa-py-6", className) }, children);
|
2143
2143
|
};
|
2144
2144
|
DialogBody.displayName = "DialogBody";
|
2145
2145
|
DialogStep.displayName = "DialogStep";
|
@@ -2155,14 +2155,15 @@ DialogContent.displayName = DialogPrimitive.Content.displayName;
|
|
2155
2155
|
DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
2156
2156
|
|
2157
2157
|
// elements/alert/Alert.tsx
|
2158
|
-
var
|
2158
|
+
var import_react7 = __toESM(require("react"));
|
2159
2159
|
|
2160
2160
|
// elements/button/Button.tsx
|
2161
2161
|
var React17 = __toESM(require("react"));
|
2162
2162
|
var import_class_variance_authority3 = require("class-variance-authority");
|
2163
2163
|
|
2164
2164
|
// elements/helperText/HelperText.tsx
|
2165
|
-
var
|
2165
|
+
var import_react6 = __toESM(require("react"));
|
2166
|
+
var HelperText = ({ helperText }) => /* @__PURE__ */ import_react6.default.createElement(
|
2166
2167
|
"p",
|
2167
2168
|
{
|
2168
2169
|
className: cn(
|
@@ -2296,9 +2297,9 @@ var Alert = ({
|
|
2296
2297
|
className,
|
2297
2298
|
...props
|
2298
2299
|
}) => {
|
2299
|
-
const alertRef = (0,
|
2300
|
-
const [closed, setClosed] = (0,
|
2301
|
-
(0,
|
2300
|
+
const alertRef = (0, import_react7.useRef)(null);
|
2301
|
+
const [closed, setClosed] = (0, import_react7.useState)(false);
|
2302
|
+
(0, import_react7.useEffect)(() => {
|
2302
2303
|
if (duration) {
|
2303
2304
|
const timeoutHide = setTimeout(() => {
|
2304
2305
|
setClosed(true);
|
@@ -2333,7 +2334,7 @@ var Alert = ({
|
|
2333
2334
|
hyper: "hawa-text-white hawa-bg-gradient-to-tl hawa-from-pink-700 hawa-via-red-500 hawa-to-yellow-600 ",
|
2334
2335
|
oceanic: "hawa-text-white hawa-bg-gradient-to-bl hawa-from-green-500 hawa-via-blue-700 hawa-to-purple-500"
|
2335
2336
|
};
|
2336
|
-
return /* @__PURE__ */
|
2337
|
+
return /* @__PURE__ */ import_react7.default.createElement("div", { ref: alertRef }, /* @__PURE__ */ import_react7.default.createElement(
|
2337
2338
|
"div",
|
2338
2339
|
{
|
2339
2340
|
"data-testid": "alert",
|
@@ -2347,13 +2348,13 @@ var Alert = ({
|
|
2347
2348
|
className
|
2348
2349
|
)
|
2349
2350
|
},
|
2350
|
-
/* @__PURE__ */
|
2351
|
+
/* @__PURE__ */ import_react7.default.createElement("div", { className: "hawa-flex hawa-flex-row" }, icon && /* @__PURE__ */ import_react7.default.createElement(
|
2351
2352
|
"div",
|
2352
2353
|
{
|
2353
2354
|
className: direction === "rtl" ? "hawa-pl-2 hawa-pt-1" : "hawa-pr-2 hawa-pt-1"
|
2354
2355
|
},
|
2355
2356
|
icon
|
2356
|
-
), /* @__PURE__ */
|
2357
|
+
), /* @__PURE__ */ import_react7.default.createElement("div", { className: "hawa-flex hawa-flex-col" }, /* @__PURE__ */ import_react7.default.createElement(
|
2357
2358
|
"span",
|
2358
2359
|
{
|
2359
2360
|
className: cn(
|
@@ -2362,7 +2363,7 @@ var Alert = ({
|
|
2362
2363
|
)
|
2363
2364
|
},
|
2364
2365
|
props.title
|
2365
|
-
), /* @__PURE__ */
|
2366
|
+
), /* @__PURE__ */ import_react7.default.createElement(
|
2366
2367
|
"span",
|
2367
2368
|
{
|
2368
2369
|
className: cn(
|
@@ -2371,7 +2372,7 @@ var Alert = ({
|
|
2371
2372
|
)
|
2372
2373
|
},
|
2373
2374
|
props.text
|
2374
|
-
), props.actions && /* @__PURE__ */
|
2375
|
+
), props.actions && /* @__PURE__ */ import_react7.default.createElement("div", { className: "hawa-mt-2 hawa-flex hawa-flex-row hawa-gap-2" }, props.actions.map((act, index) => /* @__PURE__ */ import_react7.default.createElement(
|
2375
2376
|
Button,
|
2376
2377
|
{
|
2377
2378
|
key: index,
|
@@ -2380,7 +2381,7 @@ var Alert = ({
|
|
2380
2381
|
},
|
2381
2382
|
act.label
|
2382
2383
|
))))),
|
2383
|
-
!props.persistent && /* @__PURE__ */
|
2384
|
+
!props.persistent && /* @__PURE__ */ import_react7.default.createElement(
|
2384
2385
|
"button",
|
2385
2386
|
{
|
2386
2387
|
type: "button",
|
@@ -2407,8 +2408,8 @@ var Alert = ({
|
|
2407
2408
|
}
|
2408
2409
|
}
|
2409
2410
|
},
|
2410
|
-
/* @__PURE__ */
|
2411
|
-
/* @__PURE__ */
|
2411
|
+
/* @__PURE__ */ import_react7.default.createElement("span", { className: "hawa-sr-only" }, "Close"),
|
2412
|
+
/* @__PURE__ */ import_react7.default.createElement(
|
2412
2413
|
"svg",
|
2413
2414
|
{
|
2414
2415
|
"aria-label": "Close Icon",
|
@@ -2417,7 +2418,7 @@ var Alert = ({
|
|
2417
2418
|
fill: "currentColor",
|
2418
2419
|
viewBox: "0 0 20 20"
|
2419
2420
|
},
|
2420
|
-
/* @__PURE__ */
|
2421
|
+
/* @__PURE__ */ import_react7.default.createElement(
|
2421
2422
|
"path",
|
2422
2423
|
{
|
2423
2424
|
fillRule: "evenodd",
|
@@ -2431,12 +2432,12 @@ var Alert = ({
|
|
2431
2432
|
};
|
2432
2433
|
|
2433
2434
|
// elements/avatar/Avatar.tsx
|
2434
|
-
var
|
2435
|
+
var import_react9 = __toESM(require("react"));
|
2435
2436
|
|
2436
2437
|
// elements/fileUploader/FileUploader.tsx
|
2437
|
-
var
|
2438
|
+
var import_react8 = __toESM(require("react"));
|
2438
2439
|
var FileUploader = ({ handleFile, className }) => {
|
2439
|
-
const hiddenFileInput = (0,
|
2440
|
+
const hiddenFileInput = (0, import_react8.useRef)(null);
|
2440
2441
|
const handleClick = () => {
|
2441
2442
|
var _a;
|
2442
2443
|
(_a = hiddenFileInput.current) == null ? void 0 : _a.click();
|
@@ -2445,7 +2446,7 @@ var FileUploader = ({ handleFile, className }) => {
|
|
2445
2446
|
const fileUploaded = event.target.files[0];
|
2446
2447
|
handleFile(fileUploaded);
|
2447
2448
|
};
|
2448
|
-
return /* @__PURE__ */
|
2449
|
+
return /* @__PURE__ */ import_react8.default.createElement("div", { className }, /* @__PURE__ */ import_react8.default.createElement("div", { className: "hawa-h-full hawa-w-full", onClick: handleClick }), /* @__PURE__ */ import_react8.default.createElement(
|
2449
2450
|
"input",
|
2450
2451
|
{
|
2451
2452
|
type: "file",
|
@@ -2486,7 +2487,7 @@ var Avatar = ({
|
|
2486
2487
|
inherit: "hawa-rounded",
|
2487
2488
|
none: "hawa-rounded-none"
|
2488
2489
|
};
|
2489
|
-
return /* @__PURE__ */
|
2490
|
+
return /* @__PURE__ */ import_react9.default.createElement(
|
2490
2491
|
"div",
|
2491
2492
|
{
|
2492
2493
|
className: cn(
|
@@ -2496,7 +2497,7 @@ var Avatar = ({
|
|
2496
2497
|
className
|
2497
2498
|
)
|
2498
2499
|
},
|
2499
|
-
/* @__PURE__ */
|
2500
|
+
/* @__PURE__ */ import_react9.default.createElement(
|
2500
2501
|
FileUploader,
|
2501
2502
|
{
|
2502
2503
|
className: cn(
|
@@ -2507,7 +2508,7 @@ var Avatar = ({
|
|
2507
2508
|
)
|
2508
2509
|
}
|
2509
2510
|
),
|
2510
|
-
/* @__PURE__ */
|
2511
|
+
/* @__PURE__ */ import_react9.default.createElement(
|
2511
2512
|
"img",
|
2512
2513
|
{
|
2513
2514
|
className: cn(
|
@@ -2520,7 +2521,7 @@ var Avatar = ({
|
|
2520
2521
|
alt
|
2521
2522
|
}
|
2522
2523
|
),
|
2523
|
-
!src && !hideIcon && /* @__PURE__ */
|
2524
|
+
!src && !hideIcon && /* @__PURE__ */ import_react9.default.createElement(
|
2524
2525
|
"div",
|
2525
2526
|
{
|
2526
2527
|
className: cn(
|
@@ -2528,7 +2529,7 @@ var Avatar = ({
|
|
2528
2529
|
"hawa-flex hawa-flex-col hawa-items-center hawa-justify-center"
|
2529
2530
|
)
|
2530
2531
|
},
|
2531
|
-
icon ? icon : /* @__PURE__ */
|
2532
|
+
icon ? icon : /* @__PURE__ */ import_react9.default.createElement(
|
2532
2533
|
"svg",
|
2533
2534
|
{
|
2534
2535
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -2540,8 +2541,8 @@ var Avatar = ({
|
|
2540
2541
|
strokeLinecap: "round",
|
2541
2542
|
strokeLinejoin: "round"
|
2542
2543
|
},
|
2543
|
-
/* @__PURE__ */
|
2544
|
-
/* @__PURE__ */
|
2544
|
+
/* @__PURE__ */ import_react9.default.createElement("circle", { cx: "12", cy: "8", r: "5" }),
|
2545
|
+
/* @__PURE__ */ import_react9.default.createElement("path", { d: "M20 21a8 8 0 1 0-16 0" })
|
2545
2546
|
)
|
2546
2547
|
)
|
2547
2548
|
);
|
@@ -2552,8 +2553,8 @@ var React23 = __toESM(require("react"));
|
|
2552
2553
|
var import_react_table = require("@tanstack/react-table");
|
2553
2554
|
|
2554
2555
|
// elements/input/Input.tsx
|
2555
|
-
var
|
2556
|
-
var Input = (0,
|
2556
|
+
var import_react10 = __toESM(require("react"));
|
2557
|
+
var Input = (0, import_react10.forwardRef)(
|
2557
2558
|
({
|
2558
2559
|
margin = "none",
|
2559
2560
|
width = "full",
|
@@ -2597,7 +2598,7 @@ var Input = (0, import_react9.forwardRef)(
|
|
2597
2598
|
props.onChange(newEvent);
|
2598
2599
|
}
|
2599
2600
|
};
|
2600
|
-
return /* @__PURE__ */
|
2601
|
+
return /* @__PURE__ */ import_react10.default.createElement(
|
2601
2602
|
"div",
|
2602
2603
|
{
|
2603
2604
|
className: cn(
|
@@ -2608,8 +2609,8 @@ var Input = (0, import_react9.forwardRef)(
|
|
2608
2609
|
"hawa-w-full hawa-gap-2"
|
2609
2610
|
)
|
2610
2611
|
},
|
2611
|
-
props.label && /* @__PURE__ */
|
2612
|
-
/* @__PURE__ */
|
2612
|
+
props.label && /* @__PURE__ */ import_react10.default.createElement(Label2, { ...labelProps }, props.label),
|
2613
|
+
/* @__PURE__ */ import_react10.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-w-full hawa-items-center " }, props.outsidePrefix && /* @__PURE__ */ import_react10.default.createElement(
|
2613
2614
|
"span",
|
2614
2615
|
{
|
2615
2616
|
className: cn(
|
@@ -2618,7 +2619,7 @@ var Input = (0, import_react9.forwardRef)(
|
|
2618
2619
|
)
|
2619
2620
|
},
|
2620
2621
|
props.outsidePrefix
|
2621
|
-
), props.isLoading ? /* @__PURE__ */
|
2622
|
+
), props.isLoading ? /* @__PURE__ */ import_react10.default.createElement("div", { className: "hawa-pb-2 hawa-w-full" }, /* @__PURE__ */ import_react10.default.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" })) : /* @__PURE__ */ import_react10.default.createElement(import_react10.default.Fragment, null, !props.hideSeparator && /* @__PURE__ */ import_react10.default.createElement(
|
2622
2623
|
"div",
|
2623
2624
|
{
|
2624
2625
|
className: cn(
|
@@ -2626,7 +2627,7 @@ var Input = (0, import_react9.forwardRef)(
|
|
2626
2627
|
preview ? "hawa-opacity-100" : "hawa-opacity-0"
|
2627
2628
|
)
|
2628
2629
|
}
|
2629
|
-
), /* @__PURE__ */
|
2630
|
+
), /* @__PURE__ */ import_react10.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-w-full hawa-gap-2" }, /* @__PURE__ */ import_react10.default.createElement("div", { className: "hawa-relative" }, props.startIcon && /* @__PURE__ */ import_react10.default.createElement("div", { className: "hawa-absolute hawa-start-3 hawa-top-1/2 hawa--translate-y-1/2" }, props.startIcon), props.endIcon && /* @__PURE__ */ import_react10.default.createElement(
|
2630
2631
|
"div",
|
2631
2632
|
{
|
2632
2633
|
className: cn(
|
@@ -2635,7 +2636,7 @@ var Input = (0, import_react9.forwardRef)(
|
|
2635
2636
|
)
|
2636
2637
|
},
|
2637
2638
|
props.endIcon
|
2638
|
-
), /* @__PURE__ */
|
2639
|
+
), /* @__PURE__ */ import_react10.default.createElement(
|
2639
2640
|
"input",
|
2640
2641
|
{
|
2641
2642
|
required: true,
|
@@ -2661,7 +2662,7 @@ var Input = (0, import_react9.forwardRef)(
|
|
2661
2662
|
inputProps == null ? void 0 : inputProps.className
|
2662
2663
|
)
|
2663
2664
|
}
|
2664
|
-
)), !forceHideHelperText && /* @__PURE__ */
|
2665
|
+
)), !forceHideHelperText && /* @__PURE__ */ import_react10.default.createElement(
|
2665
2666
|
"p",
|
2666
2667
|
{
|
2667
2668
|
className: cn(
|
@@ -2670,7 +2671,7 @@ var Input = (0, import_react9.forwardRef)(
|
|
2670
2671
|
)
|
2671
2672
|
},
|
2672
2673
|
props.helperText
|
2673
|
-
), !props.disabled && forceHideHelperText && /* @__PURE__ */
|
2674
|
+
), !props.disabled && forceHideHelperText && /* @__PURE__ */ import_react10.default.createElement(
|
2674
2675
|
"div",
|
2675
2676
|
{
|
2676
2677
|
className: cn(
|
@@ -2679,7 +2680,7 @@ var Input = (0, import_react9.forwardRef)(
|
|
2679
2680
|
)
|
2680
2681
|
},
|
2681
2682
|
props.helperText
|
2682
|
-
), showCount && /* @__PURE__ */
|
2683
|
+
), showCount && /* @__PURE__ */ import_react10.default.createElement(
|
2683
2684
|
"div",
|
2684
2685
|
{
|
2685
2686
|
className: cn(
|
@@ -3176,12 +3177,12 @@ var DataTable = ({
|
|
3176
3177
|
};
|
3177
3178
|
|
3178
3179
|
// elements/backToTop/BackToTop.tsx
|
3179
|
-
var
|
3180
|
+
var import_react11 = __toESM(require("react"));
|
3180
3181
|
var BackToTop = ({ ...props }) => {
|
3181
|
-
const [visible, setVisible] = (0,
|
3182
|
-
const [rect, _setRect] = (0,
|
3183
|
-
const self = (0,
|
3184
|
-
const _rect = (0,
|
3182
|
+
const [visible, setVisible] = (0, import_react11.useState)(false);
|
3183
|
+
const [rect, _setRect] = (0, import_react11.useState)(null);
|
3184
|
+
const self = (0, import_react11.useRef)(null);
|
3185
|
+
const _rect = (0, import_react11.useRef)(rect);
|
3185
3186
|
const setRect = (data) => {
|
3186
3187
|
_rect.current = data;
|
3187
3188
|
_setRect(data);
|
@@ -3206,7 +3207,7 @@ var BackToTop = ({ ...props }) => {
|
|
3206
3207
|
props.anchor.current.scrollTo({ top: 0, behavior: "smooth" });
|
3207
3208
|
}
|
3208
3209
|
};
|
3209
|
-
(0,
|
3210
|
+
(0, import_react11.useEffect)(() => {
|
3210
3211
|
if (!props.anchor.current)
|
3211
3212
|
return;
|
3212
3213
|
props.anchor.current.addEventListener("scroll", onScroll);
|
@@ -3242,7 +3243,7 @@ var BackToTop = ({ ...props }) => {
|
|
3242
3243
|
};
|
3243
3244
|
return style;
|
3244
3245
|
};
|
3245
|
-
return /* @__PURE__ */
|
3246
|
+
return /* @__PURE__ */ import_react11.default.createElement(
|
3246
3247
|
Button,
|
3247
3248
|
{
|
3248
3249
|
className: cn(
|
@@ -3257,7 +3258,7 @@ var BackToTop = ({ ...props }) => {
|
|
3257
3258
|
ref: self,
|
3258
3259
|
size: "icon"
|
3259
3260
|
},
|
3260
|
-
/* @__PURE__ */
|
3261
|
+
/* @__PURE__ */ import_react11.default.createElement(
|
3261
3262
|
"svg",
|
3262
3263
|
{
|
3263
3264
|
className: cn(
|
@@ -3267,13 +3268,13 @@ var BackToTop = ({ ...props }) => {
|
|
3267
3268
|
viewBox: "0 0 20 20",
|
3268
3269
|
fill: "currentColor"
|
3269
3270
|
},
|
3270
|
-
/* @__PURE__ */
|
3271
|
+
/* @__PURE__ */ import_react11.default.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" })
|
3271
3272
|
)
|
3272
3273
|
);
|
3273
3274
|
};
|
3274
3275
|
|
3275
3276
|
// elements/radio/Radio.tsx
|
3276
|
-
var
|
3277
|
+
var import_react12 = __toESM(require("react"));
|
3277
3278
|
|
3278
3279
|
// elements/popover/Popover.tsx
|
3279
3280
|
var React25 = __toESM(require("react"));
|
@@ -3342,7 +3343,7 @@ var PopoverPortal = PopoverPrimitive.Portal;
|
|
3342
3343
|
var PopoverRoot = PopoverPrimitive.Root;
|
3343
3344
|
|
3344
3345
|
// elements/radio/Radio.tsx
|
3345
|
-
var Radio = (0,
|
3346
|
+
var Radio = (0, import_react12.forwardRef)(
|
3346
3347
|
({
|
3347
3348
|
design = "default",
|
3348
3349
|
width = "default",
|
@@ -3374,15 +3375,15 @@ var Radio = (0, import_react11.forwardRef)(
|
|
3374
3375
|
default: "hawa-max-w-fit",
|
3375
3376
|
full: "hawa-w-full"
|
3376
3377
|
};
|
3377
|
-
const [parentDirection, setParentDirection] =
|
3378
|
+
const [parentDirection, setParentDirection] = import_react12.default.useState(
|
3378
3379
|
null
|
3379
3380
|
);
|
3380
|
-
const [selectedOption, setSelectedOption] = (0,
|
3381
|
+
const [selectedOption, setSelectedOption] = (0, import_react12.useState)(
|
3381
3382
|
props.defaultValue || props.value
|
3382
3383
|
);
|
3383
|
-
const [openTooltip, setOpenTooltip] = (0,
|
3384
|
-
const parentRef = (0,
|
3385
|
-
(0,
|
3384
|
+
const [openTooltip, setOpenTooltip] = (0, import_react12.useState)(null);
|
3385
|
+
const parentRef = (0, import_react12.useRef)(null);
|
3386
|
+
(0, import_react12.useEffect)(() => {
|
3386
3387
|
var _a2;
|
3387
3388
|
const parentNode = (_a2 = parentRef.current) == null ? void 0 : _a2.parentNode;
|
3388
3389
|
if (parentNode) {
|
@@ -3408,7 +3409,7 @@ var Radio = (0, import_react11.forwardRef)(
|
|
3408
3409
|
];
|
3409
3410
|
switch (design) {
|
3410
3411
|
case "tabs":
|
3411
|
-
return /* @__PURE__ */
|
3412
|
+
return /* @__PURE__ */ import_react12.default.createElement("div", { className: "hawa-gap-2 hawa-flex hawa-flex-col" }, props.label && /* @__PURE__ */ import_react12.default.createElement(Label2, { ...labelProps }, props.label), /* @__PURE__ */ import_react12.default.createElement(
|
3412
3413
|
"ul",
|
3413
3414
|
{
|
3414
3415
|
ref: parentRef,
|
@@ -3421,21 +3422,21 @@ var Radio = (0, import_react11.forwardRef)(
|
|
3421
3422
|
)
|
3422
3423
|
},
|
3423
3424
|
(_b = props.options) == null ? void 0 : _b.map((opt, o) => {
|
3424
|
-
return opt.tooltip ? /* @__PURE__ */
|
3425
|
+
return opt.tooltip ? /* @__PURE__ */ import_react12.default.createElement(
|
3425
3426
|
PopoverRoot,
|
3426
3427
|
{
|
3427
3428
|
key: o,
|
3428
3429
|
open: o === openTooltip,
|
3429
3430
|
onOpenChange: (bool) => setOpenTooltip(bool ? o : null)
|
3430
3431
|
},
|
3431
|
-
/* @__PURE__ */
|
3432
|
+
/* @__PURE__ */ import_react12.default.createElement(
|
3432
3433
|
PopoverTrigger,
|
3433
3434
|
{
|
3434
3435
|
onMouseEnter: () => setOpenTooltip(o),
|
3435
3436
|
onMouseLeave: () => setOpenTooltip(null),
|
3436
3437
|
asChild: true
|
3437
3438
|
},
|
3438
|
-
/* @__PURE__ */
|
3439
|
+
/* @__PURE__ */ import_react12.default.createElement(
|
3439
3440
|
"li",
|
3440
3441
|
{
|
3441
3442
|
"aria-current": "page",
|
@@ -3453,8 +3454,8 @@ var Radio = (0, import_react11.forwardRef)(
|
|
3453
3454
|
opt.label
|
3454
3455
|
)
|
3455
3456
|
),
|
3456
|
-
/* @__PURE__ */
|
3457
|
-
) : /* @__PURE__ */
|
3457
|
+
/* @__PURE__ */ import_react12.default.createElement(PopoverContent, { ...opt.tooltipContentProps }, opt.tooltip)
|
3458
|
+
) : /* @__PURE__ */ import_react12.default.createElement(
|
3458
3459
|
"li",
|
3459
3460
|
{
|
3460
3461
|
key: o,
|
@@ -3473,7 +3474,7 @@ var Radio = (0, import_react11.forwardRef)(
|
|
3473
3474
|
opt.label
|
3474
3475
|
);
|
3475
3476
|
})
|
3476
|
-
), !forceHideHelperText && /* @__PURE__ */
|
3477
|
+
), !forceHideHelperText && /* @__PURE__ */ import_react12.default.createElement(
|
3477
3478
|
"p",
|
3478
3479
|
{
|
3479
3480
|
className: cn(
|
@@ -3484,7 +3485,7 @@ var Radio = (0, import_react11.forwardRef)(
|
|
3484
3485
|
props.helperText
|
3485
3486
|
));
|
3486
3487
|
case "bordered":
|
3487
|
-
return /* @__PURE__ */
|
3488
|
+
return /* @__PURE__ */ import_react12.default.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ import_react12.default.createElement("div", { key: i, className: "hawa-w-full hawa-rounded hawa-border" }, /* @__PURE__ */ import_react12.default.createElement(
|
3488
3489
|
"div",
|
3489
3490
|
{
|
3490
3491
|
className: cn(
|
@@ -3493,7 +3494,7 @@ var Radio = (0, import_react11.forwardRef)(
|
|
3493
3494
|
),
|
3494
3495
|
key: i + 1
|
3495
3496
|
},
|
3496
|
-
/* @__PURE__ */
|
3497
|
+
/* @__PURE__ */ import_react12.default.createElement(
|
3497
3498
|
"input",
|
3498
3499
|
{
|
3499
3500
|
disabled: opt.disabled,
|
@@ -3504,7 +3505,7 @@ var Radio = (0, import_react11.forwardRef)(
|
|
3504
3505
|
onChange: () => handleChange(opt)
|
3505
3506
|
}
|
3506
3507
|
),
|
3507
|
-
/* @__PURE__ */
|
3508
|
+
/* @__PURE__ */ import_react12.default.createElement(
|
3508
3509
|
"label",
|
3509
3510
|
{
|
3510
3511
|
htmlFor: opt.value.toString(),
|
@@ -3517,7 +3518,7 @@ var Radio = (0, import_react11.forwardRef)(
|
|
3517
3518
|
)
|
3518
3519
|
))));
|
3519
3520
|
case "cards":
|
3520
|
-
return /* @__PURE__ */
|
3521
|
+
return /* @__PURE__ */ import_react12.default.createElement("ul", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, (_c = props.options) == null ? void 0 : _c.map((opt, o) => /* @__PURE__ */ import_react12.default.createElement("li", { key: o, onClick: () => handleChange(opt) }, /* @__PURE__ */ import_react12.default.createElement(
|
3521
3522
|
"input",
|
3522
3523
|
{
|
3523
3524
|
type: "radio",
|
@@ -3528,7 +3529,7 @@ var Radio = (0, import_react11.forwardRef)(
|
|
3528
3529
|
required: true,
|
3529
3530
|
disabled: opt.disabled
|
3530
3531
|
}
|
3531
|
-
), /* @__PURE__ */
|
3532
|
+
), /* @__PURE__ */ import_react12.default.createElement(
|
3532
3533
|
"label",
|
3533
3534
|
{
|
3534
3535
|
htmlFor: opt.value.toString(),
|
@@ -3537,10 +3538,10 @@ var Radio = (0, import_react11.forwardRef)(
|
|
3537
3538
|
opt.disabled ? "hawa-opacity-50" : "hawa-cursor-pointer hover:hawa-bg-foreground/10 hover:hawa-text-gray-600 dark:hover:hawa-bg-foreground/20 dark:hover:hawa-text-gray-300"
|
3538
3539
|
)
|
3539
3540
|
},
|
3540
|
-
/* @__PURE__ */
|
3541
|
+
/* @__PURE__ */ import_react12.default.createElement("div", { className: "hawa-block hawa-h-full hawa-w-full" }, /* @__PURE__ */ import_react12.default.createElement("div", { className: "hawa-w-full hawa-text-lg hawa-font-semibold" }, opt.label), /* @__PURE__ */ import_react12.default.createElement("div", { className: "hawa-w-full" }, opt.sublabel))
|
3541
3542
|
))));
|
3542
3543
|
default:
|
3543
|
-
return /* @__PURE__ */
|
3544
|
+
return /* @__PURE__ */ import_react12.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ import_react12.default.createElement(Label2, { ...labelProps }, props.label), /* @__PURE__ */ import_react12.default.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-2") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ import_react12.default.createElement(
|
3544
3545
|
"div",
|
3545
3546
|
{
|
3546
3547
|
className: cn(
|
@@ -3549,7 +3550,7 @@ var Radio = (0, import_react11.forwardRef)(
|
|
3549
3550
|
),
|
3550
3551
|
key: i + 1
|
3551
3552
|
},
|
3552
|
-
/* @__PURE__ */
|
3553
|
+
/* @__PURE__ */ import_react12.default.createElement(
|
3553
3554
|
"input",
|
3554
3555
|
{
|
3555
3556
|
disabled: opt.disabled,
|
@@ -3560,7 +3561,7 @@ var Radio = (0, import_react11.forwardRef)(
|
|
3560
3561
|
onChange: () => handleChange(opt)
|
3561
3562
|
}
|
3562
3563
|
),
|
3563
|
-
/* @__PURE__ */
|
3564
|
+
/* @__PURE__ */ import_react12.default.createElement(
|
3564
3565
|
"label",
|
3565
3566
|
{
|
3566
3567
|
htmlFor: opt.value.toString(),
|
@@ -3571,7 +3572,7 @@ var Radio = (0, import_react11.forwardRef)(
|
|
3571
3572
|
},
|
3572
3573
|
opt.label
|
3573
3574
|
)
|
3574
|
-
))), /* @__PURE__ */
|
3575
|
+
))), /* @__PURE__ */ import_react12.default.createElement(
|
3575
3576
|
"p",
|
3576
3577
|
{
|
3577
3578
|
className: cn(
|
@@ -3942,7 +3943,7 @@ var Textarea = React29.forwardRef(
|
|
3942
3943
|
Textarea.displayName = "Textarea";
|
3943
3944
|
|
3944
3945
|
// elements/fileDropzone/FileDropzone.tsx
|
3945
|
-
var
|
3946
|
+
var import_react13 = __toESM(require("react"));
|
3946
3947
|
var import_react_dropzone = require("react-dropzone");
|
3947
3948
|
var import_clsx2 = __toESM(require("clsx"));
|
3948
3949
|
var FileDropzone = ({
|
@@ -3964,8 +3965,8 @@ var FileDropzone = ({
|
|
3964
3965
|
privacyLink
|
3965
3966
|
}) => {
|
3966
3967
|
var _a, _b, _c, _d, _e, _f;
|
3967
|
-
const [cmp, setCmp] = (0,
|
3968
|
-
const [max, setMax] = (0,
|
3968
|
+
const [cmp, setCmp] = (0, import_react13.useState)(0);
|
3969
|
+
const [max, setMax] = (0, import_react13.useState)(0);
|
3969
3970
|
const {
|
3970
3971
|
getRootProps,
|
3971
3972
|
getInputProps,
|
@@ -3987,7 +3988,7 @@ var FileDropzone = ({
|
|
3987
3988
|
);
|
3988
3989
|
}
|
3989
3990
|
});
|
3990
|
-
(0,
|
3991
|
+
(0, import_react13.useEffect)(
|
3991
3992
|
() => () => {
|
3992
3993
|
files == null ? void 0 : files.forEach((file) => {
|
3993
3994
|
URL.revokeObjectURL(file.preview);
|
@@ -3995,7 +3996,7 @@ var FileDropzone = ({
|
|
3995
3996
|
},
|
3996
3997
|
[files]
|
3997
3998
|
);
|
3998
|
-
(0,
|
3999
|
+
(0, import_react13.useEffect)(() => {
|
3999
4000
|
setFiles(acceptedFiles);
|
4000
4001
|
}, [acceptedFiles, cmp, setFiles]);
|
4001
4002
|
onClearFiles = () => {
|
@@ -4007,7 +4008,7 @@ var FileDropzone = ({
|
|
4007
4008
|
acceptedFiles.length = 0;
|
4008
4009
|
setFiles([]);
|
4009
4010
|
};
|
4010
|
-
(0,
|
4011
|
+
(0, import_react13.useEffect)(() => {
|
4011
4012
|
if (maxSize > 0) {
|
4012
4013
|
const k = 1024;
|
4013
4014
|
const sizes = ["Bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"];
|
@@ -4020,7 +4021,7 @@ var FileDropzone = ({
|
|
4020
4021
|
const errs = fileRejections.map((rej, i) => {
|
4021
4022
|
switch (rej.errors[0].code) {
|
4022
4023
|
case "file-too-large":
|
4023
|
-
return /* @__PURE__ */
|
4024
|
+
return /* @__PURE__ */ import_react13.default.createElement(
|
4024
4025
|
Alert,
|
4025
4026
|
{
|
4026
4027
|
key: i,
|
@@ -4030,7 +4031,7 @@ var FileDropzone = ({
|
|
4030
4031
|
}
|
4031
4032
|
);
|
4032
4033
|
case "too-many-files":
|
4033
|
-
return /* @__PURE__ */
|
4034
|
+
return /* @__PURE__ */ import_react13.default.createElement(
|
4034
4035
|
Alert,
|
4035
4036
|
{
|
4036
4037
|
key: i,
|
@@ -4040,7 +4041,7 @@ var FileDropzone = ({
|
|
4040
4041
|
}
|
4041
4042
|
);
|
4042
4043
|
case "file-invalid-type":
|
4043
|
-
return /* @__PURE__ */
|
4044
|
+
return /* @__PURE__ */ import_react13.default.createElement(
|
4044
4045
|
Alert,
|
4045
4046
|
{
|
4046
4047
|
key: i,
|
@@ -4050,7 +4051,7 @@ var FileDropzone = ({
|
|
4050
4051
|
}
|
4051
4052
|
);
|
4052
4053
|
default:
|
4053
|
-
return /* @__PURE__ */
|
4054
|
+
return /* @__PURE__ */ import_react13.default.createElement(
|
4054
4055
|
Alert,
|
4055
4056
|
{
|
4056
4057
|
key: i,
|
@@ -4061,7 +4062,7 @@ var FileDropzone = ({
|
|
4061
4062
|
);
|
4062
4063
|
}
|
4063
4064
|
});
|
4064
|
-
const thumbs = files == null ? void 0 : files.map((file, index) => /* @__PURE__ */
|
4065
|
+
const thumbs = files == null ? void 0 : files.map((file, index) => /* @__PURE__ */ import_react13.default.createElement("div", { className: "hawa-relative hawa-rounded", key: index }, /* @__PURE__ */ import_react13.default.createElement(
|
4065
4066
|
"button",
|
4066
4067
|
{
|
4067
4068
|
onClick: (e) => {
|
@@ -4074,7 +4075,7 @@ var FileDropzone = ({
|
|
4074
4075
|
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",
|
4075
4076
|
"data-modal-toggle": "defaultModal"
|
4076
4077
|
},
|
4077
|
-
/* @__PURE__ */
|
4078
|
+
/* @__PURE__ */ import_react13.default.createElement(
|
4078
4079
|
"svg",
|
4079
4080
|
{
|
4080
4081
|
"aria-hidden": "true",
|
@@ -4082,7 +4083,7 @@ var FileDropzone = ({
|
|
4082
4083
|
fill: "currentColor",
|
4083
4084
|
viewBox: "0 0 20 20"
|
4084
4085
|
},
|
4085
|
-
/* @__PURE__ */
|
4086
|
+
/* @__PURE__ */ import_react13.default.createElement(
|
4086
4087
|
"path",
|
4087
4088
|
{
|
4088
4089
|
fillRule: "evenodd",
|
@@ -4091,8 +4092,8 @@ var FileDropzone = ({
|
|
4091
4092
|
}
|
4092
4093
|
)
|
4093
4094
|
),
|
4094
|
-
/* @__PURE__ */
|
4095
|
-
), /* @__PURE__ */
|
4095
|
+
/* @__PURE__ */ import_react13.default.createElement("span", { className: "hawa-sr-only" }, "Close modal")
|
4096
|
+
), /* @__PURE__ */ import_react13.default.createElement(
|
4096
4097
|
"div",
|
4097
4098
|
{
|
4098
4099
|
style: {
|
@@ -4111,7 +4112,7 @@ var FileDropzone = ({
|
|
4111
4112
|
key: file.name
|
4112
4113
|
}
|
4113
4114
|
)));
|
4114
|
-
return /* @__PURE__ */
|
4115
|
+
return /* @__PURE__ */ import_react13.default.createElement("div", null, label && /* @__PURE__ */ import_react13.default.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__ */ import_react13.default.createElement(
|
4115
4116
|
"div",
|
4116
4117
|
{
|
4117
4118
|
className: (0, import_clsx2.default)(
|
@@ -4119,7 +4120,7 @@ var FileDropzone = ({
|
|
4119
4120
|
isDragActive ? "hawa-bg-muted" : "hawa-bg-muted/20 hover:hawa-bg-muted/50 "
|
4120
4121
|
)
|
4121
4122
|
},
|
4122
|
-
/* @__PURE__ */
|
4123
|
+
/* @__PURE__ */ import_react13.default.createElement("div", { ...getRootProps({}) }, /* @__PURE__ */ import_react13.default.createElement("p", { ...getInputProps() }), /* @__PURE__ */ import_react13.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-gap-2 hawa-pt-4 hawa-text-center" }, /* @__PURE__ */ import_react13.default.createElement(
|
4123
4124
|
"svg",
|
4124
4125
|
{
|
4125
4126
|
stroke: "currentColor",
|
@@ -4131,28 +4132,28 @@ var FileDropzone = ({
|
|
4131
4132
|
height: "1.5em",
|
4132
4133
|
width: "1.5em"
|
4133
4134
|
},
|
4134
|
-
/* @__PURE__ */
|
4135
|
-
/* @__PURE__ */
|
4136
|
-
/* @__PURE__ */
|
4137
|
-
/* @__PURE__ */
|
4138
|
-
/* @__PURE__ */
|
4139
|
-
/* @__PURE__ */
|
4140
|
-
/* @__PURE__ */
|
4141
|
-
/* @__PURE__ */
|
4142
|
-
/* @__PURE__ */
|
4143
|
-
/* @__PURE__ */
|
4144
|
-
), typeof texts.clickHereToUpload === "function" ? texts.clickHereToUpload() : texts.clickHereToUpload), /* @__PURE__ */
|
4145
|
-
acceptedFiles.length > 0 && /* @__PURE__ */
|
4146
|
-
acceptedFiles.length > 0 && thumbs && showPreview ? /* @__PURE__ */
|
4147
|
-
/* @__PURE__ */
|
4148
|
-
), disclaimer && /* @__PURE__ */
|
4135
|
+
/* @__PURE__ */ import_react13.default.createElement("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }),
|
4136
|
+
/* @__PURE__ */ import_react13.default.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" }),
|
4137
|
+
/* @__PURE__ */ import_react13.default.createElement("path", { d: "M13 13l9 3l-4 2l-2 4l-3 -9" }),
|
4138
|
+
/* @__PURE__ */ import_react13.default.createElement("path", { d: "M3 3l0 .01" }),
|
4139
|
+
/* @__PURE__ */ import_react13.default.createElement("path", { d: "M7 3l0 .01" }),
|
4140
|
+
/* @__PURE__ */ import_react13.default.createElement("path", { d: "M11 3l0 .01" }),
|
4141
|
+
/* @__PURE__ */ import_react13.default.createElement("path", { d: "M15 3l0 .01" }),
|
4142
|
+
/* @__PURE__ */ import_react13.default.createElement("path", { d: "M3 7l0 .01" }),
|
4143
|
+
/* @__PURE__ */ import_react13.default.createElement("path", { d: "M3 11l0 .01" }),
|
4144
|
+
/* @__PURE__ */ import_react13.default.createElement("path", { d: "M3 15l0 .01" })
|
4145
|
+
), typeof texts.clickHereToUpload === "function" ? texts.clickHereToUpload() : texts.clickHereToUpload), /* @__PURE__ */ import_react13.default.createElement("div", { className: "hawa-select-none hawa-pt-2 hawa-text-center hawa-text-xs" }, texts.acceptedFileTypes, " ", accept.split(",")), /* @__PURE__ */ import_react13.default.createElement("div", { className: "hawa-select-none hawa-pb-2 hawa-pt-1 hawa-text-center hawa-text-xs" }, texts.maxFileSize, " ", max)),
|
4146
|
+
acceptedFiles.length > 0 && /* @__PURE__ */ import_react13.default.createElement("div", { className: "hawa-flex hawa-justify-center hawa-rounded-lg hawa-p-2 " }, /* @__PURE__ */ import_react13.default.createElement(Button, { onClick: clearAllFiles }, "Clear All")),
|
4147
|
+
acceptedFiles.length > 0 && thumbs && showPreview ? /* @__PURE__ */ import_react13.default.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,
|
4148
|
+
/* @__PURE__ */ import_react13.default.createElement("div", { className: "px-4" }, ((_b = (_a = fileRejections[0]) == null ? void 0 : _a.errors[0]) == null ? void 0 : _b.code) && errs)
|
4149
|
+
), disclaimer && /* @__PURE__ */ import_react13.default.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__ */ import_react13.default.createElement(
|
4149
4150
|
"a",
|
4150
4151
|
{
|
4151
4152
|
href: termsLink,
|
4152
4153
|
className: "clickable-link hawa-text-muted-foreground/50"
|
4153
4154
|
},
|
4154
4155
|
(_d = texts.terms) != null ? _d : "Terms"
|
4155
|
-
), " ", (_e = texts.and) != null ? _e : "and", " ", /* @__PURE__ */
|
4156
|
+
), " ", (_e = texts.and) != null ? _e : "and", " ", /* @__PURE__ */ import_react13.default.createElement(
|
4156
4157
|
"a",
|
4157
4158
|
{
|
4158
4159
|
href: privacyLink,
|
@@ -4163,9 +4164,9 @@ var FileDropzone = ({
|
|
4163
4164
|
};
|
4164
4165
|
|
4165
4166
|
// elements/sortButton/SortButton.tsx
|
4166
|
-
var
|
4167
|
+
var import_react14 = __toESM(require("react"));
|
4167
4168
|
var SortButton = (props) => {
|
4168
|
-
return /* @__PURE__ */
|
4169
|
+
return /* @__PURE__ */ import_react14.default.createElement(
|
4169
4170
|
Button,
|
4170
4171
|
{
|
4171
4172
|
variant: "ghost",
|
@@ -4177,7 +4178,7 @@ var SortButton = (props) => {
|
|
4177
4178
|
onClick: props.onSort
|
4178
4179
|
},
|
4179
4180
|
props.label,
|
4180
|
-
/* @__PURE__ */
|
4181
|
+
/* @__PURE__ */ import_react14.default.createElement(
|
4181
4182
|
"svg",
|
4182
4183
|
{
|
4183
4184
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -4189,10 +4190,10 @@ var SortButton = (props) => {
|
|
4189
4190
|
strokeLinejoin: "round",
|
4190
4191
|
className: props.condensed ? "hawa-h-3 hawa-w-3" : "hawa-icon"
|
4191
4192
|
},
|
4192
|
-
/* @__PURE__ */
|
4193
|
-
/* @__PURE__ */
|
4194
|
-
/* @__PURE__ */
|
4195
|
-
/* @__PURE__ */
|
4193
|
+
/* @__PURE__ */ import_react14.default.createElement("path", { d: "m21 16-4 4-4-4" }),
|
4194
|
+
/* @__PURE__ */ import_react14.default.createElement("path", { d: "M17 20V4" }),
|
4195
|
+
/* @__PURE__ */ import_react14.default.createElement("path", { d: "m3 8 4-4 4 4" }),
|
4196
|
+
/* @__PURE__ */ import_react14.default.createElement("path", { d: "M7 4v16" })
|
4196
4197
|
)
|
4197
4198
|
);
|
4198
4199
|
};
|
@@ -4201,34 +4202,34 @@ var SortButton = (props) => {
|
|
4201
4202
|
var React42 = __toESM(require("react"));
|
4202
4203
|
|
4203
4204
|
// hooks/useIsomorphicEffect.ts
|
4204
|
-
var
|
4205
|
+
var import_react15 = require("react");
|
4205
4206
|
|
4206
4207
|
// hooks/useDiscloser.ts
|
4207
|
-
var
|
4208
|
+
var import_react16 = require("react");
|
4208
4209
|
|
4209
4210
|
// hooks/useHover.ts
|
4210
|
-
var
|
4211
|
+
var import_react17 = require("react");
|
4211
4212
|
|
4212
4213
|
// hooks/useToast.ts
|
4213
4214
|
var React34 = __toESM(require("react"));
|
4214
4215
|
|
4215
4216
|
// hooks/useCarousel.ts
|
4216
|
-
var
|
4217
|
+
var import_react18 = require("react");
|
4217
4218
|
|
4218
4219
|
// hooks/useDialogCarousel.ts
|
4219
|
-
var
|
4220
|
+
var import_react19 = require("react");
|
4220
4221
|
var import_embla_carousel_auto_height = __toESM(require("embla-carousel-auto-height"));
|
4221
4222
|
var import_embla_carousel_react = __toESM(require("embla-carousel-react"));
|
4222
4223
|
|
4223
4224
|
// hooks/useDialogSteps.ts
|
4224
|
-
var
|
4225
|
+
var import_react20 = require("react");
|
4225
4226
|
|
4226
4227
|
// hooks/useClipboard.ts
|
4227
|
-
var
|
4228
|
+
var import_react21 = require("react");
|
4228
4229
|
function useClipboard({ timeout = 2e3 } = {}) {
|
4229
|
-
const [error, setError] = (0,
|
4230
|
-
const [copied, setCopied] = (0,
|
4231
|
-
const [copyTimeout, setCopyTimeout] = (0,
|
4230
|
+
const [error, setError] = (0, import_react21.useState)(null);
|
4231
|
+
const [copied, setCopied] = (0, import_react21.useState)(false);
|
4232
|
+
const [copyTimeout, setCopyTimeout] = (0, import_react21.useState)(null);
|
4232
4233
|
const handleCopyResult = (value) => {
|
4233
4234
|
clearTimeout(copyTimeout);
|
4234
4235
|
setCopyTimeout(setTimeout(() => setCopied(false), timeout));
|
@@ -4250,31 +4251,31 @@ function useClipboard({ timeout = 2e3 } = {}) {
|
|
4250
4251
|
}
|
4251
4252
|
|
4252
4253
|
// hooks/useBreakpoint.ts
|
4253
|
-
var
|
4254
|
+
var import_react22 = require("react");
|
4254
4255
|
|
4255
4256
|
// hooks/useWindowSize.ts
|
4256
|
-
var
|
4257
|
+
var import_react23 = require("react");
|
4257
4258
|
|
4258
4259
|
// hooks/useFocusWithin.ts
|
4259
|
-
var
|
4260
|
+
var import_react24 = require("react");
|
4260
4261
|
|
4261
4262
|
// hooks/useMediaQuery.ts
|
4262
|
-
var
|
4263
|
+
var import_react25 = require("react");
|
4263
4264
|
|
4264
4265
|
// hooks/useScrollPosition.ts
|
4265
|
-
var
|
4266
|
+
var import_react26 = require("react");
|
4266
4267
|
|
4267
4268
|
// hooks/useTable.ts
|
4268
|
-
var
|
4269
|
+
var import_react27 = require("react");
|
4269
4270
|
|
4270
4271
|
// hooks/useTabs.ts
|
4271
|
-
var
|
4272
|
+
var import_react28 = require("react");
|
4272
4273
|
|
4273
4274
|
// hooks/useMeasureDirty.ts
|
4274
|
-
var
|
4275
|
+
var import_react29 = require("react");
|
4275
4276
|
var useMeasureDirty = (ref) => {
|
4276
|
-
const frame = (0,
|
4277
|
-
const [rect, set] = (0,
|
4277
|
+
const frame = (0, import_react29.useRef)(0);
|
4278
|
+
const [rect, set] = (0, import_react29.useState)({
|
4278
4279
|
width: 0,
|
4279
4280
|
height: 0,
|
4280
4281
|
top: 0,
|
@@ -4282,7 +4283,7 @@ var useMeasureDirty = (ref) => {
|
|
4282
4283
|
bottom: 0,
|
4283
4284
|
right: 0
|
4284
4285
|
});
|
4285
|
-
const [observer] = (0,
|
4286
|
+
const [observer] = (0, import_react29.useState)(
|
4286
4287
|
() => new ResizeObserver((entries) => {
|
4287
4288
|
const entry = entries[0];
|
4288
4289
|
if (entry) {
|
@@ -4295,7 +4296,7 @@ var useMeasureDirty = (ref) => {
|
|
4295
4296
|
}
|
4296
4297
|
})
|
4297
4298
|
);
|
4298
|
-
(0,
|
4299
|
+
(0, import_react29.useEffect)(() => {
|
4299
4300
|
observer.disconnect();
|
4300
4301
|
if (ref.current) {
|
4301
4302
|
observer.observe(ref.current);
|
@@ -4305,7 +4306,7 @@ var useMeasureDirty = (ref) => {
|
|
4305
4306
|
};
|
4306
4307
|
|
4307
4308
|
// hooks/useOutsideClick.ts
|
4308
|
-
var
|
4309
|
+
var import_react30 = __toESM(require("react"));
|
4309
4310
|
|
4310
4311
|
// elements/tabs/Tabs.tsx
|
4311
4312
|
var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"));
|
@@ -4501,7 +4502,7 @@ TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
4501
4502
|
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
4502
4503
|
|
4503
4504
|
// elements/select/Select.tsx
|
4504
|
-
var
|
4505
|
+
var import_react31 = __toESM(require("react"));
|
4505
4506
|
var import_react_select = __toESM(require("react-select"));
|
4506
4507
|
var import_creatable = __toESM(require("react-select/creatable"));
|
4507
4508
|
var import_clsx3 = __toESM(require("clsx"));
|
@@ -4512,10 +4513,10 @@ var Select = ({
|
|
4512
4513
|
}) => {
|
4513
4514
|
const NoOption = () => {
|
4514
4515
|
var _a, _b;
|
4515
|
-
return /* @__PURE__ */
|
4516
|
+
return /* @__PURE__ */ import_react31.default.createElement("div", null, (_b = (_a = props.texts) == null ? void 0 : _a.noOptions) != null ? _b : "No Items Found");
|
4516
4517
|
};
|
4517
4518
|
const Control = ({ children, innerProps, innerRef }) => {
|
4518
|
-
return /* @__PURE__ */
|
4519
|
+
return /* @__PURE__ */ import_react31.default.createElement(
|
4519
4520
|
"div",
|
4520
4521
|
{
|
4521
4522
|
ref: innerRef,
|
@@ -4528,7 +4529,7 @@ var Select = ({
|
|
4528
4529
|
);
|
4529
4530
|
};
|
4530
4531
|
const Option = ({ children, innerProps, innerRef }) => {
|
4531
|
-
return /* @__PURE__ */
|
4532
|
+
return /* @__PURE__ */ import_react31.default.createElement(
|
4532
4533
|
"div",
|
4533
4534
|
{
|
4534
4535
|
ref: innerRef,
|
@@ -4549,7 +4550,7 @@ var Select = ({
|
|
4549
4550
|
...menuProps
|
4550
4551
|
}) => {
|
4551
4552
|
const menuOpen = menuProps.selectProps.menuIsOpen;
|
4552
|
-
return /* @__PURE__ */
|
4553
|
+
return /* @__PURE__ */ import_react31.default.createElement(
|
4553
4554
|
"div",
|
4554
4555
|
{
|
4555
4556
|
className: cn(
|
@@ -4563,7 +4564,7 @@ var Select = ({
|
|
4563
4564
|
children
|
4564
4565
|
);
|
4565
4566
|
};
|
4566
|
-
return /* @__PURE__ */
|
4567
|
+
return /* @__PURE__ */ import_react31.default.createElement(
|
4567
4568
|
"div",
|
4568
4569
|
{
|
4569
4570
|
className: cn(
|
@@ -4571,10 +4572,10 @@ var Select = ({
|
|
4571
4572
|
props.width === "fit" ? "hawa-w-fit" : "hawa-w-full"
|
4572
4573
|
)
|
4573
4574
|
},
|
4574
|
-
props.label && /* @__PURE__ */
|
4575
|
-
props.isLoading ? /* @__PURE__ */
|
4575
|
+
props.label && /* @__PURE__ */ import_react31.default.createElement(Label2, { ...labelProps }, props.label),
|
4576
|
+
props.isLoading ? /* @__PURE__ */ import_react31.default.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" }) : !props.isCreatable ? (
|
4576
4577
|
// TODO: enable keyboard to go to the next item in the list
|
4577
|
-
/* @__PURE__ */
|
4578
|
+
/* @__PURE__ */ import_react31.default.createElement(
|
4578
4579
|
import_react_select.default,
|
4579
4580
|
{
|
4580
4581
|
noOptionsMessage: NoOption,
|
@@ -4613,7 +4614,7 @@ var Select = ({
|
|
4613
4614
|
// {...e}
|
4614
4615
|
// />
|
4615
4616
|
// ),
|
4616
|
-
ValueContainer: (e) => /* @__PURE__ */
|
4617
|
+
ValueContainer: (e) => /* @__PURE__ */ import_react31.default.createElement(
|
4617
4618
|
"div",
|
4618
4619
|
{
|
4619
4620
|
className: cn(
|
@@ -4623,7 +4624,7 @@ var Select = ({
|
|
4623
4624
|
...e
|
4624
4625
|
}
|
4625
4626
|
),
|
4626
|
-
MultiValueContainer: (e) => /* @__PURE__ */
|
4627
|
+
MultiValueContainer: (e) => /* @__PURE__ */ import_react31.default.createElement(
|
4627
4628
|
"div",
|
4628
4629
|
{
|
4629
4630
|
className: cn(
|
@@ -4645,7 +4646,7 @@ var Select = ({
|
|
4645
4646
|
isSearchable: props.isSearchable
|
4646
4647
|
}
|
4647
4648
|
)
|
4648
|
-
) : /* @__PURE__ */
|
4649
|
+
) : /* @__PURE__ */ import_react31.default.createElement(
|
4649
4650
|
import_creatable.default,
|
4650
4651
|
{
|
4651
4652
|
formatCreateLabel: (inputValue) => {
|
@@ -4675,7 +4676,7 @@ var Select = ({
|
|
4675
4676
|
onInputChange: (newValue, action) => props.onInputChange(newValue, action)
|
4676
4677
|
}
|
4677
4678
|
),
|
4678
|
-
!props.hideHelperText && /* @__PURE__ */
|
4679
|
+
!props.hideHelperText && /* @__PURE__ */ import_react31.default.createElement(
|
4679
4680
|
"p",
|
4680
4681
|
{
|
4681
4682
|
className: cn(
|
@@ -4925,7 +4926,7 @@ var Progress = React46.forwardRef(({ className, value, ...props }, ref) => /* @_
|
|
4925
4926
|
Progress.displayName = ProgressPrimitive.Root.displayName;
|
4926
4927
|
|
4927
4928
|
// elements/breadcrumb/Breadcrumb.tsx
|
4928
|
-
var
|
4929
|
+
var import_react32 = __toESM(require("react"));
|
4929
4930
|
var Breadcrumb = ({
|
4930
4931
|
breadcrumbLinks,
|
4931
4932
|
separator = ">",
|
@@ -4936,7 +4937,7 @@ var Breadcrumb = ({
|
|
4936
4937
|
small: "hawa-text-sm",
|
4937
4938
|
xs: "hawa-text-xs"
|
4938
4939
|
};
|
4939
|
-
return /* @__PURE__ */
|
4940
|
+
return /* @__PURE__ */ import_react32.default.createElement(
|
4940
4941
|
"div",
|
4941
4942
|
{
|
4942
4943
|
className: cn(
|
@@ -4944,13 +4945,13 @@ var Breadcrumb = ({
|
|
4944
4945
|
textStyles[size]
|
4945
4946
|
)
|
4946
4947
|
},
|
4947
|
-
breadcrumbLinks.map((singleBreadcrumbLink, index) => /* @__PURE__ */
|
4948
|
+
breadcrumbLinks.map((singleBreadcrumbLink, index) => /* @__PURE__ */ import_react32.default.createElement(
|
4948
4949
|
"div",
|
4949
4950
|
{
|
4950
4951
|
key: index,
|
4951
4952
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-2"
|
4952
4953
|
},
|
4953
|
-
/* @__PURE__ */
|
4954
|
+
/* @__PURE__ */ import_react32.default.createElement(
|
4954
4955
|
"a",
|
4955
4956
|
{
|
4956
4957
|
href: singleBreadcrumbLink.href,
|
@@ -4958,49 +4959,49 @@ var Breadcrumb = ({
|
|
4958
4959
|
},
|
4959
4960
|
singleBreadcrumbLink.label
|
4960
4961
|
),
|
4961
|
-
index != breadcrumbLinks.length - 1 ? typeof separator == "string" ? /* @__PURE__ */
|
4962
|
+
index != breadcrumbLinks.length - 1 ? typeof separator == "string" ? /* @__PURE__ */ import_react32.default.createElement("div", null, separator) : /* @__PURE__ */ import_react32.default.createElement("div", null, separator) : null
|
4962
4963
|
))
|
4963
4964
|
);
|
4964
4965
|
};
|
4965
4966
|
|
4966
4967
|
// elements/appStores/AppStores.tsx
|
4967
|
-
var
|
4968
|
+
var import_react33 = __toESM(require("react"));
|
4968
4969
|
var AppStores = (props) => {
|
4969
|
-
return /* @__PURE__ */
|
4970
|
+
return /* @__PURE__ */ import_react33.default.createElement("div", { className: "hawa-flex hawa-justify-center" }, /* @__PURE__ */ import_react33.default.createElement("div", null, props.store === "apple" ? /* @__PURE__ */ import_react33.default.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__ */ import_react33.default.createElement("div", { className: "hawa-mr-3" }, /* @__PURE__ */ import_react33.default.createElement("svg", { viewBox: "0 0 384 512", width: "30" }, /* @__PURE__ */ import_react33.default.createElement(
|
4970
4971
|
"path",
|
4971
4972
|
{
|
4972
4973
|
fill: "currentColor",
|
4973
4974
|
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"
|
4974
4975
|
}
|
4975
|
-
))), /* @__PURE__ */
|
4976
|
+
))), /* @__PURE__ */ import_react33.default.createElement("div", null, /* @__PURE__ */ import_react33.default.createElement("div", { className: "hawa-text-xs" }, "Download on the"), /* @__PURE__ */ import_react33.default.createElement("div", { className: "hawa--mt-1 hawa-font-sans hawa-text-2xl hawa-font-semibold" }, "App Store"))) : /* @__PURE__ */ import_react33.default.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__ */ import_react33.default.createElement("div", { className: "hawa-mr-3" }, /* @__PURE__ */ import_react33.default.createElement("svg", { viewBox: "30 336.7 120.9 129.2", width: "30" }, /* @__PURE__ */ import_react33.default.createElement(
|
4976
4977
|
"path",
|
4977
4978
|
{
|
4978
4979
|
fill: "#FFD400",
|
4979
4980
|
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"
|
4980
4981
|
}
|
4981
|
-
), /* @__PURE__ */
|
4982
|
+
), /* @__PURE__ */ import_react33.default.createElement(
|
4982
4983
|
"path",
|
4983
4984
|
{
|
4984
4985
|
fill: "#FF3333",
|
4985
4986
|
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"
|
4986
4987
|
}
|
4987
|
-
), /* @__PURE__ */
|
4988
|
+
), /* @__PURE__ */ import_react33.default.createElement(
|
4988
4989
|
"path",
|
4989
4990
|
{
|
4990
4991
|
fill: "#48FF48",
|
4991
4992
|
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"
|
4992
4993
|
}
|
4993
|
-
), /* @__PURE__ */
|
4994
|
+
), /* @__PURE__ */ import_react33.default.createElement(
|
4994
4995
|
"path",
|
4995
4996
|
{
|
4996
4997
|
fill: "#3BCCFF",
|
4997
4998
|
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"
|
4998
4999
|
}
|
4999
|
-
))), /* @__PURE__ */
|
5000
|
+
))), /* @__PURE__ */ import_react33.default.createElement("div", null, /* @__PURE__ */ import_react33.default.createElement("div", { className: "hawa-text-xs" }, "GET IT ON"), /* @__PURE__ */ import_react33.default.createElement("div", { className: "hawa--mt-1 hawa-font-sans hawa-text-xl hawa-font-semibold" }, "Google Play")))));
|
5000
5001
|
};
|
5001
5002
|
|
5002
5003
|
// elements/badge/Badge.tsx
|
5003
|
-
var
|
5004
|
+
var import_react34 = __toESM(require("react"));
|
5004
5005
|
var Badge = ({
|
5005
5006
|
anchor,
|
5006
5007
|
position = "right",
|
@@ -5008,14 +5009,14 @@ var Badge = ({
|
|
5008
5009
|
text,
|
5009
5010
|
className
|
5010
5011
|
}) => {
|
5011
|
-
const [badgePosition, setBadgePosition] = (0,
|
5012
|
-
const indicatorRef = (0,
|
5012
|
+
const [badgePosition, setBadgePosition] = (0, import_react34.useState)(null);
|
5013
|
+
const indicatorRef = (0, import_react34.useRef)(null);
|
5013
5014
|
const sizeStyles2 = {
|
5014
5015
|
small: { top: 4, left: 6, right: 7, classes: "hawa-w-3 hawa-h-3" },
|
5015
5016
|
default: { top: 4, left: 7, right: 5, classes: "hawa-w-3 hawa-h-3" },
|
5016
5017
|
large: { top: 6, left: 12, right: 7, classes: "hawa-w-6 hawa-h-6" }
|
5017
5018
|
};
|
5018
|
-
(0,
|
5019
|
+
(0, import_react34.useEffect)(() => {
|
5019
5020
|
const handlePositioning = () => {
|
5020
5021
|
var _a;
|
5021
5022
|
if (anchor.current && indicatorRef.current) {
|
@@ -5038,7 +5039,7 @@ var Badge = ({
|
|
5038
5039
|
window.removeEventListener("resize", handlePositioning);
|
5039
5040
|
};
|
5040
5041
|
}, [anchor]);
|
5041
|
-
return /* @__PURE__ */
|
5042
|
+
return /* @__PURE__ */ import_react34.default.createElement("div", { ref: indicatorRef, className: cn("hawa-relative", className) }, badgePosition && /* @__PURE__ */ import_react34.default.createElement(
|
5042
5043
|
"div",
|
5043
5044
|
{
|
5044
5045
|
style: {
|
@@ -5063,8 +5064,8 @@ var BadgedComponent = ({
|
|
5063
5064
|
size,
|
5064
5065
|
text
|
5065
5066
|
}) => {
|
5066
|
-
const ref = (0,
|
5067
|
-
return /* @__PURE__ */
|
5067
|
+
const ref = (0, import_react34.useRef)(null);
|
5068
|
+
return /* @__PURE__ */ import_react34.default.createElement("div", { className: cn("hawa-relative hawa-w-fit", className), ref }, !hideBadge && /* @__PURE__ */ import_react34.default.createElement(
|
5068
5069
|
Badge,
|
5069
5070
|
{
|
5070
5071
|
size,
|
@@ -5077,7 +5078,7 @@ var BadgedComponent = ({
|
|
5077
5078
|
};
|
5078
5079
|
|
5079
5080
|
// elements/phoneInput/PhoneInput.tsx
|
5080
|
-
var
|
5081
|
+
var import_react35 = __toESM(require("react"));
|
5081
5082
|
|
5082
5083
|
// countries.ts
|
5083
5084
|
var countries = [
|
@@ -6779,9 +6780,9 @@ var PhoneInput = ({
|
|
6779
6780
|
countryCodes,
|
6780
6781
|
...props
|
6781
6782
|
}) => {
|
6782
|
-
const [phoneNumber, setPhoneNumber] = (0,
|
6783
|
-
const [countryCode, setCountryCode] = (0,
|
6784
|
-
const inputRef = (0,
|
6783
|
+
const [phoneNumber, setPhoneNumber] = (0, import_react35.useState)("");
|
6784
|
+
const [countryCode, setCountryCode] = (0, import_react35.useState)(props.preferredCountry);
|
6785
|
+
const inputRef = (0, import_react35.useRef)(null);
|
6785
6786
|
const handleInputChange = (e) => {
|
6786
6787
|
console.log("test e ", e.target.value);
|
6787
6788
|
const validChars = /^[0-9-()]+$/;
|
@@ -6795,7 +6796,7 @@ var PhoneInput = ({
|
|
6795
6796
|
console.log("handleChange prop was not provided in <PhoneInput/>");
|
6796
6797
|
}
|
6797
6798
|
};
|
6798
|
-
return /* @__PURE__ */
|
6799
|
+
return /* @__PURE__ */ import_react35.default.createElement("div", { className: "hawa-flex hawa-h-fit hawa-w-full hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ import_react35.default.createElement(Label2, { ...labelProps }, props.label), /* @__PURE__ */ import_react35.default.createElement("div", { dir: "ltr", className: "hawa-flex hawa-w-full hawa-flex-row" }, /* @__PURE__ */ import_react35.default.createElement(
|
6799
6800
|
Select,
|
6800
6801
|
{
|
6801
6802
|
phoneCode: true,
|
@@ -6811,7 +6812,7 @@ var PhoneInput = ({
|
|
6811
6812
|
value: countryCode == null ? void 0 : countryCode.label,
|
6812
6813
|
defaultValue: props.preferredCountry
|
6813
6814
|
}
|
6814
|
-
), /* @__PURE__ */
|
6815
|
+
), /* @__PURE__ */ import_react35.default.createElement("div", { className: "hawa-relative hawa-flex hawa-h-fit hawa-w-full hawa-flex-col hawa-justify-center hawa-gap-0" }, /* @__PURE__ */ import_react35.default.createElement(
|
6815
6816
|
"input",
|
6816
6817
|
{
|
6817
6818
|
type: "tel",
|
@@ -6825,7 +6826,7 @@ var PhoneInput = ({
|
|
6825
6826
|
),
|
6826
6827
|
...inputProps
|
6827
6828
|
}
|
6828
|
-
))), /* @__PURE__ */
|
6829
|
+
))), /* @__PURE__ */ import_react35.default.createElement(
|
6829
6830
|
"p",
|
6830
6831
|
{
|
6831
6832
|
className: cn(
|
@@ -6838,7 +6839,7 @@ var PhoneInput = ({
|
|
6838
6839
|
};
|
6839
6840
|
|
6840
6841
|
// elements/pinInput/PinInput.tsx
|
6841
|
-
var
|
6842
|
+
var import_react36 = __toESM(require("react"));
|
6842
6843
|
var PinInput = ({
|
6843
6844
|
label,
|
6844
6845
|
icon,
|
@@ -6848,7 +6849,7 @@ var PinInput = ({
|
|
6848
6849
|
inputProps,
|
6849
6850
|
...props
|
6850
6851
|
}) => {
|
6851
|
-
const [pin, setPin] = (0,
|
6852
|
+
const [pin, setPin] = (0, import_react36.useState)(Array.from(Array(digits)));
|
6852
6853
|
const handleKeyDown = (e, index) => {
|
6853
6854
|
let backTo = 0;
|
6854
6855
|
if (e.key === "Backspace") {
|
@@ -6857,7 +6858,7 @@ var PinInput = ({
|
|
6857
6858
|
previousInput == null ? void 0 : previousInput.focus();
|
6858
6859
|
}
|
6859
6860
|
};
|
6860
|
-
(0,
|
6861
|
+
(0, import_react36.useEffect)(() => {
|
6861
6862
|
let unfilled = pin.includes(void 0);
|
6862
6863
|
if (!unfilled && getPins) {
|
6863
6864
|
getPins(pin);
|
@@ -6882,13 +6883,13 @@ var PinInput = ({
|
|
6882
6883
|
}
|
6883
6884
|
}
|
6884
6885
|
};
|
6885
|
-
return /* @__PURE__ */
|
6886
|
+
return /* @__PURE__ */ import_react36.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, /* @__PURE__ */ import_react36.default.createElement(
|
6886
6887
|
"div",
|
6887
6888
|
{
|
6888
6889
|
className: "hawa-flex hawa-w-full hawa-flex-row hawa-justify-center hawa-gap-2",
|
6889
6890
|
dir: "ltr"
|
6890
6891
|
},
|
6891
|
-
pin.map((value, index) => /* @__PURE__ */
|
6892
|
+
pin.map((value, index) => /* @__PURE__ */ import_react36.default.createElement(
|
6892
6893
|
"input",
|
6893
6894
|
{
|
6894
6895
|
key: index,
|
@@ -6908,7 +6909,7 @@ var PinInput = ({
|
|
6908
6909
|
...inputProps
|
6909
6910
|
}
|
6910
6911
|
))
|
6911
|
-
), /* @__PURE__ */
|
6912
|
+
), /* @__PURE__ */ import_react36.default.createElement(
|
6912
6913
|
"p",
|
6913
6914
|
{
|
6914
6915
|
className: cn(
|
@@ -6921,12 +6922,12 @@ var PinInput = ({
|
|
6921
6922
|
};
|
6922
6923
|
|
6923
6924
|
// elements/stopPropagationWrapper/StopPropagationWrapper.tsx
|
6924
|
-
var
|
6925
|
+
var import_react37 = __toESM(require("react"));
|
6925
6926
|
var StopPropagationWrapper = (props) => {
|
6926
6927
|
const handleClick = (e) => {
|
6927
6928
|
e.stopPropagation();
|
6928
6929
|
};
|
6929
|
-
return /* @__PURE__ */
|
6930
|
+
return /* @__PURE__ */ import_react37.default.createElement("div", { onClick: handleClick }, props.children);
|
6930
6931
|
};
|
6931
6932
|
|
6932
6933
|
// elements/scrollArea/ScrollArea.tsx
|
@@ -6970,7 +6971,7 @@ var ScrollBar = React53.forwardRef(({ className, orientation = "vertical", ...pr
|
|
6970
6971
|
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
6971
6972
|
|
6972
6973
|
// elements/colorPicker/ColorPicker.tsx
|
6973
|
-
var
|
6974
|
+
var import_react38 = __toESM(require("react"));
|
6974
6975
|
var ColorPicker = ({
|
6975
6976
|
containerProps,
|
6976
6977
|
colorPickerProps,
|
@@ -6981,8 +6982,8 @@ var ColorPicker = ({
|
|
6981
6982
|
preview = false,
|
6982
6983
|
...props
|
6983
6984
|
}) => {
|
6984
|
-
const [selectedColor, setSelectedColor] = (0,
|
6985
|
-
(0,
|
6985
|
+
const [selectedColor, setSelectedColor] = (0, import_react38.useState)(props.color);
|
6986
|
+
(0, import_react38.useEffect)(() => {
|
6986
6987
|
if (selectedColor && selectedColor[0] !== "#") {
|
6987
6988
|
setSelectedColor(`#${selectedColor}`);
|
6988
6989
|
}
|
@@ -6999,13 +7000,13 @@ var ColorPicker = ({
|
|
6999
7000
|
props.handleChange(e);
|
7000
7001
|
}
|
7001
7002
|
};
|
7002
|
-
return /* @__PURE__ */
|
7003
|
+
return /* @__PURE__ */ import_react38.default.createElement("div", { className: "hawa-flex hawa-w-fit hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ import_react38.default.createElement(Label2, { ...labelProps }, props.label), isLoading ? /* @__PURE__ */ import_react38.default.createElement(Skeleton, { style: { height: 40, width: 148 } }) : /* @__PURE__ */ import_react38.default.createElement("div", { dir: "ltr", className: "hawa-flex hawa-w-full hawa-flex-row" }, /* @__PURE__ */ import_react38.default.createElement(
|
7003
7004
|
"div",
|
7004
7005
|
{
|
7005
7006
|
style: { height: 40, backgroundColor: selectedColor },
|
7006
7007
|
className: "hawa-rounded-bl-lg hawa-rounded-tl-lg hawa-border"
|
7007
7008
|
},
|
7008
|
-
/* @__PURE__ */
|
7009
|
+
/* @__PURE__ */ import_react38.default.createElement(
|
7009
7010
|
"input",
|
7010
7011
|
{
|
7011
7012
|
disabled: preview,
|
@@ -7024,7 +7025,7 @@ var ColorPicker = ({
|
|
7024
7025
|
...colorPickerProps
|
7025
7026
|
}
|
7026
7027
|
)
|
7027
|
-
), /* @__PURE__ */
|
7028
|
+
), /* @__PURE__ */ import_react38.default.createElement("div", { className: "hawa-relative hawa-flex hawa-max-h-fit hawa-w-full hawa-flex-col hawa-justify-center hawa-gap-0" }, /* @__PURE__ */ import_react38.default.createElement(
|
7028
7029
|
"input",
|
7029
7030
|
{
|
7030
7031
|
disabled: preview,
|
@@ -7043,7 +7044,7 @@ var ColorPicker = ({
|
|
7043
7044
|
},
|
7044
7045
|
...textInputProps
|
7045
7046
|
}
|
7046
|
-
))), !forceHideHelperText && /* @__PURE__ */
|
7047
|
+
))), !forceHideHelperText && /* @__PURE__ */ import_react38.default.createElement(
|
7047
7048
|
"p",
|
7048
7049
|
{
|
7049
7050
|
className: cn(
|
@@ -7056,7 +7057,7 @@ var ColorPicker = ({
|
|
7056
7057
|
};
|
7057
7058
|
|
7058
7059
|
// elements/progressCircle/ProgressCircle.tsx
|
7059
|
-
var
|
7060
|
+
var import_react39 = __toESM(require("react"));
|
7060
7061
|
var size2config = {
|
7061
7062
|
xs: { radius: 15, strokeWidth: 3 },
|
7062
7063
|
sm: { radius: 19, strokeWidth: 4 },
|
@@ -7073,7 +7074,7 @@ function getLimitedValue(input) {
|
|
7073
7074
|
return input;
|
7074
7075
|
}
|
7075
7076
|
}
|
7076
|
-
var ProgressCircle =
|
7077
|
+
var ProgressCircle = import_react39.default.forwardRef((props, ref) => {
|
7077
7078
|
const {
|
7078
7079
|
value: inputValue,
|
7079
7080
|
size = "md",
|
@@ -7093,7 +7094,7 @@ var ProgressCircle = import_react38.default.forwardRef((props, ref) => {
|
|
7093
7094
|
const circumference = normalizedRadius * 2 * Math.PI;
|
7094
7095
|
const strokeDashoffset = value / 100 * circumference;
|
7095
7096
|
const offset = circumference - strokeDashoffset;
|
7096
|
-
return /* @__PURE__ */
|
7097
|
+
return /* @__PURE__ */ import_react39.default.createElement(import_react39.default.Fragment, null, /* @__PURE__ */ import_react39.default.createElement(
|
7097
7098
|
"div",
|
7098
7099
|
{
|
7099
7100
|
ref,
|
@@ -7102,7 +7103,7 @@ var ProgressCircle = import_react38.default.forwardRef((props, ref) => {
|
|
7102
7103
|
className
|
7103
7104
|
)
|
7104
7105
|
},
|
7105
|
-
/* @__PURE__ */
|
7106
|
+
/* @__PURE__ */ import_react39.default.createElement(
|
7106
7107
|
"svg",
|
7107
7108
|
{
|
7108
7109
|
width: radius * 2,
|
@@ -7110,7 +7111,7 @@ var ProgressCircle = import_react38.default.forwardRef((props, ref) => {
|
|
7110
7111
|
viewBox: `0 0 ${radius * 2} ${radius * 2}`,
|
7111
7112
|
className: "hawa-rotate-180 hawa-transform"
|
7112
7113
|
},
|
7113
|
-
/* @__PURE__ */
|
7114
|
+
/* @__PURE__ */ import_react39.default.createElement(
|
7114
7115
|
"circle",
|
7115
7116
|
{
|
7116
7117
|
r: normalizedRadius,
|
@@ -7126,7 +7127,7 @@ var ProgressCircle = import_react38.default.forwardRef((props, ref) => {
|
|
7126
7127
|
)
|
7127
7128
|
}
|
7128
7129
|
),
|
7129
|
-
value > 0 ? /* @__PURE__ */
|
7130
|
+
value > 0 ? /* @__PURE__ */ import_react39.default.createElement(
|
7130
7131
|
"circle",
|
7131
7132
|
{
|
7132
7133
|
r: normalizedRadius,
|
@@ -7146,24 +7147,24 @@ var ProgressCircle = import_react38.default.forwardRef((props, ref) => {
|
|
7146
7147
|
}
|
7147
7148
|
) : null
|
7148
7149
|
),
|
7149
|
-
/* @__PURE__ */
|
7150
|
+
/* @__PURE__ */ import_react39.default.createElement("div", { className: cn("hawa-absolute hawa-flex") }, children)
|
7150
7151
|
));
|
7151
7152
|
});
|
7152
7153
|
ProgressCircle.displayName = "ProgressCircle";
|
7153
7154
|
|
7154
7155
|
// elements/pagination/Pagination.tsx
|
7155
|
-
var
|
7156
|
+
var import_react40 = __toESM(require("react"));
|
7156
7157
|
var import_react_headless_pagination = require("react-headless-pagination");
|
7157
7158
|
var Pagination = ({
|
7158
7159
|
direction,
|
7159
7160
|
totalPages,
|
7160
7161
|
currentPage
|
7161
7162
|
}) => {
|
7162
|
-
const [page, setPage] =
|
7163
|
+
const [page, setPage] = import_react40.default.useState(currentPage || 0);
|
7163
7164
|
const handlePageChange = (page2) => {
|
7164
7165
|
setPage(page2);
|
7165
7166
|
};
|
7166
|
-
return /* @__PURE__ */
|
7167
|
+
return /* @__PURE__ */ import_react40.default.createElement(
|
7167
7168
|
import_react_headless_pagination.Pagination,
|
7168
7169
|
{
|
7169
7170
|
totalPages,
|
@@ -7175,10 +7176,10 @@ var Pagination = ({
|
|
7175
7176
|
truncableText: "...",
|
7176
7177
|
truncableClassName: "hawa-w-10 hawa-px-0.5 hawa-text-center"
|
7177
7178
|
},
|
7178
|
-
/* @__PURE__ */
|
7179
|
+
/* @__PURE__ */ import_react40.default.createElement(
|
7179
7180
|
import_react_headless_pagination.Pagination.PrevButton,
|
7180
7181
|
{
|
7181
|
-
as: /* @__PURE__ */
|
7182
|
+
as: /* @__PURE__ */ import_react40.default.createElement(
|
7182
7183
|
"button",
|
7183
7184
|
{
|
7184
7185
|
"aria-label": "Previous Table Page",
|
@@ -7188,7 +7189,7 @@ var Pagination = ({
|
|
7188
7189
|
),
|
7189
7190
|
style: { minWidth: 36 }
|
7190
7191
|
},
|
7191
|
-
/* @__PURE__ */
|
7192
|
+
/* @__PURE__ */ import_react40.default.createElement(
|
7192
7193
|
"svg",
|
7193
7194
|
{
|
7194
7195
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -7201,7 +7202,7 @@ var Pagination = ({
|
|
7201
7202
|
strokeLinecap: "round",
|
7202
7203
|
strokeLinejoin: "round"
|
7203
7204
|
},
|
7204
|
-
/* @__PURE__ */
|
7205
|
+
/* @__PURE__ */ import_react40.default.createElement("path", { d: "m15 18-6-6 6-6" })
|
7205
7206
|
)
|
7206
7207
|
),
|
7207
7208
|
className: cn(
|
@@ -7214,17 +7215,17 @@ var Pagination = ({
|
|
7214
7215
|
},
|
7215
7216
|
"Previous"
|
7216
7217
|
),
|
7217
|
-
/* @__PURE__ */
|
7218
|
+
/* @__PURE__ */ import_react40.default.createElement("nav", { className: "hawa-flex hawa-flex-grow hawa-justify-center" }, /* @__PURE__ */ import_react40.default.createElement("ul", { className: "hawa-flex hawa-items-center hawa-gap-1" }, /* @__PURE__ */ import_react40.default.createElement(
|
7218
7219
|
import_react_headless_pagination.Pagination.PageButton,
|
7219
7220
|
{
|
7220
7221
|
className: "hawa-tap-highlight-transparent hawa-text-default-foreground data-[focus-visible=true]:hawa-outline-focus data-[disabled=true]:hawa-text-default-300 hawa-min-w-9 hawa-text-small hawa-box-border hawa-flex hawa-h-9 hawa-w-9 hawa-cursor-pointer hawa-touch-none hawa-select-none hawa-flex-wrap hawa-items-center hawa-justify-center hawa-truncate hawa-rounded hawa-border hawa-bg-card hawa-outline-none hawa-transition-all hover:hawa-scale-[1.1] data-[disabled=true]:hawa-pointer-events-none data-[focus-visible=true]:hawa-z-10 data-[pressed=true]:hawa-scale-[0.97] data-[focus-visible=true]:hawa-outline-2 data-[focus-visible=true]:hawa-outline-offset-2",
|
7221
7222
|
activeClassName: "hawa-bg-primary hawa-text-primary-foreground hawa-transition-all"
|
7222
7223
|
}
|
7223
7224
|
))),
|
7224
|
-
/* @__PURE__ */
|
7225
|
+
/* @__PURE__ */ import_react40.default.createElement(
|
7225
7226
|
import_react_headless_pagination.Pagination.NextButton,
|
7226
7227
|
{
|
7227
|
-
as: /* @__PURE__ */
|
7228
|
+
as: /* @__PURE__ */ import_react40.default.createElement(
|
7228
7229
|
"button",
|
7229
7230
|
{
|
7230
7231
|
"aria-label": "Previous Table Page",
|
@@ -7234,7 +7235,7 @@ var Pagination = ({
|
|
7234
7235
|
),
|
7235
7236
|
style: { minWidth: 36 }
|
7236
7237
|
},
|
7237
|
-
/* @__PURE__ */
|
7238
|
+
/* @__PURE__ */ import_react40.default.createElement(
|
7238
7239
|
"svg",
|
7239
7240
|
{
|
7240
7241
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -7247,7 +7248,7 @@ var Pagination = ({
|
|
7247
7248
|
strokeLinecap: "round",
|
7248
7249
|
strokeLinejoin: "round"
|
7249
7250
|
},
|
7250
|
-
/* @__PURE__ */
|
7251
|
+
/* @__PURE__ */ import_react40.default.createElement("path", { d: "m15 18-6-6 6-6" })
|
7251
7252
|
)
|
7252
7253
|
),
|
7253
7254
|
className: cn(
|
@@ -7264,14 +7265,14 @@ var Pagination = ({
|
|
7264
7265
|
};
|
7265
7266
|
|
7266
7267
|
// elements/passwordInput/PasswordInput.tsx
|
7267
|
-
var
|
7268
|
+
var import_react44 = __toESM(require("react"));
|
7268
7269
|
|
7269
7270
|
// icons/Emojis.tsx
|
7270
|
-
var
|
7271
|
+
var import_react41 = __toESM(require("react"));
|
7271
7272
|
|
7272
7273
|
// icons/InputIcons.tsx
|
7273
|
-
var
|
7274
|
-
var EyeIcon = (props) => /* @__PURE__ */
|
7274
|
+
var import_react42 = __toESM(require("react"));
|
7275
|
+
var EyeIcon = (props) => /* @__PURE__ */ import_react42.default.createElement("div", { className: cn("hawa-h-5 hawa-w-5", props.className) }, /* @__PURE__ */ import_react42.default.createElement(
|
7275
7276
|
"svg",
|
7276
7277
|
{
|
7277
7278
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -7282,10 +7283,10 @@ var EyeIcon = (props) => /* @__PURE__ */ import_react41.default.createElement("d
|
|
7282
7283
|
strokeLinecap: "round",
|
7283
7284
|
strokeLinejoin: "round"
|
7284
7285
|
},
|
7285
|
-
/* @__PURE__ */
|
7286
|
-
/* @__PURE__ */
|
7286
|
+
/* @__PURE__ */ import_react42.default.createElement("path", { d: "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z" }),
|
7287
|
+
/* @__PURE__ */ import_react42.default.createElement("circle", { cx: "12", cy: "12", r: "3" })
|
7287
7288
|
));
|
7288
|
-
var HiddenEyeIcon = (props) => /* @__PURE__ */
|
7289
|
+
var HiddenEyeIcon = (props) => /* @__PURE__ */ import_react42.default.createElement("div", { className: cn("hawa-h-5 hawa-w-5", props.className) }, /* @__PURE__ */ import_react42.default.createElement(
|
7289
7290
|
"svg",
|
7290
7291
|
{
|
7291
7292
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -7296,20 +7297,20 @@ var HiddenEyeIcon = (props) => /* @__PURE__ */ import_react41.default.createElem
|
|
7296
7297
|
strokeLinecap: "round",
|
7297
7298
|
strokeLinejoin: "round"
|
7298
7299
|
},
|
7299
|
-
/* @__PURE__ */
|
7300
|
-
/* @__PURE__ */
|
7301
|
-
/* @__PURE__ */
|
7302
|
-
/* @__PURE__ */
|
7300
|
+
/* @__PURE__ */ import_react42.default.createElement("path", { d: "M9.88 9.88a3 3 0 1 0 4.24 4.24" }),
|
7301
|
+
/* @__PURE__ */ import_react42.default.createElement("path", { d: "M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68" }),
|
7302
|
+
/* @__PURE__ */ import_react42.default.createElement("path", { d: "M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61" }),
|
7303
|
+
/* @__PURE__ */ import_react42.default.createElement("line", { x1: "2", x2: "22", y1: "2", y2: "22" })
|
7303
7304
|
));
|
7304
7305
|
|
7305
7306
|
// icons/CommonIcons.tsx
|
7306
|
-
var
|
7307
|
+
var import_react43 = __toESM(require("react"));
|
7307
7308
|
var CheckMark = ({ size = "default", className }) => {
|
7308
7309
|
let sizeStyles2 = {
|
7309
7310
|
default: "hawa-h-5 hawa-w-5",
|
7310
7311
|
sm: "hawa-h-3 hawa-w-3"
|
7311
7312
|
};
|
7312
|
-
return /* @__PURE__ */
|
7313
|
+
return /* @__PURE__ */ import_react43.default.createElement(
|
7313
7314
|
"svg",
|
7314
7315
|
{
|
7315
7316
|
className: cn(sizeStyles2[size], className),
|
@@ -7317,7 +7318,7 @@ var CheckMark = ({ size = "default", className }) => {
|
|
7317
7318
|
fill: "currentColor",
|
7318
7319
|
viewBox: "0 0 20 20"
|
7319
7320
|
},
|
7320
|
-
/* @__PURE__ */
|
7321
|
+
/* @__PURE__ */ import_react43.default.createElement(
|
7321
7322
|
"path",
|
7322
7323
|
{
|
7323
7324
|
fillRule: "evenodd",
|
@@ -7332,7 +7333,7 @@ var UncheckMark = ({ size = "default", className }) => {
|
|
7332
7333
|
default: "hawa-h-5 hawa-w-5",
|
7333
7334
|
sm: "hawa-h-3 hawa-w-3"
|
7334
7335
|
};
|
7335
|
-
return /* @__PURE__ */
|
7336
|
+
return /* @__PURE__ */ import_react43.default.createElement(
|
7336
7337
|
"svg",
|
7337
7338
|
{
|
7338
7339
|
className: cn(sizeStyles2[size], className),
|
@@ -7340,7 +7341,7 @@ var UncheckMark = ({ size = "default", className }) => {
|
|
7340
7341
|
fill: "currentColor",
|
7341
7342
|
viewBox: "0 0 20 20"
|
7342
7343
|
},
|
7343
|
-
/* @__PURE__ */
|
7344
|
+
/* @__PURE__ */ import_react43.default.createElement(
|
7344
7345
|
"path",
|
7345
7346
|
{
|
7346
7347
|
fillRule: "evenodd",
|
@@ -7378,7 +7379,7 @@ var PasswordStrengthIndicator = ({ strength }) => {
|
|
7378
7379
|
strong: "80%",
|
7379
7380
|
"very-strong": "100%"
|
7380
7381
|
}[currentStrengthLevel];
|
7381
|
-
return /* @__PURE__ */
|
7382
|
+
return /* @__PURE__ */ import_react44.default.createElement("div", { className: "hawa-mt-0.5 hawa-h-2 hawa-w-full hawa-rounded hawa-bg-gray-200" }, /* @__PURE__ */ import_react44.default.createElement(
|
7382
7383
|
"div",
|
7383
7384
|
{
|
7384
7385
|
className: `${strengthColors[currentStrengthLevel]} hawa-h-full hawa-rounded hawa-transition-all hawa-duration-300`,
|
@@ -7390,16 +7391,16 @@ var PasswordInput = ({
|
|
7390
7391
|
hidePopover,
|
7391
7392
|
...props
|
7392
7393
|
}) => {
|
7393
|
-
const [inputValue, setInputValue] = (0,
|
7394
|
-
const [isInputFocused, setIsInputFocused] = (0,
|
7395
|
-
const [currentStr, setCurrentStr] = (0,
|
7396
|
-
const [passwordVisible, setPasswordVisible] = (0,
|
7397
|
-
const [lengthCriteriaMet, setLengthCriteriaMet] = (0,
|
7398
|
-
const [numberCriteriaMet, setNumberCriteriaMet] = (0,
|
7399
|
-
const [specialCharCriteriaMet, setSpecialCharCriteriaMet] = (0,
|
7400
|
-
const [lowercaseCriteriaMet, setLowercaseCriteriaMet] = (0,
|
7401
|
-
const [uppercaseCriteriaMet, setUppercaseCriteriaMet] = (0,
|
7402
|
-
(0,
|
7394
|
+
const [inputValue, setInputValue] = (0, import_react44.useState)("");
|
7395
|
+
const [isInputFocused, setIsInputFocused] = (0, import_react44.useState)(false);
|
7396
|
+
const [currentStr, setCurrentStr] = (0, import_react44.useState)(0);
|
7397
|
+
const [passwordVisible, setPasswordVisible] = (0, import_react44.useState)(false);
|
7398
|
+
const [lengthCriteriaMet, setLengthCriteriaMet] = (0, import_react44.useState)(false);
|
7399
|
+
const [numberCriteriaMet, setNumberCriteriaMet] = (0, import_react44.useState)(false);
|
7400
|
+
const [specialCharCriteriaMet, setSpecialCharCriteriaMet] = (0, import_react44.useState)(false);
|
7401
|
+
const [lowercaseCriteriaMet, setLowercaseCriteriaMet] = (0, import_react44.useState)(false);
|
7402
|
+
const [uppercaseCriteriaMet, setUppercaseCriteriaMet] = (0, import_react44.useState)(false);
|
7403
|
+
(0, import_react44.useEffect)(() => {
|
7403
7404
|
const calculateStrength = () => {
|
7404
7405
|
let strengthScore = 0;
|
7405
7406
|
if (lengthCriteriaMet)
|
@@ -7438,7 +7439,7 @@ var PasswordInput = ({
|
|
7438
7439
|
setIsInputFocused(false);
|
7439
7440
|
};
|
7440
7441
|
const getCriteriaClass = (isMet) => isMet ? "hawa-flex hawa-flex-row hawa-gap-2 hawa-text-sm hawa-items-center hawa-text-green-500" : "hawa-flex hawa-flex-row hawa-gap-2 hawa-text-sm hawa-items-center hawa-text-red-600";
|
7441
|
-
return /* @__PURE__ */
|
7442
|
+
return /* @__PURE__ */ import_react44.default.createElement("div", null, /* @__PURE__ */ import_react44.default.createElement(
|
7442
7443
|
Popover,
|
7443
7444
|
{
|
7444
7445
|
width: "trigger",
|
@@ -7447,7 +7448,7 @@ var PasswordInput = ({
|
|
7447
7448
|
onOpenChange: setIsInputFocused,
|
7448
7449
|
triggerProps: { asChild: true },
|
7449
7450
|
contentProps: { onOpenAutoFocus: (e) => e.preventDefault() },
|
7450
|
-
trigger: /* @__PURE__ */
|
7451
|
+
trigger: /* @__PURE__ */ import_react44.default.createElement(
|
7451
7452
|
"div",
|
7452
7453
|
{
|
7453
7454
|
onClick: (e) => {
|
@@ -7457,7 +7458,7 @@ var PasswordInput = ({
|
|
7457
7458
|
}
|
7458
7459
|
}
|
7459
7460
|
},
|
7460
|
-
/* @__PURE__ */
|
7461
|
+
/* @__PURE__ */ import_react44.default.createElement(
|
7461
7462
|
Input,
|
7462
7463
|
{
|
7463
7464
|
width: "full",
|
@@ -7467,21 +7468,21 @@ var PasswordInput = ({
|
|
7467
7468
|
onFocus: handleInputFocus,
|
7468
7469
|
onBlur: handleInputBlur,
|
7469
7470
|
type: passwordVisible ? "text" : "password",
|
7470
|
-
endIcon: /* @__PURE__ */
|
7471
|
+
endIcon: /* @__PURE__ */ import_react44.default.createElement(
|
7471
7472
|
"div",
|
7472
7473
|
{
|
7473
7474
|
className: "hawa-cursor-pointer",
|
7474
7475
|
onClick: () => setPasswordVisible(!passwordVisible)
|
7475
7476
|
},
|
7476
|
-
passwordVisible ? /* @__PURE__ */
|
7477
|
+
passwordVisible ? /* @__PURE__ */ import_react44.default.createElement(EyeIcon, { className: "hawa-text-gray-500" }) : /* @__PURE__ */ import_react44.default.createElement(HiddenEyeIcon, { className: "hawa-text-gray-500" }),
|
7477
7478
|
" "
|
7478
7479
|
)
|
7479
7480
|
}
|
7480
7481
|
)
|
7481
7482
|
)
|
7482
7483
|
},
|
7483
|
-
/* @__PURE__ */
|
7484
|
-
), /* @__PURE__ */
|
7484
|
+
/* @__PURE__ */ import_react44.default.createElement("div", { className: "hawa-rounded hawa-p-2" }, /* @__PURE__ */ import_react44.default.createElement("ul", { className: "hawa-rounded hawa-p-2" }, /* @__PURE__ */ import_react44.default.createElement("li", { className: getCriteriaClass(lengthCriteriaMet) }, lengthCriteriaMet ? /* @__PURE__ */ import_react44.default.createElement(CheckMark, { size: "sm" }) : /* @__PURE__ */ import_react44.default.createElement(UncheckMark, { size: "sm" }), "At least 8 characters long"), /* @__PURE__ */ import_react44.default.createElement("li", { className: getCriteriaClass(numberCriteriaMet) }, numberCriteriaMet ? /* @__PURE__ */ import_react44.default.createElement(CheckMark, { size: "sm" }) : /* @__PURE__ */ import_react44.default.createElement(UncheckMark, { size: "sm" }), "At least 1 number"), /* @__PURE__ */ import_react44.default.createElement("li", { className: getCriteriaClass(specialCharCriteriaMet) }, specialCharCriteriaMet ? /* @__PURE__ */ import_react44.default.createElement(CheckMark, { size: "sm" }) : /* @__PURE__ */ import_react44.default.createElement(UncheckMark, { size: "sm" }), "At least 1 special character"), /* @__PURE__ */ import_react44.default.createElement("li", { className: getCriteriaClass(lowercaseCriteriaMet) }, lowercaseCriteriaMet ? /* @__PURE__ */ import_react44.default.createElement(CheckMark, { size: "sm" }) : /* @__PURE__ */ import_react44.default.createElement(UncheckMark, { size: "sm" }), "At least 1 lowercase letter"), /* @__PURE__ */ import_react44.default.createElement("li", { className: getCriteriaClass(uppercaseCriteriaMet) }, uppercaseCriteriaMet ? /* @__PURE__ */ import_react44.default.createElement(CheckMark, { size: "sm" }) : /* @__PURE__ */ import_react44.default.createElement(UncheckMark, { size: "sm" }), "At least 1 uppercase letter")))
|
7485
|
+
), /* @__PURE__ */ import_react44.default.createElement(PasswordStrengthIndicator, { strength: currentStr }));
|
7485
7486
|
};
|
7486
7487
|
|
7487
7488
|
// elements/slider/Slider.tsx
|
@@ -7596,12 +7597,12 @@ var Separator2 = ({
|
|
7596
7597
|
);
|
7597
7598
|
|
7598
7599
|
// elements/scrollIndicator/ScrollIndicator.tsx
|
7599
|
-
var
|
7600
|
+
var import_react45 = __toESM(require("react"));
|
7600
7601
|
var ScrollIndicator = ({
|
7601
7602
|
anchor,
|
7602
7603
|
inContainer = false
|
7603
7604
|
}) => {
|
7604
|
-
const [scrollPercentage, setScrollPercentage] = (0,
|
7605
|
+
const [scrollPercentage, setScrollPercentage] = (0, import_react45.useState)(0);
|
7605
7606
|
const onScroll = () => {
|
7606
7607
|
const scrollElement = anchor.current;
|
7607
7608
|
if (scrollElement) {
|
@@ -7612,7 +7613,7 @@ var ScrollIndicator = ({
|
|
7612
7613
|
setScrollPercentage(percentageScrolled);
|
7613
7614
|
}
|
7614
7615
|
};
|
7615
|
-
(0,
|
7616
|
+
(0, import_react45.useEffect)(() => {
|
7616
7617
|
if (!anchor.current)
|
7617
7618
|
return;
|
7618
7619
|
anchor.current.addEventListener("scroll", onScroll);
|
@@ -7621,7 +7622,7 @@ var ScrollIndicator = ({
|
|
7621
7622
|
(_a = anchor.current) == null ? void 0 : _a.removeEventListener("scroll", onScroll);
|
7622
7623
|
};
|
7623
7624
|
}, [anchor]);
|
7624
|
-
return /* @__PURE__ */
|
7625
|
+
return /* @__PURE__ */ import_react45.default.createElement(
|
7625
7626
|
"div",
|
7626
7627
|
{
|
7627
7628
|
style: {
|
@@ -7637,11 +7638,11 @@ var ScrollIndicator = ({
|
|
7637
7638
|
};
|
7638
7639
|
|
7639
7640
|
// elements/codeBlock/CodeBlock.tsx
|
7640
|
-
var
|
7641
|
+
var import_react46 = __toESM(require("react"));
|
7641
7642
|
var import_prism_react_renderer = require("prism-react-renderer");
|
7642
7643
|
(typeof global !== "undefined" ? global : window).Prism = import_prism_react_renderer.Prism;
|
7643
7644
|
require("prismjs/components/prism-bash");
|
7644
|
-
var CopyIcon = () => /* @__PURE__ */
|
7645
|
+
var CopyIcon = () => /* @__PURE__ */ import_react46.default.createElement(
|
7645
7646
|
"svg",
|
7646
7647
|
{
|
7647
7648
|
"aria-label": "Copy",
|
@@ -7654,8 +7655,8 @@ var CopyIcon = () => /* @__PURE__ */ import_react45.default.createElement(
|
|
7654
7655
|
height: "1em",
|
7655
7656
|
width: "1em"
|
7656
7657
|
},
|
7657
|
-
/* @__PURE__ */
|
7658
|
-
/* @__PURE__ */
|
7658
|
+
/* @__PURE__ */ import_react46.default.createElement("rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2" }),
|
7659
|
+
/* @__PURE__ */ import_react46.default.createElement("path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" })
|
7659
7660
|
);
|
7660
7661
|
var CodeBlock = ({
|
7661
7662
|
tabs,
|
@@ -7669,7 +7670,7 @@ var CodeBlock = ({
|
|
7669
7670
|
...props
|
7670
7671
|
}) => {
|
7671
7672
|
const clipboard = useClipboard();
|
7672
|
-
const [selectedTab, setSelectedTab] = (0,
|
7673
|
+
const [selectedTab, setSelectedTab] = (0, import_react46.useState)(0);
|
7673
7674
|
const theme = import_prism_react_renderer.themes.oceanicNext;
|
7674
7675
|
let widthStyles = {
|
7675
7676
|
full: "hawa-w-full",
|
@@ -7677,7 +7678,7 @@ var CodeBlock = ({
|
|
7677
7678
|
sm: "hawa-w-full hawa-max-w-sm",
|
7678
7679
|
xs: "hawa-w-full hawa-max-w-xs"
|
7679
7680
|
};
|
7680
|
-
return /* @__PURE__ */
|
7681
|
+
return /* @__PURE__ */ import_react46.default.createElement(
|
7681
7682
|
"div",
|
7682
7683
|
{
|
7683
7684
|
className: cn(
|
@@ -7686,7 +7687,7 @@ var CodeBlock = ({
|
|
7686
7687
|
classNames == null ? void 0 : classNames.root
|
7687
7688
|
)
|
7688
7689
|
},
|
7689
|
-
fileName && /* @__PURE__ */
|
7690
|
+
fileName && /* @__PURE__ */ import_react46.default.createElement(
|
7690
7691
|
"div",
|
7691
7692
|
{
|
7692
7693
|
className: cn(
|
@@ -7695,7 +7696,7 @@ var CodeBlock = ({
|
|
7695
7696
|
classNames == null ? void 0 : classNames.fileName
|
7696
7697
|
)
|
7697
7698
|
},
|
7698
|
-
/* @__PURE__ */
|
7699
|
+
/* @__PURE__ */ import_react46.default.createElement(
|
7699
7700
|
"div",
|
7700
7701
|
{
|
7701
7702
|
className: cn(
|
@@ -7705,7 +7706,7 @@ var CodeBlock = ({
|
|
7705
7706
|
fileName
|
7706
7707
|
)
|
7707
7708
|
),
|
7708
|
-
tabs && /* @__PURE__ */
|
7709
|
+
tabs && /* @__PURE__ */ import_react46.default.createElement(
|
7709
7710
|
"div",
|
7710
7711
|
{
|
7711
7712
|
className: cn(
|
@@ -7714,7 +7715,7 @@ var CodeBlock = ({
|
|
7714
7715
|
classNames == null ? void 0 : classNames.tabs
|
7715
7716
|
)
|
7716
7717
|
},
|
7717
|
-
tabs.map((tab, i) => /* @__PURE__ */
|
7718
|
+
tabs.map((tab, i) => /* @__PURE__ */ import_react46.default.createElement(
|
7718
7719
|
"div",
|
7719
7720
|
{
|
7720
7721
|
key: i,
|
@@ -7723,7 +7724,7 @@ var CodeBlock = ({
|
|
7723
7724
|
classNames == null ? void 0 : classNames.tab
|
7724
7725
|
)
|
7725
7726
|
},
|
7726
|
-
/* @__PURE__ */
|
7727
|
+
/* @__PURE__ */ import_react46.default.createElement(
|
7727
7728
|
"div",
|
7728
7729
|
{
|
7729
7730
|
onClick: () => setSelectedTab(i),
|
@@ -7735,7 +7736,7 @@ var CodeBlock = ({
|
|
7735
7736
|
)
|
7736
7737
|
))
|
7737
7738
|
),
|
7738
|
-
/* @__PURE__ */
|
7739
|
+
/* @__PURE__ */ import_react46.default.createElement(
|
7739
7740
|
"div",
|
7740
7741
|
{
|
7741
7742
|
className: cn(
|
@@ -7745,22 +7746,22 @@ var CodeBlock = ({
|
|
7745
7746
|
"hawa-overflow-y-auto"
|
7746
7747
|
)
|
7747
7748
|
},
|
7748
|
-
/* @__PURE__ */
|
7749
|
+
/* @__PURE__ */ import_react46.default.createElement(
|
7749
7750
|
"div",
|
7750
7751
|
{
|
7751
7752
|
className: cn(
|
7752
7753
|
"hawa-flex hawa-absolute hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-z-50 hawa-right-3 hawa-top-3"
|
7753
7754
|
)
|
7754
7755
|
},
|
7755
|
-
/* @__PURE__ */
|
7756
|
+
/* @__PURE__ */ import_react46.default.createElement(
|
7756
7757
|
Tooltip,
|
7757
7758
|
{
|
7758
7759
|
open: clipboard.copied,
|
7759
7760
|
side: "left",
|
7760
|
-
content: /* @__PURE__ */
|
7761
|
+
content: /* @__PURE__ */ import_react46.default.createElement("div", null, "Copied!"),
|
7761
7762
|
triggerProps: { asChild: true }
|
7762
7763
|
},
|
7763
|
-
/* @__PURE__ */
|
7764
|
+
/* @__PURE__ */ import_react46.default.createElement(
|
7764
7765
|
Button,
|
7765
7766
|
{
|
7766
7767
|
size: "smallIcon",
|
@@ -7768,18 +7769,18 @@ var CodeBlock = ({
|
|
7768
7769
|
variant: "outline",
|
7769
7770
|
className: "hawa-text-gray-200 hawa-opacity-50 dark:hawa-border-gray-200 dark:hover:hawa-border-gray-400"
|
7770
7771
|
},
|
7771
|
-
/* @__PURE__ */
|
7772
|
+
/* @__PURE__ */ import_react46.default.createElement(CopyIcon, null)
|
7772
7773
|
)
|
7773
7774
|
)
|
7774
7775
|
),
|
7775
|
-
/* @__PURE__ */
|
7776
|
+
/* @__PURE__ */ import_react46.default.createElement(
|
7776
7777
|
import_prism_react_renderer.Highlight,
|
7777
7778
|
{
|
7778
7779
|
theme,
|
7779
7780
|
code: tabs ? tabs[selectedTab].code : code || "",
|
7780
7781
|
language
|
7781
7782
|
},
|
7782
|
-
({ tokens, getLineProps, getTokenProps }) => /* @__PURE__ */
|
7783
|
+
({ tokens, getLineProps, getTokenProps }) => /* @__PURE__ */ import_react46.default.createElement(
|
7783
7784
|
"pre",
|
7784
7785
|
{
|
7785
7786
|
className: cn(
|
@@ -7789,7 +7790,7 @@ var CodeBlock = ({
|
|
7789
7790
|
wrapText && "hawa-text-wrap"
|
7790
7791
|
)
|
7791
7792
|
},
|
7792
|
-
tokens.map((line, i) => /* @__PURE__ */
|
7793
|
+
tokens.map((line, i) => /* @__PURE__ */ import_react46.default.createElement("div", { key: i, ...getLineProps({ line }) }, props.lineNumbers && /* @__PURE__ */ import_react46.default.createElement("span", { className: "hawa-mr-4" }, i + 1), line.map((token, key) => /* @__PURE__ */ import_react46.default.createElement("span", { key, ...getTokenProps({ token }) }))))
|
7793
7794
|
)
|
7794
7795
|
)
|
7795
7796
|
)
|
@@ -7797,7 +7798,7 @@ var CodeBlock = ({
|
|
7797
7798
|
};
|
7798
7799
|
|
7799
7800
|
// elements/carousel/Carousel.tsx
|
7800
|
-
var
|
7801
|
+
var import_react47 = __toESM(require("react"));
|
7801
7802
|
var import_embla_carousel_react2 = __toESM(require("embla-carousel-react"));
|
7802
7803
|
var Carousel = ({
|
7803
7804
|
items,
|
@@ -7813,8 +7814,8 @@ var Carousel = ({
|
|
7813
7814
|
direction,
|
7814
7815
|
loop: autoplay ? true : (options == null ? void 0 : options.loop) || false
|
7815
7816
|
});
|
7816
|
-
const [selectedIndex, setSelectedIndex] = (0,
|
7817
|
-
(0,
|
7817
|
+
const [selectedIndex, setSelectedIndex] = (0, import_react47.useState)(0);
|
7818
|
+
(0, import_react47.useEffect)(() => {
|
7818
7819
|
function selectHandler() {
|
7819
7820
|
const index = emblaApi == null ? void 0 : emblaApi.selectedScrollSnap();
|
7820
7821
|
setSelectedIndex(index || 0);
|
@@ -7824,7 +7825,7 @@ var Carousel = ({
|
|
7824
7825
|
emblaApi == null ? void 0 : emblaApi.off("select", selectHandler);
|
7825
7826
|
};
|
7826
7827
|
}, [emblaApi]);
|
7827
|
-
(0,
|
7828
|
+
(0, import_react47.useEffect)(() => {
|
7828
7829
|
let autoplayTimer;
|
7829
7830
|
if (autoplay && emblaApi) {
|
7830
7831
|
autoplayTimer = setInterval(() => {
|
@@ -7836,17 +7837,17 @@ var Carousel = ({
|
|
7836
7837
|
clearInterval(autoplayTimer);
|
7837
7838
|
};
|
7838
7839
|
}, [emblaApi, autoplay, autoplayInterval]);
|
7839
|
-
const length =
|
7840
|
+
const length = import_react47.default.Children.count(items);
|
7840
7841
|
const canScrollNext = !!(emblaApi == null ? void 0 : emblaApi.canScrollNext());
|
7841
7842
|
const canScrollPrev = !!(emblaApi == null ? void 0 : emblaApi.canScrollPrev());
|
7842
|
-
return /* @__PURE__ */
|
7843
|
+
return /* @__PURE__ */ import_react47.default.createElement("div", { className: " hawa-relative hawa-h-full" }, /* @__PURE__ */ import_react47.default.createElement("div", { className: "hawa-h-full hawa-overflow-hidden" }, /* @__PURE__ */ import_react47.default.createElement("div", { className: "hawa-h-full", ref: emblaRef }, /* @__PURE__ */ import_react47.default.createElement("div", { className: "hawa-flex hawa-h-full" }, items == null ? void 0 : items.map((item, i) => /* @__PURE__ */ import_react47.default.createElement(
|
7843
7844
|
"div",
|
7844
7845
|
{
|
7845
7846
|
key: i,
|
7846
7847
|
className: "hawa-flex hawa-h-full hawa-min-w-0 hawa-flex-[0_0_100%] hawa-items-center hawa-justify-center"
|
7847
7848
|
},
|
7848
7849
|
item
|
7849
|
-
))))), /* @__PURE__ */
|
7850
|
+
))))), /* @__PURE__ */ import_react47.default.createElement(
|
7850
7851
|
Dots,
|
7851
7852
|
{
|
7852
7853
|
direction,
|
@@ -7854,7 +7855,7 @@ var Carousel = ({
|
|
7854
7855
|
selectedIndex,
|
7855
7856
|
onDotClick: (index) => emblaApi == null ? void 0 : emblaApi.scrollTo(index)
|
7856
7857
|
}
|
7857
|
-
), showArrows && /* @__PURE__ */
|
7858
|
+
), showArrows && /* @__PURE__ */ import_react47.default.createElement(
|
7858
7859
|
CarouselControls,
|
7859
7860
|
{
|
7860
7861
|
canScrollNext,
|
@@ -7871,7 +7872,7 @@ var Dots = ({
|
|
7871
7872
|
direction
|
7872
7873
|
}) => {
|
7873
7874
|
const arr = new Array(itemsLength).fill(0);
|
7874
|
-
return /* @__PURE__ */
|
7875
|
+
return /* @__PURE__ */ import_react47.default.createElement(
|
7875
7876
|
"div",
|
7876
7877
|
{
|
7877
7878
|
dir: direction,
|
@@ -7879,7 +7880,7 @@ var Dots = ({
|
|
7879
7880
|
},
|
7880
7881
|
arr.map((_, index) => {
|
7881
7882
|
const selected = index === selectedIndex;
|
7882
|
-
return /* @__PURE__ */
|
7883
|
+
return /* @__PURE__ */ import_react47.default.createElement(
|
7883
7884
|
"div",
|
7884
7885
|
{
|
7885
7886
|
key: index,
|
@@ -7894,7 +7895,7 @@ var Dots = ({
|
|
7894
7895
|
);
|
7895
7896
|
};
|
7896
7897
|
var CarouselControls = (props) => {
|
7897
|
-
return /* @__PURE__ */
|
7898
|
+
return /* @__PURE__ */ import_react47.default.createElement("div", { className: "hawa-flex hawa-justify-end hawa-gap-2 " }, /* @__PURE__ */ import_react47.default.createElement(
|
7898
7899
|
"button",
|
7899
7900
|
{
|
7900
7901
|
onClick: () => props.canScrollPrev && props.onPrev(),
|
@@ -7905,7 +7906,7 @@ var CarouselControls = (props) => {
|
|
7905
7906
|
props.canScrollPrev && "hawa-bg-primary"
|
7906
7907
|
)
|
7907
7908
|
},
|
7908
|
-
/* @__PURE__ */
|
7909
|
+
/* @__PURE__ */ import_react47.default.createElement(
|
7909
7910
|
"svg",
|
7910
7911
|
{
|
7911
7912
|
"aria-label": "Chevron Right Icon",
|
@@ -7914,9 +7915,9 @@ var CarouselControls = (props) => {
|
|
7914
7915
|
viewBox: "0 0 16 16",
|
7915
7916
|
className: "hawa-h-2 hawa-w-2 hawa-shrink-0 hawa-rotate-180 hawa-transition-transform hawa-duration-200 "
|
7916
7917
|
},
|
7917
|
-
/* @__PURE__ */
|
7918
|
+
/* @__PURE__ */ import_react47.default.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" })
|
7918
7919
|
)
|
7919
|
-
), /* @__PURE__ */
|
7920
|
+
), /* @__PURE__ */ import_react47.default.createElement(
|
7920
7921
|
"button",
|
7921
7922
|
{
|
7922
7923
|
onClick: () => props.canScrollNext && props.onNext(),
|
@@ -7927,7 +7928,7 @@ var CarouselControls = (props) => {
|
|
7927
7928
|
props.canScrollNext && "hawa-bg-primary"
|
7928
7929
|
)
|
7929
7930
|
},
|
7930
|
-
/* @__PURE__ */
|
7931
|
+
/* @__PURE__ */ import_react47.default.createElement(
|
7931
7932
|
"svg",
|
7932
7933
|
{
|
7933
7934
|
"aria-label": "Chevron Right Icon",
|
@@ -7936,15 +7937,15 @@ var CarouselControls = (props) => {
|
|
7936
7937
|
viewBox: "0 0 16 16",
|
7937
7938
|
className: "hawa-h-2 hawa-w-2 hawa-shrink-0 hawa-transition-transform hawa-duration-200 "
|
7938
7939
|
},
|
7939
|
-
/* @__PURE__ */
|
7940
|
+
/* @__PURE__ */ import_react47.default.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" })
|
7940
7941
|
)
|
7941
7942
|
));
|
7942
7943
|
};
|
7943
7944
|
|
7944
7945
|
// elements/count/Count.tsx
|
7945
|
-
var
|
7946
|
+
var import_react48 = __toESM(require("react"));
|
7946
7947
|
var Count = (props) => {
|
7947
|
-
return /* @__PURE__ */
|
7948
|
+
return /* @__PURE__ */ import_react48.default.createElement("div", { className: "hawa-flex hawa-h-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-px-2" }, /* @__PURE__ */ import_react48.default.createElement("div", null, props.icon), /* @__PURE__ */ import_react48.default.createElement("div", { className: "hawa-text-sm" }, props.count));
|
7948
7949
|
};
|
7949
7950
|
|
7950
7951
|
// elements/toast/Toast.tsx
|
@@ -8085,11 +8086,11 @@ var ToastDescription = React68.forwardRef(({ className, size = "default", ...pro
|
|
8085
8086
|
ToastDescription.displayName = ToastPrimitives.Description.displayName;
|
8086
8087
|
|
8087
8088
|
// elements/toaster/Toaster.tsx
|
8088
|
-
var
|
8089
|
+
var import_react49 = __toESM(require("react"));
|
8089
8090
|
function Toaster(props) {
|
8090
8091
|
var _a;
|
8091
8092
|
let isRTL = props.direction === "rtl";
|
8092
|
-
return /* @__PURE__ */
|
8093
|
+
return /* @__PURE__ */ import_react49.default.createElement(ToastProvider, { swipeDirection: isRTL ? "left" : "right" }, (_a = props.toasts) == null ? void 0 : _a.map(function({
|
8093
8094
|
id,
|
8094
8095
|
title,
|
8095
8096
|
description,
|
@@ -8097,7 +8098,7 @@ function Toaster(props) {
|
|
8097
8098
|
action,
|
8098
8099
|
...toastProps
|
8099
8100
|
}) {
|
8100
|
-
return /* @__PURE__ */
|
8101
|
+
return /* @__PURE__ */ import_react49.default.createElement(Toast, { direction: props.direction, key: id, ...toastProps }, /* @__PURE__ */ import_react49.default.createElement(
|
8101
8102
|
"div",
|
8102
8103
|
{
|
8103
8104
|
className: cn(
|
@@ -8105,9 +8106,9 @@ function Toaster(props) {
|
|
8105
8106
|
action && "hawa-justify-between"
|
8106
8107
|
)
|
8107
8108
|
},
|
8108
|
-
/* @__PURE__ */
|
8109
|
-
/* @__PURE__ */
|
8110
|
-
/* @__PURE__ */
|
8109
|
+
/* @__PURE__ */ import_react49.default.createElement("div", { className: "hawa-flex hawa-h-full hawa-flex-col hawa-p-2 hawa-pe-0" }, /* @__PURE__ */ import_react49.default.createElement(ToastClose, null)),
|
8110
|
+
/* @__PURE__ */ import_react49.default.createElement("div", { className: "hawa-mx-0 hawa-h-auto hawa-max-h-full hawa-w-px hawa-bg-primary-foreground/10" }),
|
8111
|
+
/* @__PURE__ */ import_react49.default.createElement(
|
8111
8112
|
"div",
|
8112
8113
|
{
|
8113
8114
|
className: cn(
|
@@ -8115,11 +8116,11 @@ function Toaster(props) {
|
|
8115
8116
|
{ "hawa-p-4": size === "default", "hawa-p-2": size === "sm" }
|
8116
8117
|
)
|
8117
8118
|
},
|
8118
|
-
/* @__PURE__ */
|
8119
|
-
action && /* @__PURE__ */
|
8119
|
+
/* @__PURE__ */ import_react49.default.createElement("div", { className: "hawa-grid hawa-gap-1 hawa-text-start" }, title && /* @__PURE__ */ import_react49.default.createElement(ToastTitle, { size }, title), description && /* @__PURE__ */ import_react49.default.createElement(ToastDescription, { size }, description)),
|
8120
|
+
action && /* @__PURE__ */ import_react49.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-justify-center" }, action)
|
8120
8121
|
)
|
8121
8122
|
));
|
8122
|
-
}), /* @__PURE__ */
|
8123
|
+
}), /* @__PURE__ */ import_react49.default.createElement(
|
8123
8124
|
ToastViewport,
|
8124
8125
|
{
|
8125
8126
|
className: cn("hawa-gap-2", isRTL && "hawa-fixed hawa-left-0")
|
@@ -8128,20 +8129,20 @@ function Toaster(props) {
|
|
8128
8129
|
}
|
8129
8130
|
|
8130
8131
|
// elements/destroyableCard/DestroyableCard.tsx
|
8131
|
-
var
|
8132
|
+
var import_react50 = __toESM(require("react"));
|
8132
8133
|
var DestroyableCard = ({
|
8133
8134
|
position = "bottom-right",
|
8134
8135
|
fixed,
|
8135
8136
|
direction,
|
8136
8137
|
...props
|
8137
8138
|
}) => {
|
8138
|
-
const [closed, setClosed] = (0,
|
8139
|
-
const popUpRef = (0,
|
8139
|
+
const [closed, setClosed] = (0, import_react50.useState)(false);
|
8140
|
+
const popUpRef = (0, import_react50.useRef)(null);
|
8140
8141
|
const boxPosition = {
|
8141
8142
|
"bottom-right": "hawa-right-4 hawa-bottom-4",
|
8142
8143
|
"bottom-left": "hawa-left-4 hawa-bottom-4"
|
8143
8144
|
};
|
8144
|
-
return /* @__PURE__ */
|
8145
|
+
return /* @__PURE__ */ import_react50.default.createElement(
|
8145
8146
|
"div",
|
8146
8147
|
{
|
8147
8148
|
className: cn(
|
@@ -8150,7 +8151,7 @@ var DestroyableCard = ({
|
|
8150
8151
|
),
|
8151
8152
|
ref: popUpRef
|
8152
8153
|
},
|
8153
|
-
/* @__PURE__ */
|
8154
|
+
/* @__PURE__ */ import_react50.default.createElement(
|
8154
8155
|
Card,
|
8155
8156
|
{
|
8156
8157
|
className: cn(
|
@@ -8159,7 +8160,7 @@ var DestroyableCard = ({
|
|
8159
8160
|
),
|
8160
8161
|
dir: direction
|
8161
8162
|
},
|
8162
|
-
/* @__PURE__ */
|
8163
|
+
/* @__PURE__ */ import_react50.default.createElement(
|
8163
8164
|
"button",
|
8164
8165
|
{
|
8165
8166
|
type: "button",
|
@@ -8178,7 +8179,7 @@ var DestroyableCard = ({
|
|
8178
8179
|
}, 200);
|
8179
8180
|
}
|
8180
8181
|
},
|
8181
|
-
/* @__PURE__ */
|
8182
|
+
/* @__PURE__ */ import_react50.default.createElement(
|
8182
8183
|
"svg",
|
8183
8184
|
{
|
8184
8185
|
"aria-hidden": "true",
|
@@ -8186,7 +8187,7 @@ var DestroyableCard = ({
|
|
8186
8187
|
fill: "currentColor",
|
8187
8188
|
viewBox: "0 0 20 20"
|
8188
8189
|
},
|
8189
|
-
/* @__PURE__ */
|
8190
|
+
/* @__PURE__ */ import_react50.default.createElement(
|
8190
8191
|
"path",
|
8191
8192
|
{
|
8192
8193
|
fillRule: "evenodd",
|
@@ -8196,13 +8197,13 @@ var DestroyableCard = ({
|
|
8196
8197
|
)
|
8197
8198
|
)
|
8198
8199
|
),
|
8199
|
-
/* @__PURE__ */
|
8200
|
+
/* @__PURE__ */ import_react50.default.createElement(CardContent, { headless: true }, props.children)
|
8200
8201
|
)
|
8201
8202
|
);
|
8202
8203
|
};
|
8203
8204
|
|
8204
8205
|
// elements/interfaceSettings/InterfaceSettings.tsx
|
8205
|
-
var
|
8206
|
+
var import_react51 = __toESM(require("react"));
|
8206
8207
|
var InterfaceSettings = ({
|
8207
8208
|
orientation = "horizontal",
|
8208
8209
|
width = "default",
|
@@ -8210,13 +8211,13 @@ var InterfaceSettings = ({
|
|
8210
8211
|
handleLanguage,
|
8211
8212
|
...props
|
8212
8213
|
}) => {
|
8213
|
-
const [color, setColor] = (0,
|
8214
|
-
const [language, setLanguage] = (0,
|
8214
|
+
const [color, setColor] = (0, import_react51.useState)(props.currentColorMode);
|
8215
|
+
const [language, setLanguage] = (0, import_react51.useState)(props.currentLanguage);
|
8215
8216
|
let orientationStyle = {
|
8216
8217
|
horizontal: "hawa-flex hawa-flex-row hawa-justify-between",
|
8217
8218
|
vertical: "hawa-flex hawa-flex-col hawa-items-center hawa-gap-2"
|
8218
8219
|
};
|
8219
|
-
return /* @__PURE__ */
|
8220
|
+
return /* @__PURE__ */ import_react51.default.createElement("div", { className: cn(orientationStyle[orientation]) }, /* @__PURE__ */ import_react51.default.createElement(
|
8220
8221
|
Radio,
|
8221
8222
|
{
|
8222
8223
|
name: "language",
|
@@ -8234,7 +8235,7 @@ var InterfaceSettings = ({
|
|
8234
8235
|
{ value: "en", label: "English" }
|
8235
8236
|
]
|
8236
8237
|
}
|
8237
|
-
), /* @__PURE__ */
|
8238
|
+
), /* @__PURE__ */ import_react51.default.createElement(
|
8238
8239
|
Radio,
|
8239
8240
|
{
|
8240
8241
|
name: "theme",
|
@@ -8250,7 +8251,7 @@ var InterfaceSettings = ({
|
|
8250
8251
|
options: [
|
8251
8252
|
{
|
8252
8253
|
value: "light",
|
8253
|
-
label: /* @__PURE__ */
|
8254
|
+
label: /* @__PURE__ */ import_react51.default.createElement(
|
8254
8255
|
"svg",
|
8255
8256
|
{
|
8256
8257
|
width: "15",
|
@@ -8260,7 +8261,7 @@ var InterfaceSettings = ({
|
|
8260
8261
|
xmlns: "http://www.w3.org/2000/svg",
|
8261
8262
|
className: "hawa-h-[1.2rem] hawa-w-[1.2rem] hawa-rotate-0 hawa-scale-100 hawa-transition-all dark:hawa--rotate-90"
|
8262
8263
|
},
|
8263
|
-
/* @__PURE__ */
|
8264
|
+
/* @__PURE__ */ import_react51.default.createElement(
|
8264
8265
|
"path",
|
8265
8266
|
{
|
8266
8267
|
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",
|
@@ -8271,7 +8272,7 @@ var InterfaceSettings = ({
|
|
8271
8272
|
},
|
8272
8273
|
{
|
8273
8274
|
value: "dark",
|
8274
|
-
label: /* @__PURE__ */
|
8275
|
+
label: /* @__PURE__ */ import_react51.default.createElement(
|
8275
8276
|
"svg",
|
8276
8277
|
{
|
8277
8278
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -8282,7 +8283,7 @@ var InterfaceSettings = ({
|
|
8282
8283
|
stroke: "currentColor",
|
8283
8284
|
className: "hawa-h-[1.2rem] hawa-w-[1.2rem] hawa-transition-all dark:hawa-rotate-0 dark:hawa-scale-100"
|
8284
8285
|
},
|
8285
|
-
/* @__PURE__ */
|
8286
|
+
/* @__PURE__ */ import_react51.default.createElement("path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z" })
|
8286
8287
|
)
|
8287
8288
|
}
|
8288
8289
|
]
|
@@ -8291,14 +8292,14 @@ var InterfaceSettings = ({
|
|
8291
8292
|
};
|
8292
8293
|
|
8293
8294
|
// elements/phoneMockup/PhoneMockup.tsx
|
8294
|
-
var
|
8295
|
+
var import_react52 = __toESM(require("react"));
|
8295
8296
|
var PhoneMockup = ({
|
8296
8297
|
children,
|
8297
8298
|
upperOverlayGradiant,
|
8298
8299
|
lowerOverlayGradiant,
|
8299
8300
|
phone,
|
8300
8301
|
hideButtons
|
8301
|
-
}) => /* @__PURE__ */
|
8302
|
+
}) => /* @__PURE__ */ import_react52.default.createElement("div", { className: "hawa-relative hawa-mx-auto hawa-h-[600px] hawa-w-[300px] hawa-rounded-[2.5rem] hawa-border-[14px] hawa-border-gray-800 hawa-bg-gray-800 hawa-dark:border-gray-800" }, !hideButtons && /* @__PURE__ */ import_react52.default.createElement(import_react52.default.Fragment, null, /* @__PURE__ */ import_react52.default.createElement("div", { className: "hawa-absolute hawa--left-[16px] hawa-top-[72px] hawa-h-[32px] hawa-w-[3px] hawa-rounded-l-lg hawa-bg-gray-800 hawa-dark:bg-gray-800" }), /* @__PURE__ */ import_react52.default.createElement("div", { className: "hawa-absolute hawa--left-[16px] hawa-top-[124px] hawa-h-[46px] hawa-w-[3px] hawa-rounded-l-lg hawa-bg-gray-800 hawa-dark:bg-gray-800" }), /* @__PURE__ */ import_react52.default.createElement("div", { className: "hawa-absolute hawa--left-[16px] hawa-top-[178px] hawa-h-[46px] hawa-w-[3px] hawa-rounded-l-lg hawa-bg-gray-800 hawa-dark:bg-gray-800" }), /* @__PURE__ */ import_react52.default.createElement("div", { className: "hawa-absolute hawa--right-[16px] hawa-top-[142px] hawa-h-[64px] hawa-w-[3px] hawa-rounded-r-lg hawa-bg-gray-800 hawa-dark:bg-gray-800" })), /* @__PURE__ */ import_react52.default.createElement("div", { className: "no-scrollbar hawa-left-0 hawa-h-[572px] hawa-w-[272px] hawa-overflow-y-scroll hawa-rounded-[2rem] hawa-bg-white hawa-[clip-path:inset(0px_-1px_0px_0px_round_2rem)] hawa-dark:bg-gray-800" }, children), upperOverlayGradiant && /* @__PURE__ */ import_react52.default.createElement("div", { className: "hawa-pointer-events-none hawa-absolute hawa-left-0 hawa-top-0 hawa-h-[72px] hawa-w-[272px] hawa-rounded-t-[2rem] hawa-bg-gradient-to-t hawa-from-transparent hawa-to-black hawa-opacity-50 hawa-[clip-path:inset(0px_0px_0px_0px_round_0rem)]" }), lowerOverlayGradiant && /* @__PURE__ */ import_react52.default.createElement("div", { className: "hawa-pointer-events-none hawa-absolute hawa-bottom-0 hawa-left-0 hawa-h-[72px] hawa-w-[272px] hawa-rounded-b-[2rem] hawa-bg-gradient-to-t hawa-from-black hawa-to-transparent hawa-opacity-50 hawa-[clip-path:inset(0px_0px_0px_0px_round_0rem)]" }));
|
8302
8303
|
// Annotate the CommonJS export names for ESM import in node:
|
8303
8304
|
0 && (module.exports = {
|
8304
8305
|
Accordion,
|