@axos-web-dev/shared-components 0.0.61 → 0.0.63

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 (54) hide show
  1. package/dist/Button/Button.css.d.ts +27 -0
  2. package/dist/Button/Button.css.js +1 -1
  3. package/dist/Button/Button.d.ts +1 -1
  4. package/dist/Button/Button.js +6 -2
  5. package/dist/Calculators/Calculator.d.ts +13 -0
  6. package/dist/Calculators/Calculator.js +120 -0
  7. package/dist/Calculators/calculator.css.d.ts +42 -0
  8. package/dist/Calculators/calculator.css.js +11 -0
  9. package/dist/Calculators/calculators.d.ts +7 -0
  10. package/dist/Calculators/calculators.js +83 -0
  11. package/dist/Calculators/index.d.ts +2 -0
  12. package/dist/Calculators/index.js +7 -0
  13. package/dist/Carousel/index.js +13 -10
  14. package/dist/Chevron/Chevron.interface.d.ts +4 -0
  15. package/dist/Chevron/index.js +14 -11
  16. package/dist/ExecutiveBio/ExecutiveBio.css.d.ts +24 -128
  17. package/dist/FooterSiteMap/AxosBank/FooterSiteMap.js +14 -11
  18. package/dist/Forms/ContactUsBusiness.js +8 -5
  19. package/dist/Forms/EmailOnly.js +9 -6
  20. package/dist/Forms/RenderForm.js +4 -1
  21. package/dist/Forms/SuccesForm.js +4 -1
  22. package/dist/HeroBanner/HeroBanner.css.d.ts +1 -1
  23. package/dist/HeroBanner/HeroBanner.css.js +4 -3
  24. package/dist/HeroBanner/HeroBanner.d.ts +3 -0
  25. package/dist/HeroBanner/HeroBanner.interface.d.ts +14 -4
  26. package/dist/HeroBanner/HeroBanner.js +155 -0
  27. package/dist/HeroBanner/SelectionBanner.css.d.ts +24 -0
  28. package/dist/HeroBanner/SelectionBanner.css.js +19 -0
  29. package/dist/HeroBanner/index.d.ts +4 -3
  30. package/dist/HeroBanner/index.js +20 -81
  31. package/dist/Hyperlink/index.js +14 -11
  32. package/dist/ImageLink/ImageLink.js +14 -11
  33. package/dist/ImageLink/ImageLinkSet.js +14 -11
  34. package/dist/ImageLink/index.js +14 -11
  35. package/dist/Modal/Modal.js +15 -12
  36. package/dist/NavigationMenu/AxosAdvisor/NavBar.module.js +53 -53
  37. package/dist/SetContainer/SetContainer.js +14 -11
  38. package/dist/StepItem/StepItem.d.ts +1 -0
  39. package/dist/StepItem/StepItem.js +2 -2
  40. package/dist/StepItemSet/StepItemSet.css.d.ts +30 -2
  41. package/dist/StepItemSet/StepItemSet.js +2 -1
  42. package/dist/assets/Button/Button.css +33 -8
  43. package/dist/assets/Calculators/calculator.css +47 -0
  44. package/dist/assets/ExecutiveBio/ExecutiveBio.css +28 -100
  45. package/dist/assets/HeroBanner/HeroBanner.css +5 -0
  46. package/dist/assets/HeroBanner/SelectionBanner.css +83 -0
  47. package/dist/assets/NavigationMenu/AxosAdvisor/NavBar.css.css +116 -115
  48. package/dist/assets/StepItem/StepItem.css +2 -1
  49. package/dist/assets/StepItemSet/StepItemSet.css +15 -2
  50. package/dist/assets/TopicalNavItem/TopicalNavItem.css +1 -1
  51. package/dist/assets/themes/axos.css +1 -1
  52. package/dist/main.d.ts +2 -1
  53. package/dist/main.js +26 -3
  54. package/package.json +4 -1
@@ -38,96 +38,48 @@ export declare const item_bio: import('@vanilla-extract/recipes').RuntimeFn<{
38
38
  export declare const headline_setting: import('@vanilla-extract/recipes').RuntimeFn<{
39
39
  variant: {
40
40
  primary: {
41
- selectors: {
42
- [x: string]: {
43
- color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
44
- };
45
- };
41
+ color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
46
42
  };
47
43
  secondary: {
48
- selectors: {
49
- [x: string]: {
50
- color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
51
- };
52
- };
44
+ color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
53
45
  };
54
46
  tertiary: {
55
- selectors: {
56
- [x: string]: {
57
- color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
58
- };
59
- };
47
+ color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
60
48
  };
61
49
  quaternary: {
62
- selectors: {
63
- [x: string]: {
64
- color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
65
- };
66
- };
50
+ color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
67
51
  };
68
52
  };
69
53
  }>;
70
54
  export declare const job_title: import('@vanilla-extract/recipes').RuntimeFn<{
71
55
  variant: {
72
56
  primary: {
73
- selectors: {
74
- [x: string]: {
75
- color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
76
- };
77
- };
57
+ color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
78
58
  };
79
59
  secondary: {
80
- selectors: {
81
- [x: string]: {
82
- color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
83
- };
84
- };
60
+ color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
85
61
  };
86
62
  tertiary: {
87
- selectors: {
88
- [x: string]: {
89
- color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
90
- };
91
- };
63
+ color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
92
64
  };
93
65
  quaternary: {
94
- selectors: {
95
- [x: string]: {
96
- color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
97
- };
98
- };
66
+ color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
99
67
  };
100
68
  };
101
69
  }>;
102
70
  export declare const svg_icon: import('@vanilla-extract/recipes').RuntimeFn<{
103
71
  variant: {
104
72
  primary: {
105
- selectors: {
106
- [x: string]: {
107
- fill: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
108
- };
109
- };
73
+ fill: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
110
74
  };
111
75
  secondary: {
112
- selectors: {
113
- [x: string]: {
114
- fill: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
115
- };
116
- };
76
+ fill: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
117
77
  };
118
78
  tertiary: {
119
- selectors: {
120
- [x: string]: {
121
- fill: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
122
- };
123
- };
79
+ fill: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
124
80
  };
125
81
  quaternary: {
126
- selectors: {
127
- [x: string]: {
128
- fill: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
129
- };
130
- };
82
+ fill: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
131
83
  };
132
84
  };
133
85
  }>;
@@ -138,32 +90,16 @@ export declare const copy: string;
138
90
  export declare const contact_entry: import('@vanilla-extract/recipes').RuntimeFn<{
139
91
  variant: {
140
92
  primary: {
141
- selectors: {
142
- [x: string]: {
143
- color: "#0062B3";
144
- };
145
- };
93
+ color: "#0062B3";
146
94
  };
147
95
  secondary: {
148
- selectors: {
149
- [x: string]: {
150
- color: "#0062B3";
151
- };
152
- };
96
+ color: "#0062B3";
153
97
  };
154
98
  tertiary: {
155
- selectors: {
156
- [x: string]: {
157
- color: "#fff";
158
- };
159
- };
99
+ color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
160
100
  };
161
101
  quaternary: {
162
- selectors: {
163
- [x: string]: {
164
- color: "#FAA74A";
165
- };
166
- };
102
+ color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
167
103
  };
168
104
  };
169
105
  }>;
@@ -178,72 +114,32 @@ export declare const bio_section_text: string;
178
114
  export declare const section_theme: import('@vanilla-extract/recipes').RuntimeFn<{
179
115
  variant: {
180
116
  primary: {
181
- selectors: {
182
- [x: string]: {
183
- background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
184
- };
185
- };
117
+ background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
186
118
  };
187
119
  secondary: {
188
- selectors: {
189
- [x: string]: {
190
- background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
191
- };
192
- };
120
+ background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
193
121
  };
194
122
  tertiary: {
195
- selectors: {
196
- [x: string]: {
197
- background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
198
- } | {
199
- background: "#1E262F";
200
- };
201
- };
123
+ background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
202
124
  };
203
125
  quaternary: {
204
- selectors: {
205
- [x: string]: {
206
- background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
207
- } | {
208
- background: "#1E262F";
209
- };
210
- };
126
+ background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
211
127
  };
212
128
  };
213
129
  }>;
214
130
  export declare const header_theme: import('@vanilla-extract/recipes').RuntimeFn<{
215
131
  variant: {
216
132
  primary: {
217
- selectors: {
218
- [x: string]: {
219
- color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
220
- };
221
- };
133
+ color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
222
134
  };
223
135
  secondary: {
224
- selectors: {
225
- [x: string]: {
226
- color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
227
- };
228
- };
136
+ color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
229
137
  };
230
138
  tertiary: {
231
- selectors: {
232
- [x: string]: {
233
- color: "#1E3860";
234
- } | {
235
- color: "#1E262F";
236
- };
237
- };
139
+ color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
238
140
  };
239
141
  quaternary: {
240
- selectors: {
241
- [x: string]: {
242
- color: "#1E3860";
243
- } | {
244
- color: "#1E262F";
245
- };
246
- };
142
+ color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
247
143
  };
248
144
  };
249
145
  }>;
@@ -18,21 +18,11 @@ import "react-use";
18
18
  /* empty css */
19
19
  import "../../Article/Article.css.js";
20
20
  import "../../ArticlesSet/ArticlesSet.css.js";
21
+ /* empty css */
21
22
  /* empty css */
22
23
  /* empty css */
23
- /* empty css */
24
24
  import "../../IconBillboard/IconBillboard.css.js";
25
25
  /* empty css */
26
- /* empty css */
27
- import "../../Carousel/index.js";
28
- /* empty css */
29
- import "../../HeroBanner/HeroBanner.css.js";
30
- import "../../ContentBanner/ContentBanner.css.js";
31
- /* empty css */
32
- import "../../ExecutiveBio/ExecutiveBio.css.js";
33
- import "../../FaqAccordion/index.js";
34
- import "../../FooterDisclosure/FooterDisclosure.css.js";
35
- 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";
36
26
  import "@hookform/resolvers/zod";
37
27
  import "../../Input/Checkbox.js";
38
28
  import "../../Input/CurrencyInput.js";
@@ -45,6 +35,19 @@ import "../../Input/InputTextArea.js";
45
35
  import "react-hook-form";
46
36
  import "../../Forms/Forms.css.js";
47
37
  import "../../Forms/SalesforceFieldsForm.js";
38
+ import "iframe-resizer";
39
+ import "../../Calculators/calculator.css.js";
40
+ /* empty css */
41
+ import "../../Carousel/index.js";
42
+ /* empty css */
43
+ import "../../HeroBanner/HeroBanner.css.js";
44
+ import "../../ContentBanner/ContentBanner.css.js";
45
+ /* empty css */
46
+ import "../../ExecutiveBio/ExecutiveBio.css.js";
47
+ import "../../FaqAccordion/index.js";
48
+ import "../../FooterDisclosure/FooterDisclosure.css.js";
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";
48
51
  import "../../SetContainer/SetContainer.css.js";
49
52
  import "../../ImageBillboard/ImageBillboard.css.js";
50
53
  import "../../LandingPageHeader/LandingPageHeader.css.js";
@@ -30,11 +30,17 @@ import "react-use";
30
30
  /* empty css */
31
31
  import "../Article/Article.css.js";
32
32
  import "../ArticlesSet/ArticlesSet.css.js";
33
- /* empty css */
34
33
  /* empty css */
34
+ /* empty css */
35
35
  import "../IconBillboard/IconBillboard.css.js";
36
36
  /* empty css */
37
37
  import clsx from "clsx";
38
+ import { useForm, FormProvider } from "react-hook-form";
39
+ import { z } from "zod";
40
+ import { formContainer, iconForm, headerContainer, headerForm, form, descriptionField, formWrapper, disclosureForm, actions } from "./Forms.css.js";
41
+ import { SalesforceSchema } from "./SalesforceFieldsForm.js";
42
+ import "iframe-resizer";
43
+ import "../Calculators/calculator.css.js";
38
44
  /* empty css */
39
45
  import "../Carousel/index.js";
40
46
  /* empty css */
@@ -45,10 +51,7 @@ import "../ExecutiveBio/ExecutiveBio.css.js";
45
51
  import "../FaqAccordion/index.js";
46
52
  import "../FooterDisclosure/FooterDisclosure.css.js";
47
53
  /* empty css */
48
- import { useForm, FormProvider } from "react-hook-form";
49
- import { z } from "zod";
50
- import { formContainer, iconForm, headerContainer, headerForm, form, descriptionField, formWrapper, disclosureForm, actions } from "./Forms.css.js";
51
- import { SalesforceSchema } from "./SalesforceFieldsForm.js";
54
+ import "../HeroBanner/SelectionBanner.css.js";
52
55
  import "../SetContainer/SetContainer.css.js";
53
56
  import "../ImageBillboard/ImageBillboard.css.js";
54
57
  import "../LandingPageHeader/LandingPageHeader.css.js";
@@ -30,11 +30,18 @@ import "react-use";
30
30
  /* empty css */
31
31
  import "../Article/Article.css.js";
32
32
  import "../ArticlesSet/ArticlesSet.css.js";
33
- /* empty css */
34
33
  /* empty css */
34
+ /* empty css */
35
35
  import "../IconBillboard/IconBillboard.css.js";
36
36
  /* empty css */
37
+ import { associatedEmail } from "../utils/EverestValidity.js";
37
38
  import clsx from "clsx";
39
+ import { useForm, FormProvider } from "react-hook-form";
40
+ import { z } from "zod";
41
+ import { formContainer, iconForm, headerContainer, headerForm, form, descriptionField, formWrapper, disclosureForm, actions } from "./Forms.css.js";
42
+ import { SalesforceSchema } from "./SalesforceFieldsForm.js";
43
+ import "iframe-resizer";
44
+ import "../Calculators/calculator.css.js";
38
45
  /* empty css */
39
46
  import "../Carousel/index.js";
40
47
  /* empty css */
@@ -45,11 +52,7 @@ import "../ExecutiveBio/ExecutiveBio.css.js";
45
52
  import "../FaqAccordion/index.js";
46
53
  import "../FooterDisclosure/FooterDisclosure.css.js";
47
54
  /* empty css */
48
- import { associatedEmail } from "../utils/EverestValidity.js";
49
- import { useForm, FormProvider } from "react-hook-form";
50
- import { z } from "zod";
51
- import { formContainer, iconForm, headerContainer, headerForm, form, descriptionField, formWrapper, disclosureForm, actions } from "./Forms.css.js";
52
- import { SalesforceSchema } from "./SalesforceFieldsForm.js";
55
+ import "../HeroBanner/SelectionBanner.css.js";
53
56
  import "../SetContainer/SetContainer.css.js";
54
57
  import "../ImageBillboard/ImageBillboard.css.js";
55
58
  import "../LandingPageHeader/LandingPageHeader.css.js";
@@ -30,10 +30,12 @@ import "../AlertBanner/AlertBanner.css.js";
30
30
  /* empty css */
31
31
  import "../Article/Article.css.js";
32
32
  import "../ArticlesSet/ArticlesSet.css.js";
33
- /* empty css */
34
33
  /* empty css */
34
+ /* empty css */
35
35
  import "../IconBillboard/IconBillboard.css.js";
36
36
  /* empty css */
37
+ import "iframe-resizer";
38
+ import "../Calculators/calculator.css.js";
37
39
  /* empty css */
38
40
  import "../Carousel/index.js";
39
41
  /* empty css */
@@ -44,6 +46,7 @@ import "../ExecutiveBio/ExecutiveBio.css.js";
44
46
  import "../FaqAccordion/index.js";
45
47
  import "../FooterDisclosure/FooterDisclosure.css.js";
46
48
  /* empty css */
49
+ import "../HeroBanner/SelectionBanner.css.js";
47
50
  import "../SetContainer/SetContainer.css.js";
48
51
  import "../ImageBillboard/ImageBillboard.css.js";
49
52
  import "../LandingPageHeader/LandingPageHeader.css.js";
@@ -31,10 +31,12 @@ import "../AlertBanner/AlertBanner.css.js";
31
31
  /* empty css */
32
32
  import "../Article/Article.css.js";
33
33
  import "../ArticlesSet/ArticlesSet.css.js";
34
- /* empty css */
35
34
  /* empty css */
35
+ /* empty css */
36
36
  import "../IconBillboard/IconBillboard.css.js";
37
37
  /* empty css */
38
+ import "iframe-resizer";
39
+ import "../Calculators/calculator.css.js";
38
40
  /* empty css */
39
41
  import "../Carousel/index.js";
40
42
  /* empty css */
@@ -45,6 +47,7 @@ import "../ExecutiveBio/ExecutiveBio.css.js";
45
47
  import "../FaqAccordion/index.js";
46
48
  import "../FooterDisclosure/FooterDisclosure.css.js";
47
49
  /* empty css */
50
+ import "../HeroBanner/SelectionBanner.css.js";
48
51
  import "../SetContainer/SetContainer.css.js";
49
52
  import "../ImageBillboard/ImageBillboard.css.js";
50
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
+ };