@dso-toolkit/react 86.0.0 → 88.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/highlight-box/highlight-box.react-template.js +2 -2
- package/dist/components/highlight-box/highlight-box.stories.js +2 -2
- package/dist/components/info-button/info-button.content.js +8 -0
- package/dist/components/info-button/info-button.react-template.js +3 -3
- package/dist/components/info-button/info-button.stories.js +7 -3
- package/dist/components.js +9 -0
- package/dist/types/components/highlight-box/highlight-box.stories.d.ts +9 -1
- package/dist/types/components/info-button/info-button.content.d.ts +2 -0
- package/dist/types/components/info-button/info-button.react-template.d.ts +2 -1
- package/dist/types/components/info-button/info-button.stories.d.ts +3 -3
- package/dist/types/components.d.ts +3 -0
- package/dist/types/templates.d.ts +1 -1
- package/package.json +3 -3
|
@@ -3,8 +3,8 @@ import { DsoHighlightBox } from "../../components";
|
|
|
3
3
|
export const reactHighlightBox = {
|
|
4
4
|
component: "highlightBox",
|
|
5
5
|
implementation: "react",
|
|
6
|
-
template: ({ iconTemplate }) => function highlightBoxTemplate({ yellow, white, dropShadow, border, step, icon, content }) {
|
|
7
|
-
return (React.createElement(DsoHighlightBox, { step: step, yellow: yellow, white: white, dropShadow: dropShadow, border: border },
|
|
6
|
+
template: ({ iconTemplate }) => function highlightBoxTemplate({ yellow, white, green, dropShadow, border, step, icon, content }) {
|
|
7
|
+
return (React.createElement(DsoHighlightBox, { step: step, yellow: yellow, white: white, green: green, dropShadow: dropShadow, border: border },
|
|
8
8
|
icon && iconTemplate({ icon, slot: "icon" }),
|
|
9
9
|
typeof content === "string" ? (React.createElement("div", { className: "dso-rich-content", dangerouslySetInnerHTML: { __html: content } })) : (React.createElement("div", { className: "dso-rich-content" }, content))));
|
|
10
10
|
},
|
|
@@ -7,7 +7,7 @@ const meta = {
|
|
|
7
7
|
title: "Highlight Box",
|
|
8
8
|
};
|
|
9
9
|
export default meta;
|
|
10
|
-
const { Default, Yellow, WhiteWithDropshadow, WithBorder, WithIcon, WithBannerImage } = highlightBoxStories({
|
|
10
|
+
const { Default, Yellow, Green, WhiteWithDropshadow, WithBorder, WithIcon, WithBannerImage } = highlightBoxStories({
|
|
11
11
|
templateContainer,
|
|
12
12
|
storyTemplates: (templates) => {
|
|
13
13
|
const { highlightBoxTemplate, iconTemplate } = templates;
|
|
@@ -39,4 +39,4 @@ const { Default, Yellow, WhiteWithDropshadow, WithBorder, WithIcon, WithBannerIm
|
|
|
39
39
|
};
|
|
40
40
|
},
|
|
41
41
|
});
|
|
42
|
-
export { Default, WhiteWithDropshadow, WithBannerImage, WithBorder, WithIcon, Yellow };
|
|
42
|
+
export { Default, Green, WhiteWithDropshadow, WithBannerImage, WithBorder, WithIcon, Yellow };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export const children = (React.createElement("div", { className: "dso-rich-content" },
|
|
3
|
+
React.createElement("h2", null, "Samenspel tussen wetgever en ontwikkelaars"),
|
|
4
|
+
React.createElement("p", null,
|
|
5
|
+
"Het DSO wordt ontwikkeld door het programma",
|
|
6
|
+
" ",
|
|
7
|
+
React.createElement("a", { href: "https://aandeslagmetdeomgevingswet.nl/digitaal-stelsel/" }, "Aan de slag met de Omgevingswet"),
|
|
8
|
+
" in samenwerking met haar partners. De ontwikkeling vraagt een intensief samenspel tussen de wetgever en de ontwikkelpartners van het DSO. Enerzijds moeten wetgever en de ontwikkelpartners zorgen dat alles wat in de wet- en regelgeving wordt geregeld ook makkelijk toegankelijk is of kan worden. Anderzijds moeten zij zorgen dat alles wat digitaal wordt gerealiseerd, ook juridisch verankerd is of kan worden.")));
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from "react";
|
|
2
2
|
import { DsoInfoButton } from "../../components";
|
|
3
3
|
export const reactInfoButton = {
|
|
4
4
|
component: "infoButton",
|
|
5
5
|
implementation: "react",
|
|
6
|
-
template: () => function infoButtonTemplate({ label, active, secondary, dsoToggle }) {
|
|
7
|
-
return (React.createElement(DsoInfoButton, { label: label, active: active, secondary: secondary, onDsoToggle: (e) => dsoToggle?.(e.detail) }));
|
|
6
|
+
template: () => function infoButtonTemplate({ label, active, toggletipPlacement, secondary, dsoToggle, children }) {
|
|
7
|
+
return (React.createElement(DsoInfoButton, { label: label, active: active, secondary: secondary, toggletipPlacement: toggletipPlacement, onDsoToggle: (e) => dsoToggle?.(e.detail) }, children && React.createElement("div", { slot: "toggletip" }, children)));
|
|
8
8
|
},
|
|
9
9
|
};
|
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
import { infoButtonMeta, infoButtonStories } from "dso-toolkit";
|
|
2
2
|
import { templateContainer } from "../../templates";
|
|
3
|
+
import { children } from "./info-button.content";
|
|
3
4
|
import readme from "./readme.md?raw";
|
|
4
5
|
const meta = {
|
|
5
6
|
...infoButtonMeta({ readme }),
|
|
6
7
|
title: "Info Button",
|
|
7
8
|
};
|
|
8
9
|
export default meta;
|
|
9
|
-
const {
|
|
10
|
+
const { Default, Information, SecondaryActive, SecondaryInactive } = infoButtonStories({
|
|
10
11
|
templateContainer,
|
|
11
12
|
storyTemplates: (templates) => {
|
|
12
13
|
const { infoButtonTemplate } = templates;
|
|
13
|
-
return {
|
|
14
|
+
return {
|
|
15
|
+
infoButtonTemplate,
|
|
16
|
+
children,
|
|
17
|
+
};
|
|
14
18
|
},
|
|
15
19
|
});
|
|
16
|
-
export {
|
|
20
|
+
export { Default, Information, SecondaryActive, SecondaryInactive };
|
package/dist/components.js
CHANGED
|
@@ -18,6 +18,7 @@ import { DsoButtonGroup as DsoButtonGroupElement, defineCustomElement as defineD
|
|
|
18
18
|
import { DsoCardContainer as DsoCardContainerElement, defineCustomElement as defineDsoCardContainer } from "@dso-toolkit/core/dist/components/dso-card-container.js";
|
|
19
19
|
import { DsoCard as DsoCardElement, defineCustomElement as defineDsoCard } from "@dso-toolkit/core/dist/components/dso-card.js";
|
|
20
20
|
import { DsoContactInformation as DsoContactInformationElement, defineCustomElement as defineDsoContactInformation } from "@dso-toolkit/core/dist/components/dso-contact-information.js";
|
|
21
|
+
import { DsoCursorTooltip as DsoCursorTooltipElement, defineCustomElement as defineDsoCursorTooltip } from "@dso-toolkit/core/dist/components/dso-cursor-tooltip.js";
|
|
21
22
|
import { DsoDatePicker as DsoDatePickerElement, defineCustomElement as defineDsoDatePicker } from "@dso-toolkit/core/dist/components/dso-date-picker.js";
|
|
22
23
|
import { DsoDocumentCard as DsoDocumentCardElement, defineCustomElement as defineDsoDocumentCard } from "@dso-toolkit/core/dist/components/dso-document-card.js";
|
|
23
24
|
import { DsoDocumentComponent as DsoDocumentComponentElement, defineCustomElement as defineDsoDocumentComponent } from "@dso-toolkit/core/dist/components/dso-document-component.js";
|
|
@@ -234,6 +235,14 @@ export const DsoContactInformation = /*@__PURE__*/ createComponent({
|
|
|
234
235
|
events: {},
|
|
235
236
|
defineCustomElement: defineDsoContactInformation
|
|
236
237
|
});
|
|
238
|
+
export const DsoCursorTooltip = /*@__PURE__*/ createComponent({
|
|
239
|
+
tagName: 'dso-cursor-tooltip',
|
|
240
|
+
elementClass: DsoCursorTooltipElement,
|
|
241
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
242
|
+
react: React,
|
|
243
|
+
events: {},
|
|
244
|
+
defineCustomElement: defineDsoCursorTooltip
|
|
245
|
+
});
|
|
237
246
|
export const DsoDatePicker = /*@__PURE__*/ createComponent({
|
|
238
247
|
tagName: 'dso-date-picker',
|
|
239
248
|
elementClass: DsoDatePickerElement,
|
|
@@ -18,6 +18,14 @@ declare const Default: import("storybook/internal/csf").BaseAnnotations<import("
|
|
|
18
18
|
story?: Omit<import("storybook/internal/csf").StoryAnnotations<import("storybook/internal/csf").Renderer, HighlightBoxArgs, Partial<HighlightBoxArgs>>, "story"> | undefined;
|
|
19
19
|
} & {
|
|
20
20
|
args?: Partial<HighlightBoxArgs> | undefined;
|
|
21
|
+
}, Green: import("storybook/internal/csf").BaseAnnotations<import("storybook/internal/csf").Renderer, HighlightBoxArgs> & {
|
|
22
|
+
name?: import("storybook/internal/csf").StoryName;
|
|
23
|
+
storyName?: import("storybook/internal/csf").StoryName;
|
|
24
|
+
play?: import("storybook/internal/csf").PlayFunction<import("storybook/internal/csf").Renderer, HighlightBoxArgs> | undefined;
|
|
25
|
+
globals?: import("storybook/internal/csf").Globals | undefined;
|
|
26
|
+
story?: Omit<import("storybook/internal/csf").StoryAnnotations<import("storybook/internal/csf").Renderer, HighlightBoxArgs, Partial<HighlightBoxArgs>>, "story"> | undefined;
|
|
27
|
+
} & {
|
|
28
|
+
args?: Partial<HighlightBoxArgs> | undefined;
|
|
21
29
|
}, WhiteWithDropshadow: import("storybook/internal/csf").BaseAnnotations<import("storybook/internal/csf").Renderer, HighlightBoxArgs> & {
|
|
22
30
|
name?: import("storybook/internal/csf").StoryName;
|
|
23
31
|
storyName?: import("storybook/internal/csf").StoryName;
|
|
@@ -51,4 +59,4 @@ declare const Default: import("storybook/internal/csf").BaseAnnotations<import("
|
|
|
51
59
|
} & {
|
|
52
60
|
args?: Partial<HighlightBoxArgs> | undefined;
|
|
53
61
|
};
|
|
54
|
-
export { Default, WhiteWithDropshadow, WithBannerImage, WithBorder, WithIcon, Yellow };
|
|
62
|
+
export { Default, Green, WhiteWithDropshadow, WithBannerImage, WithBorder, WithIcon, Yellow };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { InfoButton } from "dso-toolkit";
|
|
2
|
+
import { JSX } from "react";
|
|
2
3
|
import { ComponentImplementation } from "../../templates";
|
|
3
|
-
export declare const reactInfoButton: ComponentImplementation<InfoButton
|
|
4
|
+
export declare const reactInfoButton: ComponentImplementation<InfoButton<JSX.Element>>;
|
|
@@ -2,7 +2,7 @@ import type { Meta } from "@storybook/react-vite";
|
|
|
2
2
|
import { InfoButtonArgs } from "dso-toolkit";
|
|
3
3
|
declare const meta: Meta<InfoButtonArgs>;
|
|
4
4
|
export default meta;
|
|
5
|
-
declare const
|
|
5
|
+
declare const Default: import("storybook/internal/csf").BaseAnnotations<import("storybook/internal/csf").Renderer, InfoButtonArgs> & {
|
|
6
6
|
name?: import("storybook/internal/csf").StoryName;
|
|
7
7
|
storyName?: import("storybook/internal/csf").StoryName;
|
|
8
8
|
play?: import("storybook/internal/csf").PlayFunction<import("storybook/internal/csf").Renderer, InfoButtonArgs> | undefined;
|
|
@@ -10,7 +10,7 @@ declare const Active: import("storybook/internal/csf").BaseAnnotations<import("s
|
|
|
10
10
|
story?: Omit<import("storybook/internal/csf").StoryAnnotations<import("storybook/internal/csf").Renderer, InfoButtonArgs, Partial<InfoButtonArgs>>, "story"> | undefined;
|
|
11
11
|
} & {
|
|
12
12
|
args?: Partial<InfoButtonArgs> | undefined;
|
|
13
|
-
},
|
|
13
|
+
}, Information: import("storybook/internal/csf").BaseAnnotations<import("storybook/internal/csf").Renderer, InfoButtonArgs> & {
|
|
14
14
|
name?: import("storybook/internal/csf").StoryName;
|
|
15
15
|
storyName?: import("storybook/internal/csf").StoryName;
|
|
16
16
|
play?: import("storybook/internal/csf").PlayFunction<import("storybook/internal/csf").Renderer, InfoButtonArgs> | undefined;
|
|
@@ -35,4 +35,4 @@ declare const Active: import("storybook/internal/csf").BaseAnnotations<import("s
|
|
|
35
35
|
} & {
|
|
36
36
|
args?: Partial<InfoButtonArgs> | undefined;
|
|
37
37
|
};
|
|
38
|
-
export {
|
|
38
|
+
export { Default, Information, SecondaryActive, SecondaryInactive };
|
|
@@ -22,6 +22,7 @@ import { DsoButtonGroup as DsoButtonGroupElement } from "@dso-toolkit/core/dist/
|
|
|
22
22
|
import { DsoCardContainer as DsoCardContainerElement } from "@dso-toolkit/core/dist/components/dso-card-container.js";
|
|
23
23
|
import { DsoCard as DsoCardElement } from "@dso-toolkit/core/dist/components/dso-card.js";
|
|
24
24
|
import { DsoContactInformation as DsoContactInformationElement } from "@dso-toolkit/core/dist/components/dso-contact-information.js";
|
|
25
|
+
import { DsoCursorTooltip as DsoCursorTooltipElement } from "@dso-toolkit/core/dist/components/dso-cursor-tooltip.js";
|
|
25
26
|
import { DsoDatePicker as DsoDatePickerElement } from "@dso-toolkit/core/dist/components/dso-date-picker.js";
|
|
26
27
|
import { DsoDocumentCard as DsoDocumentCardElement } from "@dso-toolkit/core/dist/components/dso-document-card.js";
|
|
27
28
|
import { DsoDocumentComponent as DsoDocumentComponentElement } from "@dso-toolkit/core/dist/components/dso-document-component.js";
|
|
@@ -137,6 +138,8 @@ export type DsoCardContainerEvents = NonNullable<unknown>;
|
|
|
137
138
|
export declare const DsoCardContainer: StencilReactComponent<DsoCardContainerElement, DsoCardContainerEvents>;
|
|
138
139
|
export type DsoContactInformationEvents = NonNullable<unknown>;
|
|
139
140
|
export declare const DsoContactInformation: StencilReactComponent<DsoContactInformationElement, DsoContactInformationEvents>;
|
|
141
|
+
export type DsoCursorTooltipEvents = NonNullable<unknown>;
|
|
142
|
+
export declare const DsoCursorTooltip: StencilReactComponent<DsoCursorTooltipElement, DsoCursorTooltipEvents>;
|
|
140
143
|
export type DsoDatePickerEvents = {
|
|
141
144
|
onDsoDateChange: EventName<DsoDatePickerCustomEvent<DatePickerChangeEvent>>;
|
|
142
145
|
onDsoBlur: EventName<DsoDatePickerCustomEvent<DatePickerBlurEvent>>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dso-toolkit/react",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "88.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.7",
|
|
32
32
|
"@types/react-dom": "^19.2.3",
|
|
33
|
-
"dso-toolkit": "^
|
|
33
|
+
"dso-toolkit": "^88.0.0",
|
|
34
34
|
"eslint": "^9.39.2",
|
|
35
35
|
"eslint-plugin-storybook": "10.1.9",
|
|
36
36
|
"http-proxy-middleware": "^3.0.5",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"wait-on": "^9.0.3"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"@dso-toolkit/core": "
|
|
48
|
+
"@dso-toolkit/core": "88.0.0",
|
|
49
49
|
"react": "^18.3.0 || ^19.0.0",
|
|
50
50
|
"react-dom": "^18.3.0 || ^19.0.0"
|
|
51
51
|
},
|