@digital-ai/dot-components 2.2.0 → 2.2.1

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.
@@ -1,4 +1,4 @@
1
- import { ChangeEvent, FocusEvent, HTMLAttributes, ReactNode, Ref } from 'react';
1
+ import { ChangeEvent, FocusEvent, HTMLAttributes, ReactNode, Ref, JSXElementConstructor } from 'react';
2
2
  import { AutocompleteCloseReason, AutocompleteGetTagProps, AutocompleteRenderOptionState } from '@mui/material';
3
3
  import { CommonProps } from '../CommonProps';
4
4
  export declare const DEFAULT_ACTION_ITEM_TEXT = "Add new item";
@@ -24,6 +24,8 @@ export interface AutoCompleteOption {
24
24
  * autocomplete option rendering by using `renderOption` prop.
25
25
  */
26
26
  export interface AutoCompleteProps<T extends AutoCompleteOption = AutoCompleteOption> extends CommonProps {
27
+ /** The component used to render the listbox. **/
28
+ ListboxComponent?: JSXElementConstructor<HTMLAttributes<HTMLElement>>;
27
29
  /** Action button as the last element on the menu **/
28
30
  actionItem?: ActionItem;
29
31
  /** This prop helps users to fill forms faster */
@@ -92,4 +94,4 @@ export interface AutoCompleteProps<T extends AutoCompleteOption = AutoCompleteOp
92
94
  /** If true, the label will be displayed in a warning state. */
93
95
  warning?: boolean;
94
96
  }
95
- export declare const DotAutoComplete: <T extends AutoCompleteOption>({ actionItem, ariaLabel, autoFocus, className, "data-testid": dataTestId, defaultValue, dense, disabled, disablePortal, endAdornmentTooltip, error, filterSelectedOptions, freesolo, group, helperText, inputId, inputRef, label, loading, maxHeight, multiple, onBlur, onChange, onClose, onInputChange, onOpen, open, options, persistentLabel, placeholder, readOnly, renderOption, renderTags, required, size, value, warning, }: AutoCompleteProps<T>) => JSX.Element;
97
+ export declare const DotAutoComplete: <T extends AutoCompleteOption>({ ListboxComponent, actionItem, ariaLabel, autoFocus, className, "data-testid": dataTestId, defaultValue, dense, disabled, disablePortal, endAdornmentTooltip, error, filterSelectedOptions, freesolo, group, helperText, inputId, inputRef, label, loading, maxHeight, multiple, onBlur, onChange, onClose, onInputChange, onOpen, open, options, persistentLabel, placeholder, readOnly, renderOption, renderTags, required, size, value, warning, }: AutoCompleteProps<T>) => JSX.Element;
@@ -1,2 +1,3 @@
1
1
  import { ReactNode } from 'react';
2
2
  export declare const getTruncatedLabel: (label: string, charactersLimit?: number) => ReactNode;
3
+ export declare const getTooltipLabel: (label: string, charactersLimit?: number) => ReactNode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital-ai/dot-components",
3
- "version": "2.2.0",
3
+ "version": "2.2.1",
4
4
  "private": false,
5
5
  "license": "SEE LICENSE IN <LICENSE.md>",
6
6
  "contributors": [