@agentscope-ai/design 1.0.16-rc.0 → 1.0.17

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 (52) hide show
  1. package/lib/antd/styles/button.style.js +13 -1
  2. package/lib/antd/styles/index.style.js +3 -1
  3. package/lib/antd/styles/tree.style.d.ts +6 -0
  4. package/lib/antd/styles/tree.style.js +18 -0
  5. package/lib/antd/themes/bailianDarkTheme.json +3 -1
  6. package/lib/antd/themes/bailianTheme.json +4 -2
  7. package/lib/antd/themes/carbonDarkTheme.json +3 -1
  8. package/lib/antd/themes/carbonTheme.json +3 -1
  9. package/lib/components/commonComponents/Audio/Control.d.ts +53 -0
  10. package/lib/components/commonComponents/{Video → Audio}/Control.js +18 -15
  11. package/lib/components/commonComponents/Audio/Control.style.d.ts +1 -0
  12. package/lib/components/commonComponents/Audio/Control.style.js +14 -0
  13. package/lib/components/commonComponents/Audio/index.d.ts +14 -0
  14. package/lib/components/commonComponents/Audio/index.js +165 -0
  15. package/lib/components/commonComponents/Audio/index.style.d.ts +1 -0
  16. package/lib/components/commonComponents/Audio/index.style.js +10 -0
  17. package/lib/components/commonComponents/Button/demo/demo1.js +7 -0
  18. package/lib/components/commonComponents/Button/index.js +2 -1
  19. package/lib/components/commonComponents/CollapsePanel/demo/demo1.js +1 -1
  20. package/lib/components/commonComponents/CollapsePanel/index.js +4 -4
  21. package/lib/components/commonComponents/EllipsisTip/index.d.ts +8 -1
  22. package/lib/components/commonComponents/EllipsisTip/index.js +33 -3
  23. package/lib/components/commonComponents/Empty/index.d.ts +6 -0
  24. package/lib/components/commonComponents/Empty/index.js +22 -7
  25. package/lib/components/commonComponents/Empty/index.style.js +1 -1
  26. package/lib/components/commonComponents/Pagination/index.js +33 -42
  27. package/lib/components/commonComponents/Pagination/index.style.js +1 -1
  28. package/lib/components/commonComponents/Steps/index.js +1 -1
  29. package/lib/components/commonComponents/Steps/index.style.js +5 -1
  30. package/lib/components/commonComponents/Table/index.style.js +27 -1
  31. package/lib/components/commonComponents/Tabs/index.js +9 -8
  32. package/lib/components/commonComponents/Tooltip/demo/demo3.d.ts +3 -0
  33. package/lib/components/commonComponents/Tooltip/demo/demo3.js +25 -0
  34. package/lib/components/commonComponents/Tooltip/index.d.ts +7 -1
  35. package/lib/components/commonComponents/Tooltip/index.js +12 -1
  36. package/lib/components/commonComponents/Tooltip/index.style.js +1 -1
  37. package/lib/components/commonComponents/Video/index.d.ts +2 -6
  38. package/lib/components/commonComponents/Video/index.js +8 -8
  39. package/lib/components/commonComponents/Video/index.style.js +2 -6
  40. package/lib/components/mobileComponents/MobileDrawer/index.style.js +7 -1
  41. package/lib/index.d.ts +2 -1
  42. package/lib/index.js +1 -0
  43. package/lib/libs/env/index.d.ts +1 -1
  44. package/lib/typings.d.ts +12 -0
  45. package/llms/all.llms.txt +704 -694
  46. package/llms/components/commonComponents/Empty/index.zh-CN.llms.txt +1 -0
  47. package/llms/components/commonComponents/Tooltip/index.zh-CN.llms.txt +2 -1
  48. package/llms/docs/guide/tokens&variables.zh-CN.llms.txt +13 -5
  49. package/llms/index.llms.txt +47 -47
  50. package/package.json +1 -1
  51. package/scripts/mcp-docs-server.js +3 -3
  52. package/lib/components/commonComponents/Video/Control.d.ts +0 -19
@@ -1,3 +1,9 @@
1
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
2
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
3
+ 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; }
4
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
5
+ 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); }
6
+ 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); }
1
7
  import { getCommonConfig } from "../../../config";
2
8
  import { Typography } from 'antd';
3
9
  import classNames from 'classnames';
@@ -15,18 +21,42 @@ export default function EllipsisTip(props) {
15
21
  children = props.children,
16
22
  _props$rows = props.rows,
17
23
  rows = _props$rows === void 0 ? 1 : _props$rows,
18
- tooltip = props.tooltip;
19
- var _tooltip = tooltip || children;
24
+ tooltip = props.tooltip,
25
+ _props$tooltipMaxHeig = props.tooltipMaxHeight,
26
+ tooltipMaxHeight = _props$tooltipMaxHeig === void 0 ? '90vh' : _props$tooltipMaxHeig;
20
27
  var _getCommonConfig = getCommonConfig(),
21
28
  sparkPrefix = _getCommonConfig.sparkPrefix;
22
29
  var Style = useStyle();
30
+ function getTooltip() {
31
+ var defaultBodyStyle = {
32
+ maxHeight: tooltipMaxHeight,
33
+ overflow: 'auto'
34
+ };
35
+ if (_typeof(tooltip) === 'object') {
36
+ var _ref = tooltip,
37
+ title = _ref.title,
38
+ styles = _ref.styles;
39
+ return {
40
+ title: title || children,
41
+ styles: _objectSpread(_objectSpread({}, styles), {}, {
42
+ body: _objectSpread(_objectSpread({}, defaultBodyStyle), styles === null || styles === void 0 ? void 0 : styles.body)
43
+ })
44
+ };
45
+ }
46
+ return {
47
+ title: tooltip || children,
48
+ styles: {
49
+ body: defaultBodyStyle
50
+ }
51
+ };
52
+ }
23
53
  return /*#__PURE__*/_jsxs(_Fragment, {
24
54
  children: [/*#__PURE__*/_jsx(Style, {}), /*#__PURE__*/_jsx(Typography.Paragraph, {
25
55
  className: classNames("".concat(sparkPrefix, "-ellipsis-tip"), className),
26
56
  style: style,
27
57
  ellipsis: {
28
58
  rows: rows,
29
- tooltip: _tooltip
59
+ tooltip: getTooltip()
30
60
  },
31
61
  children: children
32
62
  })]
@@ -75,6 +75,12 @@ export interface SparkEmptyProps {
75
75
  * @descriptionEn custom empty size
76
76
  */
77
77
  size?: React.CSSProperties['width'];
78
+ /**
79
+ * @description 是否自适应容器宽度,当容器宽度小于 size 时自动缩放
80
+ * @descriptionEn whether to auto fit the container width, auto scale when container width is less than size
81
+ * @default false
82
+ */
83
+ autoFit?: boolean;
78
84
  }
79
85
  declare const Empty: (props: SparkEmptyProps) => import("react/jsx-runtime").JSX.Element;
80
86
  export default Empty;
@@ -193,6 +193,8 @@ var Empty = function Empty(props) {
193
193
  texture = _props$texture === void 0 ? true : _props$texture,
194
194
  _props$size = props.size,
195
195
  size = _props$size === void 0 ? 320 : _props$size,
196
+ _props$autoFit = props.autoFit,
197
+ autoFit = _props$autoFit === void 0 ? true : _props$autoFit,
196
198
  okText = props.okText,
197
199
  _props$okType = props.okType,
198
200
  okType = _props$okType === void 0 ? 'primary' : _props$okType,
@@ -223,20 +225,28 @@ var Empty = function Empty(props) {
223
225
  }, [isDarkMode]);
224
226
  var Style = useStyle();
225
227
  var parsedSize = typeof size === 'string' ? parseFloat(size.replace(/px/i, '')) : size !== null && size !== void 0 ? size : 0;
228
+
229
+ /** 自适应容器样式 */
230
+ var autoFitStyle = autoFit ? {
231
+ maxWidth: '100%',
232
+ aspectRatio: '1 / 1',
233
+ width: size,
234
+ height: 'auto'
235
+ } : {
236
+ width: size,
237
+ height: size
238
+ };
226
239
  return /*#__PURE__*/_jsxs(_Fragment, {
227
240
  children: [/*#__PURE__*/_jsx(Style, {}), /*#__PURE__*/_jsxs("div", {
228
241
  className: "".concat(sparkPrefix, "-empty ").concat(props.className || ''),
229
- style: _objectSpread(_objectSpread({}, imageStyle), {}, {
230
- width: size,
231
- height: size
232
- }),
242
+ style: _objectSpread(_objectSpread({}, autoFitStyle), imageStyle),
233
243
  children: [texture && /*#__PURE__*/_jsx(Illustrate, {
234
- size: size,
244
+ size: autoFit ? '100%' : size,
235
245
  svgUrl: TEXTURE_MAP.url,
236
246
  tokenMap: textureTokenMap,
237
247
  className: "".concat(sparkPrefix, "-empty-texture")
238
248
  }), /*#__PURE__*/_jsx(Illustrate, {
239
- size: size,
249
+ size: autoFit ? '100%' : size,
240
250
  svgUrl: image,
241
251
  tokenMap: tokenMap,
242
252
  className: "".concat(sparkPrefix, "-empty-image")
@@ -265,7 +275,12 @@ var Empty = function Empty(props) {
265
275
  }, okButtonProps), {}, {
266
276
  children: okText
267
277
  }))
268
- }), !!children && children]
278
+ }), !!children && /*#__PURE__*/_jsx("div", {
279
+ style: {
280
+ marginTop: 0.05 * parsedSize
281
+ },
282
+ children: children
283
+ })]
269
284
  })]
270
285
  })]
271
286
  });
@@ -1,7 +1,7 @@
1
1
  var _templateObject;
2
2
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
3
3
  import createGlobalStyle from "../../../libs/createStyle";
4
- export var useStyle = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n.", "-empty {\n display: flex;\n flex-direction: column;\n align-items: center;\n overflow: hidden;\n position: relative;\n}\n\n.", "-empty-texture,\n.", "-empty-image {\n position: absolute;\n top: 0;\n left: 0;\n pointer-events: none;\n display: flex;\n justify-content: center;\n}\n\n.", "-empty-image svg {\n margin-top: 16.875%;\n width: 108px;\n height: 108px;\n}\n\n.", "-empty-texture svg {\n width: 320px;\n height: 320px;\n}\n\n.", "-empty-title {\n font-size: 16px;\n font-weight: 500;\n line-height: 24px;\n color: var(--", "-color-text);\n}\n\n.", "-empty-description {\n font-size: 12px;\n line-height: 20px;\n color: var(--", "-color-text-secondary);\n text-align: center;\n width: 100%;\n}\n"])), function (p) {
4
+ export var useStyle = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n.", "-empty {\n display: flex;\n flex-direction: column;\n align-items: center;\n overflow: hidden;\n position: relative;\n}\n\n.", "-empty-texture,\n.", "-empty-image {\n position: absolute;\n top: 0;\n left: 0;\n pointer-events: none;\n display: flex;\n justify-content: center;\n}\n\n.", "-empty-image svg {\n margin-top: 16.875%;\n width: 33.75%;\n height: 33.75%;\n}\n\n.", "-empty-texture svg {\n width: 100%;\n height: 100%;\n}\n\n.", "-empty-title {\n font-size: 16px;\n font-weight: 500;\n line-height: 24px;\n color: var(--", "-color-text);\n}\n\n.", "-empty-description {\n font-size: 12px;\n line-height: 20px;\n color: var(--", "-color-text-secondary);\n text-align: center;\n width: 100%;\n}\n"])), function (p) {
5
5
  return p.sparkPrefix;
6
6
  }, function (p) {
7
7
  return p.sparkPrefix;
@@ -14,47 +14,38 @@ import { LeftOutlined, RightOutlined } from "@agentscope-ai/icons-override-antd"
14
14
  import { Flex, Pagination } from 'antd';
15
15
  import classNames from 'classnames';
16
16
  import { useStyle } from "./index.style";
17
+
18
+ /**
19
+ * 获取默认的分页大小选择器配置
20
+ * 使用函数形式以支持动态国际化
21
+ */
17
22
  import { jsx as _jsx } from "react/jsx-runtime";
18
23
  import { jsxs as _jsxs } from "react/jsx-runtime";
19
24
  import { Fragment as _Fragment } from "react/jsx-runtime";
20
- var DEFAULT_SHOW_SIZE_CHANGE = {
21
- options: [{
22
- label: "10 ".concat($i18n.get({
23
- id: 'components.commonComponents.Pagination.Items',
24
- dm: '条'
25
- }), " / ").concat($i18n.get({
26
- id: 'components.commonComponents.Pagination.Page',
27
- dm: '页'
28
- })),
29
- value: 10
30
- }, {
31
- label: "20 ".concat($i18n.get({
32
- id: 'components.commonComponents.Pagination.Items',
33
- dm: '条'
34
- }), " / ").concat($i18n.get({
35
- id: 'components.commonComponents.Pagination.Page',
36
- dm: '页'
37
- })),
38
- value: 20
39
- }, {
40
- label: "50 ".concat($i18n.get({
41
- id: 'components.commonComponents.Pagination.Items',
42
- dm: '条'
43
- }), " / ").concat($i18n.get({
44
- id: 'components.commonComponents.Pagination.Page',
45
- dm: '页'
46
- })),
47
- value: 50
48
- }, {
49
- label: "100 ".concat($i18n.get({
50
- id: 'components.commonComponents.Pagination.Items',
51
- dm: '条'
52
- }), " / ").concat($i18n.get({
53
- id: 'components.commonComponents.Pagination.Page',
54
- dm: '页'
55
- })),
56
- value: 100
57
- }]
25
+ var getDefaultShowSizeChange = function getDefaultShowSizeChange() {
26
+ var itemsText = $i18n.get({
27
+ id: 'components.commonComponents.Pagination.Items',
28
+ dm: ''
29
+ });
30
+ var pageText = $i18n.get({
31
+ id: 'components.commonComponents.Pagination.Page',
32
+ dm: '页'
33
+ });
34
+ return {
35
+ options: [{
36
+ label: "10 ".concat(itemsText, " / ").concat(pageText),
37
+ value: 10
38
+ }, {
39
+ label: "20 ".concat(itemsText, " / ").concat(pageText),
40
+ value: 20
41
+ }, {
42
+ label: "50 ".concat(itemsText, " / ").concat(pageText),
43
+ value: 50
44
+ }, {
45
+ label: "100 ".concat(itemsText, " / ").concat(pageText),
46
+ value: 100
47
+ }]
48
+ };
58
49
  };
59
50
  export default (function (props) {
60
51
  var _props$hideSwitchButt = props.hideSwitchButton,
@@ -115,8 +106,8 @@ export default (function (props) {
115
106
  }
116
107
  var getMergedShowSizeChange = function getMergedShowSizeChange() {
117
108
  if (props.showSizeChanger === true) {
118
- // 用户手动设置为 true,使用预置选项
119
- return DEFAULT_SHOW_SIZE_CHANGE;
109
+ // 用户手动设置为 true,使用预置选项(动态获取以支持国际化)
110
+ return getDefaultShowSizeChange();
120
111
  }
121
112
  if (props.showSizeChanger === false) {
122
113
  // 用户手动设为 false
@@ -127,8 +118,8 @@ export default (function (props) {
127
118
  return props.showSizeChanger;
128
119
  }
129
120
  if (restProps.total && restProps.total > 50) {
130
- // 数据量大于 50,使用预置选项
131
- return DEFAULT_SHOW_SIZE_CHANGE;
121
+ // 数据量大于 50,使用预置选项(动态获取以支持国际化)
122
+ return getDefaultShowSizeChange();
132
123
  }
133
124
  return false;
134
125
  };
@@ -1,7 +1,7 @@
1
1
  var _templateObject;
2
2
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
3
3
  import createGlobalStyle from "../../../libs/createStyle";
4
- export var useStyle = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n.", "-pagination {\n color: var(--", "-color-text) !important;\n font-weight: 500 !important;\n \n .", "-pagination-total-text {\n font-weight: 500;\n }\n \n .", "-select-selection-item {\n font-weight: 500;\n }\n \n .", "-pagination-item-active {\n border-color: var(--", "-color-border-secondary);\n border-radius: 8px;\n font-weight: \n \n a {\n color: var(--", "-color-text) !important;\n }\n }\n \n a {\n color: var(--", "-color-text) !important;\n font-weight: 500 !important;\n }\n \n .", "-pagination-jump-next {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n \n .", "-pagination-jump-prev {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n}\n\n.", "-pagination {\n .", "-pagination-prev,\n .", "-pagination-next,\n .", "-pagination-jump-prev,\n .", "-pagination-jump-next {\n font-family: serif;\n display: inline-block !important;\n }\n}\n"])), function (p) {
4
+ export var useStyle = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n.", "-pagination {\n color: var(--", "-color-text) !important;\n font-weight: 500 !important;\n \n .", "-pagination-total-text {\n font-weight: 500;\n }\n \n .", "-select-selection-item {\n font-weight: 500;\n }\n \n .", "-pagination-item-active {\n border-color: var(--", "-color-border-secondary);\n border-radius: 8px;\n font-weight: \n \n a {\n color: var(--", "-color-text) !important;\n }\n }\n \n a {\n color: var(--", "-color-text) !important;\n font-weight: 500 !important;\n }\n \n .", "-pagination-jump-next {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n \n .", "-pagination-jump-prev {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n}\n\n.", "-pagination {\n .", "-pagination-prev,\n .", "-pagination-next,\n .", "-pagination-jump-prev,\n .", "-pagination-jump-next {\n font-family: Montserrat;\n display: inline-block !important;\n }\n}\n"])), function (p) {
5
5
  return p.antPrefix;
6
6
  }, function (p) {
7
7
  return p.antPrefix;
@@ -7,9 +7,9 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
7
7
  import { getCommonConfig } from "../../../config";
8
8
  import { SparkTrueLine } from '@agentscope-ai/icons';
9
9
  import { Steps } from 'antd';
10
+ import classNames from 'classnames';
10
11
  import { useMemo } from 'react';
11
12
  import { useStyle } from "./index.style";
12
- import classNames from 'classnames';
13
13
  import { jsx as _jsx } from "react/jsx-runtime";
14
14
  import { Fragment as _Fragment } from "react/jsx-runtime";
15
15
  import { jsxs as _jsxs } from "react/jsx-runtime";
@@ -1,7 +1,7 @@
1
1
  var _templateObject;
2
2
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
3
3
  import createGlobalStyle from "../../../libs/createStyle";
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) {
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-process {\n .", "-steps-item-icon {\n border-color: transparent !important;\n }\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: 20px !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: 20px !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
5
  return p.sparkPrefix;
6
6
  }, function (p) {
7
7
  return p.antPrefix;
@@ -25,6 +25,10 @@ export var useStyle = createGlobalStyle(_templateObject || (_templateObject = _t
25
25
  return p.antPrefix;
26
26
  }, function (p) {
27
27
  return p.antPrefix;
28
+ }, function (p) {
29
+ return p.antPrefix;
30
+ }, function (p) {
31
+ return p.antPrefix;
28
32
  }, function (p) {
29
33
  return p.sparkPrefix;
30
34
  }, function (p) {
@@ -1,7 +1,33 @@
1
1
  var _templateObject;
2
2
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
3
3
  import createGlobalStyle from "../../../libs/createStyle";
4
- export var useStyle = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\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(.", "-table-selection-column):not(.", "-table-row-expand-icon-cell):not([colspan])::before {\n display: none !important;\n }\n \n .", "-table-tbody > tr > td {\n padding: 16px 20px;\n }\n \n .", "-table-tbody > tr {\n & > td:not(.", "-table-selection-column):first-child,\n & > td.", "-table-selection-column + td:not(\n .", "-table-selection-column) {\n font-weight: 500;\n }\n }\n }\n \n .", "-table-small {\n .", "-table-tbody > tr > td {\n padding: 8px 20px;\n }\n }\n }\n}\n"])), function (p) {
4
+ export var useStyle = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\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 /* \u9ED8\u8BA4\u60C5\u51B5\u4E0B\u79FB\u9664\u8868\u5934\u5355\u5143\u683C\u7684\u5706\u89D2 */\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(.", "-table-selection-column):not(.", "-table-row-expand-icon-cell):not([colspan])::before {\n display: none !important;\n }\n \n .", "-table-tbody > tr > td {\n padding: 16px 20px;\n }\n \n .", "-table-tbody > tr {\n & > td:not(.", "-table-selection-column):first-child,\n & > td.", "-table-selection-column + td:not(\n .", "-table-selection-column) {\n font-weight: 500;\n }\n }\n }\n \n .", "-table-small {\n .", "-table-tbody > tr > td {\n padding: 8px 20px;\n }\n }\n \n /* \u65E0 footer \u65F6 bordered \u8868\u683C\u6DFB\u52A0\u6574\u4F53\u5706\u89D2 */\n .", "-table-bordered:not(:has(.", "-table-footer)) {\n\n .", "-table-container {\n border-radius: var(--", "-table-header-border-radius);\n /* \u6062\u590D\u8868\u5934\u5355\u5143\u683C\u7684\u5706\u89D2 - \u5DE6\u4E0A\u89D2\u548C\u53F3\u4E0A\u89D2 */\n table > thead > tr:first-child > *:first-child {\n border-start-start-radius: var(--", "-table-header-border-radius);\n }\n \n table > thead > tr:first-child > *:last-child {\n border-start-end-radius: var(--", "-table-header-border-radius);\n }\n\n table > tbody > tr:last-child > *:first-child {\n border-end-start-radius: var(--", "-table-header-border-radius);\n }\n \n table > tbody > tr:last-child > *:last-child {\n border-end-end-radius: var(--", "-table-header-border-radius);\n }\n }\n }\n\n/* \u6709 footer \u65F6 bordered \u8868\u683C\u6DFB\u52A0\u6574\u4F53\u5706\u89D2 */\n .", "-table-bordered:has(.", "-table-footer) {\n .", "-table-container {\n /* \u6062\u590D\u8868\u5934\u5355\u5143\u683C\u7684\u5706\u89D2 - \u5DE6\u4E0A\u89D2\u548C\u53F3\u4E0A\u89D2 */\n table > thead > tr:first-child > *:first-child {\n border-start-start-radius: var(--", "-table-header-border-radius);\n }\n \n table > thead > tr:first-child > *:last-child {\n border-start-end-radius: var(--", "-table-header-border-radius);\n }\n }\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) {
5
31
  return p.antPrefix;
6
32
  }, function (p) {
7
33
  return p.antPrefix;
@@ -28,8 +28,8 @@ var SparkTabs = function SparkTabs(props) {
28
28
  var _getCommonConfig = getCommonConfig(),
29
29
  sparkPrefix = _getCommonConfig.sparkPrefix;
30
30
  var _useMergedState = useMergedState(function () {
31
- var _restProps$items$;
32
- return (_restProps$items$ = restProps.items[0]) === null || _restProps$items$ === void 0 ? void 0 : _restProps$items$.key;
31
+ var _restProps$items;
32
+ return (_restProps$items = restProps.items) === null || _restProps$items === void 0 || (_restProps$items = _restProps$items[0]) === null || _restProps$items === void 0 ? void 0 : _restProps$items.key;
33
33
  }, {
34
34
  value: restProps.activeKey,
35
35
  defaultValue: restProps.defaultActiveKey
@@ -39,6 +39,11 @@ var SparkTabs = function SparkTabs(props) {
39
39
  setMergedActiveKey = _useMergedState2[1];
40
40
  var Style = useStyle();
41
41
  if (type === 'segmented') {
42
+ var handleChange = function handleChange(key) {
43
+ var _props$onChange;
44
+ setMergedActiveKey(key);
45
+ (_props$onChange = props.onChange) === null || _props$onChange === void 0 || _props$onChange.call(props, key);
46
+ };
42
47
  return /*#__PURE__*/_jsxs(_Fragment, {
43
48
  children: [/*#__PURE__*/_jsx(Style, {}), /*#__PURE__*/_jsx(Tabs, _objectSpread(_objectSpread({
44
49
  animated: false
@@ -55,13 +60,9 @@ var SparkTabs = function SparkTabs(props) {
55
60
  })) || [];
56
61
  return /*#__PURE__*/_jsx(Segmented, {
57
62
  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
+ onChange: handleChange,
63
64
  className: classNames("".concat(sparkPrefix, "-segmented-tab-bar"), _defineProperty({}, "".concat(sparkPrefix, "-segmented-tab-bar-centered"), centered)),
64
- value: tabProps.activeKey,
65
+ value: mergedActiveKey,
65
66
  size: props.size
66
67
  });
67
68
  }
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const App: React.FC;
3
+ export default App;
@@ -0,0 +1,25 @@
1
+ import { Button, Tooltip } from "../../../..";
2
+ import React from 'react';
3
+ import { jsx as _jsx } from "react/jsx-runtime";
4
+ import { Fragment as _Fragment } from "react/jsx-runtime";
5
+ import { jsxs as _jsxs } from "react/jsx-runtime";
6
+ var title = new Array(100).fill(1).map(function (_, index) {
7
+ return "".concat(index + 1, " \u6D4B\u8BD5maxHeight\u5C5E\u6027\u7684\u573A\u666F");
8
+ }).join('');
9
+ var App = function App() {
10
+ return /*#__PURE__*/_jsxs(_Fragment, {
11
+ children: [/*#__PURE__*/_jsx(Tooltip, {
12
+ title: title,
13
+ maxHeight: 400,
14
+ children: /*#__PURE__*/_jsx(Button, {
15
+ children: "set maxHeight"
16
+ })
17
+ }), /*#__PURE__*/_jsx(Tooltip, {
18
+ title: title,
19
+ children: /*#__PURE__*/_jsx(Button, {
20
+ children: "not set maxHeight"
21
+ })
22
+ })]
23
+ });
24
+ };
25
+ export default App;
@@ -4,9 +4,15 @@ export interface SparkTooltipProps {
4
4
  /**
5
5
  * @description 颜色模式
6
6
  * @descriptionEn color mode
7
- * @default 'light'
7
+ * @default 'dark'
8
8
  */
9
9
  mode?: 'dark' | 'light';
10
+ /**
11
+ * @description 最大高度
12
+ * @descriptionEn max height
13
+ * @default '90vh'
14
+ */
15
+ maxHeight?: number | string;
10
16
  }
11
17
  declare const SparkTooltip: import("react").ForwardRefExoticComponent<(SparkTooltipProps & TooltipProps) & import("react").RefAttributes<any>>;
12
18
  export default SparkTooltip;
@@ -1,5 +1,5 @@
1
1
  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); }
2
- var _excluded = ["mode", "arrow", "overlayClassName", "getPopupContainer"];
2
+ var _excluded = ["mode", "maxHeight", "styles", "arrow", "overlayClassName", "getPopupContainer", "align"];
3
3
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
4
4
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
5
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; }
@@ -20,15 +20,26 @@ var SparkTooltip = /*#__PURE__*/forwardRef(function (props, ref) {
20
20
  var Style = useStyle();
21
21
  var _props$mode = props.mode,
22
22
  mode = _props$mode === void 0 ? 'dark' : _props$mode,
23
+ _props$maxHeight = props.maxHeight,
24
+ maxHeight = _props$maxHeight === void 0 ? '90vh' : _props$maxHeight,
25
+ _props$styles = props.styles,
26
+ styles = _props$styles === void 0 ? {} : _props$styles,
23
27
  arrow = props.arrow,
24
28
  overlayClassName = props.overlayClassName,
25
29
  getPopupContainer = props.getPopupContainer,
30
+ align = props.align,
26
31
  restProps = _objectWithoutProperties(props, _excluded);
27
32
  var _getCommonConfig = getCommonConfig(),
28
33
  sparkPrefix = _getCommonConfig.sparkPrefix,
29
34
  antPrefix = _getCommonConfig.antPrefix;
30
35
  return /*#__PURE__*/_jsxs(_Fragment, {
31
36
  children: [/*#__PURE__*/_jsx(Style, {}), /*#__PURE__*/_jsx(Tooltip, _objectSpread(_objectSpread({}, restProps), {}, {
37
+ styles: _objectSpread(_objectSpread({}, styles), {}, {
38
+ body: _objectSpread({
39
+ maxHeight: maxHeight,
40
+ overflow: 'auto'
41
+ }, styles.body)
42
+ }),
32
43
  arrow: arrow !== null && arrow !== void 0 ? arrow : false,
33
44
  overlayClassName: classNames(overlayClassName, mode === 'light' && "".concat(sparkPrefix, "-tooltip-light")),
34
45
  getPopupContainer: getPopupContainer || function (triggerNode) {
@@ -1,7 +1,7 @@
1
1
  var _templateObject;
2
2
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
3
3
  import createGlobalStyle from "../../../libs/createStyle";
4
- export var useStyle = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n/* \u9ED8\u8BA4\u6DF1\u8272 */\n.", "-tooltip-content {\n .", "-tooltip-inner {\n border: 1px solid transparent;\n padding: 6px 12px;\n background: var(--", "-color-text-base);\n color: var(--", "-color-bg-base);\n }\n}\n\n/* \u6D45\u8272\u6A21\u5F0F */\n.", "-tooltip-light {\n .", "-tooltip-content .", "-tooltip-inner {\n background: var(--", "-color-bg-base);\n color: var(--", "-color-text);\n }\n \n .", "-tooltip-arrow {\n &::after {\n background: var(--", "-color-bg-base);\n }\n }\n}\n"])), function (p) {
4
+ export var useStyle = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n/* \u9ED8\u8BA4\u6DF1\u8272 */\n.", "-tooltip-content {\n .", "-tooltip-inner {\n border: 1px solid transparent;\n padding: 6px 12px;\n background: var(--", "-color-slate);\n color: var(--", "-color-text-on-primary);\n }\n}\n\n/* \u6D45\u8272\u6A21\u5F0F */\n.", "-tooltip-light {\n .", "-tooltip-content .", "-tooltip-inner {\n background: var(--", "-color-bg-base);\n color: var(--", "-color-text);\n }\n \n .", "-tooltip-arrow {\n &::after {\n background: var(--", "-color-bg-base);\n }\n }\n}\n"])), function (p) {
5
5
  return p.antPrefix;
6
6
  }, function (p) {
7
7
  return p.antPrefix;
@@ -1,10 +1,6 @@
1
1
  import React from 'react';
2
2
  type NativeVideoProps = React.DetailedHTMLProps<React.VideoHTMLAttributes<HTMLVideoElement>, HTMLVideoElement>;
3
- interface IProps extends NativeVideoProps {
4
- /**
5
- * @description 视频地址
6
- */
7
- src?: string;
3
+ export interface VideoProps extends NativeVideoProps {
8
4
  /**
9
5
  * @description 鼠标进入时是否自动播放
10
6
  */
@@ -14,5 +10,5 @@ interface IProps extends NativeVideoProps {
14
10
  */
15
11
  children?: React.ReactNode;
16
12
  }
17
- declare const Video: React.ForwardRefExoticComponent<Omit<IProps, "ref"> & React.RefAttributes<HTMLVideoElement>>;
13
+ declare const Video: React.ForwardRefExoticComponent<Omit<VideoProps, "ref"> & React.RefAttributes<HTMLVideoElement>>;
18
14
  export default Video;
@@ -15,7 +15,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
15
15
  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; }
16
16
  import React, { forwardRef, useEffect, useState, useRef } from 'react';
17
17
  import classNames from 'classnames';
18
- import VideoPlayerController from "./Control";
18
+ import MediaPlayerController from "../Audio/Control";
19
19
  import { useControllableValue } from 'ahooks';
20
20
  import { getCommonConfig } from "../../../config";
21
21
  import { useStyle } from "./index.style";
@@ -55,8 +55,8 @@ var Video = /*#__PURE__*/forwardRef(function (props, ref) {
55
55
  setMuted = _useControllableValue2[1];
56
56
  var _useState7 = useState(false),
57
57
  _useState8 = _slicedToArray(_useState7, 2),
58
- enableAudio = _useState8[0],
59
- setEnableAudio = _useState8[1];
58
+ enableVolume = _useState8[0],
59
+ setEnableVolume = _useState8[1];
60
60
  var videoRef = useRef(null);
61
61
  var lockMouseEnterAutoPlayRef = useRef(false);
62
62
 
@@ -100,16 +100,16 @@ var Video = /*#__PURE__*/forwardRef(function (props, ref) {
100
100
  // 方法1: 检查mozHasAudio属性 (Firefox)
101
101
  if ('mozHasAudio' in videoRef.current) {
102
102
  // @ts-ignore
103
- setEnableAudio(videoRef.current.mozHasAudio);
103
+ setEnableVolume(videoRef.current.mozHasAudio);
104
104
  return true;
105
105
  }
106
106
  // 方法2: 检查webkitAudioDecodedByteCount属性 (WebKit)
107
107
  if ('webkitAudioDecodedByteCount' in videoRef.current) {
108
108
  // @ts-ignore
109
- setEnableAudio(videoRef.current.webkitAudioDecodedByteCount > 0);
109
+ setEnableVolume(videoRef.current.webkitAudioDecodedByteCount > 0);
110
110
  return true;
111
111
  }
112
- setEnableAudio(false);
112
+ setEnableVolume(false);
113
113
  return false;
114
114
  }
115
115
  return false;
@@ -201,12 +201,12 @@ var Video = /*#__PURE__*/forwardRef(function (props, ref) {
201
201
  onPlay: handlePlay,
202
202
  onPause: handlePause,
203
203
  onEnded: handleEnded
204
- })), controls && /*#__PURE__*/_jsx(VideoPlayerController, {
204
+ })), controls && /*#__PURE__*/_jsx(MediaPlayerController, {
205
205
  className: "".concat(sparkPrefix, "-video-controller-wrapper"),
206
206
  isPlaying: isPlaying,
207
207
  currentTime: currentTime,
208
208
  duration: duration,
209
- enableAudio: enableAudio,
209
+ enableVolume: enableVolume,
210
210
  muted: muted,
211
211
  onMute: function onMute() {
212
212
  return setMuted(!muted);
@@ -1,7 +1,7 @@
1
1
  var _templateObject;
2
2
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
3
3
  import createGlobalStyle from "../../../libs/createStyle";
4
- export var useStyle = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n// Video \u4E3B\u5BB9\u5668\u6837\u5F0F\n.", "-video-container {\n position: relative;\n width: 100%;\n height: 100%;\n background: #000;\n\n button {\n --", "-color-text-disabled: rgba(231, 231, 237, 0.25) !important;\n --", "-button-text-text-color: rgba(231, 231, 237, 0.88) !important;\n --", "-button-text-text-hover-color: rgba(231, 231, 237, 0.88) !important;\n --", "-button-text-hover-bg: rgba(231, 231, 237, 0.08) !important;\n }\n}\n\n.", "-video-content {\n width: 100%;\n height: 100%;\n}\n\n.", "-video-element {\n display: block;\n width: 100%;\n height: 100%;\n object-fit: contain;\n}\n\n.", "-video-controller-wrapper {\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n background: linear-gradient(0deg, #000000 2%, rgba(0, 0, 0, 0) 94%);\n transition: opacity 0.3s;\n}\n\n// VideoPlayerController \u7EC4\u4EF6\u5185\u90E8\u6837\u5F0F\n.", "-video-player-controller {\n display: flex;\n padding: 8px;\n gap: 8px;\n align-items: center;\n width: 100%;\n height: 40px;\n overflow: hidden;\n}\n\n// \u65F6\u95F4\u6587\u672C\u6837\u5F0F\n.", "-video-time-text {\n flex-grow: 0;\n font-size: 12px;\n line-height: 20px;\n color: var(--", "-color-text-white);\n}\n\n// \u8FDB\u5EA6\u6761\u5BB9\u5668\u6837\u5F0F\n.", "-video-progress-container {\n flex-grow: 1;\n cursor: pointer;\n}\n\n// \u8FDB\u5EA6\u6761\u6837\u5F0F\n.", "-video-progress-bar {\n width: 100%;\n\n .", "-progress-inner {\n --", "-progress-remaining-color: var(--", "-color-fill);\n }\n \n .", "-progress-bg {\n background: var(--", "-color-text-white) !important;\n transition-duration: 0s;\n }\n}\n"])), function (p) {
4
+ export var useStyle = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n// Video \u4E3B\u5BB9\u5668\u6837\u5F0F\n.", "-video-container {\n position: relative;\n width: 100%;\n height: 100%;\n background: #000;\n\n button {\n --", "-color-text-disabled: rgba(231, 231, 237, 0.25) !important;\n --", "-button-text-text-color: rgba(231, 231, 237, 0.88) !important;\n --", "-button-text-text-hover-color: rgba(231, 231, 237, 0.88) !important;\n --", "-button-text-hover-bg: rgba(231, 231, 237, 0.08) !important;\n }\n\n .", "-media-time-text {\n color: var(--", "-color-text-white);\n }\n}\n\n.", "-video-content {\n width: 100%;\n height: 100%;\n}\n\n.", "-video-element {\n display: block;\n width: 100%;\n height: 100%;\n object-fit: contain;\n}\n\n.", "-video-controller-wrapper {\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n background: linear-gradient(0deg, #000000 2%, rgba(0, 0, 0, 0) 94%);\n transition: opacity 0.3s;\n}\n // \u8FDB\u5EA6\u6761\u6837\u5F0F\n.", "-media-progress-bar {\n .", "-progress-inner {\n --", "-progress-remaining-color: var(--", "-color-fill);\n }\n \n .", "-progress-bg {\n background: var(--", "-color-text-white) !important;\n }\n}\n"])), function (p) {
5
5
  return p.sparkPrefix;
6
6
  }, function (p) {
7
7
  return p.antPrefix;
@@ -14,15 +14,11 @@ export var useStyle = createGlobalStyle(_templateObject || (_templateObject = _t
14
14
  }, function (p) {
15
15
  return p.sparkPrefix;
16
16
  }, function (p) {
17
- return p.sparkPrefix;
18
- }, function (p) {
19
- return p.sparkPrefix;
17
+ return p.antPrefix;
20
18
  }, function (p) {
21
19
  return p.sparkPrefix;
22
20
  }, function (p) {
23
21
  return p.sparkPrefix;
24
- }, function (p) {
25
- return p.antPrefix;
26
22
  }, function (p) {
27
23
  return p.sparkPrefix;
28
24
  }, function (p) {
@@ -1,7 +1,7 @@
1
1
  var _templateObject;
2
2
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
3
3
  import createGlobalStyle from "../../../libs/createStyle";
4
- export var useStyle = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n.", "-drawer {\n .", "-drawer-header {\n padding: 12px 20px;\n border-bottom: none;\n \n .", "-drawer-header-title {\n display: flex;\n flex-direction: row;\n \n .", "-drawer-title {\n font-size: 16px;\n font-weight: 500;\n line-height: 28px;\n color: var(--", "-color-text);\n display: flex;\n justify-content: center;\n padding-right: 32px;\n }\n \n .", "-drawer-close {\n width: 32px;\n height: 32px;\n }\n }\n }\n \n .", "-drawer-body {\n --", "-padding-lg: 20px;\n }\n \n .", "-drawer-footer {\n padding: 16px 20px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n border-top: none;\n \n .", "-drawer-footer-info {\n font-size: 14px;\n line-height: 24px;\n color: var(--", "-color-text-tertiary);\n }\n \n .", "-drawer-footer-buttons {\n display: flex;\n gap: 12px;\n }\n }\n \n .", "-drawer-close {\n color: var(--", "-color-text);\n margin: 0;\n }\n}\n\n.", "-drawer.", "-show-divider {\n .", "-drawer-header {\n border-bottom: 1px solid var(--", "-color-border-secondary);\n }\n \n .", "-drawer-footer {\n border-top: 1px solid var(--", "-color-border-secondary);\n }\n}\n"])), function (p) {
4
+ export var useStyle = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n.", "-drawer {\n .", "-drawer-header {\n padding: 12px 20px;\n border-bottom: none;\n \n .", "-drawer-header-title {\n display: flex;\n flex-direction: row;\n \n .", "-drawer-title {\n font-size: 16px;\n font-weight: 500;\n line-height: 28px;\n color: var(--", "-color-text);\n display: flex;\n justify-content: center;\n padding-right: 32px;\n }\n \n .", "-drawer-close {\n width: 32px;\n height: 32px;\n }\n }\n }\n \n .", "-drawer-body {\n --", "-padding-lg: 20px;\n }\n \n .", "-drawer-footer {\n padding: 16px 20px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n border-top: none;\n \n .", "-drawer-footer-info {\n font-size: 14px;\n line-height: 24px;\n color: var(--", "-color-text-tertiary);\n }\n \n .", "-drawer-footer-buttons {\n display: flex;\n gap: 12px;\n }\n }\n \n .", "-drawer-close {\n color: var(--", "-color-text);\n margin: 0;\n }\n}\n\n.", "-drawer.", "-show-divider {\n .", "-drawer-header {\n border-bottom: 1px solid var(--", "-color-border-secondary);\n }\n \n .", "-drawer-footer {\n border-top: 1px solid var(--", "-color-border-secondary);\n }\n}\n.", "-drawer-bottom {\n .", "-drawer-content-wrapper {\n border-radius: 16px 16px 0 0;\n }\n .", "-drawer-content {\n border-radius: 16px 16px 0 0;\n }\n}\n"])), function (p) {
5
5
  return p.sparkPrefix;
6
6
  }, function (p) {
7
7
  return p.antPrefix;
@@ -41,4 +41,10 @@ export var useStyle = createGlobalStyle(_templateObject || (_templateObject = _t
41
41
  return p.antPrefix;
42
42
  }, function (p) {
43
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;
44
50
  });
package/lib/index.d.ts CHANGED
@@ -48,7 +48,8 @@ export { default as Tag, type SparkTagProps as TagProps, } from './components/co
48
48
  export { default as TimePicker } from './components/commonComponents/TimePicker';
49
49
  export { default as Tooltip, type SparkTooltipProps as TooltipProps, } from './components/commonComponents/Tooltip';
50
50
  export { default as Upload } from './components/commonComponents/Upload';
51
- export { default as Video } from './components/commonComponents/Video';
51
+ export { default as Video, type VideoProps } from './components/commonComponents/Video';
52
+ export { default as Audio, type AudioProps } from './components/commonComponents/Audio';
52
53
  export { FileCard, default as FileIcon, type SparkFileCardProps, type SparkFileIconProps, } from './components/commonComponents/FileIcon';
53
54
  /**
54
55
  * 移动端组件
package/lib/index.js CHANGED
@@ -54,6 +54,7 @@ export { default as TimePicker } from "./components/commonComponents/TimePicker"
54
54
  export { default as Tooltip } from "./components/commonComponents/Tooltip";
55
55
  export { default as Upload } from "./components/commonComponents/Upload";
56
56
  export { default as Video } from "./components/commonComponents/Video";
57
+ export { default as Audio } from "./components/commonComponents/Audio";
57
58
  export { FileCard, default as FileIcon } from "./components/commonComponents/FileIcon";
58
59
 
59
60
  /**