Skip to content

Commit

Permalink
Group the storybook components in feedback category (WordPress#66660)
Browse files Browse the repository at this point in the history
Co-authored-by: hbhalodia <[email protected]>
Co-authored-by: tyxla <[email protected]>
  • Loading branch information
3 people authored and karthick-murugan committed Nov 13, 2024
1 parent 922fa39 commit 9101b04
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 6 deletions.
3 changes: 2 additions & 1 deletion packages/components/src/notice/stories/index.story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ import NoticeList from '../list';
import type { NoticeListProps } from '../types';

const meta: Meta< typeof Notice > = {
title: 'Components/Notice',
title: 'Components/Feedback/Notice',
id: 'components-notice',
component: Notice,
// @ts-expect-error - See https://github.com/storybookjs/storybook/issues/23170
subcomponents: { NoticeList },
Expand Down
3 changes: 2 additions & 1 deletion packages/components/src/progress-bar/stories/index.story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ import { ProgressBar } from '..';

const meta: Meta< typeof ProgressBar > = {
component: ProgressBar,
title: 'Components/ProgressBar',
title: 'Components/Feedback/ProgressBar',
id: 'components-progressbar',
argTypes: {
value: { control: { type: 'number', min: 0, max: 100, step: 1 } },
},
Expand Down
3 changes: 2 additions & 1 deletion packages/components/src/snackbar/stories/index.story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ import Icon from '../../icon';
import Snackbar from '..';

const meta: Meta< typeof Snackbar > = {
title: 'Components/Snackbar',
title: 'Components/Feedback/Snackbar',
id: 'components-snackbar',
component: Snackbar,
argTypes: {
as: { control: { type: null } },
Expand Down
3 changes: 2 additions & 1 deletion packages/components/src/snackbar/stories/list.story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ import { useState } from '@wordpress/element';
import SnackbarList from '../list';

const meta: Meta< typeof SnackbarList > = {
title: 'Components/SnackbarList',
title: 'Components/Feedback/SnackbarList',
id: 'components-snackbarlist',
component: SnackbarList,
argTypes: {
as: { control: { type: null } },
Expand Down
3 changes: 2 additions & 1 deletion packages/components/src/spinner/stories/index.story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ import Spinner from '../';
import { space } from '../../utils/space';

const meta: Meta< typeof Spinner > = {
title: 'Components/Spinner',
title: 'Components/Feedback/Spinner',
id: 'components-spinner',
component: Spinner,
parameters: {
controls: {
Expand Down
3 changes: 2 additions & 1 deletion packages/components/src/tip/stories/index.story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ import Tip from '..';

const meta: Meta< typeof Tip > = {
component: Tip,
title: 'Components/Tip',
title: 'Components/Feedback/Tip',
id: 'components-tip',
argTypes: {
children: { control: { type: 'text' } },
},
Expand Down
1 change: 1 addition & 0 deletions storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ export const parameters = {
'Contributing Guidelines',
'Actions',
'Containers',
'Feedback',
'Utilities',
],
'Components (Experimental)',
Expand Down

0 comments on commit 9101b04

Please sign in to comment.