UNPKG

@fluentui/react-northstar

Version:
30 lines (29 loc) 1.92 kB
export declare const htmlImageProps: string[]; export declare type HtmlInputEvents = 'onKeyDown' | 'onKeyPress' | 'onKeyUp' | 'onFocus' | 'onBlur' | 'onChange' | 'onInput' | 'onClick' | 'onContextMenu' | 'onDrag' | 'onDragEnd' | 'onDragEnter' | 'onDragExit' | 'onDragLeave' | 'onDragOver' | 'onDragStart' | 'onDrop' | 'onMouseDown' | 'onMouseEnter' | 'onMouseLeave' | 'onMouseMove' | 'onMouseOut' | 'onMouseOver' | 'onMouseUp' | 'onSelect' | 'onTouchCancel' | 'onTouchEnd' | 'onTouchMove' | 'onTouchStart'; export declare type HtmlInputAttrs = 'selected' | 'defaultValue' | 'defaultChecked' | 'accept' | 'autoCapitalize' | 'autoComplete' | 'autoCorrect' | 'autoFocus' | 'checked' | 'disabled' | 'form' | 'id' | 'list' | 'max' | 'maxLength' | 'min' | 'minLength' | 'multiple' | 'name' | 'pattern' | 'placeholder' | 'readOnly' | 'required' | 'step' | 'type' | 'value'; export declare type SupportedIntrinsicInputProps = { [K in HtmlInputProps]?: K extends keyof JSX.IntrinsicElements['input'] ? JSX.IntrinsicElements['input'][K] : any; }; export declare const htmlInputAttrs: HtmlInputAttrs[]; export declare type HtmlInputProps = HtmlInputAttrs | HtmlInputEvents; export declare const htmlInputEvents: HtmlInputEvents[]; export declare const htmlInputProps: HtmlInputProps[]; export interface PartitionHTMLPropsOptions { /** An array of html input props */ htmlProps?: HtmlInputProps[]; /** Includes all input props that starts with "aria-" */ includeAria?: boolean; } /** * Returns props of html input element and restProps. * @param props - A ReactElement props object * @param options - Options for * @returns - 2-element array. First element is props of HTML input element and second element is the other props. */ export declare const partitionHTMLProps: (props: { [key: string]: any; }, options?: PartitionHTMLPropsOptions) => [{ [key: string]: any; }, { [key: string]: any; }];