@axos-web-dev/shared-components 1.0.100-dev.86-videoPoster.3 → 1.0.100-dev.88
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/ATMLocator/ATMLocator.js +4 -4
- package/dist/Auth/ErrorAlert.js +4 -4
- package/dist/Button/Button.js +4 -4
- package/dist/Calculators/Calculator.js +4 -4
- package/dist/Calculators/MarginTradingCalculator/index.js +4 -4
- package/dist/Carousel/index.js +4 -4
- package/dist/Chatbot/AnimatedGradientBorder.css.d.ts +2 -0
- package/dist/Chatbot/AnimatedGradientBorder.css.js +7 -3
- package/dist/Chatbot/Bubble.css.js +2 -1
- package/dist/Chatbot/Bubble.d.ts +2 -1
- package/dist/Chatbot/Bubble.js +102 -92
- package/dist/Chatbot/ChatWindow.css.d.ts +4 -0
- package/dist/Chatbot/ChatWindow.css.js +8 -0
- package/dist/Chatbot/ChatWindow.js +8 -2
- package/dist/Chatbot/Chatbot.d.ts +1 -1
- package/dist/Chatbot/Chatbot.js +54 -28
- package/dist/Chatbot/ChatbotMessage.d.ts +1 -0
- package/dist/Chatbot/ChatbotMessage.js +47 -4
- package/dist/Chatbot/index.js +5 -1
- package/dist/Chevron/index.js +4 -4
- package/dist/Comparison/Comparison.js +4 -4
- package/dist/ExecutiveBio/ExecutiveBio.js +4 -4
- package/dist/FaqAccordion/index.js +4 -4
- package/dist/FooterSiteMap/AxosBank/FooterSiteMap.js +4 -4
- package/dist/Forms/ApplyNow.js +4 -4
- package/dist/Forms/ContactUsBusiness.js +4 -4
- package/dist/Forms/ContactUsBusinessNameEmail.js +4 -4
- package/dist/Forms/ContactUsNMLSId.js +4 -4
- package/dist/Forms/CpraRequest.js +4 -4
- package/dist/Forms/CraPublicFile.js +4 -4
- package/dist/Forms/EmailOnly.js +4 -4
- package/dist/Forms/EmailUs.js +40 -34
- package/dist/Forms/Forms.css.d.ts +3 -0
- package/dist/Forms/Forms.css.js +39 -39
- package/dist/Forms/MortgageRate/MortgageRateForm.js +4 -4
- package/dist/Forms/MortgageRate/MortgageRateWatch.js +4 -4
- package/dist/Forms/MortgageWarehouseLending.js +4 -4
- package/dist/Forms/SuccesForm.js +4 -4
- package/dist/HeroBanner/HeroBanner.css.js +1 -2
- package/dist/HeroBanner/HeroBanner.d.ts +1 -1
- package/dist/HeroBanner/HeroBanner.interface.d.ts +1 -4
- package/dist/HeroBanner/HeroBanner.js +153 -17
- package/dist/HeroBanner/LargeBanner.css.d.ts +0 -110
- package/dist/HeroBanner/LargeBanner.css.js +8 -22
- package/dist/Hyperlink/index.js +4 -4
- package/dist/ImageLink/ImageLink.js +3 -3
- package/dist/ImageLink/ImageLinkSet.js +3 -3
- package/dist/ImageLink/index.js +4 -4
- package/dist/Insight/Featured/CategorySelector.js +4 -4
- package/dist/Insight/Featured/Featured.js +4 -4
- package/dist/Insight/Featured/Header.js +4 -4
- package/dist/Modal/Modal.js +4 -4
- package/dist/NavigationMenu/AxosALTS/index.js +4 -4
- package/dist/NavigationMenu/AxosBank/MobileMenu/MobileMenu.js +4 -4
- package/dist/NavigationMenu/AxosBank/SubNavBar.js +4 -4
- package/dist/NavigationMenu/AxosBank/index.js +4 -4
- package/dist/NavigationMenu/LaVictoire/index.js +4 -4
- package/dist/NavigationMenu/Navbar.js +4 -4
- package/dist/NavigationMenu/SignInNavButton.js +4 -4
- package/dist/SetContainer/SetContainer.js +3 -3
- package/dist/SocialMediaBar/iconsRepository.js +4 -4
- package/dist/VideoTile/VideoTile.js +4 -4
- package/dist/VideoWrapper/index.js +4 -4
- package/dist/assets/Chatbot/AnimatedGradientBorder.css +63 -7
- package/dist/assets/Chatbot/Bubble.css +19 -6
- package/dist/assets/Chatbot/ChatWindow.css +28 -2
- package/dist/assets/Forms/Forms.css +94 -91
- package/dist/assets/HeroBanner/HeroBanner.css +0 -4
- package/dist/assets/HeroBanner/LargeBanner.css +59 -126
- package/dist/assets/globals.css +6 -6
- package/dist/assets/notification.mp3.js +4 -0
- package/dist/main.js +5 -1
- package/dist/utils/variant.types.d.ts +0 -1
- package/package.json +136 -136
- package/dist/HeroBanner/HeroVideoPoster.d.ts +0 -5
- package/dist/HeroBanner/HeroVideoPoster.js +0 -24
- package/dist/HeroBanner/LargeHeroBanner.d.ts +0 -5
- package/dist/HeroBanner/LargeHeroBanner.js +0 -223
- package/dist/utils/getPosition.d.ts +0 -1
- package/dist/utils/getPosition.js +0 -17
package/package.json
CHANGED
|
@@ -1,136 +1,136 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@axos-web-dev/shared-components",
|
|
3
|
-
"description": "Axos shared components library for web.",
|
|
4
|
-
"version": "1.0.100-dev.
|
|
5
|
-
"type": "module",
|
|
6
|
-
"module": "dist/main.js",
|
|
7
|
-
"types": "dist/main.d.ts",
|
|
8
|
-
"files": [
|
|
9
|
-
"dist"
|
|
10
|
-
],
|
|
11
|
-
"sideEffects": [
|
|
12
|
-
"dist/assets/**/*.css"
|
|
13
|
-
],
|
|
14
|
-
"scripts": {
|
|
15
|
-
"dev": "vite",
|
|
16
|
-
"build": "tsc --p ./tsconfig.build.json && vite build",
|
|
17
|
-
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
18
|
-
"preview": "vite preview",
|
|
19
|
-
"prepublishOnly": "npm run build",
|
|
20
|
-
"check-types": "tsc --pretty --noEmit",
|
|
21
|
-
"check-format": "prettier --check .",
|
|
22
|
-
"check-lint": "eslint . --ext ts --ext tsx --ext js",
|
|
23
|
-
"format": "prettier --write .",
|
|
24
|
-
"test-all": "npm run check-format && npm run check-lint && npm run check-types && npm run build",
|
|
25
|
-
"prepare": "husky",
|
|
26
|
-
"storybook": "storybook dev -p 6006",
|
|
27
|
-
"build-storybook": "storybook build",
|
|
28
|
-
"npm:link": "npm run build && npm link"
|
|
29
|
-
},
|
|
30
|
-
"dependencies": {
|
|
31
|
-
"@headlessui/react": "^2.2.0",
|
|
32
|
-
"@hookform/resolvers": "^3.10.0",
|
|
33
|
-
"@next-safe-action/adapter-react-hook-form": "^2.0.0",
|
|
34
|
-
"@react-input/mask": "^1.2.15",
|
|
35
|
-
"@react-input/number-format": "^1.1.3",
|
|
36
|
-
"@storybook/icons": "^1.3.0",
|
|
37
|
-
"@storybook/preview-api": "^8.4.7",
|
|
38
|
-
"@ts-stack/markdown": "^1.5.0",
|
|
39
|
-
"@types/iframe-resizer": "3.5.13",
|
|
40
|
-
"@ujet/websdk-headless": "^3.41.4",
|
|
41
|
-
"@vanilla-extract/css": "^1.16.1",
|
|
42
|
-
"@vanilla-extract/recipes": "^0.5.1",
|
|
43
|
-
"antd": "^5.22.5",
|
|
44
|
-
"clsx": "^2.1.1",
|
|
45
|
-
"framer-motion": "^12.9.2",
|
|
46
|
-
"iframe-resizer": "^3.6.6",
|
|
47
|
-
"lodash": "^4.17.21",
|
|
48
|
-
"moment": "^2.30.1",
|
|
49
|
-
"next-safe-action": "^8.0.2",
|
|
50
|
-
"react-date-picker": "^11.0.0",
|
|
51
|
-
"react-date-range": "^2.0.1",
|
|
52
|
-
"react-hook-form": "^7.54.2",
|
|
53
|
-
"react-markdown": "^9.1.0",
|
|
54
|
-
"react-popper": "^2.3.0",
|
|
55
|
-
"react-slick": "^0.30.2",
|
|
56
|
-
"react-use": "^17.6.0",
|
|
57
|
-
"react-wrap-balancer": "^1.1.1",
|
|
58
|
-
"remark-gfm": "^4.0.1",
|
|
59
|
-
"rsuite": "^5.75.0",
|
|
60
|
-
"slick-carousel": "^1.8.1",
|
|
61
|
-
"typed-css-modules": "^0.9.1",
|
|
62
|
-
"vite-plugin-svgr": "^4.3.0",
|
|
63
|
-
"zod": "^3.24.1",
|
|
64
|
-
"zustand": "^4.5.5"
|
|
65
|
-
},
|
|
66
|
-
"peerDependencies": {
|
|
67
|
-
"@vanilla-extract/css-utils": "^0.1.3",
|
|
68
|
-
"@vanilla-extract/recipes": "^0.5.1",
|
|
69
|
-
"@vanilla-extract/vite-plugin": "^4.0.3",
|
|
70
|
-
"next": "^14.1.4",
|
|
71
|
-
"react": "^18.2.0",
|
|
72
|
-
"react-date-range": "^2.0.1",
|
|
73
|
-
"react-dom": "^18.2.0",
|
|
74
|
-
"react-popper": "^2.3.0",
|
|
75
|
-
"react-slick": "^0.30.2",
|
|
76
|
-
"slick-carousel": "^1.8.1"
|
|
77
|
-
},
|
|
78
|
-
"devDependencies": {
|
|
79
|
-
"@chromatic-com/storybook": "^1.9.0",
|
|
80
|
-
"@rollup/plugin-alias": "^5.1.1",
|
|
81
|
-
"@storybook/addon-essentials": "^8.4.7",
|
|
82
|
-
"@storybook/addon-interactions": "^8.4.7",
|
|
83
|
-
"@storybook/addon-links": "^8.4.7",
|
|
84
|
-
"@storybook/addon-mdx-gfm": "^8.4.7",
|
|
85
|
-
"@storybook/addon-onboarding": "^8.4.7",
|
|
86
|
-
"@storybook/addon-themes": "^8.4.7",
|
|
87
|
-
"@storybook/blocks": "^8.4.7",
|
|
88
|
-
"@storybook/react": "^8.6.14",
|
|
89
|
-
"@storybook/react-vite": "^8.4.7",
|
|
90
|
-
"@storybook/test": "^8.6.14",
|
|
91
|
-
"@svgr/core": "^8.1.0",
|
|
92
|
-
"@svgr/plugin-prettier": "^8.1.0",
|
|
93
|
-
"@svgr/plugin-svgo": "^8.1.0",
|
|
94
|
-
"@types/lodash": "^4.17.17",
|
|
95
|
-
"@types/node": "^20.19.0",
|
|
96
|
-
"@types/react": "^18.3.23",
|
|
97
|
-
"@types/react-date-range": "^1.4.9",
|
|
98
|
-
"@types/react-datepicker": "^6.2.0",
|
|
99
|
-
"@types/react-dom": "^18.3.7",
|
|
100
|
-
"@types/react-slick": "^0.23.13",
|
|
101
|
-
"@typescript-eslint/eslint-plugin": "^7.18.0",
|
|
102
|
-
"@typescript-eslint/parser": "^7.18.0",
|
|
103
|
-
"@vanilla-extract/css-utils": "^0.1.4",
|
|
104
|
-
"@vanilla-extract/recipes": "^0.5.5",
|
|
105
|
-
"@vanilla-extract/vite-plugin": "^4.0.18",
|
|
106
|
-
"@vitejs/plugin-react-swc": "^3.7.2",
|
|
107
|
-
"esbuild-vanilla-image-loader": "^0.1.3",
|
|
108
|
-
"eslint": "^8.57.1",
|
|
109
|
-
"eslint-plugin-react-hooks": "^4.6.2",
|
|
110
|
-
"eslint-plugin-react-refresh": "^0.4.16",
|
|
111
|
-
"eslint-plugin-storybook": "^0.8.0",
|
|
112
|
-
"glob": "^10.4.5",
|
|
113
|
-
"husky": "^9.1.7",
|
|
114
|
-
"next": "^14.1.4",
|
|
115
|
-
"prettier": "3.2.5",
|
|
116
|
-
"react": "^18.3.1",
|
|
117
|
-
"react-dom": "^18.3.1",
|
|
118
|
-
"rollup-plugin-preserve-directives": "^0.4.0",
|
|
119
|
-
"rollup-plugin-svg-import": "^3.0.0",
|
|
120
|
-
"rollup-plugin-svgo": "^2.0.0",
|
|
121
|
-
"storybook": "^8.4.7",
|
|
122
|
-
"typescript": "^5.7.2",
|
|
123
|
-
"typescript-plugin-css-modules": "^5.1.0",
|
|
124
|
-
"vite": "^5.4.11",
|
|
125
|
-
"vite-plugin-dts": "^3.9.1",
|
|
126
|
-
"vite-plugin-lib-inject-css": "^2.1.1",
|
|
127
|
-
"vite-plugin-setting-css-module": "^1.1.4",
|
|
128
|
-
"vite-tsconfig-paths": "^4.3.2"
|
|
129
|
-
},
|
|
130
|
-
"main": "index.js",
|
|
131
|
-
"directories": {
|
|
132
|
-
"lib": "lib"
|
|
133
|
-
},
|
|
134
|
-
"author": "axos-web-dev",
|
|
135
|
-
"license": "ISC"
|
|
136
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@axos-web-dev/shared-components",
|
|
3
|
+
"description": "Axos shared components library for web.",
|
|
4
|
+
"version": "1.0.100-dev.88",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"module": "dist/main.js",
|
|
7
|
+
"types": "dist/main.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist"
|
|
10
|
+
],
|
|
11
|
+
"sideEffects": [
|
|
12
|
+
"dist/assets/**/*.css"
|
|
13
|
+
],
|
|
14
|
+
"scripts": {
|
|
15
|
+
"dev": "vite",
|
|
16
|
+
"build": "tsc --p ./tsconfig.build.json && vite build",
|
|
17
|
+
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
18
|
+
"preview": "vite preview",
|
|
19
|
+
"prepublishOnly": "npm run build",
|
|
20
|
+
"check-types": "tsc --pretty --noEmit",
|
|
21
|
+
"check-format": "prettier --check .",
|
|
22
|
+
"check-lint": "eslint . --ext ts --ext tsx --ext js",
|
|
23
|
+
"format": "prettier --write .",
|
|
24
|
+
"test-all": "npm run check-format && npm run check-lint && npm run check-types && npm run build",
|
|
25
|
+
"prepare": "husky",
|
|
26
|
+
"storybook": "storybook dev -p 6006",
|
|
27
|
+
"build-storybook": "storybook build",
|
|
28
|
+
"npm:link": "npm run build && npm link"
|
|
29
|
+
},
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"@headlessui/react": "^2.2.0",
|
|
32
|
+
"@hookform/resolvers": "^3.10.0",
|
|
33
|
+
"@next-safe-action/adapter-react-hook-form": "^2.0.0",
|
|
34
|
+
"@react-input/mask": "^1.2.15",
|
|
35
|
+
"@react-input/number-format": "^1.1.3",
|
|
36
|
+
"@storybook/icons": "^1.3.0",
|
|
37
|
+
"@storybook/preview-api": "^8.4.7",
|
|
38
|
+
"@ts-stack/markdown": "^1.5.0",
|
|
39
|
+
"@types/iframe-resizer": "3.5.13",
|
|
40
|
+
"@ujet/websdk-headless": "^3.41.4",
|
|
41
|
+
"@vanilla-extract/css": "^1.16.1",
|
|
42
|
+
"@vanilla-extract/recipes": "^0.5.1",
|
|
43
|
+
"antd": "^5.22.5",
|
|
44
|
+
"clsx": "^2.1.1",
|
|
45
|
+
"framer-motion": "^12.9.2",
|
|
46
|
+
"iframe-resizer": "^3.6.6",
|
|
47
|
+
"lodash": "^4.17.21",
|
|
48
|
+
"moment": "^2.30.1",
|
|
49
|
+
"next-safe-action": "^8.0.2",
|
|
50
|
+
"react-date-picker": "^11.0.0",
|
|
51
|
+
"react-date-range": "^2.0.1",
|
|
52
|
+
"react-hook-form": "^7.54.2",
|
|
53
|
+
"react-markdown": "^9.1.0",
|
|
54
|
+
"react-popper": "^2.3.0",
|
|
55
|
+
"react-slick": "^0.30.2",
|
|
56
|
+
"react-use": "^17.6.0",
|
|
57
|
+
"react-wrap-balancer": "^1.1.1",
|
|
58
|
+
"remark-gfm": "^4.0.1",
|
|
59
|
+
"rsuite": "^5.75.0",
|
|
60
|
+
"slick-carousel": "^1.8.1",
|
|
61
|
+
"typed-css-modules": "^0.9.1",
|
|
62
|
+
"vite-plugin-svgr": "^4.3.0",
|
|
63
|
+
"zod": "^3.24.1",
|
|
64
|
+
"zustand": "^4.5.5"
|
|
65
|
+
},
|
|
66
|
+
"peerDependencies": {
|
|
67
|
+
"@vanilla-extract/css-utils": "^0.1.3",
|
|
68
|
+
"@vanilla-extract/recipes": "^0.5.1",
|
|
69
|
+
"@vanilla-extract/vite-plugin": "^4.0.3",
|
|
70
|
+
"next": "^14.1.4",
|
|
71
|
+
"react": "^18.2.0",
|
|
72
|
+
"react-date-range": "^2.0.1",
|
|
73
|
+
"react-dom": "^18.2.0",
|
|
74
|
+
"react-popper": "^2.3.0",
|
|
75
|
+
"react-slick": "^0.30.2",
|
|
76
|
+
"slick-carousel": "^1.8.1"
|
|
77
|
+
},
|
|
78
|
+
"devDependencies": {
|
|
79
|
+
"@chromatic-com/storybook": "^1.9.0",
|
|
80
|
+
"@rollup/plugin-alias": "^5.1.1",
|
|
81
|
+
"@storybook/addon-essentials": "^8.4.7",
|
|
82
|
+
"@storybook/addon-interactions": "^8.4.7",
|
|
83
|
+
"@storybook/addon-links": "^8.4.7",
|
|
84
|
+
"@storybook/addon-mdx-gfm": "^8.4.7",
|
|
85
|
+
"@storybook/addon-onboarding": "^8.4.7",
|
|
86
|
+
"@storybook/addon-themes": "^8.4.7",
|
|
87
|
+
"@storybook/blocks": "^8.4.7",
|
|
88
|
+
"@storybook/react": "^8.6.14",
|
|
89
|
+
"@storybook/react-vite": "^8.4.7",
|
|
90
|
+
"@storybook/test": "^8.6.14",
|
|
91
|
+
"@svgr/core": "^8.1.0",
|
|
92
|
+
"@svgr/plugin-prettier": "^8.1.0",
|
|
93
|
+
"@svgr/plugin-svgo": "^8.1.0",
|
|
94
|
+
"@types/lodash": "^4.17.17",
|
|
95
|
+
"@types/node": "^20.19.0",
|
|
96
|
+
"@types/react": "^18.3.23",
|
|
97
|
+
"@types/react-date-range": "^1.4.9",
|
|
98
|
+
"@types/react-datepicker": "^6.2.0",
|
|
99
|
+
"@types/react-dom": "^18.3.7",
|
|
100
|
+
"@types/react-slick": "^0.23.13",
|
|
101
|
+
"@typescript-eslint/eslint-plugin": "^7.18.0",
|
|
102
|
+
"@typescript-eslint/parser": "^7.18.0",
|
|
103
|
+
"@vanilla-extract/css-utils": "^0.1.4",
|
|
104
|
+
"@vanilla-extract/recipes": "^0.5.5",
|
|
105
|
+
"@vanilla-extract/vite-plugin": "^4.0.18",
|
|
106
|
+
"@vitejs/plugin-react-swc": "^3.7.2",
|
|
107
|
+
"esbuild-vanilla-image-loader": "^0.1.3",
|
|
108
|
+
"eslint": "^8.57.1",
|
|
109
|
+
"eslint-plugin-react-hooks": "^4.6.2",
|
|
110
|
+
"eslint-plugin-react-refresh": "^0.4.16",
|
|
111
|
+
"eslint-plugin-storybook": "^0.8.0",
|
|
112
|
+
"glob": "^10.4.5",
|
|
113
|
+
"husky": "^9.1.7",
|
|
114
|
+
"next": "^14.1.4",
|
|
115
|
+
"prettier": "3.2.5",
|
|
116
|
+
"react": "^18.3.1",
|
|
117
|
+
"react-dom": "^18.3.1",
|
|
118
|
+
"rollup-plugin-preserve-directives": "^0.4.0",
|
|
119
|
+
"rollup-plugin-svg-import": "^3.0.0",
|
|
120
|
+
"rollup-plugin-svgo": "^2.0.0",
|
|
121
|
+
"storybook": "^8.4.7",
|
|
122
|
+
"typescript": "^5.7.2",
|
|
123
|
+
"typescript-plugin-css-modules": "^5.1.0",
|
|
124
|
+
"vite": "^5.4.11",
|
|
125
|
+
"vite-plugin-dts": "^3.9.1",
|
|
126
|
+
"vite-plugin-lib-inject-css": "^2.1.1",
|
|
127
|
+
"vite-plugin-setting-css-module": "^1.1.4",
|
|
128
|
+
"vite-tsconfig-paths": "^4.3.2"
|
|
129
|
+
},
|
|
130
|
+
"main": "index.js",
|
|
131
|
+
"directories": {
|
|
132
|
+
"lib": "lib"
|
|
133
|
+
},
|
|
134
|
+
"author": "axos-web-dev",
|
|
135
|
+
"license": "ISC"
|
|
136
|
+
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { jsx, Fragment, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { player } from "./LargeBanner.css.js";
|
|
3
|
-
const HeroVideoPoster = ({
|
|
4
|
-
otherSource,
|
|
5
|
-
thumbnailImage
|
|
6
|
-
}) => {
|
|
7
|
-
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("div", { className: player, children: /* @__PURE__ */ jsxs(
|
|
8
|
-
"video",
|
|
9
|
-
{
|
|
10
|
-
autoPlay: true,
|
|
11
|
-
loop: true,
|
|
12
|
-
muted: true,
|
|
13
|
-
playsInline: true,
|
|
14
|
-
...thumbnailImage ? { poster: thumbnailImage } : {},
|
|
15
|
-
children: [
|
|
16
|
-
/* @__PURE__ */ jsx("source", { src: otherSource, type: "video/mp4" }),
|
|
17
|
-
"Your browser does not support the video tag."
|
|
18
|
-
]
|
|
19
|
-
}
|
|
20
|
-
) }) });
|
|
21
|
-
};
|
|
22
|
-
export {
|
|
23
|
-
HeroVideoPoster
|
|
24
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { HeroBannerInterface } from './HeroBanner.interface';
|
|
2
|
-
|
|
3
|
-
type LargeHeroBannerProps = Pick<HeroBannerInterface, "id" | "eyebrow" | "headline" | "bodyCopy" | "bullets" | "callToActionRow" | "image" | "imagePlacement" | "variant" | "video" | "bannerType" | "videoTextPosition">;
|
|
4
|
-
export declare const LargeHeroBanner: ({ id, eyebrow, headline, bodyCopy, bullets, callToActionRow, image, imagePlacement, variant, video, bannerType, videoTextPosition, }: LargeHeroBannerProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
export {};
|
|
@@ -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
|
-
};
|