@digital-ai/dot-components 3.4.1 → 3.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.esm.js
CHANGED
|
@@ -6298,6 +6298,7 @@ const DotAutoComplete = ({
|
|
|
6298
6298
|
actionItem,
|
|
6299
6299
|
ariaLabel,
|
|
6300
6300
|
autoFocus,
|
|
6301
|
+
autoHighlight,
|
|
6301
6302
|
className,
|
|
6302
6303
|
'data-pendoid': dataPendoId = rootClassName$N,
|
|
6303
6304
|
'data-testid': dataTestId,
|
|
@@ -6518,6 +6519,7 @@ const DotAutoComplete = ({
|
|
|
6518
6519
|
return jsx(StyledAutocomplete, {
|
|
6519
6520
|
PopperComponent: DotPopper,
|
|
6520
6521
|
"aria-label": ariaLabel,
|
|
6522
|
+
autoHighlight: autoHighlight,
|
|
6521
6523
|
classes: {
|
|
6522
6524
|
root: rootClasses,
|
|
6523
6525
|
inputRoot: inputRootClasses
|
package/package.json
CHANGED
|
@@ -15,6 +15,8 @@ export interface AutoCompleteProps<T extends AutoCompleteOption = AutoCompleteOp
|
|
|
15
15
|
actionItem?: ActionItem;
|
|
16
16
|
/** This prop helps users to fill forms faster */
|
|
17
17
|
autoFocus?: boolean;
|
|
18
|
+
/** If true, the first option is automatically highlighted. */
|
|
19
|
+
autoHighlight?: boolean;
|
|
18
20
|
/** Used to determine the disabled state for a given option. */
|
|
19
21
|
checkIfOptionDisabled?: (option: T) => boolean;
|
|
20
22
|
/** default option that is selected */
|
|
@@ -88,4 +90,4 @@ export interface AutoCompleteProps<T extends AutoCompleteOption = AutoCompleteOp
|
|
|
88
90
|
/** If true, the label will be displayed in a warning state. */
|
|
89
91
|
warning?: boolean;
|
|
90
92
|
}
|
|
91
|
-
export declare const DotAutoComplete: <T extends AutoCompleteOption>({ ListboxComponent, actionItem, ariaLabel, autoFocus, className, "data-pendoid": dataPendoId, "data-testid": dataTestId, defaultValue, dense, disabled, disablePortal, endAdornmentTooltip, error, filterOptions, filterSelectedOptions, freesolo, checkIfOptionDisabled, group, helperText, inputId, inputRef, inputValue, isOptionEqualToValue, label, loading, maxHeight, multiple, onBlur, onChange, onClose, onInputChange, onOpen, open, options, persistentLabel, placeholder, readOnly, renderGroup, renderOption, renderTags, required, size, value, warning, }: AutoCompleteProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
93
|
+
export declare const DotAutoComplete: <T extends AutoCompleteOption>({ ListboxComponent, actionItem, ariaLabel, autoFocus, autoHighlight, className, "data-pendoid": dataPendoId, "data-testid": dataTestId, defaultValue, dense, disabled, disablePortal, endAdornmentTooltip, error, filterOptions, filterSelectedOptions, freesolo, checkIfOptionDisabled, group, helperText, inputId, inputRef, inputValue, isOptionEqualToValue, label, loading, maxHeight, multiple, onBlur, onChange, onClose, onInputChange, onOpen, open, options, persistentLabel, placeholder, readOnly, renderGroup, renderOption, renderTags, required, size, value, warning, }: AutoCompleteProps<T>) => import("react/jsx-runtime").JSX.Element;
|