@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.
- package/dist/cjs/UIKitProvider/index.js +2 -16
- package/dist/cjs/core/BytePerSecond/index.js +45 -0
- package/dist/cjs/core/ConfigProvider/index.js +37 -1
- package/dist/cjs/core/Fields/FieldsEnum/index.js +1 -1
- package/dist/cjs/core/LegacySelect/index.js +185 -0
- package/dist/cjs/core/LegacySelect/select.style.js +5 -0
- package/dist/cjs/core/Select/index.js +106 -117
- package/dist/cjs/core/Select/select.style.js +11 -0
- package/dist/cjs/core/Select/select.widgets.js +63 -0
- package/dist/cjs/core/TableForm/TableFormBodyCell.js +6 -3
- package/dist/cjs/core/TableForm/TableFormBodyRows.js +7 -2
- package/dist/cjs/core/TableForm/index.js +12 -1
- package/dist/cjs/core/TimeZoneSelect/index.js +1 -1
- package/dist/cjs/core/Tooltip/EllipsisTooltipContent.js +55 -0
- package/dist/cjs/core/Tooltip/index.js +4 -1
- package/dist/cjs/core/index.js +15 -12
- package/dist/cjs/coreX/ChartWithTooltip/index.js +14 -12
- package/dist/cjs/coreX/DateRangePicker/Calendar.js +4 -3
- package/dist/cjs/coreX/DateRangePicker/index.js +2 -2
- package/dist/cjs/coreX/SummaryTable/index.js +6 -3
- package/dist/cjs/coreX/UnitWithChart/index.js +14 -12
- package/dist/cjs/index.js +245 -239
- package/dist/cjs/legacy-antd.js +137 -133
- package/dist/cjs/stats1.html +1 -1
- package/dist/cjs/utils/tower.js +17 -0
- package/dist/components.css +2919 -2719
- package/dist/esm/UIKitProvider/index.js +2 -12
- package/dist/esm/core/BytePerSecond/index.js +39 -0
- package/dist/esm/core/ConfigProvider/index.js +32 -2
- package/dist/esm/core/Fields/FieldsEnum/index.js +4 -4
- package/dist/esm/core/LegacySelect/index.js +177 -0
- package/dist/esm/core/LegacySelect/select.style.js +3 -0
- package/dist/esm/core/Select/index.js +104 -116
- package/dist/esm/core/Select/select.style.js +6 -0
- package/dist/esm/core/Select/select.widgets.js +57 -0
- package/dist/esm/core/TableForm/TableFormBodyCell.js +6 -3
- package/dist/esm/core/TableForm/TableFormBodyRows.js +7 -2
- package/dist/esm/core/TableForm/index.js +13 -2
- package/dist/esm/core/TimeZoneSelect/index.js +2 -2
- package/dist/esm/core/Tooltip/EllipsisTooltipContent.js +49 -0
- package/dist/esm/core/Tooltip/index.js +4 -1
- package/dist/esm/core/index.js +3 -1
- package/dist/esm/coreX/ChartWithTooltip/index.js +2 -0
- package/dist/esm/coreX/DateRangePicker/Calendar.js +4 -3
- package/dist/esm/coreX/DateRangePicker/index.js +3 -3
- package/dist/esm/coreX/SummaryTable/index.js +6 -3
- package/dist/esm/coreX/UnitWithChart/index.js +2 -0
- package/dist/esm/index.js +6 -3
- package/dist/esm/legacy-antd.js +4 -0
- package/dist/esm/stats1.html +1 -1
- package/dist/esm/utils/tower.js +17 -1
- package/dist/src/UIKitProvider/UIKitProvider.stories.d.ts +1 -2
- package/dist/src/antd.d.ts +1 -0
- package/dist/src/core/BytePerSecond/index.d.ts +3 -0
- package/dist/src/core/ConfigProvider/index.d.ts +2 -0
- package/dist/src/core/LegacySelect/index.d.ts +4 -0
- package/dist/src/core/LegacySelect/select.style.d.ts +1 -0
- package/dist/src/core/LegacySelect/select.type.d.ts +31 -0
- package/dist/src/core/Select/index.d.ts +1 -0
- package/dist/src/core/Select/select.style.d.ts +4 -0
- package/dist/src/core/Select/select.type.d.ts +6 -31
- package/dist/src/core/Select/select.widgets.d.ts +7 -0
- package/dist/src/core/TableForm/types.d.ts +3 -0
- package/dist/src/core/Tooltip/EllipsisTooltipContent.d.ts +1 -1
- package/dist/src/core/Tooltip/index.d.ts +7 -1
- package/dist/src/core/index.d.ts +7 -2
- package/dist/src/coreX/SummaryTable/index.d.ts +1 -0
- package/dist/src/coreX/UnitWithChart/index.d.ts +1 -0
- package/dist/src/spec/base.d.ts +3 -1
- package/dist/src/utils/tower.d.ts +1 -0
- package/dist/stories/docs/core/BytePerSecond.stories.d.ts +17 -0
- package/dist/stories/docs/core/EllipsisTooltipContent.stories.d.ts +1 -1
- package/dist/stories/docs/core/{Select.Simple.stories.d.ts → LegacySelect.Simple.stories.d.ts} +3 -3
- package/dist/stories/docs/core/LegacySelect.stories.d.ts +16 -0
- package/dist/stories/docs/core/Tooltip.stories.d.ts +3 -1
- package/dist/stories/docs/coreX/Calendar.stories.d.ts +11 -0
- package/dist/style.css +2623 -2456
- package/package.json +6 -4
- package/dist/src/core/Tooltip/tooltip.widget.d.ts +0 -5
package/dist/esm/utils/tower.js
CHANGED
|
@@ -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 };
|
package/dist/src/antd.d.ts
CHANGED
|
@@ -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 @@
|
|
|
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>;
|
|
@@ -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
|
-
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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:
|
|
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
|
|
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";
|
package/dist/src/core/index.d.ts
CHANGED
|
@@ -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";
|
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, 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:
|
|
11
|
+
component: React.FC<import("../../../src/core/Tooltip").EllipsisContentType>;
|
|
12
12
|
title: "Core/EllipsisTooltipContent | Tooltip content 过长省略";
|
|
13
13
|
parameters: {
|
|
14
14
|
design: {
|
package/dist/stories/docs/core/{Select.Simple.stories.d.ts → LegacySelect.Simple.stories.d.ts}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import LegacySelect from "../../../src/core/LegacySelect";
|
|
2
2
|
import { Meta, StoryObj } from "@storybook/react";
|
|
3
|
-
declare const meta: Meta<typeof
|
|
3
|
+
declare const meta: Meta<typeof LegacySelect>;
|
|
4
4
|
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof
|
|
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;
|