-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: remove extra uses of pseudobox, remove pseudobox examples, remov…
…e from stories
- Loading branch information
1 parent
df9fee6
commit bda453e
Showing
12 changed files
with
82 additions
and
24 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
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,58 @@ | ||
import React from 'react'; | ||
import { Meta, Story } from '@storybook/react'; | ||
import { Box, BoxProps, Stack } from '.'; | ||
|
||
const meta: Meta = { | ||
title: 'Box', | ||
component: Box, | ||
argTypes: { | ||
children: { | ||
control: { | ||
type: 'text', | ||
}, | ||
}, | ||
}, | ||
parameters: { | ||
controls: { expanded: true }, | ||
}, | ||
}; | ||
|
||
export default meta; | ||
|
||
const Template: Story<BoxProps> = (args: Omit<BoxProps, 'as'>) => ( | ||
<Box {...args} /> | ||
); | ||
|
||
export const Default = Template.bind({}); | ||
Default.args = { | ||
children: 'Basic Box', | ||
}; | ||
|
||
export const PseudoProps = () => ( | ||
<Stack horizontal> | ||
<Box _hover={{ bg: 'red.500' }}>Hover Box</Box> | ||
<Box as="button" _focus={{ bg: 'red.500' }}> | ||
Focus Button | ||
</Box> | ||
</Stack> | ||
); | ||
|
||
// export const Variants = () => ( | ||
// <Stack horizontal> | ||
// <Button variant="primary">Primary Button</Button> | ||
// <Button variant="secondary">Secondary Button</Button> | ||
// <Button variant="tertiary">Tertiary Button</Button> | ||
// </Stack> | ||
// ); | ||
|
||
// export const LoadingButton = Template.bind({}); | ||
// LoadingButton.args = { | ||
// children: 'Basic Button', | ||
// isLoading: true, | ||
// }; | ||
|
||
// export const DisabledButton = Template.bind({}); | ||
// DisabledButton.args = { | ||
// children: 'Basic Button', | ||
// disabled: 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
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