Tags: mtcrutch/glamorous
Tags
feat(perf): improve performance of GlamorousComponent#render (paypal#64) **What**: This takes some of the ideas from @developit to make the glamorous component render method faster **Why**: Because that's some hot code! **How**: copy/paste and blindly looking for other things I figured could be faster... I also made some changes to the rollup config so the UMD would work again with the process.env.NODE_ENV usage.
fix(readme): Improve composition docs and add missing examples (paypa… …l#57) * docs(contributors): add contributor information * docs(readme): fix css override example using wrong props name * docs(readme): add example for built-in DOM component factories * docs(read): add example for glamorousComponentFactory * docs(readme): update GlamorousComponent section with override examples I’ll explain the rationale behind this in the PR but I tried to group things into a more logical way * docs(contributors): update contribution type to include examples * docs(readme): change code syntax to jsx so it has better highlighting * docs(readme): remove render() to match other examples and adds styles applied * docs(readme): change glamor-generated-id to class to be more accurate * docs(readme): remove semis to keep consistent with other examples * docs(readme): update overriding styles section description to include theme prop reference * docs(readme): use single quote in example
feat(forwardProps): add forwardProps option (paypal#53) **What**: This adds a `forwardProps` option to the `glamorous` function **Why**: So if you're wrapping a component in `glamorous`, you can specify some props to forward, regardless of the `rootEl` you define. **How**: TDD! Also I had to update some dependencies to get rid of annoying warnings from React :)
feat(perf): memoize shouldForwardProperty * refactor(propertyForwardCheck): implement react-html-attributes for property forwarding check refactor should-forward-property.js to use react-html-attributes, a package that maps html attributes supported by react to their html tags, and add tests for it paypal#23 * refactor(propertyForwardCheck): Improve performance for checking whether to forward property paypal#23 * refactor(propertyForwardCheck): implement fast-memoize
feat(themes): add ThemeProvider for theming support (paypal#24) This was a great collaborative effort from @vesparny, @kentcdodds, @developit, @kwelch, @javivelasco @browniefed, @aweary. Thanks everyone! 👏
PreviousNext