Skip to content

Commit

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

* chore(date-picker): convert from knobs to controls

* chore(date-picker): remove storyDocs parameter, causing local failures

* chore(date-picker): add date picker descriptions from React storybook

* chore(date-picker): include storybook layers components

* chore(date-picker): add back actions in sb v7 format

---------

Co-authored-by: Ignacio Becerra <[email protected]>
  • Loading branch information
m4olivei and IgnacioBecerra authored Jan 11, 2024
1 parent c4772f9 commit 7901205
Show file tree
Hide file tree
Showing 4 changed files with 360 additions and 286 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 @@ -26,6 +26,8 @@ const stories = glob.sync(
'../src/**/breadcrumb.stories.ts',
'../src/**/combo-box.stories.ts',
'../src/**/combo-box.mdx',
'../src/**/date-picker.mdx',
'../src/**/date-picker.stories.ts',
'../src/**/content-switcher.mdx',
'../src/**/content-switcher.stories.ts',
'../src/**/dropdown.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 DatePickerStories from './date-picker.stories';

<Meta of={DatePickerStories} />

# Date picker

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

<Props of="cds-date-picker" />
<ArgsTable of="cds-date-picker" />

## `<cds-date-picker-input>` attributes and properties

Note: For `boolean` attributes, `true` means simply setting the attribute (e.g.
`<cds-date-picker-input light>`) and `false` means not setting the attribute
(e.g. `<cds-date-picker-input>` without `light` attribute).

<Props of="cds-date-picker-input" />
<ArgsTable of="cds-date-picker-input" />
Loading

0 comments on commit 7901205

Please sign in to comment.