mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11: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
|
@ -13,14 +13,16 @@
|
|||
<TimePickerSelect
|
||||
{...$$props.select}
|
||||
id="time-picker-select-1"
|
||||
bind:value="{select1}">
|
||||
bind:value="{select1}"
|
||||
>
|
||||
<SelectItem value="AM" text="AM" />
|
||||
<SelectItem value="PM" text="PM" />
|
||||
</TimePickerSelect>
|
||||
<TimePickerSelect
|
||||
{...$$props.select}
|
||||
id="time-picker-select-2"
|
||||
bind:value="{select2}">
|
||||
bind:value="{select2}"
|
||||
>
|
||||
<SelectItem value="Time zone 1" text="Time zone 1" />
|
||||
<SelectItem value="Time zone 2" text="Time zone 2" />
|
||||
</TimePickerSelect>
|
||||
|
|
|
@ -90,18 +90,21 @@
|
|||
on:click
|
||||
on:mouseover
|
||||
on:mouseenter
|
||||
on:mouseleave>
|
||||
on:mouseleave
|
||||
>
|
||||
<div
|
||||
class:bx--time-picker="{true}"
|
||||
class:bx--time-picker--light="{light}"
|
||||
class:bx--select--light="{light}">
|
||||
class:bx--select--light="{light}"
|
||||
>
|
||||
<div class:bx--time-picker__input="{true}">
|
||||
{#if labelText}
|
||||
<label
|
||||
for="{id}"
|
||||
class:bx--label="{true}"
|
||||
class:bx--visually-hidden="{hideLabel}"
|
||||
class:bx--label--disabled="{disabled}">
|
||||
class:bx--label--disabled="{disabled}"
|
||||
>
|
||||
{labelText}
|
||||
</label>
|
||||
{/if}
|
||||
|
@ -126,7 +129,8 @@
|
|||
value = target.value;
|
||||
}}"
|
||||
on:focus
|
||||
on:blur />
|
||||
on:blur
|
||||
/>
|
||||
</div>
|
||||
<slot />
|
||||
</div>
|
||||
|
|
|
@ -67,12 +67,14 @@
|
|||
on:click
|
||||
on:mouseover
|
||||
on:mouseenter
|
||||
on:mouseleave>
|
||||
on:mouseleave
|
||||
>
|
||||
{#if labelText}
|
||||
<label
|
||||
for="{id}"
|
||||
class:bx--label="{true}"
|
||||
class:bx--visually-hidden="{hideLabel}">
|
||||
class:bx--visually-hidden="{hideLabel}"
|
||||
>
|
||||
<!-- TODO: set to always be `true` after `hideLabel` is deprecated -->
|
||||
{labelText}
|
||||
</label>
|
||||
|
@ -87,11 +89,13 @@
|
|||
class:bx--select-input="{true}"
|
||||
on:change="{({ target }) => {
|
||||
selectedValue.set(target.value);
|
||||
}}">
|
||||
}}"
|
||||
>
|
||||
<slot />
|
||||
</select>
|
||||
<ChevronDownGlyph
|
||||
aria-label="{iconDescription}"
|
||||
title="{iconDescription}"
|
||||
class="bx--select__arrow" />
|
||||
class="bx--select__arrow"
|
||||
/>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue