Comparing version 12.1.0-alpha.0 to 12.1.0-alpha.1
@@ -123,11 +123,5 @@ import _extends from "@babel/runtime/helpers/esm/extends"; | ||
mergedId = _useMergedState4[0], | ||
setMergedId = _useMergedState4[1]; | ||
setMergedId = _useMergedState4[1]; // Async generate id to avoid ssr mapping failed | ||
var mergedTabPosition = tabPosition; | ||
if (mobile && !['left', 'right'].includes(tabPosition)) { | ||
mergedTabPosition = 'top'; | ||
} // Async generate id to avoid ssr mapping failed | ||
useEffect(function () { | ||
@@ -155,3 +149,3 @@ if (!id) { | ||
animated: mergedAnimated, | ||
tabPosition: mergedTabPosition, | ||
tabPosition: tabPosition, | ||
rtl: rtl, | ||
@@ -185,3 +179,3 @@ mobile: mobile | ||
id: id, | ||
className: classNames(prefixCls, "".concat(prefixCls, "-").concat(mergedTabPosition), (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-mobile"), mobile), _defineProperty(_classNames, "".concat(prefixCls, "-editable"), editable), _defineProperty(_classNames, "".concat(prefixCls, "-rtl"), rtl), _classNames), className) | ||
className: classNames(prefixCls, "".concat(prefixCls, "-").concat(tabPosition), (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-mobile"), mobile), _defineProperty(_classNames, "".concat(prefixCls, "-editable"), editable), _defineProperty(_classNames, "".concat(prefixCls, "-rtl"), rtl), _classNames), className) | ||
}, restProps), tabNavBar, /*#__PURE__*/React.createElement(TabNavListWrapper, _extends({}, tabNavBarProps, { | ||
@@ -188,0 +182,0 @@ renderTabBar: renderTabBar |
@@ -149,11 +149,5 @@ "use strict"; | ||
mergedId = _useMergedState4[0], | ||
setMergedId = _useMergedState4[1]; | ||
setMergedId = _useMergedState4[1]; // Async generate id to avoid ssr mapping failed | ||
var mergedTabPosition = tabPosition; | ||
if (mobile && !['left', 'right'].includes(tabPosition)) { | ||
mergedTabPosition = 'top'; | ||
} // Async generate id to avoid ssr mapping failed | ||
(0, React.useEffect)(function () { | ||
@@ -181,3 +175,3 @@ if (!id) { | ||
animated: mergedAnimated, | ||
tabPosition: mergedTabPosition, | ||
tabPosition: tabPosition, | ||
rtl: rtl, | ||
@@ -209,3 +203,3 @@ mobile: mobile | ||
id: id, | ||
className: (0, _classnames.default)(prefixCls, "".concat(prefixCls, "-").concat(mergedTabPosition), (_classNames = {}, (0, _defineProperty2.default)(_classNames, "".concat(prefixCls, "-mobile"), mobile), (0, _defineProperty2.default)(_classNames, "".concat(prefixCls, "-editable"), editable), (0, _defineProperty2.default)(_classNames, "".concat(prefixCls, "-rtl"), rtl), _classNames), className) | ||
className: (0, _classnames.default)(prefixCls, "".concat(prefixCls, "-").concat(tabPosition), (_classNames = {}, (0, _defineProperty2.default)(_classNames, "".concat(prefixCls, "-mobile"), mobile), (0, _defineProperty2.default)(_classNames, "".concat(prefixCls, "-editable"), editable), (0, _defineProperty2.default)(_classNames, "".concat(prefixCls, "-rtl"), rtl), _classNames), className) | ||
}, restProps), tabNavBar, /*#__PURE__*/React.createElement(_Wrapper.default, (0, _extends2.default)({}, tabNavBarProps, { | ||
@@ -212,0 +206,0 @@ renderTabBar: renderTabBar |
{ | ||
"name": "rc-tabs", | ||
"version": "12.1.0-alpha.0", | ||
"version": "12.1.0-alpha.1", | ||
"description": "tabs ui component for react", | ||
@@ -5,0 +5,0 @@ "engines": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
151592
76
3540