Repository URL to install this package:
|
Version:
3.0.4 ▾
|
import { IObservable } from 'xmobx/mobx';
export interface UpdatePropNoArgs<PropName> {
(): CommonState;
(...ignored: any[]): CommonState;
}
export interface UpdateProp<PropName, ValueType = boolean> {
(name: string, value: ValueType): CommonState;
(value: ValueType): CommonState;
}
export declare function updateProp(name: string, value: boolean): CommonState;
declare type setActive = UpdateProp<'isActive'>;
declare type handleActive = UpdatePropNoArgs<'isActive'>;
declare type activate = UpdatePropNoArgs<'isActive'>;
declare type handleToggleActive = UpdatePropNoArgs<'isActive'>;
declare type toggleActive = UpdatePropNoArgs<'isActive'>;
declare type focus = UpdatePropNoArgs<'isFocused'>;
declare type setFocused = UpdateProp<'isFocused'>;
declare type blur = UpdatePropNoArgs<'isFocused'>;
declare type handleFocus = UpdatePropNoArgs<'isFocused'>;
declare type handleBlur = UpdatePropNoArgs<'isFocused'>;
declare type setClosed = UpdateProp<'isVisible'>;
declare type handleHide = UpdatePropNoArgs<'isVisible'>;
declare type hide = UpdatePropNoArgs<'isVisible'>;
declare type open = UpdatePropNoArgs<'isVisible'>;
declare type setOpen = UpdatePropNoArgs<'isVisible'>;
declare type handleShow = UpdatePropNoArgs<'isVisible'>;
declare type setVisible = UpdateProp<'isVisible'>;
declare type handleOpen = UpdatePropNoArgs<'isVisible'>;
export declare type handleToggleVisibility = UpdatePropNoArgs<'isVisible'>;
declare type toggleVisibility = UpdatePropNoArgs<'isVisible'>;
declare type select = UpdatePropNoArgs<'isSelected'>;
declare type setSelected = UpdateProp<'isSelected'>;
declare type handleSelect = UpdatePropNoArgs<'isSelected'>;
declare type unselect = UpdatePropNoArgs<'isSelected'>;
declare type handleUnSelect = UpdatePropNoArgs<'isSelected'>;
declare type toggleSelected = UpdatePropNoArgs<'isSelected'>;
declare type handleToggleSelected = UpdatePropNoArgs<'isSelected'>;
declare type disable = UpdatePropNoArgs<'isDisabled'>;
declare type setDisable = UpdateProp<'isDisabled'>;
declare type handleDisable = UpdatePropNoArgs<'isDisabled'>;
declare type setLabel = UpdateProp<'label', any>;
declare type setValue = UpdateProp<'value', any>;
export interface CommonState extends IObservable {
isVisible: boolean;
isSelected: boolean;
isDisabled: boolean;
isActive: boolean;
isFocused: boolean;
handleToggleActive: handleToggleActive;
toggleActive: toggleActive;
setActive: setActive;
handleActive: handleActive;
handleInactive: handleActive;
activate: activate;
focus: focus;
blur: blur;
setFocused: setFocused;
handleFocus: handleFocus;
handleBlur: handleBlur;
setClosed: setClosed;
handleHide: handleHide;
hide: hide;
show: hide;
open: open;
setOpen: setOpen;
handleOpen: handleOpen;
handleShow: handleShow;
setVisible: setVisible;
handleToggleVisibility: handleToggleVisibility;
toggleVisibility: toggleVisibility;
select: select;
setSelected: setSelected;
handleSelect: handleSelect;
disable: disable;
setDisable: setDisable;
handleDisable: handleDisable;
unselect: unselect;
handleUnSelect: handleUnSelect;
toggleSelected: toggleSelected;
handleToggleSelected: handleToggleSelected;
label: string | any;
value: string | any;
setLabel: setLabel;
setValue: setValue;
}
export {};