Comparing version 1.7.0 to 1.8.0
@@ -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=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,Oe[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,l=t[2],s=void 0===l?o:l,f=t[3];return n(e,[o,u,s,void 0===f?u:f])}function o(e){var r=parseFloat(e);return isNaN(r)?e:r}function i(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&&!Te[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?Te[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"}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"&";return qe({},e+"::after",{clear:"both",content:'""',display:"table"})}function l(){return{display:"inline-block",maxWidth:arguments.length>0&&void 0!==arguments[0]?arguments[0]:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",wordWrap:"normal"}}function s(e,r){return r.map(function(r){return'url("'+e+"."+r+'")'}).join(", ")}function f(e){return e.map(function(e){return'local("'+e+'")'}).join(", ")}function c(e,r,t){var n=[];return r&&n.push(f(r)),e&&n.push(s(e,t)),n.join(", ")}function d(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,f=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:c(t,s,l),unicodeRange:f,fontStretch:n,fontStyle:a,fontVariant:o,fontWeight:i}};return JSON.parse(JSON.stringify(d))}function p(){return{textIndent:"101%",overflow:"hidden",whiteSpace:"nowrap"}}function b(){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 h(e,r){var t=We({},e);return Object.keys(r).forEach(function(e){t[e]?t[e]=We({},t[e],r[e]):t[e]=We({},r[e])}),t}function g(e){return e?He:h(He,Qe)}function m(e){var r,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"&";return r={},qe(r,t+"::-webkit-input-placeholder",We({},e)),qe(r,t+":-moz-placeholder",We({},e)),qe(r,t+"::-moz-placeholder",We({},e)),qe(r,t+":-ms-input-placeholder",We({},e)),r}function y(e){return e[0].split(" ")[0]}function v(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 w(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||y(r),backgroundImage:v(Le,a,o,t,r.join(", "))}}function x(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 qe({backgroundImage:"url("+e+"."+o+")"},b(),{backgroundImage:"url("+i+")",backgroundSize:r})}function k(e){var r,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return r={},qe(r,t+"::-moz-selection",We({},e)),qe(r,t+"::selection",We({},e)),r}function z(e){return Ne[e]}function S(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),l=parseFloat(n);if(isNaN(u)||isNaN(l))throw new Error("Passed an invalid value to `height` or `width`. Please provide a pixel based unit");return qe({borderColor:i,width:"0",height:"0",borderWidth:$e(r,u,l),borderStyle:"solid"},"border"+De[r]+"Color",a+" !important")}function I(){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}}function j(e){return Math.round(255*e)}function E(e,r,t){return j(e)+","+j(r)+","+j(t)}function A(e,r,t){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:E;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,l=0,s=0;a>=0&&a<1?(u=o,l=i):a>=1&&a<2?(u=i,l=o):a>=2&&a<3?(l=o,s=i):a>=3&&a<4?(l=i,s=o):a>=4&&a<5?(u=i,s=o):a>=5&&a<6&&(u=o,s=i);var f=t-o/2;return n(u+f,l+f,s+f)}function O(e){if("string"!=typeof e)return e;var r=e.toLowerCase();return _e[r]?"#"+_e[r]:e}function F(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=O(e);if(r.match(Ge))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(Je))return{red:parseInt(""+r[1]+r[1],16),green:parseInt(""+r[2]+r[2],16),blue:parseInt(""+r[3]+r[3],16)};var t=Ue.exec(r);if(t)return{red:parseInt(""+t[1],10),green:parseInt(""+t[2],10),blue:parseInt(""+t[3],10)};var n=Ve.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=Ye.exec(r);if(a){var o=parseInt(""+a[1],10),i=parseInt(""+a[2],10)/100,u=parseInt(""+a[3],10)/100,l="rgb("+A(o,i,u)+")",s=Ue.exec(l);return{red:parseInt(""+s[1],10),green:parseInt(""+s[2],10),blue:parseInt(""+s[3],10)}}var f=Ze.exec(r);if(f){var c=parseInt(""+f[1],10),d=parseInt(""+f[2],10)/100,p=parseInt(""+f[3],10)/100,b="rgb("+A(c,d,p)+")",h=Ue.exec(b);return{red:parseInt(""+h[1],10),green:parseInt(""+h[2],10),blue:parseInt(""+h[3],10),alpha:parseFloat(""+f[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 P(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,l=a-o,s=i>.5?l/(2-a-o):l/(a+o);switch(a){case r:u=(t-n)/l+(t<n?6:0);break;case t:u=(n-r)/l+2;break;default:u=(r-t)/l+4}return u*=60,void 0!==e.alpha?{hue:u,saturation:s,lightness:i,alpha:e.alpha}:{hue:u,saturation:s,lightness:i}}function C(e){return P(F(e))}function T(e){var r=e.toString(16);return 1===r.length?"0"+r:r}function R(e,r,t){if("number"==typeof e&&"number"==typeof r&&"number"==typeof t)return Ke("#"+T(e)+T(r)+T(t));if("object"===(void 0===e?"undefined":Me(e))&&void 0===r&&void 0===t)return Ke("#"+T(e.red)+T(e.green)+T(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 M(e,r,t,n){if("string"==typeof e&&"number"==typeof r){var a=F(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?R(e,r,t):"rgba("+e+","+r+","+t+","+n+")";if("object"===(void 0===e?"undefined":Me(e))&&void 0===r&&void 0===t&&void 0===n)return e.alpha>=1?R(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 q(e){return T(Math.round(255*e))}function W(e,r,t){return Ke("#"+q(e)+q(r)+q(t))}function B(e,r,t){return A(e,r,t,W)}function Q(e,r,t){if("number"==typeof e&&"number"==typeof r&&"number"==typeof t)return B(e,r,t);if("object"===(void 0===e?"undefined":Me(e))&&void 0===r&&void 0===t)return B(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 H(e,r,t,n){if("number"==typeof e&&"number"==typeof r&&"number"==typeof t&&"number"==typeof n)return n>=1?B(e,r,t):"rgba("+A(e,r,t)+","+n+")";if("object"===(void 0===e?"undefined":Me(e))&&void 0===r&&void 0===t&&void 0===n)return e.alpha>=1?B(e.hue,e.saturation,e.lightness):"rgba("+A(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 L(e){if("object"!==(void 0===e?"undefined":Me(e)))throw new Error(nr);if(er(e))return M(e);if(Xe(e))return R(e);if(tr(e))return H(e);if(rr(e))return Q(e);throw new Error(nr)}function N(e,r,t){return function(){var n=t.concat(Array.prototype.slice.call(arguments));return n.length>=r?e.apply(this,n):N(e,r,n)}}function $(e){return N(e,e.length,[])}function D(e,r){var t=C(r);return L(We({},t,{hue:(t.hue+e)%360}))}function _(e){var r=C(e);return L(We({},r,{hue:(r.hue+180)%360}))}function G(e,r,t){return Math.max(e,Math.min(r,t))}function J(e,r){var t=C(r);return L(We({},t,{lightness:G(0,1,t.lightness-e)}))}function U(e,r){var t=C(r);return L(We({},t,{saturation:G(0,1,t.saturation-e)}))}function V(e){var r=F(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=Be(t,3);return.2126*n[0]+.7152*n[1]+.0722*n[2]}function Y(e){return L(We({},C(e),{saturation:0}))}function Z(e){var r=F(e);return L(We({},r,{red:255-r.red,green:255-r.green,blue:255-r.blue}))}function K(e,r){var t=C(r);return L(We({},t,{lightness:G(0,1,t.lightness+e)}))}function X(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.5,r=arguments[1],t=arguments[2],n=F(r),a=We({},n,{alpha:"number"==typeof n.alpha?n.alpha:1}),o=F(t),i=We({},o,{alpha:"number"==typeof o.alpha?o.alpha:1}),u=a.alpha-i.alpha,l=2*e-1,s=l*u==-1?l:l+u,f=1+l*u,c=(s/f+1)/2,d=1-c;return M({red:Math.floor(a.red*c+i.red*d),green:Math.floor(a.green*c+i.green*d),blue:Math.floor(a.blue*c+i.blue*d),alpha:a.alpha+(i.alpha-a.alpha)*(e/1)})}function ee(e,r){var t=F(r),n="number"==typeof t.alpha?t.alpha:1;return M(We({},t,{alpha:G(0,1,(100*n+100*e)/100)}))}function re(e){return V(e)>.179?"#000":"#fff"}function te(e,r){var t=C(r);return L(We({},t,{saturation:G(0,1,t.saturation+e)}))}function ne(e,r){return L(We({},C(r),{hue:e}))}function ae(e,r){return L(We({},C(r),{lightness:e}))}function oe(e,r){return L(We({},C(r),{saturation:e}))}function ie(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 lr(e,r,"rgb(0, 0, 0)")}function ue(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 lr(e,r,"rgb(255, 255, 255)")}function le(e,r){var t=F(r),n="number"==typeof t.alpha?t.alpha:1;return M(We({},t,{alpha:G(0,1,(100*n-100*e)/100)}))}function se(){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(", ")}}function fe(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return{backgroundImage:r.join(", ")}}function ce(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return{background:r.join(", ")}}function de(){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))}function pe(e,t){var n=r(e);if(!t||"string"!=typeof t)throw new Error("borderRadius expects a radius value as a string as the second argument.");if("Top"===n||"Bottom"===n){var a;return a={},qe(a,"border"+n+"RightRadius",t),qe(a,"border"+n+"LeftRadius",t),a}if("Left"===n||"Right"===n){var o;return o={},qe(o,"borderTop"+n+"Radius",t),qe(o,"borderBottom"+n+"Radius",t),o}throw new Error('borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.')}function be(){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))}function he(){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))}function ge(e,r){return e(r?":"+r:"")}function me(e,r,t){if(!r)throw new Error("You must provide a template to this method.");if(0===e.length)return ge(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(ge(r,e[a]))}return n=n.join(",")}function ye(e){return"button"+e+',\n input[type="button"]'+e+',\n input[type="reset"]'+e+',\n input[type="submit"]'+e}function ve(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return me(r,ye,yr)}function we(){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))}function xe(){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))}function ke(e){for(var r=arguments.length,t=Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];if(vr.indexOf(e)>=0)return We({position:e},a.apply(void 0,[""].concat(t)));var o=e;return a.apply(void 0,["",o].concat(t))}function ze(e){return{height:e,width:arguments.length>1&&void 0!==arguments[1]?arguments[1]:e}}function Se(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}function Ie(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return me(r,Se,wr)}function je(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return{transition:r.join(", ")}}var Ee,Ae,Oe=["Top","Right","Bottom","Left"],Fe=function(e,r){return e.substr(-r.length)===r},Pe=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(!Fe(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(!Fe(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}},Ce=Pe("em"),Te={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},Re=Pe("rem"),Me="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},qe=function(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e},We=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},Be=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")}}(),Qe=(Ee={html:{fontFamily:"sans-serif"},body:{margin:"0"}},qe(Ee,"a:active,\n a:hover",{outlineWidth:"0"}),qe(Ee,"button,\n input,\n optgroup,\n select,\n textarea",{fontFamily:"sans-serif",fontSize:"100%",lineHeight:"1.15"}),Ee),He=(Ae={html:{lineHeight:"1.15",textSizeAdjust:"100%"}},qe(Ae,"article,\n aside,\n footer,\n header,\n nav,\n section",{display:"block"}),qe(Ae,"h1",{fontSize:"2em",margin:"0.67em 0"}),qe(Ae,"figcaption,\n figure,\n main",{display:"block"}),qe(Ae,"figure",{margin:"1em 40px"}),qe(Ae,"hr",{boxSizing:"content-box",height:"0",overflow:"visible"}),qe(Ae,"pre",{fontFamily:"monospace, monospace",fontSize:"1em"}),qe(Ae,"a",{"background-color":"transparent","-webkit-text-decoration-skip":"objects"}),qe(Ae,"abbr[title]",qe({borderBottom:"none",textDecoration:"underline"},"textDecoration","underline dotted")),qe(Ae,"b,\n strong",{fontWeight:"inherit"}),qe(Ae,"code,\n kbd,\n samp",{fontFamily:"monospace, monospace",fontSize:"1em"}),qe(Ae,"dfn",{fontStyle:"italic"}),qe(Ae,"mark",{backgroundColor:"#ff0",color:"#000"}),qe(Ae,"small",{fontSize:"80%"}),qe(Ae,"sub,\n sup",{fontSize:"75%",lineHeight:"0",position:"relative",verticalAlign:"baseline"}),qe(Ae,"sub",{bottom:"-0.25em"}),qe(Ae,"sup",{top:"-0.5em"}),qe(Ae,"audio,\n video",{display:"inline-block"}),qe(Ae,"audio:not([controls])",{display:"none",height:"0"}),qe(Ae,"img",{borderStyle:"none"}),qe(Ae,"svg:not(:root)",{overflow:"hidden"}),qe(Ae,"button,\n input,\n optgroup,\n select,\n textarea",{margin:"0"}),qe(Ae,"button,\n input",{overflow:"visible"}),qe(Ae,"button,\n select",{textTransform:"none"}),qe(Ae,'button,\n html [type="button"],\n [type="reset"],\n [type="submit"]',{"-webkit-appearance":"button"}),qe(Ae,'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"}),qe(Ae,'button:-moz-focusring,\n [type="button"]:-moz-focusring,\n [type="reset"]:-moz-focusring,\n [type="submit"]:-moz-focusring',{outline:"1px dotted ButtonText"}),qe(Ae,"fieldset",{border:"1px solid #c0c0c0",margin:"0 2px",padding:"0.35em 0.625em 0.75em"}),qe(Ae,"legend",{boxSizing:"border-box",color:"inherit",display:"table",maxWidth:"100%",padding:"0",whiteSpace:"normal"}),qe(Ae,"progress",{display:"inline-block",verticalAlign:"baseline"}),qe(Ae,"textarea",{overflow:"auto"}),qe(Ae,'[type="checkbox"],\n [type="radio"]',{boxSizing:"border-box",padding:"0"}),qe(Ae,'[type="number"]::-webkit-inner-spin-button,\n [type="number"]::-webkit-outer-spin-button',{height:"auto"}),qe(Ae,'[type="search"]',{"-webkit-appearance":"textfield",outlineOffset:"-2px"}),qe(Ae,'[type="search"]::-webkit-search-cancel-button,\n [type="search"]::-webkit-search-decoration',{"-webkit-appearance":"none"}),qe(Ae,"::-webkit-file-upload-button",{"-webkit-appearance":"button",font:"inherit"}),qe(Ae,"details,\n menu",{display:"block"}),qe(Ae,"summary",{display:"list-item"}),qe(Ae,"canvas",{display:"inline-block"}),qe(Ae,"template",{display:"none"}),qe(Ae,"[hidden]",{display:"none"}),Ae),Le=function(e,r){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}(["radial-gradient(","","","",")"],["radial-gradient(","","","",")"]),Ne={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)"},$e=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'.")}},De={left:"Right",right:"Left",top:"Bottom",bottom:"Top"},_e={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"},Ge=/^#[a-fA-F0-9]{6}$/,Je=/^#[a-fA-F0-9]{3}$/,Ue=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/,Ve=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/,Ye=/^hsl\(\s*(\d{1,3})\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*\)$/,Ze=/^hsla\(\s*(\d{1,3})\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/,Ke=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},Xe=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||void 0===e.alpha)},er=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha},rr=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||void 0===e.alpha)},tr=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha},nr="Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.",ar=$(D),or=$(J),ir=$(U),ur=$(K),lr=$(X),sr=$(ee),fr=$(re),cr=$(te),dr=$(ne),pr=$(ae),br=$(oe),hr=$(ie),gr=$(ue),mr=$(le),yr=[void 0,null,"active","focus","hover"],vr=["absolute","fixed","relative","static","sticky"],wr=[void 0,null,"active","focus","hover"];e.adjustHue=ar,e.animation=se,e.backgroundImages=fe,e.backgrounds=ce,e.borderColor=de,e.borderRadius=pe,e.borderStyle=be,e.borderWidth=he,e.buttons=ve,e.clearFix=u,e.complement=_,e.darken=or,e.desaturate=ir,e.directionalProperty=a,e.ellipsis=l,e.em=Ce,e.fontFace=d,e.getLuminance=V,e.grayscale=Y,e.invert=Z,e.hideText=p,e.hiDPI=b,e.hsl=Q,e.hsla=H,e.lighten=ur,e.margin=we,e.mix=lr,e.modularScale=i,e.normalize=g,e.opacify=sr,e.padding=xe,e.parseToHsl=C,e.parseToRgb=F,e.placeholder=m,e.position=ke,e.radialGradient=w,e.readableColor=fr,e.rem=Re,e.retinaImage=x,e.rgb=R,e.rgba=M,e.saturate=cr,e.selection=k,e.setHue=dr,e.setLightness=pr,e.setSaturation=br,e.shade=hr,e.size=ze,e.stripUnit=o,e.textInputs=Ie,e.timingFunctions=z,e.tint=gr,e.toColorString=L,e.transitions=je,e.transparentize=mr,e.triangle=S,e.wordWrap=I,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]&&(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})}); |
@@ -54,5 +54,4 @@ 'use strict'; | ||
// Don’t inline this variable into export because Rollup will remove the /*#__PURE__*/ comment | ||
var curriedAdjustHue = /*#__PURE__*/(0, _curry2.default)(adjustHue); // eslint-disable-line spaced-comment | ||
var curriedAdjustHue = (0, _curry2.default)(adjustHue); | ||
exports.default = curriedAdjustHue; | ||
module.exports = exports['default']; |
@@ -57,5 +57,4 @@ 'use strict'; | ||
// Don’t inline this variable into export because Rollup will remove the /*#__PURE__*/ comment | ||
var curriedDarken = /*#__PURE__*/(0, _curry2.default)(darken); // eslint-disable-line spaced-comment | ||
var curriedDarken = (0, _curry2.default)(darken); | ||
exports.default = curriedDarken; | ||
module.exports = exports['default']; |
@@ -58,5 +58,4 @@ 'use strict'; | ||
// Don’t inline this variable into export because Rollup will remove the /*#__PURE__*/ comment | ||
var curriedDesaturate = /*#__PURE__*/(0, _curry2.default)(desaturate); // eslint-disable-line spaced-comment | ||
var curriedDesaturate = (0, _curry2.default)(desaturate); | ||
exports.default = curriedDesaturate; | ||
module.exports = exports['default']; |
@@ -57,5 +57,4 @@ 'use strict'; | ||
// Don’t inline this variable into export because Rollup will remove the /*#__PURE__*/ comment | ||
var curriedLighten = /*#__PURE__*/(0, _curry2.default)(lighten); // eslint-disable-line spaced-comment | ||
var curriedLighten = (0, _curry2.default)(lighten); | ||
exports.default = curriedLighten; | ||
module.exports = exports['default']; |
@@ -88,5 +88,4 @@ 'use strict'; | ||
// Don’t inline this variable into export because Rollup will remove the /*#__PURE__*/ comment | ||
var curriedMix = /*#__PURE__*/(0, _curry2.default)(mix); // eslint-disable-line spaced-comment | ||
var curriedMix = (0, _curry2.default)(mix); | ||
exports.default = curriedMix; | ||
module.exports = exports['default']; |
@@ -63,5 +63,4 @@ 'use strict'; | ||
// Don’t inline this variable into export because Rollup will remove the /*#__PURE__*/ comment | ||
var curriedOpacify = /*#__PURE__*/(0, _curry2.default)(opacify); // eslint-disable-line spaced-comment | ||
var curriedOpacify = (0, _curry2.default)(opacify); | ||
exports.default = curriedOpacify; | ||
module.exports = exports['default']; |
@@ -49,5 +49,4 @@ 'use strict'; | ||
// Don’t inline this variable into export because Rollup will remove the /*#__PURE__*/ comment | ||
var curriedReadableColor = /*#__PURE__*/(0, _curry2.default)(readableColor); // eslint-disable-line spaced-comment | ||
var curriedReadableColor = (0, _curry2.default)(readableColor); | ||
exports.default = curriedReadableColor; | ||
module.exports = exports['default']; |
@@ -59,5 +59,4 @@ 'use strict'; | ||
// Don’t inline this variable into export because Rollup will remove the /*#__PURE__*/ comment | ||
var curriedSaturate = /*#__PURE__*/(0, _curry2.default)(saturate); // eslint-disable-line spaced-comment | ||
var curriedSaturate = (0, _curry2.default)(saturate); | ||
exports.default = curriedSaturate; | ||
module.exports = exports['default']; |
@@ -52,5 +52,4 @@ 'use strict'; | ||
// Don’t inline this variable into export because Rollup will remove the /*#__PURE__*/ comment | ||
var curriedSetHue = /*#__PURE__*/(0, _curry2.default)(setHue); // eslint-disable-line spaced-comment | ||
var curriedSetHue = (0, _curry2.default)(setHue); | ||
exports.default = curriedSetHue; | ||
module.exports = exports['default']; |
@@ -52,5 +52,4 @@ 'use strict'; | ||
// Don’t inline this variable into export because Rollup will remove the /*#__PURE__*/ comment | ||
var curriedSetLightness = /*#__PURE__*/(0, _curry2.default)(setLightness); // eslint-disable-line spaced-comment | ||
var curriedSetLightness = (0, _curry2.default)(setLightness); | ||
exports.default = curriedSetLightness; | ||
module.exports = exports['default']; |
@@ -52,5 +52,4 @@ 'use strict'; | ||
// Don’t inline this variable into export because Rollup will remove the /*#__PURE__*/ comment | ||
var curriedSetSaturation = /*#__PURE__*/(0, _curry2.default)(setSaturation); // eslint-disable-line spaced-comment | ||
var curriedSetSaturation = (0, _curry2.default)(setSaturation); | ||
exports.default = curriedSetSaturation; | ||
module.exports = exports['default']; |
@@ -50,5 +50,4 @@ 'use strict'; | ||
// Don’t inline this variable into export because Rollup will remove the /*#__PURE__*/ comment | ||
var curriedShade = /*#__PURE__*/(0, _curry2.default)(shade); // eslint-disable-line spaced-comment | ||
var curriedShade = (0, _curry2.default)(shade); | ||
exports.default = curriedShade; | ||
module.exports = exports['default']; |
@@ -50,5 +50,4 @@ 'use strict'; | ||
// Don’t inline this variable into export because Rollup will remove the /*#__PURE__*/ comment | ||
var curriedTint = /*#__PURE__*/(0, _curry2.default)(tint); // eslint-disable-line spaced-comment | ||
var curriedTint = (0, _curry2.default)(tint); | ||
exports.default = curriedTint; | ||
module.exports = exports['default']; |
@@ -63,5 +63,4 @@ 'use strict'; | ||
// Don’t inline this variable into export because Rollup will remove the /*#__PURE__*/ comment | ||
var curriedTransparentize = /*#__PURE__*/(0, _curry2.default)(transparentize); // eslint-disable-line spaced-comment | ||
var curriedTransparentize = (0, _curry2.default)(transparentize); | ||
exports.default = curriedTransparentize; | ||
module.exports = exports['default']; |
declare function directionalProperty( | ||
property: string, | ||
...values: Array<null | void | string> | ||
...values: Array<null | void | string | null | void | number> | ||
): Object | ||
export default directionalProperty; |
@@ -37,6 +37,4 @@ 'use strict'; | ||
// Don’t inline this variable into export because Rollup will remove the /*#__PURE__*/ comment | ||
var em = /* #__PURE__*/(0, _pxto2.default)('em'); // eslint-disable-line spaced-comment | ||
var em = (0, _pxto2.default)('em'); | ||
exports.default = em; | ||
module.exports = exports['default']; |
@@ -37,7 +37,5 @@ 'use strict'; | ||
// Don’t inline this variable into export because Rollup will remove the /*#__PURE__*/ comment | ||
var rem = /*#__PURE__*/(0, _pxto2.default)('rem'); // eslint-disable-line spaced-comment | ||
var rem = (0, _pxto2.default)('rem'); | ||
exports.default = rem; | ||
module.exports = exports['default']; |
@@ -1,3 +0,3 @@ | ||
declare function ellipsis(width?: string): Object | ||
declare function ellipsis(width?: string | number): Object | ||
export default ellipsis; |
@@ -12,3 +12,3 @@ 'use strict'; | ||
/** | ||
* CSS to style the selection psuedo-element. | ||
* CSS to style the placeholder pseudo-element. | ||
* | ||
@@ -15,0 +15,0 @@ * @example |
@@ -12,3 +12,3 @@ 'use strict'; | ||
/** | ||
* CSS to style the selection psuedo-element. | ||
* CSS to style the selection pseudo-element. | ||
* | ||
@@ -15,0 +15,0 @@ * @example |
@@ -1,3 +0,3 @@ | ||
declare function borderRadius(side: string, radius: string): Object | ||
declare function borderRadius(side: string, radius: string | number): Object | ||
export default borderRadius; |
@@ -38,4 +38,4 @@ 'use strict'; | ||
var uppercaseSide = (0, _capitalizeString2.default)(side); | ||
if (!radius || typeof radius !== 'string') { | ||
throw new Error('borderRadius expects a radius value as a string as the second argument.'); | ||
if (!radius) { | ||
throw new Error('borderRadius expects a radius value as a string or number as the second argument.'); | ||
} | ||
@@ -42,0 +42,0 @@ if (uppercaseSide === 'Top' || uppercaseSide === 'Bottom') { |
@@ -1,3 +0,5 @@ | ||
declare function borderWidth(...values: Array<null | void | string>): Object | ||
declare function borderWidth( | ||
...values: Array<null | void | string | null | void | number> | ||
): Object | ||
export default borderWidth; |
@@ -1,3 +0,5 @@ | ||
declare function margin(...values: Array<null | void | string>): Object | ||
declare function margin( | ||
...values: Array<null | void | string | null | void | number> | ||
): Object | ||
export default margin; |
@@ -1,3 +0,5 @@ | ||
declare function padding(...values: Array<null | void | string>): Object | ||
declare function padding( | ||
...values: Array<null | void | string | null | void | number> | ||
): Object | ||
export default padding; |
declare function position( | ||
positionKeyword: string | null, | ||
...values: Array<null | void | string> | ||
...values: Array<null | void | string | null | void | number> | ||
): Object | ||
export default position; |
@@ -1,3 +0,3 @@ | ||
declare function size(height: string, width?: string): Object | ||
declare function size(height: string | number, width?: string | number): Object | ||
export default size; |
@@ -71,2 +71,3 @@ { | ||
"babel-plugin-add-module-exports": "^0.2.1", | ||
"babel-plugin-annotate-pure-calls": "^0.2.0", | ||
"babel-plugin-external-helpers": "^6.18.0", | ||
@@ -97,11 +98,11 @@ "babel-plugin-syntax-trailing-function-commas": "^6.22.0", | ||
"ramda": "^0.23.0", | ||
"rollup": "^0.36.3", | ||
"rollup-plugin-babel": "^2.6.1", | ||
"rollup-plugin-commonjs": "^5.0.5", | ||
"rollup-plugin-flow": "^1.0.1", | ||
"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.0.2", | ||
"rollup-plugin-node-resolve": "^2.0.0", | ||
"rollup-plugin-replace": "^1.1.1", | ||
"rollup-plugin-uglify": "^1.0.1", | ||
"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", | ||
@@ -123,3 +124,3 @@ "tsgen": "^1.0.0", | ||
}, | ||
"version": "1.7.0" | ||
"version": "1.8.0" | ||
} |
@@ -19,3 +19,3 @@ <a href="https://github.com/styled-components/polished"> | ||
- **Make your app look great without stress** | ||
- **Cross framework compatible**: No matter if you're using `styled-components`, aphrodite, radium, or plain inline styles, as long as you're writing your styles in JavaScript you can use polished! | ||
- **Cross framework compatible**: No matter if you're using [`styled-components`](https://github.com/styled-components/styled-components), aphrodite, radium, or plain inline styles, as long as you're writing your styles in JavaScript you can use polished! | ||
- **Switching from a pre-processor to styles in JS made easy** | ||
@@ -22,0 +22,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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
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
2368407
47
13563
5