Releases: aribouius/react-themed
Releases · aribouius/react-themed
v3.2.0
v3.1.0
v3.0.0
Breaking Changes
<ThemeProvider />
- The
compose
prop now only accepts a boolean, and defaults totrue
. The ability to customize the previous context theme was moved to thetheme
prop.
- 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
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.
- 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
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).
- Now allows
Please refer to the API Reference for a complete overview of the new plugin API.
v2.2.1
v2.2.0
v2.1.0
v2.0.0
Breaking Changes
- The
themed
decorator no longer expects amapThemeToProps
function as its first argument. Instead it supports either a string identifier, or a selector function. It also no longer expects amergeProps
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 aliasTheme
(dadc26b).