@conduction/components 2.2.0 → 2.2.2
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 +8 -0
- package/lib/components/Pagination/Pagination.d.ts +9 -9
- package/lib/components/Pagination/Pagination.js +12 -12
- package/lib/components/Pagination/Pagination.module.css +2 -2
- 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 +41 -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 +32 -32
- package/lib/components/notificationPopUp/NotificationPopUp.module.css +5 -0
- 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 -8
- package/src/components/Pagination/Pagination.module.css +2 -2
- package/src/components/Pagination/Pagination.tsx +3 -1
- package/src/components/badgeCounter/BadgeCounter.module.css +27 -27
- package/src/components/card/horizontalImageCard/HorizontalImageCard.tsx +3 -2
- 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/denhaag-wrappers/breadcrumbs/Breadcrumbs.css +222 -222
- package/src/components/formFields/checkbox/Checkbox.module.css +7 -7
- package/src/components/formFields/createKeyValue/CreateKeyValue.tsx +5 -6
- package/src/components/formFields/date/Date.module.css +12 -12
- package/src/components/imageDivider/imageDivider.module.css +5 -5
- package/src/components/logo/Logo.module.css +15 -15
- package/src/components/metaIcon/MetaIcon.module.css +29 -29
- package/src/components/notificationPopUp/NotificationPopUp.module.css +5 -0
- package/src/components/notificationPopUp/NotificationPopUp.tsx +6 -6
- 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/downloadCard/DownloadCard.js +0 -10
- package/src/components/card/horizontalImageCard/HorizontalImageCard.js +0 -9
- package/src/components/card/imageAndDetailsCard/ImageAndDetailsCard.js +0 -9
- package/src/components/card/index.js +0 -5
- 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
- package/src/components/container/Container.js +0 -3
- package/src/components/denhaag-wrappers/breadcrumbs/Breadcrumbs.js +0 -84
- package/src/components/formFields/index.js +0 -4
- package/src/components/formFields/input.js +0 -12
- package/src/components/formFields/textarea.js +0 -3
- package/src/components/formFields/types.js +0 -1
- package/src/components/imageDivider/ImageDivider.js +0 -6
- package/src/components/logo/Logo.js +0 -10
- package/src/components/metaIcon/MetaIcon.js +0 -3
- package/src/components/privateRoute/PrivateRoute.js +0 -15
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import * as styles from "./NotificationPopUp.module.css";
|
|
3
3
|
import ReactDOM from "react-dom";
|
|
4
|
-
import { Button } from "@gemeente-denhaag/button";
|
|
5
4
|
import clsx from "clsx";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import { Heading3, Link, Paragraph, Button } from "@utrecht/component-library-react";
|
|
6
|
+
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
|
7
|
+
import { faArrowRight, faClose } from "@fortawesome/free-solid-svg-icons";
|
|
8
8
|
|
|
9
9
|
export interface NotificationPopUpProps {
|
|
10
10
|
title: string;
|
|
@@ -61,17 +61,17 @@ export const NotificationPopUp = ({
|
|
|
61
61
|
{secondaryButton && (
|
|
62
62
|
<div onClick={() => handleClick(secondaryButton.handleClick)} className={secondaryButton.layoutClassName}>
|
|
63
63
|
<Link className={styles.link}>
|
|
64
|
-
{secondaryButton.icon ?? <
|
|
64
|
+
{secondaryButton.icon ?? <FontAwesomeIcon icon={faClose} />}
|
|
65
65
|
{secondaryButton.label}
|
|
66
66
|
</Link>
|
|
67
67
|
</div>
|
|
68
68
|
)}
|
|
69
69
|
|
|
70
70
|
<Button
|
|
71
|
-
icon={primaryButton.icon ?? <ArrowRightIcon />}
|
|
72
71
|
onClick={() => handleClick(primaryButton.handleClick)}
|
|
73
|
-
className={primaryButton.layoutClassName}
|
|
72
|
+
className={clsx(styles.button, primaryButton.layoutClassName)}
|
|
74
73
|
>
|
|
74
|
+
{primaryButton.icon ?? <FontAwesomeIcon icon={faArrowRight} />}
|
|
75
75
|
{primaryButton.label}
|
|
76
76
|
</Button>
|
|
77
77
|
</div>
|
|
@@ -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 };
|
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
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
DownloadCard,
|
|
3
|
-
HorizontalImageCard,
|
|
4
|
-
ImageAndDetailsCard,
|
|
5
|
-
RichContentCard,
|
|
6
|
-
DetailsCard,
|
|
7
|
-
InfoCard,
|
|
8
|
-
} from "./components/card";
|
|
1
|
+
import { DownloadCard, HorizontalImageCard, ImageAndDetailsCard, DetailsCard, InfoCard } from "./components/card";
|
|
9
2
|
import { Container } from "./components/container/Container";
|
|
10
3
|
import { Breadcrumbs } from "./components/denhaag-wrappers/breadcrumbs/Breadcrumbs";
|
|
11
4
|
import {
|
|
@@ -41,7 +34,6 @@ export {
|
|
|
41
34
|
DownloadCard,
|
|
42
35
|
HorizontalImageCard,
|
|
43
36
|
ImageAndDetailsCard,
|
|
44
|
-
RichContentCard,
|
|
45
37
|
DetailsCard,
|
|
46
38
|
InfoCard,
|
|
47
39
|
Container,
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
|
|
2
|
-
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
|
|
3
|
-
|
|
4
|
-
name: Node.js Package
|
|
5
|
-
|
|
6
|
-
on:
|
|
7
|
-
push:
|
|
8
|
-
branches:
|
|
9
|
-
- development
|
|
10
|
-
|
|
11
|
-
jobs:
|
|
12
|
-
build:
|
|
13
|
-
runs-on: ubuntu-latest
|
|
14
|
-
steps:
|
|
15
|
-
- uses: actions/checkout@v3
|
|
16
|
-
- uses: actions/setup-node@v3
|
|
17
|
-
with:
|
|
18
|
-
node-version: 16
|
|
19
|
-
|
|
20
|
-
publish-npm:
|
|
21
|
-
needs: build
|
|
22
|
-
runs-on: ubuntu-latest
|
|
23
|
-
steps:
|
|
24
|
-
- uses: actions/checkout@v3
|
|
25
|
-
- uses: actions/setup-node@v3
|
|
26
|
-
with:
|
|
27
|
-
node-version: 16
|
|
28
|
-
registry-url: https://registry.npmjs.org/
|
|
29
|
-
- run: |
|
|
30
|
-
git --version
|
|
31
|
-
git config user.name "GitHub Version patch"
|
|
32
|
-
git config user.email "<>"
|
|
33
|
-
git checkout development
|
|
34
|
-
git clean -f -n
|
|
35
|
-
- run: npm install
|
|
36
|
-
- run: npm version patch
|
|
37
|
-
- run: npm publish
|
|
38
|
-
env:
|
|
39
|
-
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
interface IStatusStep {
|
|
3
|
-
title: string;
|
|
4
|
-
checked?: boolean;
|
|
5
|
-
current?: boolean;
|
|
6
|
-
expanded?: boolean;
|
|
7
|
-
subSteps?: string[];
|
|
8
|
-
}
|
|
9
|
-
interface StatusStepsProps {
|
|
10
|
-
steps: IStatusStep[];
|
|
11
|
-
}
|
|
12
|
-
export declare const StatusSteps: ({ steps }: StatusStepsProps) => JSX.Element;
|
|
13
|
-
export {};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Step, StepExpandedIcon, StepHeader, StepHeading, StepList, StepMarker, StepSection, SubStep, SubStepHeading, SubStepList, SubStepMarker, } from "@gemeente-denhaag/process-steps";
|
|
3
|
-
export const StatusSteps = ({ steps }) => {
|
|
4
|
-
return (_jsx(StepList, { children: steps.map(({ title, checked, current, expanded, subSteps }, idx) => (_jsxs(Step, { ...{ checked, current, expanded }, children: [_jsx(StepSection, { children: _jsxs(StepHeader, { children: [_jsx(StepMarker, { children: idx + 1 }), _jsx(StepHeading, { children: title }), subSteps && _jsx(StepExpandedIcon, {})] }) }), subSteps && (_jsx(SubStepList, { children: subSteps.map((subStep) => (_jsxs(SubStep, { children: [_jsx(SubStepMarker, {}), _jsx(SubStepHeading, { children: subStep })] }, idx))) }))] }, idx))) }));
|
|
5
|
-
};
|
package/lib/custom.d copy.d.ts
DELETED
package/lib/custom.d copy.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import * as styles from "./DownloadCard.module.css";
|
|
3
|
-
import { DownloadIcon } from "@gemeente-denhaag/icons";
|
|
4
|
-
import { Link } from "@gemeente-denhaag/link";
|
|
5
|
-
import clsx from "clsx";
|
|
6
|
-
import { useTranslation } from "react-i18next";
|
|
7
|
-
export const DownloadCard = ({ icon, label, sizeKb, layoutClassName }) => {
|
|
8
|
-
const { t } = useTranslation();
|
|
9
|
-
return (_jsxs("div", { className: clsx(styles.container, [layoutClassName && layoutClassName]), children: [_jsxs("div", { className: styles.content, children: [_jsx("div", { className: styles.icon, children: icon }), _jsxs("div", { children: [label, " (", sizeKb, "kb)"] })] }), _jsx(Link, { icon: _jsx(DownloadIcon, {}), iconAlign: "start", children: t("Download") })] }));
|
|
10
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import * as styles from "./HorizontalImageCard.module.css";
|
|
3
|
-
import clsx from "clsx";
|
|
4
|
-
import { Link } from "@gemeente-denhaag/link";
|
|
5
|
-
import { navigate } from "gatsby";
|
|
6
|
-
import { ExternalLinkIcon, ArrowRightIcon } from "@gemeente-denhaag/icons";
|
|
7
|
-
export const HorizontalImageCard = ({ title, layoutClassName, external, link, iconOrImage, }) => {
|
|
8
|
-
return (_jsxs("div", { className: clsx(styles.container, [layoutClassName && layoutClassName]), onClick: () => navigate(link.href), children: [_jsx("div", { className: styles.imageOrIconContainer, children: iconOrImage }), _jsxs("div", { className: styles.link, children: [_jsx("div", { className: styles.title, children: title }), _jsx(Link, { icon: external ? _jsx(ExternalLinkIcon, {}) : _jsx(ArrowRightIcon, {}), iconAlign: "start", children: link.label })] })] }));
|
|
9
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import * as styles from "./ImageAndDetailsCard.module.css";
|
|
3
|
-
import clsx from "clsx";
|
|
4
|
-
import { Link } from "@gemeente-denhaag/link";
|
|
5
|
-
import { navigate } from "gatsby";
|
|
6
|
-
import { ArrowRightIcon } from "@gemeente-denhaag/icons";
|
|
7
|
-
export const ImageAndDetailsCard = ({ image, title, subHeader, introduction, link, layoutClassName, }) => {
|
|
8
|
-
return (_jsxs("div", { className: clsx(styles.container, [layoutClassName && layoutClassName]), onClick: () => navigate(link.href), children: [_jsx("div", { className: styles.image, children: image }), _jsxs("div", { className: styles.content, children: [_jsxs("div", { children: [_jsx("div", { className: styles.title, children: title }), _jsx("span", { className: styles.subHeader, children: subHeader })] }), _jsx("div", { className: styles.introduction, children: introduction }), _jsx("div", { className: styles.link, children: _jsx(Link, { icon: _jsx(ArrowRightIcon, {}), iconAlign: "start", children: link.label }) })] })] }));
|
|
9
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { DownloadCard } from "./downloadCard/DownloadCard";
|
|
2
|
-
import { HorizontalImageCard } from "./HorizontalImageCard/HorizontalImageCard";
|
|
3
|
-
import { ImageAndDetailsCard } from "./imageAndDetailsCard/ImageAndDetailsCard";
|
|
4
|
-
import { RichContentCard } from "./RichContentCard/RichContentCard";
|
|
5
|
-
export { DownloadCard, HorizontalImageCard, ImageAndDetailsCard, RichContentCard };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Divider } from "@gemeente-denhaag/divider";
|
|
3
|
-
import { Link } from "@gemeente-denhaag/link";
|
|
4
|
-
import { navigate } from "gatsby";
|
|
5
|
-
import * as styles from "./RichContentCard.module.css";
|
|
6
|
-
import { ExternalLinkIcon, ArrowRightIcon } from "@gemeente-denhaag/icons";
|
|
7
|
-
export const RichContentCard = ({ link, labelsWithIcon, tags, contentLinks, linkIsExternal, }) => {
|
|
8
|
-
return (_jsxs("div", { className: styles.container, children: [_jsx("div", { className: styles.link, onClick: () => navigate(link.href), children: _jsx(Link, { icon: linkIsExternal ? _jsx(ExternalLinkIcon, {}) : _jsx(ArrowRightIcon, {}), iconAlign: "start", children: link.label }) }), _jsx("div", { className: styles.labelsWithIcon, children: labelsWithIcon.map(({ label, icon }) => (_jsx(LabelWithIcon, { ...{ label, icon } }))) }), _jsx("div", { className: styles.tags, children: tags.map((tag) => (_jsx(Tag, { ...{ tag } }))) }), contentLinks && (_jsxs("div", { className: styles.contentLinks, children: [_jsx(Divider, {}), contentLinks.map(({ title, subTitle, href }) => (_jsx(ContentLink, { ...{ title, subTitle, href } })))] }))] }));
|
|
9
|
-
};
|
|
10
|
-
const LabelWithIcon = ({ label, icon }) => {
|
|
11
|
-
return (_jsxs("div", { className: styles.labelWithIcon, children: [_jsx("span", { className: styles.labelWithIcon_icon, children: icon }), _jsx("span", { className: styles.labelWithIcon_label, children: label })] }));
|
|
12
|
-
};
|
|
13
|
-
const Tag = ({ tag }) => {
|
|
14
|
-
return _jsx("span", { className: styles.tag, children: tag });
|
|
15
|
-
};
|
|
16
|
-
const ContentLink = ({ title, subTitle, href }) => {
|
|
17
|
-
return (_jsxs(Link, { className: styles.contentLink, children: [_jsxs("div", { className: styles.contentLink_content, children: [_jsx("span", { className: styles.contentLink_title, children: title }), _jsx("span", { className: styles.contentLink_subTitle, children: subTitle })] }), _jsx("div", { children: _jsx(ArrowRightIcon, {}) })] }));
|
|
18
|
-
};
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--conduction-rich-content-card-border: 1px solid var(--skeleton-color-grey-2);
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.container {
|
|
6
|
-
display: flex;
|
|
7
|
-
flex-direction: column;
|
|
8
|
-
border: var(--conduction-rich-content-card-border);
|
|
9
|
-
border-radius: var(--skeleton-border-radius-md);
|
|
10
|
-
|
|
11
|
-
padding-inline-start: var(--skeleton-size-md);
|
|
12
|
-
padding-inline-end: var(--skeleton-size-md);
|
|
13
|
-
padding-block-start: var(--skeleton-size-md);
|
|
14
|
-
padding-block-end: var(--skeleton-size-md);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.container > *:not(.linkContainer):not(:last-child) {
|
|
18
|
-
margin-block-end: var(--skeleton-size-md);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.linkContainer {
|
|
22
|
-
margin-block-end: var(--skeleton-size-xs);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.linkContainer > :first-child {
|
|
26
|
-
display: flex;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.link > * {
|
|
30
|
-
margin-inline-end: 8px;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.labelsWithIcon {
|
|
34
|
-
display: flex;
|
|
35
|
-
flex-wrap: wrap;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.labelsWithIcon > *:not(:last-child) {
|
|
39
|
-
margin-inline-end: var(--skeleton-size-md);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.tags > *:not(:last-child) {
|
|
43
|
-
margin-inline-end: var(--skeleton-size-md);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.contentLinks > *:not(:last-child):not(hr) {
|
|
47
|
-
margin-block-end: var(--skeleton-size-xs);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
/* Component: LabelWithIcon */
|
|
51
|
-
.labelWithIcon {
|
|
52
|
-
display: flex;
|
|
53
|
-
align-items: center;
|
|
54
|
-
color: var(--skeleton-color-grey-3);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.labelWithIcon > .labelWithIcon_icon > svg {
|
|
58
|
-
height: var(--skeleton-size-sm);
|
|
59
|
-
width: var(--skeleton-size-sm);
|
|
60
|
-
margin-inline-end: var(--skeleton-size-xs);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.labelWithIcon > .labelWithIcon_label {
|
|
64
|
-
font-size: var(--skeleton-size-sm);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
/* Content Link */
|
|
68
|
-
.contentLink {
|
|
69
|
-
display: flex;
|
|
70
|
-
padding-block-start: var(--skeleton-size-xs);
|
|
71
|
-
padding-block-end: var(--skeleton-size-xs);
|
|
72
|
-
text-decoration: none !important;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.contentLink > span {
|
|
76
|
-
width: 100%;
|
|
77
|
-
display: flex;
|
|
78
|
-
justify-content: space-between;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.contentLink:hover {
|
|
82
|
-
cursor: pointer;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.contentLink_content {
|
|
86
|
-
display: flex;
|
|
87
|
-
flex-direction: column;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.contentLink_title {
|
|
91
|
-
font-size: var(--conduction-content-link-font-size);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.contentLink_subTitle {
|
|
95
|
-
font-size: var(--conduction-content-link-font-size);
|
|
96
|
-
color: var(--denhaag-color-grey-3);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.divider {
|
|
100
|
-
width: 100%;
|
|
101
|
-
opacity: 0.5;
|
|
102
|
-
margin-block: var(--skeleton-size-lg);
|
|
103
|
-
}
|
|
@@ -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
|
-
};
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
/**
|
|
3
|
-
* This is a wrapper element based on https://nl-design-system.github.io/denhaag/?path=/docs/css-navigation-breadcrumb--default-story
|
|
4
|
-
*
|
|
5
|
-
* IMPORTANT: DO NOT MAKE CHANGES TO THIS FILE, AS ALL CHANGES WILL BE LOST UPON PACKAGE IMPLEMENTATION
|
|
6
|
-
*
|
|
7
|
-
* Note: we do not use css modules here due to this component being a wrapper
|
|
8
|
-
*/
|
|
9
|
-
import { Link } from "gatsby";
|
|
10
|
-
import "./Breadcrumbs.css";
|
|
11
|
-
export const Breadcrumbs = ({ crumbs }) => {
|
|
12
|
-
return _jsx("nav", {
|
|
13
|
-
"aria-label": "Breadcrumb",
|
|
14
|
-
className: "denhaag-breadcrumb",
|
|
15
|
-
children: _jsx("ol", {
|
|
16
|
-
className: "denhaag-breadcrumb__list",
|
|
17
|
-
itemScope: true,
|
|
18
|
-
itemType: "https://schema.org/BreadcrumbList",
|
|
19
|
-
children: crumbs.map((crumb, idx) => {
|
|
20
|
-
if (crumbs.length !== idx + 1) {
|
|
21
|
-
return _jsx(CrumbItem, { ...crumb, ...{ idx } }, idx);
|
|
22
|
-
}
|
|
23
|
-
return _jsx(LastCrumbItem, { ...crumb, ...{ idx } }, idx);
|
|
24
|
-
}),
|
|
25
|
-
}),
|
|
26
|
-
});
|
|
27
|
-
};
|
|
28
|
-
const CrumbItem = ({ pathname, crumbLabel, idx }) =>
|
|
29
|
-
_jsx("li", {
|
|
30
|
-
className: "denhaag-breadcrumb__item",
|
|
31
|
-
itemProp: "itemListElement",
|
|
32
|
-
itemScope: true,
|
|
33
|
-
itemType: "https://schema.org/ListItem",
|
|
34
|
-
children: _jsxs(Link, {
|
|
35
|
-
className: "denhaag-breadcrumb__link",
|
|
36
|
-
to: pathname,
|
|
37
|
-
itemProp: "item",
|
|
38
|
-
children: [
|
|
39
|
-
_jsx("span", {
|
|
40
|
-
className: "denhaag-breadcrumb__text",
|
|
41
|
-
itemProp: "name",
|
|
42
|
-
children: crumbLabel,
|
|
43
|
-
}),
|
|
44
|
-
_jsx("svg", {
|
|
45
|
-
"aria-hidden": "true",
|
|
46
|
-
className: "denhaag-icon",
|
|
47
|
-
fill: "none",
|
|
48
|
-
focusable: "false",
|
|
49
|
-
height: "1em",
|
|
50
|
-
shapeRendering: "auto",
|
|
51
|
-
viewBox: "0 0 24 24",
|
|
52
|
-
width: "1em",
|
|
53
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
54
|
-
children: _jsx("path", {
|
|
55
|
-
d: "M9.293 18.707a1 1 0 010-1.414L14.586 12 9.293 6.707a1 1 0 011.414-1.414l6 6a1 1 0 010 1.414l-6 6a1 1 0 01-1.414 0z",
|
|
56
|
-
fill: "currentColor",
|
|
57
|
-
}),
|
|
58
|
-
}),
|
|
59
|
-
_jsx("meta", { content: idx.toString(), itemProp: "position" }),
|
|
60
|
-
],
|
|
61
|
-
}),
|
|
62
|
-
});
|
|
63
|
-
const LastCrumbItem = ({ pathname, crumbLabel, idx }) =>
|
|
64
|
-
_jsx("li", {
|
|
65
|
-
"aria-current": "page",
|
|
66
|
-
className: "denhaag-breadcrumb__item",
|
|
67
|
-
itemProp: "itemListElement",
|
|
68
|
-
itemScope: true,
|
|
69
|
-
itemType: "https://schema.org/ListItem",
|
|
70
|
-
children: _jsxs(Link, {
|
|
71
|
-
"aria-current": "page",
|
|
72
|
-
className: "denhaag-breadcrumb__link denhaag-breadcrumb__link--current",
|
|
73
|
-
to: pathname,
|
|
74
|
-
itemProp: "item",
|
|
75
|
-
children: [
|
|
76
|
-
_jsx("span", {
|
|
77
|
-
className: "denhaag-breadcrumb__text",
|
|
78
|
-
itemProp: "name",
|
|
79
|
-
children: crumbLabel,
|
|
80
|
-
}),
|
|
81
|
-
_jsx("meta", { content: idx.toString(), itemProp: "position" }),
|
|
82
|
-
],
|
|
83
|
-
}),
|
|
84
|
-
});
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { InputText, InputPassword, InputEmail, InputDate, InputNumber } from "./input";
|
|
2
|
-
import { Textarea } from "./textarea";
|
|
3
|
-
import { InputCheckbox } from "./checkbox";
|
|
4
|
-
export { InputText, InputPassword, InputEmail, InputDate, InputNumber, InputCheckbox, Textarea };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
import { TextField } from "@gemeente-denhaag/textfield";
|
|
4
|
-
import { ShowIcon, HideIcon } from "@gemeente-denhaag/icons";
|
|
5
|
-
export const InputPassword = ({ disabled, name, validation, register, errors, }) => {
|
|
6
|
-
const [showPassword, setShowPassword] = React.useState(false);
|
|
7
|
-
return (_jsx(TextField, { type: showPassword ? "text" : "password", ...{ disabled }, ...register(name, { ...validation }), invalid: errors[name], icon: _jsx("span", { onClick: () => setShowPassword(!showPassword), children: showPassword ? _jsx(HideIcon, {}) : _jsx(ShowIcon, {}) }) }));
|
|
8
|
-
};
|
|
9
|
-
export const InputText = ({ disabled, name, defaultValue, validation, register, errors, }) => (_jsx(TextField, { type: "text", ...{ defaultValue, disabled }, ...register(name, { ...validation }), invalid: errors[name] }));
|
|
10
|
-
export const InputEmail = ({ disabled, name, defaultValue, validation, register, errors, }) => (_jsx(TextField, { type: "email", ...{ defaultValue, disabled }, ...register(name, { ...validation }), invalid: errors[name] }));
|
|
11
|
-
export const InputDate = ({ disabled, name, defaultValue, validation, register, errors, }) => (_jsx(TextField, { type: "date", ...{ defaultValue, disabled }, ...register(name, { ...validation }), invalid: errors[name] }));
|
|
12
|
-
export const InputNumber = ({ disabled, name, defaultValue, validation, register, errors, }) => (_jsx(TextField, { type: "number", ...{ defaultValue, disabled }, ...register(name, { ...validation }), invalid: errors[name] }));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import clsx from "clsx";
|
|
3
|
-
import * as styles from "./imageDivider.module.css";
|
|
4
|
-
export const ImageDivider = ({ image, layoutClassName }) => {
|
|
5
|
-
return _jsx("img", { src: image, className: clsx(styles.divider, layoutClassName) });
|
|
6
|
-
};
|