@digital-ai/dot-components 1.11.0 → 1.11.3

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,3 +1,3 @@
1
- export { AutocompleteRenderOptionState } from '@material-ui/lab';
1
+ export type { AutocompleteRenderOptionState } from '@material-ui/lab';
2
2
  export * from './AutoComplete';
3
3
  export { parseAutoCompleteValue } from './utils/helpers';
@@ -1,9 +1,12 @@
1
1
  import { MouseEvent, ReactElement } from 'react';
2
2
  import { CommonProps } from '../CommonProps';
3
3
  export declare type ChipSize = 'medium' | 'small';
4
+ export declare const DEFAULT_CHARACTERS_LIMIT = 32;
4
5
  export interface ChipProps extends CommonProps {
5
6
  /** If provided, will display an avatar which takes precedence over icon */
6
7
  avatar?: ReactElement;
8
+ /** Maximum number of characters until the label gets truncated. Default is 32. */
9
+ charactersLimit?: number;
7
10
  /** The text for the chip. */
8
11
  children: string;
9
12
  /** If true, the chip is disabled */
@@ -23,4 +26,4 @@ export interface ChipProps extends CommonProps {
23
26
  /** The icon to display on the chip */
24
27
  startIcon?: ReactElement;
25
28
  }
26
- export declare const DotChip: ({ ariaLabel, avatar, children, className, "data-testid": dataTestId, disabled, error, isClickable, isDeletable, onClick, onDelete, size, startIcon, }: ChipProps) => JSX.Element;
29
+ export declare const DotChip: ({ ariaLabel, avatar, charactersLimit, children, className, "data-testid": dataTestId, disabled, error, isClickable, isDeletable, onClick, onDelete, size, startIcon, }: ChipProps) => JSX.Element;
@@ -1,2 +1,2 @@
1
- export { PopperPlacementType } from '@material-ui/core';
1
+ export type { PopperPlacementType } from '@material-ui/core';
2
2
  export * from './Popper';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital-ai/dot-components",
3
- "version": "1.11.0",
3
+ "version": "1.11.3",
4
4
  "private": false,
5
5
  "license": "SEE LICENSE IN <LICENSE.md>",
6
6
  "contributors": [
@@ -32,7 +32,6 @@
32
32
  "styled-components": "^5.2.1"
33
33
  },
34
34
  "peerDependencies": {
35
- "react": "^16.8.0 || ^17.0.0",
36
- "react-router-dom": "5.3.0"
35
+ "react": "^16.8.0 || ^17.0.0"
37
36
  }
38
37
  }