@groupeactual/ui-kit 1.5.2 → 1.6.0-beta.4

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.
Files changed (75) hide show
  1. package/dist/cjs/index.js +16 -16
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/types/DesignSystemProvider.d.ts +3 -3
  4. package/dist/cjs/types/components/Accordion/Accordion.d.ts +3 -1
  5. package/dist/cjs/types/components/Chip/Chip.d.ts +3 -3
  6. package/dist/cjs/types/components/Datatable/Datatable.d.ts +1 -1
  7. package/dist/cjs/types/components/Datatable/DatatableCellRender.d.ts +0 -1
  8. package/dist/cjs/types/components/Datatable/datatable.interface.d.ts +1 -1
  9. package/dist/cjs/types/components/Datatable/use-pagination-props.hook.d.ts +1 -1
  10. package/dist/cjs/types/components/EmbbededNotification/EmbeddedNotification.d.ts +1 -1
  11. package/dist/cjs/types/components/Form/DatePicker/DatePicker.d.ts +5 -4
  12. package/dist/cjs/types/components/Form/MultiSelect/MultiSelect.d.ts +9 -4
  13. package/dist/cjs/types/components/Form/Select/Select.d.ts +8 -3
  14. package/dist/cjs/types/components/Form/TextField/TextField.d.ts +5 -4
  15. package/dist/cjs/types/components/IconButton/IconButton.d.ts +4 -1
  16. package/dist/cjs/types/components/IconProvider/IconProvider.d.ts +0 -1
  17. package/dist/cjs/types/components/Modal/Dialog/Dialog.d.ts +1 -1
  18. package/dist/cjs/types/components/Modal/Drawer/Drawer.d.ts +1 -1
  19. package/dist/cjs/types/components/Modal/modal.interface.d.ts +4 -4
  20. package/dist/cjs/types/components/NotistackAdapter/NotistackAdapter.d.ts +1 -2
  21. package/dist/cjs/types/components/UploadDocument/FileUploaderSingle.d.ts +0 -1
  22. package/dist/es/index.d.ts +44 -27
  23. package/dist/es/index.mjs +15 -15
  24. package/dist/es/index.mjs.map +1 -1
  25. package/dist/es/types/DesignSystemProvider.d.ts +3 -3
  26. package/dist/es/types/components/Accordion/Accordion.d.ts +3 -1
  27. package/dist/es/types/components/Chip/Chip.d.ts +3 -3
  28. package/dist/es/types/components/Datatable/Datatable.d.ts +1 -1
  29. package/dist/es/types/components/Datatable/DatatableCellRender.d.ts +0 -1
  30. package/dist/es/types/components/Datatable/datatable.interface.d.ts +1 -1
  31. package/dist/es/types/components/Datatable/use-pagination-props.hook.d.ts +1 -1
  32. package/dist/es/types/components/EmbbededNotification/EmbeddedNotification.d.ts +1 -1
  33. package/dist/es/types/components/Form/DatePicker/DatePicker.d.ts +5 -4
  34. package/dist/es/types/components/Form/MultiSelect/MultiSelect.d.ts +9 -4
  35. package/dist/es/types/components/Form/Select/Select.d.ts +8 -3
  36. package/dist/es/types/components/Form/TextField/TextField.d.ts +5 -4
  37. package/dist/es/types/components/IconButton/IconButton.d.ts +4 -1
  38. package/dist/es/types/components/IconProvider/IconProvider.d.ts +0 -1
  39. package/dist/es/types/components/Modal/Dialog/Dialog.d.ts +1 -1
  40. package/dist/es/types/components/Modal/Drawer/Drawer.d.ts +1 -1
  41. package/dist/es/types/components/Modal/modal.interface.d.ts +4 -4
  42. package/dist/es/types/components/NotistackAdapter/NotistackAdapter.d.ts +1 -2
  43. package/dist/es/types/components/UploadDocument/FileUploaderSingle.d.ts +0 -1
  44. package/package.json +31 -33
  45. package/src/DesignSystemProvider.tsx +3 -8
  46. package/src/components/Accordion/Accordion.tsx +5 -3
  47. package/src/components/BannerNotification/BannerNotification.tsx +2 -3
  48. package/src/components/Breadcrumbs/Breadcrumbs.tsx +3 -3
  49. package/src/components/Button/Button.tsx +6 -6
  50. package/src/components/Chip/Chip.tsx +32 -29
  51. package/src/components/Datatable/Datatable.tsx +4 -4
  52. package/src/components/Datatable/datatable.interface.ts +1 -1
  53. package/src/components/Datatable/use-pagination-props.hook.ts +3 -3
  54. package/src/components/EmbbededNotification/EmbeddedNotification.tsx +8 -7
  55. package/src/components/Form/AutoCompleteMulti/AutoCompleteMulti.tsx +11 -7
  56. package/src/components/Form/AutoCompleteSingle/AutoCompleteSingle.tsx +8 -3
  57. package/src/components/Form/Checkbox/Checkbox.tsx +5 -5
  58. package/src/components/Form/CheckboxGroup/CheckboxGroup.tsx +1 -1
  59. package/src/components/Form/DatePicker/DatePicker.tsx +7 -6
  60. package/src/components/Form/MultiSelect/MultiSelect.tsx +22 -17
  61. package/src/components/Form/RadioGroup/RadioGroup.tsx +6 -6
  62. package/src/components/Form/Select/Select.tsx +21 -18
  63. package/src/components/Form/Switch/Switch.tsx +1 -1
  64. package/src/components/Form/TextField/TextField.tsx +5 -3
  65. package/src/components/IconButton/IconButton.tsx +12 -3
  66. package/src/components/IconProvider/IconProvider.tsx +36 -24
  67. package/src/components/Link/Link.tsx +5 -8
  68. package/src/components/Modal/Drawer/Drawer.tsx +1 -2
  69. package/src/components/Modal/modal.interface.ts +4 -4
  70. package/src/components/NotistackAdapter/NotistackAdapter.tsx +4 -3
  71. package/src/components/Pagination/Pagination.tsx +2 -2
  72. package/src/components/Snackbar/Snackbar.tsx +4 -4
  73. package/src/components/Text/Text.tsx +1 -1
  74. package/src/components/Tooltip/Tooltip.tsx +10 -12
  75. package/src/components/UploadDocument/FileUploaderSingle.tsx +1 -2
@@ -1,13 +1,13 @@
1
- import React, { PropsWithChildren } from 'react';
1
+ import { PropsWithChildren } from 'react';
2
2
  type Theme = 'Default' | 'Ep';
3
3
  export interface DesignSystemContextValues {
4
4
  isDarkTheme: boolean;
5
5
  themeName: Theme;
6
6
  toggleDarkTheme: () => void;
7
7
  }
8
- export declare const DesignSystemContext: React.Context<DesignSystemContextValues>;
8
+ export declare const DesignSystemContext: import("react").Context<DesignSystemContextValues>;
9
9
  interface Props {
10
10
  name?: Theme;
11
11
  }
12
- declare const DesignSystemProvider: ({ children, name: themeName }: PropsWithChildren<Props>) => import("react/jsx-runtime").JSX.Element;
12
+ declare const DesignSystemProvider: ({ children, name: themeName, }: PropsWithChildren<Props>) => import("react/jsx-runtime").JSX.Element;
13
13
  export default DesignSystemProvider;
@@ -1,9 +1,11 @@
1
- import { MouseEventHandler } from 'react';
1
+ import { MouseEventHandler, ReactNode } from 'react';
2
2
  import { AccordionProps } from '@mui/material';
3
3
  interface Props extends AccordionProps {
4
4
  title?: string;
5
5
  summaryHeight?: number;
6
6
  expanded?: boolean;
7
+ children: NonNullable<ReactNode>;
8
+ disabled?: boolean;
7
9
  onClick?: MouseEventHandler;
8
10
  }
9
11
  declare const Accordion: {
@@ -1,12 +1,12 @@
1
- import React from 'react';
2
- import { ChipProps as ChipPropsMUI } from '@mui/material';
1
+ import { MouseEvent } from 'react';
3
2
  import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
3
+ import { ChipProps as ChipPropsMUI } from '@mui/material';
4
4
  interface Props extends Omit<ChipPropsMUI, 'suffix' | 'prefix' | 'onDelete' | 'onDeleteIcon' | 'variant'> {
5
5
  variant: 'filled' | 'outlined' | 'status' | 'statusFilled';
6
6
  label: string;
7
7
  prefixIcon?: IconDefinition;
8
8
  suffixIcon?: IconDefinition;
9
- suffixAction?: (e: React.MouseEvent) => void;
9
+ suffixAction?: (e: MouseEvent) => void;
10
10
  suffixTooltip?: string;
11
11
  tooltip?: string;
12
12
  maxWidth?: string | number;
@@ -1,3 +1,3 @@
1
1
  import { Props } from './datatable.interface';
2
- declare const Datatable: <T extends {}>({ onLoad, onSort, sortInfo, withHeader, withPagination, columns, ...props }: Props<T>) => import("react/jsx-runtime").JSX.Element;
2
+ declare const Datatable: <T extends object>({ onLoad, onSort, sortInfo, withHeader, withPagination, columns, ...props }: Props<T>) => import("react/jsx-runtime").JSX.Element;
3
3
  export default Datatable;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const DatatableCellRender: ({ data }: {
3
2
  data: string;
4
3
  }) => JSX.Element;
@@ -49,5 +49,5 @@ type WithDetailsProps<T, D> = {
49
49
  type WithoutDetailsProps<T> = {
50
50
  onLoad: () => Promise<DatatableDataSet<T>>;
51
51
  };
52
- export type Props<T extends {}> = BaseProps<T> & (WithoutPaginationProps | PaginationProps) & (WithDetailsProps<T, RowDetail> | WithoutDetailsProps<T>);
52
+ export type Props<T extends object> = BaseProps<T> & (WithoutPaginationProps | PaginationProps) & (WithDetailsProps<T, RowDetail> | WithoutDetailsProps<T>);
53
53
  export {};
@@ -1,3 +1,3 @@
1
1
  import { PaginationProps, Props } from './datatable.interface';
2
- declare const usePaginationProps: <T extends {}>(props: {} | Props<T>) => Omit<PaginationProps, 'withPagination'>;
2
+ declare const usePaginationProps: <T extends object>(props: Props<T> | object) => Omit<PaginationProps, "withPagination">;
3
3
  export default usePaginationProps;
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- import { BoxProps } from '@mui/material';
2
+ import { BoxProps } from '@mui/system';
3
3
  interface Props extends BoxProps {
4
4
  variant: 'warning' | 'error' | 'success' | 'infos';
5
5
  title: string;
@@ -1,13 +1,14 @@
1
1
  import { DatePickerProps } from '@mui/x-date-pickers-pro';
2
+ import { Dayjs } from 'dayjs';
2
3
  import 'dayjs/locale/fr';
3
- interface Props<T> extends Omit<DatePickerProps<T>, 'onChange' | 'width'> {
4
- value: T;
5
- onChange: (value: T | null) => void;
4
+ interface Props<T extends Dayjs> extends Omit<DatePickerProps<Dayjs>, 'onChange' | 'width'> {
5
+ value: T | null;
6
+ onChange: (value: Dayjs | null) => void;
6
7
  error?: string;
7
8
  success?: boolean;
8
9
  helperText?: string;
9
10
  width?: string;
10
11
  locale?: 'fr' | 'en';
11
12
  }
12
- declare const DatePicker: <T extends {} | undefined>({ value, onChange, error, success, helperText, width, locale, ...props }: Props<T>) => import("react/jsx-runtime").JSX.Element;
13
+ declare const DatePicker: <T extends Dayjs>({ value, onChange, error, success, helperText, width, locale, ...props }: Props<T>) => import("react/jsx-runtime").JSX.Element;
13
14
  export default DatePicker;
@@ -1,18 +1,23 @@
1
+ import { FocusEventHandler } from 'react';
1
2
  import { SelectProps } from '@mui/material';
2
3
  interface Props<T> extends Omit<SelectProps<T[]>, 'value' | 'onChange' | 'value' | 'color' | 'error'> {
3
4
  label: string;
4
5
  options: T[] | [];
5
6
  helperText?: string;
6
7
  color?: 'success';
7
- onChange: (value: T[]) => void;
8
- getRenderValue: (option: T) => string;
9
- getKeyValue: (option: T) => string;
10
8
  value: T[];
11
9
  width?: number | string;
12
10
  error?: string;
11
+ placeholder?: string;
12
+ disabled?: boolean;
13
+ className?: string;
14
+ onBlur?: FocusEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
15
+ onChange: (value: T[]) => void;
16
+ getRenderValue: (option: T) => string;
17
+ getKeyValue: (option: T) => string;
13
18
  }
14
19
  declare const MultiSelect: {
15
- <T>({ value, label, options, color, error, placeholder, helperText, width, getRenderValue, getKeyValue, onChange, onBlur, disabled, ...props }: Props<T>): import("react/jsx-runtime").JSX.Element;
20
+ <T>({ value, label, options, color, error, placeholder, helperText, width, getRenderValue, getKeyValue, onChange, disabled, ...props }: Props<T>): import("react/jsx-runtime").JSX.Element;
16
21
  displayName: string;
17
22
  };
18
23
  export default MultiSelect;
@@ -1,17 +1,22 @@
1
+ import { BaseSyntheticEvent } from 'react';
1
2
  import { SelectProps } from '@mui/material';
2
3
  interface Props<T> extends Omit<SelectProps<T>, 'value' | 'onChange' | 'color' | 'error'> {
3
4
  options: T[];
4
- getRenderValue: (option: T) => string;
5
- onChange: (value: T) => void;
5
+ placeholder?: string;
6
+ disabled?: boolean;
6
7
  label: string;
7
8
  helperText?: string;
8
9
  color?: 'success';
9
10
  value: T | undefined;
10
11
  width?: number | string;
11
12
  error?: string;
13
+ className?: string;
14
+ getRenderValue: (option: T) => string;
15
+ onChange: (value: T) => void;
16
+ onBlur?: (event: BaseSyntheticEvent) => void;
12
17
  }
13
18
  declare const Select: {
14
- <T>({ value, label, options, color, error, placeholder, onChange, getRenderValue, helperText, onBlur, width, disabled, ...props }: Props<T>): import("react/jsx-runtime").JSX.Element;
19
+ <T>({ value, label, options, color, error, placeholder, helperText, width, disabled, onChange, getRenderValue, ...props }: Props<T>): import("react/jsx-runtime").JSX.Element;
15
20
  displayName: string;
16
21
  };
17
22
  export default Select;
@@ -1,9 +1,7 @@
1
- import { FocusEventHandler, ReactNode } from 'react';
2
- import { InputProps as StandardInputProps, TextFieldProps } from '@mui/material';
1
+ import React, { FocusEventHandler, ReactNode } from 'react';
2
+ import { TextFieldProps } from '@mui/material';
3
3
  interface Props extends Omit<TextFieldProps, 'error'> {
4
4
  error?: string;
5
- onBlur?: FocusEventHandler<unknown>;
6
- onChange?: StandardInputProps['onChange'];
7
5
  label: string;
8
6
  value?: string | unknown;
9
7
  name?: string;
@@ -12,6 +10,9 @@ interface Props extends Omit<TextFieldProps, 'error'> {
12
10
  endAdornment?: ReactNode;
13
11
  maxLength?: number;
14
12
  width?: number | string;
13
+ className?: string;
14
+ onBlur?: FocusEventHandler<unknown>;
15
+ onChange?: (e: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
15
16
  }
16
17
  declare const TextField: {
17
18
  ({ name, value, error, onBlur, onChange, label, disabled, width, endAdornment, placeholder, maxLength, ...props }: Props): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
2
- import { IconButtonProps } from '@mui/material';
2
+ import { IconButtonProps, SxProps, Theme } from '@mui/material';
3
3
  import { Placement } from '../Tooltip/tooltip.interface';
4
4
  interface Props extends IconButtonProps {
5
5
  icon: IconDefinition;
@@ -7,6 +7,9 @@ interface Props extends IconButtonProps {
7
7
  positionGroup?: 'left' | 'middle' | 'right';
8
8
  tooltipText?: string;
9
9
  tooltipPosition?: Placement;
10
+ size?: 'small' | 'medium';
11
+ sx?: SxProps<Theme>;
12
+ onClick?: () => void;
10
13
  }
11
14
  declare const IconButton: {
12
15
  ({ icon, variant, positionGroup, tooltipText, tooltipPosition, size, ...iconButtonProps }: Props): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
3
2
  import { BoxProps } from '@mui/material';
4
3
  declare const FontSizes: {
@@ -1,3 +1,3 @@
1
1
  import { ModalProps } from '../modal.interface';
2
- declare const Dialog: ({ title, open, onClose, component, icon, ...props }: Omit<ModalProps, 'footer' | 'cardProps' | 'size'>) => import("react/jsx-runtime").JSX.Element;
2
+ declare const Dialog: ({ title, open, onClose, component, icon, ...props }: Omit<ModalProps, "footer" | "cardProps" | "size">) => import("react/jsx-runtime").JSX.Element;
3
3
  export default Dialog;
@@ -1,3 +1,3 @@
1
1
  import { ModalProps } from '../modal.interface';
2
- declare const Drawer: ({ title, open, onClose, component, footer, cardProps, size, ...props }: Omit<ModalProps, 'withHeaderDivider' | 'icon'>) => import("react/jsx-runtime").JSX.Element;
2
+ declare const Drawer: ({ title, open, onClose, component, footer, cardProps, size, ...props }: Omit<ModalProps, "withHeaderDivider" | "icon">) => import("react/jsx-runtime").JSX.Element;
3
3
  export default Drawer;
@@ -1,4 +1,4 @@
1
- import { ReactElement } from 'react';
1
+ import { ReactNode } from 'react';
2
2
  import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
3
3
  import { CardProps } from '@mui/material';
4
4
  import { ModalProps as ModalPropsMUI } from '@mui/material/Modal';
@@ -10,15 +10,15 @@ export interface ModalProps extends Omit<ModalPropsMUI, 'component' | 'open' | '
10
10
  open: boolean;
11
11
  title?: string;
12
12
  size?: 'small' | 'large';
13
- component: ReactElement<any> | null;
14
- footer?: ReactElement<any> | null;
13
+ component: ReactNode | null;
14
+ footer?: ReactNode | null;
15
15
  cardProps?: Partial<CardProps>;
16
16
  className?: string;
17
17
  icon?: IconDefinition;
18
18
  onClose?: () => void;
19
19
  }
20
20
  export type DialogTitleProps<T extends OverridableTypeMap> = DefaultComponentProps<T> & {
21
- children?: React.ReactNode;
21
+ children?: ReactNode;
22
22
  icon?: IconDefinition | null;
23
23
  onClose: () => void;
24
24
  };
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import { CustomContentProps } from 'notistack';
3
- declare const NotistackAdapter: React.ForwardRefExoticComponent<CustomContentProps & React.RefAttributes<HTMLDivElement>>;
2
+ declare const NotistackAdapter: import("react").ForwardRefExoticComponent<CustomContentProps & import("react").RefAttributes<HTMLDivElement>>;
4
3
  export default NotistackAdapter;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface Props {
3
2
  setFile: (file: File | null) => void;
4
3
  removeExistingFile: () => void;
@@ -1,10 +1,13 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { TypographyProps, LinkProps, ButtonProps, TextFieldProps, InputProps, SelectProps, CheckboxProps, RadioGroupProps, AccordionProps, BreadcrumbsProps, BoxProps, ChipProps, TooltipProps, AutocompleteProps, AlertProps, SxProps, Theme as Theme$1, CardProps, SwitchProps, IconButtonProps } from '@mui/material';
3
- import React, { ReactNode, FocusEventHandler, MouseEventHandler, ReactElement, PropsWithChildren } from 'react';
2
+ import { TypographyProps, LinkProps, ButtonProps, TextFieldProps, SelectProps, CheckboxProps, RadioGroupProps, AccordionProps, BreadcrumbsProps, BoxProps, ChipProps, TooltipProps, AutocompleteProps, AlertProps, SxProps, Theme as Theme$1, CardProps, SwitchProps, IconButtonProps } from '@mui/material';
3
+ import * as react from 'react';
4
+ import react__default, { ReactNode, FocusEventHandler, BaseSyntheticEvent, MouseEventHandler, MouseEvent, ReactElement, PropsWithChildren } from 'react';
4
5
  import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
6
+ import { BoxProps as BoxProps$1 } from '@mui/system';
5
7
  import { CustomContentProps } from 'notistack';
6
8
  import { ModalProps as ModalProps$1 } from '@mui/material/Modal';
7
9
  import { DatePickerProps } from '@mui/x-date-pickers-pro';
10
+ import { Dayjs } from 'dayjs';
8
11
 
9
12
  interface Props$o extends Omit<TypographyProps, 'variant'> {
10
13
  variant?: 'bigNumber' | 'body1' | 'body1Regular' | 'body1Medium' | 'body1Bold' | 'body2' | 'body2Regular' | 'body2Medium' | 'body2Bold' | 'caption' | 'buttonNotif' | 'header1' | 'header2' | 'header3' | 'header4' | 'h1' | 'h2' | 'h3' | 'h4' | 'link1' | 'link2';
@@ -35,8 +38,6 @@ declare const Button: {
35
38
 
36
39
  interface Props$l extends Omit<TextFieldProps, 'error'> {
37
40
  error?: string;
38
- onBlur?: FocusEventHandler<unknown>;
39
- onChange?: InputProps['onChange'];
40
41
  label: string;
41
42
  value?: string | unknown;
42
43
  name?: string;
@@ -45,6 +46,9 @@ interface Props$l extends Omit<TextFieldProps, 'error'> {
45
46
  endAdornment?: ReactNode;
46
47
  maxLength?: number;
47
48
  width?: number | string;
49
+ className?: string;
50
+ onBlur?: FocusEventHandler<unknown>;
51
+ onChange?: (e: react__default.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
48
52
  }
49
53
  declare const TextField: {
50
54
  ({ name, value, error, onBlur, onChange, label, disabled, width, endAdornment, placeholder, maxLength, ...props }: Props$l): react_jsx_runtime.JSX.Element;
@@ -53,17 +57,21 @@ declare const TextField: {
53
57
 
54
58
  interface Props$k<T> extends Omit<SelectProps<T>, 'value' | 'onChange' | 'color' | 'error'> {
55
59
  options: T[];
56
- getRenderValue: (option: T) => string;
57
- onChange: (value: T) => void;
60
+ placeholder?: string;
61
+ disabled?: boolean;
58
62
  label: string;
59
63
  helperText?: string;
60
64
  color?: 'success';
61
65
  value: T | undefined;
62
66
  width?: number | string;
63
67
  error?: string;
68
+ className?: string;
69
+ getRenderValue: (option: T) => string;
70
+ onChange: (value: T) => void;
71
+ onBlur?: (event: BaseSyntheticEvent) => void;
64
72
  }
65
73
  declare const Select: {
66
- <T>({ value, label, options, color, error, placeholder, onChange, getRenderValue, helperText, onBlur, width, disabled, ...props }: Props$k<T>): react_jsx_runtime.JSX.Element;
74
+ <T>({ value, label, options, color, error, placeholder, helperText, width, disabled, onChange, getRenderValue, ...props }: Props$k<T>): react_jsx_runtime.JSX.Element;
67
75
  displayName: string;
68
76
  };
69
77
 
@@ -72,15 +80,19 @@ interface Props$j<T> extends Omit<SelectProps<T[]>, 'value' | 'onChange' | 'valu
72
80
  options: T[] | [];
73
81
  helperText?: string;
74
82
  color?: 'success';
75
- onChange: (value: T[]) => void;
76
- getRenderValue: (option: T) => string;
77
- getKeyValue: (option: T) => string;
78
83
  value: T[];
79
84
  width?: number | string;
80
85
  error?: string;
86
+ placeholder?: string;
87
+ disabled?: boolean;
88
+ className?: string;
89
+ onBlur?: FocusEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
90
+ onChange: (value: T[]) => void;
91
+ getRenderValue: (option: T) => string;
92
+ getKeyValue: (option: T) => string;
81
93
  }
82
94
  declare const MultiSelect: {
83
- <T>({ value, label, options, color, error, placeholder, helperText, width, getRenderValue, getKeyValue, onChange, onBlur, disabled, ...props }: Props$j<T>): react_jsx_runtime.JSX.Element;
95
+ <T>({ value, label, options, color, error, placeholder, helperText, width, getRenderValue, getKeyValue, onChange, disabled, ...props }: Props$j<T>): react_jsx_runtime.JSX.Element;
84
96
  displayName: string;
85
97
  };
86
98
 
@@ -141,6 +153,8 @@ interface Props$g extends AccordionProps {
141
153
  title?: string;
142
154
  summaryHeight?: number;
143
155
  expanded?: boolean;
156
+ children: NonNullable<ReactNode>;
157
+ disabled?: boolean;
144
158
  onClick?: MouseEventHandler;
145
159
  }
146
160
  declare const Accordion: {
@@ -201,7 +215,7 @@ interface Props$c extends Omit<ChipProps, 'suffix' | 'prefix' | 'onDelete' | 'on
201
215
  label: string;
202
216
  prefixIcon?: IconDefinition;
203
217
  suffixIcon?: IconDefinition;
204
- suffixAction?: (e: React.MouseEvent) => void;
218
+ suffixAction?: (e: MouseEvent) => void;
205
219
  suffixTooltip?: string;
206
220
  tooltip?: string;
207
221
  maxWidth?: string | number;
@@ -212,7 +226,7 @@ declare const Chip: {
212
226
  displayName: string;
213
227
  };
214
228
 
215
- interface Props$b extends BoxProps {
229
+ interface Props$b extends BoxProps$1 {
216
230
  variant: 'warning' | 'error' | 'success' | 'infos';
217
231
  title: string;
218
232
  text?: ReactNode;
@@ -285,7 +299,7 @@ interface Props$8 {
285
299
  declare const FileUploaderSingle: ({ setFile, error, helperText, removeExistingFile, onTouched, accept, title, disabledInput, children, fileUrl, fileName, titleAddButton, }: Props$8) => react_jsx_runtime.JSX.Element;
286
300
 
287
301
  interface Props$7 extends Omit<AlertProps, 'severity' | 'text'> {
288
- text: string | React.ReactNode;
302
+ text: string | react__default.ReactNode;
289
303
  severity: 'success' | 'warning' | 'error' | 'info';
290
304
  }
291
305
  declare const Snackbar: {
@@ -293,7 +307,7 @@ declare const Snackbar: {
293
307
  displayName: string;
294
308
  };
295
309
 
296
- declare const NotistackAdapter: React.ForwardRefExoticComponent<CustomContentProps & React.RefAttributes<HTMLDivElement>>;
310
+ declare const NotistackAdapter: react.ForwardRefExoticComponent<CustomContentProps & react.RefAttributes<HTMLDivElement>>;
297
311
 
298
312
  interface Props$6 extends AlertProps {
299
313
  text: string;
@@ -328,17 +342,17 @@ interface ModalProps extends Omit<ModalProps$1, 'component' | 'open' | 'classNam
328
342
  open: boolean;
329
343
  title?: string;
330
344
  size?: 'small' | 'large';
331
- component: ReactElement<any> | null;
332
- footer?: ReactElement<any> | null;
345
+ component: ReactNode | null;
346
+ footer?: ReactNode | null;
333
347
  cardProps?: Partial<CardProps>;
334
348
  className?: string;
335
349
  icon?: IconDefinition;
336
350
  onClose?: () => void;
337
351
  }
338
352
 
339
- declare const Drawer: ({ title, open, onClose, component, footer, cardProps, size, ...props }: Omit<ModalProps, 'withHeaderDivider' | 'icon'>) => react_jsx_runtime.JSX.Element;
353
+ declare const Drawer: ({ title, open, onClose, component, footer, cardProps, size, ...props }: Omit<ModalProps, "withHeaderDivider" | "icon">) => react_jsx_runtime.JSX.Element;
340
354
 
341
- declare const Dialog: ({ title, open, onClose, component, icon, ...props }: Omit<ModalProps, 'footer' | 'cardProps' | 'size'>) => react_jsx_runtime.JSX.Element;
355
+ declare const Dialog: ({ title, open, onClose, component, icon, ...props }: Omit<ModalProps, "footer" | "cardProps" | "size">) => react_jsx_runtime.JSX.Element;
342
356
 
343
357
  interface Props$4 {
344
358
  label: string;
@@ -351,16 +365,16 @@ declare const Switch: {
351
365
  displayName: string;
352
366
  };
353
367
 
354
- interface Props$3<T> extends Omit<DatePickerProps<T>, 'onChange' | 'width'> {
355
- value: T;
356
- onChange: (value: T | null) => void;
368
+ interface Props$3<T extends Dayjs> extends Omit<DatePickerProps<Dayjs>, 'onChange' | 'width'> {
369
+ value: T | null;
370
+ onChange: (value: Dayjs | null) => void;
357
371
  error?: string;
358
372
  success?: boolean;
359
373
  helperText?: string;
360
374
  width?: string;
361
375
  locale?: 'fr' | 'en';
362
376
  }
363
- declare const DatePicker: <T extends {} | undefined>({ value, onChange, error, success, helperText, width, locale, ...props }: Props$3<T>) => react_jsx_runtime.JSX.Element;
377
+ declare const DatePicker: <T extends Dayjs>({ value, onChange, error, success, helperText, width, locale, ...props }: Props$3<T>) => react_jsx_runtime.JSX.Element;
364
378
 
365
379
  type Order = 'asc' | 'desc';
366
380
  interface SortInfo {
@@ -412,9 +426,9 @@ type WithDetailsProps<T, D> = {
412
426
  type WithoutDetailsProps<T> = {
413
427
  onLoad: () => Promise<DatatableDataSet<T>>;
414
428
  };
415
- type Props$2<T extends {}> = BaseProps<T> & (WithoutPaginationProps | PaginationProps) & (WithDetailsProps<T, RowDetail> | WithoutDetailsProps<T>);
429
+ type Props$2<T extends object> = BaseProps<T> & (WithoutPaginationProps | PaginationProps) & (WithDetailsProps<T, RowDetail> | WithoutDetailsProps<T>);
416
430
 
417
- declare const Datatable: <T extends {}>({ onLoad, onSort, sortInfo, withHeader, withPagination, columns, ...props }: Props$2<T>) => react_jsx_runtime.JSX.Element;
431
+ declare const Datatable: <T extends object>({ onLoad, onSort, sortInfo, withHeader, withPagination, columns, ...props }: Props$2<T>) => react_jsx_runtime.JSX.Element;
418
432
 
419
433
  declare const DatatableCellRender: ({ data }: {
420
434
  data: string;
@@ -426,6 +440,9 @@ interface Props$1 extends IconButtonProps {
426
440
  positionGroup?: 'left' | 'middle' | 'right';
427
441
  tooltipText?: string;
428
442
  tooltipPosition?: Placement;
443
+ size?: 'small' | 'medium';
444
+ sx?: SxProps<Theme$1>;
445
+ onClick?: () => void;
429
446
  }
430
447
  declare const IconButton: {
431
448
  ({ icon, variant, positionGroup, tooltipText, tooltipPosition, size, ...iconButtonProps }: Props$1): react_jsx_runtime.JSX.Element;
@@ -438,10 +455,10 @@ interface DesignSystemContextValues {
438
455
  themeName: Theme;
439
456
  toggleDarkTheme: () => void;
440
457
  }
441
- declare const DesignSystemContext: React.Context<DesignSystemContextValues>;
458
+ declare const DesignSystemContext: react.Context<DesignSystemContextValues>;
442
459
  interface Props {
443
460
  name?: Theme;
444
461
  }
445
- declare const DesignSystemProvider: ({ children, name: themeName }: PropsWithChildren<Props>) => react_jsx_runtime.JSX.Element;
462
+ declare const DesignSystemProvider: ({ children, name: themeName, }: PropsWithChildren<Props>) => react_jsx_runtime.JSX.Element;
446
463
 
447
464
  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, MultiSelect, NotistackAdapter, Pagination, RadioGroup, Select, Snackbar, Stepper, Switch, Text, TextField, Tooltip };