@epam/ai-dial-ui-kit 0.5.0-rc.41 → 0.5.0-rc.42
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 +3 -3
- package/dist/dial-ui-kit.es.js +164 -155
- package/dist/src/components/AutocompleteInput/AutocompleteInput.d.ts +10 -10
- package/dist/src/components/AutocompleteInput/AutocompleteInputValue.d.ts +6 -6
- package/dist/src/components/Checkbox/Checkbox.d.ts +2 -2
- package/dist/src/components/CollapsibleSidebar/CollapsibleSidebar.d.ts +6 -6
- package/dist/src/components/ConfirmationPopup/ConfirmationPopup.d.ts +3 -3
- package/dist/src/components/ConfirmationPopup/constants.d.ts +3 -3
- package/dist/src/components/Dropdown/Dropdown.d.ts +2 -2
- package/dist/src/components/Dropdown/constants.d.ts +6 -6
- package/dist/src/components/EllipsisTooltip/EllipsisTooltip.d.ts +4 -4
- package/dist/src/components/EllipsisTooltip/constants.d.ts +1 -1
- package/dist/src/components/FileIcon/FileIcon.d.ts +2 -2
- package/dist/src/components/FileManager/FileManager.d.ts +3 -3
- package/dist/src/components/FileManager/FileManagerContext.d.ts +1 -1
- package/dist/src/components/FileManager/components/FileManagerItemIcon/FileManagerItemIcon.d.ts +1 -1
- package/dist/src/components/FileManager/components/FileManagerItemNameInput/FileManagerItemNameInput.d.ts +2 -2
- package/dist/src/components/FileManager/components/FileManagerNavigationPanel/FileManagerNavigationPanel.d.ts +10 -10
- package/dist/src/components/FileManager/components/FileManagerNavigationPanel/constants.d.ts +3 -3
- package/dist/src/components/FileManager/constants.d.ts +7 -7
- package/dist/src/components/FileName/FileName.d.ts +2 -2
- package/dist/src/components/FolderName/FolderName.d.ts +2 -2
- package/dist/src/components/FormItem/FormItem.d.ts +9 -9
- package/dist/src/components/FormItem/constants.d.ts +1 -1
- package/dist/src/components/FormPopup/FormPopup.d.ts +1 -1
- package/dist/src/components/FormPopup/constants.d.ts +1 -1
- package/dist/src/components/Grid/Grid.d.ts +3 -3
- package/dist/src/components/Grid/constants.d.ts +1 -1
- package/dist/src/components/Grid/renderers/DateCellRenderer.d.ts +2 -2
- package/dist/src/components/Grid/renderers/constants.d.ts +1 -1
- package/dist/src/components/Input/Input.d.ts +4 -4
- package/dist/src/components/InputField/InputField.d.ts +3 -3
- package/dist/src/components/InputPopup/InputPopup.d.ts +6 -6
- package/dist/src/components/PasswordInput/PasswordInputField.d.ts +1 -1
- package/dist/src/components/Popup/Popup.d.ts +6 -6
- package/dist/src/components/Popup/constants.d.ts +3 -3
- package/dist/src/components/RadioButton/RadioButton.d.ts +6 -6
- package/dist/src/components/RadioGroup/RadioGroup.d.ts +20 -20
- package/dist/src/components/RadioGroup/constants.d.ts +3 -3
- package/dist/src/components/RadioGroupPopupField/RadioGroupPopupField.d.ts +2 -2
- package/dist/src/components/Search/Search.d.ts +4 -4
- package/dist/src/components/Search/constants.d.ts +4 -4
- package/dist/src/components/Select/Select.d.ts +2 -2
- package/dist/src/components/Select/constants.d.ts +6 -6
- package/dist/src/components/SelectField/SelectField.d.ts +6 -6
- package/dist/src/components/SharedEntityIndicator/SharedEntityIndicator.d.ts +2 -2
- package/dist/src/components/Tag/Tag.d.ts +2 -2
- package/dist/src/components/TextAreaField/TextAreaField.d.ts +3 -3
- package/dist/src/components/Textarea/Textarea.d.ts +4 -4
- package/package.json +1 -1
|
@@ -24,6 +24,6 @@ export interface DialPasswordInputFieldProps extends DialInputFieldBaseProps {
|
|
|
24
24
|
* @param [onChange] - Callback function called when the input value changes
|
|
25
25
|
* @param [errorText] - Error message to display below the input
|
|
26
26
|
* @param [optional=false] - Whether the field is optional
|
|
27
|
-
* @param [
|
|
27
|
+
* @param [className] - Custom CSS class for the input element
|
|
28
28
|
*/
|
|
29
29
|
export declare const DialPasswordInputField: FC<DialPasswordInputFieldProps>;
|
|
@@ -4,9 +4,9 @@ export interface DialPopupProps {
|
|
|
4
4
|
open?: boolean;
|
|
5
5
|
title?: string | ReactNode;
|
|
6
6
|
portalId?: string;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
className?: string;
|
|
8
|
+
overlayClassName?: string;
|
|
9
|
+
headingClassName?: string;
|
|
10
10
|
dividers?: boolean;
|
|
11
11
|
children?: ReactNode;
|
|
12
12
|
footer?: ReactNode;
|
|
@@ -40,9 +40,9 @@ export interface DialPopupProps {
|
|
|
40
40
|
* @param [open=false] - Controls visibility of the popup
|
|
41
41
|
* @param [title] - Optional title rendered in the header
|
|
42
42
|
* @param [portalId] - Optional portal container id
|
|
43
|
-
* @param [
|
|
44
|
-
* @param [
|
|
45
|
-
* @param [
|
|
43
|
+
* @param [className] - Additional CSS classes applied to the popup container
|
|
44
|
+
* @param [overlayClassName] - Additional CSS classes applied to the overlay
|
|
45
|
+
* @param [headingClassName] - Additional CSS classes applied to the title element
|
|
46
46
|
* @param [dividers=true] - Whether to render separators between sections
|
|
47
47
|
* @param [children] - Body content
|
|
48
48
|
* @param [footer] - Footer area for actions
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PopupSize } from '../../types/popup';
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
2
|
+
export declare const overlayBaseClassName = "z-[52] flex items-center justify-center bg-blackout md:p-4";
|
|
3
|
+
export declare const popupDividerClassName = "divide-tertiary divide-y";
|
|
4
|
+
export declare const popupHeaderClassName = "flex flex-row justify-between py-4 px-6 items-center";
|
|
5
5
|
export declare const popupSizeClassMap: Record<PopupSize, string>;
|
|
@@ -6,11 +6,11 @@ export interface DialRadioButtonProps {
|
|
|
6
6
|
description?: ReactNode;
|
|
7
7
|
checked?: boolean;
|
|
8
8
|
inputId: string;
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
className?: string;
|
|
10
|
+
labelClassName?: string;
|
|
11
11
|
disabled?: boolean;
|
|
12
12
|
onChange?: (value: string) => void;
|
|
13
|
-
|
|
13
|
+
descriptionClassName?: string;
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
16
|
* A stylized, accessible radio input with optional description.
|
|
@@ -37,10 +37,10 @@ export interface DialRadioButtonProps {
|
|
|
37
37
|
* @param [description] - Supporting text shown when checked
|
|
38
38
|
* @param [checked=false] - Controlled checked state
|
|
39
39
|
* @param inputId - ID associated with the label
|
|
40
|
-
* @param [
|
|
41
|
-
* @param [
|
|
40
|
+
* @param [className] - Additional classes applied to the input element
|
|
41
|
+
* @param [labelClassName] - Additional classes applied to the label element
|
|
42
42
|
* @param [disabled] - Disabled state of the control
|
|
43
43
|
* @param [onChange] - Callback fired with `value` when the radio is changed
|
|
44
|
-
* @param [
|
|
44
|
+
* @param [descriptionClassName] - Additional classes applied to the description block
|
|
45
45
|
*/
|
|
46
46
|
export declare const DialRadioButton: FC<DialRadioButtonProps>;
|
|
@@ -9,16 +9,16 @@ export interface DialRadioGroupProps {
|
|
|
9
9
|
activeRadioButton: string;
|
|
10
10
|
orientation: RadioGroupOrientation;
|
|
11
11
|
onChange: (radioId: string) => void;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
12
|
+
radioClassName?: string;
|
|
13
|
+
groupLabelClassName?: string;
|
|
14
|
+
labelClassName?: string;
|
|
15
|
+
containerClassName?: string;
|
|
16
|
+
formItemChildrenClassName?: string;
|
|
17
|
+
selectedItemClassName?: string;
|
|
18
|
+
selectedLabelClassName?: string;
|
|
19
|
+
radioGroupClassName?: string;
|
|
20
|
+
inputContainerClassName?: string;
|
|
21
|
+
selectedInputContainerClassName?: string;
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
24
|
* Groups multiple `DialRadio` options and renders custom content for the active option.
|
|
@@ -43,16 +43,16 @@ export interface DialRadioGroupProps {
|
|
|
43
43
|
*
|
|
44
44
|
* @param [fieldTitle] - Optional label rendered by `DialField`
|
|
45
45
|
* @param elementId - Name for the underlying radio group; also used for input `name`
|
|
46
|
-
* @param [
|
|
47
|
-
* @param [
|
|
48
|
-
* @param [
|
|
49
|
-
* @param [
|
|
50
|
-
* @param [
|
|
51
|
-
* @param [
|
|
52
|
-
* @param [
|
|
53
|
-
* @param [
|
|
54
|
-
* @param [
|
|
55
|
-
* @param [
|
|
46
|
+
* @param [radioClassName] - Additional classes applied to each radio input
|
|
47
|
+
* @param [inputContainerClassName] - Additional classes applied to each radio input's container
|
|
48
|
+
* @param [selectedInputContainerClassName] - Additional classes applied to the selected radio input's container
|
|
49
|
+
* @param [groupLabelClassName] - Optional classes applied to the group label. If not provided, `labelClassName` will be used.
|
|
50
|
+
* @param [formItemChildrenClassName] - Additional classes applied to the DialFormItem's children container
|
|
51
|
+
* @param [labelClassName] - Additional classes applied to each radio label
|
|
52
|
+
* @param [containerClassName] - Additional classes applied to the outer container
|
|
53
|
+
* @param [selectedItemClassName] - Additional classes applied to the selected option's content container
|
|
54
|
+
* @param [selectedLabelClassName] - Additional classes applied to the selected option's label
|
|
55
|
+
* @param [radioGroupClassName] - Additional classes applied to the radio group container
|
|
56
56
|
* @param [disabled] - Disables all child radios when set
|
|
57
57
|
* @param radioButtons - Array of options with ids, labels, and optional content
|
|
58
58
|
* @param activeRadioButton - The id of the currently selected radio
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RadioGroupOrientation } from '../../types/radio-group';
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
2
|
+
export declare const groupBaseClassName = "flex flex-col gap-2";
|
|
3
|
+
export declare const optionsWrapperBaseClassName = "flex";
|
|
4
|
+
export declare const selectedContentClassName = "pb-1 mt-2";
|
|
5
5
|
export declare const orientationClassMap: Record<RadioGroupOrientation, string>;
|
|
@@ -51,8 +51,8 @@ export interface RadioGroupPopupFieldProps extends Pick<DialFieldLabelProps, 'fi
|
|
|
51
51
|
* @param [selectedValue] - Current value id used to resolve the displayed option name
|
|
52
52
|
* @param radioButtons - Collection of radio options (id/name)
|
|
53
53
|
* @param [customInputValue] - Custom value text to display instead of a radio option name
|
|
54
|
-
* @param [
|
|
55
|
-
* @param [
|
|
54
|
+
* @param [valueClassNames] - Extra classes applied to the value text in the collapsed field
|
|
55
|
+
* @param [inputClassNames] - Extra classes applied to the collapsed input container
|
|
56
56
|
* @param emptyValueText - Placeholder text when no value is selected
|
|
57
57
|
* @param [onClose] - Callback fired when the popup closes
|
|
58
58
|
* @param title - Title text shown in the popup header
|
|
@@ -7,8 +7,8 @@ export interface DialSearchProps {
|
|
|
7
7
|
disabled?: boolean;
|
|
8
8
|
readonly?: boolean;
|
|
9
9
|
invalid?: boolean;
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
className?: string;
|
|
11
|
+
containerClassName?: string;
|
|
12
12
|
onChange?: (value: string) => void;
|
|
13
13
|
size?: SearchSize;
|
|
14
14
|
allowClear?: boolean;
|
|
@@ -35,8 +35,8 @@ export interface DialSearchProps {
|
|
|
35
35
|
* @param [disabled=false] - Whether the input is disabled
|
|
36
36
|
* @param [readonly=false] - Whether the input is read-only (non-editable)
|
|
37
37
|
* @param [invalid=false] - Whether the input should be styled as invalid
|
|
38
|
-
* @param [
|
|
39
|
-
* @param [
|
|
38
|
+
* @param [className] - Additional CSS classes applied to the input element
|
|
39
|
+
* @param [containerClassName] - Additional CSS classes applied to the container
|
|
40
40
|
* @param [onChange] - Callback fired when the input value changes
|
|
41
41
|
* @param [size=SearchSize.Base] - The size of the search input. Uses the {@link SearchSize} enum.
|
|
42
42
|
* @param [allowClear=true] - Whether to show a clear button when there is a value
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export declare const SIZE_CONFIG: {
|
|
2
2
|
small: {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
textClassName: string;
|
|
4
|
+
containerClassName: string;
|
|
5
5
|
iconSize: number;
|
|
6
6
|
iconStroke: number;
|
|
7
7
|
};
|
|
8
8
|
base: {
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
textClassName: string;
|
|
10
|
+
containerClassName: string;
|
|
11
11
|
iconSize: number;
|
|
12
12
|
iconStroke: number;
|
|
13
13
|
};
|
|
@@ -20,7 +20,7 @@ export interface DialSelectProps {
|
|
|
20
20
|
emptyStateDescription?: string;
|
|
21
21
|
emptyStateIcon?: ReactNode;
|
|
22
22
|
disabled?: boolean;
|
|
23
|
-
|
|
23
|
+
className?: string;
|
|
24
24
|
closable?: boolean;
|
|
25
25
|
header?: ReactNode | (() => ReactNode);
|
|
26
26
|
footer?: ReactNode | (() => ReactNode);
|
|
@@ -71,7 +71,7 @@ export interface DialSelectProps {
|
|
|
71
71
|
* @param [emptyStateDescription] - Description text when there are no options.
|
|
72
72
|
* @param [emptyStateIcon] - Icon to display when there are no options.
|
|
73
73
|
* @param [disabled=false] - Disable the control.
|
|
74
|
-
* @param [
|
|
74
|
+
* @param [className] - Additional CSS classes for the trigger.
|
|
75
75
|
* @param [closable=false] - Show a close button in the dropdown header.
|
|
76
76
|
* @param [header] - Custom node/function rendered above the options.
|
|
77
77
|
* @param [footer] - Custom node/function rendered below the options.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const
|
|
1
|
+
export declare const selectTriggerBaseClassName = "dial-input flex w-full items-center justify-between gap-2 dial-small";
|
|
2
|
+
export declare const selectOverlayBaseClassName = "w-full rounded flex flex-col";
|
|
3
|
+
export declare const selectOptionBaseClassName = "flex w-full items-center justify-between gap-2 px-3 h-[34px] dial-small text-primary truncate hover:bg-accent-primary-alpha focus:bg-accent-primary-alpha focus:outline-none";
|
|
4
|
+
export declare const selectOptionSelectedClassName = "bg-accent-primary-alpha";
|
|
5
|
+
export declare const selectOptionSingleSelectedClassName = "bg-accent-primary-alpha border-l border-accent-primary border-1";
|
|
6
|
+
export declare const selectOptionDisabledClassName = "opacity-75";
|
|
7
7
|
export declare const dropdownMenuMaxHeight = 352;
|
|
8
8
|
export declare const selectChevronIcon: import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,9 +2,9 @@ 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, '
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
export interface DialSelectFieldProps extends Omit<DialSelectProps, 'className' | 'elementId'>, Omit<DialFieldLabelProps, 'htmlFor'>, Omit<DialFormItemProps, 'label' | 'children' | 'value'> {
|
|
6
|
+
selectClassName?: string;
|
|
7
|
+
containerClassName?: string;
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* A Select field wrapper that composes `DialFormItem` and `DialSelect`.
|
|
@@ -26,12 +26,12 @@ export interface DialSelectFieldProps extends Omit<DialSelectProps, 'cssClass' |
|
|
|
26
26
|
* />
|
|
27
27
|
*
|
|
28
28
|
* @params - Component properties extending:
|
|
29
|
-
* - {@link DialSelectProps} for select options and props, except for
|
|
29
|
+
* - {@link DialSelectProps} for select options and props, except for className
|
|
30
30
|
* - {@link DialFormItemProps} for form item props, except for htmlFor
|
|
31
31
|
* - {@link DialFieldLabelProps} for label props, except for label, children, value
|
|
32
32
|
*
|
|
33
|
-
* @param
|
|
34
|
-
* @param
|
|
33
|
+
* @param selectClassName CSS class for the select element
|
|
34
|
+
* @param containerClassName CSS class for the form item container
|
|
35
35
|
* @param emptyStateTitle Title to show when there are no options
|
|
36
36
|
* @param restSelectProps All other DialSelect props
|
|
37
37
|
* @param restFormItemProps All other DialFormItem props
|
|
@@ -2,7 +2,7 @@ import { FC } from 'react';
|
|
|
2
2
|
export interface DialSharedEntityIndicatorProps {
|
|
3
3
|
label?: string;
|
|
4
4
|
size?: number;
|
|
5
|
-
|
|
5
|
+
className?: string;
|
|
6
6
|
stroke?: number;
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
@@ -18,7 +18,7 @@ export interface DialSharedEntityIndicatorProps {
|
|
|
18
18
|
*
|
|
19
19
|
* @param [label="Shared entity"] - Accessible label for assistive tech
|
|
20
20
|
* @param [size=10] - Pixel size for the icon
|
|
21
|
-
* @param [
|
|
21
|
+
* @param [className] - Additional Tailwind classes appended to the container
|
|
22
22
|
* @param [stroke=2] - Stroke width for the icon
|
|
23
23
|
*
|
|
24
24
|
*/
|
|
@@ -2,7 +2,7 @@ import { TagVariant } from '../../types/tag';
|
|
|
2
2
|
import { FC, MouseEvent, ReactNode } from 'react';
|
|
3
3
|
export interface DialTagProps {
|
|
4
4
|
tag: string;
|
|
5
|
-
|
|
5
|
+
className?: string;
|
|
6
6
|
remove?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
7
7
|
variant?: TagVariant;
|
|
8
8
|
iconBefore?: ReactNode;
|
|
@@ -22,7 +22,7 @@ export interface DialTagProps {
|
|
|
22
22
|
* ```
|
|
23
23
|
*
|
|
24
24
|
* @param tag - The text label displayed inside the tag.
|
|
25
|
-
* @param [
|
|
25
|
+
* @param [className] - Optional additional CSS classes applied to the tag container.
|
|
26
26
|
* @param [remove] - Optional callback invoked when the remove button is clicked.
|
|
27
27
|
* If not provided, the remove button will not be rendered.
|
|
28
28
|
* @param [variant=TagVariant.Default] - Visual style of the tag. Uses the {@link TagVariant} enum.
|
|
@@ -33,9 +33,9 @@ export interface DialTextAreaFieldProps extends DialInputFieldBaseProps {
|
|
|
33
33
|
* @param [iconBefore] - Icon or element to display before the input
|
|
34
34
|
* @param [iconAfter] - Icon or element to display after the input
|
|
35
35
|
* @param [textBeforeInput] - Text to display before the input
|
|
36
|
-
* @param [
|
|
37
|
-
* @param [
|
|
38
|
-
* @param [
|
|
36
|
+
* @param [elementClassName] - Additional CSS classes to apply to the textarea element
|
|
37
|
+
* @param [containerClassName] - Additional CSS classes to apply to the outer container
|
|
38
|
+
* @param [elementContainerClassName] - Additional CSS classes to apply to the textarea container
|
|
39
39
|
* @param [disableTooltip] - Whether to disable the tooltip that shows the full value on hover
|
|
40
40
|
*/
|
|
41
41
|
export declare const DialTextAreaField: FC<DialTextAreaFieldProps>;
|
|
@@ -3,8 +3,8 @@ export interface DialTextareaProps {
|
|
|
3
3
|
value?: string | number | null;
|
|
4
4
|
placeholder?: string;
|
|
5
5
|
textareaId: string;
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
className?: string;
|
|
7
|
+
containerClassName?: string;
|
|
8
8
|
disabled?: boolean;
|
|
9
9
|
invalid?: boolean;
|
|
10
10
|
readonly?: boolean;
|
|
@@ -28,8 +28,8 @@ export interface DialTextareaProps {
|
|
|
28
28
|
* @param [value] - The current value of the textarea
|
|
29
29
|
* @param [onChange] - Callback function called when the textarea value changes
|
|
30
30
|
* @param [placeholder] - Placeholder text displayed when textarea is empty
|
|
31
|
-
* @param [
|
|
32
|
-
* @param [
|
|
31
|
+
* @param [className=""] - Additional CSS classes to apply to the textarea element
|
|
32
|
+
* @param [containerClassName=""] - Additional CSS classes to apply to the container div
|
|
33
33
|
* @param [disabled=false] - Whether the textarea is disabled
|
|
34
34
|
* @param [readonly=false] - Whether the textarea is read-only (no user input allowed)
|
|
35
35
|
* @param [invalid=false] - Whether the textarea has validation errors (applies error styling)
|