@conduction/components 2.1.27 → 2.1.29
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/npm-publish.yml +39 -39
- package/.prettierrc +30 -30
- package/README.md +1 -0
- package/package.json +7 -2
- package/src/components/badgeCounter/BadgeCounter.module.css +27 -27
- package/src/components/card/detailsCard/DetailsCard.module.css +51 -51
- package/src/components/card/downloadCard/DownloadCard.module.css +27 -27
- package/src/components/card/horizontalImageCard/HorizontalImageCard.module.css +34 -34
- package/src/components/card/imageAndDetailsCard/ImageAndDetailsCard.module.css +63 -63
- package/src/components/card/index.js +5 -5
- package/src/components/card/index.tsx +8 -8
- package/src/components/card/infoCard/InfoCard.module.css +26 -26
- package/src/components/card/richContentCard/RichContentCard.module.css +93 -93
- package/src/components/codeBlock/CodeBlock.module.css +6 -6
- package/src/components/container/Container.js +3 -3
- package/src/components/container/Container.module.css +9 -9
- package/src/components/denhaag-wrappers/breadcrumbs/Breadcrumbs.css +222 -222
- package/src/components/denhaag-wrappers/breadcrumbs/Breadcrumbs.js +84 -84
- package/src/components/denhaag-wrappers/pagination/Pagination.css +120 -120
- package/src/components/editableTableRow/EditableTableRow.module.css +25 -25
- 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/select/select.module.css +38 -38
- 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/privateRoute/PrivateRoute.js +15 -15
- package/src/components/quoteWrapper/QuoteWrapper.module.css +12 -12
- package/src/components/statusSteps/StatusSteps.js +5 -5
- package/src/components/tag/Tag.module.css +44 -44
- package/src/components/topNav/index.ts +4 -4
- package/src/components/topNav/primaryTopNav/PrimaryTopNav.module.css +6 -0
- package/src/components/topNav/secondaryTopNav/SecondaryTopNav.module.css +63 -63
- package/src/custom.d.ts +4 -4
- package/src/index.ts +79 -79
- package/lib/components/badgeCounter/BadgeCounter.d.ts +0 -8
- package/lib/components/badgeCounter/BadgeCounter.js +0 -4
- package/lib/components/badgeCounter/BadgeCounter.module.css +0 -27
- package/lib/components/card/detailsCard/DetailsCard.d.ts +0 -14
- package/lib/components/card/detailsCard/DetailsCard.js +0 -10
- package/lib/components/card/detailsCard/DetailsCard.module.css +0 -51
- package/lib/components/card/downloadCard/DownloadCard.d.ts +0 -11
- package/lib/components/card/downloadCard/DownloadCard.js +0 -8
- package/lib/components/card/downloadCard/DownloadCard.module.css +0 -27
- package/lib/components/card/horizontalImageCard/HorizontalImageCard.d.ts +0 -13
- package/lib/components/card/horizontalImageCard/HorizontalImageCard.js +0 -9
- package/lib/components/card/horizontalImageCard/HorizontalImageCard.module.css +0 -34
- package/lib/components/card/imageAndDetailsCard/ImageAndDetailsCard.d.ts +0 -14
- package/lib/components/card/imageAndDetailsCard/ImageAndDetailsCard.js +0 -9
- package/lib/components/card/imageAndDetailsCard/ImageAndDetailsCard.module.css +0 -63
- package/lib/components/card/index.d.ts +0 -7
- package/lib/components/card/index.js +0 -7
- package/lib/components/card/infoCard/InfoCard.d.ts +0 -8
- package/lib/components/card/infoCard/InfoCard.js +0 -6
- package/lib/components/card/infoCard/InfoCard.module.css +0 -26
- package/lib/components/card/richContentCard/RichContentCard.d.ts +0 -19
- package/lib/components/card/richContentCard/RichContentCard.js +0 -16
- package/lib/components/card/richContentCard/RichContentCard.module.css +0 -93
- package/lib/components/codeBlock/CodeBlock.d.ts +0 -6
- package/lib/components/codeBlock/CodeBlock.js +0 -3
- package/lib/components/codeBlock/CodeBlock.module.css +0 -6
- package/lib/components/container/Container.d.ts +0 -6
- package/lib/components/container/Container.js +0 -4
- package/lib/components/container/Container.module.css +0 -9
- package/lib/components/denhaag-wrappers/breadcrumbs/Breadcrumbs.css +0 -222
- package/lib/components/denhaag-wrappers/breadcrumbs/Breadcrumbs.d.ts +0 -17
- package/lib/components/denhaag-wrappers/breadcrumbs/Breadcrumbs.js +0 -20
- package/lib/components/denhaag-wrappers/pagination/Pagination.css +0 -120
- package/lib/components/denhaag-wrappers/pagination/Pagination.d.ts +0 -9
- package/lib/components/denhaag-wrappers/pagination/Pagination.js +0 -15
- package/lib/components/editableTableRow/EditableTableRow.d.ts +0 -14
- package/lib/components/editableTableRow/EditableTableRow.js +0 -31
- package/lib/components/editableTableRow/EditableTableRow.module.css +0 -25
- package/lib/components/formFields/checkbox/Checkbox.module.css +0 -7
- package/lib/components/formFields/checkbox/checkbox.d.ts +0 -9
- package/lib/components/formFields/checkbox/checkbox.js +0 -3
- package/lib/components/formFields/createKeyValue/CreateKeyValue.d.ts +0 -23
- package/lib/components/formFields/createKeyValue/CreateKeyValue.js +0 -42
- package/lib/components/formFields/createKeyValue/CreateKeyValue.module.css +0 -56
- package/lib/components/formFields/date/Date.d.ts +0 -12
- package/lib/components/formFields/date/Date.js +0 -10
- package/lib/components/formFields/date/Date.module.css +0 -12
- package/lib/components/formFields/errorMessage/ErrorMessage.d.ts +0 -5
- package/lib/components/formFields/errorMessage/ErrorMessage.js +0 -3
- package/lib/components/formFields/errorMessage/ErrorMessage.module.css +0 -9
- package/lib/components/formFields/index.d.ts +0 -8
- package/lib/components/formFields/index.js +0 -8
- package/lib/components/formFields/input.d.ts +0 -21
- package/lib/components/formFields/input.js +0 -16
- package/lib/components/formFields/radio.d.ts +0 -9
- package/lib/components/formFields/radio.js +0 -3
- package/lib/components/formFields/select/select.d.ts +0 -20
- package/lib/components/formFields/select/select.js +0 -22
- package/lib/components/formFields/select/select.module.css +0 -38
- package/lib/components/formFields/textarea.d.ts +0 -9
- package/lib/components/formFields/textarea.js +0 -4
- package/lib/components/formFields/types.d.ts +0 -6
- package/lib/components/formFields/types.js +0 -1
- package/lib/components/imageDivider/ImageDivider.d.ts +0 -7
- package/lib/components/imageDivider/ImageDivider.js +0 -6
- package/lib/components/imageDivider/imageDivider.module.css +0 -5
- package/lib/components/logo/Logo.d.ts +0 -8
- package/lib/components/logo/Logo.js +0 -10
- package/lib/components/logo/Logo.module.css +0 -15
- package/lib/components/metaIcon/MetaIcon.d.ts +0 -7
- package/lib/components/metaIcon/MetaIcon.js +0 -3
- package/lib/components/metaIcon/MetaIcon.module.css +0 -29
- package/lib/components/notificationPopUp/NotificationPopUp.d.ts +0 -26
- package/lib/components/notificationPopUp/NotificationPopUp.js +0 -34
- package/lib/components/notificationPopUp/NotificationPopUp.module.css +0 -61
- package/lib/components/privateRoute/PrivateRoute.d.ts +0 -6
- package/lib/components/privateRoute/PrivateRoute.js +0 -15
- package/lib/components/quoteWrapper/QuoteWrapper.d.ts +0 -7
- package/lib/components/quoteWrapper/QuoteWrapper.js +0 -5
- package/lib/components/quoteWrapper/QuoteWrapper.module.css +0 -12
- package/lib/components/statusSteps/StatusSteps.d.ts +0 -13
- package/lib/components/statusSteps/StatusSteps.js +0 -5
- package/lib/components/tag/Tag.d.ts +0 -10
- package/lib/components/tag/Tag.js +0 -6
- package/lib/components/tag/Tag.module.css +0 -44
- package/lib/components/toolTip/ToolTip.d.ts +0 -9
- package/lib/components/toolTip/ToolTip.js +0 -8
- package/lib/components/toolTip/ToolTip.module.css +0 -17
- package/lib/components/topNav/index.d.ts +0 -3
- package/lib/components/topNav/index.js +0 -3
- package/lib/components/topNav/primaryTopNav/PrimaryTopNav.d.ts +0 -20
- package/lib/components/topNav/primaryTopNav/PrimaryTopNav.js +0 -17
- package/lib/components/topNav/primaryTopNav/PrimaryTopNav.module.css +0 -157
- package/lib/components/topNav/secondaryTopNav/SecondaryTopNav.d.ts +0 -12
- package/lib/components/topNav/secondaryTopNav/SecondaryTopNav.js +0 -7
- package/lib/components/topNav/secondaryTopNav/SecondaryTopNav.module.css +0 -63
- package/lib/index.d.ts +0 -27
- package/lib/index.js +0 -20
|
@@ -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,3 +1,3 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import * as styles from "./MetaIcon.module.css";
|
|
3
|
-
export const MetaIcon = ({ icon, label, value }) => (_jsxs("div", { className: styles.container, children: [_jsx("span", { className: styles.icon, children: icon }), _jsx("span", { children: label }), _jsx("span", { className: styles.value, children: value })] }));
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import * as styles from "./MetaIcon.module.css";
|
|
3
|
+
export const MetaIcon = ({ icon, label, value }) => (_jsxs("div", { className: styles.container, children: [_jsx("span", { className: styles.icon, children: icon }), _jsx("span", { children: label }), _jsx("span", { className: styles.value, children: value })] }));
|
|
@@ -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,15 +1,15 @@
|
|
|
1
|
-
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { navigate } from "gatsby";
|
|
4
|
-
export const PrivateRoute = ({ children, isLoggedIn }) => {
|
|
5
|
-
const [authenticated, setAuthenticated] = React.useState(false);
|
|
6
|
-
React.useEffect(() => {
|
|
7
|
-
if (!isLoggedIn && window.location.pathname !== "/login") {
|
|
8
|
-
navigate("/login");
|
|
9
|
-
}
|
|
10
|
-
isLoggedIn && setAuthenticated(true);
|
|
11
|
-
}, [isLoggedIn]);
|
|
12
|
-
if (!authenticated)
|
|
13
|
-
return _jsx(_Fragment, {});
|
|
14
|
-
return _jsx(_Fragment, { children: children });
|
|
15
|
-
};
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { navigate } from "gatsby";
|
|
4
|
+
export const PrivateRoute = ({ children, isLoggedIn }) => {
|
|
5
|
+
const [authenticated, setAuthenticated] = React.useState(false);
|
|
6
|
+
React.useEffect(() => {
|
|
7
|
+
if (!isLoggedIn && window.location.pathname !== "/login") {
|
|
8
|
+
navigate("/login");
|
|
9
|
+
}
|
|
10
|
+
isLoggedIn && setAuthenticated(true);
|
|
11
|
+
}, [isLoggedIn]);
|
|
12
|
+
if (!authenticated)
|
|
13
|
+
return _jsx(_Fragment, {});
|
|
14
|
+
return _jsx(_Fragment, { children: children });
|
|
15
|
+
};
|
|
@@ -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,5 +1,5 @@
|
|
|
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
|
-
};
|
|
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
|
+
};
|
|
@@ -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 };
|
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
--conduction-primary-top-nav-toggle-icon-size: 24px;
|
|
10
10
|
--conduction-primary-top-nav-mobile-logo-padding: 18px;
|
|
11
11
|
--conduction-primary-top-nav-item-icon-margin: var(--skeleton-size-2x);
|
|
12
|
+
--conduction-primary-top-nav-dropdown-background-color: var(--skeleton-color-white);
|
|
13
|
+
--conduction-primary-top-nav-dropdown-background-color-hover: var(--skeleton-color-grey-1);
|
|
12
14
|
}
|
|
13
15
|
|
|
14
16
|
.container {
|
|
@@ -112,6 +114,10 @@
|
|
|
112
114
|
color: var(--conduction-primary-top-nav-dropdown-color);
|
|
113
115
|
}
|
|
114
116
|
|
|
117
|
+
.primary .dropdown .li:hover .link {
|
|
118
|
+
color: var(--conduction-primary-top-nav-dropdown-color-hover);
|
|
119
|
+
}
|
|
120
|
+
|
|
115
121
|
.dropdown .li:hover {
|
|
116
122
|
background: var(--conduction-primary-top-nav-dropdown-background-color-hover);
|
|
117
123
|
}
|
|
@@ -1,63 +1,63 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--conduction-secondary-top-nav-item-padding: var(--skeleton-size-md);
|
|
3
|
-
--conduction-secondary-top-nav-font-size: var(--skeleton-font-size-md);
|
|
4
|
-
--conduction-secondary-top-nav-color: var(--skeleton-color-white);
|
|
5
|
-
--conduction-secondary-top-nav-background-color: var(--skeleton-color-secondary-5);
|
|
6
|
-
--conduction-secondary-top-nav-background-color-hover: rgba(0, 0, 0, 0.1);
|
|
7
|
-
--conduction-secondary-top-nav-font-weight: var(--skeleton-font-weight-light);
|
|
8
|
-
--conduction-secondary-top-nav-color-active: rgba(0, 0, 0, 0.1);
|
|
9
|
-
--conduction-secondary-top-nav-box-shadow-active: inset 0 -4px black;
|
|
10
|
-
--conduction-secondary-top-nav-item-icon-margin: var(--skeleton-size-2x);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.secondary:hover {
|
|
14
|
-
cursor: pointer;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.ul {
|
|
18
|
-
margin: unset;
|
|
19
|
-
display: flex;
|
|
20
|
-
padding-inline-start: unset;
|
|
21
|
-
align-items: center;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.li {
|
|
25
|
-
list-style-type: none;
|
|
26
|
-
display: block;
|
|
27
|
-
padding-inline-start: var(--conduction-secondary-top-nav-item-padding);
|
|
28
|
-
padding-inline-end: var(--conduction-secondary-top-nav-item-padding);
|
|
29
|
-
padding-block-start: var(--conduction-secondary-top-nav-item-padding);
|
|
30
|
-
padding-block-end: var(--conduction-secondary-top-nav-item-padding);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.li:hover {
|
|
34
|
-
background-color: var(--conduction-secondary-top-nav-background-color-hover);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.current {
|
|
38
|
-
background-color: var(--conduction-secondary-top-nav-color-active);
|
|
39
|
-
box-shadow: var(--conduction-secondary-top-nav-box-shadow-active);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.secondary {
|
|
43
|
-
font-weight: var(--conduction-secondary-top-nav-font-weight);
|
|
44
|
-
width: fit-content;
|
|
45
|
-
font-size: var(--conduction-secondary-top-nav-font-size);
|
|
46
|
-
background-color: var(--conduction-secondary-top-nav-background-color);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.secondary .link {
|
|
50
|
-
color: var(--conduction-secondary-top-nav-color);
|
|
51
|
-
display: block;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.label {
|
|
55
|
-
overflow: hidden;
|
|
56
|
-
max-width: 37ch;
|
|
57
|
-
text-overflow: ellipsis;
|
|
58
|
-
white-space: nowrap;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.label > :not(:last-child) {
|
|
62
|
-
margin-inline-end: var(--conduction-secondary-top-nav-item-icon-margin);
|
|
63
|
-
}
|
|
1
|
+
:root {
|
|
2
|
+
--conduction-secondary-top-nav-item-padding: var(--skeleton-size-md);
|
|
3
|
+
--conduction-secondary-top-nav-font-size: var(--skeleton-font-size-md);
|
|
4
|
+
--conduction-secondary-top-nav-color: var(--skeleton-color-white);
|
|
5
|
+
--conduction-secondary-top-nav-background-color: var(--skeleton-color-secondary-5);
|
|
6
|
+
--conduction-secondary-top-nav-background-color-hover: rgba(0, 0, 0, 0.1);
|
|
7
|
+
--conduction-secondary-top-nav-font-weight: var(--skeleton-font-weight-light);
|
|
8
|
+
--conduction-secondary-top-nav-color-active: rgba(0, 0, 0, 0.1);
|
|
9
|
+
--conduction-secondary-top-nav-box-shadow-active: inset 0 -4px black;
|
|
10
|
+
--conduction-secondary-top-nav-item-icon-margin: var(--skeleton-size-2x);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.secondary:hover {
|
|
14
|
+
cursor: pointer;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.ul {
|
|
18
|
+
margin: unset;
|
|
19
|
+
display: flex;
|
|
20
|
+
padding-inline-start: unset;
|
|
21
|
+
align-items: center;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.li {
|
|
25
|
+
list-style-type: none;
|
|
26
|
+
display: block;
|
|
27
|
+
padding-inline-start: var(--conduction-secondary-top-nav-item-padding);
|
|
28
|
+
padding-inline-end: var(--conduction-secondary-top-nav-item-padding);
|
|
29
|
+
padding-block-start: var(--conduction-secondary-top-nav-item-padding);
|
|
30
|
+
padding-block-end: var(--conduction-secondary-top-nav-item-padding);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.li:hover {
|
|
34
|
+
background-color: var(--conduction-secondary-top-nav-background-color-hover);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.current {
|
|
38
|
+
background-color: var(--conduction-secondary-top-nav-color-active);
|
|
39
|
+
box-shadow: var(--conduction-secondary-top-nav-box-shadow-active);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.secondary {
|
|
43
|
+
font-weight: var(--conduction-secondary-top-nav-font-weight);
|
|
44
|
+
width: fit-content;
|
|
45
|
+
font-size: var(--conduction-secondary-top-nav-font-size);
|
|
46
|
+
background-color: var(--conduction-secondary-top-nav-background-color);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.secondary .link {
|
|
50
|
+
color: var(--conduction-secondary-top-nav-color);
|
|
51
|
+
display: block;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.label {
|
|
55
|
+
overflow: hidden;
|
|
56
|
+
max-width: 37ch;
|
|
57
|
+
text-overflow: ellipsis;
|
|
58
|
+
white-space: nowrap;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.label > :not(:last-child) {
|
|
62
|
+
margin-inline-end: var(--conduction-secondary-top-nav-item-icon-margin);
|
|
63
|
+
}
|
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,79 +1,79 @@
|
|
|
1
|
-
import {
|
|
2
|
-
DownloadCard,
|
|
3
|
-
HorizontalImageCard,
|
|
4
|
-
ImageAndDetailsCard,
|
|
5
|
-
RichContentCard,
|
|
6
|
-
DetailsCard,
|
|
7
|
-
InfoCard,
|
|
8
|
-
} from "./components/card";
|
|
9
|
-
import { Container } from "./components/container/Container";
|
|
10
|
-
import { Breadcrumbs } from "./components/denhaag-wrappers/breadcrumbs/Breadcrumbs";
|
|
11
|
-
import { EditableTableRow } from "./components/editableTableRow/EditableTableRow";
|
|
12
|
-
import {
|
|
13
|
-
InputText,
|
|
14
|
-
InputPassword,
|
|
15
|
-
InputEmail,
|
|
16
|
-
InputDate,
|
|
17
|
-
InputNumber,
|
|
18
|
-
Textarea,
|
|
19
|
-
InputCheckbox,
|
|
20
|
-
InputRadio,
|
|
21
|
-
InputFile,
|
|
22
|
-
SelectMultiple,
|
|
23
|
-
SelectSingle,
|
|
24
|
-
} from "./components/formFields";
|
|
25
|
-
import { ImageDivider } from "./components/imageDivider/ImageDivider";
|
|
26
|
-
import { AuthenticatedLogo, UnauthenticatedLogo } from "./components/logo/Logo";
|
|
27
|
-
import { MetaIcon } from "./components/metaIcon/MetaIcon";
|
|
28
|
-
import { PrivateRoute } from "./components/privateRoute/PrivateRoute";
|
|
29
|
-
import { StatusSteps } from "./components/statusSteps/StatusSteps";
|
|
30
|
-
import { PrimaryTopNav, SecondaryTopNav } from "./components/topNav";
|
|
31
|
-
import { Tag } from "./components/tag/Tag";
|
|
32
|
-
import {
|
|
33
|
-
NotificationPopUpController,
|
|
34
|
-
NotificationPopUp as _NotificationPopUp,
|
|
35
|
-
} from "./components/notificationPopUp/NotificationPopUp";
|
|
36
|
-
const NotificationPopUp = { controller: NotificationPopUpController, NotificationPopUp: _NotificationPopUp };
|
|
37
|
-
import { QuoteWrapper } from "./components/quoteWrapper/QuoteWrapper";
|
|
38
|
-
import { Pagination } from "./components/denhaag-wrappers/pagination/Pagination";
|
|
39
|
-
import { BadgeCounter } from "./components/badgeCounter/BadgeCounter";
|
|
40
|
-
import { CodeBlock } from "./components/codeBlock/CodeBlock";
|
|
41
|
-
import { ToolTip } from "./components/toolTip/ToolTip";
|
|
42
|
-
|
|
43
|
-
export {
|
|
44
|
-
InputRadio,
|
|
45
|
-
DownloadCard,
|
|
46
|
-
HorizontalImageCard,
|
|
47
|
-
ImageAndDetailsCard,
|
|
48
|
-
RichContentCard,
|
|
49
|
-
DetailsCard,
|
|
50
|
-
InfoCard,
|
|
51
|
-
Container,
|
|
52
|
-
Breadcrumbs,
|
|
53
|
-
EditableTableRow,
|
|
54
|
-
InputText,
|
|
55
|
-
InputPassword,
|
|
56
|
-
InputEmail,
|
|
57
|
-
InputDate,
|
|
58
|
-
InputNumber,
|
|
59
|
-
InputFile,
|
|
60
|
-
Textarea,
|
|
61
|
-
InputCheckbox,
|
|
62
|
-
SelectMultiple,
|
|
63
|
-
SelectSingle,
|
|
64
|
-
ImageDivider,
|
|
65
|
-
AuthenticatedLogo,
|
|
66
|
-
UnauthenticatedLogo,
|
|
67
|
-
MetaIcon,
|
|
68
|
-
PrivateRoute,
|
|
69
|
-
StatusSteps,
|
|
70
|
-
PrimaryTopNav,
|
|
71
|
-
SecondaryTopNav,
|
|
72
|
-
Tag,
|
|
73
|
-
NotificationPopUp,
|
|
74
|
-
QuoteWrapper,
|
|
75
|
-
Pagination,
|
|
76
|
-
BadgeCounter,
|
|
77
|
-
CodeBlock,
|
|
78
|
-
ToolTip,
|
|
79
|
-
};
|
|
1
|
+
import {
|
|
2
|
+
DownloadCard,
|
|
3
|
+
HorizontalImageCard,
|
|
4
|
+
ImageAndDetailsCard,
|
|
5
|
+
RichContentCard,
|
|
6
|
+
DetailsCard,
|
|
7
|
+
InfoCard,
|
|
8
|
+
} from "./components/card";
|
|
9
|
+
import { Container } from "./components/container/Container";
|
|
10
|
+
import { Breadcrumbs } from "./components/denhaag-wrappers/breadcrumbs/Breadcrumbs";
|
|
11
|
+
import { EditableTableRow } from "./components/editableTableRow/EditableTableRow";
|
|
12
|
+
import {
|
|
13
|
+
InputText,
|
|
14
|
+
InputPassword,
|
|
15
|
+
InputEmail,
|
|
16
|
+
InputDate,
|
|
17
|
+
InputNumber,
|
|
18
|
+
Textarea,
|
|
19
|
+
InputCheckbox,
|
|
20
|
+
InputRadio,
|
|
21
|
+
InputFile,
|
|
22
|
+
SelectMultiple,
|
|
23
|
+
SelectSingle,
|
|
24
|
+
} from "./components/formFields";
|
|
25
|
+
import { ImageDivider } from "./components/imageDivider/ImageDivider";
|
|
26
|
+
import { AuthenticatedLogo, UnauthenticatedLogo } from "./components/logo/Logo";
|
|
27
|
+
import { MetaIcon } from "./components/metaIcon/MetaIcon";
|
|
28
|
+
import { PrivateRoute } from "./components/privateRoute/PrivateRoute";
|
|
29
|
+
import { StatusSteps } from "./components/statusSteps/StatusSteps";
|
|
30
|
+
import { PrimaryTopNav, SecondaryTopNav } from "./components/topNav";
|
|
31
|
+
import { Tag } from "./components/tag/Tag";
|
|
32
|
+
import {
|
|
33
|
+
NotificationPopUpController,
|
|
34
|
+
NotificationPopUp as _NotificationPopUp,
|
|
35
|
+
} from "./components/notificationPopUp/NotificationPopUp";
|
|
36
|
+
const NotificationPopUp = { controller: NotificationPopUpController, NotificationPopUp: _NotificationPopUp };
|
|
37
|
+
import { QuoteWrapper } from "./components/quoteWrapper/QuoteWrapper";
|
|
38
|
+
import { Pagination } from "./components/denhaag-wrappers/pagination/Pagination";
|
|
39
|
+
import { BadgeCounter } from "./components/badgeCounter/BadgeCounter";
|
|
40
|
+
import { CodeBlock } from "./components/codeBlock/CodeBlock";
|
|
41
|
+
import { ToolTip } from "./components/toolTip/ToolTip";
|
|
42
|
+
|
|
43
|
+
export {
|
|
44
|
+
InputRadio,
|
|
45
|
+
DownloadCard,
|
|
46
|
+
HorizontalImageCard,
|
|
47
|
+
ImageAndDetailsCard,
|
|
48
|
+
RichContentCard,
|
|
49
|
+
DetailsCard,
|
|
50
|
+
InfoCard,
|
|
51
|
+
Container,
|
|
52
|
+
Breadcrumbs,
|
|
53
|
+
EditableTableRow,
|
|
54
|
+
InputText,
|
|
55
|
+
InputPassword,
|
|
56
|
+
InputEmail,
|
|
57
|
+
InputDate,
|
|
58
|
+
InputNumber,
|
|
59
|
+
InputFile,
|
|
60
|
+
Textarea,
|
|
61
|
+
InputCheckbox,
|
|
62
|
+
SelectMultiple,
|
|
63
|
+
SelectSingle,
|
|
64
|
+
ImageDivider,
|
|
65
|
+
AuthenticatedLogo,
|
|
66
|
+
UnauthenticatedLogo,
|
|
67
|
+
MetaIcon,
|
|
68
|
+
PrivateRoute,
|
|
69
|
+
StatusSteps,
|
|
70
|
+
PrimaryTopNav,
|
|
71
|
+
SecondaryTopNav,
|
|
72
|
+
Tag,
|
|
73
|
+
NotificationPopUp,
|
|
74
|
+
QuoteWrapper,
|
|
75
|
+
Pagination,
|
|
76
|
+
BadgeCounter,
|
|
77
|
+
CodeBlock,
|
|
78
|
+
ToolTip,
|
|
79
|
+
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
interface BadgeCounterProps {
|
|
3
|
-
number: string;
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
layoutClassName?: string;
|
|
6
|
-
}
|
|
7
|
-
export declare const BadgeCounter: ({ number, children, layoutClassName, }: React.PropsWithChildren<BadgeCounterProps>) => JSX.Element;
|
|
8
|
-
export {};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import * as styles from "./BadgeCounter.module.css";
|
|
3
|
-
import clsx from "clsx";
|
|
4
|
-
export const BadgeCounter = ({ number, children, layoutClassName, }) => (_jsxs("div", { className: styles.content, children: [children, _jsx("span", { className: clsx([layoutClassName && layoutClassName], styles.badge), children: number })] }));
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--conduction-badge-counter-color: hsl(0 0% 0%);
|
|
3
|
-
--conduction-badge-counter-background-color: var(--skeleton-color-grey-1);
|
|
4
|
-
--conduction-badge-counter-height: var(--skeleton-size-md);
|
|
5
|
-
--conduction-badge-counter-width: var(--skeleton-size-md);
|
|
6
|
-
--conduction-badge-counter-font-size: var(--skeleton-font-size-xs);
|
|
7
|
-
--conduction-badge-counter-max-number-font-size: var(--skeleton-font-size-2xs);
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.content {
|
|
11
|
-
display: flex;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.badge {
|
|
15
|
-
height: var(--conduction-badge-counter-height);
|
|
16
|
-
width: var(--conduction-badge-counter-width);
|
|
17
|
-
border-radius: 50%;
|
|
18
|
-
font-size: var(--conduction-badge-counter-font-size);
|
|
19
|
-
display: flex;
|
|
20
|
-
align-items: center;
|
|
21
|
-
justify-content: space-around;
|
|
22
|
-
background-color: var(--conduction-badge-counter-background-color);
|
|
23
|
-
color: var(--conduction-badge-counter-color);
|
|
24
|
-
}
|
|
25
|
-
.maxNumber {
|
|
26
|
-
font-size: var(--conduction-badge-counter-max-number-font-size);
|
|
27
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
interface DetailsCardProps {
|
|
3
|
-
title: string;
|
|
4
|
-
introduction?: string;
|
|
5
|
-
link: {
|
|
6
|
-
href: string;
|
|
7
|
-
label: string;
|
|
8
|
-
};
|
|
9
|
-
tags?: string[];
|
|
10
|
-
subHeader?: string;
|
|
11
|
-
layoutClassName?: string;
|
|
12
|
-
}
|
|
13
|
-
export declare const DetailsCard: ({ title, subHeader, introduction, link, tags, layoutClassName, }: DetailsCardProps) => JSX.Element;
|
|
14
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import * as styles from "./DetailsCard.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
|
-
import { Tag } from "../../tag/Tag";
|
|
8
|
-
export const DetailsCard = ({ title, subHeader, introduction, link, tags, layoutClassName, }) => {
|
|
9
|
-
return (_jsx("div", { className: clsx(styles.container, [layoutClassName && layoutClassName]), onClick: () => navigate(link.href), children: _jsxs("div", { className: styles.content, children: [_jsxs("div", { children: [_jsx("div", { className: styles.title, children: title }), _jsx("span", { className: styles.subHeader, children: subHeader })] }), tags && (_jsx("div", { className: styles.tags, children: tags.map((tag, idx) => (_jsx(Tag, { label: tag }, idx))) })), _jsx("div", { className: styles.introduction, children: introduction }), _jsx("div", { className: styles.link, children: _jsx(Link, { icon: _jsx(ArrowRightIcon, {}), iconAlign: "start", children: link.label }) })] }) }));
|
|
10
|
-
};
|