1
0
Fork 0

worked on GarageApp stuff

This commit is contained in:
Techognito 2025-08-25 17:46:11 +02:00
parent 60aaf17af3
commit eb606572b0
51919 changed files with 2168177 additions and 18 deletions

View file

@ -0,0 +1,32 @@
import * as React from 'react';
import { TouchRippleActions } from "../ButtonBase/TouchRipple.js";
type ControlledPromise<T = unknown> = Promise<T> & {
resolve: Function;
reject: Function;
};
/**
* Lazy initialization container for the Ripple instance. This improves
* performance by delaying mounting the ripple until it's needed.
*/
export declare class LazyRipple {
/** React ref to the ripple instance */
ref: React.RefObject<TouchRippleActions | null>;
/** If the ripple component should be mounted */
shouldMount: boolean;
/** Promise that resolves when the ripple component is mounted */
private mounted;
/** If the ripple component has been mounted */
private didMount;
/** React state hook setter */
private setShouldMount;
static create(): LazyRipple;
static use(): LazyRipple;
constructor();
mount(): ControlledPromise<unknown>;
mountEffect: () => void;
start(...args: Parameters<TouchRippleActions['start']>): void;
stop(...args: Parameters<TouchRippleActions['stop']>): void;
pulsate(...args: Parameters<TouchRippleActions['pulsate']>): void;
}
export default function useLazyRipple(): LazyRipple;
export {};