@cloudtower/eagle 0.34.21 → 0.34.23

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.
Files changed (32) hide show
  1. package/dist/cjs/UIKitProvider/index.js +5 -10
  2. package/dist/cjs/core/{Modal → LegacyModal}/index.js +7 -3
  3. package/dist/cjs/core/LegacySelect/index.js +4 -0
  4. package/dist/cjs/core/message/message.js +24 -1
  5. package/dist/cjs/coreX/KubeConfigModal/index.js +4 -4
  6. package/dist/cjs/hooks/useLegacyComponentWarning.js +16 -0
  7. package/dist/cjs/index.js +16 -16
  8. package/dist/cjs/legacy-antd.js +2 -2
  9. package/dist/cjs/stats1.html +1 -1
  10. package/dist/components.css +2817 -2817
  11. package/dist/esm/UIKitProvider/index.js +5 -10
  12. package/dist/esm/core/{Modal → LegacyModal}/index.js +9 -5
  13. package/dist/esm/core/LegacySelect/index.js +4 -0
  14. package/dist/esm/core/message/message.js +24 -1
  15. package/dist/esm/coreX/KubeConfigModal/index.js +5 -5
  16. package/dist/esm/hooks/useLegacyComponentWarning.js +14 -0
  17. package/dist/esm/index.js +1 -1
  18. package/dist/esm/legacy-antd.js +4 -4
  19. package/dist/esm/stats1.html +1 -1
  20. package/dist/linaria.merged.scss +3265 -3265
  21. package/dist/src/core/{Modal/modal.type.d.ts → LegacyModal/LegacyModal.type.d.ts} +12 -1
  22. package/dist/src/core/LegacyModal/index.d.ts +16 -0
  23. package/dist/src/core/index.d.ts +2 -2
  24. package/dist/src/core/message/message.d.ts +5 -0
  25. package/dist/src/hooks/useLegacyComponentWarning.d.ts +2 -0
  26. package/dist/src/spec/base.d.ts +2 -2
  27. package/dist/stories/docs/core/LegacyModal.stories.d.ts +23 -0
  28. package/dist/stories/docs/core/message-group.stories.d.ts +1 -0
  29. package/dist/style.css +2817 -2817
  30. package/package.json +4 -4
  31. package/dist/src/core/Modal/index.d.ts +0 -5
  32. package/dist/stories/docs/core/Modal.stories.d.ts +0 -13
@@ -21,7 +21,18 @@ export type WizardSteps = {
21
21
  /** 是否禁用当前步骤 */
22
22
  disabled?: boolean;
23
23
  }[];
24
- export type ModalProps = Omit<AntdModalProps, "okType"> & {
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";
@@ -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;
@@ -0,0 +1,2 @@
1
+ declare const useLegacyComponentWarning: (msg?: string) => void;
2
+ export default useLegacyComponentWarning;
@@ -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, ModalProps, PaginationProps, PercentFn, RadioButtonProps, RadioProps, SearchInputProps, SelectComponentType, StatusCapsuleComponentType, StringProps, SwitchProps, TableComponent, TableFormHandle, TableFormProps, TagComponentType, TextAreaProps, TokenComponentType, TooltipProps, TruncatePropTypes, UnitFn } from "../core";
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
- modal: React.FC<ModalProps>;
110
+ legacyModal: React.FC<LegacyModalProps>;
111
111
  dropdown: React.FC<DropDownProps>;
112
112
  switch: React.FC<SwitchProps>;
113
113
  tooltip: React.FC<TooltipProps>;
@@ -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;
@@ -32,3 +32,4 @@ export declare const BasicError: Story;
32
32
  export declare const MaxCount: Story;
33
33
  export declare const CustomTopPosition: Story;
34
34
  export declare const BatchMessage: Story;
35
+ export declare const CTError: Story;