1
- import { Story } from '@storybook/web-components' ;
1
+ import { StoryFn } from '@storybook/web-components' ;
2
2
import { html } from 'lit' ;
3
+ import '@umbraco-ui/uui-avatar/lib' ;
4
+
3
5
import './index' ;
4
6
5
7
export default {
@@ -19,7 +21,7 @@ const cardContent = html`
19
21
< div > Has not logged in yet</ div >
20
22
` ;
21
23
22
- const Template : Story = props => html `
24
+ const Template : StoryFn = props => html `
23
25
< uui-card-user
24
26
name =${ props . name }
25
27
?selectable =${ props . selectable }
@@ -42,7 +44,7 @@ AAAOverview.args = {
42
44
disabled : false ,
43
45
} ;
44
46
45
- export const Selectable : Story = Template . bind ( { } ) ;
47
+ export const Selectable : StoryFn = Template . bind ( { } ) ;
46
48
Selectable . args = {
47
49
selectable : true ,
48
50
} ;
@@ -59,7 +61,7 @@ Selectable.parameters = {
59
61
} ,
60
62
} ;
61
63
62
- export const SelectOnly : Story = Template . bind ( { } ) ;
64
+ export const SelectOnly : StoryFn = Template . bind ( { } ) ;
63
65
SelectOnly . args = {
64
66
selectable : true ,
65
67
selectOnly : true ,
@@ -77,7 +79,7 @@ SelectOnly.parameters = {
77
79
} ,
78
80
} ;
79
81
80
- export const Disabled : Story = Template . bind ( { } ) ;
82
+ export const Disabled : StoryFn = Template . bind ( { } ) ;
81
83
Disabled . args = {
82
84
disabled : true ,
83
85
} ;
@@ -94,7 +96,7 @@ Disabled.parameters = {
94
96
} ,
95
97
} ;
96
98
97
- export const Error : Story = Template . bind ( { } ) ;
99
+ export const Error : StoryFn = Template . bind ( { } ) ;
98
100
Error . args = {
99
101
error : true ,
100
102
} ;
@@ -111,7 +113,7 @@ Error.parameters = {
111
113
} ,
112
114
} ;
113
115
114
- export const Actions : Story = ( ) => html `
116
+ export const Actions : StoryFn = ( ) => html `
115
117
< uui-card-user name ="John Rabbit ">
116
118
< uui-action-bar slot ="actions ">
117
119
< uui-button label ="Remove "> Remove</ uui-button >
@@ -136,7 +138,7 @@ Actions.parameters = {
136
138
} ,
137
139
} ;
138
140
139
- export const Tags : Story = ( ) => html `
141
+ export const Tags : StoryFn = ( ) => html `
140
142
< uui-card-user name ="John Rabbit ">
141
143
< uui-tag slot ="tag " size ="s " color ="danger "> Disabled</ uui-tag >
142
144
0 commit comments