react-free-style

Make React components easier and more maintainable by using inline style objects

MIT License

Downloads
723
Stars
139
Committers
8

Bot releases are visible (Hide)

react-free-style - Upgrade dependencies Latest Release

Published by blakeembrey over 3 years ago

Added

  • Upgrade all dependencies (csstype and free-style)
react-free-style - Handle `insertRule` errors

Published by blakeembrey over 4 years ago

Fixed

  • Handle insertRule errors on unknown syntax 5326eb0
react-free-style - Upgrade Free Style

Published by blakeembrey over 4 years ago

Changed

  • Upgrade to free-style@4
  • Remove dist/tags as unused
  • Remove dist/jsx in favor of root export, e.g. import { jsx } from 'react-free-style'
react-free-style - Fix `styled` ref

Published by blakeembrey over 4 years ago

Fixed

  • Fix inferred return type of styled for ref props
react-free-style - Allow multiple CSS values

Published by blakeembrey over 4 years ago

Added

  • Allow multiple CSS values over arrays

Fixed

  • Allow undefined and null for CSS values
react-free-style - Recursive Computed CSS

Published by blakeembrey over 4 years ago

Added

  • Allow ComputedCss to be recursive
  • Move JSX support into core package
react-free-style - Fix TypeScript Expansion Issue

Published by blakeembrey over 4 years ago

Fixed

  • Fix TypeScript expanding toComponent return type into an invalid type
react-free-style - Make `toComponent` Props Optional

Published by blakeembrey over 4 years ago

Fixed

  • Make toComponent(props?) optional
react-free-style - Smaller Build

Published by blakeembrey over 4 years ago

Changed

  • Bump target ES version to ES2015 (removes 10kb)
  • Remove STYLE_ID concept from rendering (removes another 10kb)
react-free-style - Extend Styles Type

Published by blakeembrey almost 5 years ago

Fixed

  • Extends Styles from Free Style for $* props in type information
react-free-style - ES2015 Module Version

Published by blakeembrey almost 5 years ago

Added

  • Export module version for tree-shaking
react-free-style - Remove `displayName` Argument

Published by blakeembrey almost 5 years ago

Changed

  • Use free-style@3
  • Remove displayName param (use $displayName in free-style@3)
react-free-style - Normalize Allowed CSS Values

Published by blakeembrey about 5 years ago

Fixed

  • Normalize CssValue types to allow strings everywhere and support recursive CSS nested arrays
react-free-style - Support CSS Arrays

Published by blakeembrey about 5 years ago

Added

  • Support an array of CSS values and automatically "join" into multiple class names
react-free-style - Remove Deprecated APIs

Published by blakeembrey over 5 years ago

Changed

  • Simplify external API, remove deprecated methods
    • Remove createStyles() function
    • Remove composeStyle() in favor of existing join(...) utility
    • Add useCss() for using any CSS object, cached css() object or computed functional style

Added

  • Allow undefined and string values as parameters to join(...) utility
react-free-style - CSS property functions

Published by blakeembrey over 5 years ago

Added

  • Allow css property to accept functions, allows pre-computed styles
  • Expose css() helper function that precomputes styles (e.g. re-used in css props or composition)
  • Expose join() helper for combining CSS functions (e.g. join style functions/objects over class names)
react-free-style - Compose Styles Before Registering Styles

Published by blakeembrey over 5 years ago

Fixed

  • Ensure composition of styles happens before registering new styles
react-free-style - Styled Composition

Published by blakeembrey over 5 years ago

Added

  • Support composition of styled components
react-free-style - Document Themes

Published by blakeembrey over 5 years ago

Added

  • Add documentation on how to do your own themes since it's built-in to React but usually abstracted away by other libraries
react-free-style - JSX Pragma and Defined Tags Support

Published by blakeembrey over 5 years ago

Added

  • Expose jsx pragma support for primitive types
  • Expose tags module for pre-defined HTML tags as components