@epam/ai-dial-ui-kit 0.5.0-rc.40 → 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 +165 -156
- 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
|
@@ -3,8 +3,8 @@ import { DialAutocompleteInputValueProps } from './AutocompleteInputValue';
|
|
|
3
3
|
export interface DialAutocompleteInputProps extends DialAutocompleteInputValueProps {
|
|
4
4
|
placeholder?: string;
|
|
5
5
|
updateSelected: (items: string[]) => void;
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
containerClassName?: string;
|
|
7
|
+
inputClassName?: string;
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* A component that provides an interactive input field with autocomplete functionality. Users can
|
|
@@ -18,19 +18,19 @@ export interface DialAutocompleteInputProps extends DialAutocompleteInputValuePr
|
|
|
18
18
|
* placeholder="Type to add items"
|
|
19
19
|
* selectedItems={['Item 1', 'Item 2']}
|
|
20
20
|
* updateSelected={(items) => console.log(items)}
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
21
|
+
* containerClassName="custom-container-class"
|
|
22
|
+
* inputClassName="custom-input-class"
|
|
23
|
+
* listClassName="custom-list-class"
|
|
24
|
+
* listElementClassName="custom-item-class"
|
|
25
25
|
* />
|
|
26
26
|
* ```
|
|
27
27
|
*
|
|
28
28
|
* @param [placeholder] - The placeholder text displayed in the input field when no items are selected.
|
|
29
29
|
* @param [selectedItems=[]] - An array of strings representing the currently selected items.
|
|
30
30
|
* @param updateSelected - A callback function that updates the list of selected items. Called when items are added or removed.
|
|
31
|
-
* @param [
|
|
32
|
-
* @param [
|
|
33
|
-
* @param [
|
|
34
|
-
* @param [
|
|
31
|
+
* @param [listClassName] - Additional CSS classes applied to the `<ul>` element containing the list of selected items.
|
|
32
|
+
* @param [listElementClassName] - Additional CSS classes applied to each `<li>` element representing an individual selected item.
|
|
33
|
+
* @param [containerClassName] - Additional CSS classes applied to the container `<div>` element wrapping the input and list.
|
|
34
|
+
* @param [inputClassName] - Additional CSS classes applied to the `<input>` element.
|
|
35
35
|
*/
|
|
36
36
|
export declare const DialAutocompleteInput: FC<DialAutocompleteInputProps>;
|
|
@@ -2,8 +2,8 @@ import { FC } from 'react';
|
|
|
2
2
|
export interface DialAutocompleteInputValueProps {
|
|
3
3
|
placeholder?: string;
|
|
4
4
|
selectedItems?: string[];
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
listClassName?: string;
|
|
6
|
+
listElementClassName?: string;
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
9
9
|
* A component that displays a list of selected items in a customizable, styled list. Each item is
|
|
@@ -15,14 +15,14 @@ export interface DialAutocompleteInputValueProps {
|
|
|
15
15
|
* ```tsx
|
|
16
16
|
* <DialAutocompleteInputValue
|
|
17
17
|
* selectedItems={['Item 1', 'Item 2', 'Item 3']}
|
|
18
|
-
*
|
|
19
|
-
*
|
|
18
|
+
* listClassName="custom-list-class"
|
|
19
|
+
* listElementClassName="custom-item-class"
|
|
20
20
|
* />
|
|
21
21
|
* ```
|
|
22
22
|
*
|
|
23
23
|
* @param [placeholder] - Placeholder text to display when no items are selected.
|
|
24
24
|
* @param [selectedItems] - An array of strings representing the selected items to display. If empty or undefined, the component renders nothing.
|
|
25
|
-
* @param [
|
|
26
|
-
* @param [
|
|
25
|
+
* @param [listClassName] - Additional CSS classes applied to the `<ul>` element containing the list of selected items.
|
|
26
|
+
* @param [listElementClassName] - Additional CSS classes applied to each `<li>` element representing an individual selected item.
|
|
27
27
|
*/
|
|
28
28
|
export declare const DialAutocompleteInputValue: FC<DialAutocompleteInputValueProps>;
|
|
@@ -7,7 +7,7 @@ export interface DialCheckboxProps {
|
|
|
7
7
|
indeterminate?: boolean;
|
|
8
8
|
ariaLabel?: string;
|
|
9
9
|
onChange?: (value?: boolean, id?: string) => void;
|
|
10
|
-
|
|
10
|
+
className?: string;
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
13
13
|
* A Checkbox component with styling options
|
|
@@ -30,6 +30,6 @@ export interface DialCheckboxProps {
|
|
|
30
30
|
* @param [indeterminate=false] - indeterminate state
|
|
31
31
|
* @param [ariaLabel] - Accessible label for screen readers when no title is provided
|
|
32
32
|
* @param [onChange] - Callback function called when the checkbox value changes
|
|
33
|
-
* @param [
|
|
33
|
+
* @param [className] - Additional CSS classes to apply to the checkbox wrapper
|
|
34
34
|
*/
|
|
35
35
|
export declare const DialCheckbox: FC<DialCheckboxProps>;
|
|
@@ -3,8 +3,8 @@ export interface DialCollapsibleSidebarProps {
|
|
|
3
3
|
children: ReactNode;
|
|
4
4
|
width?: number;
|
|
5
5
|
title: string;
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
titleClassName?: string;
|
|
7
|
+
containerClassName?: string;
|
|
8
8
|
iconSize?: number;
|
|
9
9
|
additionalButtons?: ReactNode;
|
|
10
10
|
iconStroke?: number;
|
|
@@ -20,8 +20,8 @@ export interface DialCollapsibleSidebarProps {
|
|
|
20
20
|
* <DialCollapsibleSidebar
|
|
21
21
|
* width={300}
|
|
22
22
|
* title="Menu"
|
|
23
|
-
*
|
|
24
|
-
*
|
|
23
|
+
* titleClassName="text-primary font-bold"
|
|
24
|
+
* containerClassName="bg-gray-100 shadow-md"
|
|
25
25
|
* iconSize={24}
|
|
26
26
|
* additionalButtons={<button>Extra</button>}
|
|
27
27
|
* >
|
|
@@ -32,8 +32,8 @@ export interface DialCollapsibleSidebarProps {
|
|
|
32
32
|
* @param children - The content to display inside the collapsible bar when expanded
|
|
33
33
|
* @param [width = 280] - The width of the bar when expanded
|
|
34
34
|
* @param title - The title displayed when the bar is collapsed
|
|
35
|
-
* @param [
|
|
36
|
-
* @param [
|
|
35
|
+
* @param [titleClassName] - Additional CSS classes applied to the title element
|
|
36
|
+
* @param [containerClassName] - Additional CSS classes applied to the container element
|
|
37
37
|
* @param [iconSize = 32] - The size of the toggle icons. Defaults to 32
|
|
38
38
|
* @param [iconStroke = 1.5] - The stroke width of the toggle icons. Defaults to 1.5
|
|
39
39
|
* @param [additionalButtons] - Additional buttons or elements displayed next to the toggle button when expanded
|
|
@@ -3,7 +3,7 @@ import { DialPopupProps } from '../Popup/Popup';
|
|
|
3
3
|
import { ConfirmationPopupVariant } from '../../types/confirmation-popup';
|
|
4
4
|
export interface DialConfirmationPopupProps extends DialPopupProps {
|
|
5
5
|
description?: string | ReactNode;
|
|
6
|
-
|
|
6
|
+
descriptionClassName?: string;
|
|
7
7
|
confirmLabel?: string;
|
|
8
8
|
cancelLabel?: string;
|
|
9
9
|
isLoading?: boolean;
|
|
@@ -34,13 +34,13 @@ export interface DialConfirmationPopupProps extends DialPopupProps {
|
|
|
34
34
|
*
|
|
35
35
|
* @param title - Title content for the header
|
|
36
36
|
* @param [description] - Secondary text (ignored when `children` set)
|
|
37
|
-
* @param [
|
|
37
|
+
* @param [descriptionClassName] - Custom CSS class for the description
|
|
38
38
|
* @param [open=false] - Controls visibility of the popup
|
|
39
39
|
* @param [confirmLabel="Ok"] - Label for the confirm button
|
|
40
40
|
* @param [cancelLabel="Cancel"] - Label for the cancel button
|
|
41
41
|
* @param [isLoading=false] - Shows loader placeholder and hides actions
|
|
42
42
|
* @param [disableConfirmButton=false] - Disables the confirm button
|
|
43
|
-
* @param [
|
|
43
|
+
* @param [className] - Extra classes for the popup container
|
|
44
44
|
* @param [confirmClassName] - Extra classes merged into the confirm button
|
|
45
45
|
* @param onClose - Fired on close
|
|
46
46
|
* @param onConfirm - Fired on confirm
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ButtonVariant } from '../../types/button';
|
|
2
2
|
import { ConfirmationPopupVariant } from '../../types/confirmation-popup';
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
3
|
+
export declare const actionsBaseClassName = "flex justify-end gap-2 px-6 py-4";
|
|
4
|
+
export declare const descriptionBaseClassName = "text-secondary dial-small-150 px-6 py-4";
|
|
5
5
|
export declare const defaultCancelLabel = "Cancel";
|
|
6
6
|
export declare const defaultConfirmLabel = "Ok";
|
|
7
7
|
export declare const variantConfig: Record<ConfirmationPopupVariant, {
|
|
8
8
|
container?: string;
|
|
9
9
|
confirmVariant: ButtonVariant;
|
|
10
|
-
|
|
10
|
+
confirmClassName?: string;
|
|
11
11
|
cancelVariant: ButtonVariant;
|
|
12
12
|
}>;
|
|
@@ -24,7 +24,7 @@ export interface DialDropdownProps {
|
|
|
24
24
|
onOpenChange?: (open: boolean) => void;
|
|
25
25
|
closable?: boolean;
|
|
26
26
|
onClose?: (e: MouseEvent<HTMLButtonElement>) => void;
|
|
27
|
-
|
|
27
|
+
className?: string;
|
|
28
28
|
listClassName?: string;
|
|
29
29
|
outsidePressIgnoreRef?: RefObject<HTMLElement | null>;
|
|
30
30
|
outsideClosable?: boolean;
|
|
@@ -69,7 +69,7 @@ export interface DialDropdownProps {
|
|
|
69
69
|
* @param [onOpenChange] - Fired whenever the open state changes
|
|
70
70
|
* @param [closable=false] - Whether the overlay shows an internal close button
|
|
71
71
|
* @param [onClose] - Fired when the close button inside the overlay is clicked
|
|
72
|
-
* @param [
|
|
72
|
+
* @param [className] - Additional CSS classes applied to the trigger wrapper
|
|
73
73
|
* @param [listClassName] - Additional CSS classes applied to the floating overlay
|
|
74
74
|
* @param [outsidePressIgnoreRef] - Ref to an element that should not trigger outside press behavior
|
|
75
75
|
* @param [outsideClosable=true] - Whether clicks outside the overlay should close it
|
|
@@ -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 dropdownBaseClassName: string;
|
|
2
|
+
export declare const dropdownListBaseClassName: string;
|
|
3
|
+
export declare const dropdownItemBaseClassName: string;
|
|
4
|
+
export declare const dropdownItemDisabledClassName = "opacity-75 !cursor-not-allowed";
|
|
5
|
+
export declare const dropdownItemDangerClassName = "text-error";
|
|
6
|
+
export declare const dropdownDividerClassName = "my-1 border-t border-hover border-secondary";
|
|
7
7
|
export declare const dropdownGap = 4;
|
|
8
8
|
export declare const submenuCaretIcon: import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,7 +2,7 @@ import { FC, ReactNode } from 'react';
|
|
|
2
2
|
import { DialTooltipContainerOptions } from '../Tooltip/TooltipContext';
|
|
3
3
|
export interface DialEllipsisTooltipProps extends DialTooltipContainerOptions {
|
|
4
4
|
text: string | ReactNode;
|
|
5
|
-
|
|
5
|
+
className?: string;
|
|
6
6
|
contentClassName?: string;
|
|
7
7
|
hideTooltip?: boolean;
|
|
8
8
|
}
|
|
@@ -11,19 +11,19 @@ export interface DialEllipsisTooltipProps extends DialTooltipContainerOptions {
|
|
|
11
11
|
* If the text fits, tooltip content is empty and the popup stays hidden.
|
|
12
12
|
*
|
|
13
13
|
* Important: width must be finite for truncation.
|
|
14
|
-
* Consumers can override via `
|
|
14
|
+
* Consumers can override via `className`.
|
|
15
15
|
*
|
|
16
16
|
* a11y: when truncated, the full text is exposed via `aria-label` on the reference node.
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
19
|
* ```tsx
|
|
20
20
|
* <DialEllipsisTooltip text="Very long message that will be truncated" />
|
|
21
|
-
* <DialEllipsisTooltip text={<span className="font-medium">Custom node</span>}
|
|
21
|
+
* <DialEllipsisTooltip text={<span className="font-medium">Custom node</span>} className="max-w-[160px]" />
|
|
22
22
|
* <DialEllipsisTooltip text="Tooltip disabled even if truncated" hideTooltip />
|
|
23
23
|
* ```
|
|
24
24
|
*
|
|
25
25
|
* @param text The text or node to display (truncated with ellipsis if too long).
|
|
26
|
-
* @param
|
|
26
|
+
* @param className Optional additional CSS classes for the text container (e.g. to set width).
|
|
27
27
|
* @param contentClassName Optional additional CSS classes for the tooltip content.
|
|
28
28
|
* @param hideTooltip If true, disables the tooltip even if text is truncated.
|
|
29
29
|
* @param tooltipProps Additional props to pass to the underlying DialTooltipContainer.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const
|
|
1
|
+
export declare const tooltipContentBaseClassName = "text-primary";
|
|
@@ -3,7 +3,7 @@ export interface DialFileIconProps {
|
|
|
3
3
|
extension: string;
|
|
4
4
|
size?: number;
|
|
5
5
|
stroke?: number;
|
|
6
|
-
|
|
6
|
+
className?: string;
|
|
7
7
|
decorative?: boolean;
|
|
8
8
|
label?: string;
|
|
9
9
|
indicator?: ReactNode;
|
|
@@ -23,7 +23,7 @@ export interface DialFileIconProps {
|
|
|
23
23
|
* @param extension - File extension string (with or without leading dot)
|
|
24
24
|
* @param [size=baseIconProps.size] - Icon pixel size
|
|
25
25
|
* @param [stroke=baseIconProps.stroke] - Tabler icon stroke width
|
|
26
|
-
* @param [
|
|
26
|
+
* @param [className] - Additional classes on the container
|
|
27
27
|
* @param [decorative=false] - Whether the icon should be hidden from assistive technologies
|
|
28
28
|
* @param [label] - Accessible label when not decorative; defaults to "<EXT> file icon"
|
|
29
29
|
* @param [indicator] - Optional indicator element to display alongside the icon
|
|
@@ -17,7 +17,7 @@ export type DialFileManagerDestinationFolderPopupOptions = Pick<DestinationFolde
|
|
|
17
17
|
export interface FileTreeOptions extends Omit<DialFoldersTreeProps, 'items' | 'selectedPath' | 'onItemClick'> {
|
|
18
18
|
width?: number;
|
|
19
19
|
title?: string;
|
|
20
|
-
|
|
20
|
+
containerClassName?: string;
|
|
21
21
|
additionalButtons?: ReactNode;
|
|
22
22
|
collapsed?: boolean;
|
|
23
23
|
onCollapseChange?: (collapsed: boolean) => void;
|
|
@@ -76,7 +76,7 @@ export interface CreateFolderValidationMessages {
|
|
|
76
76
|
}
|
|
77
77
|
export interface DialFileManagerProps {
|
|
78
78
|
path?: string;
|
|
79
|
-
|
|
79
|
+
className?: string;
|
|
80
80
|
items?: DialFile[];
|
|
81
81
|
rootItem?: DialRootFolder;
|
|
82
82
|
filesLoading?: boolean;
|
|
@@ -154,7 +154,7 @@ export interface DialFileManagerProps {
|
|
|
154
154
|
* ```
|
|
155
155
|
*
|
|
156
156
|
* @param [path] - Absolute path of the current location (e.g. "/All files/Design/Icons")
|
|
157
|
-
* @param [
|
|
157
|
+
* @param [className] - Additional classes for the root container
|
|
158
158
|
* @param [items] - Full hierarchical list of files and folders used by both tree and grid
|
|
159
159
|
* @param [rootItem] - Optional root folder item to represent the top-level container in the tree
|
|
160
160
|
* @param [filesLoading=false] - When true, shows skeleton loading state in the grid
|
package/dist/src/components/FileManager/components/FileManagerItemIcon/FileManagerItemIcon.d.ts
CHANGED
|
@@ -38,7 +38,7 @@ export interface DialFileManagerItemIconProps extends Omit<DialFileIconProps, 'e
|
|
|
38
38
|
* @param {boolean} [props.loading=false] - Whether to display the loading state.
|
|
39
39
|
* @param {number} [props.size] - Optional icon size override.
|
|
40
40
|
* @param {number} [props.stroke] - Optional icon stroke width override.
|
|
41
|
-
* @param {string} [props.
|
|
41
|
+
* @param {string} [props.className] - Optional CSS class for styling.
|
|
42
42
|
* @param {boolean} [props.decorative] - Whether the icon is decorative (for accessibility).
|
|
43
43
|
* @param {string} [props.label] - Accessible label for screen readers.
|
|
44
44
|
* @param {ReactNode} [props.indicator] - Optional indicator to display over the icon.
|
|
@@ -8,7 +8,7 @@ export interface DialFileManagerItemNameInputProps {
|
|
|
8
8
|
elementId: string;
|
|
9
9
|
iconSize?: number;
|
|
10
10
|
iconStroke?: number;
|
|
11
|
-
|
|
11
|
+
iconClassName?: string;
|
|
12
12
|
iconLabel?: string;
|
|
13
13
|
iconIndicator?: ReactNode;
|
|
14
14
|
inputInvalid?: boolean;
|
|
@@ -53,7 +53,7 @@ export interface DialFileManagerItemNameInputProps {
|
|
|
53
53
|
* @param {boolean} [props.loading=false] - Whether the icon is loading.
|
|
54
54
|
* @param {number} [props.iconSize] - Optional size override for the icon.
|
|
55
55
|
* @param {number} [props.iconStroke] - Optional stroke width override for the icon.
|
|
56
|
-
* @param {string} [props.
|
|
56
|
+
* @param {string} [props.iconClassName] - Optional CSS class for the icon.
|
|
57
57
|
* @param {string} [props.iconLabel] - Optional accessible label for the icon.
|
|
58
58
|
* @param {ReactNode} [props.iconIndicator] - Optional indicator to render over the icon.
|
|
59
59
|
* @param {boolean} [props.inputInvalid=false] - Marks the input as invalid.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { DialBreadcrumbProps } from '../../../Breadcrumb/Breadcrumb';
|
|
3
3
|
import { DialSearchProps } from '../../../Search/Search';
|
|
4
|
-
export interface DialFileManagerNavigationPanelProps extends Omit<DialBreadcrumbProps, 'pathItems' | 'children' | '
|
|
4
|
+
export interface DialFileManagerNavigationPanelProps extends Omit<DialBreadcrumbProps, 'pathItems' | 'children' | 'className' | 'separator'>, Omit<DialSearchProps, 'onChange' | 'elementId' | 'value' | 'className' | 'containerClassName' | 'placeholder' | 'size'> {
|
|
5
5
|
path?: string;
|
|
6
6
|
makeHref?: (segments: string[], index: number) => string | undefined;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
className?: string;
|
|
8
|
+
breadcrumbClassName?: string;
|
|
9
9
|
onItemClick?: (href?: string) => void;
|
|
10
10
|
rootItemPath?: string;
|
|
11
11
|
rootItemLabel?: string;
|
|
@@ -13,8 +13,8 @@ export interface DialFileManagerNavigationPanelProps extends Omit<DialBreadcrumb
|
|
|
13
13
|
value?: string | number | null;
|
|
14
14
|
elementId?: string;
|
|
15
15
|
onSearchChange?: (value: string) => void;
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
searchClassName?: string;
|
|
17
|
+
searchContainerClassName?: string;
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
20
|
* FileManagerNavigationPanel
|
|
@@ -43,18 +43,18 @@ export interface DialFileManagerNavigationPanelProps extends Omit<DialBreadcrumb
|
|
|
43
43
|
* ```
|
|
44
44
|
*
|
|
45
45
|
* @param [ariaLabel="Breadcrumb"] - Aria label for the breadcrumb `<nav>`
|
|
46
|
-
* @param [
|
|
46
|
+
* @param [titleClassName] - Extra classes for breadcrumb titles
|
|
47
47
|
* @param [path] - A full path string that will be split into breadcrumb items
|
|
48
48
|
* @param [makeHref] - Factory to create hrefs for segments
|
|
49
49
|
* @param [onItemClick] - Callback fired when a breadcrumb item is clicked
|
|
50
|
-
* @param [
|
|
51
|
-
* @param [
|
|
50
|
+
* @param [className] - Additional classes for the panel container
|
|
51
|
+
* @param [breadcrumbClassName] - ClassName forwarded to inner `DialBreadcrumb`
|
|
52
52
|
* @param [searchable=true] - Whether to render the search control
|
|
53
53
|
* @param [value] - Controlled value for the search input (parent-managed)
|
|
54
54
|
* @param [elementId="fm-search"] - DOM id for the internal DialSearch input
|
|
55
55
|
* @param [size=SearchSize.Base] - Size of the search input (from DialSearchProps)
|
|
56
56
|
* @param [onSearchChange] - Callback fired when the search value changes
|
|
57
|
-
* @param [
|
|
58
|
-
* @param [
|
|
57
|
+
* @param [searchClassName] - Extra classes for the search input element
|
|
58
|
+
* @param [searchContainerClassName] - Extra classes for the search container
|
|
59
59
|
*/
|
|
60
60
|
export declare const DialFileManagerNavigationPanel: FC<DialFileManagerNavigationPanelProps>;
|
package/dist/src/components/FileManager/components/FileManagerNavigationPanel/constants.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
1
|
+
export declare const panelBaseClassName = "w-full h-[12] flex items-center justify-between gap-4";
|
|
2
|
+
export declare const breadcrumbContainerClassName = "min-w-0 h-[38px] flex-1 overflow-hidden bg-layer-3 px-3 flex items-center rounded";
|
|
3
|
+
export declare const searchContainerWrapperClassName = "w-[260px]";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const
|
|
1
|
+
export declare const containerBaseClassName = "w-full h-full grid grid-rows-[auto_1fr] gap-5 p-6 overflow-hidden min-w-0 bg-layer-2";
|
|
2
|
+
export declare const toolbarBaseClassName = "w-full text-secondary flex items-center gap-2";
|
|
3
|
+
export declare const mainGridClassName = "flex min-h-0 min-w-0 h-full gap-4 overflow-hidden";
|
|
4
|
+
export declare const contentGridClassName = "flex flex-col flex-1 min-h-0 min-w-0 h-full gap-4";
|
|
5
|
+
export declare const contentHeaderClassName = "items-center";
|
|
6
|
+
export declare const treeBaseClassName = "w-full h-full rounded bg-layer-3 text-secondary overflow-auto min-w-0";
|
|
7
|
+
export declare const gridBaseClassName = "flex-1 w-full rounded text-secondary overflow-auto min-h-0 min-w-0";
|
|
8
8
|
export declare const sidebarWidth = 280;
|
|
9
9
|
export declare const sidebarTitleDefault = "Files";
|
|
10
10
|
export declare const BASE_FILE_MANAGER_ICON_SIZE = 20;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
export interface DialFileNameProps {
|
|
3
3
|
name: string;
|
|
4
|
-
|
|
4
|
+
className?: string;
|
|
5
5
|
shared?: boolean;
|
|
6
6
|
iconSize?: number;
|
|
7
7
|
}
|
|
@@ -15,7 +15,7 @@ export interface DialFileNameProps {
|
|
|
15
15
|
* ```
|
|
16
16
|
*
|
|
17
17
|
* @param name - Full file name with or without extension
|
|
18
|
-
* @param
|
|
18
|
+
* @param className - Additional CSS classes for the root container
|
|
19
19
|
* @param shared - Whether the file is shared
|
|
20
20
|
* @param iconSize - Icon size in px. Default: BASE_ICON_SIZE.
|
|
21
21
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
export interface DialFolderNameProps {
|
|
3
3
|
name: string;
|
|
4
|
-
|
|
4
|
+
className?: string;
|
|
5
5
|
shared?: boolean;
|
|
6
6
|
loading?: boolean;
|
|
7
7
|
iconSize?: number;
|
|
@@ -16,7 +16,7 @@ export interface DialFolderNameProps {
|
|
|
16
16
|
* ```
|
|
17
17
|
*
|
|
18
18
|
* @param name - Folder name
|
|
19
|
-
* @param
|
|
19
|
+
* @param className - Additional CSS classes for the root container
|
|
20
20
|
* @param shared - If true, shows shared indicator. Default: false.
|
|
21
21
|
* @param loading - If true, shows loading state. Default: false.
|
|
22
22
|
* @param iconSize - Icon size in px. Default: BASE_ICON_SIZE.
|
|
@@ -3,10 +3,10 @@ import { DialFormItemBaseProps } from '../../types/form-item';
|
|
|
3
3
|
export interface DialFormItemProps extends DialFormItemBaseProps {
|
|
4
4
|
elementId: string;
|
|
5
5
|
labelVisuallyHidden?: boolean;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
className?: string;
|
|
7
|
+
childrenClassName?: string;
|
|
8
|
+
labelClassName?: string;
|
|
9
|
+
errorClassName?: string;
|
|
10
10
|
children: ReactNode;
|
|
11
11
|
value?: ReactNode | string;
|
|
12
12
|
defaultEmptyText?: string;
|
|
@@ -22,7 +22,7 @@ export interface DialFormItemProps extends DialFormItemBaseProps {
|
|
|
22
22
|
*
|
|
23
23
|
* @example
|
|
24
24
|
* ```tsx
|
|
25
|
-
* <DialFormItem elementId="transport" label="Transport"
|
|
25
|
+
* <DialFormItem elementId="transport" label="Transport" className="w-[320px]">
|
|
26
26
|
* <DialSelect
|
|
27
27
|
* elementId="transport"
|
|
28
28
|
* value={transport}
|
|
@@ -53,10 +53,10 @@ export interface DialFormItemProps extends DialFormItemBaseProps {
|
|
|
53
53
|
*
|
|
54
54
|
* @param elementId - Unique identifier for the form control element (used for accessibility)
|
|
55
55
|
* @param labelVisuallyHidden - Whether to visually hide the label (still accessible to screen readers, default: false)
|
|
56
|
-
* @param
|
|
57
|
-
* @param
|
|
58
|
-
* @param
|
|
59
|
-
* @param
|
|
56
|
+
* @param className - Additional CSS classes to apply to the container div
|
|
57
|
+
* @param childrenClassName - Additional CSS classes to apply to the children container div
|
|
58
|
+
* @param labelClassName - Additional CSS classes to apply to the label element
|
|
59
|
+
* @param errorClassName - Additional CSS classes to apply to the error message element
|
|
60
60
|
* @param children - The form control element(s) to render inside the DialFormItem
|
|
61
61
|
* @param value - The current value of the form control (for readonly mode)
|
|
62
62
|
* @param defaultEmptyText - Text to display when readonly and value is empty (default: "None")
|
|
@@ -32,7 +32,7 @@ export interface DialFormPopupProps extends DialPopupProps {
|
|
|
32
32
|
* @param [cancelLabel="Cancel"] - Label for the cancel button
|
|
33
33
|
* @param [isLoading=false] - Shows loader placeholder and hides actions
|
|
34
34
|
* @param [disableSubmitButton=false] - Disables the submit button
|
|
35
|
-
* @param [
|
|
35
|
+
* @param [className] - Extra classes for the popup container
|
|
36
36
|
* @param [submitClassName] - Extra classes merged into the submit button
|
|
37
37
|
* @param onClose - Fired on close
|
|
38
38
|
* @param onSubmit - Fired on submit
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const defaultSubmitLabel = "Create";
|
|
2
2
|
export declare const defaultCancelLabel = "Cancel";
|
|
3
|
-
export declare const
|
|
3
|
+
export declare const actionsBaseClassName = "flex items-center justify-end gap-2 px-6 py-3";
|
|
@@ -6,7 +6,7 @@ export interface DialGridProps<T extends object = Record<string, unknown>> {
|
|
|
6
6
|
rowData?: T[];
|
|
7
7
|
additionalGridOptions?: GridOptions<T>;
|
|
8
8
|
getContextMenuItems?: (row: T) => DropdownItem[];
|
|
9
|
-
|
|
9
|
+
className?: string;
|
|
10
10
|
ariaLabel?: string;
|
|
11
11
|
withSelectionColumn?: boolean;
|
|
12
12
|
wrapCustomCellRenderers?: boolean | ((col: ColDef<T>) => boolean);
|
|
@@ -92,7 +92,7 @@ export interface DialGridProps<T extends object = Record<string, unknown>> {
|
|
|
92
92
|
* @param [rowData] - Array of data objects to display in the grid
|
|
93
93
|
* @param [additionalGridOptions] - Additional ag-Grid GridOptions to merge with defaults
|
|
94
94
|
* @param [getContextMenuItems] - Function returning context menu items for a given row
|
|
95
|
-
* @param [
|
|
95
|
+
* @param [className] - Additional CSS classes to apply to the grid container
|
|
96
96
|
* @param [ariaLabel='Data grid'] - Accessible label for the grid region
|
|
97
97
|
* @param [withSelectionColumn=true] - Whether to show the checkbox selection column
|
|
98
98
|
* @param [wrapCustomCellRenderers=true] - Whether to wrap custom cell renderers with context menu support
|
|
@@ -108,4 +108,4 @@ export interface DialGridProps<T extends object = Record<string, unknown>> {
|
|
|
108
108
|
* @param [loading=false] - When true, shows AG-Grid's native loading overlay
|
|
109
109
|
* @param [wrapperBorder=true] - Whether to apply a border around the grid container
|
|
110
110
|
*/
|
|
111
|
-
export declare const DialGrid: <T extends object>({ columnDefs, rowData, additionalGridOptions, getContextMenuItems,
|
|
111
|
+
export declare const DialGrid: <T extends object>({ columnDefs, rowData, additionalGridOptions, getContextMenuItems, className, ariaLabel, withSelectionColumn, wrapCustomCellRenderers, selectedRowIds, selectedRows, onSelectionChange, onSelectionChangeWithMap, getRowId, alternateOddRowColors, filterPlaceholder, emptyStateIcon, emptyStateTitle, emptyStateDescription, loading, wrapperBorder, }: DialGridProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -6,7 +6,7 @@ export interface DialDateCellRendererProps extends Partial<ICellRendererParams<R
|
|
|
6
6
|
locale?: string;
|
|
7
7
|
options?: Intl.DateTimeFormatOptions;
|
|
8
8
|
emptyPlaceholder?: string;
|
|
9
|
-
|
|
9
|
+
className?: string;
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
12
|
* Minimal date cell renderer (ag-Grid compatible).
|
|
@@ -27,6 +27,6 @@ export interface DialDateCellRendererProps extends Partial<ICellRendererParams<R
|
|
|
27
27
|
* @param [locale='en-US'] - Locale fixed to U.S. English by default to enforce "Jul 20, 2025".
|
|
28
28
|
* @param [options={ year: 'numeric', month: 'numeric', day: '2-digit', hour: '2-digit', minute: '2-digit', second: '2-digit', timeZone: 'UTC' }] - Options for date formatting (e.g., timeZone).
|
|
29
29
|
* @param [emptyPlaceholder='—'] - Placeholder when value is empty/invalid.
|
|
30
|
-
* @param [
|
|
30
|
+
* @param [className] - Additional classes merged into the wrapper.
|
|
31
31
|
*/
|
|
32
32
|
export declare const DialDateCellRenderer: FC<DialDateCellRendererProps>;
|
|
@@ -2,8 +2,8 @@ import { FC, FocusEvent, Ref } from 'react';
|
|
|
2
2
|
import { InputBaseProps, NumberInputBaseProps } from '../../models/field-control-props';
|
|
3
3
|
export interface DialInputProps extends InputBaseProps, Partial<NumberInputBaseProps> {
|
|
4
4
|
type?: string;
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
containerClassName?: string;
|
|
6
|
+
className?: string;
|
|
7
7
|
hideBorder?: boolean;
|
|
8
8
|
tooltipText?: string;
|
|
9
9
|
tooltipTriggerClassName?: string;
|
|
@@ -31,8 +31,8 @@ export interface DialInputProps extends InputBaseProps, Partial<NumberInputBaseP
|
|
|
31
31
|
* - {@link NumberInputBaseProps} - Number input properties (min, max) - partial
|
|
32
32
|
*
|
|
33
33
|
* @param type - The HTML input type (text, password, email, number, etc.)
|
|
34
|
-
* @param
|
|
35
|
-
* @param
|
|
34
|
+
* @param containerClassName - Additional CSS classes to apply to the container div
|
|
35
|
+
* @param className - Additional CSS classes to apply to the input element
|
|
36
36
|
* @param hideBorder - Whether to hide the input border styling
|
|
37
37
|
* @param tooltipText - The text to display inside the tooltip. If empty, the tooltip will display the value prop.
|
|
38
38
|
* @param tooltipTriggerClassName - Additional CSS classes to apply to the tooltip
|
|
@@ -5,9 +5,9 @@ export interface DialInputFieldBaseProps extends FieldControlProps, DialFormItem
|
|
|
5
5
|
value?: string | number;
|
|
6
6
|
defaultEmptyText?: string;
|
|
7
7
|
errorText?: string;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
elementClassName?: string;
|
|
9
|
+
elementContainerClassName?: string;
|
|
10
|
+
containerClassName?: string;
|
|
11
11
|
}
|
|
12
12
|
export interface DialInputFieldProps extends DialInputFieldBaseProps, Partial<NumberInputBaseProps> {
|
|
13
13
|
type: string;
|
|
@@ -5,8 +5,8 @@ export interface DialInputPopupProps {
|
|
|
5
5
|
children: ReactNode;
|
|
6
6
|
onOpen: () => void;
|
|
7
7
|
disabled?: boolean;
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
valueClassNames?: string;
|
|
9
|
+
inputClassNames?: string;
|
|
10
10
|
placeholder?: string;
|
|
11
11
|
elementId?: string;
|
|
12
12
|
errorText?: string;
|
|
@@ -26,8 +26,8 @@ export interface DialInputPopupProps {
|
|
|
26
26
|
* emptyValueText="No value selected"
|
|
27
27
|
* onOpen={() => setModalState(true)}
|
|
28
28
|
* disabled={false}
|
|
29
|
-
*
|
|
30
|
-
*
|
|
29
|
+
* valueClassNames="custom-value-class"
|
|
30
|
+
* inputClassNames="custom-input-class"
|
|
31
31
|
* elementId="input-modal"
|
|
32
32
|
* errorText="This field is required"
|
|
33
33
|
* >
|
|
@@ -41,8 +41,8 @@ export interface DialInputPopupProps {
|
|
|
41
41
|
* @param children - The content to render inside the modal when it is opened.
|
|
42
42
|
* @param onOpen - A callback function triggered when the modal open button is clicked.
|
|
43
43
|
* @param [disabled=false] - Whether the input is disabled, preventing user interaction.
|
|
44
|
-
* @param [
|
|
45
|
-
* @param [
|
|
44
|
+
* @param [valueClassNames] - Additional CSS classes applied to the displayed value.
|
|
45
|
+
* @param [inputClassNames] - Additional CSS classes applied to the input container.
|
|
46
46
|
* @param [elementId] - A unique identifier for the input element, useful for accessibility and testing.
|
|
47
47
|
* @param [errorText] - An optional error message displayed below the input when an error state is present.
|
|
48
48
|
* @param [invalid] - Whether the input is in an invalid state, affecting styling. Applyed automatically if errorText is provided.
|