@carto/ps-react-ui 1.3.0 → 1.3.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.
@@ -18,7 +18,7 @@ import { GroupedChipsProps } from './types';
|
|
18
18
|
* ```jsx
|
19
19
|
* <GroupedChips
|
20
20
|
* items={[
|
21
|
-
* { id: '1', label: 'Option 1' },
|
21
|
+
* { id: '1', label: 'Option 1', info: 'Option 1 is the prefered option if you prefer one.' },
|
22
22
|
* { id: '2', label: 'Option 2' },
|
23
23
|
* ]}
|
24
24
|
* label='Select'
|
@@ -27,4 +27,4 @@ import { GroupedChipsProps } from './types';
|
|
27
27
|
* />;
|
28
28
|
* ```
|
29
29
|
*/
|
30
|
-
export declare function GroupedChips({ label, items, size, onDelete, ChipProps, BoxProps, }: GroupedChipsProps): JSX.Element;
|
30
|
+
export declare function GroupedChips({ label, items, size, onDelete, ChipProps, BoxProps, TooltipProps, }: GroupedChipsProps): JSX.Element;
|
@@ -1,7 +1,8 @@
|
|
1
|
-
import type { BoxProps, ChipProps } from '@material-ui/core';
|
1
|
+
import type { BoxProps, ChipProps, TooltipProps } from '@material-ui/core';
|
2
2
|
export interface GroupedChipsOption {
|
3
3
|
id: string | number;
|
4
4
|
label: string;
|
5
|
+
info?: string;
|
5
6
|
}
|
6
7
|
export interface GroupedChipsProps {
|
7
8
|
label?: string;
|
@@ -10,4 +11,5 @@ export interface GroupedChipsProps {
|
|
10
11
|
onDelete: (item: GroupedChipsOption) => void;
|
11
12
|
ChipProps?: ChipProps;
|
12
13
|
BoxProps?: BoxProps;
|
14
|
+
TooltipProps?: TooltipProps;
|
13
15
|
}
|