-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat: Storybook: Improve component organisation - Selection & Input Category - Issue #66275 #66635
Changes from 2 commits
83c7e92
8efe820
e1aaa70
ca59af4
9f94941
5ea3c89
63d917e
f765924
72e03b6
2f19e54
368b4a7
8f01d73
ba02698
d1f8577
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,8 @@ import { InputControlSuffixWrapper } from '../input-suffix-wrapper'; | |
import Button from '../../button'; | ||
|
||
const meta: Meta< typeof InputControl > = { | ||
title: 'Components (Experimental)/InputControl', | ||
title: 'Components (Experimental)/Selection & Input/Common/InputControl', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
id: 'components-inputcontrol', | ||
hbhalodia marked this conversation as resolved.
Show resolved
Hide resolved
|
||
component: InputControl, | ||
// @ts-expect-error - See https://github.com/storybookjs/storybook/issues/23170 | ||
subcomponents: { InputControlPrefixWrapper, InputControlSuffixWrapper }, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,8 @@ import { useState } from '@wordpress/element'; | |
import NumberControl from '..'; | ||
|
||
const meta: Meta< typeof NumberControl > = { | ||
title: 'Components (Experimental)/NumberControl', | ||
title: 'Components (Experimental)/Selection & Input/Common/NumberControl', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same as above with regards to the separate category. |
||
id: 'components-numbercontrol', | ||
hbhalodia marked this conversation as resolved.
Show resolved
Hide resolved
|
||
component: NumberControl, | ||
argTypes: { | ||
onChange: { action: 'onChange' }, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,8 @@ import { CSS_UNITS } from '../utils'; | |
|
||
const meta: Meta< typeof UnitControl > = { | ||
component: UnitControl, | ||
title: 'Components (Experimental)/UnitControl', | ||
title: 'Components (Experimental)/Selection & Input/Common/UnitControl', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same as above with regards to the separate category. |
||
id: 'components-unitcontrol', | ||
hbhalodia marked this conversation as resolved.
Show resolved
Hide resolved
|
||
argTypes: { | ||
__unstableInputWidth: { control: { type: 'text' } }, | ||
__unstableStateReducer: { control: { type: null } }, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one is displayed under "Deprecated", but it makes sense to be in Color for now because we've technically not deprecated it just yet 👍