@agentscope-ai/design 1.0.8 → 1.0.9
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/lib/antd/styles/alert.style.d.ts +2 -10
- package/lib/antd/styles/alert.style.js +11 -12
- package/lib/antd/styles/breadcrumb.style.d.ts +2 -18
- package/lib/antd/styles/breadcrumb.style.js +13 -15
- package/lib/antd/styles/button.style.d.ts +2 -80
- package/lib/antd/styles/button.style.js +63 -47
- package/lib/antd/styles/dropdown.style.d.ts +2 -15
- package/lib/antd/styles/dropdown.style.js +27 -16
- package/lib/antd/styles/floatButton.style.d.ts +2 -8
- package/lib/antd/styles/floatButton.style.js +13 -12
- package/lib/antd/styles/index.style.d.ts +4 -18
- package/lib/antd/styles/index.style.js +52 -53
- package/lib/antd/styles/inputNumber.style.d.ts +2 -18
- package/lib/antd/styles/inputNumber.style.js +23 -17
- package/lib/antd/styles/message.style.d.ts +2 -5
- package/lib/antd/styles/message.style.js +9 -10
- package/lib/antd/styles/notification.style.d.ts +2 -46
- package/lib/antd/styles/notification.style.js +31 -29
- package/lib/antd/styles/popover.style.d.ts +2 -13
- package/lib/antd/styles/popover.style.js +15 -14
- package/lib/antd/styles/radio.style.d.ts +2 -24
- package/lib/antd/styles/radio.style.js +29 -18
- package/lib/antd/styles/segment.style.d.ts +2 -7
- package/lib/antd/styles/segment.style.js +11 -12
- package/lib/antd/styles/select.style.d.ts +2 -31
- package/lib/antd/styles/select.style.js +51 -28
- package/lib/antd/styles/slider.style.d.ts +2 -22
- package/lib/antd/styles/slider.style.js +19 -21
- package/lib/antd/styles/table.style.d.ts +2 -5
- package/lib/antd/styles/table.style.js +7 -10
- package/lib/antd/styles/tooltip.style.d.ts +2 -8
- package/lib/antd/styles/tooltip.style.js +13 -11
- package/lib/antd/themes/bailianTheme.json +1 -1
- package/lib/antd/themes/generateThemeByToken.js +1 -1
- package/lib/components/commonComponents/AlertDialog/demo/demo1.js +13 -79
- package/lib/components/commonComponents/AlertDialog/demo/demo2.js +44 -64
- package/lib/components/commonComponents/AlertDialog/index.d.ts +14 -1
- package/lib/components/commonComponents/AlertDialog/index.js +25 -17
- package/lib/components/commonComponents/AlertDialog/index.style.d.ts +1 -17
- package/lib/components/commonComponents/AlertDialog/index.style.js +16 -30
- package/lib/components/commonComponents/Anchor/demo/demo1.d.ts +0 -4
- package/lib/components/commonComponents/Anchor/demo/demo1.js +3 -4
- package/lib/components/commonComponents/Anchor/demo/demo2.d.ts +0 -4
- package/lib/components/commonComponents/Anchor/demo/demo2.js +3 -5
- package/lib/components/commonComponents/Anchor/index.js +7 -3
- package/lib/components/commonComponents/Anchor/index.style.d.ts +1 -14
- package/lib/components/commonComponents/Anchor/index.style.js +18 -23
- package/lib/components/commonComponents/Avatar/index.js +11 -7
- package/lib/components/commonComponents/Avatar/index.style.d.ts +1 -7
- package/lib/components/commonComponents/Avatar/index.style.js +6 -21
- package/lib/components/commonComponents/Breadcrumb/index.js +9 -6
- package/lib/components/commonComponents/Breadcrumb/index.style.d.ts +1 -117
- package/lib/components/commonComponents/Breadcrumb/index.style.js +32 -61
- package/lib/components/commonComponents/Card/index.js +23 -20
- package/lib/components/commonComponents/Card/index.style.d.ts +1 -71
- package/lib/components/commonComponents/Card/index.style.js +24 -46
- package/lib/components/commonComponents/Checkbox/index.js +13 -10
- package/lib/components/commonComponents/Checkbox/index.style.d.ts +1 -34
- package/lib/components/commonComponents/Checkbox/index.style.js +50 -38
- package/lib/components/commonComponents/CodeBlock/index.js +13 -12
- package/lib/components/commonComponents/CodeBlock/index.style.d.ts +1 -354
- package/lib/components/commonComponents/CodeBlock/index.style.js +26 -72
- package/lib/components/commonComponents/Collapse/index.js +7 -3
- package/lib/components/commonComponents/Collapse/index.style.d.ts +1 -57
- package/lib/components/commonComponents/Collapse/index.style.js +34 -47
- package/lib/components/commonComponents/CollapsePanel/index.d.ts +10 -0
- package/lib/components/commonComponents/CollapsePanel/index.js +56 -44
- package/lib/components/commonComponents/CollapsePanel/index.style.d.ts +1 -287
- package/lib/components/commonComponents/CollapsePanel/index.style.js +42 -97
- package/lib/components/commonComponents/ConfigProvider/index.js +11 -8
- package/lib/components/commonComponents/DatePicker/index.js +45 -39
- package/lib/components/commonComponents/DatePicker/index.style.d.ts +1 -102
- package/lib/components/commonComponents/DatePicker/index.style.js +66 -61
- package/lib/components/commonComponents/Descriptions/index.js +14 -10
- package/lib/components/commonComponents/Descriptions/index.style.d.ts +1 -17
- package/lib/components/commonComponents/Descriptions/index.style.js +32 -29
- package/lib/components/commonComponents/Drawer/Confirm.d.ts +1 -1
- package/lib/components/commonComponents/Drawer/Confirm.js +26 -24
- package/lib/components/commonComponents/Drawer/index.js +15 -11
- package/lib/components/commonComponents/Drawer/index.style.d.ts +1 -84
- package/lib/components/commonComponents/Drawer/index.style.js +44 -54
- package/lib/components/commonComponents/Dropdown/index.d.ts +1 -2
- package/lib/components/commonComponents/Dropdown/index.js +15 -12
- package/lib/components/commonComponents/Dropdown/index.style.d.ts +1 -78
- package/lib/components/commonComponents/Dropdown/index.style.js +48 -40
- package/lib/components/commonComponents/EllipsisTip/index.js +14 -10
- package/lib/components/commonComponents/EllipsisTip/index.style.d.ts +1 -10
- package/lib/components/commonComponents/EllipsisTip/index.style.js +6 -24
- package/lib/components/commonComponents/Empty/index.js +46 -44
- package/lib/components/commonComponents/Empty/index.style.d.ts +1 -113
- package/lib/components/commonComponents/Empty/index.style.js +22 -51
- package/lib/components/commonComponents/FileIcon/index.js +27 -24
- package/lib/components/commonComponents/FileIcon/index.style.d.ts +1 -61
- package/lib/components/commonComponents/FileIcon/index.style.js +20 -42
- package/lib/components/commonComponents/FloatButton/demo/demo1.js +1 -1
- package/lib/components/commonComponents/FloatButton/demo/demo2.js +1 -1
- package/lib/components/commonComponents/Form/index.js +6 -5
- package/lib/components/commonComponents/Form/index.style.d.ts +1 -53
- package/lib/components/commonComponents/Form/index.style.js +26 -38
- package/lib/components/commonComponents/HelpIcon/index.js +25 -20
- package/lib/components/commonComponents/HelpIcon/index.style.d.ts +1 -16
- package/lib/components/commonComponents/HelpIcon/index.style.js +16 -29
- package/lib/components/commonComponents/IconButton/index.js +15 -11
- package/lib/components/commonComponents/IconButton/index.style.d.ts +1 -11
- package/lib/components/commonComponents/IconButton/index.style.js +10 -24
- package/lib/components/commonComponents/IconFont/index.d.ts +1 -2
- package/lib/components/commonComponents/IconFont/index.js +14 -9
- package/lib/components/commonComponents/IconFont/index.style.d.ts +1 -67
- package/lib/components/commonComponents/IconFont/index.style.js +14 -44
- package/lib/components/commonComponents/Image/index.js +8 -5
- package/lib/components/commonComponents/Image/index.style.d.ts +1 -22
- package/lib/components/commonComponents/Image/index.style.js +16 -30
- package/lib/components/commonComponents/Input/index.js +17 -11
- package/lib/components/commonComponents/Input/index.style.d.ts +1 -70
- package/lib/components/commonComponents/Input/index.style.js +46 -42
- package/lib/components/commonComponents/Modal/index.js +19 -16
- package/lib/components/commonComponents/Modal/index.style.d.ts +1 -111
- package/lib/components/commonComponents/Modal/index.style.js +54 -72
- package/lib/components/commonComponents/Pagination/index.d.ts +1 -1
- package/lib/components/commonComponents/Pagination/index.js +36 -31
- package/lib/components/commonComponents/Pagination/index.style.d.ts +1 -49
- package/lib/components/commonComponents/Pagination/index.style.js +26 -42
- package/lib/components/commonComponents/Popconfirm/demo/demo1.js +13 -0
- package/lib/components/commonComponents/Popconfirm/demo/demo2.d.ts +3 -0
- package/lib/components/commonComponents/Popconfirm/demo/demo2.js +49 -0
- package/lib/components/commonComponents/Popconfirm/index.d.ts +9 -2
- package/lib/components/commonComponents/Popconfirm/index.js +50 -8
- package/lib/components/commonComponents/PromptsEditor/index.js +2 -2
- package/lib/components/commonComponents/RadioButton/index.js +9 -10
- package/lib/components/commonComponents/RadioButton/index.style.d.ts +1 -72
- package/lib/components/commonComponents/RadioButton/index.style.js +52 -63
- package/lib/components/commonComponents/Result/index.style.d.ts +1 -3
- package/lib/components/commonComponents/Result/index.style.js +4 -16
- package/lib/components/commonComponents/Select/demo/demo2.js +0 -1
- package/lib/components/commonComponents/SlateEditor/elements/Var.js +11 -8
- package/lib/components/commonComponents/SlateEditor/elements/index.style.d.ts +1 -14
- package/lib/components/commonComponents/SlateEditor/elements/index.style.js +4 -21
- package/lib/components/commonComponents/SlateEditor/index.js +34 -31
- package/lib/components/commonComponents/SlateEditor/index.style.d.ts +1 -28
- package/lib/components/commonComponents/SlateEditor/index.style.js +4 -36
- package/lib/components/commonComponents/Slider/{slider.input.d.ts → Input/index.d.ts} +1 -1
- package/lib/components/commonComponents/Slider/Input/index.js +91 -0
- package/lib/components/commonComponents/Slider/Input/index.style.d.ts +1 -0
- package/lib/components/commonComponents/Slider/Input/index.style.js +22 -0
- package/lib/components/commonComponents/Slider/demo/demo4.d.ts +3 -0
- package/lib/components/commonComponents/Slider/demo/demo4.js +33 -0
- package/lib/components/commonComponents/Slider/demo/demo5.d.ts +3 -0
- package/lib/components/commonComponents/Slider/demo/demo5.js +34 -0
- package/lib/components/commonComponents/Slider/index.d.ts +2 -2
- package/lib/components/commonComponents/Slider/index.js +11 -7
- package/lib/components/commonComponents/Slider/index.style.d.ts +1 -7
- package/lib/components/commonComponents/Slider/index.style.js +10 -22
- package/lib/components/commonComponents/SliderSelector/index.js +38 -35
- package/lib/components/commonComponents/SliderSelector/index.style.d.ts +1 -38
- package/lib/components/commonComponents/SliderSelector/index.style.js +20 -37
- package/lib/components/commonComponents/Spinner/index.d.ts +4 -4
- package/lib/components/commonComponents/Spinner/index.js +28 -24
- package/lib/components/commonComponents/Spinner/index.style.d.ts +1 -79
- package/lib/components/commonComponents/Spinner/index.style.js +30 -61
- package/lib/components/commonComponents/Statistic/index.js +7 -3
- package/lib/components/commonComponents/Statistic/index.style.d.ts +1 -15
- package/lib/components/commonComponents/Statistic/index.style.js +14 -26
- package/lib/components/commonComponents/Steps/index.js +10 -6
- package/lib/components/commonComponents/Steps/index.style.d.ts +1 -162
- package/lib/components/commonComponents/Steps/index.style.js +68 -78
- package/lib/components/commonComponents/Switch/index.js +13 -10
- package/lib/components/commonComponents/Switch/index.style.d.ts +1 -25
- package/lib/components/commonComponents/Switch/index.style.js +22 -33
- package/lib/components/commonComponents/Table/index.js +10 -6
- package/lib/components/commonComponents/Table/index.style.d.ts +1 -52
- package/lib/components/commonComponents/Table/index.style.js +18 -32
- package/lib/components/commonComponents/Tabs/index.js +35 -29
- package/lib/components/commonComponents/Tabs/index.style.d.ts +1 -55
- package/lib/components/commonComponents/Tabs/index.style.js +38 -44
- package/lib/components/commonComponents/Tag/index.js +13 -9
- package/lib/components/commonComponents/Tag/index.style.d.ts +1 -56
- package/lib/components/commonComponents/Tag/index.style.js +54 -58
- package/lib/components/commonComponents/TimePicker/index.js +36 -30
- package/lib/components/commonComponents/TimePicker/index.style.d.ts +1 -71
- package/lib/components/commonComponents/TimePicker/index.style.js +54 -50
- package/lib/components/commonComponents/Tooltip/index.js +14 -10
- package/lib/components/commonComponents/Tooltip/index.style.d.ts +1 -24
- package/lib/components/commonComponents/Tooltip/index.style.js +26 -32
- package/lib/components/commonComponents/Upload/index.js +15 -9
- package/lib/components/commonComponents/Upload/index.style.d.ts +1 -125
- package/lib/components/commonComponents/Upload/index.style.js +80 -90
- package/lib/index.d.ts +3 -3
- package/lib/index.js +2 -2
- package/lib/libs/env/index.js +1 -1
- package/lib/libs/newCreateStyle/index.d.ts +7 -0
- package/lib/libs/newCreateStyle/index.js +26 -0
- package/llms/index.llms.txt +43 -43
- package/package.json +3 -3
- package/lib/components/commonComponents/Popconfirm/demo/demo.js +0 -155
- package/lib/components/commonComponents/Slider/slider.input.js +0 -76
- package/lib/components/commonComponents/spark.style.d.ts +0 -45
- package/lib/components/commonComponents/spark.style.js +0 -62
- /package/lib/components/commonComponents/Popconfirm/demo/{demo.d.ts → demo1.d.ts} +0 -0
|
@@ -2,8 +2,10 @@ import { getCommonConfig } from "../../../config";
|
|
|
2
2
|
import { Typography } from 'antd';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import React from 'react';
|
|
5
|
-
import
|
|
5
|
+
import { useStyle } from "./index.style";
|
|
6
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
8
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
9
|
/** 超过展示范围时展示tooltip */
|
|
8
10
|
export default function EllipsisTip(props) {
|
|
9
11
|
var _props$className = props.className,
|
|
@@ -17,14 +19,16 @@ export default function EllipsisTip(props) {
|
|
|
17
19
|
var _tooltip = tooltip || children;
|
|
18
20
|
var _getCommonConfig = getCommonConfig(),
|
|
19
21
|
sparkPrefix = _getCommonConfig.sparkPrefix;
|
|
20
|
-
|
|
21
|
-
return /*#__PURE__*/
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
22
|
+
var Style = useStyle();
|
|
23
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
24
|
+
children: [/*#__PURE__*/_jsx(Style, {}), /*#__PURE__*/_jsx(Typography.Paragraph, {
|
|
25
|
+
className: classNames("".concat(sparkPrefix, "-ellipsis-tip"), className),
|
|
26
|
+
style: style,
|
|
27
|
+
ellipsis: {
|
|
28
|
+
rows: rows,
|
|
29
|
+
tooltip: _tooltip
|
|
30
|
+
},
|
|
31
|
+
children: children
|
|
32
|
+
})]
|
|
29
33
|
});
|
|
30
34
|
}
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
[x: string]: {
|
|
3
|
-
marginBottom: number;
|
|
4
|
-
color: string;
|
|
5
|
-
lineHeight: number;
|
|
6
|
-
fontSize: string;
|
|
7
|
-
};
|
|
8
|
-
};
|
|
9
|
-
declare const useIndexStyle: (props?: {}) => import("../../../config").CommonConfig;
|
|
10
|
-
export default useIndexStyle;
|
|
1
|
+
export declare const useStyle: () => () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,24 +1,6 @@
|
|
|
1
|
-
var
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
|
-
import createStyle from "../../../libs/createStyle";
|
|
9
|
-
export function getIndexStyleData(params) {
|
|
10
|
-
var sparkPrefix = params.sparkPrefix;
|
|
11
|
-
return _defineProperty({}, "div.".concat(sparkPrefix, "-ellipsis-tip"), {
|
|
12
|
-
marginBottom: 0,
|
|
13
|
-
color: 'unset',
|
|
14
|
-
lineHeight: 1.5,
|
|
15
|
-
fontSize: 'unset'
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
var useIndexStyle = createStyle(function (_ref2) {
|
|
19
|
-
var css = _ref2.css,
|
|
20
|
-
params = _objectWithoutProperties(_ref2, _excluded);
|
|
21
|
-
var result = css(getIndexStyleData(params));
|
|
22
|
-
return result;
|
|
23
|
-
});
|
|
24
|
-
export default useIndexStyle;
|
|
1
|
+
var _templateObject;
|
|
2
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
3
|
+
import createGlobalStyle from "../../../libs/newCreateStyle";
|
|
4
|
+
export var useStyle = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\ndiv.", "-ellipsis-tip {\n margin-bottom: 0;\n color: unset;\n line-height: 1.5;\n font-size: unset;\n}\n"])), function (p) {
|
|
5
|
+
return p.sparkPrefix;
|
|
6
|
+
});
|
|
@@ -6,13 +6,13 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
6
6
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
7
|
import { getCommonConfig } from "../../../config";
|
|
8
8
|
import { Flex } from 'antd';
|
|
9
|
+
import { useMemo } from 'react';
|
|
9
10
|
import Button from "../Button";
|
|
11
|
+
import { useStyle } from "./index.style";
|
|
10
12
|
import Illustrate from "./svg/Illustrate";
|
|
11
|
-
import useIndexStyle from "./index.style";
|
|
12
|
-
import { useMemo } from 'react';
|
|
13
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
14
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
|
-
;
|
|
15
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
16
16
|
var TEXTURE_MAP = {
|
|
17
17
|
url: 'https://gw.alicdn.com/imgextra/i3/O1CN01r3f3Si24iFTRz9Bho_!!6000000007424-55-tps-320-320.svg',
|
|
18
18
|
tokenMap: {
|
|
@@ -221,50 +221,52 @@ var Empty = function Empty(props) {
|
|
|
221
221
|
});
|
|
222
222
|
return tokenMap;
|
|
223
223
|
}, [isDarkMode]);
|
|
224
|
-
|
|
224
|
+
var Style = useStyle();
|
|
225
225
|
var parsedSize = typeof size === 'string' ? parseFloat(size.replace(/px/i, '')) : size !== null && size !== void 0 ? size : 0;
|
|
226
|
-
return /*#__PURE__*/_jsxs(
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
marginTop: '52.5%'
|
|
247
|
-
},
|
|
248
|
-
children: [title && /*#__PURE__*/_jsx("div", {
|
|
249
|
-
className: "".concat(sparkPrefix, "-empty-title"),
|
|
250
|
-
style: {
|
|
251
|
-
marginBottom: description ? 0.025 * parsedSize : 0
|
|
252
|
-
},
|
|
253
|
-
children: title
|
|
254
|
-
}), description && /*#__PURE__*/_jsx("div", {
|
|
255
|
-
className: "".concat(sparkPrefix, "-empty-description"),
|
|
256
|
-
children: description
|
|
257
|
-
}), !!okText && /*#__PURE__*/_jsx("div", {
|
|
226
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
227
|
+
children: [/*#__PURE__*/_jsx(Style, {}), /*#__PURE__*/_jsxs("div", {
|
|
228
|
+
className: "".concat(sparkPrefix, "-empty ").concat(props.className || ''),
|
|
229
|
+
style: _objectSpread(_objectSpread({}, imageStyle), {}, {
|
|
230
|
+
width: size,
|
|
231
|
+
height: size
|
|
232
|
+
}),
|
|
233
|
+
children: [texture && /*#__PURE__*/_jsx(Illustrate, {
|
|
234
|
+
size: size,
|
|
235
|
+
svgUrl: TEXTURE_MAP.url,
|
|
236
|
+
tokenMap: textureTokenMap,
|
|
237
|
+
className: "".concat(sparkPrefix, "-empty-texture")
|
|
238
|
+
}), /*#__PURE__*/_jsx(Illustrate, {
|
|
239
|
+
size: size,
|
|
240
|
+
svgUrl: image,
|
|
241
|
+
tokenMap: tokenMap,
|
|
242
|
+
className: "".concat(sparkPrefix, "-empty-image")
|
|
243
|
+
}), /*#__PURE__*/_jsxs(Flex, {
|
|
244
|
+
vertical: true,
|
|
245
|
+
align: "center",
|
|
258
246
|
style: {
|
|
259
|
-
marginTop:
|
|
247
|
+
marginTop: '52.5%'
|
|
260
248
|
},
|
|
261
|
-
children: /*#__PURE__*/_jsx(
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
249
|
+
children: [title && /*#__PURE__*/_jsx("div", {
|
|
250
|
+
className: "".concat(sparkPrefix, "-empty-title"),
|
|
251
|
+
style: {
|
|
252
|
+
marginBottom: description ? 0.025 * parsedSize : 0
|
|
253
|
+
},
|
|
254
|
+
children: title
|
|
255
|
+
}), description && /*#__PURE__*/_jsx("div", {
|
|
256
|
+
className: "".concat(sparkPrefix, "-empty-description"),
|
|
257
|
+
children: description
|
|
258
|
+
}), !!okText && /*#__PURE__*/_jsx("div", {
|
|
259
|
+
style: {
|
|
260
|
+
marginTop: 0.05 * parsedSize
|
|
261
|
+
},
|
|
262
|
+
children: /*#__PURE__*/_jsx(Button, _objectSpread(_objectSpread({
|
|
263
|
+
type: okType,
|
|
264
|
+
onClick: onOk
|
|
265
|
+
}, okButtonProps), {}, {
|
|
266
|
+
children: okText
|
|
267
|
+
}))
|
|
268
|
+
}), !!children && children]
|
|
269
|
+
})]
|
|
268
270
|
})]
|
|
269
271
|
});
|
|
270
272
|
};
|
|
@@ -1,113 +1 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
[x: string]: {
|
|
3
|
-
display: string;
|
|
4
|
-
flexDirection: string;
|
|
5
|
-
alignItems: string;
|
|
6
|
-
overflow: string;
|
|
7
|
-
position: string;
|
|
8
|
-
top?: undefined;
|
|
9
|
-
left?: undefined;
|
|
10
|
-
pointerEvents?: undefined;
|
|
11
|
-
justifyContent?: undefined;
|
|
12
|
-
marginTop?: undefined;
|
|
13
|
-
width?: undefined;
|
|
14
|
-
height?: undefined;
|
|
15
|
-
fontSize?: undefined;
|
|
16
|
-
fontWeight?: undefined;
|
|
17
|
-
lineHeight?: undefined;
|
|
18
|
-
color?: undefined;
|
|
19
|
-
textAlign?: undefined;
|
|
20
|
-
} | {
|
|
21
|
-
position: string;
|
|
22
|
-
top: number;
|
|
23
|
-
left: number;
|
|
24
|
-
pointerEvents: string;
|
|
25
|
-
display: string;
|
|
26
|
-
justifyContent: string;
|
|
27
|
-
flexDirection?: undefined;
|
|
28
|
-
alignItems?: undefined;
|
|
29
|
-
overflow?: undefined;
|
|
30
|
-
marginTop?: undefined;
|
|
31
|
-
width?: undefined;
|
|
32
|
-
height?: undefined;
|
|
33
|
-
fontSize?: undefined;
|
|
34
|
-
fontWeight?: undefined;
|
|
35
|
-
lineHeight?: undefined;
|
|
36
|
-
color?: undefined;
|
|
37
|
-
textAlign?: undefined;
|
|
38
|
-
} | {
|
|
39
|
-
marginTop: string;
|
|
40
|
-
width: string;
|
|
41
|
-
height: string;
|
|
42
|
-
display?: undefined;
|
|
43
|
-
flexDirection?: undefined;
|
|
44
|
-
alignItems?: undefined;
|
|
45
|
-
overflow?: undefined;
|
|
46
|
-
position?: undefined;
|
|
47
|
-
top?: undefined;
|
|
48
|
-
left?: undefined;
|
|
49
|
-
pointerEvents?: undefined;
|
|
50
|
-
justifyContent?: undefined;
|
|
51
|
-
fontSize?: undefined;
|
|
52
|
-
fontWeight?: undefined;
|
|
53
|
-
lineHeight?: undefined;
|
|
54
|
-
color?: undefined;
|
|
55
|
-
textAlign?: undefined;
|
|
56
|
-
} | {
|
|
57
|
-
width: string;
|
|
58
|
-
height: string;
|
|
59
|
-
display?: undefined;
|
|
60
|
-
flexDirection?: undefined;
|
|
61
|
-
alignItems?: undefined;
|
|
62
|
-
overflow?: undefined;
|
|
63
|
-
position?: undefined;
|
|
64
|
-
top?: undefined;
|
|
65
|
-
left?: undefined;
|
|
66
|
-
pointerEvents?: undefined;
|
|
67
|
-
justifyContent?: undefined;
|
|
68
|
-
marginTop?: undefined;
|
|
69
|
-
fontSize?: undefined;
|
|
70
|
-
fontWeight?: undefined;
|
|
71
|
-
lineHeight?: undefined;
|
|
72
|
-
color?: undefined;
|
|
73
|
-
textAlign?: undefined;
|
|
74
|
-
} | {
|
|
75
|
-
fontSize: string;
|
|
76
|
-
fontWeight: number;
|
|
77
|
-
lineHeight: string;
|
|
78
|
-
color: string;
|
|
79
|
-
display?: undefined;
|
|
80
|
-
flexDirection?: undefined;
|
|
81
|
-
alignItems?: undefined;
|
|
82
|
-
overflow?: undefined;
|
|
83
|
-
position?: undefined;
|
|
84
|
-
top?: undefined;
|
|
85
|
-
left?: undefined;
|
|
86
|
-
pointerEvents?: undefined;
|
|
87
|
-
justifyContent?: undefined;
|
|
88
|
-
marginTop?: undefined;
|
|
89
|
-
width?: undefined;
|
|
90
|
-
height?: undefined;
|
|
91
|
-
textAlign?: undefined;
|
|
92
|
-
} | {
|
|
93
|
-
fontSize: string;
|
|
94
|
-
lineHeight: string;
|
|
95
|
-
color: string;
|
|
96
|
-
textAlign: string;
|
|
97
|
-
width: string;
|
|
98
|
-
display?: undefined;
|
|
99
|
-
flexDirection?: undefined;
|
|
100
|
-
alignItems?: undefined;
|
|
101
|
-
overflow?: undefined;
|
|
102
|
-
position?: undefined;
|
|
103
|
-
top?: undefined;
|
|
104
|
-
left?: undefined;
|
|
105
|
-
pointerEvents?: undefined;
|
|
106
|
-
justifyContent?: undefined;
|
|
107
|
-
marginTop?: undefined;
|
|
108
|
-
height?: undefined;
|
|
109
|
-
fontWeight?: undefined;
|
|
110
|
-
};
|
|
111
|
-
};
|
|
112
|
-
declare const useIndexStyle: (props?: {}) => import("../../../config").CommonConfig;
|
|
113
|
-
export default useIndexStyle;
|
|
1
|
+
export declare const useStyle: () => () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,51 +1,22 @@
|
|
|
1
|
-
var
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
function
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
display: 'flex',
|
|
24
|
-
justifyContent: 'center'
|
|
25
|
-
}), ".".concat(sparkPrefix, "-empty-image svg"), {
|
|
26
|
-
marginTop: '16.875%',
|
|
27
|
-
width: '108px',
|
|
28
|
-
height: '108px'
|
|
29
|
-
}), ".".concat(sparkPrefix, "-empty-texture svg"), {
|
|
30
|
-
width: '320px',
|
|
31
|
-
height: '320px'
|
|
32
|
-
}), ".".concat(sparkPrefix, "-empty-title"), {
|
|
33
|
-
fontSize: '16px',
|
|
34
|
-
fontWeight: 500,
|
|
35
|
-
lineHeight: '24px',
|
|
36
|
-
color: "var(--".concat(antPrefix, "-color-text)")
|
|
37
|
-
}), ".".concat(sparkPrefix, "-empty-description"), {
|
|
38
|
-
fontSize: '12px',
|
|
39
|
-
lineHeight: '20px',
|
|
40
|
-
color: "var(--".concat(antPrefix, "-color-text-secondary)"),
|
|
41
|
-
textAlign: 'center',
|
|
42
|
-
width: '100%'
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
var useIndexStyle = createStyle(function (_ref2) {
|
|
46
|
-
var css = _ref2.css,
|
|
47
|
-
params = _objectWithoutProperties(_ref2, _excluded);
|
|
48
|
-
var result = css(getIndexStyleData(params));
|
|
49
|
-
return result;
|
|
50
|
-
});
|
|
51
|
-
export default useIndexStyle;
|
|
1
|
+
var _templateObject;
|
|
2
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
3
|
+
import createGlobalStyle from "../../../libs/newCreateStyle";
|
|
4
|
+
export var useStyle = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n.", "-empty {\n display: flex;\n flex-direction: column;\n align-items: center;\n overflow: hidden;\n position: relative;\n}\n\n.", "-empty-texture,\n.", "-empty-image {\n position: absolute;\n top: 0;\n left: 0;\n pointer-events: none;\n display: flex;\n justify-content: center;\n}\n\n.", "-empty-image svg {\n margin-top: 16.875%;\n width: 108px;\n height: 108px;\n}\n\n.", "-empty-texture svg {\n width: 320px;\n height: 320px;\n}\n\n.", "-empty-title {\n font-size: 16px;\n font-weight: 500;\n line-height: 24px;\n color: var(--", "-color-text);\n}\n\n.", "-empty-description {\n font-size: 12px;\n line-height: 20px;\n color: var(--", "-color-text-secondary);\n text-align: center;\n width: 100%;\n}\n"])), function (p) {
|
|
5
|
+
return p.sparkPrefix;
|
|
6
|
+
}, function (p) {
|
|
7
|
+
return p.sparkPrefix;
|
|
8
|
+
}, function (p) {
|
|
9
|
+
return p.sparkPrefix;
|
|
10
|
+
}, function (p) {
|
|
11
|
+
return p.sparkPrefix;
|
|
12
|
+
}, function (p) {
|
|
13
|
+
return p.sparkPrefix;
|
|
14
|
+
}, function (p) {
|
|
15
|
+
return p.sparkPrefix;
|
|
16
|
+
}, function (p) {
|
|
17
|
+
return p.antPrefix;
|
|
18
|
+
}, function (p) {
|
|
19
|
+
return p.sparkPrefix;
|
|
20
|
+
}, function (p) {
|
|
21
|
+
return p.antPrefix;
|
|
22
|
+
});
|
|
@@ -18,9 +18,10 @@ import ppt from "./icons/ppt.svg";
|
|
|
18
18
|
import txt from "./icons/txt.svg";
|
|
19
19
|
import web from "./icons/web.svg";
|
|
20
20
|
import word from "./icons/word.svg";
|
|
21
|
-
import
|
|
21
|
+
import { useStyle } from "./index.style";
|
|
22
22
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
23
23
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
24
25
|
var maps = {
|
|
25
26
|
common: common,
|
|
26
27
|
epub: epub,
|
|
@@ -48,34 +49,36 @@ function getSize(size) {
|
|
|
48
49
|
export function FileCard(props) {
|
|
49
50
|
var commonConfig = getCommonConfig();
|
|
50
51
|
var sparkPrefix = commonConfig.sparkPrefix;
|
|
51
|
-
|
|
52
|
+
var Style = useStyle();
|
|
52
53
|
var _props$width = props.width,
|
|
53
54
|
width = _props$width === void 0 ? 140 : _props$width,
|
|
54
55
|
_props$iconSize = props.iconSize,
|
|
55
56
|
iconSize = _props$iconSize === void 0 ? 32 : _props$iconSize;
|
|
56
|
-
return /*#__PURE__*/_jsxs(
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
width: width
|
|
60
|
-
},
|
|
61
|
-
children: [/*#__PURE__*/_jsx(FileIcon, {
|
|
62
|
-
type: props.type,
|
|
63
|
-
size: iconSize,
|
|
64
|
-
src: props.src
|
|
65
|
-
}), /*#__PURE__*/_jsxs("div", {
|
|
66
|
-
className: "".concat(sparkPrefix, "-file-card-info"),
|
|
67
|
-
children: [/*#__PURE__*/_jsx("div", {
|
|
68
|
-
className: "".concat(sparkPrefix, "-file-card-name"),
|
|
69
|
-
children: props.name
|
|
70
|
-
}), (props.size || props.desc) && /*#__PURE__*/_jsx("div", {
|
|
71
|
-
className: "".concat(sparkPrefix, "-file-card-size"),
|
|
72
|
-
children: props.desc || getSize(props.size)
|
|
73
|
-
})]
|
|
74
|
-
}), /*#__PURE__*/_jsx("div", {
|
|
57
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
58
|
+
children: [/*#__PURE__*/_jsx(Style, {}), /*#__PURE__*/_jsxs("div", {
|
|
59
|
+
className: "".concat(sparkPrefix, "-file-card"),
|
|
75
60
|
style: {
|
|
76
|
-
|
|
77
|
-
}
|
|
78
|
-
|
|
61
|
+
width: width
|
|
62
|
+
},
|
|
63
|
+
children: [/*#__PURE__*/_jsx(FileIcon, {
|
|
64
|
+
type: props.type,
|
|
65
|
+
size: iconSize,
|
|
66
|
+
src: props.src
|
|
67
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
68
|
+
className: "".concat(sparkPrefix, "-file-card-info"),
|
|
69
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
70
|
+
className: "".concat(sparkPrefix, "-file-card-name"),
|
|
71
|
+
children: props.name
|
|
72
|
+
}), (props.size || props.desc) && /*#__PURE__*/_jsx("div", {
|
|
73
|
+
className: "".concat(sparkPrefix, "-file-card-size"),
|
|
74
|
+
children: props.desc || getSize(props.size)
|
|
75
|
+
})]
|
|
76
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
77
|
+
style: {
|
|
78
|
+
flex: 1
|
|
79
|
+
}
|
|
80
|
+
}), props.children]
|
|
81
|
+
})]
|
|
79
82
|
});
|
|
80
83
|
}
|
|
81
84
|
export default function FileIcon(props) {
|
|
@@ -1,61 +1 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
[x: string]: {
|
|
3
|
-
display: string;
|
|
4
|
-
alignItems: string;
|
|
5
|
-
gap: number;
|
|
6
|
-
padding: number;
|
|
7
|
-
borderRadius: number;
|
|
8
|
-
background: string;
|
|
9
|
-
border: string;
|
|
10
|
-
fontSize?: undefined;
|
|
11
|
-
color?: undefined;
|
|
12
|
-
overflow?: undefined;
|
|
13
|
-
textOverflow?: undefined;
|
|
14
|
-
whiteSpace?: undefined;
|
|
15
|
-
maxWidth?: undefined;
|
|
16
|
-
} | {
|
|
17
|
-
fontSize: number;
|
|
18
|
-
color: string;
|
|
19
|
-
display?: undefined;
|
|
20
|
-
alignItems?: undefined;
|
|
21
|
-
gap?: undefined;
|
|
22
|
-
padding?: undefined;
|
|
23
|
-
borderRadius?: undefined;
|
|
24
|
-
background?: undefined;
|
|
25
|
-
border?: undefined;
|
|
26
|
-
overflow?: undefined;
|
|
27
|
-
textOverflow?: undefined;
|
|
28
|
-
whiteSpace?: undefined;
|
|
29
|
-
maxWidth?: undefined;
|
|
30
|
-
} | {
|
|
31
|
-
overflow: string;
|
|
32
|
-
textOverflow: string;
|
|
33
|
-
whiteSpace: string;
|
|
34
|
-
maxWidth: string;
|
|
35
|
-
display?: undefined;
|
|
36
|
-
alignItems?: undefined;
|
|
37
|
-
gap?: undefined;
|
|
38
|
-
padding?: undefined;
|
|
39
|
-
borderRadius?: undefined;
|
|
40
|
-
background?: undefined;
|
|
41
|
-
border?: undefined;
|
|
42
|
-
fontSize?: undefined;
|
|
43
|
-
color?: undefined;
|
|
44
|
-
} | {
|
|
45
|
-
overflow: string;
|
|
46
|
-
textOverflow: string;
|
|
47
|
-
whiteSpace: string;
|
|
48
|
-
maxWidth: string;
|
|
49
|
-
color: string;
|
|
50
|
-
display?: undefined;
|
|
51
|
-
alignItems?: undefined;
|
|
52
|
-
gap?: undefined;
|
|
53
|
-
padding?: undefined;
|
|
54
|
-
borderRadius?: undefined;
|
|
55
|
-
background?: undefined;
|
|
56
|
-
border?: undefined;
|
|
57
|
-
fontSize?: undefined;
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
|
-
declare const useIndexStyle: (props?: {}) => import("../../../config").CommonConfig;
|
|
61
|
-
export default useIndexStyle;
|
|
1
|
+
export declare const useStyle: () => () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,42 +1,20 @@
|
|
|
1
|
-
var
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
function
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
fontSize: 12,
|
|
22
|
-
color: "var(--".concat(antPrefix, "-color-text)")
|
|
23
|
-
}), ".".concat(sparkPrefix, "-file-card-name"), {
|
|
24
|
-
overflow: 'hidden',
|
|
25
|
-
textOverflow: 'ellipsis',
|
|
26
|
-
whiteSpace: 'nowrap',
|
|
27
|
-
maxWidth: '100%'
|
|
28
|
-
}), ".".concat(sparkPrefix, "-file-card-size"), {
|
|
29
|
-
overflow: 'hidden',
|
|
30
|
-
textOverflow: 'ellipsis',
|
|
31
|
-
whiteSpace: 'nowrap',
|
|
32
|
-
maxWidth: '100%',
|
|
33
|
-
color: "var(--".concat(antPrefix, "-color-text-quaternary)")
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
var useIndexStyle = createStyle(function (_ref2) {
|
|
37
|
-
var css = _ref2.css,
|
|
38
|
-
params = _objectWithoutProperties(_ref2, _excluded);
|
|
39
|
-
var result = css(getIndexStyleData(params));
|
|
40
|
-
return result;
|
|
41
|
-
});
|
|
42
|
-
export default useIndexStyle;
|
|
1
|
+
var _templateObject;
|
|
2
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
3
|
+
import createGlobalStyle from "../../../libs/newCreateStyle";
|
|
4
|
+
export var useStyle = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n.", "-file-card {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 8px;\n border-radius: 8px;\n background: var(--", "-color-bg-container);\n border: 1px solid var(--", "-color-border-secondary);\n}\n\n.", "-file-card-info {\n font-size: 12px;\n color: var(--", "-color-text);\n}\n\n.", "-file-card-name {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n max-width: 100%;\n}\n\n.", "-file-card-size {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n max-width: 100%;\n color: var(--", "-color-text-quaternary);\n}\n"])), function (p) {
|
|
5
|
+
return p.sparkPrefix;
|
|
6
|
+
}, function (p) {
|
|
7
|
+
return p.antPrefix;
|
|
8
|
+
}, function (p) {
|
|
9
|
+
return p.antPrefix;
|
|
10
|
+
}, function (p) {
|
|
11
|
+
return p.sparkPrefix;
|
|
12
|
+
}, function (p) {
|
|
13
|
+
return p.antPrefix;
|
|
14
|
+
}, function (p) {
|
|
15
|
+
return p.sparkPrefix;
|
|
16
|
+
}, function (p) {
|
|
17
|
+
return p.sparkPrefix;
|
|
18
|
+
}, function (p) {
|
|
19
|
+
return p.antPrefix;
|
|
20
|
+
});
|
|
@@ -13,7 +13,7 @@ import { Form } from 'antd';
|
|
|
13
13
|
import FormItem from 'antd/es/form/FormItem';
|
|
14
14
|
import classnames from 'classnames';
|
|
15
15
|
import React, { forwardRef, useImperativeHandle, useRef } from 'react';
|
|
16
|
-
import
|
|
16
|
+
import { useStyle } from "./index.style";
|
|
17
17
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
18
18
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
19
19
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -23,11 +23,12 @@ var InternalForm = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
23
23
|
var formRef = useRef(null);
|
|
24
24
|
var _getCommonConfig = getCommonConfig(),
|
|
25
25
|
sparkPrefix = _getCommonConfig.sparkPrefix;
|
|
26
|
-
|
|
26
|
+
var Style = useStyle();
|
|
27
27
|
useImperativeHandle(ref, function () {
|
|
28
28
|
return formRef.current;
|
|
29
29
|
});
|
|
30
|
-
return (
|
|
30
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
31
|
+
children: [/*#__PURE__*/_jsx(Style, {}),
|
|
31
32
|
/*#__PURE__*/
|
|
32
33
|
//@ts-ignore
|
|
33
34
|
_jsx(Form, _objectSpread(_objectSpread({}, props), {}, {
|
|
@@ -41,8 +42,8 @@ var InternalForm = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
41
42
|
})]
|
|
42
43
|
});
|
|
43
44
|
}
|
|
44
|
-
}))
|
|
45
|
-
);
|
|
45
|
+
}))]
|
|
46
|
+
});
|
|
46
47
|
});
|
|
47
48
|
var InternalFormItem = function InternalFormItem(props) {
|
|
48
49
|
var tooltip = props.tooltip,
|