@epam/ai-dial-ui-kit 0.9.0-rc.21 → 0.9.0-rc.22
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.
|
@@ -4,12 +4,13 @@ export interface DialAutocompleteInputValueProps {
|
|
|
4
4
|
selectedItems?: string[];
|
|
5
5
|
listClassName?: string;
|
|
6
6
|
listElementClassName?: string;
|
|
7
|
+
collapseTagOverflow?: boolean;
|
|
7
8
|
}
|
|
8
9
|
/**
|
|
9
10
|
* A component that displays a list of selected items in a customizable, styled list. Each item is
|
|
10
11
|
* aliases: SelectedList|ItemDisplay
|
|
11
12
|
*
|
|
12
|
-
* rendered as a
|
|
13
|
+
* rendered as a tag wrapped in a tooltip, allowing for truncation and additional context when
|
|
13
14
|
* hovered. The component is flexible and supports custom CSS classes for styling the list and
|
|
14
15
|
* individual list items.
|
|
15
16
|
*
|
|
@@ -19,12 +20,14 @@ export interface DialAutocompleteInputValueProps {
|
|
|
19
20
|
* selectedItems={['Item 1', 'Item 2', 'Item 3']}
|
|
20
21
|
* listClassName="custom-list-class"
|
|
21
22
|
* listElementClassName="custom-item-class"
|
|
23
|
+
* collapseTagOverflow
|
|
22
24
|
* />
|
|
23
25
|
* ```
|
|
24
26
|
*
|
|
25
27
|
* @param [placeholder] - Placeholder text to display when no items are selected.
|
|
26
28
|
* @param [selectedItems] - An array of strings representing the selected items to display. If empty or undefined, the component renders nothing.
|
|
27
|
-
* @param [listClassName] - Additional CSS classes applied to the
|
|
28
|
-
* @param [listElementClassName] - Additional CSS classes applied to each
|
|
29
|
+
* @param [listClassName] - Additional CSS classes applied to the container element containing the list of selected items.
|
|
30
|
+
* @param [listElementClassName] - Additional CSS classes applied to each tag element representing an individual selected item.
|
|
31
|
+
* @param [collapseTagOverflow=false] - When true, keeps items on one line and shows `+N` chip with a tooltip for overflow items.
|
|
29
32
|
*/
|
|
30
33
|
export declare const DialAutocompleteInputValue: FC<DialAutocompleteInputValueProps>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { DialLabelProps } from '../Label/Label';
|
|
3
3
|
export interface DialTagInputProps extends DialLabelProps {
|
|
4
|
-
elementId
|
|
4
|
+
elementId?: string;
|
|
5
5
|
initialTags?: string[];
|
|
6
6
|
placeholder?: string;
|
|
7
7
|
captionDescription?: string;
|
|
@@ -9,6 +9,9 @@ export interface DialTagInputProps extends DialLabelProps {
|
|
|
9
9
|
invalid?: boolean;
|
|
10
10
|
disabled?: boolean;
|
|
11
11
|
collapseTagOverflow?: boolean;
|
|
12
|
+
readOnly?: boolean;
|
|
13
|
+
containerClassName?: string;
|
|
14
|
+
tagClassName?: string;
|
|
12
15
|
onChange?: (tags: string[]) => void;
|
|
13
16
|
}
|
|
14
17
|
/**
|
|
@@ -40,6 +43,9 @@ export interface DialTagInputProps extends DialLabelProps {
|
|
|
40
43
|
* @param [invalid=false] - Whether the field should be styled as invalid.
|
|
41
44
|
* @param [disabled=false] - Whether the input and remove buttons are disabled.
|
|
42
45
|
* @param [collapseTagOverflow=false] - When true, keeps tags on one line and shows `+N` for overflow.
|
|
46
|
+
* @param [readOnly=false] - When true, hides the text input (no new tags can be added). The outer wrapper and label/caption are also omitted so the component can be embedded inside an existing container.
|
|
47
|
+
* @param [containerClassName] - Additional CSS classes applied to the tag container (the flex row wrapping all tags).
|
|
48
|
+
* @param [tagClassName] - Additional CSS classes applied to each individual tag.
|
|
43
49
|
* @param [onChange] - Callback fired whenever the tag list changes (tag added or removed).
|
|
44
50
|
*/
|
|
45
51
|
export declare const DialTagInput: FC<DialTagInputProps>;
|