Skip to content

Releases: aribouius/react-themed

v3.2.0

25 Jun 18:48
Compare
Choose a tag to compare
  • Added wildcard and regex context theme selectors (5a474df).

v3.1.0

26 May 21:39
Compare
Choose a tag to compare
  • Loosened react peer dependency (ff9d5d9).
  • Added support for ES6 module exports and UMD (via rollup) (e5b82a0).
  • Removed babel-plugin-transform-runtime dependency (e5b82a0).

v3.0.0

26 May 16:27
Compare
Choose a tag to compare

Breaking Changes

  • <ThemeProvider />
    • The compose prop now only accepts a boolean, and defaults to true. The ability to customize the previous context theme was moved to the theme prop.
  • themed
    • No longer injects the entire context theme when a theme selector is not provided. Themes must now be explicitly assigned.
    • Function theme selectors now receive a previously bound theme as the first argument, and the context theme as the second argument.
    • Calling themed with a previously themed component no longer creates a new wrapping component, but instead creates a modified copy of the original.
    • Themes now get composed with previously assigned themes by default.
    • No longer expects the compose option to be a boolean. It now must be a function that composes themes.
  • <Themed />
    • Theme objects provided via theme prop are now composed by default.
    • Support for the themeConfig prop has been removed.
  • composeTheme
    • This function has been replaced by compose.

Updates

  • themed
    • Is now also the default export (c07f99f).
    • Now supports local theme objects (9accf08).
    • Now supports array context theme selectors (0a083c5).
    • Has a new pure option (81d12c2).
    • Exposes the wrapped component as a static property (623b301).
    • Hoists static properties from the wrapped component (d5eea34).
    • Now supports chaining of themed components (0a083c5).
  • <Themed />
    • Now allows theme prop to be a function that receives the previous theme and context theme and returns a customized final theme.
    • Has a new childRef prop (3e22961).

Please refer to the API Reference for a complete overview of the new plugin API.

v2.2.1

16 May 23:46
Compare
Choose a tag to compare
  • Switched over to prop-types library (8400ea5).

v2.2.0

16 May 23:45
Compare
Choose a tag to compare
  • Updated readme to reflect recent updates.

v2.1.0

16 May 23:45
Compare
Choose a tag to compare
  • Adds fix for a bug that resulted in incorrect theme composition (fc49786).
  • Adds support for ad-hoc theme composition when rendering a themed component (4970baf).

v2.0.0

16 May 23:45
Compare
Choose a tag to compare

Breaking Changes

  • The themed decorator no longer expects a mapThemeToProps function as its first argument. Instead it supports either a string identifier, or a selector function. It also no longer expects a mergeProps function as its second argument, but instead an options object. See API docs for details (fe7df3c).

Additions

  • Added support for nested ThemeProvider components to compose parent themes (38d56bc).
  • Added support for merging utility functions (e.g. styles._getCss) when composing CSS modules parsed by isomorphic-style-loader (f6b364d).
  • ThemeProvider can now be imported under the alias Theme (dadc26b).

v1.0.1

16 May 23:44
Compare
Choose a tag to compare
  • Added API documentation to readme (ad3e93a).

v1.0.0

16 May 23:45
Compare
Choose a tag to compare

Initial public release.