Comparing version 1.8.0 to 1.8.1
@@ -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.polished={})}(this,function(e){"use strict";function r(e){return e.charAt(0).toUpperCase()+e.slice(1)}function t(e,t){if(!e)return t.toLowerCase();var n=e.split("-");if(n.length>1)return n.splice(1,0,t),n.reduce(function(e,t){return""+e+r(t)});var a=e.replace(/([a-z])([A-Z])/g,"$1"+t+"$2");return e===a?""+e+t:a}function n(e,r){for(var n={},a=0;a<r.length;a+=1)r[a]&&(n[t(e,B[a])]=r[a]);return n}function a(e){for(var r=arguments.length,t=Array(r>1?r-1:0),a=1;a<r;a++)t[a-1]=arguments[a];var o=t[0],i=t[1],u=void 0===i?o:i,f=t[2],l=void 0===f?o:f,s=t[3];return n(e,[o,u,l,void 0===s?u:s])}function o(e){var r=parseFloat(e);return isNaN(r)?e:r}function i(e,r){return r.map(function(r){return'url("'+e+"."+r+'")'}).join(", ")}function u(e){return e.map(function(e){return'local("'+e+'")'}).join(", ")}function f(e,r,t){var n=[];return r&&n.push(u(r)),e&&n.push(i(e,t)),n.join(", ")}function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1.3;return"\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 s(e,r){var t=J({},e);return Object.keys(r).forEach(function(e){t[e]?t[e]=J({},t[e],r[e]):t[e]=J({},r[e])}),t}function c(e){return e[0].split(" ")[0]}function d(e){for(var r="",t=0;t<e.length;t+=1)r+=e[t],3===t&&(arguments.length<=t+1?void 0:arguments[t+1])&&((arguments.length<=1?void 0:arguments[1])||(arguments.length<=2?void 0:arguments[2])||(arguments.length<=3?void 0:arguments[3]))?(r=r.slice(0,-1),r+=", "+(arguments.length<=t+1?void 0:arguments[t+1])):3!==t||arguments.length<=t+1||!arguments[t+1]||(arguments.length<=1?void 0:arguments[1])||(arguments.length<=2?void 0:arguments[2])||(arguments.length<=3?void 0:arguments[3])?(arguments.length<=t+1?void 0:arguments[t+1])&&(r+=(arguments.length<=t+1?void 0:arguments[t+1])+" "):r+=""+(arguments.length<=t+1?void 0:arguments[t+1]);return r.trim()}function p(e){return Math.round(255*e)}function h(e,r,t){return p(e)+","+p(r)+","+p(t)}function b(e,r,t){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:h;if(0===r)return n(t,t,t);var a=e%360/60,o=(1-Math.abs(2*t-1))*r,i=o*(1-Math.abs(a%2-1)),u=0,f=0,l=0;a>=0&&a<1?(u=o,f=i):a>=1&&a<2?(u=i,f=o):a>=2&&a<3?(f=o,l=i):a>=3&&a<4?(f=i,l=o):a>=4&&a<5?(u=i,l=o):a>=5&&a<6&&(u=o,l=i);var s=t-o/2;return n(u+s,f+s,l+s)}function g(e){if("string"!=typeof e)return e;var r=e.toLowerCase();return re[r]?"#"+re[r]:e}function m(e){if("string"!=typeof e)throw new Error("Passed an incorrect argument to a color function, please pass a string representation of a color.");var r=g(e);if(r.match(te))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(ne))return{red:parseInt(""+r[1]+r[1],16),green:parseInt(""+r[2]+r[2],16),blue:parseInt(""+r[3]+r[3],16)};var t=ae.exec(r);if(t)return{red:parseInt(""+t[1],10),green:parseInt(""+t[2],10),blue:parseInt(""+t[3],10)};var n=oe.exec(r);if(n)return{red:parseInt(""+n[1],10),green:parseInt(""+n[2],10),blue:parseInt(""+n[3],10),alpha:parseFloat(""+n[4])};var a=ie.exec(r);if(a){var o="rgb("+b(parseInt(""+a[1],10),parseInt(""+a[2],10)/100,parseInt(""+a[3],10)/100)+")",i=ae.exec(o);return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10)}}var u=ue.exec(r);if(u){var f="rgb("+b(parseInt(""+u[1],10),parseInt(""+u[2],10)/100,parseInt(""+u[3],10)/100)+")",l=ae.exec(f);return{red:parseInt(""+l[1],10),green:parseInt(""+l[2],10),blue:parseInt(""+l[3],10),alpha:parseFloat(""+u[4])}}throw new Error("Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.")}function y(e){var r=e.red/255,t=e.green/255,n=e.blue/255,a=Math.max(r,t,n),o=Math.min(r,t,n),i=(a+o)/2;if(a===o)return void 0!==e.alpha?{hue:0,saturation:0,lightness:i,alpha:e.alpha}:{hue:0,saturation:0,lightness:i};var u=void 0,f=a-o,l=i>.5?f/(2-a-o):f/(a+o);switch(a){case r:u=(t-n)/f+(t<n?6:0);break;case t:u=(n-r)/f+2;break;default:u=(r-t)/f+4}return u*=60,void 0!==e.alpha?{hue:u,saturation:l,lightness:i,alpha:e.alpha}:{hue:u,saturation:l,lightness:i}}function v(e){return y(m(e))}function w(e){var r=e.toString(16);return 1===r.length?"0"+r:r}function x(e,r,t){if("number"==typeof e&&"number"==typeof r&&"number"==typeof t)return fe("#"+w(e)+w(r)+w(t));if("object"===(void 0===e?"undefined":_(e))&&void 0===r&&void 0===t)return fe("#"+w(e.red)+w(e.green)+w(e.blue));throw new Error("Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }).")}function k(e,r,t,n){if("string"==typeof e&&"number"==typeof r){var a=m(e);return"rgba("+a.red+","+a.green+","+a.blue+","+r+")"}if("number"==typeof e&&"number"==typeof r&&"number"==typeof t&&"number"==typeof n)return n>=1?x(e,r,t):"rgba("+e+","+r+","+t+","+n+")";if("object"===(void 0===e?"undefined":_(e))&&void 0===r&&void 0===t&&void 0===n)return e.alpha>=1?x(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new Error("Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }).")}function I(e){return w(Math.round(255*e))}function E(e,r,t){return fe("#"+I(e)+I(r)+I(t))}function j(e,r,t){return b(e,r,t,E)}function S(e,r,t){if("number"==typeof e&&"number"==typeof r&&"number"==typeof t)return j(e,r,t);if("object"===(void 0===e?"undefined":_(e))&&void 0===r&&void 0===t)return j(e.hue,e.saturation,e.lightness);throw new Error("Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }).")}function z(e,r,t,n){if("number"==typeof e&&"number"==typeof r&&"number"==typeof t&&"number"==typeof n)return n>=1?j(e,r,t):"rgba("+b(e,r,t)+","+n+")";if("object"===(void 0===e?"undefined":_(e))&&void 0===r&&void 0===t&&void 0===n)return e.alpha>=1?j(e.hue,e.saturation,e.lightness):"rgba("+b(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new Error("Passed invalid arguments to hsla, please pass multiple numbers e.g. hsl(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }).")}function A(e){if("object"!==(void 0===e?"undefined":_(e)))throw new Error(pe);if(se(e))return k(e);if(le(e))return x(e);if(de(e))return z(e);if(ce(e))return S(e);throw new Error(pe)}function O(e,r,t){return function(){var n=t.concat(Array.prototype.slice.call(arguments));return n.length>=r?e.apply(this,n):O(e,r,n)}}function F(e){return O(e,e.length,[])}function P(e,r,t){return Math.max(e,Math.min(r,t))}function C(e){var r=m(e),t=Object.keys(r).map(function(e){var t=r[e]/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}),n=U(t,3);return.2126*n[0]+.7152*n[1]+.0722*n[2]}function R(e,r){return e(r?":"+r:"")}function T(e,r,t){if(!r)throw new Error("You must provide a template to this method.");if(0===e.length)return R(r,null);for(var n=[],a=0;a<e.length;a+=1){if(t&&t.indexOf(e[a])<0)throw new Error("You passed an unsupported selector state to this method.");n.push(R(r,e[a]))}return n=n.join(",")}function M(e){return"button"+e+',\n input[type="button"]'+e+',\n input[type="reset"]'+e+',\n input[type="submit"]'+e}function q(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}var W,Q,B=["Top","Right","Bottom","Left"],L=function(e,r){return e.substr(-r.length)===r},N=function(e){return function(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"16px",n=r,a=t;if("string"==typeof r){if(!L(r,"px"))throw new Error('Expected a string ending in "px" or a number passed as the first argument to '+e+'(), got "'+r+'" instead.');n=o(r)}if("string"==typeof t){if(!L(t,"px"))throw new Error('Expected a string ending in "px" or a number passed as the second argument to '+e+'(), got "'+t+'" instead.');a=o(t)}if("string"==typeof n)throw new Error('Passed invalid pixel value ("'+r+'") to '+e+'(), please pass a value like "12px" or 12.');if("string"==typeof a)throw new Error('Passed invalid base value ("'+t+'") to '+e+'(), please pass a value like "12px" or 12.');return""+n/a+e}},$=N("em"),H={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},D=N("rem"),_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},G=function(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e},J=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},U=function(){function e(e,r){var t=[],n=!0,a=!1,o=void 0;try{for(var i,u=e[Symbol.iterator]();!(n=(i=u.next()).done)&&(t.push(i.value),!r||t.length!==r);n=!0);}catch(e){a=!0,o=e}finally{try{!n&&u.return&&u.return()}finally{if(a)throw o}}return t}return function(r,t){if(Array.isArray(r))return r;if(Symbol.iterator in Object(r))return e(r,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),V=W={html:{fontFamily:"sans-serif"},body:{margin:"0"}},Y=Q={html:{lineHeight:"1.15",textSizeAdjust:"100%"}},Z=function(e,r){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}(["radial-gradient(","","","",")"],["radial-gradient(","","","",")"]),K={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)"},X=function(e,r,t){switch(e){case"top":return"0 "+t/2+"px "+r+"px "+t/2+"px";case"left":return r/2+"px "+t+"px "+r/2+"px 0";case"bottom":return r+"px "+t/2+"px 0 "+t/2+"px";case"right":return r/2+"px 0 "+r/2+"px "+t+"px";default:throw new Error("Passed invalid argument to triangle, please pass correct poitingDirection e.g. 'right'.")}},ee={left:"Right",right:"Left",top:"Bottom",bottom:"Top"},re={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"},te=/^#[a-fA-F0-9]{6}$/,ne=/^#[a-fA-F0-9]{3}$/,ae=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/,oe=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/,ie=/^hsl\(\s*(\d{1,3})\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*\)$/,ue=/^hsla\(\s*(\d{1,3})\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/,fe=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},le=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||void 0===e.alpha)},se=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha},ce=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||void 0===e.alpha)},de=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha},pe="Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.",he=F(function(e,r){var t=v(r);return A(J({},t,{hue:(t.hue+e)%360}))}),be=F(function(e,r){var t=v(r);return A(J({},t,{lightness:P(0,1,t.lightness-e)}))}),ge=F(function(e,r){var t=v(r);return A(J({},t,{saturation:P(0,1,t.saturation-e)}))}),me=F(function(e,r){var t=v(r);return A(J({},t,{lightness:P(0,1,t.lightness+e)}))}),ye=F(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.5,r=arguments[1],t=arguments[2],n=m(r),a=J({},n,{alpha:"number"==typeof n.alpha?n.alpha:1}),o=m(t),i=J({},o,{alpha:"number"==typeof o.alpha?o.alpha:1}),u=a.alpha-i.alpha,f=2*e-1,l=((f*u==-1?f:f+u)/(1+f*u)+1)/2,s=1-l;return k({red:Math.floor(a.red*l+i.red*s),green:Math.floor(a.green*l+i.green*s),blue:Math.floor(a.blue*l+i.blue*s),alpha:a.alpha+(i.alpha-a.alpha)*(e/1)})}),ve=F(function(e,r){var t=m(r),n="number"==typeof t.alpha?t.alpha:1;return k(J({},t,{alpha:P(0,1,(100*n+100*e)/100)}))}),we=F(function(e){return C(e)>.179?"#000":"#fff"}),xe=F(function(e,r){var t=v(r);return A(J({},t,{saturation:P(0,1,t.saturation+e)}))}),ke=F(function(e,r){return A(J({},v(r),{hue:e}))}),Ie=F(function(e,r){return A(J({},v(r),{lightness:e}))}),Ee=F(function(e,r){return A(J({},v(r),{saturation:e}))}),je=F(function(e,r){if("number"!=typeof e||e>1||e<-1)throw new Error("Passed an incorrect argument to shade, please pass a percentage less than or equal to 1 and larger than or equal to -1.");if("string"!=typeof r)throw new Error("Passed an incorrect argument to a color function, please pass a string representation of a color.");return ye(e,r,"rgb(0, 0, 0)")}),Se=F(function(e,r){if("number"!=typeof e||e>1||e<-1)throw new Error("Passed an incorrect argument to tint, please pass a percentage less than or equal to 1 and larger than or equal to -1.");if("string"!=typeof r)throw new Error("Passed an incorrect argument to a color function, please pass a string representation of a color.");return ye(e,r,"rgb(255, 255, 255)")}),ze=F(function(e,r){var t=m(r),n="number"==typeof t.alpha?t.alpha:1;return k(J({},t,{alpha:P(0,1,(100*n-100*e)/100)}))}),Ae=[void 0,null,"active","focus","hover"],Oe=["absolute","fixed","relative","static","sticky"],Fe=[void 0,null,"active","focus","hover"];e.adjustHue=he,e.animation=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];var n=Array.isArray(r[0]);if(!n&&r.length>8)throw new Error("The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation");return{animation:r.map(function(e){if(n&&!Array.isArray(e)||!n&&Array.isArray(e))throw new Error("To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s')");if(Array.isArray(e)&&e.length>8)throw new Error("The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation");return Array.isArray(e)?e.join(" "):e}).join(", ")}},e.backgroundImages=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return{backgroundImage:r.join(", ")}},e.backgrounds=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return{background:r.join(", ")}},e.borderColor=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return a.apply(void 0,["borderColor"].concat(r))},e.borderRadius=function(e,t){var n=r(e);if(!t)throw new Error("borderRadius expects a radius value as a string or number as the second argument.");if("Top"===n||"Bottom"===n){var a;return a={},G(a,"border"+n+"RightRadius",t),G(a,"border"+n+"LeftRadius",t),a}if("Left"===n||"Right"===n){var o;return o={},G(o,"borderTop"+n+"Radius",t),G(o,"borderBottom"+n+"Radius",t),o}throw new Error('borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.')},e.borderStyle=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return a.apply(void 0,["borderStyle"].concat(r))},e.borderWidth=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return a.apply(void 0,["borderWidth"].concat(r))},e.buttons=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return T(r,M,Ae)},e.clearFix=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"&";return G({},e+"::after",{clear:"both",content:'""',display:"table"})},e.complement=function(e){var r=v(e);return A(J({},r,{hue:(r.hue+180)%360}))},e.darken=be,e.desaturate=ge,e.directionalProperty=a,e.ellipsis=function(){return{display:"inline-block",maxWidth:arguments.length>0&&void 0!==arguments[0]?arguments[0]:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",wordWrap:"normal"}},e.em=$,e.fontFace=function(e){var r=e.fontFamily,t=e.fontFilePath,n=e.fontStretch,a=e.fontStyle,o=e.fontVariant,i=e.fontWeight,u=e.fileFormats,l=void 0===u?["eot","woff2","woff","ttf","svg"]:u,s=e.localFonts,c=e.unicodeRange;if(!r)throw new Error("fontFace expects a name of a font-family.");if(!t&&!s)throw new Error("fontFace expects either the path to the font file(s) or a name of a local copy.");if(s&&!Array.isArray(s))throw new Error("fontFace expects localFonts to be an array.");if(!Array.isArray(l))throw new Error("fontFace expects fileFormats to be an array.");var d={"@font-face":{fontFamily:r,src:f(t,s,l),unicodeRange:c,fontStretch:n,fontStyle:a,fontVariant:o,fontWeight:i}};return JSON.parse(JSON.stringify(d))},e.getLuminance=C,e.grayscale=function(e){return A(J({},v(e),{saturation:0}))},e.invert=function(e){var r=m(e);return A(J({},r,{red:255-r.red,green:255-r.green,blue:255-r.blue}))},e.hideText=function(){return{textIndent:"101%",overflow:"hidden",whiteSpace:"nowrap"}},e.hiDPI=l,e.hsl=S,e.hsla=z,e.lighten=me,e.margin=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return a.apply(void 0,["margin"].concat(r))},e.mix=ye,e.modularScale=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"1em",t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"perfectFourth";if("number"!=typeof e)throw new Error("Please provide a number of steps to the modularScale helper.");if("string"==typeof t&&!H[t])throw new Error("Please pass a number or one of the predefined scales to the modularScale helper as the ratio.");var n="string"==typeof r?o(r):r,a="string"==typeof t?H[t]:t;if("string"==typeof n)throw new Error('Invalid value passed as base to modularScale, expected number or em string but got "'+r+'"');return n*Math.pow(a,e)+"em"},e.normalize=function(e){return e?Y:s(Y,V)},e.opacify=ve,e.padding=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return a.apply(void 0,["padding"].concat(r))},e.parseToHsl=v,e.parseToRgb=m,e.placeholder=function(e){var r,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"&";return r={},G(r,t+"::-webkit-input-placeholder",J({},e)),G(r,t+":-moz-placeholder",J({},e)),G(r,t+"::-moz-placeholder",J({},e)),G(r,t+":-ms-input-placeholder",J({},e)),r},e.position=function(e){for(var r=arguments.length,t=Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];if(Oe.indexOf(e)>=0)return J({position:e},a.apply(void 0,[""].concat(t)));var o=e;return a.apply(void 0,["",o].concat(t))},e.radialGradient=function(e){var r=e.colorStops,t=e.extent,n=e.fallback,a=e.position,o=e.shape;if(!r||r.length<2)throw new Error("radialGradient requries at least 2 color-stops to properly render.");return{backgroundColor:n||c(r),backgroundImage:d(Z,a,o,t,r.join(", "))}},e.readableColor=we,e.rem=D,e.retinaImage=function(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"png",n=arguments[3],a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"_2x";if(!e)throw new Error("Please supply a filename to retinaImage() as the first argument.");var o=t.replace(/^\./,""),i=n?n+"."+o:""+e+a+"."+o;return G({backgroundImage:"url("+e+"."+o+")"},l(),{backgroundImage:"url("+i+")",backgroundSize:r})},e.rgb=x,e.rgba=k,e.saturate=xe,e.selection=function(e){var r,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return r={},G(r,t+"::-moz-selection",J({},e)),G(r,t+"::selection",J({},e)),r},e.setHue=ke,e.setLightness=Ie,e.setSaturation=Ee,e.shade=je,e.size=function(e){return{height:e,width:arguments.length>1&&void 0!==arguments[1]?arguments[1]:e}},e.stripUnit=o,e.textInputs=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return T(r,q,Fe)},e.timingFunctions=function(e){return K[e]},e.tint=Se,e.toColorString=A,e.transitions=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return{transition:r.join(", ")}},e.transparentize=ze,e.triangle=function(e){var r=e.pointingDirection,t=e.height,n=e.width,a=e.foregroundColor,o=e.backgroundColor,i=void 0===o?"transparent":o,u=parseFloat(t),f=parseFloat(n);if(isNaN(u)||isNaN(f))throw new Error("Passed an invalid value to `height` or `width`. Please provide a pixel based unit");return G({borderColor:i,width:"0",height:"0",borderWidth:X(r,u,f),borderStyle:"solid"},"border"+ee[r]+"Color",a+" !important")},e.wordWrap=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"break-word";return{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.polished={})}(this,function(e){"use strict";function r(e){return e.charAt(0).toUpperCase()+e.slice(1)}function t(e,t){if(!e)return t.toLowerCase();var n=e.split("-");if(n.length>1)return n.splice(1,0,t),n.reduce(function(e,t){return""+e+r(t)});var a=e.replace(/([a-z])([A-Z])/g,"$1"+t+"$2");return e===a?""+e+t:a}function n(e,r){for(var n={},a=0;a<r.length;a+=1)(r[a]||0===r[a])&&(n[t(e,B[a])]=r[a]);return n}function a(e){for(var r=arguments.length,t=Array(r>1?r-1:0),a=1;a<r;a++)t[a-1]=arguments[a];var o=t[0],i=t[1],u=void 0===i?o:i,f=t[2],l=void 0===f?o:f,s=t[3];return n(e,[o,u,l,void 0===s?u:s])}function o(e){var r=parseFloat(e);return isNaN(r)?e:r}function i(e,r){return r.map(function(r){return'url("'+e+"."+r+'")'}).join(", ")}function u(e){return e.map(function(e){return'local("'+e+'")'}).join(", ")}function f(e,r,t){var n=[];return r&&n.push(u(r)),e&&n.push(i(e,t)),n.join(", ")}function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1.3;return"\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 s(e,r){var t=J({},e);return Object.keys(r).forEach(function(e){t[e]?t[e]=J({},t[e],r[e]):t[e]=J({},r[e])}),t}function c(e){return e[0].split(" ")[0]}function d(e){for(var r="",t=0;t<e.length;t+=1)r+=e[t],3===t&&(arguments.length<=t+1?void 0:arguments[t+1])&&((arguments.length<=1?void 0:arguments[1])||(arguments.length<=2?void 0:arguments[2])||(arguments.length<=3?void 0:arguments[3]))?(r=r.slice(0,-1),r+=", "+(arguments.length<=t+1?void 0:arguments[t+1])):3!==t||arguments.length<=t+1||!arguments[t+1]||(arguments.length<=1?void 0:arguments[1])||(arguments.length<=2?void 0:arguments[2])||(arguments.length<=3?void 0:arguments[3])?(arguments.length<=t+1?void 0:arguments[t+1])&&(r+=(arguments.length<=t+1?void 0:arguments[t+1])+" "):r+=""+(arguments.length<=t+1?void 0:arguments[t+1]);return r.trim()}function p(e){return Math.round(255*e)}function h(e,r,t){return p(e)+","+p(r)+","+p(t)}function b(e,r,t){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:h;if(0===r)return n(t,t,t);var a=e%360/60,o=(1-Math.abs(2*t-1))*r,i=o*(1-Math.abs(a%2-1)),u=0,f=0,l=0;a>=0&&a<1?(u=o,f=i):a>=1&&a<2?(u=i,f=o):a>=2&&a<3?(f=o,l=i):a>=3&&a<4?(f=i,l=o):a>=4&&a<5?(u=i,l=o):a>=5&&a<6&&(u=o,l=i);var s=t-o/2;return n(u+s,f+s,l+s)}function g(e){if("string"!=typeof e)return e;var r=e.toLowerCase();return re[r]?"#"+re[r]:e}function m(e){if("string"!=typeof e)throw new Error("Passed an incorrect argument to a color function, please pass a string representation of a color.");var r=g(e);if(r.match(te))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(ne))return{red:parseInt(""+r[1]+r[1],16),green:parseInt(""+r[2]+r[2],16),blue:parseInt(""+r[3]+r[3],16)};var t=ae.exec(r);if(t)return{red:parseInt(""+t[1],10),green:parseInt(""+t[2],10),blue:parseInt(""+t[3],10)};var n=oe.exec(r);if(n)return{red:parseInt(""+n[1],10),green:parseInt(""+n[2],10),blue:parseInt(""+n[3],10),alpha:parseFloat(""+n[4])};var a=ie.exec(r);if(a){var o="rgb("+b(parseInt(""+a[1],10),parseInt(""+a[2],10)/100,parseInt(""+a[3],10)/100)+")",i=ae.exec(o);return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10)}}var u=ue.exec(r);if(u){var f="rgb("+b(parseInt(""+u[1],10),parseInt(""+u[2],10)/100,parseInt(""+u[3],10)/100)+")",l=ae.exec(f);return{red:parseInt(""+l[1],10),green:parseInt(""+l[2],10),blue:parseInt(""+l[3],10),alpha:parseFloat(""+u[4])}}throw new Error("Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.")}function y(e){var r=e.red/255,t=e.green/255,n=e.blue/255,a=Math.max(r,t,n),o=Math.min(r,t,n),i=(a+o)/2;if(a===o)return void 0!==e.alpha?{hue:0,saturation:0,lightness:i,alpha:e.alpha}:{hue:0,saturation:0,lightness:i};var u=void 0,f=a-o,l=i>.5?f/(2-a-o):f/(a+o);switch(a){case r:u=(t-n)/f+(t<n?6:0);break;case t:u=(n-r)/f+2;break;default:u=(r-t)/f+4}return u*=60,void 0!==e.alpha?{hue:u,saturation:l,lightness:i,alpha:e.alpha}:{hue:u,saturation:l,lightness:i}}function v(e){return y(m(e))}function w(e){var r=e.toString(16);return 1===r.length?"0"+r:r}function x(e,r,t){if("number"==typeof e&&"number"==typeof r&&"number"==typeof t)return fe("#"+w(e)+w(r)+w(t));if("object"===(void 0===e?"undefined":_(e))&&void 0===r&&void 0===t)return fe("#"+w(e.red)+w(e.green)+w(e.blue));throw new Error("Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }).")}function k(e,r,t,n){if("string"==typeof e&&"number"==typeof r){var a=m(e);return"rgba("+a.red+","+a.green+","+a.blue+","+r+")"}if("number"==typeof e&&"number"==typeof r&&"number"==typeof t&&"number"==typeof n)return n>=1?x(e,r,t):"rgba("+e+","+r+","+t+","+n+")";if("object"===(void 0===e?"undefined":_(e))&&void 0===r&&void 0===t&&void 0===n)return e.alpha>=1?x(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new Error("Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }).")}function I(e){return w(Math.round(255*e))}function E(e,r,t){return fe("#"+I(e)+I(r)+I(t))}function j(e,r,t){return b(e,r,t,E)}function S(e,r,t){if("number"==typeof e&&"number"==typeof r&&"number"==typeof t)return j(e,r,t);if("object"===(void 0===e?"undefined":_(e))&&void 0===r&&void 0===t)return j(e.hue,e.saturation,e.lightness);throw new Error("Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }).")}function z(e,r,t,n){if("number"==typeof e&&"number"==typeof r&&"number"==typeof t&&"number"==typeof n)return n>=1?j(e,r,t):"rgba("+b(e,r,t)+","+n+")";if("object"===(void 0===e?"undefined":_(e))&&void 0===r&&void 0===t&&void 0===n)return e.alpha>=1?j(e.hue,e.saturation,e.lightness):"rgba("+b(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new Error("Passed invalid arguments to hsla, please pass multiple numbers e.g. hsl(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }).")}function A(e){if("object"!==(void 0===e?"undefined":_(e)))throw new Error(pe);if(se(e))return k(e);if(le(e))return x(e);if(de(e))return z(e);if(ce(e))return S(e);throw new Error(pe)}function O(e,r,t){return function(){var n=t.concat(Array.prototype.slice.call(arguments));return n.length>=r?e.apply(this,n):O(e,r,n)}}function F(e){return O(e,e.length,[])}function P(e,r,t){return Math.max(e,Math.min(r,t))}function C(e){var r=m(e),t=Object.keys(r).map(function(e){var t=r[e]/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}),n=U(t,3);return.2126*n[0]+.7152*n[1]+.0722*n[2]}function R(e,r){return e(r?":"+r:"")}function T(e,r,t){if(!r)throw new Error("You must provide a template to this method.");if(0===e.length)return R(r,null);for(var n=[],a=0;a<e.length;a+=1){if(t&&t.indexOf(e[a])<0)throw new Error("You passed an unsupported selector state to this method.");n.push(R(r,e[a]))}return n=n.join(",")}function M(e){return"button"+e+',\n input[type="button"]'+e+',\n input[type="reset"]'+e+',\n input[type="submit"]'+e}function q(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}var W,Q,B=["Top","Right","Bottom","Left"],L=function(e,r){return e.substr(-r.length)===r},N=function(e){return function(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"16px",n=r,a=t;if("string"==typeof r){if(!L(r,"px"))throw new Error('Expected a string ending in "px" or a number passed as the first argument to '+e+'(), got "'+r+'" instead.');n=o(r)}if("string"==typeof t){if(!L(t,"px"))throw new Error('Expected a string ending in "px" or a number passed as the second argument to '+e+'(), got "'+t+'" instead.');a=o(t)}if("string"==typeof n)throw new Error('Passed invalid pixel value ("'+r+'") to '+e+'(), please pass a value like "12px" or 12.');if("string"==typeof a)throw new Error('Passed invalid base value ("'+t+'") to '+e+'(), please pass a value like "12px" or 12.');return""+n/a+e}},$=N("em"),H={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},D=N("rem"),_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},G=function(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e},J=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},U=function(){function e(e,r){var t=[],n=!0,a=!1,o=void 0;try{for(var i,u=e[Symbol.iterator]();!(n=(i=u.next()).done)&&(t.push(i.value),!r||t.length!==r);n=!0);}catch(e){a=!0,o=e}finally{try{!n&&u.return&&u.return()}finally{if(a)throw o}}return t}return function(r,t){if(Array.isArray(r))return r;if(Symbol.iterator in Object(r))return e(r,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),V=W={html:{fontFamily:"sans-serif"},body:{margin:"0"}},Y=Q={html:{lineHeight:"1.15",textSizeAdjust:"100%"}},Z=function(e,r){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}(["radial-gradient(","","","",")"],["radial-gradient(","","","",")"]),K={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)"},X=function(e,r,t){switch(e){case"top":return"0 "+t/2+"px "+r+"px "+t/2+"px";case"left":return r/2+"px "+t+"px "+r/2+"px 0";case"bottom":return r+"px "+t/2+"px 0 "+t/2+"px";case"right":return r/2+"px 0 "+r/2+"px "+t+"px";default:throw new Error("Passed invalid argument to triangle, please pass correct poitingDirection e.g. 'right'.")}},ee={left:"Right",right:"Left",top:"Bottom",bottom:"Top"},re={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"},te=/^#[a-fA-F0-9]{6}$/,ne=/^#[a-fA-F0-9]{3}$/,ae=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/,oe=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/,ie=/^hsl\(\s*(\d{1,3})\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*\)$/,ue=/^hsla\(\s*(\d{1,3})\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/,fe=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},le=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||void 0===e.alpha)},se=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha},ce=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||void 0===e.alpha)},de=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha},pe="Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.",he=F(function(e,r){var t=v(r);return A(J({},t,{hue:(t.hue+e)%360}))}),be=F(function(e,r){var t=v(r);return A(J({},t,{lightness:P(0,1,t.lightness-e)}))}),ge=F(function(e,r){var t=v(r);return A(J({},t,{saturation:P(0,1,t.saturation-e)}))}),me=F(function(e,r){var t=v(r);return A(J({},t,{lightness:P(0,1,t.lightness+e)}))}),ye=F(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.5,r=arguments[1],t=arguments[2],n=m(r),a=J({},n,{alpha:"number"==typeof n.alpha?n.alpha:1}),o=m(t),i=J({},o,{alpha:"number"==typeof o.alpha?o.alpha:1}),u=a.alpha-i.alpha,f=2*e-1,l=((f*u==-1?f:f+u)/(1+f*u)+1)/2,s=1-l;return k({red:Math.floor(a.red*l+i.red*s),green:Math.floor(a.green*l+i.green*s),blue:Math.floor(a.blue*l+i.blue*s),alpha:a.alpha+(i.alpha-a.alpha)*(e/1)})}),ve=F(function(e,r){var t=m(r),n="number"==typeof t.alpha?t.alpha:1;return k(J({},t,{alpha:P(0,1,(100*n+100*e)/100)}))}),we=F(function(e){return C(e)>.179?"#000":"#fff"}),xe=F(function(e,r){var t=v(r);return A(J({},t,{saturation:P(0,1,t.saturation+e)}))}),ke=F(function(e,r){return A(J({},v(r),{hue:e}))}),Ie=F(function(e,r){return A(J({},v(r),{lightness:e}))}),Ee=F(function(e,r){return A(J({},v(r),{saturation:e}))}),je=F(function(e,r){if("number"!=typeof e||e>1||e<-1)throw new Error("Passed an incorrect argument to shade, please pass a percentage less than or equal to 1 and larger than or equal to -1.");if("string"!=typeof r)throw new Error("Passed an incorrect argument to a color function, please pass a string representation of a color.");return ye(e,r,"rgb(0, 0, 0)")}),Se=F(function(e,r){if("number"!=typeof e||e>1||e<-1)throw new Error("Passed an incorrect argument to tint, please pass a percentage less than or equal to 1 and larger than or equal to -1.");if("string"!=typeof r)throw new Error("Passed an incorrect argument to a color function, please pass a string representation of a color.");return ye(e,r,"rgb(255, 255, 255)")}),ze=F(function(e,r){var t=m(r),n="number"==typeof t.alpha?t.alpha:1;return k(J({},t,{alpha:P(0,1,(100*n-100*e)/100)}))}),Ae=[void 0,null,"active","focus","hover"],Oe=["absolute","fixed","relative","static","sticky"],Fe=[void 0,null,"active","focus","hover"];e.adjustHue=he,e.animation=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];var n=Array.isArray(r[0]);if(!n&&r.length>8)throw new Error("The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation");return{animation:r.map(function(e){if(n&&!Array.isArray(e)||!n&&Array.isArray(e))throw new Error("To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s')");if(Array.isArray(e)&&e.length>8)throw new Error("The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation");return Array.isArray(e)?e.join(" "):e}).join(", ")}},e.backgroundImages=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return{backgroundImage:r.join(", ")}},e.backgrounds=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return{background:r.join(", ")}},e.borderColor=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return a.apply(void 0,["borderColor"].concat(r))},e.borderRadius=function(e,t){var n=r(e);if(!t&&0!==t)throw new Error("borderRadius expects a radius value as a string or number as the second argument.");if("Top"===n||"Bottom"===n){var a;return a={},G(a,"border"+n+"RightRadius",t),G(a,"border"+n+"LeftRadius",t),a}if("Left"===n||"Right"===n){var o;return o={},G(o,"borderTop"+n+"Radius",t),G(o,"borderBottom"+n+"Radius",t),o}throw new Error('borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.')},e.borderStyle=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return a.apply(void 0,["borderStyle"].concat(r))},e.borderWidth=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return a.apply(void 0,["borderWidth"].concat(r))},e.buttons=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return T(r,M,Ae)},e.clearFix=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"&";return G({},e+"::after",{clear:"both",content:'""',display:"table"})},e.complement=function(e){var r=v(e);return A(J({},r,{hue:(r.hue+180)%360}))},e.darken=be,e.desaturate=ge,e.directionalProperty=a,e.ellipsis=function(){return{display:"inline-block",maxWidth:arguments.length>0&&void 0!==arguments[0]?arguments[0]:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",wordWrap:"normal"}},e.em=$,e.fontFace=function(e){var r=e.fontFamily,t=e.fontFilePath,n=e.fontStretch,a=e.fontStyle,o=e.fontVariant,i=e.fontWeight,u=e.fileFormats,l=void 0===u?["eot","woff2","woff","ttf","svg"]:u,s=e.localFonts,c=e.unicodeRange;if(!r)throw new Error("fontFace expects a name of a font-family.");if(!t&&!s)throw new Error("fontFace expects either the path to the font file(s) or a name of a local copy.");if(s&&!Array.isArray(s))throw new Error("fontFace expects localFonts to be an array.");if(!Array.isArray(l))throw new Error("fontFace expects fileFormats to be an array.");var d={"@font-face":{fontFamily:r,src:f(t,s,l),unicodeRange:c,fontStretch:n,fontStyle:a,fontVariant:o,fontWeight:i}};return JSON.parse(JSON.stringify(d))},e.getLuminance=C,e.grayscale=function(e){return A(J({},v(e),{saturation:0}))},e.invert=function(e){var r=m(e);return A(J({},r,{red:255-r.red,green:255-r.green,blue:255-r.blue}))},e.hideText=function(){return{textIndent:"101%",overflow:"hidden",whiteSpace:"nowrap"}},e.hiDPI=l,e.hsl=S,e.hsla=z,e.lighten=me,e.margin=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return a.apply(void 0,["margin"].concat(r))},e.mix=ye,e.modularScale=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"1em",t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"perfectFourth";if("number"!=typeof e)throw new Error("Please provide a number of steps to the modularScale helper.");if("string"==typeof t&&!H[t])throw new Error("Please pass a number or one of the predefined scales to the modularScale helper as the ratio.");var n="string"==typeof r?o(r):r,a="string"==typeof t?H[t]:t;if("string"==typeof n)throw new Error('Invalid value passed as base to modularScale, expected number or em string but got "'+r+'"');return n*Math.pow(a,e)+"em"},e.normalize=function(e){return e?Y:s(Y,V)},e.opacify=ve,e.padding=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return a.apply(void 0,["padding"].concat(r))},e.parseToHsl=v,e.parseToRgb=m,e.placeholder=function(e){var r,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"&";return r={},G(r,t+"::-webkit-input-placeholder",J({},e)),G(r,t+":-moz-placeholder",J({},e)),G(r,t+"::-moz-placeholder",J({},e)),G(r,t+":-ms-input-placeholder",J({},e)),r},e.position=function(e){for(var r=arguments.length,t=Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];if(Oe.indexOf(e)>=0)return J({position:e},a.apply(void 0,[""].concat(t)));var o=e;return a.apply(void 0,["",o].concat(t))},e.radialGradient=function(e){var r=e.colorStops,t=e.extent,n=e.fallback,a=e.position,o=e.shape;if(!r||r.length<2)throw new Error("radialGradient requries at least 2 color-stops to properly render.");return{backgroundColor:n||c(r),backgroundImage:d(Z,a,o,t,r.join(", "))}},e.readableColor=we,e.rem=D,e.retinaImage=function(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"png",n=arguments[3],a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"_2x";if(!e)throw new Error("Please supply a filename to retinaImage() as the first argument.");var o=t.replace(/^\./,""),i=n?n+"."+o:""+e+a+"."+o;return G({backgroundImage:"url("+e+"."+o+")"},l(),{backgroundImage:"url("+i+")",backgroundSize:r})},e.rgb=x,e.rgba=k,e.saturate=xe,e.selection=function(e){var r,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return r={},G(r,t+"::-moz-selection",J({},e)),G(r,t+"::selection",J({},e)),r},e.setHue=ke,e.setLightness=Ie,e.setSaturation=Ee,e.shade=je,e.size=function(e){return{height:e,width:arguments.length>1&&void 0!==arguments[1]?arguments[1]:e}},e.stripUnit=o,e.textInputs=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return T(r,q,Fe)},e.timingFunctions=function(e){return K[e]},e.tint=Se,e.toColorString=A,e.transitions=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return{transition:r.join(", ")}},e.transparentize=ze,e.triangle=function(e){var r=e.pointingDirection,t=e.height,n=e.width,a=e.foregroundColor,o=e.backgroundColor,i=void 0===o?"transparent":o,u=parseFloat(t),f=parseFloat(n);if(isNaN(u)||isNaN(f))throw new Error("Passed an invalid value to `height` or `width`. Please provide a pixel based unit");return G({borderColor:i,width:"0",height:"0",borderWidth:X(r,u,f),borderStyle:"solid"},"border"+ee[r]+"Color",a+" !important")},e.wordWrap=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"break-word";return{overflowWrap:e,wordWrap:e,wordBreak:"break-word"===e?"break-all":e}},Object.defineProperty(e,"__esModule",{value:!0})}); |
@@ -32,3 +32,3 @@ 'use strict'; | ||
for (var i = 0; i < valuesWithDefaults.length; i += 1) { | ||
if (valuesWithDefaults[i]) { | ||
if (valuesWithDefaults[i] || valuesWithDefaults[i] === 0) { | ||
styles[generateProperty(property, positionMap[i])] = valuesWithDefaults[i]; | ||
@@ -35,0 +35,0 @@ } |
@@ -38,3 +38,3 @@ 'use strict'; | ||
var uppercaseSide = (0, _capitalizeString2.default)(side); | ||
if (!radius) { | ||
if (!radius && radius !== 0) { | ||
throw new Error('borderRadius expects a radius value as a string or number as the second argument.'); | ||
@@ -41,0 +41,0 @@ } |
124
package.json
@@ -1,123 +0,1 @@ | ||
{ | ||
"name": "polished", | ||
"description": "A lightweight toolset for writing styles in Javascript.", | ||
"main": "lib/index.js", | ||
"jsnext:main": "dist/polished.es.js", | ||
"module": "dist/polished.es.js", | ||
"types": "lib/index.d.ts", | ||
"scripts": { | ||
"build": "npm run build:lib && npm run build:dist && npm run build:flow && npm run build:docs && npm run build:typescript", | ||
"prebuild:lib": "shx rm -rf lib/*", | ||
"build:lib": "babel --out-dir lib src --ignore test.js", | ||
"prebuild:umd": "shx rm -rf dist/*", | ||
"prebuild:dist": "shx rm -rf dist/*", | ||
"build:dist": "rollup -c && rollup -c --environment PRODUCTION", | ||
"build:docs": "npm run build:docs:site", | ||
"prebuild:docs:site": "shx rm -rf docs/*", | ||
"build:docs:site": "documentation build src/** -t docs-theme --github -o docs -f html -c ./.documentation.json", | ||
"postbuild:docs:site": "shx cp CNAME docs/CNAME && shx cp dist/polished.js docs/assets/", | ||
"build:watch": "npm-watch", | ||
"build:flow": "flow-copy-source -v -i '{**/test/*.js,**/*.test.js}' src lib", | ||
"build:typescript": "tsgen \"lib/**/*.js.flow\" --ignore \"lib/**/_*.js.flow\"", | ||
"test": "jest src", | ||
"typescript": "tsc ./typescript-test.ts --noEmit --target es6 --module es2015 --moduleResolution node", | ||
"precommit": "lint-staged --verbose", | ||
"postcommit": "validate-commit-msg", | ||
"lint": "eslint src", | ||
"flow": "flow check && flow-coverage-report -i 'src/**/!(*.test).js'", | ||
"docs": "pushstate-server docs", | ||
"prepublish": "npm run build && npm run typescript" | ||
}, | ||
"lint-staged": { | ||
"src/**/!(*.test).js": [ | ||
"prettier --no-semi --single-quote --trailing-comma all --write", | ||
"eslint --fix", | ||
"git add" | ||
], | ||
"src/**/*.test.js": [ | ||
"prettier --no-semi --single-quote --trailing-comma all --write", | ||
"eslint --fix", | ||
"git add" | ||
] | ||
}, | ||
"watch": { | ||
"build:docs": "src/**/*.js", | ||
"build:lib": "src/**/*.js" | ||
}, | ||
"author": "Max Stoiber <contact@mxstbr.com> (http://mxstbr.com)", | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/styled-components/polished.git" | ||
}, | ||
"keywords": [ | ||
"styled-components", | ||
"polished", | ||
"css-in-js", | ||
"inline-styles", | ||
"react" | ||
], | ||
"bugs": { | ||
"url": "https://github.com/styled-components/polished/issues" | ||
}, | ||
"homepage": "https://github.com/styled-components/polished#readme", | ||
"devDependencies": { | ||
"babel-cli": "^6.18.0", | ||
"babel-core": "^6.18.2", | ||
"babel-eslint": "^7.1.0", | ||
"babel-jest": "^16.0.0", | ||
"babel-loader": "^6.2.7", | ||
"babel-plugin-add-module-exports": "^0.2.1", | ||
"babel-plugin-annotate-pure-calls": "^0.2.0", | ||
"babel-plugin-external-helpers": "^6.18.0", | ||
"babel-plugin-syntax-trailing-function-commas": "^6.22.0", | ||
"babel-plugin-transform-flow-strip-types": "^6.18.0", | ||
"babel-plugin-transform-object-rest-spread": "^6.16.0", | ||
"babel-polyfill": "^6.16.0", | ||
"babel-preset-env": "^1.5.2", | ||
"concat-stream": "^1.5.2", | ||
"cz-conventional-changelog": "^1.2.0", | ||
"documentation": "4.0.0-beta.18", | ||
"eslint": "^3.9.1", | ||
"eslint-config-airbnb-base": "^10.0.1", | ||
"eslint-plugin-import": "^2.2.0", | ||
"flow-bin": "^0.53.1", | ||
"flow-copy-source": "^1.1.0", | ||
"flow-coverage-report": "^0.3.0", | ||
"github-slugger": "^1.1.1", | ||
"highlight.js": "^9.9.0", | ||
"husky": "^0.14.3", | ||
"jest": "^16.0.2", | ||
"lint-staged": "^4.0.2", | ||
"lodash": "^4.17.2", | ||
"npm-watch": "^0.1.6", | ||
"prettier": "^1.5.3", | ||
"pushstate-server": "^2.1.0", | ||
"ramda": "^0.23.0", | ||
"rollup": "^0.50.0", | ||
"rollup-plugin-babel": "^3.0.2", | ||
"rollup-plugin-commonjs": "^8.2.1", | ||
"rollup-plugin-flow": "^1.1.1", | ||
"rollup-plugin-inject": "^2.0.0", | ||
"rollup-plugin-json": "^2.3.0", | ||
"rollup-plugin-node-resolve": "^3.0.0", | ||
"rollup-plugin-replace": "^2.0.0", | ||
"rollup-plugin-uglify": "^2.0.1", | ||
"shx": "^0.2.2", | ||
"tsgen": "^1.0.0", | ||
"typescript": "^2.4.2", | ||
"validate-commit-msg": "^2.8.2", | ||
"vinyl": "^2.0.1", | ||
"vinyl-fs": "^2.4.4" | ||
}, | ||
"config": { | ||
"commitizen": { | ||
"path": "./node_modules/cz-conventional-changelog" | ||
} | ||
}, | ||
"jest": { | ||
"coverageDirectory": "./coverage/", | ||
"collectCoverage": true | ||
}, | ||
"version": "1.8.0" | ||
} | ||
{"name":"polished","description":"A lightweight toolset for writing styles in Javascript.","main":"lib/index.js","jsnext:main":"dist/polished.es.js","module":"dist/polished.es.js","types":"lib/index.d.ts","scripts":{"build":"npm run build:lib && npm run build:dist && npm run build:flow && npm run build:docs && npm run build:typescript","prebuild:lib":"shx rm -rf lib/*","build:lib":"babel --out-dir lib src --ignore test.js","prebuild:umd":"shx rm -rf dist/*","prebuild:dist":"shx rm -rf dist/*","build:dist":"rollup -c && rollup -c --environment PRODUCTION","build:docs":"npm run build:docs:site","prebuild:docs:site":"shx rm -rf docs/*","build:docs:site":"documentation build src/** -t docs-theme --github -o docs -f html -c ./.documentation.json","postbuild:docs:site":"shx cp CNAME docs/CNAME && shx cp dist/polished.js docs/assets/","build:watch":"npm-watch","build:flow":"flow-copy-source -v -i '{**/test/*.js,**/*.test.js}' src lib","build:typescript":"tsgen \"lib/**/*.js.flow\" --ignore \"lib/**/_*.js.flow\"","test":"jest src","typescript":"tsc ./typescript-test.ts --noEmit --target es6 --module es2015 --moduleResolution node","precommit":"lint-staged --verbose","postcommit":"validate-commit-msg","lint":"eslint src","flow":"flow check && flow-coverage-report -i 'src/**/!(*.test).js'","docs":"pushstate-server docs","prepublish":"npm run build && npm run typescript"},"lint-staged":{"src/**/!(*.test).js":["prettier --no-semi --single-quote --trailing-comma all --write","eslint --fix","git add"],"src/**/*.test.js":["prettier --no-semi --single-quote --trailing-comma all --write","eslint --fix","git add"]},"watch":{"build:docs":"src/**/*.js","build:lib":"src/**/*.js"},"author":"Max Stoiber <contact@mxstbr.com> (http://mxstbr.com)","license":"MIT","repository":{"type":"git","url":"git+https://github.com/styled-components/polished.git"},"keywords":["styled-components","polished","css-in-js","inline-styles","react"],"bugs":{"url":"https://github.com/styled-components/polished/issues"},"homepage":"https://github.com/styled-components/polished#readme","devDependencies":{"babel-cli":"^6.18.0","babel-core":"^6.18.2","babel-eslint":"^7.1.0","babel-jest":"^16.0.0","babel-loader":"^6.2.7","babel-plugin-add-module-exports":"^0.2.1","babel-plugin-annotate-pure-calls":"^0.2.0","babel-plugin-external-helpers":"^6.18.0","babel-plugin-syntax-trailing-function-commas":"^6.22.0","babel-plugin-transform-flow-strip-types":"^6.18.0","babel-plugin-transform-object-rest-spread":"^6.16.0","babel-polyfill":"^6.16.0","babel-preset-env":"^1.5.2","concat-stream":"^1.5.2","cz-conventional-changelog":"^1.2.0","documentation":"4.0.0-beta.18","eslint":"^3.9.1","eslint-config-airbnb-base":"^10.0.1","eslint-plugin-import":"^2.2.0","flow-bin":"^0.53.1","flow-copy-source":"^1.1.0","flow-coverage-report":"^0.3.0","github-slugger":"^1.1.1","highlight.js":"^9.9.0","husky":"^0.14.3","jest":"^16.0.2","lint-staged":"^4.0.2","lodash":"^4.17.2","npm-watch":"^0.1.6","prettier":"^1.5.3","pushstate-server":"^2.1.0","ramda":"^0.23.0","rollup":"^0.50.0","rollup-plugin-babel":"^3.0.2","rollup-plugin-commonjs":"^8.2.1","rollup-plugin-flow":"^1.1.1","rollup-plugin-inject":"^2.0.0","rollup-plugin-json":"^2.3.0","rollup-plugin-node-resolve":"^3.0.0","rollup-plugin-replace":"^2.0.0","rollup-plugin-uglify":"^2.0.1","shx":"^0.2.2","tsgen":"^1.0.0","typescript":"^2.4.2","validate-commit-msg":"^2.8.2","vinyl":"^2.0.1","vinyl-fs":"^2.4.4"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"jest":{"coverageDirectory":"./coverage/","collectCoverage":true},"version":"1.8.1"} |
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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
4
2368000