@cloudtower/eagle 0.34.4 → 0.34.6

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.
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { IBlankStateProps } from "./type";
3
+ declare const BlankState: (props: IBlankStateProps) => React.JSX.Element;
4
+ export default BlankState;
@@ -0,0 +1 @@
1
+ export declare const BlankStateWrapper: import("@linaria/core").LinariaClassName;
@@ -0,0 +1,49 @@
1
+ import { CSSProperties } from "react";
2
+ export type SizeType = "large" | "medium" | "small" | "area" | "xSmall";
3
+ export interface IBlankStateProps {
4
+ /**
5
+ * 自定义类名
6
+ */
7
+ className?: string;
8
+ /**
9
+ * 自定义样式
10
+ */
11
+ style?: CSSProperties;
12
+ /**
13
+ * 大小类型,对应设计稿,默认‘medium’
14
+ */
15
+ size?: SizeType;
16
+ /**
17
+ * 自定义宽度
18
+ */
19
+ width?: string | number;
20
+ /**
21
+ * 自定义高度
22
+ */
23
+ height?: string | number;
24
+ /**
25
+ * 空白状态背景颜色,默认无背景颜色。
26
+ */
27
+ backgroundColor?: "gray" | "white";
28
+ /**
29
+ * 标题
30
+ */
31
+ title: string;
32
+ /**
33
+ * 描述信息
34
+ */
35
+ description?: string;
36
+ /**
37
+ * 操作按钮
38
+ */
39
+ action?: {
40
+ /**
41
+ * 操作按钮文字
42
+ */
43
+ label: string;
44
+ /**
45
+ * 操作按钮点击事件
46
+ */
47
+ onClick: () => void;
48
+ };
49
+ }
@@ -11,6 +11,7 @@ export * from "./BaseIcon";
11
11
  export * from "./BasicCTError";
12
12
  export * from "./Bit";
13
13
  export * from "./BitPerSecond";
14
+ export * from "./BlankState";
14
15
  export * from "./Bps";
15
16
  export * from "./Breadcrumb";
16
17
  export * from "./Button";
@@ -110,6 +111,7 @@ export { default as Badge } from "./Badge";
110
111
  export { default as BaseIcon } from "./BaseIcon";
111
112
  export { default as Bit } from "./Bit";
112
113
  export { default as BitPerSecond } from "./BitPerSecond";
114
+ export { default as BlankState } from "./BlankState";
113
115
  export { default as Bps } from "./Bps";
114
116
  export { default as Breadcrumb } from "./Breadcrumb";
115
117
  export { default as Button } from "./Button";
@@ -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
  }
@@ -34,6 +34,8 @@ interface MultiAllRejectDialogProps extends BaseRejectDialogProps {
34
34
  secondaryDesc?: React.ReactNode;
35
35
  /** 多个对象的拒绝原因,格式为 { [对象名]: string[] } */
36
36
  content: RejectContent;
37
+ /** 资源图标 */
38
+ resourceIcon?: React.ReactNode;
37
39
  }
38
40
  interface MultiPartialRejectDialogProps extends BaseRejectDialogProps {
39
41
  type: RejectDialogType.Part;
@@ -41,6 +43,8 @@ interface MultiPartialRejectDialogProps extends BaseRejectDialogProps {
41
43
  secondaryDesc?: React.ReactNode;
42
44
  /** 多个对象的拒绝原因,格式为 { [对象名]: string[] } */
43
45
  content: Record<string, string[]>;
46
+ /** 资源图标 */
47
+ resourceIcon?: React.ReactNode;
44
48
  /** 部分拒绝时的额外说明 */
45
49
  partialDescription: React.ReactNode;
46
50
  /** 确认按钮文案 */
@@ -0,0 +1,43 @@
1
+ import BlankState from "../../../src/core/BlankState";
2
+ import { StoryObj } from "@storybook/react";
3
+ import React from "react";
4
+ declare const meta: {
5
+ component: (props: import("../../../src/core/BlankState/type").IBlankStateProps) => React.JSX.Element;
6
+ title: "Core/BlankState | 空白状态";
7
+ parameters: {
8
+ design: {
9
+ type: string;
10
+ url: string;
11
+ };
12
+ };
13
+ };
14
+ export default meta;
15
+ type Story = StoryObj<typeof BlankState>;
16
+ /**
17
+ * 基础用法
18
+ */
19
+ export declare const DefaultMediumBlankState: Story;
20
+ /**
21
+ * Large size
22
+ */
23
+ export declare const LargeBlankState: Story;
24
+ /**
25
+ * Large size 指定宽度 200px
26
+ */
27
+ export declare const LargeBlankStateWithSpecifyContainer: Story;
28
+ /**
29
+ * Small size
30
+ */
31
+ export declare const SmallBlankState: Story;
32
+ /**
33
+ * Area size with gray background
34
+ */
35
+ export declare const AreaBlankState: Story;
36
+ /**
37
+ * Area size with white background
38
+ */
39
+ export declare const AreaBlankStateWithWhiteBackground: Story;
40
+ /**
41
+ * XSmall size 不含描述
42
+ */
43
+ export declare const XSmallBlankState: Story;
@@ -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;
@@ -23,6 +23,7 @@ declare const meta: {
23
23
  type: RejectDialogType.All;
24
24
  secondaryDesc?: React.ReactNode;
25
25
  content: import("../../../../src/coreX").RejectContent;
26
+ resourceIcon?: React.ReactNode;
26
27
  title: React.ReactNode;
27
28
  description?: React.ReactNode;
28
29
  cancelText?: string | undefined;
@@ -35,6 +36,7 @@ declare const meta: {
35
36
  type: RejectDialogType.Part;
36
37
  secondaryDesc?: React.ReactNode;
37
38
  content: Record<string, string[]>;
39
+ resourceIcon?: React.ReactNode;
38
40
  partialDescription: React.ReactNode;
39
41
  okText?: string | undefined;
40
42
  onOk?: ((popModal: () => void) => void) | undefined;