mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
refactor(types): shorten ref, id JSDocs, use CarbonIcon type, export component props
This commit is contained in:
parent
d38e6d8be6
commit
75d4b4cf03
219 changed files with 5168 additions and 5259 deletions
49
types/InlineLoading/InlineLoading.d.ts
vendored
49
types/InlineLoading/InlineLoading.d.ts
vendored
|
@ -1,30 +1,31 @@
|
|||
/// <reference types="svelte" />
|
||||
|
||||
export interface InlineLoadingProps extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["div"]> {
|
||||
/**
|
||||
* Set the loading status
|
||||
* @default "active"
|
||||
*/
|
||||
status?: "active" | "inactive" | "finished" | "error";
|
||||
|
||||
/**
|
||||
* Set the loading description
|
||||
*/
|
||||
description?: string;
|
||||
|
||||
/**
|
||||
* Specify the ARIA label for the loading icon
|
||||
*/
|
||||
iconDescription?: string;
|
||||
|
||||
/**
|
||||
* Specify the timeout delay (ms) after `status` is set to "success"
|
||||
* @default 1500
|
||||
*/
|
||||
successDelay?: number;
|
||||
}
|
||||
|
||||
export default class InlineLoading {
|
||||
$$prop_def: svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["div"]> & {
|
||||
/**
|
||||
* Set the loading status
|
||||
* @default "active"
|
||||
*/
|
||||
status?: "active" | "inactive" | "finished" | "error";
|
||||
|
||||
/**
|
||||
* Set the loading description
|
||||
*/
|
||||
description?: string;
|
||||
|
||||
/**
|
||||
* Specify the ARIA label for the loading icon
|
||||
*/
|
||||
iconDescription?: string;
|
||||
|
||||
/**
|
||||
* Specify the timeout delay (ms) after `status` is set to "success"
|
||||
* @default 1500
|
||||
*/
|
||||
successDelay?: number;
|
||||
};
|
||||
|
||||
$$prop_def: InlineLoadingProps;
|
||||
$$slot_def: {};
|
||||
|
||||
$on(eventname: "click", cb: (event: WindowEventMap["click"]) => void): () => void;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue