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.4.3 to 3.4.5

18

CHANGELOG.md

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

<a name="3.4.5"></a>
## [3.4.5](https://github.com/zendeskgarden/react-components/compare/@zendeskgarden/react-buttons@3.4.3...@zendeskgarden/react-buttons@3.4.5) (2018-08-17)
**Note:** Version bump only for package @zendeskgarden/react-buttons
<a name="3.4.4"></a>
## [3.4.4](https://github.com/zendeskgarden/react-components/compare/@zendeskgarden/react-buttons@3.4.3...@zendeskgarden/react-buttons@3.4.4) (2018-08-17)
**Note:** Version bump only for package @zendeskgarden/react-buttons
<a name="3.4.3"></a>

@@ -8,0 +26,0 @@ ## [3.4.3](https://github.com/zendeskgarden/react-components/compare/@zendeskgarden/react-buttons@3.4.2...@zendeskgarden/react-buttons@3.4.3) (2018-08-08)

10

dist/index.js

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

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

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

'data-garden-id': COMPONENT_ID,
'data-garden-version': "3.4.3",
'data-garden-version': "3.4.5",
className: function className(props) {

@@ -564,3 +564,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.4.3",
'data-garden-version': "3.4.5",
className: _cssButtons2.default['c-btn--icon']

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

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

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

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

@@ -996,0 +996,0 @@ var _classNames;

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

*/
!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var u=typeof r;if("string"===u||"number"===u)e.push(r);else if(Array.isArray(r)&&r.length){var i=o.apply(null,r);i&&e.push(i)}else if("object"===u)for(var a in r)n.call(r,a)&&r[a]&&e.push(a)}}return e.join(" ")}void 0!==e&&e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.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 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=c(n(1)),u=c(n(0)),i=c(n(6)),a=c(n(7)),l=c(n(3)),d=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="small",v="large",y=i.default.button.attrs({"data-garden-id":"buttons.button","data-garden-version":"3.4.3",className:function(e){var t,n=e.danger,r=e.size,o=e.stretched,u=e.disabled,i=e.focused,d=e.hovered,f=e.active,c=e.selected,y=e.pill,b=e.primary,_=e.basic,h=e.muted,m=e.link;return(0,a.default)(l.default["c-btn"],(s(t={},l.default["c-btn--danger"],n),s(t,l.default["c-btn--primary"],b),s(t,l.default["c-btn--basic"],_),s(t,l.default["c-btn--muted"],h),s(t,l.default["c-btn--pill"],y),s(t,l.default["c-btn--anchor"],m),s(t,l.default["c-btn--sm"],r===p),s(t,l.default["c-btn--lg"],r===v),s(t,l.default["c-btn--full"],o),s(t,l.default["is-active"],f),s(t,l.default["is-disabled"],u),s(t,l.default["is-focused"],i),s(t,l.default["is-hovered"],d),s(t,l.default["is-selected"],c),t))},type:"button"}).withConfig({displayName:"Button__StyledButton"})(["",";"],function(e){return(0,f.retrieveTheme)("buttons.button",e)}),b=function(e){var t=e.focused,n=e.buttonRef,u=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["focused","buttonRef"]);return o.default.createElement(d.KeyboardFocusContainer,null,function(e){var i=e.getFocusProps,a=e.keyboardFocused;return o.default.createElement(y,i(r({innerRef:n},u,{focused:t||a})))})};b.propTypes={danger:u.default.bool,size:u.default.oneOf([p,v]),stretched:u.default.bool,primary:u.default.bool,basic:u.default.bool,muted:u.default.bool,link:u.default.bool,pill:u.default.bool,disabled:u.default.bool,focused:u.default.bool,hovered:u.default.bool,active:u.default.bool,selected:u.default.bool,buttonRef:u.default.func},b.hasType=function(){return b},t.default=b},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=function(){function e(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(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=d(n(1)),i=d(n(0)),a=n(4),l=d(n(32));function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var c=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,o=Array(n),u=0;u<n;u++)o[u]=arguments[u];var i=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=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o)));return i.getGroupProps=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.role,n=void 0===t?"group":t,o=f(e,["role"]);return r({role:n},o)},i.getButtonProps=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.role,n=void 0===t?"button":t,o=e.key,u=e.tabIndex,d=void 0===u?-1:u,c=e.onFocus,s=f(e,["role","key","tabIndex","onFocus"]);if(void 0===o||null===o)throw new Error('"key" must be defined within getButtonProps regardless of being used within a .map()');return r({role:n,key:o,tabIndex:d,onFocus:(0,a.composeEventHandlers)(c,function(e){var t=e.target,n=i.getGroupProps().role;(0,l.default)(t,'[role="'+n+'"]').focus()})},s)},i.state={focusedKey:void 0,selectedKey:void 0,id:a.IdManager.generateId()},i}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)}(t,a.ControlledComponent),o(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.render,o=void 0===r?n:r,i=this.getControlledState(),l=i.focusedKey,d=i.selectedKey,f=i.id;return u.default.createElement(a.SelectionContainer,{id:f,focusedKey:l,selectedKey:d,onStateChange:this.setControlledState},function(t){var n=t.getContainerProps,r=t.getItemProps;return o({getGroupProps:function(t){return n(e.getGroupProps(t))},getButtonProps:function(t){return r(e.getButtonProps(t))},focusedKey:l,selectedKey:d})})}}]),t}();c.propTypes={id:i.default.string,focusedKey:i.default.oneOfType([i.default.string,i.default.number]),selectedKey:i.default.oneOfType([i.default.string,i.default.number]),onStateChange:i.default.func,children:i.default.func,render:i.default.func},t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=(0,u.default)(e),n=(0,o.default)(t),i=t&&t.documentElement,a={top:0,left:0,height:0,width:0};if(!t)return;if(!(0,r.default)(i,e))return a;void 0!==e.getBoundingClientRect&&(a=e.getBoundingClientRect());return a={top:a.top+(n.pageYOffset||i.scrollTop)-(i.clientTop||0),left:a.left+(n.pageXOffset||i.scrollLeft)-(i.clientLeft||0),width:(null==a.width?e.offsetWidth:a.width)||0,height:(null==a.height?e.offsetHeight:a.height)||0}};var r=i(n(19)),o=i(n(5)),u=i(n(20));function i(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,r.default)(e.replace(o,"ms-"))};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(23));var o=/^-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=r.default.div.attrs({"data-garden-id":"buttons.button_group_view","data-garden-version":"3.4.3",className:function(e){return(0,o.default)(u.default["l-btn-group"],function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},u.default["is-rtl"],(0,i.isRtl)(e)))}}).withConfig({displayName:"ButtonGroupView"})([":focus{outline:none;}",";"],function(e){return(0,i.retrieveTheme)("buttons.button_group_view",e)});t.default=l},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.4.3",className:u.default["c-btn--icon"]}).withConfig({displayName:"IconButton"})(["",";"],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 r=n(1),o=l(r),u=l(n(0)),i=l(n(7)),a=l(n(3));function l(e){return e&&e.__esModule?e:{default:e}}var d=function(e){var t=e.children,n=e.rotated;return o.default.cloneElement(r.Children.only(t),{"data-garden-id":"buttons.icon","data-garden-version":"3.4.3",className:(0,i.default)(a.default["c-btn__icon"],function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},a.default["is-rotated"],n))})};d.propTypes={rotated:u.default.bool},t.default=d},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,r.default)(e),d={top:0,left:0},f=void 0,c=void 0,s=void 0,p=void 0,v=void 0,y=void 0,b=void 0;if(!e)return;f=t||(0,u.default)(e),p=(0,l.default)(f),c=(0,i.default)(f),y=(0,o.default)(f,!0),(p=(0,l.default)(f))||(d=(0,r.default)(f));n={top:n.top-d.top,left:n.left-d.left,height:n.height,width:n.width},v=n.height,s=n.top+(p?0:c),b=s+v,c=c>s?s:b>c+y?b-y:c;var _=(0,a.default)(function(){return(0,i.default)(f,c)});return function(){return a.default.cancel(_)}};var r=d(n(11)),o=d(n(12)),u=d(n(21)),i=d(n(30)),a=d(n(31)),l=d(n(5));function d(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=function(e){return e&&e.__esModule?e:{default:e}}(n(8));function o(e,t){if(t)do{if(t===e)return!0}while(t=t.parentNode);return!1}t.default=r.default?function(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):o(e,t)}:o,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,r.default)(e,"position"),n="absolute"===t,u=e.ownerDocument;if("fixed"===t)return u||document;for(;(e=e.parentNode)&&9!==e.nodeType;){var i=n&&"static"===(0,r.default)(e,"position"),a=(0,r.default)(e,"overflow")+(0,r.default)(e,"overflow-y")+(0,r.default)(e,"overflow-x");if(!i&&(/(auto|scroll)/.test(a)&&(0,o.default)(e)<e.scrollHeight))return e}return document};var r=u(n(22)),o=u(n(12));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,t,n){var d="",f="",c=t;if("string"==typeof t){if(void 0===n)return e.style[(0,r.default)(t)]||(0,u.default)(e).getPropertyValue((0,o.default)(t));(c={})[t]=n}Object.keys(c).forEach(function(t){var n=c[t];n||0===n?(0,l.default)(t)?f+=t+"("+n+") ":d+=(0,o.default)(t)+": "+n+";":(0,i.default)(e,(0,o.default)(t))}),f&&(d+=a.transform+": "+f+";");e.style.cssText+=";"+d};var r=d(n(13)),o=d(n(24)),u=d(n(26)),i=d(n(27)),a=n(28),l=d(n(29));function d(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,r.default)(e).replace(o,"-ms-")};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(25));var o=/^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(e){if(!e)throw new TypeError("No Element passed to `getComputedStyle()`");var t=e.ownerDocument;return"defaultView"in t?t.defaultView.opener?e.ownerDocument.defaultView.getComputedStyle(e,null):window.getComputedStyle(e,null):{getPropertyValue:function(t){var n=e.style;"float"==(t=(0,r.default)(t))&&(t="styleFloat");var i=e.currentStyle[t]||null;if(null==i&&n&&n[t]&&(i=n[t]),u.test(i)&&!o.test(t)){var a=n.left,l=e.runtimeStyle,d=l&&l.left;d&&(l.left=e.currentStyle.left),n.left="fontSize"===t?"1em":i,i=n.pixelLeft+"px",n.left=a,d&&(l.left=d)}return i}}};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(13));var o=/^(top|right|bottom|left)$/,u=/^([+-]?(?:\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="transform",o=void 0,u=void 0,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;if(function(e){return e&&e.__esModule?e:{default:e}}(n(8)).default){var y=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}}();o=y.prefix,t.transitionEnd=u=y.transitionEnd,t.animationEnd=i=y.animationEnd,t.transform=r=o+"-"+r,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"}t.transform=r,t.transitionProperty=a,t.transitionTiming=d,t.transitionDelay=f,t.transitionDuration=l,t.transitionEnd=u,t.animationName=c,t.animationDuration=s,t.animationTiming=p,t.animationDelay=v,t.animationEnd=i,t.default={transform:r,end:u,property:a,timing:d,delay:f,duration:l}},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,r.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=function(e){return e&&e.__esModule?e:{default:e}}(n(5));e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o="clearTimeout",u=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-a)),r=setTimeout(e,n);return a=t,r},i=function(e,t){return e+(e?t[0].toUpperCase()+t.substr(1):t)+"AnimationFrame"};(function(e){return e&&e.__esModule?e:{default:e}})(n(8)).default&&["","webkit","moz","o","ms"].some(function(e){var t=i(e,"request");if(t in window)return o=i(e,"cancel"),u=function(e){return window[t](e)}});var a=(new Date).getTime();(r=function(e){return u(e)}).cancel=function(e){window[o]&&"function"==typeof window[o]&&window[o](e)},t.default=r,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){for(;e&&(o(e)||!(0,r.default)(e,t));)e=e===n||o(e)?void 0:e.parentNode;return e};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(33));var o=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&&r.default&&function(){var e=document.body,t=e.matches||e.matchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;i=t?function(e,n){return t.call(e,n)}:a}();return i?i(e,t):null};var r=u(n(34)),o=u(n(35));function u(e){return e&&e.__esModule?e:{default:e}}var i=void 0;function a(e,t){for(var n=(0,o.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,u="#"===t[0],i="."===t[0],a=u||i?t.slice(1):t;if(r.test(a))return u?(e=e.getElementById?e:document,(n=e.getElementById(a))?[n]:[]):e.getElementsByClassName&&i?o(e.getElementsByClassName(a)):o(e.getElementsByTagName(t));return o(e.querySelectorAll(t))};var r=/^[\w-]*$/,o=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 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=function(){function e(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(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(1),i=p(u),a=p(n(0)),l=n(4),d=n(37),f=p(n(10)),c=p(n(14)),s=p(n(9));function p(e){return e&&e.__esModule?e:{default:e}}var v=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,o=Array(n),i=0;i<n;i++)o[i]=arguments[i];var a=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=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o)));return a.renderButtons=function(e){var t=a.props.children,n=a.getControlledState(),o=n.selectedKey,i=n.focusedKey;return u.Children.map(t,function(t){if(!(0,u.isValidElement)(t))return t;if((0,d.hasType)(t,s.default)){if(t.props.disabled)return t;var n=t.key;if(!n)throw new Error('"key" prop must be provided to Button');return void 0===a.firstKey&&(a.firstKey=n),(0,u.cloneElement)(t,e(r({key:n,selected:n===o,focused:n===i},t.props)))}return t})},a.state={id:l.IdManager.generateId(),selectedKey:void 0,focusedKey:void 0},a.firstKey=void 0,a}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)}(t,l.ControlledComponent),o(t,[{key:"componentDidMount",value:function(){this.isControlledProp("selectedKey")||void 0===this.firstKey||this.setControlledState({selectedKey:this.firstKey})}},{key:"render",value:function(){var e=this,t=this.props,n=(t.children,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["children"])),r=this.getControlledState(),o=r.focusedKey,u=r.selectedKey,a=r.id;return i.default.createElement(f.default,{id:a,focusedKey:o,selectedKey:u,onStateChange:this.setControlledState},function(t){var r=t.getGroupProps,o=t.getButtonProps;return i.default.createElement(c.default,r(n),e.renderButtons(o))})}}]),t}();v.propTypes={id:a.default.any,children:a.default.any,selectedKey:a.default.any,onStateChange:a.default.func},t.default=v},function(e,t,n){"use strict";var r="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 n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var u=typeof r;if("string"===u||"number"===u)e.push(r);else if(Array.isArray(r)&&r.length){var i=o.apply(null,r);i&&e.push(i)}else if("object"===u)for(var a in r)n.call(r,a)&&r[a]&&e.push(a)}}return e.join(" ")}void 0!==e&&e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.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 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=c(n(1)),u=c(n(0)),i=c(n(6)),a=c(n(7)),l=c(n(3)),d=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="small",v="large",y=i.default.button.attrs({"data-garden-id":"buttons.button","data-garden-version":"3.4.5",className:function(e){var t,n=e.danger,r=e.size,o=e.stretched,u=e.disabled,i=e.focused,d=e.hovered,f=e.active,c=e.selected,y=e.pill,b=e.primary,_=e.basic,h=e.muted,m=e.link;return(0,a.default)(l.default["c-btn"],(s(t={},l.default["c-btn--danger"],n),s(t,l.default["c-btn--primary"],b),s(t,l.default["c-btn--basic"],_),s(t,l.default["c-btn--muted"],h),s(t,l.default["c-btn--pill"],y),s(t,l.default["c-btn--anchor"],m),s(t,l.default["c-btn--sm"],r===p),s(t,l.default["c-btn--lg"],r===v),s(t,l.default["c-btn--full"],o),s(t,l.default["is-active"],f),s(t,l.default["is-disabled"],u),s(t,l.default["is-focused"],i),s(t,l.default["is-hovered"],d),s(t,l.default["is-selected"],c),t))},type:"button"}).withConfig({displayName:"Button__StyledButton"})(["",";"],function(e){return(0,f.retrieveTheme)("buttons.button",e)}),b=function(e){var t=e.focused,n=e.buttonRef,u=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["focused","buttonRef"]);return o.default.createElement(d.KeyboardFocusContainer,null,function(e){var i=e.getFocusProps,a=e.keyboardFocused;return o.default.createElement(y,i(r({innerRef:n},u,{focused:t||a})))})};b.propTypes={danger:u.default.bool,size:u.default.oneOf([p,v]),stretched:u.default.bool,primary:u.default.bool,basic:u.default.bool,muted:u.default.bool,link:u.default.bool,pill:u.default.bool,disabled:u.default.bool,focused:u.default.bool,hovered:u.default.bool,active:u.default.bool,selected:u.default.bool,buttonRef:u.default.func},b.hasType=function(){return b},t.default=b},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=function(){function e(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(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=d(n(1)),i=d(n(0)),a=n(4),l=d(n(32));function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var c=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,o=Array(n),u=0;u<n;u++)o[u]=arguments[u];var i=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=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o)));return i.getGroupProps=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.role,n=void 0===t?"group":t,o=f(e,["role"]);return r({role:n},o)},i.getButtonProps=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.role,n=void 0===t?"button":t,o=e.key,u=e.tabIndex,d=void 0===u?-1:u,c=e.onFocus,s=f(e,["role","key","tabIndex","onFocus"]);if(void 0===o||null===o)throw new Error('"key" must be defined within getButtonProps regardless of being used within a .map()');return r({role:n,key:o,tabIndex:d,onFocus:(0,a.composeEventHandlers)(c,function(e){var t=e.target,n=i.getGroupProps().role;(0,l.default)(t,'[role="'+n+'"]').focus()})},s)},i.state={focusedKey:void 0,selectedKey:void 0,id:a.IdManager.generateId()},i}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)}(t,a.ControlledComponent),o(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.render,o=void 0===r?n:r,i=this.getControlledState(),l=i.focusedKey,d=i.selectedKey,f=i.id;return u.default.createElement(a.SelectionContainer,{id:f,focusedKey:l,selectedKey:d,onStateChange:this.setControlledState},function(t){var n=t.getContainerProps,r=t.getItemProps;return o({getGroupProps:function(t){return n(e.getGroupProps(t))},getButtonProps:function(t){return r(e.getButtonProps(t))},focusedKey:l,selectedKey:d})})}}]),t}();c.propTypes={id:i.default.string,focusedKey:i.default.oneOfType([i.default.string,i.default.number]),selectedKey:i.default.oneOfType([i.default.string,i.default.number]),onStateChange:i.default.func,children:i.default.func,render:i.default.func},t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=(0,u.default)(e),n=(0,o.default)(t),i=t&&t.documentElement,a={top:0,left:0,height:0,width:0};if(!t)return;if(!(0,r.default)(i,e))return a;void 0!==e.getBoundingClientRect&&(a=e.getBoundingClientRect());return a={top:a.top+(n.pageYOffset||i.scrollTop)-(i.clientTop||0),left:a.left+(n.pageXOffset||i.scrollLeft)-(i.clientLeft||0),width:(null==a.width?e.offsetWidth:a.width)||0,height:(null==a.height?e.offsetHeight:a.height)||0}};var r=i(n(19)),o=i(n(5)),u=i(n(20));function i(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,r.default)(e.replace(o,"ms-"))};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(23));var o=/^-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=r.default.div.attrs({"data-garden-id":"buttons.button_group_view","data-garden-version":"3.4.5",className:function(e){return(0,o.default)(u.default["l-btn-group"],function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},u.default["is-rtl"],(0,i.isRtl)(e)))}}).withConfig({displayName:"ButtonGroupView"})([":focus{outline:none;}",";"],function(e){return(0,i.retrieveTheme)("buttons.button_group_view",e)});t.default=l},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.4.5",className:u.default["c-btn--icon"]}).withConfig({displayName:"IconButton"})(["",";"],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 r=n(1),o=l(r),u=l(n(0)),i=l(n(7)),a=l(n(3));function l(e){return e&&e.__esModule?e:{default:e}}var d=function(e){var t=e.children,n=e.rotated;return o.default.cloneElement(r.Children.only(t),{"data-garden-id":"buttons.icon","data-garden-version":"3.4.5",className:(0,i.default)(a.default["c-btn__icon"],function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},a.default["is-rotated"],n))})};d.propTypes={rotated:u.default.bool},t.default=d},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,r.default)(e),d={top:0,left:0},f=void 0,c=void 0,s=void 0,p=void 0,v=void 0,y=void 0,b=void 0;if(!e)return;f=t||(0,u.default)(e),p=(0,l.default)(f),c=(0,i.default)(f),y=(0,o.default)(f,!0),(p=(0,l.default)(f))||(d=(0,r.default)(f));n={top:n.top-d.top,left:n.left-d.left,height:n.height,width:n.width},v=n.height,s=n.top+(p?0:c),b=s+v,c=c>s?s:b>c+y?b-y:c;var _=(0,a.default)(function(){return(0,i.default)(f,c)});return function(){return a.default.cancel(_)}};var r=d(n(11)),o=d(n(12)),u=d(n(21)),i=d(n(30)),a=d(n(31)),l=d(n(5));function d(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=function(e){return e&&e.__esModule?e:{default:e}}(n(8));function o(e,t){if(t)do{if(t===e)return!0}while(t=t.parentNode);return!1}t.default=r.default?function(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):o(e,t)}:o,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,r.default)(e,"position"),n="absolute"===t,u=e.ownerDocument;if("fixed"===t)return u||document;for(;(e=e.parentNode)&&9!==e.nodeType;){var i=n&&"static"===(0,r.default)(e,"position"),a=(0,r.default)(e,"overflow")+(0,r.default)(e,"overflow-y")+(0,r.default)(e,"overflow-x");if(!i&&(/(auto|scroll)/.test(a)&&(0,o.default)(e)<e.scrollHeight))return e}return document};var r=u(n(22)),o=u(n(12));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,t,n){var d="",f="",c=t;if("string"==typeof t){if(void 0===n)return e.style[(0,r.default)(t)]||(0,u.default)(e).getPropertyValue((0,o.default)(t));(c={})[t]=n}Object.keys(c).forEach(function(t){var n=c[t];n||0===n?(0,l.default)(t)?f+=t+"("+n+") ":d+=(0,o.default)(t)+": "+n+";":(0,i.default)(e,(0,o.default)(t))}),f&&(d+=a.transform+": "+f+";");e.style.cssText+=";"+d};var r=d(n(13)),o=d(n(24)),u=d(n(26)),i=d(n(27)),a=n(28),l=d(n(29));function d(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,r.default)(e).replace(o,"-ms-")};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(25));var o=/^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(e){if(!e)throw new TypeError("No Element passed to `getComputedStyle()`");var t=e.ownerDocument;return"defaultView"in t?t.defaultView.opener?e.ownerDocument.defaultView.getComputedStyle(e,null):window.getComputedStyle(e,null):{getPropertyValue:function(t){var n=e.style;"float"==(t=(0,r.default)(t))&&(t="styleFloat");var i=e.currentStyle[t]||null;if(null==i&&n&&n[t]&&(i=n[t]),u.test(i)&&!o.test(t)){var a=n.left,l=e.runtimeStyle,d=l&&l.left;d&&(l.left=e.currentStyle.left),n.left="fontSize"===t?"1em":i,i=n.pixelLeft+"px",n.left=a,d&&(l.left=d)}return i}}};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(13));var o=/^(top|right|bottom|left)$/,u=/^([+-]?(?:\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="transform",o=void 0,u=void 0,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;if(function(e){return e&&e.__esModule?e:{default:e}}(n(8)).default){var y=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}}();o=y.prefix,t.transitionEnd=u=y.transitionEnd,t.animationEnd=i=y.animationEnd,t.transform=r=o+"-"+r,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"}t.transform=r,t.transitionProperty=a,t.transitionTiming=d,t.transitionDelay=f,t.transitionDuration=l,t.transitionEnd=u,t.animationName=c,t.animationDuration=s,t.animationTiming=p,t.animationDelay=v,t.animationEnd=i,t.default={transform:r,end:u,property:a,timing:d,delay:f,duration:l}},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,r.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=function(e){return e&&e.__esModule?e:{default:e}}(n(5));e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o="clearTimeout",u=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-a)),r=setTimeout(e,n);return a=t,r},i=function(e,t){return e+(e?t[0].toUpperCase()+t.substr(1):t)+"AnimationFrame"};(function(e){return e&&e.__esModule?e:{default:e}})(n(8)).default&&["","webkit","moz","o","ms"].some(function(e){var t=i(e,"request");if(t in window)return o=i(e,"cancel"),u=function(e){return window[t](e)}});var a=(new Date).getTime();(r=function(e){return u(e)}).cancel=function(e){window[o]&&"function"==typeof window[o]&&window[o](e)},t.default=r,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){for(;e&&(o(e)||!(0,r.default)(e,t));)e=e===n||o(e)?void 0:e.parentNode;return e};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(33));var o=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&&r.default&&function(){var e=document.body,t=e.matches||e.matchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;i=t?function(e,n){return t.call(e,n)}:a}();return i?i(e,t):null};var r=u(n(34)),o=u(n(35));function u(e){return e&&e.__esModule?e:{default:e}}var i=void 0;function a(e,t){for(var n=(0,o.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,u="#"===t[0],i="."===t[0],a=u||i?t.slice(1):t;if(r.test(a))return u?(e=e.getElementById?e:document,(n=e.getElementById(a))?[n]:[]):e.getElementsByClassName&&i?o(e.getElementsByClassName(a)):o(e.getElementsByTagName(t));return o(e.querySelectorAll(t))};var r=/^[\w-]*$/,o=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 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=function(){function e(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(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(1),i=p(u),a=p(n(0)),l=n(4),d=n(37),f=p(n(10)),c=p(n(14)),s=p(n(9));function p(e){return e&&e.__esModule?e:{default:e}}var v=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,o=Array(n),i=0;i<n;i++)o[i]=arguments[i];var a=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=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o)));return a.renderButtons=function(e){var t=a.props.children,n=a.getControlledState(),o=n.selectedKey,i=n.focusedKey;return u.Children.map(t,function(t){if(!(0,u.isValidElement)(t))return t;if((0,d.hasType)(t,s.default)){if(t.props.disabled)return t;var n=t.key;if(!n)throw new Error('"key" prop must be provided to Button');return void 0===a.firstKey&&(a.firstKey=n),(0,u.cloneElement)(t,e(r({key:n,selected:n===o,focused:n===i},t.props)))}return t})},a.state={id:l.IdManager.generateId(),selectedKey:void 0,focusedKey:void 0},a.firstKey=void 0,a}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)}(t,l.ControlledComponent),o(t,[{key:"componentDidMount",value:function(){this.isControlledProp("selectedKey")||void 0===this.firstKey||this.setControlledState({selectedKey:this.firstKey})}},{key:"render",value:function(){var e=this,t=this.props,n=(t.children,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["children"])),r=this.getControlledState(),o=r.focusedKey,u=r.selectedKey,a=r.id;return i.default.createElement(f.default,{id:a,focusedKey:o,selectedKey:u,onStateChange:this.setControlledState},function(t){var r=t.getGroupProps,o=t.getButtonProps;return i.default.createElement(c.default,r(n),e.renderButtons(o))})}}]),t}();v.propTypes={id:a.default.any,children:a.default.any,selectedKey:a.default.any,onStateChange:a.default.func},t.default=v},function(e,t,n){"use strict";var r="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(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===(void 0===e?"undefined":r(e))&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var u in e)n.d(o,u,function(t){return e[t]}.bind(null,u));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.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=arguments.length>0&&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 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=c(n(1)),u=c(n(0)),i=c(n(6)),a=c(n(7)),l=c(n(3)),d=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=i.default.a.attrs({"data-garden-id":"buttons.anchor","data-garden-version":"3.4.3",className:function(e){var t,n=e.danger,r=e.disabled,o=e.focused,u=e.hovered,i=e.active,d=e.selected;return(0,a.default)(l.default["c-btn"],l.default["c-btn--anchor"],(s(t={},l.default["c-btn--danger"],n),s(t,l.default["is-active"],i),s(t,l.default["is-disabled"],r),s(t,l.default["is-focused"],o),s(t,l.default["is-hovered"],u),s(t,l.default["is-selected"],d),t))}}).withConfig({displayName:"Anchor__StyledAnchor"})(["",";"],function(e){return(0,f.retrieveTheme)("buttons.anchor",e)}),v=function(e){var t=e.focused,n=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["focused"]);return o.default.createElement(d.KeyboardFocusContainer,null,function(e){var u=e.getFocusProps,i=e.keyboardFocused;return o.default.createElement(p,u(r({},n,{focused:t||i})))})};v.propTypes={danger:u.default.bool,disabled:u.default.bool,focused:u.default.bool,hovered:u.default.bool,active:u.default.bool},t.default=v},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)t.indexOf(r)>=0||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(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===(void 0===e?"undefined":r(e))&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var u in e)n.d(o,u,function(t){return e[t]}.bind(null,u));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.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=arguments.length>0&&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 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=c(n(1)),u=c(n(0)),i=c(n(6)),a=c(n(7)),l=c(n(3)),d=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=i.default.a.attrs({"data-garden-id":"buttons.anchor","data-garden-version":"3.4.5",className:function(e){var t,n=e.danger,r=e.disabled,o=e.focused,u=e.hovered,i=e.active,d=e.selected;return(0,a.default)(l.default["c-btn"],l.default["c-btn--anchor"],(s(t={},l.default["c-btn--danger"],n),s(t,l.default["is-active"],i),s(t,l.default["is-disabled"],r),s(t,l.default["is-focused"],o),s(t,l.default["is-hovered"],u),s(t,l.default["is-selected"],d),t))}}).withConfig({displayName:"Anchor__StyledAnchor"})(["",";"],function(e){return(0,f.retrieveTheme)("buttons.anchor",e)}),v=function(e){var t=e.focused,n=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["focused"]);return o.default.createElement(d.KeyboardFocusContainer,null,function(e){var u=e.getFocusProps,i=e.keyboardFocused;return o.default.createElement(p,u(r({},n,{focused:t||i})))})};v.propTypes={danger:u.default.bool,disabled:u.default.bool,focused:u.default.bool,hovered:u.default.bool,active:u.default.bool},t.default=v},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)t.indexOf(r)>=0||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.4.3",
"version": "3.4.5",
"main": "./dist/index.js",

@@ -23,4 +23,4 @@ "files": [

"dependencies": {
"@zendeskgarden/react-selection": "^4.3.3",
"@zendeskgarden/react-utilities": "^0.2.0",
"@zendeskgarden/react-selection": "^4.3.4",
"@zendeskgarden/react-utilities": "^0.2.2",
"classnames": "^2.2.5",

@@ -38,3 +38,3 @@ "dom-helpers": "^3.3.1"

"@zendeskgarden/css-buttons": "6.0.5",
"@zendeskgarden/react-theming": "^3.1.2",
"@zendeskgarden/react-theming": "^3.1.3",
"@zendeskgarden/svg-icons": "4.4.1"

@@ -41,0 +41,0 @@ },

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