@agentscope-ai/design 1.0.32 → 1.0.33-beta.1782184501028

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.
@@ -37,7 +37,7 @@ token, darkMode) {
37
37
  // 输入token,生成主题
38
38
  return {
39
39
  theme: {
40
- cssVar: true,
40
+ cssVar: {},
41
41
  hashed: false,
42
42
  darkMode: darkMode,
43
43
  token: _objectSpread({
@@ -3,7 +3,7 @@ import { Space } from 'antd';
3
3
  import { jsx as _jsx } from "react/jsx-runtime";
4
4
  import { jsxs as _jsxs } from "react/jsx-runtime";
5
5
  export default function () {
6
- var list = ['common', 'epub', 'excel', 'html', 'image', 'md', 'mobi', 'pdf', 'ppt', 'txt', 'web', 'word'];
6
+ var list = ['common', 'epub', 'excel', 'html', 'image', 'md', 'mobi', 'pdf', 'ppt', 'txt', 'web', 'word', 'zip', 'zipGray'];
7
7
  var folderList = ['folder', 'folderGray'];
8
8
  return /*#__PURE__*/_jsxs("div", {
9
9
  children: [/*#__PURE__*/_jsxs(Space, {
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="40" height="40.0000114440918" viewBox="0 0 40 40.0000114440918"><defs><clipPath id="master_svg0_1051_021192"><rect x="0" y="0" width="40" height="40.0000114440918" rx="0"/></clipPath></defs><g clip-path="url(#master_svg0_1051_021192)"><path d="M6.2500007,0L26.250008,0L36.250008,10.000003L36.250008,37.500011C36.250008,38.880718,35.130716,40.000011,33.750008,40.000011L6.2500007,40.000011C4.869288,40.000011,3.75,38.880718,3.75,37.500011L3.75,2.5000007C3.74999961853024,1.1192882,4.869288,0,6.2500007,0Z" fill="#BEC2D3" fill-opacity="1" style="mix-blend-mode:passthrough"/><path d="M22.748047375,24.580008L22.748047375,30.012005C22.748046375,30.762791,22.138829675,31.371105,21.388046775,31.370001L18.608047675,31.370001C17.857264935,31.371107,17.248046875,30.762791,17.248046875,30.012005L17.248046875,24.580008L22.748047375,24.580008ZM21.388046775,27.692007L18.608047675,27.692007L18.608047675,30.420008L21.388048675,30.420008L21.388046775,27.692007ZM22.702046875,19.148003L22.702046875,21.876003L19.970047275,21.876003L19.970047275,19.148001L22.702046875,19.148003ZM20.004047375,0L20.004047375,2.7500002L22.748047375,2.7500002L22.748047375,5.5000005L20.004047375,5.5000005L20.004047375,8.0460014L22.748047375,8.0460014L22.748047375,10.800003L20.004047375,10.800003L20.004047375,13.512003L22.748047375,13.512003L22.748047375,16.228003L20.004047375,16.228003L20.004047375,18.944004L17.248046875,18.944004L17.248046875,16.228003L19.992047775,16.228003L19.992047775,13.512003L17.248046875,13.512003L17.248046875,10.800003L19.992047775,10.800003L19.992047775,8.0460014L17.248046875,8.0460014L17.248046875,5.2960005L19.992047775,5.2960005L19.992047775,2.7500002L17.248046875,2.7500002L17.248046875,0L20.004047375,0Z" fill="#FFFFFF" fill-opacity="1" style="mix-blend-mode:passthrough"/><path d="M26.25,0L36.250003,10.000003L28.7500007,10.000003C27.3692875,10.000003,26.25,8.8807144,26.25,7.5000019L26.25,0Z" fill="#D8DAE5" fill-opacity="1" style="mix-blend-mode:passthrough"/></g></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="40" height="40.0000114440918" viewBox="0 0 40 40.0000114440918"><defs><clipPath id="master_svg0_1051_021183"><rect x="0" y="0" width="40" height="40.0000114440918" rx="0"/></clipPath></defs><g clip-path="url(#master_svg0_1051_021183)"><path d="M6.2500007,0L26.250008,0L36.250008,10.000003L36.250008,37.500011C36.250008,38.880718,35.130716,40.000011,33.750008,40.000011L6.2500007,40.000011C4.869288,40.000011,3.75,38.880718,3.75,37.500011L3.75,2.5000007C3.74999961853024,1.1192882,4.869288,0,6.2500007,0Z" fill="#576A95" fill-opacity="1" style="mix-blend-mode:passthrough"/><path d="M22.748047375,24.580008L22.748047375,30.012005C22.748046375,30.762791,22.138829675,31.371105,21.388046775,31.370001L18.608047675,31.370001C17.857264935,31.371107,17.248046875,30.762791,17.248046875,30.012005L17.248046875,24.580008L22.748047375,24.580008ZM21.388046775,27.692007L18.608047675,27.692007L18.608047675,30.420008L21.388048675,30.420008L21.388046775,27.692007ZM22.702046875,19.148003L22.702046875,21.876003L19.970047275,21.876003L19.970047275,19.148001L22.702046875,19.148003ZM20.004047375,0L20.004047375,2.7500002L22.748047375,2.7500002L22.748047375,5.5000005L20.004047375,5.5000005L20.004047375,8.0460014L22.748047375,8.0460014L22.748047375,10.800003L20.004047375,10.800003L20.004047375,13.512003L22.748047375,13.512003L22.748047375,16.228003L20.004047375,16.228003L20.004047375,18.944004L17.248046875,18.944004L17.248046875,16.228003L19.992047775,16.228003L19.992047775,13.512003L17.248046875,13.512003L17.248046875,10.800003L19.992047775,10.800003L19.992047775,8.0460014L17.248046875,8.0460014L17.248046875,5.2960005L19.992047775,5.2960005L19.992047775,2.7500002L17.248046875,2.7500002L17.248046875,0L20.004047375,0Z" fill="#FFFFFF" fill-opacity="1" style="mix-blend-mode:passthrough"/><path d="M26.25,0L36.250003,10.000003L28.7500007,10.000003C27.3692875,10.000003,26.25,8.8807144,26.25,7.5000019L26.25,0Z" fill="#BBC3D4" fill-opacity="1" style="mix-blend-mode:passthrough"/></g></svg>
@@ -22,6 +22,8 @@ import video from "./icons/video.svg";
22
22
  import audio from "./icons/audio.svg";
23
23
  import folder from "./icons/folder.svg";
24
24
  import folderGray from "./icons/folder-gray.svg";
25
+ import zip from "./icons/zip.svg";
26
+ import zipGray from "./icons/zip-gray.svg";
25
27
  import { useStyle } from "./index.style";
26
28
  import { jsx as _jsx } from "react/jsx-runtime";
27
29
  import { jsxs as _jsxs } from "react/jsx-runtime";
@@ -42,7 +44,9 @@ var maps = {
42
44
  video: video,
43
45
  audio: audio,
44
46
  folder: folder,
45
- folderGray: folderGray
47
+ folderGray: folderGray,
48
+ zip: zip,
49
+ zipGray: zipGray
46
50
  };
47
51
  function getSize(size) {
48
52
  var retSize = size;
@@ -19,7 +19,7 @@ var Image = function Image(props) {
19
19
  antPrefix = _getCommonConfig.antPrefix;
20
20
  var preview = useMemo(function () {
21
21
  var basePreview = {
22
- transitionName: ''
22
+ motionName: ''
23
23
  };
24
24
  var preview = props.preview;
25
25
  if (preview === false) return false;
@@ -38,7 +38,7 @@ var Image = function Image(props) {
38
38
  })]
39
39
  })
40
40
  }, preview), basePreview);
41
- }, [props.preview]);
41
+ }, [antPrefix, props.preview]);
42
42
  return /*#__PURE__*/_jsxs(_Fragment, {
43
43
  children: [/*#__PURE__*/_jsx(Style, {}), /*#__PURE__*/_jsx(AntdImage, _objectSpread({
44
44
  preview: preview
@@ -29,5 +29,6 @@ declare const _default: {
29
29
  destroy: (key?: import("react").Key) => void;
30
30
  config: (config: ConfigOptions) => void;
31
31
  _InternalPanelDoNotUseOrYouWillBeFired: import("react").FC<import("antd/es/message/PurePanel").PurePanelProps>;
32
+ _InternalListDoNotUseOrYouWillBeFired: import("react").FC<import("antd/es/message/PureList").PureListProps>;
32
33
  };
33
34
  export default _default;
@@ -14,5 +14,5 @@ export interface SparkTooltipProps {
14
14
  */
15
15
  maxHeight?: number | string;
16
16
  }
17
- declare const SparkTooltip: import("react").ForwardRefExoticComponent<(SparkTooltipProps & TooltipProps) & import("react").RefAttributes<any>>;
17
+ declare const SparkTooltip: import("react").ForwardRefExoticComponent<SparkTooltipProps & TooltipProps & import("react").RefAttributes<any>>;
18
18
  export default SparkTooltip;
@@ -32,14 +32,23 @@ var SparkTooltip = /*#__PURE__*/forwardRef(function (props, ref) {
32
32
  var _getCommonConfig = getCommonConfig(),
33
33
  sparkPrefix = _getCommonConfig.sparkPrefix,
34
34
  antPrefix = _getCommonConfig.antPrefix;
35
+ var mergedStyles = typeof styles === 'function' ? function (info) {
36
+ var stylesResult = styles(info);
37
+ return _objectSpread(_objectSpread({}, stylesResult), {}, {
38
+ container: _objectSpread({
39
+ maxHeight: maxHeight,
40
+ overflow: 'auto'
41
+ }, stylesResult === null || stylesResult === void 0 ? void 0 : stylesResult.container)
42
+ });
43
+ } : _objectSpread(_objectSpread({}, styles), {}, {
44
+ container: _objectSpread({
45
+ maxHeight: maxHeight,
46
+ overflow: 'auto'
47
+ }, styles === null || styles === void 0 ? void 0 : styles.container)
48
+ });
35
49
  return /*#__PURE__*/_jsxs(_Fragment, {
36
50
  children: [/*#__PURE__*/_jsx(Style, {}), /*#__PURE__*/_jsx(Tooltip, _objectSpread(_objectSpread({}, restProps), {}, {
37
- styles: _objectSpread(_objectSpread({}, styles), {}, {
38
- body: _objectSpread({
39
- maxHeight: maxHeight,
40
- overflow: 'auto'
41
- }, styles.body)
42
- }),
51
+ styles: mergedStyles,
43
52
  arrow: arrow !== null && arrow !== void 0 ? arrow : false,
44
53
  overlayClassName: classNames(overlayClassName, mode === 'light' && "".concat(sparkPrefix, "-tooltip-light")),
45
54
  getPopupContainer: getPopupContainer || function (triggerNode) {
@@ -26,7 +26,8 @@ var fileTypeMap = {
26
26
  ppt: ['.ppt', '.pptx', '.pps', '.ppsx'],
27
27
  txt: ['.txt'],
28
28
  web: ['.web'],
29
- word: ['.doc', '.docx']
29
+ word: ['.doc', '.docx'],
30
+ zip: ['.zip', '.rar', '.7z', '.tar', '.gz', '.tgz']
30
31
  };
31
32
  var getFileType = function getFileType(fileName) {
32
33
  var fileTypeEntries = Object.entries(fileTypeMap);
@@ -1,4 +1,4 @@
1
- export declare function getLang(): "zh-CN" | "en-US";
1
+ export declare function getLang(): "en-US" | "zh-CN";
2
2
  /**
3
3
  * 当前是否是中文语言环境
4
4
  * @returns {boolean}