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

@zendeskgarden/react-buttons

Package Overview
Dependencies
Maintainers
1
Versions
274
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zendeskgarden/react-buttons - npm Package Compare versions

Comparing version 3.6.5 to 3.6.6

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

## [3.6.6](https://github.com/zendeskgarden/react-components/compare/@zendeskgarden/react-buttons@3.6.5...@zendeskgarden/react-buttons@3.6.6) (2018-10-16)
### Bug Fixes
* **buttons|modals:** bump CSS dependencies ([#189](https://github.com/zendeskgarden/react-components/issues/189)) ([431ee3a](https://github.com/zendeskgarden/react-components/commit/431ee3a))
## [3.6.5](https://github.com/zendeskgarden/react-components/compare/@zendeskgarden/react-buttons@3.6.4...@zendeskgarden/react-buttons@3.6.5) (2018-10-08)

@@ -8,0 +19,0 @@

10

dist/index.js

@@ -193,3 +193,3 @@ /*!

'data-garden-id': COMPONENT_ID,
'data-garden-version': "3.6.5",
'data-garden-version': "3.6.6",
className: function className(_ref) {

@@ -504,3 +504,3 @@ var _classNames;

'data-garden-id': COMPONENT_ID,
'data-garden-version': "3.6.5",
'data-garden-version': "3.6.6",
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.5",
'data-garden-version': "3.6.6",
className: _cssButtons2.default['c-btn--icon']

@@ -649,3 +649,3 @@ }).withConfig({

'data-garden-id': COMPONENT_ID,
'data-garden-version': "3.6.5",
'data-garden-version': "3.6.6",
className: (0, _classnames2.default)(_cssButtons2.default['c-btn__icon'], _defineProperty({}, _cssButtons2.default['is-rotated'], rotated))

@@ -996,3 +996,3 @@ });

'data-garden-id': COMPONENT_ID,
'data-garden-version': "3.6.5",
'data-garden-version': "3.6.6",
className: function className(_ref) {

@@ -999,0 +999,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(" ")}void 0!==e&&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";Object.defineProperty(t,"__esModule",{value:!0}),t.default=!("undefined"==typeof window||!window.document||!window.document.createElement),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(1)),r=d(n(0)),o=d(n(6)),y=d(n(7)),b=d(n(3)),l=n(4),u=n(2);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",_="small",h="large",c=o.default.button.attrs({"data-garden-id":f,"data-garden-version":"3.6.5",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"],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===_),m(t,b.default["c-btn--lg"],r===h),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]),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(1)),o=u(n(0)),c=n(4),s=u(n(32));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";Object.defineProperty(t,"__esModule",{value:!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(19)),i=r(n(5)),a=r(n(20));function r(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,o.default)(e);return n?n.innerHeight:t?e.clientHeight:(0,r.default)(e).height};var r=u(n(11)),o=u(n(5));function u(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,u.default)(e.replace(i,"ms-"))};var r,o=n(23),u=(r=o)&&r.__esModule?r:{default:r};var i=/^-ms-/;e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(6)),o=a(n(7)),u=a(n(3)),i=n(2);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.5",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(0)),o=l(n(6)),u=l(n(3)),i=n(2),a=l(n(9));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.5",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(1),a=o(i),r=o(n(0)),l=o(n(7)),d=o(n(3));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.5",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(10);Object.defineProperty(t,"ButtonGroupContainer",{enumerable:!0,get:function(){return c(r).default}});var o=n(36);Object.defineProperty(t,"ButtonGroup",{enumerable:!0,get:function(){return c(o).default}});var u=n(39);Object.defineProperty(t,"Anchor",{enumerable:!0,get:function(){return c(u).default}});var i=n(9);Object.defineProperty(t,"Button",{enumerable:!0,get:function(){return c(i).default}});var a=n(40);Object.defineProperty(t,"ChevronButton",{enumerable:!0,get:function(){return c(a).default}});var l=n(15);Object.defineProperty(t,"IconButton",{enumerable:!0,get:function(){return c(l).default}});var d=n(16);Object.defineProperty(t,"Icon",{enumerable:!0,get:function(){return c(d).default}});var f=n(14);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";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,s.default)(e),r={top:0,left:0},o=void 0,u=void 0,i=void 0,a=void 0,l=void 0,d=void 0,f=void 0;if(!e)return;o=t||(0,v.default)(e),a=(0,m.default)(o),u=(0,y.default)(o),d=(0,p.default)(o,!0),(a=(0,m.default)(o))||(r=(0,s.default)(o));n={top:n.top-r.top,left:n.left-r.left,height:n.height,width:n.width},l=n.height,i=n.top+(a?0:u),f=i+l,u=i<u?i:u+d<f?f-d:u;var c=(0,b.default)(function(){return(0,y.default)(o,u)});return function(){return b.default.cancel(c)}};var s=r(n(11)),p=r(n(12)),v=r(n(21)),y=r(n(30)),b=r(n(31)),m=r(n(5));function r(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(8),u=(r=o)&&r.__esModule?r:{default:r};function i(e,t){if(t)do{if(t===e)return!0}while(t=t.parentNode);return!1}t.default=u.default?function(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):i(e,t)}:i,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e&&e.ownerDocument||document},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!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(22)),a=r(n(12));function r(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!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(13)),a=r(n(24)),l=r(n(26)),d=r(n(27)),f=n(28),c=r(n(29));function r(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!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";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,u.default)(e).replace(i,"-ms-")};var r,o=n(25),u=(r=o)&&r.__esModule?r:{default:r};var i=/^ms-/;e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!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";Object.defineProperty(t,"__esModule",{value:!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 r,o=n(13),a=(r=o)&&r.__esModule?r:{default:r};var l=/^(top|right|bottom|left)$/,d=/^([+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|))(?!px)[a-z%]+$/i;e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!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";Object.defineProperty(t,"__esModule",{value:!0}),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 r,o=n(8);var u="transform",i=void 0,a=void 0,l=void 0,d=void 0,f=void 0,c=void 0,s=void 0,p=void 0,v=void 0,y=void 0,b=void 0;if(((r=o)&&r.__esModule?r:{default:r}).default){var m=function(){for(var e=document.createElement("div").style,t={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}},n=Object.keys(t),r=void 0,o=void 0,u="",i=0;i<n.length;i++){var a=n[i];if(a+"TransitionProperty"in e){u="-"+a.toLowerCase(),r=t[a]("TransitionEnd"),o=t[a]("AnimationEnd");break}}!r&&"transitionProperty"in e&&(r="transitionend");!o&&"animationName"in e&&(o="animationend");return e=null,{animationEnd:o,transitionEnd:r,prefix:u}}();i=m.prefix,t.transitionEnd=a=m.transitionEnd,t.animationEnd=l=m.animationEnd,t.transform=u=i+"-"+u,t.transitionProperty=d=i+"-transition-property",t.transitionDuration=f=i+"-transition-duration",t.transitionDelay=s=i+"-transition-delay",t.transitionTiming=c=i+"-transition-timing-function",t.animationName=p=i+"-animation-name",t.animationDuration=v=i+"-animation-duration",t.animationTiming=y=i+"-animation-delay",t.animationDelay=b=i+"-animation-timing-function"}t.transform=u,t.transitionProperty=d,t.transitionTiming=c,t.transitionDelay=s,t.transitionDuration=f,t.transitionEnd=a,t.animationName=p,t.animationDuration=v,t.animationTiming=y,t.animationDelay=b,t.animationEnd=l,t.default={transform:u,end:a,property:d,timing:c,delay:s,duration:f}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!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";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,u.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 r,o=n(5),u=(r=o)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(8),u=(r=o)&&r.__esModule?r:{default:r};var i,a="clearTimeout",l=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-f)),r=setTimeout(e,n);return f=t,r},d=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=d(e,"request");if(t in window)return a=d(e,"cancel"),l=function(e){return window[t](e)}});var f=(new Date).getTime();(i=function(e){return l(e)}).cancel=function(e){window[a]&&"function"==typeof window[a]&&window[a](e)},t.default=i,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){for(;e&&(i(e)||!(0,u.default)(e,t));)e=e===n||i(e)?void 0:e.parentNode;return e};var r,o=n(33),u=(r=o)&&r.__esModule?r:{default:r};var i=function(e){return null!=e&&e.nodeType===e.DOCUMENT_NODE};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){!i&&o.default&&(n=document.body,r=n.matches||n.matchesSelector||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector,i=r?function(e,t){return r.call(e,t)}:a);var n,r;return i?i(e,t):null};var o=r(n(34)),u=r(n(35));function r(e){return e&&e.__esModule?e:{default:e}}var i=void 0;function a(e,t){for(var n=(0,u.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";Object.defineProperty(t,"__esModule",{value:!0}),t.default=!("undefined"==typeof window||!window.document||!window.document.createElement),e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!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(1),l=u(a),o=u(n(0)),d=n(4),f=n(37),c=u(n(10)),s=u(n(14)),p=u(n(9));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(" ")}void 0!==e&&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";Object.defineProperty(t,"__esModule",{value:!0}),t.default=!("undefined"==typeof window||!window.document||!window.document.createElement),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(1)),r=d(n(0)),o=d(n(6)),y=d(n(7)),b=d(n(3)),l=n(4),u=n(2);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",_="small",h="large",c=o.default.button.attrs({"data-garden-id":f,"data-garden-version":"3.6.6",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"],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===_),m(t,b.default["c-btn--lg"],r===h),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]),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(1)),o=u(n(0)),c=n(4),s=u(n(32));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";Object.defineProperty(t,"__esModule",{value:!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(19)),i=r(n(5)),a=r(n(20));function r(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,o.default)(e);return n?n.innerHeight:t?e.clientHeight:(0,r.default)(e).height};var r=u(n(11)),o=u(n(5));function u(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,u.default)(e.replace(i,"ms-"))};var r,o=n(23),u=(r=o)&&r.__esModule?r:{default:r};var i=/^-ms-/;e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(6)),o=a(n(7)),u=a(n(3)),i=n(2);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.6",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(0)),o=l(n(6)),u=l(n(3)),i=n(2),a=l(n(9));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.6",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(1),a=o(i),r=o(n(0)),l=o(n(7)),d=o(n(3));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.6",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(10);Object.defineProperty(t,"ButtonGroupContainer",{enumerable:!0,get:function(){return c(r).default}});var o=n(36);Object.defineProperty(t,"ButtonGroup",{enumerable:!0,get:function(){return c(o).default}});var u=n(39);Object.defineProperty(t,"Anchor",{enumerable:!0,get:function(){return c(u).default}});var i=n(9);Object.defineProperty(t,"Button",{enumerable:!0,get:function(){return c(i).default}});var a=n(40);Object.defineProperty(t,"ChevronButton",{enumerable:!0,get:function(){return c(a).default}});var l=n(15);Object.defineProperty(t,"IconButton",{enumerable:!0,get:function(){return c(l).default}});var d=n(16);Object.defineProperty(t,"Icon",{enumerable:!0,get:function(){return c(d).default}});var f=n(14);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";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,s.default)(e),r={top:0,left:0},o=void 0,u=void 0,i=void 0,a=void 0,l=void 0,d=void 0,f=void 0;if(!e)return;o=t||(0,v.default)(e),a=(0,m.default)(o),u=(0,y.default)(o),d=(0,p.default)(o,!0),(a=(0,m.default)(o))||(r=(0,s.default)(o));n={top:n.top-r.top,left:n.left-r.left,height:n.height,width:n.width},l=n.height,i=n.top+(a?0:u),f=i+l,u=i<u?i:u+d<f?f-d:u;var c=(0,b.default)(function(){return(0,y.default)(o,u)});return function(){return b.default.cancel(c)}};var s=r(n(11)),p=r(n(12)),v=r(n(21)),y=r(n(30)),b=r(n(31)),m=r(n(5));function r(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(8),u=(r=o)&&r.__esModule?r:{default:r};function i(e,t){if(t)do{if(t===e)return!0}while(t=t.parentNode);return!1}t.default=u.default?function(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):i(e,t)}:i,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e&&e.ownerDocument||document},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!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(22)),a=r(n(12));function r(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!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(13)),a=r(n(24)),l=r(n(26)),d=r(n(27)),f=n(28),c=r(n(29));function r(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!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";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,u.default)(e).replace(i,"-ms-")};var r,o=n(25),u=(r=o)&&r.__esModule?r:{default:r};var i=/^ms-/;e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!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";Object.defineProperty(t,"__esModule",{value:!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 r,o=n(13),a=(r=o)&&r.__esModule?r:{default:r};var l=/^(top|right|bottom|left)$/,d=/^([+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|))(?!px)[a-z%]+$/i;e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!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";Object.defineProperty(t,"__esModule",{value:!0}),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 r,o=n(8);var u="transform",i=void 0,a=void 0,l=void 0,d=void 0,f=void 0,c=void 0,s=void 0,p=void 0,v=void 0,y=void 0,b=void 0;if(((r=o)&&r.__esModule?r:{default:r}).default){var m=function(){for(var e=document.createElement("div").style,t={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}},n=Object.keys(t),r=void 0,o=void 0,u="",i=0;i<n.length;i++){var a=n[i];if(a+"TransitionProperty"in e){u="-"+a.toLowerCase(),r=t[a]("TransitionEnd"),o=t[a]("AnimationEnd");break}}!r&&"transitionProperty"in e&&(r="transitionend");!o&&"animationName"in e&&(o="animationend");return e=null,{animationEnd:o,transitionEnd:r,prefix:u}}();i=m.prefix,t.transitionEnd=a=m.transitionEnd,t.animationEnd=l=m.animationEnd,t.transform=u=i+"-"+u,t.transitionProperty=d=i+"-transition-property",t.transitionDuration=f=i+"-transition-duration",t.transitionDelay=s=i+"-transition-delay",t.transitionTiming=c=i+"-transition-timing-function",t.animationName=p=i+"-animation-name",t.animationDuration=v=i+"-animation-duration",t.animationTiming=y=i+"-animation-delay",t.animationDelay=b=i+"-animation-timing-function"}t.transform=u,t.transitionProperty=d,t.transitionTiming=c,t.transitionDelay=s,t.transitionDuration=f,t.transitionEnd=a,t.animationName=p,t.animationDuration=v,t.animationTiming=y,t.animationDelay=b,t.animationEnd=l,t.default={transform:u,end:a,property:d,timing:c,delay:s,duration:f}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!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";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,u.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 r,o=n(5),u=(r=o)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(8),u=(r=o)&&r.__esModule?r:{default:r};var i,a="clearTimeout",l=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-f)),r=setTimeout(e,n);return f=t,r},d=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=d(e,"request");if(t in window)return a=d(e,"cancel"),l=function(e){return window[t](e)}});var f=(new Date).getTime();(i=function(e){return l(e)}).cancel=function(e){window[a]&&"function"==typeof window[a]&&window[a](e)},t.default=i,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){for(;e&&(i(e)||!(0,u.default)(e,t));)e=e===n||i(e)?void 0:e.parentNode;return e};var r,o=n(33),u=(r=o)&&r.__esModule?r:{default:r};var i=function(e){return null!=e&&e.nodeType===e.DOCUMENT_NODE};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){!i&&o.default&&(n=document.body,r=n.matches||n.matchesSelector||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector,i=r?function(e,t){return r.call(e,t)}:a);var n,r;return i?i(e,t):null};var o=r(n(34)),u=r(n(35));function r(e){return e&&e.__esModule?e:{default:e}}var i=void 0;function a(e,t){for(var n=(0,u.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";Object.defineProperty(t,"__esModule",{value:!0}),t.default=!("undefined"==typeof window||!window.document||!window.document.createElement),e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!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(1),l=u(a),o=u(n(0)),d=n(4),f=n(37),c=u(n(10)),s=u(n(14)),p=u(n(9));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(1)),r=c(n(0)),o=c(n(6)),l=c(n(7)),d=c(n(3)),a=n(4),f=n(2);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.5",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(1)),u=l(n(0)),i=l(n(15)),a=l(n(16));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],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(1)),r=c(n(0)),o=c(n(6)),l=c(n(7)),d=c(n(3)),a=n(4),f=n(2);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.6",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(1)),u=l(n(0)),i=l(n(15)),a=l(n(16));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.5",
"version": "3.6.6",
"main": "./dist/index.js",

@@ -36,3 +36,3 @@ "files": [

"devDependencies": {
"@zendeskgarden/css-buttons": "6.1.1",
"@zendeskgarden/css-buttons": "6.1.2",
"@zendeskgarden/react-theming": "^3.1.3",

@@ -52,3 +52,3 @@ "@zendeskgarden/svg-icons": "4.4.5"

"zendeskgarden:src": "src/index.js",
"gitHead": "3ad4dccf561debc9646be12bd89716ff6590f8e3"
"gitHead": "85d7b708446662397345681bab7d0053be7e829d"
}

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