@conduction/components 2.2.3 → 2.2.4

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 (117) hide show
  1. package/.prettierrc +30 -30
  2. package/README.md +1 -0
  3. package/lib/components/Pagination/Pagination.d.ts +9 -9
  4. package/lib/components/Pagination/Pagination.js +12 -12
  5. package/lib/components/badgeCounter/BadgeCounter.d.ts +8 -8
  6. package/lib/components/badgeCounter/BadgeCounter.js +4 -4
  7. package/lib/components/badgeCounter/BadgeCounter.module.css +27 -27
  8. package/lib/components/card/cardHeader/CardHeader.d.ts +4 -4
  9. package/lib/components/card/cardHeader/CardHeader.js +14 -14
  10. package/lib/components/card/cardWrapper/CardWrapper.d.ts +2 -2
  11. package/lib/components/card/cardWrapper/CardWrapper.js +6 -6
  12. package/lib/components/card/detailsCard/DetailsCard.d.ts +14 -14
  13. package/lib/components/card/detailsCard/DetailsCard.js +11 -11
  14. package/lib/components/card/downloadCard/DownloadCard.d.ts +11 -11
  15. package/lib/components/card/downloadCard/DownloadCard.js +9 -9
  16. package/lib/components/card/horizontalImageCard/HorizontalImageCard.d.ts +13 -13
  17. package/lib/components/card/horizontalImageCard/HorizontalImageCard.js +10 -10
  18. package/lib/components/card/imageAndDetailsCard/ImageAndDetailsCard.d.ts +14 -14
  19. package/lib/components/card/imageAndDetailsCard/ImageAndDetailsCard.js +10 -10
  20. package/lib/components/card/index.d.ts +8 -8
  21. package/lib/components/card/index.js +8 -8
  22. package/lib/components/card/infoCard/InfoCard.d.ts +8 -8
  23. package/lib/components/card/infoCard/InfoCard.js +6 -6
  24. package/lib/components/card/infoCard/InfoCard.module.css +26 -26
  25. package/lib/components/card/richContentCard/RichContentCard.d.ts +19 -19
  26. package/lib/components/card/richContentCard/RichContentCard.js +16 -15
  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/denhaag-wrappers/breadcrumbs/Breadcrumbs.css +222 -222
  33. package/lib/components/denhaag-wrappers/breadcrumbs/Breadcrumbs.d.ts +17 -17
  34. package/lib/components/denhaag-wrappers/breadcrumbs/Breadcrumbs.js +20 -20
  35. package/lib/components/denhaag-wrappers/pagination/Pagination.css +120 -120
  36. package/lib/components/denhaag-wrappers/pagination/Pagination.d.ts +9 -9
  37. package/lib/components/denhaag-wrappers/pagination/Pagination.js +15 -15
  38. package/lib/components/editableTableRow/EditableTableRow.d.ts +14 -14
  39. package/lib/components/editableTableRow/EditableTableRow.js +31 -31
  40. package/lib/components/editableTableRow/EditableTableRow.module.css +25 -25
  41. package/lib/components/formFields/checkbox/Checkbox.module.css +7 -7
  42. package/lib/components/formFields/checkbox/checkbox.d.ts +9 -9
  43. package/lib/components/formFields/checkbox/checkbox.js +3 -3
  44. package/lib/components/formFields/createKeyValue/CreateKeyValue.d.ts +23 -23
  45. package/lib/components/formFields/createKeyValue/CreateKeyValue.js +40 -41
  46. package/lib/components/formFields/date/Date.d.ts +12 -12
  47. package/lib/components/formFields/date/Date.js +10 -10
  48. package/lib/components/formFields/date/Date.module.css +12 -12
  49. package/lib/components/formFields/errorMessage/ErrorMessage.d.ts +5 -5
  50. package/lib/components/formFields/errorMessage/ErrorMessage.js +3 -3
  51. package/lib/components/formFields/index.d.ts +7 -7
  52. package/lib/components/formFields/index.js +7 -7
  53. package/lib/components/formFields/input.d.ts +21 -21
  54. package/lib/components/formFields/input.js +12 -12
  55. package/lib/components/formFields/radio.d.ts +9 -9
  56. package/lib/components/formFields/radio.js +3 -3
  57. package/lib/components/formFields/select/select.d.ts +23 -23
  58. package/lib/components/formFields/select/select.js +58 -58
  59. package/lib/components/formFields/textarea.d.ts +9 -9
  60. package/lib/components/formFields/textarea.js +4 -4
  61. package/lib/components/formFields/types.d.ts +6 -6
  62. package/lib/components/formFields/types.js +1 -1
  63. package/lib/components/imageDivider/ImageDivider.d.ts +7 -7
  64. package/lib/components/imageDivider/ImageDivider.js +6 -6
  65. package/lib/components/imageDivider/imageDivider.module.css +5 -5
  66. package/lib/components/logo/Logo.d.ts +8 -8
  67. package/lib/components/logo/Logo.js +10 -10
  68. package/lib/components/logo/Logo.module.css +15 -15
  69. package/lib/components/metaIcon/MetaIcon.d.ts +7 -7
  70. package/lib/components/metaIcon/MetaIcon.js +3 -3
  71. package/lib/components/metaIcon/MetaIcon.module.css +29 -29
  72. package/lib/components/notificationPopUp/NotificationPopUp.d.ts +26 -26
  73. package/lib/components/notificationPopUp/NotificationPopUp.js +32 -32
  74. package/lib/components/privateRoute/PrivateRoute.d.ts +6 -6
  75. package/lib/components/privateRoute/PrivateRoute.js +15 -15
  76. package/lib/components/quoteWrapper/QuoteWrapper.d.ts +7 -7
  77. package/lib/components/quoteWrapper/QuoteWrapper.js +5 -5
  78. package/lib/components/quoteWrapper/QuoteWrapper.module.css +12 -12
  79. package/lib/components/tabs/Tabs.d.ts +14 -14
  80. package/lib/components/tabs/Tabs.js +7 -7
  81. package/lib/components/tag/Tag.d.ts +10 -10
  82. package/lib/components/tag/Tag.js +6 -6
  83. package/lib/components/tag/Tag.module.css +44 -44
  84. package/lib/components/temp/Temp.d.ts +5 -0
  85. package/lib/components/temp/Temp.js +14 -0
  86. package/lib/components/toolTip/ToolTip.d.ts +13 -9
  87. package/lib/components/toolTip/ToolTip.js +13 -8
  88. package/lib/components/toolTip/ToolTip.module.css +26 -10
  89. package/lib/components/topNav/index.d.ts +3 -3
  90. package/lib/components/topNav/index.js +3 -3
  91. package/lib/components/topNav/primaryTopNav/PrimaryTopNav.d.ts +20 -20
  92. package/lib/components/topNav/primaryTopNav/PrimaryTopNav.js +17 -17
  93. package/lib/components/topNav/secondaryTopNav/SecondaryTopNav.d.ts +12 -12
  94. package/lib/components/topNav/secondaryTopNav/SecondaryTopNav.js +7 -7
  95. package/lib/index.d.ts +26 -26
  96. package/lib/index.js +19 -19
  97. package/package.json +3 -8
  98. package/src/components/badgeCounter/BadgeCounter.module.css +27 -27
  99. package/src/components/card/infoCard/InfoCard.module.css +26 -26
  100. package/src/components/codeBlock/CodeBlock.module.css +6 -6
  101. package/src/components/denhaag-wrappers/breadcrumbs/Breadcrumbs.css +222 -222
  102. package/src/components/formFields/checkbox/Checkbox.module.css +7 -7
  103. package/src/components/formFields/createKeyValue/CreateKeyValue.tsx +11 -16
  104. package/src/components/formFields/date/Date.module.css +12 -12
  105. package/src/components/imageDivider/imageDivider.module.css +5 -5
  106. package/src/components/logo/Logo.module.css +15 -15
  107. package/src/components/metaIcon/MetaIcon.module.css +29 -29
  108. package/src/components/quoteWrapper/QuoteWrapper.module.css +12 -12
  109. package/src/components/tag/Tag.module.css +44 -44
  110. package/src/components/toolTip/ToolTip.module.css +26 -10
  111. package/src/components/toolTip/ToolTip.tsx +11 -15
  112. package/src/components/topNav/index.ts +4 -4
  113. package/src/custom.d.ts +4 -4
  114. package/lib/components/statusSteps/StatusSteps.d.ts +0 -13
  115. package/lib/components/statusSteps/StatusSteps.js +0 -5
  116. package/lib/custom.d copy.d.ts +0 -5
  117. package/lib/custom.d copy.js +0 -1
@@ -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,17 +1,33 @@
1
1
  :root {
2
- --conduction-tooltip-max-width: 500px;
3
- }
2
+ --conduction-tooltip-padding-inline-start: 0px;
3
+ --conduction-tooltip-padding-inline-end: 0px;
4
+ --conduction-tooltip-padding-block-start: 0px;
5
+ --conduction-tooltip-padding-block-end: 0px;
6
+
7
+ --conduction-tooltip-background-color: var(--skeleton-color-black);
8
+ --conduction-tooltip-color: var(--skeleton-color-white);
9
+
10
+ --conduction-tooltip-border-width: 0px;
11
+ --conduction-tooltip-border-color: unset;
12
+ --conduction-tooltip-border-style: unset;
13
+ --conduction-tooltip-border-radius: 0px;
4
14
 
5
- .wrapper {
6
- display: inline-block;
7
- position: relative;
15
+ --conduction-tooltip-opacity: 1;
8
16
  }
9
17
 
10
18
  .tooltip {
11
- max-width: var(--conduction-tooltip-max-width);
12
- word-break: break-word;
13
- }
19
+ padding-inline-start: var(--conduction-tooltip-padding-inline-start);
20
+ padding-inline-end: var(--conduction-tooltip-padding-inline-end);
21
+ padding-block-start: var(--conduction-tooltip-padding-block-start);
22
+ padding-block-end: var(--conduction-tooltip-padding-block-end);
23
+
24
+ background-color: var(--conduction-tooltip-background-color) !important;
25
+ color: var(--conduction-tooltip-color) !important;
26
+
27
+ border-width: var(--conductino-tooltip-border-width);
28
+ border-color: var(--conduction-tooltip-border-color);
29
+ border-style: var(--conduction-tooltip-border-style);
30
+ border-radius: var(--conduction-tooltip-border-radius) !important;
14
31
 
15
- .tooltip::before {
16
- all: unset !important;
32
+ opacity: var(--conduction-tooltip-opacity);
17
33
  }
@@ -1,23 +1,19 @@
1
- import clsx from "clsx";
2
- import _ from "lodash";
3
1
  import * as React from "react";
4
- import ReactTooltip from "react-tooltip";
5
2
  import * as styles from "./ToolTip.module.css";
3
+ import { Tooltip } from "react-tooltip";
6
4
 
7
5
  interface ToolTipProps {
8
- children: React.ReactNode;
9
- tooltip: string;
10
- layoutClassName?: string;
6
+ id: string;
11
7
  }
12
8
 
13
- export const ToolTip = ({ children, layoutClassName, tooltip }: React.PropsWithChildren<ToolTipProps>): JSX.Element => {
14
- return (
15
- <div className={clsx(styles.wrapper, layoutClassName && layoutClassName)}>
16
- <div data-tip={tooltip}>{children}</div>
9
+ /**
10
+ * Implement this ToolTip only once, in a high-level wrapper.
11
+ * Use the ToolTip anywhere, in any element, by setting the following data props:
12
+ *
13
+ * data-tooltip-id="this-is-the-id-set-in-ToolTipProps"
14
+ * data-tooltip-content="Hello world!"
15
+ */
17
16
 
18
- <ReactTooltip place={"top"} type={"dark"} effect={"solid"} className={styles.tooltip} />
19
- </div>
20
- );
17
+ export const ToolTip: React.FC<ToolTipProps> = ({ id }) => {
18
+ return <Tooltip className={styles.tooltip} {...{ id }} />;
21
19
  };
22
-
23
- export { ReactTooltip };
@@ -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 };
package/src/custom.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- declare module "*.svg";
2
- declare module "*.jpg";
3
- declare module "*.png";
4
- declare module "*.module.css";
1
+ declare module "*.svg";
2
+ declare module "*.jpg";
3
+ declare module "*.png";
4
+ declare module "*.module.css";
@@ -1,13 +0,0 @@
1
- /// <reference types="react" />
2
- interface IStatusStep {
3
- title: string;
4
- checked?: boolean;
5
- current?: boolean;
6
- expanded?: boolean;
7
- subSteps?: string[];
8
- }
9
- interface StatusStepsProps {
10
- steps: IStatusStep[];
11
- }
12
- export declare const StatusSteps: ({ steps }: StatusStepsProps) => JSX.Element;
13
- export {};
@@ -1,5 +0,0 @@
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,5 +0,0 @@
1
- declare module "*.svg";
2
- declare module "*.jpg";
3
- declare module "*.png";
4
- declare module "*.module.css";
5
- declare module "@utrecht/component-library-react/dist/css-module";
@@ -1 +0,0 @@
1
- "use strict";