1 |
|
2 | import { ReactNode, Ref } from 'react';
|
3 | import { jsx } from '@emotion/react';
|
4 | import { CommonPropsAndClassName, CSSObjectWithLabel, GroupBase } from '../types';
|
5 | export interface ControlProps<Option = unknown, IsMulti extends boolean = boolean, Group extends GroupBase<Option> = GroupBase<Option>> extends CommonPropsAndClassName<Option, IsMulti, Group> {
|
6 |
|
7 | children: ReactNode;
|
8 | innerRef: Ref<HTMLDivElement>;
|
9 |
|
10 | innerProps: JSX.IntrinsicElements['div'];
|
11 |
|
12 | isDisabled: boolean;
|
13 |
|
14 | isFocused: boolean;
|
15 |
|
16 | menuIsOpen: boolean;
|
17 | }
|
18 | export declare const css: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>({ isDisabled, isFocused, theme: { colors, borderRadius, spacing }, }: ControlProps<Option, IsMulti, Group>, unstyled: boolean) => CSSObjectWithLabel;
|
19 | declare const Control: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: ControlProps<Option, IsMulti, Group>) => jsx.JSX.Element;
|
20 | export default Control;
|