UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

47 lines (46 loc) 1.79 kB
import { KendoActionSheetProps } from '../action-sheet'; import { KendoComponent } from '../_types/component'; export declare const DROPDOWNTREE_CLASSNAME = "k-dropdowntree"; 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 KendoDropdownTreeOptions = { size?: (typeof options.size)[number] | null; rounded?: (typeof options.rounded)[number] | null; fillMode?: (typeof options.fillMode)[number] | null; }; export type KendoDropdownTreeProps = KendoDropdownTreeOptions & { valueIconName?: string; arrowIconName?: string; prefix?: React.JSX.Element; suffix?: React.JSX.Element; value?: string; placeholder?: string; showValue?: boolean; popup?: React.JSX.Element; opened?: boolean; adaptive?: boolean; adaptiveSettings?: KendoActionSheetProps; adaptiveTitle?: string; adaptiveSubtitle?: string; adaptiveFilter?: boolean; dir?: 'ltr' | 'rtl'; /** * Unique identifier for the dropdowntree. Used to generate related IDs. * @aria Controls aria-controls references */ id?: string; /** * ID of the treeview element in the popup. * @aria aria-controls - Points to treeview when popup is open */ treeviewId?: string; }; export type KendoDropdownTreeState = { [K in (typeof states)[number]]?: boolean; }; export declare const DropdownTree: KendoComponent<KendoDropdownTreeProps & KendoDropdownTreeState & React.HTMLAttributes<HTMLSpanElement>>; export default DropdownTree;