chore: use sveld to generate types, component docs

This commit is contained in:
Eric Liu 2020-11-16 11:13:18 -08:00
commit 380a780b65
15 changed files with 13298 additions and 4888 deletions

View file

@ -39,7 +39,7 @@
class:bx--accordion__item--active="{open}"
class:bx--accordion__item--disabled="{disabled}"
{...$$restProps}
class="bx--accordion__item--${animation} {$$restProps.class}"
class="bx--accordion__item--{animation} {$$restProps.class}"
on:animationend
on:animationend="{() => {
animation = undefined;

View file

@ -1,4 +1,8 @@
<script>
/**
* @slot {{ props?: { role: "button"; type?: string; tabindex: string; disabled: boolean; href?: string; class: string; [key: string]: any; } }}
*/
/**
* Specify the kind of button
* @type {"primary" | "secondary" | "tertiary" | "ghost" | "danger" | "danger-tertiary" | "danger-ghost"}

View file

@ -1,6 +1,6 @@
<script>
/**
* @slot {{ props?: { class: string; } }}
* @slot {{ props?: { class: string; [key: string]: any; } }}
*/
/**