@cloudtower/eagle 0.27.53-alpha.2 → 0.27.53-alpha.4
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 +5 -24
- package/dist/cjs/core/AccordionCard/index.js +6 -5
- package/dist/cjs/core/Alert/index.js +3 -4
- package/dist/cjs/core/Arch/index.js +2 -1
- package/dist/cjs/core/Badge/index.js +2 -1
- package/dist/cjs/core/BaseIcon/index.js +2 -1
- package/dist/cjs/core/Bit/index.js +2 -1
- package/dist/cjs/core/BitPerSecond/index.js +2 -1
- package/dist/cjs/core/Bps/index.js +2 -1
- package/dist/cjs/core/Breadcrumb/index.js +2 -1
- package/dist/cjs/core/Button/index.js +2 -1
- package/dist/cjs/core/Byte/index.js +2 -1
- package/dist/cjs/core/Calendar/index.js +2 -1
- package/dist/cjs/core/Card/index.js +2 -1
- package/dist/cjs/core/Checkbox/index.js +2 -1
- package/dist/cjs/core/DetailCard/index.js +2 -1
- package/dist/cjs/core/DonutChart/index.js +2 -1
- package/dist/cjs/core/DropdownMenu/index.js +2 -1
- package/dist/cjs/core/Empty/index.js +2 -1
- package/dist/cjs/core/ExpandableList/ExpandableContainer.js +2 -1
- package/dist/cjs/core/ExpandableList/ExpandableItem.js +2 -1
- package/dist/cjs/core/FailedLoad/index.js +2 -1
- package/dist/cjs/core/Fields/index.js +2 -1
- package/dist/cjs/core/Form/index.js +2 -1
- package/dist/cjs/core/Frequency/index.js +2 -1
- package/dist/cjs/core/Icon/index.js +2 -1
- package/dist/cjs/core/Input/index.js +2 -1
- package/dist/cjs/core/InputGroup/index.js +2 -1
- package/dist/cjs/core/InputNumber/index.js +2 -1
- package/dist/cjs/core/InputTagItem/index.js +2 -1
- package/dist/cjs/core/KitStoreProvider/index.js +2 -1
- package/dist/cjs/core/Link/index.js +2 -1
- package/dist/cjs/core/Loading/index.js +2 -1
- package/dist/cjs/core/Metric/metric.js +0 -1
- package/dist/cjs/core/Modal/index.js +2 -2
- package/dist/cjs/core/ModalStack/index.js +2 -1
- package/dist/cjs/core/Overflow/index.js +2 -6
- package/dist/cjs/core/Pagination/index.js +2 -1
- package/dist/cjs/core/Percent/index.js +2 -1
- package/dist/cjs/core/Progress/index.js +2 -1
- package/dist/cjs/core/Radio/index.js +3 -5
- package/dist/cjs/core/SearchInput/index.js +2 -1
- package/dist/cjs/core/Second/index.js +2 -1
- package/dist/cjs/core/SegmentControl/index.js +2 -1
- package/dist/cjs/core/Select/index.js +2 -1
- package/dist/cjs/core/SimplePagination/index.js +2 -1
- package/dist/cjs/core/Speed/index.js +2 -1
- package/dist/cjs/core/StatusCapsule/index.js +2 -1
- package/dist/cjs/core/Steps/index.js +2 -1
- package/dist/cjs/core/Switch/index.js +2 -1
- package/dist/cjs/core/Table/TableWidget.js +1 -2
- package/dist/cjs/core/TableForm/index.js +2 -1
- package/dist/cjs/core/Tag/index.js +2 -1
- package/dist/cjs/core/TextArea/index.js +2 -1
- package/dist/cjs/core/Time/index.js +2 -1
- package/dist/cjs/core/TimeZoneSelect/index.js +2 -1
- package/dist/cjs/core/Token/index.js +2 -1
- package/dist/cjs/core/Tooltip/index.js +2 -1
- package/dist/cjs/core/Truncate/index.js +2 -1
- package/dist/cjs/core/antd.js +3 -3
- package/dist/cjs/core/message/index.js +2 -1
- package/dist/cjs/coreX/BarChart/index.js +2 -1
- package/dist/cjs/coreX/BatchOperation/index.js +2 -1
- package/dist/cjs/coreX/ChartWithTooltip/index.js +2 -1
- package/dist/cjs/coreX/Counting/index.js +2 -1
- package/dist/cjs/coreX/CronCalendar/index.js +2 -1
- package/dist/cjs/coreX/CronPlan/index.js +2 -2
- package/dist/cjs/coreX/DateRangePicker/AbsoluteDate.js +2 -1
- package/dist/cjs/coreX/DateRangePicker/Calendar.js +2 -1
- package/dist/cjs/coreX/DateRangePicker/InputTime.js +2 -1
- package/dist/cjs/coreX/DateRangePicker/RelativeTime.js +2 -1
- package/dist/cjs/coreX/DateRangePicker/index.js +2 -2
- package/dist/cjs/coreX/DeprecatedDonutChart/index.js +2 -1
- package/dist/cjs/coreX/DropdownTransition/index.js +2 -1
- package/dist/cjs/coreX/GoBackButton/index.js +2 -1
- package/dist/cjs/coreX/I18nNameTag/index.js +2 -1
- package/dist/cjs/coreX/NamesTooltip/index.js +2 -1
- package/dist/cjs/coreX/OverflowTooltip/index.js +2 -1
- package/dist/cjs/coreX/SidebarSubtitle/index.js +2 -1
- package/dist/cjs/coreX/SortableList/index.js +2 -1
- package/dist/cjs/coreX/SummaryTable/index.js +2 -1
- package/dist/cjs/coreX/SwitchWithText/index.js +2 -1
- package/dist/cjs/coreX/TruncatedTextWithTooltip/index.js +2 -1
- package/dist/cjs/coreX/UnitWithChart/index.js +2 -1
- package/dist/cjs/hooks/useElementResize.js +2 -1
- package/dist/cjs/hooks/useElementsSize.js +0 -3
- package/dist/cjs/index.js +62 -74
- package/dist/cjs/stats1.html +1 -1
- package/dist/cjs/utils/time.js +0 -1
- package/dist/components.css +2611 -1719
- package/dist/esm/UIKitProvider/index.js +7 -26
- package/dist/esm/core/AccordionCard/index.js +2 -1
- package/dist/esm/core/Alert/index.js +5 -6
- package/dist/esm/core/Arch/index.js +2 -1
- package/dist/esm/core/Badge/index.js +4 -3
- package/dist/esm/core/BaseIcon/index.js +2 -1
- package/dist/esm/core/Bit/index.js +2 -1
- package/dist/esm/core/BitPerSecond/index.js +2 -1
- package/dist/esm/core/Bps/index.js +2 -1
- package/dist/esm/core/Breadcrumb/index.js +2 -1
- package/dist/esm/core/Button/index.js +4 -3
- package/dist/esm/core/Byte/index.js +2 -1
- package/dist/esm/core/Calendar/index.js +4 -3
- package/dist/esm/core/Card/index.js +2 -1
- package/dist/esm/core/Checkbox/index.js +4 -3
- package/dist/esm/core/DetailCard/index.js +2 -1
- package/dist/esm/core/DonutChart/index.js +2 -1
- package/dist/esm/core/DropdownMenu/index.js +2 -1
- package/dist/esm/core/Empty/index.js +2 -1
- package/dist/esm/core/ExpandableList/ExpandableContainer.js +2 -1
- package/dist/esm/core/ExpandableList/ExpandableItem.js +2 -1
- package/dist/esm/core/FailedLoad/index.js +2 -1
- package/dist/esm/core/Fields/index.js +2 -1
- package/dist/esm/core/Form/index.js +4 -3
- package/dist/esm/core/Frequency/index.js +2 -1
- package/dist/esm/core/Icon/index.js +2 -1
- package/dist/esm/core/Input/index.js +4 -3
- package/dist/esm/core/InputGroup/index.js +2 -1
- package/dist/esm/core/InputNumber/index.js +4 -3
- package/dist/esm/core/InputTagItem/index.js +2 -1
- package/dist/esm/core/KitStoreProvider/index.js +3 -2
- package/dist/esm/core/Link/index.js +2 -1
- package/dist/esm/core/Loading/index.js +2 -1
- package/dist/esm/core/Metric/metric.js +0 -1
- package/dist/esm/core/Modal/index.js +4 -4
- package/dist/esm/core/ModalStack/index.js +2 -1
- package/dist/esm/core/Overflow/index.js +2 -6
- package/dist/esm/core/Pagination/index.js +2 -1
- package/dist/esm/core/Percent/index.js +2 -1
- package/dist/esm/core/Progress/index.js +4 -3
- package/dist/esm/core/Radio/index.js +7 -9
- package/dist/esm/core/SearchInput/index.js +2 -1
- package/dist/esm/core/Second/index.js +2 -1
- package/dist/esm/core/SegmentControl/index.js +2 -1
- package/dist/esm/core/Select/index.js +4 -3
- package/dist/esm/core/SimplePagination/index.js +2 -1
- package/dist/esm/core/Speed/index.js +2 -1
- package/dist/esm/core/StatusCapsule/index.js +2 -1
- package/dist/esm/core/Steps/index.js +5 -4
- package/dist/esm/core/Switch/index.js +4 -3
- package/dist/esm/core/Table/TableWidget.js +1 -2
- package/dist/esm/core/TableForm/index.js +2 -1
- package/dist/esm/core/Tag/index.js +4 -3
- package/dist/esm/core/TextArea/index.js +2 -1
- package/dist/esm/core/Time/index.js +2 -1
- package/dist/esm/core/TimeZoneSelect/index.js +2 -1
- package/dist/esm/core/Token/index.js +2 -1
- package/dist/esm/core/Tooltip/index.js +4 -3
- package/dist/esm/core/Truncate/index.js +2 -1
- package/dist/esm/core/antd.js +9 -9
- package/dist/esm/core/message/index.js +2 -1
- package/dist/esm/coreX/BarChart/index.js +2 -1
- package/dist/esm/coreX/BatchOperation/index.js +2 -1
- package/dist/esm/coreX/ChartWithTooltip/index.js +4 -3
- package/dist/esm/coreX/Counting/index.js +2 -1
- package/dist/esm/coreX/CronCalendar/index.js +2 -1
- package/dist/esm/coreX/CronPlan/index.js +2 -2
- package/dist/esm/coreX/DateRangePicker/AbsoluteDate.js +2 -1
- package/dist/esm/coreX/DateRangePicker/Calendar.js +2 -1
- package/dist/esm/coreX/DateRangePicker/InputTime.js +2 -1
- package/dist/esm/coreX/DateRangePicker/RelativeTime.js +2 -1
- package/dist/esm/coreX/DateRangePicker/index.js +2 -2
- package/dist/esm/coreX/DeprecatedDonutChart/index.js +2 -1
- package/dist/esm/coreX/DropdownTransition/index.js +2 -1
- package/dist/esm/coreX/GoBackButton/index.js +2 -1
- package/dist/esm/coreX/I18nNameTag/index.js +2 -1
- package/dist/esm/coreX/NamesTooltip/index.js +2 -1
- package/dist/esm/coreX/OverflowTooltip/index.js +2 -1
- package/dist/esm/coreX/SidebarSubtitle/index.js +2 -1
- package/dist/esm/coreX/SortableList/index.js +3 -2
- package/dist/esm/coreX/SummaryTable/index.js +2 -1
- package/dist/esm/coreX/SwitchWithText/index.js +2 -1
- package/dist/esm/coreX/TruncatedTextWithTooltip/index.js +2 -1
- package/dist/esm/coreX/UnitWithChart/index.js +4 -3
- package/dist/esm/hooks/useElementResize.js +2 -1
- package/dist/esm/hooks/useElementsSize.js +0 -3
- package/dist/esm/index.js +18 -30
- package/dist/esm/stats1.html +1 -1
- package/dist/esm/utils/time.js +0 -1
- package/dist/src/index.d.ts +0 -1
- package/dist/style.css +1950 -1950
- package/dist/token.css +209 -415
- package/package.json +6 -6
- package/dist/cjs/core/ErrorBoundary/index.js +0 -21
- package/dist/esm/core/ErrorBoundary/index.js +0 -19
- package/dist/src/styles/token/token.d.ts +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Loading from '../Loading/index.js';
|
|
2
2
|
import { Typo } from '../Typo/index.js';
|
|
3
|
-
import { Select as Select$
|
|
3
|
+
import { Select as Select$2 } from 'antd';
|
|
4
4
|
import cs from 'classnames';
|
|
5
5
|
import _ from 'lodash';
|
|
6
6
|
import React__default, { useMemo, useRef, useEffect } from 'react';
|
|
@@ -85,7 +85,7 @@ const Select = _a => {
|
|
|
85
85
|
inputDom && (placeholder || item) && inputDom.setAttribute("data-test", String(placeholder || item.textContent));
|
|
86
86
|
}
|
|
87
87
|
}, [selectRef, placeholder]);
|
|
88
|
-
return /* @__PURE__ */React__default.createElement(Select$
|
|
88
|
+
return /* @__PURE__ */React__default.createElement(Select$2, __spreadValues(__spreadProps(__spreadValues({}, input), {
|
|
89
89
|
ref: selectRef,
|
|
90
90
|
size,
|
|
91
91
|
value: multiple ? input.value || [] : input.value || void 0,
|
|
@@ -133,5 +133,6 @@ const Select = _a => {
|
|
|
133
133
|
}) : child;
|
|
134
134
|
}));
|
|
135
135
|
};
|
|
136
|
+
var Select$1 = Select;
|
|
136
137
|
|
|
137
|
-
export { Select as default };
|
|
138
|
+
export { Select$1 as default };
|
|
@@ -33,5 +33,6 @@ const Speed = ({
|
|
|
33
33
|
const { value, unit } = formatSpeed(rawValue, decimals);
|
|
34
34
|
return /* @__PURE__ */ React__default.createElement("span", null, /* @__PURE__ */ React__default.createElement("span", { className: cx("value", valueClassName) }, value), /* @__PURE__ */ React__default.createElement("span", { className: cx("unit", unitClassName) }, ` ${unit}`));
|
|
35
35
|
};
|
|
36
|
+
var Speed$1 = Speed;
|
|
36
37
|
|
|
37
|
-
export { Speed as default };
|
|
38
|
+
export { Speed$1 as default };
|
|
@@ -89,5 +89,6 @@ const StatusCapsule = _a => {
|
|
|
89
89
|
className: "ui-kit-status-capsule-number"
|
|
90
90
|
}, number));
|
|
91
91
|
};
|
|
92
|
+
var StatusCapsule$1 = StatusCapsule;
|
|
92
93
|
|
|
93
|
-
export { PresetColors, StatusIcon, StatusCapsule as default };
|
|
94
|
+
export { PresetColors, StatusIcon, StatusCapsule$1 as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CheckmarkDoneSuccessCorrect16SecondaryIcon } from '@cloudtower/icons-react';
|
|
2
2
|
import { StepsStyle, VerticalStyle, HorizontalStyle, VerticalStepContentStyle, HorizontalStepContentStyle } from './style.js';
|
|
3
3
|
import Tooltip from '../Tooltip/index.js';
|
|
4
|
-
import { Steps as Steps$
|
|
4
|
+
import { Steps as Steps$2 } from 'antd';
|
|
5
5
|
import cs from 'classnames';
|
|
6
6
|
import React__default, { useRef, useState, useLayoutEffect } from 'react';
|
|
7
7
|
|
|
@@ -85,7 +85,7 @@ const Steps = (props) => {
|
|
|
85
85
|
)
|
|
86
86
|
},
|
|
87
87
|
/* @__PURE__ */ React__default.createElement(
|
|
88
|
-
Steps$
|
|
88
|
+
Steps$2,
|
|
89
89
|
__spreadProps(__spreadValues({}, stepsProps), {
|
|
90
90
|
direction,
|
|
91
91
|
current,
|
|
@@ -94,7 +94,7 @@ const Steps = (props) => {
|
|
|
94
94
|
(stepsConfig == null ? void 0 : stepsConfig.length) ? stepsConfig.map((step, index) => {
|
|
95
95
|
var _a2;
|
|
96
96
|
return /* @__PURE__ */ React__default.createElement(
|
|
97
|
-
Steps$
|
|
97
|
+
Steps$2.Step,
|
|
98
98
|
__spreadProps(__spreadValues({
|
|
99
99
|
key: index
|
|
100
100
|
}, step), {
|
|
@@ -119,5 +119,6 @@ const Steps = (props) => {
|
|
|
119
119
|
)
|
|
120
120
|
);
|
|
121
121
|
};
|
|
122
|
+
var Steps$1 = Steps;
|
|
122
123
|
|
|
123
|
-
export { Steps as default };
|
|
124
|
+
export { Steps$1 as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { cx } from '@linaria/core';
|
|
2
2
|
import { styled } from '@linaria/react';
|
|
3
|
-
import { Switch as Switch$
|
|
3
|
+
import { Switch as Switch$2 } from 'antd';
|
|
4
4
|
import React__default from 'react';
|
|
5
5
|
|
|
6
6
|
var __defProp = Object.defineProperty;
|
|
@@ -47,12 +47,13 @@ const Switch = _a => {
|
|
|
47
47
|
});
|
|
48
48
|
const classNames = [className, SwitchStyle, "switch"];
|
|
49
49
|
if (props.size === "large") classNames.push("ant-switch-large");
|
|
50
|
-
return /* @__PURE__ */React__default.createElement(React__default.Fragment, null, /* @__PURE__ */React__default.createElement(Switch$
|
|
50
|
+
return /* @__PURE__ */React__default.createElement(React__default.Fragment, null, /* @__PURE__ */React__default.createElement(Switch$2, __spreadProps(__spreadValues({
|
|
51
51
|
className: cx(...classNames),
|
|
52
52
|
checked: checked || false
|
|
53
53
|
}, props), {
|
|
54
54
|
size: props.size
|
|
55
55
|
})), children ? /* @__PURE__ */React__default.createElement(Content, null, children) : null);
|
|
56
56
|
};
|
|
57
|
+
var Switch$1 = Switch;
|
|
57
58
|
|
|
58
|
-
export { Switch as default };
|
|
59
|
+
export { Switch$1 as default };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { ArrowChevronUp16BoldSecondaryIcon } from '@cloudtower/icons-react';
|
|
2
2
|
import Icon from '../Icon/index.js';
|
|
3
|
-
import '
|
|
3
|
+
import cs from 'classnames';
|
|
4
4
|
import React__default, { createContext } from 'react';
|
|
5
5
|
import useElementsSize from '../../hooks/useElementsSize.js';
|
|
6
|
-
import cs from 'classnames';
|
|
7
6
|
|
|
8
7
|
const TableLoadingStyle = "t13ef470";
|
|
9
8
|
const TableLoading = () => {
|
|
@@ -2,7 +2,7 @@ import { PresetColors as PresetColors$1 } from './const.js';
|
|
|
2
2
|
import SplitTag from './SplitTag.js';
|
|
3
3
|
import { Size, TagStyle, IconStyle, NameTagStyle } from './style.js';
|
|
4
4
|
import { Typo } from '../Typo/index.js';
|
|
5
|
-
import { Tag as Tag$
|
|
5
|
+
import { Tag as Tag$2 } from 'antd';
|
|
6
6
|
import cs from 'classnames';
|
|
7
7
|
import React__default from 'react';
|
|
8
8
|
|
|
@@ -67,7 +67,7 @@ const Tag = (_a) => {
|
|
|
67
67
|
]);
|
|
68
68
|
const computedColor = AntdColorMap[color] || color;
|
|
69
69
|
return /* @__PURE__ */ React__default.createElement(
|
|
70
|
-
Tag$
|
|
70
|
+
Tag$2,
|
|
71
71
|
__spreadProps(__spreadValues({}, props), {
|
|
72
72
|
className: cs(className, Size[size], TagStyle, Typo.Label.l4_regular, {
|
|
73
73
|
[`ant-tag-${computedColor}`]: PresetColors.includes(computedColor),
|
|
@@ -86,5 +86,6 @@ const NameTag = (_c) => {
|
|
|
86
86
|
};
|
|
87
87
|
Tag.SplitTag = SplitTag;
|
|
88
88
|
Tag.NameTag = NameTag;
|
|
89
|
+
var Tag$1 = Tag;
|
|
89
90
|
|
|
90
|
-
export { PresetColors, Tag as default };
|
|
91
|
+
export { PresetColors, Tag$1 as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Tooltip as Tooltip$
|
|
1
|
+
import { Tooltip as Tooltip$2 } from 'antd';
|
|
2
2
|
import cs from 'classnames';
|
|
3
3
|
import React__default, { useRef, useMemo, useCallback, useEffect } from 'react';
|
|
4
4
|
|
|
@@ -69,7 +69,7 @@ const Tooltip = props => {
|
|
|
69
69
|
};
|
|
70
70
|
}
|
|
71
71
|
}, [followMouse, onmousemove, uniqueContainerClass]);
|
|
72
|
-
return /* @__PURE__ */React__default.createElement(Tooltip$
|
|
72
|
+
return /* @__PURE__ */React__default.createElement(Tooltip$2, __spreadProps(__spreadValues({}, restProps), {
|
|
73
73
|
overlayClassName: cs({
|
|
74
74
|
uniquePopupClass: followMouse,
|
|
75
75
|
TooltipDefaultClass,
|
|
@@ -82,5 +82,6 @@ const Tooltip = props => {
|
|
|
82
82
|
}, overlayStyle) : overlayStyle
|
|
83
83
|
}));
|
|
84
84
|
};
|
|
85
|
+
var Tooltip$1 = Tooltip;
|
|
85
86
|
|
|
86
|
-
export { Tooltip as default };
|
|
87
|
+
export { Tooltip$1 as default };
|
package/dist/esm/core/antd.js
CHANGED
|
@@ -8,14 +8,13 @@ import DropdownMenu from './DropdownMenu/index.js';
|
|
|
8
8
|
import SegmentControl from './SegmentControl/index.js';
|
|
9
9
|
import { CircleProgress } from './StepProgress/index.js';
|
|
10
10
|
import BatchOperation from '../coreX/BatchOperation/index.js';
|
|
11
|
-
import CronPlan from '../coreX/CronPlan/index.js';
|
|
12
|
-
import DateRangePicker from '../coreX/DateRangePicker/index.js';
|
|
13
|
-
import DeprecatedDonutChart from '../coreX/DeprecatedDonutChart/index.js';
|
|
14
11
|
import ChartWithTooltip, { ChartWithUnit } from '../coreX/ChartWithTooltip/index.js';
|
|
15
12
|
import Counting from '../coreX/Counting/index.js';
|
|
16
13
|
import CronCalendar from '../coreX/CronCalendar/index.js';
|
|
14
|
+
import CronPlan from '../coreX/CronPlan/index.js';
|
|
15
|
+
import DeprecatedDonutChart from '../coreX/DeprecatedDonutChart/index.js';
|
|
17
16
|
import DropdownTransition from '../coreX/DropdownTransition/index.js';
|
|
18
|
-
import
|
|
17
|
+
import GoBackButton from '../coreX/GoBackButton/index.js';
|
|
19
18
|
import I18nNameTag from '../coreX/I18nNameTag/index.js';
|
|
20
19
|
import NamesTooltip from '../coreX/NamesTooltip/index.js';
|
|
21
20
|
import OverflowTooltip from '../coreX/OverflowTooltip/index.js';
|
|
@@ -29,7 +28,7 @@ import Alert from './Alert/index.js';
|
|
|
29
28
|
import Arch from './Arch/index.js';
|
|
30
29
|
import Badge from './Badge/index.js';
|
|
31
30
|
import Bit from './Bit/index.js';
|
|
32
|
-
import
|
|
31
|
+
import BitPerSecond from './BitPerSecond/index.js';
|
|
33
32
|
import Bps from './Bps/index.js';
|
|
34
33
|
import Button from './Button/index.js';
|
|
35
34
|
import ButtonGroup from './ButtonGroup/index.js';
|
|
@@ -47,7 +46,7 @@ import Input from './Input/index.js';
|
|
|
47
46
|
import InputGroup from './InputGroup/index.js';
|
|
48
47
|
import Link from './Link/index.js';
|
|
49
48
|
import Loading from './Loading/index.js';
|
|
50
|
-
import
|
|
49
|
+
import _message from './message/index.js';
|
|
51
50
|
import Modal from './Modal/index.js';
|
|
52
51
|
import Pagination from './Pagination/index.js';
|
|
53
52
|
import Percent from './Percent/index.js';
|
|
@@ -70,6 +69,7 @@ import TimeZoneSelect from './TimeZoneSelect/index.js';
|
|
|
70
69
|
import Token from './Token/index.js';
|
|
71
70
|
import Tooltip from './Tooltip/index.js';
|
|
72
71
|
import Truncate from './Truncate/index.js';
|
|
72
|
+
import DateRangePicker from '../coreX/DateRangePicker/index.js';
|
|
73
73
|
|
|
74
74
|
function getAntdKit() {
|
|
75
75
|
const kit = {
|
|
@@ -97,7 +97,7 @@ function getAntdKit() {
|
|
|
97
97
|
Frequency,
|
|
98
98
|
Speed,
|
|
99
99
|
Bps,
|
|
100
|
-
BitPerSecond
|
|
100
|
+
BitPerSecond,
|
|
101
101
|
Bit,
|
|
102
102
|
Second
|
|
103
103
|
},
|
|
@@ -121,7 +121,7 @@ function getAntdKit() {
|
|
|
121
121
|
menuItemGroup: Menu.ItemGroup,
|
|
122
122
|
layout: Layout,
|
|
123
123
|
autoComplete: AutoComplete,
|
|
124
|
-
message:
|
|
124
|
+
message: _message,
|
|
125
125
|
tag: Tag,
|
|
126
126
|
popover: Popover,
|
|
127
127
|
arch: Arch,
|
|
@@ -186,7 +186,7 @@ function getAntdKit() {
|
|
|
186
186
|
DonutChart,
|
|
187
187
|
DeprecatedDonutChart,
|
|
188
188
|
UnitWithChart,
|
|
189
|
-
GoBackButton
|
|
189
|
+
GoBackButton,
|
|
190
190
|
SummaryTable,
|
|
191
191
|
SortableList,
|
|
192
192
|
SidebarSubtitle,
|
|
@@ -139,5 +139,6 @@ const BatchOperation = props => {
|
|
|
139
139
|
extraEl: getExtraEl
|
|
140
140
|
}));
|
|
141
141
|
};
|
|
142
|
+
var BatchOperation$1 = BatchOperation;
|
|
142
143
|
|
|
143
|
-
export { BatchOperation as default, renderBatchOperationMenuItem };
|
|
144
|
+
export { BatchOperation$1 as default, renderBatchOperationMenuItem };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { styled } from '@linaria/react';
|
|
2
2
|
import Bit from '../../core/Bit/index.js';
|
|
3
|
-
import
|
|
3
|
+
import BitPerSecond from '../../core/BitPerSecond/index.js';
|
|
4
4
|
import Bps from '../../core/Bps/index.js';
|
|
5
5
|
import Byte from '../../core/Byte/index.js';
|
|
6
6
|
import Frequency from '../../core/Frequency/index.js';
|
|
@@ -20,7 +20,7 @@ const units = {
|
|
|
20
20
|
Frequency,
|
|
21
21
|
Speed,
|
|
22
22
|
Bps,
|
|
23
|
-
BitPerSecond
|
|
23
|
+
BitPerSecond,
|
|
24
24
|
Bit,
|
|
25
25
|
Second
|
|
26
26
|
};
|
|
@@ -144,5 +144,6 @@ const ChartWithTooltip = props => {
|
|
|
144
144
|
saturated
|
|
145
145
|
}) : emptyDisplay(rawValue) : emptyDisplay(null)));
|
|
146
146
|
};
|
|
147
|
+
var ChartWithTooltip$1 = ChartWithTooltip;
|
|
147
148
|
|
|
148
|
-
export { ChartWithUnit, ChartWithTooltip as default };
|
|
149
|
+
export { ChartWithUnit, ChartWithTooltip$1 as default };
|
|
@@ -8,13 +8,13 @@ import Switch from '../../core/Switch/index.js';
|
|
|
8
8
|
import TimePicker from '../../core/TimePicker/index.js';
|
|
9
9
|
import { Typo } from '../../core/Typo/index.js';
|
|
10
10
|
import useParrotTranslation from '../../hooks/useParrotTranslation.js';
|
|
11
|
-
import { CronTime } from '../../utils/cron-time.js';
|
|
12
|
-
import { getMode, getTime, getDaily, getWeekly, getMonthly, toMonthlyString, toWeeklyString, toDailyString } from '../../utils/time.js';
|
|
13
11
|
import { DatePicker } from 'antd';
|
|
14
12
|
import dayjs from 'dayjs';
|
|
15
13
|
import _ from 'lodash';
|
|
16
14
|
import moment from 'moment';
|
|
17
15
|
import React__default, { useMemo, useState, useEffect } from 'react';
|
|
16
|
+
import { CronTime } from '../../utils/cron-time.js';
|
|
17
|
+
import { getMode, getTime, getDaily, getWeekly, getMonthly, toMonthlyString, toWeeklyString, toDailyString } from '../../utils/time.js';
|
|
18
18
|
|
|
19
19
|
var __defProp = Object.defineProperty;
|
|
20
20
|
var __defProps = Object.defineProperties;
|
|
@@ -144,5 +144,6 @@ const InputTime = (props) => {
|
|
|
144
144
|
)
|
|
145
145
|
), error ? /* @__PURE__ */ React__default.createElement("p", { className: cx("error-message", Typo.Label.l4_regular) }, error) : null);
|
|
146
146
|
};
|
|
147
|
+
var InputTime$1 = InputTime;
|
|
147
148
|
|
|
148
|
-
export { InputTime as default };
|
|
149
|
+
export { InputTime$1 as default };
|
|
@@ -13,7 +13,6 @@ import useParrotTranslation from '../../hooks/useParrotTranslation.js';
|
|
|
13
13
|
import { Popover } from 'antd';
|
|
14
14
|
import dayjs from 'dayjs';
|
|
15
15
|
import React__default, { useState, useEffect, useRef } from 'react';
|
|
16
|
-
import '../../core/Button/index.js';
|
|
17
16
|
|
|
18
17
|
var __defProp = Object.defineProperty;
|
|
19
18
|
var __defProps = Object.defineProperties;
|
|
@@ -321,5 +320,6 @@ const DateRangePicker = (props) => {
|
|
|
321
320
|
) : null
|
|
322
321
|
);
|
|
323
322
|
};
|
|
323
|
+
var DateRangePicker$1 = DateRangePicker;
|
|
324
324
|
|
|
325
|
-
export { AbsoluteDate, RelativeTime, DateRangePicker as default };
|
|
325
|
+
export { AbsoluteDate, RelativeTime, DateRangePicker$1 as default };
|
|
@@ -6,5 +6,6 @@ const SidebarSubtitle = (props) => {
|
|
|
6
6
|
const { title, className } = props;
|
|
7
7
|
return /* @__PURE__ */ React__default.createElement("span", { className: cx(Typo.Heading.h3_regular_upper, className) }, title);
|
|
8
8
|
};
|
|
9
|
+
var SidebarSubtitle$1 = SidebarSubtitle;
|
|
9
10
|
|
|
10
|
-
export { SidebarSubtitle as default };
|
|
11
|
+
export { SidebarSubtitle$1 as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { DragDropContext, Droppable, Draggable } from 'react-beautiful-dnd';
|
|
3
3
|
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
5
5
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
@@ -26,5 +26,6 @@ const SortableList = ({ moveItem, children }) => {
|
|
|
26
26
|
return /* @__PURE__ */ React__default.createElement(DragDropContext, { onDragEnd }, /* @__PURE__ */ React__default.createElement(Droppable, { droppableId: "droppable" }, (provided) => /* @__PURE__ */ React__default.createElement("div", __spreadValues({ ref: provided.innerRef }, provided.droppableProps), children, provided.placeholder)));
|
|
27
27
|
};
|
|
28
28
|
SortableList.Item = Draggable;
|
|
29
|
+
var SortableList$1 = SortableList;
|
|
29
30
|
|
|
30
|
-
export { SortableList as default };
|
|
31
|
+
export { SortableList$1 as default };
|
|
@@ -52,5 +52,6 @@ const SwitchWithText = props => {
|
|
|
52
52
|
className: "enabled-text"
|
|
53
53
|
}, _props.checked ? text.checked : text.unchecked), /* @__PURE__ */React__default.createElement(Switch, __spreadValues({}, _props)));
|
|
54
54
|
};
|
|
55
|
+
var SwitchWithText$1 = SwitchWithText;
|
|
55
56
|
|
|
56
|
-
export { SwitchWithText as default };
|
|
57
|
+
export { SwitchWithText$1 as default };
|
|
@@ -62,5 +62,6 @@ const TruncatedTextWithTooltip = props => {
|
|
|
62
62
|
"data-testid": "text-tooltip"
|
|
63
63
|
}), /* @__PURE__ */React__default.createElement(TruncatedTextWrapper, null, renderName())) : renderName();
|
|
64
64
|
};
|
|
65
|
+
var TruncatedTextWithTooltip$1 = TruncatedTextWithTooltip;
|
|
65
66
|
|
|
66
|
-
export { TruncatedTextWithTooltip as default };
|
|
67
|
+
export { TruncatedTextWithTooltip$1 as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { styled } from '@linaria/react';
|
|
2
2
|
import Bit from '../../core/Bit/index.js';
|
|
3
|
-
import
|
|
3
|
+
import BitPerSecond from '../../core/BitPerSecond/index.js';
|
|
4
4
|
import Bps from '../../core/Bps/index.js';
|
|
5
5
|
import Byte from '../../core/Byte/index.js';
|
|
6
6
|
import Empty from '../../core/Empty/index.js';
|
|
@@ -35,7 +35,7 @@ const units = {
|
|
|
35
35
|
Frequency,
|
|
36
36
|
Speed,
|
|
37
37
|
Bps,
|
|
38
|
-
BitPerSecond
|
|
38
|
+
BitPerSecond,
|
|
39
39
|
Bit,
|
|
40
40
|
Second
|
|
41
41
|
};
|
|
@@ -108,5 +108,6 @@ const UnitWithChart = ({
|
|
|
108
108
|
dataKey: "used"
|
|
109
109
|
}, Sizes[size])));
|
|
110
110
|
};
|
|
111
|
+
var UnitWithChart$1 = UnitWithChart;
|
|
111
112
|
|
|
112
|
-
export { UnitWrapper, UnitWithChart as default };
|
|
113
|
+
export { UnitWrapper, UnitWithChart$1 as default };
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import _ from 'lodash';
|
|
2
2
|
import { useRef, useState, useCallback, useLayoutEffect } from 'react';
|
|
3
|
-
import '../utils/cron-time.js';
|
|
4
3
|
import { getSize } from '../utils/dom.js';
|
|
5
|
-
import '@cloudtower/icons-react';
|
|
6
|
-
import '../utils/time.js';
|
|
7
4
|
|
|
8
5
|
function getAllSize(classMap) {
|
|
9
6
|
return Object.keys(classMap).reduce((prev, cur) => {
|