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

react-tabs

Package Overview
Dependencies
Maintainers
2
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-tabs - npm Package Compare versions

Comparing version 0.8.2 to 0.8.3

9

dist/react-tabs.min.js

@@ -1,2 +0,7 @@

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports.ReactTabs=t(require("react"),require("react-dom")):e.ReactTabs=t(e.React,e.ReactDOM)}(this,function(e,t){return function(e){function t(a){if(r[a])return r[a].exports;var n=r[a]={exports:{},id:a,loaded:!1};return e[a].call(n.exports,n,n.exports,t),n.loaded=!0,n.exports}var r={};return t.m=e,t.c=r,t.p="",t(0)}([function(e,t,r){"use strict";function a(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.TabPanel=t.Tab=t.TabList=t.Tabs=void 0;var n=r(1),s=a(n),o=r(9),l=a(o),i=r(8),c=a(i),d=r(11),u=a(d);t.Tabs=s["default"],t.TabList=l["default"],t.Tab=c["default"],t.TabPanel=u["default"],t["default"]={Tabs:s["default"],TabList:l["default"],Tab:c["default"],TabPanel:u["default"]}},function(e,t,r){"use strict";function a(e){return e&&e.__esModule?e:{"default":e}}function n(e,t){var r={};for(var a in e)t.indexOf(a)>=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}function s(e){return"LI"===e.nodeName&&"tab"===e.getAttribute("role")}function o(e){return"true"===e.getAttribute("aria-disabled")}var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},i=r(2),c=a(i),d=r(3),u=r(4),p=a(u),f=r(5),b=a(f),h=r(6),T=a(h),y=r(7),v=a(y),m=r(8),P=a(m),x=!0;e.exports=c["default"].createClass({displayName:"Tabs",propTypes:{className:i.PropTypes.string,selectedIndex:i.PropTypes.number,onSelect:i.PropTypes.func,focus:i.PropTypes.bool,children:v["default"],forceRenderTabPanel:i.PropTypes.bool},childContextTypes:{forceRenderTabPanel:i.PropTypes.bool},statics:{setUseDefaultStyles:function(e){x=e}},getDefaultProps:function(){return{selectedIndex:-1,focus:!1,forceRenderTabPanel:!1}},getInitialState:function(){return this.copyPropsToState(this.props,this.state)},getChildContext:function(){return{forceRenderTabPanel:this.props.forceRenderTabPanel}},componentDidMount:function(){x&&(0,b["default"])(r(10))},componentWillReceiveProps:function(e){var t=this;this.setState(function(r){return t.copyPropsToState(e,r)})},setSelected:function(e,t){if(e!==this.state.selectedIndex&&!(e<0||e>=this.getTabsCount())){var r=this.state.selectedIndex,a=!1;"function"==typeof this.props.onSelect&&(a=this.props.onSelect(e,r)===!1),a||this.setState({selectedIndex:e,focus:t===!0})}},getNextTab:function(e){for(var t=this.getTabsCount(),r=e+1;r<t;r++){var a=this.getTab(r);if(!o((0,d.findDOMNode)(a)))return r}for(var n=0;n<e;n++){var s=this.getTab(n);if(!o((0,d.findDOMNode)(s)))return n}return e},getPrevTab:function(e){for(var t=e;t--;){var r=this.getTab(t);if(!o((0,d.findDOMNode)(r)))return t}for(t=this.getTabsCount();t-- >e;){var a=this.getTab(t);if(!o((0,d.findDOMNode)(a)))return t}return e},getTabsCount:function(){return this.props.children&&this.props.children[0]?c["default"].Children.count(this.props.children[0].props.children):0},getPanelsCount:function(){return c["default"].Children.count(this.props.children.slice(1))},getTabList:function(){return this.refs.tablist},getTab:function(e){return this.refs["tabs-"+e]},getPanel:function(e){return this.refs["panels-"+e]},getChildren:function(){for(var e=0,t=0,r=this.props.children,a=this.state,n=this.tabIds=this.tabIds||[],s=this.panelIds=this.panelIds||[],o=this.tabIds.length-this.getTabsCount();o++<0;)n.push((0,T["default"])()),s.push((0,T["default"])());return c["default"].Children.map(r,function(r){if(null===r)return null;var o=null;if(0===t++)o=(0,i.cloneElement)(r,{ref:"tablist",children:c["default"].Children.map(r.props.children,function(t){if(null===t)return null;var r="tabs-"+e,o=n[e],l=s[e],c=a.selectedIndex===e,d=c&&a.focus;return e++,t.type===P["default"]?(0,i.cloneElement)(t,{ref:r,id:o,panelId:l,selected:c,focus:d}):t})}),e=0;else{var l="panels-"+e,d=s[e],u=n[e],p=a.selectedIndex===e;e++,o=(0,i.cloneElement)(r,{ref:l,id:d,tabId:u,selected:p})}return o})},handleKeyDown:function(e){if(this.isTabFromContainer(e.target)){var t=this.state.selectedIndex,r=!1;37===e.keyCode||38===e.keyCode?(t=this.getPrevTab(t),r=!0):39!==e.keyCode&&40!==e.keyCode||(t=this.getNextTab(t),r=!0),r&&e.preventDefault(),this.setSelected(t,!0)}},handleClick:function(e){var t=e.target;do if(this.isTabFromContainer(t)){if(o(t))return;var r=[].slice.call(t.parentNode.children).indexOf(t);return void this.setSelected(r)}while(null!==(t=t.parentNode))},copyPropsToState:function(e,t){var r=e.selectedIndex;return r===-1&&(r=t&&t.selectedIndex?t.selectedIndex:0),{selectedIndex:r,focus:e.focus}},isTabFromContainer:function(e){if(!s(e))return!1;var t=e.parentElement,r=(0,d.findDOMNode)(this);do{if(t===r)return!0;if(t.getAttribute("data-tabs"))break;t=t.parentElement}while(t);return!1},render:function(){var e=this;this.state.focus&&setTimeout(function(){e.state.focus=!1},0);var t=this.props,r=t.className,a=n(t,["className"]);return delete a.selectedIndex,delete a.onSelect,delete a.focus,delete a.children,delete a.forceRenderTabPanel,delete a.onClick,delete a.onKeyDown,c["default"].createElement("div",l({},a,{className:(0,p["default"])("ReactTabs","react-tabs",r),onClick:this.handleClick,onKeyDown:this.handleKeyDown,"data-tabs":!0}),this.getChildren())}})},function(t,r){t.exports=e},function(e,r){e.exports=t},function(e,t,r){var a,n;/*!
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports.ReactTabs=t(require("react"),require("react-dom")):e.ReactTabs=t(e.React,e.ReactDOM)}(this,function(e,t){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.TabPanel=t.Tab=t.TabList=t.Tabs=void 0;var o=n(1),a=r(o),i=n(22),s=r(i),u=n(21),c=r(u),l=n(24),f=r(l);t.Tabs=a.default,t.TabList=s.default,t.Tab=c.default,t.TabPanel=f.default,t.default={Tabs:a.default,TabList:s.default,Tab:c.default,TabPanel:f.default}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function a(e){return"LI"===e.nodeName&&"tab"===e.getAttribute("role")}function i(e){return"true"===e.getAttribute("aria-disabled")}var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=n(2),c=r(u),l=n(3),f=r(l),d=n(12),p=r(d),h=n(16),y=n(17),b=r(y),m=n(18),v=r(m),g=n(19),N=r(g),E=n(20),T=r(E),x=n(21),_=r(x),O=!0;e.exports=(0,p.default)({displayName:"Tabs",propTypes:{className:f.default.string,selectedIndex:f.default.number,onSelect:f.default.func,focus:f.default.bool,children:T.default,forceRenderTabPanel:f.default.bool},childContextTypes:{forceRenderTabPanel:f.default.bool},statics:{setUseDefaultStyles:function(e){O=e}},getDefaultProps:function(){return{selectedIndex:-1,focus:!1,forceRenderTabPanel:!1}},getInitialState:function(){return this.copyPropsToState(this.props,this.state)},getChildContext:function(){return{forceRenderTabPanel:this.props.forceRenderTabPanel}},componentDidMount:function(){O&&(0,v.default)(n(23))},componentWillReceiveProps:function(e){var t=this;this.setState(function(n){return t.copyPropsToState(e,n)})},setSelected:function(e,t){if(e!==this.state.selectedIndex&&!(e<0||e>=this.getTabsCount())){var n=this.state.selectedIndex,r=!1;"function"==typeof this.props.onSelect&&(r=this.props.onSelect(e,n)===!1),r||this.setState({selectedIndex:e,focus:t===!0})}},getNextTab:function(e){for(var t=this.getTabsCount(),n=e+1;n<t;n++){var r=this.getTab(n);if(!i((0,h.findDOMNode)(r)))return n}for(var o=0;o<e;o++){var a=this.getTab(o);if(!i((0,h.findDOMNode)(a)))return o}return e},getPrevTab:function(e){for(var t=e;t--;){var n=this.getTab(t);if(!i((0,h.findDOMNode)(n)))return t}for(t=this.getTabsCount();t-- >e;){var r=this.getTab(t);if(!i((0,h.findDOMNode)(r)))return t}return e},getTabsCount:function(){return this.props.children&&this.props.children[0]?c.default.Children.count(this.props.children[0].props.children):0},getPanelsCount:function(){return c.default.Children.count(this.props.children.slice(1))},getTabList:function(){return this.refs.tablist},getTab:function(e){return this.refs["tabs-"+e]},getPanel:function(e){return this.refs["panels-"+e]},getChildren:function(){for(var e=0,t=0,n=this.props.children,r=this.state,o=this.tabIds=this.tabIds||[],a=this.panelIds=this.panelIds||[],i=this.tabIds.length-this.getTabsCount();i++<0;)o.push((0,N.default)()),a.push((0,N.default)());return c.default.Children.map(n,function(n){if(null===n)return null;var i=null;if(0===t++)i=(0,u.cloneElement)(n,{ref:"tablist",children:c.default.Children.map(n.props.children,function(t){if(null===t)return null;var n="tabs-"+e,i=o[e],s=a[e],c=r.selectedIndex===e,l=c&&r.focus;return e++,t.type===_.default?(0,u.cloneElement)(t,{ref:n,id:i,panelId:s,selected:c,focus:l}):t})}),e=0;else{var s="panels-"+e,l=a[e],f=o[e],d=r.selectedIndex===e;e++,i=(0,u.cloneElement)(n,{ref:s,id:l,tabId:f,selected:d})}return i})},handleKeyDown:function(e){if(this.isTabFromContainer(e.target)){var t=this.state.selectedIndex,n=!1;37===e.keyCode||38===e.keyCode?(t=this.getPrevTab(t),n=!0):39!==e.keyCode&&40!==e.keyCode||(t=this.getNextTab(t),n=!0),n&&e.preventDefault(),this.setSelected(t,!0)}},handleClick:function(e){var t=e.target;do if(this.isTabFromContainer(t)){if(i(t))return;var n=[].slice.call(t.parentNode.children).indexOf(t);return void this.setSelected(n)}while(null!==(t=t.parentNode))},copyPropsToState:function(e,t){var n=e.selectedIndex;return n===-1&&(n=t&&t.selectedIndex?t.selectedIndex:0),{selectedIndex:n,focus:e.focus}},isTabFromContainer:function(e){if(!a(e))return!1;var t=e.parentElement,n=(0,h.findDOMNode)(this);do{if(t===n)return!0;if(t.getAttribute("data-tabs"))break;t=t.parentElement}while(t);return!1},render:function(){var e=this;this.state.focus&&setTimeout(function(){e.state.focus=!1},0);var t=this.props,n=t.className,r=o(t,["className"]);return delete r.selectedIndex,delete r.onSelect,delete r.focus,delete r.children,delete r.forceRenderTabPanel,delete r.onClick,delete r.onKeyDown,c.default.createElement("div",s({},r,{className:(0,b.default)("ReactTabs","react-tabs",n),onClick:this.handleClick,onKeyDown:this.handleKeyDown,"data-tabs":!0}),this.getChildren())}})},function(t,n){t.exports=e},function(e,t,n){(function(t){if("production"!==t.env.NODE_ENV){var r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,o=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},a=!0;e.exports=n(5)(o,a)}else e.exports=n(11)()}).call(t,n(4))},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(e){if(l===setTimeout)return setTimeout(e,0);if((l===n||!l)&&setTimeout)return l=setTimeout,setTimeout(e,0);try{return l(e,0)}catch(t){try{return l.call(null,e,0)}catch(t){return l.call(this,e,0)}}}function a(e){if(f===clearTimeout)return clearTimeout(e);if((f===r||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(e);try{return f(e)}catch(t){try{return f.call(null,e)}catch(t){return f.call(this,e)}}}function i(){y&&p&&(y=!1,p.length?h=p.concat(h):b=-1,h.length&&s())}function s(){if(!y){var e=o(i);y=!0;for(var t=h.length;t;){for(p=h,h=[];++b<t;)p&&p[b].run();b=-1,t=h.length}p=null,y=!1,a(e)}}function u(e,t){this.fun=e,this.array=t}function c(){}var l,f,d=e.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:n}catch(e){l=n}try{f="function"==typeof clearTimeout?clearTimeout:r}catch(e){f=r}}();var p,h=[],y=!1,b=-1;d.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];h.push(new u(e,t)),1!==h.length||y||o(s)},u.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=c,d.addListener=c,d.once=c,d.off=c,d.removeListener=c,d.removeAllListeners=c,d.emit=c,d.binding=function(e){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(e){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},function(e,t,n){(function(t){"use strict";var r=n(6),o=n(7),a=n(8),i=n(9),s=n(10);e.exports=function(e,n){function u(e){var t=e&&(P&&e[P]||e[w]);if("function"==typeof t)return t}function c(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}function l(e){this.message=e,this.stack=""}function f(e){function r(r,c,f,d,p,h,y){if(d=d||C,h=h||f,y!==i)if(n)o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else if("production"!==t.env.NODE_ENV&&"undefined"!=typeof console){var b=d+":"+f;!s[b]&&u<3&&(a(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",h,d),s[b]=!0,u++)}return null==c[f]?r?new l(null===c[f]?"The "+p+" `"+h+"` is marked as required "+("in `"+d+"`, but its value is `null`."):"The "+p+" `"+h+"` is marked as required in "+("`"+d+"`, but its value is `undefined`.")):null:e(c,f,d,p,h)}if("production"!==t.env.NODE_ENV)var s={},u=0;var c=r.bind(null,!1);return c.isRequired=r.bind(null,!0),c}function d(e){function t(t,n,r,o,a,i){var s=t[n],u=_(s);if(u!==e){var c=O(s);return new l("Invalid "+o+" `"+a+"` of type "+("`"+c+"` supplied to `"+r+"`, expected ")+("`"+e+"`."))}return null}return f(t)}function p(){return f(r.thatReturnsNull)}function h(e){function t(t,n,r,o,a){if("function"!=typeof e)return new l("Property `"+a+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var s=t[n];if(!Array.isArray(s)){var u=_(s);return new l("Invalid "+o+" `"+a+"` of type "+("`"+u+"` supplied to `"+r+"`, expected an array."))}for(var c=0;c<s.length;c++){var f=e(s,c,r,o,a+"["+c+"]",i);if(f instanceof Error)return f}return null}return f(t)}function y(){function t(t,n,r,o,a){var i=t[n];if(!e(i)){var s=_(i);return new l("Invalid "+o+" `"+a+"` of type "+("`"+s+"` supplied to `"+r+"`, expected a single ReactElement."))}return null}return f(t)}function b(e){function t(t,n,r,o,a){if(!(t[n]instanceof e)){var i=e.name||C,s=D(t[n]);return new l("Invalid "+o+" `"+a+"` of type "+("`"+s+"` supplied to `"+r+"`, expected ")+("instance of `"+i+"`."))}return null}return f(t)}function m(e){function n(t,n,r,o,a){for(var i=t[n],s=0;s<e.length;s++)if(c(i,e[s]))return null;var u=JSON.stringify(e);return new l("Invalid "+o+" `"+a+"` of value `"+i+"` "+("supplied to `"+r+"`, expected one of "+u+"."))}return Array.isArray(e)?f(n):("production"!==t.env.NODE_ENV?a(!1,"Invalid argument supplied to oneOf, expected an instance of array."):void 0,r.thatReturnsNull)}function v(e){function t(t,n,r,o,a){if("function"!=typeof e)return new l("Property `"+a+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var s=t[n],u=_(s);if("object"!==u)return new l("Invalid "+o+" `"+a+"` of type "+("`"+u+"` supplied to `"+r+"`, expected an object."));for(var c in s)if(s.hasOwnProperty(c)){var f=e(s,c,r,o,a+"."+c,i);if(f instanceof Error)return f}return null}return f(t)}function g(e){function n(t,n,r,o,a){for(var s=0;s<e.length;s++){var u=e[s];if(null==u(t,n,r,o,a,i))return null}return new l("Invalid "+o+" `"+a+"` supplied to "+("`"+r+"`."))}return Array.isArray(e)?f(n):("production"!==t.env.NODE_ENV?a(!1,"Invalid argument supplied to oneOfType, expected an instance of array."):void 0,r.thatReturnsNull)}function N(){function e(e,t,n,r,o){return T(e[t])?null:new l("Invalid "+r+" `"+o+"` supplied to "+("`"+n+"`, expected a ReactNode."))}return f(e)}function E(e){function t(t,n,r,o,a){var s=t[n],u=_(s);if("object"!==u)return new l("Invalid "+o+" `"+a+"` of type `"+u+"` "+("supplied to `"+r+"`, expected `object`."));for(var c in e){var f=e[c];if(f){var d=f(s,c,r,o,a+"."+c,i);if(d)return d}}return null}return f(t)}function T(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(T);if(null===t||e(t))return!0;var n=u(t);if(!n)return!1;var r,o=n.call(t);if(n!==t.entries){for(;!(r=o.next()).done;)if(!T(r.value))return!1}else for(;!(r=o.next()).done;){var a=r.value;if(a&&!T(a[1]))return!1}return!0;default:return!1}}function x(e,t){return"symbol"===e||("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}function _(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":x(t,e)?"symbol":t}function O(e){var t=_(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function D(e){return e.constructor&&e.constructor.name?e.constructor.name:C}var P="function"==typeof Symbol&&Symbol.iterator,w="@@iterator",C="<<anonymous>>",I={array:d("array"),bool:d("boolean"),func:d("function"),number:d("number"),object:d("object"),string:d("string"),symbol:d("symbol"),any:p(),arrayOf:h,element:y(),instanceOf:b,node:N(),objectOf:v,oneOf:m,oneOfType:g,shape:E};return l.prototype=Error.prototype,I.checkPropTypes=s,I.PropTypes=I,I}}).call(t,n(4))},function(e,t){"use strict";function n(e){return function(){return e}}var r=function(){};r.thatReturns=n,r.thatReturnsFalse=n(!1),r.thatReturnsTrue=n(!0),r.thatReturnsNull=n(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},function(e,t,n){(function(t){"use strict";function n(e,t,n,o,a,i,s,u){if(r(t),!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,o,a,i,s,u],f=0;c=new Error(t.replace(/%s/g,function(){return l[f++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}}var r=function(e){};"production"!==t.env.NODE_ENV&&(r=function(e){if(void 0===e)throw new Error("invariant requires an error message argument")}),e.exports=n}).call(t,n(4))},function(e,t,n){(function(t){"use strict";var r=n(6),o=r;"production"!==t.env.NODE_ENV&&!function(){var e=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,a="Warning: "+e.replace(/%s/g,function(){return n[o++]});"undefined"!=typeof console&&console.error(a);try{throw new Error(a)}catch(e){}};o=function(t,n){if(void 0===n)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==n.indexOf("Failed Composite propType: ")&&!t){for(var r=arguments.length,o=Array(r>2?r-2:0),a=2;a<r;a++)o[a-2]=arguments[a];e.apply(void 0,[n].concat(o))}}}(),e.exports=o}).call(t,n(4))},function(e,t){"use strict";var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";e.exports=n},function(e,t,n){(function(t){"use strict";function r(e,n,r,u,c){if("production"!==t.env.NODE_ENV)for(var l in e)if(e.hasOwnProperty(l)){var f;try{o("function"==typeof e[l],"%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",u||"React class",r,l),f=e[l](n,l,u,r,null,i)}catch(e){f=e}if(a(!f||f instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",u||"React class",r,l,typeof f),f instanceof Error&&!(f.message in s)){s[f.message]=!0;var d=c?c():"";a(!1,"Failed %s type: %s%s",r,f.message,null!=d?d:"")}}}if("production"!==t.env.NODE_ENV)var o=n(7),a=n(8),i=n(9),s={};e.exports=r}).call(t,n(4))},function(e,t,n){"use strict";var r=n(6),o=n(7);e.exports=function(){function e(){o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){"use strict";var r=n(2),o=n(13),a=(new r.Component).updater;e.exports=o(r.Component,r.isValidElement,a)},function(e,t,n){(function(t){"use strict";function r(e){return e}function o(e,n,o){function f(e,n,r){for(var o in n)n.hasOwnProperty(o)&&("production"!==t.env.NODE_ENV?u("function"==typeof n[o],"%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",e.displayName||"ReactClass",c[r],o):void 0)}function d(e,t){var n=T.hasOwnProperty(t)?T[t]:null;O.hasOwnProperty(t)&&s("OVERRIDE_BASE"===n,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",t),e&&s("DEFINE_MANY"===n||"DEFINE_MANY_MERGED"===n,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",t)}function p(e,r){if(r){s("function"!=typeof r,"ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object."),s(!n(r),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.");var o=e.prototype,a=o.__reactAutoBindPairs;r.hasOwnProperty(l)&&x.mixins(e,r.mixins);for(var i in r)if(r.hasOwnProperty(i)&&i!==l){var c=r[i],f=o.hasOwnProperty(i);if(d(f,i),x.hasOwnProperty(i))x[i](e,c);else{var p=T.hasOwnProperty(i),h="function"==typeof c,y=h&&!p&&!f&&r.autobind!==!1;if(y)a.push(i,c),o[i]=c;else if(f){var v=T[i];s(p&&("DEFINE_MANY_MERGED"===v||"DEFINE_MANY"===v),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",v,i),"DEFINE_MANY_MERGED"===v?o[i]=b(o[i],c):"DEFINE_MANY"===v&&(o[i]=m(o[i],c))}else o[i]=c,"production"!==t.env.NODE_ENV&&"function"==typeof c&&r.displayName&&(o[i].displayName=r.displayName+"_"+i)}}}else if("production"!==t.env.NODE_ENV){var g=typeof r,N="object"===g&&null!==r;"production"!==t.env.NODE_ENV?u(N,"%s: You're attempting to include a mixin that is either null or not an object. Check the mixins included by the component, as well as any mixins they include themselves. Expected object but got %s.",e.displayName||"ReactClass",null===r?null:g):void 0}}function h(e,t){if(t)for(var n in t){var r=t[n];if(t.hasOwnProperty(n)){var o=n in x;s(!o,'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',n);var a=n in e;s(!a,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n),e[n]=r}}}function y(e,t){s(e&&t&&"object"==typeof e&&"object"==typeof t,"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.");for(var n in t)t.hasOwnProperty(n)&&(s(void 0===e[n],"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",n),e[n]=t[n]);return e}function b(e,t){return function(){var n=e.apply(this,arguments),r=t.apply(this,arguments);if(null==n)return r;if(null==r)return n;var o={};return y(o,n),y(o,r),o}}function m(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function v(e,n){var r=n.bind(e);if("production"!==t.env.NODE_ENV){r.__reactBoundContext=e,r.__reactBoundMethod=n,r.__reactBoundArguments=null;var o=e.constructor.displayName,a=r.bind;r.bind=function(i){for(var s=arguments.length,c=Array(s>1?s-1:0),l=1;l<s;l++)c[l-1]=arguments[l];if(i!==e&&null!==i)"production"!==t.env.NODE_ENV?u(!1,"bind(): React component methods may only be bound to the component instance. See %s",o):void 0;else if(!c.length)return"production"!==t.env.NODE_ENV?u(!1,"bind(): You are binding a component method to the component. React does this for you automatically in a high-performance way, so you can safely remove this call. See %s",o):void 0,r;var f=a.apply(r,arguments);return f.__reactBoundContext=e,f.__reactBoundMethod=n,f.__reactBoundArguments=c,f}}return r}function g(e){for(var t=e.__reactAutoBindPairs,n=0;n<t.length;n+=2){var r=t[n],o=t[n+1];e[r]=v(e,o)}}function N(e){var n=r(function(e,r,a){"production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?u(this instanceof n,"Something is calling a React component directly. Use a factory or JSX instead. See: https://fb.me/react-legacyfactory"):void 0),this.__reactAutoBindPairs.length&&g(this),this.props=e,this.context=r,this.refs=i,this.updater=a||o,this.state=null;var c=this.getInitialState?this.getInitialState():null;"production"!==t.env.NODE_ENV&&void 0===c&&this.getInitialState._isMockFunction&&(c=null),s("object"==typeof c&&!Array.isArray(c),"%s.getInitialState(): must return an object or null",n.displayName||"ReactCompositeComponent"),this.state=c});n.prototype=new D,n.prototype.constructor=n,n.prototype.__reactAutoBindPairs=[],E.forEach(p.bind(null,n)),p(n,_),p(n,e),n.getDefaultProps&&(n.defaultProps=n.getDefaultProps()),"production"!==t.env.NODE_ENV&&(n.getDefaultProps&&(n.getDefaultProps.isReactClassApproved={}),n.prototype.getInitialState&&(n.prototype.getInitialState.isReactClassApproved={})),s(n.prototype.render,"createClass(...): Class specification must implement a `render` method."),"production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?u(!n.prototype.componentShouldUpdate,"%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",e.displayName||"A component"):void 0,"production"!==t.env.NODE_ENV?u(!n.prototype.componentWillRecieveProps,"%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",e.displayName||"A component"):void 0);for(var a in T)n.prototype[a]||(n.prototype[a]=null);return n}var E=[],T={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},x={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n<t.length;n++)p(e,t[n])},childContextTypes:function(e,n){"production"!==t.env.NODE_ENV&&f(e,n,"childContext"),e.childContextTypes=a({},e.childContextTypes,n)},contextTypes:function(e,n){"production"!==t.env.NODE_ENV&&f(e,n,"context"),e.contextTypes=a({},e.contextTypes,n)},getDefaultProps:function(e,t){e.getDefaultProps?e.getDefaultProps=b(e.getDefaultProps,t):e.getDefaultProps=t},propTypes:function(e,n){"production"!==t.env.NODE_ENV&&f(e,n,"prop"),e.propTypes=a({},e.propTypes,n)},statics:function(e,t){h(e,t)},autobind:function(){}},_={componentDidMount:function(){this.__isMounted=!0},componentWillUnmount:function(){this.__isMounted=!1}},O={replaceState:function(e,t){this.updater.enqueueReplaceState(this,e,t)},isMounted:function(){return"production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?u(this.__didWarnIsMounted,"%s: isMounted is deprecated. Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks.",this.constructor&&this.constructor.displayName||this.name||"Component"):void 0,this.__didWarnIsMounted=!0),!!this.__isMounted}},D=function(){};return a(D.prototype,e.prototype,O),N}var a=n(14),i=n(15),s=n(7);if("production"!==t.env.NODE_ENV)var u=n(8);var c,l="mixins";c="production"!==t.env.NODE_ENV?{prop:"prop",context:"context",childContext:"child context"}:{},e.exports=o}).call(t,n(4))},function(e,t){/*
object-assign
(c) Sindre Sorhus
@license MIT
*/
"use strict";function n(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function r(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"!==r.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(e){o[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}var o=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=r()?Object.assign:function(e,t){for(var r,s,u=n(e),c=1;c<arguments.length;c++){r=Object(arguments[c]);for(var l in r)a.call(r,l)&&(u[l]=r[l]);if(o){s=o(r);for(var f=0;f<s.length;f++)i.call(r,s[f])&&(u[s[f]]=r[s[f]])}}return u}},function(e,t,n){(function(t){"use strict";var n={};"production"!==t.env.NODE_ENV&&Object.freeze(n),e.exports=n}).call(t,n(4))},function(e,n){e.exports=t},function(e,t,n){var r,o;/*!
Copyright (c) 2016 Jed Watson.

@@ -6,3 +11,3 @@ Licensed under the MIT License (MIT), see

*/
!function(){"use strict";function r(){for(var e=[],t=0;t<arguments.length;t++){var a=arguments[t];if(a){var n=typeof a;if("string"===n||"number"===n)e.push(a);else if(Array.isArray(a))e.push(r.apply(null,a));else if("object"===n)for(var o in a)s.call(a,o)&&a[o]&&e.push(o)}}return e.join(" ")}var s={}.hasOwnProperty;"undefined"!=typeof e&&e.exports?e.exports=r:(a=[],n=function(){return r}.apply(t,a),!(void 0!==n&&(e.exports=n)))}()},function(e,t,r){!function(){function t(e){var t=[];for(var a in e)t.push(r(a,e[a]));n(t)}function r(e,t){return e+" {\n"+a(t)+"\n}"}function a(e){var t=[];for(var r in e)t.push(" "+r+": "+e[r]+";");return t.join("\n")}function n(e){var t=document.getElementById("jss-styles");if(!t){t=document.createElement("style"),t.setAttribute("id","jss-styles");var r=document.getElementsByTagName("head")[0];r.insertBefore(t,r.firstChild)}var a=document.createTextNode(e.join("\n\n"));t.appendChild(a)}e.exports=t}()},function(e,t){"use strict";var r=0;e.exports=function(){return"react-tabs-"+r++}},function(e,t,r){"use strict";function a(e){return e&&e.__esModule?e:{"default":e}}var n=r(2),s=a(n),o=r(8),l=a(o),i=r(9),c=a(i);e.exports=function(e,t){var r=void 0,a=0,n=0,o=e[t];return s["default"].Children.forEach(o,function(e){null!==e&&(e.type===c["default"]?s["default"].Children.forEach(e.props.children,function(e){null!==e&&e.type===l["default"]&&a++}):"TabPanel"===e.type.displayName?n++:r=new Error("Expected 'TabList' or 'TabPanel' but found '"+(e.type.displayName||e.type)+"'"))}),a!==n&&(r=new Error("There should be an equal number of 'Tabs' and 'TabPanels'."+("Received "+a+" 'Tabs' and "+n+" 'TabPanels'."))),r}},function(e,t,r){"use strict";function a(e){return e&&e.__esModule?e:{"default":e}}function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e,t){var r={};for(var a in e)t.indexOf(a)>=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},l=r(2),i=a(l),c=r(3),d=r(4),u=a(d);e.exports=i["default"].createClass({displayName:"Tab",propTypes:{className:l.PropTypes.string,id:l.PropTypes.string,focus:l.PropTypes.bool,selected:l.PropTypes.bool,disabled:l.PropTypes.bool,activeTabClassName:l.PropTypes.string,disabledTabClassName:l.PropTypes.string,panelId:l.PropTypes.string,children:l.PropTypes.oneOfType([l.PropTypes.array,l.PropTypes.object,l.PropTypes.string])},getDefaultProps:function(){return{focus:!1,selected:!1,id:null,panelId:null,activeTabClassName:"ReactTabs__Tab--selected",disabledTabClassName:"ReactTabs__Tab--disabled"}},componentDidMount:function(){this.checkFocus()},componentDidUpdate:function(){this.checkFocus()},checkFocus:function(){this.props.selected&&this.props.focus&&(0,c.findDOMNode)(this).focus()},render:function(){var e,t=this.props,r=t.selected,a=t.disabled,l=t.panelId,c=t.activeTabClassName,d=t.disabledTabClassName,p=t.className,f=t.children,b=t.id,h=s(t,["selected","disabled","panelId","activeTabClassName","disabledTabClassName","className","children","id"]);return delete h.focus,i["default"].createElement("li",o({},h,{className:(0,u["default"])("ReactTabs__Tab",p,(e={},n(e,c,r),n(e,d,a),e)),role:"tab",id:b,"aria-selected":r?"true":"false","aria-disabled":a?"true":"false","aria-controls":l,tabIndex:r?"0":null}),f)}})},function(e,t,r){"use strict";function a(e){return e&&e.__esModule?e:{"default":e}}function n(e,t){var r={};for(var a in e)t.indexOf(a)>=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}function s(e){return i["default"].Children.map(e.children,function(t){if(t.type!==p["default"])return t;var r={activeTabClassName:e.activeTabClassName,disabledTabClassName:e.disabledTabClassName};return i["default"].cloneElement(t,r)})}var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},l=r(2),i=a(l),c=r(4),d=a(c),u=r(8),p=a(u);e.exports=i["default"].createClass({displayName:"TabList",propTypes:{className:l.PropTypes.string,activeTabClassName:l.PropTypes.string,disabledTabClassName:l.PropTypes.string,children:l.PropTypes.oneOfType([l.PropTypes.object,l.PropTypes.array])},render:function(){var e=this.props,t=e.className,r=e.activeTabClassName,a=e.disabledTabClassName,l=e.children,c=n(e,["className","activeTabClassName","disabledTabClassName","children"]);return i["default"].createElement("ul",o({},c,{className:(0,d["default"])("ReactTabs__TabList",t),role:"tablist"}),s({activeTabClassName:r,disabledTabClassName:a,children:l}))}})},function(e,t){"use strict";e.exports={".react-tabs [role=tablist]":{"border-bottom":"1px solid #aaa",margin:"0 0 10px",padding:"0"},".react-tabs [role=tab]":{display:"inline-block",border:"1px solid transparent","border-bottom":"none",bottom:"-1px",position:"relative","list-style":"none",padding:"6px 12px",cursor:"pointer"},".react-tabs [role=tab][aria-selected=true]":{background:"#fff","border-color":"#aaa",color:"black","border-radius":"5px 5px 0 0","-moz-border-radius":"5px 5px 0 0","-webkit-border-radius":"5px 5px 0 0"},".react-tabs [role=tab][aria-disabled=true]":{color:"GrayText",cursor:"default"},".react-tabs [role=tab]:focus":{"box-shadow":"0 0 5px hsl(208, 99%, 50%)","border-color":"hsl(208, 99%, 50%)",outline:"none"},".react-tabs [role=tab]:focus:after":{content:'""',position:"absolute",height:"5px",left:"-4px",right:"-4px",bottom:"-5px",background:"#fff"}}},function(e,t,r){"use strict";function a(e){return e&&e.__esModule?e:{"default":e}}function n(e,t){var r={};for(var a in e)t.indexOf(a)>=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},o=r(2),l=a(o),i=r(4),c=a(i);e.exports=l["default"].createClass({displayName:"TabPanel",propTypes:{children:o.PropTypes.oneOfType([o.PropTypes.array,o.PropTypes.object,o.PropTypes.string]),className:o.PropTypes.string,id:o.PropTypes.string,selected:o.PropTypes.bool,style:o.PropTypes.object,tabId:o.PropTypes.string},contextTypes:{forceRenderTabPanel:o.PropTypes.bool},getDefaultProps:function(){return{selected:!1,id:null,tabId:null}},render:function(){var e=this.props,t=e.className,r=e.children,a=e.selected,o=e.id,i=e.tabId,d=e.style,u=n(e,["className","children","selected","id","tabId","style"]);return l["default"].createElement("div",s({},u,{className:(0,c["default"])("ReactTabs__TabPanel",t,{"ReactTabs__TabPanel--selected":a}),role:"tabpanel",id:o,"aria-labelledby":i,style:s({},d,{display:a?null:"none"})}),this.context.forceRenderTabPanel||a?r:null)}})}])});
!function(){"use strict";function n(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r))e.push(n.apply(null,r));else if("object"===o)for(var i in r)a.call(r,i)&&r[i]&&e.push(i)}}return e.join(" ")}var a={}.hasOwnProperty;"undefined"!=typeof e&&e.exports?e.exports=n:(r=[],o=function(){return n}.apply(t,r),!(void 0!==o&&(e.exports=o)))}()},function(e,t,n){!function(){function t(e){var t=[];for(var r in e)t.push(n(r,e[r]));o(t)}function n(e,t){return e+" {\n"+r(t)+"\n}"}function r(e){var t=[];for(var n in e)t.push(" "+n+": "+e[n]+";");return t.join("\n")}function o(e){var t=document.getElementById("jss-styles");if(!t){t=document.createElement("style"),t.setAttribute("id","jss-styles");var n=document.getElementsByTagName("head")[0];n.insertBefore(t,n.firstChild)}var r=document.createTextNode(e.join("\n\n"));t.appendChild(r)}e.exports=t}()},function(e,t){"use strict";var n=0;e.exports=function(){return"react-tabs-"+n++}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var o=n(2),a=r(o),i=n(21),s=r(i),u=n(22),c=r(u);e.exports=function(e,t){var n=void 0,r=0,o=0,i=e[t];return a.default.Children.forEach(i,function(e){null!==e&&(e.type===c.default?a.default.Children.forEach(e.props.children,function(e){null!==e&&e.type===s.default&&r++}):"TabPanel"===e.type.displayName?o++:n=new Error("Expected 'TabList' or 'TabPanel' but found '"+(e.type.displayName||e.type)+"'"))}),r!==o&&(n=new Error("There should be an equal number of 'Tabs' and 'TabPanels'."+("Received "+r+" 'Tabs' and "+o+" 'TabPanels'."))),n}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=n(2),u=r(s),c=n(3),l=r(c),f=n(12),d=r(f),p=n(16),h=n(17),y=r(h);e.exports=(0,d.default)({displayName:"Tab",propTypes:{className:l.default.string,id:l.default.string,focus:l.default.bool,selected:l.default.bool,disabled:l.default.bool,activeTabClassName:l.default.string,disabledTabClassName:l.default.string,panelId:l.default.string,children:l.default.oneOfType([l.default.array,l.default.object,l.default.string])},getDefaultProps:function(){return{focus:!1,selected:!1,id:null,panelId:null,activeTabClassName:"ReactTabs__Tab--selected",disabledTabClassName:"ReactTabs__Tab--disabled"}},componentDidMount:function(){this.checkFocus()},componentDidUpdate:function(){this.checkFocus()},checkFocus:function(){this.props.selected&&this.props.focus&&(0,p.findDOMNode)(this).focus()},render:function(){var e,t=this.props,n=t.selected,r=t.disabled,s=t.panelId,c=t.activeTabClassName,l=t.disabledTabClassName,f=t.className,d=t.children,p=t.id,h=a(t,["selected","disabled","panelId","activeTabClassName","disabledTabClassName","className","children","id"]);return delete h.focus,u.default.createElement("li",i({},h,{className:(0,y.default)("ReactTabs__Tab",f,(e={},o(e,c,n),o(e,l,r),e)),role:"tab",id:p,"aria-selected":n?"true":"false","aria-disabled":r?"true":"false","aria-controls":s,tabIndex:n?"0":null}),d)}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function a(e){return u.default.Children.map(e.children,function(t){if(t.type!==b.default)return t;var n={activeTabClassName:e.activeTabClassName,disabledTabClassName:e.disabledTabClassName};return u.default.cloneElement(t,n)})}var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=n(2),u=r(s),c=n(3),l=r(c),f=n(12),d=r(f),p=n(17),h=r(p),y=n(21),b=r(y);e.exports=(0,d.default)({displayName:"TabList",propTypes:{className:l.default.string,activeTabClassName:l.default.string,disabledTabClassName:l.default.string,children:l.default.oneOfType([l.default.object,l.default.array])},render:function(){var e=this.props,t=e.className,n=e.activeTabClassName,r=e.disabledTabClassName,s=e.children,c=o(e,["className","activeTabClassName","disabledTabClassName","children"]);return u.default.createElement("ul",i({},c,{className:(0,h.default)("ReactTabs__TabList",t),role:"tablist"}),a({activeTabClassName:n,disabledTabClassName:r,children:s}))}})},function(e,t){"use strict";e.exports={".react-tabs [role=tablist]":{"border-bottom":"1px solid #aaa",margin:"0 0 10px",padding:"0"},".react-tabs [role=tab]":{display:"inline-block",border:"1px solid transparent","border-bottom":"none",bottom:"-1px",position:"relative","list-style":"none",padding:"6px 12px",cursor:"pointer"},".react-tabs [role=tab][aria-selected=true]":{background:"#fff","border-color":"#aaa",color:"black","border-radius":"5px 5px 0 0","-moz-border-radius":"5px 5px 0 0","-webkit-border-radius":"5px 5px 0 0"},".react-tabs [role=tab][aria-disabled=true]":{color:"GrayText",cursor:"default"},".react-tabs [role=tab]:focus":{"box-shadow":"0 0 5px hsl(208, 99%, 50%)","border-color":"hsl(208, 99%, 50%)",outline:"none"},".react-tabs [role=tab]:focus:after":{content:'""',position:"absolute",height:"5px",left:"-4px",right:"-4px",bottom:"-5px",background:"#fff"}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(2),s=r(i),u=n(3),c=r(u),l=n(12),f=r(l),d=n(17),p=r(d);e.exports=(0,f.default)({displayName:"TabPanel",propTypes:{children:c.default.oneOfType([c.default.array,c.default.object,c.default.string]),className:c.default.string,id:c.default.string,selected:c.default.bool,style:c.default.object,tabId:c.default.string},contextTypes:{forceRenderTabPanel:c.default.bool},getDefaultProps:function(){return{selected:!1,id:null,tabId:null}},render:function(){var e=this.props,t=e.className,n=e.children,r=e.selected,i=e.id,u=e.tabId,c=e.style,l=o(e,["className","children","selected","id","tabId","style"]);return s.default.createElement("div",a({},l,{className:(0,p.default)("ReactTabs__TabPanel",t,{"ReactTabs__TabPanel--selected":r}),role:"tabpanel",id:i,"aria-labelledby":u,style:a({},c,{display:r?null:"none"})}),this.context.forceRenderTabPanel||r?n:null)}})}])});
//# sourceMappingURL=react-tabs.min.js.map

@@ -9,2 +9,10 @@ 'use strict';

var _propTypes = require('prop-types');
var _propTypes2 = _interopRequireDefault(_propTypes);
var _createReactClass = require('create-react-class');
var _createReactClass2 = _interopRequireDefault(_createReactClass);
var _reactDom = require('react-dom');

@@ -22,15 +30,15 @@

module.exports = _react2.default.createClass({
module.exports = (0, _createReactClass2.default)({
displayName: 'Tab',
propTypes: {
className: _react.PropTypes.string,
id: _react.PropTypes.string,
focus: _react.PropTypes.bool,
selected: _react.PropTypes.bool,
disabled: _react.PropTypes.bool,
activeTabClassName: _react.PropTypes.string,
disabledTabClassName: _react.PropTypes.string,
panelId: _react.PropTypes.string,
children: _react.PropTypes.oneOfType([_react.PropTypes.array, _react.PropTypes.object, _react.PropTypes.string])
className: _propTypes2.default.string,
id: _propTypes2.default.string,
focus: _propTypes2.default.bool,
selected: _propTypes2.default.bool,
disabled: _propTypes2.default.bool,
activeTabClassName: _propTypes2.default.string,
disabledTabClassName: _propTypes2.default.string,
panelId: _propTypes2.default.string,
children: _propTypes2.default.oneOfType([_propTypes2.default.array, _propTypes2.default.object, _propTypes2.default.string])
},

@@ -62,14 +70,13 @@

var _props = this.props;
var selected = _props.selected;
var disabled = _props.disabled;
var panelId = _props.panelId;
var activeTabClassName = _props.activeTabClassName;
var disabledTabClassName = _props.disabledTabClassName;
var className = _props.className;
var children = _props.children;
var id = _props.id;
var _props = this.props,
selected = _props.selected,
disabled = _props.disabled,
panelId = _props.panelId,
activeTabClassName = _props.activeTabClassName,
disabledTabClassName = _props.disabledTabClassName,
className = _props.className,
children = _props.children,
id = _props.id,
attributes = _objectWithoutProperties(_props, ['selected', 'disabled', 'panelId', 'activeTabClassName', 'disabledTabClassName', 'className', 'children', 'id']);
var attributes = _objectWithoutProperties(_props, ['selected', 'disabled', 'panelId', 'activeTabClassName', 'disabledTabClassName', 'className', 'children', 'id']);
delete attributes.focus;

@@ -76,0 +83,0 @@

@@ -9,2 +9,10 @@ 'use strict';

var _propTypes = require('prop-types');
var _propTypes2 = _interopRequireDefault(_propTypes);
var _createReactClass = require('create-react-class');
var _createReactClass2 = _interopRequireDefault(_createReactClass);
var _classnames = require('classnames');

@@ -40,21 +48,20 @@

module.exports = _react2.default.createClass({
module.exports = (0, _createReactClass2.default)({
displayName: 'TabList',
propTypes: {
className: _react.PropTypes.string,
activeTabClassName: _react.PropTypes.string,
disabledTabClassName: _react.PropTypes.string,
children: _react.PropTypes.oneOfType([_react.PropTypes.object, _react.PropTypes.array])
className: _propTypes2.default.string,
activeTabClassName: _propTypes2.default.string,
disabledTabClassName: _propTypes2.default.string,
children: _propTypes2.default.oneOfType([_propTypes2.default.object, _propTypes2.default.array])
},
render: function render() {
var _props = this.props;
var className = _props.className;
var activeTabClassName = _props.activeTabClassName;
var disabledTabClassName = _props.disabledTabClassName;
var children = _props.children;
var _props = this.props,
className = _props.className,
activeTabClassName = _props.activeTabClassName,
disabledTabClassName = _props.disabledTabClassName,
children = _props.children,
attributes = _objectWithoutProperties(_props, ['className', 'activeTabClassName', 'disabledTabClassName', 'children']);
var attributes = _objectWithoutProperties(_props, ['className', 'activeTabClassName', 'disabledTabClassName', 'children']);
return _react2.default.createElement(

@@ -61,0 +68,0 @@ 'ul',

@@ -9,2 +9,10 @@ 'use strict';

var _propTypes = require('prop-types');
var _propTypes2 = _interopRequireDefault(_propTypes);
var _createReactClass = require('create-react-class');
var _createReactClass2 = _interopRequireDefault(_createReactClass);
var _classnames = require('classnames');

@@ -18,16 +26,16 @@

module.exports = _react2.default.createClass({
module.exports = (0, _createReactClass2.default)({
displayName: 'TabPanel',
propTypes: {
children: _react.PropTypes.oneOfType([_react.PropTypes.array, _react.PropTypes.object, _react.PropTypes.string]),
className: _react.PropTypes.string,
id: _react.PropTypes.string,
selected: _react.PropTypes.bool,
style: _react.PropTypes.object,
tabId: _react.PropTypes.string
children: _propTypes2.default.oneOfType([_propTypes2.default.array, _propTypes2.default.object, _propTypes2.default.string]),
className: _propTypes2.default.string,
id: _propTypes2.default.string,
selected: _propTypes2.default.bool,
style: _propTypes2.default.object,
tabId: _propTypes2.default.string
},
contextTypes: {
forceRenderTabPanel: _react.PropTypes.bool
forceRenderTabPanel: _propTypes2.default.bool
},

@@ -43,12 +51,11 @@

render: function render() {
var _props = this.props;
var className = _props.className;
var children = _props.children;
var selected = _props.selected;
var id = _props.id;
var tabId = _props.tabId;
var style = _props.style;
var _props = this.props,
className = _props.className,
children = _props.children,
selected = _props.selected,
id = _props.id,
tabId = _props.tabId,
style = _props.style,
attributes = _objectWithoutProperties(_props, ['className', 'children', 'selected', 'id', 'tabId', 'style']);
var attributes = _objectWithoutProperties(_props, ['className', 'children', 'selected', 'id', 'tabId', 'style']);
return _react2.default.createElement(

@@ -55,0 +62,0 @@ 'div',

@@ -9,2 +9,10 @@ 'use strict';

var _propTypes = require('prop-types');
var _propTypes2 = _interopRequireDefault(_propTypes);
var _createReactClass = require('create-react-class');
var _createReactClass2 = _interopRequireDefault(_createReactClass);
var _reactDom = require('react-dom');

@@ -48,16 +56,16 @@

module.exports = _react2.default.createClass({
module.exports = (0, _createReactClass2.default)({
displayName: 'Tabs',
propTypes: {
className: _react.PropTypes.string,
selectedIndex: _react.PropTypes.number,
onSelect: _react.PropTypes.func,
focus: _react.PropTypes.bool,
className: _propTypes2.default.string,
selectedIndex: _propTypes2.default.number,
onSelect: _propTypes2.default.func,
focus: _propTypes2.default.bool,
children: _childrenPropType2.default,
forceRenderTabPanel: _react.PropTypes.bool
forceRenderTabPanel: _propTypes2.default.bool
},
childContextTypes: {
forceRenderTabPanel: _react.PropTypes.bool
forceRenderTabPanel: _propTypes2.default.bool
},

@@ -203,3 +211,3 @@

// null happens when conditionally rendering TabPanel/Tab
// see https://github.com/rackt/react-tabs/issues/37
// see https://github.com/reactjs/react-tabs/issues/37
if (child === null) {

@@ -218,3 +226,3 @@ return null;

// null happens when conditionally rendering TabPanel/Tab
// see https://github.com/rackt/react-tabs/issues/37
// see https://github.com/reactjs/react-tabs/issues/37
if (tab === null) {

@@ -375,3 +383,3 @@ return null;

//
// See https://github.com/rackt/react-tabs/pull/7
// See https://github.com/reactjs/react-tabs/pull/7
if (this.state.focus) {

@@ -383,7 +391,6 @@ setTimeout(function () {

var _props = this.props;
var className = _props.className;
var _props = this.props,
className = _props.className,
attributes = _objectWithoutProperties(_props, ['className']);
var attributes = _objectWithoutProperties(_props, ['className']);
// Delete all known props, so they don't get added to DOM

@@ -390,0 +397,0 @@

@@ -25,3 +25,3 @@ 'use strict';

// null happens when conditionally rendering TabPanel/Tab
// see https://github.com/rackt/react-tabs/issues/37
// see https://github.com/reactjs/react-tabs/issues/37
if (child === null) {

@@ -34,3 +34,3 @@ return;

// null happens when conditionally rendering TabPanel/Tab
// see https://github.com/rackt/react-tabs/issues/37
// see https://github.com/reactjs/react-tabs/issues/37
if (c === null) {

@@ -37,0 +37,0 @@ return;

{
"name": "react-tabs",
"version": "0.8.2",
"version": "0.8.3",
"description": "React tabs component",

@@ -64,2 +64,3 @@ "main": "lib/main.js",

"react-modal": "^1.3.0",
"react-test-renderer": "^15.5.4",
"rimraf": "^2.5.2",

@@ -71,3 +72,5 @@ "webpack": "^1.13.1",

"classnames": "^2.2.0",
"js-stylesheet": "^0.0.1"
"create-react-class": "^15.5.2",
"js-stylesheet": "^0.0.1",
"prop-types": "^15.5.8"
},

@@ -74,0 +77,0 @@ "jest": {

@@ -52,3 +52,3 @@ # react-tabs [![Build Status](https://travis-ci.org/reactjs/react-tabs.svg?branch=master)](https://travis-ci.org/reactjs/react-tabs)

{/*
<TabList/> is a composit component and is the container for the <Tab/>s.
<TabList/> is a composite component and is the container for the <Tab/>s.
*/}

@@ -80,4 +80,4 @@

which they appear. The first (index 0) <Tab/> will be associated with
the <TabPanel/> of the same index. Running this example when
`selectedIndex` is 0 the tab with the label "Foo" will be selected
the <TabPanel/> of the same index. When you run this example with
`selectedIndex` equal to 0, the tab with the label "Foo" will be selected
and the content shown will be "Hello from Foo".

@@ -84,0 +84,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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