@zendeskgarden/container-tabs
Advanced tools
Comparing version 0.2.4 to 0.2.5
@@ -6,2 +6,10 @@ # Change Log | ||
## [0.2.5](https://github.com/zendeskgarden/react-containers/compare/@zendeskgarden/container-tabs@0.2.4...@zendeskgarden/container-tabs@0.2.5) (2019-09-13) | ||
**Note:** Version bump only for package @zendeskgarden/container-tabs | ||
## [0.2.4](https://github.com/zendeskgarden/react-containers/compare/@zendeskgarden/container-tabs@0.2.3...@zendeskgarden/container-tabs@0.2.4) (2019-09-05) | ||
@@ -8,0 +16,0 @@ |
@@ -6,3 +6,3 @@ /*! | ||
*/ | ||
!function(e,r){for(var t in r)e[t]=r[t]}(exports,function(e){var r={};function t(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:n})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var o in e)t.d(n,o,function(r){return e[r]}.bind(null,o));return n},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="",t(t.s=4)}([function(e,r){e.exports=require("prop-types")},function(e,r){e.exports=require("react")},function(e,r){e.exports=require("@zendeskgarden/container-selection")},function(e,r){e.exports=require("@zendeskgarden/container-utilities")},function(e,r,t){"use strict";t.r(r);var n=t(1),o=t(2),i=t(3);function c(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var t=[],n=!0,o=!1,i=void 0;try{for(var c,a=e[Symbol.iterator]();!(n=(c=a.next()).done)&&(t.push(c.value),!r||t.length!==r);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}return t}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function a(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,n)}return t}function u(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?a(t,!0).forEach(function(r){l(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(t).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function l(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function f(e,r){if(null==e)return{};var t,n,o=function(e,r){if(null==e)return{};var t,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)t=i[n],r.indexOf(t)>=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)t=i[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function d(e,r,t){if(null==e)throw new Error('Accessibility Error: You must provide an "'.concat(r,'" option to "').concat(t,'()"'))}function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.vertical,t=e.idPrefix,a=f(e,["vertical","idPrefix"]),l=Object(o.useSelection)(u({direction:r?"vertical":"horizontal",defaultSelectedIndex:0},a)),s=l.selectedItem,p=l.focusedItem,b=l.getContainerProps,y=l.getItemProps,v=c(Object(n.useState)(t||Object(i.generateId)("garden-tabs-container")),1)[0],g="".concat(v,"--panel"),O="".concat(v,"--tab");return{selectedItem:s,focusedItem:p,getTabPanelProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.role,t=void 0===r?"tabpanel":r,n=e.index,o=e.item,i=f(e,["role","index","item"]);d(n,"index","getTabPanelProps"),d(o,"item","getTabPanelProps");var c=o!==s;return u({role:t,tabIndex:0,id:"".concat(g,":").concat(n),hidden:c,"aria-labelledby":"".concat(O,":").concat(n)},i)},getTabListProps:function(e){return b(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.role,t=void 0===r?"tablist":r,n=f(e,["role"]);return u({role:t,"data-garden-container-id":"tabs","data-garden-container-version":"0.2.4"},n)}(e))},getTabProps:function(e){return y(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.role,t=void 0===r?"tab":r,n=e.index,o=f(e,["role","index"]);return d(n,"index","getTabProps"),u({id:"".concat(O,":").concat(n),"aria-controls":"".concat(g,":").concat(n),role:t},o)}(e))}}}var p=t(0),b=t.n(p);function y(e,r){if(null==e)return{};var t,n,o=function(e,r){if(null==e)return{};var t,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)t=i[n],r.indexOf(t)>=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)t=i[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function v(e){var r=e.children,t=e.render;return(void 0===t?r:t)(s(y(e,["children","render"])))}v.propTypes={children:b.a.func,render:b.a.func,vertical:b.a.bool,idPrefix:b.a.string},t.d(r,"useTabs",function(){return s}),t.d(r,"TabsContainer",function(){return v})}])); | ||
!function(e,r){for(var t in r)e[t]=r[t]}(exports,function(e){var r={};function t(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:n})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var o in e)t.d(n,o,function(r){return e[r]}.bind(null,o));return n},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="",t(t.s=4)}([function(e,r){e.exports=require("prop-types")},function(e,r){e.exports=require("react")},function(e,r){e.exports=require("@zendeskgarden/container-selection")},function(e,r){e.exports=require("@zendeskgarden/container-utilities")},function(e,r,t){"use strict";t.r(r);var n=t(1),o=t(2),i=t(3);function c(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var t=[],n=!0,o=!1,i=void 0;try{for(var c,a=e[Symbol.iterator]();!(n=(c=a.next()).done)&&(t.push(c.value),!r||t.length!==r);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}return t}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function a(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,n)}return t}function u(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?a(t,!0).forEach(function(r){l(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(t).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function l(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function f(e,r){if(null==e)return{};var t,n,o=function(e,r){if(null==e)return{};var t,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)t=i[n],r.indexOf(t)>=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)t=i[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function d(e,r,t){if(null==e)throw new Error('Accessibility Error: You must provide an "'.concat(r,'" option to "').concat(t,'()"'))}function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.vertical,t=e.idPrefix,a=f(e,["vertical","idPrefix"]),l=Object(o.useSelection)(u({direction:r?"vertical":"horizontal",defaultSelectedIndex:0},a)),s=l.selectedItem,p=l.focusedItem,b=l.getContainerProps,y=l.getItemProps,v=c(Object(n.useState)(t||Object(i.generateId)("garden-tabs-container")),1)[0],g="".concat(v,"--panel"),O="".concat(v,"--tab");return{selectedItem:s,focusedItem:p,getTabPanelProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.role,t=void 0===r?"tabpanel":r,n=e.index,o=e.item,i=f(e,["role","index","item"]);d(n,"index","getTabPanelProps"),d(o,"item","getTabPanelProps");var c=o!==s;return u({role:t,tabIndex:0,id:"".concat(g,":").concat(n),hidden:c,"aria-labelledby":"".concat(O,":").concat(n)},i)},getTabListProps:function(e){return b(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.role,t=void 0===r?"tablist":r,n=f(e,["role"]);return u({role:t,"data-garden-container-id":"tabs","data-garden-container-version":"0.2.5"},n)}(e))},getTabProps:function(e){return y(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.role,t=void 0===r?"tab":r,n=e.index,o=f(e,["role","index"]);return d(n,"index","getTabProps"),u({id:"".concat(O,":").concat(n),"aria-controls":"".concat(g,":").concat(n),role:t},o)}(e))}}}var p=t(0),b=t.n(p);function y(e,r){if(null==e)return{};var t,n,o=function(e,r){if(null==e)return{};var t,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)t=i[n],r.indexOf(t)>=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)t=i[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function v(e){var r=e.children,t=e.render;return(void 0===t?r:t)(s(y(e,["children","render"])))}v.propTypes={children:b.a.func,render:b.a.func,vertical:b.a.bool,idPrefix:b.a.string},t.d(r,"useTabs",function(){return s}),t.d(r,"TabsContainer",function(){return v})}])); | ||
//# sourceMappingURL=index.js.map |
@@ -11,3 +11,3 @@ { | ||
}, | ||
"version": "0.2.4", | ||
"version": "0.2.5", | ||
"main": "./dist/index.js", | ||
@@ -21,4 +21,4 @@ "files": [ | ||
"dependencies": { | ||
"@zendeskgarden/container-selection": "^1.1.4", | ||
"@zendeskgarden/container-utilities": "^0.1.1" | ||
"@zendeskgarden/container-selection": "^1.1.5", | ||
"@zendeskgarden/container-utilities": "^0.1.2" | ||
}, | ||
@@ -43,3 +43,3 @@ "peerDependencies": { | ||
"zendeskgarden:src": "src/index.js", | ||
"gitHead": "8e7062266ffdc7baa0e84cc323bcc95533f8616d" | ||
"gitHead": "1cb6f552867d873fc28c15b69b0653fb16871900" | ||
} |
Sorry, the diff of this file is not supported yet
32487
25