@cloudtower/eagle 0.32.41 → 0.32.43
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/core/Button/index.js +1 -2
- package/dist/cjs/core/ConfigProvider/index.js +1 -1
- package/dist/cjs/core/LineChart/RenderChart.js +2 -2
- package/dist/cjs/core/LineChart/TooltipFormatter.js +2 -2
- package/dist/cjs/core/Second/index.js +12 -4
- package/dist/cjs/index.js +4 -4
- package/dist/cjs/stats1.html +1 -1
- package/dist/components.css +2909 -2909
- package/dist/esm/core/Button/index.js +1 -2
- package/dist/esm/core/ConfigProvider/index.js +1 -1
- package/dist/esm/core/LineChart/RenderChart.js +2 -2
- package/dist/esm/core/LineChart/TooltipFormatter.js +1 -1
- package/dist/esm/core/Second/index.js +11 -3
- package/dist/esm/index.js +1 -1
- package/dist/esm/stats1.html +1 -1
- package/dist/src/core/LineChart/index.d.ts +2 -2
- package/dist/src/core/LineChart/type.d.ts +2 -2
- package/dist/src/core/LineChart/utils.d.ts +1 -1
- package/dist/src/core/Units/units.type.d.ts +66 -0
- package/dist/src/core/index.d.ts +2 -2
- package/dist/stories/docs/core/Second.stories.d.ts +57 -22
- package/dist/style.css +2934 -2935
- package/package.json +4 -4
|
@@ -30,7 +30,6 @@ var __objRest = (source, exclude) => {
|
|
|
30
30
|
return target;
|
|
31
31
|
};
|
|
32
32
|
const ButtonStyle = "E_b1wx3t3t";
|
|
33
|
-
const NoPadding = "E_n7k2c6r";
|
|
34
33
|
const isAntdButtonTypes = type => {
|
|
35
34
|
return Boolean(type && ["default", "primary", "ghost", "dashed", "link", "text"].includes(type));
|
|
36
35
|
};
|
|
@@ -55,7 +54,7 @@ const Button = React__default.forwardRef((props, ref) => {
|
|
|
55
54
|
const onlyIcon = !children && (prefixIcon || suffixIcon);
|
|
56
55
|
return /* @__PURE__ */React__default.createElement(Button$2, __spreadValues({
|
|
57
56
|
ref,
|
|
58
|
-
className: cs(className, ButtonStyle,
|
|
57
|
+
className: cs(className, ButtonStyle, size === "large" && Typo.Label.l1_regular_title, size === "middle" && Typo.Label.l2_regular_title, size === "small" && Typo.Label.l3_regular_title, type && `ant-btn-${type}`, onlyIcon && "ant-btn-icon-only"),
|
|
59
58
|
type: isAntdButtonTypes(type) ? type : void 0,
|
|
60
59
|
onMouseEnter: e => {
|
|
61
60
|
onMouseEnter == null ? void 0 : onMouseEnter(e);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { useKitDispatch } from '../KitStoreProvider/index.js';
|
|
2
2
|
import LineChartLegend from './LineChartLegend.js';
|
|
3
3
|
import { MetricLegendTabStyle } from './styled.js';
|
|
4
|
+
import TooltipFormatter from './TooltipFormatter.js';
|
|
4
5
|
import { ILineChartGraphType } from './type.js';
|
|
5
|
-
import { Empty } from 'antd';
|
|
6
6
|
import { convertLineChartDataStruct, getYAxisDomain, getLineChartXAxisDomain, lineChartXaxisCal, lineChartYaxisTickFormatter, lineChartTickFormatter } from './utils.js';
|
|
7
|
-
import TooltipFormatter from './TooltipFormatter.js';
|
|
8
7
|
import useParrotTranslation from '../../hooks/useParrotTranslation.js';
|
|
8
|
+
import { Empty } from 'antd';
|
|
9
9
|
import cs from 'classnames';
|
|
10
10
|
import dayjs from 'dayjs';
|
|
11
11
|
import React__default, { useState, useMemo, useCallback } from 'react';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { styled } from '@linaria/react';
|
|
2
2
|
import { LineChartColorBlock } from './LineChartLegend.js';
|
|
3
3
|
import { TooltipWrapper, TooltipColumn } from './styled.js';
|
|
4
|
+
import dayjs from 'dayjs';
|
|
4
5
|
import React__default from 'react';
|
|
5
6
|
import { Typo } from '../Typo/index.js';
|
|
6
|
-
import dayjs from 'dayjs';
|
|
7
7
|
|
|
8
8
|
var __defProp = Object.defineProperty;
|
|
9
9
|
var __defProps = Object.defineProperties;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { cx } from '@linaria/core';
|
|
2
2
|
import Empty from '../Empty/index.js';
|
|
3
|
-
import
|
|
3
|
+
import { ParrotTrans } from '../ParrotTrans/index.js';
|
|
4
4
|
import isEmpty from '../../utils/isEmpty.js';
|
|
5
5
|
import { formatSeconds } from '../../utils/tower.js';
|
|
6
6
|
import React__default from 'react';
|
|
@@ -30,12 +30,20 @@ const Second = ({
|
|
|
30
30
|
abbreviate,
|
|
31
31
|
emptyProps
|
|
32
32
|
}) => {
|
|
33
|
-
const { t } = useParrotTranslation();
|
|
34
33
|
if (isEmpty(rawValue)) {
|
|
35
34
|
return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues({}, emptyProps));
|
|
36
35
|
}
|
|
37
36
|
const { value, unit } = formatSeconds(rawValue, decimals);
|
|
38
|
-
return /* @__PURE__ */ React__default.createElement(
|
|
37
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
38
|
+
ParrotTrans,
|
|
39
|
+
{
|
|
40
|
+
parent: "span",
|
|
41
|
+
i18nKey: `unit.${abbreviate ? `${unit}_abbreviation` : unit}`,
|
|
42
|
+
count: value
|
|
43
|
+
},
|
|
44
|
+
/* @__PURE__ */ React__default.createElement("span", { className: cx("value", valueClassName) }),
|
|
45
|
+
/* @__PURE__ */ React__default.createElement("span", { className: cx("unit", UnitStyle, unitClassName) })
|
|
46
|
+
);
|
|
39
47
|
};
|
|
40
48
|
var Second$1 = Second;
|
|
41
49
|
|
package/dist/esm/index.js
CHANGED
|
@@ -45,8 +45,8 @@ export { AntdPasswordInputStyled, default as InputPassword } from './core/InputP
|
|
|
45
45
|
export { default as InputTagItem } from './core/InputTagItem/index.js';
|
|
46
46
|
export { default as KitStoreProvider, useCloseModal, useKitDispatch, useKitSelector, usePopModal, usePushModal, useResetModal } from './core/KitStoreProvider/index.js';
|
|
47
47
|
export { default as LegacySelect } from './core/LegacySelect/index.js';
|
|
48
|
-
export { default as Link } from './core/Link/index.js';
|
|
49
48
|
export { default as LineChart } from './core/LineChart/index.js';
|
|
49
|
+
export { default as Link } from './core/Link/index.js';
|
|
50
50
|
export { default as Loading } from './core/Loading/index.js';
|
|
51
51
|
export { DEFAULT_DURATION, attachTypeApi, getKeyThenIncreaseKey, default as message } from './core/message/index.js';
|
|
52
52
|
export { default as Metric } from './core/Metric/index.js';
|