@cloudtower/eagle 0.34.3 → 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.
- package/dist/cjs/core/BlankState/index.js +89 -0
- package/dist/cjs/core/BlankState/style.js +5 -0
- package/dist/cjs/core/ImmersiveDialog/index.js +33 -11
- package/dist/cjs/core/MediumDialog/MediumDialog.js +6 -3
- package/dist/cjs/core/SmallDialog/SmallDialog.js +30 -10
- package/dist/cjs/core/SmallDialog/SmallDialog.style.js +6 -0
- package/dist/cjs/core/SmallDialog/SmallDialog.widget.js +28 -0
- package/dist/cjs/core/index.js +21 -21
- package/dist/cjs/index.js +279 -274
- package/dist/cjs/stats1.html +1 -1
- package/dist/components.css +3226 -3130
- package/dist/esm/core/BlankState/index.js +83 -0
- package/dist/esm/core/BlankState/style.js +3 -0
- package/dist/esm/core/ImmersiveDialog/index.js +32 -11
- package/dist/esm/core/MediumDialog/MediumDialog.js +6 -3
- package/dist/esm/core/SmallDialog/SmallDialog.js +30 -10
- package/dist/esm/core/SmallDialog/SmallDialog.style.js +4 -1
- package/dist/esm/core/SmallDialog/SmallDialog.widget.js +20 -0
- package/dist/esm/index.js +2 -1
- package/dist/esm/stats1.html +1 -1
- package/dist/linaria.merged.scss +3893 -3784
- package/dist/src/core/BlankState/index.d.ts +4 -0
- package/dist/src/core/BlankState/style.d.ts +1 -0
- package/dist/src/core/BlankState/type.d.ts +49 -0
- package/dist/src/core/ImmersiveDialog/type.d.ts +4 -0
- package/dist/src/core/MediumDialog/MediumDialog.d.ts +2 -2
- package/dist/src/core/MediumDialog/MediumDialog.type.d.ts +5 -0
- package/dist/src/core/SmallDialog/SmallDialog.style.d.ts +3 -0
- package/dist/src/core/SmallDialog/SmallDialog.type.d.ts +8 -0
- package/dist/src/core/SmallDialog/SmallDialog.widget.d.ts +8 -0
- package/dist/src/core/index.d.ts +2 -0
- package/dist/stories/docs/core/BlankState.stories.d.ts +43 -0
- package/dist/stories/docs/core/ImmersiveDialog.stories.d.ts +6 -0
- package/dist/stories/docs/core/MediumDialog.stories.d.ts +8 -0
- package/dist/stories/docs/core/SmallDialog.stories.d.ts +4 -0
- package/dist/stories/docs/core/WizardDialog.stories.d.ts +3 -0
- package/dist/stories/utils.d.ts +12 -0
- package/dist/style.css +3226 -3130
- package/package.json +4 -4
|
@@ -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
|
+
}
|
|
@@ -34,4 +34,8 @@ export type ImmersiveDialogProps = React.PropsWithChildren<AntdModalProps & {
|
|
|
34
34
|
rightClassName?: string;
|
|
35
35
|
/** 底部左侧的操作区域 */
|
|
36
36
|
footerLeftAction?: React.ReactNode;
|
|
37
|
+
/** 是否初始化中 */
|
|
38
|
+
initializing?: boolean;
|
|
39
|
+
/** 初始化错误内容 */
|
|
40
|
+
initializingError?: string | React.ReactNode;
|
|
37
41
|
}>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
3
|
-
export declare const MediumDialog: React.FC<
|
|
2
|
+
import { MediumDialogProps } from "./MediumDialog.type";
|
|
3
|
+
export declare const MediumDialog: React.FC<MediumDialogProps>;
|
|
@@ -2,3 +2,6 @@ export declare const DialogStyle: import("@linaria/core").LinariaClassName;
|
|
|
2
2
|
export declare const FooterStyle: import("@linaria/core").LinariaClassName;
|
|
3
3
|
export declare const ErrorTextStyle: import("@linaria/core").LinariaClassName;
|
|
4
4
|
export declare const CloseIconStyle: import("@linaria/core").LinariaClassName;
|
|
5
|
+
export declare const ModelTitleSkeletonStyle: import("@linaria/core").LinariaClassName;
|
|
6
|
+
export declare const ModelContentSkeletonStyle: import("@linaria/core").LinariaClassName;
|
|
7
|
+
export declare const ModelInitializingErrorStyle: import("@linaria/core").LinariaClassName;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { ButtonProps } from "../../core/Button";
|
|
2
2
|
import React from "react";
|
|
3
3
|
export interface SmallDialogProps {
|
|
4
|
+
/** 弹窗宽度 */
|
|
5
|
+
width?: number | string;
|
|
4
6
|
/** 弹窗标题 */
|
|
5
7
|
title: React.ReactNode;
|
|
6
8
|
/** 自定义标题 */
|
|
@@ -36,4 +38,10 @@ export interface SmallDialogProps {
|
|
|
36
38
|
showFooterErrorIcon?: boolean;
|
|
37
39
|
/** 确认按钮加载状态 */
|
|
38
40
|
confirmLoading?: boolean;
|
|
41
|
+
/** 是否初始化中 */
|
|
42
|
+
initializing?: boolean;
|
|
43
|
+
/** 初始化错误内容 */
|
|
44
|
+
initializingError?: string | React.ReactNode;
|
|
45
|
+
/** 初始化骨架屏行数 */
|
|
46
|
+
initializingSkeletonRows?: number;
|
|
39
47
|
}
|
package/dist/src/core/index.d.ts
CHANGED
|
@@ -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;
|
|
@@ -90,7 +90,13 @@ declare const story: {
|
|
|
90
90
|
right?: React.ReactNode;
|
|
91
91
|
rightClassName?: string | undefined;
|
|
92
92
|
footerLeftAction?: React.ReactNode;
|
|
93
|
+
initializing?: boolean | undefined;
|
|
94
|
+
initializingError?: React.ReactNode;
|
|
93
95
|
children?: React.ReactNode;
|
|
94
96
|
}>) => React.JSX.Element)[];
|
|
95
97
|
};
|
|
96
98
|
export default story;
|
|
99
|
+
/**
|
|
100
|
+
* 初始化状态
|
|
101
|
+
*/
|
|
102
|
+
export declare const Initializing: () => React.JSX.Element;
|
|
@@ -33,3 +33,11 @@ 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 Initializing: () => React.JSX.Element;
|
|
40
|
+
/**
|
|
41
|
+
* 内容占满视窗
|
|
42
|
+
*/
|
|
43
|
+
export declare const ContentFull: () => React.JSX.Element;
|
|
@@ -4,6 +4,7 @@ export declare const StepWizardDialog: () => React.JSX.Element;
|
|
|
4
4
|
export declare const OnlyLeftWizardDialog: () => React.JSX.Element;
|
|
5
5
|
export declare const CustomStepsWizardDialog: () => React.JSX.Element;
|
|
6
6
|
export declare const ScrollableWizardDialog: () => React.JSX.Element;
|
|
7
|
+
export declare const InitializingWizardDialog: () => React.JSX.Element;
|
|
7
8
|
declare const story: {
|
|
8
9
|
title: "Core/WizardDialog | 向导弹窗";
|
|
9
10
|
component: typeof WizardDialog;
|
|
@@ -91,6 +92,8 @@ declare const story: {
|
|
|
91
92
|
right?: React.ReactNode;
|
|
92
93
|
rightClassName?: string | undefined;
|
|
93
94
|
footerLeftAction?: React.ReactNode;
|
|
95
|
+
initializing?: boolean | undefined;
|
|
96
|
+
initializingError?: React.ReactNode;
|
|
94
97
|
children?: React.ReactNode;
|
|
95
98
|
step?: number | undefined;
|
|
96
99
|
steps?: {
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const useMockQuery: (options?: {
|
|
2
|
+
enabled?: boolean;
|
|
3
|
+
shouldFail?: boolean;
|
|
4
|
+
failFirstTime?: boolean;
|
|
5
|
+
}) => {
|
|
6
|
+
refetch: () => Promise<void>;
|
|
7
|
+
retry: () => void;
|
|
8
|
+
attemptCount: number;
|
|
9
|
+
isLoading: boolean;
|
|
10
|
+
data: any;
|
|
11
|
+
error: string | null;
|
|
12
|
+
};
|