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

@ -91,16 +91,19 @@
on:click
on:mouseover
on:mouseenter
on:mouseleave>
on:mouseleave
>
<div class:bx--inline-notification__details="{true}">
<NotificationIcon
notificationType="{notificationType}"
kind="{kind}"
iconDescription="{iconDescription}" />
iconDescription="{iconDescription}"
/>
<NotificationTextDetails
title="{title}"
subtitle="{subtitle}"
notificationType="{notificationType}">
notificationType="{notificationType}"
>
<slot />
</NotificationTextDetails>
</div>
@ -109,7 +112,8 @@
<NotificationButton
iconDescription="{iconDescription}"
notificationType="{notificationType}"
on:click="{close}" />
on:click="{close}"
/>
{/if}
</div>
{/if}

View file

@ -11,7 +11,8 @@
{...$$props}
on:close="{() => {
console.log('on:close');
}}">
}}"
>
<div slot="actions">
<NotificationActionButton>{$$props.action}</NotificationActionButton>
</div>
@ -22,5 +23,6 @@
on:close="{() => {
console.log('on:close');
}}"
style="min-width: 30rem; margin-bottom: .5rem" />
style="min-width: 30rem; margin-bottom: .5rem"
/>
{/if}

View file

@ -10,6 +10,7 @@
on:click
on:mouseover
on:mouseenter
on:mouseleave>
on:mouseleave
>
<slot />
</Button>

View file

@ -36,10 +36,12 @@
on:click
on:mouseover
on:mouseenter
on:mouseleave>
on:mouseleave
>
<svelte:component
this="{renderIcon}"
title="{title}"
class="{notificationType === 'toast' && 'bx--toast-notification__close-icon'}
{notificationType === 'inline' && 'bx--inline-notification__close-icon'}" />
{notificationType === 'inline' && 'bx--inline-notification__close-icon'}"
/>
</button>

View file

@ -37,4 +37,5 @@
<svelte:component
this="{icons[kind]}"
title="{iconDescription}"
class="bx--{notificationType}-notification__icon" />
class="bx--{notificationType}-notification__icon"
/>

View file

@ -96,23 +96,27 @@
on:click
on:mouseover
on:mouseenter
on:mouseleave>
on:mouseleave
>
<NotificationIcon
notificationType="{notificationType}"
kind="{kind}"
iconDescription="{iconDescription}" />
iconDescription="{iconDescription}"
/>
<NotificationTextDetails
title="{title}"
subtitle="{subtitle}"
caption="{caption}"
notificationType="{notificationType}">
notificationType="{notificationType}"
>
<slot />
</NotificationTextDetails>
{#if !hideCloseButton}
<NotificationButton
iconDescription="{iconDescription}"
notificationType="{notificationType}"
on:click="{close}" />
on:click="{close}"
/>
{/if}
</div>
{/if}