@cloudtower/eagle 0.27.65 → 0.27.69
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/DeprecatedProgress/index.js +29 -0
- package/dist/cjs/core/Progress/components.js +111 -0
- package/dist/cjs/core/Progress/index.js +125 -13
- package/dist/cjs/core/Progress/progress.const.js +12 -0
- package/dist/cjs/core/Progress/progress.style.js +11 -0
- package/dist/cjs/core/Progress/progress.widgets.js +135 -0
- package/dist/cjs/core/antd.js +2 -2
- package/dist/cjs/index.js +26 -19
- package/dist/cjs/stats1.html +1 -1
- package/dist/cjs/styles/token/animation.js +7 -0
- package/dist/cjs/styles/token/color.js +3 -0
- package/dist/cjs/utils/isStringArr.js +7 -0
- package/dist/components.css +1903 -1805
- package/dist/esm/core/DeprecatedProgress/index.js +23 -0
- package/dist/esm/core/Progress/components.js +102 -0
- package/dist/esm/core/Progress/index.js +125 -13
- package/dist/esm/core/Progress/progress.const.js +10 -0
- package/dist/esm/core/Progress/progress.style.js +6 -0
- package/dist/esm/core/Progress/progress.widgets.js +128 -0
- package/dist/esm/core/antd.js +2 -2
- package/dist/esm/index.js +3 -0
- package/dist/esm/stats1.html +1 -1
- package/dist/esm/styles/token/animation.js +5 -0
- package/dist/esm/styles/token/color.js +3 -0
- package/dist/esm/utils/isStringArr.js +5 -0
- package/dist/src/core/DeprecatedProgress/index.d.ts +4 -0
- package/dist/src/core/Progress/components.d.ts +10 -0
- package/dist/src/core/Progress/index.d.ts +3 -3
- package/dist/src/core/Progress/progress.const.d.ts +6 -0
- package/dist/src/core/Progress/progress.style.d.ts +4 -0
- package/dist/src/core/Progress/progress.type.d.ts +84 -0
- package/dist/src/core/Progress/progress.widgets.d.ts +4 -0
- package/dist/src/index.d.ts +3 -0
- package/dist/src/spec/base.d.ts +9 -9
- package/dist/src/spec/type.d.ts +9 -0
- package/dist/src/styles/token/animation.d.ts +3 -0
- package/dist/src/styles/token/color.d.ts +3 -0
- package/dist/src/styles/token/index.d.ts +1 -0
- package/dist/src/utils/index.d.ts +1 -0
- package/dist/src/utils/isStringArr.d.ts +1 -0
- package/dist/stories/docs/core/InputInteger.stories.d.ts +28 -0
- package/dist/stories/docs/core/Progress/Progress.stories.d.ts +24 -0
- package/dist/stories/docs/core/Progress/Progress.widgets.stories.d.ts +24 -0
- package/dist/stories/docs/core/Progress/RichProgress.stories.d.ts +37 -0
- package/dist/stories/docs/core/Progress/SimpleProgress.stories.d.ts +15 -0
- package/dist/style.css +1884 -1793
- package/package.json +5 -5
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Progress as Progress$1 } from 'antd';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
8
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
9
|
+
var __spreadValues = (a, b) => {
|
|
10
|
+
for (var prop in b || (b = {}))
|
|
11
|
+
if (__hasOwnProp.call(b, prop))
|
|
12
|
+
__defNormalProp(a, prop, b[prop]);
|
|
13
|
+
if (__getOwnPropSymbols)
|
|
14
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
15
|
+
if (__propIsEnum.call(b, prop))
|
|
16
|
+
__defNormalProp(a, prop, b[prop]);
|
|
17
|
+
}
|
|
18
|
+
return a;
|
|
19
|
+
};
|
|
20
|
+
const Progress = (props) => /* @__PURE__ */ React__default.createElement(Progress$1, __spreadValues({}, props));
|
|
21
|
+
var DeprecatedProgress = Progress;
|
|
22
|
+
|
|
23
|
+
export { DeprecatedProgress as default };
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { CheckmarkDoneSuccessCorrect16GreenIcon, XmarkFailed16RedIcon, NoticeTriangleFill16YellowIcon, LoadingBlue16Icon } from '@cloudtower/icons-react';
|
|
2
|
+
import { cx } from '@linaria/core';
|
|
3
|
+
import { styled } from '@linaria/react';
|
|
4
|
+
import Icon from '../Icon/index.js';
|
|
5
|
+
import { StatusColorMap } from './progress.const.js';
|
|
6
|
+
import { DescriptionStyle } from './progress.style.js';
|
|
7
|
+
import { Typo } from '../Typo/index.js';
|
|
8
|
+
import OverflowTooltip from '../../coreX/OverflowTooltip/index.js';
|
|
9
|
+
import cs from 'classnames';
|
|
10
|
+
import React__default from 'react';
|
|
11
|
+
|
|
12
|
+
var __defProp = Object.defineProperty;
|
|
13
|
+
var __defProps = Object.defineProperties;
|
|
14
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
15
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
16
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
17
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
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;
|
|
24
|
+
var __spreadValues = (a, b) => {
|
|
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
|
+
}
|
|
29
|
+
return a;
|
|
30
|
+
};
|
|
31
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
32
|
+
var __objRest = (source, exclude) => {
|
|
33
|
+
var target = {};
|
|
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
|
+
}
|
|
38
|
+
return target;
|
|
39
|
+
};
|
|
40
|
+
const _exp = () => ({
|
|
41
|
+
color
|
|
42
|
+
}) => color || "";
|
|
43
|
+
const IconFieldText = /*#__PURE__*/styled('div')({
|
|
44
|
+
name: "IconFieldText",
|
|
45
|
+
class: "E_i14c7jc8",
|
|
46
|
+
propsAsIs: false,
|
|
47
|
+
vars: {
|
|
48
|
+
"i14c7jc8-0": [_exp()]
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
const StatusIconMap = {
|
|
52
|
+
success: /* @__PURE__ */React__default.createElement(CheckmarkDoneSuccessCorrect16GreenIcon, null),
|
|
53
|
+
failed: /* @__PURE__ */React__default.createElement(XmarkFailed16RedIcon, null),
|
|
54
|
+
paused: /* @__PURE__ */React__default.createElement(NoticeTriangleFill16YellowIcon, null),
|
|
55
|
+
active: /* @__PURE__ */React__default.createElement(Icon, {
|
|
56
|
+
src: LoadingBlue16Icon,
|
|
57
|
+
isRotate: true
|
|
58
|
+
})
|
|
59
|
+
};
|
|
60
|
+
const IconFieldWrapper = /*#__PURE__*/styled('div')({
|
|
61
|
+
name: "IconFieldWrapper",
|
|
62
|
+
class: "E_i1ibuolf",
|
|
63
|
+
propsAsIs: false
|
|
64
|
+
});
|
|
65
|
+
const IconField = _a => {
|
|
66
|
+
var _b = _a,
|
|
67
|
+
{
|
|
68
|
+
src,
|
|
69
|
+
children,
|
|
70
|
+
status,
|
|
71
|
+
className
|
|
72
|
+
} = _b,
|
|
73
|
+
restProps = __objRest(_b, ["src", "children", "status", "className"]);
|
|
74
|
+
const iconNode = status ? StatusIconMap[status] : src ? /* @__PURE__ */React__default.createElement(Icon, {
|
|
75
|
+
src
|
|
76
|
+
}) : null;
|
|
77
|
+
const color = status && status !== "active" ? StatusColorMap[status] : void 0;
|
|
78
|
+
return /* @__PURE__ */React__default.createElement(IconFieldWrapper, __spreadProps(__spreadValues({}, restProps), {
|
|
79
|
+
className: cx("progress-status-field", className)
|
|
80
|
+
}), iconNode, /* @__PURE__ */React__default.createElement(IconFieldText, {
|
|
81
|
+
color
|
|
82
|
+
}, children));
|
|
83
|
+
};
|
|
84
|
+
const Info = ({
|
|
85
|
+
children,
|
|
86
|
+
type,
|
|
87
|
+
multiLines
|
|
88
|
+
}) => {
|
|
89
|
+
const isTitle = type === "title";
|
|
90
|
+
return /* @__PURE__ */React__default.createElement(OverflowTooltip, {
|
|
91
|
+
className: cs({
|
|
92
|
+
"progress-title": isTitle,
|
|
93
|
+
[Typo.Label.l2_bold]: isTitle,
|
|
94
|
+
"progress-desc": !isTitle,
|
|
95
|
+
[DescriptionStyle]: !isTitle
|
|
96
|
+
}),
|
|
97
|
+
multiLines,
|
|
98
|
+
content: children
|
|
99
|
+
});
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
export { IconField, Info, StatusIconMap };
|
|
@@ -1,23 +1,135 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { cx } from '@linaria/core';
|
|
2
|
+
import { styled } from '@linaria/react';
|
|
3
|
+
import { StatusColorMap } from './progress.const.js';
|
|
4
|
+
import { FlexFullContentStyle, ProgressStyle, BaseProgressStyle } from './progress.style.js';
|
|
5
|
+
import { Area } from './progress.widgets.js';
|
|
6
|
+
import { isStringArray } from '../../utils/isStringArr.js';
|
|
7
|
+
import { Progress as Progress$1 } from 'antd5';
|
|
2
8
|
import React__default from 'react';
|
|
3
9
|
|
|
4
10
|
var __defProp = Object.defineProperty;
|
|
11
|
+
var __defProps = Object.defineProperties;
|
|
12
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
5
13
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
6
14
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
15
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
8
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, {
|
|
16
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
configurable: true,
|
|
19
|
+
writable: true,
|
|
20
|
+
value
|
|
21
|
+
}) : obj[key] = value;
|
|
9
22
|
var __spreadValues = (a, b) => {
|
|
10
|
-
for (var prop in b || (b = {}))
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
15
|
-
if (__propIsEnum.call(b, prop))
|
|
16
|
-
__defNormalProp(a, prop, b[prop]);
|
|
17
|
-
}
|
|
23
|
+
for (var prop in b || (b = {})) if (__hasOwnProp.call(b, prop)) __defNormalProp(a, prop, b[prop]);
|
|
24
|
+
if (__getOwnPropSymbols) for (var prop of __getOwnPropSymbols(b)) {
|
|
25
|
+
if (__propIsEnum.call(b, prop)) __defNormalProp(a, prop, b[prop]);
|
|
26
|
+
}
|
|
18
27
|
return a;
|
|
19
28
|
};
|
|
20
|
-
|
|
21
|
-
var
|
|
29
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
30
|
+
var __objRest = (source, exclude) => {
|
|
31
|
+
var target = {};
|
|
32
|
+
for (var prop in source) if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
33
|
+
if (source != null && __getOwnPropSymbols) for (var prop of __getOwnPropSymbols(source)) {
|
|
34
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) target[prop] = source[prop];
|
|
35
|
+
}
|
|
36
|
+
return target;
|
|
37
|
+
};
|
|
38
|
+
const Row = /*#__PURE__*/styled('div')({
|
|
39
|
+
name: "Row",
|
|
40
|
+
class: "E_r77hffu",
|
|
41
|
+
propsAsIs: false
|
|
42
|
+
});
|
|
43
|
+
const _exp = () => ({
|
|
44
|
+
type
|
|
45
|
+
}) => type === "rich" ? "6px" : "4px";
|
|
46
|
+
const ProgressContainer = /*#__PURE__*/styled('div')({
|
|
47
|
+
name: "ProgressContainer",
|
|
48
|
+
class: "E_p1cmxsf7",
|
|
49
|
+
propsAsIs: false,
|
|
50
|
+
vars: {
|
|
51
|
+
"p1cmxsf7-0": [_exp()]
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
const getStatus = (status, percent, indeterminate) => {
|
|
55
|
+
if (indeterminate) return "active";
|
|
56
|
+
if (!status && percent >= 100) return "success";
|
|
57
|
+
return status || "active";
|
|
58
|
+
};
|
|
59
|
+
const createAreaNode = (content, className, type, gap = 6) => {
|
|
60
|
+
return typeof content === "string" ? /* @__PURE__ */React__default.createElement(Area, {
|
|
61
|
+
className,
|
|
62
|
+
items: [{
|
|
63
|
+
type,
|
|
64
|
+
children: content
|
|
65
|
+
}],
|
|
66
|
+
gap
|
|
67
|
+
}) : content;
|
|
68
|
+
};
|
|
69
|
+
const Progress = _a => {
|
|
70
|
+
var _b = _a,
|
|
71
|
+
{
|
|
72
|
+
type = "simple",
|
|
73
|
+
status,
|
|
74
|
+
size = "small",
|
|
75
|
+
leftTop,
|
|
76
|
+
rightTop,
|
|
77
|
+
leftBottom,
|
|
78
|
+
rightBottom,
|
|
79
|
+
percent = 0,
|
|
80
|
+
className,
|
|
81
|
+
indeterminate
|
|
82
|
+
} = _b,
|
|
83
|
+
props = __objRest(_b, ["type", "status", "size", "leftTop", "rightTop", "leftBottom", "rightBottom", "percent", "className", "indeterminate"]);
|
|
84
|
+
const finalStatus = getStatus(status, percent, indeterminate);
|
|
85
|
+
const storkeWidth = size === "small" ? 4 : 8;
|
|
86
|
+
const isBaseProgress = type === "base";
|
|
87
|
+
const isRichProgress = type === "rich";
|
|
88
|
+
let titleNode;
|
|
89
|
+
let actionNode = rightBottom;
|
|
90
|
+
let statusTextNode;
|
|
91
|
+
if (type === "simple") {
|
|
92
|
+
let items;
|
|
93
|
+
if (!rightBottom) {
|
|
94
|
+
items = [`${percent}%`];
|
|
95
|
+
} else if (isStringArray(rightBottom)) {
|
|
96
|
+
items = [...rightBottom, `${percent}%`];
|
|
97
|
+
}
|
|
98
|
+
if (items) {
|
|
99
|
+
actionNode = /* @__PURE__ */React__default.createElement(Area, {
|
|
100
|
+
items: items.map(desc => ({
|
|
101
|
+
type: "description",
|
|
102
|
+
children: desc
|
|
103
|
+
})),
|
|
104
|
+
split: "dot"
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
titleNode = createAreaNode(leftTop, cx(FlexFullContentStyle, "progress-leftTop"), "description");
|
|
108
|
+
} else {
|
|
109
|
+
statusTextNode = createAreaNode(rightTop, "progress-status", "description", 2);
|
|
110
|
+
titleNode = createAreaNode(leftTop, "progress-leftTop", "title");
|
|
111
|
+
}
|
|
112
|
+
return /* @__PURE__ */React__default.createElement(ProgressContainer, {
|
|
113
|
+
type,
|
|
114
|
+
className: cx(className, ProgressStyle)
|
|
115
|
+
}, titleNode ? /* @__PURE__ */React__default.createElement(Row, null, titleNode, statusTextNode) : null, /* @__PURE__ */React__default.createElement(Progress$1, __spreadProps(__spreadValues({
|
|
116
|
+
className: isBaseProgress ? BaseProgressStyle : "",
|
|
117
|
+
strokeWidth: storkeWidth,
|
|
118
|
+
showInfo: false
|
|
119
|
+
}, props), {
|
|
120
|
+
status: finalStatus === "active" ? "active" : void 0,
|
|
121
|
+
percent: indeterminate ? 100 : percent,
|
|
122
|
+
strokeColor: StatusColorMap[finalStatus]
|
|
123
|
+
})), leftBottom || actionNode ? /* @__PURE__ */React__default.createElement(Row, null, isStringArray(leftBottom) ? /* @__PURE__ */React__default.createElement(Area, {
|
|
124
|
+
className: FlexFullContentStyle,
|
|
125
|
+
items: leftBottom.map(desc => ({
|
|
126
|
+
type: "description",
|
|
127
|
+
children: desc,
|
|
128
|
+
multiLines: !rightBottom ? 2 : 1
|
|
129
|
+
})),
|
|
130
|
+
gap: isRichProgress ? 2 : 0,
|
|
131
|
+
split: "dot"
|
|
132
|
+
}) : leftBottom, actionNode) : null);
|
|
133
|
+
};
|
|
22
134
|
|
|
23
|
-
export { Progress
|
|
135
|
+
export { Progress };
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { DotIntervalSeparation16TertiaryIcon } from '@cloudtower/icons-react';
|
|
2
|
+
import { styled } from '@linaria/react';
|
|
3
|
+
import Link from '../Link/index.js';
|
|
4
|
+
import { IconField, Info } from './components.js';
|
|
5
|
+
import Tag from '../Tag/index.js';
|
|
6
|
+
import React__default from 'react';
|
|
7
|
+
|
|
8
|
+
var __defProp = Object.defineProperty;
|
|
9
|
+
var __defProps = Object.defineProperties;
|
|
10
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
11
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
12
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
13
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
14
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
configurable: true,
|
|
17
|
+
writable: true,
|
|
18
|
+
value
|
|
19
|
+
}) : obj[key] = value;
|
|
20
|
+
var __spreadValues = (a, b) => {
|
|
21
|
+
for (var prop in b || (b = {})) if (__hasOwnProp.call(b, prop)) __defNormalProp(a, prop, b[prop]);
|
|
22
|
+
if (__getOwnPropSymbols) for (var prop of __getOwnPropSymbols(b)) {
|
|
23
|
+
if (__propIsEnum.call(b, prop)) __defNormalProp(a, prop, b[prop]);
|
|
24
|
+
}
|
|
25
|
+
return a;
|
|
26
|
+
};
|
|
27
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
28
|
+
var __objRest = (source, exclude) => {
|
|
29
|
+
var target = {};
|
|
30
|
+
for (var prop in source) if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
31
|
+
if (source != null && __getOwnPropSymbols) for (var prop of __getOwnPropSymbols(source)) {
|
|
32
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) target[prop] = source[prop];
|
|
33
|
+
}
|
|
34
|
+
return target;
|
|
35
|
+
};
|
|
36
|
+
const splitMap = {
|
|
37
|
+
dot: /* @__PURE__ */React__default.createElement(DotIntervalSeparation16TertiaryIcon, null)
|
|
38
|
+
};
|
|
39
|
+
const titleAreaStyle = "E_t1gvlxt5";
|
|
40
|
+
const _exp = () => props => props.gap;
|
|
41
|
+
const AreaWrapper = /*#__PURE__*/styled('div')({
|
|
42
|
+
name: "AreaWrapper",
|
|
43
|
+
class: "E_a1ji6r68",
|
|
44
|
+
propsAsIs: false,
|
|
45
|
+
vars: {
|
|
46
|
+
"a1ji6r68-0": [_exp(), "px"]
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
const Area = ({
|
|
50
|
+
items,
|
|
51
|
+
gap = 6,
|
|
52
|
+
split,
|
|
53
|
+
className
|
|
54
|
+
}) => {
|
|
55
|
+
const splitNode = typeof split === "string" ? splitMap[split] || split : split;
|
|
56
|
+
return /* @__PURE__ */React__default.createElement(AreaWrapper, {
|
|
57
|
+
className,
|
|
58
|
+
gap
|
|
59
|
+
}, items.map((item, idx) => {
|
|
60
|
+
const _a = item,
|
|
61
|
+
{
|
|
62
|
+
type
|
|
63
|
+
} = _a,
|
|
64
|
+
props = __objRest(_a, ["type"]);
|
|
65
|
+
return /* @__PURE__ */React__default.createElement(React__default.Fragment, {
|
|
66
|
+
key: idx
|
|
67
|
+
}, getComponent(type, props), split && idx < items.length - 1 && splitNode);
|
|
68
|
+
}));
|
|
69
|
+
};
|
|
70
|
+
const TitleArea = ({
|
|
71
|
+
title,
|
|
72
|
+
tag,
|
|
73
|
+
subtitle
|
|
74
|
+
}) => {
|
|
75
|
+
const items = [];
|
|
76
|
+
if (tag) {
|
|
77
|
+
items.push(__spreadValues({
|
|
78
|
+
type: "tag"
|
|
79
|
+
}, tag));
|
|
80
|
+
}
|
|
81
|
+
items.push({
|
|
82
|
+
type: "title",
|
|
83
|
+
children: title
|
|
84
|
+
});
|
|
85
|
+
if (subtitle) {
|
|
86
|
+
items.push({
|
|
87
|
+
type: "description",
|
|
88
|
+
children: subtitle
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
return /* @__PURE__ */React__default.createElement(Area, {
|
|
92
|
+
gap: 6,
|
|
93
|
+
className: titleAreaStyle,
|
|
94
|
+
items
|
|
95
|
+
});
|
|
96
|
+
};
|
|
97
|
+
function getComponent(type, props) {
|
|
98
|
+
switch (type) {
|
|
99
|
+
case "description":
|
|
100
|
+
case "title":
|
|
101
|
+
return /* @__PURE__ */React__default.createElement(Info, __spreadProps(__spreadValues({}, props), {
|
|
102
|
+
type
|
|
103
|
+
}));
|
|
104
|
+
case "iconField":
|
|
105
|
+
return /* @__PURE__ */React__default.createElement(IconField, __spreadValues({}, props));
|
|
106
|
+
case "link":
|
|
107
|
+
const _a = props,
|
|
108
|
+
{
|
|
109
|
+
linkType
|
|
110
|
+
} = _a,
|
|
111
|
+
restLinkProps = __objRest(_a, ["linkType"]);
|
|
112
|
+
const defaultLinkType = restLinkProps.prefixIcon ? "secondary" : "default";
|
|
113
|
+
return /* @__PURE__ */React__default.createElement(Link, __spreadProps(__spreadValues({}, restLinkProps), {
|
|
114
|
+
type: linkType || defaultLinkType
|
|
115
|
+
}));
|
|
116
|
+
case "tag":
|
|
117
|
+
const _b = props,
|
|
118
|
+
{
|
|
119
|
+
color
|
|
120
|
+
} = _b,
|
|
121
|
+
restTagProps = __objRest(_b, ["color"]);
|
|
122
|
+
return /* @__PURE__ */React__default.createElement(Tag, __spreadProps(__spreadValues({}, restTagProps), {
|
|
123
|
+
color: color || "blue"
|
|
124
|
+
}));
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export { Area, TitleArea };
|
package/dist/esm/core/antd.js
CHANGED
|
@@ -36,6 +36,7 @@ import Byte from './Byte/index.js';
|
|
|
36
36
|
import Calendar from './Calendar/index.js';
|
|
37
37
|
import Card from './Card/index.js';
|
|
38
38
|
import Checkbox from './Checkbox/index.js';
|
|
39
|
+
import DeprecatedProgress from './DeprecatedProgress/index.js';
|
|
39
40
|
import Empty from './Empty/index.js';
|
|
40
41
|
import ExpandableContainer from './ExpandableList/ExpandableContainer.js';
|
|
41
42
|
import ExpandableItem from './ExpandableList/ExpandableItem.js';
|
|
@@ -50,7 +51,6 @@ import _message from './message/index.js';
|
|
|
50
51
|
import Modal from './Modal/index.js';
|
|
51
52
|
import Pagination from './Pagination/index.js';
|
|
52
53
|
import Percent from './Percent/index.js';
|
|
53
|
-
import Progress from './Progress/index.js';
|
|
54
54
|
import Radio, { RadioGroup, RadioButton } from './Radio/index.js';
|
|
55
55
|
import SearchInput from './SearchInput/index.js';
|
|
56
56
|
import Second from './Second/index.js';
|
|
@@ -110,7 +110,7 @@ function getAntdKit() {
|
|
|
110
110
|
radioGroup: RadioGroup,
|
|
111
111
|
radioButton: RadioButton,
|
|
112
112
|
tree: Tree,
|
|
113
|
-
|
|
113
|
+
DeprecatedProgress,
|
|
114
114
|
divider: Divider,
|
|
115
115
|
skeleton: Skeleton,
|
|
116
116
|
skeletonButton: Skeleton.Button,
|
package/dist/esm/index.js
CHANGED
|
@@ -2,6 +2,8 @@ export { Cascader } from './core/Cascader/index.js';
|
|
|
2
2
|
export { CascaderDefaultHeader, CascaderDefaultHeaderContainer, CascaderDefaultHeaderSearch, CascaderDefaultOptionLabel, CascaderDropdown, CascaderInputStyle, CascaderLargeDropdown, CascaderNotData, CascaderSmallDropdown, DoubleRowOptionStyleWrapper } from './core/Cascader/cascader.style.js';
|
|
3
3
|
export { CascaderDoubleRowOption, CascaderOptionWithCount, NotDataContent, PresetCascaderHeader, PresetCascaderRender, defaultTagRender } from './core/Cascader/cascader.widget.js';
|
|
4
4
|
export { default as DropdownMenu, RenderMenuItem } from './core/DropdownMenu/index.js';
|
|
5
|
+
export { Progress } from './core/Progress/index.js';
|
|
6
|
+
export { Area, TitleArea } from './core/Progress/progress.widgets.js';
|
|
5
7
|
export { ValidateTriggerType } from './core/TableForm/types.js';
|
|
6
8
|
export { Architecture } from './spec/type.js';
|
|
7
9
|
export { UIKitStore, closeModal, popModal, pushModal } from './store/index.js';
|
|
@@ -33,5 +35,6 @@ export { default as AbsoluteDate } from './coreX/DateRangePicker/AbsoluteDate.js
|
|
|
33
35
|
export { default as Calendar } from './coreX/DateRangePicker/Calendar.js';
|
|
34
36
|
export { default as InputTime } from './coreX/DateRangePicker/InputTime.js';
|
|
35
37
|
export { default as RelativeTime } from './coreX/DateRangePicker/RelativeTime.js';
|
|
38
|
+
export { Animation } from './styles/token/animation.js';
|
|
36
39
|
export { Color } from './styles/token/color.js';
|
|
37
40
|
export { zIndices } from './styles/token/zIndices.js';
|