@sikka/hawa 0.39.0-next → 0.40.1-next
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{DropdownMenu-B3cTLPDi.d.mts → DropdownMenu-FVVDS2rX.d.mts} +6 -1
- package/dist/{DropdownMenu-BO1TNMm5.d.ts → DropdownMenu-SFJtRGAw.d.ts} +6 -1
- package/dist/{Radio-lgoClQrv.d.ts → Radio-DlPwVCG4.d.ts} +6 -0
- package/dist/{Radio-uQ7DtzcI.d.mts → Radio-Dyvlywnk.d.mts} +6 -0
- package/dist/alert/index.js +2 -2
- package/dist/alert/index.js.map +1 -1
- package/dist/alert/index.mjs +2 -2
- package/dist/alert/index.mjs.map +1 -1
- package/dist/appLayout/index.d.mts +2 -0
- package/dist/appLayout/index.d.ts +2 -0
- package/dist/appLayout/index.js +14 -3
- package/dist/appLayout/index.js.map +1 -1
- package/dist/appLayout/index.mjs +14 -3
- package/dist/appLayout/index.mjs.map +1 -1
- package/dist/appTopbar/index.js.map +1 -1
- package/dist/appTopbar/index.mjs.map +1 -1
- package/dist/backToTop/index.js +2 -2
- package/dist/backToTop/index.js.map +1 -1
- package/dist/backToTop/index.mjs +2 -2
- package/dist/backToTop/index.mjs.map +1 -1
- package/dist/blocks/auth/index.js +15 -15
- package/dist/blocks/auth/index.mjs +17 -17
- package/dist/blocks/feedback/index.js +162 -119
- package/dist/blocks/feedback/index.mjs +5 -5
- package/dist/blocks/index.d.mts +2 -2
- package/dist/blocks/index.d.ts +2 -2
- package/dist/blocks/index.js +455 -463
- package/dist/blocks/index.mjs +3 -3
- package/dist/blocks/misc/index.js +238 -289
- package/dist/blocks/misc/index.mjs +147 -200
- package/dist/blocks/pricing/index.js +162 -119
- package/dist/blocks/pricing/index.mjs +4 -4
- package/dist/button/index.d.mts +1 -1
- package/dist/button/index.d.ts +1 -1
- package/dist/button/index.js +2 -2
- package/dist/button/index.js.map +1 -1
- package/dist/button/index.mjs +2 -2
- package/dist/button/index.mjs.map +1 -1
- package/dist/calendar/index.js +2 -2
- package/dist/calendar/index.js.map +1 -1
- package/dist/calendar/index.mjs +2 -2
- package/dist/calendar/index.mjs.map +1 -1
- package/dist/{chunk-C2IX3SUD.mjs → chunk-27G5FKOP.mjs} +1 -1
- package/dist/{chunk-IC5WYNKN.mjs → chunk-AJTYKC5R.mjs} +1 -1
- package/dist/{chunk-UMOBOCED.mjs → chunk-CTNKKP2O.mjs} +2 -2
- package/dist/chunk-CTZRVSTI.mjs +346 -0
- package/dist/{chunk-XFSBC5VI.mjs → chunk-DYPGZ2IP.mjs} +1 -1
- package/dist/{chunk-UJ5SXC3M.mjs → chunk-GN7EIDTE.mjs} +1 -1
- package/dist/{chunk-VMVZM3QQ.mjs → chunk-GU2DOJ7Q.mjs} +31 -8
- package/dist/{chunk-W3CF7BSC.mjs → chunk-QSEQS7DS.mjs} +251 -261
- package/dist/{chunk-RTK6REIK.mjs → chunk-QZIENYTE.mjs} +1 -1
- package/dist/{chunk-EZBHA2IL.mjs → chunk-RT2Q3SH7.mjs} +1 -1
- package/dist/{chunk-ZBUBNKF6.mjs → chunk-XCW5YNMS.mjs} +34 -1
- package/dist/codeBlock/index.js +2 -2
- package/dist/codeBlock/index.js.map +1 -1
- package/dist/codeBlock/index.mjs +2 -2
- package/dist/codeBlock/index.mjs.map +1 -1
- package/dist/combobox/index.js +1 -1
- package/dist/combobox/index.js.map +1 -1
- package/dist/combobox/index.mjs +1 -1
- package/dist/combobox/index.mjs.map +1 -1
- package/dist/command/index.js +1 -1
- package/dist/command/index.js.map +1 -1
- package/dist/command/index.mjs +1 -1
- package/dist/command/index.mjs.map +1 -1
- package/dist/commonTypes-189mW5eB.d.mts +8 -0
- package/dist/commonTypes-189mW5eB.d.ts +8 -0
- package/dist/commonTypes-DUY2LJm1.d.mts +3 -0
- package/dist/commonTypes-DUY2LJm1.d.ts +3 -0
- package/dist/commonTypes-D_7LV7Ri.d.mts +5 -0
- package/dist/commonTypes-D_7LV7Ri.d.ts +5 -0
- package/dist/dataTable/index.js +2 -2
- package/dist/dataTable/index.js.map +1 -1
- package/dist/dataTable/index.mjs +2 -2
- package/dist/dataTable/index.mjs.map +1 -1
- package/dist/datePicker/index.d.mts +1 -1
- package/dist/datePicker/index.d.ts +1 -1
- package/dist/datePicker/index.js +3 -3
- package/dist/datePicker/index.js.map +1 -1
- package/dist/datePicker/index.mjs +3 -3
- package/dist/datePicker/index.mjs.map +1 -1
- package/dist/dialog/index.js +1 -1
- package/dist/dialog/index.js.map +1 -1
- package/dist/dialog/index.mjs +1 -1
- package/dist/dialog/index.mjs.map +1 -1
- package/dist/docsLayout/index.js +2 -2
- package/dist/docsLayout/index.js.map +1 -1
- package/dist/docsLayout/index.mjs +2 -2
- package/dist/docsLayout/index.mjs.map +1 -1
- package/dist/dropdownMenu/index.d.mts +6 -1
- package/dist/dropdownMenu/index.d.ts +6 -1
- package/dist/dropdownMenu/index.js +29 -6
- package/dist/dropdownMenu/index.js.map +1 -1
- package/dist/dropdownMenu/index.mjs +29 -6
- package/dist/dropdownMenu/index.mjs.map +1 -1
- package/dist/elements/index.d.mts +7 -5
- package/dist/elements/index.d.ts +7 -5
- package/dist/elements/index.js +559 -544
- package/dist/elements/index.mjs +5 -5
- package/dist/fileDropzone/index.d.mts +2 -2
- package/dist/fileDropzone/index.d.ts +2 -2
- package/dist/fileDropzone/index.js +2 -2
- package/dist/fileDropzone/index.js.map +1 -1
- package/dist/fileDropzone/index.mjs +2 -2
- package/dist/fileDropzone/index.mjs.map +1 -1
- package/dist/fileUploader/index.d.mts +2 -2
- package/dist/fileUploader/index.d.ts +2 -2
- package/dist/glow/index.d.mts +3 -3
- package/dist/glow/index.d.ts +3 -3
- package/dist/hooks/index.d.mts +8 -1
- package/dist/hooks/index.d.ts +8 -1
- package/dist/hooks/index.js +35 -0
- package/dist/hooks/index.mjs +5 -1
- package/dist/index.css +0 -91
- package/dist/index.d.mts +26 -4
- package/dist/index.d.ts +26 -4
- package/dist/index.js +1033 -972
- package/dist/index.mjs +984 -925
- package/dist/input/index.d.mts +2 -9
- package/dist/input/index.d.ts +2 -9
- package/dist/interfaceSettings/index.js +160 -117
- package/dist/interfaceSettings/index.js.map +1 -1
- package/dist/interfaceSettings/index.mjs +160 -117
- package/dist/interfaceSettings/index.mjs.map +1 -1
- package/dist/label/index.d.mts +1 -2
- package/dist/label/index.d.ts +1 -2
- package/dist/layout/index.d.mts +3 -1
- package/dist/layout/index.d.ts +3 -1
- package/dist/layout/index.js +14 -3
- package/dist/layout/index.mjs +14 -3
- package/dist/navigationMenu/index.d.mts +2 -1
- package/dist/navigationMenu/index.d.ts +2 -1
- package/dist/pagination/index.d.mts +1 -1
- package/dist/pagination/index.d.ts +1 -1
- package/dist/phoneInput/index.d.mts +1 -1
- package/dist/phoneInput/index.d.ts +1 -1
- package/dist/pinInput/index.js +13 -13
- package/dist/pinInput/index.js.map +1 -1
- package/dist/pinInput/index.mjs +13 -13
- package/dist/pinInput/index.mjs.map +1 -1
- package/dist/progress/index.d.mts +8 -1
- package/dist/progress/index.d.ts +8 -1
- package/dist/radio/index.d.mts +15 -1
- package/dist/radio/index.d.ts +15 -1
- package/dist/radio/index.js +160 -117
- package/dist/radio/index.js.map +1 -1
- package/dist/radio/index.mjs +160 -117
- package/dist/radio/index.mjs.map +1 -1
- package/dist/scrollArea/index.d.mts +1 -1
- package/dist/scrollArea/index.d.ts +1 -1
- package/dist/separator/index.d.mts +1 -1
- package/dist/separator/index.d.ts +1 -1
- package/dist/signature/index.d.mts +1 -2
- package/dist/signature/index.d.ts +1 -2
- package/dist/simpleTable/index.d.mts +1 -1
- package/dist/simpleTable/index.d.ts +1 -1
- package/dist/sonner/index.d.mts +1 -1
- package/dist/sonner/index.d.ts +1 -1
- package/dist/sortButton/index.js +2 -2
- package/dist/sortButton/index.js.map +1 -1
- package/dist/sortButton/index.mjs +2 -2
- package/dist/sortButton/index.mjs.map +1 -1
- package/dist/splitButton/index.d.mts +3 -9
- package/dist/splitButton/index.d.ts +3 -9
- package/dist/splitButton/index.js +2 -2
- package/dist/splitButton/index.js.map +1 -1
- package/dist/splitButton/index.mjs +2 -2
- package/dist/splitButton/index.mjs.map +1 -1
- package/dist/switch/index.d.mts +1 -1
- package/dist/switch/index.d.ts +1 -1
- package/dist/tabs/index.d.mts +4 -2
- package/dist/tabs/index.d.ts +4 -2
- package/dist/tabs/index.js +123 -174
- package/dist/tabs/index.js.map +1 -1
- package/dist/tabs/index.mjs +118 -169
- package/dist/tabs/index.mjs.map +1 -1
- package/dist/textarea/index.d.mts +1 -1
- package/dist/textarea/index.d.ts +1 -1
- package/dist/toast/index.d.mts +1 -1
- package/dist/toast/index.d.ts +1 -1
- package/dist/toaster/index.d.mts +4 -22
- package/dist/toaster/index.d.ts +4 -22
- package/dist/tooltip/index.d.mts +4 -3
- package/dist/tooltip/index.d.ts +4 -3
- package/package.json +3 -5
- package/dist/Label-UbMDLtJF.d.mts +0 -14
- package/dist/Label-UbMDLtJF.d.ts +0 -14
- package/dist/chunk-WDCKXU54.mjs +0 -303
- package/dist/commonTypes-CgDwjGvU.d.mts +0 -5
- package/dist/commonTypes-CgDwjGvU.d.ts +0 -5
- package/dist/commonTypes-DZdITB5m.d.mts +0 -4
- package/dist/commonTypes-DZdITB5m.d.ts +0 -4
- package/dist/floatBox/index.d.mts +0 -15
- package/dist/floatBox/index.d.ts +0 -15
- package/dist/floatBox/index.js +0 -105
- package/dist/floatBox/index.js.map +0 -1
- package/dist/floatBox/index.mjs +0 -69
- package/dist/floatBox/index.mjs.map +0 -1
package/dist/elements/index.js
CHANGED
@@ -1016,14 +1016,37 @@ var DropdownMenu = ({
|
|
1016
1016
|
);
|
1017
1017
|
};
|
1018
1018
|
var DropdownMenuRadio = (props) => {
|
1019
|
-
|
1020
|
-
|
1019
|
+
const ariaLabel = props.label ? `${props.label} radio group` : void 0;
|
1020
|
+
const ariaLabelledby = props.label ? `${props.label}-label` : void 0;
|
1021
|
+
return /* @__PURE__ */ React5.createElement(DropdownMenuRoot, null, /* @__PURE__ */ React5.createElement(DropdownMenuTrigger, { asChild: true }, props.trigger), /* @__PURE__ */ React5.createElement(
|
1022
|
+
DropdownMenuContent,
|
1021
1023
|
{
|
1022
|
-
|
1023
|
-
|
1024
|
+
align: props.align,
|
1025
|
+
side: props.side,
|
1026
|
+
"aria-label": ariaLabel,
|
1027
|
+
"aria-labelledby": ariaLabelledby,
|
1028
|
+
...props.contentProps
|
1024
1029
|
},
|
1025
|
-
props.
|
1026
|
-
|
1030
|
+
props.label && /* @__PURE__ */ React5.createElement(React5.Fragment, null, /* @__PURE__ */ React5.createElement(DropdownMenuLabel, { id: `${props.label}-label` }, props.label), /* @__PURE__ */ React5.createElement(DropdownMenuSeparator, null)),
|
1031
|
+
/* @__PURE__ */ React5.createElement(
|
1032
|
+
DropdownMenuRadioGroup,
|
1033
|
+
{
|
1034
|
+
value: props.value,
|
1035
|
+
onValueChange: props.onValueChange,
|
1036
|
+
...props.radioGroupProps
|
1037
|
+
},
|
1038
|
+
props.options.map((opt, i) => /* @__PURE__ */ React5.createElement(
|
1039
|
+
DropdownMenuRadioItem,
|
1040
|
+
{
|
1041
|
+
key: i,
|
1042
|
+
...opt.props,
|
1043
|
+
value: opt.value,
|
1044
|
+
"aria-checked": props.value === opt.value
|
1045
|
+
},
|
1046
|
+
opt.label
|
1047
|
+
))
|
1048
|
+
)
|
1049
|
+
));
|
1027
1050
|
};
|
1028
1051
|
|
1029
1052
|
// elements/accordion/Accordion.tsx
|
@@ -2176,7 +2199,7 @@ var DialogFooter = ({
|
|
2176
2199
|
"div",
|
2177
2200
|
{
|
2178
2201
|
className: cn(
|
2179
|
-
"hawa-flex hawa-flex-col-reverse sm:hawa-flex-row sm:hawa-justify-end
|
2202
|
+
"hawa-flex hawa-flex-col-reverse sm:hawa-flex-row sm:hawa-justify-end hawa-gap-2",
|
2180
2203
|
className
|
2181
2204
|
),
|
2182
2205
|
...props
|
@@ -2384,12 +2407,12 @@ var Button = React17.forwardRef(
|
|
2384
2407
|
children,
|
2385
2408
|
labelProps,
|
2386
2409
|
showHelperText = false,
|
2387
|
-
|
2410
|
+
asInput = false,
|
2388
2411
|
...props
|
2389
2412
|
}, ref) => {
|
2390
2413
|
const Comp = "button";
|
2391
2414
|
const loadingColor = variant === "outline" || variant === "ghost" || variant === "neoBrutalism" ? "hawa-bg-primary" : "hawa-bg-primary-foreground";
|
2392
|
-
if (
|
2415
|
+
if (asInput) {
|
2393
2416
|
return /* @__PURE__ */ React17.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, label && /* @__PURE__ */ React17.createElement(Label2, { ...labelProps }, label), /* @__PURE__ */ React17.createElement(
|
2394
2417
|
Comp,
|
2395
2418
|
{
|
@@ -3529,6 +3552,7 @@ var Radio = (0, import_react13.forwardRef)(
|
|
3529
3552
|
tabsContainerClassName,
|
3530
3553
|
forceHideHelperText = false,
|
3531
3554
|
onChange,
|
3555
|
+
containerClassNames,
|
3532
3556
|
...props
|
3533
3557
|
}, ref) => {
|
3534
3558
|
var _a, _b, _c;
|
@@ -3584,161 +3608,203 @@ var Radio = (0, import_react13.forwardRef)(
|
|
3584
3608
|
];
|
3585
3609
|
switch (design) {
|
3586
3610
|
case "tabs":
|
3587
|
-
return /* @__PURE__ */ import_react13.default.createElement(
|
3588
|
-
"
|
3611
|
+
return /* @__PURE__ */ import_react13.default.createElement(
|
3612
|
+
"div",
|
3589
3613
|
{
|
3590
|
-
ref: parentRef,
|
3591
3614
|
className: cn(
|
3592
|
-
|
3593
|
-
|
3594
|
-
orientationStyle[orientation],
|
3595
|
-
widthStyle[width],
|
3596
|
-
tabsContainerClassName
|
3615
|
+
"hawa-gap-2 hawa-flex hawa-flex-col",
|
3616
|
+
containerClassNames == null ? void 0 : containerClassNames.tabs
|
3597
3617
|
)
|
3598
3618
|
},
|
3599
|
-
|
3600
|
-
|
3601
|
-
|
3602
|
-
|
3603
|
-
|
3604
|
-
|
3605
|
-
|
3606
|
-
|
3607
|
-
|
3608
|
-
|
3619
|
+
props.label && /* @__PURE__ */ import_react13.default.createElement(Label2, { ...labelProps }, props.label),
|
3620
|
+
/* @__PURE__ */ import_react13.default.createElement(
|
3621
|
+
"ul",
|
3622
|
+
{
|
3623
|
+
ref: parentRef,
|
3624
|
+
className: cn(
|
3625
|
+
props.options && ((_a = props.options) == null ? void 0 : _a.length) > 2 ? "hawa-flex-wrap xs:hawa-max-w-full xs:hawa-flex-nowrap" : "",
|
3626
|
+
"hawa-select-none hawa-whitespace-nowrap hawa-rounded hawa-border hawa-text-center hawa-font-medium hawa-h-[40px]",
|
3627
|
+
orientationStyle[orientation],
|
3628
|
+
widthStyle[width],
|
3629
|
+
tabsContainerClassName
|
3630
|
+
)
|
3631
|
+
},
|
3632
|
+
(_b = props.options) == null ? void 0 : _b.map((opt, o) => {
|
3633
|
+
return opt.tooltip ? /* @__PURE__ */ import_react13.default.createElement(
|
3634
|
+
PopoverRoot,
|
3609
3635
|
{
|
3610
|
-
|
3611
|
-
|
3612
|
-
|
3636
|
+
key: o,
|
3637
|
+
open: o === openTooltip,
|
3638
|
+
onOpenChange: (bool) => setOpenTooltip(bool ? o : null)
|
3613
3639
|
},
|
3614
3640
|
/* @__PURE__ */ import_react13.default.createElement(
|
3615
|
-
|
3641
|
+
PopoverTrigger,
|
3616
3642
|
{
|
3617
|
-
|
3618
|
-
|
3619
|
-
|
3620
|
-
|
3621
|
-
|
3643
|
+
onMouseEnter: () => setOpenTooltip(o),
|
3644
|
+
onMouseLeave: () => setOpenTooltip(null),
|
3645
|
+
asChild: true
|
3646
|
+
},
|
3647
|
+
/* @__PURE__ */ import_react13.default.createElement(
|
3648
|
+
"li",
|
3649
|
+
{
|
3650
|
+
"aria-current": "page",
|
3651
|
+
onClick: () => {
|
3652
|
+
if (props.disabled || opt.disabled)
|
3653
|
+
return;
|
3654
|
+
handleChange(opt);
|
3655
|
+
},
|
3656
|
+
className: cn(
|
3657
|
+
...radio_option_tabs_styling,
|
3658
|
+
selectedOption === opt.value ? activeTabStyle : inactiveTabStyle
|
3659
|
+
)
|
3622
3660
|
},
|
3623
|
-
|
3624
|
-
|
3625
|
-
|
3626
|
-
|
3661
|
+
opt.icon && opt.icon,
|
3662
|
+
opt.label
|
3663
|
+
)
|
3664
|
+
),
|
3665
|
+
/* @__PURE__ */ import_react13.default.createElement(PopoverContent, { ...opt.tooltipContentProps }, opt.tooltip)
|
3666
|
+
) : /* @__PURE__ */ import_react13.default.createElement(
|
3667
|
+
"li",
|
3668
|
+
{
|
3669
|
+
key: o,
|
3670
|
+
"aria-current": "page",
|
3671
|
+
onClick: () => {
|
3672
|
+
if (props.disabled || opt.disabled)
|
3673
|
+
return;
|
3674
|
+
handleChange(opt);
|
3627
3675
|
},
|
3628
|
-
|
3629
|
-
|
3630
|
-
|
3676
|
+
className: cn(
|
3677
|
+
...radio_option_tabs_styling,
|
3678
|
+
selectedOption === opt.value ? activeTabStyle : inactiveTabStyle
|
3679
|
+
)
|
3680
|
+
},
|
3681
|
+
opt.icon && opt.icon,
|
3682
|
+
opt.label
|
3683
|
+
);
|
3684
|
+
})
|
3685
|
+
),
|
3686
|
+
!forceHideHelperText && /* @__PURE__ */ import_react13.default.createElement(HelperText, { helperText: props.helperText })
|
3687
|
+
);
|
3688
|
+
case "bordered":
|
3689
|
+
return /* @__PURE__ */ import_react13.default.createElement(
|
3690
|
+
"div",
|
3691
|
+
{
|
3692
|
+
className: cn(
|
3693
|
+
orientationStyle[orientation],
|
3694
|
+
"hawa-gap-4",
|
3695
|
+
containerClassNames == null ? void 0 : containerClassNames.bordered
|
3696
|
+
)
|
3697
|
+
},
|
3698
|
+
props.options && props.options.map((opt, i) => /* @__PURE__ */ import_react13.default.createElement("div", { key: i, className: "hawa-w-full hawa-rounded hawa-border" }, /* @__PURE__ */ import_react13.default.createElement(
|
3699
|
+
"div",
|
3700
|
+
{
|
3701
|
+
className: cn(
|
3702
|
+
"radio-item radio-item-bordered hawa-flex hawa-items-center hawa-transition-all",
|
3703
|
+
props.direction === "rtl" ? "margin-left right-19px" : "margin-right left-23px"
|
3631
3704
|
),
|
3632
|
-
|
3633
|
-
|
3634
|
-
|
3705
|
+
key: i + 1
|
3706
|
+
},
|
3707
|
+
/* @__PURE__ */ import_react13.default.createElement(
|
3708
|
+
"input",
|
3635
3709
|
{
|
3636
|
-
|
3637
|
-
|
3638
|
-
|
3639
|
-
|
3640
|
-
|
3641
|
-
|
3642
|
-
|
3710
|
+
disabled: opt.disabled,
|
3711
|
+
id: opt.value.toString(),
|
3712
|
+
type: "radio",
|
3713
|
+
value: opt.value,
|
3714
|
+
name,
|
3715
|
+
onChange: () => handleChange(opt)
|
3716
|
+
}
|
3717
|
+
),
|
3718
|
+
/* @__PURE__ */ import_react13.default.createElement(
|
3719
|
+
"label",
|
3720
|
+
{
|
3721
|
+
htmlFor: opt.value.toString(),
|
3643
3722
|
className: cn(
|
3644
|
-
|
3645
|
-
|
3723
|
+
"hawa-ml-2 hawa-w-full hawa-select-none hawa-p-4 hawa-pl-3 hawa-text-sm hawa-font-medium hawa-text-black dark:hawa-text-white",
|
3724
|
+
opt.disabled ? "hawa-opacity-50" : "hawa-cursor-pointer hawa-text-gray-900"
|
3646
3725
|
)
|
3647
3726
|
},
|
3648
|
-
opt.icon && opt.icon,
|
3649
3727
|
opt.label
|
3650
|
-
)
|
3651
|
-
|
3652
|
-
)
|
3653
|
-
case "
|
3654
|
-
return /* @__PURE__ */ import_react13.default.createElement(
|
3655
|
-
"
|
3728
|
+
)
|
3729
|
+
)))
|
3730
|
+
);
|
3731
|
+
case "cards":
|
3732
|
+
return /* @__PURE__ */ import_react13.default.createElement(
|
3733
|
+
"ul",
|
3656
3734
|
{
|
3657
3735
|
className: cn(
|
3658
|
-
|
3659
|
-
|
3660
|
-
|
3661
|
-
|
3736
|
+
orientationStyle[orientation],
|
3737
|
+
"hawa-gap-4",
|
3738
|
+
containerClassNames == null ? void 0 : containerClassNames.cards
|
3739
|
+
)
|
3662
3740
|
},
|
3663
|
-
/* @__PURE__ */ import_react13.default.createElement(
|
3741
|
+
(_c = props.options) == null ? void 0 : _c.map((opt, o) => /* @__PURE__ */ import_react13.default.createElement("li", { key: o, onClick: () => handleChange(opt) }, /* @__PURE__ */ import_react13.default.createElement(
|
3664
3742
|
"input",
|
3665
3743
|
{
|
3666
|
-
disabled: opt.disabled,
|
3667
|
-
id: opt.value.toString(),
|
3668
3744
|
type: "radio",
|
3669
|
-
|
3745
|
+
id: opt.value.toString(),
|
3670
3746
|
name,
|
3671
|
-
|
3747
|
+
value: opt.value.toString(),
|
3748
|
+
className: "hawa-peer hawa-hidden",
|
3749
|
+
required: true,
|
3750
|
+
disabled: opt.disabled
|
3672
3751
|
}
|
3673
|
-
),
|
3674
|
-
/* @__PURE__ */ import_react13.default.createElement(
|
3752
|
+
), /* @__PURE__ */ import_react13.default.createElement(
|
3675
3753
|
"label",
|
3676
3754
|
{
|
3677
3755
|
htmlFor: opt.value.toString(),
|
3678
3756
|
className: cn(
|
3679
|
-
"hawa-
|
3680
|
-
opt.disabled ? "hawa-opacity-50" : "hawa-cursor-pointer hawa-text-gray-
|
3757
|
+
"hawa-inline-flex hawa-h-full hawa-w-full hawa-transition-all hawa-items-center hawa-justify-between hawa-rounded-lg hawa-border hawa-border-foreground/10 hawa-bg-background hawa-p-5 hawa-text-gray-500 peer-checked:hawa-border-primary peer-checked:hawa-text-primary dark:hawa-border-foreground/10 dark:hawa-bg-foreground/5 dark:hawa-text-gray-400 dark:peer-checked:hawa-text-primary",
|
3758
|
+
opt.disabled ? "hawa-opacity-50" : "hawa-cursor-pointer hover:hawa-bg-foreground/10 hover:hawa-text-gray-600 dark:hover:hawa-bg-foreground/20 dark:hover:hawa-text-gray-300"
|
3681
3759
|
)
|
3682
3760
|
},
|
3683
|
-
opt.label
|
3684
|
-
)
|
3685
|
-
)
|
3686
|
-
case "cards":
|
3687
|
-
return /* @__PURE__ */ import_react13.default.createElement("ul", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, (_c = props.options) == null ? void 0 : _c.map((opt, o) => /* @__PURE__ */ import_react13.default.createElement("li", { key: o, onClick: () => handleChange(opt) }, /* @__PURE__ */ import_react13.default.createElement(
|
3688
|
-
"input",
|
3689
|
-
{
|
3690
|
-
type: "radio",
|
3691
|
-
id: opt.value.toString(),
|
3692
|
-
name,
|
3693
|
-
value: opt.value.toString(),
|
3694
|
-
className: "hawa-peer hawa-hidden",
|
3695
|
-
required: true,
|
3696
|
-
disabled: opt.disabled
|
3697
|
-
}
|
3698
|
-
), /* @__PURE__ */ import_react13.default.createElement(
|
3699
|
-
"label",
|
3700
|
-
{
|
3701
|
-
htmlFor: opt.value.toString(),
|
3702
|
-
className: cn(
|
3703
|
-
"hawa-inline-flex hawa-h-full hawa-w-full hawa-transition-all hawa-items-center hawa-justify-between hawa-rounded-lg hawa-border hawa-border-foreground/10 hawa-bg-background hawa-p-5 hawa-text-gray-500 peer-checked:hawa-border-primary peer-checked:hawa-text-primary dark:hawa-border-foreground/10 dark:hawa-bg-foreground/5 dark:hawa-text-gray-400 dark:peer-checked:hawa-text-primary",
|
3704
|
-
opt.disabled ? "hawa-opacity-50" : "hawa-cursor-pointer hover:hawa-bg-foreground/10 hover:hawa-text-gray-600 dark:hover:hawa-bg-foreground/20 dark:hover:hawa-text-gray-300"
|
3705
|
-
)
|
3706
|
-
},
|
3707
|
-
/* @__PURE__ */ import_react13.default.createElement("div", { className: "hawa-block hawa-h-full hawa-w-full" }, /* @__PURE__ */ import_react13.default.createElement("div", { className: "hawa-w-full hawa-text-lg hawa-font-semibold" }, opt.label), /* @__PURE__ */ import_react13.default.createElement("div", { className: "hawa-w-full" }, opt.sublabel))
|
3708
|
-
))));
|
3761
|
+
/* @__PURE__ */ import_react13.default.createElement("div", { className: "hawa-block hawa-h-full hawa-w-full" }, /* @__PURE__ */ import_react13.default.createElement("div", { className: "hawa-w-full hawa-text-lg hawa-font-semibold" }, opt.label), /* @__PURE__ */ import_react13.default.createElement("div", { className: "hawa-w-full" }, opt.sublabel))
|
3762
|
+
)))
|
3763
|
+
);
|
3709
3764
|
default:
|
3710
|
-
return /* @__PURE__ */ import_react13.default.createElement(
|
3765
|
+
return /* @__PURE__ */ import_react13.default.createElement(
|
3711
3766
|
"div",
|
3712
3767
|
{
|
3713
3768
|
className: cn(
|
3714
|
-
"
|
3715
|
-
|
3716
|
-
)
|
3717
|
-
key: i + 1
|
3769
|
+
"hawa-flex hawa-flex-col hawa-gap-2",
|
3770
|
+
containerClassNames == null ? void 0 : containerClassNames.default
|
3771
|
+
)
|
3718
3772
|
},
|
3719
|
-
/* @__PURE__ */ import_react13.default.createElement(
|
3720
|
-
|
3773
|
+
props.label && /* @__PURE__ */ import_react13.default.createElement(Label2, { ...labelProps }, props.label),
|
3774
|
+
/* @__PURE__ */ import_react13.default.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-2") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ import_react13.default.createElement(
|
3775
|
+
"div",
|
3721
3776
|
{
|
3722
|
-
disabled: opt.disabled,
|
3723
|
-
id: opt.value.toString(),
|
3724
|
-
type: "radio",
|
3725
|
-
value: opt.value,
|
3726
|
-
name,
|
3727
|
-
onChange: () => handleChange(opt)
|
3728
|
-
}
|
3729
|
-
),
|
3730
|
-
/* @__PURE__ */ import_react13.default.createElement(
|
3731
|
-
"label",
|
3732
|
-
{
|
3733
|
-
htmlFor: opt.value.toString(),
|
3734
3777
|
className: cn(
|
3735
|
-
"
|
3736
|
-
|
3737
|
-
)
|
3778
|
+
"radio-item radio-item-default hawa-flex hawa-items-center hawa-transition-all",
|
3779
|
+
props.direction === "rtl" ? "margin-left right-3px" : "margin-right left-3px"
|
3780
|
+
),
|
3781
|
+
key: i + 1
|
3738
3782
|
},
|
3739
|
-
|
3740
|
-
|
3741
|
-
|
3783
|
+
/* @__PURE__ */ import_react13.default.createElement(
|
3784
|
+
"input",
|
3785
|
+
{
|
3786
|
+
disabled: opt.disabled,
|
3787
|
+
id: opt.value.toString(),
|
3788
|
+
type: "radio",
|
3789
|
+
value: opt.value,
|
3790
|
+
name,
|
3791
|
+
onChange: () => handleChange(opt)
|
3792
|
+
}
|
3793
|
+
),
|
3794
|
+
/* @__PURE__ */ import_react13.default.createElement(
|
3795
|
+
"label",
|
3796
|
+
{
|
3797
|
+
htmlFor: opt.value.toString(),
|
3798
|
+
className: cn(
|
3799
|
+
"hawa-text-sm hawa-font-medium dark:hawa-text-white",
|
3800
|
+
opt.disabled ? "hawa-text-gray-400" : "hawa-cursor-pointer hawa-text-gray-900"
|
3801
|
+
)
|
3802
|
+
},
|
3803
|
+
opt.label
|
3804
|
+
)
|
3805
|
+
))),
|
3806
|
+
/* @__PURE__ */ import_react13.default.createElement(HelperText, { helperText: props.helperText })
|
3807
|
+
);
|
3742
3808
|
}
|
3743
3809
|
}
|
3744
3810
|
);
|
@@ -4395,7 +4461,7 @@ var SortButton = (props) => {
|
|
4395
4461
|
};
|
4396
4462
|
|
4397
4463
|
// elements/tabs/Tabs.tsx
|
4398
|
-
var
|
4464
|
+
var React41 = __toESM(require("react"));
|
4399
4465
|
|
4400
4466
|
// hooks/useIsomorphicEffect.ts
|
4401
4467
|
var import_react16 = require("react");
|
@@ -4469,37 +4535,6 @@ var import_react29 = require("react");
|
|
4469
4535
|
|
4470
4536
|
// hooks/useMeasureDirty.ts
|
4471
4537
|
var import_react30 = require("react");
|
4472
|
-
var useMeasureDirty = (ref) => {
|
4473
|
-
const frame = (0, import_react30.useRef)(0);
|
4474
|
-
const [rect, set] = (0, import_react30.useState)({
|
4475
|
-
width: 0,
|
4476
|
-
height: 0,
|
4477
|
-
top: 0,
|
4478
|
-
left: 0,
|
4479
|
-
bottom: 0,
|
4480
|
-
right: 0
|
4481
|
-
});
|
4482
|
-
const [observer] = (0, import_react30.useState)(
|
4483
|
-
() => new ResizeObserver((entries) => {
|
4484
|
-
const entry = entries[0];
|
4485
|
-
if (entry) {
|
4486
|
-
cancelAnimationFrame(frame.current);
|
4487
|
-
frame.current = requestAnimationFrame(() => {
|
4488
|
-
if (ref.current) {
|
4489
|
-
set(entry.contentRect);
|
4490
|
-
}
|
4491
|
-
});
|
4492
|
-
}
|
4493
|
-
})
|
4494
|
-
);
|
4495
|
-
(0, import_react30.useEffect)(() => {
|
4496
|
-
observer.disconnect();
|
4497
|
-
if (ref.current) {
|
4498
|
-
observer.observe(ref.current);
|
4499
|
-
}
|
4500
|
-
}, [ref]);
|
4501
|
-
return rect;
|
4502
|
-
};
|
4503
4538
|
|
4504
4539
|
// hooks/useClickOutside.ts
|
4505
4540
|
var import_react31 = require("react");
|
@@ -4507,75 +4542,52 @@ var import_react31 = require("react");
|
|
4507
4542
|
// hooks/useShortcuts.ts
|
4508
4543
|
var import_react32 = require("react");
|
4509
4544
|
|
4545
|
+
// hooks/useWindowEvent.ts
|
4546
|
+
var import_react33 = require("react");
|
4547
|
+
function useWindowEvent(type, listener, options) {
|
4548
|
+
(0, import_react33.useEffect)(() => {
|
4549
|
+
window.addEventListener(type, listener, options);
|
4550
|
+
return () => window.removeEventListener(type, listener, options);
|
4551
|
+
}, [type, listener]);
|
4552
|
+
}
|
4553
|
+
|
4554
|
+
// hooks/useViewportSize.ts
|
4555
|
+
var import_react34 = require("react");
|
4556
|
+
var eventListerOptions = {
|
4557
|
+
passive: true
|
4558
|
+
};
|
4559
|
+
function useViewportSize() {
|
4560
|
+
const [windowSize, setWindowSize] = (0, import_react34.useState)({
|
4561
|
+
width: 0,
|
4562
|
+
height: 0
|
4563
|
+
});
|
4564
|
+
const setSize = (0, import_react34.useCallback)(() => {
|
4565
|
+
setWindowSize({
|
4566
|
+
width: window.innerWidth || 0,
|
4567
|
+
height: window.innerHeight || 0
|
4568
|
+
});
|
4569
|
+
}, []);
|
4570
|
+
useWindowEvent("resize", setSize, eventListerOptions);
|
4571
|
+
useWindowEvent("orientationchange", setSize, eventListerOptions);
|
4572
|
+
(0, import_react34.useEffect)(setSize, []);
|
4573
|
+
return windowSize;
|
4574
|
+
}
|
4575
|
+
|
4510
4576
|
// elements/tabs/Tabs.tsx
|
4577
|
+
var Popover2 = __toESM(require("@radix-ui/react-popover"));
|
4511
4578
|
var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"));
|
4512
4579
|
var import_tailwind_variants = require("tailwind-variants");
|
4513
4580
|
|
4514
|
-
// elements/floatBox/FloatBox.tsx
|
4515
|
-
var React40 = __toESM(require("react"));
|
4516
|
-
var FloatBox = ({
|
4517
|
-
className,
|
4518
|
-
open,
|
4519
|
-
side = "bottom",
|
4520
|
-
sideOffset = 40,
|
4521
|
-
align = "center",
|
4522
|
-
withArrow = false,
|
4523
|
-
...props
|
4524
|
-
}) => {
|
4525
|
-
let stylesMap = {
|
4526
|
-
bottom: {
|
4527
|
-
start: { top: sideOffset, insetInlineStart: 0 },
|
4528
|
-
center: { top: sideOffset },
|
4529
|
-
end: { top: sideOffset, insetInlineEnd: 0 }
|
4530
|
-
},
|
4531
|
-
top: {
|
4532
|
-
start: { bottom: sideOffset, insetInlineStart: 0 },
|
4533
|
-
center: { bottom: sideOffset },
|
4534
|
-
end: { bottom: sideOffset, insetInlineEnd: 0 }
|
4535
|
-
},
|
4536
|
-
right: {
|
4537
|
-
start: { left: sideOffset, top: -5 },
|
4538
|
-
center: { left: sideOffset },
|
4539
|
-
end: { left: sideOffset, bottom: 0 }
|
4540
|
-
},
|
4541
|
-
left: {
|
4542
|
-
start: { right: sideOffset, top: 0 },
|
4543
|
-
center: { right: sideOffset },
|
4544
|
-
end: { right: sideOffset, bottom: 0 }
|
4545
|
-
}
|
4546
|
-
};
|
4547
|
-
const arrowDirection = {
|
4548
|
-
top: "hawa-arrow-default-bottom",
|
4549
|
-
bottom: "hawa-arrow-default-top",
|
4550
|
-
right: "hawa-arrow-default-left",
|
4551
|
-
left: "hawa-arrow-default-right"
|
4552
|
-
};
|
4553
|
-
return /* @__PURE__ */ React40.createElement(
|
4554
|
-
"div",
|
4555
|
-
{
|
4556
|
-
className: cn(
|
4557
|
-
"data-[floatbox-state=closed]:hawa-invisible data-[floatbox-state=open]:hawa-visible hawa-absolute dark:dark-shadow hawa-z-50 hawa-rounded hawa-border hawa-text-popover-foreground hawa-shadow-md hawa-outline-none data-[floatbox-state=open]:hawa-animate-in data-[floatbox-state=closed]:hawa-animate-out data-[floatbox-state=closed]:hawa-fade-out-0 data-[floatbox-state=open]:hawa-fade-in-0 data-[floatbox-state=closed]:hawa-zoom-out-95 data-[floatbox-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 hawa-bg-popover",
|
4558
|
-
className
|
4559
|
-
),
|
4560
|
-
style: { ...stylesMap[side][align] },
|
4561
|
-
"data-side": side,
|
4562
|
-
"data-floatbox-state": open ? "open" : "closed"
|
4563
|
-
},
|
4564
|
-
withArrow && /* @__PURE__ */ React40.createElement("div", { className: cn(arrowDirection[side]) }),
|
4565
|
-
/* @__PURE__ */ React40.createElement("span", null, props.children)
|
4566
|
-
);
|
4567
|
-
};
|
4568
|
-
|
4569
4581
|
// elements/scrollArea/ScrollArea.tsx
|
4570
|
-
var
|
4582
|
+
var React40 = __toESM(require("react"));
|
4571
4583
|
var ScrollAreaPrimitive = __toESM(require("@radix-ui/react-scroll-area"));
|
4572
|
-
var ScrollArea =
|
4573
|
-
const scrollAreaRef =
|
4574
|
-
const isDragging =
|
4575
|
-
const startPos =
|
4576
|
-
const scrollPos =
|
4577
|
-
const [showLeftFade, setShowLeftFade] =
|
4578
|
-
const [showRightFade, setShowRightFade] =
|
4584
|
+
var ScrollArea = React40.forwardRef(({ className, children, orientation = "vertical", ...props }, ref) => {
|
4585
|
+
const scrollAreaRef = React40.useRef(null);
|
4586
|
+
const isDragging = React40.useRef(false);
|
4587
|
+
const startPos = React40.useRef({ x: 0, y: 0 });
|
4588
|
+
const scrollPos = React40.useRef({ top: 0, left: 0 });
|
4589
|
+
const [showLeftFade, setShowLeftFade] = React40.useState(false);
|
4590
|
+
const [showRightFade, setShowRightFade] = React40.useState(false);
|
4579
4591
|
const checkOverflow = () => {
|
4580
4592
|
if (scrollAreaRef.current) {
|
4581
4593
|
const { scrollLeft, scrollWidth, clientWidth } = scrollAreaRef.current;
|
@@ -4612,7 +4624,7 @@ var ScrollArea = React41.forwardRef(({ className, children, orientation = "verti
|
|
4612
4624
|
document.removeEventListener("mousemove", onMouseMove);
|
4613
4625
|
document.removeEventListener("mouseup", onMouseUp);
|
4614
4626
|
};
|
4615
|
-
|
4627
|
+
React40.useEffect(() => {
|
4616
4628
|
checkOverflow();
|
4617
4629
|
if (scrollAreaRef.current) {
|
4618
4630
|
scrollAreaRef.current.addEventListener("scroll", checkOverflow);
|
@@ -4625,14 +4637,14 @@ var ScrollArea = React41.forwardRef(({ className, children, orientation = "verti
|
|
4625
4637
|
window.removeEventListener("resize", checkOverflow);
|
4626
4638
|
};
|
4627
4639
|
}, []);
|
4628
|
-
return /* @__PURE__ */
|
4640
|
+
return /* @__PURE__ */ React40.createElement(
|
4629
4641
|
ScrollAreaPrimitive.Root,
|
4630
4642
|
{
|
4631
4643
|
ref,
|
4632
4644
|
className: cn("hawa-relative hawa-overflow-hidden", className),
|
4633
4645
|
...props
|
4634
4646
|
},
|
4635
|
-
/* @__PURE__ */
|
4647
|
+
/* @__PURE__ */ React40.createElement(
|
4636
4648
|
"div",
|
4637
4649
|
{
|
4638
4650
|
className: cn(
|
@@ -4641,7 +4653,7 @@ var ScrollArea = React41.forwardRef(({ className, children, orientation = "verti
|
|
4641
4653
|
)
|
4642
4654
|
}
|
4643
4655
|
),
|
4644
|
-
/* @__PURE__ */
|
4656
|
+
/* @__PURE__ */ React40.createElement(
|
4645
4657
|
"div",
|
4646
4658
|
{
|
4647
4659
|
className: cn(
|
@@ -4650,7 +4662,7 @@ var ScrollArea = React41.forwardRef(({ className, children, orientation = "verti
|
|
4650
4662
|
)
|
4651
4663
|
}
|
4652
4664
|
),
|
4653
|
-
/* @__PURE__ */
|
4665
|
+
/* @__PURE__ */ React40.createElement(
|
4654
4666
|
ScrollAreaPrimitive.Viewport,
|
4655
4667
|
{
|
4656
4668
|
ref: scrollAreaRef,
|
@@ -4659,12 +4671,12 @@ var ScrollArea = React41.forwardRef(({ className, children, orientation = "verti
|
|
4659
4671
|
},
|
4660
4672
|
children
|
4661
4673
|
),
|
4662
|
-
/* @__PURE__ */
|
4663
|
-
/* @__PURE__ */
|
4674
|
+
/* @__PURE__ */ React40.createElement(ScrollBar, { orientation }),
|
4675
|
+
/* @__PURE__ */ React40.createElement(ScrollAreaPrimitive.Corner, null)
|
4664
4676
|
);
|
4665
4677
|
});
|
4666
4678
|
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
|
4667
|
-
var ScrollBar =
|
4679
|
+
var ScrollBar = React40.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React40.createElement(
|
4668
4680
|
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
4669
4681
|
{
|
4670
4682
|
ref,
|
@@ -4677,7 +4689,7 @@ var ScrollBar = React41.forwardRef(({ className, orientation = "vertical", ...pr
|
|
4677
4689
|
),
|
4678
4690
|
...props
|
4679
4691
|
},
|
4680
|
-
/* @__PURE__ */
|
4692
|
+
/* @__PURE__ */ React40.createElement(
|
4681
4693
|
ScrollAreaPrimitive.ScrollAreaThumb,
|
4682
4694
|
{
|
4683
4695
|
className: cn(
|
@@ -4748,39 +4760,27 @@ var tabsTriggerVariant = (0, import_tailwind_variants.tv)({
|
|
4748
4760
|
],
|
4749
4761
|
defaultVariants: { variant: "default", orientation: "horizontal" }
|
4750
4762
|
});
|
4751
|
-
var TabsContext =
|
4752
|
-
var Tabs =
|
4753
|
-
|
4754
|
-
|
4755
|
-
|
4756
|
-
|
4757
|
-
|
4758
|
-
|
4759
|
-
|
4760
|
-
|
4761
|
-
|
4762
|
-
|
4763
|
-
|
4764
|
-
)
|
4765
|
-
|
4766
|
-
|
4767
|
-
|
4768
|
-
|
4769
|
-
);
|
4770
|
-
|
4771
|
-
|
4772
|
-
const resize = () => {
|
4773
|
-
setSize(window.innerWidth);
|
4774
|
-
};
|
4775
|
-
resize();
|
4776
|
-
window.addEventListener("resize", resize);
|
4777
|
-
return () => {
|
4778
|
-
window.removeEventListener("resize", resize);
|
4779
|
-
};
|
4780
|
-
}
|
4781
|
-
}, []);
|
4782
|
-
if (props.scrollable && size < 768 && orientation === "horizontal") {
|
4783
|
-
return /* @__PURE__ */ React42.createElement(ScrollArea, { orientation: "horizontal", className: classNames == null ? void 0 : classNames.scrollArea }, /* @__PURE__ */ React42.createElement(
|
4763
|
+
var TabsContext = React41.createContext({ orientation: "horizontal", variant: "default", scrollable: false });
|
4764
|
+
var Tabs = React41.forwardRef(
|
4765
|
+
({ className, orientation, scrollable, variant = "default", ...props }, ref) => /* @__PURE__ */ React41.createElement(
|
4766
|
+
TabsPrimitive.Root,
|
4767
|
+
{
|
4768
|
+
ref,
|
4769
|
+
className: cn(
|
4770
|
+
"hawa-flex hawa-gap-2",
|
4771
|
+
orientation === "vertical" ? "hawa-flex-row" : "hawa-flex-col",
|
4772
|
+
className
|
4773
|
+
),
|
4774
|
+
...props
|
4775
|
+
},
|
4776
|
+
/* @__PURE__ */ React41.createElement(TabsContext.Provider, { value: { orientation, variant, scrollable } }, props.children)
|
4777
|
+
)
|
4778
|
+
);
|
4779
|
+
var TabsList = React41.forwardRef(({ className, classNames, ...props }, ref) => {
|
4780
|
+
const { orientation, variant, scrollable } = React41.useContext(TabsContext);
|
4781
|
+
const { width } = useViewportSize();
|
4782
|
+
if (scrollable && width < 768 && orientation === "horizontal") {
|
4783
|
+
return /* @__PURE__ */ React41.createElement(ScrollArea, { orientation: "horizontal", className: classNames == null ? void 0 : classNames.scrollArea }, /* @__PURE__ */ React41.createElement(
|
4784
4784
|
TabsPrimitive.List,
|
4785
4785
|
{
|
4786
4786
|
ref,
|
@@ -4793,7 +4793,7 @@ var TabsList = React42.forwardRef(({ className, classNames, ...props }, ref) =>
|
|
4793
4793
|
}
|
4794
4794
|
));
|
4795
4795
|
} else {
|
4796
|
-
return /* @__PURE__ */
|
4796
|
+
return /* @__PURE__ */ React41.createElement(
|
4797
4797
|
TabsPrimitive.List,
|
4798
4798
|
{
|
4799
4799
|
ref,
|
@@ -4808,37 +4808,52 @@ var TabsList = React42.forwardRef(({ className, classNames, ...props }, ref) =>
|
|
4808
4808
|
);
|
4809
4809
|
}
|
4810
4810
|
});
|
4811
|
-
var TabsTrigger =
|
4812
|
-
|
4813
|
-
|
4814
|
-
|
4815
|
-
|
4816
|
-
|
4817
|
-
|
4818
|
-
|
4819
|
-
|
4820
|
-
|
4821
|
-
|
4822
|
-
|
4823
|
-
|
4824
|
-
|
4825
|
-
|
4826
|
-
|
4827
|
-
|
4828
|
-
|
4829
|
-
|
4830
|
-
|
4831
|
-
|
4832
|
-
|
4833
|
-
|
4834
|
-
|
4835
|
-
|
4836
|
-
|
4837
|
-
|
4838
|
-
|
4839
|
-
|
4840
|
-
|
4841
|
-
|
4811
|
+
var TabsTrigger = React41.forwardRef(
|
4812
|
+
({ className, chipProps, withPopover = false, onPopoverClick, ...props }, ref) => {
|
4813
|
+
const { orientation, variant } = React41.useContext(TabsContext);
|
4814
|
+
if (withPopover) {
|
4815
|
+
return /* @__PURE__ */ React41.createElement(Popover2.Root, { open: props.showPopover }, /* @__PURE__ */ React41.createElement(Popover2.Anchor, { asChild: true }, /* @__PURE__ */ React41.createElement(
|
4816
|
+
TabsPrimitive.Trigger,
|
4817
|
+
{
|
4818
|
+
className: cn(
|
4819
|
+
tabsTriggerVariant({ variant, orientation }),
|
4820
|
+
"hawa-relative",
|
4821
|
+
className
|
4822
|
+
),
|
4823
|
+
...props
|
4824
|
+
},
|
4825
|
+
props.children,
|
4826
|
+
chipProps && /* @__PURE__ */ React41.createElement(Chip, { ...chipProps })
|
4827
|
+
)), /* @__PURE__ */ React41.createElement(
|
4828
|
+
Popover2.Content,
|
4829
|
+
{
|
4830
|
+
onClick: onPopoverClick,
|
4831
|
+
asChild: true,
|
4832
|
+
className: cn(
|
4833
|
+
"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",
|
4834
|
+
"hawa-arrow-default-top hawa-mt-2"
|
4835
|
+
)
|
4836
|
+
},
|
4837
|
+
/* @__PURE__ */ React41.createElement("div", { className: "hawa-p-2" }, " ", props.popoverContent)
|
4838
|
+
));
|
4839
|
+
} else {
|
4840
|
+
return /* @__PURE__ */ React41.createElement(
|
4841
|
+
TabsPrimitive.Trigger,
|
4842
|
+
{
|
4843
|
+
className: cn(
|
4844
|
+
tabsTriggerVariant({ variant, orientation }),
|
4845
|
+
"hawa-relative",
|
4846
|
+
className
|
4847
|
+
),
|
4848
|
+
...props
|
4849
|
+
},
|
4850
|
+
props.children,
|
4851
|
+
chipProps && /* @__PURE__ */ React41.createElement(Chip, { ...chipProps })
|
4852
|
+
);
|
4853
|
+
}
|
4854
|
+
}
|
4855
|
+
);
|
4856
|
+
var TabsContent = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React41.createElement(
|
4842
4857
|
TabsPrimitive.Content,
|
4843
4858
|
{
|
4844
4859
|
ref,
|
@@ -4855,7 +4870,7 @@ TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
4855
4870
|
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
4856
4871
|
|
4857
4872
|
// elements/select/Select.tsx
|
4858
|
-
var
|
4873
|
+
var import_react35 = __toESM(require("react"));
|
4859
4874
|
var import_react_select = __toESM(require("react-select"));
|
4860
4875
|
var import_creatable = __toESM(require("react-select/creatable"));
|
4861
4876
|
var import_clsx3 = __toESM(require("clsx"));
|
@@ -4866,10 +4881,10 @@ var Select = ({
|
|
4866
4881
|
}) => {
|
4867
4882
|
const NoOption = () => {
|
4868
4883
|
var _a, _b;
|
4869
|
-
return /* @__PURE__ */
|
4884
|
+
return /* @__PURE__ */ import_react35.default.createElement("div", null, (_b = (_a = props.texts) == null ? void 0 : _a.noOptions) != null ? _b : "No Items Found");
|
4870
4885
|
};
|
4871
4886
|
const Control = ({ children, innerProps, innerRef }) => {
|
4872
|
-
return /* @__PURE__ */
|
4887
|
+
return /* @__PURE__ */ import_react35.default.createElement(
|
4873
4888
|
"div",
|
4874
4889
|
{
|
4875
4890
|
ref: innerRef,
|
@@ -4882,7 +4897,7 @@ var Select = ({
|
|
4882
4897
|
);
|
4883
4898
|
};
|
4884
4899
|
const Option = ({ children, innerProps, innerRef }) => {
|
4885
|
-
return /* @__PURE__ */
|
4900
|
+
return /* @__PURE__ */ import_react35.default.createElement(
|
4886
4901
|
"div",
|
4887
4902
|
{
|
4888
4903
|
ref: innerRef,
|
@@ -4903,7 +4918,7 @@ var Select = ({
|
|
4903
4918
|
...menuProps
|
4904
4919
|
}) => {
|
4905
4920
|
const menuOpen = menuProps.selectProps.menuIsOpen;
|
4906
|
-
return /* @__PURE__ */
|
4921
|
+
return /* @__PURE__ */ import_react35.default.createElement(
|
4907
4922
|
"div",
|
4908
4923
|
{
|
4909
4924
|
className: cn(
|
@@ -4921,7 +4936,7 @@ var Select = ({
|
|
4921
4936
|
let selectContainerStyles = "hawa-rounded hawa-block hawa-w-full hawa-border hawa-transition-all hawa-bg-background hawa-p-0 hawa-px-1 hawa-text-sm";
|
4922
4937
|
let selectPlaceholderStyles = "hawa-text-muted-foreground hawa-cursor-pointer hawa-px-1";
|
4923
4938
|
let selectIndicatorContainerStyles = "hawa-cursor-pointer hawa-text-muted-foreground hawa-absolute hawa-end-0 hawa-top-[50%] hawa-bottom-[50%] ";
|
4924
|
-
return /* @__PURE__ */
|
4939
|
+
return /* @__PURE__ */ import_react35.default.createElement(
|
4925
4940
|
"div",
|
4926
4941
|
{
|
4927
4942
|
className: cn(
|
@@ -4929,10 +4944,10 @@ var Select = ({
|
|
4929
4944
|
props.width === "fit" ? "hawa-w-fit" : "hawa-w-full"
|
4930
4945
|
)
|
4931
4946
|
},
|
4932
|
-
props.label && /* @__PURE__ */
|
4933
|
-
props.isLoading ? /* @__PURE__ */
|
4947
|
+
props.label && /* @__PURE__ */ import_react35.default.createElement(Label2, { ...labelProps }, props.label),
|
4948
|
+
props.isLoading ? /* @__PURE__ */ import_react35.default.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" }) : !props.isCreatable ? (
|
4934
4949
|
// TODO: enable keyboard to go to the next item in the list
|
4935
|
-
/* @__PURE__ */
|
4950
|
+
/* @__PURE__ */ import_react35.default.createElement(
|
4936
4951
|
import_react_select.default,
|
4937
4952
|
{
|
4938
4953
|
noOptionsMessage: NoOption,
|
@@ -4966,7 +4981,7 @@ var Select = ({
|
|
4966
4981
|
// {...e}
|
4967
4982
|
// />
|
4968
4983
|
// ),
|
4969
|
-
ValueContainer: (e) => /* @__PURE__ */
|
4984
|
+
ValueContainer: (e) => /* @__PURE__ */ import_react35.default.createElement(
|
4970
4985
|
"div",
|
4971
4986
|
{
|
4972
4987
|
className: cn(
|
@@ -4976,7 +4991,7 @@ var Select = ({
|
|
4976
4991
|
...e
|
4977
4992
|
}
|
4978
4993
|
),
|
4979
|
-
MultiValueContainer: (e) => /* @__PURE__ */
|
4994
|
+
MultiValueContainer: (e) => /* @__PURE__ */ import_react35.default.createElement(
|
4980
4995
|
"div",
|
4981
4996
|
{
|
4982
4997
|
className: "hawa-rounded hawa-border hawa-p-1 hawa-px-2 hawa-flex hawa-flex-row",
|
@@ -4995,7 +5010,7 @@ var Select = ({
|
|
4995
5010
|
isSearchable: props.isSearchable
|
4996
5011
|
}
|
4997
5012
|
)
|
4998
|
-
) : /* @__PURE__ */
|
5013
|
+
) : /* @__PURE__ */ import_react35.default.createElement(
|
4999
5014
|
import_creatable.default,
|
5000
5015
|
{
|
5001
5016
|
formatCreateLabel: (inputValue) => {
|
@@ -5025,20 +5040,20 @@ var Select = ({
|
|
5025
5040
|
onInputChange: (newValue, action) => props.onInputChange(newValue, action)
|
5026
5041
|
}
|
5027
5042
|
),
|
5028
|
-
!props.hideHelperText && /* @__PURE__ */
|
5043
|
+
!props.hideHelperText && /* @__PURE__ */ import_react35.default.createElement(HelperText, { helperText: props.helperText })
|
5029
5044
|
);
|
5030
5045
|
};
|
5031
5046
|
|
5032
5047
|
// elements/switch/Switch.tsx
|
5033
|
-
var
|
5048
|
+
var React43 = __toESM(require("react"));
|
5034
5049
|
var SwitchPrimitives = __toESM(require("@radix-ui/react-switch"));
|
5035
|
-
var Switch =
|
5050
|
+
var Switch = React43.forwardRef(
|
5036
5051
|
({ className, size = "default", roundedness = "inherit", label, ...props }, ref) => {
|
5037
|
-
const [parentDirection, setParentDirection] =
|
5052
|
+
const [parentDirection, setParentDirection] = React43.useState(
|
5038
5053
|
null
|
5039
5054
|
);
|
5040
|
-
const parentRef =
|
5041
|
-
|
5055
|
+
const parentRef = React43.useRef(null);
|
5056
|
+
React43.useEffect(() => {
|
5042
5057
|
var _a;
|
5043
5058
|
const parentNode = (_a = parentRef.current) == null ? void 0 : _a.parentNode;
|
5044
5059
|
if (parentNode) {
|
@@ -5066,13 +5081,13 @@ var Switch = React44.forwardRef(
|
|
5066
5081
|
full: "hawa-rounded-full",
|
5067
5082
|
inherit: "hawa-rounded-inner"
|
5068
5083
|
};
|
5069
|
-
return /* @__PURE__ */
|
5084
|
+
return /* @__PURE__ */ React43.createElement(
|
5070
5085
|
"div",
|
5071
5086
|
{
|
5072
5087
|
className: "hawa-flex hawa-flex-row hawa-items-center",
|
5073
5088
|
ref: parentRef
|
5074
5089
|
},
|
5075
|
-
/* @__PURE__ */
|
5090
|
+
/* @__PURE__ */ React43.createElement(
|
5076
5091
|
SwitchPrimitives.Root,
|
5077
5092
|
{
|
5078
5093
|
className: cn(
|
@@ -5086,7 +5101,7 @@ var Switch = React44.forwardRef(
|
|
5086
5101
|
...props,
|
5087
5102
|
ref
|
5088
5103
|
},
|
5089
|
-
/* @__PURE__ */
|
5104
|
+
/* @__PURE__ */ React43.createElement(
|
5090
5105
|
SwitchPrimitives.Thumb,
|
5091
5106
|
{
|
5092
5107
|
className: cn(
|
@@ -5100,14 +5115,14 @@ var Switch = React44.forwardRef(
|
|
5100
5115
|
}
|
5101
5116
|
)
|
5102
5117
|
),
|
5103
|
-
label && /* @__PURE__ */
|
5118
|
+
label && /* @__PURE__ */ React43.createElement("span", { className: "hawa-mx-2 hawa-text-sm hawa-font-medium hawa-text-gray-900 dark:hawa-text-gray-300" }, label)
|
5104
5119
|
);
|
5105
5120
|
}
|
5106
5121
|
);
|
5107
5122
|
Switch.displayName = SwitchPrimitives.Root.displayName;
|
5108
5123
|
|
5109
5124
|
// elements/checkbox/Checkbox.tsx
|
5110
|
-
var
|
5125
|
+
var React44 = __toESM(require("react"));
|
5111
5126
|
var CheckboxPrimitive = __toESM(require("@radix-ui/react-checkbox"));
|
5112
5127
|
var Checkbox = ({
|
5113
5128
|
id,
|
@@ -5127,7 +5142,7 @@ var Checkbox = ({
|
|
5127
5142
|
lg: 0.9,
|
5128
5143
|
xl: 1
|
5129
5144
|
};
|
5130
|
-
return /* @__PURE__ */
|
5145
|
+
return /* @__PURE__ */ React44.createElement(
|
5131
5146
|
"div",
|
5132
5147
|
{
|
5133
5148
|
className: cn(
|
@@ -5135,7 +5150,7 @@ var Checkbox = ({
|
|
5135
5150
|
size === "default" ? "hawa-items-top" : "hawa-items-center"
|
5136
5151
|
)
|
5137
5152
|
},
|
5138
|
-
/* @__PURE__ */
|
5153
|
+
/* @__PURE__ */ React44.createElement(
|
5139
5154
|
CheckboxElement,
|
5140
5155
|
{
|
5141
5156
|
...props,
|
@@ -5145,7 +5160,7 @@ var Checkbox = ({
|
|
5145
5160
|
id
|
5146
5161
|
}
|
5147
5162
|
),
|
5148
|
-
(label || helperText) && /* @__PURE__ */
|
5163
|
+
(label || helperText) && /* @__PURE__ */ React44.createElement("div", { className: "hawa-grid hawa-gap-1.5" }, label && /* @__PURE__ */ React44.createElement(
|
5149
5164
|
"label",
|
5150
5165
|
{
|
5151
5166
|
htmlFor: id,
|
@@ -5159,7 +5174,7 @@ var Checkbox = ({
|
|
5159
5174
|
}
|
5160
5175
|
},
|
5161
5176
|
label
|
5162
|
-
), sublabel && /* @__PURE__ */
|
5177
|
+
), sublabel && /* @__PURE__ */ React44.createElement(
|
5163
5178
|
"label",
|
5164
5179
|
{
|
5165
5180
|
htmlFor: id,
|
@@ -5169,7 +5184,7 @@ var Checkbox = ({
|
|
5169
5184
|
)
|
5170
5185
|
},
|
5171
5186
|
sublabel
|
5172
|
-
), helperText && !disabled && /* @__PURE__ */
|
5187
|
+
), helperText && !disabled && /* @__PURE__ */ React44.createElement(
|
5173
5188
|
"label",
|
5174
5189
|
{
|
5175
5190
|
htmlFor: id,
|
@@ -5182,7 +5197,7 @@ var Checkbox = ({
|
|
5182
5197
|
))
|
5183
5198
|
);
|
5184
5199
|
};
|
5185
|
-
var CheckboxElement =
|
5200
|
+
var CheckboxElement = React44.forwardRef(({ radius = "inherit", size = "default", className, ...props }, ref) => {
|
5186
5201
|
let checkboxRadius = {
|
5187
5202
|
none: "hawa-rounded-none",
|
5188
5203
|
inherit: "hawa-rounded-sm",
|
@@ -5204,7 +5219,7 @@ var CheckboxElement = React45.forwardRef(({ radius = "inherit", size = "default"
|
|
5204
5219
|
lg: "1em",
|
5205
5220
|
xl: "1.25em"
|
5206
5221
|
};
|
5207
|
-
return /* @__PURE__ */
|
5222
|
+
return /* @__PURE__ */ React44.createElement(
|
5208
5223
|
CheckboxPrimitive.Root,
|
5209
5224
|
{
|
5210
5225
|
ref,
|
@@ -5216,14 +5231,14 @@ var CheckboxElement = React45.forwardRef(({ radius = "inherit", size = "default"
|
|
5216
5231
|
),
|
5217
5232
|
...props
|
5218
5233
|
},
|
5219
|
-
/* @__PURE__ */
|
5234
|
+
/* @__PURE__ */ React44.createElement(
|
5220
5235
|
CheckboxPrimitive.Indicator,
|
5221
5236
|
{
|
5222
5237
|
className: cn(
|
5223
5238
|
"hawa-flex hawa-items-center hawa-justify-center hawa-text-current"
|
5224
5239
|
)
|
5225
5240
|
},
|
5226
|
-
/* @__PURE__ */
|
5241
|
+
/* @__PURE__ */ React44.createElement(
|
5227
5242
|
"svg",
|
5228
5243
|
{
|
5229
5244
|
"aria-label": "Check Mark",
|
@@ -5234,7 +5249,7 @@ var CheckboxElement = React45.forwardRef(({ radius = "inherit", size = "default"
|
|
5234
5249
|
height: checkboxIndicatorSizes[size],
|
5235
5250
|
width: checkboxIndicatorSizes[size]
|
5236
5251
|
},
|
5237
|
-
/* @__PURE__ */
|
5252
|
+
/* @__PURE__ */ React44.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" })
|
5238
5253
|
),
|
5239
5254
|
" "
|
5240
5255
|
)
|
@@ -5243,9 +5258,9 @@ var CheckboxElement = React45.forwardRef(({ radius = "inherit", size = "default"
|
|
5243
5258
|
CheckboxElement.displayName = CheckboxPrimitive.Root.displayName;
|
5244
5259
|
|
5245
5260
|
// elements/progress/Progress.tsx
|
5246
|
-
var
|
5261
|
+
var React45 = __toESM(require("react"));
|
5247
5262
|
var ProgressPrimitive = __toESM(require("@radix-ui/react-progress"));
|
5248
|
-
var Progress =
|
5263
|
+
var Progress = React45.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ React45.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ React45.createElement(Label2, { ...props.labelProps }, props.label), /* @__PURE__ */ React45.createElement(
|
5249
5264
|
ProgressPrimitive.Root,
|
5250
5265
|
{
|
5251
5266
|
ref,
|
@@ -5255,7 +5270,7 @@ var Progress = React46.forwardRef(({ className, value, ...props }, ref) => /* @_
|
|
5255
5270
|
),
|
5256
5271
|
...props
|
5257
5272
|
},
|
5258
|
-
/* @__PURE__ */
|
5273
|
+
/* @__PURE__ */ React45.createElement(
|
5259
5274
|
ProgressPrimitive.Indicator,
|
5260
5275
|
{
|
5261
5276
|
className: "hawa-h-full hawa-w-full hawa-flex-1 hawa-bg-primary hawa-transition-all",
|
@@ -5266,7 +5281,7 @@ var Progress = React46.forwardRef(({ className, value, ...props }, ref) => /* @_
|
|
5266
5281
|
Progress.displayName = ProgressPrimitive.Root.displayName;
|
5267
5282
|
|
5268
5283
|
// elements/breadcrumb/Breadcrumb.tsx
|
5269
|
-
var
|
5284
|
+
var import_react36 = __toESM(require("react"));
|
5270
5285
|
var Breadcrumb = ({
|
5271
5286
|
breadcrumbLinks,
|
5272
5287
|
separator = ">",
|
@@ -5277,7 +5292,7 @@ var Breadcrumb = ({
|
|
5277
5292
|
small: "hawa-text-sm",
|
5278
5293
|
xs: "hawa-text-xs"
|
5279
5294
|
};
|
5280
|
-
return /* @__PURE__ */
|
5295
|
+
return /* @__PURE__ */ import_react36.default.createElement(
|
5281
5296
|
"div",
|
5282
5297
|
{
|
5283
5298
|
className: cn(
|
@@ -5285,13 +5300,13 @@ var Breadcrumb = ({
|
|
5285
5300
|
textStyles[size]
|
5286
5301
|
)
|
5287
5302
|
},
|
5288
|
-
breadcrumbLinks.map((singleBreadcrumbLink, index) => /* @__PURE__ */
|
5303
|
+
breadcrumbLinks.map((singleBreadcrumbLink, index) => /* @__PURE__ */ import_react36.default.createElement(
|
5289
5304
|
"div",
|
5290
5305
|
{
|
5291
5306
|
key: index,
|
5292
5307
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-2"
|
5293
5308
|
},
|
5294
|
-
/* @__PURE__ */
|
5309
|
+
/* @__PURE__ */ import_react36.default.createElement(
|
5295
5310
|
"a",
|
5296
5311
|
{
|
5297
5312
|
href: singleBreadcrumbLink.href,
|
@@ -5299,49 +5314,49 @@ var Breadcrumb = ({
|
|
5299
5314
|
},
|
5300
5315
|
singleBreadcrumbLink.label
|
5301
5316
|
),
|
5302
|
-
index != breadcrumbLinks.length - 1 ? typeof separator == "string" ? /* @__PURE__ */
|
5317
|
+
index != breadcrumbLinks.length - 1 ? typeof separator == "string" ? /* @__PURE__ */ import_react36.default.createElement("div", null, separator) : /* @__PURE__ */ import_react36.default.createElement("div", null, separator) : null
|
5303
5318
|
))
|
5304
5319
|
);
|
5305
5320
|
};
|
5306
5321
|
|
5307
5322
|
// elements/appStores/AppStores.tsx
|
5308
|
-
var
|
5323
|
+
var import_react37 = __toESM(require("react"));
|
5309
5324
|
var AppStores = (props) => {
|
5310
|
-
return /* @__PURE__ */
|
5325
|
+
return /* @__PURE__ */ import_react37.default.createElement("div", { className: "hawa-flex hawa-justify-center" }, /* @__PURE__ */ import_react37.default.createElement("div", null, props.store === "apple" ? /* @__PURE__ */ import_react37.default.createElement("div", { className: "hawa-mt-3 hawa-flex hawa-h-14 hawa-w-48 hawa-items-center hawa-justify-center hawa-rounded-lg hawa-bg-black hawa-text-white dark:hawa-bg-white dark:hawa-text-black" }, /* @__PURE__ */ import_react37.default.createElement("div", { className: "hawa-mr-3" }, /* @__PURE__ */ import_react37.default.createElement("svg", { viewBox: "0 0 384 512", width: "30" }, /* @__PURE__ */ import_react37.default.createElement(
|
5311
5326
|
"path",
|
5312
5327
|
{
|
5313
5328
|
fill: "currentColor",
|
5314
5329
|
d: "M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"
|
5315
5330
|
}
|
5316
|
-
))), /* @__PURE__ */
|
5331
|
+
))), /* @__PURE__ */ import_react37.default.createElement("div", null, /* @__PURE__ */ import_react37.default.createElement("div", { className: "hawa-text-xs" }, "Download on the"), /* @__PURE__ */ import_react37.default.createElement("div", { className: "hawa--mt-1 hawa-font-sans hawa-text-2xl hawa-font-semibold" }, "App Store"))) : /* @__PURE__ */ import_react37.default.createElement("div", { className: "hawa-mt-3 hawa-flex hawa-h-14 hawa-w-48 hawa-items-center hawa-justify-center hawa-rounded-lg hawa-border hawa-border-black hawa-bg-black hawa-text-white dark:hawa-bg-white dark:hawa-text-black" }, /* @__PURE__ */ import_react37.default.createElement("div", { className: "hawa-mr-3" }, /* @__PURE__ */ import_react37.default.createElement("svg", { viewBox: "30 336.7 120.9 129.2", width: "30" }, /* @__PURE__ */ import_react37.default.createElement(
|
5317
5332
|
"path",
|
5318
5333
|
{
|
5319
5334
|
fill: "#FFD400",
|
5320
5335
|
d: "M119.2,421.2c15.3-8.4,27-14.8,28-15.3c3.2-1.7,6.5-6.2,0-9.7 c-2.1-1.1-13.4-7.3-28-15.3l-20.1,20.2L119.2,421.2z"
|
5321
5336
|
}
|
5322
|
-
), /* @__PURE__ */
|
5337
|
+
), /* @__PURE__ */ import_react37.default.createElement(
|
5323
5338
|
"path",
|
5324
5339
|
{
|
5325
5340
|
fill: "#FF3333",
|
5326
5341
|
d: "M99.1,401.1l-64.2,64.7c1.5,0.2,3.2-0.2,5.2-1.3 c4.2-2.3,48.8-26.7,79.1-43.3L99.1,401.1L99.1,401.1z"
|
5327
5342
|
}
|
5328
|
-
), /* @__PURE__ */
|
5343
|
+
), /* @__PURE__ */ import_react37.default.createElement(
|
5329
5344
|
"path",
|
5330
5345
|
{
|
5331
5346
|
fill: "#48FF48",
|
5332
5347
|
d: "M99.1,401.1l20.1-20.2c0,0-74.6-40.7-79.1-43.1 c-1.7-1-3.6-1.3-5.3-1L99.1,401.1z"
|
5333
5348
|
}
|
5334
|
-
), /* @__PURE__ */
|
5349
|
+
), /* @__PURE__ */ import_react37.default.createElement(
|
5335
5350
|
"path",
|
5336
5351
|
{
|
5337
5352
|
fill: "#3BCCFF",
|
5338
5353
|
d: "M99.1,401.1l-64.3-64.3c-2.6,0.6-4.8,2.9-4.8,7.6 c0,7.5,0,107.5,0,113.8c0,4.3,1.7,7.4,4.9,7.7L99.1,401.1z"
|
5339
5354
|
}
|
5340
|
-
))), /* @__PURE__ */
|
5355
|
+
))), /* @__PURE__ */ import_react37.default.createElement("div", null, /* @__PURE__ */ import_react37.default.createElement("div", { className: "hawa-text-xs" }, "GET IT ON"), /* @__PURE__ */ import_react37.default.createElement("div", { className: "hawa--mt-1 hawa-font-sans hawa-text-xl hawa-font-semibold" }, "Google Play")))));
|
5341
5356
|
};
|
5342
5357
|
|
5343
5358
|
// elements/badge/Badge.tsx
|
5344
|
-
var
|
5359
|
+
var import_react38 = __toESM(require("react"));
|
5345
5360
|
var Badge = ({
|
5346
5361
|
anchor,
|
5347
5362
|
position = "right",
|
@@ -5349,14 +5364,14 @@ var Badge = ({
|
|
5349
5364
|
text,
|
5350
5365
|
className
|
5351
5366
|
}) => {
|
5352
|
-
const [badgePosition, setBadgePosition] = (0,
|
5353
|
-
const indicatorRef = (0,
|
5367
|
+
const [badgePosition, setBadgePosition] = (0, import_react38.useState)(null);
|
5368
|
+
const indicatorRef = (0, import_react38.useRef)(null);
|
5354
5369
|
const sizeStyles2 = {
|
5355
5370
|
small: { top: 4, left: 6, right: 7, classes: "hawa-w-3 hawa-h-3" },
|
5356
5371
|
default: { top: 4, left: 7, right: 5, classes: "hawa-w-3 hawa-h-3" },
|
5357
5372
|
large: { top: 6, left: 12, right: 7, classes: "hawa-w-6 hawa-h-6" }
|
5358
5373
|
};
|
5359
|
-
(0,
|
5374
|
+
(0, import_react38.useEffect)(() => {
|
5360
5375
|
const handlePositioning = () => {
|
5361
5376
|
var _a;
|
5362
5377
|
if (anchor.current && indicatorRef.current) {
|
@@ -5379,7 +5394,7 @@ var Badge = ({
|
|
5379
5394
|
window.removeEventListener("resize", handlePositioning);
|
5380
5395
|
};
|
5381
5396
|
}, [anchor]);
|
5382
|
-
return /* @__PURE__ */
|
5397
|
+
return /* @__PURE__ */ import_react38.default.createElement("div", { ref: indicatorRef, className: cn("hawa-relative", className) }, badgePosition && /* @__PURE__ */ import_react38.default.createElement(
|
5383
5398
|
"div",
|
5384
5399
|
{
|
5385
5400
|
style: {
|
@@ -5404,8 +5419,8 @@ var BadgedComponent = ({
|
|
5404
5419
|
size,
|
5405
5420
|
text
|
5406
5421
|
}) => {
|
5407
|
-
const ref = (0,
|
5408
|
-
return /* @__PURE__ */
|
5422
|
+
const ref = (0, import_react38.useRef)(null);
|
5423
|
+
return /* @__PURE__ */ import_react38.default.createElement("div", { className: cn("hawa-relative hawa-w-fit", className), ref }, !hideBadge && /* @__PURE__ */ import_react38.default.createElement(
|
5409
5424
|
Badge,
|
5410
5425
|
{
|
5411
5426
|
size,
|
@@ -5418,7 +5433,7 @@ var BadgedComponent = ({
|
|
5418
5433
|
};
|
5419
5434
|
|
5420
5435
|
// elements/phoneInput/PhoneInput.tsx
|
5421
|
-
var
|
5436
|
+
var import_react39 = __toESM(require("react"));
|
5422
5437
|
|
5423
5438
|
// countries.ts
|
5424
5439
|
var countries = [
|
@@ -7120,9 +7135,9 @@ var PhoneInput = ({
|
|
7120
7135
|
countryCodes,
|
7121
7136
|
...props
|
7122
7137
|
}) => {
|
7123
|
-
const [phoneNumber, setPhoneNumber] = (0,
|
7124
|
-
const [countryCode, setCountryCode] = (0,
|
7125
|
-
const inputRef = (0,
|
7138
|
+
const [phoneNumber, setPhoneNumber] = (0, import_react39.useState)("");
|
7139
|
+
const [countryCode, setCountryCode] = (0, import_react39.useState)(props.preferredCountry);
|
7140
|
+
const inputRef = (0, import_react39.useRef)(null);
|
7126
7141
|
const handleInputChange = (e) => {
|
7127
7142
|
console.log("test e ", e.target.value);
|
7128
7143
|
const validChars = /^[0-9-()]+$/;
|
@@ -7136,7 +7151,7 @@ var PhoneInput = ({
|
|
7136
7151
|
console.log("handleChange prop was not provided in <PhoneInput/>");
|
7137
7152
|
}
|
7138
7153
|
};
|
7139
|
-
return /* @__PURE__ */
|
7154
|
+
return /* @__PURE__ */ import_react39.default.createElement("div", { className: "hawa-flex hawa-h-fit hawa-w-full hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ import_react39.default.createElement(Label2, { ...labelProps }, props.label), /* @__PURE__ */ import_react39.default.createElement("div", { dir: "ltr", className: "hawa-flex hawa-w-full hawa-flex-row" }, /* @__PURE__ */ import_react39.default.createElement(
|
7140
7155
|
Select,
|
7141
7156
|
{
|
7142
7157
|
phoneCode: true,
|
@@ -7152,7 +7167,7 @@ var PhoneInput = ({
|
|
7152
7167
|
value: countryCode == null ? void 0 : countryCode.label,
|
7153
7168
|
defaultValue: props.preferredCountry
|
7154
7169
|
}
|
7155
|
-
), /* @__PURE__ */
|
7170
|
+
), /* @__PURE__ */ import_react39.default.createElement("div", { className: "hawa-relative hawa-flex hawa-h-fit hawa-w-full hawa-flex-col hawa-justify-center hawa-gap-0" }, /* @__PURE__ */ import_react39.default.createElement(
|
7156
7171
|
"input",
|
7157
7172
|
{
|
7158
7173
|
type: "tel",
|
@@ -7166,26 +7181,26 @@ var PhoneInput = ({
|
|
7166
7181
|
),
|
7167
7182
|
...inputProps
|
7168
7183
|
}
|
7169
|
-
))), /* @__PURE__ */
|
7184
|
+
))), /* @__PURE__ */ import_react39.default.createElement(HelperText, { helperText: props.helperText }));
|
7170
7185
|
};
|
7171
7186
|
|
7172
7187
|
// elements/pinInput/PinInput.tsx
|
7173
|
-
var
|
7188
|
+
var React50 = __toESM(require("react"));
|
7174
7189
|
var import_input_otp = require("input-otp");
|
7175
7190
|
|
7176
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
7177
|
-
var
|
7191
|
+
// ../../node_modules/.pnpm/lucide-react@0.381.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
|
7192
|
+
var import_react41 = require("react");
|
7178
7193
|
|
7179
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
7194
|
+
// ../../node_modules/.pnpm/lucide-react@0.381.0_react@18.3.1/node_modules/lucide-react/dist/esm/shared/src/utils.js
|
7180
7195
|
var toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
7181
7196
|
var mergeClasses = (...classes) => classes.filter((className, index, array) => {
|
7182
7197
|
return Boolean(className) && array.indexOf(className) === index;
|
7183
7198
|
}).join(" ");
|
7184
7199
|
|
7185
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
7186
|
-
var
|
7200
|
+
// ../../node_modules/.pnpm/lucide-react@0.381.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js
|
7201
|
+
var import_react40 = require("react");
|
7187
7202
|
|
7188
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
7203
|
+
// ../../node_modules/.pnpm/lucide-react@0.381.0_react@18.3.1/node_modules/lucide-react/dist/esm/defaultAttributes.js
|
7189
7204
|
var defaultAttributes = {
|
7190
7205
|
xmlns: "http://www.w3.org/2000/svg",
|
7191
7206
|
width: 24,
|
@@ -7198,8 +7213,8 @@ var defaultAttributes = {
|
|
7198
7213
|
strokeLinejoin: "round"
|
7199
7214
|
};
|
7200
7215
|
|
7201
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
7202
|
-
var Icon = (0,
|
7216
|
+
// ../../node_modules/.pnpm/lucide-react@0.381.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js
|
7217
|
+
var Icon = (0, import_react40.forwardRef)(
|
7203
7218
|
({
|
7204
7219
|
color = "currentColor",
|
7205
7220
|
size = 24,
|
@@ -7210,7 +7225,7 @@ var Icon = (0, import_react38.forwardRef)(
|
|
7210
7225
|
iconNode,
|
7211
7226
|
...rest
|
7212
7227
|
}, ref) => {
|
7213
|
-
return (0,
|
7228
|
+
return (0, import_react40.createElement)(
|
7214
7229
|
"svg",
|
7215
7230
|
{
|
7216
7231
|
ref,
|
@@ -7223,17 +7238,17 @@ var Icon = (0, import_react38.forwardRef)(
|
|
7223
7238
|
...rest
|
7224
7239
|
},
|
7225
7240
|
[
|
7226
|
-
...iconNode.map(([tag, attrs]) => (0,
|
7241
|
+
...iconNode.map(([tag, attrs]) => (0, import_react40.createElement)(tag, attrs)),
|
7227
7242
|
...Array.isArray(children) ? children : [children]
|
7228
7243
|
]
|
7229
7244
|
);
|
7230
7245
|
}
|
7231
7246
|
);
|
7232
7247
|
|
7233
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
7248
|
+
// ../../node_modules/.pnpm/lucide-react@0.381.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
|
7234
7249
|
var createLucideIcon = (iconName, iconNode) => {
|
7235
|
-
const Component = (0,
|
7236
|
-
({ className, ...props }, ref) => (0,
|
7250
|
+
const Component = (0, import_react41.forwardRef)(
|
7251
|
+
({ className, ...props }, ref) => (0, import_react41.createElement)(Icon, {
|
7237
7252
|
ref,
|
7238
7253
|
iconNode,
|
7239
7254
|
className: mergeClasses(`lucide-${toKebabCase(iconName)}`, className),
|
@@ -7244,13 +7259,13 @@ var createLucideIcon = (iconName, iconNode) => {
|
|
7244
7259
|
return Component;
|
7245
7260
|
};
|
7246
7261
|
|
7247
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
7262
|
+
// ../../node_modules/.pnpm/lucide-react@0.381.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/dot.js
|
7248
7263
|
var Dot = createLucideIcon("Dot", [
|
7249
7264
|
["circle", { cx: "12.1", cy: "12.1", r: "1", key: "18d7e5" }]
|
7250
7265
|
]);
|
7251
7266
|
|
7252
7267
|
// elements/pinInput/PinInput.tsx
|
7253
|
-
var PinInputRoot =
|
7268
|
+
var PinInputRoot = React50.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ React50.createElement(
|
7254
7269
|
import_input_otp.OTPInput,
|
7255
7270
|
{
|
7256
7271
|
ref,
|
@@ -7263,7 +7278,7 @@ var PinInputRoot = React51.forwardRef(({ className, containerClassName, ...props
|
|
7263
7278
|
}
|
7264
7279
|
));
|
7265
7280
|
PinInputRoot.displayName = "PinInputRoot";
|
7266
|
-
var PinInputGroup =
|
7281
|
+
var PinInputGroup = React50.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React50.createElement(
|
7267
7282
|
"div",
|
7268
7283
|
{
|
7269
7284
|
ref,
|
@@ -7272,10 +7287,10 @@ var PinInputGroup = React51.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
7272
7287
|
}
|
7273
7288
|
));
|
7274
7289
|
PinInputGroup.displayName = "PinInputGroup";
|
7275
|
-
var PinInputSlot =
|
7276
|
-
const pinInputContext =
|
7290
|
+
var PinInputSlot = React50.forwardRef(({ index, className, ...props }, ref) => {
|
7291
|
+
const pinInputContext = React50.useContext(import_input_otp.OTPInputContext);
|
7277
7292
|
const { char, hasFakeCaret, isActive } = pinInputContext.slots[index];
|
7278
|
-
return /* @__PURE__ */
|
7293
|
+
return /* @__PURE__ */ React50.createElement(
|
7279
7294
|
"div",
|
7280
7295
|
{
|
7281
7296
|
ref,
|
@@ -7287,11 +7302,11 @@ var PinInputSlot = React51.forwardRef(({ index, className, ...props }, ref) => {
|
|
7287
7302
|
...props
|
7288
7303
|
},
|
7289
7304
|
char,
|
7290
|
-
hasFakeCaret && /* @__PURE__ */
|
7305
|
+
hasFakeCaret && /* @__PURE__ */ React50.createElement("div", { className: "hawa-pointer-events-none hawa-absolute hawa-inset-0 hawa-flex hawa-items-center hawa-justify-center" }, /* @__PURE__ */ React50.createElement("div", { className: "hawa-animate-caret-blink hawa-bg-foreground hawa-h-4 hawa-w-px hawa-duration-1000" }))
|
7291
7306
|
);
|
7292
7307
|
});
|
7293
7308
|
PinInputSlot.displayName = "PinInputSlot";
|
7294
|
-
var PinInputSeperator =
|
7309
|
+
var PinInputSeperator = React50.forwardRef(({ ...props }, ref) => /* @__PURE__ */ React50.createElement("div", { ref, role: "separator", ...props }, /* @__PURE__ */ React50.createElement(Dot, null)));
|
7295
7310
|
PinInputSeperator.displayName = "PinInputSeperator";
|
7296
7311
|
var PinInput = ({
|
7297
7312
|
separatorPosition = 0,
|
@@ -7301,27 +7316,27 @@ var PinInput = ({
|
|
7301
7316
|
const clampedSeparatorPosition = Math.min(separatorPosition, maxLength);
|
7302
7317
|
const firstGroupLength = clampedSeparatorPosition > 0 ? clampedSeparatorPosition : 0;
|
7303
7318
|
const secondGroupLength = maxLength - firstGroupLength;
|
7304
|
-
return /* @__PURE__ */
|
7319
|
+
return /* @__PURE__ */ React50.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, /* @__PURE__ */ React50.createElement(PinInputRoot, { ...props }, firstGroupLength > 0 && /* @__PURE__ */ React50.createElement(PinInputGroup, { className: "hawa-w-full" }, [...Array(firstGroupLength)].map((_, index) => /* @__PURE__ */ React50.createElement(PinInputSlot, { key: index, index, className: "hawa-w-full" }))), separatorPosition > 0 && separatorPosition < props.maxLength && /* @__PURE__ */ React50.createElement(PinInputSeperator, null), secondGroupLength > 0 && /* @__PURE__ */ React50.createElement(PinInputGroup, { className: "hawa-w-full" }, [...Array(secondGroupLength)].map((_, index) => /* @__PURE__ */ React50.createElement(
|
7305
7320
|
PinInputSlot,
|
7306
7321
|
{
|
7307
7322
|
key: index + firstGroupLength,
|
7308
7323
|
index: index + firstGroupLength,
|
7309
7324
|
className: "hawa-w-full"
|
7310
7325
|
}
|
7311
|
-
)))), /* @__PURE__ */
|
7326
|
+
)))), /* @__PURE__ */ React50.createElement(HelperText, { helperText: props.helperText }));
|
7312
7327
|
};
|
7313
7328
|
|
7314
7329
|
// elements/stopPropagationWrapper/StopPropagationWrapper.tsx
|
7315
|
-
var
|
7330
|
+
var import_react42 = __toESM(require("react"));
|
7316
7331
|
var StopPropagationWrapper = (props) => {
|
7317
7332
|
const handleClick = (e) => {
|
7318
7333
|
e.stopPropagation();
|
7319
7334
|
};
|
7320
|
-
return /* @__PURE__ */
|
7335
|
+
return /* @__PURE__ */ import_react42.default.createElement("div", { onClick: handleClick }, props.children);
|
7321
7336
|
};
|
7322
7337
|
|
7323
7338
|
// elements/colorPicker/ColorPicker.tsx
|
7324
|
-
var
|
7339
|
+
var import_react43 = __toESM(require("react"));
|
7325
7340
|
var ColorPicker = ({
|
7326
7341
|
containerProps,
|
7327
7342
|
colorPickerProps,
|
@@ -7332,8 +7347,8 @@ var ColorPicker = ({
|
|
7332
7347
|
preview = false,
|
7333
7348
|
...props
|
7334
7349
|
}) => {
|
7335
|
-
const [selectedColor, setSelectedColor] = (0,
|
7336
|
-
(0,
|
7350
|
+
const [selectedColor, setSelectedColor] = (0, import_react43.useState)(props.color);
|
7351
|
+
(0, import_react43.useEffect)(() => {
|
7337
7352
|
if (selectedColor && selectedColor[0] !== "#") {
|
7338
7353
|
setSelectedColor(`#${selectedColor}`);
|
7339
7354
|
}
|
@@ -7350,13 +7365,13 @@ var ColorPicker = ({
|
|
7350
7365
|
props.handleChange(e);
|
7351
7366
|
}
|
7352
7367
|
};
|
7353
|
-
return /* @__PURE__ */
|
7368
|
+
return /* @__PURE__ */ import_react43.default.createElement("div", { className: "hawa-flex hawa-w-fit hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ import_react43.default.createElement(Label2, { ...labelProps }, props.label), isLoading ? /* @__PURE__ */ import_react43.default.createElement(Skeleton, { style: { height: 40, width: 148 } }) : /* @__PURE__ */ import_react43.default.createElement("div", { dir: "ltr", className: "hawa-flex hawa-w-full hawa-flex-row" }, /* @__PURE__ */ import_react43.default.createElement(
|
7354
7369
|
"div",
|
7355
7370
|
{
|
7356
7371
|
style: { height: 40, backgroundColor: selectedColor },
|
7357
7372
|
className: "hawa-rounded-bl-lg hawa-rounded-tl-lg hawa-border"
|
7358
7373
|
},
|
7359
|
-
/* @__PURE__ */
|
7374
|
+
/* @__PURE__ */ import_react43.default.createElement(
|
7360
7375
|
"input",
|
7361
7376
|
{
|
7362
7377
|
disabled: preview,
|
@@ -7375,7 +7390,7 @@ var ColorPicker = ({
|
|
7375
7390
|
...colorPickerProps
|
7376
7391
|
}
|
7377
7392
|
)
|
7378
|
-
), /* @__PURE__ */
|
7393
|
+
), /* @__PURE__ */ import_react43.default.createElement("div", { className: "hawa-relative hawa-flex hawa-max-h-fit hawa-w-full hawa-flex-col hawa-justify-center hawa-gap-0" }, /* @__PURE__ */ import_react43.default.createElement(
|
7379
7394
|
"input",
|
7380
7395
|
{
|
7381
7396
|
disabled: preview,
|
@@ -7394,11 +7409,11 @@ var ColorPicker = ({
|
|
7394
7409
|
},
|
7395
7410
|
...textInputProps
|
7396
7411
|
}
|
7397
|
-
))), !forceHideHelperText && /* @__PURE__ */
|
7412
|
+
))), !forceHideHelperText && /* @__PURE__ */ import_react43.default.createElement(HelperText, { helperText: props.helperText }));
|
7398
7413
|
};
|
7399
7414
|
|
7400
7415
|
// elements/progressCircle/ProgressCircle.tsx
|
7401
|
-
var
|
7416
|
+
var import_react44 = __toESM(require("react"));
|
7402
7417
|
var size2config = {
|
7403
7418
|
xs: { radius: 15, strokeWidth: 3 },
|
7404
7419
|
sm: { radius: 19, strokeWidth: 4 },
|
@@ -7415,7 +7430,7 @@ function getLimitedValue(input) {
|
|
7415
7430
|
return input;
|
7416
7431
|
}
|
7417
7432
|
}
|
7418
|
-
var ProgressCircle =
|
7433
|
+
var ProgressCircle = import_react44.default.forwardRef((props, ref) => {
|
7419
7434
|
const {
|
7420
7435
|
value: inputValue,
|
7421
7436
|
size = "md",
|
@@ -7435,7 +7450,7 @@ var ProgressCircle = import_react42.default.forwardRef((props, ref) => {
|
|
7435
7450
|
const circumference = normalizedRadius * 2 * Math.PI;
|
7436
7451
|
const strokeDashoffset = value / 100 * circumference;
|
7437
7452
|
const offset = circumference - strokeDashoffset;
|
7438
|
-
return /* @__PURE__ */
|
7453
|
+
return /* @__PURE__ */ import_react44.default.createElement(import_react44.default.Fragment, null, /* @__PURE__ */ import_react44.default.createElement(
|
7439
7454
|
"div",
|
7440
7455
|
{
|
7441
7456
|
ref,
|
@@ -7444,7 +7459,7 @@ var ProgressCircle = import_react42.default.forwardRef((props, ref) => {
|
|
7444
7459
|
className
|
7445
7460
|
)
|
7446
7461
|
},
|
7447
|
-
/* @__PURE__ */
|
7462
|
+
/* @__PURE__ */ import_react44.default.createElement(
|
7448
7463
|
"svg",
|
7449
7464
|
{
|
7450
7465
|
width: radius * 2,
|
@@ -7452,7 +7467,7 @@ var ProgressCircle = import_react42.default.forwardRef((props, ref) => {
|
|
7452
7467
|
viewBox: `0 0 ${radius * 2} ${radius * 2}`,
|
7453
7468
|
className: "hawa-rotate-180 hawa-transform"
|
7454
7469
|
},
|
7455
|
-
/* @__PURE__ */
|
7470
|
+
/* @__PURE__ */ import_react44.default.createElement(
|
7456
7471
|
"circle",
|
7457
7472
|
{
|
7458
7473
|
r: normalizedRadius,
|
@@ -7468,7 +7483,7 @@ var ProgressCircle = import_react42.default.forwardRef((props, ref) => {
|
|
7468
7483
|
)
|
7469
7484
|
}
|
7470
7485
|
),
|
7471
|
-
value > 0 ? /* @__PURE__ */
|
7486
|
+
value > 0 ? /* @__PURE__ */ import_react44.default.createElement(
|
7472
7487
|
"circle",
|
7473
7488
|
{
|
7474
7489
|
r: normalizedRadius,
|
@@ -7488,24 +7503,24 @@ var ProgressCircle = import_react42.default.forwardRef((props, ref) => {
|
|
7488
7503
|
}
|
7489
7504
|
) : null
|
7490
7505
|
),
|
7491
|
-
/* @__PURE__ */
|
7506
|
+
/* @__PURE__ */ import_react44.default.createElement("div", { className: cn("hawa-absolute hawa-flex") }, children)
|
7492
7507
|
));
|
7493
7508
|
});
|
7494
7509
|
ProgressCircle.displayName = "ProgressCircle";
|
7495
7510
|
|
7496
7511
|
// elements/pagination/Pagination.tsx
|
7497
|
-
var
|
7512
|
+
var import_react45 = __toESM(require("react"));
|
7498
7513
|
var import_react_headless_pagination = require("react-headless-pagination");
|
7499
7514
|
var Pagination = ({
|
7500
7515
|
direction,
|
7501
7516
|
totalPages,
|
7502
7517
|
currentPage
|
7503
7518
|
}) => {
|
7504
|
-
const [page, setPage] =
|
7519
|
+
const [page, setPage] = import_react45.default.useState(currentPage || 0);
|
7505
7520
|
const handlePageChange = (page2) => {
|
7506
7521
|
setPage(page2);
|
7507
7522
|
};
|
7508
|
-
return /* @__PURE__ */
|
7523
|
+
return /* @__PURE__ */ import_react45.default.createElement(
|
7509
7524
|
import_react_headless_pagination.Pagination,
|
7510
7525
|
{
|
7511
7526
|
totalPages,
|
@@ -7517,10 +7532,10 @@ var Pagination = ({
|
|
7517
7532
|
truncableText: "...",
|
7518
7533
|
truncableClassName: "hawa-w-10 hawa-px-0.5 hawa-text-center"
|
7519
7534
|
},
|
7520
|
-
/* @__PURE__ */
|
7535
|
+
/* @__PURE__ */ import_react45.default.createElement(
|
7521
7536
|
import_react_headless_pagination.Pagination.PrevButton,
|
7522
7537
|
{
|
7523
|
-
as: /* @__PURE__ */
|
7538
|
+
as: /* @__PURE__ */ import_react45.default.createElement(
|
7524
7539
|
"button",
|
7525
7540
|
{
|
7526
7541
|
"aria-label": "Previous Table Page",
|
@@ -7530,7 +7545,7 @@ var Pagination = ({
|
|
7530
7545
|
),
|
7531
7546
|
style: { minWidth: 36 }
|
7532
7547
|
},
|
7533
|
-
/* @__PURE__ */
|
7548
|
+
/* @__PURE__ */ import_react45.default.createElement(
|
7534
7549
|
"svg",
|
7535
7550
|
{
|
7536
7551
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -7543,7 +7558,7 @@ var Pagination = ({
|
|
7543
7558
|
strokeLinecap: "round",
|
7544
7559
|
strokeLinejoin: "round"
|
7545
7560
|
},
|
7546
|
-
/* @__PURE__ */
|
7561
|
+
/* @__PURE__ */ import_react45.default.createElement("path", { d: "m15 18-6-6 6-6" })
|
7547
7562
|
)
|
7548
7563
|
),
|
7549
7564
|
className: cn(
|
@@ -7556,17 +7571,17 @@ var Pagination = ({
|
|
7556
7571
|
},
|
7557
7572
|
"Previous"
|
7558
7573
|
),
|
7559
|
-
/* @__PURE__ */
|
7574
|
+
/* @__PURE__ */ import_react45.default.createElement("nav", { className: "hawa-flex hawa-flex-grow hawa-justify-center" }, /* @__PURE__ */ import_react45.default.createElement("ul", { className: "hawa-flex hawa-items-center hawa-gap-1" }, /* @__PURE__ */ import_react45.default.createElement(
|
7560
7575
|
import_react_headless_pagination.Pagination.PageButton,
|
7561
7576
|
{
|
7562
7577
|
className: "hawa-tap-highlight-transparent hawa-text-default-foreground data-[focus-visible=true]:hawa-outline-focus data-[disabled=true]:hawa-text-default-300 hawa-min-w-9 hawa-text-small hawa-box-border hawa-flex hawa-h-9 hawa-w-9 hawa-cursor-pointer hawa-touch-none hawa-select-none hawa-flex-wrap hawa-items-center hawa-justify-center hawa-truncate hawa-rounded hawa-border hawa-bg-card hawa-outline-none hawa-transition-all hover:hawa-scale-[1.1] data-[disabled=true]:hawa-pointer-events-none data-[focus-visible=true]:hawa-z-10 data-[pressed=true]:hawa-scale-[0.97] data-[focus-visible=true]:hawa-outline-2 data-[focus-visible=true]:hawa-outline-offset-2",
|
7563
7578
|
activeClassName: "hawa-bg-primary hawa-text-primary-foreground hawa-transition-all"
|
7564
7579
|
}
|
7565
7580
|
))),
|
7566
|
-
/* @__PURE__ */
|
7581
|
+
/* @__PURE__ */ import_react45.default.createElement(
|
7567
7582
|
import_react_headless_pagination.Pagination.NextButton,
|
7568
7583
|
{
|
7569
|
-
as: /* @__PURE__ */
|
7584
|
+
as: /* @__PURE__ */ import_react45.default.createElement(
|
7570
7585
|
"button",
|
7571
7586
|
{
|
7572
7587
|
"aria-label": "Previous Table Page",
|
@@ -7576,7 +7591,7 @@ var Pagination = ({
|
|
7576
7591
|
),
|
7577
7592
|
style: { minWidth: 36 }
|
7578
7593
|
},
|
7579
|
-
/* @__PURE__ */
|
7594
|
+
/* @__PURE__ */ import_react45.default.createElement(
|
7580
7595
|
"svg",
|
7581
7596
|
{
|
7582
7597
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -7589,7 +7604,7 @@ var Pagination = ({
|
|
7589
7604
|
strokeLinecap: "round",
|
7590
7605
|
strokeLinejoin: "round"
|
7591
7606
|
},
|
7592
|
-
/* @__PURE__ */
|
7607
|
+
/* @__PURE__ */ import_react45.default.createElement("path", { d: "m15 18-6-6 6-6" })
|
7593
7608
|
)
|
7594
7609
|
),
|
7595
7610
|
className: cn(
|
@@ -7606,14 +7621,14 @@ var Pagination = ({
|
|
7606
7621
|
};
|
7607
7622
|
|
7608
7623
|
// elements/passwordInput/PasswordInput.tsx
|
7609
|
-
var
|
7624
|
+
var import_react49 = __toESM(require("react"));
|
7610
7625
|
|
7611
7626
|
// icons/Emojis.tsx
|
7612
|
-
var
|
7627
|
+
var import_react46 = __toESM(require("react"));
|
7613
7628
|
|
7614
7629
|
// icons/InputIcons.tsx
|
7615
|
-
var
|
7616
|
-
var EyeIcon = (props) => /* @__PURE__ */
|
7630
|
+
var import_react47 = __toESM(require("react"));
|
7631
|
+
var EyeIcon = (props) => /* @__PURE__ */ import_react47.default.createElement("div", { className: cn("hawa-h-5 hawa-w-5", props.className) }, /* @__PURE__ */ import_react47.default.createElement(
|
7617
7632
|
"svg",
|
7618
7633
|
{
|
7619
7634
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -7624,10 +7639,10 @@ var EyeIcon = (props) => /* @__PURE__ */ import_react45.default.createElement("d
|
|
7624
7639
|
strokeLinecap: "round",
|
7625
7640
|
strokeLinejoin: "round"
|
7626
7641
|
},
|
7627
|
-
/* @__PURE__ */
|
7628
|
-
/* @__PURE__ */
|
7642
|
+
/* @__PURE__ */ import_react47.default.createElement("path", { d: "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z" }),
|
7643
|
+
/* @__PURE__ */ import_react47.default.createElement("circle", { cx: "12", cy: "12", r: "3" })
|
7629
7644
|
));
|
7630
|
-
var HiddenEyeIcon = (props) => /* @__PURE__ */
|
7645
|
+
var HiddenEyeIcon = (props) => /* @__PURE__ */ import_react47.default.createElement("div", { className: cn("hawa-h-5 hawa-w-5", props.className) }, /* @__PURE__ */ import_react47.default.createElement(
|
7631
7646
|
"svg",
|
7632
7647
|
{
|
7633
7648
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -7638,20 +7653,20 @@ var HiddenEyeIcon = (props) => /* @__PURE__ */ import_react45.default.createElem
|
|
7638
7653
|
strokeLinecap: "round",
|
7639
7654
|
strokeLinejoin: "round"
|
7640
7655
|
},
|
7641
|
-
/* @__PURE__ */
|
7642
|
-
/* @__PURE__ */
|
7643
|
-
/* @__PURE__ */
|
7644
|
-
/* @__PURE__ */
|
7656
|
+
/* @__PURE__ */ import_react47.default.createElement("path", { d: "M9.88 9.88a3 3 0 1 0 4.24 4.24" }),
|
7657
|
+
/* @__PURE__ */ import_react47.default.createElement("path", { d: "M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68" }),
|
7658
|
+
/* @__PURE__ */ import_react47.default.createElement("path", { d: "M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61" }),
|
7659
|
+
/* @__PURE__ */ import_react47.default.createElement("line", { x1: "2", x2: "22", y1: "2", y2: "22" })
|
7645
7660
|
));
|
7646
7661
|
|
7647
7662
|
// icons/CommonIcons.tsx
|
7648
|
-
var
|
7663
|
+
var import_react48 = __toESM(require("react"));
|
7649
7664
|
var CheckMark = ({ size = "default", className }) => {
|
7650
7665
|
let sizeStyles2 = {
|
7651
7666
|
default: "hawa-h-5 hawa-w-5",
|
7652
7667
|
sm: "hawa-h-3 hawa-w-3"
|
7653
7668
|
};
|
7654
|
-
return /* @__PURE__ */
|
7669
|
+
return /* @__PURE__ */ import_react48.default.createElement(
|
7655
7670
|
"svg",
|
7656
7671
|
{
|
7657
7672
|
className: cn(sizeStyles2[size], className),
|
@@ -7659,7 +7674,7 @@ var CheckMark = ({ size = "default", className }) => {
|
|
7659
7674
|
fill: "currentColor",
|
7660
7675
|
viewBox: "0 0 20 20"
|
7661
7676
|
},
|
7662
|
-
/* @__PURE__ */
|
7677
|
+
/* @__PURE__ */ import_react48.default.createElement(
|
7663
7678
|
"path",
|
7664
7679
|
{
|
7665
7680
|
fillRule: "evenodd",
|
@@ -7674,7 +7689,7 @@ var UncheckMark = ({ size = "default", className }) => {
|
|
7674
7689
|
default: "hawa-h-5 hawa-w-5",
|
7675
7690
|
sm: "hawa-h-3 hawa-w-3"
|
7676
7691
|
};
|
7677
|
-
return /* @__PURE__ */
|
7692
|
+
return /* @__PURE__ */ import_react48.default.createElement(
|
7678
7693
|
"svg",
|
7679
7694
|
{
|
7680
7695
|
className: cn(sizeStyles2[size], className),
|
@@ -7682,7 +7697,7 @@ var UncheckMark = ({ size = "default", className }) => {
|
|
7682
7697
|
fill: "currentColor",
|
7683
7698
|
viewBox: "0 0 20 20"
|
7684
7699
|
},
|
7685
|
-
/* @__PURE__ */
|
7700
|
+
/* @__PURE__ */ import_react48.default.createElement(
|
7686
7701
|
"path",
|
7687
7702
|
{
|
7688
7703
|
fillRule: "evenodd",
|
@@ -7720,7 +7735,7 @@ var PasswordStrengthIndicator = ({ strength }) => {
|
|
7720
7735
|
strong: "80%",
|
7721
7736
|
"very-strong": "100%"
|
7722
7737
|
}[currentStrengthLevel];
|
7723
|
-
return /* @__PURE__ */
|
7738
|
+
return /* @__PURE__ */ import_react49.default.createElement("div", { className: "hawa-mt-0.5 hawa-h-2 hawa-w-full hawa-rounded hawa-bg-gray-200" }, /* @__PURE__ */ import_react49.default.createElement(
|
7724
7739
|
"div",
|
7725
7740
|
{
|
7726
7741
|
className: `${strengthColors[currentStrengthLevel]} hawa-h-full hawa-rounded hawa-transition-all hawa-duration-300`,
|
@@ -7732,16 +7747,16 @@ var PasswordInput = ({
|
|
7732
7747
|
hidePopover,
|
7733
7748
|
...props
|
7734
7749
|
}) => {
|
7735
|
-
const [inputValue, setInputValue] = (0,
|
7736
|
-
const [isInputFocused, setIsInputFocused] = (0,
|
7737
|
-
const [currentStr, setCurrentStr] = (0,
|
7738
|
-
const [passwordVisible, setPasswordVisible] = (0,
|
7739
|
-
const [lengthCriteriaMet, setLengthCriteriaMet] = (0,
|
7740
|
-
const [numberCriteriaMet, setNumberCriteriaMet] = (0,
|
7741
|
-
const [specialCharCriteriaMet, setSpecialCharCriteriaMet] = (0,
|
7742
|
-
const [lowercaseCriteriaMet, setLowercaseCriteriaMet] = (0,
|
7743
|
-
const [uppercaseCriteriaMet, setUppercaseCriteriaMet] = (0,
|
7744
|
-
(0,
|
7750
|
+
const [inputValue, setInputValue] = (0, import_react49.useState)("");
|
7751
|
+
const [isInputFocused, setIsInputFocused] = (0, import_react49.useState)(false);
|
7752
|
+
const [currentStr, setCurrentStr] = (0, import_react49.useState)(0);
|
7753
|
+
const [passwordVisible, setPasswordVisible] = (0, import_react49.useState)(false);
|
7754
|
+
const [lengthCriteriaMet, setLengthCriteriaMet] = (0, import_react49.useState)(false);
|
7755
|
+
const [numberCriteriaMet, setNumberCriteriaMet] = (0, import_react49.useState)(false);
|
7756
|
+
const [specialCharCriteriaMet, setSpecialCharCriteriaMet] = (0, import_react49.useState)(false);
|
7757
|
+
const [lowercaseCriteriaMet, setLowercaseCriteriaMet] = (0, import_react49.useState)(false);
|
7758
|
+
const [uppercaseCriteriaMet, setUppercaseCriteriaMet] = (0, import_react49.useState)(false);
|
7759
|
+
(0, import_react49.useEffect)(() => {
|
7745
7760
|
const calculateStrength = () => {
|
7746
7761
|
let strengthScore = 0;
|
7747
7762
|
if (lengthCriteriaMet)
|
@@ -7780,7 +7795,7 @@ var PasswordInput = ({
|
|
7780
7795
|
setIsInputFocused(false);
|
7781
7796
|
};
|
7782
7797
|
const getCriteriaClass = (isMet) => isMet ? "hawa-flex hawa-flex-row hawa-gap-2 hawa-text-sm hawa-items-center hawa-text-green-500" : "hawa-flex hawa-flex-row hawa-gap-2 hawa-text-sm hawa-items-center hawa-text-red-600";
|
7783
|
-
return /* @__PURE__ */
|
7798
|
+
return /* @__PURE__ */ import_react49.default.createElement("div", null, /* @__PURE__ */ import_react49.default.createElement(
|
7784
7799
|
Popover,
|
7785
7800
|
{
|
7786
7801
|
width: "trigger",
|
@@ -7789,7 +7804,7 @@ var PasswordInput = ({
|
|
7789
7804
|
onOpenChange: setIsInputFocused,
|
7790
7805
|
triggerProps: { asChild: true },
|
7791
7806
|
contentProps: { onOpenAutoFocus: (e) => e.preventDefault() },
|
7792
|
-
trigger: /* @__PURE__ */
|
7807
|
+
trigger: /* @__PURE__ */ import_react49.default.createElement(
|
7793
7808
|
"div",
|
7794
7809
|
{
|
7795
7810
|
onClick: (e) => {
|
@@ -7799,7 +7814,7 @@ var PasswordInput = ({
|
|
7799
7814
|
}
|
7800
7815
|
}
|
7801
7816
|
},
|
7802
|
-
/* @__PURE__ */
|
7817
|
+
/* @__PURE__ */ import_react49.default.createElement(
|
7803
7818
|
Input,
|
7804
7819
|
{
|
7805
7820
|
width: "full",
|
@@ -7809,27 +7824,27 @@ var PasswordInput = ({
|
|
7809
7824
|
onFocus: handleInputFocus,
|
7810
7825
|
onBlur: handleInputBlur,
|
7811
7826
|
type: passwordVisible ? "text" : "password",
|
7812
|
-
endIcon: /* @__PURE__ */
|
7827
|
+
endIcon: /* @__PURE__ */ import_react49.default.createElement(
|
7813
7828
|
"div",
|
7814
7829
|
{
|
7815
7830
|
className: "hawa-cursor-pointer",
|
7816
7831
|
onClick: () => setPasswordVisible(!passwordVisible)
|
7817
7832
|
},
|
7818
|
-
passwordVisible ? /* @__PURE__ */
|
7833
|
+
passwordVisible ? /* @__PURE__ */ import_react49.default.createElement(EyeIcon, { className: "hawa-text-gray-500" }) : /* @__PURE__ */ import_react49.default.createElement(HiddenEyeIcon, { className: "hawa-text-gray-500" }),
|
7819
7834
|
" "
|
7820
7835
|
)
|
7821
7836
|
}
|
7822
7837
|
)
|
7823
7838
|
)
|
7824
7839
|
},
|
7825
|
-
/* @__PURE__ */
|
7826
|
-
), /* @__PURE__ */
|
7840
|
+
/* @__PURE__ */ import_react49.default.createElement("div", { className: "hawa-rounded hawa-p-2" }, /* @__PURE__ */ import_react49.default.createElement("ul", { className: "hawa-rounded hawa-p-2" }, /* @__PURE__ */ import_react49.default.createElement("li", { className: getCriteriaClass(lengthCriteriaMet) }, lengthCriteriaMet ? /* @__PURE__ */ import_react49.default.createElement(CheckMark, { size: "sm" }) : /* @__PURE__ */ import_react49.default.createElement(UncheckMark, { size: "sm" }), "At least 8 characters long"), /* @__PURE__ */ import_react49.default.createElement("li", { className: getCriteriaClass(numberCriteriaMet) }, numberCriteriaMet ? /* @__PURE__ */ import_react49.default.createElement(CheckMark, { size: "sm" }) : /* @__PURE__ */ import_react49.default.createElement(UncheckMark, { size: "sm" }), "At least 1 number"), /* @__PURE__ */ import_react49.default.createElement("li", { className: getCriteriaClass(specialCharCriteriaMet) }, specialCharCriteriaMet ? /* @__PURE__ */ import_react49.default.createElement(CheckMark, { size: "sm" }) : /* @__PURE__ */ import_react49.default.createElement(UncheckMark, { size: "sm" }), "At least 1 special character"), /* @__PURE__ */ import_react49.default.createElement("li", { className: getCriteriaClass(lowercaseCriteriaMet) }, lowercaseCriteriaMet ? /* @__PURE__ */ import_react49.default.createElement(CheckMark, { size: "sm" }) : /* @__PURE__ */ import_react49.default.createElement(UncheckMark, { size: "sm" }), "At least 1 lowercase letter"), /* @__PURE__ */ import_react49.default.createElement("li", { className: getCriteriaClass(uppercaseCriteriaMet) }, uppercaseCriteriaMet ? /* @__PURE__ */ import_react49.default.createElement(CheckMark, { size: "sm" }) : /* @__PURE__ */ import_react49.default.createElement(UncheckMark, { size: "sm" }), "At least 1 uppercase letter")))
|
7841
|
+
), /* @__PURE__ */ import_react49.default.createElement(PasswordStrengthIndicator, { strength: currentStr }));
|
7827
7842
|
};
|
7828
7843
|
|
7829
7844
|
// elements/slider/Slider.tsx
|
7830
|
-
var
|
7845
|
+
var React59 = __toESM(require("react"));
|
7831
7846
|
var SliderPrimitive = __toESM(require("@radix-ui/react-slider"));
|
7832
|
-
var Slider =
|
7847
|
+
var Slider = React59.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React59.createElement(
|
7833
7848
|
SliderPrimitive.Root,
|
7834
7849
|
{
|
7835
7850
|
ref,
|
@@ -7839,13 +7854,13 @@ var Slider = React60.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
7839
7854
|
),
|
7840
7855
|
...props
|
7841
7856
|
},
|
7842
|
-
/* @__PURE__ */
|
7843
|
-
/* @__PURE__ */
|
7857
|
+
/* @__PURE__ */ React59.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__ */ React59.createElement(SliderPrimitive.Range, { className: "hawa-absolute hawa-h-full hawa-bg-primary" })),
|
7858
|
+
/* @__PURE__ */ React59.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" })
|
7844
7859
|
));
|
7845
7860
|
Slider.displayName = SliderPrimitive.Root.displayName;
|
7846
7861
|
|
7847
7862
|
// elements/simpleTable/SimpleTable.tsx
|
7848
|
-
var
|
7863
|
+
var React60 = __toESM(require("react"));
|
7849
7864
|
var import_react_table2 = require("@tanstack/react-table");
|
7850
7865
|
var SimpleTable = ({
|
7851
7866
|
columns,
|
@@ -7860,7 +7875,7 @@ var SimpleTable = ({
|
|
7860
7875
|
columns,
|
7861
7876
|
getCoreRowModel: (0, import_react_table2.getCoreRowModel)()
|
7862
7877
|
});
|
7863
|
-
return /* @__PURE__ */
|
7878
|
+
return /* @__PURE__ */ React60.createElement(
|
7864
7879
|
"div",
|
7865
7880
|
{
|
7866
7881
|
className: cn(
|
@@ -7868,8 +7883,8 @@ var SimpleTable = ({
|
|
7868
7883
|
classNames
|
7869
7884
|
)
|
7870
7885
|
},
|
7871
|
-
props.isLoading ? /* @__PURE__ */
|
7872
|
-
return /* @__PURE__ */
|
7886
|
+
props.isLoading ? /* @__PURE__ */ React60.createElement(Skeleton, { className: "h-[130px] w-full" }) : /* @__PURE__ */ React60.createElement("div", { className: "hawa-rounded" }, /* @__PURE__ */ React60.createElement(Table, null, !headerless && table.getAllColumns().length > 0 && /* @__PURE__ */ React60.createElement(TableHeader, null, table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ React60.createElement(TableRow, { key: headerGroup.id }, headerGroup.headers.map((header) => {
|
7887
|
+
return /* @__PURE__ */ React60.createElement(
|
7873
7888
|
TableHead,
|
7874
7889
|
{
|
7875
7890
|
condensed: props.condensed,
|
@@ -7884,7 +7899,7 @@ var SimpleTable = ({
|
|
7884
7899
|
header.getContext()
|
7885
7900
|
)
|
7886
7901
|
);
|
7887
|
-
})))), /* @__PURE__ */
|
7902
|
+
})))), /* @__PURE__ */ React60.createElement(TableBody, null, ((_a = table.getRowModel().rows) == null ? void 0 : _a.length) ? table.getRowModel().rows.map((row) => /* @__PURE__ */ React60.createElement(
|
7888
7903
|
TableRow,
|
7889
7904
|
{
|
7890
7905
|
key: row.id,
|
@@ -7892,7 +7907,7 @@ var SimpleTable = ({
|
|
7892
7907
|
},
|
7893
7908
|
row.getVisibleCells().map((cell) => {
|
7894
7909
|
var _a2;
|
7895
|
-
return /* @__PURE__ */
|
7910
|
+
return /* @__PURE__ */ React60.createElement(
|
7896
7911
|
TableCell,
|
7897
7912
|
{
|
7898
7913
|
dir: props.direction,
|
@@ -7908,7 +7923,7 @@ var SimpleTable = ({
|
|
7908
7923
|
)
|
7909
7924
|
);
|
7910
7925
|
})
|
7911
|
-
)) : /* @__PURE__ */
|
7926
|
+
)) : /* @__PURE__ */ React60.createElement(TableRow, null, /* @__PURE__ */ React60.createElement(
|
7912
7927
|
TableCell,
|
7913
7928
|
{
|
7914
7929
|
colSpan: columns.length,
|
@@ -7920,12 +7935,12 @@ var SimpleTable = ({
|
|
7920
7935
|
};
|
7921
7936
|
|
7922
7937
|
// elements/separator/Separator.tsx
|
7923
|
-
var
|
7938
|
+
var React61 = __toESM(require("react"));
|
7924
7939
|
var Separator2 = ({
|
7925
7940
|
className,
|
7926
7941
|
orientation = "horizontal",
|
7927
7942
|
...props
|
7928
|
-
}) => /* @__PURE__ */
|
7943
|
+
}) => /* @__PURE__ */ React61.createElement(
|
7929
7944
|
"div",
|
7930
7945
|
{
|
7931
7946
|
className: cn(
|
@@ -7938,12 +7953,12 @@ var Separator2 = ({
|
|
7938
7953
|
);
|
7939
7954
|
|
7940
7955
|
// elements/scrollIndicator/ScrollIndicator.tsx
|
7941
|
-
var
|
7956
|
+
var import_react50 = __toESM(require("react"));
|
7942
7957
|
var ScrollIndicator = ({
|
7943
7958
|
anchor,
|
7944
7959
|
inContainer = false
|
7945
7960
|
}) => {
|
7946
|
-
const [scrollPercentage, setScrollPercentage] = (0,
|
7961
|
+
const [scrollPercentage, setScrollPercentage] = (0, import_react50.useState)(0);
|
7947
7962
|
const onScroll = () => {
|
7948
7963
|
const scrollElement = anchor.current;
|
7949
7964
|
if (scrollElement) {
|
@@ -7954,7 +7969,7 @@ var ScrollIndicator = ({
|
|
7954
7969
|
setScrollPercentage(percentageScrolled);
|
7955
7970
|
}
|
7956
7971
|
};
|
7957
|
-
(0,
|
7972
|
+
(0, import_react50.useEffect)(() => {
|
7958
7973
|
if (!anchor.current)
|
7959
7974
|
return;
|
7960
7975
|
anchor.current.addEventListener("scroll", onScroll);
|
@@ -7963,7 +7978,7 @@ var ScrollIndicator = ({
|
|
7963
7978
|
(_a = anchor.current) == null ? void 0 : _a.removeEventListener("scroll", onScroll);
|
7964
7979
|
};
|
7965
7980
|
}, [anchor]);
|
7966
|
-
return /* @__PURE__ */
|
7981
|
+
return /* @__PURE__ */ import_react50.default.createElement(
|
7967
7982
|
"div",
|
7968
7983
|
{
|
7969
7984
|
style: {
|
@@ -7979,11 +7994,11 @@ var ScrollIndicator = ({
|
|
7979
7994
|
};
|
7980
7995
|
|
7981
7996
|
// elements/codeBlock/CodeBlock.tsx
|
7982
|
-
var
|
7997
|
+
var import_react51 = __toESM(require("react"));
|
7983
7998
|
var import_prism_react_renderer = require("prism-react-renderer");
|
7984
7999
|
(typeof global !== "undefined" ? global : window).Prism = import_prism_react_renderer.Prism;
|
7985
8000
|
require("prismjs/components/prism-bash");
|
7986
|
-
var CopyIcon = () => /* @__PURE__ */
|
8001
|
+
var CopyIcon = () => /* @__PURE__ */ import_react51.default.createElement(
|
7987
8002
|
"svg",
|
7988
8003
|
{
|
7989
8004
|
"aria-label": "Copy",
|
@@ -7996,8 +8011,8 @@ var CopyIcon = () => /* @__PURE__ */ import_react49.default.createElement(
|
|
7996
8011
|
height: "1em",
|
7997
8012
|
width: "1em"
|
7998
8013
|
},
|
7999
|
-
/* @__PURE__ */
|
8000
|
-
/* @__PURE__ */
|
8014
|
+
/* @__PURE__ */ import_react51.default.createElement("rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2" }),
|
8015
|
+
/* @__PURE__ */ import_react51.default.createElement("path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" })
|
8001
8016
|
);
|
8002
8017
|
var CodeBlock = ({
|
8003
8018
|
tabs,
|
@@ -8011,7 +8026,7 @@ var CodeBlock = ({
|
|
8011
8026
|
...props
|
8012
8027
|
}) => {
|
8013
8028
|
const clipboard = useClipboard();
|
8014
|
-
const [selectedTab, setSelectedTab] = (0,
|
8029
|
+
const [selectedTab, setSelectedTab] = (0, import_react51.useState)(0);
|
8015
8030
|
const theme = import_prism_react_renderer.themes.oceanicNext;
|
8016
8031
|
let widthStyles = {
|
8017
8032
|
full: "hawa-w-full",
|
@@ -8019,7 +8034,7 @@ var CodeBlock = ({
|
|
8019
8034
|
sm: "hawa-w-full hawa-max-w-sm",
|
8020
8035
|
xs: "hawa-w-full hawa-max-w-xs"
|
8021
8036
|
};
|
8022
|
-
return /* @__PURE__ */
|
8037
|
+
return /* @__PURE__ */ import_react51.default.createElement(
|
8023
8038
|
"div",
|
8024
8039
|
{
|
8025
8040
|
className: cn(
|
@@ -8028,7 +8043,7 @@ var CodeBlock = ({
|
|
8028
8043
|
classNames == null ? void 0 : classNames.root
|
8029
8044
|
)
|
8030
8045
|
},
|
8031
|
-
fileName && /* @__PURE__ */
|
8046
|
+
fileName && /* @__PURE__ */ import_react51.default.createElement(
|
8032
8047
|
"div",
|
8033
8048
|
{
|
8034
8049
|
className: cn(
|
@@ -8037,7 +8052,7 @@ var CodeBlock = ({
|
|
8037
8052
|
classNames == null ? void 0 : classNames.fileName
|
8038
8053
|
)
|
8039
8054
|
},
|
8040
|
-
/* @__PURE__ */
|
8055
|
+
/* @__PURE__ */ import_react51.default.createElement(
|
8041
8056
|
"div",
|
8042
8057
|
{
|
8043
8058
|
className: cn(
|
@@ -8047,7 +8062,7 @@ var CodeBlock = ({
|
|
8047
8062
|
fileName
|
8048
8063
|
)
|
8049
8064
|
),
|
8050
|
-
tabs && /* @__PURE__ */
|
8065
|
+
tabs && /* @__PURE__ */ import_react51.default.createElement(
|
8051
8066
|
"div",
|
8052
8067
|
{
|
8053
8068
|
className: cn(
|
@@ -8056,7 +8071,7 @@ var CodeBlock = ({
|
|
8056
8071
|
classNames == null ? void 0 : classNames.tabs
|
8057
8072
|
)
|
8058
8073
|
},
|
8059
|
-
tabs.map((tab, i) => /* @__PURE__ */
|
8074
|
+
tabs.map((tab, i) => /* @__PURE__ */ import_react51.default.createElement(
|
8060
8075
|
"div",
|
8061
8076
|
{
|
8062
8077
|
key: i,
|
@@ -8065,7 +8080,7 @@ var CodeBlock = ({
|
|
8065
8080
|
classNames == null ? void 0 : classNames.tab
|
8066
8081
|
)
|
8067
8082
|
},
|
8068
|
-
/* @__PURE__ */
|
8083
|
+
/* @__PURE__ */ import_react51.default.createElement(
|
8069
8084
|
"div",
|
8070
8085
|
{
|
8071
8086
|
onClick: () => setSelectedTab(i),
|
@@ -8077,7 +8092,7 @@ var CodeBlock = ({
|
|
8077
8092
|
)
|
8078
8093
|
))
|
8079
8094
|
),
|
8080
|
-
/* @__PURE__ */
|
8095
|
+
/* @__PURE__ */ import_react51.default.createElement(
|
8081
8096
|
"div",
|
8082
8097
|
{
|
8083
8098
|
className: cn(
|
@@ -8087,22 +8102,22 @@ var CodeBlock = ({
|
|
8087
8102
|
"hawa-overflow-y-auto"
|
8088
8103
|
)
|
8089
8104
|
},
|
8090
|
-
/* @__PURE__ */
|
8105
|
+
/* @__PURE__ */ import_react51.default.createElement(
|
8091
8106
|
"div",
|
8092
8107
|
{
|
8093
8108
|
className: cn(
|
8094
8109
|
"hawa-flex hawa-absolute hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-z-50 hawa-right-3 hawa-top-3"
|
8095
8110
|
)
|
8096
8111
|
},
|
8097
|
-
/* @__PURE__ */
|
8112
|
+
/* @__PURE__ */ import_react51.default.createElement(
|
8098
8113
|
Tooltip,
|
8099
8114
|
{
|
8100
8115
|
open: clipboard.copied,
|
8101
8116
|
side: "left",
|
8102
|
-
content: /* @__PURE__ */
|
8117
|
+
content: /* @__PURE__ */ import_react51.default.createElement("div", null, "Copied!"),
|
8103
8118
|
triggerProps: { asChild: true }
|
8104
8119
|
},
|
8105
|
-
/* @__PURE__ */
|
8120
|
+
/* @__PURE__ */ import_react51.default.createElement(
|
8106
8121
|
Button,
|
8107
8122
|
{
|
8108
8123
|
size: "smallIcon",
|
@@ -8110,18 +8125,18 @@ var CodeBlock = ({
|
|
8110
8125
|
variant: "outline",
|
8111
8126
|
className: "hawa-text-gray-200 hawa-opacity-50 dark:hawa-border-gray-200 dark:hover:hawa-border-gray-400"
|
8112
8127
|
},
|
8113
|
-
/* @__PURE__ */
|
8128
|
+
/* @__PURE__ */ import_react51.default.createElement(CopyIcon, null)
|
8114
8129
|
)
|
8115
8130
|
)
|
8116
8131
|
),
|
8117
|
-
/* @__PURE__ */
|
8132
|
+
/* @__PURE__ */ import_react51.default.createElement(
|
8118
8133
|
import_prism_react_renderer.Highlight,
|
8119
8134
|
{
|
8120
8135
|
theme,
|
8121
8136
|
code: tabs ? tabs[selectedTab].code : code || "",
|
8122
8137
|
language
|
8123
8138
|
},
|
8124
|
-
({ tokens, getLineProps, getTokenProps }) => /* @__PURE__ */
|
8139
|
+
({ tokens, getLineProps, getTokenProps }) => /* @__PURE__ */ import_react51.default.createElement(
|
8125
8140
|
"pre",
|
8126
8141
|
{
|
8127
8142
|
className: cn(
|
@@ -8131,7 +8146,7 @@ var CodeBlock = ({
|
|
8131
8146
|
wrapText && "hawa-text-wrap"
|
8132
8147
|
)
|
8133
8148
|
},
|
8134
|
-
tokens.map((line, i) => /* @__PURE__ */
|
8149
|
+
tokens.map((line, i) => /* @__PURE__ */ import_react51.default.createElement("div", { key: i, ...getLineProps({ line }) }, props.lineNumbers && /* @__PURE__ */ import_react51.default.createElement("span", { className: "hawa-mr-4" }, i + 1), line.map((token, key) => /* @__PURE__ */ import_react51.default.createElement("span", { key, ...getTokenProps({ token }) }))))
|
8135
8150
|
)
|
8136
8151
|
)
|
8137
8152
|
)
|
@@ -8139,7 +8154,7 @@ var CodeBlock = ({
|
|
8139
8154
|
};
|
8140
8155
|
|
8141
8156
|
// elements/carousel/Carousel.tsx
|
8142
|
-
var
|
8157
|
+
var import_react52 = __toESM(require("react"));
|
8143
8158
|
var import_embla_carousel_react2 = __toESM(require("embla-carousel-react"));
|
8144
8159
|
var Carousel = ({
|
8145
8160
|
items,
|
@@ -8155,8 +8170,8 @@ var Carousel = ({
|
|
8155
8170
|
direction,
|
8156
8171
|
loop: autoplay ? true : (options == null ? void 0 : options.loop) || false
|
8157
8172
|
});
|
8158
|
-
const [selectedIndex, setSelectedIndex] = (0,
|
8159
|
-
(0,
|
8173
|
+
const [selectedIndex, setSelectedIndex] = (0, import_react52.useState)(0);
|
8174
|
+
(0, import_react52.useEffect)(() => {
|
8160
8175
|
function selectHandler() {
|
8161
8176
|
const index = emblaApi == null ? void 0 : emblaApi.selectedScrollSnap();
|
8162
8177
|
setSelectedIndex(index || 0);
|
@@ -8166,7 +8181,7 @@ var Carousel = ({
|
|
8166
8181
|
emblaApi == null ? void 0 : emblaApi.off("select", selectHandler);
|
8167
8182
|
};
|
8168
8183
|
}, [emblaApi]);
|
8169
|
-
(0,
|
8184
|
+
(0, import_react52.useEffect)(() => {
|
8170
8185
|
let autoplayTimer;
|
8171
8186
|
if (autoplay && emblaApi) {
|
8172
8187
|
autoplayTimer = setInterval(() => {
|
@@ -8178,17 +8193,17 @@ var Carousel = ({
|
|
8178
8193
|
clearInterval(autoplayTimer);
|
8179
8194
|
};
|
8180
8195
|
}, [emblaApi, autoplay, autoplayInterval]);
|
8181
|
-
const length =
|
8196
|
+
const length = import_react52.default.Children.count(items);
|
8182
8197
|
const canScrollNext = !!(emblaApi == null ? void 0 : emblaApi.canScrollNext());
|
8183
8198
|
const canScrollPrev = !!(emblaApi == null ? void 0 : emblaApi.canScrollPrev());
|
8184
|
-
return /* @__PURE__ */
|
8199
|
+
return /* @__PURE__ */ import_react52.default.createElement("div", { className: " hawa-relative hawa-h-full" }, /* @__PURE__ */ import_react52.default.createElement("div", { className: "hawa-h-full hawa-overflow-hidden" }, /* @__PURE__ */ import_react52.default.createElement("div", { className: "hawa-h-full", ref: emblaRef }, /* @__PURE__ */ import_react52.default.createElement("div", { className: "hawa-flex hawa-h-full" }, items == null ? void 0 : items.map((item, i) => /* @__PURE__ */ import_react52.default.createElement(
|
8185
8200
|
"div",
|
8186
8201
|
{
|
8187
8202
|
key: i,
|
8188
8203
|
className: "hawa-flex hawa-h-full hawa-min-w-0 hawa-flex-[0_0_100%] hawa-items-center hawa-justify-center"
|
8189
8204
|
},
|
8190
8205
|
item
|
8191
|
-
))))), /* @__PURE__ */
|
8206
|
+
))))), /* @__PURE__ */ import_react52.default.createElement(
|
8192
8207
|
Dots,
|
8193
8208
|
{
|
8194
8209
|
direction,
|
@@ -8196,7 +8211,7 @@ var Carousel = ({
|
|
8196
8211
|
selectedIndex,
|
8197
8212
|
onDotClick: (index) => emblaApi == null ? void 0 : emblaApi.scrollTo(index)
|
8198
8213
|
}
|
8199
|
-
), showArrows && /* @__PURE__ */
|
8214
|
+
), showArrows && /* @__PURE__ */ import_react52.default.createElement(
|
8200
8215
|
CarouselControls,
|
8201
8216
|
{
|
8202
8217
|
canScrollNext,
|
@@ -8213,7 +8228,7 @@ var Dots = ({
|
|
8213
8228
|
direction
|
8214
8229
|
}) => {
|
8215
8230
|
const arr = new Array(itemsLength).fill(0);
|
8216
|
-
return /* @__PURE__ */
|
8231
|
+
return /* @__PURE__ */ import_react52.default.createElement(
|
8217
8232
|
"div",
|
8218
8233
|
{
|
8219
8234
|
dir: direction,
|
@@ -8221,7 +8236,7 @@ var Dots = ({
|
|
8221
8236
|
},
|
8222
8237
|
arr.map((_, index) => {
|
8223
8238
|
const selected = index === selectedIndex;
|
8224
|
-
return /* @__PURE__ */
|
8239
|
+
return /* @__PURE__ */ import_react52.default.createElement(
|
8225
8240
|
"div",
|
8226
8241
|
{
|
8227
8242
|
key: index,
|
@@ -8236,7 +8251,7 @@ var Dots = ({
|
|
8236
8251
|
);
|
8237
8252
|
};
|
8238
8253
|
var CarouselControls = (props) => {
|
8239
|
-
return /* @__PURE__ */
|
8254
|
+
return /* @__PURE__ */ import_react52.default.createElement("div", { className: "hawa-flex hawa-justify-end hawa-gap-2 " }, /* @__PURE__ */ import_react52.default.createElement(
|
8240
8255
|
"button",
|
8241
8256
|
{
|
8242
8257
|
onClick: () => props.canScrollPrev && props.onPrev(),
|
@@ -8247,7 +8262,7 @@ var CarouselControls = (props) => {
|
|
8247
8262
|
props.canScrollPrev && "hawa-bg-primary"
|
8248
8263
|
)
|
8249
8264
|
},
|
8250
|
-
/* @__PURE__ */
|
8265
|
+
/* @__PURE__ */ import_react52.default.createElement(
|
8251
8266
|
"svg",
|
8252
8267
|
{
|
8253
8268
|
"aria-label": "Chevron Right Icon",
|
@@ -8256,9 +8271,9 @@ var CarouselControls = (props) => {
|
|
8256
8271
|
viewBox: "0 0 16 16",
|
8257
8272
|
className: "hawa-h-2 hawa-w-2 hawa-shrink-0 hawa-rotate-180 hawa-transition-transform hawa-duration-200 "
|
8258
8273
|
},
|
8259
|
-
/* @__PURE__ */
|
8274
|
+
/* @__PURE__ */ import_react52.default.createElement("path", { d: "M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z" })
|
8260
8275
|
)
|
8261
|
-
), /* @__PURE__ */
|
8276
|
+
), /* @__PURE__ */ import_react52.default.createElement(
|
8262
8277
|
"button",
|
8263
8278
|
{
|
8264
8279
|
onClick: () => props.canScrollNext && props.onNext(),
|
@@ -8269,7 +8284,7 @@ var CarouselControls = (props) => {
|
|
8269
8284
|
props.canScrollNext && "hawa-bg-primary"
|
8270
8285
|
)
|
8271
8286
|
},
|
8272
|
-
/* @__PURE__ */
|
8287
|
+
/* @__PURE__ */ import_react52.default.createElement(
|
8273
8288
|
"svg",
|
8274
8289
|
{
|
8275
8290
|
"aria-label": "Chevron Right Icon",
|
@@ -8278,19 +8293,19 @@ var CarouselControls = (props) => {
|
|
8278
8293
|
viewBox: "0 0 16 16",
|
8279
8294
|
className: "hawa-h-2 hawa-w-2 hawa-shrink-0 hawa-transition-transform hawa-duration-200 "
|
8280
8295
|
},
|
8281
|
-
/* @__PURE__ */
|
8296
|
+
/* @__PURE__ */ import_react52.default.createElement("path", { d: "M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z" })
|
8282
8297
|
)
|
8283
8298
|
));
|
8284
8299
|
};
|
8285
8300
|
|
8286
8301
|
// elements/count/Count.tsx
|
8287
|
-
var
|
8302
|
+
var import_react53 = __toESM(require("react"));
|
8288
8303
|
var Count = (props) => {
|
8289
|
-
return /* @__PURE__ */
|
8304
|
+
return /* @__PURE__ */ import_react53.default.createElement("div", { className: "hawa-flex hawa-h-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-px-2" }, /* @__PURE__ */ import_react53.default.createElement("div", null, props.icon), /* @__PURE__ */ import_react53.default.createElement("div", { className: "hawa-text-sm" }, props.count));
|
8290
8305
|
};
|
8291
8306
|
|
8292
8307
|
// elements/toast/Toast.tsx
|
8293
|
-
var
|
8308
|
+
var React66 = __toESM(require("react"));
|
8294
8309
|
var ToastPrimitives = __toESM(require("@radix-ui/react-toast"));
|
8295
8310
|
var import_class_variance_authority4 = require("class-variance-authority");
|
8296
8311
|
var toastVariants = (0, import_class_variance_authority4.cva)(
|
@@ -8318,7 +8333,7 @@ var sizeStyles = {
|
|
8318
8333
|
sm: "hawa-text-xs"
|
8319
8334
|
};
|
8320
8335
|
var ToastProvider = ToastPrimitives.Provider;
|
8321
|
-
var ToastViewport =
|
8336
|
+
var ToastViewport = React66.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React66.createElement(
|
8322
8337
|
ToastPrimitives.Viewport,
|
8323
8338
|
{
|
8324
8339
|
ref,
|
@@ -8330,8 +8345,8 @@ var ToastViewport = React67.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
8330
8345
|
}
|
8331
8346
|
));
|
8332
8347
|
ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
|
8333
|
-
var Toast =
|
8334
|
-
return /* @__PURE__ */
|
8348
|
+
var Toast = React66.forwardRef(({ className, variant, severity = "none", direction, ...props }, ref) => {
|
8349
|
+
return /* @__PURE__ */ React66.createElement(
|
8335
8350
|
ToastPrimitives.Root,
|
8336
8351
|
{
|
8337
8352
|
ref,
|
@@ -8346,8 +8361,8 @@ var Toast = React67.forwardRef(({ className, variant, severity = "none", directi
|
|
8346
8361
|
);
|
8347
8362
|
});
|
8348
8363
|
Toast.displayName = ToastPrimitives.Root.displayName;
|
8349
|
-
var ToastAction =
|
8350
|
-
return /* @__PURE__ */
|
8364
|
+
var ToastAction = React66.forwardRef(({ className, ...props }, ref) => {
|
8365
|
+
return /* @__PURE__ */ React66.createElement(
|
8351
8366
|
ToastPrimitives.Action,
|
8352
8367
|
{
|
8353
8368
|
ref,
|
@@ -8365,7 +8380,7 @@ var ToastAction = React67.forwardRef(({ className, ...props }, ref) => {
|
|
8365
8380
|
);
|
8366
8381
|
});
|
8367
8382
|
ToastAction.displayName = ToastPrimitives.Action.displayName;
|
8368
|
-
var ToastClose =
|
8383
|
+
var ToastClose = React66.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React66.createElement(
|
8369
8384
|
ToastPrimitives.Close,
|
8370
8385
|
{
|
8371
8386
|
ref,
|
@@ -8379,7 +8394,7 @@ var ToastClose = React67.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
8379
8394
|
"toast-close": "",
|
8380
8395
|
...props
|
8381
8396
|
},
|
8382
|
-
/* @__PURE__ */
|
8397
|
+
/* @__PURE__ */ React66.createElement(
|
8383
8398
|
"svg",
|
8384
8399
|
{
|
8385
8400
|
"aria-label": "Close Icon",
|
@@ -8388,7 +8403,7 @@ var ToastClose = React67.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
8388
8403
|
fill: "currentColor",
|
8389
8404
|
viewBox: "0 0 20 20"
|
8390
8405
|
},
|
8391
|
-
/* @__PURE__ */
|
8406
|
+
/* @__PURE__ */ React66.createElement(
|
8392
8407
|
"path",
|
8393
8408
|
{
|
8394
8409
|
fillRule: "evenodd",
|
@@ -8399,7 +8414,7 @@ var ToastClose = React67.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
8399
8414
|
)
|
8400
8415
|
));
|
8401
8416
|
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
8402
|
-
var ToastTitle =
|
8417
|
+
var ToastTitle = React66.forwardRef(({ className, size = "default", ...props }, ref) => /* @__PURE__ */ React66.createElement(
|
8403
8418
|
ToastPrimitives.Title,
|
8404
8419
|
{
|
8405
8420
|
ref,
|
@@ -8412,7 +8427,7 @@ var ToastTitle = React67.forwardRef(({ className, size = "default", ...props },
|
|
8412
8427
|
}
|
8413
8428
|
));
|
8414
8429
|
ToastTitle.displayName = ToastPrimitives.Title.displayName;
|
8415
|
-
var ToastDescription =
|
8430
|
+
var ToastDescription = React66.forwardRef(({ className, size = "default", ...props }, ref) => /* @__PURE__ */ React66.createElement(
|
8416
8431
|
ToastPrimitives.Description,
|
8417
8432
|
{
|
8418
8433
|
ref,
|
@@ -8427,11 +8442,11 @@ var ToastDescription = React67.forwardRef(({ className, size = "default", ...pro
|
|
8427
8442
|
ToastDescription.displayName = ToastPrimitives.Description.displayName;
|
8428
8443
|
|
8429
8444
|
// elements/toaster/Toaster.tsx
|
8430
|
-
var
|
8445
|
+
var import_react54 = __toESM(require("react"));
|
8431
8446
|
function Toaster(props) {
|
8432
8447
|
var _a;
|
8433
8448
|
let isRTL = props.direction === "rtl";
|
8434
|
-
return /* @__PURE__ */
|
8449
|
+
return /* @__PURE__ */ import_react54.default.createElement(ToastProvider, { swipeDirection: isRTL ? "left" : "right" }, (_a = props.toasts) == null ? void 0 : _a.map(function({
|
8435
8450
|
id,
|
8436
8451
|
title,
|
8437
8452
|
description,
|
@@ -8439,7 +8454,7 @@ function Toaster(props) {
|
|
8439
8454
|
action,
|
8440
8455
|
...toastProps
|
8441
8456
|
}) {
|
8442
|
-
return /* @__PURE__ */
|
8457
|
+
return /* @__PURE__ */ import_react54.default.createElement(Toast, { direction: props.direction, key: id, ...toastProps }, /* @__PURE__ */ import_react54.default.createElement(
|
8443
8458
|
"div",
|
8444
8459
|
{
|
8445
8460
|
className: cn(
|
@@ -8447,9 +8462,9 @@ function Toaster(props) {
|
|
8447
8462
|
action && "hawa-justify-between"
|
8448
8463
|
)
|
8449
8464
|
},
|
8450
|
-
/* @__PURE__ */
|
8451
|
-
/* @__PURE__ */
|
8452
|
-
/* @__PURE__ */
|
8465
|
+
/* @__PURE__ */ import_react54.default.createElement("div", { className: "hawa-flex hawa-h-full hawa-flex-col hawa-p-2 hawa-pe-0" }, /* @__PURE__ */ import_react54.default.createElement(ToastClose, null)),
|
8466
|
+
/* @__PURE__ */ import_react54.default.createElement("div", { className: "hawa-mx-0 hawa-h-auto hawa-max-h-full hawa-w-px hawa-bg-primary-foreground/10" }),
|
8467
|
+
/* @__PURE__ */ import_react54.default.createElement(
|
8453
8468
|
"div",
|
8454
8469
|
{
|
8455
8470
|
className: cn(
|
@@ -8457,11 +8472,11 @@ function Toaster(props) {
|
|
8457
8472
|
{ "hawa-p-4": size === "default", "hawa-p-2": size === "sm" }
|
8458
8473
|
)
|
8459
8474
|
},
|
8460
|
-
/* @__PURE__ */
|
8461
|
-
action && /* @__PURE__ */
|
8475
|
+
/* @__PURE__ */ import_react54.default.createElement("div", { className: "hawa-grid hawa-gap-1 hawa-text-start" }, title && /* @__PURE__ */ import_react54.default.createElement(ToastTitle, { size }, title), description && /* @__PURE__ */ import_react54.default.createElement(ToastDescription, { size }, description)),
|
8476
|
+
action && /* @__PURE__ */ import_react54.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-justify-center" }, action)
|
8462
8477
|
)
|
8463
8478
|
));
|
8464
|
-
}), /* @__PURE__ */
|
8479
|
+
}), /* @__PURE__ */ import_react54.default.createElement(
|
8465
8480
|
ToastViewport,
|
8466
8481
|
{
|
8467
8482
|
className: cn("hawa-gap-2", isRTL && "hawa-fixed hawa-left-0")
|
@@ -8470,20 +8485,20 @@ function Toaster(props) {
|
|
8470
8485
|
}
|
8471
8486
|
|
8472
8487
|
// elements/destroyableCard/DestroyableCard.tsx
|
8473
|
-
var
|
8488
|
+
var import_react55 = __toESM(require("react"));
|
8474
8489
|
var DestroyableCard = ({
|
8475
8490
|
position = "bottom-right",
|
8476
8491
|
fixed,
|
8477
8492
|
direction,
|
8478
8493
|
...props
|
8479
8494
|
}) => {
|
8480
|
-
const [closed, setClosed] = (0,
|
8481
|
-
const popUpRef = (0,
|
8495
|
+
const [closed, setClosed] = (0, import_react55.useState)(false);
|
8496
|
+
const popUpRef = (0, import_react55.useRef)(null);
|
8482
8497
|
const boxPosition = {
|
8483
8498
|
"bottom-right": "hawa-right-4 hawa-bottom-4",
|
8484
8499
|
"bottom-left": "hawa-left-4 hawa-bottom-4"
|
8485
8500
|
};
|
8486
|
-
return /* @__PURE__ */
|
8501
|
+
return /* @__PURE__ */ import_react55.default.createElement(
|
8487
8502
|
"div",
|
8488
8503
|
{
|
8489
8504
|
className: cn(
|
@@ -8492,7 +8507,7 @@ var DestroyableCard = ({
|
|
8492
8507
|
),
|
8493
8508
|
ref: popUpRef
|
8494
8509
|
},
|
8495
|
-
/* @__PURE__ */
|
8510
|
+
/* @__PURE__ */ import_react55.default.createElement(
|
8496
8511
|
Card,
|
8497
8512
|
{
|
8498
8513
|
className: cn(
|
@@ -8501,7 +8516,7 @@ var DestroyableCard = ({
|
|
8501
8516
|
),
|
8502
8517
|
dir: direction
|
8503
8518
|
},
|
8504
|
-
/* @__PURE__ */
|
8519
|
+
/* @__PURE__ */ import_react55.default.createElement(
|
8505
8520
|
"button",
|
8506
8521
|
{
|
8507
8522
|
type: "button",
|
@@ -8520,7 +8535,7 @@ var DestroyableCard = ({
|
|
8520
8535
|
}, 200);
|
8521
8536
|
}
|
8522
8537
|
},
|
8523
|
-
/* @__PURE__ */
|
8538
|
+
/* @__PURE__ */ import_react55.default.createElement(
|
8524
8539
|
"svg",
|
8525
8540
|
{
|
8526
8541
|
"aria-hidden": "true",
|
@@ -8528,7 +8543,7 @@ var DestroyableCard = ({
|
|
8528
8543
|
fill: "currentColor",
|
8529
8544
|
viewBox: "0 0 20 20"
|
8530
8545
|
},
|
8531
|
-
/* @__PURE__ */
|
8546
|
+
/* @__PURE__ */ import_react55.default.createElement(
|
8532
8547
|
"path",
|
8533
8548
|
{
|
8534
8549
|
fillRule: "evenodd",
|
@@ -8538,13 +8553,13 @@ var DestroyableCard = ({
|
|
8538
8553
|
)
|
8539
8554
|
)
|
8540
8555
|
),
|
8541
|
-
/* @__PURE__ */
|
8556
|
+
/* @__PURE__ */ import_react55.default.createElement(CardContent, { headless: true }, props.children)
|
8542
8557
|
)
|
8543
8558
|
);
|
8544
8559
|
};
|
8545
8560
|
|
8546
8561
|
// elements/interfaceSettings/InterfaceSettings.tsx
|
8547
|
-
var
|
8562
|
+
var import_react56 = __toESM(require("react"));
|
8548
8563
|
var InterfaceSettings = ({
|
8549
8564
|
orientation = "horizontal",
|
8550
8565
|
width = "default",
|
@@ -8552,13 +8567,13 @@ var InterfaceSettings = ({
|
|
8552
8567
|
handleLanguage,
|
8553
8568
|
...props
|
8554
8569
|
}) => {
|
8555
|
-
const [color, setColor] = (0,
|
8556
|
-
const [language, setLanguage] = (0,
|
8570
|
+
const [color, setColor] = (0, import_react56.useState)(props.currentColorMode);
|
8571
|
+
const [language, setLanguage] = (0, import_react56.useState)(props.currentLanguage);
|
8557
8572
|
let orientationStyle = {
|
8558
8573
|
horizontal: "hawa-flex hawa-flex-row hawa-justify-between",
|
8559
8574
|
vertical: "hawa-flex hawa-flex-col hawa-items-center hawa-gap-2"
|
8560
8575
|
};
|
8561
|
-
return /* @__PURE__ */
|
8576
|
+
return /* @__PURE__ */ import_react56.default.createElement("div", { className: cn(orientationStyle[orientation]) }, /* @__PURE__ */ import_react56.default.createElement(
|
8562
8577
|
Radio,
|
8563
8578
|
{
|
8564
8579
|
name: "language",
|
@@ -8576,7 +8591,7 @@ var InterfaceSettings = ({
|
|
8576
8591
|
{ value: "en", label: "English" }
|
8577
8592
|
]
|
8578
8593
|
}
|
8579
|
-
), /* @__PURE__ */
|
8594
|
+
), /* @__PURE__ */ import_react56.default.createElement(
|
8580
8595
|
Radio,
|
8581
8596
|
{
|
8582
8597
|
name: "theme",
|
@@ -8592,7 +8607,7 @@ var InterfaceSettings = ({
|
|
8592
8607
|
options: [
|
8593
8608
|
{
|
8594
8609
|
value: "light",
|
8595
|
-
label: /* @__PURE__ */
|
8610
|
+
label: /* @__PURE__ */ import_react56.default.createElement(
|
8596
8611
|
"svg",
|
8597
8612
|
{
|
8598
8613
|
width: "15",
|
@@ -8602,7 +8617,7 @@ var InterfaceSettings = ({
|
|
8602
8617
|
xmlns: "http://www.w3.org/2000/svg",
|
8603
8618
|
className: "hawa-h-[1.2rem] hawa-w-[1.2rem] hawa-rotate-0 hawa-scale-100 hawa-transition-all dark:hawa--rotate-90"
|
8604
8619
|
},
|
8605
|
-
/* @__PURE__ */
|
8620
|
+
/* @__PURE__ */ import_react56.default.createElement(
|
8606
8621
|
"path",
|
8607
8622
|
{
|
8608
8623
|
d: "M7.5 0C7.77614 0 8 0.223858 8 0.5V2.5C8 2.77614 7.77614 3 7.5 3C7.22386 3 7 2.77614 7 2.5V0.5C7 0.223858 7.22386 0 7.5 0ZM2.1967 2.1967C2.39196 2.00144 2.70854 2.00144 2.90381 2.1967L4.31802 3.61091C4.51328 3.80617 4.51328 4.12276 4.31802 4.31802C4.12276 4.51328 3.80617 4.51328 3.61091 4.31802L2.1967 2.90381C2.00144 2.70854 2.00144 2.39196 2.1967 2.1967ZM0.5 7C0.223858 7 0 7.22386 0 7.5C0 7.77614 0.223858 8 0.5 8H2.5C2.77614 8 3 7.77614 3 7.5C3 7.22386 2.77614 7 2.5 7H0.5ZM2.1967 12.8033C2.00144 12.608 2.00144 12.2915 2.1967 12.0962L3.61091 10.682C3.80617 10.4867 4.12276 10.4867 4.31802 10.682C4.51328 10.8772 4.51328 11.1938 4.31802 11.3891L2.90381 12.8033C2.70854 12.9986 2.39196 12.9986 2.1967 12.8033ZM12.5 7C12.2239 7 12 7.22386 12 7.5C12 7.77614 12.2239 8 12.5 8H14.5C14.7761 8 15 7.77614 15 7.5C15 7.22386 14.7761 7 14.5 7H12.5ZM10.682 4.31802C10.4867 4.12276 10.4867 3.80617 10.682 3.61091L12.0962 2.1967C12.2915 2.00144 12.608 2.00144 12.8033 2.1967C12.9986 2.39196 12.9986 2.70854 12.8033 2.90381L11.3891 4.31802C11.1938 4.51328 10.8772 4.51328 10.682 4.31802ZM8 12.5C8 12.2239 7.77614 12 7.5 12C7.22386 12 7 12.2239 7 12.5V14.5C7 14.7761 7.22386 15 7.5 15C7.77614 15 8 14.7761 8 14.5V12.5ZM10.682 10.682C10.8772 10.4867 11.1938 10.4867 11.3891 10.682L12.8033 12.0962C12.9986 12.2915 12.9986 12.608 12.8033 12.8033C12.608 12.9986 12.2915 12.9986 12.0962 12.8033L10.682 11.3891C10.4867 11.1938 10.4867 10.8772 10.682 10.682ZM5.5 7.5C5.5 6.39543 6.39543 5.5 7.5 5.5C8.60457 5.5 9.5 6.39543 9.5 7.5C9.5 8.60457 8.60457 9.5 7.5 9.5C6.39543 9.5 5.5 8.60457 5.5 7.5ZM7.5 4.5C5.84315 4.5 4.5 5.84315 4.5 7.5C4.5 9.15685 5.84315 10.5 7.5 10.5C9.15685 10.5 10.5 9.15685 10.5 7.5C10.5 5.84315 9.15685 4.5 7.5 4.5Z",
|
@@ -8613,7 +8628,7 @@ var InterfaceSettings = ({
|
|
8613
8628
|
},
|
8614
8629
|
{
|
8615
8630
|
value: "dark",
|
8616
|
-
label: /* @__PURE__ */
|
8631
|
+
label: /* @__PURE__ */ import_react56.default.createElement(
|
8617
8632
|
"svg",
|
8618
8633
|
{
|
8619
8634
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -8624,7 +8639,7 @@ var InterfaceSettings = ({
|
|
8624
8639
|
stroke: "currentColor",
|
8625
8640
|
className: "hawa-h-[1.2rem] hawa-w-[1.2rem] hawa-transition-all dark:hawa-rotate-0 dark:hawa-scale-100"
|
8626
8641
|
},
|
8627
|
-
/* @__PURE__ */
|
8642
|
+
/* @__PURE__ */ import_react56.default.createElement("path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z" })
|
8628
8643
|
)
|
8629
8644
|
}
|
8630
8645
|
]
|
@@ -8633,14 +8648,14 @@ var InterfaceSettings = ({
|
|
8633
8648
|
};
|
8634
8649
|
|
8635
8650
|
// elements/phoneMockup/PhoneMockup.tsx
|
8636
|
-
var
|
8651
|
+
var import_react57 = __toESM(require("react"));
|
8637
8652
|
var PhoneMockup = ({
|
8638
8653
|
children,
|
8639
8654
|
upperOverlayGradiant,
|
8640
8655
|
lowerOverlayGradiant,
|
8641
8656
|
phone,
|
8642
8657
|
hideButtons
|
8643
|
-
}) => /* @__PURE__ */
|
8658
|
+
}) => /* @__PURE__ */ import_react57.default.createElement("div", { className: "hawa-relative hawa-mx-auto hawa-h-[600px] hawa-w-[300px] hawa-rounded-[2.5rem] hawa-border-[14px] hawa-border-gray-800 hawa-bg-gray-800 hawa-dark:border-gray-800" }, !hideButtons && /* @__PURE__ */ import_react57.default.createElement(import_react57.default.Fragment, null, /* @__PURE__ */ import_react57.default.createElement("div", { className: "hawa-absolute hawa--left-[16px] hawa-top-[72px] hawa-h-[32px] hawa-w-[3px] hawa-rounded-l-lg hawa-bg-gray-800 hawa-dark:bg-gray-800" }), /* @__PURE__ */ import_react57.default.createElement("div", { className: "hawa-absolute hawa--left-[16px] hawa-top-[124px] hawa-h-[46px] hawa-w-[3px] hawa-rounded-l-lg hawa-bg-gray-800 hawa-dark:bg-gray-800" }), /* @__PURE__ */ import_react57.default.createElement("div", { className: "hawa-absolute hawa--left-[16px] hawa-top-[178px] hawa-h-[46px] hawa-w-[3px] hawa-rounded-l-lg hawa-bg-gray-800 hawa-dark:bg-gray-800" }), /* @__PURE__ */ import_react57.default.createElement("div", { className: "hawa-absolute hawa--right-[16px] hawa-top-[142px] hawa-h-[64px] hawa-w-[3px] hawa-rounded-r-lg hawa-bg-gray-800 hawa-dark:bg-gray-800" })), /* @__PURE__ */ import_react57.default.createElement("div", { className: "no-scrollbar hawa-left-0 hawa-h-[572px] hawa-w-[272px] hawa-overflow-y-scroll hawa-rounded-[2rem] hawa-bg-white hawa-[clip-path:inset(0px_-1px_0px_0px_round_2rem)] hawa-dark:bg-gray-800" }, children), upperOverlayGradiant && /* @__PURE__ */ import_react57.default.createElement("div", { className: "hawa-pointer-events-none hawa-absolute hawa-left-0 hawa-top-0 hawa-h-[72px] hawa-w-[272px] hawa-rounded-t-[2rem] hawa-bg-gradient-to-t hawa-from-transparent hawa-to-black hawa-opacity-50 hawa-[clip-path:inset(0px_0px_0px_0px_round_0rem)]" }), lowerOverlayGradiant && /* @__PURE__ */ import_react57.default.createElement("div", { className: "hawa-pointer-events-none hawa-absolute hawa-bottom-0 hawa-left-0 hawa-h-[72px] hawa-w-[272px] hawa-rounded-b-[2rem] hawa-bg-gradient-to-t hawa-from-black hawa-to-transparent hawa-opacity-50 hawa-[clip-path:inset(0px_0px_0px_0px_round_0rem)]" }));
|
8644
8659
|
// Annotate the CommonJS export names for ESM import in node:
|
8645
8660
|
0 && (module.exports = {
|
8646
8661
|
Accordion,
|
@@ -8797,7 +8812,7 @@ var PhoneMockup = ({
|
|
8797
8812
|
|
8798
8813
|
lucide-react/dist/esm/shared/src/utils.js:
|
8799
8814
|
(**
|
8800
|
-
* @license lucide-react v0.
|
8815
|
+
* @license lucide-react v0.381.0 - ISC
|
8801
8816
|
*
|
8802
8817
|
* This source code is licensed under the ISC license.
|
8803
8818
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -8805,7 +8820,7 @@ lucide-react/dist/esm/shared/src/utils.js:
|
|
8805
8820
|
|
8806
8821
|
lucide-react/dist/esm/defaultAttributes.js:
|
8807
8822
|
(**
|
8808
|
-
* @license lucide-react v0.
|
8823
|
+
* @license lucide-react v0.381.0 - ISC
|
8809
8824
|
*
|
8810
8825
|
* This source code is licensed under the ISC license.
|
8811
8826
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -8813,7 +8828,7 @@ lucide-react/dist/esm/defaultAttributes.js:
|
|
8813
8828
|
|
8814
8829
|
lucide-react/dist/esm/Icon.js:
|
8815
8830
|
(**
|
8816
|
-
* @license lucide-react v0.
|
8831
|
+
* @license lucide-react v0.381.0 - ISC
|
8817
8832
|
*
|
8818
8833
|
* This source code is licensed under the ISC license.
|
8819
8834
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -8821,7 +8836,7 @@ lucide-react/dist/esm/Icon.js:
|
|
8821
8836
|
|
8822
8837
|
lucide-react/dist/esm/createLucideIcon.js:
|
8823
8838
|
(**
|
8824
|
-
* @license lucide-react v0.
|
8839
|
+
* @license lucide-react v0.381.0 - ISC
|
8825
8840
|
*
|
8826
8841
|
* This source code is licensed under the ISC license.
|
8827
8842
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -8829,7 +8844,7 @@ lucide-react/dist/esm/createLucideIcon.js:
|
|
8829
8844
|
|
8830
8845
|
lucide-react/dist/esm/icons/dot.js:
|
8831
8846
|
(**
|
8832
|
-
* @license lucide-react v0.
|
8847
|
+
* @license lucide-react v0.381.0 - ISC
|
8833
8848
|
*
|
8834
8849
|
* This source code is licensed under the ISC license.
|
8835
8850
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -8837,7 +8852,7 @@ lucide-react/dist/esm/icons/dot.js:
|
|
8837
8852
|
|
8838
8853
|
lucide-react/dist/esm/lucide-react.js:
|
8839
8854
|
(**
|
8840
|
-
* @license lucide-react v0.
|
8855
|
+
* @license lucide-react v0.381.0 - ISC
|
8841
8856
|
*
|
8842
8857
|
* This source code is licensed under the ISC license.
|
8843
8858
|
* See the LICENSE file in the root directory of this source tree.
|