This repository has been archived by the owner on Oct 21, 2020. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #48 from zapify-ui/boxRefactor
Box refactor
- Loading branch information
Showing
8 changed files
with
97 additions
and
35 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 |
---|---|---|
|
@@ -3,4 +3,4 @@ lib | |
node_modules | ||
*.log | ||
.cache | ||
src/components/**/*.css | ||
src/components/**/*.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 |
---|---|---|
|
@@ -13,10 +13,5 @@ exports[`box default test case 1`] = ` | |
}, | ||
} | ||
} | ||
> | ||
This is: | ||
Primary | ||
with textColor: | ||
white | ||
</div> | ||
/> | ||
`; |
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 |
---|---|---|
|
@@ -2,5 +2,4 @@ | |
|
||
.typography { | ||
font-family: $zapFont, sans-serif; | ||
color: silver; | ||
} |
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
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 |
---|---|---|
@@ -1,18 +1,58 @@ | ||
/* eslint-disable import/no-extraneous-dependencies */ | ||
|
||
import React from "react"; | ||
import { storiesOf } from "@storybook/react"; | ||
import { storiesOf, addDecorator } from "@storybook/react"; | ||
import { withInfo } from "@storybook/addon-info"; | ||
import Box from "../components/Box"; | ||
import Typography from "../components/Typography"; | ||
|
||
storiesOf("Box", module) | ||
.add("color padding and margin", () => ( | ||
.addDecorator(withInfo) | ||
.addWithJSX("color primary Text Color black", () => ( | ||
<div> | ||
<center> | ||
<Typography>color primary Text Color black</Typography> | ||
</center>{" "} | ||
<Box color="Primary" textColor="black" p={2} m={2.5} /> | ||
</div> | ||
)) | ||
.addWithJSX("Color Secondary Text color White", () => ( | ||
<div> | ||
<center> | ||
<Typography>Color Secondary Text color White</Typography> | ||
</center>{" "} | ||
<Box color="Secondary" textColor="white" p={2} m={2.5} /> | ||
</div> | ||
)) | ||
.addWithJSX("Color Dark Text color white", () => ( | ||
<div> | ||
<center> | ||
<Typography>Color Dark Text color white</Typography> | ||
</center>{" "} | ||
<Box color="dark" textColor="white" p={2} m={2.5} /> | ||
</div> | ||
)) | ||
.addWithJSX("Color DarkPrimary with textColor White", () => ( | ||
<div> | ||
<center> | ||
<Typography>Color DarkPrimary with textColor White</Typography> | ||
</center>{" "} | ||
<Box color="darkPrimary" textColor="white" p={2} m={2.5} /> | ||
</div> | ||
)) | ||
.addWithJSX("Color DarkSecondary with textColor White", () => ( | ||
<div> | ||
<center> | ||
<Typography>Color DarkSecondary with textColor White</Typography> | ||
</center>{" "} | ||
<Box color="darkSecondary" textColor="white" p={2} m={2.5} /> | ||
<Box color="disabled" textColor="black" p={2} m={2.5} /> | ||
</div> | ||
)) | ||
.add("User Customisation", () => <div />); | ||
.addWithJSX("Color Disabled with textColor Black", () => ( | ||
<div> | ||
<center> | ||
<Typography>Color Disabled with textColor Black</Typography> | ||
</center>{" "} | ||
<Box color="disabled" textColor="black" p={2} m={2.5} /> | ||
</div> | ||
)); |
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