@conduction/components 2.2.0 → 2.2.1
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/.github/workflows/github-actions.yml +4 -2
- package/.prettierrc +30 -30
- package/README.md +1 -0
- package/lib/components/Pagination/Pagination.d.ts +9 -9
- 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/cardWrapper/CardWrapper.d.ts +2 -2
- package/lib/components/card/cardWrapper/CardWrapper.js +6 -6
- 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 -9
- 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 -9
- package/lib/components/card/index.js +8 -9
- 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 +16 -15
- 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 +42 -42
- 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 +21 -21
- 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 +23 -23
- package/lib/components/formFields/select/select.js +58 -58
- package/lib/components/formFields/textarea.d.ts +9 -9
- 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/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/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 +33 -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/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 +9 -9
- package/lib/components/toolTip/ToolTip.js +8 -8
- 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 +20 -20
- package/lib/components/topNav/primaryTopNav/PrimaryTopNav.js +17 -17
- package/lib/components/topNav/secondaryTopNav/SecondaryTopNav.d.ts +12 -12
- package/lib/components/topNav/secondaryTopNav/SecondaryTopNav.js +7 -7
- package/lib/index.d.ts +25 -25
- package/lib/index.js +18 -18
- package/package.json +1 -2
- package/src/components/badgeCounter/BadgeCounter.module.css +27 -27
- package/src/components/card/horizontalImageCard/HorizontalImageCard.tsx +3 -2
- package/src/components/card/index.js +5 -5
- package/src/components/card/index.tsx +0 -2
- package/src/components/card/infoCard/InfoCard.module.css +26 -26
- package/src/components/codeBlock/CodeBlock.module.css +6 -6
- package/src/components/container/Container.js +3 -3
- package/src/components/denhaag-wrappers/breadcrumbs/Breadcrumbs.css +222 -222
- package/src/components/denhaag-wrappers/breadcrumbs/Breadcrumbs.js +84 -84
- package/src/components/formFields/checkbox/Checkbox.module.css +7 -7
- package/src/components/formFields/date/Date.module.css +12 -12
- package/src/components/formFields/index.js +4 -4
- package/src/components/formFields/textarea.js +3 -3
- package/src/components/formFields/types.js +1 -1
- package/src/components/imageDivider/ImageDivider.js +6 -6
- package/src/components/imageDivider/imageDivider.module.css +5 -5
- package/src/components/logo/Logo.js +10 -10
- package/src/components/logo/Logo.module.css +15 -15
- package/src/components/metaIcon/MetaIcon.js +3 -3
- package/src/components/metaIcon/MetaIcon.module.css +29 -29
- package/src/components/notificationPopUp/NotificationPopUp.tsx +4 -3
- package/src/components/privateRoute/PrivateRoute.js +15 -15
- 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/custom.d.ts +4 -4
- package/src/index.ts +1 -9
- package/.github/workflows/npm-publish.yml +0 -39
- package/lib/components/statusSteps/StatusSteps.d.ts +0 -13
- package/lib/components/statusSteps/StatusSteps.js +0 -5
- package/lib/custom.d copy.d.ts +0 -5
- package/lib/custom.d copy.js +0 -1
- package/src/components/card/richContentCard/RichContentCard.js +0 -18
- package/src/components/card/richContentCard/RichContentCard.module.css +0 -103
- package/src/components/card/richContentCard/RichContentCard.tsx +0 -99
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import * as styles from "./RichContentCard.module.css";
|
|
3
|
-
import { Link } from "@utrecht/component-library-react/dist/css-module";
|
|
4
|
-
import { navigate } from "gatsby";
|
|
5
|
-
import { ExternalLinkIcon, ArrowRightIcon } from "@gemeente-denhaag/icons";
|
|
6
|
-
import { Tag } from "../../tag/Tag";
|
|
7
|
-
|
|
8
|
-
export interface RichContentCardProps {
|
|
9
|
-
link: {
|
|
10
|
-
label: string;
|
|
11
|
-
href: string;
|
|
12
|
-
};
|
|
13
|
-
labelsWithIcon: {
|
|
14
|
-
label: string;
|
|
15
|
-
icon: JSX.Element;
|
|
16
|
-
}[];
|
|
17
|
-
tags: string[];
|
|
18
|
-
contentLinks?: {
|
|
19
|
-
title: string;
|
|
20
|
-
subTitle: string;
|
|
21
|
-
href: string;
|
|
22
|
-
}[];
|
|
23
|
-
linkIsExternal?: boolean;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export const RichContentCard = ({
|
|
27
|
-
link,
|
|
28
|
-
labelsWithIcon,
|
|
29
|
-
tags,
|
|
30
|
-
contentLinks,
|
|
31
|
-
linkIsExternal,
|
|
32
|
-
}: RichContentCardProps): JSX.Element => {
|
|
33
|
-
return (
|
|
34
|
-
<div className={styles.container}>
|
|
35
|
-
<div className={styles.linkContainer} onClick={() => navigate(link.href)}>
|
|
36
|
-
<Link className={styles.link}>
|
|
37
|
-
{linkIsExternal ? <ExternalLinkIcon /> : <ArrowRightIcon />}
|
|
38
|
-
{link.label}
|
|
39
|
-
</Link>
|
|
40
|
-
</div>
|
|
41
|
-
|
|
42
|
-
<div className={styles.labelsWithIcon}>
|
|
43
|
-
{labelsWithIcon.map(({ label, icon }, idx) => (
|
|
44
|
-
<LabelWithIcon key={idx} {...{ label, icon }} />
|
|
45
|
-
))}
|
|
46
|
-
</div>
|
|
47
|
-
|
|
48
|
-
<div className={styles.tags}>
|
|
49
|
-
{tags.map((tag, idx) => (
|
|
50
|
-
<Tag key={idx} label={tag} />
|
|
51
|
-
))}
|
|
52
|
-
</div>
|
|
53
|
-
|
|
54
|
-
{contentLinks && (
|
|
55
|
-
<div className={styles.contentLinks}>
|
|
56
|
-
<hr className={styles.divider} />
|
|
57
|
-
{contentLinks.map(({ title, subTitle, href }, idx) => (
|
|
58
|
-
<ContentLink key={idx} {...{ title, subTitle, href }} />
|
|
59
|
-
))}
|
|
60
|
-
</div>
|
|
61
|
-
)}
|
|
62
|
-
</div>
|
|
63
|
-
);
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
interface LabelWithIconProps {
|
|
67
|
-
label: string;
|
|
68
|
-
icon: JSX.Element;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
const LabelWithIcon = ({ label, icon }: LabelWithIconProps): JSX.Element => {
|
|
72
|
-
return (
|
|
73
|
-
<div className={styles.labelWithIcon}>
|
|
74
|
-
<span className={styles.labelWithIcon_icon}>{icon}</span>
|
|
75
|
-
<span className={styles.labelWithIcon_label}>{label}</span>
|
|
76
|
-
</div>
|
|
77
|
-
);
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
interface ContentLinkProps {
|
|
81
|
-
title: string;
|
|
82
|
-
subTitle: string;
|
|
83
|
-
href: string;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
const ContentLink = ({ title, subTitle, href }: ContentLinkProps): JSX.Element => {
|
|
87
|
-
return (
|
|
88
|
-
<Link className={styles.contentLink}>
|
|
89
|
-
<div className={styles.contentLink_content}>
|
|
90
|
-
<span className={styles.contentLink_title}>{title}</span>
|
|
91
|
-
<span className={styles.contentLink_subTitle}>{subTitle}</span>
|
|
92
|
-
</div>
|
|
93
|
-
|
|
94
|
-
<div>
|
|
95
|
-
<ArrowRightIcon />
|
|
96
|
-
</div>
|
|
97
|
-
</Link>
|
|
98
|
-
);
|
|
99
|
-
};
|