@dso-toolkit/react 95.1.0 → 96.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/alert/alert.react-template.js +2 -2
- package/dist/components/card-container/card-container.react-template.js +2 -1
- package/dist/components/icon-button/icon-button.react-template.js +2 -2
- package/dist/types/components/card-container/card-container.react-template.d.ts +2 -2
- package/package.json +4 -4
|
@@ -3,10 +3,10 @@ import { DsoAlert } from "../../components";
|
|
|
3
3
|
export const reactAlert = {
|
|
4
4
|
component: "alert",
|
|
5
5
|
implementation: "react",
|
|
6
|
-
template: () => function alertTemplate({ message,
|
|
6
|
+
template: () => function alertTemplate({ message, interaction, status, compact, withRoleAlert, closable, dsoClose }) {
|
|
7
7
|
return (React.createElement(DsoAlert, { status: status, roleAlert: withRoleAlert, compact: compact, closable: closable, onDsoClose: (e) => dsoClose?.(e) },
|
|
8
8
|
React.createElement("div", { className: "dso-rich-content" },
|
|
9
9
|
typeof message === "string" ? React.createElement("div", { dangerouslySetInnerHTML: { __html: message } }) : message,
|
|
10
|
-
|
|
10
|
+
interaction && (React.createElement("button", { type: "button", className: "dso-primary dso-small" }, "Button")))));
|
|
11
11
|
},
|
|
12
12
|
};
|
|
@@ -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
|
|
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": "
|
|
4
|
+
"version": "96.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": {
|
|
@@ -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": "
|
|
42
|
-
"dso-toolkit": "
|
|
41
|
+
"@dso-toolkit/core": "96.0.0",
|
|
42
|
+
"dso-toolkit": "96.0.0"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"@dso-toolkit/core": "
|
|
45
|
+
"@dso-toolkit/core": "96.0.0",
|
|
46
46
|
"react": "^18.3.0 || ^19.0.0",
|
|
47
47
|
"react-dom": "^18.3.0 || ^19.0.0"
|
|
48
48
|
},
|