@douyinfe/semi-ui 2.59.1 → 2.60.0-beta.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/dist/css/semi.css +9 -8
- package/dist/css/semi.min.css +1 -1
- package/dist/umd/semi-ui.js +9 -6
- package/dist/umd/semi-ui.js.map +1 -1
- package/dist/umd/semi-ui.min.js +1 -1
- package/dist/umd/semi-ui.min.js.map +1 -1
- package/lib/cjs/tabs/TabBar.js +9 -6
- package/lib/es/tabs/TabBar.js +9 -6
- package/package.json +8 -8
package/lib/cjs/tabs/TabBar.js
CHANGED
|
@@ -81,12 +81,19 @@ class TabBar extends _react.default.Component {
|
|
|
81
81
|
this.scrollTabItemIntoViewByKey(key);
|
|
82
82
|
};
|
|
83
83
|
this.renderCollapse = (items, icon, pos) => {
|
|
84
|
+
const arrowCls = (0, _classnames.default)({
|
|
85
|
+
[`${_constants.cssClasses.TABS_BAR}-arrow-${pos}`]: pos,
|
|
86
|
+
[`${_constants.cssClasses.TABS_BAR}-arrow`]: true
|
|
87
|
+
});
|
|
84
88
|
if ((0, _isEmpty2.default)(items)) {
|
|
85
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
89
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
90
|
+
role: "presentation",
|
|
91
|
+
className: arrowCls
|
|
92
|
+
}, /*#__PURE__*/_react.default.createElement(_button.default, {
|
|
86
93
|
disabled: true,
|
|
87
94
|
icon: icon,
|
|
88
95
|
theme: "borderless"
|
|
89
|
-
});
|
|
96
|
+
}));
|
|
90
97
|
}
|
|
91
98
|
const {
|
|
92
99
|
dropdownClassName,
|
|
@@ -109,10 +116,6 @@ class TabBar extends _react.default.Component {
|
|
|
109
116
|
active: this._isActive(itemKey)
|
|
110
117
|
}, panelIcon, tab);
|
|
111
118
|
}));
|
|
112
|
-
const arrowCls = (0, _classnames.default)({
|
|
113
|
-
[`${_constants.cssClasses.TABS_BAR}-arrow-${pos}`]: pos,
|
|
114
|
-
[`${_constants.cssClasses.TABS_BAR}-arrow`]: true
|
|
115
|
-
});
|
|
116
119
|
const dropdownCls = (0, _classnames.default)(dropdownClassName, {
|
|
117
120
|
[`${_constants.cssClasses.TABS_BAR}-dropdown`]: true
|
|
118
121
|
});
|
package/lib/es/tabs/TabBar.js
CHANGED
|
@@ -74,12 +74,19 @@ class TabBar extends React.Component {
|
|
|
74
74
|
this.scrollTabItemIntoViewByKey(key);
|
|
75
75
|
};
|
|
76
76
|
this.renderCollapse = (items, icon, pos) => {
|
|
77
|
+
const arrowCls = cls({
|
|
78
|
+
[`${cssClasses.TABS_BAR}-arrow-${pos}`]: pos,
|
|
79
|
+
[`${cssClasses.TABS_BAR}-arrow`]: true
|
|
80
|
+
});
|
|
77
81
|
if (_isEmpty(items)) {
|
|
78
|
-
return /*#__PURE__*/React.createElement(
|
|
82
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
83
|
+
role: "presentation",
|
|
84
|
+
className: arrowCls
|
|
85
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
79
86
|
disabled: true,
|
|
80
87
|
icon: icon,
|
|
81
88
|
theme: "borderless"
|
|
82
|
-
});
|
|
89
|
+
}));
|
|
83
90
|
}
|
|
84
91
|
const {
|
|
85
92
|
dropdownClassName,
|
|
@@ -102,10 +109,6 @@ class TabBar extends React.Component {
|
|
|
102
109
|
active: this._isActive(itemKey)
|
|
103
110
|
}, panelIcon, tab);
|
|
104
111
|
}));
|
|
105
|
-
const arrowCls = cls({
|
|
106
|
-
[`${cssClasses.TABS_BAR}-arrow-${pos}`]: pos,
|
|
107
|
-
[`${cssClasses.TABS_BAR}-arrow`]: true
|
|
108
|
-
});
|
|
109
112
|
const dropdownCls = cls(dropdownClassName, {
|
|
110
113
|
[`${cssClasses.TABS_BAR}-dropdown`]: true
|
|
111
114
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@douyinfe/semi-ui",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.60.0-beta.0",
|
|
4
4
|
"description": "A modern, comprehensive, flexible design system and UI library. Connect DesignOps & DevOps. Quickly build beautiful React apps. Maintained by Douyin-fe team.",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es/index.js",
|
|
@@ -20,12 +20,12 @@
|
|
|
20
20
|
"@dnd-kit/core": "^6.0.8",
|
|
21
21
|
"@dnd-kit/sortable": "^7.0.2",
|
|
22
22
|
"@dnd-kit/utilities": "^3.2.1",
|
|
23
|
-
"@douyinfe/semi-animation": "2.
|
|
24
|
-
"@douyinfe/semi-animation-react": "2.
|
|
25
|
-
"@douyinfe/semi-foundation": "2.
|
|
26
|
-
"@douyinfe/semi-icons": "2.
|
|
27
|
-
"@douyinfe/semi-illustrations": "2.
|
|
28
|
-
"@douyinfe/semi-theme-default": "2.
|
|
23
|
+
"@douyinfe/semi-animation": "2.60.0-beta.0",
|
|
24
|
+
"@douyinfe/semi-animation-react": "2.60.0-beta.0",
|
|
25
|
+
"@douyinfe/semi-foundation": "2.60.0-beta.0",
|
|
26
|
+
"@douyinfe/semi-icons": "2.60.0-beta.0",
|
|
27
|
+
"@douyinfe/semi-illustrations": "2.60.0-beta.0",
|
|
28
|
+
"@douyinfe/semi-theme-default": "2.60.0-beta.0",
|
|
29
29
|
"async-validator": "^3.5.0",
|
|
30
30
|
"classnames": "^2.2.6",
|
|
31
31
|
"copy-text-to-clipboard": "^2.1.1",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
],
|
|
76
76
|
"author": "",
|
|
77
77
|
"license": "MIT",
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "4091f5bc7f66ef4668aeb0c95ae64ef6bea70393",
|
|
79
79
|
"devDependencies": {
|
|
80
80
|
"@babel/plugin-proposal-decorators": "^7.15.8",
|
|
81
81
|
"@babel/plugin-transform-runtime": "^7.15.8",
|