@agentscope-ai/design 1.0.16 → 1.0.17

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.
Files changed (54) hide show
  1. package/lib/antd/styles/button.style.js +13 -1
  2. package/lib/antd/styles/index.style.js +3 -1
  3. package/lib/antd/styles/tree.style.d.ts +6 -0
  4. package/lib/antd/styles/tree.style.js +18 -0
  5. package/lib/antd/themes/bailianDarkTheme.json +3 -1
  6. package/lib/antd/themes/bailianTheme.json +4 -2
  7. package/lib/antd/themes/carbonDarkTheme.json +3 -1
  8. package/lib/antd/themes/carbonTheme.json +3 -1
  9. package/lib/components/commonComponents/Audio/Control.d.ts +53 -0
  10. package/lib/components/commonComponents/{Video → Audio}/Control.js +18 -15
  11. package/lib/components/commonComponents/Audio/Control.style.d.ts +1 -0
  12. package/lib/components/commonComponents/Audio/Control.style.js +14 -0
  13. package/lib/components/commonComponents/Audio/index.d.ts +14 -0
  14. package/lib/components/commonComponents/Audio/index.js +165 -0
  15. package/lib/components/commonComponents/Audio/index.style.d.ts +1 -0
  16. package/lib/components/commonComponents/Audio/index.style.js +10 -0
  17. package/lib/components/commonComponents/Button/demo/demo1.js +7 -0
  18. package/lib/components/commonComponents/Button/index.js +2 -1
  19. package/lib/components/commonComponents/CollapsePanel/demo/demo1.js +1 -1
  20. package/lib/components/commonComponents/CollapsePanel/index.js +4 -4
  21. package/lib/components/commonComponents/EllipsisTip/index.d.ts +8 -1
  22. package/lib/components/commonComponents/EllipsisTip/index.js +33 -3
  23. package/lib/components/commonComponents/Empty/index.d.ts +6 -0
  24. package/lib/components/commonComponents/Empty/index.js +22 -7
  25. package/lib/components/commonComponents/Empty/index.style.js +1 -1
  26. package/lib/components/commonComponents/Pagination/index.js +33 -42
  27. package/lib/components/commonComponents/Pagination/index.style.js +1 -1
  28. package/lib/components/commonComponents/SliderSelector/index.d.ts +1 -1
  29. package/lib/components/commonComponents/SliderSelector/index.js +8 -4
  30. package/lib/components/commonComponents/Steps/index.js +2 -1
  31. package/lib/components/commonComponents/Steps/index.style.js +5 -1
  32. package/lib/components/commonComponents/Table/index.style.js +27 -1
  33. package/lib/components/commonComponents/Tabs/index.js +9 -8
  34. package/lib/components/commonComponents/Tooltip/demo/demo3.d.ts +3 -0
  35. package/lib/components/commonComponents/Tooltip/demo/demo3.js +25 -0
  36. package/lib/components/commonComponents/Tooltip/index.d.ts +7 -1
  37. package/lib/components/commonComponents/Tooltip/index.js +12 -1
  38. package/lib/components/commonComponents/Tooltip/index.style.js +1 -1
  39. package/lib/components/commonComponents/Video/index.d.ts +2 -6
  40. package/lib/components/commonComponents/Video/index.js +8 -8
  41. package/lib/components/commonComponents/Video/index.style.js +2 -6
  42. package/lib/components/mobileComponents/MobileDrawer/index.style.js +7 -1
  43. package/lib/index.d.ts +2 -1
  44. package/lib/index.js +1 -0
  45. package/lib/libs/env/index.d.ts +1 -1
  46. package/lib/typings.d.ts +12 -0
  47. package/llms/all.llms.txt +570 -561
  48. package/llms/components/commonComponents/Empty/index.zh-CN.llms.txt +1 -0
  49. package/llms/components/commonComponents/Tooltip/index.zh-CN.llms.txt +2 -1
  50. package/llms/docs/guide/tokens&variables.zh-CN.llms.txt +13 -5
  51. package/llms/index.llms.txt +47 -47
  52. package/package.json +3 -3
  53. package/scripts/mcp-docs-server.js +3 -3
  54. package/lib/components/commonComponents/Video/Control.d.ts +0 -19
@@ -1,7 +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 useStyle = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n.", "-drawer {\n .", "-drawer-header {\n padding: 12px 20px;\n border-bottom: none;\n \n .", "-drawer-header-title {\n display: flex;\n flex-direction: row;\n \n .", "-drawer-title {\n font-size: 16px;\n font-weight: 500;\n line-height: 28px;\n color: var(--", "-color-text);\n display: flex;\n justify-content: center;\n padding-right: 32px;\n }\n \n .", "-drawer-close {\n width: 32px;\n height: 32px;\n }\n }\n }\n \n .", "-drawer-body {\n --", "-padding-lg: 20px;\n }\n \n .", "-drawer-footer {\n padding: 16px 20px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n border-top: none;\n \n .", "-drawer-footer-info {\n font-size: 14px;\n line-height: 24px;\n color: var(--", "-color-text-tertiary);\n }\n \n .", "-drawer-footer-buttons {\n display: flex;\n gap: 12px;\n }\n }\n \n .", "-drawer-close {\n color: var(--", "-color-text);\n margin: 0;\n }\n}\n\n.", "-drawer.", "-show-divider {\n .", "-drawer-header {\n border-bottom: 1px solid var(--", "-color-border-secondary);\n }\n \n .", "-drawer-footer {\n border-top: 1px solid var(--", "-color-border-secondary);\n }\n}\n"])), function (p) {
4
+ export var useStyle = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n.", "-drawer {\n .", "-drawer-header {\n padding: 12px 20px;\n border-bottom: none;\n \n .", "-drawer-header-title {\n display: flex;\n flex-direction: row;\n \n .", "-drawer-title {\n font-size: 16px;\n font-weight: 500;\n line-height: 28px;\n color: var(--", "-color-text);\n display: flex;\n justify-content: center;\n padding-right: 32px;\n }\n \n .", "-drawer-close {\n width: 32px;\n height: 32px;\n }\n }\n }\n \n .", "-drawer-body {\n --", "-padding-lg: 20px;\n }\n \n .", "-drawer-footer {\n padding: 16px 20px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n border-top: none;\n \n .", "-drawer-footer-info {\n font-size: 14px;\n line-height: 24px;\n color: var(--", "-color-text-tertiary);\n }\n \n .", "-drawer-footer-buttons {\n display: flex;\n gap: 12px;\n }\n }\n \n .", "-drawer-close {\n color: var(--", "-color-text);\n margin: 0;\n }\n}\n\n.", "-drawer.", "-show-divider {\n .", "-drawer-header {\n border-bottom: 1px solid var(--", "-color-border-secondary);\n }\n \n .", "-drawer-footer {\n border-top: 1px solid var(--", "-color-border-secondary);\n }\n}\n.", "-drawer-bottom {\n .", "-drawer-content-wrapper {\n border-radius: 16px 16px 0 0;\n }\n .", "-drawer-content {\n border-radius: 16px 16px 0 0;\n }\n}\n"])), function (p) {
5
5
  return p.sparkPrefix;
6
6
  }, function (p) {
7
7
  return p.antPrefix;
@@ -41,4 +41,10 @@ export var useStyle = createGlobalStyle(_templateObject || (_templateObject = _t
41
41
  return p.antPrefix;
42
42
  }, function (p) {
43
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;
44
50
  });
package/lib/index.d.ts CHANGED
@@ -48,7 +48,8 @@ export { default as Tag, type SparkTagProps as TagProps, } from './components/co
48
48
  export { default as TimePicker } from './components/commonComponents/TimePicker';
49
49
  export { default as Tooltip, type SparkTooltipProps as TooltipProps, } from './components/commonComponents/Tooltip';
50
50
  export { default as Upload } from './components/commonComponents/Upload';
51
- export { default as Video } from './components/commonComponents/Video';
51
+ export { default as Video, type VideoProps } from './components/commonComponents/Video';
52
+ export { default as Audio, type AudioProps } from './components/commonComponents/Audio';
52
53
  export { FileCard, default as FileIcon, type SparkFileCardProps, type SparkFileIconProps, } from './components/commonComponents/FileIcon';
53
54
  /**
54
55
  * 移动端组件
package/lib/index.js CHANGED
@@ -54,6 +54,7 @@ export { default as TimePicker } from "./components/commonComponents/TimePicker"
54
54
  export { default as Tooltip } from "./components/commonComponents/Tooltip";
55
55
  export { default as Upload } from "./components/commonComponents/Upload";
56
56
  export { default as Video } from "./components/commonComponents/Video";
57
+ export { default as Audio } from "./components/commonComponents/Audio";
57
58
  export { FileCard, default as FileIcon } from "./components/commonComponents/FileIcon";
58
59
 
59
60
  /**
@@ -1,4 +1,4 @@
1
- export declare function getLang(): "en-US" | "zh-CN";
1
+ export declare function getLang(): "zh-CN" | "en-US";
2
2
  /**
3
3
  * 当前是否是中文语言环境
4
4
  * @returns {boolean}
package/lib/typings.d.ts CHANGED
@@ -12,3 +12,15 @@ interface Window {
12
12
  /** 在阿里云viper>应用配置>基础数据中配置的应用配置项 */
13
13
  ALIYUN_CONSOLE_GLOBAL?: any;
14
14
  }
15
+
16
+ // 扩展 antd 的 GlobalToken 类型,添加自定义 token
17
+ declare module 'antd/es/theme/interface' {
18
+ interface GlobalToken {
19
+ /** 自定义灰色主题色 */
20
+ colorSlate?: string;
21
+ /** 自定义灰色主题色悬停态 */
22
+ colorSlateHover?: string;
23
+ /** 自定义灰色主题色背景 */
24
+ colorSlateBg?: string;
25
+ }
26
+ }