UNPKG

@d-pollard/triplet

Version:

A twin alternative for projects that have tailwind already installed

3 lines (2 loc) 906 B
import{createElement as r,Component as t}from"react";function n(){return(n=Object.assign||function(r){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(r[e]=n[e])}return r}).apply(this,arguments)}var e=new Proxy({},{get:function(e,o){return e&&(a=o,function(e){var o,c,i=""+e.join("");return o=a,c=i,function(t){var e,a;function i(){return t.apply(this,arguments)||this}return a=t,(e=i).prototype=Object.create(a.prototype),e.prototype.constructor=e,e.__proto__=a,i.prototype.render=function(){var t=this.props,e=t.className,a=void 0===e?"":e,i=t.children,p=n({},function(r,t){if(null==r)return{};var n,e,o={},a=Object.keys(r);for(e=0;e<a.length;e++)t.indexOf(n=a[e])>=0||(o[n]=r[n]);return o}(t,["className","children"]),{className:a+" "+c});return r(o,p,i)},i}(t)});var a}});export{e as triplet}; //# sourceMappingURL=triplet.module.js.map