@sikka/hawa 0.27.18-next → 0.27.20-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/appLayout/index.js +1 -1
- package/dist/appLayout/index.js.map +1 -1
- package/dist/appLayout/index.mjs +1 -1
- package/dist/appLayout/index.mjs.map +1 -1
- package/dist/blocks/auth/index.d.mts +5 -0
- package/dist/blocks/auth/index.d.ts +5 -0
- package/dist/blocks/auth/index.js +257 -248
- package/dist/blocks/auth/index.mjs +260 -251
- package/dist/blocks/feedback/index.js +1 -1
- package/dist/blocks/feedback/index.mjs +5 -5
- package/dist/blocks/index.d.mts +5 -0
- package/dist/blocks/index.d.ts +5 -0
- package/dist/blocks/index.js +257 -248
- package/dist/blocks/index.mjs +258 -249
- package/dist/blocks/misc/index.js +1 -1
- package/dist/blocks/misc/index.mjs +5 -5
- package/dist/blocks/pricing/index.js +1 -1
- package/dist/blocks/pricing/index.mjs +4 -4
- package/dist/{chunk-X43DYWMS.mjs → chunk-7CYXEZDV.mjs} +1 -1
- package/dist/{chunk-ELDUKPOJ.mjs → chunk-7QEBDFLT.mjs} +1 -1
- package/dist/{chunk-4V3JYKXA.mjs → chunk-DQHPOUHR.mjs} +1 -1
- package/dist/{chunk-OKTSMWI6.mjs → chunk-DUL6C2S2.mjs} +1 -1
- package/dist/{chunk-V5EPRL6U.mjs → chunk-EFWL3FFK.mjs} +1 -1
- package/dist/{chunk-2EUB7RZD.mjs → chunk-F56X3EW2.mjs} +1 -1
- package/dist/{chunk-OOTIDLPP.mjs → chunk-M6XGGAPQ.mjs} +1 -1
- package/dist/{chunk-M7YG4RQ3.mjs → chunk-MMOEFJSP.mjs} +1 -1
- package/dist/{chunk-TKEDUZKG.mjs → chunk-W5I4VB5Z.mjs} +1 -1
- package/dist/{chunk-WXHZXK5S.mjs → chunk-ZOWDRDAM.mjs} +1 -1
- package/dist/codeBlock/index.js +1 -1
- package/dist/codeBlock/index.js.map +1 -1
- package/dist/codeBlock/index.mjs +1 -1
- package/dist/codeBlock/index.mjs.map +1 -1
- package/dist/colorPicker/index.js +1 -1
- package/dist/colorPicker/index.js.map +1 -1
- package/dist/colorPicker/index.mjs +1 -1
- package/dist/colorPicker/index.mjs.map +1 -1
- package/dist/combobox/index.js +1 -1
- package/dist/combobox/index.js.map +1 -1
- package/dist/combobox/index.mjs +1 -1
- package/dist/combobox/index.mjs.map +1 -1
- package/dist/dataTable/index.js +1 -1
- package/dist/dataTable/index.js.map +1 -1
- package/dist/dataTable/index.mjs +1 -1
- package/dist/dataTable/index.mjs.map +1 -1
- package/dist/elements/index.js +1 -1
- package/dist/elements/index.mjs +3 -3
- package/dist/index.d.mts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +257 -248
- package/dist/index.mjs +257 -248
- package/dist/input/index.js +1 -1
- package/dist/input/index.js.map +1 -1
- package/dist/input/index.mjs +1 -1
- package/dist/input/index.mjs.map +1 -1
- package/dist/interfaceSettings/index.js +1 -1
- package/dist/interfaceSettings/index.js.map +1 -1
- package/dist/interfaceSettings/index.mjs +1 -1
- package/dist/interfaceSettings/index.mjs.map +1 -1
- package/dist/label/index.js +1 -1
- package/dist/label/index.js.map +1 -1
- package/dist/label/index.mjs +1 -1
- package/dist/label/index.mjs.map +1 -1
- package/dist/layout/index.js +1 -1
- package/dist/layout/index.mjs +2 -2
- package/dist/passwordInput/index.js +1 -1
- package/dist/passwordInput/index.js.map +1 -1
- package/dist/passwordInput/index.mjs +1 -1
- package/dist/passwordInput/index.mjs.map +1 -1
- package/dist/phoneInput/index.js +1 -1
- package/dist/phoneInput/index.js.map +1 -1
- package/dist/phoneInput/index.mjs +1 -1
- package/dist/phoneInput/index.mjs.map +1 -1
- package/dist/radio/index.js +1 -1
- package/dist/radio/index.js.map +1 -1
- package/dist/radio/index.mjs +1 -1
- package/dist/radio/index.mjs.map +1 -1
- package/dist/select/index.js +1 -1
- package/dist/select/index.js.map +1 -1
- package/dist/select/index.mjs +1 -1
- package/dist/select/index.mjs.map +1 -1
- package/dist/signature/index.js +1 -1
- package/dist/signature/index.js.map +1 -1
- package/dist/signature/index.mjs +1 -1
- package/dist/signature/index.mjs.map +1 -1
- package/dist/textarea/index.js +1 -1
- package/dist/textarea/index.js.map +1 -1
- package/dist/textarea/index.mjs +1 -1
- package/dist/textarea/index.mjs.map +1 -1
- package/dist/tooltip/index.js +1 -1
- package/dist/tooltip/index.js.map +1 -1
- package/dist/tooltip/index.mjs +1 -1
- package/dist/tooltip/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
@@ -395,7 +395,7 @@ var Tooltip = ({
|
|
395
395
|
...contentProps,
|
396
396
|
style: {
|
397
397
|
...contentProps == null ? void 0 : contentProps.style,
|
398
|
-
maxWidth: "var(--radix-tooltip-content-available-width)
|
398
|
+
maxWidth: "var(--radix-tooltip-content-available-width)",
|
399
399
|
maxHeight: "var(--radix-tooltip-content-available-height)"
|
400
400
|
}
|
401
401
|
},
|
@@ -9367,7 +9367,7 @@ var RegisterForm = ({
|
|
9367
9367
|
showNewsletterOption = false,
|
9368
9368
|
...props
|
9369
9369
|
}) => {
|
9370
|
-
var _a, _b, _c, _d, _e, _f;
|
9370
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
9371
9371
|
const [passwordVisible, setPasswordVisible] = useState26(false);
|
9372
9372
|
const thirdPartyAuthTexts = {
|
9373
9373
|
continueWithGoogle: texts == null ? void 0 : texts.continueWithGoogle,
|
@@ -9433,281 +9433,290 @@ var RegisterForm = ({
|
|
9433
9433
|
const { handleSubmit, control, formState } = useForm2({
|
9434
9434
|
resolver: zodResolver2(formSchema)
|
9435
9435
|
});
|
9436
|
-
return /* @__PURE__ */ React74.createElement(
|
9437
|
-
|
9438
|
-
{
|
9439
|
-
title: props.errorTitle,
|
9440
|
-
text: props.errorText,
|
9441
|
-
severity: "error"
|
9442
|
-
}
|
9443
|
-
), /* @__PURE__ */ React74.createElement(FormProvider, { ...methods }, /* @__PURE__ */ React74.createElement(
|
9444
|
-
"form",
|
9436
|
+
return /* @__PURE__ */ React74.createElement(
|
9437
|
+
"div",
|
9445
9438
|
{
|
9446
|
-
|
9447
|
-
|
9448
|
-
|
9449
|
-
|
9450
|
-
} else {
|
9451
|
-
console.log(
|
9452
|
-
"Form is submitted but onRegister prop is missing"
|
9453
|
-
);
|
9454
|
-
}
|
9455
|
-
}),
|
9456
|
-
className: "hawa-flex hawa-flex-col hawa-gap-4"
|
9439
|
+
className: cn(
|
9440
|
+
"hawa-flex hawa-flex-col hawa-gap-4",
|
9441
|
+
(_g = props.classNames) == null ? void 0 : _g.root
|
9442
|
+
)
|
9457
9443
|
},
|
9458
|
-
/* @__PURE__ */ React74.createElement(
|
9459
|
-
|
9460
|
-
return /* @__PURE__ */ React74.createElement(
|
9461
|
-
Controller2,
|
9462
|
-
{
|
9463
|
-
key: i,
|
9464
|
-
control,
|
9465
|
-
name: "fullName",
|
9466
|
-
render: ({ field }) => {
|
9467
|
-
var _a2, _b2, _c2;
|
9468
|
-
return /* @__PURE__ */ React74.createElement(
|
9469
|
-
Input,
|
9470
|
-
{
|
9471
|
-
width: "full",
|
9472
|
-
label: ((_a2 = texts == null ? void 0 : texts.fullName) == null ? void 0 : _a2.label) || "Full Name",
|
9473
|
-
placeholder: (_b2 = texts == null ? void 0 : texts.fullName) == null ? void 0 : _b2.placeholder,
|
9474
|
-
helperText: (_c2 = formState.errors.fullName) == null ? void 0 : _c2.message,
|
9475
|
-
...field
|
9476
|
-
}
|
9477
|
-
);
|
9478
|
-
}
|
9479
|
-
}
|
9480
|
-
);
|
9481
|
-
}
|
9482
|
-
if (fld === "email") {
|
9483
|
-
return /* @__PURE__ */ React74.createElement(
|
9484
|
-
Controller2,
|
9485
|
-
{
|
9486
|
-
key: i,
|
9487
|
-
control,
|
9488
|
-
name: "email",
|
9489
|
-
render: ({ field }) => {
|
9490
|
-
var _a2, _b2, _c2;
|
9491
|
-
return /* @__PURE__ */ React74.createElement(
|
9492
|
-
Input,
|
9493
|
-
{
|
9494
|
-
dir: "ltr",
|
9495
|
-
inputProps: {
|
9496
|
-
className: props.direction === "rtl" ? "hawa-text-right" : "hawa-text-left"
|
9497
|
-
},
|
9498
|
-
width: "full",
|
9499
|
-
autoComplete: "email",
|
9500
|
-
label: ((_a2 = texts == null ? void 0 : texts.email) == null ? void 0 : _a2.label) || "Email",
|
9501
|
-
helperText: (_b2 = formState.errors.email) == null ? void 0 : _b2.message,
|
9502
|
-
placeholder: ((_c2 = texts == null ? void 0 : texts.email) == null ? void 0 : _c2.placeholder) || "Enter your email",
|
9503
|
-
...field
|
9504
|
-
}
|
9505
|
-
);
|
9506
|
-
}
|
9507
|
-
}
|
9508
|
-
);
|
9509
|
-
}
|
9510
|
-
if (fld === "username") {
|
9511
|
-
return /* @__PURE__ */ React74.createElement(
|
9512
|
-
Controller2,
|
9513
|
-
{
|
9514
|
-
key: i,
|
9515
|
-
control,
|
9516
|
-
name: "username",
|
9517
|
-
render: ({ field }) => {
|
9518
|
-
var _a2, _b2, _c2, _d2;
|
9519
|
-
return /* @__PURE__ */ React74.createElement(
|
9520
|
-
Input,
|
9521
|
-
{
|
9522
|
-
width: "full",
|
9523
|
-
autoComplete: "username",
|
9524
|
-
label: ((_a2 = texts == null ? void 0 : texts.username) == null ? void 0 : _a2.label) || "Username",
|
9525
|
-
labelProps: {
|
9526
|
-
...(_b2 = props.usernameOptions) == null ? void 0 : _b2.label
|
9527
|
-
},
|
9528
|
-
helperText: (_c2 = formState.errors.username) == null ? void 0 : _c2.message,
|
9529
|
-
placeholder: (_d2 = texts == null ? void 0 : texts.username) == null ? void 0 : _d2.placeholder,
|
9530
|
-
...field
|
9531
|
-
}
|
9532
|
-
);
|
9533
|
-
}
|
9534
|
-
}
|
9535
|
-
);
|
9536
|
-
}
|
9537
|
-
})),
|
9538
|
-
/* @__PURE__ */ React74.createElement(
|
9539
|
-
Controller2,
|
9444
|
+
/* @__PURE__ */ React74.createElement(Card, { dir: props.direction, className: cn((_h = props.classNames) == null ? void 0 : _h.card) }, /* @__PURE__ */ React74.createElement(CardContent, { headless: true }, /* @__PURE__ */ React74.createElement("div", null, props.showError && /* @__PURE__ */ React74.createElement(
|
9445
|
+
Alert,
|
9540
9446
|
{
|
9541
|
-
|
9542
|
-
|
9543
|
-
|
9544
|
-
var _a2, _b2, _c2;
|
9545
|
-
return /* @__PURE__ */ React74.createElement(
|
9546
|
-
Input,
|
9547
|
-
{
|
9548
|
-
width: "full",
|
9549
|
-
type: passwordVisible ? "text" : "password",
|
9550
|
-
endIcon: /* @__PURE__ */ React74.createElement(
|
9551
|
-
"div",
|
9552
|
-
{
|
9553
|
-
className: "hawa-cursor-pointer",
|
9554
|
-
onClick: () => setPasswordVisible(!passwordVisible)
|
9555
|
-
},
|
9556
|
-
passwordVisible ? /* @__PURE__ */ React74.createElement(EyeIcon, { className: "hawa-text-gray-500" }) : /* @__PURE__ */ React74.createElement(HiddenEyeIcon, { className: "hawa-text-gray-500" }),
|
9557
|
-
" "
|
9558
|
-
),
|
9559
|
-
autoComplete: "new-password",
|
9560
|
-
label: ((_a2 = texts == null ? void 0 : texts.password) == null ? void 0 : _a2.label) || "Password",
|
9561
|
-
placeholder: (_b2 = texts == null ? void 0 : texts.password) == null ? void 0 : _b2.placeholder,
|
9562
|
-
helperText: (_c2 = formState.errors.password) == null ? void 0 : _c2.message,
|
9563
|
-
...field
|
9564
|
-
}
|
9565
|
-
);
|
9566
|
-
}
|
9447
|
+
title: props.errorTitle,
|
9448
|
+
text: props.errorText,
|
9449
|
+
severity: "error"
|
9567
9450
|
}
|
9568
|
-
),
|
9569
|
-
|
9570
|
-
Controller2,
|
9451
|
+
), /* @__PURE__ */ React74.createElement(FormProvider, { ...methods }, /* @__PURE__ */ React74.createElement(
|
9452
|
+
"form",
|
9571
9453
|
{
|
9572
|
-
|
9573
|
-
|
9574
|
-
|
9575
|
-
|
9454
|
+
noValidate: true,
|
9455
|
+
onSubmit: handleSubmit((e) => {
|
9456
|
+
if (props.onRegister) {
|
9457
|
+
return props.onRegister(e);
|
9458
|
+
} else {
|
9459
|
+
console.log(
|
9460
|
+
"Form is submitted but onRegister prop is missing"
|
9461
|
+
);
|
9462
|
+
}
|
9463
|
+
}),
|
9464
|
+
className: "hawa-flex hawa-flex-col hawa-gap-4"
|
9465
|
+
},
|
9466
|
+
/* @__PURE__ */ React74.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-4" }, registerFields.map((fld, i) => {
|
9467
|
+
if (fld === "fullname") {
|
9576
9468
|
return /* @__PURE__ */ React74.createElement(
|
9577
|
-
|
9469
|
+
Controller2,
|
9578
9470
|
{
|
9579
|
-
|
9580
|
-
|
9581
|
-
|
9582
|
-
|
9583
|
-
|
9584
|
-
|
9585
|
-
|
9471
|
+
key: i,
|
9472
|
+
control,
|
9473
|
+
name: "fullName",
|
9474
|
+
render: ({ field }) => {
|
9475
|
+
var _a2, _b2, _c2;
|
9476
|
+
return /* @__PURE__ */ React74.createElement(
|
9477
|
+
Input,
|
9478
|
+
{
|
9479
|
+
width: "full",
|
9480
|
+
label: ((_a2 = texts == null ? void 0 : texts.fullName) == null ? void 0 : _a2.label) || "Full Name",
|
9481
|
+
placeholder: (_b2 = texts == null ? void 0 : texts.fullName) == null ? void 0 : _b2.placeholder,
|
9482
|
+
helperText: (_c2 = formState.errors.fullName) == null ? void 0 : _c2.message,
|
9483
|
+
...field
|
9484
|
+
}
|
9485
|
+
);
|
9486
|
+
}
|
9586
9487
|
}
|
9587
9488
|
);
|
9588
9489
|
}
|
9589
|
-
|
9590
|
-
),
|
9591
|
-
props.additionalInputs,
|
9592
|
-
props.showRefCode && /* @__PURE__ */ React74.createElement(
|
9593
|
-
Controller2,
|
9594
|
-
{
|
9595
|
-
control,
|
9596
|
-
name: "refCode",
|
9597
|
-
render: ({ field }) => {
|
9598
|
-
var _a2;
|
9490
|
+
if (fld === "email") {
|
9599
9491
|
return /* @__PURE__ */ React74.createElement(
|
9600
|
-
|
9492
|
+
Controller2,
|
9601
9493
|
{
|
9602
|
-
|
9603
|
-
|
9604
|
-
|
9605
|
-
|
9606
|
-
|
9494
|
+
key: i,
|
9495
|
+
control,
|
9496
|
+
name: "email",
|
9497
|
+
render: ({ field }) => {
|
9498
|
+
var _a2, _b2, _c2;
|
9499
|
+
return /* @__PURE__ */ React74.createElement(
|
9500
|
+
Input,
|
9501
|
+
{
|
9502
|
+
dir: "ltr",
|
9503
|
+
inputProps: {
|
9504
|
+
className: props.direction === "rtl" ? "hawa-text-right" : "hawa-text-left"
|
9505
|
+
},
|
9506
|
+
width: "full",
|
9507
|
+
autoComplete: "email",
|
9508
|
+
label: ((_a2 = texts == null ? void 0 : texts.email) == null ? void 0 : _a2.label) || "Email",
|
9509
|
+
helperText: (_b2 = formState.errors.email) == null ? void 0 : _b2.message,
|
9510
|
+
placeholder: ((_c2 = texts == null ? void 0 : texts.email) == null ? void 0 : _c2.placeholder) || "Enter your email",
|
9511
|
+
...field
|
9512
|
+
}
|
9513
|
+
);
|
9514
|
+
}
|
9607
9515
|
}
|
9608
9516
|
);
|
9609
9517
|
}
|
9610
|
-
|
9611
|
-
),
|
9612
|
-
props.showUserSource && /* @__PURE__ */ React74.createElement(
|
9613
|
-
Controller2,
|
9614
|
-
{
|
9615
|
-
control,
|
9616
|
-
name: "reference",
|
9617
|
-
render: ({ field }) => {
|
9618
|
-
var _a2, _b2;
|
9518
|
+
if (fld === "username") {
|
9619
9519
|
return /* @__PURE__ */ React74.createElement(
|
9620
|
-
|
9520
|
+
Controller2,
|
9621
9521
|
{
|
9622
|
-
|
9623
|
-
|
9624
|
-
|
9625
|
-
|
9626
|
-
|
9627
|
-
|
9628
|
-
|
9629
|
-
|
9630
|
-
|
9522
|
+
key: i,
|
9523
|
+
control,
|
9524
|
+
name: "username",
|
9525
|
+
render: ({ field }) => {
|
9526
|
+
var _a2, _b2, _c2, _d2;
|
9527
|
+
return /* @__PURE__ */ React74.createElement(
|
9528
|
+
Input,
|
9529
|
+
{
|
9530
|
+
width: "full",
|
9531
|
+
autoComplete: "username",
|
9532
|
+
label: ((_a2 = texts == null ? void 0 : texts.username) == null ? void 0 : _a2.label) || "Username",
|
9533
|
+
labelProps: {
|
9534
|
+
...(_b2 = props.usernameOptions) == null ? void 0 : _b2.label
|
9535
|
+
},
|
9536
|
+
helperText: (_c2 = formState.errors.username) == null ? void 0 : _c2.message,
|
9537
|
+
placeholder: (_d2 = texts == null ? void 0 : texts.username) == null ? void 0 : _d2.placeholder,
|
9538
|
+
...field
|
9539
|
+
}
|
9540
|
+
);
|
9631
9541
|
}
|
9632
9542
|
}
|
9633
9543
|
);
|
9634
9544
|
}
|
9635
|
-
}
|
9636
|
-
|
9637
|
-
|
9638
|
-
|
9639
|
-
|
9640
|
-
|
9641
|
-
|
9642
|
-
|
9643
|
-
|
9644
|
-
|
9545
|
+
})),
|
9546
|
+
/* @__PURE__ */ React74.createElement(
|
9547
|
+
Controller2,
|
9548
|
+
{
|
9549
|
+
control,
|
9550
|
+
name: "password",
|
9551
|
+
render: ({ field }) => {
|
9552
|
+
var _a2, _b2, _c2;
|
9553
|
+
return /* @__PURE__ */ React74.createElement(
|
9554
|
+
Input,
|
9555
|
+
{
|
9556
|
+
width: "full",
|
9557
|
+
type: passwordVisible ? "text" : "password",
|
9558
|
+
endIcon: /* @__PURE__ */ React74.createElement(
|
9559
|
+
"div",
|
9560
|
+
{
|
9561
|
+
className: "hawa-cursor-pointer",
|
9562
|
+
onClick: () => setPasswordVisible(!passwordVisible)
|
9563
|
+
},
|
9564
|
+
passwordVisible ? /* @__PURE__ */ React74.createElement(EyeIcon, { className: "hawa-text-gray-500" }) : /* @__PURE__ */ React74.createElement(HiddenEyeIcon, { className: "hawa-text-gray-500" }),
|
9565
|
+
" "
|
9566
|
+
),
|
9567
|
+
autoComplete: "new-password",
|
9568
|
+
label: ((_a2 = texts == null ? void 0 : texts.password) == null ? void 0 : _a2.label) || "Password",
|
9569
|
+
placeholder: (_b2 = texts == null ? void 0 : texts.password) == null ? void 0 : _b2.placeholder,
|
9570
|
+
helperText: (_c2 = formState.errors.password) == null ? void 0 : _c2.message,
|
9571
|
+
...field
|
9572
|
+
}
|
9573
|
+
);
|
9574
|
+
}
|
9575
|
+
}
|
9576
|
+
),
|
9577
|
+
/* @__PURE__ */ React74.createElement(
|
9578
|
+
Controller2,
|
9579
|
+
{
|
9580
|
+
control,
|
9581
|
+
name: "confirm_password",
|
9582
|
+
render: ({ field }) => {
|
9583
|
+
var _a2, _b2, _c2;
|
9584
|
+
return /* @__PURE__ */ React74.createElement(
|
9585
|
+
Input,
|
9586
|
+
{
|
9587
|
+
width: "full",
|
9588
|
+
type: "password",
|
9589
|
+
autoComplete: "new-password",
|
9590
|
+
label: ((_a2 = texts == null ? void 0 : texts.confirm) == null ? void 0 : _a2.label) || "Confirm Password",
|
9591
|
+
placeholder: ((_b2 = texts == null ? void 0 : texts.confirm) == null ? void 0 : _b2.placeholder) || "Confirm your Password",
|
9592
|
+
helperText: (_c2 = formState.errors.confirm_password) == null ? void 0 : _c2.message,
|
9593
|
+
...field
|
9594
|
+
}
|
9595
|
+
);
|
9596
|
+
}
|
9597
|
+
}
|
9598
|
+
),
|
9599
|
+
props.additionalInputs,
|
9600
|
+
props.showRefCode && /* @__PURE__ */ React74.createElement(
|
9601
|
+
Controller2,
|
9602
|
+
{
|
9603
|
+
control,
|
9604
|
+
name: "refCode",
|
9605
|
+
render: ({ field }) => {
|
9606
|
+
var _a2;
|
9607
|
+
return /* @__PURE__ */ React74.createElement(
|
9608
|
+
Input,
|
9609
|
+
{
|
9610
|
+
width: "full",
|
9611
|
+
label: texts == null ? void 0 : texts.refCode,
|
9612
|
+
placeholder: (texts == null ? void 0 : texts.refCodePlaceholder) || "Enter the referral code",
|
9613
|
+
helperText: (_a2 = formState.errors.refCode) == null ? void 0 : _a2.message,
|
9614
|
+
...field
|
9615
|
+
}
|
9616
|
+
);
|
9617
|
+
}
|
9618
|
+
}
|
9619
|
+
),
|
9620
|
+
props.showUserSource && /* @__PURE__ */ React74.createElement(
|
9621
|
+
Controller2,
|
9622
|
+
{
|
9623
|
+
control,
|
9624
|
+
name: "reference",
|
9625
|
+
render: ({ field }) => {
|
9626
|
+
var _a2, _b2;
|
9627
|
+
return /* @__PURE__ */ React74.createElement(
|
9628
|
+
Select,
|
9629
|
+
{
|
9630
|
+
label: ((_a2 = texts == null ? void 0 : texts.userReference) == null ? void 0 : _a2.label) || "How did you learn about us?",
|
9631
|
+
placeholder: (_b2 = texts == null ? void 0 : texts.userReference) == null ? void 0 : _b2.placeholder,
|
9632
|
+
isCreatable: false,
|
9633
|
+
isMulti: false,
|
9634
|
+
isSearchable: false,
|
9635
|
+
isClearable: false,
|
9636
|
+
options: props.userReferenceOptions,
|
9637
|
+
onChange: (e) => {
|
9638
|
+
field.onChange(e.value);
|
9639
|
+
}
|
9640
|
+
}
|
9641
|
+
);
|
9642
|
+
}
|
9643
|
+
}
|
9644
|
+
),
|
9645
|
+
showTermsOption || showNewsletterOption ? /* @__PURE__ */ React74.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-3 hawa-mb-2" }, showTermsOption && /* @__PURE__ */ React74.createElement(
|
9646
|
+
Controller2,
|
9647
|
+
{
|
9648
|
+
control,
|
9649
|
+
name: "terms_accepted",
|
9650
|
+
render: ({ field }) => {
|
9651
|
+
var _a2, _b2;
|
9652
|
+
return /* @__PURE__ */ React74.createElement(
|
9653
|
+
Checkbox,
|
9654
|
+
{
|
9655
|
+
id: "terms_accepted",
|
9656
|
+
helperText: (_b2 = (_a2 = formState.errors.terms_accepted) == null ? void 0 : _a2.message) == null ? void 0 : _b2.toString(),
|
9657
|
+
onCheckedChange: (e) => field.onChange(e),
|
9658
|
+
label: /* @__PURE__ */ React74.createElement("div", { className: "hawa-flex hawa-flex-row hawa-gap-0.5" }, /* @__PURE__ */ React74.createElement("span", null, (texts == null ? void 0 : texts.iAcceptText) || "I accept the "), " ", /* @__PURE__ */ React74.createElement(StopPropagationWrapper, null, /* @__PURE__ */ React74.createElement(
|
9659
|
+
"a",
|
9660
|
+
{
|
9661
|
+
onClick: props.onRouteToTOS,
|
9662
|
+
className: "clickable-link"
|
9663
|
+
},
|
9664
|
+
(texts == null ? void 0 : texts.termsText) || "Terms of Service"
|
9665
|
+
)))
|
9666
|
+
}
|
9667
|
+
);
|
9668
|
+
}
|
9669
|
+
}
|
9670
|
+
), showNewsletterOption && /* @__PURE__ */ React74.createElement(
|
9671
|
+
Controller2,
|
9672
|
+
{
|
9673
|
+
control,
|
9674
|
+
name: "newsletter_accepted",
|
9675
|
+
render: ({ field }) => /* @__PURE__ */ React74.createElement(
|
9645
9676
|
Checkbox,
|
9646
9677
|
{
|
9647
|
-
id: "
|
9648
|
-
|
9649
|
-
onCheckedChange:
|
9650
|
-
label: /* @__PURE__ */ React74.createElement("div", { className: "hawa-flex hawa-flex-row hawa-gap-0.5" }, /* @__PURE__ */ React74.createElement("span", null, (texts == null ? void 0 : texts.iAcceptText) || "I accept the "), " ", /* @__PURE__ */ React74.createElement(StopPropagationWrapper, null, /* @__PURE__ */ React74.createElement(
|
9651
|
-
"a",
|
9652
|
-
{
|
9653
|
-
onClick: props.onRouteToTOS,
|
9654
|
-
className: "clickable-link"
|
9655
|
-
},
|
9656
|
-
(texts == null ? void 0 : texts.termsText) || "Terms of Service"
|
9657
|
-
)))
|
9678
|
+
id: "newsletter_accepted",
|
9679
|
+
label: (texts == null ? void 0 : texts.subscribeToNewsletter) || "Subscribe to our newsletter",
|
9680
|
+
onCheckedChange: field.onChange
|
9658
9681
|
}
|
9659
|
-
)
|
9682
|
+
)
|
9660
9683
|
}
|
9661
|
-
|
9662
|
-
|
9663
|
-
|
9684
|
+
)) : null,
|
9685
|
+
/* @__PURE__ */ React74.createElement(
|
9686
|
+
Button,
|
9687
|
+
{
|
9688
|
+
className: " hawa-w-full",
|
9689
|
+
type: "submit",
|
9690
|
+
isLoading: props.isLoading,
|
9691
|
+
disabled: props.isLoading
|
9692
|
+
},
|
9693
|
+
(texts == null ? void 0 : texts.registerText) || "Register"
|
9694
|
+
),
|
9695
|
+
props.additionalButtons
|
9696
|
+
)), /* @__PURE__ */ React74.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-1 hawa-p-3 hawa-text-center hawa-text-sm hawa-font-normal dark:hawa-text-white" }, /* @__PURE__ */ React74.createElement("span", null, (texts == null ? void 0 : texts.existingUserText) || "Already have an account?"), /* @__PURE__ */ React74.createElement("span", { onClick: props.onRouteToLogin, className: "clickable-link" }, (texts == null ? void 0 : texts.loginText) || "Login")))), props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */ React74.createElement(
|
9697
|
+
CardFooter,
|
9664
9698
|
{
|
9665
|
-
|
9666
|
-
|
9667
|
-
render: ({ field }) => /* @__PURE__ */ React74.createElement(
|
9668
|
-
Checkbox,
|
9669
|
-
{
|
9670
|
-
id: "newsletter_accepted",
|
9671
|
-
label: (texts == null ? void 0 : texts.subscribeToNewsletter) || "Subscribe to our newsletter",
|
9672
|
-
onCheckedChange: field.onChange
|
9673
|
-
}
|
9699
|
+
className: cn(
|
9700
|
+
props.logosOnly ? "hawa-flex hawa-flex-row hawa-justify-center hawa-gap-2" : "hawa-grid hawa-grid-cols-1 hawa-gap-2"
|
9674
9701
|
)
|
9675
|
-
}
|
9676
|
-
)) : null,
|
9677
|
-
/* @__PURE__ */ React74.createElement(
|
9678
|
-
Button,
|
9679
|
-
{
|
9680
|
-
className: " hawa-w-full",
|
9681
|
-
type: "submit",
|
9682
|
-
isLoading: props.isLoading,
|
9683
|
-
disabled: props.isLoading
|
9684
9702
|
},
|
9685
|
-
|
9686
|
-
|
9687
|
-
|
9688
|
-
|
9689
|
-
|
9690
|
-
|
9691
|
-
|
9692
|
-
|
9703
|
+
/* @__PURE__ */ React74.createElement(
|
9704
|
+
AuthButtons,
|
9705
|
+
{
|
9706
|
+
texts: thirdPartyAuthTexts,
|
9707
|
+
viaGoogle: props.viaGoogle,
|
9708
|
+
viaGithub: props.viaGithub,
|
9709
|
+
viaTwitter: props.viaTwitter,
|
9710
|
+
isGoogleLoading: props.isGoogleLoading,
|
9711
|
+
isGithubLoading: props.isGithubLoading,
|
9712
|
+
isTwitterLoading: props.isTwitterLoading,
|
9713
|
+
handleGoogle: props.onGoogleRegister,
|
9714
|
+
handleGithub: props.onGithubRegister,
|
9715
|
+
handleTwitter: props.onTwitterRegister
|
9716
|
+
}
|
9693
9717
|
)
|
9694
|
-
|
9695
|
-
|
9696
|
-
AuthButtons,
|
9697
|
-
{
|
9698
|
-
texts: thirdPartyAuthTexts,
|
9699
|
-
viaGoogle: props.viaGoogle,
|
9700
|
-
viaGithub: props.viaGithub,
|
9701
|
-
viaTwitter: props.viaTwitter,
|
9702
|
-
isGoogleLoading: props.isGoogleLoading,
|
9703
|
-
isGithubLoading: props.isGithubLoading,
|
9704
|
-
isTwitterLoading: props.isTwitterLoading,
|
9705
|
-
handleGoogle: props.onGoogleRegister,
|
9706
|
-
handleGithub: props.onGithubRegister,
|
9707
|
-
handleTwitter: props.onTwitterRegister
|
9708
|
-
}
|
9709
|
-
)
|
9710
|
-
) : null));
|
9718
|
+
) : null)
|
9719
|
+
);
|
9711
9720
|
};
|
9712
9721
|
|
9713
9722
|
// blocks/auth/AppLanding.tsx
|
package/dist/input/index.js
CHANGED
@@ -109,7 +109,7 @@ var Tooltip = ({
|
|
109
109
|
...contentProps,
|
110
110
|
style: {
|
111
111
|
...contentProps == null ? void 0 : contentProps.style,
|
112
|
-
maxWidth: "var(--radix-tooltip-content-available-width)
|
112
|
+
maxWidth: "var(--radix-tooltip-content-available-width)",
|
113
113
|
maxHeight: "var(--radix-tooltip-content-available-height)"
|
114
114
|
}
|
115
115
|
},
|