-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only encode Schedule Input when added or edited (#2384)
* Only encode schedule input when it is added or edited * Add edit button for input value and encoding * Move file input to same line as data * Add FileInput story
- Loading branch information
1 parent
197e238
commit d540904
Showing
6 changed files
with
87 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<script lang="ts" context="module"> | ||
import type { Meta } from '@storybook/svelte'; | ||
export const meta = { | ||
title: 'File Input', | ||
component: FileInput, | ||
args: { | ||
id: 'file-input', | ||
accept: '.json', | ||
}, | ||
argTypes: { | ||
id: { control: 'text' }, | ||
accept: { control: 'text' }, | ||
}, | ||
} satisfies Meta<FileInput>; | ||
</script> | ||
|
||
<script lang="ts"> | ||
import { Story, Template } from '@storybook/addon-svelte-csf'; | ||
import FileInput from './file-input.svelte'; | ||
</script> | ||
|
||
<Template let:args> | ||
<FileInput {...args} /> | ||
</Template> | ||
|
||
<Story name="Default" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters