-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: tweaked storybook version, updated title format, and hoping thi…
…s will help with fonts?
- Loading branch information
1 parent
40c83a8
commit c71ec21
Showing
57 changed files
with
1,766 additions
and
1,286 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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,5 @@ | ||
<style type="text/css"> | ||
[href='http://localhost:54979/'] { | ||
display: none !important; | ||
} | ||
</style> |
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
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
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
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,16 @@ | ||
import React from 'react'; | ||
import { storiesOf } from '@storybook/react'; | ||
import { withSmartKnobs } from 'storybook-addon-smart-knobs'; | ||
import React from "react"; | ||
import { storiesOf } from "@storybook/react"; | ||
import { withSmartKnobs } from "storybook-addon-smart-knobs"; | ||
|
||
import { Badge } from './'; | ||
import { Badge } from "./"; | ||
|
||
const parameters = { | ||
component: Badge, | ||
componentSubtitle: 'Utilize <Badge /> to present a notification badge', | ||
jest: ['Badge'], | ||
componentSubtitle: "Utilize <Badge /> to present a notification badge", | ||
jest: ["Badge"] | ||
}; | ||
|
||
storiesOf('components/Badge', module) | ||
storiesOf("components | Badge", module) | ||
.addParameters(parameters) | ||
.addDecorator( | ||
withSmartKnobs({ ignoreProps: [] }), | ||
) | ||
.add('Default', () => <Badge count={1} />); | ||
.addDecorator(withSmartKnobs({ ignoreProps: [] })) | ||
.add("Default", () => <Badge count={1} />); |
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,27 +1,29 @@ | ||
import React from 'react'; | ||
import { storiesOf } from '@storybook/react'; | ||
import { withSmartKnobs } from 'storybook-addon-smart-knobs'; | ||
import { select, boolean } from '@storybook/addon-knobs'; | ||
import { Button } from './'; | ||
import iconArray from '../Icon/helpers/getIconArray'; | ||
import React from "react"; | ||
import { storiesOf } from "@storybook/react"; | ||
import { withSmartKnobs } from "storybook-addon-smart-knobs"; | ||
import { select, boolean } from "@storybook/addon-knobs"; | ||
import { Button } from "./"; | ||
import iconArray from "../Icon/helpers/getIconArray"; | ||
|
||
const parameters = { | ||
component: Button, | ||
componentSubtitle: 'The <Button /> tag defines a clickable button', | ||
jest: ['Button'], | ||
componentSubtitle: "The <Button /> tag defines a clickable button", | ||
jest: ["Button"] | ||
}; | ||
|
||
const optionalIconArray = ['', ...iconArray]; | ||
const optionalIconArray = ["", ...iconArray]; | ||
|
||
storiesOf('components/Button', module) | ||
storiesOf("components | Button", module) | ||
.addParameters(parameters) | ||
.addDecorator(withSmartKnobs({ ignoreProps: ['disabled', 'iconLeft', 'iconRight'] })) | ||
.add('Default', (() => ( | ||
.addDecorator( | ||
withSmartKnobs({ ignoreProps: ["disabled", "iconLeft", "iconRight"] }) | ||
) | ||
.add("Default", () => ( | ||
<Button | ||
disabled={boolean('disabled', false)} | ||
iconLeft={select('iconLeft', optionalIconArray, '')} | ||
iconRight={select('iconRight', optionalIconArray, '')} | ||
disabled={boolean("disabled", false)} | ||
iconLeft={select("iconLeft", optionalIconArray, "")} | ||
iconRight={select("iconRight", optionalIconArray, "")} | ||
> | ||
Label | ||
</Button> | ||
))); | ||
)); |
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
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
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
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
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
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
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
Oops, something went wrong.