@epam/ai-dial-ui-kit 0.3.0-rc.34 → 0.3.0-rc.36
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/dist/dial-ui-kit.cjs.js +1 -1
- package/dist/dial-ui-kit.es.js +1030 -982
- package/dist/src/components/FormItem/FormItem.d.ts +6 -0
- package/dist/src/components/Input/Input.d.ts +2 -0
- package/dist/src/components/Select/MultiSelectTags.d.ts +8 -0
- package/dist/src/components/SelectField/SelectField.d.ts +1 -1
- package/package.json +1 -1
|
@@ -14,6 +14,9 @@ export interface DialFormItemProps {
|
|
|
14
14
|
errorCssClass?: string;
|
|
15
15
|
children: ReactNode;
|
|
16
16
|
captionDescription?: string;
|
|
17
|
+
readonly?: boolean;
|
|
18
|
+
value?: ReactNode | string;
|
|
19
|
+
defaultEmptyText?: string;
|
|
17
20
|
}
|
|
18
21
|
/**
|
|
19
22
|
* A layout wrapper for form controls with label, helper text and error message.
|
|
@@ -64,6 +67,9 @@ export interface DialFormItemProps {
|
|
|
64
67
|
* @param [labelCssClass] - Additional CSS classes to apply to the label element
|
|
65
68
|
* @param [errorCssClass] - Additional CSS classes to apply to the error message element
|
|
66
69
|
* @param [captionDescription] - Additional caption description text, displayed below the form control.
|
|
70
|
+
* @param [readonly=false] - Whether the form control is read-only (displays value as text, no input element)
|
|
71
|
+
* @param [value] - The current value of the form control
|
|
72
|
+
* @param [defaultEmptyText="None"] - Text to display when readonly and value is empty
|
|
67
73
|
* @param children - The form control element(s) to render inside the DialFormItem
|
|
68
74
|
*/
|
|
69
75
|
export declare const DialFormItem: FC<DialFormItemProps>;
|
|
@@ -5,6 +5,7 @@ export interface DialInputProps extends InputBaseProps {
|
|
|
5
5
|
containerCssClass?: string;
|
|
6
6
|
cssClass?: string;
|
|
7
7
|
hideBorder?: boolean;
|
|
8
|
+
tooltipText?: string;
|
|
8
9
|
tooltipTriggerClassName?: string;
|
|
9
10
|
onChange?: (value: string) => void;
|
|
10
11
|
onBlur?: (event: FocusEvent<HTMLInputElement, Element>) => void;
|
|
@@ -43,6 +44,7 @@ export interface DialInputProps extends InputBaseProps {
|
|
|
43
44
|
* @param [prefix] - Text to display inside the input on the left
|
|
44
45
|
* @param [suffix] - Text to display inside the input on the right
|
|
45
46
|
* @param [textBeforeInput] - Text to display before the input in a separate field
|
|
47
|
+
* @param [tooltipText] - The text to display inside the tooltip. If empty, the tooltip will display the value prop.
|
|
46
48
|
* @param [tooltipTriggerClassName] - Additional CSS classes to apply to the tooltip
|
|
47
49
|
* @param [textAfterInput] - Text to display after the input in a separate field
|
|
48
50
|
*/
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SelectOption } from '../../models/select';
|
|
2
|
+
import { MouseEvent } from 'react';
|
|
3
|
+
export interface DialMultiSelectTagsProps {
|
|
4
|
+
options: SelectOption[];
|
|
5
|
+
selectedValues: string[];
|
|
6
|
+
handleRemoveTag?: (event: MouseEvent<HTMLButtonElement, globalThis.MouseEvent>, val: string) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const DialMultiSelectTags: React.FC<DialMultiSelectTagsProps>;
|
|
@@ -2,7 +2,7 @@ import { FC } from 'react';
|
|
|
2
2
|
import { DialFormItemProps } from '../FormItem/FormItem';
|
|
3
3
|
import { DialSelectProps } from '../Select/Select';
|
|
4
4
|
import { DialFieldLabelProps } from '../Field/Field';
|
|
5
|
-
export interface DialSelectFieldProps extends Omit<DialSelectProps, 'cssClass'>, Omit<DialFieldLabelProps, 'htmlFor'>, Omit<DialFormItemProps, 'label' | 'children'> {
|
|
5
|
+
export interface DialSelectFieldProps extends Omit<DialSelectProps, 'cssClass'>, Omit<DialFieldLabelProps, 'htmlFor'>, Omit<DialFormItemProps, 'label' | 'children' | 'value'> {
|
|
6
6
|
selectCssClass?: string;
|
|
7
7
|
containerCssClass?: string;
|
|
8
8
|
}
|