diff --git a/packages/design-system/src/styleguide/SpacingPreview.vue b/packages/design-system/src/styleguide/SpacingPreview.vue new file mode 100644 index 0000000000..9014d8ed84 --- /dev/null +++ b/packages/design-system/src/styleguide/SpacingPreview.vue @@ -0,0 +1,67 @@ + + + + diff --git a/packages/design-system/src/styleguide/utilities.stories.ts b/packages/design-system/src/styleguide/utilities.stories.ts new file mode 100644 index 0000000000..e5f9e2da16 --- /dev/null +++ b/packages/design-system/src/styleguide/utilities.stories.ts @@ -0,0 +1,47 @@ +/* tslint:disable:variable-name */ + +import {StoryFn} from "@storybook/vue"; +import SpacingPreview from "../styleguide/SpacingPreview.vue"; + +export default { + title: 'Utilities/Spacing', +}; + +const Template: StoryFn = (args, {argTypes}) => ({ + props: Object.keys(argTypes), + components: { + SpacingPreview, + }, + template: ``, +}); + +export const Padding = Template.bind({}); +Padding.args = { property: 'padding' }; + +export const PaddingTop = Template.bind({}); +PaddingTop.args = { property: 'padding', side: 'top' }; + +export const PaddingRight = Template.bind({}); +PaddingRight.args = { property: 'padding', side: 'right' }; + +export const PaddingBottom = Template.bind({}); +PaddingBottom.args = { property: 'padding', side: 'bottom' }; + +export const PaddingLeft = Template.bind({}); +PaddingLeft.args = { property: 'padding', side: 'left' }; + +export const Margin = Template.bind({}); +Margin.args = { property: 'margin' }; + +export const MarginTop = Template.bind({}); +MarginTop.args = { property: 'margin', side: 'top' }; + +export const MarginRight = Template.bind({}); +MarginRight.args = { property: 'margin', side: 'right' }; + +export const MarginBottom = Template.bind({}); +MarginBottom.args = { property: 'margin', side: 'bottom' }; + +export const MarginLeft = Template.bind({}); +MarginLeft.args = { property: 'margin', side: 'left' }; +