refactor(types): shorten ref, id JSDocs, use CarbonIcon type, export component props

This commit is contained in:
Eric Liu 2020-11-06 11:30:46 -08:00
commit 75d4b4cf03
219 changed files with 5168 additions and 5259 deletions

View file

@ -29,10 +29,7 @@
*/
export let platformName = "";
/**
* Obtain a reference to the HTML anchor element
* @type {null | HTMLAnchorElement}
*/
/** Obtain a reference to the HTML anchor element */
export let ref = null;
import HamburgerMenu from "../SideNav/HamburgerMenu.svelte";

View file

@ -4,7 +4,7 @@
/**
* Specify the icon props
* @type {{ render: typeof import("carbon-icons-svelte/lib/Add16").default; skeleton: boolean; }}
* @type {{ render: import("carbon-icons-svelte").CarbonIcon; skeleton: boolean; }}
*/
export let icon = undefined;
@ -15,10 +15,7 @@
*/
export let text = undefined;
/**
* Obtain a reference to the button HTML element
* @type {null | HTMLButtonElement}
*/
/** Obtain a reference to the button HTML element */
export let ref = null;
import { createEventDispatcher } from "svelte";

View file

@ -10,14 +10,11 @@
/**
* Specify the icon props
* @type {{ render: typeof import("carbon-icons-svelte/lib/Add16").default; skeleton: boolean; }}
* @type {{ render: import("carbon-icons-svelte").CarbonIcon; skeleton: boolean; }}
*/
export let icon = undefined;
/**
* Obtain a reference to the HTML anchor element
* @type {null | HTMLAnchorElement}
*/
/** Obtain a reference to the HTML anchor element */
export let ref = null;
import { Icon } from "../../Icon";

View file

@ -11,10 +11,7 @@
*/
export let text = undefined;
/**
* Obtain a reference to the HTML anchor element
* @type {null | HTMLAnchorElement}
*/
/** Obtain a reference to the HTML anchor element */
export let ref = null;
</script>

View file

@ -11,10 +11,7 @@
*/
export let text = undefined;
/**
* Obtain a reference to the HTML anchor element
* @type {null | HTMLAnchorElement}
*/
/** Obtain a reference to the HTML anchor element */
export let ref = null;
/** Specify the ARIA label for the chevron icon */

View file

@ -5,10 +5,7 @@
*/
export let href = undefined;
/**
* Obtain a reference to the HTML anchor element
* @type {null | HTMLAnchorElement}
*/
/** Obtain a reference to the HTML anchor element */
export let ref = null;
</script>

View file

@ -4,14 +4,11 @@
/**
* Specify the icon to render
* @type {typeof import("carbon-icons-svelte/lib/Add16").default}
* @type {import("carbon-icons-svelte").CarbonIcon}
*/
export let icon = undefined;
/**
* Obtain a reference to the HTML button element
* @type {null | HTMLButtonElement}
*/
/** Obtain a reference to the HTML button element */
export let ref = null;
</script>

View file

@ -8,10 +8,7 @@
/** Set to `true` to toggle the open state */
export let isOpen = false;
/**
* Obtain a reference to the HTML button element
* @type {null | HTMLButtonElement}
*/
/** Obtain a reference to the HTML button element */
export let ref = null;
import { fly } from "svelte/transition";

View file

@ -16,14 +16,11 @@
/**
* Specify the icon props
* @type {{ render: typeof import("carbon-icons-svelte/lib/Add16").default; skeleton: boolean; }}
* @type {{ render: import("carbon-icons-svelte").CarbonIcon; skeleton: boolean; }}
*/
export let icon = undefined;
/**
* Obtain a reference to the HTML anchor element
* @type {null | HTMLAnchorElement}
*/
/** Obtain a reference to the HTML anchor element */
export let ref = null;
import { Icon } from "../../Icon";

View file

@ -10,14 +10,11 @@
/**
* Specify the icon props
* @type {{ render: typeof import("carbon-icons-svelte/lib/Add16").default; skeleton: boolean; }}
* @type {{ render: import("carbon-icons-svelte").CarbonIcon; skeleton: boolean; }}
*/
export let icon = undefined;
/**
* Obtain a reference to the HTML button element
* @type {null | HTMLButtonElement}
*/
/** Obtain a reference to the HTML button element */
export let ref = null;
import ChevronDown16 from "carbon-icons-svelte/lib/ChevronDown16";

View file

@ -17,10 +17,7 @@
*/
export let text = undefined;
/**
* Obtain a reference to the HTML anchor element
* @type {null | HTMLAnchorElement}
*/
/** Obtain a reference to the HTML anchor element */
export let ref = null;
</script>