Skip to content

Releases: segmentio/ui-box

1.0.3

18 Feb 09:47
v1.0.3
Compare
Choose a tag to compare

Bug fixes

  • Fix numeric fontWeight and zIndex.

1.0.2

18 Feb 03:58
v1.0.2
Compare
Choose a tag to compare

Bug fixes

  • Fix a breaking change in the css export.

1.0.1

18 Feb 03:44
v1.0.1
Compare
Choose a tag to compare
  • Small performance improvement.

1.0.0

17 Feb 11:52
v1.0.0
Compare
Choose a tag to compare

Breaking changes

  • boxSizing now defaults to border-box.
  • These properties now only accept a single value. e.g: margin="20px 10px" won't work, instead you should use marginY="20px" marginX="10px".
    • margin
    • marginX
    • marginY
    • padding
    • paddingX
    • paddingY
    • borderRadius
    • borderColor
    • borderStyle
    • borderWidth
  • splitWrapperProps has been renamed to splitBoxProps.
  • splitProps and splitBoxProps now return { matchedProps, remainingProps }.
  • enhancerGroup.keysPropTypes has been removed.
  • enhancerGroup.parseProps has been changed to enhancerGroup.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 and propEnhancers properties.
  • propTypes is now exported (object of all the propTypes).
  • 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.