Releases: segmentio/ui-box
Releases · segmentio/ui-box
1.0.3
1.0.2
1.0.1
1.0.0
Breaking changes
boxSizing
now defaults toborder-box
.- These properties now only accept a single value. e.g:
margin="20px 10px"
won't work, instead you should usemarginY="20px" marginX="10px"
.margin
marginX
marginY
padding
paddingX
paddingY
borderRadius
borderColor
borderStyle
borderWidth
splitWrapperProps
has been renamed tosplitBoxProps
.splitProps
andsplitBoxProps
now return{ matchedProps, remainingProps }
.enhancerGroup.keysPropTypes
has been removed.enhancerGroup.parseProps
has been changed toenhancerGroup.propEnhancers
which has individual methods for each prop that take a value and return{ className, css }
.
Enhancer groups are the dimensions
, spacing
, etc exports.
New features
- Add
list-style
property support. - ~8x faster rendering from the cache (re-renders).
- Vastly improved cache reuse (each prop+value combo is cached separately).
- Server-side rendering support.
- Lots of tests!
- Each of the enhancer groups now contain
propTypes
,propAliases
andpropEnhancers
properties. propTypes
is now exported (object of all thepropTypes
).propNames
is now exported (array of all the prop names).propAliases
is now exported (object of all the prop aliases).propEnhancers
is now exported (object of all the prop enhancers).
Deprecations
The css
prop and css
export have been deprecated in favor of importing glamor directly and will be removed in the next major release.