@axos-web-dev/shared-components 1.0.100-dev.86-videoPoster.3 → 1.0.100-dev.87

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 (80) hide show
  1. package/dist/ATMLocator/ATMLocator.js +4 -4
  2. package/dist/Auth/ErrorAlert.js +4 -4
  3. package/dist/Button/Button.js +4 -4
  4. package/dist/Calculators/Calculator.js +4 -4
  5. package/dist/Calculators/MarginTradingCalculator/index.js +4 -4
  6. package/dist/Carousel/index.js +4 -4
  7. package/dist/Chatbot/AnimatedGradientBorder.css.d.ts +2 -0
  8. package/dist/Chatbot/AnimatedGradientBorder.css.js +7 -3
  9. package/dist/Chatbot/Bubble.css.js +2 -1
  10. package/dist/Chatbot/Bubble.d.ts +2 -1
  11. package/dist/Chatbot/Bubble.js +102 -92
  12. package/dist/Chatbot/ChatWindow.css.d.ts +4 -0
  13. package/dist/Chatbot/ChatWindow.css.js +8 -0
  14. package/dist/Chatbot/ChatWindow.js +8 -2
  15. package/dist/Chatbot/Chatbot.d.ts +1 -1
  16. package/dist/Chatbot/Chatbot.js +54 -28
  17. package/dist/Chatbot/ChatbotMessage.d.ts +1 -0
  18. package/dist/Chatbot/ChatbotMessage.js +47 -4
  19. package/dist/Chatbot/index.js +5 -1
  20. package/dist/Chevron/index.js +4 -4
  21. package/dist/Comparison/Comparison.js +4 -4
  22. package/dist/ExecutiveBio/ExecutiveBio.js +4 -4
  23. package/dist/FaqAccordion/index.js +4 -4
  24. package/dist/FooterSiteMap/AxosBank/FooterSiteMap.js +4 -4
  25. package/dist/Forms/ApplyNow.js +4 -4
  26. package/dist/Forms/ContactUsBusiness.js +4 -4
  27. package/dist/Forms/ContactUsBusinessNameEmail.js +4 -4
  28. package/dist/Forms/ContactUsNMLSId.js +4 -4
  29. package/dist/Forms/CpraRequest.js +4 -4
  30. package/dist/Forms/CraPublicFile.js +4 -4
  31. package/dist/Forms/EmailOnly.js +4 -4
  32. package/dist/Forms/EmailUs.js +40 -34
  33. package/dist/Forms/Forms.css.d.ts +3 -0
  34. package/dist/Forms/Forms.css.js +39 -39
  35. package/dist/Forms/MortgageRate/MortgageRateForm.js +4 -4
  36. package/dist/Forms/MortgageRate/MortgageRateWatch.js +4 -4
  37. package/dist/Forms/MortgageWarehouseLending.js +4 -4
  38. package/dist/Forms/SuccesForm.js +4 -4
  39. package/dist/HeroBanner/HeroBanner.css.js +1 -2
  40. package/dist/HeroBanner/HeroBanner.d.ts +1 -1
  41. package/dist/HeroBanner/HeroBanner.interface.d.ts +1 -4
  42. package/dist/HeroBanner/HeroBanner.js +153 -17
  43. package/dist/HeroBanner/LargeBanner.css.d.ts +0 -110
  44. package/dist/HeroBanner/LargeBanner.css.js +8 -22
  45. package/dist/Hyperlink/index.js +4 -4
  46. package/dist/ImageLink/ImageLink.js +3 -3
  47. package/dist/ImageLink/ImageLinkSet.js +3 -3
  48. package/dist/ImageLink/index.js +4 -4
  49. package/dist/Insight/Featured/CategorySelector.js +4 -4
  50. package/dist/Insight/Featured/Featured.js +4 -4
  51. package/dist/Insight/Featured/Header.js +4 -4
  52. package/dist/Modal/Modal.js +4 -4
  53. package/dist/NavigationMenu/AxosALTS/index.js +4 -4
  54. package/dist/NavigationMenu/AxosBank/MobileMenu/MobileMenu.js +4 -4
  55. package/dist/NavigationMenu/AxosBank/SubNavBar.js +4 -4
  56. package/dist/NavigationMenu/AxosBank/index.js +4 -4
  57. package/dist/NavigationMenu/LaVictoire/index.js +4 -4
  58. package/dist/NavigationMenu/Navbar.js +4 -4
  59. package/dist/NavigationMenu/SignInNavButton.js +4 -4
  60. package/dist/SetContainer/SetContainer.js +3 -3
  61. package/dist/SocialMediaBar/iconsRepository.js +4 -4
  62. package/dist/VideoTile/VideoTile.js +4 -4
  63. package/dist/VideoWrapper/index.js +4 -4
  64. package/dist/assets/Chatbot/AnimatedGradientBorder.css +63 -7
  65. package/dist/assets/Chatbot/Bubble.css +19 -6
  66. package/dist/assets/Chatbot/ChatWindow.css +28 -2
  67. package/dist/assets/Forms/Forms.css +94 -91
  68. package/dist/assets/HeroBanner/HeroBanner.css +0 -4
  69. package/dist/assets/HeroBanner/LargeBanner.css +59 -126
  70. package/dist/assets/globals.css +6 -6
  71. package/dist/assets/notification.mp3.js +4 -0
  72. package/dist/main.js +5 -1
  73. package/dist/utils/variant.types.d.ts +0 -1
  74. package/package.json +1 -1
  75. package/dist/HeroBanner/HeroVideoPoster.d.ts +0 -5
  76. package/dist/HeroBanner/HeroVideoPoster.js +0 -24
  77. package/dist/HeroBanner/LargeHeroBanner.d.ts +0 -5
  78. package/dist/HeroBanner/LargeHeroBanner.js +0 -223
  79. package/dist/utils/getPosition.d.ts +0 -1
  80. package/dist/utils/getPosition.js +0 -17
@@ -1,223 +0,0 @@
1
- import { jsxs, jsx, Fragment } from "react/jsx-runtime";
2
- import clsx from "clsx";
3
- import Image from "next/image.js";
4
- import { Button } from "../Button/Button.js";
5
- import "../Button/Button.css.js";
6
- import "react";
7
- import "react-use";
8
- import { Chevron } from "../Chevron/index.js";
9
- import "../icons/ArrowIcon/ArrowIcon.css.js";
10
- import "../icons/CheckIcon/CheckIcon.css.js";
11
- import SvgCheckIcon from "../icons/CheckIcon/index.js";
12
- import '../assets/icons/FollowIcon/FollowIcon.css';import '../assets/icons/DownloadIcon/DownloadIcon.css';import '../assets/themes/victorie.css';import '../assets/themes/ufb.css';import '../assets/themes/premier.css';import '../assets/themes/axos.css';/* empty css */
13
- /* empty css */
14
- /* empty css */
15
- /* empty css */
16
- /* empty css */
17
- /* empty css */
18
- import { getVariant } from "../utils/getVariant.js";
19
- import { HeroVideoPoster } from "./HeroVideoPoster.js";
20
- import { getPosition } from "../utils/getPosition.js";
21
- import { hero_wrapper, hero_bullet_item, hero_sub_bullets, hero_btns, img_contents, reversed_lg_image, reversed } from "./HeroBanner.css.js";
22
- import { lg_hero_container, content_display_lg, lg_hero_eyebrow, lg_headline_text, lg_hero_text, placement, lg_hero_content_mobile, lg_hero_sizing, lg_hero_img, lg_hero_content, video_wrapper, lg_hero_banner, video_bg } from "./LargeBanner.css.js";
23
- const LargeHeroBanner = ({
24
- id,
25
- eyebrow,
26
- headline,
27
- bodyCopy,
28
- bullets,
29
- callToActionRow,
30
- image,
31
- imagePlacement = "Right",
32
- variant,
33
- video,
34
- bannerType,
35
- videoTextPosition = "default"
36
- }) => {
37
- const textPosition = getPosition(videoTextPosition);
38
- return /* @__PURE__ */ jsxs(
39
- "section",
40
- {
41
- className: clsx(
42
- lg_hero_banner({ variant: getVariant(variant) }),
43
- bannerType === "Video Poster" ? video_bg : ""
44
- ),
45
- id,
46
- children: [
47
- /* @__PURE__ */ jsx("div", { className: `${hero_wrapper} containment ${lg_hero_container}`, children: /* @__PURE__ */ jsxs(
48
- "div",
49
- {
50
- className: clsx(
51
- lg_hero_content,
52
- imagePlacement !== "Right" ? reversed : "",
53
- "flex",
54
- "between",
55
- "middle"
56
- ),
57
- style: {
58
- position: textPosition !== "default" ? "static" : "relative"
59
- },
60
- children: [
61
- /* @__PURE__ */ jsx(
62
- "div",
63
- {
64
- className: clsx(
65
- lg_hero_text({ variant: getVariant(variant) }),
66
- "rounded",
67
- textPosition !== "default" ? placement({ position: textPosition }) : "",
68
- lg_hero_content_mobile
69
- ),
70
- children: /* @__PURE__ */ jsxs("div", { className: `containment ${content_display_lg}`, children: [
71
- eyebrow && /* @__PURE__ */ jsx(
72
- "h1",
73
- {
74
- className: lg_hero_eyebrow({
75
- variant: getVariant(variant)
76
- }),
77
- children: eyebrow
78
- }
79
- ),
80
- eyebrow ? /* @__PURE__ */ jsx(
81
- "h2",
82
- {
83
- className: lg_headline_text({
84
- variant: getVariant(variant)
85
- }),
86
- children: headline
87
- }
88
- ) : /* @__PURE__ */ jsx(
89
- "h1",
90
- {
91
- className: lg_headline_text({
92
- variant: getVariant(variant)
93
- }),
94
- children: headline
95
- }
96
- ),
97
- /* @__PURE__ */ jsxs("div", { className: "push_up", children: [
98
- /* @__PURE__ */ jsx(Fragment, { children: bodyCopy }),
99
- bullets && bullets.length > 0 && /* @__PURE__ */ jsx("ul", { className: "list_unstyled mb_0 push_up_24", children: bullets.map(
100
- ({ id: id2, icon, copy, subBullet }) => !subBullet ? /* @__PURE__ */ jsxs(
101
- "li",
102
- {
103
- className: `list_item flex ${hero_bullet_item}`,
104
- children: [
105
- /* @__PURE__ */ jsx("div", { className: "img_item", children: getVariant(variant) ? /* @__PURE__ */ jsx(
106
- SvgCheckIcon,
107
- {
108
- variant: getVariant(variant) === "primary" || getVariant(variant) === "secondary" ? "secondary" : "primary"
109
- }
110
- ) : /* @__PURE__ */ jsx("img", { src: icon?.src, alt: icon?.altText }) }),
111
- /* @__PURE__ */ jsx("span", { children: copy })
112
- ]
113
- },
114
- id2
115
- ) : /* @__PURE__ */ jsx(
116
- "ul",
117
- {
118
- className: clsx(hero_sub_bullets, "mb_0", "push_up"),
119
- children: /* @__PURE__ */ jsxs("li", { className: "list_item flex", children: [
120
- /* @__PURE__ */ jsx("div", { className: "img_item", children: /* @__PURE__ */ jsx(
121
- "img",
122
- {
123
- style: { maxWidth: "max-content" },
124
- src: icon?.src,
125
- alt: icon?.altText
126
- }
127
- ) }),
128
- /* @__PURE__ */ jsx("span", { children: copy })
129
- ] })
130
- },
131
- id2
132
- )
133
- ) })
134
- ] }),
135
- callToActionRow && callToActionRow.length > 0 && /* @__PURE__ */ jsx("div", { className: `${hero_btns}`, children: callToActionRow.map(
136
- ({
137
- id: id2,
138
- variant: variant2,
139
- displayText,
140
- targetUrl,
141
- type,
142
- newTab
143
- }) => type === "Button" ? /* @__PURE__ */ jsx(
144
- Button,
145
- {
146
- targetUrl,
147
- color: getVariant(variant2),
148
- size: "large",
149
- rounded: "medium",
150
- newTab,
151
- children: displayText
152
- },
153
- id2
154
- ) : /* @__PURE__ */ jsx(
155
- Chevron,
156
- {
157
- targetUrl,
158
- variant: getVariant(variant2),
159
- newTab,
160
- children: displayText
161
- },
162
- id2
163
- )
164
- ) })
165
- ] })
166
- }
167
- ),
168
- bannerType === "Large" && image && /* @__PURE__ */ jsx(
169
- "div",
170
- {
171
- className: clsx(
172
- lg_hero_img,
173
- imagePlacement !== "Right" ? reversed_lg_image : "",
174
- "rounded",
175
- lg_hero_content_mobile
176
- ),
177
- role: "presentation",
178
- children: /* @__PURE__ */ jsxs("picture", { className: img_contents, children: [
179
- /* @__PURE__ */ jsx(
180
- "source",
181
- {
182
- srcSet: `https:${image?.src}?fm=avif`,
183
- type: "image/avif"
184
- }
185
- ),
186
- /* @__PURE__ */ jsx(
187
- "source",
188
- {
189
- srcSet: `https:${image?.src}?fm=webp`,
190
- type: "image/webp"
191
- }
192
- ),
193
- /* @__PURE__ */ jsx(
194
- Image,
195
- {
196
- src: `https:${image?.src}?q=90`,
197
- className: lg_hero_sizing,
198
- alt: "",
199
- height: 600,
200
- width: 792,
201
- priority: true
202
- }
203
- )
204
- ] })
205
- }
206
- )
207
- ]
208
- }
209
- ) }),
210
- bannerType === "Video Poster" && video && /* @__PURE__ */ jsx("div", { className: video_wrapper, "aria-hidden": "true", inert: true, children: /* @__PURE__ */ jsx(
211
- HeroVideoPoster,
212
- {
213
- otherSource: video.otherSource,
214
- thumbnailImage: video.thumbnailImage
215
- }
216
- ) })
217
- ]
218
- }
219
- );
220
- };
221
- export {
222
- LargeHeroBanner
223
- };
@@ -1 +0,0 @@
1
- export declare const getPosition: (text: string | undefined) => "default" | "top left" | "top right" | "bottom left" | "bottom right";
@@ -1,17 +0,0 @@
1
- const getPosition = (text) => {
2
- switch (text) {
3
- case "top left":
4
- return "top left";
5
- case "top right":
6
- return "top right";
7
- case "bottom left":
8
- return "bottom left";
9
- case "bottom right":
10
- return "bottom right";
11
- default:
12
- return "default";
13
- }
14
- };
15
- export {
16
- getPosition
17
- };