@groupeactual/ui-kit 1.6.7-beta.0 → 1.7.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.
- package/dist/cjs/index.js +9 -9
- package/dist/cjs/index.js.map +1 -1
- package/dist/es/index.d.ts +132 -166
- package/dist/es/index.js +97 -0
- package/dist/es/index.js.map +1 -0
- package/dist/{cjs/types → es/src}/components/Accordion/Accordion.d.ts +1 -4
- package/dist/es/{types → src}/components/BannerNotification/BannerNotification.d.ts +1 -4
- package/dist/es/{types → src}/components/Breadcrumbs/Breadcrumbs.d.ts +1 -4
- package/dist/{cjs/types → es/src}/components/Button/Button.d.ts +1 -4
- package/dist/es/{types → src}/components/Chip/Chip.d.ts +2 -5
- package/dist/es/{types → src}/components/Datatable/Datatable.d.ts +1 -1
- package/dist/es/{types → src}/components/Datatable/datatable.interface.d.ts +5 -4
- package/dist/{cjs/types → es/src}/components/EmbbededNotification/EmbeddedNotification.d.ts +1 -4
- package/dist/es/{types → src}/components/Form/AutoCompleteMulti/AutoCompleteMulti.d.ts +7 -6
- package/dist/{cjs/types → es/src}/components/Form/AutoCompleteSingle/AutoCompleteSingle.d.ts +4 -6
- package/dist/{cjs/types → es/src}/components/Form/Checkbox/Checkbox.d.ts +4 -7
- package/dist/es/src/components/Form/CheckboxGroup/CheckboxGroup.d.ts +12 -0
- package/dist/es/src/components/Form/CheckboxGroup/checkboxgroup.interface.d.ts +8 -0
- package/dist/{cjs/types → es/src}/components/Form/DatePicker/DatePicker.d.ts +1 -1
- package/dist/es/{types → src}/components/Form/MultiSelect/MultiSelect.d.ts +4 -7
- package/dist/{cjs/types → es/src}/components/Form/RadioGroup/RadioGroup.d.ts +2 -5
- package/dist/es/src/components/Form/Select/Select.d.ts +22 -0
- package/dist/{cjs/types → es/src}/components/Form/Switch/Switch.d.ts +1 -4
- package/dist/es/{types → src}/components/Form/TextField/TextField.d.ts +5 -6
- package/dist/es/src/components/Form/TimePicker/TimePicker.d.ts +20 -0
- package/dist/es/src/components/Form/TimePicker/index.d.ts +1 -0
- package/dist/es/src/components/IconButton/IconButton.d.ts +17 -0
- package/dist/{cjs/types → es/src}/components/IconProvider/IconProvider.d.ts +1 -4
- package/dist/es/{types → src}/components/Link/Link.d.ts +1 -4
- package/dist/es/src/components/MenuItem/MenuItem.d.ts +10 -0
- 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}/components/Navigation/Stepper/Step.d.ts +1 -1
- package/dist/{cjs/types → es/src}/components/Navigation/Stepper/Stepper.d.ts +1 -1
- package/dist/es/src/components/Pagination/Pagination.d.ts +13 -0
- package/dist/{cjs/types → es/src}/components/Snackbar/Snackbar.d.ts +1 -4
- package/dist/{cjs/types → es/src}/components/Text/Text.d.ts +1 -4
- package/dist/es/src/components/Tooltip/Tooltip.d.ts +11 -0
- package/dist/{cjs/types → es/src}/components/UploadDocument/FileUploaderSingle.d.ts +10 -11
- package/dist/es/src/components/UploadDocument/fileuploadersingle.interface.d.ts +5 -0
- package/dist/{cjs/types → es/src}/components/index.d.ts +2 -0
- package/dist/{cjs/types → es/src}/helpers/GooglePickerWrapper.d.ts +2 -1
- package/dist/es/src/hooks/useGooleDrivePicker.d.ts +4 -0
- package/dist/es/src/index.d.ts +4 -0
- package/package.json +30 -35
- package/src/DesignSystemProvider.tsx +2 -1
- package/src/components/Accordion/Accordion.tsx +4 -4
- package/src/components/BannerNotification/BannerNotification.tsx +1 -3
- package/src/components/Breadcrumbs/Breadcrumbs.tsx +2 -4
- package/src/components/Button/Button.tsx +0 -2
- package/src/components/Chip/Chip.tsx +2 -4
- package/src/components/Datatable/Datatable.tsx +31 -9
- package/src/components/Datatable/DatatableCellRender.tsx +4 -3
- package/src/components/Datatable/datatable.interface.ts +5 -4
- package/src/components/Datatable/use-pagination-props.hook.ts +2 -2
- package/src/components/EmbbededNotification/EmbeddedNotification.tsx +2 -4
- package/src/components/Form/AutoCompleteMulti/AutoCompleteMulti.tsx +37 -12
- package/src/components/Form/AutoCompleteSingle/AutoCompleteSingle.tsx +28 -11
- package/src/components/Form/Checkbox/Checkbox.tsx +24 -27
- package/src/components/Form/CheckboxGroup/CheckboxGroup.tsx +9 -26
- package/src/components/Form/CheckboxGroup/checkboxgroup.interface.ts +22 -0
- package/src/components/Form/DatePicker/DatePicker.tsx +16 -4
- package/src/components/Form/MultiSelect/MultiSelect.tsx +43 -14
- package/src/components/Form/RadioGroup/RadioGroup.tsx +20 -25
- package/src/components/Form/Select/Select.tsx +49 -12
- package/src/components/Form/Switch/Switch.tsx +0 -2
- package/src/components/Form/TextField/TextField.tsx +121 -108
- package/src/components/Form/TimePicker/TimePicker.tsx +228 -0
- package/src/components/Form/TimePicker/index.ts +1 -0
- package/src/components/IconButton/IconButton.tsx +15 -9
- package/src/components/IconProvider/IconProvider.tsx +3 -4
- package/src/components/Link/Link.tsx +0 -2
- package/src/components/MenuItem/MenuItem.tsx +10 -39
- 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 +4 -3
- package/src/components/Navigation/Stepper/Stepper.tsx +1 -1
- package/src/components/NotistackAdapter/NotistackAdapter.tsx +1 -1
- package/src/components/Pagination/Pagination.tsx +9 -14
- package/src/components/Snackbar/Snackbar.tsx +1 -3
- package/src/components/Text/Text.tsx +0 -2
- package/src/components/Tooltip/Tooltip.tsx +41 -32
- package/src/components/UploadDocument/FileUploaderSingle.tsx +97 -55
- package/src/components/UploadDocument/fileuploadersingle.interface.ts +5 -0
- package/src/components/index.ts +2 -0
- package/src/helpers/GooglePickerWrapper.tsx +3 -3
- package/src/hooks/useGooleDrivePicker.ts +10 -8
- package/src/index.ts +3 -5
- package/src/types/global.d.ts +6 -4
- package/src/types/googleDrive.ts +1 -0
- package/dist/cjs/types/components/BannerNotification/BannerNotification.d.ts +0 -11
- package/dist/cjs/types/components/Breadcrumbs/Breadcrumbs.d.ts +0 -15
- package/dist/cjs/types/components/Chip/Chip.d.ts +0 -19
- package/dist/cjs/types/components/Datatable/Datatable.d.ts +0 -4
- package/dist/cjs/types/components/Datatable/datatable.interface.d.ts +0 -53
- package/dist/cjs/types/components/Form/AutoCompleteMulti/AutoCompleteMulti.d.ts +0 -18
- package/dist/cjs/types/components/Form/CheckboxGroup/CheckboxGroup.d.ts +0 -20
- package/dist/cjs/types/components/Form/MultiSelect/MultiSelect.d.ts +0 -23
- package/dist/cjs/types/components/Form/Select/Select.d.ts +0 -22
- package/dist/cjs/types/components/Form/TextField/TextField.d.ts +0 -21
- package/dist/cjs/types/components/IconButton/IconButton.d.ts +0 -19
- package/dist/cjs/types/components/Link/Link.d.ts +0 -11
- package/dist/cjs/types/components/MenuItem/MenuItem.d.ts +0 -13
- 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/components/Pagination/Pagination.d.ts +0 -16
- package/dist/cjs/types/components/Tooltip/Tooltip.d.ts +0 -13
- package/dist/cjs/types/helpers/dataGetValue.d.ts +0 -2
- package/dist/cjs/types/hooks/useGooleDrivePicker.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/index.d.ts +0 -1
- 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/index.d.ts +0 -1
- package/dist/es/types/components/Datatable/DatatableCellRender.d.ts +0 -4
- 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/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/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/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 -78
- 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/src/helpers/dataGetValue.ts +0 -22
- /package/dist/{cjs/types → es/src}/DesignSystemProvider.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/index.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/index.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/DatatableCellRender.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/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/index.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/index.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/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/index.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/index.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/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/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/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/index.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/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/index.d.ts +0 -0
- /package/dist/{cjs/types → es/src}/types/googleDrive.d.ts +0 -0
package/dist/es/index.d.ts
CHANGED
|
@@ -1,43 +1,33 @@
|
|
|
1
|
-
import React, { ReactNode, FocusEventHandler, BaseSyntheticEvent, MouseEventHandler, MouseEvent,
|
|
1
|
+
import React, { ReactNode, FocusEventHandler, BaseSyntheticEvent, MouseEventHandler, MouseEvent, PropsWithChildren } from 'react';
|
|
2
2
|
import { TypographyProps, LinkProps, ButtonProps, TextFieldProps, SelectProps, CheckboxProps, RadioGroupProps, AccordionProps, BreadcrumbsProps, BoxProps, ChipProps, TooltipProps, AutocompleteProps, MenuItemProps, AlertProps, SxProps, Theme as Theme$1, CardProps, SwitchProps, IconButtonProps } from '@mui/material';
|
|
3
3
|
import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
|
|
4
4
|
import { BoxProps as BoxProps$1 } from '@mui/system';
|
|
5
|
-
import { IconDefinition as IconDefinition$1 } from '@fortawesome/pro-regular-svg-icons';
|
|
6
5
|
import { CustomContentProps } from 'notistack';
|
|
7
6
|
import { ModalProps as ModalProps$1 } from '@mui/material/Modal';
|
|
8
7
|
import { DatePickerProps } from '@mui/x-date-pickers-pro';
|
|
9
8
|
import { Dayjs } from 'dayjs';
|
|
10
9
|
|
|
11
|
-
interface Props$
|
|
10
|
+
interface Props$q extends Omit<TypographyProps, 'variant'> {
|
|
12
11
|
variant?: 'bigNumber' | 'body1' | 'body1Regular' | 'body1Medium' | 'body1Bold' | 'body2' | 'body2Regular' | 'body2Medium' | 'body2Bold' | 'caption' | 'buttonNotif' | 'header1' | 'header2' | 'header3' | 'header4' | 'h1' | 'h2' | 'h3' | 'h4' | 'link1' | 'link2';
|
|
13
12
|
component?: any;
|
|
14
13
|
}
|
|
15
|
-
declare const Text:
|
|
16
|
-
(props: Props$p): React.JSX.Element;
|
|
17
|
-
displayName: string;
|
|
18
|
-
};
|
|
14
|
+
declare const Text: (props: Props$q) => React.JSX.Element;
|
|
19
15
|
|
|
20
|
-
interface Props$
|
|
16
|
+
interface Props$p extends Omit<LinkProps, 'variant'> {
|
|
21
17
|
variant?: 'link1' | 'link2';
|
|
22
18
|
component?: any;
|
|
23
19
|
}
|
|
24
|
-
declare const Link:
|
|
25
|
-
(props: Props$o): React.JSX.Element;
|
|
26
|
-
displayName: string;
|
|
27
|
-
};
|
|
20
|
+
declare const Link: (props: Props$p) => React.JSX.Element;
|
|
28
21
|
|
|
29
|
-
interface Props$
|
|
22
|
+
interface Props$o extends Omit<ButtonProps, 'variant' | 'children'> {
|
|
30
23
|
variant?: 'primary' | 'secondary';
|
|
31
24
|
children?: ReactNode;
|
|
32
25
|
}
|
|
33
|
-
declare const Button: {
|
|
34
|
-
({ variant, children, ...props }: Props$n): React.JSX.Element;
|
|
35
|
-
displayName: string;
|
|
36
|
-
};
|
|
26
|
+
declare const Button: ({ variant, children, ...props }: Props$o) => React.JSX.Element;
|
|
37
27
|
|
|
38
|
-
interface Props$
|
|
28
|
+
interface Props$n extends Omit<TextFieldProps, 'error'> {
|
|
39
29
|
error?: string;
|
|
40
|
-
label
|
|
30
|
+
label?: string;
|
|
41
31
|
value?: string | unknown;
|
|
42
32
|
name?: string;
|
|
43
33
|
placeholder?: string;
|
|
@@ -46,35 +36,33 @@ interface Props$m extends Omit<TextFieldProps, 'error'> {
|
|
|
46
36
|
maxLength?: number;
|
|
47
37
|
width?: number | string;
|
|
48
38
|
className?: string;
|
|
39
|
+
focused?: boolean;
|
|
40
|
+
onClick?: (_e: React.MouseEvent<HTMLInputElement>) => void;
|
|
49
41
|
onBlur?: FocusEventHandler<unknown>;
|
|
50
|
-
onChange?: (
|
|
42
|
+
onChange?: (_e: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
|
|
51
43
|
}
|
|
52
|
-
declare const TextField:
|
|
53
|
-
({ name, value, error, onBlur, onChange, label, disabled, width, endAdornment, placeholder, maxLength, ...props }: Props$m): React.JSX.Element;
|
|
54
|
-
displayName: string;
|
|
55
|
-
};
|
|
44
|
+
declare const TextField: React.ForwardRefExoticComponent<Props$n & React.RefAttributes<HTMLDivElement>>;
|
|
56
45
|
|
|
57
|
-
interface Props$
|
|
46
|
+
interface Props$m<T> extends Omit<SelectProps<T>, 'value' | 'onChange' | 'color' | 'error'> {
|
|
58
47
|
options: T[];
|
|
59
48
|
placeholder?: string;
|
|
60
49
|
disabled?: boolean;
|
|
61
|
-
label
|
|
50
|
+
label?: string;
|
|
62
51
|
helperText?: string;
|
|
63
52
|
color?: 'success';
|
|
64
53
|
value: T | undefined;
|
|
65
54
|
width?: number | string;
|
|
66
55
|
error?: string;
|
|
67
56
|
className?: string;
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
57
|
+
popupIcon?: IconDefinition;
|
|
58
|
+
getRenderValue: (_option: T) => string;
|
|
59
|
+
onChange: (_value: T) => void;
|
|
60
|
+
onBlur?: (_event: BaseSyntheticEvent) => void;
|
|
61
|
+
onClick?: (_event: BaseSyntheticEvent) => void;
|
|
71
62
|
}
|
|
72
|
-
declare const Select: {
|
|
73
|
-
<T>({ value, label, options, color, error, placeholder, helperText, width, disabled, onChange, getRenderValue, ...props }: Props$l<T>): React.JSX.Element;
|
|
74
|
-
displayName: string;
|
|
75
|
-
};
|
|
63
|
+
declare const Select: <T>({ value, label, options, color, error, placeholder, helperText, width, disabled, popupIcon, onChange, getRenderValue, ...props }: Props$m<T>) => React.JSX.Element;
|
|
76
64
|
|
|
77
|
-
interface Props$
|
|
65
|
+
interface Props$l<T> extends Omit<SelectProps<T[]>, 'value' | 'onChange' | 'value' | 'color' | 'error'> {
|
|
78
66
|
label: string;
|
|
79
67
|
options: T[] | [];
|
|
80
68
|
helperText?: string;
|
|
@@ -86,48 +74,41 @@ interface Props$k<T> extends Omit<SelectProps<T[]>, 'value' | 'onChange' | 'valu
|
|
|
86
74
|
disabled?: boolean;
|
|
87
75
|
className?: string;
|
|
88
76
|
onBlur?: FocusEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
89
|
-
onChange: (
|
|
90
|
-
getRenderValue: (
|
|
91
|
-
getKeyValue: (
|
|
77
|
+
onChange: (_value: T[]) => void;
|
|
78
|
+
getRenderValue: (_option: T) => string;
|
|
79
|
+
getKeyValue: (_option: T) => string;
|
|
92
80
|
}
|
|
93
|
-
declare const MultiSelect: {
|
|
94
|
-
<T>({ value, label, options, color, error, placeholder, helperText, width, getRenderValue, getKeyValue, onChange, disabled, ...props }: Props$k<T>): React.JSX.Element;
|
|
95
|
-
displayName: string;
|
|
96
|
-
};
|
|
81
|
+
declare const MultiSelect: <T>({ value, label, options, color, error, placeholder, helperText, width, getRenderValue, getKeyValue, onChange, disabled, ...props }: Props$l<T>) => React.JSX.Element;
|
|
97
82
|
|
|
98
|
-
interface Props$
|
|
83
|
+
interface Props$k {
|
|
99
84
|
name: string;
|
|
100
85
|
value: boolean;
|
|
101
|
-
label:
|
|
102
|
-
onChange?: (
|
|
86
|
+
label: ReactNode;
|
|
87
|
+
onChange?: (_field: string, _value: boolean, _shouldValidate?: boolean | undefined) => void;
|
|
103
88
|
helperText?: string;
|
|
104
89
|
error?: string;
|
|
105
90
|
infoBubbleContent?: string;
|
|
106
91
|
infoBubblePosition?: 'top' | 'right' | 'bottom' | 'left' | 'bottom-end' | 'bottom-start' | 'left-end' | 'left-start' | 'right-end' | 'right-start' | 'top-end' | 'top-start' | undefined;
|
|
107
92
|
}
|
|
108
|
-
declare const Checkbox: {
|
|
109
|
-
({ name, value, error, helperText, label, infoBubbleContent, infoBubblePosition, onChange, disabled, ...props }: CheckboxProps & Props$j): React.JSX.Element;
|
|
110
|
-
displayName: string;
|
|
111
|
-
};
|
|
93
|
+
declare const Checkbox: ({ name, value, error, helperText, label, infoBubbleContent, infoBubblePosition, onChange, disabled, ...props }: CheckboxProps & Props$k) => React.JSX.Element;
|
|
112
94
|
|
|
113
|
-
interface
|
|
114
|
-
label:
|
|
95
|
+
interface CheckboxItemType {
|
|
96
|
+
label: ReactNode;
|
|
115
97
|
value: boolean;
|
|
116
98
|
name: string;
|
|
117
99
|
infoBubbleContent?: string;
|
|
118
100
|
infoBubblePosition?: 'right' | 'bottom' | 'left' | 'top' | 'bottom-end' | 'bottom-start' | 'left-end' | 'left-start' | 'right-end' | 'right-start' | 'top-end' | 'top-start' | undefined;
|
|
119
101
|
}
|
|
102
|
+
|
|
120
103
|
interface CheckboxGroupProps {
|
|
121
104
|
label: string;
|
|
122
|
-
options:
|
|
105
|
+
options: CheckboxItemType[];
|
|
123
106
|
disabled?: boolean;
|
|
124
107
|
error?: string;
|
|
125
108
|
helperText?: string;
|
|
109
|
+
onChange?: (_selectedOptions: Record<string, boolean>) => void;
|
|
126
110
|
}
|
|
127
|
-
declare const CheckboxGroup: {
|
|
128
|
-
({ options, label, disabled, error, helperText, }: CheckboxGroupProps): React.JSX.Element;
|
|
129
|
-
displayName: string;
|
|
130
|
-
};
|
|
111
|
+
declare const CheckboxGroup: ({ options, label, disabled, error, helperText, onChange, }: CheckboxGroupProps) => React.JSX.Element;
|
|
131
112
|
|
|
132
113
|
interface ItemType<T> {
|
|
133
114
|
label: string;
|
|
@@ -135,20 +116,17 @@ interface ItemType<T> {
|
|
|
135
116
|
infoBubbleContent?: string;
|
|
136
117
|
infoBubblePosition?: 'top' | 'right' | 'bottom' | 'left' | 'bottom-end' | 'bottom-start' | 'left-end' | 'left-start' | 'right-end' | 'right-start' | 'top-end' | 'top-start' | undefined;
|
|
137
118
|
}
|
|
138
|
-
interface Props$
|
|
119
|
+
interface Props$j<T> extends Omit<RadioGroupProps, 'onChange'> {
|
|
139
120
|
label: string;
|
|
140
121
|
options: ItemType<T>[];
|
|
141
|
-
onChange: (
|
|
122
|
+
onChange: (_value: T) => void;
|
|
142
123
|
error?: string;
|
|
143
124
|
helperText?: string;
|
|
144
125
|
disabled?: boolean;
|
|
145
126
|
}
|
|
146
|
-
declare const RadioGroup: {
|
|
147
|
-
<T>({ options, value, label, onChange, helperText, disabled, error, ...props }: Props$i<T>): React.JSX.Element;
|
|
148
|
-
displayName: string;
|
|
149
|
-
};
|
|
127
|
+
declare const RadioGroup: <T>({ options, value, label, onChange, helperText, disabled, error, ...props }: Props$j<T>) => React.JSX.Element;
|
|
150
128
|
|
|
151
|
-
interface Props$
|
|
129
|
+
interface Props$i extends AccordionProps {
|
|
152
130
|
title?: string;
|
|
153
131
|
summaryHeight?: number;
|
|
154
132
|
expanded?: boolean;
|
|
@@ -156,23 +134,17 @@ interface Props$h extends AccordionProps {
|
|
|
156
134
|
disabled?: boolean;
|
|
157
135
|
onClick?: MouseEventHandler;
|
|
158
136
|
}
|
|
159
|
-
declare const Accordion: {
|
|
160
|
-
({ title, summaryHeight, expanded, onClick, children, ...props }: Props$h): React.JSX.Element;
|
|
161
|
-
displayName: string;
|
|
162
|
-
};
|
|
137
|
+
declare const Accordion: ({ title, summaryHeight, expanded, onClick, children, ...props }: Props$i) => React.JSX.Element;
|
|
163
138
|
|
|
164
139
|
interface LinkItem {
|
|
165
140
|
link: string;
|
|
166
141
|
title: string;
|
|
167
142
|
}
|
|
168
|
-
interface Props$
|
|
143
|
+
interface Props$h extends BreadcrumbsProps {
|
|
169
144
|
PageName: string;
|
|
170
145
|
links: LinkItem[];
|
|
171
146
|
}
|
|
172
|
-
declare const Breadcrumbs: {
|
|
173
|
-
({ PageName, links, ...props }: Props$g): React.JSX.Element;
|
|
174
|
-
displayName: string;
|
|
175
|
-
};
|
|
147
|
+
declare const Breadcrumbs: ({ PageName, links, ...props }: Props$h) => React.JSX.Element;
|
|
176
148
|
|
|
177
149
|
declare const FontSizes: {
|
|
178
150
|
xs: number;
|
|
@@ -183,107 +155,100 @@ declare const FontSizes: {
|
|
|
183
155
|
xxl: number;
|
|
184
156
|
xxxl: number;
|
|
185
157
|
};
|
|
186
|
-
interface Props$
|
|
158
|
+
interface Props$g {
|
|
187
159
|
variant?: 'square' | 'none';
|
|
188
160
|
icon: IconDefinition;
|
|
189
161
|
color?: string;
|
|
190
162
|
size?: number | keyof typeof FontSizes;
|
|
191
163
|
}
|
|
192
|
-
declare const IconProvider: {
|
|
193
|
-
({ variant, icon, color, size, sx, ...props }: Props$f & BoxProps): JSX.Element;
|
|
194
|
-
displayName: string;
|
|
195
|
-
};
|
|
164
|
+
declare const IconProvider: ({ variant, icon, color, size, sx, ...props }: Props$g & BoxProps) => JSX.Element;
|
|
196
165
|
|
|
197
|
-
interface Props$
|
|
166
|
+
interface Props$f {
|
|
198
167
|
totalString: string;
|
|
199
168
|
totalPerPageString: string;
|
|
200
169
|
totalRows: number;
|
|
201
170
|
limitsPerPage?: number[];
|
|
202
171
|
page?: number;
|
|
203
172
|
limit?: number;
|
|
204
|
-
setPage?: (
|
|
205
|
-
setLimit?: (
|
|
173
|
+
setPage?: (_page: number) => void;
|
|
174
|
+
setLimit?: (_limit: number) => void;
|
|
206
175
|
}
|
|
207
|
-
declare const Pagination: {
|
|
208
|
-
({ totalString, totalPerPageString, limitsPerPage, setLimit, setPage, page, totalRows, limit, }: Props$e): React.JSX.Element;
|
|
209
|
-
displayName: string;
|
|
210
|
-
};
|
|
176
|
+
declare const Pagination: ({ totalString, totalPerPageString, limitsPerPage, setLimit, setPage, page, totalRows, limit, }: Props$f) => React.JSX.Element;
|
|
211
177
|
|
|
212
|
-
interface Props$
|
|
178
|
+
interface Props$e extends Omit<ChipProps, 'suffix' | 'prefix' | 'onDelete' | 'onDeleteIcon' | 'variant'> {
|
|
213
179
|
variant: 'filled' | 'outlined' | 'status' | 'statusFilled';
|
|
214
180
|
label: string;
|
|
215
181
|
prefixIcon?: IconDefinition;
|
|
216
182
|
suffixIcon?: IconDefinition;
|
|
217
|
-
suffixAction?: (
|
|
183
|
+
suffixAction?: (_e: MouseEvent) => void;
|
|
218
184
|
suffixTooltip?: string;
|
|
219
185
|
tooltip?: string;
|
|
220
186
|
maxWidth?: string | number;
|
|
221
187
|
maxLength?: number;
|
|
222
188
|
}
|
|
223
|
-
declare const Chip: {
|
|
224
|
-
({ variant, label, prefixIcon, suffixIcon, suffixTooltip, suffixAction, tooltip, maxWidth, ...props }: Props$d): React.JSX.Element;
|
|
225
|
-
displayName: string;
|
|
226
|
-
};
|
|
189
|
+
declare const Chip: ({ variant, label, prefixIcon, suffixIcon, suffixTooltip, suffixAction, tooltip, maxWidth, ...props }: Props$e) => React.JSX.Element;
|
|
227
190
|
|
|
228
|
-
interface Props$
|
|
191
|
+
interface Props$d extends BoxProps$1 {
|
|
229
192
|
variant: 'warning' | 'error' | 'success' | 'infos';
|
|
230
193
|
title: string;
|
|
231
194
|
text?: ReactNode;
|
|
232
195
|
actionButton?: ReactNode;
|
|
233
196
|
}
|
|
234
|
-
declare const EmbeddedNotification: {
|
|
235
|
-
({ title, text, variant, actionButton, ...props }: Props$c): React.JSX.Element;
|
|
236
|
-
displayName: string;
|
|
237
|
-
};
|
|
197
|
+
declare const EmbeddedNotification: ({ title, text, variant, actionButton, ...props }: Props$d) => React.JSX.Element;
|
|
238
198
|
|
|
239
199
|
type Placement = 'right' | 'bottom' | 'left' | 'top' | 'bottom-end' | 'bottom-start' | 'left-end' | 'left-start' | 'right-end' | 'right-start' | 'top-end' | 'top-start' | undefined;
|
|
240
200
|
|
|
241
|
-
interface Props$
|
|
242
|
-
title:
|
|
243
|
-
children:
|
|
201
|
+
interface Props$c extends Omit<TooltipProps, 'icon' | 'children' | 'placement'> {
|
|
202
|
+
title: ReactNode;
|
|
203
|
+
children: ReactNode;
|
|
244
204
|
placement?: Placement;
|
|
205
|
+
placementMargin?: number;
|
|
245
206
|
}
|
|
246
|
-
declare const Tooltip: {
|
|
247
|
-
({ title, placement, children, ...tooltipProps }: Props$b): React.JSX.Element;
|
|
248
|
-
displayName: string;
|
|
249
|
-
};
|
|
207
|
+
declare const Tooltip: ({ title, placement, children, placementMargin, ...tooltipProps }: Props$c) => React.JSX.Element;
|
|
250
208
|
|
|
251
|
-
interface Props$
|
|
209
|
+
interface Props$b<T> extends Omit<AutocompleteProps<T, false, false, false>, 'onChange' | 'value' | 'options' | 'renderInput' | 'error' | 'getOptionLabel'> {
|
|
252
210
|
label: string;
|
|
253
211
|
options: T[];
|
|
254
212
|
helperText?: string;
|
|
255
213
|
color?: 'success';
|
|
256
214
|
placeholder?: string;
|
|
257
|
-
getOptionLabel: (
|
|
258
|
-
onChange: (
|
|
215
|
+
getOptionLabel: (_option: T) => string | null | undefined;
|
|
216
|
+
onChange: (_value: T | null) => void;
|
|
259
217
|
value?: T | null;
|
|
260
218
|
width?: number | string;
|
|
261
219
|
error?: string;
|
|
220
|
+
searchIcon?: boolean;
|
|
262
221
|
}
|
|
263
|
-
declare const AutoCompleteSingle: {
|
|
264
|
-
<T>({ value, label, placeholder, options, disabled, getOptionLabel, onChange, width, color, helperText, error, ...props }: Props$a<T>): React.JSX.Element;
|
|
265
|
-
displayName: string;
|
|
266
|
-
};
|
|
222
|
+
declare const AutoCompleteSingle: <T>({ value, label, placeholder, options, disabled, getOptionLabel, onChange, width, color, helperText, error, searchIcon, ...props }: Props$b<T>) => React.JSX.Element;
|
|
267
223
|
|
|
268
|
-
interface AutocompleteMultipleSelectProps<T> extends Omit<AutocompleteProps<T, true, true, false>, 'onChange' | 'value' | 'options' | 'renderInput' | 'error'> {
|
|
224
|
+
interface AutocompleteMultipleSelectProps<T> extends Omit<AutocompleteProps<T, true, true, false>, 'onChange' | 'value' | 'options' | 'renderInput' | 'error' | 'autocomplete' | 'searchIcon'> {
|
|
269
225
|
value: T[] | undefined;
|
|
270
226
|
label?: string;
|
|
271
227
|
helperText?: string;
|
|
272
228
|
placeholder?: string;
|
|
273
229
|
options: T[];
|
|
274
|
-
getOptionLabel: (
|
|
275
|
-
getKeyValue: (
|
|
276
|
-
onChange: (
|
|
277
|
-
getOptionDisabled?: (
|
|
230
|
+
getOptionLabel: (_option: T) => string;
|
|
231
|
+
getKeyValue: (_option: T) => string;
|
|
232
|
+
onChange: (_value: T[]) => void;
|
|
233
|
+
getOptionDisabled?: (_option: T) => boolean;
|
|
278
234
|
color?: 'success';
|
|
279
235
|
width?: number | string;
|
|
280
236
|
error?: string;
|
|
237
|
+
searchIcon?: boolean;
|
|
238
|
+
}
|
|
239
|
+
declare const AutocompleteMultipleSelect: <T>({ value, label, placeholder, options, disabled, getOptionLabel, getKeyValue, onChange, getOptionDisabled, width, color, helperText, error, searchIcon, ...props }: AutocompleteMultipleSelectProps<T>) => React.JSX.Element;
|
|
240
|
+
|
|
241
|
+
interface acceptText {
|
|
242
|
+
fileFormat?: string;
|
|
243
|
+
maxSize?: string;
|
|
244
|
+
subText?: string;
|
|
281
245
|
}
|
|
282
|
-
declare const AutocompleteMultipleSelect: <T>({ value, label, placeholder, options, disabled, getOptionLabel, getKeyValue, onChange, getOptionDisabled, width, color, helperText, error, ...props }: AutocompleteMultipleSelectProps<T>) => React.JSX.Element;
|
|
283
246
|
|
|
284
|
-
interface Props$
|
|
285
|
-
setFile: (
|
|
286
|
-
|
|
247
|
+
interface Props$a {
|
|
248
|
+
setFile: (_file: File | null) => void;
|
|
249
|
+
title?: string;
|
|
250
|
+
titleTooltip?: string;
|
|
251
|
+
enableGoogleDrive?: boolean;
|
|
287
252
|
googleAuthClientId?: string;
|
|
288
253
|
googleApiKey?: string;
|
|
289
254
|
error?: boolean;
|
|
@@ -291,19 +256,15 @@ interface Props$9 {
|
|
|
291
256
|
fileUrl?: string | null;
|
|
292
257
|
fileName?: string | null;
|
|
293
258
|
accept?: string[];
|
|
294
|
-
acceptText?:
|
|
295
|
-
fileFormat?: string;
|
|
296
|
-
maxSize?: string;
|
|
297
|
-
subText?: string;
|
|
298
|
-
};
|
|
259
|
+
acceptText?: acceptText;
|
|
299
260
|
disabledInput?: boolean;
|
|
300
|
-
title?: string;
|
|
301
261
|
children?: JSX.Element | null;
|
|
302
262
|
titleAddButton?: string;
|
|
303
|
-
|
|
263
|
+
_isDroppingFile?: boolean;
|
|
264
|
+
validateFile?: (_size: number, _type: string) => boolean;
|
|
304
265
|
removeExistingFile?: () => void;
|
|
305
266
|
onTouched?: () => void;
|
|
306
|
-
onFileDataChange?: (
|
|
267
|
+
onFileDataChange?: (_fileData: {
|
|
307
268
|
name: string;
|
|
308
269
|
size: number;
|
|
309
270
|
type?: string;
|
|
@@ -356,37 +317,29 @@ interface Props$9 {
|
|
|
356
317
|
* @param {Function} onFileDataChange - Callback function to handle file data changes and give you all informations you need
|
|
357
318
|
* to handle google drive file.
|
|
358
319
|
*/
|
|
359
|
-
declare const FileUploaderSingle: ({ enableGoogleDrive, googleAuthClientId, googleApiKey, error, helperText, accept, acceptText, title, disabledInput, children, fileUrl, fileName, titleAddButton, validateFile, setFile, removeExistingFile, onTouched, onFileDataChange, }: Props$
|
|
320
|
+
declare const FileUploaderSingle: ({ enableGoogleDrive, googleAuthClientId, googleApiKey, error, helperText, accept, acceptText, title, titleTooltip, disabledInput, children, fileUrl, fileName, titleAddButton, _isDroppingFile, validateFile, setFile, removeExistingFile, onTouched, onFileDataChange, }: Props$a) => React.JSX.Element;
|
|
360
321
|
|
|
361
|
-
interface Props$
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
text: string;
|
|
366
|
-
value?: string;
|
|
322
|
+
interface Props$9 extends Omit<MenuItemProps, 'onClick'> {
|
|
323
|
+
onClick: (_event?: React.MouseEvent<HTMLElement>) => void;
|
|
324
|
+
children: NonNullable<ReactNode>;
|
|
325
|
+
testId?: string;
|
|
367
326
|
disabled?: boolean;
|
|
368
327
|
}
|
|
369
|
-
declare const
|
|
328
|
+
declare const MenuItem: ({ onClick, children, testId, disabled, ...props }: Props$9) => React.JSX.Element;
|
|
370
329
|
|
|
371
|
-
interface Props$
|
|
330
|
+
interface Props$8 extends Omit<AlertProps, 'severity' | 'text'> {
|
|
372
331
|
text: string | React.ReactNode;
|
|
373
332
|
severity: 'success' | 'warning' | 'error' | 'info';
|
|
374
333
|
}
|
|
375
|
-
declare const Snackbar: {
|
|
376
|
-
({ text, severity }: Props$7): React.JSX.Element;
|
|
377
|
-
displayName: string;
|
|
378
|
-
};
|
|
334
|
+
declare const Snackbar: ({ text, severity }: Props$8) => React.JSX.Element;
|
|
379
335
|
|
|
380
336
|
declare const NotistackAdapter: React.ForwardRefExoticComponent<CustomContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
381
337
|
|
|
382
|
-
interface Props$
|
|
338
|
+
interface Props$7 extends AlertProps {
|
|
383
339
|
text: string;
|
|
384
340
|
onClose?: () => void;
|
|
385
341
|
}
|
|
386
|
-
declare const BannerNotification: {
|
|
387
|
-
({ text, severity, onClose }: Props$6): React.JSX.Element;
|
|
388
|
-
displayName: string;
|
|
389
|
-
};
|
|
342
|
+
declare const BannerNotification: ({ text, severity, onClose }: Props$7) => React.JSX.Element;
|
|
390
343
|
|
|
391
344
|
interface StepperItem {
|
|
392
345
|
label: string;
|
|
@@ -400,13 +353,13 @@ interface Step {
|
|
|
400
353
|
icon: IconDefinition;
|
|
401
354
|
}
|
|
402
355
|
|
|
403
|
-
interface Props$
|
|
356
|
+
interface Props$6 {
|
|
404
357
|
steps: Step[];
|
|
405
358
|
canNavigate: boolean;
|
|
406
|
-
onNavigate?: (
|
|
359
|
+
onNavigate?: (_url: string) => void;
|
|
407
360
|
sx?: SxProps<Theme$1>;
|
|
408
361
|
}
|
|
409
|
-
declare const Stepper: ({ steps, canNavigate, onNavigate, sx, }: Props$
|
|
362
|
+
declare const Stepper: ({ steps, canNavigate, onNavigate, sx, }: Props$6) => React.JSX.Element;
|
|
410
363
|
|
|
411
364
|
interface ModalProps extends Omit<ModalProps$1, 'component' | 'open' | 'className' | 'onClose'> {
|
|
412
365
|
open: boolean;
|
|
@@ -424,27 +377,41 @@ declare const Drawer: ({ title, open, onClose, component, footer, cardProps, siz
|
|
|
424
377
|
|
|
425
378
|
declare const Dialog: ({ title, open, onClose, component, icon, ...props }: Omit<ModalProps, "footer" | "cardProps" | "size">) => React.JSX.Element;
|
|
426
379
|
|
|
427
|
-
interface Props$
|
|
380
|
+
interface Props$5 {
|
|
428
381
|
label: string;
|
|
429
382
|
checked: boolean;
|
|
430
383
|
leftSideLabel?: string;
|
|
431
384
|
onClick: () => void;
|
|
432
385
|
}
|
|
433
|
-
declare const Switch: {
|
|
434
|
-
({ label, checked, leftSideLabel, onClick, ...props }: SwitchProps & Props$4): React.JSX.Element;
|
|
435
|
-
displayName: string;
|
|
436
|
-
};
|
|
386
|
+
declare const Switch: ({ label, checked, leftSideLabel, onClick, ...props }: SwitchProps & Props$5) => React.JSX.Element;
|
|
437
387
|
|
|
438
|
-
interface Props$
|
|
388
|
+
interface Props$4<T extends Dayjs> extends Omit<DatePickerProps<T>, 'onChange' | 'width'> {
|
|
439
389
|
value: T | null | undefined;
|
|
440
|
-
onChange: (
|
|
390
|
+
onChange: (_value: T | null | undefined) => void;
|
|
441
391
|
error?: string;
|
|
442
392
|
success?: boolean;
|
|
443
393
|
helperText?: string;
|
|
444
394
|
width?: string;
|
|
445
395
|
locale?: 'fr' | 'en';
|
|
446
396
|
}
|
|
447
|
-
declare const DatePicker: <T extends Dayjs>({ value, onChange, error, success, helperText, width, locale, ...props }: Props$
|
|
397
|
+
declare const DatePicker: <T extends Dayjs>({ value, onChange, error, success, helperText, width, locale, ...props }: Props$4<T>) => React.JSX.Element;
|
|
398
|
+
|
|
399
|
+
interface Props$3 extends Omit<TextFieldProps, 'error' | 'onChange'> {
|
|
400
|
+
value: Dayjs | undefined;
|
|
401
|
+
onChange?: (_time: string | Dayjs | undefined) => void;
|
|
402
|
+
onTouched?: () => void;
|
|
403
|
+
label?: string;
|
|
404
|
+
helperText?: string;
|
|
405
|
+
minTime?: Dayjs;
|
|
406
|
+
maxTime?: Dayjs;
|
|
407
|
+
timeStep?: number;
|
|
408
|
+
error?: string;
|
|
409
|
+
disabled?: boolean;
|
|
410
|
+
width?: string | number;
|
|
411
|
+
locale?: 'fr' | 'en';
|
|
412
|
+
color?: 'success';
|
|
413
|
+
}
|
|
414
|
+
declare const TimePicker: ({ value, label, helperText, error, disabled, minTime, maxTime, timeStep, locale, width, color, onTouched, onChange, ...props }: Props$3) => React.JSX.Element;
|
|
448
415
|
|
|
449
416
|
type Order = 'asc' | 'desc';
|
|
450
417
|
interface SortInfo {
|
|
@@ -457,7 +424,7 @@ interface PaginationTrans {
|
|
|
457
424
|
}
|
|
458
425
|
type ColumnDatatable<T> = {
|
|
459
426
|
name: string;
|
|
460
|
-
render: (
|
|
427
|
+
render: (_record: T) => JSX.Element;
|
|
461
428
|
title?: string;
|
|
462
429
|
topTitle?: string;
|
|
463
430
|
width?: string;
|
|
@@ -471,15 +438,16 @@ type BaseProps<T> = {
|
|
|
471
438
|
withPagination: boolean;
|
|
472
439
|
withHeader?: boolean;
|
|
473
440
|
sortInfo?: SortInfo | null;
|
|
474
|
-
|
|
441
|
+
isTableLayoutFixed?: boolean;
|
|
442
|
+
onSort?: (_info: SortInfo | null) => void;
|
|
475
443
|
};
|
|
476
444
|
type WithoutPaginationProps = {
|
|
477
445
|
withPagination: false;
|
|
478
446
|
};
|
|
479
447
|
type PaginationProps = {
|
|
480
448
|
withPagination: true;
|
|
481
|
-
setPage: (
|
|
482
|
-
setLimit: (
|
|
449
|
+
setPage: (_page: number) => void;
|
|
450
|
+
setLimit: (_limit: number) => void;
|
|
483
451
|
trans: PaginationTrans;
|
|
484
452
|
withTopPagination?: boolean;
|
|
485
453
|
limits?: number[];
|
|
@@ -498,13 +466,13 @@ type WithoutDetailsProps<T> = {
|
|
|
498
466
|
};
|
|
499
467
|
type Props$2<T extends object> = BaseProps<T> & (WithoutPaginationProps | PaginationProps) & (WithDetailsProps<T, RowDetail> | WithoutDetailsProps<T>);
|
|
500
468
|
|
|
501
|
-
declare const Datatable: <T extends object>({ onLoad, onSort, sortInfo, withHeader, withPagination, columns, ...props }: Props$2<T>) => React.JSX.Element;
|
|
469
|
+
declare const Datatable: <T extends object>({ onLoad, onSort, sortInfo, withHeader, withPagination, columns, isTableLayoutFixed, ...props }: Props$2<T>) => React.JSX.Element;
|
|
502
470
|
|
|
503
471
|
declare const DatatableCellRender: ({ data }: {
|
|
504
472
|
data: string;
|
|
505
473
|
}) => JSX.Element;
|
|
506
474
|
|
|
507
|
-
interface Props$1 extends IconButtonProps {
|
|
475
|
+
interface Props$1 extends Omit<IconButtonProps, 'color'> {
|
|
508
476
|
icon: IconDefinition;
|
|
509
477
|
variant?: 'default' | 'table';
|
|
510
478
|
positionGroup?: 'left' | 'middle' | 'right';
|
|
@@ -512,12 +480,10 @@ interface Props$1 extends IconButtonProps {
|
|
|
512
480
|
tooltipPosition?: Placement;
|
|
513
481
|
size?: 'small' | 'medium';
|
|
514
482
|
sx?: SxProps<Theme$1>;
|
|
515
|
-
|
|
483
|
+
color?: string;
|
|
484
|
+
onClick?: MouseEventHandler | undefined;
|
|
516
485
|
}
|
|
517
|
-
declare const IconButton: {
|
|
518
|
-
({ icon, variant, positionGroup, tooltipText, tooltipPosition, size, ...iconButtonProps }: Props$1): React.JSX.Element;
|
|
519
|
-
displayName: string;
|
|
520
|
-
};
|
|
486
|
+
declare const IconButton: ({ icon, variant, positionGroup, tooltipText, tooltipPosition, size, color, onClick, ...iconButtonProps }: Props$1) => React.JSX.Element;
|
|
521
487
|
|
|
522
488
|
type Theme = 'Default' | 'Ep';
|
|
523
489
|
interface DesignSystemContextValues {
|
|
@@ -531,4 +497,4 @@ interface Props {
|
|
|
531
497
|
}
|
|
532
498
|
declare const DesignSystemProvider: ({ children, name: themeName, }: PropsWithChildren<Props>) => React.JSX.Element;
|
|
533
499
|
|
|
534
|
-
export { Accordion, AutocompleteMultipleSelect as AutoCompleteMulti, AutoCompleteSingle, BannerNotification, Breadcrumbs, Button, Checkbox, CheckboxGroup, Chip, Datatable, DatatableCellRender, DatePicker, DesignSystemContext, type DesignSystemContextValues, DesignSystemProvider, Dialog, Drawer, EmbeddedNotification, FileUploaderSingle, IconButton, IconProvider, Link,
|
|
500
|
+
export { Accordion, AutocompleteMultipleSelect as AutoCompleteMulti, AutoCompleteSingle, BannerNotification, Breadcrumbs, Button, Checkbox, CheckboxGroup, type CheckboxItemType, Chip, Datatable, DatatableCellRender, DatePicker, DesignSystemContext, type DesignSystemContextValues, DesignSystemProvider, Dialog, Drawer, EmbeddedNotification, FileUploaderSingle, IconButton, IconProvider, Link, MenuItem, MultiSelect, NotistackAdapter, Pagination, RadioGroup, Select, Snackbar, Stepper, Switch, Text, TextField, TimePicker, Tooltip };
|