@conduction/components 2.2.19 → 2.2.21
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/.prettierrc +30 -30
- package/README.md +5 -0
- package/lib/components/Pagination/Pagination.d.ts +14 -14
- package/lib/components/Pagination/Pagination.js +12 -12
- package/lib/components/badgeCounter/BadgeCounter.d.ts +8 -8
- package/lib/components/badgeCounter/BadgeCounter.js +4 -4
- package/lib/components/badgeCounter/BadgeCounter.module.css +27 -27
- package/lib/components/card/cardHeader/CardHeader.d.ts +4 -4
- package/lib/components/card/cardHeader/CardHeader.js +14 -14
- package/lib/components/card/cardHeader/CardHeader.module.css +10 -0
- package/lib/components/card/cardWrapper/CardWrapper.d.ts +2 -2
- package/lib/components/card/cardWrapper/CardWrapper.js +6 -6
- package/lib/components/card/cardWrapper/CardWrapper.module.css +1 -0
- package/lib/components/card/detailsCard/DetailsCard.d.ts +14 -14
- package/lib/components/card/detailsCard/DetailsCard.js +11 -11
- package/lib/components/card/downloadCard/DownloadCard.d.ts +11 -11
- package/lib/components/card/downloadCard/DownloadCard.js +9 -9
- package/lib/components/card/horizontalImageCard/HorizontalImageCard.d.ts +13 -13
- package/lib/components/card/horizontalImageCard/HorizontalImageCard.js +10 -10
- package/lib/components/card/imageAndDetailsCard/ImageAndDetailsCard.d.ts +14 -14
- package/lib/components/card/imageAndDetailsCard/ImageAndDetailsCard.js +10 -10
- package/lib/components/card/index.d.ts +8 -8
- package/lib/components/card/index.js +8 -8
- package/lib/components/card/infoCard/InfoCard.d.ts +8 -8
- package/lib/components/card/infoCard/InfoCard.js +6 -6
- package/lib/components/card/infoCard/InfoCard.module.css +26 -26
- package/lib/components/card/richContentCard/RichContentCard.d.ts +19 -19
- package/lib/components/card/richContentCard/RichContentCard.js +15 -16
- package/lib/components/card/richContentCard/RichContentCard.module.css +103 -93
- package/lib/components/codeBlock/CodeBlock.d.ts +6 -6
- package/lib/components/codeBlock/CodeBlock.js +3 -3
- package/lib/components/codeBlock/CodeBlock.module.css +6 -6
- package/lib/components/container/Container.d.ts +6 -6
- package/lib/components/container/Container.js +4 -4
- package/lib/components/denhaag-wrappers/breadcrumbs/Breadcrumbs.css +222 -222
- package/lib/components/denhaag-wrappers/breadcrumbs/Breadcrumbs.d.ts +17 -17
- package/lib/components/denhaag-wrappers/breadcrumbs/Breadcrumbs.js +20 -20
- package/lib/components/denhaag-wrappers/pagination/Pagination.css +120 -120
- package/lib/components/denhaag-wrappers/pagination/Pagination.d.ts +9 -9
- package/lib/components/denhaag-wrappers/pagination/Pagination.js +15 -15
- package/lib/components/editableTableRow/EditableTableRow.d.ts +14 -14
- package/lib/components/editableTableRow/EditableTableRow.js +31 -31
- package/lib/components/editableTableRow/EditableTableRow.module.css +25 -25
- package/lib/components/formFields/checkbox/Checkbox.module.css +7 -7
- package/lib/components/formFields/checkbox/checkbox.d.ts +9 -9
- package/lib/components/formFields/checkbox/checkbox.js +3 -3
- package/lib/components/formFields/createKeyValue/CreateKeyValue.d.ts +23 -23
- package/lib/components/formFields/createKeyValue/CreateKeyValue.js +40 -40
- package/lib/components/formFields/date/Date.d.ts +12 -12
- package/lib/components/formFields/date/Date.js +10 -10
- package/lib/components/formFields/date/Date.module.css +12 -12
- package/lib/components/formFields/errorMessage/ErrorMessage.d.ts +5 -5
- package/lib/components/formFields/errorMessage/ErrorMessage.js +3 -3
- package/lib/components/formFields/index.d.ts +7 -7
- package/lib/components/formFields/index.js +7 -7
- package/lib/components/formFields/input.d.ts +22 -22
- package/lib/components/formFields/input.js +12 -12
- package/lib/components/formFields/radio.d.ts +9 -9
- package/lib/components/formFields/radio.js +3 -3
- package/lib/components/formFields/select/select.d.ts +24 -24
- package/lib/components/formFields/select/select.js +74 -74
- package/lib/components/formFields/textarea.d.ts +10 -10
- package/lib/components/formFields/textarea.js +4 -4
- package/lib/components/formFields/types.d.ts +6 -6
- package/lib/components/formFields/types.js +1 -1
- package/lib/components/horizontalOverflowWrapper/HorizontalOverflowWrapper.d.ts +10 -10
- package/lib/components/horizontalOverflowWrapper/HorizontalOverflowWrapper.js +36 -36
- package/lib/components/htmlParser/ParsedHTML.d.ts +10 -0
- package/lib/components/htmlParser/ParsedHTML.js +17 -0
- package/lib/components/htmlParser/ParsedHTML.module.css +7 -0
- package/lib/components/htmlParser/parser/alert/getAlert.d.ts +1 -0
- package/lib/components/htmlParser/parser/alert/getAlert.js +18 -0
- package/lib/components/htmlParser/parser/alert/getAlert.module.css +28 -0
- package/lib/components/htmlParser/parser/anchor/getAnchor.d.ts +2 -0
- package/lib/components/htmlParser/parser/anchor/getAnchor.js +74 -0
- package/lib/components/htmlParser/parser/code/getCode.d.ts +1 -0
- package/lib/components/htmlParser/parser/code/getCode.js +11 -0
- package/lib/components/htmlParser/parser/getBlockquote/getBlockquote.d.ts +1 -0
- package/lib/components/htmlParser/parser/getBlockquote/getBlockquote.js +6 -0
- package/lib/components/htmlParser/parser/header/getHeader.d.ts +1 -0
- package/lib/components/htmlParser/parser/header/getHeader.js +15 -0
- package/lib/components/htmlParser/parser/image/getImage.d.ts +1 -0
- package/lib/components/htmlParser/parser/image/getImage.js +28 -0
- package/lib/components/htmlParser/parser/list/getList.d.ts +1 -0
- package/lib/components/htmlParser/parser/list/getList.js +12 -0
- package/lib/components/htmlParser/parser/list/getList.module.css +3 -0
- package/lib/components/htmlParser/parser/listItem/getListItem.d.ts +1 -0
- package/lib/components/htmlParser/parser/listItem/getListItem.js +12 -0
- package/lib/components/htmlParser/parser/paragraph/getParagraph.d.ts +1 -0
- package/lib/components/htmlParser/parser/paragraph/getParagraph.js +6 -0
- package/lib/components/htmlParser/parser/svg/getSvg.d.ts +1 -0
- package/lib/components/htmlParser/parser/svg/getSvg.js +8 -0
- package/lib/components/htmlParser/parser/table/getTable.d.ts +1 -0
- package/lib/components/htmlParser/parser/table/getTable.js +7 -0
- package/lib/components/htmlParser/parser/table/getTable.module.css +3 -0
- package/lib/components/htmlParser/parser/tableBody/getTableBody.d.ts +1 -0
- package/lib/components/htmlParser/parser/tableBody/getTableBody.js +7 -0
- package/lib/components/htmlParser/parser/tableBody/getTableBody.module.css +3 -0
- package/lib/components/htmlParser/parser/tableCell/getTableCell.d.ts +1 -0
- package/lib/components/htmlParser/parser/tableCell/getTableCell.js +7 -0
- package/lib/components/htmlParser/parser/tableCell/getTableCell.module.css +3 -0
- package/lib/components/htmlParser/parser/tableHeader/getTableHeader.d.ts +1 -0
- package/lib/components/htmlParser/parser/tableHeader/getTableHeader.js +7 -0
- package/lib/components/htmlParser/parser/tableHeader/getTableHeader.module.css +28 -0
- package/lib/components/htmlParser/parser/tableHeaderCell/getTableHeaderCell.d.ts +1 -0
- package/lib/components/htmlParser/parser/tableHeaderCell/getTableHeaderCell.js +6 -0
- package/lib/components/htmlParser/parser/tableRow/getTableRow.d.ts +1 -0
- package/lib/components/htmlParser/parser/tableRow/getTableRow.js +7 -0
- package/lib/components/htmlParser/parser/tableRow/getTableRow.module.css +29 -0
- package/lib/components/htmlParser/parser/useHtmlParser.d.ts +5 -0
- package/lib/components/htmlParser/parser/useHtmlParser.js +78 -0
- package/lib/components/htmlParser/useGitHubDirectories.d.ts +10 -0
- package/lib/components/htmlParser/useGitHubDirectories.js +31 -0
- package/lib/components/imageDivider/ImageDivider.d.ts +7 -7
- package/lib/components/imageDivider/ImageDivider.js +6 -6
- package/lib/components/imageDivider/imageDivider.module.css +5 -5
- package/lib/components/jumbotron/Jumbotron.d.ts +22 -0
- package/lib/components/jumbotron/Jumbotron.js +21 -0
- package/lib/components/jumbotron/Jumbotron.module.css +93 -0
- package/lib/components/logo/Logo.d.ts +8 -8
- package/lib/components/logo/Logo.js +10 -10
- package/lib/components/logo/Logo.module.css +15 -15
- package/lib/components/metaIcon/MetaIcon.d.ts +7 -7
- package/lib/components/metaIcon/MetaIcon.js +3 -3
- package/lib/components/metaIcon/MetaIcon.module.css +29 -29
- package/lib/components/notificationPopUp/NotificationPopUp.d.ts +26 -26
- package/lib/components/notificationPopUp/NotificationPopUp.js +32 -32
- package/lib/components/privateRoute/PrivateRoute.d.ts +6 -6
- package/lib/components/privateRoute/PrivateRoute.js +15 -15
- package/lib/components/quoteWrapper/QuoteWrapper.d.ts +7 -7
- package/lib/components/quoteWrapper/QuoteWrapper.js +5 -5
- package/lib/components/quoteWrapper/QuoteWrapper.module.css +12 -12
- package/lib/components/statusSteps/StatusSteps.d.ts +13 -0
- package/lib/components/statusSteps/StatusSteps.js +5 -0
- package/lib/components/tableWrapper/TableWrapper.d.ts +4 -0
- package/lib/components/tableWrapper/TableWrapper.js +30 -0
- package/lib/components/tableWrapper/TableWrapper.module.css +67 -0
- package/lib/components/tabs/Tabs.d.ts +5 -5
- package/lib/components/tabs/Tabs.js +49 -49
- package/lib/components/tag/Tag.d.ts +10 -10
- package/lib/components/tag/Tag.js +6 -6
- package/lib/components/tag/Tag.module.css +44 -44
- package/lib/components/toolTip/ToolTip.d.ts +14 -14
- package/lib/components/toolTip/ToolTip.js +14 -14
- package/lib/components/topNav/index.d.ts +3 -3
- package/lib/components/topNav/index.js +3 -3
- package/lib/components/topNav/primaryTopNav/PrimaryTopNav.d.ts +39 -22
- package/lib/components/topNav/primaryTopNav/PrimaryTopNav.js +23 -23
- package/lib/components/topNav/secondaryTopNav/SecondaryTopNav.d.ts +12 -12
- package/lib/components/topNav/secondaryTopNav/SecondaryTopNav.js +7 -7
- package/lib/custom.d copy.d.ts +5 -0
- package/lib/custom.d copy.js +1 -0
- package/lib/index.d.ts +28 -27
- package/lib/index.js +21 -20
- package/package.json +1 -1
- package/src/components/badgeCounter/BadgeCounter.module.css +27 -27
- package/src/components/card/cardHeader/CardHeader.module.css +10 -0
- package/src/components/card/cardWrapper/CardWrapper.module.css +1 -0
- package/src/components/card/infoCard/InfoCard.module.css +26 -26
- package/src/components/codeBlock/CodeBlock.module.css +6 -6
- package/src/components/denhaag-wrappers/breadcrumbs/Breadcrumbs.css +222 -222
- package/src/components/formFields/checkbox/Checkbox.module.css +7 -7
- package/src/components/formFields/date/Date.module.css +12 -12
- package/src/components/horizontalOverflowWrapper/HorizontalOverflowWrapper.tsx +1 -1
- package/src/components/imageDivider/imageDivider.module.css +5 -5
- package/src/components/jumbotron/Jumbotron.module.css +93 -0
- package/src/components/jumbotron/Jumbotron.tsx +119 -0
- package/src/components/logo/Logo.module.css +15 -15
- package/src/components/metaIcon/MetaIcon.module.css +29 -29
- package/src/components/quoteWrapper/QuoteWrapper.module.css +12 -12
- package/src/components/tag/Tag.module.css +44 -44
- package/src/components/topNav/index.ts +4 -4
- package/src/components/topNav/primaryTopNav/PrimaryTopNav.tsx +34 -2
- package/src/custom.d.ts +4 -4
- package/src/index.ts +2 -0
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
.backgroundImageWrapper {
|
|
2
|
+
background-size: cover;
|
|
3
|
+
background-position: 48% 39%;
|
|
4
|
+
max-width: 100%;
|
|
5
|
+
padding: 5rem 0 10rem;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.rightImageWrapper {
|
|
9
|
+
padding-block: 48px;
|
|
10
|
+
background-color: var(--utrecht-page-header-background-color) !important;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.wrapper {
|
|
14
|
+
padding-block-start: 72px;
|
|
15
|
+
padding-block-end: 72px;
|
|
16
|
+
width: auto !important;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.card {
|
|
20
|
+
width: fit-content;
|
|
21
|
+
padding-inline-start: 48px;
|
|
22
|
+
padding-inline-end: 48px;
|
|
23
|
+
padding-block-start: 40px;
|
|
24
|
+
padding-block-end: 40px;
|
|
25
|
+
border-bottom: var(--conduction-card-wrapper-border-width) var(--conduction-card-wrapper-border-style) var(--conduction-card-wrapper-border-color);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.card:hover {
|
|
29
|
+
background-color: var(--conduction-card-wrapper-background-color);
|
|
30
|
+
cursor: default;
|
|
31
|
+
border-bottom: var(--conduction-card-wrapper-border-width) var(--conduction-card-wrapper-border-style) var(--conduction-card-wrapper-border-color);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.cardTitle,
|
|
35
|
+
.cardAndImageTitle {
|
|
36
|
+
border-block-end: var(--conduction-card-wrapper-header-border-block-end);
|
|
37
|
+
color: var(--conduction-card-header-title-color, var(--conduction-card-wrapper-color)) !important;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.cardAndImageTitle {
|
|
41
|
+
width: max-content;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.cardDescription {
|
|
45
|
+
color: var(--conduction-card-wrapper-color) !important;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.cardSubTitle,
|
|
49
|
+
.subTitle {
|
|
50
|
+
position: relative;
|
|
51
|
+
font-style: italic;
|
|
52
|
+
display: block;
|
|
53
|
+
margin-block-end: var(--utrecht-space-block-md);
|
|
54
|
+
font-size: var(--utrecht-document-font-size);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.imageRightContainer {
|
|
58
|
+
display: flex;
|
|
59
|
+
margin: auto;
|
|
60
|
+
justify-content: space-between;
|
|
61
|
+
gap: var(--utrecht-space-inline-xl);
|
|
62
|
+
align-items: center;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.image {
|
|
66
|
+
width: 50% !important;
|
|
67
|
+
object-fit: contain;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.title,
|
|
71
|
+
.description,
|
|
72
|
+
.subTitle {
|
|
73
|
+
color: var(--utrecht-page-header-color) !important;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.title {
|
|
77
|
+
margin-block-end: var(--utrecht-space-block-md);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.headerSearchForm > *:not(:last-child) {
|
|
81
|
+
margin-block-end: 32px;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.headerSearchForm > .subHeading2 {
|
|
85
|
+
width: 100%;
|
|
86
|
+
max-width: 800px;
|
|
87
|
+
margin-block-end: 48px;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.searchFormContainer {
|
|
91
|
+
width: 100%;
|
|
92
|
+
max-width: 650px;
|
|
93
|
+
}
|
|
@@ -0,0 +1,119 @@
|
|
|
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 { CardWrapper } from "../card";
|
|
6
|
+
import { Container } from "../container/Container";
|
|
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
|
+
searchForm?: {
|
|
23
|
+
element: JSX.Element;
|
|
24
|
+
show: boolean;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export const Jumbotron: React.FC<JumbotronProps> = ({
|
|
29
|
+
title,
|
|
30
|
+
ariaLabel,
|
|
31
|
+
role,
|
|
32
|
+
subTitle,
|
|
33
|
+
description,
|
|
34
|
+
image,
|
|
35
|
+
isCard,
|
|
36
|
+
searchForm,
|
|
37
|
+
}) => {
|
|
38
|
+
return (
|
|
39
|
+
<div
|
|
40
|
+
aria-label={ariaLabel.container}
|
|
41
|
+
role={role}
|
|
42
|
+
style={{
|
|
43
|
+
backgroundImage: image?.placement === "background" ? `url(${image.url})` : "",
|
|
44
|
+
}}
|
|
45
|
+
className={clsx(
|
|
46
|
+
image?.placement === "background" && styles.backgroundImageWrapper,
|
|
47
|
+
image?.placement === "right" && styles.rightImageWrapper,
|
|
48
|
+
(!image || image.placement === "false") && styles.wrapper,
|
|
49
|
+
)}
|
|
50
|
+
>
|
|
51
|
+
<Page>
|
|
52
|
+
<PageContent>
|
|
53
|
+
{isCard && (
|
|
54
|
+
<JumbotronCard {...{ title, ariaLabel, role, subTitle, description, image, isCard, searchForm }} />
|
|
55
|
+
)}
|
|
56
|
+
{!isCard && (
|
|
57
|
+
<JumbotronContent {...{ title, ariaLabel, role, subTitle, description, image, isCard, searchForm }} />
|
|
58
|
+
)}
|
|
59
|
+
</PageContent>
|
|
60
|
+
</Page>
|
|
61
|
+
</div>
|
|
62
|
+
);
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
const JumbotronCard: React.FC<JumbotronProps> = ({ title, ariaLabel, subTitle, description, image }) => {
|
|
66
|
+
if (image?.placement === "right")
|
|
67
|
+
return (
|
|
68
|
+
<div className={styles.imageRightContainer}>
|
|
69
|
+
<CardWrapper aria-label={ariaLabel.card} role="contentinfo" className={styles.card}>
|
|
70
|
+
<Heading1 className={styles.cardAndImageTitle}>{title} </Heading1>
|
|
71
|
+
<span className={styles.cardSubTitle}>{subTitle}</span>
|
|
72
|
+
|
|
73
|
+
<Paragraph className={styles.cardDescription}>{description}</Paragraph>
|
|
74
|
+
</CardWrapper>
|
|
75
|
+
<Image src={image?.url} alt={"jumbotron-image"} className={styles.image} />
|
|
76
|
+
</div>
|
|
77
|
+
);
|
|
78
|
+
|
|
79
|
+
return (
|
|
80
|
+
<CardWrapper aria-label={ariaLabel.card} role="contentinfo" className={styles.card}>
|
|
81
|
+
<Heading1 className={styles.cardTitle}>{title} </Heading1>
|
|
82
|
+
<span className={styles.cardSubTitle}>{subTitle}</span>
|
|
83
|
+
|
|
84
|
+
<Paragraph className={styles.cardDescription}>{description}</Paragraph>
|
|
85
|
+
</CardWrapper>
|
|
86
|
+
);
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
const JumbotronContent: React.FC<JumbotronProps> = ({ title, subTitle, description, image, searchForm }) => {
|
|
90
|
+
if (image?.placement === "right")
|
|
91
|
+
return (
|
|
92
|
+
<div className={styles.imageRightContainer}>
|
|
93
|
+
<div>
|
|
94
|
+
<Heading1 className={styles.title}>{title}</Heading1>
|
|
95
|
+
|
|
96
|
+
{subTitle && <span className={styles.subTitle}>{subTitle}</span>}
|
|
97
|
+
|
|
98
|
+
{description && <Paragraph className={styles.description}>{description}</Paragraph>}
|
|
99
|
+
</div>
|
|
100
|
+
|
|
101
|
+
{image?.placement === "right" && <Image src={image?.url} alt={"jumbotron-image"} className={styles.image} />}
|
|
102
|
+
</div>
|
|
103
|
+
);
|
|
104
|
+
|
|
105
|
+
return (
|
|
106
|
+
<Container layoutClassName={styles.wrapper}>
|
|
107
|
+
<section className={clsx(searchForm?.show && styles.headerSearchForm)}>
|
|
108
|
+
<div>
|
|
109
|
+
<Heading1 className={styles.title}>{title}</Heading1>
|
|
110
|
+
|
|
111
|
+
{subTitle && <span className={styles.subTitle}>{subTitle}</span>}
|
|
112
|
+
|
|
113
|
+
{description && <Paragraph className={styles.description}>{description}</Paragraph>}
|
|
114
|
+
</div>
|
|
115
|
+
{searchForm?.show && searchForm.element}
|
|
116
|
+
</section>
|
|
117
|
+
</Container>
|
|
118
|
+
);
|
|
119
|
+
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
.logoContainer {
|
|
2
|
-
height: 100%;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.logo {
|
|
6
|
-
background-size: 100% 100%;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.authenticatedLogo {
|
|
10
|
-
background-image: var(--conduction-authenticated-logo-background);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.unauthenticatedLogo {
|
|
14
|
-
background-image: var(--conduction-unauthenticated-logo-background);
|
|
15
|
-
}
|
|
1
|
+
.logoContainer {
|
|
2
|
+
height: 100%;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.logo {
|
|
6
|
+
background-size: 100% 100%;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.authenticatedLogo {
|
|
10
|
+
background-image: var(--conduction-authenticated-logo-background);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.unauthenticatedLogo {
|
|
14
|
+
background-image: var(--conduction-unauthenticated-logo-background);
|
|
15
|
+
}
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--conduction-meta-icon-icon-size: var(--skeleton-size-lg);
|
|
3
|
-
--conduction-meta-icon-icon-color: var(--skeleton-color-secondary-4);
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
.container {
|
|
7
|
-
display: flex;
|
|
8
|
-
align-items: center;
|
|
9
|
-
flex-direction: column;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.container > *:not(:last-child) {
|
|
13
|
-
margin-block-end: var(--skeleton-size-xs);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.icon {
|
|
17
|
-
color: var(--conduction-meta-icon-icon-color);
|
|
18
|
-
height: var(--conduction-meta-icon-icon-size);
|
|
19
|
-
width: var(--conduction-meta-icon-icon-size);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.icon > svg {
|
|
23
|
-
height: 100%;
|
|
24
|
-
width: 100%;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.value {
|
|
28
|
-
font-weight: var(--skeleton-font-weight-bold);
|
|
29
|
-
}
|
|
1
|
+
:root {
|
|
2
|
+
--conduction-meta-icon-icon-size: var(--skeleton-size-lg);
|
|
3
|
+
--conduction-meta-icon-icon-color: var(--skeleton-color-secondary-4);
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.container {
|
|
7
|
+
display: flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.container > *:not(:last-child) {
|
|
13
|
+
margin-block-end: var(--skeleton-size-xs);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.icon {
|
|
17
|
+
color: var(--conduction-meta-icon-icon-color);
|
|
18
|
+
height: var(--conduction-meta-icon-icon-size);
|
|
19
|
+
width: var(--conduction-meta-icon-icon-size);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.icon > svg {
|
|
23
|
+
height: 100%;
|
|
24
|
+
width: 100%;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.value {
|
|
28
|
+
font-weight: var(--skeleton-font-weight-bold);
|
|
29
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--conduction-quote-wrapper-border-width: var(--skeleton-size-sm);
|
|
3
|
-
--conduction-quote-wrapper-border-color: var(--skeleton-color-grey-1);
|
|
4
|
-
--conduction-quote-wrapper-padding-inline: var(--skeleton-size-lg);
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.container {
|
|
8
|
-
border-left-width: var(--conduction-quote-wrapper-border-width);
|
|
9
|
-
border-left-style: solid;
|
|
10
|
-
border-left-color: var(--conduction-quote-wrapper-border-color);
|
|
11
|
-
padding-inline-start: var(--conduction-quote-wrapper-padding-inline);
|
|
12
|
-
}
|
|
1
|
+
:root {
|
|
2
|
+
--conduction-quote-wrapper-border-width: var(--skeleton-size-sm);
|
|
3
|
+
--conduction-quote-wrapper-border-color: var(--skeleton-color-grey-1);
|
|
4
|
+
--conduction-quote-wrapper-padding-inline: var(--skeleton-size-lg);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.container {
|
|
8
|
+
border-left-width: var(--conduction-quote-wrapper-border-width);
|
|
9
|
+
border-left-style: solid;
|
|
10
|
+
border-left-color: var(--conduction-quote-wrapper-border-color);
|
|
11
|
+
padding-inline-start: var(--conduction-quote-wrapper-padding-inline);
|
|
12
|
+
}
|
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--conduction-tag-font-size: var(--skeleton-font-size-sm);
|
|
3
|
-
--conduction-tag-color: var(--skeleton-black);
|
|
4
|
-
--conduction-tag-background-color: var(--skeleton-color-grey-1);
|
|
5
|
-
--conduction-tag-border-radius: var(--skeleton-border-radius-md);
|
|
6
|
-
--conduction-tag-padding: var(--skeleton-size-xs);
|
|
7
|
-
--conduction-tag-icon-margin-inline-end: var(--skeleton-size-2xs);
|
|
8
|
-
--conduction-tag-remove-background-color: #ffbdad;
|
|
9
|
-
--conduction-tag-remove-text-color: #e44f2a;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.tag {
|
|
13
|
-
display: inline-block;
|
|
14
|
-
width: fit-content;
|
|
15
|
-
font-size: var(--conduction-tag-font-size);
|
|
16
|
-
color: var(--conduction-tag-color);
|
|
17
|
-
background-color: var(--conduction-tag-background-color);
|
|
18
|
-
padding-inline-start: var(--conduction-tag-padding);
|
|
19
|
-
padding-inline-end: var(--conduction-tag-padding);
|
|
20
|
-
padding-block-start: var(--conduction-tag-padding);
|
|
21
|
-
padding-block-end: var(--conduction-tag-padding);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.tag > *:not(:last-child) {
|
|
25
|
-
margin-inline-end: var(--conduction-tag-icon-margin-inline-end);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.clickable :hover {
|
|
29
|
-
cursor: pointer;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.remove {
|
|
33
|
-
padding-inline-end: 4px;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.tagContainer {
|
|
37
|
-
display: flex;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.removeTag:hover {
|
|
41
|
-
cursor: pointer;
|
|
42
|
-
background-color: var(--conduction-tag-remove-background-color);
|
|
43
|
-
color: var(--conduction-tag-remove-text-color);
|
|
44
|
-
}
|
|
1
|
+
:root {
|
|
2
|
+
--conduction-tag-font-size: var(--skeleton-font-size-sm);
|
|
3
|
+
--conduction-tag-color: var(--skeleton-black);
|
|
4
|
+
--conduction-tag-background-color: var(--skeleton-color-grey-1);
|
|
5
|
+
--conduction-tag-border-radius: var(--skeleton-border-radius-md);
|
|
6
|
+
--conduction-tag-padding: var(--skeleton-size-xs);
|
|
7
|
+
--conduction-tag-icon-margin-inline-end: var(--skeleton-size-2xs);
|
|
8
|
+
--conduction-tag-remove-background-color: #ffbdad;
|
|
9
|
+
--conduction-tag-remove-text-color: #e44f2a;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.tag {
|
|
13
|
+
display: inline-block;
|
|
14
|
+
width: fit-content;
|
|
15
|
+
font-size: var(--conduction-tag-font-size);
|
|
16
|
+
color: var(--conduction-tag-color);
|
|
17
|
+
background-color: var(--conduction-tag-background-color);
|
|
18
|
+
padding-inline-start: var(--conduction-tag-padding);
|
|
19
|
+
padding-inline-end: var(--conduction-tag-padding);
|
|
20
|
+
padding-block-start: var(--conduction-tag-padding);
|
|
21
|
+
padding-block-end: var(--conduction-tag-padding);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.tag > *:not(:last-child) {
|
|
25
|
+
margin-inline-end: var(--conduction-tag-icon-margin-inline-end);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.clickable :hover {
|
|
29
|
+
cursor: pointer;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.remove {
|
|
33
|
+
padding-inline-end: 4px;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.tagContainer {
|
|
37
|
+
display: flex;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.removeTag:hover {
|
|
41
|
+
cursor: pointer;
|
|
42
|
+
background-color: var(--conduction-tag-remove-background-color);
|
|
43
|
+
color: var(--conduction-tag-remove-text-color);
|
|
44
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PrimaryTopNav } from "./primaryTopNav/PrimaryTopNav";
|
|
2
|
-
import { SecondaryTopNav } from "./secondaryTopNav/SecondaryTopNav";
|
|
3
|
-
|
|
4
|
-
export { PrimaryTopNav, SecondaryTopNav };
|
|
1
|
+
import { PrimaryTopNav } from "./primaryTopNav/PrimaryTopNav";
|
|
2
|
+
import { SecondaryTopNav } from "./secondaryTopNav/SecondaryTopNav";
|
|
3
|
+
|
|
4
|
+
export { PrimaryTopNav, SecondaryTopNav };
|
|
@@ -4,11 +4,42 @@ import clsx from "clsx";
|
|
|
4
4
|
import { Link } from "@utrecht/component-library-react/dist/css-module";
|
|
5
5
|
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
|
6
6
|
import { faBars, faChevronRight } from "@fortawesome/free-solid-svg-icons";
|
|
7
|
+
import { IconPrefix, IconName } from "@fortawesome/fontawesome-svg-core";
|
|
7
8
|
|
|
8
9
|
interface ITopNavItemBase {
|
|
9
10
|
label: string;
|
|
10
11
|
icon?: JSX.Element;
|
|
11
|
-
current?: boolean;
|
|
12
|
+
current?: boolean | ICurrentItemJSONFormat;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
interface ICurrentItemJSONFormat {
|
|
16
|
+
pathname: string;
|
|
17
|
+
operator: "equals" | "includes";
|
|
18
|
+
filterCondition?: {
|
|
19
|
+
filter: string;
|
|
20
|
+
value: string;
|
|
21
|
+
isObject: boolean;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
interface IIconJSONFormat {
|
|
26
|
+
icon?: {
|
|
27
|
+
icon: IconName;
|
|
28
|
+
prefix: IconPrefix;
|
|
29
|
+
placement: "left" | "right";
|
|
30
|
+
};
|
|
31
|
+
customIcon?: {
|
|
32
|
+
icon: string;
|
|
33
|
+
placement: "left" | "right";
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
interface IHandleClickJSONFormat {
|
|
38
|
+
link: string;
|
|
39
|
+
setFilter?: {
|
|
40
|
+
filter: string;
|
|
41
|
+
value: string;
|
|
42
|
+
};
|
|
12
43
|
}
|
|
13
44
|
|
|
14
45
|
interface ITopNavItemWithSubItems extends ITopNavItemBase {
|
|
@@ -17,7 +48,8 @@ interface ITopNavItemWithSubItems extends ITopNavItemBase {
|
|
|
17
48
|
}
|
|
18
49
|
|
|
19
50
|
interface ITopNavItemWithoutSubItems extends ITopNavItemBase {
|
|
20
|
-
handleClick?: () => any;
|
|
51
|
+
handleClick?: () => any | IHandleClickJSONFormat;
|
|
52
|
+
type: "readme" | "internal" | "external";
|
|
21
53
|
subItems?: never;
|
|
22
54
|
}
|
|
23
55
|
|
package/src/custom.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare module "*.svg";
|
|
2
|
-
declare module "*.jpg";
|
|
3
|
-
declare module "*.png";
|
|
4
|
-
declare module "*.module.css";
|
|
1
|
+
declare module "*.svg";
|
|
2
|
+
declare module "*.jpg";
|
|
3
|
+
declare module "*.png";
|
|
4
|
+
declare module "*.module.css";
|
package/src/index.ts
CHANGED
|
@@ -41,6 +41,7 @@ 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";
|
|
44
45
|
|
|
45
46
|
export {
|
|
46
47
|
DownloadCard,
|
|
@@ -83,4 +84,5 @@ export {
|
|
|
83
84
|
Tab,
|
|
84
85
|
TabPanel,
|
|
85
86
|
HorizontalOverflowWrapper,
|
|
87
|
+
Jumbotron,
|
|
86
88
|
};
|