feat(prettier): add svelteBracketNewLine

This commit is contained in:
josefaidt 2020-09-24 10:50:34 -05:00
commit 398887a3d3
182 changed files with 974 additions and 494 deletions

View file

@ -9,7 +9,8 @@
on:click
on:mouseover
on:mouseenter
on:mouseleave>
on:mouseleave
>
<SkeletonText heading width="100px" />
<SkeletonText width="225px" class="bx--label-description" />
<ButtonSkeleton />

View file

@ -21,7 +21,8 @@
{...$$props}
on:add="{({ detail }) => {
console.log(detail);
}}" />
}}"
/>
{:else if story === 'item'}
<FileUploaderItem
{...$$props}
@ -30,7 +31,8 @@
}}"
on:click="{() => {
console.log('click');
}}" />
}}"
/>
{:else if story === 'uploader'}
<div class="bx--file__container">
<FileUploader
@ -42,13 +44,15 @@
}}"
on:remove="{({ detail }) => {
console.log('remove', detail);
}}" />
}}"
/>
<Button
kind="secondary"
size="small"
style="margin-top: 1rem"
disabled="{disabled}"
on:click="{fileUploader.clearFiles}">
on:click="{fileUploader.clearFiles}"
>
Clear File{files.length === 1 ? '' : 's'}
</Button>
</div>

View file

@ -95,7 +95,8 @@
on:click
on:mouseover
on:mouseenter
on:mouseleave>
on:mouseleave
>
<strong class:bx--file--label="{true}">{labelTitle}</strong>
<p class:bx--label-description="{true}">{labelDescription}</p>
<FileUploaderButton
@ -108,7 +109,8 @@
on:change
on:change="{({ target }) => {
files = [...target.files].map(({ name }) => name);
}}" />
}}"
/>
<div class:bx--file-container="{true}">
{#each files as name, i (name)}
<span class:bx--file__selected-file="{true}">
@ -126,7 +128,8 @@
on:click
on:click="{() => {
files = files.filter((_, index) => index !== i);
}}" />
}}"
/>
</span>
</span>
{/each}

View file

@ -79,7 +79,8 @@
if (key === ' ' || key === 'Enter') {
ref.click();
}
}}">
}}"
>
<span role="{role}">{labelText}</span>
</label>
<input
@ -104,4 +105,5 @@
on:click
on:click="{({ target }) => {
target.value = null;
}}" />
}}"
/>

View file

@ -94,7 +94,8 @@
over = false;
dispatch('add', validateFiles(dataTransfer.files));
}
}}">
}}"
>
<label
for="{id}"
tabindex="{tabindex}"
@ -105,11 +106,13 @@
if (key === ' ' || key === 'Enter') {
ref.click();
}
}}">
}}"
>
<div
role="{role}"
class:bx--file__drop-container="{true}"
class:bx--file__drop-container--drag-over="{over}">
class:bx--file__drop-container--drag-over="{over}"
>
{labelText}
<input
bind:this="{ref}"
@ -128,7 +131,8 @@
on:click
on:click="{({ target }) => {
target.value = null;
}}" />
}}"
/>
</div>
</label>
</div>

View file

@ -54,7 +54,8 @@
{...$$restProps}
on:mouseover
on:mouseenter
on:mouseleave>
on:mouseleave
>
<p class:bx--file-filename="{true}">{name}</p>
<span class:bx--file__state-container="{true}">
<Filename
@ -68,7 +69,8 @@
}}"
iconDescription="{iconDescription}"
status="{status}"
invalid="{invalid}" />
invalid="{invalid}"
/>
</span>
{#if invalid && errorSubject}
<div class:bx--form-requirement="{true}">

View file

@ -28,7 +28,8 @@
description="{iconDescription}"
{...$$restProps}
small
withOverlay="{false}" />
withOverlay="{false}"
/>
{/if}
{#if status === 'edit'}
@ -41,7 +42,8 @@
class="bx--file-close"
{...$$restProps}
on:click
on:keydown />
on:keydown
/>
{/if}
{#if status === 'complete'}
@ -49,5 +51,6 @@
aria-label="{iconDescription}"
title="{iconDescription}"
class="bx--file-complete"
{...$$restProps} />
{...$$restProps}
/>
{/if}