tailwindcss-js
Version:
JS script injection utility for Tailwind CSS
3 lines (2 loc) • 2.16 kB
JavaScript
!function(n,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(n||self).tailwindcssJs=e()}(this,function(){function n(n,t,o){if(e())return Reflect.construct.apply(null,arguments);var u=[null];u.push.apply(u,t);var i=new(n.bind.apply(n,u));return o&&r(i,o.prototype),i}function e(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(n){}return(e=function(){return!!n})()}function t(){return t=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},t.apply(this,arguments)}function r(n,e){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,e){return n.__proto__=e,n},r(n,e)}function o(n){var e={exports:{}};return n(e,e.exports),e.exports}var u=o(function(n,e){function t(n,e){return{handler:n,config:e}}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}}),t.withOptions=function(n,e=(()=>({}))){const t=function(t){return{__options:t,handler:n(t),config:e(t)}};return t.__isOptionsFunction=!0,t.__pluginFunction=n,t.__configFunction=e,t};const r=t}),i=o(function(n,e){function t(n){return n&&n.__esModule?n:{default:n}}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});const r=/*#__PURE__*/t(u).default});return(i.__esModule?i:{default:i}).default.withOptions(function(e){return void 0===e&&(e={}),function(r){var o,u=r.matchUtilities,i=t({theme:r.theme,config:r.config},null!=(o=e)?o:{});u({js:function(e){var t,r=function(n){return n.replace(/_/g,"\\_").replace(/ /g,"_")};return(t={})["@apply "+r(e.slice(1,-1)).split(/(#{.*?})/g).map(function(n,e){return e%2==1?n.slice(2,-1):n}).map(function(e,t){if(t%2==0)return e;var o,u=Object.keys(i),c=Object.values(i),f=n(Function,u.concat(["return "+(o=e,o.replace(/(?<!\\)_/g," ").replace(/\\_/g,"_")+";")]));return r(""+f.apply(void 0,c))}).join("")]={},t}})}})});
//# sourceMappingURL=index.umd.js.map