@open-condo/ui
Version:
A set of React UI components for developing applications inside the condo ecosystem
27 lines • 921 B
TypeScript
export declare const BREAKPOINTS: {
readonly MOBILE_SMALL: 0;
readonly MOBILE_LARGE: 360;
readonly TABLET_SMALL: 480;
readonly TABLET_LARGE: 768;
readonly DESKTOP_SMALL: 992;
readonly DESKTOP_LARGE: 1200;
};
export type Breakpoint = keyof typeof BREAKPOINTS;
export type ScreenMap = Partial<Record<Breakpoint, boolean>>;
type SubscribeFunc = (screens: ScreenMap) => void;
type MediaQueryListListener = (this: MediaQueryList, event: MediaQueryListEvent) => void;
declare const responsiveObserve: {
matchHandlers: {
[prop: string]: {
mql: MediaQueryList;
listener: MediaQueryListListener;
};
};
dispatch(pointMap: ScreenMap): boolean;
subscribe(func: SubscribeFunc): number;
unsubscribe(token: number): void;
unregister(): void;
register(): void;
};
export default responsiveObserve;
//# sourceMappingURL=responsiveObserve.d.ts.map