@axos-web-dev/shared-components 1.0.99 → 1.0.100-dev.2

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 (160) hide show
  1. package/dist/ATMLocator/ATMLocator.js +8 -1
  2. package/dist/ArticlesSet/ArticlesSet.js +2 -2
  3. package/dist/Auth/ErrorAlert.js +10 -3
  4. package/dist/Blockquote/Blockquote.module.js +3 -3
  5. package/dist/Button/Button.js +10 -3
  6. package/dist/Calculators/Calculator.js +22 -3
  7. package/dist/Calculators/MarineLoanMonthlyPaymentCalculator/index.d.ts +9 -0
  8. package/dist/Calculators/MarineLoanMonthlyPaymentCalculator/index.js +219 -0
  9. package/dist/Calculators/MaxLoanCalculator/index.js +22 -5
  10. package/dist/Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css.d.ts +1 -0
  11. package/dist/Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css.js +2 -0
  12. package/dist/Calculators/MonthlyPaymentCalculator/index.js +15 -5
  13. package/dist/Calculators/index.d.ts +2 -1
  14. package/dist/Calculators/index.js +3 -1
  15. package/dist/Carousel/index.js +10 -3
  16. package/dist/Chatbot/Bubble.css.d.ts +1 -0
  17. package/dist/Chatbot/Bubble.css.js +5 -0
  18. package/dist/Chatbot/Bubble.d.ts +3 -0
  19. package/dist/Chatbot/Bubble.js +48 -0
  20. package/dist/Chatbot/Chat.d.ts +1 -0
  21. package/dist/Chatbot/Chat.js +165 -0
  22. package/dist/Chatbot/ChatWindow.css.d.ts +11 -0
  23. package/dist/Chatbot/ChatWindow.css.js +25 -0
  24. package/dist/Chatbot/ChatWindow.d.ts +23 -0
  25. package/dist/Chatbot/ChatWindow.js +202 -0
  26. package/dist/Chatbot/Chatbot.css.d.ts +1 -0
  27. package/dist/Chatbot/Chatbot.css.js +5 -0
  28. package/dist/Chatbot/Chatbot.css.ts.vanilla.css.js +1 -0
  29. package/dist/Chatbot/Chatbot.d.ts +1 -0
  30. package/dist/Chatbot/Chatbot.js +39 -0
  31. package/dist/Chatbot/authenticate.d.ts +3 -0
  32. package/dist/Chatbot/authenticate.js +16 -0
  33. package/dist/Chatbot/index.d.ts +9 -0
  34. package/dist/Chatbot/index.js +31 -0
  35. package/dist/Chatbot/store/chat.d.ts +9 -0
  36. package/dist/Chatbot/store/chat.js +11 -0
  37. package/dist/Chatbot/store/messages.d.ts +14 -0
  38. package/dist/Chatbot/store/messages.js +12 -0
  39. package/dist/Chatbot/useHeadlessChat.d.ts +22 -0
  40. package/dist/Chatbot/useHeadlessChat.js +157 -0
  41. package/dist/Chevron/index.js +10 -3
  42. package/dist/Comparison/Comparison.js +10 -3
  43. package/dist/ExecutiveBio/ExecutiveBio.js +10 -3
  44. package/dist/FaqAccordion/index.js +10 -3
  45. package/dist/FooterSiteMap/AxosBank/FooterSiteMap.js +10 -3
  46. package/dist/Forms/ApplicationStart.d.ts +1 -1
  47. package/dist/Forms/ApplicationStart.js +111 -89
  48. package/dist/Forms/ApplyNow.d.ts +2 -2
  49. package/dist/Forms/ApplyNow.js +178 -146
  50. package/dist/Forms/ClearingForm.d.ts +1 -1
  51. package/dist/Forms/ClearingForm.js +184 -162
  52. package/dist/Forms/CommercialDeposits.d.ts +1 -1
  53. package/dist/Forms/CommercialDeposits.js +201 -179
  54. package/dist/Forms/CommercialLending.d.ts +1 -1
  55. package/dist/Forms/CommercialLending.js +278 -256
  56. package/dist/Forms/CommercialPremiumFinance.d.ts +1 -1
  57. package/dist/Forms/CommercialPremiumFinance.js +128 -106
  58. package/dist/Forms/ContactCompany.d.ts +1 -1
  59. package/dist/Forms/ContactCompany.js +113 -91
  60. package/dist/Forms/ContactCompanyTitle.d.ts +1 -1
  61. package/dist/Forms/ContactCompanyTitle.js +127 -105
  62. package/dist/Forms/ContactUs.d.ts +1 -1
  63. package/dist/Forms/ContactUs.js +99 -77
  64. package/dist/Forms/ContactUsAAS.d.ts +1 -1
  65. package/dist/Forms/ContactUsAAS.js +180 -158
  66. package/dist/Forms/ContactUsBusiness.d.ts +1 -1
  67. package/dist/Forms/ContactUsBusiness.js +143 -115
  68. package/dist/Forms/ContactUsBusinessNameEmail.d.ts +1 -1
  69. package/dist/Forms/ContactUsBusinessNameEmail.js +112 -84
  70. package/dist/Forms/ContactUsLVF.d.ts +3 -1
  71. package/dist/Forms/ContactUsLVF.js +127 -101
  72. package/dist/Forms/ContactUsNMLSId.d.ts +1 -1
  73. package/dist/Forms/ContactUsNMLSId.js +126 -98
  74. package/dist/Forms/CpraRequest.d.ts +1 -1
  75. package/dist/Forms/CpraRequest.js +641 -619
  76. package/dist/Forms/CraPublicFile.d.ts +1 -1
  77. package/dist/Forms/CraPublicFile.js +118 -90
  78. package/dist/Forms/DealerServices.d.ts +1 -1
  79. package/dist/Forms/DealerServices.js +225 -204
  80. package/dist/Forms/EmailOnly.d.ts +1 -1
  81. package/dist/Forms/EmailOnly.js +65 -39
  82. package/dist/Forms/EmailUs.d.ts +1 -1
  83. package/dist/Forms/EmailUs.js +75 -53
  84. package/dist/Forms/FormProps.d.ts +3 -0
  85. package/dist/Forms/Forms.css.d.ts +18 -0
  86. package/dist/Forms/Forms.css.js +44 -38
  87. package/dist/Forms/HoneyPot/HoneyPot.css.d.ts +1 -0
  88. package/dist/Forms/HoneyPot/HoneyPot.css.js +5 -0
  89. package/dist/Forms/HoneyPot/index.d.ts +23 -0
  90. package/dist/Forms/HoneyPot/index.js +69 -0
  91. package/dist/Forms/MortgageRate/MortgageRateForm.d.ts +1 -1
  92. package/dist/Forms/MortgageRate/MortgageRateForm.js +376 -348
  93. package/dist/Forms/MortgageRate/MortgageRateWatch.js +10 -3
  94. package/dist/Forms/MortgageWarehouseLending.d.ts +11 -0
  95. package/dist/Forms/MortgageWarehouseLending.js +343 -0
  96. package/dist/Forms/QuickPricer/QuickPricerForm.d.ts +1 -1
  97. package/dist/Forms/QuickPricer/QuickPricerForm.js +624 -609
  98. package/dist/Forms/ScheduleCall.d.ts +1 -1
  99. package/dist/Forms/ScheduleCall.js +156 -134
  100. package/dist/Forms/ScheduleCallPremier.d.ts +1 -1
  101. package/dist/Forms/ScheduleCallPremier.js +178 -156
  102. package/dist/Forms/SuccesForm.js +13 -6
  103. package/dist/Forms/VendorQuestionnaire.d.ts +1 -1
  104. package/dist/Forms/VendorQuestionnaire.js +817 -795
  105. package/dist/Forms/WcplSurvey.d.ts +1 -1
  106. package/dist/Forms/WcplSurvey.js +112 -90
  107. package/dist/Forms/applynow-utils.d.ts +1 -0
  108. package/dist/Forms/applynow-utils.js +48 -0
  109. package/dist/Forms/index.d.ts +3 -0
  110. package/dist/Forms/index.js +12 -2
  111. package/dist/HeroBanner/HeroBanner.js +42 -1
  112. package/dist/Hyperlink/index.js +10 -3
  113. package/dist/IconBillboard/sections/CallToActionSection.js +2 -1
  114. package/dist/ImageBillboard/ExitIntentModal/useExitIntentModal.js +6 -1
  115. package/dist/ImageLink/ImageLink.js +10 -3
  116. package/dist/ImageLink/ImageLinkSet.js +10 -3
  117. package/dist/ImageLink/index.js +10 -3
  118. package/dist/Input/Input.js +3 -1
  119. package/dist/Insight/Featured/CategorySelector.js +10 -3
  120. package/dist/Insight/Featured/Featured.js +10 -3
  121. package/dist/Insight/Featured/Header.js +10 -3
  122. package/dist/Modal/Modal.js +10 -3
  123. package/dist/NavigationMenu/AxosALTS/NavData.js +10 -3
  124. package/dist/NavigationMenu/AxosALTS/index.js +10 -3
  125. package/dist/NavigationMenu/AxosBank/MobileMenu/MobileMenu.module.js +16 -16
  126. package/dist/NavigationMenu/AxosBank/MobileMenu/MobileNavData.d.ts +1 -0
  127. package/dist/NavigationMenu/AxosBank/MobileMenu/MobileNavData.js +25 -7
  128. package/dist/NavigationMenu/AxosBank/NavBar.module.js +39 -39
  129. package/dist/NavigationMenu/AxosBank/NavData.js +10 -3
  130. package/dist/NavigationMenu/AxosBank/SubNavBar.js +32 -8
  131. package/dist/NavigationMenu/AxosBank/index.js +10 -3
  132. package/dist/NavigationMenu/LaVictoire/NavData.js +10 -3
  133. package/dist/NavigationMenu/LaVictoire/index.js +10 -3
  134. package/dist/NavigationMenu/NavDataJson.d.ts +2 -0
  135. package/dist/NavigationMenu/NavDataJson.js +315 -0
  136. package/dist/NavigationMenu/Navbar.d.ts +5 -0
  137. package/dist/NavigationMenu/Navbar.js +201 -0
  138. package/dist/NavigationMenu/SignInNavButton.d.ts +1 -0
  139. package/dist/NavigationMenu/SignInNavButton.js +369 -0
  140. package/dist/SetContainer/SetContainer.js +10 -3
  141. package/dist/SocialMediaBar/iconsRepository.js +10 -3
  142. package/dist/Table/Table.d.ts +1 -1
  143. package/dist/VideoTile/VideoTile.js +10 -3
  144. package/dist/VideoWrapper/index.js +10 -3
  145. package/dist/assets/Blockquote/Blockquote.css.css +68 -68
  146. package/dist/assets/Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css +3 -0
  147. package/dist/assets/Chatbot/Bubble.css +40 -0
  148. package/dist/assets/Chatbot/ChatWindow.css +107 -0
  149. package/dist/assets/Forms/Forms.css +135 -105
  150. package/dist/assets/Forms/HoneyPot/HoneyPot.css +8 -0
  151. package/dist/assets/NavigationMenu/AxosBank/MobileMenu/MobileMenu.css.css +191 -191
  152. package/dist/assets/NavigationMenu/AxosBank/NavBar.css.css +473 -473
  153. package/dist/assets/utils/optimizeImage/optimizeImage.css.css +47 -47
  154. package/dist/icons/Logos/AXB.d.ts +8 -0
  155. package/dist/icons/Logos/AXB.js +74 -0
  156. package/dist/main.d.ts +1 -0
  157. package/dist/main.js +43 -3
  158. package/dist/utils/allowedAxosDomains.js +2 -1
  159. package/dist/utils/optimizeImage/optimizeImage.module.js +3 -3
  160. package/package.json +136 -133
@@ -24,6 +24,7 @@ import clsx from "clsx";
24
24
  import { useForm, FormProvider } from "react-hook-form";
25
25
  import * as z from "zod";
26
26
  import { iconForm, headerContainer, headerForm, form, descriptionField, formWrapper, disclosureForm, actions, formContainer } from "./Forms.css.js";
27
+ import { honeyPotSchema, isValidHoneyPot, HoneyPot } from "./HoneyPot/index.js";
27
28
  const EmailUs = ({
28
29
  icon = false,
29
30
  children,
@@ -35,6 +36,7 @@ const EmailUs = ({
35
36
  headline,
36
37
  callToAction,
37
38
  validateEmail,
39
+ onValidate,
38
40
  description,
39
41
  id
40
42
  }) => {
@@ -42,8 +44,16 @@ const EmailUs = ({
42
44
  email: z.string().email({ message: "Email is required." }).refine(async (val) => await validateEmail(val)),
43
45
  message: z.string().min(2, "Message is required")
44
46
  });
47
+ const gen_schema = schema.merge(honeyPotSchema).superRefine((data, ctx) => {
48
+ if (!isValidHoneyPot(data)) {
49
+ ctx.addIssue({
50
+ code: z.ZodIssueCode.custom,
51
+ message: "fields are not valid."
52
+ });
53
+ }
54
+ });
45
55
  const methods = useForm({
46
- resolver: zodResolver(schema, {
56
+ resolver: zodResolver(gen_schema, {
47
57
  async: true
48
58
  }),
49
59
  mode: "all",
@@ -77,59 +87,71 @@ const EmailUs = ({
77
87
  }
78
88
  )
79
89
  ] }),
80
- /* @__PURE__ */ jsxs("form", { className: form, onSubmit: handleSubmit(submitForm), children: [
81
- /* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant, formType: "email" })), children: [
82
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
83
- Input,
84
- {
85
- id: "email",
86
- ...register("email", {
87
- required: true,
88
- validate: {
89
- isValid: associatedEmail
90
+ /* @__PURE__ */ jsxs(
91
+ "form",
92
+ {
93
+ className: form,
94
+ onSubmit: async (e) => {
95
+ onValidate && onValidate(e);
96
+ await handleSubmit(submitForm)(e);
97
+ e.preventDefault();
98
+ },
99
+ children: [
100
+ /* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant, formType: "email" })), children: [
101
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
102
+ Input,
103
+ {
104
+ id: "email",
105
+ ...register("email", {
106
+ required: true,
107
+ validate: {
108
+ isValid: associatedEmail
109
+ }
110
+ }),
111
+ label: "Email",
112
+ sizes: "medium",
113
+ required: true,
114
+ error: !!errors.email,
115
+ helperText: errors.email?.message,
116
+ variant
90
117
  }
91
- }),
92
- label: "Email",
93
- sizes: "medium",
94
- required: true,
95
- error: !!errors.email,
96
- helperText: errors.email?.message,
97
- variant
98
- }
99
- ) }),
100
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
101
- InputTextArea,
102
- {
103
- id: "message",
104
- ...register("message", { required: true }),
105
- label: "Write Your Message",
106
- sizes: "medium",
107
- required: true,
108
- error: !!errors.message,
109
- helperText: errors.message?.message,
110
- variant
111
- }
112
- ) })
113
- ] }),
114
- children,
115
- /* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
116
- /* @__PURE__ */ jsx("div", { className: actions, children: isSubmitting ? /* @__PURE__ */ jsx(
117
- LoadingIndicator,
118
- {
119
- style: { marginInline: "auto" },
120
- variant
121
- }
122
- ) : /* @__PURE__ */ jsx(
123
- Button,
124
- {
125
- color: getVariant(callToAction?.variant),
126
- as: "button",
127
- type: "submit",
128
- disabled: !isValid || isSubmitting,
129
- children: callToAction?.displayText
130
- }
131
- ) })
132
- ] })
118
+ ) }),
119
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
120
+ InputTextArea,
121
+ {
122
+ id: "message",
123
+ ...register("message", { required: true }),
124
+ label: "Write Your Message",
125
+ sizes: "medium",
126
+ required: true,
127
+ error: !!errors.message,
128
+ helperText: errors.message?.message,
129
+ variant
130
+ }
131
+ ) }),
132
+ /* @__PURE__ */ jsx(HoneyPot, { register, variant })
133
+ ] }),
134
+ children,
135
+ /* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
136
+ /* @__PURE__ */ jsx("div", { className: actions, children: isSubmitting ? /* @__PURE__ */ jsx(
137
+ LoadingIndicator,
138
+ {
139
+ style: { marginInline: "auto" },
140
+ variant
141
+ }
142
+ ) : /* @__PURE__ */ jsx(
143
+ Button,
144
+ {
145
+ color: getVariant(callToAction?.variant),
146
+ as: "button",
147
+ type: "submit",
148
+ disabled: !isValid || isSubmitting,
149
+ children: callToAction?.displayText
150
+ }
151
+ ) })
152
+ ]
153
+ }
154
+ )
133
155
  ] }) }) }, id);
134
156
  };
135
157
  export {
@@ -7,6 +7,9 @@ export interface FormProps extends PropsWithChildren {
7
7
  onSubmit?: (values: {
8
8
  [index: string]: string | boolean | number | Date | any;
9
9
  }) => void;
10
+ onValidate?: (values: {
11
+ [index: string]: string | boolean | number | Date | any;
12
+ }) => void;
10
13
  icon?: boolean;
11
14
  headline?: ReactNode | string;
12
15
  description?: ReactNode | string;
@@ -20,6 +20,23 @@ export declare const formContainer: import('@vanilla-extract/recipes').RuntimeFn
20
20
  }>;
21
21
  export declare const iconForm: string;
22
22
  export declare const headerContainer: string;
23
+ export declare const axosHeader: string;
24
+ export declare const headerF: import('@vanilla-extract/recipes').RuntimeFn<{
25
+ variant: {
26
+ primary: {
27
+ color: `var(--${string})`;
28
+ };
29
+ secondary: {
30
+ color: `var(--${string})`;
31
+ };
32
+ tertiary: {
33
+ color: `var(--${string})`;
34
+ };
35
+ quaternary: {
36
+ color: `var(--${string})`;
37
+ };
38
+ };
39
+ }>;
23
40
  export declare const headerForm: import('@vanilla-extract/recipes').RuntimeFn<{
24
41
  variant: {
25
42
  primary: {
@@ -111,6 +128,7 @@ export declare const disclosureForm: import('@vanilla-extract/recipes').RuntimeF
111
128
  };
112
129
  }>;
113
130
  export declare const form: string;
131
+ export declare const apply_now_form: string;
114
132
  export declare const success_wrap: import('@vanilla-extract/recipes').RuntimeFn<{
115
133
  variant: {
116
134
  primary: {
@@ -11,46 +11,51 @@ import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
11
11
  var formContainer = createRuntimeFn({ defaultClassName: "tfms6a0", variantClassNames: { variant: { primary: "tfms6a1", secondary: "tfms6a2", tertiary: "tfms6a3", quaternary: "tfms6a4" } }, defaultVariants: {}, compoundVariants: [] });
12
12
  var iconForm = "tfms6a5";
13
13
  var headerContainer = "tfms6a6";
14
- var headerForm = createRuntimeFn({ defaultClassName: "tfms6a7", variantClassNames: { variant: { primary: "tfms6a8", secondary: "tfms6a9", tertiary: "tfms6aa", quaternary: "tfms6ab" } }, defaultVariants: {}, compoundVariants: [] });
15
- var formWrapper = createRuntimeFn({ defaultClassName: "tfms6ac", variantClassNames: { variant: { primary: "tfms6ad", secondary: "tfms6ae", tertiary: "tfms6af", quaternary: "tfms6ag" }, formType: { email: "tfms6ah", questionnaire: "tfms6ai", "default": "tfms6aj" } }, defaultVariants: {}, compoundVariants: [] });
16
- var form_row = "tfms6ak";
17
- var actions = "tfms6al";
18
- var disclosureForm = createRuntimeFn({ defaultClassName: "tfms6am", variantClassNames: { variant: { primary: "tfms6an", secondary: "tfms6ao", tertiary: "tfms6ap", quaternary: "tfms6aq" } }, defaultVariants: {}, compoundVariants: [] });
19
- var form = "tfms6ar";
20
- var success_wrap = createRuntimeFn({ defaultClassName: "tfms6au", variantClassNames: { variant: { primary: "tfms6av", secondary: "tfms6aw", tertiary: "tfms6ax", quaternary: "tfms6ay" } }, defaultVariants: {}, compoundVariants: [] });
21
- var success_icon = "tfms6az";
22
- var succes_check_mark = "tfms6a10";
23
- var success_circle = createRuntimeFn({ defaultClassName: "tfms6a11", variantClassNames: { variant: { primary: "tfms6a12", secondary: "tfms6a13", tertiary: "tfms6a14", quaternary: "tfms6a15" } }, defaultVariants: {}, compoundVariants: [] });
24
- var descriptionField = createRuntimeFn({ defaultClassName: "tfms6a16", variantClassNames: { variant: { primary: "tfms6a17", secondary: "tfms6a18", tertiary: "tfms6a19", quaternary: "tfms6a1a" }, formType: { questionnaire: "tfms6a1b" } }, defaultVariants: {}, compoundVariants: [] });
25
- var fullRowForm = "tfms6a1c";
26
- var one_row = "tfms6a1d";
27
- var section_title = createRuntimeFn({ defaultClassName: "tfms6a1e", variantClassNames: { variant: { primary: "tfms6a1f", secondary: "tfms6a1g", tertiary: "tfms6a1h", quaternary: "tfms6a1i" } }, defaultVariants: {}, compoundVariants: [] });
28
- var checkbox_group = "tfms6a1j";
29
- var ro_input = "tfms6a1k";
30
- var pl_label = "tfms6a1l";
31
- var x_input = "tfms6a1m";
32
- var xc_input = "tfms6a1n";
33
- var fullRowSelect = "tfms6a1o";
34
- var mt2rem = "tfms6a1p";
35
- var centerSelect = "tfms6a1q";
36
- var formBtns = "tfms6a1r";
37
- var modalCheckboxContainer = "tfms6a1s";
38
- var threeColRow = "tfms6a1t";
39
- var mt1Rem = "tfms6a1u";
40
- var mw24 = "tfms6a1v";
41
- var modalMobile = "tfms6a1w";
42
- var resposiveLabel = "tfms6a1x";
43
- var dropdown = "tfms6a1y";
44
- var dynPH = "tfms6a1z";
45
- var na_cursor = "tfms6a20";
46
- var show_options = "tfms6a21";
47
- var hide_options = "tfms6a22";
48
- var back_btn_apply_now = "tfms6a23";
49
- var iconbillboards_option_apply_now = "tfms6a24";
50
- var form_nav_apply_now = "tfms6a25";
51
- var step_title_apply_now = "tfms6a26";
14
+ var axosHeader = "tfms6a7";
15
+ var headerF = createRuntimeFn({ defaultClassName: "tfms6a8", variantClassNames: { variant: { primary: "tfms6a9", secondary: "tfms6aa", tertiary: "tfms6ab", quaternary: "tfms6ac" } }, defaultVariants: {}, compoundVariants: [] });
16
+ var headerForm = createRuntimeFn({ defaultClassName: "tfms6ad", variantClassNames: { variant: { primary: "tfms6ae", secondary: "tfms6af", tertiary: "tfms6ag", quaternary: "tfms6ah" } }, defaultVariants: {}, compoundVariants: [] });
17
+ var formWrapper = createRuntimeFn({ defaultClassName: "tfms6ai", variantClassNames: { variant: { primary: "tfms6aj", secondary: "tfms6ak", tertiary: "tfms6al", quaternary: "tfms6am" }, formType: { email: "tfms6an", questionnaire: "tfms6ao", "default": "tfms6ap" } }, defaultVariants: {}, compoundVariants: [] });
18
+ var form_row = "tfms6aq";
19
+ var actions = "tfms6ar";
20
+ var disclosureForm = createRuntimeFn({ defaultClassName: "tfms6as", variantClassNames: { variant: { primary: "tfms6at", secondary: "tfms6au", tertiary: "tfms6av", quaternary: "tfms6aw" } }, defaultVariants: {}, compoundVariants: [] });
21
+ var form = "tfms6ax";
22
+ var apply_now_form = "tfms6ay";
23
+ var success_wrap = createRuntimeFn({ defaultClassName: "tfms6a11", variantClassNames: { variant: { primary: "tfms6a12", secondary: "tfms6a13", tertiary: "tfms6a14", quaternary: "tfms6a15" } }, defaultVariants: {}, compoundVariants: [] });
24
+ var success_icon = "tfms6a16";
25
+ var succes_check_mark = "tfms6a17";
26
+ var success_circle = createRuntimeFn({ defaultClassName: "tfms6a18", variantClassNames: { variant: { primary: "tfms6a19", secondary: "tfms6a1a", tertiary: "tfms6a1b", quaternary: "tfms6a1c" } }, defaultVariants: {}, compoundVariants: [] });
27
+ var descriptionField = createRuntimeFn({ defaultClassName: "tfms6a1d", variantClassNames: { variant: { primary: "tfms6a1e", secondary: "tfms6a1f", tertiary: "tfms6a1g", quaternary: "tfms6a1h" }, formType: { questionnaire: "tfms6a1i" } }, defaultVariants: {}, compoundVariants: [] });
28
+ var fullRowForm = "tfms6a1j";
29
+ var one_row = "tfms6a1k";
30
+ var section_title = createRuntimeFn({ defaultClassName: "tfms6a1l", variantClassNames: { variant: { primary: "tfms6a1m", secondary: "tfms6a1n", tertiary: "tfms6a1o", quaternary: "tfms6a1p" } }, defaultVariants: {}, compoundVariants: [] });
31
+ var checkbox_group = "tfms6a1q";
32
+ var ro_input = "tfms6a1r";
33
+ var pl_label = "tfms6a1s";
34
+ var x_input = "tfms6a1t";
35
+ var xc_input = "tfms6a1u";
36
+ var fullRowSelect = "tfms6a1v";
37
+ var mt2rem = "tfms6a1w";
38
+ var centerSelect = "tfms6a1x";
39
+ var formBtns = "tfms6a1y";
40
+ var modalCheckboxContainer = "tfms6a1z";
41
+ var threeColRow = "tfms6a20";
42
+ var mt1Rem = "tfms6a21";
43
+ var mw24 = "tfms6a22";
44
+ var modalMobile = "tfms6a23";
45
+ var resposiveLabel = "tfms6a24";
46
+ var dropdown = "tfms6a25";
47
+ var dynPH = "tfms6a26";
48
+ var na_cursor = "tfms6a27";
49
+ var show_options = "tfms6a28";
50
+ var hide_options = "tfms6a29";
51
+ var back_btn_apply_now = "tfms6a2a";
52
+ var iconbillboards_option_apply_now = "tfms6a2b";
53
+ var form_nav_apply_now = "tfms6a2c";
54
+ var step_title_apply_now = "tfms6a2d";
52
55
  export {
53
56
  actions,
57
+ apply_now_form,
58
+ axosHeader,
54
59
  back_btn_apply_now,
55
60
  centerSelect,
56
61
  checkbox_group,
@@ -67,6 +72,7 @@ export {
67
72
  fullRowForm,
68
73
  fullRowSelect,
69
74
  headerContainer,
75
+ headerF,
70
76
  headerForm,
71
77
  hide_options,
72
78
  iconForm,
@@ -0,0 +1 @@
1
+ export declare const form_field_container: string;
@@ -0,0 +1,5 @@
1
+ import '../../assets/Forms/HoneyPot/HoneyPot.css';/* empty css */
2
+ var form_field_container = "_1f7d89m0";
3
+ export {
4
+ form_field_container
5
+ };
@@ -0,0 +1,23 @@
1
+ import { UseFormRegister } from 'react-hook-form';
2
+ import { z } from 'zod';
3
+ import { FormProps } from '../FormProps';
4
+
5
+ export type HoneyPotInterface = {
6
+ AlternativePhone?: string;
7
+ AlternativeEmail?: string;
8
+ };
9
+ export declare const honeyPotSchema: z.ZodObject<{
10
+ AlternativeEmail: z.ZodEffects<z.ZodString, "bestbank@axos.com", string>;
11
+ AlternativePhone: z.ZodEffects<z.ZodString, string, string>;
12
+ }, "strip", z.ZodTypeAny, {
13
+ AlternativeEmail: "bestbank@axos.com";
14
+ AlternativePhone: string;
15
+ }, {
16
+ AlternativeEmail: string;
17
+ AlternativePhone: string;
18
+ }>;
19
+ export declare const isValidHoneyPot: (data: HoneyPotInterface) => boolean;
20
+ export declare const HoneyPot: ({ variant: fullVariant, register, }: {
21
+ variant?: FormProps["variant"];
22
+ register: UseFormRegister<any>;
23
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,69 @@
1
+ import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
+ import "../../Input/Checkbox.js";
3
+ import "../../Input/CurrencyInput.js";
4
+ import "../../Input/Dropdown.js";
5
+ import "../../Input/Dropdown.css.js";
6
+ import { Input } from "../../Input/Input.js";
7
+ import "../../Input/Input.css.js";
8
+ import "../../Input/InputAmount.js";
9
+ import { InputPhone } from "../../Input/InputPhone.js";
10
+ import "../../Input/InputTextArea.js";
11
+ import "../../Input/DownPaymentInput.js";
12
+ import "../../Input/RadioButton.js";
13
+ import "../../utils/allowedAxosDomains.js";
14
+ import { getVariant } from "../../utils/getVariant.js";
15
+ import { z } from "zod";
16
+ import { form_field_container } from "./HoneyPot.css.js";
17
+ const honeyPotSchema = z.object({
18
+ AlternativeEmail: z.string().refine((val) => val === "bestbank@axos.com"),
19
+ AlternativePhone: z.string().refine((val) => !val || val.trim() === "")
20
+ });
21
+ const isValidHoneyPot = (data) => {
22
+ return data.AlternativeEmail === "bestbank@axos.com" && (!data.AlternativePhone || data.AlternativePhone.trim() === "");
23
+ };
24
+ const HoneyPot = ({
25
+ variant: fullVariant = "primary",
26
+ register
27
+ }) => {
28
+ const variant = getVariant(fullVariant);
29
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
30
+ /* @__PURE__ */ jsx("div", { className: form_field_container, children: /* @__PURE__ */ jsx(
31
+ Input,
32
+ {
33
+ id: "AlternativeEmail",
34
+ ...register("AlternativeEmail"),
35
+ label: "Alternative Email",
36
+ sizes: "medium",
37
+ variant,
38
+ tabIndex: -1,
39
+ defaultValue: "bestbank@axos.com",
40
+ autoComplete: "off",
41
+ "aria-autocomplete": "none",
42
+ name: "AlternativeEmail",
43
+ "aria-label": "Alternative Email",
44
+ type: "text"
45
+ }
46
+ ) }),
47
+ /* @__PURE__ */ jsx("div", { className: form_field_container, children: /* @__PURE__ */ jsx(
48
+ InputPhone,
49
+ {
50
+ id: "AlternativePhone",
51
+ ...register("AlternativePhone"),
52
+ label: "Alternative Phone",
53
+ sizes: "medium",
54
+ variant,
55
+ tabIndex: -1,
56
+ defaultValue: "",
57
+ autoComplete: "off",
58
+ "aria-autocomplete": "none",
59
+ name: "AlternativePhone",
60
+ "aria-label": "Alternative Phone"
61
+ }
62
+ ) })
63
+ ] });
64
+ };
65
+ export {
66
+ HoneyPot,
67
+ honeyPotSchema,
68
+ isValidHoneyPot
69
+ };
@@ -19,7 +19,7 @@ export type MortgageRateInputs = {
19
19
  loanPurpose: number;
20
20
  [key: string]: string | number;
21
21
  };
22
- export declare const MortgageRate: ({ icon, children, onSubmit, disclosure, variant: fullVariant, validateEmail, id, rateWatchOnSubmit, setRateWatchSubmitted, hideModalValue, showingTables, }: FormProps & {
22
+ export declare const MortgageRate: ({ icon, children, onSubmit, disclosure, variant: fullVariant, validateEmail, id, rateWatchOnSubmit, setRateWatchSubmitted, hideModalValue, showingTables, onValidate, }: FormProps & {
23
23
  rateWatchOnSubmit: (values: RateWatchInputs & {
24
24
  email: string;
25
25
  }) => Promise<void>;