@cloudtower/eagle 0.34.4 → 0.34.5

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";
@@ -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;