Add missing properties to component props interfaces for Control and Select (#47617)

Co-authored-by: David Aldridge <daldridge@cognitivescale.com>
This commit is contained in:
daldridge 2020-09-17 11:45:49 -05:00 committed by GitHub
parent 8158d19ac0
commit e58b370380
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 0 deletions

View File

@ -8,6 +8,8 @@ interface State {
isDisabled: boolean;
/** Whether the select is focused. */
isFocused: boolean;
/** Whether the select is expanded. */
menuIsOpen: boolean;
}
export type ControlProps<OptionType extends OptionTypeBase> = CommonProps<OptionType> &

View File

@ -53,6 +53,8 @@ export type MenuProps<OptionType extends OptionTypeBase> = CommonProps<OptionTyp
getPortalPlacement: (state: MenuState) => void,
/** Props to be passed to the menu wrapper. */
innerProps: object,
/** Reference to the internal element, consumed by the MenuPlacer component */
innerRef: InnerRef,
/** Set the maximum height of the menu. */
maxMenuHeight: number,
/** Set whether the menu should be at the top, at the bottom. The auto options sets it to bottom. */

View File

@ -33,6 +33,7 @@ export interface PropsWithStyles {
See the `styles` object for the properties available.
*/
getStyles: (name: string, props: any) => {};
theme: Theme;
}
export type ClassNameList = string[];