-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
562 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
export const NO_SPACE = 'no-space'; | ||
export const SPACE_XXXSMALL = 'xxxsmall'; | ||
export const SPACE_XXSMALL = 'xxsmall'; | ||
export const SPACE_XSMALL = 'xsmall'; | ||
export const SPACE_SMALL = 'small'; | ||
export const SPACE_MEDIUM = 'medium'; | ||
export const SPACE_LARGE = 'large'; | ||
export const SPACE_XLARGE = 'xlarge'; | ||
export const SPACE_XXLARGE = 'xxlarge'; | ||
export const SPACE_XXXLARGE = 'xxxlarge'; | ||
|
||
export const SPACES = [ | ||
NO_SPACE, | ||
SPACE_XXXSMALL, | ||
SPACE_XXSMALL, | ||
SPACE_XSMALL, | ||
SPACE_SMALL, | ||
SPACE_MEDIUM, | ||
SPACE_LARGE, | ||
SPACE_XLARGE, | ||
SPACE_XXLARGE, | ||
SPACE_XXXLARGE, | ||
]; |
200 changes: 200 additions & 0 deletions
200
packages/ui/src/layout/flex-stack/__snapshots__/flex-stack.stories.storyshot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,200 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Storyshots Layout/FlexStack default 1`] = ` | ||
<div | ||
style={ | ||
Object { | ||
"height": "100%", | ||
"padding": "24px", | ||
"width": "100%", | ||
} | ||
} | ||
> | ||
<FlexStack | ||
as="div" | ||
className="" | ||
space="no-space" | ||
> | ||
<Box | ||
as="div" | ||
className="" | ||
> | ||
Lorem ipsum 1 | ||
</Box> | ||
<Box | ||
as="div" | ||
className="" | ||
> | ||
Lorem ipsum 2 | ||
</Box> | ||
Lorem ipsum 3 | ||
</FlexStack> | ||
</div> | ||
`; | ||
|
||
exports[`Storyshots Layout/FlexStack single item 1`] = ` | ||
<div | ||
style={ | ||
Object { | ||
"height": "100%", | ||
"padding": "24px", | ||
"width": "100%", | ||
} | ||
} | ||
> | ||
<FlexStack | ||
as="div" | ||
className="" | ||
space="no-space" | ||
> | ||
<Box | ||
as="div" | ||
className="" | ||
> | ||
Lorem ipsum | ||
</Box> | ||
</FlexStack> | ||
</div> | ||
`; | ||
|
||
exports[`Storyshots Layout/FlexStack with custom wrapper 1`] = ` | ||
<div | ||
style={ | ||
Object { | ||
"height": "100%", | ||
"padding": "24px", | ||
"width": "100%", | ||
} | ||
} | ||
> | ||
<FlexStack | ||
as="main" | ||
className="wrapper" | ||
space="no-space" | ||
> | ||
<Box | ||
as="div" | ||
className="" | ||
> | ||
Lorem ipsum 1 | ||
</Box> | ||
<Box | ||
as="div" | ||
className="" | ||
> | ||
Lorem ipsum 2 | ||
</Box> | ||
</FlexStack> | ||
</div> | ||
`; | ||
|
||
exports[`Storyshots Layout/FlexStack with large space 1`] = ` | ||
<div | ||
style={ | ||
Object { | ||
"height": "100%", | ||
"padding": "24px", | ||
"width": "100%", | ||
} | ||
} | ||
> | ||
<FlexStack | ||
as="div" | ||
className="" | ||
space="large" | ||
> | ||
<Box | ||
as="div" | ||
className="" | ||
> | ||
Lorem ipsum 1 | ||
</Box> | ||
<Box | ||
as="div" | ||
className="" | ||
> | ||
Lorem ipsum 2 | ||
</Box> | ||
<Box | ||
as="div" | ||
className="" | ||
> | ||
Lorem ipsum 3 | ||
</Box> | ||
</FlexStack> | ||
</div> | ||
`; | ||
|
||
exports[`Storyshots Layout/FlexStack with nested stack 1`] = ` | ||
<div | ||
style={ | ||
Object { | ||
"height": "100%", | ||
"padding": "24px", | ||
"width": "100%", | ||
} | ||
} | ||
> | ||
<FlexStack | ||
as="div" | ||
className="" | ||
space="large" | ||
> | ||
<Box | ||
as="div" | ||
className="" | ||
> | ||
Lorem ipsum 1 | ||
</Box> | ||
<Box | ||
as="div" | ||
className="" | ||
> | ||
Lorem ipsum 2 | ||
</Box> | ||
<FlexStack | ||
as="div" | ||
className="" | ||
space="small" | ||
> | ||
<Box | ||
as="div" | ||
className="" | ||
> | ||
Lorem ipsum 3.1 | ||
</Box> | ||
<Box | ||
as="div" | ||
className="" | ||
> | ||
Lorem ipsum 3.2 | ||
</Box> | ||
</FlexStack> | ||
</FlexStack> | ||
</div> | ||
`; | ||
|
||
exports[`Storyshots Layout/FlexStack with null child 1`] = ` | ||
<div | ||
style={ | ||
Object { | ||
"height": "100%", | ||
"padding": "24px", | ||
"width": "100%", | ||
} | ||
} | ||
> | ||
<FlexStack | ||
as="div" | ||
className="" | ||
space="large" | ||
> | ||
<Box | ||
as="div" | ||
className="" | ||
> | ||
Lorem ipsum 1 | ||
</Box> | ||
</FlexStack> | ||
</div> | ||
`; |
Oops, something went wrong.