@sikka/hawa 0.28.0-next → 0.28.1-next
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/blocks/auth/index.d.mts +7 -1
- package/dist/blocks/auth/index.d.ts +7 -1
- package/dist/blocks/auth/index.js +185 -12
- package/dist/blocks/auth/index.mjs +185 -12
- package/dist/blocks/feedback/index.d.mts +4 -1
- package/dist/blocks/feedback/index.d.ts +4 -1
- package/dist/blocks/feedback/index.js +2 -5
- package/dist/blocks/feedback/index.mjs +2 -5
- package/dist/blocks/index.d.mts +9 -0
- package/dist/blocks/index.d.ts +9 -0
- package/dist/blocks/index.js +187 -17
- package/dist/blocks/index.mjs +41 -19
- package/dist/blocks/misc/index.d.mts +1 -1
- package/dist/blocks/misc/index.d.ts +1 -1
- package/dist/blocks/pricing/index.d.mts +1 -1
- package/dist/blocks/pricing/index.d.ts +1 -1
- package/dist/{chunk-Y3HUZNCH.mjs → chunk-GQF62TFQ.mjs} +1 -1
- package/dist/{chunk-TIQERSM3.mjs → chunk-N7FGYBM5.mjs} +1 -1
- package/dist/{chunk-R2NAPFAZ.mjs → chunk-ZOFKAJPJ.mjs} +148 -0
- package/dist/codeBlock/index.js +30 -35
- package/dist/codeBlock/index.js.map +1 -1
- package/dist/codeBlock/index.mjs +30 -35
- package/dist/codeBlock/index.mjs.map +1 -1
- package/dist/docsLayout/index.js +148 -0
- package/dist/docsLayout/index.js.map +1 -1
- package/dist/docsLayout/index.mjs +148 -0
- package/dist/docsLayout/index.mjs.map +1 -1
- package/dist/elements/index.d.mts +2 -0
- package/dist/elements/index.d.ts +2 -0
- package/dist/elements/index.js +178 -35
- package/dist/elements/index.mjs +33 -38
- package/dist/index.css +11 -15
- package/dist/index.d.mts +13 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +217 -52
- package/dist/index.mjs +217 -52
- package/dist/layout/index.js +148 -0
- package/dist/layout/index.mjs +2 -2
- package/dist/logos/index.d.mts +2 -0
- package/dist/logos/index.d.ts +2 -0
- package/dist/logos/index.js +148 -0
- package/dist/logos/index.js.map +1 -1
- package/dist/logos/index.mjs +148 -0
- package/dist/logos/index.mjs.map +1 -1
- package/dist/{textTypes-ah2JJr8v.d.ts → textTypes-DAgkNov8.d.mts} +2 -0
- package/dist/{textTypes-ah2JJr8v.d.mts → textTypes-DAgkNov8.d.ts} +2 -0
- package/dist/types/index.d.mts +2 -0
- package/dist/types/index.d.ts +2 -0
- package/package.json +8 -8
@@ -485,10 +485,7 @@ var FeedbackForm = (props) => {
|
|
485
485
|
});
|
486
486
|
const { handleSubmit, control, formState, reset } = useForm2({
|
487
487
|
resolver: zodResolver2(formSchema),
|
488
|
-
defaultValues: {
|
489
|
-
requestType: "",
|
490
|
-
description: ""
|
491
|
-
}
|
488
|
+
defaultValues: { requestType: "", description: "" }
|
492
489
|
});
|
493
490
|
return /* @__PURE__ */ React5.createElement(
|
494
491
|
Card,
|
@@ -498,7 +495,7 @@ var FeedbackForm = (props) => {
|
|
498
495
|
),
|
499
496
|
style: props.cardless ? { boxShadow: "none" } : void 0
|
500
497
|
},
|
501
|
-
/* @__PURE__ */ React5.createElement(CardContent, { headless: true, className: props.cardless ? "!hawa-p-0" : "" }, /* @__PURE__ */ React5.createElement(
|
498
|
+
/* @__PURE__ */ React5.createElement(CardContent, { headless: true, className: props.cardless ? "!hawa-p-0" : "" }, props.sent ? /* @__PURE__ */ React5.createElement("div", { className: "hawa-text-center hawa-min-h-[200px] hawa-flex hawa-flex-col hawa-justify-center" }, /* @__PURE__ */ React5.createElement("div", { className: "hawa-font-bold hawa-text-lg" }, props.texts.sentTitle || "Form submitted"), /* @__PURE__ */ React5.createElement("div", { className: "hawa-text-md" }, props.texts.sentSubtitle || "Thank you for your submission")) : /* @__PURE__ */ React5.createElement(
|
502
499
|
"form",
|
503
500
|
{
|
504
501
|
noValidate: true,
|
package/dist/blocks/index.d.mts
CHANGED
@@ -7,6 +7,8 @@ import '@radix-ui/react-dropdown-menu';
|
|
7
7
|
|
8
8
|
type AuthButtonsType = {
|
9
9
|
texts?: ThirdPartyAuthTextsTypes;
|
10
|
+
viaMetamask?: boolean;
|
11
|
+
viaNafath?: boolean;
|
10
12
|
viaGoogle?: boolean;
|
11
13
|
viaTwitter?: boolean;
|
12
14
|
viaGithub?: boolean;
|
@@ -14,6 +16,8 @@ type AuthButtonsType = {
|
|
14
16
|
viaEmail?: boolean;
|
15
17
|
viaPhone?: boolean;
|
16
18
|
viaApple?: boolean;
|
19
|
+
isMetamaskLoading?: boolean;
|
20
|
+
isNafathLoading?: boolean;
|
17
21
|
isGoogleLoading?: boolean;
|
18
22
|
isGithubLoading?: boolean;
|
19
23
|
isTwitterLoading?: boolean;
|
@@ -21,6 +25,8 @@ type AuthButtonsType = {
|
|
21
25
|
isEmailLoading?: boolean;
|
22
26
|
isPhoneLoading?: boolean;
|
23
27
|
isAppleLoading?: boolean;
|
28
|
+
handleMetamask?: () => void;
|
29
|
+
handleNafath?: () => void;
|
24
30
|
handleGoogle?: () => void;
|
25
31
|
handleTwitter?: () => void;
|
26
32
|
handleApple?: () => void;
|
@@ -278,6 +284,7 @@ type FeedbackFormDescriptionInputProps = BaseInputType & {
|
|
278
284
|
tooShort?: string;
|
279
285
|
};
|
280
286
|
type FeedbackFormType = {
|
287
|
+
sent?: boolean;
|
281
288
|
onSubmit: (e: any) => void;
|
282
289
|
loadingSubmission?: boolean;
|
283
290
|
requestTypes?: {
|
@@ -290,6 +297,8 @@ type FeedbackFormType = {
|
|
290
297
|
requestType: FeedbackFormRequestTypeInputProps;
|
291
298
|
description: FeedbackFormDescriptionInputProps;
|
292
299
|
submit?: string;
|
300
|
+
sentTitle?: string;
|
301
|
+
sentSubtitle?: string;
|
293
302
|
};
|
294
303
|
};
|
295
304
|
declare const FeedbackForm: React__default.FC<FeedbackFormType>;
|
package/dist/blocks/index.d.ts
CHANGED
@@ -7,6 +7,8 @@ import '@radix-ui/react-dropdown-menu';
|
|
7
7
|
|
8
8
|
type AuthButtonsType = {
|
9
9
|
texts?: ThirdPartyAuthTextsTypes;
|
10
|
+
viaMetamask?: boolean;
|
11
|
+
viaNafath?: boolean;
|
10
12
|
viaGoogle?: boolean;
|
11
13
|
viaTwitter?: boolean;
|
12
14
|
viaGithub?: boolean;
|
@@ -14,6 +16,8 @@ type AuthButtonsType = {
|
|
14
16
|
viaEmail?: boolean;
|
15
17
|
viaPhone?: boolean;
|
16
18
|
viaApple?: boolean;
|
19
|
+
isMetamaskLoading?: boolean;
|
20
|
+
isNafathLoading?: boolean;
|
17
21
|
isGoogleLoading?: boolean;
|
18
22
|
isGithubLoading?: boolean;
|
19
23
|
isTwitterLoading?: boolean;
|
@@ -21,6 +25,8 @@ type AuthButtonsType = {
|
|
21
25
|
isEmailLoading?: boolean;
|
22
26
|
isPhoneLoading?: boolean;
|
23
27
|
isAppleLoading?: boolean;
|
28
|
+
handleMetamask?: () => void;
|
29
|
+
handleNafath?: () => void;
|
24
30
|
handleGoogle?: () => void;
|
25
31
|
handleTwitter?: () => void;
|
26
32
|
handleApple?: () => void;
|
@@ -278,6 +284,7 @@ type FeedbackFormDescriptionInputProps = BaseInputType & {
|
|
278
284
|
tooShort?: string;
|
279
285
|
};
|
280
286
|
type FeedbackFormType = {
|
287
|
+
sent?: boolean;
|
281
288
|
onSubmit: (e: any) => void;
|
282
289
|
loadingSubmission?: boolean;
|
283
290
|
requestTypes?: {
|
@@ -290,6 +297,8 @@ type FeedbackFormType = {
|
|
290
297
|
requestType: FeedbackFormRequestTypeInputProps;
|
291
298
|
description: FeedbackFormDescriptionInputProps;
|
292
299
|
submit?: string;
|
300
|
+
sentTitle?: string;
|
301
|
+
sentSubtitle?: string;
|
293
302
|
};
|
294
303
|
};
|
295
304
|
declare const FeedbackForm: React__default.FC<FeedbackFormType>;
|
package/dist/blocks/index.js
CHANGED
@@ -370,6 +370,154 @@ Button.displayName = "Button";
|
|
370
370
|
// elements/logos/Logos.tsx
|
371
371
|
var import_react2 = __toESM(require("react"));
|
372
372
|
var Logos = {
|
373
|
+
metamask: (props) => /* @__PURE__ */ import_react2.default.createElement(
|
374
|
+
"svg",
|
375
|
+
{
|
376
|
+
xmlns: "http://www.w3.org/2000/svg",
|
377
|
+
xmlSpace: "preserve",
|
378
|
+
id: "Layer_1",
|
379
|
+
x: 0,
|
380
|
+
y: 0,
|
381
|
+
viewBox: "0 0 318.6 318.6",
|
382
|
+
...props
|
383
|
+
},
|
384
|
+
/* @__PURE__ */ import_react2.default.createElement("style", null, ".st1,.st6{fill:#e4761b;stroke:#e4761b;stroke-linecap:round;stroke-linejoin:round}.st6{fill:#f6851b;stroke:#f6851b}"),
|
385
|
+
/* @__PURE__ */ import_react2.default.createElement(
|
386
|
+
"path",
|
387
|
+
{
|
388
|
+
fill: "#e2761b",
|
389
|
+
stroke: "#e2761b",
|
390
|
+
strokeLinecap: "round",
|
391
|
+
strokeLinejoin: "round",
|
392
|
+
d: "m274.1 35.5-99.5 73.9L193 65.8z"
|
393
|
+
}
|
394
|
+
),
|
395
|
+
/* @__PURE__ */ import_react2.default.createElement(
|
396
|
+
"path",
|
397
|
+
{
|
398
|
+
d: "m44.4 35.5 98.7 74.6-17.5-44.3zm193.9 171.3-26.5 40.6 56.7 15.6 16.3-55.3zm-204.4.9L50.1 263l56.7-15.6-26.5-40.6z",
|
399
|
+
className: "st1"
|
400
|
+
}
|
401
|
+
),
|
402
|
+
/* @__PURE__ */ import_react2.default.createElement(
|
403
|
+
"path",
|
404
|
+
{
|
405
|
+
d: "m103.6 138.2-15.8 23.9 56.3 2.5-2-60.5zm111.3 0-39-34.8-1.3 61.2 56.2-2.5zM106.8 247.4l33.8-16.5-29.2-22.8zm71.1-16.5 33.9 16.5-4.7-39.3z",
|
406
|
+
className: "st1"
|
407
|
+
}
|
408
|
+
),
|
409
|
+
/* @__PURE__ */ import_react2.default.createElement(
|
410
|
+
"path",
|
411
|
+
{
|
412
|
+
fill: "#d7c1b3",
|
413
|
+
stroke: "#d7c1b3",
|
414
|
+
strokeLinecap: "round",
|
415
|
+
strokeLinejoin: "round",
|
416
|
+
d: "m211.8 247.4-33.9-16.5 2.7 22.1-.3 9.3zm-105 0 31.5 14.9-.2-9.3 2.5-22.1z"
|
417
|
+
}
|
418
|
+
),
|
419
|
+
/* @__PURE__ */ import_react2.default.createElement(
|
420
|
+
"path",
|
421
|
+
{
|
422
|
+
fill: "#233447",
|
423
|
+
stroke: "#233447",
|
424
|
+
strokeLinecap: "round",
|
425
|
+
strokeLinejoin: "round",
|
426
|
+
d: "m138.8 193.5-28.2-8.3 19.9-9.1zm40.9 0 8.3-17.4 20 9.1z"
|
427
|
+
}
|
428
|
+
),
|
429
|
+
/* @__PURE__ */ import_react2.default.createElement(
|
430
|
+
"path",
|
431
|
+
{
|
432
|
+
fill: "#cd6116",
|
433
|
+
stroke: "#cd6116",
|
434
|
+
strokeLinecap: "round",
|
435
|
+
strokeLinejoin: "round",
|
436
|
+
d: "m106.8 247.4 4.8-40.6-31.3.9zM207 206.8l4.8 40.6 26.5-39.7zm23.8-44.7-56.2 2.5 5.2 28.9 8.3-17.4 20 9.1zm-120.2 23.1 20-9.1 8.2 17.4 5.3-28.9-56.3-2.5z"
|
437
|
+
}
|
438
|
+
),
|
439
|
+
/* @__PURE__ */ import_react2.default.createElement(
|
440
|
+
"path",
|
441
|
+
{
|
442
|
+
fill: "#e4751f",
|
443
|
+
stroke: "#e4751f",
|
444
|
+
strokeLinecap: "round",
|
445
|
+
strokeLinejoin: "round",
|
446
|
+
d: "m87.8 162.1 23.6 46-.8-22.9zm120.3 23.1-1 22.9 23.7-46zm-64-20.6-5.3 28.9 6.6 34.1 1.5-44.9zm30.5 0-2.7 18 1.2 45 6.7-34.1z"
|
447
|
+
}
|
448
|
+
),
|
449
|
+
/* @__PURE__ */ import_react2.default.createElement(
|
450
|
+
"path",
|
451
|
+
{
|
452
|
+
d: "m179.8 193.5-6.7 34.1 4.8 3.3 29.2-22.8 1-22.9zm-69.2-8.3.8 22.9 29.2 22.8 4.8-3.3-6.6-34.1z",
|
453
|
+
className: "st6"
|
454
|
+
}
|
455
|
+
),
|
456
|
+
/* @__PURE__ */ import_react2.default.createElement(
|
457
|
+
"path",
|
458
|
+
{
|
459
|
+
fill: "#c0ad9e",
|
460
|
+
stroke: "#c0ad9e",
|
461
|
+
strokeLinecap: "round",
|
462
|
+
strokeLinejoin: "round",
|
463
|
+
d: "m180.3 262.3.3-9.3-2.5-2.2h-37.7l-2.3 2.2.2 9.3-31.5-14.9 11 9 22.3 15.5h38.3l22.4-15.5 11-9z"
|
464
|
+
}
|
465
|
+
),
|
466
|
+
/* @__PURE__ */ import_react2.default.createElement(
|
467
|
+
"path",
|
468
|
+
{
|
469
|
+
fill: "#161616",
|
470
|
+
stroke: "#161616",
|
471
|
+
strokeLinecap: "round",
|
472
|
+
strokeLinejoin: "round",
|
473
|
+
d: "m177.9 230.9-4.8-3.3h-27.7l-4.8 3.3-2.5 22.1 2.3-2.2h37.7l2.5 2.2z"
|
474
|
+
}
|
475
|
+
),
|
476
|
+
/* @__PURE__ */ import_react2.default.createElement(
|
477
|
+
"path",
|
478
|
+
{
|
479
|
+
fill: "#763d16",
|
480
|
+
stroke: "#763d16",
|
481
|
+
strokeLinecap: "round",
|
482
|
+
strokeLinejoin: "round",
|
483
|
+
d: "m278.3 114.2 8.5-40.8-12.7-37.9-96.2 71.4 37 31.3 52.3 15.3 11.6-13.5-5-3.6 8-7.3-6.2-4.8 8-6.1zM31.8 73.4l8.5 40.8-5.4 4 8 6.1-6.1 4.8 8 7.3-5 3.6 11.5 13.5 52.3-15.3 37-31.3-96.2-71.4z"
|
484
|
+
}
|
485
|
+
),
|
486
|
+
/* @__PURE__ */ import_react2.default.createElement(
|
487
|
+
"path",
|
488
|
+
{
|
489
|
+
d: "m267.2 153.5-52.3-15.3 15.9 23.9-23.7 46 31.2-.4h46.5zm-163.6-15.3-52.3 15.3-17.4 54.2h46.4l31.1.4-23.6-46zm71 26.4 3.3-57.7 15.2-41.1h-67.5l15 41.1 3.5 57.7 1.2 18.2.1 44.8h27.7l.2-44.8z",
|
490
|
+
className: "st6"
|
491
|
+
}
|
492
|
+
)
|
493
|
+
),
|
494
|
+
nafath: (props) => /* @__PURE__ */ import_react2.default.createElement(
|
495
|
+
"svg",
|
496
|
+
{
|
497
|
+
xmlns: "http://www.w3.org/2000/svg",
|
498
|
+
xmlSpace: "preserve",
|
499
|
+
id: "Layer_1",
|
500
|
+
x: 0,
|
501
|
+
y: 0,
|
502
|
+
viewBox: "22.5 44.5 535.6 230.34",
|
503
|
+
...props
|
504
|
+
},
|
505
|
+
/* @__PURE__ */ import_react2.default.createElement("style", null, ".st0{fill:#0a9a8f}"),
|
506
|
+
/* @__PURE__ */ import_react2.default.createElement(
|
507
|
+
"path",
|
508
|
+
{
|
509
|
+
d: "M426.1 233.8c1.5.2 2.4.4 3.3.4 21.3 0 42.7.1 64-.1 12.7-.1 20-6.8 20.4-19.4.6-21 .6-42 .6-63 0-3.9 1.1-6.1 4.7-7.9 10.9-5.4 21.5-11.2 32.3-16.8 1.3-.7 2.7-1.3 4.5-2.1.1 1.4.3 2.4.3 3.5 0 29.1.5 58.2-.2 87.3-.5 21.8-9.4 39.7-29.1 51-10.1 5.8-21.3 7.9-32.7 7.9-32.1.2-64.1.2-96.2 0-8.2-.1-16.4-1.8-24.6-2.1-5.5-.2-11 1.1-16.6 1.4-9.3.4-18.7.7-28 .8-26.3.1-52.6.3-78.9-.1-7.8-.1-15.9-1.2-23.4-3.4-22.7-7-34.9-23.3-38.8-46.2-.8-4.9-1-9.9-1-14.9-.1-42.5 0-85-.1-127.5 0-3.6.9-5.6 4.2-7.2 11-5.5 21.8-11.3 32.7-16.9 1.3-.7 2.7-1.3 4.8-2.3v149c0 3.7.2 7.5.7 11.2 1.5 11.1 7.6 17.5 18.7 17.7 22.6.4 45.1.1 67.7.1.4 0 .9-.3 1.9-.6-1-2-1.9-3.9-2.9-5.7-16-27.8-11.5-65.2 7-87.2 11-13.2 25.3-20.4 42.3-21.9 17.3-1.5 33.9.9 48.1 12.1 15.4 12.1 23.3 28.3 25.8 47.5 2.6 19.1-.9 36.8-10.8 53.3-.1.3-.2.9-.7 2.1zm-27.4-48.1c-.8-3.2-1.5-9.2-3.9-14.4-4.9-10.6-13.9-14.9-25.5-14.3-10.4.6-17.9 5.9-21.5 15.7-7.4 19.7 1.5 44.7 19.4 55.5 3.2 1.9 5.8 2 8.9-.1 14.2-9.4 21.9-22.5 22.6-42.4zM78.7 155.1c6.8-11.7 13.6-23.2 20.5-35 13.5 8.1 25.5 17.4 35.1 29.4 18.1 22.4 24.3 48.2 21.3 76.5-.7 6.9-2.2 13.9-4.6 20.4-6 16.6-18.8 26.3-35.8 27.1-30.6 1.4-61.2.8-91.9 1.1-.1 0-.3-.1-.8-.4.4-1 .7-2.2 1.2-3.2 5.7-11 11.6-22 17.2-33.1 1.4-2.7 3-3.7 6.1-3.7 15.4.2 30.8-.4 46.2.2 18.1.7 21.6-10.1 21.2-23-.7-23.6-12.1-40.9-31.6-53.4-1.1-.9-2.4-1.8-4.1-2.9zM536.2 44.5c13.4 0 21.9 8.4 21.9 21.7 0 14.4-7.4 22.1-21.5 22.3-13.4.2-22-8.4-22.1-22.1 0-13.3 8.4-21.9 21.7-21.9zM121.1 66.4c0 14.8-7.3 22.3-21.5 22.1-13.5-.2-22-9-21.9-22.5.2-13.2 8.8-21.5 22.3-21.5 13.2.1 21.1 8.3 21.1 21.9z",
|
510
|
+
className: "st0"
|
511
|
+
}
|
512
|
+
),
|
513
|
+
/* @__PURE__ */ import_react2.default.createElement(
|
514
|
+
"path",
|
515
|
+
{
|
516
|
+
d: "M393 71.1c-.1 14.7-6.8 21.6-21.3 21.6-13.9 0-21.9-8.1-21.9-22.1 0-13.7 8.3-21.6 22.4-21.5 13.3.1 20.8 8.2 20.8 22z",
|
517
|
+
className: "st0"
|
518
|
+
}
|
519
|
+
)
|
520
|
+
),
|
373
521
|
hawa: (props) => /* @__PURE__ */ import_react2.default.createElement(
|
374
522
|
"svg",
|
375
523
|
{
|
@@ -574,8 +722,28 @@ var Logos = {
|
|
574
722
|
|
575
723
|
// blocks/auth/AuthButtons.tsx
|
576
724
|
var AuthButtons = (props) => {
|
577
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
|
578
|
-
return /* @__PURE__ */ import_react3.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-4" }, props.
|
725
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r;
|
726
|
+
return /* @__PURE__ */ import_react3.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-4" }, props.viaMetamask && /* @__PURE__ */ import_react3.default.createElement(
|
727
|
+
Button,
|
728
|
+
{
|
729
|
+
disabled: props.isMetamaskLoading,
|
730
|
+
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
731
|
+
variant: "outline",
|
732
|
+
onClick: props.handleMetamask
|
733
|
+
},
|
734
|
+
props.isMetamaskLoading ? /* @__PURE__ */ import_react3.default.createElement(Loading, { size: "button" }) : /* @__PURE__ */ import_react3.default.createElement(Logos.metamask, { className: "hawa-h-6" }),
|
735
|
+
(_b = (_a = props.texts) == null ? void 0 : _a.continueWithMetamask) != null ? _b : "Connect Metamask"
|
736
|
+
), props.viaNafath && /* @__PURE__ */ import_react3.default.createElement(
|
737
|
+
Button,
|
738
|
+
{
|
739
|
+
disabled: props.isNafathLoading,
|
740
|
+
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
741
|
+
variant: "outline",
|
742
|
+
onClick: props.handleNafath
|
743
|
+
},
|
744
|
+
props.isNafathLoading ? /* @__PURE__ */ import_react3.default.createElement(Loading, { size: "button" }) : /* @__PURE__ */ import_react3.default.createElement(Logos.nafath, { className: "hawa-h-4" }),
|
745
|
+
(_d = (_c = props.texts) == null ? void 0 : _c.continueWithNafath) != null ? _d : "Continue With Nafath"
|
746
|
+
), props.viaGoogle && /* @__PURE__ */ import_react3.default.createElement(
|
579
747
|
Button,
|
580
748
|
{
|
581
749
|
disabled: props.isGoogleLoading,
|
@@ -584,7 +752,7 @@ var AuthButtons = (props) => {
|
|
584
752
|
onClick: props.handleGoogle
|
585
753
|
},
|
586
754
|
props.isGoogleLoading ? /* @__PURE__ */ import_react3.default.createElement(Loading, { size: "button" }) : /* @__PURE__ */ import_react3.default.createElement(Logos.google, { className: "hawa-icon" }),
|
587
|
-
(
|
755
|
+
(_f = (_e = props.texts) == null ? void 0 : _e.continueWithGoogle) != null ? _f : "Continue With Google"
|
588
756
|
), props.viaGithub && /* @__PURE__ */ import_react3.default.createElement(
|
589
757
|
Button,
|
590
758
|
{
|
@@ -594,7 +762,7 @@ var AuthButtons = (props) => {
|
|
594
762
|
onClick: props.handleGithub
|
595
763
|
},
|
596
764
|
props.isGithubLoading ? /* @__PURE__ */ import_react3.default.createElement(Loading, { size: "button" }) : /* @__PURE__ */ import_react3.default.createElement(Logos.github, { className: "hawa-icon" }),
|
597
|
-
(
|
765
|
+
(_h = (_g = props.texts) == null ? void 0 : _g.continueWithGithub) != null ? _h : "Continue With Github"
|
598
766
|
), props.viaTwitter && /* @__PURE__ */ import_react3.default.createElement(
|
599
767
|
Button,
|
600
768
|
{
|
@@ -604,7 +772,7 @@ var AuthButtons = (props) => {
|
|
604
772
|
onClick: props.handleTwitter
|
605
773
|
},
|
606
774
|
props.isTwitterLoading ? /* @__PURE__ */ import_react3.default.createElement(Loading, { size: "button" }) : /* @__PURE__ */ import_react3.default.createElement(Logos.twitter, { className: "hawa-icon" }),
|
607
|
-
(
|
775
|
+
(_j = (_i = props.texts) == null ? void 0 : _i.continueWithTwitter) != null ? _j : "Continue With Twitter"
|
608
776
|
), props.viaApple && /* @__PURE__ */ import_react3.default.createElement(
|
609
777
|
Button,
|
610
778
|
{
|
@@ -614,7 +782,7 @@ var AuthButtons = (props) => {
|
|
614
782
|
onClick: props.handleApple
|
615
783
|
},
|
616
784
|
props.isAppleLoading ? /* @__PURE__ */ import_react3.default.createElement(Loading, { size: "button" }) : /* @__PURE__ */ import_react3.default.createElement(Logos.apple, { className: "hawa-icon" }),
|
617
|
-
(
|
785
|
+
(_l = (_k = props.texts) == null ? void 0 : _k.continueWithApple) != null ? _l : "Continue With Apple"
|
618
786
|
), props.viaMicrosoft && /* @__PURE__ */ import_react3.default.createElement(
|
619
787
|
Button,
|
620
788
|
{
|
@@ -624,7 +792,7 @@ var AuthButtons = (props) => {
|
|
624
792
|
onClick: props.handleMicrosoft
|
625
793
|
},
|
626
794
|
props.isMicrosoftLoading ? /* @__PURE__ */ import_react3.default.createElement(Loading, { size: "button" }) : /* @__PURE__ */ import_react3.default.createElement(Logos.microsoft, { className: "hawa-icon" }),
|
627
|
-
(
|
795
|
+
(_n = (_m = props.texts) == null ? void 0 : _m.continueWithMicrosoft) != null ? _n : "Continue With Microsoft"
|
628
796
|
), props.viaEmail && /* @__PURE__ */ import_react3.default.createElement(
|
629
797
|
Button,
|
630
798
|
{
|
@@ -634,7 +802,7 @@ var AuthButtons = (props) => {
|
|
634
802
|
onClick: props.handleEmail
|
635
803
|
},
|
636
804
|
props.isEmailLoading ? /* @__PURE__ */ import_react3.default.createElement(Loading, { size: "button" }) : /* @__PURE__ */ import_react3.default.createElement(Logos.mail, { className: "hawa-icon" }),
|
637
|
-
(
|
805
|
+
(_p = (_o = props.texts) == null ? void 0 : _o.continueWithEmail) != null ? _p : "Continue With Email"
|
638
806
|
), props.viaPhone && /* @__PURE__ */ import_react3.default.createElement(
|
639
807
|
Button,
|
640
808
|
{
|
@@ -644,7 +812,7 @@ var AuthButtons = (props) => {
|
|
644
812
|
onClick: props.handlePhone
|
645
813
|
},
|
646
814
|
props.isPhoneLoading ? /* @__PURE__ */ import_react3.default.createElement(Loading, { size: "button" }) : /* @__PURE__ */ import_react3.default.createElement(Logos.phone, { className: "hawa-icon" }),
|
647
|
-
(
|
815
|
+
(_r = (_q = props.texts) == null ? void 0 : _q.continueWithPhone) != null ? _r : "Continue With Phone"
|
648
816
|
));
|
649
817
|
};
|
650
818
|
|
@@ -3988,10 +4156,15 @@ var RegisterForm = ({
|
|
3988
4156
|
id: "terms_accepted",
|
3989
4157
|
helperText: (_b2 = (_a2 = formState.errors.terms_accepted) == null ? void 0 : _a2.message) == null ? void 0 : _b2.toString(),
|
3990
4158
|
onCheckedChange: (e) => field.onChange(e),
|
3991
|
-
label: /* @__PURE__ */ import_react15.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-gap-0.5
|
3992
|
-
"
|
4159
|
+
label: /* @__PURE__ */ import_react15.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-gap-0.5 hawa-whitespace-nowrap hawa-flex-wrap" }, (texts == null ? void 0 : texts.iAcceptText) || "I accept the", " ", /* @__PURE__ */ import_react15.default.createElement(StopPropagationWrapper, null, /* @__PURE__ */ import_react15.default.createElement(
|
4160
|
+
"span",
|
3993
4161
|
{
|
3994
|
-
onClick:
|
4162
|
+
onClick: (e) => {
|
4163
|
+
e.preventDefault();
|
4164
|
+
if (props.onRouteToTOS) {
|
4165
|
+
props.onRouteToTOS();
|
4166
|
+
}
|
4167
|
+
},
|
3995
4168
|
className: "clickable-link"
|
3996
4169
|
},
|
3997
4170
|
(texts == null ? void 0 : texts.termsText) || "Terms of Service"
|
@@ -5166,10 +5339,7 @@ var FeedbackForm = (props) => {
|
|
5166
5339
|
});
|
5167
5340
|
const { handleSubmit, control, formState, reset } = (0, import_react_hook_form7.useForm)({
|
5168
5341
|
resolver: (0, import_zod7.zodResolver)(formSchema),
|
5169
|
-
defaultValues: {
|
5170
|
-
requestType: "",
|
5171
|
-
description: ""
|
5172
|
-
}
|
5342
|
+
defaultValues: { requestType: "", description: "" }
|
5173
5343
|
});
|
5174
5344
|
return /* @__PURE__ */ import_react26.default.createElement(
|
5175
5345
|
Card,
|
@@ -5179,7 +5349,7 @@ var FeedbackForm = (props) => {
|
|
5179
5349
|
),
|
5180
5350
|
style: props.cardless ? { boxShadow: "none" } : void 0
|
5181
5351
|
},
|
5182
|
-
/* @__PURE__ */ import_react26.default.createElement(CardContent, { headless: true, className: props.cardless ? "!hawa-p-0" : "" }, /* @__PURE__ */ import_react26.default.createElement(
|
5352
|
+
/* @__PURE__ */ import_react26.default.createElement(CardContent, { headless: true, className: props.cardless ? "!hawa-p-0" : "" }, props.sent ? /* @__PURE__ */ import_react26.default.createElement("div", { className: "hawa-text-center hawa-min-h-[200px] hawa-flex hawa-flex-col hawa-justify-center" }, /* @__PURE__ */ import_react26.default.createElement("div", { className: "hawa-font-bold hawa-text-lg" }, props.texts.sentTitle || "Form submitted"), /* @__PURE__ */ import_react26.default.createElement("div", { className: "hawa-text-md" }, props.texts.sentSubtitle || "Thank you for your submission")) : /* @__PURE__ */ import_react26.default.createElement(
|
5183
5353
|
"form",
|
5184
5354
|
{
|
5185
5355
|
noValidate: true,
|
package/dist/blocks/index.mjs
CHANGED
@@ -26,7 +26,7 @@ import {
|
|
26
26
|
UncheckMark,
|
27
27
|
VeryBadEmoji,
|
28
28
|
VeryGoodEmoji
|
29
|
-
} from "../chunk-
|
29
|
+
} from "../chunk-GQF62TFQ.mjs";
|
30
30
|
import {
|
31
31
|
Button,
|
32
32
|
Card,
|
@@ -42,14 +42,34 @@ import {
|
|
42
42
|
Skeleton,
|
43
43
|
Tooltip,
|
44
44
|
cn
|
45
|
-
} from "../chunk-
|
45
|
+
} from "../chunk-ZOFKAJPJ.mjs";
|
46
46
|
import "../chunk-4OOSUQZG.mjs";
|
47
47
|
|
48
48
|
// blocks/auth/AuthButtons.tsx
|
49
49
|
import React from "react";
|
50
50
|
var AuthButtons = (props) => {
|
51
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
|
52
|
-
return /* @__PURE__ */ React.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-4" }, props.
|
51
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r;
|
52
|
+
return /* @__PURE__ */ React.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-4" }, props.viaMetamask && /* @__PURE__ */ React.createElement(
|
53
|
+
Button,
|
54
|
+
{
|
55
|
+
disabled: props.isMetamaskLoading,
|
56
|
+
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
57
|
+
variant: "outline",
|
58
|
+
onClick: props.handleMetamask
|
59
|
+
},
|
60
|
+
props.isMetamaskLoading ? /* @__PURE__ */ React.createElement(Loading, { size: "button" }) : /* @__PURE__ */ React.createElement(Logos.metamask, { className: "hawa-h-6" }),
|
61
|
+
(_b = (_a = props.texts) == null ? void 0 : _a.continueWithMetamask) != null ? _b : "Connect Metamask"
|
62
|
+
), props.viaNafath && /* @__PURE__ */ React.createElement(
|
63
|
+
Button,
|
64
|
+
{
|
65
|
+
disabled: props.isNafathLoading,
|
66
|
+
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
67
|
+
variant: "outline",
|
68
|
+
onClick: props.handleNafath
|
69
|
+
},
|
70
|
+
props.isNafathLoading ? /* @__PURE__ */ React.createElement(Loading, { size: "button" }) : /* @__PURE__ */ React.createElement(Logos.nafath, { className: "hawa-h-4" }),
|
71
|
+
(_d = (_c = props.texts) == null ? void 0 : _c.continueWithNafath) != null ? _d : "Continue With Nafath"
|
72
|
+
), props.viaGoogle && /* @__PURE__ */ React.createElement(
|
53
73
|
Button,
|
54
74
|
{
|
55
75
|
disabled: props.isGoogleLoading,
|
@@ -58,7 +78,7 @@ var AuthButtons = (props) => {
|
|
58
78
|
onClick: props.handleGoogle
|
59
79
|
},
|
60
80
|
props.isGoogleLoading ? /* @__PURE__ */ React.createElement(Loading, { size: "button" }) : /* @__PURE__ */ React.createElement(Logos.google, { className: "hawa-icon" }),
|
61
|
-
(
|
81
|
+
(_f = (_e = props.texts) == null ? void 0 : _e.continueWithGoogle) != null ? _f : "Continue With Google"
|
62
82
|
), props.viaGithub && /* @__PURE__ */ React.createElement(
|
63
83
|
Button,
|
64
84
|
{
|
@@ -68,7 +88,7 @@ var AuthButtons = (props) => {
|
|
68
88
|
onClick: props.handleGithub
|
69
89
|
},
|
70
90
|
props.isGithubLoading ? /* @__PURE__ */ React.createElement(Loading, { size: "button" }) : /* @__PURE__ */ React.createElement(Logos.github, { className: "hawa-icon" }),
|
71
|
-
(
|
91
|
+
(_h = (_g = props.texts) == null ? void 0 : _g.continueWithGithub) != null ? _h : "Continue With Github"
|
72
92
|
), props.viaTwitter && /* @__PURE__ */ React.createElement(
|
73
93
|
Button,
|
74
94
|
{
|
@@ -78,7 +98,7 @@ var AuthButtons = (props) => {
|
|
78
98
|
onClick: props.handleTwitter
|
79
99
|
},
|
80
100
|
props.isTwitterLoading ? /* @__PURE__ */ React.createElement(Loading, { size: "button" }) : /* @__PURE__ */ React.createElement(Logos.twitter, { className: "hawa-icon" }),
|
81
|
-
(
|
101
|
+
(_j = (_i = props.texts) == null ? void 0 : _i.continueWithTwitter) != null ? _j : "Continue With Twitter"
|
82
102
|
), props.viaApple && /* @__PURE__ */ React.createElement(
|
83
103
|
Button,
|
84
104
|
{
|
@@ -88,7 +108,7 @@ var AuthButtons = (props) => {
|
|
88
108
|
onClick: props.handleApple
|
89
109
|
},
|
90
110
|
props.isAppleLoading ? /* @__PURE__ */ React.createElement(Loading, { size: "button" }) : /* @__PURE__ */ React.createElement(Logos.apple, { className: "hawa-icon" }),
|
91
|
-
(
|
111
|
+
(_l = (_k = props.texts) == null ? void 0 : _k.continueWithApple) != null ? _l : "Continue With Apple"
|
92
112
|
), props.viaMicrosoft && /* @__PURE__ */ React.createElement(
|
93
113
|
Button,
|
94
114
|
{
|
@@ -98,7 +118,7 @@ var AuthButtons = (props) => {
|
|
98
118
|
onClick: props.handleMicrosoft
|
99
119
|
},
|
100
120
|
props.isMicrosoftLoading ? /* @__PURE__ */ React.createElement(Loading, { size: "button" }) : /* @__PURE__ */ React.createElement(Logos.microsoft, { className: "hawa-icon" }),
|
101
|
-
(
|
121
|
+
(_n = (_m = props.texts) == null ? void 0 : _m.continueWithMicrosoft) != null ? _n : "Continue With Microsoft"
|
102
122
|
), props.viaEmail && /* @__PURE__ */ React.createElement(
|
103
123
|
Button,
|
104
124
|
{
|
@@ -108,7 +128,7 @@ var AuthButtons = (props) => {
|
|
108
128
|
onClick: props.handleEmail
|
109
129
|
},
|
110
130
|
props.isEmailLoading ? /* @__PURE__ */ React.createElement(Loading, { size: "button" }) : /* @__PURE__ */ React.createElement(Logos.mail, { className: "hawa-icon" }),
|
111
|
-
(
|
131
|
+
(_p = (_o = props.texts) == null ? void 0 : _o.continueWithEmail) != null ? _p : "Continue With Email"
|
112
132
|
), props.viaPhone && /* @__PURE__ */ React.createElement(
|
113
133
|
Button,
|
114
134
|
{
|
@@ -118,7 +138,7 @@ var AuthButtons = (props) => {
|
|
118
138
|
onClick: props.handlePhone
|
119
139
|
},
|
120
140
|
props.isPhoneLoading ? /* @__PURE__ */ React.createElement(Loading, { size: "button" }) : /* @__PURE__ */ React.createElement(Logos.phone, { className: "hawa-icon" }),
|
121
|
-
(
|
141
|
+
(_r = (_q = props.texts) == null ? void 0 : _q.continueWithPhone) != null ? _r : "Continue With Phone"
|
122
142
|
));
|
123
143
|
};
|
124
144
|
|
@@ -728,10 +748,15 @@ var RegisterForm = ({
|
|
728
748
|
id: "terms_accepted",
|
729
749
|
helperText: (_b2 = (_a2 = formState.errors.terms_accepted) == null ? void 0 : _a2.message) == null ? void 0 : _b2.toString(),
|
730
750
|
onCheckedChange: (e) => field.onChange(e),
|
731
|
-
label: /* @__PURE__ */ React3.createElement("div", { className: "hawa-flex hawa-flex-row hawa-gap-0.5
|
732
|
-
"
|
751
|
+
label: /* @__PURE__ */ React3.createElement("div", { className: "hawa-flex hawa-flex-row hawa-gap-0.5 hawa-whitespace-nowrap hawa-flex-wrap" }, (texts == null ? void 0 : texts.iAcceptText) || "I accept the", " ", /* @__PURE__ */ React3.createElement(StopPropagationWrapper, null, /* @__PURE__ */ React3.createElement(
|
752
|
+
"span",
|
733
753
|
{
|
734
|
-
onClick:
|
754
|
+
onClick: (e) => {
|
755
|
+
e.preventDefault();
|
756
|
+
if (props.onRouteToTOS) {
|
757
|
+
props.onRouteToTOS();
|
758
|
+
}
|
759
|
+
},
|
735
760
|
className: "clickable-link"
|
736
761
|
},
|
737
762
|
(texts == null ? void 0 : texts.termsText) || "Terms of Service"
|
@@ -1511,10 +1536,7 @@ var FeedbackForm = (props) => {
|
|
1511
1536
|
});
|
1512
1537
|
const { handleSubmit, control, formState, reset } = useForm7({
|
1513
1538
|
resolver: zodResolver7(formSchema),
|
1514
|
-
defaultValues: {
|
1515
|
-
requestType: "",
|
1516
|
-
description: ""
|
1517
|
-
}
|
1539
|
+
defaultValues: { requestType: "", description: "" }
|
1518
1540
|
});
|
1519
1541
|
return /* @__PURE__ */ React12.createElement(
|
1520
1542
|
Card,
|
@@ -1524,7 +1546,7 @@ var FeedbackForm = (props) => {
|
|
1524
1546
|
),
|
1525
1547
|
style: props.cardless ? { boxShadow: "none" } : void 0
|
1526
1548
|
},
|
1527
|
-
/* @__PURE__ */ React12.createElement(CardContent, { headless: true, className: props.cardless ? "!hawa-p-0" : "" }, /* @__PURE__ */ React12.createElement(
|
1549
|
+
/* @__PURE__ */ React12.createElement(CardContent, { headless: true, className: props.cardless ? "!hawa-p-0" : "" }, props.sent ? /* @__PURE__ */ React12.createElement("div", { className: "hawa-text-center hawa-min-h-[200px] hawa-flex hawa-flex-col hawa-justify-center" }, /* @__PURE__ */ React12.createElement("div", { className: "hawa-font-bold hawa-text-lg" }, props.texts.sentTitle || "Form submitted"), /* @__PURE__ */ React12.createElement("div", { className: "hawa-text-md" }, props.texts.sentSubtitle || "Thank you for your submission")) : /* @__PURE__ */ React12.createElement(
|
1528
1550
|
"form",
|
1529
1551
|
{
|
1530
1552
|
noValidate: true,
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { FC, InputHTMLAttributes } from 'react';
|
2
|
-
import { P as PositionType, D as DirectionType, d as PricingPlanTexts, R as RadioOptionType } from '../../textTypes-
|
2
|
+
import { P as PositionType, D as DirectionType, d as PricingPlanTexts, R as RadioOptionType } from '../../textTypes-DAgkNov8.mjs';
|
3
3
|
|
4
4
|
type PlanFeature = {
|
5
5
|
soon?: boolean;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { FC, InputHTMLAttributes } from 'react';
|
2
|
-
import { P as PositionType, D as DirectionType, d as PricingPlanTexts, R as RadioOptionType } from '../../textTypes-
|
2
|
+
import { P as PositionType, D as DirectionType, d as PricingPlanTexts, R as RadioOptionType } from '../../textTypes-DAgkNov8.js';
|
3
3
|
|
4
4
|
type PlanFeature = {
|
5
5
|
soon?: boolean;
|