@dso-toolkit/react 90.2.0 → 91.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.
@@ -37,6 +37,15 @@ const section4 = {
37
37
  React.createElement("li", null, "Locatie 3.1"),
38
38
  React.createElement("li", null, "Locatie 3.2"))))))),
39
39
  };
40
+ const sectionWithHeadings = {
41
+ handleTitle: "Inhoudsopgave",
42
+ heading: "h2",
43
+ open: true,
44
+ content: (React.createElement(React.Fragment, null,
45
+ React.createElement("h2", null, "Aanvullende regels"),
46
+ React.createElement("h3", null, "Uit andere besluiten"),
47
+ React.createElement("h4", null, "Uit hoofdregeling omgevingsplan"))),
48
+ };
40
49
  export const basicSections = [
41
50
  section1,
42
51
  section2,
@@ -46,6 +55,7 @@ export const basicSections = [
46
55
  },
47
56
  section4,
48
57
  ];
58
+ export const compactSections = [...basicSections, sectionWithHeadings];
49
59
  export const anchorSections = [
50
60
  {
51
61
  ...section1,
@@ -1,7 +1,7 @@
1
1
  import readme from "@dso-toolkit/react/src/components/accordion/readme.md?raw";
2
2
  import { accordionMeta, accordionStories } from "dso-toolkit";
3
3
  import { templateContainer } from "../../templates";
4
- import { activatableSections, addonsSections, alignmentSections, anchorSections, basicSections, nestedSections, renvooiSections, } from "./accordion.content";
4
+ import { activatableSections, addonsSections, alignmentSections, anchorSections, basicSections, compactSections, nestedSections, renvooiSections, } from "./accordion.content";
5
5
  const meta = {
6
6
  ...accordionMeta({ readme }),
7
7
  title: "Accordion",
@@ -18,7 +18,7 @@ const { Default, Compact, CompactBlack, Neutral, Conclusion, HandleAnchors, Nest
18
18
  alignmentSections,
19
19
  anchorSections,
20
20
  conclusionSections: basicSections,
21
- compactSections: basicSections,
21
+ compactSections,
22
22
  compactBlackSections: basicSections,
23
23
  neutralSections: basicSections,
24
24
  nestedSections: nestedSections(templates),
@@ -48,7 +48,6 @@ export const richInfoRichContent = ({ toggletipTemplate }) => (React.createEleme
48
48
  " is wat minder opvallend.",
49
49
  toggletipTemplate({
50
50
  position: "right",
51
- secondary: true,
52
51
  children: React.createElement("p", null, "Een toggletip bij de banner"),
53
52
  })),
54
53
  React.createElement("p", null, "Maar kan ook rich content bevatten, bijvoorbeeld een extra paragraaf om meer uit te kunnen leggen")));
@@ -3,7 +3,7 @@ import { DsoInfoButton } from "../../components";
3
3
  export const reactInfoButton = {
4
4
  component: "infoButton",
5
5
  implementation: "react",
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)));
6
+ template: () => function infoButtonTemplate({ label, active, toggletipPlacement, dsoToggle, children }) {
7
+ return (React.createElement(DsoInfoButton, { label: label, active: active, toggletipPlacement: toggletipPlacement, onDsoToggle: (e) => dsoToggle?.(e.detail) }, children && React.createElement("div", { slot: "toggletip" }, children)));
8
8
  },
9
9
  };
@@ -7,7 +7,7 @@ const meta = {
7
7
  title: "Info Button",
8
8
  };
9
9
  export default meta;
10
- const { Default, Information, SecondaryActive, SecondaryInactive } = infoButtonStories({
10
+ const { Default, Information } = infoButtonStories({
11
11
  templateContainer,
12
12
  storyTemplates: (templates) => {
13
13
  const { infoButtonTemplate } = templates;
@@ -17,4 +17,4 @@ const { Default, Information, SecondaryActive, SecondaryInactive } = infoButtonS
17
17
  };
18
18
  },
19
19
  });
20
- export { Default, Information, SecondaryActive, SecondaryInactive };
20
+ export { Default, Information };
@@ -4,7 +4,7 @@ import readme from "./readme.md?raw";
4
4
  import { children } from "./toggletip.content";
5
5
  const meta = {
6
6
  ...toggletipMeta({ readme }),
7
- title: "Toggletip",
7
+ title: "Toggletip (Deprecated)",
8
8
  };
9
9
  export default meta;
10
10
  const { Toggletip } = toggletipStories({
@@ -2,6 +2,7 @@ import { AccordionSection } from "dso-toolkit";
2
2
  import React from "react";
3
3
  import { Templates } from "../../templates";
4
4
  export declare const basicSections: AccordionSection<React.JSX.Element>[];
5
+ export declare const compactSections: AccordionSection<React.JSX.Element>[];
5
6
  export declare const anchorSections: AccordionSection<React.JSX.Element>[];
6
7
  export declare function nestedSections({ accordionTemplate }: Templates): AccordionSection<React.JSX.Element>[];
7
8
  export declare const addonsSections: AccordionSection<React.JSX.Element>[];
@@ -18,21 +18,5 @@ declare const Default: import("storybook/internal/csf").BaseAnnotations<import("
18
18
  story?: Omit<import("storybook/internal/csf").StoryAnnotations<import("storybook/internal/csf").Renderer, InfoButtonArgs, Partial<InfoButtonArgs>>, "story"> | undefined;
19
19
  } & {
20
20
  args?: Partial<InfoButtonArgs> | undefined;
21
- }, SecondaryActive: import("storybook/internal/csf").BaseAnnotations<import("storybook/internal/csf").Renderer, InfoButtonArgs> & {
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, InfoButtonArgs> | undefined;
25
- globals?: import("storybook/internal/csf").Globals | undefined;
26
- story?: Omit<import("storybook/internal/csf").StoryAnnotations<import("storybook/internal/csf").Renderer, InfoButtonArgs, Partial<InfoButtonArgs>>, "story"> | undefined;
27
- } & {
28
- args?: Partial<InfoButtonArgs> | undefined;
29
- }, SecondaryInactive: import("storybook/internal/csf").BaseAnnotations<import("storybook/internal/csf").Renderer, InfoButtonArgs> & {
30
- name?: import("storybook/internal/csf").StoryName;
31
- storyName?: import("storybook/internal/csf").StoryName;
32
- play?: import("storybook/internal/csf").PlayFunction<import("storybook/internal/csf").Renderer, InfoButtonArgs> | undefined;
33
- globals?: import("storybook/internal/csf").Globals | undefined;
34
- story?: Omit<import("storybook/internal/csf").StoryAnnotations<import("storybook/internal/csf").Renderer, InfoButtonArgs, Partial<InfoButtonArgs>>, "story"> | undefined;
35
- } & {
36
- args?: Partial<InfoButtonArgs> | undefined;
37
21
  };
38
- export { Default, Information, SecondaryActive, SecondaryInactive };
22
+ export { Default, Information };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dso-toolkit/react",
3
3
  "type": "module",
4
- "version": "90.2.0",
4
+ "version": "91.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": {
@@ -18,34 +18,34 @@
18
18
  "dist/"
19
19
  ],
20
20
  "dependencies": {
21
- "@stencil/react-output-target": "^1.4.1"
21
+ "@stencil/react-output-target": "^1.4.2"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@iframe-resizer/child": "^5.5.9",
25
- "@stencil/core": "4.43.0",
26
- "@storybook/addon-a11y": "10.2.10",
27
- "@storybook/addon-docs": "10.2.10",
28
- "@storybook/builder-vite": "10.2.10",
29
- "@storybook/react-vite": "10.2.10",
25
+ "@stencil/core": "4.43.3",
26
+ "@storybook/addon-a11y": "10.3.3",
27
+ "@storybook/addon-docs": "10.3.3",
28
+ "@storybook/builder-vite": "10.3.3",
29
+ "@storybook/react-vite": "10.3.3",
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": "^90.2.0",
34
- "eslint": "^9.39.2",
35
- "eslint-plugin-storybook": "10.2.8",
33
+ "dso-toolkit": "^91.1.0",
34
+ "eslint": "^9.39.4",
35
+ "eslint-plugin-storybook": "10.3.3",
36
36
  "http-proxy-middleware": "^3.0.5",
37
37
  "lodash.startcase": "^4.4.0",
38
38
  "react": "^19.2.4",
39
39
  "react-dom": "^19.2.4",
40
40
  "rimraf": "^6.1.3",
41
- "storybook": "10.2.10",
41
+ "storybook": "10.3.3",
42
42
  "tslib": "^2.8.1",
43
43
  "typescript": "~5.9.3",
44
44
  "vite": "^7.3.1",
45
45
  "wait-on": "^9.0.4"
46
46
  },
47
47
  "peerDependencies": {
48
- "@dso-toolkit/core": "90.2.0",
48
+ "@dso-toolkit/core": "91.1.0",
49
49
  "react": "^18.3.0 || ^19.0.0",
50
50
  "react-dom": "^18.3.0 || ^19.0.0"
51
51
  },