@cloudtower/eagle 0.31.4 → 0.31.6
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/antd.js +4 -4
- package/dist/cjs/core/Loading/index.js +23 -2
- package/dist/cjs/core/SearchInput/index.js +116 -28
- package/dist/cjs/core/Skeleton/Content.js +30 -0
- package/dist/cjs/core/Skeleton/index.js +13 -0
- package/dist/cjs/coreX/CircleLoading/index.js +66 -0
- package/dist/cjs/coreX/OverflowTooltip/index.js +21 -8
- package/dist/cjs/index.js +57 -50
- package/dist/cjs/stats1.html +1 -1
- package/dist/cjs/styles/token/animation.js +22 -1
- package/dist/components.css +2771 -2679
- package/dist/esm/antd.js +1 -1
- package/dist/esm/core/Loading/index.js +22 -2
- package/dist/esm/core/SearchInput/index.js +116 -28
- package/dist/esm/core/Skeleton/Content.js +23 -0
- package/dist/esm/core/Skeleton/index.js +7 -0
- package/dist/esm/coreX/CircleLoading/index.js +59 -0
- package/dist/esm/coreX/OverflowTooltip/index.js +21 -8
- package/dist/esm/index.js +5 -2
- package/dist/esm/stats1.html +1 -1
- package/dist/esm/styles/token/animation.js +22 -2
- package/dist/src/antd.d.ts +1 -1
- package/dist/src/core/Loading/loading.type.d.ts +2 -2
- package/dist/src/core/SearchInput/searchInput.type.d.ts +19 -1
- package/dist/src/core/Skeleton/Content.d.ts +8 -0
- package/dist/src/core/Skeleton/index.d.ts +8 -0
- package/dist/src/core/index.d.ts +1 -0
- package/dist/src/coreX/CircleLoading/index.d.ts +3 -0
- package/dist/src/coreX/OverflowTooltip/overflowTooltip.type.d.ts +2 -1
- package/dist/src/coreX/index.d.ts +2 -0
- package/dist/src/styles/token/animation.d.ts +6 -0
- package/dist/stories/docs/core/Loading.stories.d.ts +2 -2
- package/dist/stories/docs/core/SearchInput.stories.d.ts +8 -2
- package/dist/stories/docs/core/skeleton.stories.d.ts +13 -0
- package/dist/stories/docs/coreX/CircleLoading.stories.d.ts +20 -0
- package/dist/stories/docs/coreX/OverflowTooltip.stories.d.ts +5 -0
- package/dist/style.css +2664 -2577
- package/package.json +4 -4
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
const Animation = {
|
|
2
|
-
loading: "loading 1600ms ease-out infinite"
|
|
2
|
+
loading: "loading 1600ms ease-out infinite",
|
|
3
|
+
circleRotate: "rotate 1200ms cubic-bezier(0.33, 0, 0.67, 1) infinite",
|
|
4
|
+
shimmer: "shimmer 1100ms infinite"
|
|
5
|
+
};
|
|
6
|
+
const Keyframes = {
|
|
7
|
+
rotate: `
|
|
8
|
+
@keyframes rotate {
|
|
9
|
+
from { transform: rotate(0deg); }
|
|
10
|
+
to { transform: rotate(360deg); }
|
|
11
|
+
}
|
|
12
|
+
`,
|
|
13
|
+
shimmer: `
|
|
14
|
+
@keyframes shimmer {
|
|
15
|
+
from {
|
|
16
|
+
left: -120%;
|
|
17
|
+
}
|
|
18
|
+
to {
|
|
19
|
+
left: 100%;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
`
|
|
3
23
|
};
|
|
4
24
|
|
|
5
|
-
export { Animation };
|
|
25
|
+
export { Animation, Keyframes };
|
package/dist/src/antd.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MenuItemGroupProps } from "antd/lib/menu";
|
|
2
2
|
import { ModalProps as AntdModalProps } from "antd/lib/modal";
|
|
3
3
|
import { FC } from "react";
|
|
4
|
-
export { Badge as AntdBadge, Button as AntdButton, Checkbox as AntdCheckbox, Collapse as AntdCollapse, Divider as AntdDivider, Drawer as AntdDrawer, Empty as AntdEmpty, Input as AntdInput, message as AntdMessage, Select as AntdSelect, Steps as AntdSteps, Switch as AntdSwitch, Table as AntdTable, TimePicker as AntdTimePicker, Tooltip as AntdTooltip, TreeSelect as AntdTreeSelect, AutoComplete, Col, DatePicker, Dropdown, Layout, List, Menu, Popover, Row, Skeleton, Tabs, Timeline, Tree, Typography, Upload, } from "antd";
|
|
4
|
+
export { Badge as AntdBadge, Button as AntdButton, Checkbox as AntdCheckbox, Collapse as AntdCollapse, Divider as AntdDivider, Drawer as AntdDrawer, Empty as AntdEmpty, Input as AntdInput, message as AntdMessage, Select as AntdSelect, Steps as AntdSteps, Switch as AntdSwitch, Table as AntdTable, TimePicker as AntdTimePicker, Tooltip as AntdTooltip, TreeSelect as AntdTreeSelect, AutoComplete, Col, DatePicker, Dropdown, Layout, List, Menu, Popover, Row, Skeleton as AntdSkeleton, Tabs, Timeline, Tree, Typography, Upload, } from "antd";
|
|
5
5
|
export declare const DatePickerRangePicker: import("react").ComponentClass<import("antd/lib/date-picker/generatePicker").RangePickerProps<import("moment").Moment>, any>;
|
|
6
6
|
export declare const ListItem: import("antd/lib/list/Item").ListItemTypeProps;
|
|
7
7
|
export declare const MenuItemGroup: import("react").ComponentType<MenuItemGroupProps>;
|
|
@@ -1,7 +1,25 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { InputProps } from "antd/lib/input";
|
|
3
3
|
export type SearchInputProps = Omit<InputProps, "onChange"> & {
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* 防抖延迟的时间,单位为毫秒
|
|
6
|
+
*/
|
|
5
7
|
debounceWait?: number;
|
|
8
|
+
/**
|
|
9
|
+
* 搜索结果的总数
|
|
10
|
+
*/
|
|
11
|
+
total?: number;
|
|
12
|
+
/**
|
|
13
|
+
* 搜索下一个结果时的回调函数
|
|
14
|
+
*/
|
|
15
|
+
onSearchNext?: (value: string, current: number) => void;
|
|
16
|
+
/**
|
|
17
|
+
* 搜索上一个结果时的回调函数
|
|
18
|
+
*/
|
|
19
|
+
onSearchPrev?: (value: string, current: number) => void;
|
|
20
|
+
/**
|
|
21
|
+
* 输入内容改变时的回调函数
|
|
22
|
+
*/
|
|
23
|
+
onChange: (value: string) => void;
|
|
6
24
|
};
|
|
7
25
|
export type SearchInputComponentType = React.FC<SearchInputProps>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import SkeletonContent, { type SkeletonContentProps } from "./Content";
|
|
2
|
+
export interface SkeletonType {
|
|
3
|
+
Content: typeof SkeletonContent;
|
|
4
|
+
}
|
|
5
|
+
declare const Skeleton: SkeletonType;
|
|
6
|
+
export default Skeleton;
|
|
7
|
+
export { Skeleton, SkeletonContent };
|
|
8
|
+
export type { SkeletonContentProps };
|
package/dist/src/core/index.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ export * from "./SummaryTable";
|
|
|
19
19
|
export * from "./SwitchWithText";
|
|
20
20
|
export * from "./TabMenu";
|
|
21
21
|
export * from "./UnitWithChart";
|
|
22
|
+
export * from "./CircleLoading";
|
|
22
23
|
export { default as BarChart } from "./BarChart";
|
|
23
24
|
export { default as BatchOperation } from "./BatchOperation";
|
|
24
25
|
export { default as ChartWithTooltip } from "./ChartWithTooltip";
|
|
@@ -39,3 +40,4 @@ export { default as SummaryTable } from "./SummaryTable";
|
|
|
39
40
|
export { default as SwitchWithText } from "./SwitchWithText";
|
|
40
41
|
export { default as TabMenu } from "./TabMenu";
|
|
41
42
|
export { default as UnitWithChart } from "./UnitWithChart";
|
|
43
|
+
export { default as CircleLoading } from "./CircleLoading";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0fc72a6d").R, {
|
|
2
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0fc72a6d").R, React.HTMLAttributes<HTMLDivElement> & {
|
|
3
3
|
fullView?: boolean | undefined;
|
|
4
4
|
} & {
|
|
5
5
|
children?: React.ReactNode;
|
|
6
6
|
}>;
|
|
7
7
|
export default _default;
|
|
8
|
-
export declare const Basic: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, {
|
|
8
|
+
export declare const Basic: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, React.HTMLAttributes<HTMLDivElement> & {
|
|
9
9
|
fullView?: boolean | undefined;
|
|
10
10
|
} & {
|
|
11
11
|
children?: React.ReactNode;
|
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0fc72a6d").R, Omit<import("antd/lib/input").InputProps, "onChange"> & {
|
|
3
|
-
onChange: (value: string) => void;
|
|
4
3
|
debounceWait?: number | undefined;
|
|
4
|
+
total?: number | undefined;
|
|
5
|
+
onSearchNext?: ((value: string, current: number) => void) | undefined;
|
|
6
|
+
onSearchPrev?: ((value: string, current: number) => void) | undefined;
|
|
7
|
+
onChange: (value: string) => void;
|
|
5
8
|
} & {
|
|
6
9
|
children?: React.ReactNode;
|
|
7
10
|
}>;
|
|
8
11
|
export default _default;
|
|
9
12
|
export declare const Simple: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, Omit<import("antd/lib/input").InputProps, "onChange"> & {
|
|
10
|
-
onChange: (value: string) => void;
|
|
11
13
|
debounceWait?: number | undefined;
|
|
14
|
+
total?: number | undefined;
|
|
15
|
+
onSearchNext?: ((value: string, current: number) => void) | undefined;
|
|
16
|
+
onSearchPrev?: ((value: string, current: number) => void) | undefined;
|
|
17
|
+
onChange: (value: string) => void;
|
|
12
18
|
} & {
|
|
13
19
|
children?: React.ReactNode;
|
|
14
20
|
}>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import Skeleton from "../../../src/core/Skeleton";
|
|
2
|
+
import { ComponentStory } from "@storybook/react";
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
parameters: {
|
|
6
|
+
design: {
|
|
7
|
+
type: string;
|
|
8
|
+
url: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export default _default;
|
|
13
|
+
export declare const Content: ComponentStory<typeof Skeleton.Content>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import CircleLoading from "../../../src/coreX/CircleLoading";
|
|
2
|
+
import { StoryObj } from "@storybook/react";
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* 目前应用场景:
|
|
6
|
+
* * arcfra 中取代三角 loading
|
|
7
|
+
*/
|
|
8
|
+
declare const _default: {
|
|
9
|
+
title: string;
|
|
10
|
+
component: import("../../../src").LoadingComponentType;
|
|
11
|
+
parameters: {
|
|
12
|
+
design: {
|
|
13
|
+
type: string;
|
|
14
|
+
url: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export default _default;
|
|
19
|
+
type Story = StoryObj<typeof CircleLoading>;
|
|
20
|
+
export declare const Basic: Story;
|
|
@@ -28,3 +28,8 @@ export declare const MultipleLine: StoryObj<OverflowTooltipProps>;
|
|
|
28
28
|
*
|
|
29
29
|
*/
|
|
30
30
|
export declare const Tooltip: StoryObj<OverflowTooltipProps>;
|
|
31
|
+
/**
|
|
32
|
+
* 自定义悬浮提示 overlay 部分样式,其余属性请参考 antd-Tooltip
|
|
33
|
+
* https://ant-design.antgroup.com/components/tooltip-cn#api
|
|
34
|
+
*/
|
|
35
|
+
export declare const CustomOverlayTooltip: StoryObj<OverflowTooltipProps>;
|