@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
49 lines (48 loc) • 1.8 kB
TypeScript
import { KendoActionSheetProps } from '../action-sheet';
export declare const DROPDOWNGRID_CLASSNAME = "k-dropdowngrid";
declare const states: ("required" | "loading" | "focus" | "invalid" | "disabled" | "readonly" | "hover" | "valid")[];
declare const options: {
size: ("small" | "medium" | "large")[];
rounded: ("small" | "medium" | "full" | "large")[];
fillMode: ("flat" | "outline" | "solid")[];
};
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;
};
export type KendoDropdownGridState = {
[K in (typeof states)[number]]?: boolean;
};
export declare const DropdownGrid: {
(props: KendoDropdownGridProps & KendoDropdownGridState & React.HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
states: ("required" | "loading" | "focus" | "invalid" | "disabled" | "readonly" | "hover" | "valid")[];
options: {
size: ("small" | "medium" | "large")[];
rounded: ("small" | "medium" | "full" | "large")[];
fillMode: ("flat" | "outline" | "solid")[];
};
className: string;
defaultOptions: {
size: "medium";
rounded: "medium";
fillMode: "solid";
separators: boolean;
};
};
export default DropdownGrid;