@epam/ai-dial-ui-kit 0.8.0-rc.9 → 0.8.1
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 +30 -28
- package/dist/dial-ui-kit.es.js +10242 -9649
- package/dist/index.css +2 -2
- package/dist/src/components/Breadcrumb/constants.d.ts +1 -1
- package/dist/src/components/Button/Button.d.ts +4 -0
- package/dist/src/components/EllipsisTooltip/EllipsisTooltip.d.ts +2 -0
- package/dist/src/components/FileManager/FileManager.d.ts +26 -2
- package/dist/src/components/FileManager/FileManagerContext.d.ts +16 -1
- package/dist/src/components/FileManager/components/ConflictResolutionPopup/ConflictResolutionPopup.d.ts +1 -1
- package/dist/src/components/FileManager/components/DialFileManagerItemSummaryCell/DialFileManagerItemSummaryCell.d.ts +10 -5
- package/dist/src/components/FileManager/components/FileManagerBulkActionsToolbar/FileManagerBulkActionsToolbar.d.ts +1 -0
- package/dist/src/components/FileManager/components/FileManagerItemIcon/FileManagerItemIcon.d.ts +4 -1
- package/dist/src/components/FileManager/components/FileManagerItemName/FileManagerItemName.d.ts +5 -0
- package/dist/src/components/FileManager/components/FileManagerItemNameInput/FileManagerItemNameInput.d.ts +2 -0
- package/dist/src/components/FileManager/components/FoldersTree/FoldersTree.d.ts +4 -0
- package/dist/src/components/FileManager/hooks/use-bulk-actions.d.ts +4 -1
- package/dist/src/components/FileManager/hooks/use-conflict-resolution.d.ts +1 -0
- package/dist/src/components/FileManager/hooks/use-file-clipboard.d.ts +1 -0
- package/dist/src/components/FileManager/hooks/use-file-manager-columns.d.ts +4 -0
- package/dist/src/components/FileManager/hooks/use-file-upload.d.ts +1 -0
- package/dist/src/components/FileManager/hooks/use-grid-context-menu.d.ts +6 -1
- package/dist/src/components/FileManager/hooks/use-item-renaming.d.ts +1 -0
- package/dist/src/components/FileManager/hooks/use-new-actions.d.ts +3 -1
- package/dist/src/components/FileManager/utils.d.ts +6 -0
- package/dist/src/components/FileName/FileName.d.ts +10 -0
- package/dist/src/components/FolderName/FolderName.d.ts +9 -1
- package/dist/src/components/Grid/Grid.d.ts +3 -1
- package/dist/src/components/Grid/renderers/DateCellRenderer.d.ts +1 -0
- package/dist/src/components/Input/Button/constants.d.ts +1 -1
- package/dist/src/components/LoadFileArea/EmptyFileArea.d.ts +3 -0
- package/dist/src/components/LoadFileArea/LoadFileAreaField.d.ts +3 -1
- package/dist/src/components/Popup/Popup.d.ts +4 -0
- package/dist/src/components/SharedEntityIndicator/SharedEntityIndicator.d.ts +2 -0
- package/dist/src/components/TagInput/TagInput.d.ts +2 -0
- package/dist/src/constants/icon.d.ts +5 -0
- package/dist/src/constants/validation.d.ts +4 -0
- package/dist/src/index.d.ts +3 -0
- package/dist/src/types/file-manager.d.ts +3 -1
- package/package.json +9 -8
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
1
2
|
import { ColDef } from 'ag-grid-community';
|
|
2
3
|
import { DialFile } from '../../../models/file';
|
|
3
4
|
import { FileManagerRenameTriggerView, FileManagerColumnKey } from '../../../types/file-manager';
|
|
@@ -10,6 +11,9 @@ export interface FileManagerGridContext {
|
|
|
10
11
|
renameTriggerView: FileManagerRenameTriggerView;
|
|
11
12
|
sharedByMePaths?: Set<string>;
|
|
12
13
|
selectedPaths?: Set<string>;
|
|
14
|
+
disabledRowIds?: Set<string>;
|
|
15
|
+
forbiddenSymbolsRegExp?: RegExp;
|
|
16
|
+
forbiddenSymbolsTooltip?: ReactNode;
|
|
13
17
|
cancelFolderCreation: () => void;
|
|
14
18
|
saveFolderCreation: (name: string) => Promise<void>;
|
|
15
19
|
validateFolderName: (name: string) => string | null;
|
|
@@ -43,5 +43,6 @@ export declare const useFileUpload: ({ onUploadFiles, onValidateUpload, maxFileS
|
|
|
43
43
|
closeUploadConflictResolution: () => void;
|
|
44
44
|
handleUploadConflictReplace: () => void;
|
|
45
45
|
handleUploadConflictDuplicate: () => void;
|
|
46
|
+
handleUploadConflictCancel: () => void;
|
|
46
47
|
handleUploadConflictDecideForEach: (decisions: FileConflictDecision[]) => void;
|
|
47
48
|
};
|
|
@@ -16,6 +16,7 @@ export interface UseGridContextMenuProps {
|
|
|
16
16
|
[DialFileManagerActions.Move]?: string;
|
|
17
17
|
[DialFileManagerActions.Info]?: string;
|
|
18
18
|
[DialFileManagerActions.Unshare]?: string;
|
|
19
|
+
[DialFileManagerActions.RemoveAccess]?: string;
|
|
19
20
|
};
|
|
20
21
|
onDuplicate: (file: DialFile) => void;
|
|
21
22
|
onCopy: (file: DialFile) => void;
|
|
@@ -25,12 +26,16 @@ export interface UseGridContextMenuProps {
|
|
|
25
26
|
onDelete: (file: DialFile, parentFolderPath: string) => void;
|
|
26
27
|
onInfo: (file: DialFile) => void;
|
|
27
28
|
onUnshare: (file: DialFile) => void;
|
|
29
|
+
onRemoveAccess?: (file: DialFile) => void;
|
|
28
30
|
sharedWithMeIds?: string[];
|
|
31
|
+
sharedByMePaths?: Set<string>;
|
|
29
32
|
onAddSibling?: (file: DialFile) => void;
|
|
30
33
|
onAddChild?: (file: DialFile) => void;
|
|
31
34
|
onManagePermissions?: (path?: string) => void;
|
|
32
35
|
onPreview?: (path?: string) => void;
|
|
33
36
|
previewExtensions?: string[];
|
|
34
37
|
isRenameFileAvailable?: boolean;
|
|
38
|
+
isDuplicateFolderAvailable?: boolean;
|
|
39
|
+
forbiddenSymbolsRegExp?: RegExp;
|
|
35
40
|
}
|
|
36
|
-
export declare const useGridContextMenu: ({ actionLabels, onDuplicate, onCopy, onMove, onDownload, onRename, onDelete, onInfo, onUnshare, sharedWithMeIds, onAddSibling, onAddChild, onManagePermissions, onPreview, previewExtensions, isRenameFileAvailable, }: UseGridContextMenuProps) => (file: DialFile) => DropdownItem[];
|
|
41
|
+
export declare const useGridContextMenu: ({ actionLabels, onDuplicate, onCopy, onMove, onDownload, onRename, onDelete, onInfo, onUnshare, onRemoveAccess, sharedWithMeIds, sharedByMePaths, onAddSibling, onAddChild, onManagePermissions, onPreview, previewExtensions, isRenameFileAvailable, isDuplicateFolderAvailable, forbiddenSymbolsRegExp, }: UseGridContextMenuProps) => (file: DialFile) => DropdownItem[];
|
|
@@ -3,6 +3,7 @@ import { DialCopiedItem } from '../../../models/file-manager';
|
|
|
3
3
|
export interface RenameValidationMessages {
|
|
4
4
|
emptyName?: string;
|
|
5
5
|
duplicateName?: string;
|
|
6
|
+
hiddenItemWarning?: string;
|
|
6
7
|
}
|
|
7
8
|
export declare const useItemRenaming: ({ items, onRenameValidate, validationMessages, onMoveToFiles, }: {
|
|
8
9
|
items?: DialFile[];
|
|
@@ -6,11 +6,13 @@ export interface UseNewActionsProps {
|
|
|
6
6
|
uploadFiles?: NewAction;
|
|
7
7
|
newFolder?: NewAction;
|
|
8
8
|
uploadArchive?: NewAction;
|
|
9
|
+
newItem?: NewAction;
|
|
9
10
|
};
|
|
10
11
|
currentFolder?: DialFile;
|
|
11
12
|
onUploadFiles?: () => void;
|
|
12
13
|
onCreateFolder?: () => void;
|
|
13
14
|
onUploadArchive?: () => void;
|
|
15
|
+
onCreateNewItem: () => void;
|
|
14
16
|
isNewButtonDisabled?: boolean;
|
|
15
17
|
}
|
|
16
18
|
export interface UseNewActionsResult {
|
|
@@ -18,4 +20,4 @@ export interface UseNewActionsResult {
|
|
|
18
20
|
isNewButtonVisible: boolean;
|
|
19
21
|
isNewButtonDisabled: boolean;
|
|
20
22
|
}
|
|
21
|
-
export declare const useNewActions: ({ newActions, currentFolder, onUploadFiles, onCreateFolder, onUploadArchive, isNewButtonDisabled: isNewButtonDisabledExternal, }: UseNewActionsProps) => UseNewActionsResult;
|
|
23
|
+
export declare const useNewActions: ({ newActions, currentFolder, onUploadFiles, onCreateFolder, onUploadArchive, onCreateNewItem, isNewButtonDisabled: isNewButtonDisabledExternal, }: UseNewActionsProps) => UseNewActionsResult;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { DialFile } from '../../models/file';
|
|
2
2
|
import { DialFileAcceptType } from '../../models/file-manager';
|
|
3
|
+
import { ReactNode } from 'react';
|
|
3
4
|
export declare const findNodeByPath: (nodes: DialFile[] | undefined, path: string) => DialFile | undefined;
|
|
4
5
|
export declare const findFolderForPath: (root: DialFile[] | undefined, path?: string) => DialFile | undefined;
|
|
5
6
|
export declare const normalizeToLowerCase: (input?: string) => string;
|
|
@@ -39,3 +40,8 @@ export declare const formatBytes: (bytes?: number) => string;
|
|
|
39
40
|
*/
|
|
40
41
|
export declare const formatDate: (date?: string, locale?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions) => string;
|
|
41
42
|
export declare function isFileAccepted(allowedFileTypes: DialFileAcceptType[] | undefined, contentType: string, fileName?: string): boolean;
|
|
43
|
+
export declare const cleanForbiddenSymbolsRegExp: (forbiddenSymbolsRegExp?: RegExp) => RegExp | undefined;
|
|
44
|
+
export declare function getForbiddenSymbolsTooltip(item: {
|
|
45
|
+
name: string;
|
|
46
|
+
isFolder: boolean;
|
|
47
|
+
}, forbiddenSymbolsRegExp?: RegExp, forbiddenSymbolsTooltip?: ReactNode): ReactNode | undefined;
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import { FC, ReactNode } from 'react';
|
|
2
2
|
export interface DialFileNameProps {
|
|
3
3
|
name: string;
|
|
4
|
+
fileExtension?: string;
|
|
4
5
|
className?: string;
|
|
5
6
|
shared?: boolean;
|
|
6
7
|
iconSize?: number;
|
|
7
8
|
details?: ReactNode;
|
|
8
9
|
sharedIndicatorClassName?: string;
|
|
10
|
+
sharedIndicatorTooltip?: ReactNode;
|
|
11
|
+
hideTooltip?: boolean;
|
|
12
|
+
isInvalidName?: boolean;
|
|
13
|
+
tooltipContent?: ReactNode;
|
|
9
14
|
}
|
|
10
15
|
/**
|
|
11
16
|
* Component to display a file name with a file icon and shared indicator.
|
|
@@ -32,5 +37,10 @@ export interface DialFileNameProps {
|
|
|
32
37
|
* @param iconSize - Icon size in px. Default: BASE_ICON_SIZE.
|
|
33
38
|
* @param details - Optional metadata block displayed under the file name (e.g., size, modified date).
|
|
34
39
|
* @param sharedIndicatorClassName - Additional CSS classes for the shared indicator.
|
|
40
|
+
* @param sharedIndicatorTooltip - Custom tooltip content for the shared indicator; defaults to "Shared"
|
|
41
|
+
* @param isInvalidName - If true, applies disabled styling to indicate the file name has invalid characters.
|
|
42
|
+
* @param tooltipContent - Custom tooltip content to show when the name is truncated; defaults to showing the full name.
|
|
43
|
+
|
|
44
|
+
|
|
35
45
|
*/
|
|
36
46
|
export declare const DialFileName: FC<DialFileNameProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
2
|
export interface DialFolderNameProps {
|
|
3
3
|
name: string;
|
|
4
4
|
shared?: boolean;
|
|
@@ -6,6 +6,10 @@ export interface DialFolderNameProps {
|
|
|
6
6
|
iconSize?: number;
|
|
7
7
|
className?: string;
|
|
8
8
|
sharedIndicatorClassName?: string;
|
|
9
|
+
sharedIndicatorTooltip?: ReactNode;
|
|
10
|
+
hideTooltip?: boolean;
|
|
11
|
+
isInvalidName?: boolean;
|
|
12
|
+
tooltipContent?: ReactNode;
|
|
9
13
|
}
|
|
10
14
|
/**
|
|
11
15
|
* Component to display a folder name with a folder icon and shared indicator.
|
|
@@ -22,5 +26,9 @@ export interface DialFolderNameProps {
|
|
|
22
26
|
* @param loading - If true, shows loading state. Default: false.
|
|
23
27
|
* @param iconSize - Icon size in px. Default: BASE_ICON_SIZE.
|
|
24
28
|
* @param sharedIndicatorClassName - Additional CSS classes for the shared indicator
|
|
29
|
+
* @param sharedIndicatorTooltip - Custom tooltip content for the shared indicator; defaults to "Shared"
|
|
30
|
+
* @param isInvalidName - If true, applies disabled styling to indicate the file name has invalid characters.
|
|
31
|
+
* @param hideTooltip - If true, disables the tooltip even if the name is truncated.
|
|
32
|
+
* @param tooltipContent - Custom tooltip content to show when the name is truncated; defaults to showing the full name.
|
|
25
33
|
*/
|
|
26
34
|
export declare const DialFolderName: FC<DialFolderNameProps>;
|
|
@@ -25,6 +25,7 @@ export interface DialGridProps<T extends object = Record<string, unknown>> {
|
|
|
25
25
|
wrapperBorder?: boolean;
|
|
26
26
|
withoutHeaderBorders?: boolean;
|
|
27
27
|
selectionMode?: GridSelectionMode;
|
|
28
|
+
allowDisabledContextMenu?: boolean;
|
|
28
29
|
}
|
|
29
30
|
/**
|
|
30
31
|
* DialGrid — A feature-rich data grid wrapper built on ag-Grid with dark theme support.
|
|
@@ -114,5 +115,6 @@ export interface DialGridProps<T extends object = Record<string, unknown>> {
|
|
|
114
115
|
* @param [wrapperBorder=true] - Whether to apply a border around the grid container
|
|
115
116
|
* @param [withoutHeaderBorders=false] - Whether to hide the header row borders
|
|
116
117
|
* @param [selectionMode] - Could be GridSelectionMode.MULTIPLE or GridSelectionMode.SINGLE to enable selection column
|
|
118
|
+
* @param [allowDisabledContextMenu] - Enables context menu actions even if row itself is disabled for selection
|
|
117
119
|
*/
|
|
118
|
-
export declare const DialGrid: <T extends object>({ columnDefs, rowData, additionalGridOptions, getContextMenuItems, className, ariaLabel, wrapCustomCellRenderers, disabledRowIds, selectedRowIds, selectionOnHover, onSelectionChange, onGridApiChange, getRowId, alternateOddRowColors, filterPlaceholder, emptyStateIcon, emptyStateTitle, emptyStateDescription, loading, wrapperBorder, withoutHeaderBorders, selectionMode, }: DialGridProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
120
|
+
export declare const DialGrid: <T extends object>({ columnDefs, rowData, additionalGridOptions, getContextMenuItems, className, ariaLabel, wrapCustomCellRenderers, disabledRowIds, selectedRowIds, selectionOnHover, onSelectionChange, onGridApiChange, getRowId, alternateOddRowColors, filterPlaceholder, emptyStateIcon, emptyStateTitle, emptyStateDescription, loading, wrapperBorder, withoutHeaderBorders, allowDisabledContextMenu, selectionMode, }: DialGridProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const inputButtonClassName = "bg-layer-4
|
|
1
|
+
export declare const inputButtonClassName = "bg-layer-4 flex items-center justify-center enabled:text-secondary enabled:hover:text-accent-primary enabled:active:bg-controls-accent-primary-alpha-active enabled:hover:bg-accent-primary-alpha enabled:active:text-accent-primary";
|
|
@@ -6,12 +6,15 @@ export interface DialEmptyFileAreaProps {
|
|
|
6
6
|
acceptTypes: string;
|
|
7
7
|
maxFilesCount?: number;
|
|
8
8
|
maxFileSize?: number;
|
|
9
|
+
maxMultiFilesSize?: number;
|
|
9
10
|
multiple?: boolean;
|
|
10
11
|
fileFormatError?: string;
|
|
11
12
|
fileCountError?: string;
|
|
12
13
|
fileSizeError?: string;
|
|
14
|
+
multiFilesSizeError?: string;
|
|
13
15
|
getIsFileFormatError?: (fileItems: File[] | DataTransferItem[]) => boolean;
|
|
14
16
|
getIsFileSizeError?: (fileItems: File[] | DataTransferItem[]) => boolean;
|
|
17
|
+
getIsMultiFilesSizeError?: (fileItems: File[] | DataTransferItem[]) => boolean;
|
|
15
18
|
onChange: (files: File[]) => void;
|
|
16
19
|
}
|
|
17
20
|
/**
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
2
|
import { DialLoadFileAreaProps } from './LoadFileArea';
|
|
3
3
|
export interface DialLoadFileAreaFieldProps extends DialLoadFileAreaProps {
|
|
4
4
|
fieldTitle: string;
|
|
5
5
|
elementId: string;
|
|
6
6
|
deleteAllButtonLabel?: string;
|
|
7
7
|
addButtonLabel?: string;
|
|
8
|
+
additionalActionButtons?: ReactNode;
|
|
8
9
|
}
|
|
9
10
|
/**
|
|
10
11
|
* A composite file upload field that combines a label, file list management,
|
|
@@ -46,6 +47,7 @@ export interface DialLoadFileAreaFieldProps extends DialLoadFileAreaProps {
|
|
|
46
47
|
* @param {string} [props.acceptTypes] - Comma-separated list of allowed MIME types or file extensions.
|
|
47
48
|
* @param {string} [props.deleteAllButtonLabel] - Label for the "Delete All" button shown when files exist.
|
|
48
49
|
* @param {string} [props.addButtonLabel] - Label for the "Add" button used to select additional files.
|
|
50
|
+
* @param {ReactNode} [props.additionalActionButtons] - Optional custom buttons/content rendered next to default action buttons.
|
|
49
51
|
* @param {object} [props.props] - Additional props passed to the underlying `DialLoadFileArea`.
|
|
50
52
|
*
|
|
51
53
|
* @returns {JSX.Element} A file upload field with label, action buttons, and a drag-and-drop area.
|
|
@@ -9,12 +9,14 @@ export interface DialPopupProps {
|
|
|
9
9
|
titleClassName?: string;
|
|
10
10
|
headerClassName?: string;
|
|
11
11
|
dividers?: boolean;
|
|
12
|
+
dividerFooter?: boolean;
|
|
12
13
|
children?: ReactNode;
|
|
13
14
|
footer?: ReactNode;
|
|
14
15
|
onClose?: (e?: MouseEvent<HTMLButtonElement> | null) => void;
|
|
15
16
|
size?: PopupSize;
|
|
16
17
|
hideClose?: boolean;
|
|
17
18
|
closeOnOutsideClick?: boolean;
|
|
19
|
+
preventKeyboardOnOpen?: boolean;
|
|
18
20
|
}
|
|
19
21
|
/**
|
|
20
22
|
* An accessible modal dialog component using Floating UI.
|
|
@@ -48,11 +50,13 @@ export interface DialPopupProps {
|
|
|
48
50
|
* @param [titleClassName] - Additional CSS classes applied to the title element
|
|
49
51
|
* @param [headerClassName] - Additional CSS classes applied to the popup header container
|
|
50
52
|
* @param [dividers=true] - Whether to render separators between sections
|
|
53
|
+
* @param [dividerFooter=true] - Whether to render a divider above the footer when `dividers` is true
|
|
51
54
|
* @param [children] - Body content
|
|
52
55
|
* @param [footer] - Footer area for actions
|
|
53
56
|
* @param [onClose] - Callback fired when the popup requests to close
|
|
54
57
|
* @param [size=PopupSize.Md] - Sets the max-width of the popup
|
|
55
58
|
* @param [hideClose=false] Whether the close button is hidden in the header (default: false)
|
|
56
59
|
* @param [closeOnOutsideClick=true] - Whether the popup closes when clicking outside (default: true)
|
|
60
|
+
* @param [preventKeyboardOnOpen=false] - When true, initial focus goes to a non-input guard to avoid opening the virtual keyboard on mobile
|
|
57
61
|
*/
|
|
58
62
|
export declare const DialPopup: FC<DialPopupProps>;
|
|
@@ -5,6 +5,7 @@ export interface DialSharedEntityIndicatorProps {
|
|
|
5
5
|
stroke?: number;
|
|
6
6
|
className?: string;
|
|
7
7
|
containerClassName?: string;
|
|
8
|
+
sharedIndicatorTooltip?: ReactNode;
|
|
8
9
|
}
|
|
9
10
|
/**
|
|
10
11
|
* A compact icon-only indicator to denote a "shared" entity.
|
|
@@ -22,6 +23,7 @@ export interface DialSharedEntityIndicatorProps {
|
|
|
22
23
|
* @param [className] - Additional Tailwind classes applied to the icon
|
|
23
24
|
* @param [containerClassName] - Additional Tailwind classes appended to the container
|
|
24
25
|
* @param [stroke=1.5] - Stroke width for the icon
|
|
26
|
+
* @param [sharedIndicatorTooltip] - Custom tooltip content, defaults to "Shared"
|
|
25
27
|
*
|
|
26
28
|
*/
|
|
27
29
|
export declare const DialSharedEntityIndicator: FC<DialSharedEntityIndicatorProps>;
|
|
@@ -8,6 +8,7 @@ export interface DialTagInputProps extends DialLabelProps {
|
|
|
8
8
|
errorText?: string;
|
|
9
9
|
invalid?: boolean;
|
|
10
10
|
disabled?: boolean;
|
|
11
|
+
collapseTagOverflow?: boolean;
|
|
11
12
|
onChange?: (tags: string[]) => void;
|
|
12
13
|
}
|
|
13
14
|
/**
|
|
@@ -36,6 +37,7 @@ export interface DialTagInputProps extends DialLabelProps {
|
|
|
36
37
|
* @param [optional=false] - Whether the field is optional (renders an “optional” indicator).
|
|
37
38
|
* @param [invalid=false] - Whether the field should be styled as invalid.
|
|
38
39
|
* @param [disabled=false] - Whether the input and remove buttons are disabled.
|
|
40
|
+
* @param [collapseTagOverflow=false] - When true, keeps tags on one line and shows `+N` for overflow.
|
|
39
41
|
* @param [onChange] - Callback fired whenever the tag list changes (tag added or removed).
|
|
40
42
|
*/
|
|
41
43
|
export declare const DialTagInput: FC<DialTagInputProps>;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -56,6 +56,7 @@ export { DialLoadFileAreaField } from './components/LoadFileArea/LoadFileAreaFie
|
|
|
56
56
|
export { DialDropdown } from './components/Dropdown/Dropdown';
|
|
57
57
|
export { DialButtonDropdown } from './components/ButtonDropdown/ButtonDropdown';
|
|
58
58
|
export { DialFileManager } from './components/FileManager/FileManager';
|
|
59
|
+
export type { GridOptions, ToolbarOptions, BulkActionsToolbarOptions, } from './components/FileManager/FileManager';
|
|
59
60
|
export { DialDestinationFolderPopup } from './components/FileManager/components/DestinationFolderPopup/DestinationFolderPopup';
|
|
60
61
|
export { AlertVariant } from './types/alert';
|
|
61
62
|
export { ButtonVariant, ButtonAppearance } from './types/button';
|
|
@@ -92,3 +93,5 @@ export { GridSelectionMode } from './models/selection-mode';
|
|
|
92
93
|
export { mergeClasses } from './utils/merge-classes';
|
|
93
94
|
export { wrapInRootFolder } from './utils/flat-to-hierarchy-convertor.ts';
|
|
94
95
|
export { NAME_COLUMN, SIZE_COLUMN, UPDATED_AT_COLUMN, } from './constants/file-grid-columns';
|
|
96
|
+
export type { DIAL_ICON_SIZE } from './constants/icon.ts';
|
|
97
|
+
export { NOT_ALLOWED_SYMBOLS, NOT_ALLOWED_SPACES, NOT_ALLOWED_SYMBOLS_REGEXP, NOT_ALLOWED_SPACES_REGEXP, } from './constants/validation.ts';
|
|
@@ -14,6 +14,7 @@ export declare enum DialFileManagerActions {
|
|
|
14
14
|
Rename = "rename",
|
|
15
15
|
Info = "info",
|
|
16
16
|
Unshare = "unshare",
|
|
17
|
+
RemoveAccess = "removeAccess",
|
|
17
18
|
ManagePermissions = "managePermissions",
|
|
18
19
|
Preview = "preview"
|
|
19
20
|
}
|
|
@@ -42,5 +43,6 @@ export declare enum FileManagerColumnKey {
|
|
|
42
43
|
Author = "author",
|
|
43
44
|
Owner = "owner",
|
|
44
45
|
Path = "path",
|
|
45
|
-
Actions = "__actions"
|
|
46
|
+
Actions = "__actions",
|
|
47
|
+
Version = "version"
|
|
46
48
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epam/ai-dial-ui-kit",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"description": "A modern UI kit for building AI DIAL interfaces with React",
|
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
"lint": "eslint . --ext ts,tsx --fix --report-unused-disable-directives --max-warnings 0",
|
|
38
38
|
"format": "prettier --check .",
|
|
39
39
|
"format-fix": "prettier --write .",
|
|
40
|
+
"typecheck": "tsc --noEmit",
|
|
40
41
|
"preview": "vite preview",
|
|
41
42
|
"storybook": "concurrently \"npm run storybook:css\" \"storybook dev -p 6006\"",
|
|
42
43
|
"storybook:css": "tailwindcss -w -i ./src/styles/tailwind-entry.scss -o ./src/index.css",
|
|
@@ -81,10 +82,10 @@
|
|
|
81
82
|
"@eslint/compat": "^1.3.1",
|
|
82
83
|
"@eslint/eslintrc": "^3.3.1",
|
|
83
84
|
"@eslint/js": "^9.31.0",
|
|
84
|
-
"@storybook/addon-a11y": "^10.
|
|
85
|
-
"@storybook/addon-docs": "^10.
|
|
86
|
-
"@storybook/addon-vitest": "^10.
|
|
87
|
-
"@storybook/react-vite": "^10.
|
|
85
|
+
"@storybook/addon-a11y": "^10.2.17",
|
|
86
|
+
"@storybook/addon-docs": "^10.2.17",
|
|
87
|
+
"@storybook/addon-vitest": "^10.2.17",
|
|
88
|
+
"@storybook/react-vite": "^10.2.17",
|
|
88
89
|
"@testing-library/dom": "^10.4.0",
|
|
89
90
|
"@testing-library/react": "^16.3.0",
|
|
90
91
|
"@types/jsdom": "^21.1.7",
|
|
@@ -103,7 +104,7 @@
|
|
|
103
104
|
"eslint-plugin-react": "7.37.5",
|
|
104
105
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
105
106
|
"eslint-plugin-react-refresh": "^0.4.20",
|
|
106
|
-
"eslint-plugin-storybook": "^10.
|
|
107
|
+
"eslint-plugin-storybook": "^10.2.17",
|
|
107
108
|
"eslint-plugin-tailwindcss": "^3.18.2",
|
|
108
109
|
"globals": "^16.3.0",
|
|
109
110
|
"husky": "^9.1.7",
|
|
@@ -114,8 +115,8 @@
|
|
|
114
115
|
"prettier": "3.6.2",
|
|
115
116
|
"sass": "^1.89.2",
|
|
116
117
|
"sass-embedded": "^1.89.2",
|
|
117
|
-
"storybook": "^10.
|
|
118
|
-
"storybook-addon-pseudo-states": "^10.
|
|
118
|
+
"storybook": "^10.2.17",
|
|
119
|
+
"storybook-addon-pseudo-states": "^10.2.17",
|
|
119
120
|
"tailwindcss": "^3.4.17",
|
|
120
121
|
"typescript": "~5.9.3",
|
|
121
122
|
"typescript-eslint": "^8.48.0",
|