Skip to content

Commit

Permalink
feat(multi-select): update story to Storybook v7 (#11327)
Browse files Browse the repository at this point in the history
* chore(multi-select): rename story files for sb v7

* chore(multi-select): update file-uploader to sb v7

* chore(multi-select): include sb layer components, remove unused import

* fix(multi-select): controls for disabled, readOnly and invalid

---------

Co-authored-by: kennylam <[email protected]>
  • Loading branch information
m4olivei and kennylam authored Jan 10, 2024
1 parent a9ba214 commit 9705c48
Show file tree
Hide file tree
Showing 4 changed files with 372 additions and 295 deletions.
2 changes: 2 additions & 0 deletions packages/carbon-web-components/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ const stories = glob.sync(
'../src/**/modal.stories.ts',
'../src/**/modal.mdx',
'../src/**/file-uploader.stories.ts',
'../src/**/multi-select.mdx',
'../src/**/multi-select.stories.ts',
'../src/**/notification.mdx',
'../src/**/actionable-notification.stories.ts',
'../src/**/inline-notification.stories.ts',
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import { Props, Description } from '@storybook/addon-docs/blocks';
import { ArgsTable, Meta, Description } from '@storybook/addon-docs/blocks';
import { cdnJs, cdnCss } from '../../globals/internal/storybook-cdn';
import * as MultiSelectStories from './multi-select.stories';

<Meta of={MultiSelectStories} />

# Multi select

Expand Down Expand Up @@ -103,12 +106,12 @@ Note: For `boolean` attributes, `true` means simply setting the attribute (e.g.
`<cds-multi-select open>`) and `false` means not setting the attribute (e.g.
`<cds-multi-select>` without `open` attribute).

<Props of="cds-multi-select" />
<ArgsTable of="cds-multi-select" />

## `<cds-multi-select-item>` attributes and properties

Note: For `boolean` attributes, `true` means simply setting the attribute (e.g.
`<cds-multi-select-item disabled>`) and `false` means not setting the attribute
(e.g. `<cds-multi-select-item>` without `disabled` attribute).

<Props of="cds-multi-select-item" />
<ArgsTable of="cds-multi-select-item" />
Loading

0 comments on commit 9705c48

Please sign in to comment.