@sikka/hawa 0.26.38-next → 0.27.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.
Files changed (83) hide show
  1. package/dist/accordion/index.js +1 -1
  2. package/dist/accordion/index.js.map +1 -1
  3. package/dist/accordion/index.mjs +1 -1
  4. package/dist/accordion/index.mjs.map +1 -1
  5. package/dist/appLayout/index.js +4 -1
  6. package/dist/appLayout/index.js.map +1 -1
  7. package/dist/appLayout/index.mjs +4 -1
  8. package/dist/appLayout/index.mjs.map +1 -1
  9. package/dist/appTopbar/index.js +4 -1
  10. package/dist/appTopbar/index.js.map +1 -1
  11. package/dist/appTopbar/index.mjs +4 -1
  12. package/dist/appTopbar/index.mjs.map +1 -1
  13. package/dist/blocks/auth/index.d.mts +13 -2
  14. package/dist/blocks/auth/index.d.ts +13 -2
  15. package/dist/blocks/auth/index.js +6 -3
  16. package/dist/blocks/auth/index.mjs +7 -5
  17. package/dist/blocks/feedback/index.d.mts +3 -4
  18. package/dist/blocks/feedback/index.d.ts +3 -4
  19. package/dist/blocks/feedback/index.mjs +1 -2
  20. package/dist/blocks/index.d.mts +15 -1
  21. package/dist/blocks/index.d.ts +15 -1
  22. package/dist/blocks/index.js +84 -12
  23. package/dist/blocks/index.mjs +82 -13
  24. package/dist/blocks/misc/index.d.mts +14 -4
  25. package/dist/blocks/misc/index.d.ts +14 -4
  26. package/dist/blocks/misc/index.js +246 -26
  27. package/dist/blocks/misc/index.mjs +77 -9
  28. package/dist/blocks/pricing/index.d.mts +1 -2
  29. package/dist/blocks/pricing/index.d.ts +1 -2
  30. package/dist/{chunk-D3KUSRHL.mjs → chunk-3MC4JLSW.mjs} +4 -1
  31. package/dist/{chunk-AXTPTA3S.mjs → chunk-BOVZAUWD.mjs} +1 -1
  32. package/dist/{chunk-VCCUBQFI.mjs → chunk-U7BFMH2T.mjs} +1 -1
  33. package/dist/codeBlock/index.d.mts +12 -2
  34. package/dist/codeBlock/index.d.ts +12 -2
  35. package/dist/codeBlock/index.js +72 -44
  36. package/dist/codeBlock/index.js.map +1 -1
  37. package/dist/codeBlock/index.mjs +73 -49
  38. package/dist/codeBlock/index.mjs.map +1 -1
  39. package/dist/combobox/index.js.map +1 -1
  40. package/dist/combobox/index.mjs.map +1 -1
  41. package/dist/command/index.d.mts +24 -37
  42. package/dist/command/index.d.ts +24 -37
  43. package/dist/command/index.js +3 -1
  44. package/dist/command/index.js.map +1 -1
  45. package/dist/command/index.mjs +3 -1
  46. package/dist/command/index.mjs.map +1 -1
  47. package/dist/dataTable/index.js +4 -1
  48. package/dist/dataTable/index.js.map +1 -1
  49. package/dist/dataTable/index.mjs +4 -1
  50. package/dist/dataTable/index.mjs.map +1 -1
  51. package/dist/dropdownMenu/index.js +4 -1
  52. package/dist/dropdownMenu/index.js.map +1 -1
  53. package/dist/dropdownMenu/index.mjs +4 -1
  54. package/dist/dropdownMenu/index.mjs.map +1 -1
  55. package/dist/elements/index.d.mts +67 -40
  56. package/dist/elements/index.d.ts +67 -40
  57. package/dist/elements/index.js +77 -46
  58. package/dist/elements/index.mjs +80 -56
  59. package/dist/index.css +30 -11
  60. package/dist/index.d.mts +81 -40
  61. package/dist/index.d.ts +81 -40
  62. package/dist/index.js +157 -57
  63. package/dist/index.mjs +196 -100
  64. package/dist/input/index.d.mts +31 -1
  65. package/dist/input/index.d.ts +31 -1
  66. package/dist/input/index.js.map +1 -1
  67. package/dist/input/index.mjs.map +1 -1
  68. package/dist/layout/index.js +4 -1
  69. package/dist/layout/index.mjs +2 -2
  70. package/dist/passwordInput/index.js.map +1 -1
  71. package/dist/passwordInput/index.mjs.map +1 -1
  72. package/dist/splitButton/index.js +4 -1
  73. package/dist/splitButton/index.js.map +1 -1
  74. package/dist/splitButton/index.mjs +4 -1
  75. package/dist/splitButton/index.mjs.map +1 -1
  76. package/dist/{textTypes-559CaoOV.d.mts → textTypes-u4OSE-rn.d.mts} +8 -1
  77. package/dist/{textTypes-559CaoOV.d.ts → textTypes-u4OSE-rn.d.ts} +8 -1
  78. package/package.json +8 -8
  79. package/README.md +0 -91
  80. package/dist/chunk-WUHNPHD5.mjs +0 -0
  81. package/dist/commonTypes-MxCJyrHv.d.mts +0 -8
  82. package/dist/commonTypes-MxCJyrHv.d.ts +0 -8
  83. /package/dist/{chunk-DUHB245X.mjs → chunk-LKPRTTIX.mjs} +0 -0
@@ -1,7 +1,7 @@
1
1
  import React__default, { FC, InputHTMLAttributes } from 'react';
2
2
  import { D as DirectionType, a as RadioOptionType, O as OrientationType } from '../commonTypes-CKtkuNFH.mjs';
3
3
  import { LoginFormTextsTypes, RegisterFormTextsTypes, ThirdPartyAuthTextsTypes, NewPasswordTextsTypes, ResetPasswordTextsTypes, BaseInputType, TextInputType, PricingCardProps, PlanFeature, PricingPlanTexts } from '../types/index.mjs';
4
- import { S as SelectOptionProps, R as RadioOptionsTypes } from '../Radio-hsrLKNxE.mjs';
4
+ import { S as SelectOptionProps, L as LabelProps, R as RadioOptionsTypes } from '../Radio-hsrLKNxE.mjs';
5
5
  import { M as MenuItemType } from '../DropdownMenu-EUL-D3I3.mjs';
6
6
  import '@radix-ui/react-dropdown-menu';
7
7
 
@@ -112,6 +112,10 @@ type RegisterFormTypes = {
112
112
  additionalButtons?: any;
113
113
  /** To add more custom input fields */
114
114
  additionalInputs?: any;
115
+ /** To customize the username input field */
116
+ usernameOptions: {
117
+ label?: LabelProps;
118
+ };
115
119
  };
116
120
  declare const RegisterForm: FC<RegisterFormTypes>;
117
121
 
@@ -328,6 +332,15 @@ type ContactFormData = {
328
332
  name: string;
329
333
  email: string;
330
334
  message: string;
335
+ } & {
336
+ [key: string]: string;
337
+ };
338
+ type CustomField = {
339
+ label: string;
340
+ type: "text" | "number" | "select";
341
+ name: string;
342
+ placeholder?: string;
343
+ options?: RadioOptionType[];
331
344
  };
332
345
  type ContactFormProps = {
333
346
  cardless?: boolean;
@@ -341,6 +354,7 @@ type ContactFormProps = {
341
354
  email: TextInputType;
342
355
  message: TextInputType;
343
356
  };
357
+ customFields?: CustomField[];
344
358
  };
345
359
  declare const ContactForm: React__default.FC<ContactFormProps>;
346
360
 
@@ -1,7 +1,7 @@
1
1
  import React__default, { FC, InputHTMLAttributes } from 'react';
2
2
  import { D as DirectionType, a as RadioOptionType, O as OrientationType } from '../commonTypes-CKtkuNFH.js';
3
3
  import { LoginFormTextsTypes, RegisterFormTextsTypes, ThirdPartyAuthTextsTypes, NewPasswordTextsTypes, ResetPasswordTextsTypes, BaseInputType, TextInputType, PricingCardProps, PlanFeature, PricingPlanTexts } from '../types/index.js';
4
- import { S as SelectOptionProps, R as RadioOptionsTypes } from '../Radio-K1WGpnGA.js';
4
+ import { S as SelectOptionProps, L as LabelProps, R as RadioOptionsTypes } from '../Radio-K1WGpnGA.js';
5
5
  import { M as MenuItemType } from '../DropdownMenu-SPisqCzV.js';
6
6
  import '@radix-ui/react-dropdown-menu';
7
7
 
@@ -112,6 +112,10 @@ type RegisterFormTypes = {
112
112
  additionalButtons?: any;
113
113
  /** To add more custom input fields */
114
114
  additionalInputs?: any;
115
+ /** To customize the username input field */
116
+ usernameOptions: {
117
+ label?: LabelProps;
118
+ };
115
119
  };
116
120
  declare const RegisterForm: FC<RegisterFormTypes>;
117
121
 
@@ -328,6 +332,15 @@ type ContactFormData = {
328
332
  name: string;
329
333
  email: string;
330
334
  message: string;
335
+ } & {
336
+ [key: string]: string;
337
+ };
338
+ type CustomField = {
339
+ label: string;
340
+ type: "text" | "number" | "select";
341
+ name: string;
342
+ placeholder?: string;
343
+ options?: RadioOptionType[];
331
344
  };
332
345
  type ContactFormProps = {
333
346
  cardless?: boolean;
@@ -341,6 +354,7 @@ type ContactFormProps = {
341
354
  email: TextInputType;
342
355
  message: TextInputType;
343
356
  };
357
+ customFields?: CustomField[];
344
358
  };
345
359
  declare const ContactForm: React__default.FC<ContactFormProps>;
346
360
 
@@ -3776,15 +3776,18 @@ var RegisterForm = ({
3776
3776
  control,
3777
3777
  name: "username",
3778
3778
  render: ({ field }) => {
3779
- var _a2, _b2, _c2;
3779
+ var _a2, _b2, _c2, _d2;
3780
3780
  return /* @__PURE__ */ import_react15.default.createElement(
3781
3781
  Input,
3782
3782
  {
3783
3783
  width: "full",
3784
3784
  autoComplete: "username",
3785
3785
  label: (_a2 = texts == null ? void 0 : texts.username) == null ? void 0 : _a2.label,
3786
- helperText: (_b2 = formState.errors.username) == null ? void 0 : _b2.message,
3787
- placeholder: (_c2 = texts == null ? void 0 : texts.username) == null ? void 0 : _c2.placeholder,
3786
+ labelProps: {
3787
+ ...(_b2 = props.usernameOptions) == null ? void 0 : _b2.label
3788
+ },
3789
+ helperText: (_c2 = formState.errors.username) == null ? void 0 : _c2.message,
3790
+ placeholder: (_d2 = texts == null ? void 0 : texts.username) == null ? void 0 : _d2.placeholder,
3788
3791
  ...field
3789
3792
  }
3790
3793
  );
@@ -5491,25 +5494,56 @@ var ContactForm = ({
5491
5494
  texts,
5492
5495
  formId,
5493
5496
  formAutoComplete,
5494
- onSubmit
5497
+ onSubmit,
5498
+ customFields
5495
5499
  }) => {
5496
5500
  var _a, _b, _c;
5501
+ const customFieldsSchema = z8.object({
5502
+ ...customFields == null ? void 0 : customFields.reduce(
5503
+ (acc, curr) => {
5504
+ switch (curr.type) {
5505
+ case "text":
5506
+ acc[curr.name] = z8.string().optional().default("");
5507
+ break;
5508
+ case "number":
5509
+ acc[curr.name] = z8.string().optional().default("");
5510
+ break;
5511
+ case "select":
5512
+ acc[curr.name] = z8.string().optional().default("");
5513
+ break;
5514
+ default:
5515
+ break;
5516
+ }
5517
+ return acc;
5518
+ },
5519
+ {}
5520
+ )
5521
+ });
5497
5522
  const contactFormSchema = z8.object({
5498
5523
  name: z8.string({ required_error: texts == null ? void 0 : texts.name.required }).min(1, texts == null ? void 0 : texts.name.required).default(""),
5499
5524
  email: z8.string({ required_error: (_a = texts == null ? void 0 : texts.email) == null ? void 0 : _a.required }).min(1, { message: (_b = texts == null ? void 0 : texts.email) == null ? void 0 : _b.required }).email({ message: (_c = texts == null ? void 0 : texts.email) == null ? void 0 : _c.invalid }).default(""),
5500
5525
  message: z8.string({ required_error: texts == null ? void 0 : texts.message.required }).min(10, texts == null ? void 0 : texts.message.invalid).default("")
5501
5526
  });
5527
+ const customFieldsDefaultValues = customFields == null ? void 0 : customFields.reduce(
5528
+ (acc, curr) => {
5529
+ acc[curr.name] = "";
5530
+ return acc;
5531
+ },
5532
+ {}
5533
+ );
5534
+ const MainSchema = contactFormSchema.merge(customFieldsSchema);
5502
5535
  const {
5503
5536
  control,
5504
5537
  handleSubmit,
5505
5538
  formState: { errors },
5506
5539
  reset
5507
5540
  } = (0, import_react_hook_form9.useForm)({
5508
- resolver: (0, import_zod8.zodResolver)(contactFormSchema),
5541
+ resolver: (0, import_zod8.zodResolver)(MainSchema),
5509
5542
  defaultValues: {
5510
5543
  name: "",
5511
5544
  email: "",
5512
- message: ""
5545
+ message: "",
5546
+ ...customFieldsDefaultValues
5513
5547
  }
5514
5548
  });
5515
5549
  const handleFormSubmit = (data) => {
@@ -5520,15 +5554,10 @@ var ContactForm = ({
5520
5554
  console.log("Form is submitted but onSubmit prop is missing");
5521
5555
  }
5522
5556
  };
5523
- let sizeStyle = {
5524
- sm: "hawa-max-w-sm",
5525
- default: "hawa-w-full"
5526
- };
5527
5557
  return /* @__PURE__ */ import_react35.default.createElement(
5528
5558
  Card,
5529
5559
  {
5530
5560
  className: cn(
5531
- // sizeStyle[size],
5532
5561
  "hawa-w-full",
5533
5562
  cardless && "hawa-border-none hawa-bg-transparent hawa-shadow-none hawa-drop-shadow-none"
5534
5563
  ),
@@ -5595,6 +5624,45 @@ var ContactForm = ({
5595
5624
  }
5596
5625
  )
5597
5626
  ),
5627
+ customFields && customFields.map((customField) => {
5628
+ console.log("custom", customField);
5629
+ return /* @__PURE__ */ import_react35.default.createElement(
5630
+ import_react_hook_form9.Controller,
5631
+ {
5632
+ control,
5633
+ name: customField.name,
5634
+ render: ({ field }) => {
5635
+ const { type, label, placeholder } = customField;
5636
+ switch (type) {
5637
+ case "text":
5638
+ case "number":
5639
+ return /* @__PURE__ */ import_react35.default.createElement(
5640
+ Input,
5641
+ {
5642
+ id: customField.name,
5643
+ type,
5644
+ label,
5645
+ placeholder,
5646
+ ...field
5647
+ }
5648
+ );
5649
+ case "select":
5650
+ return /* @__PURE__ */ import_react35.default.createElement(
5651
+ Select,
5652
+ {
5653
+ label,
5654
+ options: customField.options,
5655
+ value: field.value,
5656
+ onChange: (option) => field.onChange(option.value)
5657
+ }
5658
+ );
5659
+ default:
5660
+ return /* @__PURE__ */ import_react35.default.createElement("div", null, "Unknown type");
5661
+ }
5662
+ }
5663
+ }
5664
+ );
5665
+ }),
5598
5666
  /* @__PURE__ */ import_react35.default.createElement(
5599
5667
  import_react_hook_form9.Controller,
5600
5668
  {
@@ -5611,6 +5679,7 @@ var ContactForm = ({
5611
5679
  placeholder: texts == null ? void 0 : texts.message.placeholder,
5612
5680
  ...field
5613
5681
  },
5682
+ classNames: { textarea: "hawa-min-h-20" },
5614
5683
  helperText: (_a2 = errors.message) == null ? void 0 : _a2.message
5615
5684
  }
5616
5685
  );
@@ -6097,8 +6166,11 @@ var DropdownMenu = ({
6097
6166
  className: cn(
6098
6167
  className,
6099
6168
  widthStyles[width],
6100
- "hawa-flex hawa-flex-col hawa-gap-1"
6169
+ "hawa-flex hawa-flex-col hawa-gap-1 hawa-overflow-y-auto"
6101
6170
  ),
6171
+ style: {
6172
+ maxHeight: "var(--radix-dropdown-menu-content-available-height)"
6173
+ },
6102
6174
  align,
6103
6175
  alignOffset
6104
6176
  },
@@ -25,7 +25,7 @@ import {
25
25
  UncheckMark,
26
26
  VeryBadEmoji,
27
27
  VeryGoodEmoji
28
- } from "../chunk-VCCUBQFI.mjs";
28
+ } from "../chunk-U7BFMH2T.mjs";
29
29
  import {
30
30
  Button,
31
31
  Card,
@@ -41,7 +41,7 @@ import {
41
41
  Skeleton,
42
42
  Tooltip,
43
43
  cn
44
- } from "../chunk-D3KUSRHL.mjs";
44
+ } from "../chunk-3MC4JLSW.mjs";
45
45
  import "../chunk-ZFXKCRJC.mjs";
46
46
 
47
47
  // blocks/auth/LoginForm.tsx
@@ -561,15 +561,18 @@ var RegisterForm = ({
561
561
  control,
562
562
  name: "username",
563
563
  render: ({ field }) => {
564
- var _a2, _b2, _c2;
564
+ var _a2, _b2, _c2, _d2;
565
565
  return /* @__PURE__ */ React3.createElement(
566
566
  Input,
567
567
  {
568
568
  width: "full",
569
569
  autoComplete: "username",
570
570
  label: (_a2 = texts == null ? void 0 : texts.username) == null ? void 0 : _a2.label,
571
- helperText: (_b2 = formState.errors.username) == null ? void 0 : _b2.message,
572
- placeholder: (_c2 = texts == null ? void 0 : texts.username) == null ? void 0 : _c2.placeholder,
571
+ labelProps: {
572
+ ...(_b2 = props.usernameOptions) == null ? void 0 : _b2.label
573
+ },
574
+ helperText: (_c2 = formState.errors.username) == null ? void 0 : _c2.message,
575
+ placeholder: (_d2 = texts == null ? void 0 : texts.username) == null ? void 0 : _d2.placeholder,
573
576
  ...field
574
577
  }
575
578
  );
@@ -1693,25 +1696,56 @@ var ContactForm = ({
1693
1696
  texts,
1694
1697
  formId,
1695
1698
  formAutoComplete,
1696
- onSubmit
1699
+ onSubmit,
1700
+ customFields
1697
1701
  }) => {
1698
1702
  var _a, _b, _c;
1703
+ const customFieldsSchema = z8.object({
1704
+ ...customFields == null ? void 0 : customFields.reduce(
1705
+ (acc, curr) => {
1706
+ switch (curr.type) {
1707
+ case "text":
1708
+ acc[curr.name] = z8.string().optional().default("");
1709
+ break;
1710
+ case "number":
1711
+ acc[curr.name] = z8.string().optional().default("");
1712
+ break;
1713
+ case "select":
1714
+ acc[curr.name] = z8.string().optional().default("");
1715
+ break;
1716
+ default:
1717
+ break;
1718
+ }
1719
+ return acc;
1720
+ },
1721
+ {}
1722
+ )
1723
+ });
1699
1724
  const contactFormSchema = z8.object({
1700
1725
  name: z8.string({ required_error: texts == null ? void 0 : texts.name.required }).min(1, texts == null ? void 0 : texts.name.required).default(""),
1701
1726
  email: z8.string({ required_error: (_a = texts == null ? void 0 : texts.email) == null ? void 0 : _a.required }).min(1, { message: (_b = texts == null ? void 0 : texts.email) == null ? void 0 : _b.required }).email({ message: (_c = texts == null ? void 0 : texts.email) == null ? void 0 : _c.invalid }).default(""),
1702
1727
  message: z8.string({ required_error: texts == null ? void 0 : texts.message.required }).min(10, texts == null ? void 0 : texts.message.invalid).default("")
1703
1728
  });
1729
+ const customFieldsDefaultValues = customFields == null ? void 0 : customFields.reduce(
1730
+ (acc, curr) => {
1731
+ acc[curr.name] = "";
1732
+ return acc;
1733
+ },
1734
+ {}
1735
+ );
1736
+ const MainSchema = contactFormSchema.merge(customFieldsSchema);
1704
1737
  const {
1705
1738
  control,
1706
1739
  handleSubmit,
1707
1740
  formState: { errors },
1708
1741
  reset
1709
1742
  } = useForm9({
1710
- resolver: zodResolver8(contactFormSchema),
1743
+ resolver: zodResolver8(MainSchema),
1711
1744
  defaultValues: {
1712
1745
  name: "",
1713
1746
  email: "",
1714
- message: ""
1747
+ message: "",
1748
+ ...customFieldsDefaultValues
1715
1749
  }
1716
1750
  });
1717
1751
  const handleFormSubmit = (data) => {
@@ -1722,15 +1756,10 @@ var ContactForm = ({
1722
1756
  console.log("Form is submitted but onSubmit prop is missing");
1723
1757
  }
1724
1758
  };
1725
- let sizeStyle = {
1726
- sm: "hawa-max-w-sm",
1727
- default: "hawa-w-full"
1728
- };
1729
1759
  return /* @__PURE__ */ React20.createElement(
1730
1760
  Card,
1731
1761
  {
1732
1762
  className: cn(
1733
- // sizeStyle[size],
1734
1763
  "hawa-w-full",
1735
1764
  cardless && "hawa-border-none hawa-bg-transparent hawa-shadow-none hawa-drop-shadow-none"
1736
1765
  ),
@@ -1797,6 +1826,45 @@ var ContactForm = ({
1797
1826
  }
1798
1827
  )
1799
1828
  ),
1829
+ customFields && customFields.map((customField) => {
1830
+ console.log("custom", customField);
1831
+ return /* @__PURE__ */ React20.createElement(
1832
+ Controller9,
1833
+ {
1834
+ control,
1835
+ name: customField.name,
1836
+ render: ({ field }) => {
1837
+ const { type, label, placeholder } = customField;
1838
+ switch (type) {
1839
+ case "text":
1840
+ case "number":
1841
+ return /* @__PURE__ */ React20.createElement(
1842
+ Input,
1843
+ {
1844
+ id: customField.name,
1845
+ type,
1846
+ label,
1847
+ placeholder,
1848
+ ...field
1849
+ }
1850
+ );
1851
+ case "select":
1852
+ return /* @__PURE__ */ React20.createElement(
1853
+ Select,
1854
+ {
1855
+ label,
1856
+ options: customField.options,
1857
+ value: field.value,
1858
+ onChange: (option) => field.onChange(option.value)
1859
+ }
1860
+ );
1861
+ default:
1862
+ return /* @__PURE__ */ React20.createElement("div", null, "Unknown type");
1863
+ }
1864
+ }
1865
+ }
1866
+ );
1867
+ }),
1800
1868
  /* @__PURE__ */ React20.createElement(
1801
1869
  Controller9,
1802
1870
  {
@@ -1813,6 +1881,7 @@ var ContactForm = ({
1813
1881
  placeholder: texts == null ? void 0 : texts.message.placeholder,
1814
1882
  ...field
1815
1883
  },
1884
+ classNames: { textarea: "hawa-min-h-20" },
1816
1885
  helperText: (_a2 = errors.message) == null ? void 0 : _a2.message
1817
1886
  }
1818
1887
  );
@@ -1,5 +1,5 @@
1
- import React, { FC } from 'react';
2
- import { T as TextInputType } from '../../textTypes-559CaoOV.mjs';
1
+ import React__default, { FC } from 'react';
2
+ import { T as TextInputType, R as RadioOptionType } from '../../textTypes-u4OSE-rn.mjs';
3
3
 
4
4
  type TabType = {
5
5
  title: string;
@@ -14,7 +14,7 @@ type LegalTextsType = {
14
14
  defaultTab?: any;
15
15
  scrollAreaClassName?: string;
16
16
  };
17
- declare const LegalTexts: React.FC<LegalTextsType>;
17
+ declare const LegalTexts: React__default.FC<LegalTextsType>;
18
18
 
19
19
  type EmptyStateProps = {
20
20
  onActionClick: () => void;
@@ -71,6 +71,15 @@ type ContactFormData = {
71
71
  name: string;
72
72
  email: string;
73
73
  message: string;
74
+ } & {
75
+ [key: string]: string;
76
+ };
77
+ type CustomField = {
78
+ label: string;
79
+ type: "text" | "number" | "select";
80
+ name: string;
81
+ placeholder?: string;
82
+ options?: RadioOptionType[];
74
83
  };
75
84
  type ContactFormProps = {
76
85
  cardless?: boolean;
@@ -84,7 +93,8 @@ type ContactFormProps = {
84
93
  email: TextInputType;
85
94
  message: TextInputType;
86
95
  };
96
+ customFields?: CustomField[];
87
97
  };
88
- declare const ContactForm: React.FC<ContactFormProps>;
98
+ declare const ContactForm: React__default.FC<ContactFormProps>;
89
99
 
90
100
  export { Announcement, ContactForm, EmptyState, LeadGenerator, LegalTexts, NoPermission, NotFound, Testimonial };
@@ -1,5 +1,5 @@
1
- import React, { FC } from 'react';
2
- import { T as TextInputType } from '../../textTypes-559CaoOV.js';
1
+ import React__default, { FC } from 'react';
2
+ import { T as TextInputType, R as RadioOptionType } from '../../textTypes-u4OSE-rn.js';
3
3
 
4
4
  type TabType = {
5
5
  title: string;
@@ -14,7 +14,7 @@ type LegalTextsType = {
14
14
  defaultTab?: any;
15
15
  scrollAreaClassName?: string;
16
16
  };
17
- declare const LegalTexts: React.FC<LegalTextsType>;
17
+ declare const LegalTexts: React__default.FC<LegalTextsType>;
18
18
 
19
19
  type EmptyStateProps = {
20
20
  onActionClick: () => void;
@@ -71,6 +71,15 @@ type ContactFormData = {
71
71
  name: string;
72
72
  email: string;
73
73
  message: string;
74
+ } & {
75
+ [key: string]: string;
76
+ };
77
+ type CustomField = {
78
+ label: string;
79
+ type: "text" | "number" | "select";
80
+ name: string;
81
+ placeholder?: string;
82
+ options?: RadioOptionType[];
74
83
  };
75
84
  type ContactFormProps = {
76
85
  cardless?: boolean;
@@ -84,7 +93,8 @@ type ContactFormProps = {
84
93
  email: TextInputType;
85
94
  message: TextInputType;
86
95
  };
96
+ customFields?: CustomField[];
87
97
  };
88
- declare const ContactForm: React.FC<ContactFormProps>;
98
+ declare const ContactForm: React__default.FC<ContactFormProps>;
89
99
 
90
100
  export { Announcement, ContactForm, EmptyState, LeadGenerator, LegalTexts, NoPermission, NotFound, Testimonial };