@conduction/components 2.2.0 → 2.2.1

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 (128) hide show
  1. package/.github/workflows/github-actions.yml +4 -2
  2. package/.prettierrc +30 -30
  3. package/README.md +1 -0
  4. package/lib/components/Pagination/Pagination.d.ts +9 -9
  5. package/lib/components/Pagination/Pagination.js +12 -12
  6. package/lib/components/badgeCounter/BadgeCounter.d.ts +8 -8
  7. package/lib/components/badgeCounter/BadgeCounter.js +4 -4
  8. package/lib/components/badgeCounter/BadgeCounter.module.css +27 -27
  9. package/lib/components/card/cardHeader/CardHeader.d.ts +4 -4
  10. package/lib/components/card/cardHeader/CardHeader.js +14 -14
  11. package/lib/components/card/cardWrapper/CardWrapper.d.ts +2 -2
  12. package/lib/components/card/cardWrapper/CardWrapper.js +6 -6
  13. package/lib/components/card/detailsCard/DetailsCard.d.ts +14 -14
  14. package/lib/components/card/detailsCard/DetailsCard.js +11 -11
  15. package/lib/components/card/downloadCard/DownloadCard.d.ts +11 -11
  16. package/lib/components/card/downloadCard/DownloadCard.js +9 -9
  17. package/lib/components/card/horizontalImageCard/HorizontalImageCard.d.ts +13 -13
  18. package/lib/components/card/horizontalImageCard/HorizontalImageCard.js +10 -9
  19. package/lib/components/card/imageAndDetailsCard/ImageAndDetailsCard.d.ts +14 -14
  20. package/lib/components/card/imageAndDetailsCard/ImageAndDetailsCard.js +10 -10
  21. package/lib/components/card/index.d.ts +8 -9
  22. package/lib/components/card/index.js +8 -9
  23. package/lib/components/card/infoCard/InfoCard.d.ts +8 -8
  24. package/lib/components/card/infoCard/InfoCard.js +6 -6
  25. package/lib/components/card/infoCard/InfoCard.module.css +26 -26
  26. package/lib/components/card/richContentCard/RichContentCard.d.ts +19 -19
  27. package/lib/components/card/richContentCard/RichContentCard.js +16 -15
  28. package/lib/components/codeBlock/CodeBlock.d.ts +6 -6
  29. package/lib/components/codeBlock/CodeBlock.js +3 -3
  30. package/lib/components/codeBlock/CodeBlock.module.css +6 -6
  31. package/lib/components/container/Container.d.ts +6 -6
  32. package/lib/components/container/Container.js +4 -4
  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 +23 -23
  46. package/lib/components/formFields/createKeyValue/CreateKeyValue.js +42 -42
  47. package/lib/components/formFields/date/Date.d.ts +12 -12
  48. package/lib/components/formFields/date/Date.js +10 -10
  49. package/lib/components/formFields/date/Date.module.css +12 -12
  50. package/lib/components/formFields/errorMessage/ErrorMessage.d.ts +5 -5
  51. package/lib/components/formFields/errorMessage/ErrorMessage.js +3 -3
  52. package/lib/components/formFields/index.d.ts +7 -7
  53. package/lib/components/formFields/index.js +7 -7
  54. package/lib/components/formFields/input.d.ts +21 -21
  55. package/lib/components/formFields/input.js +12 -12
  56. package/lib/components/formFields/radio.d.ts +9 -9
  57. package/lib/components/formFields/radio.js +3 -3
  58. package/lib/components/formFields/select/select.d.ts +23 -23
  59. package/lib/components/formFields/select/select.js +58 -58
  60. package/lib/components/formFields/textarea.d.ts +9 -9
  61. package/lib/components/formFields/textarea.js +4 -4
  62. package/lib/components/formFields/types.d.ts +6 -6
  63. package/lib/components/formFields/types.js +1 -1
  64. package/lib/components/imageDivider/ImageDivider.d.ts +7 -7
  65. package/lib/components/imageDivider/ImageDivider.js +6 -6
  66. package/lib/components/imageDivider/imageDivider.module.css +5 -5
  67. package/lib/components/logo/Logo.d.ts +8 -8
  68. package/lib/components/logo/Logo.js +10 -10
  69. package/lib/components/logo/Logo.module.css +15 -15
  70. package/lib/components/metaIcon/MetaIcon.d.ts +7 -7
  71. package/lib/components/metaIcon/MetaIcon.js +3 -3
  72. package/lib/components/metaIcon/MetaIcon.module.css +29 -29
  73. package/lib/components/notificationPopUp/NotificationPopUp.d.ts +26 -26
  74. package/lib/components/notificationPopUp/NotificationPopUp.js +33 -32
  75. package/lib/components/privateRoute/PrivateRoute.d.ts +6 -6
  76. package/lib/components/privateRoute/PrivateRoute.js +15 -15
  77. package/lib/components/quoteWrapper/QuoteWrapper.d.ts +7 -7
  78. package/lib/components/quoteWrapper/QuoteWrapper.js +5 -5
  79. package/lib/components/quoteWrapper/QuoteWrapper.module.css +12 -12
  80. package/lib/components/tag/Tag.d.ts +10 -10
  81. package/lib/components/tag/Tag.js +6 -6
  82. package/lib/components/tag/Tag.module.css +44 -44
  83. package/lib/components/toolTip/ToolTip.d.ts +9 -9
  84. package/lib/components/toolTip/ToolTip.js +8 -8
  85. package/lib/components/topNav/index.d.ts +3 -3
  86. package/lib/components/topNav/index.js +3 -3
  87. package/lib/components/topNav/primaryTopNav/PrimaryTopNav.d.ts +20 -20
  88. package/lib/components/topNav/primaryTopNav/PrimaryTopNav.js +17 -17
  89. package/lib/components/topNav/secondaryTopNav/SecondaryTopNav.d.ts +12 -12
  90. package/lib/components/topNav/secondaryTopNav/SecondaryTopNav.js +7 -7
  91. package/lib/index.d.ts +25 -25
  92. package/lib/index.js +18 -18
  93. package/package.json +1 -2
  94. package/src/components/badgeCounter/BadgeCounter.module.css +27 -27
  95. package/src/components/card/horizontalImageCard/HorizontalImageCard.tsx +3 -2
  96. package/src/components/card/index.js +5 -5
  97. package/src/components/card/index.tsx +0 -2
  98. package/src/components/card/infoCard/InfoCard.module.css +26 -26
  99. package/src/components/codeBlock/CodeBlock.module.css +6 -6
  100. package/src/components/container/Container.js +3 -3
  101. package/src/components/denhaag-wrappers/breadcrumbs/Breadcrumbs.css +222 -222
  102. package/src/components/denhaag-wrappers/breadcrumbs/Breadcrumbs.js +84 -84
  103. package/src/components/formFields/checkbox/Checkbox.module.css +7 -7
  104. package/src/components/formFields/date/Date.module.css +12 -12
  105. package/src/components/formFields/index.js +4 -4
  106. package/src/components/formFields/textarea.js +3 -3
  107. package/src/components/formFields/types.js +1 -1
  108. package/src/components/imageDivider/ImageDivider.js +6 -6
  109. package/src/components/imageDivider/imageDivider.module.css +5 -5
  110. package/src/components/logo/Logo.js +10 -10
  111. package/src/components/logo/Logo.module.css +15 -15
  112. package/src/components/metaIcon/MetaIcon.js +3 -3
  113. package/src/components/metaIcon/MetaIcon.module.css +29 -29
  114. package/src/components/notificationPopUp/NotificationPopUp.tsx +4 -3
  115. package/src/components/privateRoute/PrivateRoute.js +15 -15
  116. package/src/components/quoteWrapper/QuoteWrapper.module.css +12 -12
  117. package/src/components/tag/Tag.module.css +44 -44
  118. package/src/components/topNav/index.ts +4 -4
  119. package/src/custom.d.ts +4 -4
  120. package/src/index.ts +1 -9
  121. package/.github/workflows/npm-publish.yml +0 -39
  122. package/lib/components/statusSteps/StatusSteps.d.ts +0 -13
  123. package/lib/components/statusSteps/StatusSteps.js +0 -5
  124. package/lib/custom.d copy.d.ts +0 -5
  125. package/lib/custom.d copy.js +0 -1
  126. package/src/components/card/richContentCard/RichContentCard.js +0 -18
  127. package/src/components/card/richContentCard/RichContentCard.module.css +0 -103
  128. package/src/components/card/richContentCard/RichContentCard.tsx +0 -99
@@ -1,99 +0,0 @@
1
- import * as React from "react";
2
- import * as styles from "./RichContentCard.module.css";
3
- import { Link } from "@utrecht/component-library-react/dist/css-module";
4
- import { navigate } from "gatsby";
5
- import { ExternalLinkIcon, ArrowRightIcon } from "@gemeente-denhaag/icons";
6
- import { Tag } from "../../tag/Tag";
7
-
8
- export interface RichContentCardProps {
9
- link: {
10
- label: string;
11
- href: string;
12
- };
13
- labelsWithIcon: {
14
- label: string;
15
- icon: JSX.Element;
16
- }[];
17
- tags: string[];
18
- contentLinks?: {
19
- title: string;
20
- subTitle: string;
21
- href: string;
22
- }[];
23
- linkIsExternal?: boolean;
24
- }
25
-
26
- export const RichContentCard = ({
27
- link,
28
- labelsWithIcon,
29
- tags,
30
- contentLinks,
31
- linkIsExternal,
32
- }: RichContentCardProps): JSX.Element => {
33
- return (
34
- <div className={styles.container}>
35
- <div className={styles.linkContainer} onClick={() => navigate(link.href)}>
36
- <Link className={styles.link}>
37
- {linkIsExternal ? <ExternalLinkIcon /> : <ArrowRightIcon />}
38
- {link.label}
39
- </Link>
40
- </div>
41
-
42
- <div className={styles.labelsWithIcon}>
43
- {labelsWithIcon.map(({ label, icon }, idx) => (
44
- <LabelWithIcon key={idx} {...{ label, icon }} />
45
- ))}
46
- </div>
47
-
48
- <div className={styles.tags}>
49
- {tags.map((tag, idx) => (
50
- <Tag key={idx} label={tag} />
51
- ))}
52
- </div>
53
-
54
- {contentLinks && (
55
- <div className={styles.contentLinks}>
56
- <hr className={styles.divider} />
57
- {contentLinks.map(({ title, subTitle, href }, idx) => (
58
- <ContentLink key={idx} {...{ title, subTitle, href }} />
59
- ))}
60
- </div>
61
- )}
62
- </div>
63
- );
64
- };
65
-
66
- interface LabelWithIconProps {
67
- label: string;
68
- icon: JSX.Element;
69
- }
70
-
71
- const LabelWithIcon = ({ label, icon }: LabelWithIconProps): JSX.Element => {
72
- return (
73
- <div className={styles.labelWithIcon}>
74
- <span className={styles.labelWithIcon_icon}>{icon}</span>
75
- <span className={styles.labelWithIcon_label}>{label}</span>
76
- </div>
77
- );
78
- };
79
-
80
- interface ContentLinkProps {
81
- title: string;
82
- subTitle: string;
83
- href: string;
84
- }
85
-
86
- const ContentLink = ({ title, subTitle, href }: ContentLinkProps): JSX.Element => {
87
- return (
88
- <Link className={styles.contentLink}>
89
- <div className={styles.contentLink_content}>
90
- <span className={styles.contentLink_title}>{title}</span>
91
- <span className={styles.contentLink_subTitle}>{subTitle}</span>
92
- </div>
93
-
94
- <div>
95
- <ArrowRightIcon />
96
- </div>
97
- </Link>
98
- );
99
- };