@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,33 +1,22 @@
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, "-switch"), _defineProperty(_defineProperty({
13
- background: "var(--".concat(antPrefix, "-color-primary-bg)"),
14
- backgroundImage: 'none !important'
15
- }, "&.".concat(antPrefix, "-switch-checked"), {
16
- background: "var(--".concat(antPrefix, "-color-primary)")
17
- }), "&.".concat(antPrefix, "-switch-disabled"), _defineProperty({
18
- opacity: 1,
19
- background: "var(--".concat(antPrefix, "-color-fill-disable)")
20
- }, "&.".concat(antPrefix, "-switch-checked"), {
21
- background: "var(--".concat(antPrefix, "-color-primary-border-hover)")
22
- }))), ".".concat(sparkPrefix, "-switch-label"), {
23
- fontSize: '14px',
24
- fontWeight: 500
25
- });
26
- }
27
- var useIndexStyle = createStyle(function (_ref2) {
28
- var css = _ref2.css,
29
- params = _objectWithoutProperties(_ref2, _excluded);
30
- var result = css(getIndexStyleData(params));
31
- return result;
32
- });
33
- 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.", "-switch {\n background: var(--", "-color-primary-bg);\n background-image: none !important;\n \n &.", "-switch-checked {\n background: var(--", "-color-primary);\n }\n \n &.", "-switch-disabled {\n opacity: 1;\n background: var(--", "-color-fill-disable);\n \n &.", "-switch-checked {\n background: var(--", "-color-primary-border-hover);\n }\n }\n}\n\n.", "-switch-label {\n font-size: 14px;\n font-weight: 500;\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
+ });
@@ -11,8 +11,10 @@ import { getCommonConfig } from "../../../config";
11
11
  import { SparkSortLine } from '@agentscope-ai/icons';
12
12
  import { Table as AntdTable } from 'antd';
13
13
  import classNames from 'classnames';
14
- import useIndexStyle from "./index.style";
14
+ import { useStyle } from "./index.style";
15
15
  import { jsx as _jsx } from "react/jsx-runtime";
16
+ import { Fragment as _Fragment } from "react/jsx-runtime";
17
+ import { jsxs as _jsxs } from "react/jsx-runtime";
16
18
  export default function BLTable(props) {
17
19
  var _columns;
18
20
  var commonConfig = getCommonConfig();
@@ -31,9 +33,11 @@ export default function BLTable(props) {
31
33
  }
32
34
  });
33
35
  });
34
- useIndexStyle();
35
- return /*#__PURE__*/_jsx(AntdTable, _objectSpread({
36
- className: classNames("".concat(sparkPrefix, "-table")),
37
- columns: columns
38
- }, restProps));
36
+ var Style = useStyle();
37
+ return /*#__PURE__*/_jsxs(_Fragment, {
38
+ children: [/*#__PURE__*/_jsx(Style, {}), /*#__PURE__*/_jsx(AntdTable, _objectSpread({
39
+ className: classNames("".concat(sparkPrefix, "-table")),
40
+ columns: columns
41
+ }, restProps))]
42
+ });
39
43
  }
@@ -1,52 +1 @@
1
- export declare function getIndexStyleData(params: any): {
2
- [x: string]: {
3
- [x: string]: {
4
- [x: string]: {
5
- [x: string]: {
6
- padding: string;
7
- fontWeight: number;
8
- color: string;
9
- borderStartStartRadius?: undefined;
10
- borderStartEndRadius?: undefined;
11
- display?: undefined;
12
- } | {
13
- borderStartStartRadius: number;
14
- padding?: undefined;
15
- fontWeight?: undefined;
16
- color?: undefined;
17
- borderStartEndRadius?: undefined;
18
- display?: undefined;
19
- } | {
20
- borderStartEndRadius: number;
21
- padding?: undefined;
22
- fontWeight?: undefined;
23
- color?: undefined;
24
- borderStartStartRadius?: undefined;
25
- display?: undefined;
26
- } | {
27
- display: string;
28
- padding?: undefined;
29
- fontWeight?: undefined;
30
- color?: undefined;
31
- borderStartStartRadius?: undefined;
32
- borderStartEndRadius?: undefined;
33
- } | {
34
- padding: string;
35
- fontWeight?: undefined;
36
- color?: undefined;
37
- borderStartStartRadius?: undefined;
38
- borderStartEndRadius?: undefined;
39
- display?: undefined;
40
- };
41
- "table > thead > tr:first-child > *:first-child": {
42
- borderStartStartRadius: number;
43
- };
44
- "table > thead > tr:first-child > *:last-child": {
45
- borderStartEndRadius: number;
46
- };
47
- };
48
- };
49
- };
50
- };
51
- declare const useIndexStyle: (props?: {}) => import("../../../config").CommonConfig;
52
- export default useIndexStyle;
1
+ export declare const useStyle: () => () => import("react/jsx-runtime").JSX.Element;
@@ -1,32 +1,18 @@
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({}, ".".concat(sparkPrefix, "-table"), _defineProperty({}, "&.".concat(antPrefix, "-table-wrapper"), _defineProperty({}, ".".concat(antPrefix, "-table-container"), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, ".".concat(antPrefix, "-table-thead > tr > th"), {
13
- padding: '8px 20px',
14
- fontWeight: 400,
15
- color: "var(--".concat(antPrefix, "-color-text-secondary)")
16
- }), "table > thead > tr:first-child > *:first-child", {
17
- borderStartStartRadius: 0
18
- }), "table > thead > tr:first-child > *:last-child", {
19
- borderStartEndRadius: 0
20
- }), ".".concat(antPrefix, "-table-thead > tr > th:not(:last-child):not(.sps-table-selection-column):not(.sps-table-row-expand-icon-cell):not([colspan])::before"), {
21
- display: 'none'
22
- }), ".".concat(antPrefix, "-table-tbody > tr > td"), {
23
- padding: '16px 20px'
24
- }))));
25
- }
26
- var useIndexStyle = createStyle(function (_ref2) {
27
- var css = _ref2.css,
28
- params = _objectWithoutProperties(_ref2, _excluded);
29
- var result = css(getIndexStyleData(params));
30
- return result;
31
- });
32
- 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.", "-table {\n &.", "-table-wrapper {\n .", "-table-container {\n .", "-table-thead > tr > th {\n padding: 8px 20px;\n font-weight: 400;\n color: var(--", "-color-text-secondary);\n }\n \n table > thead > tr:first-child > *:first-child {\n border-start-start-radius: 0;\n }\n \n table > thead > tr:first-child > *:last-child {\n border-start-end-radius: 0;\n }\n \n .", "-table-thead > tr > th:not(:last-child):not(.sps-table-selection-column):not(.sps-table-row-expand-icon-cell):not([colspan])::before {\n display: none;\n }\n \n .", "-table-tbody > tr > td {\n padding: 16px 20px;\n }\n }\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
+ });
@@ -17,8 +17,10 @@ import { getCommonConfig } from "../../../config";
17
17
  import useMergedState from '@rc-component/util/lib/hooks/useMergedState';
18
18
  import { Segmented, Tabs } from 'antd';
19
19
  import classNames from 'classnames';
20
- import useIndexStyle from "./index.style";
20
+ import { useStyle } from "./index.style";
21
21
  import { jsx as _jsx } from "react/jsx-runtime";
22
+ import { Fragment as _Fragment } from "react/jsx-runtime";
23
+ import { jsxs as _jsxs } from "react/jsx-runtime";
22
24
  var SparkTabs = function SparkTabs(props) {
23
25
  var type = props.type,
24
26
  centered = props.centered,
@@ -35,36 +37,40 @@ var SparkTabs = function SparkTabs(props) {
35
37
  _useMergedState2 = _slicedToArray(_useMergedState, 2),
36
38
  mergedActiveKey = _useMergedState2[0],
37
39
  setMergedActiveKey = _useMergedState2[1];
38
- useIndexStyle();
40
+ var Style = useStyle();
39
41
  if (type === 'segmented') {
40
- return /*#__PURE__*/_jsx(Tabs, _objectSpread(_objectSpread({
41
- animated: false
42
- }, restProps), {}, {
43
- activeKey: mergedActiveKey,
44
- renderTabBar: function renderTabBar(tabProps) {
45
- var _props$items;
46
- var options = ((_props$items = props.items) === null || _props$items === void 0 ? void 0 : _props$items.map(function (item) {
47
- return {
48
- label: item.label,
49
- value: item.key,
50
- disabled: item.disabled
51
- };
52
- })) || [];
53
- return /*#__PURE__*/_jsx(Segmented, {
54
- options: options,
55
- onChange: function onChange(value) {
56
- var _props$onChange;
57
- setMergedActiveKey(value);
58
- (_props$onChange = props.onChange) === null || _props$onChange === void 0 || _props$onChange.call(props, value);
59
- },
60
- className: classNames("".concat(sparkPrefix, "-segmented-tab-bar"), _defineProperty({}, "".concat(sparkPrefix, "-segmented-tab-bar-centered"), centered)),
61
- value: tabProps.activeKey,
62
- size: props.size
63
- });
64
- }
65
- }));
42
+ return /*#__PURE__*/_jsxs(_Fragment, {
43
+ children: [/*#__PURE__*/_jsx(Style, {}), /*#__PURE__*/_jsx(Tabs, _objectSpread(_objectSpread({
44
+ animated: false
45
+ }, restProps), {}, {
46
+ activeKey: mergedActiveKey,
47
+ renderTabBar: function renderTabBar(tabProps) {
48
+ var _props$items;
49
+ var options = ((_props$items = props.items) === null || _props$items === void 0 ? void 0 : _props$items.map(function (item) {
50
+ return {
51
+ label: item.label,
52
+ value: item.key,
53
+ disabled: item.disabled
54
+ };
55
+ })) || [];
56
+ return /*#__PURE__*/_jsx(Segmented, {
57
+ options: options,
58
+ onChange: function onChange(value) {
59
+ var _props$onChange;
60
+ setMergedActiveKey(value);
61
+ (_props$onChange = props.onChange) === null || _props$onChange === void 0 || _props$onChange.call(props, value);
62
+ },
63
+ className: classNames("".concat(sparkPrefix, "-segmented-tab-bar"), _defineProperty({}, "".concat(sparkPrefix, "-segmented-tab-bar-centered"), centered)),
64
+ value: tabProps.activeKey,
65
+ size: props.size
66
+ });
67
+ }
68
+ }))]
69
+ });
66
70
  }
67
- return /*#__PURE__*/_jsx(Tabs, _objectSpread({}, restProps));
71
+ return /*#__PURE__*/_jsxs(_Fragment, {
72
+ children: [/*#__PURE__*/_jsx(Style, {}), /*#__PURE__*/_jsx(Tabs, _objectSpread({}, restProps))]
73
+ });
68
74
  };
69
75
  SparkTabs.TabPane = Tabs.TabPane;
70
76
  export default SparkTabs;
@@ -1,55 +1 @@
1
- export declare function getIndexStyleData(params: any): {
2
- [x: string]: {
3
- [x: string]: {
4
- color: string;
5
- fontWeight: number;
6
- background?: undefined;
7
- } | {
8
- background: string;
9
- color?: undefined;
10
- fontWeight?: undefined;
11
- };
12
- display?: undefined;
13
- '&::after'?: undefined;
14
- marginBottom?: undefined;
15
- background?: undefined;
16
- alignSelf?: undefined;
17
- } | {
18
- display: string;
19
- '&::after'?: undefined;
20
- marginBottom?: undefined;
21
- background?: undefined;
22
- alignSelf?: undefined;
23
- } | {
24
- [x: string]: {
25
- background: string;
26
- opacity: string;
27
- fontWeight?: undefined;
28
- color?: undefined;
29
- } | {
30
- fontWeight: number;
31
- color: string;
32
- background?: undefined;
33
- opacity?: undefined;
34
- };
35
- '&::after': {
36
- background: string;
37
- opacity: string;
38
- };
39
- display?: undefined;
40
- marginBottom?: undefined;
41
- background?: undefined;
42
- alignSelf?: undefined;
43
- } | {
44
- [x: string]: string | {
45
- alignSelf: string;
46
- };
47
- marginBottom: string;
48
- background: string;
49
- alignSelf: string;
50
- display?: undefined;
51
- '&::after'?: undefined;
52
- };
53
- };
54
- declare const useIndexStyle: (props?: {}) => import("../../../config").CommonConfig;
55
- export default useIndexStyle;
1
+ export declare const useStyle: () => () => import("react/jsx-runtime").JSX.Element;
@@ -1,44 +1,38 @@
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({}, ".".concat(antPrefix, "-tabs"), _defineProperty(_defineProperty(_defineProperty({}, ".".concat(antPrefix, "-tabs-tab.").concat(antPrefix, "-tabs-tab-active .").concat(antPrefix, "-tabs-tab-btn"), {
13
- color: "var(--".concat(antPrefix, "-color-text)"),
14
- fontWeight: 500
15
- }), ".".concat(antPrefix, "-tabs-tab .").concat(antPrefix, "-tabs-tab-btn"), {
16
- color: "var(--".concat(antPrefix, "-color-text)"),
17
- fontWeight: 400
18
- }), ".".concat(antPrefix, "-tabs-ink-bar"), {
19
- background: "var(--".concat(antPrefix, "-color-primary)")
20
- })), ".".concat(antPrefix, "-tabs-nav::before"), {
21
- display: 'none!important'
22
- }), ".".concat(antPrefix, "-segmented-item"), _defineProperty({
23
- '&::after': {
24
- background: 'none !important',
25
- opacity: '1 !important'
26
- }
27
- }, ".".concat(antPrefix, "-segmented-item-label"), {
28
- fontWeight: 500,
29
- color: "var(--".concat(antPrefix, "-color-text)")
30
- })), ".".concat(sparkPrefix, "-segmented-tab-bar"), _defineProperty({
31
- marginBottom: '16px',
32
- background: "var(--".concat(antPrefix, "-color-fill-tertiary)"),
33
- alignSelf: 'baseline'
34
- }, "&.".concat(sparkPrefix, "-segmented-tab-bar-centered"), {
35
- alignSelf: 'center'
36
- }));
37
- }
38
- var useIndexStyle = createStyle(function (_ref2) {
39
- var css = _ref2.css,
40
- params = _objectWithoutProperties(_ref2, _excluded);
41
- var result = css(getIndexStyleData(params));
42
- return result;
43
- });
44
- 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.", "-tabs {\n .", "-tabs-tab.", "-tabs-tab-active .", "-tabs-tab-btn {\n color: var(--", "-color-text);\n font-weight: 500;\n }\n \n .", "-tabs-tab .", "-tabs-tab-btn {\n color: var(--", "-color-text);\n font-weight: 400;\n }\n \n .", "-tabs-ink-bar {\n background: var(--", "-color-primary);\n }\n}\n\n.", "-tabs-nav::before {\n display: none !important;\n}\n\n.", "-segmented-item {\n &::after {\n background: none !important;\n opacity: 1 !important;\n }\n \n .", "-segmented-item-label {\n font-weight: 500;\n color: var(--", "-color-text);\n }\n}\n\n.", "-segmented-tab-bar {\n margin-bottom: 16px;\n background: var(--", "-color-fill-tertiary);\n align-self: baseline;\n \n &.", "-segmented-tab-bar-centered {\n align-self: center;\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.sparkPrefix;
34
+ }, function (p) {
35
+ return p.antPrefix;
36
+ }, function (p) {
37
+ return p.sparkPrefix;
38
+ });
@@ -3,7 +3,6 @@ import { SparkEffciencyLine } from '@agentscope-ai/icons';
3
3
  import { jsx as _jsx } from "react/jsx-runtime";
4
4
  export default (function () {
5
5
  return /*#__PURE__*/_jsx(Tag, {
6
- color: "mauve",
7
6
  icon: /*#__PURE__*/_jsx(SparkEffciencyLine, {
8
7
  style: {
9
8
  fontSize: '20px'
@@ -9,7 +9,6 @@ export default (function () {
9
9
  align: "center",
10
10
  gap: 16,
11
11
  children: [/*#__PURE__*/_jsx(Tag, {
12
- color: "mauve",
13
12
  closeIcon: /*#__PURE__*/_jsx(SparkFalseLine, {
14
13
  style: {
15
14
  fontSize: '20px'
@@ -17,7 +16,6 @@ export default (function () {
17
16
  }),
18
17
  children: "Tag MD"
19
18
  }), /*#__PURE__*/_jsx(Tag, {
20
- color: "mauve",
21
19
  icon: /*#__PURE__*/_jsx(SparkEffciencyLine, {
22
20
  style: {
23
21
  fontSize: '20px'
@@ -11,27 +11,31 @@ import { getCommonConfig } from "../../../config";
11
11
  import { Tag } from 'antd';
12
12
  import classNames from 'classnames';
13
13
  import { forwardRef } from 'react';
14
- import useIndexStyle from "./index.style";
14
+ import { useStyle } from "./index.style";
15
15
  import { jsx as _jsx } from "react/jsx-runtime";
16
+ import { Fragment as _Fragment } from "react/jsx-runtime";
17
+ import { jsxs as _jsxs } from "react/jsx-runtime";
16
18
  var SparkTag = /*#__PURE__*/forwardRef(function (props, ref) {
17
19
  var children = props.children,
18
20
  className = props.className,
19
21
  _props$bordered = props.bordered,
20
22
  bordered = _props$bordered === void 0 ? false : _props$bordered,
21
23
  _props$color = props.color,
22
- color = _props$color === void 0 ? 'purple' : _props$color,
24
+ color = _props$color === void 0 ? 'mauve' : _props$color,
23
25
  _props$size = props.size,
24
26
  size = _props$size === void 0 ? 'middle' : _props$size,
25
27
  restProps = _objectWithoutProperties(props, _excluded);
26
- useIndexStyle();
28
+ var Style = useStyle();
27
29
  var commonConfig = getCommonConfig();
28
30
  var sparkPrefix = commonConfig.sparkPrefix;
29
- return /*#__PURE__*/_jsx(Tag, _objectSpread(_objectSpread({
30
- className: classNames("".concat(sparkPrefix, "-tag ").concat(sparkPrefix, "-tag-").concat(color, " ").concat(sparkPrefix, "-tag-").concat(size), className),
31
- bordered: bordered
32
- }, restProps), {}, {
33
- ref: ref,
34
- children: children
35
- }));
31
+ return /*#__PURE__*/_jsxs(_Fragment, {
32
+ children: [/*#__PURE__*/_jsx(Style, {}), /*#__PURE__*/_jsx(Tag, _objectSpread(_objectSpread({
33
+ className: classNames("".concat(sparkPrefix, "-tag ").concat(sparkPrefix, "-tag-").concat(color, " ").concat(sparkPrefix, "-tag-").concat(size), className),
34
+ bordered: bordered
35
+ }, restProps), {}, {
36
+ ref: ref,
37
+ children: children
38
+ }))]
39
+ });
36
40
  });
37
41
  export default SparkTag;
@@ -1,56 +1 @@
1
- export declare function getIndexStyleData(params: any): {
2
- [x: string]: {
3
- [x: string]: string | number | {
4
- marginLeft: number;
5
- };
6
- fontWeight: number;
7
- border: string;
8
- display: string;
9
- alignItems: string;
10
- gap: string;
11
- height?: undefined;
12
- fontSize?: undefined;
13
- padding?: undefined;
14
- color?: undefined;
15
- background?: undefined;
16
- borderColor?: undefined;
17
- } | {
18
- height: string;
19
- fontSize: string;
20
- padding: string;
21
- fontWeight?: undefined;
22
- border?: undefined;
23
- display?: undefined;
24
- alignItems?: undefined;
25
- gap?: undefined;
26
- color?: undefined;
27
- background?: undefined;
28
- borderColor?: undefined;
29
- } | {
30
- color: string;
31
- background: string;
32
- fontWeight?: undefined;
33
- border?: undefined;
34
- display?: undefined;
35
- alignItems?: undefined;
36
- gap?: undefined;
37
- height?: undefined;
38
- fontSize?: undefined;
39
- padding?: undefined;
40
- borderColor?: undefined;
41
- } | {
42
- color: string;
43
- background: string;
44
- borderColor: string;
45
- fontWeight?: undefined;
46
- border?: undefined;
47
- display?: undefined;
48
- alignItems?: undefined;
49
- gap?: undefined;
50
- height?: undefined;
51
- fontSize?: undefined;
52
- padding?: undefined;
53
- };
54
- };
55
- declare const useIndexStyle: (props?: {}) => import("../../../config").CommonConfig;
56
- export default useIndexStyle;
1
+ export declare const useStyle: () => () => import("react/jsx-runtime").JSX.Element;