@conduction/components 2.1.20 → 2.1.22

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 (150) hide show
  1. package/.github/workflows/npm-publish.yml +39 -39
  2. package/.prettierrc +30 -30
  3. package/README.md +23 -21
  4. package/lib/components/badgeCounter/BadgeCounter.d.ts +8 -8
  5. package/lib/components/badgeCounter/BadgeCounter.js +4 -4
  6. package/lib/components/badgeCounter/BadgeCounter.module.css +27 -27
  7. package/lib/components/card/detailsCard/DetailsCard.d.ts +14 -14
  8. package/lib/components/card/detailsCard/DetailsCard.js +10 -10
  9. package/lib/components/card/detailsCard/DetailsCard.module.css +51 -51
  10. package/lib/components/card/downloadCard/DownloadCard.d.ts +11 -11
  11. package/lib/components/card/downloadCard/DownloadCard.js +8 -8
  12. package/lib/components/card/downloadCard/DownloadCard.module.css +27 -27
  13. package/lib/components/card/horizontalImageCard/HorizontalImageCard.d.ts +13 -13
  14. package/lib/components/card/horizontalImageCard/HorizontalImageCard.js +9 -9
  15. package/lib/components/card/horizontalImageCard/HorizontalImageCard.module.css +34 -34
  16. package/lib/components/card/imageAndDetailsCard/ImageAndDetailsCard.d.ts +14 -14
  17. package/lib/components/card/imageAndDetailsCard/ImageAndDetailsCard.js +9 -9
  18. package/lib/components/card/imageAndDetailsCard/ImageAndDetailsCard.module.css +63 -63
  19. package/lib/components/card/index.d.ts +7 -7
  20. package/lib/components/card/index.js +7 -7
  21. package/lib/components/card/infoCard/InfoCard.d.ts +8 -8
  22. package/lib/components/card/infoCard/InfoCard.js +6 -6
  23. package/lib/components/card/infoCard/InfoCard.module.css +26 -26
  24. package/lib/components/card/richContentCard/RichContentCard.d.ts +19 -19
  25. package/lib/components/card/richContentCard/RichContentCard.js +15 -15
  26. package/lib/components/card/richContentCard/RichContentCard.module.css +93 -93
  27. package/lib/components/codeBlock/CodeBlock.d.ts +6 -6
  28. package/lib/components/codeBlock/CodeBlock.js +3 -3
  29. package/lib/components/codeBlock/CodeBlock.module.css +6 -6
  30. package/lib/components/container/Container.d.ts +6 -6
  31. package/lib/components/container/Container.js +4 -4
  32. package/lib/components/container/Container.module.css +9 -9
  33. package/lib/components/denhaag-wrappers/breadcrumbs/Breadcrumbs.css +222 -222
  34. package/lib/components/denhaag-wrappers/breadcrumbs/Breadcrumbs.d.ts +17 -17
  35. package/lib/components/denhaag-wrappers/breadcrumbs/Breadcrumbs.js +20 -20
  36. package/lib/components/denhaag-wrappers/pagination/Pagination.css +120 -120
  37. package/lib/components/denhaag-wrappers/pagination/Pagination.d.ts +9 -9
  38. package/lib/components/denhaag-wrappers/pagination/Pagination.js +15 -15
  39. package/lib/components/editableTableRow/EditableTableRow.d.ts +14 -14
  40. package/lib/components/editableTableRow/EditableTableRow.js +31 -31
  41. package/lib/components/editableTableRow/EditableTableRow.module.css +25 -25
  42. package/lib/components/formFields/checkbox/Checkbox.module.css +7 -7
  43. package/lib/components/formFields/checkbox/checkbox.d.ts +9 -9
  44. package/lib/components/formFields/checkbox/checkbox.js +3 -3
  45. package/lib/components/formFields/createKeyValue/CreateKeyValue.d.ts +22 -18
  46. package/lib/components/formFields/createKeyValue/CreateKeyValue.js +41 -31
  47. package/lib/components/formFields/createKeyValue/CreateKeyValue.module.css +56 -43
  48. package/lib/components/formFields/date/Date.d.ts +12 -12
  49. package/lib/components/formFields/date/Date.js +10 -10
  50. package/lib/components/formFields/date/Date.module.css +12 -12
  51. package/lib/components/formFields/errorMessage/ErrorMessage.d.ts +5 -0
  52. package/lib/components/formFields/errorMessage/ErrorMessage.js +3 -0
  53. package/lib/components/formFields/errorMessage/ErrorMessage.module.css +9 -0
  54. package/lib/components/formFields/index.d.ts +8 -8
  55. package/lib/components/formFields/index.js +8 -8
  56. package/lib/components/formFields/input.d.ts +21 -20
  57. package/lib/components/formFields/input.js +16 -15
  58. package/lib/components/formFields/radio.d.ts +9 -9
  59. package/lib/components/formFields/radio.js +3 -3
  60. package/lib/components/formFields/select/select.d.ts +19 -18
  61. package/lib/components/formFields/select/select.js +22 -21
  62. package/lib/components/formFields/select/select.module.css +38 -38
  63. package/lib/components/formFields/textarea.d.ts +9 -8
  64. package/lib/components/formFields/textarea.js +4 -3
  65. package/lib/components/formFields/types.d.ts +6 -6
  66. package/lib/components/formFields/types.js +1 -1
  67. package/lib/components/imageDivider/ImageDivider.d.ts +7 -7
  68. package/lib/components/imageDivider/ImageDivider.js +6 -6
  69. package/lib/components/imageDivider/imageDivider.module.css +5 -5
  70. package/lib/components/logo/Logo.d.ts +8 -8
  71. package/lib/components/logo/Logo.js +10 -10
  72. package/lib/components/logo/Logo.module.css +15 -15
  73. package/lib/components/metaIcon/MetaIcon.d.ts +7 -7
  74. package/lib/components/metaIcon/MetaIcon.js +3 -3
  75. package/lib/components/metaIcon/MetaIcon.module.css +29 -29
  76. package/lib/components/notificationPopUp/NotificationPopUp.d.ts +26 -26
  77. package/lib/components/notificationPopUp/NotificationPopUp.js +31 -31
  78. package/lib/components/privateRoute/PrivateRoute.d.ts +6 -6
  79. package/lib/components/privateRoute/PrivateRoute.js +15 -15
  80. package/lib/components/quoteWrapper/QuoteWrapper.d.ts +7 -7
  81. package/lib/components/quoteWrapper/QuoteWrapper.js +5 -5
  82. package/lib/components/quoteWrapper/QuoteWrapper.module.css +12 -12
  83. package/lib/components/statusSteps/StatusSteps.d.ts +13 -13
  84. package/lib/components/statusSteps/StatusSteps.js +5 -5
  85. package/lib/components/tag/Tag.d.ts +10 -10
  86. package/lib/components/tag/Tag.js +6 -6
  87. package/lib/components/tag/Tag.module.css +44 -44
  88. package/lib/components/toolTip/ToolTip.d.ts +9 -9
  89. package/lib/components/toolTip/ToolTip.js +8 -8
  90. package/lib/components/topNav/index.d.ts +3 -3
  91. package/lib/components/topNav/index.js +3 -3
  92. package/lib/components/topNav/primaryTopNav/PrimaryTopNav.d.ts +20 -20
  93. package/lib/components/topNav/primaryTopNav/PrimaryTopNav.js +17 -17
  94. package/lib/components/topNav/primaryTopNav/PrimaryTopNav.module.css +145 -145
  95. package/lib/components/topNav/secondaryTopNav/SecondaryTopNav.d.ts +12 -12
  96. package/lib/components/topNav/secondaryTopNav/SecondaryTopNav.js +7 -7
  97. package/lib/components/topNav/secondaryTopNav/SecondaryTopNav.module.css +63 -63
  98. package/lib/index.d.ts +27 -27
  99. package/lib/index.js +20 -20
  100. package/package.json +1 -1
  101. package/src/components/badgeCounter/BadgeCounter.module.css +27 -27
  102. package/src/components/card/detailsCard/DetailsCard.module.css +51 -51
  103. package/src/components/card/downloadCard/DownloadCard.js +10 -10
  104. package/src/components/card/downloadCard/DownloadCard.module.css +27 -27
  105. package/src/components/card/horizontalImageCard/HorizontalImageCard.js +9 -9
  106. package/src/components/card/horizontalImageCard/HorizontalImageCard.module.css +34 -34
  107. package/src/components/card/imageAndDetailsCard/ImageAndDetailsCard.js +9 -9
  108. package/src/components/card/imageAndDetailsCard/ImageAndDetailsCard.module.css +63 -63
  109. package/src/components/card/index.js +5 -5
  110. package/src/components/card/index.tsx +8 -8
  111. package/src/components/card/infoCard/InfoCard.module.css +26 -26
  112. package/src/components/card/richContentCard/RichContentCard.js +17 -17
  113. package/src/components/card/richContentCard/RichContentCard.module.css +93 -93
  114. package/src/components/codeBlock/CodeBlock.module.css +6 -6
  115. package/src/components/container/Container.js +3 -3
  116. package/src/components/container/Container.module.css +9 -9
  117. package/src/components/denhaag-wrappers/breadcrumbs/Breadcrumbs.css +222 -222
  118. package/src/components/denhaag-wrappers/breadcrumbs/Breadcrumbs.js +84 -84
  119. package/src/components/denhaag-wrappers/pagination/Pagination.css +120 -120
  120. package/src/components/editableTableRow/EditableTableRow.js +34 -34
  121. package/src/components/editableTableRow/EditableTableRow.module.css +25 -25
  122. package/src/components/formFields/checkbox/Checkbox.module.css +7 -7
  123. package/src/components/formFields/createKeyValue/CreateKeyValue.module.css +56 -43
  124. package/src/components/formFields/createKeyValue/CreateKeyValue.tsx +53 -12
  125. package/src/components/formFields/date/Date.module.css +12 -12
  126. package/src/components/formFields/errorMessage/ErrorMessage.module.css +9 -0
  127. package/src/components/formFields/errorMessage/ErrorMessage.tsx +9 -0
  128. package/src/components/formFields/index.js +4 -4
  129. package/src/components/formFields/input.js +12 -12
  130. package/src/components/formFields/input.tsx +69 -42
  131. package/src/components/formFields/select/select.module.css +38 -38
  132. package/src/components/formFields/select/select.tsx +122 -109
  133. package/src/components/formFields/textarea.js +3 -3
  134. package/src/components/formFields/textarea.tsx +7 -2
  135. package/src/components/formFields/types.js +1 -1
  136. package/src/components/imageDivider/ImageDivider.js +6 -6
  137. package/src/components/imageDivider/imageDivider.module.css +5 -5
  138. package/src/components/logo/Logo.js +10 -10
  139. package/src/components/logo/Logo.module.css +15 -15
  140. package/src/components/metaIcon/MetaIcon.js +3 -3
  141. package/src/components/metaIcon/MetaIcon.module.css +29 -29
  142. package/src/components/privateRoute/PrivateRoute.js +15 -15
  143. package/src/components/quoteWrapper/QuoteWrapper.module.css +12 -12
  144. package/src/components/statusSteps/StatusSteps.js +5 -5
  145. package/src/components/tag/Tag.module.css +44 -44
  146. package/src/components/topNav/index.ts +4 -4
  147. package/src/components/topNav/primaryTopNav/PrimaryTopNav.module.css +145 -145
  148. package/src/components/topNav/secondaryTopNav/SecondaryTopNav.module.css +63 -63
  149. package/src/custom.d.ts +4 -4
  150. package/src/index.ts +79 -79
@@ -1,109 +1,122 @@
1
- import * as React from "react";
2
- import * as styles from "./select.module.css";
3
- import { Control, Controller, FieldValues } from "react-hook-form";
4
- import ReactSelect from "react-select";
5
- import CreatableSelect from "react-select/creatable";
6
- import { IReactHookFormProps } from "../types";
7
- import clsx from "clsx";
8
-
9
- interface ISelectProps {
10
- control: Control<FieldValues, any>;
11
- options: { label: string; value: string }[];
12
- name: string;
13
- defaultValue?: any;
14
- disabled?: boolean;
15
- isClearable?: boolean;
16
- }
17
-
18
- export const SelectMultiple = ({
19
- name,
20
- options,
21
- errors,
22
- control,
23
- validation,
24
- defaultValue,
25
- disabled,
26
- }: ISelectProps & IReactHookFormProps): JSX.Element => {
27
- return (
28
- <Controller
29
- {...{ control, name, defaultValue }}
30
- rules={validation}
31
- render={({ field: { onChange, value } }) => {
32
- return (
33
- <ReactSelect
34
- value={value ?? ""}
35
- className={clsx(styles.select, errors[name] && styles.error)}
36
- isMulti
37
- isDisabled={disabled}
38
- {...{ options, onChange, errors }}
39
- menuPortalTarget={document.body}
40
- styles={{ menuPortal: (base) => ({ ...base, zIndex: 100 }) }}
41
- placeholder={disabled ? "Disabled..." : "Select one or more options..."}
42
- />
43
- );
44
- }}
45
- />
46
- );
47
- };
48
-
49
- export const SelectCreate = ({
50
- name,
51
- options,
52
- errors,
53
- control,
54
- validation,
55
- defaultValue,
56
- disabled,
57
- }: ISelectProps & IReactHookFormProps): JSX.Element => {
58
- return (
59
- <Controller
60
- {...{ control, name, defaultValue }}
61
- rules={validation}
62
- render={({ field: { onChange, value } }) => {
63
- return (
64
- <CreatableSelect
65
- value={value ?? ""}
66
- placeholder={disabled ? "Disabled..." : "Select or create one or multiple options..."}
67
- className={clsx(styles.select, errors[name] && styles.error)}
68
- isMulti
69
- isDisabled={disabled}
70
- {...{ options, onChange, errors }}
71
- menuPortalTarget={document.body}
72
- styles={{ menuPortal: (base) => ({ ...base, zIndex: 100 }) }}
73
- />
74
- );
75
- }}
76
- />
77
- );
78
- };
79
-
80
- export const SelectSingle = ({
81
- name,
82
- options,
83
- errors,
84
- control,
85
- validation,
86
- isClearable,
87
- defaultValue,
88
- disabled,
89
- }: ISelectProps & IReactHookFormProps): JSX.Element => {
90
- return (
91
- <Controller
92
- {...{ control, name, defaultValue }}
93
- rules={validation}
94
- render={({ field: { onChange, value } }) => {
95
- return (
96
- <ReactSelect
97
- value={value ?? ""}
98
- className={clsx(styles.select, errors[name] && styles.error)}
99
- isDisabled={disabled}
100
- {...{ options, onChange, errors, isClearable }}
101
- menuPortalTarget={document.body}
102
- styles={{ menuPortal: (base) => ({ ...base, zIndex: 100 }) }}
103
- placeholder={disabled ? "Disabled..." : "Select an option..."}
104
- />
105
- );
106
- }}
107
- />
108
- );
109
- };
1
+ import * as styles from "./select.module.css";
2
+ import { Control, Controller, FieldValues } from "react-hook-form";
3
+ import ReactSelect from "react-select";
4
+ import CreatableSelect from "react-select/creatable";
5
+ import { IReactHookFormProps } from "../types";
6
+ import clsx from "clsx";
7
+ import { ErrorMessage } from "../errorMessage/ErrorMessage";
8
+
9
+ interface ISelectProps {
10
+ control: Control<FieldValues, any>;
11
+ options: { label: string; value: string }[];
12
+ name: string;
13
+ defaultValue?: any;
14
+ disabled?: boolean;
15
+ isClearable?: boolean;
16
+ hideErrorMessage?: boolean;
17
+ }
18
+
19
+ export const SelectMultiple = ({
20
+ name,
21
+ options,
22
+ errors,
23
+ control,
24
+ validation,
25
+ defaultValue,
26
+ disabled,
27
+ hideErrorMessage,
28
+ }: ISelectProps & IReactHookFormProps): JSX.Element => {
29
+ return (
30
+ <Controller
31
+ {...{ control, name, defaultValue }}
32
+ rules={validation}
33
+ render={({ field: { onChange, value } }) => {
34
+ return (
35
+ <>
36
+ <ReactSelect
37
+ value={value ?? ""}
38
+ className={clsx(styles.select, errors[name] && styles.error)}
39
+ isMulti
40
+ isDisabled={disabled}
41
+ {...{ options, onChange, errors }}
42
+ menuPortalTarget={document.body}
43
+ styles={{ menuPortal: (base) => ({ ...base, zIndex: 100 }) }}
44
+ placeholder={disabled ? "Disabled..." : "Select one or more options..."}
45
+ />
46
+ {errors[name] && !hideErrorMessage && <ErrorMessage message={errors[name].message} />}
47
+ </>
48
+ );
49
+ }}
50
+ />
51
+ );
52
+ };
53
+
54
+ export const SelectCreate = ({
55
+ name,
56
+ options,
57
+ errors,
58
+ control,
59
+ validation,
60
+ defaultValue,
61
+ disabled,
62
+ hideErrorMessage,
63
+ }: ISelectProps & IReactHookFormProps): JSX.Element => {
64
+ return (
65
+ <Controller
66
+ {...{ control, name, defaultValue }}
67
+ rules={validation}
68
+ render={({ field: { onChange, value } }) => {
69
+ return (
70
+ <>
71
+ <CreatableSelect
72
+ value={value ?? ""}
73
+ placeholder={disabled ? "Disabled..." : "Select or create one or multiple options..."}
74
+ className={clsx(styles.select, errors[name] && styles.error)}
75
+ isMulti
76
+ isDisabled={disabled}
77
+ {...{ options, onChange, errors }}
78
+ menuPortalTarget={document.body}
79
+ styles={{ menuPortal: (base) => ({ ...base, zIndex: 100 }) }}
80
+ />
81
+ {errors[name] && !hideErrorMessage && <ErrorMessage message={errors[name].message} />}
82
+ </>
83
+ );
84
+ }}
85
+ />
86
+ );
87
+ };
88
+
89
+ export const SelectSingle = ({
90
+ name,
91
+ options,
92
+ errors,
93
+ control,
94
+ validation,
95
+ isClearable,
96
+ defaultValue,
97
+ disabled,
98
+ hideErrorMessage,
99
+ }: ISelectProps & IReactHookFormProps): JSX.Element => {
100
+ return (
101
+ <Controller
102
+ {...{ control, name, defaultValue }}
103
+ rules={validation}
104
+ render={({ field: { onChange, value } }) => {
105
+ return (
106
+ <>
107
+ <ReactSelect
108
+ value={value ?? ""}
109
+ className={clsx(styles.select, errors[name] && styles.error)}
110
+ isDisabled={disabled}
111
+ {...{ options, onChange, errors, isClearable }}
112
+ menuPortalTarget={document.body}
113
+ styles={{ menuPortal: (base) => ({ ...base, zIndex: 100 }) }}
114
+ placeholder={disabled ? "Disabled..." : "Select an option..."}
115
+ />
116
+ {errors[name] && !hideErrorMessage && <ErrorMessage message={errors[name].message} />}
117
+ </>
118
+ );
119
+ }}
120
+ />
121
+ );
122
+ };
@@ -1,3 +1,3 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { TextArea } from "@gemeente-denhaag/textarea";
3
- export const Textarea = ({ name, validation, register, errors }) => (_jsx(TextArea, { ...register(name, { ...validation }), invalid: errors[name] }));
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { TextArea } from "@gemeente-denhaag/textarea";
3
+ export const Textarea = ({ name, validation, register, errors }) => (_jsx(TextArea, { ...register(name, { ...validation }), invalid: errors[name] }));
@@ -1,11 +1,12 @@
1
- import * as React from "react";
2
1
  import { TextArea } from "@gemeente-denhaag/textarea";
3
2
  import { IReactHookFormProps } from "./types";
3
+ import { ErrorMessage } from "./errorMessage/ErrorMessage";
4
4
 
5
5
  export interface ITextAreaProps {
6
6
  name: string;
7
7
  disabled?: boolean;
8
8
  defaultValue?: string;
9
+ hideErrorMessage?: boolean;
9
10
  }
10
11
 
11
12
  export const Textarea = ({
@@ -15,6 +16,10 @@ export const Textarea = ({
15
16
  errors,
16
17
  disabled,
17
18
  defaultValue,
19
+ hideErrorMessage,
18
20
  }: ITextAreaProps & IReactHookFormProps): JSX.Element => (
19
- <TextArea {...register(name, { ...validation })} {...{ disabled, defaultValue }} invalid={errors[name]} />
21
+ <>
22
+ <TextArea {...register(name, { ...validation })} {...{ disabled, defaultValue }} invalid={errors[name]} />
23
+ {errors[name] && !hideErrorMessage && <ErrorMessage message={errors[name].message} />}
24
+ </>
20
25
  );
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,6 +1,6 @@
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
+ 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,5 +1,5 @@
1
- .divider {
2
- display: block;
3
- object-fit: cover;
4
- width: 100%;
5
- }
1
+ .divider {
2
+ display: block;
3
+ object-fit: cover;
4
+ width: 100%;
5
+ }
@@ -1,10 +1,10 @@
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
+ 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 +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 };