@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.
Files changed (93) hide show
  1. package/dist/appLayout/index.js +1 -1
  2. package/dist/appLayout/index.js.map +1 -1
  3. package/dist/appLayout/index.mjs +1 -1
  4. package/dist/appLayout/index.mjs.map +1 -1
  5. package/dist/blocks/auth/index.d.mts +5 -0
  6. package/dist/blocks/auth/index.d.ts +5 -0
  7. package/dist/blocks/auth/index.js +257 -248
  8. package/dist/blocks/auth/index.mjs +260 -251
  9. package/dist/blocks/feedback/index.js +1 -1
  10. package/dist/blocks/feedback/index.mjs +5 -5
  11. package/dist/blocks/index.d.mts +5 -0
  12. package/dist/blocks/index.d.ts +5 -0
  13. package/dist/blocks/index.js +257 -248
  14. package/dist/blocks/index.mjs +258 -249
  15. package/dist/blocks/misc/index.js +1 -1
  16. package/dist/blocks/misc/index.mjs +5 -5
  17. package/dist/blocks/pricing/index.js +1 -1
  18. package/dist/blocks/pricing/index.mjs +4 -4
  19. package/dist/{chunk-X43DYWMS.mjs → chunk-7CYXEZDV.mjs} +1 -1
  20. package/dist/{chunk-ELDUKPOJ.mjs → chunk-7QEBDFLT.mjs} +1 -1
  21. package/dist/{chunk-4V3JYKXA.mjs → chunk-DQHPOUHR.mjs} +1 -1
  22. package/dist/{chunk-OKTSMWI6.mjs → chunk-DUL6C2S2.mjs} +1 -1
  23. package/dist/{chunk-V5EPRL6U.mjs → chunk-EFWL3FFK.mjs} +1 -1
  24. package/dist/{chunk-2EUB7RZD.mjs → chunk-F56X3EW2.mjs} +1 -1
  25. package/dist/{chunk-OOTIDLPP.mjs → chunk-M6XGGAPQ.mjs} +1 -1
  26. package/dist/{chunk-M7YG4RQ3.mjs → chunk-MMOEFJSP.mjs} +1 -1
  27. package/dist/{chunk-TKEDUZKG.mjs → chunk-W5I4VB5Z.mjs} +1 -1
  28. package/dist/{chunk-WXHZXK5S.mjs → chunk-ZOWDRDAM.mjs} +1 -1
  29. package/dist/codeBlock/index.js +1 -1
  30. package/dist/codeBlock/index.js.map +1 -1
  31. package/dist/codeBlock/index.mjs +1 -1
  32. package/dist/codeBlock/index.mjs.map +1 -1
  33. package/dist/colorPicker/index.js +1 -1
  34. package/dist/colorPicker/index.js.map +1 -1
  35. package/dist/colorPicker/index.mjs +1 -1
  36. package/dist/colorPicker/index.mjs.map +1 -1
  37. package/dist/combobox/index.js +1 -1
  38. package/dist/combobox/index.js.map +1 -1
  39. package/dist/combobox/index.mjs +1 -1
  40. package/dist/combobox/index.mjs.map +1 -1
  41. package/dist/dataTable/index.js +1 -1
  42. package/dist/dataTable/index.js.map +1 -1
  43. package/dist/dataTable/index.mjs +1 -1
  44. package/dist/dataTable/index.mjs.map +1 -1
  45. package/dist/elements/index.js +1 -1
  46. package/dist/elements/index.mjs +3 -3
  47. package/dist/index.d.mts +5 -0
  48. package/dist/index.d.ts +5 -0
  49. package/dist/index.js +257 -248
  50. package/dist/index.mjs +257 -248
  51. package/dist/input/index.js +1 -1
  52. package/dist/input/index.js.map +1 -1
  53. package/dist/input/index.mjs +1 -1
  54. package/dist/input/index.mjs.map +1 -1
  55. package/dist/interfaceSettings/index.js +1 -1
  56. package/dist/interfaceSettings/index.js.map +1 -1
  57. package/dist/interfaceSettings/index.mjs +1 -1
  58. package/dist/interfaceSettings/index.mjs.map +1 -1
  59. package/dist/label/index.js +1 -1
  60. package/dist/label/index.js.map +1 -1
  61. package/dist/label/index.mjs +1 -1
  62. package/dist/label/index.mjs.map +1 -1
  63. package/dist/layout/index.js +1 -1
  64. package/dist/layout/index.mjs +2 -2
  65. package/dist/passwordInput/index.js +1 -1
  66. package/dist/passwordInput/index.js.map +1 -1
  67. package/dist/passwordInput/index.mjs +1 -1
  68. package/dist/passwordInput/index.mjs.map +1 -1
  69. package/dist/phoneInput/index.js +1 -1
  70. package/dist/phoneInput/index.js.map +1 -1
  71. package/dist/phoneInput/index.mjs +1 -1
  72. package/dist/phoneInput/index.mjs.map +1 -1
  73. package/dist/radio/index.js +1 -1
  74. package/dist/radio/index.js.map +1 -1
  75. package/dist/radio/index.mjs +1 -1
  76. package/dist/radio/index.mjs.map +1 -1
  77. package/dist/select/index.js +1 -1
  78. package/dist/select/index.js.map +1 -1
  79. package/dist/select/index.mjs +1 -1
  80. package/dist/select/index.mjs.map +1 -1
  81. package/dist/signature/index.js +1 -1
  82. package/dist/signature/index.js.map +1 -1
  83. package/dist/signature/index.mjs +1 -1
  84. package/dist/signature/index.mjs.map +1 -1
  85. package/dist/textarea/index.js +1 -1
  86. package/dist/textarea/index.js.map +1 -1
  87. package/dist/textarea/index.mjs +1 -1
  88. package/dist/textarea/index.mjs.map +1 -1
  89. package/dist/tooltip/index.js +1 -1
  90. package/dist/tooltip/index.js.map +1 -1
  91. package/dist/tooltip/index.mjs +1 -1
  92. package/dist/tooltip/index.mjs.map +1 -1
  93. package/package.json +1 -1
@@ -26,7 +26,7 @@ import {
26
26
  UncheckMark,
27
27
  VeryBadEmoji,
28
28
  VeryGoodEmoji
29
- } from "../chunk-2EUB7RZD.mjs";
29
+ } from "../chunk-F56X3EW2.mjs";
30
30
  import {
31
31
  Button,
32
32
  Card,
@@ -42,7 +42,7 @@ import {
42
42
  Skeleton,
43
43
  Tooltip,
44
44
  cn
45
- } from "../chunk-WXHZXK5S.mjs";
45
+ } from "../chunk-ZOWDRDAM.mjs";
46
46
  import "../chunk-4OOSUQZG.mjs";
47
47
 
48
48
  // blocks/auth/LoginForm.tsx
@@ -442,7 +442,7 @@ var RegisterForm = ({
442
442
  showNewsletterOption = false,
443
443
  ...props
444
444
  }) => {
445
- var _a, _b, _c, _d, _e, _f;
445
+ var _a, _b, _c, _d, _e, _f, _g, _h;
446
446
  const [passwordVisible, setPasswordVisible] = useState2(false);
447
447
  const thirdPartyAuthTexts = {
448
448
  continueWithGoogle: texts == null ? void 0 : texts.continueWithGoogle,
@@ -508,281 +508,290 @@ var RegisterForm = ({
508
508
  const { handleSubmit, control, formState } = useForm2({
509
509
  resolver: zodResolver2(formSchema)
510
510
  });
511
- return /* @__PURE__ */ React3.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-4" }, /* @__PURE__ */ React3.createElement(Card, { dir: props.direction }, /* @__PURE__ */ React3.createElement(CardContent, { headless: true }, /* @__PURE__ */ React3.createElement("div", null, props.showError && /* @__PURE__ */ React3.createElement(
512
- Alert,
513
- {
514
- title: props.errorTitle,
515
- text: props.errorText,
516
- severity: "error"
517
- }
518
- ), /* @__PURE__ */ React3.createElement(FormProvider, { ...methods }, /* @__PURE__ */ React3.createElement(
519
- "form",
511
+ return /* @__PURE__ */ React3.createElement(
512
+ "div",
520
513
  {
521
- noValidate: true,
522
- onSubmit: handleSubmit((e) => {
523
- if (props.onRegister) {
524
- return props.onRegister(e);
525
- } else {
526
- console.log(
527
- "Form is submitted but onRegister prop is missing"
528
- );
529
- }
530
- }),
531
- className: "hawa-flex hawa-flex-col hawa-gap-4"
514
+ className: cn(
515
+ "hawa-flex hawa-flex-col hawa-gap-4",
516
+ (_g = props.classNames) == null ? void 0 : _g.root
517
+ )
532
518
  },
533
- /* @__PURE__ */ React3.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-4" }, registerFields.map((fld, i) => {
534
- if (fld === "fullname") {
535
- return /* @__PURE__ */ React3.createElement(
536
- Controller2,
537
- {
538
- key: i,
539
- control,
540
- name: "fullName",
541
- render: ({ field }) => {
542
- var _a2, _b2, _c2;
543
- return /* @__PURE__ */ React3.createElement(
544
- Input,
545
- {
546
- width: "full",
547
- label: ((_a2 = texts == null ? void 0 : texts.fullName) == null ? void 0 : _a2.label) || "Full Name",
548
- placeholder: (_b2 = texts == null ? void 0 : texts.fullName) == null ? void 0 : _b2.placeholder,
549
- helperText: (_c2 = formState.errors.fullName) == null ? void 0 : _c2.message,
550
- ...field
551
- }
552
- );
553
- }
554
- }
555
- );
556
- }
557
- if (fld === "email") {
558
- return /* @__PURE__ */ React3.createElement(
559
- Controller2,
560
- {
561
- key: i,
562
- control,
563
- name: "email",
564
- render: ({ field }) => {
565
- var _a2, _b2, _c2;
566
- return /* @__PURE__ */ React3.createElement(
567
- Input,
568
- {
569
- dir: "ltr",
570
- inputProps: {
571
- className: props.direction === "rtl" ? "hawa-text-right" : "hawa-text-left"
572
- },
573
- width: "full",
574
- autoComplete: "email",
575
- label: ((_a2 = texts == null ? void 0 : texts.email) == null ? void 0 : _a2.label) || "Email",
576
- helperText: (_b2 = formState.errors.email) == null ? void 0 : _b2.message,
577
- placeholder: ((_c2 = texts == null ? void 0 : texts.email) == null ? void 0 : _c2.placeholder) || "Enter your email",
578
- ...field
579
- }
580
- );
581
- }
582
- }
583
- );
584
- }
585
- if (fld === "username") {
586
- return /* @__PURE__ */ React3.createElement(
587
- Controller2,
588
- {
589
- key: i,
590
- control,
591
- name: "username",
592
- render: ({ field }) => {
593
- var _a2, _b2, _c2, _d2;
594
- return /* @__PURE__ */ React3.createElement(
595
- Input,
596
- {
597
- width: "full",
598
- autoComplete: "username",
599
- label: ((_a2 = texts == null ? void 0 : texts.username) == null ? void 0 : _a2.label) || "Username",
600
- labelProps: {
601
- ...(_b2 = props.usernameOptions) == null ? void 0 : _b2.label
602
- },
603
- helperText: (_c2 = formState.errors.username) == null ? void 0 : _c2.message,
604
- placeholder: (_d2 = texts == null ? void 0 : texts.username) == null ? void 0 : _d2.placeholder,
605
- ...field
606
- }
607
- );
608
- }
609
- }
610
- );
611
- }
612
- })),
613
- /* @__PURE__ */ React3.createElement(
614
- Controller2,
519
+ /* @__PURE__ */ React3.createElement(Card, { dir: props.direction, className: cn((_h = props.classNames) == null ? void 0 : _h.card) }, /* @__PURE__ */ React3.createElement(CardContent, { headless: true }, /* @__PURE__ */ React3.createElement("div", null, props.showError && /* @__PURE__ */ React3.createElement(
520
+ Alert,
615
521
  {
616
- control,
617
- name: "password",
618
- render: ({ field }) => {
619
- var _a2, _b2, _c2;
620
- return /* @__PURE__ */ React3.createElement(
621
- Input,
622
- {
623
- width: "full",
624
- type: passwordVisible ? "text" : "password",
625
- endIcon: /* @__PURE__ */ React3.createElement(
626
- "div",
627
- {
628
- className: "hawa-cursor-pointer",
629
- onClick: () => setPasswordVisible(!passwordVisible)
630
- },
631
- passwordVisible ? /* @__PURE__ */ React3.createElement(EyeIcon, { className: "hawa-text-gray-500" }) : /* @__PURE__ */ React3.createElement(HiddenEyeIcon, { className: "hawa-text-gray-500" }),
632
- " "
633
- ),
634
- autoComplete: "new-password",
635
- label: ((_a2 = texts == null ? void 0 : texts.password) == null ? void 0 : _a2.label) || "Password",
636
- placeholder: (_b2 = texts == null ? void 0 : texts.password) == null ? void 0 : _b2.placeholder,
637
- helperText: (_c2 = formState.errors.password) == null ? void 0 : _c2.message,
638
- ...field
639
- }
640
- );
641
- }
522
+ title: props.errorTitle,
523
+ text: props.errorText,
524
+ severity: "error"
642
525
  }
643
- ),
644
- /* @__PURE__ */ React3.createElement(
645
- Controller2,
526
+ ), /* @__PURE__ */ React3.createElement(FormProvider, { ...methods }, /* @__PURE__ */ React3.createElement(
527
+ "form",
646
528
  {
647
- control,
648
- name: "confirm_password",
649
- render: ({ field }) => {
650
- var _a2, _b2, _c2;
529
+ noValidate: true,
530
+ onSubmit: handleSubmit((e) => {
531
+ if (props.onRegister) {
532
+ return props.onRegister(e);
533
+ } else {
534
+ console.log(
535
+ "Form is submitted but onRegister prop is missing"
536
+ );
537
+ }
538
+ }),
539
+ className: "hawa-flex hawa-flex-col hawa-gap-4"
540
+ },
541
+ /* @__PURE__ */ React3.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-4" }, registerFields.map((fld, i) => {
542
+ if (fld === "fullname") {
651
543
  return /* @__PURE__ */ React3.createElement(
652
- Input,
544
+ Controller2,
653
545
  {
654
- width: "full",
655
- type: "password",
656
- autoComplete: "new-password",
657
- label: ((_a2 = texts == null ? void 0 : texts.confirm) == null ? void 0 : _a2.label) || "Confirm Password",
658
- placeholder: ((_b2 = texts == null ? void 0 : texts.confirm) == null ? void 0 : _b2.placeholder) || "Confirm your Password",
659
- helperText: (_c2 = formState.errors.confirm_password) == null ? void 0 : _c2.message,
660
- ...field
546
+ key: i,
547
+ control,
548
+ name: "fullName",
549
+ render: ({ field }) => {
550
+ var _a2, _b2, _c2;
551
+ return /* @__PURE__ */ React3.createElement(
552
+ Input,
553
+ {
554
+ width: "full",
555
+ label: ((_a2 = texts == null ? void 0 : texts.fullName) == null ? void 0 : _a2.label) || "Full Name",
556
+ placeholder: (_b2 = texts == null ? void 0 : texts.fullName) == null ? void 0 : _b2.placeholder,
557
+ helperText: (_c2 = formState.errors.fullName) == null ? void 0 : _c2.message,
558
+ ...field
559
+ }
560
+ );
561
+ }
661
562
  }
662
563
  );
663
564
  }
664
- }
665
- ),
666
- props.additionalInputs,
667
- props.showRefCode && /* @__PURE__ */ React3.createElement(
668
- Controller2,
669
- {
670
- control,
671
- name: "refCode",
672
- render: ({ field }) => {
673
- var _a2;
565
+ if (fld === "email") {
674
566
  return /* @__PURE__ */ React3.createElement(
675
- Input,
567
+ Controller2,
676
568
  {
677
- width: "full",
678
- label: texts == null ? void 0 : texts.refCode,
679
- placeholder: (texts == null ? void 0 : texts.refCodePlaceholder) || "Enter the referral code",
680
- helperText: (_a2 = formState.errors.refCode) == null ? void 0 : _a2.message,
681
- ...field
569
+ key: i,
570
+ control,
571
+ name: "email",
572
+ render: ({ field }) => {
573
+ var _a2, _b2, _c2;
574
+ return /* @__PURE__ */ React3.createElement(
575
+ Input,
576
+ {
577
+ dir: "ltr",
578
+ inputProps: {
579
+ className: props.direction === "rtl" ? "hawa-text-right" : "hawa-text-left"
580
+ },
581
+ width: "full",
582
+ autoComplete: "email",
583
+ label: ((_a2 = texts == null ? void 0 : texts.email) == null ? void 0 : _a2.label) || "Email",
584
+ helperText: (_b2 = formState.errors.email) == null ? void 0 : _b2.message,
585
+ placeholder: ((_c2 = texts == null ? void 0 : texts.email) == null ? void 0 : _c2.placeholder) || "Enter your email",
586
+ ...field
587
+ }
588
+ );
589
+ }
682
590
  }
683
591
  );
684
592
  }
685
- }
686
- ),
687
- props.showUserSource && /* @__PURE__ */ React3.createElement(
688
- Controller2,
689
- {
690
- control,
691
- name: "reference",
692
- render: ({ field }) => {
693
- var _a2, _b2;
593
+ if (fld === "username") {
694
594
  return /* @__PURE__ */ React3.createElement(
695
- Select,
595
+ Controller2,
696
596
  {
697
- label: ((_a2 = texts == null ? void 0 : texts.userReference) == null ? void 0 : _a2.label) || "How did you learn about us?",
698
- placeholder: (_b2 = texts == null ? void 0 : texts.userReference) == null ? void 0 : _b2.placeholder,
699
- isCreatable: false,
700
- isMulti: false,
701
- isSearchable: false,
702
- isClearable: false,
703
- options: props.userReferenceOptions,
704
- onChange: (e) => {
705
- field.onChange(e.value);
597
+ key: i,
598
+ control,
599
+ name: "username",
600
+ render: ({ field }) => {
601
+ var _a2, _b2, _c2, _d2;
602
+ return /* @__PURE__ */ React3.createElement(
603
+ Input,
604
+ {
605
+ width: "full",
606
+ autoComplete: "username",
607
+ label: ((_a2 = texts == null ? void 0 : texts.username) == null ? void 0 : _a2.label) || "Username",
608
+ labelProps: {
609
+ ...(_b2 = props.usernameOptions) == null ? void 0 : _b2.label
610
+ },
611
+ helperText: (_c2 = formState.errors.username) == null ? void 0 : _c2.message,
612
+ placeholder: (_d2 = texts == null ? void 0 : texts.username) == null ? void 0 : _d2.placeholder,
613
+ ...field
614
+ }
615
+ );
706
616
  }
707
617
  }
708
618
  );
709
619
  }
710
- }
711
- ),
712
- showTermsOption || showNewsletterOption ? /* @__PURE__ */ React3.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-3 hawa-mb-2" }, showTermsOption && /* @__PURE__ */ React3.createElement(
713
- Controller2,
714
- {
715
- control,
716
- name: "terms_accepted",
717
- render: ({ field }) => {
718
- var _a2, _b2;
719
- return /* @__PURE__ */ React3.createElement(
620
+ })),
621
+ /* @__PURE__ */ React3.createElement(
622
+ Controller2,
623
+ {
624
+ control,
625
+ name: "password",
626
+ render: ({ field }) => {
627
+ var _a2, _b2, _c2;
628
+ return /* @__PURE__ */ React3.createElement(
629
+ Input,
630
+ {
631
+ width: "full",
632
+ type: passwordVisible ? "text" : "password",
633
+ endIcon: /* @__PURE__ */ React3.createElement(
634
+ "div",
635
+ {
636
+ className: "hawa-cursor-pointer",
637
+ onClick: () => setPasswordVisible(!passwordVisible)
638
+ },
639
+ passwordVisible ? /* @__PURE__ */ React3.createElement(EyeIcon, { className: "hawa-text-gray-500" }) : /* @__PURE__ */ React3.createElement(HiddenEyeIcon, { className: "hawa-text-gray-500" }),
640
+ " "
641
+ ),
642
+ autoComplete: "new-password",
643
+ label: ((_a2 = texts == null ? void 0 : texts.password) == null ? void 0 : _a2.label) || "Password",
644
+ placeholder: (_b2 = texts == null ? void 0 : texts.password) == null ? void 0 : _b2.placeholder,
645
+ helperText: (_c2 = formState.errors.password) == null ? void 0 : _c2.message,
646
+ ...field
647
+ }
648
+ );
649
+ }
650
+ }
651
+ ),
652
+ /* @__PURE__ */ React3.createElement(
653
+ Controller2,
654
+ {
655
+ control,
656
+ name: "confirm_password",
657
+ render: ({ field }) => {
658
+ var _a2, _b2, _c2;
659
+ return /* @__PURE__ */ React3.createElement(
660
+ Input,
661
+ {
662
+ width: "full",
663
+ type: "password",
664
+ autoComplete: "new-password",
665
+ label: ((_a2 = texts == null ? void 0 : texts.confirm) == null ? void 0 : _a2.label) || "Confirm Password",
666
+ placeholder: ((_b2 = texts == null ? void 0 : texts.confirm) == null ? void 0 : _b2.placeholder) || "Confirm your Password",
667
+ helperText: (_c2 = formState.errors.confirm_password) == null ? void 0 : _c2.message,
668
+ ...field
669
+ }
670
+ );
671
+ }
672
+ }
673
+ ),
674
+ props.additionalInputs,
675
+ props.showRefCode && /* @__PURE__ */ React3.createElement(
676
+ Controller2,
677
+ {
678
+ control,
679
+ name: "refCode",
680
+ render: ({ field }) => {
681
+ var _a2;
682
+ return /* @__PURE__ */ React3.createElement(
683
+ Input,
684
+ {
685
+ width: "full",
686
+ label: texts == null ? void 0 : texts.refCode,
687
+ placeholder: (texts == null ? void 0 : texts.refCodePlaceholder) || "Enter the referral code",
688
+ helperText: (_a2 = formState.errors.refCode) == null ? void 0 : _a2.message,
689
+ ...field
690
+ }
691
+ );
692
+ }
693
+ }
694
+ ),
695
+ props.showUserSource && /* @__PURE__ */ React3.createElement(
696
+ Controller2,
697
+ {
698
+ control,
699
+ name: "reference",
700
+ render: ({ field }) => {
701
+ var _a2, _b2;
702
+ return /* @__PURE__ */ React3.createElement(
703
+ Select,
704
+ {
705
+ label: ((_a2 = texts == null ? void 0 : texts.userReference) == null ? void 0 : _a2.label) || "How did you learn about us?",
706
+ placeholder: (_b2 = texts == null ? void 0 : texts.userReference) == null ? void 0 : _b2.placeholder,
707
+ isCreatable: false,
708
+ isMulti: false,
709
+ isSearchable: false,
710
+ isClearable: false,
711
+ options: props.userReferenceOptions,
712
+ onChange: (e) => {
713
+ field.onChange(e.value);
714
+ }
715
+ }
716
+ );
717
+ }
718
+ }
719
+ ),
720
+ showTermsOption || showNewsletterOption ? /* @__PURE__ */ React3.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-3 hawa-mb-2" }, showTermsOption && /* @__PURE__ */ React3.createElement(
721
+ Controller2,
722
+ {
723
+ control,
724
+ name: "terms_accepted",
725
+ render: ({ field }) => {
726
+ var _a2, _b2;
727
+ return /* @__PURE__ */ React3.createElement(
728
+ Checkbox,
729
+ {
730
+ id: "terms_accepted",
731
+ helperText: (_b2 = (_a2 = formState.errors.terms_accepted) == null ? void 0 : _a2.message) == null ? void 0 : _b2.toString(),
732
+ onCheckedChange: (e) => field.onChange(e),
733
+ label: /* @__PURE__ */ React3.createElement("div", { className: "hawa-flex hawa-flex-row hawa-gap-0.5" }, /* @__PURE__ */ React3.createElement("span", null, (texts == null ? void 0 : texts.iAcceptText) || "I accept the "), " ", /* @__PURE__ */ React3.createElement(StopPropagationWrapper, null, /* @__PURE__ */ React3.createElement(
734
+ "a",
735
+ {
736
+ onClick: props.onRouteToTOS,
737
+ className: "clickable-link"
738
+ },
739
+ (texts == null ? void 0 : texts.termsText) || "Terms of Service"
740
+ )))
741
+ }
742
+ );
743
+ }
744
+ }
745
+ ), showNewsletterOption && /* @__PURE__ */ React3.createElement(
746
+ Controller2,
747
+ {
748
+ control,
749
+ name: "newsletter_accepted",
750
+ render: ({ field }) => /* @__PURE__ */ React3.createElement(
720
751
  Checkbox,
721
752
  {
722
- id: "terms_accepted",
723
- helperText: (_b2 = (_a2 = formState.errors.terms_accepted) == null ? void 0 : _a2.message) == null ? void 0 : _b2.toString(),
724
- onCheckedChange: (e) => field.onChange(e),
725
- label: /* @__PURE__ */ React3.createElement("div", { className: "hawa-flex hawa-flex-row hawa-gap-0.5" }, /* @__PURE__ */ React3.createElement("span", null, (texts == null ? void 0 : texts.iAcceptText) || "I accept the "), " ", /* @__PURE__ */ React3.createElement(StopPropagationWrapper, null, /* @__PURE__ */ React3.createElement(
726
- "a",
727
- {
728
- onClick: props.onRouteToTOS,
729
- className: "clickable-link"
730
- },
731
- (texts == null ? void 0 : texts.termsText) || "Terms of Service"
732
- )))
753
+ id: "newsletter_accepted",
754
+ label: (texts == null ? void 0 : texts.subscribeToNewsletter) || "Subscribe to our newsletter",
755
+ onCheckedChange: field.onChange
733
756
  }
734
- );
757
+ )
735
758
  }
736
- }
737
- ), showNewsletterOption && /* @__PURE__ */ React3.createElement(
738
- Controller2,
759
+ )) : null,
760
+ /* @__PURE__ */ React3.createElement(
761
+ Button,
762
+ {
763
+ className: " hawa-w-full",
764
+ type: "submit",
765
+ isLoading: props.isLoading,
766
+ disabled: props.isLoading
767
+ },
768
+ (texts == null ? void 0 : texts.registerText) || "Register"
769
+ ),
770
+ props.additionalButtons
771
+ )), /* @__PURE__ */ React3.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__ */ React3.createElement("span", null, (texts == null ? void 0 : texts.existingUserText) || "Already have an account?"), /* @__PURE__ */ React3.createElement("span", { onClick: props.onRouteToLogin, className: "clickable-link" }, (texts == null ? void 0 : texts.loginText) || "Login")))), props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */ React3.createElement(
772
+ CardFooter,
739
773
  {
740
- control,
741
- name: "newsletter_accepted",
742
- render: ({ field }) => /* @__PURE__ */ React3.createElement(
743
- Checkbox,
744
- {
745
- id: "newsletter_accepted",
746
- label: (texts == null ? void 0 : texts.subscribeToNewsletter) || "Subscribe to our newsletter",
747
- onCheckedChange: field.onChange
748
- }
774
+ className: cn(
775
+ props.logosOnly ? "hawa-flex hawa-flex-row hawa-justify-center hawa-gap-2" : "hawa-grid hawa-grid-cols-1 hawa-gap-2"
749
776
  )
750
- }
751
- )) : null,
752
- /* @__PURE__ */ React3.createElement(
753
- Button,
754
- {
755
- className: " hawa-w-full",
756
- type: "submit",
757
- isLoading: props.isLoading,
758
- disabled: props.isLoading
759
777
  },
760
- (texts == null ? void 0 : texts.registerText) || "Register"
761
- ),
762
- props.additionalButtons
763
- )), /* @__PURE__ */ React3.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__ */ React3.createElement("span", null, (texts == null ? void 0 : texts.existingUserText) || "Already have an account?"), /* @__PURE__ */ React3.createElement("span", { onClick: props.onRouteToLogin, className: "clickable-link" }, (texts == null ? void 0 : texts.loginText) || "Login")))), props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */ React3.createElement(
764
- CardFooter,
765
- {
766
- className: cn(
767
- props.logosOnly ? "hawa-flex hawa-flex-row hawa-justify-center hawa-gap-2" : "hawa-grid hawa-grid-cols-1 hawa-gap-2"
778
+ /* @__PURE__ */ React3.createElement(
779
+ AuthButtons,
780
+ {
781
+ texts: thirdPartyAuthTexts,
782
+ viaGoogle: props.viaGoogle,
783
+ viaGithub: props.viaGithub,
784
+ viaTwitter: props.viaTwitter,
785
+ isGoogleLoading: props.isGoogleLoading,
786
+ isGithubLoading: props.isGithubLoading,
787
+ isTwitterLoading: props.isTwitterLoading,
788
+ handleGoogle: props.onGoogleRegister,
789
+ handleGithub: props.onGithubRegister,
790
+ handleTwitter: props.onTwitterRegister
791
+ }
768
792
  )
769
- },
770
- /* @__PURE__ */ React3.createElement(
771
- AuthButtons,
772
- {
773
- texts: thirdPartyAuthTexts,
774
- viaGoogle: props.viaGoogle,
775
- viaGithub: props.viaGithub,
776
- viaTwitter: props.viaTwitter,
777
- isGoogleLoading: props.isGoogleLoading,
778
- isGithubLoading: props.isGithubLoading,
779
- isTwitterLoading: props.isTwitterLoading,
780
- handleGoogle: props.onGoogleRegister,
781
- handleGithub: props.onGithubRegister,
782
- handleTwitter: props.onTwitterRegister
783
- }
784
- )
785
- ) : null));
793
+ ) : null)
794
+ );
786
795
  };
787
796
 
788
797
  // blocks/auth/AppLanding.tsx
@@ -749,7 +749,7 @@ var Tooltip = ({
749
749
  ...contentProps,
750
750
  style: {
751
751
  ...contentProps == null ? void 0 : contentProps.style,
752
- maxWidth: "var(--radix-tooltip-content-available-width) !important",
752
+ maxWidth: "var(--radix-tooltip-content-available-width)",
753
753
  maxHeight: "var(--radix-tooltip-content-available-height)"
754
754
  }
755
755
  },
@@ -1,17 +1,17 @@
1
1
  "use client";
2
2
  import {
3
3
  Input
4
- } from "../../chunk-OOTIDLPP.mjs";
4
+ } from "../../chunk-M6XGGAPQ.mjs";
5
5
  import {
6
6
  Chip,
7
7
  ScrollArea
8
- } from "../../chunk-M7YG4RQ3.mjs";
8
+ } from "../../chunk-MMOEFJSP.mjs";
9
9
  import {
10
10
  Textarea
11
- } from "../../chunk-TKEDUZKG.mjs";
11
+ } from "../../chunk-W5I4VB5Z.mjs";
12
12
  import {
13
13
  Select
14
- } from "../../chunk-4V3JYKXA.mjs";
14
+ } from "../../chunk-DQHPOUHR.mjs";
15
15
  import {
16
16
  Button,
17
17
  Card,
@@ -21,7 +21,7 @@ import {
21
21
  CardHeader,
22
22
  CardTitle,
23
23
  cn
24
- } from "../../chunk-ELDUKPOJ.mjs";
24
+ } from "../../chunk-7QEBDFLT.mjs";
25
25
 
26
26
  // blocks/misc/LegalTexts.tsx
27
27
  import React2 from "react";
@@ -545,7 +545,7 @@ var Tooltip = ({
545
545
  ...contentProps,
546
546
  style: {
547
547
  ...contentProps == null ? void 0 : contentProps.style,
548
- maxWidth: "var(--radix-tooltip-content-available-width) !important",
548
+ maxWidth: "var(--radix-tooltip-content-available-width)",
549
549
  maxHeight: "var(--radix-tooltip-content-available-height)"
550
550
  }
551
551
  },
@@ -2,22 +2,22 @@
2
2
  import {
3
3
  Chip,
4
4
  ScrollArea
5
- } from "../../chunk-M7YG4RQ3.mjs";
5
+ } from "../../chunk-MMOEFJSP.mjs";
6
6
  import "../../chunk-47APBDKK.mjs";
7
7
  import {
8
8
  Radio
9
- } from "../../chunk-OKTSMWI6.mjs";
9
+ } from "../../chunk-DUL6C2S2.mjs";
10
10
  import {
11
11
  CheckMark,
12
12
  UncheckMark
13
- } from "../../chunk-V5EPRL6U.mjs";
13
+ } from "../../chunk-EFWL3FFK.mjs";
14
14
  import {
15
15
  Button,
16
16
  Card,
17
17
  Skeleton,
18
18
  Tooltip,
19
19
  cn
20
- } from "../../chunk-ELDUKPOJ.mjs";
20
+ } from "../../chunk-7QEBDFLT.mjs";
21
21
 
22
22
  // blocks/pricing/PricingPlans.tsx
23
23
  import React8 from "react";
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  cn
4
- } from "./chunk-WXHZXK5S.mjs";
4
+ } from "./chunk-ZOWDRDAM.mjs";
5
5
 
6
6
  // elements/sheet/Sheet.tsx
7
7
  import * as React from "react";
@@ -443,7 +443,7 @@ var Tooltip = ({
443
443
  ...contentProps,
444
444
  style: {
445
445
  ...contentProps == null ? void 0 : contentProps.style,
446
- maxWidth: "var(--radix-tooltip-content-available-width) !important",
446
+ maxWidth: "var(--radix-tooltip-content-available-width)",
447
447
  maxHeight: "var(--radix-tooltip-content-available-height)"
448
448
  }
449
449
  },
@@ -3,7 +3,7 @@ import {
3
3
  Label,
4
4
  Skeleton,
5
5
  cn
6
- } from "./chunk-ELDUKPOJ.mjs";
6
+ } from "./chunk-7QEBDFLT.mjs";
7
7
 
8
8
  // elements/select/Select.tsx
9
9
  import React from "react";