@agentscope-ai/design 1.0.24-beta.1767669321337 → 1.0.25-beta.1767765919168
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/button.style.js +1 -3
- package/lib/components/commonComponents/Button/demo/demo1.js +0 -4
- package/lib/components/commonComponents/CodeBlock/index.d.ts +2 -2
- package/lib/components/commonComponents/CodeBlock/index.js +1 -1
- package/lib/components/commonComponents/Empty/demo/demo3.js +6 -0
- package/lib/components/commonComponents/Empty/index.d.ts +1 -1
- package/lib/components/commonComponents/Empty/index.js +9 -0
- package/llms/all.llms.txt +4032 -1
- package/llms/components/commonComponents/Empty/index.zh-CN.llms.txt +1 -0
- package/llms/index.llms.txt +49 -1
- package/package.json +1 -1
- package/llms/docs/guide/musicLofiGenerator.zh-CN.llms.txt +0 -12
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
var _templateObject;
|
|
2
2
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
3
3
|
import createGlobalStyle from "../../libs/createStyle";
|
|
4
|
-
export var useButtonStyle = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n/* \u53D6\u6D88\u6240\u6709button\u7684boxShadow */\nbutton[type=\"button\"].", "-btn {\n font-weight: 500;\n padding-inline: 11px;\n \n span[data-spark-icon] {\n /* @agentscope-ai/icons\u7684\u7279\u6B8A\u903B\u8F91 */\n font-size: 20px;\n }\n \n &.", "-btn-sm {\n padding-inline: 7px;\n \n span[data-spark-icon] {\n /* @agentscope-ai/icons\u7684\u7279\u6B8A\u903B\u8F91 */\n font-size: 16px;\n }\n }\n \n &.", "-btn-lg {\n span[data-spark-icon] {\n /* @agentscope-ai/icons\u7684\u7279\u6B8A\u903B\u8F91 */\n font-size: 24px;\n }\n }\n}\n\n.", "-btn-default {\n border-color: var(--", "-color-border-secondary);\n}\n\n.", "-btn-textCompact:hover {\n color: var(--", "-color-text-tertiary) !important;\n}\n\n.", "-btn.", "-btn-default.", "-btn-dangerous:not(:disabled):not(.", "-btn-disabled) {\n border-color: transparent;\n background-color: var(--", "-color-error-bg);\n color: var(--", "-color-error);\n \n &:hover {\n background-color: var(--", "-color-error-bg-hover);\n border-color: transparent;\n color: var(--", "-color-error-hover);\n }\n}\n\n.", "-btn-color-dangerous.", "-btn-variant-solid:disabled,\n.", "-btn-color-dangerous.", "-btn-variant-solid.", "-btn-disabled {\n border-color: transparent;\n background-color: var(--", "-color-fill-disable);\n color: var(--", "-color-text-white);\n}\n\n.", "-btn-primary {\n color: var(--", "-color-text-on-primary);\n}\n.", "-btn-primary.", "-btn-variant-solid:not(:disabled):not(.", "-btn-
|
|
5
|
-
return p.antPrefix;
|
|
6
|
-
}, function (p) {
|
|
4
|
+
export var useButtonStyle = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n/* \u53D6\u6D88\u6240\u6709button\u7684boxShadow */\nbutton[type=\"button\"].", "-btn {\n font-weight: 500;\n padding-inline: 11px;\n \n span[data-spark-icon] {\n /* @agentscope-ai/icons\u7684\u7279\u6B8A\u903B\u8F91 */\n font-size: 20px;\n }\n \n &.", "-btn-sm {\n padding-inline: 7px;\n \n span[data-spark-icon] {\n /* @agentscope-ai/icons\u7684\u7279\u6B8A\u903B\u8F91 */\n font-size: 16px;\n }\n }\n \n &.", "-btn-lg {\n span[data-spark-icon] {\n /* @agentscope-ai/icons\u7684\u7279\u6B8A\u903B\u8F91 */\n font-size: 24px;\n }\n }\n}\n\n.", "-btn-default {\n border-color: var(--", "-color-border-secondary);\n}\n\n.", "-btn-textCompact:hover {\n color: var(--", "-color-text-tertiary) !important;\n}\n\n.", "-btn.", "-btn-default.", "-btn-dangerous:not(:disabled):not(.", "-btn-disabled) {\n border-color: transparent;\n background-color: var(--", "-color-error-bg);\n color: var(--", "-color-error);\n \n &:hover {\n background-color: var(--", "-color-error-bg-hover);\n border-color: transparent;\n color: var(--", "-color-error-hover);\n }\n}\n\n.", "-btn-color-dangerous.", "-btn-variant-solid:disabled,\n.", "-btn-color-dangerous.", "-btn-variant-solid.", "-btn-disabled {\n border-color: transparent;\n background-color: var(--", "-color-fill-disable);\n color: var(--", "-color-text-white);\n}\n\n.", "-btn-primary {\n color: var(--", "-color-text-on-primary);\n}\n.", "-btn-primary.", "-btn-variant-solid:not(:disabled):not(.", "-btn-disabled):hover {\n color: var(--", "-color-text-on-primary);\n}\n\n.", "-btn-primary:disabled {\n background: var(--", "-color-fill-disable);\n color: var(--", "-color-text-white);\n border-color: transparent;\n}\n\n.", "-btn-default:disabled {\n background: var(--", "-color-bg-base);\n color: var(--", "-color-text-tertiary);\n border-color: var(--", "-color-border-secondary);\n}\n\n/* Keep white text color for primaryLess buttons */\n.spark-button-primaryLess.", "-btn-primary {\n color: var(--", "-color-text-white);\n}\n.spark-button-primaryLess.", "-btn-primary.", "-btn-variant-solid:not(:disabled):not(.", "-btn-disabled):hover {\n color: var(--", "-color-text-white);\n}\n"])), function (p) {
|
|
7
5
|
return p.antPrefix;
|
|
8
6
|
}, function (p) {
|
|
9
7
|
return p.antPrefix;
|
|
@@ -20,10 +20,6 @@ export default (function () {
|
|
|
20
20
|
}), /*#__PURE__*/_jsx(Button, {
|
|
21
21
|
type: "primaryLess",
|
|
22
22
|
children: "PrimaryLess"
|
|
23
|
-
}), /*#__PURE__*/_jsx(Button, {
|
|
24
|
-
type: "primary",
|
|
25
|
-
ghost: true,
|
|
26
|
-
children: "Ghost"
|
|
27
23
|
})]
|
|
28
24
|
}), /*#__PURE__*/_jsxs(Flex, {
|
|
29
25
|
gap: 16,
|
|
@@ -8,7 +8,7 @@ export interface CodeBlockProps {
|
|
|
8
8
|
* @description 值
|
|
9
9
|
* @descriptionEn Value
|
|
10
10
|
*/
|
|
11
|
-
value
|
|
11
|
+
value: string;
|
|
12
12
|
/**
|
|
13
13
|
* @description 类名
|
|
14
14
|
* @descriptionEn Class name
|
|
@@ -23,7 +23,7 @@ export interface CodeBlockProps {
|
|
|
23
23
|
* @descriptionEn Read only
|
|
24
24
|
*/
|
|
25
25
|
readOnly?: boolean;
|
|
26
|
-
onChange?: (value
|
|
26
|
+
onChange?: (value: string) => void;
|
|
27
27
|
}
|
|
28
28
|
export declare const langExtensionsMap: Record<string, any[]>;
|
|
29
29
|
export declare const beautifulJson: (val?: string, count?: number) => string;
|
|
@@ -85,7 +85,7 @@ var CodeMirrorWrapper = function CodeMirrorWrapper(props) {
|
|
|
85
85
|
className: cls("".concat(sparkPrefix, "-code-block"), props.className),
|
|
86
86
|
children: /*#__PURE__*/_jsx(CodeMirror, _objectSpread({
|
|
87
87
|
extensions: extensions,
|
|
88
|
-
value: props.language === 'json' ? beautifulJson(props.value
|
|
88
|
+
value: props.language === 'json' ? beautifulJson(props.value) : props.value,
|
|
89
89
|
theme: getTheme
|
|
90
90
|
}, omit(props, ['language', 'theme', 'extensions', 'value'])))
|
|
91
91
|
});
|
|
@@ -27,6 +27,12 @@ export default (function () {
|
|
|
27
27
|
description: "Please add your models",
|
|
28
28
|
okText: "Retry",
|
|
29
29
|
onOk: function onOk() {}
|
|
30
|
+
}), /*#__PURE__*/_jsx(Empty, {
|
|
31
|
+
type: "noChat",
|
|
32
|
+
title: "Empty Chat",
|
|
33
|
+
description: "Please add your chat",
|
|
34
|
+
okText: "Retry",
|
|
35
|
+
onOk: function onOk() {}
|
|
30
36
|
}), /*#__PURE__*/_jsx(Empty, {
|
|
31
37
|
type: "stayTuned",
|
|
32
38
|
title: "Stay Tuned!",
|
|
@@ -6,7 +6,7 @@ export interface SparkEmptyProps {
|
|
|
6
6
|
* @descriptionEn type of the empty
|
|
7
7
|
* @default 'noData'
|
|
8
8
|
*/
|
|
9
|
-
type?: 'noData' | 'networkError' | '404' | 'arrears' | 'desktopOnly' | 'noAudio' | 'noImage' | 'noVideo' | 'noAccess' | 'error' | 'noModel' | 'noApp' | 'success' | 'failed' | 'inProgress' | 'stayTuned';
|
|
9
|
+
type?: 'noData' | 'networkError' | '404' | 'arrears' | 'desktopOnly' | 'noAudio' | 'noImage' | 'noVideo' | 'noAccess' | 'error' | 'noChat' | 'noModel' | 'noApp' | 'success' | 'failed' | 'inProgress' | 'stayTuned';
|
|
10
10
|
/**
|
|
11
11
|
* @description 是否显示纹理
|
|
12
12
|
* @descriptionEn whether to show texture
|
|
@@ -115,6 +115,15 @@ var IMAGE_MAP = {
|
|
|
115
115
|
'#615CED': 'color-primary'
|
|
116
116
|
}
|
|
117
117
|
},
|
|
118
|
+
noChat: {
|
|
119
|
+
url: 'https://img.alicdn.com/imgextra/i3/O1CN014KyRst1w9QT51V8Yx_!!6000000006265-55-tps-108-108.svg',
|
|
120
|
+
tokenMap: {
|
|
121
|
+
'#FFFFFF': 'color-bg-base',
|
|
122
|
+
'#E6E8EE': 'color-border-secondary',
|
|
123
|
+
'#615CED': 'color-primary',
|
|
124
|
+
'#CDD0DC': 'color-border'
|
|
125
|
+
}
|
|
126
|
+
},
|
|
118
127
|
noModel: {
|
|
119
128
|
url: 'https://gw.alicdn.com/imgextra/i2/O1CN01BSPmLi1iaXGByjbne_!!6000000004429-55-tps-108-108.svg',
|
|
120
129
|
tokenMap: {
|