Skip to content

Commit 798a00a

Browse files
authored
Fix wrong select controls specification (#61)
1 parent cef3c82 commit 798a00a

25 files changed

+36
-40
lines changed

packages/components/src/accordion-item/accordion-item.stories.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default {
1414
disabled: true
1515
}
1616
}
17-
};
17+
} as Meta;
1818

1919
const Template: StoryFn = (args, context): string => {
2020
const {

packages/components/src/breadcrumb-item/breadcrumb-item.stories.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default {
1515
disabled: true
1616
}
1717
}
18-
};
18+
} as Meta;
1919

2020
const Template: StoryFn = (args, context): string => {
2121
const {

packages/components/src/breadcrumb/breadcrumb.stories.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export default {
1616
disabled: true
1717
}
1818
}
19-
};
19+
} as Meta;
2020

2121
const Template: StoryFn = (args, context): string => {
2222
const {

packages/components/src/button/button.stories.ts

+10-12
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,15 @@ export default {
99
argTypes: {
1010
label: { control: 'text' },
1111
appearance: {
12-
control: {
13-
type: 'select',
14-
options: [
15-
'Accent',
16-
'Error',
17-
'Lightweight',
18-
'Neutral',
19-
'Outline',
20-
'Stealth'
21-
]
22-
}
12+
control: 'select',
13+
options: [
14+
'Accent',
15+
'Error',
16+
'Lightweight',
17+
'Neutral',
18+
'Outline',
19+
'Stealth'
20+
]
2321
},
2422
isDisabled: { control: 'boolean' },
2523
isAutoFocused: { control: 'boolean' },
@@ -32,7 +30,7 @@ export default {
3230
}
3331
}
3432
}
35-
};
33+
} as Meta;
3634

3735
const Template: StoryFn = (args, context): HTMLElement => {
3836
const {

packages/components/src/checkbox/checkbox.stories.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export default {
1919
}
2020
}
2121
}
22-
};
22+
} as Meta;
2323

2424
const Template: StoryFn = (args, context): HTMLElement => {
2525
const {

packages/components/src/combobox/combobox.stories.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default {
2525
}
2626
}
2727
}
28-
};
28+
} as Meta;
2929

3030
const nameList = [
3131
'William Hartnell',

packages/components/src/data-grid/data-grid.stories.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default {
1515
disabled: true
1616
}
1717
}
18-
};
18+
} as Meta;
1919

2020
const Template: StoryFn = (args, context): string => {
2121
const {

packages/components/src/date-field/date-field.stories.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export default {
2323
}
2424
}
2525
}
26-
};
26+
} as Meta;
2727

2828
const Template: StoryFn = (args, context): HTMLElement => {
2929
const {

packages/components/src/menu-item/menu-item.stories.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export default {
2121
disabled: true
2222
}
2323
}
24-
};
24+
} as Meta;
2525

2626
const Template: StoryFn = (args, context): string => {
2727
const {

packages/components/src/menu/menu.stories.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default {
1414
disabled: true
1515
}
1616
}
17-
};
17+
} as Meta;
1818

1919
const Template: StoryFn = (args, context): string => {
2020
const {

packages/components/src/number-field/number-field.stories.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export default {
2727
}
2828
}
2929
}
30-
};
30+
} as Meta;
3131

3232
const Template: StoryFn = (args, context): HTMLElement => {
3333
const {

packages/components/src/option/option.stories.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export default {
1616
disabled: true
1717
}
1818
}
19-
};
19+
} as Meta;
2020

2121
const Template: StoryFn = (args, context): string => {
2222
const {

packages/components/src/progress-ring/progress-ring.stories.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default {
1818
disabled: true
1919
}
2020
}
21-
};
21+
} as Meta;
2222

2323
const Template: StoryFn = (args, context): string => {
2424
const {

packages/components/src/radio-group/radio-group.stories.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default {
1818
}
1919
}
2020
}
21-
};
21+
} as Meta;
2222

2323
const Template: StoryFn = (args, context): HTMLElement => {
2424
const {

packages/components/src/radio/radio.stories.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default {
1818
}
1919
}
2020
}
21-
};
21+
} as Meta;
2222

2323
const Template: StoryFn = (args, context): HTMLElement => {
2424
const {

packages/components/src/search/search.stories.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default {
2626
}
2727
}
2828
}
29-
};
29+
} as Meta;
3030

3131
const Template: StoryFn = (args, context): HTMLElement => {
3232
const {

packages/components/src/select/select.stories.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export default {
2020
}
2121
}
2222
}
23-
};
23+
} as Meta;
2424

2525
const Template: StoryFn = (args, context): HTMLElement => {
2626
const {

packages/components/src/slider-label/slider-label.stories.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default {
1515
disabled: true
1616
}
1717
}
18-
};
18+
} as Meta;
1919

2020
const Template: StoryFn = (args, context): string => {
2121
const {

packages/components/src/slider/slider.stories.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export default {
1919
}
2020
}
2121
}
22-
};
22+
} as Meta;
2323

2424
const Template: StoryFn = (args, context): HTMLElement => {
2525
const {

packages/components/src/switch/switch.stories.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export default {
2121
}
2222
}
2323
}
24-
};
24+
} as Meta;
2525

2626
const Template: StoryFn = (args, context): HTMLElement => {
2727
const {

packages/components/src/tabs/tabs.stories.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default {
1212
activeIndicator: { control: 'boolean' },
1313
orientation: { control: 'radio', options: ['horizontal', 'vertical'] }
1414
}
15-
};
15+
} as Meta;
1616

1717
const Template: StoryFn = (args, context): HTMLElement => {
1818
const {

packages/components/src/text-area/text-area.stories.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default {
2828
}
2929
}
3030
}
31-
};
31+
} as Meta;
3232

3333
const Template: StoryFn = (args, context): HTMLElement => {
3434
const {

packages/components/src/text-field/text-field.stories.ts

+3-5
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,8 @@ export default {
1515
maxLength: { control: 'number' },
1616
size: { control: 'number' },
1717
type: {
18-
control: {
19-
type: 'select',
20-
options: ['Email', 'Password', 'Tel', 'Text', 'Url']
21-
}
18+
control: 'select',
19+
options: ['Email', 'Password', 'Tel', 'Text', 'Url']
2220
},
2321
isReadOnly: { control: 'boolean' },
2422
isDisabled: { control: 'boolean' },
@@ -33,7 +31,7 @@ export default {
3331
}
3432
}
3533
}
36-
};
34+
} as Meta;
3735

3836
const Template: StoryFn = (args, context): HTMLElement => {
3937
const {

packages/components/src/tree-item/tree-item.stories.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default {
1515
disabled: true
1616
}
1717
}
18-
};
18+
} as Meta;
1919

2020
const Template: StoryFn = (args, context): string => {
2121
const {

packages/components/src/tree-view/tree-view.stories.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export default {
1313
disabled: true
1414
}
1515
}
16-
};
16+
} as Meta;
1717

1818
const Template: StoryFn = (args, context): HTMLElement => {
1919
const {

0 commit comments

Comments
 (0)