gantri-components 2.159.0-beta.1 → 2.159.0-beta.3

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,6 +1,6 @@
1
1
  import { FileUploaderProps } from '../../file-uploader.types';
2
2
  import { OptionalValues } from '../../../../types/common';
3
- export type ConfiguredCustomContentProps = OptionalValues<Required<Pick<FileUploaderProps, 'CustomContent' | 'enableCopyUrl' | 'fileName' | 'fileUrl' | 'isDisabled' | 'isDraggable' | 'isReplaceable' | 'processing' | 'SortableDragHandleWrapper'>>> & {
3
+ export type ConfiguredCustomContentProps = OptionalValues<Required<Pick<FileUploaderProps, 'CustomContent' | 'enableCopyUrl' | 'fileName' | 'fileUrl' | 'hideDeleteIcon' | 'isDisabled' | 'isDraggable' | 'isReplaceable' | 'processing' | 'SortableDragHandleWrapper'>>> & {
4
4
  deleteFile: () => Promise<void>;
5
5
  handleOpenFileSelect: () => void;
6
6
  isDraggingOver: boolean;
@@ -1,6 +1,6 @@
1
1
  import { OptionalValues } from '../../../../types';
2
2
  import { FileUploaderProps, DeleteFile } from '../../file-uploader.types';
3
- export type FileUploaderLinkVariantProps = OptionalValues<Required<Pick<FileUploaderProps, 'enableCopyUrl' | 'fileName' | 'fileUrl' | 'isDisabled' | 'isReplaceable' | 'onClick'>>> & {
3
+ export type FileUploaderLinkVariantProps = OptionalValues<Required<Pick<FileUploaderProps, 'enableCopyUrl' | 'fileName' | 'fileUrl' | 'hideDeleteIcon' | 'isDisabled' | 'isReplaceable' | 'onClick'>>> & {
4
4
  deleteFile: DeleteFile;
5
5
  handleOpenFileSelect: () => void;
6
6
  };
@@ -1,6 +1,6 @@
1
1
  import { OptionalValues } from '../../../../types';
2
2
  import { DeleteFile, FileUploaderProps } from '../../file-uploader.types';
3
- export type FileUploaderPlainVariantProps = OptionalValues<Required<Pick<FileUploaderProps, 'enableCopyUrl' | 'fileName' | 'fileUrl' | 'isDisabled' | 'isReplaceable' | 'onClick'>>> & {
3
+ export type FileUploaderPlainVariantProps = OptionalValues<Required<Pick<FileUploaderProps, 'enableCopyUrl' | 'fileName' | 'fileUrl' | 'hideDeleteIcon' | 'isDisabled' | 'isReplaceable' | 'onClick'>>> & {
4
4
  deleteFile: DeleteFile;
5
5
  handleOpenFileSelect: () => void;
6
6
  };
@@ -1,6 +1,6 @@
1
1
  import { OptionalValues } from '../../../../../../types/common';
2
2
  import { DeleteFile, FileUploaderProps } from '../../../../file-uploader.types';
3
- export type ThumbnailRenderProps = OptionalValues<Required<Pick<FileUploaderProps, 'enableCopyUrl' | 'fileUrl' | 'handleRecoverFile' | 'isDisabled' | 'isDraggable' | 'isReplaceable' | 'onClick' | 'SortableDragHandleWrapper' | 'thumbnailSize' | 'transformThumbnailSrc'>>> & {
3
+ export type ThumbnailRenderProps = OptionalValues<Required<Pick<FileUploaderProps, 'enableCopyUrl' | 'fileUrl' | 'handleRecoverFile' | 'hideDeleteIcon' | 'isDisabled' | 'isDraggable' | 'isReplaceable' | 'onClick' | 'SortableDragHandleWrapper' | 'thumbnailSize' | 'transformThumbnailSrc'>>> & {
4
4
  deleteFile: DeleteFile;
5
5
  handleOpenFileSelect: () => void;
6
6
  };
@@ -1,6 +1,6 @@
1
1
  import { FileUploaderProps, DeleteFile } from '../../file-uploader.types';
2
2
  import { OptionalValues } from '../../../../types/common';
3
- export type FileUploaderThumbnailVariantProps = OptionalValues<Required<Pick<FileUploaderProps, 'disabledDescription' | 'enableCopyUrl' | 'fileUrl' | 'handleRecoverFile' | 'isActive' | 'isDisabled' | 'isDraggable' | 'isReplaceable' | 'onClick' | 'processing' | 'SortableDragHandleWrapper' | 'thumbnailSize' | 'transformThumbnailSrc'>>> & {
3
+ export type FileUploaderThumbnailVariantProps = OptionalValues<Required<Pick<FileUploaderProps, 'disabledDescription' | 'enableCopyUrl' | 'fileUrl' | 'handleRecoverFile' | 'hideDeleteIcon' | 'isActive' | 'isDisabled' | 'isDraggable' | 'isReplaceable' | 'onClick' | 'processing' | 'SortableDragHandleWrapper' | 'thumbnailSize' | 'transformThumbnailSrc'>>> & {
4
4
  deleteFile: DeleteFile;
5
5
  handleOpenFileSelect: () => void;
6
6
  isDraggingOver: boolean;
@@ -2,5 +2,6 @@ import { OptionalValues } from '../../../../types/common';
2
2
  import { DeleteFile } from '../../file-uploader.types';
3
3
  export type IconDeleteProps = OptionalValues<{
4
4
  deleteFile: DeleteFile;
5
+ hideDeleteIcon: boolean | undefined;
5
6
  isDisabled: boolean;
6
7
  }>;
@@ -5,6 +5,7 @@ export type UploaderActionIconsProps = OptionalValues<{
5
5
  enableCopyUrl: boolean;
6
6
  fileUrl: string;
7
7
  handleOpenFileSelect: () => void;
8
+ hideDeleteIcon: boolean;
8
9
  isDisabled: boolean;
9
10
  isReplaceable: boolean;
10
11
  }>;
@@ -14,6 +14,7 @@ export type FileUploaderProps = {
14
14
  handleDeleteFile: HandleDeleteFile;
15
15
  /** Provides a method for potential file recovery. */
16
16
  handleRecoverFile?: (fileUrl: string) => Promise<void>;
17
+ hideDeleteIcon?: boolean;
17
18
  inputName?: string;
18
19
  isActive?: boolean;
19
20
  isDisabled?: boolean;
@@ -77,13 +78,16 @@ export type ValidateFile = (file: SelectedFileDetails) => Promise<string | undef
77
78
  export type HandleFileSelected = (validFile: SelectedFileDetails) => Promise<any>;
78
79
  export type FileUploaderCustomContent = (props: {
79
80
  IconCopyUrl: () => JSX.Element;
80
- IconDelete: () => JSX.Element;
81
+ IconDelete: (props: {
82
+ hideDeleteIcon: boolean | undefined;
83
+ }) => JSX.Element;
81
84
  IconDrag: () => JSX.Element;
82
85
  IconReplace: () => JSX.Element;
83
86
  UploaderActionIcons: () => JSX.Element;
84
87
  fileName: string;
85
88
  fileUrl: string;
86
89
  handleOpenFileSelect: () => void;
90
+ hideDeleteIcon: boolean | undefined;
87
91
  isDisabled: boolean | undefined;
88
92
  isDraggingOver: boolean;
89
93
  processing: boolean;