Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rc-tabs

Package Overview
Dependencies
Maintainers
7
Versions
228
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-tabs - npm Package Compare versions

Comparing version 12.1.0-alpha.0 to 12.1.0-alpha.1

12

es/Tabs.js

@@ -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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc