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
+
1
7
import '.' ;
2
8
import './uui-combobox-async-example' ;
3
9
import './uui-combobox-async-options-example' ;
4
10
5
- import { Story } from '@storybook/web-components' ;
11
+ import { StoryFn } from '@storybook/web-components' ;
6
12
import { html } from 'lit' ;
7
13
import { useArgs } from '@storybook/preview-api' ;
8
14
import { repeat } from 'lit/directives/repeat.js' ;
@@ -26,12 +32,12 @@ export default {
26
32
} ,
27
33
} ;
28
34
29
- export const AsyncOptions : Story = ( ) =>
35
+ export const AsyncOptions : StoryFn = ( ) =>
30
36
html `
31
37
< uui-combobox-async-options-example > </ uui-combobox-async-options-example >
32
38
` ;
33
39
34
- export const AsyncData : Story = ( ) =>
40
+ export const AsyncData : StoryFn = ( ) =>
35
41
html `< uui-combobox-async-example > </ uui-combobox-async-example > ` ;
36
42
37
43
const fruits = [
@@ -89,7 +95,7 @@ const renderAvatar = (option: any) => html` <uui-combobox-list-option
89
95
</ div >
90
96
</ uui-combobox-list-option > `;
91
97
92
- const Template : Story = props => {
98
+ const Template : StoryFn = props => {
93
99
const [ , updateSearch ] = useArgs ( ) ;
94
100
const [ , updateSelected ] = useArgs ( ) ;
95
101
@@ -140,7 +146,7 @@ const Template: Story = props => {
140
146
< span style ="margin-left: 16px "> Selected value: ${ selected } </ span > ` ;
141
147
} ;
142
148
143
- export const AAAOverview : Story = Template . bind ( { } ) ;
149
+ export const AAAOverview : StoryFn = Template . bind ( { } ) ;
144
150
AAAOverview . args = {
145
151
options : fruits ,
146
152
filter : basicFilter ,
@@ -169,7 +175,7 @@ AAAOverview.parameters = {
169
175
} ,
170
176
} ;
171
177
172
- export const Disabled : Story = Template . bind ( { } ) ;
178
+ export const Disabled : StoryFn = Template . bind ( { } ) ;
173
179
Disabled . args = {
174
180
options : fruits ,
175
181
filter : basicFilter ,
@@ -199,7 +205,7 @@ Disabled.parameters = {
199
205
} ,
200
206
} ;
201
207
202
- export const CustomValue : Story = Template . bind ( { } ) ;
208
+ export const CustomValue : StoryFn = Template . bind ( { } ) ;
203
209
CustomValue . args = {
204
210
options : fruits ,
205
211
valueMod : ( fruit : string ) => 'FRUIT_' + fruit . toUpperCase ( ) ,
@@ -228,7 +234,7 @@ CustomValue.parameters = {
228
234
} ,
229
235
} ;
230
236
231
- export const CustomDisplayValue : Story = Template . bind ( { } ) ;
237
+ export const CustomDisplayValue : StoryFn = Template . bind ( { } ) ;
232
238
CustomDisplayValue . args = {
233
239
options : fruits ,
234
240
displayValueMod : ( fruit : string ) =>
@@ -258,7 +264,7 @@ CustomDisplayValue.parameters = {
258
264
} ,
259
265
} ;
260
266
261
- export const Avatars : Story = Template . bind ( { } ) ;
267
+ export const Avatars : StoryFn = Template . bind ( { } ) ;
262
268
Avatars . args = {
263
269
options : avatars ,
264
270
renderMod : ( avatar : any ) => renderAvatar ( avatar ) ,
@@ -268,7 +274,7 @@ Avatars.args = {
268
274
) ,
269
275
} ;
270
276
271
- export const CountrySelect : Story = props => {
277
+ export const CountrySelect : StoryFn = props => {
272
278
const [ , updateSearch ] = useArgs ( ) ;
273
279
const [ , updateSelected ] = useArgs ( ) ;
274
280
0 commit comments