@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
@@ -1,54 +1,44 @@
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({}, ".".concat(sparkPrefix, "-drawer"), _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, ".".concat(antPrefix, "-drawer-header"), _defineProperty({
13
- padding: '16px 20px',
14
- borderBottom: 'none'
15
- }, ".".concat(antPrefix, "-drawer-header-title"), _defineProperty(_defineProperty({
16
- display: 'flex',
17
- flexDirection: 'row-reverse'
18
- }, ".".concat(antPrefix, "-drawer-title"), {
19
- fontSize: 16,
20
- fontWeight: '500',
21
- lineHeight: '28px',
22
- color: "var(--".concat(antPrefix, "-color-text)")
23
- }), ".".concat(antPrefix, "-drawer-close"), {
24
- width: 32,
25
- height: 32
26
- }))), ".".concat(antPrefix, "-drawer-body"), _defineProperty({}, "--".concat(antPrefix, "-padding-lg"), '20px')), ".".concat(antPrefix, "-drawer-footer"), _defineProperty(_defineProperty({
27
- padding: '16px 20px',
28
- display: 'flex',
29
- alignItems: 'center',
30
- justifyContent: 'space-between',
31
- borderTop: 'none'
32
- }, ".".concat(antPrefix, "-drawer-footer-info"), {
33
- fontSize: 14,
34
- lineHeight: '24px',
35
- color: "var(--".concat(antPrefix, "-color-text-tertiary)")
36
- }), ".".concat(antPrefix, "-drawer-footer-buttons"), {
37
- display: 'flex',
38
- gap: 12
39
- })), ".".concat(antPrefix, "-drawer-close"), {
40
- color: "var(--".concat(antPrefix, "-color-text)"),
41
- margin: 0
42
- })), ".".concat(sparkPrefix, "-drawer.").concat(antPrefix, "-show-divider"), _defineProperty(_defineProperty({}, ".".concat(antPrefix, "-drawer-header"), {
43
- borderBottom: "1px solid var(--".concat(antPrefix, "-color-border-secondary)")
44
- }), ".".concat(antPrefix, "-drawer-footer"), {
45
- borderTop: "1px solid var(--".concat(antPrefix, "-color-border-secondary)")
46
- }));
47
- }
48
- var useIndexStyle = createStyle(function (_ref2) {
49
- var css = _ref2.css,
50
- params = _objectWithoutProperties(_ref2, _excluded);
51
- var result = css(getIndexStyleData(params));
52
- return result;
53
- });
54
- 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.", "-drawer {\n .", "-drawer-header {\n padding: 16px 20px;\n border-bottom: none;\n \n .", "-drawer-header-title {\n display: flex;\n flex-direction: row-reverse;\n \n .", "-drawer-title {\n font-size: 16px;\n font-weight: 500;\n line-height: 28px;\n color: var(--", "-color-text);\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) {
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.sparkPrefix;
34
+ }, function (p) {
35
+ return p.antPrefix;
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
+ });
@@ -1,5 +1,4 @@
1
- /// <reference types="react" />
2
1
  import { DropdownProps } from 'antd';
3
2
  export type { DropdownProps };
4
- declare const SparkDropdown: import("react").ForwardRefExoticComponent<DropdownProps & import("react").RefAttributes<any>>;
3
+ declare const SparkDropdown: (props: any) => import("react/jsx-runtime").JSX.Element;
5
4
  export default SparkDropdown;
@@ -4,14 +4,15 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
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; }
5
5
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
6
  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); }
7
- import { Dropdown } from 'antd';
8
- import { forwardRef, useMemo } from 'react';
9
7
  import { getCommonConfig } from "../../../config";
10
- import useIndexStyle from "./index.style";
11
8
  import { SparkTrueLine } from '@agentscope-ai/icons';
9
+ import { Dropdown } from 'antd';
10
+ import { useMemo } from 'react';
11
+ import { useStyle } from "./index.style";
12
12
  import { jsx as _jsx } from "react/jsx-runtime";
13
13
  import { jsxs as _jsxs } from "react/jsx-runtime";
14
- var SparkDropdown = /*#__PURE__*/forwardRef(function (props) {
14
+ import { Fragment as _Fragment } from "react/jsx-runtime";
15
+ var SparkDropdown = function SparkDropdown(props) {
15
16
  var _props$menu3, _props$menu4;
16
17
  var commonConfig = getCommonConfig();
17
18
  var antPrefix = commonConfig.antPrefix;
@@ -37,12 +38,14 @@ var SparkDropdown = /*#__PURE__*/forwardRef(function (props) {
37
38
  return _objectSpread(_objectSpread({}, d), mergeData);
38
39
  });
39
40
  }, [(_props$menu3 = props.menu) === null || _props$menu3 === void 0 ? void 0 : _props$menu3.items, (_props$menu4 = props.menu) === null || _props$menu4 === void 0 ? void 0 : _props$menu4.selectable]);
40
- useIndexStyle();
41
- return /*#__PURE__*/_jsx(Dropdown, _objectSpread(_objectSpread({}, props), {}, {
42
- menu: _objectSpread(_objectSpread({}, props.menu), {}, {
43
- items: menuItems
44
- }),
45
- overlayStyle: _objectSpread({}, props.overlayStyle)
46
- }));
47
- });
41
+ var Style = useStyle();
42
+ return /*#__PURE__*/_jsxs(_Fragment, {
43
+ children: [/*#__PURE__*/_jsx(Style, {}), /*#__PURE__*/_jsx(Dropdown, _objectSpread(_objectSpread({}, props), {}, {
44
+ menu: _objectSpread(_objectSpread({}, props.menu), {}, {
45
+ items: menuItems
46
+ }),
47
+ overlayStyle: _objectSpread({}, props.overlayStyle)
48
+ }))]
49
+ });
50
+ };
48
51
  export default SparkDropdown;
@@ -1,78 +1 @@
1
- export declare function getIndexStyleData(params: any): {
2
- [x: string]: {
3
- fontSize: string;
4
- display?: undefined;
5
- alignItems?: undefined;
6
- margin?: undefined;
7
- 'padding-inline-end'?: undefined;
8
- position?: undefined;
9
- opacity?: undefined;
10
- 'inset-inline-end'?: undefined;
11
- backgroundColor?: undefined;
12
- boxShadow?: undefined;
13
- border?: undefined;
14
- borderRadius?: undefined;
15
- overflowY?: undefined;
16
- } | {
17
- display: string;
18
- alignItems: string;
19
- margin: number;
20
- 'padding-inline-end': string;
21
- fontSize?: undefined;
22
- position?: undefined;
23
- opacity?: undefined;
24
- 'inset-inline-end'?: undefined;
25
- backgroundColor?: undefined;
26
- boxShadow?: undefined;
27
- border?: undefined;
28
- borderRadius?: undefined;
29
- overflowY?: undefined;
30
- } | {
31
- position: string;
32
- opacity: number;
33
- fontSize: number;
34
- 'inset-inline-end': string;
35
- display?: undefined;
36
- alignItems?: undefined;
37
- margin?: undefined;
38
- 'padding-inline-end'?: undefined;
39
- backgroundColor?: undefined;
40
- boxShadow?: undefined;
41
- border?: undefined;
42
- borderRadius?: undefined;
43
- overflowY?: undefined;
44
- } | {
45
- [x: string]: string | {
46
- opacity: number;
47
- };
48
- backgroundColor: string;
49
- fontSize?: undefined;
50
- display?: undefined;
51
- alignItems?: undefined;
52
- margin?: undefined;
53
- 'padding-inline-end'?: undefined;
54
- position?: undefined;
55
- opacity?: undefined;
56
- 'inset-inline-end'?: undefined;
57
- boxShadow?: undefined;
58
- border?: undefined;
59
- borderRadius?: undefined;
60
- overflowY?: undefined;
61
- } | {
62
- boxShadow: string;
63
- border: string;
64
- borderRadius: string;
65
- overflowY: string;
66
- fontSize?: undefined;
67
- display?: undefined;
68
- alignItems?: undefined;
69
- margin?: undefined;
70
- 'padding-inline-end'?: undefined;
71
- position?: undefined;
72
- opacity?: undefined;
73
- 'inset-inline-end'?: undefined;
74
- backgroundColor?: undefined;
75
- };
76
- };
77
- declare const useIndexStyle: (props?: {}) => import("../../../config").CommonConfig;
78
- export default useIndexStyle;
1
+ export declare const useStyle: () => () => import("react/jsx-runtime").JSX.Element;
@@ -1,40 +1,48 @@
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(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, ".".concat(antPrefix, "-dropdown .").concat(antPrefix, "-dropdown-menu .").concat(antPrefix, "-dropdown-menu-item-icon"), {
12
- fontSize: "var(--".concat(antPrefix, "-font-size-lg)")
13
- }), ".".concat(antPrefix, "-dropdown-check-wrapper"), {
14
- display: 'flex',
15
- alignItems: 'center',
16
- margin: 0,
17
- 'padding-inline-end': "calc(var(--".concat(antPrefix, "-control-padding-horizontal) + var(--").concat(antPrefix, "-font-size-sm))")
18
- }), ".".concat(antPrefix, "-dropdown-check-icon"), {
19
- position: 'absolute',
20
- opacity: 0,
21
- fontSize: 20,
22
- 'inset-inline-end': "var(--".concat(antPrefix, "-padding-xs)")
23
- }), ".".concat(antPrefix, "-dropdown .").concat(antPrefix, "-dropdown-menu .").concat(antPrefix, "-dropdown-menu-item.").concat(antPrefix, "-dropdown-menu-item-selected"), _defineProperty({
24
- backgroundColor: 'transparent'
25
- }, ".".concat(antPrefix, "-dropdown-check-icon"), {
26
- opacity: 1
27
- })), ".".concat(antPrefix, "-dropdown-menu-submenu-popup"), {
28
- boxShadow: "var(--".concat(antPrefix, "-box-shadow)"),
29
- border: "1px solid var(--".concat(antPrefix, "-color-border-secondary)"),
30
- borderRadius: "var(--".concat(antPrefix, "-border-radius-lg)"),
31
- overflowY: 'auto'
32
- });
33
- }
34
- var useIndexStyle = createStyle(function (_ref2) {
35
- var css = _ref2.css,
36
- params = _objectWithoutProperties(_ref2, _excluded);
37
- var result = css(getIndexStyleData(params));
38
- return result;
39
- });
40
- 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.", "-dropdown .", "-dropdown-menu .", "-dropdown-menu-item-icon {\n font-size: var(--", "-font-size-lg);\n}\n\n.", "-dropdown-check-wrapper {\n display: flex;\n align-items: center;\n margin: 0;\n padding-inline-end: calc(var(--", "-control-padding-horizontal) + var(--", "-font-size-sm));\n}\n\n.", "-dropdown-check-icon {\n position: absolute;\n opacity: 0;\n font-size: 20px;\n inset-inline-end: var(--", "-padding-xs);\n}\n\n.", "-dropdown .", "-dropdown-menu .", "-dropdown-menu-item.", "-dropdown-menu-item-selected {\n background-color: transparent;\n \n .", "-dropdown-check-icon {\n opacity: 1;\n }\n}\n\n.", "-dropdown-menu-submenu-popup {\n box-shadow: var(--", "-box-shadow);\n border: 1px solid var(--", "-color-border-secondary);\n border-radius: var(--", "-border-radius-lg);\n overflow-y: auto;\n}\n\n/*\n.", "-dropdown-menu .", "-dropdown-menu-submenu {\n box-shadow: var(--", "-box-shadow);\n border: 1px solid var(--", "-color-border-secondary);\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.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.antPrefix;
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
+ });
@@ -2,8 +2,10 @@ import { getCommonConfig } from "../../../config";
2
2
  import { Typography } from 'antd';
3
3
  import classNames from 'classnames';
4
4
  import React from 'react';
5
- import useIndexStyle from "./index.style";
5
+ import { useStyle } from "./index.style";
6
6
  import { jsx as _jsx } from "react/jsx-runtime";
7
+ import { Fragment as _Fragment } from "react/jsx-runtime";
8
+ import { jsxs as _jsxs } from "react/jsx-runtime";
7
9
  /** 超过展示范围时展示tooltip */
8
10
  export default function EllipsisTip(props) {
9
11
  var _props$className = props.className,
@@ -17,14 +19,16 @@ export default function EllipsisTip(props) {
17
19
  var _tooltip = tooltip || children;
18
20
  var _getCommonConfig = getCommonConfig(),
19
21
  sparkPrefix = _getCommonConfig.sparkPrefix;
20
- useIndexStyle();
21
- return /*#__PURE__*/_jsx(Typography.Paragraph, {
22
- className: classNames("".concat(sparkPrefix, "-ellipsis-tip"), className),
23
- style: style,
24
- ellipsis: {
25
- rows: rows,
26
- tooltip: _tooltip
27
- },
28
- children: children
22
+ var Style = useStyle();
23
+ return /*#__PURE__*/_jsxs(_Fragment, {
24
+ children: [/*#__PURE__*/_jsx(Style, {}), /*#__PURE__*/_jsx(Typography.Paragraph, {
25
+ className: classNames("".concat(sparkPrefix, "-ellipsis-tip"), className),
26
+ style: style,
27
+ ellipsis: {
28
+ rows: rows,
29
+ tooltip: _tooltip
30
+ },
31
+ children: children
32
+ })]
29
33
  });
30
34
  }
@@ -1,10 +1 @@
1
- export declare function getIndexStyleData(params: any): {
2
- [x: string]: {
3
- marginBottom: number;
4
- color: string;
5
- lineHeight: number;
6
- fontSize: string;
7
- };
8
- };
9
- declare const useIndexStyle: (props?: {}) => import("../../../config").CommonConfig;
10
- export default useIndexStyle;
1
+ export declare const useStyle: () => () => import("react/jsx-runtime").JSX.Element;
@@ -1,24 +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 sparkPrefix = params.sparkPrefix;
11
- return _defineProperty({}, "div.".concat(sparkPrefix, "-ellipsis-tip"), {
12
- marginBottom: 0,
13
- color: 'unset',
14
- lineHeight: 1.5,
15
- fontSize: 'unset'
16
- });
17
- }
18
- var useIndexStyle = createStyle(function (_ref2) {
19
- var css = _ref2.css,
20
- params = _objectWithoutProperties(_ref2, _excluded);
21
- var result = css(getIndexStyleData(params));
22
- return result;
23
- });
24
- 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(["\ndiv.", "-ellipsis-tip {\n margin-bottom: 0;\n color: unset;\n line-height: 1.5;\n font-size: unset;\n}\n"])), function (p) {
5
+ return p.sparkPrefix;
6
+ });
@@ -6,13 +6,13 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
6
6
  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); }
7
7
  import { getCommonConfig } from "../../../config";
8
8
  import { Flex } from 'antd';
9
+ import { useMemo } from 'react';
9
10
  import Button from "../Button";
11
+ import { useStyle } from "./index.style";
10
12
  import Illustrate from "./svg/Illustrate";
11
- import useIndexStyle from "./index.style";
12
- import { useMemo } from 'react';
13
13
  import { jsx as _jsx } from "react/jsx-runtime";
14
14
  import { jsxs as _jsxs } from "react/jsx-runtime";
15
- ;
15
+ import { Fragment as _Fragment } from "react/jsx-runtime";
16
16
  var TEXTURE_MAP = {
17
17
  url: 'https://gw.alicdn.com/imgextra/i3/O1CN01r3f3Si24iFTRz9Bho_!!6000000007424-55-tps-320-320.svg',
18
18
  tokenMap: {
@@ -221,50 +221,52 @@ var Empty = function Empty(props) {
221
221
  });
222
222
  return tokenMap;
223
223
  }, [isDarkMode]);
224
- useIndexStyle();
224
+ var Style = useStyle();
225
225
  var parsedSize = typeof size === 'string' ? parseFloat(size.replace(/px/i, '')) : size !== null && size !== void 0 ? size : 0;
226
- return /*#__PURE__*/_jsxs("div", {
227
- className: "".concat(sparkPrefix, "-empty ").concat(props.className || ''),
228
- style: _objectSpread(_objectSpread({}, imageStyle), {}, {
229
- width: size,
230
- height: size
231
- }),
232
- children: [texture && /*#__PURE__*/_jsx(Illustrate, {
233
- size: size,
234
- svgUrl: TEXTURE_MAP.url,
235
- tokenMap: textureTokenMap,
236
- className: "".concat(sparkPrefix, "-empty-texture")
237
- }), /*#__PURE__*/_jsx(Illustrate, {
238
- size: size,
239
- svgUrl: image,
240
- tokenMap: tokenMap,
241
- className: "".concat(sparkPrefix, "-empty-image")
242
- }), /*#__PURE__*/_jsxs(Flex, {
243
- vertical: true,
244
- align: "center",
245
- style: {
246
- marginTop: '52.5%'
247
- },
248
- children: [title && /*#__PURE__*/_jsx("div", {
249
- className: "".concat(sparkPrefix, "-empty-title"),
250
- style: {
251
- marginBottom: description ? 0.025 * parsedSize : 0
252
- },
253
- children: title
254
- }), description && /*#__PURE__*/_jsx("div", {
255
- className: "".concat(sparkPrefix, "-empty-description"),
256
- children: description
257
- }), !!okText && /*#__PURE__*/_jsx("div", {
226
+ return /*#__PURE__*/_jsxs(_Fragment, {
227
+ children: [/*#__PURE__*/_jsx(Style, {}), /*#__PURE__*/_jsxs("div", {
228
+ className: "".concat(sparkPrefix, "-empty ").concat(props.className || ''),
229
+ style: _objectSpread(_objectSpread({}, imageStyle), {}, {
230
+ width: size,
231
+ height: size
232
+ }),
233
+ children: [texture && /*#__PURE__*/_jsx(Illustrate, {
234
+ size: size,
235
+ svgUrl: TEXTURE_MAP.url,
236
+ tokenMap: textureTokenMap,
237
+ className: "".concat(sparkPrefix, "-empty-texture")
238
+ }), /*#__PURE__*/_jsx(Illustrate, {
239
+ size: size,
240
+ svgUrl: image,
241
+ tokenMap: tokenMap,
242
+ className: "".concat(sparkPrefix, "-empty-image")
243
+ }), /*#__PURE__*/_jsxs(Flex, {
244
+ vertical: true,
245
+ align: "center",
258
246
  style: {
259
- marginTop: 0.05 * parsedSize
247
+ marginTop: '52.5%'
260
248
  },
261
- children: /*#__PURE__*/_jsx(Button, _objectSpread(_objectSpread({
262
- type: okType,
263
- onClick: onOk
264
- }, okButtonProps), {}, {
265
- children: okText
266
- }))
267
- }), !!children && children]
249
+ children: [title && /*#__PURE__*/_jsx("div", {
250
+ className: "".concat(sparkPrefix, "-empty-title"),
251
+ style: {
252
+ marginBottom: description ? 0.025 * parsedSize : 0
253
+ },
254
+ children: title
255
+ }), description && /*#__PURE__*/_jsx("div", {
256
+ className: "".concat(sparkPrefix, "-empty-description"),
257
+ children: description
258
+ }), !!okText && /*#__PURE__*/_jsx("div", {
259
+ style: {
260
+ marginTop: 0.05 * parsedSize
261
+ },
262
+ children: /*#__PURE__*/_jsx(Button, _objectSpread(_objectSpread({
263
+ type: okType,
264
+ onClick: onOk
265
+ }, okButtonProps), {}, {
266
+ children: okText
267
+ }))
268
+ }), !!children && children]
269
+ })]
268
270
  })]
269
271
  });
270
272
  };