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

@ -33,21 +33,23 @@
<p>
<code>items</code> must be an array of objects; mandatory fields are `id` and `text`.
</p>
<pre
style="margin-top: 1rem;">
<code>{'items = Array<{ id: string; text: string; }>'}</code>
<pre style="margin-top: 1rem;">
<code
>{'items = Array<{ id: string; text: string; }>'}</code>
</pre>
<div style="margin-top: 2rem;">
<ToggleSmall
labelText="Enable filtering"
bind:toggled
style="margin-top: 1rem;" />
style="margin-top: 1rem;"
/>
<Button
size="small"
on:click="{() => {
selectedIndex = 1;
}}"
style="margin-top: 1rem;">
style="margin-top: 1rem;"
>
Set item to "Option 2"
</Button>
</div>
@ -65,5 +67,6 @@
console.log('on:clear');
}}"
items="{items}"
shouldFilterItem="{shouldFilterItem}" />
shouldFilterItem="{shouldFilterItem}"
/>
</div>

View file

@ -183,7 +183,8 @@
<label
for="{id}"
class:bx--label="{true}"
class:bx--label--disabled="{disabled}">
class:bx--label--disabled="{disabled}"
>
{titleText}
</label>
{/if}
@ -196,7 +197,8 @@
invalidText="{invalidText}"
open="{open}"
light="{light}"
size="{size}">
size="{size}"
>
<ListBoxField
role="button"
aria-expanded="{open}"
@ -206,7 +208,8 @@
id="{id}"
name="{name}"
disabled="{disabled}"
translateWithId="{translateWithId}">
translateWithId="{translateWithId}"
>
<input
bind:this="{ref}"
tabindex="0"
@ -251,7 +254,8 @@
disabled="{disabled}"
placeholder="{placeholder}"
id="{id}"
value="{inputValue}" />
value="{inputValue}"
/>
{#if invalid}
<WarningFilled16 class="bx--list-box__invalid-icon" />
{/if}
@ -265,7 +269,8 @@
}}"
translateWithId="{translateWithId}"
disabled="{disabled}"
open="{open}" />
open="{open}"
/>
{/if}
<ListBoxMenuIcon
on:click="{(e) => {
@ -273,7 +278,8 @@
open = !open;
}}"
translateWithId="{translateWithId}"
open="{open}" />
open="{open}"
/>
</ListBoxField>
{#if open}
<ListBoxMenu aria-label="{ariaLabel}" id="{id}">
@ -290,7 +296,8 @@
}}"
on:mouseenter="{() => {
highlightedIndex = i;
}}">
}}"
>
{itemToString(item)}
</ListBoxMenuItem>
{/each}
@ -300,7 +307,8 @@
{#if !invalid && helperText}
<div
class:bx--form__helper-text="{true}"
class:bx--form__helper-text--disabled="{disabled}">
class:bx--form__helper-text--disabled="{disabled}"
>
{helperText}
</div>
{/if}