@zendeskgarden/react-buttons
Advanced tools
Comparing version 3.6.10 to 3.6.11
@@ -6,2 +6,10 @@ # Change Log | ||
## [3.6.11](https://github.com/zendeskgarden/react-components/compare/@zendeskgarden/react-buttons@3.6.10...@zendeskgarden/react-buttons@3.6.11) (2018-12-04) | ||
**Note:** Version bump only for package @zendeskgarden/react-buttons | ||
## [3.6.10](https://github.com/zendeskgarden/react-components/compare/@zendeskgarden/react-buttons@3.6.9...@zendeskgarden/react-buttons@3.6.10) (2018-11-30) | ||
@@ -8,0 +16,0 @@ |
@@ -193,3 +193,3 @@ /*! | ||
'data-garden-id': COMPONENT_ID, | ||
'data-garden-version': "3.6.10", | ||
'data-garden-version': "3.6.11", | ||
className: function className(_ref) { | ||
@@ -504,3 +504,3 @@ var _classNames; | ||
'data-garden-id': COMPONENT_ID, | ||
'data-garden-version': "3.6.10", | ||
'data-garden-version': "3.6.11", | ||
className: function className(props) { | ||
@@ -566,3 +566,3 @@ return (0, _classnames2.default)(_cssButtons2.default['l-btn-group'], _defineProperty({}, _cssButtons2.default['is-rtl'], (0, _reactTheming.isRtl)(props))); | ||
'data-garden-id': COMPONENT_ID, | ||
'data-garden-version': "3.6.10", | ||
'data-garden-version': "3.6.11", | ||
className: _cssButtons2.default['c-btn--icon'] | ||
@@ -649,3 +649,3 @@ }).withConfig({ | ||
'data-garden-id': COMPONENT_ID, | ||
'data-garden-version': "3.6.10", | ||
'data-garden-version': "3.6.11", | ||
className: (0, _classnames2.default)(_cssButtons2.default['c-btn__icon'], _defineProperty({}, _cssButtons2.default['is-rotated'], rotated)) | ||
@@ -995,3 +995,3 @@ }); | ||
'data-garden-id': COMPONENT_ID, | ||
'data-garden-version': "3.6.10", | ||
'data-garden-version': "3.6.11", | ||
className: function className(_ref) { | ||
@@ -998,0 +998,0 @@ var _classNames; |
@@ -31,3 +31,3 @@ /*! | ||
*/ | ||
!function(){"use strict";var i={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var r=typeof n;if("string"===r||"number"===r)e.push(n);else if(Array.isArray(n)&&n.length){var o=a.apply(null,n);o&&e.push(o)}else if("object"===r)for(var u in n)i.call(n,u)&&n[u]&&e.push(u)}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(r=function(){return a}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=!("undefined"==typeof window||!window.document||!window.document.createElement);t.default=r,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});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},a=d(n(2)),r=d(n(1)),o=d(n(7)),y=d(n(8)),b=d(n(4)),l=n(5),u=n(3);function d(e){return e&&e.__esModule?e:{default:e}}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f="buttons.button",h="small",g="large",c=o.default.button.attrs({"data-garden-id":f,"data-garden-version":"3.6.10",className:function(e){var t,n=e.danger,r=e.size,o=e.stretched,u=e.disabled,i=e.focused,a=e.hovered,l=e.active,d=e.selected,f=e.pill,c=e.primary,s=e.basic,p=e.muted,v=e.link;return(0,y.default)(b.default["c-btn"],(m(t={},b.default["c-btn--danger"],!u&&n),m(t,b.default["c-btn--primary"],c),m(t,b.default["c-btn--basic"],s),m(t,b.default["c-btn--muted"],p),m(t,b.default["c-btn--pill"],f),m(t,b.default["c-btn--anchor"],v),m(t,b.default["c-btn--sm"],r===h),m(t,b.default["c-btn--lg"],r===g),m(t,b.default["c-btn--full"],o),m(t,b.default["is-active"],l),m(t,b.default["is-disabled"],u),m(t,b.default["is-focused"],i),m(t,b.default["is-hovered"],a),m(t,b.default["is-selected"],d),t))},type:"button"}).withConfig({displayName:"Button__StyledButton",componentId:"sc-12lsl5w-0"})(["",";"],function(e){return(0,u.retrieveTheme)(f,e)}),s=function(e){var r=e.focused,o=e.buttonRef,u=function(e,t){var n={};for(var r in e)0<=t.indexOf(r)||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["focused","buttonRef"]);return a.default.createElement(l.KeyboardFocusContainer,null,function(e){var t=e.getFocusProps,n=e.keyboardFocused;return a.default.createElement(c,t(i({innerRef:o},u,{focused:r||n})))})};s.propTypes={danger:r.default.bool,size:r.default.oneOf([h,g]),stretched:r.default.bool,primary:r.default.bool,basic:r.default.bool,muted:r.default.bool,link:r.default.bool,pill:r.default.bool,disabled:r.default.bool,focused:r.default.bool,hovered:r.default.bool,active:r.default.bool,selected:r.default.bool,buttonRef:r.default.func},s.hasType=function(){return s},t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var d=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},r=function(){function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}}(),f=u(n(2)),o=u(n(1)),c=n(5),s=u(n(34));function u(e){return e&&e.__esModule?e:{default:e}}function p(e,t){var n={};for(var r in e)0<=t.indexOf(r)||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var i=function(e){function o(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];var l=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(e=o.__proto__||Object.getPrototypeOf(o)).call.apply(e,[this].concat(n)));return l.getGroupProps=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.role,n=void 0===t?"group":t,r=p(e,["role"]);return d({role:n},r)},l.getButtonProps=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.role,n=void 0===t?"button":t,r=e.key,o=e.tabIndex,u=void 0===o?-1:o,i=e.onFocus,a=p(e,["role","key","tabIndex","onFocus"]);if(null==r)throw new Error('"key" must be defined within getButtonProps regardless of being used within a .map()');return d({role:n,key:r,tabIndex:u,onFocus:(0,c.composeEventHandlers)(i,function(e){var t=e.target,n=l.getGroupProps().role;(0,s.default)(t,'[role="'+n+'"]').focus()})},a)},l.state={focusedKey:void 0,selectedKey:void 0,id:c.IdManager.generateId("garden-button-group-container")},l}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,c.ControlledComponent),r(o,[{key:"render",value:function(){var r=this,e=this.props,t=e.children,n=e.render,o=void 0===n?t:n,u=this.getControlledState(),i=u.focusedKey,a=u.selectedKey,l=u.id;return f.default.createElement(c.SelectionContainer,{id:l,focusedKey:i,selectedKey:a,onStateChange:this.setControlledState},function(e){var t=e.getContainerProps,n=e.getItemProps;return o({getGroupProps:function(e){return t(r.getGroupProps(e))},getButtonProps:function(e){return n(r.getButtonProps(e),{selectedAriaKey:"aria-pressed"})},focusedKey:i,selectedKey:a})})}}]),o}();i.propTypes={id:o.default.string,focusedKey:o.default.oneOfType([o.default.string,o.default.number]),selectedKey:o.default.oneOfType([o.default.string,o.default.number]),onStateChange:o.default.func,children:o.default.func,render:o.default.func},t.default=i},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=function(e){var t=(0,a.default)(e),n=(0,i.default)(t),r=t&&t.documentElement,o={top:0,left:0,height:0,width:0};if(!t)return;if(!(0,u.default)(r,e))return o;void 0!==e.getBoundingClientRect&&(o=e.getBoundingClientRect());return o={top:o.top+(n.pageYOffset||r.scrollTop)-(r.clientTop||0),left:o.left+(n.pageXOffset||r.scrollLeft)-(r.clientLeft||0),width:(null==o.width?e.offsetWidth:o.width)||0,height:(null==o.height?e.offsetHeight:o.height)||0}};var u=r(n(21)),i=r(n(6)),a=r(n(22));e.exports=t.default},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=function(e,t){var n=(0,u.default)(e);return n?n.innerHeight:t?e.clientHeight:(0,o.default)(e).height};var o=r(n(12)),u=r(n(6));e.exports=t.default},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=function(e){return(0,o.default)(e.replace(u,"ms-"))};var o=r(n(25)),u=/^-ms-/;e.exports=t.default},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(7)),o=a(n(8)),u=a(n(4)),i=n(3);function a(e){return e&&e.__esModule?e:{default:e}}var l="buttons.button_group_view",d=r.default.div.attrs({"data-garden-id":l,"data-garden-version":"3.6.10",className:function(e){return(0,o.default)(u.default["l-btn-group"],(t={},n=u.default["is-rtl"],r=(0,i.isRtl)(e),n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t));var t,n,r}}).withConfig({displayName:"ButtonGroupView",componentId:"gztssn-0"})([":focus{outline:none;}",";"],function(e){return(0,i.retrieveTheme)(l,e)});t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=l(n(1)),o=l(n(7)),u=l(n(4)),i=n(3),a=l(n(10));function l(e){return e&&e.__esModule?e:{default:e}}var d="small",f="large",c=(0,o.default)(a.default).attrs({"data-garden-id":"buttons.icon_button","data-garden-version":"3.6.10",className:u.default["c-btn--icon"]}).withConfig({displayName:"IconButton",componentId:"x15t1e-0"})(["",";"],function(e){return(0,i.retrieveTheme)("buttons.icon_button",e)});c.propTypes={danger:r.default.bool,size:r.default.oneOf([d,f]),primary:r.default.bool,basic:r.default.bool,muted:r.default.bool,pill:r.default.bool,disabled:r.default.bool,focused:r.default.bool,hovered:r.default.bool,active:r.default.bool,buttonRef:r.default.func},c.defaultProps={pill:!0,muted:!0,basic:!0},t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),a=o(i),r=o(n(1)),l=o(n(8)),d=o(n(4));function o(e){return e&&e.__esModule?e:{default:e}}var u=function(e){var t,n,r,o=e.children,u=e.rotated;return a.default.cloneElement(i.Children.only(o),{"data-garden-id":"buttons.icon","data-garden-version":"3.6.10",className:(0,l.default)(d.default["c-btn__icon"],(t={},n=d.default["is-rotated"],r=u,n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t))})};u.propTypes={rotated:r.default.bool},t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(11);Object.defineProperty(t,"ButtonGroupContainer",{enumerable:!0,get:function(){return c(r).default}});var o=n(38);Object.defineProperty(t,"ButtonGroup",{enumerable:!0,get:function(){return c(o).default}});var u=n(40);Object.defineProperty(t,"Anchor",{enumerable:!0,get:function(){return c(u).default}});var i=n(10);Object.defineProperty(t,"Button",{enumerable:!0,get:function(){return c(i).default}});var a=n(41);Object.defineProperty(t,"ChevronButton",{enumerable:!0,get:function(){return c(a).default}});var l=n(17);Object.defineProperty(t,"IconButton",{enumerable:!0,get:function(){return c(l).default}});var d=n(18);Object.defineProperty(t,"Icon",{enumerable:!0,get:function(){return c(d).default}});var f=n(16);function c(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"ButtonGroupView",{enumerable:!0,get:function(){return c(f).default}})},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=function(e,t){var n,r,o,u,i,a,l,d=(0,s.default)(e),f={top:0,left:0};if(!e)return;n=t||(0,v.default)(e),u=(0,m.default)(n),r=(0,y.default)(n),a=(0,p.default)(n,!0),(u=(0,m.default)(n))||(f=(0,s.default)(n));d={top:d.top-f.top,left:d.left-f.left,height:d.height,width:d.width},i=d.height,o=d.top+(u?0:r),l=o+i,r=o<r?o:r+a<l?l-a:r;var c=(0,b.default)(function(){return(0,y.default)(n,r)});return function(){return b.default.cancel(c)}};var s=r(n(12)),p=r(n(13)),v=r(n(23)),y=r(n(32)),b=r(n(33)),m=r(n(6));e.exports=t.default},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(9)).default?function(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):u(e,t)}:u;function u(e,t){if(t)do{if(t===e)return!0}while(t=t.parentNode);return!1}t.default=o,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return e&&e.ownerDocument||document},e.exports=t.default},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=function(e){var t=(0,i.default)(e,"position"),n="absolute"===t,r=e.ownerDocument;if("fixed"===t)return r||document;for(;(e=e.parentNode)&&9!==e.nodeType;){var o=n&&"static"===(0,i.default)(e,"position"),u=(0,i.default)(e,"overflow")+(0,i.default)(e,"overflow-y")+(0,i.default)(e,"overflow-x");if(!o&&(/(auto|scroll)/.test(u)&&(0,a.default)(e)<e.scrollHeight))return e}return document};var i=r(n(24)),a=r(n(13));e.exports=t.default},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=function(n,e,t){var r="",o="",u=e;if("string"==typeof e){if(void 0===t)return n.style[(0,i.default)(e)]||(0,l.default)(n).getPropertyValue((0,a.default)(e));(u={})[e]=t}Object.keys(u).forEach(function(e){var t=u[e];t||0===t?(0,c.default)(e)?o+=e+"("+t+") ":r+=(0,a.default)(e)+": "+t+";":(0,d.default)(n,(0,a.default)(e))}),o&&(r+=f.transform+": "+o+";");n.style.cssText+=";"+r};var i=r(n(14)),a=r(n(26)),l=r(n(28)),d=r(n(29)),f=n(30),c=r(n(31));e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return e.replace(r,function(e,t){return t.toUpperCase()})};var r=/-(.)/g;e.exports=t.default},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=function(e){return(0,o.default)(e).replace(u,"-ms-")};var o=r(n(27)),u=/^ms-/;e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return e.replace(r,"-$1").toLowerCase()};var r=/([A-Z])/g;e.exports=t.default},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=function(i){if(!i)throw new TypeError("No Element passed to `getComputedStyle()`");var e=i.ownerDocument;return"defaultView"in e?e.defaultView.opener?i.ownerDocument.defaultView.getComputedStyle(i,null):window.getComputedStyle(i,null):{getPropertyValue:function(e){var t=i.style;"float"==(e=(0,a.default)(e))&&(e="styleFloat");var n=i.currentStyle[e]||null;if(null==n&&t&&t[e]&&(n=t[e]),d.test(n)&&!l.test(e)){var r=t.left,o=i.runtimeStyle,u=o&&o.left;u&&(o.left=i.currentStyle.left),t.left="fontSize"===e?"1em":n,n=t.pixelLeft+"px",t.left=r,u&&(o.left=u)}return n}}};var a=r(n(14)),l=/^(top|right|bottom|left)$/,d=/^([+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|))(?!px)[a-z%]+$/i;e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){return"removeProperty"in e.style?e.style.removeProperty(t):e.style.removeAttribute(t)},e.exports=t.default},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=t.animationEnd=t.animationDelay=t.animationTiming=t.animationDuration=t.animationName=t.transitionEnd=t.transitionDuration=t.transitionDelay=t.transitionTiming=t.transitionProperty=t.transform=void 0;var o,u,i,a,l,d,f,c,s,p,v,y=r(n(9)),b="transform";if(t.transform=b,t.animationEnd=i,t.transitionEnd=u,t.transitionDelay=f,t.transitionTiming=d,t.transitionDuration=l,t.transitionProperty=a,t.animationDelay=v,t.animationTiming=p,t.animationDuration=s,t.animationName=c,y.default){var m=function(){for(var e,t,n=document.createElement("div").style,r={O:function(e){return"o"+e.toLowerCase()},Moz:function(e){return e.toLowerCase()},Webkit:function(e){return"webkit"+e},ms:function(e){return"MS"+e}},o=Object.keys(r),u="",i=0;i<o.length;i++){var a=o[i];if(a+"TransitionProperty"in n){u="-"+a.toLowerCase(),e=r[a]("TransitionEnd"),t=r[a]("AnimationEnd");break}}!e&&"transitionProperty"in n&&(e="transitionend");!t&&"animationName"in n&&(t="animationend");return n=null,{animationEnd:t,transitionEnd:e,prefix:u}}();o=m.prefix,t.transitionEnd=u=m.transitionEnd,t.animationEnd=i=m.animationEnd,t.transform=b=o+"-"+b,t.transitionProperty=a=o+"-transition-property",t.transitionDuration=l=o+"-transition-duration",t.transitionDelay=f=o+"-transition-delay",t.transitionTiming=d=o+"-transition-timing-function",t.animationName=c=o+"-animation-name",t.animationDuration=s=o+"-animation-duration",t.animationTiming=p=o+"-animation-delay",t.animationDelay=v=o+"-animation-timing-function"}var h={transform:b,end:u,property:a,timing:d,delay:f,duration:l};t.default=h},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return!(!e||!r.test(e))};var r=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;e.exports=t.default},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=function(e,t){var n=(0,o.default)(e);if(void 0===t)return n?"pageYOffset"in n?n.pageYOffset:n.document.documentElement.scrollTop:e.scrollTop;n?n.scrollTo("pageXOffset"in n?n.pageXOffset:n.document.documentElement.scrollLeft,t):e.scrollTop=t};var o=r(n(6));e.exports=t.default},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o,u=r(n(9)),i="clearTimeout",a=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-d)),r=setTimeout(e,n);return d=t,r},l=function(e,t){return e+(e?t[0].toUpperCase()+t.substr(1):t)+"AnimationFrame"};u.default&&["","webkit","moz","o","ms"].some(function(e){var t=l(e,"request");if(t in window)return i=l(e,"cancel"),a=function(e){return window[t](e)}});var d=(new Date).getTime();(o=function(e){return a(e)}).cancel=function(e){window[i]&&"function"==typeof window[i]&&window[i](e)};var f=o;t.default=f,e.exports=t.default},function(e,t,n){"use strict";var r=n(15);t.__esModule=!0,t.default=function(e,t,n){for(;e&&(u(e)||!(0,o.default)(e,t));)e=e===n||u(e)?void 0:e.parentNode;return e};var o=r(n(35)),u=function(e){return null!=e&&e.nodeType===e.DOCUMENT_NODE};e.exports=t.default},function(e,t,n){"use strict";var r=n(15);t.__esModule=!0,t.default=function(e,t){if(!o&&u.default){var n=document.body,r=n.matches||n.matchesSelector||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector;o=r?function(e,t){return r.call(e,t)}:a}return o?o(e,t):null};var o,u=r(n(36)),i=r(n(37));function a(e,t){for(var n=(0,i.default)(e.document||e.ownerDocument,t),r=0;n[r]&&n[r]!==e;)r++;return!!n[r]}e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=!("undefined"==typeof window||!window.document||!window.document.createElement);t.default=r,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){var n,r="#"===t[0],o="."===t[0],u=r||o?t.slice(1):t;if(i.test(u))return r?(e=e.getElementById?e:document,(n=e.getElementById(u))?[n]:[]):e.getElementsByClassName&&o?a(e.getElementsByClassName(u)):a(e.getElementsByTagName(t));return a(e.querySelectorAll(t))};var i=/^[\w-]*$/,a=Function.prototype.bind.call(Function.prototype.call,[].slice);e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});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},r=function(){function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}}(),a=n(2),l=u(a),o=u(n(1)),d=n(5),f=n(39),c=u(n(11)),s=u(n(16)),p=u(n(10));function u(e){return e&&e.__esModule?e:{default:e}}var v=function(e){function o(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];var u=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(e=o.__proto__||Object.getPrototypeOf(o)).call.apply(e,[this].concat(n)));return u.renderButtons=function(n){var e=u.props.children,t=u.getControlledState(),r=t.selectedKey,o=t.focusedKey;return a.Children.map(e,function(e){if(!(0,a.isValidElement)(e))return e;if((0,f.hasType)(e,p.default)){if(e.props.disabled)return e;var t=e.key;if(!t)throw new Error('"key" prop must be provided to Button');return void 0===u.firstKey&&(u.firstKey=t),(0,a.cloneElement)(e,n(i({key:t,selected:t===r,focused:t===o},e.props)))}return e})},u.state={id:d.IdManager.generateId("garden-button-group"),selectedKey:void 0,focusedKey:void 0},u.firstKey=void 0,u}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,d.ControlledComponent),r(o,[{key:"componentDidMount",value:function(){this.isControlledProp("selectedKey")||void 0===this.firstKey||this.setControlledState({selectedKey:this.firstKey})}},{key:"render",value:function(){var r=this,e=this.props,o=(e.children,function(e,t){var n={};for(var r in e)0<=t.indexOf(r)||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["children"])),t=this.getControlledState(),n=t.focusedKey,u=t.selectedKey,i=t.id;return l.default.createElement(c.default,{id:i,focusedKey:n,selectedKey:u,onStateChange:this.setControlledState},function(e){var t=e.getGroupProps,n=e.getButtonProps;return l.default.createElement(s.default,t(o),r.renderButtons(n))})}}]),o}();v.propTypes={id:o.default.any,children:o.default.any,selectedKey:o.default.any,onStateChange:o.default.func},t.default=v},function(e,t,n){"use strict";var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}; | ||
!function(){"use strict";var i={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var r=typeof n;if("string"===r||"number"===r)e.push(n);else if(Array.isArray(n)&&n.length){var o=a.apply(null,n);o&&e.push(o)}else if("object"===r)for(var u in n)i.call(n,u)&&n[u]&&e.push(u)}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(r=function(){return a}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=!("undefined"==typeof window||!window.document||!window.document.createElement);t.default=r,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});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},a=d(n(2)),r=d(n(1)),o=d(n(7)),y=d(n(8)),b=d(n(4)),l=n(5),u=n(3);function d(e){return e&&e.__esModule?e:{default:e}}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f="buttons.button",h="small",g="large",c=o.default.button.attrs({"data-garden-id":f,"data-garden-version":"3.6.11",className:function(e){var t,n=e.danger,r=e.size,o=e.stretched,u=e.disabled,i=e.focused,a=e.hovered,l=e.active,d=e.selected,f=e.pill,c=e.primary,s=e.basic,p=e.muted,v=e.link;return(0,y.default)(b.default["c-btn"],(m(t={},b.default["c-btn--danger"],!u&&n),m(t,b.default["c-btn--primary"],c),m(t,b.default["c-btn--basic"],s),m(t,b.default["c-btn--muted"],p),m(t,b.default["c-btn--pill"],f),m(t,b.default["c-btn--anchor"],v),m(t,b.default["c-btn--sm"],r===h),m(t,b.default["c-btn--lg"],r===g),m(t,b.default["c-btn--full"],o),m(t,b.default["is-active"],l),m(t,b.default["is-disabled"],u),m(t,b.default["is-focused"],i),m(t,b.default["is-hovered"],a),m(t,b.default["is-selected"],d),t))},type:"button"}).withConfig({displayName:"Button__StyledButton",componentId:"sc-12lsl5w-0"})(["",";"],function(e){return(0,u.retrieveTheme)(f,e)}),s=function(e){var r=e.focused,o=e.buttonRef,u=function(e,t){var n={};for(var r in e)0<=t.indexOf(r)||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["focused","buttonRef"]);return a.default.createElement(l.KeyboardFocusContainer,null,function(e){var t=e.getFocusProps,n=e.keyboardFocused;return a.default.createElement(c,t(i({innerRef:o},u,{focused:r||n})))})};s.propTypes={danger:r.default.bool,size:r.default.oneOf([h,g]),stretched:r.default.bool,primary:r.default.bool,basic:r.default.bool,muted:r.default.bool,link:r.default.bool,pill:r.default.bool,disabled:r.default.bool,focused:r.default.bool,hovered:r.default.bool,active:r.default.bool,selected:r.default.bool,buttonRef:r.default.func},s.hasType=function(){return s},t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var d=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},r=function(){function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}}(),f=u(n(2)),o=u(n(1)),c=n(5),s=u(n(34));function u(e){return e&&e.__esModule?e:{default:e}}function p(e,t){var n={};for(var r in e)0<=t.indexOf(r)||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var i=function(e){function o(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];var l=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(e=o.__proto__||Object.getPrototypeOf(o)).call.apply(e,[this].concat(n)));return l.getGroupProps=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.role,n=void 0===t?"group":t,r=p(e,["role"]);return d({role:n},r)},l.getButtonProps=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.role,n=void 0===t?"button":t,r=e.key,o=e.tabIndex,u=void 0===o?-1:o,i=e.onFocus,a=p(e,["role","key","tabIndex","onFocus"]);if(null==r)throw new Error('"key" must be defined within getButtonProps regardless of being used within a .map()');return d({role:n,key:r,tabIndex:u,onFocus:(0,c.composeEventHandlers)(i,function(e){var t=e.target,n=l.getGroupProps().role;(0,s.default)(t,'[role="'+n+'"]').focus()})},a)},l.state={focusedKey:void 0,selectedKey:void 0,id:c.IdManager.generateId("garden-button-group-container")},l}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,c.ControlledComponent),r(o,[{key:"render",value:function(){var r=this,e=this.props,t=e.children,n=e.render,o=void 0===n?t:n,u=this.getControlledState(),i=u.focusedKey,a=u.selectedKey,l=u.id;return f.default.createElement(c.SelectionContainer,{id:l,focusedKey:i,selectedKey:a,onStateChange:this.setControlledState},function(e){var t=e.getContainerProps,n=e.getItemProps;return o({getGroupProps:function(e){return t(r.getGroupProps(e))},getButtonProps:function(e){return n(r.getButtonProps(e),{selectedAriaKey:"aria-pressed"})},focusedKey:i,selectedKey:a})})}}]),o}();i.propTypes={id:o.default.string,focusedKey:o.default.oneOfType([o.default.string,o.default.number]),selectedKey:o.default.oneOfType([o.default.string,o.default.number]),onStateChange:o.default.func,children:o.default.func,render:o.default.func},t.default=i},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=function(e){var t=(0,a.default)(e),n=(0,i.default)(t),r=t&&t.documentElement,o={top:0,left:0,height:0,width:0};if(!t)return;if(!(0,u.default)(r,e))return o;void 0!==e.getBoundingClientRect&&(o=e.getBoundingClientRect());return o={top:o.top+(n.pageYOffset||r.scrollTop)-(r.clientTop||0),left:o.left+(n.pageXOffset||r.scrollLeft)-(r.clientLeft||0),width:(null==o.width?e.offsetWidth:o.width)||0,height:(null==o.height?e.offsetHeight:o.height)||0}};var u=r(n(21)),i=r(n(6)),a=r(n(22));e.exports=t.default},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=function(e,t){var n=(0,u.default)(e);return n?n.innerHeight:t?e.clientHeight:(0,o.default)(e).height};var o=r(n(12)),u=r(n(6));e.exports=t.default},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=function(e){return(0,o.default)(e.replace(u,"ms-"))};var o=r(n(25)),u=/^-ms-/;e.exports=t.default},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(7)),o=a(n(8)),u=a(n(4)),i=n(3);function a(e){return e&&e.__esModule?e:{default:e}}var l="buttons.button_group_view",d=r.default.div.attrs({"data-garden-id":l,"data-garden-version":"3.6.11",className:function(e){return(0,o.default)(u.default["l-btn-group"],(t={},n=u.default["is-rtl"],r=(0,i.isRtl)(e),n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t));var t,n,r}}).withConfig({displayName:"ButtonGroupView",componentId:"gztssn-0"})([":focus{outline:none;}",";"],function(e){return(0,i.retrieveTheme)(l,e)});t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=l(n(1)),o=l(n(7)),u=l(n(4)),i=n(3),a=l(n(10));function l(e){return e&&e.__esModule?e:{default:e}}var d="small",f="large",c=(0,o.default)(a.default).attrs({"data-garden-id":"buttons.icon_button","data-garden-version":"3.6.11",className:u.default["c-btn--icon"]}).withConfig({displayName:"IconButton",componentId:"x15t1e-0"})(["",";"],function(e){return(0,i.retrieveTheme)("buttons.icon_button",e)});c.propTypes={danger:r.default.bool,size:r.default.oneOf([d,f]),primary:r.default.bool,basic:r.default.bool,muted:r.default.bool,pill:r.default.bool,disabled:r.default.bool,focused:r.default.bool,hovered:r.default.bool,active:r.default.bool,buttonRef:r.default.func},c.defaultProps={pill:!0,muted:!0,basic:!0},t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),a=o(i),r=o(n(1)),l=o(n(8)),d=o(n(4));function o(e){return e&&e.__esModule?e:{default:e}}var u=function(e){var t,n,r,o=e.children,u=e.rotated;return a.default.cloneElement(i.Children.only(o),{"data-garden-id":"buttons.icon","data-garden-version":"3.6.11",className:(0,l.default)(d.default["c-btn__icon"],(t={},n=d.default["is-rotated"],r=u,n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t))})};u.propTypes={rotated:r.default.bool},t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(11);Object.defineProperty(t,"ButtonGroupContainer",{enumerable:!0,get:function(){return c(r).default}});var o=n(38);Object.defineProperty(t,"ButtonGroup",{enumerable:!0,get:function(){return c(o).default}});var u=n(40);Object.defineProperty(t,"Anchor",{enumerable:!0,get:function(){return c(u).default}});var i=n(10);Object.defineProperty(t,"Button",{enumerable:!0,get:function(){return c(i).default}});var a=n(41);Object.defineProperty(t,"ChevronButton",{enumerable:!0,get:function(){return c(a).default}});var l=n(17);Object.defineProperty(t,"IconButton",{enumerable:!0,get:function(){return c(l).default}});var d=n(18);Object.defineProperty(t,"Icon",{enumerable:!0,get:function(){return c(d).default}});var f=n(16);function c(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"ButtonGroupView",{enumerable:!0,get:function(){return c(f).default}})},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=function(e,t){var n,r,o,u,i,a,l,d=(0,s.default)(e),f={top:0,left:0};if(!e)return;n=t||(0,v.default)(e),u=(0,m.default)(n),r=(0,y.default)(n),a=(0,p.default)(n,!0),(u=(0,m.default)(n))||(f=(0,s.default)(n));d={top:d.top-f.top,left:d.left-f.left,height:d.height,width:d.width},i=d.height,o=d.top+(u?0:r),l=o+i,r=o<r?o:r+a<l?l-a:r;var c=(0,b.default)(function(){return(0,y.default)(n,r)});return function(){return b.default.cancel(c)}};var s=r(n(12)),p=r(n(13)),v=r(n(23)),y=r(n(32)),b=r(n(33)),m=r(n(6));e.exports=t.default},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(9)).default?function(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):u(e,t)}:u;function u(e,t){if(t)do{if(t===e)return!0}while(t=t.parentNode);return!1}t.default=o,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return e&&e.ownerDocument||document},e.exports=t.default},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=function(e){var t=(0,i.default)(e,"position"),n="absolute"===t,r=e.ownerDocument;if("fixed"===t)return r||document;for(;(e=e.parentNode)&&9!==e.nodeType;){var o=n&&"static"===(0,i.default)(e,"position"),u=(0,i.default)(e,"overflow")+(0,i.default)(e,"overflow-y")+(0,i.default)(e,"overflow-x");if(!o&&(/(auto|scroll)/.test(u)&&(0,a.default)(e)<e.scrollHeight))return e}return document};var i=r(n(24)),a=r(n(13));e.exports=t.default},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=function(n,e,t){var r="",o="",u=e;if("string"==typeof e){if(void 0===t)return n.style[(0,i.default)(e)]||(0,l.default)(n).getPropertyValue((0,a.default)(e));(u={})[e]=t}Object.keys(u).forEach(function(e){var t=u[e];t||0===t?(0,c.default)(e)?o+=e+"("+t+") ":r+=(0,a.default)(e)+": "+t+";":(0,d.default)(n,(0,a.default)(e))}),o&&(r+=f.transform+": "+o+";");n.style.cssText+=";"+r};var i=r(n(14)),a=r(n(26)),l=r(n(28)),d=r(n(29)),f=n(30),c=r(n(31));e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return e.replace(r,function(e,t){return t.toUpperCase()})};var r=/-(.)/g;e.exports=t.default},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=function(e){return(0,o.default)(e).replace(u,"-ms-")};var o=r(n(27)),u=/^ms-/;e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return e.replace(r,"-$1").toLowerCase()};var r=/([A-Z])/g;e.exports=t.default},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=function(i){if(!i)throw new TypeError("No Element passed to `getComputedStyle()`");var e=i.ownerDocument;return"defaultView"in e?e.defaultView.opener?i.ownerDocument.defaultView.getComputedStyle(i,null):window.getComputedStyle(i,null):{getPropertyValue:function(e){var t=i.style;"float"==(e=(0,a.default)(e))&&(e="styleFloat");var n=i.currentStyle[e]||null;if(null==n&&t&&t[e]&&(n=t[e]),d.test(n)&&!l.test(e)){var r=t.left,o=i.runtimeStyle,u=o&&o.left;u&&(o.left=i.currentStyle.left),t.left="fontSize"===e?"1em":n,n=t.pixelLeft+"px",t.left=r,u&&(o.left=u)}return n}}};var a=r(n(14)),l=/^(top|right|bottom|left)$/,d=/^([+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|))(?!px)[a-z%]+$/i;e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){return"removeProperty"in e.style?e.style.removeProperty(t):e.style.removeAttribute(t)},e.exports=t.default},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=t.animationEnd=t.animationDelay=t.animationTiming=t.animationDuration=t.animationName=t.transitionEnd=t.transitionDuration=t.transitionDelay=t.transitionTiming=t.transitionProperty=t.transform=void 0;var o,u,i,a,l,d,f,c,s,p,v,y=r(n(9)),b="transform";if(t.transform=b,t.animationEnd=i,t.transitionEnd=u,t.transitionDelay=f,t.transitionTiming=d,t.transitionDuration=l,t.transitionProperty=a,t.animationDelay=v,t.animationTiming=p,t.animationDuration=s,t.animationName=c,y.default){var m=function(){for(var e,t,n=document.createElement("div").style,r={O:function(e){return"o"+e.toLowerCase()},Moz:function(e){return e.toLowerCase()},Webkit:function(e){return"webkit"+e},ms:function(e){return"MS"+e}},o=Object.keys(r),u="",i=0;i<o.length;i++){var a=o[i];if(a+"TransitionProperty"in n){u="-"+a.toLowerCase(),e=r[a]("TransitionEnd"),t=r[a]("AnimationEnd");break}}!e&&"transitionProperty"in n&&(e="transitionend");!t&&"animationName"in n&&(t="animationend");return n=null,{animationEnd:t,transitionEnd:e,prefix:u}}();o=m.prefix,t.transitionEnd=u=m.transitionEnd,t.animationEnd=i=m.animationEnd,t.transform=b=o+"-"+b,t.transitionProperty=a=o+"-transition-property",t.transitionDuration=l=o+"-transition-duration",t.transitionDelay=f=o+"-transition-delay",t.transitionTiming=d=o+"-transition-timing-function",t.animationName=c=o+"-animation-name",t.animationDuration=s=o+"-animation-duration",t.animationTiming=p=o+"-animation-delay",t.animationDelay=v=o+"-animation-timing-function"}var h={transform:b,end:u,property:a,timing:d,delay:f,duration:l};t.default=h},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return!(!e||!r.test(e))};var r=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;e.exports=t.default},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=function(e,t){var n=(0,o.default)(e);if(void 0===t)return n?"pageYOffset"in n?n.pageYOffset:n.document.documentElement.scrollTop:e.scrollTop;n?n.scrollTo("pageXOffset"in n?n.pageXOffset:n.document.documentElement.scrollLeft,t):e.scrollTop=t};var o=r(n(6));e.exports=t.default},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o,u=r(n(9)),i="clearTimeout",a=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-d)),r=setTimeout(e,n);return d=t,r},l=function(e,t){return e+(e?t[0].toUpperCase()+t.substr(1):t)+"AnimationFrame"};u.default&&["","webkit","moz","o","ms"].some(function(e){var t=l(e,"request");if(t in window)return i=l(e,"cancel"),a=function(e){return window[t](e)}});var d=(new Date).getTime();(o=function(e){return a(e)}).cancel=function(e){window[i]&&"function"==typeof window[i]&&window[i](e)};var f=o;t.default=f,e.exports=t.default},function(e,t,n){"use strict";var r=n(15);t.__esModule=!0,t.default=function(e,t,n){for(;e&&(u(e)||!(0,o.default)(e,t));)e=e===n||u(e)?void 0:e.parentNode;return e};var o=r(n(35)),u=function(e){return null!=e&&e.nodeType===e.DOCUMENT_NODE};e.exports=t.default},function(e,t,n){"use strict";var r=n(15);t.__esModule=!0,t.default=function(e,t){if(!o&&u.default){var n=document.body,r=n.matches||n.matchesSelector||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector;o=r?function(e,t){return r.call(e,t)}:a}return o?o(e,t):null};var o,u=r(n(36)),i=r(n(37));function a(e,t){for(var n=(0,i.default)(e.document||e.ownerDocument,t),r=0;n[r]&&n[r]!==e;)r++;return!!n[r]}e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=!("undefined"==typeof window||!window.document||!window.document.createElement);t.default=r,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){var n,r="#"===t[0],o="."===t[0],u=r||o?t.slice(1):t;if(i.test(u))return r?(e=e.getElementById?e:document,(n=e.getElementById(u))?[n]:[]):e.getElementsByClassName&&o?a(e.getElementsByClassName(u)):a(e.getElementsByTagName(t));return a(e.querySelectorAll(t))};var i=/^[\w-]*$/,a=Function.prototype.bind.call(Function.prototype.call,[].slice);e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});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},r=function(){function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}}(),a=n(2),l=u(a),o=u(n(1)),d=n(5),f=n(39),c=u(n(11)),s=u(n(16)),p=u(n(10));function u(e){return e&&e.__esModule?e:{default:e}}var v=function(e){function o(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];var u=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(e=o.__proto__||Object.getPrototypeOf(o)).call.apply(e,[this].concat(n)));return u.renderButtons=function(n){var e=u.props.children,t=u.getControlledState(),r=t.selectedKey,o=t.focusedKey;return a.Children.map(e,function(e){if(!(0,a.isValidElement)(e))return e;if((0,f.hasType)(e,p.default)){if(e.props.disabled)return e;var t=e.key;if(!t)throw new Error('"key" prop must be provided to Button');return void 0===u.firstKey&&(u.firstKey=t),(0,a.cloneElement)(e,n(i({key:t,selected:t===r,focused:t===o},e.props)))}return e})},u.state={id:d.IdManager.generateId("garden-button-group"),selectedKey:void 0,focusedKey:void 0},u.firstKey=void 0,u}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,d.ControlledComponent),r(o,[{key:"componentDidMount",value:function(){this.isControlledProp("selectedKey")||void 0===this.firstKey||this.setControlledState({selectedKey:this.firstKey})}},{key:"render",value:function(){var r=this,e=this.props,o=(e.children,function(e,t){var n={};for(var r in e)0<=t.indexOf(r)||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["children"])),t=this.getControlledState(),n=t.focusedKey,u=t.selectedKey,i=t.id;return l.default.createElement(c.default,{id:i,focusedKey:n,selectedKey:u,onStateChange:this.setControlledState},function(e){var t=e.getGroupProps,n=e.getButtonProps;return l.default.createElement(s.default,t(o),r.renderButtons(n))})}}]),o}();v.propTypes={id:o.default.any,children:o.default.any,selectedKey:o.default.any,onStateChange:o.default.func},t.default=v},function(e,t,n){"use strict";var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}; | ||
/*! | ||
@@ -45,3 +45,3 @@ * Copyright Zendesk, Inc. | ||
*/ | ||
!function(e,t){for(var n in t)e[n]=t[n]}(t,function(n){var r={};function o(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}return o.m=n,o.c=r,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"===(void 0===t?"undefined":u(t))&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)o.d(n,r,function(e){return t[e]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=0)}([function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(1);Object.defineProperty(t,"hasType",{enumerable:!0,get:function(){return u(r).default}});var o=n(2);function u(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"requiredParam",{enumerable:!0,get:function(){return u(o).default}})},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1],n=e.type,r=void 0===n?{}:n,o=r.target,u=r.hasType,i=void 0;return u?i=u()===t:o&&o.hasType&&(i=o.hasType()===t),i}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(t)throw new Error(t);throw new Error('"'+e+'" is required')}}]))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=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=c(n(2)),r=c(n(1)),o=c(n(7)),l=c(n(8)),d=c(n(4)),a=n(5),f=n(3);function c(e){return e&&e.__esModule?e:{default:e}}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p="buttons.anchor",v=o.default.a.attrs({"data-garden-id":p,"data-garden-version":"3.6.10",className:function(e){var t,n=e.danger,r=e.disabled,o=e.focused,u=e.hovered,i=e.active,a=e.selected;return(0,l.default)(d.default["c-btn"],d.default["c-btn--anchor"],(s(t={},d.default["c-btn--danger"],n),s(t,d.default["is-active"],i),s(t,d.default["is-disabled"],r),s(t,d.default["is-focused"],o),s(t,d.default["is-hovered"],u),s(t,d.default["is-selected"],a),t))}}).withConfig({displayName:"Anchor__StyledAnchor",componentId:"sc-2qkkvq-0"})(["",";"],function(e){return(0,f.retrieveTheme)(p,e)}),y=function(e){var r=e.focused,o=function(e,t){var n={};for(var r in e)0<=t.indexOf(r)||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["focused"]);return i.default.createElement(a.KeyboardFocusContainer,null,function(e){var t=e.getFocusProps,n=e.keyboardFocused;return i.default.createElement(v,t(u({},o,{focused:r||n})))})};y.propTypes={danger:r.default.bool,disabled:r.default.bool,focused:r.default.bool,hovered:r.default.bool,active:r.default.bool},t.default=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},o=l(n(2)),u=l(n(1)),i=l(n(17)),a=l(n(18));function l(e){return e&&e.__esModule?e:{default:e}}var d=function(e){return o.default.createElement("svg",e,o.default.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",d:"M4 6.5l3.6 3.6c.2.2.5.2.7 0L12 6.5"}))};d.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"};var f="small",c="large",s=function(e){var t=e.rotated,n=function(e,t){var n={};for(var r in e)0<=t.indexOf(r)||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["rotated"]);return o.default.createElement(i.default,r({pill:!1,muted:!1,basic:!1},n),o.default.createElement(a.default,{rotated:t},o.default.createElement(d,null)))};s.propTypes={danger:u.default.bool,size:u.default.oneOf([f,c]),primary:u.default.bool,basic:u.default.bool,muted:u.default.bool,pill:u.default.bool,disabled:u.default.bool,focused:u.default.bool,hovered:u.default.bool,active:u.default.bool,buttonRef:u.default.func,rotated:u.default.bool},t.default=s}])}); | ||
!function(e,t){for(var n in t)e[n]=t[n]}(t,function(n){var r={};function o(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}return o.m=n,o.c=r,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"===(void 0===t?"undefined":u(t))&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)o.d(n,r,function(e){return t[e]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=0)}([function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(1);Object.defineProperty(t,"hasType",{enumerable:!0,get:function(){return u(r).default}});var o=n(2);function u(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"requiredParam",{enumerable:!0,get:function(){return u(o).default}})},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(!e)return!1;var n=e.type,r=void 0===n?{}:n,o=r.target,u=r.hasType,i=void 0;return u?i=u()===t:o&&o.hasType&&(i=o.hasType()===t),i}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(t)throw new Error(t);throw new Error('"'+e+'" is required')}}]))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=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=c(n(2)),r=c(n(1)),o=c(n(7)),l=c(n(8)),d=c(n(4)),a=n(5),f=n(3);function c(e){return e&&e.__esModule?e:{default:e}}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p="buttons.anchor",v=o.default.a.attrs({"data-garden-id":p,"data-garden-version":"3.6.11",className:function(e){var t,n=e.danger,r=e.disabled,o=e.focused,u=e.hovered,i=e.active,a=e.selected;return(0,l.default)(d.default["c-btn"],d.default["c-btn--anchor"],(s(t={},d.default["c-btn--danger"],n),s(t,d.default["is-active"],i),s(t,d.default["is-disabled"],r),s(t,d.default["is-focused"],o),s(t,d.default["is-hovered"],u),s(t,d.default["is-selected"],a),t))}}).withConfig({displayName:"Anchor__StyledAnchor",componentId:"sc-2qkkvq-0"})(["",";"],function(e){return(0,f.retrieveTheme)(p,e)}),y=function(e){var r=e.focused,o=function(e,t){var n={};for(var r in e)0<=t.indexOf(r)||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["focused"]);return i.default.createElement(a.KeyboardFocusContainer,null,function(e){var t=e.getFocusProps,n=e.keyboardFocused;return i.default.createElement(v,t(u({},o,{focused:r||n})))})};y.propTypes={danger:r.default.bool,disabled:r.default.bool,focused:r.default.bool,hovered:r.default.bool,active:r.default.bool},t.default=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},o=l(n(2)),u=l(n(1)),i=l(n(17)),a=l(n(18));function l(e){return e&&e.__esModule?e:{default:e}}var d=function(e){return o.default.createElement("svg",e,o.default.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",d:"M4 6.5l3.6 3.6c.2.2.5.2.7 0L12 6.5"}))};d.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"};var f="small",c="large",s=function(e){var t=e.rotated,n=function(e,t){var n={};for(var r in e)0<=t.indexOf(r)||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["rotated"]);return o.default.createElement(i.default,r({pill:!1,muted:!1,basic:!1},n),o.default.createElement(a.default,{rotated:t},o.default.createElement(d,null)))};s.propTypes={danger:u.default.bool,size:u.default.oneOf([f,c]),primary:u.default.bool,basic:u.default.bool,muted:u.default.bool,pill:u.default.bool,disabled:u.default.bool,focused:u.default.bool,hovered:u.default.bool,active:u.default.bool,buttonRef:u.default.func,rotated:u.default.bool},t.default=s}])}); | ||
//# sourceMappingURL=bundle.min.js.map |
@@ -11,3 +11,3 @@ { | ||
}, | ||
"version": "3.6.10", | ||
"version": "3.6.11", | ||
"main": "./dist/index.js", | ||
@@ -24,3 +24,3 @@ "files": [ | ||
"@zendeskgarden/react-selection": "^4.6.0", | ||
"@zendeskgarden/react-utilities": "^0.2.2", | ||
"@zendeskgarden/react-utilities": "^0.2.3", | ||
"classnames": "^2.2.5", | ||
@@ -52,3 +52,3 @@ "dom-helpers": "^3.3.1" | ||
"zendeskgarden:src": "src/index.js", | ||
"gitHead": "7249e5f9539f14e639646202d302870494ce8949" | ||
"gitHead": "43aee5d90b1cd733640e53bce71564f1ab925d44" | ||
} |
Sorry, the diff of this file is not supported yet
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
351927