Skip to content

Commit 4e17963

Browse files
committed
fix file input story
1 parent 231dbb6 commit 4e17963

File tree

1 file changed

+18
-8
lines changed

1 file changed

+18
-8
lines changed

packages/uui-input-file/lib/uui-input-file.story.ts

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
1+
import '@umbraco-ui/uui-symbol-file-dropzone/lib';
2+
import '@umbraco-ui/uui-file-dropzone/lib';
3+
import '@umbraco-ui/uui-action-bar/lib';
4+
import '@umbraco-ui/uui-file-preview/lib';
5+
import '@umbraco-ui/uui-icon/lib';
6+
import '@umbraco-ui/uui-symbol-file-thumbnail/lib';
7+
import '@umbraco-ui/uui-symbol-file/lib';
8+
import '@umbraco-ui/uui-symbol-folder/lib';
9+
import '@umbraco-ui/uui-button/lib';
10+
111
import '.';
212

3-
import { Story } from '@storybook/web-components';
13+
import { StoryFn } from '@storybook/web-components';
414
import { html } from 'lit';
515

616
export default {
@@ -9,11 +19,11 @@ export default {
919
component: 'uui-input-file',
1020
};
1121

12-
export const AAAOverview: Story = () =>
22+
export const AAAOverview: StoryFn = () =>
1323
html`<uui-input-file name="input-file"></uui-input-file>`;
1424
AAAOverview.storyName = 'Overview';
1525

16-
export const Multiple: Story = () =>
26+
export const Multiple: StoryFn = () =>
1727
html`<uui-input-file name="input-file" multiple></uui-input-file>`;
1828

1929
Multiple.parameters = {
@@ -25,7 +35,7 @@ Multiple.parameters = {
2535
},
2636
};
2737

28-
export const Accept: Story = () =>
38+
export const Accept: StoryFn = () =>
2939
html`<uui-input-file name="input-file" accept="image/*"></uui-input-file>`;
3040

3141
Accept.parameters = {
@@ -52,7 +62,7 @@ const submit = (e: SubmitEvent) => {
5262
console.log('Files', data);
5363
};
5464

55-
export const Form: Story = () => {
65+
export const Form: StoryFn = () => {
5666
return html`
5767
<form @submit=${submit}>
5868
<uui-input-file name="input-file" multiple> </uui-input-file>
@@ -86,7 +96,7 @@ const submit = (e) => {
8696
},
8797
};
8898

89-
export const FormValidation: Story = () => {
99+
export const FormValidation: StoryFn = () => {
90100
return html`
91101
<uui-form>
92102
<form @submit=${submit}>
@@ -134,7 +144,7 @@ const submit = (e) => {
134144
},
135145
};
136146

137-
export const MultiplePrevalues: Story = () => {
147+
export const MultiplePrevalues: StoryFn = () => {
138148
const init = async () => {
139149
const imageUrl =
140150
'https://images.unsplash.com/photo-1650346910623-3a0d9ee1f2ae?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=2371&q=80';
@@ -195,7 +205,7 @@ init();
195205
},
196206
};
197207

198-
export const SinglePrevalue: Story = () => {
208+
export const SinglePrevalue: StoryFn = () => {
199209
const init = async () => {
200210
const imageUrl =
201211
'https://images.unsplash.com/photo-1650346910623-3a0d9ee1f2ae?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=2371&q=80';

0 commit comments

Comments
 (0)