@conduction/components 1.0.26 → 1.0.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (99) 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/index.ts +4 -0
  17. package/src/components/topNav/primaryTopNav/PrimaryTopNav.module.css +60 -0
  18. package/src/components/topNav/primaryTopNav/PrimaryTopNav.tsx +52 -0
  19. package/src/components/topNav/secondaryTopNav/SecondaryTopNav.module.css +43 -0
  20. package/src/components/topNav/{TopNav.tsx → secondaryTopNav/SecondaryTopNav.tsx} +1 -19
  21. package/src/index.ts +1 -1
  22. package/lib/components/card/detailsCard/DetailsCard.d.ts +0 -14
  23. package/lib/components/card/detailsCard/DetailsCard.js +0 -10
  24. package/lib/components/card/detailsCard/DetailsCard.module.css +0 -48
  25. package/lib/components/card/downloadCard/DownloadCard.d.ts +0 -10
  26. package/lib/components/card/downloadCard/DownloadCard.js +0 -8
  27. package/lib/components/card/downloadCard/DownloadCard.module.css +0 -23
  28. package/lib/components/card/horizontalImageCard/HorizontalImageCard.d.ts +0 -13
  29. package/lib/components/card/horizontalImageCard/HorizontalImageCard.js +0 -9
  30. package/lib/components/card/horizontalImageCard/HorizontalImageCard.module.css +0 -26
  31. package/lib/components/card/imageAndDetailsCard/ImageAndDetailsCard.d.ts +0 -14
  32. package/lib/components/card/imageAndDetailsCard/ImageAndDetailsCard.js +0 -9
  33. package/lib/components/card/imageAndDetailsCard/ImageAndDetailsCard.module.css +0 -59
  34. package/lib/components/card/index.d.ts +0 -7
  35. package/lib/components/card/index.js +0 -7
  36. package/lib/components/card/infoCard/InfoCard.d.ts +0 -7
  37. package/lib/components/card/infoCard/InfoCard.js +0 -5
  38. package/lib/components/card/infoCard/InfoCard.module.css +0 -37
  39. package/lib/components/card/richContentCard/RichContentCard.d.ts +0 -19
  40. package/lib/components/card/richContentCard/RichContentCard.js +0 -15
  41. package/lib/components/card/richContentCard/RichContentCard.module.css +0 -89
  42. package/lib/components/container/Container.d.ts +0 -6
  43. package/lib/components/container/Container.js +0 -4
  44. package/lib/components/container/Container.module.css +0 -9
  45. package/lib/components/denhaag-wrappers/breadcrumbs/Breadcrumbs.css +0 -222
  46. package/lib/components/denhaag-wrappers/breadcrumbs/Breadcrumbs.d.ts +0 -17
  47. package/lib/components/denhaag-wrappers/breadcrumbs/Breadcrumbs.js +0 -20
  48. package/lib/components/denhaag-wrappers/pagination/Pagination.css +0 -120
  49. package/lib/components/denhaag-wrappers/pagination/Pagination.d.ts +0 -9
  50. package/lib/components/denhaag-wrappers/pagination/Pagination.js +0 -15
  51. package/lib/components/editableTableRow/EditableTableRow.d.ts +0 -14
  52. package/lib/components/editableTableRow/EditableTableRow.js +0 -31
  53. package/lib/components/editableTableRow/EditableTableRow.module.css +0 -25
  54. package/lib/components/formFields/checkbox.d.ts +0 -7
  55. package/lib/components/formFields/checkbox.js +0 -3
  56. package/lib/components/formFields/index.d.ts +0 -6
  57. package/lib/components/formFields/index.js +0 -6
  58. package/lib/components/formFields/input.d.ts +0 -19
  59. package/lib/components/formFields/input.js +0 -13
  60. package/lib/components/formFields/radio.d.ts +0 -9
  61. package/lib/components/formFields/radio.js +0 -3
  62. package/lib/components/formFields/select/select.d.ts +0 -16
  63. package/lib/components/formFields/select/select.js +0 -14
  64. package/lib/components/formFields/select/select.module.css +0 -65
  65. package/lib/components/formFields/select.d.ts +0 -17
  66. package/lib/components/formFields/select.js +0 -14
  67. package/lib/components/formFields/textarea.d.ts +0 -8
  68. package/lib/components/formFields/textarea.js +0 -3
  69. package/lib/components/formFields/types.d.ts +0 -6
  70. package/lib/components/formFields/types.js +0 -1
  71. package/lib/components/imageDivider/ImageDivider.d.ts +0 -7
  72. package/lib/components/imageDivider/ImageDivider.js +0 -6
  73. package/lib/components/imageDivider/imageDivider.module.css +0 -5
  74. package/lib/components/logo/Logo.d.ts +0 -8
  75. package/lib/components/logo/Logo.js +0 -10
  76. package/lib/components/logo/Logo.module.css +0 -15
  77. package/lib/components/metaIcon/MetaIcon.d.ts +0 -7
  78. package/lib/components/metaIcon/MetaIcon.js +0 -3
  79. package/lib/components/metaIcon/MetaIcon.module.css +0 -17
  80. package/lib/components/notificationPopUp/NotificationPopUp.d.ts +0 -22
  81. package/lib/components/notificationPopUp/NotificationPopUp.js +0 -31
  82. package/lib/components/notificationPopUp/NotificationPopUp.module.css +0 -60
  83. package/lib/components/privateRoute/PrivateRoute.d.ts +0 -6
  84. package/lib/components/privateRoute/PrivateRoute.js +0 -15
  85. package/lib/components/quoteWrapper/QuoteWrapper.d.ts +0 -7
  86. package/lib/components/quoteWrapper/QuoteWrapper.js +0 -5
  87. package/lib/components/quoteWrapper/QuoteWrapper.module.css +0 -12
  88. package/lib/components/statusSteps/StatusSteps.d.ts +0 -13
  89. package/lib/components/statusSteps/StatusSteps.js +0 -5
  90. package/lib/components/tag/Tag.d.ts +0 -6
  91. package/lib/components/tag/Tag.js +0 -3
  92. package/lib/components/tag/Tag.module.css +0 -9
  93. package/lib/components/topNav/TopNav.d.ts +0 -12
  94. package/lib/components/topNav/TopNav.js +0 -10
  95. package/lib/components/topNav/TopNav.module.css +0 -71
  96. package/lib/index.d.ts +0 -24
  97. package/lib/index.js +0 -17
  98. package/src/components/topNav/TopNav.js +0 -10
  99. package/src/components/topNav/TopNav.module.css +0 -71
@@ -0,0 +1,60 @@
1
+ :root {
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
+ }
8
+
9
+ .primary:hover {
10
+ cursor: pointer;
11
+ }
12
+
13
+ .ul {
14
+ margin: unset;
15
+ display: flex;
16
+ padding-inline-start: unset;
17
+ align-items: center;
18
+ }
19
+
20
+ .li {
21
+ list-style-type: none;
22
+ display: block;
23
+ position: relative;
24
+ }
25
+
26
+ .primary {
27
+ font-weight: 500;
28
+ width: fit-content;
29
+ background-color: var(--conduction-primary-top-nav-background-color);
30
+ }
31
+
32
+ .primary .link {
33
+ display: block;
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
+ }
40
+
41
+ .primary .li:hover {
42
+ background-color: var(--conduction-primary-top-nav-background-color-hover);
43
+ }
44
+
45
+ .primary .li:hover .dropdown {
46
+ display: block;
47
+ z-index: 1;
48
+ }
49
+
50
+ .dropdown {
51
+ left: 0;
52
+ padding: 0;
53
+ width: 100%;
54
+ display: none;
55
+ position: absolute;
56
+ list-style-type: none;
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
+ }
@@ -0,0 +1,52 @@
1
+ import * as React from "react";
2
+ import { Link } from "@gemeente-denhaag/components-react";
3
+ import * as styles from "./PrimaryTopNav.module.css";
4
+ import clsx from "clsx";
5
+
6
+ interface ITopNavItem {
7
+ label: string;
8
+ icon?: JSX.Element;
9
+ handleClick?: () => any;
10
+ subItems?: {
11
+ label: string;
12
+ icon?: JSX.Element;
13
+ handleClick?: () => any;
14
+ }[];
15
+ }
16
+
17
+ export interface TopNavProps {
18
+ items: ITopNavItem[];
19
+ layoutClassName?: string;
20
+ }
21
+
22
+ export const PrimaryTopNav: React.FC<TopNavProps> = ({ items, layoutClassName }) => {
23
+ return (
24
+ <div className={clsx(styles.primary, layoutClassName && layoutClassName)}>
25
+ <nav className={styles.primary}>
26
+ <ul className={styles.ul}>
27
+ {items.map(({ label, icon, handleClick, subItems }, idx) => (
28
+ <li className={styles.li} key={idx}>
29
+ <div onClick={handleClick}>
30
+ <Link className={styles.link} icon={icon} iconAlign="start">
31
+ {label}
32
+ </Link>
33
+ </div>
34
+
35
+ {subItems && (
36
+ <ul className={styles.dropdown}>
37
+ {subItems.map(({ label, icon, handleClick }, idx) => (
38
+ <li key={idx} className={styles.li} onClick={handleClick}>
39
+ <Link className={styles.link} icon={icon} iconAlign="start">
40
+ {label}
41
+ </Link>
42
+ </li>
43
+ ))}
44
+ </ul>
45
+ )}
46
+ </li>
47
+ ))}
48
+ </ul>
49
+ </nav>
50
+ </div>
51
+ );
52
+ };
@@ -0,0 +1,43 @@
1
+ :root {
2
+ --conduction-secondary-top-nav-item-padding: var(--skeleton-size-md);
3
+ --conduction-secondary-top-nav-font-size: var(--skeleton-font-size-md);
4
+ --conduction-secondary-top-nav-color: var(--skeleton-color-white);
5
+ --conduction-secondary-top-nav-background-color: var(--skeleton-color-secondary-5);
6
+ --conduction-secondary-top-nav-background-color-hover: var(--skeleton-color-secondary-3);
7
+ --conduction-secondary-top-nav-font-weight: var(--skeleton-font-weight-light);
8
+ }
9
+
10
+ .secondary:hover {
11
+ cursor: pointer;
12
+ }
13
+
14
+ .ul {
15
+ margin: unset;
16
+ display: flex;
17
+ padding-inline-start: unset;
18
+ align-items: center;
19
+ }
20
+
21
+ .li {
22
+ list-style-type: none;
23
+ display: block;
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
+ }
29
+
30
+ .secondary {
31
+ font-weight: var(--conduction-secondary-top-nav-font-weight);
32
+ width: fit-content;
33
+ font-size: var(--conduction-secondary-top-nav-font-size);
34
+ background-color: var(--conduction-secondary-top-nav-background-color);
35
+ }
36
+
37
+ .secondary .link {
38
+ color: var(--conduction-secondary-top-nav-color);
39
+ }
40
+
41
+ .secondary .li:hover {
42
+ background-color: var(--conduction-secondary-top-nav-background-color-hover);
43
+ }
@@ -1,6 +1,6 @@
1
1
  import * as React from "react";
2
+ import * as styles from "./SecondaryTopnav.module.css";
2
3
  import { Link } from "@gemeente-denhaag/components-react";
3
- import * as styles from "./TopNav.module.css";
4
4
  import clsx from "clsx";
5
5
 
6
6
  interface TopNavProps {
@@ -8,24 +8,6 @@ interface TopNavProps {
8
8
  layoutClassName?: string;
9
9
  }
10
10
 
11
- export const PrimaryTopNav: React.FC<TopNavProps> = ({ items, layoutClassName }) => {
12
- return (
13
- <div className={clsx(styles.primary, layoutClassName && layoutClassName)}>
14
- <nav className={styles.primary}>
15
- <ul className={styles.ul}>
16
- {items.map(({ label, icon, handleClick }, idx) => (
17
- <li className={styles.li} key={idx} onClick={handleClick}>
18
- <Link className={styles.link} icon={icon} iconAlign="start">
19
- {label}
20
- </Link>
21
- </li>
22
- ))}
23
- </ul>
24
- </nav>
25
- </div>
26
- );
27
- };
28
-
29
11
  export const SecondaryTopNav: React.FC<TopNavProps> = ({ items, layoutClassName }) => {
30
12
  return (
31
13
  <div className={clsx(styles.secondary, layoutClassName && layoutClassName)}>
package/src/index.ts CHANGED
@@ -27,7 +27,7 @@ import { AuthenticatedLogo, UnauthenticatedLogo } from "./components/logo/Logo";
27
27
  import { MetaIcon } from "./components/metaIcon/MetaIcon";
28
28
  import { PrivateRoute } from "./components/privateRoute/PrivateRoute";
29
29
  import { StatusSteps } from "./components/statusSteps/StatusSteps";
30
- import { PrimaryTopNav, SecondaryTopNav } from "./components/topNav/TopNav";
30
+ import { PrimaryTopNav, SecondaryTopNav } from "./components/topNav";
31
31
  import { Tag } from "./components/tag/Tag";
32
32
  import {
33
33
  NotificationPopUpController,
@@ -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 {};