@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
package/dist/esm/antd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DatePicker, List, Menu, Skeleton, Tabs, Timeline, Typography, Upload, Select, Modal } from 'antd';
|
|
2
|
-
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,
|
|
2
|
+
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, Skeleton as AntdSkeleton, 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, Tabs, Timeline, Tree, Typography, Upload } from 'antd';
|
|
3
3
|
|
|
4
4
|
const DatePickerRangePicker = DatePicker.RangePicker;
|
|
5
5
|
const ListItem = List.Item;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { LoadingWrapper, LoadingLine1, LoadingLine2, LoadingLine3 } from './style.js';
|
|
2
2
|
import { FullView } from '../Styled/index.js';
|
|
3
3
|
import React__default, { Fragment } from 'react';
|
|
4
|
+
import cs from 'classnames';
|
|
4
5
|
|
|
5
6
|
var __defProp = Object.defineProperty;
|
|
6
7
|
var __defProps = Object.defineProperties;
|
|
@@ -21,10 +22,29 @@ var __spreadValues = (a, b) => {
|
|
|
21
22
|
return a;
|
|
22
23
|
};
|
|
23
24
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
24
|
-
|
|
25
|
+
var __objRest = (source, exclude) => {
|
|
26
|
+
var target = {};
|
|
27
|
+
for (var prop in source)
|
|
28
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
29
|
+
target[prop] = source[prop];
|
|
30
|
+
if (source != null && __getOwnPropSymbols)
|
|
31
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
32
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
33
|
+
target[prop] = source[prop];
|
|
34
|
+
}
|
|
35
|
+
return target;
|
|
36
|
+
};
|
|
37
|
+
const Loading = (_a) => {
|
|
38
|
+
var _b = _a, {
|
|
39
|
+
fullView = true,
|
|
40
|
+
className
|
|
41
|
+
} = _b, restProps = __objRest(_b, [
|
|
42
|
+
"fullView",
|
|
43
|
+
"className"
|
|
44
|
+
]);
|
|
25
45
|
const Wrapper = fullView ? FullView : Fragment;
|
|
26
46
|
const props = fullView ? { className: "loading-full-view" } : {};
|
|
27
|
-
return /* @__PURE__ */ React__default.createElement(Wrapper, __spreadProps(__spreadValues({}, props), { "data-testid": "loading" }), /* @__PURE__ */ React__default.createElement("div", { className: LoadingWrapper }, /* @__PURE__ */ React__default.createElement("div", { className: LoadingLine1 }), /* @__PURE__ */ React__default.createElement("div", { className: LoadingLine2 }), /* @__PURE__ */ React__default.createElement("div", { className: LoadingLine3 })));
|
|
47
|
+
return /* @__PURE__ */ React__default.createElement(Wrapper, __spreadProps(__spreadValues({}, props), { "data-testid": "loading" }), /* @__PURE__ */ React__default.createElement("div", __spreadValues({ className: cs(LoadingWrapper, className) }, restProps), /* @__PURE__ */ React__default.createElement("div", { className: LoadingLine1 }), /* @__PURE__ */ React__default.createElement("div", { className: LoadingLine2 }), /* @__PURE__ */ React__default.createElement("div", { className: LoadingLine3 })));
|
|
28
48
|
};
|
|
29
49
|
var Loading$1 = Loading;
|
|
30
50
|
|
|
@@ -1,47 +1,135 @@
|
|
|
1
1
|
import { SearchOutlined } from '@ant-design/icons';
|
|
2
|
+
import { ArrowChevronUp16SecondaryIcon, ArrowChevronUp16BlueIcon, ArrowChevronDown16SecondaryIcon, ArrowChevronDown16BlueIcon, XmarkCloseCircleFill16TertiaryIcon, XmarkCloseCircleFill16SecondaryIcon } from '@cloudtower/icons-react';
|
|
3
|
+
import { cx } from '@linaria/core';
|
|
4
|
+
import Icon from '../Icon/index.js';
|
|
2
5
|
import Input from '../Input/index.js';
|
|
6
|
+
import Tooltip from '../Tooltip/index.js';
|
|
7
|
+
import { Typo } from '../Typo/index.js';
|
|
8
|
+
import useParrotTranslation from '../../hooks/useParrotTranslation.js';
|
|
3
9
|
import _ from 'lodash';
|
|
4
|
-
import React__default from 'react';
|
|
10
|
+
import React__default, { useState, useCallback, useEffect } from 'react';
|
|
5
11
|
|
|
6
12
|
var __defProp = Object.defineProperty;
|
|
13
|
+
var __defProps = Object.defineProperties;
|
|
14
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
7
15
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
8
16
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
17
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
10
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, {
|
|
18
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
configurable: true,
|
|
21
|
+
writable: true,
|
|
22
|
+
value
|
|
23
|
+
}) : obj[key] = value;
|
|
11
24
|
var __spreadValues = (a, b) => {
|
|
12
|
-
for (var prop in b || (b = {}))
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
17
|
-
if (__propIsEnum.call(b, prop))
|
|
18
|
-
__defNormalProp(a, prop, b[prop]);
|
|
19
|
-
}
|
|
25
|
+
for (var prop in b || (b = {})) if (__hasOwnProp.call(b, prop)) __defNormalProp(a, prop, b[prop]);
|
|
26
|
+
if (__getOwnPropSymbols) for (var prop of __getOwnPropSymbols(b)) {
|
|
27
|
+
if (__propIsEnum.call(b, prop)) __defNormalProp(a, prop, b[prop]);
|
|
28
|
+
}
|
|
20
29
|
return a;
|
|
21
30
|
};
|
|
31
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
22
32
|
var __objRest = (source, exclude) => {
|
|
23
33
|
var target = {};
|
|
24
|
-
for (var prop in source)
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
for (var prop of __getOwnPropSymbols(source)) {
|
|
29
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
30
|
-
target[prop] = source[prop];
|
|
31
|
-
}
|
|
34
|
+
for (var prop in source) if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
35
|
+
if (source != null && __getOwnPropSymbols) for (var prop of __getOwnPropSymbols(source)) {
|
|
36
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) target[prop] = source[prop];
|
|
37
|
+
}
|
|
32
38
|
return target;
|
|
33
39
|
};
|
|
34
|
-
const
|
|
35
|
-
|
|
40
|
+
const InputStyle = "E_i11gg7mj";
|
|
41
|
+
const CountTextStyle = "E_cc368xp";
|
|
42
|
+
const IconContainerStyle = "E_i11o6xqj";
|
|
43
|
+
const DisabledIconStyle = "E_d19ruhdj";
|
|
44
|
+
const SearchInput = props => {
|
|
45
|
+
const _a = props,
|
|
46
|
+
{
|
|
47
|
+
onChange,
|
|
48
|
+
debounceWait = 300,
|
|
49
|
+
total = 0,
|
|
50
|
+
onSearchNext,
|
|
51
|
+
onSearchPrev
|
|
52
|
+
} = _a,
|
|
53
|
+
restProps = __objRest(_a, ["onChange", "debounceWait", "total", "onSearchNext", "onSearchPrev"]);
|
|
54
|
+
const [current, setCurrent] = useState(0);
|
|
55
|
+
const [value, setValue] = useState(props.value || "");
|
|
56
|
+
const {
|
|
57
|
+
t
|
|
58
|
+
} = useParrotTranslation();
|
|
36
59
|
const onSearch = _.debounce(onChange, debounceWait);
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
)
|
|
60
|
+
const isNoMatch = total === 0;
|
|
61
|
+
const next = useCallback(() => {
|
|
62
|
+
if (total) {
|
|
63
|
+
onSearchNext == null ? void 0 : onSearchNext(value, current);
|
|
64
|
+
setCurrent(current + 1 > total ? 1 : current + 1);
|
|
65
|
+
}
|
|
66
|
+
}, [onSearchNext, current, total, value]);
|
|
67
|
+
const prev = useCallback(() => {
|
|
68
|
+
if (total) {
|
|
69
|
+
onSearchPrev == null ? void 0 : onSearchPrev(value, current);
|
|
70
|
+
setCurrent(current - 1 < 1 ? total : current - 1);
|
|
71
|
+
}
|
|
72
|
+
}, [onSearchPrev, current, total, value]);
|
|
73
|
+
const suffix = onSearchNext && onSearchPrev && value ? /* @__PURE__ */React__default.createElement(React__default.Fragment, null, typeof total === "number" ? /* @__PURE__ */React__default.createElement("span", {
|
|
74
|
+
className: cx(Typo.Label.l4_regular, CountTextStyle)
|
|
75
|
+
}, current, "/", total) : null, /* @__PURE__ */React__default.createElement("span", {
|
|
76
|
+
className: IconContainerStyle
|
|
77
|
+
}, isNoMatch ? /* @__PURE__ */React__default.createElement(Icon, {
|
|
78
|
+
className: DisabledIconStyle,
|
|
79
|
+
src: ArrowChevronUp16SecondaryIcon,
|
|
80
|
+
style: {
|
|
81
|
+
opacity: 0.5
|
|
82
|
+
}
|
|
83
|
+
}) : /* @__PURE__ */React__default.createElement(Tooltip, {
|
|
84
|
+
title: t("components.prev")
|
|
85
|
+
}, /* @__PURE__ */React__default.createElement(Icon, {
|
|
86
|
+
src: ArrowChevronUp16SecondaryIcon,
|
|
87
|
+
hoverSrc: ArrowChevronUp16BlueIcon,
|
|
88
|
+
onClick: prev
|
|
89
|
+
})), isNoMatch ? /* @__PURE__ */React__default.createElement(Icon, {
|
|
90
|
+
className: DisabledIconStyle,
|
|
91
|
+
src: ArrowChevronDown16SecondaryIcon,
|
|
92
|
+
style: {
|
|
93
|
+
opacity: 0.5
|
|
94
|
+
}
|
|
95
|
+
}) : /* @__PURE__ */React__default.createElement(Tooltip, {
|
|
96
|
+
title: t("components.next")
|
|
97
|
+
}, /* @__PURE__ */React__default.createElement(Icon, {
|
|
98
|
+
src: ArrowChevronDown16SecondaryIcon,
|
|
99
|
+
hoverSrc: ArrowChevronDown16BlueIcon,
|
|
100
|
+
onClick: next
|
|
101
|
+
})), /* @__PURE__ */React__default.createElement(Tooltip, {
|
|
102
|
+
title: t("components.clear")
|
|
103
|
+
}, /* @__PURE__ */React__default.createElement(Icon, {
|
|
104
|
+
src: XmarkCloseCircleFill16TertiaryIcon,
|
|
105
|
+
hoverSrc: XmarkCloseCircleFill16SecondaryIcon,
|
|
106
|
+
onClick: () => {
|
|
107
|
+
onSearch("");
|
|
108
|
+
setValue("");
|
|
109
|
+
}
|
|
110
|
+
})))) : null;
|
|
111
|
+
useEffect(() => {
|
|
112
|
+
setValue(props.value || "");
|
|
113
|
+
}, [props.value]);
|
|
114
|
+
useEffect(() => {
|
|
115
|
+
setCurrent(total ? 1 : 0);
|
|
116
|
+
}, [value, total]);
|
|
117
|
+
return /* @__PURE__ */React__default.createElement(Input, __spreadProps(__spreadValues({
|
|
118
|
+
style: {
|
|
119
|
+
width: 276
|
|
120
|
+
},
|
|
121
|
+
prefix: /* @__PURE__ */React__default.createElement(SearchOutlined, null),
|
|
122
|
+
suffix,
|
|
123
|
+
onChange: e => {
|
|
124
|
+
const newValue = e.target.value;
|
|
125
|
+
onSearch(newValue);
|
|
126
|
+
setValue(newValue);
|
|
127
|
+
},
|
|
128
|
+
onPressEnter: next,
|
|
129
|
+
value
|
|
130
|
+
}, restProps), {
|
|
131
|
+
className: cx(InputStyle, restProps.className)
|
|
132
|
+
}));
|
|
45
133
|
};
|
|
46
134
|
var SearchInput$1 = SearchInput;
|
|
47
135
|
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import cs from 'classnames';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
|
|
4
|
+
const SkeletonContentStyle = "E_s20iney";
|
|
5
|
+
const SkeletonContent = props => {
|
|
6
|
+
const {
|
|
7
|
+
width = "100%",
|
|
8
|
+
height = "100%",
|
|
9
|
+
className
|
|
10
|
+
} = props;
|
|
11
|
+
return /* @__PURE__ */React__default.createElement("div", {
|
|
12
|
+
className: cs("skeleton-box", SkeletonContentStyle, className),
|
|
13
|
+
style: {
|
|
14
|
+
width,
|
|
15
|
+
height
|
|
16
|
+
}
|
|
17
|
+
}, /* @__PURE__ */React__default.createElement("div", {
|
|
18
|
+
className: "skeleton-shimmer"
|
|
19
|
+
}));
|
|
20
|
+
};
|
|
21
|
+
var SkeletonContent$1 = SkeletonContent;
|
|
22
|
+
|
|
23
|
+
export { SkeletonContent$1 as default };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { FullView } from '../../core/Styled/index.js';
|
|
2
|
+
import Icon from '../../core/Icon/index.js';
|
|
3
|
+
import React__default, { Fragment } from 'react';
|
|
4
|
+
import cs from 'classnames';
|
|
5
|
+
import { Loading64GradientBlueIcon } from '@cloudtower/icons-react';
|
|
6
|
+
|
|
7
|
+
var __defProp = Object.defineProperty;
|
|
8
|
+
var __defProps = Object.defineProperties;
|
|
9
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
10
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
11
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
12
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
13
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
configurable: true,
|
|
16
|
+
writable: true,
|
|
17
|
+
value
|
|
18
|
+
}) : obj[key] = value;
|
|
19
|
+
var __spreadValues = (a, b) => {
|
|
20
|
+
for (var prop in b || (b = {})) if (__hasOwnProp.call(b, prop)) __defNormalProp(a, prop, b[prop]);
|
|
21
|
+
if (__getOwnPropSymbols) for (var prop of __getOwnPropSymbols(b)) {
|
|
22
|
+
if (__propIsEnum.call(b, prop)) __defNormalProp(a, prop, b[prop]);
|
|
23
|
+
}
|
|
24
|
+
return a;
|
|
25
|
+
};
|
|
26
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
27
|
+
var __objRest = (source, exclude) => {
|
|
28
|
+
var target = {};
|
|
29
|
+
for (var prop in source) if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
30
|
+
if (source != null && __getOwnPropSymbols) for (var prop of __getOwnPropSymbols(source)) {
|
|
31
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) target[prop] = source[prop];
|
|
32
|
+
}
|
|
33
|
+
return target;
|
|
34
|
+
};
|
|
35
|
+
const LoadingWrapper = "E_l12xdkhl";
|
|
36
|
+
const CircleLoading = _a => {
|
|
37
|
+
var _b = _a,
|
|
38
|
+
{
|
|
39
|
+
fullView = true,
|
|
40
|
+
className
|
|
41
|
+
} = _b,
|
|
42
|
+
restProps = __objRest(_b, ["fullView", "className"]);
|
|
43
|
+
const Wrapper = fullView ? FullView : Fragment;
|
|
44
|
+
const props = fullView ? {
|
|
45
|
+
className: "loading-full-view"
|
|
46
|
+
} : {};
|
|
47
|
+
return /* @__PURE__ */React__default.createElement(Wrapper, __spreadProps(__spreadValues({}, props), {
|
|
48
|
+
"data-testid": "loading"
|
|
49
|
+
}), /* @__PURE__ */React__default.createElement("div", __spreadValues({
|
|
50
|
+
className: cs(LoadingWrapper, className)
|
|
51
|
+
}, restProps), /* @__PURE__ */React__default.createElement(Icon, {
|
|
52
|
+
src: Loading64GradientBlueIcon,
|
|
53
|
+
iconWidth: 64,
|
|
54
|
+
iconHeight: 64
|
|
55
|
+
})));
|
|
56
|
+
};
|
|
57
|
+
var CircleLoading$1 = CircleLoading;
|
|
58
|
+
|
|
59
|
+
export { CircleLoading$1 as default };
|
|
@@ -24,6 +24,14 @@ var __spreadValues = (a, b) => {
|
|
|
24
24
|
return a;
|
|
25
25
|
};
|
|
26
26
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
27
|
+
var __objRest = (source, exclude) => {
|
|
28
|
+
var target = {};
|
|
29
|
+
for (var prop in source) if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
30
|
+
if (source != null && __getOwnPropSymbols) for (var prop of __getOwnPropSymbols(source)) {
|
|
31
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) target[prop] = source[prop];
|
|
32
|
+
}
|
|
33
|
+
return target;
|
|
34
|
+
};
|
|
27
35
|
const OverflowText = "E_ou7iq30";
|
|
28
36
|
const SingleLineStyle = "E_s1tui002";
|
|
29
37
|
const _exp = /*#__PURE__*/() => ({
|
|
@@ -37,13 +45,17 @@ const MultipleLine = /*#__PURE__*/styled('div')({
|
|
|
37
45
|
"mxrc2zg-0": [_exp()]
|
|
38
46
|
}
|
|
39
47
|
});
|
|
48
|
+
const TooltipDefaultClass = "E_t1vv6d68";
|
|
40
49
|
const OverflowTooltip = props => {
|
|
41
|
-
const
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
50
|
+
const _a = props,
|
|
51
|
+
{
|
|
52
|
+
content,
|
|
53
|
+
className,
|
|
54
|
+
onClick,
|
|
55
|
+
multiLines,
|
|
56
|
+
overlayClassName
|
|
57
|
+
} = _a,
|
|
58
|
+
restProps = __objRest(_a, ["content", "className", "onClick", "multiLines", "overlayClassName"]);
|
|
47
59
|
const tooltip = props.tooltip || content;
|
|
48
60
|
const [ellipsis, setEllipsis] = useState(false);
|
|
49
61
|
const textRef = useRef(null);
|
|
@@ -66,10 +78,11 @@ const OverflowTooltip = props => {
|
|
|
66
78
|
observer == null ? void 0 : observer.disconnect();
|
|
67
79
|
};
|
|
68
80
|
});
|
|
69
|
-
return /* @__PURE__ */React__default.createElement(Tooltip, __spreadProps(__spreadValues({}, !ellipsis && {
|
|
81
|
+
return /* @__PURE__ */React__default.createElement(Tooltip, __spreadProps(__spreadValues(__spreadValues({}, restProps), !ellipsis && {
|
|
70
82
|
visible: false
|
|
71
83
|
}), {
|
|
72
|
-
title: tooltip
|
|
84
|
+
title: tooltip,
|
|
85
|
+
overlayClassName: cx(TooltipDefaultClass, overlayClassName)
|
|
73
86
|
}), isMultiLine ? /* @__PURE__ */React__default.createElement(MultipleLine, {
|
|
74
87
|
ref: textRef,
|
|
75
88
|
className: cx(OverflowText, className),
|
package/dist/esm/index.js
CHANGED
|
@@ -59,7 +59,7 @@ export { default as Second } from './core/Second/index.js';
|
|
|
59
59
|
export { default as SegmentControl } from './core/SegmentControl/index.js';
|
|
60
60
|
export { default as Select } from './core/Select/index.js';
|
|
61
61
|
export { default as SimplePagination } from './core/SimplePagination/index.js';
|
|
62
|
-
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,
|
|
62
|
+
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, Skeleton as AntdSkeleton, 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, Space, Tabs, Timeline, Tree, Typography, Upload } from 'antd';
|
|
63
63
|
export { default as Speed } from './core/Speed/index.js';
|
|
64
64
|
export { default as StatusCapsule, StatusIcon, StatusPresetColors } from './core/StatusCapsule/index.js';
|
|
65
65
|
export { default as Steps } from './core/Steps/index.js';
|
|
@@ -103,6 +103,8 @@ export { ColumnTitle, EmptyRowMenu, KitTableContext, TableLoading } from './core
|
|
|
103
103
|
export { ValidateTriggerType } from './core/TableForm/types.js';
|
|
104
104
|
export { Typo } from './core/Typo/index.js';
|
|
105
105
|
export { ConfigProvider } from './core/ConfigProvider/index.js';
|
|
106
|
+
export { default as Skeleton } from './core/Skeleton/index.js';
|
|
107
|
+
export { default as SkeletonContent } from './core/Skeleton/Content.js';
|
|
106
108
|
export { default as BarChart, getWidth } from './coreX/BarChart/index.js';
|
|
107
109
|
export { default as BatchOperation, renderBatchOperationMenuItem } from './coreX/BatchOperation/index.js';
|
|
108
110
|
export { default as ChartWithTooltip, ChartWithUnit } from './coreX/ChartWithTooltip/index.js';
|
|
@@ -123,11 +125,12 @@ export { default as SummaryTable, SummaryTableRow } from './coreX/SummaryTable/i
|
|
|
123
125
|
export { default as SwitchWithText } from './coreX/SwitchWithText/index.js';
|
|
124
126
|
export { default as TabMenu } from './coreX/TabMenu/index.js';
|
|
125
127
|
export { default as UnitWithChart, UnitWrapper } from './coreX/UnitWithChart/index.js';
|
|
128
|
+
export { default as CircleLoading } from './coreX/CircleLoading/index.js';
|
|
126
129
|
export { getCalendarTitle } from './coreX/common/getCalendarTitle.js';
|
|
127
130
|
export { default as AbsoluteDate } from './coreX/DateRangePicker/AbsoluteDate.js';
|
|
128
131
|
export { default as DateRangePickerCalendar } from './coreX/DateRangePicker/Calendar.js';
|
|
129
132
|
export { default as InputTime } from './coreX/DateRangePicker/InputTime.js';
|
|
130
133
|
export { default as RelativeTime } from './coreX/DateRangePicker/RelativeTime.js';
|
|
131
|
-
export { Animation } from './styles/token/animation.js';
|
|
134
|
+
export { Animation, Keyframes } from './styles/token/animation.js';
|
|
132
135
|
export { Color } from './styles/token/color.js';
|
|
133
136
|
export { zIndices } from './styles/token/zIndices.js';
|