@cloudtower/eagle 0.34.8 → 0.34.10

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.
@@ -7,6 +7,7 @@ export interface IBarChartProps {
7
7
  shape?: "stripes" | "fill";
8
8
  }>;
9
9
  total: number;
10
+ className?: string;
10
11
  }
11
12
  declare const BarChart: React.FC<IBarChartProps>;
12
13
  export default BarChart;
@@ -1,5 +1,8 @@
1
1
  import { AlertProps } from "../../core/Alert";
2
+ import { ButtonProps } from "../../core/Button";
3
+ import { IconProps } from "../../core/Icon";
2
4
  import { TagProps } from "../../core/Tag";
5
+ import { LinkProps } from "../../core/Link";
3
6
  import React from "react";
4
7
  /**
5
8
  * 检查点项的属性
@@ -30,9 +33,20 @@ import React from "react";
30
33
  * }
31
34
  * }
32
35
  */
36
+ export type CheckPointItemAction = {
37
+ type: "button";
38
+ props: ButtonProps;
39
+ } | {
40
+ type: "link";
41
+ props: LinkProps;
42
+ } | {
43
+ type: "icon";
44
+ props: IconProps;
45
+ };
33
46
  export interface CheckPointItem {
34
47
  description: React.ReactNode;
35
- status: "success" | "failed" | "loading" | "warning";
48
+ status: "success" | "failed" | "loading" | "warning" | "idle";
49
+ actions?: CheckPointItemAction[];
36
50
  tagProps?: TagProps;
37
51
  alertProps?: AlertProps;
38
52
  }
@@ -47,6 +61,7 @@ export interface CheckPointItem {
47
61
  * @property {string} [emptyTextClassName] - 空状态文本的自定义类名
48
62
  * @property {(emptyText: string | React.ReactNode) => React.ReactNode} [emptyRender] - 自定义渲染空状态的函数
49
63
  * @property {boolean} [defaultChecked] - 开关的默认选中状态,决定是否默认只显示未通过的检查项
64
+ * @property {boolean} [border] - 是否显示边框, 默认为显示
50
65
  * @example
51
66
  * {
52
67
  * title: "系统检查项",
@@ -86,6 +101,7 @@ export interface CheckPointListProps {
86
101
  title: string | React.ReactNode;
87
102
  switchText?: string;
88
103
  className?: string;
104
+ border?: boolean;
89
105
  }
90
106
  /**
91
107
  * CheckPointItem 组件的属性
@@ -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
  /** 自定义类名 */
@@ -33,6 +33,10 @@ export declare const DataDisplay: () => React.JSX.Element;
33
33
  * 带错误信息的对话框
34
34
  */
35
35
  export declare const WithError: () => React.JSX.Element;
36
+ /**
37
+ * 长内容对话框
38
+ */
39
+ export declare const LongContent: () => React.JSX.Element;
36
40
  /**
37
41
  * 初始化状态
38
42
  */
@@ -7,7 +7,7 @@ import React from "react";
7
7
  * 适用于各种预检查、健康检查等场景
8
8
  *
9
9
  * 组件特点:
10
- * 1. 支持四种状态展示:成功、失败、加载中、警告
10
+ * 1. 支持五种状态展示:空闲、成功、失败、加载中、警告
11
11
  * 2. 可自定义标签样式
12
12
  * 3. 可自定义告警样式
13
13
  * 4. 支持筛选控制
@@ -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;
@@ -25,9 +27,11 @@ declare const meta: {
25
27
  content: import("../../../../src/coreX").RejectContent;
26
28
  resourceIcon?: React.ReactNode;
27
29
  title: React.ReactNode;
30
+ beforeDescription?: React.ReactNode;
28
31
  description?: React.ReactNode;
29
32
  cancelText?: string | undefined;
30
33
  onCancel?: ((popModal: () => void) => void) | undefined;
34
+ okButtonProps?: import("../../../../src/core").ButtonProps | undefined;
31
35
  width?: number | undefined;
32
36
  className?: string | undefined;
33
37
  footerClassName?: string | undefined;
@@ -41,9 +45,11 @@ declare const meta: {
41
45
  okText?: string | undefined;
42
46
  onOk?: ((popModal: () => void) => void) | undefined;
43
47
  title: React.ReactNode;
48
+ beforeDescription?: React.ReactNode;
44
49
  description?: React.ReactNode;
45
50
  cancelText?: string | undefined;
46
51
  onCancel?: ((popModal: () => void) => void) | undefined;
52
+ okButtonProps?: import("../../../../src/core").ButtonProps | undefined;
47
53
  width?: number | undefined;
48
54
  className?: string | undefined;
49
55
  footerClassName?: string | undefined;
@@ -53,9 +59,11 @@ declare const meta: {
53
59
  customContent: React.ReactNode;
54
60
  okText?: string | undefined;
55
61
  title: React.ReactNode;
62
+ beforeDescription?: React.ReactNode;
56
63
  description?: React.ReactNode;
57
64
  cancelText?: string | undefined;
58
65
  onCancel?: ((popModal: () => void) => void) | undefined;
66
+ okButtonProps?: import("../../../../src/core").ButtonProps | undefined;
59
67
  width?: number | undefined;
60
68
  className?: string | undefined;
61
69
  footerClassName?: string | undefined;