@cloudtower/eagle 0.33.53 → 0.33.55

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.
@@ -18,4 +18,8 @@ export interface DeleteDialogProps {
18
18
  className?: string;
19
19
  /** 确认按钮加载状态 */
20
20
  confirmLoading?: boolean;
21
+ /** 展示在 modal footer 的错误文案 */
22
+ error?: React.ReactNode;
23
+ /** 是否展示在 modal footer 的错误图标, 默认展示 */
24
+ showFooterErrorIcon?: boolean;
21
25
  }
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ import type { ButtonProps } from "../../../core/Button";
2
3
  export type RejectReason = string;
3
4
  export type RejectContent = Record<string, RejectReason[]>;
4
5
  export declare enum RejectDialogType {
@@ -10,12 +11,16 @@ export declare enum RejectDialogType {
10
11
  interface BaseRejectDialogProps {
11
12
  /** 弹窗标题 */
12
13
  title: React.ReactNode;
14
+ /** 在描述文本之前的内容 */
15
+ beforeDescription?: React.ReactNode;
13
16
  /** 补充描述文本 */
14
17
  description?: React.ReactNode;
15
18
  /** 取消按钮文案 */
16
19
  cancelText?: string;
17
20
  /** 点击取消按钮或关闭弹窗回调 */
18
21
  onCancel?: (popModal: () => void) => void;
22
+ /** 确认按钮属性 */
23
+ okButtonProps?: ButtonProps;
19
24
  /** 弹窗宽度 */
20
25
  width?: number;
21
26
  /** 自定义类名 */
@@ -34,6 +39,8 @@ interface MultiAllRejectDialogProps extends BaseRejectDialogProps {
34
39
  secondaryDesc?: React.ReactNode;
35
40
  /** 多个对象的拒绝原因,格式为 { [对象名]: string[] } */
36
41
  content: RejectContent;
42
+ /** 资源图标 */
43
+ resourceIcon?: React.ReactNode;
37
44
  }
38
45
  interface MultiPartialRejectDialogProps extends BaseRejectDialogProps {
39
46
  type: RejectDialogType.Part;
@@ -41,6 +48,8 @@ interface MultiPartialRejectDialogProps extends BaseRejectDialogProps {
41
48
  secondaryDesc?: React.ReactNode;
42
49
  /** 多个对象的拒绝原因,格式为 { [对象名]: string[] } */
43
50
  content: Record<string, string[]>;
51
+ /** 资源图标 */
52
+ resourceIcon?: React.ReactNode;
44
53
  /** 部分拒绝时的额外说明 */
45
54
  partialDescription: React.ReactNode;
46
55
  /** 确认按钮文案 */
@@ -17,6 +17,8 @@ declare const meta: {
17
17
  onCancel?: ((popModal: () => void) => void) | undefined;
18
18
  className?: string | undefined;
19
19
  confirmLoading?: boolean | undefined;
20
+ error?: React.ReactNode;
21
+ showFooterErrorIcon?: boolean | undefined;
20
22
  children?: React.ReactNode;
21
23
  }>) => React.JSX.Element)[];
22
24
  args: {};
@@ -40,3 +42,7 @@ export declare const CustomButtonText: () => React.JSX.Element;
40
42
  * 确认按钮加载状态
41
43
  */
42
44
  export declare const ConfirmLoading: () => React.JSX.Element;
45
+ /**
46
+ * 删除失败
47
+ */
48
+ export declare const Failed: () => React.JSX.Element;
@@ -12,9 +12,11 @@ declare const meta: {
12
12
  type: RejectDialogType.Single;
13
13
  content: string | string[];
14
14
  title: React.ReactNode;
15
+ beforeDescription?: React.ReactNode;
15
16
  description?: React.ReactNode;
16
17
  cancelText?: string | undefined;
17
18
  onCancel?: ((popModal: () => void) => void) | undefined;
19
+ okButtonProps?: import("../../../../src/core").ButtonProps | undefined;
18
20
  width?: number | undefined;
19
21
  className?: string | undefined;
20
22
  footerClassName?: string | undefined;
@@ -23,10 +25,13 @@ declare const meta: {
23
25
  type: RejectDialogType.All;
24
26
  secondaryDesc?: React.ReactNode;
25
27
  content: import("../../../../src/coreX").RejectContent;
28
+ resourceIcon?: React.ReactNode;
26
29
  title: React.ReactNode;
30
+ beforeDescription?: React.ReactNode;
27
31
  description?: React.ReactNode;
28
32
  cancelText?: string | undefined;
29
33
  onCancel?: ((popModal: () => void) => void) | undefined;
34
+ okButtonProps?: import("../../../../src/core").ButtonProps | undefined;
30
35
  width?: number | undefined;
31
36
  className?: string | undefined;
32
37
  footerClassName?: string | undefined;
@@ -35,13 +40,16 @@ declare const meta: {
35
40
  type: RejectDialogType.Part;
36
41
  secondaryDesc?: React.ReactNode;
37
42
  content: Record<string, string[]>;
43
+ resourceIcon?: React.ReactNode;
38
44
  partialDescription: React.ReactNode;
39
45
  okText?: string | undefined;
40
46
  onOk?: ((popModal: () => void) => void) | undefined;
41
47
  title: React.ReactNode;
48
+ beforeDescription?: React.ReactNode;
42
49
  description?: React.ReactNode;
43
50
  cancelText?: string | undefined;
44
51
  onCancel?: ((popModal: () => void) => void) | undefined;
52
+ okButtonProps?: import("../../../../src/core").ButtonProps | undefined;
45
53
  width?: number | undefined;
46
54
  className?: string | undefined;
47
55
  footerClassName?: string | undefined;
@@ -51,9 +59,11 @@ declare const meta: {
51
59
  customContent: React.ReactNode;
52
60
  okText?: string | undefined;
53
61
  title: React.ReactNode;
62
+ beforeDescription?: React.ReactNode;
54
63
  description?: React.ReactNode;
55
64
  cancelText?: string | undefined;
56
65
  onCancel?: ((popModal: () => void) => void) | undefined;
66
+ okButtonProps?: import("../../../../src/core").ButtonProps | undefined;
57
67
  width?: number | undefined;
58
68
  className?: string | undefined;
59
69
  footerClassName?: string | undefined;