Repository URL to install this package:
Version:
0.9.6 ▾
|
/**
* @file @todo convert to composable pieces
* @file @todo all setter methods/fns use actions
* @file @todo remove extra compat naming - pick 1
* @file @todo would be nice to change most things into Map syntax instead...
*/
import { observer } from 'xmobx/mobx-react';
import { CommonState } from './typings';
export interface CommonPropsArg {
isDefaultSelected?: boolean;
isSelected?: boolean;
isDisabled?: boolean;
isVisible?: boolean;
isActive?: boolean;
isFocused?: boolean;
state?: CommonState;
[key: string]: any;
}
export interface CommonStateOptions {
select?: boolean;
visible?: boolean;
active?: boolean;
focus?: boolean;
value?: boolean;
label?: boolean;
}
declare function commonStateFactory(props?: CommonPropsArg, options?: CommonStateOptions): CommonState;
export { observer };
export { commonStateFactory as commonState };
export { commonStateFactory };
export { commonStateFactory as makeState };
export { commonStateFactory as makeCommonState };
export { commonStateFactory as toCommonState };
export default commonStateFactory;