mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-16 02:41:05 +00:00
feat(prettier): add svelteBracketNewLine
This commit is contained in:
parent
7a28d21ceb
commit
398887a3d3
182 changed files with 974 additions and 494 deletions
|
@ -32,7 +32,8 @@
|
|||
}}"
|
||||
on:close="{() => {
|
||||
console.log('on:close');
|
||||
}}">
|
||||
}}"
|
||||
>
|
||||
<div slot="icon" class="custom-icon-class"></div>
|
||||
<p>
|
||||
This is some tooltip text. This box shows the maximum amount of text
|
||||
|
@ -49,14 +50,16 @@
|
|||
style="padding: 15px 20px; margin: 4px 20px"
|
||||
on:click="{() => {
|
||||
open = false;
|
||||
}}">
|
||||
}}"
|
||||
>
|
||||
Hide
|
||||
</Button>
|
||||
<Button
|
||||
style="padding: 15px 20px; margin: 4px 20px"
|
||||
on:click="{() => {
|
||||
open = true;
|
||||
}}">
|
||||
}}"
|
||||
>
|
||||
Show
|
||||
</Button>
|
||||
<div style="padding: 15px 20px; margin: 4px 20px">
|
||||
|
@ -76,7 +79,8 @@
|
|||
on:close="{() => {
|
||||
console.log('on:close');
|
||||
}}"
|
||||
icon="{story === 'custom icon only' ? OverflowMenuVertical16 : undefined}">
|
||||
icon="{story === 'custom icon only' ? OverflowMenuVertical16 : undefined}"
|
||||
>
|
||||
<p>
|
||||
This is some tooltip text. This box shows the maximum amount of text
|
||||
that should appear inside. If more room is needed please use a modal
|
||||
|
|
|
@ -198,7 +198,8 @@
|
|||
on:click|preventDefault|stopPropagation="{openMenu}"
|
||||
on:focus="{openMenu}"
|
||||
on:blur="{onBlur}"
|
||||
on:keydown="{onKeydown}">
|
||||
on:keydown="{onKeydown}"
|
||||
>
|
||||
<slot name="icon">
|
||||
<svelte:component this="{icon}" name="{iconName}" />
|
||||
</slot>
|
||||
|
@ -211,7 +212,8 @@
|
|||
on:click|preventDefault|stopPropagation="{openMenu}"
|
||||
on:focus="{openMenu}"
|
||||
on:blur="{onBlur}"
|
||||
on:keydown="{onKeydown}">
|
||||
on:keydown="{onKeydown}"
|
||||
>
|
||||
<slot name="triggerText">{triggerText}</slot>
|
||||
</div>
|
||||
{/if}
|
||||
|
@ -224,7 +226,8 @@
|
|||
data-floating-menu-direction="{direction}"
|
||||
class:bx--tooltip="{true}"
|
||||
class:bx--tooltip--shown="{open}"
|
||||
on:blur="{closeMenu}">
|
||||
on:blur="{closeMenu}"
|
||||
>
|
||||
<span class:bx--tooltip__caret="{true}"></span>
|
||||
<slot />
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue