gantri-components 2.145.0 → 2.146.0-beta.2
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/components/file-uploader/file-uploader.types.d.ts +3 -2
- package/dist/components/file-uploader/hooks/use-uploader-actions/hooks/use-handle-selected-files/use-handle-selected-files.types.d.ts +3 -1
- package/dist/components/tabs/components/tab/tab.styled.d.ts +2 -0
- package/dist/components/tabs/components/tab/tab.types.d.ts +2 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
|
@@ -73,7 +73,8 @@ export interface SelectedFileDetails {
|
|
|
73
73
|
/** If invalid, return the error message to display. */
|
|
74
74
|
export type ValidateFile = (file: SelectedFileDetails) => Promise<string | undefined | void> | string | undefined | void;
|
|
75
75
|
export type HandleFileSelected = (validFile: SelectedFileDetails) => Promise<any>;
|
|
76
|
-
export type FileUploaderCustomContent = (props:
|
|
76
|
+
export type FileUploaderCustomContent = (props: FileUploaderCustomContentPropsDef) => JSX.Element;
|
|
77
|
+
export interface FileUploaderCustomContentPropsDef {
|
|
77
78
|
IconCopyUrl: () => JSX.Element;
|
|
78
79
|
IconDelete: () => JSX.Element;
|
|
79
80
|
IconDrag: () => JSX.Element;
|
|
@@ -85,7 +86,7 @@ export type FileUploaderCustomContent = (props: {
|
|
|
85
86
|
isDisabled: boolean | undefined;
|
|
86
87
|
isDraggingOver: boolean;
|
|
87
88
|
processing: boolean;
|
|
88
|
-
}
|
|
89
|
+
}
|
|
89
90
|
export type OnFileUploaderError = (props: {
|
|
90
91
|
error: unknown;
|
|
91
92
|
fallbackMessage: string;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { Dispatch, SetStateAction } from 'react';
|
|
2
|
-
import { SelectedFileDetails, FileUploaderProps } from '../../../../file-uploader.types';
|
|
2
|
+
import { SelectedFileDetails, FileUploaderProps, DeleteFile } from '../../../../file-uploader.types';
|
|
3
3
|
import { OptionalValues } from '../../../../../../types/common';
|
|
4
4
|
export type UseHandleSelectedFilesProps = OptionalValues<Required<Pick<FileUploaderProps, 'expectedExtensions' | 'fileUrl' | 'handleFileSelected' | 'handleUploadsComplete' | 'isUploaderOnly' | 'maxFileSizeMB' | 'maxUploadsAllowed' | 'minImageHeight' | 'minImageWidth' | 'onError' | 'onValidationCompleted' | 'onValidationStarted' | 'onlyUseCustomValidationFn' | 'transformFileName' | 'validateFile' | 'validateSequentially'>>> & {
|
|
5
|
+
deleteFile: DeleteFile;
|
|
6
|
+
isReplacing: boolean;
|
|
5
7
|
purgeInput: () => void;
|
|
6
8
|
setFileName: Dispatch<SetStateAction<string>>;
|
|
7
9
|
setFileUrl: Dispatch<SetStateAction<string>>;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { TypographyProps } from '../../../typography';
|
|
2
3
|
export declare const StyledTab: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
3
4
|
$active: boolean;
|
|
4
5
|
$disabled?: boolean | undefined;
|
|
6
|
+
$variant: TypographyProps['variant'];
|
|
5
7
|
}>> & string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
+
import { TypographyProps } from '../../../typography';
|
|
2
3
|
export interface TabProps {
|
|
3
4
|
Content?: ReactNode;
|
|
4
5
|
className?: string;
|
|
@@ -7,4 +8,5 @@ export interface TabProps {
|
|
|
7
8
|
label?: string;
|
|
8
9
|
labelTx?: string;
|
|
9
10
|
value: string | number;
|
|
11
|
+
variant: TypographyProps['variant'];
|
|
10
12
|
}
|