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
277
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.14 to 3.7.0

11

CHANGELOG.md

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

# [3.7.0](https://github.com/zendeskgarden/react-components/compare/@zendeskgarden/react-buttons@3.6.14...@zendeskgarden/react-buttons@3.7.0) (2018-12-19)
### Features
* update SVG icons ([#238](https://github.com/zendeskgarden/react-components/issues/238)) ([22bed76](https://github.com/zendeskgarden/react-components/commit/22bed76))
## [3.6.14](https://github.com/zendeskgarden/react-components/compare/@zendeskgarden/react-buttons@3.6.13...@zendeskgarden/react-buttons@3.6.14) (2018-12-10)

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

10

dist/index.js

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

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

@@ -443,3 +443,3 @@ return external_classnames_default()(dist_default.a['l-btn-group'], ButtonGroupView_defineProperty({}, dist_default.a['is-rtl'], Object(react_theming_["isRtl"])(props)));

'data-garden-id': Button_COMPONENT_ID,
'data-garden-version': "3.6.14",
'data-garden-version': "3.7.0",
className: function className(_ref) {

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

'data-garden-id': Anchor_COMPONENT_ID,
'data-garden-version': "3.6.14",
'data-garden-version': "3.7.0",
className: function className(_ref) {

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

'data-garden-id': IconButton_COMPONENT_ID,
'data-garden-version': "3.6.14",
'data-garden-version': "3.7.0",
className: dist_default.a['c-btn--icon']

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

'data-garden-id': Icon_COMPONENT_ID,
'data-garden-version': "3.6.14",
'data-garden-version': "3.7.0",
className: external_classnames_default()(dist_default.a['c-btn__icon'], Icon_defineProperty({}, dist_default.a['is-rotated'], rotated))

@@ -853,0 +853,0 @@ });

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

*/
!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"===i(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){"use strict";n.r(t);var r=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=1<arguments.length?arguments[1]:void 0;if(!e)return!1;var n,r=e.type,o=void 0===r?{}:r,i=o.target,u=o.hasType;return u?n=u()===t:i&&i.hasType&&(n=i.hasType()===t),n},o=function(e,t){if(t)throw new Error(t);throw new Error('"'.concat(e,'" is required'))};n.d(t,"hasType",function(){return r}),n.d(t,"requiredParam",function(){return o})}]))},function(e,t,n){"use strict";var r=n(3);t.__esModule=!0,t.default=function(e,t){var n,r,o,i,u,a,c,l=(0,d.default)(e),s={top:0,left:0};if(!e)return;n=t||(0,y.default)(e),i=(0,m.default)(n),r=(0,b.default)(n),a=(0,p.default)(n,!0),(i=(0,m.default)(n))||(s=(0,d.default)(n));l={top:l.top-s.top,left:l.left-s.left,height:l.height,width:l.width},u=l.height,o=l.top+(i?0:r),c=o+u,r=o<r?o:r+a<c?c-a:r;var f=(0,v.default)(function(){return(0,b.default)(n,r)});return function(){return v.default.cancel(f)}};var d=r(n(10)),p=r(n(11)),y=r(n(19)),b=r(n(28)),v=r(n(29)),m=r(n(8));e.exports=t.default},function(e,t,n){"use strict";var r=n(3);t.__esModule=!0,t.default=void 0;var o=r(n(9)).default?function(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):i(e,t)}:i;function i(e,t){if(t)do{if(t===e)return!0}while(t=t.parentNode);return!1}t.default=o,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return e&&e.ownerDocument||document},e.exports=t.default},function(e,t,n){"use strict";var r=n(3);t.__esModule=!0,t.default=function(e){var t=(0,u.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,u.default)(e,"position"),i=(0,u.default)(e,"overflow")+(0,u.default)(e,"overflow-y")+(0,u.default)(e,"overflow-x");if(!o&&(/(auto|scroll)/.test(i)&&(0,a.default)(e)<e.scrollHeight))return e}return document};var u=r(n(20)),a=r(n(11));e.exports=t.default},function(e,t,n){"use strict";var r=n(3);t.__esModule=!0,t.default=function(n,e,t){var r="",o="",i=e;if("string"==typeof e){if(void 0===t)return n.style[(0,u.default)(e)]||(0,c.default)(n).getPropertyValue((0,a.default)(e));(i={})[e]=t}Object.keys(i).forEach(function(e){var t=i[e];t||0===t?(0,f.default)(e)?o+=e+"("+t+") ":r+=(0,a.default)(e)+": "+t+";":(0,l.default)(n,(0,a.default)(e))}),o&&(r+=s.transform+": "+o+";");n.style.cssText+=";"+r};var u=r(n(12)),a=r(n(22)),c=r(n(24)),l=r(n(25)),s=n(26),f=r(n(27));e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return e.replace(r,function(e,t){return t.toUpperCase()})};var r=/-(.)/g;e.exports=t.default},function(e,t,n){"use strict";var r=n(3);t.__esModule=!0,t.default=function(e){return(0,o.default)(e).replace(i,"-ms-")};var o=r(n(23)),i=/^ms-/;e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return e.replace(r,"-$1").toLowerCase()};var r=/([A-Z])/g;e.exports=t.default},function(e,t,n){"use strict";var r=n(3);t.__esModule=!0,t.default=function(u){if(!u)throw new TypeError("No Element passed to `getComputedStyle()`");var e=u.ownerDocument;return"defaultView"in e?e.defaultView.opener?u.ownerDocument.defaultView.getComputedStyle(u,null):window.getComputedStyle(u,null):{getPropertyValue:function(e){var t=u.style;"float"==(e=(0,a.default)(e))&&(e="styleFloat");var n=u.currentStyle[e]||null;if(null==n&&t&&t[e]&&(n=t[e]),l.test(n)&&!c.test(e)){var r=t.left,o=u.runtimeStyle,i=o&&o.left;i&&(o.left=u.currentStyle.left),t.left="fontSize"===e?"1em":n,n=t.pixelLeft+"px",t.left=r,i&&(o.left=i)}return n}}};var a=r(n(12)),c=/^(top|right|bottom|left)$/,l=/^([+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|))(?!px)[a-z%]+$/i;e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){return"removeProperty"in e.style?e.style.removeProperty(t):e.style.removeAttribute(t)},e.exports=t.default},function(e,t,n){"use strict";var r=n(3);t.__esModule=!0,t.default=t.animationEnd=t.animationDelay=t.animationTiming=t.animationDuration=t.animationName=t.transitionEnd=t.transitionDuration=t.transitionDelay=t.transitionTiming=t.transitionProperty=t.transform=void 0;var o,i,u,a,c,l,s,f,d,p,y,b=r(n(9)),v="transform";if(t.transform=v,t.animationEnd=u,t.transitionEnd=i,t.transitionDelay=s,t.transitionTiming=l,t.transitionDuration=c,t.transitionProperty=a,t.animationDelay=y,t.animationTiming=p,t.animationDuration=d,t.animationName=f,b.default){var m=function(){for(var e,t,n=document.createElement("div").style,r={O:function(e){return"o"+e.toLowerCase()},Moz:function(e){return e.toLowerCase()},Webkit:function(e){return"webkit"+e},ms:function(e){return"MS"+e}},o=Object.keys(r),i="",u=0;u<o.length;u++){var a=o[u];if(a+"TransitionProperty"in n){i="-"+a.toLowerCase(),e=r[a]("TransitionEnd"),t=r[a]("AnimationEnd");break}}!e&&"transitionProperty"in n&&(e="transitionend");!t&&"animationName"in n&&(t="animationend");return n=null,{animationEnd:t,transitionEnd:e,prefix:i}}();o=m.prefix,t.transitionEnd=i=m.transitionEnd,t.animationEnd=u=m.animationEnd,t.transform=v=o+"-"+v,t.transitionProperty=a=o+"-transition-property",t.transitionDuration=c=o+"-transition-duration",t.transitionDelay=s=o+"-transition-delay",t.transitionTiming=l=o+"-transition-timing-function",t.animationName=f=o+"-animation-name",t.animationDuration=d=o+"-animation-duration",t.animationTiming=p=o+"-animation-delay",t.animationDelay=y=o+"-animation-timing-function"}var g={transform:v,end:i,property:a,timing:l,delay:s,duration:c};t.default=g},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return!(!e||!r.test(e))};var r=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;e.exports=t.default},function(e,t,n){"use strict";var r=n(3);t.__esModule=!0,t.default=function(e,t){var n=(0,o.default)(e);if(void 0===t)return n?"pageYOffset"in n?n.pageYOffset:n.document.documentElement.scrollTop:e.scrollTop;n?n.scrollTo("pageXOffset"in n?n.pageXOffset:n.document.documentElement.scrollLeft,t):e.scrollTop=t};var o=r(n(8));e.exports=t.default},function(e,t,n){"use strict";var r=n(3);t.__esModule=!0,t.default=void 0;var o,i=r(n(9)),u="clearTimeout",a=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-l)),r=setTimeout(e,n);return l=t,r},c=function(e,t){return e+(e?t[0].toUpperCase()+t.substr(1):t)+"AnimationFrame"};i.default&&["","webkit","moz","o","ms"].some(function(e){var t=c(e,"request");if(t in window)return u=c(e,"cancel"),a=function(e){return window[t](e)}});var l=(new Date).getTime();(o=function(e){return a(e)}).cancel=function(e){window[u]&&"function"==typeof window[u]&&window[u](e)};var s=o;t.default=s,e.exports=t.default},function(e,t,n){"use strict";var r=n(13);t.__esModule=!0,t.default=function(e,t){if(!o&&i.default){var n=document.body,r=n.matches||n.matchesSelector||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector;o=r?function(e,t){return r.call(e,t)}:a}return o?o(e,t):null};var o,i=r(n(31)),u=r(n(32));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";t.__esModule=!0,t.default=void 0;var r=!("undefined"==typeof window||!window.document||!window.document.createElement);t.default=r,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){var n,r="#"===t[0],o="."===t[0],i=r||o?t.slice(1):t;if(u.test(i))return r?(e=e.getElementById?e:document,(n=e.getElementById(i))?[n]:[]):e.getElementsByClassName&&o?a(e.getElementsByClassName(i)):a(e.getElementsByTagName(t));return a(e.querySelectorAll(t))};var u=/^[\w-]*$/,a=Function.prototype.bind.call(Function.prototype.call,[].slice);e.exports=t.default},function(e,t,n){"use strict";n.r(t);var c=n(2),l=n.n(c),r=n(0),o=n.n(r),s=n(4),i=n(14),f=n.n(i);function a(e){return(a="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})(e)}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(e){g(t,e,n[e])})}return t}function p(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],0<=t.indexOf(n)||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function y(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)}}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h=function(e){function u(){var e,c,t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t=this,n=(e=b(u)).call.apply(e,[this].concat(o)),g(m(m(c=!n||"object"!==a(n)&&"function"!=typeof n?m(t):n)),"getGroupProps",function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.role;return d({role:void 0===t?"group":t},p(e,["role"]))}),g(m(m(c)),"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,i=void 0===o?-1:o,u=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:i,onFocus:Object(s.composeEventHandlers)(u,function(e){var t=e.target,n=c.getGroupProps().role;f()(t,'[role="'.concat(n,'"]')).focus()})},a)}),c.state={focusedKey:void 0,selectedKey:void 0,id:s.IdManager.generateId("garden-button-group-container")},c}var t,n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(u,s["ControlledComponent"]),t=u,(n=[{key:"render",value:function(){var r=this,e=this.props,t=e.children,n=e.render,o=void 0===n?t:n,i=this.getControlledState(),u=i.focusedKey,a=i.selectedKey,c=i.id;return l.a.createElement(s.SelectionContainer,{id:c,focusedKey:u,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:u,selectedKey:a})})}}])&&y(t.prototype,n),r&&y(t,r),u}();g(h,"propTypes",{id:o.a.string,focusedKey:o.a.oneOfType([o.a.string,o.a.number]),selectedKey:o.a.oneOfType([o.a.string,o.a.number]),onStateChange:o.a.func,children:o.a.func,render:o.a.func});var O=n(15),u=n(6),_=n.n(u),w=n(7),S=n.n(w),P=n(1),j=n.n(P),x=n(5);var E="buttons.button_group_view",I=_.a.div.attrs({"data-garden-id":E,"data-garden-version":"3.6.14",className:function(e){return S()(j.a["l-btn-group"],(t={},n=j.a["is-rtl"],r=Object(x.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 Object(x.retrieveTheme)(E,e)});function M(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],0<=t.indexOf(n)||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var k="buttons.button",T="small",D="large",K=_.a.button.attrs({"data-garden-id":k,"data-garden-version":"3.6.14",className:function(e){var t,n=e.danger,r=e.size,o=e.stretched,i=e.disabled,u=e.focused,a=e.hovered,c=e.active,l=e.selected,s=e.pill,f=e.primary,d=e.basic,p=e.muted,y=e.link;return S()(j.a["c-btn"],(C(t={},j.a["c-btn--danger"],!i&&n),C(t,j.a["c-btn--primary"],f),C(t,j.a["c-btn--basic"],d),C(t,j.a["c-btn--muted"],p),C(t,j.a["c-btn--pill"],s),C(t,j.a["c-btn--anchor"],y),C(t,j.a["c-btn--sm"],r===T),C(t,j.a["c-btn--lg"],r===D),C(t,j.a["c-btn--full"],o),C(t,j.a["is-active"],c),C(t,j.a["is-disabled"],i),C(t,j.a["is-focused"],u),C(t,j.a["is-hovered"],a),C(t,j.a["is-selected"],l),t))},type:"button"}).withConfig({displayName:"Button__StyledButton",componentId:"sc-12lsl5w-0"})(["",";"],function(e){return Object(x.retrieveTheme)(k,e)}),F=function(e){var r=e.focused,o=e.buttonRef,i=M(e,["focused","buttonRef"]);return l.a.createElement(s.KeyboardFocusContainer,null,function(e){var t=e.getFocusProps,n=e.keyboardFocused;return l.a.createElement(K,t(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(e){C(t,e,n[e])})}return t}({innerRef:o},i,{focused:r||n})))})};F.propTypes={danger:o.a.bool,size:o.a.oneOf([T,D]),stretched:o.a.bool,primary:o.a.bool,basic:o.a.bool,muted:o.a.bool,link:o.a.bool,pill:o.a.bool,disabled:o.a.bool,focused:o.a.bool,hovered:o.a.bool,active:o.a.bool,selected:o.a.bool,buttonRef:o.a.func},F.hasType=function(){return F};var B=F;function A(e){return(A="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})(e)}function N(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],0<=t.indexOf(n)||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function L(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)}}function R(e){return(R=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function G(e,t){return(G=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function H(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function z(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var U=function(e){function a(){var e,i,t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var r=arguments.length,o=new Array(r),u=0;u<r;u++)o[u]=arguments[u];return t=this,n=(e=R(a)).call.apply(e,[this].concat(o)),z(H(H(i=!n||"object"!==A(n)&&"function"!=typeof n?H(t):n)),"renderButtons",function(n){var e=i.props.children,t=i.getControlledState(),r=t.selectedKey,o=t.focusedKey;return c.Children.map(e,function(e){if(!Object(c.isValidElement)(e))return e;if(Object(O.hasType)(e,B)){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===i.firstKey&&(i.firstKey=t),Object(c.cloneElement)(e,n(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(e){z(t,e,n[e])})}return t}({key:t,selected:t===r,focused:t===o},e.props)))}return e})}),i.state={id:s.IdManager.generateId("garden-button-group"),selectedKey:void 0,focusedKey:void 0},i.firstKey=void 0,i}var t,n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&G(e,t)}(a,s["ControlledComponent"]),t=a,(n=[{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,N(e,["children"])),t=this.getControlledState(),n=t.focusedKey,i=t.selectedKey,u=t.id;return l.a.createElement(h,{id:u,focusedKey:n,selectedKey:i,onStateChange:this.setControlledState},function(e){var t=e.getGroupProps,n=e.getButtonProps;return l.a.createElement(I,t(o),r.renderButtons(n))})}}])&&L(t.prototype,n),r&&L(t,r),a}();function q(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],0<=t.indexOf(n)||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function V(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}z(U,"propTypes",{id:o.a.any,children:o.a.any,selectedKey:o.a.any,onStateChange:o.a.func});var W="buttons.anchor",Y=_.a.a.attrs({"data-garden-id":W,"data-garden-version":"3.6.14",className:function(e){var t,n=e.danger,r=e.disabled,o=e.focused,i=e.hovered,u=e.active,a=e.selected;return S()(j.a["c-btn"],j.a["c-btn--anchor"],(V(t={},j.a["c-btn--danger"],n),V(t,j.a["is-active"],u),V(t,j.a["is-disabled"],r),V(t,j.a["is-focused"],o),V(t,j.a["is-hovered"],i),V(t,j.a["is-selected"],a),t))}}).withConfig({displayName:"Anchor__StyledAnchor",componentId:"sc-2qkkvq-0"})(["",";"],function(e){return Object(x.retrieveTheme)(W,e)}),X=function(e){var r=e.focused,o=q(e,["focused"]);return l.a.createElement(s.KeyboardFocusContainer,null,function(e){var t=e.getFocusProps,n=e.keyboardFocused;return l.a.createElement(Y,t(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(e){V(t,e,n[e])})}return t}({},o,{focused:r||n})))})};X.propTypes={danger:o.a.bool,disabled:o.a.bool,focused:o.a.bool,hovered:o.a.bool,active:o.a.bool};var $=X,Z="small",J="large",Q=_()(B).attrs({"data-garden-id":"buttons.icon_button","data-garden-version":"3.6.14",className:j.a["c-btn--icon"]}).withConfig({displayName:"IconButton",componentId:"x15t1e-0"})(["",";"],function(e){return Object(x.retrieveTheme)("buttons.icon_button",e)});Q.propTypes={danger:o.a.bool,size:o.a.oneOf([Z,J]),primary:o.a.bool,basic:o.a.bool,muted:o.a.bool,pill:o.a.bool,disabled:o.a.bool,focused:o.a.bool,hovered:o.a.bool,active:o.a.bool,buttonRef:o.a.func},Q.defaultProps={pill:!0,muted:!0,basic:!0};var ee=Q;var te=function(e){var t,n,r,o=e.children,i=e.rotated;return l.a.cloneElement(c.Children.only(o),{"data-garden-id":"buttons.icon","data-garden-version":"3.6.14",className:S()(j.a["c-btn__icon"],(t={},n=j.a["is-rotated"],r=i,n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t))})};te.propTypes={rotated:o.a.bool};var ne=te;function re(){return(re=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}).apply(this,arguments)}var oe=l.a.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",d:"M4 6.5l3.6 3.6c.2.2.5.2.7 0L12 6.5"}),ie=function(e){return l.a.createElement("svg",re({width:16,height:16,viewBox:"0 0 16 16"},e),oe)};function ue(){return(ue=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}).apply(this,arguments)}function ae(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],0<=t.indexOf(n)||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var ce="small",le="large",se=function(e){var t=e.rotated,n=ae(e,["rotated"]);return l.a.createElement(ee,ue({pill:!1,muted:!1,basic:!1},n),l.a.createElement(ne,{rotated:t},l.a.createElement(ie,null)))};se.propTypes={danger:o.a.bool,size:o.a.oneOf([ce,le]),primary:o.a.bool,basic:o.a.bool,muted:o.a.bool,pill:o.a.bool,disabled:o.a.bool,focused:o.a.bool,hovered:o.a.bool,active:o.a.bool,buttonRef:o.a.func,rotated:o.a.bool};var fe=se;n.d(t,"ButtonGroupContainer",function(){return h}),n.d(t,"ButtonGroup",function(){return U}),n.d(t,"Anchor",function(){return $}),n.d(t,"Button",function(){return B}),n.d(t,"ChevronButton",function(){return fe}),n.d(t,"IconButton",function(){return ee}),n.d(t,"Icon",function(){return ne}),n.d(t,"ButtonGroupView",function(){return I})}])});
!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"===i(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){"use strict";n.r(t);var r=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=1<arguments.length?arguments[1]:void 0;if(!e)return!1;var n,r=e.type,o=void 0===r?{}:r,i=o.target,u=o.hasType;return u?n=u()===t:i&&i.hasType&&(n=i.hasType()===t),n},o=function(e,t){if(t)throw new Error(t);throw new Error('"'.concat(e,'" is required'))};n.d(t,"hasType",function(){return r}),n.d(t,"requiredParam",function(){return o})}]))},function(e,t,n){"use strict";var r=n(3);t.__esModule=!0,t.default=function(e,t){var n,r,o,i,u,a,c,l=(0,d.default)(e),s={top:0,left:0};if(!e)return;n=t||(0,y.default)(e),i=(0,m.default)(n),r=(0,b.default)(n),a=(0,p.default)(n,!0),(i=(0,m.default)(n))||(s=(0,d.default)(n));l={top:l.top-s.top,left:l.left-s.left,height:l.height,width:l.width},u=l.height,o=l.top+(i?0:r),c=o+u,r=o<r?o:r+a<c?c-a:r;var f=(0,v.default)(function(){return(0,b.default)(n,r)});return function(){return v.default.cancel(f)}};var d=r(n(10)),p=r(n(11)),y=r(n(19)),b=r(n(28)),v=r(n(29)),m=r(n(8));e.exports=t.default},function(e,t,n){"use strict";var r=n(3);t.__esModule=!0,t.default=void 0;var o=r(n(9)).default?function(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):i(e,t)}:i;function i(e,t){if(t)do{if(t===e)return!0}while(t=t.parentNode);return!1}t.default=o,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return e&&e.ownerDocument||document},e.exports=t.default},function(e,t,n){"use strict";var r=n(3);t.__esModule=!0,t.default=function(e){var t=(0,u.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,u.default)(e,"position"),i=(0,u.default)(e,"overflow")+(0,u.default)(e,"overflow-y")+(0,u.default)(e,"overflow-x");if(!o&&(/(auto|scroll)/.test(i)&&(0,a.default)(e)<e.scrollHeight))return e}return document};var u=r(n(20)),a=r(n(11));e.exports=t.default},function(e,t,n){"use strict";var r=n(3);t.__esModule=!0,t.default=function(n,e,t){var r="",o="",i=e;if("string"==typeof e){if(void 0===t)return n.style[(0,u.default)(e)]||(0,c.default)(n).getPropertyValue((0,a.default)(e));(i={})[e]=t}Object.keys(i).forEach(function(e){var t=i[e];t||0===t?(0,f.default)(e)?o+=e+"("+t+") ":r+=(0,a.default)(e)+": "+t+";":(0,l.default)(n,(0,a.default)(e))}),o&&(r+=s.transform+": "+o+";");n.style.cssText+=";"+r};var u=r(n(12)),a=r(n(22)),c=r(n(24)),l=r(n(25)),s=n(26),f=r(n(27));e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return e.replace(r,function(e,t){return t.toUpperCase()})};var r=/-(.)/g;e.exports=t.default},function(e,t,n){"use strict";var r=n(3);t.__esModule=!0,t.default=function(e){return(0,o.default)(e).replace(i,"-ms-")};var o=r(n(23)),i=/^ms-/;e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return e.replace(r,"-$1").toLowerCase()};var r=/([A-Z])/g;e.exports=t.default},function(e,t,n){"use strict";var r=n(3);t.__esModule=!0,t.default=function(u){if(!u)throw new TypeError("No Element passed to `getComputedStyle()`");var e=u.ownerDocument;return"defaultView"in e?e.defaultView.opener?u.ownerDocument.defaultView.getComputedStyle(u,null):window.getComputedStyle(u,null):{getPropertyValue:function(e){var t=u.style;"float"==(e=(0,a.default)(e))&&(e="styleFloat");var n=u.currentStyle[e]||null;if(null==n&&t&&t[e]&&(n=t[e]),l.test(n)&&!c.test(e)){var r=t.left,o=u.runtimeStyle,i=o&&o.left;i&&(o.left=u.currentStyle.left),t.left="fontSize"===e?"1em":n,n=t.pixelLeft+"px",t.left=r,i&&(o.left=i)}return n}}};var a=r(n(12)),c=/^(top|right|bottom|left)$/,l=/^([+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|))(?!px)[a-z%]+$/i;e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){return"removeProperty"in e.style?e.style.removeProperty(t):e.style.removeAttribute(t)},e.exports=t.default},function(e,t,n){"use strict";var r=n(3);t.__esModule=!0,t.default=t.animationEnd=t.animationDelay=t.animationTiming=t.animationDuration=t.animationName=t.transitionEnd=t.transitionDuration=t.transitionDelay=t.transitionTiming=t.transitionProperty=t.transform=void 0;var o,i,u,a,c,l,s,f,d,p,y,b=r(n(9)),v="transform";if(t.transform=v,t.animationEnd=u,t.transitionEnd=i,t.transitionDelay=s,t.transitionTiming=l,t.transitionDuration=c,t.transitionProperty=a,t.animationDelay=y,t.animationTiming=p,t.animationDuration=d,t.animationName=f,b.default){var m=function(){for(var e,t,n=document.createElement("div").style,r={O:function(e){return"o"+e.toLowerCase()},Moz:function(e){return e.toLowerCase()},Webkit:function(e){return"webkit"+e},ms:function(e){return"MS"+e}},o=Object.keys(r),i="",u=0;u<o.length;u++){var a=o[u];if(a+"TransitionProperty"in n){i="-"+a.toLowerCase(),e=r[a]("TransitionEnd"),t=r[a]("AnimationEnd");break}}!e&&"transitionProperty"in n&&(e="transitionend");!t&&"animationName"in n&&(t="animationend");return n=null,{animationEnd:t,transitionEnd:e,prefix:i}}();o=m.prefix,t.transitionEnd=i=m.transitionEnd,t.animationEnd=u=m.animationEnd,t.transform=v=o+"-"+v,t.transitionProperty=a=o+"-transition-property",t.transitionDuration=c=o+"-transition-duration",t.transitionDelay=s=o+"-transition-delay",t.transitionTiming=l=o+"-transition-timing-function",t.animationName=f=o+"-animation-name",t.animationDuration=d=o+"-animation-duration",t.animationTiming=p=o+"-animation-delay",t.animationDelay=y=o+"-animation-timing-function"}var g={transform:v,end:i,property:a,timing:l,delay:s,duration:c};t.default=g},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return!(!e||!r.test(e))};var r=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;e.exports=t.default},function(e,t,n){"use strict";var r=n(3);t.__esModule=!0,t.default=function(e,t){var n=(0,o.default)(e);if(void 0===t)return n?"pageYOffset"in n?n.pageYOffset:n.document.documentElement.scrollTop:e.scrollTop;n?n.scrollTo("pageXOffset"in n?n.pageXOffset:n.document.documentElement.scrollLeft,t):e.scrollTop=t};var o=r(n(8));e.exports=t.default},function(e,t,n){"use strict";var r=n(3);t.__esModule=!0,t.default=void 0;var o,i=r(n(9)),u="clearTimeout",a=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-l)),r=setTimeout(e,n);return l=t,r},c=function(e,t){return e+(e?t[0].toUpperCase()+t.substr(1):t)+"AnimationFrame"};i.default&&["","webkit","moz","o","ms"].some(function(e){var t=c(e,"request");if(t in window)return u=c(e,"cancel"),a=function(e){return window[t](e)}});var l=(new Date).getTime();(o=function(e){return a(e)}).cancel=function(e){window[u]&&"function"==typeof window[u]&&window[u](e)};var s=o;t.default=s,e.exports=t.default},function(e,t,n){"use strict";var r=n(13);t.__esModule=!0,t.default=function(e,t){if(!o&&i.default){var n=document.body,r=n.matches||n.matchesSelector||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector;o=r?function(e,t){return r.call(e,t)}:a}return o?o(e,t):null};var o,i=r(n(31)),u=r(n(32));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";t.__esModule=!0,t.default=void 0;var r=!("undefined"==typeof window||!window.document||!window.document.createElement);t.default=r,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){var n,r="#"===t[0],o="."===t[0],i=r||o?t.slice(1):t;if(u.test(i))return r?(e=e.getElementById?e:document,(n=e.getElementById(i))?[n]:[]):e.getElementsByClassName&&o?a(e.getElementsByClassName(i)):a(e.getElementsByTagName(t));return a(e.querySelectorAll(t))};var u=/^[\w-]*$/,a=Function.prototype.bind.call(Function.prototype.call,[].slice);e.exports=t.default},function(e,t,n){"use strict";n.r(t);var c=n(2),l=n.n(c),r=n(0),o=n.n(r),s=n(4),i=n(14),f=n.n(i);function a(e){return(a="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})(e)}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(e){g(t,e,n[e])})}return t}function p(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],0<=t.indexOf(n)||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function y(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)}}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h=function(e){function u(){var e,c,t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t=this,n=(e=b(u)).call.apply(e,[this].concat(o)),g(m(m(c=!n||"object"!==a(n)&&"function"!=typeof n?m(t):n)),"getGroupProps",function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.role;return d({role:void 0===t?"group":t},p(e,["role"]))}),g(m(m(c)),"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,i=void 0===o?-1:o,u=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:i,onFocus:Object(s.composeEventHandlers)(u,function(e){var t=e.target,n=c.getGroupProps().role;f()(t,'[role="'.concat(n,'"]')).focus()})},a)}),c.state={focusedKey:void 0,selectedKey:void 0,id:s.IdManager.generateId("garden-button-group-container")},c}var t,n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(u,s["ControlledComponent"]),t=u,(n=[{key:"render",value:function(){var r=this,e=this.props,t=e.children,n=e.render,o=void 0===n?t:n,i=this.getControlledState(),u=i.focusedKey,a=i.selectedKey,c=i.id;return l.a.createElement(s.SelectionContainer,{id:c,focusedKey:u,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:u,selectedKey:a})})}}])&&y(t.prototype,n),r&&y(t,r),u}();g(h,"propTypes",{id:o.a.string,focusedKey:o.a.oneOfType([o.a.string,o.a.number]),selectedKey:o.a.oneOfType([o.a.string,o.a.number]),onStateChange:o.a.func,children:o.a.func,render:o.a.func});var O=n(15),u=n(6),_=n.n(u),w=n(7),S=n.n(w),P=n(1),j=n.n(P),x=n(5);var E="buttons.button_group_view",I=_.a.div.attrs({"data-garden-id":E,"data-garden-version":"3.7.0",className:function(e){return S()(j.a["l-btn-group"],(t={},n=j.a["is-rtl"],r=Object(x.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 Object(x.retrieveTheme)(E,e)});function M(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],0<=t.indexOf(n)||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var k="buttons.button",T="small",D="large",K=_.a.button.attrs({"data-garden-id":k,"data-garden-version":"3.7.0",className:function(e){var t,n=e.danger,r=e.size,o=e.stretched,i=e.disabled,u=e.focused,a=e.hovered,c=e.active,l=e.selected,s=e.pill,f=e.primary,d=e.basic,p=e.muted,y=e.link;return S()(j.a["c-btn"],(C(t={},j.a["c-btn--danger"],!i&&n),C(t,j.a["c-btn--primary"],f),C(t,j.a["c-btn--basic"],d),C(t,j.a["c-btn--muted"],p),C(t,j.a["c-btn--pill"],s),C(t,j.a["c-btn--anchor"],y),C(t,j.a["c-btn--sm"],r===T),C(t,j.a["c-btn--lg"],r===D),C(t,j.a["c-btn--full"],o),C(t,j.a["is-active"],c),C(t,j.a["is-disabled"],i),C(t,j.a["is-focused"],u),C(t,j.a["is-hovered"],a),C(t,j.a["is-selected"],l),t))},type:"button"}).withConfig({displayName:"Button__StyledButton",componentId:"sc-12lsl5w-0"})(["",";"],function(e){return Object(x.retrieveTheme)(k,e)}),F=function(e){var r=e.focused,o=e.buttonRef,i=M(e,["focused","buttonRef"]);return l.a.createElement(s.KeyboardFocusContainer,null,function(e){var t=e.getFocusProps,n=e.keyboardFocused;return l.a.createElement(K,t(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(e){C(t,e,n[e])})}return t}({innerRef:o},i,{focused:r||n})))})};F.propTypes={danger:o.a.bool,size:o.a.oneOf([T,D]),stretched:o.a.bool,primary:o.a.bool,basic:o.a.bool,muted:o.a.bool,link:o.a.bool,pill:o.a.bool,disabled:o.a.bool,focused:o.a.bool,hovered:o.a.bool,active:o.a.bool,selected:o.a.bool,buttonRef:o.a.func},F.hasType=function(){return F};var B=F;function A(e){return(A="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})(e)}function N(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],0<=t.indexOf(n)||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function L(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)}}function R(e){return(R=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function G(e,t){return(G=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function H(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function z(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var U=function(e){function a(){var e,i,t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var r=arguments.length,o=new Array(r),u=0;u<r;u++)o[u]=arguments[u];return t=this,n=(e=R(a)).call.apply(e,[this].concat(o)),z(H(H(i=!n||"object"!==A(n)&&"function"!=typeof n?H(t):n)),"renderButtons",function(n){var e=i.props.children,t=i.getControlledState(),r=t.selectedKey,o=t.focusedKey;return c.Children.map(e,function(e){if(!Object(c.isValidElement)(e))return e;if(Object(O.hasType)(e,B)){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===i.firstKey&&(i.firstKey=t),Object(c.cloneElement)(e,n(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(e){z(t,e,n[e])})}return t}({key:t,selected:t===r,focused:t===o},e.props)))}return e})}),i.state={id:s.IdManager.generateId("garden-button-group"),selectedKey:void 0,focusedKey:void 0},i.firstKey=void 0,i}var t,n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&G(e,t)}(a,s["ControlledComponent"]),t=a,(n=[{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,N(e,["children"])),t=this.getControlledState(),n=t.focusedKey,i=t.selectedKey,u=t.id;return l.a.createElement(h,{id:u,focusedKey:n,selectedKey:i,onStateChange:this.setControlledState},function(e){var t=e.getGroupProps,n=e.getButtonProps;return l.a.createElement(I,t(o),r.renderButtons(n))})}}])&&L(t.prototype,n),r&&L(t,r),a}();function q(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],0<=t.indexOf(n)||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function V(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}z(U,"propTypes",{id:o.a.any,children:o.a.any,selectedKey:o.a.any,onStateChange:o.a.func});var W="buttons.anchor",Y=_.a.a.attrs({"data-garden-id":W,"data-garden-version":"3.7.0",className:function(e){var t,n=e.danger,r=e.disabled,o=e.focused,i=e.hovered,u=e.active,a=e.selected;return S()(j.a["c-btn"],j.a["c-btn--anchor"],(V(t={},j.a["c-btn--danger"],n),V(t,j.a["is-active"],u),V(t,j.a["is-disabled"],r),V(t,j.a["is-focused"],o),V(t,j.a["is-hovered"],i),V(t,j.a["is-selected"],a),t))}}).withConfig({displayName:"Anchor__StyledAnchor",componentId:"sc-2qkkvq-0"})(["",";"],function(e){return Object(x.retrieveTheme)(W,e)}),X=function(e){var r=e.focused,o=q(e,["focused"]);return l.a.createElement(s.KeyboardFocusContainer,null,function(e){var t=e.getFocusProps,n=e.keyboardFocused;return l.a.createElement(Y,t(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(e){V(t,e,n[e])})}return t}({},o,{focused:r||n})))})};X.propTypes={danger:o.a.bool,disabled:o.a.bool,focused:o.a.bool,hovered:o.a.bool,active:o.a.bool};var $=X,Z="small",J="large",Q=_()(B).attrs({"data-garden-id":"buttons.icon_button","data-garden-version":"3.7.0",className:j.a["c-btn--icon"]}).withConfig({displayName:"IconButton",componentId:"x15t1e-0"})(["",";"],function(e){return Object(x.retrieveTheme)("buttons.icon_button",e)});Q.propTypes={danger:o.a.bool,size:o.a.oneOf([Z,J]),primary:o.a.bool,basic:o.a.bool,muted:o.a.bool,pill:o.a.bool,disabled:o.a.bool,focused:o.a.bool,hovered:o.a.bool,active:o.a.bool,buttonRef:o.a.func},Q.defaultProps={pill:!0,muted:!0,basic:!0};var ee=Q;var te=function(e){var t,n,r,o=e.children,i=e.rotated;return l.a.cloneElement(c.Children.only(o),{"data-garden-id":"buttons.icon","data-garden-version":"3.7.0",className:S()(j.a["c-btn__icon"],(t={},n=j.a["is-rotated"],r=i,n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t))})};te.propTypes={rotated:o.a.bool};var ne=te;function re(){return(re=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}).apply(this,arguments)}var oe=l.a.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",d:"M4 6.5l3.6 3.6c.2.2.5.2.7 0L12 6.5"}),ie=function(e){return l.a.createElement("svg",re({width:16,height:16,viewBox:"0 0 16 16"},e),oe)};function ue(){return(ue=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}).apply(this,arguments)}function ae(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],0<=t.indexOf(n)||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var ce="small",le="large",se=function(e){var t=e.rotated,n=ae(e,["rotated"]);return l.a.createElement(ee,ue({pill:!1,muted:!1,basic:!1},n),l.a.createElement(ne,{rotated:t},l.a.createElement(ie,null)))};se.propTypes={danger:o.a.bool,size:o.a.oneOf([ce,le]),primary:o.a.bool,basic:o.a.bool,muted:o.a.bool,pill:o.a.bool,disabled:o.a.bool,focused:o.a.bool,hovered:o.a.bool,active:o.a.bool,buttonRef:o.a.func,rotated:o.a.bool};var fe=se;n.d(t,"ButtonGroupContainer",function(){return h}),n.d(t,"ButtonGroup",function(){return U}),n.d(t,"Anchor",function(){return $}),n.d(t,"Button",function(){return B}),n.d(t,"ChevronButton",function(){return fe}),n.d(t,"IconButton",function(){return ee}),n.d(t,"Icon",function(){return ne}),n.d(t,"ButtonGroupView",function(){return I})}])});
//# sourceMappingURL=bundle.min.js.map

@@ -11,3 +11,3 @@ {

},
"version": "3.6.14",
"version": "3.7.0",
"main": "./dist/index.js",

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

"devDependencies": {
"@zendeskgarden/css-buttons": "6.1.6",
"@zendeskgarden/css-buttons": "6.2.0",
"@zendeskgarden/react-theming": "^3.2.1",

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

"zendeskgarden:src": "src/index.js",
"gitHead": "21cf6b5183a529f62e841f18b448bfeeb6ba41a9"
"gitHead": "6f60185fcad9b1d79d909a398fabb89193261ec6"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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