@conduction/components 1.0.26 → 1.0.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/.prettierrc +2 -1
- package/package.json +7 -2
- package/src/components/card/detailsCard/DetailsCard.module.css +18 -15
- package/src/components/card/downloadCard/DownloadCard.module.css +11 -7
- package/src/components/card/horizontalImageCard/HorizontalImageCard.module.css +17 -9
- package/src/components/card/imageAndDetailsCard/ImageAndDetailsCard.module.css +20 -16
- package/src/components/card/infoCard/InfoCard.module.css +11 -22
- package/src/components/card/richContentCard/RichContentCard.module.css +22 -18
- package/src/components/container/Container.module.css +2 -2
- package/src/components/editableTableRow/EditableTableRow.module.css +3 -3
- package/src/components/formFields/select/select.module.css +21 -51
- package/src/components/metaIcon/MetaIcon.module.css +15 -3
- package/src/components/notificationPopUp/NotificationPopUp.module.css +11 -10
- package/src/components/quoteWrapper/QuoteWrapper.module.css +6 -6
- package/src/components/tag/Tag.module.css +17 -6
- package/src/components/topNav/index.ts +4 -0
- package/src/components/topNav/primaryTopNav/PrimaryTopNav.module.css +60 -0
- package/src/components/topNav/primaryTopNav/PrimaryTopNav.tsx +52 -0
- package/src/components/topNav/secondaryTopNav/SecondaryTopNav.module.css +43 -0
- package/src/components/topNav/{TopNav.tsx → secondaryTopNav/SecondaryTopNav.tsx} +1 -19
- package/src/index.ts +1 -1
- 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 -48
- package/lib/components/card/downloadCard/DownloadCard.d.ts +0 -10
- package/lib/components/card/downloadCard/DownloadCard.js +0 -8
- package/lib/components/card/downloadCard/DownloadCard.module.css +0 -23
- 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 -26
- 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 -59
- 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 -7
- package/lib/components/card/infoCard/InfoCard.js +0 -5
- package/lib/components/card/infoCard/InfoCard.module.css +0 -37
- package/lib/components/card/richContentCard/RichContentCard.d.ts +0 -19
- package/lib/components/card/richContentCard/RichContentCard.js +0 -15
- package/lib/components/card/richContentCard/RichContentCard.module.css +0 -89
- 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.d.ts +0 -7
- package/lib/components/formFields/checkbox.js +0 -3
- package/lib/components/formFields/index.d.ts +0 -6
- package/lib/components/formFields/index.js +0 -6
- package/lib/components/formFields/input.d.ts +0 -19
- package/lib/components/formFields/input.js +0 -13
- 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 -16
- package/lib/components/formFields/select/select.js +0 -14
- package/lib/components/formFields/select/select.module.css +0 -65
- package/lib/components/formFields/select.d.ts +0 -17
- package/lib/components/formFields/select.js +0 -14
- package/lib/components/formFields/textarea.d.ts +0 -8
- package/lib/components/formFields/textarea.js +0 -3
- 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 -17
- package/lib/components/notificationPopUp/NotificationPopUp.d.ts +0 -22
- package/lib/components/notificationPopUp/NotificationPopUp.js +0 -31
- package/lib/components/notificationPopUp/NotificationPopUp.module.css +0 -60
- 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 -6
- package/lib/components/tag/Tag.js +0 -3
- package/lib/components/tag/Tag.module.css +0 -9
- package/lib/components/topNav/TopNav.d.ts +0 -12
- package/lib/components/topNav/TopNav.js +0 -10
- package/lib/components/topNav/TopNav.module.css +0 -71
- package/lib/index.d.ts +0 -24
- package/lib/index.js +0 -17
- package/src/components/topNav/TopNav.js +0 -10
- package/src/components/topNav/TopNav.module.css +0 -71
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
.select > div {
|
|
2
|
-
background-color: var(
|
|
3
|
-
--utrecht-textbox-background-color,
|
|
4
|
-
var(--utrecht-form-input-background-color)
|
|
5
|
-
);
|
|
6
|
-
border-width: var(
|
|
7
|
-
--utrecht-textbox-border-width,
|
|
8
|
-
var(--utrecht-form-input-border-width)
|
|
9
|
-
);
|
|
10
|
-
border-bottom-width: var(
|
|
11
|
-
--utrecht-textbox-border-bottom-width,
|
|
12
|
-
var(--utrecht-textbox-border-width, var(--utrecht-form-input-border-width))
|
|
13
|
-
);
|
|
14
|
-
border-color: var(
|
|
15
|
-
--utrecht-textbox-border-color,
|
|
16
|
-
var(--utrecht-form-input-border-color)
|
|
17
|
-
);
|
|
18
|
-
border-radius: var(
|
|
19
|
-
--utrecht-textbox-border-radius,
|
|
20
|
-
var(--utrecht-form-input-border-radius, 0)
|
|
21
|
-
);
|
|
22
|
-
border-style: solid;
|
|
23
|
-
box-sizing: border-box;
|
|
24
|
-
color: var(--utrecht-textbox-color, var(--utrecht-form-input-color));
|
|
25
|
-
font-family: var(
|
|
26
|
-
--utrecht-textbox-font-family,
|
|
27
|
-
var(--utrecht-form-input-font-family)
|
|
28
|
-
);
|
|
29
|
-
font-size: var(
|
|
30
|
-
--utrecht-textbox-font-size,
|
|
31
|
-
var(--utrecht-form-input-font-size, 1em)
|
|
32
|
-
);
|
|
33
|
-
max-inline-size: var(
|
|
34
|
-
--utrecht-textbox-max-inline-size,
|
|
35
|
-
var(--utrecht-form-input-max-inline-size)
|
|
36
|
-
);
|
|
37
|
-
|
|
38
|
-
padding-block-start: 6.5px;
|
|
39
|
-
padding-block-end: 6.5px;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.select > div:hover {
|
|
43
|
-
border-color: var(
|
|
44
|
-
--utrecht-textbox-border-color,
|
|
45
|
-
var(--utrecht-form-input-border-color)
|
|
46
|
-
);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.select > div:focus-within {
|
|
50
|
-
outline: none;
|
|
51
|
-
box-shadow: none;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.select > div:focus-within::after {
|
|
55
|
-
pointer-events: none;
|
|
56
|
-
border: var(--denhaag-focus-border);
|
|
57
|
-
border-radius: var(--denhaag-border-radius);
|
|
58
|
-
bottom: -3px;
|
|
59
|
-
content: "";
|
|
60
|
-
display: block;
|
|
61
|
-
left: -3px;
|
|
62
|
-
position: absolute;
|
|
63
|
-
right: -3px;
|
|
64
|
-
top: -3px;
|
|
65
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { Control, FieldValues } from "react-hook-form";
|
|
3
|
-
import { IReactHookFormProps } from "./types";
|
|
4
|
-
export interface ISelectValue {
|
|
5
|
-
label: string;
|
|
6
|
-
value: string;
|
|
7
|
-
}
|
|
8
|
-
interface ISelectProps {
|
|
9
|
-
control: Control<FieldValues, any>;
|
|
10
|
-
options: ISelectValue[];
|
|
11
|
-
name: string;
|
|
12
|
-
defaultValue?: any;
|
|
13
|
-
disabled?: boolean;
|
|
14
|
-
}
|
|
15
|
-
export declare const SelectMultiple: React.FC<ISelectProps & IReactHookFormProps>;
|
|
16
|
-
export declare const SelectSingle: React.FC<ISelectProps & IReactHookFormProps>;
|
|
17
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import * as styles from "./select.module.css";
|
|
3
|
-
import { Controller } from "react-hook-form";
|
|
4
|
-
import ReactSelect from "react-select";
|
|
5
|
-
export const SelectMultiple = ({ name, options, errors, control, validation, defaultValue, disabled, }) => {
|
|
6
|
-
return (_jsx(Controller, { ...{ control, name }, rules: validation, render: ({ field: { onChange, value } }) => {
|
|
7
|
-
return (_jsx(ReactSelect, { className: styles.select, isMulti: true, isDisabled: disabled, ...{ options, value, onChange, errors, defaultValue } }));
|
|
8
|
-
} }));
|
|
9
|
-
};
|
|
10
|
-
export const SelectSingle = ({ name, options, errors, control, validation, }) => {
|
|
11
|
-
return (_jsx(Controller, { ...{ control, name }, rules: validation, render: ({ field: { onChange, value } }) => {
|
|
12
|
-
return _jsx(ReactSelect, { className: styles.select, ...{ options, onChange, value, errors }, isClearable: true });
|
|
13
|
-
} }));
|
|
14
|
-
};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { FieldErrors, FieldValues, RegisterOptions, UseFormRegister } from "react-hook-form";
|
|
2
|
-
export interface IReactHookFormProps {
|
|
3
|
-
register: UseFormRegister<FieldValues>;
|
|
4
|
-
errors: FieldErrors;
|
|
5
|
-
validation?: Omit<RegisterOptions<FieldValues, any>, "valueAsNumber" | "valueAsDate" | "setValueAs" | "disabled">;
|
|
6
|
-
}
|
|
@@ -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
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import clsx from "clsx";
|
|
3
|
-
import { Link } from "gatsby";
|
|
4
|
-
import * as styles from "./Logo.module.css";
|
|
5
|
-
export const AuthenticatedLogo = ({ layoutClassName, href }) => {
|
|
6
|
-
return (_jsx(Link, { className: styles.logoContainer, to: href ?? "#", children: _jsx("div", { className: clsx(styles.authenticatedLogo, styles.logo, layoutClassName) }) }));
|
|
7
|
-
};
|
|
8
|
-
export const UnauthenticatedLogo = ({ layoutClassName, href }) => {
|
|
9
|
-
return (_jsx(Link, { className: styles.logoContainer, to: href ?? "#", children: _jsx("div", { className: clsx(styles.unauthenticatedLogo, styles.logo, layoutClassName) }) }));
|
|
10
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
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,17 +0,0 @@
|
|
|
1
|
-
.container {
|
|
2
|
-
display: flex;
|
|
3
|
-
align-items: center;
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.container > *:not(:last-child) {
|
|
8
|
-
margin-block-end: var(--nlportal-space-block-xs);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.icon {
|
|
12
|
-
color: var(--nlportal-meta-icon-color);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.value {
|
|
16
|
-
font-weight: var(--nlportal-meta-icon-font-weight-bold);
|
|
17
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
export interface NotificationPopUpProps {
|
|
3
|
-
title: string;
|
|
4
|
-
description: string | JSX.Element;
|
|
5
|
-
isVisible: boolean;
|
|
6
|
-
hide: () => void;
|
|
7
|
-
primaryButton: {
|
|
8
|
-
label: string;
|
|
9
|
-
handleClick: () => any;
|
|
10
|
-
};
|
|
11
|
-
secondaryButton?: {
|
|
12
|
-
label: string;
|
|
13
|
-
handleClick: () => any;
|
|
14
|
-
};
|
|
15
|
-
layoutClassName?: string;
|
|
16
|
-
}
|
|
17
|
-
export declare const NotificationPopUp: React.FC<NotificationPopUpProps>;
|
|
18
|
-
export declare const NotificationPopUpController: () => {
|
|
19
|
-
isVisible: boolean;
|
|
20
|
-
show: () => void;
|
|
21
|
-
hide: () => void;
|
|
22
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
import * as styles from "./NotificationPopUp.module.css";
|
|
4
|
-
import ReactDOM from "react-dom";
|
|
5
|
-
import { Button, Heading3, Link, Paragraph, StylesProvider } from "@gemeente-denhaag/components-react";
|
|
6
|
-
import clsx from "clsx";
|
|
7
|
-
import { CloseIcon, ArrowRightIcon } from "@gemeente-denhaag/icons";
|
|
8
|
-
export const NotificationPopUp = ({ title, description, isVisible, hide, primaryButton, secondaryButton, layoutClassName, }) => {
|
|
9
|
-
const [animationVisible, setAnimationVisible] = React.useState(true);
|
|
10
|
-
const animationDuration = parseInt(styles.animationDuration, 10);
|
|
11
|
-
const handleClick = (clickFunction) => {
|
|
12
|
-
setAnimationVisible(!setAnimationVisible);
|
|
13
|
-
clickFunction && clickFunction();
|
|
14
|
-
setTimeout(() => {
|
|
15
|
-
hide();
|
|
16
|
-
setAnimationVisible(true);
|
|
17
|
-
}, animationDuration);
|
|
18
|
-
};
|
|
19
|
-
const modal = (_jsx(StylesProvider, { children: _jsxs("div", { style: { animationDuration: `${animationDuration}ms` }, className: clsx(styles.modal, animationVisible && styles.visible, layoutClassName), children: [_jsx(Heading3, { children: title }), _jsx(Paragraph, { children: description }), _jsxs("div", { className: styles.buttons, children: [secondaryButton && (_jsx("div", { onClick: () => handleClick(secondaryButton.handleClick), children: _jsx(Link, { icon: _jsx(CloseIcon, {}), iconAlign: "start", children: secondaryButton.label }) })), _jsx(Button, { icon: _jsx(ArrowRightIcon, {}), onClick: () => handleClick(primaryButton.handleClick), children: primaryButton.label })] })] }) }));
|
|
20
|
-
return isVisible ? ReactDOM.createPortal(modal, document.body) : null;
|
|
21
|
-
};
|
|
22
|
-
export const NotificationPopUpController = () => {
|
|
23
|
-
const [isVisible, setIsVisible] = React.useState(false);
|
|
24
|
-
const show = () => setIsVisible(true);
|
|
25
|
-
const hide = () => setIsVisible(false);
|
|
26
|
-
return {
|
|
27
|
-
isVisible,
|
|
28
|
-
show,
|
|
29
|
-
hide,
|
|
30
|
-
};
|
|
31
|
-
};
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--conduction-notification-popup-box-shadow: 0px 0px 6px 6px rgb(0 0 0 / 15%);
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
:export {
|
|
6
|
-
animationDuration: 200ms;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.modal {
|
|
10
|
-
animation-fill-mode: both;
|
|
11
|
-
background: var(--denhaag-color-warmgrey-1);
|
|
12
|
-
padding-inline-start: var(--nlportal-space-inline-lg);
|
|
13
|
-
padding-inline-end: var(--nlportal-space-inline-lg);
|
|
14
|
-
padding-block-start: var(--nlportal-space-block-lg);
|
|
15
|
-
padding-block-end: var(--nlportal-space-block-lg);
|
|
16
|
-
box-shadow: var(--conduction-notification-popup-box-shadow);
|
|
17
|
-
border-radius: var(--nlportal-document-border-radius);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.modal > *:not(:last-child) {
|
|
21
|
-
margin-block-end: var(--nlportal-space-block-md);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.buttons {
|
|
25
|
-
display: flex;
|
|
26
|
-
justify-content: flex-end;
|
|
27
|
-
align-items: center;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.buttons > *:not(:last-child) {
|
|
31
|
-
margin-inline-end: var(--nlportal-space-inline-md);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.visible {
|
|
35
|
-
animation-name: fadeInBottom;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
@keyframes fadeInBottom {
|
|
39
|
-
from {
|
|
40
|
-
opacity: 0;
|
|
41
|
-
transform: translateY(100%);
|
|
42
|
-
}
|
|
43
|
-
to {
|
|
44
|
-
opacity: 1;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.modal:not(.visible) {
|
|
49
|
-
animation-name: fadeOutBottom;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
@keyframes fadeOutBottom {
|
|
53
|
-
from {
|
|
54
|
-
opacity: 1;
|
|
55
|
-
}
|
|
56
|
-
to {
|
|
57
|
-
opacity: 0;
|
|
58
|
-
transform: translateY(100%);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
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, authenticated }) => {
|
|
5
|
-
const [_authenticated, setAuthenticated] = React.useState(false);
|
|
6
|
-
React.useEffect(() => {
|
|
7
|
-
if (!authenticated && window.location.pathname !== "/login") {
|
|
8
|
-
navigate("/login");
|
|
9
|
-
}
|
|
10
|
-
authenticated && setAuthenticated(true);
|
|
11
|
-
}, [authenticated]);
|
|
12
|
-
if (!_authenticated)
|
|
13
|
-
return _jsx(_Fragment, {});
|
|
14
|
-
return _jsx(_Fragment, { children: children });
|
|
15
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import * as styles from "./QuoteWrapper.module.css";
|
|
3
|
-
export const QuoteWrapper = ({ children, borderColor, borderWidth }) => {
|
|
4
|
-
return (_jsx("div", { style: { borderLeftColor: borderColor, borderLeftWidth: borderWidth }, className: styles.container, children: children }));
|
|
5
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--conduction-quote-border-width: 12px;
|
|
3
|
-
--conduction-quote-border-color: #f5f5f5;
|
|
4
|
-
--conduction-quote-padding-inline: 24px;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.container {
|
|
8
|
-
border-left-width: var(--conduction-quote-border-width);
|
|
9
|
-
border-left-style: solid;
|
|
10
|
-
border-left-color: var(--conduction-quote-border-color);
|
|
11
|
-
padding-inline-start: var(--conduction-quote-padding-inline);
|
|
12
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as React from "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: React.FC<StatusStepsProps>;
|
|
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
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
.tag {
|
|
2
|
-
font-size: var(--conduction-tag-font-size);
|
|
3
|
-
background-color: var(--denhaag-color-grey-1);
|
|
4
|
-
border-radius: var(--nlportal-document-border-radius);
|
|
5
|
-
padding-inline-start: var(--nlportal-space-inline-xs);
|
|
6
|
-
padding-inline-end: var(--nlportal-space-inline-xs);
|
|
7
|
-
padding-block-start: var(--nlportal-space-block-xs);
|
|
8
|
-
padding-block-end: var(--nlportal-space-block-xs);
|
|
9
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
interface TopNavProps {
|
|
3
|
-
items: {
|
|
4
|
-
label: string;
|
|
5
|
-
icon?: JSX.Element;
|
|
6
|
-
handleClick: () => any;
|
|
7
|
-
}[];
|
|
8
|
-
layoutClassName?: string;
|
|
9
|
-
}
|
|
10
|
-
export declare const PrimaryTopNav: React.FC<TopNavProps>;
|
|
11
|
-
export declare const SecondaryTopNav: React.FC<TopNavProps>;
|
|
12
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Link } from "@gemeente-denhaag/components-react";
|
|
3
|
-
import * as styles from "./TopNav.module.css";
|
|
4
|
-
import clsx from "clsx";
|
|
5
|
-
export const PrimaryTopNav = ({ items, layoutClassName }) => {
|
|
6
|
-
return (_jsx("div", { className: clsx(styles.primary, layoutClassName && layoutClassName), children: _jsx("nav", { className: styles.primary, children: _jsx("ul", { className: styles.ul, children: items.map(({ label, icon, handleClick }, idx) => (_jsx("li", { className: styles.li, onClick: handleClick, children: _jsx(Link, { className: styles.link, icon: icon, iconAlign: "start", children: label }) }, idx))) }) }) }));
|
|
7
|
-
};
|
|
8
|
-
export const SecondaryTopNav = ({ items, layoutClassName }) => {
|
|
9
|
-
return (_jsx("div", { className: clsx(styles.secondary, layoutClassName && layoutClassName), children: _jsx("nav", { children: _jsx("ul", { className: styles.ul, children: items.map(({ label, icon, handleClick }, idx) => (_jsx("li", { className: styles.li, onClick: handleClick, children: _jsx(Link, { className: styles.link, icon: icon, iconAlign: "start", children: label }) }, idx))) }) }) }));
|
|
10
|
-
};
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--conduction-top-nav-space-inline-lg: 1.25rem;
|
|
3
|
-
|
|
4
|
-
--conduction-top-nav-color-primary: #ffffff;
|
|
5
|
-
--conduction-top-nav-background-color-primary: #0b71a1;
|
|
6
|
-
--conduction-top-nav-background-color-primary-hover: rgba(255, 255, 255, 0.2);
|
|
7
|
-
|
|
8
|
-
--conduction-top-nav-font-size-secondary: 16px;
|
|
9
|
-
--conduction-top-nav-color-secondary: #ffffff;
|
|
10
|
-
--conduction-top-nav-background-color-secondary: #084f70;
|
|
11
|
-
--conduction-top-nav-background-color-secondary-hover: rgba(0, 0, 0, 0.2);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
/*
|
|
15
|
-
* Global
|
|
16
|
-
*/
|
|
17
|
-
.primary:hover,
|
|
18
|
-
.secondary:hover {
|
|
19
|
-
cursor: pointer;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.ul {
|
|
23
|
-
margin: unset;
|
|
24
|
-
display: flex;
|
|
25
|
-
padding-inline-start: unset;
|
|
26
|
-
align-items: center;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.li {
|
|
30
|
-
list-style-type: none;
|
|
31
|
-
display: block;
|
|
32
|
-
padding-inline-start: var(--conduction-top-nav-space-inline-lg);
|
|
33
|
-
padding-inline-end: var(--conduction-top-nav-space-inline-lg);
|
|
34
|
-
padding-block-start: var(--conduction-top-nav-space-inline-lg);
|
|
35
|
-
padding-block-end: var(--conduction-top-nav-space-inline-lg);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/*
|
|
39
|
-
* Primary Top Navigation
|
|
40
|
-
*/
|
|
41
|
-
.primary {
|
|
42
|
-
font-weight: 500;
|
|
43
|
-
width: fit-content;
|
|
44
|
-
background-color: var(--conduction-top-nav-background-color-primary);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.primary .link {
|
|
48
|
-
color: var(--conduction-top-nav-color-primary);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.primary .li:hover {
|
|
52
|
-
background-color: var(--conduction-top-nav-background-color-primary-hover);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/*
|
|
56
|
-
* Secondary Top Navigation
|
|
57
|
-
*/
|
|
58
|
-
.secondary {
|
|
59
|
-
font-weight: 100;
|
|
60
|
-
width: fit-content;
|
|
61
|
-
font-size: var(--conduction-top-nav-font-size-secondary);
|
|
62
|
-
background-color: var(--conduction-top-nav-background-color-secondary);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.secondary .link {
|
|
66
|
-
color: var(--conduction-top-nav-color-secondary);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.secondary .li:hover {
|
|
70
|
-
background-color: var(--conduction-top-nav-background-color-secondary-hover);
|
|
71
|
-
}
|
package/lib/index.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { DownloadCard, HorizontalImageCard, ImageAndDetailsCard, RichContentCard, DetailsCard, InfoCard } from "./components/card";
|
|
3
|
-
import { Container } from "./components/container/Container";
|
|
4
|
-
import { Breadcrumbs } from "./components/denhaag-wrappers/breadcrumbs/Breadcrumbs";
|
|
5
|
-
import { EditableTableRow } from "./components/editableTableRow/EditableTableRow";
|
|
6
|
-
import { InputText, InputPassword, InputEmail, InputDate, InputNumber, Textarea, InputCheckbox, InputRadio, InputFile, SelectMultiple, SelectSingle } from "./components/formFields";
|
|
7
|
-
import { ImageDivider } from "./components/imageDivider/ImageDivider";
|
|
8
|
-
import { AuthenticatedLogo, UnauthenticatedLogo } from "./components/logo/Logo";
|
|
9
|
-
import { MetaIcon } from "./components/metaIcon/MetaIcon";
|
|
10
|
-
import { PrivateRoute } from "./components/privateRoute/PrivateRoute";
|
|
11
|
-
import { StatusSteps } from "./components/statusSteps/StatusSteps";
|
|
12
|
-
import { PrimaryTopNav, SecondaryTopNav } from "./components/topNav/TopNav";
|
|
13
|
-
import { Tag } from "./components/tag/Tag";
|
|
14
|
-
declare const NotificationPopUp: {
|
|
15
|
-
controller: () => {
|
|
16
|
-
isVisible: boolean;
|
|
17
|
-
show: () => void;
|
|
18
|
-
hide: () => void;
|
|
19
|
-
};
|
|
20
|
-
NotificationPopUp: import("react").FC<import("./components/notificationPopUp/NotificationPopUp").NotificationPopUpProps>;
|
|
21
|
-
};
|
|
22
|
-
import { QuoteWrapper } from "./components/quoteWrapper/QuoteWrapper";
|
|
23
|
-
import { Pagination } from "./components/denhaag-wrappers/pagination/Pagination";
|
|
24
|
-
export { InputRadio, DownloadCard, HorizontalImageCard, ImageAndDetailsCard, RichContentCard, DetailsCard, InfoCard, Container, Breadcrumbs, EditableTableRow, InputText, InputPassword, InputEmail, InputDate, InputNumber, InputFile, Textarea, InputCheckbox, SelectMultiple, SelectSingle, ImageDivider, AuthenticatedLogo, UnauthenticatedLogo, MetaIcon, PrivateRoute, StatusSteps, PrimaryTopNav, SecondaryTopNav, Tag, NotificationPopUp, QuoteWrapper, Pagination, };
|
package/lib/index.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { DownloadCard, HorizontalImageCard, ImageAndDetailsCard, RichContentCard, DetailsCard, InfoCard, } from "./components/card";
|
|
2
|
-
import { Container } from "./components/container/Container";
|
|
3
|
-
import { Breadcrumbs } from "./components/denhaag-wrappers/breadcrumbs/Breadcrumbs";
|
|
4
|
-
import { EditableTableRow } from "./components/editableTableRow/EditableTableRow";
|
|
5
|
-
import { InputText, InputPassword, InputEmail, InputDate, InputNumber, Textarea, InputCheckbox, InputRadio, InputFile, SelectMultiple, SelectSingle, } from "./components/formFields";
|
|
6
|
-
import { ImageDivider } from "./components/imageDivider/ImageDivider";
|
|
7
|
-
import { AuthenticatedLogo, UnauthenticatedLogo } from "./components/logo/Logo";
|
|
8
|
-
import { MetaIcon } from "./components/metaIcon/MetaIcon";
|
|
9
|
-
import { PrivateRoute } from "./components/privateRoute/PrivateRoute";
|
|
10
|
-
import { StatusSteps } from "./components/statusSteps/StatusSteps";
|
|
11
|
-
import { PrimaryTopNav, SecondaryTopNav } from "./components/topNav/TopNav";
|
|
12
|
-
import { Tag } from "./components/tag/Tag";
|
|
13
|
-
import { NotificationPopUpController, NotificationPopUp as _NotificationPopUp, } from "./components/notificationPopUp/NotificationPopUp";
|
|
14
|
-
const NotificationPopUp = { controller: NotificationPopUpController, NotificationPopUp: _NotificationPopUp };
|
|
15
|
-
import { QuoteWrapper } from "./components/quoteWrapper/QuoteWrapper";
|
|
16
|
-
import { Pagination } from "./components/denhaag-wrappers/pagination/Pagination";
|
|
17
|
-
export { InputRadio, DownloadCard, HorizontalImageCard, ImageAndDetailsCard, RichContentCard, DetailsCard, InfoCard, Container, Breadcrumbs, EditableTableRow, InputText, InputPassword, InputEmail, InputDate, InputNumber, InputFile, Textarea, InputCheckbox, SelectMultiple, SelectSingle, ImageDivider, AuthenticatedLogo, UnauthenticatedLogo, MetaIcon, PrivateRoute, StatusSteps, PrimaryTopNav, SecondaryTopNav, Tag, NotificationPopUp, QuoteWrapper, Pagination, };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import * as styles from "./TopNav.module.css";
|
|
3
|
-
import { Link } from "@gemeente-denhaag/components-react";
|
|
4
|
-
import { navigate } from "gatsby";
|
|
5
|
-
export const PrimaryTopNav = ({ items }) => {
|
|
6
|
-
return (_jsx("nav", { className: styles.primary, children: _jsx("ul", { className: styles.ul, children: items.map(({ label, href, icon }, idx) => (_jsx("li", { className: styles.li, onClick: () => navigate(href), children: _jsx(Link, { icon: icon, iconAlign: "start", children: label }) }, idx))) }) }));
|
|
7
|
-
};
|
|
8
|
-
export const SecondaryTopNav = ({ items }) => {
|
|
9
|
-
return (_jsx("nav", { className: styles.secondary, children: _jsx("ul", { className: styles.ul, children: items.map(({ label, href, icon }, idx) => (_jsx("li", { className: styles.li, onClick: () => navigate(href), children: _jsx(Link, { icon: icon, iconAlign: "start", children: label }) }, idx))) }) }));
|
|
10
|
-
};
|