@conduction/components 2.1.29 → 2.1.30

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/README.md +1 -0
  2. package/lib/components/badgeCounter/BadgeCounter.d.ts +8 -0
  3. package/lib/components/badgeCounter/BadgeCounter.js +4 -0
  4. package/lib/components/badgeCounter/BadgeCounter.module.css +27 -0
  5. package/lib/components/card/detailsCard/DetailsCard.d.ts +14 -0
  6. package/lib/components/card/detailsCard/DetailsCard.js +10 -0
  7. package/lib/components/card/detailsCard/DetailsCard.module.css +51 -0
  8. package/lib/components/card/downloadCard/DownloadCard.d.ts +11 -0
  9. package/lib/components/card/downloadCard/DownloadCard.js +8 -0
  10. package/lib/components/card/downloadCard/DownloadCard.module.css +27 -0
  11. package/lib/components/card/horizontalImageCard/HorizontalImageCard.d.ts +13 -0
  12. package/lib/components/card/horizontalImageCard/HorizontalImageCard.js +9 -0
  13. package/lib/components/card/horizontalImageCard/HorizontalImageCard.module.css +34 -0
  14. package/lib/components/card/imageAndDetailsCard/ImageAndDetailsCard.d.ts +14 -0
  15. package/lib/components/card/imageAndDetailsCard/ImageAndDetailsCard.js +9 -0
  16. package/lib/components/card/imageAndDetailsCard/ImageAndDetailsCard.module.css +63 -0
  17. package/lib/components/card/index.d.ts +7 -0
  18. package/lib/components/card/index.js +7 -0
  19. package/lib/components/card/infoCard/InfoCard.d.ts +8 -0
  20. package/lib/components/card/infoCard/InfoCard.js +6 -0
  21. package/lib/components/card/infoCard/InfoCard.module.css +26 -0
  22. package/lib/components/card/richContentCard/RichContentCard.d.ts +19 -0
  23. package/lib/components/card/richContentCard/RichContentCard.js +16 -0
  24. package/lib/components/card/richContentCard/RichContentCard.module.css +93 -0
  25. package/lib/components/codeBlock/CodeBlock.d.ts +6 -0
  26. package/lib/components/codeBlock/CodeBlock.js +3 -0
  27. package/lib/components/codeBlock/CodeBlock.module.css +6 -0
  28. package/lib/components/container/Container.d.ts +6 -0
  29. package/lib/components/container/Container.js +4 -0
  30. package/lib/components/container/Container.module.css +9 -0
  31. package/lib/components/denhaag-wrappers/breadcrumbs/Breadcrumbs.css +222 -0
  32. package/lib/components/denhaag-wrappers/breadcrumbs/Breadcrumbs.d.ts +17 -0
  33. package/lib/components/denhaag-wrappers/breadcrumbs/Breadcrumbs.js +20 -0
  34. package/lib/components/denhaag-wrappers/pagination/Pagination.css +120 -0
  35. package/lib/components/denhaag-wrappers/pagination/Pagination.d.ts +9 -0
  36. package/lib/components/denhaag-wrappers/pagination/Pagination.js +15 -0
  37. package/lib/components/editableTableRow/EditableTableRow.d.ts +14 -0
  38. package/lib/components/editableTableRow/EditableTableRow.js +31 -0
  39. package/lib/components/editableTableRow/EditableTableRow.module.css +25 -0
  40. package/lib/components/formFields/checkbox/Checkbox.module.css +7 -0
  41. package/lib/components/formFields/checkbox/checkbox.d.ts +9 -0
  42. package/lib/components/formFields/checkbox/checkbox.js +3 -0
  43. package/lib/components/formFields/createKeyValue/CreateKeyValue.d.ts +23 -0
  44. package/lib/components/formFields/createKeyValue/CreateKeyValue.js +42 -0
  45. package/lib/components/formFields/createKeyValue/CreateKeyValue.module.css +56 -0
  46. package/lib/components/formFields/date/Date.d.ts +12 -0
  47. package/lib/components/formFields/date/Date.js +10 -0
  48. package/lib/components/formFields/date/Date.module.css +12 -0
  49. package/lib/components/formFields/errorMessage/ErrorMessage.d.ts +5 -0
  50. package/lib/components/formFields/errorMessage/ErrorMessage.js +3 -0
  51. package/lib/components/formFields/errorMessage/ErrorMessage.module.css +9 -0
  52. package/lib/components/formFields/index.d.ts +8 -0
  53. package/lib/components/formFields/index.js +8 -0
  54. package/lib/components/formFields/input.d.ts +21 -0
  55. package/lib/components/formFields/input.js +16 -0
  56. package/lib/components/formFields/radio.d.ts +9 -0
  57. package/lib/components/formFields/radio.js +3 -0
  58. package/lib/components/formFields/select/select.d.ts +21 -0
  59. package/lib/components/formFields/select/select.js +22 -0
  60. package/lib/components/formFields/select/select.module.css +38 -0
  61. package/lib/components/formFields/textarea.d.ts +9 -0
  62. package/lib/components/formFields/textarea.js +4 -0
  63. package/lib/components/formFields/types.d.ts +6 -0
  64. package/lib/components/formFields/types.js +1 -0
  65. package/lib/components/imageDivider/ImageDivider.d.ts +7 -0
  66. package/lib/components/imageDivider/ImageDivider.js +6 -0
  67. package/lib/components/imageDivider/imageDivider.module.css +5 -0
  68. package/lib/components/logo/Logo.d.ts +8 -0
  69. package/lib/components/logo/Logo.js +10 -0
  70. package/lib/components/logo/Logo.module.css +15 -0
  71. package/lib/components/metaIcon/MetaIcon.d.ts +7 -0
  72. package/lib/components/metaIcon/MetaIcon.js +3 -0
  73. package/lib/components/metaIcon/MetaIcon.module.css +29 -0
  74. package/lib/components/notificationPopUp/NotificationPopUp.d.ts +26 -0
  75. package/lib/components/notificationPopUp/NotificationPopUp.js +34 -0
  76. package/lib/components/notificationPopUp/NotificationPopUp.module.css +61 -0
  77. package/lib/components/privateRoute/PrivateRoute.d.ts +6 -0
  78. package/lib/components/privateRoute/PrivateRoute.js +15 -0
  79. package/lib/components/quoteWrapper/QuoteWrapper.d.ts +7 -0
  80. package/lib/components/quoteWrapper/QuoteWrapper.js +5 -0
  81. package/lib/components/quoteWrapper/QuoteWrapper.module.css +12 -0
  82. package/lib/components/statusSteps/StatusSteps.d.ts +13 -0
  83. package/lib/components/statusSteps/StatusSteps.js +5 -0
  84. package/lib/components/tag/Tag.d.ts +10 -0
  85. package/lib/components/tag/Tag.js +6 -0
  86. package/lib/components/tag/Tag.module.css +44 -0
  87. package/lib/components/toolTip/ToolTip.d.ts +9 -0
  88. package/lib/components/toolTip/ToolTip.js +8 -0
  89. package/lib/components/toolTip/ToolTip.module.css +17 -0
  90. package/lib/components/topNav/index.d.ts +3 -0
  91. package/lib/components/topNav/index.js +3 -0
  92. package/lib/components/topNav/primaryTopNav/PrimaryTopNav.d.ts +20 -0
  93. package/lib/components/topNav/primaryTopNav/PrimaryTopNav.js +17 -0
  94. package/lib/components/topNav/primaryTopNav/PrimaryTopNav.module.css +163 -0
  95. package/lib/components/topNav/secondaryTopNav/SecondaryTopNav.d.ts +12 -0
  96. package/lib/components/topNav/secondaryTopNav/SecondaryTopNav.js +7 -0
  97. package/lib/components/topNav/secondaryTopNav/SecondaryTopNav.module.css +63 -0
  98. package/lib/index.d.ts +27 -0
  99. package/lib/index.js +20 -0
  100. package/package.json +2 -7
  101. package/src/components/formFields/select/select.tsx +7 -0
@@ -0,0 +1,17 @@
1
+ :root {
2
+ --conduction-tooltip-max-width: 500px;
3
+ }
4
+
5
+ .wrapper {
6
+ display: inline-block;
7
+ position: relative;
8
+ }
9
+
10
+ .tooltip {
11
+ max-width: var(--conduction-tooltip-max-width);
12
+ word-break: break-word;
13
+ }
14
+
15
+ .tooltip::before {
16
+ all: unset !important;
17
+ }
@@ -0,0 +1,3 @@
1
+ import { PrimaryTopNav } from "./primaryTopNav/PrimaryTopNav";
2
+ import { SecondaryTopNav } from "./secondaryTopNav/SecondaryTopNav";
3
+ export { PrimaryTopNav, SecondaryTopNav };
@@ -0,0 +1,3 @@
1
+ import { PrimaryTopNav } from "./primaryTopNav/PrimaryTopNav";
2
+ import { SecondaryTopNav } from "./secondaryTopNav/SecondaryTopNav";
3
+ export { PrimaryTopNav, SecondaryTopNav };
@@ -0,0 +1,20 @@
1
+ /// <reference types="react" />
2
+ interface ITopNavItem {
3
+ label: string;
4
+ icon?: JSX.Element;
5
+ current?: boolean;
6
+ handleClick?: () => any;
7
+ subItems?: {
8
+ label: string;
9
+ icon?: JSX.Element;
10
+ current?: boolean;
11
+ handleClick?: () => any;
12
+ }[];
13
+ }
14
+ export interface TopNavProps {
15
+ items: ITopNavItem[];
16
+ mobileLogo?: JSX.Element;
17
+ layoutClassName?: string;
18
+ }
19
+ export declare const PrimaryTopNav: ({ items, mobileLogo, layoutClassName }: TopNavProps) => JSX.Element;
20
+ export {};
@@ -0,0 +1,17 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import * as React from "react";
3
+ import * as styles from "./PrimaryTopNav.module.css";
4
+ import clsx from "clsx";
5
+ import { Link } from "@gemeente-denhaag/link";
6
+ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
7
+ import { faBars } from "@fortawesome/free-solid-svg-icons";
8
+ export const PrimaryTopNav = ({ items, mobileLogo, layoutClassName }) => {
9
+ const [isOpen, setIsOpen] = React.useState(false);
10
+ const handleItemClick = (handleClick) => {
11
+ if (handleClick) {
12
+ handleClick();
13
+ setIsOpen(false);
14
+ }
15
+ };
16
+ return (_jsxs("div", { className: clsx(styles.container, layoutClassName && layoutClassName), children: [_jsxs("div", { className: styles.menuToggleContainer, children: [mobileLogo, _jsx("button", { className: styles.menuToggle, onClick: () => setIsOpen((o) => !o), children: _jsx(FontAwesomeIcon, { icon: faBars }) })] }), _jsx("nav", { className: clsx(styles.primary, isOpen && styles.isOpen), children: _jsx("ul", { className: styles.ul, children: items.map(({ label, icon, current, handleClick, subItems }, idx) => (_jsxs("li", { onClick: () => handleItemClick(handleClick), className: clsx(styles.li, current && styles.current), children: [_jsx(Link, { className: clsx(styles.link, styles.label), icon: icon, iconAlign: "start", children: label }), subItems && (_jsx("ul", { className: styles.dropdown, children: subItems.map(({ label, icon, current, handleClick }, idx) => (_jsx("li", { className: clsx(styles.li, current && styles.current), onClick: () => handleItemClick(handleClick), children: _jsx(Link, { className: clsx(styles.link, styles.label), icon: icon, iconAlign: "start", children: label }) }, idx))) }))] }, idx))) }) })] }));
17
+ };
@@ -0,0 +1,163 @@
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: rgba(255, 255, 255, 0.2);
6
+ --conduction-primary-top-nav-dropdown-border-radius: var(--skeleton-border-radius-md);
7
+ --conduction-primary-top-nav-background-color-active: rgba(255, 255, 255, 0.2);
8
+ --conduction-primary-top-nav-box-shadow-active: inset 0 -4px black;
9
+ --conduction-primary-top-nav-toggle-icon-size: 24px;
10
+ --conduction-primary-top-nav-mobile-logo-padding: 18px;
11
+ --conduction-primary-top-nav-item-icon-margin: var(--skeleton-size-2x);
12
+ --conduction-primary-top-nav-dropdown-background-color: var(--skeleton-color-white);
13
+ --conduction-primary-top-nav-dropdown-background-color-hover: var(--skeleton-color-grey-1);
14
+ }
15
+
16
+ .container {
17
+ width: 100%;
18
+ }
19
+
20
+ .menuToggleContainer {
21
+ width: 100%;
22
+ display: flex;
23
+ align-items: center;
24
+ justify-content: space-between;
25
+ }
26
+
27
+ .menuToggleContainer > .menuToggle {
28
+ all: unset;
29
+ font-size: var(--conduction-primary-top-nav-toggle-icon-size);
30
+ padding: var(--conduction-primary-top-nav-mobile-logo-padding);
31
+ }
32
+
33
+ .menuToggleContainer > .menuToggle:hover {
34
+ cursor: pointer;
35
+ }
36
+
37
+ .primary {
38
+ display: none;
39
+ }
40
+
41
+ .primary.isOpen {
42
+ display: block;
43
+ }
44
+
45
+ .menuToggleContainer {
46
+ width: 100%;
47
+ }
48
+
49
+ .primary {
50
+ font-weight: 500;
51
+ width: 100%;
52
+ background-color: var(--conduction-primary-top-nav-background-color);
53
+ }
54
+
55
+ .primary:hover {
56
+ cursor: pointer;
57
+ }
58
+
59
+ .ul {
60
+ margin: unset;
61
+ padding-inline-start: unset;
62
+ align-items: center;
63
+ max-height: 80vh;
64
+ overflow-y: scroll;
65
+ }
66
+
67
+ .li {
68
+ list-style-type: none;
69
+ display: block;
70
+ position: relative;
71
+ padding-inline-start: var(--conduction-primary-top-nav-item-padding);
72
+ padding-inline-end: var(--conduction-primary-top-nav-item-padding);
73
+ padding-block-start: var(--conduction-primary-top-nav-item-padding);
74
+ padding-block-end: var(--conduction-primary-top-nav-item-padding);
75
+ }
76
+
77
+ .li:hover {
78
+ background-color: var(--conduction-primary-top-nav-background-color-hover);
79
+ }
80
+
81
+ .current {
82
+ background-color: var(--conduction-primary-top-nav-background-color-active);
83
+ box-shadow: var(--conduction-primary-top-nav-box-shadow-active);
84
+ }
85
+
86
+ .primary .link {
87
+ display: block;
88
+ text-decoration: none;
89
+ color: var(--conduction-primary-top-nav-color);
90
+ }
91
+
92
+ .primary .li:hover .link {
93
+ color: var(--conduction-primary-top-nav-color-hover);
94
+ }
95
+
96
+ .primary .li:hover .dropdown {
97
+ display: block;
98
+ z-index: 1;
99
+ }
100
+
101
+ .dropdown {
102
+ left: 0;
103
+ top: 100%;
104
+ padding: 0;
105
+ width: 100%;
106
+ display: block;
107
+ list-style-type: none;
108
+ background-color: var(--conduction-primary-top-nav-dropdown-background-color);
109
+ border-bottom-right-radius: var(--conduction-primary-top-nav-dropdown-border-radius);
110
+ border-bottom-left-radius: var(--conduction-primary-top-nav-dropdown-border-radius);
111
+ }
112
+
113
+ .primary .dropdown .li .link {
114
+ color: var(--conduction-primary-top-nav-dropdown-color);
115
+ }
116
+
117
+ .primary .dropdown .li:hover .link {
118
+ color: var(--conduction-primary-top-nav-dropdown-color-hover);
119
+ }
120
+
121
+ .dropdown .li:hover {
122
+ background: var(--conduction-primary-top-nav-dropdown-background-color-hover);
123
+ }
124
+
125
+ .dropdown > li {
126
+ padding-inline-start: var(--web-app-size-md);
127
+ }
128
+
129
+ .label {
130
+ overflow: hidden;
131
+ max-width: 37ch;
132
+ text-overflow: ellipsis;
133
+ white-space: nowrap;
134
+ }
135
+
136
+ .label > :not(:last-child) {
137
+ margin-inline-end: var(--conduction-primary-top-nav-item-icon-margin);
138
+ }
139
+
140
+ @media only screen and (min-width: 992px) {
141
+ .container {
142
+ width: fit-content;
143
+ }
144
+
145
+ .primary {
146
+ display: block;
147
+ width: fit-content;
148
+ }
149
+
150
+ .ul {
151
+ display: flex;
152
+ overflow-y: unset;
153
+ }
154
+
155
+ .dropdown {
156
+ position: absolute;
157
+ display: none;
158
+ }
159
+
160
+ .menuToggleContainer {
161
+ display: none;
162
+ }
163
+ }
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ interface TopNavProps {
3
+ items: {
4
+ label: string;
5
+ icon?: JSX.Element;
6
+ current?: boolean;
7
+ handleClick: () => any;
8
+ }[];
9
+ layoutClassName?: string;
10
+ }
11
+ export declare const SecondaryTopNav: ({ items, layoutClassName }: TopNavProps) => JSX.Element;
12
+ export {};
@@ -0,0 +1,7 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import * as styles from "./SecondaryTopNav.module.css";
3
+ import { Link } from "@gemeente-denhaag/link";
4
+ import clsx from "clsx";
5
+ export const SecondaryTopNav = ({ items, layoutClassName }) => {
6
+ return (_jsx("div", { className: clsx(styles.secondary, layoutClassName && layoutClassName), children: _jsx("nav", { children: _jsx("ul", { className: styles.ul, children: items.map(({ label, icon, current, handleClick }, idx) => (_jsx("li", { className: clsx(styles.li, current && styles.current), onClick: handleClick, children: _jsx(Link, { className: clsx(styles.link, styles.label), icon: icon, iconAlign: "start", children: label }) }, idx))) }) }) }));
7
+ };
@@ -0,0 +1,63 @@
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: rgba(0, 0, 0, 0.1);
7
+ --conduction-secondary-top-nav-font-weight: var(--skeleton-font-weight-light);
8
+ --conduction-secondary-top-nav-color-active: rgba(0, 0, 0, 0.1);
9
+ --conduction-secondary-top-nav-box-shadow-active: inset 0 -4px black;
10
+ --conduction-secondary-top-nav-item-icon-margin: var(--skeleton-size-2x);
11
+ }
12
+
13
+ .secondary:hover {
14
+ cursor: pointer;
15
+ }
16
+
17
+ .ul {
18
+ margin: unset;
19
+ display: flex;
20
+ padding-inline-start: unset;
21
+ align-items: center;
22
+ }
23
+
24
+ .li {
25
+ list-style-type: none;
26
+ display: block;
27
+ padding-inline-start: var(--conduction-secondary-top-nav-item-padding);
28
+ padding-inline-end: var(--conduction-secondary-top-nav-item-padding);
29
+ padding-block-start: var(--conduction-secondary-top-nav-item-padding);
30
+ padding-block-end: var(--conduction-secondary-top-nav-item-padding);
31
+ }
32
+
33
+ .li:hover {
34
+ background-color: var(--conduction-secondary-top-nav-background-color-hover);
35
+ }
36
+
37
+ .current {
38
+ background-color: var(--conduction-secondary-top-nav-color-active);
39
+ box-shadow: var(--conduction-secondary-top-nav-box-shadow-active);
40
+ }
41
+
42
+ .secondary {
43
+ font-weight: var(--conduction-secondary-top-nav-font-weight);
44
+ width: fit-content;
45
+ font-size: var(--conduction-secondary-top-nav-font-size);
46
+ background-color: var(--conduction-secondary-top-nav-background-color);
47
+ }
48
+
49
+ .secondary .link {
50
+ color: var(--conduction-secondary-top-nav-color);
51
+ display: block;
52
+ }
53
+
54
+ .label {
55
+ overflow: hidden;
56
+ max-width: 37ch;
57
+ text-overflow: ellipsis;
58
+ white-space: nowrap;
59
+ }
60
+
61
+ .label > :not(:last-child) {
62
+ margin-inline-end: var(--conduction-secondary-top-nav-item-icon-margin);
63
+ }
package/lib/index.d.ts ADDED
@@ -0,0 +1,27 @@
1
+ /// <reference types="react" />
2
+ import { DownloadCard, HorizontalImageCard, ImageAndDetailsCard, RichContentCard, DetailsCard, InfoCard } from "./components/card";
3
+ import { Container } from "./components/container/Container";
4
+ import { Breadcrumbs } from "./components/denhaag-wrappers/breadcrumbs/Breadcrumbs";
5
+ import { EditableTableRow } from "./components/editableTableRow/EditableTableRow";
6
+ import { InputText, InputPassword, InputEmail, InputDate, InputNumber, Textarea, InputCheckbox, InputRadio, InputFile, SelectMultiple, SelectSingle } from "./components/formFields";
7
+ import { ImageDivider } from "./components/imageDivider/ImageDivider";
8
+ import { AuthenticatedLogo, UnauthenticatedLogo } from "./components/logo/Logo";
9
+ import { MetaIcon } from "./components/metaIcon/MetaIcon";
10
+ import { PrivateRoute } from "./components/privateRoute/PrivateRoute";
11
+ import { StatusSteps } from "./components/statusSteps/StatusSteps";
12
+ import { PrimaryTopNav, SecondaryTopNav } from "./components/topNav";
13
+ import { Tag } from "./components/tag/Tag";
14
+ declare const NotificationPopUp: {
15
+ controller: () => {
16
+ isVisible: boolean;
17
+ show: () => void;
18
+ hide: () => void;
19
+ };
20
+ NotificationPopUp: ({ title, description, isVisible, hide, primaryButton, secondaryButton, layoutClassName, }: import("./components/notificationPopUp/NotificationPopUp").NotificationPopUpProps) => JSX.Element | null;
21
+ };
22
+ import { QuoteWrapper } from "./components/quoteWrapper/QuoteWrapper";
23
+ import { Pagination } from "./components/denhaag-wrappers/pagination/Pagination";
24
+ import { BadgeCounter } from "./components/badgeCounter/BadgeCounter";
25
+ import { CodeBlock } from "./components/codeBlock/CodeBlock";
26
+ import { ToolTip } from "./components/toolTip/ToolTip";
27
+ export { InputRadio, DownloadCard, HorizontalImageCard, ImageAndDetailsCard, RichContentCard, DetailsCard, InfoCard, Container, Breadcrumbs, EditableTableRow, InputText, InputPassword, InputEmail, InputDate, InputNumber, InputFile, Textarea, InputCheckbox, SelectMultiple, SelectSingle, ImageDivider, AuthenticatedLogo, UnauthenticatedLogo, MetaIcon, PrivateRoute, StatusSteps, PrimaryTopNav, SecondaryTopNav, Tag, NotificationPopUp, QuoteWrapper, Pagination, BadgeCounter, CodeBlock, ToolTip, };
package/lib/index.js ADDED
@@ -0,0 +1,20 @@
1
+ import { DownloadCard, HorizontalImageCard, ImageAndDetailsCard, RichContentCard, DetailsCard, InfoCard, } from "./components/card";
2
+ import { Container } from "./components/container/Container";
3
+ import { Breadcrumbs } from "./components/denhaag-wrappers/breadcrumbs/Breadcrumbs";
4
+ import { EditableTableRow } from "./components/editableTableRow/EditableTableRow";
5
+ import { InputText, InputPassword, InputEmail, InputDate, InputNumber, Textarea, InputCheckbox, InputRadio, InputFile, SelectMultiple, SelectSingle, } from "./components/formFields";
6
+ import { ImageDivider } from "./components/imageDivider/ImageDivider";
7
+ import { AuthenticatedLogo, UnauthenticatedLogo } from "./components/logo/Logo";
8
+ import { MetaIcon } from "./components/metaIcon/MetaIcon";
9
+ import { PrivateRoute } from "./components/privateRoute/PrivateRoute";
10
+ import { StatusSteps } from "./components/statusSteps/StatusSteps";
11
+ import { PrimaryTopNav, SecondaryTopNav } from "./components/topNav";
12
+ import { Tag } from "./components/tag/Tag";
13
+ import { NotificationPopUpController, NotificationPopUp as _NotificationPopUp, } from "./components/notificationPopUp/NotificationPopUp";
14
+ const NotificationPopUp = { controller: NotificationPopUpController, NotificationPopUp: _NotificationPopUp };
15
+ import { QuoteWrapper } from "./components/quoteWrapper/QuoteWrapper";
16
+ import { Pagination } from "./components/denhaag-wrappers/pagination/Pagination";
17
+ import { BadgeCounter } from "./components/badgeCounter/BadgeCounter";
18
+ import { CodeBlock } from "./components/codeBlock/CodeBlock";
19
+ import { ToolTip } from "./components/toolTip/ToolTip";
20
+ export { InputRadio, DownloadCard, HorizontalImageCard, ImageAndDetailsCard, RichContentCard, DetailsCard, InfoCard, Container, Breadcrumbs, EditableTableRow, InputText, InputPassword, InputEmail, InputDate, InputNumber, InputFile, Textarea, InputCheckbox, SelectMultiple, SelectSingle, ImageDivider, AuthenticatedLogo, UnauthenticatedLogo, MetaIcon, PrivateRoute, StatusSteps, PrimaryTopNav, SecondaryTopNav, Tag, NotificationPopUp, QuoteWrapper, Pagination, BadgeCounter, CodeBlock, ToolTip, };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@conduction/components",
3
- "version": "2.1.29",
3
+ "version": "2.1.30",
4
4
  "description": "React (Gatsby) components used within the Conduction Skeleton Application (and its implementations)",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -12,12 +12,7 @@
12
12
  "type": "git",
13
13
  "url": "git+https://github.com/ConductionNL/conduction-components.git"
14
14
  },
15
- "keywords": [
16
- "React",
17
- "Gatsby",
18
- "Conduction",
19
- "Components"
20
- ],
15
+ "keywords": ["React", "Gatsby", "Conduction", "Components"],
21
16
  "author": "Conduction B.V.",
22
17
  "license": "ISC",
23
18
  "bugs": {
@@ -16,6 +16,7 @@ interface ISelectProps {
16
16
  disabled?: boolean;
17
17
  isClearable?: boolean;
18
18
  hideErrorMessage?: boolean;
19
+ menuPlacement?: "auto" | "bottom" | "top";
19
20
  }
20
21
 
21
22
  export const SelectMultiple = ({
@@ -28,6 +29,7 @@ export const SelectMultiple = ({
28
29
  defaultValue,
29
30
  disabled,
30
31
  hideErrorMessage,
32
+ menuPlacement,
31
33
  }: ISelectProps & IReactHookFormProps): JSX.Element => {
32
34
  return (
33
35
  <Controller
@@ -44,6 +46,7 @@ export const SelectMultiple = ({
44
46
  isDisabled={disabled}
45
47
  {...{ options, onChange, errors }}
46
48
  menuPortalTarget={document.body}
49
+ menuPlacement={menuPlacement}
47
50
  styles={{ menuPortal: (base) => ({ ...base, zIndex: 100 }) }}
48
51
  placeholder={disabled ? "Disabled..." : "Select one or more options..."}
49
52
  />
@@ -65,6 +68,7 @@ export const SelectCreate = ({
65
68
  defaultValue,
66
69
  disabled,
67
70
  hideErrorMessage,
71
+ menuPlacement,
68
72
  }: ISelectProps & IReactHookFormProps): JSX.Element => {
69
73
  return (
70
74
  <Controller
@@ -82,6 +86,7 @@ export const SelectCreate = ({
82
86
  isDisabled={disabled}
83
87
  {...{ options, onChange, errors }}
84
88
  menuPortalTarget={document.body}
89
+ menuPlacement={menuPlacement}
85
90
  styles={{ menuPortal: (base) => ({ ...base, zIndex: 100 }) }}
86
91
  />
87
92
  {errors[name] && !hideErrorMessage && <ErrorMessage message={errors[name].message} />}
@@ -103,6 +108,7 @@ export const SelectSingle = ({
103
108
  defaultValue,
104
109
  disabled,
105
110
  hideErrorMessage,
111
+ menuPlacement,
106
112
  }: ISelectProps & IReactHookFormProps): JSX.Element => {
107
113
  return (
108
114
  <Controller
@@ -118,6 +124,7 @@ export const SelectSingle = ({
118
124
  isDisabled={disabled}
119
125
  {...{ options, onChange, errors, isClearable }}
120
126
  menuPortalTarget={document.body}
127
+ menuPlacement={menuPlacement}
121
128
  styles={{ menuPortal: (base) => ({ ...base, zIndex: 100 }) }}
122
129
  placeholder={disabled ? "Disabled..." : "Select an option..."}
123
130
  />