This repository has been archived by the owner on Oct 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: v5 Co-authored-by: Mathew Morris <[email protected]> Co-authored-by: Jaden Lemmon <[email protected]> Co-authored-by: Claire Hsu <[email protected]>
- Loading branch information
Showing
115 changed files
with
14,417 additions
and
19,092 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 |
---|---|---|
@@ -1,3 +1,6 @@ | ||
{ | ||
"extends": "sappira/react" | ||
"extends": "sappira/react", | ||
"rules": { | ||
"import/no-named-as-default": 0 | ||
} | ||
} |
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 @@ | ||
import '@storybook/addon-actions/register'; | ||
import '@storybook/addon-links/register'; | ||
import '@storybook/addon-a11y/register'; | ||
import '@storybook/addon-storysource/register'; | ||
import '@storybook/addon-knobs/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,57 @@ | ||
import React from 'react'; | ||
import { configure, addDecorator,addParameters } from '@storybook/react'; | ||
import { withA11y } from '@storybook/addon-a11y'; | ||
import { withKnobs } from '@storybook/addon-knobs'; | ||
import { createGlobalStyle } from 'styled-components'; | ||
import { ThemeProvider } from '../src'; | ||
import theme from './theme'; | ||
|
||
const GlobalStyle = createGlobalStyle` | ||
@font-face { | ||
font-family: "Tiempos"; | ||
font-weight: 500; | ||
font-style: normal; | ||
src: url(//cdn.heydoctor.com/fonts/TiemposHeadlineWeb-Semibold.woff2) format('woff2'); | ||
} | ||
* { | ||
font-family: "Avenir", sans-serif !important; | ||
box-sizing: border-box; | ||
} | ||
body { | ||
color: ${theme.color}; | ||
} | ||
h1 { | ||
font-family: "Tiempos", serif !important; | ||
color: black; | ||
} | ||
`; | ||
|
||
addParameters({ | ||
options: { | ||
theme, | ||
panelPosition: 'bottom' | ||
}, | ||
}); | ||
|
||
addDecorator(withKnobs); | ||
addDecorator(withA11y); | ||
addDecorator(story => ( | ||
<ThemeProvider> | ||
<> | ||
<GlobalStyle /> | ||
{story()} | ||
</> | ||
</ThemeProvider> | ||
)); | ||
|
||
// automatically import all files ending in *.stories.js | ||
configure( | ||
[ | ||
require.context('../src', true, /\.stories\.mdx$/), | ||
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,5 @@ | ||
<style> | ||
.sidebar-subheading { | ||
letter-spacing: 0 !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
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,7 @@ | ||
<link rel="stylesheet" href="https://cdn.materialdesignicons.com/2.8.94/css/materialdesignicons.min.css" /> | ||
|
||
<style> | ||
.sbdocs-p { | ||
font-size: 18px !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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { create } from '@storybook/theming'; | ||
|
||
export default create({ | ||
base: 'light', | ||
color: '#1B202B', | ||
|
||
brandTitle: 'HeyDoctor', | ||
brandUrl: 'https://www.heydoctor.com', | ||
brandImage: 'https://cdn.heydoctor.com/images/logos/heydoctor-wordmark-dark.svg', | ||
}); |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.