Make React components easier and more maintainable by using inline style objects
MIT License
Bot releases are hidden (Show)
Published by blakeembrey over 5 years ago
Changed
Published by blakeembrey over 5 years ago
Added
styled(type, style)
signature for component, e.g. Button = styled('button', { color: 'red' })
Published by blakeembrey almost 6 years ago
Changed
Published by blakeembrey over 6 years ago
Fixed
style-helper
needs to be a dependencyNote: This was a user error. I accidentally did npm i -D
which moved it to devDependencies
, but npm i -S
didn't move it back to a regular dependency. I should have verified it worked as expected before releasing 7.0.1
.
Published by blakeembrey over 6 years ago
Added
react
Fixed
Published by blakeembrey almost 7 years ago
Changed
insertRule
and deleteRule
at runtimestyles
and Style
have moved to the wrapped component (e.g. withStyles(Component).Style
) since the styles will now use the component name as part of the class name (greater usefulness when debugging where a style comes from)Published by blakeembrey about 7 years ago
Changed
wrap
and styled
now accept a withFreeStyle
boolean argument to get an inline free-style
instance<style />
element runtime changes - now using multiple <style />
elements per active free-style
instancePublished by blakeembrey about 7 years ago
Fixed
componentWillUpdate
fixes for hot code reloadingunmount
and unmerge
styles when unmounting a componentPublished by blakeembrey about 7 years ago
Changed
Published by blakeembrey about 7 years ago
Fixed
options
into registerStyleSheet
- tested properly nowPublished by blakeembrey about 7 years ago
Changed
registerStyleSheet
to support functions and options (from style-helper
)props.styles
when using the styled()
componentcreate()
component - shouldn't be needed directly (use styled()
or wrap()
) but is still available as FreeStyle.create()
Published by blakeembrey about 7 years ago
Added
displayName
for easier debuggingPublished by blakeembrey about 7 years ago
Fixed
componentWillUpdate
to detect changes to Style
and mount new stylesPublished by blakeembrey over 7 years ago
Changed
styled().Style
but it was exposed as styled()(Component).Style
- the functionality has been fixed to match the documentation as that seems like the most logical use-case (access it when you need imperative access to free-style
, which means you need the results before Component
is defined)Published by blakeembrey over 7 years ago
Changed
styleSheet
argument for styled
to be undefinedPublished by blakeembrey over 7 years ago
Added
displayName
properties to stateless componentsregisterStyleSheet
helper used in styled
Published by blakeembrey over 7 years ago
Added
styled(styles)(component)
helper in the style of redux
and apollo
Published by blakeembrey over 7 years ago
Changed
free-style
Published by blakeembrey about 8 years ago
Changed
StyleElement
to render in DOM, automatically appends to document.head
insteadrewind()
and peek()
exported methods modelled from https://github.com/nfl/react-helmet (used for server-side rendering only)P.S. If you were doing something cool with the multiple <style />
elements, please let me know!
Published by blakeembrey about 8 years ago
Fixed
this.props
instead of input to child component as HOC