-
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.
Move List dependencies to same file as removes the story danger requirement. Changes danger to use the package-lock Updates the story reverence in the dangerfile Update the github build script. see #81
- Loading branch information
1 parent
1d410d9
commit 97ea31c
Showing
20 changed files
with
51 additions
and
112 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
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,31 @@ | ||
import { Meta, Story } from '@storybook/react' | ||
import React from 'react' | ||
import { Flex, SvgIcon } from '..' | ||
import { Copy, usePortalled } from '../../docs/util' | ||
import * as Icons from './' | ||
|
||
export default { | ||
title: 'Components/Icons', | ||
component: SvgIcon, | ||
} as Meta | ||
|
||
export const Default: Story = (_args, context) => { | ||
const portalled = usePortalled(context) | ||
const icons = Object.keys(Icons).filter((name) => /[A-Z]/.test(name[0])) | ||
return ( | ||
<Flex css={{ flexWrap: 'wrap' }}> | ||
{icons.map((key) => { | ||
return ( | ||
<Copy | ||
css={{ color: '$text' }} | ||
portalled={portalled} | ||
key={key} | ||
content={key} | ||
> | ||
{React.createElement((Icons as Record<string, React.FC>)[key])} | ||
</Copy> | ||
) | ||
})} | ||
</Flex> | ||
) | ||
} |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 +1,5 @@ | ||
export * from './List' | ||
export * from './ListItem' | ||
export * from './ListItemIcon' | ||
export * from './ListItemSecondaryAction' | ||
export * from './ListItemText' |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
src/components/ListItemSecondaryAction/ListItemSecondaryAction.test.tsx
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
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 |
---|---|---|
@@ -1,32 +1,14 @@ | ||
import { Meta, Story } from '@storybook/react' | ||
import React from 'react' | ||
import { SvgIcon } from '.' | ||
import { Flex } from '..' | ||
import { Copy, usePortalled } from '../../docs/util' | ||
import * as Icons from '../Icons' | ||
|
||
export default { | ||
title: 'Components/Icons', | ||
title: 'Components/SvgIcon', | ||
component: SvgIcon, | ||
} as Meta | ||
|
||
export const Default: Story = (_args, context) => { | ||
const portalled = usePortalled(context) | ||
const icons = Object.keys(Icons).filter((name) => /[A-Z]/.test(name[0])) | ||
return ( | ||
<Flex css={{ flexWrap: 'wrap' }}> | ||
{icons.map((key) => { | ||
return ( | ||
<Copy | ||
css={{ color: '$text' }} | ||
portalled={portalled} | ||
key={key} | ||
content={key} | ||
> | ||
{React.createElement((Icons as Record<string, React.FC>)[key])} | ||
</Copy> | ||
) | ||
})} | ||
</Flex> | ||
) | ||
} | ||
export const Default: Story = (args) => ( | ||
<SvgIcon {...args}> | ||
<path d="M9,20.42L2.79,14.21L5.62,11.38L9,14.77L18.88,4.88L21.71,7.71L9,20.42Z" /> | ||
</SvgIcon> | ||
) |
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