@sikka/hawa 0.37.2-next → 0.38.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/{Radio-y9uhxitu.d.ts → Radio-lgoClQrv.d.ts} +2 -2
- package/dist/{Radio-BCD7k628.d.mts → Radio-uQ7DtzcI.d.mts} +2 -2
- package/dist/alert/index.js +43 -19
- package/dist/alert/index.js.map +1 -1
- package/dist/alert/index.mjs +43 -19
- package/dist/alert/index.mjs.map +1 -1
- package/dist/appLayout/index.js +43 -19
- package/dist/appLayout/index.js.map +1 -1
- package/dist/appLayout/index.mjs +43 -19
- package/dist/appLayout/index.mjs.map +1 -1
- package/dist/backToTop/index.js +43 -19
- package/dist/backToTop/index.js.map +1 -1
- package/dist/backToTop/index.mjs +43 -19
- package/dist/backToTop/index.mjs.map +1 -1
- package/dist/blocks/auth/index.d.mts +1 -0
- package/dist/blocks/auth/index.d.ts +1 -0
- package/dist/blocks/auth/index.js +251 -143
- package/dist/blocks/auth/index.mjs +205 -102
- package/dist/blocks/feedback/index.js +47 -59
- package/dist/blocks/feedback/index.mjs +5 -5
- package/dist/blocks/index.d.mts +2 -1
- package/dist/blocks/index.d.ts +2 -1
- package/dist/blocks/index.js +501 -420
- package/dist/blocks/index.mjs +11 -9
- package/dist/blocks/misc/index.js +48 -51
- package/dist/blocks/misc/index.mjs +5 -5
- package/dist/blocks/pricing/index.js +47 -41
- package/dist/blocks/pricing/index.mjs +4 -4
- package/dist/button/index.d.mts +4 -0
- package/dist/button/index.d.ts +4 -0
- package/dist/button/index.js +43 -19
- package/dist/button/index.js.map +1 -1
- package/dist/button/index.mjs +43 -19
- package/dist/button/index.mjs.map +1 -1
- package/dist/calendar/index.js +43 -19
- package/dist/calendar/index.js.map +1 -1
- package/dist/calendar/index.mjs +43 -19
- package/dist/calendar/index.mjs.map +1 -1
- package/dist/checkbox/index.d.mts +1 -1
- package/dist/checkbox/index.d.ts +1 -1
- package/dist/checkbox/index.js.map +1 -1
- package/dist/checkbox/index.mjs.map +1 -1
- package/dist/{chunk-ZTUWU652.mjs → chunk-EZBHA2IL.mjs} +3 -3
- package/dist/{chunk-ODOCZAWC.mjs → chunk-F23GAE2P.mjs} +1 -1
- package/dist/{chunk-DS3AACQJ.mjs → chunk-IC5WYNKN.mjs} +1 -1
- package/dist/{chunk-QXH7ZDMN.mjs → chunk-RTK6REIK.mjs} +3 -11
- package/dist/{chunk-QYWOI3DO.mjs → chunk-UDJFVH2I.mjs} +204 -144
- package/dist/{chunk-BPHQFAWM.mjs → chunk-UJ5SXC3M.mjs} +3 -11
- package/dist/{chunk-PXGL7ZXQ.mjs → chunk-UMOBOCED.mjs} +44 -19
- package/dist/{chunk-RNFJAEEU.mjs → chunk-V7O5MQZQ.mjs} +44 -19
- package/dist/{chunk-BTDR3VAG.mjs → chunk-WDCKXU54.mjs} +4 -21
- package/dist/{chunk-MDHDHEPZ.mjs → chunk-XFSBC5VI.mjs} +3 -11
- package/dist/codeBlock/index.js +43 -19
- package/dist/codeBlock/index.js.map +1 -1
- package/dist/codeBlock/index.mjs +43 -19
- package/dist/codeBlock/index.mjs.map +1 -1
- package/dist/colorPicker/index.d.mts +1 -1
- package/dist/colorPicker/index.d.ts +1 -1
- package/dist/colorPicker/index.js +35 -31
- package/dist/colorPicker/index.js.map +1 -1
- package/dist/colorPicker/index.mjs +33 -29
- package/dist/colorPicker/index.mjs.map +1 -1
- package/dist/combobox/index.d.mts +1 -1
- package/dist/combobox/index.d.ts +1 -1
- package/dist/combobox/index.js +52 -48
- package/dist/combobox/index.js.map +1 -1
- package/dist/combobox/index.mjs +52 -48
- package/dist/combobox/index.mjs.map +1 -1
- package/dist/dataTable/index.js +44 -29
- package/dist/dataTable/index.js.map +1 -1
- package/dist/dataTable/index.mjs +44 -29
- package/dist/dataTable/index.mjs.map +1 -1
- package/dist/datePicker/index.d.mts +4 -0
- package/dist/datePicker/index.d.ts +4 -0
- package/dist/datePicker/index.js +44 -19
- package/dist/datePicker/index.js.map +1 -1
- package/dist/datePicker/index.mjs +44 -19
- package/dist/datePicker/index.mjs.map +1 -1
- package/dist/docsLayout/index.js +43 -19
- package/dist/docsLayout/index.js.map +1 -1
- package/dist/docsLayout/index.mjs +43 -19
- package/dist/docsLayout/index.mjs.map +1 -1
- package/dist/elements/index.d.mts +46 -21
- package/dist/elements/index.d.ts +46 -21
- package/dist/elements/index.js +378 -309
- package/dist/elements/index.mjs +14 -23
- package/dist/fileDropzone/index.js +43 -19
- package/dist/fileDropzone/index.js.map +1 -1
- package/dist/fileDropzone/index.mjs +43 -19
- package/dist/fileDropzone/index.mjs.map +1 -1
- package/dist/index.css +29 -3
- package/dist/index.d.mts +48 -22
- package/dist/index.d.ts +48 -22
- package/dist/index.js +808 -737
- package/dist/index.mjs +331 -264
- package/dist/input/index.d.mts +1 -1
- package/dist/input/index.d.ts +1 -1
- package/dist/input/index.js +46 -42
- package/dist/input/index.js.map +1 -1
- package/dist/input/index.mjs +45 -41
- package/dist/input/index.mjs.map +1 -1
- package/dist/interfaceSettings/index.js +64 -69
- package/dist/interfaceSettings/index.js.map +1 -1
- package/dist/interfaceSettings/index.mjs +57 -62
- package/dist/interfaceSettings/index.mjs.map +1 -1
- package/dist/layout/index.d.mts +1 -1
- package/dist/layout/index.d.ts +1 -1
- package/dist/layout/index.js +43 -19
- package/dist/layout/index.mjs +2 -2
- package/dist/passwordInput/index.js +70 -66
- package/dist/passwordInput/index.js.map +1 -1
- package/dist/passwordInput/index.mjs +59 -55
- package/dist/passwordInput/index.mjs.map +1 -1
- package/dist/phoneInput/index.js +50 -55
- package/dist/phoneInput/index.js.map +1 -1
- package/dist/phoneInput/index.mjs +47 -52
- package/dist/phoneInput/index.mjs.map +1 -1
- package/dist/pinInput/index.d.mts +37 -16
- package/dist/pinInput/index.d.ts +37 -16
- package/dist/pinInput/index.js +208 -78
- package/dist/pinInput/index.js.map +1 -1
- package/dist/pinInput/index.mjs +203 -77
- package/dist/pinInput/index.mjs.map +1 -1
- package/dist/radio/index.d.mts +1 -1
- package/dist/radio/index.d.ts +1 -1
- package/dist/radio/index.js +55 -60
- package/dist/radio/index.js.map +1 -1
- package/dist/radio/index.mjs +50 -55
- package/dist/radio/index.mjs.map +1 -1
- package/dist/scrollArea/index.js +2 -2
- package/dist/scrollArea/index.js.map +1 -1
- package/dist/scrollArea/index.mjs +2 -2
- package/dist/scrollArea/index.mjs.map +1 -1
- package/dist/select/index.d.mts +1 -1
- package/dist/select/index.d.ts +1 -1
- package/dist/select/index.js +43 -39
- package/dist/select/index.js.map +1 -1
- package/dist/select/index.mjs +43 -39
- package/dist/select/index.mjs.map +1 -1
- package/dist/signature/index.d.mts +1 -1
- package/dist/signature/index.d.ts +1 -1
- package/dist/signature/index.js.map +1 -1
- package/dist/signature/index.mjs.map +1 -1
- package/dist/sortButton/index.js +43 -19
- package/dist/sortButton/index.js.map +1 -1
- package/dist/sortButton/index.mjs +43 -19
- package/dist/sortButton/index.mjs.map +1 -1
- package/dist/splitButton/index.d.mts +4 -0
- package/dist/splitButton/index.d.ts +4 -0
- package/dist/splitButton/index.js +43 -19
- package/dist/splitButton/index.js.map +1 -1
- package/dist/splitButton/index.mjs +43 -19
- package/dist/splitButton/index.mjs.map +1 -1
- package/dist/stats/index.d.mts +1 -1
- package/dist/stats/index.d.ts +1 -1
- package/dist/stats/index.js.map +1 -1
- package/dist/stats/index.mjs.map +1 -1
- package/dist/tabs/index.js +2 -2
- package/dist/tabs/index.js.map +1 -1
- package/dist/tabs/index.mjs +2 -2
- 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/textarea/index.js +34 -30
- package/dist/textarea/index.js.map +1 -1
- package/dist/textarea/index.mjs +34 -30
- package/dist/textarea/index.mjs.map +1 -1
- package/package.json +2 -1
package/dist/elements/index.js
CHANGED
@@ -122,6 +122,10 @@ __export(elements_exports, {
|
|
122
122
|
PhoneInput: () => PhoneInput,
|
123
123
|
PhoneMockup: () => PhoneMockup,
|
124
124
|
PinInput: () => PinInput,
|
125
|
+
PinInputGroup: () => PinInputGroup,
|
126
|
+
PinInputRoot: () => PinInputRoot,
|
127
|
+
PinInputSeperator: () => PinInputSeperator,
|
128
|
+
PinInputSlot: () => PinInputSlot,
|
125
129
|
Popover: () => Popover,
|
126
130
|
PopoverContent: () => PopoverContent,
|
127
131
|
PopoverPortal: () => PopoverPortal,
|
@@ -2276,30 +2280,54 @@ var Button = React17.forwardRef(
|
|
2276
2280
|
children,
|
2277
2281
|
labelProps,
|
2278
2282
|
showHelperText = false,
|
2283
|
+
inForm = false,
|
2279
2284
|
...props
|
2280
2285
|
}, ref) => {
|
2281
2286
|
const Comp = "button";
|
2282
2287
|
const loadingColor = variant === "outline" || variant === "ghost" || variant === "neoBrutalism" ? "hawa-bg-primary" : "hawa-bg-primary-foreground";
|
2283
|
-
|
2284
|
-
|
2285
|
-
|
2286
|
-
className: cn(
|
2287
|
-
buttonVariants({ variant, size, className }),
|
2288
|
-
centered && "hawa-justify-center"
|
2289
|
-
),
|
2290
|
-
ref,
|
2291
|
-
...props
|
2292
|
-
},
|
2293
|
-
isLoading ? /* @__PURE__ */ React17.createElement(
|
2294
|
-
Loading,
|
2288
|
+
if (inForm) {
|
2289
|
+
return /* @__PURE__ */ React17.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, label && /* @__PURE__ */ React17.createElement(Label2, { ...labelProps }, label), /* @__PURE__ */ React17.createElement(
|
2290
|
+
Comp,
|
2295
2291
|
{
|
2296
|
-
|
2297
|
-
|
2298
|
-
|
2299
|
-
|
2300
|
-
|
2301
|
-
|
2302
|
-
|
2292
|
+
className: cn(
|
2293
|
+
buttonVariants({ variant, size, className }),
|
2294
|
+
centered && "hawa-justify-center"
|
2295
|
+
),
|
2296
|
+
ref,
|
2297
|
+
...props
|
2298
|
+
},
|
2299
|
+
isLoading ? /* @__PURE__ */ React17.createElement(
|
2300
|
+
Loading,
|
2301
|
+
{
|
2302
|
+
design: size === "icon" || size === "smallIcon" ? "spinner" : "dots-pulse",
|
2303
|
+
themeMode: variant === "outline" ? "light" : "dark",
|
2304
|
+
color: loadingColor,
|
2305
|
+
size: size === "sm" || size === "xs" ? "xs" : "button"
|
2306
|
+
}
|
2307
|
+
) : children
|
2308
|
+
), showHelperText && /* @__PURE__ */ React17.createElement(HelperText, { helperText: props.helperText }));
|
2309
|
+
} else {
|
2310
|
+
return /* @__PURE__ */ React17.createElement(
|
2311
|
+
Comp,
|
2312
|
+
{
|
2313
|
+
className: cn(
|
2314
|
+
buttonVariants({ variant, size, className }),
|
2315
|
+
centered && "hawa-justify-center"
|
2316
|
+
),
|
2317
|
+
ref,
|
2318
|
+
...props
|
2319
|
+
},
|
2320
|
+
isLoading ? /* @__PURE__ */ React17.createElement(
|
2321
|
+
Loading,
|
2322
|
+
{
|
2323
|
+
design: size === "icon" || size === "smallIcon" ? "spinner" : "dots-pulse",
|
2324
|
+
themeMode: variant === "outline" ? "light" : "dark",
|
2325
|
+
color: loadingColor,
|
2326
|
+
size: size === "sm" || size === "xs" ? "xs" : "button"
|
2327
|
+
}
|
2328
|
+
) : children
|
2329
|
+
);
|
2330
|
+
}
|
2303
2331
|
}
|
2304
2332
|
);
|
2305
2333
|
Button.displayName = "Button";
|
@@ -2702,16 +2730,7 @@ var Input = (0, import_react11.forwardRef)(
|
|
2702
2730
|
inputProps == null ? void 0 : inputProps.className
|
2703
2731
|
)
|
2704
2732
|
}
|
2705
|
-
)), !forceHideHelperText && /* @__PURE__ */ import_react11.default.createElement(
|
2706
|
-
"p",
|
2707
|
-
{
|
2708
|
-
className: cn(
|
2709
|
-
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
2710
|
-
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
2711
|
-
)
|
2712
|
-
},
|
2713
|
-
props.helperText
|
2714
|
-
), !props.disabled && forceHideHelperText && /* @__PURE__ */ import_react11.default.createElement(
|
2733
|
+
)), !forceHideHelperText && /* @__PURE__ */ import_react11.default.createElement(HelperText, { helperText: props.helperText }), !props.disabled && forceHideHelperText && /* @__PURE__ */ import_react11.default.createElement(
|
2715
2734
|
"div",
|
2716
2735
|
{
|
2717
2736
|
className: cn(
|
@@ -3526,16 +3545,7 @@ var Radio = (0, import_react13.forwardRef)(
|
|
3526
3545
|
opt.label
|
3527
3546
|
);
|
3528
3547
|
})
|
3529
|
-
), !forceHideHelperText && /* @__PURE__ */ import_react13.default.createElement(
|
3530
|
-
"p",
|
3531
|
-
{
|
3532
|
-
className: cn(
|
3533
|
-
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
3534
|
-
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
3535
|
-
)
|
3536
|
-
},
|
3537
|
-
props.helperText
|
3538
|
-
));
|
3548
|
+
), !forceHideHelperText && /* @__PURE__ */ import_react13.default.createElement(HelperText, { helperText: props.helperText }));
|
3539
3549
|
case "bordered":
|
3540
3550
|
return /* @__PURE__ */ import_react13.default.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, 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(
|
3541
3551
|
"div",
|
@@ -3624,16 +3634,7 @@ var Radio = (0, import_react13.forwardRef)(
|
|
3624
3634
|
},
|
3625
3635
|
opt.label
|
3626
3636
|
)
|
3627
|
-
))), /* @__PURE__ */ import_react13.default.createElement(
|
3628
|
-
"p",
|
3629
|
-
{
|
3630
|
-
className: cn(
|
3631
|
-
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
3632
|
-
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
3633
|
-
)
|
3634
|
-
},
|
3635
|
-
props.helperText
|
3636
|
-
));
|
3637
|
+
))), /* @__PURE__ */ import_react13.default.createElement(HelperText, { helperText: props.helperText }));
|
3637
3638
|
}
|
3638
3639
|
}
|
3639
3640
|
);
|
@@ -3903,16 +3904,7 @@ var Combobox = React28.forwardRef(
|
|
3903
3904
|
},
|
3904
3905
|
/* @__PURE__ */ React28.createElement("path", { d: "m6 9 6 6 6-6" })
|
3905
3906
|
)
|
3906
|
-
), /* @__PURE__ */ React28.createElement(
|
3907
|
-
"p",
|
3908
|
-
{
|
3909
|
-
className: cn(
|
3910
|
-
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
3911
|
-
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
3912
|
-
)
|
3913
|
-
},
|
3914
|
-
props.helperText
|
3915
|
-
))), /* @__PURE__ */ React28.createElement(
|
3907
|
+
), /* @__PURE__ */ React28.createElement(HelperText, { helperText: props.helperText }))), /* @__PURE__ */ React28.createElement(
|
3916
3908
|
PopoverContent,
|
3917
3909
|
{
|
3918
3910
|
sideOffset: 0,
|
@@ -4036,16 +4028,7 @@ var Textarea = React29.forwardRef(
|
|
4036
4028
|
ref
|
4037
4029
|
}
|
4038
4030
|
),
|
4039
|
-
/* @__PURE__ */ React29.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, !forceHideHelperText && /* @__PURE__ */ React29.createElement(
|
4040
|
-
"p",
|
4041
|
-
{
|
4042
|
-
className: cn(
|
4043
|
-
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
4044
|
-
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
4045
|
-
)
|
4046
|
-
},
|
4047
|
-
props.helperText
|
4048
|
-
), showCount && countPosition === "bottom" && /* @__PURE__ */ React29.createElement("div", { className: "hawa-text-start hawa-text-xs hawa-transition-all" }, (textareaProps == null ? void 0 : textareaProps.value) ? String(textareaProps == null ? void 0 : textareaProps.value).length : 0, "/", textareaProps == null ? void 0 : textareaProps.maxLength))
|
4031
|
+
/* @__PURE__ */ React29.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, !forceHideHelperText && /* @__PURE__ */ React29.createElement(HelperText, { helperText: props.helperText }), showCount && countPosition === "bottom" && /* @__PURE__ */ React29.createElement("div", { className: "hawa-text-start hawa-text-xs hawa-transition-all" }, (textareaProps == null ? void 0 : textareaProps.value) ? String(textareaProps == null ? void 0 : textareaProps.value).length : 0, "/", textareaProps == null ? void 0 : textareaProps.maxLength))
|
4049
4032
|
);
|
4050
4033
|
}
|
4051
4034
|
);
|
@@ -4549,7 +4532,7 @@ var ScrollArea = React41.forwardRef(({ className, children, orientation = "verti
|
|
4549
4532
|
"div",
|
4550
4533
|
{
|
4551
4534
|
className: cn(
|
4552
|
-
"hawa-pointer-events-none hawa-absolute hawa-bg-background
|
4535
|
+
"hawa-pointer-events-none hawa-absolute hawa-bg-background hawa-h-full hawa-w-[50px] hawa-z-10 hawa-start-0 hawa-mask-fade-right",
|
4553
4536
|
showLeftFade ? "hawa-block" : "hawa-hidden"
|
4554
4537
|
)
|
4555
4538
|
}
|
@@ -4558,7 +4541,7 @@ var ScrollArea = React41.forwardRef(({ className, children, orientation = "verti
|
|
4558
4541
|
"div",
|
4559
4542
|
{
|
4560
4543
|
className: cn(
|
4561
|
-
"hawa-pointer-events-none hawa-absolute hawa-bg-background
|
4544
|
+
"hawa-pointer-events-none hawa-absolute hawa-bg-background hawa-mask-fade-left hawa-end-0 hawa-h-full hawa-w-[50px] hawa-z-10 ",
|
4562
4545
|
showRightFade ? "hawa-block" : "hawa-hidden"
|
4563
4546
|
)
|
4564
4547
|
}
|
@@ -4938,16 +4921,7 @@ var Select = ({
|
|
4938
4921
|
onInputChange: (newValue, action) => props.onInputChange(newValue, action)
|
4939
4922
|
}
|
4940
4923
|
),
|
4941
|
-
!props.hideHelperText && /* @__PURE__ */ import_react33.default.createElement(
|
4942
|
-
"p",
|
4943
|
-
{
|
4944
|
-
className: cn(
|
4945
|
-
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
4946
|
-
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
4947
|
-
)
|
4948
|
-
},
|
4949
|
-
props.helperText
|
4950
|
-
)
|
4924
|
+
!props.hideHelperText && /* @__PURE__ */ import_react33.default.createElement(HelperText, { helperText: props.helperText })
|
4951
4925
|
);
|
4952
4926
|
};
|
4953
4927
|
|
@@ -7088,112 +7062,162 @@ var PhoneInput = ({
|
|
7088
7062
|
),
|
7089
7063
|
...inputProps
|
7090
7064
|
}
|
7091
|
-
))), /* @__PURE__ */ import_react37.default.createElement(
|
7092
|
-
"p",
|
7093
|
-
{
|
7094
|
-
className: cn(
|
7095
|
-
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
7096
|
-
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
7097
|
-
)
|
7098
|
-
},
|
7099
|
-
props.helperText
|
7100
|
-
));
|
7065
|
+
))), /* @__PURE__ */ import_react37.default.createElement(HelperText, { helperText: props.helperText }));
|
7101
7066
|
};
|
7102
7067
|
|
7103
7068
|
// elements/pinInput/PinInput.tsx
|
7104
|
-
var
|
7105
|
-
var
|
7106
|
-
|
7107
|
-
|
7108
|
-
|
7109
|
-
|
7110
|
-
|
7111
|
-
|
7112
|
-
|
7113
|
-
|
7114
|
-
|
7115
|
-
|
7116
|
-
|
7117
|
-
|
7118
|
-
|
7119
|
-
|
7120
|
-
|
7121
|
-
|
7122
|
-
|
7123
|
-
|
7124
|
-
|
7125
|
-
|
7126
|
-
|
7127
|
-
|
7128
|
-
|
7129
|
-
|
7130
|
-
|
7131
|
-
|
7132
|
-
|
7133
|
-
|
7134
|
-
|
7135
|
-
|
7136
|
-
|
7137
|
-
|
7138
|
-
|
7139
|
-
|
7140
|
-
|
7141
|
-
|
7142
|
-
|
7143
|
-
|
7144
|
-
|
7145
|
-
|
7146
|
-
}
|
7147
|
-
};
|
7148
|
-
return /* @__PURE__ */ import_react38.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, /* @__PURE__ */ import_react38.default.createElement(
|
7149
|
-
"div",
|
7150
|
-
{
|
7151
|
-
className: "hawa-flex hawa-w-full hawa-flex-row hawa-justify-center hawa-gap-2",
|
7152
|
-
dir: "ltr"
|
7153
|
-
},
|
7154
|
-
pin.map((value, index) => /* @__PURE__ */ import_react38.default.createElement(
|
7155
|
-
"input",
|
7069
|
+
var React51 = __toESM(require("react"));
|
7070
|
+
var import_input_otp = require("input-otp");
|
7071
|
+
|
7072
|
+
// ../../node_modules/.pnpm/lucide-react@0.379.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
|
7073
|
+
var import_react39 = require("react");
|
7074
|
+
|
7075
|
+
// ../../node_modules/.pnpm/lucide-react@0.379.0_react@18.3.1/node_modules/lucide-react/dist/esm/shared/src/utils.js
|
7076
|
+
var toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
7077
|
+
var mergeClasses = (...classes) => classes.filter((className, index, array) => {
|
7078
|
+
return Boolean(className) && array.indexOf(className) === index;
|
7079
|
+
}).join(" ");
|
7080
|
+
|
7081
|
+
// ../../node_modules/.pnpm/lucide-react@0.379.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js
|
7082
|
+
var import_react38 = require("react");
|
7083
|
+
|
7084
|
+
// ../../node_modules/.pnpm/lucide-react@0.379.0_react@18.3.1/node_modules/lucide-react/dist/esm/defaultAttributes.js
|
7085
|
+
var defaultAttributes = {
|
7086
|
+
xmlns: "http://www.w3.org/2000/svg",
|
7087
|
+
width: 24,
|
7088
|
+
height: 24,
|
7089
|
+
viewBox: "0 0 24 24",
|
7090
|
+
fill: "none",
|
7091
|
+
stroke: "currentColor",
|
7092
|
+
strokeWidth: 2,
|
7093
|
+
strokeLinecap: "round",
|
7094
|
+
strokeLinejoin: "round"
|
7095
|
+
};
|
7096
|
+
|
7097
|
+
// ../../node_modules/.pnpm/lucide-react@0.379.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js
|
7098
|
+
var Icon = (0, import_react38.forwardRef)(
|
7099
|
+
({
|
7100
|
+
color = "currentColor",
|
7101
|
+
size = 24,
|
7102
|
+
strokeWidth = 2,
|
7103
|
+
absoluteStrokeWidth,
|
7104
|
+
className = "",
|
7105
|
+
children,
|
7106
|
+
iconNode,
|
7107
|
+
...rest
|
7108
|
+
}, ref) => {
|
7109
|
+
return (0, import_react38.createElement)(
|
7110
|
+
"svg",
|
7156
7111
|
{
|
7157
|
-
|
7158
|
-
|
7159
|
-
|
7160
|
-
|
7161
|
-
|
7162
|
-
|
7163
|
-
|
7164
|
-
|
7165
|
-
|
7166
|
-
|
7167
|
-
),
|
7168
|
-
|
7169
|
-
|
7170
|
-
|
7171
|
-
|
7172
|
-
|
7173
|
-
|
7174
|
-
|
7175
|
-
|
7112
|
+
ref,
|
7113
|
+
...defaultAttributes,
|
7114
|
+
width: size,
|
7115
|
+
height: size,
|
7116
|
+
stroke: color,
|
7117
|
+
strokeWidth: absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size) : strokeWidth,
|
7118
|
+
className: mergeClasses("lucide", className),
|
7119
|
+
...rest
|
7120
|
+
},
|
7121
|
+
[
|
7122
|
+
...iconNode.map(([tag, attrs]) => (0, import_react38.createElement)(tag, attrs)),
|
7123
|
+
...Array.isArray(children) ? children : [children]
|
7124
|
+
]
|
7125
|
+
);
|
7126
|
+
}
|
7127
|
+
);
|
7128
|
+
|
7129
|
+
// ../../node_modules/.pnpm/lucide-react@0.379.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
|
7130
|
+
var createLucideIcon = (iconName, iconNode) => {
|
7131
|
+
const Component = (0, import_react39.forwardRef)(
|
7132
|
+
({ className, ...props }, ref) => (0, import_react39.createElement)(Icon, {
|
7133
|
+
ref,
|
7134
|
+
iconNode,
|
7135
|
+
className: mergeClasses(`lucide-${toKebabCase(iconName)}`, className),
|
7136
|
+
...props
|
7137
|
+
})
|
7138
|
+
);
|
7139
|
+
Component.displayName = `${iconName}`;
|
7140
|
+
return Component;
|
7141
|
+
};
|
7142
|
+
|
7143
|
+
// ../../node_modules/.pnpm/lucide-react@0.379.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/dot.js
|
7144
|
+
var Dot = createLucideIcon("Dot", [
|
7145
|
+
["circle", { cx: "12.1", cy: "12.1", r: "1", key: "18d7e5" }]
|
7146
|
+
]);
|
7147
|
+
|
7148
|
+
// elements/pinInput/PinInput.tsx
|
7149
|
+
var PinInputRoot = React51.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ React51.createElement(
|
7150
|
+
import_input_otp.OTPInput,
|
7151
|
+
{
|
7152
|
+
ref,
|
7153
|
+
containerClassName: cn(
|
7154
|
+
"hawa-flex hawa-items-center hawa-gap-2 has-[:disabled]:hawa-opacity-50",
|
7155
|
+
containerClassName
|
7156
|
+
),
|
7157
|
+
className: cn("disabled:hawa-cursor-not-allowed", className),
|
7158
|
+
...props
|
7159
|
+
}
|
7160
|
+
));
|
7161
|
+
PinInputRoot.displayName = "PinInputRoot";
|
7162
|
+
var PinInputGroup = React51.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React51.createElement(
|
7163
|
+
"div",
|
7164
|
+
{
|
7165
|
+
ref,
|
7166
|
+
className: cn("hawa-flex hawa-items-center", className),
|
7167
|
+
...props
|
7168
|
+
}
|
7169
|
+
));
|
7170
|
+
PinInputGroup.displayName = "PinInputGroup";
|
7171
|
+
var PinInputSlot = React51.forwardRef(({ index, className, ...props }, ref) => {
|
7172
|
+
const pinInputContext = React51.useContext(import_input_otp.OTPInputContext);
|
7173
|
+
const { char, hasFakeCaret, isActive } = pinInputContext.slots[index];
|
7174
|
+
return /* @__PURE__ */ React51.createElement(
|
7175
|
+
"div",
|
7176
7176
|
{
|
7177
|
+
ref,
|
7177
7178
|
className: cn(
|
7178
|
-
"hawa-
|
7179
|
-
|
7180
|
-
|
7179
|
+
"hawa-border-input hawa-relative hawa-flex hawa-h-10 hawa-w-10 hawa-items-center hawa-justify-center hawa-border-y hawa-border-r hawa-text-sm hawa-transition-all first:hawa-rounded-l-md first:hawa-border-l last:hawa-rounded-r-md",
|
7180
|
+
isActive && "hawa-ring-ring hawa-ring-offset-background hawa-z-10 hawa-ring-2",
|
7181
|
+
className
|
7182
|
+
),
|
7183
|
+
...props
|
7181
7184
|
},
|
7182
|
-
|
7183
|
-
|
7185
|
+
char,
|
7186
|
+
hasFakeCaret && /* @__PURE__ */ React51.createElement("div", { className: "hawa-pointer-events-none hawa-absolute hawa-inset-0 hawa-flex hawa-items-center hawa-justify-center" }, /* @__PURE__ */ React51.createElement("div", { className: "hawa-animate-caret-blink hawa-bg-foreground hawa-h-4 hawa-w-px hawa-duration-1000" }))
|
7187
|
+
);
|
7188
|
+
});
|
7189
|
+
PinInputSlot.displayName = "PinInputSlot";
|
7190
|
+
var PinInputSeperator = React51.forwardRef(({ ...props }, ref) => /* @__PURE__ */ React51.createElement("div", { ref, role: "separator", ...props }, /* @__PURE__ */ React51.createElement(Dot, null)));
|
7191
|
+
PinInputSeperator.displayName = "PinInputSeperator";
|
7192
|
+
var PinInput = ({
|
7193
|
+
separatorPosition = 0,
|
7194
|
+
...props
|
7195
|
+
}) => {
|
7196
|
+
const maxLength = props.maxLength || 6;
|
7197
|
+
const clampedSeparatorPosition = Math.min(separatorPosition, maxLength);
|
7198
|
+
const firstGroupLength = clampedSeparatorPosition > 0 ? clampedSeparatorPosition : 0;
|
7199
|
+
const secondGroupLength = maxLength - firstGroupLength;
|
7200
|
+
return /* @__PURE__ */ React51.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, /* @__PURE__ */ React51.createElement(PinInputRoot, { ...props }, firstGroupLength > 0 && /* @__PURE__ */ React51.createElement(PinInputGroup, { className: "hawa-w-full" }, [...Array(firstGroupLength)].map((_, index) => /* @__PURE__ */ React51.createElement(PinInputSlot, { key: index, index, className: "hawa-w-full" }))), separatorPosition > 0 && separatorPosition < props.maxLength && /* @__PURE__ */ React51.createElement(PinInputSeperator, null), secondGroupLength > 0 && /* @__PURE__ */ React51.createElement(PinInputGroup, { className: "hawa-w-full" }, [...Array(secondGroupLength)].map((_, index) => /* @__PURE__ */ React51.createElement(
|
7201
|
+
PinInputSlot,
|
7202
|
+
{
|
7203
|
+
key: index + firstGroupLength,
|
7204
|
+
index: index + firstGroupLength,
|
7205
|
+
className: "hawa-w-full"
|
7206
|
+
}
|
7207
|
+
)))), /* @__PURE__ */ React51.createElement(HelperText, { helperText: props.helperText }));
|
7184
7208
|
};
|
7185
7209
|
|
7186
7210
|
// elements/stopPropagationWrapper/StopPropagationWrapper.tsx
|
7187
|
-
var
|
7211
|
+
var import_react40 = __toESM(require("react"));
|
7188
7212
|
var StopPropagationWrapper = (props) => {
|
7189
7213
|
const handleClick = (e) => {
|
7190
7214
|
e.stopPropagation();
|
7191
7215
|
};
|
7192
|
-
return /* @__PURE__ */
|
7216
|
+
return /* @__PURE__ */ import_react40.default.createElement("div", { onClick: handleClick }, props.children);
|
7193
7217
|
};
|
7194
7218
|
|
7195
7219
|
// elements/colorPicker/ColorPicker.tsx
|
7196
|
-
var
|
7220
|
+
var import_react41 = __toESM(require("react"));
|
7197
7221
|
var ColorPicker = ({
|
7198
7222
|
containerProps,
|
7199
7223
|
colorPickerProps,
|
@@ -7204,8 +7228,8 @@ var ColorPicker = ({
|
|
7204
7228
|
preview = false,
|
7205
7229
|
...props
|
7206
7230
|
}) => {
|
7207
|
-
const [selectedColor, setSelectedColor] = (0,
|
7208
|
-
(0,
|
7231
|
+
const [selectedColor, setSelectedColor] = (0, import_react41.useState)(props.color);
|
7232
|
+
(0, import_react41.useEffect)(() => {
|
7209
7233
|
if (selectedColor && selectedColor[0] !== "#") {
|
7210
7234
|
setSelectedColor(`#${selectedColor}`);
|
7211
7235
|
}
|
@@ -7222,13 +7246,13 @@ var ColorPicker = ({
|
|
7222
7246
|
props.handleChange(e);
|
7223
7247
|
}
|
7224
7248
|
};
|
7225
|
-
return /* @__PURE__ */
|
7249
|
+
return /* @__PURE__ */ import_react41.default.createElement("div", { className: "hawa-flex hawa-w-fit hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ import_react41.default.createElement(Label2, { ...labelProps }, props.label), isLoading ? /* @__PURE__ */ import_react41.default.createElement(Skeleton, { style: { height: 40, width: 148 } }) : /* @__PURE__ */ import_react41.default.createElement("div", { dir: "ltr", className: "hawa-flex hawa-w-full hawa-flex-row" }, /* @__PURE__ */ import_react41.default.createElement(
|
7226
7250
|
"div",
|
7227
7251
|
{
|
7228
7252
|
style: { height: 40, backgroundColor: selectedColor },
|
7229
7253
|
className: "hawa-rounded-bl-lg hawa-rounded-tl-lg hawa-border"
|
7230
7254
|
},
|
7231
|
-
/* @__PURE__ */
|
7255
|
+
/* @__PURE__ */ import_react41.default.createElement(
|
7232
7256
|
"input",
|
7233
7257
|
{
|
7234
7258
|
disabled: preview,
|
@@ -7247,7 +7271,7 @@ var ColorPicker = ({
|
|
7247
7271
|
...colorPickerProps
|
7248
7272
|
}
|
7249
7273
|
)
|
7250
|
-
), /* @__PURE__ */
|
7274
|
+
), /* @__PURE__ */ import_react41.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_react41.default.createElement(
|
7251
7275
|
"input",
|
7252
7276
|
{
|
7253
7277
|
disabled: preview,
|
@@ -7266,20 +7290,11 @@ var ColorPicker = ({
|
|
7266
7290
|
},
|
7267
7291
|
...textInputProps
|
7268
7292
|
}
|
7269
|
-
))), !forceHideHelperText && /* @__PURE__ */
|
7270
|
-
"p",
|
7271
|
-
{
|
7272
|
-
className: cn(
|
7273
|
-
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
7274
|
-
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
7275
|
-
)
|
7276
|
-
},
|
7277
|
-
props.helperText
|
7278
|
-
));
|
7293
|
+
))), !forceHideHelperText && /* @__PURE__ */ import_react41.default.createElement(HelperText, { helperText: props.helperText }));
|
7279
7294
|
};
|
7280
7295
|
|
7281
7296
|
// elements/progressCircle/ProgressCircle.tsx
|
7282
|
-
var
|
7297
|
+
var import_react42 = __toESM(require("react"));
|
7283
7298
|
var size2config = {
|
7284
7299
|
xs: { radius: 15, strokeWidth: 3 },
|
7285
7300
|
sm: { radius: 19, strokeWidth: 4 },
|
@@ -7296,7 +7311,7 @@ function getLimitedValue(input) {
|
|
7296
7311
|
return input;
|
7297
7312
|
}
|
7298
7313
|
}
|
7299
|
-
var ProgressCircle =
|
7314
|
+
var ProgressCircle = import_react42.default.forwardRef((props, ref) => {
|
7300
7315
|
const {
|
7301
7316
|
value: inputValue,
|
7302
7317
|
size = "md",
|
@@ -7316,7 +7331,7 @@ var ProgressCircle = import_react41.default.forwardRef((props, ref) => {
|
|
7316
7331
|
const circumference = normalizedRadius * 2 * Math.PI;
|
7317
7332
|
const strokeDashoffset = value / 100 * circumference;
|
7318
7333
|
const offset = circumference - strokeDashoffset;
|
7319
|
-
return /* @__PURE__ */
|
7334
|
+
return /* @__PURE__ */ import_react42.default.createElement(import_react42.default.Fragment, null, /* @__PURE__ */ import_react42.default.createElement(
|
7320
7335
|
"div",
|
7321
7336
|
{
|
7322
7337
|
ref,
|
@@ -7325,7 +7340,7 @@ var ProgressCircle = import_react41.default.forwardRef((props, ref) => {
|
|
7325
7340
|
className
|
7326
7341
|
)
|
7327
7342
|
},
|
7328
|
-
/* @__PURE__ */
|
7343
|
+
/* @__PURE__ */ import_react42.default.createElement(
|
7329
7344
|
"svg",
|
7330
7345
|
{
|
7331
7346
|
width: radius * 2,
|
@@ -7333,7 +7348,7 @@ var ProgressCircle = import_react41.default.forwardRef((props, ref) => {
|
|
7333
7348
|
viewBox: `0 0 ${radius * 2} ${radius * 2}`,
|
7334
7349
|
className: "hawa-rotate-180 hawa-transform"
|
7335
7350
|
},
|
7336
|
-
/* @__PURE__ */
|
7351
|
+
/* @__PURE__ */ import_react42.default.createElement(
|
7337
7352
|
"circle",
|
7338
7353
|
{
|
7339
7354
|
r: normalizedRadius,
|
@@ -7349,7 +7364,7 @@ var ProgressCircle = import_react41.default.forwardRef((props, ref) => {
|
|
7349
7364
|
)
|
7350
7365
|
}
|
7351
7366
|
),
|
7352
|
-
value > 0 ? /* @__PURE__ */
|
7367
|
+
value > 0 ? /* @__PURE__ */ import_react42.default.createElement(
|
7353
7368
|
"circle",
|
7354
7369
|
{
|
7355
7370
|
r: normalizedRadius,
|
@@ -7369,24 +7384,24 @@ var ProgressCircle = import_react41.default.forwardRef((props, ref) => {
|
|
7369
7384
|
}
|
7370
7385
|
) : null
|
7371
7386
|
),
|
7372
|
-
/* @__PURE__ */
|
7387
|
+
/* @__PURE__ */ import_react42.default.createElement("div", { className: cn("hawa-absolute hawa-flex") }, children)
|
7373
7388
|
));
|
7374
7389
|
});
|
7375
7390
|
ProgressCircle.displayName = "ProgressCircle";
|
7376
7391
|
|
7377
7392
|
// elements/pagination/Pagination.tsx
|
7378
|
-
var
|
7393
|
+
var import_react43 = __toESM(require("react"));
|
7379
7394
|
var import_react_headless_pagination = require("react-headless-pagination");
|
7380
7395
|
var Pagination = ({
|
7381
7396
|
direction,
|
7382
7397
|
totalPages,
|
7383
7398
|
currentPage
|
7384
7399
|
}) => {
|
7385
|
-
const [page, setPage] =
|
7400
|
+
const [page, setPage] = import_react43.default.useState(currentPage || 0);
|
7386
7401
|
const handlePageChange = (page2) => {
|
7387
7402
|
setPage(page2);
|
7388
7403
|
};
|
7389
|
-
return /* @__PURE__ */
|
7404
|
+
return /* @__PURE__ */ import_react43.default.createElement(
|
7390
7405
|
import_react_headless_pagination.Pagination,
|
7391
7406
|
{
|
7392
7407
|
totalPages,
|
@@ -7398,10 +7413,10 @@ var Pagination = ({
|
|
7398
7413
|
truncableText: "...",
|
7399
7414
|
truncableClassName: "hawa-w-10 hawa-px-0.5 hawa-text-center"
|
7400
7415
|
},
|
7401
|
-
/* @__PURE__ */
|
7416
|
+
/* @__PURE__ */ import_react43.default.createElement(
|
7402
7417
|
import_react_headless_pagination.Pagination.PrevButton,
|
7403
7418
|
{
|
7404
|
-
as: /* @__PURE__ */
|
7419
|
+
as: /* @__PURE__ */ import_react43.default.createElement(
|
7405
7420
|
"button",
|
7406
7421
|
{
|
7407
7422
|
"aria-label": "Previous Table Page",
|
@@ -7411,7 +7426,7 @@ var Pagination = ({
|
|
7411
7426
|
),
|
7412
7427
|
style: { minWidth: 36 }
|
7413
7428
|
},
|
7414
|
-
/* @__PURE__ */
|
7429
|
+
/* @__PURE__ */ import_react43.default.createElement(
|
7415
7430
|
"svg",
|
7416
7431
|
{
|
7417
7432
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -7424,7 +7439,7 @@ var Pagination = ({
|
|
7424
7439
|
strokeLinecap: "round",
|
7425
7440
|
strokeLinejoin: "round"
|
7426
7441
|
},
|
7427
|
-
/* @__PURE__ */
|
7442
|
+
/* @__PURE__ */ import_react43.default.createElement("path", { d: "m15 18-6-6 6-6" })
|
7428
7443
|
)
|
7429
7444
|
),
|
7430
7445
|
className: cn(
|
@@ -7437,17 +7452,17 @@ var Pagination = ({
|
|
7437
7452
|
},
|
7438
7453
|
"Previous"
|
7439
7454
|
),
|
7440
|
-
/* @__PURE__ */
|
7455
|
+
/* @__PURE__ */ import_react43.default.createElement("nav", { className: "hawa-flex hawa-flex-grow hawa-justify-center" }, /* @__PURE__ */ import_react43.default.createElement("ul", { className: "hawa-flex hawa-items-center hawa-gap-1" }, /* @__PURE__ */ import_react43.default.createElement(
|
7441
7456
|
import_react_headless_pagination.Pagination.PageButton,
|
7442
7457
|
{
|
7443
7458
|
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",
|
7444
7459
|
activeClassName: "hawa-bg-primary hawa-text-primary-foreground hawa-transition-all"
|
7445
7460
|
}
|
7446
7461
|
))),
|
7447
|
-
/* @__PURE__ */
|
7462
|
+
/* @__PURE__ */ import_react43.default.createElement(
|
7448
7463
|
import_react_headless_pagination.Pagination.NextButton,
|
7449
7464
|
{
|
7450
|
-
as: /* @__PURE__ */
|
7465
|
+
as: /* @__PURE__ */ import_react43.default.createElement(
|
7451
7466
|
"button",
|
7452
7467
|
{
|
7453
7468
|
"aria-label": "Previous Table Page",
|
@@ -7457,7 +7472,7 @@ var Pagination = ({
|
|
7457
7472
|
),
|
7458
7473
|
style: { minWidth: 36 }
|
7459
7474
|
},
|
7460
|
-
/* @__PURE__ */
|
7475
|
+
/* @__PURE__ */ import_react43.default.createElement(
|
7461
7476
|
"svg",
|
7462
7477
|
{
|
7463
7478
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -7470,7 +7485,7 @@ var Pagination = ({
|
|
7470
7485
|
strokeLinecap: "round",
|
7471
7486
|
strokeLinejoin: "round"
|
7472
7487
|
},
|
7473
|
-
/* @__PURE__ */
|
7488
|
+
/* @__PURE__ */ import_react43.default.createElement("path", { d: "m15 18-6-6 6-6" })
|
7474
7489
|
)
|
7475
7490
|
),
|
7476
7491
|
className: cn(
|
@@ -7487,14 +7502,14 @@ var Pagination = ({
|
|
7487
7502
|
};
|
7488
7503
|
|
7489
7504
|
// elements/passwordInput/PasswordInput.tsx
|
7490
|
-
var
|
7505
|
+
var import_react47 = __toESM(require("react"));
|
7491
7506
|
|
7492
7507
|
// icons/Emojis.tsx
|
7493
|
-
var
|
7508
|
+
var import_react44 = __toESM(require("react"));
|
7494
7509
|
|
7495
7510
|
// icons/InputIcons.tsx
|
7496
|
-
var
|
7497
|
-
var EyeIcon = (props) => /* @__PURE__ */
|
7511
|
+
var import_react45 = __toESM(require("react"));
|
7512
|
+
var EyeIcon = (props) => /* @__PURE__ */ import_react45.default.createElement("div", { className: cn("hawa-h-5 hawa-w-5", props.className) }, /* @__PURE__ */ import_react45.default.createElement(
|
7498
7513
|
"svg",
|
7499
7514
|
{
|
7500
7515
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -7505,10 +7520,10 @@ var EyeIcon = (props) => /* @__PURE__ */ import_react44.default.createElement("d
|
|
7505
7520
|
strokeLinecap: "round",
|
7506
7521
|
strokeLinejoin: "round"
|
7507
7522
|
},
|
7508
|
-
/* @__PURE__ */
|
7509
|
-
/* @__PURE__ */
|
7523
|
+
/* @__PURE__ */ import_react45.default.createElement("path", { d: "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z" }),
|
7524
|
+
/* @__PURE__ */ import_react45.default.createElement("circle", { cx: "12", cy: "12", r: "3" })
|
7510
7525
|
));
|
7511
|
-
var HiddenEyeIcon = (props) => /* @__PURE__ */
|
7526
|
+
var HiddenEyeIcon = (props) => /* @__PURE__ */ import_react45.default.createElement("div", { className: cn("hawa-h-5 hawa-w-5", props.className) }, /* @__PURE__ */ import_react45.default.createElement(
|
7512
7527
|
"svg",
|
7513
7528
|
{
|
7514
7529
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -7519,20 +7534,20 @@ var HiddenEyeIcon = (props) => /* @__PURE__ */ import_react44.default.createElem
|
|
7519
7534
|
strokeLinecap: "round",
|
7520
7535
|
strokeLinejoin: "round"
|
7521
7536
|
},
|
7522
|
-
/* @__PURE__ */
|
7523
|
-
/* @__PURE__ */
|
7524
|
-
/* @__PURE__ */
|
7525
|
-
/* @__PURE__ */
|
7537
|
+
/* @__PURE__ */ import_react45.default.createElement("path", { d: "M9.88 9.88a3 3 0 1 0 4.24 4.24" }),
|
7538
|
+
/* @__PURE__ */ import_react45.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" }),
|
7539
|
+
/* @__PURE__ */ import_react45.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" }),
|
7540
|
+
/* @__PURE__ */ import_react45.default.createElement("line", { x1: "2", x2: "22", y1: "2", y2: "22" })
|
7526
7541
|
));
|
7527
7542
|
|
7528
7543
|
// icons/CommonIcons.tsx
|
7529
|
-
var
|
7544
|
+
var import_react46 = __toESM(require("react"));
|
7530
7545
|
var CheckMark = ({ size = "default", className }) => {
|
7531
7546
|
let sizeStyles2 = {
|
7532
7547
|
default: "hawa-h-5 hawa-w-5",
|
7533
7548
|
sm: "hawa-h-3 hawa-w-3"
|
7534
7549
|
};
|
7535
|
-
return /* @__PURE__ */
|
7550
|
+
return /* @__PURE__ */ import_react46.default.createElement(
|
7536
7551
|
"svg",
|
7537
7552
|
{
|
7538
7553
|
className: cn(sizeStyles2[size], className),
|
@@ -7540,7 +7555,7 @@ var CheckMark = ({ size = "default", className }) => {
|
|
7540
7555
|
fill: "currentColor",
|
7541
7556
|
viewBox: "0 0 20 20"
|
7542
7557
|
},
|
7543
|
-
/* @__PURE__ */
|
7558
|
+
/* @__PURE__ */ import_react46.default.createElement(
|
7544
7559
|
"path",
|
7545
7560
|
{
|
7546
7561
|
fillRule: "evenodd",
|
@@ -7555,7 +7570,7 @@ var UncheckMark = ({ size = "default", className }) => {
|
|
7555
7570
|
default: "hawa-h-5 hawa-w-5",
|
7556
7571
|
sm: "hawa-h-3 hawa-w-3"
|
7557
7572
|
};
|
7558
|
-
return /* @__PURE__ */
|
7573
|
+
return /* @__PURE__ */ import_react46.default.createElement(
|
7559
7574
|
"svg",
|
7560
7575
|
{
|
7561
7576
|
className: cn(sizeStyles2[size], className),
|
@@ -7563,7 +7578,7 @@ var UncheckMark = ({ size = "default", className }) => {
|
|
7563
7578
|
fill: "currentColor",
|
7564
7579
|
viewBox: "0 0 20 20"
|
7565
7580
|
},
|
7566
|
-
/* @__PURE__ */
|
7581
|
+
/* @__PURE__ */ import_react46.default.createElement(
|
7567
7582
|
"path",
|
7568
7583
|
{
|
7569
7584
|
fillRule: "evenodd",
|
@@ -7601,7 +7616,7 @@ var PasswordStrengthIndicator = ({ strength }) => {
|
|
7601
7616
|
strong: "80%",
|
7602
7617
|
"very-strong": "100%"
|
7603
7618
|
}[currentStrengthLevel];
|
7604
|
-
return /* @__PURE__ */
|
7619
|
+
return /* @__PURE__ */ import_react47.default.createElement("div", { className: "hawa-mt-0.5 hawa-h-2 hawa-w-full hawa-rounded hawa-bg-gray-200" }, /* @__PURE__ */ import_react47.default.createElement(
|
7605
7620
|
"div",
|
7606
7621
|
{
|
7607
7622
|
className: `${strengthColors[currentStrengthLevel]} hawa-h-full hawa-rounded hawa-transition-all hawa-duration-300`,
|
@@ -7613,16 +7628,16 @@ var PasswordInput = ({
|
|
7613
7628
|
hidePopover,
|
7614
7629
|
...props
|
7615
7630
|
}) => {
|
7616
|
-
const [inputValue, setInputValue] = (0,
|
7617
|
-
const [isInputFocused, setIsInputFocused] = (0,
|
7618
|
-
const [currentStr, setCurrentStr] = (0,
|
7619
|
-
const [passwordVisible, setPasswordVisible] = (0,
|
7620
|
-
const [lengthCriteriaMet, setLengthCriteriaMet] = (0,
|
7621
|
-
const [numberCriteriaMet, setNumberCriteriaMet] = (0,
|
7622
|
-
const [specialCharCriteriaMet, setSpecialCharCriteriaMet] = (0,
|
7623
|
-
const [lowercaseCriteriaMet, setLowercaseCriteriaMet] = (0,
|
7624
|
-
const [uppercaseCriteriaMet, setUppercaseCriteriaMet] = (0,
|
7625
|
-
(0,
|
7631
|
+
const [inputValue, setInputValue] = (0, import_react47.useState)("");
|
7632
|
+
const [isInputFocused, setIsInputFocused] = (0, import_react47.useState)(false);
|
7633
|
+
const [currentStr, setCurrentStr] = (0, import_react47.useState)(0);
|
7634
|
+
const [passwordVisible, setPasswordVisible] = (0, import_react47.useState)(false);
|
7635
|
+
const [lengthCriteriaMet, setLengthCriteriaMet] = (0, import_react47.useState)(false);
|
7636
|
+
const [numberCriteriaMet, setNumberCriteriaMet] = (0, import_react47.useState)(false);
|
7637
|
+
const [specialCharCriteriaMet, setSpecialCharCriteriaMet] = (0, import_react47.useState)(false);
|
7638
|
+
const [lowercaseCriteriaMet, setLowercaseCriteriaMet] = (0, import_react47.useState)(false);
|
7639
|
+
const [uppercaseCriteriaMet, setUppercaseCriteriaMet] = (0, import_react47.useState)(false);
|
7640
|
+
(0, import_react47.useEffect)(() => {
|
7626
7641
|
const calculateStrength = () => {
|
7627
7642
|
let strengthScore = 0;
|
7628
7643
|
if (lengthCriteriaMet)
|
@@ -7661,7 +7676,7 @@ var PasswordInput = ({
|
|
7661
7676
|
setIsInputFocused(false);
|
7662
7677
|
};
|
7663
7678
|
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";
|
7664
|
-
return /* @__PURE__ */
|
7679
|
+
return /* @__PURE__ */ import_react47.default.createElement("div", null, /* @__PURE__ */ import_react47.default.createElement(
|
7665
7680
|
Popover,
|
7666
7681
|
{
|
7667
7682
|
width: "trigger",
|
@@ -7670,7 +7685,7 @@ var PasswordInput = ({
|
|
7670
7685
|
onOpenChange: setIsInputFocused,
|
7671
7686
|
triggerProps: { asChild: true },
|
7672
7687
|
contentProps: { onOpenAutoFocus: (e) => e.preventDefault() },
|
7673
|
-
trigger: /* @__PURE__ */
|
7688
|
+
trigger: /* @__PURE__ */ import_react47.default.createElement(
|
7674
7689
|
"div",
|
7675
7690
|
{
|
7676
7691
|
onClick: (e) => {
|
@@ -7680,7 +7695,7 @@ var PasswordInput = ({
|
|
7680
7695
|
}
|
7681
7696
|
}
|
7682
7697
|
},
|
7683
|
-
/* @__PURE__ */
|
7698
|
+
/* @__PURE__ */ import_react47.default.createElement(
|
7684
7699
|
Input,
|
7685
7700
|
{
|
7686
7701
|
width: "full",
|
@@ -7690,21 +7705,21 @@ var PasswordInput = ({
|
|
7690
7705
|
onFocus: handleInputFocus,
|
7691
7706
|
onBlur: handleInputBlur,
|
7692
7707
|
type: passwordVisible ? "text" : "password",
|
7693
|
-
endIcon: /* @__PURE__ */
|
7708
|
+
endIcon: /* @__PURE__ */ import_react47.default.createElement(
|
7694
7709
|
"div",
|
7695
7710
|
{
|
7696
7711
|
className: "hawa-cursor-pointer",
|
7697
7712
|
onClick: () => setPasswordVisible(!passwordVisible)
|
7698
7713
|
},
|
7699
|
-
passwordVisible ? /* @__PURE__ */
|
7714
|
+
passwordVisible ? /* @__PURE__ */ import_react47.default.createElement(EyeIcon, { className: "hawa-text-gray-500" }) : /* @__PURE__ */ import_react47.default.createElement(HiddenEyeIcon, { className: "hawa-text-gray-500" }),
|
7700
7715
|
" "
|
7701
7716
|
)
|
7702
7717
|
}
|
7703
7718
|
)
|
7704
7719
|
)
|
7705
7720
|
},
|
7706
|
-
/* @__PURE__ */
|
7707
|
-
), /* @__PURE__ */
|
7721
|
+
/* @__PURE__ */ import_react47.default.createElement("div", { className: "hawa-rounded hawa-p-2" }, /* @__PURE__ */ import_react47.default.createElement("ul", { className: "hawa-rounded hawa-p-2" }, /* @__PURE__ */ import_react47.default.createElement("li", { className: getCriteriaClass(lengthCriteriaMet) }, lengthCriteriaMet ? /* @__PURE__ */ import_react47.default.createElement(CheckMark, { size: "sm" }) : /* @__PURE__ */ import_react47.default.createElement(UncheckMark, { size: "sm" }), "At least 8 characters long"), /* @__PURE__ */ import_react47.default.createElement("li", { className: getCriteriaClass(numberCriteriaMet) }, numberCriteriaMet ? /* @__PURE__ */ import_react47.default.createElement(CheckMark, { size: "sm" }) : /* @__PURE__ */ import_react47.default.createElement(UncheckMark, { size: "sm" }), "At least 1 number"), /* @__PURE__ */ import_react47.default.createElement("li", { className: getCriteriaClass(specialCharCriteriaMet) }, specialCharCriteriaMet ? /* @__PURE__ */ import_react47.default.createElement(CheckMark, { size: "sm" }) : /* @__PURE__ */ import_react47.default.createElement(UncheckMark, { size: "sm" }), "At least 1 special character"), /* @__PURE__ */ import_react47.default.createElement("li", { className: getCriteriaClass(lowercaseCriteriaMet) }, lowercaseCriteriaMet ? /* @__PURE__ */ import_react47.default.createElement(CheckMark, { size: "sm" }) : /* @__PURE__ */ import_react47.default.createElement(UncheckMark, { size: "sm" }), "At least 1 lowercase letter"), /* @__PURE__ */ import_react47.default.createElement("li", { className: getCriteriaClass(uppercaseCriteriaMet) }, uppercaseCriteriaMet ? /* @__PURE__ */ import_react47.default.createElement(CheckMark, { size: "sm" }) : /* @__PURE__ */ import_react47.default.createElement(UncheckMark, { size: "sm" }), "At least 1 uppercase letter")))
|
7722
|
+
), /* @__PURE__ */ import_react47.default.createElement(PasswordStrengthIndicator, { strength: currentStr }));
|
7708
7723
|
};
|
7709
7724
|
|
7710
7725
|
// elements/slider/Slider.tsx
|
@@ -7819,12 +7834,12 @@ var Separator2 = ({
|
|
7819
7834
|
);
|
7820
7835
|
|
7821
7836
|
// elements/scrollIndicator/ScrollIndicator.tsx
|
7822
|
-
var
|
7837
|
+
var import_react48 = __toESM(require("react"));
|
7823
7838
|
var ScrollIndicator = ({
|
7824
7839
|
anchor,
|
7825
7840
|
inContainer = false
|
7826
7841
|
}) => {
|
7827
|
-
const [scrollPercentage, setScrollPercentage] = (0,
|
7842
|
+
const [scrollPercentage, setScrollPercentage] = (0, import_react48.useState)(0);
|
7828
7843
|
const onScroll = () => {
|
7829
7844
|
const scrollElement = anchor.current;
|
7830
7845
|
if (scrollElement) {
|
@@ -7835,7 +7850,7 @@ var ScrollIndicator = ({
|
|
7835
7850
|
setScrollPercentage(percentageScrolled);
|
7836
7851
|
}
|
7837
7852
|
};
|
7838
|
-
(0,
|
7853
|
+
(0, import_react48.useEffect)(() => {
|
7839
7854
|
if (!anchor.current)
|
7840
7855
|
return;
|
7841
7856
|
anchor.current.addEventListener("scroll", onScroll);
|
@@ -7844,7 +7859,7 @@ var ScrollIndicator = ({
|
|
7844
7859
|
(_a = anchor.current) == null ? void 0 : _a.removeEventListener("scroll", onScroll);
|
7845
7860
|
};
|
7846
7861
|
}, [anchor]);
|
7847
|
-
return /* @__PURE__ */
|
7862
|
+
return /* @__PURE__ */ import_react48.default.createElement(
|
7848
7863
|
"div",
|
7849
7864
|
{
|
7850
7865
|
style: {
|
@@ -7860,11 +7875,11 @@ var ScrollIndicator = ({
|
|
7860
7875
|
};
|
7861
7876
|
|
7862
7877
|
// elements/codeBlock/CodeBlock.tsx
|
7863
|
-
var
|
7878
|
+
var import_react49 = __toESM(require("react"));
|
7864
7879
|
var import_prism_react_renderer = require("prism-react-renderer");
|
7865
7880
|
(typeof global !== "undefined" ? global : window).Prism = import_prism_react_renderer.Prism;
|
7866
7881
|
require("prismjs/components/prism-bash");
|
7867
|
-
var CopyIcon = () => /* @__PURE__ */
|
7882
|
+
var CopyIcon = () => /* @__PURE__ */ import_react49.default.createElement(
|
7868
7883
|
"svg",
|
7869
7884
|
{
|
7870
7885
|
"aria-label": "Copy",
|
@@ -7877,8 +7892,8 @@ var CopyIcon = () => /* @__PURE__ */ import_react48.default.createElement(
|
|
7877
7892
|
height: "1em",
|
7878
7893
|
width: "1em"
|
7879
7894
|
},
|
7880
|
-
/* @__PURE__ */
|
7881
|
-
/* @__PURE__ */
|
7895
|
+
/* @__PURE__ */ import_react49.default.createElement("rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2" }),
|
7896
|
+
/* @__PURE__ */ import_react49.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" })
|
7882
7897
|
);
|
7883
7898
|
var CodeBlock = ({
|
7884
7899
|
tabs,
|
@@ -7892,7 +7907,7 @@ var CodeBlock = ({
|
|
7892
7907
|
...props
|
7893
7908
|
}) => {
|
7894
7909
|
const clipboard = useClipboard();
|
7895
|
-
const [selectedTab, setSelectedTab] = (0,
|
7910
|
+
const [selectedTab, setSelectedTab] = (0, import_react49.useState)(0);
|
7896
7911
|
const theme = import_prism_react_renderer.themes.oceanicNext;
|
7897
7912
|
let widthStyles = {
|
7898
7913
|
full: "hawa-w-full",
|
@@ -7900,7 +7915,7 @@ var CodeBlock = ({
|
|
7900
7915
|
sm: "hawa-w-full hawa-max-w-sm",
|
7901
7916
|
xs: "hawa-w-full hawa-max-w-xs"
|
7902
7917
|
};
|
7903
|
-
return /* @__PURE__ */
|
7918
|
+
return /* @__PURE__ */ import_react49.default.createElement(
|
7904
7919
|
"div",
|
7905
7920
|
{
|
7906
7921
|
className: cn(
|
@@ -7909,7 +7924,7 @@ var CodeBlock = ({
|
|
7909
7924
|
classNames == null ? void 0 : classNames.root
|
7910
7925
|
)
|
7911
7926
|
},
|
7912
|
-
fileName && /* @__PURE__ */
|
7927
|
+
fileName && /* @__PURE__ */ import_react49.default.createElement(
|
7913
7928
|
"div",
|
7914
7929
|
{
|
7915
7930
|
className: cn(
|
@@ -7918,7 +7933,7 @@ var CodeBlock = ({
|
|
7918
7933
|
classNames == null ? void 0 : classNames.fileName
|
7919
7934
|
)
|
7920
7935
|
},
|
7921
|
-
/* @__PURE__ */
|
7936
|
+
/* @__PURE__ */ import_react49.default.createElement(
|
7922
7937
|
"div",
|
7923
7938
|
{
|
7924
7939
|
className: cn(
|
@@ -7928,7 +7943,7 @@ var CodeBlock = ({
|
|
7928
7943
|
fileName
|
7929
7944
|
)
|
7930
7945
|
),
|
7931
|
-
tabs && /* @__PURE__ */
|
7946
|
+
tabs && /* @__PURE__ */ import_react49.default.createElement(
|
7932
7947
|
"div",
|
7933
7948
|
{
|
7934
7949
|
className: cn(
|
@@ -7937,7 +7952,7 @@ var CodeBlock = ({
|
|
7937
7952
|
classNames == null ? void 0 : classNames.tabs
|
7938
7953
|
)
|
7939
7954
|
},
|
7940
|
-
tabs.map((tab, i) => /* @__PURE__ */
|
7955
|
+
tabs.map((tab, i) => /* @__PURE__ */ import_react49.default.createElement(
|
7941
7956
|
"div",
|
7942
7957
|
{
|
7943
7958
|
key: i,
|
@@ -7946,7 +7961,7 @@ var CodeBlock = ({
|
|
7946
7961
|
classNames == null ? void 0 : classNames.tab
|
7947
7962
|
)
|
7948
7963
|
},
|
7949
|
-
/* @__PURE__ */
|
7964
|
+
/* @__PURE__ */ import_react49.default.createElement(
|
7950
7965
|
"div",
|
7951
7966
|
{
|
7952
7967
|
onClick: () => setSelectedTab(i),
|
@@ -7958,7 +7973,7 @@ var CodeBlock = ({
|
|
7958
7973
|
)
|
7959
7974
|
))
|
7960
7975
|
),
|
7961
|
-
/* @__PURE__ */
|
7976
|
+
/* @__PURE__ */ import_react49.default.createElement(
|
7962
7977
|
"div",
|
7963
7978
|
{
|
7964
7979
|
className: cn(
|
@@ -7968,22 +7983,22 @@ var CodeBlock = ({
|
|
7968
7983
|
"hawa-overflow-y-auto"
|
7969
7984
|
)
|
7970
7985
|
},
|
7971
|
-
/* @__PURE__ */
|
7986
|
+
/* @__PURE__ */ import_react49.default.createElement(
|
7972
7987
|
"div",
|
7973
7988
|
{
|
7974
7989
|
className: cn(
|
7975
7990
|
"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"
|
7976
7991
|
)
|
7977
7992
|
},
|
7978
|
-
/* @__PURE__ */
|
7993
|
+
/* @__PURE__ */ import_react49.default.createElement(
|
7979
7994
|
Tooltip,
|
7980
7995
|
{
|
7981
7996
|
open: clipboard.copied,
|
7982
7997
|
side: "left",
|
7983
|
-
content: /* @__PURE__ */
|
7998
|
+
content: /* @__PURE__ */ import_react49.default.createElement("div", null, "Copied!"),
|
7984
7999
|
triggerProps: { asChild: true }
|
7985
8000
|
},
|
7986
|
-
/* @__PURE__ */
|
8001
|
+
/* @__PURE__ */ import_react49.default.createElement(
|
7987
8002
|
Button,
|
7988
8003
|
{
|
7989
8004
|
size: "smallIcon",
|
@@ -7991,18 +8006,18 @@ var CodeBlock = ({
|
|
7991
8006
|
variant: "outline",
|
7992
8007
|
className: "hawa-text-gray-200 hawa-opacity-50 dark:hawa-border-gray-200 dark:hover:hawa-border-gray-400"
|
7993
8008
|
},
|
7994
|
-
/* @__PURE__ */
|
8009
|
+
/* @__PURE__ */ import_react49.default.createElement(CopyIcon, null)
|
7995
8010
|
)
|
7996
8011
|
)
|
7997
8012
|
),
|
7998
|
-
/* @__PURE__ */
|
8013
|
+
/* @__PURE__ */ import_react49.default.createElement(
|
7999
8014
|
import_prism_react_renderer.Highlight,
|
8000
8015
|
{
|
8001
8016
|
theme,
|
8002
8017
|
code: tabs ? tabs[selectedTab].code : code || "",
|
8003
8018
|
language
|
8004
8019
|
},
|
8005
|
-
({ tokens, getLineProps, getTokenProps }) => /* @__PURE__ */
|
8020
|
+
({ tokens, getLineProps, getTokenProps }) => /* @__PURE__ */ import_react49.default.createElement(
|
8006
8021
|
"pre",
|
8007
8022
|
{
|
8008
8023
|
className: cn(
|
@@ -8012,7 +8027,7 @@ var CodeBlock = ({
|
|
8012
8027
|
wrapText && "hawa-text-wrap"
|
8013
8028
|
)
|
8014
8029
|
},
|
8015
|
-
tokens.map((line, i) => /* @__PURE__ */
|
8030
|
+
tokens.map((line, i) => /* @__PURE__ */ import_react49.default.createElement("div", { key: i, ...getLineProps({ line }) }, props.lineNumbers && /* @__PURE__ */ import_react49.default.createElement("span", { className: "hawa-mr-4" }, i + 1), line.map((token, key) => /* @__PURE__ */ import_react49.default.createElement("span", { key, ...getTokenProps({ token }) }))))
|
8016
8031
|
)
|
8017
8032
|
)
|
8018
8033
|
)
|
@@ -8020,7 +8035,7 @@ var CodeBlock = ({
|
|
8020
8035
|
};
|
8021
8036
|
|
8022
8037
|
// elements/carousel/Carousel.tsx
|
8023
|
-
var
|
8038
|
+
var import_react50 = __toESM(require("react"));
|
8024
8039
|
var import_embla_carousel_react2 = __toESM(require("embla-carousel-react"));
|
8025
8040
|
var Carousel = ({
|
8026
8041
|
items,
|
@@ -8036,8 +8051,8 @@ var Carousel = ({
|
|
8036
8051
|
direction,
|
8037
8052
|
loop: autoplay ? true : (options == null ? void 0 : options.loop) || false
|
8038
8053
|
});
|
8039
|
-
const [selectedIndex, setSelectedIndex] = (0,
|
8040
|
-
(0,
|
8054
|
+
const [selectedIndex, setSelectedIndex] = (0, import_react50.useState)(0);
|
8055
|
+
(0, import_react50.useEffect)(() => {
|
8041
8056
|
function selectHandler() {
|
8042
8057
|
const index = emblaApi == null ? void 0 : emblaApi.selectedScrollSnap();
|
8043
8058
|
setSelectedIndex(index || 0);
|
@@ -8047,7 +8062,7 @@ var Carousel = ({
|
|
8047
8062
|
emblaApi == null ? void 0 : emblaApi.off("select", selectHandler);
|
8048
8063
|
};
|
8049
8064
|
}, [emblaApi]);
|
8050
|
-
(0,
|
8065
|
+
(0, import_react50.useEffect)(() => {
|
8051
8066
|
let autoplayTimer;
|
8052
8067
|
if (autoplay && emblaApi) {
|
8053
8068
|
autoplayTimer = setInterval(() => {
|
@@ -8059,17 +8074,17 @@ var Carousel = ({
|
|
8059
8074
|
clearInterval(autoplayTimer);
|
8060
8075
|
};
|
8061
8076
|
}, [emblaApi, autoplay, autoplayInterval]);
|
8062
|
-
const length =
|
8077
|
+
const length = import_react50.default.Children.count(items);
|
8063
8078
|
const canScrollNext = !!(emblaApi == null ? void 0 : emblaApi.canScrollNext());
|
8064
8079
|
const canScrollPrev = !!(emblaApi == null ? void 0 : emblaApi.canScrollPrev());
|
8065
|
-
return /* @__PURE__ */
|
8080
|
+
return /* @__PURE__ */ import_react50.default.createElement("div", { className: " hawa-relative hawa-h-full" }, /* @__PURE__ */ import_react50.default.createElement("div", { className: "hawa-h-full hawa-overflow-hidden" }, /* @__PURE__ */ import_react50.default.createElement("div", { className: "hawa-h-full", ref: emblaRef }, /* @__PURE__ */ import_react50.default.createElement("div", { className: "hawa-flex hawa-h-full" }, items == null ? void 0 : items.map((item, i) => /* @__PURE__ */ import_react50.default.createElement(
|
8066
8081
|
"div",
|
8067
8082
|
{
|
8068
8083
|
key: i,
|
8069
8084
|
className: "hawa-flex hawa-h-full hawa-min-w-0 hawa-flex-[0_0_100%] hawa-items-center hawa-justify-center"
|
8070
8085
|
},
|
8071
8086
|
item
|
8072
|
-
))))), /* @__PURE__ */
|
8087
|
+
))))), /* @__PURE__ */ import_react50.default.createElement(
|
8073
8088
|
Dots,
|
8074
8089
|
{
|
8075
8090
|
direction,
|
@@ -8077,7 +8092,7 @@ var Carousel = ({
|
|
8077
8092
|
selectedIndex,
|
8078
8093
|
onDotClick: (index) => emblaApi == null ? void 0 : emblaApi.scrollTo(index)
|
8079
8094
|
}
|
8080
|
-
), showArrows && /* @__PURE__ */
|
8095
|
+
), showArrows && /* @__PURE__ */ import_react50.default.createElement(
|
8081
8096
|
CarouselControls,
|
8082
8097
|
{
|
8083
8098
|
canScrollNext,
|
@@ -8094,7 +8109,7 @@ var Dots = ({
|
|
8094
8109
|
direction
|
8095
8110
|
}) => {
|
8096
8111
|
const arr = new Array(itemsLength).fill(0);
|
8097
|
-
return /* @__PURE__ */
|
8112
|
+
return /* @__PURE__ */ import_react50.default.createElement(
|
8098
8113
|
"div",
|
8099
8114
|
{
|
8100
8115
|
dir: direction,
|
@@ -8102,7 +8117,7 @@ var Dots = ({
|
|
8102
8117
|
},
|
8103
8118
|
arr.map((_, index) => {
|
8104
8119
|
const selected = index === selectedIndex;
|
8105
|
-
return /* @__PURE__ */
|
8120
|
+
return /* @__PURE__ */ import_react50.default.createElement(
|
8106
8121
|
"div",
|
8107
8122
|
{
|
8108
8123
|
key: index,
|
@@ -8117,7 +8132,7 @@ var Dots = ({
|
|
8117
8132
|
);
|
8118
8133
|
};
|
8119
8134
|
var CarouselControls = (props) => {
|
8120
|
-
return /* @__PURE__ */
|
8135
|
+
return /* @__PURE__ */ import_react50.default.createElement("div", { className: "hawa-flex hawa-justify-end hawa-gap-2 " }, /* @__PURE__ */ import_react50.default.createElement(
|
8121
8136
|
"button",
|
8122
8137
|
{
|
8123
8138
|
onClick: () => props.canScrollPrev && props.onPrev(),
|
@@ -8128,7 +8143,7 @@ var CarouselControls = (props) => {
|
|
8128
8143
|
props.canScrollPrev && "hawa-bg-primary"
|
8129
8144
|
)
|
8130
8145
|
},
|
8131
|
-
/* @__PURE__ */
|
8146
|
+
/* @__PURE__ */ import_react50.default.createElement(
|
8132
8147
|
"svg",
|
8133
8148
|
{
|
8134
8149
|
"aria-label": "Chevron Right Icon",
|
@@ -8137,9 +8152,9 @@ var CarouselControls = (props) => {
|
|
8137
8152
|
viewBox: "0 0 16 16",
|
8138
8153
|
className: "hawa-h-2 hawa-w-2 hawa-shrink-0 hawa-rotate-180 hawa-transition-transform hawa-duration-200 "
|
8139
8154
|
},
|
8140
|
-
/* @__PURE__ */
|
8155
|
+
/* @__PURE__ */ import_react50.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" })
|
8141
8156
|
)
|
8142
|
-
), /* @__PURE__ */
|
8157
|
+
), /* @__PURE__ */ import_react50.default.createElement(
|
8143
8158
|
"button",
|
8144
8159
|
{
|
8145
8160
|
onClick: () => props.canScrollNext && props.onNext(),
|
@@ -8150,7 +8165,7 @@ var CarouselControls = (props) => {
|
|
8150
8165
|
props.canScrollNext && "hawa-bg-primary"
|
8151
8166
|
)
|
8152
8167
|
},
|
8153
|
-
/* @__PURE__ */
|
8168
|
+
/* @__PURE__ */ import_react50.default.createElement(
|
8154
8169
|
"svg",
|
8155
8170
|
{
|
8156
8171
|
"aria-label": "Chevron Right Icon",
|
@@ -8159,15 +8174,15 @@ var CarouselControls = (props) => {
|
|
8159
8174
|
viewBox: "0 0 16 16",
|
8160
8175
|
className: "hawa-h-2 hawa-w-2 hawa-shrink-0 hawa-transition-transform hawa-duration-200 "
|
8161
8176
|
},
|
8162
|
-
/* @__PURE__ */
|
8177
|
+
/* @__PURE__ */ import_react50.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" })
|
8163
8178
|
)
|
8164
8179
|
));
|
8165
8180
|
};
|
8166
8181
|
|
8167
8182
|
// elements/count/Count.tsx
|
8168
|
-
var
|
8183
|
+
var import_react51 = __toESM(require("react"));
|
8169
8184
|
var Count = (props) => {
|
8170
|
-
return /* @__PURE__ */
|
8185
|
+
return /* @__PURE__ */ import_react51.default.createElement("div", { className: "hawa-flex hawa-h-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-px-2" }, /* @__PURE__ */ import_react51.default.createElement("div", null, props.icon), /* @__PURE__ */ import_react51.default.createElement("div", { className: "hawa-text-sm" }, props.count));
|
8171
8186
|
};
|
8172
8187
|
|
8173
8188
|
// elements/toast/Toast.tsx
|
@@ -8308,11 +8323,11 @@ var ToastDescription = React67.forwardRef(({ className, size = "default", ...pro
|
|
8308
8323
|
ToastDescription.displayName = ToastPrimitives.Description.displayName;
|
8309
8324
|
|
8310
8325
|
// elements/toaster/Toaster.tsx
|
8311
|
-
var
|
8326
|
+
var import_react52 = __toESM(require("react"));
|
8312
8327
|
function Toaster(props) {
|
8313
8328
|
var _a;
|
8314
8329
|
let isRTL = props.direction === "rtl";
|
8315
|
-
return /* @__PURE__ */
|
8330
|
+
return /* @__PURE__ */ import_react52.default.createElement(ToastProvider, { swipeDirection: isRTL ? "left" : "right" }, (_a = props.toasts) == null ? void 0 : _a.map(function({
|
8316
8331
|
id,
|
8317
8332
|
title,
|
8318
8333
|
description,
|
@@ -8320,7 +8335,7 @@ function Toaster(props) {
|
|
8320
8335
|
action,
|
8321
8336
|
...toastProps
|
8322
8337
|
}) {
|
8323
|
-
return /* @__PURE__ */
|
8338
|
+
return /* @__PURE__ */ import_react52.default.createElement(Toast, { direction: props.direction, key: id, ...toastProps }, /* @__PURE__ */ import_react52.default.createElement(
|
8324
8339
|
"div",
|
8325
8340
|
{
|
8326
8341
|
className: cn(
|
@@ -8328,9 +8343,9 @@ function Toaster(props) {
|
|
8328
8343
|
action && "hawa-justify-between"
|
8329
8344
|
)
|
8330
8345
|
},
|
8331
|
-
/* @__PURE__ */
|
8332
|
-
/* @__PURE__ */
|
8333
|
-
/* @__PURE__ */
|
8346
|
+
/* @__PURE__ */ import_react52.default.createElement("div", { className: "hawa-flex hawa-h-full hawa-flex-col hawa-p-2 hawa-pe-0" }, /* @__PURE__ */ import_react52.default.createElement(ToastClose, null)),
|
8347
|
+
/* @__PURE__ */ import_react52.default.createElement("div", { className: "hawa-mx-0 hawa-h-auto hawa-max-h-full hawa-w-px hawa-bg-primary-foreground/10" }),
|
8348
|
+
/* @__PURE__ */ import_react52.default.createElement(
|
8334
8349
|
"div",
|
8335
8350
|
{
|
8336
8351
|
className: cn(
|
@@ -8338,11 +8353,11 @@ function Toaster(props) {
|
|
8338
8353
|
{ "hawa-p-4": size === "default", "hawa-p-2": size === "sm" }
|
8339
8354
|
)
|
8340
8355
|
},
|
8341
|
-
/* @__PURE__ */
|
8342
|
-
action && /* @__PURE__ */
|
8356
|
+
/* @__PURE__ */ import_react52.default.createElement("div", { className: "hawa-grid hawa-gap-1 hawa-text-start" }, title && /* @__PURE__ */ import_react52.default.createElement(ToastTitle, { size }, title), description && /* @__PURE__ */ import_react52.default.createElement(ToastDescription, { size }, description)),
|
8357
|
+
action && /* @__PURE__ */ import_react52.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-justify-center" }, action)
|
8343
8358
|
)
|
8344
8359
|
));
|
8345
|
-
}), /* @__PURE__ */
|
8360
|
+
}), /* @__PURE__ */ import_react52.default.createElement(
|
8346
8361
|
ToastViewport,
|
8347
8362
|
{
|
8348
8363
|
className: cn("hawa-gap-2", isRTL && "hawa-fixed hawa-left-0")
|
@@ -8351,20 +8366,20 @@ function Toaster(props) {
|
|
8351
8366
|
}
|
8352
8367
|
|
8353
8368
|
// elements/destroyableCard/DestroyableCard.tsx
|
8354
|
-
var
|
8369
|
+
var import_react53 = __toESM(require("react"));
|
8355
8370
|
var DestroyableCard = ({
|
8356
8371
|
position = "bottom-right",
|
8357
8372
|
fixed,
|
8358
8373
|
direction,
|
8359
8374
|
...props
|
8360
8375
|
}) => {
|
8361
|
-
const [closed, setClosed] = (0,
|
8362
|
-
const popUpRef = (0,
|
8376
|
+
const [closed, setClosed] = (0, import_react53.useState)(false);
|
8377
|
+
const popUpRef = (0, import_react53.useRef)(null);
|
8363
8378
|
const boxPosition = {
|
8364
8379
|
"bottom-right": "hawa-right-4 hawa-bottom-4",
|
8365
8380
|
"bottom-left": "hawa-left-4 hawa-bottom-4"
|
8366
8381
|
};
|
8367
|
-
return /* @__PURE__ */
|
8382
|
+
return /* @__PURE__ */ import_react53.default.createElement(
|
8368
8383
|
"div",
|
8369
8384
|
{
|
8370
8385
|
className: cn(
|
@@ -8373,7 +8388,7 @@ var DestroyableCard = ({
|
|
8373
8388
|
),
|
8374
8389
|
ref: popUpRef
|
8375
8390
|
},
|
8376
|
-
/* @__PURE__ */
|
8391
|
+
/* @__PURE__ */ import_react53.default.createElement(
|
8377
8392
|
Card,
|
8378
8393
|
{
|
8379
8394
|
className: cn(
|
@@ -8382,7 +8397,7 @@ var DestroyableCard = ({
|
|
8382
8397
|
),
|
8383
8398
|
dir: direction
|
8384
8399
|
},
|
8385
|
-
/* @__PURE__ */
|
8400
|
+
/* @__PURE__ */ import_react53.default.createElement(
|
8386
8401
|
"button",
|
8387
8402
|
{
|
8388
8403
|
type: "button",
|
@@ -8401,7 +8416,7 @@ var DestroyableCard = ({
|
|
8401
8416
|
}, 200);
|
8402
8417
|
}
|
8403
8418
|
},
|
8404
|
-
/* @__PURE__ */
|
8419
|
+
/* @__PURE__ */ import_react53.default.createElement(
|
8405
8420
|
"svg",
|
8406
8421
|
{
|
8407
8422
|
"aria-hidden": "true",
|
@@ -8409,7 +8424,7 @@ var DestroyableCard = ({
|
|
8409
8424
|
fill: "currentColor",
|
8410
8425
|
viewBox: "0 0 20 20"
|
8411
8426
|
},
|
8412
|
-
/* @__PURE__ */
|
8427
|
+
/* @__PURE__ */ import_react53.default.createElement(
|
8413
8428
|
"path",
|
8414
8429
|
{
|
8415
8430
|
fillRule: "evenodd",
|
@@ -8419,13 +8434,13 @@ var DestroyableCard = ({
|
|
8419
8434
|
)
|
8420
8435
|
)
|
8421
8436
|
),
|
8422
|
-
/* @__PURE__ */
|
8437
|
+
/* @__PURE__ */ import_react53.default.createElement(CardContent, { headless: true }, props.children)
|
8423
8438
|
)
|
8424
8439
|
);
|
8425
8440
|
};
|
8426
8441
|
|
8427
8442
|
// elements/interfaceSettings/InterfaceSettings.tsx
|
8428
|
-
var
|
8443
|
+
var import_react54 = __toESM(require("react"));
|
8429
8444
|
var InterfaceSettings = ({
|
8430
8445
|
orientation = "horizontal",
|
8431
8446
|
width = "default",
|
@@ -8433,13 +8448,13 @@ var InterfaceSettings = ({
|
|
8433
8448
|
handleLanguage,
|
8434
8449
|
...props
|
8435
8450
|
}) => {
|
8436
|
-
const [color, setColor] = (0,
|
8437
|
-
const [language, setLanguage] = (0,
|
8451
|
+
const [color, setColor] = (0, import_react54.useState)(props.currentColorMode);
|
8452
|
+
const [language, setLanguage] = (0, import_react54.useState)(props.currentLanguage);
|
8438
8453
|
let orientationStyle = {
|
8439
8454
|
horizontal: "hawa-flex hawa-flex-row hawa-justify-between",
|
8440
8455
|
vertical: "hawa-flex hawa-flex-col hawa-items-center hawa-gap-2"
|
8441
8456
|
};
|
8442
|
-
return /* @__PURE__ */
|
8457
|
+
return /* @__PURE__ */ import_react54.default.createElement("div", { className: cn(orientationStyle[orientation]) }, /* @__PURE__ */ import_react54.default.createElement(
|
8443
8458
|
Radio,
|
8444
8459
|
{
|
8445
8460
|
name: "language",
|
@@ -8457,7 +8472,7 @@ var InterfaceSettings = ({
|
|
8457
8472
|
{ value: "en", label: "English" }
|
8458
8473
|
]
|
8459
8474
|
}
|
8460
|
-
), /* @__PURE__ */
|
8475
|
+
), /* @__PURE__ */ import_react54.default.createElement(
|
8461
8476
|
Radio,
|
8462
8477
|
{
|
8463
8478
|
name: "theme",
|
@@ -8473,7 +8488,7 @@ var InterfaceSettings = ({
|
|
8473
8488
|
options: [
|
8474
8489
|
{
|
8475
8490
|
value: "light",
|
8476
|
-
label: /* @__PURE__ */
|
8491
|
+
label: /* @__PURE__ */ import_react54.default.createElement(
|
8477
8492
|
"svg",
|
8478
8493
|
{
|
8479
8494
|
width: "15",
|
@@ -8483,7 +8498,7 @@ var InterfaceSettings = ({
|
|
8483
8498
|
xmlns: "http://www.w3.org/2000/svg",
|
8484
8499
|
className: "hawa-h-[1.2rem] hawa-w-[1.2rem] hawa-rotate-0 hawa-scale-100 hawa-transition-all dark:hawa--rotate-90"
|
8485
8500
|
},
|
8486
|
-
/* @__PURE__ */
|
8501
|
+
/* @__PURE__ */ import_react54.default.createElement(
|
8487
8502
|
"path",
|
8488
8503
|
{
|
8489
8504
|
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",
|
@@ -8494,7 +8509,7 @@ var InterfaceSettings = ({
|
|
8494
8509
|
},
|
8495
8510
|
{
|
8496
8511
|
value: "dark",
|
8497
|
-
label: /* @__PURE__ */
|
8512
|
+
label: /* @__PURE__ */ import_react54.default.createElement(
|
8498
8513
|
"svg",
|
8499
8514
|
{
|
8500
8515
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -8505,7 +8520,7 @@ var InterfaceSettings = ({
|
|
8505
8520
|
stroke: "currentColor",
|
8506
8521
|
className: "hawa-h-[1.2rem] hawa-w-[1.2rem] hawa-transition-all dark:hawa-rotate-0 dark:hawa-scale-100"
|
8507
8522
|
},
|
8508
|
-
/* @__PURE__ */
|
8523
|
+
/* @__PURE__ */ import_react54.default.createElement("path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z" })
|
8509
8524
|
)
|
8510
8525
|
}
|
8511
8526
|
]
|
@@ -8514,14 +8529,14 @@ var InterfaceSettings = ({
|
|
8514
8529
|
};
|
8515
8530
|
|
8516
8531
|
// elements/phoneMockup/PhoneMockup.tsx
|
8517
|
-
var
|
8532
|
+
var import_react55 = __toESM(require("react"));
|
8518
8533
|
var PhoneMockup = ({
|
8519
8534
|
children,
|
8520
8535
|
upperOverlayGradiant,
|
8521
8536
|
lowerOverlayGradiant,
|
8522
8537
|
phone,
|
8523
8538
|
hideButtons
|
8524
|
-
}) => /* @__PURE__ */
|
8539
|
+
}) => /* @__PURE__ */ import_react55.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_react55.default.createElement(import_react55.default.Fragment, null, /* @__PURE__ */ import_react55.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_react55.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_react55.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_react55.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_react55.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_react55.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_react55.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)]" }));
|
8525
8540
|
// Annotate the CommonJS export names for ESM import in node:
|
8526
8541
|
0 && (module.exports = {
|
8527
8542
|
Accordion,
|
@@ -8615,6 +8630,10 @@ var PhoneMockup = ({
|
|
8615
8630
|
PhoneInput,
|
8616
8631
|
PhoneMockup,
|
8617
8632
|
PinInput,
|
8633
|
+
PinInputGroup,
|
8634
|
+
PinInputRoot,
|
8635
|
+
PinInputSeperator,
|
8636
|
+
PinInputSlot,
|
8618
8637
|
Popover,
|
8619
8638
|
PopoverContent,
|
8620
8639
|
PopoverPortal,
|
@@ -8670,3 +8689,53 @@ var PhoneMockup = ({
|
|
8670
8689
|
buttonVariants,
|
8671
8690
|
navigationMenuTriggerStyle
|
8672
8691
|
});
|
8692
|
+
/*! Bundled license information:
|
8693
|
+
|
8694
|
+
lucide-react/dist/esm/shared/src/utils.js:
|
8695
|
+
(**
|
8696
|
+
* @license lucide-react v0.379.0 - ISC
|
8697
|
+
*
|
8698
|
+
* This source code is licensed under the ISC license.
|
8699
|
+
* See the LICENSE file in the root directory of this source tree.
|
8700
|
+
*)
|
8701
|
+
|
8702
|
+
lucide-react/dist/esm/defaultAttributes.js:
|
8703
|
+
(**
|
8704
|
+
* @license lucide-react v0.379.0 - ISC
|
8705
|
+
*
|
8706
|
+
* This source code is licensed under the ISC license.
|
8707
|
+
* See the LICENSE file in the root directory of this source tree.
|
8708
|
+
*)
|
8709
|
+
|
8710
|
+
lucide-react/dist/esm/Icon.js:
|
8711
|
+
(**
|
8712
|
+
* @license lucide-react v0.379.0 - ISC
|
8713
|
+
*
|
8714
|
+
* This source code is licensed under the ISC license.
|
8715
|
+
* See the LICENSE file in the root directory of this source tree.
|
8716
|
+
*)
|
8717
|
+
|
8718
|
+
lucide-react/dist/esm/createLucideIcon.js:
|
8719
|
+
(**
|
8720
|
+
* @license lucide-react v0.379.0 - ISC
|
8721
|
+
*
|
8722
|
+
* This source code is licensed under the ISC license.
|
8723
|
+
* See the LICENSE file in the root directory of this source tree.
|
8724
|
+
*)
|
8725
|
+
|
8726
|
+
lucide-react/dist/esm/icons/dot.js:
|
8727
|
+
(**
|
8728
|
+
* @license lucide-react v0.379.0 - ISC
|
8729
|
+
*
|
8730
|
+
* This source code is licensed under the ISC license.
|
8731
|
+
* See the LICENSE file in the root directory of this source tree.
|
8732
|
+
*)
|
8733
|
+
|
8734
|
+
lucide-react/dist/esm/lucide-react.js:
|
8735
|
+
(**
|
8736
|
+
* @license lucide-react v0.379.0 - ISC
|
8737
|
+
*
|
8738
|
+
* This source code is licensed under the ISC license.
|
8739
|
+
* See the LICENSE file in the root directory of this source tree.
|
8740
|
+
*)
|
8741
|
+
*/
|