@agentscope-ai/design 1.0.8 → 1.0.10
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/generateThemeByToken.js +8 -2
- 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/Button/index.d.ts +1 -1
- package/lib/components/commonComponents/Button/index.js +7 -7
- 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 +15 -13
- 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 +20 -14
- 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 +18 -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 +96 -36
- 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/demo/basic.js +5 -4
- package/lib/components/commonComponents/PromptsEditor/index.d.ts +8 -2
- package/lib/components/commonComponents/PromptsEditor/index.js +17 -11
- 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 +93 -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 +14 -11
- 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/demo/demo1.js +1 -9
- package/lib/components/commonComponents/Table/demo/demo2.js +1 -9
- package/lib/components/commonComponents/Table/demo/demo3.js +1 -9
- package/lib/components/commonComponents/Table/demo/demo4.js +1 -9
- package/lib/components/commonComponents/Table/index.d.ts +1 -1
- package/lib/components/commonComponents/Table/index.js +11 -7
- package/lib/components/commonComponents/Table/index.style.d.ts +1 -52
- package/lib/components/commonComponents/Table/index.style.js +34 -32
- package/lib/components/commonComponents/Tabs/index.js +37 -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/components/commonComponents/Video/Control.d.ts +19 -0
- package/lib/components/commonComponents/Video/Control.js +104 -0
- package/lib/components/commonComponents/Video/demo/demo1.d.ts +2 -0
- package/lib/components/commonComponents/Video/demo/demo1.js +12 -0
- package/lib/components/commonComponents/Video/index.d.ts +18 -0
- package/lib/components/commonComponents/Video/index.js +222 -0
- package/lib/components/commonComponents/Video/index.style.d.ts +1 -0
- package/lib/components/commonComponents/Video/index.style.js +40 -0
- package/lib/i18n/strings/en-US.json +3 -1
- package/lib/i18n/strings/zh-CN.json +3 -1
- package/lib/index.d.ts +5 -4
- package/lib/index.js +3 -2
- package/lib/libs/createStyle/index.d.ts +7 -1
- package/lib/libs/createStyle/index.js +24 -72
- package/lib/libs/env/index.js +1 -1
- package/lib/libs/generateCssVars/index.js +1 -1
- 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/llms/all.llms.txt +0 -4235
- package/llms/components/commonComponents/Alert/index.zh-CN.llms.txt +0 -74
- package/llms/components/commonComponents/Anchor/index.zh-CN.llms.txt +0 -71
- package/llms/components/commonComponents/Avatar/index.zh-CN.llms.txt +0 -61
- package/llms/components/commonComponents/Breadcrumb/index.zh-CN.llms.txt +0 -89
- package/llms/components/commonComponents/Button/index.zh-CN.llms.txt +0 -99
- package/llms/components/commonComponents/Card/index.zh-CN.llms.txt +0 -79
- package/llms/components/commonComponents/Checkbox/index.zh-CN.llms.txt +0 -88
- package/llms/components/commonComponents/CodeBlock/index.zh-CN.llms.txt +0 -34
- package/llms/components/commonComponents/Collapse/index.zh-CN.llms.txt +0 -76
- package/llms/components/commonComponents/CollapsePanel/index.zh-CN.llms.txt +0 -75
- package/llms/components/commonComponents/DatePicker/index.zh-CN.llms.txt +0 -227
- package/llms/components/commonComponents/Descriptions/index.zh-CN.llms.txt +0 -60
- package/llms/components/commonComponents/Drawer/index.zh-CN.llms.txt +0 -87
- package/llms/components/commonComponents/Dropdown/index.zh-CN.llms.txt +0 -87
- package/llms/components/commonComponents/Empty/index.zh-CN.llms.txt +0 -100
- package/llms/components/commonComponents/FloatButton/index.zh-CN.llms.txt +0 -70
- package/llms/components/commonComponents/Form/index.zh-CN.llms.txt +0 -383
- package/llms/components/commonComponents/IconButton/index.zh-CN.llms.txt +0 -68
- package/llms/components/commonComponents/Image/index.zh-CN.llms.txt +0 -118
- package/llms/components/commonComponents/Input/index.zh-CN.llms.txt +0 -168
- package/llms/components/commonComponents/InputNumber/index.zh-CN.llms.txt +0 -66
- package/llms/components/commonComponents/Message/index.zh-CN.llms.txt +0 -114
- package/llms/components/commonComponents/Modal/index.zh-CN.llms.txt +0 -154
- package/llms/components/commonComponents/Notification/index.zh-CN.llms.txt +0 -118
- package/llms/components/commonComponents/Pagination/index.zh-CN.llms.txt +0 -62
- package/llms/components/commonComponents/Popover/index.zh-CN.llms.txt +0 -56
- package/llms/components/commonComponents/Progress/index.zh-CN.llms.txt +0 -64
- package/llms/components/commonComponents/Radio/index.zh-CN.llms.txt +0 -75
- package/llms/components/commonComponents/RadioButton/index.zh-CN.llms.txt +0 -94
- package/llms/components/commonComponents/Result/index.zh-CN.llms.txt +0 -63
- package/llms/components/commonComponents/Select/index.zh-CN.llms.txt +0 -120
- package/llms/components/commonComponents/Skeleton/index.zh-CN.llms.txt +0 -71
- package/llms/components/commonComponents/Slider/index.zh-CN.llms.txt +0 -83
- package/llms/components/commonComponents/Spinner/index.zh-CN.llms.txt +0 -38
- package/llms/components/commonComponents/Statistic/index.zh-CN.llms.txt +0 -77
- package/llms/components/commonComponents/Steps/index.zh-CN.llms.txt +0 -82
- package/llms/components/commonComponents/Switch/index.zh-CN.llms.txt +0 -58
- package/llms/components/commonComponents/Table/index.zh-CN.llms.txt +0 -228
- package/llms/components/commonComponents/Tabs/index.zh-CN.llms.txt +0 -95
- package/llms/components/commonComponents/Tag/index.zh-CN.llms.txt +0 -57
- package/llms/components/commonComponents/TimePicker/index.zh-CN.llms.txt +0 -104
- package/llms/components/commonComponents/Tooltip/index.zh-CN.llms.txt +0 -63
- package/llms/components/commonComponents/Upload/index.zh-CN.llms.txt +0 -105
- package/llms/index.llms.txt +0 -45
- /package/lib/components/commonComponents/Popconfirm/demo/{demo.d.ts → demo1.d.ts} +0 -0
|
@@ -1,44 +1,14 @@
|
|
|
1
|
-
var
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
function
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
'0%': {
|
|
16
|
-
transform: 'rotate(0deg)'
|
|
17
|
-
},
|
|
18
|
-
'100%': {
|
|
19
|
-
transform: 'rotate(360deg)'
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}, ".".concat(sparkPrefix, "-icon"), {
|
|
23
|
-
display: 'inline-flex',
|
|
24
|
-
alignItems: 'center',
|
|
25
|
-
justifyContent: 'center',
|
|
26
|
-
fontSize: '16px',
|
|
27
|
-
lineHeight: 1
|
|
28
|
-
}), ".".concat(sparkPrefix, "-icon-spin"), {
|
|
29
|
-
animation: 'spinning 1s ease-in-out infinite'
|
|
30
|
-
}), ".".concat(sparkPrefix, "-cursor-pointer"), {
|
|
31
|
-
cursor: 'pointer',
|
|
32
|
-
color: "var(--".concat(antPrefix, "-color-icon)"),
|
|
33
|
-
'&:hover': {
|
|
34
|
-
color: "var(--".concat(antPrefix, "-color-icon-hover)")
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
var useIconFontStyle = createStyle(function (_ref2) {
|
|
39
|
-
var css = _ref2.css,
|
|
40
|
-
params = _objectWithoutProperties(_ref2, _excluded);
|
|
41
|
-
var result = css(getIndexStyleData(params));
|
|
42
|
-
return result;
|
|
43
|
-
});
|
|
44
|
-
export default useIconFontStyle;
|
|
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/createStyle";
|
|
4
|
+
export var useStyle = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n@keyframes spinning {\n 0% {\n transform: rotate(0deg);\n }\n \n 100% {\n transform: rotate(360deg);\n }\n}\n\n.", "-icon {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n font-size: 16px;\n line-height: 1;\n}\n\n.", "-icon-spin {\n animation: spinning 1s ease-in-out infinite;\n}\n\n.", "-cursor-pointer {\n cursor: pointer;\n color: var(--", "-color-icon);\n \n &:hover {\n color: var(--", "-color-icon-hover);\n }\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.antPrefix;
|
|
12
|
+
}, function (p) {
|
|
13
|
+
return p.antPrefix;
|
|
14
|
+
});
|
|
@@ -9,11 +9,12 @@ import { getCommonConfig } from "../../../config";
|
|
|
9
9
|
import { SparkVisibleLine } from '@agentscope-ai/icons';
|
|
10
10
|
import { Image as AntdImage } from 'antd';
|
|
11
11
|
import { useMemo } from 'react';
|
|
12
|
-
import
|
|
12
|
+
import { useStyle } from "./index.style";
|
|
13
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
14
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
15
16
|
var Image = function Image(props) {
|
|
16
|
-
|
|
17
|
+
var Style = useStyle();
|
|
17
18
|
var _getCommonConfig = getCommonConfig(),
|
|
18
19
|
antPrefix = _getCommonConfig.antPrefix;
|
|
19
20
|
var preview = useMemo(function () {
|
|
@@ -38,9 +39,11 @@ var Image = function Image(props) {
|
|
|
38
39
|
})
|
|
39
40
|
}, preview), basePreview);
|
|
40
41
|
}, [props.preview]);
|
|
41
|
-
return /*#__PURE__*/
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
43
|
+
children: [/*#__PURE__*/_jsx(Style, {}), /*#__PURE__*/_jsx(AntdImage, _objectSpread({
|
|
44
|
+
preview: preview
|
|
45
|
+
}, props))]
|
|
46
|
+
});
|
|
44
47
|
};
|
|
45
48
|
|
|
46
49
|
// 定义接口避免TypeScript内部类型推断
|
|
@@ -1,22 +1 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
[x: string]: {
|
|
3
|
-
[x: string]: string | {
|
|
4
|
-
[x: string]: string | {
|
|
5
|
-
display: string;
|
|
6
|
-
alignItems: string;
|
|
7
|
-
fontWeight?: undefined;
|
|
8
|
-
lineHeight?: undefined;
|
|
9
|
-
} | {
|
|
10
|
-
fontWeight: number;
|
|
11
|
-
lineHeight: string;
|
|
12
|
-
display?: undefined;
|
|
13
|
-
alignItems?: undefined;
|
|
14
|
-
};
|
|
15
|
-
backgroundColor: string;
|
|
16
|
-
};
|
|
17
|
-
borderRadius: string;
|
|
18
|
-
overflow: string;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
declare const useIndexStyle: (props?: {}) => import("../../../config").CommonConfig;
|
|
22
|
-
export default useIndexStyle;
|
|
1
|
+
export declare const useStyle: () => () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,30 +1,16 @@
|
|
|
1
|
-
var
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
function
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
return
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
display: 'flex',
|
|
18
|
-
alignItems: 'center'
|
|
19
|
-
}), ".".concat(antPrefix, "-image-mask-info-text"), {
|
|
20
|
-
fontWeight: 500,
|
|
21
|
-
lineHeight: '24px'
|
|
22
|
-
})));
|
|
23
|
-
}
|
|
24
|
-
var useIndexStyle = createStyle(function (_ref2) {
|
|
25
|
-
var css = _ref2.css,
|
|
26
|
-
params = _objectWithoutProperties(_ref2, _excluded);
|
|
27
|
-
var result = css(getIndexStyleData(params));
|
|
28
|
-
return result;
|
|
29
|
-
});
|
|
30
|
-
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/createStyle";
|
|
4
|
+
export var useStyle = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n.", "-image {\n border-radius: var(--", "-border-radius);\n overflow: hidden;\n \n .", "-image-mask {\n background-color: var(--", "-color-bg-mask);\n \n .", "-image-mask-info {\n display: flex;\n align-items: center;\n }\n \n .", "-image-mask-info-text {\n font-weight: 500;\n line-height: 24px;\n }\n }\n}\n"])), function (p) {
|
|
5
|
+
return p.antPrefix;
|
|
6
|
+
}, function (p) {
|
|
7
|
+
return p.antPrefix;
|
|
8
|
+
}, function (p) {
|
|
9
|
+
return p.antPrefix;
|
|
10
|
+
}, function (p) {
|
|
11
|
+
return p.antPrefix;
|
|
12
|
+
}, function (p) {
|
|
13
|
+
return p.antPrefix;
|
|
14
|
+
}, function (p) {
|
|
15
|
+
return p.antPrefix;
|
|
16
|
+
});
|
|
@@ -11,28 +11,34 @@ import { getCommonConfig } from "../../..";
|
|
|
11
11
|
import { Input } from 'antd';
|
|
12
12
|
import classNames from 'classnames';
|
|
13
13
|
import React from 'react';
|
|
14
|
-
import
|
|
14
|
+
import { useStyle } from "./index.style";
|
|
15
15
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
16
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
17
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
18
|
var SparkInput = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
17
19
|
var _props$shape = props.shape,
|
|
18
20
|
shape = _props$shape === void 0 ? 'default' : _props$shape,
|
|
19
21
|
restProps = _objectWithoutProperties(props, _excluded);
|
|
20
22
|
var _getCommonConfig = getCommonConfig(),
|
|
21
23
|
antPrefix = _getCommonConfig.antPrefix;
|
|
22
|
-
|
|
23
|
-
return /*#__PURE__*/
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
var Style = useStyle();
|
|
25
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
26
|
+
children: [/*#__PURE__*/_jsx(Style, {}), /*#__PURE__*/_jsx(Input, _objectSpread(_objectSpread({}, restProps), {}, {
|
|
27
|
+
className: classNames(props.className, _defineProperty({}, "".concat(antPrefix, "-input-round"), shape === 'round')),
|
|
28
|
+
ref: ref
|
|
29
|
+
}))]
|
|
30
|
+
});
|
|
27
31
|
});
|
|
28
32
|
var SparkTextArea = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
29
33
|
var _getCommonConfig2 = getCommonConfig(),
|
|
30
34
|
antPrefix = _getCommonConfig2.antPrefix;
|
|
31
|
-
|
|
32
|
-
return /*#__PURE__*/
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
35
|
+
var Style = useStyle();
|
|
36
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
37
|
+
children: [/*#__PURE__*/_jsx(Style, {}), /*#__PURE__*/_jsx(Input.TextArea, _objectSpread(_objectSpread({}, props), {}, {
|
|
38
|
+
className: classNames("".concat(antPrefix, "-text-area"), props.className),
|
|
39
|
+
ref: ref
|
|
40
|
+
}))]
|
|
41
|
+
});
|
|
36
42
|
});
|
|
37
43
|
Object.assign(SparkInput, {
|
|
38
44
|
TextArea: SparkTextArea,
|
|
@@ -1,70 +1 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
[x: string]: {
|
|
3
|
-
borderColor: string;
|
|
4
|
-
backgroundColor?: undefined;
|
|
5
|
-
fontWeight?: undefined;
|
|
6
|
-
borderRadius?: undefined;
|
|
7
|
-
'&::placeholder'?: undefined;
|
|
8
|
-
fontSize?: undefined;
|
|
9
|
-
height?: undefined;
|
|
10
|
-
} | {
|
|
11
|
-
backgroundColor: string;
|
|
12
|
-
borderColor?: undefined;
|
|
13
|
-
fontWeight?: undefined;
|
|
14
|
-
borderRadius?: undefined;
|
|
15
|
-
'&::placeholder'?: undefined;
|
|
16
|
-
fontSize?: undefined;
|
|
17
|
-
height?: undefined;
|
|
18
|
-
} | {
|
|
19
|
-
[x: string]: string | number | {
|
|
20
|
-
color: string;
|
|
21
|
-
};
|
|
22
|
-
fontWeight: number;
|
|
23
|
-
borderRadius: string;
|
|
24
|
-
'&::placeholder': {
|
|
25
|
-
color: string;
|
|
26
|
-
};
|
|
27
|
-
borderColor?: undefined;
|
|
28
|
-
backgroundColor?: undefined;
|
|
29
|
-
fontSize?: undefined;
|
|
30
|
-
height?: undefined;
|
|
31
|
-
} | {
|
|
32
|
-
[x: string]: {
|
|
33
|
-
marginInlineEnd: string;
|
|
34
|
-
color: string;
|
|
35
|
-
};
|
|
36
|
-
borderColor?: undefined;
|
|
37
|
-
backgroundColor?: undefined;
|
|
38
|
-
fontWeight?: undefined;
|
|
39
|
-
borderRadius?: undefined;
|
|
40
|
-
'&::placeholder'?: undefined;
|
|
41
|
-
fontSize?: undefined;
|
|
42
|
-
height?: undefined;
|
|
43
|
-
} | {
|
|
44
|
-
fontSize: string;
|
|
45
|
-
borderColor?: undefined;
|
|
46
|
-
backgroundColor?: undefined;
|
|
47
|
-
fontWeight?: undefined;
|
|
48
|
-
borderRadius?: undefined;
|
|
49
|
-
'&::placeholder'?: undefined;
|
|
50
|
-
height?: undefined;
|
|
51
|
-
} | {
|
|
52
|
-
borderRadius: string;
|
|
53
|
-
borderColor?: undefined;
|
|
54
|
-
backgroundColor?: undefined;
|
|
55
|
-
fontWeight?: undefined;
|
|
56
|
-
'&::placeholder'?: undefined;
|
|
57
|
-
fontSize?: undefined;
|
|
58
|
-
height?: undefined;
|
|
59
|
-
} | {
|
|
60
|
-
height: string;
|
|
61
|
-
fontSize: string;
|
|
62
|
-
borderColor?: undefined;
|
|
63
|
-
backgroundColor?: undefined;
|
|
64
|
-
fontWeight?: undefined;
|
|
65
|
-
borderRadius?: undefined;
|
|
66
|
-
'&::placeholder'?: undefined;
|
|
67
|
-
};
|
|
68
|
-
};
|
|
69
|
-
declare const useIndexStyle: (props?: {}) => import("../../../config").CommonConfig;
|
|
70
|
-
export default useIndexStyle;
|
|
1
|
+
export declare const useStyle: () => () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,42 +1,46 @@
|
|
|
1
|
-
var
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
function
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
return
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
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/createStyle";
|
|
4
|
+
export var useStyle = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n.", "-input-outlined,\n.", "-input-outlined.", "-input-disabled,\n.", "-input-outlined[disabled] {\n border-color: var(--", "-color-border-secondary);\n}\n\n.", "-input-outlined {\n background-color: var(--", "-color-bg-base);\n}\n\n.", "-input {\n font-weight: 400;\n border-radius: 6px;\n \n .", "-input-show-count-suffix,\n .", "-input-data-count-suffix {\n color: var(--", "-color-text-tertiary);\n }\n \n &::placeholder {\n color: var(--", "-color-text-tertiary);\n }\n}\n\n/* prefix\u95F4\u8DDD */\n.", "-input-affix-wrapper {\n .", "-input-prefix {\n margin-inline-end: 8px;\n color: var(--", "-color-text-tertiary);\n }\n}\n\n.", "-input-affix-wrapper .", "-input-clear-icon {\n font-size: 15px;\n}\n\n.", "-input-round {\n border-radius: 999px;\n}\n\n.", "-text-area {\n border-color: var(--", "-color-border-secondary);\n}\n\n.", "-input-sm {\n height: 24px;\n font-size: 12px;\n}\n"])), function (p) {
|
|
5
|
+
return p.antPrefix;
|
|
6
|
+
}, function (p) {
|
|
7
|
+
return p.antPrefix;
|
|
8
|
+
}, function (p) {
|
|
9
|
+
return p.antPrefix;
|
|
10
|
+
}, function (p) {
|
|
11
|
+
return p.antPrefix;
|
|
12
|
+
}, function (p) {
|
|
13
|
+
return p.antPrefix;
|
|
14
|
+
}, function (p) {
|
|
15
|
+
return p.antPrefix;
|
|
16
|
+
}, function (p) {
|
|
17
|
+
return p.antPrefix;
|
|
18
|
+
}, function (p) {
|
|
19
|
+
return p.antPrefix;
|
|
20
|
+
}, function (p) {
|
|
21
|
+
return p.antPrefix;
|
|
22
|
+
}, function (p) {
|
|
23
|
+
return p.antPrefix;
|
|
24
|
+
}, function (p) {
|
|
25
|
+
return p.antPrefix;
|
|
26
|
+
}, function (p) {
|
|
27
|
+
return p.antPrefix;
|
|
28
|
+
}, function (p) {
|
|
29
|
+
return p.antPrefix;
|
|
30
|
+
}, function (p) {
|
|
31
|
+
return p.antPrefix;
|
|
32
|
+
}, function (p) {
|
|
33
|
+
return p.antPrefix;
|
|
34
|
+
}, function (p) {
|
|
35
|
+
return p.antPrefix;
|
|
36
|
+
}, function (p) {
|
|
37
|
+
return p.antPrefix;
|
|
38
|
+
}, function (p) {
|
|
39
|
+
return p.antPrefix;
|
|
40
|
+
}, function (p) {
|
|
41
|
+
return p.antPrefix;
|
|
42
|
+
}, function (p) {
|
|
43
|
+
return p.antPrefix;
|
|
44
|
+
}, function (p) {
|
|
45
|
+
return p.antPrefix;
|
|
46
|
+
});
|
|
@@ -11,11 +11,12 @@ import { getCommonConfig } from "../../../config";
|
|
|
11
11
|
import { CloseOutlined } from '@agentscope-ai/icons-override-antd';
|
|
12
12
|
import { Modal } from 'antd';
|
|
13
13
|
import classNames from 'classnames';
|
|
14
|
-
import
|
|
14
|
+
import { useStyle } from "./index.style";
|
|
15
15
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
16
16
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
17
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
17
18
|
var SparkModal = function SparkModal(props) {
|
|
18
|
-
|
|
19
|
+
var Style = useStyle();
|
|
19
20
|
var _getCommonConfig = getCommonConfig(),
|
|
20
21
|
sparkPrefix = _getCommonConfig.sparkPrefix;
|
|
21
22
|
var _props$showDivider = props.showDivider,
|
|
@@ -43,20 +44,21 @@ var SparkModal = function SparkModal(props) {
|
|
|
43
44
|
}
|
|
44
45
|
}) : null;
|
|
45
46
|
var mergedFooter = props.footer === undefined ? renderFooter : props.footer;
|
|
46
|
-
return /*#__PURE__*/
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
47
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
48
|
+
children: [/*#__PURE__*/_jsx(Style, {}), /*#__PURE__*/_jsx(Modal, _objectSpread(_objectSpread({}, restProps), {}, {
|
|
49
|
+
closeIcon: null,
|
|
50
|
+
title: /*#__PURE__*/_jsxs("div", {
|
|
51
|
+
className: "".concat(sparkPrefix, "-modal-title-wrapper"),
|
|
52
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
53
|
+
className: "".concat(sparkPrefix, "-modal-title"),
|
|
54
|
+
children: props.title
|
|
55
|
+
}), mergedCloseIcon]
|
|
56
|
+
}),
|
|
57
|
+
wrapClassName: classNames("".concat(sparkPrefix, "-modal"), _defineProperty({}, "".concat(sparkPrefix, "-show-divider"), showDivider), props.wrapClassName, 'animate-in'),
|
|
58
|
+
footer: mergedFooter,
|
|
59
|
+
transitionName: ""
|
|
60
|
+
}))]
|
|
61
|
+
});
|
|
60
62
|
};
|
|
61
63
|
SparkModal.useModal = Modal.useModal;
|
|
62
64
|
SparkModal.success = Modal.success;
|
|
@@ -1,111 +1 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
[x: string]: {
|
|
3
|
-
[x: string]: {
|
|
4
|
-
minHeight: string;
|
|
5
|
-
padding?: undefined;
|
|
6
|
-
border?: undefined;
|
|
7
|
-
} | {
|
|
8
|
-
[x: string]: string | number | {
|
|
9
|
-
[x: string]: string | number | {
|
|
10
|
-
[x: string]: string | {
|
|
11
|
-
[x: string]: string | {
|
|
12
|
-
flex: number;
|
|
13
|
-
cursor?: undefined;
|
|
14
|
-
} | {
|
|
15
|
-
cursor: string;
|
|
16
|
-
flex?: undefined;
|
|
17
|
-
};
|
|
18
|
-
display: string;
|
|
19
|
-
justifyContent: string;
|
|
20
|
-
alignItems: string;
|
|
21
|
-
gap: string;
|
|
22
|
-
};
|
|
23
|
-
lineHeight: string;
|
|
24
|
-
};
|
|
25
|
-
padding: string;
|
|
26
|
-
marginBottom: number;
|
|
27
|
-
color?: undefined;
|
|
28
|
-
marginTop?: undefined;
|
|
29
|
-
width?: undefined;
|
|
30
|
-
height?: undefined;
|
|
31
|
-
top?: undefined;
|
|
32
|
-
right?: undefined;
|
|
33
|
-
'&:hover'?: undefined;
|
|
34
|
-
} | {
|
|
35
|
-
padding: number;
|
|
36
|
-
color: string;
|
|
37
|
-
marginBottom?: undefined;
|
|
38
|
-
marginTop?: undefined;
|
|
39
|
-
width?: undefined;
|
|
40
|
-
height?: undefined;
|
|
41
|
-
top?: undefined;
|
|
42
|
-
right?: undefined;
|
|
43
|
-
'&:hover'?: undefined;
|
|
44
|
-
} | {
|
|
45
|
-
[x: string]: string | number | {
|
|
46
|
-
[x: string]: string | {
|
|
47
|
-
fontSize: string;
|
|
48
|
-
fontWeight: string;
|
|
49
|
-
lineHeight: string;
|
|
50
|
-
color: string;
|
|
51
|
-
display?: undefined;
|
|
52
|
-
gap?: undefined;
|
|
53
|
-
} | {
|
|
54
|
-
display: string;
|
|
55
|
-
gap: string;
|
|
56
|
-
fontSize?: undefined;
|
|
57
|
-
fontWeight?: undefined;
|
|
58
|
-
lineHeight?: undefined;
|
|
59
|
-
color?: undefined;
|
|
60
|
-
};
|
|
61
|
-
display: string;
|
|
62
|
-
justifyContent: string;
|
|
63
|
-
alignItems: string;
|
|
64
|
-
};
|
|
65
|
-
padding: string;
|
|
66
|
-
marginTop: number;
|
|
67
|
-
marginBottom?: undefined;
|
|
68
|
-
color?: undefined;
|
|
69
|
-
width?: undefined;
|
|
70
|
-
height?: undefined;
|
|
71
|
-
top?: undefined;
|
|
72
|
-
right?: undefined;
|
|
73
|
-
'&:hover'?: undefined;
|
|
74
|
-
} | {
|
|
75
|
-
[x: string]: number | {
|
|
76
|
-
color: string;
|
|
77
|
-
background?: undefined;
|
|
78
|
-
} | {
|
|
79
|
-
background: string;
|
|
80
|
-
color?: undefined;
|
|
81
|
-
};
|
|
82
|
-
width: number;
|
|
83
|
-
height: number;
|
|
84
|
-
top: number;
|
|
85
|
-
right: number;
|
|
86
|
-
"&:hover": {
|
|
87
|
-
background: string;
|
|
88
|
-
};
|
|
89
|
-
padding?: undefined;
|
|
90
|
-
marginBottom?: undefined;
|
|
91
|
-
color?: undefined;
|
|
92
|
-
marginTop?: undefined;
|
|
93
|
-
};
|
|
94
|
-
padding: number;
|
|
95
|
-
border: string;
|
|
96
|
-
minHeight?: undefined;
|
|
97
|
-
};
|
|
98
|
-
} | {
|
|
99
|
-
[x: string]: {
|
|
100
|
-
[x: string]: {
|
|
101
|
-
borderBottom: string;
|
|
102
|
-
borderTop?: undefined;
|
|
103
|
-
} | {
|
|
104
|
-
borderTop: string;
|
|
105
|
-
borderBottom?: undefined;
|
|
106
|
-
};
|
|
107
|
-
};
|
|
108
|
-
};
|
|
109
|
-
};
|
|
110
|
-
declare const useIndexStyle: () => void;
|
|
111
|
-
export default useIndexStyle;
|
|
1
|
+
export declare const useStyle: () => () => import("react/jsx-runtime").JSX.Element;
|