export default AutoComplete; declare class AutoComplete extends InputWithOptions { static propTypes: { /** Associate a control with the regions that it controls.*/ ariaControls: PropTypes.Requireable; /** Associate a region with its descriptions. Similar to aria-controls but instead associating descriptions to the region and description identifiers are separated with a space.*/ ariaDescribedby: PropTypes.Requireable; /** Define a string that labels the current element in case where a text label is not visible on the screen. */ ariaLabel: PropTypes.Requireable; /** Focus the element on mount (standard React input autoFocus). */ autoFocus: PropTypes.Requireable; /** Control the border style of input. */ border: PropTypes.Requireable; /** Specifies a CSS class name to be appended to the component’s root element.*/ className: PropTypes.Requireable; /** Displays clear button (X) on a non-empty input. */ clearButton: PropTypes.Requireable; /** Closes DropdownLayout when option is selected.*/ closeOnSelect: PropTypes.Requireable; /** Applies a data-hook HTML attribute that can be used in the tests. */ dataHook: PropTypes.Requireable; /** Sets a default value for those who want to use this component un-controlled. */ defaultValue: PropTypes.Requireable; /** Specifies whether input should be disabled or not. */ disabled: PropTypes.Requireable; /** Restricts input editing.*/ disableEditing: PropTypes.Requireable; /** Sets the width of the dropdown in pixels.*/ dropdownWidth: PropTypes.Requireable; /** Defines a message to be displayed instead of options when no options exist or no options pass the predicate filter function. */ emptyStateMessage: PropTypes.Requireable; /** Adds a fixed footer container at the bottom of options list in ``.*/ fixedFooter: PropTypes.Requireable; /** Adds a fixed header container at the top of options list in ``.*/ fixedHeader: PropTypes.Requireable; /** Highlights and scrolls view to the specified option when dropdown layout is opened. It does not select the specified option. */ focusOnOption: PropTypes.Requireable>; /** Scrolls view to the selected option when dropdown layout is opened. */ focusOnSelectedOption: PropTypes.Requireable; /** USED FOR TESTING. Forces focus state on the input. */ forceFocus: PropTypes.Requireable; /** USED FOR TESTING. Forces hover state on the input.*/ forceHover: PropTypes.Requireable; /** Specifies whether there are more items to be loaded. */ hasMore: PropTypes.Requireable; /** Specifies whether status suffix should be hidden.*/ hideStatusSuffix: PropTypes.Requireable; /** Highlight word parts that match search criteria in bold. */ highlight: PropTypes.Requireable; /** Assigns an unique identifier for the root element. */ id: PropTypes.Requireable; /** Specifies whether lazy loading of the dropdown layout items is enabled. */ infiniteScroll: PropTypes.Requireable; /** Defines a callback function which is called on a request to render more list items. */ loadMore: PropTypes.Requireable<(...args: any[]) => any>; /** * ##### Sets the default hover behavior: * * `false` - no initially hovered list item * * `true` - hover first selectable option * * any `number/string` - specify the id of an option to be hovered */ markedOption: PropTypes.Requireable>; /** Sets the maximum height of the dropdownLayout in pixels. */ maxHeightPixels: PropTypes.Requireable>; /** Sets the maximum number of characters that can be entered into a field.*/ maxLength: PropTypes.Requireable; /** Specifies whether input should have a dropdown menu arrow on the right side. */ menuArrow: PropTypes.Requireable; /** Sets the minimum width of dropdownLayout in pixels. */ minWidthPixels: PropTypes.Requireable>; /** Reference element data when a form is submitted. */ name: PropTypes.Requireable; /** Specifies whether input shouldn’t have rounded corners on its left. */ noLeftBorderRadius: PropTypes.Requireable; /** Specifies whether input shouldn’t have rounded corners on its right.*/ noRightBorderRadius: PropTypes.Requireable; /** Defines a standard input onBlur callback */ onBlur: PropTypes.Requireable<(...args: any[]) => any>; /** Defines a standard input onChange callback.*/ onChange: PropTypes.Requireable<(...args: any[]) => any>; /** Displays clear button (X) on a non-empty input and calls a callback function with no arguments.*/ onClear: PropTypes.Requireable<(...args: any[]) => any>; /** Defines a callback function which is called whenever the user presses the escape key. */ onClose: PropTypes.Requireable<(...args: any[]) => any>; /** Defines a callback function called on compositionstart/compositionend events.*/ onCompositionChange: PropTypes.Requireable<(...args: any[]) => any>; /** Defines a callback handler that is called when user presses `enter`.*/ onEnterPressed: PropTypes.Requireable<(...args: any[]) => any>; /** Defines a callback handler that is called when user presses `escape`.*/ onEscapePressed: PropTypes.Requireable<(...args: any[]) => any>; /** Defines a standard input onFocus callback. */ onFocus: PropTypes.Requireable<(...args: any[]) => any>; /** Defines a standard input onClick callback.*/ onInputClicked: PropTypes.Requireable<(...args: any[]) => any>; /** Defines a standard input onKeyUp callback. */ onKeyDown: PropTypes.Requireable<(...args: any[]) => any>; /** Defines a callback function which is called when user performs a submit action. Submit action triggers are: "Enter", "Tab", [typing any defined delimiters], paste action. `onManuallyInput(values: Array): void - The array of strings is the result of splitting the input value by the given delimiters.*/ onManuallyInput: PropTypes.Requireable<(...args: any[]) => any>; /** Defines a callback function which is called whenever the user enters dropdown layout with the mouse cursor. */ onMouseEnter: PropTypes.Requireable<(...args: any[]) => any>; /** Defines a callback function which is called whenever the user exits from dropdown layout with a mouse cursor.*/ onMouseLeave: PropTypes.Requireable<(...args: any[]) => any>; /** Defines a callback function which is called whenever an option becomes focused (hovered/active). Receives the relevant option object from the original props.options array.*/ onOptionMarked: PropTypes.Requireable<(...args: any[]) => any>; /** Defines a callback function which is called when options dropdown is hidden.*/ onOptionsHide: PropTypes.Requireable<(...args: any[]) => any>; /** Defines a callback function which is called when options dropdown is shown.*/ onOptionsShow: PropTypes.Requireable<(...args: any[]) => any>; /** Defines a callback function which is called when no options exist.*/ onEmptyState: PropTypes.Requireable<(...args: any[]) => any>; /** Defines a callback handler that is called when user pastes text from a clipboard (using mouse or keyboard shortcut).*/ onPaste: PropTypes.Requireable<(...args: any[]) => any>; /** Defines a callback function which is called whenever user selects a different option in the list.*/ onSelect: PropTypes.Requireable<(...args: any[]) => any>; /** Specify an array of options: * - id `` *required*: the id of the option, should be unique. * - value `` *required*: can be a string, react element or a builder function. * - disabled `` *default value- false*: whether this option is disabled or not * - linkTo ``: when provided the option will be an anchor to the given value * - title `` *default value- false* **deprecated**: please use `listItemSectionBuilder` for rendering a title. * - overrideStyle `` *default value- false* **deprecated**: please use `overrideOptionStyle` for override option styles. * - overrideOptionStyle `` *default value- false* - when set to `true`, the option will be responsible to its own styles. No styles will be applied from the DropdownLayout itself. * - label ``: the string displayed within an input when the option is selected. This is used when using `` with an ``. */ options: PropTypes.Requireable; /** Handles container overflow. */ overflow: PropTypes.Requireable; /** Sets a pattern that typed value must match to be valid (regex). */ pattern: PropTypes.Requireable; /** Sets a placeholder message to display. */ placeholder: PropTypes.Requireable; /** Allows to pass all common popover props. */ popoverProps: PropTypes.Requireable; maxWidth: PropTypes.Requireable>; minWidth: PropTypes.Requireable>; flip: PropTypes.Requireable; fixed: PropTypes.Requireable; placement: PropTypes.Requireable; dynamicWidth: PropTypes.Requireable; }>>; /** Defines a callback predicate for the filtering options function. */ predicate: PropTypes.Requireable<(...args: any[]) => any>; /** Pass a component you want to show as the prefix of the input, e.g., text string, icon. */ prefix: PropTypes.Requireable; /** Specifies whether input is read only. */ readOnly: PropTypes.Requireable; /** Specifies whether input is mandatory. */ required: PropTypes.Requireable; /** Specifies selected option by its id. */ selectedId: PropTypes.Requireable>; /** Controls whether to show options if input is empty. */ showOptionsIfEmptyInput: PropTypes.Requireable; /** Controls the size of the input. Default value: `medium` */ size: PropTypes.Requireable; /** Specify the status of a field. */ status: PropTypes.Requireable; /** Defines the message to display on status icon hover. If not given or empty there will be no tooltip. */ statusMessage: PropTypes.Requireable; /** Pass a component you want to show as the suffix of the input, e.g., text string, icon. */ suffix: PropTypes.Requireable; /** Indicates that element can be focused and where it participates in sequential keyboard navigation.*/ tabIndex: PropTypes.Requireable; /** Handles text overflow behavior. It can either clip (default) or display ellipsis. */ textOverflow: PropTypes.Requireable; /** Controls placement of a status tooltip. */ tooltipPlacement: PropTypes.Requireable; /** Specifies the type of `` element to display. Default is text string. */ type: PropTypes.Requireable; }; static defaultProps: { predicate: () => boolean; autoSelect: boolean; border: string; clearButton: boolean; closeOnSelect: boolean; dropdownOffsetLeft: string; dropdownWidth: null; hasMore: boolean; hideStatusSuffix: boolean; inContainer: boolean; infiniteScroll: boolean; loadMore: null; markedOption: boolean; maxHeightPixels: number; maxLength: number; options: never[]; overflow: string; selectedHighlight: boolean; showOptionsIfEmptyInput: boolean; textOverflow: string; onSelect: () => void; inputElement: React.JSX.Element; popoverProps: { appendTo: string; flip: boolean; fixed: boolean; placement: string; }; tabIndex: number; autocomplete: string; }; dropdownAdditionalProps(): { options: any; }; } import InputWithOptions from '../InputWithOptions/InputWithOptions'; import PropTypes from 'prop-types'; import React from 'react'; //# sourceMappingURL=AutoComplete.d.ts.map