@dso-toolkit/react 87.0.0 → 88.1.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.
@@ -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 * as React from "react";
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 { Active, Inactive, SecondaryActive, SecondaryInactive } = infoButtonStories({
10
+ const { Default, Information, SecondaryActive, SecondaryInactive } = infoButtonStories({
10
11
  templateContainer,
11
12
  storyTemplates: (templates) => {
12
13
  const { infoButtonTemplate } = templates;
13
- return { infoButtonTemplate };
14
+ return {
15
+ infoButtonTemplate,
16
+ children,
17
+ };
14
18
  },
15
19
  });
16
- export { Active, Inactive, SecondaryActive, SecondaryInactive };
20
+ export { Default, Information, SecondaryActive, SecondaryInactive };
@@ -0,0 +1,2 @@
1
+ import * as React from "react";
2
+ export declare const children: React.JSX.Element;
@@ -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 Active: import("storybook/internal/csf").BaseAnnotations<import("storybook/internal/csf").Renderer, InfoButtonArgs> & {
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
- }, Inactive: import("storybook/internal/csf").BaseAnnotations<import("storybook/internal/csf").Renderer, InfoButtonArgs> & {
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 { Active, Inactive, SecondaryActive, SecondaryInactive };
38
+ export { Default, Information, SecondaryActive, SecondaryInactive };
@@ -20,7 +20,7 @@ export interface Components {
20
20
  icon: Icon;
21
21
  imageOverlay: ImageOverlay;
22
22
  info: Info<JSX.Element>;
23
- infoButton: InfoButton;
23
+ infoButton: InfoButton<JSX.Element>;
24
24
  label: Label;
25
25
  listButton: ListButton;
26
26
  modal: Modal<JSX.Element>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dso-toolkit/react",
3
3
  "type": "module",
4
- "version": "87.0.0",
4
+ "version": "88.1.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": "^87.0.0",
33
+ "dso-toolkit": "^88.1.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": "87.0.0",
48
+ "@dso-toolkit/core": "88.1.0",
49
49
  "react": "^18.3.0 || ^19.0.0",
50
50
  "react-dom": "^18.3.0 || ^19.0.0"
51
51
  },