@conduction/components 2.1.31 → 2.1.32
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/README.md +1 -0
- package/lib/components/container/Container.module.css +3 -0
- package/lib/index.d.ts +1 -2
- package/lib/index.js +1 -2
- package/package.json +5 -4
- package/src/components/container/Container.module.css +3 -0
- package/src/index.ts +0 -2
- package/lib/components/statusSteps/StatusSteps.d.ts +0 -13
- package/lib/components/statusSteps/StatusSteps.js +0 -5
- package/src/components/statusSteps/StatusSteps.js +0 -5
- package/src/components/statusSteps/StatusSteps.tsx +0 -54
package/README.md
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
- **Version 2.1 (breaking changes from 2.0.x)**
|
|
6
6
|
|
|
7
|
+
- 2.1.32: Add inline-padding to container, remove redundant (breaking and unused) components, up React version.
|
|
7
8
|
- 2.1.31: Removed Den Haag implementations which hold shapeRendering warnings.
|
|
8
9
|
- 2.1.29/2.1.30: Added optional menuPlacement to all select elements.
|
|
9
10
|
- 2.1.28: Fixed PrimaryTopNav dropdown token and added new features for dropdown.
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
:root {
|
|
2
2
|
--conduction-container-max-width: 1024px;
|
|
3
|
+
--conduction-container-padding-inline: unset;
|
|
3
4
|
}
|
|
4
5
|
|
|
5
6
|
.container {
|
|
6
7
|
width: 100%;
|
|
7
8
|
margin-inline: auto;
|
|
9
|
+
box-sizing: border-box;
|
|
10
|
+
padding-inline: var(--conduction-container-padding-inline);
|
|
8
11
|
max-width: var(--conduction-container-max-width);
|
|
9
12
|
}
|
package/lib/index.d.ts
CHANGED
|
@@ -8,7 +8,6 @@ import { ImageDivider } from "./components/imageDivider/ImageDivider";
|
|
|
8
8
|
import { AuthenticatedLogo, UnauthenticatedLogo } from "./components/logo/Logo";
|
|
9
9
|
import { MetaIcon } from "./components/metaIcon/MetaIcon";
|
|
10
10
|
import { PrivateRoute } from "./components/privateRoute/PrivateRoute";
|
|
11
|
-
import { StatusSteps } from "./components/statusSteps/StatusSteps";
|
|
12
11
|
import { PrimaryTopNav, SecondaryTopNav } from "./components/topNav";
|
|
13
12
|
import { Tag } from "./components/tag/Tag";
|
|
14
13
|
declare const NotificationPopUp: {
|
|
@@ -24,4 +23,4 @@ import { Pagination } from "./components/denhaag-wrappers/pagination/Pagination"
|
|
|
24
23
|
import { BadgeCounter } from "./components/badgeCounter/BadgeCounter";
|
|
25
24
|
import { CodeBlock } from "./components/codeBlock/CodeBlock";
|
|
26
25
|
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,
|
|
26
|
+
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, PrimaryTopNav, SecondaryTopNav, Tag, NotificationPopUp, QuoteWrapper, Pagination, BadgeCounter, CodeBlock, ToolTip, };
|
package/lib/index.js
CHANGED
|
@@ -7,7 +7,6 @@ import { ImageDivider } from "./components/imageDivider/ImageDivider";
|
|
|
7
7
|
import { AuthenticatedLogo, UnauthenticatedLogo } from "./components/logo/Logo";
|
|
8
8
|
import { MetaIcon } from "./components/metaIcon/MetaIcon";
|
|
9
9
|
import { PrivateRoute } from "./components/privateRoute/PrivateRoute";
|
|
10
|
-
import { StatusSteps } from "./components/statusSteps/StatusSteps";
|
|
11
10
|
import { PrimaryTopNav, SecondaryTopNav } from "./components/topNav";
|
|
12
11
|
import { Tag } from "./components/tag/Tag";
|
|
13
12
|
import { NotificationPopUpController, NotificationPopUp as _NotificationPopUp, } from "./components/notificationPopUp/NotificationPopUp";
|
|
@@ -17,4 +16,4 @@ import { Pagination } from "./components/denhaag-wrappers/pagination/Pagination"
|
|
|
17
16
|
import { BadgeCounter } from "./components/badgeCounter/BadgeCounter";
|
|
18
17
|
import { CodeBlock } from "./components/codeBlock/CodeBlock";
|
|
19
18
|
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,
|
|
19
|
+
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, 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.
|
|
3
|
+
"version": "2.1.32",
|
|
4
4
|
"description": "React (Gatsby) components used within the Conduction Skeleton Application (and its implementations)",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
"@gemeente-denhaag/divider": "0.2.3-alpha.205",
|
|
29
29
|
"@gemeente-denhaag/form-field": "0.1.1-alpha.98",
|
|
30
30
|
"@gemeente-denhaag/formcontrollabel": "0.2.3-alpha.222",
|
|
31
|
+
"@gemeente-denhaag/icons": "^0.2.3-alpha.317",
|
|
31
32
|
"@gemeente-denhaag/link": "0.2.3-alpha.205",
|
|
32
33
|
"@gemeente-denhaag/process-steps": "0.1.0-alpha.51",
|
|
33
34
|
"@gemeente-denhaag/sidenav": "0.1.0-alpha.40",
|
|
@@ -39,7 +40,7 @@
|
|
|
39
40
|
"@utrecht/component-library-react": "^1.0.0-alpha.319",
|
|
40
41
|
"clsx": "^1.1.1",
|
|
41
42
|
"gatsby": "^4.11.1",
|
|
42
|
-
"react": "^
|
|
43
|
+
"react": "^18.2.0",
|
|
43
44
|
"react-datepicker": "^4.10.0",
|
|
44
45
|
"react-hook-form": "7.29.0",
|
|
45
46
|
"react-select": "5.3.2",
|
|
@@ -47,9 +48,9 @@
|
|
|
47
48
|
},
|
|
48
49
|
"devDependencies": {
|
|
49
50
|
"@types/node": "^17.0.23",
|
|
50
|
-
"@types/react": "^
|
|
51
|
+
"@types/react": "^18.2.0",
|
|
51
52
|
"@types/react-datepicker": "^4.8.0",
|
|
52
|
-
"@types/react-dom": "^
|
|
53
|
+
"@types/react-dom": "^18.2.0",
|
|
53
54
|
"rimraf": "^4.4.0",
|
|
54
55
|
"tsc-hooks": "^1.1.1",
|
|
55
56
|
"typescript": "^4.6.3"
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
:root {
|
|
2
2
|
--conduction-container-max-width: 1024px;
|
|
3
|
+
--conduction-container-padding-inline: unset;
|
|
3
4
|
}
|
|
4
5
|
|
|
5
6
|
.container {
|
|
6
7
|
width: 100%;
|
|
7
8
|
margin-inline: auto;
|
|
9
|
+
box-sizing: border-box;
|
|
10
|
+
padding-inline: var(--conduction-container-padding-inline);
|
|
8
11
|
max-width: var(--conduction-container-max-width);
|
|
9
12
|
}
|
package/src/index.ts
CHANGED
|
@@ -26,7 +26,6 @@ import { ImageDivider } from "./components/imageDivider/ImageDivider";
|
|
|
26
26
|
import { AuthenticatedLogo, UnauthenticatedLogo } from "./components/logo/Logo";
|
|
27
27
|
import { MetaIcon } from "./components/metaIcon/MetaIcon";
|
|
28
28
|
import { PrivateRoute } from "./components/privateRoute/PrivateRoute";
|
|
29
|
-
import { StatusSteps } from "./components/statusSteps/StatusSteps";
|
|
30
29
|
import { PrimaryTopNav, SecondaryTopNav } from "./components/topNav";
|
|
31
30
|
import { Tag } from "./components/tag/Tag";
|
|
32
31
|
import {
|
|
@@ -66,7 +65,6 @@ export {
|
|
|
66
65
|
UnauthenticatedLogo,
|
|
67
66
|
MetaIcon,
|
|
68
67
|
PrivateRoute,
|
|
69
|
-
StatusSteps,
|
|
70
68
|
PrimaryTopNav,
|
|
71
69
|
SecondaryTopNav,
|
|
72
70
|
Tag,
|
|
@@ -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
|
-
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,54 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import {
|
|
3
|
-
Step,
|
|
4
|
-
StepExpandedIcon,
|
|
5
|
-
StepHeader,
|
|
6
|
-
StepHeading,
|
|
7
|
-
StepList,
|
|
8
|
-
StepMarker,
|
|
9
|
-
StepSection,
|
|
10
|
-
SubStep,
|
|
11
|
-
SubStepHeading,
|
|
12
|
-
SubStepList,
|
|
13
|
-
SubStepMarker,
|
|
14
|
-
} from "@gemeente-denhaag/process-steps";
|
|
15
|
-
|
|
16
|
-
interface IStatusStep {
|
|
17
|
-
title: string;
|
|
18
|
-
checked?: boolean;
|
|
19
|
-
current?: boolean;
|
|
20
|
-
expanded?: boolean;
|
|
21
|
-
subSteps?: string[];
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
interface StatusStepsProps {
|
|
25
|
-
steps: IStatusStep[];
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export const StatusSteps = ({ steps }: StatusStepsProps): JSX.Element => {
|
|
29
|
-
return (
|
|
30
|
-
<StepList>
|
|
31
|
-
{steps.map(({ title, checked, current, expanded, subSteps }, idx) => (
|
|
32
|
-
<Step key={idx} {...{ checked, current, expanded }}>
|
|
33
|
-
<StepSection>
|
|
34
|
-
<StepHeader>
|
|
35
|
-
<StepMarker>{idx + 1}</StepMarker>
|
|
36
|
-
<StepHeading>{title}</StepHeading>
|
|
37
|
-
{subSteps && <StepExpandedIcon />}
|
|
38
|
-
</StepHeader>
|
|
39
|
-
</StepSection>
|
|
40
|
-
{subSteps && (
|
|
41
|
-
<SubStepList>
|
|
42
|
-
{subSteps.map((subStep: string) => (
|
|
43
|
-
<SubStep key={idx}>
|
|
44
|
-
<SubStepMarker />
|
|
45
|
-
<SubStepHeading>{subStep}</SubStepHeading>
|
|
46
|
-
</SubStep>
|
|
47
|
-
))}
|
|
48
|
-
</SubStepList>
|
|
49
|
-
)}
|
|
50
|
-
</Step>
|
|
51
|
-
))}
|
|
52
|
-
</StepList>
|
|
53
|
-
);
|
|
54
|
-
};
|