@axos-web-dev/shared-components 1.0.99-dev.17 → 1.0.99-dev.19
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/Forms/ApplicationStart.js +1 -1
- package/dist/Forms/ClearingForm.js +1 -1
- package/dist/Forms/CommercialDeposits.js +1 -1
- package/dist/Forms/CommercialLending.js +1 -1
- package/dist/Forms/CommercialPremiumFinance.js +1 -1
- package/dist/Forms/ContactCompany.js +1 -1
- package/dist/Forms/ContactCompanyTitle.js +1 -1
- package/dist/Forms/ContactUs.js +1 -1
- package/dist/Forms/ContactUsAAS.js +1 -1
- package/dist/Forms/ContactUsBusiness.js +1 -1
- package/dist/Forms/ContactUsBusinessNameEmail.js +1 -1
- package/dist/Forms/ContactUsLVF.js +1 -1
- package/dist/Forms/ContactUsNMLSId.js +1 -1
- package/dist/Forms/CpraRequest.js +1 -1
- package/dist/Forms/CraPublicFile.js +1 -1
- package/dist/Forms/DealerServices.js +1 -1
- package/dist/Forms/EmailOnly.js +1 -1
- package/dist/Forms/EmailUs.js +1 -1
- package/dist/Forms/HoneyPot/HoneyPot.css.d.ts +1 -1
- package/dist/Forms/HoneyPot/HoneyPot.css.js +2 -2
- package/dist/Forms/HoneyPot/index.d.ts +10 -11
- package/dist/Forms/HoneyPot/index.js +21 -23
- package/dist/Forms/MortgageRate/MortgageRateForm.js +11 -10
- package/dist/Forms/MortgageWarehouseLending.js +1 -2
- package/dist/Forms/QuickPricer/QuickPricerForm.js +1 -1
- package/dist/Forms/ScheduleCall.js +1 -1
- package/dist/Forms/ScheduleCallPremier.js +1 -1
- package/dist/Forms/VendorQuestionnaire.js +1 -1
- package/dist/Forms/WcplSurvey.js +1 -1
- package/dist/HeroBanner/HeroBanner.js +38 -1
- package/dist/Table/Table.d.ts +1 -1
- package/dist/assets/Forms/HoneyPot/HoneyPot.css +4 -0
- package/package.json +1 -1
|
@@ -204,7 +204,7 @@ const ApplicationStart = ({
|
|
|
204
204
|
children: "By providing your phone number and selecting the checkbox, you have agreed to these Terms and Conditions, and you have agreed to receive automated text messages, calls, and emails for any purpose including but not limited to marketing of products and services by Axos Bank. You understand and agree that such messages may be sent via Automatic Telephone Dialing System and/or artificial or pre-recorded voice, and that such consent is not a condition of receipt of any good or service. Mobile carrier messages and data rates may apply. You may opt out at any time."
|
|
205
205
|
}
|
|
206
206
|
) }),
|
|
207
|
-
/* @__PURE__ */ jsx(HoneyPot, { register,
|
|
207
|
+
/* @__PURE__ */ jsx(HoneyPot, { register, variant })
|
|
208
208
|
] }),
|
|
209
209
|
children,
|
|
210
210
|
/* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
|
|
@@ -348,7 +348,7 @@ const ClearingForm = ({
|
|
|
348
348
|
}
|
|
349
349
|
)
|
|
350
350
|
] }),
|
|
351
|
-
/* @__PURE__ */ jsx(HoneyPot, { register,
|
|
351
|
+
/* @__PURE__ */ jsx(HoneyPot, { register, variant }),
|
|
352
352
|
children,
|
|
353
353
|
/* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
|
|
354
354
|
/* @__PURE__ */ jsx("div", { className: actions, children: /* @__PURE__ */ jsx(
|
|
@@ -314,7 +314,7 @@ const CommercialDeposits = ({
|
|
|
314
314
|
variant
|
|
315
315
|
}
|
|
316
316
|
) }),
|
|
317
|
-
/* @__PURE__ */ jsx(HoneyPot, { register,
|
|
317
|
+
/* @__PURE__ */ jsx(HoneyPot, { register, variant })
|
|
318
318
|
] }),
|
|
319
319
|
children,
|
|
320
320
|
/* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
|
|
@@ -409,7 +409,7 @@ const CommercialLending = ({
|
|
|
409
409
|
variant
|
|
410
410
|
}
|
|
411
411
|
) }),
|
|
412
|
-
/* @__PURE__ */ jsx(HoneyPot, { register,
|
|
412
|
+
/* @__PURE__ */ jsx(HoneyPot, { register, variant })
|
|
413
413
|
] }),
|
|
414
414
|
children,
|
|
415
415
|
/* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
|
|
@@ -194,7 +194,7 @@ const CommercialPremiumFinance = ({
|
|
|
194
194
|
]
|
|
195
195
|
}
|
|
196
196
|
) }),
|
|
197
|
-
/* @__PURE__ */ jsx(HoneyPot, { register,
|
|
197
|
+
/* @__PURE__ */ jsx(HoneyPot, { register, variant })
|
|
198
198
|
] }),
|
|
199
199
|
children,
|
|
200
200
|
/* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
|
|
@@ -201,7 +201,7 @@ const ContactCompany = ({
|
|
|
201
201
|
variant
|
|
202
202
|
}
|
|
203
203
|
) }),
|
|
204
|
-
/* @__PURE__ */ jsx(HoneyPot, { register,
|
|
204
|
+
/* @__PURE__ */ jsx(HoneyPot, { register, variant })
|
|
205
205
|
] }),
|
|
206
206
|
children,
|
|
207
207
|
/* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
|
|
@@ -216,7 +216,7 @@ const ContactCompanyTitle = ({
|
|
|
216
216
|
variant
|
|
217
217
|
}
|
|
218
218
|
) }),
|
|
219
|
-
/* @__PURE__ */ jsx(HoneyPot, { register,
|
|
219
|
+
/* @__PURE__ */ jsx(HoneyPot, { register, variant })
|
|
220
220
|
] }),
|
|
221
221
|
children,
|
|
222
222
|
/* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
|
package/dist/Forms/ContactUs.js
CHANGED
|
@@ -182,7 +182,7 @@ const ContactUs = ({
|
|
|
182
182
|
variant
|
|
183
183
|
}
|
|
184
184
|
) }),
|
|
185
|
-
/* @__PURE__ */ jsx(HoneyPot, { register,
|
|
185
|
+
/* @__PURE__ */ jsx(HoneyPot, { register, variant })
|
|
186
186
|
] }),
|
|
187
187
|
children,
|
|
188
188
|
/* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
|
|
@@ -272,7 +272,7 @@ const ContactUsAAS = ({
|
|
|
272
272
|
rows: 1
|
|
273
273
|
}
|
|
274
274
|
) }),
|
|
275
|
-
/* @__PURE__ */ jsx(HoneyPot, { register,
|
|
275
|
+
/* @__PURE__ */ jsx(HoneyPot, { register, variant })
|
|
276
276
|
] }),
|
|
277
277
|
children,
|
|
278
278
|
/* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
|
|
@@ -320,7 +320,7 @@ const ContactUsBusiness = ({
|
|
|
320
320
|
variant
|
|
321
321
|
}
|
|
322
322
|
) }),
|
|
323
|
-
/* @__PURE__ */ jsx(HoneyPot, { register,
|
|
323
|
+
/* @__PURE__ */ jsx(HoneyPot, { register, variant })
|
|
324
324
|
] }),
|
|
325
325
|
children,
|
|
326
326
|
/* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
|
|
@@ -264,7 +264,7 @@ const ContactUsBusinessNameAndEmail = ({
|
|
|
264
264
|
variant
|
|
265
265
|
}
|
|
266
266
|
) }),
|
|
267
|
-
/* @__PURE__ */ jsx(HoneyPot, { register,
|
|
267
|
+
/* @__PURE__ */ jsx(HoneyPot, { register, variant })
|
|
268
268
|
] }),
|
|
269
269
|
children,
|
|
270
270
|
/* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
|
|
@@ -235,7 +235,7 @@ const ContactUsLVF = ({
|
|
|
235
235
|
children: "I'm a Dealer interested in Inventory Financing."
|
|
236
236
|
}
|
|
237
237
|
) }),
|
|
238
|
-
/* @__PURE__ */ jsx(HoneyPot, { register,
|
|
238
|
+
/* @__PURE__ */ jsx(HoneyPot, { register, variant })
|
|
239
239
|
] }),
|
|
240
240
|
children,
|
|
241
241
|
/* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
|
|
@@ -302,7 +302,7 @@ const ContactUsNMLSId = ({
|
|
|
302
302
|
variant
|
|
303
303
|
}
|
|
304
304
|
) }),
|
|
305
|
-
/* @__PURE__ */ jsx(HoneyPot, { register,
|
|
305
|
+
/* @__PURE__ */ jsx(HoneyPot, { register, variant })
|
|
306
306
|
] }),
|
|
307
307
|
children,
|
|
308
308
|
/* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
|
|
@@ -746,7 +746,7 @@ const CpraRequest = ({
|
|
|
746
746
|
]
|
|
747
747
|
}
|
|
748
748
|
) }),
|
|
749
|
-
/* @__PURE__ */ jsx(HoneyPot, { register,
|
|
749
|
+
/* @__PURE__ */ jsx(HoneyPot, { register, variant })
|
|
750
750
|
] }),
|
|
751
751
|
children,
|
|
752
752
|
/* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
|
|
@@ -296,7 +296,7 @@ const CraPublicFile = ({
|
|
|
296
296
|
rows: 1
|
|
297
297
|
}
|
|
298
298
|
) }),
|
|
299
|
-
/* @__PURE__ */ jsx(HoneyPot, { register,
|
|
299
|
+
/* @__PURE__ */ jsx(HoneyPot, { register, variant })
|
|
300
300
|
] }),
|
|
301
301
|
children,
|
|
302
302
|
/* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
|
|
@@ -325,7 +325,7 @@ const DealerServices = ({
|
|
|
325
325
|
rows: 1
|
|
326
326
|
}
|
|
327
327
|
) }),
|
|
328
|
-
/* @__PURE__ */ jsx(HoneyPot, { register,
|
|
328
|
+
/* @__PURE__ */ jsx(HoneyPot, { register, variant })
|
|
329
329
|
] }),
|
|
330
330
|
children,
|
|
331
331
|
/* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
|
package/dist/Forms/EmailOnly.js
CHANGED
|
@@ -218,7 +218,7 @@ const EmailOnly = ({
|
|
|
218
218
|
variant
|
|
219
219
|
}
|
|
220
220
|
) }),
|
|
221
|
-
/* @__PURE__ */ jsx(HoneyPot, { register,
|
|
221
|
+
/* @__PURE__ */ jsx(HoneyPot, { register, variant })
|
|
222
222
|
] }),
|
|
223
223
|
children,
|
|
224
224
|
/* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
|
package/dist/Forms/EmailUs.js
CHANGED
|
@@ -129,7 +129,7 @@ const EmailUs = ({
|
|
|
129
129
|
variant
|
|
130
130
|
}
|
|
131
131
|
) }),
|
|
132
|
-
/* @__PURE__ */ jsx(HoneyPot, { register,
|
|
132
|
+
/* @__PURE__ */ jsx(HoneyPot, { register, variant })
|
|
133
133
|
] }),
|
|
134
134
|
children,
|
|
135
135
|
/* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const
|
|
1
|
+
export declare const form_field_container: string;
|
|
@@ -1,24 +1,23 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UseFormRegister } from 'react-hook-form';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { FormProps } from '../FormProps';
|
|
4
4
|
|
|
5
5
|
export type HoneyPotInterface = {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
AlternativePhone?: string;
|
|
7
|
+
AlternativeEmail?: string;
|
|
8
8
|
};
|
|
9
9
|
export declare const honeyPotSchema: z.ZodObject<{
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
AlternativeEmail: z.ZodEffects<z.ZodString, "bestbank@axos.com", string>;
|
|
11
|
+
AlternativePhone: z.ZodEffects<z.ZodString, string, string>;
|
|
12
12
|
}, "strip", z.ZodTypeAny, {
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
AlternativeEmail: "bestbank@axos.com";
|
|
14
|
+
AlternativePhone: string;
|
|
15
15
|
}, {
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
AlternativeEmail: string;
|
|
17
|
+
AlternativePhone: string;
|
|
18
18
|
}>;
|
|
19
19
|
export declare const isValidHoneyPot: (data: HoneyPotInterface) => boolean;
|
|
20
|
-
export declare const HoneyPot: ({ variant: fullVariant, register,
|
|
20
|
+
export declare const HoneyPot: ({ variant: fullVariant, register, }: {
|
|
21
21
|
variant?: FormProps["variant"];
|
|
22
22
|
register: UseFormRegister<any>;
|
|
23
|
-
errors: FieldErrors<HoneyPotInterface>;
|
|
24
23
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -13,53 +13,51 @@ import "../../Input/RadioButton.js";
|
|
|
13
13
|
import "../../utils/allowedAxosDomains.js";
|
|
14
14
|
import { getVariant } from "../../utils/getVariant.js";
|
|
15
15
|
import { z } from "zod";
|
|
16
|
-
import {
|
|
16
|
+
import { form_field_container } from "./HoneyPot.css.js";
|
|
17
17
|
const honeyPotSchema = z.object({
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
AlternativeEmail: z.string().refine((val) => val === "bestbank@axos.com"),
|
|
19
|
+
AlternativePhone: z.string().refine((val) => !val || val.trim() === "")
|
|
20
20
|
});
|
|
21
21
|
const isValidHoneyPot = (data) => {
|
|
22
|
-
|
|
23
|
-
return false;
|
|
24
|
-
}
|
|
25
|
-
return true;
|
|
22
|
+
return data.AlternativeEmail === "bestbank@axos.com" && (!data.AlternativePhone || data.AlternativePhone.trim() === "");
|
|
26
23
|
};
|
|
27
24
|
const HoneyPot = ({
|
|
28
25
|
variant: fullVariant = "primary",
|
|
29
|
-
register
|
|
30
|
-
errors
|
|
26
|
+
register
|
|
31
27
|
}) => {
|
|
32
28
|
const variant = getVariant(fullVariant);
|
|
33
29
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
34
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
30
|
+
/* @__PURE__ */ jsx("div", { className: form_field_container, children: /* @__PURE__ */ jsx(
|
|
35
31
|
Input,
|
|
36
32
|
{
|
|
37
|
-
id: "
|
|
38
|
-
...register("
|
|
33
|
+
id: "AlternativeEmail",
|
|
34
|
+
...register("AlternativeEmail"),
|
|
39
35
|
label: "Alternative Email",
|
|
40
36
|
sizes: "medium",
|
|
41
|
-
error: !!errors.Alternative_Email,
|
|
42
|
-
helperText: errors.Alternative_Email?.message,
|
|
43
37
|
variant,
|
|
44
38
|
tabIndex: -1,
|
|
45
39
|
defaultValue: "bestbank@axos.com",
|
|
46
|
-
autoComplete: "
|
|
40
|
+
autoComplete: "off",
|
|
41
|
+
"aria-autocomplete": "none",
|
|
42
|
+
name: "AlternativeEmail",
|
|
43
|
+
"aria-label": "Alternative Email",
|
|
44
|
+
type: "text"
|
|
47
45
|
}
|
|
48
46
|
) }),
|
|
49
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
47
|
+
/* @__PURE__ */ jsx("div", { className: form_field_container, children: /* @__PURE__ */ jsx(
|
|
50
48
|
InputPhone,
|
|
51
49
|
{
|
|
52
|
-
id: "
|
|
53
|
-
...register("
|
|
54
|
-
maxLength: 12
|
|
55
|
-
}),
|
|
50
|
+
id: "AlternativePhone",
|
|
51
|
+
...register("AlternativePhone"),
|
|
56
52
|
label: "Alternative Phone",
|
|
57
53
|
sizes: "medium",
|
|
58
|
-
error: !!errors.Alternative_Phone,
|
|
59
|
-
helperText: errors.Alternative_Phone?.message,
|
|
60
54
|
variant,
|
|
61
55
|
tabIndex: -1,
|
|
62
|
-
|
|
56
|
+
defaultValue: "",
|
|
57
|
+
autoComplete: "off",
|
|
58
|
+
"aria-autocomplete": "none",
|
|
59
|
+
name: "AlternativePhone",
|
|
60
|
+
"aria-label": "Alternative Phone"
|
|
63
61
|
}
|
|
64
62
|
) })
|
|
65
63
|
] });
|
|
@@ -46,7 +46,7 @@ import { useForm, FormProvider } from "react-hook-form";
|
|
|
46
46
|
import * as z from "zod";
|
|
47
47
|
import "../../Calculators/BuyDownCalculator/BuyDownCalculator.css.js";
|
|
48
48
|
import { iconForm, headerForm, form, descriptionField, headerContainer, fullRowSelect, formWrapper, centerSelect, mt2rem, fullRowForm, disclosureForm, actions, formBtns, na_cursor, formContainer } from "../Forms.css.js";
|
|
49
|
-
import { HoneyPot } from "../HoneyPot/index.js";
|
|
49
|
+
import { honeyPotSchema, isValidHoneyPot, HoneyPot } from "../HoneyPot/index.js";
|
|
50
50
|
import { SalesforceSchema } from "../SalesforceFieldsForm.js";
|
|
51
51
|
import "../../Input/RadioButton.css.js";
|
|
52
52
|
import "../../Input/Checkbox.css.js";
|
|
@@ -221,8 +221,16 @@ const MortgageRate = ({
|
|
|
221
221
|
cashOut: z.number({ message: "Cash Out is required." }).optional(),
|
|
222
222
|
loanPurpose: z.number({ message: "Loan Purpose is required." })
|
|
223
223
|
});
|
|
224
|
+
const gen_schema = schema.merge(SalesforceSchema).merge(honeyPotSchema).superRefine((data, ctx) => {
|
|
225
|
+
if (!isValidHoneyPot(data)) {
|
|
226
|
+
ctx.addIssue({
|
|
227
|
+
code: z.ZodIssueCode.custom,
|
|
228
|
+
message: "fields are not valid."
|
|
229
|
+
});
|
|
230
|
+
}
|
|
231
|
+
});
|
|
224
232
|
const methods = useForm({
|
|
225
|
-
resolver: zodResolver(
|
|
233
|
+
resolver: zodResolver(gen_schema, {
|
|
226
234
|
async: true
|
|
227
235
|
}),
|
|
228
236
|
mode: "all"
|
|
@@ -772,14 +780,7 @@ const MortgageRate = ({
|
|
|
772
780
|
/* @__PURE__ */ jsx(SvgArrowIcon, { className: "arrow", variant: "tertiary" })
|
|
773
781
|
] })
|
|
774
782
|
] }) }),
|
|
775
|
-
/* @__PURE__ */ jsx(
|
|
776
|
-
HoneyPot,
|
|
777
|
-
{
|
|
778
|
-
register,
|
|
779
|
-
errors,
|
|
780
|
-
variant
|
|
781
|
-
}
|
|
782
|
-
)
|
|
783
|
+
/* @__PURE__ */ jsx(HoneyPot, { register, variant })
|
|
783
784
|
]
|
|
784
785
|
}
|
|
785
786
|
)
|
|
@@ -184,7 +184,6 @@ const MortgageWarehouseLending = ({
|
|
|
184
184
|
{ mode: "async" }
|
|
185
185
|
),
|
|
186
186
|
mode: "onChange",
|
|
187
|
-
shouldUnregister: true,
|
|
188
187
|
defaultValues: {
|
|
189
188
|
email: ""
|
|
190
189
|
}
|
|
@@ -314,7 +313,7 @@ const MortgageWarehouseLending = ({
|
|
|
314
313
|
variant
|
|
315
314
|
}
|
|
316
315
|
) }),
|
|
317
|
-
/* @__PURE__ */ jsx(HoneyPot, { register,
|
|
316
|
+
/* @__PURE__ */ jsx(HoneyPot, { register, variant })
|
|
318
317
|
] }),
|
|
319
318
|
children,
|
|
320
319
|
/* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
|
|
@@ -865,7 +865,7 @@ const QuickPricer = ({
|
|
|
865
865
|
variant
|
|
866
866
|
}
|
|
867
867
|
) }),
|
|
868
|
-
/* @__PURE__ */ jsx(HoneyPot, { register,
|
|
868
|
+
/* @__PURE__ */ jsx(HoneyPot, { register, variant })
|
|
869
869
|
] }),
|
|
870
870
|
children,
|
|
871
871
|
/* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
|
|
@@ -251,7 +251,7 @@ const ScheduleCall = ({
|
|
|
251
251
|
]
|
|
252
252
|
}
|
|
253
253
|
) }),
|
|
254
|
-
/* @__PURE__ */ jsx(HoneyPot, { register,
|
|
254
|
+
/* @__PURE__ */ jsx(HoneyPot, { register, variant })
|
|
255
255
|
] }),
|
|
256
256
|
children,
|
|
257
257
|
/* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
|
|
@@ -269,7 +269,7 @@ const ScheduleCallPremier = ({
|
|
|
269
269
|
variant
|
|
270
270
|
}
|
|
271
271
|
) }),
|
|
272
|
-
/* @__PURE__ */ jsx(HoneyPot, { register,
|
|
272
|
+
/* @__PURE__ */ jsx(HoneyPot, { register, variant })
|
|
273
273
|
] }),
|
|
274
274
|
children,
|
|
275
275
|
/* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
|
|
@@ -924,7 +924,7 @@ const VendorQuestionnaire = ({
|
|
|
924
924
|
variant
|
|
925
925
|
}
|
|
926
926
|
) }) }),
|
|
927
|
-
/* @__PURE__ */ jsx(HoneyPot, { register,
|
|
927
|
+
/* @__PURE__ */ jsx(HoneyPot, { register, variant })
|
|
928
928
|
] }),
|
|
929
929
|
children,
|
|
930
930
|
/* @__PURE__ */ jsx("div", { className: actions, children: /* @__PURE__ */ jsx(
|
package/dist/Forms/WcplSurvey.js
CHANGED
|
@@ -187,7 +187,7 @@ const WCPLSurvey = ({
|
|
|
187
187
|
variant
|
|
188
188
|
}
|
|
189
189
|
) }),
|
|
190
|
-
/* @__PURE__ */ jsx(HoneyPot, { register,
|
|
190
|
+
/* @__PURE__ */ jsx(HoneyPot, { register, variant })
|
|
191
191
|
] }),
|
|
192
192
|
children,
|
|
193
193
|
/* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
|
|
@@ -314,7 +314,44 @@ const HeroBanner = ({
|
|
|
314
314
|
children: headline
|
|
315
315
|
}
|
|
316
316
|
),
|
|
317
|
-
/* @__PURE__ */
|
|
317
|
+
/* @__PURE__ */ jsxs("div", { className: "push_up", children: [
|
|
318
|
+
/* @__PURE__ */ jsx(Fragment, { children: bodyCopy }),
|
|
319
|
+
bullets && bullets.length > 0 && /* @__PURE__ */ jsx("ul", { className: "list_unstyled mb_0 push_up_24", children: bullets.map(
|
|
320
|
+
({ id: id2, icon, copy, subBullet }) => !subBullet ? /* @__PURE__ */ jsxs(
|
|
321
|
+
"li",
|
|
322
|
+
{
|
|
323
|
+
className: `list_item flex ${hero_bullet_item}`,
|
|
324
|
+
children: [
|
|
325
|
+
/* @__PURE__ */ jsx("div", { className: "img_item", children: getVariant(variant) ? /* @__PURE__ */ jsx(
|
|
326
|
+
SvgCheckIcon,
|
|
327
|
+
{
|
|
328
|
+
variant: getVariant(variant) === "primary" || getVariant(variant) === "secondary" ? "primary" : "secondary"
|
|
329
|
+
}
|
|
330
|
+
) : /* @__PURE__ */ jsx("img", { src: icon?.src, alt: icon?.altText }) }),
|
|
331
|
+
/* @__PURE__ */ jsx("span", { children: copy })
|
|
332
|
+
]
|
|
333
|
+
},
|
|
334
|
+
id2
|
|
335
|
+
) : /* @__PURE__ */ jsx(
|
|
336
|
+
"ul",
|
|
337
|
+
{
|
|
338
|
+
className: clsx(hero_sub_bullets, "mb_0", "push_up"),
|
|
339
|
+
children: /* @__PURE__ */ jsxs("li", { className: "list_item flex", children: [
|
|
340
|
+
/* @__PURE__ */ jsx("div", { className: "img_item", children: /* @__PURE__ */ jsx(
|
|
341
|
+
"img",
|
|
342
|
+
{
|
|
343
|
+
style: { maxWidth: "max-content" },
|
|
344
|
+
src: icon?.src,
|
|
345
|
+
alt: icon?.altText
|
|
346
|
+
}
|
|
347
|
+
) }),
|
|
348
|
+
/* @__PURE__ */ jsx("span", { children: copy })
|
|
349
|
+
] })
|
|
350
|
+
},
|
|
351
|
+
id2
|
|
352
|
+
)
|
|
353
|
+
) })
|
|
354
|
+
] }),
|
|
318
355
|
callToActionRow && callToActionRow.length > 0 && /* @__PURE__ */ jsx("div", { className: `${hero_btns}`, children: callToActionRow.map(
|
|
319
356
|
({
|
|
320
357
|
id: id2,
|
package/dist/Table/Table.d.ts
CHANGED
|
@@ -61,7 +61,7 @@ export declare const TableCell: ({ children, as, variant, highlighted, colSpan,
|
|
|
61
61
|
is?: string | undefined;
|
|
62
62
|
exportparts?: string | undefined;
|
|
63
63
|
part?: string | undefined;
|
|
64
|
-
popover?: "" | "auto" | "manual" |
|
|
64
|
+
popover?: "" | "auto" | "manual" | undefined;
|
|
65
65
|
popoverTargetAction?: "toggle" | "show" | "hide" | undefined;
|
|
66
66
|
popoverTarget?: string | undefined;
|
|
67
67
|
onToggle?: import('react').ToggleEventHandler<HTMLTableCellElement> | undefined;
|
package/package.json
CHANGED