@scm-manager/ui-components 3.8.1-20250609-161811 → 3.8.1-20250631-125059

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scm-manager/ui-components",
3
- "version": "3.8.1-20250609-161811",
3
+ "version": "3.8.1-20250631-125059",
4
4
  "description": "UI Components for SCM-Manager and its plugins",
5
5
  "main": "src/index.ts",
6
6
  "files": [
@@ -32,8 +32,8 @@
32
32
  "react-query": "^3.39.2"
33
33
  },
34
34
  "devDependencies": {
35
- "@scm-manager/ui-tests": "3.8.1-20250609-161811",
36
- "@scm-manager/ui-types": "3.8.1-20250609-161811",
35
+ "@scm-manager/ui-tests": "3.8.1-20250631-125059",
36
+ "@scm-manager/ui-types": "3.8.1-20250631-125059",
37
37
  "@types/fetch-mock": "^7.3.1",
38
38
  "@types/react-select": "^2.0.19",
39
39
  "@types/unist": "^2.0.3",
@@ -68,17 +68,17 @@
68
68
  "@scm-manager/jest-preset": "^2.14.1",
69
69
  "@scm-manager/prettier-config": "^2.12.0",
70
70
  "@scm-manager/tsconfig": "^2.13.0",
71
- "@scm-manager/ui-syntaxhighlighting": "3.8.1-20250609-161811",
72
- "@scm-manager/ui-shortcuts": "3.8.1-20250609-161811",
73
- "@scm-manager/ui-text": "3.8.1-20250609-161811"
71
+ "@scm-manager/ui-syntaxhighlighting": "3.8.1-20250631-125059",
72
+ "@scm-manager/ui-shortcuts": "3.8.1-20250631-125059",
73
+ "@scm-manager/ui-text": "3.8.1-20250631-125059"
74
74
  },
75
75
  "dependencies": {
76
- "@scm-manager/ui-core": "3.8.1-20250609-161811",
77
- "@scm-manager/ui-overlays": "3.8.1-20250609-161811",
78
- "@scm-manager/ui-layout": "3.8.1-20250609-161811",
79
- "@scm-manager/ui-buttons": "3.8.1-20250609-161811",
80
- "@scm-manager/ui-api": "3.8.1-20250609-161811",
81
- "@scm-manager/ui-extensions": "3.8.1-20250609-161811",
76
+ "@scm-manager/ui-core": "3.8.1-20250631-125059",
77
+ "@scm-manager/ui-overlays": "3.8.1-20250631-125059",
78
+ "@scm-manager/ui-layout": "3.8.1-20250631-125059",
79
+ "@scm-manager/ui-buttons": "3.8.1-20250631-125059",
80
+ "@scm-manager/ui-api": "3.8.1-20250631-125059",
81
+ "@scm-manager/ui-extensions": "3.8.1-20250631-125059",
82
82
  "deepmerge": "^4.2.2",
83
83
  "hast-util-sanitize": "^3.0.2",
84
84
  "react-diff-view": "^2.4.10",
@@ -17047,6 +17047,7 @@ Array [
17047
17047
  hostess’s really oblong Infinite Improbability thing into the starship against which behavior accordance with
17048
17048
  Kakrafoon humanoid undergarment ship powered by GPP-guided bowl of petunias nothing was frequently away incredibly
17049
17049
  ordinary mob.
17050
+
17050
17051
  </section>
17051
17052
  <footer
17052
17053
  className="modal-card-foot"
@@ -17195,6 +17196,7 @@ Array [
17195
17196
  hostess’s really oblong Infinite Improbability thing into the starship against which behavior accordance with
17196
17197
  Kakrafoon humanoid undergarment ship powered by GPP-guided bowl of petunias nothing was frequently away incredibly
17197
17198
  ordinary mob.
17199
+
17198
17200
  </section>
17199
17201
  <footer
17200
17202
  className="modal-card-foot"
@@ -26,16 +26,17 @@ type Button = {
26
26
  isLoading?: boolean;
27
27
  onClick?: () => void | null;
28
28
  autofocus?: boolean;
29
+ disabled?: boolean;
29
30
  };
30
31
 
31
32
  type Props = {
32
33
  title: string;
33
- message: string;
34
+ message?: string;
34
35
  buttons: Button[];
35
36
  close?: () => void;
36
37
  };
37
38
 
38
- export const ConfirmAlert: FC<Props> = ({ title, message, buttons, close }) => {
39
+ export const ConfirmAlert: FC<Props> = ({ title, message, buttons, close, children }) => {
39
40
  const [showModal, setShowModal] = useState(true);
40
41
  const initialFocusButton = useRef<HTMLButtonElement>(null);
41
42
 
@@ -54,7 +55,11 @@ export const ConfirmAlert: FC<Props> = ({ title, message, buttons, close }) => {
54
55
  onClose();
55
56
  };
56
57
 
57
- const body = <>{message}</>;
58
+ const body = (
59
+ <>
60
+ {message} {children}
61
+ </>
62
+ );
58
63
 
59
64
  const footer = (
60
65
  <div className="field is-grouped">
@@ -63,8 +68,9 @@ export const ConfirmAlert: FC<Props> = ({ title, message, buttons, close }) => {
63
68
  <button
64
69
  className={classNames("button", button.className, button.isLoading ? "is-loading" : "")}
65
70
  key={index}
71
+ disabled={button.disabled}
66
72
  onClick={() => handleClickButton(button)}
67
- onKeyDown={e => e.key === "Enter" && handleClickButton(button)}
73
+ onKeyDown={(e) => e.key === "Enter" && handleClickButton(button)}
68
74
  tabIndex={0}
69
75
  ref={button.autofocus ? initialFocusButton : undefined}
70
76
  >