Comparing version 11.10.0 to 11.10.1
@@ -6,2 +6,3 @@ import _extends from "@babel/runtime/helpers/esm/extends"; | ||
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray"; | ||
import _typeof from "@babel/runtime/helpers/esm/typeof"; | ||
import * as React from 'react'; | ||
@@ -28,11 +29,18 @@ import { useState, useRef, useEffect } from 'react'; | ||
if (!extra) return null; | ||
var content; | ||
var assertExtra = extra; | ||
var content; // Parse extra | ||
var assertExtra = {}; | ||
if (extra && _typeof(extra) === 'object' && ! /*#__PURE__*/React.isValidElement(extra)) { | ||
assertExtra = extra; | ||
} else { | ||
assertExtra.right = extra; | ||
} | ||
if (position === 'right') { | ||
content = assertExtra.right || !assertExtra.left && assertExtra || null; | ||
content = assertExtra.right; | ||
} | ||
if (position === 'left') { | ||
content = assertExtra.left || null; | ||
content = assertExtra.left; | ||
} | ||
@@ -39,0 +47,0 @@ |
@@ -22,2 +22,4 @@ "use strict"; | ||
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof")); | ||
var React = _interopRequireWildcard(require("react")); | ||
@@ -56,11 +58,18 @@ | ||
if (!extra) return null; | ||
var content; | ||
var assertExtra = extra; | ||
var content; // Parse extra | ||
var assertExtra = {}; | ||
if (extra && (0, _typeof2.default)(extra) === 'object' && ! /*#__PURE__*/React.isValidElement(extra)) { | ||
assertExtra = extra; | ||
} else { | ||
assertExtra.right = extra; | ||
} | ||
if (position === 'right') { | ||
content = assertExtra.right || !assertExtra.left && assertExtra || null; | ||
content = assertExtra.right; | ||
} | ||
if (position === 'left') { | ||
content = assertExtra.left || null; | ||
content = assertExtra.left; | ||
} | ||
@@ -67,0 +76,0 @@ |
{ | ||
"name": "rc-tabs", | ||
"version": "11.10.0", | ||
"version": "11.10.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
133383
69
3323