forked from carbon-design-system/carbon-for-ibm-dotcom
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(storybook): update tearsheet and sidepanel stories
- Loading branch information
Showing
24 changed files
with
1,602 additions
and
1,478 deletions.
There are no files selected for viewing
Binary file added
BIN
+6.98 MB
.yarn/cache/@carbon-icons-react-npm-11.39.0-d5ecf4a23a-f4cd9b9df6.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
31 changes: 0 additions & 31 deletions
31
packages/carbon-web-components/src/components/ai-skeleton/ai-skeleton-icon-story.ts
This file was deleted.
Oops, something went wrong.
34 changes: 34 additions & 0 deletions
34
packages/carbon-web-components/src/components/ai-skeleton/ai-skeleton-icon.stories.ts
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,34 @@ | ||
/** | ||
* @license | ||
* | ||
* Copyright IBM Corp. 2019, 2024 | ||
* | ||
* This source code is licensed under the Apache-2.0 license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
import { html } from 'lit'; | ||
import './ai-skeleton-icon'; | ||
|
||
export const Default = { | ||
// This story doesn't accept any args. | ||
args: {}, | ||
argTypes: {}, | ||
parameters: { | ||
percy: { | ||
skip: true, | ||
}, | ||
}, | ||
render: () => { | ||
html`<cds-ai-skeleton-icon | ||
custom-styles="margin: 50px"></cds-ai-skeleton-icon> | ||
<cds-ai-skeleton-icon | ||
custom-styles="margin: 50px; width: 24px; height: 24px"></cds-ai-skeleton-icon>`; | ||
}, | ||
}; | ||
|
||
const meta = { | ||
title: 'Experimental/AISkeleton/AISkeletonIcon', | ||
}; | ||
|
||
export default meta; |
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
56 changes: 0 additions & 56 deletions
56
packages/carbon-web-components/src/components/ai-skeleton/ai-skeleton-text-story.ts
This file was deleted.
Oops, something went wrong.
76 changes: 76 additions & 0 deletions
76
packages/carbon-web-components/src/components/ai-skeleton/ai-skeleton-text.stories.ts
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,76 @@ | ||
/** | ||
* @license | ||
* | ||
* Copyright IBM Corp. 2019, 2024 | ||
* | ||
* This source code is licensed under the Apache-2.0 license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
import { html } from 'lit'; | ||
import './ai-skeleton-text'; | ||
|
||
const args = { | ||
heading: false, | ||
paragraph: false, | ||
width: '100%', | ||
lineCount: 3, | ||
}; | ||
|
||
const argTypes = { | ||
heading: { | ||
control: 'boolean', | ||
description: 'Heading (heading)', | ||
}, | ||
paragraph: { | ||
control: 'boolean', | ||
description: 'Paragraph (paragraph)', | ||
}, | ||
width: { | ||
control: 'text', | ||
description: 'Width (width)', | ||
}, | ||
lineCount: { | ||
control: 'number', | ||
description: 'Line count (linecount)', | ||
}, | ||
}; | ||
|
||
export const Default = { | ||
// This story doesn't accept any args. | ||
args: {}, | ||
argTypes: {}, | ||
parameters: { | ||
percy: { | ||
skip: true, | ||
}, | ||
}, | ||
render: () => { | ||
html`<cds-ai-skeleton-text></cds-ai-skeleton-text>`; | ||
}, | ||
}; | ||
|
||
export const Playground = { | ||
args, | ||
argTypes, | ||
parameters: { | ||
percy: { | ||
skip: true, | ||
}, | ||
}, | ||
render: (args) => { | ||
const { heading, paragraph, width, lineCount } = args ?? {}; | ||
|
||
return html`<cds-ai-skeleton-text | ||
?heading="${heading}" | ||
width="${width}" | ||
?paragraph="${paragraph}" | ||
linecount="${lineCount}"></cds-ai-skeleton-text>`; | ||
}, | ||
}; | ||
|
||
const meta = { | ||
title: 'Experimental/AISkeleton/AISkeletonText', | ||
}; | ||
|
||
export default meta; |
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.