@agentscope-ai/design 1.0.8 → 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 (198) 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/bailianTheme.json +1 -1
  34. package/lib/antd/themes/generateThemeByToken.js +1 -1
  35. package/lib/components/commonComponents/AlertDialog/demo/demo1.js +13 -79
  36. package/lib/components/commonComponents/AlertDialog/demo/demo2.js +44 -64
  37. package/lib/components/commonComponents/AlertDialog/index.d.ts +14 -1
  38. package/lib/components/commonComponents/AlertDialog/index.js +25 -17
  39. package/lib/components/commonComponents/AlertDialog/index.style.d.ts +1 -17
  40. package/lib/components/commonComponents/AlertDialog/index.style.js +16 -30
  41. package/lib/components/commonComponents/Anchor/demo/demo1.d.ts +0 -4
  42. package/lib/components/commonComponents/Anchor/demo/demo1.js +3 -4
  43. package/lib/components/commonComponents/Anchor/demo/demo2.d.ts +0 -4
  44. package/lib/components/commonComponents/Anchor/demo/demo2.js +3 -5
  45. package/lib/components/commonComponents/Anchor/index.js +7 -3
  46. package/lib/components/commonComponents/Anchor/index.style.d.ts +1 -14
  47. package/lib/components/commonComponents/Anchor/index.style.js +18 -23
  48. package/lib/components/commonComponents/Avatar/index.js +11 -7
  49. package/lib/components/commonComponents/Avatar/index.style.d.ts +1 -7
  50. package/lib/components/commonComponents/Avatar/index.style.js +6 -21
  51. package/lib/components/commonComponents/Breadcrumb/index.js +9 -6
  52. package/lib/components/commonComponents/Breadcrumb/index.style.d.ts +1 -117
  53. package/lib/components/commonComponents/Breadcrumb/index.style.js +32 -61
  54. package/lib/components/commonComponents/Card/index.js +23 -20
  55. package/lib/components/commonComponents/Card/index.style.d.ts +1 -71
  56. package/lib/components/commonComponents/Card/index.style.js +24 -46
  57. package/lib/components/commonComponents/Checkbox/index.js +13 -10
  58. package/lib/components/commonComponents/Checkbox/index.style.d.ts +1 -34
  59. package/lib/components/commonComponents/Checkbox/index.style.js +50 -38
  60. package/lib/components/commonComponents/CodeBlock/index.js +13 -12
  61. package/lib/components/commonComponents/CodeBlock/index.style.d.ts +1 -354
  62. package/lib/components/commonComponents/CodeBlock/index.style.js +26 -72
  63. package/lib/components/commonComponents/Collapse/index.js +7 -3
  64. package/lib/components/commonComponents/Collapse/index.style.d.ts +1 -57
  65. package/lib/components/commonComponents/Collapse/index.style.js +34 -47
  66. package/lib/components/commonComponents/CollapsePanel/index.d.ts +10 -0
  67. package/lib/components/commonComponents/CollapsePanel/index.js +56 -44
  68. package/lib/components/commonComponents/CollapsePanel/index.style.d.ts +1 -287
  69. package/lib/components/commonComponents/CollapsePanel/index.style.js +42 -97
  70. package/lib/components/commonComponents/ConfigProvider/index.js +11 -8
  71. package/lib/components/commonComponents/DatePicker/index.js +45 -39
  72. package/lib/components/commonComponents/DatePicker/index.style.d.ts +1 -102
  73. package/lib/components/commonComponents/DatePicker/index.style.js +66 -61
  74. package/lib/components/commonComponents/Descriptions/index.js +14 -10
  75. package/lib/components/commonComponents/Descriptions/index.style.d.ts +1 -17
  76. package/lib/components/commonComponents/Descriptions/index.style.js +32 -29
  77. package/lib/components/commonComponents/Drawer/Confirm.d.ts +1 -1
  78. package/lib/components/commonComponents/Drawer/Confirm.js +26 -24
  79. package/lib/components/commonComponents/Drawer/index.js +15 -11
  80. package/lib/components/commonComponents/Drawer/index.style.d.ts +1 -84
  81. package/lib/components/commonComponents/Drawer/index.style.js +44 -54
  82. package/lib/components/commonComponents/Dropdown/index.d.ts +1 -2
  83. package/lib/components/commonComponents/Dropdown/index.js +15 -12
  84. package/lib/components/commonComponents/Dropdown/index.style.d.ts +1 -78
  85. package/lib/components/commonComponents/Dropdown/index.style.js +48 -40
  86. package/lib/components/commonComponents/EllipsisTip/index.js +14 -10
  87. package/lib/components/commonComponents/EllipsisTip/index.style.d.ts +1 -10
  88. package/lib/components/commonComponents/EllipsisTip/index.style.js +6 -24
  89. package/lib/components/commonComponents/Empty/index.js +46 -44
  90. package/lib/components/commonComponents/Empty/index.style.d.ts +1 -113
  91. package/lib/components/commonComponents/Empty/index.style.js +22 -51
  92. package/lib/components/commonComponents/FileIcon/index.js +27 -24
  93. package/lib/components/commonComponents/FileIcon/index.style.d.ts +1 -61
  94. package/lib/components/commonComponents/FileIcon/index.style.js +20 -42
  95. package/lib/components/commonComponents/FloatButton/demo/demo1.js +1 -1
  96. package/lib/components/commonComponents/FloatButton/demo/demo2.js +1 -1
  97. package/lib/components/commonComponents/Form/index.js +6 -5
  98. package/lib/components/commonComponents/Form/index.style.d.ts +1 -53
  99. package/lib/components/commonComponents/Form/index.style.js +26 -38
  100. package/lib/components/commonComponents/HelpIcon/index.js +25 -20
  101. package/lib/components/commonComponents/HelpIcon/index.style.d.ts +1 -16
  102. package/lib/components/commonComponents/HelpIcon/index.style.js +16 -29
  103. package/lib/components/commonComponents/IconButton/index.js +15 -11
  104. package/lib/components/commonComponents/IconButton/index.style.d.ts +1 -11
  105. package/lib/components/commonComponents/IconButton/index.style.js +10 -24
  106. package/lib/components/commonComponents/IconFont/index.d.ts +1 -2
  107. package/lib/components/commonComponents/IconFont/index.js +14 -9
  108. package/lib/components/commonComponents/IconFont/index.style.d.ts +1 -67
  109. package/lib/components/commonComponents/IconFont/index.style.js +14 -44
  110. package/lib/components/commonComponents/Image/index.js +8 -5
  111. package/lib/components/commonComponents/Image/index.style.d.ts +1 -22
  112. package/lib/components/commonComponents/Image/index.style.js +16 -30
  113. package/lib/components/commonComponents/Input/index.js +17 -11
  114. package/lib/components/commonComponents/Input/index.style.d.ts +1 -70
  115. package/lib/components/commonComponents/Input/index.style.js +46 -42
  116. package/lib/components/commonComponents/Modal/index.js +19 -16
  117. package/lib/components/commonComponents/Modal/index.style.d.ts +1 -111
  118. package/lib/components/commonComponents/Modal/index.style.js +54 -72
  119. package/lib/components/commonComponents/Pagination/index.d.ts +1 -1
  120. package/lib/components/commonComponents/Pagination/index.js +36 -31
  121. package/lib/components/commonComponents/Pagination/index.style.d.ts +1 -49
  122. package/lib/components/commonComponents/Pagination/index.style.js +26 -42
  123. package/lib/components/commonComponents/Popconfirm/demo/demo1.js +13 -0
  124. package/lib/components/commonComponents/Popconfirm/demo/demo2.d.ts +3 -0
  125. package/lib/components/commonComponents/Popconfirm/demo/demo2.js +49 -0
  126. package/lib/components/commonComponents/Popconfirm/index.d.ts +9 -2
  127. package/lib/components/commonComponents/Popconfirm/index.js +50 -8
  128. package/lib/components/commonComponents/PromptsEditor/index.js +2 -2
  129. package/lib/components/commonComponents/RadioButton/index.js +9 -10
  130. package/lib/components/commonComponents/RadioButton/index.style.d.ts +1 -72
  131. package/lib/components/commonComponents/RadioButton/index.style.js +52 -63
  132. package/lib/components/commonComponents/Result/index.style.d.ts +1 -3
  133. package/lib/components/commonComponents/Result/index.style.js +4 -16
  134. package/lib/components/commonComponents/Select/demo/demo2.js +0 -1
  135. package/lib/components/commonComponents/SlateEditor/elements/Var.js +11 -8
  136. package/lib/components/commonComponents/SlateEditor/elements/index.style.d.ts +1 -14
  137. package/lib/components/commonComponents/SlateEditor/elements/index.style.js +4 -21
  138. package/lib/components/commonComponents/SlateEditor/index.js +34 -31
  139. package/lib/components/commonComponents/SlateEditor/index.style.d.ts +1 -28
  140. package/lib/components/commonComponents/SlateEditor/index.style.js +4 -36
  141. package/lib/components/commonComponents/Slider/{slider.input.d.ts → Input/index.d.ts} +1 -1
  142. package/lib/components/commonComponents/Slider/Input/index.js +91 -0
  143. package/lib/components/commonComponents/Slider/Input/index.style.d.ts +1 -0
  144. package/lib/components/commonComponents/Slider/Input/index.style.js +22 -0
  145. package/lib/components/commonComponents/Slider/demo/demo4.d.ts +3 -0
  146. package/lib/components/commonComponents/Slider/demo/demo4.js +33 -0
  147. package/lib/components/commonComponents/Slider/demo/demo5.d.ts +3 -0
  148. package/lib/components/commonComponents/Slider/demo/demo5.js +34 -0
  149. package/lib/components/commonComponents/Slider/index.d.ts +2 -2
  150. package/lib/components/commonComponents/Slider/index.js +11 -7
  151. package/lib/components/commonComponents/Slider/index.style.d.ts +1 -7
  152. package/lib/components/commonComponents/Slider/index.style.js +10 -22
  153. package/lib/components/commonComponents/SliderSelector/index.js +38 -35
  154. package/lib/components/commonComponents/SliderSelector/index.style.d.ts +1 -38
  155. package/lib/components/commonComponents/SliderSelector/index.style.js +20 -37
  156. package/lib/components/commonComponents/Spinner/index.d.ts +4 -4
  157. package/lib/components/commonComponents/Spinner/index.js +28 -24
  158. package/lib/components/commonComponents/Spinner/index.style.d.ts +1 -79
  159. package/lib/components/commonComponents/Spinner/index.style.js +30 -61
  160. package/lib/components/commonComponents/Statistic/index.js +7 -3
  161. package/lib/components/commonComponents/Statistic/index.style.d.ts +1 -15
  162. package/lib/components/commonComponents/Statistic/index.style.js +14 -26
  163. package/lib/components/commonComponents/Steps/index.js +10 -6
  164. package/lib/components/commonComponents/Steps/index.style.d.ts +1 -162
  165. package/lib/components/commonComponents/Steps/index.style.js +68 -78
  166. package/lib/components/commonComponents/Switch/index.js +13 -10
  167. package/lib/components/commonComponents/Switch/index.style.d.ts +1 -25
  168. package/lib/components/commonComponents/Switch/index.style.js +22 -33
  169. package/lib/components/commonComponents/Table/index.js +10 -6
  170. package/lib/components/commonComponents/Table/index.style.d.ts +1 -52
  171. package/lib/components/commonComponents/Table/index.style.js +18 -32
  172. package/lib/components/commonComponents/Tabs/index.js +35 -29
  173. package/lib/components/commonComponents/Tabs/index.style.d.ts +1 -55
  174. package/lib/components/commonComponents/Tabs/index.style.js +38 -44
  175. package/lib/components/commonComponents/Tag/index.js +13 -9
  176. package/lib/components/commonComponents/Tag/index.style.d.ts +1 -56
  177. package/lib/components/commonComponents/Tag/index.style.js +54 -58
  178. package/lib/components/commonComponents/TimePicker/index.js +36 -30
  179. package/lib/components/commonComponents/TimePicker/index.style.d.ts +1 -71
  180. package/lib/components/commonComponents/TimePicker/index.style.js +54 -50
  181. package/lib/components/commonComponents/Tooltip/index.js +14 -10
  182. package/lib/components/commonComponents/Tooltip/index.style.d.ts +1 -24
  183. package/lib/components/commonComponents/Tooltip/index.style.js +26 -32
  184. package/lib/components/commonComponents/Upload/index.js +15 -9
  185. package/lib/components/commonComponents/Upload/index.style.d.ts +1 -125
  186. package/lib/components/commonComponents/Upload/index.style.js +80 -90
  187. package/lib/index.d.ts +3 -3
  188. package/lib/index.js +2 -2
  189. package/lib/libs/env/index.js +1 -1
  190. package/lib/libs/newCreateStyle/index.d.ts +7 -0
  191. package/lib/libs/newCreateStyle/index.js +26 -0
  192. package/llms/index.llms.txt +43 -43
  193. package/package.json +3 -3
  194. package/lib/components/commonComponents/Popconfirm/demo/demo.js +0 -155
  195. package/lib/components/commonComponents/Slider/slider.input.js +0 -76
  196. package/lib/components/commonComponents/spark.style.d.ts +0 -45
  197. package/lib/components/commonComponents/spark.style.js +0 -62
  198. /package/lib/components/commonComponents/Popconfirm/demo/{demo.d.ts → demo1.d.ts} +0 -0
@@ -1,26 +1,14 @@
1
- var _excluded = ["css"];
2
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
3
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
4
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
5
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
7
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
8
- import createStyle from "../../../libs/createStyle";
9
- export function getIndexStyleData(params) {
10
- var antPrefix = params.antPrefix;
11
- return _defineProperty({}, ".".concat(antPrefix, "-statistic"), _defineProperty(_defineProperty({}, ".".concat(antPrefix, "-statistic-title"), {
12
- color: "var(--".concat(antPrefix, "-color-text-tertiary)"),
13
- lineHeight: '24px',
14
- marginBottom: 0
15
- }), ".".concat(antPrefix, "-statistic-content"), {
16
- color: "var(--".concat(antPrefix, "-color-text)"),
17
- lineHeight: '36px'
18
- }));
19
- }
20
- var useIndexStyle = createStyle(function (_ref2) {
21
- var css = _ref2.css,
22
- params = _objectWithoutProperties(_ref2, _excluded);
23
- var result = css(getIndexStyleData(params));
24
- return result;
25
- });
26
- 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.", "-statistic {\n .", "-statistic-title {\n color: var(--", "-color-text-tertiary);\n line-height: 24px;\n margin-bottom: 0;\n }\n \n .", "-statistic-content {\n color: var(--", "-color-text);\n line-height: 36px;\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
+ });
@@ -8,12 +8,14 @@ import { getCommonConfig } from "../../../config";
8
8
  import { SparkTrueLine } from '@agentscope-ai/icons';
9
9
  import { Steps } from 'antd';
10
10
  import { useMemo } from 'react';
11
- import useIndexStyle from "./index.style";
11
+ import { useStyle } from "./index.style";
12
12
  import { jsx as _jsx } from "react/jsx-runtime";
13
+ import { Fragment as _Fragment } from "react/jsx-runtime";
14
+ import { jsxs as _jsxs } from "react/jsx-runtime";
13
15
  var SparkSteps = function SparkSteps(props) {
14
16
  var _getCommonConfig = getCommonConfig(),
15
17
  sparkPrefix = _getCommonConfig.sparkPrefix;
16
- useIndexStyle();
18
+ var Style = useStyle();
17
19
  var items = useMemo(function () {
18
20
  if (!props.items) return undefined;
19
21
  return props.items.map(function (item, index) {
@@ -40,9 +42,11 @@ var SparkSteps = function SparkSteps(props) {
40
42
  return item;
41
43
  });
42
44
  }, [props.items, props.current]);
43
- return /*#__PURE__*/_jsx(Steps, _objectSpread(_objectSpread({}, props), {}, {
44
- items: items,
45
- className: "".concat(sparkPrefix, "-steps")
46
- }));
45
+ return /*#__PURE__*/_jsxs(_Fragment, {
46
+ children: [/*#__PURE__*/_jsx(Style, {}), /*#__PURE__*/_jsx(Steps, _objectSpread(_objectSpread({}, props), {}, {
47
+ items: items,
48
+ className: "".concat(sparkPrefix, "-steps")
49
+ }))]
50
+ });
47
51
  };
48
52
  export default SparkSteps;
@@ -1,162 +1 @@
1
- export declare function getIndexStyleData(params: any): {
2
- [x: string]: {
3
- [x: string]: {
4
- display: string;
5
- flexDirection: string;
6
- fontSize?: undefined;
7
- fontWeight?: undefined;
8
- alignItems?: undefined;
9
- justifyContent?: undefined;
10
- backgroundColor?: undefined;
11
- paddingInlineEnd?: undefined;
12
- lineHeight?: undefined;
13
- color?: undefined;
14
- '&::after'?: undefined;
15
- } | {
16
- [x: string]: {
17
- '&:hover': {
18
- [x: string]: {
19
- borderColor: string;
20
- };
21
- };
22
- };
23
- display?: undefined;
24
- flexDirection?: undefined;
25
- fontSize?: undefined;
26
- fontWeight?: undefined;
27
- alignItems?: undefined;
28
- justifyContent?: undefined;
29
- backgroundColor?: undefined;
30
- paddingInlineEnd?: undefined;
31
- lineHeight?: undefined;
32
- color?: undefined;
33
- '&::after'?: undefined;
34
- } | {
35
- fontSize: string;
36
- fontWeight: number;
37
- display: string;
38
- alignItems: string;
39
- justifyContent: string;
40
- backgroundColor: string;
41
- flexDirection?: undefined;
42
- paddingInlineEnd?: undefined;
43
- lineHeight?: undefined;
44
- color?: undefined;
45
- '&::after'?: undefined;
46
- } | {
47
- [x: string]: {
48
- height: string;
49
- maxWidth?: undefined;
50
- maxHeight?: undefined;
51
- fontSize?: undefined;
52
- lineHeight?: undefined;
53
- top?: undefined;
54
- } | {
55
- [x: string]: string | {
56
- backgroundColor: string;
57
- borderRadius: string;
58
- fontSize: string;
59
- width: string;
60
- height: string;
61
- color: string;
62
- };
63
- maxWidth: string;
64
- maxHeight: string;
65
- fontSize: string;
66
- lineHeight: string;
67
- top: string;
68
- height?: undefined;
69
- };
70
- display?: undefined;
71
- flexDirection?: undefined;
72
- fontSize?: undefined;
73
- fontWeight?: undefined;
74
- alignItems?: undefined;
75
- justifyContent?: undefined;
76
- backgroundColor?: undefined;
77
- paddingInlineEnd?: undefined;
78
- lineHeight?: undefined;
79
- color?: undefined;
80
- '&::after'?: undefined;
81
- } | {
82
- paddingInlineEnd: string;
83
- lineHeight: string;
84
- color: string;
85
- fontSize: string;
86
- fontWeight: number;
87
- '&::after': {
88
- backgroundColor: string;
89
- height: string;
90
- background: string;
91
- };
92
- display?: undefined;
93
- flexDirection?: undefined;
94
- alignItems?: undefined;
95
- justifyContent?: undefined;
96
- backgroundColor?: undefined;
97
- } | {
98
- fontSize: string;
99
- lineHeight: string;
100
- color: string;
101
- display?: undefined;
102
- flexDirection?: undefined;
103
- fontWeight?: undefined;
104
- alignItems?: undefined;
105
- justifyContent?: undefined;
106
- backgroundColor?: undefined;
107
- paddingInlineEnd?: undefined;
108
- '&::after'?: undefined;
109
- } | {
110
- [x: string]: {
111
- backgroundColor: string;
112
- };
113
- display?: undefined;
114
- flexDirection?: undefined;
115
- fontSize?: undefined;
116
- fontWeight?: undefined;
117
- alignItems?: undefined;
118
- justifyContent?: undefined;
119
- backgroundColor?: undefined;
120
- paddingInlineEnd?: undefined;
121
- lineHeight?: undefined;
122
- color?: undefined;
123
- '&::after'?: undefined;
124
- } | {
125
- [x: string]: {
126
- paddingInlineStart: string;
127
- };
128
- display?: undefined;
129
- flexDirection?: undefined;
130
- fontSize?: undefined;
131
- fontWeight?: undefined;
132
- alignItems?: undefined;
133
- justifyContent?: undefined;
134
- backgroundColor?: undefined;
135
- paddingInlineEnd?: undefined;
136
- lineHeight?: undefined;
137
- color?: undefined;
138
- '&::after'?: undefined;
139
- };
140
- display?: undefined;
141
- minHeight?: undefined;
142
- alignItems?: undefined;
143
- justifyContent?: undefined;
144
- } | {
145
- [x: string]: string | {
146
- [x: string]: {
147
- marginInlineEnd: string;
148
- };
149
- width?: undefined;
150
- backgroundColor?: undefined;
151
- } | {
152
- width: string;
153
- backgroundColor: string;
154
- };
155
- display: string;
156
- minHeight: string;
157
- alignItems: string;
158
- justifyContent: string;
159
- };
160
- };
161
- declare const useIndexStyle: (props?: {}) => import("../../../config").CommonConfig;
162
- export default useIndexStyle;
1
+ export declare const useStyle: () => () => import("react/jsx-runtime").JSX.Element;
@@ -1,78 +1,68 @@
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, "-steps"), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, ".".concat(antPrefix, "-steps-item-container"), {
13
- display: 'flex',
14
- flexDirection: 'row'
15
- }), ".".concat(antPrefix, "-steps-item:not(.").concat(antPrefix, "-steps-item-active):not(.").concat(antPrefix, "-steps-item-process)"), _defineProperty({}, ".".concat(antPrefix, "-steps-item-container"), {
16
- '&:hover': _defineProperty({}, ".".concat(antPrefix, "-steps-item-icon"), {
17
- borderColor: 'transparent !important'
18
- })
19
- })), ".".concat(antPrefix, "-steps-item-icon"), {
20
- fontSize: '14px',
21
- fontWeight: 600,
22
- display: 'flex',
23
- alignItems: 'center',
24
- justifyContent: 'center',
25
- backgroundColor: "var(--".concat(antPrefix, "-color-border-secondary)")
26
- }), ".".concat(antPrefix, "-steps-item-finish"), _defineProperty(_defineProperty({}, ".".concat(antPrefix, "-steps-item-icon"), {
27
- height: '20px !important'
28
- }), ".".concat(antPrefix, "-steps-icon"), _defineProperty({
29
- maxWidth: '20px',
30
- maxHeight: '20px',
31
- fontSize: '16px !important',
32
- lineHeight: '20px !important',
33
- top: '-0.5px !important'
34
- }, ".".concat(sparkPrefix, "-finish-icon"), {
35
- backgroundColor: "var(--".concat(antPrefix, "-color-primary-bg)"),
36
- borderRadius: '50%',
37
- fontSize: '16px !important',
38
- width: '20px',
39
- height: '20px',
40
- color: "var(--".concat(antPrefix, "-color-primary)")
41
- }))), ".".concat(antPrefix, "-steps-item-title"), {
42
- paddingInlineEnd: '8px',
43
- lineHeight: '20px',
44
- color: "var(--".concat(antPrefix, "-color-text) !important"),
45
- fontSize: '14px',
46
- fontWeight: 500,
47
- '&::after': {
48
- backgroundColor: "var(--".concat(antPrefix, "-color-border-secondary) !important"),
49
- height: '1px',
50
- background: "var(--".concat(antPrefix, "-color-border-secondary)")
51
- }
52
- }), ".".concat(antPrefix, "-steps-item-description"), {
53
- fontSize: '12px',
54
- lineHeight: '20px',
55
- color: "var(--".concat(antPrefix, "-color-text-tertiary) !important")
56
- }), ".".concat(antPrefix, "-steps-item-wait"), _defineProperty({}, ".".concat(antPrefix, "-steps-item-icon"), {
57
- backgroundColor: "var(--".concat(antPrefix, "-color-primary-bg)")
58
- })), "&.".concat(antPrefix, "-steps-horizontal:not(.").concat(antPrefix, "-steps-label-vertical)"), _defineProperty({}, ".".concat(antPrefix, "-steps-item"), {
59
- paddingInlineStart: '8px'
60
- }))), ".".concat(antPrefix, "-steps-vertical"), _defineProperty(_defineProperty({
61
- display: 'flex',
62
- minHeight: '182px',
63
- alignItems: 'center',
64
- justifyContent: 'center'
65
- }, ".".concat(antPrefix, "-steps-item"), _defineProperty({}, ".".concat(antPrefix, "-steps-item-icon"), {
66
- marginInlineEnd: '9px !important'
67
- })), ".".concat(antPrefix, "-steps-item-tail::after"), {
68
- width: '1px !important',
69
- backgroundColor: "var(--".concat(antPrefix, "-color-border-secondary) !important")
70
- }));
71
- }
72
- var useIndexStyle = createStyle(function (_ref2) {
73
- var css = _ref2.css,
74
- params = _objectWithoutProperties(_ref2, _excluded);
75
- var result = css(getIndexStyleData(params));
76
- return result;
77
- });
78
- 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.", "-steps {\n .", "-steps-item-container {\n display: flex;\n flex-direction: row;\n }\n \n .", "-steps-item:not(.", "-steps-item-active):not(.", "-steps-item-process) {\n .", "-steps-item-container {\n &:hover {\n .", "-steps-item-icon {\n border-color: transparent !important;\n }\n }\n }\n }\n \n .", "-steps-item-icon {\n font-size: 14px;\n font-weight: 600;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: var(--", "-color-border-secondary);\n }\n \n .", "-steps-item-finish {\n .", "-steps-item-icon {\n height: 20px !important;\n }\n \n .", "-steps-icon {\n max-width: 20px;\n max-height: 20px;\n font-size: 16px !important;\n line-height: 20px !important;\n top: -0.5px !important;\n \n .", "-finish-icon {\n background-color: var(--", "-color-primary-bg);\n border-radius: 50%;\n font-size: 16px !important;\n width: 20px;\n height: 20px;\n color: var(--", "-color-primary);\n }\n }\n }\n \n .", "-steps-item-title {\n padding-inline-end: 8px;\n line-height: 20px;\n color: var(--", "-color-text) !important;\n font-size: 14px;\n font-weight: 500;\n \n &::after {\n background-color: var(--", "-color-border-secondary) !important;\n height: 1px;\n background: var(--", "-color-border-secondary);\n }\n }\n \n .", "-steps-item-description {\n font-size: 12px;\n line-height: 20px;\n color: var(--", "-color-text-tertiary) !important;\n }\n \n .", "-steps-item-wait {\n .", "-steps-item-icon {\n background-color: var(--", "-color-primary-bg);\n }\n }\n \n &.", "-steps-horizontal:not(.", "-steps-label-vertical) {\n .", "-steps-item {\n padding-inline-start: 8px;\n }\n }\n}\n\n.", "-steps-vertical {\n display: flex;\n min-height: 182px;\n align-items: center;\n justify-content: center;\n \n .", "-steps-item {\n .", "-steps-item-icon {\n margin-inline-end: 9px !important;\n }\n }\n \n .", "-steps-item-tail::after {\n width: 1px !important;\n background-color: var(--", "-color-border-secondary) !important;\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.sparkPrefix;
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
+ }, 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
+ }, function (p) {
67
+ return p.antPrefix;
68
+ });
@@ -10,24 +10,27 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
10
10
  import { Flex, Switch } from 'antd';
11
11
  import classNames from 'classnames';
12
12
  import { getCommonConfig } from "../../../config";
13
- import useIndexStyle from "./index.style";
13
+ import { useStyle } from "./index.style";
14
14
  import { jsx as _jsx } from "react/jsx-runtime";
15
15
  import { jsxs as _jsxs } from "react/jsx-runtime";
16
+ import { Fragment as _Fragment } from "react/jsx-runtime";
16
17
  export default (function (props) {
17
- useIndexStyle();
18
+ var Style = useStyle();
18
19
  var label = props.label,
19
20
  className = props.className,
20
21
  restProps = _objectWithoutProperties(props, _excluded);
21
22
  var _getCommonConfig = getCommonConfig(),
22
23
  sparkPrefix = _getCommonConfig.sparkPrefix;
23
- return /*#__PURE__*/_jsxs(Flex, {
24
- align: "center",
25
- gap: 8,
26
- children: [/*#__PURE__*/_jsx(Switch, _objectSpread(_objectSpread({}, restProps), {}, {
27
- className: classNames("".concat(sparkPrefix, "-switch"), className)
28
- })), /*#__PURE__*/_jsx("span", {
29
- className: "".concat(sparkPrefix, "-switch-label"),
30
- children: label
24
+ return /*#__PURE__*/_jsxs(_Fragment, {
25
+ children: [/*#__PURE__*/_jsx(Style, {}), /*#__PURE__*/_jsxs(Flex, {
26
+ align: "center",
27
+ gap: 8,
28
+ children: [/*#__PURE__*/_jsx(Switch, _objectSpread(_objectSpread({}, restProps), {}, {
29
+ className: classNames("".concat(sparkPrefix, "-switch"), className)
30
+ })), /*#__PURE__*/_jsx("span", {
31
+ className: "".concat(sparkPrefix, "-switch-label"),
32
+ children: label
33
+ })]
31
34
  })]
32
35
  });
33
36
  });
@@ -1,25 +1 @@
1
- export declare function getIndexStyleData(params: any): {
2
- [x: string]: {
3
- [x: string]: string | {
4
- background: string;
5
- opacity?: undefined;
6
- } | {
7
- [x: string]: string | number | {
8
- background: string;
9
- };
10
- opacity: number;
11
- background: string;
12
- };
13
- background: string;
14
- backgroundImage: string;
15
- fontSize?: undefined;
16
- fontWeight?: undefined;
17
- } | {
18
- fontSize: string;
19
- fontWeight: number;
20
- background?: undefined;
21
- backgroundImage?: undefined;
22
- };
23
- };
24
- declare const useIndexStyle: (props?: {}) => import("../../../config").CommonConfig;
25
- export default useIndexStyle;
1
+ export declare const useStyle: () => () => import("react/jsx-runtime").JSX.Element;
@@ -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;