@axos-web-dev/shared-components 0.0.2 → 0.0.3
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/README.md +9 -10
- package/dist/Accordion/Accordion.d.ts +3 -3
- package/dist/Accordion/Accordion.d.ts.map +1 -1
- package/dist/Accordion/Accordion.js +1 -0
- package/dist/Accordion/Accordion.js.map +1 -1
- package/dist/AlertBanner/index.d.ts.map +1 -1
- package/dist/AlertBanner/index.js +4 -3
- package/dist/AlertBanner/index.js.map +1 -1
- package/dist/BulletItem/BulletItem.d.ts +1 -1
- package/dist/BulletItem/BulletItem.d.ts.map +1 -1
- package/dist/BulletItem/BulletItem.js +1 -0
- package/dist/BulletItem/BulletItem.js.map +1 -1
- package/dist/Button/Button.css.d.ts +18 -21
- package/dist/Button/Button.css.d.ts.map +1 -1
- package/dist/Button/index.js +1 -1
- package/dist/Button/index.js.map +1 -1
- package/dist/Carousel/index.d.ts +2 -2
- package/dist/Carousel/index.d.ts.map +1 -1
- package/dist/Carousel/index.js +1 -0
- package/dist/Carousel/index.js.map +1 -1
- package/dist/Chevron/index.d.ts.map +1 -1
- package/dist/Chevron/index.js +6 -2
- package/dist/Chevron/index.js.map +1 -1
- package/dist/CollectInformationAlert/index.js +3 -2
- package/dist/CollectInformationAlert/index.js.map +1 -1
- package/dist/DownloadTile/index.js +4 -2
- package/dist/DownloadTile/index.js.map +1 -1
- package/dist/FaqAccordion/index.d.ts +4 -4
- package/dist/FaqAccordion/index.d.ts.map +1 -1
- package/dist/FaqAccordion/index.js +1 -0
- package/dist/FaqAccordion/index.js.map +1 -1
- package/dist/FooterDisclosure/FooterDisclosure.d.ts +4 -4
- package/dist/FooterDisclosure/FooterDisclosure.d.ts.map +1 -1
- package/dist/HeroBanner/HeroBanner.css.d.ts +29 -17
- package/dist/HeroBanner/HeroBanner.css.d.ts.map +1 -1
- package/dist/HeroBanner/HeroBanner.css.js +12 -18
- package/dist/HeroBanner/HeroBanner.css.js.map +1 -1
- package/dist/HeroBanner/HeroBanner.interface.d.ts +2 -2
- package/dist/HeroBanner/HeroBanner.interface.d.ts.map +1 -1
- package/dist/HeroBanner/index.d.ts +1 -2
- package/dist/HeroBanner/index.d.ts.map +1 -1
- package/dist/HeroBanner/index.js +51 -49
- package/dist/HeroBanner/index.js.map +1 -1
- package/dist/IconBillboard/IconBillboard.css.d.ts +23 -1
- package/dist/IconBillboard/IconBillboard.css.d.ts.map +1 -1
- package/dist/IconBillboard/IconBillboard.css.js +8 -2
- package/dist/IconBillboard/IconBillboard.css.js.map +1 -1
- package/dist/IconBillboard/IconBillboard.interface.d.ts +34 -0
- package/dist/IconBillboard/IconBillboard.interface.d.ts.map +1 -0
- package/dist/IconBillboard/IconBillboard.interface.js +2 -0
- package/dist/IconBillboard/IconBillboard.interface.js.map +1 -0
- package/dist/IconBillboard/index.d.ts +2 -12
- package/dist/IconBillboard/index.d.ts.map +1 -1
- package/dist/IconBillboard/index.js +72 -25
- package/dist/IconBillboard/index.js.map +1 -1
- package/dist/ImageBillboard/ImageBillboard.css.d.ts +4 -1
- package/dist/ImageBillboard/ImageBillboard.css.d.ts.map +1 -1
- package/dist/ImageBillboard/ImageBillboard.css.js +10 -5
- package/dist/ImageBillboard/ImageBillboard.css.js.map +1 -1
- package/dist/ImageBillboard/index.d.ts.map +1 -1
- package/dist/ImageBillboard/index.js +8 -7
- package/dist/ImageBillboard/index.js.map +1 -1
- package/dist/Input/index.d.ts +1 -1
- package/dist/Input/index.d.ts.map +1 -1
- package/dist/Modal/Modal.css.js +1 -0
- package/dist/Modal/Modal.css.js.map +1 -1
- package/dist/Modal/index.js +2 -0
- package/dist/Modal/index.js.map +1 -1
- package/dist/NavigationMenu/AxosAdvisor/NavBar.module.js +162 -0
- package/dist/NavigationMenu/AxosAdvisor/NavBar.module.js.map +1 -0
- package/dist/NavigationMenu/AxosAdvisor/SubNavBar.d.ts +2 -0
- package/dist/NavigationMenu/AxosAdvisor/SubNavBar.d.ts.map +1 -0
- package/dist/NavigationMenu/AxosAdvisor/SubNavBar.js +8 -0
- package/dist/NavigationMenu/AxosAdvisor/SubNavBar.js.map +1 -0
- package/dist/NavigationMenu/AxosAdvisor/index.d.ts +2 -0
- package/dist/NavigationMenu/AxosAdvisor/index.d.ts.map +1 -0
- package/dist/NavigationMenu/AxosAdvisor/index.js +409 -0
- package/dist/NavigationMenu/AxosAdvisor/index.js.map +1 -0
- package/dist/NavigationMenu/AxosFiduciary/NavBar.module.js +126 -0
- package/dist/NavigationMenu/AxosFiduciary/NavBar.module.js.map +1 -0
- package/dist/NavigationMenu/AxosFiduciary/index.d.ts +2 -0
- package/dist/NavigationMenu/AxosFiduciary/index.d.ts.map +1 -0
- package/dist/NavigationMenu/AxosFiduciary/index.js +131 -0
- package/dist/NavigationMenu/AxosFiduciary/index.js.map +1 -0
- package/dist/SecondaryFooter/index.d.ts +1 -1
- package/dist/SecondaryFooter/index.d.ts.map +1 -1
- package/dist/Table/Table.d.ts +4 -4
- package/dist/Table/Table.d.ts.map +1 -1
- package/dist/assets/Button/Button.css +35 -30
- package/dist/assets/DownloadTile/DownloadTile.css +0 -22
- package/dist/assets/HeroBanner/HeroBanner.css +91 -93
- package/dist/assets/IconBillboard/IconBillboard.css +30 -0
- package/dist/assets/ImageBillboard/ImageBillboard.css +12 -1
- package/dist/assets/NavigationMenu/AxosAdvisor/NavBar.css.css +579 -0
- package/dist/assets/NavigationMenu/AxosFiduciary/NavBar.css.css +419 -0
- package/dist/assets/globals.css +29 -2
- package/dist/icons/ArrowIcon/index.d.ts +2 -1
- package/dist/icons/ArrowIcon/index.d.ts.map +1 -1
- package/dist/icons/ArrowIcon/index.js +2 -2
- package/dist/icons/ArrowIcon/index.js.map +1 -1
- package/dist/icons/CheckCircle.d.ts +1 -1
- package/dist/icons/CheckCircle.d.ts.map +1 -1
- package/dist/icons/CheckCircleLight.d.ts +1 -1
- package/dist/icons/CheckCircleLight.d.ts.map +1 -1
- package/dist/icons/CheckIcon/index.d.ts +2 -1
- package/dist/icons/CheckIcon/index.d.ts.map +1 -1
- package/dist/icons/CheckIcon/index.js +2 -2
- package/dist/icons/CheckIcon/index.js.map +1 -1
- package/dist/icons/ChevronDown.d.ts +1 -1
- package/dist/icons/ChevronDown.d.ts.map +1 -1
- package/dist/icons/ChevronUp.d.ts +1 -1
- package/dist/icons/ChevronUp.d.ts.map +1 -1
- package/dist/icons/CloseIcon/index.d.ts +2 -1
- package/dist/icons/CloseIcon/index.d.ts.map +1 -1
- package/dist/icons/CloseIcon/index.js +2 -2
- package/dist/icons/CloseIcon/index.js.map +1 -1
- package/dist/icons/DownloadIcon/index.d.ts +2 -1
- package/dist/icons/DownloadIcon/index.d.ts.map +1 -1
- package/dist/icons/DownloadIcon/index.js +2 -2
- package/dist/icons/DownloadIcon/index.js.map +1 -1
- package/dist/icons/EqualHousingLender.d.ts +1 -1
- package/dist/icons/EqualHousingLender.d.ts.map +1 -1
- package/dist/icons/LockIcon/index.d.ts +2 -1
- package/dist/icons/LockIcon/index.d.ts.map +1 -1
- package/dist/icons/LockIcon/index.js +2 -2
- package/dist/icons/LockIcon/index.js.map +1 -1
- package/dist/icons/MemberFdicLogo.d.ts +1 -1
- package/dist/icons/MemberFdicLogo.d.ts.map +1 -1
- package/dist/icons/QuoteIconGrey.d.ts +1 -1
- package/dist/icons/QuoteIconGrey.d.ts.map +1 -1
- package/dist/icons/QuoteIconWhite.d.ts +1 -1
- package/dist/icons/QuoteIconWhite.d.ts.map +1 -1
- package/dist/icons/QuoteIconYellow.d.ts +1 -1
- package/dist/icons/QuoteIconYellow.d.ts.map +1 -1
- package/dist/icons/WarningIcon/index.d.ts +2 -1
- package/dist/icons/WarningIcon/index.d.ts.map +1 -1
- package/dist/icons/WarningIcon/index.js +3 -2
- package/dist/icons/WarningIcon/index.js.map +1 -1
- package/dist/icons/index.d.ts +6 -5
- package/dist/icons/index.d.ts.map +1 -1
- package/dist/icons/index.js +30 -28
- package/dist/icons/index.js.map +1 -1
- package/dist/main.d.ts +2 -0
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +6 -0
- package/dist/main.js.map +1 -1
- package/dist/types/declaration.d.js +2 -0
- package/dist/types/declaration.d.js.map +1 -0
- package/dist/utils/getVariant.d.ts +2 -2
- package/dist/utils/getVariant.d.ts.map +1 -1
- package/dist/utils/getVariant.js +11 -23
- package/dist/utils/getVariant.js.map +1 -1
- package/package.json +95 -91
|
@@ -4,52 +4,64 @@ export declare const hero_banner: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
|
4
4
|
background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
5
5
|
color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
6
6
|
};
|
|
7
|
+
secondary: {
|
|
8
|
+
background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
9
|
+
color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
10
|
+
};
|
|
7
11
|
tertiary: {
|
|
8
12
|
background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
9
13
|
color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
10
14
|
};
|
|
15
|
+
quaternary: {
|
|
16
|
+
background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
17
|
+
color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
18
|
+
};
|
|
11
19
|
};
|
|
12
20
|
}>;
|
|
13
|
-
export declare const
|
|
21
|
+
export declare const hero_content: string;
|
|
22
|
+
export declare const reversed: string;
|
|
23
|
+
export declare const hero_text: string;
|
|
24
|
+
export declare const hero_img: string;
|
|
25
|
+
export declare const logout: string;
|
|
26
|
+
export declare const supertag: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
14
27
|
variant: {
|
|
15
28
|
primary: {
|
|
16
29
|
background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
17
30
|
backgroundClip: "text";
|
|
18
31
|
WebkitTextFillColor: "transparent";
|
|
19
32
|
};
|
|
33
|
+
secondary: {
|
|
34
|
+
background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
35
|
+
backgroundClip: "text";
|
|
36
|
+
WebkitTextFillColor: "transparent";
|
|
37
|
+
};
|
|
20
38
|
tertiary: {
|
|
21
39
|
color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
22
40
|
};
|
|
41
|
+
quaternary: {
|
|
42
|
+
color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
43
|
+
};
|
|
23
44
|
};
|
|
24
45
|
}>;
|
|
25
|
-
export declare const
|
|
46
|
+
export declare const headline_text: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
26
47
|
variant: {
|
|
27
48
|
primary: {
|
|
28
49
|
background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
29
50
|
backgroundClip: "text";
|
|
30
51
|
WebkitTextFillColor: "transparent";
|
|
31
52
|
};
|
|
32
|
-
|
|
33
|
-
|
|
53
|
+
secondary: {
|
|
54
|
+
background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
55
|
+
backgroundClip: "text";
|
|
56
|
+
WebkitTextFillColor: "transparent";
|
|
34
57
|
};
|
|
35
|
-
|
|
36
|
-
}>;
|
|
37
|
-
export declare const bodyCopy: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
38
|
-
variant: {
|
|
39
|
-
primary: {
|
|
58
|
+
tertiary: {
|
|
40
59
|
color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
41
60
|
};
|
|
42
|
-
|
|
61
|
+
quaternary: {
|
|
43
62
|
color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
44
63
|
};
|
|
45
64
|
};
|
|
46
65
|
}>;
|
|
47
|
-
export declare const reversed: string;
|
|
48
|
-
export declare const hero_content: string;
|
|
49
|
-
export declare const hero_text: string;
|
|
50
|
-
export declare const hero_body: string;
|
|
51
66
|
export declare const hero_btns: string;
|
|
52
|
-
export declare const hero_img: string;
|
|
53
|
-
export declare const mobile_shift: string;
|
|
54
|
-
export declare const logout: string;
|
|
55
67
|
//# sourceMappingURL=HeroBanner.css.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeroBanner.css.d.ts","sourceRoot":"","sources":["../../lib/HeroBanner/HeroBanner.css.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"HeroBanner.css.d.ts","sourceRoot":"","sources":["../../lib/HeroBanner/HeroBanner.css.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;EA0BtB,CAAC;AAEH,eAAO,MAAM,YAAY,QAWvB,CAAC;AAEH,eAAO,MAAM,QAAQ,QAMnB,CAAC;AAEH,eAAO,MAAM,SAAS,QAgBpB,CAAC;AAEH,eAAO,MAAM,QAAQ,QASnB,CAAC;AAMH,eAAO,MAAM,MAAM,QAAY,CAAC;AAmBhC,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;EA2BnB,CAAC;AAEH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;EA8BxB,CAAC;AAiBH,eAAO,MAAM,SAAS,QAiBpB,CAAC"}
|
|
@@ -1,29 +1,23 @@
|
|
|
1
1
|
/* empty css */
|
|
2
2
|
import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
3
|
-
var hero_banner = createRuntimeFn({ defaultClassName: "_1ye8k3f0", variantClassNames: { variant: { primary: "_1ye8k3f1",
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var hero_btns = "
|
|
12
|
-
var hero_img = "_1ye8k3fh";
|
|
13
|
-
var mobile_shift = "_1ye8k3fi";
|
|
14
|
-
var logout = "_1ye8k3fj";
|
|
3
|
+
var hero_banner = createRuntimeFn({ defaultClassName: "_1ye8k3f0", variantClassNames: { variant: { primary: "_1ye8k3f1", secondary: "_1ye8k3f2", tertiary: "_1ye8k3f3", quaternary: "_1ye8k3f4" } }, defaultVariants: {}, compoundVariants: [] });
|
|
4
|
+
var hero_content = "_1ye8k3f5";
|
|
5
|
+
var reversed = "_1ye8k3f6";
|
|
6
|
+
var hero_text = "_1ye8k3f7";
|
|
7
|
+
var hero_img = "_1ye8k3f8";
|
|
8
|
+
var logout = "_1ye8k3f9";
|
|
9
|
+
var supertag = createRuntimeFn({ defaultClassName: "_1ye8k3fa", variantClassNames: { variant: { primary: "_1ye8k3fb", secondary: "_1ye8k3fc", tertiary: "_1ye8k3fd", quaternary: "_1ye8k3fe" } }, defaultVariants: {}, compoundVariants: [] });
|
|
10
|
+
var headline_text = createRuntimeFn({ defaultClassName: "_1ye8k3ff", variantClassNames: { variant: { primary: "_1ye8k3fg", secondary: "_1ye8k3fh", tertiary: "_1ye8k3fi", quaternary: "_1ye8k3fj" } }, defaultVariants: {}, compoundVariants: [] });
|
|
11
|
+
var hero_btns = "_1ye8k3fk";
|
|
15
12
|
export {
|
|
16
|
-
|
|
17
|
-
eyebrow_tag,
|
|
18
|
-
headline_hero,
|
|
13
|
+
headline_text,
|
|
19
14
|
hero_banner,
|
|
20
|
-
hero_body,
|
|
21
15
|
hero_btns,
|
|
22
16
|
hero_content,
|
|
23
17
|
hero_img,
|
|
24
18
|
hero_text,
|
|
25
19
|
logout,
|
|
26
|
-
|
|
27
|
-
|
|
20
|
+
reversed,
|
|
21
|
+
supertag
|
|
28
22
|
};
|
|
29
23
|
//# sourceMappingURL=HeroBanner.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeroBanner.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"HeroBanner.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { ChevronProps } from '../Chevron/Chevron.interface';
|
|
2
|
-
import { PrimaryAndTertiaryTypes } from '../utils/variant.types';
|
|
3
2
|
import { ReactNode } from "react";
|
|
4
3
|
export interface ImageInterface {
|
|
5
4
|
src: string;
|
|
6
5
|
alt?: string;
|
|
7
6
|
}
|
|
8
7
|
export interface HeroBannerInterface {
|
|
8
|
+
id?: string;
|
|
9
9
|
bannerType?: "Hero" | "Logout";
|
|
10
10
|
className?: string;
|
|
11
|
-
variant:
|
|
11
|
+
variant: string;
|
|
12
12
|
eyebrow: string | ReactNode;
|
|
13
13
|
headline: string | ReactNode;
|
|
14
14
|
bodyCopy: string | ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeroBanner.interface.d.ts","sourceRoot":"","sources":["../../lib/HeroBanner/HeroBanner.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"HeroBanner.interface.d.ts","sourceRoot":"","sources":["../../lib/HeroBanner/HeroBanner.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,MAAM,WAAW,cAAc;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,mBAAmB;IAClC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,UAAU,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,KAAK,EAAE,cAAc,CAAC;IACtB,cAAc,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAClC,eAAe,CAAC,EAAE,YAAY,EAAE,CAAC;CAClC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
2
1
|
import { HeroBannerInterface } from "./HeroBanner.interface";
|
|
3
|
-
export declare const HeroBanner:
|
|
2
|
+
export declare const HeroBanner: ({ id, eyebrow, headline, bodyCopy, callToActionRow, bannerType, image, imagePlacement, variant, }: HeroBannerInterface) => import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/HeroBanner/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/HeroBanner/index.tsx"],"names":[],"mappings":"AAeA,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAE7D,eAAO,MAAM,UAAU,sGAUpB,mBAAmB,4CAkErB,CAAC"}
|
package/dist/HeroBanner/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
1
|
+
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { Button } from "../Button/index.js";
|
|
3
3
|
import { Chevron } from "../Chevron/index.js";
|
|
4
4
|
import { getVariant } from "../utils/getVariant.js";
|
|
5
|
-
import
|
|
6
|
-
import { hero_banner, mobile_shift, reversed, hero_content, hero_text, eyebrow_tag, headline_hero, hero_body, hero_btns, hero_img } from "./HeroBanner.css.js";
|
|
5
|
+
import { logout, hero_banner, hero_content, reversed, hero_text, supertag, headline_text, hero_btns, hero_img } from "./HeroBanner.css.js";
|
|
7
6
|
const HeroBanner = ({
|
|
7
|
+
id,
|
|
8
8
|
eyebrow,
|
|
9
9
|
headline,
|
|
10
10
|
bodyCopy,
|
|
@@ -17,59 +17,61 @@ const HeroBanner = ({
|
|
|
17
17
|
return /* @__PURE__ */ jsx(
|
|
18
18
|
"section",
|
|
19
19
|
{
|
|
20
|
-
className:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
),
|
|
24
|
-
children: /* @__PURE__ */ jsx("div", { className: `containment ${mobile_shift}`, children: /* @__PURE__ */ jsxs(
|
|
20
|
+
className: `${bannerType !== "Hero" ? logout : ""}
|
|
21
|
+
${hero_banner({ variant: getVariant(variant) })}`,
|
|
22
|
+
children: /* @__PURE__ */ jsx("div", { className: "containment", children: /* @__PURE__ */ jsxs(
|
|
25
23
|
"div",
|
|
26
24
|
{
|
|
27
|
-
className:
|
|
28
|
-
imagePlacement !== "Right" ? reversed : null,
|
|
29
|
-
`${hero_content}`
|
|
30
|
-
),
|
|
25
|
+
className: `${hero_content} ${imagePlacement !== "Right" ? reversed : ""}`,
|
|
31
26
|
children: [
|
|
32
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
"h1",
|
|
42
|
-
{
|
|
43
|
-
className: `header_1 ${headline_hero({ variant: getVariant(variant) })}`,
|
|
44
|
-
children: headline
|
|
45
|
-
}
|
|
46
|
-
),
|
|
47
|
-
/* @__PURE__ */ jsx("div", { className: `${hero_body}`, children: bodyCopy })
|
|
48
|
-
] }),
|
|
49
|
-
callToActionRow && /* @__PURE__ */ jsx("div", { className: `${hero_btns}`, children: callToActionRow.map(
|
|
50
|
-
({
|
|
51
|
-
id,
|
|
52
|
-
variant: variant2,
|
|
53
|
-
displayText,
|
|
54
|
-
targetUrl,
|
|
55
|
-
type
|
|
56
|
-
}) => type === "Button" ? /* @__PURE__ */ jsx(
|
|
57
|
-
Button,
|
|
58
|
-
{
|
|
27
|
+
/* @__PURE__ */ jsxs("div", { className: hero_text, children: [
|
|
28
|
+
/* @__PURE__ */ jsx("span", { className: supertag({ variant: getVariant(variant) }), children: eyebrow }),
|
|
29
|
+
/* @__PURE__ */ jsx("h1", { className: headline_text({ variant: getVariant(variant) }), children: headline }),
|
|
30
|
+
/* @__PURE__ */ jsx(Fragment, { children: bodyCopy }),
|
|
31
|
+
callToActionRow && /* @__PURE__ */ jsx("div", { className: `${hero_btns}`, children: callToActionRow.map(
|
|
32
|
+
({
|
|
33
|
+
id: id2,
|
|
34
|
+
variant: variant2,
|
|
35
|
+
displayText,
|
|
59
36
|
targetUrl,
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
37
|
+
type
|
|
38
|
+
}) => type === "Button" ? /* @__PURE__ */ jsx(
|
|
39
|
+
Button,
|
|
40
|
+
{
|
|
41
|
+
targetUrl,
|
|
42
|
+
color: getVariant(variant2),
|
|
43
|
+
size: "large",
|
|
44
|
+
rounded: "medium",
|
|
45
|
+
children: displayText
|
|
46
|
+
},
|
|
47
|
+
id2
|
|
48
|
+
) : /* @__PURE__ */ jsx(
|
|
49
|
+
Chevron,
|
|
50
|
+
{
|
|
51
|
+
targetUrl,
|
|
52
|
+
variant: getVariant(variant2),
|
|
53
|
+
children: displayText
|
|
54
|
+
},
|
|
55
|
+
id2
|
|
56
|
+
)
|
|
57
|
+
) })
|
|
58
|
+
] }),
|
|
59
|
+
/* @__PURE__ */ jsx("div", { className: hero_img, role: "presentation", children: /* @__PURE__ */ jsx(
|
|
60
|
+
"img",
|
|
61
|
+
{
|
|
62
|
+
decoding: "async",
|
|
63
|
+
"data-nimg": 1,
|
|
64
|
+
className: "img_fluid",
|
|
65
|
+
style: { color: "transparent" },
|
|
66
|
+
src: image.src,
|
|
67
|
+
alt: image.alt
|
|
68
|
+
}
|
|
69
|
+
) })
|
|
69
70
|
]
|
|
70
71
|
}
|
|
71
72
|
) })
|
|
72
|
-
}
|
|
73
|
+
},
|
|
74
|
+
id
|
|
73
75
|
);
|
|
74
76
|
};
|
|
75
77
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../lib/HeroBanner/index.tsx"],"sourcesContent":["
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../lib/HeroBanner/index.tsx"],"sourcesContent":["import { Button } from \"@lib/Button\";\nimport { Chevron } from \"@lib/Chevron\";\nimport { ChevronProps } from \"@lib/Chevron/Chevron.interface\";\nimport { getVariant } from \"@lib/utils/getVariant\";\nimport {\n headline_text,\n hero_banner,\n hero_btns,\n hero_content,\n hero_img,\n hero_text,\n logout,\n reversed,\n supertag,\n} from \"./HeroBanner.css\";\nimport { HeroBannerInterface } from \"./HeroBanner.interface\";\n\nexport const HeroBanner = ({\n id,\n eyebrow,\n headline,\n bodyCopy,\n callToActionRow,\n bannerType = \"Hero\",\n image,\n imagePlacement = \"Right\",\n variant,\n}: HeroBannerInterface) => {\n return (\n <section\n key={id}\n className={`${bannerType !== \"Hero\" ? logout : \"\"} \n ${hero_banner({ variant: getVariant(variant) })}`}\n >\n <div className=\"containment\">\n <div\n className={`${hero_content} ${imagePlacement !== \"Right\" ? reversed : \"\"}`}\n >\n <div className={hero_text}>\n <span className={supertag({ variant: getVariant(variant) })}>\n {eyebrow}\n </span>\n <h1 className={headline_text({ variant: getVariant(variant) })}>\n {headline}\n </h1>\n <>{bodyCopy}</>\n {callToActionRow && (\n <div className={`${hero_btns}`}>\n {callToActionRow.map(\n ({\n id,\n variant,\n displayText,\n targetUrl,\n type,\n }: ChevronProps) =>\n type === \"Button\" ? (\n <Button\n key={id}\n targetUrl={targetUrl}\n color={getVariant(variant)}\n size=\"large\"\n rounded=\"medium\"\n >\n {displayText}\n </Button>\n ) : (\n <Chevron\n key={id}\n targetUrl={targetUrl}\n variant={getVariant(variant)}\n >\n {displayText}\n </Chevron>\n )\n )}\n </div>\n )}\n </div>\n <div className={hero_img} role=\"presentation\">\n <img\n decoding=\"async\"\n data-nimg={1}\n className=\"img_fluid\"\n style={{ color: \"transparent\" }}\n src={image.src}\n alt={image.alt}\n />\n </div>\n </div>\n </div>\n </section>\n );\n};\n"],"names":["id","variant"],"mappings":";;;;;AAiBO,MAAM,aAAa,CAAC;AAAA,EACzB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,aAAa;AAAA,EACb;AAAA,EACA,iBAAiB;AAAA,EACjB;AACF,MAA2B;AAEvB,SAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MAEC,WAAW,GAAG,eAAe,SAAS,SAAS,EAAE;AAAA,QAC/C,YAAY,EAAE,SAAS,WAAW,OAAO,EAAG,CAAA,CAAC;AAAA,MAE/C,UAAA,oBAAC,OAAI,EAAA,WAAU,eACb,UAAA;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,WAAW,GAAG,YAAY,IAAI,mBAAmB,UAAU,WAAW,EAAE;AAAA,UAExE,UAAA;AAAA,YAAC,qBAAA,OAAA,EAAI,WAAW,WACd,UAAA;AAAA,cAAC,oBAAA,QAAA,EAAK,WAAW,SAAS,EAAE,SAAS,WAAW,OAAO,EAAG,CAAA,GACvD,UACH,QAAA,CAAA;AAAA,cACA,oBAAC,MAAG,EAAA,WAAW,cAAc,EAAE,SAAS,WAAW,OAAO,EAAG,CAAA,GAC1D,UACH,SAAA,CAAA;AAAA,8CACG,UAAS,SAAA,CAAA;AAAA,cACX,mBACE,oBAAA,OAAA,EAAI,WAAW,GAAG,SAAS,IACzB,UAAgB,gBAAA;AAAA,gBACf,CAAC;AAAA,kBACC,IAAAA;AAAAA,kBACA,SAAAC;AAAAA,kBACA;AAAA,kBACA;AAAA,kBACA;AAAA,gBAAA,MAEA,SAAS,WACP;AAAA,kBAAC;AAAA,kBAAA;AAAA,oBAEC;AAAA,oBACA,OAAO,WAAWA,QAAO;AAAA,oBACzB,MAAK;AAAA,oBACL,SAAQ;AAAA,oBAEP,UAAA;AAAA,kBAAA;AAAA,kBANID;AAAAA,gBAAA,IASP;AAAA,kBAAC;AAAA,kBAAA;AAAA,oBAEC;AAAA,oBACA,SAAS,WAAWC,QAAO;AAAA,oBAE1B,UAAA;AAAA,kBAAA;AAAA,kBAJID;AAAAA,gBAKP;AAAA,cAAA,GAGR;AAAA,YAAA,GAEJ;AAAA,YACC,oBAAA,OAAA,EAAI,WAAW,UAAU,MAAK,gBAC7B,UAAA;AAAA,cAAC;AAAA,cAAA;AAAA,gBACC,UAAS;AAAA,gBACT,aAAW;AAAA,gBACX,WAAU;AAAA,gBACV,OAAO,EAAE,OAAO,cAAc;AAAA,gBAC9B,KAAK,MAAM;AAAA,gBACX,KAAK,MAAM;AAAA,cAAA;AAAA,YAAA,GAEf;AAAA,UAAA;AAAA,QAAA;AAAA,MAAA,GAEJ;AAAA,IAAA;AAAA,IA5DK;AAAA,EAAA;AA+DX;"}
|
|
@@ -24,7 +24,7 @@ export declare const layout: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
26
|
}>;
|
|
27
|
-
export declare const
|
|
27
|
+
export declare const billboard_icon: string;
|
|
28
28
|
export declare const header: string;
|
|
29
29
|
export declare const title: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
30
30
|
variant: {
|
|
@@ -50,6 +50,28 @@ export declare const content: string;
|
|
|
50
50
|
export declare const list: string;
|
|
51
51
|
export declare const listItem: string;
|
|
52
52
|
export declare const buttons: string;
|
|
53
|
+
export declare const section_text: string;
|
|
54
|
+
export declare const header_section: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
55
|
+
variant: {
|
|
56
|
+
primary: {
|
|
57
|
+
background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
58
|
+
backgroundClip: "text";
|
|
59
|
+
WebkitTextFillColor: "transparent";
|
|
60
|
+
};
|
|
61
|
+
secondary: {
|
|
62
|
+
background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
63
|
+
backgroundClip: "text";
|
|
64
|
+
WebkitTextFillColor: "transparent";
|
|
65
|
+
};
|
|
66
|
+
tertiary: {
|
|
67
|
+
color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
68
|
+
};
|
|
69
|
+
quaternary: {
|
|
70
|
+
color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
}>;
|
|
74
|
+
export declare const section_container: string;
|
|
53
75
|
export type ContainerVariants = RecipeVariants<typeof container>;
|
|
54
76
|
export type LayoutVariants = RecipeVariants<typeof layout>;
|
|
55
77
|
//# sourceMappingURL=IconBillboard.css.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconBillboard.css.d.ts","sourceRoot":"","sources":["../../lib/IconBillboard/IconBillboard.css.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAU,MAAM,0BAA0B,CAAC;AAGlE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;EA2BpB,CAAC;AAEH,eAAO,MAAM,MAAM;;;;;;EAajB,CAAC;AAEH,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"IconBillboard.css.d.ts","sourceRoot":"","sources":["../../lib/IconBillboard/IconBillboard.css.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAU,MAAM,0BAA0B,CAAC;AAGlE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;EA2BpB,CAAC;AAEH,eAAO,MAAM,MAAM;;;;;;EAajB,CAAC;AAEH,eAAO,MAAM,cAAc,QAGzB,CAAC;AAEH,eAAO,MAAM,MAAM,QAKjB,CAAC;AAEH,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;EA2BhB,CAAC;AAEH,eAAO,MAAM,OAAO,QAIlB,CAAC;AAEH,eAAO,MAAM,IAAI,QAKf,CAAC;AAEH,eAAO,MAAM,QAAQ,QAKnB,CAAC;AAEH,eAAO,MAAM,OAAO,QAelB,CAAC;AAEH,eAAO,MAAM,YAAY,QAKvB,CAAC;AAMH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;EAqBzB,CAAC;AAEH,eAAO,MAAM,iBAAiB,QAI5B,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC,OAAO,SAAS,CAAC,CAAC;AACjE,MAAM,MAAM,cAAc,GAAG,cAAc,CAAC,OAAO,MAAM,CAAC,CAAC"}
|
|
@@ -2,22 +2,28 @@
|
|
|
2
2
|
import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
3
3
|
var container = createRuntimeFn({ defaultClassName: "_1r4ovbu0", variantClassNames: { variant: { primary: "_1r4ovbu1", secondary: "_1r4ovbu2", tertiary: "_1r4ovbu3", quaternary: "_1r4ovbu4" } }, defaultVariants: {}, compoundVariants: [] });
|
|
4
4
|
var layout = createRuntimeFn({ defaultClassName: "_1r4ovbu5", variantClassNames: { side: { true: "_1r4ovbu6" } }, defaultVariants: {}, compoundVariants: [] });
|
|
5
|
-
var
|
|
5
|
+
var billboard_icon = "_1r4ovbu7";
|
|
6
6
|
var header = "_1r4ovbu8";
|
|
7
7
|
var title = createRuntimeFn({ defaultClassName: "_1r4ovbu9", variantClassNames: { variant: { primary: "_1r4ovbua", secondary: "_1r4ovbub", tertiary: "_1r4ovbuc", quaternary: "_1r4ovbud" } }, defaultVariants: {}, compoundVariants: [] });
|
|
8
8
|
var content = "_1r4ovbue";
|
|
9
9
|
var list = "_1r4ovbuf";
|
|
10
10
|
var listItem = "_1r4ovbug";
|
|
11
11
|
var buttons = "_1r4ovbuh";
|
|
12
|
+
var section_text = "_1r4ovbui";
|
|
13
|
+
var header_section = createRuntimeFn({ defaultClassName: "_1r4ovbuj", variantClassNames: { variant: { primary: "_1r4ovbuk", secondary: "_1r4ovbul", tertiary: "_1r4ovbum", quaternary: "_1r4ovbun" } }, defaultVariants: {}, compoundVariants: [] });
|
|
14
|
+
var section_container = "_1r4ovbuo";
|
|
12
15
|
export {
|
|
16
|
+
billboard_icon,
|
|
13
17
|
buttons,
|
|
14
18
|
container,
|
|
15
19
|
content,
|
|
16
20
|
header,
|
|
17
|
-
|
|
21
|
+
header_section,
|
|
18
22
|
layout,
|
|
19
23
|
list,
|
|
20
24
|
listItem,
|
|
25
|
+
section_container,
|
|
26
|
+
section_text,
|
|
21
27
|
title
|
|
22
28
|
};
|
|
23
29
|
//# sourceMappingURL=IconBillboard.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconBillboard.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"IconBillboard.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ChevronProps } from '../Chevron/Chevron.interface';
|
|
2
|
+
import { QuaternaryTypes, SecondaryTypes } from '../utils/variant.types';
|
|
3
|
+
import { ReactNode } from "react";
|
|
4
|
+
export interface IconBillboardSet {
|
|
5
|
+
id: string;
|
|
6
|
+
headline: ReactNode | string;
|
|
7
|
+
variant: QuaternaryTypes;
|
|
8
|
+
bodyCopy: ReactNode | string;
|
|
9
|
+
iconBillboards: IconBillboard[];
|
|
10
|
+
additionalDetails: ReactNode | string;
|
|
11
|
+
side: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface IconBillboard {
|
|
14
|
+
id?: string;
|
|
15
|
+
icon?: ImageInterface;
|
|
16
|
+
headline?: ReactNode | undefined;
|
|
17
|
+
bodyCopy?: ReactNode | undefined;
|
|
18
|
+
bullets: Bullet[];
|
|
19
|
+
callToActionRow: ChevronProps[];
|
|
20
|
+
}
|
|
21
|
+
export interface Bullet {
|
|
22
|
+
id: string;
|
|
23
|
+
variant: SecondaryTypes;
|
|
24
|
+
icon: {
|
|
25
|
+
src: string;
|
|
26
|
+
altText?: string;
|
|
27
|
+
};
|
|
28
|
+
copy: string | ReactNode;
|
|
29
|
+
}
|
|
30
|
+
export interface ImageInterface {
|
|
31
|
+
src: string;
|
|
32
|
+
alt?: string;
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=IconBillboard.interface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconBillboard.interface.d.ts","sourceRoot":"","sources":["../../lib/IconBillboard/IconBillboard.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC3E,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,SAAS,GAAG,MAAM,CAAC;IAC7B,OAAO,EAAE,eAAe,CAAC;IACzB,QAAQ,EAAE,SAAS,GAAG,MAAM,CAAC;IAC7B,cAAc,EAAE,aAAa,EAAE,CAAC;IAChC,iBAAiB,EAAE,SAAS,GAAG,MAAM,CAAC;IACtC,IAAI,EAAE,OAAO,CAAC;CACf;AAED,MAAM,WAAW,aAAa;IAC5B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,QAAQ,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;IACjC,QAAQ,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;IACjC,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,eAAe,EAAE,YAAY,EAAE,CAAC;CACjC;AAED,MAAM,WAAW,MAAM;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,cAAc,CAAC;IACxB,IAAI,EAAE;QACJ,GAAG,EAAE,MAAM,CAAC;QACZ,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC;IACF,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;CAC1B;AAED,MAAM,WAAW,cAAc;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,CAAC,EAAE,MAAM,CAAC;CACd"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconBillboard.interface.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export interface FocusProps {
|
|
4
|
-
icon?: ReactNode;
|
|
5
|
-
headline: ReactNode | undefined;
|
|
6
|
-
body: ReactNode | undefined;
|
|
7
|
-
items: {
|
|
8
|
-
id: string;
|
|
9
|
-
content: ReactNode;
|
|
10
|
-
}[];
|
|
11
|
-
}
|
|
12
|
-
export declare const IconBillboard: (props: FocusProps & ContainerVariants & LayoutVariants) => import("react/jsx-dev-runtime").JSX.Element;
|
|
1
|
+
import { IconBillboardSet } from "./IconBillboard.interface";
|
|
2
|
+
export declare const IconBillboard: ({ variant, side, iconBillboards, headline, bodyCopy, additionalDetails, }: IconBillboardSet) => import("react/jsx-runtime").JSX.Element;
|
|
13
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/IconBillboard/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/IconBillboard/index.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAE7D,eAAO,MAAM,aAAa,8EAOvB,gBAAgB,4CA2FlB,CAAC"}
|
|
@@ -1,31 +1,78 @@
|
|
|
1
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
1
|
+
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { BulletItem } from "../BulletItem/BulletItem.js";
|
|
3
|
+
import { Chevron } from "../Chevron/index.js";
|
|
4
|
+
import { getVariant } from "../utils/getVariant.js";
|
|
3
5
|
import { Button } from "../Button/index.js";
|
|
4
|
-
import { container, layout,
|
|
5
|
-
const IconBillboard = (
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
return /* @__PURE__ */ jsxs("
|
|
15
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
16
|
-
/* @__PURE__ */ jsx(
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
6
|
+
import { section_text, header_section, section_container, container, layout, billboard_icon, content, header, title, list, buttons } from "./IconBillboard.css.js";
|
|
7
|
+
const IconBillboard = ({
|
|
8
|
+
variant,
|
|
9
|
+
side = false,
|
|
10
|
+
iconBillboards,
|
|
11
|
+
headline,
|
|
12
|
+
bodyCopy,
|
|
13
|
+
additionalDetails
|
|
14
|
+
}) => {
|
|
15
|
+
const billboard_variant = getVariant(variant);
|
|
16
|
+
return /* @__PURE__ */ jsxs("section", { className: "containment section_spacer", children: [
|
|
17
|
+
(headline || bodyCopy) && /* @__PURE__ */ jsxs("div", { className: section_text, children: [
|
|
18
|
+
headline && /* @__PURE__ */ jsx(
|
|
19
|
+
"h2",
|
|
20
|
+
{
|
|
21
|
+
className: `header_2 ${header_section({ variant: billboard_variant })}`,
|
|
22
|
+
children: headline
|
|
23
|
+
}
|
|
24
|
+
),
|
|
25
|
+
bodyCopy && /* @__PURE__ */ jsx(Fragment, { children: bodyCopy })
|
|
24
26
|
] }),
|
|
25
|
-
/* @__PURE__ */
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
/* @__PURE__ */ jsx("div", { className: section_container, children: iconBillboards.map(
|
|
28
|
+
({ id, icon, headline: headline2, bodyCopy: bodyCopy2, bullets, callToActionRow }) => /* @__PURE__ */ jsxs("div", { className: container({ variant }), children: [
|
|
29
|
+
/* @__PURE__ */ jsxs("div", { className: layout({ side }), children: [
|
|
30
|
+
icon && /* @__PURE__ */ jsx("div", { className: billboard_icon, children: /* @__PURE__ */ jsx(
|
|
31
|
+
"img",
|
|
32
|
+
{
|
|
33
|
+
src: icon.src,
|
|
34
|
+
className: "img_fluid",
|
|
35
|
+
alt: icon.alt
|
|
36
|
+
}
|
|
37
|
+
) }),
|
|
38
|
+
/* @__PURE__ */ jsxs("div", { className: content, children: [
|
|
39
|
+
/* @__PURE__ */ jsxs("div", { className: header, children: [
|
|
40
|
+
/* @__PURE__ */ jsx("div", { className: title({ variant }), children: headline2 }),
|
|
41
|
+
/* @__PURE__ */ jsx("div", { children: bodyCopy2 })
|
|
42
|
+
] }),
|
|
43
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx("ul", { className: list, children: bullets.map((item) => /* @__PURE__ */ jsx(BulletItem, { children: item.copy }, item.id)) }) })
|
|
44
|
+
] })
|
|
45
|
+
] }),
|
|
46
|
+
callToActionRow && /* @__PURE__ */ jsx("div", { className: buttons, children: callToActionRow.map(
|
|
47
|
+
({
|
|
48
|
+
id: id2,
|
|
49
|
+
variant: variant2,
|
|
50
|
+
displayText,
|
|
51
|
+
targetUrl,
|
|
52
|
+
type
|
|
53
|
+
}) => type === "Button" ? /* @__PURE__ */ jsx(
|
|
54
|
+
Button,
|
|
55
|
+
{
|
|
56
|
+
targetUrl,
|
|
57
|
+
color: getVariant(variant2),
|
|
58
|
+
size: "medium",
|
|
59
|
+
rounded: "medium",
|
|
60
|
+
children: displayText
|
|
61
|
+
},
|
|
62
|
+
id2
|
|
63
|
+
) : /* @__PURE__ */ jsx(
|
|
64
|
+
Chevron,
|
|
65
|
+
{
|
|
66
|
+
targetUrl,
|
|
67
|
+
variant: getVariant(variant2),
|
|
68
|
+
children: displayText
|
|
69
|
+
},
|
|
70
|
+
id2
|
|
71
|
+
)
|
|
72
|
+
) })
|
|
73
|
+
] }, id)
|
|
74
|
+
) }),
|
|
75
|
+
additionalDetails && /* @__PURE__ */ jsx("div", { className: section_text, children: /* @__PURE__ */ jsx(Fragment, { children: additionalDetails }) })
|
|
29
76
|
] });
|
|
30
77
|
};
|
|
31
78
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../lib/IconBillboard/index.tsx"],"sourcesContent":["\"use client\";\nimport { BulletItem } from \"@lib/BulletItem\";\nimport {
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../lib/IconBillboard/index.tsx"],"sourcesContent":["\"use client\";\nimport { BulletItem } from \"@lib/BulletItem\";\nimport { Chevron } from \"@lib/Chevron\";\nimport { ChevronProps } from \"@lib/Chevron/Chevron.interface\";\nimport { getVariant } from \"@lib/utils/getVariant\";\nimport { Button } from \"../Button\";\nimport {\n billboard_icon,\n buttons,\n container,\n content,\n header,\n header_section,\n layout,\n list,\n section_container,\n section_text,\n title,\n} from \"./IconBillboard.css\";\nimport { IconBillboardSet } from \"./IconBillboard.interface\";\n\nexport const IconBillboard = ({\n variant,\n side = false,\n iconBillboards,\n headline,\n bodyCopy,\n additionalDetails,\n}: IconBillboardSet) => {\n const billboard_variant = getVariant(variant);\n\n return (\n <section className=\"containment section_spacer\">\n {(headline || bodyCopy) && (\n <div className={section_text}>\n {headline && (\n <h2\n className={`header_2 ${header_section({ variant: billboard_variant })}`}\n >\n {headline}\n </h2>\n )}\n\n {bodyCopy && <>{bodyCopy}</>}\n </div>\n )}\n\n <div className={section_container}>\n {iconBillboards.map(\n ({ id, icon, headline, bodyCopy, bullets, callToActionRow }) => (\n <div key={id} className={container({ variant })}>\n <div className={layout({ side })}>\n {icon && (\n <div className={billboard_icon}>\n <img\n src={icon.src}\n className=\"img_fluid\"\n alt={icon.alt}\n ></img>\n </div>\n )}\n <div className={content}>\n <div className={header}>\n <div className={title({ variant })}>{headline}</div>\n <div>{bodyCopy}</div>\n </div>\n <div>\n <ul className={list}>\n {bullets.map((item) => (\n <BulletItem key={item.id}>{item.copy}</BulletItem>\n ))}\n </ul>\n </div>\n </div>\n </div>\n {callToActionRow && (\n <div className={buttons}>\n {callToActionRow.map(\n ({\n id,\n variant,\n displayText,\n targetUrl,\n type,\n }: ChevronProps) =>\n type === \"Button\" ? (\n <Button\n key={id}\n targetUrl={targetUrl}\n color={getVariant(variant)}\n size=\"medium\"\n rounded=\"medium\"\n >\n {displayText}\n </Button>\n ) : (\n <Chevron\n key={id}\n targetUrl={targetUrl}\n variant={getVariant(variant)}\n >\n {displayText}\n </Chevron>\n )\n )}\n </div>\n )}\n </div>\n )\n )}\n </div>\n\n {additionalDetails && (\n <div className={section_text}>\n <>{additionalDetails}</>\n </div>\n )}\n </section>\n );\n};\n"],"names":["headline","bodyCopy","id","variant"],"mappings":";;;;;;AAqBO,MAAM,gBAAgB,CAAC;AAAA,EAC5B;AAAA,EACA,OAAO;AAAA,EACP;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAwB;AAChB,QAAA,oBAAoB,WAAW,OAAO;AAG1C,SAAA,qBAAC,WAAQ,EAAA,WAAU,8BACf,UAAA;AAAA,KAAA,YAAY,aACZ,qBAAC,OAAI,EAAA,WAAW,cACb,UAAA;AAAA,MACC,YAAA;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,WAAW,YAAY,eAAe,EAAE,SAAS,kBAAmB,CAAA,CAAC;AAAA,UAEpE,UAAA;AAAA,QAAA;AAAA,MACH;AAAA,MAGD,4CAAe,UAAS,SAAA,CAAA;AAAA,IAAA,GAC3B;AAAA,IAGD,oBAAA,OAAA,EAAI,WAAW,mBACb,UAAe,eAAA;AAAA,MACd,CAAC,EAAE,IAAI,MAAM,UAAAA,WAAU,UAAAC,WAAU,SAAS,gBAAgB,2BACvD,OAAa,EAAA,WAAW,UAAU,EAAE,QAAA,CAAS,GAC5C,UAAA;AAAA,QAAA,qBAAC,SAAI,WAAW,OAAO,EAAE,KAAA,CAAM,GAC5B,UAAA;AAAA,UACC,QAAA,oBAAC,OAAI,EAAA,WAAW,gBACd,UAAA;AAAA,YAAC;AAAA,YAAA;AAAA,cACC,KAAK,KAAK;AAAA,cACV,WAAU;AAAA,cACV,KAAK,KAAK;AAAA,YAAA;AAAA,UAAA,GAEd;AAAA,UAEF,qBAAC,OAAI,EAAA,WAAW,SACd,UAAA;AAAA,YAAC,qBAAA,OAAA,EAAI,WAAW,QACd,UAAA;AAAA,cAAC,oBAAA,OAAA,EAAI,WAAW,MAAM,EAAE,SAAS,GAAI,UAAAD,WAAS;AAAA,cAC9C,oBAAC,OAAK,EAAA,UAAAC,UAAS,CAAA;AAAA,YAAA,GACjB;AAAA,gCACC,OACC,EAAA,UAAA,oBAAC,QAAG,WAAW,MACZ,kBAAQ,IAAI,CAAC,SACZ,oBAAC,cAA0B,UAAK,KAAA,KAAA,GAAf,KAAK,EAAe,CACtC,GACH,EACF,CAAA;AAAA,UAAA,GACF;AAAA,QAAA,GACF;AAAA,QACC,mBACC,oBAAC,OAAI,EAAA,WAAW,SACb,UAAgB,gBAAA;AAAA,UACf,CAAC;AAAA,YACC,IAAAC;AAAAA,YACA,SAAAC;AAAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,UAAA,MAEA,SAAS,WACP;AAAA,YAAC;AAAA,YAAA;AAAA,cAEC;AAAA,cACA,OAAO,WAAWA,QAAO;AAAA,cACzB,MAAK;AAAA,cACL,SAAQ;AAAA,cAEP,UAAA;AAAA,YAAA;AAAA,YANID;AAAAA,UAAA,IASP;AAAA,YAAC;AAAA,YAAA;AAAA,cAEC;AAAA,cACA,SAAS,WAAWC,QAAO;AAAA,cAE1B,UAAA;AAAA,YAAA;AAAA,YAJID;AAAAA,UAKP;AAAA,QAAA,GAGR;AAAA,MAAA,EAAA,GAvDM,EAyDV;AAAA,IAAA,GAGN;AAAA,IAEC,qBACE,oBAAA,OAAA,EAAI,WAAW,cACd,UAAA,oBAAA,UAAA,EAAG,6BAAkB,EACvB,CAAA;AAAA,EAEJ,EAAA,CAAA;AAEJ;"}
|