Skip to content

Commit

Permalink
Merge pull request #23565 from joaonunomota/fix-controls
Browse files Browse the repository at this point in the history
docs: replace unsupported value 'string' in controls
(cherry picked from commit 630ace1)
  • Loading branch information
ndelangen authored and storybook-bot committed Aug 2, 2023
1 parent 715a6df commit 898d1e6
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ describe('normalizeInputType', () => {
{
name: 'name',
type: { name: 'string' },
control: { type: 'string' },
control: { type: 'text' },
description: 'description',
defaultValue: 'defaultValue',
},
Expand All @@ -18,7 +18,7 @@ describe('normalizeInputType', () => {
).toEqual({
name: 'name',
type: { name: 'string' },
control: { type: 'string' },
control: { type: 'text' },
description: 'description',
defaultValue: 'defaultValue',
});
Expand All @@ -29,7 +29,7 @@ describe('normalizeInputType', () => {
normalizeInputType(
{
type: 'string',
control: 'string',
control: 'text',
description: 'description',
defaultValue: 'defaultValue',
},
Expand All @@ -38,7 +38,7 @@ describe('normalizeInputType', () => {
).toEqual({
name: 'arg',
type: { name: 'string' },
control: { type: 'string' },
control: { type: 'text' },
description: 'description',
defaultValue: 'defaultValue',
});
Expand Down
2 changes: 1 addition & 1 deletion docs/snippets/angular/arg-types-in-meta.ts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const meta: Meta<Button> = {
argTypes: {
// 👇 All Button stories expect a label arg
label: {
control: 'string',
control: 'text',
description: 'Overwritten description',
},
},
Expand Down
2 changes: 1 addition & 1 deletion docs/snippets/common/arg-types-in-meta.js.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default {
argTypes: {
// 👇 All Button stories expect a label arg
label: {
control: 'string',
control: 'text',
description: 'Overwritten description',
},
},
Expand Down
2 changes: 1 addition & 1 deletion docs/snippets/common/arg-types-in-meta.ts-4-9.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const meta = {
argTypes: {
// 👇 All Button stories expect a label arg
label: {
control: 'string',
control: 'text',
description: 'Overwritten description',
},
},
Expand Down
2 changes: 1 addition & 1 deletion docs/snippets/common/arg-types-in-meta.ts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const meta: Meta<typeof Button> = {
argTypes: {
// 👇 All Button stories expect a label arg
label: {
control: 'string',
control: 'text',
description: 'Overwritten description',
},
},
Expand Down
2 changes: 1 addition & 1 deletion docs/snippets/common/arg-types-in-preview.js.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
argTypes: {
// 👇 All stories expect a label arg
label: {
control: 'string',
control: 'text',
description: 'Overwritten description',
},
},
Expand Down
2 changes: 1 addition & 1 deletion docs/snippets/common/arg-types-in-preview.ts-4-9.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const preview = {
argTypes: {
// 👇 All stories expect a label arg
label: {
control: 'string',
control: 'text',
description: 'Overwritten description',
},
},
Expand Down
2 changes: 1 addition & 1 deletion docs/snippets/common/arg-types-in-preview.ts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const preview: Preview = {
argTypes: {
// 👇 All stories expect a label arg
label: {
control: 'string',
control: 'text',
description: 'Overwritten description',
},
},
Expand Down
2 changes: 1 addition & 1 deletion docs/snippets/web-components/arg-types-in-meta.js.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
argTypes: {
// 👇 All Button stories expect a label arg
label: {
control: 'string',
control: 'text',
description: 'Overwritten description',
},
},
Expand Down
2 changes: 1 addition & 1 deletion docs/snippets/web-components/arg-types-in-meta.ts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const meta: Meta = {
argTypes: {
// 👇 All Button stories expect a label arg
label: {
control: 'string',
control: 'text',
description: 'Overwritten description',
},
},
Expand Down

0 comments on commit 898d1e6

Please sign in to comment.