@hi-ui/tabs 5.0.0-canary.8 → 5.0.0-experimental.0
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 +71 -92
- package/lib/cjs/TabItem.js +7 -2
- package/lib/cjs/TabList.js +13 -7
- package/lib/cjs/styles/index.scss.js +1 -1
- package/lib/esm/TabItem.js +7 -2
- package/lib/esm/TabList.js +11 -5
- package/lib/esm/styles/index.scss.js +1 -1
- package/lib/types/TabItem.d.ts +1 -1
- package/lib/types/index.d.ts +0 -1
- package/package.json +17 -15
- package/lib/cjs/hooks/use-id/lib/esm/index.js +0 -34
- package/lib/cjs/hooks/use-id/node_modules/uuid/dist/esm-browser/regex.js +0 -16
- package/lib/cjs/hooks/use-id/node_modules/uuid/dist/esm-browser/rng.js +0 -33
- package/lib/cjs/hooks/use-id/node_modules/uuid/dist/esm-browser/stringify.js +0 -41
- package/lib/cjs/hooks/use-id/node_modules/uuid/dist/esm-browser/v4.js +0 -33
- package/lib/cjs/hooks/use-id/node_modules/uuid/dist/esm-browser/validate.js +0 -19
- package/lib/esm/hooks/use-id/lib/esm/index.js +0 -29
- package/lib/esm/hooks/use-id/node_modules/uuid/dist/esm-browser/regex.js +0 -11
- package/lib/esm/hooks/use-id/node_modules/uuid/dist/esm-browser/rng.js +0 -27
- package/lib/esm/hooks/use-id/node_modules/uuid/dist/esm-browser/stringify.js +0 -36
- package/lib/esm/hooks/use-id/node_modules/uuid/dist/esm-browser/v4.js +0 -28
- package/lib/esm/hooks/use-id/node_modules/uuid/dist/esm-browser/validate.js +0 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,105 +1,84 @@
|
|
|
1
1
|
# @hi-ui/tabs
|
|
2
2
|
|
|
3
|
-
## 5.0.0-
|
|
4
|
-
|
|
5
|
-
### Patch Changes
|
|
6
|
-
|
|
7
|
-
- bf65028e6: style: 修改 UI (5.0)
|
|
8
|
-
|
|
9
|
-
## 5.0.0-canary.7
|
|
10
|
-
|
|
11
|
-
### Patch Changes
|
|
12
|
-
|
|
13
|
-
- chore: rebase master (5.0)
|
|
14
|
-
- Updated dependencies
|
|
15
|
-
- @hi-ui/core@5.0.0-canary.2
|
|
16
|
-
- @hi-ui/use-latest@5.0.0-canary.2
|
|
17
|
-
- @hi-ui/use-uncontrolled-state@5.0.0-canary.2
|
|
18
|
-
- @hi-ui/use-unmount-effect@5.0.0-canary.2
|
|
19
|
-
- @hi-ui/icons@5.0.0-canary.2
|
|
20
|
-
- @hi-ui/icon-button@5.0.0-canary.2
|
|
21
|
-
- @hi-ui/input@5.0.0-canary.7
|
|
22
|
-
- @hi-ui/tooltip@5.0.0-canary.3
|
|
23
|
-
- @hi-ui/classname@5.0.0-canary.2
|
|
24
|
-
- @hi-ui/env@5.0.0-canary.2
|
|
25
|
-
- @hi-ui/react-utils@5.0.0-canary.2
|
|
26
|
-
- @hi-ui/type-assertion@5.0.0-canary.2
|
|
27
|
-
|
|
28
|
-
## 5.0.0-canary.6
|
|
29
|
-
|
|
30
|
-
### Patch Changes
|
|
31
|
-
|
|
32
|
-
- 4b09e728b: build: 将 package.json 中 exports 配置中的 types 配置放在最上面 (5.0)
|
|
33
|
-
- Updated dependencies [4b09e728b]
|
|
34
|
-
- @hi-ui/core@5.0.0-canary.1
|
|
35
|
-
- @hi-ui/use-latest@5.0.0-canary.1
|
|
36
|
-
- @hi-ui/use-uncontrolled-state@5.0.0-canary.1
|
|
37
|
-
- @hi-ui/use-unmount-effect@5.0.0-canary.1
|
|
38
|
-
- @hi-ui/icons@5.0.0-canary.1
|
|
39
|
-
- @hi-ui/icon-button@5.0.0-canary.1
|
|
40
|
-
- @hi-ui/input@5.0.0-canary.6
|
|
41
|
-
- @hi-ui/tooltip@5.0.0-canary.2
|
|
42
|
-
- @hi-ui/classname@5.0.0-canary.1
|
|
43
|
-
- @hi-ui/env@5.0.0-canary.1
|
|
44
|
-
- @hi-ui/react-utils@5.0.0-canary.1
|
|
45
|
-
- @hi-ui/type-assertion@5.0.0-canary.1
|
|
46
|
-
|
|
47
|
-
## 5.0.0-canary.5
|
|
48
|
-
|
|
49
|
-
### Minor Changes
|
|
50
|
-
|
|
51
|
-
- 49d1c53c4: feat(tabs): 支持拖拽 (5.0)
|
|
52
|
-
|
|
53
|
-
## 5.0.0-canary.4
|
|
54
|
-
|
|
55
|
-
### Minor Changes
|
|
56
|
-
|
|
57
|
-
- 2cb0427df: feat(tabs): add editRender api (5.0)
|
|
58
|
-
|
|
59
|
-
## 5.0.0-canary.3
|
|
60
|
-
|
|
61
|
-
### Minor Changes
|
|
62
|
-
|
|
63
|
-
- affc96a20: feat(tabs): 支持编辑功能和设置最大标题宽度 (5.0)
|
|
64
|
-
|
|
65
|
-
## 5.0.0-canary.2
|
|
66
|
-
|
|
67
|
-
### Patch Changes
|
|
68
|
-
|
|
69
|
-
- c3a7005b0: style: 修改 UI 问题 (5.0)
|
|
70
|
-
|
|
71
|
-
## 5.0.0-canary.1
|
|
72
|
-
|
|
73
|
-
### Minor Changes
|
|
74
|
-
|
|
75
|
-
- 3903bd4ff: feat(tabs): 增加 showDivider 参数 (5.0)
|
|
76
|
-
|
|
77
|
-
## 5.0.0-canary.0
|
|
3
|
+
## 5.0.0-experimental.0
|
|
78
4
|
|
|
79
5
|
### Major Changes
|
|
80
6
|
|
|
81
|
-
-
|
|
7
|
+
- 8f3aa85e4: feat: 组件的 package.json 中的 exports 统一加上 types 配置 (5.0)
|
|
82
8
|
|
|
83
9
|
### Minor Changes
|
|
84
10
|
|
|
85
|
-
-
|
|
11
|
+
- 0b34e1c15: feat(tabs): 支持拖拽 (5.0)
|
|
12
|
+
- a0fdb0ad1: <br>
|
|
86
13
|
- feat(tabs): 增加 size 参数 (5.0)
|
|
87
14
|
- feat(tabs): 修改标签选中下标样式 (5.0)
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
15
|
+
- 6bb4d999c: feat(tabs): 支持编辑功能和设置最大标题宽度 (5.0)
|
|
16
|
+
- 120f6b15a: feat(tabs): add editRender api (5.0)
|
|
17
|
+
- 9b34d99bc: feat(tabs): 增加 showDivider 参数 (5.0)
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- 1662753e0: style: fix ui bug (5.0)
|
|
22
|
+
- 8c0ee78f0: perf: 优化全局 size 配置,对于组件中没有的 size 值,取最接近的尺寸展示 (5.0)
|
|
23
|
+
- be5a59325: style: 修改样式问题 (5.0)
|
|
24
|
+
- 2e56529f7: styles: 主题定制功能完善&&样式变量化写法改造&&兼容 RTL (5.0)
|
|
25
|
+
- e2d184e74: style: 修改 UI 问题 (5.0)
|
|
26
|
+
- 33da3144e: build: 将 package.json 中 exports 配置中的 types 配置放在最上面 (5.0)
|
|
27
|
+
- 7f3abee55: style: fix ui bug (5.0)
|
|
28
|
+
- a0f0c9d6b: style: 修改 UI 问题 (5.0)
|
|
29
|
+
- 86910f5e2: style: 修改 UI (5.0)
|
|
30
|
+
- Updated dependencies [6fb223e3a]
|
|
31
|
+
- Updated dependencies [da2e63a14]
|
|
32
|
+
- Updated dependencies [1e226cd66]
|
|
33
|
+
- Updated dependencies [eea29eade]
|
|
34
|
+
- Updated dependencies [1662753e0]
|
|
35
|
+
- Updated dependencies [122d1d859]
|
|
36
|
+
- Updated dependencies [f1ab51725]
|
|
37
|
+
- Updated dependencies [41552be0b]
|
|
38
|
+
- Updated dependencies [8c0ee78f0]
|
|
39
|
+
- Updated dependencies [9b34d99bc]
|
|
40
|
+
- Updated dependencies [8f3aa85e4]
|
|
41
|
+
- Updated dependencies [f4fc0ef30]
|
|
42
|
+
- Updated dependencies [c021539a3]
|
|
43
|
+
- Updated dependencies [ec4c7faa2]
|
|
44
|
+
- Updated dependencies [29cae09ea]
|
|
45
|
+
- Updated dependencies [fd4c20bbd]
|
|
46
|
+
- Updated dependencies [be5a59325]
|
|
47
|
+
- Updated dependencies [71fc15e5c]
|
|
48
|
+
- Updated dependencies [79ea480f3]
|
|
49
|
+
- Updated dependencies [2e56529f7]
|
|
50
|
+
- Updated dependencies [8a92ec660]
|
|
51
|
+
- Updated dependencies [1429eced2]
|
|
52
|
+
- Updated dependencies [9b34d99bc]
|
|
53
|
+
- Updated dependencies [976ec929d]
|
|
54
|
+
- Updated dependencies [d021b4fa6]
|
|
55
|
+
- Updated dependencies [f1ab51725]
|
|
56
|
+
- Updated dependencies [6dca7795c]
|
|
57
|
+
- Updated dependencies [77d969c2e]
|
|
58
|
+
- Updated dependencies [4006b2c8c]
|
|
59
|
+
- Updated dependencies [e42e2badf]
|
|
60
|
+
- Updated dependencies [33da3144e]
|
|
61
|
+
- Updated dependencies [0a8cc07a7]
|
|
62
|
+
- Updated dependencies [7f3abee55]
|
|
63
|
+
- Updated dependencies [6fcda9bf2]
|
|
64
|
+
- Updated dependencies [58ad82e94]
|
|
65
|
+
- Updated dependencies [a0f0c9d6b]
|
|
66
|
+
- Updated dependencies [99801c2d1]
|
|
67
|
+
- Updated dependencies [86910f5e2]
|
|
68
|
+
- @hi-ui/tooltip@5.0.0-experimental.0
|
|
69
|
+
- @hi-ui/input@5.0.0-experimental.0
|
|
70
|
+
- @hi-ui/button@5.0.0-experimental.0
|
|
71
|
+
- @hi-ui/icons@5.0.0-experimental.0
|
|
72
|
+
- @hi-ui/icon-button@5.0.0-experimental.0
|
|
73
|
+
- @hi-ui/core@5.0.0-experimental.0
|
|
74
|
+
- @hi-ui/use-id@5.0.0-experimental.0
|
|
75
|
+
- @hi-ui/use-latest@5.0.0-experimental.0
|
|
76
|
+
- @hi-ui/use-uncontrolled-state@5.0.0-experimental.0
|
|
77
|
+
- @hi-ui/use-unmount-effect@5.0.0-experimental.0
|
|
78
|
+
- @hi-ui/classname@5.0.0-experimental.0
|
|
79
|
+
- @hi-ui/env@5.0.0-experimental.0
|
|
80
|
+
- @hi-ui/react-utils@5.0.0-experimental.0
|
|
81
|
+
- @hi-ui/type-assertion@5.0.0-experimental.0
|
|
103
82
|
|
|
104
83
|
## 4.2.0
|
|
105
84
|
|
package/lib/cjs/TabItem.js
CHANGED
|
@@ -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(
|
|
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
|
-
}
|
|
160
|
+
});
|
|
156
161
|
}
|
|
157
162
|
}
|
|
158
163
|
return null;
|
package/lib/cjs/TabList.js
CHANGED
|
@@ -24,11 +24,12 @@ 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');
|
|
27
28
|
var index = require('./hooks/index.js');
|
|
28
29
|
var useLatest = require('@hi-ui/use-latest');
|
|
29
30
|
var index$1 = require('./utils/index.js');
|
|
30
31
|
var input = require('@hi-ui/input');
|
|
31
|
-
var
|
|
32
|
+
var useId = require('@hi-ui/use-id');
|
|
32
33
|
function _interopDefaultCompat(e) {
|
|
33
34
|
return e && _typeof(e) === 'object' && 'default' in e ? e : {
|
|
34
35
|
'default': e
|
|
@@ -40,7 +41,7 @@ var _role = 'tabs';
|
|
|
40
41
|
var _prefix = classname.getPrefixCls(_role);
|
|
41
42
|
var TabList = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
42
43
|
var _cx, _cx2, _cx3, _cx4;
|
|
43
|
-
var _b;
|
|
44
|
+
var _b, _c;
|
|
44
45
|
var data = _a.data,
|
|
45
46
|
className = _a.className,
|
|
46
47
|
style = _a.style,
|
|
@@ -67,13 +68,18 @@ var TabList = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
67
68
|
onDragEnd = _a.onDragEnd,
|
|
68
69
|
_a$type = _a.type,
|
|
69
70
|
type = _a$type === void 0 ? 'line' : _a$type,
|
|
70
|
-
|
|
71
|
-
size = _a$size === void 0 ? 'md' : _a$size,
|
|
71
|
+
sizeProp = _a.size,
|
|
72
72
|
showDivider = _a.showDivider,
|
|
73
73
|
extra = _a.extra,
|
|
74
74
|
maxTabTitleWidth = _a.maxTabTitleWidth,
|
|
75
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
|
|
76
|
+
var _useGlobalContext = core.useGlobalContext(),
|
|
77
|
+
globalSize = _useGlobalContext.size;
|
|
78
|
+
var size = (_b = sizeProp !== null && sizeProp !== void 0 ? sizeProp : globalSize) !== null && _b !== void 0 ? _b : 'md';
|
|
79
|
+
if (size === 'xs') {
|
|
80
|
+
size = 'sm';
|
|
81
|
+
}
|
|
82
|
+
var direction = (_c = placement !== null && placement !== void 0 ? placement : directionProp) !== null && _c !== void 0 ? _c : 'horizontal';
|
|
77
83
|
var _useUncontrolledState = useUncontrolledState.useUncontrolledState(function () {
|
|
78
84
|
if (typeAssertion.isUndef(defaultActiveId)) {
|
|
79
85
|
return data[0] ? data[0].tabId : '';
|
|
@@ -215,7 +221,7 @@ var TabList = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
215
221
|
setAdding(false);
|
|
216
222
|
return _context.abrupt("return");
|
|
217
223
|
case 4:
|
|
218
|
-
newTabId =
|
|
224
|
+
newTabId = useId.uuid();
|
|
219
225
|
newTab = {
|
|
220
226
|
tabId: newTabId,
|
|
221
227
|
tabTitle: newTabTitle
|
|
@@ -301,7 +307,7 @@ var TabList = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
301
307
|
});
|
|
302
308
|
if (!currentTab) return;
|
|
303
309
|
var copiedTab = {
|
|
304
|
-
tabId: currentTab.tabId + "-" +
|
|
310
|
+
tabId: currentTab.tabId + "-" + useId.uuid(),
|
|
305
311
|
tabTitle: currentTab.tabTitle
|
|
306
312
|
};
|
|
307
313
|
var insertIndex = targetIndex !== null && targetIndex !== void 0 ? targetIndex : showData.length;
|
|
@@ -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--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-horizontal .hi-v5-tabs__list.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;
|
package/lib/esm/TabItem.js
CHANGED
|
@@ -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(
|
|
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
|
-
}
|
|
147
|
+
});
|
|
143
148
|
}
|
|
144
149
|
}
|
|
145
150
|
return null;
|
package/lib/esm/TabList.js
CHANGED
|
@@ -18,16 +18,17 @@ import { TabInk } from './TabInk.js';
|
|
|
18
18
|
import { LeftOutlined, UpOutlined, RightOutlined, DownOutlined, PlusOutlined } from '@hi-ui/icons';
|
|
19
19
|
import { isUndef, isArrayNonEmpty } from '@hi-ui/type-assertion';
|
|
20
20
|
import { IconButton } from '@hi-ui/icon-button';
|
|
21
|
+
import { useGlobalContext } from '@hi-ui/core';
|
|
21
22
|
import { useResizeObserver } from './hooks/index.js';
|
|
22
23
|
import { useLatestCallback } from '@hi-ui/use-latest';
|
|
23
24
|
import { getNextTabId } from './utils/index.js';
|
|
24
25
|
import { Input } from '@hi-ui/input';
|
|
25
|
-
import { uuid } from '
|
|
26
|
+
import { uuid } from '@hi-ui/use-id';
|
|
26
27
|
var _role = 'tabs';
|
|
27
28
|
var _prefix = getPrefixCls(_role);
|
|
28
29
|
var TabList = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
29
30
|
var _cx, _cx2, _cx3, _cx4;
|
|
30
|
-
var _b;
|
|
31
|
+
var _b, _c;
|
|
31
32
|
var data = _a.data,
|
|
32
33
|
className = _a.className,
|
|
33
34
|
style = _a.style,
|
|
@@ -54,13 +55,18 @@ var TabList = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
54
55
|
onDragEnd = _a.onDragEnd,
|
|
55
56
|
_a$type = _a.type,
|
|
56
57
|
type = _a$type === void 0 ? 'line' : _a$type,
|
|
57
|
-
|
|
58
|
-
size = _a$size === void 0 ? 'md' : _a$size,
|
|
58
|
+
sizeProp = _a.size,
|
|
59
59
|
showDivider = _a.showDivider,
|
|
60
60
|
extra = _a.extra,
|
|
61
61
|
maxTabTitleWidth = _a.maxTabTitleWidth,
|
|
62
62
|
rest = __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"]);
|
|
63
|
-
var
|
|
63
|
+
var _useGlobalContext = useGlobalContext(),
|
|
64
|
+
globalSize = _useGlobalContext.size;
|
|
65
|
+
var size = (_b = sizeProp !== null && sizeProp !== void 0 ? sizeProp : globalSize) !== null && _b !== void 0 ? _b : 'md';
|
|
66
|
+
if (size === 'xs') {
|
|
67
|
+
size = 'sm';
|
|
68
|
+
}
|
|
69
|
+
var direction = (_c = placement !== null && placement !== void 0 ? placement : directionProp) !== null && _c !== void 0 ? _c : 'horizontal';
|
|
64
70
|
var _useUncontrolledState = useUncontrolledState(function () {
|
|
65
71
|
if (isUndef(defaultActiveId)) {
|
|
66
72
|
return data[0] ? data[0].tabId : '';
|
|
@@ -8,6 +8,6 @@
|
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
9
|
*/
|
|
10
10
|
import __styleInject__ from '@hi-ui/style-inject';
|
|
11
|
-
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--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-horizontal .hi-v5-tabs__list.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;}";
|
|
11
|
+
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;}";
|
|
12
12
|
__styleInject__(css_248z);
|
|
13
13
|
export { css_248z as default };
|
package/lib/types/TabItem.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TabPaneProps } from './TabPane';
|
|
3
3
|
export declare const TabItem: React.ForwardRefExoticComponent<TabItemProps & React.RefAttributes<HTMLDivElement | null>>;
|
|
4
|
-
export
|
|
4
|
+
export type EditActions = {
|
|
5
5
|
copy: (targetIndex?: number) => void;
|
|
6
6
|
edit: () => void;
|
|
7
7
|
delete: () => void;
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import './styles/index.scss';
|
|
3
2
|
declare const Tabs: import("react").ForwardRefExoticComponent<import("./Tabs").TabsProps & import("react").RefAttributes<HTMLDivElement | null>> & {
|
|
4
3
|
Pane: import("react").FC<import("./TabPane").TabPaneProps>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hi-ui/tabs",
|
|
3
|
-
"version": "5.0.0-
|
|
3
|
+
"version": "5.0.0-experimental.0",
|
|
4
4
|
"description": "A sub-package for @hi-ui/hiui.",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "HiUI <mi-hiui@xiaomi.com>",
|
|
@@ -44,26 +44,28 @@
|
|
|
44
44
|
"url": "https://github.com/XiaoMi/hiui/issues"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@hi-ui/
|
|
48
|
-
"@hi-ui/
|
|
49
|
-
"@hi-ui/
|
|
50
|
-
"@hi-ui/
|
|
51
|
-
"@hi-ui/
|
|
52
|
-
"@hi-ui/
|
|
53
|
-
"@hi-ui/
|
|
54
|
-
"@hi-ui/
|
|
55
|
-
"@hi-ui/
|
|
56
|
-
"@hi-ui/use-
|
|
57
|
-
"@hi-ui/use-
|
|
47
|
+
"@hi-ui/button": "^5.0.0-experimental.0",
|
|
48
|
+
"@hi-ui/classname": "^5.0.0-experimental.0",
|
|
49
|
+
"@hi-ui/env": "^5.0.0-experimental.0",
|
|
50
|
+
"@hi-ui/icon-button": "^5.0.0-experimental.0",
|
|
51
|
+
"@hi-ui/icons": "^5.0.0-experimental.0",
|
|
52
|
+
"@hi-ui/input": "^5.0.0-experimental.0",
|
|
53
|
+
"@hi-ui/react-utils": "^5.0.0-experimental.0",
|
|
54
|
+
"@hi-ui/tooltip": "^5.0.0-experimental.0",
|
|
55
|
+
"@hi-ui/type-assertion": "^5.0.0-experimental.0",
|
|
56
|
+
"@hi-ui/use-latest": "^5.0.0-experimental.0",
|
|
57
|
+
"@hi-ui/use-id": "^5.0.0-experimental.0",
|
|
58
|
+
"@hi-ui/use-uncontrolled-state": "^5.0.0-experimental.0",
|
|
59
|
+
"@hi-ui/use-unmount-effect": "^5.0.0-experimental.0"
|
|
58
60
|
},
|
|
59
61
|
"peerDependencies": {
|
|
60
|
-
"@hi-ui/core": ">=5.0.0-
|
|
62
|
+
"@hi-ui/core": ">=5.0.0-experimental.0",
|
|
61
63
|
"react": ">=16.8.6",
|
|
62
64
|
"react-dom": ">=16.8.6"
|
|
63
65
|
},
|
|
64
66
|
"devDependencies": {
|
|
65
|
-
"@hi-ui/core": "^5.0.0-
|
|
66
|
-
"@hi-ui/core-css": "^5.0.0-
|
|
67
|
+
"@hi-ui/core": "^5.0.0-experimental.0",
|
|
68
|
+
"@hi-ui/core-css": "^5.0.0-experimental.0",
|
|
67
69
|
"react": "^17.0.1",
|
|
68
70
|
"react-dom": "^17.0.1"
|
|
69
71
|
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/** @LICENSE
|
|
2
|
-
* @hi-ui/tabs
|
|
3
|
-
* https://github.com/XiaoMi/hiui/tree/master/packages/ui/tabs#readme
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) HiUI <mi-hiui@xiaomi.com>.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/
|
|
10
|
-
'use strict';
|
|
11
|
-
|
|
12
|
-
Object.defineProperty(exports, '__esModule', {
|
|
13
|
-
value: true
|
|
14
|
-
});
|
|
15
|
-
require('react');
|
|
16
|
-
var v4 = require('../../node_modules/uuid/dist/esm-browser/v4.js');
|
|
17
|
-
|
|
18
|
-
/** @LICENSE
|
|
19
|
-
* @hi-ui/use-id
|
|
20
|
-
* https://github.com/XiaoMi/hiui/tree/master/packages/hooks/use-id#readme
|
|
21
|
-
*
|
|
22
|
-
* Copyright (c) HiUI <mi-hiui@xiaomi.com>.
|
|
23
|
-
*
|
|
24
|
-
* This source code is licensed under the MIT license found in the
|
|
25
|
-
* LICENSE file in the root directory of this source tree.
|
|
26
|
-
*/
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Generate a uuid.
|
|
30
|
-
*/
|
|
31
|
-
var uuid = function uuid() {
|
|
32
|
-
return v4["default"]();
|
|
33
|
-
};
|
|
34
|
-
exports.uuid = uuid;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/** @LICENSE
|
|
2
|
-
* @hi-ui/tabs
|
|
3
|
-
* https://github.com/XiaoMi/hiui/tree/master/packages/ui/tabs#readme
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) HiUI <mi-hiui@xiaomi.com>.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/
|
|
10
|
-
'use strict';
|
|
11
|
-
|
|
12
|
-
Object.defineProperty(exports, '__esModule', {
|
|
13
|
-
value: true
|
|
14
|
-
});
|
|
15
|
-
var REGEX = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
|
|
16
|
-
exports["default"] = REGEX;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/** @LICENSE
|
|
2
|
-
* @hi-ui/tabs
|
|
3
|
-
* https://github.com/XiaoMi/hiui/tree/master/packages/ui/tabs#readme
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) HiUI <mi-hiui@xiaomi.com>.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/
|
|
10
|
-
'use strict';
|
|
11
|
-
|
|
12
|
-
Object.defineProperty(exports, '__esModule', {
|
|
13
|
-
value: true
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
// Unique ID creation requires a high quality random # generator. In the browser we therefore
|
|
17
|
-
// require the crypto API and do not support built-in fallback to lower quality random number
|
|
18
|
-
// generators (like Math.random()).
|
|
19
|
-
var getRandomValues;
|
|
20
|
-
var rnds8 = new Uint8Array(16);
|
|
21
|
-
function rng() {
|
|
22
|
-
// lazy load so that environments that need to polyfill have a chance to do so
|
|
23
|
-
if (!getRandomValues) {
|
|
24
|
-
// getRandomValues needs to be invoked in a context where "this" is a Crypto implementation. Also,
|
|
25
|
-
// find the complete implementation of crypto (msCrypto) on IE11.
|
|
26
|
-
getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto);
|
|
27
|
-
if (!getRandomValues) {
|
|
28
|
-
throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
return getRandomValues(rnds8);
|
|
32
|
-
}
|
|
33
|
-
exports["default"] = rng;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/** @LICENSE
|
|
2
|
-
* @hi-ui/tabs
|
|
3
|
-
* https://github.com/XiaoMi/hiui/tree/master/packages/ui/tabs#readme
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) HiUI <mi-hiui@xiaomi.com>.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/
|
|
10
|
-
'use strict';
|
|
11
|
-
|
|
12
|
-
Object.defineProperty(exports, '__esModule', {
|
|
13
|
-
value: true
|
|
14
|
-
});
|
|
15
|
-
var validate = require('./validate.js');
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Convert array of 16 byte values to UUID string format of the form:
|
|
19
|
-
* XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
|
|
20
|
-
*/
|
|
21
|
-
|
|
22
|
-
var byteToHex = [];
|
|
23
|
-
for (var i = 0; i < 256; ++i) {
|
|
24
|
-
byteToHex.push((i + 0x100).toString(16).substr(1));
|
|
25
|
-
}
|
|
26
|
-
function stringify(arr) {
|
|
27
|
-
var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
28
|
-
// Note: Be careful editing this code! It's been tuned for performance
|
|
29
|
-
// and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
|
|
30
|
-
var uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one
|
|
31
|
-
// of the following:
|
|
32
|
-
// - One or more input array values don't map to a hex octet (leading to
|
|
33
|
-
// "undefined" in the uuid)
|
|
34
|
-
// - Invalid input values for the RFC `version` or `variant` fields
|
|
35
|
-
|
|
36
|
-
if (!validate["default"](uuid)) {
|
|
37
|
-
throw TypeError('Stringified UUID is invalid');
|
|
38
|
-
}
|
|
39
|
-
return uuid;
|
|
40
|
-
}
|
|
41
|
-
exports["default"] = stringify;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/** @LICENSE
|
|
2
|
-
* @hi-ui/tabs
|
|
3
|
-
* https://github.com/XiaoMi/hiui/tree/master/packages/ui/tabs#readme
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) HiUI <mi-hiui@xiaomi.com>.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/
|
|
10
|
-
'use strict';
|
|
11
|
-
|
|
12
|
-
Object.defineProperty(exports, '__esModule', {
|
|
13
|
-
value: true
|
|
14
|
-
});
|
|
15
|
-
var rng = require('./rng.js');
|
|
16
|
-
var stringify = require('./stringify.js');
|
|
17
|
-
function v4(options, buf, offset) {
|
|
18
|
-
options = options || {};
|
|
19
|
-
var rnds = options.random || (options.rng || rng["default"])(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
|
|
20
|
-
|
|
21
|
-
rnds[6] = rnds[6] & 0x0f | 0x40;
|
|
22
|
-
rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
|
|
23
|
-
|
|
24
|
-
if (buf) {
|
|
25
|
-
offset = offset || 0;
|
|
26
|
-
for (var i = 0; i < 16; ++i) {
|
|
27
|
-
buf[offset + i] = rnds[i];
|
|
28
|
-
}
|
|
29
|
-
return buf;
|
|
30
|
-
}
|
|
31
|
-
return stringify["default"](rnds);
|
|
32
|
-
}
|
|
33
|
-
exports["default"] = v4;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/** @LICENSE
|
|
2
|
-
* @hi-ui/tabs
|
|
3
|
-
* https://github.com/XiaoMi/hiui/tree/master/packages/ui/tabs#readme
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) HiUI <mi-hiui@xiaomi.com>.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/
|
|
10
|
-
'use strict';
|
|
11
|
-
|
|
12
|
-
Object.defineProperty(exports, '__esModule', {
|
|
13
|
-
value: true
|
|
14
|
-
});
|
|
15
|
-
var regex = require('./regex.js');
|
|
16
|
-
function validate(uuid) {
|
|
17
|
-
return typeof uuid === 'string' && regex["default"].test(uuid);
|
|
18
|
-
}
|
|
19
|
-
exports["default"] = validate;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/** @LICENSE
|
|
2
|
-
* @hi-ui/tabs
|
|
3
|
-
* https://github.com/XiaoMi/hiui/tree/master/packages/ui/tabs#readme
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) HiUI <mi-hiui@xiaomi.com>.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/
|
|
10
|
-
import 'react';
|
|
11
|
-
import v4 from '../../node_modules/uuid/dist/esm-browser/v4.js';
|
|
12
|
-
|
|
13
|
-
/** @LICENSE
|
|
14
|
-
* @hi-ui/use-id
|
|
15
|
-
* https://github.com/XiaoMi/hiui/tree/master/packages/hooks/use-id#readme
|
|
16
|
-
*
|
|
17
|
-
* Copyright (c) HiUI <mi-hiui@xiaomi.com>.
|
|
18
|
-
*
|
|
19
|
-
* This source code is licensed under the MIT license found in the
|
|
20
|
-
* LICENSE file in the root directory of this source tree.
|
|
21
|
-
*/
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Generate a uuid.
|
|
25
|
-
*/
|
|
26
|
-
var uuid = function uuid() {
|
|
27
|
-
return v4();
|
|
28
|
-
};
|
|
29
|
-
export { uuid };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/** @LICENSE
|
|
2
|
-
* @hi-ui/tabs
|
|
3
|
-
* https://github.com/XiaoMi/hiui/tree/master/packages/ui/tabs#readme
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) HiUI <mi-hiui@xiaomi.com>.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/
|
|
10
|
-
var REGEX = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
|
|
11
|
-
export { REGEX as default };
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/** @LICENSE
|
|
2
|
-
* @hi-ui/tabs
|
|
3
|
-
* https://github.com/XiaoMi/hiui/tree/master/packages/ui/tabs#readme
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) HiUI <mi-hiui@xiaomi.com>.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/
|
|
10
|
-
// Unique ID creation requires a high quality random # generator. In the browser we therefore
|
|
11
|
-
// require the crypto API and do not support built-in fallback to lower quality random number
|
|
12
|
-
// generators (like Math.random()).
|
|
13
|
-
var getRandomValues;
|
|
14
|
-
var rnds8 = new Uint8Array(16);
|
|
15
|
-
function rng() {
|
|
16
|
-
// lazy load so that environments that need to polyfill have a chance to do so
|
|
17
|
-
if (!getRandomValues) {
|
|
18
|
-
// getRandomValues needs to be invoked in a context where "this" is a Crypto implementation. Also,
|
|
19
|
-
// find the complete implementation of crypto (msCrypto) on IE11.
|
|
20
|
-
getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto);
|
|
21
|
-
if (!getRandomValues) {
|
|
22
|
-
throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
return getRandomValues(rnds8);
|
|
26
|
-
}
|
|
27
|
-
export { rng as default };
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/** @LICENSE
|
|
2
|
-
* @hi-ui/tabs
|
|
3
|
-
* https://github.com/XiaoMi/hiui/tree/master/packages/ui/tabs#readme
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) HiUI <mi-hiui@xiaomi.com>.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/
|
|
10
|
-
import validate from './validate.js';
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Convert array of 16 byte values to UUID string format of the form:
|
|
14
|
-
* XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
var byteToHex = [];
|
|
18
|
-
for (var i = 0; i < 256; ++i) {
|
|
19
|
-
byteToHex.push((i + 0x100).toString(16).substr(1));
|
|
20
|
-
}
|
|
21
|
-
function stringify(arr) {
|
|
22
|
-
var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
23
|
-
// Note: Be careful editing this code! It's been tuned for performance
|
|
24
|
-
// and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
|
|
25
|
-
var uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one
|
|
26
|
-
// of the following:
|
|
27
|
-
// - One or more input array values don't map to a hex octet (leading to
|
|
28
|
-
// "undefined" in the uuid)
|
|
29
|
-
// - Invalid input values for the RFC `version` or `variant` fields
|
|
30
|
-
|
|
31
|
-
if (!validate(uuid)) {
|
|
32
|
-
throw TypeError('Stringified UUID is invalid');
|
|
33
|
-
}
|
|
34
|
-
return uuid;
|
|
35
|
-
}
|
|
36
|
-
export { stringify as default };
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/** @LICENSE
|
|
2
|
-
* @hi-ui/tabs
|
|
3
|
-
* https://github.com/XiaoMi/hiui/tree/master/packages/ui/tabs#readme
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) HiUI <mi-hiui@xiaomi.com>.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/
|
|
10
|
-
import rng from './rng.js';
|
|
11
|
-
import stringify from './stringify.js';
|
|
12
|
-
function v4(options, buf, offset) {
|
|
13
|
-
options = options || {};
|
|
14
|
-
var rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
|
|
15
|
-
|
|
16
|
-
rnds[6] = rnds[6] & 0x0f | 0x40;
|
|
17
|
-
rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
|
|
18
|
-
|
|
19
|
-
if (buf) {
|
|
20
|
-
offset = offset || 0;
|
|
21
|
-
for (var i = 0; i < 16; ++i) {
|
|
22
|
-
buf[offset + i] = rnds[i];
|
|
23
|
-
}
|
|
24
|
-
return buf;
|
|
25
|
-
}
|
|
26
|
-
return stringify(rnds);
|
|
27
|
-
}
|
|
28
|
-
export { v4 as default };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/** @LICENSE
|
|
2
|
-
* @hi-ui/tabs
|
|
3
|
-
* https://github.com/XiaoMi/hiui/tree/master/packages/ui/tabs#readme
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) HiUI <mi-hiui@xiaomi.com>.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/
|
|
10
|
-
import REGEX from './regex.js';
|
|
11
|
-
function validate(uuid) {
|
|
12
|
-
return typeof uuid === 'string' && REGEX.test(uuid);
|
|
13
|
-
}
|
|
14
|
-
export { validate as default };
|