@groupeactual/ui-kit 1.6.6 → 1.7.0-beta.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/dist/cjs/index.js +9 -9
- package/dist/cjs/index.js.map +1 -1
- package/dist/es/index.d.ts +5 -4
- package/dist/es/index.js +107 -0
- package/dist/es/index.js.map +1 -0
- package/dist/es/{types → src}/components/Form/AutoCompleteMulti/AutoCompleteMulti.d.ts +1 -1
- package/dist/{cjs/types → es/src}/components/Form/AutoCompleteSingle/AutoCompleteSingle.d.ts +1 -1
- package/dist/{cjs/types → es/src}/components/Form/Select/Select.d.ts +4 -2
- package/dist/{cjs/types → es/src}/components/IconButton/IconButton.d.ts +1 -1
- package/dist/es/{types → src}/components/Modal/Dialog/Dialog.d.ts +1 -1
- package/dist/es/{types → src}/components/Modal/Drawer/Drawer.d.ts +1 -1
- package/dist/{cjs/types → es/src}/helpers/dataGetValue.d.ts +1 -1
- package/dist/{cjs/types → es/src}/hooks/useGooleDrivePicker.d.ts +2 -2
- package/dist/es/src/index.d.ts +4 -0
- package/package.json +18 -23
- package/src/DesignSystemProvider.tsx +2 -1
- package/src/components/Accordion/Accordion.tsx +1 -1
- package/src/components/BannerNotification/BannerNotification.tsx +1 -1
- package/src/components/Breadcrumbs/Breadcrumbs.tsx +2 -2
- package/src/components/Chip/Chip.tsx +1 -1
- package/src/components/Datatable/Datatable.tsx +4 -3
- package/src/components/Datatable/DatatableCellRender.tsx +2 -2
- package/src/components/EmbbededNotification/EmbeddedNotification.tsx +2 -2
- package/src/components/Form/AutoCompleteMulti/AutoCompleteMulti.tsx +22 -12
- package/src/components/Form/AutoCompleteSingle/AutoCompleteSingle.tsx +22 -10
- package/src/components/Form/Checkbox/Checkbox.tsx +2 -2
- package/src/components/Form/CheckboxGroup/CheckboxGroup.tsx +1 -1
- package/src/components/Form/DatePicker/DatePicker.tsx +1 -1
- package/src/components/Form/MultiSelect/MultiSelect.tsx +10 -7
- package/src/components/Form/RadioGroup/RadioGroup.tsx +2 -2
- package/src/components/Form/Select/Select.tsx +15 -6
- package/src/components/Form/TextField/TextField.tsx +1 -1
- package/src/components/IconButton/IconButton.tsx +3 -3
- package/src/components/MenuItem/MenuItem.tsx +2 -2
- package/src/components/Modal/Dialog/Dialog.tsx +7 -4
- package/src/components/Modal/Drawer/Drawer.tsx +2 -2
- package/src/components/Navigation/Stepper/Step.tsx +3 -2
- package/src/components/NotistackAdapter/NotistackAdapter.tsx +1 -1
- package/src/components/Pagination/Pagination.tsx +7 -11
- package/src/components/Snackbar/Snackbar.tsx +1 -1
- package/src/components/UploadDocument/FileUploaderSingle.tsx +7 -7
- package/src/helpers/GooglePickerWrapper.tsx +1 -1
- package/src/helpers/dataGetValue.ts +1 -1
- package/src/hooks/useGooleDrivePicker.ts +2 -2
- package/src/index.ts +3 -5
- package/dist/cjs/types/components/Form/AutoCompleteMulti/AutoCompleteMulti.d.ts +0 -18
- package/dist/cjs/types/components/Modal/Dialog/Dialog.d.ts +0 -4
- package/dist/cjs/types/components/Modal/Drawer/Drawer.d.ts +0 -4
- package/dist/cjs/types/index.d.ts +0 -2
- package/dist/es/index.mjs +0 -106
- package/dist/es/index.mjs.map +0 -1
- package/dist/es/types/DesignSystemProvider.d.ts +0 -13
- package/dist/es/types/components/Accordion/Accordion.d.ts +0 -15
- package/dist/es/types/components/Accordion/index.d.ts +0 -1
- package/dist/es/types/components/BannerNotification/BannerNotification.d.ts +0 -11
- package/dist/es/types/components/BannerNotification/index.d.ts +0 -1
- package/dist/es/types/components/Breadcrumbs/Breadcrumbs.d.ts +0 -15
- package/dist/es/types/components/Breadcrumbs/index.d.ts +0 -1
- package/dist/es/types/components/Button/Button.d.ts +0 -11
- package/dist/es/types/components/Button/index.d.ts +0 -1
- package/dist/es/types/components/Chip/Chip.d.ts +0 -19
- package/dist/es/types/components/Chip/index.d.ts +0 -1
- package/dist/es/types/components/Datatable/Datatable.d.ts +0 -4
- package/dist/es/types/components/Datatable/DatatableCellRender.d.ts +0 -4
- package/dist/es/types/components/Datatable/datatable.interface.d.ts +0 -53
- package/dist/es/types/components/Datatable/index.d.ts +0 -1
- package/dist/es/types/components/Datatable/use-pagination-props.hook.d.ts +0 -3
- package/dist/es/types/components/EmbbededNotification/EmbeddedNotification.d.ts +0 -13
- package/dist/es/types/components/EmbbededNotification/index.d.ts +0 -1
- package/dist/es/types/components/Form/AutoCompleteMulti/index.d.ts +0 -1
- package/dist/es/types/components/Form/AutoCompleteSingle/AutoCompleteSingle.d.ts +0 -19
- package/dist/es/types/components/Form/AutoCompleteSingle/index.d.ts +0 -1
- package/dist/es/types/components/Form/Checkbox/Checkbox.d.ts +0 -17
- package/dist/es/types/components/Form/Checkbox/index.d.ts +0 -1
- package/dist/es/types/components/Form/CheckboxGroup/CheckboxGroup.d.ts +0 -20
- package/dist/es/types/components/Form/CheckboxGroup/index.d.ts +0 -1
- package/dist/es/types/components/Form/DatePicker/DatePicker.d.ts +0 -15
- package/dist/es/types/components/Form/DatePicker/index.d.ts +0 -1
- package/dist/es/types/components/Form/MultiSelect/MultiSelect.d.ts +0 -23
- package/dist/es/types/components/Form/MultiSelect/index.d.ts +0 -1
- package/dist/es/types/components/Form/RadioGroup/RadioGroup.d.ts +0 -21
- package/dist/es/types/components/Form/RadioGroup/index.d.ts +0 -1
- package/dist/es/types/components/Form/Select/Select.d.ts +0 -22
- package/dist/es/types/components/Form/Select/index.d.ts +0 -1
- package/dist/es/types/components/Form/Switch/Switch.d.ts +0 -13
- package/dist/es/types/components/Form/Switch/index.d.ts +0 -1
- package/dist/es/types/components/Form/TextField/TextField.d.ts +0 -21
- package/dist/es/types/components/Form/TextField/index.d.ts +0 -1
- package/dist/es/types/components/IconButton/IconButton.d.ts +0 -19
- package/dist/es/types/components/IconButton/index.d.ts +0 -1
- package/dist/es/types/components/IconProvider/IconProvider.d.ts +0 -22
- package/dist/es/types/components/IconProvider/index.d.ts +0 -1
- package/dist/es/types/components/Link/Link.d.ts +0 -11
- package/dist/es/types/components/Link/index.d.ts +0 -1
- package/dist/es/types/components/MenuItem/MenuItem.d.ts +0 -13
- package/dist/es/types/components/MenuItem/index.d.ts +0 -1
- package/dist/es/types/components/Modal/Dialog/index.d.ts +0 -1
- package/dist/es/types/components/Modal/Drawer/index.d.ts +0 -1
- package/dist/es/types/components/Modal/modal.interface.d.ts +0 -24
- package/dist/es/types/components/Navigation/Stepper/Step.d.ts +0 -7
- package/dist/es/types/components/Navigation/Stepper/Stepper.d.ts +0 -11
- package/dist/es/types/components/Navigation/Stepper/index.d.ts +0 -1
- package/dist/es/types/components/Navigation/Stepper/stepper.helper.d.ts +0 -2
- package/dist/es/types/components/Navigation/Stepper/stepper.interface.d.ts +0 -12
- package/dist/es/types/components/NotistackAdapter/NotistackAdapter.d.ts +0 -4
- package/dist/es/types/components/NotistackAdapter/index.d.ts +0 -1
- package/dist/es/types/components/Pagination/Pagination.d.ts +0 -16
- package/dist/es/types/components/Pagination/index.d.ts +0 -1
- package/dist/es/types/components/Pagination/pagination.helper.d.ts +0 -1
- package/dist/es/types/components/Snackbar/Snackbar.d.ts +0 -11
- package/dist/es/types/components/Snackbar/index.d.ts +0 -1
- package/dist/es/types/components/Text/Text.d.ts +0 -11
- package/dist/es/types/components/Text/index.d.ts +0 -1
- package/dist/es/types/components/Tooltip/Tooltip.d.ts +0 -13
- package/dist/es/types/components/Tooltip/index.d.ts +0 -1
- package/dist/es/types/components/Tooltip/tooltip.interface.d.ts +0 -1
- package/dist/es/types/components/UploadDocument/FileUploaderSingle.d.ts +0 -30
- package/dist/es/types/components/UploadDocument/index.d.ts +0 -1
- package/dist/es/types/components/index.d.ts +0 -31
- package/dist/es/types/helpers/GooglePickerWrapper.d.ts +0 -13
- package/dist/es/types/helpers/dataGetValue.d.ts +0 -2
- package/dist/es/types/hooks/useGooleDrivePicker.d.ts +0 -4
- package/dist/es/types/index.d.ts +0 -2
- package/dist/es/types/types/googleDrive.d.ts +0 -133
- /package/dist/{cjs/types → es/src}/DesignSystemProvider.d.ts +0 -0
- /package/dist/{cjs/types → es/src}/components/Accordion/Accordion.d.ts +0 -0
- /package/dist/{cjs/types → es/src}/components/Accordion/index.d.ts +0 -0
- /package/dist/{cjs/types → es/src}/components/BannerNotification/BannerNotification.d.ts +0 -0
- /package/dist/{cjs/types → es/src}/components/BannerNotification/index.d.ts +0 -0
- /package/dist/{cjs/types → es/src}/components/Breadcrumbs/Breadcrumbs.d.ts +0 -0
- /package/dist/{cjs/types → es/src}/components/Breadcrumbs/index.d.ts +0 -0
- /package/dist/{cjs/types → es/src}/components/Button/Button.d.ts +0 -0
- /package/dist/{cjs/types → es/src}/components/Button/index.d.ts +0 -0
- /package/dist/{cjs/types → es/src}/components/Chip/Chip.d.ts +0 -0
- /package/dist/{cjs/types → es/src}/components/Chip/index.d.ts +0 -0
- /package/dist/{cjs/types → es/src}/components/Datatable/Datatable.d.ts +0 -0
- /package/dist/{cjs/types → es/src}/components/Datatable/DatatableCellRender.d.ts +0 -0
- /package/dist/{cjs/types → es/src}/components/Datatable/datatable.interface.d.ts +0 -0
- /package/dist/{cjs/types → es/src}/components/Datatable/index.d.ts +0 -0
- /package/dist/{cjs/types → es/src}/components/Datatable/use-pagination-props.hook.d.ts +0 -0
- /package/dist/{cjs/types → es/src}/components/EmbbededNotification/EmbeddedNotification.d.ts +0 -0
- /package/dist/{cjs/types → es/src}/components/EmbbededNotification/index.d.ts +0 -0
- /package/dist/{cjs/types → es/src}/components/Form/AutoCompleteMulti/index.d.ts +0 -0
- /package/dist/{cjs/types → es/src}/components/Form/AutoCompleteSingle/index.d.ts +0 -0
- /package/dist/{cjs/types → es/src}/components/Form/Checkbox/Checkbox.d.ts +0 -0
- /package/dist/{cjs/types → es/src}/components/Form/Checkbox/index.d.ts +0 -0
- /package/dist/{cjs/types → es/src}/components/Form/CheckboxGroup/CheckboxGroup.d.ts +0 -0
- /package/dist/{cjs/types → es/src}/components/Form/CheckboxGroup/index.d.ts +0 -0
- /package/dist/{cjs/types → es/src}/components/Form/DatePicker/DatePicker.d.ts +0 -0
- /package/dist/{cjs/types → es/src}/components/Form/DatePicker/index.d.ts +0 -0
- /package/dist/{cjs/types → es/src}/components/Form/MultiSelect/MultiSelect.d.ts +0 -0
- /package/dist/{cjs/types → es/src}/components/Form/MultiSelect/index.d.ts +0 -0
- /package/dist/{cjs/types → es/src}/components/Form/RadioGroup/RadioGroup.d.ts +0 -0
- /package/dist/{cjs/types → es/src}/components/Form/RadioGroup/index.d.ts +0 -0
- /package/dist/{cjs/types → es/src}/components/Form/Select/index.d.ts +0 -0
- /package/dist/{cjs/types → es/src}/components/Form/Switch/Switch.d.ts +0 -0
- /package/dist/{cjs/types → es/src}/components/Form/Switch/index.d.ts +0 -0
- /package/dist/{cjs/types → es/src}/components/Form/TextField/TextField.d.ts +0 -0
- /package/dist/{cjs/types → es/src}/components/Form/TextField/index.d.ts +0 -0
- /package/dist/{cjs/types → es/src}/components/IconButton/index.d.ts +0 -0
- /package/dist/{cjs/types → es/src}/components/IconProvider/IconProvider.d.ts +0 -0
- /package/dist/{cjs/types → es/src}/components/IconProvider/index.d.ts +0 -0
- /package/dist/{cjs/types → es/src}/components/Link/Link.d.ts +0 -0
- /package/dist/{cjs/types → es/src}/components/Link/index.d.ts +0 -0
- /package/dist/{cjs/types → es/src}/components/MenuItem/MenuItem.d.ts +0 -0
- /package/dist/{cjs/types → es/src}/components/MenuItem/index.d.ts +0 -0
- /package/dist/{cjs/types → es/src}/components/Modal/Dialog/index.d.ts +0 -0
- /package/dist/{cjs/types → es/src}/components/Modal/Drawer/index.d.ts +0 -0
- /package/dist/{cjs/types → es/src}/components/Modal/modal.interface.d.ts +0 -0
- /package/dist/{cjs/types → es/src}/components/Navigation/Stepper/Step.d.ts +0 -0
- /package/dist/{cjs/types → es/src}/components/Navigation/Stepper/Stepper.d.ts +0 -0
- /package/dist/{cjs/types → es/src}/components/Navigation/Stepper/index.d.ts +0 -0
- /package/dist/{cjs/types → es/src}/components/Navigation/Stepper/stepper.helper.d.ts +0 -0
- /package/dist/{cjs/types → es/src}/components/Navigation/Stepper/stepper.interface.d.ts +0 -0
- /package/dist/{cjs/types → es/src}/components/NotistackAdapter/NotistackAdapter.d.ts +0 -0
- /package/dist/{cjs/types → es/src}/components/NotistackAdapter/index.d.ts +0 -0
- /package/dist/{cjs/types → es/src}/components/Pagination/Pagination.d.ts +0 -0
- /package/dist/{cjs/types → es/src}/components/Pagination/index.d.ts +0 -0
- /package/dist/{cjs/types → es/src}/components/Pagination/pagination.helper.d.ts +0 -0
- /package/dist/{cjs/types → es/src}/components/Snackbar/Snackbar.d.ts +0 -0
- /package/dist/{cjs/types → es/src}/components/Snackbar/index.d.ts +0 -0
- /package/dist/{cjs/types → es/src}/components/Text/Text.d.ts +0 -0
- /package/dist/{cjs/types → es/src}/components/Text/index.d.ts +0 -0
- /package/dist/{cjs/types → es/src}/components/Tooltip/Tooltip.d.ts +0 -0
- /package/dist/{cjs/types → es/src}/components/Tooltip/index.d.ts +0 -0
- /package/dist/{cjs/types → es/src}/components/Tooltip/tooltip.interface.d.ts +0 -0
- /package/dist/{cjs/types → es/src}/components/UploadDocument/FileUploaderSingle.d.ts +0 -0
- /package/dist/{cjs/types → es/src}/components/UploadDocument/index.d.ts +0 -0
- /package/dist/{cjs/types → es/src}/components/index.d.ts +0 -0
- /package/dist/{cjs/types → es/src}/helpers/GooglePickerWrapper.d.ts +0 -0
- /package/dist/{cjs/types → es/src}/types/googleDrive.d.ts +0 -0
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { TypographyProps } from '@mui/material';
|
|
3
|
-
interface Props extends Omit<TypographyProps, 'variant'> {
|
|
4
|
-
variant?: 'bigNumber' | 'body1' | 'body1Regular' | 'body1Medium' | 'body1Bold' | 'body2' | 'body2Regular' | 'body2Medium' | 'body2Bold' | 'caption' | 'buttonNotif' | 'header1' | 'header2' | 'header3' | 'header4' | 'h1' | 'h2' | 'h3' | 'h4' | 'link1' | 'link2';
|
|
5
|
-
component?: any;
|
|
6
|
-
}
|
|
7
|
-
declare const Text: {
|
|
8
|
-
(props: Props): React.JSX.Element;
|
|
9
|
-
displayName: string;
|
|
10
|
-
};
|
|
11
|
-
export default Text;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './Text';
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React, { ReactElement } from 'react';
|
|
2
|
-
import { TooltipProps } from '@mui/material';
|
|
3
|
-
import { Placement } from './tooltip.interface';
|
|
4
|
-
interface Props extends Omit<TooltipProps, 'icon' | 'children' | 'placement'> {
|
|
5
|
-
title: string;
|
|
6
|
-
children: ReactElement;
|
|
7
|
-
placement?: Placement;
|
|
8
|
-
}
|
|
9
|
-
declare const Tooltip: {
|
|
10
|
-
({ title, placement, children, ...tooltipProps }: Props): React.JSX.Element;
|
|
11
|
-
displayName: string;
|
|
12
|
-
};
|
|
13
|
-
export default Tooltip;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './Tooltip';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type Placement = 'right' | 'bottom' | 'left' | 'top' | 'bottom-end' | 'bottom-start' | 'left-end' | 'left-start' | 'right-end' | 'right-start' | 'top-end' | 'top-start' | undefined;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface Props {
|
|
3
|
-
setFile: (file: File | null) => void;
|
|
4
|
-
enableGoogleDrive: boolean;
|
|
5
|
-
googleAuthClientId?: string;
|
|
6
|
-
googleApiKey?: string;
|
|
7
|
-
error?: boolean;
|
|
8
|
-
helperText?: string;
|
|
9
|
-
fileUrl?: string | null;
|
|
10
|
-
fileName?: string | null;
|
|
11
|
-
accept?: string[];
|
|
12
|
-
acceptText?: string;
|
|
13
|
-
disabledInput?: boolean;
|
|
14
|
-
title?: string;
|
|
15
|
-
children?: JSX.Element | null;
|
|
16
|
-
titleAddButton?: string;
|
|
17
|
-
subText?: string;
|
|
18
|
-
maxSize?: string;
|
|
19
|
-
removeExistingFile?: () => void;
|
|
20
|
-
onTouched?: () => void;
|
|
21
|
-
onFileDataChange?: (fileData: {
|
|
22
|
-
name: string;
|
|
23
|
-
size: number;
|
|
24
|
-
type?: string;
|
|
25
|
-
driveFileId?: string;
|
|
26
|
-
driveAccessToken?: string;
|
|
27
|
-
} | null) => void;
|
|
28
|
-
}
|
|
29
|
-
declare const FileUploaderSingle: ({ enableGoogleDrive, googleAuthClientId, googleApiKey, error, helperText, accept, acceptText, title, subText, maxSize, disabledInput, children, fileUrl, fileName, titleAddButton, setFile, removeExistingFile, onTouched, onFileDataChange, }: Props) => React.JSX.Element;
|
|
30
|
-
export default FileUploaderSingle;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './FileUploaderSingle';
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export { default as Text } from './Text';
|
|
2
|
-
export { default as Link } from './Link';
|
|
3
|
-
export { default as Button } from './Button';
|
|
4
|
-
export { default as TextField } from './Form/TextField';
|
|
5
|
-
export { default as Select } from './Form/Select';
|
|
6
|
-
export { default as MultiSelect } from './Form/MultiSelect';
|
|
7
|
-
export { default as Checkbox } from './Form/Checkbox';
|
|
8
|
-
export { default as CheckboxGroup } from './Form/CheckboxGroup';
|
|
9
|
-
export { default as RadioGroup } from './Form/RadioGroup';
|
|
10
|
-
export { default as Accordion } from './Accordion';
|
|
11
|
-
export { default as Breadcrumbs } from './Breadcrumbs';
|
|
12
|
-
export { default as IconProvider } from './IconProvider/IconProvider';
|
|
13
|
-
export { default as Pagination } from './Pagination';
|
|
14
|
-
export { default as Chip } from './Chip/Chip';
|
|
15
|
-
export { default as EmbeddedNotification } from './EmbbededNotification/EmbeddedNotification';
|
|
16
|
-
export { default as Tooltip } from './Tooltip/Tooltip';
|
|
17
|
-
export { default as AutoCompleteSingle } from './Form/AutoCompleteSingle';
|
|
18
|
-
export { default as AutoCompleteMulti } from './Form/AutoCompleteMulti';
|
|
19
|
-
export { default as FileUploaderSingle } from './UploadDocument/FileUploaderSingle';
|
|
20
|
-
export { default as MenuItem } from './MenuItem/MenuItem';
|
|
21
|
-
export { default as Snackbar } from './Snackbar/Snackbar';
|
|
22
|
-
export { default as NotistackAdapter } from './NotistackAdapter/NotistackAdapter';
|
|
23
|
-
export { default as BannerNotification } from './BannerNotification/BannerNotification';
|
|
24
|
-
export { default as Stepper } from './Navigation/Stepper/Stepper';
|
|
25
|
-
export { default as Drawer } from './Modal/Drawer/Drawer';
|
|
26
|
-
export { default as Dialog } from './Modal/Dialog/Dialog';
|
|
27
|
-
export { default as Switch } from './Form/Switch/Switch';
|
|
28
|
-
export { default as DatePicker } from './Form/DatePicker';
|
|
29
|
-
export { default as Datatable } from './Datatable/Datatable';
|
|
30
|
-
export { default as DatatableCellRender } from './Datatable/DatatableCellRender';
|
|
31
|
-
export { default as IconButton } from './IconButton/IconButton';
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface GooglePickerWrapperProps {
|
|
3
|
-
callback: (data: any, token: string) => void;
|
|
4
|
-
multiselect?: boolean;
|
|
5
|
-
navHidden?: boolean;
|
|
6
|
-
googleAuthClientId: string;
|
|
7
|
-
googleApiKey: string;
|
|
8
|
-
scopes?: string;
|
|
9
|
-
viewId?: string;
|
|
10
|
-
mimeType?: string[];
|
|
11
|
-
}
|
|
12
|
-
declare const GooglePickerWrapper: ({ children, callback, multiselect, navHidden, googleAuthClientId, googleApiKey, scopes, viewId, mimeType, }: React.PropsWithChildren<GooglePickerWrapperProps>) => JSX.Element;
|
|
13
|
-
export default GooglePickerWrapper;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { GoogleDrivePickerData, GoogleDrivePickerOptions } from '../types/googleDrive';
|
|
2
|
-
declare const useGoogleDrivePicker: (callbackFunction: (result: GoogleDrivePickerData, token: string) => void, options: GoogleDrivePickerOptions) => readonly [() => Promise<void>, string];
|
|
3
|
-
export * from '../types/googleDrive';
|
|
4
|
-
export default useGoogleDrivePicker;
|
package/dist/es/types/index.d.ts
DELETED
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
export type Haystack = any[] | Record<string, any>;
|
|
2
|
-
export type ErrorsUpload = {
|
|
3
|
-
file?: string[];
|
|
4
|
-
verso?: string[];
|
|
5
|
-
validityDate?: string[];
|
|
6
|
-
nss?: string[];
|
|
7
|
-
};
|
|
8
|
-
export type GoogleDrivePickerOptions = {
|
|
9
|
-
multiselect?: boolean;
|
|
10
|
-
navHidden?: boolean;
|
|
11
|
-
googleAuthClientId: string;
|
|
12
|
-
googleApiKey: string;
|
|
13
|
-
scopes?: string;
|
|
14
|
-
viewId?: string;
|
|
15
|
-
mimeType?: string[];
|
|
16
|
-
};
|
|
17
|
-
/**
|
|
18
|
-
* For complete reference see: https://developers.google.com/picker/docs/reference#action
|
|
19
|
-
*/
|
|
20
|
-
export declare enum GOOGLE_ACTION {
|
|
21
|
-
CANCEL = "cancel",
|
|
22
|
-
PICKED = "picked"
|
|
23
|
-
}
|
|
24
|
-
export type GoogleDrivePickerData = {
|
|
25
|
-
action: GOOGLE_ACTION;
|
|
26
|
-
docs: GoogleDriveFile[];
|
|
27
|
-
parents: unknown;
|
|
28
|
-
viewToken: [
|
|
29
|
-
ViewIdOptions,
|
|
30
|
-
undefined,
|
|
31
|
-
{
|
|
32
|
-
query?: string | undefined;
|
|
33
|
-
parent?: string | undefined;
|
|
34
|
-
}
|
|
35
|
-
];
|
|
36
|
-
};
|
|
37
|
-
export type TokenResponse = {
|
|
38
|
-
access_token?: string;
|
|
39
|
-
expires_in: number;
|
|
40
|
-
hd: string;
|
|
41
|
-
prompt: string;
|
|
42
|
-
token_type: string;
|
|
43
|
-
scope: string;
|
|
44
|
-
state: string;
|
|
45
|
-
error: string;
|
|
46
|
-
error_description: string;
|
|
47
|
-
error_uri: string;
|
|
48
|
-
details?: string;
|
|
49
|
-
};
|
|
50
|
-
/**
|
|
51
|
-
* For complete reference see: https://developers.google.com/identity/oauth2/web/reference/js-reference#TokenClientConfig/
|
|
52
|
-
*/
|
|
53
|
-
export type TokenClientConfig = {
|
|
54
|
-
client_id: string;
|
|
55
|
-
scope: string;
|
|
56
|
-
redirect_uri?: string;
|
|
57
|
-
state?: string;
|
|
58
|
-
enable_serial_consent?: boolean;
|
|
59
|
-
hint?: string;
|
|
60
|
-
hosted_domain?: string;
|
|
61
|
-
ux_mode?: 'popup' | 'redirect';
|
|
62
|
-
select_account?: boolean;
|
|
63
|
-
callback: (response: TokenResponse) => void;
|
|
64
|
-
error_callback?: (error: ErrorCallback) => void;
|
|
65
|
-
};
|
|
66
|
-
type ErrorType = 'popup_failed_to_open' | 'popup_closed' | 'unknown';
|
|
67
|
-
type ErrorCallback = {
|
|
68
|
-
message: string;
|
|
69
|
-
stack: string;
|
|
70
|
-
type: ErrorType;
|
|
71
|
-
};
|
|
72
|
-
/**
|
|
73
|
-
* For complete reference see: https://developers.google.com/picker/docs/reference#service-id
|
|
74
|
-
*/
|
|
75
|
-
declare enum ServiceId {
|
|
76
|
-
DOCS = "docs",
|
|
77
|
-
MAPS = "maps",
|
|
78
|
-
PHOTOS = "picasa",
|
|
79
|
-
SEARCH_API = "search-api",
|
|
80
|
-
URL = "url",
|
|
81
|
-
YOUTUBE = "youtube"
|
|
82
|
-
}
|
|
83
|
-
/**
|
|
84
|
-
* For complete reference see: https://developers.google.com/drive/picker/reference#thumbnail
|
|
85
|
-
*/
|
|
86
|
-
interface DocumentThumbnailObject {
|
|
87
|
-
url: string;
|
|
88
|
-
width: number;
|
|
89
|
-
height: number;
|
|
90
|
-
}
|
|
91
|
-
declare enum Type {
|
|
92
|
-
DOCUMENT = "document",
|
|
93
|
-
LOCATION = "location",
|
|
94
|
-
PHOTO = "photo",
|
|
95
|
-
URL = "url",
|
|
96
|
-
VIDEO = "video"
|
|
97
|
-
}
|
|
98
|
-
/**
|
|
99
|
-
* For complete reference see: https://developers.google.com/picker/docs/results
|
|
100
|
-
*/
|
|
101
|
-
type GoogleDriveFile = {
|
|
102
|
-
addressLines?: string[];
|
|
103
|
-
description: string;
|
|
104
|
-
downloadUrl?: string;
|
|
105
|
-
driveSuccess: boolean;
|
|
106
|
-
duration?: unknown;
|
|
107
|
-
embedUrl: string;
|
|
108
|
-
iconUrl: string;
|
|
109
|
-
id: string;
|
|
110
|
-
isNew?: boolean;
|
|
111
|
-
isShared: boolean;
|
|
112
|
-
lastEditedUtc: number;
|
|
113
|
-
latitude?: unknown;
|
|
114
|
-
longitude?: unknown;
|
|
115
|
-
mimeType: string;
|
|
116
|
-
name: string;
|
|
117
|
-
organizationDisplayName?: string;
|
|
118
|
-
parentId?: string;
|
|
119
|
-
phoneNumbers?: Array<{
|
|
120
|
-
type: string;
|
|
121
|
-
number: any;
|
|
122
|
-
}>;
|
|
123
|
-
rotation?: number;
|
|
124
|
-
rotationDegree?: number;
|
|
125
|
-
serviceId: ServiceId;
|
|
126
|
-
sizeBytes: number;
|
|
127
|
-
thumbnails?: DocumentThumbnailObject[];
|
|
128
|
-
type: Type;
|
|
129
|
-
uploadState?: string;
|
|
130
|
-
url: string;
|
|
131
|
-
};
|
|
132
|
-
type ViewIdOptions = 'DOCS' | 'DOCS_IMAGES' | 'DOCS_IMAGES_AND_VIDEOS' | 'DOCS_VIDEOS' | 'DOCUMENTS' | 'DRAWINGS' | 'FOLDERS' | 'FORMS' | 'PDFS' | 'PRESENTATIONS' | 'SPREADSHEETS';
|
|
133
|
-
export {};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{cjs/types → es/src}/components/EmbbededNotification/EmbeddedNotification.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|