Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PWA-156] Added Drawer Footer Styleguide. #2093

Merged
merged 32 commits into from
Jan 27, 2020
Merged
Show file tree
Hide file tree
Changes from 31 commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
b70e3f7
Add color page
jimbo Dec 12, 2019
f2cbec7
Add new tones
jimbo Jan 2, 2020
6552d20
Update colors
jimbo Jan 2, 2020
ab2f6a8
Add tokens for new tones
jimbo Jan 2, 2020
80b34df
Add sections
jimbo Jan 3, 2020
b7e0928
Adjust break styles
jimbo Jan 3, 2020
a3cefd2
Adjust heading size
jimbo Jan 3, 2020
3d6e090
Merge branch 'develop' into jimbo/styleguide-color
supernova-at Jan 8, 2020
3744970
Merge branch 'develop' into jimbo/styleguide-color
jimbo Jan 8, 2020
43176ee
Merge branch 'develop' into jimbo/styleguide-color
jimbo Jan 8, 2020
3254aff
Add button section to styleguide
jimbo Jan 3, 2020
a810f83
Add buttons page
jimbo Jan 7, 2020
a1d2fa6
Add button component
jimbo Jan 7, 2020
3fd794a
Add glow
jimbo Jan 7, 2020
9be7003
Add examples
jimbo Jan 8, 2020
92bd5c9
Added footer skeleton to styleguide.
revanth0212 Jan 9, 2020
99c2fbe
Merge remote-tracking branch 'origin/jimbo/styleguide-color' into rev…
revanth0212 Jan 9, 2020
58036f6
Updated webpack to support venia-ui linking.
revanth0212 Jan 9, 2020
1275e9b
Update snapshot
jimbo Jan 9, 2020
f8375ca
Removing venia-ui connections.
revanth0212 Jan 9, 2020
225db2a
Temp.
revanth0212 Jan 9, 2020
50e1952
Merged jimbo/styleguide-buttons into current.
revanth0212 Jan 9, 2020
ffc3bf2
Added sample usage.
revanth0212 Jan 9, 2020
a913cc0
Added couple behaviors.
revanth0212 Jan 10, 2020
cc5560b
Added another behavior.
revanth0212 Jan 10, 2020
31a2d82
Added placeholder notes for sections.
revanth0212 Jan 10, 2020
8676808
PR changes.
revanth0212 Jan 13, 2020
601dcbe
mdx -> md
revanth0212 Jan 13, 2020
ea6190e
Resolved merge conflicts.
revanth0212 Jan 21, 2020
0414331
Minor.
revanth0212 Jan 21, 2020
fb125e1
Merge branch 'develop' into revanth/footer-styleguide
dpatil-magento Jan 22, 2020
0a881f0
Merge branch 'develop' into revanth/footer-styleguide
revanth0212 Jan 27, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions packages/venia-styleguide/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,8 @@
"@babel/plugin-syntax-jsx": "~7.2.0",
"@babel/plugin-transform-react-jsx": "~7.3.0",
"@babel/plugin-transform-runtime": "~7.4.4",
"@babel/preset-env": "~7.3.4",
"@magento/babel-preset-peregrine": "~1.0.0",
"@mdx-js/loader": "~1.5.1",
"@mdx-js/loader": "~1.5.3",
"babel-core": "~7.0.0-bridge.0",
"babel-jest": "~24.1.0",
"babel-loader": "~8.0.5",
Expand Down
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;
}
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;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from './DrawerFooter';
2 changes: 2 additions & 0 deletions packages/venia-styleguide/src/components/Routes/routes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@ groups: !!pairs
label: "Components"
items:
- "button"
- "drawer-footer"

pages: !!pairs
- button: "Button"
- color: "Color"
- design-tokens: "Design tokens"
- principles: "Principles"
- typography: "Typography"
- drawer-footer: 'Drawer Footer'
30 changes: 30 additions & 0 deletions packages/venia-styleguide/src/pages/color/colors.yml
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 packages/venia-styleguide/src/pages/drawer-footer/DrawerFooter.md
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;
1 change: 1 addition & 0 deletions packages/venia-styleguide/src/pages/drawer-footer/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from './DrawerFooter.md';
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.
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.
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.
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.
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>
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2267,7 +2267,7 @@
request "^2.83.0"
request-promise "^4.2.2"

"@mdx-js/loader@~1.5.1":
"@mdx-js/loader@~1.5.3":
version "1.5.3"
resolved "https://registry.yarnpkg.com/@mdx-js/loader/-/loader-1.5.3.tgz#0bfec6528a17b618763d2d86a5e0c9d351ac19be"
integrity sha512-m3bT9b9xY8wU1sQwHhSuFiIwFm0LP7onDpm2rb3xikHzXNY7yfL1/lV9XF4iecSmd86/4I1L6RKE61Dq1jLqjA==
Expand Down