-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.umd.js
2 lines (2 loc) · 1.76 KB
/
index.umd.js
1
2
!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?module.exports=o():"function"==typeof define&&define.amd?define(o):(e||self).tailwindcssDefaultShades=o()}(this,function(){function e(){return e=Object.assign?Object.assign.bind():function(e){for(var o=1;o<arguments.length;o++){var r=arguments[o];for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t])}return e},e.apply(this,arguments)}return function(o,r){var t;if(void 0===r&&(r=500),!o||"object"!=typeof o)throw new Error("defaultShades: received unexpected `colors` argument value of `"+JSON.stringify(o)+"`. Expected an object with string keys of the color names in your theme, each with a string key of its associated color value or an object with the shades for that color, comprised of string or numeric keys and string values for the color of each shade.");if(!r)throw new Error("defaultShades: received unexpected `defaultShade` argument value of `"+JSON.stringify(r)+"`. Expected a numeric or string key, or an object with keys matching a partial list of the colors in your Tailwind CSS configuration (or `DEFAULT`) and numeric or string values of the desired shade for each.");var n="object"==typeof r;n&&(null!=(t=r).DEFAULT||(t.DEFAULT=500));for(var i={},a=0,s=Object.entries(o);a<s.length;a++){var f,c=s[a],l=c[0],d=c[1];if(!d)throw new Error("defaultShades: shades for color `"+l+"` was an unexpected value of `"+JSON.stringify(d)+"`. Expected a string representing a single color value or an object with individual shades for that color, comprised of string or numeric keys and string values for the color of each shade.");if("string"!=typeof d){var u=e({},d),h=d[n?null!=(f=r[l])?f:r.DEFAULT:r];h&&(null!=u.DEFAULT||(u.DEFAULT=h)),i[l]=u}else i[l]=d}return i}});
//# sourceMappingURL=index.umd.js.map