mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
chore: format files with Prettier 3
This commit is contained in:
parent
1dcd09bd98
commit
8e996dc683
391 changed files with 3725 additions and 3785 deletions
|
@ -82,8 +82,8 @@
|
|||
{:else}
|
||||
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
||||
<div
|
||||
class:bx--form-item="{true}"
|
||||
class:bx--checkbox-wrapper="{true}"
|
||||
class:bx--form-item={true}
|
||||
class:bx--checkbox-wrapper={true}
|
||||
{...$$restProps}
|
||||
on:click
|
||||
on:mouseover
|
||||
|
@ -91,18 +91,18 @@
|
|||
on:mouseleave
|
||||
>
|
||||
<input
|
||||
bind:this="{ref}"
|
||||
bind:this={ref}
|
||||
type="checkbox"
|
||||
value="{value}"
|
||||
checked="{checked}"
|
||||
disabled="{disabled}"
|
||||
id="{id}"
|
||||
{value}
|
||||
{checked}
|
||||
{disabled}
|
||||
{id}
|
||||
bind:indeterminate
|
||||
name="{name}"
|
||||
required="{required}"
|
||||
readonly="{readonly}"
|
||||
class:bx--checkbox="{true}"
|
||||
on:change="{() => {
|
||||
{name}
|
||||
{required}
|
||||
{readonly}
|
||||
class:bx--checkbox={true}
|
||||
on:change={() => {
|
||||
if (useGroup) {
|
||||
group = group.includes(value)
|
||||
? group.filter((_value) => _value !== value)
|
||||
|
@ -110,16 +110,16 @@
|
|||
} else {
|
||||
checked = !checked;
|
||||
}
|
||||
}}"
|
||||
}}
|
||||
on:change
|
||||
on:focus
|
||||
on:blur
|
||||
/>
|
||||
<label for="{id}" title="{title}" class:bx--checkbox-label="{true}">
|
||||
<label for={id} {title} class:bx--checkbox-label={true}>
|
||||
<span
|
||||
bind:this="{refLabel}"
|
||||
class:bx--checkbox-label-text="{true}"
|
||||
class:bx--visually-hidden="{hideLabel}"
|
||||
bind:this={refLabel}
|
||||
class:bx--checkbox-label-text={true}
|
||||
class:bx--visually-hidden={hideLabel}
|
||||
>
|
||||
<slot name="labelText">
|
||||
{labelText}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue