-
Notifications
You must be signed in to change notification settings - Fork 262
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
1 parent
6363cfc
commit 3916dbc
Showing
22 changed files
with
3,607 additions
and
151 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
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 @@ | ||
import "@storybook/addon-actions/register"; | ||
import "@storybook/addon-knobs/register"; | ||
import "@storybook/addon-storysource/register"; |
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,25 @@ | ||
import React from "react"; | ||
import { configure, addDecorator, addParameters } from "@storybook/react"; | ||
import { themes } from "@storybook/theming"; | ||
|
||
addParameters({ | ||
options: { | ||
theme: themes.dark | ||
} | ||
}); | ||
|
||
import { ThemeProvider } from "styled-components"; | ||
import GlobalStyle from "../src/ui/GlobalStyle"; | ||
import theme from "../src/ui/theme"; | ||
|
||
addDecorator(story => ( | ||
<ThemeProvider theme={theme}> | ||
<> | ||
<GlobalStyle /> | ||
{story()} | ||
</> | ||
</ThemeProvider> | ||
)); | ||
|
||
// automatically import all files ending in *.stories.js | ||
configure([require.context("../src", true, /\.stories\.js$/)], module); |
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 @@ | ||
module.exports = ["@storybook/addon-docs/react/preset"]; |
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 @@ | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<link href="https://fonts.googleapis.com/css?family=Lato:300,400,700" rel="stylesheet"> | ||
<link href="https://fonts.googleapis.com/css?family=Zilla+Slab:400,700" rel="stylesheet"> |
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,14 @@ | ||
import React from "react"; | ||
import { action } from "@storybook/addon-actions"; | ||
import BooleanInput from "./BooleanInput"; | ||
|
||
export default { | ||
title: "BooleanInput", | ||
component: BooleanInput | ||
}; | ||
|
||
export const booleanInput = () => <BooleanInput onChange={action("onChange")} />; | ||
|
||
export const checked = () => <BooleanInput value={true} onChange={action("onChange")} />; | ||
|
||
export const disabled = () => <BooleanInput disabled value={true} onChange={action("onChange")} />; |
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,19 @@ | ||
import React from "react"; | ||
import { Button, MediumButton, LargeButton, SecondaryButton, MenuButton } from "./Button"; | ||
|
||
export default { | ||
title: "Button", | ||
component: Button | ||
}; | ||
|
||
export const button = () => <Button>Default Button</Button>; | ||
|
||
export const disabled = () => <Button disabled>Medium Button</Button>; | ||
|
||
export const mediumButton = () => <MediumButton>Medium Button</MediumButton>; | ||
|
||
export const largeButton = () => <LargeButton>Large Button</LargeButton>; | ||
|
||
export const secondaryButton = () => <SecondaryButton>Secondary Button</SecondaryButton>; | ||
|
||
export const menuButton = () => <MenuButton>Menu Button</MenuButton>; |
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,10 @@ | ||
import React from "react"; | ||
import { action } from "@storybook/addon-actions"; | ||
import ColorInput from "./ColorInput"; | ||
|
||
export default { | ||
title: "ColorInput", | ||
component: ColorInput | ||
}; | ||
|
||
export const colorInput = () => <ColorInput onChange={action("onChange")} />; |
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,10 @@ | ||
import React from "react"; | ||
import { action } from "@storybook/addon-actions"; | ||
import CompoundNumericInput from "./CompoundNumericInput"; | ||
|
||
export default { | ||
title: "CompoundNumericInput", | ||
component: CompoundNumericInput | ||
}; | ||
|
||
export const compoundNumericInput = () => <CompoundNumericInput onChange={action("onChange")} />; |
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,10 @@ | ||
import React from "react"; | ||
import { action } from "@storybook/addon-actions"; | ||
import EulerInput from "./EulerInput"; | ||
|
||
export default { | ||
title: "EulerInput", | ||
component: EulerInput | ||
}; | ||
|
||
export const eulerInput = () => <EulerInput onChange={action("onChange")} />; |
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,10 @@ | ||
import React from "react"; | ||
import { action } from "@storybook/addon-actions"; | ||
import FileInput from "./FileInput"; | ||
|
||
export default { | ||
title: "FileInput", | ||
component: FileInput | ||
}; | ||
|
||
export const fileInput = () => <FileInput onChange={action("onChange")} />; |
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,10 @@ | ||
import React from "react"; | ||
import { action } from "@storybook/addon-actions"; | ||
import NumericInput from "./NumericInput"; | ||
|
||
export default { | ||
title: "NumericInput", | ||
component: NumericInput | ||
}; | ||
|
||
export const numericInput = () => <NumericInput onChange={action("onChange")} />; |
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 ProgressBar from "./ProgressBar"; | ||
|
||
export default { | ||
title: "ProgressBar", | ||
component: ProgressBar | ||
}; | ||
|
||
export const progressBar = () => <ProgressBar />; |
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,10 @@ | ||
import React from "react"; | ||
import { action } from "@storybook/addon-actions"; | ||
import Scrubber from "./Scrubber"; | ||
|
||
export default { | ||
title: "Scrubber", | ||
component: Scrubber | ||
}; | ||
|
||
export const scrubber = () => <Scrubber onChange={action("onChange")}>Scrubber Label</Scrubber>; |
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,10 @@ | ||
import React from "react"; | ||
import { action } from "@storybook/addon-actions"; | ||
import Slider from "./Slider"; | ||
|
||
export default { | ||
title: "Slider", | ||
component: Slider | ||
}; | ||
|
||
export const slider = () => <Slider onChange={action("onChange")} />; |
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,10 @@ | ||
import React from "react"; | ||
import { action } from "@storybook/addon-actions"; | ||
import StringInput from "./StringInput"; | ||
|
||
export default { | ||
title: "StringInput", | ||
component: StringInput | ||
}; | ||
|
||
export const stringInput = () => <StringInput onChange={action("onChange")} />; |
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,10 @@ | ||
import React from "react"; | ||
import { action } from "@storybook/addon-actions"; | ||
import Vector3Input from "./Vector3Input"; | ||
|
||
export default { | ||
title: "Vector3Input", | ||
component: Vector3Input | ||
}; | ||
|
||
export const vector3Input = () => <Vector3Input onChange={action("onChange")} />; |
Oops, something went wrong.