@cloudtower/eagle 0.33.35 → 0.33.37
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/MediumDialog/MediumDialog.js +54 -0
- package/dist/cjs/core/SmallDialog/SmallDialog.js +144 -0
- package/dist/cjs/core/SmallDialog/SmallDialog.style.js +11 -0
- package/dist/cjs/coreX/Dialogs/DeleteDialog/DeleteDialog.js +5 -3
- package/dist/cjs/coreX/Dialogs/RejectDialog/RejectDialog.js +1 -1
- package/dist/cjs/index.js +9 -2
- package/dist/cjs/stats1.html +1 -1
- package/dist/components.css +30222 -1887
- package/dist/esm/core/MediumDialog/MediumDialog.js +48 -0
- package/dist/esm/core/SmallDialog/SmallDialog.js +137 -0
- package/dist/esm/core/SmallDialog/SmallDialog.style.js +6 -0
- package/dist/esm/coreX/Dialogs/DeleteDialog/DeleteDialog.js +5 -3
- package/dist/esm/coreX/Dialogs/RejectDialog/RejectDialog.js +1 -1
- package/dist/esm/index.js +3 -1
- package/dist/esm/stats1.html +1 -1
- package/dist/linaria.merged.scss +2336 -2268
- package/dist/src/core/MediumDialog/MediumDialog.d.ts +3 -0
- package/dist/src/core/MediumDialog/index.d.ts +1 -0
- package/dist/src/core/SmallDialog/SmallDialog.d.ts +3 -0
- package/dist/src/core/SmallDialog/SmallDialog.style.d.ts +4 -0
- package/dist/src/{coreX/Dialogs/SmallDialog.d.ts → core/SmallDialog/SmallDialog.type.d.ts} +12 -4
- package/dist/src/core/SmallDialog/index.d.ts +3 -0
- package/dist/src/core/index.d.ts +2 -0
- package/dist/src/coreX/Dialogs/DeleteDialog/DeleteDialog.type.d.ts +2 -0
- package/dist/src/coreX/Dialogs/index.d.ts +0 -1
- package/dist/stories/docs/core/MediumDialog.stories.d.ts +35 -0
- package/dist/stories/docs/core/SmallDialog.stories.d.ts +37 -0
- package/dist/stories/docs/coreX/Dialogs/DeleteDialog.stories.d.ts +5 -0
- package/dist/style.css +1839 -1770
- package/package.json +4 -4
- package/dist/cjs/coreX/Dialogs/SmallDialog.js +0 -86
- package/dist/esm/coreX/Dialogs/SmallDialog.js +0 -80
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./MediumDialog";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const DialogStyle: import("@linaria/core").LinariaClassName;
|
|
2
|
+
export declare const FooterStyle: import("@linaria/core").LinariaClassName;
|
|
3
|
+
export declare const ErrorTextStyle: import("@linaria/core").LinariaClassName;
|
|
4
|
+
export declare const CloseIconStyle: import("@linaria/core").LinariaClassName;
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
import { ButtonProps } from "
|
|
1
|
+
import { ButtonProps } from "../../core/Button";
|
|
2
2
|
import React from "react";
|
|
3
|
-
interface SmallDialogProps {
|
|
3
|
+
export interface SmallDialogProps {
|
|
4
4
|
/** 弹窗标题 */
|
|
5
5
|
title: React.ReactNode;
|
|
6
|
+
/** 自定义标题 */
|
|
7
|
+
TitleRender?: React.FC<{
|
|
8
|
+
title?: React.ReactNode;
|
|
9
|
+
}>;
|
|
6
10
|
/** 取消按钮文案 */
|
|
7
11
|
cancelText?: string;
|
|
8
12
|
/** 确认按钮文案 */
|
|
@@ -26,6 +30,10 @@ interface SmallDialogProps {
|
|
|
26
30
|
/** 取消按钮属性,优先使用 cancelText */
|
|
27
31
|
cancelButtonProps?: ButtonProps;
|
|
28
32
|
children?: React.ReactNode;
|
|
33
|
+
/** 展示在 modal footer 的错误文案 */
|
|
34
|
+
error?: React.ReactNode;
|
|
35
|
+
/** 是否展示在 modal footer 的错误图标, 默认展示 */
|
|
36
|
+
showFooterErrorIcon?: boolean;
|
|
37
|
+
/** 确认按钮加载状态 */
|
|
38
|
+
confirmLoading?: boolean;
|
|
29
39
|
}
|
|
30
|
-
export declare const SmallDialog: React.FC<SmallDialogProps>;
|
|
31
|
-
export {};
|
package/dist/src/core/index.d.ts
CHANGED
|
@@ -85,6 +85,8 @@ export * from "./Tooltip";
|
|
|
85
85
|
export * from "./Truncate";
|
|
86
86
|
export * from "./Typo";
|
|
87
87
|
export * from "./Units";
|
|
88
|
+
export * from "./SmallDialog";
|
|
89
|
+
export * from "./MediumDialog";
|
|
88
90
|
export declare const units: {
|
|
89
91
|
Percent: import("./Units").PercentFn;
|
|
90
92
|
Byte: import("./Units").UnitFn;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { MediumDialog } from "../../../src/core";
|
|
3
|
+
import { CoreMeta } from "../../types";
|
|
4
|
+
/**
|
|
5
|
+
* MediumDialog 组件
|
|
6
|
+
*
|
|
7
|
+
* 一个中等尺寸的对话框组件,适用于需要更多内容展示空间的场景。
|
|
8
|
+
*
|
|
9
|
+
* ### 特性
|
|
10
|
+
* - 固定宽度 720px,提供更多内容展示空间
|
|
11
|
+
* - 最小高度 200px,适合展示更丰富的内容
|
|
12
|
+
* - 继承 SmallDialog 的所有功能特性
|
|
13
|
+
* - 支持自定义标题、按钮文案和样式
|
|
14
|
+
* - 支持在底部显示错误信息
|
|
15
|
+
* - 可配置是否显示确认按钮、关闭按钮等
|
|
16
|
+
* - 支持点击遮罩层关闭
|
|
17
|
+
*/
|
|
18
|
+
declare const meta: CoreMeta<typeof MediumDialog>;
|
|
19
|
+
export default meta;
|
|
20
|
+
/**
|
|
21
|
+
* 基础用法
|
|
22
|
+
*/
|
|
23
|
+
export declare const Basic: () => React.JSX.Element;
|
|
24
|
+
/**
|
|
25
|
+
* 表单配置对话框
|
|
26
|
+
*/
|
|
27
|
+
export declare const FormConfiguration: () => React.JSX.Element;
|
|
28
|
+
/**
|
|
29
|
+
* 数据展示对话框
|
|
30
|
+
*/
|
|
31
|
+
export declare const DataDisplay: () => React.JSX.Element;
|
|
32
|
+
/**
|
|
33
|
+
* 带错误信息的对话框
|
|
34
|
+
*/
|
|
35
|
+
export declare const WithError: () => React.JSX.Element;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { SmallDialog } from "../../../src/core";
|
|
3
|
+
import { CoreMeta } from "../../types";
|
|
4
|
+
/**
|
|
5
|
+
* SmallDialog 组件
|
|
6
|
+
*
|
|
7
|
+
* 一个轻量级的小尺寸对话框组件,适用于简单的确认、提示等场景。
|
|
8
|
+
*
|
|
9
|
+
* ### 特性
|
|
10
|
+
* - 固定宽度 492px,适合移动端和桌面端使用
|
|
11
|
+
* - 支持自定义标题、按钮文案和样式
|
|
12
|
+
* - 支持在底部显示错误信息
|
|
13
|
+
* - 可配置是否显示确认按钮、关闭按钮等
|
|
14
|
+
* - 支持点击遮罩层关闭
|
|
15
|
+
*/
|
|
16
|
+
declare const meta: CoreMeta<typeof SmallDialog>;
|
|
17
|
+
export default meta;
|
|
18
|
+
/**
|
|
19
|
+
* 基础用法
|
|
20
|
+
*/
|
|
21
|
+
export declare const Basic: () => React.JSX.Element;
|
|
22
|
+
/**
|
|
23
|
+
* 确认删除对话框
|
|
24
|
+
*/
|
|
25
|
+
export declare const DeleteConfirmation: () => React.JSX.Element;
|
|
26
|
+
/**
|
|
27
|
+
* 只有取消按钮
|
|
28
|
+
*/
|
|
29
|
+
export declare const CancelOnly: () => React.JSX.Element;
|
|
30
|
+
/**
|
|
31
|
+
* 带错误信息的对话框
|
|
32
|
+
*/
|
|
33
|
+
export declare const WithError: () => React.JSX.Element;
|
|
34
|
+
/**
|
|
35
|
+
* 长内容对话框
|
|
36
|
+
*/
|
|
37
|
+
export declare const LongContent: () => React.JSX.Element;
|
|
@@ -16,6 +16,7 @@ declare const meta: {
|
|
|
16
16
|
onOk?: ((popModal: () => void) => void) | undefined;
|
|
17
17
|
onCancel?: ((popModal: () => void) => void) | undefined;
|
|
18
18
|
className?: string | undefined;
|
|
19
|
+
confirmLoading?: boolean | undefined;
|
|
19
20
|
children?: React.ReactNode;
|
|
20
21
|
}>) => React.JSX.Element)[];
|
|
21
22
|
args: {};
|
|
@@ -35,3 +36,7 @@ export declare const Basic: () => React.JSX.Element;
|
|
|
35
36
|
* 自定义按钮文案
|
|
36
37
|
*/
|
|
37
38
|
export declare const CustomButtonText: () => React.JSX.Element;
|
|
39
|
+
/**
|
|
40
|
+
* 确认按钮加载状态
|
|
41
|
+
*/
|
|
42
|
+
export declare const ConfirmLoading: () => React.JSX.Element;
|