react-tab-component-pure-js
Advanced tools
Comparing version 1.0.8 to 1.0.9
import React from "react"; | ||
interface TabProps { | ||
tabList: { | ||
tabList?: { | ||
name: string; | ||
Component: React.FC; | ||
}[]; | ||
currentTabIndex: number; | ||
tabClickHandler: (index: number) => void; | ||
selectTabClass: string; | ||
unselectedTabClass: string; | ||
tabContainerClass: string; | ||
tabOptionsClass: string; | ||
currentTabIndex?: number; | ||
tabClickHandler?: (index: number) => void; | ||
selectTabClass?: string; | ||
unselectedTabClass?: string; | ||
tabContainerClass?: string; | ||
tabOptionsClass?: string; | ||
} | ||
export declare const Tab: React.FC<TabProps>; | ||
export {}; |
@@ -19,9 +19,16 @@ "use strict"; | ||
var Tab = function Tab(_a) { | ||
var tabList = _a.tabList, | ||
currentTabIndex = _a.currentTabIndex, | ||
tabClickHandler = _a.tabClickHandler, | ||
selectTabClass = _a.selectTabClass, | ||
unselectedTabClass = _a.unselectedTabClass, | ||
tabContainerClass = _a.tabContainerClass, | ||
tabOptionsClass = _a.tabOptionsClass; | ||
var _b = _a.tabList, | ||
tabList = _b === void 0 ? [] : _b, | ||
_c = _a.currentTabIndex, | ||
currentTabIndex = _c === void 0 ? 0 : _c, | ||
_d = _a.tabClickHandler, | ||
tabClickHandler = _d === void 0 ? function () {} : _d, | ||
_e = _a.selectTabClass, | ||
selectTabClass = _e === void 0 ? "" : _e, | ||
_f = _a.unselectedTabClass, | ||
unselectedTabClass = _f === void 0 ? "" : _f, | ||
_g = _a.tabContainerClass, | ||
tabContainerClass = _g === void 0 ? "" : _g, | ||
_h = _a.tabOptionsClass, | ||
tabOptionsClass = _h === void 0 ? "" : _h; | ||
return (0, jsx_runtime_1.jsxs)("div", __assign({ | ||
@@ -28,0 +35,0 @@ className: tabContainerClass |
{ | ||
"name": "react-tab-component-pure-js", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"repository": { | ||
@@ -34,2 +34,3 @@ "type": "git", | ||
"react", | ||
"react-component", | ||
"tabs", | ||
@@ -46,3 +47,6 @@ "tab-component", | ||
"author": "Anup Agarwal", | ||
"license": "MIT" | ||
"license": "MIT", | ||
"engines": { | ||
"node": ">=12.0.0" | ||
} | ||
} |
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
6383
85