@hi-ui/tabs 5.0.0-canary.9 → 5.0.0-experimental.1

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.
package/CHANGELOG.md CHANGED
@@ -1,116 +1,106 @@
1
1
  # @hi-ui/tabs
2
2
 
3
- ## 5.0.0-canary.9
4
-
5
- ### Patch Changes
6
-
7
- - Updated dependencies [9106dca82]
8
- - @hi-ui/core@5.0.0-canary.3
9
- - @hi-ui/input@5.0.0-canary.10
10
- - @hi-ui/icons@5.0.0-canary.3
11
- - @hi-ui/icon-button@5.0.0-canary.3
12
- - @hi-ui/tooltip@5.0.0-canary.4
13
-
14
- ## 5.0.0-canary.8
15
-
16
- ### Patch Changes
17
-
18
- - bf65028e6: style: 修改 UI (5.0)
19
-
20
- ## 5.0.0-canary.7
21
-
22
- ### Patch Changes
23
-
24
- - chore: rebase master (5.0)
25
- - Updated dependencies
26
- - @hi-ui/core@5.0.0-canary.2
27
- - @hi-ui/use-latest@5.0.0-canary.2
28
- - @hi-ui/use-uncontrolled-state@5.0.0-canary.2
29
- - @hi-ui/use-unmount-effect@5.0.0-canary.2
30
- - @hi-ui/icons@5.0.0-canary.2
31
- - @hi-ui/icon-button@5.0.0-canary.2
32
- - @hi-ui/input@5.0.0-canary.7
33
- - @hi-ui/tooltip@5.0.0-canary.3
34
- - @hi-ui/classname@5.0.0-canary.2
35
- - @hi-ui/env@5.0.0-canary.2
36
- - @hi-ui/react-utils@5.0.0-canary.2
37
- - @hi-ui/type-assertion@5.0.0-canary.2
38
-
39
- ## 5.0.0-canary.6
40
-
41
- ### Patch Changes
42
-
43
- - 4b09e728b: build: 将 package.json 中 exports 配置中的 types 配置放在最上面 (5.0)
44
- - Updated dependencies [4b09e728b]
45
- - @hi-ui/core@5.0.0-canary.1
46
- - @hi-ui/use-latest@5.0.0-canary.1
47
- - @hi-ui/use-uncontrolled-state@5.0.0-canary.1
48
- - @hi-ui/use-unmount-effect@5.0.0-canary.1
49
- - @hi-ui/icons@5.0.0-canary.1
50
- - @hi-ui/icon-button@5.0.0-canary.1
51
- - @hi-ui/input@5.0.0-canary.6
52
- - @hi-ui/tooltip@5.0.0-canary.2
53
- - @hi-ui/classname@5.0.0-canary.1
54
- - @hi-ui/env@5.0.0-canary.1
55
- - @hi-ui/react-utils@5.0.0-canary.1
56
- - @hi-ui/type-assertion@5.0.0-canary.1
57
-
58
- ## 5.0.0-canary.5
3
+ ## 5.0.0-experimental.1
59
4
 
60
5
  ### Minor Changes
61
6
 
62
- - 49d1c53c4: feat(tabs): 支持拖拽 (5.0)
63
-
64
- ## 5.0.0-canary.4
65
-
66
- ### Minor Changes
67
-
68
- - 2cb0427df: feat(tabs): add editRender api (5.0)
69
-
70
- ## 5.0.0-canary.3
71
-
72
- ### Minor Changes
73
-
74
- - affc96a20: feat(tabs): 支持编辑功能和设置最大标题宽度 (5.0)
75
-
76
- ## 5.0.0-canary.2
7
+ - 59cef699f: feat: 组件语义化样式改造,增加 styles 和 classNames 属性 (5.0)
77
8
 
78
9
  ### Patch Changes
79
10
 
80
- - c3a7005b0: style: 修改 UI 问题 (5.0)
11
+ - eb17c4697: style: 修复 UI/样式问题 (5.0)
12
+ - Updated dependencies [7f204c892]
13
+ - Updated dependencies [eb17c4697]
14
+ - Updated dependencies [eb17c4697]
15
+ - Updated dependencies [c407744fe]
16
+ - Updated dependencies [59cef699f]
17
+ - @hi-ui/icons@5.0.0-experimental.1
18
+ - @hi-ui/core@5.0.0-experimental.1
19
+ - @hi-ui/button@5.0.0-experimental.1
20
+ - @hi-ui/icon-button@5.0.0-experimental.1
21
+ - @hi-ui/input@5.0.0-experimental.2
22
+ - @hi-ui/tooltip@5.0.0-experimental.1
23
+ - @hi-ui/use-merge-semantic@5.0.0-experimental.0
81
24
 
82
- ## 5.0.0-canary.1
83
-
84
- ### Minor Changes
85
-
86
- - 3903bd4ff: feat(tabs): 增加 showDivider 参数 (5.0)
87
-
88
- ## 5.0.0-canary.0
25
+ ## 5.0.0-experimental.0
89
26
 
90
27
  ### Major Changes
91
28
 
92
- - 225ebaa51: feat: 组件的 package.json 中的 exports 统一加上 types 配置 (5.0)
29
+ - 8f3aa85e4: feat: 组件的 package.json 中的 exports 统一加上 types 配置 (5.0)
93
30
 
94
31
  ### Minor Changes
95
32
 
96
- - e182621e8: <br>
33
+ - 0b34e1c15: feat(tabs): 支持拖拽 (5.0)
34
+ - a0fdb0ad1: <br>
97
35
  - feat(tabs): 增加 size 参数 (5.0)
98
36
  - feat(tabs): 修改标签选中下标样式 (5.0)
99
-
100
- ### Patch Changes
101
-
102
- - Updated dependencies [225ebaa51]
103
- - Updated dependencies [428716024]
104
- - @hi-ui/core@5.0.0-canary.0
105
- - @hi-ui/use-latest@5.0.0-canary.0
106
- - @hi-ui/use-uncontrolled-state@5.0.0-canary.0
107
- - @hi-ui/use-unmount-effect@5.0.0-canary.0
108
- - @hi-ui/icons@5.0.0-canary.0
109
- - @hi-ui/icon-button@5.0.0-canary.0
110
- - @hi-ui/classname@5.0.0-canary.0
111
- - @hi-ui/env@5.0.0-canary.0
112
- - @hi-ui/react-utils@5.0.0-canary.0
113
- - @hi-ui/type-assertion@5.0.0-canary.0
37
+ - 6bb4d999c: feat(tabs): 支持编辑功能和设置最大标题宽度 (5.0)
38
+ - 120f6b15a: feat(tabs): add editRender api (5.0)
39
+ - 9b34d99bc: feat(tabs): 增加 showDivider 参数 (5.0)
40
+
41
+ ### Patch Changes
42
+
43
+ - 1662753e0: style: fix ui bug (5.0)
44
+ - 8c0ee78f0: perf: 优化全局 size 配置,对于组件中没有的 size 值,取最接近的尺寸展示 (5.0)
45
+ - be5a59325: style: 修改样式问题 (5.0)
46
+ - 2e56529f7: styles: 主题定制功能完善&&样式变量化写法改造&&兼容 RTL (5.0)
47
+ - e2d184e74: style: 修改 UI 问题 (5.0)
48
+ - 33da3144e: build: 将 package.json 中 exports 配置中的 types 配置放在最上面 (5.0)
49
+ - 7f3abee55: style: fix ui bug (5.0)
50
+ - a0f0c9d6b: style: 修改 UI 问题 (5.0)
51
+ - 86910f5e2: style: 修改 UI (5.0)
52
+ - Updated dependencies [6fb223e3a]
53
+ - Updated dependencies [da2e63a14]
54
+ - Updated dependencies [1e226cd66]
55
+ - Updated dependencies [eea29eade]
56
+ - Updated dependencies [1662753e0]
57
+ - Updated dependencies [122d1d859]
58
+ - Updated dependencies [f1ab51725]
59
+ - Updated dependencies [41552be0b]
60
+ - Updated dependencies [8c0ee78f0]
61
+ - Updated dependencies [9b34d99bc]
62
+ - Updated dependencies [8f3aa85e4]
63
+ - Updated dependencies [f4fc0ef30]
64
+ - Updated dependencies [c021539a3]
65
+ - Updated dependencies [ec4c7faa2]
66
+ - Updated dependencies [29cae09ea]
67
+ - Updated dependencies [fd4c20bbd]
68
+ - Updated dependencies [be5a59325]
69
+ - Updated dependencies [71fc15e5c]
70
+ - Updated dependencies [79ea480f3]
71
+ - Updated dependencies [2e56529f7]
72
+ - Updated dependencies [8a92ec660]
73
+ - Updated dependencies [1429eced2]
74
+ - Updated dependencies [9b34d99bc]
75
+ - Updated dependencies [976ec929d]
76
+ - Updated dependencies [d021b4fa6]
77
+ - Updated dependencies [f1ab51725]
78
+ - Updated dependencies [6dca7795c]
79
+ - Updated dependencies [77d969c2e]
80
+ - Updated dependencies [4006b2c8c]
81
+ - Updated dependencies [e42e2badf]
82
+ - Updated dependencies [33da3144e]
83
+ - Updated dependencies [0a8cc07a7]
84
+ - Updated dependencies [7f3abee55]
85
+ - Updated dependencies [6fcda9bf2]
86
+ - Updated dependencies [58ad82e94]
87
+ - Updated dependencies [a0f0c9d6b]
88
+ - Updated dependencies [99801c2d1]
89
+ - Updated dependencies [86910f5e2]
90
+ - @hi-ui/tooltip@5.0.0-experimental.0
91
+ - @hi-ui/input@5.0.0-experimental.0
92
+ - @hi-ui/button@5.0.0-experimental.0
93
+ - @hi-ui/icons@5.0.0-experimental.0
94
+ - @hi-ui/icon-button@5.0.0-experimental.0
95
+ - @hi-ui/core@5.0.0-experimental.0
96
+ - @hi-ui/use-id@5.0.0-experimental.0
97
+ - @hi-ui/use-latest@5.0.0-experimental.0
98
+ - @hi-ui/use-uncontrolled-state@5.0.0-experimental.0
99
+ - @hi-ui/use-unmount-effect@5.0.0-experimental.0
100
+ - @hi-ui/classname@5.0.0-experimental.0
101
+ - @hi-ui/env@5.0.0-experimental.0
102
+ - @hi-ui/react-utils@5.0.0-experimental.0
103
+ - @hi-ui/type-assertion@5.0.0-experimental.0
114
104
 
115
105
  ## 4.2.0
116
106
 
@@ -19,6 +19,7 @@ var React = require('react');
19
19
  var classname = require('@hi-ui/classname');
20
20
  var env = require('@hi-ui/env');
21
21
  var icons = require('@hi-ui/icons');
22
+ var button = require('@hi-ui/button');
22
23
  var input = require('@hi-ui/input');
23
24
  var tooltip = require('@hi-ui/tooltip');
24
25
  function _interopDefaultCompat(e) {
@@ -141,8 +142,12 @@ var TabItem = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
141
142
  });
142
143
  }
143
144
  if (closeable && !editRender) {
144
- return /*#__PURE__*/React__default["default"].createElement("span", {
145
+ return /*#__PURE__*/React__default["default"].createElement(button.Button, {
145
146
  className: prefixCls + "__close-btn",
147
+ type: active ? 'primary' : 'default',
148
+ size: "xs",
149
+ appearance: "link",
150
+ icon: /*#__PURE__*/React__default["default"].createElement(icons.CloseOutlined, null),
146
151
  onClick: function onClick(evt) {
147
152
  evt.stopPropagation();
148
153
  if (onDelete) {
@@ -152,7 +157,7 @@ var TabItem = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
152
157
  }, evt);
153
158
  }
154
159
  }
155
- }, /*#__PURE__*/React__default["default"].createElement(icons.CloseOutlined, null));
160
+ });
156
161
  }
157
162
  }
158
163
  return null;
@@ -24,11 +24,13 @@ var TabInk = require('./TabInk.js');
24
24
  var icons = require('@hi-ui/icons');
25
25
  var typeAssertion = require('@hi-ui/type-assertion');
26
26
  var iconButton = require('@hi-ui/icon-button');
27
+ var core = require('@hi-ui/core');
28
+ var useMergeSemantic = require('@hi-ui/use-merge-semantic');
27
29
  var index = require('./hooks/index.js');
28
30
  var useLatest = require('@hi-ui/use-latest');
29
31
  var index$1 = require('./utils/index.js');
30
32
  var input = require('@hi-ui/input');
31
- var index$2 = require('./hooks/use-id/lib/esm/index.js');
33
+ var useId = require('@hi-ui/use-id');
32
34
  function _interopDefaultCompat(e) {
33
35
  return e && _typeof(e) === 'object' && 'default' in e ? e : {
34
36
  'default': e
@@ -40,10 +42,12 @@ var _role = 'tabs';
40
42
  var _prefix = classname.getPrefixCls(_role);
41
43
  var TabList = /*#__PURE__*/React.forwardRef(function (_a, ref) {
42
44
  var _cx, _cx2, _cx3, _cx4;
43
- var _b;
45
+ var _b, _c;
44
46
  var data = _a.data,
45
47
  className = _a.className,
46
48
  style = _a.style,
49
+ classNamesProp = _a.classNames,
50
+ stylesProp = _a.styles,
47
51
  activeId = _a.activeId,
48
52
  defaultActiveId = _a.defaultActiveId,
49
53
  onChange = _a.onChange,
@@ -67,13 +71,36 @@ var TabList = /*#__PURE__*/React.forwardRef(function (_a, ref) {
67
71
  onDragEnd = _a.onDragEnd,
68
72
  _a$type = _a.type,
69
73
  type = _a$type === void 0 ? 'line' : _a$type,
70
- _a$size = _a.size,
71
- size = _a$size === void 0 ? 'md' : _a$size,
74
+ sizeProp = _a.size,
72
75
  showDivider = _a.showDivider,
73
76
  extra = _a.extra,
74
77
  maxTabTitleWidth = _a.maxTabTitleWidth,
75
- rest = tslib.__rest(_a, ["data", "className", "style", "activeId", "defaultActiveId", "onChange", "onTabClick", "prefixCls", "direction", "placement", "editable", "editRender", "onAdd", "onAdded", "onDelete", "onEdit", "onCopy", "draggable", "onDragStart", "onDragOver", "onDrop", "onDragEnd", "type", "size", "showDivider", "extra", "maxTabTitleWidth"]);
76
- var direction = (_b = placement !== null && placement !== void 0 ? placement : directionProp) !== null && _b !== void 0 ? _b : 'horizontal';
78
+ rest = tslib.__rest(_a, ["data", "className", "style", "classNames", "styles", "activeId", "defaultActiveId", "onChange", "onTabClick", "prefixCls", "direction", "placement", "editable", "editRender", "onAdd", "onAdded", "onDelete", "onEdit", "onCopy", "draggable", "onDragStart", "onDragOver", "onDrop", "onDragEnd", "type", "size", "showDivider", "extra", "maxTabTitleWidth"]);
79
+ var globalContext = core.useGlobalContext();
80
+ var globalSize = globalContext.size;
81
+ var tabListConfig = globalContext.tabList;
82
+ var size = (_b = sizeProp !== null && sizeProp !== void 0 ? sizeProp : globalSize) !== null && _b !== void 0 ? _b : 'md';
83
+ if (size === 'xs') {
84
+ size = 'sm';
85
+ }
86
+ var direction = (_c = placement !== null && placement !== void 0 ? placement : directionProp) !== null && _c !== void 0 ? _c : 'horizontal';
87
+ var _useMergeSemantic = useMergeSemantic.useMergeSemantic({
88
+ classNamesList: [tabListConfig === null || tabListConfig === void 0 ? void 0 : tabListConfig.classNames, classNamesProp],
89
+ stylesList: [tabListConfig === null || tabListConfig === void 0 ? void 0 : tabListConfig.styles, stylesProp],
90
+ info: {
91
+ props: Object.assign(Object.assign({}, rest), {
92
+ data: data,
93
+ placement: direction,
94
+ type: type,
95
+ size: size,
96
+ showDivider: showDivider,
97
+ editable: editable,
98
+ draggable: draggable
99
+ })
100
+ }
101
+ }),
102
+ classNames = _useMergeSemantic.classNames,
103
+ styles = _useMergeSemantic.styles;
77
104
  var _useUncontrolledState = useUncontrolledState.useUncontrolledState(function () {
78
105
  if (typeAssertion.isUndef(defaultActiveId)) {
79
106
  return data[0] ? data[0].tabId : '';
@@ -215,7 +242,7 @@ var TabList = /*#__PURE__*/React.forwardRef(function (_a, ref) {
215
242
  setAdding(false);
216
243
  return _context.abrupt("return");
217
244
  case 4:
218
- newTabId = index$2.uuid();
245
+ newTabId = useId.uuid();
219
246
  newTab = {
220
247
  tabId: newTabId,
221
248
  tabTitle: newTabTitle
@@ -301,7 +328,7 @@ var TabList = /*#__PURE__*/React.forwardRef(function (_a, ref) {
301
328
  });
302
329
  if (!currentTab) return;
303
330
  var copiedTab = {
304
- tabId: currentTab.tabId + "-" + index$2.uuid(),
331
+ tabId: currentTab.tabId + "-" + useId.uuid(),
305
332
  tabTitle: currentTab.tabTitle
306
333
  };
307
334
  var insertIndex = targetIndex !== null && targetIndex !== void 0 ? targetIndex : showData.length;
@@ -313,11 +340,12 @@ var TabList = /*#__PURE__*/React.forwardRef(function (_a, ref) {
313
340
  initScrollPosition(activeId);
314
341
  }, [activeId, initScrollPosition]);
315
342
  return /*#__PURE__*/React__default["default"].createElement("div", Object.assign({
316
- style: style,
317
- className: classname.cx(prefixCls + "__list", prefixCls + "__list--placement-" + direction, (_cx = {}, _cx[prefixCls + "__list--type-" + type] = type, _cx), (_cx2 = {}, _cx2[prefixCls + "__list--size-" + size] = size, _cx2), (_cx3 = {}, _cx3[prefixCls + "__list--show-divider"] = showDivider, _cx3), (_cx4 = {}, _cx4[prefixCls + "__list--editable"] = editable, _cx4), className),
318
- ref: ref
343
+ ref: ref,
344
+ style: Object.assign(Object.assign({}, style), styles === null || styles === void 0 ? void 0 : styles.root),
345
+ className: classname.cx(prefixCls + "__list", classNames === null || classNames === void 0 ? void 0 : classNames.root, prefixCls + "__list--placement-" + direction, (_cx = {}, _cx[prefixCls + "__list--type-" + type] = type, _cx), (_cx2 = {}, _cx2[prefixCls + "__list--size-" + size] = size, _cx2), (_cx3 = {}, _cx3[prefixCls + "__list--show-divider"] = showDivider, _cx3), (_cx4 = {}, _cx4[prefixCls + "__list--editable"] = editable, _cx4), className)
319
346
  }, rest), showScrollBtn ? ( /*#__PURE__*/React__default["default"].createElement(iconButton.IconButton, {
320
- className: showHorizontal ? prefixCls + "__left-btn" : prefixCls + "__up-btn",
347
+ className: classname.cx(showHorizontal ? prefixCls + "__left-btn" : prefixCls + "__up-btn", classNames === null || classNames === void 0 ? void 0 : classNames.prevBtn),
348
+ style: styles === null || styles === void 0 ? void 0 : styles.prevBtn,
321
349
  effect: true,
322
350
  disabled: translatePos === 0,
323
351
  icon: showHorizontal ? /*#__PURE__*/React__default["default"].createElement(icons.LeftOutlined, null) : /*#__PURE__*/React__default["default"].createElement(icons.UpOutlined, null),
@@ -333,14 +361,15 @@ var TabList = /*#__PURE__*/React.forwardRef(function (_a, ref) {
333
361
  });
334
362
  }
335
363
  })) : null, /*#__PURE__*/React__default["default"].createElement("div", {
336
- className: classname.cx(prefixCls + "__list--inner"),
364
+ className: classname.cx(prefixCls + "__list--inner", classNames === null || classNames === void 0 ? void 0 : classNames.inner),
365
+ style: styles === null || styles === void 0 ? void 0 : styles.inner,
337
366
  ref: setInnerElement
338
367
  }, /*#__PURE__*/React__default["default"].createElement("div", {
339
- className: classname.cx(prefixCls + "__list--scroll"),
368
+ className: classname.cx(prefixCls + "__list--scroll", classNames === null || classNames === void 0 ? void 0 : classNames.scroll),
340
369
  ref: setScrollElement,
341
- style: showScrollBtn ? {
370
+ style: Object.assign(Object.assign({}, showScrollBtn ? {
342
371
  transform: direction === 'horizontal' ? "translateX(" + translatePos + "px)" : "translateY(" + translatePos + "px)"
343
- } : undefined
372
+ } : undefined), styles === null || styles === void 0 ? void 0 : styles.scroll)
344
373
  }, showData.map(function (item, index) {
345
374
  return /*#__PURE__*/React__default["default"].createElement(TabItem.TabItem, Object.assign({
346
375
  key: item.tabId
@@ -407,7 +436,8 @@ var TabList = /*#__PURE__*/React.forwardRef(function (_a, ref) {
407
436
  getTabOffset: getTabOffset
408
437
  })) : null)), showScrollBtn ? ( /*#__PURE__*/React__default["default"].createElement(iconButton.IconButton, {
409
438
  effect: true,
410
- className: showHorizontal ? prefixCls + "__right-btn" : prefixCls + "__down-btn",
439
+ className: classname.cx(showHorizontal ? prefixCls + "__right-btn" : prefixCls + "__down-btn", classNames === null || classNames === void 0 ? void 0 : classNames.nextBtn),
440
+ style: styles === null || styles === void 0 ? void 0 : styles.nextBtn,
411
441
  disabled: translateBoundPos === -translatePos,
412
442
  icon: showHorizontal ? /*#__PURE__*/React__default["default"].createElement(icons.RightOutlined, null) : /*#__PURE__*/React__default["default"].createElement(icons.DownOutlined, null),
413
443
  onClick: function onClick() {
@@ -423,9 +453,11 @@ var TabList = /*#__PURE__*/React.forwardRef(function (_a, ref) {
423
453
  });
424
454
  }
425
455
  })) : null, editable ? ( /*#__PURE__*/React__default["default"].createElement("div", {
426
- className: prefixCls + "__add-btn-wrap"
456
+ className: classname.cx(prefixCls + "__add-btn-wrap", classNames === null || classNames === void 0 ? void 0 : classNames.addBtnWrap),
457
+ style: styles === null || styles === void 0 ? void 0 : styles.addBtnWrap
427
458
  }, /*#__PURE__*/React__default["default"].createElement("div", {
428
- className: prefixCls + "__add-btn"
459
+ className: classname.cx(prefixCls + "__add-btn", classNames === null || classNames === void 0 ? void 0 : classNames.addBtn),
460
+ style: styles === null || styles === void 0 ? void 0 : styles.addBtn
429
461
  }, /*#__PURE__*/React__default["default"].createElement(iconButton.IconButton, {
430
462
  effect: true,
431
463
  icon: /*#__PURE__*/React__default["default"].createElement(icons.PlusOutlined, null),
package/lib/cjs/Tabs.js CHANGED
@@ -20,6 +20,8 @@ var env = require('@hi-ui/env');
20
20
  var TabList = require('./TabList.js');
21
21
  var useUncontrolledState = require('@hi-ui/use-uncontrolled-state');
22
22
  var typeAssertion = require('@hi-ui/type-assertion');
23
+ var core = require('@hi-ui/core');
24
+ var useMergeSemantic = require('@hi-ui/use-merge-semantic');
23
25
  function _interopDefaultCompat(e) {
24
26
  return e && _typeof(e) === 'object' && 'default' in e ? e : {
25
27
  'default': e
@@ -37,6 +39,9 @@ var Tabs = /*#__PURE__*/React.forwardRef(function (_a, ref) {
37
39
  _a$role = _a.role,
38
40
  role = _a$role === void 0 ? _role : _a$role,
39
41
  className = _a.className,
42
+ style = _a.style,
43
+ classNamesProp = _a.classNames,
44
+ stylesProp = _a.styles,
40
45
  children = _a.children,
41
46
  defaultActiveId = _a.defaultActiveId,
42
47
  activeId = _a.activeId,
@@ -57,7 +62,6 @@ var Tabs = /*#__PURE__*/React.forwardRef(function (_a, ref) {
57
62
  onDragOver = _a.onDragOver,
58
63
  onDragEnd = _a.onDragEnd,
59
64
  onDrop = _a.onDrop,
60
- style = _a.style,
61
65
  _a$type = _a.type,
62
66
  type = _a$type === void 0 ? 'line' : _a$type,
63
67
  _a$size = _a.size,
@@ -65,7 +69,7 @@ var Tabs = /*#__PURE__*/React.forwardRef(function (_a, ref) {
65
69
  showDivider = _a.showDivider,
66
70
  maxTabTitleWidth = _a.maxTabTitleWidth,
67
71
  extra = _a.extra,
68
- rest = tslib.__rest(_a, ["prefixCls", "role", "className", "children", "defaultActiveId", "activeId", "onChange", "onTabClick", "editable", "placement", "editRender", "onEdit", "onCopy", "onAdd", "onAdded", "onDelete", "draggable", "onDragStart", "onDragOver", "onDragEnd", "onDrop", "style", "type", "size", "showDivider", "maxTabTitleWidth", "extra"]);
72
+ rest = tslib.__rest(_a, ["prefixCls", "role", "className", "style", "classNames", "styles", "children", "defaultActiveId", "activeId", "onChange", "onTabClick", "editable", "placement", "editRender", "onEdit", "onCopy", "onAdd", "onAdded", "onDelete", "draggable", "onDragStart", "onDragOver", "onDragEnd", "onDrop", "type", "size", "showDivider", "maxTabTitleWidth", "extra"]);
69
73
  var tabList = React.useMemo(function () {
70
74
  var list = [];
71
75
  React__default["default"].Children.map(children, function (child) {
@@ -96,12 +100,27 @@ var Tabs = /*#__PURE__*/React.forwardRef(function (_a, ref) {
96
100
  }, activeId, onChange),
97
101
  activeTabId = _useUncontrolledState[0],
98
102
  setActiveTabId = _useUncontrolledState[1];
99
- var cls = classname.cx(prefixCls, className, placement && prefixCls + "--placement-" + placement, type && prefixCls + "--type-" + type);
103
+ var globalContext = core.useGlobalContext();
104
+ var tabsConfig = globalContext.tabs;
105
+ var _useMergeSemantic = useMergeSemantic.useMergeSemantic({
106
+ classNamesList: [tabsConfig === null || tabsConfig === void 0 ? void 0 : tabsConfig.classNames, classNamesProp],
107
+ stylesList: [tabsConfig === null || tabsConfig === void 0 ? void 0 : tabsConfig.styles, stylesProp],
108
+ info: {
109
+ props: Object.assign(Object.assign({}, rest), {
110
+ placement: placement,
111
+ type: type,
112
+ size: size
113
+ })
114
+ }
115
+ }),
116
+ classNames = _useMergeSemantic.classNames,
117
+ styles = _useMergeSemantic.styles;
118
+ var cls = classname.cx(prefixCls, className, classNames === null || classNames === void 0 ? void 0 : classNames.root, placement && prefixCls + "--placement-" + placement, type && prefixCls + "--type-" + type);
100
119
  return /*#__PURE__*/React__default["default"].createElement("div", Object.assign({
101
120
  ref: ref,
102
121
  role: role,
103
122
  className: cls,
104
- style: style
123
+ style: Object.assign(Object.assign({}, style), styles === null || styles === void 0 ? void 0 : styles.root)
105
124
  }, rest), /*#__PURE__*/React__default["default"].createElement(TabList.TabList, {
106
125
  prefixCls: prefixCls,
107
126
  data: tabList,
@@ -125,9 +144,12 @@ var Tabs = /*#__PURE__*/React.forwardRef(function (_a, ref) {
125
144
  showDivider: showDivider,
126
145
  onDragStart: onDragStart,
127
146
  extra: extra,
128
- maxTabTitleWidth: maxTabTitleWidth
147
+ maxTabTitleWidth: maxTabTitleWidth,
148
+ className: classNames === null || classNames === void 0 ? void 0 : classNames.list,
149
+ style: styles === null || styles === void 0 ? void 0 : styles.list
129
150
  }), /*#__PURE__*/React__default["default"].createElement("div", {
130
- className: _prefix + "__content"
151
+ className: classname.cx(_prefix + "__content", classNames === null || classNames === void 0 ? void 0 : classNames.content),
152
+ style: styles === null || styles === void 0 ? void 0 : styles.content
131
153
  }, React__default["default"].Children.map(children, function (child) {
132
154
  return child ? /*#__PURE__*/React__default["default"].cloneElement(child, {
133
155
  key: child.props.tabId,
@@ -12,7 +12,7 @@
12
12
  Object.defineProperty(exports, '__esModule', {
13
13
  value: true
14
14
  });
15
- var css_248z = ".hi-v5-tabs__add-btn.hi-v5-icon-button {font-size: var(--hi-v5-text-size-md, 0.875rem);}.hi-v5-tabs__add-input {display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-align: center;-ms-flex-align: center;align-items: center;margin-left: var(--hi-v5-spacing-14, 28px);}.hi-v5-tabs__add-btn-wrap {display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-align: center;-ms-flex-align: center;align-items: center;margin-left: var(--hi-v5-spacing-4, 8px);}.hi-v5-tabs__add-btn-wrap .hi-v5-tabs__add-btn {display: -webkit-box;display: -ms-flexbox;display: flex;height: 16px;padding-left: var(--hi-v5-spacing-4, 8px);border-left: 1px solid var(--hi-v5-color-gray-200, #e6e8eb);}.hi-v5-tabs__add-input, .hi-v5-tabs__edit-input {width: 120px;margin-right: 1px;}.hi-v5-tabs__up-btn.hi-v5-icon-button, .hi-v5-tabs__down-btn.hi-v5-icon-button, .hi-v5-tabs__left-btn.hi-v5-icon-button, .hi-v5-tabs__right-btn.hi-v5-icon-button {margin: var(--hi-v5-spacing-1, 2px);}.hi-v5-tabs__close-btn {cursor: pointer;color: var(--hi-v5-color-gray-500, #91959e);margin-left: var(--hi-v5-spacing-2, 4px);-webkit-transition: color 0.3s;transition: color 0.3s;}.hi-v5-tabs__close-btn:hover {color: var(--hi-v5-color-primary-500, var(--hi-v5-color-brandblue-500, #2660ff));}.hi-v5-tabs--type-card .hi-v5-tabs__content {background-color: var(--hi-v5-color-static-white, #fff);}.hi-v5-tabs__list {position: relative;font-size: var(--hi-v5-text-size-md, 0.875rem);color: var(--hi-v5-color-gray-500, #91959e);display: -webkit-box;display: -ms-flexbox;display: flex;overflow: hidden;-webkit-box-align: center;-ms-flex-align: center;align-items: center;}.hi-v5-tabs__list.hi-v5-tabs__list--editable {border-bottom: 1px solid var(--hi-v5-color-gray-200, #e6e8eb);}.hi-v5-tabs__list--type-card .hi-v5-tabs__item {background-color: var(--hi-v5-color-gray-200, #e6e8eb);margin: 0;padding: var(--hi-v5-spacing-5, 10px) var(--hi-v5-spacing-8, 16px);border-radius: 0;-webkit-transition: all 0.3s;transition: all 0.3s;line-height: var(--hi-v5-text-lineheight-sm, 1.25rem);}.hi-v5-tabs__list--type-card .hi-v5-tabs__item--active {color: var(--hi-v5-color-primary-500, var(--hi-v5-color-brandblue-500, #2660ff));background-color: var(--hi-v5-color-static-white, #fff);border-radius: var(--hi-v5-border-radius-lg, 6px) 0 0 var(--hi-v5-border-radius-lg, 6px);}.hi-v5-tabs__list--type-button .hi-v5-tabs__item {position: relative;margin: var(--hi-v5-spacing-2, 4px) var(--hi-v5-spacing-2, 4px) var(--hi-v5-spacing-2, 4px) 0;padding: var(--hi-v5-spacing-2, 4px) var(--hi-v5-spacing-6, 12px);border-radius: var(--hi-v5-border-radius-lg, 6px);-webkit-transition: all 0.3s;transition: all 0.3s;}.hi-v5-tabs__list--type-button .hi-v5-tabs__item:not(:where(.hi-v5-tabs__item--active, .hi-v5-tabs__item--disabled)):hover {background-color: var(--hi-v5-color-gray-200, #e6e8eb);color: var(--hi-v5-color-gray-500, #91959e);}.hi-v5-tabs__list--type-button .hi-v5-tabs__item:not(:where(.hi-v5-tabs__item--active, .hi-v5-tabs__item--disabled)):hover::after {display: none;}.hi-v5-tabs__list--type-button .hi-v5-tabs__item:not(:where(.hi-v5-tabs__item--active, .hi-v5-tabs__item--disabled)):hover + .hi-v5-tabs__item::after {display: none;}.hi-v5-tabs__list--type-button .hi-v5-tabs__item:not(:where(.hi-v5-tabs__item--active, .hi-v5-tabs__item--disabled))::after {content: \"\";position: absolute;width: 1px;height: var(--hi-v5-height-4, 16px);background-color: var(--hi-v5-color-gray-300, #dbdde0);left: 0;top: 50%;-webkit-transform: translateY(-50%);transform: translateY(-50%);}.hi-v5-tabs__list--type-button .hi-v5-tabs__item:not(:where(.hi-v5-tabs__item--active, .hi-v5-tabs__item--disabled)):first-child::after {display: none;}.hi-v5-tabs__list--type-button .hi-v5-tabs__item--active {color: var(--hi-v5-color-primary-500, var(--hi-v5-color-brandblue-500, #2660ff));background-color: var(--hi-v5-color-primary-50, var(--hi-v5-color-brandblue-50, #edf2ff));}.hi-v5-tabs__list--type-button .hi-v5-tabs__item--active + .hi-v5-tabs__item::after {display: none;}.hi-v5-tabs__list--type-desc .hi-v5-tabs-item__title {color: var(--hi-v5-color-gray-700, #1a1d26);line-height: var(--hi-v5-text-lineheight-sm, 1.25rem);}.hi-v5-tabs__list--type-desc .hi-v5-tabs-item__desc {color: var(--hi-v5-color-gray-500, #91959e);font-size: var(--hi-v5-text-size-sm, 0.75rem);line-height: var(--hi-v5-text-lineheight-sm, 1.25rem);}.hi-v5-tabs__list--type-desc .hi-v5-tabs__item {background: var(--hi-v5-color-gray-50, #f2f4f7);display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-orient: vertical;-webkit-box-direction: normal;-ms-flex-direction: column;flex-direction: column;-webkit-box-align: center;-ms-flex-align: center;align-items: center;margin: 0 var(--hi-v5-spacing-6, 12px) 0 0;padding: var(--hi-v5-spacing-8, 16px);border-radius: var(--hi-v5-border-radius-lg, 6px);-webkit-transition: all 0.3s;transition: all 0.3s;}.hi-v5-tabs__list--type-desc .hi-v5-tabs__item:not(:where(.hi-v5-tabs__item--active, .hi-v5-tabs__item--disabled)):hover {background-color: var(--hi-v5-color-gray-200, #e6e8eb);color: var(--hi-v5-color-gray-500, #91959e);}.hi-v5-tabs__list--type-desc .hi-v5-tabs__item--active {color: var(--hi-v5-color-primary-500, var(--hi-v5-color-brandblue-500, #2660ff));background-color: var(--hi-v5-color-primary-50, var(--hi-v5-color-brandblue-50, #edf2ff));}.hi-v5-tabs__list--type-desc .hi-v5-tabs__item--active .hi-v5-tabs-item__title {color: var(--hi-v5-color-primary-500, var(--hi-v5-color-brandblue-500, #2660ff));}.hi-v5-tabs__list--type-desc .hi-v5-tabs__item--active .hi-v5-tabs-item__desc {color: var(--hi-v5-color-primary-500, var(--hi-v5-color-brandblue-500, #2660ff));}.hi-v5-tabs__list--type-line .hi-v5-tabs__item {display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-align: center;-ms-flex-align: center;align-items: center;}.hi-v5-tabs__list--type-line .hi-v5-tabs__item .hi-v5-tabs-item__title {overflow: hidden;text-overflow: ellipsis;white-space: nowrap;}.hi-v5-tabs__list--type-line.hi-v5-tabs__list--size-sm .hi-v5-tabs__item {height: var(--hi-v5-height-10, 40px);padding: 0 0 0 var(--hi-v5-spacing-14, 28px);font-size: var(--hi-v5-text-size-md, 0.875rem);line-height: var(--hi-v5-text-lineheight-md, 1.375rem);}.hi-v5-tabs__list--type-line.hi-v5-tabs__list--size-md:not(.hi-v5-tabs__list--placement-vertical) .hi-v5-tabs__item {height: var(--hi-v5-height-12, 48px);padding: 0 0 0 var(--hi-v5-spacing-14, 28px);font-size: var(--hi-v5-text-size-md, 0.875rem);line-height: var(--hi-v5-text-lineheight-md, 1.375rem);}.hi-v5-tabs__list--type-line.hi-v5-tabs__list--size-lg .hi-v5-tabs__item {height: var(--hi-v5-height-15, 60px);padding: 0 0 0 var(--hi-v5-spacing-14, 28px);font-size: var(--hi-v5-text-size-lg, 1rem);line-height: var(--hi-v5-text-lineheight-lg, 1.5rem);}.hi-v5-tabs__list--type-line.hi-v5-tabs__list--placement-horizontal .hi-v5-tabs__item:first-child {padding-left: 0;}.hi-v5-tabs__list--type-line.hi-v5-tabs__list--placement-horizontal .hi-v5-tabs__item:last-child {padding-right: 0;}.hi-v5-tabs__list--inner {display: -webkit-box;display: -ms-flexbox;display: flex;position: relative;overflow: hidden;}.hi-v5-tabs__list:not(.hi-v5-tabs__list--editable) > .hi-v5-tabs__list--inner {-webkit-box-flex: 1;-ms-flex: 1 1;flex: 1 1;}.hi-v5-tabs__list--editable > .hi-v5-tabs__list--inner {max-width: calc(100% - 33px);}.hi-v5-tabs__list--scroll {display: -webkit-box;display: -ms-flexbox;display: flex;position: relative;-ms-flex-negative: 0;flex-shrink: 0;-webkit-transition-property: -webkit-transform;transition-property: -webkit-transform;transition-property: transform;transition-property: transform, -webkit-transform;-webkit-transition-duration: var(--hi-v5-motion-duration-slow, 300ms);transition-duration: var(--hi-v5-motion-duration-slow, 300ms);-webkit-transition-timing-function: var(--hi-v5-motion-bezier-easing, cubic-bezier(0.37, 0.02, 0.34, 1));transition-timing-function: var(--hi-v5-motion-bezier-easing, cubic-bezier(0.37, 0.02, 0.34, 1));will-change: transform;}.hi-v5-tabs__list--placement-vertical > .hi-v5-tabs__list--inner > .hi-v5-tabs__list--scroll {-webkit-box-orient: vertical;-webkit-box-direction: normal;-ms-flex-direction: column;flex-direction: column;}.hi-v5-tabs__list--placement-vertical {display: -webkit-inline-box;display: -ms-inline-flexbox;display: inline-flex;}.hi-v5-tabs__list--placement-horizontal.hi-v5-tabs__list--show-divider {border-bottom: 1px solid var(--hi-v5-color-gray-200, #e6e8eb);}.hi-v5-tabs--placement-vertical {display: -webkit-box;display: -ms-flexbox;display: flex;}.hi-v5-tabs--placement-vertical > .hi-v5-tabs__content {padding-left: 16px;padding-top: 0;}.hi-v5-tabs--placement-vertical > .hi-v5-tabs__list {-ms-flex-negative: 0;flex-shrink: 0;-webkit-box-orient: vertical;-webkit-box-direction: normal;-ms-flex-direction: column;flex-direction: column;}.hi-v5-tabs--placement-vertical > .hi-v5-tabs__list.hi-v5-tabs__list--type-desc .hi-v5-tabs-item__title {color: var(--hi-v5-color-gray-700, #1a1d26);line-height: var(--hi-v5-text-lineheight-sm, 1.25rem);}.hi-v5-tabs--placement-vertical > .hi-v5-tabs__list.hi-v5-tabs__list--type-desc .hi-v5-tabs-item__desc {color: var(--hi-v5-color-gray-500, #91959e);font-size: var(--hi-v5-text-size-sm, 0.75rem);line-height: var(--hi-v5-text-lineheight-sm, 1.25rem);}.hi-v5-tabs--placement-vertical > .hi-v5-tabs__list.hi-v5-tabs__list--type-desc .hi-v5-tabs__item {display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-orient: vertical;-webkit-box-direction: normal;-ms-flex-direction: column;flex-direction: column;-webkit-box-align: center;-ms-flex-align: center;align-items: center;padding: var(--hi-v5-spacing-8, 16px);border-radius: var(--hi-v5-border-radius-lg, 6px);-webkit-transition: all 0.3s;transition: all 0.3s;background: var(--hi-v5-color-gray-50, #f2f4f7);}.hi-v5-tabs--placement-vertical > .hi-v5-tabs__list.hi-v5-tabs__list--type-desc .hi-v5-tabs__item:not(:where(.hi-v5-tabs__item--active, .hi-v5-tabs__item--disabled)):hover {background-color: var(--hi-v5-color-gray-200, #e6e8eb);color: var(--hi-v5-color-gray-500, #91959e);}.hi-v5-tabs--placement-vertical > .hi-v5-tabs__list.hi-v5-tabs__list--type-desc .hi-v5-tabs__item--active {color: var(--hi-v5-color-primary-500, var(--hi-v5-color-brandblue-500, #2660ff));background-color: var(--hi-v5-color-primary-50, var(--hi-v5-color-brandblue-50, #edf2ff));}.hi-v5-tabs--placement-vertical > .hi-v5-tabs__list.hi-v5-tabs__list--type-desc .hi-v5-tabs__item--active .hi-v5-tabs-item__title {color: var(--hi-v5-color-primary-500, var(--hi-v5-color-brandblue-500, #2660ff));}.hi-v5-tabs--placement-vertical > .hi-v5-tabs__list.hi-v5-tabs__list--type-desc .hi-v5-tabs__item--active .hi-v5-tabs-item__desc {color: var(--hi-v5-color-primary-500, var(--hi-v5-color-brandblue-500, #2660ff));}.hi-v5-tabs--placement-vertical > .hi-v5-tabs__list.hi-v5-tabs__list--type-desc .hi-v5-tabs__list--scroll {row-gap: var(--hi-v5-spacing-6, 12px);}.hi-v5-tabs--placement-vertical > .hi-v5-tabs__list.hi-v5-tabs__list--type-card .hi-v5-tabs__item {margin: 0;padding: var(--hi-v5-spacing-5, 10px) var(--hi-v5-spacing-8, 16px);background-color: var(--hi-v5-color-gray-200, #e6e8eb);border-radius: 0;-webkit-transition: all 0.3s;transition: all 0.3s;line-height: var(--hi-v5-text-lineheight-sm, 1.25rem);}.hi-v5-tabs--placement-vertical > .hi-v5-tabs__list.hi-v5-tabs__list--type-card .hi-v5-tabs__item--active {color: var(--hi-v5-color-primary-500, var(--hi-v5-color-brandblue-500, #2660ff));background-color: var(--hi-v5-color-static-white, #fff);border-radius: var(--hi-v5-border-radius-lg, 6px) 0 0 var(--hi-v5-border-radius-lg, 6px);}.hi-v5-tabs--placement-vertical > .hi-v5-tabs__list.hi-v5-tabs__list--type-button .hi-v5-tabs__item {margin: 0 0 var(--hi-v5-spacing-2, 4px) 0;padding: var(--hi-v5-spacing-2, 4px) var(--hi-v5-spacing-6, 12px);border-radius: var(--hi-v5-border-radius-lg, 6px);-webkit-transition: all 0.3s;transition: all 0.3s;}.hi-v5-tabs--placement-vertical > .hi-v5-tabs__list.hi-v5-tabs__list--type-button .hi-v5-tabs__item:not(:where(.hi-v5-tabs__item--active, .hi-v5-tabs__item--disabled)):hover {background-color: var(--hi-v5-color-gray-200, #e6e8eb);color: var(--hi-v5-color-gray-500, #91959e);}.hi-v5-tabs--placement-vertical > .hi-v5-tabs__list.hi-v5-tabs__list--type-button .hi-v5-tabs__item--active {color: var(--hi-v5-color-primary-500, var(--hi-v5-color-brandblue-500, #2660ff));background-color: var(--hi-v5-color-primary-50, var(--hi-v5-color-brandblue-50, #edf2ff));}.hi-v5-tabs--placement-vertical > .hi-v5-tabs__list.hi-v5-tabs__list--type-button .hi-v5-tabs__list--scroll {row-gap: var(--hi-v5-spacing-2, 4px);}.hi-v5-tabs--placement-vertical > .hi-v5-tabs__list .hi-v5-tabs__list--inner {width: auto;display: block;position: relative;}.hi-v5-tabs--placement-vertical > .hi-v5-tabs__list .hi-v5-tabs__list--scroll {-webkit-box-orient: vertical;-webkit-box-direction: normal;-ms-flex-direction: column;flex-direction: column;position: relative;}.hi-v5-tabs--placement-vertical > .hi-v5-tabs__list .hi-v5-tabs__item {line-height: var(--hi-v5-text-lineheight-lg, 1.5rem);padding: var(--hi-v5-spacing-4, 8px) var(--hi-v5-spacing-10, 20px);margin: 0;-webkit-transition: all 0.2s cubic-bezier(0.34, 0.69, 0.1, 1);transition: all 0.2s cubic-bezier(0.34, 0.69, 0.1, 1);}.hi-v5-tabs--placement-vertical > .hi-v5-tabs__list .hi-v5-tabs__item::after {display: none;}.hi-v5-tabs--placement-vertical > .hi-v5-tabs__list .hi-v5-tabs__item--prev {border-top: 1px dashed var(--hi-v5-color-primary-500, var(--hi-v5-color-brandblue-500, #2660ff));border-left: none;}.hi-v5-tabs--placement-vertical > .hi-v5-tabs__list .hi-v5-tabs__item--next {border-bottom: 1px dashed var(--hi-v5-color-primary-500, var(--hi-v5-color-brandblue-500, #2660ff));border-right: none;}.hi-v5-tabs--placement-vertical > .hi-v5-tabs__list .hi-v5-tabs__ink {position: absolute;left: 0;bottom: auto;width: 2px;background-color: var(--hi-v5-color-primary-500, var(--hi-v5-color-brandblue-500, #2660ff));-webkit-transition: top 0.2s cubic-bezier(0.34, 0.69, 0.1, 1), height 0.2s cubic-bezier(0.34, 0.69, 0.1, 1);transition: top 0.2s cubic-bezier(0.34, 0.69, 0.1, 1), height 0.2s cubic-bezier(0.34, 0.69, 0.1, 1);}.hi-v5-tabs__ink {position: absolute;bottom: 0;right: auto;top: auto;height: 3px;border-top-left-radius: 3px;border-top-right-radius: 3px;background-color: var(--hi-v5-color-primary-500, var(--hi-v5-color-brandblue-500, #2660ff));-webkit-transition: left 0.2s cubic-bezier(0.34, 0.69, 0.1, 1), width 0.2s cubic-bezier(0.34, 0.69, 0.1, 1);transition: left 0.2s cubic-bezier(0.34, 0.69, 0.1, 1), width 0.2s cubic-bezier(0.34, 0.69, 0.1, 1);}.hi-v5-tabs__item {line-height: var(--hi-v5-text-lineheight-lg, 1.5rem);padding: var(--hi-v5-spacing-4, 8px) var(--hi-v5-spacing-10, 20px);margin: 0;cursor: pointer;-ms-flex-negative: 0;flex-shrink: 0;-webkit-transition: all 0.2s cubic-bezier(0.34, 0.69, 0.1, 1);transition: all 0.2s cubic-bezier(0.34, 0.69, 0.1, 1);}.hi-v5-tabs__item:focus {outline: 0;}.hi-v5-tabs__item:not(.hi-v5-tabs__item--disabled):hover {color: var(--hi-v5-color-primary-500, var(--hi-v5-color-brandblue-500, #2660ff));}.hi-v5-tabs__item--active {color: var(--hi-v5-color-primary-500, var(--hi-v5-color-brandblue-500, #2660ff));}.hi-v5-tabs__item--prev {border-left: 1px dashed var(--hi-v5-color-primary-500, var(--hi-v5-color-brandblue-500, #2660ff));}.hi-v5-tabs__item--next {border-right: 1px dashed var(--hi-v5-color-primary-500, var(--hi-v5-color-brandblue-500, #2660ff));}.hi-v5-tabs__item--disabled, .hi-v5-tabs__item--disabled .hi-v5-tabs__close-btn {color: var(--hi-v5-color-gray-400, #abadb2);cursor: not-allowed;}.hi-v5-tabs__item:not(.hi-v5-tabs__item--active) {overflow: hidden;white-space: nowrap;text-overflow: ellipsis;}.hi-v5-tabs__content {width: 100%;overflow: hidden;padding-top: var(--hi-v5-spacing-8, 16px);-webkit-box-sizing: border-box;box-sizing: border-box;}.hi-v5-tabs-tab-pane--hide {display: none;}";
15
+ var css_248z = ".hi-v5-tabs__add-btn.hi-v5-icon-button {font-size: var(--hi-v5-text-size-md, 0.875rem);}.hi-v5-tabs__add-input {display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-align: center;-ms-flex-align: center;align-items: center;-webkit-margin-start: var(--hi-v5-spacing-14, 28px);margin-inline-start: var(--hi-v5-spacing-14, 28px);}.hi-v5-tabs__add-btn-wrap {display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-align: center;-ms-flex-align: center;align-items: center;-webkit-margin-start: var(--hi-v5-spacing-4, 8px);margin-inline-start: var(--hi-v5-spacing-4, 8px);}.hi-v5-tabs__add-btn-wrap .hi-v5-tabs__add-btn {display: -webkit-box;display: -ms-flexbox;display: flex;height: 16px;-webkit-padding-start: var(--hi-v5-spacing-4, 8px);padding-inline-start: var(--hi-v5-spacing-4, 8px);-webkit-border-start: 1px solid var(--hi-v5-color-gray-300, #e6e8eb);border-inline-start: 1px solid var(--hi-v5-color-gray-300, #e6e8eb);}.hi-v5-tabs__add-input, .hi-v5-tabs__edit-input {width: 120px;-webkit-margin-end: 1px;margin-inline-end: 1px;}.hi-v5-tabs__up-btn.hi-v5-icon-button, .hi-v5-tabs__down-btn.hi-v5-icon-button, .hi-v5-tabs__left-btn.hi-v5-icon-button, .hi-v5-tabs__right-btn.hi-v5-icon-button {margin: var(--hi-v5-spacing-1, 2px);}.hi-v5-tabs__close-btn {cursor: pointer;color: var(--hi-v5-color-gray-600, #91959e);-webkit-margin-start: var(--hi-v5-spacing-2, 4px);margin-inline-start: var(--hi-v5-spacing-2, 4px);-webkit-transition: color 0.3s;transition: color 0.3s;}.hi-v5-tabs__close-btn:hover {color: var(--hi-v5-color-primary-500, var(--hi-v5-color-brandblue-500, #2660ff));}.hi-v5-tabs--type-card .hi-v5-tabs__content {background-color: var(--hi-v5-color-static-white, #fff);}.hi-v5-tabs__list {position: relative;font-size: var(--hi-v5-text-size-md, 0.875rem);color: var(--hi-v5-color-gray-600, #91959e);display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-align: center;-ms-flex-align: center;align-items: center;}.hi-v5-tabs__list.hi-v5-tabs__list--editable {-webkit-border-after: var(--hi-v5-border-size-normal, 1px solid) var(--hi-v5-color-gray-300, #e6e8eb);border-block-end: var(--hi-v5-border-size-normal, 1px solid) var(--hi-v5-color-gray-300, #e6e8eb);}.hi-v5-tabs__list--type-card .hi-v5-tabs__item {background-color: var(--hi-v5-color-gray-100, #f2f4f7);margin: 0;padding: var(--hi-v5-spacing-5, 10px) var(--hi-v5-spacing-8, 16px);border-radius: 0;-webkit-transition: all 0.3s;transition: all 0.3s;line-height: var(--hi-v5-text-lineheight-sm, 1.25rem);}.hi-v5-tabs__list--type-card .hi-v5-tabs__item--active {color: var(--hi-v5-color-primary-500, var(--hi-v5-color-brandblue-500, #2660ff));background-color: var(--hi-v5-color-static-white, #fff);}.hi-v5-tabs__list--type-button .hi-v5-tabs__item {position: relative;margin: var(--hi-v5-spacing-2, 4px) var(--hi-v5-spacing-2, 4px) var(--hi-v5-spacing-2, 4px) 0;padding: var(--hi-v5-spacing-2, 4px) var(--hi-v5-spacing-6, 12px);border-radius: var(--hi-v5-border-radius-lg, 6px);-webkit-transition: all 0.3s;transition: all 0.3s;}.hi-v5-tabs__list--type-button .hi-v5-tabs__item:not(:where(.hi-v5-tabs__item--active, .hi-v5-tabs__item--disabled)):hover {background-color: var(--hi-v5-color-gray-300, #e6e8eb);color: var(--hi-v5-color-gray-600, #91959e);}.hi-v5-tabs__list--type-button .hi-v5-tabs__item:not(:where(.hi-v5-tabs__item--active, .hi-v5-tabs__item--disabled)):hover::after {display: none;}.hi-v5-tabs__list--type-button .hi-v5-tabs__item:not(:where(.hi-v5-tabs__item--active, .hi-v5-tabs__item--disabled)):hover + .hi-v5-tabs__item::after {display: none;}.hi-v5-tabs__list--type-button .hi-v5-tabs__item:not(:where(.hi-v5-tabs__item--active, .hi-v5-tabs__item--disabled))::after {content: \"\";position: absolute;width: 1px;height: var(--hi-v5-height-4, 16px);background-color: var(--hi-v5-color-gray-400, #dbdde0);inset-inline-start: 0;inset-block-start: 50%;-webkit-transform: translate3d(0, -50%, 0);transform: translate3d(0, -50%, 0);}.hi-v5-tabs__list--type-button .hi-v5-tabs__item:not(:where(.hi-v5-tabs__item--active, .hi-v5-tabs__item--disabled)):first-child::after {display: none;}.hi-v5-tabs__list--type-button .hi-v5-tabs__item--active {color: var(--hi-v5-color-primary-500, var(--hi-v5-color-brandblue-500, #2660ff));background-color: var(--hi-v5-color-primary-50, var(--hi-v5-color-brandblue-50, #edf2ff));}.hi-v5-tabs__list--type-button .hi-v5-tabs__item--active + .hi-v5-tabs__item::after {display: none;}.hi-v5-tabs__list--type-desc .hi-v5-tabs-item__title {color: var(--hi-v5-color-gray-800, #1a1d26);line-height: var(--hi-v5-text-lineheight-sm, 1.25rem);}.hi-v5-tabs__list--type-desc .hi-v5-tabs-item__desc {color: var(--hi-v5-color-gray-600, #91959e);font-size: var(--hi-v5-text-size-sm, 0.75rem);line-height: var(--hi-v5-text-lineheight-sm, 1.25rem);}.hi-v5-tabs__list--type-desc .hi-v5-tabs__item {background: var(--hi-v5-color-gray-100, #f2f4f7);display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-orient: vertical;-webkit-box-direction: normal;-ms-flex-direction: column;flex-direction: column;-webkit-box-align: center;-ms-flex-align: center;align-items: center;margin: 0 var(--hi-v5-spacing-6, 12px) 0 0;padding: var(--hi-v5-spacing-8, 16px);border-radius: var(--hi-v5-border-radius-lg, 6px);-webkit-transition: all 0.3s;transition: all 0.3s;}.hi-v5-tabs__list--type-desc .hi-v5-tabs__item:not(:where(.hi-v5-tabs__item--active, .hi-v5-tabs__item--disabled)):hover {background-color: var(--hi-v5-color-gray-300, #e6e8eb);color: var(--hi-v5-color-gray-600, #91959e);}.hi-v5-tabs__list--type-desc .hi-v5-tabs__item--active {color: var(--hi-v5-color-primary-500, var(--hi-v5-color-brandblue-500, #2660ff));background-color: var(--hi-v5-color-primary-50, var(--hi-v5-color-brandblue-50, #edf2ff));}.hi-v5-tabs__list--type-desc .hi-v5-tabs__item--active .hi-v5-tabs-item__title {color: var(--hi-v5-color-primary-500, var(--hi-v5-color-brandblue-500, #2660ff));}.hi-v5-tabs__list--type-desc .hi-v5-tabs__item--active .hi-v5-tabs-item__desc {color: var(--hi-v5-color-primary-500, var(--hi-v5-color-brandblue-500, #2660ff));}.hi-v5-tabs__list--type-line .hi-v5-tabs__item {display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-align: center;-ms-flex-align: center;align-items: center;}.hi-v5-tabs__list--type-line .hi-v5-tabs__item .hi-v5-tabs-item__title {overflow: hidden;text-overflow: ellipsis;white-space: nowrap;}.hi-v5-tabs__list--type-line.hi-v5-tabs__list--size-sm .hi-v5-tabs__item {height: var(--hi-v5-height-10, 40px);padding: 0 0 0 var(--hi-v5-spacing-14, 28px);font-size: var(--hi-v5-text-size-md, 0.875rem);line-height: var(--hi-v5-text-lineheight-md, 1.375rem);}.hi-v5-tabs__list--type-line.hi-v5-tabs__list--size-md:not(.hi-v5-tabs__list--placement-vertical) .hi-v5-tabs__item {height: var(--hi-v5-height-12, 48px);padding: 0 0 0 var(--hi-v5-spacing-14, 28px);font-size: var(--hi-v5-text-size-md, 0.875rem);line-height: var(--hi-v5-text-lineheight-md, 1.375rem);}.hi-v5-tabs__list--type-line.hi-v5-tabs__list--size-lg .hi-v5-tabs__item {height: var(--hi-v5-height-15, 60px);padding: 0 0 0 var(--hi-v5-spacing-14, 28px);font-size: var(--hi-v5-text-size-lg, 1rem);line-height: var(--hi-v5-text-lineheight-lg, 1.5rem);}.hi-v5-tabs__list--type-line.hi-v5-tabs__list--placement-horizontal .hi-v5-tabs__item:first-child {-webkit-padding-start: 0;padding-inline-start: 0;}.hi-v5-tabs__list--type-line.hi-v5-tabs__list--placement-horizontal .hi-v5-tabs__item:last-child {-webkit-padding-end: 0;padding-inline-end: 0;}.hi-v5-tabs__list--inner {display: -webkit-box;display: -ms-flexbox;display: flex;position: relative;overflow: hidden;}.hi-v5-tabs__list:not(.hi-v5-tabs__list--editable) > .hi-v5-tabs__list--inner {-webkit-box-flex: 1;-ms-flex: 1 1;flex: 1 1;}.hi-v5-tabs__list--editable > .hi-v5-tabs__list--inner {max-width: calc(100% - 33px);}.hi-v5-tabs__list--scroll {display: -webkit-box;display: -ms-flexbox;display: flex;position: relative;-ms-flex-negative: 0;flex-shrink: 0;-webkit-transition-property: -webkit-transform;transition-property: -webkit-transform;transition-property: transform;transition-property: transform, -webkit-transform;-webkit-transition-duration: var(--hi-v5-motion-duration-slow, 300ms);transition-duration: var(--hi-v5-motion-duration-slow, 300ms);-webkit-transition-timing-function: var(--hi-v5-motion-bezier-easing, cubic-bezier(0.37, 0.02, 0.34, 1));transition-timing-function: var(--hi-v5-motion-bezier-easing, cubic-bezier(0.37, 0.02, 0.34, 1));will-change: transform;}.hi-v5-tabs__list--placement-vertical > .hi-v5-tabs__list--inner > .hi-v5-tabs__list--scroll {-webkit-box-orient: vertical;-webkit-box-direction: normal;-ms-flex-direction: column;flex-direction: column;}.hi-v5-tabs__list--placement-vertical {display: -webkit-inline-box;display: -ms-inline-flexbox;display: inline-flex;}.hi-v5-tabs__list--placement-horizontal.hi-v5-tabs__list--show-divider {-webkit-border-after: var(--hi-v5-border-size-normal, 1px solid) var(--hi-v5-color-gray-300, #e6e8eb);border-block-end: var(--hi-v5-border-size-normal, 1px solid) var(--hi-v5-color-gray-300, #e6e8eb);}.hi-v5-tabs__list--placement-horizontal.hi-v5-tabs__list--type-card .hi-v5-tabs__list--scroll {border-radius: var(--hi-v5-border-radius-lg, 6px) var(--hi-v5-border-radius-lg, 6px) 0 0;overflow: hidden;}.hi-v5-tabs--placement-vertical {display: -webkit-box;display: -ms-flexbox;display: flex;}.hi-v5-tabs--placement-vertical > .hi-v5-tabs__content {-webkit-padding-start: 16px;padding-inline-start: 16px;-webkit-padding-before: 0;padding-block-start: 0;}.hi-v5-tabs--placement-vertical > .hi-v5-tabs__list {-ms-flex-negative: 0;flex-shrink: 0;-webkit-box-orient: vertical;-webkit-box-direction: normal;-ms-flex-direction: column;flex-direction: column;}.hi-v5-tabs--placement-vertical > .hi-v5-tabs__list.hi-v5-tabs__list--type-desc .hi-v5-tabs-item__title {color: var(--hi-v5-color-gray-800, #1a1d26);line-height: var(--hi-v5-text-lineheight-sm, 1.25rem);}.hi-v5-tabs--placement-vertical > .hi-v5-tabs__list.hi-v5-tabs__list--type-desc .hi-v5-tabs-item__desc {color: var(--hi-v5-color-gray-600, #91959e);font-size: var(--hi-v5-text-size-sm, 0.75rem);line-height: var(--hi-v5-text-lineheight-sm, 1.25rem);}.hi-v5-tabs--placement-vertical > .hi-v5-tabs__list.hi-v5-tabs__list--type-desc .hi-v5-tabs__item {display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-orient: vertical;-webkit-box-direction: normal;-ms-flex-direction: column;flex-direction: column;-webkit-box-align: center;-ms-flex-align: center;align-items: center;padding: var(--hi-v5-spacing-8, 16px);border-radius: var(--hi-v5-border-radius-lg, 6px);-webkit-transition: all 0.3s;transition: all 0.3s;background: var(--hi-v5-color-gray-100, #f2f4f7);}.hi-v5-tabs--placement-vertical > .hi-v5-tabs__list.hi-v5-tabs__list--type-desc .hi-v5-tabs__item:not(:where(.hi-v5-tabs__item--active, .hi-v5-tabs__item--disabled)):hover {background-color: var(--hi-v5-color-gray-300, #e6e8eb);color: var(--hi-v5-color-gray-600, #91959e);}.hi-v5-tabs--placement-vertical > .hi-v5-tabs__list.hi-v5-tabs__list--type-desc .hi-v5-tabs__item--active {color: var(--hi-v5-color-primary-500, var(--hi-v5-color-brandblue-500, #2660ff));background-color: var(--hi-v5-color-primary-50, var(--hi-v5-color-brandblue-50, #edf2ff));}.hi-v5-tabs--placement-vertical > .hi-v5-tabs__list.hi-v5-tabs__list--type-desc .hi-v5-tabs__item--active .hi-v5-tabs-item__title {color: var(--hi-v5-color-primary-500, var(--hi-v5-color-brandblue-500, #2660ff));}.hi-v5-tabs--placement-vertical > .hi-v5-tabs__list.hi-v5-tabs__list--type-desc .hi-v5-tabs__item--active .hi-v5-tabs-item__desc {color: var(--hi-v5-color-primary-500, var(--hi-v5-color-brandblue-500, #2660ff));}.hi-v5-tabs--placement-vertical > .hi-v5-tabs__list.hi-v5-tabs__list--type-desc .hi-v5-tabs__list--scroll {row-gap: var(--hi-v5-spacing-6, 12px);}.hi-v5-tabs--placement-vertical > .hi-v5-tabs__list.hi-v5-tabs__list--type-card .hi-v5-tabs__list--scroll {border-radius: var(--hi-v5-border-radius-lg, 6px) 0 0 var(--hi-v5-border-radius-lg, 6px);overflow: hidden;}.hi-v5-tabs--placement-vertical > .hi-v5-tabs__list.hi-v5-tabs__list--type-card .hi-v5-tabs__item {margin: 0;padding: var(--hi-v5-spacing-5, 10px) var(--hi-v5-spacing-8, 16px);background-color: var(--hi-v5-color-gray-100, #f2f4f7);border-radius: 0;-webkit-transition: all 0.3s;transition: all 0.3s;line-height: var(--hi-v5-text-lineheight-sm, 1.25rem);}.hi-v5-tabs--placement-vertical > .hi-v5-tabs__list.hi-v5-tabs__list--type-card .hi-v5-tabs__item--active {color: var(--hi-v5-color-primary-500, var(--hi-v5-color-brandblue-500, #2660ff));background-color: var(--hi-v5-color-static-white, #fff);}.hi-v5-tabs--placement-vertical > .hi-v5-tabs__list.hi-v5-tabs__list--type-button .hi-v5-tabs__item {margin: 0 0 var(--hi-v5-spacing-2, 4px) 0;padding: var(--hi-v5-spacing-2, 4px) var(--hi-v5-spacing-6, 12px);border-radius: var(--hi-v5-border-radius-lg, 6px);-webkit-transition: all 0.3s;transition: all 0.3s;}.hi-v5-tabs--placement-vertical > .hi-v5-tabs__list.hi-v5-tabs__list--type-button .hi-v5-tabs__item:not(:where(.hi-v5-tabs__item--active, .hi-v5-tabs__item--disabled)):hover {background-color: var(--hi-v5-color-gray-300, #e6e8eb);color: var(--hi-v5-color-gray-600, #91959e);}.hi-v5-tabs--placement-vertical > .hi-v5-tabs__list.hi-v5-tabs__list--type-button .hi-v5-tabs__item--active {color: var(--hi-v5-color-primary-500, var(--hi-v5-color-brandblue-500, #2660ff));background-color: var(--hi-v5-color-primary-50, var(--hi-v5-color-brandblue-50, #edf2ff));}.hi-v5-tabs--placement-vertical > .hi-v5-tabs__list.hi-v5-tabs__list--type-button .hi-v5-tabs__list--scroll {row-gap: var(--hi-v5-spacing-2, 4px);}.hi-v5-tabs--placement-vertical > .hi-v5-tabs__list .hi-v5-tabs__list--inner {width: auto;display: block;position: relative;}.hi-v5-tabs--placement-vertical > .hi-v5-tabs__list .hi-v5-tabs__list--scroll {-webkit-box-orient: vertical;-webkit-box-direction: normal;-ms-flex-direction: column;flex-direction: column;position: relative;}.hi-v5-tabs--placement-vertical > .hi-v5-tabs__list .hi-v5-tabs__item {line-height: var(--hi-v5-text-lineheight-lg, 1.5rem);padding: var(--hi-v5-spacing-4, 8px) var(--hi-v5-spacing-10, 20px);margin: 0;-webkit-transition: all 0.2s cubic-bezier(0.34, 0.69, 0.1, 1);transition: all 0.2s cubic-bezier(0.34, 0.69, 0.1, 1);}.hi-v5-tabs--placement-vertical > .hi-v5-tabs__list .hi-v5-tabs__item::after {display: none;}.hi-v5-tabs--placement-vertical > .hi-v5-tabs__list .hi-v5-tabs__item--prev {-webkit-border-before: 1px dashed var(--hi-v5-color-primary-500, var(--hi-v5-color-brandblue-500, #2660ff));border-block-start: 1px dashed var(--hi-v5-color-primary-500, var(--hi-v5-color-brandblue-500, #2660ff));-webkit-border-start: none;border-inline-start: none;}.hi-v5-tabs--placement-vertical > .hi-v5-tabs__list .hi-v5-tabs__item--next {-webkit-border-after: 1px dashed var(--hi-v5-color-primary-500, var(--hi-v5-color-brandblue-500, #2660ff));border-block-end: 1px dashed var(--hi-v5-color-primary-500, var(--hi-v5-color-brandblue-500, #2660ff));-webkit-border-end: none;border-inline-end: none;}.hi-v5-tabs--placement-vertical > .hi-v5-tabs__list .hi-v5-tabs__ink {position: absolute;inset-inline-start: 0;inset-block-end: auto;width: 2px;background-color: var(--hi-v5-color-primary-500, var(--hi-v5-color-brandblue-500, #2660ff));-webkit-transition: inset-block-start 0.2s cubic-bezier(0.34, 0.69, 0.1, 1), height 0.2s cubic-bezier(0.34, 0.69, 0.1, 1);transition: inset-block-start 0.2s cubic-bezier(0.34, 0.69, 0.1, 1), height 0.2s cubic-bezier(0.34, 0.69, 0.1, 1);}.hi-v5-tabs__ink {position: absolute;inset-block-end: 0;inset-inline-end: auto;inset-block-start: auto;height: 3px;border-start-start-radius: 3px;border-start-end-radius: 3px;background-color: var(--hi-v5-color-primary-500, var(--hi-v5-color-brandblue-500, #2660ff));-webkit-transition: inset-inline-start 0.2s cubic-bezier(0.34, 0.69, 0.1, 1), width 0.2s cubic-bezier(0.34, 0.69, 0.1, 1);transition: inset-inline-start 0.2s cubic-bezier(0.34, 0.69, 0.1, 1), width 0.2s cubic-bezier(0.34, 0.69, 0.1, 1);}.hi-v5-tabs__item {line-height: var(--hi-v5-text-lineheight-lg, 1.5rem);padding: var(--hi-v5-spacing-4, 8px) var(--hi-v5-spacing-10, 20px);margin: 0;cursor: pointer;-ms-flex-negative: 0;flex-shrink: 0;-webkit-transition: all 0.2s cubic-bezier(0.34, 0.69, 0.1, 1);transition: all 0.2s cubic-bezier(0.34, 0.69, 0.1, 1);}.hi-v5-tabs__item:focus {outline: 0;}.hi-v5-tabs__item:not(.hi-v5-tabs__item--disabled):hover {color: var(--hi-v5-color-primary-500, var(--hi-v5-color-brandblue-500, #2660ff));}.hi-v5-tabs__item--active {color: var(--hi-v5-color-primary-500, var(--hi-v5-color-brandblue-500, #2660ff));}.hi-v5-tabs__item--prev {-webkit-border-start: 1px dashed var(--hi-v5-color-primary-500, var(--hi-v5-color-brandblue-500, #2660ff));border-inline-start: 1px dashed var(--hi-v5-color-primary-500, var(--hi-v5-color-brandblue-500, #2660ff));}.hi-v5-tabs__item--next {-webkit-border-end: 1px dashed var(--hi-v5-color-primary-500, var(--hi-v5-color-brandblue-500, #2660ff));border-inline-end: 1px dashed var(--hi-v5-color-primary-500, var(--hi-v5-color-brandblue-500, #2660ff));}.hi-v5-tabs__item--disabled, .hi-v5-tabs__item--disabled .hi-v5-tabs__close-btn {color: var(--hi-v5-color-gray-500, #babcc2);cursor: not-allowed;}.hi-v5-tabs__item:not(.hi-v5-tabs__item--active) {overflow: hidden;white-space: nowrap;text-overflow: ellipsis;}.hi-v5-tabs__content {width: 100%;overflow: hidden;-webkit-padding-before: var(--hi-v5-spacing-8, 16px);padding-block-start: var(--hi-v5-spacing-8, 16px);-webkit-box-sizing: border-box;box-sizing: border-box;}.hi-v5-tabs-tab-pane--hide {display: none;}";
16
16
  var __styleInject__ = require('@hi-ui/style-inject')["default"];
17
17
  __styleInject__(css_248z);
18
18
  exports["default"] = css_248z;
@@ -13,6 +13,7 @@ import React, { forwardRef, useState, useRef, useEffect, useCallback, useMemo }
13
13
  import { cx } from '@hi-ui/classname';
14
14
  import { __DEV__ } from '@hi-ui/env';
15
15
  import { CloseOutlined } from '@hi-ui/icons';
16
+ import { Button } from '@hi-ui/button';
16
17
  import { Input } from '@hi-ui/input';
17
18
  import { Tooltip } from '@hi-ui/tooltip';
18
19
  var TabItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
@@ -128,8 +129,12 @@ var TabItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
128
129
  });
129
130
  }
130
131
  if (closeable && !editRender) {
131
- return /*#__PURE__*/React.createElement("span", {
132
+ return /*#__PURE__*/React.createElement(Button, {
132
133
  className: prefixCls + "__close-btn",
134
+ type: active ? 'primary' : 'default',
135
+ size: "xs",
136
+ appearance: "link",
137
+ icon: /*#__PURE__*/React.createElement(CloseOutlined, null),
133
138
  onClick: function onClick(evt) {
134
139
  evt.stopPropagation();
135
140
  if (onDelete) {
@@ -139,7 +144,7 @@ var TabItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
139
144
  }, evt);
140
145
  }
141
146
  }
142
- }, /*#__PURE__*/React.createElement(CloseOutlined, null));
147
+ });
143
148
  }
144
149
  }
145
150
  return null;