Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ const meta: Meta< typeof Autocomplete.Root > = {
'Autocomplete.Status': Autocomplete.Status,
'Autocomplete.Clear': Autocomplete.Clear,
},
argTypes: {
onValueChange: { action: 'onValueChange' },
},
parameters: {
componentStatus: {
status: 'recommended',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ const meta: Meta< typeof CheckboxGroup > = {
subcomponents: {
'CheckboxGroup.NestedItems': CheckboxGroup.NestedItems,
},
argTypes: {
onValueChange: { action: 'onValueChange' },

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This won't fire in WithParentCheckbox because that story ignores args and passes setFruitValue as its change handler. We should forward args.onValueChange after updating state?

Same for the controlled Autocomplete and Combobox examples

},
parameters: {
componentStatus: {
status: 'use-with-caution',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ const meta: Meta< typeof Checkbox > = {
title: 'Components/@wordpress-ui/Form/Primitives/Checkbox',
id: 'design-system-components-form-primitives-checkbox',
component: Checkbox,
argTypes: {
onCheckedChange: { action: 'onCheckedChange' },
},
parameters: {
componentStatus: {
status: 'use-with-caution',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ const meta: Meta< typeof Combobox.Root > = {
'Combobox.Status': Combobox.Status,
'Combobox.Clear': Combobox.Clear,
},
argTypes: {
onValueChange: { action: 'onValueChange' },
},
parameters: {
componentStatus: {
status: 'use-with-caution',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ const meta: Meta< typeof RadioGroup > = {
title: 'Components/@wordpress-ui/Form/Primitives/RadioGroup',
id: 'design-system-components-form-primitives-radiogroup',
component: RadioGroup,
argTypes: {
onValueChange: { action: 'onValueChange' },
},
parameters: {
componentStatus: {
status: 'use-with-caution',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ const meta: Meta< typeof Select.Root > = {
'Select.ItemLabel': Select.ItemLabel,
'Select.ItemDescription': Select.ItemDescription,
},
argTypes: {
onValueChange: { action: 'onValueChange' },
},
parameters: {
componentStatus: {
status: 'recommended',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ const meta: Meta< typeof Switch > = {
title: 'Components/@wordpress-ui/Form/Primitives/Switch',
id: 'design-system-components-form-primitives-switch',
component: Switch,
argTypes: {
onCheckedChange: { action: 'onCheckedChange' },
},
parameters: {
componentStatus: {
status: 'use-with-caution',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ const meta: Meta< typeof Textarea > = {
title: 'Components/@wordpress-ui/Form/Primitives/Textarea',
id: 'design-system-components-form-primitives-textarea',
component: Textarea,
argTypes: {
onValueChange: { action: 'onValueChange' },
},
parameters: {
componentStatus: {
status: 'recommended',
Expand Down
Loading