@dso-toolkit/react 95.2.0 → 97.0.0-ghi-3769.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.
@@ -15,6 +15,7 @@ const { Error, Info, InfoCompactNonRemovable, Warning, InfoNonRemovable, RichWar
15
15
  bannerTemplate,
16
16
  errorRichContent: errorRichContent(templates),
17
17
  infoRichContent: infoRichContent(templates),
18
+ infoNonRemovableRichContent: infoCompactNonRemovableRichContent,
18
19
  infoCompactNonRemovableRichContent,
19
20
  warningRichContent: warningRichContent(templates),
20
21
  warningNonRemovableRichContent,
@@ -1,9 +1,10 @@
1
+ import { isCardInterface } from "dso-toolkit";
1
2
  import React from "react";
2
3
  import { DsoCardContainer } from "../../components";
3
4
  export const reactCardContainer = {
4
5
  component: "cardContainer",
5
6
  implementation: "react",
6
7
  template: ({ cardTemplate }) => function cardContainerTemplate({ mode, cards }) {
7
- return (React.createElement(DsoCardContainer, { mode: mode }, cards.map((card, index) => mode === "list" ? React.createElement("li", { key: index }, cardTemplate(card)) : cardTemplate(card))));
8
+ return (React.createElement(DsoCardContainer, { mode: mode }, cards.map((card, index) => mode === "list" ? (React.createElement("li", { key: index }, isCardInterface(card) && cardTemplate(card))) : (isCardInterface(card) && cardTemplate(card)))));
8
9
  },
9
10
  };
@@ -3,7 +3,7 @@ import { DsoIconButton } from "../../components";
3
3
  export const reactIconButton = {
4
4
  component: "iconButton",
5
5
  implementation: "react",
6
- template: () => function iconButtonTemplate({ label, variant, icon, disabled, tooltipPlacement, dsoClick }) {
7
- return (React.createElement(DsoIconButton, { label: label, variant: variant, icon: icon, disabled: disabled, tooltipPlacement: tooltipPlacement, onClick: dsoClick }));
6
+ template: () => function iconButtonTemplate({ label, variant, icon, disabled, tooltipPlacement, toggled, dsoClick }) {
7
+ return (React.createElement(DsoIconButton, { label: label, variant: variant, icon: icon, disabled: disabled, toggled: toggled, tooltipPlacement: tooltipPlacement, onClick: dsoClick }));
8
8
  },
9
9
  };
@@ -1,4 +1,4 @@
1
1
  import { CardContainer } from "dso-toolkit";
2
- import { JSX } from "react";
2
+ import React from "react";
3
3
  import { ComponentImplementation } from "../../templates";
4
- export declare const reactCardContainer: ComponentImplementation<CardContainer<JSX.Element>>;
4
+ export declare const reactCardContainer: ComponentImplementation<CardContainer<React.JSX.Element>>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dso-toolkit/react",
3
3
  "type": "module",
4
- "version": "95.2.0",
4
+ "version": "97.0.0-ghi-3769.0",
5
5
  "description": "React specific wrapper for @dso-toolkit/core web components",
6
6
  "homepage": "https://www.dso-toolkit.nl/",
7
7
  "repository": {
@@ -38,11 +38,11 @@
38
38
  "typescript": "~5.9.3",
39
39
  "vite": "^8.0.10",
40
40
  "wait-on": "^9.0.4",
41
- "@dso-toolkit/core": "95.2.0",
42
- "dso-toolkit": "95.2.0"
41
+ "dso-toolkit": "97.0.0-ghi-3769.0",
42
+ "@dso-toolkit/core": "97.0.0-ghi-3769.0"
43
43
  },
44
44
  "peerDependencies": {
45
- "@dso-toolkit/core": "95.2.0",
45
+ "@dso-toolkit/core": "97.0.0-ghi-3769.0",
46
46
  "react": "^18.3.0 || ^19.0.0",
47
47
  "react-dom": "^18.3.0 || ^19.0.0"
48
48
  },