@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
|
@@ -1,97 +1,42 @@
|
|
|
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
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
display: 'flex'
|
|
44
|
-
}), ".".concat(sparkPrefix, "-collapse-panel-icon-wrapper"), {
|
|
45
|
-
display: 'inline-flex',
|
|
46
|
-
alignItems: 'center',
|
|
47
|
-
justifyContent: 'center',
|
|
48
|
-
marginLeft: '4px'
|
|
49
|
-
}), ".".concat(sparkPrefix, "-collapse-panel-icon"), {
|
|
50
|
-
fontSize: '18px',
|
|
51
|
-
transition: 'transform 0.3s ease'
|
|
52
|
-
}), ".".concat(sparkPrefix, "-collapse-panel-content"), {
|
|
53
|
-
position: 'relative',
|
|
54
|
-
borderRadius: '0 0 6px 6px',
|
|
55
|
-
transition: 'height 0.3s cubic-bezier(0.4, 0, 0.2, 1)',
|
|
56
|
-
overflow: 'hidden'
|
|
57
|
-
}), ".".concat(sparkPrefix, "-collapse-panel-contentWrapper"), {
|
|
58
|
-
'&.scrollable': {
|
|
59
|
-
height: '100%',
|
|
60
|
-
overflowY: 'auto',
|
|
61
|
-
scrollbarWidth: 'thin',
|
|
62
|
-
scrollbarColor: "var(--".concat(antPrefix, "-color-fill) transparent"),
|
|
63
|
-
'&::-webkit-scrollbar': {
|
|
64
|
-
width: '6px'
|
|
65
|
-
},
|
|
66
|
-
'&::-webkit-scrollbar-track': {
|
|
67
|
-
background: 'transparent'
|
|
68
|
-
},
|
|
69
|
-
'&::-webkit-scrollbar-thumb': {
|
|
70
|
-
backgroundColor: "var(--".concat(antPrefix, "-color-fill)"),
|
|
71
|
-
borderRadius: '3px'
|
|
72
|
-
},
|
|
73
|
-
'&::-webkit-scrollbar-thumb:hover': {
|
|
74
|
-
backgroundColor: "var(--".concat(antPrefix, "-color-fill)")
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
}), ".".concat(sparkPrefix, "-collapse-panel-mask"), {
|
|
78
|
-
position: 'absolute',
|
|
79
|
-
bottom: 0,
|
|
80
|
-
left: 0,
|
|
81
|
-
right: 0,
|
|
82
|
-
height: '60px',
|
|
83
|
-
background: "linear-gradient(\n to bottom,\n rgba(255, 255, 255, 0) 0%,\n var(--".concat(antPrefix, "-color-bg-base) 100%\n )"),
|
|
84
|
-
pointerEvents: 'none',
|
|
85
|
-
opacity: 1,
|
|
86
|
-
transition: 'opacity 0.3s ease'
|
|
87
|
-
}), ".".concat(sparkPrefix, "-collapse-panel-expanded"), _defineProperty({}, ".".concat(sparkPrefix, "-collapse-panel-mask"), {
|
|
88
|
-
opacity: 0
|
|
89
|
-
})));
|
|
90
|
-
}
|
|
91
|
-
var useIndexStyle = createStyle(function (_ref2) {
|
|
92
|
-
var css = _ref2.css,
|
|
93
|
-
params = _objectWithoutProperties(_ref2, _excluded);
|
|
94
|
-
var result = css(getIndexStyleData(params));
|
|
95
|
-
return result;
|
|
96
|
-
});
|
|
97
|
-
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.", "-collapse-panel {\n width: 100%;\n border-radius: 8px;\n border: 1px solid var(--", "-color-border-secondary);\n transition: all 0.3s ease;\n background-color: var(--", "-color-bg-base);\n \n &.collapsible:not(.expanded) {\n cursor: pointer;\n }\n \n .", "-collapse-panel-header {\n display: flex;\n justify-content: space-between;\n background: var(--", "-color-fill-secondary);\n height: 32px;\n line-height: 32px;\n border-radius: 7px 7px 0 0;\n align-items: center;\n user-select: none;\n position: relative;\n cursor: pointer;\n padding: 0 12px;\n \n .collapsible:hover & {\n background: #f0f2f3;\n }\n }\n \n .", "-collapse-panel-extra {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n float: right;\n }\n \n .", "-collapse-panel-title {\n color: var(--", "-color-text);\n font-size: 14px;\n display: flex;\n }\n \n .", "-collapse-panel-icon-wrapper {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n margin-left: 4px;\n }\n \n .", "-collapse-panel-icon {\n font-size: 18px;\n transition: transform 0.3s ease;\n }\n \n .", "-collapse-panel-content {\n position: relative;\n border-radius: 0 0 6px 6px;\n transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n overflow: hidden;\n }\n \n .", "-collapse-panel-contentWrapper {\n &.scrollable {\n height: 100%;\n overflow-y: auto;\n scrollbar-width: thin;\n scrollbar-color: var(--", "-color-fill) transparent;\n \n &::-webkit-scrollbar {\n width: 6px;\n }\n \n &::-webkit-scrollbar-track {\n background: transparent;\n }\n \n &::-webkit-scrollbar-thumb {\n background-color: var(--", "-color-fill);\n border-radius: 3px;\n }\n \n &::-webkit-scrollbar-thumb:hover {\n background-color: var(--", "-color-fill);\n }\n }\n }\n \n .", "-collapse-panel-mask {\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n height: 60px;\n background: linear-gradient(\n to bottom,\n rgba(255, 255, 255, 0) 0%,\n var(--", "-color-bg-base) 100%\n );\n pointer-events: none;\n opacity: 1;\n transition: opacity 0.3s ease;\n }\n \n .", "-collapse-panel-expanded {\n .", "-collapse-panel-mask {\n opacity: 0;\n }\n }\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
|
+
}, function (p) {
|
|
21
|
+
return p.sparkPrefix;
|
|
22
|
+
}, function (p) {
|
|
23
|
+
return p.sparkPrefix;
|
|
24
|
+
}, function (p) {
|
|
25
|
+
return p.sparkPrefix;
|
|
26
|
+
}, function (p) {
|
|
27
|
+
return p.sparkPrefix;
|
|
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.sparkPrefix;
|
|
36
|
+
}, function (p) {
|
|
37
|
+
return p.antPrefix;
|
|
38
|
+
}, function (p) {
|
|
39
|
+
return p.sparkPrefix;
|
|
40
|
+
}, function (p) {
|
|
41
|
+
return p.sparkPrefix;
|
|
42
|
+
});
|
|
@@ -13,6 +13,7 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
|
|
|
13
13
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
14
14
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
15
15
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
16
|
+
import { useIndexStyle } from "../../../antd/styles/index.style";
|
|
16
17
|
import $i18n from "../../../i18n";
|
|
17
18
|
import { App, ConfigProvider, message, theme } from 'antd';
|
|
18
19
|
import { ConfigContext } from 'antd/es/config-provider/context';
|
|
@@ -20,12 +21,14 @@ import useTheme from 'antd/es/config-provider/hooks/useTheme';
|
|
|
20
21
|
import classNames from 'classnames';
|
|
21
22
|
import { useContext, useLayoutEffect, useMemo, useState } from 'react';
|
|
22
23
|
import { DEFAULT_SPARK_PREFIX, getCommonConfig, setCommonConfig } from "../../../config";
|
|
23
|
-
import useSparkStyle from "../spark.style";
|
|
24
24
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
25
25
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
26
|
-
function SparkGlobalStyle(
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
function SparkGlobalStyle() {
|
|
27
|
+
// 使用统一的全局样式(包含 antd 样式 + 滚动条 + 动画)
|
|
28
|
+
var GlobalStyle = useIndexStyle();
|
|
29
|
+
|
|
30
|
+
// 直接渲染,让 CSS-in-JS 库处理去重和性能优化
|
|
31
|
+
return /*#__PURE__*/_jsx(GlobalStyle, {});
|
|
29
32
|
}
|
|
30
33
|
var empty = {};
|
|
31
34
|
function SparkConfigProvider(props) {
|
|
@@ -132,10 +135,7 @@ function SparkConfigProvider(props) {
|
|
|
132
135
|
wave: {
|
|
133
136
|
disabled: true
|
|
134
137
|
},
|
|
135
|
-
children: [/*#__PURE__*/_jsx(SparkGlobalStyle, {
|
|
136
|
-
antPrefix: antPrefix,
|
|
137
|
-
sparkPrefix: sparkPrefix
|
|
138
|
-
}), /*#__PURE__*/_jsx(App, {
|
|
138
|
+
children: [/*#__PURE__*/_jsx(SparkGlobalStyle, {}), /*#__PURE__*/_jsx(App, {
|
|
139
139
|
className: classNames("spark", props.className),
|
|
140
140
|
style: _objectSpread({}, props.style),
|
|
141
141
|
children: hasInit ? children : null
|
|
@@ -147,5 +147,8 @@ SparkConfigProvider.config = function (props) {
|
|
|
147
147
|
ConfigProvider.config(props);
|
|
148
148
|
};
|
|
149
149
|
SparkConfigProvider.useConfig = ConfigProvider.useConfig;
|
|
150
|
+
|
|
151
|
+
// CSS-in-JS 库自动处理样式去重和性能优化,不需要手动管理
|
|
152
|
+
|
|
150
153
|
export * from 'antd/lib/config-provider';
|
|
151
154
|
export default SparkConfigProvider;
|
|
@@ -13,8 +13,10 @@ import { SparkDateLine } from '@agentscope-ai/icons';
|
|
|
13
13
|
import { DatePicker as AntdDatePicker, ConfigProvider, theme } from 'antd';
|
|
14
14
|
import classNames from 'classnames';
|
|
15
15
|
import React from 'react';
|
|
16
|
-
import
|
|
16
|
+
import { useStyle } from "./index.style";
|
|
17
17
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
18
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
19
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
18
20
|
var DatePicker = function DatePicker(props) {
|
|
19
21
|
var className = props.className,
|
|
20
22
|
popupClassName = props.popupClassName,
|
|
@@ -23,25 +25,27 @@ var DatePicker = function DatePicker(props) {
|
|
|
23
25
|
token = _theme$useToken.token;
|
|
24
26
|
var commonConfig = getCommonConfig();
|
|
25
27
|
var sparkPrefix = commonConfig.sparkPrefix;
|
|
26
|
-
|
|
27
|
-
return /*#__PURE__*/
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
28
|
+
var Style = useStyle();
|
|
29
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
30
|
+
children: [/*#__PURE__*/_jsx(Style, {}), /*#__PURE__*/_jsx(ConfigProvider, {
|
|
31
|
+
theme: {
|
|
32
|
+
components: {
|
|
33
|
+
DatePicker: {
|
|
34
|
+
activeBorderColor: token.colorPrimary,
|
|
35
|
+
paddingInline: 8
|
|
36
|
+
}
|
|
33
37
|
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}
|
|
38
|
+
},
|
|
39
|
+
children: /*#__PURE__*/_jsx(AntdDatePicker, _objectSpread({
|
|
40
|
+
suffixIcon: /*#__PURE__*/_jsx(SparkDateLine, {
|
|
41
|
+
style: {
|
|
42
|
+
fontSize: '20px'
|
|
43
|
+
}
|
|
44
|
+
}),
|
|
45
|
+
className: classNames("".concat(sparkPrefix, "-picker"), className),
|
|
46
|
+
popupClassName: classNames("".concat(sparkPrefix, "-picker-dropdown"), popupClassName)
|
|
47
|
+
}, restProps))
|
|
48
|
+
})]
|
|
45
49
|
});
|
|
46
50
|
};
|
|
47
51
|
var RangePicker = function RangePicker(props) {
|
|
@@ -52,28 +56,30 @@ var RangePicker = function RangePicker(props) {
|
|
|
52
56
|
token = _theme$useToken2.token;
|
|
53
57
|
var commonConfig = getCommonConfig();
|
|
54
58
|
var sparkPrefix = commonConfig.sparkPrefix;
|
|
55
|
-
|
|
56
|
-
return /*#__PURE__*/
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
var Style = useStyle();
|
|
60
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
61
|
+
children: [/*#__PURE__*/_jsx(Style, {}), /*#__PURE__*/_jsx(ConfigProvider, {
|
|
62
|
+
theme: {
|
|
63
|
+
components: {
|
|
64
|
+
DatePicker: {
|
|
65
|
+
activeBorderColor: token.colorPrimary,
|
|
66
|
+
paddingInline: 8
|
|
67
|
+
}
|
|
62
68
|
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
+
},
|
|
70
|
+
children: /*#__PURE__*/_jsx(AntdDatePicker.RangePicker, _objectSpread({
|
|
71
|
+
suffixIcon: /*#__PURE__*/_jsx(SparkDateLine, {
|
|
72
|
+
style: {
|
|
73
|
+
fontSize: '20px'
|
|
74
|
+
}
|
|
75
|
+
}),
|
|
76
|
+
className: classNames("".concat(sparkPrefix, "-picker"), className),
|
|
77
|
+
popupClassName: classNames("".concat(sparkPrefix, "-picker-dropdown"), popupClassName),
|
|
78
|
+
popupStyle: {
|
|
79
|
+
padding: 0
|
|
69
80
|
}
|
|
70
|
-
})
|
|
71
|
-
|
|
72
|
-
popupClassName: classNames("".concat(sparkPrefix, "-picker-dropdown"), popupClassName),
|
|
73
|
-
popupStyle: {
|
|
74
|
-
padding: 0
|
|
75
|
-
}
|
|
76
|
-
}, restProps))
|
|
81
|
+
}, restProps))
|
|
82
|
+
})]
|
|
77
83
|
});
|
|
78
84
|
};
|
|
79
85
|
DatePicker.RangePicker = RangePicker;
|
|
@@ -1,102 +1 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
[x: string]: {
|
|
3
|
-
[x: string]: string | {
|
|
4
|
-
[x: string]: string | {
|
|
5
|
-
color: string;
|
|
6
|
-
};
|
|
7
|
-
color: string;
|
|
8
|
-
borderColor: string;
|
|
9
|
-
backgroundColor: string;
|
|
10
|
-
cursor: string;
|
|
11
|
-
marginLeft?: undefined;
|
|
12
|
-
marginRight?: undefined;
|
|
13
|
-
display?: undefined;
|
|
14
|
-
} | {
|
|
15
|
-
marginLeft: string;
|
|
16
|
-
color: string;
|
|
17
|
-
borderColor?: undefined;
|
|
18
|
-
backgroundColor?: undefined;
|
|
19
|
-
cursor?: undefined;
|
|
20
|
-
marginRight?: undefined;
|
|
21
|
-
display?: undefined;
|
|
22
|
-
} | {
|
|
23
|
-
marginRight: string;
|
|
24
|
-
color?: undefined;
|
|
25
|
-
borderColor?: undefined;
|
|
26
|
-
backgroundColor?: undefined;
|
|
27
|
-
cursor?: undefined;
|
|
28
|
-
marginLeft?: undefined;
|
|
29
|
-
display?: undefined;
|
|
30
|
-
} | {
|
|
31
|
-
[x: string]: string | {
|
|
32
|
-
width: string;
|
|
33
|
-
height: string;
|
|
34
|
-
background: string;
|
|
35
|
-
".anticon": {
|
|
36
|
-
display: string;
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
display: string;
|
|
40
|
-
color?: undefined;
|
|
41
|
-
borderColor?: undefined;
|
|
42
|
-
backgroundColor?: undefined;
|
|
43
|
-
cursor?: undefined;
|
|
44
|
-
marginLeft?: undefined;
|
|
45
|
-
marginRight?: undefined;
|
|
46
|
-
};
|
|
47
|
-
borderColor: string;
|
|
48
|
-
backgroundColor: string;
|
|
49
|
-
borderRadius?: undefined;
|
|
50
|
-
color?: undefined;
|
|
51
|
-
'.anticon-close'?: undefined;
|
|
52
|
-
} | {
|
|
53
|
-
[x: string]: {
|
|
54
|
-
border: string;
|
|
55
|
-
display?: undefined;
|
|
56
|
-
color?: undefined;
|
|
57
|
-
} | {
|
|
58
|
-
display: string;
|
|
59
|
-
border?: undefined;
|
|
60
|
-
color?: undefined;
|
|
61
|
-
} | {
|
|
62
|
-
[x: string]: {
|
|
63
|
-
background: string;
|
|
64
|
-
};
|
|
65
|
-
border?: undefined;
|
|
66
|
-
display?: undefined;
|
|
67
|
-
color?: undefined;
|
|
68
|
-
} | {
|
|
69
|
-
color: string;
|
|
70
|
-
border?: undefined;
|
|
71
|
-
display?: undefined;
|
|
72
|
-
};
|
|
73
|
-
borderColor?: undefined;
|
|
74
|
-
backgroundColor?: undefined;
|
|
75
|
-
borderRadius?: undefined;
|
|
76
|
-
color?: undefined;
|
|
77
|
-
'.anticon-close'?: undefined;
|
|
78
|
-
} | {
|
|
79
|
-
borderRadius: string;
|
|
80
|
-
backgroundColor: string;
|
|
81
|
-
borderColor?: undefined;
|
|
82
|
-
color?: undefined;
|
|
83
|
-
'.anticon-close'?: undefined;
|
|
84
|
-
} | {
|
|
85
|
-
color: string;
|
|
86
|
-
borderColor?: undefined;
|
|
87
|
-
backgroundColor?: undefined;
|
|
88
|
-
borderRadius?: undefined;
|
|
89
|
-
'.anticon-close'?: undefined;
|
|
90
|
-
} | {
|
|
91
|
-
'.anticon-close': {
|
|
92
|
-
fontSize: string;
|
|
93
|
-
color: string;
|
|
94
|
-
};
|
|
95
|
-
borderColor?: undefined;
|
|
96
|
-
backgroundColor?: undefined;
|
|
97
|
-
borderRadius?: undefined;
|
|
98
|
-
color?: undefined;
|
|
99
|
-
};
|
|
100
|
-
};
|
|
101
|
-
declare const useIndexStyle: (props?: {}) => import("../../../config").CommonConfig;
|
|
102
|
-
export default useIndexStyle;
|
|
1
|
+
export declare const useStyle: () => () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,61 +1,66 @@
|
|
|
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
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
return
|
|
60
|
-
})
|
|
61
|
-
|
|
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.", "-picker {\n border-color: var(--", "-color-border-secondary);\n background-color: var(--", "-color-bg-base);\n \n &.", "-picker-disabled {\n color: var(--", "-color-text-quaternary);\n border-color: var(--", "-color-border-secondary) !important;\n background-color: var(--", "-color-fill-tertiary) !important;\n cursor: not-allowed;\n \n .", "-picker-suffix {\n color: var(--", "-color-text-quaternary) !important;\n }\n }\n \n .", "-picker-suffix {\n margin-left: 8px;\n color: var(--", "-color-text-tertiary) !important;\n }\n \n .", "-picker-clear {\n margin-right: 3px;\n }\n \n .", "-picker-range-separator {\n display: flex;\n \n .", "-picker-separator {\n width: 8px;\n height: 1px;\n background: var(--", "-color-text-tertiary);\n \n .anticon {\n display: none;\n }\n }\n }\n}\n\n.", "-picker-dropdown {\n .", "-picker-panel-container {\n border: 1px solid var(--", "-color-border-secondary);\n }\n \n .", "-picker-range-arrow {\n display: none !important;\n }\n \n .", "-picker-time-panel-column > li.", "-picker-time-panel-cell-selected {\n .", "-picker-time-panel-cell-inner {\n background: var(--", "-color-primary-bg);\n }\n }\n \n .", "-picker-now-btn {\n color: var(--", "-color-primary);\n }\n}\n\n.", "-picker-selection-item {\n border-radius: 4px;\n background-color: var(--", "-color-mauve-bg) !important;\n}\n\n.", "-picker-selection-item-content {\n color: var(--", "-color-mauve);\n}\n\n.", "-picker-selection-item-remove {\n .anticon-close {\n font-size: 14px;\n color: var(--", "-color-mauve);\n }\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.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.sparkPrefix;
|
|
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
|
+
}, function (p) {
|
|
47
|
+
return p.antPrefix;
|
|
48
|
+
}, function (p) {
|
|
49
|
+
return p.antPrefix;
|
|
50
|
+
}, function (p) {
|
|
51
|
+
return p.antPrefix;
|
|
52
|
+
}, function (p) {
|
|
53
|
+
return p.antPrefix;
|
|
54
|
+
}, function (p) {
|
|
55
|
+
return p.antPrefix;
|
|
56
|
+
}, function (p) {
|
|
57
|
+
return p.antPrefix;
|
|
58
|
+
}, function (p) {
|
|
59
|
+
return p.antPrefix;
|
|
60
|
+
}, function (p) {
|
|
61
|
+
return p.antPrefix;
|
|
62
|
+
}, function (p) {
|
|
63
|
+
return p.antPrefix;
|
|
64
|
+
}, function (p) {
|
|
65
|
+
return p.antPrefix;
|
|
66
|
+
});
|
|
@@ -10,11 +10,13 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
10
10
|
import { getCommonConfig } from "../../../config";
|
|
11
11
|
import { Descriptions as AntdDescriptions, theme } from 'antd';
|
|
12
12
|
import classNames from 'classnames';
|
|
13
|
-
import
|
|
13
|
+
import { useStyle } from "./index.style";
|
|
14
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
16
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
17
|
var Descriptions = function Descriptions(props) {
|
|
16
18
|
var _token$Descriptions$v, _token$Descriptions$v2;
|
|
17
|
-
|
|
19
|
+
var Style = useStyle();
|
|
18
20
|
var className = props.className,
|
|
19
21
|
layout = props.layout,
|
|
20
22
|
_props$colon = props.colon,
|
|
@@ -25,13 +27,15 @@ var Descriptions = function Descriptions(props) {
|
|
|
25
27
|
antPrefix = _getCommonConfig.antPrefix;
|
|
26
28
|
var _theme$useToken = theme.useToken(),
|
|
27
29
|
token = _theme$useToken.token;
|
|
28
|
-
return /*#__PURE__*/
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
30
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
31
|
+
children: [/*#__PURE__*/_jsx(Style, {}), /*#__PURE__*/_jsx(AntdDescriptions, _objectSpread({
|
|
32
|
+
className: classNames(className, layout === 'vertical' && "".concat(antPrefix, "-descriptions-vertical")),
|
|
33
|
+
layout: layout,
|
|
34
|
+
colon: colon,
|
|
35
|
+
style: _objectSpread(_defineProperty(_defineProperty({}, "--".concat(antPrefix, "-descriptions-vertical-label-padding-bottom"), "".concat( // @ts-ignore
|
|
36
|
+
(_token$Descriptions$v = token.Descriptions.verticalLabelPaddingBottom) !== null && _token$Descriptions$v !== void 0 ? _token$Descriptions$v : 4, "px")), "--".concat(antPrefix, "-descriptions-vertical-content-padding-bottom"), "".concat( // @ts-ignore
|
|
37
|
+
(_token$Descriptions$v2 = token.Descriptions.verticalContentPaddingBottom) !== null && _token$Descriptions$v2 !== void 0 ? _token$Descriptions$v2 : 24, "px")), style)
|
|
38
|
+
}, restProps))]
|
|
39
|
+
});
|
|
36
40
|
};
|
|
37
41
|
export default Descriptions;
|
|
@@ -1,17 +1 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
[x: string]: {
|
|
3
|
-
[x: string]: {
|
|
4
|
-
color: string;
|
|
5
|
-
lineHeight?: undefined;
|
|
6
|
-
} | {
|
|
7
|
-
lineHeight: string;
|
|
8
|
-
color?: undefined;
|
|
9
|
-
};
|
|
10
|
-
} | {
|
|
11
|
-
[x: string]: {
|
|
12
|
-
paddingBottom: string;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
declare const useIndexStyle: (props?: {}) => import("../../../config").CommonConfig;
|
|
17
|
-
export default useIndexStyle;
|
|
1
|
+
export declare const useStyle: () => () => import("react/jsx-runtime").JSX.Element;
|