@agentscope-ai/design 1.0.7 → 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.
Files changed (211) hide show
  1. package/lib/antd/styles/alert.style.d.ts +2 -10
  2. package/lib/antd/styles/alert.style.js +11 -12
  3. package/lib/antd/styles/breadcrumb.style.d.ts +2 -18
  4. package/lib/antd/styles/breadcrumb.style.js +13 -15
  5. package/lib/antd/styles/button.style.d.ts +2 -80
  6. package/lib/antd/styles/button.style.js +63 -47
  7. package/lib/antd/styles/dropdown.style.d.ts +2 -15
  8. package/lib/antd/styles/dropdown.style.js +27 -16
  9. package/lib/antd/styles/floatButton.style.d.ts +2 -8
  10. package/lib/antd/styles/floatButton.style.js +13 -12
  11. package/lib/antd/styles/index.style.d.ts +4 -18
  12. package/lib/antd/styles/index.style.js +52 -53
  13. package/lib/antd/styles/inputNumber.style.d.ts +2 -18
  14. package/lib/antd/styles/inputNumber.style.js +23 -17
  15. package/lib/antd/styles/message.style.d.ts +2 -5
  16. package/lib/antd/styles/message.style.js +9 -10
  17. package/lib/antd/styles/notification.style.d.ts +2 -46
  18. package/lib/antd/styles/notification.style.js +31 -29
  19. package/lib/antd/styles/popover.style.d.ts +2 -13
  20. package/lib/antd/styles/popover.style.js +15 -14
  21. package/lib/antd/styles/radio.style.d.ts +2 -24
  22. package/lib/antd/styles/radio.style.js +29 -18
  23. package/lib/antd/styles/segment.style.d.ts +2 -7
  24. package/lib/antd/styles/segment.style.js +11 -12
  25. package/lib/antd/styles/select.style.d.ts +2 -31
  26. package/lib/antd/styles/select.style.js +51 -28
  27. package/lib/antd/styles/slider.style.d.ts +2 -22
  28. package/lib/antd/styles/slider.style.js +19 -21
  29. package/lib/antd/styles/table.style.d.ts +2 -5
  30. package/lib/antd/styles/table.style.js +7 -10
  31. package/lib/antd/styles/tooltip.style.d.ts +2 -8
  32. package/lib/antd/styles/tooltip.style.js +13 -11
  33. package/lib/antd/themes/_readme.txt +1 -0
  34. package/lib/antd/themes/bailianTheme.json +1 -1
  35. package/lib/antd/themes/generateThemeByToken.d.ts +1 -1
  36. package/lib/antd/themes/generateThemeByToken.js +1 -1
  37. package/lib/components/commonComponents/AlertDialog/demo/demo1.js +13 -79
  38. package/lib/components/commonComponents/AlertDialog/demo/demo2.js +44 -64
  39. package/lib/components/commonComponents/AlertDialog/index.d.ts +14 -1
  40. package/lib/components/commonComponents/AlertDialog/index.js +25 -17
  41. package/lib/components/commonComponents/AlertDialog/index.style.d.ts +1 -17
  42. package/lib/components/commonComponents/AlertDialog/index.style.js +16 -30
  43. package/lib/components/commonComponents/Anchor/demo/demo1.d.ts +0 -4
  44. package/lib/components/commonComponents/Anchor/demo/demo1.js +3 -4
  45. package/lib/components/commonComponents/Anchor/demo/demo2.d.ts +0 -4
  46. package/lib/components/commonComponents/Anchor/demo/demo2.js +3 -5
  47. package/lib/components/commonComponents/Anchor/index.js +7 -3
  48. package/lib/components/commonComponents/Anchor/index.style.d.ts +1 -14
  49. package/lib/components/commonComponents/Anchor/index.style.js +18 -23
  50. package/lib/components/commonComponents/Avatar/index.js +11 -7
  51. package/lib/components/commonComponents/Avatar/index.style.d.ts +1 -7
  52. package/lib/components/commonComponents/Avatar/index.style.js +6 -21
  53. package/lib/components/commonComponents/Breadcrumb/index.js +10 -7
  54. package/lib/components/commonComponents/Breadcrumb/index.style.d.ts +1 -107
  55. package/lib/components/commonComponents/Breadcrumb/index.style.js +32 -60
  56. package/lib/components/commonComponents/Button/index.js +27 -5
  57. package/lib/components/commonComponents/Card/index.js +23 -20
  58. package/lib/components/commonComponents/Card/index.style.d.ts +1 -71
  59. package/lib/components/commonComponents/Card/index.style.js +24 -46
  60. package/lib/components/commonComponents/Checkbox/index.js +13 -10
  61. package/lib/components/commonComponents/Checkbox/index.style.d.ts +1 -34
  62. package/lib/components/commonComponents/Checkbox/index.style.js +50 -38
  63. package/lib/components/commonComponents/CodeBlock/index.js +16 -13
  64. package/lib/components/commonComponents/CodeBlock/index.style.d.ts +1 -354
  65. package/lib/components/commonComponents/CodeBlock/index.style.js +26 -72
  66. package/lib/components/commonComponents/Collapse/index.js +7 -3
  67. package/lib/components/commonComponents/Collapse/index.style.d.ts +1 -57
  68. package/lib/components/commonComponents/Collapse/index.style.js +34 -47
  69. package/lib/components/commonComponents/CollapsePanel/index.d.ts +10 -0
  70. package/lib/components/commonComponents/CollapsePanel/index.js +56 -44
  71. package/lib/components/commonComponents/CollapsePanel/index.style.d.ts +1 -287
  72. package/lib/components/commonComponents/CollapsePanel/index.style.js +42 -97
  73. package/lib/components/commonComponents/ConfigProvider/index.js +11 -8
  74. package/lib/components/commonComponents/DatePicker/index.js +45 -39
  75. package/lib/components/commonComponents/DatePicker/index.style.d.ts +1 -102
  76. package/lib/components/commonComponents/DatePicker/index.style.js +66 -61
  77. package/lib/components/commonComponents/Descriptions/index.js +14 -10
  78. package/lib/components/commonComponents/Descriptions/index.style.d.ts +1 -17
  79. package/lib/components/commonComponents/Descriptions/index.style.js +32 -29
  80. package/lib/components/commonComponents/Drawer/Confirm.d.ts +1 -1
  81. package/lib/components/commonComponents/Drawer/Confirm.js +26 -24
  82. package/lib/components/commonComponents/Drawer/index.js +15 -11
  83. package/lib/components/commonComponents/Drawer/index.style.d.ts +1 -84
  84. package/lib/components/commonComponents/Drawer/index.style.js +44 -54
  85. package/lib/components/commonComponents/Dropdown/index.d.ts +1 -2
  86. package/lib/components/commonComponents/Dropdown/index.js +15 -12
  87. package/lib/components/commonComponents/Dropdown/index.style.d.ts +1 -78
  88. package/lib/components/commonComponents/Dropdown/index.style.js +48 -40
  89. package/lib/components/commonComponents/EllipsisTip/index.js +14 -10
  90. package/lib/components/commonComponents/EllipsisTip/index.style.d.ts +1 -10
  91. package/lib/components/commonComponents/EllipsisTip/index.style.js +6 -24
  92. package/lib/components/commonComponents/Empty/index.js +46 -44
  93. package/lib/components/commonComponents/Empty/index.style.d.ts +1 -113
  94. package/lib/components/commonComponents/Empty/index.style.js +22 -51
  95. package/lib/components/commonComponents/Empty/svg/Illustrate.js +2 -2
  96. package/lib/components/commonComponents/FileIcon/index.js +27 -24
  97. package/lib/components/commonComponents/FileIcon/index.style.d.ts +1 -61
  98. package/lib/components/commonComponents/FileIcon/index.style.js +20 -42
  99. package/lib/components/commonComponents/FloatButton/demo/demo1.js +1 -1
  100. package/lib/components/commonComponents/FloatButton/demo/demo2.js +1 -1
  101. package/lib/components/commonComponents/Form/index.js +6 -5
  102. package/lib/components/commonComponents/Form/index.style.d.ts +1 -53
  103. package/lib/components/commonComponents/Form/index.style.js +26 -38
  104. package/lib/components/commonComponents/HelpIcon/index.js +25 -20
  105. package/lib/components/commonComponents/HelpIcon/index.style.d.ts +1 -16
  106. package/lib/components/commonComponents/HelpIcon/index.style.js +16 -29
  107. package/lib/components/commonComponents/IconButton/index.js +15 -11
  108. package/lib/components/commonComponents/IconButton/index.style.d.ts +1 -11
  109. package/lib/components/commonComponents/IconButton/index.style.js +10 -24
  110. package/lib/components/commonComponents/IconFont/index.d.ts +1 -2
  111. package/lib/components/commonComponents/IconFont/index.js +14 -9
  112. package/lib/components/commonComponents/IconFont/index.style.d.ts +1 -67
  113. package/lib/components/commonComponents/IconFont/index.style.js +14 -44
  114. package/lib/components/commonComponents/Image/index.js +8 -5
  115. package/lib/components/commonComponents/Image/index.style.d.ts +1 -22
  116. package/lib/components/commonComponents/Image/index.style.js +16 -30
  117. package/lib/components/commonComponents/Input/index.js +17 -11
  118. package/lib/components/commonComponents/Input/index.style.d.ts +1 -70
  119. package/lib/components/commonComponents/Input/index.style.js +46 -42
  120. package/lib/components/commonComponents/Modal/index.js +19 -16
  121. package/lib/components/commonComponents/Modal/index.style.d.ts +1 -111
  122. package/lib/components/commonComponents/Modal/index.style.js +54 -72
  123. package/lib/components/commonComponents/Pagination/index.d.ts +1 -1
  124. package/lib/components/commonComponents/Pagination/index.js +36 -31
  125. package/lib/components/commonComponents/Pagination/index.style.d.ts +1 -49
  126. package/lib/components/commonComponents/Pagination/index.style.js +26 -42
  127. package/lib/components/commonComponents/Popconfirm/demo/demo1.js +13 -0
  128. package/lib/components/commonComponents/Popconfirm/demo/demo2.d.ts +3 -0
  129. package/lib/components/commonComponents/Popconfirm/demo/demo2.js +49 -0
  130. package/lib/components/commonComponents/Popconfirm/index.d.ts +9 -2
  131. package/lib/components/commonComponents/Popconfirm/index.js +50 -8
  132. package/lib/components/commonComponents/PromptsEditor/VarRender.d.ts +6 -0
  133. package/lib/components/commonComponents/PromptsEditor/VarRender.js +84 -0
  134. package/lib/components/commonComponents/PromptsEditor/VarSelectInput.d.ts +6 -0
  135. package/lib/components/commonComponents/PromptsEditor/VarSelectInput.js +60 -0
  136. package/lib/components/commonComponents/PromptsEditor/demo/basic.d.ts +1 -0
  137. package/lib/components/commonComponents/PromptsEditor/demo/basic.js +30 -0
  138. package/lib/components/commonComponents/PromptsEditor/index.d.ts +42 -0
  139. package/lib/components/commonComponents/PromptsEditor/index.js +134 -0
  140. package/lib/components/commonComponents/RadioButton/index.js +9 -10
  141. package/lib/components/commonComponents/RadioButton/index.style.d.ts +1 -72
  142. package/lib/components/commonComponents/RadioButton/index.style.js +52 -63
  143. package/lib/components/commonComponents/Result/index.style.d.ts +1 -3
  144. package/lib/components/commonComponents/Result/index.style.js +4 -16
  145. package/lib/components/commonComponents/Select/demo/demo2.js +0 -1
  146. package/lib/components/commonComponents/SlateEditor/elements/Var.js +11 -8
  147. package/lib/components/commonComponents/SlateEditor/elements/index.style.d.ts +1 -14
  148. package/lib/components/commonComponents/SlateEditor/elements/index.style.js +4 -21
  149. package/lib/components/commonComponents/SlateEditor/index.js +34 -31
  150. package/lib/components/commonComponents/SlateEditor/index.style.d.ts +1 -28
  151. package/lib/components/commonComponents/SlateEditor/index.style.js +4 -36
  152. package/lib/components/commonComponents/Slider/{slider.input.d.ts → Input/index.d.ts} +1 -1
  153. package/lib/components/commonComponents/Slider/Input/index.js +91 -0
  154. package/lib/components/commonComponents/Slider/Input/index.style.d.ts +1 -0
  155. package/lib/components/commonComponents/Slider/Input/index.style.js +22 -0
  156. package/lib/components/commonComponents/Slider/demo/demo4.d.ts +3 -0
  157. package/lib/components/commonComponents/Slider/demo/demo4.js +33 -0
  158. package/lib/components/commonComponents/Slider/demo/demo5.d.ts +3 -0
  159. package/lib/components/commonComponents/Slider/demo/demo5.js +34 -0
  160. package/lib/components/commonComponents/Slider/index.d.ts +2 -2
  161. package/lib/components/commonComponents/Slider/index.js +11 -7
  162. package/lib/components/commonComponents/Slider/index.style.d.ts +1 -7
  163. package/lib/components/commonComponents/Slider/index.style.js +10 -22
  164. package/lib/components/commonComponents/SliderSelector/index.js +38 -35
  165. package/lib/components/commonComponents/SliderSelector/index.style.d.ts +1 -38
  166. package/lib/components/commonComponents/SliderSelector/index.style.js +20 -37
  167. package/lib/components/commonComponents/Spinner/index.d.ts +4 -4
  168. package/lib/components/commonComponents/Spinner/index.js +28 -24
  169. package/lib/components/commonComponents/Spinner/index.style.d.ts +1 -79
  170. package/lib/components/commonComponents/Spinner/index.style.js +30 -61
  171. package/lib/components/commonComponents/Statistic/index.js +7 -3
  172. package/lib/components/commonComponents/Statistic/index.style.d.ts +1 -15
  173. package/lib/components/commonComponents/Statistic/index.style.js +14 -26
  174. package/lib/components/commonComponents/Steps/index.js +10 -6
  175. package/lib/components/commonComponents/Steps/index.style.d.ts +1 -162
  176. package/lib/components/commonComponents/Steps/index.style.js +68 -78
  177. package/lib/components/commonComponents/Switch/index.js +13 -10
  178. package/lib/components/commonComponents/Switch/index.style.d.ts +1 -25
  179. package/lib/components/commonComponents/Switch/index.style.js +22 -33
  180. package/lib/components/commonComponents/Table/index.js +10 -6
  181. package/lib/components/commonComponents/Table/index.style.d.ts +1 -52
  182. package/lib/components/commonComponents/Table/index.style.js +18 -32
  183. package/lib/components/commonComponents/Tabs/index.js +35 -29
  184. package/lib/components/commonComponents/Tabs/index.style.d.ts +1 -55
  185. package/lib/components/commonComponents/Tabs/index.style.js +38 -44
  186. package/lib/components/commonComponents/Tag/demo/demo2.js +0 -1
  187. package/lib/components/commonComponents/Tag/demo/demo3.js +0 -2
  188. package/lib/components/commonComponents/Tag/index.js +14 -10
  189. package/lib/components/commonComponents/Tag/index.style.d.ts +1 -56
  190. package/lib/components/commonComponents/Tag/index.style.js +54 -58
  191. package/lib/components/commonComponents/TimePicker/index.js +36 -30
  192. package/lib/components/commonComponents/TimePicker/index.style.d.ts +1 -71
  193. package/lib/components/commonComponents/TimePicker/index.style.js +54 -50
  194. package/lib/components/commonComponents/Tooltip/index.js +14 -13
  195. package/lib/components/commonComponents/Tooltip/index.style.d.ts +1 -24
  196. package/lib/components/commonComponents/Tooltip/index.style.js +26 -32
  197. package/lib/components/commonComponents/Upload/index.js +15 -9
  198. package/lib/components/commonComponents/Upload/index.style.d.ts +1 -125
  199. package/lib/components/commonComponents/Upload/index.style.js +80 -90
  200. package/lib/index.d.ts +3 -2
  201. package/lib/index.js +10 -5
  202. package/lib/libs/env/index.js +1 -1
  203. package/lib/libs/newCreateStyle/index.d.ts +7 -0
  204. package/lib/libs/newCreateStyle/index.js +26 -0
  205. package/llms/index.llms.txt +43 -43
  206. package/package.json +11 -8
  207. package/lib/components/commonComponents/Popconfirm/demo/demo.js +0 -155
  208. package/lib/components/commonComponents/Slider/slider.input.js +0 -76
  209. package/lib/components/commonComponents/spark.style.d.ts +0 -45
  210. package/lib/components/commonComponents/spark.style.js +0 -62
  211. /package/lib/components/commonComponents/Popconfirm/demo/{demo.d.ts → demo1.d.ts} +0 -0
@@ -15,10 +15,12 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
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
16
  import { Avatar } from 'antd';
17
17
  import { forwardRef, useEffect, useState } from 'react';
18
- import useIndexStyle from "./index.style";
18
+ import { useStyle } from "./index.style";
19
19
  import { jsx as _jsx } from "react/jsx-runtime";
20
+ import { Fragment as _Fragment } from "react/jsx-runtime";
21
+ import { jsxs as _jsxs } from "react/jsx-runtime";
20
22
  var SparkAvatar = /*#__PURE__*/forwardRef(function (props, ref) {
21
- useIndexStyle();
23
+ var Style = useStyle();
22
24
  var children = props.children,
23
25
  restProps = _objectWithoutProperties(props, _excluded);
24
26
  var _useState = useState(props.children),
@@ -32,10 +34,12 @@ var SparkAvatar = /*#__PURE__*/forwardRef(function (props, ref) {
32
34
  }
33
35
  setModifiedChildren(children);
34
36
  }, [children]);
35
- return /*#__PURE__*/_jsx(Avatar, _objectSpread(_objectSpread({
36
- ref: ref
37
- }, restProps), {}, {
38
- children: modifiedChildren
39
- }));
37
+ return /*#__PURE__*/_jsxs(_Fragment, {
38
+ children: [/*#__PURE__*/_jsx(Style, {}), /*#__PURE__*/_jsx(Avatar, _objectSpread(_objectSpread({
39
+ ref: ref
40
+ }, restProps), {}, {
41
+ children: modifiedChildren
42
+ }))]
43
+ });
40
44
  });
41
45
  export default SparkAvatar;
@@ -1,7 +1 @@
1
- export declare function getIndexStyleData(params: any): {
2
- [x: string]: {
3
- cursor: string;
4
- };
5
- };
6
- declare const useIndexStyle: (props?: {}) => import("../../../config").CommonConfig;
7
- export default useIndexStyle;
1
+ export declare const useStyle: () => () => import("react/jsx-runtime").JSX.Element;
@@ -1,21 +1,6 @@
1
- var _excluded = ["css"];
2
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
3
- 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; }
4
- 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; }
5
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
7
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
8
- import createStyle from "../../../libs/createStyle";
9
- export function getIndexStyleData(params) {
10
- var antPrefix = params.antPrefix;
11
- return _defineProperty({}, ".".concat(antPrefix, "-avatar"), {
12
- cursor: 'default'
13
- });
14
- }
15
- var useIndexStyle = createStyle(function (_ref2) {
16
- var css = _ref2.css,
17
- params = _objectWithoutProperties(_ref2, _excluded);
18
- var result = css(getIndexStyleData(params));
19
- return result;
20
- });
21
- 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.", "-avatar {\n cursor: default;\n}\n"])), function (p) {
5
+ return p.antPrefix;
6
+ });
@@ -11,16 +11,17 @@ import { SparkDownLine } from '@agentscope-ai/icons';
11
11
  import { Avatar, Breadcrumb, Dropdown } from 'antd';
12
12
  import React from 'react';
13
13
  import { getCommonConfig } from "../../../config";
14
- import useIndexStyle from "./index.style";
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 SparkBreadcrumb = function SparkBreadcrumb(_ref) {
18
19
  var _ref$items = _ref.items,
19
20
  items = _ref$items === void 0 ? [] : _ref$items,
20
21
  restProps = _objectWithoutProperties(_ref, _excluded);
21
22
  var _getCommonConfig = getCommonConfig(),
22
23
  sparkPrefix = _getCommonConfig.sparkPrefix;
23
- useIndexStyle();
24
+ var Style = useStyle();
24
25
  var processedItems = React.useMemo(function () {
25
26
  return items.map(function (item) {
26
27
  var titleContent = item.title;
@@ -35,7 +36,7 @@ var SparkBreadcrumb = function SparkBreadcrumb(_ref) {
35
36
  contentParts.push( /*#__PURE__*/_jsxs("span", {
36
37
  className: "".concat(sparkPrefix, "-breadcrumb-dropdown-title"),
37
38
  children: [item.title, /*#__PURE__*/_jsx(SparkDownLine, {
38
- size: "small"
39
+ size: 16
39
40
  })]
40
41
  }, "title"));
41
42
  } else {
@@ -66,9 +67,11 @@ var SparkBreadcrumb = function SparkBreadcrumb(_ref) {
66
67
  });
67
68
  });
68
69
  }, [items]);
69
- return /*#__PURE__*/_jsx(Breadcrumb, _objectSpread(_objectSpread({}, restProps), {}, {
70
- items: processedItems,
71
- className: "".concat(sparkPrefix, "-breadcrumb ").concat(restProps.className || '')
72
- }));
70
+ return /*#__PURE__*/_jsxs(_Fragment, {
71
+ children: [/*#__PURE__*/_jsx(Style, {}), /*#__PURE__*/_jsx(Breadcrumb, _objectSpread(_objectSpread({}, restProps), {}, {
72
+ items: processedItems,
73
+ className: "".concat(sparkPrefix, "-breadcrumb ").concat(restProps.className || '')
74
+ }))]
75
+ });
73
76
  };
74
77
  export default SparkBreadcrumb;
@@ -1,107 +1 @@
1
- export declare function getIndexStyleData(params: any): {
2
- [x: string]: {
3
- [x: string]: {
4
- [x: string]: {
5
- color: string;
6
- display: string;
7
- alignItems: string;
8
- };
9
- color?: undefined;
10
- height?: undefined;
11
- '&:hover'?: undefined;
12
- display?: undefined;
13
- alignItems?: undefined;
14
- cursor?: undefined;
15
- gap?: undefined;
16
- justifyContent?: undefined;
17
- } | {
18
- color: string;
19
- height: string;
20
- '&:hover': {
21
- backgroundColor: string;
22
- };
23
- display?: undefined;
24
- alignItems?: undefined;
25
- cursor?: undefined;
26
- gap?: undefined;
27
- justifyContent?: undefined;
28
- } | {
29
- color: string;
30
- height?: undefined;
31
- '&:hover'?: undefined;
32
- display?: undefined;
33
- alignItems?: undefined;
34
- cursor?: undefined;
35
- gap?: undefined;
36
- justifyContent?: undefined;
37
- } | {
38
- display: string;
39
- alignItems: string;
40
- color?: undefined;
41
- height?: undefined;
42
- '&:hover'?: undefined;
43
- cursor?: undefined;
44
- gap?: undefined;
45
- justifyContent?: undefined;
46
- } | {
47
- [x: string]: string | number | {
48
- width: string;
49
- height: string;
50
- };
51
- cursor: string;
52
- display: string;
53
- alignItems: string;
54
- gap: number;
55
- color?: undefined;
56
- height?: undefined;
57
- '&:hover'?: undefined;
58
- justifyContent?: undefined;
59
- } | {
60
- display: string;
61
- alignItems: string;
62
- gap: number;
63
- color?: undefined;
64
- height?: undefined;
65
- '&:hover'?: undefined;
66
- cursor?: undefined;
67
- justifyContent?: undefined;
68
- } | {
69
- [x: string]: string | number | {
70
- fontSize: string;
71
- };
72
- display: string;
73
- alignItems: string;
74
- gap: number;
75
- height: string;
76
- color?: undefined;
77
- '&:hover'?: undefined;
78
- cursor?: undefined;
79
- justifyContent?: undefined;
80
- } | {
81
- display: string;
82
- justifyContent: string;
83
- color?: undefined;
84
- height?: undefined;
85
- '&:hover'?: undefined;
86
- alignItems?: undefined;
87
- cursor?: undefined;
88
- gap?: undefined;
89
- };
90
- 'li:last-child': {
91
- [x: string]: {
92
- color: string;
93
- display: string;
94
- alignItems: string;
95
- };
96
- };
97
- a: {
98
- color: string;
99
- height: string;
100
- '&:hover': {
101
- backgroundColor: string;
102
- };
103
- };
104
- };
105
- };
106
- declare const useIndexStyle: (props?: {}) => import("../../../config").CommonConfig;
107
- export default useIndexStyle;
1
+ export declare const useStyle: () => () => import("react/jsx-runtime").JSX.Element;
@@ -1,60 +1,32 @@
1
- var _excluded = ["css"];
2
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
3
- 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; }
4
- 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; }
5
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
7
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
8
- import createStyle from "../../../libs/createStyle";
9
- export function getIndexStyleData(params) {
10
- var antPrefix = params.antPrefix,
11
- sparkPrefix = params.sparkPrefix;
12
- return _defineProperty({}, ".".concat(sparkPrefix, "-breadcrumb"), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
13
- 'li:last-child': _defineProperty({}, ".".concat(antPrefix, "-breadcrumb-link"), {
14
- color: "var(--".concat(antPrefix, "-color-text)"),
15
- display: 'flex',
16
- alignItems: 'center'
17
- }),
18
- a: {
19
- color: "var(--".concat(antPrefix, "-color-text-secondary)"),
20
- height: 'auto',
21
- '&:hover': {
22
- backgroundColor: 'transparent'
23
- }
24
- }
25
- }, ".".concat(antPrefix, "-breadcrumb-separator"), {
26
- color: "var(--".concat(antPrefix, "-color-text)")
27
- }), ".".concat(antPrefix, "-breadcrumb-overlay-link"), {
28
- display: 'flex',
29
- alignItems: 'center'
30
- }), ".".concat(sparkPrefix, "-breadcrumb-dropdown"), _defineProperty({
31
- cursor: 'pointer',
32
- display: 'flex',
33
- alignItems: 'center',
34
- gap: 8
35
- }, ".".concat(antPrefix, "-avatar>img"), {
36
- width: '20px',
37
- height: '20px'
38
- })), ".".concat(sparkPrefix, "-breadcrumb-item-content"), {
39
- display: 'flex',
40
- alignItems: 'center',
41
- gap: 8
42
- }), ".".concat(sparkPrefix, "-breadcrumb-dropdown-title"), _defineProperty({
43
- display: 'flex',
44
- alignItems: 'center',
45
- gap: 4,
46
- height: '100%'
47
- }, ".".concat(sparkPrefix, "-breadcrumb-dropdown-icon"), {
48
- fontSize: '16px !important'
49
- })), ".".concat(sparkPrefix, "-breadcrumb-dropdown-overlay"), {
50
- display: 'flex',
51
- justifyContent: 'center'
52
- }));
53
- }
54
- var useIndexStyle = createStyle(function (_ref2) {
55
- var css = _ref2.css,
56
- params = _objectWithoutProperties(_ref2, _excluded);
57
- var result = css(getIndexStyleData(params));
58
- return result;
59
- });
60
- 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.", "-breadcrumb {\n cursor: default;\n \n .", "-breadcrumb-link {\n cursor: pointer;\n }\n \n li:last-child {\n .", "-breadcrumb-link {\n color: var(--", "-color-text);\n display: flex;\n align-items: center;\n }\n }\n \n a {\n color: var(--", "-color-text-secondary);\n height: auto;\n \n &:hover {\n background-color: transparent;\n }\n }\n \n .", "-breadcrumb-separator {\n color: var(--", "-color-text);\n }\n \n .", "-breadcrumb-overlay-link {\n display: flex;\n align-items: center;\n }\n \n .", "-breadcrumb-dropdown {\n cursor: pointer;\n display: flex;\n align-items: center;\n gap: 8px;\n \n .", "-avatar > img {\n width: 20px;\n height: 20px;\n }\n }\n \n .", "-breadcrumb-item-content {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n \n .", "-breadcrumb-dropdown-title {\n display: flex;\n align-items: center;\n gap: 4px;\n height: 100%;\n \n .", "-breadcrumb-dropdown-icon {\n font-size: 16px !important;\n }\n }\n \n .", "-breadcrumb-dropdown-overlay {\n display: flex;\n justify-content: center;\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.sparkPrefix;
22
+ }, function (p) {
23
+ return p.antPrefix;
24
+ }, function (p) {
25
+ return p.sparkPrefix;
26
+ }, function (p) {
27
+ return p.sparkPrefix;
28
+ }, function (p) {
29
+ return p.sparkPrefix;
30
+ }, function (p) {
31
+ return p.sparkPrefix;
32
+ });
@@ -1,4 +1,4 @@
1
- var _excluded = ["iconSize"];
1
+ var _excluded = ["iconSize", "loading"];
2
2
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
3
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
4
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
@@ -7,9 +7,10 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
7
7
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
8
8
  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; }
9
9
  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; }
10
+ import { SparkLoadingLine } from '@agentscope-ai/icons';
10
11
  import { Button as AntdButton, ConfigProvider, theme } from 'antd';
11
12
  import classNames from 'classnames';
12
- import React, { forwardRef } from 'react';
13
+ import React, { forwardRef, useMemo } from 'react';
13
14
  import IconFont from "../IconFont";
14
15
  import Popover from "../Popover";
15
16
 
@@ -18,6 +19,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
18
19
  var Button = /*#__PURE__*/forwardRef(function (props, ref) {
19
20
  var token = theme.useToken();
20
21
  var iconSize = props.iconSize,
22
+ loading = props.loading,
21
23
  restProps = _objectWithoutProperties(props, _excluded);
22
24
  var buttonType = React.useMemo(function () {
23
25
  // @ts-ignore
@@ -26,10 +28,29 @@ var Button = /*#__PURE__*/forwardRef(function (props, ref) {
26
28
  if (restProps.type === 'textCompact') return 'link';
27
29
  return restProps.type;
28
30
  }, [restProps.type]);
31
+ var mergedLoading = useMemo(function () {
32
+ // 更改默认 loading icon 为 SparkLoadingLine
33
+ if (loading) {
34
+ if (typeof loading === 'boolean') {
35
+ return {
36
+ icon: /*#__PURE__*/_jsx(SparkLoadingLine, {
37
+ spin: true
38
+ })
39
+ };
40
+ }
41
+ if (_typeof(loading) === 'object') {
42
+ return _objectSpread({
43
+ icon: /*#__PURE__*/_jsx(SparkLoadingLine, {
44
+ spin: true
45
+ })
46
+ }, loading);
47
+ }
48
+ }
49
+ return loading;
50
+ }, [loading]);
29
51
  var icon = React.useMemo(function () {
30
- if (restProps.loading && _typeof(restProps.loading) === 'object' && restProps.loading.icon) {
31
- var _restProps$loading;
32
- return (_restProps$loading = restProps.loading) === null || _restProps$loading === void 0 ? void 0 : _restProps$loading.icon;
52
+ if (loading && _typeof(loading) === 'object' && loading.icon) {
53
+ return loading === null || loading === void 0 ? void 0 : loading.icon;
33
54
  }
34
55
  if (restProps.iconType) return /*#__PURE__*/_jsx(IconFont, {
35
56
  type: restProps.iconType,
@@ -41,6 +62,7 @@ var Button = /*#__PURE__*/forwardRef(function (props, ref) {
41
62
  return null;
42
63
  }, [restProps.iconType, restProps.icon]);
43
64
  var button = /*#__PURE__*/_jsx(AntdButton, _objectSpread(_objectSpread({}, restProps), {}, {
65
+ loading: mergedLoading,
44
66
  ref: ref,
45
67
  type: buttonType,
46
68
  icon: icon,
@@ -10,34 +10,37 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
10
10
  import { getCommonConfig } from "../../../config";
11
11
  import { Card } from 'antd';
12
12
  import classNames from 'classnames';
13
- import useIndexStyle from "./index.style";
13
+ import { useStyle } from "./index.style";
14
14
  import { jsx as _jsx } from "react/jsx-runtime";
15
15
  import { jsxs as _jsxs } from "react/jsx-runtime";
16
+ import { Fragment as _Fragment } from "react/jsx-runtime";
16
17
  export default (function (props) {
17
18
  var title = props.title,
18
19
  info = props.info,
19
20
  children = props.children,
20
21
  className = props.className,
21
22
  restProps = _objectWithoutProperties(props, _excluded);
22
- useIndexStyle();
23
+ var Style = useStyle();
23
24
  var commonConfig = getCommonConfig();
24
25
  var sparkPrefix = commonConfig.sparkPrefix;
25
- return /*#__PURE__*/_jsx(Card, _objectSpread(_objectSpread({
26
- className: classNames("".concat(sparkPrefix, "-card"), className)
27
- }, restProps), {}, {
28
- title: null,
29
- children: /*#__PURE__*/_jsxs("div", {
30
- className: "".concat(sparkPrefix, "-card-wrapper"),
31
- children: [title && /*#__PURE__*/_jsx("div", {
32
- className: "".concat(sparkPrefix, "-title"),
33
- children: title
34
- }), info && /*#__PURE__*/_jsx("div", {
35
- className: "".concat(sparkPrefix, "-info"),
36
- children: info
37
- }), children && /*#__PURE__*/_jsx("div", {
38
- className: "".concat(sparkPrefix, "-content"),
39
- children: children
40
- })]
41
- })
42
- }));
26
+ return /*#__PURE__*/_jsxs(_Fragment, {
27
+ children: [/*#__PURE__*/_jsx(Style, {}), /*#__PURE__*/_jsx(Card, _objectSpread(_objectSpread({
28
+ className: classNames("".concat(sparkPrefix, "-card"), className)
29
+ }, restProps), {}, {
30
+ title: null,
31
+ children: /*#__PURE__*/_jsxs("div", {
32
+ className: "".concat(sparkPrefix, "-card-wrapper"),
33
+ children: [title && /*#__PURE__*/_jsx("div", {
34
+ className: "".concat(sparkPrefix, "-title"),
35
+ children: title
36
+ }), info && /*#__PURE__*/_jsx("div", {
37
+ className: "".concat(sparkPrefix, "-info"),
38
+ children: info
39
+ }), children && /*#__PURE__*/_jsx("div", {
40
+ className: "".concat(sparkPrefix, "-content"),
41
+ children: children
42
+ })]
43
+ })
44
+ }))]
45
+ });
43
46
  });
@@ -1,71 +1 @@
1
- export declare function getIndexStyleData(params: any): {
2
- [x: string]: {
3
- borderRadius: string;
4
- backgroundColor: string;
5
- border: string;
6
- transition?: undefined;
7
- '&:hover'?: undefined;
8
- cursor?: undefined;
9
- display?: undefined;
10
- flexDirection?: undefined;
11
- padding?: undefined;
12
- gap?: undefined;
13
- "> *:only-child"?: undefined;
14
- } | {
15
- [x: string]: string | {
16
- padding: number;
17
- boxShadow?: undefined;
18
- } | {
19
- boxShadow: string;
20
- padding?: undefined;
21
- };
22
- transition: string;
23
- '&:hover': {
24
- boxShadow: string;
25
- };
26
- cursor: string;
27
- borderRadius?: undefined;
28
- backgroundColor?: undefined;
29
- border?: undefined;
30
- display?: undefined;
31
- flexDirection?: undefined;
32
- padding?: undefined;
33
- gap?: undefined;
34
- "> *:only-child"?: undefined;
35
- } | {
36
- [x: string]: string | {
37
- gap: number;
38
- fontSize?: undefined;
39
- fontWeight?: undefined;
40
- lineHeight?: undefined;
41
- color?: undefined;
42
- } | {
43
- fontSize: string;
44
- fontWeight: number;
45
- lineHeight: string;
46
- color: string;
47
- gap?: undefined;
48
- } | {
49
- fontSize: string;
50
- fontWeight: string;
51
- lineHeight: string;
52
- color: string;
53
- gap?: undefined;
54
- };
55
- display: string;
56
- flexDirection: string;
57
- padding: string;
58
- gap: string;
59
- "> *:only-child": {
60
- gap: number;
61
- };
62
- borderRadius?: undefined;
63
- backgroundColor?: undefined;
64
- border?: undefined;
65
- transition?: undefined;
66
- '&:hover'?: undefined;
67
- cursor?: undefined;
68
- };
69
- };
70
- declare const useIndexStyle: (props?: {}) => import("../../../config").CommonConfig;
71
- export default useIndexStyle;
1
+ export declare const useStyle: () => () => import("react/jsx-runtime").JSX.Element;
@@ -1,46 +1,24 @@
1
- var _excluded = ["css"];
2
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
3
- 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; }
4
- 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; }
5
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
7
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
8
- import createStyle from "../../../libs/createStyle";
9
- export function getIndexStyleData(params) {
10
- var sparkPrefix = params.sparkPrefix,
11
- antPrefix = params.antPrefix;
12
- return _defineProperty(_defineProperty(_defineProperty({}, ".".concat(antPrefix, "-card"), {
13
- borderRadius: '6px',
14
- backgroundColor: "var(--".concat(antPrefix, "-color-bg-base)"),
15
- border: "1px solid var(--".concat(antPrefix, "-color-border-secondary)")
16
- }), ".".concat(sparkPrefix, "-card"), _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "transition", 'box-shadow 0.4s ease'), ".".concat(antPrefix, "-card-body"), {
17
- padding: 0
18
- }), '&:hover', {
19
- boxShadow: '0px 4px 6px 0px rgba(0, 0, 0, 0.08)'
20
- }), "cursor", 'pointer')), ".".concat(sparkPrefix, "-card-wrapper"), _defineProperty(_defineProperty(_defineProperty({
21
- display: 'flex',
22
- flexDirection: 'column',
23
- padding: '12px 16px',
24
- gap: '4px'
25
- }, "> *:only-child", {
26
- gap: 0
27
- }), ".".concat(sparkPrefix, "-title"), {
28
- fontSize: '14px',
29
- fontWeight: 500,
30
- lineHeight: '24px',
31
- /* 中性色/color-text */
32
- color: "var(--".concat(antPrefix, "-color-text)")
33
- }), ".".concat(sparkPrefix, "-info"), {
34
- fontSize: '12px',
35
- fontWeight: 'normal',
36
- lineHeight: '18px',
37
- color: "var(--".concat(antPrefix, "-color-text-tertiary)")
38
- }));
39
- }
40
- var useIndexStyle = createStyle(function (_ref2) {
41
- var css = _ref2.css,
42
- params = _objectWithoutProperties(_ref2, _excluded);
43
- var result = css(getIndexStyleData(params));
44
- return result;
45
- });
46
- 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.", "-card {\n border-radius: 6px;\n background-color: var(--", "-color-bg-base);\n border: 1px solid var(--", "-color-border-secondary);\n}\n\n.", "-card {\n transition: box-shadow 0.4s ease;\n cursor: pointer;\n \n .", "-card-body {\n padding: 0;\n }\n \n &:hover {\n box-shadow: 0px 4px 6px 0px rgba(0, 0, 0, 0.08);\n }\n}\n\n.", "-card-wrapper {\n display: flex;\n flex-direction: column;\n padding: 12px 16px;\n gap: 4px;\n \n > *:only-child {\n gap: 0;\n }\n \n .", "-title {\n font-size: 14px;\n font-weight: 500;\n line-height: 24px;\n /* \u4E2D\u6027\u8272/color-text */\n color: var(--", "-color-text);\n }\n \n .", "-info {\n font-size: 12px;\n font-weight: normal;\n line-height: 18px;\n color: var(--", "-color-text-tertiary);\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.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.antPrefix;
24
+ });