@epam/ai-dial-ui-kit 0.5.0-rc.60 → 0.5.0-rc.61

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.
@@ -16,7 +16,7 @@ import { ConflictResolutionPopupProps } from './components/ConflictResolutionPop
16
16
  import { RenameValidationMessages } from './hooks/use-item-renaming';
17
17
  type GridRow = FileManagerGridRow;
18
18
  export type DialFileManagerConflictResolutionPopupOptions = Omit<ConflictResolutionPopupProps, 'open' | 'onClose' | 'onReplace' | 'onDuplicate' | 'conflictingFiles'>;
19
- export type DialFileManagerDestinationFolderPopupOptions = Pick<DestinationFolderPopupProps, 'setDestinationFolderPath' | 'destinationFolderPath' | 'addFolderLabel' | 'copyLabel' | 'moveLabel' | 'hiddenFilesSwitcherLabel'>;
19
+ export type DialFileManagerDestinationFolderPopupOptions = Pick<DestinationFolderPopupProps, 'setDestinationFolderPath' | 'destinationFolderPath' | 'addFolderLabel' | 'copyLabel' | 'moveLabel' | 'hiddenFilesSwitcherLabel' | 'getCopyHeader' | 'getMoveHeader'>;
20
20
  export interface FileTreeOptions extends Omit<DialFoldersTreeProps, 'items' | 'selectedPath' | 'onItemClick'> {
21
21
  width?: number;
22
22
  title?: string;
@@ -11,6 +11,8 @@ export interface DestinationFolderPopupProps extends DialFileManagerProps {
11
11
  addFolderLabel?: string;
12
12
  hiddenFilesSwitcherLabel?: string;
13
13
  mode?: 'copy' | 'move';
14
+ getCopyHeader?: (itemsCount: number, itemName?: string) => string;
15
+ getMoveHeader?: (itemsCount: number, itemName?: string) => string;
14
16
  }
15
17
  /**
16
18
  * DestinationFolderPopup
@@ -36,7 +38,7 @@ export interface DestinationFolderPopupProps extends DialFileManagerProps {
36
38
  * @param open - Whether the popup is visible
37
39
  * @param onClose - Callback fired when the popup is closed
38
40
  * @param [onConfirm] - Callback fired when the confirm button is clicked
39
- * @param [mode="copy"] - Operation mode: 'copy' or 'move'
41
+ * @param [mode=DestinationFolderMode.Copy] - Operation mode: 'copy' or 'move'
40
42
  * @param [copyLabel="Copy"] - Label for the copy button
41
43
  * @param [moveLabel="Move"] - Label for the move button
42
44
  * @param [addFolderLabel="Add folder"] - Label for the add folder button
@@ -45,5 +47,7 @@ export interface DestinationFolderPopupProps extends DialFileManagerProps {
45
47
  * @param rootItem - Root folder item
46
48
  * @param path - Current path in the File Manager
47
49
  * @param onPathChange - Callback fired when the path changes
50
+ * @param getCopyHeader - Function to get custom header for copy mode
51
+ * @param getMoveHeader - Function to get custom header for move mode
48
52
  */
49
53
  export declare const DestinationFolderPopup: FC<DestinationFolderPopupProps>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-ui-kit",
3
- "version": "0.5.0-rc.60",
3
+ "version": "0.5.0-rc.61",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "A modern UI kit for building AI DIAL interfaces with React",