@groupeactual/ui-kit 1.7.10 → 2.0.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 +15097 -66
- package/dist/es/{src/DesignSystemProvider.d.ts → DesignSystemProvider.d.ts} +6 -5
- package/dist/es/{src/components → components}/Accordion/Accordion.d.ts +1 -1
- package/dist/es/{src/components → components}/BannerNotification/BannerNotification.d.ts +1 -1
- package/dist/es/{src/components → components}/Breadcrumbs/Breadcrumbs.d.ts +2 -2
- package/dist/es/{src/components → components}/Button/Button.d.ts +2 -2
- package/dist/es/{src/components → components}/Chip/Chip.d.ts +1 -1
- package/dist/es/components/Datatable/Datatable.d.ts +4 -0
- package/dist/es/{src/components → components}/EmbbededNotification/EmbeddedNotification.d.ts +1 -1
- package/dist/es/{src/components/UploadDocument → components/FileUploader}/FileUploader.d.ts +1 -1
- package/dist/es/components/Form/AutoCompleteMulti/AutoCompleteMulti.d.ts +23 -0
- package/dist/es/{src/components → components}/Form/AutoCompleteSingle/AutoCompleteSingle.d.ts +8 -5
- package/dist/es/components/Form/Checkbox/Checkbox.d.ts +12 -0
- package/dist/es/components/Form/CheckboxGroup/CheckboxGroup.d.ts +12 -0
- package/dist/es/components/Form/CheckboxGroup/checkboxgroup.interface.d.ts +6 -0
- package/dist/es/{src/components → components}/Form/DatePicker/DatePicker.d.ts +6 -4
- package/dist/es/{src/components → components}/Form/MultiSelect/MultiSelect.d.ts +3 -3
- package/dist/es/components/Form/RadioGroup/RadioGroup.d.ts +16 -0
- package/dist/es/{src/components → components}/Form/Select/Select.d.ts +3 -3
- package/dist/es/components/Form/Switch/Switch.d.ts +11 -0
- package/dist/es/{src/components → components}/Form/TextField/TextField.d.ts +6 -5
- package/dist/es/{src/components → components}/Form/TimePicker/TimePicker.d.ts +3 -3
- package/dist/es/{src/components → components}/IconButton/IconButton.d.ts +3 -3
- package/dist/es/components/IconProvider/IconProvider.d.ts +24 -0
- package/dist/es/{src/components → components}/Link/Link.d.ts +1 -2
- package/dist/es/components/MenuItem/MenuItem.d.ts +9 -0
- package/dist/es/components/Modal/Dialog/Dialog.d.ts +4 -0
- package/dist/es/components/Modal/Drawer/Drawer.d.ts +4 -0
- package/dist/es/{src/components → components}/Navigation/Stepper/Stepper.d.ts +1 -1
- package/dist/es/{src/components → components}/Pagination/Pagination.d.ts +2 -1
- package/dist/es/{src/components → components}/Snackbar/Snackbar.d.ts +1 -1
- package/dist/es/components/TabsPanel/TabsPanel.d.ts +4 -0
- package/dist/es/components/TabsPanel/index.d.ts +1 -0
- package/dist/es/components/TabsPanel/tab.interface.d.ts +17 -0
- package/dist/es/components/Text/Text.d.ts +8 -0
- package/dist/es/{src/components → components}/Tooltip/Tooltip.d.ts +1 -1
- package/dist/es/{src/components → components}/index.d.ts +3 -2
- package/dist/es/index.d.ts +104 -152
- package/dist/es/index.js +37 -79
- package/package.json +20 -17
- package/src/DesignSystemProvider.tsx +21 -36
- package/src/components/Accordion/Accordion.tsx +41 -59
- package/src/components/BannerNotification/BannerNotification.tsx +19 -20
- package/src/components/Breadcrumbs/Breadcrumbs.tsx +32 -28
- package/src/components/Button/Button.tsx +70 -17
- package/src/components/Chip/Chip.tsx +88 -117
- package/src/components/Datatable/Datatable.tsx +49 -37
- package/src/components/Datatable/DatatableCellRender.tsx +1 -1
- package/src/components/EmbbededNotification/EmbeddedNotification.tsx +78 -69
- package/src/components/FileUploader/FileUploader.tsx +767 -0
- package/src/components/Form/AutoCompleteMulti/AutoCompleteMulti.tsx +289 -172
- package/src/components/Form/AutoCompleteSingle/AutoCompleteSingle.tsx +228 -126
- package/src/components/Form/Checkbox/Checkbox.tsx +38 -96
- package/src/components/Form/CheckboxGroup/CheckboxGroup.tsx +86 -60
- package/src/components/Form/CheckboxGroup/checkboxgroup.interface.ts +0 -15
- package/src/components/Form/DatePicker/DatePicker.tsx +88 -40
- package/src/components/Form/MultiSelect/MultiSelect.tsx +196 -171
- package/src/components/Form/RadioGroup/RadioGroup.tsx +76 -82
- package/src/components/Form/Select/Select.tsx +156 -136
- package/src/components/Form/Switch/Switch.tsx +87 -47
- package/src/components/Form/TextField/TextField.tsx +125 -76
- package/src/components/Form/TimePicker/TimePicker.tsx +26 -7
- package/src/components/IconButton/IconButton.tsx +64 -39
- package/src/components/IconProvider/IconProvider.tsx +90 -69
- package/src/components/Link/Link.tsx +6 -10
- package/src/components/MenuItem/MenuItem.tsx +35 -23
- package/src/components/Modal/Dialog/Dialog.tsx +17 -14
- package/src/components/Modal/Drawer/Drawer.tsx +95 -74
- package/src/components/Navigation/Stepper/Step.tsx +7 -6
- package/src/components/Navigation/Stepper/Stepper.tsx +24 -23
- package/src/components/NotistackAdapter/NotistackAdapter.tsx +1 -1
- package/src/components/Pagination/Pagination.tsx +131 -118
- package/src/components/Snackbar/Snackbar.tsx +29 -29
- package/src/components/TabsPanel/TabsPanel.tsx +151 -0
- package/src/components/TabsPanel/index.ts +1 -0
- package/src/components/TabsPanel/tab.interface.ts +20 -0
- package/src/components/Text/Text.tsx +25 -12
- package/src/components/Tooltip/Tooltip.tsx +54 -51
- package/src/components/index.ts +3 -2
- package/src/index.ts +0 -1
- package/dist/es/src/components/Datatable/Datatable.d.ts +0 -4
- package/dist/es/src/components/Form/AutoCompleteMulti/AutoCompleteMulti.d.ts +0 -19
- package/dist/es/src/components/Form/Checkbox/Checkbox.d.ts +0 -14
- package/dist/es/src/components/Form/CheckboxGroup/CheckboxGroup.d.ts +0 -12
- package/dist/es/src/components/Form/CheckboxGroup/checkboxgroup.interface.d.ts +0 -8
- package/dist/es/src/components/Form/RadioGroup/RadioGroup.d.ts +0 -18
- package/dist/es/src/components/Form/Switch/Switch.d.ts +0 -10
- package/dist/es/src/components/IconProvider/IconProvider.d.ts +0 -19
- package/dist/es/src/components/MenuItem/MenuItem.d.ts +0 -10
- package/dist/es/src/components/Modal/Dialog/Dialog.d.ts +0 -4
- package/dist/es/src/components/Modal/Drawer/Drawer.d.ts +0 -4
- package/dist/es/src/components/Text/Text.d.ts +0 -8
- package/dist/es/src/index.d.ts +0 -5
- package/dist/es/src/interfaces/theme.d.ts +0 -51
- package/src/components/UploadDocument/FileUploader.tsx +0 -728
- package/src/interfaces/theme.ts +0 -51
- /package/dist/es/{src/components → components}/Accordion/index.d.ts +0 -0
- /package/dist/es/{src/components → components}/BannerNotification/index.d.ts +0 -0
- /package/dist/es/{src/components → components}/Breadcrumbs/index.d.ts +0 -0
- /package/dist/es/{src/components → components}/Button/index.d.ts +0 -0
- /package/dist/es/{src/components → components}/Chip/index.d.ts +0 -0
- /package/dist/es/{src/components → components}/Datatable/DatatableCellRender.d.ts +0 -0
- /package/dist/es/{src/components → components}/Datatable/datatable.interface.d.ts +0 -0
- /package/dist/es/{src/components → components}/Datatable/index.d.ts +0 -0
- /package/dist/es/{src/components → components}/Datatable/use-pagination-props.hook.d.ts +0 -0
- /package/dist/es/{src/components → components}/EmbbededNotification/index.d.ts +0 -0
- /package/dist/es/{src/components/UploadDocument → components/FileUploader}/fileuploader.interface.d.ts +0 -0
- /package/dist/es/{src/components/UploadDocument → components/FileUploader}/index.d.ts +0 -0
- /package/dist/es/{src/components → components}/Form/AutoCompleteMulti/index.d.ts +0 -0
- /package/dist/es/{src/components → components}/Form/AutoCompleteSingle/index.d.ts +0 -0
- /package/dist/es/{src/components → components}/Form/Checkbox/index.d.ts +0 -0
- /package/dist/es/{src/components → components}/Form/CheckboxGroup/index.d.ts +0 -0
- /package/dist/es/{src/components → components}/Form/DatePicker/index.d.ts +0 -0
- /package/dist/es/{src/components → components}/Form/MultiSelect/index.d.ts +0 -0
- /package/dist/es/{src/components → components}/Form/RadioGroup/index.d.ts +0 -0
- /package/dist/es/{src/components → components}/Form/Select/index.d.ts +0 -0
- /package/dist/es/{src/components → components}/Form/Switch/index.d.ts +0 -0
- /package/dist/es/{src/components → components}/Form/TextField/index.d.ts +0 -0
- /package/dist/es/{src/components → components}/Form/TimePicker/index.d.ts +0 -0
- /package/dist/es/{src/components → components}/IconButton/index.d.ts +0 -0
- /package/dist/es/{src/components → components}/IconProvider/index.d.ts +0 -0
- /package/dist/es/{src/components → components}/Link/index.d.ts +0 -0
- /package/dist/es/{src/components → components}/MenuItem/index.d.ts +0 -0
- /package/dist/es/{src/components → components}/Modal/Dialog/index.d.ts +0 -0
- /package/dist/es/{src/components → components}/Modal/Drawer/index.d.ts +0 -0
- /package/dist/es/{src/components → components}/Modal/modal.interface.d.ts +0 -0
- /package/dist/es/{src/components → components}/Navigation/Stepper/Step.d.ts +0 -0
- /package/dist/es/{src/components → components}/Navigation/Stepper/index.d.ts +0 -0
- /package/dist/es/{src/components → components}/Navigation/Stepper/stepper.helper.d.ts +0 -0
- /package/dist/es/{src/components → components}/Navigation/Stepper/stepper.interface.d.ts +0 -0
- /package/dist/es/{src/components → components}/NotistackAdapter/NotistackAdapter.d.ts +0 -0
- /package/dist/es/{src/components → components}/NotistackAdapter/index.d.ts +0 -0
- /package/dist/es/{src/components → components}/Pagination/index.d.ts +0 -0
- /package/dist/es/{src/components → components}/Pagination/pagination.helper.d.ts +0 -0
- /package/dist/es/{src/components → components}/Snackbar/index.d.ts +0 -0
- /package/dist/es/{src/components → components}/Text/index.d.ts +0 -0
- /package/dist/es/{src/components → components}/Tooltip/index.d.ts +0 -0
- /package/dist/es/{src/components → components}/Tooltip/tooltip.interface.d.ts +0 -0
- /package/dist/es/{src/helpers → helpers}/GooglePickerWrapper.d.ts +0 -0
- /package/dist/es/{src/hooks → hooks}/useGooleDrivePicker.d.ts +0 -0
- /package/dist/es/{src/types → types}/googleDrive.d.ts +0 -0
- /package/src/components/{UploadDocument → FileUploader}/fileuploader.interface.ts +0 -0
- /package/src/components/{UploadDocument → FileUploader}/index.ts +0 -0
package/dist/es/index.d.ts
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import React, { ReactNode, FocusEventHandler, BaseSyntheticEvent, MouseEventHandler, MouseEvent, PropsWithChildren } from 'react';
|
|
2
|
-
import { TypographyProps, LinkProps, ButtonProps,
|
|
1
|
+
import React, { ReactNode, FocusEventHandler, BaseSyntheticEvent, MouseEventHandler, MouseEvent, SyntheticEvent, PropsWithChildren } from 'react';
|
|
2
|
+
import { TypographyProps, LinkProps, ButtonProps, OutlinedInputProps, SelectProps, CheckboxProps, RadioGroupProps, AccordionProps, BreadcrumbsProps, ChipProps, BoxProps, TooltipProps, AutocompleteProps, MenuItemProps, AlertProps, SxProps, Theme, CardProps, SwitchProps, TextFieldProps, IconButtonProps, PaletteMode } from '@mui/material';
|
|
3
3
|
import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
|
|
4
4
|
import { CustomContentProps } from 'notistack';
|
|
5
5
|
import { ModalProps as ModalProps$1 } from '@mui/material/Modal';
|
|
6
6
|
import { DatePickerProps } from '@mui/x-date-pickers-pro';
|
|
7
7
|
import { Dayjs } from 'dayjs';
|
|
8
|
+
import { Theme as Theme$1 } from '@groupeactual/design-tokens';
|
|
8
9
|
|
|
9
10
|
interface Props$q extends Omit<TypographyProps, 'variant'> {
|
|
10
|
-
variant?: 'bigNumber' | 'body1' | '
|
|
11
|
+
variant?: 'bigNumber' | 'body1' | 'body1Medium' | 'body1Bold' | 'body2' | 'body2Medium' | 'body2Bold' | 'h1' | 'h2' | 'h3' | 'h4' | 'caption' | 'buttonNotif' | 'link1' | 'link2';
|
|
11
12
|
component?: any;
|
|
12
13
|
}
|
|
13
|
-
declare const Text:
|
|
14
|
+
declare const Text: React.ForwardRefExoticComponent<Omit<Props$q, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
14
15
|
|
|
15
16
|
interface Props$p extends Omit<LinkProps, 'variant'> {
|
|
16
17
|
variant?: 'link1' | 'link2';
|
|
17
|
-
component?: any;
|
|
18
18
|
}
|
|
19
|
-
declare const Link:
|
|
19
|
+
declare const Link: React.ForwardRefExoticComponent<Omit<Props$p, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
|
|
20
20
|
|
|
21
21
|
interface Props$o extends Omit<ButtonProps, 'variant' | 'children'> {
|
|
22
|
-
variant?: 'primary' | 'secondary';
|
|
22
|
+
variant?: 'primary' | 'secondary' | 'tertiary' | 'destructive';
|
|
23
23
|
children?: ReactNode;
|
|
24
24
|
}
|
|
25
|
-
declare const Button:
|
|
25
|
+
declare const Button: React.ForwardRefExoticComponent<Omit<Props$o, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
26
26
|
|
|
27
|
-
interface Props$n extends Omit<
|
|
28
|
-
|
|
29
|
-
label?: string;
|
|
27
|
+
interface Props$n extends Omit<OutlinedInputProps, 'error'> {
|
|
28
|
+
label?: ReactNode;
|
|
30
29
|
value?: string | unknown;
|
|
31
30
|
name?: string;
|
|
31
|
+
error?: string;
|
|
32
32
|
placeholder?: string;
|
|
33
33
|
disabled?: boolean;
|
|
34
34
|
endAdornment?: ReactNode;
|
|
@@ -36,17 +36,18 @@ interface Props$n extends Omit<TextFieldProps, 'error'> {
|
|
|
36
36
|
width?: number | string;
|
|
37
37
|
className?: string;
|
|
38
38
|
focused?: boolean;
|
|
39
|
+
helperText?: string;
|
|
39
40
|
onClick?: (_e: React.MouseEvent<HTMLInputElement>) => void;
|
|
40
41
|
onBlur?: FocusEventHandler<unknown>;
|
|
41
42
|
onChange?: (_e: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
|
|
42
43
|
}
|
|
43
|
-
declare const TextField: React.ForwardRefExoticComponent<Props$n & React.RefAttributes<
|
|
44
|
+
declare const TextField: React.ForwardRefExoticComponent<Props$n & React.RefAttributes<HTMLInputElement | HTMLTextAreaElement>>;
|
|
44
45
|
|
|
45
46
|
interface Props$m<T> extends Omit<SelectProps<T>, 'value' | 'onChange' | 'color' | 'error'> {
|
|
47
|
+
label?: ReactNode;
|
|
46
48
|
options: T[];
|
|
47
49
|
placeholder?: string;
|
|
48
50
|
disabled?: boolean;
|
|
49
|
-
label?: string;
|
|
50
51
|
helperText?: string;
|
|
51
52
|
color?: 'success';
|
|
52
53
|
value: T | undefined;
|
|
@@ -59,10 +60,10 @@ interface Props$m<T> extends Omit<SelectProps<T>, 'value' | 'onChange' | 'color'
|
|
|
59
60
|
onBlur?: (_event: BaseSyntheticEvent) => void;
|
|
60
61
|
onClick?: (_event: BaseSyntheticEvent) => void;
|
|
61
62
|
}
|
|
62
|
-
declare const Select: <T>(
|
|
63
|
+
declare const Select: <T>(_props: Props$m<T> & React.RefAttributes<HTMLSelectElement>) => React.ReactNode;
|
|
63
64
|
|
|
64
65
|
interface Props$l<T> extends Omit<SelectProps<T[]>, 'value' | 'onChange' | 'value' | 'color' | 'error'> {
|
|
65
|
-
label:
|
|
66
|
+
label: ReactNode;
|
|
66
67
|
options: T[] | [];
|
|
67
68
|
helperText?: string;
|
|
68
69
|
color?: 'success';
|
|
@@ -77,7 +78,7 @@ interface Props$l<T> extends Omit<SelectProps<T[]>, 'value' | 'onChange' | 'valu
|
|
|
77
78
|
getRenderValue: (_option: T) => string;
|
|
78
79
|
getKeyValue: (_option: T) => string;
|
|
79
80
|
}
|
|
80
|
-
declare const MultiSelect: <T>(
|
|
81
|
+
declare const MultiSelect: <T>(_props: Props$l<T> & React.RefAttributes<HTMLSelectElement>) => React.ReactNode;
|
|
81
82
|
|
|
82
83
|
interface Props$k {
|
|
83
84
|
name: string;
|
|
@@ -86,44 +87,38 @@ interface Props$k {
|
|
|
86
87
|
onChange?: (_field: string, _value: boolean, _shouldValidate?: boolean | undefined) => void;
|
|
87
88
|
helperText?: string;
|
|
88
89
|
error?: string;
|
|
89
|
-
infoBubbleContent?: string;
|
|
90
|
-
infoBubblePosition?: 'top' | 'right' | 'bottom' | 'left' | 'bottom-end' | 'bottom-start' | 'left-end' | 'left-start' | 'right-end' | 'right-start' | 'top-end' | 'top-start' | undefined;
|
|
91
90
|
}
|
|
92
|
-
declare const Checkbox:
|
|
91
|
+
declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & Props$k & React.RefAttributes<HTMLDivElement>>;
|
|
93
92
|
|
|
94
93
|
interface CheckboxItemType {
|
|
95
94
|
label: ReactNode;
|
|
96
95
|
value: boolean;
|
|
97
96
|
name: string;
|
|
98
|
-
infoBubbleContent?: string;
|
|
99
|
-
infoBubblePosition?: 'right' | 'bottom' | 'left' | 'top' | 'bottom-end' | 'bottom-start' | 'left-end' | 'left-start' | 'right-end' | 'right-start' | 'top-end' | 'top-start' | undefined;
|
|
100
97
|
}
|
|
101
98
|
|
|
102
99
|
interface CheckboxGroupProps {
|
|
103
|
-
label
|
|
100
|
+
label?: ReactNode;
|
|
104
101
|
options: CheckboxItemType[];
|
|
105
102
|
disabled?: boolean;
|
|
106
103
|
error?: string;
|
|
107
104
|
helperText?: string;
|
|
108
|
-
onChange?: (
|
|
105
|
+
onChange?: (_selectedOptionsNameValue: Record<string, boolean>, _updatedOptions: CheckboxItemType[], _updatedIndexOptions: number) => void;
|
|
109
106
|
}
|
|
110
|
-
declare const CheckboxGroup:
|
|
107
|
+
declare const CheckboxGroup: React.ForwardRefExoticComponent<CheckboxGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
111
108
|
|
|
112
109
|
interface ItemType<T> {
|
|
113
|
-
label
|
|
110
|
+
label?: ReactNode;
|
|
114
111
|
value: T;
|
|
115
|
-
infoBubbleContent?: string;
|
|
116
|
-
infoBubblePosition?: 'top' | 'right' | 'bottom' | 'left' | 'bottom-end' | 'bottom-start' | 'left-end' | 'left-start' | 'right-end' | 'right-start' | 'top-end' | 'top-start' | undefined;
|
|
117
112
|
}
|
|
118
113
|
interface Props$j<T> extends Omit<RadioGroupProps, 'onChange'> {
|
|
119
|
-
label
|
|
114
|
+
label?: ReactNode;
|
|
120
115
|
options: ItemType<T>[];
|
|
121
116
|
onChange: (_value: T) => void;
|
|
122
117
|
error?: string;
|
|
123
118
|
helperText?: string;
|
|
124
119
|
disabled?: boolean;
|
|
125
120
|
}
|
|
126
|
-
declare const RadioGroup: <T>(
|
|
121
|
+
declare const RadioGroup: <T>(_props: Props$j<T> & React.RefAttributes<HTMLTableElement>) => React.ReactNode;
|
|
127
122
|
|
|
128
123
|
interface Props$i extends AccordionProps {
|
|
129
124
|
title?: string;
|
|
@@ -133,36 +128,21 @@ interface Props$i extends AccordionProps {
|
|
|
133
128
|
disabled?: boolean;
|
|
134
129
|
onClick?: MouseEventHandler;
|
|
135
130
|
}
|
|
136
|
-
declare const Accordion:
|
|
131
|
+
declare const Accordion: React.ForwardRefExoticComponent<Props$i & React.RefAttributes<HTMLDivElement>>;
|
|
137
132
|
|
|
138
133
|
interface LinkItem {
|
|
139
134
|
link: string;
|
|
140
135
|
title: string;
|
|
141
136
|
}
|
|
142
137
|
interface Props$h extends BreadcrumbsProps {
|
|
143
|
-
|
|
138
|
+
currentPage: string;
|
|
144
139
|
links?: LinkItem[];
|
|
145
140
|
}
|
|
146
|
-
declare const Breadcrumbs:
|
|
141
|
+
declare const Breadcrumbs: React.ForwardRefExoticComponent<Props$h & React.RefAttributes<HTMLDivElement>>;
|
|
147
142
|
|
|
148
|
-
declare const
|
|
149
|
-
xs: number;
|
|
150
|
-
sm: number;
|
|
151
|
-
md: number;
|
|
152
|
-
lg: number;
|
|
153
|
-
xl: number;
|
|
154
|
-
xxl: number;
|
|
155
|
-
xxxl: number;
|
|
156
|
-
};
|
|
157
|
-
interface Props$g {
|
|
158
|
-
variant?: 'square' | 'none';
|
|
159
|
-
icon: IconDefinition;
|
|
160
|
-
color?: string;
|
|
161
|
-
size?: number | keyof typeof FontSizes;
|
|
162
|
-
}
|
|
163
|
-
declare const IconProvider: ({ variant, icon, color, size, sx, ...props }: Props$g & BoxProps) => JSX.Element;
|
|
143
|
+
declare const IconProvider: React.ForwardRefExoticComponent<any>;
|
|
164
144
|
|
|
165
|
-
interface Props$
|
|
145
|
+
interface Props$g {
|
|
166
146
|
totalString: string;
|
|
167
147
|
totalPerPageString: string;
|
|
168
148
|
totalRows: number;
|
|
@@ -170,12 +150,13 @@ interface Props$f {
|
|
|
170
150
|
limitsPerPage?: number[];
|
|
171
151
|
page?: number;
|
|
172
152
|
limit?: number;
|
|
153
|
+
disabled?: boolean;
|
|
173
154
|
setPage?: (_page: number) => void;
|
|
174
155
|
setLimit?: (_limit: number) => void;
|
|
175
156
|
}
|
|
176
|
-
declare const Pagination:
|
|
157
|
+
declare const Pagination: React.ForwardRefExoticComponent<Props$g & React.RefAttributes<HTMLDivElement>>;
|
|
177
158
|
|
|
178
|
-
interface Props$
|
|
159
|
+
interface Props$f extends Omit<ChipProps, 'suffix' | 'prefix' | 'onDelete' | 'onDeleteIcon' | 'variant'> {
|
|
179
160
|
variant: 'filled' | 'outlined' | 'status' | 'statusFilled';
|
|
180
161
|
label: string;
|
|
181
162
|
prefixIcon?: IconDefinition;
|
|
@@ -186,57 +167,64 @@ interface Props$e extends Omit<ChipProps, 'suffix' | 'prefix' | 'onDelete' | 'on
|
|
|
186
167
|
maxWidth?: string | number;
|
|
187
168
|
maxLength?: number;
|
|
188
169
|
}
|
|
189
|
-
declare const Chip:
|
|
170
|
+
declare const Chip: React.ForwardRefExoticComponent<Omit<Props$f, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
190
171
|
|
|
191
|
-
interface Props$
|
|
172
|
+
interface Props$e extends BoxProps {
|
|
192
173
|
variant: 'warning' | 'error' | 'success' | 'infos';
|
|
193
174
|
title: string;
|
|
194
175
|
text?: ReactNode;
|
|
195
176
|
actionButton?: ReactNode;
|
|
196
177
|
}
|
|
197
|
-
declare const EmbeddedNotification:
|
|
178
|
+
declare const EmbeddedNotification: React.ForwardRefExoticComponent<Props$e & React.RefAttributes<HTMLDivElement>>;
|
|
198
179
|
|
|
199
180
|
type Placement = 'right' | 'bottom' | 'left' | 'top' | 'bottom-end' | 'bottom-start' | 'left-end' | 'left-start' | 'right-end' | 'right-start' | 'top-end' | 'top-start' | undefined;
|
|
200
181
|
|
|
201
|
-
interface Props$
|
|
182
|
+
interface Props$d extends Omit<TooltipProps, 'icon' | 'children' | 'placement'> {
|
|
202
183
|
title: ReactNode;
|
|
203
184
|
children: ReactNode;
|
|
204
185
|
placement?: Placement;
|
|
205
186
|
placementMargin?: number;
|
|
206
187
|
}
|
|
207
|
-
declare const Tooltip:
|
|
188
|
+
declare const Tooltip: React.ForwardRefExoticComponent<Props$d & React.RefAttributes<HTMLDivElement>>;
|
|
208
189
|
|
|
209
|
-
interface Props$
|
|
210
|
-
label
|
|
190
|
+
interface Props$c<T> extends Omit<AutocompleteProps<T, false, false, false>, 'onChange' | 'value' | 'options' | 'renderInput' | 'error' | 'getOptionLabel'> {
|
|
191
|
+
label?: ReactNode;
|
|
211
192
|
options: T[];
|
|
212
193
|
helperText?: string;
|
|
213
194
|
color?: 'success';
|
|
214
195
|
placeholder?: string;
|
|
215
|
-
getOptionLabel: (_option: T) => string | null | undefined;
|
|
216
|
-
onChange: (_value: T | null) => void;
|
|
217
196
|
value?: T | null;
|
|
218
197
|
width?: number | string;
|
|
219
198
|
error?: string;
|
|
220
199
|
searchIcon?: boolean;
|
|
200
|
+
icon?: ReactNode;
|
|
201
|
+
getOptionGroupLabel?: (_option: T) => string;
|
|
202
|
+
handleOptionChip?: (_option: T) => ReactNode | undefined;
|
|
203
|
+
getOptionLabel: (_option: T) => string | null | undefined;
|
|
204
|
+
onChange: (_value: T | null) => void;
|
|
221
205
|
}
|
|
222
|
-
declare const AutoCompleteSingle: <T>(
|
|
206
|
+
declare const AutoCompleteSingle: <T>(_props: Props$c<T> & React.RefAttributes<HTMLSelectElement>) => React.ReactNode;
|
|
223
207
|
|
|
224
|
-
interface
|
|
208
|
+
interface Props$b<T> extends Omit<AutocompleteProps<T, true, true, false>, 'onChange' | 'value' | 'options' | 'renderInput' | 'error' | 'autocomplete' | 'searchIcon'> {
|
|
225
209
|
value: T[] | undefined;
|
|
226
|
-
label?:
|
|
210
|
+
label?: ReactNode;
|
|
227
211
|
helperText?: string;
|
|
228
212
|
placeholder?: string;
|
|
229
213
|
options: T[];
|
|
230
|
-
getOptionLabel: (_option: T) => string;
|
|
231
|
-
getKeyValue: (_option: T) => string;
|
|
232
|
-
onChange: (_value: T[]) => void;
|
|
233
|
-
getOptionDisabled?: (_option: T) => boolean;
|
|
234
214
|
color?: 'success';
|
|
235
215
|
width?: number | string;
|
|
236
216
|
error?: string;
|
|
237
217
|
searchIcon?: boolean;
|
|
218
|
+
icon?: ReactNode;
|
|
219
|
+
isOptionEqualToValue?: (_option: T, _value: T) => boolean;
|
|
220
|
+
getOptionLabel: (_option: T) => string;
|
|
221
|
+
getKeyValue: (_option: T) => string;
|
|
222
|
+
onChange: (_value: T[]) => void;
|
|
223
|
+
getOptionDisabled?: (_option: T) => boolean;
|
|
224
|
+
getOptionGroupLabel?: (_option: T) => string;
|
|
225
|
+
handleOptionChip?: (_option: T) => ReactNode | undefined;
|
|
238
226
|
}
|
|
239
|
-
declare const
|
|
227
|
+
declare const AutoCompleteMulti: <T>(_props: Props$b<T> & React.RefAttributes<HTMLSelectElement>) => React.ReactNode;
|
|
240
228
|
|
|
241
229
|
interface AcceptTextType {
|
|
242
230
|
fileFormat?: string;
|
|
@@ -276,21 +264,20 @@ interface Props$a {
|
|
|
276
264
|
onTouched?: () => void;
|
|
277
265
|
onFilesDataChange?: (_fileData: FileDataType[] | undefined) => void;
|
|
278
266
|
}
|
|
279
|
-
declare const FileUploader:
|
|
267
|
+
declare const FileUploader: React.ForwardRefExoticComponent<Props$a & React.RefAttributes<HTMLDivElement>>;
|
|
280
268
|
|
|
281
269
|
interface Props$9 extends Omit<MenuItemProps, 'onClick'> {
|
|
282
|
-
onClick
|
|
270
|
+
onClick?: (_event?: React.MouseEvent<HTMLLIElement>) => void;
|
|
271
|
+
selected?: boolean;
|
|
283
272
|
children: NonNullable<ReactNode>;
|
|
284
|
-
testId?: string;
|
|
285
|
-
disabled?: boolean;
|
|
286
273
|
}
|
|
287
|
-
declare const MenuItem:
|
|
274
|
+
declare const MenuItem: React.ForwardRefExoticComponent<Omit<Props$9, "ref"> & React.RefAttributes<HTMLLIElement>>;
|
|
288
275
|
|
|
289
276
|
interface Props$8 extends Omit<AlertProps, 'severity' | 'text'> {
|
|
290
277
|
text: string | React.ReactNode;
|
|
291
278
|
severity: 'success' | 'warning' | 'error' | 'info';
|
|
292
279
|
}
|
|
293
|
-
declare const Snackbar:
|
|
280
|
+
declare const Snackbar: React.ForwardRefExoticComponent<Props$8 & React.RefAttributes<HTMLDivElement>>;
|
|
294
281
|
|
|
295
282
|
declare const NotistackAdapter: React.ForwardRefExoticComponent<CustomContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
296
283
|
|
|
@@ -298,7 +285,7 @@ interface Props$7 extends AlertProps {
|
|
|
298
285
|
text: string;
|
|
299
286
|
onClose?: () => void;
|
|
300
287
|
}
|
|
301
|
-
declare const BannerNotification:
|
|
288
|
+
declare const BannerNotification: React.ForwardRefExoticComponent<Props$7 & React.RefAttributes<HTMLDivElement>>;
|
|
302
289
|
|
|
303
290
|
interface StepperItem {
|
|
304
291
|
label: string;
|
|
@@ -316,9 +303,9 @@ interface Props$6 {
|
|
|
316
303
|
steps: Step[];
|
|
317
304
|
canNavigate: boolean;
|
|
318
305
|
onNavigate?: (_url: string) => void;
|
|
319
|
-
sx?: SxProps<Theme
|
|
306
|
+
sx?: SxProps<Theme>;
|
|
320
307
|
}
|
|
321
|
-
declare const Stepper:
|
|
308
|
+
declare const Stepper: React.ForwardRefExoticComponent<Props$6 & React.RefAttributes<HTMLDivElement>>;
|
|
322
309
|
|
|
323
310
|
interface ModalProps extends Omit<ModalProps$1, 'component' | 'open' | 'className' | 'onClose'> {
|
|
324
311
|
open: boolean;
|
|
@@ -335,34 +322,37 @@ interface DrawerProps extends Omit<ModalProps, 'icon'> {
|
|
|
335
322
|
hideCloseButton?: boolean;
|
|
336
323
|
}
|
|
337
324
|
|
|
338
|
-
declare const Drawer:
|
|
325
|
+
declare const Drawer: React.ForwardRefExoticComponent<Omit<DrawerProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
339
326
|
|
|
340
|
-
declare const Dialog:
|
|
327
|
+
declare const Dialog: React.ForwardRefExoticComponent<Omit<Omit<ModalProps, "component" | "size" | "footer" | "cardProps">, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
341
328
|
|
|
342
329
|
interface Props$5 {
|
|
343
|
-
label
|
|
330
|
+
label?: ReactNode;
|
|
331
|
+
helperText?: string;
|
|
344
332
|
checked: boolean;
|
|
345
333
|
leftSideLabel?: string;
|
|
346
334
|
onClick: () => void;
|
|
347
335
|
}
|
|
348
|
-
declare const Switch:
|
|
336
|
+
declare const Switch: React.ForwardRefExoticComponent<SwitchProps & Props$5 & React.RefAttributes<HTMLButtonElement>>;
|
|
349
337
|
|
|
350
338
|
interface Props$4<T extends Dayjs> extends Omit<DatePickerProps<T>, 'onChange' | 'width'> {
|
|
339
|
+
label?: ReactNode;
|
|
351
340
|
value: T | null | undefined;
|
|
352
|
-
|
|
341
|
+
disabled?: boolean;
|
|
353
342
|
error?: string;
|
|
354
|
-
|
|
343
|
+
color?: 'primary' | 'secondary' | 'error' | 'info' | 'success' | 'warning';
|
|
355
344
|
helperText?: string;
|
|
356
345
|
width?: string;
|
|
357
346
|
locale?: 'fr' | 'en';
|
|
347
|
+
onChange: (_value: T | null | undefined) => void;
|
|
358
348
|
}
|
|
359
|
-
declare const DatePicker: <T extends Dayjs>(
|
|
349
|
+
declare const DatePicker: <T extends Dayjs>(_props: Props$4<T> & React.RefAttributes<HTMLDivElement>) => React.ReactNode;
|
|
360
350
|
|
|
361
|
-
interface Props$3 extends Omit<TextFieldProps, 'error' | 'onChange'> {
|
|
351
|
+
interface Props$3 extends Omit<TextFieldProps, 'error' | 'onChange' | 'margin' | 'onInvalid' | 'onKeyDown' | 'onKeyUp' | 'slotProps'> {
|
|
362
352
|
value: Dayjs | undefined;
|
|
363
353
|
onChange?: (_time: string | Dayjs | undefined) => void;
|
|
364
354
|
onTouched?: () => void;
|
|
365
|
-
label?:
|
|
355
|
+
label?: ReactNode;
|
|
366
356
|
helperText?: string;
|
|
367
357
|
minTime?: Dayjs;
|
|
368
358
|
maxTime?: Dayjs;
|
|
@@ -429,7 +419,7 @@ type WithoutDetailsProps<T> = {
|
|
|
429
419
|
};
|
|
430
420
|
type Props$2<T extends object> = BaseProps<T> & (WithoutPaginationProps | PaginationProps) & (WithDetailsProps<T, RowDetail> | WithoutDetailsProps<T>);
|
|
431
421
|
|
|
432
|
-
declare const Datatable: <T extends object>(
|
|
422
|
+
declare const Datatable: <T extends object>(_props: Props$2<T> & React.RefAttributes<HTMLTableElement>) => React.ReactNode;
|
|
433
423
|
|
|
434
424
|
declare const DatatableCellRender: ({ data }: {
|
|
435
425
|
data: string;
|
|
@@ -437,79 +427,41 @@ declare const DatatableCellRender: ({ data }: {
|
|
|
437
427
|
|
|
438
428
|
interface Props$1 extends Omit<IconButtonProps, 'color'> {
|
|
439
429
|
icon: IconDefinition;
|
|
440
|
-
variant?: '
|
|
430
|
+
variant?: 'plain' | 'outlined';
|
|
441
431
|
positionGroup?: 'left' | 'middle' | 'right';
|
|
442
432
|
tooltipText?: string;
|
|
443
433
|
tooltipPosition?: Placement;
|
|
444
434
|
size?: 'small' | 'medium';
|
|
445
|
-
sx?: SxProps<Theme
|
|
446
|
-
color?:
|
|
435
|
+
sx?: SxProps<Theme>;
|
|
436
|
+
color?: 'neutral' | 'success' | 'warning' | 'danger';
|
|
447
437
|
onClick?: MouseEventHandler | undefined;
|
|
448
438
|
}
|
|
449
|
-
declare const IconButton:
|
|
439
|
+
declare const IconButton: React.ForwardRefExoticComponent<Omit<Props$1, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
440
|
+
|
|
441
|
+
interface TabData {
|
|
442
|
+
label: string;
|
|
443
|
+
content: ReactNode;
|
|
444
|
+
}
|
|
445
|
+
interface TabsPanelProps {
|
|
446
|
+
tabs: TabData[];
|
|
447
|
+
value?: number;
|
|
448
|
+
width?: string | number;
|
|
449
|
+
disabled?: boolean;
|
|
450
|
+
onChange?: (_event: SyntheticEvent, _newValue: number) => void;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
declare const TabsPanel: React.ForwardRefExoticComponent<TabsPanelProps & React.RefAttributes<HTMLDivElement>>;
|
|
450
454
|
|
|
451
|
-
type Theme = 'Default' | 'Ep';
|
|
452
455
|
interface DesignSystemContextValues {
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
toggleDarkTheme: () => void;
|
|
456
|
+
themeName: Theme$1;
|
|
457
|
+
mode: PaletteMode;
|
|
456
458
|
}
|
|
457
459
|
declare const DesignSystemContext: React.Context<DesignSystemContextValues>;
|
|
458
460
|
interface Props {
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
blueHoverClickable: string;
|
|
467
|
-
greyMediumInactive: string;
|
|
468
|
-
greyXDark: string;
|
|
469
|
-
greyDark: string;
|
|
470
|
-
white: string;
|
|
471
|
-
greyXLight: string;
|
|
472
|
-
greyXDarkBgModal: string;
|
|
473
|
-
blueHoverEquivalence: string;
|
|
474
|
-
blueHoverOpacity12: string;
|
|
475
|
-
greyLightDefaultBorder: string;
|
|
476
|
-
blueInfo: string;
|
|
477
|
-
greenSuccess: string;
|
|
478
|
-
redError: string;
|
|
479
|
-
orangeWarning: string;
|
|
480
|
-
blueDark: string;
|
|
481
|
-
blueMedium: string;
|
|
482
|
-
blueLight: string;
|
|
483
|
-
greenDark: string;
|
|
484
|
-
greenMedium: string;
|
|
485
|
-
green: string;
|
|
486
|
-
brown: string;
|
|
487
|
-
greenLight: string;
|
|
488
|
-
orangeLight: string;
|
|
489
|
-
yellow: string;
|
|
490
|
-
purpleDark: string;
|
|
491
|
-
purple: string;
|
|
492
|
-
pink: string;
|
|
493
|
-
pinkLight: string;
|
|
494
|
-
primary: {
|
|
495
|
-
main: string;
|
|
496
|
-
dark: string;
|
|
497
|
-
};
|
|
498
|
-
secondary: {
|
|
499
|
-
main: string;
|
|
500
|
-
};
|
|
501
|
-
success: {
|
|
502
|
-
main: string;
|
|
503
|
-
};
|
|
504
|
-
error: {
|
|
505
|
-
main: string;
|
|
506
|
-
};
|
|
507
|
-
warning: {
|
|
508
|
-
main: string;
|
|
509
|
-
};
|
|
510
|
-
infos: {
|
|
511
|
-
main: string;
|
|
512
|
-
};
|
|
513
|
-
}
|
|
514
|
-
|
|
515
|
-
export { type AcceptTextType, Accordion, AutocompleteMultipleSelect as AutoCompleteMulti, AutoCompleteSingle, BannerNotification, Breadcrumbs, Button, Checkbox, CheckboxGroup, type CheckboxItemType, Chip, Datatable, DatatableCellRender, DatePicker, DesignSystemContext, type DesignSystemContextValues, DesignSystemProvider, Dialog, Drawer, EmbeddedNotification, type FileDataType, FileUploader, IconButton, IconProvider, Link, MenuItem, MultiSelect, NotistackAdapter, Pagination, type PaletteDS, RadioGroup, Select, Snackbar, Stepper, Switch, Text, TextField, TimePicker, Tooltip };
|
|
461
|
+
themeName?: Theme$1;
|
|
462
|
+
mode?: PaletteMode;
|
|
463
|
+
}
|
|
464
|
+
declare const DesignSystemProvider: ({ children, themeName, mode, }: PropsWithChildren<Props>) => React.JSX.Element;
|
|
465
|
+
|
|
466
|
+
export { Accordion, AutoCompleteMulti, AutoCompleteSingle, BannerNotification, Breadcrumbs, Button, Checkbox, CheckboxGroup, Chip, Datatable, DatatableCellRender, DatePicker, DesignSystemContext, DesignSystemProvider, Dialog, Drawer, EmbeddedNotification, FileUploader, IconButton, IconProvider, Link, MenuItem, MultiSelect, NotistackAdapter, Pagination, RadioGroup, Select, Snackbar, Stepper, Switch, TabsPanel, Text, TextField, TimePicker, Tooltip };
|
|
467
|
+
export type { AcceptTextType, CheckboxItemType, DesignSystemContextValues, FileDataType };
|