@axos-web-dev/shared-components 0.0.11 → 0.0.13
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/ApyCalculator/index.js +3 -2
- package/dist/Button/Button.d.ts +24 -0
- package/dist/Button/Button.js +47 -0
- package/dist/Button/GoBackButton.d.ts +3 -0
- package/dist/Button/GoBackButton.js +15 -0
- package/dist/Button/index.d.ts +3 -21
- package/dist/Button/index.js +5 -20
- package/dist/CallToActionBar/index.js +30 -36
- package/dist/Chevron/index.js +53 -1
- package/dist/CollectInformationAlert/index.js +4 -1
- package/dist/ContentBanner/index.js +4 -1
- package/dist/Forms/Forms.css.d.ts +1 -0
- package/dist/Forms/Forms.css.js +2 -0
- package/dist/Forms/ScheduleCall.d.ts +2 -1
- package/dist/Forms/ScheduleCall.js +11 -13
- package/dist/Forms/index.js +2 -1
- package/dist/HeroBanner/index.js +4 -1
- package/dist/Hyperlink/index.js +58 -1
- package/dist/IconBillboard/IconBillboard.d.ts +3 -1
- package/dist/IconBillboard/IconBillboard.interface.d.ts +2 -0
- package/dist/IconBillboard/IconBillboard.js +49 -34
- package/dist/IconBillboard/IconBillboardSet.js +50 -56
- package/dist/ImageBillboard/ImageBillboard.css.d.ts +1 -0
- package/dist/ImageBillboard/ImageBillboard.interface.d.ts +3 -0
- package/dist/ImageBillboard/ImageBillboard.js +4 -1
- package/dist/ImageBillboard/ImageBillboardSet.d.ts +1 -1
- package/dist/ImageBillboard/ImageBillboardSet.js +12 -3
- package/dist/MainHTML/index.d.ts +1 -1
- package/dist/MainHTML/index.js +1 -1
- package/dist/Modal/Modal.d.ts +3 -0
- package/dist/Modal/Modal.js +95 -0
- package/dist/Modal/contextApi/store.d.ts +10 -0
- package/dist/Modal/contextApi/store.js +55 -0
- package/dist/Modal/index.d.ts +2 -3
- package/dist/Modal/index.js +7 -92
- package/dist/NavigationMenu/AxosAdvisor/NavBar.css.d.ts +2 -0
- package/dist/NavigationMenu/AxosAdvisor/NavBar.css.js +9 -0
- package/dist/NavigationMenu/AxosAdvisor/NavBar.module.js +52 -52
- package/dist/NavigationMenu/AxosAdvisor/NavData.d.ts +4 -0
- package/dist/NavigationMenu/AxosAdvisor/NavData.js +10 -0
- package/dist/NavigationMenu/AxosAdvisor/SubNavBar.js +44 -47
- package/dist/NavigationMenu/AxosAdvisor/SubNavbar.css.d.ts +4 -0
- package/dist/NavigationMenu/AxosAdvisor/SubNavbar.css.js +13 -0
- package/dist/NavigationMenu/AxosAdvisor/index.js +273 -203
- package/dist/NavigationMenu/AxosFiduciary/NavBar.module.js +40 -40
- package/dist/NavigationMenu/AxosFiduciary/index.js +12 -6
- package/dist/SecondaryFooter/index.js +2 -1
- package/dist/SetContainer/SetContainer.js +30 -1
- package/dist/Table/Table.css.d.ts +19 -6
- package/dist/Table/Table.css.js +5 -1
- package/dist/Table/Table.d.ts +3 -5
- package/dist/Table/Table.interface.d.ts +2 -0
- package/dist/Table/Table.js +8 -5
- package/dist/Table/index.js +3 -1
- package/dist/VideoTile/VideoTile.js +2 -2
- package/dist/assets/CallToActionBar/CallToActionBar.css +19 -8
- package/dist/assets/ContentBanner/ContentBanner.css +2 -0
- package/dist/assets/FaqAccordion/FaqAccordion.css +2 -2
- package/dist/assets/Forms/Forms.css +9 -1
- package/dist/assets/IconBillboard/IconBillboard.css +8 -2
- package/dist/assets/ImageBillboard/ImageBillboard.css +29 -0
- package/dist/assets/Input/Input.css +2 -1
- package/dist/assets/Modal/Modal.css +3 -3
- package/dist/assets/NavigationMenu/AxosAdvisor/NavBar.css +9 -0
- package/dist/assets/NavigationMenu/AxosAdvisor/NavBar.css.css +125 -122
- package/dist/assets/NavigationMenu/AxosAdvisor/SubNavbar.css +17 -0
- package/dist/assets/NavigationMenu/AxosFiduciary/NavBar.css.css +82 -82
- package/dist/assets/SecondaryFooter/SecondaryFooter.css +0 -2
- package/dist/assets/SetContainer/SetContainer.css +6 -1
- package/dist/assets/Table/Table.css +61 -21
- package/dist/assets/VideoTile/VideoTile.css +1 -0
- package/dist/assets/globals.css +0 -3
- package/dist/main.js +24 -4
- package/dist/utils/allowedAxosDomains.d.ts +2 -0
- package/dist/utils/allowedAxosDomains.js +40 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.js +10 -1
- package/dist/utils/validateExternalLinks.d.ts +5 -0
- package/dist/utils/validateExternalLinks.js +32 -0
- package/package.json +4 -2
- package/dist/NavigationMenu/AxosFiduciary/MobileToggle.d.ts +0 -2
- package/dist/NavigationMenu/AxosFiduciary/MobileToggle.js +0 -120
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { Button } from "../Button/
|
|
3
|
+
import { Button } from "../Button/Button.js";
|
|
4
4
|
import { button } from "../Button/Button.css.js";
|
|
5
|
-
import { Chevron } from "../Chevron/index.js";
|
|
6
5
|
import { useState, useCallback, useEffect } from "react";
|
|
6
|
+
import "react-use";
|
|
7
|
+
import { Chevron } from "../Chevron/index.js";
|
|
7
8
|
import { vars } from "../themes/axos.css.js";
|
|
8
9
|
/* empty css */
|
|
9
10
|
/* empty css */
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { AnchorHTMLAttributes, ButtonHTMLAttributes, ReactNode } from "react";
|
|
2
|
+
import { ButtonVariants } from "./Button.css";
|
|
3
|
+
export type ButtonBase = {
|
|
4
|
+
children?: ReactNode;
|
|
5
|
+
targetUrl?: string;
|
|
6
|
+
id?: string;
|
|
7
|
+
action?: () => void;
|
|
8
|
+
className?: string;
|
|
9
|
+
newTab?: boolean;
|
|
10
|
+
};
|
|
11
|
+
export type ButtonAsButton = ButtonBase & Omit<ButtonHTMLAttributes<HTMLButtonElement>, keyof ButtonBase> & {
|
|
12
|
+
as?: "button";
|
|
13
|
+
};
|
|
14
|
+
export type ButtonAsLink = ButtonBase & Omit<AnchorHTMLAttributes<HTMLAnchorElement>, keyof ButtonBase> & {
|
|
15
|
+
as?: "a";
|
|
16
|
+
};
|
|
17
|
+
export type ButtonProps = ButtonAsButton | ButtonAsLink;
|
|
18
|
+
export declare const Button: ({ as, children, color, size, disabled, rounded, targetUrl, id, newTab, action, className, }: ButtonProps & ButtonVariants) => import("react").DetailedReactHTMLElement<{
|
|
19
|
+
className: string;
|
|
20
|
+
href: string;
|
|
21
|
+
id: string | undefined;
|
|
22
|
+
target: string;
|
|
23
|
+
onClick: (e: React.MouseEvent<Element, MouseEvent>) => void;
|
|
24
|
+
}, HTMLElement>;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useGlobalContext } from "../Modal/contextApi/store.js";
|
|
3
|
+
import { findMoreAxosDomains } from "../utils/allowedAxosDomains.js";
|
|
4
|
+
import { validateLink } from "../utils/validateExternalLinks.js";
|
|
5
|
+
import clsx from "clsx";
|
|
6
|
+
import { createElement } from "react";
|
|
7
|
+
import { button } from "./Button.css.js";
|
|
8
|
+
const Button = ({
|
|
9
|
+
as = "a",
|
|
10
|
+
children,
|
|
11
|
+
color = "primary",
|
|
12
|
+
size = "large",
|
|
13
|
+
disabled,
|
|
14
|
+
rounded = "medium",
|
|
15
|
+
targetUrl,
|
|
16
|
+
id,
|
|
17
|
+
newTab = false,
|
|
18
|
+
action,
|
|
19
|
+
className
|
|
20
|
+
}) => {
|
|
21
|
+
const { setTargetLinkUrl, setOpenModal } = useGlobalContext();
|
|
22
|
+
const onClick = (e) => {
|
|
23
|
+
if (targetUrl) {
|
|
24
|
+
const external_link = validateLink(targetUrl);
|
|
25
|
+
if (external_link) {
|
|
26
|
+
e.nativeEvent.stopImmediatePropagation();
|
|
27
|
+
e.preventDefault();
|
|
28
|
+
setOpenModal(external_link);
|
|
29
|
+
setTargetLinkUrl(targetUrl);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
return createElement(
|
|
34
|
+
as,
|
|
35
|
+
{
|
|
36
|
+
className: clsx(button({ color, size, disabled, rounded }), className),
|
|
37
|
+
href: findMoreAxosDomains(targetUrl),
|
|
38
|
+
id,
|
|
39
|
+
target: newTab ? "_blank" : "_self",
|
|
40
|
+
onClick: action ?? onClick
|
|
41
|
+
},
|
|
42
|
+
children
|
|
43
|
+
);
|
|
44
|
+
};
|
|
45
|
+
export {
|
|
46
|
+
Button
|
|
47
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { useState } from "react";
|
|
4
|
+
import { useMount } from "react-use";
|
|
5
|
+
import { Button } from "./Button.js";
|
|
6
|
+
const GoBackButton = (props) => {
|
|
7
|
+
const [previusUrl, setPreviusUrl] = useState("");
|
|
8
|
+
useMount(() => {
|
|
9
|
+
setPreviusUrl(document == null ? void 0 : document.referrer);
|
|
10
|
+
});
|
|
11
|
+
return /* @__PURE__ */ jsx(Button, { as: "a", targetUrl: previusUrl, children: props.children });
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
GoBackButton
|
|
15
|
+
};
|
package/dist/Button/index.d.ts
CHANGED
|
@@ -1,21 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
children?: ReactNode;
|
|
5
|
-
targetUrl?: string;
|
|
6
|
-
id?: string;
|
|
7
|
-
action?: () => void;
|
|
8
|
-
};
|
|
9
|
-
export type ButtonAsButton = ButtonBase & Omit<ButtonHTMLAttributes<HTMLButtonElement>, keyof ButtonBase> & {
|
|
10
|
-
as?: "button";
|
|
11
|
-
};
|
|
12
|
-
export type ButtonAsLink = ButtonBase & Omit<AnchorHTMLAttributes<HTMLAnchorElement>, keyof ButtonBase> & {
|
|
13
|
-
as?: "a";
|
|
14
|
-
};
|
|
15
|
-
export type ButtonProps = ButtonAsButton | ButtonAsLink;
|
|
16
|
-
export declare const Button: ({ as, children, color, size, disabled, rounded, targetUrl, id, action, }: ButtonProps & ButtonVariants) => import("react").DetailedReactHTMLElement<{
|
|
17
|
-
className: string;
|
|
18
|
-
href: string | undefined;
|
|
19
|
-
id: string | undefined;
|
|
20
|
-
onClick: (() => void) | undefined;
|
|
21
|
-
}, HTMLElement>;
|
|
1
|
+
export * from "./Button";
|
|
2
|
+
export * from "./Button.css";
|
|
3
|
+
export * from "./GoBackButton";
|
package/dist/Button/index.js
CHANGED
|
@@ -1,23 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Button } from "./Button.js";
|
|
2
2
|
import { button } from "./Button.css.js";
|
|
3
|
-
|
|
4
|
-
as = "a",
|
|
5
|
-
children,
|
|
6
|
-
color,
|
|
7
|
-
size = "large",
|
|
8
|
-
disabled,
|
|
9
|
-
rounded = "medium",
|
|
10
|
-
targetUrl,
|
|
11
|
-
id,
|
|
12
|
-
action
|
|
13
|
-
}) => {
|
|
14
|
-
const className = button({ color, size, disabled, rounded });
|
|
15
|
-
return createElement(
|
|
16
|
-
as,
|
|
17
|
-
{ className, href: targetUrl, id, onClick: action },
|
|
18
|
-
children
|
|
19
|
-
);
|
|
20
|
-
};
|
|
3
|
+
import { GoBackButton } from "./GoBackButton.js";
|
|
21
4
|
export {
|
|
22
|
-
Button
|
|
5
|
+
Button,
|
|
6
|
+
GoBackButton,
|
|
7
|
+
button
|
|
23
8
|
};
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
3
|
-
import { Button } from "../Button/
|
|
3
|
+
import { Button } from "../Button/Button.js";
|
|
4
|
+
import "../Button/Button.css.js";
|
|
5
|
+
import { useState, useEffect } from "react";
|
|
6
|
+
import "react-use";
|
|
4
7
|
import { Chevron } from "../Chevron/index.js";
|
|
5
8
|
import { getVariant } from "../utils/getVariant.js";
|
|
6
9
|
import clsx from "clsx";
|
|
7
|
-
import { useState, useEffect } from "react";
|
|
8
10
|
import { returnImageDimensions, imageOrientation, getBannerSizeClassName } from "../utils/ctaOptions.js";
|
|
9
11
|
import { sticky_banner, is_sticky, cta, cta_image_section, cta_image_overlap, cta_body_section, cta_text, ctas_section } from "./CallToActionBar.css.js";
|
|
10
12
|
const CallToActionBar = ({
|
|
@@ -80,8 +82,11 @@ const CallToActionBar = ({
|
|
|
80
82
|
/* @__PURE__ */ jsxs(
|
|
81
83
|
"div",
|
|
82
84
|
{
|
|
83
|
-
className:
|
|
84
|
-
|
|
85
|
+
className: clsx(
|
|
86
|
+
cta_body_section,
|
|
87
|
+
banner_size !== "large" ? "flex middle" : "",
|
|
88
|
+
row_reverse ? "reversed" : ""
|
|
89
|
+
),
|
|
85
90
|
children: [
|
|
86
91
|
/* @__PURE__ */ jsxs(
|
|
87
92
|
"div",
|
|
@@ -97,38 +102,27 @@ const CallToActionBar = ({
|
|
|
97
102
|
]
|
|
98
103
|
}
|
|
99
104
|
),
|
|
100
|
-
/* @__PURE__ */ jsx(
|
|
101
|
-
"
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
Chevron,
|
|
122
|
-
{
|
|
123
|
-
targetUrl,
|
|
124
|
-
variant: getVariant(variant),
|
|
125
|
-
children: displayText
|
|
126
|
-
},
|
|
127
|
-
id2
|
|
128
|
-
)
|
|
129
|
-
)
|
|
130
|
-
}
|
|
131
|
-
)
|
|
105
|
+
/* @__PURE__ */ jsx("div", { className: clsx(ctas_section, "flex", "text_center"), children: callToActionRow.map(
|
|
106
|
+
({ id: id2, variant, displayText, targetUrl, type }) => type === "Button" ? /* @__PURE__ */ jsx(
|
|
107
|
+
Button,
|
|
108
|
+
{
|
|
109
|
+
targetUrl,
|
|
110
|
+
color: getVariant(variant),
|
|
111
|
+
size: "medium",
|
|
112
|
+
rounded: "medium",
|
|
113
|
+
children: displayText
|
|
114
|
+
},
|
|
115
|
+
id2
|
|
116
|
+
) : /* @__PURE__ */ jsx(
|
|
117
|
+
Chevron,
|
|
118
|
+
{
|
|
119
|
+
targetUrl,
|
|
120
|
+
variant: getVariant(variant),
|
|
121
|
+
children: displayText
|
|
122
|
+
},
|
|
123
|
+
id2
|
|
124
|
+
)
|
|
125
|
+
) })
|
|
132
126
|
]
|
|
133
127
|
}
|
|
134
128
|
)
|
package/dist/Chevron/index.js
CHANGED
|
@@ -1,11 +1,50 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
3
|
import SvgArrowIcon from "../icons/ArrowIcon/index.js";
|
|
3
4
|
import "../icons/CheckIcon/CheckIcon.css.js";
|
|
4
5
|
/* empty css */
|
|
5
6
|
/* empty css */
|
|
6
7
|
/* empty css */
|
|
8
|
+
import "../Accordion/Accordion.js";
|
|
9
|
+
import "../Accordion/Accordion.css.js";
|
|
10
|
+
import "../AlertBanner/AlertBanner.css.js";
|
|
11
|
+
import { useGlobalContext } from "../Modal/contextApi/store.js";
|
|
12
|
+
import { findMoreAxosDomains } from "../utils/allowedAxosDomains.js";
|
|
7
13
|
import { getVariant } from "../utils/getVariant.js";
|
|
14
|
+
import { validateLink } from "../utils/validateExternalLinks.js";
|
|
15
|
+
import "clsx";
|
|
16
|
+
import "react";
|
|
17
|
+
import "../Button/Button.css.js";
|
|
18
|
+
import "react-use";
|
|
19
|
+
/* empty css */
|
|
20
|
+
import "../IconBillboard/IconBillboard.css.js";
|
|
21
|
+
/* empty css */
|
|
22
|
+
/* empty css */
|
|
23
|
+
/* empty css */
|
|
24
|
+
import "../Carousel/index.js";
|
|
25
|
+
/* empty css */
|
|
26
|
+
import "../HeroBanner/HeroBanner.css.js";
|
|
27
|
+
import "../ContentBanner/ContentBanner.css.js";
|
|
28
|
+
/* empty css */
|
|
29
|
+
import "../FaqAccordion/index.js";
|
|
30
|
+
import "../FooterDisclosure/FooterDisclosure.css.js";
|
|
31
|
+
import "../Forms/Forms.css.js";
|
|
32
|
+
import "../Forms/SalesforceFieldsForm.js";
|
|
33
|
+
import "@hookform/resolvers/zod";
|
|
34
|
+
import "../Input/index.js";
|
|
35
|
+
import "react-hook-form";
|
|
36
|
+
/* empty css */
|
|
37
|
+
import "../ImageBillboard/ImageBillboard.css.js";
|
|
8
38
|
import { chevron_wrapper, chevron } from "./Chevron.css.js";
|
|
39
|
+
/* empty css */
|
|
40
|
+
/* empty css */
|
|
41
|
+
/* empty css */
|
|
42
|
+
/* empty css */
|
|
43
|
+
import "../Table/Table.css.js";
|
|
44
|
+
/* empty css */
|
|
45
|
+
import "next/script.js";
|
|
46
|
+
/* empty css */
|
|
47
|
+
/* empty css */
|
|
9
48
|
const Chevron = ({
|
|
10
49
|
children,
|
|
11
50
|
variant,
|
|
@@ -14,13 +53,26 @@ const Chevron = ({
|
|
|
14
53
|
className
|
|
15
54
|
}) => {
|
|
16
55
|
variant = getVariant(variant);
|
|
56
|
+
const { setTargetLinkUrl, setOpenModal } = useGlobalContext();
|
|
57
|
+
const onClick = (e) => {
|
|
58
|
+
if (targetUrl) {
|
|
59
|
+
const external_link = validateLink(targetUrl);
|
|
60
|
+
if (external_link) {
|
|
61
|
+
e.nativeEvent.stopImmediatePropagation();
|
|
62
|
+
e.preventDefault();
|
|
63
|
+
setOpenModal(external_link);
|
|
64
|
+
setTargetLinkUrl(targetUrl);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
};
|
|
17
68
|
return /* @__PURE__ */ jsxs("span", { className: `sc__btn ${chevron_wrapper}`, children: [
|
|
18
69
|
/* @__PURE__ */ jsx(
|
|
19
70
|
"a",
|
|
20
71
|
{
|
|
21
72
|
id,
|
|
22
|
-
href: targetUrl,
|
|
73
|
+
href: findMoreAxosDomains(targetUrl),
|
|
23
74
|
className: `${chevron({ variant })} ${className ? className : ""}`,
|
|
75
|
+
onClick,
|
|
24
76
|
children
|
|
25
77
|
}
|
|
26
78
|
),
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Button } from "../Button/
|
|
2
|
+
import { Button } from "../Button/Button.js";
|
|
3
|
+
import "../Button/Button.css.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import "react-use";
|
|
3
6
|
import { Hyperlink } from "../Hyperlink/index.js";
|
|
4
7
|
import "../icons/CheckIcon/CheckIcon.css.js";
|
|
5
8
|
import SvgCloseIcon from "../icons/CloseIcon/index.js";
|
|
@@ -2,7 +2,10 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { Chevron } from "../Chevron/index.js";
|
|
3
3
|
import { headline_text } from "../HeroBanner/HeroBanner.css.js";
|
|
4
4
|
import { getVariant } from "../utils/getVariant.js";
|
|
5
|
-
import { Button } from "../Button/
|
|
5
|
+
import { Button } from "../Button/Button.js";
|
|
6
|
+
import "../Button/Button.css.js";
|
|
7
|
+
import "react";
|
|
8
|
+
import "react-use";
|
|
6
9
|
import { content_banner, section_pad, body_copy, call_to_action_row, link } from "./ContentBanner.css.js";
|
|
7
10
|
const ContentBanner = ({
|
|
8
11
|
variant,
|
package/dist/Forms/Forms.css.js
CHANGED
|
@@ -9,9 +9,11 @@ var headerForm = createRuntimeFn({ defaultClassName: "tfms6a6", variantClassName
|
|
|
9
9
|
var formWrapper = createRuntimeFn({ defaultClassName: "tfms6ab", variantClassNames: { variant: { primary: "tfms6ac", secondary: "tfms6ad", tertiary: "tfms6ae", quaternary: "tfms6af" } }, defaultVariants: {}, compoundVariants: [] });
|
|
10
10
|
var actions = "tfms6ag";
|
|
11
11
|
var disclosureForm = createRuntimeFn({ defaultClassName: "tfms6ah", variantClassNames: { variant: { primary: "tfms6ai", secondary: "tfms6aj", tertiary: "tfms6ak", quaternary: "tfms6al" } }, defaultVariants: {}, compoundVariants: [] });
|
|
12
|
+
var form = "tfms6am";
|
|
12
13
|
export {
|
|
13
14
|
actions,
|
|
14
15
|
disclosureForm,
|
|
16
|
+
form,
|
|
15
17
|
formContainer,
|
|
16
18
|
formWrapper,
|
|
17
19
|
headerForm,
|
|
@@ -2,6 +2,7 @@ import { ChevronProps } from '../Chevron/Chevron.interface';
|
|
|
2
2
|
import { QuaternaryTypes } from '../utils/variant.types';
|
|
3
3
|
import { PropsWithChildren, ReactNode } from "react";
|
|
4
4
|
export interface FormProps extends PropsWithChildren {
|
|
5
|
+
id?: string;
|
|
5
6
|
onSubmit?: (values: {
|
|
6
7
|
[index: string]: string;
|
|
7
8
|
}) => void;
|
|
@@ -12,4 +13,4 @@ export interface FormProps extends PropsWithChildren {
|
|
|
12
13
|
validateEmail: (email: string) => Promise<boolean>;
|
|
13
14
|
callToAction: Omit<ChevronProps, "targetUrl">;
|
|
14
15
|
}
|
|
15
|
-
export declare const ScheduleCall: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, callToAction, validateEmail, }: FormProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare const ScheduleCall: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, callToAction, validateEmail, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { zodResolver } from "@hookform/resolvers/zod";
|
|
4
|
-
import { Button } from "../Button/
|
|
4
|
+
import { Button } from "../Button/Button.js";
|
|
5
|
+
import "../Button/Button.css.js";
|
|
6
|
+
import "react";
|
|
7
|
+
import "react-use";
|
|
5
8
|
import { Input } from "../Input/index.js";
|
|
6
9
|
import SvgAxosX from "../icons/AxosX/index.js";
|
|
7
10
|
import "../icons/CheckIcon/CheckIcon.css.js";
|
|
@@ -13,7 +16,7 @@ import { getVariant } from "../utils/getVariant.js";
|
|
|
13
16
|
import clsx from "clsx";
|
|
14
17
|
import { useForm, FormProvider } from "react-hook-form";
|
|
15
18
|
import * as z from "zod";
|
|
16
|
-
import { formContainer, iconForm, headerForm, formWrapper, disclosureForm, actions } from "./Forms.css.js";
|
|
19
|
+
import { formContainer, iconForm, headerForm, form, formWrapper, disclosureForm, actions } from "./Forms.css.js";
|
|
17
20
|
import { SalesforceSchema } from "./SalesforceFieldsForm.js";
|
|
18
21
|
const ScheduleCall = ({
|
|
19
22
|
icon = false,
|
|
@@ -25,7 +28,8 @@ const ScheduleCall = ({
|
|
|
25
28
|
variant: fullVariant = "primary",
|
|
26
29
|
headline,
|
|
27
30
|
callToAction,
|
|
28
|
-
validateEmail
|
|
31
|
+
validateEmail,
|
|
32
|
+
id
|
|
29
33
|
}) => {
|
|
30
34
|
var _a, _b, _c, _d;
|
|
31
35
|
const schema = z.object({
|
|
@@ -52,16 +56,10 @@ const ScheduleCall = ({
|
|
|
52
56
|
await onSubmit(data);
|
|
53
57
|
};
|
|
54
58
|
const variant = getVariant(fullVariant);
|
|
55
|
-
return /* @__PURE__ */ jsx("section", { className: clsx(formContainer({ variant })), children: /* @__PURE__ */
|
|
59
|
+
return /* @__PURE__ */ jsx("section", { className: clsx(formContainer({ variant })), children: /* @__PURE__ */ jsxs(FormProvider, { ...methods, children: [
|
|
56
60
|
icon && /* @__PURE__ */ jsx("div", { className: clsx("text_center", iconForm), children: /* @__PURE__ */ jsx(SvgAxosX, {}) }),
|
|
57
|
-
/* @__PURE__ */ jsx(
|
|
58
|
-
|
|
59
|
-
{
|
|
60
|
-
className: clsx("header_2 text_center", headerForm({ variant })),
|
|
61
|
-
children: headline
|
|
62
|
-
}
|
|
63
|
-
),
|
|
64
|
-
/* @__PURE__ */ jsxs("form", { onSubmit: handleSubmit(submitForm), children: [
|
|
61
|
+
/* @__PURE__ */ jsx("div", { className: clsx("header_2 text_center", headerForm({ variant })), children: headline }),
|
|
62
|
+
/* @__PURE__ */ jsxs("form", { className: form, onSubmit: handleSubmit(submitForm), children: [
|
|
65
63
|
/* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant })), children: [
|
|
66
64
|
/* @__PURE__ */ jsx("div", { className: "", children: /* @__PURE__ */ jsx(
|
|
67
65
|
Input,
|
|
@@ -134,7 +132,7 @@ const ScheduleCall = ({
|
|
|
134
132
|
}
|
|
135
133
|
) })
|
|
136
134
|
] })
|
|
137
|
-
] }) }
|
|
135
|
+
] }) }, id);
|
|
138
136
|
};
|
|
139
137
|
export {
|
|
140
138
|
ScheduleCall
|
package/dist/Forms/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { actions, disclosureForm, formContainer, formWrapper, headerForm, iconForm } from "./Forms.css.js";
|
|
1
|
+
import { actions, disclosureForm, form, formContainer, formWrapper, headerForm, iconForm } from "./Forms.css.js";
|
|
2
2
|
import { RenderWebForm, renderSwitch } from "./RenderForm.js";
|
|
3
3
|
import { SalesforceFieldsForm, SalesforceSchema } from "./SalesforceFieldsForm.js";
|
|
4
4
|
import { ScheduleCall } from "./ScheduleCall.js";
|
|
@@ -9,6 +9,7 @@ export {
|
|
|
9
9
|
ScheduleCall,
|
|
10
10
|
actions,
|
|
11
11
|
disclosureForm,
|
|
12
|
+
form,
|
|
12
13
|
formContainer,
|
|
13
14
|
formWrapper,
|
|
14
15
|
headerForm,
|
package/dist/HeroBanner/index.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { Button } from "../Button/
|
|
2
|
+
import { Button } from "../Button/Button.js";
|
|
3
|
+
import "../Button/Button.css.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import "react-use";
|
|
3
6
|
import { Chevron } from "../Chevron/index.js";
|
|
4
7
|
import { getVariant } from "../utils/getVariant.js";
|
|
5
8
|
import { logout, hero_banner, hero_content, reversed, hero_text, supertag, headline_text, hero_btns, hero_img } from "./HeroBanner.css.js";
|
package/dist/Hyperlink/index.js
CHANGED
|
@@ -1,16 +1,73 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import "../Accordion/Accordion.js";
|
|
4
|
+
import "../Accordion/Accordion.css.js";
|
|
5
|
+
import "../icons/CheckIcon/CheckIcon.css.js";
|
|
6
|
+
/* empty css */
|
|
7
|
+
/* empty css */
|
|
8
|
+
/* empty css */
|
|
9
|
+
import "../Chevron/Chevron.css.js";
|
|
10
|
+
import "../AlertBanner/AlertBanner.css.js";
|
|
11
|
+
import { useGlobalContext } from "../Modal/contextApi/store.js";
|
|
12
|
+
import { findMoreAxosDomains } from "../utils/allowedAxosDomains.js";
|
|
13
|
+
import { validateLink } from "../utils/validateExternalLinks.js";
|
|
14
|
+
import "clsx";
|
|
15
|
+
import "react";
|
|
16
|
+
import "../Button/Button.css.js";
|
|
17
|
+
import "react-use";
|
|
18
|
+
/* empty css */
|
|
19
|
+
import "../IconBillboard/IconBillboard.css.js";
|
|
20
|
+
/* empty css */
|
|
21
|
+
/* empty css */
|
|
22
|
+
/* empty css */
|
|
23
|
+
import "../Carousel/index.js";
|
|
24
|
+
/* empty css */
|
|
25
|
+
import "../HeroBanner/HeroBanner.css.js";
|
|
26
|
+
import "../ContentBanner/ContentBanner.css.js";
|
|
27
|
+
/* empty css */
|
|
28
|
+
import "../FaqAccordion/index.js";
|
|
29
|
+
import "../FooterDisclosure/FooterDisclosure.css.js";
|
|
30
|
+
import "../Forms/Forms.css.js";
|
|
31
|
+
import "../Forms/SalesforceFieldsForm.js";
|
|
32
|
+
import "@hookform/resolvers/zod";
|
|
33
|
+
import "../Input/index.js";
|
|
34
|
+
import "react-hook-form";
|
|
35
|
+
/* empty css */
|
|
36
|
+
import "../ImageBillboard/ImageBillboard.css.js";
|
|
37
|
+
/* empty css */
|
|
38
|
+
/* empty css */
|
|
39
|
+
/* empty css */
|
|
40
|
+
/* empty css */
|
|
41
|
+
import "../Table/Table.css.js";
|
|
42
|
+
/* empty css */
|
|
43
|
+
import "next/script.js";
|
|
44
|
+
/* empty css */
|
|
45
|
+
/* empty css */
|
|
2
46
|
const Hyperlink = ({
|
|
3
47
|
children,
|
|
4
48
|
targetUrl,
|
|
5
49
|
id,
|
|
6
50
|
className
|
|
7
51
|
}) => {
|
|
52
|
+
const { setTargetLinkUrl, setOpenModal } = useGlobalContext();
|
|
53
|
+
const onClick = (e) => {
|
|
54
|
+
if (targetUrl) {
|
|
55
|
+
const external_link = validateLink(targetUrl);
|
|
56
|
+
if (external_link) {
|
|
57
|
+
e.nativeEvent.stopImmediatePropagation();
|
|
58
|
+
e.preventDefault();
|
|
59
|
+
setOpenModal(external_link);
|
|
60
|
+
setTargetLinkUrl(targetUrl);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
};
|
|
8
64
|
return /* @__PURE__ */ jsx(
|
|
9
65
|
"a",
|
|
10
66
|
{
|
|
11
67
|
id: id ? id : "",
|
|
12
|
-
href: targetUrl,
|
|
68
|
+
href: findMoreAxosDomains(targetUrl),
|
|
13
69
|
className: `${className ? className : ""}`,
|
|
70
|
+
onClick,
|
|
14
71
|
children
|
|
15
72
|
}
|
|
16
73
|
);
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { ChevronProps } from '../Chevron/Chevron.interface';
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
|
+
import { ImageInterface } from ".";
|
|
3
4
|
import { ContainerVariants, LayoutVariants } from "./IconBillboard.css";
|
|
4
5
|
export interface FocusProps {
|
|
5
|
-
icon?:
|
|
6
|
+
icon?: ImageInterface;
|
|
6
7
|
headline?: ReactNode | undefined;
|
|
7
8
|
body?: ReactNode | undefined;
|
|
8
9
|
items?: {
|
|
@@ -10,5 +11,6 @@ export interface FocusProps {
|
|
|
10
11
|
content: ReactNode;
|
|
11
12
|
}[];
|
|
12
13
|
callToActionRow?: ChevronProps[];
|
|
14
|
+
set?: boolean;
|
|
13
15
|
}
|
|
14
16
|
export declare const IconBillboard: (props: FocusProps & ContainerVariants & LayoutVariants) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -10,6 +10,7 @@ export interface IconBillboardSet {
|
|
|
10
10
|
iconBillboards: IconBillboardProps[];
|
|
11
11
|
additionalDetails: ReactNode | string;
|
|
12
12
|
side: boolean;
|
|
13
|
+
set?: boolean;
|
|
13
14
|
}
|
|
14
15
|
export interface IconBillboardProps {
|
|
15
16
|
id?: string;
|
|
@@ -18,6 +19,7 @@ export interface IconBillboardProps {
|
|
|
18
19
|
bodyCopy?: ReactNode | undefined;
|
|
19
20
|
bullets: BulletItemProps[];
|
|
20
21
|
callToActionRow: ChevronProps[];
|
|
22
|
+
set?: boolean;
|
|
21
23
|
}
|
|
22
24
|
export interface ImageInterface {
|
|
23
25
|
src: string;
|