@sikka/hawa 0.34.7-next → 0.35.0-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/{Radio-BpXOu4Hr.d.mts → Radio-BCD7k628.d.mts} +3 -0
- package/dist/{Radio-CREjhlGz.d.ts → Radio-y9uhxitu.d.ts} +3 -0
- package/dist/alert/index.js +28 -17
- package/dist/alert/index.js.map +1 -1
- package/dist/alert/index.mjs +61 -50
- package/dist/alert/index.mjs.map +1 -1
- package/dist/appLayout/index.js +81 -70
- package/dist/appLayout/index.js.map +1 -1
- package/dist/appLayout/index.mjs +138 -127
- package/dist/appLayout/index.mjs.map +1 -1
- package/dist/backToTop/index.js +28 -17
- package/dist/backToTop/index.js.map +1 -1
- package/dist/backToTop/index.mjs +55 -44
- package/dist/backToTop/index.mjs.map +1 -1
- package/dist/blocks/auth/index.js +50 -39
- package/dist/blocks/auth/index.mjs +5 -5
- package/dist/blocks/feedback/index.d.mts +3 -0
- package/dist/blocks/feedback/index.d.ts +3 -0
- package/dist/blocks/feedback/index.js +174 -120
- package/dist/blocks/feedback/index.mjs +29 -93
- package/dist/blocks/index.d.mts +2 -1
- package/dist/blocks/index.d.ts +2 -1
- package/dist/blocks/index.js +253 -201
- package/dist/blocks/index.mjs +3 -3
- package/dist/blocks/misc/index.js +71 -60
- package/dist/blocks/misc/index.mjs +5 -5
- package/dist/blocks/pricing/index.js +154 -80
- package/dist/blocks/pricing/index.mjs +4 -4
- package/dist/button/index.d.mts +13 -0
- package/dist/button/index.d.ts +13 -0
- package/dist/button/index.js +28 -17
- package/dist/button/index.js.map +1 -1
- package/dist/button/index.mjs +51 -40
- package/dist/button/index.mjs.map +1 -1
- package/dist/calendar/index.js +34 -23
- package/dist/calendar/index.js.map +1 -1
- package/dist/calendar/index.mjs +57 -46
- package/dist/calendar/index.mjs.map +1 -1
- package/dist/{chunk-GEB3LM5A.mjs → chunk-A376BKNX.mjs} +2 -2
- package/dist/{chunk-OS2UOK5C.mjs → chunk-DABX3SU6.mjs} +64 -51
- package/dist/{chunk-QPZ4ZR2B.mjs → chunk-DFWFQWWT.mjs} +155 -116
- package/dist/{chunk-UBNCETCU.mjs → chunk-GVZWOUGN.mjs} +1 -1
- package/dist/chunk-HHC34DXN.mjs +320 -0
- package/dist/{chunk-QVF3VLB7.mjs → chunk-IDKXEJET.mjs} +157 -144
- package/dist/{chunk-AW5FW5TY.mjs → chunk-L56XQRQI.mjs} +1 -1
- package/dist/{chunk-ORNLFAC6.mjs → chunk-XFRJ62W3.mjs} +1 -1
- package/dist/{chunk-RTGD7N7I.mjs → chunk-XJMDUR5A.mjs} +1 -1
- package/dist/{chunk-J7BT4XJR.mjs → chunk-YOT2GVXO.mjs} +1 -1
- package/dist/codeBlock/index.js +28 -17
- package/dist/codeBlock/index.js.map +1 -1
- package/dist/codeBlock/index.mjs +70 -59
- package/dist/codeBlock/index.mjs.map +1 -1
- package/dist/colorPicker/index.js.map +1 -1
- package/dist/colorPicker/index.mjs.map +1 -1
- package/dist/combobox/index.js.map +1 -1
- package/dist/combobox/index.mjs.map +1 -1
- package/dist/dataTable/index.d.mts +1 -2
- package/dist/dataTable/index.d.ts +1 -2
- package/dist/dataTable/index.js +144 -105
- package/dist/dataTable/index.js.map +1 -1
- package/dist/dataTable/index.mjs +178 -139
- package/dist/dataTable/index.mjs.map +1 -1
- package/dist/datePicker/index.d.mts +23 -5
- package/dist/datePicker/index.d.ts +23 -5
- package/dist/datePicker/index.js +46 -18
- package/dist/datePicker/index.js.map +1 -1
- package/dist/datePicker/index.mjs +46 -18
- package/dist/datePicker/index.mjs.map +1 -1
- package/dist/docsLayout/index.js +40 -29
- package/dist/docsLayout/index.js.map +1 -1
- package/dist/docsLayout/index.mjs +135 -124
- package/dist/docsLayout/index.mjs.map +1 -1
- package/dist/elements/index.d.mts +7 -3
- package/dist/elements/index.d.ts +7 -3
- package/dist/elements/index.js +475 -395
- package/dist/elements/index.mjs +32 -4
- package/dist/fileDropzone/index.js +28 -17
- package/dist/fileDropzone/index.js.map +1 -1
- package/dist/fileDropzone/index.mjs +89 -78
- package/dist/fileDropzone/index.mjs.map +1 -1
- package/dist/index.css +3 -0
- package/dist/index.d.mts +16 -9
- package/dist/index.d.ts +16 -9
- package/dist/index.js +515 -435
- package/dist/index.mjs +1204 -1124
- package/dist/input/index.js +1 -1
- package/dist/input/index.js.map +1 -1
- package/dist/input/index.mjs +1 -1
- package/dist/input/index.mjs.map +1 -1
- package/dist/interfaceSettings/index.js +85 -24
- package/dist/interfaceSettings/index.js.map +1 -1
- package/dist/interfaceSettings/index.mjs +107 -46
- package/dist/interfaceSettings/index.mjs.map +1 -1
- package/dist/layout/index.js +121 -110
- package/dist/layout/index.mjs +2 -2
- package/dist/passwordInput/index.js +1 -1
- package/dist/passwordInput/index.js.map +1 -1
- package/dist/passwordInput/index.mjs +1 -1
- package/dist/passwordInput/index.mjs.map +1 -1
- package/dist/phoneInput/index.js.map +1 -1
- package/dist/phoneInput/index.mjs.map +1 -1
- package/dist/radio/index.d.mts +3 -0
- package/dist/radio/index.d.ts +3 -0
- package/dist/radio/index.js +85 -24
- package/dist/radio/index.js.map +1 -1
- package/dist/radio/index.mjs +100 -39
- package/dist/radio/index.mjs.map +1 -1
- package/dist/select/index.js.map +1 -1
- package/dist/select/index.mjs.map +1 -1
- package/dist/simpleTable/index.js.map +1 -1
- package/dist/simpleTable/index.mjs.map +1 -1
- package/dist/skeleton/index.js.map +1 -1
- package/dist/skeleton/index.mjs.map +1 -1
- package/dist/sortButton/index.js +28 -17
- package/dist/sortButton/index.js.map +1 -1
- package/dist/sortButton/index.mjs +58 -47
- package/dist/sortButton/index.mjs.map +1 -1
- package/dist/splitButton/index.d.mts +12 -0
- package/dist/splitButton/index.d.ts +12 -0
- package/dist/splitButton/index.js +70 -59
- package/dist/splitButton/index.js.map +1 -1
- package/dist/splitButton/index.mjs +93 -82
- package/dist/splitButton/index.mjs.map +1 -1
- package/dist/stats/index.js.map +1 -1
- package/dist/stats/index.mjs.map +1 -1
- package/dist/textarea/index.js.map +1 -1
- package/dist/textarea/index.mjs.map +1 -1
- package/package.json +7 -10
- package/dist/chunk-IQEBXGLM.mjs +0 -215
package/dist/index.js
CHANGED
@@ -246,7 +246,7 @@ __export(components_exports, {
|
|
246
246
|
module.exports = __toCommonJS(components_exports);
|
247
247
|
|
248
248
|
// elements/card/Card.tsx
|
249
|
-
var
|
249
|
+
var React2 = __toESM(require("react"));
|
250
250
|
|
251
251
|
// util/index.ts
|
252
252
|
var import_clsx = require("clsx");
|
@@ -275,7 +275,7 @@ var calculateLuminance = (color) => {
|
|
275
275
|
};
|
276
276
|
|
277
277
|
// elements/card/Card.tsx
|
278
|
-
var Card =
|
278
|
+
var Card = React2.forwardRef(
|
279
279
|
({
|
280
280
|
className,
|
281
281
|
variant = "default",
|
@@ -294,7 +294,7 @@ var Card = React.forwardRef(
|
|
294
294
|
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"
|
295
295
|
)
|
296
296
|
};
|
297
|
-
return /* @__PURE__ */
|
297
|
+
return /* @__PURE__ */ React2.createElement(
|
298
298
|
"div",
|
299
299
|
{
|
300
300
|
ref,
|
@@ -304,7 +304,7 @@ var Card = React.forwardRef(
|
|
304
304
|
);
|
305
305
|
}
|
306
306
|
);
|
307
|
-
var CardHeader =
|
307
|
+
var CardHeader = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React2.createElement(
|
308
308
|
"div",
|
309
309
|
{
|
310
310
|
ref,
|
@@ -315,7 +315,7 @@ var CardHeader = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
315
315
|
...props
|
316
316
|
}
|
317
317
|
));
|
318
|
-
var CardTitle =
|
318
|
+
var CardTitle = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React2.createElement(
|
319
319
|
"h3",
|
320
320
|
{
|
321
321
|
ref,
|
@@ -323,7 +323,7 @@ var CardTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
323
323
|
...props
|
324
324
|
}
|
325
325
|
));
|
326
|
-
var CardDescription =
|
326
|
+
var CardDescription = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React2.createElement(
|
327
327
|
"p",
|
328
328
|
{
|
329
329
|
ref,
|
@@ -331,8 +331,8 @@ var CardDescription = React.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
331
331
|
...props
|
332
332
|
}
|
333
333
|
));
|
334
|
-
var CardContent =
|
335
|
-
({ headless, noPadding, className, ...props }, ref) => /* @__PURE__ */
|
334
|
+
var CardContent = React2.forwardRef(
|
335
|
+
({ headless, noPadding, className, ...props }, ref) => /* @__PURE__ */ React2.createElement(
|
336
336
|
"div",
|
337
337
|
{
|
338
338
|
ref,
|
@@ -345,7 +345,7 @@ var CardContent = React.forwardRef(
|
|
345
345
|
}
|
346
346
|
)
|
347
347
|
);
|
348
|
-
var CardFooter =
|
348
|
+
var CardFooter = React2.forwardRef(({ className, noPadding, ...props }, ref) => /* @__PURE__ */ React2.createElement(
|
349
349
|
"div",
|
350
350
|
{
|
351
351
|
ref,
|
@@ -689,7 +689,7 @@ function Skeleton({
|
|
689
689
|
}
|
690
690
|
|
691
691
|
// elements/dropdownMenu/DropdownMenu.tsx
|
692
|
-
var
|
692
|
+
var React6 = __toESM(require("react"));
|
693
693
|
var DropdownMenuPrimitive = __toESM(require("@radix-ui/react-dropdown-menu"));
|
694
694
|
var DropdownMenuRoot = DropdownMenuPrimitive.Root;
|
695
695
|
var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
@@ -697,7 +697,7 @@ var DropdownMenuGroup = DropdownMenuPrimitive.Group;
|
|
697
697
|
var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
|
698
698
|
var DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
699
699
|
var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
|
700
|
-
var DropdownMenuSubTrigger =
|
700
|
+
var DropdownMenuSubTrigger = React6.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ React6.createElement(
|
701
701
|
DropdownMenuPrimitive.SubTrigger,
|
702
702
|
{
|
703
703
|
ref,
|
@@ -708,9 +708,9 @@ var DropdownMenuSubTrigger = React5.forwardRef(({ className, inset, children, ..
|
|
708
708
|
),
|
709
709
|
...props
|
710
710
|
},
|
711
|
-
/* @__PURE__ */
|
711
|
+
/* @__PURE__ */ React6.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2" }, children),
|
712
712
|
" ",
|
713
|
-
/* @__PURE__ */
|
713
|
+
/* @__PURE__ */ React6.createElement(
|
714
714
|
"svg",
|
715
715
|
{
|
716
716
|
"aria-label": "Chevron Right Icon",
|
@@ -722,7 +722,7 @@ var DropdownMenuSubTrigger = React5.forwardRef(({ className, inset, children, ..
|
|
722
722
|
width: "1em",
|
723
723
|
className: cn(props.dir === "rtl" ? "hawa-rotate-180" : "")
|
724
724
|
},
|
725
|
-
/* @__PURE__ */
|
725
|
+
/* @__PURE__ */ React6.createElement(
|
726
726
|
"path",
|
727
727
|
{
|
728
728
|
fillRule: "evenodd",
|
@@ -732,7 +732,7 @@ var DropdownMenuSubTrigger = React5.forwardRef(({ className, inset, children, ..
|
|
732
732
|
)
|
733
733
|
));
|
734
734
|
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
735
|
-
var DropdownMenuSubContent =
|
735
|
+
var DropdownMenuSubContent = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React6.createElement(
|
736
736
|
DropdownMenuPrimitive.SubContent,
|
737
737
|
{
|
738
738
|
ref,
|
@@ -744,7 +744,7 @@ var DropdownMenuSubContent = React5.forwardRef(({ className, ...props }, ref) =>
|
|
744
744
|
}
|
745
745
|
));
|
746
746
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
747
|
-
var DropdownMenuContent =
|
747
|
+
var DropdownMenuContent = React6.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React6.createElement(DropdownMenuPrimitive.Portal, null, /* @__PURE__ */ React6.createElement(
|
748
748
|
DropdownMenuPrimitive.Content,
|
749
749
|
{
|
750
750
|
ref,
|
@@ -757,8 +757,8 @@ var DropdownMenuContent = React5.forwardRef(({ className, sideOffset = 4, ...pro
|
|
757
757
|
}
|
758
758
|
)));
|
759
759
|
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
760
|
-
var DropdownMenuItem =
|
761
|
-
return /* @__PURE__ */
|
760
|
+
var DropdownMenuItem = React6.forwardRef(({ className, inset, badged, slug, LinkComponent, ...props }, ref) => {
|
761
|
+
return /* @__PURE__ */ React6.createElement(LinkComponent, { href: slug }, /* @__PURE__ */ React6.createElement(
|
762
762
|
DropdownMenuPrimitive.Item,
|
763
763
|
{
|
764
764
|
disabled: props.disabled,
|
@@ -771,14 +771,14 @@ var DropdownMenuItem = React5.forwardRef(({ className, inset, badged, slug, Link
|
|
771
771
|
),
|
772
772
|
...props
|
773
773
|
},
|
774
|
-
/* @__PURE__ */
|
774
|
+
/* @__PURE__ */ React6.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 " }, props.children),
|
775
775
|
props.end && props.end,
|
776
|
-
!props.end && props.shortcut && /* @__PURE__ */
|
777
|
-
!props.end && badged && /* @__PURE__ */
|
776
|
+
!props.end && props.shortcut && /* @__PURE__ */ React6.createElement(DropdownMenuShortcut, null, props.shortcut),
|
777
|
+
!props.end && badged && /* @__PURE__ */ React6.createElement("div", { className: "hawa-h-3 hawa-w-3 hawa-rounded-full hawa-bg-red-500" })
|
778
778
|
));
|
779
779
|
});
|
780
780
|
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
781
|
-
var DropdownMenuCheckboxItem =
|
781
|
+
var DropdownMenuCheckboxItem = React6.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ React6.createElement(
|
782
782
|
DropdownMenuPrimitive.CheckboxItem,
|
783
783
|
{
|
784
784
|
ref,
|
@@ -789,7 +789,7 @@ var DropdownMenuCheckboxItem = React5.forwardRef(({ className, children, checked
|
|
789
789
|
checked,
|
790
790
|
...props
|
791
791
|
},
|
792
|
-
/* @__PURE__ */
|
792
|
+
/* @__PURE__ */ React6.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__ */ React6.createElement(DropdownMenuPrimitive.ItemIndicator, null, /* @__PURE__ */ React6.createElement(
|
793
793
|
"svg",
|
794
794
|
{
|
795
795
|
"aria-label": "Check Mark",
|
@@ -800,12 +800,12 @@ var DropdownMenuCheckboxItem = React5.forwardRef(({ className, children, checked
|
|
800
800
|
height: "0.60em",
|
801
801
|
width: "0.60em"
|
802
802
|
},
|
803
|
-
/* @__PURE__ */
|
803
|
+
/* @__PURE__ */ React6.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" })
|
804
804
|
), " ")),
|
805
805
|
children
|
806
806
|
));
|
807
807
|
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
808
|
-
var DropdownMenuRadioItem =
|
808
|
+
var DropdownMenuRadioItem = React6.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React6.createElement(
|
809
809
|
DropdownMenuPrimitive.RadioItem,
|
810
810
|
{
|
811
811
|
ref,
|
@@ -815,7 +815,7 @@ var DropdownMenuRadioItem = React5.forwardRef(({ className, children, ...props }
|
|
815
815
|
),
|
816
816
|
...props
|
817
817
|
},
|
818
|
-
/* @__PURE__ */
|
818
|
+
/* @__PURE__ */ React6.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__ */ React6.createElement(DropdownMenuPrimitive.ItemIndicator, null, /* @__PURE__ */ React6.createElement(
|
819
819
|
"svg",
|
820
820
|
{
|
821
821
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -830,12 +830,12 @@ var DropdownMenuRadioItem = React5.forwardRef(({ className, children, ...props }
|
|
830
830
|
strokeLinejoin: "round",
|
831
831
|
className: "hawa-h-2 hawa-w-2 hawa-fill-current"
|
832
832
|
},
|
833
|
-
/* @__PURE__ */
|
833
|
+
/* @__PURE__ */ React6.createElement("circle", { cx: "12", cy: "12", r: "10" })
|
834
834
|
))),
|
835
835
|
children
|
836
836
|
));
|
837
837
|
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
838
|
-
var DropdownMenuLabel =
|
838
|
+
var DropdownMenuLabel = React6.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ React6.createElement(
|
839
839
|
DropdownMenuPrimitive.Label,
|
840
840
|
{
|
841
841
|
ref,
|
@@ -848,7 +848,7 @@ var DropdownMenuLabel = React5.forwardRef(({ className, inset, ...props }, ref)
|
|
848
848
|
}
|
849
849
|
));
|
850
850
|
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
851
|
-
var DropdownMenuSeparator =
|
851
|
+
var DropdownMenuSeparator = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React6.createElement(
|
852
852
|
DropdownMenuPrimitive.Separator,
|
853
853
|
{
|
854
854
|
ref,
|
@@ -861,7 +861,7 @@ var DropdownMenuShortcut = ({
|
|
861
861
|
className,
|
862
862
|
...props
|
863
863
|
}) => {
|
864
|
-
return /* @__PURE__ */
|
864
|
+
return /* @__PURE__ */ React6.createElement(
|
865
865
|
"span",
|
866
866
|
{
|
867
867
|
className: cn(
|
@@ -901,10 +901,10 @@ var DropdownMenu = ({
|
|
901
901
|
default: "hawa-px-2 hawa-py-3 ",
|
902
902
|
sm: "hawa-text-xs hawa-px-1.5 hawa-py-1.5 "
|
903
903
|
};
|
904
|
-
let [values, setValues] =
|
904
|
+
let [values, setValues] = React6.useState(
|
905
905
|
items.map((item) => item.currentOption)
|
906
906
|
);
|
907
|
-
return /* @__PURE__ */
|
907
|
+
return /* @__PURE__ */ React6.createElement(
|
908
908
|
DropdownMenuRoot,
|
909
909
|
{
|
910
910
|
onOpenChange,
|
@@ -912,8 +912,8 @@ var DropdownMenu = ({
|
|
912
912
|
modal: false,
|
913
913
|
dir: direction
|
914
914
|
},
|
915
|
-
/* @__PURE__ */
|
916
|
-
/* @__PURE__ */
|
915
|
+
/* @__PURE__ */ React6.createElement(DropdownMenuTrigger, { asChild: true, className: triggerClassname }, trigger),
|
916
|
+
/* @__PURE__ */ React6.createElement(DropdownMenuPortal, null, /* @__PURE__ */ React6.createElement(
|
917
917
|
DropdownMenuContent,
|
918
918
|
{
|
919
919
|
side,
|
@@ -934,12 +934,12 @@ var DropdownMenu = ({
|
|
934
934
|
var _a;
|
935
935
|
const ItemLinkComponent = item.slug ? LinkComponent : "a";
|
936
936
|
if (item.itemType === "separator") {
|
937
|
-
return /* @__PURE__ */
|
937
|
+
return /* @__PURE__ */ React6.createElement(DropdownMenuSeparator, { key: index });
|
938
938
|
} else if (item.itemType === "label") {
|
939
|
-
return /* @__PURE__ */
|
939
|
+
return /* @__PURE__ */ React6.createElement(DropdownMenuLabel, { key: index }, item.label);
|
940
940
|
} else if (item.itemType === "radio") {
|
941
941
|
let dd = item.currentOption;
|
942
|
-
return /* @__PURE__ */
|
942
|
+
return /* @__PURE__ */ React6.createElement(DropdownMenuSub, { key: index }, /* @__PURE__ */ React6.createElement(
|
943
943
|
DropdownMenuSubTrigger,
|
944
944
|
{
|
945
945
|
dir: direction,
|
@@ -947,7 +947,7 @@ var DropdownMenu = ({
|
|
947
947
|
},
|
948
948
|
item.icon && item.icon,
|
949
949
|
item.label && item.label
|
950
|
-
), /* @__PURE__ */
|
950
|
+
), /* @__PURE__ */ React6.createElement(DropdownMenuSubContent, null, /* @__PURE__ */ React6.createElement(
|
951
951
|
DropdownMenuRadioGroup,
|
952
952
|
{
|
953
953
|
value: values[index],
|
@@ -961,12 +961,12 @@ var DropdownMenu = ({
|
|
961
961
|
}
|
962
962
|
}
|
963
963
|
},
|
964
|
-
(_a = item.options) == null ? void 0 : _a.map((opt, i) => /* @__PURE__ */
|
964
|
+
(_a = item.options) == null ? void 0 : _a.map((opt, i) => /* @__PURE__ */ React6.createElement(DropdownMenuRadioItem, { key: i, value: opt.value }, opt.label))
|
965
965
|
)));
|
966
966
|
} else if (item.itemType === "custom") {
|
967
|
-
return /* @__PURE__ */
|
967
|
+
return /* @__PURE__ */ React6.createElement("div", { key: index }, item.content);
|
968
968
|
} else {
|
969
|
-
return item.subitems ? /* @__PURE__ */
|
969
|
+
return item.subitems ? /* @__PURE__ */ React6.createElement(DropdownMenuSub, { key: index }, /* @__PURE__ */ React6.createElement(
|
970
970
|
DropdownMenuSubTrigger,
|
971
971
|
{
|
972
972
|
dir: direction,
|
@@ -974,9 +974,9 @@ var DropdownMenu = ({
|
|
974
974
|
},
|
975
975
|
item.icon && item.icon,
|
976
976
|
item.label && item.label
|
977
|
-
), /* @__PURE__ */
|
977
|
+
), /* @__PURE__ */ React6.createElement(DropdownMenuPortal, null, /* @__PURE__ */ React6.createElement(DropdownMenuSubContent, null, item.subitems.map((subitem, subIndex) => {
|
978
978
|
const SubitemLinkComponent = subitem.slug ? LinkComponent : "a";
|
979
|
-
return /* @__PURE__ */
|
979
|
+
return /* @__PURE__ */ React6.createElement(
|
980
980
|
DropdownMenuItem,
|
981
981
|
{
|
982
982
|
key: subIndex,
|
@@ -1005,7 +1005,7 @@ var DropdownMenu = ({
|
|
1005
1005
|
subitem.icon && subitem.icon,
|
1006
1006
|
subitem.label && subitem.label
|
1007
1007
|
);
|
1008
|
-
})))) : /* @__PURE__ */
|
1008
|
+
})))) : /* @__PURE__ */ React6.createElement(
|
1009
1009
|
DropdownMenuItem,
|
1010
1010
|
{
|
1011
1011
|
LinkComponent: ItemLinkComponent,
|
@@ -1058,18 +1058,18 @@ var DropdownMenu = ({
|
|
1058
1058
|
);
|
1059
1059
|
};
|
1060
1060
|
var DropdownMenuRadio = (props) => {
|
1061
|
-
return /* @__PURE__ */
|
1061
|
+
return /* @__PURE__ */ React6.createElement(DropdownMenuRoot, null, /* @__PURE__ */ React6.createElement(DropdownMenuTrigger, { asChild: true }, props.trigger), /* @__PURE__ */ React6.createElement(DropdownMenuContent, { align: props.align, side: props.side }, props.label && /* @__PURE__ */ React6.createElement(React6.Fragment, null, /* @__PURE__ */ React6.createElement(DropdownMenuLabel, null, props.label), /* @__PURE__ */ React6.createElement(DropdownMenuSeparator, null)), /* @__PURE__ */ React6.createElement(
|
1062
1062
|
DropdownMenuRadioGroup,
|
1063
1063
|
{
|
1064
1064
|
value: props.value,
|
1065
1065
|
onValueChange: props.onValueChange
|
1066
1066
|
},
|
1067
|
-
props.options.map((opt, i) => /* @__PURE__ */
|
1067
|
+
props.options.map((opt, i) => /* @__PURE__ */ React6.createElement(DropdownMenuRadioItem, { key: i, value: opt.value }, opt.label))
|
1068
1068
|
)));
|
1069
1069
|
};
|
1070
1070
|
|
1071
1071
|
// elements/accordion/Accordion.tsx
|
1072
|
-
var
|
1072
|
+
var React10 = __toESM(require("react"));
|
1073
1073
|
var AccordionPrimitive3 = __toESM(require("@radix-ui/react-accordion"));
|
1074
1074
|
|
1075
1075
|
// elements/chip/Chip.tsx
|
@@ -1154,9 +1154,9 @@ var Chip = import_react4.default.forwardRef(
|
|
1154
1154
|
);
|
1155
1155
|
|
1156
1156
|
// elements/accordion/AccordionContent.tsx
|
1157
|
-
var
|
1157
|
+
var React8 = __toESM(require("react"));
|
1158
1158
|
var AccordionPrimitive = __toESM(require("@radix-ui/react-accordion"));
|
1159
|
-
var AccordionContent =
|
1159
|
+
var AccordionContent = React8.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React8.createElement(
|
1160
1160
|
AccordionPrimitive.Content,
|
1161
1161
|
{
|
1162
1162
|
ref,
|
@@ -1166,14 +1166,14 @@ var AccordionContent = React7.forwardRef(({ className, children, ...props }, ref
|
|
1166
1166
|
) : className,
|
1167
1167
|
...props
|
1168
1168
|
},
|
1169
|
-
/* @__PURE__ */
|
1169
|
+
/* @__PURE__ */ React8.createElement("div", { className: "hawa-bg-background hawa-p-4" }, children)
|
1170
1170
|
));
|
1171
1171
|
AccordionContent.displayName = AccordionPrimitive.Content.displayName;
|
1172
1172
|
|
1173
1173
|
// elements/accordion/AccordionTrigger.tsx
|
1174
|
-
var
|
1174
|
+
var React9 = __toESM(require("react"));
|
1175
1175
|
var AccordionPrimitive2 = __toESM(require("@radix-ui/react-accordion"));
|
1176
|
-
var AccordionTrigger =
|
1176
|
+
var AccordionTrigger = React9.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React9.createElement(AccordionPrimitive2.Header, { className: "hawa-flex" }, /* @__PURE__ */ React9.createElement(
|
1177
1177
|
AccordionPrimitive2.Trigger,
|
1178
1178
|
{
|
1179
1179
|
ref,
|
@@ -1185,7 +1185,7 @@ var AccordionTrigger = React8.forwardRef(({ className, children, ...props }, ref
|
|
1185
1185
|
...props
|
1186
1186
|
},
|
1187
1187
|
children,
|
1188
|
-
!props.hideArrow && /* @__PURE__ */
|
1188
|
+
!props.hideArrow && /* @__PURE__ */ React9.createElement(
|
1189
1189
|
"svg",
|
1190
1190
|
{
|
1191
1191
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -1199,13 +1199,13 @@ var AccordionTrigger = React8.forwardRef(({ className, children, ...props }, ref
|
|
1199
1199
|
strokeLinejoin: "round",
|
1200
1200
|
className: "hawa-icon hawa-shrink-0 hawa-transition-transform hawa-duration-200"
|
1201
1201
|
},
|
1202
|
-
/* @__PURE__ */
|
1202
|
+
/* @__PURE__ */ React9.createElement("path", { d: "m6 9 6 6 6-6" })
|
1203
1203
|
)
|
1204
1204
|
)));
|
1205
1205
|
AccordionTrigger.displayName = AccordionPrimitive2.Trigger.displayName;
|
1206
1206
|
|
1207
1207
|
// elements/accordion/Accordion.tsx
|
1208
|
-
var Accordion =
|
1208
|
+
var Accordion = React10.forwardRef(
|
1209
1209
|
({
|
1210
1210
|
items,
|
1211
1211
|
design = "default",
|
@@ -1214,7 +1214,7 @@ var Accordion = React9.forwardRef(
|
|
1214
1214
|
contentclassNames,
|
1215
1215
|
className,
|
1216
1216
|
...props
|
1217
|
-
}, ref) => /* @__PURE__ */
|
1217
|
+
}, ref) => /* @__PURE__ */ React10.createElement(AccordionPrimitive3.Root, { type: props.type, collapsible: true }, /* @__PURE__ */ React10.createElement(
|
1218
1218
|
"div",
|
1219
1219
|
{
|
1220
1220
|
className: cn("hawa-flex hawa-flex-col", {
|
@@ -1222,7 +1222,7 @@ var Accordion = React9.forwardRef(
|
|
1222
1222
|
"hawa-gap-0": design === "default"
|
1223
1223
|
})
|
1224
1224
|
},
|
1225
|
-
items.map((item, index) => /* @__PURE__ */
|
1225
|
+
items.map((item, index) => /* @__PURE__ */ React10.createElement(
|
1226
1226
|
AccordionPrimitive3.Item,
|
1227
1227
|
{
|
1228
1228
|
disabled: item.disabled || false,
|
@@ -1230,7 +1230,7 @@ var Accordion = React9.forwardRef(
|
|
1230
1230
|
key: index,
|
1231
1231
|
value: `item-${index}`
|
1232
1232
|
},
|
1233
|
-
/* @__PURE__ */
|
1233
|
+
/* @__PURE__ */ React10.createElement(
|
1234
1234
|
AccordionTrigger,
|
1235
1235
|
{
|
1236
1236
|
disabled: item.disabled || false,
|
@@ -1243,7 +1243,7 @@ var Accordion = React9.forwardRef(
|
|
1243
1243
|
triggerclassNames
|
1244
1244
|
)
|
1245
1245
|
},
|
1246
|
-
/* @__PURE__ */
|
1246
|
+
/* @__PURE__ */ React10.createElement(
|
1247
1247
|
"span",
|
1248
1248
|
{
|
1249
1249
|
className: cn(
|
@@ -1253,10 +1253,10 @@ var Accordion = React9.forwardRef(
|
|
1253
1253
|
},
|
1254
1254
|
item.trigger,
|
1255
1255
|
" ",
|
1256
|
-
item.chip && /* @__PURE__ */
|
1256
|
+
item.chip && /* @__PURE__ */ React10.createElement(Chip, { ...item.chip })
|
1257
1257
|
)
|
1258
1258
|
),
|
1259
|
-
/* @__PURE__ */
|
1259
|
+
/* @__PURE__ */ React10.createElement(
|
1260
1260
|
AccordionContent,
|
1261
1261
|
{
|
1262
1262
|
"aria-disabled": item.disabled || false,
|
@@ -1276,9 +1276,9 @@ var Accordion = React9.forwardRef(
|
|
1276
1276
|
Accordion.displayName = "Accordion";
|
1277
1277
|
|
1278
1278
|
// elements/accordion/AccordionItem.tsx
|
1279
|
-
var
|
1279
|
+
var React11 = __toESM(require("react"));
|
1280
1280
|
var AccordionPrimitive4 = __toESM(require("@radix-ui/react-accordion"));
|
1281
|
-
var AccordionItem =
|
1281
|
+
var AccordionItem = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React11.createElement(AccordionPrimitive4.Item, { ref, className: cn(className), ...props }));
|
1282
1282
|
AccordionItem.displayName = "AccordionItem";
|
1283
1283
|
|
1284
1284
|
// elements/accordion/AccordionRoot.tsx
|
@@ -1639,13 +1639,13 @@ var Logos = {
|
|
1639
1639
|
};
|
1640
1640
|
|
1641
1641
|
// elements/navigationMenu/NavigationMenu.tsx
|
1642
|
-
var
|
1642
|
+
var React13 = __toESM(require("react"));
|
1643
1643
|
var NavigationMenuPrimitive = __toESM(require("@radix-ui/react-navigation-menu"));
|
1644
1644
|
var import_class_variance_authority = require("class-variance-authority");
|
1645
1645
|
var navigationMenuTriggerStyle = (0, import_class_variance_authority.cva)(
|
1646
1646
|
"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 "
|
1647
1647
|
);
|
1648
|
-
var NavigationMenuRoot =
|
1648
|
+
var NavigationMenuRoot = React13.forwardRef(({ className, children, viewportClassNames, ...props }, ref) => /* @__PURE__ */ React13.createElement(
|
1649
1649
|
NavigationMenuPrimitive.Root,
|
1650
1650
|
{
|
1651
1651
|
ref,
|
@@ -1657,9 +1657,9 @@ var NavigationMenuRoot = React12.forwardRef(({ className, children, viewportClas
|
|
1657
1657
|
...props
|
1658
1658
|
},
|
1659
1659
|
children,
|
1660
|
-
/* @__PURE__ */
|
1660
|
+
/* @__PURE__ */ React13.createElement(NavigationMenuViewport, { className: viewportClassNames })
|
1661
1661
|
));
|
1662
|
-
var NavigationMenuList =
|
1662
|
+
var NavigationMenuList = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React13.createElement(
|
1663
1663
|
NavigationMenuPrimitive.List,
|
1664
1664
|
{
|
1665
1665
|
ref,
|
@@ -1670,7 +1670,7 @@ var NavigationMenuList = React12.forwardRef(({ className, ...props }, ref) => /*
|
|
1670
1670
|
...props
|
1671
1671
|
}
|
1672
1672
|
));
|
1673
|
-
var NavigationMenuTrigger =
|
1673
|
+
var NavigationMenuTrigger = React13.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React13.createElement(
|
1674
1674
|
NavigationMenuPrimitive.Trigger,
|
1675
1675
|
{
|
1676
1676
|
ref,
|
@@ -1678,7 +1678,7 @@ var NavigationMenuTrigger = React12.forwardRef(({ className, children, ...props
|
|
1678
1678
|
...props
|
1679
1679
|
},
|
1680
1680
|
children,
|
1681
|
-
/* @__PURE__ */
|
1681
|
+
/* @__PURE__ */ React13.createElement(
|
1682
1682
|
"svg",
|
1683
1683
|
{
|
1684
1684
|
"aria-label": "Chevron Icon",
|
@@ -1694,10 +1694,10 @@ var NavigationMenuTrigger = React12.forwardRef(({ className, children, ...props
|
|
1694
1694
|
"aria-hidden": "true",
|
1695
1695
|
className: "hawa-icon hawa-relative hawa-top-[1px] hawa-transition hawa-duration-200 group-data-[state=open]:hawa-rotate-180"
|
1696
1696
|
},
|
1697
|
-
/* @__PURE__ */
|
1697
|
+
/* @__PURE__ */ React13.createElement("path", { d: "m6 9 6 6 6-6" })
|
1698
1698
|
)
|
1699
1699
|
));
|
1700
|
-
var NavigationMenuContent =
|
1700
|
+
var NavigationMenuContent = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React13.createElement(
|
1701
1701
|
NavigationMenuPrimitive.Content,
|
1702
1702
|
{
|
1703
1703
|
ref,
|
@@ -1711,15 +1711,15 @@ var NavigationMenuContent = React12.forwardRef(({ className, ...props }, ref) =>
|
|
1711
1711
|
...props
|
1712
1712
|
}
|
1713
1713
|
));
|
1714
|
-
var StandardNavigationMenuItem = ({ icon, title, subtitle, ...linkProps }) => /* @__PURE__ */
|
1715
|
-
var NavigationMenuViewport =
|
1714
|
+
var StandardNavigationMenuItem = ({ icon, title, subtitle, ...linkProps }) => /* @__PURE__ */ React13.createElement(NavigationMenuLink, { ...linkProps }, /* @__PURE__ */ React13.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__ */ React13.createElement("div", { className: "hawa-flex hawa-flex-col" }, /* @__PURE__ */ React13.createElement("h1", { className: "hawa-text-xl hawa-font-bold" }, title), /* @__PURE__ */ React13.createElement("p", { className: "hawa-text-sm" }, subtitle))));
|
1715
|
+
var NavigationMenuViewport = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React13.createElement(
|
1716
1716
|
"div",
|
1717
1717
|
{
|
1718
1718
|
className: cn(
|
1719
1719
|
"hawa-absolute hawa-top-full hawa-flex hawa-w-full hawa-justify-center"
|
1720
1720
|
)
|
1721
1721
|
},
|
1722
|
-
/* @__PURE__ */
|
1722
|
+
/* @__PURE__ */ React13.createElement(
|
1723
1723
|
NavigationMenuPrimitive.Viewport,
|
1724
1724
|
{
|
1725
1725
|
className: cn(
|
@@ -1736,7 +1736,7 @@ var NavigationMenuViewport = React12.forwardRef(({ className, ...props }, ref) =
|
|
1736
1736
|
}
|
1737
1737
|
)
|
1738
1738
|
));
|
1739
|
-
var NavigationMenuIndicator =
|
1739
|
+
var NavigationMenuIndicator = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React13.createElement(
|
1740
1740
|
NavigationMenuPrimitive.Indicator,
|
1741
1741
|
{
|
1742
1742
|
ref,
|
@@ -1746,7 +1746,7 @@ var NavigationMenuIndicator = React12.forwardRef(({ className, ...props }, ref)
|
|
1746
1746
|
),
|
1747
1747
|
...props
|
1748
1748
|
},
|
1749
|
-
/* @__PURE__ */
|
1749
|
+
/* @__PURE__ */ React13.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" })
|
1750
1750
|
));
|
1751
1751
|
var NavigationMenu = ({
|
1752
1752
|
viewportClassNames,
|
@@ -1755,7 +1755,7 @@ var NavigationMenu = ({
|
|
1755
1755
|
actionFirst,
|
1756
1756
|
...props
|
1757
1757
|
}) => {
|
1758
|
-
return /* @__PURE__ */
|
1758
|
+
return /* @__PURE__ */ React13.createElement(
|
1759
1759
|
NavigationMenuRoot,
|
1760
1760
|
{
|
1761
1761
|
dir: props.direction,
|
@@ -1763,7 +1763,7 @@ var NavigationMenu = ({
|
|
1763
1763
|
className: rootClassNames,
|
1764
1764
|
viewportClassNames
|
1765
1765
|
},
|
1766
|
-
/* @__PURE__ */
|
1766
|
+
/* @__PURE__ */ React13.createElement(NavigationMenuList, null, props.items.map((item, i) => /* @__PURE__ */ React13.createElement(NavigationMenuItem, { key: i }, item.content ? /* @__PURE__ */ React13.createElement(React13.Fragment, null, /* @__PURE__ */ React13.createElement(NavigationMenuTrigger, { className: cn(triggerClassNames) }, item.trigger), /* @__PURE__ */ React13.createElement(NavigationMenuContent, null, item.content)) : /* @__PURE__ */ React13.createElement(
|
1767
1767
|
NavigationMenuLink,
|
1768
1768
|
{
|
1769
1769
|
href: actionFirst ? void 0 : item.path,
|
@@ -1792,14 +1792,14 @@ NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayN
|
|
1792
1792
|
NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
|
1793
1793
|
|
1794
1794
|
// elements/sheet/Sheet.tsx
|
1795
|
-
var
|
1795
|
+
var React14 = __toESM(require("react"));
|
1796
1796
|
var SheetPrimitive = __toESM(require("@radix-ui/react-dialog"));
|
1797
1797
|
var import_class_variance_authority2 = require("class-variance-authority");
|
1798
1798
|
var Sheet = SheetPrimitive.Root;
|
1799
1799
|
var SheetTrigger = SheetPrimitive.Trigger;
|
1800
1800
|
var SheetClose = SheetPrimitive.Close;
|
1801
1801
|
var SheetPortal = SheetPrimitive.Portal;
|
1802
|
-
var SheetOverlay =
|
1802
|
+
var SheetOverlay = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React14.createElement(
|
1803
1803
|
SheetPrimitive.Overlay,
|
1804
1804
|
{
|
1805
1805
|
className: cn(
|
@@ -1826,8 +1826,8 @@ var sheetVariants = (0, import_class_variance_authority2.cva)(
|
|
1826
1826
|
}
|
1827
1827
|
}
|
1828
1828
|
);
|
1829
|
-
var SheetContent =
|
1830
|
-
({ side = "right", className, children, persist, hideCloseButton, ...props }, ref) => /* @__PURE__ */
|
1829
|
+
var SheetContent = React14.forwardRef(
|
1830
|
+
({ side = "right", className, children, persist, hideCloseButton, ...props }, ref) => /* @__PURE__ */ React14.createElement(SheetPortal, null, /* @__PURE__ */ React14.createElement(SheetOverlay, null), /* @__PURE__ */ React14.createElement(
|
1831
1831
|
SheetPrimitive.Content,
|
1832
1832
|
{
|
1833
1833
|
ref,
|
@@ -1840,7 +1840,7 @@ var SheetContent = React13.forwardRef(
|
|
1840
1840
|
...props
|
1841
1841
|
},
|
1842
1842
|
children,
|
1843
|
-
!hideCloseButton && /* @__PURE__ */
|
1843
|
+
!hideCloseButton && /* @__PURE__ */ React14.createElement(
|
1844
1844
|
SheetPrimitive.Close,
|
1845
1845
|
{
|
1846
1846
|
className: cn(
|
@@ -1852,7 +1852,7 @@ var SheetContent = React13.forwardRef(
|
|
1852
1852
|
}
|
1853
1853
|
)
|
1854
1854
|
},
|
1855
|
-
/* @__PURE__ */
|
1855
|
+
/* @__PURE__ */ React14.createElement(
|
1856
1856
|
"svg",
|
1857
1857
|
{
|
1858
1858
|
"aria-label": "Close Icon",
|
@@ -1861,7 +1861,7 @@ var SheetContent = React13.forwardRef(
|
|
1861
1861
|
fill: "currentColor",
|
1862
1862
|
viewBox: "0 0 20 20"
|
1863
1863
|
},
|
1864
|
-
/* @__PURE__ */
|
1864
|
+
/* @__PURE__ */ React14.createElement(
|
1865
1865
|
"path",
|
1866
1866
|
{
|
1867
1867
|
fillRule: "evenodd",
|
@@ -1870,14 +1870,14 @@ var SheetContent = React13.forwardRef(
|
|
1870
1870
|
}
|
1871
1871
|
)
|
1872
1872
|
),
|
1873
|
-
/* @__PURE__ */
|
1873
|
+
/* @__PURE__ */ React14.createElement("span", { className: "hawa-sr-only" }, "Close")
|
1874
1874
|
)
|
1875
1875
|
))
|
1876
1876
|
);
|
1877
1877
|
var SheetHeader = ({
|
1878
1878
|
className,
|
1879
1879
|
...props
|
1880
|
-
}) => /* @__PURE__ */
|
1880
|
+
}) => /* @__PURE__ */ React14.createElement(
|
1881
1881
|
"div",
|
1882
1882
|
{
|
1883
1883
|
className: cn(
|
@@ -1890,7 +1890,7 @@ var SheetHeader = ({
|
|
1890
1890
|
var SheetFooter = ({
|
1891
1891
|
className,
|
1892
1892
|
...props
|
1893
|
-
}) => /* @__PURE__ */
|
1893
|
+
}) => /* @__PURE__ */ React14.createElement(
|
1894
1894
|
"div",
|
1895
1895
|
{
|
1896
1896
|
className: cn(
|
@@ -1900,7 +1900,7 @@ var SheetFooter = ({
|
|
1900
1900
|
...props
|
1901
1901
|
}
|
1902
1902
|
);
|
1903
|
-
var SheetTitle =
|
1903
|
+
var SheetTitle = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React14.createElement(
|
1904
1904
|
SheetPrimitive.Title,
|
1905
1905
|
{
|
1906
1906
|
ref,
|
@@ -1911,7 +1911,7 @@ var SheetTitle = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
1911
1911
|
...props
|
1912
1912
|
}
|
1913
1913
|
));
|
1914
|
-
var SheetDescription =
|
1914
|
+
var SheetDescription = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React14.createElement(
|
1915
1915
|
SheetPrimitive.Description,
|
1916
1916
|
{
|
1917
1917
|
ref,
|
@@ -1927,12 +1927,12 @@ SheetFooter.displayName = "SheetFooter";
|
|
1927
1927
|
SheetTitle.displayName = SheetPrimitive.Title.displayName;
|
1928
1928
|
|
1929
1929
|
// elements/dialog/Dialog.tsx
|
1930
|
-
var
|
1930
|
+
var React15 = __toESM(require("react"));
|
1931
1931
|
var DialogPrimitive = __toESM(require("@radix-ui/react-dialog"));
|
1932
1932
|
var Dialog = DialogPrimitive.Root;
|
1933
1933
|
var DialogTrigger = DialogPrimitive.Trigger;
|
1934
|
-
var DialogPortal = ({ ...props }) => /* @__PURE__ */
|
1935
|
-
var DialogOverlay =
|
1934
|
+
var DialogPortal = ({ ...props }) => /* @__PURE__ */ React15.createElement(DialogPrimitive.Portal, { ...props });
|
1935
|
+
var DialogOverlay = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React15.createElement(
|
1936
1936
|
DialogPrimitive.Overlay,
|
1937
1937
|
{
|
1938
1938
|
ref,
|
@@ -1943,7 +1943,7 @@ var DialogOverlay = React14.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
1943
1943
|
...props
|
1944
1944
|
}
|
1945
1945
|
));
|
1946
|
-
var DialogContent =
|
1946
|
+
var DialogContent = React15.forwardRef(({ className, children, persist, hideCloseButton, ...props }, ref) => /* @__PURE__ */ React15.createElement(DialogPortal, { container: props.container }, /* @__PURE__ */ React15.createElement(DialogOverlay, null), /* @__PURE__ */ React15.createElement(
|
1947
1947
|
DialogPrimitive.Content,
|
1948
1948
|
{
|
1949
1949
|
onPointerDownOutside: (e) => {
|
@@ -1959,7 +1959,7 @@ var DialogContent = React14.forwardRef(({ className, children, persist, hideClos
|
|
1959
1959
|
...props
|
1960
1960
|
},
|
1961
1961
|
children,
|
1962
|
-
!hideCloseButton && /* @__PURE__ */
|
1962
|
+
!hideCloseButton && /* @__PURE__ */ React15.createElement(
|
1963
1963
|
DialogPrimitive.Close,
|
1964
1964
|
{
|
1965
1965
|
className: cn(
|
@@ -1967,7 +1967,7 @@ var DialogContent = React14.forwardRef(({ className, children, persist, hideClos
|
|
1967
1967
|
props.dir === "rtl" ? " hawa-left-4" : " hawa-right-4"
|
1968
1968
|
)
|
1969
1969
|
},
|
1970
|
-
/* @__PURE__ */
|
1970
|
+
/* @__PURE__ */ React15.createElement(
|
1971
1971
|
"svg",
|
1972
1972
|
{
|
1973
1973
|
"aria-label": "Close Icon",
|
@@ -1976,7 +1976,7 @@ var DialogContent = React14.forwardRef(({ className, children, persist, hideClos
|
|
1976
1976
|
fill: "currentColor",
|
1977
1977
|
viewBox: "0 0 20 20"
|
1978
1978
|
},
|
1979
|
-
/* @__PURE__ */
|
1979
|
+
/* @__PURE__ */ React15.createElement(
|
1980
1980
|
"path",
|
1981
1981
|
{
|
1982
1982
|
fillRule: "evenodd",
|
@@ -1985,10 +1985,10 @@ var DialogContent = React14.forwardRef(({ className, children, persist, hideClos
|
|
1985
1985
|
}
|
1986
1986
|
)
|
1987
1987
|
),
|
1988
|
-
/* @__PURE__ */
|
1988
|
+
/* @__PURE__ */ React15.createElement("span", { className: "hawa-sr-only" }, "Close")
|
1989
1989
|
)
|
1990
1990
|
)));
|
1991
|
-
var DialogCarouselContent =
|
1991
|
+
var DialogCarouselContent = React15.forwardRef(
|
1992
1992
|
({
|
1993
1993
|
className,
|
1994
1994
|
children,
|
@@ -1997,7 +1997,7 @@ var DialogCarouselContent = React14.forwardRef(
|
|
1997
1997
|
hideCloseButton,
|
1998
1998
|
hidePrevButton,
|
1999
1999
|
...props
|
2000
|
-
}, ref) => /* @__PURE__ */
|
2000
|
+
}, ref) => /* @__PURE__ */ React15.createElement(DialogPortal, null, /* @__PURE__ */ React15.createElement(DialogOverlay, null), /* @__PURE__ */ React15.createElement(
|
2001
2001
|
DialogPrimitive.Content,
|
2002
2002
|
{
|
2003
2003
|
onPointerDownOutside: (e) => {
|
@@ -2013,7 +2013,7 @@ var DialogCarouselContent = React14.forwardRef(
|
|
2013
2013
|
...props
|
2014
2014
|
},
|
2015
2015
|
children,
|
2016
|
-
/* @__PURE__ */
|
2016
|
+
/* @__PURE__ */ React15.createElement(
|
2017
2017
|
"div",
|
2018
2018
|
{
|
2019
2019
|
className: cn(
|
@@ -2021,7 +2021,7 @@ var DialogCarouselContent = React14.forwardRef(
|
|
2021
2021
|
onPrev ? "hawa-justify-between" : "hawa-justify-end"
|
2022
2022
|
)
|
2023
2023
|
},
|
2024
|
-
hidePrevButton ? /* @__PURE__ */
|
2024
|
+
hidePrevButton ? /* @__PURE__ */ React15.createElement("div", null) : /* @__PURE__ */ React15.createElement(
|
2025
2025
|
"div",
|
2026
2026
|
{
|
2027
2027
|
onClick: onPrev,
|
@@ -2030,7 +2030,7 @@ var DialogCarouselContent = React14.forwardRef(
|
|
2030
2030
|
props.dir === "rtl" && "hawa-rotate-180"
|
2031
2031
|
)
|
2032
2032
|
},
|
2033
|
-
/* @__PURE__ */
|
2033
|
+
/* @__PURE__ */ React15.createElement(
|
2034
2034
|
"svg",
|
2035
2035
|
{
|
2036
2036
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -2044,10 +2044,10 @@ var DialogCarouselContent = React14.forwardRef(
|
|
2044
2044
|
strokeLinecap: "round",
|
2045
2045
|
strokeLinejoin: "round"
|
2046
2046
|
},
|
2047
|
-
/* @__PURE__ */
|
2047
|
+
/* @__PURE__ */ React15.createElement("path", { d: "m15 18-6-6 6-6" })
|
2048
2048
|
)
|
2049
2049
|
),
|
2050
|
-
!hideCloseButton && /* @__PURE__ */
|
2050
|
+
!hideCloseButton && /* @__PURE__ */ React15.createElement(
|
2051
2051
|
DialogPrimitive.Close,
|
2052
2052
|
{
|
2053
2053
|
className: cn(
|
@@ -2055,7 +2055,7 @@ var DialogCarouselContent = React14.forwardRef(
|
|
2055
2055
|
props.dir === "rtl" ? " hawa-left-4" : " hawa-right-4"
|
2056
2056
|
)
|
2057
2057
|
},
|
2058
|
-
/* @__PURE__ */
|
2058
|
+
/* @__PURE__ */ React15.createElement(
|
2059
2059
|
"svg",
|
2060
2060
|
{
|
2061
2061
|
"aria-label": "Close Icon",
|
@@ -2064,7 +2064,7 @@ var DialogCarouselContent = React14.forwardRef(
|
|
2064
2064
|
fill: "currentColor",
|
2065
2065
|
viewBox: "0 0 20 20"
|
2066
2066
|
},
|
2067
|
-
/* @__PURE__ */
|
2067
|
+
/* @__PURE__ */ React15.createElement(
|
2068
2068
|
"path",
|
2069
2069
|
{
|
2070
2070
|
fillRule: "evenodd",
|
@@ -2073,7 +2073,7 @@ var DialogCarouselContent = React14.forwardRef(
|
|
2073
2073
|
}
|
2074
2074
|
)
|
2075
2075
|
),
|
2076
|
-
/* @__PURE__ */
|
2076
|
+
/* @__PURE__ */ React15.createElement("span", { className: "hawa-sr-only" }, "Close")
|
2077
2077
|
)
|
2078
2078
|
)
|
2079
2079
|
))
|
@@ -2081,7 +2081,7 @@ var DialogCarouselContent = React14.forwardRef(
|
|
2081
2081
|
var DialogHeader = ({
|
2082
2082
|
className,
|
2083
2083
|
...props
|
2084
|
-
}) => /* @__PURE__ */
|
2084
|
+
}) => /* @__PURE__ */ React15.createElement(
|
2085
2085
|
"div",
|
2086
2086
|
{
|
2087
2087
|
className: cn(
|
@@ -2091,7 +2091,7 @@ var DialogHeader = ({
|
|
2091
2091
|
...props
|
2092
2092
|
}
|
2093
2093
|
);
|
2094
|
-
var DialogTitle =
|
2094
|
+
var DialogTitle = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React15.createElement(
|
2095
2095
|
DialogPrimitive.Title,
|
2096
2096
|
{
|
2097
2097
|
ref,
|
@@ -2102,7 +2102,7 @@ var DialogTitle = React14.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
2102
2102
|
...props
|
2103
2103
|
}
|
2104
2104
|
));
|
2105
|
-
var DialogDescription =
|
2105
|
+
var DialogDescription = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React15.createElement(
|
2106
2106
|
DialogPrimitive.Description,
|
2107
2107
|
{
|
2108
2108
|
ref,
|
@@ -2116,7 +2116,7 @@ var DialogDescription = React14.forwardRef(({ className, ...props }, ref) => /*
|
|
2116
2116
|
var DialogFooter = ({
|
2117
2117
|
className,
|
2118
2118
|
...props
|
2119
|
-
}) => /* @__PURE__ */
|
2119
|
+
}) => /* @__PURE__ */ React15.createElement(
|
2120
2120
|
"div",
|
2121
2121
|
{
|
2122
2122
|
className: cn(
|
@@ -2132,12 +2132,12 @@ var DialogCarousel = ({
|
|
2132
2132
|
children,
|
2133
2133
|
direction
|
2134
2134
|
}) => {
|
2135
|
-
|
2135
|
+
React15.useEffect(() => {
|
2136
2136
|
if (stepsApi) {
|
2137
2137
|
stepsApi.reInit();
|
2138
2138
|
}
|
2139
2139
|
}, [stepsApi, children]);
|
2140
|
-
return /* @__PURE__ */
|
2140
|
+
return /* @__PURE__ */ React15.createElement("div", { className: "hawa-overflow-hidden" }, /* @__PURE__ */ React15.createElement("div", { ref: stepsRef, dir: direction }, /* @__PURE__ */ React15.createElement(
|
2141
2141
|
"div",
|
2142
2142
|
{
|
2143
2143
|
className: "hawa-flex",
|
@@ -2145,7 +2145,7 @@ var DialogCarousel = ({
|
|
2145
2145
|
transition: "height 0.2s"
|
2146
2146
|
}
|
2147
2147
|
},
|
2148
|
-
|
2148
|
+
React15.Children.map(children, (child, index) => /* @__PURE__ */ React15.createElement(
|
2149
2149
|
"div",
|
2150
2150
|
{
|
2151
2151
|
className: cn(
|
@@ -2162,14 +2162,14 @@ var DialogSteps = ({
|
|
2162
2162
|
visibleStepRef,
|
2163
2163
|
children
|
2164
2164
|
}) => {
|
2165
|
-
const [dialogHeight, setDialogHeight] =
|
2166
|
-
|
2165
|
+
const [dialogHeight, setDialogHeight] = React15.useState(null);
|
2166
|
+
React15.useEffect(() => {
|
2167
2167
|
if (visibleStepRef.current) {
|
2168
2168
|
setDialogHeight(visibleStepRef.current.offsetHeight);
|
2169
2169
|
console.log("height is ", visibleStepRef.current.offsetHeight);
|
2170
2170
|
}
|
2171
2171
|
}, [currentStep, visibleStepRef]);
|
2172
|
-
return /* @__PURE__ */
|
2172
|
+
return /* @__PURE__ */ React15.createElement(
|
2173
2173
|
"div",
|
2174
2174
|
{
|
2175
2175
|
className: "hawa-relative hawa-overflow-clip",
|
@@ -2178,7 +2178,7 @@ var DialogSteps = ({
|
|
2178
2178
|
transition: "height 0.2s"
|
2179
2179
|
}
|
2180
2180
|
},
|
2181
|
-
|
2181
|
+
React15.Children.map(children, (child, index) => /* @__PURE__ */ React15.createElement(
|
2182
2182
|
"div",
|
2183
2183
|
{
|
2184
2184
|
ref: currentStep === `step-${index + 1}` ? visibleStepRef : null,
|
@@ -2196,7 +2196,7 @@ var DialogStep = ({
|
|
2196
2196
|
className,
|
2197
2197
|
stepRef
|
2198
2198
|
}) => {
|
2199
|
-
return /* @__PURE__ */
|
2199
|
+
return /* @__PURE__ */ React15.createElement(
|
2200
2200
|
"div",
|
2201
2201
|
{
|
2202
2202
|
id,
|
@@ -2207,7 +2207,7 @@ var DialogStep = ({
|
|
2207
2207
|
);
|
2208
2208
|
};
|
2209
2209
|
var DialogBody = ({ children, className }) => {
|
2210
|
-
return /* @__PURE__ */
|
2210
|
+
return /* @__PURE__ */ React15.createElement("div", { className: cn("hawa-py-6", className) }, children);
|
2211
2211
|
};
|
2212
2212
|
DialogBody.displayName = "DialogBody";
|
2213
2213
|
DialogStep.displayName = "DialogStep";
|
@@ -2226,12 +2226,24 @@ DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
|
2226
2226
|
var import_react6 = __toESM(require("react"));
|
2227
2227
|
|
2228
2228
|
// elements/button/Button.tsx
|
2229
|
-
var
|
2229
|
+
var React17 = __toESM(require("react"));
|
2230
2230
|
var import_class_variance_authority3 = require("class-variance-authority");
|
2231
2231
|
|
2232
|
+
// elements/helperText/HelperText.tsx
|
2233
|
+
var HelperText = ({ helperText }) => /* @__PURE__ */ React.createElement(
|
2234
|
+
"p",
|
2235
|
+
{
|
2236
|
+
className: cn(
|
2237
|
+
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
2238
|
+
helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
2239
|
+
)
|
2240
|
+
},
|
2241
|
+
helperText
|
2242
|
+
);
|
2243
|
+
|
2232
2244
|
// elements/label/Label.tsx
|
2233
|
-
var
|
2234
|
-
var Label2 =
|
2245
|
+
var React16 = __toESM(require("react"));
|
2246
|
+
var Label2 = React16.forwardRef(({ className, hint, hintSide, required, children, ...props }, ref) => /* @__PURE__ */ React16.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-1 hawa-transition-all" }, /* @__PURE__ */ React16.createElement(
|
2235
2247
|
"label",
|
2236
2248
|
{
|
2237
2249
|
ref,
|
@@ -2242,8 +2254,8 @@ var Label2 = React15.forwardRef(({ className, hint, hintSide, required, children
|
|
2242
2254
|
...props
|
2243
2255
|
},
|
2244
2256
|
children,
|
2245
|
-
required && /* @__PURE__ */
|
2246
|
-
), hint && /* @__PURE__ */
|
2257
|
+
required && /* @__PURE__ */ React16.createElement("span", { className: "hawa-mx-0.5 hawa-text-red-500" }, "*")
|
2258
|
+
), hint && /* @__PURE__ */ React16.createElement(
|
2247
2259
|
Tooltip,
|
2248
2260
|
{
|
2249
2261
|
content: hint,
|
@@ -2253,7 +2265,7 @@ var Label2 = React15.forwardRef(({ className, hint, hintSide, required, children
|
|
2253
2265
|
onClick: (event) => event.preventDefault()
|
2254
2266
|
}
|
2255
2267
|
},
|
2256
|
-
/* @__PURE__ */
|
2268
|
+
/* @__PURE__ */ React16.createElement("div", null, /* @__PURE__ */ React16.createElement(
|
2257
2269
|
"svg",
|
2258
2270
|
{
|
2259
2271
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -2265,9 +2277,9 @@ var Label2 = React15.forwardRef(({ className, hint, hintSide, required, children
|
|
2265
2277
|
strokeLinecap: "round",
|
2266
2278
|
strokeLinejoin: "round"
|
2267
2279
|
},
|
2268
|
-
/* @__PURE__ */
|
2269
|
-
/* @__PURE__ */
|
2270
|
-
/* @__PURE__ */
|
2280
|
+
/* @__PURE__ */ React16.createElement("circle", { cx: "12", cy: "12", r: "10" }),
|
2281
|
+
/* @__PURE__ */ React16.createElement("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
|
2282
|
+
/* @__PURE__ */ React16.createElement("path", { d: "M12 17h.01" })
|
2271
2283
|
))
|
2272
2284
|
)));
|
2273
2285
|
Label2.displayName = "Label";
|
@@ -2300,13 +2312,10 @@ var buttonVariants = (0, import_class_variance_authority3.cva)(
|
|
2300
2312
|
smallIcon: "hawa-h-7 hawa-w-7"
|
2301
2313
|
}
|
2302
2314
|
},
|
2303
|
-
defaultVariants: {
|
2304
|
-
variant: "default",
|
2305
|
-
size: "default"
|
2306
|
-
}
|
2315
|
+
defaultVariants: { variant: "default", size: "default" }
|
2307
2316
|
}
|
2308
2317
|
);
|
2309
|
-
var Button =
|
2318
|
+
var Button = React17.forwardRef(
|
2310
2319
|
({
|
2311
2320
|
className,
|
2312
2321
|
label,
|
@@ -2316,11 +2325,13 @@ var Button = React16.forwardRef(
|
|
2316
2325
|
centered = true,
|
2317
2326
|
isLoading,
|
2318
2327
|
children,
|
2328
|
+
labelProps,
|
2329
|
+
showHelperText = false,
|
2319
2330
|
...props
|
2320
2331
|
}, ref) => {
|
2321
2332
|
const Comp = "button";
|
2322
2333
|
const loadingColor = variant === "outline" || variant === "ghost" || variant === "neoBrutalism" ? "hawa-bg-primary" : "hawa-bg-primary-foreground";
|
2323
|
-
return /* @__PURE__ */
|
2334
|
+
return /* @__PURE__ */ React17.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, label && /* @__PURE__ */ React17.createElement(Label2, { ...labelProps }, label), /* @__PURE__ */ React17.createElement(
|
2324
2335
|
Comp,
|
2325
2336
|
{
|
2326
2337
|
className: cn(
|
@@ -2330,7 +2341,7 @@ var Button = React16.forwardRef(
|
|
2330
2341
|
ref,
|
2331
2342
|
...props
|
2332
2343
|
},
|
2333
|
-
isLoading ? /* @__PURE__ */
|
2344
|
+
isLoading ? /* @__PURE__ */ React17.createElement(
|
2334
2345
|
Loading,
|
2335
2346
|
{
|
2336
2347
|
design: size === "icon" || size === "smallIcon" ? "spinner" : "dots-pulse",
|
@@ -2339,7 +2350,7 @@ var Button = React16.forwardRef(
|
|
2339
2350
|
size: size === "sm" || size === "xs" ? "xs" : "button"
|
2340
2351
|
}
|
2341
2352
|
) : children
|
2342
|
-
));
|
2353
|
+
), showHelperText && /* @__PURE__ */ React17.createElement(HelperText, { helperText: props.helperText }));
|
2343
2354
|
}
|
2344
2355
|
);
|
2345
2356
|
Button.displayName = "Button";
|
@@ -2605,7 +2616,7 @@ var Avatar = ({
|
|
2605
2616
|
};
|
2606
2617
|
|
2607
2618
|
// elements/dataTable/DataTable.tsx
|
2608
|
-
var
|
2619
|
+
var React23 = __toESM(require("react"));
|
2609
2620
|
var import_react_table = require("@tanstack/react-table");
|
2610
2621
|
|
2611
2622
|
// elements/input/Input.tsx
|
@@ -2675,7 +2686,7 @@ var Input = (0, import_react9.forwardRef)(
|
|
2675
2686
|
)
|
2676
2687
|
},
|
2677
2688
|
props.outsidePrefix
|
2678
|
-
), props.isLoading ? /* @__PURE__ */ import_react9.default.createElement("div", { className: "hawa-pb-2" }, /* @__PURE__ */ import_react9.default.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" })) : /* @__PURE__ */ import_react9.default.createElement(import_react9.default.Fragment, null, !props.hideSeparator && /* @__PURE__ */ import_react9.default.createElement(
|
2689
|
+
), props.isLoading ? /* @__PURE__ */ import_react9.default.createElement("div", { className: "hawa-pb-2 hawa-w-full" }, /* @__PURE__ */ import_react9.default.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" })) : /* @__PURE__ */ import_react9.default.createElement(import_react9.default.Fragment, null, !props.hideSeparator && /* @__PURE__ */ import_react9.default.createElement(
|
2679
2690
|
"div",
|
2680
2691
|
{
|
2681
2692
|
className: cn(
|
@@ -2757,8 +2768,8 @@ var Input = (0, import_react9.forwardRef)(
|
|
2757
2768
|
);
|
2758
2769
|
|
2759
2770
|
// elements/table/Table.tsx
|
2760
|
-
var
|
2761
|
-
var Table =
|
2771
|
+
var React22 = __toESM(require("react"));
|
2772
|
+
var Table = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React22.createElement("div", { className: "hawa-relative hawa-w-full hawa-overflow-auto hawa-rounded hawa-border" }, /* @__PURE__ */ React22.createElement(
|
2762
2773
|
"table",
|
2763
2774
|
{
|
2764
2775
|
ref,
|
@@ -2766,7 +2777,7 @@ var Table = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
2766
2777
|
...props
|
2767
2778
|
}
|
2768
2779
|
)));
|
2769
|
-
var TableHeader =
|
2780
|
+
var TableHeader = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React22.createElement(
|
2770
2781
|
"thead",
|
2771
2782
|
{
|
2772
2783
|
ref,
|
@@ -2774,8 +2785,8 @@ var TableHeader = React21.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
2774
2785
|
...props
|
2775
2786
|
}
|
2776
2787
|
));
|
2777
|
-
var TableHead =
|
2778
|
-
({ className, condensed, clickable, dir, ...props }, ref) => /* @__PURE__ */
|
2788
|
+
var TableHead = React22.forwardRef(
|
2789
|
+
({ className, condensed, clickable, dir, ...props }, ref) => /* @__PURE__ */ React22.createElement(
|
2779
2790
|
"th",
|
2780
2791
|
{
|
2781
2792
|
ref,
|
@@ -2793,8 +2804,8 @@ var TableHead = React21.forwardRef(
|
|
2793
2804
|
}
|
2794
2805
|
)
|
2795
2806
|
);
|
2796
|
-
var TableBody =
|
2797
|
-
var TableFooter =
|
2807
|
+
var TableBody = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React22.createElement("tbody", { ref, className: cn("hawa-border-none", className), ...props }));
|
2808
|
+
var TableFooter = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React22.createElement(
|
2798
2809
|
"tfoot",
|
2799
2810
|
{
|
2800
2811
|
ref,
|
@@ -2805,7 +2816,7 @@ var TableFooter = React21.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
2805
2816
|
...props
|
2806
2817
|
}
|
2807
2818
|
));
|
2808
|
-
var TableRow =
|
2819
|
+
var TableRow = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React22.createElement(
|
2809
2820
|
"tr",
|
2810
2821
|
{
|
2811
2822
|
ref,
|
@@ -2818,14 +2829,14 @@ var TableRow = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
2818
2829
|
...props
|
2819
2830
|
}
|
2820
2831
|
));
|
2821
|
-
var TableCell =
|
2832
|
+
var TableCell = React22.forwardRef(
|
2822
2833
|
({ className, enablePadding = true, padding = "default", ...props }, ref) => {
|
2823
2834
|
let paddingStyles = {
|
2824
2835
|
condensed: "hawa-p-0 hawa-px-4",
|
2825
2836
|
default: "hawa-p-4",
|
2826
2837
|
noPadding: "hawa-p-0"
|
2827
2838
|
};
|
2828
|
-
return /* @__PURE__ */
|
2839
|
+
return /* @__PURE__ */ React22.createElement(
|
2829
2840
|
"td",
|
2830
2841
|
{
|
2831
2842
|
ref,
|
@@ -2846,7 +2857,7 @@ var TableCell = React21.forwardRef(
|
|
2846
2857
|
);
|
2847
2858
|
}
|
2848
2859
|
);
|
2849
|
-
var TableCaption =
|
2860
|
+
var TableCaption = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React22.createElement(
|
2850
2861
|
"caption",
|
2851
2862
|
{
|
2852
2863
|
ref,
|
@@ -2878,16 +2889,16 @@ var DataTable = ({
|
|
2878
2889
|
...props
|
2879
2890
|
}) => {
|
2880
2891
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
|
2881
|
-
const [sorting, setSorting] =
|
2892
|
+
const [sorting, setSorting] = React23.useState(
|
2882
2893
|
props.defaultSort ? [{ id: props.defaultSort, desc: false }] : []
|
2883
2894
|
);
|
2884
|
-
const [columnFilters, setColumnFilters] =
|
2895
|
+
const [columnFilters, setColumnFilters] = React23.useState(
|
2885
2896
|
[]
|
2886
2897
|
);
|
2887
|
-
const [globalFilter, setGlobalFilter] =
|
2888
|
-
const [expanded, setExpanded] =
|
2889
|
-
const [columnVisibility, setColumnVisibility] =
|
2890
|
-
const [rowSelection, setRowSelection] =
|
2898
|
+
const [globalFilter, setGlobalFilter] = React23.useState("");
|
2899
|
+
const [expanded, setExpanded] = React23.useState({});
|
2900
|
+
const [columnVisibility, setColumnVisibility] = React23.useState({});
|
2901
|
+
const [rowSelection, setRowSelection] = React23.useState({});
|
2891
2902
|
const table = (0, import_react_table.useReactTable)({
|
2892
2903
|
data,
|
2893
2904
|
columns,
|
@@ -2916,7 +2927,7 @@ var DataTable = ({
|
|
2916
2927
|
label: `${item} / ${pageText}`,
|
2917
2928
|
value: item
|
2918
2929
|
}));
|
2919
|
-
|
2930
|
+
React23.useEffect(() => {
|
2920
2931
|
setColumnVisibility((prev) => {
|
2921
2932
|
let newColumnVisibility = {};
|
2922
2933
|
columns.forEach((column) => {
|
@@ -2926,24 +2937,52 @@ var DataTable = ({
|
|
2926
2937
|
return newColumnVisibility;
|
2927
2938
|
});
|
2928
2939
|
}, [columns]);
|
2929
|
-
return /* @__PURE__ */
|
2940
|
+
return /* @__PURE__ */ React23.createElement("div", { className: "hawa-flex hawa-w-full hawa-flex-col hawa-gap-4" }, (enableSearch || enableHideColumns) && /* @__PURE__ */ React23.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-4" }, enableSearch && /* @__PURE__ */ React23.createElement(
|
2930
2941
|
Input,
|
2931
2942
|
{
|
2943
|
+
inputProps: { title: "" },
|
2932
2944
|
forceHideHelperText: true,
|
2933
2945
|
placeholder: (_c = props.texts) == null ? void 0 : _c.searchPlaceholder,
|
2934
2946
|
value: globalFilter != null ? globalFilter : "",
|
2935
2947
|
onChange: (event) => setGlobalFilter(event.target.value),
|
2936
2948
|
margin: "none",
|
2937
|
-
className: "hawa-w-full md:hawa-max-w-sm"
|
2949
|
+
className: "hawa-w-full md:hawa-max-w-sm",
|
2950
|
+
endIconProps: { className: "!hawa-end-2" },
|
2951
|
+
endIcon: globalFilter ? /* @__PURE__ */ React23.createElement(
|
2952
|
+
Button,
|
2953
|
+
{
|
2954
|
+
onClick: () => setGlobalFilter(""),
|
2955
|
+
variant: "ghost",
|
2956
|
+
size: "smallIcon",
|
2957
|
+
"aria-label": "Clear Search"
|
2958
|
+
},
|
2959
|
+
/* @__PURE__ */ React23.createElement(
|
2960
|
+
"svg",
|
2961
|
+
{
|
2962
|
+
xmlns: "http://www.w3.org/2000/svg",
|
2963
|
+
width: "16",
|
2964
|
+
height: "16",
|
2965
|
+
viewBox: "0 0 24 24",
|
2966
|
+
fill: "none",
|
2967
|
+
stroke: "currentColor",
|
2968
|
+
strokeWidth: "2",
|
2969
|
+
strokeLinecap: "round",
|
2970
|
+
strokeLinejoin: "round",
|
2971
|
+
className: "hawa-icon hawa-text-muted-foreground"
|
2972
|
+
},
|
2973
|
+
/* @__PURE__ */ React23.createElement("path", { d: "M18 6 6 18" }),
|
2974
|
+
/* @__PURE__ */ React23.createElement("path", { d: "m6 6 12 12" })
|
2975
|
+
)
|
2976
|
+
) : null
|
2938
2977
|
}
|
2939
|
-
), enableHideColumns && /* @__PURE__ */
|
2978
|
+
), enableHideColumns && /* @__PURE__ */ React23.createElement(DropdownMenuRoot, null, /* @__PURE__ */ React23.createElement(DropdownMenuTrigger, { asChild: true }, /* @__PURE__ */ React23.createElement(
|
2940
2979
|
Button,
|
2941
2980
|
{
|
2942
2981
|
variant: "outline",
|
2943
2982
|
className: "hawa-flex hawa-flex-row hawa-gap-2"
|
2944
2983
|
},
|
2945
2984
|
((_d = props.texts) == null ? void 0 : _d.columns) || "Columns",
|
2946
|
-
/* @__PURE__ */
|
2985
|
+
/* @__PURE__ */ React23.createElement(
|
2947
2986
|
"svg",
|
2948
2987
|
{
|
2949
2988
|
"aria-label": "Chevron Down Icon",
|
@@ -2958,16 +2997,16 @@ var DataTable = ({
|
|
2958
2997
|
strokeLinejoin: "round",
|
2959
2998
|
className: "hawa-icon hawa-rotate-90"
|
2960
2999
|
},
|
2961
|
-
/* @__PURE__ */
|
3000
|
+
/* @__PURE__ */ React23.createElement("path", { d: "m9 18 6-6-6-6" })
|
2962
3001
|
)
|
2963
|
-
)), /* @__PURE__ */
|
3002
|
+
)), /* @__PURE__ */ React23.createElement(
|
2964
3003
|
DropdownMenuContent,
|
2965
3004
|
{
|
2966
3005
|
align: props.direction === "rtl" ? "start" : "end"
|
2967
3006
|
},
|
2968
3007
|
table.getAllColumns().filter((column) => column.getCanHide()).map((column) => {
|
2969
3008
|
var _a2, _b2;
|
2970
|
-
return /* @__PURE__ */
|
3009
|
+
return /* @__PURE__ */ React23.createElement(
|
2971
3010
|
DropdownMenuCheckboxItem,
|
2972
3011
|
{
|
2973
3012
|
key: column.id,
|
@@ -2979,7 +3018,7 @@ var DataTable = ({
|
|
2979
3018
|
) : column.id
|
2980
3019
|
);
|
2981
3020
|
})
|
2982
|
-
))), props.isLoading ? /* @__PURE__ */
|
3021
|
+
))), props.isLoading ? /* @__PURE__ */ React23.createElement(Skeleton, { className: "hawa-h-[130px] hawa-w-full" }) : /* @__PURE__ */ React23.createElement(
|
2983
3022
|
"div",
|
2984
3023
|
{
|
2985
3024
|
className: cn(
|
@@ -2987,10 +3026,10 @@ var DataTable = ({
|
|
2987
3026
|
paginationPosition === "top" ? "hawa-flex-col-reverse" : "hawa-flex-col"
|
2988
3027
|
)
|
2989
3028
|
},
|
2990
|
-
/* @__PURE__ */
|
3029
|
+
/* @__PURE__ */ React23.createElement("div", { className: "hawa-rounded-md" }, /* @__PURE__ */ React23.createElement(Table, null, table.getAllColumns().length > 0 && /* @__PURE__ */ React23.createElement(TableHeader, null, table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ React23.createElement(TableRow, { key: headerGroup.id }, headerGroup.headers.map((header) => {
|
2991
3030
|
var _a2;
|
2992
3031
|
let isSortable = (_a2 = header.column.columnDef.meta) == null ? void 0 : _a2.sortable;
|
2993
|
-
return /* @__PURE__ */
|
3032
|
+
return /* @__PURE__ */ React23.createElement(
|
2994
3033
|
TableHead,
|
2995
3034
|
{
|
2996
3035
|
dir: props.direction,
|
@@ -3006,7 +3045,7 @@ var DataTable = ({
|
|
3006
3045
|
header.getContext()
|
3007
3046
|
)
|
3008
3047
|
);
|
3009
|
-
})))), /* @__PURE__ */
|
3048
|
+
})))), /* @__PURE__ */ React23.createElement(TableBody, null, ((_e = table.getRowModel().rows) == null ? void 0 : _e.length) ? table.getRowModel().rows.map((row) => /* @__PURE__ */ React23.createElement(
|
3010
3049
|
TableRow,
|
3011
3050
|
{
|
3012
3051
|
key: row.id,
|
@@ -3014,7 +3053,7 @@ var DataTable = ({
|
|
3014
3053
|
},
|
3015
3054
|
row.getVisibleCells().map((cell) => {
|
3016
3055
|
var _a2;
|
3017
|
-
return /* @__PURE__ */
|
3056
|
+
return /* @__PURE__ */ React23.createElement(
|
3018
3057
|
TableCell,
|
3019
3058
|
{
|
3020
3059
|
style: {
|
@@ -3030,7 +3069,7 @@ var DataTable = ({
|
|
3030
3069
|
)
|
3031
3070
|
);
|
3032
3071
|
})
|
3033
|
-
)) : /* @__PURE__ */
|
3072
|
+
)) : /* @__PURE__ */ React23.createElement(TableRow, null, /* @__PURE__ */ React23.createElement(
|
3034
3073
|
TableCell,
|
3035
3074
|
{
|
3036
3075
|
colSpan: columns.length,
|
@@ -3038,16 +3077,16 @@ var DataTable = ({
|
|
3038
3077
|
},
|
3039
3078
|
(_f = props.texts) == null ? void 0 : _f.noData
|
3040
3079
|
))))),
|
3041
|
-
/* @__PURE__ */
|
3080
|
+
/* @__PURE__ */ React23.createElement("div", { className: "hawa-flex hawa-items-center hawa-justify-between" }, !props.showCount && /* @__PURE__ */ React23.createElement("div", { className: "hawa-flex hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-text-sm hawa-text-muted-foreground" }), props.showCount && /* @__PURE__ */ React23.createElement(
|
3042
3081
|
"div",
|
3043
3082
|
{
|
3044
3083
|
className: "text-muted-foreground text-sm",
|
3045
3084
|
dir: props.direction
|
3046
3085
|
},
|
3047
|
-
/* @__PURE__ */
|
3086
|
+
/* @__PURE__ */ React23.createElement("span", null, (_g = props.texts) == null ? void 0 : _g.total),
|
3048
3087
|
" ",
|
3049
|
-
/* @__PURE__ */
|
3050
|
-
), /* @__PURE__ */
|
3088
|
+
/* @__PURE__ */ React23.createElement("span", null, table.getFilteredRowModel().rows.length.toLocaleString())
|
3089
|
+
), /* @__PURE__ */ React23.createElement("div", { className: "hawa-flex hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 " }, enableGoTo && /* @__PURE__ */ React23.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-2" }, /* @__PURE__ */ React23.createElement("span", { className: "hawa-text-sm" }, (_h = props.texts) == null ? void 0 : _h.goTo), /* @__PURE__ */ React23.createElement(
|
3051
3090
|
"input",
|
3052
3091
|
{
|
3053
3092
|
max: table.getPageCount(),
|
@@ -3064,7 +3103,7 @@ var DataTable = ({
|
|
3064
3103
|
},
|
3065
3104
|
className: "hawa-w-16 hawa-rounded hawa-border hawa-p-1 hawa-px-2 hawa-text-sm"
|
3066
3105
|
}
|
3067
|
-
)), /* @__PURE__ */
|
3106
|
+
)), /* @__PURE__ */ React23.createElement(
|
3068
3107
|
DropdownMenu,
|
3069
3108
|
{
|
3070
3109
|
size: "sm",
|
@@ -3077,7 +3116,7 @@ var DataTable = ({
|
|
3077
3116
|
{ label: `40 / ${pageText}`, value: 40 },
|
3078
3117
|
{ label: `50 / ${pageText}`, value: 50 }
|
3079
3118
|
],
|
3080
|
-
trigger: /* @__PURE__ */
|
3119
|
+
trigger: /* @__PURE__ */ React23.createElement(
|
3081
3120
|
Button,
|
3082
3121
|
{
|
3083
3122
|
variant: "outline",
|
@@ -3088,7 +3127,7 @@ var DataTable = ({
|
|
3088
3127
|
),
|
3089
3128
|
onItemSelect: (e) => table.setPageSize(Number(e))
|
3090
3129
|
}
|
3091
|
-
), table.getPageCount() > 1 && /* @__PURE__ */
|
3130
|
+
), table.getPageCount() > 1 && /* @__PURE__ */ React23.createElement(React23.Fragment, null, /* @__PURE__ */ React23.createElement("div", { className: "hawa-flex hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-text-sm " }, /* @__PURE__ */ React23.createElement("span", { className: "hawa-flex hawa-items-center hawa-gap-1" }, /* @__PURE__ */ React23.createElement("div", null, (_j = props.texts) == null ? void 0 : _j.page), /* @__PURE__ */ React23.createElement("div", { className: "hawa-flex hawa-flex-row hawa-gap-1" }, /* @__PURE__ */ React23.createElement("span", { className: "hawa-font-bold" }, table.getState().pagination.pageIndex + 1), /* @__PURE__ */ React23.createElement("span", null, (_k = props.texts) == null ? void 0 : _k.of), /* @__PURE__ */ React23.createElement("span", { className: "hawa-font-bold" }, table.getPageCount())))), /* @__PURE__ */ React23.createElement(
|
3092
3131
|
Button,
|
3093
3132
|
{
|
3094
3133
|
"aria-label": "Next Table Page",
|
@@ -3100,7 +3139,7 @@ var DataTable = ({
|
|
3100
3139
|
props.direction === "rtl" && "hawa-rotate-180"
|
3101
3140
|
)
|
3102
3141
|
},
|
3103
|
-
/* @__PURE__ */
|
3142
|
+
/* @__PURE__ */ React23.createElement(
|
3104
3143
|
"svg",
|
3105
3144
|
{
|
3106
3145
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -3113,10 +3152,10 @@ var DataTable = ({
|
|
3113
3152
|
strokeLinecap: "round",
|
3114
3153
|
strokeLinejoin: "round"
|
3115
3154
|
},
|
3116
|
-
/* @__PURE__ */
|
3117
|
-
/* @__PURE__ */
|
3155
|
+
/* @__PURE__ */ React23.createElement("path", { d: "m11 17-5-5 5-5" }),
|
3156
|
+
/* @__PURE__ */ React23.createElement("path", { d: "m18 17-5-5 5-5" })
|
3118
3157
|
)
|
3119
|
-
), /* @__PURE__ */
|
3158
|
+
), /* @__PURE__ */ React23.createElement(
|
3120
3159
|
Button,
|
3121
3160
|
{
|
3122
3161
|
"aria-label": "Previous Table Page",
|
@@ -3128,7 +3167,7 @@ var DataTable = ({
|
|
3128
3167
|
props.direction === "rtl" && "hawa-rotate-180"
|
3129
3168
|
)
|
3130
3169
|
},
|
3131
|
-
/* @__PURE__ */
|
3170
|
+
/* @__PURE__ */ React23.createElement(
|
3132
3171
|
"svg",
|
3133
3172
|
{
|
3134
3173
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -3142,9 +3181,9 @@ var DataTable = ({
|
|
3142
3181
|
strokeLinecap: "round",
|
3143
3182
|
strokeLinejoin: "round"
|
3144
3183
|
},
|
3145
|
-
/* @__PURE__ */
|
3184
|
+
/* @__PURE__ */ React23.createElement("path", { d: "m15 18-6-6 6-6" })
|
3146
3185
|
)
|
3147
|
-
), /* @__PURE__ */
|
3186
|
+
), /* @__PURE__ */ React23.createElement(
|
3148
3187
|
Button,
|
3149
3188
|
{
|
3150
3189
|
"aria-label": "Next Table Page",
|
@@ -3156,7 +3195,7 @@ var DataTable = ({
|
|
3156
3195
|
props.direction === "ltr" && "hawa-rotate-180"
|
3157
3196
|
)
|
3158
3197
|
},
|
3159
|
-
/* @__PURE__ */
|
3198
|
+
/* @__PURE__ */ React23.createElement(
|
3160
3199
|
"svg",
|
3161
3200
|
{
|
3162
3201
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -3170,9 +3209,9 @@ var DataTable = ({
|
|
3170
3209
|
strokeLinecap: "round",
|
3171
3210
|
strokeLinejoin: "round"
|
3172
3211
|
},
|
3173
|
-
/* @__PURE__ */
|
3212
|
+
/* @__PURE__ */ React23.createElement("path", { d: "m15 18-6-6 6-6" })
|
3174
3213
|
)
|
3175
|
-
), /* @__PURE__ */
|
3214
|
+
), /* @__PURE__ */ React23.createElement(
|
3176
3215
|
Button,
|
3177
3216
|
{
|
3178
3217
|
"aria-label": "Next Table Page",
|
@@ -3184,7 +3223,7 @@ var DataTable = ({
|
|
3184
3223
|
props.direction === "ltr" && "hawa-rotate-180"
|
3185
3224
|
)
|
3186
3225
|
},
|
3187
|
-
/* @__PURE__ */
|
3226
|
+
/* @__PURE__ */ React23.createElement(
|
3188
3227
|
"svg",
|
3189
3228
|
{
|
3190
3229
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -3197,8 +3236,8 @@ var DataTable = ({
|
|
3197
3236
|
strokeLinecap: "round",
|
3198
3237
|
strokeLinejoin: "round"
|
3199
3238
|
},
|
3200
|
-
/* @__PURE__ */
|
3201
|
-
/* @__PURE__ */
|
3239
|
+
/* @__PURE__ */ React23.createElement("path", { d: "m11 17-5-5 5-5" }),
|
3240
|
+
/* @__PURE__ */ React23.createElement("path", { d: "m18 17-5-5 5-5" })
|
3202
3241
|
)
|
3203
3242
|
))))
|
3204
3243
|
));
|
@@ -3303,6 +3342,74 @@ var BackToTop = ({ ...props }) => {
|
|
3303
3342
|
|
3304
3343
|
// elements/radio/Radio.tsx
|
3305
3344
|
var import_react11 = __toESM(require("react"));
|
3345
|
+
|
3346
|
+
// elements/popover/Popover.tsx
|
3347
|
+
var React25 = __toESM(require("react"));
|
3348
|
+
var PopoverPrimitive = __toESM(require("@radix-ui/react-popover"));
|
3349
|
+
var PopoverContent = React25.forwardRef(
|
3350
|
+
({ className, align = "center", sideOffset = 4, container, ...props }, ref) => /* @__PURE__ */ React25.createElement(PopoverPrimitive.Portal, { container }, /* @__PURE__ */ React25.createElement(
|
3351
|
+
PopoverPrimitive.Content,
|
3352
|
+
{
|
3353
|
+
ref,
|
3354
|
+
align,
|
3355
|
+
sideOffset,
|
3356
|
+
className: cn(
|
3357
|
+
"dark:dark-shadow hawa-z-50 hawa-rounded hawa-border hawa-bg-popover hawa-text-popover-foreground hawa-shadow-md hawa-outline-none data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0 data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-95 data-[side=bottom]:hawa-slide-in-from-top-2 data-[side=left]:hawa-slide-in-from-right-2 data-[side=right]:hawa-slide-in-from-left-2 data-[side=top]:hawa-slide-in-from-bottom-2",
|
3358
|
+
className
|
3359
|
+
),
|
3360
|
+
...props
|
3361
|
+
}
|
3362
|
+
))
|
3363
|
+
);
|
3364
|
+
PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
3365
|
+
var Popover = ({
|
3366
|
+
trigger,
|
3367
|
+
children,
|
3368
|
+
className,
|
3369
|
+
align = "center",
|
3370
|
+
side,
|
3371
|
+
sideOffset = 4,
|
3372
|
+
open,
|
3373
|
+
width = "default",
|
3374
|
+
disableTrigger,
|
3375
|
+
contentProps,
|
3376
|
+
triggerProps,
|
3377
|
+
...props
|
3378
|
+
}) => {
|
3379
|
+
let widthStyles = {
|
3380
|
+
trigger: "var(--radix-popover-trigger-width)",
|
3381
|
+
default: "auto"
|
3382
|
+
};
|
3383
|
+
return /* @__PURE__ */ React25.createElement(PopoverPrimitive.Root, { open, ...props }, /* @__PURE__ */ React25.createElement(
|
3384
|
+
PopoverPrimitive.Trigger,
|
3385
|
+
{
|
3386
|
+
className: "hawa-w-full",
|
3387
|
+
disabled: disableTrigger,
|
3388
|
+
...triggerProps
|
3389
|
+
},
|
3390
|
+
trigger
|
3391
|
+
), /* @__PURE__ */ React25.createElement(
|
3392
|
+
PopoverContent,
|
3393
|
+
{
|
3394
|
+
side,
|
3395
|
+
className,
|
3396
|
+
align,
|
3397
|
+
sideOffset,
|
3398
|
+
style: {
|
3399
|
+
width: widthStyles[width],
|
3400
|
+
maxWidth: "var(--radix-popover-content-available-width)",
|
3401
|
+
maxHeight: "var(--radix-popover-content-available-height)"
|
3402
|
+
},
|
3403
|
+
...contentProps
|
3404
|
+
},
|
3405
|
+
children
|
3406
|
+
));
|
3407
|
+
};
|
3408
|
+
var PopoverTrigger = PopoverPrimitive.Trigger;
|
3409
|
+
var PopoverPortal = PopoverPrimitive.Portal;
|
3410
|
+
var PopoverRoot = PopoverPrimitive.Root;
|
3411
|
+
|
3412
|
+
// elements/radio/Radio.tsx
|
3306
3413
|
var Radio = (0, import_react11.forwardRef)(
|
3307
3414
|
({
|
3308
3415
|
design = "default",
|
@@ -3317,9 +3424,6 @@ var Radio = (0, import_react11.forwardRef)(
|
|
3317
3424
|
...props
|
3318
3425
|
}, ref) => {
|
3319
3426
|
var _a, _b, _c;
|
3320
|
-
const [selectedOption, setSelectedOption] = (0, import_react11.useState)(
|
3321
|
-
props.defaultValue || props.value
|
3322
|
-
);
|
3323
3427
|
let activeTabStyle = "hawa-inline-block hawa-w-full hawa-text-primary-foreground hawa-bg-primary hawa-active dark:hawa-bg-primary";
|
3324
3428
|
let inactiveTabStyle = `hawa-inline-block hawa-w-full hawa-transition-all hawa-bg-primary-foreground dark:hover:hawa-text-white
|
3325
3429
|
${props.disabled ? "" : "hover:hawa-bg-muted"}`;
|
@@ -3341,6 +3445,10 @@ var Radio = (0, import_react11.forwardRef)(
|
|
3341
3445
|
const [parentDirection, setParentDirection] = import_react11.default.useState(
|
3342
3446
|
null
|
3343
3447
|
);
|
3448
|
+
const [selectedOption, setSelectedOption] = (0, import_react11.useState)(
|
3449
|
+
props.defaultValue || props.value
|
3450
|
+
);
|
3451
|
+
const [openTooltip, setOpenTooltip] = (0, import_react11.useState)(null);
|
3344
3452
|
const parentRef = (0, import_react11.useRef)(null);
|
3345
3453
|
(0, import_react11.useEffect)(() => {
|
3346
3454
|
var _a2;
|
@@ -3358,6 +3466,14 @@ var Radio = (0, import_react11.forwardRef)(
|
|
3358
3466
|
console.log("onChange was not provided");
|
3359
3467
|
}
|
3360
3468
|
};
|
3469
|
+
const radio_option_tabs_styling = [
|
3470
|
+
"hawa-w-full hawa-last hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-2 ",
|
3471
|
+
!props.disabled && "hawa-cursor-pointer",
|
3472
|
+
orientation === "horizontal" && parentDirection === "ltr" && "hawa-rounded-none first:hawa-rounded-l last:hawa-rounded-r",
|
3473
|
+
orientation === "horizontal" && parentDirection === "rtl" && "hawa-rounded-none first:hawa-rounded-r last:hawa-rounded-l",
|
3474
|
+
orientation === "vertical" && "hawa-rounded-none first:hawa-rounded-t last:hawa-rounded-b",
|
3475
|
+
tabSizeStyle[size]
|
3476
|
+
];
|
3361
3477
|
switch (design) {
|
3362
3478
|
case "tabs":
|
3363
3479
|
return /* @__PURE__ */ import_react11.default.createElement("div", { className: "hawa-gap-2 hawa-flex hawa-flex-col" }, props.label && /* @__PURE__ */ import_react11.default.createElement(Label2, { ...labelProps }, props.label), /* @__PURE__ */ import_react11.default.createElement(
|
@@ -3372,29 +3488,59 @@ var Radio = (0, import_react11.forwardRef)(
|
|
3372
3488
|
tabsContainerClassName
|
3373
3489
|
)
|
3374
3490
|
},
|
3375
|
-
(_b = props.options) == null ? void 0 : _b.map((opt, o) =>
|
3376
|
-
|
3377
|
-
|
3378
|
-
|
3379
|
-
|
3380
|
-
|
3381
|
-
|
3382
|
-
handleChange(opt);
|
3491
|
+
(_b = props.options) == null ? void 0 : _b.map((opt, o) => {
|
3492
|
+
return opt.tooltip ? /* @__PURE__ */ import_react11.default.createElement(
|
3493
|
+
PopoverRoot,
|
3494
|
+
{
|
3495
|
+
key: o,
|
3496
|
+
open: o === openTooltip,
|
3497
|
+
onOpenChange: (bool) => setOpenTooltip(bool ? o : null)
|
3383
3498
|
},
|
3384
|
-
|
3385
|
-
|
3386
|
-
|
3387
|
-
|
3388
|
-
|
3389
|
-
|
3390
|
-
|
3391
|
-
|
3499
|
+
/* @__PURE__ */ import_react11.default.createElement(
|
3500
|
+
PopoverTrigger,
|
3501
|
+
{
|
3502
|
+
onMouseEnter: () => setOpenTooltip(o),
|
3503
|
+
onMouseLeave: () => setOpenTooltip(null),
|
3504
|
+
asChild: true
|
3505
|
+
},
|
3506
|
+
/* @__PURE__ */ import_react11.default.createElement(
|
3507
|
+
"li",
|
3508
|
+
{
|
3509
|
+
"aria-current": "page",
|
3510
|
+
onClick: () => {
|
3511
|
+
if (props.disabled || opt.disabled)
|
3512
|
+
return;
|
3513
|
+
handleChange(opt);
|
3514
|
+
},
|
3515
|
+
className: cn(
|
3516
|
+
...radio_option_tabs_styling,
|
3517
|
+
selectedOption === opt.value ? activeTabStyle : inactiveTabStyle
|
3518
|
+
)
|
3519
|
+
},
|
3520
|
+
opt.icon && opt.icon,
|
3521
|
+
opt.label
|
3522
|
+
)
|
3392
3523
|
),
|
3393
|
-
|
3394
|
-
|
3395
|
-
|
3396
|
-
|
3397
|
-
|
3524
|
+
/* @__PURE__ */ import_react11.default.createElement(PopoverContent, { ...opt.tooltipContentProps }, opt.tooltip)
|
3525
|
+
) : /* @__PURE__ */ import_react11.default.createElement(
|
3526
|
+
"li",
|
3527
|
+
{
|
3528
|
+
key: o,
|
3529
|
+
"aria-current": "page",
|
3530
|
+
onClick: () => {
|
3531
|
+
if (props.disabled || opt.disabled)
|
3532
|
+
return;
|
3533
|
+
handleChange(opt);
|
3534
|
+
},
|
3535
|
+
className: cn(
|
3536
|
+
...radio_option_tabs_styling,
|
3537
|
+
selectedOption === opt.value ? activeTabStyle : inactiveTabStyle
|
3538
|
+
)
|
3539
|
+
},
|
3540
|
+
opt.icon && opt.icon,
|
3541
|
+
opt.label
|
3542
|
+
);
|
3543
|
+
})
|
3398
3544
|
), !forceHideHelperText && /* @__PURE__ */ import_react11.default.createElement(
|
3399
3545
|
"p",
|
3400
3546
|
{
|
@@ -3508,13 +3654,13 @@ var Radio = (0, import_react11.forwardRef)(
|
|
3508
3654
|
);
|
3509
3655
|
|
3510
3656
|
// elements/combobox/Combobox.tsx
|
3511
|
-
var
|
3657
|
+
var React28 = __toESM(require("react"));
|
3512
3658
|
var PopoverPrimitive2 = __toESM(require("@radix-ui/react-popover"));
|
3513
3659
|
|
3514
3660
|
// elements/command/Command.tsx
|
3515
|
-
var
|
3661
|
+
var React27 = __toESM(require("react"));
|
3516
3662
|
var import_cmdk = require("cmdk");
|
3517
|
-
var Command =
|
3663
|
+
var Command = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React27.createElement(
|
3518
3664
|
import_cmdk.Command,
|
3519
3665
|
{
|
3520
3666
|
ref,
|
@@ -3526,15 +3672,15 @@ var Command = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
3526
3672
|
}
|
3527
3673
|
));
|
3528
3674
|
var CommandDialog = ({ children, ...props }) => {
|
3529
|
-
return /* @__PURE__ */
|
3675
|
+
return /* @__PURE__ */ React27.createElement(Dialog, { ...props }, /* @__PURE__ */ React27.createElement(DialogContent, { className: "hawa-overflow-hidden hawa-p-0 hawa-shadow-lg" }, /* @__PURE__ */ React27.createElement(Command, { className: "[&_[cmdk-group-heading]]:hawa-px-2 [&_[cmdk-group-heading]]:hawa-font-medium [&_[cmdk-group-heading]]:hawa-text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:hawa-pt-0 [&_[cmdk-group]]:hawa-px-2 [&_[cmdk-input-wrapper]_svg]:hawa-h-5 [&_[cmdk-input-wrapper]_svg]:hawa-w-5 [&_[cmdk-input]]:hawa-h-12 [&_[cmdk-item]]:hawa-px-2 [&_[cmdk-item]]:hawa-py-3 [&_[cmdk-item]_svg]:hawa-h-5 [&_[cmdk-item]_svg]:hawa-w-5" }, children)));
|
3530
3676
|
};
|
3531
|
-
var CommandInput =
|
3677
|
+
var CommandInput = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React27.createElement(
|
3532
3678
|
"div",
|
3533
3679
|
{
|
3534
3680
|
className: "hawa-flex hawa-items-center hawa-border-b hawa-px-3",
|
3535
3681
|
"cmdk-input-wrapper": ""
|
3536
3682
|
},
|
3537
|
-
/* @__PURE__ */
|
3683
|
+
/* @__PURE__ */ React27.createElement(
|
3538
3684
|
"svg",
|
3539
3685
|
{
|
3540
3686
|
"aria-label": "Search Icon",
|
@@ -3549,10 +3695,10 @@ var CommandInput = React25.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
3549
3695
|
strokeLinejoin: "round",
|
3550
3696
|
className: "hawa-icon hawa-me-2 hawa-shrink-0 hawa-opacity-50"
|
3551
3697
|
},
|
3552
|
-
/* @__PURE__ */
|
3553
|
-
/* @__PURE__ */
|
3698
|
+
/* @__PURE__ */ React27.createElement("circle", { cx: "11", cy: "11", r: "8" }),
|
3699
|
+
/* @__PURE__ */ React27.createElement("path", { d: "m21 21-4.3-4.3" })
|
3554
3700
|
),
|
3555
|
-
/* @__PURE__ */
|
3701
|
+
/* @__PURE__ */ React27.createElement(
|
3556
3702
|
import_cmdk.Command.Input,
|
3557
3703
|
{
|
3558
3704
|
ref,
|
@@ -3564,7 +3710,7 @@ var CommandInput = React25.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
3564
3710
|
}
|
3565
3711
|
)
|
3566
3712
|
));
|
3567
|
-
var CommandList =
|
3713
|
+
var CommandList = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React27.createElement(
|
3568
3714
|
import_cmdk.Command.List,
|
3569
3715
|
{
|
3570
3716
|
ref,
|
@@ -3575,7 +3721,7 @@ var CommandList = React25.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
3575
3721
|
...props
|
3576
3722
|
}
|
3577
3723
|
));
|
3578
|
-
var CommandEmpty =
|
3724
|
+
var CommandEmpty = React27.forwardRef((props, ref) => /* @__PURE__ */ React27.createElement(
|
3579
3725
|
import_cmdk.Command.Empty,
|
3580
3726
|
{
|
3581
3727
|
ref,
|
@@ -3583,7 +3729,7 @@ var CommandEmpty = React25.forwardRef((props, ref) => /* @__PURE__ */ React25.cr
|
|
3583
3729
|
...props
|
3584
3730
|
}
|
3585
3731
|
));
|
3586
|
-
var CommandGroup =
|
3732
|
+
var CommandGroup = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React27.createElement(
|
3587
3733
|
import_cmdk.Command.Group,
|
3588
3734
|
{
|
3589
3735
|
ref,
|
@@ -3594,7 +3740,7 @@ var CommandGroup = React25.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
3594
3740
|
...props
|
3595
3741
|
}
|
3596
3742
|
));
|
3597
|
-
var CommandSeparator =
|
3743
|
+
var CommandSeparator = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React27.createElement(
|
3598
3744
|
import_cmdk.Command.Separator,
|
3599
3745
|
{
|
3600
3746
|
ref,
|
@@ -3602,7 +3748,7 @@ var CommandSeparator = React25.forwardRef(({ className, ...props }, ref) => /* @
|
|
3602
3748
|
...props
|
3603
3749
|
}
|
3604
3750
|
));
|
3605
|
-
var CommandItem =
|
3751
|
+
var CommandItem = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React27.createElement(
|
3606
3752
|
import_cmdk.Command.Item,
|
3607
3753
|
{
|
3608
3754
|
ref,
|
@@ -3617,7 +3763,7 @@ var CommandShortcut = ({
|
|
3617
3763
|
className,
|
3618
3764
|
...props
|
3619
3765
|
}) => {
|
3620
|
-
return /* @__PURE__ */
|
3766
|
+
return /* @__PURE__ */ React27.createElement(
|
3621
3767
|
"span",
|
3622
3768
|
{
|
3623
3769
|
className: cn(
|
@@ -3637,74 +3783,8 @@ CommandList.displayName = import_cmdk.Command.List.displayName;
|
|
3637
3783
|
Command.displayName = import_cmdk.Command.displayName;
|
3638
3784
|
CommandInput.displayName = import_cmdk.Command.Input.displayName;
|
3639
3785
|
|
3640
|
-
// elements/popover/Popover.tsx
|
3641
|
-
var React26 = __toESM(require("react"));
|
3642
|
-
var PopoverPrimitive = __toESM(require("@radix-ui/react-popover"));
|
3643
|
-
var PopoverContent = React26.forwardRef(
|
3644
|
-
({ className, align = "center", sideOffset = 4, container, ...props }, ref) => /* @__PURE__ */ React26.createElement(PopoverPrimitive.Portal, { container }, /* @__PURE__ */ React26.createElement(
|
3645
|
-
PopoverPrimitive.Content,
|
3646
|
-
{
|
3647
|
-
ref,
|
3648
|
-
align,
|
3649
|
-
sideOffset,
|
3650
|
-
className: cn(
|
3651
|
-
"dark:dark-shadow hawa-z-50 hawa-rounded hawa-border hawa-bg-popover hawa-text-popover-foreground hawa-shadow-md hawa-outline-none data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0 data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-95 data-[side=bottom]:hawa-slide-in-from-top-2 data-[side=left]:hawa-slide-in-from-right-2 data-[side=right]:hawa-slide-in-from-left-2 data-[side=top]:hawa-slide-in-from-bottom-2",
|
3652
|
-
className
|
3653
|
-
),
|
3654
|
-
...props
|
3655
|
-
}
|
3656
|
-
))
|
3657
|
-
);
|
3658
|
-
PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
3659
|
-
var Popover = ({
|
3660
|
-
trigger,
|
3661
|
-
children,
|
3662
|
-
className,
|
3663
|
-
align = "center",
|
3664
|
-
side,
|
3665
|
-
sideOffset = 4,
|
3666
|
-
open,
|
3667
|
-
width = "default",
|
3668
|
-
disableTrigger,
|
3669
|
-
contentProps,
|
3670
|
-
triggerProps,
|
3671
|
-
...props
|
3672
|
-
}) => {
|
3673
|
-
let widthStyles = {
|
3674
|
-
trigger: "var(--radix-popover-trigger-width)",
|
3675
|
-
default: "auto"
|
3676
|
-
};
|
3677
|
-
return /* @__PURE__ */ React26.createElement(PopoverPrimitive.Root, { open, ...props }, /* @__PURE__ */ React26.createElement(
|
3678
|
-
PopoverPrimitive.Trigger,
|
3679
|
-
{
|
3680
|
-
className: "hawa-w-full",
|
3681
|
-
disabled: disableTrigger,
|
3682
|
-
...triggerProps
|
3683
|
-
},
|
3684
|
-
trigger
|
3685
|
-
), /* @__PURE__ */ React26.createElement(
|
3686
|
-
PopoverContent,
|
3687
|
-
{
|
3688
|
-
side,
|
3689
|
-
className,
|
3690
|
-
align,
|
3691
|
-
sideOffset,
|
3692
|
-
style: {
|
3693
|
-
width: widthStyles[width],
|
3694
|
-
maxWidth: "var(--radix-popover-content-available-width)",
|
3695
|
-
maxHeight: "var(--radix-popover-content-available-height)"
|
3696
|
-
},
|
3697
|
-
...contentProps
|
3698
|
-
},
|
3699
|
-
children
|
3700
|
-
));
|
3701
|
-
};
|
3702
|
-
var PopoverTrigger = PopoverPrimitive.Trigger;
|
3703
|
-
var PopoverPortal = PopoverPrimitive.Portal;
|
3704
|
-
var PopoverRoot = PopoverPrimitive.Root;
|
3705
|
-
|
3706
3786
|
// elements/combobox/Combobox.tsx
|
3707
|
-
var Combobox =
|
3787
|
+
var Combobox = React28.forwardRef(
|
3708
3788
|
({
|
3709
3789
|
labelKey = "label",
|
3710
3790
|
valueKey = "value",
|
@@ -3719,9 +3799,9 @@ var Combobox = React27.forwardRef(
|
|
3719
3799
|
...props
|
3720
3800
|
}, ref) => {
|
3721
3801
|
var _a, _b, _c;
|
3722
|
-
const [open, setOpen] =
|
3723
|
-
const [value, setValue] =
|
3724
|
-
const containerRef =
|
3802
|
+
const [open, setOpen] = React28.useState(false);
|
3803
|
+
const [value, setValue] = React28.useState(defaultValue);
|
3804
|
+
const containerRef = React28.useRef(null);
|
3725
3805
|
function getProperty(obj, key) {
|
3726
3806
|
return key.split(".").reduce((o, k) => (o || {})[k], obj);
|
3727
3807
|
}
|
@@ -3733,7 +3813,7 @@ var Combobox = React27.forwardRef(
|
|
3733
3813
|
const selectedItem = data.find(
|
3734
3814
|
(item) => getProperty(item, valueKey) === value
|
3735
3815
|
);
|
3736
|
-
return /* @__PURE__ */
|
3816
|
+
return /* @__PURE__ */ React28.createElement(
|
3737
3817
|
"div",
|
3738
3818
|
{
|
3739
3819
|
className: cn(
|
@@ -3742,8 +3822,8 @@ var Combobox = React27.forwardRef(
|
|
3742
3822
|
),
|
3743
3823
|
ref: containerRef
|
3744
3824
|
},
|
3745
|
-
props.label && /* @__PURE__ */
|
3746
|
-
/* @__PURE__ */
|
3825
|
+
props.label && /* @__PURE__ */ React28.createElement(Label2, { ...labelProps }, props.label),
|
3826
|
+
/* @__PURE__ */ React28.createElement(PopoverPrimitive2.Root, { open, onOpenChange: handleOpenChange }, /* @__PURE__ */ React28.createElement(PopoverTrigger, { asChild: true }, props.isLoading ? /* @__PURE__ */ React28.createElement("div", { className: "hawa-pb-2" }, /* @__PURE__ */ React28.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" })) : /* @__PURE__ */ React28.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-start hawa-gap-2 " }, /* @__PURE__ */ React28.createElement(
|
3747
3827
|
"div",
|
3748
3828
|
{
|
3749
3829
|
className: cn(
|
@@ -3751,7 +3831,7 @@ var Combobox = React27.forwardRef(
|
|
3751
3831
|
props.preview ? "hawa-opacity-100" : "hawa-opacity-0"
|
3752
3832
|
)
|
3753
3833
|
}
|
3754
|
-
), /* @__PURE__ */
|
3834
|
+
), /* @__PURE__ */ React28.createElement(
|
3755
3835
|
"button",
|
3756
3836
|
{
|
3757
3837
|
role: "combobox",
|
@@ -3763,7 +3843,7 @@ var Combobox = React27.forwardRef(
|
|
3763
3843
|
)
|
3764
3844
|
},
|
3765
3845
|
selectedItem ? renderSelected ? renderSelected(selectedItem) : getProperty(selectedItem, labelKey) : ((_a = props.texts) == null ? void 0 : _a.placeholder) || ". . .",
|
3766
|
-
/* @__PURE__ */
|
3846
|
+
/* @__PURE__ */ React28.createElement(
|
3767
3847
|
"svg",
|
3768
3848
|
{
|
3769
3849
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -3779,9 +3859,9 @@ var Combobox = React27.forwardRef(
|
|
3779
3859
|
strokeLinecap: "round",
|
3780
3860
|
strokeLinejoin: "round"
|
3781
3861
|
},
|
3782
|
-
/* @__PURE__ */
|
3862
|
+
/* @__PURE__ */ React28.createElement("path", { d: "m6 9 6 6 6-6" })
|
3783
3863
|
)
|
3784
|
-
), /* @__PURE__ */
|
3864
|
+
), /* @__PURE__ */ React28.createElement(
|
3785
3865
|
"p",
|
3786
3866
|
{
|
3787
3867
|
className: cn(
|
@@ -3790,7 +3870,7 @@ var Combobox = React27.forwardRef(
|
|
3790
3870
|
)
|
3791
3871
|
},
|
3792
3872
|
props.helperText
|
3793
|
-
))), /* @__PURE__ */
|
3873
|
+
))), /* @__PURE__ */ React28.createElement(
|
3794
3874
|
PopoverContent,
|
3795
3875
|
{
|
3796
3876
|
sideOffset: 0,
|
@@ -3798,7 +3878,7 @@ var Combobox = React27.forwardRef(
|
|
3798
3878
|
dir: direction,
|
3799
3879
|
container: containerRef.current
|
3800
3880
|
},
|
3801
|
-
/* @__PURE__ */
|
3881
|
+
/* @__PURE__ */ React28.createElement(
|
3802
3882
|
Command,
|
3803
3883
|
{
|
3804
3884
|
filter: (value2, search) => {
|
@@ -3807,7 +3887,7 @@ var Combobox = React27.forwardRef(
|
|
3807
3887
|
return 0;
|
3808
3888
|
}
|
3809
3889
|
},
|
3810
|
-
!props.hideInput && /* @__PURE__ */
|
3890
|
+
!props.hideInput && /* @__PURE__ */ React28.createElement(
|
3811
3891
|
CommandInput,
|
3812
3892
|
{
|
3813
3893
|
...inputProps,
|
@@ -3815,8 +3895,8 @@ var Combobox = React27.forwardRef(
|
|
3815
3895
|
placeholder: ((_b = props.texts) == null ? void 0 : _b.searchPlaceholder) || "Search"
|
3816
3896
|
}
|
3817
3897
|
),
|
3818
|
-
/* @__PURE__ */
|
3819
|
-
/* @__PURE__ */
|
3898
|
+
/* @__PURE__ */ React28.createElement(CommandEmpty, null, ((_c = props.texts) == null ? void 0 : _c.noItems) || "No items found."),
|
3899
|
+
/* @__PURE__ */ React28.createElement(CommandList, null, /* @__PURE__ */ React28.createElement(
|
3820
3900
|
CommandGroup,
|
3821
3901
|
{
|
3822
3902
|
className: cn(
|
@@ -3824,7 +3904,7 @@ var Combobox = React27.forwardRef(
|
|
3824
3904
|
data.length > 0 && "hawa-overflow-y-auto"
|
3825
3905
|
)
|
3826
3906
|
},
|
3827
|
-
data.map((item, i) => /* @__PURE__ */
|
3907
|
+
data.map((item, i) => /* @__PURE__ */ React28.createElement(
|
3828
3908
|
CommandItem,
|
3829
3909
|
{
|
3830
3910
|
key: i,
|
@@ -3841,7 +3921,7 @@ var Combobox = React27.forwardRef(
|
|
3841
3921
|
setOpen(false);
|
3842
3922
|
}
|
3843
3923
|
},
|
3844
|
-
/* @__PURE__ */
|
3924
|
+
/* @__PURE__ */ React28.createElement(
|
3845
3925
|
"svg",
|
3846
3926
|
{
|
3847
3927
|
"aria-label": "Check Icon",
|
@@ -3860,7 +3940,7 @@ var Combobox = React27.forwardRef(
|
|
3860
3940
|
),
|
3861
3941
|
style: { marginInlineEnd: "0.5rem" }
|
3862
3942
|
},
|
3863
|
-
/* @__PURE__ */
|
3943
|
+
/* @__PURE__ */ React28.createElement("polyline", { points: "20 6 9 17 4 12" })
|
3864
3944
|
),
|
3865
3945
|
renderOption ? renderOption(item) : getProperty(item, labelKey)
|
3866
3946
|
))
|
@@ -3872,8 +3952,8 @@ var Combobox = React27.forwardRef(
|
|
3872
3952
|
);
|
3873
3953
|
|
3874
3954
|
// elements/textarea/Textarea.tsx
|
3875
|
-
var
|
3876
|
-
var Textarea =
|
3955
|
+
var React29 = __toESM(require("react"));
|
3956
|
+
var Textarea = React29.forwardRef(
|
3877
3957
|
({
|
3878
3958
|
className,
|
3879
3959
|
classNames,
|
@@ -3885,7 +3965,7 @@ var Textarea = React28.forwardRef(
|
|
3885
3965
|
isLoading,
|
3886
3966
|
...props
|
3887
3967
|
}, ref) => {
|
3888
|
-
return /* @__PURE__ */
|
3968
|
+
return /* @__PURE__ */ React29.createElement(
|
3889
3969
|
"div",
|
3890
3970
|
{
|
3891
3971
|
className: cn(
|
@@ -3894,7 +3974,7 @@ var Textarea = React28.forwardRef(
|
|
3894
3974
|
className
|
3895
3975
|
)
|
3896
3976
|
},
|
3897
|
-
/* @__PURE__ */
|
3977
|
+
/* @__PURE__ */ React29.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, props.label && /* @__PURE__ */ React29.createElement(Label2, { ...labelProps }, props.label), showCount && countPosition === "top" && /* @__PURE__ */ React29.createElement(
|
3898
3978
|
"div",
|
3899
3979
|
{
|
3900
3980
|
className: "hawa-text-start hawa-text-xs hawa-transition-all hawa-leading-none"
|
@@ -3903,7 +3983,7 @@ var Textarea = React28.forwardRef(
|
|
3903
3983
|
"/",
|
3904
3984
|
textareaProps == null ? void 0 : textareaProps.maxLength
|
3905
3985
|
)),
|
3906
|
-
isLoading ? /* @__PURE__ */
|
3986
|
+
isLoading ? /* @__PURE__ */ React29.createElement(Skeleton, { style: { height: 40 } }) : /* @__PURE__ */ React29.createElement(
|
3907
3987
|
"textarea",
|
3908
3988
|
{
|
3909
3989
|
...textareaProps,
|
@@ -3914,7 +3994,7 @@ var Textarea = React28.forwardRef(
|
|
3914
3994
|
ref
|
3915
3995
|
}
|
3916
3996
|
),
|
3917
|
-
/* @__PURE__ */
|
3997
|
+
/* @__PURE__ */ React29.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, !forceHideHelperText && /* @__PURE__ */ React29.createElement(
|
3918
3998
|
"p",
|
3919
3999
|
{
|
3920
4000
|
className: cn(
|
@@ -3923,7 +4003,7 @@ var Textarea = React28.forwardRef(
|
|
3923
4003
|
)
|
3924
4004
|
},
|
3925
4005
|
props.helperText
|
3926
|
-
), showCount && countPosition === "bottom" && /* @__PURE__ */
|
4006
|
+
), showCount && countPosition === "bottom" && /* @__PURE__ */ React29.createElement("div", { className: "hawa-text-start hawa-text-xs hawa-transition-all" }, (textareaProps == null ? void 0 : textareaProps.value) ? String(textareaProps == null ? void 0 : textareaProps.value).length : 0, "/", textareaProps == null ? void 0 : textareaProps.maxLength))
|
3927
4007
|
);
|
3928
4008
|
}
|
3929
4009
|
);
|
@@ -4186,7 +4266,7 @@ var SortButton = (props) => {
|
|
4186
4266
|
};
|
4187
4267
|
|
4188
4268
|
// elements/tabs/Tabs.tsx
|
4189
|
-
var
|
4269
|
+
var React42 = __toESM(require("react"));
|
4190
4270
|
|
4191
4271
|
// hooks/useIsomorphicEffect.ts
|
4192
4272
|
var import_react14 = require("react");
|
@@ -4199,7 +4279,7 @@ var import_react15 = require("react");
|
|
4199
4279
|
var import_react16 = require("react");
|
4200
4280
|
|
4201
4281
|
// hooks/useToast.ts
|
4202
|
-
var
|
4282
|
+
var React34 = __toESM(require("react"));
|
4203
4283
|
var TOAST_LIMIT = 5;
|
4204
4284
|
var TOAST_REMOVE_DELAY = 1e5;
|
4205
4285
|
var count = 0;
|
@@ -4285,8 +4365,8 @@ function toast({ ...props }) {
|
|
4285
4365
|
return { id, dismiss, update };
|
4286
4366
|
}
|
4287
4367
|
function useToast() {
|
4288
|
-
const [state, setState] =
|
4289
|
-
|
4368
|
+
const [state, setState] = React34.useState(memoryState);
|
4369
|
+
React34.useEffect(() => {
|
4290
4370
|
listeners.push(setState);
|
4291
4371
|
return () => {
|
4292
4372
|
const index = listeners.indexOf(setState);
|
@@ -4626,7 +4706,7 @@ var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"));
|
|
4626
4706
|
var import_tailwind_variants = require("tailwind-variants");
|
4627
4707
|
|
4628
4708
|
// elements/floatBox/FloatBox.tsx
|
4629
|
-
var
|
4709
|
+
var React41 = __toESM(require("react"));
|
4630
4710
|
var FloatBox = ({
|
4631
4711
|
className,
|
4632
4712
|
open,
|
@@ -4664,7 +4744,7 @@ var FloatBox = ({
|
|
4664
4744
|
right: "hawa-arrow-default-left",
|
4665
4745
|
left: "hawa-arrow-default-right"
|
4666
4746
|
};
|
4667
|
-
return /* @__PURE__ */
|
4747
|
+
return /* @__PURE__ */ React41.createElement(
|
4668
4748
|
"div",
|
4669
4749
|
{
|
4670
4750
|
className: cn(
|
@@ -4675,8 +4755,8 @@ var FloatBox = ({
|
|
4675
4755
|
"data-side": side,
|
4676
4756
|
"data-floatbox-state": open ? "open" : "closed"
|
4677
4757
|
},
|
4678
|
-
withArrow && /* @__PURE__ */
|
4679
|
-
/* @__PURE__ */
|
4758
|
+
withArrow && /* @__PURE__ */ React41.createElement("div", { className: cn(arrowDirection[side]) }),
|
4759
|
+
/* @__PURE__ */ React41.createElement("span", null, props.children)
|
4680
4760
|
);
|
4681
4761
|
};
|
4682
4762
|
|
@@ -4739,8 +4819,8 @@ var tabsTriggerVariant = (0, import_tailwind_variants.tv)({
|
|
4739
4819
|
],
|
4740
4820
|
defaultVariants: { variant: "default", orientation: "horizontal" }
|
4741
4821
|
});
|
4742
|
-
var TabsContext =
|
4743
|
-
var Tabs =
|
4822
|
+
var TabsContext = React42.createContext({ orientation: "horizontal", variant: "default" });
|
4823
|
+
var Tabs = React42.forwardRef(({ className, orientation, variant = "default", ...props }, ref) => /* @__PURE__ */ React42.createElement(
|
4744
4824
|
TabsPrimitive.Root,
|
4745
4825
|
{
|
4746
4826
|
ref,
|
@@ -4751,11 +4831,11 @@ var Tabs = React41.forwardRef(({ className, orientation, variant = "default", ..
|
|
4751
4831
|
),
|
4752
4832
|
...props
|
4753
4833
|
},
|
4754
|
-
/* @__PURE__ */
|
4834
|
+
/* @__PURE__ */ React42.createElement(TabsContext.Provider, { value: { orientation, variant } }, props.children)
|
4755
4835
|
));
|
4756
|
-
var TabsList =
|
4757
|
-
const { orientation, variant } =
|
4758
|
-
return /* @__PURE__ */
|
4836
|
+
var TabsList = React42.forwardRef(({ className, ...props }, ref) => {
|
4837
|
+
const { orientation, variant } = React42.useContext(TabsContext);
|
4838
|
+
return /* @__PURE__ */ React42.createElement(
|
4759
4839
|
TabsPrimitive.List,
|
4760
4840
|
{
|
4761
4841
|
ref,
|
@@ -4768,11 +4848,11 @@ var TabsList = React41.forwardRef(({ className, ...props }, ref) => {
|
|
4768
4848
|
}
|
4769
4849
|
);
|
4770
4850
|
});
|
4771
|
-
var TabsTrigger =
|
4772
|
-
const { orientation, variant } =
|
4773
|
-
const tabTriggerRef =
|
4851
|
+
var TabsTrigger = React42.forwardRef(({ className, chipProps, ...props }, ref) => {
|
4852
|
+
const { orientation, variant } = React42.useContext(TabsContext);
|
4853
|
+
const tabTriggerRef = React42.useRef(null);
|
4774
4854
|
const { width } = useMeasureDirty(tabTriggerRef);
|
4775
|
-
return /* @__PURE__ */
|
4855
|
+
return /* @__PURE__ */ React42.createElement(
|
4776
4856
|
TabsPrimitive.Trigger,
|
4777
4857
|
{
|
4778
4858
|
ref: tabTriggerRef,
|
@@ -4784,8 +4864,8 @@ var TabsTrigger = React41.forwardRef(({ className, chipProps, ...props }, ref) =
|
|
4784
4864
|
...props
|
4785
4865
|
},
|
4786
4866
|
props.children,
|
4787
|
-
chipProps && /* @__PURE__ */
|
4788
|
-
/* @__PURE__ */
|
4867
|
+
chipProps && /* @__PURE__ */ React42.createElement(Chip, { ...chipProps }),
|
4868
|
+
/* @__PURE__ */ React42.createElement(
|
4789
4869
|
FloatBox,
|
4790
4870
|
{
|
4791
4871
|
withArrow: true,
|
@@ -4798,7 +4878,7 @@ var TabsTrigger = React41.forwardRef(({ className, chipProps, ...props }, ref) =
|
|
4798
4878
|
)
|
4799
4879
|
);
|
4800
4880
|
});
|
4801
|
-
var TabsContent =
|
4881
|
+
var TabsContent = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React42.createElement(
|
4802
4882
|
TabsPrimitive.Content,
|
4803
4883
|
{
|
4804
4884
|
ref,
|
@@ -5003,15 +5083,15 @@ var Select = ({
|
|
5003
5083
|
};
|
5004
5084
|
|
5005
5085
|
// elements/switch/Switch.tsx
|
5006
|
-
var
|
5086
|
+
var React44 = __toESM(require("react"));
|
5007
5087
|
var SwitchPrimitives = __toESM(require("@radix-ui/react-switch"));
|
5008
|
-
var Switch =
|
5088
|
+
var Switch = React44.forwardRef(
|
5009
5089
|
({ className, size = "default", roundedness = "inherit", label, ...props }, ref) => {
|
5010
|
-
const [parentDirection, setParentDirection] =
|
5090
|
+
const [parentDirection, setParentDirection] = React44.useState(
|
5011
5091
|
null
|
5012
5092
|
);
|
5013
|
-
const parentRef =
|
5014
|
-
|
5093
|
+
const parentRef = React44.useRef(null);
|
5094
|
+
React44.useEffect(() => {
|
5015
5095
|
var _a;
|
5016
5096
|
const parentNode = (_a = parentRef.current) == null ? void 0 : _a.parentNode;
|
5017
5097
|
if (parentNode) {
|
@@ -5039,13 +5119,13 @@ var Switch = React43.forwardRef(
|
|
5039
5119
|
full: "hawa-rounded-full",
|
5040
5120
|
inherit: "hawa-rounded-inner"
|
5041
5121
|
};
|
5042
|
-
return /* @__PURE__ */
|
5122
|
+
return /* @__PURE__ */ React44.createElement(
|
5043
5123
|
"div",
|
5044
5124
|
{
|
5045
5125
|
className: "hawa-flex hawa-flex-row hawa-items-center",
|
5046
5126
|
ref: parentRef
|
5047
5127
|
},
|
5048
|
-
/* @__PURE__ */
|
5128
|
+
/* @__PURE__ */ React44.createElement(
|
5049
5129
|
SwitchPrimitives.Root,
|
5050
5130
|
{
|
5051
5131
|
className: cn(
|
@@ -5059,7 +5139,7 @@ var Switch = React43.forwardRef(
|
|
5059
5139
|
...props,
|
5060
5140
|
ref
|
5061
5141
|
},
|
5062
|
-
/* @__PURE__ */
|
5142
|
+
/* @__PURE__ */ React44.createElement(
|
5063
5143
|
SwitchPrimitives.Thumb,
|
5064
5144
|
{
|
5065
5145
|
className: cn(
|
@@ -5073,14 +5153,14 @@ var Switch = React43.forwardRef(
|
|
5073
5153
|
}
|
5074
5154
|
)
|
5075
5155
|
),
|
5076
|
-
label && /* @__PURE__ */
|
5156
|
+
label && /* @__PURE__ */ React44.createElement("span", { className: "hawa-mx-2 hawa-text-sm hawa-font-medium hawa-text-gray-900 dark:hawa-text-gray-300" }, label)
|
5077
5157
|
);
|
5078
5158
|
}
|
5079
5159
|
);
|
5080
5160
|
Switch.displayName = SwitchPrimitives.Root.displayName;
|
5081
5161
|
|
5082
5162
|
// elements/checkbox/Checkbox.tsx
|
5083
|
-
var
|
5163
|
+
var React45 = __toESM(require("react"));
|
5084
5164
|
var CheckboxPrimitive = __toESM(require("@radix-ui/react-checkbox"));
|
5085
5165
|
var Checkbox = ({
|
5086
5166
|
id,
|
@@ -5100,7 +5180,7 @@ var Checkbox = ({
|
|
5100
5180
|
lg: 0.9,
|
5101
5181
|
xl: 1
|
5102
5182
|
};
|
5103
|
-
return /* @__PURE__ */
|
5183
|
+
return /* @__PURE__ */ React45.createElement(
|
5104
5184
|
"div",
|
5105
5185
|
{
|
5106
5186
|
className: cn(
|
@@ -5108,7 +5188,7 @@ var Checkbox = ({
|
|
5108
5188
|
size === "default" ? "hawa-items-top" : "hawa-items-center"
|
5109
5189
|
)
|
5110
5190
|
},
|
5111
|
-
/* @__PURE__ */
|
5191
|
+
/* @__PURE__ */ React45.createElement(
|
5112
5192
|
CheckboxElement,
|
5113
5193
|
{
|
5114
5194
|
...props,
|
@@ -5118,7 +5198,7 @@ var Checkbox = ({
|
|
5118
5198
|
id
|
5119
5199
|
}
|
5120
5200
|
),
|
5121
|
-
(label || helperText) && /* @__PURE__ */
|
5201
|
+
(label || helperText) && /* @__PURE__ */ React45.createElement("div", { className: "hawa-grid hawa-gap-1.5" }, label && /* @__PURE__ */ React45.createElement(
|
5122
5202
|
"label",
|
5123
5203
|
{
|
5124
5204
|
htmlFor: id,
|
@@ -5132,7 +5212,7 @@ var Checkbox = ({
|
|
5132
5212
|
}
|
5133
5213
|
},
|
5134
5214
|
label
|
5135
|
-
), sublabel && /* @__PURE__ */
|
5215
|
+
), sublabel && /* @__PURE__ */ React45.createElement(
|
5136
5216
|
"label",
|
5137
5217
|
{
|
5138
5218
|
htmlFor: id,
|
@@ -5142,7 +5222,7 @@ var Checkbox = ({
|
|
5142
5222
|
)
|
5143
5223
|
},
|
5144
5224
|
sublabel
|
5145
|
-
), helperText && !disabled && /* @__PURE__ */
|
5225
|
+
), helperText && !disabled && /* @__PURE__ */ React45.createElement(
|
5146
5226
|
"label",
|
5147
5227
|
{
|
5148
5228
|
htmlFor: id,
|
@@ -5155,7 +5235,7 @@ var Checkbox = ({
|
|
5155
5235
|
))
|
5156
5236
|
);
|
5157
5237
|
};
|
5158
|
-
var CheckboxElement =
|
5238
|
+
var CheckboxElement = React45.forwardRef(({ radius = "inherit", size = "default", className, ...props }, ref) => {
|
5159
5239
|
let checkboxRadius = {
|
5160
5240
|
none: "hawa-rounded-none",
|
5161
5241
|
inherit: "hawa-rounded-sm",
|
@@ -5177,7 +5257,7 @@ var CheckboxElement = React44.forwardRef(({ radius = "inherit", size = "default"
|
|
5177
5257
|
lg: "1em",
|
5178
5258
|
xl: "1.25em"
|
5179
5259
|
};
|
5180
|
-
return /* @__PURE__ */
|
5260
|
+
return /* @__PURE__ */ React45.createElement(
|
5181
5261
|
CheckboxPrimitive.Root,
|
5182
5262
|
{
|
5183
5263
|
ref,
|
@@ -5189,14 +5269,14 @@ var CheckboxElement = React44.forwardRef(({ radius = "inherit", size = "default"
|
|
5189
5269
|
),
|
5190
5270
|
...props
|
5191
5271
|
},
|
5192
|
-
/* @__PURE__ */
|
5272
|
+
/* @__PURE__ */ React45.createElement(
|
5193
5273
|
CheckboxPrimitive.Indicator,
|
5194
5274
|
{
|
5195
5275
|
className: cn(
|
5196
5276
|
"hawa-flex hawa-items-center hawa-justify-center hawa-text-current"
|
5197
5277
|
)
|
5198
5278
|
},
|
5199
|
-
/* @__PURE__ */
|
5279
|
+
/* @__PURE__ */ React45.createElement(
|
5200
5280
|
"svg",
|
5201
5281
|
{
|
5202
5282
|
"aria-label": "Check Mark",
|
@@ -5207,7 +5287,7 @@ var CheckboxElement = React44.forwardRef(({ radius = "inherit", size = "default"
|
|
5207
5287
|
height: checkboxIndicatorSizes[size],
|
5208
5288
|
width: checkboxIndicatorSizes[size]
|
5209
5289
|
},
|
5210
|
-
/* @__PURE__ */
|
5290
|
+
/* @__PURE__ */ React45.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" })
|
5211
5291
|
),
|
5212
5292
|
" "
|
5213
5293
|
)
|
@@ -5216,9 +5296,9 @@ var CheckboxElement = React44.forwardRef(({ radius = "inherit", size = "default"
|
|
5216
5296
|
CheckboxElement.displayName = CheckboxPrimitive.Root.displayName;
|
5217
5297
|
|
5218
5298
|
// elements/progress/Progress.tsx
|
5219
|
-
var
|
5299
|
+
var React46 = __toESM(require("react"));
|
5220
5300
|
var ProgressPrimitive = __toESM(require("@radix-ui/react-progress"));
|
5221
|
-
var Progress =
|
5301
|
+
var Progress = React46.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ React46.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ React46.createElement(Label2, { ...props.labelProps }, props.label), /* @__PURE__ */ React46.createElement(
|
5222
5302
|
ProgressPrimitive.Root,
|
5223
5303
|
{
|
5224
5304
|
ref,
|
@@ -5228,7 +5308,7 @@ var Progress = React45.forwardRef(({ className, value, ...props }, ref) => /* @_
|
|
5228
5308
|
),
|
5229
5309
|
...props
|
5230
5310
|
},
|
5231
|
-
/* @__PURE__ */
|
5311
|
+
/* @__PURE__ */ React46.createElement(
|
5232
5312
|
ProgressPrimitive.Indicator,
|
5233
5313
|
{
|
5234
5314
|
className: "hawa-h-full hawa-w-full hawa-flex-1 hawa-bg-primary hawa-transition-all",
|
@@ -7244,21 +7324,21 @@ var StopPropagationWrapper = (props) => {
|
|
7244
7324
|
};
|
7245
7325
|
|
7246
7326
|
// elements/scrollArea/ScrollArea.tsx
|
7247
|
-
var
|
7327
|
+
var React53 = __toESM(require("react"));
|
7248
7328
|
var ScrollAreaPrimitive = __toESM(require("@radix-ui/react-scroll-area"));
|
7249
|
-
var ScrollArea =
|
7329
|
+
var ScrollArea = React53.forwardRef(({ className, children, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React53.createElement(
|
7250
7330
|
ScrollAreaPrimitive.Root,
|
7251
7331
|
{
|
7252
7332
|
ref,
|
7253
7333
|
className: cn("hawa-relative hawa-overflow-hidden", className),
|
7254
7334
|
...props
|
7255
7335
|
},
|
7256
|
-
/* @__PURE__ */
|
7257
|
-
/* @__PURE__ */
|
7258
|
-
/* @__PURE__ */
|
7336
|
+
/* @__PURE__ */ React53.createElement(ScrollAreaPrimitive.Viewport, { className: "hawa-h-full hawa-w-full hawa-rounded-[inherit]" }, children),
|
7337
|
+
/* @__PURE__ */ React53.createElement(ScrollBar, { orientation }),
|
7338
|
+
/* @__PURE__ */ React53.createElement(ScrollAreaPrimitive.Corner, null)
|
7259
7339
|
));
|
7260
7340
|
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
|
7261
|
-
var ScrollBar =
|
7341
|
+
var ScrollBar = React53.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React53.createElement(
|
7262
7342
|
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
7263
7343
|
{
|
7264
7344
|
ref,
|
@@ -7271,7 +7351,7 @@ var ScrollBar = React52.forwardRef(({ className, orientation = "vertical", ...pr
|
|
7271
7351
|
),
|
7272
7352
|
...props
|
7273
7353
|
},
|
7274
|
-
/* @__PURE__ */
|
7354
|
+
/* @__PURE__ */ React53.createElement(
|
7275
7355
|
ScrollAreaPrimitive.ScrollAreaThumb,
|
7276
7356
|
{
|
7277
7357
|
className: cn(
|
@@ -7889,9 +7969,9 @@ var PasswordInput = ({
|
|
7889
7969
|
};
|
7890
7970
|
|
7891
7971
|
// elements/slider/Slider.tsx
|
7892
|
-
var
|
7972
|
+
var React61 = __toESM(require("react"));
|
7893
7973
|
var SliderPrimitive = __toESM(require("@radix-ui/react-slider"));
|
7894
|
-
var Slider =
|
7974
|
+
var Slider = React61.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React61.createElement(
|
7895
7975
|
SliderPrimitive.Root,
|
7896
7976
|
{
|
7897
7977
|
ref,
|
@@ -7901,13 +7981,13 @@ var Slider = React60.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
7901
7981
|
),
|
7902
7982
|
...props
|
7903
7983
|
},
|
7904
|
-
/* @__PURE__ */
|
7905
|
-
/* @__PURE__ */
|
7984
|
+
/* @__PURE__ */ React61.createElement(SliderPrimitive.Track, { className: "hawa-relative hawa-h-2 hawa-w-full hawa-grow hawa-overflow-hidden hawa-rounded-full hawa-border hawa-bg-background" }, /* @__PURE__ */ React61.createElement(SliderPrimitive.Range, { className: "hawa-absolute hawa-h-full hawa-bg-primary" })),
|
7985
|
+
/* @__PURE__ */ React61.createElement(SliderPrimitive.Thumb, { className: "hawa-block hawa-h-5 hawa-w-5 hawa-rounded-full hawa-border-2 hawa-border-primary hawa-bg-background hawa-ring-offset-background hawa-transition-colors focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-2 disabled:hawa-pointer-events-none disabled:hawa-opacity-50" })
|
7906
7986
|
));
|
7907
7987
|
Slider.displayName = SliderPrimitive.Root.displayName;
|
7908
7988
|
|
7909
7989
|
// elements/simpleTable/SimpleTable.tsx
|
7910
|
-
var
|
7990
|
+
var React62 = __toESM(require("react"));
|
7911
7991
|
var import_react_table2 = require("@tanstack/react-table");
|
7912
7992
|
var SimpleTable = ({
|
7913
7993
|
columns,
|
@@ -7922,7 +8002,7 @@ var SimpleTable = ({
|
|
7922
8002
|
columns,
|
7923
8003
|
getCoreRowModel: (0, import_react_table2.getCoreRowModel)()
|
7924
8004
|
});
|
7925
|
-
return /* @__PURE__ */
|
8005
|
+
return /* @__PURE__ */ React62.createElement(
|
7926
8006
|
"div",
|
7927
8007
|
{
|
7928
8008
|
className: cn(
|
@@ -7930,8 +8010,8 @@ var SimpleTable = ({
|
|
7930
8010
|
classNames
|
7931
8011
|
)
|
7932
8012
|
},
|
7933
|
-
props.isLoading ? /* @__PURE__ */
|
7934
|
-
return /* @__PURE__ */
|
8013
|
+
props.isLoading ? /* @__PURE__ */ React62.createElement(Skeleton, { className: "h-[130px] w-full" }) : /* @__PURE__ */ React62.createElement("div", { className: "hawa-rounded" }, /* @__PURE__ */ React62.createElement(Table, null, !headerless && table.getAllColumns().length > 0 && /* @__PURE__ */ React62.createElement(TableHeader, null, table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ React62.createElement(TableRow, { key: headerGroup.id }, headerGroup.headers.map((header) => {
|
8014
|
+
return /* @__PURE__ */ React62.createElement(
|
7935
8015
|
TableHead,
|
7936
8016
|
{
|
7937
8017
|
condensed: props.condensed,
|
@@ -7946,7 +8026,7 @@ var SimpleTable = ({
|
|
7946
8026
|
header.getContext()
|
7947
8027
|
)
|
7948
8028
|
);
|
7949
|
-
})))), /* @__PURE__ */
|
8029
|
+
})))), /* @__PURE__ */ React62.createElement(TableBody, null, ((_a = table.getRowModel().rows) == null ? void 0 : _a.length) ? table.getRowModel().rows.map((row) => /* @__PURE__ */ React62.createElement(
|
7950
8030
|
TableRow,
|
7951
8031
|
{
|
7952
8032
|
key: row.id,
|
@@ -7954,7 +8034,7 @@ var SimpleTable = ({
|
|
7954
8034
|
},
|
7955
8035
|
row.getVisibleCells().map((cell) => {
|
7956
8036
|
var _a2;
|
7957
|
-
return /* @__PURE__ */
|
8037
|
+
return /* @__PURE__ */ React62.createElement(
|
7958
8038
|
TableCell,
|
7959
8039
|
{
|
7960
8040
|
dir: props.direction,
|
@@ -7970,7 +8050,7 @@ var SimpleTable = ({
|
|
7970
8050
|
)
|
7971
8051
|
);
|
7972
8052
|
})
|
7973
|
-
)) : /* @__PURE__ */
|
8053
|
+
)) : /* @__PURE__ */ React62.createElement(TableRow, null, /* @__PURE__ */ React62.createElement(
|
7974
8054
|
TableCell,
|
7975
8055
|
{
|
7976
8056
|
colSpan: columns.length,
|
@@ -7982,12 +8062,12 @@ var SimpleTable = ({
|
|
7982
8062
|
};
|
7983
8063
|
|
7984
8064
|
// elements/separator/Separator.tsx
|
7985
|
-
var
|
8065
|
+
var React63 = __toESM(require("react"));
|
7986
8066
|
var Separator2 = ({
|
7987
8067
|
className,
|
7988
8068
|
orientation = "horizontal",
|
7989
8069
|
...props
|
7990
|
-
}) => /* @__PURE__ */
|
8070
|
+
}) => /* @__PURE__ */ React63.createElement(
|
7991
8071
|
"div",
|
7992
8072
|
{
|
7993
8073
|
className: cn(
|
@@ -8352,7 +8432,7 @@ var Count = (props) => {
|
|
8352
8432
|
};
|
8353
8433
|
|
8354
8434
|
// elements/toast/Toast.tsx
|
8355
|
-
var
|
8435
|
+
var React68 = __toESM(require("react"));
|
8356
8436
|
var ToastPrimitives = __toESM(require("@radix-ui/react-toast"));
|
8357
8437
|
var import_class_variance_authority4 = require("class-variance-authority");
|
8358
8438
|
var toastVariants = (0, import_class_variance_authority4.cva)(
|
@@ -8380,7 +8460,7 @@ var sizeStyles = {
|
|
8380
8460
|
sm: "hawa-text-xs"
|
8381
8461
|
};
|
8382
8462
|
var ToastProvider = ToastPrimitives.Provider;
|
8383
|
-
var ToastViewport =
|
8463
|
+
var ToastViewport = React68.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React68.createElement(
|
8384
8464
|
ToastPrimitives.Viewport,
|
8385
8465
|
{
|
8386
8466
|
ref,
|
@@ -8392,8 +8472,8 @@ var ToastViewport = React67.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
8392
8472
|
}
|
8393
8473
|
));
|
8394
8474
|
ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
|
8395
|
-
var Toast =
|
8396
|
-
return /* @__PURE__ */
|
8475
|
+
var Toast = React68.forwardRef(({ className, variant, severity = "none", direction, ...props }, ref) => {
|
8476
|
+
return /* @__PURE__ */ React68.createElement(
|
8397
8477
|
ToastPrimitives.Root,
|
8398
8478
|
{
|
8399
8479
|
ref,
|
@@ -8408,8 +8488,8 @@ var Toast = React67.forwardRef(({ className, variant, severity = "none", directi
|
|
8408
8488
|
);
|
8409
8489
|
});
|
8410
8490
|
Toast.displayName = ToastPrimitives.Root.displayName;
|
8411
|
-
var ToastAction =
|
8412
|
-
return /* @__PURE__ */
|
8491
|
+
var ToastAction = React68.forwardRef(({ className, ...props }, ref) => {
|
8492
|
+
return /* @__PURE__ */ React68.createElement(
|
8413
8493
|
ToastPrimitives.Action,
|
8414
8494
|
{
|
8415
8495
|
ref,
|
@@ -8427,7 +8507,7 @@ var ToastAction = React67.forwardRef(({ className, ...props }, ref) => {
|
|
8427
8507
|
);
|
8428
8508
|
});
|
8429
8509
|
ToastAction.displayName = ToastPrimitives.Action.displayName;
|
8430
|
-
var ToastClose =
|
8510
|
+
var ToastClose = React68.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React68.createElement(
|
8431
8511
|
ToastPrimitives.Close,
|
8432
8512
|
{
|
8433
8513
|
ref,
|
@@ -8441,7 +8521,7 @@ var ToastClose = React67.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
8441
8521
|
"toast-close": "",
|
8442
8522
|
...props
|
8443
8523
|
},
|
8444
|
-
/* @__PURE__ */
|
8524
|
+
/* @__PURE__ */ React68.createElement(
|
8445
8525
|
"svg",
|
8446
8526
|
{
|
8447
8527
|
"aria-label": "Close Icon",
|
@@ -8450,7 +8530,7 @@ var ToastClose = React67.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
8450
8530
|
fill: "currentColor",
|
8451
8531
|
viewBox: "0 0 20 20"
|
8452
8532
|
},
|
8453
|
-
/* @__PURE__ */
|
8533
|
+
/* @__PURE__ */ React68.createElement(
|
8454
8534
|
"path",
|
8455
8535
|
{
|
8456
8536
|
fillRule: "evenodd",
|
@@ -8461,7 +8541,7 @@ var ToastClose = React67.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
8461
8541
|
)
|
8462
8542
|
));
|
8463
8543
|
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
8464
|
-
var ToastTitle =
|
8544
|
+
var ToastTitle = React68.forwardRef(({ className, size = "default", ...props }, ref) => /* @__PURE__ */ React68.createElement(
|
8465
8545
|
ToastPrimitives.Title,
|
8466
8546
|
{
|
8467
8547
|
ref,
|
@@ -8474,7 +8554,7 @@ var ToastTitle = React67.forwardRef(({ className, size = "default", ...props },
|
|
8474
8554
|
}
|
8475
8555
|
));
|
8476
8556
|
ToastTitle.displayName = ToastPrimitives.Title.displayName;
|
8477
|
-
var ToastDescription =
|
8557
|
+
var ToastDescription = React68.forwardRef(({ className, size = "default", ...props }, ref) => /* @__PURE__ */ React68.createElement(
|
8478
8558
|
ToastPrimitives.Description,
|
8479
8559
|
{
|
8480
8560
|
ref,
|
@@ -8738,13 +8818,13 @@ var Stats = ({
|
|
8738
8818
|
};
|
8739
8819
|
|
8740
8820
|
// layout/sidebar/Sidebar.tsx
|
8741
|
-
var
|
8821
|
+
var React74 = __toESM(require("react"));
|
8742
8822
|
var AccordionPrimitive6 = __toESM(require("@radix-ui/react-accordion"));
|
8743
8823
|
var Accordion2 = AccordionPrimitive6.Root;
|
8744
8824
|
var triggerStyles = "hawa-flex hawa-flex-1 hawa-items-center hawa-duration-75 hawa-select-none hawa-cursor-pointer hawa-rounded hawa-justify-between hawa-p-2 hawa-px-3 hawa-font-medium hawa-transition-all [&[data-state=open]>svg]:hawa--rotate-90";
|
8745
|
-
var AccordionItem2 =
|
8825
|
+
var AccordionItem2 = React74.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React74.createElement(AccordionPrimitive6.Item, { ref, className: cn(className), ...props }));
|
8746
8826
|
AccordionItem2.displayName = "AccordionItem";
|
8747
|
-
var AccordionTrigger2 =
|
8827
|
+
var AccordionTrigger2 = React74.forwardRef(({ className, showArrow, children, ...props }, ref) => /* @__PURE__ */ React74.createElement(AccordionPrimitive6.Header, { className: "flex" }, /* @__PURE__ */ React74.createElement(
|
8748
8828
|
AccordionPrimitive6.Trigger,
|
8749
8829
|
{
|
8750
8830
|
ref,
|
@@ -8752,7 +8832,7 @@ var AccordionTrigger2 = React73.forwardRef(({ className, showArrow, children, ..
|
|
8752
8832
|
...props
|
8753
8833
|
},
|
8754
8834
|
children,
|
8755
|
-
showArrow && /* @__PURE__ */
|
8835
|
+
showArrow && /* @__PURE__ */ React74.createElement(
|
8756
8836
|
"svg",
|
8757
8837
|
{
|
8758
8838
|
"aria-label": "Chevron Right Icon",
|
@@ -8763,11 +8843,11 @@ var AccordionTrigger2 = React73.forwardRef(({ className, showArrow, children, ..
|
|
8763
8843
|
width: "1em",
|
8764
8844
|
className: "hawa-icon hawa-shrink-0 hawa-rotate-90 hawa-transition-transform hawa-duration-200"
|
8765
8845
|
},
|
8766
|
-
/* @__PURE__ */
|
8846
|
+
/* @__PURE__ */ React74.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" })
|
8767
8847
|
)
|
8768
8848
|
)));
|
8769
8849
|
AccordionTrigger2.displayName = AccordionPrimitive6.Trigger.displayName;
|
8770
|
-
var AccordionContent2 =
|
8850
|
+
var AccordionContent2 = React74.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React74.createElement(
|
8771
8851
|
AccordionPrimitive6.Content,
|
8772
8852
|
{
|
8773
8853
|
ref,
|
@@ -8777,7 +8857,7 @@ var AccordionContent2 = React73.forwardRef(({ className, children, ...props }, r
|
|
8777
8857
|
),
|
8778
8858
|
...props
|
8779
8859
|
},
|
8780
|
-
/* @__PURE__ */
|
8860
|
+
/* @__PURE__ */ React74.createElement("div", null, children)
|
8781
8861
|
));
|
8782
8862
|
AccordionContent2.displayName = AccordionPrimitive6.Content.displayName;
|
8783
8863
|
var SidebarGroup = ({
|
@@ -8793,7 +8873,7 @@ var SidebarGroup = ({
|
|
8793
8873
|
...props
|
8794
8874
|
}) => {
|
8795
8875
|
const LinkComponent = props.LinkComponent || "a";
|
8796
|
-
return /* @__PURE__ */
|
8876
|
+
return /* @__PURE__ */ React74.createElement("div", { className: "hawa-m-2" }, title && /* @__PURE__ */ React74.createElement("h3", { className: "hawa-mb-1 hawa-font-bold" }, title), /* @__PURE__ */ React74.createElement("ul", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, /* @__PURE__ */ React74.createElement(
|
8797
8877
|
Accordion2,
|
8798
8878
|
{
|
8799
8879
|
value: openedItem,
|
@@ -8804,7 +8884,7 @@ var SidebarGroup = ({
|
|
8804
8884
|
collapsible: true,
|
8805
8885
|
className: "hawa-flex hawa-flex-col hawa-gap-1"
|
8806
8886
|
},
|
8807
|
-
items.map((item, idx) => /* @__PURE__ */
|
8887
|
+
items.map((item, idx) => /* @__PURE__ */ React74.createElement(
|
8808
8888
|
SidebarItem,
|
8809
8889
|
{
|
8810
8890
|
isOpen,
|
@@ -8832,14 +8912,14 @@ var SidebarItem = ({
|
|
8832
8912
|
return props.selectedItem === value ? "hawa-bg-primary/90 hawa-text-primary-foreground hawa-cursor-default" : "hover:hawa-bg-primary/10";
|
8833
8913
|
};
|
8834
8914
|
if (item.subitems) {
|
8835
|
-
return /* @__PURE__ */
|
8915
|
+
return /* @__PURE__ */ React74.createElement(
|
8836
8916
|
AccordionItem2,
|
8837
8917
|
{
|
8838
8918
|
value: item.value,
|
8839
8919
|
className: "hawa-overflow-x-clip ",
|
8840
8920
|
dir: direction
|
8841
8921
|
},
|
8842
|
-
/* @__PURE__ */
|
8922
|
+
/* @__PURE__ */ React74.createElement(
|
8843
8923
|
AccordionTrigger2,
|
8844
8924
|
{
|
8845
8925
|
className: cn(
|
@@ -8851,7 +8931,7 @@ var SidebarItem = ({
|
|
8851
8931
|
),
|
8852
8932
|
showArrow: isOpen
|
8853
8933
|
},
|
8854
|
-
/* @__PURE__ */
|
8934
|
+
/* @__PURE__ */ React74.createElement(
|
8855
8935
|
"div",
|
8856
8936
|
{
|
8857
8937
|
className: cn(
|
@@ -8859,7 +8939,7 @@ var SidebarItem = ({
|
|
8859
8939
|
)
|
8860
8940
|
},
|
8861
8941
|
item.icon && item.icon,
|
8862
|
-
/* @__PURE__ */
|
8942
|
+
/* @__PURE__ */ React74.createElement(
|
8863
8943
|
"span",
|
8864
8944
|
{
|
8865
8945
|
className: cn(
|
@@ -8871,14 +8951,14 @@ var SidebarItem = ({
|
|
8871
8951
|
)
|
8872
8952
|
)
|
8873
8953
|
),
|
8874
|
-
item.subitems && /* @__PURE__ */
|
8954
|
+
item.subitems && /* @__PURE__ */ React74.createElement(AccordionContent2, { className: "hawa-mt-1 hawa-h-full hawa-rounded" }, /* @__PURE__ */ React74.createElement(
|
8875
8955
|
"div",
|
8876
8956
|
{
|
8877
8957
|
className: cn(
|
8878
8958
|
"hawa-flex hawa-h-full hawa-flex-col hawa-gap-2 hawa-bg-foreground/5 hawa-p-1"
|
8879
8959
|
)
|
8880
8960
|
},
|
8881
|
-
item.subitems.map((subitem, idx) => /* @__PURE__ */
|
8961
|
+
item.subitems.map((subitem, idx) => /* @__PURE__ */ React74.createElement(
|
8882
8962
|
LinkComponent,
|
8883
8963
|
{
|
8884
8964
|
href: subitem.slug,
|
@@ -8909,7 +8989,7 @@ var SidebarItem = ({
|
|
8909
8989
|
))
|
8910
8990
|
);
|
8911
8991
|
} else {
|
8912
|
-
return /* @__PURE__ */
|
8992
|
+
return /* @__PURE__ */ React74.createElement(
|
8913
8993
|
LinkComponent,
|
8914
8994
|
{
|
8915
8995
|
href: item.slug,
|
@@ -8933,7 +9013,7 @@ var SidebarItem = ({
|
|
8933
9013
|
"hawa-overflow-x-clip "
|
8934
9014
|
)
|
8935
9015
|
},
|
8936
|
-
/* @__PURE__ */
|
9016
|
+
/* @__PURE__ */ React74.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2" }, item.icon && item.icon, /* @__PURE__ */ React74.createElement(
|
8937
9017
|
"span",
|
8938
9018
|
{
|
8939
9019
|
className: cn(
|
@@ -8943,7 +9023,7 @@ var SidebarItem = ({
|
|
8943
9023
|
},
|
8944
9024
|
item.label,
|
8945
9025
|
" ",
|
8946
|
-
item.badge && /* @__PURE__ */
|
9026
|
+
item.badge && /* @__PURE__ */ React74.createElement(Chip, { label: item.badge.label, color: "hyper", size: "small" })
|
8947
9027
|
))
|
8948
9028
|
);
|
8949
9029
|
}
|
@@ -9530,14 +9610,14 @@ var AppTopbar = ({ ...props }) => {
|
|
9530
9610
|
};
|
9531
9611
|
|
9532
9612
|
// layout/appMenubar/AppMenubar.tsx
|
9533
|
-
var
|
9613
|
+
var React79 = __toESM(require("react"));
|
9534
9614
|
var MenubarPrimitive = __toESM(require("@radix-ui/react-menubar"));
|
9535
9615
|
var MenubarMenu = MenubarPrimitive.Menu;
|
9536
9616
|
var MenubarGroup = MenubarPrimitive.Group;
|
9537
9617
|
var MenubarPortal = MenubarPrimitive.Portal;
|
9538
9618
|
var MenubarSub = MenubarPrimitive.Sub;
|
9539
9619
|
var MenubarRadioGroup = MenubarPrimitive.RadioGroup;
|
9540
|
-
var Menubar =
|
9620
|
+
var Menubar = React79.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React79.createElement(
|
9541
9621
|
MenubarPrimitive.Root,
|
9542
9622
|
{
|
9543
9623
|
ref,
|
@@ -9549,7 +9629,7 @@ var Menubar = React78.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
9549
9629
|
}
|
9550
9630
|
));
|
9551
9631
|
Menubar.displayName = MenubarPrimitive.Root.displayName;
|
9552
|
-
var MenubarTrigger =
|
9632
|
+
var MenubarTrigger = React79.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React79.createElement(
|
9553
9633
|
MenubarPrimitive.Trigger,
|
9554
9634
|
{
|
9555
9635
|
ref,
|
@@ -9561,7 +9641,7 @@ var MenubarTrigger = React78.forwardRef(({ className, ...props }, ref) => /* @__
|
|
9561
9641
|
}
|
9562
9642
|
));
|
9563
9643
|
MenubarTrigger.displayName = MenubarPrimitive.Trigger.displayName;
|
9564
|
-
var MenubarSubTrigger =
|
9644
|
+
var MenubarSubTrigger = React79.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ React79.createElement(
|
9565
9645
|
MenubarPrimitive.SubTrigger,
|
9566
9646
|
{
|
9567
9647
|
ref,
|
@@ -9573,7 +9653,7 @@ var MenubarSubTrigger = React78.forwardRef(({ className, inset, children, ...pro
|
|
9573
9653
|
...props
|
9574
9654
|
},
|
9575
9655
|
children,
|
9576
|
-
/* @__PURE__ */
|
9656
|
+
/* @__PURE__ */ React79.createElement(
|
9577
9657
|
"svg",
|
9578
9658
|
{
|
9579
9659
|
"aria-label": "Chevron Right Icon",
|
@@ -9588,11 +9668,11 @@ var MenubarSubTrigger = React78.forwardRef(({ className, inset, children, ...pro
|
|
9588
9668
|
strokeLinejoin: "round",
|
9589
9669
|
className: "hawa-icon hawa-ml-auto"
|
9590
9670
|
},
|
9591
|
-
/* @__PURE__ */
|
9671
|
+
/* @__PURE__ */ React79.createElement("path", { d: "m9 18 6-6-6-6" })
|
9592
9672
|
)
|
9593
9673
|
));
|
9594
9674
|
MenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName;
|
9595
|
-
var MenubarSubContent =
|
9675
|
+
var MenubarSubContent = React79.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React79.createElement(
|
9596
9676
|
MenubarPrimitive.SubContent,
|
9597
9677
|
{
|
9598
9678
|
ref,
|
@@ -9604,8 +9684,8 @@ var MenubarSubContent = React78.forwardRef(({ className, ...props }, ref) => /*
|
|
9604
9684
|
}
|
9605
9685
|
));
|
9606
9686
|
MenubarSubContent.displayName = MenubarPrimitive.SubContent.displayName;
|
9607
|
-
var MenubarContent =
|
9608
|
-
({ className, align = "start", alignOffset = -4, sideOffset = 8, ...props }, ref) => /* @__PURE__ */
|
9687
|
+
var MenubarContent = React79.forwardRef(
|
9688
|
+
({ className, align = "start", alignOffset = -4, sideOffset = 8, ...props }, ref) => /* @__PURE__ */ React79.createElement(MenubarPrimitive.Portal, null, /* @__PURE__ */ React79.createElement(
|
9609
9689
|
MenubarPrimitive.Content,
|
9610
9690
|
{
|
9611
9691
|
ref,
|
@@ -9621,7 +9701,7 @@ var MenubarContent = React78.forwardRef(
|
|
9621
9701
|
))
|
9622
9702
|
);
|
9623
9703
|
MenubarContent.displayName = MenubarPrimitive.Content.displayName;
|
9624
|
-
var MenubarItem =
|
9704
|
+
var MenubarItem = React79.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ React79.createElement(
|
9625
9705
|
MenubarPrimitive.Item,
|
9626
9706
|
{
|
9627
9707
|
ref,
|
@@ -9634,7 +9714,7 @@ var MenubarItem = React78.forwardRef(({ className, inset, ...props }, ref) => /*
|
|
9634
9714
|
}
|
9635
9715
|
));
|
9636
9716
|
MenubarItem.displayName = MenubarPrimitive.Item.displayName;
|
9637
|
-
var MenubarCheckboxItem =
|
9717
|
+
var MenubarCheckboxItem = React79.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ React79.createElement(
|
9638
9718
|
MenubarPrimitive.CheckboxItem,
|
9639
9719
|
{
|
9640
9720
|
ref,
|
@@ -9645,7 +9725,7 @@ var MenubarCheckboxItem = React78.forwardRef(({ className, children, checked, ..
|
|
9645
9725
|
checked,
|
9646
9726
|
...props
|
9647
9727
|
},
|
9648
|
-
/* @__PURE__ */
|
9728
|
+
/* @__PURE__ */ React79.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__ */ React79.createElement(MenubarPrimitive.ItemIndicator, null, /* @__PURE__ */ React79.createElement(
|
9649
9729
|
"svg",
|
9650
9730
|
{
|
9651
9731
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -9659,12 +9739,12 @@ var MenubarCheckboxItem = React78.forwardRef(({ className, children, checked, ..
|
|
9659
9739
|
strokeLinejoin: "round",
|
9660
9740
|
className: "hawa-icon"
|
9661
9741
|
},
|
9662
|
-
/* @__PURE__ */
|
9742
|
+
/* @__PURE__ */ React79.createElement("path", { d: "M20 6 9 17l-5-5" })
|
9663
9743
|
))),
|
9664
9744
|
children
|
9665
9745
|
));
|
9666
9746
|
MenubarCheckboxItem.displayName = MenubarPrimitive.CheckboxItem.displayName;
|
9667
|
-
var MenubarRadioItem =
|
9747
|
+
var MenubarRadioItem = React79.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React79.createElement(
|
9668
9748
|
MenubarPrimitive.RadioItem,
|
9669
9749
|
{
|
9670
9750
|
ref,
|
@@ -9674,7 +9754,7 @@ var MenubarRadioItem = React78.forwardRef(({ className, children, ...props }, re
|
|
9674
9754
|
),
|
9675
9755
|
...props
|
9676
9756
|
},
|
9677
|
-
/* @__PURE__ */
|
9757
|
+
/* @__PURE__ */ React79.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__ */ React79.createElement(MenubarPrimitive.ItemIndicator, null, /* @__PURE__ */ React79.createElement(
|
9678
9758
|
"svg",
|
9679
9759
|
{
|
9680
9760
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -9688,12 +9768,12 @@ var MenubarRadioItem = React78.forwardRef(({ className, children, ...props }, re
|
|
9688
9768
|
strokeLinejoin: "round",
|
9689
9769
|
className: "hawa-h-2 hawa-w-2 hawa-fill-current"
|
9690
9770
|
},
|
9691
|
-
/* @__PURE__ */
|
9771
|
+
/* @__PURE__ */ React79.createElement("circle", { cx: "12", cy: "12", r: "10" })
|
9692
9772
|
))),
|
9693
9773
|
children
|
9694
9774
|
));
|
9695
9775
|
MenubarRadioItem.displayName = MenubarPrimitive.RadioItem.displayName;
|
9696
|
-
var MenubarLabel =
|
9776
|
+
var MenubarLabel = React79.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ React79.createElement(
|
9697
9777
|
MenubarPrimitive.Label,
|
9698
9778
|
{
|
9699
9779
|
ref,
|
@@ -9706,7 +9786,7 @@ var MenubarLabel = React78.forwardRef(({ className, inset, ...props }, ref) => /
|
|
9706
9786
|
}
|
9707
9787
|
));
|
9708
9788
|
MenubarLabel.displayName = MenubarPrimitive.Label.displayName;
|
9709
|
-
var MenubarSeparator =
|
9789
|
+
var MenubarSeparator = React79.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React79.createElement(
|
9710
9790
|
MenubarPrimitive.Separator,
|
9711
9791
|
{
|
9712
9792
|
ref,
|
@@ -9719,7 +9799,7 @@ var MenubarShortcut = ({
|
|
9719
9799
|
className,
|
9720
9800
|
...props
|
9721
9801
|
}) => {
|
9722
|
-
return /* @__PURE__ */
|
9802
|
+
return /* @__PURE__ */ React79.createElement(
|
9723
9803
|
"span",
|
9724
9804
|
{
|
9725
9805
|
className: cn(
|
@@ -11203,7 +11283,7 @@ var CodeConfirmation = (props) => {
|
|
11203
11283
|
},
|
11204
11284
|
((_i = props.texts) == null ? void 0 : _i.resendCode) || "Click to resend"
|
11205
11285
|
)),
|
11206
|
-
/* @__PURE__ */ import_react68.default.createElement("div", { className: "hawa-mt-4 hawa-grid hawa-grid-cols-2 hawa-gap-2" }, /* @__PURE__ */ import_react68.default.createElement(Button, { variant: "
|
11286
|
+
/* @__PURE__ */ import_react68.default.createElement("div", { className: "hawa-mt-4 hawa-grid hawa-grid-cols-2 hawa-gap-2" }, /* @__PURE__ */ import_react68.default.createElement(Button, { variant: "outline" }, ((_j = props.texts) == null ? void 0 : _j.cancel) || "Cancel"), /* @__PURE__ */ import_react68.default.createElement(Button, { isLoading: props.confirmLoading }, ((_k = props.texts) == null ? void 0 : _k.confirm) || "Confirm"))
|
11207
11287
|
)));
|
11208
11288
|
};
|
11209
11289
|
|