@conduction/components 2.2.48 → 2.2.49
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 +1 -0
- package/lib/index.d.ts +1 -2
- package/lib/index.js +1 -2
- package/package.json +1 -1
- package/src/index.ts +0 -2
- package/lib/components/jumbotron/Jumbotron.d.ts +0 -23
- package/lib/components/jumbotron/Jumbotron.js +0 -34
- package/lib/components/jumbotron/Jumbotron.module.css +0 -88
- package/src/components/jumbotron/Jumbotron.module.css +0 -88
- package/src/components/jumbotron/Jumbotron.tsx +0 -151
package/README.md
CHANGED
package/lib/index.d.ts
CHANGED
|
@@ -24,6 +24,5 @@ import { ToolTip } from "./components/toolTip/ToolTip";
|
|
|
24
24
|
import { Pagination } from "./components/Pagination/Pagination";
|
|
25
25
|
import { Tabs, TabList, Tab, TabPanel } from "./components/tabs/Tabs";
|
|
26
26
|
import { HorizontalOverflowWrapper } from "./components/horizontalOverflowWrapper/HorizontalOverflowWrapper";
|
|
27
|
-
import { Jumbotron } from "./components/jumbotron/Jumbotron";
|
|
28
27
|
import DisplaySwitch from "./components/displaySwitch/DisplaySwitch";
|
|
29
|
-
export { DownloadCard, HorizontalImageCard, ImageAndDetailsCard, DetailsCard, InfoCard, Container, Breadcrumbs, InputText, InputPassword, InputEmail, InputDate, InputNumber, InputFile, Textarea, InputCheckbox, SelectMultiple, SelectSingle, ImageDivider, Logo, MetaIcon, PrivateRoute, PrimaryTopNav, SecondaryTopNav, Tag, NotificationPopUp, QuoteWrapper, Pagination, BadgeCounter, CodeBlock, ToolTip, CardWrapper, CardHeader, CardHeaderTitle, CardHeaderDate, Tabs, TabList, Tab, TabPanel, HorizontalOverflowWrapper,
|
|
28
|
+
export { DownloadCard, HorizontalImageCard, ImageAndDetailsCard, DetailsCard, InfoCard, Container, Breadcrumbs, InputText, InputPassword, InputEmail, InputDate, InputNumber, InputFile, Textarea, InputCheckbox, SelectMultiple, SelectSingle, ImageDivider, Logo, MetaIcon, PrivateRoute, PrimaryTopNav, SecondaryTopNav, Tag, NotificationPopUp, QuoteWrapper, Pagination, BadgeCounter, CodeBlock, ToolTip, CardWrapper, CardHeader, CardHeaderTitle, CardHeaderDate, Tabs, TabList, Tab, TabPanel, HorizontalOverflowWrapper, DisplaySwitch };
|
package/lib/index.js
CHANGED
|
@@ -17,6 +17,5 @@ import { ToolTip } from "./components/toolTip/ToolTip";
|
|
|
17
17
|
import { Pagination } from "./components/Pagination/Pagination";
|
|
18
18
|
import { Tabs, TabList, Tab, TabPanel } from "./components/tabs/Tabs";
|
|
19
19
|
import { HorizontalOverflowWrapper } from "./components/horizontalOverflowWrapper/HorizontalOverflowWrapper";
|
|
20
|
-
import { Jumbotron } from "./components/jumbotron/Jumbotron";
|
|
21
20
|
import DisplaySwitch from "./components/displaySwitch/DisplaySwitch";
|
|
22
|
-
export { DownloadCard, HorizontalImageCard, ImageAndDetailsCard, DetailsCard, InfoCard, Container, Breadcrumbs, InputText, InputPassword, InputEmail, InputDate, InputNumber, InputFile, Textarea, InputCheckbox, SelectMultiple, SelectSingle, ImageDivider, Logo, MetaIcon, PrivateRoute, PrimaryTopNav, SecondaryTopNav, Tag, NotificationPopUp, QuoteWrapper, Pagination, BadgeCounter, CodeBlock, ToolTip, CardWrapper, CardHeader, CardHeaderTitle, CardHeaderDate, Tabs, TabList, Tab, TabPanel, HorizontalOverflowWrapper,
|
|
21
|
+
export { DownloadCard, HorizontalImageCard, ImageAndDetailsCard, DetailsCard, InfoCard, Container, Breadcrumbs, InputText, InputPassword, InputEmail, InputDate, InputNumber, InputFile, Textarea, InputCheckbox, SelectMultiple, SelectSingle, ImageDivider, Logo, MetaIcon, PrivateRoute, PrimaryTopNav, SecondaryTopNav, Tag, NotificationPopUp, QuoteWrapper, Pagination, BadgeCounter, CodeBlock, ToolTip, CardWrapper, CardHeader, CardHeaderTitle, CardHeaderDate, Tabs, TabList, Tab, TabPanel, HorizontalOverflowWrapper, DisplaySwitch };
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -41,7 +41,6 @@ import { ToolTip } from "./components/toolTip/ToolTip";
|
|
|
41
41
|
import { Pagination } from "./components/Pagination/Pagination";
|
|
42
42
|
import { Tabs, TabList, Tab, TabPanel } from "./components/tabs/Tabs";
|
|
43
43
|
import { HorizontalOverflowWrapper } from "./components/horizontalOverflowWrapper/HorizontalOverflowWrapper";
|
|
44
|
-
import { Jumbotron } from "./components/jumbotron/Jumbotron";
|
|
45
44
|
import DisplaySwitch from "./components/displaySwitch/DisplaySwitch";
|
|
46
45
|
|
|
47
46
|
export {
|
|
@@ -84,6 +83,5 @@ export {
|
|
|
84
83
|
Tab,
|
|
85
84
|
TabPanel,
|
|
86
85
|
HorizontalOverflowWrapper,
|
|
87
|
-
Jumbotron,
|
|
88
86
|
DisplaySwitch
|
|
89
87
|
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
interface JumbotronProps {
|
|
3
|
-
title: string;
|
|
4
|
-
ariaLabel: {
|
|
5
|
-
container: string;
|
|
6
|
-
card: string;
|
|
7
|
-
};
|
|
8
|
-
role: string;
|
|
9
|
-
subTitle?: string;
|
|
10
|
-
description?: string;
|
|
11
|
-
image?: {
|
|
12
|
-
placement: "false" | "background" | "right";
|
|
13
|
-
url: string;
|
|
14
|
-
};
|
|
15
|
-
isCard?: boolean;
|
|
16
|
-
container?: boolean;
|
|
17
|
-
searchForm?: {
|
|
18
|
-
element: JSX.Element;
|
|
19
|
-
show: boolean;
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
export declare const Jumbotron: React.FC<JumbotronProps>;
|
|
23
|
-
export {};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import * as styles from "./Jumbotron.module.css";
|
|
3
|
-
import clsx from "clsx";
|
|
4
|
-
import { Paragraph, Page, PageContent, Heading1, Image } from "@utrecht/component-library-react/dist/css-module";
|
|
5
|
-
import { Container } from "../container/Container";
|
|
6
|
-
import { CardWrapper } from "../card";
|
|
7
|
-
export const Jumbotron = ({ title, ariaLabel, role, subTitle, description, image, isCard, searchForm, container, }) => {
|
|
8
|
-
return (_jsx(OptionalContainer, { container, children: _jsx("div", { "aria-label": ariaLabel.container, role: role, style: {
|
|
9
|
-
backgroundImage: image?.placement === "background" ? `url(${image.url})` : "",
|
|
10
|
-
}, className: clsx(image?.placement === "background" && styles.backgroundImageWrapper, image?.placement === "right" && styles.rightImageWrapper), children: _jsx(Page, { children: _jsx(PageContent, { children: _jsx(ImageContainer, { image: { placement: image?.placement ?? "false", url: image?.url ?? "" }, children: _jsxs(SearchForm, { searchForm: { show: searchForm?.show ?? false, element: searchForm?.element ?? _jsx(_Fragment, {}) }, children: [isCard && (_jsx(JumbotronCard, { title, ariaLabel, role, subTitle, description, image, isCard, searchForm })), !isCard && (_jsx(JumbotronContent, { title, ariaLabel, role, subTitle, description, image, isCard, searchForm }))] }) }) }) }) }) }));
|
|
11
|
-
};
|
|
12
|
-
const OptionalContainer = ({ children, container }) => {
|
|
13
|
-
if (container === true)
|
|
14
|
-
return _jsx(Container, { layoutClassName: styles.wrapper, children: children });
|
|
15
|
-
return _jsx(_Fragment, { children: children });
|
|
16
|
-
};
|
|
17
|
-
const ImageContainer = ({ children, image }) => {
|
|
18
|
-
if (image.placement === "right")
|
|
19
|
-
return (_jsxs("div", { className: styles.imageRightContainer, children: [children, _jsx(Image, { src: image.url, alt: "jumbotron-image", className: styles.image })] }));
|
|
20
|
-
if (image.placement === "false" || image.placement === "background")
|
|
21
|
-
return _jsx(_Fragment, { children: children });
|
|
22
|
-
return _jsx(_Fragment, { children: children });
|
|
23
|
-
};
|
|
24
|
-
const SearchForm = ({ children, searchForm, }) => {
|
|
25
|
-
if (searchForm.show)
|
|
26
|
-
return (_jsxs("section", { className: clsx(styles.headerSearchForm), children: [children, searchForm.element] }));
|
|
27
|
-
return _jsx(_Fragment, { children: children });
|
|
28
|
-
};
|
|
29
|
-
const JumbotronCard = ({ title, ariaLabel, subTitle, description, image, searchForm }) => {
|
|
30
|
-
return (_jsxs(CardWrapper, { "aria-label": ariaLabel.card, role: "contentinfo", className: styles.card, children: [_jsxs(Heading1, { className: clsx(image?.placement === "right" ? styles.cardAndImageTitle : styles.cardTitle), children: [title, " "] }), _jsx("span", { className: styles.cardSubTitle, children: subTitle }), _jsx(Paragraph, { className: styles.cardDescription, children: description })] }));
|
|
31
|
-
};
|
|
32
|
-
const JumbotronContent = ({ title, subTitle, description, image, searchForm }) => {
|
|
33
|
-
return (_jsxs("div", { children: [_jsx(Heading1, { className: clsx(clsx(styles.title, !subTitle && styles.titleSingle)), children: title }), subTitle && _jsx("span", { className: styles.subTitle, children: subTitle }), description && _jsx(Paragraph, { className: styles.description, children: description })] }));
|
|
34
|
-
};
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
.wrapper {
|
|
2
|
-
padding-block-start: 72px;
|
|
3
|
-
padding-block-end: 72px;
|
|
4
|
-
width: auto !important;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.backgroundImageWrapper {
|
|
8
|
-
background-size: cover;
|
|
9
|
-
background-position: 48% 39%;
|
|
10
|
-
max-width: 100%;
|
|
11
|
-
padding: 5rem 0 10rem;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.rightImageWrapper {
|
|
15
|
-
padding-block: 48px;
|
|
16
|
-
background-color: var(--utrecht-page-header-background-color) !important;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.imageRightContainer {
|
|
20
|
-
display: flex;
|
|
21
|
-
margin: auto;
|
|
22
|
-
justify-content: space-between;
|
|
23
|
-
gap: var(--utrecht-space-inline-xl);
|
|
24
|
-
align-items: center;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.headerSearchForm > *:not(:last-child) {
|
|
28
|
-
margin-block-end: 32px;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.headerSearchForm > .subHeading2 {
|
|
32
|
-
width: 100%;
|
|
33
|
-
max-width: 800px;
|
|
34
|
-
margin-block-end: 48px;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.card {
|
|
38
|
-
width: fit-content;
|
|
39
|
-
padding-inline-start: 48px;
|
|
40
|
-
padding-inline-end: 48px;
|
|
41
|
-
padding-block-start: 40px;
|
|
42
|
-
padding-block-end: 40px;
|
|
43
|
-
border-bottom: var(--conduction-card-wrapper-border-width) var(--conduction-card-wrapper-border-style) var(--conduction-card-wrapper-border-color);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.card:hover {
|
|
47
|
-
background-color: var(--conduction-card-wrapper-background-color);
|
|
48
|
-
cursor: default;
|
|
49
|
-
border-bottom: var(--conduction-card-wrapper-border-width) var(--conduction-card-wrapper-border-style) var(--conduction-card-wrapper-border-color);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.cardTitle,
|
|
53
|
-
.cardAndImageTitle {
|
|
54
|
-
border-block-end: var(--conduction-card-wrapper-header-border-block-end);
|
|
55
|
-
color: var(--conduction-card-header-title-color, var(--conduction-card-wrapper-color)) !important;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.cardAndImageTitle {
|
|
59
|
-
width: max-content;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.cardSubTitle,
|
|
63
|
-
.subTitle {
|
|
64
|
-
position: relative;
|
|
65
|
-
font-style: italic;
|
|
66
|
-
display: block;
|
|
67
|
-
margin-block-end: var(--utrecht-space-block-md);
|
|
68
|
-
font-size: var(--utrecht-document-font-size);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.cardDescription {
|
|
72
|
-
color: var(--conduction-card-wrapper-color) !important;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.image {
|
|
76
|
-
width: 50% !important;
|
|
77
|
-
object-fit: contain;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.title,
|
|
81
|
-
.description,
|
|
82
|
-
.subTitle {
|
|
83
|
-
color: var(--utrecht-page-header-color) !important;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.titleSingle {
|
|
87
|
-
margin-block-end: var(--utrecht-space-block-2xs);
|
|
88
|
-
}
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
.wrapper {
|
|
2
|
-
padding-block-start: 72px;
|
|
3
|
-
padding-block-end: 72px;
|
|
4
|
-
width: auto !important;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.backgroundImageWrapper {
|
|
8
|
-
background-size: cover;
|
|
9
|
-
background-position: 48% 39%;
|
|
10
|
-
max-width: 100%;
|
|
11
|
-
padding: 5rem 0 10rem;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.rightImageWrapper {
|
|
15
|
-
padding-block: 48px;
|
|
16
|
-
background-color: var(--utrecht-page-header-background-color) !important;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.imageRightContainer {
|
|
20
|
-
display: flex;
|
|
21
|
-
margin: auto;
|
|
22
|
-
justify-content: space-between;
|
|
23
|
-
gap: var(--utrecht-space-inline-xl);
|
|
24
|
-
align-items: center;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.headerSearchForm > *:not(:last-child) {
|
|
28
|
-
margin-block-end: 32px;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.headerSearchForm > .subHeading2 {
|
|
32
|
-
width: 100%;
|
|
33
|
-
max-width: 800px;
|
|
34
|
-
margin-block-end: 48px;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.card {
|
|
38
|
-
width: fit-content;
|
|
39
|
-
padding-inline-start: 48px;
|
|
40
|
-
padding-inline-end: 48px;
|
|
41
|
-
padding-block-start: 40px;
|
|
42
|
-
padding-block-end: 40px;
|
|
43
|
-
border-bottom: var(--conduction-card-wrapper-border-width) var(--conduction-card-wrapper-border-style) var(--conduction-card-wrapper-border-color);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.card:hover {
|
|
47
|
-
background-color: var(--conduction-card-wrapper-background-color);
|
|
48
|
-
cursor: default;
|
|
49
|
-
border-bottom: var(--conduction-card-wrapper-border-width) var(--conduction-card-wrapper-border-style) var(--conduction-card-wrapper-border-color);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.cardTitle,
|
|
53
|
-
.cardAndImageTitle {
|
|
54
|
-
border-block-end: var(--conduction-card-wrapper-header-border-block-end);
|
|
55
|
-
color: var(--conduction-card-header-title-color, var(--conduction-card-wrapper-color)) !important;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.cardAndImageTitle {
|
|
59
|
-
width: max-content;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.cardSubTitle,
|
|
63
|
-
.subTitle {
|
|
64
|
-
position: relative;
|
|
65
|
-
font-style: italic;
|
|
66
|
-
display: block;
|
|
67
|
-
margin-block-end: var(--utrecht-space-block-md);
|
|
68
|
-
font-size: var(--utrecht-document-font-size);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.cardDescription {
|
|
72
|
-
color: var(--conduction-card-wrapper-color) !important;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.image {
|
|
76
|
-
width: 50% !important;
|
|
77
|
-
object-fit: contain;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.title,
|
|
81
|
-
.description,
|
|
82
|
-
.subTitle {
|
|
83
|
-
color: var(--utrecht-page-header-color) !important;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.titleSingle {
|
|
87
|
-
margin-block-end: var(--utrecht-space-block-2xs);
|
|
88
|
-
}
|
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import * as styles from "./Jumbotron.module.css";
|
|
3
|
-
import clsx from "clsx";
|
|
4
|
-
import { Paragraph, Page, PageContent, Heading1, Image } from "@utrecht/component-library-react/dist/css-module";
|
|
5
|
-
import { Container } from "../container/Container";
|
|
6
|
-
import { CardWrapper } from "../card";
|
|
7
|
-
|
|
8
|
-
interface JumbotronProps {
|
|
9
|
-
title: string;
|
|
10
|
-
ariaLabel: {
|
|
11
|
-
container: string;
|
|
12
|
-
card: string;
|
|
13
|
-
};
|
|
14
|
-
role: string;
|
|
15
|
-
subTitle?: string;
|
|
16
|
-
description?: string;
|
|
17
|
-
image?: {
|
|
18
|
-
placement: "false" | "background" | "right";
|
|
19
|
-
url: string;
|
|
20
|
-
};
|
|
21
|
-
isCard?: boolean;
|
|
22
|
-
container?: boolean;
|
|
23
|
-
searchForm?: {
|
|
24
|
-
element: JSX.Element;
|
|
25
|
-
show: boolean;
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export const Jumbotron: React.FC<JumbotronProps> = ({
|
|
30
|
-
title,
|
|
31
|
-
ariaLabel,
|
|
32
|
-
role,
|
|
33
|
-
subTitle,
|
|
34
|
-
description,
|
|
35
|
-
image,
|
|
36
|
-
isCard,
|
|
37
|
-
searchForm,
|
|
38
|
-
container,
|
|
39
|
-
}) => {
|
|
40
|
-
return (
|
|
41
|
-
<OptionalContainer {...{ container }}>
|
|
42
|
-
<div
|
|
43
|
-
aria-label={ariaLabel.container}
|
|
44
|
-
role={role}
|
|
45
|
-
style={{
|
|
46
|
-
backgroundImage: image?.placement === "background" ? `url(${image.url})` : "",
|
|
47
|
-
}}
|
|
48
|
-
className={clsx(
|
|
49
|
-
image?.placement === "background" && styles.backgroundImageWrapper,
|
|
50
|
-
image?.placement === "right" && styles.rightImageWrapper,
|
|
51
|
-
)}
|
|
52
|
-
>
|
|
53
|
-
<Page>
|
|
54
|
-
<PageContent>
|
|
55
|
-
<ImageContainer image={{ placement: image?.placement ?? "false", url: image?.url ?? "" }}>
|
|
56
|
-
<SearchForm searchForm={{ show: searchForm?.show ?? false, element: searchForm?.element ?? <></> }}>
|
|
57
|
-
{isCard && (
|
|
58
|
-
<JumbotronCard {...{ title, ariaLabel, role, subTitle, description, image, isCard, searchForm }} />
|
|
59
|
-
)}
|
|
60
|
-
{!isCard && (
|
|
61
|
-
<JumbotronContent {...{ title, ariaLabel, role, subTitle, description, image, isCard, searchForm }} />
|
|
62
|
-
)}
|
|
63
|
-
</SearchForm>
|
|
64
|
-
</ImageContainer>
|
|
65
|
-
</PageContent>
|
|
66
|
-
</Page>
|
|
67
|
-
</div>
|
|
68
|
-
</OptionalContainer>
|
|
69
|
-
);
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
interface ContainerProps {
|
|
73
|
-
children: React.ReactNode;
|
|
74
|
-
container: boolean | undefined;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
const OptionalContainer: React.FC<ContainerProps> = ({ children, container }) => {
|
|
78
|
-
if (container === true) return <Container layoutClassName={styles.wrapper}>{children}</Container>;
|
|
79
|
-
|
|
80
|
-
return <>{children}</>;
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
interface ImageContainerProps {
|
|
84
|
-
children: React.ReactNode;
|
|
85
|
-
image: {
|
|
86
|
-
placement: "false" | "background" | "right";
|
|
87
|
-
url: string;
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
const ImageContainer: React.FC<ImageContainerProps> = ({ children, image }) => {
|
|
92
|
-
if (image.placement === "right")
|
|
93
|
-
return (
|
|
94
|
-
<div className={styles.imageRightContainer}>
|
|
95
|
-
{children}
|
|
96
|
-
{<Image src={image.url} alt={"jumbotron-image"} className={styles.image} />}
|
|
97
|
-
</div>
|
|
98
|
-
);
|
|
99
|
-
|
|
100
|
-
if (image.placement === "false" || image.placement === "background") return <>{children}</>;
|
|
101
|
-
|
|
102
|
-
return <>{children}</>;
|
|
103
|
-
};
|
|
104
|
-
|
|
105
|
-
interface SearchFormProps {
|
|
106
|
-
children: React.ReactNode;
|
|
107
|
-
searchForm: {
|
|
108
|
-
element: JSX.Element;
|
|
109
|
-
show: boolean;
|
|
110
|
-
};
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
const SearchForm: React.FC<SearchFormProps> = ({
|
|
114
|
-
children,
|
|
115
|
-
|
|
116
|
-
searchForm,
|
|
117
|
-
}) => {
|
|
118
|
-
if (searchForm.show)
|
|
119
|
-
return (
|
|
120
|
-
<section className={clsx(styles.headerSearchForm)}>
|
|
121
|
-
{children}
|
|
122
|
-
{searchForm.element}
|
|
123
|
-
</section>
|
|
124
|
-
);
|
|
125
|
-
|
|
126
|
-
return <>{children}</>;
|
|
127
|
-
};
|
|
128
|
-
|
|
129
|
-
const JumbotronCard: React.FC<JumbotronProps> = ({ title, ariaLabel, subTitle, description, image, searchForm }) => {
|
|
130
|
-
return (
|
|
131
|
-
<CardWrapper aria-label={ariaLabel.card} role="contentinfo" className={styles.card}>
|
|
132
|
-
<Heading1 className={clsx(image?.placement === "right" ? styles.cardAndImageTitle : styles.cardTitle)}>
|
|
133
|
-
{title}{" "}
|
|
134
|
-
</Heading1>
|
|
135
|
-
<span className={styles.cardSubTitle}>{subTitle}</span>
|
|
136
|
-
|
|
137
|
-
<Paragraph className={styles.cardDescription}>{description}</Paragraph>
|
|
138
|
-
</CardWrapper>
|
|
139
|
-
);
|
|
140
|
-
};
|
|
141
|
-
|
|
142
|
-
const JumbotronContent: React.FC<JumbotronProps> = ({ title, subTitle, description, image, searchForm }) => {
|
|
143
|
-
return (
|
|
144
|
-
<div>
|
|
145
|
-
<Heading1 className={clsx(clsx(styles.title, !subTitle && styles.titleSingle))}>{title}</Heading1>
|
|
146
|
-
{subTitle && <span className={styles.subTitle}>{subTitle}</span>}
|
|
147
|
-
|
|
148
|
-
{description && <Paragraph className={styles.description}>{description}</Paragraph>}
|
|
149
|
-
</div>
|
|
150
|
-
);
|
|
151
|
-
};
|