@conduction/components 1.0.28 → 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.
Files changed (101) hide show
  1. package/.prettierrc +2 -1
  2. package/package.json +7 -2
  3. package/src/components/card/detailsCard/DetailsCard.module.css +18 -15
  4. package/src/components/card/downloadCard/DownloadCard.module.css +11 -7
  5. package/src/components/card/horizontalImageCard/HorizontalImageCard.module.css +17 -9
  6. package/src/components/card/imageAndDetailsCard/ImageAndDetailsCard.module.css +20 -16
  7. package/src/components/card/infoCard/InfoCard.module.css +11 -22
  8. package/src/components/card/richContentCard/RichContentCard.module.css +22 -18
  9. package/src/components/container/Container.module.css +2 -2
  10. package/src/components/editableTableRow/EditableTableRow.module.css +3 -3
  11. package/src/components/formFields/select/select.module.css +21 -51
  12. package/src/components/metaIcon/MetaIcon.module.css +15 -3
  13. package/src/components/notificationPopUp/NotificationPopUp.module.css +11 -10
  14. package/src/components/quoteWrapper/QuoteWrapper.module.css +6 -6
  15. package/src/components/tag/Tag.module.css +17 -6
  16. package/src/components/topNav/primaryTopNav/PrimaryTopNav.module.css +15 -15
  17. package/src/components/topNav/secondaryTopNav/SecondaryTopNav.module.css +15 -15
  18. package/lib/components/card/detailsCard/DetailsCard.d.ts +0 -14
  19. package/lib/components/card/detailsCard/DetailsCard.js +0 -10
  20. package/lib/components/card/detailsCard/DetailsCard.module.css +0 -48
  21. package/lib/components/card/downloadCard/DownloadCard.d.ts +0 -10
  22. package/lib/components/card/downloadCard/DownloadCard.js +0 -8
  23. package/lib/components/card/downloadCard/DownloadCard.module.css +0 -23
  24. package/lib/components/card/horizontalImageCard/HorizontalImageCard.d.ts +0 -13
  25. package/lib/components/card/horizontalImageCard/HorizontalImageCard.js +0 -9
  26. package/lib/components/card/horizontalImageCard/HorizontalImageCard.module.css +0 -26
  27. package/lib/components/card/imageAndDetailsCard/ImageAndDetailsCard.d.ts +0 -14
  28. package/lib/components/card/imageAndDetailsCard/ImageAndDetailsCard.js +0 -9
  29. package/lib/components/card/imageAndDetailsCard/ImageAndDetailsCard.module.css +0 -59
  30. package/lib/components/card/index.d.ts +0 -7
  31. package/lib/components/card/index.js +0 -7
  32. package/lib/components/card/infoCard/InfoCard.d.ts +0 -7
  33. package/lib/components/card/infoCard/InfoCard.js +0 -5
  34. package/lib/components/card/infoCard/InfoCard.module.css +0 -37
  35. package/lib/components/card/richContentCard/RichContentCard.d.ts +0 -19
  36. package/lib/components/card/richContentCard/RichContentCard.js +0 -15
  37. package/lib/components/card/richContentCard/RichContentCard.module.css +0 -89
  38. package/lib/components/container/Container.d.ts +0 -6
  39. package/lib/components/container/Container.js +0 -4
  40. package/lib/components/container/Container.module.css +0 -9
  41. package/lib/components/denhaag-wrappers/breadcrumbs/Breadcrumbs.css +0 -222
  42. package/lib/components/denhaag-wrappers/breadcrumbs/Breadcrumbs.d.ts +0 -17
  43. package/lib/components/denhaag-wrappers/breadcrumbs/Breadcrumbs.js +0 -20
  44. package/lib/components/denhaag-wrappers/pagination/Pagination.css +0 -120
  45. package/lib/components/denhaag-wrappers/pagination/Pagination.d.ts +0 -9
  46. package/lib/components/denhaag-wrappers/pagination/Pagination.js +0 -15
  47. package/lib/components/editableTableRow/EditableTableRow.d.ts +0 -14
  48. package/lib/components/editableTableRow/EditableTableRow.js +0 -31
  49. package/lib/components/editableTableRow/EditableTableRow.module.css +0 -25
  50. package/lib/components/formFields/checkbox.d.ts +0 -7
  51. package/lib/components/formFields/checkbox.js +0 -3
  52. package/lib/components/formFields/index.d.ts +0 -6
  53. package/lib/components/formFields/index.js +0 -6
  54. package/lib/components/formFields/input.d.ts +0 -19
  55. package/lib/components/formFields/input.js +0 -13
  56. package/lib/components/formFields/radio.d.ts +0 -9
  57. package/lib/components/formFields/radio.js +0 -3
  58. package/lib/components/formFields/select/select.d.ts +0 -16
  59. package/lib/components/formFields/select/select.js +0 -14
  60. package/lib/components/formFields/select/select.module.css +0 -65
  61. package/lib/components/formFields/select.d.ts +0 -17
  62. package/lib/components/formFields/select.js +0 -14
  63. package/lib/components/formFields/textarea.d.ts +0 -8
  64. package/lib/components/formFields/textarea.js +0 -3
  65. package/lib/components/formFields/types.d.ts +0 -6
  66. package/lib/components/formFields/types.js +0 -1
  67. package/lib/components/imageDivider/ImageDivider.d.ts +0 -7
  68. package/lib/components/imageDivider/ImageDivider.js +0 -6
  69. package/lib/components/imageDivider/imageDivider.module.css +0 -5
  70. package/lib/components/logo/Logo.d.ts +0 -8
  71. package/lib/components/logo/Logo.js +0 -10
  72. package/lib/components/logo/Logo.module.css +0 -15
  73. package/lib/components/metaIcon/MetaIcon.d.ts +0 -7
  74. package/lib/components/metaIcon/MetaIcon.js +0 -3
  75. package/lib/components/metaIcon/MetaIcon.module.css +0 -17
  76. package/lib/components/notificationPopUp/NotificationPopUp.d.ts +0 -22
  77. package/lib/components/notificationPopUp/NotificationPopUp.js +0 -31
  78. package/lib/components/notificationPopUp/NotificationPopUp.module.css +0 -60
  79. package/lib/components/privateRoute/PrivateRoute.d.ts +0 -6
  80. package/lib/components/privateRoute/PrivateRoute.js +0 -15
  81. package/lib/components/quoteWrapper/QuoteWrapper.d.ts +0 -7
  82. package/lib/components/quoteWrapper/QuoteWrapper.js +0 -5
  83. package/lib/components/quoteWrapper/QuoteWrapper.module.css +0 -12
  84. package/lib/components/statusSteps/StatusSteps.d.ts +0 -13
  85. package/lib/components/statusSteps/StatusSteps.js +0 -5
  86. package/lib/components/tag/Tag.d.ts +0 -6
  87. package/lib/components/tag/Tag.js +0 -3
  88. package/lib/components/tag/Tag.module.css +0 -9
  89. package/lib/components/topNav/TopNav.d.ts +0 -12
  90. package/lib/components/topNav/TopNav.js +0 -10
  91. package/lib/components/topNav/TopNav.module.css +0 -75
  92. package/lib/components/topNav/index.d.ts +0 -3
  93. package/lib/components/topNav/index.js +0 -3
  94. package/lib/components/topNav/primaryTopNav/PrimaryTopNav.d.ts +0 -17
  95. package/lib/components/topNav/primaryTopNav/PrimaryTopNav.js +0 -7
  96. package/lib/components/topNav/primaryTopNav/PrimaryTopNav.module.css +0 -60
  97. package/lib/components/topNav/secondaryTopNav/SecondaryTopNav.d.ts +0 -11
  98. package/lib/components/topNav/secondaryTopNav/SecondaryTopNav.js +0 -7
  99. package/lib/components/topNav/secondaryTopNav/SecondaryTopNav.module.css +0 -43
  100. package/lib/index.d.ts +0 -24
  101. package/lib/index.js +0 -17
@@ -1,9 +1,9 @@
1
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);
2
+ --conduction-primary-top-nav-item-padding: var(--skeleton-size-md);
3
+ --conduction-primary-top-nav-color: var(--skeleton-color-white);
4
+ --conduction-primary-top-nav-background-color: var(--skeleton-color-secondary-3);
5
+ --conduction-primary-top-nav-background-color-hover: var(--skeleton-color-secondary-5);
6
+ --conduction-primary-top-nav-dropdown-border-radius: var(--skeleton-border-radius-md);
7
7
  }
8
8
 
9
9
  .primary:hover {
@@ -26,20 +26,20 @@
26
26
  .primary {
27
27
  font-weight: 500;
28
28
  width: fit-content;
29
- background-color: var(--conduction-top-nav-background-color-primary);
29
+ background-color: var(--conduction-primary-top-nav-background-color);
30
30
  }
31
31
 
32
32
  .primary .link {
33
33
  display: block;
34
- color: var(--conduction-top-nav-color-primary);
35
- padding-inline-start: var(--conduction-top-nav-space-inline-lg);
36
- padding-inline-end: var(--conduction-top-nav-space-inline-lg);
37
- padding-block-start: var(--conduction-top-nav-space-inline-lg);
38
- padding-block-end: var(--conduction-top-nav-space-inline-lg);
34
+ color: var(--conduction-primary-top-nav-color);
35
+ padding-inline-start: var(--conduction-primary-top-nav-item-padding);
36
+ padding-inline-end: var(--conduction-primary-top-nav-item-padding);
37
+ padding-block-start: var(--conduction-primary-top-nav-item-padding);
38
+ padding-block-end: var(--conduction-primary-top-nav-item-padding);
39
39
  }
40
40
 
41
41
  .primary .li:hover {
42
- background-color: var(--conduction-top-nav-background-color-primary-hover);
42
+ background-color: var(--conduction-primary-top-nav-background-color-hover);
43
43
  }
44
44
 
45
45
  .primary .li:hover .dropdown {
@@ -54,7 +54,7 @@
54
54
  display: none;
55
55
  position: absolute;
56
56
  list-style-type: none;
57
- background-color: var(--conduction-top-nav-background-color-primary);
58
- border-bottom-right-radius: var(--nlportal-border-radius);
59
- border-bottom-left-radius: var(--nlportal-border-radius);
57
+ background-color: var(--conduction-primary-top-nav-background-color);
58
+ border-bottom-right-radius: var(--conduction-primary-top-nav-dropdown-border-radius);
59
+ border-bottom-left-radius: var(--conduction-primary-top-nav-dropdown-border-radius);
60
60
  }
@@ -1,10 +1,10 @@
1
1
  :root {
2
- --conduction-top-nav-space-inline-lg: 1.25rem;
3
-
4
- --conduction-top-nav-font-size-secondary: 16px;
5
- --conduction-top-nav-color-secondary: #ffffff;
6
- --conduction-top-nav-background-color-secondary: #084f70;
7
- --conduction-top-nav-background-color-secondary-hover: rgba(0, 0, 0, 0.2);
2
+ --conduction-secondary-top-nav-item-padding: var(--skeleton-size-md);
3
+ --conduction-secondary-top-nav-font-size: var(--skeleton-font-size-md);
4
+ --conduction-secondary-top-nav-color: var(--skeleton-color-white);
5
+ --conduction-secondary-top-nav-background-color: var(--skeleton-color-secondary-5);
6
+ --conduction-secondary-top-nav-background-color-hover: var(--skeleton-color-secondary-3);
7
+ --conduction-secondary-top-nav-font-weight: var(--skeleton-font-weight-light);
8
8
  }
9
9
 
10
10
  .secondary:hover {
@@ -21,23 +21,23 @@
21
21
  .li {
22
22
  list-style-type: none;
23
23
  display: block;
24
- padding-inline-start: var(--conduction-top-nav-space-inline-lg);
25
- padding-inline-end: var(--conduction-top-nav-space-inline-lg);
26
- padding-block-start: var(--conduction-top-nav-space-inline-lg);
27
- padding-block-end: var(--conduction-top-nav-space-inline-lg);
24
+ padding-inline-start: var(--conduction-secondary-top-nav-item-padding);
25
+ padding-inline-end: var(--conduction-secondary-top-nav-item-padding);
26
+ padding-block-start: var(--conduction-secondary-top-nav-item-padding);
27
+ padding-block-end: var(--conduction-secondary-top-nav-item-padding);
28
28
  }
29
29
 
30
30
  .secondary {
31
- font-weight: 100;
31
+ font-weight: var(--conduction-secondary-top-nav-font-weight);
32
32
  width: fit-content;
33
- font-size: var(--conduction-top-nav-font-size-secondary);
34
- background-color: var(--conduction-top-nav-background-color-secondary);
33
+ font-size: var(--conduction-secondary-top-nav-font-size);
34
+ background-color: var(--conduction-secondary-top-nav-background-color);
35
35
  }
36
36
 
37
37
  .secondary .link {
38
- color: var(--conduction-top-nav-color-secondary);
38
+ color: var(--conduction-secondary-top-nav-color);
39
39
  }
40
40
 
41
41
  .secondary .li:hover {
42
- background-color: var(--conduction-top-nav-background-color-secondary-hover);
42
+ background-color: var(--conduction-secondary-top-nav-background-color-hover);
43
43
  }
@@ -1,14 +0,0 @@
1
- import * as React from "react";
2
- interface DetailsCardProps {
3
- title: string;
4
- introduction?: string;
5
- link: {
6
- href: string;
7
- label: string;
8
- };
9
- tags?: string[];
10
- subHeader?: string;
11
- layoutClassName?: string;
12
- }
13
- export declare const DetailsCard: React.FC<DetailsCardProps>;
14
- export {};
@@ -1,10 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import * as styles from "./DetailsCard.module.css";
3
- import clsx from "clsx";
4
- import { Link } from "@gemeente-denhaag/components-react";
5
- import { navigate } from "gatsby";
6
- import { ArrowRightIcon } from "@gemeente-denhaag/icons";
7
- import { Tag } from "../../tag/Tag";
8
- export const DetailsCard = ({ title, subHeader, introduction, link, tags, layoutClassName, }) => {
9
- return (_jsx("div", { className: clsx(styles.container, [layoutClassName && layoutClassName]), onClick: () => navigate(link.href), children: _jsxs("div", { className: styles.content, children: [_jsxs("div", { children: [_jsx("div", { className: styles.title, children: title }), _jsx("span", { className: styles.subHeader, children: subHeader })] }), tags && (_jsx("div", { className: styles.tags, children: tags.map((tag, idx) => (_jsx(Tag, { ...{ tag } }, idx))) })), _jsx("div", { className: styles.introduction, children: introduction }), _jsx("div", { className: styles.link, children: _jsx(Link, { icon: _jsx(ArrowRightIcon, {}), iconAlign: "start", children: link.label }) })] }) }));
10
- };
@@ -1,48 +0,0 @@
1
- .container {
2
- cursor: pointer;
3
- overflow: hidden;
4
- border-radius: var(--nlportal-document-border-radius);
5
- }
6
-
7
- .content {
8
- display: flex;
9
- flex-direction: column;
10
- padding-inline-start: var(--nlportal-space-inline-lg);
11
- padding-inline-end: var(--nlportal-space-inline-lg);
12
- padding-block-start: var(--nlportal-space-block-lg);
13
- padding-block-end: var(--nlportal-space-block-lg);
14
- border: var(--nlportal-document-border, 1px solid);
15
- }
16
-
17
- .content > *:not(:last-child) {
18
- margin-block-end: var(--nlportal-space-block-md);
19
- }
20
-
21
- .title {
22
- font-size: var(--denhaag-typography-scale-xl-font-size);
23
- font-weight: var(--conduction-image-and-details-card-title-font-weight);
24
- }
25
-
26
- .subHeader {
27
- color: var(--denhaag-color-grey-3);
28
- font-size: var(--denhaag-typography-scale-s-font-size);
29
- }
30
-
31
- .tags > *:not(:last-child) {
32
- margin-inline-end: var(--nlportal-space-inline-md);
33
- }
34
-
35
- .introduction {
36
- overflow: hidden;
37
- text-overflow: ellipsis;
38
- display: -webkit-box;
39
- -webkit-line-clamp: var(
40
- --conduction-image-and-details-card-introduction-lines-clamp
41
- );
42
- -webkit-box-orient: vertical;
43
- }
44
-
45
- .link {
46
- display: flex;
47
- justify-content: flex-end;
48
- }
@@ -1,10 +0,0 @@
1
- import * as React from "react";
2
- interface DownloadCardProps {
3
- icon: JSX.Element;
4
- label: string;
5
- sizeKb: string;
6
- downloadLabel: string;
7
- layoutClassName?: string;
8
- }
9
- export declare const DownloadCard: React.FC<DownloadCardProps>;
10
- export {};
@@ -1,8 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import * as styles from "./DownloadCard.module.css";
3
- import { DownloadIcon } from "@gemeente-denhaag/icons";
4
- import { Link } from "@gemeente-denhaag/components-react";
5
- import clsx from "clsx";
6
- export const DownloadCard = ({ icon, label, sizeKb, layoutClassName, downloadLabel }) => {
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(Link, { icon: _jsx(DownloadIcon, {}), iconAlign: "start", children: downloadLabel })] }));
8
- };
@@ -1,23 +0,0 @@
1
- .container {
2
- display: flex;
3
- align-items: center;
4
- justify-content: space-between;
5
- border: var(--nlportal-document-border, 1px solid);
6
- border-radius: var(--nlportal-document-border-radius);
7
- padding-inline-end: var(--nlportal-space-inline-md);
8
- }
9
-
10
- .content {
11
- display: flex;
12
- align-items: center;
13
- }
14
-
15
- .content > *:not(:last-child) {
16
- margin-inline-end: var(--nlportal-space-inline-md);
17
- }
18
-
19
- .icon {
20
- padding-inline: var(--nlportal-space-inline-md);
21
- padding-block: var(--nlportal-space-block-md);
22
- background-color: var(--nlportal-document-icon-background-color);
23
- }
@@ -1,13 +0,0 @@
1
- import * as React from "react";
2
- interface HorizontalImageCardProps {
3
- iconOrImage: JSX.Element;
4
- title: string;
5
- link: {
6
- label: string;
7
- href: string;
8
- };
9
- layoutClassName?: string;
10
- external?: boolean;
11
- }
12
- export declare const HorizontalImageCard: React.FC<HorizontalImageCardProps>;
13
- export {};
@@ -1,9 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import * as styles from "./HorizontalImageCard.module.css";
3
- import clsx from "clsx";
4
- import { Link } from "@gemeente-denhaag/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,26 +0,0 @@
1
- .container {
2
- display: flex;
3
- align-items: center;
4
- cursor: pointer;
5
- background-color: var(--denhaag-color-grey-1);
6
- border-radius: var(--nlportal-border-radius);
7
- }
8
-
9
- .link {
10
- display: flex;
11
- flex-direction: column;
12
- }
13
-
14
- .imageOrIconContainer > :first-child {
15
- width: var(--conduction-horizontal-image-card-icon-size);
16
- height: var(--conduction-horizontal-image-card-icon-size);
17
-
18
- padding-inline-start: var(--nlportal-space-inline-md);
19
- padding-inline-end: var(--nlportal-space-inline-md);
20
- padding-block-start: var(--nlportal-space-block-md);
21
- padding-block-end: var(--nlportal-space-block-md);
22
- }
23
-
24
- .title {
25
- font-size: var(--conduction-horizontal-image-card-font-size);
26
- }
@@ -1,14 +0,0 @@
1
- import * as React from "react";
2
- interface ImageAndDetailsCardProps {
3
- title: string;
4
- image: JSX.Element;
5
- introduction: string;
6
- link: {
7
- href: string;
8
- label: string;
9
- };
10
- subHeader?: string;
11
- layoutClassName?: string;
12
- }
13
- export declare const ImageAndDetailsCard: React.FC<ImageAndDetailsCardProps>;
14
- export {};
@@ -1,9 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import * as styles from "./ImageAndDetailsCard.module.css";
3
- import clsx from "clsx";
4
- import { Link } from "@gemeente-denhaag/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,59 +0,0 @@
1
- .container {
2
- cursor: pointer;
3
- overflow: hidden;
4
- border-radius: var(--nlportal-document-border-radius);
5
- }
6
-
7
- .image {
8
- height: var(--conduction-image-and-details-card-image-height);
9
- }
10
-
11
- .image > :first-child {
12
- width: 100%;
13
- height: 100%;
14
- object-fit: cover;
15
- }
16
-
17
- .content {
18
- display: flex;
19
- flex-direction: column;
20
- padding-inline-start: var(--nlportal-space-inline-lg);
21
- padding-inline-end: var(--nlportal-space-inline-lg);
22
- padding-block-start: var(--nlportal-space-block-lg);
23
- padding-block-end: var(--nlportal-space-block-lg);
24
- border: var(--nlportal-document-border, 1px solid);
25
- height: calc(
26
- 100% - var(--conduction-image-and-details-card-image-height) -
27
- var(--nlportal-space-block-lg) - var(--nlportal-space-block-lg) - 2px
28
- ); /* height = 100% - imageHeight - padding - border */
29
- }
30
-
31
- .content > *:not(:last-child) {
32
- margin-block-end: var(--nlportal-space-block-md);
33
- }
34
-
35
- .title {
36
- font-size: var(--denhaag-typography-scale-xl-font-size);
37
- font-weight: var(--conduction-image-and-details-card-title-font-weight);
38
- }
39
-
40
- .subHeader {
41
- color: var(--denhaag-color-grey-3);
42
- font-size: var(--denhaag-typography-scale-s-font-size);
43
- }
44
-
45
- .introduction {
46
- overflow: hidden;
47
- text-overflow: ellipsis;
48
- display: -webkit-box;
49
- -webkit-line-clamp: var(
50
- --conduction-image-and-details-card-introduction-lines-clamp
51
- );
52
- -webkit-box-orient: vertical;
53
- }
54
-
55
- .link {
56
- display: flex;
57
- justify-content: flex-end;
58
- margin-block-start: auto;
59
- }
@@ -1,7 +0,0 @@
1
- import { DownloadCard } from "./downloadCard/DownloadCard";
2
- import { HorizontalImageCard } from "./horizontalImageCard/HorizontalImageCard";
3
- import { ImageAndDetailsCard } from "./imageAndDetailsCard/ImageAndDetailsCard";
4
- import { RichContentCard } from "./richContentCard/RichContentCard";
5
- import { DetailsCard } from "./detailsCard/DetailsCard";
6
- import { InfoCard } from "./infoCard/InfoCard";
7
- export { DownloadCard, HorizontalImageCard, ImageAndDetailsCard, RichContentCard, DetailsCard, InfoCard };
@@ -1,7 +0,0 @@
1
- import { DownloadCard } from "./downloadCard/DownloadCard";
2
- import { HorizontalImageCard } from "./horizontalImageCard/HorizontalImageCard";
3
- import { ImageAndDetailsCard } from "./imageAndDetailsCard/ImageAndDetailsCard";
4
- import { RichContentCard } from "./richContentCard/RichContentCard";
5
- import { DetailsCard } from "./detailsCard/DetailsCard";
6
- import { InfoCard } from "./infoCard/InfoCard";
7
- export { DownloadCard, HorizontalImageCard, ImageAndDetailsCard, RichContentCard, DetailsCard, InfoCard };
@@ -1,7 +0,0 @@
1
- import * as React from "react";
2
- interface InfoCardProps {
3
- title: string;
4
- content: JSX.Element | string;
5
- }
6
- export declare const InfoCard: React.FC<InfoCardProps>;
7
- export {};
@@ -1,5 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import * as styles from "./InfoCard.module.css";
3
- export const InfoCard = ({ title, content }) => {
4
- return (_jsxs("div", { className: styles.container, children: [_jsx("span", { className: styles.title, children: title }), _jsx("div", { className: styles.content, children: content })] }));
5
- };
@@ -1,37 +0,0 @@
1
- :root {
2
- --conduction-info-card-background-color: #f2f2f2;
3
- --conduction-info-card-border-radius: 3px;
4
- --conduction-info-card-title-weight: bold;
5
- --conduction-info-card-title-font-size: 24px;
6
- --conduction-info-card-title-color: #000000;
7
- --conduction-info-card-content-color: #000000;
8
- --conduction-info-card-padding: 16px;
9
- --conduction-info-card-content-margin: 8px;
10
- }
11
-
12
- .container {
13
- background-color: var(--conduction-info-card-background-color);
14
- border-radius: var(--conduction-info-card-border-radius);
15
- padding-inline-start: var(--conduction-info-card-padding);
16
- padding-inline-end: var(--conduction-info-card-padding);
17
- padding-block-start: var(--conduction-info-card-padding);
18
- padding-block-end: var(--conduction-info-card-padding);
19
- }
20
-
21
- .container > * {
22
- display: block;
23
- }
24
-
25
- .container > *:not(:last-child) {
26
- margin-block-end: var(--conduction-info-card-content-margin);
27
- }
28
-
29
- .container > .title {
30
- font-weight: var(--conduction-info-card-title-weight);
31
- font-size: var(--conduction-info-card-title-font-size);
32
- color: var(--conduction-info-card-title-color);
33
- }
34
-
35
- .content {
36
- color: var(--conduction-info-card-content-color);
37
- }
@@ -1,19 +0,0 @@
1
- import * as React from "react";
2
- export interface RichContentCardProps {
3
- link: {
4
- label: string;
5
- href: string;
6
- };
7
- labelsWithIcon: {
8
- label: string;
9
- icon: JSX.Element;
10
- }[];
11
- tags: string[];
12
- contentLinks?: {
13
- title: string;
14
- subTitle: string;
15
- href: string;
16
- }[];
17
- linkIsExternal?: boolean;
18
- }
19
- export declare const RichContentCard: React.FC<RichContentCardProps>;
@@ -1,15 +0,0 @@
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
- import { Tag } from "../../tag/Tag";
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 }, idx) => (_jsx(LabelWithIcon, { ...{ label, icon } }, idx))) }), _jsx("div", { className: styles.tags, children: tags.map((tag, idx) => (_jsx(Tag, { ...{ tag } }, idx))) }), contentLinks && (_jsxs("div", { className: styles.contentLinks, children: [_jsx(Divider, {}), contentLinks.map(({ title, subTitle, href }, idx) => (_jsx(ContentLink, { ...{ title, subTitle, href } }, idx)))] }))] }));
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 ContentLink = ({ title, subTitle, href }) => {
14
- 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, {}) })] }));
15
- };
@@ -1,89 +0,0 @@
1
- .container {
2
- display: flex;
3
- flex-direction: column;
4
- border: var(--nlportal-document-border, 1px solid);
5
- border-radius: var(--nlportal-border-radius);
6
-
7
- padding-inline-start: var(--nlportal-space-inline-md);
8
- padding-inline-end: var(--nlportal-space-inline-md);
9
- padding-block-start: var(--nlportal-space-block-md);
10
- padding-block-end: var(--nlportal-space-block-xl);
11
- }
12
-
13
- .container > *:not(.link):not(:last-child) {
14
- margin-block-end: var(--nlportal-space-block-md);
15
- }
16
-
17
- .link {
18
- margin-block-end: var(--nlportal-space-block-xs);
19
- }
20
-
21
- .link > :first-child {
22
- display: flex;
23
- }
24
-
25
- .labelsWithIcon {
26
- display: flex;
27
- flex-wrap: wrap;
28
- }
29
-
30
- .labelsWithIcon > *:not(:last-child) {
31
- margin-inline-end: var(--nlportal-space-block-md);
32
- }
33
-
34
- .tags > *:not(:last-child) {
35
- margin-inline-end: var(--nlportal-space-inline-md);
36
- }
37
-
38
- .contentLinks > *:not(:last-child):not(hr) {
39
- margin-block-end: var(--nlportal-space-block-xs);
40
- }
41
-
42
- /* Component: LabelWithIcon */
43
- .labelWithIcon {
44
- display: flex;
45
- align-items: center;
46
- color: var(--denhaag-color-grey-3);
47
- }
48
-
49
- .labelWithIcon > .labelWithIcon_icon > svg {
50
- height: var(--conduction-rich-card-label-with-icon-icon-size);
51
- width: var(--conduction-rich-card-label-with-icon-icon-size);
52
- margin-inline-end: var(--nlportal-space-inline-xs);
53
- }
54
-
55
- .labelWithIcon > .labelWithIcon_label {
56
- font-size: var(--conduction-rich-card-label-with-icon-label-size);
57
- }
58
-
59
- /* Content Link */
60
- .contentLink {
61
- display: flex;
62
- padding-block-start: var(--nlportal-space-block-xs);
63
- padding-block-end: var(--nlportal-space-block-xs);
64
- text-decoration: none !important;
65
- }
66
-
67
- .contentLink > span {
68
- width: 100%;
69
- display: flex;
70
- justify-content: space-between;
71
- }
72
-
73
- .contentLink:hover {
74
- cursor: pointer;
75
- }
76
-
77
- .contentLink_content {
78
- display: flex;
79
- flex-direction: column;
80
- }
81
-
82
- .contentLink_title {
83
- font-size: var(--conduction-content-link-font-size);
84
- }
85
-
86
- .contentLink_subTitle {
87
- font-size: var(--conduction-content-link-font-size);
88
- color: var(--denhaag-color-grey-3);
89
- }
@@ -1,6 +0,0 @@
1
- import * as React from "react";
2
- interface ContainerProps {
3
- layoutClassName?: string;
4
- }
5
- export declare const Container: React.FC<ContainerProps>;
6
- export {};
@@ -1,4 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import * as styles from "./Container.module.css";
3
- import clsx from "clsx";
4
- export const Container = ({ children, layoutClassName }) => (_jsx("div", { className: clsx(styles.container, [layoutClassName && layoutClassName]), children: children }));
@@ -1,9 +0,0 @@
1
- :root{
2
- --condution-container-max-width: 1024px;
3
- }
4
-
5
- .container {
6
- width: 100%;
7
- margin-inline: auto;
8
- max-width: var(--condution-container-max-width);
9
- }