@leafygreen-ui/button
Advanced tools
Comparing version 3.0.0 to 3.0.1
# @leafygreen-ui/button | ||
## 3.0.1 | ||
### Patch Changes | ||
- ff55bb5: Added fallback CSS for focus and hover states | ||
## 3.0.0 | ||
@@ -4,0 +10,0 @@ |
@@ -1,2 +0,2 @@ | ||
!function(t,n){if("object"==typeof exports&&"object"==typeof module)module.exports=n(require("react"),require("prop-types"),require("@leafygreen-ui/emotion"),require("@leafygreen-ui/palette"),require("polished"));else if("function"==typeof define&&define.amd)define(["react","prop-types","@leafygreen-ui/emotion","@leafygreen-ui/palette","polished"],n);else{var r="object"==typeof exports?n(require("react"),require("prop-types"),require("@leafygreen-ui/emotion"),require("@leafygreen-ui/palette"),require("polished")):n(t.react,t["prop-types"],t["@leafygreen-ui/emotion"],t["@leafygreen-ui/palette"],t.polished);for(var e in r)("object"==typeof exports?exports:t)[e]=r[e]}}(window,(function(t,n,r,e,o){return function(t){var n={};function r(e){if(n[e])return n[e].exports;var o=n[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=n,r.d=function(t,n,e){r.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:e})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,n){if(1&n&&(t=r(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(r.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)r.d(e,o,function(n){return t[n]}.bind(null,o));return e},r.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(n,"a",n),n},r.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},r.p="",r(r.s=46)}([function(t,n,r){var e=r(28),o="object"==typeof self&&self&&self.Object===Object&&self,i=e||o||Function("return this")();t.exports=i},function(t,n,r){var e=r(66),o=r(72);t.exports=function(t,n){var r=o(t,n);return e(r)?r:void 0}},function(t,n){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,n){var r=Array.isArray;t.exports=r},function(t,n,r){var e=r(5),o=r(68),i=r(69),a="[object Null]",u="[object Undefined]",c=e?e.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?u:a:c&&c in Object(t)?o(t):i(t)}},function(t,n,r){var e=r(0).Symbol;t.exports=e},function(t,n){t.exports=function(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}},function(t,n,r){var e=r(31),o=r(32);t.exports=function(t,n,r,i){var a=!r;r||(r={});for(var u=-1,c=n.length;++u<c;){var s=n[u],f=i?i(r[s],t[s],s,r,t):void 0;void 0===f&&(f=t[s]),a?o(r,s,f):e(r,s,f)}return r}},function(t,n,r){var e=r(56),o=r(57),i=r(58),a=r(59),u=r(60);function c(t){var n=-1,r=null==t?0:t.length;for(this.clear();++n<r;){var e=t[n];this.set(e[0],e[1])}}c.prototype.clear=e,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=u,t.exports=c},function(t,n,r){var e=r(26);t.exports=function(t,n){for(var r=t.length;r--;)if(e(t[r][0],n))return r;return-1}},function(t,n,r){var e=r(1)(Object,"create");t.exports=e},function(t,n,r){var e=r(81);t.exports=function(t,n){var r=t.__data__;return e(n)?r["string"==typeof n?"string":"hash"]:r.map}},function(t,n,r){var e=r(1)(r(0),"Map");t.exports=e},function(t,n,r){var e=r(34),o=r(93),i=r(39);t.exports=function(t){return i(t)?e(t):o(t)}},function(t,n){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,n){t.exports=function(t){return function(n){return t(n)}}},function(t,n,r){(function(t){var e=r(28),o=n&&!n.nodeType&&n,i=o&&"object"==typeof t&&t&&!t.nodeType&&t,a=i&&i.exports===o&&e.process,u=function(){try{var t=i&&i.require&&i.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=u}).call(this,r(14)(t))},function(t,n){var r=Object.prototype;t.exports=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||r)}},function(t,n,r){var e=r(101),o=r(41),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,u=a?function(t){return null==t?[]:(t=Object(t),e(a(t),(function(n){return i.call(t,n)})))}:o;t.exports=u},function(t,n){t.exports=function(t,n){for(var r=-1,e=n.length,o=t.length;++r<e;)t[o+r]=n[r];return t}},function(t,n,r){var e=r(38)(Object.getPrototypeOf,Object);t.exports=e},function(t,n,r){var e=r(104),o=r(12),i=r(105),a=r(106),u=r(107),c=r(4),s=r(29),f=s(e),l=s(o),p=s(i),b=s(a),d=s(u),v=c;(e&&"[object DataView]"!=v(new e(new ArrayBuffer(1)))||o&&"[object Map]"!=v(new o)||i&&"[object Promise]"!=v(i.resolve())||a&&"[object Set]"!=v(new a)||u&&"[object WeakMap]"!=v(new u))&&(v=function(t){var n=c(t),r="[object Object]"==n?t.constructor:void 0,e=r?s(r):"";if(e)switch(e){case f:return"[object DataView]";case l:return"[object Map]";case p:return"[object Promise]";case b:return"[object Set]";case d:return"[object WeakMap]"}return n}),t.exports=v},function(t,n,r){var e=r(110);t.exports=function(t){var n=new t.constructor(t.byteLength);return new e(n).set(new e(t)),n}},function(t,n,r){var e=r(3),o=r(122),i=r(123),a=r(126);t.exports=function(t,n){return e(t)?t:o(t,n)?[t]:i(a(t))}},function(t,n,r){var e=r(4),o=r(2),i="[object Symbol]";t.exports=function(t){return"symbol"==typeof t||o(t)&&e(t)==i}},function(t,n){t.exports=function(t,n){for(var r=-1,e=null==t?0:t.length,o=Array(e);++r<e;)o[r]=n(t[r],r,t);return o}},function(t,n){t.exports=function(t,n){return t===n||t!=t&&n!=n}},function(t,n,r){var e=r(4),o=r(6),i="[object AsyncFunction]",a="[object Function]",u="[object GeneratorFunction]",c="[object Proxy]";t.exports=function(t){if(!o(t))return!1;var n=e(t);return n==a||n==u||n==i||n==c}},function(t,n,r){(function(n){var r="object"==typeof n&&n&&n.Object===Object&&n;t.exports=r}).call(this,r(67))},function(t,n){var r=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return r.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,n,r){var e=r(73),o=r(80),i=r(82),a=r(83),u=r(84);function c(t){var n=-1,r=null==t?0:t.length;for(this.clear();++n<r;){var e=t[n];this.set(e[0],e[1])}}c.prototype.clear=e,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=u,t.exports=c},function(t,n,r){var e=r(32),o=r(26),i=Object.prototype.hasOwnProperty;t.exports=function(t,n,r){var a=t[n];i.call(t,n)&&o(a,r)&&(void 0!==r||n in t)||e(t,n,r)}},function(t,n,r){var e=r(33);t.exports=function(t,n,r){"__proto__"==n&&e?e(t,n,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[n]=r}},function(t,n,r){var e=r(1),o=function(){try{var t=e(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},function(t,n,r){var e=r(87),o=r(35),i=r(3),a=r(36),u=r(90),c=r(91),s=Object.prototype.hasOwnProperty;t.exports=function(t,n){var r=i(t),f=!r&&o(t),l=!r&&!f&&a(t),p=!r&&!f&&!l&&c(t),b=r||f||l||p,d=b?e(t.length,String):[],v=d.length;for(var y in t)!n&&!s.call(t,y)||b&&("length"==y||l&&("offset"==y||"parent"==y)||p&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||u(y,v))||d.push(y);return d}},function(t,n,r){var e=r(88),o=r(2),i=Object.prototype,a=i.hasOwnProperty,u=i.propertyIsEnumerable,c=e(function(){return arguments}())?e:function(t){return o(t)&&a.call(t,"callee")&&!u.call(t,"callee")};t.exports=c},function(t,n,r){(function(t){var e=r(0),o=r(89),i=n&&!n.nodeType&&n,a=i&&"object"==typeof t&&t&&!t.nodeType&&t,u=a&&a.exports===i?e.Buffer:void 0,c=(u?u.isBuffer:void 0)||o;t.exports=c}).call(this,r(14)(t))},function(t,n){var r=9007199254740991;t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=r}},function(t,n){t.exports=function(t,n){return function(r){return t(n(r))}}},function(t,n,r){var e=r(27),o=r(37);t.exports=function(t){return null!=t&&o(t.length)&&!e(t)}},function(t,n,r){var e=r(34),o=r(96),i=r(39);t.exports=function(t){return i(t)?e(t,!0):o(t)}},function(t,n){t.exports=function(){return[]}},function(t,n,r){var e=r(19),o=r(20),i=r(18),a=r(41),u=Object.getOwnPropertySymbols?function(t){for(var n=[];t;)e(n,i(t)),t=o(t);return n}:a;t.exports=u},function(t,n,r){var e=r(19),o=r(3);t.exports=function(t,n,r){var i=n(t);return o(t)?i:e(i,r(t))}},function(t,n,r){var e=r(43),o=r(42),i=r(40);t.exports=function(t){return e(t,i,o)}},function(t,n,r){var e=r(24),o=1/0;t.exports=function(t){if("string"==typeof t||e(t))return t;var n=t+"";return"0"==n&&1/t==-o?"-0":n}},function(t,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"Size",{enumerable:!0,get:function(){return e.Size}}),Object.defineProperty(n,"Variant",{enumerable:!0,get:function(){return e.Variant}}),n.default=void 0;var e=function(t){if(t&&t.__esModule)return t;var n=o();if(n&&n.has(t))return n.get(t);var r={};if(null!=t){var e=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var a=e?Object.getOwnPropertyDescriptor(t,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=t[i]}}r.default=t,n&&n.set(t,r);return r}(r(47));function o(){if("function"!=typeof WeakMap)return null;var t=new WeakMap;return o=function(){return t},t}var i=e.default;n.default=i},function(t,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.Size=n.Variant=void 0;var e,o,i=l(r(48)),a=l(r(49)),u=r(50),c=r(51),s=r(52),f=l(r(53));function l(t){return t&&t.__esModule?t:{default:t}}function p(){return(p=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])}return t}).apply(this,arguments)}function b(){var t=P(['\n // Usually for this to take effect, you would need the element to be\n // "positioned". Due to an obscure part of CSS spec, flex children\n // respect z-index without the position property being set.\n //\n // https://www.w3.org/TR/css-flexbox-1/#painting\n z-index: 1;\n ']);return b=function(){return t},t}function d(t,n){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);n&&(e=e.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),r.push.apply(r,e)}return r}function v(){var t=P(["\n color: ",";\n border-color: ",";\n background-color: ",";\n background-image: none;\n box-shadow: none;\n pointer-events: none;\n"]);return v=function(){return t},t}function y(){var t=P(["\n position: relative;\n // Establishes the root element as a new stacking context\n // so that the z-index of the span within the button doesn't\n // appear above other elements on the page that it shouldn't.\n z-index: 0;\n border-radius: 3px;\n box-sizing: border-box;\n cursor: pointer;\n display: inline-flex;\n align-items: center;\n font-family: Akzidenz, 'Helvetica Neue', Helvetica, Arial, sans-serif;\n font-weight: normal;\n text-decoration: none;\n text-transform: none;\n transition: all 120ms ease;\n user-select: none;\n overflow: hidden;\n\n &:hover {\n text-decoration: none;\n }\n\n // We're using CSS pseudo elements here in order to\n // transition the gradients between button pseudo classes.\n &:before,\n &:after {\n content: '';\n transition: 0.15s opacity ease-in-out;\n opacity: 0;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n }\n\n &:not(:disabled) {\n &:focus,\n &:hover {\n &:before {\n opacity: 1;\n }\n }\n\n &:active:after {\n opacity: 1;\n }\n }\n"]);return y=function(){return t},t}function g(){var t=P(["\n height: 45px;\n font-size: 16px;\n padding: 0 20px;\n "]);return g=function(){return t},t}function x(){var t=P(["\n height: 32px;\n padding: 0 12px;\n font-size: 14px;\n "]);return x=function(){return t},t}function h(){var t=P(["\n height: 25px;\n padding: 0 10px;\n font-size: 14px;\n "]);return h=function(){return t},t}function j(){var t=P(["\n height: 22px;\n padding: 0 8px;\n font-size: 11px;\n text-transform: uppercase;\n font-weight: bold;\n "]);return j=function(){return t},t}function _(t,n,r){return n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}function w(){var t=P(["\n color: ",";\n border: 1px solid ",";\n background-color: ",";\n background-image: linear-gradient(\n ",",\n ","\n );\n box-shadow: inset 0 -1px 0 ",";\n\n &:before {\n background-image: linear-gradient(\n ",",\n ","\n );\n box-shadow: 0 1px 4px ",",\n inset 0 -1px 0 ",";\n }\n\n &:after {\n background-image: linear-gradient(\n ",",\n ","\n );\n box-shadow: inset 0 2px 2px ",";\n }\n "]);return w=function(){return t},t}function O(){var t=P(["\n color: ",";\n border: 1px solid ",";\n background-color: ",";\n background-image: linear-gradient(#e45b26, #b63016);\n box-shadow: inset 0 -1px 0 0 ",";\n\n &:before {\n background-color: ",";\n background-image: linear-gradient(#e45b26, ",");\n box-shadow: 0 1px 4px ",",\n inset 0 -1px 0 ",";\n }\n\n &:after {\n background-color: ",";\n background-image: linear-gradient(#ad231b, #e45b26);\n box-shadow: inset 0 2px 2px ",";\n }\n "]);return O=function(){return t},t}function m(){var t=P(["\n color: ",";\n background-color: transparent;\n background-image: none;\n border: 1px solid ",";\n box-shadow: none;\n\n &:before {\n background-color: #129f4c;\n background-image: linear-gradient(#129f4c, #148040);\n box-shadow: 0 1px 4px ",",\n inset 0 -1px 0 #158242;\n }\n\n &:after {\n background-color: ",";\n background-image: linear-gradient(#148040, #129f4c);\n box-shadow: inset 0 2px 2px ",";\n }\n\n &:not(:disabled) {\n &:focus,\n &:hover,\n &:active {\n border-color: #158242;\n color: ",";\n }\n }\n "]);return m=function(){return t},t}function k(){var t=P(["\n color: ",";\n border: 1px solid #158242;\n background-color: ",";\n background-image: linear-gradient(",", #18964c);\n box-shadow: inset 0 -1px 0 #158242;\n\n &:before {\n background-color: #129f4c;\n background-image: linear-gradient(#129f4c, #148040);\n box-shadow: 0 1px 4px ",",\n inset 0 -1px 0 #158242;\n }\n\n &:after {\n background-color: ",";\n background-image: linear-gradient(#148040, #129f4c);\n box-shadow: inset 0 2px 2px ",";\n }\n "]);return k=function(){return t},t}function C(){var t=P(["\n color: ",";\n border: 1px solid ",";\n background-color: ",";\n background-image: linear-gradient(\n ",",\n ","\n );\n box-shadow: inset 0 -1px 0 ",";\n\n &:before {\n border-color: ",";\n background-color: ",";\n background-image: linear-gradient(",", #dde4e2);\n box-shadow: inset 0 -1px 0 ",",\n 0 1px 4px ",";\n }\n\n &:after {\n border-color: ",";\n background-color: ",";\n background-image: linear-gradient(#dde4e2, ",");\n box-shadow: inset 0 2px 2px ",";\n }\n "]);return C=function(){return t},t}function P(t,n){return n||(n=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(n)}}))}var A={Default:"default",Primary:"primary",Info:"info",Danger:"danger",Dark:"dark"};n.Variant=A;var S={XSmall:"xsmall",Small:"small",Normal:"normal",Large:"large"};n.Size=S;var z=(_(e={},A.Default,(0,u.css)(C(),c.uiColors.gray.dark2,c.uiColors.gray.light1,c.uiColors.gray.light3,c.uiColors.white,c.uiColors.gray.light2,c.uiColors.gray.light1,c.uiColors.gray.light1,c.uiColors.gray.light2,c.uiColors.gray.light3,c.uiColors.gray.light1,(0,s.transparentize)(.9,c.uiColors.black),c.uiColors.gray.light1,c.uiColors.gray.light3,c.uiColors.gray.light3,(0,s.transparentize)(.9,c.uiColors.black))),_(e,A.Primary,(0,u.css)(k(),c.uiColors.white,c.uiColors.green.base,c.uiColors.green.base,(0,s.transparentize)(.9,c.uiColors.black),c.uiColors.green.base,c.uiColors.green.dark2)),_(e,A.Info,(0,u.css)(m(),c.uiColors.green.base,c.uiColors.green.base,(0,s.transparentize)(.9,c.uiColors.black),c.uiColors.green.base,c.uiColors.green.dark2,c.uiColors.white)),_(e,A.Danger,(0,u.css)(O(),c.uiColors.white,c.uiColors.red.dark2,c.uiColors.red.base,c.uiColors.red.dark2,c.uiColors.red.dark2,c.uiColors.red.dark2,(0,s.transparentize)(.9,c.uiColors.black),c.uiColors.red.dark2,c.uiColors.red.dark2,c.uiColors.red.dark2)),_(e,A.Dark,(0,u.css)(w(),c.uiColors.white,c.uiColors.gray.dark2,c.uiColors.gray.dark1,c.uiColors.gray.base,c.uiColors.gray.dark1,c.uiColors.gray.dark2,c.uiColors.gray.base,c.uiColors.gray.dark2,(0,s.transparentize)(.9,c.uiColors.black),c.uiColors.gray.dark2,c.uiColors.gray.dark1,c.uiColors.gray.base,c.uiColors.gray.dark2)),e),D=(_(o={},S.XSmall,(0,u.css)(j())),_(o,S.Small,(0,u.css)(h())),_(o,S.Normal,(0,u.css)(x())),_(o,S.Large,(0,u.css)(g())),o),M=(0,u.css)(y()),E=(0,u.css)(v(),c.uiColors.gray.base,c.uiColors.gray.light1,c.uiColors.gray.light2);function F(t){return null!=t.href}var I=i.default.forwardRef((function(t,n){var r=t.className,e=void 0===r?"":r,o=t.children,a=void 0===o?null:o,c=t.disabled,s=void 0!==c&&c,l=t.variant,v=void 0===l?A.Default:l,y=t.size,g=void 0===y?S.Normal:y,x=function(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?d(r,!0).forEach((function(n){_(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):d(r).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))}))}return t}({className:(0,u.cx)(M,D[g],z[v],_({},E,s),e)},!F(t)&&{disabled:s},{"aria-disabled":s}),h=(0,f.default)(t,["as","className","disabled","size","variant","children"]),j=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"button";return i.default.createElement(t,p({ref:n,type:"button"===t?"button":void 0},h,x),i.default.createElement("span",{className:(0,u.css)(b())},a))};return function(t){return null!=t.as}(t)?j(t.as):F(t)?j("a"):j()}));I.displayName="Button",I.propTypes={variant:a.default.oneOf(Object.values(A)),size:a.default.oneOf(Object.values(S)),className:a.default.string,children:a.default.node,disabled:a.default.bool,as:a.default.oneOfType([a.default.string,a.default.func]),href:a.default.string};var T=I;n.default=T},function(n,r){n.exports=t},function(t,r){t.exports=n},function(t,n){t.exports=r},function(t,n){t.exports=e},function(t,n){t.exports=o},function(t,n,r){var e=r(25),o=r(54),i=r(121),a=r(23),u=r(7),c=r(132),s=r(134),f=r(44),l=s((function(t,n){var r={};if(null==t)return r;var s=!1;n=e(n,(function(n){return n=a(n,t),s||(s=n.length>1),n})),u(t,f(t),r),s&&(r=o(r,7,c));for(var l=n.length;l--;)i(r,n[l]);return r}));t.exports=l},function(t,n,r){var e=r(55),o=r(85),i=r(31),a=r(86),u=r(95),c=r(98),s=r(99),f=r(100),l=r(102),p=r(103),b=r(44),d=r(21),v=r(108),y=r(109),g=r(115),x=r(3),h=r(36),j=r(117),_=r(6),w=r(119),O=r(13),m=1,k=2,C=4,P="[object Arguments]",A="[object Function]",S="[object GeneratorFunction]",z="[object Object]",D={};D[P]=D["[object Array]"]=D["[object ArrayBuffer]"]=D["[object DataView]"]=D["[object Boolean]"]=D["[object Date]"]=D["[object Float32Array]"]=D["[object Float64Array]"]=D["[object Int8Array]"]=D["[object Int16Array]"]=D["[object Int32Array]"]=D["[object Map]"]=D["[object Number]"]=D[z]=D["[object RegExp]"]=D["[object Set]"]=D["[object String]"]=D["[object Symbol]"]=D["[object Uint8Array]"]=D["[object Uint8ClampedArray]"]=D["[object Uint16Array]"]=D["[object Uint32Array]"]=!0,D["[object Error]"]=D[A]=D["[object WeakMap]"]=!1,t.exports=function t(n,r,M,E,F,I){var T,U=r&m,N=r&k,q=r&C;if(M&&(T=F?M(n,E,F,I):M(n)),void 0!==T)return T;if(!_(n))return n;var B=x(n);if(B){if(T=v(n),!U)return s(n,T)}else{var $=d(n),V=$==A||$==S;if(h(n))return c(n,U);if($==z||$==P||V&&!F){if(T=N||V?{}:g(n),!U)return N?l(n,u(T,n)):f(n,a(T,n))}else{if(!D[$])return F?n:{};T=y(n,$,U)}}I||(I=new e);var W=I.get(n);if(W)return W;I.set(n,T),w(n)?n.forEach((function(e){T.add(t(e,r,M,e,n,I))})):j(n)&&n.forEach((function(e,o){T.set(o,t(e,r,M,o,n,I))}));var R=q?N?b:p:N?keysIn:O,L=B?void 0:R(n);return o(L||n,(function(e,o){L&&(e=n[o=e]),i(T,o,t(e,r,M,o,n,I))})),T}},function(t,n,r){var e=r(8),o=r(61),i=r(62),a=r(63),u=r(64),c=r(65);function s(t){var n=this.__data__=new e(t);this.size=n.size}s.prototype.clear=o,s.prototype.delete=i,s.prototype.get=a,s.prototype.has=u,s.prototype.set=c,t.exports=s},function(t,n){t.exports=function(){this.__data__=[],this.size=0}},function(t,n,r){var e=r(9),o=Array.prototype.splice;t.exports=function(t){var n=this.__data__,r=e(n,t);return!(r<0)&&(r==n.length-1?n.pop():o.call(n,r,1),--this.size,!0)}},function(t,n,r){var e=r(9);t.exports=function(t){var n=this.__data__,r=e(n,t);return r<0?void 0:n[r][1]}},function(t,n,r){var e=r(9);t.exports=function(t){return e(this.__data__,t)>-1}},function(t,n,r){var e=r(9);t.exports=function(t,n){var r=this.__data__,o=e(r,t);return o<0?(++this.size,r.push([t,n])):r[o][1]=n,this}},function(t,n,r){var e=r(8);t.exports=function(){this.__data__=new e,this.size=0}},function(t,n){t.exports=function(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}},function(t,n){t.exports=function(t){return this.__data__.get(t)}},function(t,n){t.exports=function(t){return this.__data__.has(t)}},function(t,n,r){var e=r(8),o=r(12),i=r(30),a=200;t.exports=function(t,n){var r=this.__data__;if(r instanceof e){var u=r.__data__;if(!o||u.length<a-1)return u.push([t,n]),this.size=++r.size,this;r=this.__data__=new i(u)}return r.set(t,n),this.size=r.size,this}},function(t,n,r){var e=r(27),o=r(70),i=r(6),a=r(29),u=/^\[object .+?Constructor\]$/,c=Function.prototype,s=Object.prototype,f=c.toString,l=s.hasOwnProperty,p=RegExp("^"+f.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(e(t)?p:u).test(a(t))}},function(t,n){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,n,r){var e=r(5),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,u=e?e.toStringTag:void 0;t.exports=function(t){var n=i.call(t,u),r=t[u];try{t[u]=void 0;var e=!0}catch(t){}var o=a.call(t);return e&&(n?t[u]=r:delete t[u]),o}},function(t,n){var r=Object.prototype.toString;t.exports=function(t){return r.call(t)}},function(t,n,r){var e,o=r(71),i=(e=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+e:"";t.exports=function(t){return!!i&&i in t}},function(t,n,r){var e=r(0)["__core-js_shared__"];t.exports=e},function(t,n){t.exports=function(t,n){return null==t?void 0:t[n]}},function(t,n,r){var e=r(74),o=r(8),i=r(12);t.exports=function(){this.size=0,this.__data__={hash:new e,map:new(i||o),string:new e}}},function(t,n,r){var e=r(75),o=r(76),i=r(77),a=r(78),u=r(79);function c(t){var n=-1,r=null==t?0:t.length;for(this.clear();++n<r;){var e=t[n];this.set(e[0],e[1])}}c.prototype.clear=e,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=u,t.exports=c},function(t,n,r){var e=r(10);t.exports=function(){this.__data__=e?e(null):{},this.size=0}},function(t,n){t.exports=function(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}},function(t,n,r){var e=r(10),o="__lodash_hash_undefined__",i=Object.prototype.hasOwnProperty;t.exports=function(t){var n=this.__data__;if(e){var r=n[t];return r===o?void 0:r}return i.call(n,t)?n[t]:void 0}},function(t,n,r){var e=r(10),o=Object.prototype.hasOwnProperty;t.exports=function(t){var n=this.__data__;return e?void 0!==n[t]:o.call(n,t)}},function(t,n,r){var e=r(10),o="__lodash_hash_undefined__";t.exports=function(t,n){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=e&&void 0===n?o:n,this}},function(t,n,r){var e=r(11);t.exports=function(t){var n=e(this,t).delete(t);return this.size-=n?1:0,n}},function(t,n){t.exports=function(t){var n=typeof t;return"string"==n||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==t:null===t}},function(t,n,r){var e=r(11);t.exports=function(t){return e(this,t).get(t)}},function(t,n,r){var e=r(11);t.exports=function(t){return e(this,t).has(t)}},function(t,n,r){var e=r(11);t.exports=function(t,n){var r=e(this,t),o=r.size;return r.set(t,n),this.size+=r.size==o?0:1,this}},function(t,n){t.exports=function(t,n){for(var r=-1,e=null==t?0:t.length;++r<e&&!1!==n(t[r],r,t););return t}},function(t,n,r){var e=r(7),o=r(13);t.exports=function(t,n){return t&&e(n,o(n),t)}},function(t,n){t.exports=function(t,n){for(var r=-1,e=Array(t);++r<t;)e[r]=n(r);return e}},function(t,n,r){var e=r(4),o=r(2),i="[object Arguments]";t.exports=function(t){return o(t)&&e(t)==i}},function(t,n){t.exports=function(){return!1}},function(t,n){var r=9007199254740991,e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,n){var o=typeof t;return!!(n=null==n?r:n)&&("number"==o||"symbol"!=o&&e.test(t))&&t>-1&&t%1==0&&t<n}},function(t,n,r){var e=r(92),o=r(15),i=r(16),a=i&&i.isTypedArray,u=a?o(a):e;t.exports=u},function(t,n,r){var e=r(4),o=r(37),i=r(2),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&o(t.length)&&!!a[e(t)]}},function(t,n,r){var e=r(17),o=r(94),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!e(t))return o(t);var n=[];for(var r in Object(t))i.call(t,r)&&"constructor"!=r&&n.push(r);return n}},function(t,n,r){var e=r(38)(Object.keys,Object);t.exports=e},function(t,n,r){var e=r(7),o=r(40);t.exports=function(t,n){return t&&e(n,o(n),t)}},function(t,n,r){var e=r(6),o=r(17),i=r(97),a=Object.prototype.hasOwnProperty;t.exports=function(t){if(!e(t))return i(t);var n=o(t),r=[];for(var u in t)("constructor"!=u||!n&&a.call(t,u))&&r.push(u);return r}},function(t,n){t.exports=function(t){var n=[];if(null!=t)for(var r in Object(t))n.push(r);return n}},function(t,n,r){(function(t){var e=r(0),o=n&&!n.nodeType&&n,i=o&&"object"==typeof t&&t&&!t.nodeType&&t,a=i&&i.exports===o?e.Buffer:void 0,u=a?a.allocUnsafe:void 0;t.exports=function(t,n){if(n)return t.slice();var r=t.length,e=u?u(r):new t.constructor(r);return t.copy(e),e}}).call(this,r(14)(t))},function(t,n){t.exports=function(t,n){var r=-1,e=t.length;for(n||(n=Array(e));++r<e;)n[r]=t[r];return n}},function(t,n,r){var e=r(7),o=r(18);t.exports=function(t,n){return e(t,o(t),n)}},function(t,n){t.exports=function(t,n){for(var r=-1,e=null==t?0:t.length,o=0,i=[];++r<e;){var a=t[r];n(a,r,t)&&(i[o++]=a)}return i}},function(t,n,r){var e=r(7),o=r(42);t.exports=function(t,n){return e(t,o(t),n)}},function(t,n,r){var e=r(43),o=r(18),i=r(13);t.exports=function(t){return e(t,i,o)}},function(t,n,r){var e=r(1)(r(0),"DataView");t.exports=e},function(t,n,r){var e=r(1)(r(0),"Promise");t.exports=e},function(t,n,r){var e=r(1)(r(0),"Set");t.exports=e},function(t,n,r){var e=r(1)(r(0),"WeakMap");t.exports=e},function(t,n){var r=Object.prototype.hasOwnProperty;t.exports=function(t){var n=t.length,e=new t.constructor(n);return n&&"string"==typeof t[0]&&r.call(t,"index")&&(e.index=t.index,e.input=t.input),e}},function(t,n,r){var e=r(22),o=r(111),i=r(112),a=r(113),u=r(114),c="[object Boolean]",s="[object Date]",f="[object Map]",l="[object Number]",p="[object RegExp]",b="[object Set]",d="[object String]",v="[object Symbol]",y="[object ArrayBuffer]",g="[object DataView]",x="[object Float32Array]",h="[object Float64Array]",j="[object Int8Array]",_="[object Int16Array]",w="[object Int32Array]",O="[object Uint8Array]",m="[object Uint8ClampedArray]",k="[object Uint16Array]",C="[object Uint32Array]";t.exports=function(t,n,r){var P=t.constructor;switch(n){case y:return e(t);case c:case s:return new P(+t);case g:return o(t,r);case x:case h:case j:case _:case w:case O:case m:case k:case C:return u(t,r);case f:return new P;case l:case d:return new P(t);case p:return i(t);case b:return new P;case v:return a(t)}}},function(t,n,r){var e=r(0).Uint8Array;t.exports=e},function(t,n,r){var e=r(22);t.exports=function(t,n){var r=n?e(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}},function(t,n){var r=/\w*$/;t.exports=function(t){var n=new t.constructor(t.source,r.exec(t));return n.lastIndex=t.lastIndex,n}},function(t,n,r){var e=r(5),o=e?e.prototype:void 0,i=o?o.valueOf:void 0;t.exports=function(t){return i?Object(i.call(t)):{}}},function(t,n,r){var e=r(22);t.exports=function(t,n){var r=n?e(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}},function(t,n,r){var e=r(116),o=r(20),i=r(17);t.exports=function(t){return"function"!=typeof t.constructor||i(t)?{}:e(o(t))}},function(t,n,r){var e=r(6),o=Object.create,i=function(){function t(){}return function(n){if(!e(n))return{};if(o)return o(n);t.prototype=n;var r=new t;return t.prototype=void 0,r}}();t.exports=i},function(t,n,r){var e=r(118),o=r(15),i=r(16),a=i&&i.isMap,u=a?o(a):e;t.exports=u},function(t,n,r){var e=r(21),o=r(2),i="[object Map]";t.exports=function(t){return o(t)&&e(t)==i}},function(t,n,r){var e=r(120),o=r(15),i=r(16),a=i&&i.isSet,u=a?o(a):e;t.exports=u},function(t,n,r){var e=r(21),o=r(2),i="[object Set]";t.exports=function(t){return o(t)&&e(t)==i}},function(t,n,r){var e=r(23),o=r(128),i=r(129),a=r(45);t.exports=function(t,n){return n=e(n,t),null==(t=i(t,n))||delete t[a(o(n))]}},function(t,n,r){var e=r(3),o=r(24),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,n){if(e(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!o(t))||(a.test(t)||!i.test(t)||null!=n&&t in Object(n))}},function(t,n,r){var e=r(124),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=e((function(t){var n=[];return 46===t.charCodeAt(0)&&n.push(""),t.replace(o,(function(t,r,e,o){n.push(e?o.replace(i,"$1"):r||t)})),n}));t.exports=a},function(t,n,r){var e=r(125),o=500;t.exports=function(t){var n=e(t,(function(t){return r.size===o&&r.clear(),t})),r=n.cache;return n}},function(t,n,r){var e=r(30),o="Expected a function";function i(t,n){if("function"!=typeof t||null!=n&&"function"!=typeof n)throw new TypeError(o);var r=function(){var e=arguments,o=n?n.apply(this,e):e[0],i=r.cache;if(i.has(o))return i.get(o);var a=t.apply(this,e);return r.cache=i.set(o,a)||i,a};return r.cache=new(i.Cache||e),r}i.Cache=e,t.exports=i},function(t,n,r){var e=r(127);t.exports=function(t){return null==t?"":e(t)}},function(t,n,r){var e=r(5),o=r(25),i=r(3),a=r(24),u=1/0,c=e?e.prototype:void 0,s=c?c.toString:void 0;t.exports=function t(n){if("string"==typeof n)return n;if(i(n))return o(n,t)+"";if(a(n))return s?s.call(n):"";var r=n+"";return"0"==r&&1/n==-u?"-0":r}},function(t,n){t.exports=function(t){var n=null==t?0:t.length;return n?t[n-1]:void 0}},function(t,n,r){var e=r(130),o=r(131);t.exports=function(t,n){return n.length<2?t:e(t,o(n,0,-1))}},function(t,n,r){var e=r(23),o=r(45);t.exports=function(t,n){for(var r=0,i=(n=e(n,t)).length;null!=t&&r<i;)t=t[o(n[r++])];return r&&r==i?t:void 0}},function(t,n){t.exports=function(t,n,r){var e=-1,o=t.length;n<0&&(n=-n>o?0:o+n),(r=r>o?o:r)<0&&(r+=o),o=n>r?0:r-n>>>0,n>>>=0;for(var i=Array(o);++e<o;)i[e]=t[e+n];return i}},function(t,n,r){var e=r(133);t.exports=function(t){return e(t)?void 0:t}},function(t,n,r){var e=r(4),o=r(20),i=r(2),a="[object Object]",u=Function.prototype,c=Object.prototype,s=u.toString,f=c.hasOwnProperty,l=s.call(Object);t.exports=function(t){if(!i(t)||e(t)!=a)return!1;var n=o(t);if(null===n)return!0;var r=f.call(n,"constructor")&&n.constructor;return"function"==typeof r&&r instanceof r&&s.call(r)==l}},function(t,n,r){var e=r(135),o=r(138),i=r(140);t.exports=function(t){return i(o(t,void 0,e),t+"")}},function(t,n,r){var e=r(136);t.exports=function(t){return(null==t?0:t.length)?e(t,1):[]}},function(t,n,r){var e=r(19),o=r(137);t.exports=function t(n,r,i,a,u){var c=-1,s=n.length;for(i||(i=o),u||(u=[]);++c<s;){var f=n[c];r>0&&i(f)?r>1?t(f,r-1,i,a,u):e(u,f):a||(u[u.length]=f)}return u}},function(t,n,r){var e=r(5),o=r(35),i=r(3),a=e?e.isConcatSpreadable:void 0;t.exports=function(t){return i(t)||o(t)||!!(a&&t&&t[a])}},function(t,n,r){var e=r(139),o=Math.max;t.exports=function(t,n,r){return n=o(void 0===n?t.length-1:n,0),function(){for(var i=arguments,a=-1,u=o(i.length-n,0),c=Array(u);++a<u;)c[a]=i[n+a];a=-1;for(var s=Array(n+1);++a<n;)s[a]=i[a];return s[n]=r(c),e(t,this,s)}}},function(t,n){t.exports=function(t,n,r){switch(r.length){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2])}return t.apply(n,r)}},function(t,n,r){var e=r(141),o=r(144)(e);t.exports=o},function(t,n,r){var e=r(142),o=r(33),i=r(143),a=o?function(t,n){return o(t,"toString",{configurable:!0,enumerable:!1,value:e(n),writable:!0})}:i;t.exports=a},function(t,n){t.exports=function(t){return function(){return t}}},function(t,n){t.exports=function(t){return t}},function(t,n){var r=800,e=16,o=Date.now;t.exports=function(t){var n=0,i=0;return function(){var a=o(),u=e-(a-i);if(i=a,u>0){if(++n>=r)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}}])})); | ||
!function(t,n){if("object"==typeof exports&&"object"==typeof module)module.exports=n(require("react"),require("prop-types"),require("@leafygreen-ui/emotion"),require("@leafygreen-ui/palette"),require("polished"));else if("function"==typeof define&&define.amd)define(["react","prop-types","@leafygreen-ui/emotion","@leafygreen-ui/palette","polished"],n);else{var r="object"==typeof exports?n(require("react"),require("prop-types"),require("@leafygreen-ui/emotion"),require("@leafygreen-ui/palette"),require("polished")):n(t.react,t["prop-types"],t["@leafygreen-ui/emotion"],t["@leafygreen-ui/palette"],t.polished);for(var e in r)("object"==typeof exports?exports:t)[e]=r[e]}}(window,(function(t,n,r,e,o){return function(t){var n={};function r(e){if(n[e])return n[e].exports;var o=n[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=n,r.d=function(t,n,e){r.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:e})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,n){if(1&n&&(t=r(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(r.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)r.d(e,o,function(n){return t[n]}.bind(null,o));return e},r.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(n,"a",n),n},r.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},r.p="",r(r.s=46)}([function(t,n,r){var e=r(28),o="object"==typeof self&&self&&self.Object===Object&&self,i=e||o||Function("return this")();t.exports=i},function(t,n,r){var e=r(66),o=r(72);t.exports=function(t,n){var r=o(t,n);return e(r)?r:void 0}},function(t,n){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,n){var r=Array.isArray;t.exports=r},function(t,n,r){var e=r(5),o=r(68),i=r(69),a="[object Null]",u="[object Undefined]",c=e?e.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?u:a:c&&c in Object(t)?o(t):i(t)}},function(t,n,r){var e=r(0).Symbol;t.exports=e},function(t,n){t.exports=function(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}},function(t,n,r){var e=r(31),o=r(32);t.exports=function(t,n,r,i){var a=!r;r||(r={});for(var u=-1,c=n.length;++u<c;){var s=n[u],f=i?i(r[s],t[s],s,r,t):void 0;void 0===f&&(f=t[s]),a?o(r,s,f):e(r,s,f)}return r}},function(t,n,r){var e=r(56),o=r(57),i=r(58),a=r(59),u=r(60);function c(t){var n=-1,r=null==t?0:t.length;for(this.clear();++n<r;){var e=t[n];this.set(e[0],e[1])}}c.prototype.clear=e,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=u,t.exports=c},function(t,n,r){var e=r(26);t.exports=function(t,n){for(var r=t.length;r--;)if(e(t[r][0],n))return r;return-1}},function(t,n,r){var e=r(1)(Object,"create");t.exports=e},function(t,n,r){var e=r(81);t.exports=function(t,n){var r=t.__data__;return e(n)?r["string"==typeof n?"string":"hash"]:r.map}},function(t,n,r){var e=r(1)(r(0),"Map");t.exports=e},function(t,n,r){var e=r(34),o=r(93),i=r(39);t.exports=function(t){return i(t)?e(t):o(t)}},function(t,n){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,n){t.exports=function(t){return function(n){return t(n)}}},function(t,n,r){(function(t){var e=r(28),o=n&&!n.nodeType&&n,i=o&&"object"==typeof t&&t&&!t.nodeType&&t,a=i&&i.exports===o&&e.process,u=function(){try{var t=i&&i.require&&i.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=u}).call(this,r(14)(t))},function(t,n){var r=Object.prototype;t.exports=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||r)}},function(t,n,r){var e=r(101),o=r(41),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,u=a?function(t){return null==t?[]:(t=Object(t),e(a(t),(function(n){return i.call(t,n)})))}:o;t.exports=u},function(t,n){t.exports=function(t,n){for(var r=-1,e=n.length,o=t.length;++r<e;)t[o+r]=n[r];return t}},function(t,n,r){var e=r(38)(Object.getPrototypeOf,Object);t.exports=e},function(t,n,r){var e=r(104),o=r(12),i=r(105),a=r(106),u=r(107),c=r(4),s=r(29),f=s(e),l=s(o),p=s(i),b=s(a),d=s(u),v=c;(e&&"[object DataView]"!=v(new e(new ArrayBuffer(1)))||o&&"[object Map]"!=v(new o)||i&&"[object Promise]"!=v(i.resolve())||a&&"[object Set]"!=v(new a)||u&&"[object WeakMap]"!=v(new u))&&(v=function(t){var n=c(t),r="[object Object]"==n?t.constructor:void 0,e=r?s(r):"";if(e)switch(e){case f:return"[object DataView]";case l:return"[object Map]";case p:return"[object Promise]";case b:return"[object Set]";case d:return"[object WeakMap]"}return n}),t.exports=v},function(t,n,r){var e=r(110);t.exports=function(t){var n=new t.constructor(t.byteLength);return new e(n).set(new e(t)),n}},function(t,n,r){var e=r(3),o=r(122),i=r(123),a=r(126);t.exports=function(t,n){return e(t)?t:o(t,n)?[t]:i(a(t))}},function(t,n,r){var e=r(4),o=r(2),i="[object Symbol]";t.exports=function(t){return"symbol"==typeof t||o(t)&&e(t)==i}},function(t,n){t.exports=function(t,n){for(var r=-1,e=null==t?0:t.length,o=Array(e);++r<e;)o[r]=n(t[r],r,t);return o}},function(t,n){t.exports=function(t,n){return t===n||t!=t&&n!=n}},function(t,n,r){var e=r(4),o=r(6),i="[object AsyncFunction]",a="[object Function]",u="[object GeneratorFunction]",c="[object Proxy]";t.exports=function(t){if(!o(t))return!1;var n=e(t);return n==a||n==u||n==i||n==c}},function(t,n,r){(function(n){var r="object"==typeof n&&n&&n.Object===Object&&n;t.exports=r}).call(this,r(67))},function(t,n){var r=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return r.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,n,r){var e=r(73),o=r(80),i=r(82),a=r(83),u=r(84);function c(t){var n=-1,r=null==t?0:t.length;for(this.clear();++n<r;){var e=t[n];this.set(e[0],e[1])}}c.prototype.clear=e,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=u,t.exports=c},function(t,n,r){var e=r(32),o=r(26),i=Object.prototype.hasOwnProperty;t.exports=function(t,n,r){var a=t[n];i.call(t,n)&&o(a,r)&&(void 0!==r||n in t)||e(t,n,r)}},function(t,n,r){var e=r(33);t.exports=function(t,n,r){"__proto__"==n&&e?e(t,n,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[n]=r}},function(t,n,r){var e=r(1),o=function(){try{var t=e(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},function(t,n,r){var e=r(87),o=r(35),i=r(3),a=r(36),u=r(90),c=r(91),s=Object.prototype.hasOwnProperty;t.exports=function(t,n){var r=i(t),f=!r&&o(t),l=!r&&!f&&a(t),p=!r&&!f&&!l&&c(t),b=r||f||l||p,d=b?e(t.length,String):[],v=d.length;for(var y in t)!n&&!s.call(t,y)||b&&("length"==y||l&&("offset"==y||"parent"==y)||p&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||u(y,v))||d.push(y);return d}},function(t,n,r){var e=r(88),o=r(2),i=Object.prototype,a=i.hasOwnProperty,u=i.propertyIsEnumerable,c=e(function(){return arguments}())?e:function(t){return o(t)&&a.call(t,"callee")&&!u.call(t,"callee")};t.exports=c},function(t,n,r){(function(t){var e=r(0),o=r(89),i=n&&!n.nodeType&&n,a=i&&"object"==typeof t&&t&&!t.nodeType&&t,u=a&&a.exports===i?e.Buffer:void 0,c=(u?u.isBuffer:void 0)||o;t.exports=c}).call(this,r(14)(t))},function(t,n){var r=9007199254740991;t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=r}},function(t,n){t.exports=function(t,n){return function(r){return t(n(r))}}},function(t,n,r){var e=r(27),o=r(37);t.exports=function(t){return null!=t&&o(t.length)&&!e(t)}},function(t,n,r){var e=r(34),o=r(96),i=r(39);t.exports=function(t){return i(t)?e(t,!0):o(t)}},function(t,n){t.exports=function(){return[]}},function(t,n,r){var e=r(19),o=r(20),i=r(18),a=r(41),u=Object.getOwnPropertySymbols?function(t){for(var n=[];t;)e(n,i(t)),t=o(t);return n}:a;t.exports=u},function(t,n,r){var e=r(19),o=r(3);t.exports=function(t,n,r){var i=n(t);return o(t)?i:e(i,r(t))}},function(t,n,r){var e=r(43),o=r(42),i=r(40);t.exports=function(t){return e(t,i,o)}},function(t,n,r){var e=r(24),o=1/0;t.exports=function(t){if("string"==typeof t||e(t))return t;var n=t+"";return"0"==n&&1/t==-o?"-0":n}},function(t,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"Size",{enumerable:!0,get:function(){return e.Size}}),Object.defineProperty(n,"Variant",{enumerable:!0,get:function(){return e.Variant}}),n.default=void 0;var e=function(t){if(t&&t.__esModule)return t;var n=o();if(n&&n.has(t))return n.get(t);var r={};if(null!=t){var e=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var a=e?Object.getOwnPropertyDescriptor(t,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=t[i]}}r.default=t,n&&n.set(t,r);return r}(r(47));function o(){if("function"!=typeof WeakMap)return null;var t=new WeakMap;return o=function(){return t},t}var i=e.default;n.default=i},function(t,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.Size=n.Variant=void 0;var e,o,i=l(r(48)),a=l(r(49)),u=r(50),c=r(51),s=r(52),f=l(r(53));function l(t){return t&&t.__esModule?t:{default:t}}function p(){return(p=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])}return t}).apply(this,arguments)}function b(){var t=P(['\n // Usually for this to take effect, you would need the element to be\n // "positioned". Due to an obscure part of CSS spec, flex children\n // respect z-index without the position property being set.\n //\n // https://www.w3.org/TR/css-flexbox-1/#painting\n z-index: 1;\n ']);return b=function(){return t},t}function d(t,n){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);n&&(e=e.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),r.push.apply(r,e)}return r}function v(){var t=P(["\n color: ",";\n border-color: ",";\n background-color: ",";\n background-image: none;\n box-shadow: none;\n pointer-events: none;\n"]);return v=function(){return t},t}function y(){var t=P(["\n position: relative;\n // Establishes the root element as a new stacking context\n // so that the z-index of the span within the button doesn't\n // appear above other elements on the page that it shouldn't.\n z-index: 0;\n border-radius: 3px;\n box-sizing: border-box;\n cursor: pointer;\n display: inline-flex;\n align-items: center;\n font-family: Akzidenz, 'Helvetica Neue', Helvetica, Arial, sans-serif;\n font-weight: normal;\n text-decoration: none;\n text-transform: none;\n transition: all 120ms ease;\n user-select: none;\n overflow: hidden;\n\n &:focus,\n &:hover {\n text-decoration: none;\n color: inherit;\n }\n\n // We're using CSS pseudo elements here in order to\n // transition the gradients between button pseudo classes.\n &:before,\n &:after {\n content: '';\n transition: 0.15s opacity ease-in-out;\n opacity: 0;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n }\n\n &:not(:disabled) {\n &:focus,\n &:hover {\n &:before {\n opacity: 1;\n }\n }\n\n &:active:after {\n opacity: 1;\n }\n }\n"]);return y=function(){return t},t}function g(){var t=P(["\n height: 45px;\n font-size: 16px;\n padding: 0 20px;\n "]);return g=function(){return t},t}function x(){var t=P(["\n height: 32px;\n padding: 0 12px;\n font-size: 14px;\n "]);return x=function(){return t},t}function h(){var t=P(["\n height: 25px;\n padding: 0 10px;\n font-size: 14px;\n "]);return h=function(){return t},t}function j(){var t=P(["\n height: 22px;\n padding: 0 8px;\n font-size: 11px;\n text-transform: uppercase;\n font-weight: bold;\n "]);return j=function(){return t},t}function _(t,n,r){return n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}function w(){var t=P(["\n color: ",";\n border: 1px solid ",";\n background-color: ",";\n background-image: linear-gradient(\n ",",\n ","\n );\n box-shadow: inset 0 -1px 0 ",";\n\n &:before {\n background-image: linear-gradient(\n ",",\n ","\n );\n box-shadow: 0 1px 4px ",",\n inset 0 -1px 0 ",";\n }\n\n &:after {\n background-image: linear-gradient(\n ",",\n ","\n );\n box-shadow: inset 0 2px 2px ",";\n }\n "]);return w=function(){return t},t}function O(){var t=P(["\n color: ",";\n border: 1px solid ",";\n background-color: ",";\n background-image: linear-gradient(#e45b26, #b63016);\n box-shadow: inset 0 -1px 0 0 ",";\n\n &:before {\n background-color: ",";\n background-image: linear-gradient(#e45b26, ",");\n box-shadow: 0 1px 4px ",",\n inset 0 -1px 0 ",";\n }\n\n &:after {\n background-color: ",";\n background-image: linear-gradient(#ad231b, #e45b26);\n box-shadow: inset 0 2px 2px ",";\n }\n "]);return O=function(){return t},t}function m(){var t=P(["\n color: ",";\n background-color: transparent;\n background-image: none;\n border: 1px solid ",";\n box-shadow: none;\n\n &:before {\n background-color: #129f4c;\n background-image: linear-gradient(#129f4c, #148040);\n box-shadow: 0 1px 4px ",",\n inset 0 -1px 0 #158242;\n }\n\n &:after {\n background-color: ",";\n background-image: linear-gradient(#148040, #129f4c);\n box-shadow: inset 0 2px 2px ",";\n }\n\n &:not(:disabled) {\n &:focus,\n &:hover,\n &:active {\n border-color: #158242;\n color: ",";\n }\n }\n "]);return m=function(){return t},t}function k(){var t=P(["\n color: ",";\n border: 1px solid #158242;\n background-color: ",";\n background-image: linear-gradient(",", #18964c);\n box-shadow: inset 0 -1px 0 #158242;\n\n &:before {\n background-color: #129f4c;\n background-image: linear-gradient(#129f4c, #148040);\n box-shadow: 0 1px 4px ",",\n inset 0 -1px 0 #158242;\n }\n\n &:after {\n background-color: ",";\n background-image: linear-gradient(#148040, #129f4c);\n box-shadow: inset 0 2px 2px ",";\n }\n "]);return k=function(){return t},t}function C(){var t=P(["\n color: ",";\n border: 1px solid ",";\n background-color: ",";\n background-image: linear-gradient(\n ",",\n ","\n );\n box-shadow: inset 0 -1px 0 ",";\n\n &:before {\n border-color: ",";\n background-color: ",";\n background-image: linear-gradient(",", #dde4e2);\n box-shadow: inset 0 -1px 0 ",",\n 0 1px 4px ",";\n }\n\n &:after {\n border-color: ",";\n background-color: ",";\n background-image: linear-gradient(#dde4e2, ",");\n box-shadow: inset 0 2px 2px ",";\n }\n "]);return C=function(){return t},t}function P(t,n){return n||(n=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(n)}}))}var A={Default:"default",Primary:"primary",Info:"info",Danger:"danger",Dark:"dark"};n.Variant=A;var S={XSmall:"xsmall",Small:"small",Normal:"normal",Large:"large"};n.Size=S;var z=(_(e={},A.Default,(0,u.css)(C(),c.uiColors.gray.dark2,c.uiColors.gray.light1,c.uiColors.gray.light3,c.uiColors.white,c.uiColors.gray.light2,c.uiColors.gray.light1,c.uiColors.gray.light1,c.uiColors.gray.light2,c.uiColors.gray.light3,c.uiColors.gray.light1,(0,s.transparentize)(.9,c.uiColors.black),c.uiColors.gray.light1,c.uiColors.gray.light3,c.uiColors.gray.light3,(0,s.transparentize)(.9,c.uiColors.black))),_(e,A.Primary,(0,u.css)(k(),c.uiColors.white,c.uiColors.green.base,c.uiColors.green.base,(0,s.transparentize)(.9,c.uiColors.black),c.uiColors.green.base,c.uiColors.green.dark2)),_(e,A.Info,(0,u.css)(m(),c.uiColors.green.base,c.uiColors.green.base,(0,s.transparentize)(.9,c.uiColors.black),c.uiColors.green.base,c.uiColors.green.dark2,c.uiColors.white)),_(e,A.Danger,(0,u.css)(O(),c.uiColors.white,c.uiColors.red.dark2,c.uiColors.red.base,c.uiColors.red.dark2,c.uiColors.red.dark2,c.uiColors.red.dark2,(0,s.transparentize)(.9,c.uiColors.black),c.uiColors.red.dark2,c.uiColors.red.dark2,c.uiColors.red.dark2)),_(e,A.Dark,(0,u.css)(w(),c.uiColors.white,c.uiColors.gray.dark2,c.uiColors.gray.dark1,c.uiColors.gray.base,c.uiColors.gray.dark1,c.uiColors.gray.dark2,c.uiColors.gray.base,c.uiColors.gray.dark2,(0,s.transparentize)(.9,c.uiColors.black),c.uiColors.gray.dark2,c.uiColors.gray.dark1,c.uiColors.gray.base,c.uiColors.gray.dark2)),e),D=(_(o={},S.XSmall,(0,u.css)(j())),_(o,S.Small,(0,u.css)(h())),_(o,S.Normal,(0,u.css)(x())),_(o,S.Large,(0,u.css)(g())),o),M=(0,u.css)(y()),E=(0,u.css)(v(),c.uiColors.gray.base,c.uiColors.gray.light1,c.uiColors.gray.light2);function F(t){return null!=t.href}var I=i.default.forwardRef((function(t,n){var r=t.className,e=void 0===r?"":r,o=t.children,a=void 0===o?null:o,c=t.disabled,s=void 0!==c&&c,l=t.variant,v=void 0===l?A.Default:l,y=t.size,g=void 0===y?S.Normal:y,x=function(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?d(r,!0).forEach((function(n){_(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):d(r).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))}))}return t}({className:(0,u.cx)(M,D[g],z[v],_({},E,s),e)},!F(t)&&{disabled:s},{"aria-disabled":s}),h=(0,f.default)(t,["as","className","disabled","size","variant","children"]),j=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"button";return i.default.createElement(t,p({ref:n,type:"button"===t?"button":void 0},h,x),i.default.createElement("span",{className:(0,u.css)(b())},a))};return function(t){return null!=t.as}(t)?j(t.as):F(t)?j("a"):j()}));I.displayName="Button",I.propTypes={variant:a.default.oneOf(Object.values(A)),size:a.default.oneOf(Object.values(S)),className:a.default.string,children:a.default.node,disabled:a.default.bool,as:a.default.oneOfType([a.default.string,a.default.func]),href:a.default.string};var T=I;n.default=T},function(n,r){n.exports=t},function(t,r){t.exports=n},function(t,n){t.exports=r},function(t,n){t.exports=e},function(t,n){t.exports=o},function(t,n,r){var e=r(25),o=r(54),i=r(121),a=r(23),u=r(7),c=r(132),s=r(134),f=r(44),l=s((function(t,n){var r={};if(null==t)return r;var s=!1;n=e(n,(function(n){return n=a(n,t),s||(s=n.length>1),n})),u(t,f(t),r),s&&(r=o(r,7,c));for(var l=n.length;l--;)i(r,n[l]);return r}));t.exports=l},function(t,n,r){var e=r(55),o=r(85),i=r(31),a=r(86),u=r(95),c=r(98),s=r(99),f=r(100),l=r(102),p=r(103),b=r(44),d=r(21),v=r(108),y=r(109),g=r(115),x=r(3),h=r(36),j=r(117),_=r(6),w=r(119),O=r(13),m=1,k=2,C=4,P="[object Arguments]",A="[object Function]",S="[object GeneratorFunction]",z="[object Object]",D={};D[P]=D["[object Array]"]=D["[object ArrayBuffer]"]=D["[object DataView]"]=D["[object Boolean]"]=D["[object Date]"]=D["[object Float32Array]"]=D["[object Float64Array]"]=D["[object Int8Array]"]=D["[object Int16Array]"]=D["[object Int32Array]"]=D["[object Map]"]=D["[object Number]"]=D[z]=D["[object RegExp]"]=D["[object Set]"]=D["[object String]"]=D["[object Symbol]"]=D["[object Uint8Array]"]=D["[object Uint8ClampedArray]"]=D["[object Uint16Array]"]=D["[object Uint32Array]"]=!0,D["[object Error]"]=D[A]=D["[object WeakMap]"]=!1,t.exports=function t(n,r,M,E,F,I){var T,U=r&m,N=r&k,q=r&C;if(M&&(T=F?M(n,E,F,I):M(n)),void 0!==T)return T;if(!_(n))return n;var B=x(n);if(B){if(T=v(n),!U)return s(n,T)}else{var $=d(n),V=$==A||$==S;if(h(n))return c(n,U);if($==z||$==P||V&&!F){if(T=N||V?{}:g(n),!U)return N?l(n,u(T,n)):f(n,a(T,n))}else{if(!D[$])return F?n:{};T=y(n,$,U)}}I||(I=new e);var W=I.get(n);if(W)return W;I.set(n,T),w(n)?n.forEach((function(e){T.add(t(e,r,M,e,n,I))})):j(n)&&n.forEach((function(e,o){T.set(o,t(e,r,M,o,n,I))}));var R=q?N?b:p:N?keysIn:O,L=B?void 0:R(n);return o(L||n,(function(e,o){L&&(e=n[o=e]),i(T,o,t(e,r,M,o,n,I))})),T}},function(t,n,r){var e=r(8),o=r(61),i=r(62),a=r(63),u=r(64),c=r(65);function s(t){var n=this.__data__=new e(t);this.size=n.size}s.prototype.clear=o,s.prototype.delete=i,s.prototype.get=a,s.prototype.has=u,s.prototype.set=c,t.exports=s},function(t,n){t.exports=function(){this.__data__=[],this.size=0}},function(t,n,r){var e=r(9),o=Array.prototype.splice;t.exports=function(t){var n=this.__data__,r=e(n,t);return!(r<0)&&(r==n.length-1?n.pop():o.call(n,r,1),--this.size,!0)}},function(t,n,r){var e=r(9);t.exports=function(t){var n=this.__data__,r=e(n,t);return r<0?void 0:n[r][1]}},function(t,n,r){var e=r(9);t.exports=function(t){return e(this.__data__,t)>-1}},function(t,n,r){var e=r(9);t.exports=function(t,n){var r=this.__data__,o=e(r,t);return o<0?(++this.size,r.push([t,n])):r[o][1]=n,this}},function(t,n,r){var e=r(8);t.exports=function(){this.__data__=new e,this.size=0}},function(t,n){t.exports=function(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}},function(t,n){t.exports=function(t){return this.__data__.get(t)}},function(t,n){t.exports=function(t){return this.__data__.has(t)}},function(t,n,r){var e=r(8),o=r(12),i=r(30),a=200;t.exports=function(t,n){var r=this.__data__;if(r instanceof e){var u=r.__data__;if(!o||u.length<a-1)return u.push([t,n]),this.size=++r.size,this;r=this.__data__=new i(u)}return r.set(t,n),this.size=r.size,this}},function(t,n,r){var e=r(27),o=r(70),i=r(6),a=r(29),u=/^\[object .+?Constructor\]$/,c=Function.prototype,s=Object.prototype,f=c.toString,l=s.hasOwnProperty,p=RegExp("^"+f.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(e(t)?p:u).test(a(t))}},function(t,n){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,n,r){var e=r(5),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,u=e?e.toStringTag:void 0;t.exports=function(t){var n=i.call(t,u),r=t[u];try{t[u]=void 0;var e=!0}catch(t){}var o=a.call(t);return e&&(n?t[u]=r:delete t[u]),o}},function(t,n){var r=Object.prototype.toString;t.exports=function(t){return r.call(t)}},function(t,n,r){var e,o=r(71),i=(e=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+e:"";t.exports=function(t){return!!i&&i in t}},function(t,n,r){var e=r(0)["__core-js_shared__"];t.exports=e},function(t,n){t.exports=function(t,n){return null==t?void 0:t[n]}},function(t,n,r){var e=r(74),o=r(8),i=r(12);t.exports=function(){this.size=0,this.__data__={hash:new e,map:new(i||o),string:new e}}},function(t,n,r){var e=r(75),o=r(76),i=r(77),a=r(78),u=r(79);function c(t){var n=-1,r=null==t?0:t.length;for(this.clear();++n<r;){var e=t[n];this.set(e[0],e[1])}}c.prototype.clear=e,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=u,t.exports=c},function(t,n,r){var e=r(10);t.exports=function(){this.__data__=e?e(null):{},this.size=0}},function(t,n){t.exports=function(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}},function(t,n,r){var e=r(10),o="__lodash_hash_undefined__",i=Object.prototype.hasOwnProperty;t.exports=function(t){var n=this.__data__;if(e){var r=n[t];return r===o?void 0:r}return i.call(n,t)?n[t]:void 0}},function(t,n,r){var e=r(10),o=Object.prototype.hasOwnProperty;t.exports=function(t){var n=this.__data__;return e?void 0!==n[t]:o.call(n,t)}},function(t,n,r){var e=r(10),o="__lodash_hash_undefined__";t.exports=function(t,n){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=e&&void 0===n?o:n,this}},function(t,n,r){var e=r(11);t.exports=function(t){var n=e(this,t).delete(t);return this.size-=n?1:0,n}},function(t,n){t.exports=function(t){var n=typeof t;return"string"==n||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==t:null===t}},function(t,n,r){var e=r(11);t.exports=function(t){return e(this,t).get(t)}},function(t,n,r){var e=r(11);t.exports=function(t){return e(this,t).has(t)}},function(t,n,r){var e=r(11);t.exports=function(t,n){var r=e(this,t),o=r.size;return r.set(t,n),this.size+=r.size==o?0:1,this}},function(t,n){t.exports=function(t,n){for(var r=-1,e=null==t?0:t.length;++r<e&&!1!==n(t[r],r,t););return t}},function(t,n,r){var e=r(7),o=r(13);t.exports=function(t,n){return t&&e(n,o(n),t)}},function(t,n){t.exports=function(t,n){for(var r=-1,e=Array(t);++r<t;)e[r]=n(r);return e}},function(t,n,r){var e=r(4),o=r(2),i="[object Arguments]";t.exports=function(t){return o(t)&&e(t)==i}},function(t,n){t.exports=function(){return!1}},function(t,n){var r=9007199254740991,e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,n){var o=typeof t;return!!(n=null==n?r:n)&&("number"==o||"symbol"!=o&&e.test(t))&&t>-1&&t%1==0&&t<n}},function(t,n,r){var e=r(92),o=r(15),i=r(16),a=i&&i.isTypedArray,u=a?o(a):e;t.exports=u},function(t,n,r){var e=r(4),o=r(37),i=r(2),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&o(t.length)&&!!a[e(t)]}},function(t,n,r){var e=r(17),o=r(94),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!e(t))return o(t);var n=[];for(var r in Object(t))i.call(t,r)&&"constructor"!=r&&n.push(r);return n}},function(t,n,r){var e=r(38)(Object.keys,Object);t.exports=e},function(t,n,r){var e=r(7),o=r(40);t.exports=function(t,n){return t&&e(n,o(n),t)}},function(t,n,r){var e=r(6),o=r(17),i=r(97),a=Object.prototype.hasOwnProperty;t.exports=function(t){if(!e(t))return i(t);var n=o(t),r=[];for(var u in t)("constructor"!=u||!n&&a.call(t,u))&&r.push(u);return r}},function(t,n){t.exports=function(t){var n=[];if(null!=t)for(var r in Object(t))n.push(r);return n}},function(t,n,r){(function(t){var e=r(0),o=n&&!n.nodeType&&n,i=o&&"object"==typeof t&&t&&!t.nodeType&&t,a=i&&i.exports===o?e.Buffer:void 0,u=a?a.allocUnsafe:void 0;t.exports=function(t,n){if(n)return t.slice();var r=t.length,e=u?u(r):new t.constructor(r);return t.copy(e),e}}).call(this,r(14)(t))},function(t,n){t.exports=function(t,n){var r=-1,e=t.length;for(n||(n=Array(e));++r<e;)n[r]=t[r];return n}},function(t,n,r){var e=r(7),o=r(18);t.exports=function(t,n){return e(t,o(t),n)}},function(t,n){t.exports=function(t,n){for(var r=-1,e=null==t?0:t.length,o=0,i=[];++r<e;){var a=t[r];n(a,r,t)&&(i[o++]=a)}return i}},function(t,n,r){var e=r(7),o=r(42);t.exports=function(t,n){return e(t,o(t),n)}},function(t,n,r){var e=r(43),o=r(18),i=r(13);t.exports=function(t){return e(t,i,o)}},function(t,n,r){var e=r(1)(r(0),"DataView");t.exports=e},function(t,n,r){var e=r(1)(r(0),"Promise");t.exports=e},function(t,n,r){var e=r(1)(r(0),"Set");t.exports=e},function(t,n,r){var e=r(1)(r(0),"WeakMap");t.exports=e},function(t,n){var r=Object.prototype.hasOwnProperty;t.exports=function(t){var n=t.length,e=new t.constructor(n);return n&&"string"==typeof t[0]&&r.call(t,"index")&&(e.index=t.index,e.input=t.input),e}},function(t,n,r){var e=r(22),o=r(111),i=r(112),a=r(113),u=r(114),c="[object Boolean]",s="[object Date]",f="[object Map]",l="[object Number]",p="[object RegExp]",b="[object Set]",d="[object String]",v="[object Symbol]",y="[object ArrayBuffer]",g="[object DataView]",x="[object Float32Array]",h="[object Float64Array]",j="[object Int8Array]",_="[object Int16Array]",w="[object Int32Array]",O="[object Uint8Array]",m="[object Uint8ClampedArray]",k="[object Uint16Array]",C="[object Uint32Array]";t.exports=function(t,n,r){var P=t.constructor;switch(n){case y:return e(t);case c:case s:return new P(+t);case g:return o(t,r);case x:case h:case j:case _:case w:case O:case m:case k:case C:return u(t,r);case f:return new P;case l:case d:return new P(t);case p:return i(t);case b:return new P;case v:return a(t)}}},function(t,n,r){var e=r(0).Uint8Array;t.exports=e},function(t,n,r){var e=r(22);t.exports=function(t,n){var r=n?e(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}},function(t,n){var r=/\w*$/;t.exports=function(t){var n=new t.constructor(t.source,r.exec(t));return n.lastIndex=t.lastIndex,n}},function(t,n,r){var e=r(5),o=e?e.prototype:void 0,i=o?o.valueOf:void 0;t.exports=function(t){return i?Object(i.call(t)):{}}},function(t,n,r){var e=r(22);t.exports=function(t,n){var r=n?e(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}},function(t,n,r){var e=r(116),o=r(20),i=r(17);t.exports=function(t){return"function"!=typeof t.constructor||i(t)?{}:e(o(t))}},function(t,n,r){var e=r(6),o=Object.create,i=function(){function t(){}return function(n){if(!e(n))return{};if(o)return o(n);t.prototype=n;var r=new t;return t.prototype=void 0,r}}();t.exports=i},function(t,n,r){var e=r(118),o=r(15),i=r(16),a=i&&i.isMap,u=a?o(a):e;t.exports=u},function(t,n,r){var e=r(21),o=r(2),i="[object Map]";t.exports=function(t){return o(t)&&e(t)==i}},function(t,n,r){var e=r(120),o=r(15),i=r(16),a=i&&i.isSet,u=a?o(a):e;t.exports=u},function(t,n,r){var e=r(21),o=r(2),i="[object Set]";t.exports=function(t){return o(t)&&e(t)==i}},function(t,n,r){var e=r(23),o=r(128),i=r(129),a=r(45);t.exports=function(t,n){return n=e(n,t),null==(t=i(t,n))||delete t[a(o(n))]}},function(t,n,r){var e=r(3),o=r(24),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,n){if(e(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!o(t))||(a.test(t)||!i.test(t)||null!=n&&t in Object(n))}},function(t,n,r){var e=r(124),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=e((function(t){var n=[];return 46===t.charCodeAt(0)&&n.push(""),t.replace(o,(function(t,r,e,o){n.push(e?o.replace(i,"$1"):r||t)})),n}));t.exports=a},function(t,n,r){var e=r(125),o=500;t.exports=function(t){var n=e(t,(function(t){return r.size===o&&r.clear(),t})),r=n.cache;return n}},function(t,n,r){var e=r(30),o="Expected a function";function i(t,n){if("function"!=typeof t||null!=n&&"function"!=typeof n)throw new TypeError(o);var r=function(){var e=arguments,o=n?n.apply(this,e):e[0],i=r.cache;if(i.has(o))return i.get(o);var a=t.apply(this,e);return r.cache=i.set(o,a)||i,a};return r.cache=new(i.Cache||e),r}i.Cache=e,t.exports=i},function(t,n,r){var e=r(127);t.exports=function(t){return null==t?"":e(t)}},function(t,n,r){var e=r(5),o=r(25),i=r(3),a=r(24),u=1/0,c=e?e.prototype:void 0,s=c?c.toString:void 0;t.exports=function t(n){if("string"==typeof n)return n;if(i(n))return o(n,t)+"";if(a(n))return s?s.call(n):"";var r=n+"";return"0"==r&&1/n==-u?"-0":r}},function(t,n){t.exports=function(t){var n=null==t?0:t.length;return n?t[n-1]:void 0}},function(t,n,r){var e=r(130),o=r(131);t.exports=function(t,n){return n.length<2?t:e(t,o(n,0,-1))}},function(t,n,r){var e=r(23),o=r(45);t.exports=function(t,n){for(var r=0,i=(n=e(n,t)).length;null!=t&&r<i;)t=t[o(n[r++])];return r&&r==i?t:void 0}},function(t,n){t.exports=function(t,n,r){var e=-1,o=t.length;n<0&&(n=-n>o?0:o+n),(r=r>o?o:r)<0&&(r+=o),o=n>r?0:r-n>>>0,n>>>=0;for(var i=Array(o);++e<o;)i[e]=t[e+n];return i}},function(t,n,r){var e=r(133);t.exports=function(t){return e(t)?void 0:t}},function(t,n,r){var e=r(4),o=r(20),i=r(2),a="[object Object]",u=Function.prototype,c=Object.prototype,s=u.toString,f=c.hasOwnProperty,l=s.call(Object);t.exports=function(t){if(!i(t)||e(t)!=a)return!1;var n=o(t);if(null===n)return!0;var r=f.call(n,"constructor")&&n.constructor;return"function"==typeof r&&r instanceof r&&s.call(r)==l}},function(t,n,r){var e=r(135),o=r(138),i=r(140);t.exports=function(t){return i(o(t,void 0,e),t+"")}},function(t,n,r){var e=r(136);t.exports=function(t){return(null==t?0:t.length)?e(t,1):[]}},function(t,n,r){var e=r(19),o=r(137);t.exports=function t(n,r,i,a,u){var c=-1,s=n.length;for(i||(i=o),u||(u=[]);++c<s;){var f=n[c];r>0&&i(f)?r>1?t(f,r-1,i,a,u):e(u,f):a||(u[u.length]=f)}return u}},function(t,n,r){var e=r(5),o=r(35),i=r(3),a=e?e.isConcatSpreadable:void 0;t.exports=function(t){return i(t)||o(t)||!!(a&&t&&t[a])}},function(t,n,r){var e=r(139),o=Math.max;t.exports=function(t,n,r){return n=o(void 0===n?t.length-1:n,0),function(){for(var i=arguments,a=-1,u=o(i.length-n,0),c=Array(u);++a<u;)c[a]=i[n+a];a=-1;for(var s=Array(n+1);++a<n;)s[a]=i[a];return s[n]=r(c),e(t,this,s)}}},function(t,n){t.exports=function(t,n,r){switch(r.length){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2])}return t.apply(n,r)}},function(t,n,r){var e=r(141),o=r(144)(e);t.exports=o},function(t,n,r){var e=r(142),o=r(33),i=r(143),a=o?function(t,n){return o(t,"toString",{configurable:!0,enumerable:!1,value:e(n),writable:!0})}:i;t.exports=a},function(t,n){t.exports=function(t){return function(){return t}}},function(t,n){t.exports=function(t){return t}},function(t,n){var r=800,e=16,o=Date.now;t.exports=function(t){var n=0,i=0;return function(){var a=o(),u=e-(a-i);if(i=a,u>0){if(++n>=r)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}}])})); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@leafygreen-ui/button", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "leafyGreen UI Kit Button", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
@@ -30,76 +30,16 @@ # Button | ||
### variant | ||
| Prop | Type | Description | Default | | ||
| ----------- | -------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- | | ||
| `variant` | `'default'`, `'primary'`, `'info'`, `'danger'`, `'dark'` | Sets the style variant of the button. | `'default'` | | ||
| `size` | `'xsmall'`, `'small'`, `'normal'`, `'large'` | Sets the size variant of the button. | `'normal'` | | ||
| `children` | `node` | The content that will appear inside of the `<Button />` component. | `null` | | ||
| `onClick` | `function` | The event handler function for the 'onclick' event. Receives the associated `event` object as the first argument. | | | ||
| `className` | `string` | Adds a className to the class attribute. | `''` | | ||
| `value` | `string` | Sets the HTML `value` attribute. | | | ||
| `disabled` | `boolean` | Disabled the button | `false` | | ||
| `as` | `HTML Tag` or `React Element` | Determines the root element. For example, `Link` or `a` tags can be supplied to replace `button` from being the DOM element that wraps the component. | `button` | | ||
| `href` | `string` | If a href is supplied it willl change the `as` value, such that the component renders inside of an `a` tag instead of inside of a `button` tag. | | | ||
**Type:** `string` | ||
_Any other properties will be spread on the input element._ | ||
**Default:** `'default'` | ||
Sets the style variant of the button. Valid variants for buttons are `'default'`, `'primary'`, `'info'`, `'danger'`, and `'dark'`. | ||
### size | ||
**Type:** `string` | ||
**Default:** `'normal'` | ||
Sets the size variant of the button. Valid variants for buttons are `'xsmall'`, `'small'`, `'normal'`, and `'large'`. | ||
### onClick | ||
**Type:** `function` | ||
**Default:** `() => {}` | ||
The event handler function for the 'onclick' event. Receives the associated `event` object as the first argument. | ||
### className | ||
**Type:** `string` | ||
**Default:** `''` | ||
Adds a className to the class attribute. | ||
### children | ||
**Type:** `node` | ||
**Default:** `null` | ||
The children of the rendered `<button>` element. | ||
### value | ||
**Type:** `string` | ||
**Default:** `null` | ||
Sets the HTML `value` attribute. | ||
### disabled | ||
**Type:** `boolean` | ||
**Default:** `false` | ||
Disables the button. | ||
### as | ||
**Type:** `HTML Tag` or `React Element` | ||
**Default:** `button` | ||
Determines the root element. For example, `Link` or `a` tags can be supplied to replace `button` from being the DOM element that wraps the component. | ||
### href | ||
**Type:** `string` | ||
**Default:** `null` | ||
If a href is supplied it willl change the `as` value, such that the component renders inside of an `a` tag instead of inside of a `button` tag. | ||
#### Any other properties will be spread on the input element. | ||
Note: In order to make this Component act as a submit button, the recommended approach is to pass `submit` as the `type` prop. Note it is also valid to pass `input` to the `as` prop, and the button's content's to the `value` prop -- in this case, do not supply children to the component. |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
600676
745
45