Comparing version 3.4.1 to 3.4.2
@@ -1,1 +0,1 @@ | ||
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof define&&define.amd?define(["exports"],r):r((e=e||self).polished={})}(this,function(e){"use strict";function y(){return(y=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}function r(){var e;return(e=arguments.length-1)<0||arguments.length<=e?void 0:arguments[e]}var v={symbols:{"!":{postfix:{symbol:"!",f:function e(r){return r%1||!(0<=+r)?NaN:170<r?1/0:0===r?1:r*e(r-1)},notation:"postfix",precedence:6,rightToLeft:0,argCount:1},symbol:"!",regSymbol:"!"},"^":{infix:{symbol:"^",f:function(e,r){return Math.pow(e,r)},notation:"infix",precedence:5,rightToLeft:1,argCount:2},symbol:"^",regSymbol:"\\^"},"*":{infix:{symbol:"*",f:function(e,r){return e*r},notation:"infix",precedence:4,rightToLeft:0,argCount:2},symbol:"*",regSymbol:"\\*"},"/":{infix:{symbol:"/",f:function(e,r){return e/r},notation:"infix",precedence:4,rightToLeft:0,argCount:2},symbol:"/",regSymbol:"/"},"+":{infix:{symbol:"+",f:function(e,r){return e+r},notation:"infix",precedence:2,rightToLeft:0,argCount:2},prefix:{symbol:"+",f:r,notation:"prefix",precedence:3,rightToLeft:0,argCount:1},symbol:"+",regSymbol:"\\+"},"-":{infix:{symbol:"-",f:function(e,r){return e-r},notation:"infix",precedence:2,rightToLeft:0,argCount:2},prefix:{symbol:"-",f:function(e){return-e},notation:"prefix",precedence:3,rightToLeft:0,argCount:1},symbol:"-",regSymbol:"-"},",":{infix:{symbol:",",f:function(){return Array.of.apply(Array,arguments)},notation:"infix",precedence:1,rightToLeft:0,argCount:2},symbol:",",regSymbol:","},"(":{prefix:{symbol:"(",f:r,notation:"prefix",precedence:0,rightToLeft:0,argCount:1},symbol:"(",regSymbol:"\\("},")":{postfix:{symbol:")",f:void 0,notation:"postfix",precedence:0,rightToLeft:0,argCount:1},symbol:")",regSymbol:"\\)"},min:{func:{symbol:"min",f:function(){return Math.min.apply(Math,arguments)},notation:"func",precedence:0,rightToLeft:0,argCount:1},symbol:"min",regSymbol:"min\\b"},max:{func:{symbol:"max",f:function(){return Math.max.apply(Math,arguments)},notation:"func",precedence:0,rightToLeft:0,argCount:1},symbol:"max",regSymbol:"max\\b"},sqrt:{func:{symbol:"sqrt",f:function(e){return Math.sqrt(e)},notation:"func",precedence:0,rightToLeft:0,argCount:1},symbol:"sqrt",regSymbol:"sqrt\\b"}}};function o(e){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function a(e,r){return(a=Object.setPrototypeOf||function(e,r){return e.__proto__=r,e})(e,r)}function i(e,r,t){return(i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()?Reflect.construct:function(e,r,t){var n=[null];n.push.apply(n,r);var o=new(Function.bind.apply(e,n));return t&&a(o,t.prototype),o}).apply(null,arguments)}function t(e){var n="function"==typeof Map?new Map:void 0;return(t=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return i(e,arguments,o(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),a(t,e)})(e)}var S=function(r){var e,t;function n(e){return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/master/src/internalHelpers/errors.md#"+e+" for more information.")||this)}return t=r,(e=n).prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t,n}(t(Error)),u=/((?!\w)a|na|hc|mc|dg|me[r]?|xe|ni(?![a-zA-Z])|mm|cp|tp|xp|q(?!s)|hv|xamv|nimv|wv|sm|s(?!\D|$)|ged|darg?|nrut)/g;function w(e,r){var t,n=e.pop();return r.push(n.f.apply(n,(t=[]).concat.apply(t,r.splice(-n.argCount)))),n.precedence}function f(e,r){var t,n,o,a=((n={}).symbols=(t=r)?y({},v.symbols,t.symbols):y({},v.symbols),n),i=[a.symbols["("].prefix],u=[],f=new RegExp("\\d+(?:\\.\\d+)?|"+Object.keys(a.symbols).map(function(e){return a.symbols[e]}).sort(function(e,r){return r.symbol.length-e.symbol.length}).map(function(e){return e.regSymbol}).join("|")+"|(\\S)","g");f.lastIndex=0;var l=!1;do{var s=(o=f.exec(e))||[")",void 0],c=s[0],p=s[1],d=a.symbols[c],b=d&&!d.prefix&&!d.func,h=!d||!d.postfix&&!d.infix;if(p||(l?h:b))throw new S(37,o?o.index:e.length,e);if(l){var g=d.postfix||d.infix;do{var m=i[i.length-1];if(0<(g.precedence-m.precedence||m.rightToLeft))break}while(w(i,u));l="postfix"===g.notation,")"!==g.symbol&&(i.push(g),l&&w(i,u))}else if(d){if(i.push(d.prefix||d.func),d.func&&(!(o=f.exec(e))||"("!==o[0]))throw new S(38,o?o.index:e.length,e)}else u.push(+c),l=!0}while(o&&i.length);if(i.length)throw new S(39,o?o.index:e.length,e);if(o)throw new S(40,o?o.index:e.length,e);return u.pop()}function l(e){return e.split("").reverse().join("")}function s(e){return e.charAt(0).toUpperCase()+e.slice(1)}var c=["Top","Right","Bottom","Left"];function p(e,r){if(!e)return r.toLowerCase();var t=e.split("-");if(1<t.length)return t.splice(1,0,r),t.reduce(function(e,r){return""+e+s(r)});var n=e.replace(/([a-z])([A-Z])/g,"$1"+r+"$2");return e===n?""+e+r:n}function d(e){for(var r=arguments.length,t=new Array(1<r?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];var o=t[0],a=t[1],i=void 0===a?o:a,u=t[2],f=void 0===u?o:u,l=t[3];return function(e,r){for(var t={},n=0;n<r.length;n+=1)(r[n]||0===r[n])&&(t[p(e,c[n])]=r[n]);return t}(e,[o,i,f,void 0===l?i:l])}function b(e,r){return e.substr(-r.length)===r}var n=/^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/;function m(e,r){if("string"!=typeof e)return r?[e,void 0]:e;var t=e.match(n);return r?t?[parseFloat(e),t[2]]:[e,void 0]:t?parseFloat(e):e}var h=function(o){return function(e,r){void 0===r&&(r="16px");var t=e,n=r;if("string"==typeof e){if(!b(e,"px"))throw new S(69,o,e);t=m(e)}if("string"==typeof r){if(!b(r,"px"))throw new S(70,o,r);n=m(r)}if("string"==typeof t)throw new S(71,e,o);if("string"==typeof n)throw new S(72,r,o);return""+t/n+o}},g=h("em"),x=/^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/;var k={minorSecond:1.067,majorSecond:1.125,minorThird:1.2,majorThird:1.25,perfectFourth:1.333,augFourth:1.414,perfectFifth:1.5,minorSixth:1.6,goldenSection:1.618,majorSixth:1.667,minorSeventh:1.778,majorSeventh:1.875,octave:2,majorTenth:2.5,majorEleventh:2.667,majorTwelfth:3,doubleOctave:4};var z=h("rem");function A(e,r,t,n){void 0===t&&(t="320px"),void 0===n&&(n="1200px");var o=m(e,!0),a=o[0],i=o[1],u=m(r,!0),f=u[0],l=u[1],s=m(t,!0),c=s[0],p=s[1],d=m(n,!0),b=d[0],h=d[1];if("number"!=typeof c||"number"!=typeof b||!p||!h||p!==h)throw new S(47);if("number"!=typeof a||"number"!=typeof f||i!==l)throw new S(48);var g=(a-f)/(c-b);return"calc("+(f-g*b).toFixed(2)+(i||"")+" + "+(100*g).toFixed(2)+"vw)"}var I=/^\s*data:([a-z]+\/[a-z-]+(;[a-z-]+=[a-z-]+)?)?(;charset=[a-z0-9-]+)?(;base64)?,[a-z0-9!$&',()*+,;=\-._~:@/?%\s]*\s*$/i,F={woff:"woff",woff2:"woff2",ttf:"truetype",otf:"opentype",eot:"embedded-opentype",svg:"svg",svgz:"svg"};function j(e,r){return r?' format("'+F[e]+'")':""}function O(r,e,t){return r.match(I)?'url("'+r+'")'+j(e[0],t):e.map(function(e){return'url("'+r+"."+e+'")'+j(e,t)}).join(", ")}function C(e){return void 0===e&&(e=1.3),"\n @media only screen and (-webkit-min-device-pixel-ratio: "+e+"),\n only screen and (min--moz-device-pixel-ratio: "+e+"),\n only screen and (-o-min-device-pixel-ratio: "+e+"/1),\n only screen and (min-resolution: "+Math.round(96*e)+"dpi),\n only screen and (min-resolution: "+e+"dppx)\n "}function T(e,r){return r||(r=e.slice(0)),e.raw=r,e}function L(e){for(var r="",t=arguments.length,n=new Array(1<t?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];for(var a=0;a<e.length;a+=1)if(r+=e[a],a===n.length-1&&n[a]){var i=n.filter(function(e){return!!e});1<i.length?(r=r.slice(0,-1),r+=", "+n[a]):1===i.length&&(r+=""+n[a])}else n[a]&&(r+=n[a]+" ");return r.trim()}function M(){var e=T(["linear-gradient(","",")"]);return M=function(){return e},e}function R(){var e=T(["radial-gradient(","","","",")"]);return R=function(){return e},e}var W={easeInBack:"cubic-bezier(0.600, -0.280, 0.735, 0.045)",easeInCirc:"cubic-bezier(0.600, 0.040, 0.980, 0.335)",easeInCubic:"cubic-bezier(0.550, 0.055, 0.675, 0.190)",easeInExpo:"cubic-bezier(0.950, 0.050, 0.795, 0.035)",easeInQuad:"cubic-bezier(0.550, 0.085, 0.680, 0.530)",easeInQuart:"cubic-bezier(0.895, 0.030, 0.685, 0.220)",easeInQuint:"cubic-bezier(0.755, 0.050, 0.855, 0.060)",easeInSine:"cubic-bezier(0.470, 0.000, 0.745, 0.715)",easeOutBack:"cubic-bezier(0.175, 0.885, 0.320, 1.275)",easeOutCubic:"cubic-bezier(0.215, 0.610, 0.355, 1.000)",easeOutCirc:"cubic-bezier(0.075, 0.820, 0.165, 1.000)",easeOutExpo:"cubic-bezier(0.190, 1.000, 0.220, 1.000)",easeOutQuad:"cubic-bezier(0.250, 0.460, 0.450, 0.940)",easeOutQuart:"cubic-bezier(0.165, 0.840, 0.440, 1.000)",easeOutQuint:"cubic-bezier(0.230, 1.000, 0.320, 1.000)",easeOutSine:"cubic-bezier(0.390, 0.575, 0.565, 1.000)",easeInOutBack:"cubic-bezier(0.680, -0.550, 0.265, 1.550)",easeInOutCirc:"cubic-bezier(0.785, 0.135, 0.150, 0.860)",easeInOutCubic:"cubic-bezier(0.645, 0.045, 0.355, 1.000)",easeInOutExpo:"cubic-bezier(1.000, 0.000, 0.000, 1.000)",easeInOutQuad:"cubic-bezier(0.455, 0.030, 0.515, 0.955)",easeInOutQuart:"cubic-bezier(0.770, 0.000, 0.175, 1.000)",easeInOutQuint:"cubic-bezier(0.860, 0.000, 0.070, 1.000)",easeInOutSine:"cubic-bezier(0.445, 0.050, 0.550, 0.950)"};function _(e){return Math.round(255*e)}function q(e,r,t){return _(e)+","+_(r)+","+_(t)}function $(e,r,t,n){if(void 0===n&&(n=q),0===r)return n(t,t,t);var o=(e%360+360)%360/60,a=(1-Math.abs(2*t-1))*r,i=a*(1-Math.abs(o%2-1)),u=0,f=0,l=0;0<=o&&o<1?(u=a,f=i):1<=o&&o<2?(u=i,f=a):2<=o&&o<3?(f=a,l=i):3<=o&&o<4?(f=i,l=a):4<=o&&o<5?(u=i,l=a):5<=o&&o<6&&(u=a,l=i);var s=t-a/2;return n(u+s,f+s,l+s)}var P={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};var D=/^#[a-fA-F0-9]{6}$/,B=/^#[a-fA-F0-9]{8}$/,Q=/^#[a-fA-F0-9]{3}$/,E=/^#[a-fA-F0-9]{4}$/,H=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,N=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i,V=/^hsl\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*\)$/i,U=/^hsla\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i;function G(e){if("string"!=typeof e)throw new S(3);var r=function(e){if("string"!=typeof e)return e;var r=e.toLowerCase();return P[r]?"#"+P[r]:e}(e);if(r.match(D))return{red:parseInt(""+r[1]+r[2],16),green:parseInt(""+r[3]+r[4],16),blue:parseInt(""+r[5]+r[6],16)};if(r.match(B)){var t=parseFloat((parseInt(""+r[7]+r[8],16)/255).toFixed(2));return{red:parseInt(""+r[1]+r[2],16),green:parseInt(""+r[3]+r[4],16),blue:parseInt(""+r[5]+r[6],16),alpha:t}}if(r.match(Q))return{red:parseInt(""+r[1]+r[1],16),green:parseInt(""+r[2]+r[2],16),blue:parseInt(""+r[3]+r[3],16)};if(r.match(E)){var n=parseFloat((parseInt(""+r[4]+r[4],16)/255).toFixed(2));return{red:parseInt(""+r[1]+r[1],16),green:parseInt(""+r[2]+r[2],16),blue:parseInt(""+r[3]+r[3],16),alpha:n}}var o=H.exec(r);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var a=N.exec(r);if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10),alpha:parseFloat(""+a[4])};var i=V.exec(r);if(i){var u="rgb("+$(parseInt(""+i[1],10),parseInt(""+i[2],10)/100,parseInt(""+i[3],10)/100)+")",f=H.exec(u);if(!f)throw new S(4,r,u);return{red:parseInt(""+f[1],10),green:parseInt(""+f[2],10),blue:parseInt(""+f[3],10)}}var l=U.exec(r);if(l){var s="rgb("+$(parseInt(""+l[1],10),parseInt(""+l[2],10)/100,parseInt(""+l[3],10)/100)+")",c=H.exec(s);if(!c)throw new S(4,r,s);return{red:parseInt(""+c[1],10),green:parseInt(""+c[2],10),blue:parseInt(""+c[3],10),alpha:parseFloat(""+l[4])}}throw new S(5)}function J(e){return function(e){var r,t=e.red/255,n=e.green/255,o=e.blue/255,a=Math.max(t,n,o),i=Math.min(t,n,o),u=(a+i)/2;if(a===i)return void 0!==e.alpha?{hue:0,saturation:0,lightness:u,alpha:e.alpha}:{hue:0,saturation:0,lightness:u};var f=a-i,l=.5<u?f/(2-a-i):f/(a+i);switch(a){case t:r=(n-o)/f+(n<o?6:0);break;case n:r=(o-t)/f+2;break;default:r=(t-n)/f+4}return r*=60,void 0!==e.alpha?{hue:r,saturation:l,lightness:u,alpha:e.alpha}:{hue:r,saturation:l,lightness:u}}(G(e))}var Z=function(e){return 7===e.length&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e};function K(e){var r=e.toString(16);return 1===r.length?"0"+r:r}function X(e){return K(Math.round(255*e))}function Y(e,r,t){return Z("#"+X(e)+X(r)+X(t))}function ee(e,r,t){return $(e,r,t,Y)}function re(e,r,t){if("number"==typeof e&&"number"==typeof r&&"number"==typeof t)return ee(e,r,t);if("object"==typeof e&&void 0===r&&void 0===t)return ee(e.hue,e.saturation,e.lightness);throw new S(1)}function te(e,r,t,n){if("number"==typeof e&&"number"==typeof r&&"number"==typeof t&&"number"==typeof n)return 1<=n?ee(e,r,t):"rgba("+$(e,r,t)+","+n+")";if("object"==typeof e&&void 0===r&&void 0===t&&void 0===n)return 1<=e.alpha?ee(e.hue,e.saturation,e.lightness):"rgba("+$(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new S(2)}function ne(e,r,t){if("number"==typeof e&&"number"==typeof r&&"number"==typeof t)return Z("#"+K(e)+K(r)+K(t));if("object"==typeof e&&void 0===r&&void 0===t)return Z("#"+K(e.red)+K(e.green)+K(e.blue));throw new S(6)}function oe(e,r,t,n){if("string"==typeof e&&"number"==typeof r){var o=G(e);return"rgba("+o.red+","+o.green+","+o.blue+","+r+")"}if("number"==typeof e&&"number"==typeof r&&"number"==typeof t&&"number"==typeof n)return 1<=n?ne(e,r,t):"rgba("+e+","+r+","+t+","+n+")";if("object"==typeof e&&void 0===r&&void 0===t&&void 0===n)return 1<=e.alpha?ne(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new S(7)}var ae=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||void 0===e.alpha)},ie=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha},ue=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||void 0===e.alpha)},fe=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha};function le(e){if("object"!=typeof e)throw new S(8);if(ie(e))return oe(e);if(ae(e))return ne(e);if(fe(e))return te(e);if(ue(e))return re(e);throw new S(8)}function se(e){return function r(t,n,o){return function(){var e=o.concat(Array.prototype.slice.call(arguments));return e.length>=n?t.apply(this,e):r(t,n,e)}}(e,e.length,[])}function ce(e,r){if("transparent"===r)return r;var t=J(r);return le(y({},t,{hue:t.hue+parseFloat(e)}))}var pe=se(ce);function de(e,r,t){return Math.max(e,Math.min(r,t))}function be(e,r){if("transparent"===r)return r;var t=J(r);return le(y({},t,{lightness:de(0,1,t.lightness-parseFloat(e))}))}var he=se(be);function ge(e,r){if("transparent"===r)return r;var t=J(r);return le(y({},t,{saturation:de(0,1,t.saturation-parseFloat(e))}))}var me=se(ge);function ye(e){if("transparent"===e)return 0;var t=G(e),r=Object.keys(t).map(function(e){var r=t[e]/255;return r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4)}),n=r[0],o=r[1],a=r[2];return parseFloat((.2126*n+.7152*o+.0722*a).toFixed(3))}function ve(e,r){var t=ye(e),n=ye(r);return parseFloat((n<t?(t+.05)/(n+.05):(n+.05)/(t+.05)).toFixed(2))}function we(e,r){if("transparent"===r)return r;var t=J(r);return le(y({},t,{lightness:de(0,1,t.lightness+parseFloat(e))}))}var xe=se(we);function Se(e,r,t){if("transparent"===r)return t;if("transparent"===t)return r;var n=G(r),o=y({},n,{alpha:"number"==typeof n.alpha?n.alpha:1}),a=G(t),i=y({},a,{alpha:"number"==typeof a.alpha?a.alpha:1}),u=o.alpha-i.alpha,f=2*parseFloat(e)-1,l=((f*u==-1?f:f+u)/(1+f*u)+1)/2,s=1-l;return oe({red:Math.floor(o.red*l+i.red*s),green:Math.floor(o.green*l+i.green*s),blue:Math.floor(o.blue*l+i.blue*s),alpha:o.alpha+(i.alpha-o.alpha)*(parseFloat(e)/1)})}var ke=se(Se);function ze(e,r){if("transparent"===r)return r;var t=G(r);return oe(y({},t,{alpha:de(0,1,(100*("number"==typeof t.alpha?t.alpha:1)+100*parseFloat(e))/100)}))}var Ae=se(ze);function Ie(e,r){if("transparent"===r)return r;var t=J(r);return le(y({},t,{saturation:de(0,1,t.saturation+parseFloat(e))}))}var Fe=se(Ie);function je(e,r){return"transparent"===r?r:le(y({},J(r),{hue:parseFloat(e)}))}var Oe=se(je);function Ce(e,r){return"transparent"===r?r:le(y({},J(r),{lightness:parseFloat(e)}))}var Te=se(Ce);function Le(e,r){return"transparent"===r?r:le(y({},J(r),{saturation:parseFloat(e)}))}var Me=se(Le);function Re(e,r){return"transparent"===r?r:ke(parseFloat(e),"rgb(0, 0, 0)",r)}var We=se(Re);function _e(e,r){return"transparent"===r?r:ke(parseFloat(e),"rgb(255, 255, 255)",r)}var qe=se(_e);function $e(e,r){if("transparent"===r)return r;var t=G(r);return oe(y({},t,{alpha:de(0,1,(100*("number"==typeof t.alpha?t.alpha:1)-100*parseFloat(e))/100)}))}var Pe=se($e);var De=["top","right","bottom","left"];function Be(e,r){return e(r?":"+r:"")}function Qe(e,r,t){if(!r)throw new S(67);if(0===e.length)return Be(r,null);for(var n=[],o=0;o<e.length;o+=1){if(t&&t.indexOf(e[o])<0)throw new S(68);n.push(Be(r,e[o]))}return n=n.join(",")}var Ee=[void 0,null,"active","focus","hover"];function He(e){return"button"+e+',\n input[type="button"]'+e+',\n input[type="reset"]'+e+',\n input[type="submit"]'+e}var Ne=["absolute","fixed","relative","static","sticky"];var Ve=[void 0,null,"active","focus","hover"];function Ue(e){return'input[type="color"]'+e+',\n input[type="date"]'+e+',\n input[type="datetime"]'+e+',\n input[type="datetime-local"]'+e+',\n input[type="email"]'+e+',\n input[type="month"]'+e+',\n input[type="number"]'+e+',\n input[type="password"]'+e+',\n input[type="search"]'+e+',\n input[type="tel"]'+e+',\n input[type="text"]'+e+',\n input[type="time"]'+e+',\n input[type="url"]'+e+',\n input[type="week"]'+e+",\n input:not([type])"+e+",\n textarea"+e}e.adjustHue=pe,e.animation=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];var n=Array.isArray(r[0]);if(!n&&8<r.length)throw new S(64);return{animation:r.map(function(e){if(n&&!Array.isArray(e)||!n&&Array.isArray(e))throw new S(65);if(Array.isArray(e)&&8<e.length)throw new S(66);return Array.isArray(e)?e.join(" "):e}).join(", ")}},e.backgroundImages=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return{backgroundImage:r.join(", ")}},e.backgrounds=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return{background:r.join(", ")}},e.between=A,e.border=function(e){for(var r=arguments.length,t=new Array(1<r?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];var o;return"string"==typeof e&&0<=De.indexOf(e)?((o={})["border"+s(e)+"Width"]=t[0],o["border"+s(e)+"Style"]=t[1],o["border"+s(e)+"Color"]=t[2],o):(t.unshift(e),{borderWidth:t[0],borderStyle:t[1],borderColor:t[2]})},e.borderColor=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return d.apply(void 0,["borderColor"].concat(r))},e.borderRadius=function(e,r){var t,n,o=s(e);if(!r&&0!==r)throw new S(62);if("Top"===o||"Bottom"===o)return(t={})["border"+o+"RightRadius"]=r,t["border"+o+"LeftRadius"]=r,t;if("Left"!==o&&"Right"!==o)throw new S(63);return(n={})["borderTop"+o+"Radius"]=r,n["borderBottom"+o+"Radius"]=r,n},e.borderStyle=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return d.apply(void 0,["borderStyle"].concat(r))},e.borderWidth=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return d.apply(void 0,["borderWidth"].concat(r))},e.buttons=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return Qe(r,He,Ee)},e.clearFix=function(e){var r;return void 0===e&&(e="&"),(r={})[e+"::after"]={clear:"both",content:'""',display:"table"},r},e.complement=function(e){if("transparent"===e)return e;var r=J(e);return le(y({},r,{hue:(r.hue+180)%360}))},e.cover=function(e){return void 0===e&&(e=0),{position:"absolute",top:e,right:e,bottom:e,left:e}},e.darken=he,e.desaturate=me,e.directionalProperty=d,e.ellipsis=function(e){return void 0===e&&(e="100%"),{display:"inline-block",maxWidth:e,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",wordWrap:"normal"}},e.em=g,e.fluidRange=function(e,r,t){if(void 0===r&&(r="320px"),void 0===t&&(t="1200px"),!Array.isArray(e)&&"object"!=typeof e||null===e)throw new S(49);if(Array.isArray(e)){var n={},o={},a=e,i=Array.isArray(a),u=0;for(a=i?a:a[Symbol.iterator]();;){var f,l,s;if(i){if(u>=a.length)break;s=a[u++]}else{if((u=a.next()).done)break;s=u.value}var c=s;if(!c.prop||!c.fromSize||!c.toSize)throw new S(50);o[c.prop]=c.fromSize,n["@media (min-width: "+r+")"]=y({},n["@media (min-width: "+r+")"],((f={})[c.prop]=A(c.fromSize,c.toSize,r,t),f)),n["@media (min-width: "+t+")"]=y({},n["@media (min-width: "+t+")"],((l={})[c.prop]=c.toSize,l))}return y({},o,n)}var p,d,b;if(!e.prop||!e.fromSize||!e.toSize)throw new S(51);return(b={})[e.prop]=e.fromSize,b["@media (min-width: "+r+")"]=((p={})[e.prop]=A(e.fromSize,e.toSize,r,t),p),b["@media (min-width: "+t+")"]=((d={})[e.prop]=e.toSize,d),b},e.fontFace=function(e){var r=e.fontFamily,t=e.fontFilePath,n=e.fontStretch,o=e.fontStyle,a=e.fontVariant,i=e.fontWeight,u=e.fileFormats,f=void 0===u?["eot","woff2","woff","ttf","svg"]:u,l=e.formatHint,s=void 0!==l&&l,c=e.localFonts,p=e.unicodeRange,d=e.fontDisplay,b=e.fontVariationSettings,h=e.fontFeatureSettings;if(!r)throw new S(55);if(!t&&!c)throw new S(52);if(c&&!Array.isArray(c))throw new S(53);if(!Array.isArray(f))throw new S(54);var g,m,y,v,w,x={"@font-face":{fontFamily:r,src:(g=t,m=c,y=f,v=s,w=[],m&&w.push(m.map(function(e){return'local("'+e+'")'}).join(", ")),g&&w.push(O(g,y,v)),w.join(", ")),unicodeRange:p,fontStretch:n,fontStyle:o,fontVariant:a,fontWeight:i,fontDisplay:d,fontVariationSettings:b,fontFeatureSettings:h}};return JSON.parse(JSON.stringify(x))},e.getContrast=ve,e.getLuminance=ye,e.getValueAndUnit=function(e){if(console.warn("getValueAndUnit has been marked for deprecation in polished 3.0 and will be fully deprecated in 4.0. It's functionality has been been moved to stripUnit as an optional return."),"string"!=typeof e)return[e,""];var r=e.match(x);return r?[parseFloat(e),r[2]]:[e,void 0]},e.grayscale=function(e){return"transparent"===e?e:le(y({},J(e),{saturation:0}))},e.hiDPI=C,e.hideText=function(){return{textIndent:"101%",overflow:"hidden",whiteSpace:"nowrap"}},e.hideVisually=function(){return{border:"0",clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",whiteSpace:"nowrap",width:"1px"}},e.hsl=re,e.hslToColorString=function(e){if("object"==typeof e&&"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness)return e.alpha&&"number"==typeof e.alpha?te({hue:e.hue,saturation:e.saturation,lightness:e.lightness,alpha:e.alpha}):re({hue:e.hue,saturation:e.saturation,lightness:e.lightness});throw new S(45)},e.hsla=te,e.invert=function(e){if("transparent"===e)return e;var r=G(e);return le(y({},r,{red:255-r.red,green:255-r.green,blue:255-r.blue}))},e.lighten=xe,e.linearGradient=function(e){var r=e.colorStops,t=e.fallback,n=e.toDirection,o=void 0===n?"":n;if(!r||r.length<2)throw new S(56);return{backgroundColor:t||r[0].split(" ")[0],backgroundImage:L(M(),o,r.join(", "))}},e.margin=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return d.apply(void 0,["margin"].concat(r))},e.math=function(e,r){var t=l(e),n=t.match(u);if(n&&!n.every(function(e){return e===n[0]}))throw new S(41);return""+f(l(t.replace(u,"")),r)+(n?l(n[0]):"")},e.meetsContrastGuidelines=function(e,r){var t=ve(e,r);return{AA:4.5<=t,AALarge:3<=t,AAA:7<=t,AAALarge:4.5<=t}},e.mix=ke,e.modularScale=function(e,r,t){if(void 0===r&&(r="1em"),void 0===t&&(t=1.333),"number"!=typeof e)throw new S(42);if("string"==typeof t&&!k[t])throw new S(43);var n="string"==typeof r?m(r,!0):[r,""],o=n[0],a=n[1],i="string"==typeof t?k[t]:t;if("string"==typeof o)throw new S(44,r);return""+o*Math.pow(i,e)+a},e.normalize=function(){var e;return[(e={html:{lineHeight:"1.15",textSizeAdjust:"100%"},body:{margin:"0"},h1:{fontSize:"2em",margin:"0.67em 0"},hr:{boxSizing:"content-box",height:"0",overflow:"visible"},pre:{fontFamily:"monospace, monospace",fontSize:"1em"},a:{backgroundColor:"transparent"},"abbr[title]":{borderBottom:"none",textDecoration:"underline"}},e["b,\n strong"]={fontWeight:"bolder"},e["code,\n kbd,\n samp"]={fontFamily:"monospace, monospace",fontSize:"1em"},e.small={fontSize:"80%"},e["sub,\n sup"]={fontSize:"75%",lineHeight:"0",position:"relative",verticalAlign:"baseline"},e.sub={bottom:"-0.25em"},e.sup={top:"-0.5em"},e.img={borderStyle:"none"},e["button,\n input,\n optgroup,\n select,\n textarea"]={fontFamily:"inherit",fontSize:"100%",lineHeight:"1.15",margin:"0"},e["button,\n input"]={overflow:"visible"},e["button,\n select"]={textTransform:"none"},e['button,\n html [type="button"],\n [type="reset"],\n [type="submit"]']={WebkitAppearance:"button"},e['button::-moz-focus-inner,\n [type="button"]::-moz-focus-inner,\n [type="reset"]::-moz-focus-inner,\n [type="submit"]::-moz-focus-inner']={borderStyle:"none",padding:"0"},e['button:-moz-focusring,\n [type="button"]:-moz-focusring,\n [type="reset"]:-moz-focusring,\n [type="submit"]:-moz-focusring']={outline:"1px dotted ButtonText"},e.fieldset={padding:"0.35em 0.625em 0.75em"},e.legend={boxSizing:"border-box",color:"inherit",display:"table",maxWidth:"100%",padding:"0",whiteSpace:"normal"},e.progress={verticalAlign:"baseline"},e.textarea={overflow:"auto"},e['[type="checkbox"],\n [type="radio"]']={boxSizing:"border-box",padding:"0"},e['[type="number"]::-webkit-inner-spin-button,\n [type="number"]::-webkit-outer-spin-button']={height:"auto"},e['[type="search"]']={WebkitAppearance:"textfield",outlineOffset:"-2px"},e['[type="search"]::-webkit-search-decoration']={WebkitAppearance:"none"},e["::-webkit-file-upload-button"]={WebkitAppearance:"button",font:"inherit"},e.details={display:"block"},e.summary={display:"list-item"},e.template={display:"none"},e["[hidden]"]={display:"none"},e),{"abbr[title]":{textDecoration:"underline dotted"}}]},e.opacify=Ae,e.padding=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return d.apply(void 0,["padding"].concat(r))},e.parseToHsl=J,e.parseToRgb=G,e.position=function(e){for(var r=arguments.length,t=new Array(1<r?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];return 0<=Ne.indexOf(e)?y({position:e},d.apply(void 0,[""].concat(t))):d.apply(void 0,["",e].concat(t))},e.radialGradient=function(e){var r=e.colorStops,t=e.extent,n=void 0===t?"":t,o=e.fallback,a=e.position,i=void 0===a?"":a,u=e.shape,f=void 0===u?"":u;if(!r||r.length<2)throw new S(57);return{backgroundColor:o||r[0].split(" ")[0],backgroundImage:L(R(),i,f,n,r.join(", "))}},e.readableColor=function(e,r,t){return void 0===r&&(r="#000"),void 0===t&&(t="#fff"),.179<ye(e)?r:t},e.rem=z,e.retinaImage=function(e,r,t,n,o){var a;if(void 0===t&&(t="png"),void 0===o&&(o="_2x"),!e)throw new S(58);var i=t.replace(/^\./,""),u=n?n+"."+i:""+e+o+"."+i;return(a={backgroundImage:"url("+e+"."+i+")"})[C()]=y({backgroundImage:"url("+u+")"},r?{backgroundSize:r}:{}),a},e.rgb=ne,e.rgbToColorString=function(e){if("object"==typeof e&&"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue)return e.alpha&&"number"==typeof e.alpha?oe({red:e.red,green:e.green,blue:e.blue,alpha:e.alpha}):ne({red:e.red,green:e.green,blue:e.blue});throw new S(46)},e.rgba=oe,e.saturate=Fe,e.setHue=Oe,e.setLightness=Te,e.setSaturation=Me,e.shade=We,e.size=function(e,r){return void 0===r&&(r=e),{height:e,width:r}},e.stripUnit=m,e.textInputs=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return Qe(r,Ue,Ve)},e.timingFunctions=function(e){return W[e]},e.tint=qe,e.toColorString=le,e.transitions=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];if(Array.isArray(r[0])&&2===r.length){var n=r[1];if("string"!=typeof n)throw new S(61);return{transition:r[0].map(function(e){return e+" "+n}).join(", ")}}return{transition:r.join(", ")}},e.transparentize=Pe,e.triangle=function(e){var r=e.pointingDirection,t=e.height,n=e.width,o=e.foregroundColor,a=e.backgroundColor,i=void 0===a?"transparent":a,u=m(n,!0),f=m(t,!0);if(isNaN(f[0])||isNaN(u[0]))throw new S(60);return{width:"0",height:"0",borderColor:function(e,r,t){switch(e){case"top":case"bottomRight":return t+" "+t+" "+r+" "+t;case"right":case"bottomLeft":return t+" "+t+" "+t+" "+r;case"bottom":case"topLeft":return r+" "+t+" "+t+" "+t;case"left":case"topRight":return t+" "+r+" "+t+" "+t;default:throw new S(59)}}(r,o,i),borderStyle:"solid",borderWidth:function(e,r,t){var n=""+t[0]+(t[1]||""),o=""+t[0]/2+(t[1]||""),a=""+r[0]+(r[1]||""),i=""+r[0]/2+(r[1]||"");switch(e){case"top":return"0 "+o+" "+a+" "+o;case"topLeft":return n+" "+a+" 0 0";case"left":return i+" "+n+" "+i+" 0";case"bottomLeft":return n+" 0 0 "+a;case"bottom":return a+" "+o+" 0 "+o;case"bottomRight":return"0 0 "+n+" "+a;case"right":return i+" 0 "+i+" "+n;case"topRight":default:return"0 "+n+" "+a+" 0"}}(r,f,u)}},e.wordWrap=function(e){return void 0===e&&(e="break-word"),{overflowWrap:e,wordWrap:e,wordBreak:"break-word"===e?"break-all":e}},Object.defineProperty(e,"__esModule",{value:!0})}); | ||
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof define&&define.amd?define(["exports"],r):r((e=e||self).polished={})}(this,function(e){"use strict";function g(){return(g=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}function r(){var e;return(e=arguments.length-1)<0||arguments.length<=e?void 0:arguments[e]}var m={symbols:{"!":{postfix:{symbol:"!",f:function e(r){return r%1||!(0<=+r)?NaN:170<r?1/0:0===r?1:r*e(r-1)},notation:"postfix",precedence:6,rightToLeft:0,argCount:1},symbol:"!",regSymbol:"!"},"^":{infix:{symbol:"^",f:function(e,r){return Math.pow(e,r)},notation:"infix",precedence:5,rightToLeft:1,argCount:2},symbol:"^",regSymbol:"\\^"},"*":{infix:{symbol:"*",f:function(e,r){return e*r},notation:"infix",precedence:4,rightToLeft:0,argCount:2},symbol:"*",regSymbol:"\\*"},"/":{infix:{symbol:"/",f:function(e,r){return e/r},notation:"infix",precedence:4,rightToLeft:0,argCount:2},symbol:"/",regSymbol:"/"},"+":{infix:{symbol:"+",f:function(e,r){return e+r},notation:"infix",precedence:2,rightToLeft:0,argCount:2},prefix:{symbol:"+",f:r,notation:"prefix",precedence:3,rightToLeft:0,argCount:1},symbol:"+",regSymbol:"\\+"},"-":{infix:{symbol:"-",f:function(e,r){return e-r},notation:"infix",precedence:2,rightToLeft:0,argCount:2},prefix:{symbol:"-",f:function(e){return-e},notation:"prefix",precedence:3,rightToLeft:0,argCount:1},symbol:"-",regSymbol:"-"},",":{infix:{symbol:",",f:function(){return Array.of.apply(Array,arguments)},notation:"infix",precedence:1,rightToLeft:0,argCount:2},symbol:",",regSymbol:","},"(":{prefix:{symbol:"(",f:r,notation:"prefix",precedence:0,rightToLeft:0,argCount:1},symbol:"(",regSymbol:"\\("},")":{postfix:{symbol:")",f:void 0,notation:"postfix",precedence:0,rightToLeft:0,argCount:1},symbol:")",regSymbol:"\\)"},min:{func:{symbol:"min",f:function(){return Math.min.apply(Math,arguments)},notation:"func",precedence:0,rightToLeft:0,argCount:1},symbol:"min",regSymbol:"min\\b"},max:{func:{symbol:"max",f:function(){return Math.max.apply(Math,arguments)},notation:"func",precedence:0,rightToLeft:0,argCount:1},symbol:"max",regSymbol:"max\\b"},sqrt:{func:{symbol:"sqrt",f:function(e){return Math.sqrt(e)},notation:"func",precedence:0,rightToLeft:0,argCount:1},symbol:"sqrt",regSymbol:"sqrt\\b"}}};function n(e){return(n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function a(e,r){return(a=Object.setPrototypeOf||function(e,r){return e.__proto__=r,e})(e,r)}function o(e,r,t){return(o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()?Reflect.construct:function(e,r,t){var n=[null];n.push.apply(n,r);var o=new(Function.bind.apply(e,n));return t&&a(o,t.prototype),o}).apply(null,arguments)}function i(e){var t="function"==typeof Map?new Map:void 0;return(i=function(e){if(null===e||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return o(e,arguments,n(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),a(r,e)})(e)}var y=function(r){function e(e){return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/master/src/internalHelpers/errors.md#"+e+" for more information.")||this)}return function(e,r){e.prototype=Object.create(r.prototype),(e.prototype.constructor=e).__proto__=r}(e,r),e}(i(Error)),u=/((?!\w)a|na|hc|mc|dg|me[r]?|xe|ni(?![a-zA-Z])|mm|cp|tp|xp|q(?!s)|hv|xamv|nimv|wv|sm|s(?!\D|$)|ged|darg?|nrut)/g;function v(e,r){var t,n=e.pop();return r.push(n.f.apply(n,(t=[]).concat.apply(t,r.splice(-n.argCount)))),n.precedence}function f(e,r){var t,n=function(e){var r={};return r.symbols=e?g({},m.symbols,{},e.symbols):g({},m.symbols),r}(r),o=[n.symbols["("].prefix],a=[],i=new RegExp("\\d+(?:\\.\\d+)?|"+Object.keys(n.symbols).map(function(e){return n.symbols[e]}).sort(function(e,r){return r.symbol.length-e.symbol.length}).map(function(e){return e.regSymbol}).join("|")+"|(\\S)","g");i.lastIndex=0;var u=!1;do{var f=(t=i.exec(e))||[")",void 0],l=f[0],s=f[1],c=n.symbols[l],p=c&&!c.prefix&&!c.func,d=!c||!c.postfix&&!c.infix;if(s||(u?d:p))throw new y(37,t?t.index:e.length,e);if(u){var b=c.postfix||c.infix;do{var h=o[o.length-1];if(0<(b.precedence-h.precedence||h.rightToLeft))break}while(v(o,a));u="postfix"===b.notation,")"!==b.symbol&&(o.push(b),u&&v(o,a))}else if(c){if(o.push(c.prefix||c.func),c.func&&(!(t=i.exec(e))||"("!==t[0]))throw new y(38,t?t.index:e.length,e)}else a.push(+l),u=!0}while(t&&o.length);if(o.length)throw new y(39,t?t.index:e.length,e);if(t)throw new y(40,t?t.index:e.length,e);return a.pop()}function l(e){return e.split("").reverse().join("")}function s(e){return e.charAt(0).toUpperCase()+e.slice(1)}var c=["Top","Right","Bottom","Left"];function p(e,r){if(!e)return r.toLowerCase();var t=e.split("-");if(1<t.length)return t.splice(1,0,r),t.reduce(function(e,r){return""+e+s(r)});var n=e.replace(/([a-z])([A-Z])/g,"$1"+r+"$2");return e===n?""+e+r:n}function d(e){for(var r=arguments.length,t=new Array(1<r?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];var o=t[0],a=t[1],i=void 0===a?o:a,u=t[2],f=void 0===u?o:u,l=t[3];return function(e,r){for(var t={},n=0;n<r.length;n+=1)!r[n]&&0!==r[n]||(t[p(e,c[n])]=r[n]);return t}(e,[o,i,f,void 0===l?i:l])}function b(e,r){return e.substr(-r.length)===r}var h=/^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/;function w(e,r){if("string"!=typeof e)return r?[e,void 0]:e;var t=e.match(h);return r?t?[parseFloat(e),t[2]]:[e,void 0]:t?parseFloat(e):e}function t(o){return function(e,r){void 0===r&&(r="16px");var t=e,n=r;if("string"==typeof e){if(!b(e,"px"))throw new y(69,o,e);t=w(e)}if("string"==typeof r){if(!b(r,"px"))throw new y(70,o,r);n=w(r)}if("string"==typeof t)throw new y(71,e,o);if("string"==typeof n)throw new y(72,r,o);return""+t/n+o}}var x=t("em"),S=/^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/;var k={minorSecond:1.067,majorSecond:1.125,minorThird:1.2,majorThird:1.25,perfectFourth:1.333,augFourth:1.414,perfectFifth:1.5,minorSixth:1.6,goldenSection:1.618,majorSixth:1.667,minorSeventh:1.778,majorSeventh:1.875,octave:2,majorTenth:2.5,majorEleventh:2.667,majorTwelfth:3,doubleOctave:4};var z=t("rem");function A(e,r,t,n){void 0===t&&(t="320px"),void 0===n&&(n="1200px");var o=w(e,!0),a=o[0],i=o[1],u=w(r,!0),f=u[0],l=u[1],s=w(t,!0),c=s[0],p=s[1],d=w(n,!0),b=d[0],h=d[1];if("number"!=typeof c||"number"!=typeof b||!p||!h||p!==h)throw new y(47);if("number"!=typeof a||"number"!=typeof f||i!==l)throw new y(48);var g=(a-f)/(c-b);return"calc("+(f-g*b).toFixed(2)+(i||"")+" + "+(100*g).toFixed(2)+"vw)"}var I=/^\s*data:([a-z]+\/[a-z-]+(;[a-z-]+=[a-z-]+)?)?(;charset=[a-z0-9-]+)?(;base64)?,[a-z0-9!$&',()*+,;=\-._~:@/?%\s]*\s*$/i,F={woff:"woff",woff2:"woff2",ttf:"truetype",otf:"opentype",eot:"embedded-opentype",svg:"svg",svgz:"svg"};function j(e,r){return r?' format("'+F[e]+'")':""}function O(r,e,t){return function(e){return!!e.match(I)}(r)?'url("'+r+'")'+j(e[0],t):e.map(function(e){return'url("'+r+"."+e+'")'+j(e,t)}).join(", ")}function C(e){return void 0===e&&(e=1.3),"\n @media only screen and (-webkit-min-device-pixel-ratio: "+e+"),\n only screen and (min--moz-device-pixel-ratio: "+e+"),\n only screen and (-o-min-device-pixel-ratio: "+e+"/1),\n only screen and (min-resolution: "+Math.round(96*e)+"dpi),\n only screen and (min-resolution: "+e+"dppx)\n "}function T(e,r){return r=r||e.slice(0),e.raw=r,e}function L(e){for(var r="",t=arguments.length,n=new Array(1<t?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];for(var a=0;a<e.length;a+=1)if(r+=e[a],a===n.length-1&&n[a]){var i=n.filter(function(e){return!!e});1<i.length?(r=r.slice(0,-1),r+=", "+n[a]):1===i.length&&(r+=""+n[a])}else n[a]&&(r+=n[a]+" ");return r.trim()}function M(){var e=T(["linear-gradient(","",")"]);return M=function(){return e},e}function R(){var e=T(["radial-gradient(","","","",")"]);return R=function(){return e},e}var W={easeInBack:"cubic-bezier(0.600, -0.280, 0.735, 0.045)",easeInCirc:"cubic-bezier(0.600, 0.040, 0.980, 0.335)",easeInCubic:"cubic-bezier(0.550, 0.055, 0.675, 0.190)",easeInExpo:"cubic-bezier(0.950, 0.050, 0.795, 0.035)",easeInQuad:"cubic-bezier(0.550, 0.085, 0.680, 0.530)",easeInQuart:"cubic-bezier(0.895, 0.030, 0.685, 0.220)",easeInQuint:"cubic-bezier(0.755, 0.050, 0.855, 0.060)",easeInSine:"cubic-bezier(0.470, 0.000, 0.745, 0.715)",easeOutBack:"cubic-bezier(0.175, 0.885, 0.320, 1.275)",easeOutCubic:"cubic-bezier(0.215, 0.610, 0.355, 1.000)",easeOutCirc:"cubic-bezier(0.075, 0.820, 0.165, 1.000)",easeOutExpo:"cubic-bezier(0.190, 1.000, 0.220, 1.000)",easeOutQuad:"cubic-bezier(0.250, 0.460, 0.450, 0.940)",easeOutQuart:"cubic-bezier(0.165, 0.840, 0.440, 1.000)",easeOutQuint:"cubic-bezier(0.230, 1.000, 0.320, 1.000)",easeOutSine:"cubic-bezier(0.390, 0.575, 0.565, 1.000)",easeInOutBack:"cubic-bezier(0.680, -0.550, 0.265, 1.550)",easeInOutCirc:"cubic-bezier(0.785, 0.135, 0.150, 0.860)",easeInOutCubic:"cubic-bezier(0.645, 0.045, 0.355, 1.000)",easeInOutExpo:"cubic-bezier(1.000, 0.000, 0.000, 1.000)",easeInOutQuad:"cubic-bezier(0.455, 0.030, 0.515, 0.955)",easeInOutQuart:"cubic-bezier(0.770, 0.000, 0.175, 1.000)",easeInOutQuint:"cubic-bezier(0.860, 0.000, 0.070, 1.000)",easeInOutSine:"cubic-bezier(0.445, 0.050, 0.550, 0.950)"};function _(e){return Math.round(255*e)}function q(e,r,t){return _(e)+","+_(r)+","+_(t)}function $(e,r,t,n){if(void 0===n&&(n=q),0===r)return n(t,t,t);var o=(e%360+360)%360/60,a=(1-Math.abs(2*t-1))*r,i=a*(1-Math.abs(o%2-1)),u=0,f=0,l=0;0<=o&&o<1?(u=a,f=i):1<=o&&o<2?(u=i,f=a):2<=o&&o<3?(f=a,l=i):3<=o&&o<4?(f=i,l=a):4<=o&&o<5?(u=i,l=a):5<=o&&o<6&&(u=a,l=i);var s=t-a/2;return n(u+s,f+s,l+s)}var P={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};var D=/^#[a-fA-F0-9]{6}$/,B=/^#[a-fA-F0-9]{8}$/,Q=/^#[a-fA-F0-9]{3}$/,E=/^#[a-fA-F0-9]{4}$/,H=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,N=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i,V=/^hsl\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,U=/^hsla\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i;function G(e){if("string"!=typeof e)throw new y(3);var r=function(e){if("string"!=typeof e)return e;var r=e.toLowerCase();return P[r]?"#"+P[r]:e}(e);if(r.match(D))return{red:parseInt(""+r[1]+r[2],16),green:parseInt(""+r[3]+r[4],16),blue:parseInt(""+r[5]+r[6],16)};if(r.match(B)){var t=parseFloat((parseInt(""+r[7]+r[8],16)/255).toFixed(2));return{red:parseInt(""+r[1]+r[2],16),green:parseInt(""+r[3]+r[4],16),blue:parseInt(""+r[5]+r[6],16),alpha:t}}if(r.match(Q))return{red:parseInt(""+r[1]+r[1],16),green:parseInt(""+r[2]+r[2],16),blue:parseInt(""+r[3]+r[3],16)};if(r.match(E)){var n=parseFloat((parseInt(""+r[4]+r[4],16)/255).toFixed(2));return{red:parseInt(""+r[1]+r[1],16),green:parseInt(""+r[2]+r[2],16),blue:parseInt(""+r[3]+r[3],16),alpha:n}}var o=H.exec(r);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var a=N.exec(r);if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10),alpha:parseFloat(""+a[4])};var i=V.exec(r);if(i){var u="rgb("+$(parseInt(""+i[1],10),parseInt(""+i[2],10)/100,parseInt(""+i[3],10)/100)+")",f=H.exec(u);if(!f)throw new y(4,r,u);return{red:parseInt(""+f[1],10),green:parseInt(""+f[2],10),blue:parseInt(""+f[3],10)}}var l=U.exec(r);if(l){var s="rgb("+$(parseInt(""+l[1],10),parseInt(""+l[2],10)/100,parseInt(""+l[3],10)/100)+")",c=H.exec(s);if(!c)throw new y(4,r,s);return{red:parseInt(""+c[1],10),green:parseInt(""+c[2],10),blue:parseInt(""+c[3],10),alpha:parseFloat(""+l[4])}}throw new y(5)}function J(e){return function(e){var r,t=e.red/255,n=e.green/255,o=e.blue/255,a=Math.max(t,n,o),i=Math.min(t,n,o),u=(a+i)/2;if(a===i)return void 0!==e.alpha?{hue:0,saturation:0,lightness:u,alpha:e.alpha}:{hue:0,saturation:0,lightness:u};var f=a-i,l=.5<u?f/(2-a-i):f/(a+i);switch(a){case t:r=(n-o)/f+(n<o?6:0);break;case n:r=(o-t)/f+2;break;default:r=(t-n)/f+4}return r*=60,void 0!==e.alpha?{hue:r,saturation:l,lightness:u,alpha:e.alpha}:{hue:r,saturation:l,lightness:u}}(G(e))}var Z=function(e){return 7===e.length&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e};function K(e){var r=e.toString(16);return 1===r.length?"0"+r:r}function X(e){return K(Math.round(255*e))}function Y(e,r,t){return Z("#"+X(e)+X(r)+X(t))}function ee(e,r,t){return $(e,r,t,Y)}function re(e,r,t){if("number"==typeof e&&"number"==typeof r&&"number"==typeof t)return ee(e,r,t);if("object"==typeof e&&void 0===r&&void 0===t)return ee(e.hue,e.saturation,e.lightness);throw new y(1)}function te(e,r,t,n){if("number"==typeof e&&"number"==typeof r&&"number"==typeof t&&"number"==typeof n)return 1<=n?ee(e,r,t):"rgba("+$(e,r,t)+","+n+")";if("object"==typeof e&&void 0===r&&void 0===t&&void 0===n)return 1<=e.alpha?ee(e.hue,e.saturation,e.lightness):"rgba("+$(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new y(2)}function ne(e,r,t){if("number"==typeof e&&"number"==typeof r&&"number"==typeof t)return Z("#"+K(e)+K(r)+K(t));if("object"==typeof e&&void 0===r&&void 0===t)return Z("#"+K(e.red)+K(e.green)+K(e.blue));throw new y(6)}function oe(e,r,t,n){if("string"==typeof e&&"number"==typeof r){var o=G(e);return"rgba("+o.red+","+o.green+","+o.blue+","+r+")"}if("number"==typeof e&&"number"==typeof r&&"number"==typeof t&&"number"==typeof n)return 1<=n?ne(e,r,t):"rgba("+e+","+r+","+t+","+n+")";if("object"==typeof e&&void 0===r&&void 0===t&&void 0===n)return 1<=e.alpha?ne(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new y(7)}var ae=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||void 0===e.alpha)},ie=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha},ue=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||void 0===e.alpha)},fe=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha};function le(e){if("object"!=typeof e)throw new y(8);if(ie(e))return oe(e);if(ae(e))return ne(e);if(fe(e))return te(e);if(ue(e))return re(e);throw new y(8)}function se(e){return function r(t,n,o){return function(){var e=o.concat(Array.prototype.slice.call(arguments));return e.length>=n?t.apply(this,e):r(t,n,e)}}(e,e.length,[])}function ce(e,r){if("transparent"===r)return r;var t=J(r);return le(g({},t,{hue:t.hue+parseFloat(e)}))}var pe=se(ce);function de(e,r,t){return Math.max(e,Math.min(r,t))}function be(e,r){if("transparent"===r)return r;var t=J(r);return le(g({},t,{lightness:de(0,1,t.lightness-parseFloat(e))}))}var he=se(be);function ge(e,r){if("transparent"===r)return r;var t=J(r);return le(g({},t,{saturation:de(0,1,t.saturation-parseFloat(e))}))}var me=se(ge);function ye(e){if("transparent"===e)return 0;var t=G(e),r=Object.keys(t).map(function(e){var r=t[e]/255;return r<=.03928?r/12.92:Math.pow((.055+r)/1.055,2.4)}),n=r[0],o=r[1],a=r[2];return parseFloat((.2126*n+.7152*o+.0722*a).toFixed(3))}function ve(e,r){var t=ye(e),n=ye(r);return parseFloat((n<t?(t+.05)/(n+.05):(n+.05)/(t+.05)).toFixed(2))}function we(e,r){if("transparent"===r)return r;var t=J(r);return le(g({},t,{lightness:de(0,1,t.lightness+parseFloat(e))}))}var xe=se(we);function Se(e,r,t){if("transparent"===r)return t;if("transparent"===t)return r;var n=G(r),o=g({},n,{alpha:"number"==typeof n.alpha?n.alpha:1}),a=G(t),i=g({},a,{alpha:"number"==typeof a.alpha?a.alpha:1}),u=o.alpha-i.alpha,f=2*parseFloat(e)-1,l=((f*u==-1?f:f+u)/(1+f*u)+1)/2,s=1-l;return oe({red:Math.floor(o.red*l+i.red*s),green:Math.floor(o.green*l+i.green*s),blue:Math.floor(o.blue*l+i.blue*s),alpha:o.alpha+(i.alpha-o.alpha)*(parseFloat(e)/1)})}var ke=se(Se);function ze(e,r){if("transparent"===r)return r;var t=G(r);return oe(g({},t,{alpha:de(0,1,(100*("number"==typeof t.alpha?t.alpha:1)+100*parseFloat(e))/100)}))}var Ae=se(ze);function Ie(e,r){if("transparent"===r)return r;var t=J(r);return le(g({},t,{saturation:de(0,1,t.saturation+parseFloat(e))}))}var Fe=se(Ie);function je(e,r){return"transparent"===r?r:le(g({},J(r),{hue:parseFloat(e)}))}var Oe=se(je);function Ce(e,r){return"transparent"===r?r:le(g({},J(r),{lightness:parseFloat(e)}))}var Te=se(Ce);function Le(e,r){return"transparent"===r?r:le(g({},J(r),{saturation:parseFloat(e)}))}var Me=se(Le);function Re(e,r){return"transparent"===r?r:ke(parseFloat(e),"rgb(0, 0, 0)",r)}var We=se(Re);function _e(e,r){return"transparent"===r?r:ke(parseFloat(e),"rgb(255, 255, 255)",r)}var qe=se(_e);function $e(e,r){if("transparent"===r)return r;var t=G(r);return oe(g({},t,{alpha:de(0,1,(100*("number"==typeof t.alpha?t.alpha:1)-100*parseFloat(e))/100)}))}var Pe=se($e);var De=["top","right","bottom","left"];function Be(e,r){return e(r?":"+r:"")}function Qe(e,r,t){if(!r)throw new y(67);if(0===e.length)return Be(r,null);for(var n=[],o=0;o<e.length;o+=1){if(t&&t.indexOf(e[o])<0)throw new y(68);n.push(Be(r,e[o]))}return n=n.join(",")}var Ee=[void 0,null,"active","focus","hover"];function He(e){return"button"+e+',\n input[type="button"]'+e+',\n input[type="reset"]'+e+',\n input[type="submit"]'+e}var Ne=["absolute","fixed","relative","static","sticky"];var Ve=[void 0,null,"active","focus","hover"];function Ue(e){return'input[type="color"]'+e+',\n input[type="date"]'+e+',\n input[type="datetime"]'+e+',\n input[type="datetime-local"]'+e+',\n input[type="email"]'+e+',\n input[type="month"]'+e+',\n input[type="number"]'+e+',\n input[type="password"]'+e+',\n input[type="search"]'+e+',\n input[type="tel"]'+e+',\n input[type="text"]'+e+',\n input[type="time"]'+e+',\n input[type="url"]'+e+',\n input[type="week"]'+e+",\n input:not([type])"+e+",\n textarea"+e}e.adjustHue=pe,e.animation=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];var n=Array.isArray(r[0]);if(!n&&8<r.length)throw new y(64);return{animation:r.map(function(e){if(n&&!Array.isArray(e)||!n&&Array.isArray(e))throw new y(65);if(Array.isArray(e)&&8<e.length)throw new y(66);return Array.isArray(e)?e.join(" "):e}).join(", ")}},e.backgroundImages=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return{backgroundImage:r.join(", ")}},e.backgrounds=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return{background:r.join(", ")}},e.between=A,e.border=function(e){for(var r=arguments.length,t=new Array(1<r?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];var o;return"string"==typeof e&&0<=De.indexOf(e)?((o={})["border"+s(e)+"Width"]=t[0],o["border"+s(e)+"Style"]=t[1],o["border"+s(e)+"Color"]=t[2],o):(t.unshift(e),{borderWidth:t[0],borderStyle:t[1],borderColor:t[2]})},e.borderColor=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return d.apply(void 0,["borderColor"].concat(r))},e.borderRadius=function(e,r){var t,n,o=s(e);if(!r&&0!==r)throw new y(62);if("Top"===o||"Bottom"===o)return(t={})["border"+o+"RightRadius"]=r,t["border"+o+"LeftRadius"]=r,t;if("Left"!==o&&"Right"!==o)throw new y(63);return(n={})["borderTop"+o+"Radius"]=r,n["borderBottom"+o+"Radius"]=r,n},e.borderStyle=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return d.apply(void 0,["borderStyle"].concat(r))},e.borderWidth=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return d.apply(void 0,["borderWidth"].concat(r))},e.buttons=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return Qe(r,He,Ee)},e.clearFix=function(e){var r;return void 0===e&&(e="&"),(r={})[e+"::after"]={clear:"both",content:'""',display:"table"},r},e.complement=function(e){if("transparent"===e)return e;var r=J(e);return le(g({},r,{hue:(r.hue+180)%360}))},e.cover=function(e){return void 0===e&&(e=0),{position:"absolute",top:e,right:e,bottom:e,left:e}},e.darken=he,e.desaturate=me,e.directionalProperty=d,e.ellipsis=function(e){return void 0===e&&(e="100%"),{display:"inline-block",maxWidth:e,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",wordWrap:"normal"}},e.em=x,e.fluidRange=function(e,r,t){if(void 0===r&&(r="320px"),void 0===t&&(t="1200px"),!Array.isArray(e)&&"object"!=typeof e||null===e)throw new y(49);if(Array.isArray(e)){var n={},o={},a=e,i=Array.isArray(a),u=0;for(a=i?a:a[Symbol.iterator]();;){var f,l,s;if(i){if(u>=a.length)break;s=a[u++]}else{if((u=a.next()).done)break;s=u.value}var c=s;if(!c.prop||!c.fromSize||!c.toSize)throw new y(50);o[c.prop]=c.fromSize,n["@media (min-width: "+r+")"]=g({},n["@media (min-width: "+r+")"],((f={})[c.prop]=A(c.fromSize,c.toSize,r,t),f)),n["@media (min-width: "+t+")"]=g({},n["@media (min-width: "+t+")"],((l={})[c.prop]=c.toSize,l))}return g({},o,{},n)}var p,d,b;if(!e.prop||!e.fromSize||!e.toSize)throw new y(51);return(b={})[e.prop]=e.fromSize,b["@media (min-width: "+r+")"]=((p={})[e.prop]=A(e.fromSize,e.toSize,r,t),p),b["@media (min-width: "+t+")"]=((d={})[e.prop]=e.toSize,d),b},e.fontFace=function(e){var r=e.fontFamily,t=e.fontFilePath,n=e.fontStretch,o=e.fontStyle,a=e.fontVariant,i=e.fontWeight,u=e.fileFormats,f=void 0===u?["eot","woff2","woff","ttf","svg"]:u,l=e.formatHint,s=void 0!==l&&l,c=e.localFonts,p=e.unicodeRange,d=e.fontDisplay,b=e.fontVariationSettings,h=e.fontFeatureSettings;if(!r)throw new y(55);if(!t&&!c)throw new y(52);if(c&&!Array.isArray(c))throw new y(53);if(!Array.isArray(f))throw new y(54);var g={"@font-face":{fontFamily:r,src:function(e,r,t,n){var o=[];return r&&o.push(function(e){return e.map(function(e){return'local("'+e+'")'}).join(", ")}(r)),e&&o.push(O(e,t,n)),o.join(", ")}(t,c,f,s),unicodeRange:p,fontStretch:n,fontStyle:o,fontVariant:a,fontWeight:i,fontDisplay:d,fontVariationSettings:b,fontFeatureSettings:h}};return JSON.parse(JSON.stringify(g))},e.getContrast=ve,e.getLuminance=ye,e.getValueAndUnit=function(e){if(console.warn("getValueAndUnit has been marked for deprecation in polished 3.0 and will be fully deprecated in 4.0. It's functionality has been been moved to stripUnit as an optional return."),"string"!=typeof e)return[e,""];var r=e.match(S);return r?[parseFloat(e),r[2]]:[e,void 0]},e.grayscale=function(e){return"transparent"===e?e:le(g({},J(e),{saturation:0}))},e.hiDPI=C,e.hideText=function(){return{textIndent:"101%",overflow:"hidden",whiteSpace:"nowrap"}},e.hideVisually=function(){return{border:"0",clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",whiteSpace:"nowrap",width:"1px"}},e.hsl=re,e.hslToColorString=function(e){if("object"==typeof e&&"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness)return e.alpha&&"number"==typeof e.alpha?te({hue:e.hue,saturation:e.saturation,lightness:e.lightness,alpha:e.alpha}):re({hue:e.hue,saturation:e.saturation,lightness:e.lightness});throw new y(45)},e.hsla=te,e.invert=function(e){if("transparent"===e)return e;var r=G(e);return le(g({},r,{red:255-r.red,green:255-r.green,blue:255-r.blue}))},e.lighten=xe,e.linearGradient=function(e){var r=e.colorStops,t=e.fallback,n=e.toDirection,o=void 0===n?"":n;if(!r||r.length<2)throw new y(56);return{backgroundColor:t||r[0].split(" ")[0],backgroundImage:L(M(),o,r.join(", "))}},e.margin=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return d.apply(void 0,["margin"].concat(r))},e.math=function(e,r){var t=l(e),n=t.match(u);if(n&&!n.every(function(e){return e===n[0]}))throw new y(41);return""+f(l(t.replace(u,"")),r)+(n?l(n[0]):"")},e.meetsContrastGuidelines=function(e,r){var t=ve(e,r);return{AA:4.5<=t,AALarge:3<=t,AAA:7<=t,AAALarge:4.5<=t}},e.mix=ke,e.modularScale=function(e,r,t){if(void 0===r&&(r="1em"),void 0===t&&(t=1.333),"number"!=typeof e)throw new y(42);if("string"==typeof t&&!k[t])throw new y(43);var n="string"==typeof r?w(r,!0):[r,""],o=n[0],a=n[1],i="string"==typeof t?function(e){return k[e]}(t):t;if("string"==typeof o)throw new y(44,r);return""+o*Math.pow(i,e)+a},e.normalize=function(){var e;return[(e={html:{lineHeight:"1.15",textSizeAdjust:"100%"},body:{margin:"0"},h1:{fontSize:"2em",margin:"0.67em 0"},hr:{boxSizing:"content-box",height:"0",overflow:"visible"},pre:{fontFamily:"monospace, monospace",fontSize:"1em"},a:{backgroundColor:"transparent"},"abbr[title]":{borderBottom:"none",textDecoration:"underline"}},e["b,\n strong"]={fontWeight:"bolder"},e["code,\n kbd,\n samp"]={fontFamily:"monospace, monospace",fontSize:"1em"},e.small={fontSize:"80%"},e["sub,\n sup"]={fontSize:"75%",lineHeight:"0",position:"relative",verticalAlign:"baseline"},e.sub={bottom:"-0.25em"},e.sup={top:"-0.5em"},e.img={borderStyle:"none"},e["button,\n input,\n optgroup,\n select,\n textarea"]={fontFamily:"inherit",fontSize:"100%",lineHeight:"1.15",margin:"0"},e["button,\n input"]={overflow:"visible"},e["button,\n select"]={textTransform:"none"},e['button,\n html [type="button"],\n [type="reset"],\n [type="submit"]']={WebkitAppearance:"button"},e['button::-moz-focus-inner,\n [type="button"]::-moz-focus-inner,\n [type="reset"]::-moz-focus-inner,\n [type="submit"]::-moz-focus-inner']={borderStyle:"none",padding:"0"},e['button:-moz-focusring,\n [type="button"]:-moz-focusring,\n [type="reset"]:-moz-focusring,\n [type="submit"]:-moz-focusring']={outline:"1px dotted ButtonText"},e.fieldset={padding:"0.35em 0.625em 0.75em"},e.legend={boxSizing:"border-box",color:"inherit",display:"table",maxWidth:"100%",padding:"0",whiteSpace:"normal"},e.progress={verticalAlign:"baseline"},e.textarea={overflow:"auto"},e['[type="checkbox"],\n [type="radio"]']={boxSizing:"border-box",padding:"0"},e['[type="number"]::-webkit-inner-spin-button,\n [type="number"]::-webkit-outer-spin-button']={height:"auto"},e['[type="search"]']={WebkitAppearance:"textfield",outlineOffset:"-2px"},e['[type="search"]::-webkit-search-decoration']={WebkitAppearance:"none"},e["::-webkit-file-upload-button"]={WebkitAppearance:"button",font:"inherit"},e.details={display:"block"},e.summary={display:"list-item"},e.template={display:"none"},e["[hidden]"]={display:"none"},e),{"abbr[title]":{textDecoration:"underline dotted"}}]},e.opacify=Ae,e.padding=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return d.apply(void 0,["padding"].concat(r))},e.parseToHsl=J,e.parseToRgb=G,e.position=function(e){for(var r=arguments.length,t=new Array(1<r?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];return 0<=Ne.indexOf(e)?g({position:e},d.apply(void 0,[""].concat(t))):d.apply(void 0,["",e].concat(t))},e.radialGradient=function(e){var r=e.colorStops,t=e.extent,n=void 0===t?"":t,o=e.fallback,a=e.position,i=void 0===a?"":a,u=e.shape,f=void 0===u?"":u;if(!r||r.length<2)throw new y(57);return{backgroundColor:o||r[0].split(" ")[0],backgroundImage:L(R(),i,f,n,r.join(", "))}},e.readableColor=function(e,r,t){return void 0===r&&(r="#000"),void 0===t&&(t="#fff"),.179<ye(e)?r:t},e.rem=z,e.retinaImage=function(e,r,t,n,o){var a;if(void 0===t&&(t="png"),void 0===o&&(o="_2x"),!e)throw new y(58);var i=t.replace(/^\./,""),u=n?n+"."+i:""+e+o+"."+i;return(a={backgroundImage:"url("+e+"."+i+")"})[C()]=g({backgroundImage:"url("+u+")"},r?{backgroundSize:r}:{}),a},e.rgb=ne,e.rgbToColorString=function(e){if("object"==typeof e&&"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue)return e.alpha&&"number"==typeof e.alpha?oe({red:e.red,green:e.green,blue:e.blue,alpha:e.alpha}):ne({red:e.red,green:e.green,blue:e.blue});throw new y(46)},e.rgba=oe,e.saturate=Fe,e.setHue=Oe,e.setLightness=Te,e.setSaturation=Me,e.shade=We,e.size=function(e,r){return void 0===r&&(r=e),{height:e,width:r}},e.stripUnit=w,e.textInputs=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return Qe(r,Ue,Ve)},e.timingFunctions=function(e){return function(e){return W[e]}(e)},e.tint=qe,e.toColorString=le,e.transitions=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];if(Array.isArray(r[0])&&2===r.length){var n=r[1];if("string"!=typeof n)throw new y(61);return{transition:r[0].map(function(e){return e+" "+n}).join(", ")}}return{transition:r.join(", ")}},e.transparentize=Pe,e.triangle=function(e){var r=e.pointingDirection,t=e.height,n=e.width,o=e.foregroundColor,a=e.backgroundColor,i=void 0===a?"transparent":a,u=w(n,!0),f=w(t,!0);if(isNaN(f[0])||isNaN(u[0]))throw new y(60);return{width:"0",height:"0",borderColor:function(e,r,t){switch(e){case"top":case"bottomRight":return t+" "+t+" "+r+" "+t;case"right":case"bottomLeft":return t+" "+t+" "+t+" "+r;case"bottom":case"topLeft":return r+" "+t+" "+t+" "+t;case"left":case"topRight":return t+" "+r+" "+t+" "+t;default:throw new y(59)}}(r,o,i),borderStyle:"solid",borderWidth:function(e,r,t){var n=""+t[0]+(t[1]||""),o=""+t[0]/2+(t[1]||""),a=""+r[0]+(r[1]||""),i=""+r[0]/2+(r[1]||"");switch(e){case"top":return"0 "+o+" "+a+" "+o;case"topLeft":return n+" "+a+" 0 0";case"left":return i+" "+n+" "+i+" 0";case"bottomLeft":return n+" 0 0 "+a;case"bottom":return a+" "+o+" 0 "+o;case"bottomRight":return"0 0 "+n+" "+a;case"right":return i+" 0 "+i+" "+n;case"topRight":default:return"0 "+n+" "+a+" 0"}}(r,f,u)}},e.wordWrap=function(e){return void 0===e&&(e="break-word"),{overflowWrap:e,wordWrap:e,wordBreak:"break-word"===e?"break-all":e}},Object.defineProperty(e,"__esModule",{value:!0})}); |
@@ -20,25 +20,2 @@ "use strict"; | ||
/** | ||
* Returns a string value for the color. The returned result is the smallest possible hex notation. | ||
* | ||
* @example | ||
* // Styles as object usage | ||
* const styles = { | ||
* background: hsl(359, 0.75, 0.4), | ||
* background: hsl({ hue: 360, saturation: 0.75, lightness: 0.4 }), | ||
* } | ||
* | ||
* // styled-components usage | ||
* const div = styled.div` | ||
* background: ${hsl(359, 0.75, 0.4)}; | ||
* background: ${hsl({ hue: 360, saturation: 0.75, lightness: 0.4 })}; | ||
* ` | ||
* | ||
* // CSS in JS Output | ||
* | ||
* element { | ||
* background: "#b3191c"; | ||
* background: "#b3191c"; | ||
* } | ||
*/ | ||
function hsl(value, saturation, lightness) { | ||
@@ -45,0 +22,0 @@ if (typeof value === 'number' && typeof saturation === 'number' && typeof lightness === 'number') { |
@@ -26,28 +26,2 @@ "use strict"; | ||
/** | ||
* Returns a string value for the color. The returned result is the smallest possible rgba or hex notation. | ||
* | ||
* @example | ||
* // Styles as object usage | ||
* const styles = { | ||
* background: hsla(359, 0.75, 0.4, 0.7), | ||
* background: hsla({ hue: 360, saturation: 0.75, lightness: 0.4, alpha: 0,7 }), | ||
* background: hsla(359, 0.75, 0.4, 1), | ||
* } | ||
* | ||
* // styled-components usage | ||
* const div = styled.div` | ||
* background: ${hsla(359, 0.75, 0.4, 0.7)}; | ||
* background: ${hsla({ hue: 360, saturation: 0.75, lightness: 0.4, alpha: 0,7 })}; | ||
* background: ${hsla(359, 0.75, 0.4, 1)}; | ||
* ` | ||
* | ||
* // CSS in JS Output | ||
* | ||
* element { | ||
* background: "rgba(179,25,28,0.7)"; | ||
* background: "rgba(179,25,28,0.7)"; | ||
* background: "#b3191c"; | ||
* } | ||
*/ | ||
function hsla(value, saturation, lightness, alpha) { | ||
@@ -54,0 +28,0 @@ if (typeof value === 'number' && typeof saturation === 'number' && typeof lightness === 'number' && typeof alpha === 'number') { |
@@ -26,26 +26,2 @@ "use strict"; | ||
/** | ||
* Converts a HslColor or HslaColor object to a color string. | ||
* This util is useful in case you only know on runtime which color object is | ||
* used. Otherwise we recommend to rely on `hsl` or `hsla`. | ||
* | ||
* @example | ||
* // Styles as object usage | ||
* const styles = { | ||
* background: hslToColorString({ hue: 240, saturation: 1, lightness: 0.5 }), | ||
* background: hslToColorString({ hue: 360, saturation: 0.75, lightness: 0.4, alpha: 0.72 }), | ||
* } | ||
* | ||
* // styled-components usage | ||
* const div = styled.div` | ||
* background: ${hslToColorString({ hue: 240, saturation: 1, lightness: 0.5 })}; | ||
* background: ${hslToColorString({ hue: 360, saturation: 0.75, lightness: 0.4, alpha: 0.72 })}; | ||
* ` | ||
* | ||
* // CSS in JS Output | ||
* element { | ||
* background: "#00f"; | ||
* background: "rgba(179,25,25,0.72)"; | ||
* } | ||
*/ | ||
function hslToColorString(color) { | ||
@@ -52,0 +28,0 @@ if (typeof color === 'object' && typeof color.hue === 'number' && typeof color.saturation === 'number' && typeof color.lightness === 'number') { |
@@ -14,9 +14,2 @@ "use strict"; | ||
/** | ||
* Determines which contrast guidelines have been met for two colors. | ||
* Based on the [contrast calculations recommended by W3](https://www.w3.org/WAI/WCAG21/Understanding/contrast-enhanced.html). | ||
* | ||
* @example | ||
* const scores = meetsContrastGuidelines('#444', '#fff'); | ||
*/ | ||
function meetsContrastGuidelines(color1, color2) { | ||
@@ -23,0 +16,0 @@ var contrastRatio = (0, _getContrast["default"])(color1, color2); |
@@ -66,6 +66,6 @@ "use strict"; | ||
var color2 = _extends({}, parsedColor2, { | ||
alpha: typeof parsedColor2.alpha === 'number' ? parsedColor2.alpha : 1 // The formular is copied from the original Sass implementation: | ||
// http://sass-lang.com/documentation/Sass/Script/Functions.html#mix-instance_method | ||
alpha: typeof parsedColor2.alpha === 'number' ? parsedColor2.alpha : 1 | ||
}); // The formular is copied from the original Sass implementation: | ||
// http://sass-lang.com/documentation/Sass/Script/Functions.html#mix-instance_method | ||
}); | ||
@@ -72,0 +72,0 @@ var alphaDelta = color1.alpha - color2.alpha; |
@@ -20,13 +20,2 @@ "use strict"; | ||
/** | ||
* Returns an HslColor or HslaColor object. This utility function is only useful | ||
* if want to extract a color component. With the color util `toColorString` you | ||
* can convert a HslColor or HslaColor object back to a string. | ||
* | ||
* @example | ||
* // Assigns `{ hue: 0, saturation: 1, lightness: 0.5 }` to color1 | ||
* const color1 = parseToHsl('rgb(255, 0, 0)'); | ||
* // Assigns `{ hue: 128, saturation: 1, lightness: 0.5, alpha: 0.75 }` to color2 | ||
* const color2 = parseToHsl('hsla(128, 100%, 50%, 0.75)'); | ||
*/ | ||
function parseToHsl(color) { | ||
@@ -33,0 +22,0 @@ // Note: At a later stage we can optimize this function as right now a hsl |
@@ -32,4 +32,4 @@ "use strict"; | ||
var rgbaRegex = /^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i; | ||
var hslRegex = /^hsl\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*\)$/i; | ||
var hslaRegex = /^hsla\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i; | ||
var hslRegex = /^hsl\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i; | ||
var hslaRegex = /^hsla\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i; | ||
/** | ||
@@ -36,0 +36,0 @@ * Returns an RgbColor or RgbaColor object. This utility function is only useful |
@@ -26,25 +26,2 @@ "use strict"; | ||
/** | ||
* Returns a string value for the color. The returned result is the smallest possible hex notation. | ||
* | ||
* @example | ||
* // Styles as object usage | ||
* const styles = { | ||
* background: rgb(255, 205, 100), | ||
* background: rgb({ red: 255, green: 205, blue: 100 }), | ||
* } | ||
* | ||
* // styled-components usage | ||
* const div = styled.div` | ||
* background: ${rgb(255, 205, 100)}; | ||
* background: ${rgb({ red: 255, green: 205, blue: 100 })}; | ||
* ` | ||
* | ||
* // CSS in JS Output | ||
* | ||
* element { | ||
* background: "#ffcd64"; | ||
* background: "#ffcd64"; | ||
* } | ||
*/ | ||
function rgb(value, green, blue) { | ||
@@ -51,0 +28,0 @@ if (typeof value === 'number' && typeof green === 'number' && typeof blue === 'number') { |
@@ -26,36 +26,2 @@ "use strict"; | ||
/** | ||
* Returns a string value for the color. The returned result is the smallest possible rgba or hex notation. | ||
* | ||
* Can also be used to fade a color by passing a hex value or named CSS color along with an alpha value. | ||
* | ||
* @example | ||
* // Styles as object usage | ||
* const styles = { | ||
* background: rgba(255, 205, 100, 0.7), | ||
* background: rgba({ red: 255, green: 205, blue: 100, alpha: 0.7 }), | ||
* background: rgba(255, 205, 100, 1), | ||
* background: rgba('#ffffff', 0.4), | ||
* background: rgba('black', 0.7), | ||
* } | ||
* | ||
* // styled-components usage | ||
* const div = styled.div` | ||
* background: ${rgba(255, 205, 100, 0.7)}; | ||
* background: ${rgba({ red: 255, green: 205, blue: 100, alpha: 0.7 })}; | ||
* background: ${rgba(255, 205, 100, 1)}; | ||
* background: ${rgba('#ffffff', 0.4)}; | ||
* background: ${rgba('black', 0.7)}; | ||
* ` | ||
* | ||
* // CSS in JS Output | ||
* | ||
* element { | ||
* background: "rgba(255,205,100,0.7)"; | ||
* background: "rgba(255,205,100,0.7)"; | ||
* background: "#ffcd64"; | ||
* background: "rgba(255,255,255,0.4)"; | ||
* background: "rgba(0,0,0,0.7)"; | ||
* } | ||
*/ | ||
function rgba(firstValue, secondValue, thirdValue, fourthValue) { | ||
@@ -62,0 +28,0 @@ if (typeof firstValue === 'string' && typeof secondValue === 'number') { |
@@ -26,26 +26,2 @@ "use strict"; | ||
/** | ||
* Converts a RgbColor or RgbaColor object to a color string. | ||
* This util is useful in case you only know on runtime which color object is | ||
* used. Otherwise we recommend to rely on `rgb` or `rgba`. | ||
* | ||
* @example | ||
* // Styles as object usage | ||
* const styles = { | ||
* background: rgbToColorString({ red: 255, green: 205, blue: 100 }), | ||
* background: rgbToColorString({ red: 255, green: 205, blue: 100, alpha: 0.72 }), | ||
* } | ||
* | ||
* // styled-components usage | ||
* const div = styled.div` | ||
* background: ${rgbToColorString({ red: 255, green: 205, blue: 100 })}; | ||
* background: ${rgbToColorString({ red: 255, green: 205, blue: 100, alpha: 0.72 })}; | ||
* ` | ||
* | ||
* // CSS in JS Output | ||
* element { | ||
* background: "#ffcd64"; | ||
* background: "rgba(255,205,100,0.72)"; | ||
* } | ||
*/ | ||
function rgbToColorString(color) { | ||
@@ -52,0 +28,0 @@ if (typeof color === 'object' && typeof color.red === 'number' && typeof color.green === 'number' && typeof color.blue === 'number') { |
@@ -154,8 +154,7 @@ "use strict"; | ||
yellowgreen: '9acd32' | ||
/** | ||
* Checks if a string is a CSS named color and returns its equivalent hex value, otherwise returns the original color. | ||
* @private | ||
*/ | ||
}; | ||
/** | ||
* Checks if a string is a CSS named color and returns its equivalent hex value, otherwise returns the original color. | ||
* @private | ||
*/ | ||
@@ -162,0 +161,0 @@ function nameToHex(color) { |
@@ -26,3 +26,3 @@ "use strict"; | ||
var symbolMap = {}; | ||
symbolMap.symbols = additionalSymbols ? _extends({}, _defaultMathSymbols["default"].symbols, additionalSymbols.symbols) : _extends({}, _defaultMathSymbols["default"].symbols); | ||
symbolMap.symbols = additionalSymbols ? _extends({}, _defaultMathSymbols["default"].symbols, {}, additionalSymbols.symbols) : _extends({}, _defaultMathSymbols["default"].symbols); | ||
return symbolMap; | ||
@@ -29,0 +29,0 @@ } |
@@ -6,24 +6,2 @@ "use strict"; | ||
/** | ||
* CSS to contain a float (credit to CSSMojo). | ||
* | ||
* @example | ||
* // Styles as object usage | ||
* const styles = { | ||
* ...clearFix(), | ||
* } | ||
* | ||
* // styled-components usage | ||
* const div = styled.div` | ||
* ${clearFix()} | ||
* ` | ||
* | ||
* // CSS as JS Output | ||
* | ||
* '&::after': { | ||
* 'clear': 'both', | ||
* 'content': '""', | ||
* 'display': 'table' | ||
* } | ||
*/ | ||
function clearFix(parent) { | ||
@@ -30,0 +8,0 @@ var _ref; |
@@ -6,26 +6,2 @@ "use strict"; | ||
/** | ||
* CSS to fully cover an area. Can optionally be passed an offset to act as a "padding". | ||
* | ||
* @example | ||
* // Styles as object usage | ||
* const styles = { | ||
* ...cover() | ||
* } | ||
* | ||
* // styled-components usage | ||
* const div = styled.div` | ||
* ${cover()} | ||
* ` | ||
* | ||
* // CSS as JS Output | ||
* | ||
* div: { | ||
* 'position': 'absolute', | ||
* 'top': '0', | ||
* 'right: '0', | ||
* 'bottom': '0', | ||
* 'left: '0' | ||
* } | ||
*/ | ||
function cover(offset) { | ||
@@ -32,0 +8,0 @@ if (offset === void 0) { |
@@ -6,27 +6,2 @@ "use strict"; | ||
/** | ||
* CSS to represent truncated text with an ellipsis. | ||
* | ||
* @example | ||
* // Styles as object usage | ||
* const styles = { | ||
* ...ellipsis('250px') | ||
* } | ||
* | ||
* // styled-components usage | ||
* const div = styled.div` | ||
* ${ellipsis('250px')} | ||
* ` | ||
* | ||
* // CSS as JS Output | ||
* | ||
* div: { | ||
* 'display': 'inline-block', | ||
* 'maxWidth': '250px', | ||
* 'overflow': 'hidden', | ||
* 'textOverflow': 'ellipsis', | ||
* 'whiteSpace': 'nowrap', | ||
* 'wordWrap': 'normal' | ||
* } | ||
*/ | ||
function ellipsis(width) { | ||
@@ -33,0 +8,0 @@ if (width === void 0) { |
@@ -22,44 +22,2 @@ "use strict"; | ||
/** | ||
* Returns a set of media queries that resizes a property (or set of properties) between a provided fromSize and toSize. Accepts optional minScreen (defaults to '320px') and maxScreen (defaults to '1200px') to constrain the interpolation. | ||
* | ||
* @example | ||
* // Styles as object usage | ||
* const styles = { | ||
* ...fluidRange( | ||
* { | ||
* prop: 'padding', | ||
* fromSize: '20px', | ||
* toSize: '100px', | ||
* }, | ||
* '400px', | ||
* '1000px', | ||
* ) | ||
* } | ||
* | ||
* // styled-components usage | ||
* const div = styled.div` | ||
* ${fluidRange( | ||
* { | ||
* prop: 'padding', | ||
* fromSize: '20px', | ||
* toSize: '100px', | ||
* }, | ||
* '400px', | ||
* '1000px', | ||
* )} | ||
* ` | ||
* | ||
* // CSS as JS Output | ||
* | ||
* div: { | ||
* "@media (min-width: 1000px)": Object { | ||
* "padding": "100px", | ||
* }, | ||
* "@media (min-width: 400px)": Object { | ||
* "padding": "calc(-33.33333333333334px + 13.333333333333334vw)", | ||
* }, | ||
* "padding": "20px", | ||
* } | ||
*/ | ||
function fluidRange(cssProp, minScreen, maxScreen) { | ||
@@ -107,3 +65,3 @@ if (minScreen === void 0) { | ||
return _extends({}, fallbacks, mediaQueries); | ||
return _extends({}, fallbacks, {}, mediaQueries); | ||
} else { | ||
@@ -110,0 +68,0 @@ var _ref2, _ref3, _ref4; |
@@ -134,5 +134,5 @@ "use strict"; | ||
fontFeatureSettings: fontFeatureSettings | ||
} // Removes undefined fields for cleaner css object. | ||
} | ||
}; // Removes undefined fields for cleaner css object. | ||
}; | ||
return JSON.parse(JSON.stringify(fontFaceDeclaration)); | ||
@@ -139,0 +139,0 @@ } |
@@ -6,27 +6,2 @@ "use strict"; | ||
/** | ||
* CSS to hide text to show a background image in a SEO-friendly way. | ||
* | ||
* @example | ||
* // Styles as object usage | ||
* const styles = { | ||
* 'backgroundImage': 'url(logo.png)', | ||
* ...hideText(), | ||
* } | ||
* | ||
* // styled-components usage | ||
* const div = styled.div` | ||
* backgroundImage: url(logo.png); | ||
* ${hideText()}; | ||
* ` | ||
* | ||
* // CSS as JS Output | ||
* | ||
* 'div': { | ||
* 'backgroundImage': 'url(logo.png)', | ||
* 'textIndent': '101%', | ||
* 'overflow': 'hidden', | ||
* 'whiteSpace': 'nowrap', | ||
* } | ||
*/ | ||
function hideText() { | ||
@@ -33,0 +8,0 @@ return { |
@@ -6,32 +6,2 @@ "use strict"; | ||
/** | ||
* CSS to hide content visually but remain accessible to screen readers. | ||
* from [HTML5 Boilerplate](https://github.com/h5bp/html5-boilerplate/blob/9a176f57af1cfe8ec70300da4621fb9b07e5fa31/src/css/main.css#L121) | ||
* | ||
* @example | ||
* // Styles as object usage | ||
* const styles = { | ||
* ...hideVisually(), | ||
* } | ||
* | ||
* // styled-components usage | ||
* const div = styled.div` | ||
* ${hideVisually()}; | ||
* ` | ||
* | ||
* // CSS as JS Output | ||
* | ||
* 'div': { | ||
* 'border': '0', | ||
* 'clip': 'rect(0 0 0 0)', | ||
* 'clipPath': 'inset(50%)', | ||
* 'height': '1px', | ||
* 'margin': '-1px', | ||
* 'overflow': 'hidden', | ||
* 'padding': '0', | ||
* 'position': 'absolute', | ||
* 'whiteSpace': 'nowrap', | ||
* 'width': '1px', | ||
* } | ||
*/ | ||
function hideVisually() { | ||
@@ -38,0 +8,0 @@ return { |
@@ -32,31 +32,2 @@ "use strict"; | ||
/** | ||
* CSS for declaring a linear gradient, including a fallback background-color. The fallback is either the first color-stop or an explicitly passed fallback color. | ||
* | ||
* @example | ||
* // Styles as object usage | ||
* const styles = { | ||
* ...linearGradient({ | ||
colorStops: ['#00FFFF 0%', 'rgba(0, 0, 255, 0) 50%', '#0000FF 95%'], | ||
toDirection: 'to top right', | ||
fallback: '#FFF', | ||
}) | ||
* } | ||
* | ||
* // styled-components usage | ||
* const div = styled.div` | ||
* ${linearGradient({ | ||
colorStops: ['#00FFFF 0%', 'rgba(0, 0, 255, 0) 50%', '#0000FF 95%'], | ||
toDirection: 'to top right', | ||
fallback: '#FFF', | ||
})} | ||
*` | ||
* | ||
* // CSS as JS Output | ||
* | ||
* div: { | ||
* 'backgroundColor': '#FFF', | ||
* 'backgroundImage': 'linear-gradient(to top right, #00FFFF 0%, rgba(0, 0, 255, 0) 50%, #0000FF 95%)', | ||
* } | ||
*/ | ||
function linearGradient(_ref) { | ||
@@ -63,0 +34,0 @@ var colorStops = _ref.colorStops, |
@@ -6,21 +6,2 @@ "use strict"; | ||
/** | ||
* CSS to normalize abnormalities across browsers (normalize.css v8.0.0 | MIT License | github.com/necolas/normalize.css) | ||
* | ||
* @example | ||
* // Styles as object usage | ||
* const styles = { | ||
* ...normalize(), | ||
* } | ||
* | ||
* // styled-components usage | ||
* const GlobalStyle = createGlobalStyle`${normalize()}` | ||
* | ||
* // CSS as JS Output | ||
* | ||
* html { | ||
* lineHeight: 1.15, | ||
* textSizeAdjust: 100%, | ||
* } ... | ||
*/ | ||
function normalize() { | ||
@@ -27,0 +8,0 @@ var _ref; |
@@ -32,33 +32,2 @@ "use strict"; | ||
/** | ||
* CSS for declaring a radial gradient, including a fallback background-color. The fallback is either the first color-stop or an explicitly passed fallback color. | ||
* | ||
* @example | ||
* // Styles as object usage | ||
* const styles = { | ||
* ...radialGradient({ | ||
* colorStops: ['#00FFFF 0%', 'rgba(0, 0, 255, 0) 50%', '#0000FF 95%'], | ||
* extent: 'farthest-corner at 45px 45px', | ||
* position: 'center', | ||
* shape: 'ellipse', | ||
* }) | ||
* } | ||
* | ||
* // styled-components usage | ||
* const div = styled.div` | ||
* ${radialGradient({ | ||
* colorStops: ['#00FFFF 0%', 'rgba(0, 0, 255, 0) 50%', '#0000FF 95%'], | ||
* extent: 'farthest-corner at 45px 45px', | ||
* position: 'center', | ||
* shape: 'ellipse', | ||
* })} | ||
*` | ||
* | ||
* // CSS as JS Output | ||
* | ||
* div: { | ||
* 'backgroundColor': '#00FFFF', | ||
* 'backgroundImage': 'radial-gradient(center ellipse farthest-corner at 45px 45px, #00FFFF 0%, rgba(0, 0, 255, 0) 50%, #0000FF 95%)', | ||
* } | ||
*/ | ||
function radialGradient(_ref) { | ||
@@ -65,0 +34,0 @@ var colorStops = _ref.colorStops, |
@@ -22,30 +22,2 @@ "use strict"; | ||
/** | ||
* A helper to generate a retina background image and non-retina | ||
* background image. The retina background image will output to a HiDPI media query. The mixin uses | ||
* a _2x.png filename suffix by default. | ||
* | ||
* @example | ||
* // Styles as object usage | ||
* const styles = { | ||
* ...retinaImage('my-img') | ||
* } | ||
* | ||
* // styled-components usage | ||
* const div = styled.div` | ||
* ${retinaImage('my-img')} | ||
* ` | ||
* | ||
* // CSS as JS Output | ||
* div { | ||
* backgroundImage: 'url(my-img.png)', | ||
* '@media only screen and (-webkit-min-device-pixel-ratio: 1.3), | ||
* only screen and (min--moz-device-pixel-ratio: 1.3), | ||
* only screen and (-o-min-device-pixel-ratio: 1.3/1), | ||
* only screen and (min-resolution: 144dpi), | ||
* only screen and (min-resolution: 1.5dppx)': { | ||
* backgroundImage: 'url(my-img_2x.png)', | ||
* } | ||
* } | ||
*/ | ||
function retinaImage(filename, backgroundSize, extension, retinaFilename, retinaSuffix) { | ||
@@ -52,0 +24,0 @@ var _ref; |
@@ -5,4 +5,2 @@ "use strict"; | ||
exports["default"] = timingFunctions; | ||
/* eslint-disable key-spacing */ | ||
var functionsMap = { | ||
@@ -33,5 +31,4 @@ easeInBack: 'cubic-bezier(0.600, -0.280, 0.735, 0.045)', | ||
easeInOutSine: 'cubic-bezier(0.445, 0.050, 0.550, 0.950)' | ||
/* eslint-enable key-spacing */ | ||
}; | ||
/* eslint-enable key-spacing */ | ||
@@ -38,0 +35,0 @@ function getTimingFunction(functionName) { |
@@ -6,24 +6,2 @@ "use strict"; | ||
/** | ||
* Provides an easy way to change the `wordWrap` property. | ||
* | ||
* @example | ||
* // Styles as object usage | ||
* const styles = { | ||
* ...wordWrap('break-word') | ||
* } | ||
* | ||
* // styled-components usage | ||
* const div = styled.div` | ||
* ${wordWrap('break-word')} | ||
* ` | ||
* | ||
* // CSS as JS Output | ||
* | ||
* const styles = { | ||
* overflowWrap: 'break-word', | ||
* wordWrap: 'break-word', | ||
* wordBreak: 'break-all', | ||
* } | ||
*/ | ||
function wordWrap(wrap) { | ||
@@ -30,0 +8,0 @@ if (wrap === void 0) { |
@@ -14,38 +14,2 @@ "use strict"; | ||
/** | ||
* Shorthand for easily setting the animation property. Allows either multiple arrays with animations | ||
* or a single animation spread over the arguments. | ||
* @example | ||
* // Styles as object usage | ||
* const styles = { | ||
* ...animation(['rotate', '1s', 'ease-in-out'], ['colorchange', '2s']) | ||
* } | ||
* | ||
* // styled-components usage | ||
* const div = styled.div` | ||
* ${animation(['rotate', '1s', 'ease-in-out'], ['colorchange', '2s'])} | ||
* ` | ||
* | ||
* // CSS as JS Output | ||
* | ||
* div { | ||
* 'animation': 'rotate 1s ease-in-out, colorchange 2s' | ||
* } | ||
* @example | ||
* // Styles as object usage | ||
* const styles = { | ||
* ...animation('rotate', '1s', 'ease-in-out') | ||
* } | ||
* | ||
* // styled-components usage | ||
* const div = styled.div` | ||
* ${animation('rotate', '1s', 'ease-in-out')} | ||
* ` | ||
* | ||
* // CSS as JS Output | ||
* | ||
* div { | ||
* 'animation': 'rotate 1s ease-in-out' | ||
* } | ||
*/ | ||
function animation() { | ||
@@ -52,0 +16,0 @@ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { |
@@ -6,21 +6,2 @@ "use strict"; | ||
/** | ||
* Shorthand that accepts any number of backgroundImage values as parameters for creating a single background statement. | ||
* @example | ||
* // Styles as object usage | ||
* const styles = { | ||
* ...backgroundImages('url("/image/background.jpg")', 'linear-gradient(red, green)') | ||
* } | ||
* | ||
* // styled-components usage | ||
* const div = styled.div` | ||
* ${backgroundImages('url("/image/background.jpg")', 'linear-gradient(red, green)')} | ||
* ` | ||
* | ||
* // CSS as JS Output | ||
* | ||
* div { | ||
* 'backgroundImage': 'url("/image/background.jpg"), linear-gradient(red, green)' | ||
* } | ||
*/ | ||
function backgroundImages() { | ||
@@ -27,0 +8,0 @@ for (var _len = arguments.length, properties = new Array(_len), _key = 0; _key < _len; _key++) { |
@@ -6,21 +6,2 @@ "use strict"; | ||
/** | ||
* Shorthand that accepts any number of background values as parameters for creating a single background statement. | ||
* @example | ||
* // Styles as object usage | ||
* const styles = { | ||
* ...backgrounds('url("/image/background.jpg")', 'linear-gradient(red, green)', 'center no-repeat') | ||
* } | ||
* | ||
* // styled-components usage | ||
* const div = styled.div` | ||
* ${backgrounds('url("/image/background.jpg")', 'linear-gradient(red, green)', 'center no-repeat')} | ||
* ` | ||
* | ||
* // CSS as JS Output | ||
* | ||
* div { | ||
* 'background': 'url("/image/background.jpg"), linear-gradient(red, green), center no-repeat' | ||
* } | ||
*/ | ||
function backgrounds() { | ||
@@ -27,0 +8,0 @@ for (var _len = arguments.length, properties = new Array(_len), _key = 0; _key < _len; _key++) { |
@@ -14,24 +14,2 @@ "use strict"; | ||
/** | ||
* Shorthand that accepts up to four values, including null to skip a value, and maps them to their respective directions. | ||
* @example | ||
* // Styles as object usage | ||
* const styles = { | ||
* ...borderColor('red', 'green', 'blue', 'yellow') | ||
* } | ||
* | ||
* // styled-components usage | ||
* const div = styled.div` | ||
* ${borderColor('red', 'green', 'blue', 'yellow')} | ||
* ` | ||
* | ||
* // CSS as JS Output | ||
* | ||
* div { | ||
* 'borderTopColor': 'red', | ||
* 'borderRightColor': 'green', | ||
* 'borderBottomColor': 'blue', | ||
* 'borderLeftColor': 'yellow' | ||
* } | ||
*/ | ||
function borderColor() { | ||
@@ -38,0 +16,0 @@ for (var _len = arguments.length, values = new Array(_len), _key = 0; _key < _len; _key++) { |
@@ -20,22 +20,2 @@ "use strict"; | ||
/** | ||
* Shorthand that accepts a value for side and a value for radius and applies the radius value to both corners of the side. | ||
* @example | ||
* // Styles as object usage | ||
* const styles = { | ||
* ...borderRadius('top', '5px') | ||
* } | ||
* | ||
* // styled-components usage | ||
* const div = styled.div` | ||
* ${borderRadius('top', '5px')} | ||
* ` | ||
* | ||
* // CSS as JS Output | ||
* | ||
* div { | ||
* 'borderTopRightRadius': '5px', | ||
* 'borderTopLeftRadius': '5px', | ||
* } | ||
*/ | ||
function borderRadius(side, radius) { | ||
@@ -42,0 +22,0 @@ var uppercaseSide = (0, _capitalizeString["default"])(side); |
@@ -14,24 +14,2 @@ "use strict"; | ||
/** | ||
* Shorthand that accepts up to four values, including null to skip a value, and maps them to their respective directions. | ||
* @example | ||
* // Styles as object usage | ||
* const styles = { | ||
* ...borderStyle('solid', 'dashed', 'dotted', 'double') | ||
* } | ||
* | ||
* // styled-components usage | ||
* const div = styled.div` | ||
* ${borderStyle('solid', 'dashed', 'dotted', 'double')} | ||
* ` | ||
* | ||
* // CSS as JS Output | ||
* | ||
* div { | ||
* 'borderTopStyle': 'solid', | ||
* 'borderRightStyle': 'dashed', | ||
* 'borderBottomStyle': 'dotted', | ||
* 'borderLeftStyle': 'double' | ||
* } | ||
*/ | ||
function borderStyle() { | ||
@@ -38,0 +16,0 @@ for (var _len = arguments.length, values = new Array(_len), _key = 0; _key < _len; _key++) { |
@@ -14,24 +14,2 @@ "use strict"; | ||
/** | ||
* Shorthand that accepts up to four values, including null to skip a value, and maps them to their respective directions. | ||
* @example | ||
* // Styles as object usage | ||
* const styles = { | ||
* ...borderWidth('12px', '24px', '36px', '48px') | ||
* } | ||
* | ||
* // styled-components usage | ||
* const div = styled.div` | ||
* ${borderWidth('12px', '24px', '36px', '48px')} | ||
* ` | ||
* | ||
* // CSS as JS Output | ||
* | ||
* div { | ||
* 'borderTopWidth': '12px', | ||
* 'borderRightWidth': '24px', | ||
* 'borderBottomWidth': '36px', | ||
* 'borderLeftWidth': '48px' | ||
* } | ||
*/ | ||
function borderWidth() { | ||
@@ -38,0 +16,0 @@ for (var _len = arguments.length, values = new Array(_len), _key = 0; _key < _len; _key++) { |
@@ -14,24 +14,2 @@ "use strict"; | ||
/** | ||
* Shorthand that accepts up to four values, including null to skip a value, and maps them to their respective directions. | ||
* @example | ||
* // Styles as object usage | ||
* const styles = { | ||
* ...margin('12px', '24px', '36px', '48px') | ||
* } | ||
* | ||
* // styled-components usage | ||
* const div = styled.div` | ||
* ${margin('12px', '24px', '36px', '48px')} | ||
* ` | ||
* | ||
* // CSS as JS Output | ||
* | ||
* div { | ||
* 'marginTop': '12px', | ||
* 'marginRight': '24px', | ||
* 'marginBottom': '36px', | ||
* 'marginLeft': '48px' | ||
* } | ||
*/ | ||
function margin() { | ||
@@ -38,0 +16,0 @@ for (var _len = arguments.length, values = new Array(_len), _key = 0; _key < _len; _key++) { |
@@ -14,24 +14,2 @@ "use strict"; | ||
/** | ||
* Shorthand that accepts up to four values, including null to skip a value, and maps them to their respective directions. | ||
* @example | ||
* // Styles as object usage | ||
* const styles = { | ||
* ...padding('12px', '24px', '36px', '48px') | ||
* } | ||
* | ||
* // styled-components usage | ||
* const div = styled.div` | ||
* ${padding('12px', '24px', '36px', '48px')} | ||
* ` | ||
* | ||
* // CSS as JS Output | ||
* | ||
* div { | ||
* 'paddingTop': '12px', | ||
* 'paddingRight': '24px', | ||
* 'paddingBottom': '36px', | ||
* 'paddingLeft': '48px' | ||
* } | ||
*/ | ||
function padding() { | ||
@@ -38,0 +16,0 @@ for (var _len = arguments.length, values = new Array(_len), _key = 0; _key < _len; _key++) { |
@@ -6,22 +6,2 @@ "use strict"; | ||
/** | ||
* Shorthand to set the height and width properties in a single statement. | ||
* @example | ||
* // Styles as object usage | ||
* const styles = { | ||
* ...size('300px', '250px') | ||
* } | ||
* | ||
* // styled-components usage | ||
* const div = styled.div` | ||
* ${size('300px', '250px')} | ||
* ` | ||
* | ||
* // CSS as JS Output | ||
* | ||
* div { | ||
* 'height': '300px', | ||
* 'width': '250px', | ||
* } | ||
*/ | ||
function size(height, width) { | ||
@@ -28,0 +8,0 @@ if (width === void 0) { |
{ | ||
"name": "polished", | ||
"version": "3.4.1", | ||
"version": "3.4.2", | ||
"description": "A lightweight toolset for writing styles in Javascript.", | ||
@@ -67,13 +67,13 @@ "license": "MIT", | ||
"dependencies": { | ||
"@babel/runtime": "^7.4.5" | ||
"@babel/runtime": "^7.6.3" | ||
}, | ||
"devDependencies": { | ||
"@babel/cli": "^7.4.4", | ||
"@babel/core": "^7.4.5", | ||
"@babel/plugin-transform-runtime": "^7.4.4", | ||
"@babel/polyfill": "^7.4.4", | ||
"@babel/preset-env": "^7.4.5", | ||
"@babel/cli": "^7.6.4", | ||
"@babel/core": "^7.6.4", | ||
"@babel/plugin-transform-runtime": "^7.6.2", | ||
"@babel/polyfill": "^7.6.0", | ||
"@babel/preset-env": "^7.6.3", | ||
"@babel/preset-flow": "^7.0.0", | ||
"babel-eslint": "^10.0.1", | ||
"babel-jest": "^24.8.0", | ||
"babel-eslint": "^10.0.3", | ||
"babel-jest": "^24.9.0", | ||
"babel-loader": "^8.0.6", | ||
@@ -84,15 +84,15 @@ "babel-plugin-add-module-exports": "^1.0.2", | ||
"concat-stream": "^2.0.0", | ||
"cross-env": "^5.2.0", | ||
"cz-conventional-changelog": "^2.1.0", | ||
"cross-env": "^6.0.3", | ||
"cz-conventional-changelog": "^3.0.2", | ||
"documentation": "9.3.1", | ||
"eslint": "^5.16.0", | ||
"eslint-config-airbnb-base": "^13.1.0", | ||
"eslint-plugin-import": "^2.17.3", | ||
"flow-bin": "^0.101.0", | ||
"flow-copy-source": "^2.0.6", | ||
"eslint": "^6.6.0", | ||
"eslint-config-airbnb-base": "^14.0.0", | ||
"eslint-plugin-import": "^2.18.2", | ||
"flow-bin": "^0.110.1", | ||
"flow-copy-source": "^2.0.8", | ||
"flow-coverage-report": "^0.6.1", | ||
"husky": "^2.4.1", | ||
"jest": "^24.8.0", | ||
"lint-staged": "^8.2.1", | ||
"lodash": "^4.17.11", | ||
"husky": "^3.0.9", | ||
"jest": "^24.9.0", | ||
"lint-staged": "^9.4.2", | ||
"lodash": "^4.17.15", | ||
"npm-watch": "^0.6.0", | ||
@@ -102,11 +102,11 @@ "prettier": "^1.18.2", | ||
"ramda": "^0.26.1", | ||
"rollup": "^1.15.5", | ||
"rollup-plugin-babel": "^4.3.2", | ||
"rollup-plugin-node-resolve": "^5.0.2", | ||
"rollup": "^1.26.0", | ||
"rollup-plugin-babel": "^4.3.3", | ||
"rollup-plugin-node-resolve": "^5.2.0", | ||
"rollup-plugin-replace": "^2.2.0", | ||
"rollup-plugin-uglify": "^6.0.2", | ||
"semantic-release": "^15.13.16", | ||
"rollup-plugin-uglify": "^6.0.3", | ||
"semantic-release": "^15.13.28", | ||
"shx": "^0.3.2", | ||
"tsgen": "1.3.0", | ||
"typescript": "3.5.2", | ||
"typescript": "3.6.4", | ||
"validate-commit-msg": "^2.14.0", | ||
@@ -113,0 +113,0 @@ "vinyl": "^2.2.0", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
311
2549292
15716
Updated@babel/runtime@^7.6.3