@epam/ai-dial-ui-kit 0.3.0-rc.35 → 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.
|
@@ -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>;
|
|
@@ -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
|
}
|