@abyss-project/commons-front-core 1.0.0
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/.eslintrc.cjs +30 -0
- package/README.md +2 -0
- package/declaration.d.ts +9 -0
- package/dist/assets/index.d.ts +6 -0
- package/dist/assets/logo/index.d.ts +8 -0
- package/dist/components/AllCloudMetrics/AllCloudMetrics.component.d.ts +14 -0
- package/dist/components/AllCloudMetrics/index.d.ts +1 -0
- package/dist/components/Avatars/ProjectAvatar/ProjectAvatar.component.d.ts +14 -0
- package/dist/components/Avatars/ProjectAvatar/index.d.ts +1 -0
- package/dist/components/Avatars/UserAvatar/UserAvatar.component.d.ts +14 -0
- package/dist/components/Avatars/UserAvatar/constant.d.ts +4 -0
- package/dist/components/Avatars/UserAvatar/index.d.ts +2 -0
- package/dist/components/Avatars/index.d.ts +2 -0
- package/dist/components/Chips/LogTypeChip/LogTypeChip.component.d.ts +9 -0
- package/dist/components/Chips/LogTypeChip/index.d.ts +1 -0
- package/dist/components/Chips/ProjectStatusChip/ProjectStatusChip.component.d.ts +9 -0
- package/dist/components/Chips/ProjectStatusChip/index.d.ts +1 -0
- package/dist/components/Chips/WebhookResponseCodeChip/WebhookResponseCodeChip.component.d.ts +9 -0
- package/dist/components/Chips/WebhookResponseCodeChip/index.d.ts +1 -0
- package/dist/components/Chips/WebhookTypeChip/WebhookTypeChip.component.d.ts +9 -0
- package/dist/components/Chips/WebhookTypeChip/index.d.ts +1 -0
- package/dist/components/Chips/index.d.ts +4 -0
- package/dist/components/FiltersBox/FiltersBox.component.d.ts +8 -0
- package/dist/components/FiltersBox/index.d.ts +1 -0
- package/dist/components/FreepikSearch/FreepikSearch.component.d.ts +9 -0
- package/dist/components/FreepikSearch/index.d.ts +1 -0
- package/dist/components/ImportButton/ImportButton.component.d.ts +30 -0
- package/dist/components/ImportButton/index.d.ts +2 -0
- package/dist/components/InfoBox/InfoBox.component.d.ts +4 -0
- package/dist/components/InfoBox/index.d.ts +1 -0
- package/dist/components/Inputs/CloudImport/CloudImport.component.d.ts +18 -0
- package/dist/components/Inputs/CloudImport/CloudImportFile.component.d.ts +17 -0
- package/dist/components/Inputs/CloudImport/CloudImportFolder.component.d.ts +21 -0
- package/dist/components/Inputs/CloudImport/index.d.ts +1 -0
- package/dist/components/Inputs/CloudSave/CloudSave.component.d.ts +15 -0
- package/dist/components/Inputs/CloudSave/index.d.ts +1 -0
- package/dist/components/Inputs/DatePeriodPicker/DatePeriodPicker.component.d.ts +10 -0
- package/dist/components/Inputs/DatePeriodPicker/index.d.ts +1 -0
- package/dist/components/Inputs/PasswordInput/PasswordInput.component.d.ts +18 -0
- package/dist/components/Inputs/PasswordInput/index.d.ts +1 -0
- package/dist/components/Inputs/index.d.ts +4 -0
- package/dist/components/Modals/AbyssModal/AbyssModal.component.d.ts +2 -0
- package/dist/components/Modals/AbyssModal/index.d.ts +1 -0
- package/dist/components/Modals/ConfirmModal/ConfirmModal.d.ts +20 -0
- package/dist/components/Modals/ConfirmModal/index.d.ts +1 -0
- package/dist/components/Modals/ImportFromCloudModal/ImportFromCloudModal.component.d.ts +19 -0
- package/dist/components/Modals/ImportFromCloudModal/index.d.ts +1 -0
- package/dist/components/Modals/ImportFromCollectionModal/ImportFromCollectionModal.component.d.ts +11 -0
- package/dist/components/Modals/ImportFromCollectionModal/index.d.ts +1 -0
- package/dist/components/Modals/QRCodeModal/QRCodeModal.component.d.ts +12 -0
- package/dist/components/Modals/QRCodeModal/index.d.ts +1 -0
- package/dist/components/Modals/SaveCloudModal/SaveCloudModal.component.d.ts +16 -0
- package/dist/components/Modals/SaveCloudModal/index.d.ts +1 -0
- package/dist/components/Modals/index.d.ts +6 -0
- package/dist/components/Utils/CustomDivider/CustomDivider.component.d.ts +4 -0
- package/dist/components/Utils/CustomDivider/index.d.ts +1 -0
- package/dist/components/Utils/FloatingNavigation/FloatingNavigation.component.d.ts +17 -0
- package/dist/components/Utils/FloatingNavigation/index.d.ts +1 -0
- package/dist/components/Utils/WaterParticles/WaterParticles.component.d.ts +8 -0
- package/dist/components/Utils/WaterParticles/index.d.ts +1 -0
- package/dist/components/Utils/index.d.ts +3 -0
- package/dist/components/index.d.ts +10 -0
- package/dist/hooks/confirm-modal/confirm-modal.context.d.ts +8 -0
- package/dist/hooks/confirm-modal/index.d.ts +1 -0
- package/dist/hooks/index.d.ts +3 -0
- package/dist/hooks/use-cloud.hook.d.ts +8 -0
- package/dist/hooks/use-rich-intl.hook.d.ts +3145 -0
- package/dist/hooks/use-theme.hook.d.ts +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +19762 -0
- package/dist/stylesheet.d.ts +123 -0
- package/dist/translations/en.d.ts +1567 -0
- package/dist/translations/fr.d.ts +1554 -0
- package/dist/utils/color.utils.d.ts +2 -0
- package/dist/utils/index.d.ts +1 -0
- package/package.json +96 -0
- package/tsconfig.json +35 -0
- package/vite.config.ts +72 -0
package/.eslintrc.cjs
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
parser: '@typescript-eslint/parser',
|
|
3
|
+
parserOptions: {
|
|
4
|
+
project: './tsconfig.json',
|
|
5
|
+
tsconfigRootDir: __dirname,
|
|
6
|
+
sourceType: 'module',
|
|
7
|
+
},
|
|
8
|
+
plugins: ['@typescript-eslint/eslint-plugin', 'prettier'],
|
|
9
|
+
extends: [
|
|
10
|
+
'plugin:@typescript-eslint/recommended',
|
|
11
|
+
'plugin:prettier/recommended',
|
|
12
|
+
],
|
|
13
|
+
root: true,
|
|
14
|
+
env: {
|
|
15
|
+
browser: true,
|
|
16
|
+
es2021: true,
|
|
17
|
+
node: true,
|
|
18
|
+
jest: true,
|
|
19
|
+
},
|
|
20
|
+
ignorePatterns: ['.eslintrc.cjs'],
|
|
21
|
+
rules: {
|
|
22
|
+
'no-console': 'warn',
|
|
23
|
+
curly: ['error'],
|
|
24
|
+
'@typescript-eslint/interface-name-prefix': 'off',
|
|
25
|
+
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
26
|
+
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
|
27
|
+
'@typescript-eslint/no-explicit-any': 'off',
|
|
28
|
+
'@typescript-eslint/prefer-as-const': 'error',
|
|
29
|
+
},
|
|
30
|
+
};
|
package/README.md
ADDED
package/declaration.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from './logo';
|
|
2
|
+
export { default as LogoAbyssFlat } from './logo_abyss_flat.svg';
|
|
3
|
+
export { default as LogoAbyssSmall } from './logo_abyss_small.png';
|
|
4
|
+
export { default as LogoAbyss } from './logo_abyss.svg';
|
|
5
|
+
export { default as NewsLogoAbyss } from './new_logo_abyss.png';
|
|
6
|
+
export { default as DiscordLogo } from './discord.svg';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { default as AbyssBankingLogo } from './AbyssBanking.svg';
|
|
2
|
+
export { default as AbyssCloudLogo } from './AbyssCloud.svg';
|
|
3
|
+
export { default as AbyssCryptLogo } from './AbyssCrypt.svg';
|
|
4
|
+
export { default as AbyssFormLogo } from './AbyssForm.svg';
|
|
5
|
+
export { default as AbyssMemoriesLogo } from './AbyssMemories.svg';
|
|
6
|
+
export { default as AbyssMonitorLogo } from './AbyssMonitor.svg';
|
|
7
|
+
export { default as AbyssSpotlightLogo } from './AbyssSpotlight.svg';
|
|
8
|
+
export { default as AbyssStorageLogo } from './AbyssStorage.svg';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IGetAllMetricsCloudData } from '@abyss-project/cloud';
|
|
3
|
+
import { AbyssService } from '@abyss-project/main';
|
|
4
|
+
type Props = {
|
|
5
|
+
enabledService: AbyssService[];
|
|
6
|
+
abyssCloudUrl: string;
|
|
7
|
+
classes: Record<string, string>;
|
|
8
|
+
cloudMetrics: IGetAllMetricsCloudData['clouds'] | null;
|
|
9
|
+
setCloudMetrics: (metrics: IGetAllMetricsCloudData['clouds'] | null) => void;
|
|
10
|
+
};
|
|
11
|
+
declare const _default: React.JSXElementConstructor<Omit<Props & {
|
|
12
|
+
children?: React.ReactNode;
|
|
13
|
+
}, "classes"> & import('@mui/styles/withStyles').StyledComponentProps<string> & object>;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as AllCloudMetrics } from './AllCloudMetrics.component';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { SxProps } from '@mui/material';
|
|
2
|
+
type Props = {
|
|
3
|
+
projectId: string;
|
|
4
|
+
title: string;
|
|
5
|
+
classes: Record<string, string>;
|
|
6
|
+
hasThumbnail: boolean;
|
|
7
|
+
cache?: string;
|
|
8
|
+
sx?: SxProps;
|
|
9
|
+
getProjectPictureUrl: (projectId: string) => string;
|
|
10
|
+
};
|
|
11
|
+
declare const _default: import('react').JSXElementConstructor<Omit<Props & {
|
|
12
|
+
children?: import('react').ReactNode;
|
|
13
|
+
}, "classes"> & import('@mui/styles/withStyles').StyledComponentProps<string> & object>;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ProjectAvatar } from './ProjectAvatar.component';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { SxProps } from '@mui/material';
|
|
2
|
+
type Props = {
|
|
3
|
+
userId: string;
|
|
4
|
+
alias: string;
|
|
5
|
+
classes: Record<string, string>;
|
|
6
|
+
hasThumbnail: boolean;
|
|
7
|
+
cache?: string;
|
|
8
|
+
sx?: SxProps;
|
|
9
|
+
getProfilePictureUrl: (userId: string) => string;
|
|
10
|
+
};
|
|
11
|
+
declare const _default: import('react').JSXElementConstructor<Omit<Props & {
|
|
12
|
+
children?: import('react').ReactNode;
|
|
13
|
+
}, "classes"> & import('@mui/styles/withStyles').StyledComponentProps<string> & object>;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { LogLevel } from '@abyss-project/monitor';
|
|
2
|
+
type Props = {
|
|
3
|
+
level: LogLevel;
|
|
4
|
+
classes: Record<string, string>;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import('react').JSXElementConstructor<Omit<Props & {
|
|
7
|
+
children?: import('react').ReactNode;
|
|
8
|
+
}, "classes"> & import('@mui/styles/withStyles').StyledComponentProps<string> & object>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as LogTypeChip } from './LogTypeChip.component';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ProjectStatus } from '@abyss-project/main';
|
|
2
|
+
type Props = {
|
|
3
|
+
status: ProjectStatus;
|
|
4
|
+
classes: Record<string, string>;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import('react').JSXElementConstructor<Omit<Props & {
|
|
7
|
+
children?: import('react').ReactNode;
|
|
8
|
+
}, "classes"> & import('@mui/styles/withStyles').StyledComponentProps<string> & object>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ProjectStatusChip } from './ProjectStatusChip.component';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
type Props = {
|
|
3
|
+
responseCode: number | null;
|
|
4
|
+
classes: Record<string, string>;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import('react').JSXElementConstructor<Omit<Props & {
|
|
7
|
+
children?: import('react').ReactNode;
|
|
8
|
+
}, "classes"> & import('@mui/styles/withStyles').StyledComponentProps<string> & object>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as WebhookResponseCodeChip } from './WebhookResponseCodeChip.component';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { WebhookType } from '@abyss-project/storage';
|
|
2
|
+
type Props = {
|
|
3
|
+
value: WebhookType;
|
|
4
|
+
classes: Record<string, string>;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import('react').JSXElementConstructor<Omit<Props & {
|
|
7
|
+
children?: import('react').ReactNode;
|
|
8
|
+
}, "classes"> & import('@mui/styles/withStyles').StyledComponentProps<string> & object>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as WebhookTypeChip } from './WebhookTypeChip.component';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
type Props = {
|
|
3
|
+
classes: Record<string, string>;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: React.JSXElementConstructor<Omit<Props & {
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
}, "classes"> & import('@mui/styles/withStyles').StyledComponentProps<string> & object>;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as FiltersBox } from './FiltersBox.component';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ISearchFreepikCollectionData } from '@abyss-project/storage';
|
|
2
|
+
type Props = {
|
|
3
|
+
classes: Record<string, string>;
|
|
4
|
+
onSelect: (item: ISearchFreepikCollectionData['items'][number]) => Promise<void>;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import('react').JSXElementConstructor<Omit<Props & {
|
|
7
|
+
children?: import('react').ReactNode;
|
|
8
|
+
}, "classes"> & import('@mui/styles/withStyles').StyledComponentProps<string> & object>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as FreepikSearch } from './FreepikSearch.component';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ICloud, IFile } from '@abyss-project/cloud';
|
|
2
|
+
import { PictureCollectionSource } from '@abyss-project/storage';
|
|
3
|
+
import { ChangeEvent } from 'react';
|
|
4
|
+
import { IUser } from '@abyss-project/main';
|
|
5
|
+
export declare const MAX_PICTURE_SIZE: number;
|
|
6
|
+
export type CollectionElement = {
|
|
7
|
+
source: PictureCollectionSource;
|
|
8
|
+
elementId: string;
|
|
9
|
+
url: string;
|
|
10
|
+
};
|
|
11
|
+
type Props = {
|
|
12
|
+
children: React.ReactElement;
|
|
13
|
+
isLoading: boolean;
|
|
14
|
+
handleUploadFromUrl?: (url: string) => Promise<void>;
|
|
15
|
+
handleFileUpload: (event: ChangeEvent<HTMLInputElement>) => Promise<void>;
|
|
16
|
+
handleImportFromCloud: (cloud: ICloud, files: IFile[]) => Promise<void>;
|
|
17
|
+
handleImportFromCollection?: (collectionElements: CollectionElement[]) => Promise<void>;
|
|
18
|
+
multiple?: boolean;
|
|
19
|
+
maxSize?: number;
|
|
20
|
+
accept?: string[];
|
|
21
|
+
user: IUser;
|
|
22
|
+
fetchUser: () => Promise<void>;
|
|
23
|
+
abyssCloudUrl: string;
|
|
24
|
+
getFileThumbnailUrl: (id: string) => string;
|
|
25
|
+
classes: Record<string, string>;
|
|
26
|
+
};
|
|
27
|
+
declare const _default: import('react').JSXElementConstructor<Omit<Props & {
|
|
28
|
+
children?: import('react').ReactNode;
|
|
29
|
+
}, "classes"> & import('@mui/styles/withStyles').StyledComponentProps<string> & object>;
|
|
30
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './InfoBox.component';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ICloud, IFile } from '@abyss-project/cloud';
|
|
3
|
+
import { IUser } from '@abyss-project/main';
|
|
4
|
+
type Props = {
|
|
5
|
+
classes: Record<string, string>;
|
|
6
|
+
submitFiles: (cloud: ICloud, files: IFile[]) => void;
|
|
7
|
+
maxSize?: number;
|
|
8
|
+
multiple?: boolean;
|
|
9
|
+
accept?: string[];
|
|
10
|
+
user: IUser;
|
|
11
|
+
fetchUser: () => Promise<void>;
|
|
12
|
+
abyssCloudUrl: string;
|
|
13
|
+
getFileThumbnailUrl: (id: string) => string;
|
|
14
|
+
};
|
|
15
|
+
declare const _default: React.JSXElementConstructor<Omit<Props & {
|
|
16
|
+
children?: React.ReactNode;
|
|
17
|
+
}, "classes"> & import('@mui/styles/withStyles').StyledComponentProps<string> & object>;
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IFile } from '@abyss-project/cloud';
|
|
3
|
+
type Props = {
|
|
4
|
+
classes: Record<string, string>;
|
|
5
|
+
file: IFile;
|
|
6
|
+
maxSize?: number;
|
|
7
|
+
multiple?: boolean;
|
|
8
|
+
selectedFiles?: IFile[];
|
|
9
|
+
selectFiles?: (files: IFile[]) => void;
|
|
10
|
+
unselectFiles?: (files: IFile[]) => void;
|
|
11
|
+
accept?: string[];
|
|
12
|
+
getFileThumbnailUrl: (id: string) => string;
|
|
13
|
+
};
|
|
14
|
+
declare const _default: React.JSXElementConstructor<Omit<Props & {
|
|
15
|
+
children?: React.ReactNode;
|
|
16
|
+
}, "classes"> & import('@mui/styles/withStyles').StyledComponentProps<string> & object>;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IFile, IFolder } from '@abyss-project/cloud';
|
|
3
|
+
type Props = {
|
|
4
|
+
classes: Record<string, string>;
|
|
5
|
+
folder: IFolder;
|
|
6
|
+
maxSize?: number;
|
|
7
|
+
multiple?: boolean;
|
|
8
|
+
selectedFiles?: IFile[];
|
|
9
|
+
selectFiles?: (files: IFile[]) => void;
|
|
10
|
+
unselectFiles?: (files: IFile[]) => void;
|
|
11
|
+
selectedFolders?: IFolder[];
|
|
12
|
+
selectFolders?: (folders: IFolder[]) => void;
|
|
13
|
+
unselectFolders?: (folders: IFolder[]) => void;
|
|
14
|
+
maskFiles?: boolean;
|
|
15
|
+
accept?: string[];
|
|
16
|
+
getFileThumbnailUrl: (id: string) => string;
|
|
17
|
+
};
|
|
18
|
+
declare const _default: React.JSXElementConstructor<Omit<Props & {
|
|
19
|
+
children?: React.ReactNode;
|
|
20
|
+
}, "classes"> & import('@mui/styles/withStyles').StyledComponentProps<string> & object>;
|
|
21
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as CloudImport } from './CloudImport.component';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ICloud, IFolder } from '@abyss-project/cloud';
|
|
3
|
+
import { IUser } from '@abyss-project/main';
|
|
4
|
+
type Props = {
|
|
5
|
+
classes: Record<string, string>;
|
|
6
|
+
onConfirm: (cloud: ICloud, folder: IFolder | null) => Promise<void>;
|
|
7
|
+
user: IUser;
|
|
8
|
+
fetchUser: () => Promise<void>;
|
|
9
|
+
abyssCloudUrl: string;
|
|
10
|
+
getFileThumbnailUrl: (id: string) => string;
|
|
11
|
+
};
|
|
12
|
+
declare const _default: React.JSXElementConstructor<Omit<Props & {
|
|
13
|
+
children?: React.ReactNode;
|
|
14
|
+
}, "classes"> & import('@mui/styles/withStyles').StyledComponentProps<string> & object>;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as CloudSave } from './CloudSave.component';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
type Props = {
|
|
3
|
+
setStartDate: (date: Date) => void;
|
|
4
|
+
setEndDate: (date: Date) => void;
|
|
5
|
+
classes: Record<string, string>;
|
|
6
|
+
};
|
|
7
|
+
declare const _default: import('react').JSXElementConstructor<Omit<Props & {
|
|
8
|
+
children?: import('react').ReactNode;
|
|
9
|
+
}, "classes"> & import('@mui/styles/withStyles').StyledComponentProps<string> & object>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as DatePeriodPicker } from './DatePeriodPicker.component';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { SxProps } from '@mui/material';
|
|
2
|
+
type Props = {
|
|
3
|
+
classes: Record<string, string>;
|
|
4
|
+
name: string;
|
|
5
|
+
label?: string;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
value: string;
|
|
8
|
+
error: boolean;
|
|
9
|
+
onChange: (e: React.ChangeEvent<any>) => void;
|
|
10
|
+
variant?: 'filled' | 'outlined';
|
|
11
|
+
size?: 'small' | 'medium';
|
|
12
|
+
sx?: SxProps;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
};
|
|
15
|
+
declare const _default: import('react').JSXElementConstructor<Omit<Props & {
|
|
16
|
+
children?: import('react').ReactNode;
|
|
17
|
+
}, "classes"> & import('@mui/styles/withStyles').StyledComponentProps<string> & object>;
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as PasswordInput } from './PasswordInput.component';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AbyssModal } from './AbyssModal.component';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { default as React, ReactNode } from 'react';
|
|
2
|
+
import { Breakpoint } from '@mui/material';
|
|
3
|
+
type Props = {
|
|
4
|
+
title?: string | ReactNode;
|
|
5
|
+
description?: string;
|
|
6
|
+
content?: ReactNode;
|
|
7
|
+
confirmText?: string;
|
|
8
|
+
cancelText?: string;
|
|
9
|
+
isOpen: boolean;
|
|
10
|
+
isConfirmLoading?: boolean;
|
|
11
|
+
onCancel: () => Promise<void>;
|
|
12
|
+
onConfirm: () => Promise<void>;
|
|
13
|
+
isConfirmDisabled?: boolean;
|
|
14
|
+
classes: Record<string, string>;
|
|
15
|
+
maxWidth?: Breakpoint;
|
|
16
|
+
};
|
|
17
|
+
declare const _default: React.JSXElementConstructor<Omit<Props & {
|
|
18
|
+
children?: React.ReactNode;
|
|
19
|
+
}, "classes"> & import('@mui/styles/withStyles').StyledComponentProps<string> & object>;
|
|
20
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './ConfirmModal';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ICloud, IFile } from '@abyss-project/cloud';
|
|
2
|
+
import { IUser } from '@abyss-project/main';
|
|
3
|
+
type Props = {
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
onCancel: () => Promise<void>;
|
|
6
|
+
onConfirm: (cloud: ICloud, files: IFile[]) => Promise<void>;
|
|
7
|
+
classes: Record<string, string>;
|
|
8
|
+
maxSize?: number;
|
|
9
|
+
multiple?: boolean;
|
|
10
|
+
accept?: string[];
|
|
11
|
+
user: IUser;
|
|
12
|
+
fetchUser: () => Promise<void>;
|
|
13
|
+
abyssCloudUrl: string;
|
|
14
|
+
getFileThumbnailUrl: (id: string) => string;
|
|
15
|
+
};
|
|
16
|
+
declare const _default: import('react').JSXElementConstructor<Omit<Props & {
|
|
17
|
+
children?: import('react').ReactNode;
|
|
18
|
+
}, "classes"> & import('@mui/styles/withStyles').StyledComponentProps<string> & object>;
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ImportFromCloudModal } from './ImportFromCloudModal.component';
|
package/dist/components/Modals/ImportFromCollectionModal/ImportFromCollectionModal.component.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CollectionElement } from '../../ImportButton/ImportButton.component';
|
|
2
|
+
type Props = {
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
onCancel: () => Promise<void>;
|
|
5
|
+
onConfirm: (files: CollectionElement[]) => Promise<void>;
|
|
6
|
+
classes: Record<string, string>;
|
|
7
|
+
};
|
|
8
|
+
declare const _default: import('react').JSXElementConstructor<Omit<Props & {
|
|
9
|
+
children?: import('react').ReactNode;
|
|
10
|
+
}, "classes"> & import('@mui/styles/withStyles').StyledComponentProps<string> & object>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ImportFromCollectionModal } from './ImportFromCollectionModal.component';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
type Props = {
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
classes: Record<string, string>;
|
|
6
|
+
url: string;
|
|
7
|
+
handleResetButton?: () => Promise<void>;
|
|
8
|
+
};
|
|
9
|
+
declare const _default: React.JSXElementConstructor<Omit<Props & {
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
}, "classes"> & import('@mui/styles/withStyles').StyledComponentProps<string> & object>;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as QRCodeModal } from './QRCodeModal.component';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ICloud, IFolder } from '@abyss-project/cloud';
|
|
2
|
+
import { IUser } from '@abyss-project/main';
|
|
3
|
+
type Props = {
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
onCancel: () => Promise<void>;
|
|
6
|
+
onConfirm: (cloud: ICloud, folder: IFolder | null) => Promise<void>;
|
|
7
|
+
user: IUser;
|
|
8
|
+
fetchUser: () => Promise<void>;
|
|
9
|
+
abyssCloudUrl: string;
|
|
10
|
+
getFileThumbnailUrl: (id: string) => string;
|
|
11
|
+
classes: Record<string, string>;
|
|
12
|
+
};
|
|
13
|
+
declare const _default: import('react').JSXElementConstructor<Omit<Props & {
|
|
14
|
+
children?: import('react').ReactNode;
|
|
15
|
+
}, "classes"> & import('@mui/styles/withStyles').StyledComponentProps<string> & object>;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as SaveCloudModal } from './SaveCloudModal.component';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './CustomDivider.component';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
type Props = {
|
|
3
|
+
fields: {
|
|
4
|
+
label: string;
|
|
5
|
+
icon: React.ReactNode;
|
|
6
|
+
value: string;
|
|
7
|
+
link?: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
}[];
|
|
10
|
+
currentTab: string;
|
|
11
|
+
onClick?: (value: string) => void;
|
|
12
|
+
classes: Record<string, string>;
|
|
13
|
+
};
|
|
14
|
+
declare const _default: React.JSXElementConstructor<Omit<Props & {
|
|
15
|
+
children?: React.ReactNode;
|
|
16
|
+
}, "classes"> & import('@mui/styles/withStyles').StyledComponentProps<string> & object>;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as FloatingNavigation } from './FloatingNavigation.component';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
type Props = {
|
|
3
|
+
classes: Record<string, string>;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: React.JSXElementConstructor<Omit<Props & {
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
}, "classes"> & import('@mui/styles/withStyles').StyledComponentProps<string> & object>;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as WaterParticles } from './WaterParticles.component';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './AllCloudMetrics';
|
|
2
|
+
export * from './Avatars';
|
|
3
|
+
export * from './Chips';
|
|
4
|
+
export * from './FiltersBox';
|
|
5
|
+
export * from './FreepikSearch';
|
|
6
|
+
export * from './ImportButton';
|
|
7
|
+
export * from './InfoBox';
|
|
8
|
+
export * from './Inputs';
|
|
9
|
+
export * from './Modals';
|
|
10
|
+
export * from './Utils';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
import { default as ConfirmModal } from '../../components/Modals/ConfirmModal';
|
|
3
|
+
type Params = Partial<Omit<ComponentProps<typeof ConfirmModal>, 'isOpen'>>;
|
|
4
|
+
export declare const ConfirmModalContextProvider: React.FC;
|
|
5
|
+
export declare const useConfirm: () => {
|
|
6
|
+
confirm: (p?: Params) => Promise<boolean>;
|
|
7
|
+
};
|
|
8
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ConfirmModalContextProvider, useConfirm, } from './confirm-modal.context';
|