@conduction/components 2.1.25 → 2.1.27

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.
Files changed (34) hide show
  1. package/README.md +8 -10
  2. package/lib/components/card/detailsCard/DetailsCard.js +1 -1
  3. package/lib/components/card/downloadCard/DownloadCard.js +1 -1
  4. package/lib/components/card/horizontalImageCard/HorizontalImageCard.js +1 -1
  5. package/lib/components/card/imageAndDetailsCard/ImageAndDetailsCard.js +1 -1
  6. package/lib/components/card/richContentCard/RichContentCard.js +2 -1
  7. package/lib/components/editableTableRow/EditableTableRow.js +1 -1
  8. package/lib/components/formFields/createKeyValue/CreateKeyValue.js +1 -1
  9. package/lib/components/formFields/date/Date.js +1 -1
  10. package/lib/components/formFields/input.js +1 -1
  11. package/lib/components/formFields/radio.js +1 -1
  12. package/lib/components/notificationPopUp/NotificationPopUp.js +4 -1
  13. package/lib/components/topNav/primaryTopNav/PrimaryTopNav.js +1 -1
  14. package/lib/components/topNav/secondaryTopNav/SecondaryTopNav.js +1 -1
  15. package/package.json +14 -8
  16. package/src/components/card/detailsCard/DetailsCard.tsx +1 -1
  17. package/src/components/card/downloadCard/DownloadCard.js +10 -10
  18. package/src/components/card/downloadCard/DownloadCard.tsx +1 -1
  19. package/src/components/card/horizontalImageCard/HorizontalImageCard.js +9 -9
  20. package/src/components/card/horizontalImageCard/HorizontalImageCard.tsx +1 -1
  21. package/src/components/card/imageAndDetailsCard/ImageAndDetailsCard.js +9 -9
  22. package/src/components/card/imageAndDetailsCard/ImageAndDetailsCard.tsx +1 -1
  23. package/src/components/card/richContentCard/RichContentCard.js +18 -17
  24. package/src/components/card/richContentCard/RichContentCard.tsx +2 -1
  25. package/src/components/editableTableRow/EditableTableRow.js +34 -34
  26. package/src/components/editableTableRow/EditableTableRow.tsx +1 -1
  27. package/src/components/formFields/createKeyValue/CreateKeyValue.tsx +2 -1
  28. package/src/components/formFields/date/Date.tsx +1 -0
  29. package/src/components/formFields/input.js +12 -12
  30. package/src/components/formFields/input.tsx +1 -1
  31. package/src/components/formFields/radio.tsx +1 -1
  32. package/src/components/notificationPopUp/NotificationPopUp.tsx +4 -1
  33. package/src/components/topNav/primaryTopNav/PrimaryTopNav.tsx +1 -1
  34. package/src/components/topNav/secondaryTopNav/SecondaryTopNav.tsx +1 -1
package/README.md CHANGED
@@ -4,8 +4,10 @@
4
4
 
5
5
  - **Version 2.1 (breaking changes from 2.0.x)**
6
6
 
7
- - 2.1.25: Added id prop to select component
8
- - 2.1.24: Add new design tokens for topnav dropdown
7
+ - 2.1.27: TimeFormat in DatePicker is now consistant with DateFormat.
8
+ - 2.1.26: Avoid dependency on `@gemeente-denhaag/components-react`, only depend on components we actually use.
9
+ - 2.1.25: Added id prop to select component.
10
+ - 2.1.24: Add new design tokens for topnav dropdown.
9
11
  - 2.1.23: Added optional error messages to CreateKeyValue and unused classname removed warning.
10
12
  - 2.1.22: Added optional error messages to textarea, select and input fields.
11
13
  - 2.1.21: Added optional copy button and refactored delete button in CreateKeyValue.
@@ -33,10 +35,8 @@
33
35
 
34
36
  - 2.0.34: SelectMultiple and SelectCreate update to include defaultValue in react-hook-form controller.
35
37
  - 2.0.33: PrimaryTopNav sub items doesn't overlap main navbar anymore.
36
- - 2.0.32:
37
- - SelectSingle update to include defaultValue in react-hook-form controller.
38
- - 2.0.31:
39
- - PrimaryTopNav clickbox now includes padding of nav items.
38
+ - 2.0.32: SelectSingle update to include defaultValue in react-hook-form controller.
39
+ - 2.0.31: PrimaryTopNav clickbox now includes padding of nav items.
40
40
  - 2.0.30:
41
41
  - Selects now have an z-index.
42
42
  - Checkboxes now automatically have an id wich is a camelCase of "checkbox" plus the label, "checkboxLabel".
@@ -60,10 +60,8 @@
60
60
  - 2.0.15: Added mobile support to PrimaryTopNav.
61
61
  - 2.0.14: Refactored SelectCreate placeholder text.
62
62
  - 2.0.13: removed round borders of tag.
63
- - 2.0.11 & 2.0.12:
64
- - Added disabled state to SelectSingle component.
65
- - 2.0.10:
66
- - Added InputFloat (.00 decimals) component.
63
+ - 2.0.11 & 2.0.12: Added disabled state to SelectSingle component.
64
+ - 2.0.10: Added InputFloat (.00 decimals) component.
67
65
  - 2.0.9:
68
66
  - Added optional defaultChecked to InputCheckbox.
69
67
  - Added CreateKeyValue input.
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import * as styles from "./DetailsCard.module.css";
3
3
  import clsx from "clsx";
4
- import { Link } from "@gemeente-denhaag/components-react";
4
+ import { Link } from "@gemeente-denhaag/link";
5
5
  import { navigate } from "gatsby";
6
6
  import { ArrowRightIcon } from "@gemeente-denhaag/icons";
7
7
  import { Tag } from "../../tag/Tag";
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import * as styles from "./DownloadCard.module.css";
3
3
  import { DownloadIcon } from "@gemeente-denhaag/icons";
4
- import { Link } from "@gemeente-denhaag/components-react";
4
+ import { Link } from "@gemeente-denhaag/link";
5
5
  import clsx from "clsx";
6
6
  export const DownloadCard = ({ icon, label, sizeKb, layoutClassName, downloadLabel, handleClick, }) => {
7
7
  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("div", { onClick: handleClick, children: _jsx(Link, { icon: _jsx(DownloadIcon, {}), iconAlign: "start", children: downloadLabel }) })] }));
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import * as styles from "./HorizontalImageCard.module.css";
3
3
  import clsx from "clsx";
4
- import { Link } from "@gemeente-denhaag/components-react";
4
+ import { Link } from "@gemeente-denhaag/link";
5
5
  import { navigate } from "gatsby";
6
6
  import { ExternalLinkIcon, ArrowRightIcon } from "@gemeente-denhaag/icons";
7
7
  export const HorizontalImageCard = ({ title, layoutClassName, external, link, iconOrImage, }) => {
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import * as styles from "./ImageAndDetailsCard.module.css";
3
3
  import clsx from "clsx";
4
- import { Link } from "@gemeente-denhaag/components-react";
4
+ import { Link } from "@gemeente-denhaag/link";
5
5
  import { navigate } from "gatsby";
6
6
  import { ArrowRightIcon } from "@gemeente-denhaag/icons";
7
7
  export const ImageAndDetailsCard = ({ image, title, subHeader, introduction, link, layoutClassName, }) => {
@@ -1,5 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Divider, Link } from "@gemeente-denhaag/components-react";
2
+ import { Divider } from "@gemeente-denhaag/divider";
3
+ import { Link } from "@gemeente-denhaag/link";
3
4
  import { navigate } from "gatsby";
4
5
  import * as styles from "./RichContentCard.module.css";
5
6
  import { ExternalLinkIcon, ArrowRightIcon } from "@gemeente-denhaag/icons";
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
2
2
  import { TableCell, TableHeader, TableRow } from "@gemeente-denhaag/table";
3
3
  import * as styles from "./EditableTableRow.module.css";
4
4
  import * as React from "react";
5
- import { Link } from "@gemeente-denhaag/components-react";
5
+ import { Link } from "@gemeente-denhaag/link";
6
6
  import { CheckedIcon, CloseIcon, EditIcon } from "@gemeente-denhaag/icons";
7
7
  import { useForm } from "react-hook-form";
8
8
  import { InputEmail, InputText } from "../formFields";
@@ -2,7 +2,7 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
2
2
  import * as React from "react";
3
3
  import * as styles from "./CreateKeyValue.module.css";
4
4
  import { Controller } from "react-hook-form";
5
- import { Button } from "@gemeente-denhaag/components-react";
5
+ import { Button } from "@gemeente-denhaag/button";
6
6
  import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "@gemeente-denhaag/table";
7
7
  import { ToolTip } from "../../toolTip/ToolTip";
8
8
  import clsx from "clsx";
@@ -5,6 +5,6 @@ import { Controller } from "react-hook-form";
5
5
  import DatePicker from "react-datepicker";
6
6
  export const InputDate = ({ name, errors, control, validation, disabled, }) => {
7
7
  return (_jsx(Controller, { ...{ control, name }, rules: validation, render: ({ field: { onChange, value } }) => {
8
- return (_jsx(DatePicker, { calendarClassName: styles.calendar, className: "denhaag-datepicker__input", onChange: (date) => onChange(date), dateFormat: "d-MM-yyyy HH:mm", selected: value, timeIntervals: 1, showTimeSelect: true, ...{ errors, value, disabled } }));
8
+ return (_jsx(DatePicker, { calendarClassName: styles.calendar, className: "denhaag-datepicker__input", onChange: (date) => onChange(date), dateFormat: "d-MM-yyyy HH:mm", timeFormat: "HH:mm", selected: value, timeIntervals: 1, showTimeSelect: true, ...{ errors, value, disabled } }));
9
9
  } }));
10
10
  };
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import * as React from "react";
3
- import { TextField } from "@gemeente-denhaag/components-react";
3
+ import { TextField } from "@gemeente-denhaag/textfield";
4
4
  import { faEyeSlash, faEye } from "@fortawesome/free-solid-svg-icons";
5
5
  import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
6
6
  import { ErrorMessage } from "./errorMessage/ErrorMessage";
@@ -1,3 +1,3 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { FormControlLabel } from "@gemeente-denhaag/components-react";
2
+ import { FormControlLabel } from "@gemeente-denhaag/formcontrollabel";
3
3
  export const InputRadio = ({ name, validation, register, label, value, }) => (_jsx(FormControlLabel, { input: _jsx("input", { type: "radio", ...{ value }, ...register(name, { ...validation }) }), ...{ label } }));
@@ -2,7 +2,10 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import * as React from "react";
3
3
  import * as styles from "./NotificationPopUp.module.css";
4
4
  import ReactDOM from "react-dom";
5
- import { Button, Heading3, Link, Paragraph, StylesProvider } from "@gemeente-denhaag/components-react";
5
+ import { Button } from "@gemeente-denhaag/button";
6
+ import { Heading3, Paragraph } from "@gemeente-denhaag/typography";
7
+ import { Link } from "@gemeente-denhaag/link";
8
+ import { StylesProvider } from "@gemeente-denhaag/stylesprovider";
6
9
  import clsx from "clsx";
7
10
  import { CloseIcon, ArrowRightIcon } from "@gemeente-denhaag/icons";
8
11
  export const NotificationPopUp = ({ title, description, isVisible, hide, primaryButton, secondaryButton, layoutClassName, }) => {
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import * as React from "react";
3
3
  import * as styles from "./PrimaryTopNav.module.css";
4
4
  import clsx from "clsx";
5
- import { Link } from "@gemeente-denhaag/components-react";
5
+ import { Link } from "@gemeente-denhaag/link";
6
6
  import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
7
7
  import { faBars } from "@fortawesome/free-solid-svg-icons";
8
8
  export const PrimaryTopNav = ({ items, mobileLogo, layoutClassName }) => {
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import * as styles from "./SecondaryTopNav.module.css";
3
- import { Link } from "@gemeente-denhaag/components-react";
3
+ import { Link } from "@gemeente-denhaag/link";
4
4
  import clsx from "clsx";
5
5
  export const SecondaryTopNav = ({ items, layoutClassName }) => {
6
6
  return (_jsx("div", { className: clsx(styles.secondary, layoutClassName && layoutClassName), children: _jsx("nav", { children: _jsx("ul", { className: styles.ul, children: items.map(({ label, icon, current, handleClick }, idx) => (_jsx("li", { className: clsx(styles.li, current && styles.current), onClick: handleClick, children: _jsx(Link, { className: clsx(styles.link, styles.label), icon: icon, iconAlign: "start", children: label }) }, idx))) }) }) }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@conduction/components",
3
- "version": "2.1.25",
3
+ "version": "2.1.27",
4
4
  "description": "React (Gatsby) components used within the Conduction Skeleton Application (and its implementations)",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -23,13 +23,19 @@
23
23
  "@fortawesome/fontawesome-svg-core": "^6.2.0",
24
24
  "@fortawesome/free-solid-svg-icons": "^6.2.0",
25
25
  "@fortawesome/react-fontawesome": "^0.2.0",
26
- "@gemeente-denhaag/components-react": "^0.1.1-alpha.143",
27
- "@gemeente-denhaag/design-tokens-components": "^0.2.3-alpha.178",
28
- "@gemeente-denhaag/form-field": "^0.1.1-alpha.67",
29
- "@gemeente-denhaag/process-steps": "^0.1.0-alpha.18",
30
- "@gemeente-denhaag/sidenav": "^0.1.0-alpha.1",
31
- "@gemeente-denhaag/table": "^0.1.1-alpha.87",
32
- "@gemeente-denhaag/textarea": "^0.1.1-alpha.65",
26
+ "@gemeente-denhaag/button": "0.2.3-alpha.205",
27
+ "@gemeente-denhaag/link": "0.2.3-alpha.205",
28
+ "@gemeente-denhaag/divider": "0.2.3-alpha.205",
29
+ "@gemeente-denhaag/textfield": "0.2.3-alpha.205",
30
+ "@gemeente-denhaag/typography": "0.2.3-alpha.205",
31
+ "@gemeente-denhaag/stylesprovider": "0.1.1-alpha.222",
32
+ "@gemeente-denhaag/design-tokens-components": "0.2.3-alpha.222",
33
+ "@gemeente-denhaag/form-field": "0.1.1-alpha.98",
34
+ "@gemeente-denhaag/formcontrollabel": "0.2.3-alpha.222",
35
+ "@gemeente-denhaag/process-steps": "0.1.0-alpha.51",
36
+ "@gemeente-denhaag/sidenav": "0.1.0-alpha.40",
37
+ "@gemeente-denhaag/table": "0.1.1-alpha.123",
38
+ "@gemeente-denhaag/textarea": "0.1.1-alpha.95",
33
39
  "clsx": "^1.1.1",
34
40
  "gatsby": "^4.11.1",
35
41
  "react": "^17.0.1",
@@ -1,7 +1,7 @@
1
1
  import * as React from "react";
2
2
  import * as styles from "./DetailsCard.module.css";
3
3
  import clsx from "clsx";
4
- import { Link } from "@gemeente-denhaag/components-react";
4
+ import { Link } from "@gemeente-denhaag/link";
5
5
  import { navigate } from "gatsby";
6
6
  import { ArrowRightIcon } from "@gemeente-denhaag/icons";
7
7
  import { Tag } from "../../tag/Tag";
@@ -1,10 +1,10 @@
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/components-react";
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
+ 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,7 +1,7 @@
1
1
  import * as React from "react";
2
2
  import * as styles from "./DownloadCard.module.css";
3
3
  import { DownloadIcon } from "@gemeente-denhaag/icons";
4
- import { Link } from "@gemeente-denhaag/components-react";
4
+ import { Link } from "@gemeente-denhaag/link";
5
5
  import clsx from "clsx";
6
6
 
7
7
  interface DownloadCardProps {
@@ -1,9 +1,9 @@
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/components-react";
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
+ 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,7 +1,7 @@
1
1
  import * as React from "react";
2
2
  import * as styles from "./HorizontalImageCard.module.css";
3
3
  import clsx from "clsx";
4
- import { Link } from "@gemeente-denhaag/components-react";
4
+ import { Link } from "@gemeente-denhaag/link";
5
5
  import { navigate } from "gatsby";
6
6
  import { ExternalLinkIcon, ArrowRightIcon } from "@gemeente-denhaag/icons";
7
7
 
@@ -1,9 +1,9 @@
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/components-react";
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
+ 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,7 +1,7 @@
1
1
  import * as React from "react";
2
2
  import * as styles from "./ImageAndDetailsCard.module.css";
3
3
  import clsx from "clsx";
4
- import { Link } from "@gemeente-denhaag/components-react";
4
+ import { Link } from "@gemeente-denhaag/link";
5
5
  import { navigate } from "gatsby";
6
6
  import { ArrowRightIcon } from "@gemeente-denhaag/icons";
7
7
 
@@ -1,17 +1,18 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Divider, Link } from "@gemeente-denhaag/components-react";
3
- import { navigate } from "gatsby";
4
- import * as styles from "./RichContentCard.module.css";
5
- import { ExternalLinkIcon, ArrowRightIcon } from "@gemeente-denhaag/icons";
6
- export const RichContentCard = ({ link, labelsWithIcon, tags, contentLinks, linkIsExternal, }) => {
7
- 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 } })))] }))] }));
8
- };
9
- const LabelWithIcon = ({ label, icon }) => {
10
- return (_jsxs("div", { className: styles.labelWithIcon, children: [_jsx("span", { className: styles.labelWithIcon_icon, children: icon }), _jsx("span", { className: styles.labelWithIcon_label, children: label })] }));
11
- };
12
- const Tag = ({ tag }) => {
13
- return _jsx("span", { className: styles.tag, children: tag });
14
- };
15
- const ContentLink = ({ title, subTitle, href }) => {
16
- 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, {}) })] }));
17
- };
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,4 +1,5 @@
1
- import { Divider, Link } from "@gemeente-denhaag/components-react";
1
+ import { Divider } from "@gemeente-denhaag/divider";
2
+ import { Link } from "@gemeente-denhaag/link";
2
3
  import { navigate } from "gatsby";
3
4
  import * as React from "react";
4
5
  import * as styles from "./RichContentCard.module.css";
@@ -1,34 +1,34 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import { TableCell, TableHeader, TableRow } from "@gemeente-denhaag/table";
3
- import * as styles from "./EditableTableRow.module.css";
4
- import * as React from "react";
5
- import { useTranslation } from "react-i18next";
6
- import { Link } from "@gemeente-denhaag/components-react";
7
- import { CheckedIcon, CloseIcon, EditIcon } from "@gemeente-denhaag/icons";
8
- import { useForm } from "react-hook-form";
9
- import { InputEmail, InputText } from "../formFields";
10
- export const EditableTableRow = ({ thead, value, inputType, handleSave, }) => {
11
- const [editing, setEditing] = React.useState(false);
12
- return (_jsxs(TableRow, { children: [_jsx(TableHeader, { className: styles.th, children: thead }), editing && _jsx(EditingTableRow, { ...{ value, inputType, handleSave, setEditing } }), !editing && _jsx(RegularTableRow, { ...{ value, setEditing } })] }));
13
- };
14
- const RegularTableRow = ({ value, setEditing }) => {
15
- const { t } = useTranslation();
16
- return (_jsxs(_Fragment, { children: [_jsx(TableCell, { children: value }), _jsx(TableCell, { children: _jsx("div", { className: styles.editButton, onClick: () => setEditing(true), children: _jsx(Link, { icon: _jsx(EditIcon, {}), iconAlign: "start", children: t("Edit") }) }) })] }));
17
- };
18
- const EditingTableRow = ({ value, setEditing, handleSave, inputType, }) => {
19
- const { t } = useTranslation();
20
- const { register, handleSubmit, formState: { errors }, } = useForm();
21
- const onSubmit = (data) => {
22
- handleSave(data.value);
23
- setEditing(false);
24
- };
25
- return (_jsxs(_Fragment, { children: [_jsx(TableCell, { children: _jsxs("form", { onSubmit: handleSubmit(onSubmit), children: [_jsx(FormField, { ...{ inputType, value, register, errors } }), _jsxs("div", { className: styles.editButtonsContainer, children: [_jsx("button", { type: "submit", className: styles.submit, children: _jsx(Link, { icon: _jsx(CheckedIcon, {}), iconAlign: "start", children: t("Save") }) }), _jsx("div", { onClick: () => setEditing(false), children: _jsx(Link, { icon: _jsx(CloseIcon, {}), iconAlign: "start", className: styles.cancel, children: t("Cancel") }) })] })] }) }), _jsx(TableCell, {})] }));
26
- };
27
- const FormField = ({ inputType, value, register, errors }) => {
28
- switch (inputType) {
29
- case "email":
30
- return _jsx(InputEmail, { defaultValue: value, ...{ register, errors }, name: "value", validation: { required: true } });
31
- case "text":
32
- return _jsx(InputText, { defaultValue: value, ...{ register, errors }, name: "value", validation: { required: true } });
33
- }
34
- };
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { TableCell, TableHeader, TableRow } from "@gemeente-denhaag/table";
3
+ import * as styles from "./EditableTableRow.module.css";
4
+ import * as React from "react";
5
+ import { useTranslation } from "react-i18next";
6
+ import { Link } from "@gemeente-denhaag/link";
7
+ import { CheckedIcon, CloseIcon, EditIcon } from "@gemeente-denhaag/icons";
8
+ import { useForm } from "react-hook-form";
9
+ import { InputEmail, InputText } from "../formFields";
10
+ export const EditableTableRow = ({ thead, value, inputType, handleSave, }) => {
11
+ const [editing, setEditing] = React.useState(false);
12
+ return (_jsxs(TableRow, { children: [_jsx(TableHeader, { className: styles.th, children: thead }), editing && _jsx(EditingTableRow, { ...{ value, inputType, handleSave, setEditing } }), !editing && _jsx(RegularTableRow, { ...{ value, setEditing } })] }));
13
+ };
14
+ const RegularTableRow = ({ value, setEditing }) => {
15
+ const { t } = useTranslation();
16
+ return (_jsxs(_Fragment, { children: [_jsx(TableCell, { children: value }), _jsx(TableCell, { children: _jsx("div", { className: styles.editButton, onClick: () => setEditing(true), children: _jsx(Link, { icon: _jsx(EditIcon, {}), iconAlign: "start", children: t("Edit") }) }) })] }));
17
+ };
18
+ const EditingTableRow = ({ value, setEditing, handleSave, inputType, }) => {
19
+ const { t } = useTranslation();
20
+ const { register, handleSubmit, formState: { errors }, } = useForm();
21
+ const onSubmit = (data) => {
22
+ handleSave(data.value);
23
+ setEditing(false);
24
+ };
25
+ return (_jsxs(_Fragment, { children: [_jsx(TableCell, { children: _jsxs("form", { onSubmit: handleSubmit(onSubmit), children: [_jsx(FormField, { ...{ inputType, value, register, errors } }), _jsxs("div", { className: styles.editButtonsContainer, children: [_jsx("button", { type: "submit", className: styles.submit, children: _jsx(Link, { icon: _jsx(CheckedIcon, {}), iconAlign: "start", children: t("Save") }) }), _jsx("div", { onClick: () => setEditing(false), children: _jsx(Link, { icon: _jsx(CloseIcon, {}), iconAlign: "start", className: styles.cancel, children: t("Cancel") }) })] })] }) }), _jsx(TableCell, {})] }));
26
+ };
27
+ const FormField = ({ inputType, value, register, errors }) => {
28
+ switch (inputType) {
29
+ case "email":
30
+ return _jsx(InputEmail, { defaultValue: value, ...{ register, errors }, name: "value", validation: { required: true } });
31
+ case "text":
32
+ return _jsx(InputText, { defaultValue: value, ...{ register, errors }, name: "value", validation: { required: true } });
33
+ }
34
+ };
@@ -1,7 +1,7 @@
1
1
  import { TableCell, TableHeader, TableRow } from "@gemeente-denhaag/table";
2
2
  import * as styles from "./EditableTableRow.module.css";
3
3
  import * as React from "react";
4
- import { Link } from "@gemeente-denhaag/components-react";
4
+ import { Link } from "@gemeente-denhaag/link";
5
5
  import { CheckedIcon, CloseIcon, EditIcon } from "@gemeente-denhaag/icons";
6
6
  import { FieldValues, useForm, UseFormRegister } from "react-hook-form";
7
7
  import { InputEmail, InputText } from "../formFields";
@@ -2,7 +2,8 @@ import * as React from "react";
2
2
  import * as styles from "./CreateKeyValue.module.css";
3
3
  import { Control, Controller, FieldValues } from "react-hook-form";
4
4
  import { IReactHookFormProps } from "../types";
5
- import { Button } from "@gemeente-denhaag/components-react";
5
+ import { IInputProps } from "../input";
6
+ import { Button } from "@gemeente-denhaag/button";
6
7
  import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "@gemeente-denhaag/table";
7
8
  import { ToolTip } from "../../toolTip/ToolTip";
8
9
  import clsx from "clsx";
@@ -30,6 +30,7 @@ export const InputDate = ({
30
30
  className="denhaag-datepicker__input"
31
31
  onChange={(date) => onChange(date)}
32
32
  dateFormat="d-MM-yyyy HH:mm"
33
+ timeFormat="HH:mm"
33
34
  selected={value}
34
35
  timeIntervals={1}
35
36
  showTimeSelect
@@ -1,12 +1,12 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import * as React from "react";
3
- import { TextField } from "@gemeente-denhaag/components-react";
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
+ 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,5 +1,5 @@
1
1
  import * as React from "react";
2
- import { TextField } from "@gemeente-denhaag/components-react";
2
+ import { TextField } from "@gemeente-denhaag/textfield";
3
3
  import { IReactHookFormProps } from "./types";
4
4
  import { faEyeSlash, faEye } from "@fortawesome/free-solid-svg-icons";
5
5
  import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
@@ -1,4 +1,4 @@
1
- import { FormControlLabel } from "@gemeente-denhaag/components-react";
1
+ import { FormControlLabel } from "@gemeente-denhaag/formcontrollabel";
2
2
  import { IReactHookFormProps } from "./types";
3
3
 
4
4
  interface IRadioProps {
@@ -1,7 +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, Heading3, Link, Paragraph, StylesProvider } from "@gemeente-denhaag/components-react";
4
+ import { Button } from "@gemeente-denhaag/button";
5
+ import { Heading3, Paragraph } from "@gemeente-denhaag/typography";
6
+ import { Link } from "@gemeente-denhaag/link";
7
+ import { StylesProvider } from "@gemeente-denhaag/stylesprovider";
5
8
  import clsx from "clsx";
6
9
  import { CloseIcon, ArrowRightIcon } from "@gemeente-denhaag/icons";
7
10
 
@@ -1,7 +1,7 @@
1
1
  import * as React from "react";
2
2
  import * as styles from "./PrimaryTopNav.module.css";
3
3
  import clsx from "clsx";
4
- import { Link } from "@gemeente-denhaag/components-react";
4
+ import { Link } from "@gemeente-denhaag/link";
5
5
  import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
6
6
  import { faBars } from "@fortawesome/free-solid-svg-icons";
7
7
 
@@ -1,6 +1,6 @@
1
1
  import * as React from "react";
2
2
  import * as styles from "./SecondaryTopNav.module.css";
3
- import { Link } from "@gemeente-denhaag/components-react";
3
+ import { Link } from "@gemeente-denhaag/link";
4
4
  import clsx from "clsx";
5
5
 
6
6
  interface TopNavProps {