@dso-toolkit/react 91.1.0 → 92.0.0
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/dist/components/banner/banner.content.js +6 -4
- package/dist/components/card/card.content.js +7 -1
- package/dist/components/card/card.react-template.js +3 -3
- package/dist/components/card/card.stories.js +4 -3
- package/dist/components.js +0 -9
- package/dist/templates.js +0 -2
- package/dist/types/components/banner/banner.content.d.ts +1 -1
- package/dist/types/components/card/card.content.d.ts +3 -1
- package/dist/types/components/card/card.stories.d.ts +2 -2
- package/dist/types/components.d.ts +1 -4
- package/dist/types/templates.d.ts +1 -2
- package/package.json +3 -3
- package/dist/components/toggletip/toggletip.content.js +0 -7
- package/dist/components/toggletip/toggletip.react-template.js +0 -9
- package/dist/components/toggletip/toggletip.stories.js +0 -20
- package/dist/types/components/toggletip/toggletip.content.d.ts +0 -2
- package/dist/types/components/toggletip/toggletip.react-template.d.ts +0 -4
- package/dist/types/components/toggletip/toggletip.stories.d.ts +0 -6
|
@@ -41,14 +41,16 @@ export const richWarningRichContent = (templates) => (React.createElement(React.
|
|
|
41
41
|
React.createElement("code", null, "<p>"),
|
|
42
42
|
"-tag om paragrafen"))),
|
|
43
43
|
closeButton(templates)));
|
|
44
|
-
export const richInfoRichContent = ({
|
|
44
|
+
export const richInfoRichContent = ({ infoButtonTemplate }) => (React.createElement("div", { className: "dso-rich-content" },
|
|
45
45
|
React.createElement("p", null,
|
|
46
46
|
"Deze variant van de ",
|
|
47
47
|
React.createElement("strong", null, "banner"),
|
|
48
48
|
" is wat minder opvallend.",
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
infoButtonTemplate({
|
|
50
|
+
label: "Toelichting",
|
|
51
|
+
toggletipPlacement: "right",
|
|
52
|
+
children: (React.createElement("div", { className: "dso-rich-content" },
|
|
53
|
+
React.createElement("p", null, "Een Info Button met toggletip in de banner"))),
|
|
52
54
|
})),
|
|
53
55
|
React.createElement("p", null, "Maar kan ook rich content bevatten, bijvoorbeeld een extra paragraaf om meer uit te kunnen leggen")));
|
|
54
56
|
export const successRichContent = (templates) => (React.createElement(React.Fragment, null,
|
|
@@ -1,2 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from "react";
|
|
2
2
|
export const content = React.createElement("p", null, "Gemeente Nieuwegein informeert haar burgers graag over de Omgevingswet.");
|
|
3
|
+
export const infoButton = {
|
|
4
|
+
label: 'Toon informatie over het "Omgevingsplan Nieuwegein"',
|
|
5
|
+
children: (React.createElement("div", { className: "dso-rich-content" },
|
|
6
|
+
React.createElement("p", null, "Extra informatie over het \"Omgevingsplan Nieuwegein\""))),
|
|
7
|
+
toggletipPlacement: "left",
|
|
8
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { isButtonInterface, isLabelInterface, isSlideToggleInterface,
|
|
1
|
+
import { isButtonInterface, isInfoButtonInterface, isLabelInterface, isSlideToggleInterface, } from "dso-toolkit";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { DsoCard } from "../../components";
|
|
4
4
|
export const reactCard = {
|
|
5
5
|
component: "card",
|
|
6
6
|
implementation: "react",
|
|
7
|
-
template: ({ iconTemplate, labelTemplate,
|
|
7
|
+
template: ({ iconTemplate, labelTemplate, infoButtonTemplate, selectableTemplate, slideToggleTemplate }) => function cardTemplate({ label, selectable, content, interactions, href, active, mode, dsoCardClick }) {
|
|
8
8
|
return (React.createElement(DsoCard, { href: href, mode: mode, active: active, onDsoCardClick: (e) => {
|
|
9
9
|
if (!e.detail.isModifiedEvent) {
|
|
10
10
|
e.detail.originalEvent.preventDefault();
|
|
@@ -23,7 +23,7 @@ export const reactCard = {
|
|
|
23
23
|
interaction.screenreaderSuffix ? (React.createElement("span", { className: "sr-only" }, interaction.screenreaderSuffix)) : undefined),
|
|
24
24
|
interaction.icon && interaction.iconMode && iconTemplate(interaction.icon))),
|
|
25
25
|
isLabelInterface(interaction) && labelTemplate(interaction),
|
|
26
|
-
|
|
26
|
+
isInfoButtonInterface(interaction) && infoButtonTemplate(interaction),
|
|
27
27
|
isSlideToggleInterface(interaction) && slideToggleTemplate(interaction)))))),
|
|
28
28
|
content && (React.createElement("div", { slot: "content", className: "dso-rich-content" }, content))));
|
|
29
29
|
},
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import readme from "@dso-toolkit/react/src/components/card/readme.md?raw";
|
|
2
2
|
import { cardMeta, cardStories } from "dso-toolkit";
|
|
3
3
|
import { templateContainer } from "../../templates";
|
|
4
|
-
import { content } from "./card.content";
|
|
4
|
+
import { content, infoButton } from "./card.content";
|
|
5
5
|
const meta = {
|
|
6
6
|
...cardMeta({ readme }),
|
|
7
7
|
title: "Card",
|
|
8
8
|
};
|
|
9
9
|
export default meta;
|
|
10
|
-
const { Default, WithButton, WithSlideToggle,
|
|
10
|
+
const { Default, WithButton, WithSlideToggle, WithInfoButtonWithToggletip, WithLabel, WithSelectableAndButton } = cardStories({
|
|
11
11
|
templateContainer,
|
|
12
12
|
storyTemplates: (templates) => {
|
|
13
13
|
const { cardTemplate } = templates;
|
|
14
14
|
return {
|
|
15
15
|
cardTemplate,
|
|
16
16
|
content,
|
|
17
|
+
infoButton,
|
|
17
18
|
};
|
|
18
19
|
},
|
|
19
20
|
});
|
|
20
|
-
export { Default, WithButton, WithLabel, WithSelectableAndButton, WithSlideToggle
|
|
21
|
+
export { Default, WithButton, WithInfoButtonWithToggletip, WithLabel, WithSelectableAndButton, WithSlideToggle };
|
package/dist/components.js
CHANGED
|
@@ -67,7 +67,6 @@ import { DsoTab as DsoTabElement, defineCustomElement as defineDsoTab } from "@d
|
|
|
67
67
|
import { DsoTable as DsoTableElement, defineCustomElement as defineDsoTable } from "@dso-toolkit/core/dist/components/dso-table.js";
|
|
68
68
|
import { DsoTabs as DsoTabsElement, defineCustomElement as defineDsoTabs } from "@dso-toolkit/core/dist/components/dso-tabs.js";
|
|
69
69
|
import { DsoTijdreisBanner as DsoTijdreisBannerElement, defineCustomElement as defineDsoTijdreisBanner } from "@dso-toolkit/core/dist/components/dso-tijdreis-banner.js";
|
|
70
|
-
import { DsoToggletip as DsoToggletipElement, defineCustomElement as defineDsoToggletip } from "@dso-toolkit/core/dist/components/dso-toggletip.js";
|
|
71
70
|
import { DsoTooltip as DsoTooltipElement, defineCustomElement as defineDsoTooltip } from "@dso-toolkit/core/dist/components/dso-tooltip.js";
|
|
72
71
|
import { DsoTreeView as DsoTreeViewElement, defineCustomElement as defineDsoTreeView } from "@dso-toolkit/core/dist/components/dso-tree-view.js";
|
|
73
72
|
import { DsoViewerGrid as DsoViewerGridElement, defineCustomElement as defineDsoViewerGrid } from "@dso-toolkit/core/dist/components/dso-viewer-grid.js";
|
|
@@ -679,14 +678,6 @@ export const DsoTijdreisBanner = /*@__PURE__*/ createComponent({
|
|
|
679
678
|
events: {},
|
|
680
679
|
defineCustomElement: defineDsoTijdreisBanner
|
|
681
680
|
});
|
|
682
|
-
export const DsoToggletip = /*@__PURE__*/ createComponent({
|
|
683
|
-
tagName: 'dso-toggletip',
|
|
684
|
-
elementClass: DsoToggletipElement,
|
|
685
|
-
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
686
|
-
react: React,
|
|
687
|
-
events: {},
|
|
688
|
-
defineCustomElement: defineDsoToggletip
|
|
689
|
-
});
|
|
690
681
|
export const DsoTooltip = /*@__PURE__*/ createComponent({
|
|
691
682
|
tagName: 'dso-tooltip',
|
|
692
683
|
elementClass: DsoTooltipElement,
|
package/dist/templates.js
CHANGED
|
@@ -30,7 +30,6 @@ import { reactSelectable } from "./components/selectable/selectable.react-templa
|
|
|
30
30
|
import { reactSlideToggle } from "./components/slide-toggle/slide-toggle.react-template";
|
|
31
31
|
import { reactTable } from "./components/table/table.react-template";
|
|
32
32
|
import { reactTabs } from "./components/tabs/tabs.react-template";
|
|
33
|
-
import { reactToggletip } from "./components/toggletip/toggletip.react-template";
|
|
34
33
|
import { reactTooltip } from "./components/tooltip/tooltip.react-template";
|
|
35
34
|
import { reactTreeView } from "./components/tree-view/tree-view.react-template";
|
|
36
35
|
export const templateContainer = new TemplateContainer();
|
|
@@ -65,6 +64,5 @@ templateContainer.add(reactSelectable);
|
|
|
65
64
|
templateContainer.add(reactSlideToggle);
|
|
66
65
|
templateContainer.add(reactTable);
|
|
67
66
|
templateContainer.add(reactTabs);
|
|
68
|
-
templateContainer.add(reactToggletip);
|
|
69
67
|
templateContainer.add(reactTooltip);
|
|
70
68
|
templateContainer.add(reactTreeView);
|
|
@@ -6,5 +6,5 @@ export declare const errorRichContent: (templates: Templates) => React.JSX.Eleme
|
|
|
6
6
|
export declare const infoRichContent: (templates: Templates) => React.JSX.Element;
|
|
7
7
|
export declare const infoCompactNonRemovableRichContent: React.JSX.Element;
|
|
8
8
|
export declare const richWarningRichContent: (templates: Templates) => React.JSX.Element;
|
|
9
|
-
export declare const richInfoRichContent: ({
|
|
9
|
+
export declare const richInfoRichContent: ({ infoButtonTemplate }: Templates) => React.JSX.Element;
|
|
10
10
|
export declare const successRichContent: (templates: Templates) => React.JSX.Element;
|
|
@@ -26,7 +26,7 @@ declare const Default: import("storybook/internal/csf").BaseAnnotations<import("
|
|
|
26
26
|
story?: Omit<import("storybook/internal/csf").StoryAnnotations<import("storybook/internal/csf").Renderer, CardArgs, Partial<CardArgs>>, "story"> | undefined;
|
|
27
27
|
} & {
|
|
28
28
|
args?: Partial<CardArgs> | undefined;
|
|
29
|
-
},
|
|
29
|
+
}, WithInfoButtonWithToggletip: import("storybook/internal/csf").BaseAnnotations<import("storybook/internal/csf").Renderer, CardArgs> & {
|
|
30
30
|
name?: import("storybook/internal/csf").StoryName;
|
|
31
31
|
storyName?: import("storybook/internal/csf").StoryName;
|
|
32
32
|
play?: import("storybook/internal/csf").PlayFunction<import("storybook/internal/csf").Renderer, CardArgs> | undefined;
|
|
@@ -51,4 +51,4 @@ declare const Default: import("storybook/internal/csf").BaseAnnotations<import("
|
|
|
51
51
|
} & {
|
|
52
52
|
args?: Partial<CardArgs> | undefined;
|
|
53
53
|
};
|
|
54
|
-
export { Default, WithButton, WithLabel, WithSelectableAndButton, WithSlideToggle
|
|
54
|
+
export { Default, WithButton, WithInfoButtonWithToggletip, WithLabel, WithSelectableAndButton, WithSlideToggle };
|
|
@@ -71,7 +71,6 @@ import { DsoTab as DsoTabElement } from "@dso-toolkit/core/dist/components/dso-t
|
|
|
71
71
|
import { DsoTable as DsoTableElement } from "@dso-toolkit/core/dist/components/dso-table.js";
|
|
72
72
|
import { DsoTabs as DsoTabsElement } from "@dso-toolkit/core/dist/components/dso-tabs.js";
|
|
73
73
|
import { DsoTijdreisBanner as DsoTijdreisBannerElement } from "@dso-toolkit/core/dist/components/dso-tijdreis-banner.js";
|
|
74
|
-
import { DsoToggletip as DsoToggletipElement } from "@dso-toolkit/core/dist/components/dso-toggletip.js";
|
|
75
74
|
import { DsoTooltip as DsoTooltipElement } from "@dso-toolkit/core/dist/components/dso-tooltip.js";
|
|
76
75
|
import { DsoTreeView as DsoTreeViewElement } from "@dso-toolkit/core/dist/components/dso-tree-view.js";
|
|
77
76
|
import { DsoViewerGrid as DsoViewerGridElement } from "@dso-toolkit/core/dist/components/dso-viewer-grid.js";
|
|
@@ -91,7 +90,7 @@ export declare const DsoActionList: StencilReactComponent<DsoActionListElement,
|
|
|
91
90
|
export type DsoActionListItemEvents = NonNullable<unknown>;
|
|
92
91
|
export declare const DsoActionListItem: StencilReactComponent<DsoActionListItemElement, DsoActionListItemEvents>;
|
|
93
92
|
export type DsoAdvancedSelectEvents = {
|
|
94
|
-
onDsoChange: EventName<DsoAdvancedSelectCustomEvent<AdvancedSelectChangeEvent<
|
|
93
|
+
onDsoChange: EventName<DsoAdvancedSelectCustomEvent<AdvancedSelectChangeEvent<unknown>>>;
|
|
95
94
|
onDsoRedirect: EventName<DsoAdvancedSelectCustomEvent<AdvancedSelectRedirectEvent>>;
|
|
96
95
|
};
|
|
97
96
|
export declare const DsoAdvancedSelect: StencilReactComponent<DsoAdvancedSelectElement, DsoAdvancedSelectEvents>;
|
|
@@ -338,8 +337,6 @@ export type DsoTabsEvents = NonNullable<unknown>;
|
|
|
338
337
|
export declare const DsoTabs: StencilReactComponent<DsoTabsElement, DsoTabsEvents>;
|
|
339
338
|
export type DsoTijdreisBannerEvents = NonNullable<unknown>;
|
|
340
339
|
export declare const DsoTijdreisBanner: StencilReactComponent<DsoTijdreisBannerElement, DsoTijdreisBannerEvents>;
|
|
341
|
-
export type DsoToggletipEvents = NonNullable<unknown>;
|
|
342
|
-
export declare const DsoToggletip: StencilReactComponent<DsoToggletipElement, DsoToggletipEvents>;
|
|
343
340
|
export type DsoTooltipEvents = NonNullable<unknown>;
|
|
344
341
|
export declare const DsoTooltip: StencilReactComponent<DsoTooltipElement, DsoTooltipEvents>;
|
|
345
342
|
export type DsoTreeViewEvents = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Accordion, ActionList, Alert, AttachmentsCounter, Autosuggest, Badge, Banner, BaseComponentImplementation, Card, CardContainer, ComponentsToTemplates, ContactInformation, DatePicker, DropdownMenu, Expandable, Header, Heading, HighlightBox, Icon, ImageOverlay, Info, InfoButton, Label, ListButton, Modal, OzonContent, Pagination, ProgressIndicator, ResponsiveElement, Scrollable, Selectable, SlideToggle, Table, Tabs, TemplateContainer,
|
|
1
|
+
import { Accordion, ActionList, Alert, AttachmentsCounter, Autosuggest, Badge, Banner, BaseComponentImplementation, Card, CardContainer, ComponentsToTemplates, ContactInformation, DatePicker, DropdownMenu, Expandable, Header, Heading, HighlightBox, Icon, ImageOverlay, Info, InfoButton, Label, ListButton, Modal, OzonContent, Pagination, ProgressIndicator, ResponsiveElement, Scrollable, Selectable, SlideToggle, Table, Tabs, TemplateContainer, Tooltip, TreeView } from "dso-toolkit";
|
|
2
2
|
import { JSX } from "react";
|
|
3
3
|
export interface Components {
|
|
4
4
|
accordion: Accordion<JSX.Element>;
|
|
@@ -33,7 +33,6 @@ export interface Components {
|
|
|
33
33
|
slideToggle: SlideToggle;
|
|
34
34
|
table: Table<JSX.Element>;
|
|
35
35
|
tabs: Tabs<JSX.Element>;
|
|
36
|
-
toggletip: Toggletip<JSX.Element>;
|
|
37
36
|
tooltip: Tooltip;
|
|
38
37
|
treeView: TreeView;
|
|
39
38
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dso-toolkit/react",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "92.0.0",
|
|
5
5
|
"description": "React specific wrapper for @dso-toolkit/core web components",
|
|
6
6
|
"homepage": "https://www.dso-toolkit.nl/",
|
|
7
7
|
"repository": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"@types/lodash.startcase": "^4.4.9",
|
|
31
31
|
"@types/react": "^19.2.14",
|
|
32
32
|
"@types/react-dom": "^19.2.3",
|
|
33
|
-
"dso-toolkit": "^
|
|
33
|
+
"dso-toolkit": "^92.0.0",
|
|
34
34
|
"eslint": "^9.39.4",
|
|
35
35
|
"eslint-plugin-storybook": "10.3.3",
|
|
36
36
|
"http-proxy-middleware": "^3.0.5",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"wait-on": "^9.0.4"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"@dso-toolkit/core": "
|
|
48
|
+
"@dso-toolkit/core": "92.0.0",
|
|
49
49
|
"react": "^18.3.0 || ^19.0.0",
|
|
50
50
|
"react-dom": "^18.3.0 || ^19.0.0"
|
|
51
51
|
},
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
export const children = (React.createElement("div", { className: "dso-rich-content" },
|
|
3
|
-
React.createElement("h2", null, "Introductie DSO"),
|
|
4
|
-
React.createElement("p", null,
|
|
5
|
-
"Het ",
|
|
6
|
-
React.createElement("a", { href: "https://iplo.nl/digitaal-stelsel/" }, "Digitaal Stelsel Omgevingswet (DSO)"),
|
|
7
|
-
" ondersteunt de uitvoering van de Omgevingswet. Het bestaat uit lokale systemen van overheden en de onderdelen van de landelijke voorziening (DSO-LV), zoals het Omgevingsloket.")));
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { DsoToggletip } from "../../components";
|
|
3
|
-
export const reactToggletip = {
|
|
4
|
-
component: "toggletip",
|
|
5
|
-
implementation: "react",
|
|
6
|
-
template: () => function toggletipTemplate({ children, label, position, small }) {
|
|
7
|
-
return (React.createElement(DsoToggletip, { label: label, position: position, small: small }, children));
|
|
8
|
-
},
|
|
9
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { toggletipMeta, toggletipStories } from "dso-toolkit";
|
|
2
|
-
import { templateContainer } from "../../templates";
|
|
3
|
-
import readme from "./readme.md?raw";
|
|
4
|
-
import { children } from "./toggletip.content";
|
|
5
|
-
const meta = {
|
|
6
|
-
...toggletipMeta({ readme }),
|
|
7
|
-
title: "Toggletip (Deprecated)",
|
|
8
|
-
};
|
|
9
|
-
export default meta;
|
|
10
|
-
const { Toggletip } = toggletipStories({
|
|
11
|
-
templateContainer,
|
|
12
|
-
storyTemplates: (templates) => {
|
|
13
|
-
const { toggletipTemplate } = templates;
|
|
14
|
-
return {
|
|
15
|
-
toggletipTemplate,
|
|
16
|
-
children,
|
|
17
|
-
};
|
|
18
|
-
},
|
|
19
|
-
});
|
|
20
|
-
export { Toggletip };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Meta } from "@storybook/react-vite";
|
|
2
|
-
import { ToggletipArgs } from "dso-toolkit";
|
|
3
|
-
declare const meta: Meta<ToggletipArgs>;
|
|
4
|
-
export default meta;
|
|
5
|
-
declare const Toggletip: import("dso-toolkit/dist/template-container").StoryObj<ToggletipArgs, import("storybook/internal/csf").Renderer>;
|
|
6
|
-
export { Toggletip };
|