mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
feat(loading): integrate Loading
, InlineLoading
with v11
This commit is contained in:
parent
52adc778ca
commit
28c59a97bb
5 changed files with 35 additions and 49 deletions
14
types/InlineLoading/InlineLoading.svelte.d.ts
vendored
14
types/InlineLoading/InlineLoading.svelte.d.ts
vendored
|
@ -18,13 +18,15 @@ export interface InlineLoadingProps extends RestProps {
|
|||
|
||||
/**
|
||||
* Specify a description for the loading icon.
|
||||
* Defaults to the `status` prop for the "error" and "finished" states
|
||||
* Defaults to the `status` value for the
|
||||
* "error" and "finished" states.
|
||||
* @default undefined
|
||||
*/
|
||||
iconDescription?: string;
|
||||
|
||||
/**
|
||||
* Specify the timeout delay (ms) after `status` is set to "success"
|
||||
* Specify the timeout delay (ms) after `status` is set to "finished".
|
||||
* The `on:success` event will be dispatched after this delay.
|
||||
* @default 1500
|
||||
*/
|
||||
successDelay?: number;
|
||||
|
@ -34,12 +36,6 @@ export interface InlineLoadingProps extends RestProps {
|
|||
|
||||
export default class InlineLoading extends SvelteComponentTyped<
|
||||
InlineLoadingProps,
|
||||
{
|
||||
click: WindowEventMap["click"];
|
||||
mouseover: WindowEventMap["mouseover"];
|
||||
mouseenter: WindowEventMap["mouseenter"];
|
||||
mouseleave: WindowEventMap["mouseleave"];
|
||||
success: CustomEvent<null>;
|
||||
},
|
||||
{ success: CustomEvent<null> },
|
||||
{}
|
||||
> {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue