Skip to content

Commit

Permalink
Storybook: Restore stable components back into categories (#67216)
Browse files Browse the repository at this point in the history
Co-authored-by: mirka <[email protected]>
Co-authored-by: tyxla <[email protected]>
  • Loading branch information
3 people authored Nov 25, 2024
1 parent 010cf1a commit 29f0c35
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ import { useState } from '@wordpress/element';
import CustomSelectControl from '..';

const meta: Meta< typeof CustomSelectControl > = {
title: 'Components/CustomSelectControl',
title: 'Components/Selection & Input/Common/CustomSelectControl',
component: CustomSelectControl,
id: 'components-customselectcontrol',
argTypes: {
onChange: { control: { type: null } },
value: { control: { type: null } },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ import {
} from '@wordpress/icons';

const meta: Meta< typeof DropdownMenu > = {
title: 'Components/DropdownMenu',
title: 'Components/Actions/DropdownMenu',
component: DropdownMenu,
id: 'components-dropdownmenu',
parameters: {
actions: { argTypesRegex: '^on.*' },
controls: { expanded: true },
Expand Down
3 changes: 2 additions & 1 deletion packages/components/src/menu-group/stories/index.story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ import MenuItemsChoice from '../../menu-items-choice';
import type { Meta, StoryFn } from '@storybook/react';

const meta: Meta< typeof MenuGroup > = {
title: 'Components/MenuGroup',
title: 'Components/Actions/MenuGroup',
component: MenuGroup,
id: 'components-menugroup',
argTypes: {
children: { control: { type: null } },
},
Expand Down
3 changes: 2 additions & 1 deletion packages/components/src/menu-item/stories/index.story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ import Shortcut from '../../shortcut';

const meta: Meta< typeof MenuItem > = {
component: MenuItem,
title: 'Components/MenuItem',
title: 'Components/Actions/MenuItem',
id: 'components-menuitem',
argTypes: {
children: { control: { type: null } },
icon: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ import MenuGroup from '../../menu-group';

const meta: Meta< typeof MenuItemsChoice > = {
component: MenuItemsChoice,
title: 'Components/MenuItemsChoice',
title: 'Components/Actions/MenuItemsChoice',
id: 'components-menuitemschoice',
argTypes: {
onHover: { action: 'onHover' },
onSelect: { action: 'onSelect' },
Expand Down
3 changes: 2 additions & 1 deletion packages/components/src/text-control/stories/index.story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ import TextControl from '..';

const meta: Meta< typeof TextControl > = {
component: TextControl,
title: 'Components/TextControl',
title: 'Components/Selection & Input/Common/TextControl',
id: 'components-textcontrol',
argTypes: {
help: { control: { type: 'text' } },
label: { control: { type: 'text' } },
Expand Down

0 comments on commit 29f0c35

Please sign in to comment.