@conduction/components 2.2.2 → 2.2.3
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.
- package/.prettierrc +30 -30
- package/README.md +1 -0
- package/lib/components/Pagination/Pagination.d.ts +9 -9
- package/lib/components/Pagination/Pagination.js +12 -12
- package/lib/components/badgeCounter/BadgeCounter.d.ts +8 -8
- package/lib/components/badgeCounter/BadgeCounter.js +4 -4
- package/lib/components/badgeCounter/BadgeCounter.module.css +27 -27
- package/lib/components/card/cardHeader/CardHeader.d.ts +4 -4
- package/lib/components/card/cardHeader/CardHeader.js +14 -14
- package/lib/components/card/cardWrapper/CardWrapper.d.ts +2 -2
- package/lib/components/card/cardWrapper/CardWrapper.js +6 -6
- package/lib/components/card/detailsCard/DetailsCard.d.ts +14 -14
- package/lib/components/card/detailsCard/DetailsCard.js +11 -11
- package/lib/components/card/downloadCard/DownloadCard.d.ts +11 -11
- package/lib/components/card/downloadCard/DownloadCard.js +9 -9
- package/lib/components/card/horizontalImageCard/HorizontalImageCard.d.ts +13 -13
- package/lib/components/card/horizontalImageCard/HorizontalImageCard.js +10 -10
- package/lib/components/card/imageAndDetailsCard/ImageAndDetailsCard.d.ts +14 -14
- package/lib/components/card/imageAndDetailsCard/ImageAndDetailsCard.js +10 -10
- package/lib/components/card/index.d.ts +8 -8
- package/lib/components/card/index.js +8 -8
- package/lib/components/card/infoCard/InfoCard.d.ts +8 -8
- package/lib/components/card/infoCard/InfoCard.js +6 -6
- package/lib/components/card/infoCard/InfoCard.module.css +26 -26
- package/lib/components/card/richContentCard/RichContentCard.d.ts +19 -19
- package/lib/components/card/richContentCard/RichContentCard.js +15 -16
- package/lib/components/codeBlock/CodeBlock.d.ts +6 -6
- package/lib/components/codeBlock/CodeBlock.js +3 -3
- package/lib/components/codeBlock/CodeBlock.module.css +6 -6
- package/lib/components/container/Container.d.ts +6 -6
- package/lib/components/container/Container.js +4 -4
- package/lib/components/denhaag-wrappers/breadcrumbs/Breadcrumbs.css +222 -222
- package/lib/components/denhaag-wrappers/breadcrumbs/Breadcrumbs.d.ts +17 -17
- package/lib/components/denhaag-wrappers/breadcrumbs/Breadcrumbs.js +20 -20
- package/lib/components/denhaag-wrappers/pagination/Pagination.css +120 -120
- package/lib/components/denhaag-wrappers/pagination/Pagination.d.ts +9 -9
- package/lib/components/denhaag-wrappers/pagination/Pagination.js +15 -15
- package/lib/components/editableTableRow/EditableTableRow.d.ts +14 -14
- package/lib/components/editableTableRow/EditableTableRow.js +31 -31
- package/lib/components/editableTableRow/EditableTableRow.module.css +25 -25
- package/lib/components/formFields/checkbox/Checkbox.module.css +7 -7
- package/lib/components/formFields/checkbox/checkbox.d.ts +9 -9
- package/lib/components/formFields/checkbox/checkbox.js +3 -3
- package/lib/components/formFields/createKeyValue/CreateKeyValue.d.ts +23 -23
- package/lib/components/formFields/createKeyValue/CreateKeyValue.js +41 -41
- package/lib/components/formFields/date/Date.d.ts +12 -12
- package/lib/components/formFields/date/Date.js +10 -10
- package/lib/components/formFields/date/Date.module.css +12 -12
- package/lib/components/formFields/errorMessage/ErrorMessage.d.ts +5 -5
- package/lib/components/formFields/errorMessage/ErrorMessage.js +3 -3
- package/lib/components/formFields/index.d.ts +7 -7
- package/lib/components/formFields/index.js +7 -7
- package/lib/components/formFields/input.d.ts +21 -21
- package/lib/components/formFields/input.js +12 -12
- package/lib/components/formFields/radio.d.ts +9 -9
- package/lib/components/formFields/radio.js +3 -3
- package/lib/components/formFields/select/select.d.ts +23 -23
- package/lib/components/formFields/select/select.js +58 -58
- package/lib/components/formFields/textarea.d.ts +9 -9
- package/lib/components/formFields/textarea.js +4 -4
- package/lib/components/formFields/types.d.ts +6 -6
- package/lib/components/formFields/types.js +1 -1
- package/lib/components/imageDivider/ImageDivider.d.ts +7 -7
- package/lib/components/imageDivider/ImageDivider.js +6 -6
- package/lib/components/imageDivider/imageDivider.module.css +5 -5
- package/lib/components/logo/Logo.d.ts +8 -8
- package/lib/components/logo/Logo.js +10 -10
- package/lib/components/logo/Logo.module.css +15 -15
- package/lib/components/metaIcon/MetaIcon.d.ts +7 -7
- package/lib/components/metaIcon/MetaIcon.js +3 -3
- package/lib/components/metaIcon/MetaIcon.module.css +29 -29
- package/lib/components/notificationPopUp/NotificationPopUp.d.ts +26 -26
- package/lib/components/notificationPopUp/NotificationPopUp.js +32 -32
- package/lib/components/privateRoute/PrivateRoute.d.ts +6 -6
- package/lib/components/privateRoute/PrivateRoute.js +15 -15
- package/lib/components/quoteWrapper/QuoteWrapper.d.ts +7 -7
- package/lib/components/quoteWrapper/QuoteWrapper.js +5 -5
- package/lib/components/quoteWrapper/QuoteWrapper.module.css +12 -12
- package/lib/components/statusSteps/StatusSteps.d.ts +13 -0
- package/lib/components/statusSteps/StatusSteps.js +5 -0
- package/lib/components/tabs/Tabs.d.ts +14 -0
- package/lib/components/tabs/Tabs.js +7 -0
- package/lib/components/tabs/Tabs.module.css +102 -0
- package/lib/components/tag/Tag.d.ts +10 -10
- package/lib/components/tag/Tag.js +6 -6
- package/lib/components/tag/Tag.module.css +44 -44
- package/lib/components/toolTip/ToolTip.d.ts +9 -9
- package/lib/components/toolTip/ToolTip.js +8 -8
- package/lib/components/topNav/index.d.ts +3 -3
- package/lib/components/topNav/index.js +3 -3
- package/lib/components/topNav/primaryTopNav/PrimaryTopNav.d.ts +20 -20
- package/lib/components/topNav/primaryTopNav/PrimaryTopNav.js +17 -17
- package/lib/components/topNav/secondaryTopNav/SecondaryTopNav.d.ts +12 -12
- package/lib/components/topNav/secondaryTopNav/SecondaryTopNav.js +7 -7
- package/lib/custom.d copy.d.ts +5 -0
- package/lib/custom.d copy.js +1 -0
- package/lib/index.d.ts +26 -25
- package/lib/index.js +19 -18
- package/package.json +8 -2
- package/src/components/badgeCounter/BadgeCounter.module.css +27 -27
- package/src/components/card/infoCard/InfoCard.module.css +26 -26
- package/src/components/codeBlock/CodeBlock.module.css +6 -6
- package/src/components/denhaag-wrappers/breadcrumbs/Breadcrumbs.css +222 -222
- package/src/components/formFields/checkbox/Checkbox.module.css +7 -7
- package/src/components/formFields/date/Date.module.css +12 -12
- package/src/components/imageDivider/imageDivider.module.css +5 -5
- package/src/components/logo/Logo.module.css +15 -15
- package/src/components/metaIcon/MetaIcon.module.css +29 -29
- package/src/components/quoteWrapper/QuoteWrapper.module.css +12 -12
- package/src/components/tabs/Tabs.module.css +102 -0
- package/src/components/tabs/Tabs.tsx +37 -0
- package/src/components/tag/Tag.module.css +44 -44
- package/src/components/topNav/index.ts +4 -4
- package/src/custom.d.ts +4 -4
- package/src/index.ts +2 -0
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--conduction-tab-list-padding-inline-start: 0px;
|
|
3
|
+
--conduction-tab-list-border-bottom-width: var(--skeleton-size-3xs);
|
|
4
|
+
--conduction-tab-list-border-bottom-style: solid;
|
|
5
|
+
--conduction-tab-list-border-bottom-color: #d1d1d1;
|
|
6
|
+
|
|
7
|
+
--conduction-tab-padding-block-start: var(--skeleton-size-xs);
|
|
8
|
+
--conduction-tab-padding-block-end: var(--skeleton-size-xs);
|
|
9
|
+
--conduction-tab-padding-inline-start: var(--skeleton-size-sm);
|
|
10
|
+
--conduction-tab-padding-inline-end: var(--skeleton-size-sm);
|
|
11
|
+
--conduction-tab-font-size: var(--skeleton-font-size-sm: );
|
|
12
|
+
--conduction-tab-font-weight: var(--skeleton-font-weight-normal);
|
|
13
|
+
--conduction-tab-font-family: "Noto Sans", Arial, sans-serif;
|
|
14
|
+
--conduction-tab-max-width: unset;
|
|
15
|
+
--conduction-tab-min-width: 160px;
|
|
16
|
+
--conduction-tab-min-height: 61px;
|
|
17
|
+
/* --conduction-tab-letter-spacing: 0.02857em; */
|
|
18
|
+
/* --conduction-tab-text-transform: uppercase; */
|
|
19
|
+
--conduction-tab-color: #4a4a4a;
|
|
20
|
+
|
|
21
|
+
--conduction-tab-selected-color: #4a4a4a;
|
|
22
|
+
--conduction-tab-selected-border-bottom-width: var(--skeleton-size-3xs);
|
|
23
|
+
--conduction-tab-selected-border-bottom-style: solid;
|
|
24
|
+
--conduction-tab-selected-border-bottom-color: #4376fc;
|
|
25
|
+
--conduction-tab-selected-font-weight: var(--skeleton-font-weight-bold);
|
|
26
|
+
|
|
27
|
+
--conduction-tab-panel-padding-block-start: var(--skeleton-size-lg);
|
|
28
|
+
--conduction-tab-panel-padding-block-end: var(--skeleton-size-lg);
|
|
29
|
+
--conduction-tab-panel-padding-inline-start: var(--skeleton-size-lg);
|
|
30
|
+
--conduction-tab-panel-padding-inline-end: var(--skeleton-size-lg);
|
|
31
|
+
|
|
32
|
+
--conduction-tab-badge-margin-inline-start: var(--skeleton-size-xs);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.tabList {
|
|
36
|
+
padding-inline-start: var(--conduction-tab-list-padding-inline-start);
|
|
37
|
+
border-bottom-width: var(--conduction-tab-list-border-bottom-width);
|
|
38
|
+
border-bottom-style: var(--conduction-tab-list-border-bottom-style);
|
|
39
|
+
border-bottom-color: var(--conduction-tab-list-border-bottom-color);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.tab {
|
|
43
|
+
display: inline-flex;
|
|
44
|
+
align-items: center;
|
|
45
|
+
justify-content: center;
|
|
46
|
+
cursor: pointer;
|
|
47
|
+
overflow: hidden;
|
|
48
|
+
position: relative;
|
|
49
|
+
box-sizing: border-box;
|
|
50
|
+
text-align: center;
|
|
51
|
+
white-space: normal;
|
|
52
|
+
bottom: -2px;
|
|
53
|
+
|
|
54
|
+
color: var(--conduction-tab-color);
|
|
55
|
+
padding-block-start: var(--conduction-tab-padding-block-start);
|
|
56
|
+
padding-block-end: var(--conduction-tab-padding-block-end);
|
|
57
|
+
padding-inline-start: var(--conduction-tab-padding-inline-start);
|
|
58
|
+
padding-inline-end: var(--conduction-tab-padding-inline-end);
|
|
59
|
+
font-size: var(--conduction-tab-font-size);
|
|
60
|
+
font-weight: var(--conduction-tab-font-weight);
|
|
61
|
+
font-family: var(--conduction-tab-font-family);
|
|
62
|
+
max-width: var(--conduction-tab-max-width);
|
|
63
|
+
min-width: var(--conduction-tab-min-width);
|
|
64
|
+
min-height: var(--conduction-tab-min-height);
|
|
65
|
+
letter-spacing: var(--conduction-tab-letter-spacing);
|
|
66
|
+
text-transform: var(--conduction-tab-text-transform);
|
|
67
|
+
|
|
68
|
+
border-bottom-width: var(--conduction-tab-list-border-bottom-width);
|
|
69
|
+
border-bottom-style: var(--conduction-tab-list-border-bottom-style);
|
|
70
|
+
border-bottom-color: var(--conduction-tab-list-border-bottom-color);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.tab[aria-selected="true"] {
|
|
74
|
+
color: var(--conduction-tab-selected-color);
|
|
75
|
+
border-bottom-width: var(--conduction-tab-selected-border-bottom-width);
|
|
76
|
+
border-bottom-style: var(--conduction-tab-selected-border-bottom-style);
|
|
77
|
+
border-bottom-color: var(--conduction-tab-selected-border-bottom-color);
|
|
78
|
+
font-weight: var(--conduction-tab-selected-font-weight);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.tabs [class*="react-tabs__tab-panel--selected"] {
|
|
82
|
+
padding-block-start: var(--conduction-tab-panel-padding-block-start);
|
|
83
|
+
padding-block-end: var(--conduction-tab-panel-padding-block-end);
|
|
84
|
+
padding-inline-start: var(--conduction-tab-panel-padding-inline-start);
|
|
85
|
+
padding-inline-end: var(--conduction-tab-panel-padding-inline-end);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.badge {
|
|
89
|
+
margin-inline-start: var(--conduction-tab-badge-margin-inline-start);
|
|
90
|
+
background-color: var(--utrecht-badge-counter-background-color, var(--utrecht-badge-background-color, #000));
|
|
91
|
+
border-radius: var(--utrecht-badge-counter-border-radius, var(--utrecht-badge-border-radius, 0.5ch));
|
|
92
|
+
color: var(--utrecht-badge-counter-color, var(--utrecht-badge-color, #fff));
|
|
93
|
+
display: inline-block;
|
|
94
|
+
font-family: var(--utrecht-document-font-family, sans-serif);
|
|
95
|
+
font-style: var(--utrecht-badge-counter-font-style, normal);
|
|
96
|
+
font-weight: var(--utrecht-badge-counter-font-weight, var(--utrecht-badge-font-weight, bold));
|
|
97
|
+
padding-block-end: var(--utrecht-badge-counter-padding-block, var(--utrecht-badge-padding-block, 0.5ex));
|
|
98
|
+
padding-block-start: var(--utrecht-badge-counter-padding-block, var(--utrecht-badge-padding-block, 0.5ex));
|
|
99
|
+
padding-inline-end: var(--utrecht-badge-counter-padding-inline, var(--utrecht-badge-padding-inline, 0.5ch));
|
|
100
|
+
padding-inline-start: var(--utrecht-badge-counter-padding-inline, var(--utrecht-badge-padding-inline, 0.5ch));
|
|
101
|
+
text-decoration: none;
|
|
102
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as styles from "./Tabs.module.css";
|
|
3
|
+
import { Tab, Tabs, TabList, TabPanel } from "react-tabs";
|
|
4
|
+
import { BadgeCounter } from "@utrecht/component-library-react";
|
|
5
|
+
|
|
6
|
+
interface testProps {
|
|
7
|
+
tabs: ITabProps[];
|
|
8
|
+
tabContent: ITabPanelProps[];
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
interface ITabProps {
|
|
12
|
+
name: string;
|
|
13
|
+
badge?: string;
|
|
14
|
+
}
|
|
15
|
+
interface ITabPanelProps {
|
|
16
|
+
content: JSX.Element;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export const TabContext: React.FC<testProps> = ({ tabs, tabContent }) => {
|
|
20
|
+
return (
|
|
21
|
+
<Tabs className={styles.tabs}>
|
|
22
|
+
<TabList className={styles.tabList}>
|
|
23
|
+
{tabs.map(({ name, badge }) => (
|
|
24
|
+
<Tab className={styles.tab}>
|
|
25
|
+
<span>
|
|
26
|
+
{name}
|
|
27
|
+
{badge !== undefined && <BadgeCounter className={styles.badge}>{badge}</BadgeCounter>}
|
|
28
|
+
</span>
|
|
29
|
+
</Tab>
|
|
30
|
+
))}
|
|
31
|
+
</TabList>
|
|
32
|
+
{tabContent.map(({ content }) => (
|
|
33
|
+
<TabPanel className={styles.tabPanel}>{content}</TabPanel>
|
|
34
|
+
))}
|
|
35
|
+
</Tabs>
|
|
36
|
+
);
|
|
37
|
+
};
|
|
@@ -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
|
@@ -29,6 +29,7 @@ import { BadgeCounter } from "./components/badgeCounter/BadgeCounter";
|
|
|
29
29
|
import { CodeBlock } from "./components/codeBlock/CodeBlock";
|
|
30
30
|
import { ToolTip } from "./components/toolTip/ToolTip";
|
|
31
31
|
import { Pagination } from "./components/Pagination/Pagination";
|
|
32
|
+
import { TabContext } from "./components/tabs/Tabs";
|
|
32
33
|
|
|
33
34
|
export {
|
|
34
35
|
DownloadCard,
|
|
@@ -62,4 +63,5 @@ export {
|
|
|
62
63
|
BadgeCounter,
|
|
63
64
|
CodeBlock,
|
|
64
65
|
ToolTip,
|
|
66
|
+
TabContext,
|
|
65
67
|
};
|