-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feat/cwc-storybook-7-vite' into chore/progress-indicato…
…r-sb-v7
- Loading branch information
Showing
13 changed files
with
543 additions
and
412 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
30 changes: 0 additions & 30 deletions
30
...s/carbon-web-components/src/components/skeleton-placeholder/skeleton-placeholder-story.ts
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
32 changes: 32 additions & 0 deletions
32
...carbon-web-components/src/components/skeleton-placeholder/skeleton-placeholder.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,32 @@ | ||
/** | ||
* @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 './skeleton-placeholder'; | ||
import storyDocs from './skeleton-placeholder.mdx'; | ||
|
||
export const Default = { | ||
parameters: { | ||
percy: { | ||
skip: true, | ||
}, | ||
}, | ||
render: () => html`<cds-skeleton-placeholder></cds-skeleton-placeholder>`, | ||
}; | ||
|
||
const meta = { | ||
title: 'Components/Skeleton/Skeleton Placeholder', | ||
parameters: { | ||
docs: { | ||
page: storyDocs, | ||
}, | ||
}, | ||
}; | ||
|
||
export default meta; |
67 changes: 0 additions & 67 deletions
67
packages/carbon-web-components/src/components/skeleton-text/skeleton-text-story.ts
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
85 changes: 85 additions & 0 deletions
85
packages/carbon-web-components/src/components/skeleton-text/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,85 @@ | ||
/** | ||
* @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 { ifDefined } from 'lit/directives/if-defined.js'; | ||
import { SKELETON_TEXT_TYPE } from './skeleton-text'; | ||
import storyDocs from './skeleton-text.mdx'; | ||
|
||
const types = { | ||
Regular: null, | ||
[`Heading (${SKELETON_TEXT_TYPE.HEADING})`]: SKELETON_TEXT_TYPE.HEADING, | ||
}; | ||
|
||
const args = { | ||
type: null, | ||
paragraph: true, | ||
lineCount: 3, | ||
width: '100%', | ||
}; | ||
|
||
const argTypes = { | ||
type: { | ||
control: 'select', | ||
description: 'Indicate the type of skeleton text, heading or regular.', | ||
options: types, | ||
}, | ||
paragraph: { | ||
control: 'boolean', | ||
description: 'Set this to true to generate multiple lines of text.', | ||
}, | ||
lineCount: { | ||
control: 'number', | ||
description: 'The number of lines shown if paragraph is true.', | ||
}, | ||
width: { | ||
control: 'text', | ||
description: | ||
'Width (in px or %) of single line of text or max-width of paragraph lines.', | ||
}, | ||
}; | ||
|
||
export const Default = { | ||
parameters: { | ||
percy: { | ||
skip: true, | ||
}, | ||
}, | ||
render: () => html`<cds-skeleton-text></cds-skeleton-text>`, | ||
}; | ||
|
||
export const Playground = { | ||
args, | ||
argTypes, | ||
render: (args) => { | ||
const { type, paragraph, lineCount, width } = args ?? {}; | ||
return html` | ||
<cds-skeleton-text | ||
type="${ifDefined(type)}" | ||
?paragraph="${paragraph}" | ||
lineCount="${lineCount}" | ||
width="${width}"> | ||
</cds-skeleton-text> | ||
`; | ||
}, | ||
}; | ||
|
||
const meta = { | ||
title: 'Components/Skeleton/Skeleton Text', | ||
parameters: { | ||
docs: { | ||
page: storyDocs, | ||
}, | ||
percy: { | ||
skip: true, | ||
}, | ||
}, | ||
}; | ||
|
||
export default meta; |
75 changes: 0 additions & 75 deletions
75
packages/carbon-web-components/src/components/skip-to-content/skip-to-content-story.ts
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
Oops, something went wrong.