@wix/design-system
Version:
@wix/design-system
45 lines • 1.67 kB
TypeScript
export default Dropdown;
declare class Dropdown extends InputWithOptions<import("../InputWithOptions").ManualInputFnSignature, ((option: import("..").DropdownLayoutValueOption, sameOptionWasPicked: boolean) => void) | undefined, import("../InputWithOptions").InputWithOptionsProps<import("../InputWithOptions").ManualInputFnSignature, ((option: import("..").DropdownLayoutValueOption, sameOptionWasPicked: boolean) => void) | undefined>> {
static isOptionsEqual(optionsA: any, optionsB: any): boolean;
/**
* Updates the value by the selectedId.
* If selectedId is not found in options, then value is NOT changed.
*/
static getNextState(props: any, selectedId: any): {
value: any;
selectedId: any;
};
constructor(props: any);
state: {
value: any;
selectedId: any;
};
isSelectedIdControlled(): boolean;
getSelectedId(): any;
shouldOpenDropdown(key: any): boolean;
_onOpenChange(open: any, reason: any): void;
UNSAFE_componentWillReceiveProps(nextProps: any): void;
inputClasses(): any;
dropdownAdditionalProps(): {
selectedId: any;
value: any;
tabIndex: number;
withArrow: boolean;
size: string;
};
inputAdditionalProps(): {
disableEditing: boolean;
readOnly: boolean | undefined;
value: any;
role: string;
ariaHaspopup: string;
};
_onSelect(option: any): void;
_onChange(event: any): void;
}
declare namespace Dropdown {
let defaultProps: any;
let displayName: string;
}
import InputWithOptions from '../InputWithOptions';
//# sourceMappingURL=Dropdown.d.ts.map