UNPKG

4.12 kBTypeScriptView Raw
1/** @jsx jsx */
2import { ReactNode } from 'react';
3import { jsx } from '@emotion/react';
4import { CommonPropsAndClassName, CSSObjectWithLabel, GroupBase } from '../types';
5export declare type CrossIconProps = JSX.IntrinsicElements['svg'] & {
6 size?: number;
7};
8export declare const CrossIcon: (props: CrossIconProps) => jsx.JSX.Element;
9export declare type DownChevronProps = JSX.IntrinsicElements['svg'] & {
10 size?: number;
11};
12export declare const DownChevron: (props: DownChevronProps) => jsx.JSX.Element;
13export interface DropdownIndicatorProps<Option = unknown, IsMulti extends boolean = boolean, Group extends GroupBase<Option> = GroupBase<Option>> extends CommonPropsAndClassName<Option, IsMulti, Group> {
14 /** The children to be rendered inside the indicator. */
15 children?: ReactNode;
16 /** Props that will be passed on to the children. */
17 innerProps: JSX.IntrinsicElements['div'];
18 /** The focused state of the select. */
19 isFocused: boolean;
20 isDisabled: boolean;
21}
22export declare const dropdownIndicatorCSS: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>({ isFocused, theme: { spacing: { baseUnit }, colors, }, }: DropdownIndicatorProps<Option, IsMulti, Group> | ClearIndicatorProps<Option, IsMulti, Group>, unstyled: boolean) => CSSObjectWithLabel;
23export declare const DropdownIndicator: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: DropdownIndicatorProps<Option, IsMulti, Group>) => jsx.JSX.Element;
24export interface ClearIndicatorProps<Option = unknown, IsMulti extends boolean = boolean, Group extends GroupBase<Option> = GroupBase<Option>> extends CommonPropsAndClassName<Option, IsMulti, Group> {
25 /** The children to be rendered inside the indicator. */
26 children?: ReactNode;
27 /** Props that will be passed on to the children. */
28 innerProps: JSX.IntrinsicElements['div'];
29 /** The focused state of the select. */
30 isFocused: boolean;
31}
32export declare const clearIndicatorCSS: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>({ isFocused, theme: { spacing: { baseUnit }, colors, }, }: DropdownIndicatorProps<Option, IsMulti, Group> | ClearIndicatorProps<Option, IsMulti, Group>, unstyled: boolean) => CSSObjectWithLabel;
33export declare const ClearIndicator: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: ClearIndicatorProps<Option, IsMulti, Group>) => jsx.JSX.Element;
34export interface IndicatorSeparatorProps<Option = unknown, IsMulti extends boolean = boolean, Group extends GroupBase<Option> = GroupBase<Option>> extends CommonPropsAndClassName<Option, IsMulti, Group> {
35 isDisabled: boolean;
36 isFocused: boolean;
37 innerProps?: JSX.IntrinsicElements['span'];
38}
39export declare const indicatorSeparatorCSS: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>({ isDisabled, theme: { spacing: { baseUnit }, colors, }, }: IndicatorSeparatorProps<Option, IsMulti, Group>, unstyled: boolean) => CSSObjectWithLabel;
40export declare const IndicatorSeparator: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: IndicatorSeparatorProps<Option, IsMulti, Group>) => jsx.JSX.Element;
41export declare const loadingIndicatorCSS: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>({ isFocused, size, theme: { colors, spacing: { baseUnit }, }, }: LoadingIndicatorProps<Option, IsMulti, Group>, unstyled: boolean) => CSSObjectWithLabel;
42export interface LoadingIndicatorProps<Option = unknown, IsMulti extends boolean = boolean, Group extends GroupBase<Option> = GroupBase<Option>> extends CommonPropsAndClassName<Option, IsMulti, Group> {
43 /** Props that will be passed on to the children. */
44 innerProps: JSX.IntrinsicElements['div'];
45 /** The focused state of the select. */
46 isFocused: boolean;
47 isDisabled: boolean;
48 /** Set size of the container. */
49 size: number;
50}
51export declare const LoadingIndicator: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>({ innerProps, isRtl, size, ...restProps }: LoadingIndicatorProps<Option, IsMulti, Group>) => jsx.JSX.Element;