@d-pollard/triplet
Version:
A twin alternative for projects that have tailwind already installed
3 lines (2 loc) • 1.08 kB
JavaScript
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],e):e((t=t||self).triplet={},t.react)}(this,function(t,e){function r(){return(r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}var n=new Proxy({},{get:function(t,n){return t&&(o=n,function(t){var n,i,c=""+t.join("");return n=o,i=c,function(t){var o,c;function p(){return t.apply(this,arguments)||this}return c=t,(o=p).prototype=Object.create(c.prototype),o.prototype.constructor=o,o.__proto__=c,p.prototype.render=function(){var t=this.props,o=t.className,c=void 0===o?"":o,p=t.children,a=r({},function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)e.indexOf(r=i[n])>=0||(o[r]=t[r]);return o}(t,["className","children"]),{className:c+" "+i});return e.createElement(n,a,p)},p}(e.Component)});var o}});t.triplet=n});
//# sourceMappingURL=triplet.umd.js.map