v3.0.0
Breaking Changes
<ThemeProvider />- The
composeprop now only accepts a boolean, and defaults totrue. The ability to customize the previous context theme was moved to thethemeprop.
- The
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
themedwith 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
composeoption to be a boolean. It now must be a function that composes themes.
<Themed />- Theme objects provided via
themeprop are now composed by default. - Support for the
themeConfigprop has been removed.
- Theme objects provided via
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
pureoption (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
themeprop to be a function that receives the previous theme and context theme and returns a customized final theme. - Has a new
childRefprop (3e22961).
- Now allows
Please refer to the API Reference for a complete overview of the new plugin API.