@sikka/hawa 0.37.1-next → 0.38.0-next
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Radio-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.map +1 -1
- package/dist/alert/index.mjs.map +1 -1
- package/dist/appLayout/index.js.map +1 -1
- package/dist/appLayout/index.mjs.map +1 -1
- package/dist/backToTop/index.js.map +1 -1
- 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 +207 -123
- package/dist/blocks/auth/index.mjs +204 -101
- package/dist/blocks/feedback/index.js +4 -40
- 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 +457 -400
- package/dist/blocks/index.mjs +10 -8
- package/dist/blocks/misc/index.js +5 -32
- package/dist/blocks/misc/index.mjs +5 -5
- package/dist/blocks/pricing/index.js +4 -22
- package/dist/blocks/pricing/index.mjs +4 -4
- package/dist/button/index.js.map +1 -1
- package/dist/button/index.mjs.map +1 -1
- package/dist/calendar/index.js.map +1 -1
- 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-BPHQFAWM.mjs → chunk-4EZL2A64.mjs} +3 -11
- package/dist/{chunk-DS3AACQJ.mjs → chunk-E6C3LDHD.mjs} +1 -1
- package/dist/{chunk-ODOCZAWC.mjs → chunk-E77TUADR.mjs} +1 -1
- package/dist/{chunk-QXH7ZDMN.mjs → chunk-IA5FLRFL.mjs} +3 -11
- package/dist/{chunk-ZTUWU652.mjs → chunk-JJMRBD3S.mjs} +3 -3
- package/dist/{chunk-RNFJAEEU.mjs → chunk-LDJD5ITW.mjs} +1 -0
- package/dist/{chunk-QYWOI3DO.mjs → chunk-MHSSZ6XE.mjs} +204 -144
- package/dist/{chunk-BTDR3VAG.mjs → chunk-Q3HJI7ZE.mjs} +4 -21
- package/dist/{chunk-MDHDHEPZ.mjs → chunk-TMUQCNLO.mjs} +3 -11
- package/dist/{chunk-PXGL7ZXQ.mjs → chunk-V4SUYEVH.mjs} +1 -0
- package/dist/codeBlock/index.js.map +1 -1
- 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 +2 -2
- package/dist/combobox/index.d.ts +2 -2
- 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/command/index.d.mts +1 -1
- package/dist/command/index.d.ts +1 -1
- package/dist/command/index.js +26 -4
- package/dist/command/index.js.map +1 -1
- package/dist/command/index.mjs +26 -4
- package/dist/command/index.mjs.map +1 -1
- package/dist/dataTable/index.js +1 -10
- package/dist/dataTable/index.js.map +1 -1
- package/dist/dataTable/index.mjs +1 -10
- package/dist/dataTable/index.mjs.map +1 -1
- package/dist/datePicker/index.js.map +1 -1
- package/dist/datePicker/index.mjs.map +1 -1
- package/dist/docsLayout/index.js.map +1 -1
- package/dist/docsLayout/index.mjs.map +1 -1
- package/dist/elements/index.d.mts +48 -25
- package/dist/elements/index.d.ts +48 -25
- package/dist/elements/index.js +361 -294
- package/dist/elements/index.mjs +40 -27
- package/dist/fileDropzone/index.js.map +1 -1
- package/dist/fileDropzone/index.mjs.map +1 -1
- package/dist/{index-e_Ob_SnB.d.ts → index-B0aJcA6d.d.mts} +6 -4
- package/dist/{index-e_Ob_SnB.d.mts → index-B0aJcA6d.d.ts} +6 -4
- package/dist/index.css +29 -3
- package/dist/index.d.mts +50 -26
- package/dist/index.d.ts +50 -26
- package/dist/index.js +790 -721
- package/dist/index.mjs +313 -248
- 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.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.map +1 -1
- package/dist/sortButton/index.mjs.map +1 -1
- package/dist/splitButton/index.js.map +1 -1
- 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 +3 -2
package/dist/index.mjs
CHANGED
@@ -2538,16 +2538,7 @@ var Input = forwardRef12(
|
|
2538
2538
|
inputProps == null ? void 0 : inputProps.className
|
2539
2539
|
)
|
2540
2540
|
}
|
2541
|
-
)), !forceHideHelperText && /* @__PURE__ */ React21.createElement(
|
2542
|
-
"p",
|
2543
|
-
{
|
2544
|
-
className: cn(
|
2545
|
-
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
2546
|
-
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
2547
|
-
)
|
2548
|
-
},
|
2549
|
-
props.helperText
|
2550
|
-
), !props.disabled && forceHideHelperText && /* @__PURE__ */ React21.createElement(
|
2541
|
+
)), !forceHideHelperText && /* @__PURE__ */ React21.createElement(HelperText, { helperText: props.helperText }), !props.disabled && forceHideHelperText && /* @__PURE__ */ React21.createElement(
|
2551
2542
|
"div",
|
2552
2543
|
{
|
2553
2544
|
className: cn(
|
@@ -3362,16 +3353,7 @@ var Radio = forwardRef15(
|
|
3362
3353
|
opt.label
|
3363
3354
|
);
|
3364
3355
|
})
|
3365
|
-
), !forceHideHelperText && /* @__PURE__ */ React26.createElement(
|
3366
|
-
"p",
|
3367
|
-
{
|
3368
|
-
className: cn(
|
3369
|
-
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
3370
|
-
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
3371
|
-
)
|
3372
|
-
},
|
3373
|
-
props.helperText
|
3374
|
-
));
|
3356
|
+
), !forceHideHelperText && /* @__PURE__ */ React26.createElement(HelperText, { helperText: props.helperText }));
|
3375
3357
|
case "bordered":
|
3376
3358
|
return /* @__PURE__ */ React26.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ React26.createElement("div", { key: i, className: "hawa-w-full hawa-rounded hawa-border" }, /* @__PURE__ */ React26.createElement(
|
3377
3359
|
"div",
|
@@ -3460,16 +3442,7 @@ var Radio = forwardRef15(
|
|
3460
3442
|
},
|
3461
3443
|
opt.label
|
3462
3444
|
)
|
3463
|
-
))), /* @__PURE__ */ React26.createElement(
|
3464
|
-
"p",
|
3465
|
-
{
|
3466
|
-
className: cn(
|
3467
|
-
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
3468
|
-
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
3469
|
-
)
|
3470
|
-
},
|
3471
|
-
props.helperText
|
3472
|
-
));
|
3445
|
+
))), /* @__PURE__ */ React26.createElement(HelperText, { helperText: props.helperText }));
|
3473
3446
|
}
|
3474
3447
|
}
|
3475
3448
|
);
|
@@ -3596,7 +3569,12 @@ var CommandShortcut = ({
|
|
3596
3569
|
}
|
3597
3570
|
);
|
3598
3571
|
};
|
3599
|
-
var FullCommand = ({
|
3572
|
+
var FullCommand = ({
|
3573
|
+
items,
|
3574
|
+
direction = "ltr",
|
3575
|
+
texts,
|
3576
|
+
onActionClick
|
3577
|
+
}) => {
|
3600
3578
|
return /* @__PURE__ */ React27.createElement(
|
3601
3579
|
Command,
|
3602
3580
|
{
|
@@ -3612,7 +3590,20 @@ var FullCommand = ({ items, direction = "ltr", texts }) => {
|
|
3612
3590
|
/* @__PURE__ */ React27.createElement(CommandList, null, /* @__PURE__ */ React27.createElement(CommandEmpty, null, (texts == null ? void 0 : texts.emptyText) || "No results found."), items.map((item, index) => {
|
3613
3591
|
var _a;
|
3614
3592
|
if (item.type === "group") {
|
3615
|
-
return /* @__PURE__ */ React27.createElement(CommandGroup, { heading: item.heading, key: index }, (_a = item.items) == null ? void 0 : _a.map((subItem, subIndex) => /* @__PURE__ */ React27.createElement(
|
3593
|
+
return /* @__PURE__ */ React27.createElement(CommandGroup, { heading: item.heading, key: index }, (_a = item.items) == null ? void 0 : _a.map((subItem, subIndex) => /* @__PURE__ */ React27.createElement(
|
3594
|
+
CommandItem,
|
3595
|
+
{
|
3596
|
+
key: subIndex,
|
3597
|
+
onSelect: () => {
|
3598
|
+
if (onActionClick)
|
3599
|
+
onActionClick();
|
3600
|
+
subItem.action();
|
3601
|
+
}
|
3602
|
+
},
|
3603
|
+
/* @__PURE__ */ React27.createElement(subItem.icon, { className: "hawa-icon hawa-me-2" }),
|
3604
|
+
/* @__PURE__ */ React27.createElement("span", null, subItem.label),
|
3605
|
+
subItem.shortcut && /* @__PURE__ */ React27.createElement(CommandShortcut, null, subItem.shortcut)
|
3606
|
+
)));
|
3616
3607
|
} else if (item.type === "separator") {
|
3617
3608
|
return /* @__PURE__ */ React27.createElement(CommandSeparator, { key: index });
|
3618
3609
|
}
|
@@ -3620,14 +3611,18 @@ var FullCommand = ({ items, direction = "ltr", texts }) => {
|
|
3620
3611
|
}))
|
3621
3612
|
);
|
3622
3613
|
};
|
3623
|
-
var AppCommand = ({
|
3614
|
+
var AppCommand = ({
|
3615
|
+
commandProps,
|
3616
|
+
dialogProps,
|
3617
|
+
onActionClick
|
3618
|
+
}) => {
|
3624
3619
|
return /* @__PURE__ */ React27.createElement(Dialog2, { ...dialogProps }, /* @__PURE__ */ React27.createElement(
|
3625
3620
|
DialogContent,
|
3626
3621
|
{
|
3627
3622
|
hideCloseButton: true,
|
3628
3623
|
className: "hawa-overflow-hidden !hawa-p-0 hawa-shadow-l "
|
3629
3624
|
},
|
3630
|
-
/* @__PURE__ */ React27.createElement(FullCommand, { ...commandProps })
|
3625
|
+
/* @__PURE__ */ React27.createElement(FullCommand, { ...commandProps, onActionClick })
|
3631
3626
|
));
|
3632
3627
|
};
|
3633
3628
|
CommandShortcut.displayName = "CommandShortcut";
|
@@ -3717,16 +3712,7 @@ var Combobox = React28.forwardRef(
|
|
3717
3712
|
},
|
3718
3713
|
/* @__PURE__ */ React28.createElement("path", { d: "m6 9 6 6 6-6" })
|
3719
3714
|
)
|
3720
|
-
), /* @__PURE__ */ React28.createElement(
|
3721
|
-
"p",
|
3722
|
-
{
|
3723
|
-
className: cn(
|
3724
|
-
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
3725
|
-
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
3726
|
-
)
|
3727
|
-
},
|
3728
|
-
props.helperText
|
3729
|
-
))), /* @__PURE__ */ React28.createElement(
|
3715
|
+
), /* @__PURE__ */ React28.createElement(HelperText, { helperText: props.helperText }))), /* @__PURE__ */ React28.createElement(
|
3730
3716
|
PopoverContent,
|
3731
3717
|
{
|
3732
3718
|
sideOffset: 0,
|
@@ -3850,16 +3836,7 @@ var Textarea = React29.forwardRef(
|
|
3850
3836
|
ref
|
3851
3837
|
}
|
3852
3838
|
),
|
3853
|
-
/* @__PURE__ */ React29.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, !forceHideHelperText && /* @__PURE__ */ React29.createElement(
|
3854
|
-
"p",
|
3855
|
-
{
|
3856
|
-
className: cn(
|
3857
|
-
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
3858
|
-
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
3859
|
-
)
|
3860
|
-
},
|
3861
|
-
props.helperText
|
3862
|
-
), 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))
|
3839
|
+
/* @__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))
|
3863
3840
|
);
|
3864
3841
|
}
|
3865
3842
|
);
|
@@ -4785,7 +4762,7 @@ var ScrollArea = React41.forwardRef(({ className, children, orientation = "verti
|
|
4785
4762
|
"div",
|
4786
4763
|
{
|
4787
4764
|
className: cn(
|
4788
|
-
"hawa-pointer-events-none hawa-absolute hawa-bg-background
|
4765
|
+
"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",
|
4789
4766
|
showLeftFade ? "hawa-block" : "hawa-hidden"
|
4790
4767
|
)
|
4791
4768
|
}
|
@@ -4794,7 +4771,7 @@ var ScrollArea = React41.forwardRef(({ className, children, orientation = "verti
|
|
4794
4771
|
"div",
|
4795
4772
|
{
|
4796
4773
|
className: cn(
|
4797
|
-
"hawa-pointer-events-none hawa-absolute hawa-bg-background
|
4774
|
+
"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 ",
|
4798
4775
|
showRightFade ? "hawa-block" : "hawa-hidden"
|
4799
4776
|
)
|
4800
4777
|
}
|
@@ -5174,16 +5151,7 @@ var Select = ({
|
|
5174
5151
|
onInputChange: (newValue, action) => props.onInputChange(newValue, action)
|
5175
5152
|
}
|
5176
5153
|
),
|
5177
|
-
!props.hideHelperText && /* @__PURE__ */ React43.createElement(
|
5178
|
-
"p",
|
5179
|
-
{
|
5180
|
-
className: cn(
|
5181
|
-
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
5182
|
-
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
5183
|
-
)
|
5184
|
-
},
|
5185
|
-
props.helperText
|
5186
|
-
)
|
5154
|
+
!props.hideHelperText && /* @__PURE__ */ React43.createElement(HelperText, { helperText: props.helperText })
|
5187
5155
|
);
|
5188
5156
|
};
|
5189
5157
|
|
@@ -7324,99 +7292,149 @@ var PhoneInput = ({
|
|
7324
7292
|
),
|
7325
7293
|
...inputProps
|
7326
7294
|
}
|
7327
|
-
))), /* @__PURE__ */ React50.createElement(
|
7328
|
-
"p",
|
7329
|
-
{
|
7330
|
-
className: cn(
|
7331
|
-
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
7332
|
-
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
7333
|
-
)
|
7334
|
-
},
|
7335
|
-
props.helperText
|
7336
|
-
));
|
7295
|
+
))), /* @__PURE__ */ React50.createElement(HelperText, { helperText: props.helperText }));
|
7337
7296
|
};
|
7338
7297
|
|
7339
7298
|
// elements/pinInput/PinInput.tsx
|
7340
|
-
import
|
7341
|
-
|
7342
|
-
|
7343
|
-
|
7344
|
-
|
7345
|
-
|
7346
|
-
|
7347
|
-
|
7348
|
-
|
7349
|
-
|
7350
|
-
|
7351
|
-
|
7352
|
-
|
7353
|
-
|
7354
|
-
|
7355
|
-
|
7356
|
-
|
7357
|
-
|
7358
|
-
|
7359
|
-
|
7360
|
-
|
7361
|
-
|
7362
|
-
|
7363
|
-
|
7364
|
-
|
7365
|
-
|
7366
|
-
|
7367
|
-
|
7368
|
-
|
7369
|
-
|
7370
|
-
|
7371
|
-
|
7372
|
-
|
7373
|
-
|
7374
|
-
|
7375
|
-
|
7376
|
-
|
7377
|
-
|
7378
|
-
|
7379
|
-
|
7380
|
-
|
7381
|
-
|
7382
|
-
}
|
7383
|
-
};
|
7384
|
-
return /* @__PURE__ */ React51.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, /* @__PURE__ */ React51.createElement(
|
7385
|
-
"div",
|
7386
|
-
{
|
7387
|
-
className: "hawa-flex hawa-w-full hawa-flex-row hawa-justify-center hawa-gap-2",
|
7388
|
-
dir: "ltr"
|
7389
|
-
},
|
7390
|
-
pin.map((value, index) => /* @__PURE__ */ React51.createElement(
|
7391
|
-
"input",
|
7299
|
+
import * as React51 from "react";
|
7300
|
+
import { OTPInput, OTPInputContext } from "input-otp";
|
7301
|
+
|
7302
|
+
// ../../node_modules/.pnpm/lucide-react@0.379.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
|
7303
|
+
import { forwardRef as forwardRef25, createElement as createElement25 } from "react";
|
7304
|
+
|
7305
|
+
// ../../node_modules/.pnpm/lucide-react@0.379.0_react@18.3.1/node_modules/lucide-react/dist/esm/shared/src/utils.js
|
7306
|
+
var toKebabCase = (string9) => string9.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
7307
|
+
var mergeClasses = (...classes) => classes.filter((className, index, array) => {
|
7308
|
+
return Boolean(className) && array.indexOf(className) === index;
|
7309
|
+
}).join(" ");
|
7310
|
+
|
7311
|
+
// ../../node_modules/.pnpm/lucide-react@0.379.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js
|
7312
|
+
import { forwardRef as forwardRef24, createElement as createElement24 } from "react";
|
7313
|
+
|
7314
|
+
// ../../node_modules/.pnpm/lucide-react@0.379.0_react@18.3.1/node_modules/lucide-react/dist/esm/defaultAttributes.js
|
7315
|
+
var defaultAttributes = {
|
7316
|
+
xmlns: "http://www.w3.org/2000/svg",
|
7317
|
+
width: 24,
|
7318
|
+
height: 24,
|
7319
|
+
viewBox: "0 0 24 24",
|
7320
|
+
fill: "none",
|
7321
|
+
stroke: "currentColor",
|
7322
|
+
strokeWidth: 2,
|
7323
|
+
strokeLinecap: "round",
|
7324
|
+
strokeLinejoin: "round"
|
7325
|
+
};
|
7326
|
+
|
7327
|
+
// ../../node_modules/.pnpm/lucide-react@0.379.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js
|
7328
|
+
var Icon = forwardRef24(
|
7329
|
+
({
|
7330
|
+
color = "currentColor",
|
7331
|
+
size = 24,
|
7332
|
+
strokeWidth = 2,
|
7333
|
+
absoluteStrokeWidth,
|
7334
|
+
className = "",
|
7335
|
+
children,
|
7336
|
+
iconNode,
|
7337
|
+
...rest
|
7338
|
+
}, ref) => {
|
7339
|
+
return createElement24(
|
7340
|
+
"svg",
|
7392
7341
|
{
|
7393
|
-
|
7394
|
-
|
7395
|
-
|
7396
|
-
|
7397
|
-
|
7398
|
-
|
7399
|
-
|
7400
|
-
|
7401
|
-
|
7402
|
-
|
7403
|
-
),
|
7404
|
-
|
7405
|
-
|
7406
|
-
|
7407
|
-
|
7408
|
-
|
7409
|
-
|
7410
|
-
|
7411
|
-
|
7342
|
+
ref,
|
7343
|
+
...defaultAttributes,
|
7344
|
+
width: size,
|
7345
|
+
height: size,
|
7346
|
+
stroke: color,
|
7347
|
+
strokeWidth: absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size) : strokeWidth,
|
7348
|
+
className: mergeClasses("lucide", className),
|
7349
|
+
...rest
|
7350
|
+
},
|
7351
|
+
[
|
7352
|
+
...iconNode.map(([tag, attrs]) => createElement24(tag, attrs)),
|
7353
|
+
...Array.isArray(children) ? children : [children]
|
7354
|
+
]
|
7355
|
+
);
|
7356
|
+
}
|
7357
|
+
);
|
7358
|
+
|
7359
|
+
// ../../node_modules/.pnpm/lucide-react@0.379.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
|
7360
|
+
var createLucideIcon = (iconName, iconNode) => {
|
7361
|
+
const Component = forwardRef25(
|
7362
|
+
({ className, ...props }, ref) => createElement25(Icon, {
|
7363
|
+
ref,
|
7364
|
+
iconNode,
|
7365
|
+
className: mergeClasses(`lucide-${toKebabCase(iconName)}`, className),
|
7366
|
+
...props
|
7367
|
+
})
|
7368
|
+
);
|
7369
|
+
Component.displayName = `${iconName}`;
|
7370
|
+
return Component;
|
7371
|
+
};
|
7372
|
+
|
7373
|
+
// ../../node_modules/.pnpm/lucide-react@0.379.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/dot.js
|
7374
|
+
var Dot = createLucideIcon("Dot", [
|
7375
|
+
["circle", { cx: "12.1", cy: "12.1", r: "1", key: "18d7e5" }]
|
7376
|
+
]);
|
7377
|
+
|
7378
|
+
// elements/pinInput/PinInput.tsx
|
7379
|
+
var PinInputRoot = React51.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ React51.createElement(
|
7380
|
+
OTPInput,
|
7381
|
+
{
|
7382
|
+
ref,
|
7383
|
+
containerClassName: cn(
|
7384
|
+
"hawa-flex hawa-items-center hawa-gap-2 has-[:disabled]:hawa-opacity-50",
|
7385
|
+
containerClassName
|
7386
|
+
),
|
7387
|
+
className: cn("disabled:hawa-cursor-not-allowed", className),
|
7388
|
+
...props
|
7389
|
+
}
|
7390
|
+
));
|
7391
|
+
PinInputRoot.displayName = "PinInputRoot";
|
7392
|
+
var PinInputGroup = React51.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React51.createElement(
|
7393
|
+
"div",
|
7394
|
+
{
|
7395
|
+
ref,
|
7396
|
+
className: cn("hawa-flex hawa-items-center", className),
|
7397
|
+
...props
|
7398
|
+
}
|
7399
|
+
));
|
7400
|
+
PinInputGroup.displayName = "PinInputGroup";
|
7401
|
+
var PinInputSlot = React51.forwardRef(({ index, className, ...props }, ref) => {
|
7402
|
+
const pinInputContext = React51.useContext(OTPInputContext);
|
7403
|
+
const { char, hasFakeCaret, isActive } = pinInputContext.slots[index];
|
7404
|
+
return /* @__PURE__ */ React51.createElement(
|
7405
|
+
"div",
|
7412
7406
|
{
|
7407
|
+
ref,
|
7413
7408
|
className: cn(
|
7414
|
-
"hawa-
|
7415
|
-
|
7416
|
-
|
7409
|
+
"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",
|
7410
|
+
isActive && "hawa-ring-ring hawa-ring-offset-background hawa-z-10 hawa-ring-2",
|
7411
|
+
className
|
7412
|
+
),
|
7413
|
+
...props
|
7417
7414
|
},
|
7418
|
-
|
7419
|
-
|
7415
|
+
char,
|
7416
|
+
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" }))
|
7417
|
+
);
|
7418
|
+
});
|
7419
|
+
PinInputSlot.displayName = "PinInputSlot";
|
7420
|
+
var PinInputSeperator = React51.forwardRef(({ ...props }, ref) => /* @__PURE__ */ React51.createElement("div", { ref, role: "separator", ...props }, /* @__PURE__ */ React51.createElement(Dot, null)));
|
7421
|
+
PinInputSeperator.displayName = "PinInputSeperator";
|
7422
|
+
var PinInput = ({
|
7423
|
+
separatorPosition = 0,
|
7424
|
+
...props
|
7425
|
+
}) => {
|
7426
|
+
const maxLength = props.maxLength || 6;
|
7427
|
+
const clampedSeparatorPosition = Math.min(separatorPosition, maxLength);
|
7428
|
+
const firstGroupLength = clampedSeparatorPosition > 0 ? clampedSeparatorPosition : 0;
|
7429
|
+
const secondGroupLength = maxLength - firstGroupLength;
|
7430
|
+
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(
|
7431
|
+
PinInputSlot,
|
7432
|
+
{
|
7433
|
+
key: index + firstGroupLength,
|
7434
|
+
index: index + firstGroupLength,
|
7435
|
+
className: "hawa-w-full"
|
7436
|
+
}
|
7437
|
+
)))), /* @__PURE__ */ React51.createElement(HelperText, { helperText: props.helperText }));
|
7420
7438
|
};
|
7421
7439
|
|
7422
7440
|
// elements/stopPropagationWrapper/StopPropagationWrapper.tsx
|
@@ -7430,8 +7448,8 @@ var StopPropagationWrapper = (props) => {
|
|
7430
7448
|
|
7431
7449
|
// elements/colorPicker/ColorPicker.tsx
|
7432
7450
|
import React53, {
|
7433
|
-
useState as
|
7434
|
-
useEffect as
|
7451
|
+
useState as useState29,
|
7452
|
+
useEffect as useEffect27
|
7435
7453
|
} from "react";
|
7436
7454
|
var ColorPicker = ({
|
7437
7455
|
containerProps,
|
@@ -7443,8 +7461,8 @@ var ColorPicker = ({
|
|
7443
7461
|
preview = false,
|
7444
7462
|
...props
|
7445
7463
|
}) => {
|
7446
|
-
const [selectedColor, setSelectedColor] =
|
7447
|
-
|
7464
|
+
const [selectedColor, setSelectedColor] = useState29(props.color);
|
7465
|
+
useEffect27(() => {
|
7448
7466
|
if (selectedColor && selectedColor[0] !== "#") {
|
7449
7467
|
setSelectedColor(`#${selectedColor}`);
|
7450
7468
|
}
|
@@ -7505,16 +7523,7 @@ var ColorPicker = ({
|
|
7505
7523
|
},
|
7506
7524
|
...textInputProps
|
7507
7525
|
}
|
7508
|
-
))), !forceHideHelperText && /* @__PURE__ */ React53.createElement(
|
7509
|
-
"p",
|
7510
|
-
{
|
7511
|
-
className: cn(
|
7512
|
-
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
7513
|
-
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
7514
|
-
)
|
7515
|
-
},
|
7516
|
-
props.helperText
|
7517
|
-
));
|
7526
|
+
))), !forceHideHelperText && /* @__PURE__ */ React53.createElement(HelperText, { helperText: props.helperText }));
|
7518
7527
|
};
|
7519
7528
|
|
7520
7529
|
// elements/progressCircle/ProgressCircle.tsx
|
@@ -7726,7 +7735,7 @@ var Pagination = ({
|
|
7726
7735
|
};
|
7727
7736
|
|
7728
7737
|
// elements/passwordInput/PasswordInput.tsx
|
7729
|
-
import React59, { useEffect as
|
7738
|
+
import React59, { useEffect as useEffect28, useState as useState30 } from "react";
|
7730
7739
|
|
7731
7740
|
// icons/Emojis.tsx
|
7732
7741
|
import React56 from "react";
|
@@ -7963,16 +7972,16 @@ var PasswordInput = ({
|
|
7963
7972
|
hidePopover,
|
7964
7973
|
...props
|
7965
7974
|
}) => {
|
7966
|
-
const [inputValue, setInputValue] =
|
7967
|
-
const [isInputFocused, setIsInputFocused] =
|
7968
|
-
const [currentStr, setCurrentStr] =
|
7969
|
-
const [passwordVisible, setPasswordVisible] =
|
7970
|
-
const [lengthCriteriaMet, setLengthCriteriaMet] =
|
7971
|
-
const [numberCriteriaMet, setNumberCriteriaMet] =
|
7972
|
-
const [specialCharCriteriaMet, setSpecialCharCriteriaMet] =
|
7973
|
-
const [lowercaseCriteriaMet, setLowercaseCriteriaMet] =
|
7974
|
-
const [uppercaseCriteriaMet, setUppercaseCriteriaMet] =
|
7975
|
-
|
7975
|
+
const [inputValue, setInputValue] = useState30("");
|
7976
|
+
const [isInputFocused, setIsInputFocused] = useState30(false);
|
7977
|
+
const [currentStr, setCurrentStr] = useState30(0);
|
7978
|
+
const [passwordVisible, setPasswordVisible] = useState30(false);
|
7979
|
+
const [lengthCriteriaMet, setLengthCriteriaMet] = useState30(false);
|
7980
|
+
const [numberCriteriaMet, setNumberCriteriaMet] = useState30(false);
|
7981
|
+
const [specialCharCriteriaMet, setSpecialCharCriteriaMet] = useState30(false);
|
7982
|
+
const [lowercaseCriteriaMet, setLowercaseCriteriaMet] = useState30(false);
|
7983
|
+
const [uppercaseCriteriaMet, setUppercaseCriteriaMet] = useState30(false);
|
7984
|
+
useEffect28(() => {
|
7976
7985
|
const calculateStrength = () => {
|
7977
7986
|
let strengthScore = 0;
|
7978
7987
|
if (lengthCriteriaMet)
|
@@ -8173,12 +8182,12 @@ var Separator2 = ({
|
|
8173
8182
|
);
|
8174
8183
|
|
8175
8184
|
// elements/scrollIndicator/ScrollIndicator.tsx
|
8176
|
-
import React63, { useState as
|
8185
|
+
import React63, { useState as useState31, useEffect as useEffect29 } from "react";
|
8177
8186
|
var ScrollIndicator = ({
|
8178
8187
|
anchor,
|
8179
8188
|
inContainer = false
|
8180
8189
|
}) => {
|
8181
|
-
const [scrollPercentage, setScrollPercentage] =
|
8190
|
+
const [scrollPercentage, setScrollPercentage] = useState31(0);
|
8182
8191
|
const onScroll = () => {
|
8183
8192
|
const scrollElement = anchor.current;
|
8184
8193
|
if (scrollElement) {
|
@@ -8189,7 +8198,7 @@ var ScrollIndicator = ({
|
|
8189
8198
|
setScrollPercentage(percentageScrolled);
|
8190
8199
|
}
|
8191
8200
|
};
|
8192
|
-
|
8201
|
+
useEffect29(() => {
|
8193
8202
|
if (!anchor.current)
|
8194
8203
|
return;
|
8195
8204
|
anchor.current.addEventListener("scroll", onScroll);
|
@@ -8214,7 +8223,7 @@ var ScrollIndicator = ({
|
|
8214
8223
|
};
|
8215
8224
|
|
8216
8225
|
// elements/codeBlock/CodeBlock.tsx
|
8217
|
-
import React64, { useState as
|
8226
|
+
import React64, { useState as useState32 } from "react";
|
8218
8227
|
import { Highlight, themes, Prism } from "prism-react-renderer";
|
8219
8228
|
(typeof global !== "undefined" ? global : window).Prism = Prism;
|
8220
8229
|
__require("prismjs/components/prism-bash");
|
@@ -8246,7 +8255,7 @@ var CodeBlock = ({
|
|
8246
8255
|
...props
|
8247
8256
|
}) => {
|
8248
8257
|
const clipboard = useClipboard();
|
8249
|
-
const [selectedTab, setSelectedTab] =
|
8258
|
+
const [selectedTab, setSelectedTab] = useState32(0);
|
8250
8259
|
const theme = themes.oceanicNext;
|
8251
8260
|
let widthStyles = {
|
8252
8261
|
full: "hawa-w-full",
|
@@ -8374,7 +8383,7 @@ var CodeBlock = ({
|
|
8374
8383
|
};
|
8375
8384
|
|
8376
8385
|
// elements/carousel/Carousel.tsx
|
8377
|
-
import React65, { useEffect as
|
8386
|
+
import React65, { useEffect as useEffect30, useState as useState33 } from "react";
|
8378
8387
|
import useEmblaCarousel2 from "embla-carousel-react";
|
8379
8388
|
var Carousel = ({
|
8380
8389
|
items,
|
@@ -8390,8 +8399,8 @@ var Carousel = ({
|
|
8390
8399
|
direction,
|
8391
8400
|
loop: autoplay ? true : (options == null ? void 0 : options.loop) || false
|
8392
8401
|
});
|
8393
|
-
const [selectedIndex, setSelectedIndex] =
|
8394
|
-
|
8402
|
+
const [selectedIndex, setSelectedIndex] = useState33(0);
|
8403
|
+
useEffect30(() => {
|
8395
8404
|
function selectHandler() {
|
8396
8405
|
const index = emblaApi == null ? void 0 : emblaApi.selectedScrollSnap();
|
8397
8406
|
setSelectedIndex(index || 0);
|
@@ -8401,7 +8410,7 @@ var Carousel = ({
|
|
8401
8410
|
emblaApi == null ? void 0 : emblaApi.off("select", selectHandler);
|
8402
8411
|
};
|
8403
8412
|
}, [emblaApi]);
|
8404
|
-
|
8413
|
+
useEffect30(() => {
|
8405
8414
|
let autoplayTimer;
|
8406
8415
|
if (autoplay && emblaApi) {
|
8407
8416
|
autoplayTimer = setInterval(() => {
|
@@ -8705,14 +8714,14 @@ function Toaster(props) {
|
|
8705
8714
|
}
|
8706
8715
|
|
8707
8716
|
// elements/destroyableCard/DestroyableCard.tsx
|
8708
|
-
import React69, { useRef as useRef19, useState as
|
8717
|
+
import React69, { useRef as useRef19, useState as useState34 } from "react";
|
8709
8718
|
var DestroyableCard = ({
|
8710
8719
|
position = "bottom-right",
|
8711
8720
|
fixed,
|
8712
8721
|
direction,
|
8713
8722
|
...props
|
8714
8723
|
}) => {
|
8715
|
-
const [closed, setClosed] =
|
8724
|
+
const [closed, setClosed] = useState34(false);
|
8716
8725
|
const popUpRef = useRef19(null);
|
8717
8726
|
const boxPosition = {
|
8718
8727
|
"bottom-right": "hawa-right-4 hawa-bottom-4",
|
@@ -8779,7 +8788,7 @@ var DestroyableCard = ({
|
|
8779
8788
|
};
|
8780
8789
|
|
8781
8790
|
// elements/interfaceSettings/InterfaceSettings.tsx
|
8782
|
-
import React70, { useState as
|
8791
|
+
import React70, { useState as useState35 } from "react";
|
8783
8792
|
var InterfaceSettings = ({
|
8784
8793
|
orientation = "horizontal",
|
8785
8794
|
width = "default",
|
@@ -8787,8 +8796,8 @@ var InterfaceSettings = ({
|
|
8787
8796
|
handleLanguage,
|
8788
8797
|
...props
|
8789
8798
|
}) => {
|
8790
|
-
const [color, setColor] =
|
8791
|
-
const [language, setLanguage] =
|
8799
|
+
const [color, setColor] = useState35(props.currentColorMode);
|
8800
|
+
const [language, setLanguage] = useState35(props.currentLanguage);
|
8792
8801
|
let orientationStyle = {
|
8793
8802
|
horizontal: "hawa-flex hawa-flex-row hawa-justify-between",
|
8794
8803
|
vertical: "hawa-flex hawa-flex-col hawa-items-center hawa-gap-2"
|
@@ -9129,7 +9138,7 @@ var Copyrights = (props) => {
|
|
9129
9138
|
};
|
9130
9139
|
|
9131
9140
|
// layout/navbar/Navbar.tsx
|
9132
|
-
import React75, { useState as
|
9141
|
+
import React75, { useState as useState36 } from "react";
|
9133
9142
|
|
9134
9143
|
// elements/collapsible/Collapsible.tsx
|
9135
9144
|
import * as CollapsiblePrimitive from "@radix-ui/react-collapsible";
|
@@ -9145,7 +9154,7 @@ var Navbar = ({
|
|
9145
9154
|
...props
|
9146
9155
|
}) => {
|
9147
9156
|
var _a, _b;
|
9148
|
-
const [isOpen, setIsOpen] =
|
9157
|
+
const [isOpen, setIsOpen] = useState36(false);
|
9149
9158
|
return /* @__PURE__ */ React75.createElement("nav", { className: " hawa-sticky hawa-top-2 hawa-transition-all" }, /* @__PURE__ */ React75.createElement(
|
9150
9159
|
Collapsible,
|
9151
9160
|
{
|
@@ -9249,7 +9258,7 @@ var Navbar = ({
|
|
9249
9258
|
};
|
9250
9259
|
|
9251
9260
|
// layout/appLayout/AppLayout.tsx
|
9252
|
-
import React76, { useEffect as
|
9261
|
+
import React76, { useEffect as useEffect31, useState as useState37 } from "react";
|
9253
9262
|
import * as Dialog3 from "@radix-ui/react-dialog";
|
9254
9263
|
var LOCAL_STORAGE_KEY2 = "@sikka/hawa/keep-drawer-open";
|
9255
9264
|
var AppLayout = ({
|
@@ -9268,7 +9277,7 @@ var AppLayout = ({
|
|
9268
9277
|
...props
|
9269
9278
|
}) => {
|
9270
9279
|
var _a, _b;
|
9271
|
-
|
9280
|
+
useEffect31(() => {
|
9272
9281
|
let isDrawerOpen = localStorage.getItem(LOCAL_STORAGE_KEY2);
|
9273
9282
|
if (isDrawerOpen === null) {
|
9274
9283
|
localStorage.setItem(LOCAL_STORAGE_KEY2, JSON.stringify(false));
|
@@ -9285,16 +9294,16 @@ var AppLayout = ({
|
|
9285
9294
|
}
|
9286
9295
|
};
|
9287
9296
|
const isRTL = direction === "rtl";
|
9288
|
-
const [openedSidebarItem, setOpenedSidebarItem] =
|
9289
|
-
const [size, setSize] =
|
9297
|
+
const [openedSidebarItem, setOpenedSidebarItem] = useState37("");
|
9298
|
+
const [size, setSize] = useState37(
|
9290
9299
|
typeof window !== "undefined" && window.innerWidth || 1200
|
9291
9300
|
);
|
9292
|
-
const [openSideMenu, setOpenSideMenu] =
|
9301
|
+
const [openSideMenu, setOpenSideMenu] = useState37(() => {
|
9293
9302
|
const savedState = localStorage.getItem(LOCAL_STORAGE_KEY2);
|
9294
9303
|
return savedState ? JSON.parse(savedState) : false;
|
9295
9304
|
});
|
9296
9305
|
const [container, setContainer] = React76.useState(null);
|
9297
|
-
const [keepDrawerOpen, setKeepDrawerOpen] =
|
9306
|
+
const [keepDrawerOpen, setKeepDrawerOpen] = useState37(() => {
|
9298
9307
|
const savedState = localStorage.getItem(LOCAL_STORAGE_KEY2);
|
9299
9308
|
return savedState ? JSON.parse(savedState) : false;
|
9300
9309
|
});
|
@@ -9307,7 +9316,7 @@ var AppLayout = ({
|
|
9307
9316
|
}
|
9308
9317
|
};
|
9309
9318
|
const ref = useClickOutside(handleClickOutside);
|
9310
|
-
|
9319
|
+
useEffect31(() => {
|
9311
9320
|
if (typeof window !== "undefined") {
|
9312
9321
|
const resize = () => {
|
9313
9322
|
setSize(window.innerWidth);
|
@@ -9324,13 +9333,13 @@ var AppLayout = ({
|
|
9324
9333
|
};
|
9325
9334
|
}
|
9326
9335
|
}, []);
|
9327
|
-
|
9336
|
+
useEffect31(() => {
|
9328
9337
|
setKeepDrawerOpen(() => {
|
9329
9338
|
const savedState = localStorage.getItem(LOCAL_STORAGE_KEY2);
|
9330
9339
|
return savedState ? JSON.parse(savedState) : true;
|
9331
9340
|
});
|
9332
9341
|
}, [setKeepDrawerOpen]);
|
9333
|
-
|
9342
|
+
useEffect31(() => {
|
9334
9343
|
if (size > 600) {
|
9335
9344
|
setOpenSideMenu(keepDrawerOpen);
|
9336
9345
|
} else {
|
@@ -9899,9 +9908,9 @@ var MenubarShortcut = ({
|
|
9899
9908
|
MenubarShortcut.displayname = "MenubarShortcut";
|
9900
9909
|
|
9901
9910
|
// layout/appTabs/AppTabs.tsx
|
9902
|
-
import React79, { useState as
|
9911
|
+
import React79, { useState as useState38 } from "react";
|
9903
9912
|
var AppTabs = ({ tabs, className }) => {
|
9904
|
-
const [selectedIndex, setSelectedIndex] =
|
9913
|
+
const [selectedIndex, setSelectedIndex] = useState38(0);
|
9905
9914
|
return /* @__PURE__ */ React79.createElement(
|
9906
9915
|
"div",
|
9907
9916
|
{
|
@@ -9943,7 +9952,7 @@ var AppTabs = ({ tabs, className }) => {
|
|
9943
9952
|
};
|
9944
9953
|
|
9945
9954
|
// layout/docsLayout/DocsLayout.tsx
|
9946
|
-
import React81, { useEffect as
|
9955
|
+
import React81, { useEffect as useEffect32, useRef as useRef21, useState as useState39 } from "react";
|
9947
9956
|
|
9948
9957
|
// layout/docsSidebar/DocsSidebar.tsx
|
9949
9958
|
import React80 from "react";
|
@@ -10039,9 +10048,9 @@ var DocsLayout = ({
|
|
10039
10048
|
if (typeof window == "undefined") {
|
10040
10049
|
size = 1200;
|
10041
10050
|
}
|
10042
|
-
const [currentPage, setCurrentPage] =
|
10043
|
-
const [openSideMenu, setOpenSideMenu] =
|
10044
|
-
|
10051
|
+
const [currentPage, setCurrentPage] = useState39("Introduction");
|
10052
|
+
const [openSideMenu, setOpenSideMenu] = useState39(true);
|
10053
|
+
useEffect32(() => {
|
10045
10054
|
const handleClickOutside = (event) => {
|
10046
10055
|
if (ref.current && !ref.current.contains(event.target) && !openSideMenu) {
|
10047
10056
|
setOpenSideMenu(false);
|
@@ -10052,7 +10061,7 @@ var DocsLayout = ({
|
|
10052
10061
|
document.removeEventListener("click", handleClickOutside, true);
|
10053
10062
|
};
|
10054
10063
|
}, [openSideMenu]);
|
10055
|
-
|
10064
|
+
useEffect32(() => {
|
10056
10065
|
const handleResize = () => {
|
10057
10066
|
setOpenSideMenu(window.innerWidth > 600 ? true : false);
|
10058
10067
|
};
|
@@ -10069,7 +10078,7 @@ var DocsLayout = ({
|
|
10069
10078
|
setCurrentPage(entry.target.id);
|
10070
10079
|
}
|
10071
10080
|
};
|
10072
|
-
|
10081
|
+
useEffect32(() => {
|
10073
10082
|
observerRef.current = new IntersectionObserver(handleIntersection, {
|
10074
10083
|
threshold: 0.5
|
10075
10084
|
// Adjust threshold as needed to determine when a section is in view
|
@@ -10311,7 +10320,7 @@ var AuthButtons = (props) => {
|
|
10311
10320
|
|
10312
10321
|
// blocks/auth/LoginForm.tsx
|
10313
10322
|
import React83 from "react";
|
10314
|
-
import { useState as
|
10323
|
+
import { useState as useState40 } from "react";
|
10315
10324
|
import { Controller, useForm } from "react-hook-form";
|
10316
10325
|
import { zodResolver } from "@hookform/resolvers/zod";
|
10317
10326
|
import {
|
@@ -10328,7 +10337,7 @@ var LoginForm = ({
|
|
10328
10337
|
...props
|
10329
10338
|
}) => {
|
10330
10339
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q;
|
10331
|
-
const [passwordVisible, setPasswordVisible] =
|
10340
|
+
const [passwordVisible, setPasswordVisible] = useState40(false);
|
10332
10341
|
const thirdPartyAuthTexts = {
|
10333
10342
|
continueWithGoogle: texts == null ? void 0 : texts.continueWithGoogle,
|
10334
10343
|
continueWithTwitter: texts == null ? void 0 : texts.continueWithTwitter,
|
@@ -10647,7 +10656,7 @@ var LoginForm = ({
|
|
10647
10656
|
};
|
10648
10657
|
|
10649
10658
|
// blocks/auth/RegisterForm.tsx
|
10650
|
-
import React84, { useState as
|
10659
|
+
import React84, { useState as useState41 } from "react";
|
10651
10660
|
import { Controller as Controller2, FormProvider, useForm as useForm2 } from "react-hook-form";
|
10652
10661
|
import { zodResolver as zodResolver2 } from "@hookform/resolvers/zod";
|
10653
10662
|
import * as z2 from "zod";
|
@@ -10659,7 +10668,7 @@ var RegisterForm = ({
|
|
10659
10668
|
...props
|
10660
10669
|
}) => {
|
10661
10670
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
10662
|
-
const [passwordVisible, setPasswordVisible] =
|
10671
|
+
const [passwordVisible, setPasswordVisible] = useState41(false);
|
10663
10672
|
const thirdPartyAuthTexts = {
|
10664
10673
|
continueWithGoogle: texts == null ? void 0 : texts.continueWithGoogle,
|
10665
10674
|
continueWithTwitter: texts == null ? void 0 : texts.continueWithTwitter,
|
@@ -11280,21 +11289,24 @@ var ResetPasswordForm = ({
|
|
11280
11289
|
};
|
11281
11290
|
|
11282
11291
|
// blocks/auth/CodeConfirmation.tsx
|
11283
|
-
import React89, { useEffect as
|
11292
|
+
import React89, { useEffect as useEffect33, useState as useState42 } from "react";
|
11284
11293
|
import { Controller as Controller5, useForm as useForm5 } from "react-hook-form";
|
11285
11294
|
import { zodResolver as zodResolver5 } from "@hookform/resolvers/zod";
|
11286
11295
|
import * as z5 from "zod";
|
11287
|
-
var CodeConfirmation = (
|
11296
|
+
var CodeConfirmation = ({
|
11297
|
+
codeLength = 6,
|
11298
|
+
...props
|
11299
|
+
}) => {
|
11288
11300
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
|
11289
11301
|
const formSchema = z5.object({
|
11290
|
-
otp_code: z5.string({ required_error: (_a = props.texts) == null ? void 0 : _a.codeRequiredText }).min(
|
11302
|
+
otp_code: z5.string({ required_error: (_a = props.texts) == null ? void 0 : _a.codeRequiredText }).min(codeLength, { message: (_b = props.texts) == null ? void 0 : _b.codeTooShort })
|
11291
11303
|
});
|
11292
11304
|
const { handleSubmit, control, formState, setValue } = useForm5({
|
11293
11305
|
resolver: zodResolver5(formSchema)
|
11294
11306
|
});
|
11295
|
-
const [resendTimer, setResendTimer] =
|
11296
|
-
const [remainingTime, setRemainingTime] =
|
11297
|
-
const [showResendTimer, setShowResendTimer] =
|
11307
|
+
const [resendTimer, setResendTimer] = useState42(null);
|
11308
|
+
const [remainingTime, setRemainingTime] = useState42(0);
|
11309
|
+
const [showResendTimer, setShowResendTimer] = useState42(false);
|
11298
11310
|
const startResendTimer = () => {
|
11299
11311
|
if (resendTimer !== null) {
|
11300
11312
|
clearInterval(resendTimer);
|
@@ -11316,7 +11328,7 @@ var CodeConfirmation = (props) => {
|
|
11316
11328
|
}, 1e3);
|
11317
11329
|
setResendTimer(newTimer);
|
11318
11330
|
};
|
11319
|
-
|
11331
|
+
useEffect33(() => {
|
11320
11332
|
return () => {
|
11321
11333
|
if (resendTimer !== null) {
|
11322
11334
|
clearInterval(resendTimer);
|
@@ -11354,10 +11366,9 @@ var CodeConfirmation = (props) => {
|
|
11354
11366
|
return /* @__PURE__ */ React89.createElement(
|
11355
11367
|
PinInput,
|
11356
11368
|
{
|
11357
|
-
|
11358
|
-
|
11359
|
-
|
11360
|
-
helperText: (_a2 = formState.errors.otp_code) == null ? void 0 : _a2.message
|
11369
|
+
maxLength: codeLength,
|
11370
|
+
helperText: (_a2 = formState.errors.otp_code) == null ? void 0 : _a2.message,
|
11371
|
+
...field
|
11361
11372
|
}
|
11362
11373
|
);
|
11363
11374
|
}
|
@@ -11379,7 +11390,7 @@ var CodeConfirmation = (props) => {
|
|
11379
11390
|
};
|
11380
11391
|
|
11381
11392
|
// blocks/feedback/UserReferralSource.tsx
|
11382
|
-
import React90, { useRef as useRef22, useState as
|
11393
|
+
import React90, { useRef as useRef22, useState as useState43 } from "react";
|
11383
11394
|
import { Controller as Controller6, useForm as useForm6 } from "react-hook-form";
|
11384
11395
|
import { zodResolver as zodResolver6 } from "@hookform/resolvers/zod";
|
11385
11396
|
import * as z6 from "zod";
|
@@ -11389,7 +11400,7 @@ var UserReferralSource = ({
|
|
11389
11400
|
...props
|
11390
11401
|
}) => {
|
11391
11402
|
var _a, _b;
|
11392
|
-
const [closed, setClosed] =
|
11403
|
+
const [closed, setClosed] = useState43(false);
|
11393
11404
|
const popUpRef = useRef22(null);
|
11394
11405
|
const formSchema = z6.object({
|
11395
11406
|
source: z6.string({ required_error: (_a = props.texts) == null ? void 0 : _a.pleaseSelectOption }),
|
@@ -11537,21 +11548,21 @@ var UserReferralSource = ({
|
|
11537
11548
|
};
|
11538
11549
|
|
11539
11550
|
// blocks/feedback/FeedbackRating.tsx
|
11540
|
-
import React91, { useEffect as
|
11551
|
+
import React91, { useEffect as useEffect34, useRef as useRef23, useState as useState44 } from "react";
|
11541
11552
|
var FeedbackRating = ({
|
11542
11553
|
position = "bottom-right",
|
11543
11554
|
...props
|
11544
11555
|
}) => {
|
11545
|
-
const [closed, setClosed] =
|
11546
|
-
const [answered, setAnswered] =
|
11547
|
-
const [clickedOption, setClickedOption] =
|
11548
|
-
const [closingTimer, setClosingTimer] =
|
11556
|
+
const [closed, setClosed] = useState44(false);
|
11557
|
+
const [answered, setAnswered] = useState44(false);
|
11558
|
+
const [clickedOption, setClickedOption] = useState44(null);
|
11559
|
+
const [closingTimer, setClosingTimer] = useState44(5);
|
11549
11560
|
const popUpRef = useRef23(null);
|
11550
11561
|
const boxPosition = {
|
11551
11562
|
"bottom-right": "hawa-right-4",
|
11552
11563
|
"bottom-left": "hawa-left-4"
|
11553
11564
|
};
|
11554
|
-
|
11565
|
+
useEffect34(() => {
|
11555
11566
|
const timeoutHide = setTimeout(() => {
|
11556
11567
|
if (closingTimer >= 0) {
|
11557
11568
|
setClosingTimer(closingTimer - 1);
|
@@ -11651,12 +11662,12 @@ var FeedbackRating = ({
|
|
11651
11662
|
};
|
11652
11663
|
|
11653
11664
|
// blocks/feedback/FeedbackEmoji.tsx
|
11654
|
-
import React92, { useState as
|
11665
|
+
import React92, { useState as useState45 } from "react";
|
11655
11666
|
var FeedbackEmoji = (props) => {
|
11656
|
-
const [selectedEmoji, setSelectedEmoji] =
|
11657
|
-
const [loadingSubmit, setLoadingSubmit] =
|
11658
|
-
const [feedbackText, setFeedbackText] =
|
11659
|
-
const [helperText, setHelperText] =
|
11667
|
+
const [selectedEmoji, setSelectedEmoji] = useState45(null);
|
11668
|
+
const [loadingSubmit, setLoadingSubmit] = useState45(false);
|
11669
|
+
const [feedbackText, setFeedbackText] = useState45("");
|
11670
|
+
const [helperText, setHelperText] = useState45(false);
|
11660
11671
|
let emojis = [
|
11661
11672
|
{ icon: /* @__PURE__ */ React92.createElement(VeryGoodEmoji, null), value: "very-good" },
|
11662
11673
|
{ icon: /* @__PURE__ */ React92.createElement(GoodEmoji, null), value: "good" },
|
@@ -12220,9 +12231,9 @@ var ContactForm = ({
|
|
12220
12231
|
import React107 from "react";
|
12221
12232
|
|
12222
12233
|
// blocks/cards/ActionCard.tsx
|
12223
|
-
import React102, { useState as
|
12234
|
+
import React102, { useState as useState46 } from "react";
|
12224
12235
|
var ActionCard = (props) => {
|
12225
|
-
const [hovered, setHovered] =
|
12236
|
+
const [hovered, setHovered] = useState46(false);
|
12226
12237
|
return /* @__PURE__ */ React102.createElement("div", { className: "hawa-flex hawa-h-full hawa-w-full hawa-flex-col hawa-gap-1" }, /* @__PURE__ */ React102.createElement(
|
12227
12238
|
"div",
|
12228
12239
|
{
|
@@ -12259,15 +12270,15 @@ var ActionCard = (props) => {
|
|
12259
12270
|
};
|
12260
12271
|
|
12261
12272
|
// blocks/cards/AdCard.tsx
|
12262
|
-
import React103, { useState as
|
12273
|
+
import React103, { useState as useState47, useEffect as useEffect35, useRef as useRef24 } from "react";
|
12263
12274
|
var AdCard = ({
|
12264
12275
|
orientation = "vertical",
|
12265
12276
|
...props
|
12266
12277
|
}) => {
|
12267
12278
|
const adRef = useRef24(null);
|
12268
|
-
const [closed, setClosed] =
|
12279
|
+
const [closed, setClosed] = useState47(false);
|
12269
12280
|
let duration = 0;
|
12270
|
-
|
12281
|
+
useEffect35(() => {
|
12271
12282
|
if (duration) {
|
12272
12283
|
const timeoutHide = setTimeout(() => {
|
12273
12284
|
setClosed(true);
|
@@ -12455,7 +12466,7 @@ var PricingCard = ({
|
|
12455
12466
|
};
|
12456
12467
|
|
12457
12468
|
// blocks/cards/ItemCard.tsx
|
12458
|
-
import React105, { useEffect as
|
12469
|
+
import React105, { useEffect as useEffect36, useState as useState48 } from "react";
|
12459
12470
|
var ItemCard = ({
|
12460
12471
|
actions,
|
12461
12472
|
counts,
|
@@ -12484,12 +12495,12 @@ var ItemCard = ({
|
|
12484
12495
|
)
|
12485
12496
|
};
|
12486
12497
|
let headerActionsButtonStyle = "hawa-inline-block hawa-rounded hawa-p-1 hawa-text-sm hawa-text-gray-500 hover:hawa-bg-gray-100 focus:hawa-outline-none focus:hawa-ring-4 focus:hawa-ring-gray-200 dark:hawa-text-gray-400 dark:hover:hawa-bg-gray-700 dark:focus:hawa-ring-gray-700";
|
12487
|
-
const [openActionHeader, setOpenActionHeader] =
|
12498
|
+
const [openActionHeader, setOpenActionHeader] = useState48(false);
|
12488
12499
|
function handleOpenActionHeader(e) {
|
12489
12500
|
e.stopPropagation();
|
12490
12501
|
setOpenActionHeader(!openActionHeader);
|
12491
12502
|
}
|
12492
|
-
|
12503
|
+
useEffect36(() => {
|
12493
12504
|
window.onclick = () => {
|
12494
12505
|
if (openActionHeader) {
|
12495
12506
|
setOpenActionHeader(false);
|
@@ -12816,9 +12827,9 @@ var ComparingPlans = (props) => {
|
|
12816
12827
|
};
|
12817
12828
|
|
12818
12829
|
// blocks/pricing/HorizontalPricing.tsx
|
12819
|
-
import React109, { useState as
|
12830
|
+
import React109, { useState as useState49 } from "react";
|
12820
12831
|
var HorizontalPricing = (props) => {
|
12821
|
-
const [selectedCard, setSelectedCard] =
|
12832
|
+
const [selectedCard, setSelectedCard] = useState49("");
|
12822
12833
|
let data = [
|
12823
12834
|
{ title: "basic", price: "$49", cycle: "/mo" },
|
12824
12835
|
{ title: "business", price: "$99", cycle: "/mo" },
|
@@ -13067,6 +13078,10 @@ export {
|
|
13067
13078
|
PhoneInput,
|
13068
13079
|
PhoneMockup,
|
13069
13080
|
PinInput,
|
13081
|
+
PinInputGroup,
|
13082
|
+
PinInputRoot,
|
13083
|
+
PinInputSeperator,
|
13084
|
+
PinInputSlot,
|
13070
13085
|
Popover,
|
13071
13086
|
PopoverContent,
|
13072
13087
|
PopoverPortal,
|
@@ -13150,3 +13165,53 @@ export {
|
|
13150
13165
|
useToast,
|
13151
13166
|
useWindowSize
|
13152
13167
|
};
|
13168
|
+
/*! Bundled license information:
|
13169
|
+
|
13170
|
+
lucide-react/dist/esm/shared/src/utils.js:
|
13171
|
+
(**
|
13172
|
+
* @license lucide-react v0.379.0 - ISC
|
13173
|
+
*
|
13174
|
+
* This source code is licensed under the ISC license.
|
13175
|
+
* See the LICENSE file in the root directory of this source tree.
|
13176
|
+
*)
|
13177
|
+
|
13178
|
+
lucide-react/dist/esm/defaultAttributes.js:
|
13179
|
+
(**
|
13180
|
+
* @license lucide-react v0.379.0 - ISC
|
13181
|
+
*
|
13182
|
+
* This source code is licensed under the ISC license.
|
13183
|
+
* See the LICENSE file in the root directory of this source tree.
|
13184
|
+
*)
|
13185
|
+
|
13186
|
+
lucide-react/dist/esm/Icon.js:
|
13187
|
+
(**
|
13188
|
+
* @license lucide-react v0.379.0 - ISC
|
13189
|
+
*
|
13190
|
+
* This source code is licensed under the ISC license.
|
13191
|
+
* See the LICENSE file in the root directory of this source tree.
|
13192
|
+
*)
|
13193
|
+
|
13194
|
+
lucide-react/dist/esm/createLucideIcon.js:
|
13195
|
+
(**
|
13196
|
+
* @license lucide-react v0.379.0 - ISC
|
13197
|
+
*
|
13198
|
+
* This source code is licensed under the ISC license.
|
13199
|
+
* See the LICENSE file in the root directory of this source tree.
|
13200
|
+
*)
|
13201
|
+
|
13202
|
+
lucide-react/dist/esm/icons/dot.js:
|
13203
|
+
(**
|
13204
|
+
* @license lucide-react v0.379.0 - ISC
|
13205
|
+
*
|
13206
|
+
* This source code is licensed under the ISC license.
|
13207
|
+
* See the LICENSE file in the root directory of this source tree.
|
13208
|
+
*)
|
13209
|
+
|
13210
|
+
lucide-react/dist/esm/lucide-react.js:
|
13211
|
+
(**
|
13212
|
+
* @license lucide-react v0.379.0 - ISC
|
13213
|
+
*
|
13214
|
+
* This source code is licensed under the ISC license.
|
13215
|
+
* See the LICENSE file in the root directory of this source tree.
|
13216
|
+
*)
|
13217
|
+
*/
|