Skip to content

Commit

Permalink
Hide control for events
Browse files Browse the repository at this point in the history
  • Loading branch information
jattasNI committed May 23, 2024
1 parent 26f0bad commit f46c622
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 12 deletions.
3 changes: 2 additions & 1 deletion packages/storybook/src/nimble/checkbox/checkbox.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ The \`indeterminate\` state is not automatically changed when the user changes t
},
change: {
description: 'Event emitted when the user checks or unchecks the checkbox.',
table: { category: apiCategory.events }
table: { category: apiCategory.events },
control: false
}
},
args: {
Expand Down
6 changes: 4 additions & 2 deletions packages/storybook/src/nimble/combobox/combobox.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,11 +177,13 @@ const metadata: Meta<ComboboxArgs> = {
},
change: {
description: 'Emitted when the user changes the selected option.',
table: { category: apiCategory.events }
table: { category: apiCategory.events },
control: false
},
input: {
description: 'Emitted when the user types in the combobox. Use this event if you need to update the list of options based on the text input.',
table: { category: apiCategory.events }
table: { category: apiCategory.events },
control: false
}
},
args: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,13 @@ const metadata: Meta<NumberFieldArgs> = {
},
change: {
description: 'Event emitted when the user commits a new value to the number field.',
table: { category: apiCategory.events }
table: { category: apiCategory.events },
control: false
},
input: {
description: 'Event emitted on each user keystroke within the number field.',
table: { category: apiCategory.events }
table: { category: apiCategory.events },
control: false
}
},
args: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ export const radioGroup: StoryObj<RadioGroupArgs> = {
},
change: {
description: 'Event emitted when the user selects a new value in the radio group.',
table: { category: apiCategory.events }
table: { category: apiCategory.events },
control: false
}
}
};
Expand Down
3 changes: 2 additions & 1 deletion packages/storybook/src/nimble/select/select.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,8 @@ const metadata: Meta<SelectArgs> = {
},
change: {
description: 'Emitted when the user changes the selected option.',
table: { category: apiCategory.events }
table: { category: apiCategory.events },
control: false
}
},
args: {
Expand Down
3 changes: 2 additions & 1 deletion packages/storybook/src/nimble/switch/switch.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ const metadata: Meta<SwitchArgs> = {
},
change: {
description: 'Event emitted when the user toggles the switch.',
table: { category: apiCategory.events }
table: { category: apiCategory.events },
control: false
}
},
args: {
Expand Down
3 changes: 2 additions & 1 deletion packages/storybook/src/nimble/text-area/text-area.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ const metadata: Meta<TextAreaArgs> = {
},
change: {
description: 'Event emitted when the user commits a new value to the text area.',
table: { category: apiCategory.events }
table: { category: apiCategory.events },
control: false
}
},
args: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,13 @@ const metadata: Meta<TextFieldArgs> = {
},
change: {
description: 'Event emitted when the user commits a new value to the text field.',
table: { category: apiCategory.events }
table: { category: apiCategory.events },
control: false
},
input: {
description: 'Event emitted on each user keystroke within the text field.',
table: { category: apiCategory.events }
table: { category: apiCategory.events },
control: false
}
},
args: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ const metadata: Meta<ToggleButtonArgs> = {
},
change: {
description: 'Fires when the toggle button is pressed via mouse or keyboard.',
table: { category: apiCategory.events }
table: { category: apiCategory.events },
control: false
}
},
// prettier-ignore
Expand Down

0 comments on commit f46c622

Please sign in to comment.