@axos-web-dev/shared-components 0.0.62 → 0.0.64

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 (45) hide show
  1. package/dist/BulletItem/BulletItem.d.ts +2 -1
  2. package/dist/BulletItem/BulletItem.js +2 -1
  3. package/dist/Button/Button.css.d.ts +27 -0
  4. package/dist/Button/Button.css.js +1 -1
  5. package/dist/Button/Button.d.ts +1 -1
  6. package/dist/Button/Button.js +6 -2
  7. package/dist/Calculators/Calculator.js +1 -0
  8. package/dist/Carousel/index.js +2 -1
  9. package/dist/Chevron/Chevron.interface.d.ts +4 -0
  10. package/dist/Chevron/index.js +1 -0
  11. package/dist/FooterSiteMap/AxosBank/FooterSiteMap.js +1 -0
  12. package/dist/Forms/ContactUsBusiness.js +1 -0
  13. package/dist/Forms/EmailOnly.js +1 -0
  14. package/dist/Forms/RenderForm.js +1 -0
  15. package/dist/Forms/SuccesForm.js +1 -0
  16. package/dist/HeroBanner/HeroBanner.css.d.ts +1 -1
  17. package/dist/HeroBanner/HeroBanner.css.js +4 -3
  18. package/dist/HeroBanner/HeroBanner.d.ts +3 -0
  19. package/dist/HeroBanner/HeroBanner.interface.d.ts +14 -4
  20. package/dist/HeroBanner/HeroBanner.js +155 -0
  21. package/dist/HeroBanner/SelectionBanner.css.d.ts +24 -0
  22. package/dist/HeroBanner/SelectionBanner.css.js +19 -0
  23. package/dist/HeroBanner/index.d.ts +4 -3
  24. package/dist/HeroBanner/index.js +20 -81
  25. package/dist/Hyperlink/index.js +1 -0
  26. package/dist/ImageLink/ImageLink.js +1 -0
  27. package/dist/ImageLink/ImageLinkSet.js +2 -1
  28. package/dist/ImageLink/index.js +1 -0
  29. package/dist/Modal/Modal.js +1 -0
  30. package/dist/NavigationMenu/AxosAdvisor/NavBar.module.js +53 -53
  31. package/dist/SetContainer/SetContainer.js +2 -1
  32. package/dist/StepItem/StepItem.d.ts +1 -0
  33. package/dist/StepItem/StepItem.js +2 -2
  34. package/dist/StepItemSet/StepItemSet.css.d.ts +30 -2
  35. package/dist/StepItemSet/StepItemSet.js +3 -2
  36. package/dist/assets/Button/Button.css +33 -8
  37. package/dist/assets/HeroBanner/HeroBanner.css +5 -0
  38. package/dist/assets/HeroBanner/SelectionBanner.css +83 -0
  39. package/dist/assets/NavigationMenu/AxosAdvisor/NavBar.css.css +116 -115
  40. package/dist/assets/StepItem/StepItem.css +2 -1
  41. package/dist/assets/StepItemSet/StepItemSet.css +15 -2
  42. package/dist/assets/TopicalNavItem/TopicalNavItem.css +1 -1
  43. package/dist/assets/themes/axos.css +1 -1
  44. package/dist/main.js +19 -1
  45. package/package.json +2 -1
@@ -1,8 +1,9 @@
1
1
  import { PropsWithChildren, ReactNode } from 'react';
2
+ import { QuaternaryTypes } from '../utils';
2
3
 
3
4
  export interface BulletItemProps extends PropsWithChildren {
4
5
  id: string;
5
- variant?: "primary" | "secondary" | "tertiary" | "quaternary";
6
+ variant?: QuaternaryTypes;
6
7
  icon?: {
7
8
  src: string;
8
9
  altText?: string;
@@ -10,6 +10,7 @@ import "../icons/CheckIcon/CheckIcon.css.js";
10
10
  /* empty css */
11
11
  import { vars } from "../themes/axos.css.js";
12
12
  import { bulletIcon } from "./BulletItem.css.js";
13
+ import { getVariant } from "../utils/getVariant.js";
13
14
  const BulletItem = (props) => {
14
15
  const iconCheckVariant = /* @__PURE__ */ new Map([
15
16
  [
@@ -44,7 +45,7 @@ const BulletItem = (props) => {
44
45
  ],
45
46
  [void 0, /* @__PURE__ */ jsx(SvgCheckCircleLight, { height: 18, width: 18 })]
46
47
  ]);
47
- const Icon = iconCheckVariant.get(props.variant);
48
+ const Icon = iconCheckVariant.get(getVariant(props.variant));
48
49
  return /* @__PURE__ */ jsxs("li", { className: listItem, children: [
49
50
  /* @__PURE__ */ jsx("span", { className: bulletIcon, children: Icon }),
50
51
  /* @__PURE__ */ jsx("div", { children: props.children })
@@ -94,5 +94,32 @@ export declare const button: import('@vanilla-extract/recipes').RuntimeFn<{
94
94
  borderRadius: number;
95
95
  };
96
96
  };
97
+ square: {
98
+ true: {
99
+ width: number;
100
+ minHeight: number;
101
+ whiteSpace: "break-spaces";
102
+ textAlign: "center";
103
+ padding: "0 1em";
104
+ display: "flex";
105
+ flexDirection: "column";
106
+ justifyContent: "center";
107
+ background: "#fff";
108
+ color: "#333D46";
109
+ border: "1px solid #EBEBEB";
110
+ alignItems: "center";
111
+ gap: number;
112
+ ":hover": {
113
+ background: "#EBEBEB";
114
+ color: "#333D46";
115
+ };
116
+ "@media": {
117
+ "screen and (max-width:768px)": {
118
+ width: number;
119
+ minHeight: number;
120
+ };
121
+ };
122
+ };
123
+ };
97
124
  }>;
98
125
  export type ButtonVariants = RecipeVariants<typeof button>;
@@ -3,7 +3,7 @@
3
3
  /* empty css */
4
4
  /* empty css */
5
5
  import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
6
- var button = createRuntimeFn({ defaultClassName: "_13pdpuj0", variantClassNames: { color: { primary: "_13pdpuj1", secondary: "_13pdpuj2", tertiary: "_13pdpuj3" }, skeleton: { true: "_13pdpuj4" }, size: { small: "_13pdpuj5", medium: "_13pdpuj6", large: "_13pdpuj7" }, disabled: { true: "_13pdpuj8" }, rounded: { none: "_13pdpuj9", small: "_13pdpuja", medium: "_13pdpujb", large: "_13pdpujc" } }, defaultVariants: {}, compoundVariants: [[{ color: "primary", disabled: true }, "_13pdpujd"], [{ color: "secondary", disabled: true }, "_13pdpuje"], [{ color: "tertiary", disabled: true }, "_13pdpujf"], [{ skeleton: true, size: "large" }, "_13pdpujg"], [{ skeleton: true, size: "medium" }, "_13pdpujh"], [{ skeleton: true, size: "small" }, "_13pdpuji"]] });
6
+ var button = createRuntimeFn({ defaultClassName: "_13pdpuj0", variantClassNames: { color: { primary: "_13pdpuj1", secondary: "_13pdpuj2", tertiary: "_13pdpuj3" }, skeleton: { true: "_13pdpuj4" }, size: { small: "_13pdpuj5", medium: "_13pdpuj6", large: "_13pdpuj7" }, disabled: { true: "_13pdpuj8" }, rounded: { none: "_13pdpuj9", small: "_13pdpuja", medium: "_13pdpujb", large: "_13pdpujc" }, square: { true: "_13pdpujd" } }, defaultVariants: {}, compoundVariants: [[{ color: "primary", disabled: true }, "_13pdpuje"], [{ color: "secondary", disabled: true }, "_13pdpujf"], [{ color: "tertiary", disabled: true }, "_13pdpujg"], [{ skeleton: true, size: "large" }, "_13pdpujh"], [{ skeleton: true, size: "medium" }, "_13pdpuji"], [{ skeleton: true, size: "small" }, "_13pdpujj"]] });
7
7
  export {
8
8
  button
9
9
  };
@@ -16,7 +16,7 @@ export type ButtonAsLink = ButtonBase & Omit<AnchorHTMLAttributes<HTMLAnchorElem
16
16
  as?: "a";
17
17
  };
18
18
  export type ButtonProps = ButtonAsButton | ButtonAsLink;
19
- export declare const Button: ({ as, children, color, size, disabled, rounded, targetUrl, id, newTab, action, className, }: ButtonProps & ButtonVariants) => import('react').DetailedReactHTMLElement<{
19
+ export declare const Button: ({ as, children, color, size, disabled, rounded, targetUrl, id, newTab, action, className, square, }: ButtonProps & ButtonVariants) => import('react').DetailedReactHTMLElement<{
20
20
  className: string;
21
21
  href: string;
22
22
  id: string | undefined;
@@ -16,7 +16,8 @@ const Button = ({
16
16
  id,
17
17
  newTab = false,
18
18
  action,
19
- className
19
+ className,
20
+ square
20
21
  }) => {
21
22
  const { setTargetLinkUrl, setOpenModal } = useGlobalContext();
22
23
  const onClick = (e) => {
@@ -33,7 +34,10 @@ const Button = ({
33
34
  return createElement(
34
35
  as,
35
36
  {
36
- className: clsx(button({ color, size, disabled, rounded }), className),
37
+ className: clsx(
38
+ button({ color, size, disabled, rounded, square }),
39
+ className
40
+ ),
37
41
  href: findMoreAxosDomains(targetUrl),
38
42
  id,
39
43
  target: newTab ? "_blank" : "_self",
@@ -49,6 +49,7 @@ import "../ExecutiveBio/ExecutiveBio.css.js";
49
49
  import "../FaqAccordion/index.js";
50
50
  import "../FooterDisclosure/FooterDisclosure.css.js";
51
51
  /* empty css */
52
+ import "../HeroBanner/SelectionBanner.css.js";
52
53
  import "../SetContainer/SetContainer.css.js";
53
54
  import "../ImageBillboard/ImageBillboard.css.js";
54
55
  import "../LandingPageHeader/LandingPageHeader.css.js";
@@ -12,11 +12,11 @@ import SvgQuoteIconYellow from "../icons/QuoteIconYellow.js";
12
12
  /* empty css */
13
13
  /* empty css */
14
14
  /* empty css */
15
+ import { getVariant } from "../utils/getVariant.js";
15
16
  import "../Accordion/Accordion.js";
16
17
  import "../Accordion/Accordion.css.js";
17
18
  import "../AlertBanner/AlertBanner.css.js";
18
19
  import "../Modal/contextApi/store.js";
19
- import { getVariant } from "../utils/getVariant.js";
20
20
  import clsx from "clsx";
21
21
  import React, { useEffect, Children, cloneElement } from "react";
22
22
  import "../Button/Button.css.js";
@@ -49,6 +49,7 @@ import "../ExecutiveBio/ExecutiveBio.css.js";
49
49
  import "../FaqAccordion/index.js";
50
50
  import "../FooterDisclosure/FooterDisclosure.css.js";
51
51
  /* empty css */
52
+ import "../HeroBanner/SelectionBanner.css.js";
52
53
  import "../SetContainer/SetContainer.css.js";
53
54
  import "../ImageBillboard/ImageBillboard.css.js";
54
55
  import "../LandingPageHeader/LandingPageHeader.css.js";
@@ -34,4 +34,8 @@ export interface ChevronProps extends PropsWithChildren {
34
34
  * Value that allow to go back in the previus page
35
35
  */
36
36
  goBack?: boolean;
37
+ /**
38
+ * URL for icon selection button
39
+ */
40
+ icon?: string;
37
41
  }
@@ -49,6 +49,7 @@ import "../ExecutiveBio/ExecutiveBio.css.js";
49
49
  import "../FaqAccordion/index.js";
50
50
  import "../FooterDisclosure/FooterDisclosure.css.js";
51
51
  /* empty css */
52
+ import "../HeroBanner/SelectionBanner.css.js";
52
53
  import "../SetContainer/SetContainer.css.js";
53
54
  import "../ImageBillboard/ImageBillboard.css.js";
54
55
  import "../LandingPageHeader/LandingPageHeader.css.js";
@@ -47,6 +47,7 @@ import "../../ExecutiveBio/ExecutiveBio.css.js";
47
47
  import "../../FaqAccordion/index.js";
48
48
  import "../../FooterDisclosure/FooterDisclosure.css.js";
49
49
  import { footer_section, footer_wrapper, ft_col, ft_col_header, ft_col_subheader, nested_grid, app_col, footer_mobile, ft_panel_group, ft_panel } from "./FooterSiteMap.css.js";
50
+ import "../../HeroBanner/SelectionBanner.css.js";
50
51
  import "../../SetContainer/SetContainer.css.js";
51
52
  import "../../ImageBillboard/ImageBillboard.css.js";
52
53
  import "../../LandingPageHeader/LandingPageHeader.css.js";
@@ -51,6 +51,7 @@ import "../ExecutiveBio/ExecutiveBio.css.js";
51
51
  import "../FaqAccordion/index.js";
52
52
  import "../FooterDisclosure/FooterDisclosure.css.js";
53
53
  /* empty css */
54
+ import "../HeroBanner/SelectionBanner.css.js";
54
55
  import "../SetContainer/SetContainer.css.js";
55
56
  import "../ImageBillboard/ImageBillboard.css.js";
56
57
  import "../LandingPageHeader/LandingPageHeader.css.js";
@@ -52,6 +52,7 @@ import "../ExecutiveBio/ExecutiveBio.css.js";
52
52
  import "../FaqAccordion/index.js";
53
53
  import "../FooterDisclosure/FooterDisclosure.css.js";
54
54
  /* empty css */
55
+ import "../HeroBanner/SelectionBanner.css.js";
55
56
  import "../SetContainer/SetContainer.css.js";
56
57
  import "../ImageBillboard/ImageBillboard.css.js";
57
58
  import "../LandingPageHeader/LandingPageHeader.css.js";
@@ -46,6 +46,7 @@ import "../ExecutiveBio/ExecutiveBio.css.js";
46
46
  import "../FaqAccordion/index.js";
47
47
  import "../FooterDisclosure/FooterDisclosure.css.js";
48
48
  /* empty css */
49
+ import "../HeroBanner/SelectionBanner.css.js";
49
50
  import "../SetContainer/SetContainer.css.js";
50
51
  import "../ImageBillboard/ImageBillboard.css.js";
51
52
  import "../LandingPageHeader/LandingPageHeader.css.js";
@@ -47,6 +47,7 @@ import "../ExecutiveBio/ExecutiveBio.css.js";
47
47
  import "../FaqAccordion/index.js";
48
48
  import "../FooterDisclosure/FooterDisclosure.css.js";
49
49
  /* empty css */
50
+ import "../HeroBanner/SelectionBanner.css.js";
50
51
  import "../SetContainer/SetContainer.css.js";
51
52
  import "../ImageBillboard/ImageBillboard.css.js";
52
53
  import "../LandingPageHeader/LandingPageHeader.css.js";
@@ -24,7 +24,7 @@ export declare const reversed: string;
24
24
  export declare const hero_text: string;
25
25
  export declare const hero_wrapper: string;
26
26
  export declare const hero_img: string;
27
- export declare const supertag: import('@vanilla-extract/recipes').RuntimeFn<{
27
+ export declare const heroSupertag: import('@vanilla-extract/recipes').RuntimeFn<{
28
28
  variant: {
29
29
  primary: {
30
30
  background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
@@ -1,3 +1,4 @@
1
+ /* empty css */
1
2
  /* empty css */
2
3
  /* empty css */
3
4
  /* empty css */
@@ -10,11 +11,12 @@ var reversed = "_1ye8k3f7";
10
11
  var hero_text = "_1ye8k3f8";
11
12
  var hero_wrapper = "_1ye8k3f9";
12
13
  var hero_img = "_1ye8k3fa";
13
- var supertag = createRuntimeFn({ defaultClassName: "_1ye8k3fb", variantClassNames: { variant: { primary: "_1ye8k3fc", secondary: "_1ye8k3fd", tertiary: "_1ye8k3fe", quaternary: "_1ye8k3ff" } }, defaultVariants: {}, compoundVariants: [] });
14
+ var heroSupertag = createRuntimeFn({ defaultClassName: "_1ye8k3fb", variantClassNames: { variant: { primary: "_1ye8k3fc", secondary: "_1ye8k3fd", tertiary: "_1ye8k3fe", quaternary: "_1ye8k3ff" } }, defaultVariants: {}, compoundVariants: [] });
14
15
  var headline_text = createRuntimeFn({ defaultClassName: "_1ye8k3fg", variantClassNames: { variant: { primary: "_1ye8k3fh", secondary: "_1ye8k3fi", tertiary: "_1ye8k3fj", quaternary: "_1ye8k3fk" } }, defaultVariants: {}, compoundVariants: [] });
15
16
  var hero_btns = "_1ye8k3fl";
16
17
  export {
17
18
  headline_text,
19
+ heroSupertag,
18
20
  hero_banner,
19
21
  hero_btns,
20
22
  hero_content,
@@ -22,6 +24,5 @@ export {
22
24
  hero_text,
23
25
  hero_wrapper,
24
26
  logout,
25
- reversed,
26
- supertag
27
+ reversed
27
28
  };
@@ -0,0 +1,3 @@
1
+ import { HeroBannerInterface } from './HeroBanner.interface';
2
+
3
+ export declare const HeroBanner: ({ id, eyebrow, headline, bodyCopy, callToActionRow, bannerType, image, imagePlacement, variant, selection, isSelectionBanner, }: HeroBannerInterface) => import("react/jsx-runtime").JSX.Element;
@@ -1,11 +1,23 @@
1
1
  import { ChevronProps } from '../Chevron/Chevron.interface';
2
2
  import { ReactNode } from 'react';
3
3
 
4
- export interface ImageInterface {
4
+ export interface HeroImageInterface {
5
5
  src: string;
6
6
  alt?: string;
7
7
  }
8
- export interface HeroBannerInterface {
8
+ export type HeroBannerWithImage = {
9
+ image?: HeroImageInterface;
10
+ imagePlacement?: "Right" | "Left";
11
+ };
12
+ export type HeroBannerWithSelection = {
13
+ isSelectionBanner?: boolean;
14
+ selection?: {
15
+ headline?: ReactNode;
16
+ bodyCopy?: ReactNode;
17
+ callToActionRow?: ChevronProps[];
18
+ };
19
+ };
20
+ export interface HeroBannerInterface extends HeroBannerWithImage, HeroBannerWithSelection {
9
21
  id?: string;
10
22
  bannerType?: "Hero" | "Logout";
11
23
  className?: string;
@@ -13,7 +25,5 @@ export interface HeroBannerInterface {
13
25
  eyebrow: string | ReactNode;
14
26
  headline: string | ReactNode;
15
27
  bodyCopy: string | ReactNode;
16
- image: ImageInterface;
17
- imagePlacement?: "Right" | "Left";
18
28
  callToActionRow?: ChevronProps[];
19
29
  }
@@ -0,0 +1,155 @@
1
+ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
+ import { Button } from "../Button/Button.js";
3
+ import "../Button/Button.css.js";
4
+ import "react";
5
+ import "react-use";
6
+ import { Chevron } from "../Chevron/index.js";
7
+ import { getVariant } from "../utils/getVariant.js";
8
+ import clsx from "clsx";
9
+ import { logout, hero_banner, hero_wrapper, hero_content, reversed, hero_text, heroSupertag, headline_text, hero_btns, hero_img } from "./HeroBanner.css.js";
10
+ import { selection_section, selection_section_bg, selection_section_content, selection_headline_text, selection_section_icon, selection_section_icon_img } from "./SelectionBanner.css.js";
11
+ const HeroBanner = ({
12
+ id,
13
+ eyebrow,
14
+ headline,
15
+ bodyCopy,
16
+ callToActionRow,
17
+ bannerType = "Hero",
18
+ image,
19
+ imagePlacement = "Right",
20
+ variant,
21
+ selection,
22
+ isSelectionBanner = false
23
+ }) => {
24
+ return /* @__PURE__ */ jsx(
25
+ "section",
26
+ {
27
+ id: `id_${id}`,
28
+ className: `${bannerType !== "Hero" ? logout : ""} ${hero_banner({ variant: getVariant(variant) })}`,
29
+ children: /* @__PURE__ */ jsx("div", { className: `${hero_wrapper} containment`, children: /* @__PURE__ */ jsxs(
30
+ "div",
31
+ {
32
+ className: `${hero_content} ${imagePlacement !== "Right" ? reversed : ""}`,
33
+ children: [
34
+ /* @__PURE__ */ jsxs("div", { className: hero_text, children: [
35
+ eyebrow && /* @__PURE__ */ jsx("h1", { className: heroSupertag({ variant: getVariant(variant) }), children: eyebrow }),
36
+ eyebrow ? /* @__PURE__ */ jsx("h2", { className: headline_text({ variant: getVariant(variant) }), children: headline }) : /* @__PURE__ */ jsx("h1", { className: headline_text({ variant: getVariant(variant) }), children: headline }),
37
+ /* @__PURE__ */ jsx(Fragment, { children: bodyCopy }),
38
+ callToActionRow && callToActionRow.length > 0 && /* @__PURE__ */ jsx("div", { className: `${hero_btns}`, children: callToActionRow.map(
39
+ ({
40
+ id: id2,
41
+ variant: variant2,
42
+ displayText,
43
+ targetUrl,
44
+ type
45
+ }) => type === "Button" ? /* @__PURE__ */ jsx(
46
+ Button,
47
+ {
48
+ targetUrl,
49
+ color: getVariant(variant2),
50
+ size: "large",
51
+ rounded: "medium",
52
+ children: displayText
53
+ },
54
+ id2
55
+ ) : /* @__PURE__ */ jsx(
56
+ Chevron,
57
+ {
58
+ targetUrl,
59
+ variant: getVariant(variant2),
60
+ goBack: bannerType == "Logout",
61
+ children: displayText
62
+ },
63
+ id2
64
+ )
65
+ ) })
66
+ ] }),
67
+ !isSelectionBanner ? /* @__PURE__ */ jsx("div", { className: hero_img, role: "presentation", children: /* @__PURE__ */ jsx(
68
+ "img",
69
+ {
70
+ decoding: "async",
71
+ "data-nimg": 1,
72
+ className: "img_fluid",
73
+ style: { color: "transparent" },
74
+ src: `${image?.src}?fm=webp&w=604&h=480&fit=fill`,
75
+ alt: image?.alt
76
+ }
77
+ ) }) : /* @__PURE__ */ jsxs("div", { className: clsx(selection_section), children: [
78
+ /* @__PURE__ */ jsx("div", { className: clsx(selection_section_bg) }),
79
+ /* @__PURE__ */ jsxs("div", { className: clsx(selection_section_content), children: [
80
+ /* @__PURE__ */ jsxs("div", { children: [
81
+ /* @__PURE__ */ jsx(
82
+ "h3",
83
+ {
84
+ className: clsx(
85
+ "header_2",
86
+ selection_headline_text({ variant: getVariant(variant) })
87
+ ),
88
+ children: selection?.headline
89
+ }
90
+ ),
91
+ /* @__PURE__ */ jsx("div", { children: selection?.bodyCopy })
92
+ ] }),
93
+ selection?.callToActionRow && selection?.callToActionRow.length > 0 && /* @__PURE__ */ jsx("div", { className: `${hero_btns}`, children: selection?.callToActionRow.map(
94
+ ({
95
+ id: id2,
96
+ icon,
97
+ displayText,
98
+ targetUrl,
99
+ type
100
+ }) => type === "Button" ? /* @__PURE__ */ jsxs(
101
+ Button,
102
+ {
103
+ targetUrl,
104
+ color: "tertiary",
105
+ size: "large",
106
+ rounded: "medium",
107
+ square: true,
108
+ children: [
109
+ /* @__PURE__ */ jsx("div", { className: clsx(selection_section_icon), children: /* @__PURE__ */ jsx(
110
+ "img",
111
+ {
112
+ alt: "",
113
+ src: icon,
114
+ className: clsx(selection_section_icon_img)
115
+ }
116
+ ) }),
117
+ displayText
118
+ ]
119
+ },
120
+ id2
121
+ ) : /* @__PURE__ */ jsxs(
122
+ Button,
123
+ {
124
+ targetUrl,
125
+ color: "tertiary",
126
+ rounded: "medium",
127
+ size: "large",
128
+ square: true,
129
+ children: [
130
+ /* @__PURE__ */ jsx("div", { className: clsx(selection_section_icon), children: /* @__PURE__ */ jsx(
131
+ "img",
132
+ {
133
+ alt: "",
134
+ src: icon,
135
+ className: clsx(selection_section_icon_img)
136
+ }
137
+ ) }),
138
+ displayText
139
+ ]
140
+ },
141
+ id2
142
+ )
143
+ ) })
144
+ ] })
145
+ ] })
146
+ ]
147
+ }
148
+ ) })
149
+ },
150
+ id
151
+ );
152
+ };
153
+ export {
154
+ HeroBanner
155
+ };
@@ -0,0 +1,24 @@
1
+ export declare const selection_headline_text: import('@vanilla-extract/recipes').RuntimeFn<{
2
+ variant: {
3
+ primary: {
4
+ color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
5
+ };
6
+ secondary: {
7
+ background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
8
+ backgroundClip: "text";
9
+ WebkitTextFillColor: "transparent";
10
+ textShadow: "0px 0px #00000000";
11
+ };
12
+ tertiary: {
13
+ color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
14
+ };
15
+ quaternary: {
16
+ color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
17
+ };
18
+ };
19
+ }>;
20
+ export declare const selection_section: string;
21
+ export declare const selection_section_bg: string;
22
+ export declare const selection_section_content: string;
23
+ export declare const selection_section_icon: string;
24
+ export declare const selection_section_icon_img: string;
@@ -0,0 +1,19 @@
1
+ /* empty css */
2
+ /* empty css */
3
+ /* empty css */
4
+ /* empty css */
5
+ import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
6
+ var selection_headline_text = createRuntimeFn({ defaultClassName: "_7etqoq0", variantClassNames: { variant: { primary: "_7etqoq1", secondary: "_7etqoq2", tertiary: "_7etqoq3", quaternary: "_7etqoq4" } }, defaultVariants: {}, compoundVariants: [] });
7
+ var selection_section = "_7etqoq5";
8
+ var selection_section_bg = "_7etqoq6";
9
+ var selection_section_content = "_7etqoq7";
10
+ var selection_section_icon = "_7etqoq8";
11
+ var selection_section_icon_img = "_7etqoq9";
12
+ export {
13
+ selection_headline_text,
14
+ selection_section,
15
+ selection_section_bg,
16
+ selection_section_content,
17
+ selection_section_icon,
18
+ selection_section_icon_img
19
+ };
@@ -1,3 +1,4 @@
1
- import { HeroBannerInterface } from './HeroBanner.interface';
2
-
3
- export declare const HeroBanner: ({ id, eyebrow, headline, bodyCopy, callToActionRow, bannerType, image, imagePlacement, variant, }: HeroBannerInterface) => import("react/jsx-runtime").JSX.Element;
1
+ export * from './HeroBanner';
2
+ export * from './HeroBanner.css';
3
+ export * from './HeroBanner.interface';
4
+ export * from './SelectionBanner.css';
@@ -1,83 +1,22 @@
1
- import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
- import { Button } from "../Button/Button.js";
3
- import "../Button/Button.css.js";
4
- import "react";
5
- import "react-use";
6
- import { Chevron } from "../Chevron/index.js";
7
- import { getVariant } from "../utils/getVariant.js";
8
- import { logout, hero_banner, hero_wrapper, hero_content, reversed, hero_text, supertag, headline_text, hero_btns, hero_img } from "./HeroBanner.css.js";
9
- const HeroBanner = ({
10
- id,
11
- eyebrow,
12
- headline,
13
- bodyCopy,
14
- callToActionRow,
15
- bannerType = "Hero",
16
- image,
17
- imagePlacement = "Right",
18
- variant
19
- }) => {
20
- return /* @__PURE__ */ jsx(
21
- "section",
22
- {
23
- id: `id_${id}`,
24
- className: `${bannerType !== "Hero" ? logout : ""} ${hero_banner({ variant: getVariant(variant) })}`,
25
- children: /* @__PURE__ */ jsx("div", { className: `${hero_wrapper} containment`, children: /* @__PURE__ */ jsxs(
26
- "div",
27
- {
28
- className: `${hero_content} ${imagePlacement !== "Right" ? reversed : ""}`,
29
- children: [
30
- /* @__PURE__ */ jsxs("div", { className: hero_text, children: [
31
- eyebrow && /* @__PURE__ */ jsx("h1", { className: supertag({ variant: getVariant(variant) }), children: eyebrow }),
32
- eyebrow ? /* @__PURE__ */ jsx("h2", { className: headline_text({ variant: getVariant(variant) }), children: headline }) : /* @__PURE__ */ jsx("h1", { className: headline_text({ variant: getVariant(variant) }), children: headline }),
33
- /* @__PURE__ */ jsx(Fragment, { children: bodyCopy }),
34
- callToActionRow && callToActionRow.length > 0 && /* @__PURE__ */ jsx("div", { className: `${hero_btns}`, children: callToActionRow.map(
35
- ({
36
- id: id2,
37
- variant: variant2,
38
- displayText,
39
- targetUrl,
40
- type
41
- }) => type === "Button" ? /* @__PURE__ */ jsx(
42
- Button,
43
- {
44
- targetUrl,
45
- color: getVariant(variant2),
46
- size: "large",
47
- rounded: "medium",
48
- children: displayText
49
- },
50
- id2
51
- ) : /* @__PURE__ */ jsx(
52
- Chevron,
53
- {
54
- targetUrl,
55
- variant: getVariant(variant2),
56
- goBack: bannerType == "Logout",
57
- children: displayText
58
- },
59
- id2
60
- )
61
- ) })
62
- ] }),
63
- /* @__PURE__ */ jsx("div", { className: hero_img, role: "presentation", children: /* @__PURE__ */ jsx(
64
- "img",
65
- {
66
- decoding: "async",
67
- "data-nimg": 1,
68
- className: "img_fluid",
69
- style: { color: "transparent" },
70
- src: `${image.src}?fm=webp&w=604&h=480&fit=fill`,
71
- alt: image.alt
72
- }
73
- ) })
74
- ]
75
- }
76
- ) })
77
- },
78
- id
79
- );
80
- };
1
+ import { HeroBanner } from "./HeroBanner.js";
2
+ import { headline_text, heroSupertag, hero_banner, hero_btns, hero_content, hero_img, hero_text, hero_wrapper, logout, reversed } from "./HeroBanner.css.js";
3
+ import { selection_headline_text, selection_section, selection_section_bg, selection_section_content, selection_section_icon, selection_section_icon_img } from "./SelectionBanner.css.js";
81
4
  export {
82
- HeroBanner
5
+ HeroBanner,
6
+ headline_text,
7
+ heroSupertag,
8
+ hero_banner,
9
+ hero_btns,
10
+ hero_content,
11
+ hero_img,
12
+ hero_text,
13
+ hero_wrapper,
14
+ logout,
15
+ reversed,
16
+ selection_headline_text,
17
+ selection_section,
18
+ selection_section_bg,
19
+ selection_section_content,
20
+ selection_section_icon,
21
+ selection_section_icon_img
83
22
  };
@@ -49,6 +49,7 @@ import "../ExecutiveBio/ExecutiveBio.css.js";
49
49
  import "../FaqAccordion/index.js";
50
50
  import "../FooterDisclosure/FooterDisclosure.css.js";
51
51
  /* empty css */
52
+ import "../HeroBanner/SelectionBanner.css.js";
52
53
  import "../SetContainer/SetContainer.css.js";
53
54
  import "../ImageBillboard/ImageBillboard.css.js";
54
55
  import "../LandingPageHeader/LandingPageHeader.css.js";
@@ -46,6 +46,7 @@ import "../ExecutiveBio/ExecutiveBio.css.js";
46
46
  import "../FaqAccordion/index.js";
47
47
  import "../FooterDisclosure/FooterDisclosure.css.js";
48
48
  /* empty css */
49
+ import "../HeroBanner/SelectionBanner.css.js";
49
50
  import { imageLinkContainer } from "../SetContainer/SetContainer.css.js";
50
51
  import "../ImageBillboard/ImageBillboard.css.js";
51
52
  import "../LandingPageHeader/LandingPageHeader.css.js";
@@ -8,8 +8,8 @@ import "../icons/CheckIcon/CheckIcon.css.js";
8
8
  /* empty css */
9
9
  /* empty css */
10
10
  /* empty css */
11
- import { Chevron } from "../Chevron/index.js";
12
11
  import { getVariant } from "../utils/getVariant.js";
12
+ import { Chevron } from "../Chevron/index.js";
13
13
  import "clsx";
14
14
  import { Button } from "../Button/Button.js";
15
15
  import "../Button/Button.css.js";
@@ -49,6 +49,7 @@ import "../ExecutiveBio/ExecutiveBio.css.js";
49
49
  import "../FaqAccordion/index.js";
50
50
  import "../FooterDisclosure/FooterDisclosure.css.js";
51
51
  /* empty css */
52
+ import "../HeroBanner/SelectionBanner.css.js";
52
53
  import "../ImageBillboard/ImageBillboard.css.js";
53
54
  import ImageLink from "./ImageLink.js";
54
55
  import "../LandingPageHeader/LandingPageHeader.css.js";
@@ -46,6 +46,7 @@ import "../ExecutiveBio/ExecutiveBio.css.js";
46
46
  import "../FaqAccordion/index.js";
47
47
  import "../FooterDisclosure/FooterDisclosure.css.js";
48
48
  /* empty css */
49
+ import "../HeroBanner/SelectionBanner.css.js";
49
50
  import "../SetContainer/SetContainer.css.js";
50
51
  import "../ImageBillboard/ImageBillboard.css.js";
51
52
  import { ImageLinkSet } from "./ImageLinkSet.js";