@cloudtower/eagle 0.32.1 → 0.32.2

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 (79) hide show
  1. package/dist/cjs/UIKitProvider/index.js +2 -16
  2. package/dist/cjs/core/BytePerSecond/index.js +45 -0
  3. package/dist/cjs/core/ConfigProvider/index.js +37 -1
  4. package/dist/cjs/core/Fields/FieldsEnum/index.js +1 -1
  5. package/dist/cjs/core/LegacySelect/index.js +185 -0
  6. package/dist/cjs/core/LegacySelect/select.style.js +5 -0
  7. package/dist/cjs/core/Select/index.js +106 -117
  8. package/dist/cjs/core/Select/select.style.js +11 -0
  9. package/dist/cjs/core/Select/select.widgets.js +63 -0
  10. package/dist/cjs/core/TableForm/TableFormBodyCell.js +6 -3
  11. package/dist/cjs/core/TableForm/TableFormBodyRows.js +7 -2
  12. package/dist/cjs/core/TableForm/index.js +12 -1
  13. package/dist/cjs/core/TimeZoneSelect/index.js +1 -1
  14. package/dist/cjs/core/Tooltip/EllipsisTooltipContent.js +55 -0
  15. package/dist/cjs/core/Tooltip/index.js +4 -1
  16. package/dist/cjs/core/index.js +15 -12
  17. package/dist/cjs/coreX/ChartWithTooltip/index.js +14 -12
  18. package/dist/cjs/coreX/DateRangePicker/Calendar.js +4 -3
  19. package/dist/cjs/coreX/DateRangePicker/index.js +2 -2
  20. package/dist/cjs/coreX/SummaryTable/index.js +6 -3
  21. package/dist/cjs/coreX/UnitWithChart/index.js +14 -12
  22. package/dist/cjs/index.js +245 -239
  23. package/dist/cjs/legacy-antd.js +137 -133
  24. package/dist/cjs/stats1.html +1 -1
  25. package/dist/cjs/utils/tower.js +17 -0
  26. package/dist/components.css +2919 -2719
  27. package/dist/esm/UIKitProvider/index.js +2 -12
  28. package/dist/esm/core/BytePerSecond/index.js +39 -0
  29. package/dist/esm/core/ConfigProvider/index.js +32 -2
  30. package/dist/esm/core/Fields/FieldsEnum/index.js +4 -4
  31. package/dist/esm/core/LegacySelect/index.js +177 -0
  32. package/dist/esm/core/LegacySelect/select.style.js +3 -0
  33. package/dist/esm/core/Select/index.js +104 -116
  34. package/dist/esm/core/Select/select.style.js +6 -0
  35. package/dist/esm/core/Select/select.widgets.js +57 -0
  36. package/dist/esm/core/TableForm/TableFormBodyCell.js +6 -3
  37. package/dist/esm/core/TableForm/TableFormBodyRows.js +7 -2
  38. package/dist/esm/core/TableForm/index.js +13 -2
  39. package/dist/esm/core/TimeZoneSelect/index.js +2 -2
  40. package/dist/esm/core/Tooltip/EllipsisTooltipContent.js +49 -0
  41. package/dist/esm/core/Tooltip/index.js +4 -1
  42. package/dist/esm/core/index.js +3 -1
  43. package/dist/esm/coreX/ChartWithTooltip/index.js +2 -0
  44. package/dist/esm/coreX/DateRangePicker/Calendar.js +4 -3
  45. package/dist/esm/coreX/DateRangePicker/index.js +3 -3
  46. package/dist/esm/coreX/SummaryTable/index.js +6 -3
  47. package/dist/esm/coreX/UnitWithChart/index.js +2 -0
  48. package/dist/esm/index.js +6 -3
  49. package/dist/esm/legacy-antd.js +4 -0
  50. package/dist/esm/stats1.html +1 -1
  51. package/dist/esm/utils/tower.js +17 -1
  52. package/dist/src/UIKitProvider/UIKitProvider.stories.d.ts +1 -2
  53. package/dist/src/antd.d.ts +1 -0
  54. package/dist/src/core/BytePerSecond/index.d.ts +3 -0
  55. package/dist/src/core/ConfigProvider/index.d.ts +2 -0
  56. package/dist/src/core/LegacySelect/index.d.ts +4 -0
  57. package/dist/src/core/LegacySelect/select.style.d.ts +1 -0
  58. package/dist/src/core/LegacySelect/select.type.d.ts +31 -0
  59. package/dist/src/core/Select/index.d.ts +1 -0
  60. package/dist/src/core/Select/select.style.d.ts +4 -0
  61. package/dist/src/core/Select/select.type.d.ts +6 -31
  62. package/dist/src/core/Select/select.widgets.d.ts +7 -0
  63. package/dist/src/core/TableForm/types.d.ts +3 -0
  64. package/dist/src/core/Tooltip/EllipsisTooltipContent.d.ts +1 -1
  65. package/dist/src/core/Tooltip/index.d.ts +7 -1
  66. package/dist/src/core/index.d.ts +7 -2
  67. package/dist/src/coreX/SummaryTable/index.d.ts +1 -0
  68. package/dist/src/coreX/UnitWithChart/index.d.ts +1 -0
  69. package/dist/src/spec/base.d.ts +3 -1
  70. package/dist/src/utils/tower.d.ts +1 -0
  71. package/dist/stories/docs/core/BytePerSecond.stories.d.ts +17 -0
  72. package/dist/stories/docs/core/EllipsisTooltipContent.stories.d.ts +1 -1
  73. package/dist/stories/docs/core/{Select.Simple.stories.d.ts → LegacySelect.Simple.stories.d.ts} +3 -3
  74. package/dist/stories/docs/core/LegacySelect.stories.d.ts +16 -0
  75. package/dist/stories/docs/core/Tooltip.stories.d.ts +3 -1
  76. package/dist/stories/docs/coreX/Calendar.stories.d.ts +11 -0
  77. package/dist/style.css +2623 -2456
  78. package/package.json +6 -4
  79. package/dist/src/core/Tooltip/tooltip.widget.d.ts +0 -5
@@ -123,6 +123,22 @@ function formatBytes(bytes, decimals = 2) {
123
123
  unit: units[i]
124
124
  };
125
125
  }
126
+ function formatBytePerSecond(bytes, decimals = 2) {
127
+ if (bytes <= 0 || bytes === MAGIC_METRIC_NULL) {
128
+ return {
129
+ value: 0,
130
+ unit: "B/s"
131
+ };
132
+ }
133
+ const k = 1024;
134
+ const units = ["B/s", "KiB/s", "MiB/s", "GiB/s", "TiB/s", "PiB/s"];
135
+ let i = Math.floor(Math.log(bytes) / Math.log(k));
136
+ i = i < 0 ? 0 : i > units.length - 1 ? units.length - 1 : i;
137
+ return {
138
+ value: parseFloat((bytes / Math.pow(k, i)).toFixed(decimals)),
139
+ unit: units[i]
140
+ };
141
+ }
126
142
  function formatPercent(input, decimals = 2, saturated = true) {
127
143
  if (input === MAGIC_METRIC_NULL) {
128
144
  input = 0;
@@ -170,4 +186,4 @@ function formatSpeed(input, decimals = 0) {
170
186
  };
171
187
  }
172
188
 
173
- export { DAY, HOUR, MAGIC_METRIC_NULL, MINUTE, SECOND, WEEK, formatBitPerSecond, formatBits, formatBps, formatBytes, formatFrequency, formatPercent, formatSeconds, formatSpeed };
189
+ export { DAY, HOUR, MAGIC_METRIC_NULL, MINUTE, SECOND, WEEK, formatBitPerSecond, formatBits, formatBps, formatBytePerSecond, formatBytes, formatFrequency, formatPercent, formatSeconds, formatSpeed };
@@ -3,5 +3,4 @@ import UIKitProvider from ".";
3
3
  declare const meta: Meta<typeof UIKitProvider>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof UIKitProvider>;
6
- export declare const Chinese: Story;
7
- export declare const English: Story;
6
+ export declare const Basic: Story;
@@ -1,3 +1,4 @@
1
+ /// <reference types="moment" />
1
2
  import { MenuItemGroupProps } from "antd/lib/menu";
2
3
  import { ModalProps as AntdModalProps } from "antd/lib/modal";
3
4
  import { FC } from "react";
@@ -0,0 +1,3 @@
1
+ import { UnitFn } from "../Units/units.type";
2
+ declare const BytePerSecond: UnitFn;
3
+ export default BytePerSecond;
@@ -1,6 +1,8 @@
1
1
  import { ConfigProviderProps } from "antd/lib/config-provider";
2
2
  import { ConfigProviderProps as Antd5ConfigProviderProps } from "antd5";
3
3
  import React from "react";
4
+ import "dayjs/locale/zh-cn";
5
+ import "moment/locale/zh-cn";
4
6
  export type ConfigProps = {
5
7
  antd4Configs?: ConfigProviderProps;
6
8
  antd5Configs?: Antd5ConfigProviderProps;
@@ -0,0 +1,4 @@
1
+ import { LegacySelectComponentType } from "./select.type";
2
+ declare const LegacySelect: LegacySelectComponentType<any, HTMLElement>;
3
+ export default LegacySelect;
4
+ export * from "./select.type";
@@ -0,0 +1 @@
1
+ export declare const SelectStyle: import("@linaria/core").LinariaClassName;
@@ -0,0 +1,31 @@
1
+ /// <reference types="react" />
2
+ import { SelectProps as AntdSelectProps } from "antd/lib/select";
3
+ import { FieldRenderProps } from "../Fields/fields.type";
4
+ export type KitLegacySelectProps = {
5
+ defaultValue?: string;
6
+ error?: unknown | React.ReactNode;
7
+ danger?: boolean;
8
+ multiple?: boolean;
9
+ scrollBottomBuffer?: number;
10
+ onScrollBottom?: () => void;
11
+ selectLimit?: number;
12
+ } & AntdSelectProps<string>;
13
+ export interface LooseFieldRenderProps<V, T extends HTMLElement> {
14
+ input: {
15
+ name?: FieldRenderProps<V, T>["input"]["name"];
16
+ value?: FieldRenderProps<V, T>["input"]["value"];
17
+ onBlur?: FieldRenderProps<V, T>["input"]["onBlur"];
18
+ onChange?: (value: string | string[], option: {
19
+ object: V;
20
+ } | Array<{
21
+ object: V;
22
+ }>) => void;
23
+ onFocus?: FieldRenderProps<V, T>["input"]["onFocus"];
24
+ type?: FieldRenderProps<V, T>["input"]["type"];
25
+ checked?: FieldRenderProps<V, T>["input"]["checked"];
26
+ multiple?: FieldRenderProps<V, T>["input"]["multiple"];
27
+ };
28
+ meta?: FieldRenderProps<V, T>["meta"];
29
+ focusIndicator?: boolean;
30
+ }
31
+ export type LegacySelectComponentType<V = any, T extends HTMLElement = HTMLElement> = React.FunctionComponent<LooseFieldRenderProps<V, T> & KitLegacySelectProps>;
@@ -2,3 +2,4 @@ import { SelectComponentType } from "./select.type";
2
2
  declare const Select: SelectComponentType<any, HTMLElement>;
3
3
  export default Select;
4
4
  export * from "./select.type";
5
+ export * from "./select.widgets";
@@ -0,0 +1,4 @@
1
+ export declare const SelectStyle: import("@linaria/core").LinariaClassName;
2
+ export declare const SelectIconStyle: import("@linaria/core").LinariaClassName;
3
+ export declare const SelectSizeStyle: import("@linaria/core").LinariaClassName;
4
+ export declare const PlaceholderTextStyle: import("@linaria/core").LinariaClassName;
@@ -1,32 +1,7 @@
1
- /// <reference types="react" />
2
- import { SelectProps as AntdSelectProps } from "antd/lib/select";
3
- import { FieldRenderProps } from "../Fields/fields.type";
4
- export type KitSelectProps = {
5
- defaultValue?: string;
6
- error?: unknown | React.ReactNode;
7
- danger?: boolean;
8
- multiple?: boolean;
9
- scrollBottomBuffer?: number;
10
- onScrollBottom?: () => void;
11
- selectLimit?: number;
12
- } & AntdSelectProps<string>;
13
- interface LooseFieldRenderProps<V, T extends HTMLElement> {
14
- input: {
15
- name?: FieldRenderProps<V, T>["input"]["name"];
16
- value?: FieldRenderProps<V, T>["input"]["value"];
17
- onBlur?: FieldRenderProps<V, T>["input"]["onBlur"];
18
- onChange?: (value: string | string[], option: {
19
- object: V;
20
- } | Array<{
21
- object: V;
22
- }>) => void;
23
- onFocus?: FieldRenderProps<V, T>["input"]["onFocus"];
24
- type?: FieldRenderProps<V, T>["input"]["type"];
25
- checked?: FieldRenderProps<V, T>["input"]["checked"];
26
- multiple?: FieldRenderProps<V, T>["input"]["multiple"];
27
- };
28
- meta?: FieldRenderProps<V, T>["meta"];
29
- focusIndicator?: boolean;
30
- }
1
+ import { KitLegacySelectProps, LooseFieldRenderProps } from "../../core/LegacySelect";
2
+ import React from "react";
3
+ export type KitSelectProps = KitLegacySelectProps & {
4
+ /** 是否正在加载 Select 组件的值 */
5
+ isLoadingValue?: boolean;
6
+ };
31
7
  export type SelectComponentType<V = any, T extends HTMLElement = HTMLElement> = React.FunctionComponent<LooseFieldRenderProps<V, T> & KitSelectProps>;
32
- export {};
@@ -0,0 +1,7 @@
1
+ import { OptionProps as AntdOptionProps } from "antd/lib/select";
2
+ import React from "react";
3
+ export type OptionProps = AntdOptionProps & {
4
+ prefix?: React.ReactNode;
5
+ suffix?: React.ReactNode;
6
+ };
7
+ export declare function getOptions(options: OptionProps[]): React.JSX.Element[];
@@ -117,6 +117,7 @@ export interface ColumnBodyCellProps {
117
117
  getRowValidateResult: (rowData: DataType) => string | undefined;
118
118
  validateAll: boolean;
119
119
  error?: string | null;
120
+ onValidate?: (id: string, isValid: boolean) => void;
120
121
  }
121
122
  export type AddRowButtonProps = {
122
123
  config: RowAddConfigurations;
@@ -140,6 +141,7 @@ export interface TableFormRowsProps extends Pick<TableFormProps, "columns" | "di
140
141
  validateAll: boolean;
141
142
  draggable?: boolean;
142
143
  rowSplitType?: TableFormRowSplitType;
144
+ onValidate?: (id: string, isValid: boolean) => void;
143
145
  }
144
146
  export type RenderRowDescriptionProps = {
145
147
  rowIndex: number;
@@ -254,4 +256,5 @@ export type TableFormProps = {
254
256
  export type TableFormHandle = {
255
257
  setData: (data: DataType[]) => void;
256
258
  validateWholeFields: () => void;
259
+ isValid: () => boolean;
257
260
  };
@@ -1,4 +1,4 @@
1
1
  import React from "react";
2
2
  import { EllipsisContentType } from "./tooltip.type";
3
- declare const EllipsisTooltipContent: ({ tooltip, maxHeight, contentWrapperClassName, ellipsisTips, }: EllipsisContentType) => React.JSX.Element;
3
+ declare const EllipsisTooltipContent: React.FC<EllipsisContentType>;
4
4
  export default EllipsisTooltipContent;
@@ -1,5 +1,11 @@
1
1
  import React from "react";
2
+ import EllipsisTooltipContent from "./EllipsisTooltipContent";
2
3
  import { TooltipProps } from "./tooltip.type";
3
- declare const Tooltip: React.FunctionComponent<TooltipProps>;
4
+ declare const InternalTooltip: React.FunctionComponent<TooltipProps>;
5
+ type InterTooltip = typeof InternalTooltip;
6
+ type CompoundedTooltip = InterTooltip & {
7
+ EllipsisContent: typeof EllipsisTooltipContent;
8
+ };
9
+ declare const Tooltip: CompoundedTooltip;
4
10
  export default Tooltip;
5
11
  export * from "./tooltip.type";
@@ -15,10 +15,12 @@ export * from "./Button";
15
15
  export * from "./ButtonGroup";
16
16
  export * from "./ButtonGroup";
17
17
  export * from "./Byte";
18
+ export * from "./BytePerSecond";
18
19
  export * from "./Calendar";
19
20
  export * from "./Card";
20
21
  export * from "./Cascader";
21
22
  export * from "./Checkbox";
23
+ export * from "./ConfigProvider";
22
24
  export * from "./DeprecatedProgress";
23
25
  export * from "./DetailCard";
24
26
  export * from "./DonutChart";
@@ -39,6 +41,7 @@ export * from "./InputNumber";
39
41
  export * from "./InputPassword";
40
42
  export * from "./InputTagItem";
41
43
  export * from "./KitStoreProvider";
44
+ export * from "./LegacySelect";
42
45
  export * from "./Link";
43
46
  export * from "./Loading";
44
47
  export * from "./message";
@@ -63,6 +66,7 @@ export * from "./SegmentControl";
63
66
  export * from "./Select";
64
67
  export * from "./SidebarMenu";
65
68
  export * from "./SimplePagination";
69
+ export * from "./Skeleton";
66
70
  export * from "./Space";
67
71
  export * from "./Speed";
68
72
  export * from "./StatusCapsule";
@@ -85,11 +89,10 @@ export * from "./Tooltip";
85
89
  export * from "./Truncate";
86
90
  export * from "./Typo";
87
91
  export * from "./Units";
88
- export * from "./ConfigProvider";
89
- export * from "./Skeleton";
90
92
  export declare const units: {
91
93
  Percent: import("./Units").PercentFn;
92
94
  Byte: import("./Units").UnitFn;
95
+ BytePerSecond: import("./Units").UnitFn;
93
96
  Frequency: import("./Units").UnitFn;
94
97
  Speed: import("./Units").UnitFn;
95
98
  Bps: import("./Units").UnitFn;
@@ -112,6 +115,7 @@ export { default as Breadcrumb } from "./Breadcrumb";
112
115
  export { default as Button } from "./Button";
113
116
  export { default as ButtonGroup } from "./ButtonGroup";
114
117
  export { default as Byte } from "./Byte";
118
+ export { default as BytePerSecond } from "./BytePerSecond";
115
119
  export { default as Calendar } from "./Calendar";
116
120
  export { default as Card } from "./Card";
117
121
  export { default as Checkbox } from "./Checkbox";
@@ -135,6 +139,7 @@ export { default as InputNumber } from "./InputNumber";
135
139
  export { default as InputPassword } from "./InputPassword";
136
140
  export { default as InputTagItem } from "./InputTagItem";
137
141
  export { default as KitStoreProvider } from "./KitStoreProvider";
142
+ export { default as LegacySelect } from "./LegacySelect";
138
143
  export { default as Link } from "./Link";
139
144
  export { default as Loading } from "./Loading";
140
145
  export { default as message } from "./message";
@@ -5,6 +5,7 @@ export declare const SummaryTableRow: React.FunctionComponent<{
5
5
  title: string | ReactNode;
6
6
  hiddenTitle?: boolean;
7
7
  hiddenBorder?: boolean;
8
+ dataKey?: React.Key;
8
9
  }>;
9
10
  declare const SummaryTable: SummaryTableComponentType;
10
11
  export default SummaryTable;
@@ -2,6 +2,7 @@ import React from "react";
2
2
  declare const units: {
3
3
  Percent: import("../..").PercentFn;
4
4
  Byte: import("../..").UnitFn;
5
+ BytePerSecond: import("../..").UnitFn;
5
6
  Frequency: import("../..").UnitFn;
6
7
  Speed: import("../..").UnitFn;
7
8
  Bps: import("../..").UnitFn;
@@ -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, 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, 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";
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";
@@ -101,6 +101,7 @@ export interface Kit<V = any, T extends HTMLElement = HTMLElement> {
101
101
  error: unknown;
102
102
  }>;
103
103
  pagination: React.FC<PaginationProps>;
104
+ legacySelect: LegacySelectComponentType<V, T>;
104
105
  select: SelectComponentType<V, T>;
105
106
  option: OptionComponentType;
106
107
  selectOptGroup: import("rc-select/lib/OptGroup").OptionGroupFC;
@@ -139,6 +140,7 @@ export interface Kit<V = any, T extends HTMLElement = HTMLElement> {
139
140
  units: {
140
141
  Percent: PercentFn;
141
142
  Byte: UnitFn;
143
+ BytePerSecond: UnitFn;
142
144
  Frequency: UnitFn;
143
145
  Speed: UnitFn;
144
146
  Second: UnitFn;
@@ -47,6 +47,7 @@ export declare const GBps: number;
47
47
  export declare const TBps: number;
48
48
  export declare function formatBps(input: number, decimals?: number): FormattedResult;
49
49
  export declare function formatBytes(bytes: number, decimals?: number): FormattedResult;
50
+ export declare function formatBytePerSecond(bytes: number, decimals?: number): FormattedResult;
50
51
  export declare function formatPercent(input: number, decimals?: number, saturated?: boolean): {
51
52
  value: string;
52
53
  numberValue: number;
@@ -0,0 +1,17 @@
1
+ import React from "react";
2
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0fc72a6d").R, import("../../../src").RawValue & {
3
+ emptyProps?: import("../../../src").IEmptyProps | undefined;
4
+ } & {
5
+ children?: React.ReactNode;
6
+ }>;
7
+ export default _default;
8
+ export declare const Simple: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("../../../src").RawValue & {
9
+ emptyProps?: import("../../../src").IEmptyProps | undefined;
10
+ } & {
11
+ children?: React.ReactNode;
12
+ }>;
13
+ export declare const Empty: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("../../../src").RawValue & {
14
+ emptyProps?: import("../../../src").IEmptyProps | undefined;
15
+ } & {
16
+ children?: React.ReactNode;
17
+ }>;
@@ -8,7 +8,7 @@ import React from "react";
8
8
  * * 自定义 props 已在表格进行说明
9
9
  */
10
10
  declare const meta: {
11
- component: ({ tooltip, maxHeight, contentWrapperClassName, ellipsisTips, }: import("../../../src/core/Tooltip").EllipsisContentType) => React.JSX.Element;
11
+ component: React.FC<import("../../../src/core/Tooltip").EllipsisContentType>;
12
12
  title: "Core/EllipsisTooltipContent | Tooltip content 过长省略";
13
13
  parameters: {
14
14
  design: {
@@ -1,8 +1,8 @@
1
- import Select from "../../../src/core/Select";
1
+ import LegacySelect from "../../../src/core/LegacySelect";
2
2
  import { Meta, StoryObj } from "@storybook/react";
3
- declare const meta: Meta<typeof Select>;
3
+ declare const meta: Meta<typeof LegacySelect>;
4
4
  export default meta;
5
- type Story = StoryObj<typeof Select>;
5
+ type Story = StoryObj<typeof LegacySelect>;
6
6
  export declare const Simple: Story;
7
7
  export declare const Multiple: Story;
8
8
  export declare const MultipleWithSearch: Story;
@@ -0,0 +1,16 @@
1
+ import { Meta } from "@storybook/react";
2
+ import React from "react";
3
+ declare const meta: Meta;
4
+ export default meta;
5
+ export declare const Basic: {
6
+ (): React.JSX.Element;
7
+ story: {
8
+ name: string;
9
+ parameters: {
10
+ design: {
11
+ type: string;
12
+ url: string;
13
+ };
14
+ };
15
+ };
16
+ };
@@ -8,7 +8,9 @@ import React from "react";
8
8
  *
9
9
  */
10
10
  declare const meta: {
11
- component: React.FunctionComponent<import("../../../src/core/Tooltip").TooltipProps>;
11
+ component: React.FunctionComponent<import("../../../src/core/Tooltip").TooltipProps> & {
12
+ EllipsisContent: React.FC<import("../../../src/core/Tooltip").EllipsisContentType>;
13
+ };
12
14
  title: "Core/Tooltip | 悬浮提示";
13
15
  parameters: {
14
16
  design: {
@@ -0,0 +1,11 @@
1
+ import Calendar from "../../../src/core/Calendar";
2
+ import type { Meta, StoryObj } from "@storybook/react";
3
+ declare const meta: Meta<typeof Calendar>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Calendar>;
6
+ export declare const Basic: Story;
7
+ /**
8
+ * 出于 ant design 的特性,单独的日期组件的国际化搭配 ConfigProvider 中配置
9
+ * 参考: https://4x.ant.design/components/date-picker-cn/#%E5%9B%BD%E9%99%85%E5%8C%96%E9%85%8D%E7%BD%AE
10
+ */
11
+ export declare const Intl: Story;