The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Added
prop
parameter inmapToTheme
(Thanks to @mmartinsky - #19)
- Updated all dependencies
- Added basic TypeScript typings
- Added support for nested object properties in mapToTheme (Thanks to #5)
- Smaller bundle size (~500b)
- Added completely new CSS-like API. You can still use style objects, but I think you'll find this is much better.
- Fixed bug (thank you @linayanse)
styled-map
now looks for a "default" key if there are no matches. Otherwise it will use the last item in the map as in previous versions.
- Sometimes you want to use the value of a prop instead of its name, like
<Button type="primary" />
. You can usestyled-map
this way by providing a string as the first argument. E.g.,styledMap('type', { ... })
.