mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
chore(prettier): use svelteStrictMode
This commit is contained in:
parent
322b238cf0
commit
42b8159b1c
182 changed files with 2020 additions and 1912 deletions
|
@ -13,29 +13,29 @@
|
|||
</script>
|
||||
|
||||
<section
|
||||
class:bx--skeleton={true}
|
||||
class:bx--structured-list={true}
|
||||
class:bx--structured-list--border={border}
|
||||
class:bx--skeleton="{true}"
|
||||
class:bx--structured-list="{true}"
|
||||
class:bx--structured-list--border="{border}"
|
||||
{...$$restProps}
|
||||
on:click
|
||||
on:mouseover
|
||||
on:mouseenter
|
||||
on:mouseleave>
|
||||
<div class:bx--structured-list-thead={true}>
|
||||
<div class:bx--structured-list-thead="{true}">
|
||||
<div
|
||||
class:bx--structured-list-row={true}
|
||||
class:bx--structured-list-row--header-row={true}>
|
||||
<div class:bx--structured-list-th={true}><span /></div>
|
||||
<div class:bx--structured-list-th={true}><span /></div>
|
||||
<div class:bx--structured-list-th={true}><span /></div>
|
||||
class:bx--structured-list-row="{true}"
|
||||
class:bx--structured-list-row--header-row="{true}">
|
||||
<div class:bx--structured-list-th="{true}"><span></span></div>
|
||||
<div class:bx--structured-list-th="{true}"><span></span></div>
|
||||
<div class:bx--structured-list-th="{true}"><span></span></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class:bx--structured-list-tbody={true}>
|
||||
<div class:bx--structured-list-tbody="{true}">
|
||||
{#each Array.from({ length: rows }, (_, i) => i) as row, i (row)}
|
||||
<div class:bx--structured-list-row={true}>
|
||||
<div class:bx--structured-list-td={true} />
|
||||
<div class:bx--structured-list-td={true} />
|
||||
<div class:bx--structured-list-td={true} />
|
||||
<div class:bx--structured-list-row="{true}">
|
||||
<div class:bx--structured-list-td="{true}"></div>
|
||||
<div class:bx--structured-list-td="{true}"></div>
|
||||
<div class:bx--structured-list-td="{true}"></div>
|
||||
</div>
|
||||
{/each}
|
||||
</div>
|
||||
|
|
|
@ -36,9 +36,9 @@
|
|||
|
||||
<section
|
||||
aria-label="Structured list section"
|
||||
class:bx--structured-list={true}
|
||||
class:bx--structured-list--border={border}
|
||||
class:bx--structured-list--selection={selection}
|
||||
class:bx--structured-list="{true}"
|
||||
class:bx--structured-list--border="{border}"
|
||||
class:bx--structured-list--selection="{selection}"
|
||||
{...$$restProps}
|
||||
on:click
|
||||
on:mouseover
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<div
|
||||
class:bx--structured-list-tbody={true}
|
||||
class:bx--structured-list-tbody="{true}"
|
||||
{...$$restProps}
|
||||
on:click
|
||||
on:mouseover
|
||||
|
|
|
@ -13,9 +13,9 @@
|
|||
</script>
|
||||
|
||||
<div
|
||||
class:bx--structured-list-th={head}
|
||||
class:bx--structured-list-td={!head}
|
||||
class:bx--structured-list-content--nowrap={noWrap}
|
||||
class:bx--structured-list-th="{head}"
|
||||
class:bx--structured-list-td="{!head}"
|
||||
class:bx--structured-list-content--nowrap="{noWrap}"
|
||||
{...$$restProps}
|
||||
on:click
|
||||
on:mouseover
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<div
|
||||
class:bx--structured-list-thead={true}
|
||||
class:bx--structured-list-thead="{true}"
|
||||
{...$$restProps}
|
||||
on:click
|
||||
on:mouseover
|
||||
|
|
|
@ -47,16 +47,16 @@
|
|||
</script>
|
||||
|
||||
<input
|
||||
bind:this={ref}
|
||||
bind:this="{ref}"
|
||||
type="radio"
|
||||
tabindex="-1"
|
||||
{checked}
|
||||
{id}
|
||||
{name}
|
||||
{title}
|
||||
{value}
|
||||
class:bx--structured-list-input={true}
|
||||
checked="{checked}"
|
||||
id="{id}"
|
||||
name="{name}"
|
||||
title="{title}"
|
||||
value="{value}"
|
||||
class:bx--structured-list-input="{true}"
|
||||
{...$$restProps}
|
||||
on:change={() => {
|
||||
on:change="{() => {
|
||||
update(value);
|
||||
}} />
|
||||
}}" />
|
||||
|
|
|
@ -22,9 +22,9 @@
|
|||
<!-- svelte-ignore a11y-label-has-associated-control -->
|
||||
<label
|
||||
role="presentation"
|
||||
{tabindex}
|
||||
class:bx--structured-list-row={true}
|
||||
class:bx--structured-list-row--header-row={head}
|
||||
tabindex="{tabindex}"
|
||||
class:bx--structured-list-row="{true}"
|
||||
class:bx--structured-list-row--header-row="{head}"
|
||||
{...$$restProps}
|
||||
on:click
|
||||
on:mouseover
|
||||
|
@ -35,8 +35,8 @@
|
|||
</label>
|
||||
{:else}
|
||||
<div
|
||||
class:bx--structured-list-row={true}
|
||||
class:bx--structured-list-row--header-row={head}
|
||||
class:bx--structured-list-row="{true}"
|
||||
class:bx--structured-list-row--header-row="{head}"
|
||||
{...$$restProps}
|
||||
on:click
|
||||
on:mouseover
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue