Releases: rbardini/storybook-addon-paddings
Releases · rbardini/storybook-addon-paddings
v4.0.0
4.0.0 (2020-12-28)
⚠ BREAKING CHANGES
-
config: use object parameter instead of array (#10) (e5a8405)
The addon now receives an object instead of an array as parameter, with a property to define the default padding. This allows proper merging of global, component and story parameters.
Old API
export const parameters = {
paddings: [
{ name: 'Small', value: '16px' },
{ name: 'Medium', value: '32px', default: true },
{ name: 'Large', value: '64px' },
],
};
New API
export const parameters = {
paddings: {
values: [
{ name: 'Small', value: '16px' },
{ name: 'Medium', value: '32px' },
{ name: 'Large', value: '64px' },
],
default: 'Medium',
},
};
v3.2.0
3.2.0 (2020-12-20)
Features
- selector: highlight selected padding option (#21) (16816af)
v3.1.0
3.1.0 (2020-12-16)
Features
- reset: set preview margins and paddings to 0 by default (#19) (f31361f)
v3.0.0
3.0.0 (2020-09-15)
chore
- deps: update dependencies and configuration options (#16) (0e5a125)
BREAKING CHANGES
- deps: require Storybook v6 (v5 compatibility possible, but not guaranteed)
v2.0.2
2.0.2 (2020-03-29)
Bug Fixes
- support other Storybook frameworks besides React (#7) (02b125f)
v2.0.1
2.0.1 (2020-03-15)
Bug Fixes
v2.0.0
2.0.0 (2020-03-01)
Features
- pad preview document body instead of iframe element (#2) (428c70a)
BREAKING CHANGES
- require
withPaddings
decorator
v1.0.1
1.0.1 (2020-02-15)
Bug Fixes
- define
paramKey
on register (70d22de)
v1.0.0
1.0.0 (2020-01-25)
Features