@digital-ai/dot-components 3.4.1 → 3.5.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.
package/index.esm.js CHANGED
@@ -1245,7 +1245,8 @@ const typographyOptions = {
1245
1245
  letterSpacing: '0.03em'
1246
1246
  },
1247
1247
  overline: {
1248
- fontSize: 11,
1248
+ fontSize: 12,
1249
+ fontFamily: 'LatoBold, sans-serif',
1249
1250
  lineHeight: '14px',
1250
1251
  letterSpacing: '0.05em',
1251
1252
  textTransform: 'uppercase'
@@ -6298,6 +6299,7 @@ const DotAutoComplete = ({
6298
6299
  actionItem,
6299
6300
  ariaLabel,
6300
6301
  autoFocus,
6302
+ autoHighlight,
6301
6303
  className,
6302
6304
  'data-pendoid': dataPendoId = rootClassName$N,
6303
6305
  'data-testid': dataTestId,
@@ -6518,6 +6520,7 @@ const DotAutoComplete = ({
6518
6520
  return jsx(StyledAutocomplete, {
6519
6521
  PopperComponent: DotPopper,
6520
6522
  "aria-label": ariaLabel,
6523
+ autoHighlight: autoHighlight,
6521
6524
  classes: {
6522
6525
  root: rootClasses,
6523
6526
  inputRoot: inputRootClasses
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital-ai/dot-components",
3
- "version": "3.4.1",
3
+ "version": "3.5.1",
4
4
  "private": false,
5
5
  "license": "SEE LICENSE IN <LICENSE.md>",
6
6
  "contributors": [
@@ -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;