-
Notifications
You must be signed in to change notification settings - Fork 683
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PWA-156] Added Drawer Footer Styleguide. (#2093)
* Add color page * Add new tones * Update colors * Add tokens for new tones * Add sections * Adjust break styles * Adjust heading size * Add button section to styleguide * Add buttons page * Add button component * Add glow * Add examples * Added footer skeleton to styleguide. * Updated webpack to support venia-ui linking. * Update snapshot * Removing venia-ui connections. * Temp. * Added sample usage. * Added couple behaviors. * Added another behavior. * Added placeholder notes for sections. * PR changes. * mdx -> md * Minor. Co-authored-by: Jimmy Sanford <[email protected]> Co-authored-by: Andy Terranova <[email protected]> Co-authored-by: Devagouda <[email protected]>
- Loading branch information
1 parent
0d72488
commit 5542122
Showing
14 changed files
with
119 additions
and
3 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
9 changes: 9 additions & 0 deletions
9
packages/venia-styleguide/src/components/DrawerFooter/DrawerFooter.css
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,9 @@ | ||
.root { | ||
align-items: center; | ||
background-color: rgb(var(--venia-global-color-gray-50)); | ||
display: grid; | ||
gap: 0.75rem; | ||
grid-auto-flow: column; | ||
height: 5.5rem; | ||
justify-items: center; | ||
} |
9 changes: 9 additions & 0 deletions
9
packages/venia-styleguide/src/components/DrawerFooter/DrawerFooter.js
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,9 @@ | ||
import React from 'react'; | ||
|
||
import classes from './DrawerFooter.css'; | ||
|
||
const DrawerFooter = props => { | ||
return <div className={classes.root}>{props.children}</div>; | ||
}; | ||
|
||
export default DrawerFooter; |
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 @@ | ||
export { default } from './DrawerFooter'; |
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
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,30 @@ | ||
--- | ||
|
||
hues: !!pairs | ||
- gray: !!pairs | ||
- 50: "255 255 255" | ||
- 75: "250 250 250" | ||
- 100: "245 245 245" | ||
- 200: "235 235 235" | ||
- 300: "224 224 224" | ||
- 400: "204 204 204" | ||
- 500: "163 163 163" | ||
- 600: "122 122 122" | ||
- 700: "82 82 82" | ||
- 800: "61 61 61" | ||
- 900: "31 31 31" | ||
- red: !!pairs | ||
- 400: "197 27 72" | ||
- 500: "188 16 62" | ||
- 600: "176 7 52" | ||
- 700: "163 0 44" | ||
- sea: !!pairs | ||
- 400: 224 246 242 | ||
- 500: 215 244 239 | ||
- 600: 206 243 236 | ||
- 700: 197 242 234 | ||
- teal: !!pairs | ||
- 400: "22 155 162" | ||
- 500: "13 143 150" | ||
- 600: "6 131 137" | ||
- 700: "0 115 120" |
17 changes: 17 additions & 0 deletions
17
packages/venia-styleguide/src/pages/drawer-footer/DrawerFooter.md
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,17 @@ | ||
import Article from '../../components/Article'; | ||
import Section from '../../components/Section'; | ||
import TableOfContents from '../../components/TableOfContents'; | ||
|
||
import About from './sections/About/index.md'; | ||
import Behaviors from './sections/Behaviors/index.md'; | ||
|
||
<About /> | ||
<Section title="Table of Contents"> | ||
<TableOfContents /> | ||
</Section> | ||
<Section title="Behaviors"> | ||
<Behaviors /> | ||
</Section> | ||
|
||
export const title = 'Drawer Footer'; | ||
export default Article; |
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 @@ | ||
export { default } from './DrawerFooter.md'; |
1 change: 1 addition & 0 deletions
1
packages/venia-styleguide/src/pages/drawer-footer/sections/About/index.md
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 @@ | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce quis euismod nisi. Morbi metus mauris, volutpat ac aliquet eget, laoreet vel tortor. Pellentesque commodo tellus nibh, vitae varius lectus pharetra in. Aliquam quis nisi ligula. Proin sit amet mauris ac lacus efficitur varius eget in urna. Ut sagittis feugiat ex et dictum. Nam ut tempor urna, at dapibus erat. Aenean ac dui a tellus venenatis accumsan. |
3 changes: 3 additions & 0 deletions
3
...enia-styleguide/src/pages/drawer-footer/sections/Behaviors/FormButtonsLayout.md
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,3 @@ | ||
#### Form Buttons Layout | ||
|
||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce quis euismod nisi. Morbi metus mauris, volutpat ac aliquet eget, laoreet vel tortor. |
3 changes: 3 additions & 0 deletions
3
...nia-styleguide/src/pages/drawer-footer/sections/Behaviors/SingleButtonLayout.md
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,3 @@ | ||
#### Single Button Layout | ||
|
||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce quis euismod nisi. Morbi metus mauris, volutpat ac aliquet eget, laoreet vel tortor. |
3 changes: 3 additions & 0 deletions
3
.../venia-styleguide/src/pages/drawer-footer/sections/Behaviors/TwoButtonLayout.md
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,3 @@ | ||
#### Two Button Layout | ||
|
||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce quis euismod nisi. Morbi metus mauris, volutpat ac aliquet eget, laoreet vel tortor. |
38 changes: 38 additions & 0 deletions
38
packages/venia-styleguide/src/pages/drawer-footer/sections/Behaviors/index.md
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,38 @@ | ||
import Columns from '../../../../components/Columns'; | ||
import ExampleGroup from '../../../../components/ExampleGroup'; | ||
|
||
import SingleButtonLayout from './SingleButtonLayout.md'; | ||
import TwoButtonLayout from './TwoButtonLayout.md'; | ||
import FormButtonsLayout from './FormButtonsLayout.md'; | ||
|
||
import DrawerFooter from '../../../../components/DrawerFooter/DrawerFooter'; | ||
import Button from '../../../../components/Button'; | ||
|
||
<Columns reverse> | ||
<SingleButtonLayout /> | ||
<ExampleGroup> | ||
<DrawerFooter> | ||
<Button priority="high">Sign In</Button> | ||
</DrawerFooter> | ||
</ExampleGroup> | ||
</Columns> | ||
|
||
<Columns reverse> | ||
<TwoButtonLayout /> | ||
<ExampleGroup> | ||
<DrawerFooter> | ||
<Button priority="normal">Back</Button> | ||
<Button priority="normal">Next</Button> | ||
</DrawerFooter> | ||
</ExampleGroup> | ||
</Columns> | ||
|
||
<Columns reverse> | ||
<FormButtonsLayout /> | ||
<ExampleGroup> | ||
<DrawerFooter> | ||
<Button priority="normal">Cancel</Button> | ||
<Button priority="high">Submit</Button> | ||
</DrawerFooter> | ||
</ExampleGroup> | ||
</Columns> |
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