mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-16 02:41: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
|
@ -38,13 +38,13 @@
|
|||
{#if disabled}
|
||||
<!-- svelte-ignore a11y-no-noninteractive-element-interactions -->
|
||||
<a
|
||||
bind:this="{ref}"
|
||||
bind:this={ref}
|
||||
role="link"
|
||||
aria-disabled="true"
|
||||
class:bx--link="{true}"
|
||||
class:bx--link--disabled="{disabled}"
|
||||
class:bx--link--inline="{inline}"
|
||||
class:bx--link--visited="{visited}"
|
||||
class:bx--link={true}
|
||||
class:bx--link--disabled={disabled}
|
||||
class:bx--link--inline={inline}
|
||||
class:bx--link--visited={visited}
|
||||
{...$$restProps}
|
||||
on:click
|
||||
on:mouseover
|
||||
|
@ -53,24 +53,24 @@
|
|||
>
|
||||
<slot />
|
||||
{#if !inline && ($$slots.icon || icon)}
|
||||
<div class:bx--link__icon="{true}">
|
||||
<div class:bx--link__icon={true}>
|
||||
<slot name="icon">
|
||||
<svelte:component this="{icon}" />
|
||||
<svelte:component this={icon} />
|
||||
</slot>
|
||||
</div>
|
||||
{/if}
|
||||
</a>
|
||||
{:else}
|
||||
<a
|
||||
bind:this="{ref}"
|
||||
class:bx--link="{true}"
|
||||
class:bx--link--disabled="{disabled}"
|
||||
class:bx--link--inline="{inline}"
|
||||
class:bx--link--visited="{visited}"
|
||||
class:bx--link--sm="{size === 'sm'}"
|
||||
class:bx--link--lg="{size === 'lg'}"
|
||||
rel="{$$restProps.target === '_blank' ? 'noopener noreferrer' : undefined}"
|
||||
href="{href}"
|
||||
bind:this={ref}
|
||||
class:bx--link={true}
|
||||
class:bx--link--disabled={disabled}
|
||||
class:bx--link--inline={inline}
|
||||
class:bx--link--visited={visited}
|
||||
class:bx--link--sm={size === "sm"}
|
||||
class:bx--link--lg={size === "lg"}
|
||||
rel={$$restProps.target === "_blank" ? "noopener noreferrer" : undefined}
|
||||
{href}
|
||||
{...$$restProps}
|
||||
on:click
|
||||
on:mouseover
|
||||
|
@ -79,9 +79,9 @@
|
|||
>
|
||||
<slot />
|
||||
{#if !inline && ($$slots.icon || icon)}
|
||||
<div class:bx--link__icon="{true}">
|
||||
<div class:bx--link__icon={true}>
|
||||
<slot name="icon">
|
||||
<svelte:component this="{icon}" />
|
||||
<svelte:component this={icon} />
|
||||
</slot>
|
||||
</div>
|
||||
{/if}
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
on:mouseenter
|
||||
on:mouseleave
|
||||
target="_blank"
|
||||
icon="{Launch}"
|
||||
icon={Launch}
|
||||
>
|
||||
<slot />
|
||||
</Link>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue