Skip to content

Commit d8c964e

Browse files
committed
IBX-10900: [Storybook] AltRadioInput params issues
1 parent 943892a commit d8c964e

File tree

21 files changed

+97
-4
lines changed

21 files changed

+97
-4
lines changed

packages/components/src/components/Accordion/Accordion.stories.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ const meta: Meta<typeof Accordion> = {
3636
header: 'Lorem ipsum',
3737
onHandleExpand: action('on-click'),
3838
},
39+
argTypes: {
40+
onHandleExpand: { control: { disable: true } },
41+
},
3942
};
4043

4144
export default meta;

packages/components/src/components/AltRadio/AltRadioInput/AltRadioInput.stories.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@ const meta: Meta<typeof AltRadioInputStateful> = {
1717
onFocus: action('on-focus'),
1818
onInput: action('on-input'),
1919
},
20+
argTypes: {
21+
onBlur: { control: { disable: true } },
22+
onChange: { control: { disable: true } },
23+
onFocus: { control: { disable: true } },
24+
onInput: { control: { disable: true } },
25+
ref: { control: { disable: true } },
26+
},
2027
decorators: [
2128
(Story) => {
2229
return (

packages/components/src/components/AltRadio/AltRadiosListField/AltRadiosListField.stories.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ const meta: Meta<typeof AltRadiosListFieldStateful> = {
1818
{ id: 'item3', label: 'Item 3', value: 'item3' },
1919
],
2020
},
21+
argTypes: {
22+
onChange: { control: { disable: true } },
23+
},
2124
};
2225

2326
export default meta;

packages/components/src/components/Button/Button.stories.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ const meta: Meta<typeof Button> = {
1212
children: 'Button label',
1313
onClick: action('on-click'),
1414
},
15+
argTypes: {
16+
onClick: { control: { disable: true } },
17+
},
1518
};
1619

1720
export default meta;

packages/components/src/components/Checkbox/CheckboxField/CheckboxField.stories.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ const meta: Meta<typeof CheckboxFieldStateful> = {
1616
onFocus: action('on-focus'),
1717
onInput: action('on-input'),
1818
},
19+
argTypes: {
20+
onBlur: { control: { disable: true } },
21+
onChange: { control: { disable: true } },
22+
onFocus: { control: { disable: true } },
23+
onInput: { control: { disable: true } },
24+
ref: { control: { disable: true } },
25+
},
1926
};
2027

2128
export default meta;

packages/components/src/components/Checkbox/CheckboxInput/CheckboxInput.stories.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@ const meta: Meta<typeof CheckboxInputStateful> = {
1414
onFocus: action('on-focus'),
1515
onInput: action('on-input'),
1616
},
17+
argTypes: {
18+
onBlur: { control: { disable: true } },
19+
onChange: { control: { disable: true } },
20+
onFocus: { control: { disable: true } },
21+
onInput: { control: { disable: true } },
22+
ref: { control: { disable: true } },
23+
},
1724
};
1825

1926
export default meta;

packages/components/src/components/Checkbox/CheckboxesListField/CheckboxesListField.stories.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ const meta: Meta<typeof CheckboxesListFieldStateful> = {
1818
{ id: 'item3', label: 'Item 3', value: 'item3' },
1919
],
2020
},
21+
argTypes: {
22+
onChange: { control: { disable: true } },
23+
},
2124
};
2225

2326
export default meta;

packages/components/src/components/Chip/Chip.stories.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ const meta: Meta<typeof Chip> = {
1111
onDelete: action('onDelete'),
1212
isDeletable: true,
1313
},
14+
argTypes: {
15+
onDelete: { control: { disable: true } },
16+
},
1417
};
1518

1619
export default meta;

packages/components/src/components/Dropdown/DropdownMultiInput/DropdownMultiInput.stories.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ const meta: Meta<typeof DropdownMultiInputStateful> = {
1818
name: 'default-input',
1919
onChange: action('on-change'),
2020
},
21+
argTypes: {
22+
onChange: { control: { disable: true } },
23+
},
2124
decorators: [DropdownDecorator],
2225
};
2326

packages/components/src/components/Dropdown/DropdownSingleInput/DropdownSingleInput.stories.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ const meta: Meta<typeof DropdownSingleInputStateful> = {
1818
name: 'default-input',
1919
onChange: action('on-change'),
2020
},
21+
argTypes: {
22+
onChange: { control: { disable: true } },
23+
},
2124
decorators: [DropdownDecorator],
2225
};
2326

0 commit comments

Comments
 (0)