@hortiview/shared-components 2.24.1 → 2.24.2

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/CHANGELOG.md CHANGED
@@ -1,3 +1,16 @@
1
+ ## [2.24.2](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/compare/v2.24.1...v2.24.2) (2026-05-06)
2
+
3
+ ### Bug Fixes
4
+
5
+ * disable cancel button when delete is pending ([538317e](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/commit/538317e474c0ce894eef736a9675a48279c1fa76))
6
+ * mandatory isDeletePending prop ([96ee69b](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/commit/96ee69bc4019b299a9da7901dad6bb69a9147ace))
7
+ * mandatory isLoading prop ([1fd0cb2](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/commit/1fd0cb241ce44f7ffc176b444be72708df214de1))
8
+ * mandatory isStepLoading prop ([67b7d3b](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/commit/67b7d3bed2e962ddd904559642042c20ae3d2f24))
9
+
10
+ ### Styles
11
+
12
+ * ensure loading spinner can always have full size ([4c155f1](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/commit/4c155f1d4ca875a2ef5ec70373018444384133b9))
13
+
1
14
  ## [2.24.1](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/compare/v2.24.0...v2.24.1) (2026-05-06)
2
15
 
3
16
  ### Code Refactoring
@@ -28,7 +28,7 @@ export type AllowedButtonProps = Omit<ButtonProps & React.HTMLProps<HTMLButtonEl
28
28
  * If true, the button shows a loading spinner instead of the label.
29
29
  * While true, the button is disabled.
30
30
  */
31
- isLoading?: boolean;
31
+ isLoading: boolean;
32
32
  /**
33
33
  * Can be a string or JSX.Element for setting a loading spinner or custom component.
34
34
  */
@@ -63,7 +63,7 @@ type DeleteModalProps = {
63
63
  /**
64
64
  * Whether the delete action is pending; shows a loading state on the confirm button when true.
65
65
  */
66
- isDeletePending?: boolean;
66
+ isDeletePending: boolean;
67
67
  /**
68
68
  * Whether the user is online; shows OfflineView when false.
69
69
  */
@@ -2,10 +2,10 @@ import { jsx as o, jsxs as b, Fragment as c } from "react/jsx-runtime";
2
2
  import { B as f } from "../../index.es-B19PQgzU.js";
3
3
  import { G as m } from "../../index.es-Z0aF-7Cn.js";
4
4
  import { I as S } from "../../index.es-DEBGoIKX.js";
5
- import { T as l } from "../../index.es-DUrjyxNI.js";
6
- import { u as x } from "../../uniqueId-CJo-XRQb.js";
7
- import { AvailableCustomIcons as N } from "../../enums/AvailableCustomIcons.js";
8
- import { useBreakpoints as O } from "../../hooks/useBreakpoints.js";
5
+ import { T as i } from "../../index.es-DUrjyxNI.js";
6
+ import { u as N } from "../../uniqueId-CJo-XRQb.js";
7
+ import { AvailableCustomIcons as O } from "../../enums/AvailableCustomIcons.js";
8
+ import { useBreakpoints as x } from "../../hooks/useBreakpoints.js";
9
9
  import { Iconify as z } from "../Iconify/Iconify.js";
10
10
  import "react";
11
11
  import "../../react-tooltip.min-Dkz5ltCC.js";
@@ -31,7 +31,7 @@ import '../../assets/DeleteModal.css';const j = "_bulletPoint_bd412_1", A = "_mo
31
31
  title: r,
32
32
  confirmButtonLabel: t,
33
33
  cancelButtonLabel: n,
34
- deleteHeader: i,
34
+ deleteHeader: l,
35
35
  deleteBody: a,
36
36
  deleteText: g,
37
37
  icon: h,
@@ -40,18 +40,18 @@ import '../../assets/DeleteModal.css';const j = "_bulletPoint_bd412_1", A = "_mo
40
40
  open: _,
41
41
  setOpen: d,
42
42
  onDelete: C,
43
- onCancel: I,
43
+ onCancel: k,
44
44
  isDeletePossible: p = !0,
45
- isDeletePending: s = !1,
45
+ isDeletePending: s,
46
46
  isOnline: u = !0,
47
- offlineViewProps: k
47
+ offlineViewProps: I
48
48
  }) => {
49
- const { isDesktop: D } = O();
49
+ const { isDesktop: D } = x();
50
50
  return /* @__PURE__ */ o(
51
51
  B,
52
52
  {
53
53
  isOnline: u,
54
- offlineViewProps: k,
54
+ offlineViewProps: I,
55
55
  className: `${e.modal}`,
56
56
  modalSize: D ? "small" : "fullscreen",
57
57
  open: _,
@@ -62,10 +62,9 @@ import '../../assets/DeleteModal.css';const j = "_bulletPoint_bd412_1", A = "_mo
62
62
  {
63
63
  "data-testid": "delete-button",
64
64
  variant: "danger",
65
- label: s ? "" : t,
66
65
  onClick: C,
67
66
  disabled: !p || s || !u,
68
- trailingIcon: s ? /* @__PURE__ */ o(M, { size: "sm", text: "", spinnerOnly: !0 }) : null
67
+ children: s ? /* @__PURE__ */ o(M, { size: "sm", spinnerOnly: !0 }) : t
69
68
  }
70
69
  ),
71
70
  footerSupplemental: /* @__PURE__ */ o(
@@ -75,8 +74,9 @@ import '../../assets/DeleteModal.css';const j = "_bulletPoint_bd412_1", A = "_mo
75
74
  variant: "text",
76
75
  label: n,
77
76
  onClick: () => {
78
- I?.(), d(!1);
79
- }
77
+ k?.(), d(!1);
78
+ },
79
+ disabled: s
80
80
  }
81
81
  ),
82
82
  children: /* @__PURE__ */ b(m, { direction: "vertical", secondaryAlign: "center", children: [
@@ -84,7 +84,7 @@ import '../../assets/DeleteModal.css';const j = "_bulletPoint_bd412_1", A = "_mo
84
84
  /* @__PURE__ */ o(m, { direction: "vertical", children: p ? /* @__PURE__ */ o(
85
85
  L,
86
86
  {
87
- deleteHeader: i,
87
+ deleteHeader: l,
88
88
  deleteText: g,
89
89
  deleteBody: a
90
90
  }
@@ -95,7 +95,7 @@ import '../../assets/DeleteModal.css';const j = "_bulletPoint_bd412_1", A = "_mo
95
95
  }, F = ({
96
96
  element: r,
97
97
  isCrossedOut: t = !1
98
- }) => t ? /* @__PURE__ */ o("span", { className: e.crossedOut, children: r }) : r, H = ({ icon: r }) => r ? typeof r != "string" ? r : Object.values(N).includes(r) ? /* @__PURE__ */ o(
98
+ }) => t ? /* @__PURE__ */ o("span", { className: e.crossedOut, children: r }) : r, H = ({ icon: r }) => r ? typeof r != "string" ? r : Object.values(O).includes(r) ? /* @__PURE__ */ o(
99
99
  z,
100
100
  {
101
101
  icon: r,
@@ -107,22 +107,22 @@ import '../../assets/DeleteModal.css';const j = "_bulletPoint_bd412_1", A = "_mo
107
107
  deleteText: t,
108
108
  deleteBody: n
109
109
  }) => /* @__PURE__ */ b(c, { children: [
110
- /* @__PURE__ */ o(l, { level: 1, themeColor: "text-primary-on-background", children: r }),
111
- t && typeof t == "string" && /* @__PURE__ */ o(l, { level: 2, themeColor: "text-secondary-on-background", children: t }),
110
+ /* @__PURE__ */ o(i, { level: 1, themeColor: "text-primary-on-background", children: r }),
111
+ t && typeof t == "string" && /* @__PURE__ */ o(i, { level: 2, themeColor: "text-secondary-on-background", children: t }),
112
112
  t && typeof t != "string" && /* @__PURE__ */ o(c, { children: t }),
113
- n && t === void 0 && /* @__PURE__ */ o(m, { direction: "vertical", gap: "none", children: n.map((i, a) => /* @__PURE__ */ o(
114
- l,
113
+ n && t === void 0 && /* @__PURE__ */ o(m, { direction: "vertical", gap: "none", children: n.map((l, a) => /* @__PURE__ */ o(
114
+ i,
115
115
  {
116
116
  level: 2,
117
117
  className: e.bulletPoint,
118
118
  themeColor: "text-secondary-on-background",
119
- children: i
119
+ children: l
120
120
  },
121
- x(a.toString())
121
+ N(a.toString())
122
122
  )) })
123
123
  ] }), P = ({
124
124
  impossibleDeleteHeader: r
125
- }) => /* @__PURE__ */ o(l, { level: 1, themeColor: "text-primary-on-background", children: r });
125
+ }) => /* @__PURE__ */ o(i, { level: 1, themeColor: "text-primary-on-background", children: r });
126
126
  export {
127
127
  mo as DeleteModal
128
128
  };
@@ -32,6 +32,6 @@ export declare const StepperPreviousButton: ({ label, variant, onClick, disabled
32
32
  * @returns
33
33
  */
34
34
  export declare const StepperNextButton: ({ label, variant, onClick, disabled, className, isStepLoading, isLastStep, showArrowIcon, leadingIcon, trailingIcon, buttonSize, fullWidth, }: StepperButtonProps & {
35
- isStepLoading?: boolean;
35
+ isStepLoading: boolean;
36
36
  isLastStep?: boolean;
37
37
  }) => import("react/jsx-runtime").JSX.Element;
@@ -125,7 +125,7 @@ export type StepperProps = {
125
125
  /**
126
126
  * Flag which indicates if the current step is loading.
127
127
  */
128
- isStepLoading?: boolean;
128
+ isStepLoading: boolean;
129
129
  /**
130
130
  * An indicator of whether to show the stepper header.
131
131
  * @default true
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": "2.24.1",
4
+ "version": "2.24.2",
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>",