@cloudtower/eagle 0.34.5 → 0.34.7
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/cjs/coreX/Dialogs/DeleteDialog/DeleteDialog.js +6 -2
- package/dist/cjs/coreX/Dialogs/RejectDialog/RejectDialog.js +16 -8
- package/dist/cjs/stats1.html +1 -1
- package/dist/components.css +4556 -33004
- package/dist/esm/coreX/Dialogs/DeleteDialog/DeleteDialog.js +6 -2
- package/dist/esm/coreX/Dialogs/RejectDialog/RejectDialog.js +16 -8
- package/dist/esm/stats1.html +1 -1
- package/dist/linaria.merged.scss +4045 -4038
- package/dist/src/coreX/Dialogs/DeleteDialog/DeleteDialog.type.d.ts +4 -0
- package/dist/src/coreX/Dialogs/RejectDialog/RejectDialog.type.d.ts +4 -0
- package/dist/stories/docs/coreX/Dialogs/DeleteDialog.stories.d.ts +6 -0
- package/dist/stories/docs/coreX/Dialogs/RejectDialog.stories.d.ts +2 -0
- package/dist/style.css +3453 -3447
- package/package.json +4 -4
|
@@ -19,7 +19,9 @@ const DeleteDialog = props => {
|
|
|
19
19
|
onOk,
|
|
20
20
|
onCancel,
|
|
21
21
|
className,
|
|
22
|
-
confirmLoading
|
|
22
|
+
confirmLoading,
|
|
23
|
+
error,
|
|
24
|
+
showFooterErrorIcon
|
|
23
25
|
} = props;
|
|
24
26
|
return /* @__PURE__ */React__default.createElement(SmallDialog, {
|
|
25
27
|
title,
|
|
@@ -32,7 +34,9 @@ const DeleteDialog = props => {
|
|
|
32
34
|
okButtonProps: {
|
|
33
35
|
danger: true
|
|
34
36
|
},
|
|
35
|
-
confirmLoading
|
|
37
|
+
confirmLoading,
|
|
38
|
+
error,
|
|
39
|
+
showFooterErrorIcon
|
|
36
40
|
}, description && /* @__PURE__ */React__default.createElement("div", {
|
|
37
41
|
className: cx(ContentStyle, Typo.Label.l2_regular)
|
|
38
42
|
}, description), secondaryDesc && /* @__PURE__ */React__default.createElement("div", {
|
|
@@ -3,6 +3,7 @@ import { Typo } from '../../../core/Typo/index.js';
|
|
|
3
3
|
import React__default from 'react';
|
|
4
4
|
import { SmallDialog } from '../../../core/SmallDialog/SmallDialog.js';
|
|
5
5
|
import { RejectDialogType } from './RejectDialog.type.js';
|
|
6
|
+
import useParrotTranslation from '../../../hooks/useParrotTranslation.js';
|
|
6
7
|
|
|
7
8
|
const ContentList = "E_c1ss4prm";
|
|
8
9
|
const MultiRejectContentList = "E_ms3tlei";
|
|
@@ -25,13 +26,19 @@ const SingleRejectContent = ({
|
|
|
25
26
|
}, content);
|
|
26
27
|
};
|
|
27
28
|
const MultiRejectContent = ({
|
|
28
|
-
content
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
29
|
+
content,
|
|
30
|
+
resourceIcon
|
|
31
|
+
}) => {
|
|
32
|
+
const {
|
|
33
|
+
t
|
|
34
|
+
} = useParrotTranslation();
|
|
35
|
+
return /* @__PURE__ */React__default.createElement("div", {
|
|
36
|
+
className: cx(MultiRejectContentList)
|
|
37
|
+
}, Object.entries(content).map(([name, reasons], index) => /* @__PURE__ */React__default.createElement("li", {
|
|
38
|
+
className: Typo.Label.l4_regular,
|
|
39
|
+
key: index
|
|
40
|
+
}, resourceIcon, /* @__PURE__ */React__default.createElement("span", null, name + t("common.colon_with_space") + reasons.join(t("common.semicolon_with_space"))))));
|
|
41
|
+
};
|
|
35
42
|
const RejectDialog = props => {
|
|
36
43
|
const {
|
|
37
44
|
title,
|
|
@@ -55,7 +62,8 @@ const RejectDialog = props => {
|
|
|
55
62
|
}), /* @__PURE__ */React__default.createElement("div", {
|
|
56
63
|
className: cx(Description, Typo.Label.l3_regular)
|
|
57
64
|
}, props.partialDescription)), /* @__PURE__ */React__default.createElement(MultiRejectContent, {
|
|
58
|
-
content: props.content
|
|
65
|
+
content: props.content,
|
|
66
|
+
resourceIcon: props.resourceIcon
|
|
59
67
|
}));
|
|
60
68
|
case RejectDialogType.Custom:
|
|
61
69
|
return props.customContent;
|