@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
@@ -1,17 +1,17 @@
|
|
1
1
|
"use client";
|
2
2
|
import {
|
3
3
|
Input
|
4
|
-
} from "../../chunk-
|
4
|
+
} from "../../chunk-TMUQCNLO.mjs";
|
5
5
|
import {
|
6
6
|
StopPropagationWrapper
|
7
7
|
} from "../../chunk-47APBDKK.mjs";
|
8
8
|
import {
|
9
9
|
Select
|
10
|
-
} from "../../chunk-
|
10
|
+
} from "../../chunk-IA5FLRFL.mjs";
|
11
11
|
import {
|
12
12
|
EyeIcon,
|
13
13
|
HiddenEyeIcon
|
14
|
-
} from "../../chunk-
|
14
|
+
} from "../../chunk-E6C3LDHD.mjs";
|
15
15
|
import {
|
16
16
|
Button,
|
17
17
|
Card,
|
@@ -20,10 +20,11 @@ import {
|
|
20
20
|
CardFooter,
|
21
21
|
CardHeader,
|
22
22
|
CardTitle,
|
23
|
+
HelperText,
|
23
24
|
Label,
|
24
25
|
Loading,
|
25
26
|
cn
|
26
|
-
} from "../../chunk-
|
27
|
+
} from "../../chunk-V4SUYEVH.mjs";
|
27
28
|
|
28
29
|
// blocks/auth/AuthButtons.tsx
|
29
30
|
import React2 from "react";
|
@@ -2383,16 +2384,7 @@ var PhoneInput = ({
|
|
2383
2384
|
),
|
2384
2385
|
...inputProps
|
2385
2386
|
}
|
2386
|
-
))), /* @__PURE__ */ React4.createElement(
|
2387
|
-
"p",
|
2388
|
-
{
|
2389
|
-
className: cn(
|
2390
|
-
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
2391
|
-
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
2392
|
-
)
|
2393
|
-
},
|
2394
|
-
props.helperText
|
2395
|
-
));
|
2387
|
+
))), /* @__PURE__ */ React4.createElement(HelperText, { helperText: props.helperText }));
|
2396
2388
|
};
|
2397
2389
|
|
2398
2390
|
// blocks/auth/LoginForm.tsx
|
@@ -3493,106 +3485,168 @@ var ResetPasswordForm = ({
|
|
3493
3485
|
};
|
3494
3486
|
|
3495
3487
|
// blocks/auth/CodeConfirmation.tsx
|
3496
|
-
import React13, { useEffect as
|
3488
|
+
import React13, { useEffect as useEffect3, useState as useState5 } from "react";
|
3497
3489
|
import { Controller as Controller5, useForm as useForm5 } from "react-hook-form";
|
3498
3490
|
import { zodResolver as zodResolver5 } from "@hookform/resolvers/zod";
|
3499
3491
|
import * as z5 from "zod";
|
3500
3492
|
|
3501
3493
|
// elements/pinInput/PinInput.tsx
|
3502
|
-
import
|
3503
|
-
|
3504
|
-
|
3505
|
-
|
3506
|
-
|
3507
|
-
|
3508
|
-
|
3509
|
-
|
3510
|
-
|
3511
|
-
|
3512
|
-
|
3513
|
-
|
3514
|
-
|
3515
|
-
|
3516
|
-
|
3517
|
-
|
3518
|
-
|
3519
|
-
|
3520
|
-
|
3521
|
-
|
3522
|
-
|
3523
|
-
|
3524
|
-
|
3525
|
-
|
3526
|
-
|
3527
|
-
|
3528
|
-
|
3529
|
-
|
3530
|
-
|
3531
|
-
|
3532
|
-
|
3533
|
-
|
3534
|
-
|
3535
|
-
|
3536
|
-
|
3537
|
-
|
3538
|
-
|
3539
|
-
|
3540
|
-
|
3541
|
-
|
3542
|
-
|
3543
|
-
|
3544
|
-
}
|
3545
|
-
};
|
3546
|
-
return /* @__PURE__ */ React12.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, /* @__PURE__ */ React12.createElement(
|
3547
|
-
"div",
|
3548
|
-
{
|
3549
|
-
className: "hawa-flex hawa-w-full hawa-flex-row hawa-justify-center hawa-gap-2",
|
3550
|
-
dir: "ltr"
|
3551
|
-
},
|
3552
|
-
pin.map((value, index) => /* @__PURE__ */ React12.createElement(
|
3553
|
-
"input",
|
3494
|
+
import * as React12 from "react";
|
3495
|
+
import { OTPInput, OTPInputContext } from "input-otp";
|
3496
|
+
|
3497
|
+
// ../../node_modules/.pnpm/lucide-react@0.379.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
|
3498
|
+
import { forwardRef as forwardRef3, createElement as createElement3 } from "react";
|
3499
|
+
|
3500
|
+
// ../../node_modules/.pnpm/lucide-react@0.379.0_react@18.3.1/node_modules/lucide-react/dist/esm/shared/src/utils.js
|
3501
|
+
var toKebabCase = (string6) => string6.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
3502
|
+
var mergeClasses = (...classes) => classes.filter((className, index, array) => {
|
3503
|
+
return Boolean(className) && array.indexOf(className) === index;
|
3504
|
+
}).join(" ");
|
3505
|
+
|
3506
|
+
// ../../node_modules/.pnpm/lucide-react@0.379.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js
|
3507
|
+
import { forwardRef as forwardRef2, createElement as createElement2 } from "react";
|
3508
|
+
|
3509
|
+
// ../../node_modules/.pnpm/lucide-react@0.379.0_react@18.3.1/node_modules/lucide-react/dist/esm/defaultAttributes.js
|
3510
|
+
var defaultAttributes = {
|
3511
|
+
xmlns: "http://www.w3.org/2000/svg",
|
3512
|
+
width: 24,
|
3513
|
+
height: 24,
|
3514
|
+
viewBox: "0 0 24 24",
|
3515
|
+
fill: "none",
|
3516
|
+
stroke: "currentColor",
|
3517
|
+
strokeWidth: 2,
|
3518
|
+
strokeLinecap: "round",
|
3519
|
+
strokeLinejoin: "round"
|
3520
|
+
};
|
3521
|
+
|
3522
|
+
// ../../node_modules/.pnpm/lucide-react@0.379.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js
|
3523
|
+
var Icon = forwardRef2(
|
3524
|
+
({
|
3525
|
+
color = "currentColor",
|
3526
|
+
size = 24,
|
3527
|
+
strokeWidth = 2,
|
3528
|
+
absoluteStrokeWidth,
|
3529
|
+
className = "",
|
3530
|
+
children,
|
3531
|
+
iconNode,
|
3532
|
+
...rest
|
3533
|
+
}, ref) => {
|
3534
|
+
return createElement2(
|
3535
|
+
"svg",
|
3554
3536
|
{
|
3555
|
-
|
3556
|
-
|
3557
|
-
|
3558
|
-
|
3559
|
-
|
3560
|
-
|
3561
|
-
|
3562
|
-
|
3563
|
-
|
3564
|
-
|
3565
|
-
),
|
3566
|
-
|
3567
|
-
|
3568
|
-
|
3569
|
-
|
3570
|
-
|
3571
|
-
|
3572
|
-
|
3573
|
-
|
3537
|
+
ref,
|
3538
|
+
...defaultAttributes,
|
3539
|
+
width: size,
|
3540
|
+
height: size,
|
3541
|
+
stroke: color,
|
3542
|
+
strokeWidth: absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size) : strokeWidth,
|
3543
|
+
className: mergeClasses("lucide", className),
|
3544
|
+
...rest
|
3545
|
+
},
|
3546
|
+
[
|
3547
|
+
...iconNode.map(([tag, attrs]) => createElement2(tag, attrs)),
|
3548
|
+
...Array.isArray(children) ? children : [children]
|
3549
|
+
]
|
3550
|
+
);
|
3551
|
+
}
|
3552
|
+
);
|
3553
|
+
|
3554
|
+
// ../../node_modules/.pnpm/lucide-react@0.379.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
|
3555
|
+
var createLucideIcon = (iconName, iconNode) => {
|
3556
|
+
const Component = forwardRef3(
|
3557
|
+
({ className, ...props }, ref) => createElement3(Icon, {
|
3558
|
+
ref,
|
3559
|
+
iconNode,
|
3560
|
+
className: mergeClasses(`lucide-${toKebabCase(iconName)}`, className),
|
3561
|
+
...props
|
3562
|
+
})
|
3563
|
+
);
|
3564
|
+
Component.displayName = `${iconName}`;
|
3565
|
+
return Component;
|
3566
|
+
};
|
3567
|
+
|
3568
|
+
// ../../node_modules/.pnpm/lucide-react@0.379.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/dot.js
|
3569
|
+
var Dot = createLucideIcon("Dot", [
|
3570
|
+
["circle", { cx: "12.1", cy: "12.1", r: "1", key: "18d7e5" }]
|
3571
|
+
]);
|
3572
|
+
|
3573
|
+
// elements/pinInput/PinInput.tsx
|
3574
|
+
var PinInputRoot = React12.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ React12.createElement(
|
3575
|
+
OTPInput,
|
3576
|
+
{
|
3577
|
+
ref,
|
3578
|
+
containerClassName: cn(
|
3579
|
+
"hawa-flex hawa-items-center hawa-gap-2 has-[:disabled]:hawa-opacity-50",
|
3580
|
+
containerClassName
|
3581
|
+
),
|
3582
|
+
className: cn("disabled:hawa-cursor-not-allowed", className),
|
3583
|
+
...props
|
3584
|
+
}
|
3585
|
+
));
|
3586
|
+
PinInputRoot.displayName = "PinInputRoot";
|
3587
|
+
var PinInputGroup = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React12.createElement(
|
3588
|
+
"div",
|
3589
|
+
{
|
3590
|
+
ref,
|
3591
|
+
className: cn("hawa-flex hawa-items-center", className),
|
3592
|
+
...props
|
3593
|
+
}
|
3594
|
+
));
|
3595
|
+
PinInputGroup.displayName = "PinInputGroup";
|
3596
|
+
var PinInputSlot = React12.forwardRef(({ index, className, ...props }, ref) => {
|
3597
|
+
const pinInputContext = React12.useContext(OTPInputContext);
|
3598
|
+
const { char, hasFakeCaret, isActive } = pinInputContext.slots[index];
|
3599
|
+
return /* @__PURE__ */ React12.createElement(
|
3600
|
+
"div",
|
3574
3601
|
{
|
3602
|
+
ref,
|
3575
3603
|
className: cn(
|
3576
|
-
"hawa-
|
3577
|
-
|
3578
|
-
|
3604
|
+
"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",
|
3605
|
+
isActive && "hawa-ring-ring hawa-ring-offset-background hawa-z-10 hawa-ring-2",
|
3606
|
+
className
|
3607
|
+
),
|
3608
|
+
...props
|
3579
3609
|
},
|
3580
|
-
|
3581
|
-
|
3610
|
+
char,
|
3611
|
+
hasFakeCaret && /* @__PURE__ */ React12.createElement("div", { className: "hawa-pointer-events-none hawa-absolute hawa-inset-0 hawa-flex hawa-items-center hawa-justify-center" }, /* @__PURE__ */ React12.createElement("div", { className: "hawa-animate-caret-blink hawa-bg-foreground hawa-h-4 hawa-w-px hawa-duration-1000" }))
|
3612
|
+
);
|
3613
|
+
});
|
3614
|
+
PinInputSlot.displayName = "PinInputSlot";
|
3615
|
+
var PinInputSeperator = React12.forwardRef(({ ...props }, ref) => /* @__PURE__ */ React12.createElement("div", { ref, role: "separator", ...props }, /* @__PURE__ */ React12.createElement(Dot, null)));
|
3616
|
+
PinInputSeperator.displayName = "PinInputSeperator";
|
3617
|
+
var PinInput = ({
|
3618
|
+
separatorPosition = 0,
|
3619
|
+
...props
|
3620
|
+
}) => {
|
3621
|
+
const maxLength = props.maxLength || 6;
|
3622
|
+
const clampedSeparatorPosition = Math.min(separatorPosition, maxLength);
|
3623
|
+
const firstGroupLength = clampedSeparatorPosition > 0 ? clampedSeparatorPosition : 0;
|
3624
|
+
const secondGroupLength = maxLength - firstGroupLength;
|
3625
|
+
return /* @__PURE__ */ React12.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, /* @__PURE__ */ React12.createElement(PinInputRoot, { ...props }, firstGroupLength > 0 && /* @__PURE__ */ React12.createElement(PinInputGroup, { className: "hawa-w-full" }, [...Array(firstGroupLength)].map((_, index) => /* @__PURE__ */ React12.createElement(PinInputSlot, { key: index, index, className: "hawa-w-full" }))), separatorPosition > 0 && separatorPosition < props.maxLength && /* @__PURE__ */ React12.createElement(PinInputSeperator, null), secondGroupLength > 0 && /* @__PURE__ */ React12.createElement(PinInputGroup, { className: "hawa-w-full" }, [...Array(secondGroupLength)].map((_, index) => /* @__PURE__ */ React12.createElement(
|
3626
|
+
PinInputSlot,
|
3627
|
+
{
|
3628
|
+
key: index + firstGroupLength,
|
3629
|
+
index: index + firstGroupLength,
|
3630
|
+
className: "hawa-w-full"
|
3631
|
+
}
|
3632
|
+
)))), /* @__PURE__ */ React12.createElement(HelperText, { helperText: props.helperText }));
|
3582
3633
|
};
|
3583
3634
|
|
3584
3635
|
// blocks/auth/CodeConfirmation.tsx
|
3585
|
-
var CodeConfirmation = (
|
3636
|
+
var CodeConfirmation = ({
|
3637
|
+
codeLength = 6,
|
3638
|
+
...props
|
3639
|
+
}) => {
|
3586
3640
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
|
3587
3641
|
const formSchema = z5.object({
|
3588
|
-
otp_code: z5.string({ required_error: (_a = props.texts) == null ? void 0 : _a.codeRequiredText }).min(
|
3642
|
+
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 })
|
3589
3643
|
});
|
3590
3644
|
const { handleSubmit, control, formState, setValue } = useForm5({
|
3591
3645
|
resolver: zodResolver5(formSchema)
|
3592
3646
|
});
|
3593
|
-
const [resendTimer, setResendTimer] =
|
3594
|
-
const [remainingTime, setRemainingTime] =
|
3595
|
-
const [showResendTimer, setShowResendTimer] =
|
3647
|
+
const [resendTimer, setResendTimer] = useState5(null);
|
3648
|
+
const [remainingTime, setRemainingTime] = useState5(0);
|
3649
|
+
const [showResendTimer, setShowResendTimer] = useState5(false);
|
3596
3650
|
const startResendTimer = () => {
|
3597
3651
|
if (resendTimer !== null) {
|
3598
3652
|
clearInterval(resendTimer);
|
@@ -3614,7 +3668,7 @@ var CodeConfirmation = (props) => {
|
|
3614
3668
|
}, 1e3);
|
3615
3669
|
setResendTimer(newTimer);
|
3616
3670
|
};
|
3617
|
-
|
3671
|
+
useEffect3(() => {
|
3618
3672
|
return () => {
|
3619
3673
|
if (resendTimer !== null) {
|
3620
3674
|
clearInterval(resendTimer);
|
@@ -3652,10 +3706,9 @@ var CodeConfirmation = (props) => {
|
|
3652
3706
|
return /* @__PURE__ */ React13.createElement(
|
3653
3707
|
PinInput,
|
3654
3708
|
{
|
3655
|
-
|
3656
|
-
|
3657
|
-
|
3658
|
-
helperText: (_a2 = formState.errors.otp_code) == null ? void 0 : _a2.message
|
3709
|
+
maxLength: codeLength,
|
3710
|
+
helperText: (_a2 = formState.errors.otp_code) == null ? void 0 : _a2.message,
|
3711
|
+
...field
|
3659
3712
|
}
|
3660
3713
|
);
|
3661
3714
|
}
|
@@ -3685,3 +3738,53 @@ export {
|
|
3685
3738
|
RegisterForm,
|
3686
3739
|
ResetPasswordForm
|
3687
3740
|
};
|
3741
|
+
/*! Bundled license information:
|
3742
|
+
|
3743
|
+
lucide-react/dist/esm/shared/src/utils.js:
|
3744
|
+
(**
|
3745
|
+
* @license lucide-react v0.379.0 - ISC
|
3746
|
+
*
|
3747
|
+
* This source code is licensed under the ISC license.
|
3748
|
+
* See the LICENSE file in the root directory of this source tree.
|
3749
|
+
*)
|
3750
|
+
|
3751
|
+
lucide-react/dist/esm/defaultAttributes.js:
|
3752
|
+
(**
|
3753
|
+
* @license lucide-react v0.379.0 - ISC
|
3754
|
+
*
|
3755
|
+
* This source code is licensed under the ISC license.
|
3756
|
+
* See the LICENSE file in the root directory of this source tree.
|
3757
|
+
*)
|
3758
|
+
|
3759
|
+
lucide-react/dist/esm/Icon.js:
|
3760
|
+
(**
|
3761
|
+
* @license lucide-react v0.379.0 - ISC
|
3762
|
+
*
|
3763
|
+
* This source code is licensed under the ISC license.
|
3764
|
+
* See the LICENSE file in the root directory of this source tree.
|
3765
|
+
*)
|
3766
|
+
|
3767
|
+
lucide-react/dist/esm/createLucideIcon.js:
|
3768
|
+
(**
|
3769
|
+
* @license lucide-react v0.379.0 - ISC
|
3770
|
+
*
|
3771
|
+
* This source code is licensed under the ISC license.
|
3772
|
+
* See the LICENSE file in the root directory of this source tree.
|
3773
|
+
*)
|
3774
|
+
|
3775
|
+
lucide-react/dist/esm/icons/dot.js:
|
3776
|
+
(**
|
3777
|
+
* @license lucide-react v0.379.0 - ISC
|
3778
|
+
*
|
3779
|
+
* This source code is licensed under the ISC license.
|
3780
|
+
* See the LICENSE file in the root directory of this source tree.
|
3781
|
+
*)
|
3782
|
+
|
3783
|
+
lucide-react/dist/esm/lucide-react.js:
|
3784
|
+
(**
|
3785
|
+
* @license lucide-react v0.379.0 - ISC
|
3786
|
+
*
|
3787
|
+
* This source code is licensed under the ISC license.
|
3788
|
+
* See the LICENSE file in the root directory of this source tree.
|
3789
|
+
*)
|
3790
|
+
*/
|
@@ -768,16 +768,7 @@ var Radio = (0, import_react4.forwardRef)(
|
|
768
768
|
opt.label
|
769
769
|
);
|
770
770
|
})
|
771
|
-
), !forceHideHelperText && /* @__PURE__ */ import_react4.default.createElement(
|
772
|
-
"p",
|
773
|
-
{
|
774
|
-
className: cn(
|
775
|
-
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
776
|
-
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
777
|
-
)
|
778
|
-
},
|
779
|
-
props.helperText
|
780
|
-
));
|
771
|
+
), !forceHideHelperText && /* @__PURE__ */ import_react4.default.createElement(HelperText, { helperText: props.helperText }));
|
781
772
|
case "bordered":
|
782
773
|
return /* @__PURE__ */ import_react4.default.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ import_react4.default.createElement("div", { key: i, className: "hawa-w-full hawa-rounded hawa-border" }, /* @__PURE__ */ import_react4.default.createElement(
|
783
774
|
"div",
|
@@ -866,16 +857,7 @@ var Radio = (0, import_react4.forwardRef)(
|
|
866
857
|
},
|
867
858
|
opt.label
|
868
859
|
)
|
869
|
-
))), /* @__PURE__ */ import_react4.default.createElement(
|
870
|
-
"p",
|
871
|
-
{
|
872
|
-
className: cn(
|
873
|
-
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
874
|
-
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
875
|
-
)
|
876
|
-
},
|
877
|
-
props.helperText
|
878
|
-
));
|
860
|
+
))), /* @__PURE__ */ import_react4.default.createElement(HelperText, { helperText: props.helperText }));
|
879
861
|
}
|
880
862
|
}
|
881
863
|
);
|
@@ -960,16 +942,7 @@ var Textarea = React10.forwardRef(
|
|
960
942
|
ref
|
961
943
|
}
|
962
944
|
),
|
963
|
-
/* @__PURE__ */ React10.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, !forceHideHelperText && /* @__PURE__ */ React10.createElement(
|
964
|
-
"p",
|
965
|
-
{
|
966
|
-
className: cn(
|
967
|
-
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
968
|
-
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
969
|
-
)
|
970
|
-
},
|
971
|
-
props.helperText
|
972
|
-
), showCount && countPosition === "bottom" && /* @__PURE__ */ React10.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))
|
945
|
+
/* @__PURE__ */ React10.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, !forceHideHelperText && /* @__PURE__ */ React10.createElement(HelperText, { helperText: props.helperText }), showCount && countPosition === "bottom" && /* @__PURE__ */ React10.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))
|
973
946
|
);
|
974
947
|
}
|
975
948
|
);
|
@@ -1636,16 +1609,7 @@ var Select = ({
|
|
1636
1609
|
onInputChange: (newValue, action) => props.onInputChange(newValue, action)
|
1637
1610
|
}
|
1638
1611
|
),
|
1639
|
-
!props.hideHelperText && /* @__PURE__ */ import_react12.default.createElement(
|
1640
|
-
"p",
|
1641
|
-
{
|
1642
|
-
className: cn(
|
1643
|
-
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
1644
|
-
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
1645
|
-
)
|
1646
|
-
},
|
1647
|
-
props.helperText
|
1648
|
-
)
|
1612
|
+
!props.hideHelperText && /* @__PURE__ */ import_react12.default.createElement(HelperText, { helperText: props.helperText })
|
1649
1613
|
);
|
1650
1614
|
};
|
1651
1615
|
|
@@ -1,27 +1,27 @@
|
|
1
1
|
"use client";
|
2
2
|
import {
|
3
3
|
Textarea
|
4
|
-
} from "../../chunk-
|
4
|
+
} from "../../chunk-4EZL2A64.mjs";
|
5
5
|
import {
|
6
6
|
Select
|
7
|
-
} from "../../chunk-
|
7
|
+
} from "../../chunk-IA5FLRFL.mjs";
|
8
8
|
import {
|
9
9
|
Popover,
|
10
10
|
Radio
|
11
|
-
} from "../../chunk-
|
11
|
+
} from "../../chunk-Q3HJI7ZE.mjs";
|
12
12
|
import {
|
13
13
|
BadEmoji,
|
14
14
|
GoodEmoji,
|
15
15
|
VeryBadEmoji,
|
16
16
|
VeryGoodEmoji
|
17
|
-
} from "../../chunk-
|
17
|
+
} from "../../chunk-E6C3LDHD.mjs";
|
18
18
|
import {
|
19
19
|
Button,
|
20
20
|
Card,
|
21
21
|
CardContent,
|
22
22
|
Label,
|
23
23
|
cn
|
24
|
-
} from "../../chunk-
|
24
|
+
} from "../../chunk-V4SUYEVH.mjs";
|
25
25
|
|
26
26
|
// blocks/feedback/UserReferralSource.tsx
|
27
27
|
import React, { useRef, useState } from "react";
|
package/dist/blocks/index.d.mts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import React__default, { FC, InputHTMLAttributes } from 'react';
|
2
2
|
import { ThirdPartyAuthTextsTypes, LoginFormTextsTypes, RegisterFormTextsTypes, NewPasswordTextsTypes, ResetPasswordTextsTypes, BaseInputType, TextInputType, PricingCardProps, PlanFeature, PricingPlanTexts } from '../types/index.mjs';
|
3
|
-
import { P as PhoneInputProps, S as SelectOptionProps, L as LabelProps, R as RadioOptionsTypes } from '../Radio-
|
3
|
+
import { P as PhoneInputProps, S as SelectOptionProps, L as LabelProps, R as RadioOptionsTypes } from '../Radio-uQ7DtzcI.mjs';
|
4
4
|
import { D as DirectionType, a as RadioOptionType, O as OrientationType } from '../commonTypes-C-g8nFFC.mjs';
|
5
5
|
import { M as MenuItemType } from '../DropdownMenu-BYiPSEYy.mjs';
|
6
6
|
import '@radix-ui/react-popover';
|
@@ -257,6 +257,7 @@ type TConfirmation = {
|
|
257
257
|
confirmLoading?: boolean;
|
258
258
|
handleConfirm?: any;
|
259
259
|
handleResend?: any;
|
260
|
+
codeLength?: number;
|
260
261
|
};
|
261
262
|
declare const CodeConfirmation: FC<TConfirmation>;
|
262
263
|
|
package/dist/blocks/index.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import React__default, { FC, InputHTMLAttributes } from 'react';
|
2
2
|
import { ThirdPartyAuthTextsTypes, LoginFormTextsTypes, RegisterFormTextsTypes, NewPasswordTextsTypes, ResetPasswordTextsTypes, BaseInputType, TextInputType, PricingCardProps, PlanFeature, PricingPlanTexts } from '../types/index.js';
|
3
|
-
import { P as PhoneInputProps, S as SelectOptionProps, L as LabelProps, R as RadioOptionsTypes } from '../Radio-
|
3
|
+
import { P as PhoneInputProps, S as SelectOptionProps, L as LabelProps, R as RadioOptionsTypes } from '../Radio-lgoClQrv.js';
|
4
4
|
import { D as DirectionType, a as RadioOptionType, O as OrientationType } from '../commonTypes-C-g8nFFC.js';
|
5
5
|
import { M as MenuItemType } from '../DropdownMenu-ChxqadLu.js';
|
6
6
|
import '@radix-ui/react-popover';
|
@@ -257,6 +257,7 @@ type TConfirmation = {
|
|
257
257
|
confirmLoading?: boolean;
|
258
258
|
handleConfirm?: any;
|
259
259
|
handleResend?: any;
|
260
|
+
codeLength?: number;
|
260
261
|
};
|
261
262
|
declare const CodeConfirmation: FC<TConfirmation>;
|
262
263
|
|