diff --git a/README.md b/README.md index d3525d808..ef22a8cb3 100644 --- a/README.md +++ b/README.md @@ -76,7 +76,7 @@ function Greeting ({ name }) { ### css prop -When using the emotion babel plugin any `css` prop is converted to a tagged template expression and appended to any existing class names. +When using the emotion babel plugin, any `css` prop is converted to a class name via glam and appended to any existing class names. ```jsx harmony diff --git a/glam.js b/glam.js index a31073090..93e603a50 100644 --- a/glam.js +++ b/glam.js @@ -1,2 +1 @@ -function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function n(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function o(e,o){var p=o[0],f=o[1];return function(o){function i(){return t(this,i),r(this,o.apply(this,arguments))}return n(i,o),i.prototype.render=function(){var t=this,r=a(p,f.map(function(e){return"function"==typeof e?e(t.props):e}));return c(e,u({},this.props,{className:(this.props.className||"")+" "+r}))},i}(i.Component)}Object.defineProperty(exports,"__esModule",{value:!0});var i=e(require("react")),a=e(require("glam")),u=Object.assign||function(e){for(var t=1;t