@agentscope-ai/design 1.0.4 → 1.0.5

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 (77) hide show
  1. package/README.md +5 -6
  2. package/dist/antd/styles/breadcrumb.style.d.ts +18 -0
  3. package/dist/antd/styles/breadcrumb.style.js +15 -0
  4. package/dist/antd/styles/index.style.js +3 -2
  5. package/dist/antd/styles/select.style.d.ts +15 -0
  6. package/dist/antd/styles/select.style.js +7 -2
  7. package/dist/antd/themes/bailianDarkTheme.json +6 -1
  8. package/dist/antd/themes/bailianTheme.json +6 -1
  9. package/dist/antd/themes/carbonDarkTheme.json +6 -1
  10. package/dist/antd/themes/carbonTheme.json +6 -1
  11. package/dist/components/commonComponents/AlertDialog/index.js +58 -55
  12. package/dist/components/commonComponents/AlertDialog/index.style.d.ts +17 -0
  13. package/dist/components/commonComponents/AlertDialog/index.style.js +30 -0
  14. package/dist/components/commonComponents/Breadcrumb/demo/demo1.d.ts +3 -0
  15. package/dist/components/commonComponents/Breadcrumb/demo/demo1.js +23 -0
  16. package/dist/components/commonComponents/Button/index.d.ts +3 -0
  17. package/dist/components/commonComponents/Button/index.js +36 -23
  18. package/dist/components/commonComponents/Drawer/index.js +7 -0
  19. package/dist/components/commonComponents/Drawer/index.style.d.ts +9 -0
  20. package/dist/components/commonComponents/Drawer/index.style.js +4 -2
  21. package/dist/components/commonComponents/Empty/index.js +12 -6
  22. package/dist/components/commonComponents/Empty/index.style.d.ts +4 -19
  23. package/dist/components/commonComponents/Empty/index.style.js +3 -4
  24. package/dist/components/commonComponents/FloatButton/demo/demo1.d.ts +3 -0
  25. package/dist/components/commonComponents/FloatButton/demo/demo1.js +11 -0
  26. package/dist/components/commonComponents/FloatButton/demo/demo2.d.ts +3 -0
  27. package/dist/components/commonComponents/FloatButton/demo/demo2.js +11 -0
  28. package/dist/components/commonComponents/Form/index.js +2 -2
  29. package/dist/components/commonComponents/Form/index.style.d.ts +4 -2
  30. package/dist/components/commonComponents/Form/index.style.js +3 -3
  31. package/dist/components/commonComponents/HelpIcon/demo/index.js +1 -0
  32. package/dist/components/commonComponents/HelpIcon/index.js +6 -1
  33. package/dist/components/commonComponents/HelpIcon/index.style.d.ts +4 -0
  34. package/dist/components/commonComponents/HelpIcon/index.style.js +5 -2
  35. package/dist/components/commonComponents/IconButton/demo/demo1.js +5 -14
  36. package/dist/components/commonComponents/IconButton/demo/demo2.js +5 -5
  37. package/dist/components/commonComponents/IconButton/demo/demo3.js +5 -5
  38. package/dist/components/commonComponents/IconButton/demo/demo4.js +5 -5
  39. package/dist/components/commonComponents/IconButton/index.js +4 -0
  40. package/dist/components/commonComponents/IconButton/index.style.d.ts +16 -0
  41. package/dist/components/commonComponents/IconButton/index.style.js +25 -0
  42. package/dist/components/commonComponents/Input/index.js +10 -1
  43. package/dist/components/commonComponents/Input/index.style.d.ts +7 -0
  44. package/dist/components/commonComponents/Input/index.style.js +7 -3
  45. package/dist/components/commonComponents/Message/{demo.js → demo/demo1.js} +1 -1
  46. package/dist/components/commonComponents/Message/demo/demo2.js +66 -0
  47. package/dist/components/commonComponents/Message/index.d.ts +11 -2
  48. package/dist/components/commonComponents/Message/index.js +49 -1
  49. package/dist/components/commonComponents/Modal/index.js +19 -1
  50. package/dist/components/commonComponents/Modal/index.style.d.ts +33 -2
  51. package/dist/components/commonComponents/Modal/index.style.js +24 -10
  52. package/dist/components/commonComponents/Pagination/demo/demo1.js +3 -1
  53. package/dist/components/commonComponents/Pagination/demo/demo2.js +2 -1
  54. package/dist/components/commonComponents/Slider/demo/demo1.js +1 -1
  55. package/dist/components/commonComponents/Slider/demo/demo2.js +1 -1
  56. package/dist/components/commonComponents/Slider/demo/demo3.d.ts +3 -0
  57. package/dist/components/commonComponents/Slider/demo/demo3.js +44 -0
  58. package/dist/components/commonComponents/Slider/index.d.ts +11 -0
  59. package/dist/components/commonComponents/Slider/index.js +27 -0
  60. package/dist/components/commonComponents/Slider/index.style.d.ts +7 -0
  61. package/dist/components/commonComponents/Slider/index.style.js +22 -0
  62. package/dist/components/commonComponents/Slider/slider.input.d.ts +18 -0
  63. package/dist/components/commonComponents/Slider/slider.input.js +73 -0
  64. package/dist/components/commonComponents/Tag/demo1.d.ts +2 -0
  65. package/dist/components/commonComponents/Tag/{demo.js → demo1.js} +3 -0
  66. package/dist/components/commonComponents/Tag/demo2.d.ts +2 -0
  67. package/dist/components/commonComponents/Tag/demo2.js +40 -0
  68. package/dist/components/commonComponents/Tag/index.style.d.ts +11 -0
  69. package/dist/components/commonComponents/Tag/index.style.js +5 -1
  70. package/dist/index.d.ts +3 -2
  71. package/dist/index.js +3 -3
  72. package/dist/libs/env/index.d.ts +1 -5
  73. package/dist/libs/env/index.js +11 -2
  74. package/dist/libs/region/index.d.ts +1 -1
  75. package/package.json +13 -7
  76. /package/dist/components/commonComponents/Message/{demo.d.ts → demo/demo1.d.ts} +0 -0
  77. /package/dist/components/commonComponents/{Tag/demo.d.ts → Message/demo/demo2.d.ts} +0 -0
@@ -12,7 +12,7 @@ export function getIndexStyleData(params) {
12
12
  return _defineProperty({}, ".".concat(sparkPrefix, "-drawer"), _defineProperty(_defineProperty(_defineProperty({}, ".".concat(antPrefix, "-drawer-header"), _defineProperty({
13
13
  padding: '18px 20px',
14
14
  borderColor: "var(--".concat(antPrefix, "-color-border-secondary)")
15
- }, ".".concat(antPrefix, "-drawer-header-title"), _defineProperty({
15
+ }, ".".concat(antPrefix, "-drawer-header-title"), _defineProperty(_defineProperty({
16
16
  display: 'flex',
17
17
  flexDirection: 'row-reverse'
18
18
  }, ".".concat(antPrefix, "-drawer-title"), {
@@ -20,10 +20,12 @@ export function getIndexStyleData(params) {
20
20
  fontWeight: '500',
21
21
  lineHeight: '28px',
22
22
  color: "var(--".concat(antPrefix, "-color-text)")
23
+ }), ".".concat(antPrefix, "-drawer-close"), {
24
+ width: 32,
25
+ height: 32
23
26
  }))), ".".concat(antPrefix, "-drawer-footer"), {
24
27
  padding: '16px 20px',
25
28
  borderColor: "var(--".concat(antPrefix, "-color-border-secondary)"),
26
- // height: '72px',
27
29
  display: 'flex',
28
30
  alignItems: 'center'
29
31
  }), ".".concat(antPrefix, "-drawer-close"), {
@@ -5,9 +5,9 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
5
5
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
6
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
7
  import { getCommonConfig } from "../../../config";
8
- import { Space } from 'antd';
9
- import useIndexStyle from "./index.style";
8
+ import { Flex } from 'antd';
10
9
  import Button from "../Button";
10
+ import useIndexStyle from "./index.style";
11
11
  import { jsx as _jsx } from "react/jsx-runtime";
12
12
  import { jsxs as _jsxs } from "react/jsx-runtime";
13
13
  var EMPTY_TYPE_IMAGE_MAP = {
@@ -64,6 +64,7 @@ var Empty = function Empty(props) {
64
64
  isDarkMode = commonConfig.isDarkMode;
65
65
  var image = props.image || (isDarkMode ? EMPTY_TYPE_IMAGE_MAP_DARK : EMPTY_TYPE_IMAGE_MAP)[type];
66
66
  useIndexStyle();
67
+ var parsedSize = typeof size === 'string' ? parseFloat(size.replace(/px/i, '')) : size !== null && size !== void 0 ? size : 0;
67
68
  return /*#__PURE__*/_jsxs("div", {
68
69
  className: "".concat(sparkPrefix, "-empty ").concat(props.className || ''),
69
70
  style: _objectSpread(_objectSpread({}, imageStyle), {}, {
@@ -85,20 +86,25 @@ var Empty = function Empty(props) {
85
86
  width: size,
86
87
  height: size
87
88
  }
88
- }), /*#__PURE__*/_jsxs(Space, {
89
- direction: "vertical",
89
+ }), /*#__PURE__*/_jsxs(Flex, {
90
+ vertical: true,
90
91
  align: "center",
91
92
  style: {
92
- marginTop: '56.25%'
93
+ marginTop: '52.5%'
93
94
  },
94
95
  children: [title && /*#__PURE__*/_jsx("div", {
95
96
  className: "".concat(sparkPrefix, "-empty-title"),
97
+ style: {
98
+ marginBottom: description ? 0.025 * parsedSize : 0
99
+ },
96
100
  children: title
97
101
  }), description && /*#__PURE__*/_jsx("div", {
98
102
  className: "".concat(sparkPrefix, "-empty-description"),
99
103
  children: description
100
104
  }), !!okText && /*#__PURE__*/_jsx("div", {
101
- className: "".concat(sparkPrefix, "-empty-buttons"),
105
+ style: {
106
+ marginTop: 0.05 * parsedSize
107
+ },
102
108
  children: /*#__PURE__*/_jsx(Button, _objectSpread(_objectSpread({
103
109
  type: okType || 'primary',
104
110
  onClick: onOk
@@ -7,17 +7,18 @@ export declare function getIndexStyleData(params: any): {
7
7
  position: string;
8
8
  top?: undefined;
9
9
  left?: undefined;
10
+ pointerEvents?: undefined;
10
11
  fontSize?: undefined;
11
12
  fontWeight?: undefined;
12
13
  lineHeight?: undefined;
13
14
  color?: undefined;
14
15
  textAlign?: undefined;
15
16
  width?: undefined;
16
- marginTop?: undefined;
17
17
  } | {
18
18
  position: string;
19
19
  top: number;
20
20
  left: number;
21
+ pointerEvents: string;
21
22
  display?: undefined;
22
23
  flexDirection?: undefined;
23
24
  alignItems?: undefined;
@@ -28,7 +29,6 @@ export declare function getIndexStyleData(params: any): {
28
29
  color?: undefined;
29
30
  textAlign?: undefined;
30
31
  width?: undefined;
31
- marginTop?: undefined;
32
32
  } | {
33
33
  fontSize: string;
34
34
  fontWeight: number;
@@ -41,9 +41,9 @@ export declare function getIndexStyleData(params: any): {
41
41
  position?: undefined;
42
42
  top?: undefined;
43
43
  left?: undefined;
44
+ pointerEvents?: undefined;
44
45
  textAlign?: undefined;
45
46
  width?: undefined;
46
- marginTop?: undefined;
47
47
  } | {
48
48
  fontSize: string;
49
49
  lineHeight: string;
@@ -57,23 +57,8 @@ export declare function getIndexStyleData(params: any): {
57
57
  position?: undefined;
58
58
  top?: undefined;
59
59
  left?: undefined;
60
+ pointerEvents?: undefined;
60
61
  fontWeight?: undefined;
61
- marginTop?: undefined;
62
- } | {
63
- marginTop: string;
64
- display?: undefined;
65
- flexDirection?: undefined;
66
- alignItems?: undefined;
67
- overflow?: undefined;
68
- position?: undefined;
69
- top?: undefined;
70
- left?: undefined;
71
- fontSize?: undefined;
72
- fontWeight?: undefined;
73
- lineHeight?: undefined;
74
- color?: undefined;
75
- textAlign?: undefined;
76
- width?: undefined;
77
62
  };
78
63
  };
79
64
  declare const useIndexStyle: (props?: {}) => import("../../../config").CommonConfig;
@@ -9,7 +9,7 @@ import createStyle from "../../../libs/createStyle";
9
9
  export function getIndexStyleData(params) {
10
10
  var sparkPrefix = params.sparkPrefix,
11
11
  antPrefix = params.antPrefix;
12
- return _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, ".".concat(sparkPrefix, "-empty"), {
12
+ return _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, ".".concat(sparkPrefix, "-empty"), {
13
13
  display: 'flex',
14
14
  flexDirection: 'column',
15
15
  alignItems: 'center',
@@ -18,7 +18,8 @@ export function getIndexStyleData(params) {
18
18
  }), ".".concat(sparkPrefix, "-empty-image"), {
19
19
  position: 'absolute',
20
20
  top: 0,
21
- left: 0
21
+ left: 0,
22
+ pointerEvents: 'none'
22
23
  }), ".".concat(sparkPrefix, "-empty-title"), {
23
24
  fontSize: '16px',
24
25
  fontWeight: 500,
@@ -30,8 +31,6 @@ export function getIndexStyleData(params) {
30
31
  color: "var(--".concat(antPrefix, "-color-text-secondary)"),
31
32
  textAlign: 'center',
32
33
  width: '100%'
33
- }), ".".concat(sparkPrefix, "-empty-buttons"), {
34
- marginTop: '16px'
35
34
  });
36
35
  }
37
36
  var useIndexStyle = createStyle(function (_ref2) {
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const App: React.FC;
3
+ export default App;
@@ -0,0 +1,11 @@
1
+ import { FloatButton } from 'antd';
2
+ import React from 'react';
3
+ import { jsx as _jsx } from "react/jsx-runtime";
4
+ var App = function App() {
5
+ return /*#__PURE__*/_jsx(FloatButton, {
6
+ onClick: function onClick() {
7
+ return console.log('onClick');
8
+ }
9
+ });
10
+ };
11
+ export default App;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const App: React.FC;
3
+ export default App;
@@ -0,0 +1,11 @@
1
+ import { FloatButton } from 'antd';
2
+ import React from 'react';
3
+ import { jsx as _jsx } from "react/jsx-runtime";
4
+ var App = function App() {
5
+ return /*#__PURE__*/_jsx(FloatButton, {
6
+ onClick: function onClick() {
7
+ return console.log('onClick');
8
+ }
9
+ });
10
+ };
11
+ export default App;
@@ -8,7 +8,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
8
8
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
9
9
  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); }
10
10
  import { getCommonConfig } from "../../../config";
11
- import { QuestionCircleOutlined } from "@agentscope-ai/icons-override-antd";
11
+ import { InfoCircleOutlined } from "@agentscope-ai/icons-override-antd";
12
12
  import { Form } from 'antd';
13
13
  import FormItem from 'antd/es/form/FormItem';
14
14
  import classnames from 'classnames';
@@ -47,7 +47,7 @@ var InternalForm = /*#__PURE__*/forwardRef(function (props, ref) {
47
47
  var InternalFormItem = function InternalFormItem(props) {
48
48
  var tooltip = props.tooltip,
49
49
  restProps = _objectWithoutProperties(props, _excluded);
50
- var defaultTooltipIcon = /*#__PURE__*/_jsx(QuestionCircleOutlined, {});
50
+ var defaultTooltipIcon = /*#__PURE__*/_jsx(InfoCircleOutlined, {});
51
51
  function getTooltip() {
52
52
  if (!tooltip) {
53
53
  return undefined;
@@ -2,14 +2,12 @@ export declare function getIndexStyleData(params: any): {
2
2
  [x: string]: {
3
3
  [x: string]: {
4
4
  color: string;
5
- marginLeft: string;
6
5
  lineHeight: number;
7
6
  marginTop: string;
8
7
  textAlign?: undefined;
9
8
  } | {
10
9
  textAlign: string;
11
10
  color?: undefined;
12
- marginLeft?: undefined;
13
11
  lineHeight?: undefined;
14
12
  marginTop?: undefined;
15
13
  };
@@ -18,6 +16,7 @@ export declare function getIndexStyleData(params: any): {
18
16
  fontSize?: undefined;
19
17
  lineHeight?: undefined;
20
18
  color?: undefined;
19
+ gap?: undefined;
21
20
  minHeight?: undefined;
22
21
  } | {
23
22
  fontWeight: number;
@@ -25,6 +24,7 @@ export declare function getIndexStyleData(params: any): {
25
24
  fontSize: string;
26
25
  lineHeight: string;
27
26
  color: string;
27
+ gap: string;
28
28
  minHeight?: undefined;
29
29
  } | {
30
30
  [x: string]: {
@@ -35,6 +35,7 @@ export declare function getIndexStyleData(params: any): {
35
35
  fontSize?: undefined;
36
36
  lineHeight?: undefined;
37
37
  color?: undefined;
38
+ gap?: undefined;
38
39
  minHeight?: undefined;
39
40
  } | {
40
41
  minHeight: string;
@@ -43,6 +44,7 @@ export declare function getIndexStyleData(params: any): {
43
44
  fontSize?: undefined;
44
45
  lineHeight?: undefined;
45
46
  color?: undefined;
47
+ gap?: undefined;
46
48
  };
47
49
  };
48
50
  declare const useIndexStyle: (props?: {}) => import("../../../config").CommonConfig;
@@ -11,9 +11,8 @@ export function getIndexStyleData(params) {
11
11
  antPrefix = params.antPrefix;
12
12
  return _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, ".".concat(sparkPrefix, "-form"), _defineProperty(_defineProperty({}, ".".concat(sparkPrefix, "-required-mark"), {
13
13
  color: "var(--".concat(antPrefix, "-color-error)"),
14
- marginLeft: '4px',
15
14
  lineHeight: 1,
16
- marginTop: '6px'
15
+ marginTop: '-4px'
17
16
  }), ".".concat(antPrefix, "-form-item .").concat(antPrefix, "-form-item-label"), {
18
17
  textAlign: 'left'
19
18
  })), ".".concat(antPrefix, "-form-item .").concat(antPrefix, "-form-item-label > label"), {
@@ -21,7 +20,8 @@ export function getIndexStyleData(params) {
21
20
  whiteSpace: 'normal',
22
21
  fontSize: '13px',
23
22
  lineHeight: '20px',
24
- color: "var(--".concat(antPrefix, "-color-text)")
23
+ color: "var(--".concat(antPrefix, "-color-text)"),
24
+ gap: '4px'
25
25
  }), ".".concat(sparkPrefix, "-form-label-margin-small"), _defineProperty({}, ".".concat(antPrefix, "-form-item-label > label"), {
26
26
  marginRight: '8px'
27
27
  })), ".".concat(antPrefix, "-col"), {
@@ -7,6 +7,7 @@ export default (function () {
7
7
  return /*#__PURE__*/_jsxs(_Fragment, {
8
8
  children: ["\u57FA\u7840\u7528\u6CD5\uFF1A", /*#__PURE__*/_jsx("br", {}), /*#__PURE__*/_jsxs(Flex, {
9
9
  align: "center",
10
+ gap: 2,
10
11
  children: [/*#__PURE__*/_jsx("span", {
11
12
  children: "\u529F\u80FD1"
12
13
  }), /*#__PURE__*/_jsx(HelpIcon, {
@@ -4,6 +4,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
4
4
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
5
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
6
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
+ import { getCommonConfig } from "../../../config";
8
+ import classNames from 'classnames';
7
9
  import IconButton from "../IconButton";
8
10
  import useIconFontStyle from "../IconFont/index.style";
9
11
  import Tooltip from "../Tooltip";
@@ -16,6 +18,8 @@ export default function HelpIcon(props) {
16
18
  content = props.content,
17
19
  className = props.className,
18
20
  popoverProps = props.popoverProps;
21
+ var _getCommonConfig = getCommonConfig(),
22
+ sparkPrefix = _getCommonConfig.sparkPrefix;
19
23
  return /*#__PURE__*/_jsx(Tooltip, _objectSpread(_objectSpread({
20
24
  title: content,
21
25
  overlayInnerStyle: {
@@ -25,8 +29,9 @@ export default function HelpIcon(props) {
25
29
  style: style
26
30
  }, popoverProps), {}, {
27
31
  children: /*#__PURE__*/_jsx(IconButton, {
28
- className: className,
32
+ className: classNames("".concat(sparkPrefix, "-help-icon"), className),
29
33
  icon: "spark-info-line",
34
+ iconSize: 20,
30
35
  shape: "circle",
31
36
  bordered: false,
32
37
  size: "small"
@@ -1,5 +1,9 @@
1
1
  export declare function getIndexStyleData(params: any): {
2
2
  [x: string]: {
3
+ color: string;
4
+ marginLeft?: undefined;
5
+ fontSize?: undefined;
6
+ } | {
3
7
  [x: string]: string | {
4
8
  margin: number;
5
9
  };
@@ -8,8 +8,11 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
8
8
  import createStyle from "../../../libs/createStyle";
9
9
  export function getIndexStyleData(params) {
10
10
  var antPrefix = params.antPrefix,
11
- blPrefix = params.blPrefix;
12
- return _defineProperty({}, ".".concat(blPrefix, "-info-icon"), _defineProperty({
11
+ blPrefix = params.blPrefix,
12
+ sparkPrefix = params.sparkPrefix;
13
+ return _defineProperty(_defineProperty({}, ".".concat(sparkPrefix, "-help-icon"), {
14
+ color: "var(--".concat(antPrefix, "-color-text-tertiary)")
15
+ }), ".".concat(blPrefix, "-info-icon"), _defineProperty({
13
16
  color: "var(--".concat(antPrefix, "-color-icon)"),
14
17
  marginLeft: "var(--".concat(antPrefix, "-margin-xxs)"),
15
18
  fontSize: '14px'
@@ -5,7 +5,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
5
5
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
6
6
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
7
  import { IconButton, Switch } from "../../../..";
8
- import { DashOutlined, DeleteOutlined } from "@agentscope-ai/icons-override-antd";
8
+ import { SparkSearchLine } from '@agentscope-ai/icons';
9
9
  import { Flex, Space } from 'antd';
10
10
  import React, { useState } from 'react';
11
11
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -29,32 +29,23 @@ var App = function App() {
29
29
  children: [/*#__PURE__*/_jsxs(Space, {
30
30
  size: 16,
31
31
  children: [/*#__PURE__*/_jsx(IconButton, {
32
- iconType: "spark-jumpsuit-line",
32
+ iconType: "spark-setting-line",
33
33
  disabled: disabled,
34
34
  shape: "circle"
35
35
  }), /*#__PURE__*/_jsx(IconButton, {
36
- icon: /*#__PURE__*/_jsx(DeleteOutlined, {}),
37
- disabled: disabled,
38
- shape: "circle"
39
- }), /*#__PURE__*/_jsx(IconButton, {
40
- icon: /*#__PURE__*/_jsx(DashOutlined, {}),
36
+ icon: /*#__PURE__*/_jsx(SparkSearchLine, {}),
41
37
  disabled: disabled,
42
38
  shape: "circle"
43
39
  })]
44
40
  }), /*#__PURE__*/_jsxs(Space, {
45
41
  size: 16,
46
42
  children: [/*#__PURE__*/_jsx(IconButton, {
47
- icon: /*#__PURE__*/_jsx(DeleteOutlined, {}),
48
- size: "small",
49
- disabled: disabled,
50
- shape: "circle"
51
- }), /*#__PURE__*/_jsx(IconButton, {
52
- iconType: "spark-jumpsuit-line",
43
+ iconType: "spark-setting-line",
53
44
  size: "small",
54
45
  disabled: disabled,
55
46
  shape: "circle"
56
47
  }), /*#__PURE__*/_jsx(IconButton, {
57
- icon: /*#__PURE__*/_jsx(DashOutlined, {}),
48
+ icon: /*#__PURE__*/_jsx(SparkSearchLine, {}),
58
49
  size: "small",
59
50
  disabled: disabled,
60
51
  shape: "circle"
@@ -5,7 +5,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
5
5
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
6
6
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
7
  import { IconButton, Switch } from "../../../..";
8
- import { DashOutlined, DeleteOutlined } from "@agentscope-ai/icons-override-antd";
8
+ import { SparkSearchLine } from '@agentscope-ai/icons';
9
9
  import { Flex, Space } from 'antd';
10
10
  import React, { useState } from 'react';
11
11
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -29,12 +29,12 @@ var App = function App() {
29
29
  children: [/*#__PURE__*/_jsxs(Space, {
30
30
  size: 16,
31
31
  children: [/*#__PURE__*/_jsx(IconButton, {
32
- icon: /*#__PURE__*/_jsx(DeleteOutlined, {}),
32
+ icon: 'spark-setting-line',
33
33
  bordered: false,
34
34
  disabled: disabled,
35
35
  shape: "circle"
36
36
  }), /*#__PURE__*/_jsx(IconButton, {
37
- icon: /*#__PURE__*/_jsx(DashOutlined, {}),
37
+ icon: /*#__PURE__*/_jsx(SparkSearchLine, {}),
38
38
  bordered: false,
39
39
  disabled: disabled,
40
40
  shape: "circle"
@@ -42,13 +42,13 @@ var App = function App() {
42
42
  }), /*#__PURE__*/_jsxs(Space, {
43
43
  size: 16,
44
44
  children: [/*#__PURE__*/_jsx(IconButton, {
45
- icon: /*#__PURE__*/_jsx(DeleteOutlined, {}),
45
+ icon: 'spark-setting-line',
46
46
  size: "small",
47
47
  bordered: false,
48
48
  disabled: disabled,
49
49
  shape: "circle"
50
50
  }), /*#__PURE__*/_jsx(IconButton, {
51
- icon: /*#__PURE__*/_jsx(DashOutlined, {}),
51
+ icon: /*#__PURE__*/_jsx(SparkSearchLine, {}),
52
52
  size: "small",
53
53
  bordered: false,
54
54
  disabled: disabled,
@@ -5,7 +5,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
5
5
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
6
6
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
7
  import { IconButton, Switch } from "../../../..";
8
- import { DashOutlined, DeleteOutlined } from "@agentscope-ai/icons-override-antd";
8
+ import { SparkSearchLine } from '@agentscope-ai/icons';
9
9
  import { Flex, Space } from 'antd';
10
10
  import React, { useState } from 'react';
11
11
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -29,20 +29,20 @@ var App = function App() {
29
29
  children: [/*#__PURE__*/_jsxs(Space, {
30
30
  size: 16,
31
31
  children: [/*#__PURE__*/_jsx(IconButton, {
32
- icon: /*#__PURE__*/_jsx(DeleteOutlined, {}),
32
+ icon: 'spark-setting-line',
33
33
  disabled: disabled
34
34
  }), /*#__PURE__*/_jsx(IconButton, {
35
- icon: /*#__PURE__*/_jsx(DashOutlined, {}),
35
+ icon: /*#__PURE__*/_jsx(SparkSearchLine, {}),
36
36
  disabled: disabled
37
37
  })]
38
38
  }), /*#__PURE__*/_jsxs(Space, {
39
39
  size: 16,
40
40
  children: [/*#__PURE__*/_jsx(IconButton, {
41
- icon: /*#__PURE__*/_jsx(DeleteOutlined, {}),
41
+ icon: 'spark-setting-line',
42
42
  size: "small",
43
43
  disabled: disabled
44
44
  }), /*#__PURE__*/_jsx(IconButton, {
45
- icon: /*#__PURE__*/_jsx(DashOutlined, {}),
45
+ icon: /*#__PURE__*/_jsx(SparkSearchLine, {}),
46
46
  size: "small",
47
47
  disabled: disabled
48
48
  })]
@@ -5,7 +5,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
5
5
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
6
6
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
7
  import { IconButton, Switch } from "../../../..";
8
- import { DashOutlined, DeleteOutlined } from "@agentscope-ai/icons-override-antd";
8
+ import { SparkSearchLine } from '@agentscope-ai/icons';
9
9
  import { Flex, Space } from 'antd';
10
10
  import React, { useState } from 'react';
11
11
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -29,22 +29,22 @@ var App = function App() {
29
29
  children: [/*#__PURE__*/_jsxs(Space, {
30
30
  size: 16,
31
31
  children: [/*#__PURE__*/_jsx(IconButton, {
32
- icon: /*#__PURE__*/_jsx(DeleteOutlined, {}),
32
+ icon: 'spark-setting-line',
33
33
  bordered: false,
34
34
  disabled: disabled
35
35
  }), /*#__PURE__*/_jsx(IconButton, {
36
- icon: /*#__PURE__*/_jsx(DashOutlined, {}),
36
+ icon: /*#__PURE__*/_jsx(SparkSearchLine, {}),
37
37
  bordered: false,
38
38
  disabled: disabled
39
39
  })]
40
40
  }), /*#__PURE__*/_jsxs(Space, {
41
41
  size: 16,
42
42
  children: [/*#__PURE__*/_jsx(IconButton, {
43
- icon: /*#__PURE__*/_jsx(DeleteOutlined, {}),
43
+ icon: 'spark-setting-line',
44
44
  bordered: false,
45
45
  disabled: disabled
46
46
  }), /*#__PURE__*/_jsx(IconButton, {
47
- icon: /*#__PURE__*/_jsx(DashOutlined, {}),
47
+ icon: /*#__PURE__*/_jsx(SparkSearchLine, {}),
48
48
  bordered: false,
49
49
  disabled: disabled
50
50
  })]
@@ -9,7 +9,9 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
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
10
  import IconFont from "../IconFont";
11
11
  import { Button, getCommonConfig } from "../../..";
12
+ import classNames from 'classnames';
12
13
  import { useMemo } from 'react';
14
+ import useIndexStyle from "./index.style";
13
15
  import { jsx as _jsx } from "react/jsx-runtime";
14
16
  export default (function (props) {
15
17
  var _props$bordered = props.bordered,
@@ -17,6 +19,7 @@ export default (function (props) {
17
19
  restProps = _objectWithoutProperties(props, _excluded);
18
20
  var config = getCommonConfig();
19
21
  var iconfont = config.iconfont;
22
+ useIndexStyle();
20
23
  var icon = useMemo(function () {
21
24
  if (props.iconType) {
22
25
  return /*#__PURE__*/_jsx(IconFont, {
@@ -33,6 +36,7 @@ export default (function (props) {
33
36
  }
34
37
  }, [props.icon, props.iconType, iconfont]);
35
38
  return /*#__PURE__*/_jsx(Button, _objectSpread(_objectSpread({
39
+ className: classNames(props.className, "".concat(config.sparkPrefix, "-icon-button")),
36
40
  style: {
37
41
  lineHeight: 1
38
42
  },
@@ -0,0 +1,16 @@
1
+ export declare function getIndexStyleData(params: any): {
2
+ [x: string]: {
3
+ [x: string]: number | {
4
+ backgroundColor: string;
5
+ borderColor: string;
6
+ fontSize?: undefined;
7
+ } | {
8
+ fontSize: number;
9
+ backgroundColor?: undefined;
10
+ borderColor?: undefined;
11
+ };
12
+ fontSize: number;
13
+ };
14
+ };
15
+ declare const useIndexStyle: (props?: {}) => import("../../../config").CommonConfig;
16
+ export default useIndexStyle;
@@ -0,0 +1,25 @@
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, "-icon-button.").concat(antPrefix, "-btn"), _defineProperty(_defineProperty(_defineProperty({}, "&:not(:disabled):not(.".concat(antPrefix, "-btn-disabled):hover"), {
13
+ backgroundColor: "var(--".concat(antPrefix, "-color-primary-bg)"),
14
+ borderColor: "transparent"
15
+ }), "fontSize", 20), "&.".concat(antPrefix, "-btn-sm"), {
16
+ fontSize: 16
17
+ }));
18
+ }
19
+ var useIndexStyle = createStyle(function (_ref2) {
20
+ var css = _ref2.css,
21
+ params = _objectWithoutProperties(_ref2, _excluded);
22
+ var result = css(getIndexStyleData(params));
23
+ return result;
24
+ });
25
+ export default useIndexStyle;
@@ -25,8 +25,17 @@ var SparkInput = /*#__PURE__*/React.forwardRef(function (props, ref) {
25
25
  ref: ref
26
26
  }));
27
27
  });
28
+ var SparkTextArea = /*#__PURE__*/React.forwardRef(function (props, ref) {
29
+ var _getCommonConfig2 = getCommonConfig(),
30
+ antPrefix = _getCommonConfig2.antPrefix;
31
+ useIndexStyle();
32
+ return /*#__PURE__*/_jsx(Input.TextArea, _objectSpread(_objectSpread({}, props), {}, {
33
+ className: "".concat(antPrefix, "-text-area"),
34
+ ref: ref
35
+ }));
36
+ });
28
37
  Object.assign(SparkInput, {
29
- TextArea: Input.TextArea,
38
+ TextArea: SparkTextArea,
30
39
  Search: Input.Search,
31
40
  Password: Input.Password,
32
41
  OTP: Input.OTP
@@ -3,6 +3,7 @@ export declare function getIndexStyleData(params: any): {
3
3
  borderColor: string;
4
4
  fontWeight?: undefined;
5
5
  borderRadius?: undefined;
6
+ '&::placeholder'?: undefined;
6
7
  fontSize?: undefined;
7
8
  } | {
8
9
  [x: string]: string | number | {
@@ -10,6 +11,9 @@ export declare function getIndexStyleData(params: any): {
10
11
  };
11
12
  fontWeight: number;
12
13
  borderRadius: string;
14
+ '&::placeholder': {
15
+ color: string;
16
+ };
13
17
  borderColor?: undefined;
14
18
  fontSize?: undefined;
15
19
  } | {
@@ -19,16 +23,19 @@ export declare function getIndexStyleData(params: any): {
19
23
  borderColor?: undefined;
20
24
  fontWeight?: undefined;
21
25
  borderRadius?: undefined;
26
+ '&::placeholder'?: undefined;
22
27
  fontSize?: undefined;
23
28
  } | {
24
29
  fontSize: string;
25
30
  borderColor?: undefined;
26
31
  fontWeight?: undefined;
27
32
  borderRadius?: undefined;
33
+ '&::placeholder'?: undefined;
28
34
  } | {
29
35
  borderRadius: string;
30
36
  borderColor?: undefined;
31
37
  fontWeight?: undefined;
38
+ '&::placeholder'?: undefined;
32
39
  fontSize?: undefined;
33
40
  };
34
41
  };