Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
ui-component-library / dist / typings / src / state / common.d.ts
Size: Mime:
/**
 * @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;