@conduction/components 2.2.16 → 2.2.18

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 (133) hide show
  1. package/.prettierrc +30 -30
  2. package/README.md +6 -0
  3. package/lib/components/Pagination/Pagination.d.ts +14 -9
  4. package/lib/components/Pagination/Pagination.js +12 -12
  5. package/lib/components/Pagination/Pagination.module.css +1 -1
  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 -10
  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 -8
  22. package/lib/components/card/index.js +8 -8
  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 +40 -40
  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 +22 -22
  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 +24 -24
  59. package/lib/components/formFields/select/select.js +74 -110
  60. package/lib/components/formFields/select/select.module.css +5 -0
  61. package/lib/components/formFields/textarea.d.ts +10 -10
  62. package/lib/components/formFields/textarea.js +4 -4
  63. package/lib/components/formFields/types.d.ts +6 -6
  64. package/lib/components/formFields/types.js +1 -1
  65. package/lib/components/horizontalOverflowWrapper/HorizontalOverflowWrapper.d.ts +10 -0
  66. package/lib/components/horizontalOverflowWrapper/HorizontalOverflowWrapper.js +36 -0
  67. package/lib/components/horizontalOverflowWrapper/HorizontalOverflowWrapper.module.css +41 -0
  68. package/lib/components/imageDivider/ImageDivider.d.ts +7 -7
  69. package/lib/components/imageDivider/ImageDivider.js +6 -6
  70. package/lib/components/imageDivider/imageDivider.module.css +5 -5
  71. package/lib/components/logo/Logo.d.ts +8 -8
  72. package/lib/components/logo/Logo.js +10 -10
  73. package/lib/components/logo/Logo.module.css +15 -15
  74. package/lib/components/metaIcon/MetaIcon.d.ts +7 -7
  75. package/lib/components/metaIcon/MetaIcon.js +3 -3
  76. package/lib/components/metaIcon/MetaIcon.module.css +29 -29
  77. package/lib/components/notificationPopUp/NotificationPopUp.d.ts +26 -26
  78. package/lib/components/notificationPopUp/NotificationPopUp.js +32 -32
  79. package/lib/components/privateRoute/PrivateRoute.d.ts +6 -6
  80. package/lib/components/privateRoute/PrivateRoute.js +15 -15
  81. package/lib/components/quoteWrapper/QuoteWrapper.d.ts +7 -7
  82. package/lib/components/quoteWrapper/QuoteWrapper.js +5 -5
  83. package/lib/components/quoteWrapper/QuoteWrapper.module.css +12 -12
  84. package/lib/components/tableWrapper/TableWrapper.d.ts +4 -4
  85. package/lib/components/tableWrapper/TableWrapper.js +30 -30
  86. package/lib/components/tabs/Tabs.d.ts +5 -5
  87. package/lib/components/tabs/Tabs.js +49 -43
  88. package/lib/components/tag/Tag.d.ts +10 -10
  89. package/lib/components/tag/Tag.js +6 -6
  90. package/lib/components/tag/Tag.module.css +44 -44
  91. package/lib/components/temp/Temp.d.ts +5 -0
  92. package/lib/components/temp/Temp.js +14 -0
  93. package/lib/components/toolTip/ToolTip.d.ts +14 -14
  94. package/lib/components/toolTip/ToolTip.js +14 -14
  95. package/lib/components/topNav/index.d.ts +3 -3
  96. package/lib/components/topNav/index.js +3 -3
  97. package/lib/components/topNav/primaryTopNav/PrimaryTopNav.d.ts +20 -20
  98. package/lib/components/topNav/primaryTopNav/PrimaryTopNav.js +34 -34
  99. package/lib/components/topNav/secondaryTopNav/SecondaryTopNav.d.ts +12 -12
  100. package/lib/components/topNav/secondaryTopNav/SecondaryTopNav.js +7 -7
  101. package/lib/index.d.ts +27 -27
  102. package/lib/index.js +20 -20
  103. package/package.json +1 -1
  104. package/src/components/Pagination/Pagination.module.css +1 -1
  105. package/src/components/Pagination/Pagination.tsx +17 -3
  106. package/src/components/badgeCounter/BadgeCounter.module.css +27 -27
  107. package/src/components/card/infoCard/InfoCard.module.css +26 -26
  108. package/src/components/codeBlock/CodeBlock.module.css +6 -6
  109. package/src/components/denhaag-wrappers/breadcrumbs/Breadcrumbs.css +222 -222
  110. package/src/components/formFields/checkbox/Checkbox.module.css +7 -7
  111. package/src/components/formFields/date/Date.module.css +12 -12
  112. package/src/components/formFields/input.tsx +1 -1
  113. package/src/components/formFields/select/select.module.css +5 -0
  114. package/src/components/formFields/select/select.tsx +29 -65
  115. package/src/components/formFields/textarea.tsx +1 -1
  116. package/src/components/horizontalOverflowWrapper/HorizontalOverflowWrapper.module.css +41 -0
  117. package/src/components/horizontalOverflowWrapper/HorizontalOverflowWrapper.tsx +80 -0
  118. package/src/components/imageDivider/imageDivider.module.css +5 -5
  119. package/src/components/logo/Logo.module.css +15 -15
  120. package/src/components/metaIcon/MetaIcon.module.css +29 -29
  121. package/src/components/quoteWrapper/QuoteWrapper.module.css +12 -12
  122. package/src/components/tabs/Tabs.tsx +10 -2
  123. package/src/components/tag/Tag.module.css +44 -44
  124. package/src/components/topNav/index.ts +4 -4
  125. package/src/custom.d.ts +4 -4
  126. package/src/index.ts +2 -2
  127. package/tsconfig.json +5 -16
  128. package/lib/components/statusSteps/StatusSteps.d.ts +0 -13
  129. package/lib/components/statusSteps/StatusSteps.js +0 -5
  130. package/lib/custom.d copy.d.ts +0 -5
  131. package/lib/custom.d copy.js +0 -1
  132. package/src/components/tableWrapper/TableWrapper.module.css +0 -67
  133. package/src/components/tableWrapper/TableWrapper.tsx +0 -56
@@ -11,7 +11,7 @@ interface ISelectProps {
11
11
  control: Control<FieldValues, any>;
12
12
  options: { label: string; value: string }[];
13
13
  name: string;
14
- ariaLabel?: string;
14
+ ariaLabel: string;
15
15
  id?: string;
16
16
  defaultValue?: any;
17
17
  disabled?: boolean;
@@ -23,10 +23,24 @@ interface ISelectProps {
23
23
 
24
24
  const selectStyles: StylesConfig = {
25
25
  menuPortal: (base) => ({ ...base, zIndex: 100 }),
26
- option: (base) => ({
26
+ option: (base, state) => ({
27
27
  ...base,
28
28
  fontFamily: `var(--conduction-input-select-list-option-font-family, ${base.fontFamily})`,
29
- backgroundColor: `var(--conduction-input-select-list-option-background-color, ${base.backgroundColor}) `,
29
+ backgroundColor: [
30
+ state.isFocused
31
+ ? `var(--conduction-input-select-list-option-focus-background-color, ${base.backgroundColor})`
32
+ : state.isSelected
33
+ ? `var(--conduction-input-select-list-option-selected-background-color, ${base.backgroundColor})`
34
+ : `var(--conduction-input-select-list-option-background-color, ${base.backgroundColor})`,
35
+ ],
36
+
37
+ color: [
38
+ state.isFocused
39
+ ? `var(--conduction-input-select-list-option-focus-color, ${base.color})`
40
+ : state.isSelected
41
+ ? `var(--conduction-input-select-list-option-selected-color, ${base.color})`
42
+ : `var(--conduction-input-select-list-option-color, ${base.color})`,
43
+ ],
30
44
 
31
45
  "&:hover": {
32
46
  backgroundColor: `var(--conduction-input-select-list-option-hover-background-color, ${base.backgroundColor})`,
@@ -41,24 +55,16 @@ const selectStyles: StylesConfig = {
41
55
  }),
42
56
  };
43
57
 
44
- const selectMultiStyles: StylesConfig = {
45
- menuPortal: (base) => ({ ...base, zIndex: 100 }),
46
- option: (base) => ({
47
- ...base,
48
- fontFamily: `var(--conduction-input-select-list-option-font-family, ${base.fontFamily})`,
49
- backgroundColor: `var(--conduction-input-select-list-option-background-color, ${base.backgroundColor}) `,
58
+ const setAttributes = (): void => {
59
+ const setRoleToPresentation = (selector: string, role: string) => {
60
+ document.querySelectorAll(selector).forEach((element) => {
61
+ if (element.getAttribute("role") !== "presentation") element.setAttribute("role", role);
62
+ });
63
+ };
50
64
 
51
- "&:hover": {
52
- backgroundColor: `var(--conduction-input-select-list-option-hover-background-color, ${base.backgroundColor})`,
53
- color: `var(--conduction-input-select-list-option-hover-color, ${base.color})`,
54
- fontFamily: `var(--conduction-input-select-list-option-hover-font-family, var(--conduction-input-select-list-option-font-family, ${base.fontFamily}))`,
55
- },
56
- }),
57
- placeholder: (base) => ({
58
- ...base,
59
- fontFamily: `var(--conduction-input-select-placeholder-font-family, var(--utrecht-form-input-placeholder-font-family, ${base.fontFamily}))`,
60
- color: `var(--conduction-input-select-placeholder-color, var(--utrecht-form-input-placeholder-color, ${base.color}) )`,
61
- }),
65
+ setRoleToPresentation('[id*="live-region"]', "presentation");
66
+ setRoleToPresentation('[class*="indicatorSeparator"]', "separator");
67
+ setRoleToPresentation('[class*="a11yText"]', "presentation");
62
68
  };
63
69
 
64
70
  export const SelectMultiple = ({
@@ -76,21 +82,7 @@ export const SelectMultiple = ({
76
82
  ariaLabel,
77
83
  }: ISelectProps & IReactHookFormProps): JSX.Element => {
78
84
  React.useEffect(() => {
79
- document.querySelectorAll('[id*="live-region"]').forEach((element: any) => {
80
- if (element?.role !== "presentation") {
81
- element.setAttribute("role", "presentation");
82
- }
83
- });
84
- document.querySelectorAll('[class*="indicatorSeparator"]').forEach((element: any) => {
85
- if (element.role !== "presentation") {
86
- element.setAttribute("role", "presentation");
87
- }
88
- });
89
- document.querySelectorAll('[class*="a11yText"]').forEach((element: any) => {
90
- if (element.role !== "presentation") {
91
- element.setAttribute("role", "presentation");
92
- }
93
- });
85
+ setAttributes();
94
86
  }, []);
95
87
  return (
96
88
  <Controller
@@ -135,21 +127,7 @@ export const SelectCreate = ({
135
127
  ariaLabel,
136
128
  }: ISelectProps & IReactHookFormProps): JSX.Element => {
137
129
  React.useEffect(() => {
138
- document.querySelectorAll('[id*="live-region"]').forEach((element: any) => {
139
- if (element.role !== "presentation") {
140
- element.setAttribute("role", "presentation");
141
- }
142
- });
143
- document.querySelectorAll('[class*="indicatorSeparator"]').forEach((element: any) => {
144
- if (element.role !== "presentation") {
145
- element.setAttribute("role", "presentation");
146
- }
147
- });
148
- document.querySelectorAll('[class*="a11yText"]').forEach((element: any) => {
149
- if (element.role !== "presentation") {
150
- element.setAttribute("role", "presentation");
151
- }
152
- });
130
+ setAttributes();
153
131
  }, []);
154
132
  return (
155
133
  <Controller
@@ -195,21 +173,7 @@ export const SelectSingle = ({
195
173
  ariaLabel,
196
174
  }: ISelectProps & IReactHookFormProps): JSX.Element => {
197
175
  React.useEffect(() => {
198
- document.querySelectorAll('[id*="live-region"]').forEach((element: any) => {
199
- if (element.role !== "presentation") {
200
- element.setAttribute("role", "presentation");
201
- }
202
- });
203
- document.querySelectorAll('[class*="indicatorSeparator"]').forEach((element: any) => {
204
- if (element.role !== "presentation") {
205
- element.setAttribute("role", "presentation");
206
- }
207
- });
208
- document.querySelectorAll('[class*="a11yText"]').forEach((element: any) => {
209
- if (element.role !== "presentation") {
210
- element.setAttribute("role", "presentation");
211
- }
212
- });
176
+ setAttributes();
213
177
  }, []);
214
178
  return (
215
179
  <Controller
@@ -4,7 +4,7 @@ import { Textarea as UtrechtTextarea } from "@utrecht/component-library-react/di
4
4
 
5
5
  export interface ITextAreaProps {
6
6
  name: string;
7
- ariaLabel?: string;
7
+ ariaLabel: string;
8
8
  disabled?: boolean;
9
9
  defaultValue?: string;
10
10
  hideErrorMessage?: boolean;
@@ -0,0 +1,41 @@
1
+ :root {
2
+ --conduction-horizontal-overflow-wrapper-background-color: unset;
3
+ --conduction-horizontal-overflow-wrapper-buttons-top: 12px;
4
+
5
+ --conduction-horizontal-overflow-wrapper-margin-inline-start: 8px;
6
+ --conduction-horizontal-overflow-wrapper-margin-inline-end: 8px;
7
+ --conduction-horizontal-overflow-wrapper-margin-block-start: 8px;
8
+ --conduction-horizontal-overflow-wrapper-margin-block-end: 8px;
9
+ }
10
+
11
+ .container {
12
+ position: relative;
13
+ background-color: var(--conduction-horizontal-overflow-wrapper-background-color);
14
+ }
15
+
16
+ .wrapper {
17
+ overflow-x: scroll;
18
+ }
19
+
20
+ .scrollButton {
21
+ position: sticky;
22
+ top: var(--conduction-horizontal-overflow-wrapper-buttons-top);
23
+
24
+ margin-inline-start: var(--conduction-horizontal-overflow-wrapper-margin-inline-start);
25
+ margin-inline-end: var(--conduction-horizontal-overflow-wrapper-margin-inline-end);
26
+ margin-block-start: var(--conduction-horizontal-overflow-wrapper-margin-block-start);
27
+ margin-block-end: var(--conduction-horizontal-overflow-wrapper-margin-block-end);
28
+ }
29
+
30
+ .scrollButton.right {
31
+ left: 100%;
32
+ }
33
+
34
+ /* Hide scrollbar */
35
+ .wrapper::-webkit-scrollbar {
36
+ display: none;
37
+ }
38
+ .wrapper {
39
+ -ms-overflow-style: none;
40
+ scrollbar-width: none;
41
+ }
@@ -0,0 +1,80 @@
1
+ import * as React from "react";
2
+ import * as styles from "./HorizontalOverflowWrapper.module.css";
3
+ import clsx from "clsx";
4
+ import { Button } from "@utrecht/component-library-react/dist/css-module";
5
+ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
6
+ import { faChevronLeft, faChevronRight } from "@fortawesome/free-solid-svg-icons";
7
+
8
+ interface HorizontalOverflowWrapperProps {
9
+ children: React.ReactNode;
10
+ ariaLabels: {
11
+ scrollRightButton: string;
12
+ scrollLeftButton: string;
13
+ };
14
+ }
15
+
16
+ export const HorizontalOverflowWrapper: React.FC<HorizontalOverflowWrapperProps> = ({ children, ariaLabels }) => {
17
+ const [canScrollRight, setCanScrollRight] = React.useState<boolean>(false);
18
+ const [canScrollLeft, setCanScrollLeft] = React.useState<boolean>(false);
19
+
20
+ const wrapperRef = React.useRef<HTMLDivElement | null>(null);
21
+
22
+ const scrollRight = (): void => {
23
+ wrapperRef.current?.scrollTo({
24
+ left: wrapperRef.current.scrollLeft + wrapperRef.current.clientWidth * 0.9,
25
+ behavior: "smooth",
26
+ });
27
+ };
28
+
29
+ const scrollLeft = (): void => {
30
+ wrapperRef.current?.scrollTo({
31
+ left: wrapperRef.current.scrollLeft - wrapperRef.current.clientWidth * 0.9,
32
+ behavior: "smooth",
33
+ });
34
+ };
35
+
36
+ React.useEffect(() => {
37
+ checkScrollDirections(); // initiate available scroll directions
38
+
39
+ window.addEventListener("resize", checkScrollDirections);
40
+
41
+ return () => window.removeEventListener("resize", checkScrollDirections);
42
+ }, []);
43
+
44
+ const checkScrollDirections = (): void => {
45
+ if (!wrapperRef.current) return;
46
+
47
+ setCanScrollRight(wrapperRef.current.scrollLeft + wrapperRef.current.clientWidth < wrapperRef.current.scrollWidth);
48
+ setCanScrollLeft(wrapperRef.current.scrollLeft > 0);
49
+ };
50
+
51
+ return (
52
+ <div className={styles.container}>
53
+ {canScrollLeft && (
54
+ <Button
55
+ className={clsx(styles.scrollButton, styles.left)}
56
+ onClick={scrollLeft}
57
+ appearance="secondary-action-button"
58
+ aria-label={ariaLabels.scrollLeftButton}
59
+ >
60
+ <FontAwesomeIcon icon={faChevronLeft} />
61
+ </Button>
62
+ )}
63
+
64
+ {canScrollRight && (
65
+ <Button
66
+ className={clsx(styles.scrollButton, styles.right)}
67
+ onClick={scrollRight}
68
+ appearance="secondary-action-button"
69
+ aria-label={ariaLabels.scrollRightButton}
70
+ >
71
+ <FontAwesomeIcon icon={faChevronRight} />
72
+ </Button>
73
+ )}
74
+
75
+ <div ref={wrapperRef} className={styles.wrapper} onScroll={checkScrollDirections}>
76
+ {children}
77
+ </div>
78
+ </div>
79
+ );
80
+ };
@@ -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,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,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,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
+ }
@@ -41,11 +41,19 @@ export const TabList: ReactTabsFunctionComponent<TabListProps> = ({ children, ..
41
41
  };
42
42
 
43
43
  const handleScrollRight = () => {
44
- if (wrapperRef.current) wrapperRef.current.scrollTo({ left: wrapperRef.current.scrollWidth, behavior: "smooth" });
44
+ if (wrapperRef.current)
45
+ wrapperRef.current.scrollTo({
46
+ left: wrapperRef.current.scrollLeft + wrapperRef.current.clientWidth * 0.9,
47
+ behavior: "smooth",
48
+ });
45
49
  };
46
50
 
47
51
  const handleScrollLeft = () => {
48
- if (wrapperRef.current) wrapperRef.current.scrollTo({ left: 0, behavior: "smooth" });
52
+ if (wrapperRef.current)
53
+ wrapperRef.current.scrollTo({
54
+ left: wrapperRef.current.scrollLeft - wrapperRef.current.clientWidth * 0.9,
55
+ behavior: "smooth",
56
+ });
49
57
  };
50
58
 
51
59
  React.useEffect(() => {
@@ -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 };
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";
package/src/index.ts CHANGED
@@ -40,7 +40,7 @@ import { CodeBlock } from "./components/codeBlock/CodeBlock";
40
40
  import { ToolTip } from "./components/toolTip/ToolTip";
41
41
  import { Pagination } from "./components/Pagination/Pagination";
42
42
  import { Tabs, TabList, Tab, TabPanel } from "./components/tabs/Tabs";
43
- import { TableWrapper } from "./components/tableWrapper/TableWrapper";
43
+ import { HorizontalOverflowWrapper } from "./components/horizontalOverflowWrapper/HorizontalOverflowWrapper";
44
44
 
45
45
  export {
46
46
  DownloadCard,
@@ -82,5 +82,5 @@ export {
82
82
  TabList,
83
83
  Tab,
84
84
  TabPanel,
85
- TableWrapper,
85
+ HorizontalOverflowWrapper,
86
86
  };
package/tsconfig.json CHANGED
@@ -3,10 +3,7 @@
3
3
  "declaration": true,
4
4
  "outDir": "./lib",
5
5
  "target": "esnext",
6
- "lib": [
7
- "dom",
8
- "esnext"
9
- ],
6
+ "lib": ["dom", "esnext"],
10
7
  "jsx": "react-jsx",
11
8
  "module": "esnext",
12
9
  "moduleResolution": "node",
@@ -15,15 +12,7 @@
15
12
  "strict": true,
16
13
  "skipLibCheck": true
17
14
  },
18
- "hooks": [
19
- "copy-files"
20
- ],
21
- "include": [
22
- "src",
23
- "src/**/*.css"
24
- ],
25
- "exclude": [
26
- "node_modules",
27
- "**/__tests__/*"
28
- ]
29
- }
15
+ "hooks": ["copy-files"],
16
+ "include": ["src", "src/**/*.css"],
17
+ "exclude": ["node_modules", "**/__tests__/*"]
18
+ }
@@ -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";