@groupeactual/ui-kit 1.6.6 → 1.7.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (191) hide show
  1. package/dist/cjs/index.js +9 -9
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/es/index.d.ts +5 -4
  4. package/dist/es/index.js +107 -0
  5. package/dist/es/index.js.map +1 -0
  6. package/dist/es/{types → src}/components/Form/AutoCompleteMulti/AutoCompleteMulti.d.ts +1 -1
  7. package/dist/{cjs/types → es/src}/components/Form/AutoCompleteSingle/AutoCompleteSingle.d.ts +1 -1
  8. package/dist/{cjs/types → es/src}/components/Form/Select/Select.d.ts +4 -2
  9. package/dist/{cjs/types → es/src}/components/IconButton/IconButton.d.ts +1 -1
  10. package/dist/es/{types → src}/components/Modal/Dialog/Dialog.d.ts +1 -1
  11. package/dist/es/{types → src}/components/Modal/Drawer/Drawer.d.ts +1 -1
  12. package/dist/{cjs/types → es/src}/helpers/dataGetValue.d.ts +1 -1
  13. package/dist/{cjs/types → es/src}/hooks/useGooleDrivePicker.d.ts +2 -2
  14. package/dist/es/src/index.d.ts +4 -0
  15. package/package.json +18 -23
  16. package/src/DesignSystemProvider.tsx +2 -1
  17. package/src/components/Accordion/Accordion.tsx +1 -1
  18. package/src/components/BannerNotification/BannerNotification.tsx +1 -1
  19. package/src/components/Breadcrumbs/Breadcrumbs.tsx +2 -2
  20. package/src/components/Chip/Chip.tsx +1 -1
  21. package/src/components/Datatable/Datatable.tsx +4 -3
  22. package/src/components/Datatable/DatatableCellRender.tsx +2 -2
  23. package/src/components/EmbbededNotification/EmbeddedNotification.tsx +2 -2
  24. package/src/components/Form/AutoCompleteMulti/AutoCompleteMulti.tsx +22 -12
  25. package/src/components/Form/AutoCompleteSingle/AutoCompleteSingle.tsx +22 -10
  26. package/src/components/Form/Checkbox/Checkbox.tsx +2 -2
  27. package/src/components/Form/CheckboxGroup/CheckboxGroup.tsx +1 -1
  28. package/src/components/Form/DatePicker/DatePicker.tsx +1 -1
  29. package/src/components/Form/MultiSelect/MultiSelect.tsx +10 -7
  30. package/src/components/Form/RadioGroup/RadioGroup.tsx +2 -2
  31. package/src/components/Form/Select/Select.tsx +15 -6
  32. package/src/components/Form/TextField/TextField.tsx +1 -1
  33. package/src/components/IconButton/IconButton.tsx +3 -3
  34. package/src/components/MenuItem/MenuItem.tsx +2 -2
  35. package/src/components/Modal/Dialog/Dialog.tsx +7 -4
  36. package/src/components/Modal/Drawer/Drawer.tsx +2 -2
  37. package/src/components/Navigation/Stepper/Step.tsx +3 -2
  38. package/src/components/NotistackAdapter/NotistackAdapter.tsx +1 -1
  39. package/src/components/Pagination/Pagination.tsx +7 -11
  40. package/src/components/Snackbar/Snackbar.tsx +1 -1
  41. package/src/components/UploadDocument/FileUploaderSingle.tsx +7 -7
  42. package/src/helpers/GooglePickerWrapper.tsx +1 -1
  43. package/src/helpers/dataGetValue.ts +1 -1
  44. package/src/hooks/useGooleDrivePicker.ts +2 -2
  45. package/src/index.ts +3 -5
  46. package/dist/cjs/types/components/Form/AutoCompleteMulti/AutoCompleteMulti.d.ts +0 -18
  47. package/dist/cjs/types/components/Modal/Dialog/Dialog.d.ts +0 -4
  48. package/dist/cjs/types/components/Modal/Drawer/Drawer.d.ts +0 -4
  49. package/dist/cjs/types/index.d.ts +0 -2
  50. package/dist/es/index.mjs +0 -106
  51. package/dist/es/index.mjs.map +0 -1
  52. package/dist/es/types/DesignSystemProvider.d.ts +0 -13
  53. package/dist/es/types/components/Accordion/Accordion.d.ts +0 -15
  54. package/dist/es/types/components/Accordion/index.d.ts +0 -1
  55. package/dist/es/types/components/BannerNotification/BannerNotification.d.ts +0 -11
  56. package/dist/es/types/components/BannerNotification/index.d.ts +0 -1
  57. package/dist/es/types/components/Breadcrumbs/Breadcrumbs.d.ts +0 -15
  58. package/dist/es/types/components/Breadcrumbs/index.d.ts +0 -1
  59. package/dist/es/types/components/Button/Button.d.ts +0 -11
  60. package/dist/es/types/components/Button/index.d.ts +0 -1
  61. package/dist/es/types/components/Chip/Chip.d.ts +0 -19
  62. package/dist/es/types/components/Chip/index.d.ts +0 -1
  63. package/dist/es/types/components/Datatable/Datatable.d.ts +0 -4
  64. package/dist/es/types/components/Datatable/DatatableCellRender.d.ts +0 -4
  65. package/dist/es/types/components/Datatable/datatable.interface.d.ts +0 -53
  66. package/dist/es/types/components/Datatable/index.d.ts +0 -1
  67. package/dist/es/types/components/Datatable/use-pagination-props.hook.d.ts +0 -3
  68. package/dist/es/types/components/EmbbededNotification/EmbeddedNotification.d.ts +0 -13
  69. package/dist/es/types/components/EmbbededNotification/index.d.ts +0 -1
  70. package/dist/es/types/components/Form/AutoCompleteMulti/index.d.ts +0 -1
  71. package/dist/es/types/components/Form/AutoCompleteSingle/AutoCompleteSingle.d.ts +0 -19
  72. package/dist/es/types/components/Form/AutoCompleteSingle/index.d.ts +0 -1
  73. package/dist/es/types/components/Form/Checkbox/Checkbox.d.ts +0 -17
  74. package/dist/es/types/components/Form/Checkbox/index.d.ts +0 -1
  75. package/dist/es/types/components/Form/CheckboxGroup/CheckboxGroup.d.ts +0 -20
  76. package/dist/es/types/components/Form/CheckboxGroup/index.d.ts +0 -1
  77. package/dist/es/types/components/Form/DatePicker/DatePicker.d.ts +0 -15
  78. package/dist/es/types/components/Form/DatePicker/index.d.ts +0 -1
  79. package/dist/es/types/components/Form/MultiSelect/MultiSelect.d.ts +0 -23
  80. package/dist/es/types/components/Form/MultiSelect/index.d.ts +0 -1
  81. package/dist/es/types/components/Form/RadioGroup/RadioGroup.d.ts +0 -21
  82. package/dist/es/types/components/Form/RadioGroup/index.d.ts +0 -1
  83. package/dist/es/types/components/Form/Select/Select.d.ts +0 -22
  84. package/dist/es/types/components/Form/Select/index.d.ts +0 -1
  85. package/dist/es/types/components/Form/Switch/Switch.d.ts +0 -13
  86. package/dist/es/types/components/Form/Switch/index.d.ts +0 -1
  87. package/dist/es/types/components/Form/TextField/TextField.d.ts +0 -21
  88. package/dist/es/types/components/Form/TextField/index.d.ts +0 -1
  89. package/dist/es/types/components/IconButton/IconButton.d.ts +0 -19
  90. package/dist/es/types/components/IconButton/index.d.ts +0 -1
  91. package/dist/es/types/components/IconProvider/IconProvider.d.ts +0 -22
  92. package/dist/es/types/components/IconProvider/index.d.ts +0 -1
  93. package/dist/es/types/components/Link/Link.d.ts +0 -11
  94. package/dist/es/types/components/Link/index.d.ts +0 -1
  95. package/dist/es/types/components/MenuItem/MenuItem.d.ts +0 -13
  96. package/dist/es/types/components/MenuItem/index.d.ts +0 -1
  97. package/dist/es/types/components/Modal/Dialog/index.d.ts +0 -1
  98. package/dist/es/types/components/Modal/Drawer/index.d.ts +0 -1
  99. package/dist/es/types/components/Modal/modal.interface.d.ts +0 -24
  100. package/dist/es/types/components/Navigation/Stepper/Step.d.ts +0 -7
  101. package/dist/es/types/components/Navigation/Stepper/Stepper.d.ts +0 -11
  102. package/dist/es/types/components/Navigation/Stepper/index.d.ts +0 -1
  103. package/dist/es/types/components/Navigation/Stepper/stepper.helper.d.ts +0 -2
  104. package/dist/es/types/components/Navigation/Stepper/stepper.interface.d.ts +0 -12
  105. package/dist/es/types/components/NotistackAdapter/NotistackAdapter.d.ts +0 -4
  106. package/dist/es/types/components/NotistackAdapter/index.d.ts +0 -1
  107. package/dist/es/types/components/Pagination/Pagination.d.ts +0 -16
  108. package/dist/es/types/components/Pagination/index.d.ts +0 -1
  109. package/dist/es/types/components/Pagination/pagination.helper.d.ts +0 -1
  110. package/dist/es/types/components/Snackbar/Snackbar.d.ts +0 -11
  111. package/dist/es/types/components/Snackbar/index.d.ts +0 -1
  112. package/dist/es/types/components/Text/Text.d.ts +0 -11
  113. package/dist/es/types/components/Text/index.d.ts +0 -1
  114. package/dist/es/types/components/Tooltip/Tooltip.d.ts +0 -13
  115. package/dist/es/types/components/Tooltip/index.d.ts +0 -1
  116. package/dist/es/types/components/Tooltip/tooltip.interface.d.ts +0 -1
  117. package/dist/es/types/components/UploadDocument/FileUploaderSingle.d.ts +0 -30
  118. package/dist/es/types/components/UploadDocument/index.d.ts +0 -1
  119. package/dist/es/types/components/index.d.ts +0 -31
  120. package/dist/es/types/helpers/GooglePickerWrapper.d.ts +0 -13
  121. package/dist/es/types/helpers/dataGetValue.d.ts +0 -2
  122. package/dist/es/types/hooks/useGooleDrivePicker.d.ts +0 -4
  123. package/dist/es/types/index.d.ts +0 -2
  124. package/dist/es/types/types/googleDrive.d.ts +0 -133
  125. /package/dist/{cjs/types → es/src}/DesignSystemProvider.d.ts +0 -0
  126. /package/dist/{cjs/types → es/src}/components/Accordion/Accordion.d.ts +0 -0
  127. /package/dist/{cjs/types → es/src}/components/Accordion/index.d.ts +0 -0
  128. /package/dist/{cjs/types → es/src}/components/BannerNotification/BannerNotification.d.ts +0 -0
  129. /package/dist/{cjs/types → es/src}/components/BannerNotification/index.d.ts +0 -0
  130. /package/dist/{cjs/types → es/src}/components/Breadcrumbs/Breadcrumbs.d.ts +0 -0
  131. /package/dist/{cjs/types → es/src}/components/Breadcrumbs/index.d.ts +0 -0
  132. /package/dist/{cjs/types → es/src}/components/Button/Button.d.ts +0 -0
  133. /package/dist/{cjs/types → es/src}/components/Button/index.d.ts +0 -0
  134. /package/dist/{cjs/types → es/src}/components/Chip/Chip.d.ts +0 -0
  135. /package/dist/{cjs/types → es/src}/components/Chip/index.d.ts +0 -0
  136. /package/dist/{cjs/types → es/src}/components/Datatable/Datatable.d.ts +0 -0
  137. /package/dist/{cjs/types → es/src}/components/Datatable/DatatableCellRender.d.ts +0 -0
  138. /package/dist/{cjs/types → es/src}/components/Datatable/datatable.interface.d.ts +0 -0
  139. /package/dist/{cjs/types → es/src}/components/Datatable/index.d.ts +0 -0
  140. /package/dist/{cjs/types → es/src}/components/Datatable/use-pagination-props.hook.d.ts +0 -0
  141. /package/dist/{cjs/types → es/src}/components/EmbbededNotification/EmbeddedNotification.d.ts +0 -0
  142. /package/dist/{cjs/types → es/src}/components/EmbbededNotification/index.d.ts +0 -0
  143. /package/dist/{cjs/types → es/src}/components/Form/AutoCompleteMulti/index.d.ts +0 -0
  144. /package/dist/{cjs/types → es/src}/components/Form/AutoCompleteSingle/index.d.ts +0 -0
  145. /package/dist/{cjs/types → es/src}/components/Form/Checkbox/Checkbox.d.ts +0 -0
  146. /package/dist/{cjs/types → es/src}/components/Form/Checkbox/index.d.ts +0 -0
  147. /package/dist/{cjs/types → es/src}/components/Form/CheckboxGroup/CheckboxGroup.d.ts +0 -0
  148. /package/dist/{cjs/types → es/src}/components/Form/CheckboxGroup/index.d.ts +0 -0
  149. /package/dist/{cjs/types → es/src}/components/Form/DatePicker/DatePicker.d.ts +0 -0
  150. /package/dist/{cjs/types → es/src}/components/Form/DatePicker/index.d.ts +0 -0
  151. /package/dist/{cjs/types → es/src}/components/Form/MultiSelect/MultiSelect.d.ts +0 -0
  152. /package/dist/{cjs/types → es/src}/components/Form/MultiSelect/index.d.ts +0 -0
  153. /package/dist/{cjs/types → es/src}/components/Form/RadioGroup/RadioGroup.d.ts +0 -0
  154. /package/dist/{cjs/types → es/src}/components/Form/RadioGroup/index.d.ts +0 -0
  155. /package/dist/{cjs/types → es/src}/components/Form/Select/index.d.ts +0 -0
  156. /package/dist/{cjs/types → es/src}/components/Form/Switch/Switch.d.ts +0 -0
  157. /package/dist/{cjs/types → es/src}/components/Form/Switch/index.d.ts +0 -0
  158. /package/dist/{cjs/types → es/src}/components/Form/TextField/TextField.d.ts +0 -0
  159. /package/dist/{cjs/types → es/src}/components/Form/TextField/index.d.ts +0 -0
  160. /package/dist/{cjs/types → es/src}/components/IconButton/index.d.ts +0 -0
  161. /package/dist/{cjs/types → es/src}/components/IconProvider/IconProvider.d.ts +0 -0
  162. /package/dist/{cjs/types → es/src}/components/IconProvider/index.d.ts +0 -0
  163. /package/dist/{cjs/types → es/src}/components/Link/Link.d.ts +0 -0
  164. /package/dist/{cjs/types → es/src}/components/Link/index.d.ts +0 -0
  165. /package/dist/{cjs/types → es/src}/components/MenuItem/MenuItem.d.ts +0 -0
  166. /package/dist/{cjs/types → es/src}/components/MenuItem/index.d.ts +0 -0
  167. /package/dist/{cjs/types → es/src}/components/Modal/Dialog/index.d.ts +0 -0
  168. /package/dist/{cjs/types → es/src}/components/Modal/Drawer/index.d.ts +0 -0
  169. /package/dist/{cjs/types → es/src}/components/Modal/modal.interface.d.ts +0 -0
  170. /package/dist/{cjs/types → es/src}/components/Navigation/Stepper/Step.d.ts +0 -0
  171. /package/dist/{cjs/types → es/src}/components/Navigation/Stepper/Stepper.d.ts +0 -0
  172. /package/dist/{cjs/types → es/src}/components/Navigation/Stepper/index.d.ts +0 -0
  173. /package/dist/{cjs/types → es/src}/components/Navigation/Stepper/stepper.helper.d.ts +0 -0
  174. /package/dist/{cjs/types → es/src}/components/Navigation/Stepper/stepper.interface.d.ts +0 -0
  175. /package/dist/{cjs/types → es/src}/components/NotistackAdapter/NotistackAdapter.d.ts +0 -0
  176. /package/dist/{cjs/types → es/src}/components/NotistackAdapter/index.d.ts +0 -0
  177. /package/dist/{cjs/types → es/src}/components/Pagination/Pagination.d.ts +0 -0
  178. /package/dist/{cjs/types → es/src}/components/Pagination/index.d.ts +0 -0
  179. /package/dist/{cjs/types → es/src}/components/Pagination/pagination.helper.d.ts +0 -0
  180. /package/dist/{cjs/types → es/src}/components/Snackbar/Snackbar.d.ts +0 -0
  181. /package/dist/{cjs/types → es/src}/components/Snackbar/index.d.ts +0 -0
  182. /package/dist/{cjs/types → es/src}/components/Text/Text.d.ts +0 -0
  183. /package/dist/{cjs/types → es/src}/components/Text/index.d.ts +0 -0
  184. /package/dist/{cjs/types → es/src}/components/Tooltip/Tooltip.d.ts +0 -0
  185. /package/dist/{cjs/types → es/src}/components/Tooltip/index.d.ts +0 -0
  186. /package/dist/{cjs/types → es/src}/components/Tooltip/tooltip.interface.d.ts +0 -0
  187. /package/dist/{cjs/types → es/src}/components/UploadDocument/FileUploaderSingle.d.ts +0 -0
  188. /package/dist/{cjs/types → es/src}/components/UploadDocument/index.d.ts +0 -0
  189. /package/dist/{cjs/types → es/src}/components/index.d.ts +0 -0
  190. /package/dist/{cjs/types → es/src}/helpers/GooglePickerWrapper.d.ts +0 -0
  191. /package/dist/{cjs/types → es/src}/types/googleDrive.d.ts +0 -0
@@ -1,13 +0,0 @@
1
- import React, { PropsWithChildren } from 'react';
2
- type Theme = 'Default' | 'Ep';
3
- export interface DesignSystemContextValues {
4
- isDarkTheme: boolean;
5
- themeName: Theme;
6
- toggleDarkTheme: () => void;
7
- }
8
- export declare const DesignSystemContext: React.Context<DesignSystemContextValues>;
9
- interface Props {
10
- name?: Theme;
11
- }
12
- declare const DesignSystemProvider: ({ children, name: themeName, }: PropsWithChildren<Props>) => React.JSX.Element;
13
- export default DesignSystemProvider;
@@ -1,15 +0,0 @@
1
- import React, { MouseEventHandler, ReactNode } from 'react';
2
- import { AccordionProps } from '@mui/material';
3
- interface Props extends AccordionProps {
4
- title?: string;
5
- summaryHeight?: number;
6
- expanded?: boolean;
7
- children: NonNullable<ReactNode>;
8
- disabled?: boolean;
9
- onClick?: MouseEventHandler;
10
- }
11
- declare const Accordion: {
12
- ({ title, summaryHeight, expanded, onClick, children, ...props }: Props): React.JSX.Element;
13
- displayName: string;
14
- };
15
- export default Accordion;
@@ -1 +0,0 @@
1
- export { default } from './Accordion';
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import { AlertProps } from '@mui/material';
3
- interface Props extends AlertProps {
4
- text: string;
5
- onClose?: () => void;
6
- }
7
- declare const BannerNotification: {
8
- ({ text, severity, onClose }: Props): React.JSX.Element;
9
- displayName: string;
10
- };
11
- export default BannerNotification;
@@ -1 +0,0 @@
1
- export { default } from './BannerNotification';
@@ -1,15 +0,0 @@
1
- import React from 'react';
2
- import { BreadcrumbsProps } from '@mui/material';
3
- interface LinkItem {
4
- link: string;
5
- title: string;
6
- }
7
- interface Props extends BreadcrumbsProps {
8
- PageName: string;
9
- links: LinkItem[];
10
- }
11
- declare const Breadcrumbs: {
12
- ({ PageName, links, ...props }: Props): React.JSX.Element;
13
- displayName: string;
14
- };
15
- export default Breadcrumbs;
@@ -1 +0,0 @@
1
- export { default } from './Breadcrumbs';
@@ -1,11 +0,0 @@
1
- import React, { ReactNode } from 'react';
2
- import { ButtonProps } from '@mui/material';
3
- interface Props extends Omit<ButtonProps, 'variant' | 'children'> {
4
- variant?: 'primary' | 'secondary';
5
- children?: ReactNode;
6
- }
7
- declare const Button: {
8
- ({ variant, children, ...props }: Props): React.JSX.Element;
9
- displayName: string;
10
- };
11
- export default Button;
@@ -1 +0,0 @@
1
- export { default } from './Button';
@@ -1,19 +0,0 @@
1
- import React, { MouseEvent } from 'react';
2
- import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
3
- import { ChipProps as ChipPropsMUI } from '@mui/material';
4
- interface Props extends Omit<ChipPropsMUI, 'suffix' | 'prefix' | 'onDelete' | 'onDeleteIcon' | 'variant'> {
5
- variant: 'filled' | 'outlined' | 'status' | 'statusFilled';
6
- label: string;
7
- prefixIcon?: IconDefinition;
8
- suffixIcon?: IconDefinition;
9
- suffixAction?: (e: MouseEvent) => void;
10
- suffixTooltip?: string;
11
- tooltip?: string;
12
- maxWidth?: string | number;
13
- maxLength?: number;
14
- }
15
- declare const Chip: {
16
- ({ variant, label, prefixIcon, suffixIcon, suffixTooltip, suffixAction, tooltip, maxWidth, ...props }: Props): React.JSX.Element;
17
- displayName: string;
18
- };
19
- export default Chip;
@@ -1 +0,0 @@
1
- export { default } from './Chip';
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import { Props } from './datatable.interface';
3
- declare const Datatable: <T extends object>({ onLoad, onSort, sortInfo, withHeader, withPagination, columns, ...props }: Props<T>) => React.JSX.Element;
4
- export default Datatable;
@@ -1,4 +0,0 @@
1
- declare const DatatableCellRender: ({ data }: {
2
- data: string;
3
- }) => JSX.Element;
4
- export default DatatableCellRender;
@@ -1,53 +0,0 @@
1
- import { ReactNode } from 'react';
2
- export type Order = 'asc' | 'desc';
3
- export interface SortInfo {
4
- name: string;
5
- direction: Order;
6
- }
7
- export interface PaginationTrans {
8
- total: string;
9
- totalPerPage: string;
10
- }
11
- export type ColumnDatatable<T> = {
12
- name: string;
13
- render: (record: T) => JSX.Element;
14
- title?: string;
15
- topTitle?: string;
16
- width?: string;
17
- sortable?: boolean;
18
- };
19
- export interface RowDetail {
20
- detail: ReactNode;
21
- }
22
- type BaseProps<T> = {
23
- columns: ColumnDatatable<T>[];
24
- withPagination: boolean;
25
- withHeader?: boolean;
26
- sortInfo?: SortInfo | null;
27
- onSort?: (info: SortInfo | null) => void;
28
- };
29
- type WithoutPaginationProps = {
30
- withPagination: false;
31
- };
32
- export type PaginationProps = {
33
- withPagination: true;
34
- setPage: (page: number) => void;
35
- setLimit: (limit: number) => void;
36
- trans: PaginationTrans;
37
- withTopPagination?: boolean;
38
- limits?: number[];
39
- };
40
- type DatatableDataSet<T> = {
41
- items: T[];
42
- currentPage: number;
43
- itemsPerPage: number;
44
- totalItems: number;
45
- };
46
- type WithDetailsProps<T, D> = {
47
- onLoad: () => Promise<DatatableDataSet<T & D>>;
48
- };
49
- type WithoutDetailsProps<T> = {
50
- onLoad: () => Promise<DatatableDataSet<T>>;
51
- };
52
- export type Props<T extends object> = BaseProps<T> & (WithoutPaginationProps | PaginationProps) & (WithDetailsProps<T, RowDetail> | WithoutDetailsProps<T>);
53
- export {};
@@ -1 +0,0 @@
1
- export { default } from './Datatable';
@@ -1,3 +0,0 @@
1
- import { PaginationProps, Props } from './datatable.interface';
2
- declare const usePaginationProps: <T extends object>(props: Props<T> | object) => Omit<PaginationProps, "withPagination">;
3
- export default usePaginationProps;
@@ -1,13 +0,0 @@
1
- import React, { ReactNode } from 'react';
2
- import { BoxProps } from '@mui/system';
3
- interface Props extends BoxProps {
4
- variant: 'warning' | 'error' | 'success' | 'infos';
5
- title: string;
6
- text?: ReactNode;
7
- actionButton?: ReactNode;
8
- }
9
- declare const EmbeddedNotification: {
10
- ({ title, text, variant, actionButton, ...props }: Props): React.JSX.Element;
11
- displayName: string;
12
- };
13
- export default EmbeddedNotification;
@@ -1 +0,0 @@
1
- export { default } from './EmbeddedNotification';
@@ -1 +0,0 @@
1
- export { default } from './AutoCompleteMulti';
@@ -1,19 +0,0 @@
1
- import React from 'react';
2
- import { type AutocompleteProps } from '@mui/material';
3
- interface Props<T> extends Omit<AutocompleteProps<T, false, false, false>, 'onChange' | 'value' | 'options' | 'renderInput' | 'error' | 'getOptionLabel'> {
4
- label: string;
5
- options: T[];
6
- helperText?: string;
7
- color?: 'success';
8
- placeholder?: string;
9
- getOptionLabel: (option: T) => string | null | undefined;
10
- onChange: (value: T | null) => void;
11
- value?: T | null;
12
- width?: number | string;
13
- error?: string;
14
- }
15
- declare const AutoCompleteSingle: {
16
- <T>({ value, label, placeholder, options, disabled, getOptionLabel, onChange, width, color, helperText, error, ...props }: Props<T>): React.JSX.Element;
17
- displayName: string;
18
- };
19
- export default AutoCompleteSingle;
@@ -1 +0,0 @@
1
- export { default } from './AutoCompleteSingle';
@@ -1,17 +0,0 @@
1
- import React from 'react';
2
- import { CheckboxProps } from '@mui/material';
3
- interface Props {
4
- name: string;
5
- value: boolean;
6
- label: string;
7
- onChange?: (field: string, value: boolean, shouldValidate?: boolean | undefined) => void;
8
- helperText?: string;
9
- error?: string;
10
- infoBubbleContent?: string;
11
- infoBubblePosition?: 'top' | 'right' | 'bottom' | 'left' | 'bottom-end' | 'bottom-start' | 'left-end' | 'left-start' | 'right-end' | 'right-start' | 'top-end' | 'top-start' | undefined;
12
- }
13
- declare const Checkbox: {
14
- ({ name, value, error, helperText, label, infoBubbleContent, infoBubblePosition, onChange, disabled, ...props }: CheckboxProps & Props): React.JSX.Element;
15
- displayName: string;
16
- };
17
- export default Checkbox;
@@ -1 +0,0 @@
1
- export { default } from './Checkbox';
@@ -1,20 +0,0 @@
1
- import React from 'react';
2
- interface ItemType {
3
- label: string;
4
- value: boolean;
5
- name: string;
6
- infoBubbleContent?: string;
7
- infoBubblePosition?: 'right' | 'bottom' | 'left' | 'top' | 'bottom-end' | 'bottom-start' | 'left-end' | 'left-start' | 'right-end' | 'right-start' | 'top-end' | 'top-start' | undefined;
8
- }
9
- interface CheckboxGroupProps {
10
- label: string;
11
- options: ItemType[];
12
- disabled?: boolean;
13
- error?: string;
14
- helperText?: string;
15
- }
16
- declare const CheckboxGroup: {
17
- ({ options, label, disabled, error, helperText, }: CheckboxGroupProps): React.JSX.Element;
18
- displayName: string;
19
- };
20
- export default CheckboxGroup;
@@ -1 +0,0 @@
1
- export { default } from './CheckboxGroup';
@@ -1,15 +0,0 @@
1
- import React from 'react';
2
- import { DatePickerProps } from '@mui/x-date-pickers-pro';
3
- import { Dayjs } from 'dayjs';
4
- import 'dayjs/locale/fr';
5
- interface Props<T extends Dayjs> extends Omit<DatePickerProps<T>, 'onChange' | 'width'> {
6
- value: T | null | undefined;
7
- onChange: (value: T | null | undefined) => void;
8
- error?: string;
9
- success?: boolean;
10
- helperText?: string;
11
- width?: string;
12
- locale?: 'fr' | 'en';
13
- }
14
- declare const DatePicker: <T extends Dayjs>({ value, onChange, error, success, helperText, width, locale, ...props }: Props<T>) => React.JSX.Element;
15
- export default DatePicker;
@@ -1 +0,0 @@
1
- export { default } from './DatePicker';
@@ -1,23 +0,0 @@
1
- import React, { FocusEventHandler } from 'react';
2
- import { SelectProps } from '@mui/material';
3
- interface Props<T> extends Omit<SelectProps<T[]>, 'value' | 'onChange' | 'value' | 'color' | 'error'> {
4
- label: string;
5
- options: T[] | [];
6
- helperText?: string;
7
- color?: 'success';
8
- value: T[];
9
- width?: number | string;
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;
18
- }
19
- declare const MultiSelect: {
20
- <T>({ value, label, options, color, error, placeholder, helperText, width, getRenderValue, getKeyValue, onChange, disabled, ...props }: Props<T>): React.JSX.Element;
21
- displayName: string;
22
- };
23
- export default MultiSelect;
@@ -1 +0,0 @@
1
- export { default } from './MultiSelect';
@@ -1,21 +0,0 @@
1
- import React from 'react';
2
- import { RadioGroupProps } from '@mui/material';
3
- interface ItemType<T> {
4
- label: string;
5
- value: T;
6
- infoBubbleContent?: string;
7
- infoBubblePosition?: 'top' | 'right' | 'bottom' | 'left' | 'bottom-end' | 'bottom-start' | 'left-end' | 'left-start' | 'right-end' | 'right-start' | 'top-end' | 'top-start' | undefined;
8
- }
9
- interface Props<T> extends Omit<RadioGroupProps, 'onChange'> {
10
- label: string;
11
- options: ItemType<T>[];
12
- onChange: (value: T) => void;
13
- error?: string;
14
- helperText?: string;
15
- disabled?: boolean;
16
- }
17
- declare const RadioGroup: {
18
- <T>({ options, value, label, onChange, helperText, disabled, error, ...props }: Props<T>): React.JSX.Element;
19
- displayName: string;
20
- };
21
- export default RadioGroup;
@@ -1 +0,0 @@
1
- export { default } from './RadioGroup';
@@ -1,22 +0,0 @@
1
- import React, { BaseSyntheticEvent } from 'react';
2
- import { SelectProps } from '@mui/material';
3
- interface Props<T> extends Omit<SelectProps<T>, 'value' | 'onChange' | 'color' | 'error'> {
4
- options: T[];
5
- placeholder?: string;
6
- disabled?: boolean;
7
- label: string;
8
- helperText?: string;
9
- color?: 'success';
10
- value: T | undefined;
11
- width?: number | string;
12
- error?: string;
13
- className?: string;
14
- getRenderValue: (option: T) => string;
15
- onChange: (value: T) => void;
16
- onBlur?: (event: BaseSyntheticEvent) => void;
17
- }
18
- declare const Select: {
19
- <T>({ value, label, options, color, error, placeholder, helperText, width, disabled, onChange, getRenderValue, ...props }: Props<T>): React.JSX.Element;
20
- displayName: string;
21
- };
22
- export default Select;
@@ -1 +0,0 @@
1
- export { default } from './Select';
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- import { SwitchProps } from '@mui/material';
3
- interface Props {
4
- label: string;
5
- checked: boolean;
6
- leftSideLabel?: string;
7
- onClick: () => void;
8
- }
9
- declare const Switch: {
10
- ({ label, checked, leftSideLabel, onClick, ...props }: SwitchProps & Props): React.JSX.Element;
11
- displayName: string;
12
- };
13
- export default Switch;
@@ -1 +0,0 @@
1
- export { default } from './Switch';
@@ -1,21 +0,0 @@
1
- import React, { FocusEventHandler, ReactNode } from 'react';
2
- import { TextFieldProps } from '@mui/material';
3
- interface Props extends Omit<TextFieldProps, 'error'> {
4
- error?: string;
5
- label: string;
6
- value?: string | unknown;
7
- name?: string;
8
- placeholder?: string;
9
- disabled?: boolean;
10
- endAdornment?: ReactNode;
11
- maxLength?: number;
12
- width?: number | string;
13
- className?: string;
14
- onBlur?: FocusEventHandler<unknown>;
15
- onChange?: (e: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
16
- }
17
- declare const TextField: {
18
- ({ name, value, error, onBlur, onChange, label, disabled, width, endAdornment, placeholder, maxLength, ...props }: Props): React.JSX.Element;
19
- displayName: string;
20
- };
21
- export default TextField;
@@ -1 +0,0 @@
1
- export { default } from './TextField';
@@ -1,19 +0,0 @@
1
- import React from 'react';
2
- import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
3
- import { IconButtonProps, SxProps, Theme } from '@mui/material';
4
- import { Placement } from '../Tooltip/tooltip.interface';
5
- interface Props extends IconButtonProps {
6
- icon: IconDefinition;
7
- variant?: 'default' | 'table';
8
- positionGroup?: 'left' | 'middle' | 'right';
9
- tooltipText?: string;
10
- tooltipPosition?: Placement;
11
- size?: 'small' | 'medium';
12
- sx?: SxProps<Theme>;
13
- onClick?: (e: any) => void;
14
- }
15
- declare const IconButton: {
16
- ({ icon, variant, positionGroup, tooltipText, tooltipPosition, size, ...iconButtonProps }: Props): React.JSX.Element;
17
- displayName: string;
18
- };
19
- export default IconButton;
@@ -1 +0,0 @@
1
- export { default } from './IconButton';
@@ -1,22 +0,0 @@
1
- import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
2
- import { BoxProps } from '@mui/material';
3
- declare const FontSizes: {
4
- xs: number;
5
- sm: number;
6
- md: number;
7
- lg: number;
8
- xl: number;
9
- xxl: number;
10
- xxxl: number;
11
- };
12
- interface Props {
13
- variant?: 'square' | 'none';
14
- icon: IconDefinition;
15
- color?: string;
16
- size?: number | keyof typeof FontSizes;
17
- }
18
- declare const IconProvider: {
19
- ({ variant, icon, color, size, sx, ...props }: Props & BoxProps): JSX.Element;
20
- displayName: string;
21
- };
22
- export default IconProvider;
@@ -1 +0,0 @@
1
- export { default } from './IconProvider';
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import { LinkProps } from '@mui/material';
3
- interface Props extends Omit<LinkProps, 'variant'> {
4
- variant?: 'link1' | 'link2';
5
- component?: any;
6
- }
7
- declare const Link: {
8
- (props: Props): React.JSX.Element;
9
- displayName: string;
10
- };
11
- export default Link;
@@ -1 +0,0 @@
1
- export { default } from './Link';
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- import { IconDefinition } from '@fortawesome/pro-regular-svg-icons';
3
- import { MenuItemProps } from '@mui/material';
4
- interface Props extends MenuItemProps {
5
- testId: string;
6
- onAction: (value?: string) => void;
7
- icon?: IconDefinition;
8
- text: string;
9
- value?: string;
10
- disabled?: boolean;
11
- }
12
- declare const MenuItemCustom: ({ onAction, icon, text, testId, value, disabled, }: Props) => React.JSX.Element;
13
- export default MenuItemCustom;
@@ -1 +0,0 @@
1
- export { default } from './MenuItem';
@@ -1 +0,0 @@
1
- export { default } from './Dialog';
@@ -1 +0,0 @@
1
- export { default } from './Drawer';
@@ -1,24 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
3
- import { CardProps } from '@mui/material';
4
- import { ModalProps as ModalPropsMUI } from '@mui/material/Modal';
5
- import { DefaultComponentProps, OverridableTypeMap } from '@mui/material/OverridableComponent';
6
- export type CloseButtonProps = {
7
- onClose: () => void;
8
- };
9
- export interface ModalProps extends Omit<ModalPropsMUI, 'component' | 'open' | 'className' | 'onClose'> {
10
- open: boolean;
11
- title?: string;
12
- size?: 'small' | 'large';
13
- component: ReactNode | null;
14
- footer?: ReactNode | null;
15
- cardProps?: Partial<CardProps>;
16
- className?: string;
17
- icon?: IconDefinition;
18
- onClose?: () => void;
19
- }
20
- export type DialogTitleProps<T extends OverridableTypeMap> = DefaultComponentProps<T> & {
21
- children?: ReactNode;
22
- icon?: IconDefinition | null;
23
- onClose: () => void;
24
- };
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import { Step } from './stepper.interface';
3
- export declare const StepComponent: ({ step: { items, isActive, icon, label, link }, canNavigate, onNavigate, }: {
4
- step: Step;
5
- canNavigate: boolean;
6
- onNavigate: (link: string) => void;
7
- }) => React.JSX.Element;
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import { SxProps, Theme } from '@mui/material';
3
- import { Step } from './stepper.interface';
4
- interface Props {
5
- steps: Step[];
6
- canNavigate: boolean;
7
- onNavigate?: (url: string) => void;
8
- sx?: SxProps<Theme>;
9
- }
10
- declare const Stepper: ({ steps, canNavigate, onNavigate, sx, }: Props) => React.JSX.Element;
11
- export default Stepper;
@@ -1 +0,0 @@
1
- export { default } from './Stepper';
@@ -1,2 +0,0 @@
1
- import { StepperItem } from './stepper.interface';
2
- export declare const stepperItemsToPercent: (items: StepperItem[]) => number;
@@ -1,12 +0,0 @@
1
- import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
2
- export interface StepperItem {
3
- label: string;
4
- isValid: boolean;
5
- }
6
- export interface Step {
7
- items: StepperItem[];
8
- label: string;
9
- isActive: boolean;
10
- link: string;
11
- icon: IconDefinition;
12
- }
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import { CustomContentProps } from 'notistack';
3
- declare const NotistackAdapter: React.ForwardRefExoticComponent<CustomContentProps & React.RefAttributes<HTMLDivElement>>;
4
- export default NotistackAdapter;
@@ -1 +0,0 @@
1
- export { default } from './NotistackAdapter';
@@ -1,16 +0,0 @@
1
- import React from 'react';
2
- interface Props {
3
- totalString: string;
4
- totalPerPageString: string;
5
- totalRows: number;
6
- limitsPerPage?: number[];
7
- page?: number;
8
- limit?: number;
9
- setPage?: (page: number) => void;
10
- setLimit?: (limit: number) => void;
11
- }
12
- declare const Pagination: {
13
- ({ totalString, totalPerPageString, limitsPerPage, setLimit, setPage, page, totalRows, limit, }: Props): React.JSX.Element;
14
- displayName: string;
15
- };
16
- export default Pagination;
@@ -1 +0,0 @@
1
- export { default } from './Pagination';
@@ -1 +0,0 @@
1
- export declare const getTotalPages: (totalRows: number, limitPerPage: number) => number;
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import { AlertProps } from '@mui/material';
3
- interface Props extends Omit<AlertProps, 'severity' | 'text'> {
4
- text: string | React.ReactNode;
5
- severity: 'success' | 'warning' | 'error' | 'info';
6
- }
7
- declare const Snackbar: {
8
- ({ text, severity }: Props): React.JSX.Element;
9
- displayName: string;
10
- };
11
- export default Snackbar;
@@ -1 +0,0 @@
1
- export { default } from './Snackbar';