-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(skeleton): add storybook playground story and cleanup (#12450)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
- Loading branch information
1 parent
af2242c
commit e885af3
Showing
10 changed files
with
96 additions
and
195 deletions.
There are no files selected for viewing
82 changes: 0 additions & 82 deletions
82
packages/react/src/components/Skeleton/next/Skeleton.stories.js
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
61 changes: 0 additions & 61 deletions
61
packages/react/src/components/SkeletonPlaceholder/SkeletonPlaceholder-story.js
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
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
25 changes: 25 additions & 0 deletions
25
packages/react/src/components/SkeletonPlaceholder/SkeletonPlaceholder.stories.js
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,25 @@ | ||
/** | ||
* Copyright IBM Corp. 2016, 2018 | ||
* | ||
* This source code is licensed under the Apache-2.0 license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
/* eslint-disable no-console */ | ||
|
||
import React from 'react'; | ||
|
||
import SkeletonPlaceholder from '.'; | ||
import mdx from './SkeletonPlaceholder.mdx'; | ||
|
||
export default { | ||
title: 'Components/Skeleton/SkeletonPlaceholder', | ||
component: SkeletonPlaceholder, | ||
parameters: { | ||
docs: { | ||
page: mdx, | ||
}, | ||
}, | ||
}; | ||
|
||
export const Default = () => <SkeletonPlaceholder />; |
47 changes: 0 additions & 47 deletions
47
packages/react/src/components/SkeletonText/SkeletonText-story.js
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
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
57 changes: 57 additions & 0 deletions
57
packages/react/src/components/SkeletonText/SkeletonText.stories.js
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 @@ | ||
/** | ||
* Copyright IBM Corp. 2016, 2018 | ||
* | ||
* This source code is licensed under the Apache-2.0 license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
/* eslint-disable no-console */ | ||
|
||
import React from 'react'; | ||
|
||
import SkeletonText from '.'; | ||
import mdx from './SkeletonText.mdx'; | ||
|
||
export default { | ||
title: 'Components/Skeleton/SkeletonText', | ||
component: SkeletonText, | ||
parameters: { | ||
docs: { | ||
page: mdx, | ||
}, | ||
}, | ||
}; | ||
|
||
export const Default = () => <SkeletonText />; | ||
|
||
export const Playground = (args) => <SkeletonText {...args} />; | ||
|
||
Playground.argTypes = { | ||
className: { | ||
control: false, | ||
}, | ||
heading: { | ||
control: { | ||
type: 'boolean', | ||
}, | ||
defaultValue: false, | ||
}, | ||
paragraph: { | ||
control: { | ||
type: 'boolean', | ||
}, | ||
defaultValue: false, | ||
}, | ||
width: { | ||
control: { | ||
type: 'text', | ||
}, | ||
defaultValue: '100%', | ||
}, | ||
lineCount: { | ||
control: { | ||
type: 'number', | ||
}, | ||
defaultValue: 3, | ||
}, | ||
}; |