UNPKG

724 BTypeScriptView Raw
1/**
2 * Popup should follow the steps for each component work correctly:
3 * measure - check for the current stretch size
4 * align - let component align the position
5 * aligned - re-align again in case additional className changed the size
6 * afterAlign - choice next step is trigger motion or finished
7 * beforeMotion - should reset motion to invisible so that CSSMotion can do normal motion
8 * motion - play the motion
9 * stable - everything is done
10 */
11declare type PopupStatus = null | 'measure' | 'alignPre' | 'align' | 'aligned' | 'motion' | 'stable';
12declare type Func = () => void;
13declare const _default: (visible: boolean, doMeasure: Func) => [PopupStatus, (callback?: () => void) => void];
14export default _default;