@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,102 +1 @@
1
- export declare function getIndexStyleData(params: any): {
2
- [x: string]: {
3
- [x: string]: string | {
4
- [x: string]: string | {
5
- color: string;
6
- };
7
- color: string;
8
- borderColor: string;
9
- backgroundColor: string;
10
- cursor: string;
11
- marginLeft?: undefined;
12
- marginRight?: undefined;
13
- display?: undefined;
14
- } | {
15
- marginLeft: string;
16
- color: string;
17
- borderColor?: undefined;
18
- backgroundColor?: undefined;
19
- cursor?: undefined;
20
- marginRight?: undefined;
21
- display?: undefined;
22
- } | {
23
- marginRight: string;
24
- color?: undefined;
25
- borderColor?: undefined;
26
- backgroundColor?: undefined;
27
- cursor?: undefined;
28
- marginLeft?: undefined;
29
- display?: undefined;
30
- } | {
31
- [x: string]: string | {
32
- width: string;
33
- height: string;
34
- background: string;
35
- ".anticon": {
36
- display: string;
37
- };
38
- };
39
- display: string;
40
- color?: undefined;
41
- borderColor?: undefined;
42
- backgroundColor?: undefined;
43
- cursor?: undefined;
44
- marginLeft?: undefined;
45
- marginRight?: undefined;
46
- };
47
- borderColor: string;
48
- backgroundColor: string;
49
- borderRadius?: undefined;
50
- color?: undefined;
51
- '.anticon-close'?: undefined;
52
- } | {
53
- [x: string]: {
54
- border: string;
55
- display?: undefined;
56
- color?: undefined;
57
- } | {
58
- display: string;
59
- border?: undefined;
60
- color?: undefined;
61
- } | {
62
- [x: string]: {
63
- background: string;
64
- };
65
- border?: undefined;
66
- display?: undefined;
67
- color?: undefined;
68
- } | {
69
- color: string;
70
- border?: undefined;
71
- display?: undefined;
72
- };
73
- borderColor?: undefined;
74
- backgroundColor?: undefined;
75
- borderRadius?: undefined;
76
- color?: undefined;
77
- '.anticon-close'?: undefined;
78
- } | {
79
- borderRadius: string;
80
- backgroundColor: string;
81
- borderColor?: undefined;
82
- color?: undefined;
83
- '.anticon-close'?: undefined;
84
- } | {
85
- color: string;
86
- borderColor?: undefined;
87
- backgroundColor?: undefined;
88
- borderRadius?: undefined;
89
- '.anticon-close'?: undefined;
90
- } | {
91
- '.anticon-close': {
92
- fontSize: string;
93
- color: string;
94
- };
95
- borderColor?: undefined;
96
- backgroundColor?: undefined;
97
- borderRadius?: undefined;
98
- color?: undefined;
99
- };
100
- };
101
- declare const useIndexStyle: (props?: {}) => import("../../../config").CommonConfig;
102
- export default useIndexStyle;
1
+ export declare const useStyle: () => () => import("react/jsx-runtime").JSX.Element;
@@ -1,61 +1,66 @@
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(_defineProperty(_defineProperty({}, ".".concat(sparkPrefix, "-picker"), _defineProperty(_defineProperty(_defineProperty(_defineProperty({
13
- borderColor: "var(--".concat(antPrefix, "-color-border-secondary)"),
14
- backgroundColor: "var(--".concat(antPrefix, "-color-bg-base)")
15
- }, "&.".concat(antPrefix, "-picker-disabled"), _defineProperty({
16
- color: "var(--".concat(antPrefix, "-color-text-quaternary)"),
17
- borderColor: "var(--".concat(antPrefix, "-color-border-secondary) !important"),
18
- backgroundColor: "var(--".concat(antPrefix, "-color-fill-tertiary) !important"),
19
- cursor: 'not-allowed'
20
- }, ".".concat(antPrefix, "-picker-suffix"), {
21
- color: "var(--".concat(antPrefix, "-color-text-quaternary) !important")
22
- })), ".".concat(antPrefix, "-picker-suffix"), {
23
- marginLeft: '8px',
24
- color: "var(--".concat(antPrefix, "-color-text-tertiary) !important")
25
- }), ".".concat(antPrefix, "-picker-clear"), {
26
- marginRight: '3px'
27
- }), ".".concat(antPrefix, "-picker-range-separator"), _defineProperty({
28
- display: 'flex'
29
- }, ".".concat(antPrefix, "-picker-separator"), _defineProperty({
30
- width: '8px',
31
- height: '1px',
32
- background: "var(--".concat(antPrefix, "-color-text-tertiary)")
33
- }, '.anticon', {
34
- display: 'none'
35
- })))), ".".concat(sparkPrefix, "-picker-dropdown"), _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, ".".concat(antPrefix, "-picker-panel-container"), {
36
- border: "1px solid var(--".concat(antPrefix, "-color-border-secondary)")
37
- }), ".".concat(antPrefix, "-picker-range-arrow"), {
38
- display: 'none !important'
39
- }), ".".concat(antPrefix, "-picker-time-panel-column >li.").concat(antPrefix, "-picker-time-panel-cell-selected"), _defineProperty({}, ".".concat(antPrefix, "-picker-time-panel-cell-inner"), {
40
- background: "var(--".concat(antPrefix, "-color-primary-bg)")
41
- })), ".".concat(antPrefix, "-picker-now-btn"), {
42
- color: "var(--".concat(antPrefix, "-color-primary)")
43
- })), ".".concat(antPrefix, "-picker-selection-item"), {
44
- borderRadius: '4px',
45
- backgroundColor: "var(--".concat(antPrefix, "-color-mauve-bg) !important")
46
- }), ".".concat(antPrefix, "-picker-selection-item-content"), {
47
- color: "var(--".concat(antPrefix, "-color-mauve)")
48
- }), ".".concat(antPrefix, "-picker-selection-item-remove"), {
49
- '.anticon-close': {
50
- fontSize: '14px',
51
- color: "var(--".concat(antPrefix, "-color-mauve)")
52
- }
53
- });
54
- }
55
- var useIndexStyle = createStyle(function (_ref2) {
56
- var css = _ref2.css,
57
- params = _objectWithoutProperties(_ref2, _excluded);
58
- var result = css(getIndexStyleData(params));
59
- return result;
60
- });
61
- 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.", "-picker {\n border-color: var(--", "-color-border-secondary);\n background-color: var(--", "-color-bg-base);\n \n &.", "-picker-disabled {\n color: var(--", "-color-text-quaternary);\n border-color: var(--", "-color-border-secondary) !important;\n background-color: var(--", "-color-fill-tertiary) !important;\n cursor: not-allowed;\n \n .", "-picker-suffix {\n color: var(--", "-color-text-quaternary) !important;\n }\n }\n \n .", "-picker-suffix {\n margin-left: 8px;\n color: var(--", "-color-text-tertiary) !important;\n }\n \n .", "-picker-clear {\n margin-right: 3px;\n }\n \n .", "-picker-range-separator {\n display: flex;\n \n .", "-picker-separator {\n width: 8px;\n height: 1px;\n background: var(--", "-color-text-tertiary);\n \n .anticon {\n display: none;\n }\n }\n }\n}\n\n.", "-picker-dropdown {\n .", "-picker-panel-container {\n border: 1px solid var(--", "-color-border-secondary);\n }\n \n .", "-picker-range-arrow {\n display: none !important;\n }\n \n .", "-picker-time-panel-column > li.", "-picker-time-panel-cell-selected {\n .", "-picker-time-panel-cell-inner {\n background: var(--", "-color-primary-bg);\n }\n }\n \n .", "-picker-now-btn {\n color: var(--", "-color-primary);\n }\n}\n\n.", "-picker-selection-item {\n border-radius: 4px;\n background-color: var(--", "-color-mauve-bg) !important;\n}\n\n.", "-picker-selection-item-content {\n color: var(--", "-color-mauve);\n}\n\n.", "-picker-selection-item-remove {\n .anticon-close {\n font-size: 14px;\n color: var(--", "-color-mauve);\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.antPrefix;
34
+ }, function (p) {
35
+ return p.sparkPrefix;
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
+ }, function (p) {
49
+ return p.antPrefix;
50
+ }, function (p) {
51
+ return p.antPrefix;
52
+ }, function (p) {
53
+ return p.antPrefix;
54
+ }, function (p) {
55
+ return p.antPrefix;
56
+ }, function (p) {
57
+ return p.antPrefix;
58
+ }, function (p) {
59
+ return p.antPrefix;
60
+ }, function (p) {
61
+ return p.antPrefix;
62
+ }, function (p) {
63
+ return p.antPrefix;
64
+ }, function (p) {
65
+ return p.antPrefix;
66
+ });
@@ -10,11 +10,13 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
10
10
  import { getCommonConfig } from "../../../config";
11
11
  import { Descriptions as AntdDescriptions, theme } 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
+ import { Fragment as _Fragment } from "react/jsx-runtime";
16
+ import { jsxs as _jsxs } from "react/jsx-runtime";
15
17
  var Descriptions = function Descriptions(props) {
16
18
  var _token$Descriptions$v, _token$Descriptions$v2;
17
- useIndexStyle();
19
+ var Style = useStyle();
18
20
  var className = props.className,
19
21
  layout = props.layout,
20
22
  _props$colon = props.colon,
@@ -25,13 +27,15 @@ var Descriptions = function Descriptions(props) {
25
27
  antPrefix = _getCommonConfig.antPrefix;
26
28
  var _theme$useToken = theme.useToken(),
27
29
  token = _theme$useToken.token;
28
- return /*#__PURE__*/_jsx(AntdDescriptions, _objectSpread({
29
- className: classNames(className, layout === 'vertical' && "".concat(antPrefix, "-descriptions-vertical")),
30
- layout: layout,
31
- colon: colon,
32
- style: _objectSpread(_defineProperty(_defineProperty({}, "--".concat(antPrefix, "-descriptions-vertical-label-padding-bottom"), "".concat( // @ts-ignore
33
- (_token$Descriptions$v = token.Descriptions.verticalLabelPaddingBottom) !== null && _token$Descriptions$v !== void 0 ? _token$Descriptions$v : 4, "px")), "--".concat(antPrefix, "-descriptions-vertical-content-padding-bottom"), "".concat( // @ts-ignore
34
- (_token$Descriptions$v2 = token.Descriptions.verticalContentPaddingBottom) !== null && _token$Descriptions$v2 !== void 0 ? _token$Descriptions$v2 : 24, "px")), style)
35
- }, restProps));
30
+ return /*#__PURE__*/_jsxs(_Fragment, {
31
+ children: [/*#__PURE__*/_jsx(Style, {}), /*#__PURE__*/_jsx(AntdDescriptions, _objectSpread({
32
+ className: classNames(className, layout === 'vertical' && "".concat(antPrefix, "-descriptions-vertical")),
33
+ layout: layout,
34
+ colon: colon,
35
+ style: _objectSpread(_defineProperty(_defineProperty({}, "--".concat(antPrefix, "-descriptions-vertical-label-padding-bottom"), "".concat( // @ts-ignore
36
+ (_token$Descriptions$v = token.Descriptions.verticalLabelPaddingBottom) !== null && _token$Descriptions$v !== void 0 ? _token$Descriptions$v : 4, "px")), "--".concat(antPrefix, "-descriptions-vertical-content-padding-bottom"), "".concat( // @ts-ignore
37
+ (_token$Descriptions$v2 = token.Descriptions.verticalContentPaddingBottom) !== null && _token$Descriptions$v2 !== void 0 ? _token$Descriptions$v2 : 24, "px")), style)
38
+ }, restProps))]
39
+ });
36
40
  };
37
41
  export default Descriptions;
@@ -1,17 +1 @@
1
- export declare function getIndexStyleData(params: any): {
2
- [x: string]: {
3
- [x: string]: {
4
- color: string;
5
- lineHeight?: undefined;
6
- } | {
7
- lineHeight: string;
8
- color?: undefined;
9
- };
10
- } | {
11
- [x: string]: {
12
- paddingBottom: string;
13
- };
14
- };
15
- };
16
- declare const useIndexStyle: (props?: {}) => import("../../../config").CommonConfig;
17
- export default useIndexStyle;
1
+ export declare const useStyle: () => () => import("react/jsx-runtime").JSX.Element;
@@ -1,29 +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
- return _defineProperty(_defineProperty({}, ".".concat(antPrefix, "-descriptions"), _defineProperty(_defineProperty(_defineProperty({}, ".".concat(antPrefix, "-descriptions-item-label"), {
12
- color: "var(--".concat(antPrefix, "-color-text-tertiary)")
13
- }), ".".concat(antPrefix, "-descriptions-item-content"), {
14
- color: "var(--".concat(antPrefix, "-color-text)")
15
- }), ".".concat(antPrefix, "-descriptions-item-label, .").concat(antPrefix, "-descriptions-item-content"), {
16
- lineHeight: '24px'
17
- })), ".".concat(antPrefix, "-descriptions-vertical"), _defineProperty(_defineProperty({}, ".".concat(antPrefix, "-descriptions-item:has(.").concat(antPrefix, "-descriptions-item-label)"), {
18
- paddingBottom: "var(--".concat(antPrefix, "-descriptions-vertical-label-padding-bottom)")
19
- }), ".".concat(antPrefix, "-descriptions-item:has(.").concat(antPrefix, "-descriptions-item-content)"), {
20
- paddingBottom: "var(--".concat(antPrefix, "-descriptions-vertical-content-padding-bottom)")
21
- }));
22
- }
23
- var useIndexStyle = createStyle(function (_ref2) {
24
- var css = _ref2.css,
25
- params = _objectWithoutProperties(_ref2, _excluded);
26
- var result = css(getIndexStyleData(params));
27
- return result;
28
- });
29
- 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.", "-descriptions {\n .", "-descriptions-item-label {\n color: var(--", "-color-text-tertiary);\n }\n \n .", "-descriptions-item-content {\n color: var(--", "-color-text);\n }\n \n .", "-descriptions-item-label,\n .", "-descriptions-item-content {\n line-height: 24px;\n }\n}\n\n.", "-descriptions-vertical {\n .", "-descriptions-item:has(.", "-descriptions-item-label) {\n padding-bottom: var(--", "-descriptions-vertical-label-padding-bottom);\n }\n \n .", "-descriptions-item:has(.", "-descriptions-item-content) {\n padding-bottom: var(--", "-descriptions-vertical-content-padding-bottom);\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
+ });
@@ -1,5 +1,5 @@
1
+ import { ButtonProps, DrawerProps } from "../../..";
1
2
  import React from 'react';
2
- import { DrawerProps, ButtonProps } from "../../..";
3
3
  export interface DrawerConfirmProps extends DrawerProps {
4
4
  /**
5
5
  * @description 自定义底部内容
@@ -7,10 +7,10 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
7
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
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 React from 'react';
11
- import { Drawer, Button } from "../../..";
12
10
  import { getCommonConfig } from "../../../config";
13
- import useIndexStyle from "./index.style";
11
+ import { Button, Drawer } from "../../..";
12
+ import React from 'react';
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
16
  import { Fragment as _Fragment } from "react/jsx-runtime";
@@ -26,7 +26,7 @@ var DrawerConfirm = function DrawerConfirm(props) {
26
26
  info = props.info,
27
27
  footer = props.footer,
28
28
  rest = _objectWithoutProperties(props, _excluded);
29
- useIndexStyle();
29
+ var Style = useStyle();
30
30
  var commonConfig = getCommonConfig();
31
31
  var antPrefix = commonConfig.antPrefix;
32
32
  var handleCancel = function handleCancel(e) {
@@ -37,25 +37,27 @@ var DrawerConfirm = function DrawerConfirm(props) {
37
37
  (_rest$onClose = rest.onClose) === null || _rest$onClose === void 0 || _rest$onClose.call(rest, e);
38
38
  }
39
39
  };
40
- return /*#__PURE__*/_jsx(Drawer, _objectSpread(_objectSpread({}, rest), {}, {
41
- footer: footer || /*#__PURE__*/_jsxs(_Fragment, {
42
- children: [/*#__PURE__*/_jsx("div", {
43
- className: "".concat(antPrefix, "-drawer-footer-info"),
44
- children: info
45
- }), /*#__PURE__*/_jsxs("div", {
46
- className: "".concat(antPrefix, "-drawer-footer-buttons"),
47
- children: [/*#__PURE__*/_jsx(Button, _objectSpread(_objectSpread({
48
- onClick: handleCancel
49
- }, cancelButtonProps), {}, {
50
- children: cancelText
51
- })), /*#__PURE__*/_jsx(Button, _objectSpread(_objectSpread({
52
- type: "primary",
53
- onClick: onOk
54
- }, okButtonProps), {}, {
55
- children: okText
56
- }))]
57
- })]
58
- })
59
- }));
40
+ return /*#__PURE__*/_jsxs(_Fragment, {
41
+ children: [/*#__PURE__*/_jsx(Style, {}), /*#__PURE__*/_jsx(Drawer, _objectSpread(_objectSpread({}, rest), {}, {
42
+ footer: footer || /*#__PURE__*/_jsxs(_Fragment, {
43
+ children: [/*#__PURE__*/_jsx("div", {
44
+ className: "".concat(antPrefix, "-drawer-footer-info"),
45
+ children: info
46
+ }), /*#__PURE__*/_jsxs("div", {
47
+ className: "".concat(antPrefix, "-drawer-footer-buttons"),
48
+ children: [/*#__PURE__*/_jsx(Button, _objectSpread(_objectSpread({
49
+ onClick: handleCancel
50
+ }, cancelButtonProps), {}, {
51
+ children: cancelText
52
+ })), /*#__PURE__*/_jsx(Button, _objectSpread(_objectSpread({
53
+ type: "primary",
54
+ onClick: onOk
55
+ }, okButtonProps), {}, {
56
+ children: okText
57
+ }))]
58
+ })]
59
+ })
60
+ }))]
61
+ });
60
62
  };
61
63
  export default DrawerConfirm;
@@ -12,8 +12,10 @@ import { SparkFalseLine } from '@agentscope-ai/icons';
12
12
  import { Drawer } from 'antd';
13
13
  import classNames from 'classnames';
14
14
  import SparkConfirm from "./Confirm";
15
- import useIndexStyle from "./index.style";
15
+ import { useStyle } from "./index.style";
16
16
  import { jsx as _jsx } from "react/jsx-runtime";
17
+ import { Fragment as _Fragment } from "react/jsx-runtime";
18
+ import { jsxs as _jsxs } from "react/jsx-runtime";
17
19
  var SparkDrawer = function SparkDrawer(props) {
18
20
  var children = props.children,
19
21
  className = props.className,
@@ -21,19 +23,21 @@ var SparkDrawer = function SparkDrawer(props) {
21
23
  _props$showDivider = props.showDivider,
22
24
  showDivider = _props$showDivider === void 0 ? true : _props$showDivider,
23
25
  restProps = _objectWithoutProperties(props, _excluded);
24
- useIndexStyle();
26
+ var Style = useStyle();
25
27
  var commonConfig = getCommonConfig();
26
28
  var sparkPrefix = commonConfig.sparkPrefix,
27
29
  antPrefix = commonConfig.antPrefix;
28
- return /*#__PURE__*/_jsx(Drawer, _objectSpread(_objectSpread({
29
- closeIcon: /*#__PURE__*/_jsx(SparkFalseLine, {
30
- size: 24
31
- }),
32
- className: classNames("".concat(sparkPrefix, "-drawer"), className, _defineProperty({}, "".concat(antPrefix, "-show-divider"), showDivider)),
33
- style: _objectSpread({}, style)
34
- }, restProps), {}, {
35
- children: children
36
- }));
30
+ return /*#__PURE__*/_jsxs(_Fragment, {
31
+ children: [/*#__PURE__*/_jsx(Style, {}), /*#__PURE__*/_jsx(Drawer, _objectSpread(_objectSpread({
32
+ closeIcon: /*#__PURE__*/_jsx(SparkFalseLine, {
33
+ size: 24
34
+ }),
35
+ className: classNames("".concat(sparkPrefix, "-drawer"), className, _defineProperty({}, "".concat(antPrefix, "-show-divider"), showDivider)),
36
+ style: _objectSpread({}, style)
37
+ }, restProps), {}, {
38
+ children: children
39
+ }))]
40
+ });
37
41
  };
38
42
  Object.assign(SparkDrawer, {
39
43
  Confirm: SparkConfirm
@@ -1,84 +1 @@
1
- export declare function getIndexStyleData(params: any): {
2
- [x: string]: {
3
- [x: string]: {
4
- [x: string]: string | {
5
- [x: string]: string | {
6
- fontSize: number;
7
- fontWeight: string;
8
- lineHeight: string;
9
- color: string;
10
- width?: undefined;
11
- height?: undefined;
12
- } | {
13
- width: number;
14
- height: number;
15
- fontSize?: undefined;
16
- fontWeight?: undefined;
17
- lineHeight?: undefined;
18
- color?: undefined;
19
- };
20
- display: string;
21
- flexDirection: string;
22
- };
23
- padding: string;
24
- borderBottom: string;
25
- display?: undefined;
26
- alignItems?: undefined;
27
- justifyContent?: undefined;
28
- borderTop?: undefined;
29
- color?: undefined;
30
- margin?: undefined;
31
- } | {
32
- [x: string]: string;
33
- padding?: undefined;
34
- borderBottom?: undefined;
35
- display?: undefined;
36
- alignItems?: undefined;
37
- justifyContent?: undefined;
38
- borderTop?: undefined;
39
- color?: undefined;
40
- margin?: undefined;
41
- } | {
42
- [x: string]: string | {
43
- fontSize: number;
44
- lineHeight: string;
45
- color: string;
46
- display?: undefined;
47
- gap?: undefined;
48
- } | {
49
- display: string;
50
- gap: number;
51
- fontSize?: undefined;
52
- lineHeight?: undefined;
53
- color?: undefined;
54
- };
55
- padding: string;
56
- display: string;
57
- alignItems: string;
58
- justifyContent: string;
59
- borderTop: string;
60
- borderBottom?: undefined;
61
- color?: undefined;
62
- margin?: undefined;
63
- } | {
64
- color: string;
65
- margin: number;
66
- padding?: undefined;
67
- borderBottom?: undefined;
68
- display?: undefined;
69
- alignItems?: undefined;
70
- justifyContent?: undefined;
71
- borderTop?: undefined;
72
- };
73
- } | {
74
- [x: string]: {
75
- borderBottom: string;
76
- borderTop?: undefined;
77
- } | {
78
- borderTop: string;
79
- borderBottom?: undefined;
80
- };
81
- };
82
- };
83
- declare const useIndexStyle: (props?: {}) => import("../../../config").CommonConfig;
84
- export default useIndexStyle;
1
+ export declare const useStyle: () => () => import("react/jsx-runtime").JSX.Element;