From f46c62242e04597a5d2a5fa7c0aa6e9772a6a6ff Mon Sep 17 00:00:00 2001 From: Jesse Attas Date: Thu, 23 May 2024 17:16:47 -0500 Subject: [PATCH] Hide control for events --- packages/storybook/src/nimble/checkbox/checkbox.stories.ts | 3 ++- packages/storybook/src/nimble/combobox/combobox.stories.ts | 6 ++++-- .../src/nimble/number-field/number-field.stories.ts | 6 ++++-- .../storybook/src/nimble/radio-group/radio-group.stories.ts | 3 ++- packages/storybook/src/nimble/select/select.stories.ts | 3 ++- packages/storybook/src/nimble/switch/switch.stories.ts | 3 ++- .../storybook/src/nimble/text-area/text-area.stories.ts | 3 ++- .../storybook/src/nimble/text-field/text-field.stories.ts | 6 ++++-- .../src/nimble/toggle-button/toggle-button.stories.ts | 3 ++- 9 files changed, 24 insertions(+), 12 deletions(-) diff --git a/packages/storybook/src/nimble/checkbox/checkbox.stories.ts b/packages/storybook/src/nimble/checkbox/checkbox.stories.ts index 7bf7e91e2b..96fefdbb52 100644 --- a/packages/storybook/src/nimble/checkbox/checkbox.stories.ts +++ b/packages/storybook/src/nimble/checkbox/checkbox.stories.ts @@ -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: { diff --git a/packages/storybook/src/nimble/combobox/combobox.stories.ts b/packages/storybook/src/nimble/combobox/combobox.stories.ts index 739a44ec54..9a73223bd6 100644 --- a/packages/storybook/src/nimble/combobox/combobox.stories.ts +++ b/packages/storybook/src/nimble/combobox/combobox.stories.ts @@ -177,11 +177,13 @@ const metadata: Meta = { }, 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: { diff --git a/packages/storybook/src/nimble/number-field/number-field.stories.ts b/packages/storybook/src/nimble/number-field/number-field.stories.ts index 37d3e7a1dc..7152bd49bb 100644 --- a/packages/storybook/src/nimble/number-field/number-field.stories.ts +++ b/packages/storybook/src/nimble/number-field/number-field.stories.ts @@ -104,11 +104,13 @@ const metadata: Meta = { }, 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: { diff --git a/packages/storybook/src/nimble/radio-group/radio-group.stories.ts b/packages/storybook/src/nimble/radio-group/radio-group.stories.ts index 0923809b66..d99841d311 100644 --- a/packages/storybook/src/nimble/radio-group/radio-group.stories.ts +++ b/packages/storybook/src/nimble/radio-group/radio-group.stories.ts @@ -100,7 +100,8 @@ export const radioGroup: StoryObj = { }, 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 } } }; diff --git a/packages/storybook/src/nimble/select/select.stories.ts b/packages/storybook/src/nimble/select/select.stories.ts index 1594f067ed..a888e169b3 100644 --- a/packages/storybook/src/nimble/select/select.stories.ts +++ b/packages/storybook/src/nimble/select/select.stories.ts @@ -193,7 +193,8 @@ const metadata: Meta = { }, change: { description: 'Emitted when the user changes the selected option.', - table: { category: apiCategory.events } + table: { category: apiCategory.events }, + control: false } }, args: { diff --git a/packages/storybook/src/nimble/switch/switch.stories.ts b/packages/storybook/src/nimble/switch/switch.stories.ts index 89bfdacf31..1c7c20ab7b 100644 --- a/packages/storybook/src/nimble/switch/switch.stories.ts +++ b/packages/storybook/src/nimble/switch/switch.stories.ts @@ -58,7 +58,8 @@ const metadata: Meta = { }, change: { description: 'Event emitted when the user toggles the switch.', - table: { category: apiCategory.events } + table: { category: apiCategory.events }, + control: false } }, args: { diff --git a/packages/storybook/src/nimble/text-area/text-area.stories.ts b/packages/storybook/src/nimble/text-area/text-area.stories.ts index 23ce66afe9..16736c3873 100644 --- a/packages/storybook/src/nimble/text-area/text-area.stories.ts +++ b/packages/storybook/src/nimble/text-area/text-area.stories.ts @@ -116,7 +116,8 @@ const metadata: Meta = { }, 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: { diff --git a/packages/storybook/src/nimble/text-field/text-field.stories.ts b/packages/storybook/src/nimble/text-field/text-field.stories.ts index d7603e8825..fbfc527049 100644 --- a/packages/storybook/src/nimble/text-field/text-field.stories.ts +++ b/packages/storybook/src/nimble/text-field/text-field.stories.ts @@ -129,11 +129,13 @@ const metadata: Meta = { }, 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: { diff --git a/packages/storybook/src/nimble/toggle-button/toggle-button.stories.ts b/packages/storybook/src/nimble/toggle-button/toggle-button.stories.ts index e57d15a8e3..64ca61d926 100644 --- a/packages/storybook/src/nimble/toggle-button/toggle-button.stories.ts +++ b/packages/storybook/src/nimble/toggle-button/toggle-button.stories.ts @@ -83,7 +83,8 @@ const metadata: Meta = { }, 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