- fix docs to reflect removed property (#13)
- fix zero indexed margin/paddings issue (#12)
- added the
module
field - added badges to README
- added
Margin.displayName
andPadding.displayName
(#9)
- updated the
peerDependency
to supportstyled-components@^3
- potential breaking change: upgraded to
styled-components-breakpoint@2.0.0
which only supports breakpoints defined as px - potential breaking change: removed the
theme
parameter from the mixins, simplifying use of customised breakpoints and spacings - potential breaking change: removed use of
react-create-component-from-tag-prop
sincestyled-components
now hascomponent.withComponent()
- fix: not used to a new IDE which doesn't auto save
- fix: remove undefined margin values
- fix: updated the documentation
- add: added a
component
prop to customise the underlying element type
- fix: Use
prop-types
to make warning withreact@15.5
go away
- fix: usage examples
- break: removed
display: inline-block;
from<Margin/>
because aninline-block
wrapping ablock
changes the width of theblock
. e.g.<Margin><h1/></Margin>
meant theh1
was unexpectedly not full width - addition: added a prop named
inline
to change<Margin/>
and<Padding/>
to fromblock
toinline-block
.