-
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.
* Add react import to stories * More fixes for linting * More fixes * Even more, 600ish now * Fixesx
- Loading branch information
James Canning
authored
Dec 4, 2019
1 parent
6665754
commit 43b837f
Showing
171 changed files
with
467 additions
and
426 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,5 +1,7 @@ | ||
import React from 'react'; | ||
|
||
import { Accordion } from './index'; | ||
|
||
export default { title: 'Navigation|Accordion' }; | ||
export const Closed = () => <Accordion isOpen={false} />; | ||
export const Open = () => <Accordion isOpen={true} />; | ||
export const Closed: React.FC = () => <Accordion isOpen={false} />; | ||
export const Open: React.FC = () => <Accordion isOpen={true} />; |
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,12 +1,14 @@ | ||
import React from 'react'; | ||
|
||
import { BrandColorCard } from './index'; | ||
import { COLORS } from '../style'; | ||
|
||
export default { title: 'System|Brand Color' }; | ||
|
||
export const AllColors = () => ( | ||
export const AllColors: React.FC = () => ( | ||
<div> | ||
{Object.entries(COLORS).map(([name, color]) => ( | ||
<BrandColorCard color={color} name={name} /> | ||
<BrandColorCard key={color} color={color} name={name} /> | ||
))} | ||
</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
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
1 change: 1 addition & 0 deletions
1
packages/basil/src/ContentNavigation/ContentNavigation.stories.tsx
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,5 +1,6 @@ | ||
import React from 'react'; | ||
import { CookieMessage } from '../../../website/src/components/CookieMessage/index'; | ||
|
||
export default { title: 'Page|CookieMessage' }; | ||
|
||
export const Default = () => <CookieMessage />; | ||
export const Default: React.FC = () => <CookieMessage />; |
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,5 +1,6 @@ | ||
import React from 'react'; | ||
import { Footer } from '../../../website/src/components/Footer/index'; | ||
|
||
export default { title: 'Page|Footer' }; | ||
|
||
export const Standard = () => <Footer />; | ||
export const Standard: React.FC = () => <Footer />; |
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,5 +1,6 @@ | ||
import React from 'react'; | ||
import { HomepageSplash } from '../../../website/src/components/HomepageSplash/index'; | ||
|
||
export default { title: 'Homepage Splash' }; | ||
|
||
export const Standard = () => <HomepageSplash />; | ||
export const Standard: React.FC = () => <HomepageSplash />; |
3 changes: 2 additions & 1 deletion
3
packages/basil/src/HoverTapTooltip.stories.tsx/HoverTapTooltip.stories.tsx
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,9 +1,11 @@ | ||
import React from 'react'; | ||
|
||
import { CrossIcon } from '../../../website/src/components/CrossIcon'; | ||
import { MenuIcon } from '../../../website/src/components/MenuIcon'; | ||
import { SearchIcon } from '../../../website/src/components/SearchIcon'; | ||
|
||
export default { title: 'Utils|Icons' }; | ||
|
||
export const Search = () => <SearchIcon />; | ||
export const Menu = () => <MenuIcon />; | ||
export const Cross = () => <CrossIcon />; | ||
export const Search: React.FC = () => <SearchIcon />; | ||
export const Menu: React.FC = () => <MenuIcon />; | ||
export const Cross: React.FC = () => <CrossIcon />; |
3 changes: 2 additions & 1 deletion
3
packages/basil/src/InternalAppLink/InternalAppLink.stories.tsx
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,7 +1,8 @@ | ||
import React from 'react'; | ||
import { InternalAppLink } from '../../../website/src/components/InternalAppLink/index'; | ||
|
||
export default { title: 'Utils|Internal App Link' }; | ||
|
||
export const Standard = () => ( | ||
export const Standard: React.FC = () => ( | ||
<InternalAppLink to="#">Test internal app link</InternalAppLink> | ||
); |
7 changes: 4 additions & 3 deletions
7
packages/basil/src/LoadableLoading/LoadableLoading.stories.tsx
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,19 +1,20 @@ | ||
import React from 'react'; | ||
import { LoadableLoading } from '../../../website/src/components/LoadableLoading/index'; | ||
|
||
export default { title: 'Utils|Module Loader' }; | ||
|
||
export const ErrorState = () => ( | ||
export const ErrorState: React.FC = () => ( | ||
<LoadableLoading | ||
error={new Error('failure')} | ||
timedOut={false} | ||
pastDelay={false} | ||
/> | ||
); | ||
|
||
export const TimeOutState = () => ( | ||
export const TimeOutState: React.FC = () => ( | ||
<LoadableLoading error={null} timedOut={true} pastDelay={false} /> | ||
); | ||
|
||
export const PastDelayState = () => ( | ||
export const PastDelayState: React.FC = () => ( | ||
<LoadableLoading error={null} timedOut={false} pastDelay={true} /> | ||
); |
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,6 +1,7 @@ | ||
import React from 'react'; | ||
import { Loader } from '../../../website/src/components/Loader'; | ||
|
||
export default { title: 'Utils|Loader' }; | ||
|
||
export const Light = () => <Loader />; | ||
export const Dark = () => <Loader dark />; | ||
export const Light: React.FC = () => <Loader />; | ||
export const Dark: React.FC = () => <Loader dark />; |
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,4 +1,5 @@ | ||
import React from 'react'; | ||
import { LokiHeader } from '../../../website/src/components/LokiHeader/index'; | ||
|
||
export default { title: 'Page|LokiHeader' }; | ||
export const Standard = () => <LokiHeader />; | ||
export const Standard: React.FC = () => <LokiHeader />; |
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,5 +1,6 @@ | ||
import React from 'react'; | ||
import { LokiMenu } from '../../../website/src/components/LokiMenu/index'; | ||
|
||
export default { title: 'Page|LokiMenu' }; | ||
|
||
export const Standard = () => <LokiMenu />; | ||
export const Standard: React.FC = () => <LokiMenu />; |
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,6 +1,7 @@ | ||
import React from 'react'; | ||
import { LokiSideMenu } from '../../../website/src/components/LokiSideMenu/index'; | ||
|
||
export default { title: 'Page|LokiSideMenu' }; | ||
export const Closed = () => ( | ||
export const Closed: React.FC = () => ( | ||
<LokiSideMenu isOpen={true} onBackdropClick={() => function() {}} /> | ||
); |
3 changes: 2 additions & 1 deletion
3
packages/basil/src/MobileFooterTreats/MobileFooterTreats.stories.tsx
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
3 changes: 2 additions & 1 deletion
3
packages/basil/src/NewsletterSignup/NewsletterSignup.stories.tsx
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,5 +1,6 @@ | ||
import React from 'react'; | ||
import { NewsletterSignup } from '../../../website/src/components/NewsletterSignup/index'; | ||
|
||
export default { title: 'NewsletterSignup' }; | ||
|
||
export const Default = () => <NewsletterSignup />; | ||
export const Default: React.FC = () => <NewsletterSignup />; |
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.