mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 18:31:06 +00:00
feat(prettier): add svelteBracketNewLine
This commit is contained in:
parent
7a28d21ceb
commit
398887a3d3
182 changed files with 974 additions and 494 deletions
|
@ -14,7 +14,8 @@
|
|||
on:click
|
||||
on:mouseover
|
||||
on:mouseenter
|
||||
on:mouseleave>
|
||||
on:mouseleave
|
||||
>
|
||||
<span class:bx--label="{true}"></span>
|
||||
<div class:bx--search-input="{true}"></div>
|
||||
</div>
|
||||
|
|
|
@ -90,13 +90,15 @@
|
|||
on:click
|
||||
on:mouseover
|
||||
on:mouseenter
|
||||
on:mouseleave />
|
||||
on:mouseleave
|
||||
/>
|
||||
{:else}
|
||||
<div
|
||||
class:bx--search="{true}"
|
||||
class:bx--search--light="{light}"
|
||||
{...$$restProps}
|
||||
class="bx--search--{size} {$$restProps.class}">
|
||||
class="bx--search--{size} {$$restProps.class}"
|
||||
>
|
||||
<Search16 class="bx--search-magnifier" />
|
||||
<label for="{id}" class:bx--label="{true}">{labelText}</label>
|
||||
<!-- svelte-ignore a11y-autofocus -->
|
||||
|
@ -114,7 +116,8 @@
|
|||
on:input
|
||||
on:input="{({ target }) => {
|
||||
value = target.value;
|
||||
}}" />
|
||||
}}"
|
||||
/>
|
||||
<button
|
||||
type="button"
|
||||
aria-label="{closeButtonLabelText}"
|
||||
|
@ -124,7 +127,8 @@
|
|||
on:click="{() => {
|
||||
value = '';
|
||||
ref.focus();
|
||||
}}">
|
||||
}}"
|
||||
>
|
||||
<svelte:component this="{size === 'xl' ? Close20 : Close16}" />
|
||||
</button>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue