@cloudtower/eagle 0.33.37 → 0.33.39

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,3 @@
1
+ import React from "react";
2
+ import { ImmersiveDialogProps } from "./type";
3
+ export declare function ImmersiveDialog(props: ImmersiveDialogProps): React.JSX.Element;
@@ -0,0 +1,14 @@
1
+ export declare const ImmersiveDialogStyle: import("@linaria/core").LinariaClassName;
2
+ export declare const MultiAreaStyle: import("@linaria/core").LinariaClassName;
3
+ export declare const CloseIconStyle: import("@linaria/core").LinariaClassName;
4
+ export declare const TitleStyle: import("@linaria/core").LinariaClassName;
5
+ export declare const FullContentStyle: import("@linaria/core").LinariaClassName;
6
+ export declare const BodyStyle: import("@linaria/core").LinariaClassName;
7
+ export declare const MultiAreaBodyStyle: import("@linaria/core").LinariaClassName;
8
+ export declare const FooterStyle: import("@linaria/core").LinariaClassName;
9
+ export declare const FooterButtonStyle: import("@linaria/core").LinariaClassName;
10
+ export declare const FooterButtonRightStyle: import("@linaria/core").LinariaClassName;
11
+ export declare const ErrorStyle: import("@linaria/core").LinariaClassName;
12
+ export declare const ErrorIconStyle: import("@linaria/core").LinariaClassName;
13
+ export declare const ErrorTextStyle: import("@linaria/core").LinariaClassName;
14
+ export declare const CancelButtonStyle: import("@linaria/core").LinariaClassName;
@@ -0,0 +1,33 @@
1
+ /// <reference types="react" />
2
+ import { ButtonProps } from "../../core/Button";
3
+ import { ModalProps as AntdModalProps } from "antd/lib/modal";
4
+ export type ImmersiveDialogProps = React.PropsWithChildren<AntdModalProps & {
5
+ /** 自定义关闭图标 */
6
+ closeIcon?: React.ReactNode;
7
+ /** 是否显示取消按钮 */
8
+ showCancel?: boolean;
9
+ /** 取消按钮的文本 */
10
+ cancelText?: string;
11
+ /** 取消按钮的属性 */
12
+ cancelButtonProps?: ButtonProps;
13
+ /** 是否显示确定按钮 */
14
+ showOk?: boolean;
15
+ /** 确定按钮的文本 */
16
+ okText?: string;
17
+ /** 确定按钮的 loading */
18
+ okLoading?: boolean;
19
+ /** 确定按钮的属性 */
20
+ okButtonProps?: ButtonProps;
21
+ /** 错误信息 */
22
+ error?: React.ReactNode;
23
+ /** 确定按钮的回调 */
24
+ onOk?: (e: React.MouseEvent<HTMLElement, MouseEvent>) => void;
25
+ /** 是否内容占满 */
26
+ isContentFull?: boolean;
27
+ /** 左侧自定义内容 */
28
+ left?: React.ReactNode;
29
+ /** 右侧自定义内容 */
30
+ right?: React.ReactNode;
31
+ /** 底部左侧的操作区域 */
32
+ footerLeftAction?: React.ReactNode;
33
+ }>;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { WizardDialogProps } from "./type";
3
+ export declare function WizardDialog(props: WizardDialogProps): React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ export declare const StepStyle: import("@linaria/core").LinariaClassName;
2
+ export declare const PrevIconStyle: import("@linaria/core").LinariaClassName;
3
+ export declare const StepContentStyle: import("@linaria/core").LinariaClassName;
@@ -0,0 +1,31 @@
1
+ /// <reference types="react" />
2
+ import { ImmersiveDialogProps } from "../../core/ImmersiveDialog/type";
3
+ export type WizardDialogProps = ImmersiveDialogProps & {
4
+ /** 当前步骤 */
5
+ step?: number;
6
+ /** 步骤配置数组 */
7
+ steps?: {
8
+ /** 步骤标题 */
9
+ title: string;
10
+ /** 步骤内容渲染 */
11
+ children: React.ReactNode;
12
+ }[];
13
+ /** 是否隐藏步骤 */
14
+ hideSteps?: boolean;
15
+ /** 左侧自定义内容 */
16
+ left?: React.ReactNode;
17
+ /** 右侧自定义内容 */
18
+ right?: React.ReactNode;
19
+ /** 是否销毁其他步骤内容 */
20
+ destroyOtherStep?: boolean;
21
+ /** 上一步的文本 */
22
+ prevText?: string;
23
+ /** 上一步的回调 */
24
+ onPrevStep?: (step: number) => void;
25
+ /** 下一步的文本 */
26
+ nextText?: string;
27
+ /** 下一步的回调 */
28
+ onNextStep?: (step: number) => void | boolean;
29
+ /** 步骤改变时的回调 */
30
+ onStepChange?: (step: number) => void;
31
+ };
@@ -2,8 +2,8 @@ export * from "./AccordionCard";
2
2
  export * from "./Alert";
3
3
  export * from "./Antd5Anchor";
4
4
  export * from "./Antd5Dropdown";
5
- export * from "./Antd5Tree";
6
5
  export * from "./Antd5Flex";
6
+ export * from "./Antd5Tree";
7
7
  export * from "./Arch";
8
8
  export * from "./Badge";
9
9
  export * from "./Banner";
@@ -35,6 +35,7 @@ export * from "./Form";
35
35
  export * from "./FormItem";
36
36
  export * from "./Frequency";
37
37
  export * from "./Icon";
38
+ export * from "./ImmersiveDialog";
38
39
  export * from "./Input";
39
40
  export * from "./InputGroup";
40
41
  export * from "./InputInteger";
@@ -47,6 +48,7 @@ export * from "./Legend";
47
48
  export * from "./LineChart";
48
49
  export * from "./Link";
49
50
  export * from "./Loading";
51
+ export * from "./MediumDialog";
50
52
  export * from "./message";
51
53
  export * from "./message-group";
52
54
  export * from "./Metric";
@@ -65,6 +67,7 @@ export * from "./Select";
65
67
  export * from "./SidebarMenu";
66
68
  export * from "./SimplePagination";
67
69
  export * from "./Skeleton";
70
+ export * from "./SmallDialog";
68
71
  export * from "./Space";
69
72
  export * from "./Speed";
70
73
  export * from "./StatusCapsule";
@@ -85,8 +88,7 @@ export * from "./Tooltip";
85
88
  export * from "./Truncate";
86
89
  export * from "./Typo";
87
90
  export * from "./Units";
88
- export * from "./SmallDialog";
89
- export * from "./MediumDialog";
91
+ export * from "./WizardDialog";
90
92
  export declare const units: {
91
93
  Percent: import("./Units").PercentFn;
92
94
  Byte: import("./Units").UnitFn;
@@ -3,3 +3,4 @@ import { StoryObj } from "@storybook/react";
3
3
  declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0fc72a6d").R, import("@storybook/types").Args>;
4
4
  export default _default;
5
5
  export declare const Simple: StoryObj<typeof FieldsDateTimeRange>;
6
+ export declare const With48HourLimit: StoryObj<typeof FieldsDateTimeRange>;
@@ -0,0 +1,93 @@
1
+ import { ImmersiveDialog } from "../../../src/core/ImmersiveDialog";
2
+ import React from "react";
3
+ export declare const CenterImmersiveDialog: () => React.JSX.Element;
4
+ export declare const FullContentImmersiveDialog: () => React.JSX.Element;
5
+ declare const story: {
6
+ title: "Core/ImmersiveDialog | 全屏弹窗";
7
+ component: typeof ImmersiveDialog;
8
+ decorators: ((Story: import("@storybook/types").PartialStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, {
9
+ visible?: boolean | undefined;
10
+ confirmLoading?: boolean | undefined;
11
+ title?: React.ReactNode;
12
+ closable?: boolean | undefined;
13
+ onOk?: (((e: React.MouseEvent<HTMLElement, MouseEvent>) => void) & ((e: React.MouseEvent<HTMLElement, MouseEvent>) => void)) | undefined;
14
+ onCancel?: ((e: React.MouseEvent<HTMLElement, MouseEvent>) => void) | undefined;
15
+ afterClose?: (() => void) | undefined;
16
+ centered?: boolean | undefined;
17
+ width?: string | number | undefined;
18
+ footer?: React.ReactNode;
19
+ okText?: ((boolean | React.ReactChild | React.ReactFragment | React.ReactPortal | null) & string) | undefined;
20
+ okType?: import("antd/lib/button/button").LegacyButtonType | undefined;
21
+ cancelText?: ((boolean | React.ReactChild | React.ReactFragment | React.ReactPortal | null) & string) | undefined;
22
+ maskClosable?: boolean | undefined;
23
+ forceRender?: boolean | undefined;
24
+ okButtonProps?: (Partial<{
25
+ href: string;
26
+ target?: string | undefined;
27
+ onClick?: React.MouseEventHandler<HTMLElement> | undefined;
28
+ } & import("antd/lib/button/button").BaseButtonProps & import("antd/lib/_util/type").Omit<React.AnchorHTMLAttributes<any>, "onClick" | "type"> & {
29
+ htmlType?: "button" | "reset" | "submit" | undefined;
30
+ onClick?: React.MouseEventHandler<HTMLElement> | undefined;
31
+ } & import("antd/lib/_util/type").Omit<React.ButtonHTMLAttributes<any>, "onClick" | "type">> & {
32
+ prefixIcon?: JSX.Element | undefined;
33
+ hoverPrefixIcon?: JSX.Element | undefined;
34
+ suffixIcon?: JSX.Element | undefined;
35
+ hoverSuffixIcon?: JSX.Element | undefined;
36
+ type?: "link" | "text" | "dashed" | "default" | "primary" | "ghost" | "secondary" | "tertiary" | "ordinary" | "ordinary-onTint" | "quiet" | undefined;
37
+ } & Omit<Partial<{
38
+ href: string;
39
+ target?: string | undefined;
40
+ onClick?: React.MouseEventHandler<HTMLElement> | undefined;
41
+ } & import("antd/lib/button/button").BaseButtonProps & import("antd/lib/_util/type").Omit<React.AnchorHTMLAttributes<any>, "onClick" | "type"> & {
42
+ htmlType?: "button" | "reset" | "submit" | undefined;
43
+ onClick?: React.MouseEventHandler<HTMLElement> | undefined;
44
+ } & import("antd/lib/_util/type").Omit<React.ButtonHTMLAttributes<any>, "onClick" | "type">>, "icon" | "type">) | undefined;
45
+ cancelButtonProps?: (Partial<{
46
+ href: string;
47
+ target?: string | undefined;
48
+ onClick?: React.MouseEventHandler<HTMLElement> | undefined;
49
+ } & import("antd/lib/button/button").BaseButtonProps & import("antd/lib/_util/type").Omit<React.AnchorHTMLAttributes<any>, "onClick" | "type"> & {
50
+ htmlType?: "button" | "reset" | "submit" | undefined;
51
+ onClick?: React.MouseEventHandler<HTMLElement> | undefined;
52
+ } & import("antd/lib/_util/type").Omit<React.ButtonHTMLAttributes<any>, "onClick" | "type">> & {
53
+ prefixIcon?: JSX.Element | undefined;
54
+ hoverPrefixIcon?: JSX.Element | undefined;
55
+ suffixIcon?: JSX.Element | undefined;
56
+ hoverSuffixIcon?: JSX.Element | undefined;
57
+ type?: "link" | "text" | "dashed" | "default" | "primary" | "ghost" | "secondary" | "tertiary" | "ordinary" | "ordinary-onTint" | "quiet" | undefined;
58
+ } & Omit<Partial<{
59
+ href: string;
60
+ target?: string | undefined;
61
+ onClick?: React.MouseEventHandler<HTMLElement> | undefined;
62
+ } & import("antd/lib/button/button").BaseButtonProps & import("antd/lib/_util/type").Omit<React.AnchorHTMLAttributes<any>, "onClick" | "type"> & {
63
+ htmlType?: "button" | "reset" | "submit" | undefined;
64
+ onClick?: React.MouseEventHandler<HTMLElement> | undefined;
65
+ } & import("antd/lib/_util/type").Omit<React.ButtonHTMLAttributes<any>, "onClick" | "type">>, "icon" | "type">) | undefined;
66
+ destroyOnClose?: boolean | undefined;
67
+ style?: React.CSSProperties | undefined;
68
+ wrapClassName?: string | undefined;
69
+ maskTransitionName?: string | undefined;
70
+ transitionName?: string | undefined;
71
+ className?: string | undefined;
72
+ getContainer?: string | false | HTMLElement | (() => HTMLElement) | null | undefined;
73
+ zIndex?: number | undefined;
74
+ bodyStyle?: React.CSSProperties | undefined;
75
+ maskStyle?: React.CSSProperties | undefined;
76
+ mask?: boolean | undefined;
77
+ keyboard?: boolean | undefined;
78
+ wrapProps?: any;
79
+ prefixCls?: string | undefined;
80
+ closeIcon?: React.ReactNode;
81
+ focusTriggerAfterClose?: boolean | undefined;
82
+ showCancel?: boolean | undefined;
83
+ showOk?: boolean | undefined;
84
+ okLoading?: boolean | undefined;
85
+ error?: React.ReactNode;
86
+ isContentFull?: boolean | undefined;
87
+ left?: React.ReactNode;
88
+ right?: React.ReactNode;
89
+ footerLeftAction?: React.ReactNode;
90
+ children?: React.ReactNode;
91
+ }>) => React.JSX.Element)[];
92
+ };
93
+ export default story;
@@ -1,10 +1,8 @@
1
- import Button from "../../../src/core/Button";
2
1
  import { ModalProps } from "../../../src/core/Modal";
3
2
  import { Meta } from "@storybook/react";
4
3
  import React from "react";
5
4
  declare const story: Meta<ModalProps>;
6
5
  export default story;
7
- export declare const ImmersiveDialog: (args: Parameters<typeof Button>) => React.JSX.Element;
8
6
  export declare const WithAside: {
9
7
  (): React.JSX.Element;
10
8
  args: {};
@@ -0,0 +1,106 @@
1
+ import { WizardDialog } from "../../../src/core/WizardDialog";
2
+ import React from "react";
3
+ export declare const StepWizardDialog: () => React.JSX.Element;
4
+ export declare const OnlyLeftWizardDialog: () => React.JSX.Element;
5
+ export declare const CustomStepsWizardDialog: () => React.JSX.Element;
6
+ declare const story: {
7
+ title: "Core/WizardDialog | 向导弹窗";
8
+ component: typeof WizardDialog;
9
+ decorators: ((Story: import("@storybook/types").PartialStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, {
10
+ visible?: boolean | undefined;
11
+ confirmLoading?: boolean | undefined;
12
+ title?: React.ReactNode;
13
+ closable?: boolean | undefined;
14
+ onOk?: (((e: React.MouseEvent<HTMLElement, MouseEvent>) => void) & ((e: React.MouseEvent<HTMLElement, MouseEvent>) => void)) | undefined;
15
+ onCancel?: ((e: React.MouseEvent<HTMLElement, MouseEvent>) => void) | undefined;
16
+ afterClose?: (() => void) | undefined;
17
+ centered?: boolean | undefined;
18
+ width?: string | number | undefined;
19
+ footer?: React.ReactNode;
20
+ okText?: ((boolean | React.ReactChild | React.ReactFragment | React.ReactPortal | null) & string) | undefined;
21
+ okType?: import("antd/lib/button/button").LegacyButtonType | undefined;
22
+ cancelText?: ((boolean | React.ReactChild | React.ReactFragment | React.ReactPortal | null) & string) | undefined;
23
+ maskClosable?: boolean | undefined;
24
+ forceRender?: boolean | undefined;
25
+ okButtonProps?: (Partial<{
26
+ href: string;
27
+ target?: string | undefined;
28
+ onClick?: React.MouseEventHandler<HTMLElement> | undefined;
29
+ } & import("antd/lib/button/button").BaseButtonProps & import("antd/lib/_util/type").Omit<React.AnchorHTMLAttributes<any>, "onClick" | "type"> & {
30
+ htmlType?: "button" | "reset" | "submit" | undefined;
31
+ onClick?: React.MouseEventHandler<HTMLElement> | undefined;
32
+ } & import("antd/lib/_util/type").Omit<React.ButtonHTMLAttributes<any>, "onClick" | "type">> & {
33
+ prefixIcon?: JSX.Element | undefined;
34
+ hoverPrefixIcon?: JSX.Element | undefined;
35
+ suffixIcon?: JSX.Element | undefined;
36
+ hoverSuffixIcon?: JSX.Element | undefined;
37
+ type?: "link" | "text" | "dashed" | "default" | "primary" | "ghost" | "secondary" | "tertiary" | "ordinary" | "ordinary-onTint" | "quiet" | undefined;
38
+ } & Omit<Partial<{
39
+ href: string;
40
+ target?: string | undefined;
41
+ onClick?: React.MouseEventHandler<HTMLElement> | undefined;
42
+ } & import("antd/lib/button/button").BaseButtonProps & import("antd/lib/_util/type").Omit<React.AnchorHTMLAttributes<any>, "onClick" | "type"> & {
43
+ htmlType?: "button" | "reset" | "submit" | undefined;
44
+ onClick?: React.MouseEventHandler<HTMLElement> | undefined;
45
+ } & import("antd/lib/_util/type").Omit<React.ButtonHTMLAttributes<any>, "onClick" | "type">>, "icon" | "type">) | undefined;
46
+ cancelButtonProps?: (Partial<{
47
+ href: string;
48
+ target?: string | undefined;
49
+ onClick?: React.MouseEventHandler<HTMLElement> | undefined;
50
+ } & import("antd/lib/button/button").BaseButtonProps & import("antd/lib/_util/type").Omit<React.AnchorHTMLAttributes<any>, "onClick" | "type"> & {
51
+ htmlType?: "button" | "reset" | "submit" | undefined;
52
+ onClick?: React.MouseEventHandler<HTMLElement> | undefined;
53
+ } & import("antd/lib/_util/type").Omit<React.ButtonHTMLAttributes<any>, "onClick" | "type">> & {
54
+ prefixIcon?: JSX.Element | undefined;
55
+ hoverPrefixIcon?: JSX.Element | undefined;
56
+ suffixIcon?: JSX.Element | undefined;
57
+ hoverSuffixIcon?: JSX.Element | undefined;
58
+ type?: "link" | "text" | "dashed" | "default" | "primary" | "ghost" | "secondary" | "tertiary" | "ordinary" | "ordinary-onTint" | "quiet" | undefined;
59
+ } & Omit<Partial<{
60
+ href: string;
61
+ target?: string | undefined;
62
+ onClick?: React.MouseEventHandler<HTMLElement> | undefined;
63
+ } & import("antd/lib/button/button").BaseButtonProps & import("antd/lib/_util/type").Omit<React.AnchorHTMLAttributes<any>, "onClick" | "type"> & {
64
+ htmlType?: "button" | "reset" | "submit" | undefined;
65
+ onClick?: React.MouseEventHandler<HTMLElement> | undefined;
66
+ } & import("antd/lib/_util/type").Omit<React.ButtonHTMLAttributes<any>, "onClick" | "type">>, "icon" | "type">) | undefined;
67
+ destroyOnClose?: boolean | undefined;
68
+ style?: React.CSSProperties | undefined;
69
+ wrapClassName?: string | undefined;
70
+ maskTransitionName?: string | undefined;
71
+ transitionName?: string | undefined;
72
+ className?: string | undefined;
73
+ getContainer?: string | false | HTMLElement | (() => HTMLElement) | null | undefined;
74
+ zIndex?: number | undefined;
75
+ bodyStyle?: React.CSSProperties | undefined;
76
+ maskStyle?: React.CSSProperties | undefined;
77
+ mask?: boolean | undefined;
78
+ keyboard?: boolean | undefined;
79
+ wrapProps?: any;
80
+ prefixCls?: string | undefined;
81
+ closeIcon?: React.ReactNode;
82
+ focusTriggerAfterClose?: boolean | undefined;
83
+ showCancel?: boolean | undefined;
84
+ showOk?: boolean | undefined;
85
+ okLoading?: boolean | undefined;
86
+ error?: React.ReactNode;
87
+ isContentFull?: boolean | undefined;
88
+ left?: React.ReactNode;
89
+ right?: React.ReactNode;
90
+ footerLeftAction?: React.ReactNode;
91
+ children?: React.ReactNode;
92
+ step?: number | undefined;
93
+ steps?: {
94
+ title: string;
95
+ children: React.ReactNode;
96
+ }[] | undefined;
97
+ hideSteps?: boolean | undefined;
98
+ destroyOtherStep?: boolean | undefined;
99
+ prevText?: string | undefined;
100
+ onPrevStep?: ((step: number) => void) | undefined;
101
+ nextText?: string | undefined;
102
+ onNextStep?: ((step: number) => boolean | void) | undefined;
103
+ onStepChange?: ((step: number) => void) | undefined;
104
+ }>) => React.JSX.Element)[];
105
+ };
106
+ export default story;