Skip to content

Releases: blakeembrey/react-free-style

ES2015 Module Version

28 Oct 00:10
Compare
Choose a tag to compare

Added

  • Export module version for tree-shaking

Remove `displayName` Argument

27 Oct 23:37
Compare
Choose a tag to compare

Changed

  • Use free-style@3
  • Remove displayName param (use $displayName in free-style@3)

Normalize Allowed CSS Values

13 Oct 18:42
Compare
Choose a tag to compare

Fixed

  • Normalize CssValue types to allow strings everywhere and support recursive CSS nested arrays

Support CSS Arrays

06 Oct 22:00
Compare
Choose a tag to compare

Added

  • Support an array of CSS values and automatically "join" into multiple class names

Remove Deprecated APIs

06 Jul 04:41
Compare
Choose a tag to compare

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

CSS property functions

03 May 05:20
Compare
Choose a tag to compare

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)

Compose Styles Before Registering Styles

25 Apr 06:28
Compare
Choose a tag to compare

Fixed

  • Ensure composition of styles happens before registering new styles

Styled Composition

24 Apr 04:06
Compare
Choose a tag to compare

Added

  • Support composition of styled components

Document Themes

04 Apr 18:31
Compare
Choose a tag to compare

Added

  • Add documentation on how to do your own themes since it's built-in to React but usually abstracted away by other libraries

JSX Pragma and Defined Tags Support

04 Apr 18:26
Compare
Choose a tag to compare

Added

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