@hortiview/shared-components 0.0.5566 → 0.0.5635

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,11 +15,11 @@ type DeleteModalProps = {
15
15
  /**
16
16
  * The header text of the delete modal.
17
17
  */
18
- deleteHeader: string;
18
+ deleteHeader: string | JSX.Element;
19
19
  /**
20
20
  * The body text of the delete modal. Each entry will be displayed as a bullet point.
21
21
  */
22
- deleteBody?: string[];
22
+ deleteBody?: (string | JSX.Element)[];
23
23
  /**
24
24
  * A text or JSX element to display in the delete modal. If provided the deleteBody will be ignored.
25
25
  */
@@ -27,7 +27,7 @@ type DeleteModalProps = {
27
27
  /**
28
28
  * The header to display in the modal if the {@link isDeletePossible} is false.
29
29
  */
30
- impossibleDeleteHeader: string;
30
+ impossibleDeleteHeader: string | JSX.Element;
31
31
  /**
32
32
  * The icon to display in the modal.
33
33
  */
@@ -1,9 +1,9 @@
1
1
  import "../../assets/DeleteModal.css";
2
2
  import { jsx as o, jsxs as m, Fragment as d } from "react/jsx-runtime";
3
3
  import { Modal as D, Button as u, Group as i, Icon as j, TypoBody as n } from "@element/react-components";
4
- import { Iconify as q } from "../Iconify/Iconify.js";
5
- import { uniqueId as x } from "lodash";
4
+ import { uniqueId as q } from "lodash";
6
5
  import { AvailableCustomIcons as g } from "../../enums/AvailableCustomIcons.js";
6
+ import { Iconify as x } from "../Iconify/Iconify.js";
7
7
  const I = "_bulletPoint_469qk_1", N = "_modal_469qk_6", S = "_colorDanger_469qk_10", e = {
8
8
  bulletPoint: I,
9
9
  modal: N,
@@ -45,7 +45,7 @@ const I = "_bulletPoint_469qk_1", N = "_modal_469qk_6", S = "_colorDanger_469qk_
45
45
  dismissiveButton: /* @__PURE__ */ o(u, { variant: "text", label: v, onClick: () => c(!1) }),
46
46
  children: /* @__PURE__ */ m(i, { direction: "vertical", secondaryAlign: "center", children: [
47
47
  l && Object.values(g).includes(l) && /* @__PURE__ */ o(
48
- q,
48
+ x,
49
49
  {
50
50
  icon: l,
51
51
  iconSize: "xlarge",
@@ -65,7 +65,7 @@ const I = "_bulletPoint_469qk_1", N = "_modal_469qk_6", S = "_colorDanger_469qk_
65
65
  themeColor: "text-secondary-on-background",
66
66
  children: a
67
67
  },
68
- x(_.toString())
68
+ q(_.toString())
69
69
  )) })
70
70
  ] }) : /* @__PURE__ */ o(n, { level: 1, themeColor: "text-primary-on-background", children: f }) })
71
71
  ] })
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hortiview/shared-components",
3
3
  "description": "This is a shared component library. It should used in the HortiView platform and its modules.",
4
- "version": "0.0.5566",
4
+ "version": "0.0.5635",
5
5
  "type": "module",
6
6
  "repository": "https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared",
7
7
  "author": "Falk Menge <falk.menge.ext@bayer.com>",