@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
50 lines (49 loc) • 1.95 kB
TypeScript
import { KendoActionSheetProps } from '../action-sheet';
import { KendoComponent } from '../_types/component';
export declare const DROPDOWNGRID_CLASSNAME = "k-dropdowngrid";
declare const states: ("required" | "loading" | "focus" | "invalid" | "disabled" | "readonly" | "valid" | "hover")[];
declare const options: {
size: ("small" | "medium" | "large" | undefined)[];
rounded: ("small" | "none" | "medium" | "full" | "large" | undefined)[];
fillMode: ("flat" | "outline" | "solid" | undefined)[];
};
export type KendoDropdownGridOptions = {
size?: (typeof options.size)[number] | null;
rounded?: (typeof options.rounded)[number] | null;
fillMode?: (typeof options.fillMode)[number] | null;
};
export type KendoDropdownGridProps = KendoDropdownGridOptions & {
prefix?: React.JSX.Element;
suffix?: React.JSX.Element;
separators?: boolean;
type?: string;
value?: string;
placeholder?: string;
autocomplete?: string;
popup?: React.JSX.Element;
opened?: boolean;
adaptive?: boolean;
adaptiveSettings?: KendoActionSheetProps;
adaptiveTitle?: string;
adaptiveSubtitle?: string;
/**
* Unique identifier for the dropdowngrid. Used to generate related IDs.
* @aria Controls aria-controls references
*/
id?: string;
/**
* Autocomplete behavior: 'list', 'both', or 'inline'.
* @aria aria-autocomplete - Indicates autocomplete type
*/
ariaAutocomplete?: 'list' | 'both' | 'inline' | 'none';
/**
* ID of the currently focused/active item in the table list.
* @aria aria-activedescendant - Points to focused item when popup is open
*/
activeDescendant?: string;
};
export type KendoDropdownGridState = {
[K in (typeof states)[number]]?: boolean;
};
export declare const DropdownGrid: KendoComponent<KendoDropdownGridProps & KendoDropdownGridState & React.HTMLAttributes<HTMLSpanElement>>;
export default DropdownGrid;