@groupeactual/ui-kit 1.6.0-beta.6 → 1.6.0-beta.8
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.map +1 -1
- package/dist/cjs/types/components/Chip/Chip.d.ts +1 -1
- package/dist/cjs/types/components/Form/DatePicker/DatePicker.d.ts +1 -1
- package/dist/cjs/types/components/IconButton/IconButton.d.ts +1 -1
- package/dist/cjs/types/components/IconProvider/IconProvider.d.ts +1 -1
- package/dist/cjs/types/components/Modal/modal.interface.d.ts +1 -1
- package/dist/es/index.d.ts +1 -1
- package/dist/es/index.mjs.map +1 -1
- package/dist/es/types/components/Chip/Chip.d.ts +1 -1
- package/dist/es/types/components/Form/DatePicker/DatePicker.d.ts +1 -1
- package/dist/es/types/components/IconButton/IconButton.d.ts +1 -1
- package/dist/es/types/components/IconProvider/IconProvider.d.ts +1 -1
- package/dist/es/types/components/Modal/modal.interface.d.ts +1 -1
- package/package.json +4 -4
- package/src/DesignSystemProvider.tsx +2 -1
- package/src/components/Accordion/Accordion.tsx +3 -2
- package/src/components/BannerNotification/BannerNotification.tsx +2 -1
- package/src/components/Breadcrumbs/Breadcrumbs.tsx +2 -1
- package/src/components/Button/Button.tsx +2 -1
- package/src/components/Chip/Chip.tsx +3 -2
- package/src/components/Datatable/Datatable.tsx +6 -5
- package/src/components/EmbbededNotification/EmbeddedNotification.tsx +4 -2
- package/src/components/Form/AutoCompleteMulti/AutoCompleteMulti.tsx +8 -7
- package/src/components/Form/AutoCompleteSingle/AutoCompleteSingle.tsx +7 -6
- package/src/components/Form/Checkbox/Checkbox.tsx +3 -2
- package/src/components/Form/CheckboxGroup/CheckboxGroup.tsx +2 -1
- package/src/components/Form/DatePicker/DatePicker.tsx +9 -8
- package/src/components/Form/MultiSelect/MultiSelect.tsx +8 -7
- package/src/components/Form/RadioGroup/RadioGroup.tsx +3 -2
- package/src/components/Form/Select/Select.tsx +3 -2
- package/src/components/Form/Switch/Switch.tsx +2 -1
- package/src/components/Form/TextField/TextField.tsx +3 -2
- package/src/components/IconButton/IconButton.tsx +3 -2
- package/src/components/IconProvider/IconProvider.tsx +2 -1
- package/src/components/Link/Link.tsx +2 -1
- package/src/components/Modal/Dialog/Dialog.tsx +2 -1
- package/src/components/Modal/Drawer/Drawer.tsx +2 -1
- package/src/components/Modal/modal.interface.ts +2 -1
- package/src/components/Navigation/Stepper/Step.tsx +2 -1
- package/src/components/Pagination/Pagination.tsx +2 -1
- package/src/components/Snackbar/Snackbar.tsx +2 -1
- package/src/components/UploadDocument/FileUploaderSingle.tsx +2 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MouseEvent } from 'react';
|
|
2
|
-
import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
|
|
3
2
|
import { ChipProps as ChipPropsMUI } from '@mui/material';
|
|
3
|
+
import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
|
|
4
4
|
interface Props extends Omit<ChipPropsMUI, 'suffix' | 'prefix' | 'onDelete' | 'onDeleteIcon' | 'variant'> {
|
|
5
5
|
variant: 'filled' | 'outlined' | 'status' | 'statusFilled';
|
|
6
6
|
label: string;
|
|
@@ -2,7 +2,7 @@ import { DatePickerProps } from '@mui/x-date-pickers-pro';
|
|
|
2
2
|
import { Dayjs } from 'dayjs';
|
|
3
3
|
import 'dayjs/locale/fr';
|
|
4
4
|
interface Props<T extends Dayjs> extends Omit<DatePickerProps<Dayjs>, 'onChange' | 'width'> {
|
|
5
|
-
value: T | null;
|
|
5
|
+
value: T | null | undefined;
|
|
6
6
|
onChange: (value: Dayjs | null | undefined) => void;
|
|
7
7
|
error?: string;
|
|
8
8
|
success?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
|
|
2
1
|
import { IconButtonProps, SxProps, Theme } from '@mui/material';
|
|
2
|
+
import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
|
|
3
3
|
import { Placement } from '../Tooltip/tooltip.interface';
|
|
4
4
|
interface Props extends IconButtonProps {
|
|
5
5
|
icon: IconDefinition;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
|
|
3
2
|
import { CardProps } from '@mui/material';
|
|
4
3
|
import { ModalProps as ModalPropsMUI } from '@mui/material/Modal';
|
|
5
4
|
import { DefaultComponentProps, OverridableTypeMap } from '@mui/material/OverridableComponent';
|
|
5
|
+
import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
|
|
6
6
|
export type CloseButtonProps = {
|
|
7
7
|
onClose: () => void;
|
|
8
8
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@groupeactual/ui-kit",
|
|
3
|
-
"version": "1.6.0-beta.
|
|
3
|
+
"version": "1.6.0-beta.8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A simple template for a custom React component library",
|
|
6
6
|
"devDependencies": {
|
|
@@ -52,11 +52,11 @@
|
|
|
52
52
|
"notistack": "^3.0.1",
|
|
53
53
|
"react": "^18.3.1",
|
|
54
54
|
"react-dom": "^18.3.1",
|
|
55
|
-
"@groupeactual/design-tokens": "1.6.0-beta.
|
|
55
|
+
"@groupeactual/design-tokens": "1.6.0-beta.8"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
|
-
"react": "^18.
|
|
59
|
-
"react-dom": "^18.
|
|
58
|
+
"react": "^18.3.1",
|
|
59
|
+
"react-dom": "^18.3.1"
|
|
60
60
|
},
|
|
61
61
|
"scripts": {
|
|
62
62
|
"build": "rollup -c",
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { PropsWithChildren, createContext, useContext, useState } from 'react';
|
|
2
2
|
|
|
3
|
-
import { useMaterialThemeTokens } from '@groupeactual/design-tokens';
|
|
4
3
|
import { ThemeProvider, createTheme } from '@mui/material';
|
|
5
4
|
|
|
5
|
+
import { useMaterialThemeTokens } from '@groupeactual/design-tokens';
|
|
6
|
+
|
|
6
7
|
// Deux themes pour le moment :
|
|
7
8
|
// Default = Theme backoffice Material
|
|
8
9
|
// Ep = Espace personnel
|
|
@@ -6,8 +6,6 @@ import {
|
|
|
6
6
|
useState,
|
|
7
7
|
} from 'react';
|
|
8
8
|
|
|
9
|
-
import { faChevronDown } from '@fortawesome/pro-regular-svg-icons';
|
|
10
|
-
import { AccordionStyle } from '@groupeactual/design-tokens';
|
|
11
9
|
import {
|
|
12
10
|
AccordionDetails,
|
|
13
11
|
Accordion as AccordionMui,
|
|
@@ -17,6 +15,9 @@ import {
|
|
|
17
15
|
useTheme,
|
|
18
16
|
} from '@mui/material';
|
|
19
17
|
|
|
18
|
+
import { faChevronDown } from '@fortawesome/pro-regular-svg-icons';
|
|
19
|
+
import { AccordionStyle } from '@groupeactual/design-tokens';
|
|
20
|
+
|
|
20
21
|
import IconProvider from '../IconProvider/IconProvider';
|
|
21
22
|
|
|
22
23
|
interface Props extends AccordionProps {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { useMemo } from 'react';
|
|
2
2
|
|
|
3
|
+
import { Alert, AlertProps, styled, useTheme } from '@mui/material';
|
|
4
|
+
|
|
3
5
|
import { faBell, faTimes } from '@fortawesome/pro-solid-svg-icons';
|
|
4
6
|
import { BannerNotificationStyle } from '@groupeactual/design-tokens';
|
|
5
|
-
import { Alert, AlertProps, styled, useTheme } from '@mui/material';
|
|
6
7
|
|
|
7
8
|
import IconProvider from '../IconProvider/IconProvider';
|
|
8
9
|
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { useMemo } from 'react';
|
|
2
2
|
|
|
3
|
-
import { BreadcrumbsStyle } from '@groupeactual/design-tokens';
|
|
4
3
|
import {
|
|
5
4
|
Breadcrumbs as BreadcrumbsMui,
|
|
6
5
|
BreadcrumbsProps,
|
|
@@ -8,6 +7,8 @@ import {
|
|
|
8
7
|
useTheme,
|
|
9
8
|
} from '@mui/material';
|
|
10
9
|
|
|
10
|
+
import { BreadcrumbsStyle } from '@groupeactual/design-tokens';
|
|
11
|
+
|
|
11
12
|
import Link from '../Link';
|
|
12
13
|
import Text from '../Text';
|
|
13
14
|
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ReactNode, useMemo } from 'react';
|
|
2
2
|
|
|
3
|
-
import { ButtonStyle } from '@groupeactual/design-tokens';
|
|
4
3
|
import {
|
|
5
4
|
Button as ButtonMUI,
|
|
6
5
|
ButtonProps,
|
|
@@ -8,6 +7,8 @@ import {
|
|
|
8
7
|
useTheme,
|
|
9
8
|
} from '@mui/material';
|
|
10
9
|
|
|
10
|
+
import { ButtonStyle } from '@groupeactual/design-tokens';
|
|
11
|
+
|
|
11
12
|
interface Props extends Omit<ButtonProps, 'variant' | 'children'> {
|
|
12
13
|
variant?: 'primary' | 'secondary';
|
|
13
14
|
children?: ReactNode;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { MouseEvent, useMemo, useRef, useState } from 'react';
|
|
2
2
|
|
|
3
|
-
import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
|
|
4
|
-
import { ChipStyle } from '@groupeactual/design-tokens';
|
|
5
3
|
import {
|
|
6
4
|
Box,
|
|
7
5
|
Chip as ChipMUI,
|
|
@@ -11,6 +9,9 @@ import {
|
|
|
11
9
|
useTheme,
|
|
12
10
|
} from '@mui/material';
|
|
13
11
|
|
|
12
|
+
import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
|
|
13
|
+
import { ChipStyle } from '@groupeactual/design-tokens';
|
|
14
|
+
|
|
14
15
|
import IconProvider from '../IconProvider';
|
|
15
16
|
|
|
16
17
|
interface Props
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import { Fragment, useEffect, useMemo, useState } from 'react';
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
faArrowDownLong,
|
|
5
|
-
faArrowUpLong,
|
|
6
|
-
} from '@fortawesome/pro-regular-svg-icons';
|
|
7
|
-
import { DatatableStyle } from '@groupeactual/design-tokens';
|
|
8
3
|
import {
|
|
9
4
|
Box,
|
|
10
5
|
Table,
|
|
@@ -18,6 +13,12 @@ import {
|
|
|
18
13
|
useTheme,
|
|
19
14
|
} from '@mui/material';
|
|
20
15
|
|
|
16
|
+
import {
|
|
17
|
+
faArrowDownLong,
|
|
18
|
+
faArrowUpLong,
|
|
19
|
+
} from '@fortawesome/pro-regular-svg-icons';
|
|
20
|
+
import { DatatableStyle } from '@groupeactual/design-tokens';
|
|
21
|
+
|
|
21
22
|
import IconButton from '../IconButton';
|
|
22
23
|
import Pagination from '../Pagination';
|
|
23
24
|
import Text from '../Text';
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
|
|
3
|
+
import { Box } from '@mui/material';
|
|
4
|
+
|
|
5
|
+
import { BoxProps } from '@mui/system';
|
|
6
|
+
|
|
3
7
|
import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
|
|
4
8
|
import {
|
|
5
9
|
faCircleCheck,
|
|
@@ -7,8 +11,6 @@ import {
|
|
|
7
11
|
faCircleInfo,
|
|
8
12
|
faCircleXmark,
|
|
9
13
|
} from '@fortawesome/pro-solid-svg-icons';
|
|
10
|
-
import { Box } from '@mui/material';
|
|
11
|
-
import { BoxProps } from '@mui/system';
|
|
12
14
|
|
|
13
15
|
import Icon from '../IconProvider/IconProvider';
|
|
14
16
|
import Text from '../Text';
|
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
import React, { useMemo, useRef } from 'react';
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
faCheck,
|
|
5
|
-
faChevronDown,
|
|
6
|
-
faCircleX,
|
|
7
|
-
faTimes,
|
|
8
|
-
} from '@fortawesome/pro-solid-svg-icons';
|
|
9
|
-
import { AutoCompleteStyle } from '@groupeactual/design-tokens';
|
|
10
3
|
import {
|
|
11
4
|
type AutocompleteProps,
|
|
12
5
|
FormControl,
|
|
@@ -19,6 +12,14 @@ import Autocomplete from '@mui/material/Autocomplete';
|
|
|
19
12
|
import Box from '@mui/material/Box';
|
|
20
13
|
import TextField, { TextFieldProps } from '@mui/material/TextField';
|
|
21
14
|
|
|
15
|
+
import {
|
|
16
|
+
faCheck,
|
|
17
|
+
faChevronDown,
|
|
18
|
+
faCircleX,
|
|
19
|
+
faTimes,
|
|
20
|
+
} from '@fortawesome/pro-solid-svg-icons';
|
|
21
|
+
import { AutoCompleteStyle } from '@groupeactual/design-tokens';
|
|
22
|
+
|
|
22
23
|
import Chip from '../../Chip/Chip';
|
|
23
24
|
import IconProvider from '../../IconProvider';
|
|
24
25
|
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import React, { useMemo } from 'react';
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
faCheck,
|
|
5
|
-
faChevronDown,
|
|
6
|
-
faTimes,
|
|
7
|
-
} from '@fortawesome/pro-solid-svg-icons';
|
|
8
|
-
import { AutoCompleteStyle } from '@groupeactual/design-tokens';
|
|
9
3
|
import {
|
|
10
4
|
Autocomplete,
|
|
11
5
|
type AutocompleteProps,
|
|
@@ -19,6 +13,13 @@ import {
|
|
|
19
13
|
useTheme,
|
|
20
14
|
} from '@mui/material';
|
|
21
15
|
|
|
16
|
+
import {
|
|
17
|
+
faCheck,
|
|
18
|
+
faChevronDown,
|
|
19
|
+
faTimes,
|
|
20
|
+
} from '@fortawesome/pro-solid-svg-icons';
|
|
21
|
+
import { AutoCompleteStyle } from '@groupeactual/design-tokens';
|
|
22
|
+
|
|
22
23
|
import IconProvider from '../../IconProvider';
|
|
23
24
|
|
|
24
25
|
interface Props<T>
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { useMemo } from 'react';
|
|
2
2
|
|
|
3
|
-
import { faInfoCircle } from '@fortawesome/pro-solid-svg-icons';
|
|
4
|
-
import { CheckboxStyle } from '@groupeactual/design-tokens';
|
|
5
3
|
import {
|
|
6
4
|
Box,
|
|
7
5
|
Checkbox as CheckboxMUI,
|
|
@@ -14,6 +12,9 @@ import {
|
|
|
14
12
|
useTheme,
|
|
15
13
|
} from '@mui/material';
|
|
16
14
|
|
|
15
|
+
import { faInfoCircle } from '@fortawesome/pro-solid-svg-icons';
|
|
16
|
+
import { CheckboxStyle } from '@groupeactual/design-tokens';
|
|
17
|
+
|
|
17
18
|
import IconProvider from '../../IconProvider';
|
|
18
19
|
import Tooltip from '../../Tooltip';
|
|
19
20
|
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { useMemo, useState } from 'react';
|
|
2
2
|
|
|
3
|
-
import { CheckboxGroupStyle } from '@groupeactual/design-tokens';
|
|
4
3
|
import {
|
|
5
4
|
FormControl,
|
|
6
5
|
FormGroup,
|
|
@@ -10,6 +9,8 @@ import {
|
|
|
10
9
|
useTheme,
|
|
11
10
|
} from '@mui/material';
|
|
12
11
|
|
|
12
|
+
import { CheckboxGroupStyle } from '@groupeactual/design-tokens';
|
|
13
|
+
|
|
13
14
|
import Checkbox from '../Checkbox/Checkbox';
|
|
14
15
|
|
|
15
16
|
interface ItemType {
|
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
import { useMemo } from 'react';
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
faAngleLeft,
|
|
5
|
-
faAngleRight,
|
|
6
|
-
faCalendarDay,
|
|
7
|
-
} from '@fortawesome/pro-regular-svg-icons';
|
|
8
|
-
import { faCaretDown, faCheck } from '@fortawesome/pro-solid-svg-icons';
|
|
9
|
-
import { DatePickerStyle } from '@groupeactual/design-tokens';
|
|
10
3
|
import {
|
|
11
4
|
Box,
|
|
12
5
|
FormHelperText,
|
|
@@ -14,6 +7,14 @@ import {
|
|
|
14
7
|
styled,
|
|
15
8
|
useTheme,
|
|
16
9
|
} from '@mui/material';
|
|
10
|
+
|
|
11
|
+
import {
|
|
12
|
+
faAngleLeft,
|
|
13
|
+
faAngleRight,
|
|
14
|
+
faCalendarDay,
|
|
15
|
+
} from '@fortawesome/pro-regular-svg-icons';
|
|
16
|
+
import { faCaretDown, faCheck } from '@fortawesome/pro-solid-svg-icons';
|
|
17
|
+
import { DatePickerStyle } from '@groupeactual/design-tokens';
|
|
17
18
|
import {
|
|
18
19
|
DatePicker as DatePickerMUI,
|
|
19
20
|
DatePickerProps,
|
|
@@ -28,7 +29,7 @@ import IconProvider from '../../IconProvider/IconProvider';
|
|
|
28
29
|
|
|
29
30
|
interface Props<T extends Dayjs>
|
|
30
31
|
extends Omit<DatePickerProps<Dayjs>, 'onChange' | 'width'> {
|
|
31
|
-
value: T | null;
|
|
32
|
+
value: T | null | undefined;
|
|
32
33
|
onChange: (value: Dayjs | null | undefined) => void;
|
|
33
34
|
error?: string;
|
|
34
35
|
success?: boolean;
|
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
import React, { FocusEventHandler, useMemo, useRef } from 'react';
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
faCheck,
|
|
5
|
-
faChevronDown,
|
|
6
|
-
faCircleX,
|
|
7
|
-
faTimes,
|
|
8
|
-
} from '@fortawesome/pro-solid-svg-icons';
|
|
9
|
-
import { SelectStyle } from '@groupeactual/design-tokens';
|
|
10
3
|
import {
|
|
11
4
|
Box,
|
|
12
5
|
FormControl,
|
|
@@ -20,6 +13,14 @@ import {
|
|
|
20
13
|
useTheme,
|
|
21
14
|
} from '@mui/material';
|
|
22
15
|
|
|
16
|
+
import {
|
|
17
|
+
faCheck,
|
|
18
|
+
faChevronDown,
|
|
19
|
+
faCircleX,
|
|
20
|
+
faTimes,
|
|
21
|
+
} from '@fortawesome/pro-solid-svg-icons';
|
|
22
|
+
import { SelectStyle } from '@groupeactual/design-tokens';
|
|
23
|
+
|
|
23
24
|
import Chip from '../../Chip/Chip';
|
|
24
25
|
import IconProvider from '../../IconProvider';
|
|
25
26
|
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { ChangeEvent, useMemo } from 'react';
|
|
2
2
|
|
|
3
|
-
import { faInfoCircle } from '@fortawesome/pro-solid-svg-icons';
|
|
4
|
-
import { RadioStyle } from '@groupeactual/design-tokens';
|
|
5
3
|
import {
|
|
6
4
|
Box,
|
|
7
5
|
FormControl,
|
|
@@ -15,6 +13,9 @@ import {
|
|
|
15
13
|
useTheme,
|
|
16
14
|
} from '@mui/material';
|
|
17
15
|
|
|
16
|
+
import { faInfoCircle } from '@fortawesome/pro-solid-svg-icons';
|
|
17
|
+
import { RadioStyle } from '@groupeactual/design-tokens';
|
|
18
|
+
|
|
18
19
|
import IconProvider from '../../IconProvider';
|
|
19
20
|
import Tooltip from '../../Tooltip';
|
|
20
21
|
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { BaseSyntheticEvent, useMemo } from 'react';
|
|
2
2
|
|
|
3
|
-
import { faCheck, faChevronDown } from '@fortawesome/pro-solid-svg-icons';
|
|
4
|
-
import { SelectStyle } from '@groupeactual/design-tokens';
|
|
5
3
|
import {
|
|
6
4
|
Box,
|
|
7
5
|
FormControl,
|
|
@@ -15,6 +13,9 @@ import {
|
|
|
15
13
|
useTheme,
|
|
16
14
|
} from '@mui/material';
|
|
17
15
|
|
|
16
|
+
import { faCheck, faChevronDown } from '@fortawesome/pro-solid-svg-icons';
|
|
17
|
+
import { SelectStyle } from '@groupeactual/design-tokens';
|
|
18
|
+
|
|
18
19
|
import Icon from '../../IconProvider';
|
|
19
20
|
|
|
20
21
|
interface Props<T>
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { useMemo } from 'react';
|
|
2
2
|
|
|
3
|
-
import { SwitchStyle } from '@groupeactual/design-tokens';
|
|
4
3
|
import {
|
|
5
4
|
FormControl,
|
|
6
5
|
FormControlLabel,
|
|
@@ -12,6 +11,8 @@ import {
|
|
|
12
11
|
useTheme,
|
|
13
12
|
} from '@mui/material';
|
|
14
13
|
|
|
14
|
+
import { SwitchStyle } from '@groupeactual/design-tokens';
|
|
15
|
+
|
|
15
16
|
interface Props {
|
|
16
17
|
label: string;
|
|
17
18
|
checked: boolean;
|
|
@@ -6,8 +6,6 @@ import React, {
|
|
|
6
6
|
useState,
|
|
7
7
|
} from 'react';
|
|
8
8
|
|
|
9
|
-
import { faEye, faEyeSlash } from '@fortawesome/pro-solid-svg-icons';
|
|
10
|
-
import { TextFieldStyle } from '@groupeactual/design-tokens';
|
|
11
9
|
import {
|
|
12
10
|
TextField as MuiTextField,
|
|
13
11
|
TextFieldProps,
|
|
@@ -15,6 +13,9 @@ import {
|
|
|
15
13
|
useTheme,
|
|
16
14
|
} from '@mui/material';
|
|
17
15
|
|
|
16
|
+
import { faEye, faEyeSlash } from '@fortawesome/pro-solid-svg-icons';
|
|
17
|
+
import { TextFieldStyle } from '@groupeactual/design-tokens';
|
|
18
|
+
|
|
18
19
|
import Icon from '../../IconProvider';
|
|
19
20
|
|
|
20
21
|
interface Props extends Omit<TextFieldProps, 'error'> {
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { useMemo } from 'react';
|
|
2
2
|
|
|
3
|
-
import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
|
|
4
|
-
import { IconButtonStyle } from '@groupeactual/design-tokens';
|
|
5
3
|
import {
|
|
6
4
|
IconButton as IconButtonMUI,
|
|
7
5
|
IconButtonProps,
|
|
@@ -11,6 +9,9 @@ import {
|
|
|
11
9
|
useTheme,
|
|
12
10
|
} from '@mui/material';
|
|
13
11
|
|
|
12
|
+
import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
|
|
13
|
+
import { IconButtonStyle } from '@groupeactual/design-tokens';
|
|
14
|
+
|
|
14
15
|
import IconProvider from '../IconProvider';
|
|
15
16
|
import Tooltip from '../Tooltip';
|
|
16
17
|
import { Placement } from '../Tooltip/tooltip.interface';
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { forwardRef, useMemo } from 'react';
|
|
2
2
|
|
|
3
|
-
import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
|
|
4
3
|
import {
|
|
5
4
|
Box,
|
|
6
5
|
BoxProps,
|
|
@@ -10,6 +9,8 @@ import {
|
|
|
10
9
|
useTheme,
|
|
11
10
|
} from '@mui/material';
|
|
12
11
|
|
|
12
|
+
import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
|
|
13
|
+
|
|
13
14
|
const FontSizes = {
|
|
14
15
|
xs: 8,
|
|
15
16
|
sm: 12,
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { useMemo } from 'react';
|
|
2
2
|
|
|
3
|
-
import { LinkStyle } from '@groupeactual/design-tokens';
|
|
4
3
|
import { Link as LinkMui, LinkProps, styled, useTheme } from '@mui/material';
|
|
5
4
|
|
|
5
|
+
import { LinkStyle } from '@groupeactual/design-tokens';
|
|
6
|
+
|
|
6
7
|
interface Props extends Omit<LinkProps, 'variant'> {
|
|
7
8
|
variant?: 'link1' | 'link2';
|
|
8
9
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { faClose } from '@fortawesome/pro-solid-svg-icons/faClose';
|
|
2
1
|
import {
|
|
3
2
|
Box,
|
|
4
3
|
DialogContent,
|
|
@@ -8,6 +7,8 @@ import {
|
|
|
8
7
|
} from '@mui/material';
|
|
9
8
|
import { OverridableTypeMap } from '@mui/material/OverridableComponent';
|
|
10
9
|
|
|
10
|
+
import { faClose } from '@fortawesome/pro-solid-svg-icons/faClose';
|
|
11
|
+
|
|
11
12
|
import IconButton from '../../IconButton';
|
|
12
13
|
import IconProvider from '../../IconProvider';
|
|
13
14
|
import Text from '../../Text';
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { faClose } from '@fortawesome/pro-solid-svg-icons/faClose';
|
|
2
1
|
import {
|
|
3
2
|
Box,
|
|
4
3
|
Card,
|
|
@@ -7,6 +6,8 @@ import {
|
|
|
7
6
|
Drawer as DrawerMUI,
|
|
8
7
|
} from '@mui/material';
|
|
9
8
|
|
|
9
|
+
import { faClose } from '@fortawesome/pro-solid-svg-icons/faClose';
|
|
10
|
+
|
|
10
11
|
import IconButton from '../../IconButton';
|
|
11
12
|
import { ModalProps } from '../modal.interface';
|
|
12
13
|
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
|
|
3
|
-
import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
|
|
4
3
|
import { CardProps } from '@mui/material';
|
|
5
4
|
import { ModalProps as ModalPropsMUI } from '@mui/material/Modal';
|
|
6
5
|
import {
|
|
@@ -8,6 +7,8 @@ import {
|
|
|
8
7
|
OverridableTypeMap,
|
|
9
8
|
} from '@mui/material/OverridableComponent';
|
|
10
9
|
|
|
10
|
+
import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
|
|
11
|
+
|
|
11
12
|
export type CloseButtonProps = {
|
|
12
13
|
onClose: () => void;
|
|
13
14
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { Box, Stack, useTheme } from '@mui/material';
|
|
2
|
+
|
|
1
3
|
import { faCheck } from '@fortawesome/pro-regular-svg-icons';
|
|
2
4
|
import { faCheckCircle, faDotCircle } from '@fortawesome/pro-solid-svg-icons';
|
|
3
|
-
import { Box, Stack, useTheme } from '@mui/material';
|
|
4
5
|
|
|
5
6
|
import IconProvider from '../../IconProvider';
|
|
6
7
|
import Text from '../../Text';
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ChangeEvent, useEffect, useMemo, useState } from 'react';
|
|
2
2
|
|
|
3
|
-
import { PaginationStyle } from '@groupeactual/design-tokens';
|
|
4
3
|
import {
|
|
5
4
|
Box,
|
|
6
5
|
Divider,
|
|
@@ -9,6 +8,8 @@ import {
|
|
|
9
8
|
useTheme,
|
|
10
9
|
} from '@mui/material';
|
|
11
10
|
|
|
11
|
+
import { PaginationStyle } from '@groupeactual/design-tokens';
|
|
12
|
+
|
|
12
13
|
import Select from '../Form/Select';
|
|
13
14
|
import Text from '../Text';
|
|
14
15
|
import { getTotalPages } from './pagination.helper';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import React, { useMemo } from 'react';
|
|
2
2
|
|
|
3
|
+
import { Alert, AlertProps, styled, useTheme } from '@mui/material';
|
|
4
|
+
|
|
3
5
|
import {
|
|
4
6
|
IconDefinition,
|
|
5
7
|
faCheckCircle,
|
|
@@ -7,7 +9,6 @@ import {
|
|
|
7
9
|
faTimesCircle,
|
|
8
10
|
} from '@fortawesome/pro-solid-svg-icons';
|
|
9
11
|
import { SnackbarStyle } from '@groupeactual/design-tokens';
|
|
10
|
-
import { Alert, AlertProps, styled, useTheme } from '@mui/material';
|
|
11
12
|
|
|
12
13
|
import IconProvider from '../IconProvider/IconProvider';
|
|
13
14
|
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
2
2
|
|
|
3
|
+
import { Box, IconButton } from '@mui/material';
|
|
4
|
+
|
|
3
5
|
import { faEye, faTrash, faUpload } from '@fortawesome/pro-regular-svg-icons';
|
|
4
6
|
import { faFileAlt } from '@fortawesome/pro-solid-svg-icons';
|
|
5
|
-
import { Box, IconButton } from '@mui/material';
|
|
6
7
|
|
|
7
8
|
import Button from '../Button/Button';
|
|
8
9
|
import IconProvider from '../IconProvider/IconProvider';
|