@cloudtower/eagle 0.34.22 → 0.34.24
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/UIKitProvider/index.js +5 -10
- package/dist/cjs/core/ImmersiveDialog/index.js +8 -2
- package/dist/cjs/core/{Modal → LegacyModal}/index.js +7 -3
- package/dist/cjs/core/LegacySelect/index.js +4 -0
- package/dist/cjs/core/MediumDialog/MediumDialog.js +1 -1
- package/dist/cjs/core/SmallDialog/SmallDialog.js +7 -5
- package/dist/cjs/core/message/message.js +24 -1
- package/dist/cjs/coreX/KubeConfigModal/index.js +4 -4
- package/dist/cjs/hooks/useLegacyComponentWarning.js +16 -0
- package/dist/cjs/index.js +16 -16
- package/dist/cjs/legacy-antd.js +2 -2
- package/dist/cjs/stats1.html +1 -1
- package/dist/components.css +1317 -1295
- package/dist/esm/UIKitProvider/index.js +5 -10
- package/dist/esm/core/ImmersiveDialog/index.js +8 -2
- package/dist/esm/core/{Modal → LegacyModal}/index.js +9 -5
- package/dist/esm/core/LegacySelect/index.js +4 -0
- package/dist/esm/core/MediumDialog/MediumDialog.js +1 -1
- package/dist/esm/core/SmallDialog/SmallDialog.js +6 -4
- package/dist/esm/core/message/message.js +24 -1
- package/dist/esm/coreX/KubeConfigModal/index.js +5 -5
- package/dist/esm/hooks/useLegacyComponentWarning.js +14 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/legacy-antd.js +4 -4
- package/dist/esm/stats1.html +1 -1
- package/dist/linaria.merged.scss +1406 -1377
- package/dist/src/core/ImmersiveDialog/type.d.ts +2 -0
- package/dist/src/core/{Modal/modal.type.d.ts → LegacyModal/LegacyModal.type.d.ts} +12 -1
- package/dist/src/core/LegacyModal/index.d.ts +16 -0
- package/dist/src/core/SmallDialog/SmallDialog.type.d.ts +2 -0
- package/dist/src/core/index.d.ts +2 -2
- package/dist/src/core/message/message.d.ts +5 -0
- package/dist/src/hooks/useLegacyComponentWarning.d.ts +2 -0
- package/dist/src/spec/base.d.ts +2 -2
- package/dist/stories/docs/core/ImmersiveDialog.stories.d.ts +5 -0
- package/dist/stories/docs/core/LegacyModal.stories.d.ts +23 -0
- package/dist/stories/docs/core/MediumDialog.stories.d.ts +5 -1
- package/dist/stories/docs/core/SmallDialog.stories.d.ts +5 -1
- package/dist/stories/docs/core/WizardDialog.stories.d.ts +2 -0
- package/dist/stories/docs/core/message-group.stories.d.ts +1 -0
- package/dist/style.css +1317 -1295
- package/package.json +4 -4
- package/dist/src/core/Modal/index.d.ts +0 -5
- package/dist/stories/docs/core/Modal.stories.d.ts +0 -13
|
@@ -18,6 +18,8 @@ export type ImmersiveDialogProps = React.PropsWithChildren<AntdModalProps & {
|
|
|
18
18
|
okButtonProps?: ButtonProps;
|
|
19
19
|
/** 错误信息 */
|
|
20
20
|
error?: React.ReactNode;
|
|
21
|
+
/** 是否隐藏 footer */
|
|
22
|
+
hideFooter?: boolean;
|
|
21
23
|
/** 是否展示在 modal footer 的错误图标, 默认展示 */
|
|
22
24
|
showFooterErrorIcon?: boolean;
|
|
23
25
|
/** 确定按钮的回调 */
|
|
@@ -21,7 +21,18 @@ export type WizardSteps = {
|
|
|
21
21
|
/** 是否禁用当前步骤 */
|
|
22
22
|
disabled?: boolean;
|
|
23
23
|
}[];
|
|
24
|
-
|
|
24
|
+
/**
|
|
25
|
+
* @deprecated This component is deprecated and will be removed in future versions.
|
|
26
|
+
* Please use the following alternatives:
|
|
27
|
+
* - For standard dialogs: use `MediumDialog` or `SmallDialog`
|
|
28
|
+
* - For fullscreen dialogs: use `ImmersiveDialog`
|
|
29
|
+
* - For wizard-style dialogs: use `WizardDialog`
|
|
30
|
+
* @see MediumDialog
|
|
31
|
+
* @see SmallDialog
|
|
32
|
+
* @see ImmersiveDialog
|
|
33
|
+
* @see WizardDialog
|
|
34
|
+
*/
|
|
35
|
+
export type LegacyModalProps = Omit<AntdModalProps, "okType"> & {
|
|
25
36
|
/** 确认按钮加载状态 */
|
|
26
37
|
confirmLoading?: boolean;
|
|
27
38
|
/** 是否全屏显示 */
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { LegacyModalProps } from "./LegacyModal.type";
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated This component is deprecated and will be removed in future versions.
|
|
5
|
+
* Please use the following alternatives:
|
|
6
|
+
* - For standard dialogs: use `MediumDialog` or `SmallDialog`
|
|
7
|
+
* - For fullscreen dialogs: use `ImmersiveDialog`
|
|
8
|
+
* - For wizard-style dialogs: use `WizardDialog`
|
|
9
|
+
* @see MediumDialog
|
|
10
|
+
* @see SmallDialog
|
|
11
|
+
* @see ImmersiveDialog
|
|
12
|
+
* @see WizardDialog
|
|
13
|
+
*/
|
|
14
|
+
declare const LegacyModal: React.FC<LegacyModalProps>;
|
|
15
|
+
export default LegacyModal;
|
|
16
|
+
export * from "./LegacyModal.type";
|
|
@@ -34,6 +34,8 @@ export interface SmallDialogProps {
|
|
|
34
34
|
children?: React.ReactNode;
|
|
35
35
|
/** 展示在 modal footer 的错误文案 */
|
|
36
36
|
error?: React.ReactNode;
|
|
37
|
+
/** 是否隐藏 footer */
|
|
38
|
+
hideFooter?: boolean;
|
|
37
39
|
/** 是否展示在 modal footer 的错误图标, 默认展示 */
|
|
38
40
|
showFooterErrorIcon?: boolean;
|
|
39
41
|
/** 确认按钮加载状态 */
|
package/dist/src/core/index.d.ts
CHANGED
|
@@ -44,6 +44,7 @@ export * from "./InputNumber";
|
|
|
44
44
|
export * from "./InputPassword";
|
|
45
45
|
export * from "./InputTagItem";
|
|
46
46
|
export * from "./KitStoreProvider";
|
|
47
|
+
export * from "./LegacyModal";
|
|
47
48
|
export * from "./LegacySelect";
|
|
48
49
|
export * from "./Legend";
|
|
49
50
|
export * from "./LineChart";
|
|
@@ -53,7 +54,6 @@ export * from "./MediumDialog";
|
|
|
53
54
|
export * from "./message";
|
|
54
55
|
export * from "./message-group";
|
|
55
56
|
export * from "./Metric";
|
|
56
|
-
export * from "./Modal";
|
|
57
57
|
export * from "./ModalStack";
|
|
58
58
|
export * from "./Overflow";
|
|
59
59
|
export * from "./Pagination";
|
|
@@ -142,6 +142,7 @@ export { default as InputNumber } from "./InputNumber";
|
|
|
142
142
|
export { default as InputPassword } from "./InputPassword";
|
|
143
143
|
export { default as InputTagItem } from "./InputTagItem";
|
|
144
144
|
export { default as KitStoreProvider } from "./KitStoreProvider";
|
|
145
|
+
export { default as LegacyModal } from "./LegacyModal";
|
|
145
146
|
export { default as LegacySelect } from "./LegacySelect";
|
|
146
147
|
export { default as Legend } from "./Legend";
|
|
147
148
|
export { default as LineChart } from "./LineChart";
|
|
@@ -149,7 +150,6 @@ export { default as Link } from "./Link";
|
|
|
149
150
|
export { default as Loading } from "./Loading";
|
|
150
151
|
export { default as message } from "./message";
|
|
151
152
|
export { default as Metric } from "./Metric";
|
|
152
|
-
export { default as Modal } from "./Modal";
|
|
153
153
|
export { default as ModalStack } from "./ModalStack";
|
|
154
154
|
export { default as Nav } from "./Nav";
|
|
155
155
|
export { default as Overflow } from "./Overflow";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
+
import { type ConfigProps } from "../ConfigProvider";
|
|
2
3
|
type NoticeType = "info" | "success" | "error" | "warning" | "loading";
|
|
3
4
|
export declare const DEFAULT_DURATION = 3;
|
|
4
5
|
export declare function getKeyThenIncreaseKey(): number;
|
|
@@ -10,6 +11,10 @@ export interface ConfigOptions {
|
|
|
10
11
|
transitionName?: string;
|
|
11
12
|
maxCount?: number;
|
|
12
13
|
rtl?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* ConfigProvider 的配置,用于在 message 中传递 context
|
|
16
|
+
*/
|
|
17
|
+
configProviderProps?: ConfigProps;
|
|
13
18
|
}
|
|
14
19
|
export interface ThenableArgument {
|
|
15
20
|
(val: any): void;
|
package/dist/src/spec/base.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AlertComponentType, ArchComponentType, BadgeComponentType, BaseEnumProps, ButtonGroupType, ButtonProps, CalendarComponentType, CardProps, CloseButtonProps, FieldBaseProps, FieldRenderProps, IAccordionCardProps, IBreadcrumbProps, ICircleProgressProps, IDetailCardProps, IDonutChartProps, IDropdownMenuProps, InputGroupComponentType, InputSize, IntFieldProps, ISegmentedControlProps, ISimplePaginationProps, ISpaceProps, IStepsProps, ITimeProps, ITimeZoneSelectProps, LegacySelectComponentType, LinkComponentType, LoadingComponentType, MessageApi,
|
|
1
|
+
import type { AlertComponentType, ArchComponentType, BadgeComponentType, BaseEnumProps, ButtonGroupType, ButtonProps, CalendarComponentType, CardProps, CloseButtonProps, FieldBaseProps, FieldRenderProps, IAccordionCardProps, IBreadcrumbProps, ICircleProgressProps, IDetailCardProps, IDonutChartProps, IDropdownMenuProps, InputGroupComponentType, InputSize, IntFieldProps, ISegmentedControlProps, ISimplePaginationProps, ISpaceProps, IStepsProps, ITimeProps, ITimeZoneSelectProps, LegacyModalProps, LegacySelectComponentType, LinkComponentType, LoadingComponentType, MessageApi, PaginationProps, PercentFn, RadioButtonProps, RadioProps, SearchInputProps, SelectComponentType, StatusCapsuleComponentType, StringProps, SwitchProps, TableComponent, TableFormHandle, TableFormProps, TagComponentType, TextAreaProps, TokenComponentType, TooltipProps, TruncatePropTypes, UnitFn } from "../core";
|
|
2
2
|
import type { CronCalendarProps, CronPlanProps, DateRangePickerProps, DeprecatedIDonutChartProps, DropdownTransitionProps, GoBackButtonType, I18nNameTagType, IBatchOperation, IChartWithUnitProps, ICountingProps, ICWTProps, IUnitWithChartProps, NamesTooltipType, OverflowTooltipProps, SidebarSubtitleComponentType, SortableListComponentType, SummaryTableComponentType, SwitchWithTextProps } from "../coreX";
|
|
3
3
|
import { AutoCompleteProps } from "antd/lib/auto-complete";
|
|
4
4
|
import { BadgeProps } from "antd/lib/badge";
|
|
@@ -107,7 +107,7 @@ export interface Kit<V = any, T extends HTMLElement = HTMLElement> {
|
|
|
107
107
|
selectOptGroup: import("rc-select/lib/OptGroup").OptionGroupFC;
|
|
108
108
|
table: TableComponent;
|
|
109
109
|
button: React.FC<ButtonProps>;
|
|
110
|
-
|
|
110
|
+
legacyModal: React.FC<LegacyModalProps>;
|
|
111
111
|
dropdown: React.FC<DropDownProps>;
|
|
112
112
|
switch: React.FC<SwitchProps>;
|
|
113
113
|
tooltip: React.FC<TooltipProps>;
|
|
@@ -83,6 +83,7 @@ declare const story: {
|
|
|
83
83
|
showCancel?: boolean | undefined;
|
|
84
84
|
showOk?: boolean | undefined;
|
|
85
85
|
error?: React.ReactNode;
|
|
86
|
+
hideFooter?: boolean | undefined;
|
|
86
87
|
showFooterErrorIcon?: boolean | undefined;
|
|
87
88
|
isContentFull?: boolean | undefined;
|
|
88
89
|
left?: React.ReactNode;
|
|
@@ -104,3 +105,7 @@ export declare const WithError: () => React.JSX.Element;
|
|
|
104
105
|
* 初始化状态
|
|
105
106
|
*/
|
|
106
107
|
export declare const Initializing: () => React.JSX.Element;
|
|
108
|
+
/**
|
|
109
|
+
* 不展示 footer
|
|
110
|
+
*/
|
|
111
|
+
export declare const NoFooter: () => React.JSX.Element;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { LegacyModalProps } from "../../../src/core/LegacyModal";
|
|
2
|
+
import { Meta } from "@storybook/react";
|
|
3
|
+
import React from "react";
|
|
4
|
+
/**
|
|
5
|
+
* ⚠️ **此组件已废弃,不再维护**
|
|
6
|
+
*
|
|
7
|
+
* LegacyModal 组件已被标记为废弃。请使用以下替代方案:
|
|
8
|
+
* - 普通对话框:使用 `MediumDialog` 或 `SmallDialog`
|
|
9
|
+
* - 全屏对话框:使用 `ImmersiveDialog`
|
|
10
|
+
* - 向导式对话框:使用 `WizardDialog`
|
|
11
|
+
*
|
|
12
|
+
* 此组件仅为了保持向后兼容性而保留,不建议在新代码中使用。
|
|
13
|
+
*/
|
|
14
|
+
declare const story: Meta<LegacyModalProps>;
|
|
15
|
+
export default story;
|
|
16
|
+
export declare const WithAside: {
|
|
17
|
+
(): React.JSX.Element;
|
|
18
|
+
args: {};
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* 点击弹窗中的 close all modal 按钮,会清理掉页面中的所有弹窗
|
|
22
|
+
*/
|
|
23
|
+
export declare const CloseAllModal: () => React.JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import { MediumDialog } from "../../../src/core";
|
|
3
2
|
import { CoreMeta } from "../../types";
|
|
3
|
+
import React from "react";
|
|
4
4
|
/**
|
|
5
5
|
* MediumDialog 组件
|
|
6
6
|
*
|
|
@@ -45,3 +45,7 @@ export declare const Initializing: () => React.JSX.Element;
|
|
|
45
45
|
* 内容占满视窗
|
|
46
46
|
*/
|
|
47
47
|
export declare const ContentFull: () => React.JSX.Element;
|
|
48
|
+
/**
|
|
49
|
+
* 不展示 footer
|
|
50
|
+
*/
|
|
51
|
+
export declare const NoFooter: () => React.JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import { SmallDialog } from "../../../src/core";
|
|
3
2
|
import { CoreMeta } from "../../types";
|
|
3
|
+
import React from "react";
|
|
4
4
|
/**
|
|
5
5
|
* SmallDialog 组件
|
|
6
6
|
*
|
|
@@ -39,3 +39,7 @@ export declare const LongContent: () => React.JSX.Element;
|
|
|
39
39
|
* 初始化状态
|
|
40
40
|
*/
|
|
41
41
|
export declare const Initializing: () => React.JSX.Element;
|
|
42
|
+
/**
|
|
43
|
+
* 不展示 footer
|
|
44
|
+
*/
|
|
45
|
+
export declare const NoFooter: () => React.JSX.Element;
|
|
@@ -5,6 +5,7 @@ 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
7
|
export declare const InitializingWizardDialog: () => React.JSX.Element;
|
|
8
|
+
export declare const NoFooterWizardDialog: () => React.JSX.Element;
|
|
8
9
|
declare const story: {
|
|
9
10
|
title: "Core/WizardDialog | 向导弹窗";
|
|
10
11
|
component: typeof WizardDialog;
|
|
@@ -85,6 +86,7 @@ declare const story: {
|
|
|
85
86
|
showCancel?: boolean | undefined;
|
|
86
87
|
showOk?: boolean | undefined;
|
|
87
88
|
error?: React.ReactNode;
|
|
89
|
+
hideFooter?: boolean | undefined;
|
|
88
90
|
showFooterErrorIcon?: boolean | undefined;
|
|
89
91
|
isContentFull?: boolean | undefined;
|
|
90
92
|
left?: React.ReactNode;
|