@epam/ai-dial-ui-kit 0.5.0-rc.82 → 0.5.0-rc.84

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.
@@ -1,10 +1,12 @@
1
- import { FC, ReactNode, MouseEvent } from 'react';
1
+ import { FC, MouseEvent, ReactNode } from 'react';
2
2
  import { AlertVariant } from '../../types/alert';
3
3
  export interface DialAlertProps {
4
4
  variant?: AlertVariant;
5
5
  message: string | ReactNode;
6
6
  className?: string;
7
7
  closable?: boolean;
8
+ iconSize?: number;
9
+ iconStroke?: number;
8
10
  onClose?: (e: MouseEvent<HTMLButtonElement>) => void;
9
11
  }
10
12
  /**
@@ -37,6 +39,8 @@ export interface DialAlertProps {
37
39
  * @param message - Message text to display inside the alert
38
40
  * @param [className] - Additional CSS classes applied to the alert container
39
41
  * @param [closable=false] - Whether the alert has a close button
42
+ * @param [iconSize=24] - Size of the icon displayed in the alert
43
+ * @param [iconStroke=2] - Stroke width of the icon displayed in the alert
40
44
  * @param [onClose] - Callback fired when the close button is clicked
41
45
  */
42
46
  export declare const DialAlert: FC<DialAlertProps>;
@@ -1,5 +1,8 @@
1
1
  import { AlertVariant } from '../../types/alert';
2
- import { ReactNode } from 'react';
3
- export declare const variantIcons: Record<AlertVariant, ReactNode>;
2
+ import { ReactNode } from '@tabler/icons-react';
3
+ export declare const variantIcons: (props: {
4
+ size: number;
5
+ stroke: number;
6
+ }) => Record<AlertVariant, ReactNode>;
4
7
  export declare const alertVariantClassNameMap: Record<AlertVariant, string>;
5
8
  export declare const alertBaseClassName = "items-center justify-between gap-2 p-3 border border-solid dial-small-150 rounded flex";
@@ -102,5 +102,11 @@ export interface FileManagerContextValue {
102
102
  handleConflictReplace: () => void;
103
103
  handleConflictDuplicate: () => void;
104
104
  handleConflictDecideForEach: (decisions: FileConflictDecision[]) => void;
105
+ uploadConflictingFiles: DialFile[];
106
+ uploadConflictResolutionOpen: boolean;
107
+ closeUploadConflictResolution: () => void;
108
+ handleUploadConflictReplace: () => void;
109
+ handleUploadConflictDuplicate: () => void;
110
+ handleUploadConflictDecideForEach: (decisions: FileConflictDecision[]) => void;
105
111
  }
106
112
  export declare const FileManagerContext: import('react').Context<FileManagerContextValue | undefined>;
@@ -1,6 +1,7 @@
1
1
  import { DragEvent } from 'react';
2
2
  import { DialFile } from '../../../models/file';
3
3
  import { DialUploadFileItem } from '../../../models/file-manager';
4
+ import { FileConflictDecision } from '../components/ConflictResolutionPopup/ConflictResolutionPopup';
4
5
  export interface FileUploadValidationResult {
5
6
  valid: boolean;
6
7
  message?: string;
@@ -31,4 +32,12 @@ export declare const useFileUpload: ({ onUploadFiles, onValidateUpload, maxFileS
31
32
  openFileDialog: (destinationFolder: string, existingFiles: DialFile[]) => void;
32
33
  openArchiveDialog: (destinationFolder: string, existingFiles: DialFile[]) => void;
33
34
  fileInputRef: import('react').RefObject<HTMLInputElement | null>;
35
+ uploadConflictingFiles: DialFile[];
36
+ uploadConflictResolutionOpen: boolean;
37
+ hasActiveUploadConflictRef: import('react').RefObject<boolean>;
38
+ openUploadConflictResolution: (files: DialFile[]) => void;
39
+ closeUploadConflictResolution: () => void;
40
+ handleUploadConflictReplace: () => void;
41
+ handleUploadConflictDuplicate: () => void;
42
+ handleUploadConflictDecideForEach: (decisions: FileConflictDecision[]) => void;
34
43
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-ui-kit",
3
- "version": "0.5.0-rc.82",
3
+ "version": "0.5.0-rc.84",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "A modern UI kit for building AI DIAL interfaces with React",