Skip to content

Commit c1fe086

Browse files
committed
fix combobox story
1 parent b96e89b commit c1fe086

File tree

1 file changed

+16
-10
lines changed

1 file changed

+16
-10
lines changed

packages/uui-combobox/lib/uui-combobox.story.ts

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
1+
import '@umbraco-ui/uui-scroll-container/lib';
2+
import '@umbraco-ui/uui-icon/lib';
3+
import '@umbraco-ui/uui-input/lib';
4+
import '@umbraco-ui/uui-button/lib';
5+
import '@umbraco-ui/uui-popover/lib';
6+
17
import '.';
28
import './uui-combobox-async-example';
39
import './uui-combobox-async-options-example';
410

5-
import { Story } from '@storybook/web-components';
11+
import { StoryFn } from '@storybook/web-components';
612
import { html } from 'lit';
713
import { useArgs } from '@storybook/preview-api';
814
import { repeat } from 'lit/directives/repeat.js';
@@ -26,12 +32,12 @@ export default {
2632
},
2733
};
2834

29-
export const AsyncOptions: Story = () =>
35+
export const AsyncOptions: StoryFn = () =>
3036
html`
3137
<uui-combobox-async-options-example></uui-combobox-async-options-example>
3238
`;
3339

34-
export const AsyncData: Story = () =>
40+
export const AsyncData: StoryFn = () =>
3541
html`<uui-combobox-async-example></uui-combobox-async-example>`;
3642

3743
const fruits = [
@@ -89,7 +95,7 @@ const renderAvatar = (option: any) => html` <uui-combobox-list-option
8995
</div>
9096
</uui-combobox-list-option>`;
9197

92-
const Template: Story = props => {
98+
const Template: StoryFn = props => {
9399
const [, updateSearch] = useArgs();
94100
const [, updateSelected] = useArgs();
95101

@@ -140,7 +146,7 @@ const Template: Story = props => {
140146
<span style="margin-left: 16px">Selected value: ${selected}</span> `;
141147
};
142148

143-
export const AAAOverview: Story = Template.bind({});
149+
export const AAAOverview: StoryFn = Template.bind({});
144150
AAAOverview.args = {
145151
options: fruits,
146152
filter: basicFilter,
@@ -169,7 +175,7 @@ AAAOverview.parameters = {
169175
},
170176
};
171177

172-
export const Disabled: Story = Template.bind({});
178+
export const Disabled: StoryFn = Template.bind({});
173179
Disabled.args = {
174180
options: fruits,
175181
filter: basicFilter,
@@ -199,7 +205,7 @@ Disabled.parameters = {
199205
},
200206
};
201207

202-
export const CustomValue: Story = Template.bind({});
208+
export const CustomValue: StoryFn = Template.bind({});
203209
CustomValue.args = {
204210
options: fruits,
205211
valueMod: (fruit: string) => 'FRUIT_' + fruit.toUpperCase(),
@@ -228,7 +234,7 @@ CustomValue.parameters = {
228234
},
229235
};
230236

231-
export const CustomDisplayValue: Story = Template.bind({});
237+
export const CustomDisplayValue: StoryFn = Template.bind({});
232238
CustomDisplayValue.args = {
233239
options: fruits,
234240
displayValueMod: (fruit: string) =>
@@ -258,7 +264,7 @@ CustomDisplayValue.parameters = {
258264
},
259265
};
260266

261-
export const Avatars: Story = Template.bind({});
267+
export const Avatars: StoryFn = Template.bind({});
262268
Avatars.args = {
263269
options: avatars,
264270
renderMod: (avatar: any) => renderAvatar(avatar),
@@ -268,7 +274,7 @@ Avatars.args = {
268274
),
269275
};
270276

271-
export const CountrySelect: Story = props => {
277+
export const CountrySelect: StoryFn = props => {
272278
const [, updateSearch] = useArgs();
273279
const [, updateSelected] = useArgs();
274280

0 commit comments

Comments
 (0)