@sikka/hawa 0.35.1-next → 0.35.3-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/{DropdownMenu-K3ztliYc.d.mts → DropdownMenu-BYiPSEYy.d.mts} +1 -0
- package/dist/{DropdownMenu-CJblb-9q.d.ts → DropdownMenu-ChxqadLu.d.ts} +1 -0
- 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 +74 -63
- package/dist/appLayout/index.js.map +1 -1
- package/dist/appLayout/index.mjs +16 -5
- package/dist/appLayout/index.mjs.map +1 -1
- package/dist/appTopbar/index.js +10 -1
- package/dist/appTopbar/index.js.map +1 -1
- package/dist/appTopbar/index.mjs +10 -1
- package/dist/appTopbar/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.d.mts +1 -1
- package/dist/blocks/index.d.ts +1 -1
- package/dist/blocks/index.js +521 -511
- 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-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-IDKXEJET.mjs → chunk-OW3WFRFQ.mjs} +43 -33
- package/dist/{chunk-XFRJ62W3.mjs → chunk-OWYGADJZ.mjs} +1 -1
- package/dist/{chunk-L56XQRQI.mjs → chunk-WABHQMUI.mjs} +1 -1
- package/dist/{chunk-DFWFQWWT.mjs → chunk-YNEQBAQC.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 +48 -38
- package/dist/dataTable/index.js.map +1 -1
- package/dist/dataTable/index.mjs +11 -1
- package/dist/dataTable/index.mjs.map +1 -1
- package/dist/datePicker/index.js +33 -32
- package/dist/datePicker/index.js.map +1 -1
- package/dist/datePicker/index.mjs +1 -0
- 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/dropdownMenu/index.d.mts +1 -0
- package/dist/dropdownMenu/index.d.ts +1 -0
- package/dist/dropdownMenu/index.js +10 -1
- package/dist/dropdownMenu/index.js.map +1 -1
- package/dist/dropdownMenu/index.mjs +10 -1
- package/dist/dropdownMenu/index.mjs.map +1 -1
- package/dist/elements/index.d.mts +1 -1
- package/dist/elements/index.d.ts +1 -1
- package/dist/elements/index.js +441 -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.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +881 -870
- package/dist/index.mjs +214 -203
- package/dist/layout/index.d.mts +1 -1
- package/dist/layout/index.d.ts +1 -1
- package/dist/layout/index.js +196 -185
- package/dist/layout/index.mjs +3 -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 +69 -59
- package/dist/splitButton/index.js.map +1 -1
- package/dist/splitButton/index.mjs +46 -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(
|
@@ -813,6 +813,7 @@ var DropdownMenu = ({
|
|
813
813
|
side,
|
814
814
|
className,
|
815
815
|
triggerClassname,
|
816
|
+
triggerProps,
|
816
817
|
align,
|
817
818
|
alignOffset,
|
818
819
|
onItemSelect,
|
@@ -833,10 +834,10 @@ var DropdownMenu = ({
|
|
833
834
|
default: "hawa-px-2 hawa-py-3 ",
|
834
835
|
sm: "hawa-text-xs hawa-px-1.5 hawa-py-1.5 "
|
835
836
|
};
|
836
|
-
let [values, setValues] =
|
837
|
+
let [values, setValues] = React5.useState(
|
837
838
|
items.map((item) => item.currentOption)
|
838
839
|
);
|
839
|
-
return /* @__PURE__ */
|
840
|
+
return /* @__PURE__ */ React5.createElement(
|
840
841
|
DropdownMenuRoot,
|
841
842
|
{
|
842
843
|
onOpenChange,
|
@@ -844,8 +845,16 @@ var DropdownMenu = ({
|
|
844
845
|
modal: false,
|
845
846
|
dir: direction
|
846
847
|
},
|
847
|
-
/* @__PURE__ */
|
848
|
-
|
848
|
+
/* @__PURE__ */ React5.createElement(
|
849
|
+
DropdownMenuTrigger,
|
850
|
+
{
|
851
|
+
asChild: true,
|
852
|
+
className: triggerClassname,
|
853
|
+
...triggerProps
|
854
|
+
},
|
855
|
+
trigger
|
856
|
+
),
|
857
|
+
/* @__PURE__ */ React5.createElement(DropdownMenuPortal, null, /* @__PURE__ */ React5.createElement(
|
849
858
|
DropdownMenuContent,
|
850
859
|
{
|
851
860
|
side,
|
@@ -866,12 +875,12 @@ var DropdownMenu = ({
|
|
866
875
|
var _a;
|
867
876
|
const ItemLinkComponent = item.slug ? LinkComponent : "a";
|
868
877
|
if (item.itemType === "separator") {
|
869
|
-
return /* @__PURE__ */
|
878
|
+
return /* @__PURE__ */ React5.createElement(DropdownMenuSeparator, { key: index });
|
870
879
|
} else if (item.itemType === "label") {
|
871
|
-
return /* @__PURE__ */
|
880
|
+
return /* @__PURE__ */ React5.createElement(DropdownMenuLabel, { key: index }, item.label);
|
872
881
|
} else if (item.itemType === "radio") {
|
873
882
|
let dd = item.currentOption;
|
874
|
-
return /* @__PURE__ */
|
883
|
+
return /* @__PURE__ */ React5.createElement(DropdownMenuSub, { key: index }, /* @__PURE__ */ React5.createElement(
|
875
884
|
DropdownMenuSubTrigger,
|
876
885
|
{
|
877
886
|
dir: direction,
|
@@ -879,7 +888,7 @@ var DropdownMenu = ({
|
|
879
888
|
},
|
880
889
|
item.icon && item.icon,
|
881
890
|
item.label && item.label
|
882
|
-
), /* @__PURE__ */
|
891
|
+
), /* @__PURE__ */ React5.createElement(DropdownMenuSubContent, null, /* @__PURE__ */ React5.createElement(
|
883
892
|
DropdownMenuRadioGroup,
|
884
893
|
{
|
885
894
|
value: values[index],
|
@@ -893,12 +902,12 @@ var DropdownMenu = ({
|
|
893
902
|
}
|
894
903
|
}
|
895
904
|
},
|
896
|
-
(_a = item.options) == null ? void 0 : _a.map((opt, i) => /* @__PURE__ */
|
905
|
+
(_a = item.options) == null ? void 0 : _a.map((opt, i) => /* @__PURE__ */ React5.createElement(DropdownMenuRadioItem, { key: i, value: opt.value }, opt.label))
|
897
906
|
)));
|
898
907
|
} else if (item.itemType === "custom") {
|
899
|
-
return /* @__PURE__ */
|
908
|
+
return /* @__PURE__ */ React5.createElement("div", { key: index }, item.content);
|
900
909
|
} else {
|
901
|
-
return item.subitems ? /* @__PURE__ */
|
910
|
+
return item.subitems ? /* @__PURE__ */ React5.createElement(DropdownMenuSub, { key: index }, /* @__PURE__ */ React5.createElement(
|
902
911
|
DropdownMenuSubTrigger,
|
903
912
|
{
|
904
913
|
dir: direction,
|
@@ -906,9 +915,9 @@ var DropdownMenu = ({
|
|
906
915
|
},
|
907
916
|
item.icon && item.icon,
|
908
917
|
item.label && item.label
|
909
|
-
), /* @__PURE__ */
|
918
|
+
), /* @__PURE__ */ React5.createElement(DropdownMenuPortal, null, /* @__PURE__ */ React5.createElement(DropdownMenuSubContent, null, item.subitems.map((subitem, subIndex) => {
|
910
919
|
const SubitemLinkComponent = subitem.slug ? LinkComponent : "a";
|
911
|
-
return /* @__PURE__ */
|
920
|
+
return /* @__PURE__ */ React5.createElement(
|
912
921
|
DropdownMenuItem,
|
913
922
|
{
|
914
923
|
key: subIndex,
|
@@ -937,7 +946,7 @@ var DropdownMenu = ({
|
|
937
946
|
subitem.icon && subitem.icon,
|
938
947
|
subitem.label && subitem.label
|
939
948
|
);
|
940
|
-
})))) : /* @__PURE__ */
|
949
|
+
})))) : /* @__PURE__ */ React5.createElement(
|
941
950
|
DropdownMenuItem,
|
942
951
|
{
|
943
952
|
LinkComponent: ItemLinkComponent,
|
@@ -990,18 +999,18 @@ var DropdownMenu = ({
|
|
990
999
|
);
|
991
1000
|
};
|
992
1001
|
var DropdownMenuRadio = (props) => {
|
993
|
-
return /* @__PURE__ */
|
1002
|
+
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
1003
|
DropdownMenuRadioGroup,
|
995
1004
|
{
|
996
1005
|
value: props.value,
|
997
1006
|
onValueChange: props.onValueChange
|
998
1007
|
},
|
999
|
-
props.options.map((opt, i) => /* @__PURE__ */
|
1008
|
+
props.options.map((opt, i) => /* @__PURE__ */ React5.createElement(DropdownMenuRadioItem, { key: i, value: opt.value }, opt.label))
|
1000
1009
|
)));
|
1001
1010
|
};
|
1002
1011
|
|
1003
1012
|
// elements/accordion/Accordion.tsx
|
1004
|
-
var
|
1013
|
+
var React9 = __toESM(require("react"));
|
1005
1014
|
var AccordionPrimitive3 = __toESM(require("@radix-ui/react-accordion"));
|
1006
1015
|
|
1007
1016
|
// elements/chip/Chip.tsx
|
@@ -1086,9 +1095,9 @@ var Chip = import_react4.default.forwardRef(
|
|
1086
1095
|
);
|
1087
1096
|
|
1088
1097
|
// elements/accordion/AccordionContent.tsx
|
1089
|
-
var
|
1098
|
+
var React7 = __toESM(require("react"));
|
1090
1099
|
var AccordionPrimitive = __toESM(require("@radix-ui/react-accordion"));
|
1091
|
-
var AccordionContent =
|
1100
|
+
var AccordionContent = React7.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React7.createElement(
|
1092
1101
|
AccordionPrimitive.Content,
|
1093
1102
|
{
|
1094
1103
|
ref,
|
@@ -1098,14 +1107,14 @@ var AccordionContent = React8.forwardRef(({ className, children, ...props }, ref
|
|
1098
1107
|
) : className,
|
1099
1108
|
...props
|
1100
1109
|
},
|
1101
|
-
/* @__PURE__ */
|
1110
|
+
/* @__PURE__ */ React7.createElement("div", { className: "hawa-bg-background hawa-p-4" }, children)
|
1102
1111
|
));
|
1103
1112
|
AccordionContent.displayName = AccordionPrimitive.Content.displayName;
|
1104
1113
|
|
1105
1114
|
// elements/accordion/AccordionTrigger.tsx
|
1106
|
-
var
|
1115
|
+
var React8 = __toESM(require("react"));
|
1107
1116
|
var AccordionPrimitive2 = __toESM(require("@radix-ui/react-accordion"));
|
1108
|
-
var AccordionTrigger =
|
1117
|
+
var AccordionTrigger = React8.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React8.createElement(AccordionPrimitive2.Header, { className: "hawa-flex" }, /* @__PURE__ */ React8.createElement(
|
1109
1118
|
AccordionPrimitive2.Trigger,
|
1110
1119
|
{
|
1111
1120
|
ref,
|
@@ -1117,7 +1126,7 @@ var AccordionTrigger = React9.forwardRef(({ className, children, ...props }, ref
|
|
1117
1126
|
...props
|
1118
1127
|
},
|
1119
1128
|
children,
|
1120
|
-
!props.hideArrow && /* @__PURE__ */
|
1129
|
+
!props.hideArrow && /* @__PURE__ */ React8.createElement(
|
1121
1130
|
"svg",
|
1122
1131
|
{
|
1123
1132
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -1131,13 +1140,13 @@ var AccordionTrigger = React9.forwardRef(({ className, children, ...props }, ref
|
|
1131
1140
|
strokeLinejoin: "round",
|
1132
1141
|
className: "hawa-icon hawa-shrink-0 hawa-transition-transform hawa-duration-200"
|
1133
1142
|
},
|
1134
|
-
/* @__PURE__ */
|
1143
|
+
/* @__PURE__ */ React8.createElement("path", { d: "m6 9 6 6 6-6" })
|
1135
1144
|
)
|
1136
1145
|
)));
|
1137
1146
|
AccordionTrigger.displayName = AccordionPrimitive2.Trigger.displayName;
|
1138
1147
|
|
1139
1148
|
// elements/accordion/Accordion.tsx
|
1140
|
-
var Accordion =
|
1149
|
+
var Accordion = React9.forwardRef(
|
1141
1150
|
({
|
1142
1151
|
items,
|
1143
1152
|
design = "default",
|
@@ -1146,7 +1155,7 @@ var Accordion = React10.forwardRef(
|
|
1146
1155
|
contentclassNames,
|
1147
1156
|
className,
|
1148
1157
|
...props
|
1149
|
-
}, ref) => /* @__PURE__ */
|
1158
|
+
}, ref) => /* @__PURE__ */ React9.createElement(AccordionPrimitive3.Root, { type: props.type, collapsible: true }, /* @__PURE__ */ React9.createElement(
|
1150
1159
|
"div",
|
1151
1160
|
{
|
1152
1161
|
className: cn("hawa-flex hawa-flex-col", {
|
@@ -1154,7 +1163,7 @@ var Accordion = React10.forwardRef(
|
|
1154
1163
|
"hawa-gap-0": design === "default"
|
1155
1164
|
})
|
1156
1165
|
},
|
1157
|
-
items.map((item, index) => /* @__PURE__ */
|
1166
|
+
items.map((item, index) => /* @__PURE__ */ React9.createElement(
|
1158
1167
|
AccordionPrimitive3.Item,
|
1159
1168
|
{
|
1160
1169
|
disabled: item.disabled || false,
|
@@ -1162,7 +1171,7 @@ var Accordion = React10.forwardRef(
|
|
1162
1171
|
key: index,
|
1163
1172
|
value: `item-${index}`
|
1164
1173
|
},
|
1165
|
-
/* @__PURE__ */
|
1174
|
+
/* @__PURE__ */ React9.createElement(
|
1166
1175
|
AccordionTrigger,
|
1167
1176
|
{
|
1168
1177
|
disabled: item.disabled || false,
|
@@ -1175,7 +1184,7 @@ var Accordion = React10.forwardRef(
|
|
1175
1184
|
triggerclassNames
|
1176
1185
|
)
|
1177
1186
|
},
|
1178
|
-
/* @__PURE__ */
|
1187
|
+
/* @__PURE__ */ React9.createElement(
|
1179
1188
|
"span",
|
1180
1189
|
{
|
1181
1190
|
className: cn(
|
@@ -1185,10 +1194,10 @@ var Accordion = React10.forwardRef(
|
|
1185
1194
|
},
|
1186
1195
|
item.trigger,
|
1187
1196
|
" ",
|
1188
|
-
item.chip && /* @__PURE__ */
|
1197
|
+
item.chip && /* @__PURE__ */ React9.createElement(Chip, { ...item.chip })
|
1189
1198
|
)
|
1190
1199
|
),
|
1191
|
-
/* @__PURE__ */
|
1200
|
+
/* @__PURE__ */ React9.createElement(
|
1192
1201
|
AccordionContent,
|
1193
1202
|
{
|
1194
1203
|
"aria-disabled": item.disabled || false,
|
@@ -1208,9 +1217,9 @@ var Accordion = React10.forwardRef(
|
|
1208
1217
|
Accordion.displayName = "Accordion";
|
1209
1218
|
|
1210
1219
|
// elements/accordion/AccordionItem.tsx
|
1211
|
-
var
|
1220
|
+
var React10 = __toESM(require("react"));
|
1212
1221
|
var AccordionPrimitive4 = __toESM(require("@radix-ui/react-accordion"));
|
1213
|
-
var AccordionItem =
|
1222
|
+
var AccordionItem = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React10.createElement(AccordionPrimitive4.Item, { ref, className: cn(className), ...props }));
|
1214
1223
|
AccordionItem.displayName = "AccordionItem";
|
1215
1224
|
|
1216
1225
|
// elements/accordion/AccordionRoot.tsx
|
@@ -1571,13 +1580,13 @@ var Logos = {
|
|
1571
1580
|
};
|
1572
1581
|
|
1573
1582
|
// elements/navigationMenu/NavigationMenu.tsx
|
1574
|
-
var
|
1583
|
+
var React12 = __toESM(require("react"));
|
1575
1584
|
var NavigationMenuPrimitive = __toESM(require("@radix-ui/react-navigation-menu"));
|
1576
1585
|
var import_class_variance_authority = require("class-variance-authority");
|
1577
1586
|
var navigationMenuTriggerStyle = (0, import_class_variance_authority.cva)(
|
1578
1587
|
"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
1588
|
);
|
1580
|
-
var NavigationMenuRoot =
|
1589
|
+
var NavigationMenuRoot = React12.forwardRef(({ className, children, viewportClassNames, ...props }, ref) => /* @__PURE__ */ React12.createElement(
|
1581
1590
|
NavigationMenuPrimitive.Root,
|
1582
1591
|
{
|
1583
1592
|
ref,
|
@@ -1589,9 +1598,9 @@ var NavigationMenuRoot = React13.forwardRef(({ className, children, viewportClas
|
|
1589
1598
|
...props
|
1590
1599
|
},
|
1591
1600
|
children,
|
1592
|
-
/* @__PURE__ */
|
1601
|
+
/* @__PURE__ */ React12.createElement(NavigationMenuViewport, { className: viewportClassNames })
|
1593
1602
|
));
|
1594
|
-
var NavigationMenuList =
|
1603
|
+
var NavigationMenuList = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React12.createElement(
|
1595
1604
|
NavigationMenuPrimitive.List,
|
1596
1605
|
{
|
1597
1606
|
ref,
|
@@ -1602,7 +1611,7 @@ var NavigationMenuList = React13.forwardRef(({ className, ...props }, ref) => /*
|
|
1602
1611
|
...props
|
1603
1612
|
}
|
1604
1613
|
));
|
1605
|
-
var NavigationMenuTrigger =
|
1614
|
+
var NavigationMenuTrigger = React12.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React12.createElement(
|
1606
1615
|
NavigationMenuPrimitive.Trigger,
|
1607
1616
|
{
|
1608
1617
|
ref,
|
@@ -1610,7 +1619,7 @@ var NavigationMenuTrigger = React13.forwardRef(({ className, children, ...props
|
|
1610
1619
|
...props
|
1611
1620
|
},
|
1612
1621
|
children,
|
1613
|
-
/* @__PURE__ */
|
1622
|
+
/* @__PURE__ */ React12.createElement(
|
1614
1623
|
"svg",
|
1615
1624
|
{
|
1616
1625
|
"aria-label": "Chevron Icon",
|
@@ -1626,10 +1635,10 @@ var NavigationMenuTrigger = React13.forwardRef(({ className, children, ...props
|
|
1626
1635
|
"aria-hidden": "true",
|
1627
1636
|
className: "hawa-icon hawa-relative hawa-top-[1px] hawa-transition hawa-duration-200 group-data-[state=open]:hawa-rotate-180"
|
1628
1637
|
},
|
1629
|
-
/* @__PURE__ */
|
1638
|
+
/* @__PURE__ */ React12.createElement("path", { d: "m6 9 6 6 6-6" })
|
1630
1639
|
)
|
1631
1640
|
));
|
1632
|
-
var NavigationMenuContent =
|
1641
|
+
var NavigationMenuContent = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React12.createElement(
|
1633
1642
|
NavigationMenuPrimitive.Content,
|
1634
1643
|
{
|
1635
1644
|
ref,
|
@@ -1643,15 +1652,15 @@ var NavigationMenuContent = React13.forwardRef(({ className, ...props }, ref) =>
|
|
1643
1652
|
...props
|
1644
1653
|
}
|
1645
1654
|
));
|
1646
|
-
var StandardNavigationMenuItem = ({ icon, title, subtitle, ...linkProps }) => /* @__PURE__ */
|
1647
|
-
var NavigationMenuViewport =
|
1655
|
+
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))));
|
1656
|
+
var NavigationMenuViewport = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React12.createElement(
|
1648
1657
|
"div",
|
1649
1658
|
{
|
1650
1659
|
className: cn(
|
1651
1660
|
"hawa-absolute hawa-top-full hawa-flex hawa-w-full hawa-justify-center"
|
1652
1661
|
)
|
1653
1662
|
},
|
1654
|
-
/* @__PURE__ */
|
1663
|
+
/* @__PURE__ */ React12.createElement(
|
1655
1664
|
NavigationMenuPrimitive.Viewport,
|
1656
1665
|
{
|
1657
1666
|
className: cn(
|
@@ -1668,7 +1677,7 @@ var NavigationMenuViewport = React13.forwardRef(({ className, ...props }, ref) =
|
|
1668
1677
|
}
|
1669
1678
|
)
|
1670
1679
|
));
|
1671
|
-
var NavigationMenuIndicator =
|
1680
|
+
var NavigationMenuIndicator = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React12.createElement(
|
1672
1681
|
NavigationMenuPrimitive.Indicator,
|
1673
1682
|
{
|
1674
1683
|
ref,
|
@@ -1678,7 +1687,7 @@ var NavigationMenuIndicator = React13.forwardRef(({ className, ...props }, ref)
|
|
1678
1687
|
),
|
1679
1688
|
...props
|
1680
1689
|
},
|
1681
|
-
/* @__PURE__ */
|
1690
|
+
/* @__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
1691
|
));
|
1683
1692
|
var NavigationMenu = ({
|
1684
1693
|
viewportClassNames,
|
@@ -1687,7 +1696,7 @@ var NavigationMenu = ({
|
|
1687
1696
|
actionFirst,
|
1688
1697
|
...props
|
1689
1698
|
}) => {
|
1690
|
-
return /* @__PURE__ */
|
1699
|
+
return /* @__PURE__ */ React12.createElement(
|
1691
1700
|
NavigationMenuRoot,
|
1692
1701
|
{
|
1693
1702
|
dir: props.direction,
|
@@ -1695,7 +1704,7 @@ var NavigationMenu = ({
|
|
1695
1704
|
className: rootClassNames,
|
1696
1705
|
viewportClassNames
|
1697
1706
|
},
|
1698
|
-
/* @__PURE__ */
|
1707
|
+
/* @__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
1708
|
NavigationMenuLink,
|
1700
1709
|
{
|
1701
1710
|
href: actionFirst ? void 0 : item.path,
|
@@ -1724,14 +1733,14 @@ NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayN
|
|
1724
1733
|
NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
|
1725
1734
|
|
1726
1735
|
// elements/sheet/Sheet.tsx
|
1727
|
-
var
|
1736
|
+
var React13 = __toESM(require("react"));
|
1728
1737
|
var SheetPrimitive = __toESM(require("@radix-ui/react-dialog"));
|
1729
1738
|
var import_class_variance_authority2 = require("class-variance-authority");
|
1730
1739
|
var Sheet = SheetPrimitive.Root;
|
1731
1740
|
var SheetTrigger = SheetPrimitive.Trigger;
|
1732
1741
|
var SheetClose = SheetPrimitive.Close;
|
1733
1742
|
var SheetPortal = SheetPrimitive.Portal;
|
1734
|
-
var SheetOverlay =
|
1743
|
+
var SheetOverlay = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React13.createElement(
|
1735
1744
|
SheetPrimitive.Overlay,
|
1736
1745
|
{
|
1737
1746
|
className: cn(
|
@@ -1758,8 +1767,8 @@ var sheetVariants = (0, import_class_variance_authority2.cva)(
|
|
1758
1767
|
}
|
1759
1768
|
}
|
1760
1769
|
);
|
1761
|
-
var SheetContent =
|
1762
|
-
({ side = "right", className, children, persist, hideCloseButton, ...props }, ref) => /* @__PURE__ */
|
1770
|
+
var SheetContent = React13.forwardRef(
|
1771
|
+
({ side = "right", className, children, persist, hideCloseButton, ...props }, ref) => /* @__PURE__ */ React13.createElement(SheetPortal, null, /* @__PURE__ */ React13.createElement(SheetOverlay, null), /* @__PURE__ */ React13.createElement(
|
1763
1772
|
SheetPrimitive.Content,
|
1764
1773
|
{
|
1765
1774
|
ref,
|
@@ -1772,7 +1781,7 @@ var SheetContent = React14.forwardRef(
|
|
1772
1781
|
...props
|
1773
1782
|
},
|
1774
1783
|
children,
|
1775
|
-
!hideCloseButton && /* @__PURE__ */
|
1784
|
+
!hideCloseButton && /* @__PURE__ */ React13.createElement(
|
1776
1785
|
SheetPrimitive.Close,
|
1777
1786
|
{
|
1778
1787
|
className: cn(
|
@@ -1784,7 +1793,7 @@ var SheetContent = React14.forwardRef(
|
|
1784
1793
|
}
|
1785
1794
|
)
|
1786
1795
|
},
|
1787
|
-
/* @__PURE__ */
|
1796
|
+
/* @__PURE__ */ React13.createElement(
|
1788
1797
|
"svg",
|
1789
1798
|
{
|
1790
1799
|
"aria-label": "Close Icon",
|
@@ -1793,7 +1802,7 @@ var SheetContent = React14.forwardRef(
|
|
1793
1802
|
fill: "currentColor",
|
1794
1803
|
viewBox: "0 0 20 20"
|
1795
1804
|
},
|
1796
|
-
/* @__PURE__ */
|
1805
|
+
/* @__PURE__ */ React13.createElement(
|
1797
1806
|
"path",
|
1798
1807
|
{
|
1799
1808
|
fillRule: "evenodd",
|
@@ -1802,14 +1811,14 @@ var SheetContent = React14.forwardRef(
|
|
1802
1811
|
}
|
1803
1812
|
)
|
1804
1813
|
),
|
1805
|
-
/* @__PURE__ */
|
1814
|
+
/* @__PURE__ */ React13.createElement("span", { className: "hawa-sr-only" }, "Close")
|
1806
1815
|
)
|
1807
1816
|
))
|
1808
1817
|
);
|
1809
1818
|
var SheetHeader = ({
|
1810
1819
|
className,
|
1811
1820
|
...props
|
1812
|
-
}) => /* @__PURE__ */
|
1821
|
+
}) => /* @__PURE__ */ React13.createElement(
|
1813
1822
|
"div",
|
1814
1823
|
{
|
1815
1824
|
className: cn(
|
@@ -1822,7 +1831,7 @@ var SheetHeader = ({
|
|
1822
1831
|
var SheetFooter = ({
|
1823
1832
|
className,
|
1824
1833
|
...props
|
1825
|
-
}) => /* @__PURE__ */
|
1834
|
+
}) => /* @__PURE__ */ React13.createElement(
|
1826
1835
|
"div",
|
1827
1836
|
{
|
1828
1837
|
className: cn(
|
@@ -1832,7 +1841,7 @@ var SheetFooter = ({
|
|
1832
1841
|
...props
|
1833
1842
|
}
|
1834
1843
|
);
|
1835
|
-
var SheetTitle =
|
1844
|
+
var SheetTitle = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React13.createElement(
|
1836
1845
|
SheetPrimitive.Title,
|
1837
1846
|
{
|
1838
1847
|
ref,
|
@@ -1843,7 +1852,7 @@ var SheetTitle = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
1843
1852
|
...props
|
1844
1853
|
}
|
1845
1854
|
));
|
1846
|
-
var SheetDescription =
|
1855
|
+
var SheetDescription = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React13.createElement(
|
1847
1856
|
SheetPrimitive.Description,
|
1848
1857
|
{
|
1849
1858
|
ref,
|
@@ -1859,12 +1868,12 @@ SheetFooter.displayName = "SheetFooter";
|
|
1859
1868
|
SheetTitle.displayName = SheetPrimitive.Title.displayName;
|
1860
1869
|
|
1861
1870
|
// elements/dialog/Dialog.tsx
|
1862
|
-
var
|
1871
|
+
var React14 = __toESM(require("react"));
|
1863
1872
|
var DialogPrimitive = __toESM(require("@radix-ui/react-dialog"));
|
1864
1873
|
var Dialog = DialogPrimitive.Root;
|
1865
1874
|
var DialogTrigger = DialogPrimitive.Trigger;
|
1866
|
-
var DialogPortal = ({ ...props }) => /* @__PURE__ */
|
1867
|
-
var DialogOverlay =
|
1875
|
+
var DialogPortal = ({ ...props }) => /* @__PURE__ */ React14.createElement(DialogPrimitive.Portal, { ...props });
|
1876
|
+
var DialogOverlay = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React14.createElement(
|
1868
1877
|
DialogPrimitive.Overlay,
|
1869
1878
|
{
|
1870
1879
|
ref,
|
@@ -1875,7 +1884,7 @@ var DialogOverlay = React15.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
1875
1884
|
...props
|
1876
1885
|
}
|
1877
1886
|
));
|
1878
|
-
var DialogContent =
|
1887
|
+
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
1888
|
DialogPrimitive.Content,
|
1880
1889
|
{
|
1881
1890
|
onPointerDownOutside: (e) => {
|
@@ -1891,7 +1900,7 @@ var DialogContent = React15.forwardRef(({ className, children, persist, hideClos
|
|
1891
1900
|
...props
|
1892
1901
|
},
|
1893
1902
|
children,
|
1894
|
-
!hideCloseButton && /* @__PURE__ */
|
1903
|
+
!hideCloseButton && /* @__PURE__ */ React14.createElement(
|
1895
1904
|
DialogPrimitive.Close,
|
1896
1905
|
{
|
1897
1906
|
className: cn(
|
@@ -1899,7 +1908,7 @@ var DialogContent = React15.forwardRef(({ className, children, persist, hideClos
|
|
1899
1908
|
props.dir === "rtl" ? " hawa-left-4" : " hawa-right-4"
|
1900
1909
|
)
|
1901
1910
|
},
|
1902
|
-
/* @__PURE__ */
|
1911
|
+
/* @__PURE__ */ React14.createElement(
|
1903
1912
|
"svg",
|
1904
1913
|
{
|
1905
1914
|
"aria-label": "Close Icon",
|
@@ -1908,7 +1917,7 @@ var DialogContent = React15.forwardRef(({ className, children, persist, hideClos
|
|
1908
1917
|
fill: "currentColor",
|
1909
1918
|
viewBox: "0 0 20 20"
|
1910
1919
|
},
|
1911
|
-
/* @__PURE__ */
|
1920
|
+
/* @__PURE__ */ React14.createElement(
|
1912
1921
|
"path",
|
1913
1922
|
{
|
1914
1923
|
fillRule: "evenodd",
|
@@ -1917,10 +1926,10 @@ var DialogContent = React15.forwardRef(({ className, children, persist, hideClos
|
|
1917
1926
|
}
|
1918
1927
|
)
|
1919
1928
|
),
|
1920
|
-
/* @__PURE__ */
|
1929
|
+
/* @__PURE__ */ React14.createElement("span", { className: "hawa-sr-only" }, "Close")
|
1921
1930
|
)
|
1922
1931
|
)));
|
1923
|
-
var DialogCarouselContent =
|
1932
|
+
var DialogCarouselContent = React14.forwardRef(
|
1924
1933
|
({
|
1925
1934
|
className,
|
1926
1935
|
children,
|
@@ -1929,7 +1938,7 @@ var DialogCarouselContent = React15.forwardRef(
|
|
1929
1938
|
hideCloseButton,
|
1930
1939
|
hidePrevButton,
|
1931
1940
|
...props
|
1932
|
-
}, ref) => /* @__PURE__ */
|
1941
|
+
}, ref) => /* @__PURE__ */ React14.createElement(DialogPortal, null, /* @__PURE__ */ React14.createElement(DialogOverlay, null), /* @__PURE__ */ React14.createElement(
|
1933
1942
|
DialogPrimitive.Content,
|
1934
1943
|
{
|
1935
1944
|
onPointerDownOutside: (e) => {
|
@@ -1945,7 +1954,7 @@ var DialogCarouselContent = React15.forwardRef(
|
|
1945
1954
|
...props
|
1946
1955
|
},
|
1947
1956
|
children,
|
1948
|
-
/* @__PURE__ */
|
1957
|
+
/* @__PURE__ */ React14.createElement(
|
1949
1958
|
"div",
|
1950
1959
|
{
|
1951
1960
|
className: cn(
|
@@ -1953,7 +1962,7 @@ var DialogCarouselContent = React15.forwardRef(
|
|
1953
1962
|
onPrev ? "hawa-justify-between" : "hawa-justify-end"
|
1954
1963
|
)
|
1955
1964
|
},
|
1956
|
-
hidePrevButton ? /* @__PURE__ */
|
1965
|
+
hidePrevButton ? /* @__PURE__ */ React14.createElement("div", null) : /* @__PURE__ */ React14.createElement(
|
1957
1966
|
"div",
|
1958
1967
|
{
|
1959
1968
|
onClick: onPrev,
|
@@ -1962,7 +1971,7 @@ var DialogCarouselContent = React15.forwardRef(
|
|
1962
1971
|
props.dir === "rtl" && "hawa-rotate-180"
|
1963
1972
|
)
|
1964
1973
|
},
|
1965
|
-
/* @__PURE__ */
|
1974
|
+
/* @__PURE__ */ React14.createElement(
|
1966
1975
|
"svg",
|
1967
1976
|
{
|
1968
1977
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -1976,10 +1985,10 @@ var DialogCarouselContent = React15.forwardRef(
|
|
1976
1985
|
strokeLinecap: "round",
|
1977
1986
|
strokeLinejoin: "round"
|
1978
1987
|
},
|
1979
|
-
/* @__PURE__ */
|
1988
|
+
/* @__PURE__ */ React14.createElement("path", { d: "m15 18-6-6 6-6" })
|
1980
1989
|
)
|
1981
1990
|
),
|
1982
|
-
!hideCloseButton && /* @__PURE__ */
|
1991
|
+
!hideCloseButton && /* @__PURE__ */ React14.createElement(
|
1983
1992
|
DialogPrimitive.Close,
|
1984
1993
|
{
|
1985
1994
|
className: cn(
|
@@ -1987,7 +1996,7 @@ var DialogCarouselContent = React15.forwardRef(
|
|
1987
1996
|
props.dir === "rtl" ? " hawa-left-4" : " hawa-right-4"
|
1988
1997
|
)
|
1989
1998
|
},
|
1990
|
-
/* @__PURE__ */
|
1999
|
+
/* @__PURE__ */ React14.createElement(
|
1991
2000
|
"svg",
|
1992
2001
|
{
|
1993
2002
|
"aria-label": "Close Icon",
|
@@ -1996,7 +2005,7 @@ var DialogCarouselContent = React15.forwardRef(
|
|
1996
2005
|
fill: "currentColor",
|
1997
2006
|
viewBox: "0 0 20 20"
|
1998
2007
|
},
|
1999
|
-
/* @__PURE__ */
|
2008
|
+
/* @__PURE__ */ React14.createElement(
|
2000
2009
|
"path",
|
2001
2010
|
{
|
2002
2011
|
fillRule: "evenodd",
|
@@ -2005,7 +2014,7 @@ var DialogCarouselContent = React15.forwardRef(
|
|
2005
2014
|
}
|
2006
2015
|
)
|
2007
2016
|
),
|
2008
|
-
/* @__PURE__ */
|
2017
|
+
/* @__PURE__ */ React14.createElement("span", { className: "hawa-sr-only" }, "Close")
|
2009
2018
|
)
|
2010
2019
|
)
|
2011
2020
|
))
|
@@ -2013,7 +2022,7 @@ var DialogCarouselContent = React15.forwardRef(
|
|
2013
2022
|
var DialogHeader = ({
|
2014
2023
|
className,
|
2015
2024
|
...props
|
2016
|
-
}) => /* @__PURE__ */
|
2025
|
+
}) => /* @__PURE__ */ React14.createElement(
|
2017
2026
|
"div",
|
2018
2027
|
{
|
2019
2028
|
className: cn(
|
@@ -2023,7 +2032,7 @@ var DialogHeader = ({
|
|
2023
2032
|
...props
|
2024
2033
|
}
|
2025
2034
|
);
|
2026
|
-
var DialogTitle =
|
2035
|
+
var DialogTitle = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React14.createElement(
|
2027
2036
|
DialogPrimitive.Title,
|
2028
2037
|
{
|
2029
2038
|
ref,
|
@@ -2034,7 +2043,7 @@ var DialogTitle = React15.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
2034
2043
|
...props
|
2035
2044
|
}
|
2036
2045
|
));
|
2037
|
-
var DialogDescription =
|
2046
|
+
var DialogDescription = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React14.createElement(
|
2038
2047
|
DialogPrimitive.Description,
|
2039
2048
|
{
|
2040
2049
|
ref,
|
@@ -2048,7 +2057,7 @@ var DialogDescription = React15.forwardRef(({ className, ...props }, ref) => /*
|
|
2048
2057
|
var DialogFooter = ({
|
2049
2058
|
className,
|
2050
2059
|
...props
|
2051
|
-
}) => /* @__PURE__ */
|
2060
|
+
}) => /* @__PURE__ */ React14.createElement(
|
2052
2061
|
"div",
|
2053
2062
|
{
|
2054
2063
|
className: cn(
|
@@ -2064,12 +2073,12 @@ var DialogCarousel = ({
|
|
2064
2073
|
children,
|
2065
2074
|
direction
|
2066
2075
|
}) => {
|
2067
|
-
|
2076
|
+
React14.useEffect(() => {
|
2068
2077
|
if (stepsApi) {
|
2069
2078
|
stepsApi.reInit();
|
2070
2079
|
}
|
2071
2080
|
}, [stepsApi, children]);
|
2072
|
-
return /* @__PURE__ */
|
2081
|
+
return /* @__PURE__ */ React14.createElement("div", { className: "hawa-overflow-hidden" }, /* @__PURE__ */ React14.createElement("div", { ref: stepsRef, dir: direction }, /* @__PURE__ */ React14.createElement(
|
2073
2082
|
"div",
|
2074
2083
|
{
|
2075
2084
|
className: "hawa-flex",
|
@@ -2077,7 +2086,7 @@ var DialogCarousel = ({
|
|
2077
2086
|
transition: "height 0.2s"
|
2078
2087
|
}
|
2079
2088
|
},
|
2080
|
-
|
2089
|
+
React14.Children.map(children, (child, index) => /* @__PURE__ */ React14.createElement(
|
2081
2090
|
"div",
|
2082
2091
|
{
|
2083
2092
|
className: cn(
|
@@ -2094,14 +2103,14 @@ var DialogSteps = ({
|
|
2094
2103
|
visibleStepRef,
|
2095
2104
|
children
|
2096
2105
|
}) => {
|
2097
|
-
const [dialogHeight, setDialogHeight] =
|
2098
|
-
|
2106
|
+
const [dialogHeight, setDialogHeight] = React14.useState(null);
|
2107
|
+
React14.useEffect(() => {
|
2099
2108
|
if (visibleStepRef.current) {
|
2100
2109
|
setDialogHeight(visibleStepRef.current.offsetHeight);
|
2101
2110
|
console.log("height is ", visibleStepRef.current.offsetHeight);
|
2102
2111
|
}
|
2103
2112
|
}, [currentStep, visibleStepRef]);
|
2104
|
-
return /* @__PURE__ */
|
2113
|
+
return /* @__PURE__ */ React14.createElement(
|
2105
2114
|
"div",
|
2106
2115
|
{
|
2107
2116
|
className: "hawa-relative hawa-overflow-clip",
|
@@ -2110,7 +2119,7 @@ var DialogSteps = ({
|
|
2110
2119
|
transition: "height 0.2s"
|
2111
2120
|
}
|
2112
2121
|
},
|
2113
|
-
|
2122
|
+
React14.Children.map(children, (child, index) => /* @__PURE__ */ React14.createElement(
|
2114
2123
|
"div",
|
2115
2124
|
{
|
2116
2125
|
ref: currentStep === `step-${index + 1}` ? visibleStepRef : null,
|
@@ -2128,7 +2137,7 @@ var DialogStep = ({
|
|
2128
2137
|
className,
|
2129
2138
|
stepRef
|
2130
2139
|
}) => {
|
2131
|
-
return /* @__PURE__ */
|
2140
|
+
return /* @__PURE__ */ React14.createElement(
|
2132
2141
|
"div",
|
2133
2142
|
{
|
2134
2143
|
id,
|
@@ -2139,7 +2148,7 @@ var DialogStep = ({
|
|
2139
2148
|
);
|
2140
2149
|
};
|
2141
2150
|
var DialogBody = ({ children, className }) => {
|
2142
|
-
return /* @__PURE__ */
|
2151
|
+
return /* @__PURE__ */ React14.createElement("div", { className: cn("hawa-py-6", className) }, children);
|
2143
2152
|
};
|
2144
2153
|
DialogBody.displayName = "DialogBody";
|
2145
2154
|
DialogStep.displayName = "DialogStep";
|
@@ -2155,14 +2164,15 @@ DialogContent.displayName = DialogPrimitive.Content.displayName;
|
|
2155
2164
|
DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
2156
2165
|
|
2157
2166
|
// elements/alert/Alert.tsx
|
2158
|
-
var
|
2167
|
+
var import_react7 = __toESM(require("react"));
|
2159
2168
|
|
2160
2169
|
// elements/button/Button.tsx
|
2161
2170
|
var React17 = __toESM(require("react"));
|
2162
2171
|
var import_class_variance_authority3 = require("class-variance-authority");
|
2163
2172
|
|
2164
2173
|
// elements/helperText/HelperText.tsx
|
2165
|
-
var
|
2174
|
+
var import_react6 = __toESM(require("react"));
|
2175
|
+
var HelperText = ({ helperText }) => /* @__PURE__ */ import_react6.default.createElement(
|
2166
2176
|
"p",
|
2167
2177
|
{
|
2168
2178
|
className: cn(
|
@@ -2296,9 +2306,9 @@ var Alert = ({
|
|
2296
2306
|
className,
|
2297
2307
|
...props
|
2298
2308
|
}) => {
|
2299
|
-
const alertRef = (0,
|
2300
|
-
const [closed, setClosed] = (0,
|
2301
|
-
(0,
|
2309
|
+
const alertRef = (0, import_react7.useRef)(null);
|
2310
|
+
const [closed, setClosed] = (0, import_react7.useState)(false);
|
2311
|
+
(0, import_react7.useEffect)(() => {
|
2302
2312
|
if (duration) {
|
2303
2313
|
const timeoutHide = setTimeout(() => {
|
2304
2314
|
setClosed(true);
|
@@ -2333,7 +2343,7 @@ var Alert = ({
|
|
2333
2343
|
hyper: "hawa-text-white hawa-bg-gradient-to-tl hawa-from-pink-700 hawa-via-red-500 hawa-to-yellow-600 ",
|
2334
2344
|
oceanic: "hawa-text-white hawa-bg-gradient-to-bl hawa-from-green-500 hawa-via-blue-700 hawa-to-purple-500"
|
2335
2345
|
};
|
2336
|
-
return /* @__PURE__ */
|
2346
|
+
return /* @__PURE__ */ import_react7.default.createElement("div", { ref: alertRef }, /* @__PURE__ */ import_react7.default.createElement(
|
2337
2347
|
"div",
|
2338
2348
|
{
|
2339
2349
|
"data-testid": "alert",
|
@@ -2347,13 +2357,13 @@ var Alert = ({
|
|
2347
2357
|
className
|
2348
2358
|
)
|
2349
2359
|
},
|
2350
|
-
/* @__PURE__ */
|
2360
|
+
/* @__PURE__ */ import_react7.default.createElement("div", { className: "hawa-flex hawa-flex-row" }, icon && /* @__PURE__ */ import_react7.default.createElement(
|
2351
2361
|
"div",
|
2352
2362
|
{
|
2353
2363
|
className: direction === "rtl" ? "hawa-pl-2 hawa-pt-1" : "hawa-pr-2 hawa-pt-1"
|
2354
2364
|
},
|
2355
2365
|
icon
|
2356
|
-
), /* @__PURE__ */
|
2366
|
+
), /* @__PURE__ */ import_react7.default.createElement("div", { className: "hawa-flex hawa-flex-col" }, /* @__PURE__ */ import_react7.default.createElement(
|
2357
2367
|
"span",
|
2358
2368
|
{
|
2359
2369
|
className: cn(
|
@@ -2362,7 +2372,7 @@ var Alert = ({
|
|
2362
2372
|
)
|
2363
2373
|
},
|
2364
2374
|
props.title
|
2365
|
-
), /* @__PURE__ */
|
2375
|
+
), /* @__PURE__ */ import_react7.default.createElement(
|
2366
2376
|
"span",
|
2367
2377
|
{
|
2368
2378
|
className: cn(
|
@@ -2371,7 +2381,7 @@ var Alert = ({
|
|
2371
2381
|
)
|
2372
2382
|
},
|
2373
2383
|
props.text
|
2374
|
-
), props.actions && /* @__PURE__ */
|
2384
|
+
), 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
2385
|
Button,
|
2376
2386
|
{
|
2377
2387
|
key: index,
|
@@ -2380,7 +2390,7 @@ var Alert = ({
|
|
2380
2390
|
},
|
2381
2391
|
act.label
|
2382
2392
|
))))),
|
2383
|
-
!props.persistent && /* @__PURE__ */
|
2393
|
+
!props.persistent && /* @__PURE__ */ import_react7.default.createElement(
|
2384
2394
|
"button",
|
2385
2395
|
{
|
2386
2396
|
type: "button",
|
@@ -2407,8 +2417,8 @@ var Alert = ({
|
|
2407
2417
|
}
|
2408
2418
|
}
|
2409
2419
|
},
|
2410
|
-
/* @__PURE__ */
|
2411
|
-
/* @__PURE__ */
|
2420
|
+
/* @__PURE__ */ import_react7.default.createElement("span", { className: "hawa-sr-only" }, "Close"),
|
2421
|
+
/* @__PURE__ */ import_react7.default.createElement(
|
2412
2422
|
"svg",
|
2413
2423
|
{
|
2414
2424
|
"aria-label": "Close Icon",
|
@@ -2417,7 +2427,7 @@ var Alert = ({
|
|
2417
2427
|
fill: "currentColor",
|
2418
2428
|
viewBox: "0 0 20 20"
|
2419
2429
|
},
|
2420
|
-
/* @__PURE__ */
|
2430
|
+
/* @__PURE__ */ import_react7.default.createElement(
|
2421
2431
|
"path",
|
2422
2432
|
{
|
2423
2433
|
fillRule: "evenodd",
|
@@ -2431,12 +2441,12 @@ var Alert = ({
|
|
2431
2441
|
};
|
2432
2442
|
|
2433
2443
|
// elements/avatar/Avatar.tsx
|
2434
|
-
var
|
2444
|
+
var import_react9 = __toESM(require("react"));
|
2435
2445
|
|
2436
2446
|
// elements/fileUploader/FileUploader.tsx
|
2437
|
-
var
|
2447
|
+
var import_react8 = __toESM(require("react"));
|
2438
2448
|
var FileUploader = ({ handleFile, className }) => {
|
2439
|
-
const hiddenFileInput = (0,
|
2449
|
+
const hiddenFileInput = (0, import_react8.useRef)(null);
|
2440
2450
|
const handleClick = () => {
|
2441
2451
|
var _a;
|
2442
2452
|
(_a = hiddenFileInput.current) == null ? void 0 : _a.click();
|
@@ -2445,7 +2455,7 @@ var FileUploader = ({ handleFile, className }) => {
|
|
2445
2455
|
const fileUploaded = event.target.files[0];
|
2446
2456
|
handleFile(fileUploaded);
|
2447
2457
|
};
|
2448
|
-
return /* @__PURE__ */
|
2458
|
+
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
2459
|
"input",
|
2450
2460
|
{
|
2451
2461
|
type: "file",
|
@@ -2486,7 +2496,7 @@ var Avatar = ({
|
|
2486
2496
|
inherit: "hawa-rounded",
|
2487
2497
|
none: "hawa-rounded-none"
|
2488
2498
|
};
|
2489
|
-
return /* @__PURE__ */
|
2499
|
+
return /* @__PURE__ */ import_react9.default.createElement(
|
2490
2500
|
"div",
|
2491
2501
|
{
|
2492
2502
|
className: cn(
|
@@ -2496,7 +2506,7 @@ var Avatar = ({
|
|
2496
2506
|
className
|
2497
2507
|
)
|
2498
2508
|
},
|
2499
|
-
/* @__PURE__ */
|
2509
|
+
/* @__PURE__ */ import_react9.default.createElement(
|
2500
2510
|
FileUploader,
|
2501
2511
|
{
|
2502
2512
|
className: cn(
|
@@ -2507,7 +2517,7 @@ var Avatar = ({
|
|
2507
2517
|
)
|
2508
2518
|
}
|
2509
2519
|
),
|
2510
|
-
/* @__PURE__ */
|
2520
|
+
/* @__PURE__ */ import_react9.default.createElement(
|
2511
2521
|
"img",
|
2512
2522
|
{
|
2513
2523
|
className: cn(
|
@@ -2520,7 +2530,7 @@ var Avatar = ({
|
|
2520
2530
|
alt
|
2521
2531
|
}
|
2522
2532
|
),
|
2523
|
-
!src && !hideIcon && /* @__PURE__ */
|
2533
|
+
!src && !hideIcon && /* @__PURE__ */ import_react9.default.createElement(
|
2524
2534
|
"div",
|
2525
2535
|
{
|
2526
2536
|
className: cn(
|
@@ -2528,7 +2538,7 @@ var Avatar = ({
|
|
2528
2538
|
"hawa-flex hawa-flex-col hawa-items-center hawa-justify-center"
|
2529
2539
|
)
|
2530
2540
|
},
|
2531
|
-
icon ? icon : /* @__PURE__ */
|
2541
|
+
icon ? icon : /* @__PURE__ */ import_react9.default.createElement(
|
2532
2542
|
"svg",
|
2533
2543
|
{
|
2534
2544
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -2540,8 +2550,8 @@ var Avatar = ({
|
|
2540
2550
|
strokeLinecap: "round",
|
2541
2551
|
strokeLinejoin: "round"
|
2542
2552
|
},
|
2543
|
-
/* @__PURE__ */
|
2544
|
-
/* @__PURE__ */
|
2553
|
+
/* @__PURE__ */ import_react9.default.createElement("circle", { cx: "12", cy: "8", r: "5" }),
|
2554
|
+
/* @__PURE__ */ import_react9.default.createElement("path", { d: "M20 21a8 8 0 1 0-16 0" })
|
2545
2555
|
)
|
2546
2556
|
)
|
2547
2557
|
);
|
@@ -2552,8 +2562,8 @@ var React23 = __toESM(require("react"));
|
|
2552
2562
|
var import_react_table = require("@tanstack/react-table");
|
2553
2563
|
|
2554
2564
|
// elements/input/Input.tsx
|
2555
|
-
var
|
2556
|
-
var Input = (0,
|
2565
|
+
var import_react10 = __toESM(require("react"));
|
2566
|
+
var Input = (0, import_react10.forwardRef)(
|
2557
2567
|
({
|
2558
2568
|
margin = "none",
|
2559
2569
|
width = "full",
|
@@ -2597,7 +2607,7 @@ var Input = (0, import_react9.forwardRef)(
|
|
2597
2607
|
props.onChange(newEvent);
|
2598
2608
|
}
|
2599
2609
|
};
|
2600
|
-
return /* @__PURE__ */
|
2610
|
+
return /* @__PURE__ */ import_react10.default.createElement(
|
2601
2611
|
"div",
|
2602
2612
|
{
|
2603
2613
|
className: cn(
|
@@ -2608,8 +2618,8 @@ var Input = (0, import_react9.forwardRef)(
|
|
2608
2618
|
"hawa-w-full hawa-gap-2"
|
2609
2619
|
)
|
2610
2620
|
},
|
2611
|
-
props.label && /* @__PURE__ */
|
2612
|
-
/* @__PURE__ */
|
2621
|
+
props.label && /* @__PURE__ */ import_react10.default.createElement(Label2, { ...labelProps }, props.label),
|
2622
|
+
/* @__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
2623
|
"span",
|
2614
2624
|
{
|
2615
2625
|
className: cn(
|
@@ -2618,7 +2628,7 @@ var Input = (0, import_react9.forwardRef)(
|
|
2618
2628
|
)
|
2619
2629
|
},
|
2620
2630
|
props.outsidePrefix
|
2621
|
-
), props.isLoading ? /* @__PURE__ */
|
2631
|
+
), 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
2632
|
"div",
|
2623
2633
|
{
|
2624
2634
|
className: cn(
|
@@ -2626,7 +2636,7 @@ var Input = (0, import_react9.forwardRef)(
|
|
2626
2636
|
preview ? "hawa-opacity-100" : "hawa-opacity-0"
|
2627
2637
|
)
|
2628
2638
|
}
|
2629
|
-
), /* @__PURE__ */
|
2639
|
+
), /* @__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
2640
|
"div",
|
2631
2641
|
{
|
2632
2642
|
className: cn(
|
@@ -2635,7 +2645,7 @@ var Input = (0, import_react9.forwardRef)(
|
|
2635
2645
|
)
|
2636
2646
|
},
|
2637
2647
|
props.endIcon
|
2638
|
-
), /* @__PURE__ */
|
2648
|
+
), /* @__PURE__ */ import_react10.default.createElement(
|
2639
2649
|
"input",
|
2640
2650
|
{
|
2641
2651
|
required: true,
|
@@ -2661,7 +2671,7 @@ var Input = (0, import_react9.forwardRef)(
|
|
2661
2671
|
inputProps == null ? void 0 : inputProps.className
|
2662
2672
|
)
|
2663
2673
|
}
|
2664
|
-
)), !forceHideHelperText && /* @__PURE__ */
|
2674
|
+
)), !forceHideHelperText && /* @__PURE__ */ import_react10.default.createElement(
|
2665
2675
|
"p",
|
2666
2676
|
{
|
2667
2677
|
className: cn(
|
@@ -2670,7 +2680,7 @@ var Input = (0, import_react9.forwardRef)(
|
|
2670
2680
|
)
|
2671
2681
|
},
|
2672
2682
|
props.helperText
|
2673
|
-
), !props.disabled && forceHideHelperText && /* @__PURE__ */
|
2683
|
+
), !props.disabled && forceHideHelperText && /* @__PURE__ */ import_react10.default.createElement(
|
2674
2684
|
"div",
|
2675
2685
|
{
|
2676
2686
|
className: cn(
|
@@ -2679,7 +2689,7 @@ var Input = (0, import_react9.forwardRef)(
|
|
2679
2689
|
)
|
2680
2690
|
},
|
2681
2691
|
props.helperText
|
2682
|
-
), showCount && /* @__PURE__ */
|
2692
|
+
), showCount && /* @__PURE__ */ import_react10.default.createElement(
|
2683
2693
|
"div",
|
2684
2694
|
{
|
2685
2695
|
className: cn(
|
@@ -3176,12 +3186,12 @@ var DataTable = ({
|
|
3176
3186
|
};
|
3177
3187
|
|
3178
3188
|
// elements/backToTop/BackToTop.tsx
|
3179
|
-
var
|
3189
|
+
var import_react11 = __toESM(require("react"));
|
3180
3190
|
var BackToTop = ({ ...props }) => {
|
3181
|
-
const [visible, setVisible] = (0,
|
3182
|
-
const [rect, _setRect] = (0,
|
3183
|
-
const self = (0,
|
3184
|
-
const _rect = (0,
|
3191
|
+
const [visible, setVisible] = (0, import_react11.useState)(false);
|
3192
|
+
const [rect, _setRect] = (0, import_react11.useState)(null);
|
3193
|
+
const self = (0, import_react11.useRef)(null);
|
3194
|
+
const _rect = (0, import_react11.useRef)(rect);
|
3185
3195
|
const setRect = (data) => {
|
3186
3196
|
_rect.current = data;
|
3187
3197
|
_setRect(data);
|
@@ -3206,7 +3216,7 @@ var BackToTop = ({ ...props }) => {
|
|
3206
3216
|
props.anchor.current.scrollTo({ top: 0, behavior: "smooth" });
|
3207
3217
|
}
|
3208
3218
|
};
|
3209
|
-
(0,
|
3219
|
+
(0, import_react11.useEffect)(() => {
|
3210
3220
|
if (!props.anchor.current)
|
3211
3221
|
return;
|
3212
3222
|
props.anchor.current.addEventListener("scroll", onScroll);
|
@@ -3242,7 +3252,7 @@ var BackToTop = ({ ...props }) => {
|
|
3242
3252
|
};
|
3243
3253
|
return style;
|
3244
3254
|
};
|
3245
|
-
return /* @__PURE__ */
|
3255
|
+
return /* @__PURE__ */ import_react11.default.createElement(
|
3246
3256
|
Button,
|
3247
3257
|
{
|
3248
3258
|
className: cn(
|
@@ -3257,7 +3267,7 @@ var BackToTop = ({ ...props }) => {
|
|
3257
3267
|
ref: self,
|
3258
3268
|
size: "icon"
|
3259
3269
|
},
|
3260
|
-
/* @__PURE__ */
|
3270
|
+
/* @__PURE__ */ import_react11.default.createElement(
|
3261
3271
|
"svg",
|
3262
3272
|
{
|
3263
3273
|
className: cn(
|
@@ -3267,13 +3277,13 @@ var BackToTop = ({ ...props }) => {
|
|
3267
3277
|
viewBox: "0 0 20 20",
|
3268
3278
|
fill: "currentColor"
|
3269
3279
|
},
|
3270
|
-
/* @__PURE__ */
|
3280
|
+
/* @__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
3281
|
)
|
3272
3282
|
);
|
3273
3283
|
};
|
3274
3284
|
|
3275
3285
|
// elements/radio/Radio.tsx
|
3276
|
-
var
|
3286
|
+
var import_react12 = __toESM(require("react"));
|
3277
3287
|
|
3278
3288
|
// elements/popover/Popover.tsx
|
3279
3289
|
var React25 = __toESM(require("react"));
|
@@ -3342,7 +3352,7 @@ var PopoverPortal = PopoverPrimitive.Portal;
|
|
3342
3352
|
var PopoverRoot = PopoverPrimitive.Root;
|
3343
3353
|
|
3344
3354
|
// elements/radio/Radio.tsx
|
3345
|
-
var Radio = (0,
|
3355
|
+
var Radio = (0, import_react12.forwardRef)(
|
3346
3356
|
({
|
3347
3357
|
design = "default",
|
3348
3358
|
width = "default",
|
@@ -3374,15 +3384,15 @@ var Radio = (0, import_react11.forwardRef)(
|
|
3374
3384
|
default: "hawa-max-w-fit",
|
3375
3385
|
full: "hawa-w-full"
|
3376
3386
|
};
|
3377
|
-
const [parentDirection, setParentDirection] =
|
3387
|
+
const [parentDirection, setParentDirection] = import_react12.default.useState(
|
3378
3388
|
null
|
3379
3389
|
);
|
3380
|
-
const [selectedOption, setSelectedOption] = (0,
|
3390
|
+
const [selectedOption, setSelectedOption] = (0, import_react12.useState)(
|
3381
3391
|
props.defaultValue || props.value
|
3382
3392
|
);
|
3383
|
-
const [openTooltip, setOpenTooltip] = (0,
|
3384
|
-
const parentRef = (0,
|
3385
|
-
(0,
|
3393
|
+
const [openTooltip, setOpenTooltip] = (0, import_react12.useState)(null);
|
3394
|
+
const parentRef = (0, import_react12.useRef)(null);
|
3395
|
+
(0, import_react12.useEffect)(() => {
|
3386
3396
|
var _a2;
|
3387
3397
|
const parentNode = (_a2 = parentRef.current) == null ? void 0 : _a2.parentNode;
|
3388
3398
|
if (parentNode) {
|
@@ -3408,7 +3418,7 @@ var Radio = (0, import_react11.forwardRef)(
|
|
3408
3418
|
];
|
3409
3419
|
switch (design) {
|
3410
3420
|
case "tabs":
|
3411
|
-
return /* @__PURE__ */
|
3421
|
+
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
3422
|
"ul",
|
3413
3423
|
{
|
3414
3424
|
ref: parentRef,
|
@@ -3421,21 +3431,21 @@ var Radio = (0, import_react11.forwardRef)(
|
|
3421
3431
|
)
|
3422
3432
|
},
|
3423
3433
|
(_b = props.options) == null ? void 0 : _b.map((opt, o) => {
|
3424
|
-
return opt.tooltip ? /* @__PURE__ */
|
3434
|
+
return opt.tooltip ? /* @__PURE__ */ import_react12.default.createElement(
|
3425
3435
|
PopoverRoot,
|
3426
3436
|
{
|
3427
3437
|
key: o,
|
3428
3438
|
open: o === openTooltip,
|
3429
3439
|
onOpenChange: (bool) => setOpenTooltip(bool ? o : null)
|
3430
3440
|
},
|
3431
|
-
/* @__PURE__ */
|
3441
|
+
/* @__PURE__ */ import_react12.default.createElement(
|
3432
3442
|
PopoverTrigger,
|
3433
3443
|
{
|
3434
3444
|
onMouseEnter: () => setOpenTooltip(o),
|
3435
3445
|
onMouseLeave: () => setOpenTooltip(null),
|
3436
3446
|
asChild: true
|
3437
3447
|
},
|
3438
|
-
/* @__PURE__ */
|
3448
|
+
/* @__PURE__ */ import_react12.default.createElement(
|
3439
3449
|
"li",
|
3440
3450
|
{
|
3441
3451
|
"aria-current": "page",
|
@@ -3453,8 +3463,8 @@ var Radio = (0, import_react11.forwardRef)(
|
|
3453
3463
|
opt.label
|
3454
3464
|
)
|
3455
3465
|
),
|
3456
|
-
/* @__PURE__ */
|
3457
|
-
) : /* @__PURE__ */
|
3466
|
+
/* @__PURE__ */ import_react12.default.createElement(PopoverContent, { ...opt.tooltipContentProps }, opt.tooltip)
|
3467
|
+
) : /* @__PURE__ */ import_react12.default.createElement(
|
3458
3468
|
"li",
|
3459
3469
|
{
|
3460
3470
|
key: o,
|
@@ -3473,7 +3483,7 @@ var Radio = (0, import_react11.forwardRef)(
|
|
3473
3483
|
opt.label
|
3474
3484
|
);
|
3475
3485
|
})
|
3476
|
-
), !forceHideHelperText && /* @__PURE__ */
|
3486
|
+
), !forceHideHelperText && /* @__PURE__ */ import_react12.default.createElement(
|
3477
3487
|
"p",
|
3478
3488
|
{
|
3479
3489
|
className: cn(
|
@@ -3484,7 +3494,7 @@ var Radio = (0, import_react11.forwardRef)(
|
|
3484
3494
|
props.helperText
|
3485
3495
|
));
|
3486
3496
|
case "bordered":
|
3487
|
-
return /* @__PURE__ */
|
3497
|
+
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
3498
|
"div",
|
3489
3499
|
{
|
3490
3500
|
className: cn(
|
@@ -3493,7 +3503,7 @@ var Radio = (0, import_react11.forwardRef)(
|
|
3493
3503
|
),
|
3494
3504
|
key: i + 1
|
3495
3505
|
},
|
3496
|
-
/* @__PURE__ */
|
3506
|
+
/* @__PURE__ */ import_react12.default.createElement(
|
3497
3507
|
"input",
|
3498
3508
|
{
|
3499
3509
|
disabled: opt.disabled,
|
@@ -3504,7 +3514,7 @@ var Radio = (0, import_react11.forwardRef)(
|
|
3504
3514
|
onChange: () => handleChange(opt)
|
3505
3515
|
}
|
3506
3516
|
),
|
3507
|
-
/* @__PURE__ */
|
3517
|
+
/* @__PURE__ */ import_react12.default.createElement(
|
3508
3518
|
"label",
|
3509
3519
|
{
|
3510
3520
|
htmlFor: opt.value.toString(),
|
@@ -3517,7 +3527,7 @@ var Radio = (0, import_react11.forwardRef)(
|
|
3517
3527
|
)
|
3518
3528
|
))));
|
3519
3529
|
case "cards":
|
3520
|
-
return /* @__PURE__ */
|
3530
|
+
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
3531
|
"input",
|
3522
3532
|
{
|
3523
3533
|
type: "radio",
|
@@ -3528,7 +3538,7 @@ var Radio = (0, import_react11.forwardRef)(
|
|
3528
3538
|
required: true,
|
3529
3539
|
disabled: opt.disabled
|
3530
3540
|
}
|
3531
|
-
), /* @__PURE__ */
|
3541
|
+
), /* @__PURE__ */ import_react12.default.createElement(
|
3532
3542
|
"label",
|
3533
3543
|
{
|
3534
3544
|
htmlFor: opt.value.toString(),
|
@@ -3537,10 +3547,10 @@ var Radio = (0, import_react11.forwardRef)(
|
|
3537
3547
|
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
3548
|
)
|
3539
3549
|
},
|
3540
|
-
/* @__PURE__ */
|
3550
|
+
/* @__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
3551
|
))));
|
3542
3552
|
default:
|
3543
|
-
return /* @__PURE__ */
|
3553
|
+
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
3554
|
"div",
|
3545
3555
|
{
|
3546
3556
|
className: cn(
|
@@ -3549,7 +3559,7 @@ var Radio = (0, import_react11.forwardRef)(
|
|
3549
3559
|
),
|
3550
3560
|
key: i + 1
|
3551
3561
|
},
|
3552
|
-
/* @__PURE__ */
|
3562
|
+
/* @__PURE__ */ import_react12.default.createElement(
|
3553
3563
|
"input",
|
3554
3564
|
{
|
3555
3565
|
disabled: opt.disabled,
|
@@ -3560,7 +3570,7 @@ var Radio = (0, import_react11.forwardRef)(
|
|
3560
3570
|
onChange: () => handleChange(opt)
|
3561
3571
|
}
|
3562
3572
|
),
|
3563
|
-
/* @__PURE__ */
|
3573
|
+
/* @__PURE__ */ import_react12.default.createElement(
|
3564
3574
|
"label",
|
3565
3575
|
{
|
3566
3576
|
htmlFor: opt.value.toString(),
|
@@ -3571,7 +3581,7 @@ var Radio = (0, import_react11.forwardRef)(
|
|
3571
3581
|
},
|
3572
3582
|
opt.label
|
3573
3583
|
)
|
3574
|
-
))), /* @__PURE__ */
|
3584
|
+
))), /* @__PURE__ */ import_react12.default.createElement(
|
3575
3585
|
"p",
|
3576
3586
|
{
|
3577
3587
|
className: cn(
|
@@ -3942,7 +3952,7 @@ var Textarea = React29.forwardRef(
|
|
3942
3952
|
Textarea.displayName = "Textarea";
|
3943
3953
|
|
3944
3954
|
// elements/fileDropzone/FileDropzone.tsx
|
3945
|
-
var
|
3955
|
+
var import_react13 = __toESM(require("react"));
|
3946
3956
|
var import_react_dropzone = require("react-dropzone");
|
3947
3957
|
var import_clsx2 = __toESM(require("clsx"));
|
3948
3958
|
var FileDropzone = ({
|
@@ -3964,8 +3974,8 @@ var FileDropzone = ({
|
|
3964
3974
|
privacyLink
|
3965
3975
|
}) => {
|
3966
3976
|
var _a, _b, _c, _d, _e, _f;
|
3967
|
-
const [cmp, setCmp] = (0,
|
3968
|
-
const [max, setMax] = (0,
|
3977
|
+
const [cmp, setCmp] = (0, import_react13.useState)(0);
|
3978
|
+
const [max, setMax] = (0, import_react13.useState)(0);
|
3969
3979
|
const {
|
3970
3980
|
getRootProps,
|
3971
3981
|
getInputProps,
|
@@ -3987,7 +3997,7 @@ var FileDropzone = ({
|
|
3987
3997
|
);
|
3988
3998
|
}
|
3989
3999
|
});
|
3990
|
-
(0,
|
4000
|
+
(0, import_react13.useEffect)(
|
3991
4001
|
() => () => {
|
3992
4002
|
files == null ? void 0 : files.forEach((file) => {
|
3993
4003
|
URL.revokeObjectURL(file.preview);
|
@@ -3995,7 +4005,7 @@ var FileDropzone = ({
|
|
3995
4005
|
},
|
3996
4006
|
[files]
|
3997
4007
|
);
|
3998
|
-
(0,
|
4008
|
+
(0, import_react13.useEffect)(() => {
|
3999
4009
|
setFiles(acceptedFiles);
|
4000
4010
|
}, [acceptedFiles, cmp, setFiles]);
|
4001
4011
|
onClearFiles = () => {
|
@@ -4007,7 +4017,7 @@ var FileDropzone = ({
|
|
4007
4017
|
acceptedFiles.length = 0;
|
4008
4018
|
setFiles([]);
|
4009
4019
|
};
|
4010
|
-
(0,
|
4020
|
+
(0, import_react13.useEffect)(() => {
|
4011
4021
|
if (maxSize > 0) {
|
4012
4022
|
const k = 1024;
|
4013
4023
|
const sizes = ["Bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"];
|
@@ -4020,7 +4030,7 @@ var FileDropzone = ({
|
|
4020
4030
|
const errs = fileRejections.map((rej, i) => {
|
4021
4031
|
switch (rej.errors[0].code) {
|
4022
4032
|
case "file-too-large":
|
4023
|
-
return /* @__PURE__ */
|
4033
|
+
return /* @__PURE__ */ import_react13.default.createElement(
|
4024
4034
|
Alert,
|
4025
4035
|
{
|
4026
4036
|
key: i,
|
@@ -4030,7 +4040,7 @@ var FileDropzone = ({
|
|
4030
4040
|
}
|
4031
4041
|
);
|
4032
4042
|
case "too-many-files":
|
4033
|
-
return /* @__PURE__ */
|
4043
|
+
return /* @__PURE__ */ import_react13.default.createElement(
|
4034
4044
|
Alert,
|
4035
4045
|
{
|
4036
4046
|
key: i,
|
@@ -4040,7 +4050,7 @@ var FileDropzone = ({
|
|
4040
4050
|
}
|
4041
4051
|
);
|
4042
4052
|
case "file-invalid-type":
|
4043
|
-
return /* @__PURE__ */
|
4053
|
+
return /* @__PURE__ */ import_react13.default.createElement(
|
4044
4054
|
Alert,
|
4045
4055
|
{
|
4046
4056
|
key: i,
|
@@ -4050,7 +4060,7 @@ var FileDropzone = ({
|
|
4050
4060
|
}
|
4051
4061
|
);
|
4052
4062
|
default:
|
4053
|
-
return /* @__PURE__ */
|
4063
|
+
return /* @__PURE__ */ import_react13.default.createElement(
|
4054
4064
|
Alert,
|
4055
4065
|
{
|
4056
4066
|
key: i,
|
@@ -4061,7 +4071,7 @@ var FileDropzone = ({
|
|
4061
4071
|
);
|
4062
4072
|
}
|
4063
4073
|
});
|
4064
|
-
const thumbs = files == null ? void 0 : files.map((file, index) => /* @__PURE__ */
|
4074
|
+
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
4075
|
"button",
|
4066
4076
|
{
|
4067
4077
|
onClick: (e) => {
|
@@ -4074,7 +4084,7 @@ var FileDropzone = ({
|
|
4074
4084
|
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
4085
|
"data-modal-toggle": "defaultModal"
|
4076
4086
|
},
|
4077
|
-
/* @__PURE__ */
|
4087
|
+
/* @__PURE__ */ import_react13.default.createElement(
|
4078
4088
|
"svg",
|
4079
4089
|
{
|
4080
4090
|
"aria-hidden": "true",
|
@@ -4082,7 +4092,7 @@ var FileDropzone = ({
|
|
4082
4092
|
fill: "currentColor",
|
4083
4093
|
viewBox: "0 0 20 20"
|
4084
4094
|
},
|
4085
|
-
/* @__PURE__ */
|
4095
|
+
/* @__PURE__ */ import_react13.default.createElement(
|
4086
4096
|
"path",
|
4087
4097
|
{
|
4088
4098
|
fillRule: "evenodd",
|
@@ -4091,8 +4101,8 @@ var FileDropzone = ({
|
|
4091
4101
|
}
|
4092
4102
|
)
|
4093
4103
|
),
|
4094
|
-
/* @__PURE__ */
|
4095
|
-
), /* @__PURE__ */
|
4104
|
+
/* @__PURE__ */ import_react13.default.createElement("span", { className: "hawa-sr-only" }, "Close modal")
|
4105
|
+
), /* @__PURE__ */ import_react13.default.createElement(
|
4096
4106
|
"div",
|
4097
4107
|
{
|
4098
4108
|
style: {
|
@@ -4111,7 +4121,7 @@ var FileDropzone = ({
|
|
4111
4121
|
key: file.name
|
4112
4122
|
}
|
4113
4123
|
)));
|
4114
|
-
return /* @__PURE__ */
|
4124
|
+
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
4125
|
"div",
|
4116
4126
|
{
|
4117
4127
|
className: (0, import_clsx2.default)(
|
@@ -4119,7 +4129,7 @@ var FileDropzone = ({
|
|
4119
4129
|
isDragActive ? "hawa-bg-muted" : "hawa-bg-muted/20 hover:hawa-bg-muted/50 "
|
4120
4130
|
)
|
4121
4131
|
},
|
4122
|
-
/* @__PURE__ */
|
4132
|
+
/* @__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
4133
|
"svg",
|
4124
4134
|
{
|
4125
4135
|
stroke: "currentColor",
|
@@ -4131,28 +4141,28 @@ var FileDropzone = ({
|
|
4131
4141
|
height: "1.5em",
|
4132
4142
|
width: "1.5em"
|
4133
4143
|
},
|
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__ */
|
4144
|
+
/* @__PURE__ */ import_react13.default.createElement("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }),
|
4145
|
+
/* @__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" }),
|
4146
|
+
/* @__PURE__ */ import_react13.default.createElement("path", { d: "M13 13l9 3l-4 2l-2 4l-3 -9" }),
|
4147
|
+
/* @__PURE__ */ import_react13.default.createElement("path", { d: "M3 3l0 .01" }),
|
4148
|
+
/* @__PURE__ */ import_react13.default.createElement("path", { d: "M7 3l0 .01" }),
|
4149
|
+
/* @__PURE__ */ import_react13.default.createElement("path", { d: "M11 3l0 .01" }),
|
4150
|
+
/* @__PURE__ */ import_react13.default.createElement("path", { d: "M15 3l0 .01" }),
|
4151
|
+
/* @__PURE__ */ import_react13.default.createElement("path", { d: "M3 7l0 .01" }),
|
4152
|
+
/* @__PURE__ */ import_react13.default.createElement("path", { d: "M3 11l0 .01" }),
|
4153
|
+
/* @__PURE__ */ import_react13.default.createElement("path", { d: "M3 15l0 .01" })
|
4154
|
+
), 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)),
|
4155
|
+
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")),
|
4156
|
+
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,
|
4157
|
+
/* @__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)
|
4158
|
+
), 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
4159
|
"a",
|
4150
4160
|
{
|
4151
4161
|
href: termsLink,
|
4152
4162
|
className: "clickable-link hawa-text-muted-foreground/50"
|
4153
4163
|
},
|
4154
4164
|
(_d = texts.terms) != null ? _d : "Terms"
|
4155
|
-
), " ", (_e = texts.and) != null ? _e : "and", " ", /* @__PURE__ */
|
4165
|
+
), " ", (_e = texts.and) != null ? _e : "and", " ", /* @__PURE__ */ import_react13.default.createElement(
|
4156
4166
|
"a",
|
4157
4167
|
{
|
4158
4168
|
href: privacyLink,
|
@@ -4163,9 +4173,9 @@ var FileDropzone = ({
|
|
4163
4173
|
};
|
4164
4174
|
|
4165
4175
|
// elements/sortButton/SortButton.tsx
|
4166
|
-
var
|
4176
|
+
var import_react14 = __toESM(require("react"));
|
4167
4177
|
var SortButton = (props) => {
|
4168
|
-
return /* @__PURE__ */
|
4178
|
+
return /* @__PURE__ */ import_react14.default.createElement(
|
4169
4179
|
Button,
|
4170
4180
|
{
|
4171
4181
|
variant: "ghost",
|
@@ -4177,7 +4187,7 @@ var SortButton = (props) => {
|
|
4177
4187
|
onClick: props.onSort
|
4178
4188
|
},
|
4179
4189
|
props.label,
|
4180
|
-
/* @__PURE__ */
|
4190
|
+
/* @__PURE__ */ import_react14.default.createElement(
|
4181
4191
|
"svg",
|
4182
4192
|
{
|
4183
4193
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -4189,10 +4199,10 @@ var SortButton = (props) => {
|
|
4189
4199
|
strokeLinejoin: "round",
|
4190
4200
|
className: props.condensed ? "hawa-h-3 hawa-w-3" : "hawa-icon"
|
4191
4201
|
},
|
4192
|
-
/* @__PURE__ */
|
4193
|
-
/* @__PURE__ */
|
4194
|
-
/* @__PURE__ */
|
4195
|
-
/* @__PURE__ */
|
4202
|
+
/* @__PURE__ */ import_react14.default.createElement("path", { d: "m21 16-4 4-4-4" }),
|
4203
|
+
/* @__PURE__ */ import_react14.default.createElement("path", { d: "M17 20V4" }),
|
4204
|
+
/* @__PURE__ */ import_react14.default.createElement("path", { d: "m3 8 4-4 4 4" }),
|
4205
|
+
/* @__PURE__ */ import_react14.default.createElement("path", { d: "M7 4v16" })
|
4196
4206
|
)
|
4197
4207
|
);
|
4198
4208
|
};
|
@@ -4201,34 +4211,34 @@ var SortButton = (props) => {
|
|
4201
4211
|
var React42 = __toESM(require("react"));
|
4202
4212
|
|
4203
4213
|
// hooks/useIsomorphicEffect.ts
|
4204
|
-
var
|
4214
|
+
var import_react15 = require("react");
|
4205
4215
|
|
4206
4216
|
// hooks/useDiscloser.ts
|
4207
|
-
var
|
4217
|
+
var import_react16 = require("react");
|
4208
4218
|
|
4209
4219
|
// hooks/useHover.ts
|
4210
|
-
var
|
4220
|
+
var import_react17 = require("react");
|
4211
4221
|
|
4212
4222
|
// hooks/useToast.ts
|
4213
4223
|
var React34 = __toESM(require("react"));
|
4214
4224
|
|
4215
4225
|
// hooks/useCarousel.ts
|
4216
|
-
var
|
4226
|
+
var import_react18 = require("react");
|
4217
4227
|
|
4218
4228
|
// hooks/useDialogCarousel.ts
|
4219
|
-
var
|
4229
|
+
var import_react19 = require("react");
|
4220
4230
|
var import_embla_carousel_auto_height = __toESM(require("embla-carousel-auto-height"));
|
4221
4231
|
var import_embla_carousel_react = __toESM(require("embla-carousel-react"));
|
4222
4232
|
|
4223
4233
|
// hooks/useDialogSteps.ts
|
4224
|
-
var
|
4234
|
+
var import_react20 = require("react");
|
4225
4235
|
|
4226
4236
|
// hooks/useClipboard.ts
|
4227
|
-
var
|
4237
|
+
var import_react21 = require("react");
|
4228
4238
|
function useClipboard({ timeout = 2e3 } = {}) {
|
4229
|
-
const [error, setError] = (0,
|
4230
|
-
const [copied, setCopied] = (0,
|
4231
|
-
const [copyTimeout, setCopyTimeout] = (0,
|
4239
|
+
const [error, setError] = (0, import_react21.useState)(null);
|
4240
|
+
const [copied, setCopied] = (0, import_react21.useState)(false);
|
4241
|
+
const [copyTimeout, setCopyTimeout] = (0, import_react21.useState)(null);
|
4232
4242
|
const handleCopyResult = (value) => {
|
4233
4243
|
clearTimeout(copyTimeout);
|
4234
4244
|
setCopyTimeout(setTimeout(() => setCopied(false), timeout));
|
@@ -4250,31 +4260,31 @@ function useClipboard({ timeout = 2e3 } = {}) {
|
|
4250
4260
|
}
|
4251
4261
|
|
4252
4262
|
// hooks/useBreakpoint.ts
|
4253
|
-
var
|
4263
|
+
var import_react22 = require("react");
|
4254
4264
|
|
4255
4265
|
// hooks/useWindowSize.ts
|
4256
|
-
var
|
4266
|
+
var import_react23 = require("react");
|
4257
4267
|
|
4258
4268
|
// hooks/useFocusWithin.ts
|
4259
|
-
var
|
4269
|
+
var import_react24 = require("react");
|
4260
4270
|
|
4261
4271
|
// hooks/useMediaQuery.ts
|
4262
|
-
var
|
4272
|
+
var import_react25 = require("react");
|
4263
4273
|
|
4264
4274
|
// hooks/useScrollPosition.ts
|
4265
|
-
var
|
4275
|
+
var import_react26 = require("react");
|
4266
4276
|
|
4267
4277
|
// hooks/useTable.ts
|
4268
|
-
var
|
4278
|
+
var import_react27 = require("react");
|
4269
4279
|
|
4270
4280
|
// hooks/useTabs.ts
|
4271
|
-
var
|
4281
|
+
var import_react28 = require("react");
|
4272
4282
|
|
4273
4283
|
// hooks/useMeasureDirty.ts
|
4274
|
-
var
|
4284
|
+
var import_react29 = require("react");
|
4275
4285
|
var useMeasureDirty = (ref) => {
|
4276
|
-
const frame = (0,
|
4277
|
-
const [rect, set] = (0,
|
4286
|
+
const frame = (0, import_react29.useRef)(0);
|
4287
|
+
const [rect, set] = (0, import_react29.useState)({
|
4278
4288
|
width: 0,
|
4279
4289
|
height: 0,
|
4280
4290
|
top: 0,
|
@@ -4282,7 +4292,7 @@ var useMeasureDirty = (ref) => {
|
|
4282
4292
|
bottom: 0,
|
4283
4293
|
right: 0
|
4284
4294
|
});
|
4285
|
-
const [observer] = (0,
|
4295
|
+
const [observer] = (0, import_react29.useState)(
|
4286
4296
|
() => new ResizeObserver((entries) => {
|
4287
4297
|
const entry = entries[0];
|
4288
4298
|
if (entry) {
|
@@ -4295,7 +4305,7 @@ var useMeasureDirty = (ref) => {
|
|
4295
4305
|
}
|
4296
4306
|
})
|
4297
4307
|
);
|
4298
|
-
(0,
|
4308
|
+
(0, import_react29.useEffect)(() => {
|
4299
4309
|
observer.disconnect();
|
4300
4310
|
if (ref.current) {
|
4301
4311
|
observer.observe(ref.current);
|
@@ -4305,7 +4315,7 @@ var useMeasureDirty = (ref) => {
|
|
4305
4315
|
};
|
4306
4316
|
|
4307
4317
|
// hooks/useOutsideClick.ts
|
4308
|
-
var
|
4318
|
+
var import_react30 = __toESM(require("react"));
|
4309
4319
|
|
4310
4320
|
// elements/tabs/Tabs.tsx
|
4311
4321
|
var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"));
|
@@ -4501,7 +4511,7 @@ TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
4501
4511
|
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
4502
4512
|
|
4503
4513
|
// elements/select/Select.tsx
|
4504
|
-
var
|
4514
|
+
var import_react31 = __toESM(require("react"));
|
4505
4515
|
var import_react_select = __toESM(require("react-select"));
|
4506
4516
|
var import_creatable = __toESM(require("react-select/creatable"));
|
4507
4517
|
var import_clsx3 = __toESM(require("clsx"));
|
@@ -4512,10 +4522,10 @@ var Select = ({
|
|
4512
4522
|
}) => {
|
4513
4523
|
const NoOption = () => {
|
4514
4524
|
var _a, _b;
|
4515
|
-
return /* @__PURE__ */
|
4525
|
+
return /* @__PURE__ */ import_react31.default.createElement("div", null, (_b = (_a = props.texts) == null ? void 0 : _a.noOptions) != null ? _b : "No Items Found");
|
4516
4526
|
};
|
4517
4527
|
const Control = ({ children, innerProps, innerRef }) => {
|
4518
|
-
return /* @__PURE__ */
|
4528
|
+
return /* @__PURE__ */ import_react31.default.createElement(
|
4519
4529
|
"div",
|
4520
4530
|
{
|
4521
4531
|
ref: innerRef,
|
@@ -4528,7 +4538,7 @@ var Select = ({
|
|
4528
4538
|
);
|
4529
4539
|
};
|
4530
4540
|
const Option = ({ children, innerProps, innerRef }) => {
|
4531
|
-
return /* @__PURE__ */
|
4541
|
+
return /* @__PURE__ */ import_react31.default.createElement(
|
4532
4542
|
"div",
|
4533
4543
|
{
|
4534
4544
|
ref: innerRef,
|
@@ -4549,7 +4559,7 @@ var Select = ({
|
|
4549
4559
|
...menuProps
|
4550
4560
|
}) => {
|
4551
4561
|
const menuOpen = menuProps.selectProps.menuIsOpen;
|
4552
|
-
return /* @__PURE__ */
|
4562
|
+
return /* @__PURE__ */ import_react31.default.createElement(
|
4553
4563
|
"div",
|
4554
4564
|
{
|
4555
4565
|
className: cn(
|
@@ -4563,7 +4573,7 @@ var Select = ({
|
|
4563
4573
|
children
|
4564
4574
|
);
|
4565
4575
|
};
|
4566
|
-
return /* @__PURE__ */
|
4576
|
+
return /* @__PURE__ */ import_react31.default.createElement(
|
4567
4577
|
"div",
|
4568
4578
|
{
|
4569
4579
|
className: cn(
|
@@ -4571,10 +4581,10 @@ var Select = ({
|
|
4571
4581
|
props.width === "fit" ? "hawa-w-fit" : "hawa-w-full"
|
4572
4582
|
)
|
4573
4583
|
},
|
4574
|
-
props.label && /* @__PURE__ */
|
4575
|
-
props.isLoading ? /* @__PURE__ */
|
4584
|
+
props.label && /* @__PURE__ */ import_react31.default.createElement(Label2, { ...labelProps }, props.label),
|
4585
|
+
props.isLoading ? /* @__PURE__ */ import_react31.default.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" }) : !props.isCreatable ? (
|
4576
4586
|
// TODO: enable keyboard to go to the next item in the list
|
4577
|
-
/* @__PURE__ */
|
4587
|
+
/* @__PURE__ */ import_react31.default.createElement(
|
4578
4588
|
import_react_select.default,
|
4579
4589
|
{
|
4580
4590
|
noOptionsMessage: NoOption,
|
@@ -4613,7 +4623,7 @@ var Select = ({
|
|
4613
4623
|
// {...e}
|
4614
4624
|
// />
|
4615
4625
|
// ),
|
4616
|
-
ValueContainer: (e) => /* @__PURE__ */
|
4626
|
+
ValueContainer: (e) => /* @__PURE__ */ import_react31.default.createElement(
|
4617
4627
|
"div",
|
4618
4628
|
{
|
4619
4629
|
className: cn(
|
@@ -4623,7 +4633,7 @@ var Select = ({
|
|
4623
4633
|
...e
|
4624
4634
|
}
|
4625
4635
|
),
|
4626
|
-
MultiValueContainer: (e) => /* @__PURE__ */
|
4636
|
+
MultiValueContainer: (e) => /* @__PURE__ */ import_react31.default.createElement(
|
4627
4637
|
"div",
|
4628
4638
|
{
|
4629
4639
|
className: cn(
|
@@ -4645,7 +4655,7 @@ var Select = ({
|
|
4645
4655
|
isSearchable: props.isSearchable
|
4646
4656
|
}
|
4647
4657
|
)
|
4648
|
-
) : /* @__PURE__ */
|
4658
|
+
) : /* @__PURE__ */ import_react31.default.createElement(
|
4649
4659
|
import_creatable.default,
|
4650
4660
|
{
|
4651
4661
|
formatCreateLabel: (inputValue) => {
|
@@ -4675,7 +4685,7 @@ var Select = ({
|
|
4675
4685
|
onInputChange: (newValue, action) => props.onInputChange(newValue, action)
|
4676
4686
|
}
|
4677
4687
|
),
|
4678
|
-
!props.hideHelperText && /* @__PURE__ */
|
4688
|
+
!props.hideHelperText && /* @__PURE__ */ import_react31.default.createElement(
|
4679
4689
|
"p",
|
4680
4690
|
{
|
4681
4691
|
className: cn(
|
@@ -4925,7 +4935,7 @@ var Progress = React46.forwardRef(({ className, value, ...props }, ref) => /* @_
|
|
4925
4935
|
Progress.displayName = ProgressPrimitive.Root.displayName;
|
4926
4936
|
|
4927
4937
|
// elements/breadcrumb/Breadcrumb.tsx
|
4928
|
-
var
|
4938
|
+
var import_react32 = __toESM(require("react"));
|
4929
4939
|
var Breadcrumb = ({
|
4930
4940
|
breadcrumbLinks,
|
4931
4941
|
separator = ">",
|
@@ -4936,7 +4946,7 @@ var Breadcrumb = ({
|
|
4936
4946
|
small: "hawa-text-sm",
|
4937
4947
|
xs: "hawa-text-xs"
|
4938
4948
|
};
|
4939
|
-
return /* @__PURE__ */
|
4949
|
+
return /* @__PURE__ */ import_react32.default.createElement(
|
4940
4950
|
"div",
|
4941
4951
|
{
|
4942
4952
|
className: cn(
|
@@ -4944,13 +4954,13 @@ var Breadcrumb = ({
|
|
4944
4954
|
textStyles[size]
|
4945
4955
|
)
|
4946
4956
|
},
|
4947
|
-
breadcrumbLinks.map((singleBreadcrumbLink, index) => /* @__PURE__ */
|
4957
|
+
breadcrumbLinks.map((singleBreadcrumbLink, index) => /* @__PURE__ */ import_react32.default.createElement(
|
4948
4958
|
"div",
|
4949
4959
|
{
|
4950
4960
|
key: index,
|
4951
4961
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-2"
|
4952
4962
|
},
|
4953
|
-
/* @__PURE__ */
|
4963
|
+
/* @__PURE__ */ import_react32.default.createElement(
|
4954
4964
|
"a",
|
4955
4965
|
{
|
4956
4966
|
href: singleBreadcrumbLink.href,
|
@@ -4958,49 +4968,49 @@ var Breadcrumb = ({
|
|
4958
4968
|
},
|
4959
4969
|
singleBreadcrumbLink.label
|
4960
4970
|
),
|
4961
|
-
index != breadcrumbLinks.length - 1 ? typeof separator == "string" ? /* @__PURE__ */
|
4971
|
+
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
4972
|
))
|
4963
4973
|
);
|
4964
4974
|
};
|
4965
4975
|
|
4966
4976
|
// elements/appStores/AppStores.tsx
|
4967
|
-
var
|
4977
|
+
var import_react33 = __toESM(require("react"));
|
4968
4978
|
var AppStores = (props) => {
|
4969
|
-
return /* @__PURE__ */
|
4979
|
+
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
4980
|
"path",
|
4971
4981
|
{
|
4972
4982
|
fill: "currentColor",
|
4973
4983
|
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
4984
|
}
|
4975
|
-
))), /* @__PURE__ */
|
4985
|
+
))), /* @__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
4986
|
"path",
|
4977
4987
|
{
|
4978
4988
|
fill: "#FFD400",
|
4979
4989
|
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
4990
|
}
|
4981
|
-
), /* @__PURE__ */
|
4991
|
+
), /* @__PURE__ */ import_react33.default.createElement(
|
4982
4992
|
"path",
|
4983
4993
|
{
|
4984
4994
|
fill: "#FF3333",
|
4985
4995
|
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
4996
|
}
|
4987
|
-
), /* @__PURE__ */
|
4997
|
+
), /* @__PURE__ */ import_react33.default.createElement(
|
4988
4998
|
"path",
|
4989
4999
|
{
|
4990
5000
|
fill: "#48FF48",
|
4991
5001
|
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
5002
|
}
|
4993
|
-
), /* @__PURE__ */
|
5003
|
+
), /* @__PURE__ */ import_react33.default.createElement(
|
4994
5004
|
"path",
|
4995
5005
|
{
|
4996
5006
|
fill: "#3BCCFF",
|
4997
5007
|
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
5008
|
}
|
4999
|
-
))), /* @__PURE__ */
|
5009
|
+
))), /* @__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
5010
|
};
|
5001
5011
|
|
5002
5012
|
// elements/badge/Badge.tsx
|
5003
|
-
var
|
5013
|
+
var import_react34 = __toESM(require("react"));
|
5004
5014
|
var Badge = ({
|
5005
5015
|
anchor,
|
5006
5016
|
position = "right",
|
@@ -5008,14 +5018,14 @@ var Badge = ({
|
|
5008
5018
|
text,
|
5009
5019
|
className
|
5010
5020
|
}) => {
|
5011
|
-
const [badgePosition, setBadgePosition] = (0,
|
5012
|
-
const indicatorRef = (0,
|
5021
|
+
const [badgePosition, setBadgePosition] = (0, import_react34.useState)(null);
|
5022
|
+
const indicatorRef = (0, import_react34.useRef)(null);
|
5013
5023
|
const sizeStyles2 = {
|
5014
5024
|
small: { top: 4, left: 6, right: 7, classes: "hawa-w-3 hawa-h-3" },
|
5015
5025
|
default: { top: 4, left: 7, right: 5, classes: "hawa-w-3 hawa-h-3" },
|
5016
5026
|
large: { top: 6, left: 12, right: 7, classes: "hawa-w-6 hawa-h-6" }
|
5017
5027
|
};
|
5018
|
-
(0,
|
5028
|
+
(0, import_react34.useEffect)(() => {
|
5019
5029
|
const handlePositioning = () => {
|
5020
5030
|
var _a;
|
5021
5031
|
if (anchor.current && indicatorRef.current) {
|
@@ -5038,7 +5048,7 @@ var Badge = ({
|
|
5038
5048
|
window.removeEventListener("resize", handlePositioning);
|
5039
5049
|
};
|
5040
5050
|
}, [anchor]);
|
5041
|
-
return /* @__PURE__ */
|
5051
|
+
return /* @__PURE__ */ import_react34.default.createElement("div", { ref: indicatorRef, className: cn("hawa-relative", className) }, badgePosition && /* @__PURE__ */ import_react34.default.createElement(
|
5042
5052
|
"div",
|
5043
5053
|
{
|
5044
5054
|
style: {
|
@@ -5063,8 +5073,8 @@ var BadgedComponent = ({
|
|
5063
5073
|
size,
|
5064
5074
|
text
|
5065
5075
|
}) => {
|
5066
|
-
const ref = (0,
|
5067
|
-
return /* @__PURE__ */
|
5076
|
+
const ref = (0, import_react34.useRef)(null);
|
5077
|
+
return /* @__PURE__ */ import_react34.default.createElement("div", { className: cn("hawa-relative hawa-w-fit", className), ref }, !hideBadge && /* @__PURE__ */ import_react34.default.createElement(
|
5068
5078
|
Badge,
|
5069
5079
|
{
|
5070
5080
|
size,
|
@@ -5077,7 +5087,7 @@ var BadgedComponent = ({
|
|
5077
5087
|
};
|
5078
5088
|
|
5079
5089
|
// elements/phoneInput/PhoneInput.tsx
|
5080
|
-
var
|
5090
|
+
var import_react35 = __toESM(require("react"));
|
5081
5091
|
|
5082
5092
|
// countries.ts
|
5083
5093
|
var countries = [
|
@@ -6779,9 +6789,9 @@ var PhoneInput = ({
|
|
6779
6789
|
countryCodes,
|
6780
6790
|
...props
|
6781
6791
|
}) => {
|
6782
|
-
const [phoneNumber, setPhoneNumber] = (0,
|
6783
|
-
const [countryCode, setCountryCode] = (0,
|
6784
|
-
const inputRef = (0,
|
6792
|
+
const [phoneNumber, setPhoneNumber] = (0, import_react35.useState)("");
|
6793
|
+
const [countryCode, setCountryCode] = (0, import_react35.useState)(props.preferredCountry);
|
6794
|
+
const inputRef = (0, import_react35.useRef)(null);
|
6785
6795
|
const handleInputChange = (e) => {
|
6786
6796
|
console.log("test e ", e.target.value);
|
6787
6797
|
const validChars = /^[0-9-()]+$/;
|
@@ -6795,7 +6805,7 @@ var PhoneInput = ({
|
|
6795
6805
|
console.log("handleChange prop was not provided in <PhoneInput/>");
|
6796
6806
|
}
|
6797
6807
|
};
|
6798
|
-
return /* @__PURE__ */
|
6808
|
+
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
6809
|
Select,
|
6800
6810
|
{
|
6801
6811
|
phoneCode: true,
|
@@ -6811,7 +6821,7 @@ var PhoneInput = ({
|
|
6811
6821
|
value: countryCode == null ? void 0 : countryCode.label,
|
6812
6822
|
defaultValue: props.preferredCountry
|
6813
6823
|
}
|
6814
|
-
), /* @__PURE__ */
|
6824
|
+
), /* @__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
6825
|
"input",
|
6816
6826
|
{
|
6817
6827
|
type: "tel",
|
@@ -6825,7 +6835,7 @@ var PhoneInput = ({
|
|
6825
6835
|
),
|
6826
6836
|
...inputProps
|
6827
6837
|
}
|
6828
|
-
))), /* @__PURE__ */
|
6838
|
+
))), /* @__PURE__ */ import_react35.default.createElement(
|
6829
6839
|
"p",
|
6830
6840
|
{
|
6831
6841
|
className: cn(
|
@@ -6838,7 +6848,7 @@ var PhoneInput = ({
|
|
6838
6848
|
};
|
6839
6849
|
|
6840
6850
|
// elements/pinInput/PinInput.tsx
|
6841
|
-
var
|
6851
|
+
var import_react36 = __toESM(require("react"));
|
6842
6852
|
var PinInput = ({
|
6843
6853
|
label,
|
6844
6854
|
icon,
|
@@ -6848,7 +6858,7 @@ var PinInput = ({
|
|
6848
6858
|
inputProps,
|
6849
6859
|
...props
|
6850
6860
|
}) => {
|
6851
|
-
const [pin, setPin] = (0,
|
6861
|
+
const [pin, setPin] = (0, import_react36.useState)(Array.from(Array(digits)));
|
6852
6862
|
const handleKeyDown = (e, index) => {
|
6853
6863
|
let backTo = 0;
|
6854
6864
|
if (e.key === "Backspace") {
|
@@ -6857,7 +6867,7 @@ var PinInput = ({
|
|
6857
6867
|
previousInput == null ? void 0 : previousInput.focus();
|
6858
6868
|
}
|
6859
6869
|
};
|
6860
|
-
(0,
|
6870
|
+
(0, import_react36.useEffect)(() => {
|
6861
6871
|
let unfilled = pin.includes(void 0);
|
6862
6872
|
if (!unfilled && getPins) {
|
6863
6873
|
getPins(pin);
|
@@ -6882,13 +6892,13 @@ var PinInput = ({
|
|
6882
6892
|
}
|
6883
6893
|
}
|
6884
6894
|
};
|
6885
|
-
return /* @__PURE__ */
|
6895
|
+
return /* @__PURE__ */ import_react36.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, /* @__PURE__ */ import_react36.default.createElement(
|
6886
6896
|
"div",
|
6887
6897
|
{
|
6888
6898
|
className: "hawa-flex hawa-w-full hawa-flex-row hawa-justify-center hawa-gap-2",
|
6889
6899
|
dir: "ltr"
|
6890
6900
|
},
|
6891
|
-
pin.map((value, index) => /* @__PURE__ */
|
6901
|
+
pin.map((value, index) => /* @__PURE__ */ import_react36.default.createElement(
|
6892
6902
|
"input",
|
6893
6903
|
{
|
6894
6904
|
key: index,
|
@@ -6908,7 +6918,7 @@ var PinInput = ({
|
|
6908
6918
|
...inputProps
|
6909
6919
|
}
|
6910
6920
|
))
|
6911
|
-
), /* @__PURE__ */
|
6921
|
+
), /* @__PURE__ */ import_react36.default.createElement(
|
6912
6922
|
"p",
|
6913
6923
|
{
|
6914
6924
|
className: cn(
|
@@ -6921,12 +6931,12 @@ var PinInput = ({
|
|
6921
6931
|
};
|
6922
6932
|
|
6923
6933
|
// elements/stopPropagationWrapper/StopPropagationWrapper.tsx
|
6924
|
-
var
|
6934
|
+
var import_react37 = __toESM(require("react"));
|
6925
6935
|
var StopPropagationWrapper = (props) => {
|
6926
6936
|
const handleClick = (e) => {
|
6927
6937
|
e.stopPropagation();
|
6928
6938
|
};
|
6929
|
-
return /* @__PURE__ */
|
6939
|
+
return /* @__PURE__ */ import_react37.default.createElement("div", { onClick: handleClick }, props.children);
|
6930
6940
|
};
|
6931
6941
|
|
6932
6942
|
// elements/scrollArea/ScrollArea.tsx
|
@@ -6970,7 +6980,7 @@ var ScrollBar = React53.forwardRef(({ className, orientation = "vertical", ...pr
|
|
6970
6980
|
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
6971
6981
|
|
6972
6982
|
// elements/colorPicker/ColorPicker.tsx
|
6973
|
-
var
|
6983
|
+
var import_react38 = __toESM(require("react"));
|
6974
6984
|
var ColorPicker = ({
|
6975
6985
|
containerProps,
|
6976
6986
|
colorPickerProps,
|
@@ -6981,8 +6991,8 @@ var ColorPicker = ({
|
|
6981
6991
|
preview = false,
|
6982
6992
|
...props
|
6983
6993
|
}) => {
|
6984
|
-
const [selectedColor, setSelectedColor] = (0,
|
6985
|
-
(0,
|
6994
|
+
const [selectedColor, setSelectedColor] = (0, import_react38.useState)(props.color);
|
6995
|
+
(0, import_react38.useEffect)(() => {
|
6986
6996
|
if (selectedColor && selectedColor[0] !== "#") {
|
6987
6997
|
setSelectedColor(`#${selectedColor}`);
|
6988
6998
|
}
|
@@ -6999,13 +7009,13 @@ var ColorPicker = ({
|
|
6999
7009
|
props.handleChange(e);
|
7000
7010
|
}
|
7001
7011
|
};
|
7002
|
-
return /* @__PURE__ */
|
7012
|
+
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
7013
|
"div",
|
7004
7014
|
{
|
7005
7015
|
style: { height: 40, backgroundColor: selectedColor },
|
7006
7016
|
className: "hawa-rounded-bl-lg hawa-rounded-tl-lg hawa-border"
|
7007
7017
|
},
|
7008
|
-
/* @__PURE__ */
|
7018
|
+
/* @__PURE__ */ import_react38.default.createElement(
|
7009
7019
|
"input",
|
7010
7020
|
{
|
7011
7021
|
disabled: preview,
|
@@ -7024,7 +7034,7 @@ var ColorPicker = ({
|
|
7024
7034
|
...colorPickerProps
|
7025
7035
|
}
|
7026
7036
|
)
|
7027
|
-
), /* @__PURE__ */
|
7037
|
+
), /* @__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
7038
|
"input",
|
7029
7039
|
{
|
7030
7040
|
disabled: preview,
|
@@ -7043,7 +7053,7 @@ var ColorPicker = ({
|
|
7043
7053
|
},
|
7044
7054
|
...textInputProps
|
7045
7055
|
}
|
7046
|
-
))), !forceHideHelperText && /* @__PURE__ */
|
7056
|
+
))), !forceHideHelperText && /* @__PURE__ */ import_react38.default.createElement(
|
7047
7057
|
"p",
|
7048
7058
|
{
|
7049
7059
|
className: cn(
|
@@ -7056,7 +7066,7 @@ var ColorPicker = ({
|
|
7056
7066
|
};
|
7057
7067
|
|
7058
7068
|
// elements/progressCircle/ProgressCircle.tsx
|
7059
|
-
var
|
7069
|
+
var import_react39 = __toESM(require("react"));
|
7060
7070
|
var size2config = {
|
7061
7071
|
xs: { radius: 15, strokeWidth: 3 },
|
7062
7072
|
sm: { radius: 19, strokeWidth: 4 },
|
@@ -7073,7 +7083,7 @@ function getLimitedValue(input) {
|
|
7073
7083
|
return input;
|
7074
7084
|
}
|
7075
7085
|
}
|
7076
|
-
var ProgressCircle =
|
7086
|
+
var ProgressCircle = import_react39.default.forwardRef((props, ref) => {
|
7077
7087
|
const {
|
7078
7088
|
value: inputValue,
|
7079
7089
|
size = "md",
|
@@ -7093,7 +7103,7 @@ var ProgressCircle = import_react38.default.forwardRef((props, ref) => {
|
|
7093
7103
|
const circumference = normalizedRadius * 2 * Math.PI;
|
7094
7104
|
const strokeDashoffset = value / 100 * circumference;
|
7095
7105
|
const offset = circumference - strokeDashoffset;
|
7096
|
-
return /* @__PURE__ */
|
7106
|
+
return /* @__PURE__ */ import_react39.default.createElement(import_react39.default.Fragment, null, /* @__PURE__ */ import_react39.default.createElement(
|
7097
7107
|
"div",
|
7098
7108
|
{
|
7099
7109
|
ref,
|
@@ -7102,7 +7112,7 @@ var ProgressCircle = import_react38.default.forwardRef((props, ref) => {
|
|
7102
7112
|
className
|
7103
7113
|
)
|
7104
7114
|
},
|
7105
|
-
/* @__PURE__ */
|
7115
|
+
/* @__PURE__ */ import_react39.default.createElement(
|
7106
7116
|
"svg",
|
7107
7117
|
{
|
7108
7118
|
width: radius * 2,
|
@@ -7110,7 +7120,7 @@ var ProgressCircle = import_react38.default.forwardRef((props, ref) => {
|
|
7110
7120
|
viewBox: `0 0 ${radius * 2} ${radius * 2}`,
|
7111
7121
|
className: "hawa-rotate-180 hawa-transform"
|
7112
7122
|
},
|
7113
|
-
/* @__PURE__ */
|
7123
|
+
/* @__PURE__ */ import_react39.default.createElement(
|
7114
7124
|
"circle",
|
7115
7125
|
{
|
7116
7126
|
r: normalizedRadius,
|
@@ -7126,7 +7136,7 @@ var ProgressCircle = import_react38.default.forwardRef((props, ref) => {
|
|
7126
7136
|
)
|
7127
7137
|
}
|
7128
7138
|
),
|
7129
|
-
value > 0 ? /* @__PURE__ */
|
7139
|
+
value > 0 ? /* @__PURE__ */ import_react39.default.createElement(
|
7130
7140
|
"circle",
|
7131
7141
|
{
|
7132
7142
|
r: normalizedRadius,
|
@@ -7146,24 +7156,24 @@ var ProgressCircle = import_react38.default.forwardRef((props, ref) => {
|
|
7146
7156
|
}
|
7147
7157
|
) : null
|
7148
7158
|
),
|
7149
|
-
/* @__PURE__ */
|
7159
|
+
/* @__PURE__ */ import_react39.default.createElement("div", { className: cn("hawa-absolute hawa-flex") }, children)
|
7150
7160
|
));
|
7151
7161
|
});
|
7152
7162
|
ProgressCircle.displayName = "ProgressCircle";
|
7153
7163
|
|
7154
7164
|
// elements/pagination/Pagination.tsx
|
7155
|
-
var
|
7165
|
+
var import_react40 = __toESM(require("react"));
|
7156
7166
|
var import_react_headless_pagination = require("react-headless-pagination");
|
7157
7167
|
var Pagination = ({
|
7158
7168
|
direction,
|
7159
7169
|
totalPages,
|
7160
7170
|
currentPage
|
7161
7171
|
}) => {
|
7162
|
-
const [page, setPage] =
|
7172
|
+
const [page, setPage] = import_react40.default.useState(currentPage || 0);
|
7163
7173
|
const handlePageChange = (page2) => {
|
7164
7174
|
setPage(page2);
|
7165
7175
|
};
|
7166
|
-
return /* @__PURE__ */
|
7176
|
+
return /* @__PURE__ */ import_react40.default.createElement(
|
7167
7177
|
import_react_headless_pagination.Pagination,
|
7168
7178
|
{
|
7169
7179
|
totalPages,
|
@@ -7175,10 +7185,10 @@ var Pagination = ({
|
|
7175
7185
|
truncableText: "...",
|
7176
7186
|
truncableClassName: "hawa-w-10 hawa-px-0.5 hawa-text-center"
|
7177
7187
|
},
|
7178
|
-
/* @__PURE__ */
|
7188
|
+
/* @__PURE__ */ import_react40.default.createElement(
|
7179
7189
|
import_react_headless_pagination.Pagination.PrevButton,
|
7180
7190
|
{
|
7181
|
-
as: /* @__PURE__ */
|
7191
|
+
as: /* @__PURE__ */ import_react40.default.createElement(
|
7182
7192
|
"button",
|
7183
7193
|
{
|
7184
7194
|
"aria-label": "Previous Table Page",
|
@@ -7188,7 +7198,7 @@ var Pagination = ({
|
|
7188
7198
|
),
|
7189
7199
|
style: { minWidth: 36 }
|
7190
7200
|
},
|
7191
|
-
/* @__PURE__ */
|
7201
|
+
/* @__PURE__ */ import_react40.default.createElement(
|
7192
7202
|
"svg",
|
7193
7203
|
{
|
7194
7204
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -7201,7 +7211,7 @@ var Pagination = ({
|
|
7201
7211
|
strokeLinecap: "round",
|
7202
7212
|
strokeLinejoin: "round"
|
7203
7213
|
},
|
7204
|
-
/* @__PURE__ */
|
7214
|
+
/* @__PURE__ */ import_react40.default.createElement("path", { d: "m15 18-6-6 6-6" })
|
7205
7215
|
)
|
7206
7216
|
),
|
7207
7217
|
className: cn(
|
@@ -7214,17 +7224,17 @@ var Pagination = ({
|
|
7214
7224
|
},
|
7215
7225
|
"Previous"
|
7216
7226
|
),
|
7217
|
-
/* @__PURE__ */
|
7227
|
+
/* @__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
7228
|
import_react_headless_pagination.Pagination.PageButton,
|
7219
7229
|
{
|
7220
7230
|
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
7231
|
activeClassName: "hawa-bg-primary hawa-text-primary-foreground hawa-transition-all"
|
7222
7232
|
}
|
7223
7233
|
))),
|
7224
|
-
/* @__PURE__ */
|
7234
|
+
/* @__PURE__ */ import_react40.default.createElement(
|
7225
7235
|
import_react_headless_pagination.Pagination.NextButton,
|
7226
7236
|
{
|
7227
|
-
as: /* @__PURE__ */
|
7237
|
+
as: /* @__PURE__ */ import_react40.default.createElement(
|
7228
7238
|
"button",
|
7229
7239
|
{
|
7230
7240
|
"aria-label": "Previous Table Page",
|
@@ -7234,7 +7244,7 @@ var Pagination = ({
|
|
7234
7244
|
),
|
7235
7245
|
style: { minWidth: 36 }
|
7236
7246
|
},
|
7237
|
-
/* @__PURE__ */
|
7247
|
+
/* @__PURE__ */ import_react40.default.createElement(
|
7238
7248
|
"svg",
|
7239
7249
|
{
|
7240
7250
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -7247,7 +7257,7 @@ var Pagination = ({
|
|
7247
7257
|
strokeLinecap: "round",
|
7248
7258
|
strokeLinejoin: "round"
|
7249
7259
|
},
|
7250
|
-
/* @__PURE__ */
|
7260
|
+
/* @__PURE__ */ import_react40.default.createElement("path", { d: "m15 18-6-6 6-6" })
|
7251
7261
|
)
|
7252
7262
|
),
|
7253
7263
|
className: cn(
|
@@ -7264,14 +7274,14 @@ var Pagination = ({
|
|
7264
7274
|
};
|
7265
7275
|
|
7266
7276
|
// elements/passwordInput/PasswordInput.tsx
|
7267
|
-
var
|
7277
|
+
var import_react44 = __toESM(require("react"));
|
7268
7278
|
|
7269
7279
|
// icons/Emojis.tsx
|
7270
|
-
var
|
7280
|
+
var import_react41 = __toESM(require("react"));
|
7271
7281
|
|
7272
7282
|
// icons/InputIcons.tsx
|
7273
|
-
var
|
7274
|
-
var EyeIcon = (props) => /* @__PURE__ */
|
7283
|
+
var import_react42 = __toESM(require("react"));
|
7284
|
+
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
7285
|
"svg",
|
7276
7286
|
{
|
7277
7287
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -7282,10 +7292,10 @@ var EyeIcon = (props) => /* @__PURE__ */ import_react41.default.createElement("d
|
|
7282
7292
|
strokeLinecap: "round",
|
7283
7293
|
strokeLinejoin: "round"
|
7284
7294
|
},
|
7285
|
-
/* @__PURE__ */
|
7286
|
-
/* @__PURE__ */
|
7295
|
+
/* @__PURE__ */ import_react42.default.createElement("path", { d: "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z" }),
|
7296
|
+
/* @__PURE__ */ import_react42.default.createElement("circle", { cx: "12", cy: "12", r: "3" })
|
7287
7297
|
));
|
7288
|
-
var HiddenEyeIcon = (props) => /* @__PURE__ */
|
7298
|
+
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
7299
|
"svg",
|
7290
7300
|
{
|
7291
7301
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -7296,20 +7306,20 @@ var HiddenEyeIcon = (props) => /* @__PURE__ */ import_react41.default.createElem
|
|
7296
7306
|
strokeLinecap: "round",
|
7297
7307
|
strokeLinejoin: "round"
|
7298
7308
|
},
|
7299
|
-
/* @__PURE__ */
|
7300
|
-
/* @__PURE__ */
|
7301
|
-
/* @__PURE__ */
|
7302
|
-
/* @__PURE__ */
|
7309
|
+
/* @__PURE__ */ import_react42.default.createElement("path", { d: "M9.88 9.88a3 3 0 1 0 4.24 4.24" }),
|
7310
|
+
/* @__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" }),
|
7311
|
+
/* @__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" }),
|
7312
|
+
/* @__PURE__ */ import_react42.default.createElement("line", { x1: "2", x2: "22", y1: "2", y2: "22" })
|
7303
7313
|
));
|
7304
7314
|
|
7305
7315
|
// icons/CommonIcons.tsx
|
7306
|
-
var
|
7316
|
+
var import_react43 = __toESM(require("react"));
|
7307
7317
|
var CheckMark = ({ size = "default", className }) => {
|
7308
7318
|
let sizeStyles2 = {
|
7309
7319
|
default: "hawa-h-5 hawa-w-5",
|
7310
7320
|
sm: "hawa-h-3 hawa-w-3"
|
7311
7321
|
};
|
7312
|
-
return /* @__PURE__ */
|
7322
|
+
return /* @__PURE__ */ import_react43.default.createElement(
|
7313
7323
|
"svg",
|
7314
7324
|
{
|
7315
7325
|
className: cn(sizeStyles2[size], className),
|
@@ -7317,7 +7327,7 @@ var CheckMark = ({ size = "default", className }) => {
|
|
7317
7327
|
fill: "currentColor",
|
7318
7328
|
viewBox: "0 0 20 20"
|
7319
7329
|
},
|
7320
|
-
/* @__PURE__ */
|
7330
|
+
/* @__PURE__ */ import_react43.default.createElement(
|
7321
7331
|
"path",
|
7322
7332
|
{
|
7323
7333
|
fillRule: "evenodd",
|
@@ -7332,7 +7342,7 @@ var UncheckMark = ({ size = "default", className }) => {
|
|
7332
7342
|
default: "hawa-h-5 hawa-w-5",
|
7333
7343
|
sm: "hawa-h-3 hawa-w-3"
|
7334
7344
|
};
|
7335
|
-
return /* @__PURE__ */
|
7345
|
+
return /* @__PURE__ */ import_react43.default.createElement(
|
7336
7346
|
"svg",
|
7337
7347
|
{
|
7338
7348
|
className: cn(sizeStyles2[size], className),
|
@@ -7340,7 +7350,7 @@ var UncheckMark = ({ size = "default", className }) => {
|
|
7340
7350
|
fill: "currentColor",
|
7341
7351
|
viewBox: "0 0 20 20"
|
7342
7352
|
},
|
7343
|
-
/* @__PURE__ */
|
7353
|
+
/* @__PURE__ */ import_react43.default.createElement(
|
7344
7354
|
"path",
|
7345
7355
|
{
|
7346
7356
|
fillRule: "evenodd",
|
@@ -7378,7 +7388,7 @@ var PasswordStrengthIndicator = ({ strength }) => {
|
|
7378
7388
|
strong: "80%",
|
7379
7389
|
"very-strong": "100%"
|
7380
7390
|
}[currentStrengthLevel];
|
7381
|
-
return /* @__PURE__ */
|
7391
|
+
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
7392
|
"div",
|
7383
7393
|
{
|
7384
7394
|
className: `${strengthColors[currentStrengthLevel]} hawa-h-full hawa-rounded hawa-transition-all hawa-duration-300`,
|
@@ -7390,16 +7400,16 @@ var PasswordInput = ({
|
|
7390
7400
|
hidePopover,
|
7391
7401
|
...props
|
7392
7402
|
}) => {
|
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,
|
7403
|
+
const [inputValue, setInputValue] = (0, import_react44.useState)("");
|
7404
|
+
const [isInputFocused, setIsInputFocused] = (0, import_react44.useState)(false);
|
7405
|
+
const [currentStr, setCurrentStr] = (0, import_react44.useState)(0);
|
7406
|
+
const [passwordVisible, setPasswordVisible] = (0, import_react44.useState)(false);
|
7407
|
+
const [lengthCriteriaMet, setLengthCriteriaMet] = (0, import_react44.useState)(false);
|
7408
|
+
const [numberCriteriaMet, setNumberCriteriaMet] = (0, import_react44.useState)(false);
|
7409
|
+
const [specialCharCriteriaMet, setSpecialCharCriteriaMet] = (0, import_react44.useState)(false);
|
7410
|
+
const [lowercaseCriteriaMet, setLowercaseCriteriaMet] = (0, import_react44.useState)(false);
|
7411
|
+
const [uppercaseCriteriaMet, setUppercaseCriteriaMet] = (0, import_react44.useState)(false);
|
7412
|
+
(0, import_react44.useEffect)(() => {
|
7403
7413
|
const calculateStrength = () => {
|
7404
7414
|
let strengthScore = 0;
|
7405
7415
|
if (lengthCriteriaMet)
|
@@ -7438,7 +7448,7 @@ var PasswordInput = ({
|
|
7438
7448
|
setIsInputFocused(false);
|
7439
7449
|
};
|
7440
7450
|
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__ */
|
7451
|
+
return /* @__PURE__ */ import_react44.default.createElement("div", null, /* @__PURE__ */ import_react44.default.createElement(
|
7442
7452
|
Popover,
|
7443
7453
|
{
|
7444
7454
|
width: "trigger",
|
@@ -7447,7 +7457,7 @@ var PasswordInput = ({
|
|
7447
7457
|
onOpenChange: setIsInputFocused,
|
7448
7458
|
triggerProps: { asChild: true },
|
7449
7459
|
contentProps: { onOpenAutoFocus: (e) => e.preventDefault() },
|
7450
|
-
trigger: /* @__PURE__ */
|
7460
|
+
trigger: /* @__PURE__ */ import_react44.default.createElement(
|
7451
7461
|
"div",
|
7452
7462
|
{
|
7453
7463
|
onClick: (e) => {
|
@@ -7457,7 +7467,7 @@ var PasswordInput = ({
|
|
7457
7467
|
}
|
7458
7468
|
}
|
7459
7469
|
},
|
7460
|
-
/* @__PURE__ */
|
7470
|
+
/* @__PURE__ */ import_react44.default.createElement(
|
7461
7471
|
Input,
|
7462
7472
|
{
|
7463
7473
|
width: "full",
|
@@ -7467,21 +7477,21 @@ var PasswordInput = ({
|
|
7467
7477
|
onFocus: handleInputFocus,
|
7468
7478
|
onBlur: handleInputBlur,
|
7469
7479
|
type: passwordVisible ? "text" : "password",
|
7470
|
-
endIcon: /* @__PURE__ */
|
7480
|
+
endIcon: /* @__PURE__ */ import_react44.default.createElement(
|
7471
7481
|
"div",
|
7472
7482
|
{
|
7473
7483
|
className: "hawa-cursor-pointer",
|
7474
7484
|
onClick: () => setPasswordVisible(!passwordVisible)
|
7475
7485
|
},
|
7476
|
-
passwordVisible ? /* @__PURE__ */
|
7486
|
+
passwordVisible ? /* @__PURE__ */ import_react44.default.createElement(EyeIcon, { className: "hawa-text-gray-500" }) : /* @__PURE__ */ import_react44.default.createElement(HiddenEyeIcon, { className: "hawa-text-gray-500" }),
|
7477
7487
|
" "
|
7478
7488
|
)
|
7479
7489
|
}
|
7480
7490
|
)
|
7481
7491
|
)
|
7482
7492
|
},
|
7483
|
-
/* @__PURE__ */
|
7484
|
-
), /* @__PURE__ */
|
7493
|
+
/* @__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")))
|
7494
|
+
), /* @__PURE__ */ import_react44.default.createElement(PasswordStrengthIndicator, { strength: currentStr }));
|
7485
7495
|
};
|
7486
7496
|
|
7487
7497
|
// elements/slider/Slider.tsx
|
@@ -7596,12 +7606,12 @@ var Separator2 = ({
|
|
7596
7606
|
);
|
7597
7607
|
|
7598
7608
|
// elements/scrollIndicator/ScrollIndicator.tsx
|
7599
|
-
var
|
7609
|
+
var import_react45 = __toESM(require("react"));
|
7600
7610
|
var ScrollIndicator = ({
|
7601
7611
|
anchor,
|
7602
7612
|
inContainer = false
|
7603
7613
|
}) => {
|
7604
|
-
const [scrollPercentage, setScrollPercentage] = (0,
|
7614
|
+
const [scrollPercentage, setScrollPercentage] = (0, import_react45.useState)(0);
|
7605
7615
|
const onScroll = () => {
|
7606
7616
|
const scrollElement = anchor.current;
|
7607
7617
|
if (scrollElement) {
|
@@ -7612,7 +7622,7 @@ var ScrollIndicator = ({
|
|
7612
7622
|
setScrollPercentage(percentageScrolled);
|
7613
7623
|
}
|
7614
7624
|
};
|
7615
|
-
(0,
|
7625
|
+
(0, import_react45.useEffect)(() => {
|
7616
7626
|
if (!anchor.current)
|
7617
7627
|
return;
|
7618
7628
|
anchor.current.addEventListener("scroll", onScroll);
|
@@ -7621,7 +7631,7 @@ var ScrollIndicator = ({
|
|
7621
7631
|
(_a = anchor.current) == null ? void 0 : _a.removeEventListener("scroll", onScroll);
|
7622
7632
|
};
|
7623
7633
|
}, [anchor]);
|
7624
|
-
return /* @__PURE__ */
|
7634
|
+
return /* @__PURE__ */ import_react45.default.createElement(
|
7625
7635
|
"div",
|
7626
7636
|
{
|
7627
7637
|
style: {
|
@@ -7637,11 +7647,11 @@ var ScrollIndicator = ({
|
|
7637
7647
|
};
|
7638
7648
|
|
7639
7649
|
// elements/codeBlock/CodeBlock.tsx
|
7640
|
-
var
|
7650
|
+
var import_react46 = __toESM(require("react"));
|
7641
7651
|
var import_prism_react_renderer = require("prism-react-renderer");
|
7642
7652
|
(typeof global !== "undefined" ? global : window).Prism = import_prism_react_renderer.Prism;
|
7643
7653
|
require("prismjs/components/prism-bash");
|
7644
|
-
var CopyIcon = () => /* @__PURE__ */
|
7654
|
+
var CopyIcon = () => /* @__PURE__ */ import_react46.default.createElement(
|
7645
7655
|
"svg",
|
7646
7656
|
{
|
7647
7657
|
"aria-label": "Copy",
|
@@ -7654,8 +7664,8 @@ var CopyIcon = () => /* @__PURE__ */ import_react45.default.createElement(
|
|
7654
7664
|
height: "1em",
|
7655
7665
|
width: "1em"
|
7656
7666
|
},
|
7657
|
-
/* @__PURE__ */
|
7658
|
-
/* @__PURE__ */
|
7667
|
+
/* @__PURE__ */ import_react46.default.createElement("rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2" }),
|
7668
|
+
/* @__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
7669
|
);
|
7660
7670
|
var CodeBlock = ({
|
7661
7671
|
tabs,
|
@@ -7669,7 +7679,7 @@ var CodeBlock = ({
|
|
7669
7679
|
...props
|
7670
7680
|
}) => {
|
7671
7681
|
const clipboard = useClipboard();
|
7672
|
-
const [selectedTab, setSelectedTab] = (0,
|
7682
|
+
const [selectedTab, setSelectedTab] = (0, import_react46.useState)(0);
|
7673
7683
|
const theme = import_prism_react_renderer.themes.oceanicNext;
|
7674
7684
|
let widthStyles = {
|
7675
7685
|
full: "hawa-w-full",
|
@@ -7677,7 +7687,7 @@ var CodeBlock = ({
|
|
7677
7687
|
sm: "hawa-w-full hawa-max-w-sm",
|
7678
7688
|
xs: "hawa-w-full hawa-max-w-xs"
|
7679
7689
|
};
|
7680
|
-
return /* @__PURE__ */
|
7690
|
+
return /* @__PURE__ */ import_react46.default.createElement(
|
7681
7691
|
"div",
|
7682
7692
|
{
|
7683
7693
|
className: cn(
|
@@ -7686,7 +7696,7 @@ var CodeBlock = ({
|
|
7686
7696
|
classNames == null ? void 0 : classNames.root
|
7687
7697
|
)
|
7688
7698
|
},
|
7689
|
-
fileName && /* @__PURE__ */
|
7699
|
+
fileName && /* @__PURE__ */ import_react46.default.createElement(
|
7690
7700
|
"div",
|
7691
7701
|
{
|
7692
7702
|
className: cn(
|
@@ -7695,7 +7705,7 @@ var CodeBlock = ({
|
|
7695
7705
|
classNames == null ? void 0 : classNames.fileName
|
7696
7706
|
)
|
7697
7707
|
},
|
7698
|
-
/* @__PURE__ */
|
7708
|
+
/* @__PURE__ */ import_react46.default.createElement(
|
7699
7709
|
"div",
|
7700
7710
|
{
|
7701
7711
|
className: cn(
|
@@ -7705,7 +7715,7 @@ var CodeBlock = ({
|
|
7705
7715
|
fileName
|
7706
7716
|
)
|
7707
7717
|
),
|
7708
|
-
tabs && /* @__PURE__ */
|
7718
|
+
tabs && /* @__PURE__ */ import_react46.default.createElement(
|
7709
7719
|
"div",
|
7710
7720
|
{
|
7711
7721
|
className: cn(
|
@@ -7714,7 +7724,7 @@ var CodeBlock = ({
|
|
7714
7724
|
classNames == null ? void 0 : classNames.tabs
|
7715
7725
|
)
|
7716
7726
|
},
|
7717
|
-
tabs.map((tab, i) => /* @__PURE__ */
|
7727
|
+
tabs.map((tab, i) => /* @__PURE__ */ import_react46.default.createElement(
|
7718
7728
|
"div",
|
7719
7729
|
{
|
7720
7730
|
key: i,
|
@@ -7723,7 +7733,7 @@ var CodeBlock = ({
|
|
7723
7733
|
classNames == null ? void 0 : classNames.tab
|
7724
7734
|
)
|
7725
7735
|
},
|
7726
|
-
/* @__PURE__ */
|
7736
|
+
/* @__PURE__ */ import_react46.default.createElement(
|
7727
7737
|
"div",
|
7728
7738
|
{
|
7729
7739
|
onClick: () => setSelectedTab(i),
|
@@ -7735,7 +7745,7 @@ var CodeBlock = ({
|
|
7735
7745
|
)
|
7736
7746
|
))
|
7737
7747
|
),
|
7738
|
-
/* @__PURE__ */
|
7748
|
+
/* @__PURE__ */ import_react46.default.createElement(
|
7739
7749
|
"div",
|
7740
7750
|
{
|
7741
7751
|
className: cn(
|
@@ -7745,22 +7755,22 @@ var CodeBlock = ({
|
|
7745
7755
|
"hawa-overflow-y-auto"
|
7746
7756
|
)
|
7747
7757
|
},
|
7748
|
-
/* @__PURE__ */
|
7758
|
+
/* @__PURE__ */ import_react46.default.createElement(
|
7749
7759
|
"div",
|
7750
7760
|
{
|
7751
7761
|
className: cn(
|
7752
7762
|
"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
7763
|
)
|
7754
7764
|
},
|
7755
|
-
/* @__PURE__ */
|
7765
|
+
/* @__PURE__ */ import_react46.default.createElement(
|
7756
7766
|
Tooltip,
|
7757
7767
|
{
|
7758
7768
|
open: clipboard.copied,
|
7759
7769
|
side: "left",
|
7760
|
-
content: /* @__PURE__ */
|
7770
|
+
content: /* @__PURE__ */ import_react46.default.createElement("div", null, "Copied!"),
|
7761
7771
|
triggerProps: { asChild: true }
|
7762
7772
|
},
|
7763
|
-
/* @__PURE__ */
|
7773
|
+
/* @__PURE__ */ import_react46.default.createElement(
|
7764
7774
|
Button,
|
7765
7775
|
{
|
7766
7776
|
size: "smallIcon",
|
@@ -7768,18 +7778,18 @@ var CodeBlock = ({
|
|
7768
7778
|
variant: "outline",
|
7769
7779
|
className: "hawa-text-gray-200 hawa-opacity-50 dark:hawa-border-gray-200 dark:hover:hawa-border-gray-400"
|
7770
7780
|
},
|
7771
|
-
/* @__PURE__ */
|
7781
|
+
/* @__PURE__ */ import_react46.default.createElement(CopyIcon, null)
|
7772
7782
|
)
|
7773
7783
|
)
|
7774
7784
|
),
|
7775
|
-
/* @__PURE__ */
|
7785
|
+
/* @__PURE__ */ import_react46.default.createElement(
|
7776
7786
|
import_prism_react_renderer.Highlight,
|
7777
7787
|
{
|
7778
7788
|
theme,
|
7779
7789
|
code: tabs ? tabs[selectedTab].code : code || "",
|
7780
7790
|
language
|
7781
7791
|
},
|
7782
|
-
({ tokens, getLineProps, getTokenProps }) => /* @__PURE__ */
|
7792
|
+
({ tokens, getLineProps, getTokenProps }) => /* @__PURE__ */ import_react46.default.createElement(
|
7783
7793
|
"pre",
|
7784
7794
|
{
|
7785
7795
|
className: cn(
|
@@ -7789,7 +7799,7 @@ var CodeBlock = ({
|
|
7789
7799
|
wrapText && "hawa-text-wrap"
|
7790
7800
|
)
|
7791
7801
|
},
|
7792
|
-
tokens.map((line, i) => /* @__PURE__ */
|
7802
|
+
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
7803
|
)
|
7794
7804
|
)
|
7795
7805
|
)
|
@@ -7797,7 +7807,7 @@ var CodeBlock = ({
|
|
7797
7807
|
};
|
7798
7808
|
|
7799
7809
|
// elements/carousel/Carousel.tsx
|
7800
|
-
var
|
7810
|
+
var import_react47 = __toESM(require("react"));
|
7801
7811
|
var import_embla_carousel_react2 = __toESM(require("embla-carousel-react"));
|
7802
7812
|
var Carousel = ({
|
7803
7813
|
items,
|
@@ -7813,8 +7823,8 @@ var Carousel = ({
|
|
7813
7823
|
direction,
|
7814
7824
|
loop: autoplay ? true : (options == null ? void 0 : options.loop) || false
|
7815
7825
|
});
|
7816
|
-
const [selectedIndex, setSelectedIndex] = (0,
|
7817
|
-
(0,
|
7826
|
+
const [selectedIndex, setSelectedIndex] = (0, import_react47.useState)(0);
|
7827
|
+
(0, import_react47.useEffect)(() => {
|
7818
7828
|
function selectHandler() {
|
7819
7829
|
const index = emblaApi == null ? void 0 : emblaApi.selectedScrollSnap();
|
7820
7830
|
setSelectedIndex(index || 0);
|
@@ -7824,7 +7834,7 @@ var Carousel = ({
|
|
7824
7834
|
emblaApi == null ? void 0 : emblaApi.off("select", selectHandler);
|
7825
7835
|
};
|
7826
7836
|
}, [emblaApi]);
|
7827
|
-
(0,
|
7837
|
+
(0, import_react47.useEffect)(() => {
|
7828
7838
|
let autoplayTimer;
|
7829
7839
|
if (autoplay && emblaApi) {
|
7830
7840
|
autoplayTimer = setInterval(() => {
|
@@ -7836,17 +7846,17 @@ var Carousel = ({
|
|
7836
7846
|
clearInterval(autoplayTimer);
|
7837
7847
|
};
|
7838
7848
|
}, [emblaApi, autoplay, autoplayInterval]);
|
7839
|
-
const length =
|
7849
|
+
const length = import_react47.default.Children.count(items);
|
7840
7850
|
const canScrollNext = !!(emblaApi == null ? void 0 : emblaApi.canScrollNext());
|
7841
7851
|
const canScrollPrev = !!(emblaApi == null ? void 0 : emblaApi.canScrollPrev());
|
7842
|
-
return /* @__PURE__ */
|
7852
|
+
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
7853
|
"div",
|
7844
7854
|
{
|
7845
7855
|
key: i,
|
7846
7856
|
className: "hawa-flex hawa-h-full hawa-min-w-0 hawa-flex-[0_0_100%] hawa-items-center hawa-justify-center"
|
7847
7857
|
},
|
7848
7858
|
item
|
7849
|
-
))))), /* @__PURE__ */
|
7859
|
+
))))), /* @__PURE__ */ import_react47.default.createElement(
|
7850
7860
|
Dots,
|
7851
7861
|
{
|
7852
7862
|
direction,
|
@@ -7854,7 +7864,7 @@ var Carousel = ({
|
|
7854
7864
|
selectedIndex,
|
7855
7865
|
onDotClick: (index) => emblaApi == null ? void 0 : emblaApi.scrollTo(index)
|
7856
7866
|
}
|
7857
|
-
), showArrows && /* @__PURE__ */
|
7867
|
+
), showArrows && /* @__PURE__ */ import_react47.default.createElement(
|
7858
7868
|
CarouselControls,
|
7859
7869
|
{
|
7860
7870
|
canScrollNext,
|
@@ -7871,7 +7881,7 @@ var Dots = ({
|
|
7871
7881
|
direction
|
7872
7882
|
}) => {
|
7873
7883
|
const arr = new Array(itemsLength).fill(0);
|
7874
|
-
return /* @__PURE__ */
|
7884
|
+
return /* @__PURE__ */ import_react47.default.createElement(
|
7875
7885
|
"div",
|
7876
7886
|
{
|
7877
7887
|
dir: direction,
|
@@ -7879,7 +7889,7 @@ var Dots = ({
|
|
7879
7889
|
},
|
7880
7890
|
arr.map((_, index) => {
|
7881
7891
|
const selected = index === selectedIndex;
|
7882
|
-
return /* @__PURE__ */
|
7892
|
+
return /* @__PURE__ */ import_react47.default.createElement(
|
7883
7893
|
"div",
|
7884
7894
|
{
|
7885
7895
|
key: index,
|
@@ -7894,7 +7904,7 @@ var Dots = ({
|
|
7894
7904
|
);
|
7895
7905
|
};
|
7896
7906
|
var CarouselControls = (props) => {
|
7897
|
-
return /* @__PURE__ */
|
7907
|
+
return /* @__PURE__ */ import_react47.default.createElement("div", { className: "hawa-flex hawa-justify-end hawa-gap-2 " }, /* @__PURE__ */ import_react47.default.createElement(
|
7898
7908
|
"button",
|
7899
7909
|
{
|
7900
7910
|
onClick: () => props.canScrollPrev && props.onPrev(),
|
@@ -7905,7 +7915,7 @@ var CarouselControls = (props) => {
|
|
7905
7915
|
props.canScrollPrev && "hawa-bg-primary"
|
7906
7916
|
)
|
7907
7917
|
},
|
7908
|
-
/* @__PURE__ */
|
7918
|
+
/* @__PURE__ */ import_react47.default.createElement(
|
7909
7919
|
"svg",
|
7910
7920
|
{
|
7911
7921
|
"aria-label": "Chevron Right Icon",
|
@@ -7914,9 +7924,9 @@ var CarouselControls = (props) => {
|
|
7914
7924
|
viewBox: "0 0 16 16",
|
7915
7925
|
className: "hawa-h-2 hawa-w-2 hawa-shrink-0 hawa-rotate-180 hawa-transition-transform hawa-duration-200 "
|
7916
7926
|
},
|
7917
|
-
/* @__PURE__ */
|
7927
|
+
/* @__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
7928
|
)
|
7919
|
-
), /* @__PURE__ */
|
7929
|
+
), /* @__PURE__ */ import_react47.default.createElement(
|
7920
7930
|
"button",
|
7921
7931
|
{
|
7922
7932
|
onClick: () => props.canScrollNext && props.onNext(),
|
@@ -7927,7 +7937,7 @@ var CarouselControls = (props) => {
|
|
7927
7937
|
props.canScrollNext && "hawa-bg-primary"
|
7928
7938
|
)
|
7929
7939
|
},
|
7930
|
-
/* @__PURE__ */
|
7940
|
+
/* @__PURE__ */ import_react47.default.createElement(
|
7931
7941
|
"svg",
|
7932
7942
|
{
|
7933
7943
|
"aria-label": "Chevron Right Icon",
|
@@ -7936,15 +7946,15 @@ var CarouselControls = (props) => {
|
|
7936
7946
|
viewBox: "0 0 16 16",
|
7937
7947
|
className: "hawa-h-2 hawa-w-2 hawa-shrink-0 hawa-transition-transform hawa-duration-200 "
|
7938
7948
|
},
|
7939
|
-
/* @__PURE__ */
|
7949
|
+
/* @__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
7950
|
)
|
7941
7951
|
));
|
7942
7952
|
};
|
7943
7953
|
|
7944
7954
|
// elements/count/Count.tsx
|
7945
|
-
var
|
7955
|
+
var import_react48 = __toESM(require("react"));
|
7946
7956
|
var Count = (props) => {
|
7947
|
-
return /* @__PURE__ */
|
7957
|
+
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
7958
|
};
|
7949
7959
|
|
7950
7960
|
// elements/toast/Toast.tsx
|
@@ -8085,11 +8095,11 @@ var ToastDescription = React68.forwardRef(({ className, size = "default", ...pro
|
|
8085
8095
|
ToastDescription.displayName = ToastPrimitives.Description.displayName;
|
8086
8096
|
|
8087
8097
|
// elements/toaster/Toaster.tsx
|
8088
|
-
var
|
8098
|
+
var import_react49 = __toESM(require("react"));
|
8089
8099
|
function Toaster(props) {
|
8090
8100
|
var _a;
|
8091
8101
|
let isRTL = props.direction === "rtl";
|
8092
|
-
return /* @__PURE__ */
|
8102
|
+
return /* @__PURE__ */ import_react49.default.createElement(ToastProvider, { swipeDirection: isRTL ? "left" : "right" }, (_a = props.toasts) == null ? void 0 : _a.map(function({
|
8093
8103
|
id,
|
8094
8104
|
title,
|
8095
8105
|
description,
|
@@ -8097,7 +8107,7 @@ function Toaster(props) {
|
|
8097
8107
|
action,
|
8098
8108
|
...toastProps
|
8099
8109
|
}) {
|
8100
|
-
return /* @__PURE__ */
|
8110
|
+
return /* @__PURE__ */ import_react49.default.createElement(Toast, { direction: props.direction, key: id, ...toastProps }, /* @__PURE__ */ import_react49.default.createElement(
|
8101
8111
|
"div",
|
8102
8112
|
{
|
8103
8113
|
className: cn(
|
@@ -8105,9 +8115,9 @@ function Toaster(props) {
|
|
8105
8115
|
action && "hawa-justify-between"
|
8106
8116
|
)
|
8107
8117
|
},
|
8108
|
-
/* @__PURE__ */
|
8109
|
-
/* @__PURE__ */
|
8110
|
-
/* @__PURE__ */
|
8118
|
+
/* @__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)),
|
8119
|
+
/* @__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" }),
|
8120
|
+
/* @__PURE__ */ import_react49.default.createElement(
|
8111
8121
|
"div",
|
8112
8122
|
{
|
8113
8123
|
className: cn(
|
@@ -8115,11 +8125,11 @@ function Toaster(props) {
|
|
8115
8125
|
{ "hawa-p-4": size === "default", "hawa-p-2": size === "sm" }
|
8116
8126
|
)
|
8117
8127
|
},
|
8118
|
-
/* @__PURE__ */
|
8119
|
-
action && /* @__PURE__ */
|
8128
|
+
/* @__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)),
|
8129
|
+
action && /* @__PURE__ */ import_react49.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-justify-center" }, action)
|
8120
8130
|
)
|
8121
8131
|
));
|
8122
|
-
}), /* @__PURE__ */
|
8132
|
+
}), /* @__PURE__ */ import_react49.default.createElement(
|
8123
8133
|
ToastViewport,
|
8124
8134
|
{
|
8125
8135
|
className: cn("hawa-gap-2", isRTL && "hawa-fixed hawa-left-0")
|
@@ -8128,20 +8138,20 @@ function Toaster(props) {
|
|
8128
8138
|
}
|
8129
8139
|
|
8130
8140
|
// elements/destroyableCard/DestroyableCard.tsx
|
8131
|
-
var
|
8141
|
+
var import_react50 = __toESM(require("react"));
|
8132
8142
|
var DestroyableCard = ({
|
8133
8143
|
position = "bottom-right",
|
8134
8144
|
fixed,
|
8135
8145
|
direction,
|
8136
8146
|
...props
|
8137
8147
|
}) => {
|
8138
|
-
const [closed, setClosed] = (0,
|
8139
|
-
const popUpRef = (0,
|
8148
|
+
const [closed, setClosed] = (0, import_react50.useState)(false);
|
8149
|
+
const popUpRef = (0, import_react50.useRef)(null);
|
8140
8150
|
const boxPosition = {
|
8141
8151
|
"bottom-right": "hawa-right-4 hawa-bottom-4",
|
8142
8152
|
"bottom-left": "hawa-left-4 hawa-bottom-4"
|
8143
8153
|
};
|
8144
|
-
return /* @__PURE__ */
|
8154
|
+
return /* @__PURE__ */ import_react50.default.createElement(
|
8145
8155
|
"div",
|
8146
8156
|
{
|
8147
8157
|
className: cn(
|
@@ -8150,7 +8160,7 @@ var DestroyableCard = ({
|
|
8150
8160
|
),
|
8151
8161
|
ref: popUpRef
|
8152
8162
|
},
|
8153
|
-
/* @__PURE__ */
|
8163
|
+
/* @__PURE__ */ import_react50.default.createElement(
|
8154
8164
|
Card,
|
8155
8165
|
{
|
8156
8166
|
className: cn(
|
@@ -8159,7 +8169,7 @@ var DestroyableCard = ({
|
|
8159
8169
|
),
|
8160
8170
|
dir: direction
|
8161
8171
|
},
|
8162
|
-
/* @__PURE__ */
|
8172
|
+
/* @__PURE__ */ import_react50.default.createElement(
|
8163
8173
|
"button",
|
8164
8174
|
{
|
8165
8175
|
type: "button",
|
@@ -8178,7 +8188,7 @@ var DestroyableCard = ({
|
|
8178
8188
|
}, 200);
|
8179
8189
|
}
|
8180
8190
|
},
|
8181
|
-
/* @__PURE__ */
|
8191
|
+
/* @__PURE__ */ import_react50.default.createElement(
|
8182
8192
|
"svg",
|
8183
8193
|
{
|
8184
8194
|
"aria-hidden": "true",
|
@@ -8186,7 +8196,7 @@ var DestroyableCard = ({
|
|
8186
8196
|
fill: "currentColor",
|
8187
8197
|
viewBox: "0 0 20 20"
|
8188
8198
|
},
|
8189
|
-
/* @__PURE__ */
|
8199
|
+
/* @__PURE__ */ import_react50.default.createElement(
|
8190
8200
|
"path",
|
8191
8201
|
{
|
8192
8202
|
fillRule: "evenodd",
|
@@ -8196,13 +8206,13 @@ var DestroyableCard = ({
|
|
8196
8206
|
)
|
8197
8207
|
)
|
8198
8208
|
),
|
8199
|
-
/* @__PURE__ */
|
8209
|
+
/* @__PURE__ */ import_react50.default.createElement(CardContent, { headless: true }, props.children)
|
8200
8210
|
)
|
8201
8211
|
);
|
8202
8212
|
};
|
8203
8213
|
|
8204
8214
|
// elements/interfaceSettings/InterfaceSettings.tsx
|
8205
|
-
var
|
8215
|
+
var import_react51 = __toESM(require("react"));
|
8206
8216
|
var InterfaceSettings = ({
|
8207
8217
|
orientation = "horizontal",
|
8208
8218
|
width = "default",
|
@@ -8210,13 +8220,13 @@ var InterfaceSettings = ({
|
|
8210
8220
|
handleLanguage,
|
8211
8221
|
...props
|
8212
8222
|
}) => {
|
8213
|
-
const [color, setColor] = (0,
|
8214
|
-
const [language, setLanguage] = (0,
|
8223
|
+
const [color, setColor] = (0, import_react51.useState)(props.currentColorMode);
|
8224
|
+
const [language, setLanguage] = (0, import_react51.useState)(props.currentLanguage);
|
8215
8225
|
let orientationStyle = {
|
8216
8226
|
horizontal: "hawa-flex hawa-flex-row hawa-justify-between",
|
8217
8227
|
vertical: "hawa-flex hawa-flex-col hawa-items-center hawa-gap-2"
|
8218
8228
|
};
|
8219
|
-
return /* @__PURE__ */
|
8229
|
+
return /* @__PURE__ */ import_react51.default.createElement("div", { className: cn(orientationStyle[orientation]) }, /* @__PURE__ */ import_react51.default.createElement(
|
8220
8230
|
Radio,
|
8221
8231
|
{
|
8222
8232
|
name: "language",
|
@@ -8234,7 +8244,7 @@ var InterfaceSettings = ({
|
|
8234
8244
|
{ value: "en", label: "English" }
|
8235
8245
|
]
|
8236
8246
|
}
|
8237
|
-
), /* @__PURE__ */
|
8247
|
+
), /* @__PURE__ */ import_react51.default.createElement(
|
8238
8248
|
Radio,
|
8239
8249
|
{
|
8240
8250
|
name: "theme",
|
@@ -8250,7 +8260,7 @@ var InterfaceSettings = ({
|
|
8250
8260
|
options: [
|
8251
8261
|
{
|
8252
8262
|
value: "light",
|
8253
|
-
label: /* @__PURE__ */
|
8263
|
+
label: /* @__PURE__ */ import_react51.default.createElement(
|
8254
8264
|
"svg",
|
8255
8265
|
{
|
8256
8266
|
width: "15",
|
@@ -8260,7 +8270,7 @@ var InterfaceSettings = ({
|
|
8260
8270
|
xmlns: "http://www.w3.org/2000/svg",
|
8261
8271
|
className: "hawa-h-[1.2rem] hawa-w-[1.2rem] hawa-rotate-0 hawa-scale-100 hawa-transition-all dark:hawa--rotate-90"
|
8262
8272
|
},
|
8263
|
-
/* @__PURE__ */
|
8273
|
+
/* @__PURE__ */ import_react51.default.createElement(
|
8264
8274
|
"path",
|
8265
8275
|
{
|
8266
8276
|
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 +8281,7 @@ var InterfaceSettings = ({
|
|
8271
8281
|
},
|
8272
8282
|
{
|
8273
8283
|
value: "dark",
|
8274
|
-
label: /* @__PURE__ */
|
8284
|
+
label: /* @__PURE__ */ import_react51.default.createElement(
|
8275
8285
|
"svg",
|
8276
8286
|
{
|
8277
8287
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -8282,7 +8292,7 @@ var InterfaceSettings = ({
|
|
8282
8292
|
stroke: "currentColor",
|
8283
8293
|
className: "hawa-h-[1.2rem] hawa-w-[1.2rem] hawa-transition-all dark:hawa-rotate-0 dark:hawa-scale-100"
|
8284
8294
|
},
|
8285
|
-
/* @__PURE__ */
|
8295
|
+
/* @__PURE__ */ import_react51.default.createElement("path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z" })
|
8286
8296
|
)
|
8287
8297
|
}
|
8288
8298
|
]
|
@@ -8291,14 +8301,14 @@ var InterfaceSettings = ({
|
|
8291
8301
|
};
|
8292
8302
|
|
8293
8303
|
// elements/phoneMockup/PhoneMockup.tsx
|
8294
|
-
var
|
8304
|
+
var import_react52 = __toESM(require("react"));
|
8295
8305
|
var PhoneMockup = ({
|
8296
8306
|
children,
|
8297
8307
|
upperOverlayGradiant,
|
8298
8308
|
lowerOverlayGradiant,
|
8299
8309
|
phone,
|
8300
8310
|
hideButtons
|
8301
|
-
}) => /* @__PURE__ */
|
8311
|
+
}) => /* @__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
8312
|
// Annotate the CommonJS export names for ESM import in node:
|
8303
8313
|
0 && (module.exports = {
|
8304
8314
|
Accordion,
|