mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-16 19:01: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
|
@ -29,7 +29,7 @@
|
|||
|
||||
// TODO: `find` is not supported in IE
|
||||
$: api_components = components.map((i) =>
|
||||
COMPONENT_API.components.find((_) => _.moduleName === i)
|
||||
COMPONENT_API.components.find((_) => _.moduleName === i),
|
||||
);
|
||||
$: multiple = api_components.length > 1;
|
||||
|
||||
|
@ -62,7 +62,7 @@
|
|||
|
||||
// TODO: [refactor] read from package.json value
|
||||
$: sourceCode = `https://github.com/carbon-design-system/carbon-components-svelte/tree/master/${formatSourceURL(
|
||||
multiple
|
||||
multiple,
|
||||
)}`;
|
||||
</script>
|
||||
|
||||
|
@ -83,7 +83,7 @@
|
|||
id="select-theme"
|
||||
inline
|
||||
labelText="Theme"
|
||||
bind:selected="{$theme}"
|
||||
bind:selected={$theme}
|
||||
>
|
||||
<SelectItem value="white" text="White" />
|
||||
<SelectItem value="g10" text="Gray 10" />
|
||||
|
@ -95,8 +95,8 @@
|
|||
kind="ghost"
|
||||
target="_blank"
|
||||
size="field"
|
||||
href="{sourceCode}"
|
||||
icon="{Code}"
|
||||
href={sourceCode}
|
||||
icon={Code}
|
||||
>
|
||||
Source code
|
||||
</Button>
|
||||
|
@ -144,28 +144,28 @@
|
|||
</Row>
|
||||
|
||||
<Row>
|
||||
<Column class="prose" noGutter="{multiple}">
|
||||
<Column class="prose" noGutter={multiple}>
|
||||
{#if multiple}
|
||||
<Tabs class="override-tabs">
|
||||
{#each api_components as component (component.moduleName)}
|
||||
<Tab label="{component.moduleName}" />
|
||||
<Tab label={component.moduleName} />
|
||||
{/each}
|
||||
<div slot="content" style="padding-top: var(--cds-spacing-06)">
|
||||
{#each api_components as component (component.moduleName)}
|
||||
<TabContent>
|
||||
<ComponentApi component="{component}" />
|
||||
<ComponentApi {component} />
|
||||
</TabContent>
|
||||
{/each}
|
||||
</div>
|
||||
</Tabs>
|
||||
{:else}
|
||||
<ComponentApi component="{api_components[0]}" />
|
||||
<ComponentApi component={api_components[0]} />
|
||||
{/if}
|
||||
</Column>
|
||||
</Row>
|
||||
</Grid>
|
||||
|
||||
<Column class="table" xlg="{4}" lg="{5}">
|
||||
<Column class="table" xlg={4} lg={5}>
|
||||
<div class="toc">
|
||||
<h5>Examples</h5>
|
||||
<slot name="aside" />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue