@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
|
@@ -16,59 +16,62 @@ interface Props extends Omit<TooltipProps, 'icon' | 'children' | 'placement'> {
|
|
|
16
16
|
placementMargin?: number;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
const Tooltip = (
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
return <>{children}</>;
|
|
28
|
-
}
|
|
19
|
+
const Tooltip = React.forwardRef<HTMLDivElement, Props>(
|
|
20
|
+
(
|
|
21
|
+
{ title, placement = 'right', children, placementMargin = 4, ...props },
|
|
22
|
+
ref,
|
|
23
|
+
) => {
|
|
24
|
+
if (!title) {
|
|
25
|
+
return <>{children}</>;
|
|
26
|
+
}
|
|
29
27
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
{
|
|
51
|
-
marginTop: placementMargin + 'px',
|
|
52
|
-
},
|
|
53
|
-
[`&.${tooltipClasses.popper}[data-popper-placement*="top"] .${tooltipClasses.tooltip}`]:
|
|
54
|
-
{
|
|
55
|
-
marginBottom: placementMargin + 'px',
|
|
56
|
-
},
|
|
57
|
-
[`&.${tooltipClasses.popper}[data-popper-placement*="right"] .${tooltipClasses.tooltip}`]:
|
|
58
|
-
{
|
|
59
|
-
marginLeft: placementMargin + 'px',
|
|
60
|
-
},
|
|
61
|
-
[`&.${tooltipClasses.popper}[data-popper-placement*="left"] .${tooltipClasses.tooltip}`]:
|
|
62
|
-
{
|
|
63
|
-
marginRight: placementMargin + 'px',
|
|
28
|
+
return (
|
|
29
|
+
<TooltipMui
|
|
30
|
+
{...props}
|
|
31
|
+
data-testid="ds-tooltip"
|
|
32
|
+
title={<>{title}</>}
|
|
33
|
+
ref={ref}
|
|
34
|
+
sx={{
|
|
35
|
+
display: 'inline-flex',
|
|
36
|
+
...props.sx,
|
|
37
|
+
}}
|
|
38
|
+
placement={placement || undefined}
|
|
39
|
+
slotProps={{
|
|
40
|
+
popper: {
|
|
41
|
+
sx: {
|
|
42
|
+
[`&.${tooltipClasses.popper} .MuiTooltip-tooltip`]: {
|
|
43
|
+
backgroundColor: 'greyXDark',
|
|
44
|
+
padding: '4px !important',
|
|
45
|
+
fontSize: '12px !important',
|
|
46
|
+
color: 'white',
|
|
47
|
+
fontWeight: 400,
|
|
64
48
|
},
|
|
49
|
+
[`&.${tooltipClasses.popper}[data-popper-placement*="bottom"] .${tooltipClasses.tooltip}`]:
|
|
50
|
+
{
|
|
51
|
+
marginTop: placementMargin + 'px',
|
|
52
|
+
},
|
|
53
|
+
[`&.${tooltipClasses.popper}[data-popper-placement*="top"] .${tooltipClasses.tooltip}`]:
|
|
54
|
+
{
|
|
55
|
+
marginBottom: placementMargin + 'px',
|
|
56
|
+
},
|
|
57
|
+
[`&.${tooltipClasses.popper}[data-popper-placement*="right"] .${tooltipClasses.tooltip}`]:
|
|
58
|
+
{
|
|
59
|
+
marginLeft: placementMargin + 'px',
|
|
60
|
+
},
|
|
61
|
+
[`&.${tooltipClasses.popper}[data-popper-placement*="left"] .${tooltipClasses.tooltip}`]:
|
|
62
|
+
{
|
|
63
|
+
marginRight: placementMargin + 'px',
|
|
64
|
+
},
|
|
65
|
+
},
|
|
65
66
|
},
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
67
|
+
}}
|
|
68
|
+
>
|
|
69
|
+
<Box component="span">{children}</Box>
|
|
70
|
+
</TooltipMui>
|
|
71
|
+
);
|
|
72
|
+
},
|
|
73
|
+
);
|
|
74
|
+
|
|
75
|
+
Tooltip.displayName = 'Tooltip';
|
|
73
76
|
|
|
74
77
|
export default Tooltip;
|
package/src/components/index.ts
CHANGED
|
@@ -17,11 +17,11 @@ export { default as EmbeddedNotification } from './EmbbededNotification/Embedded
|
|
|
17
17
|
export { default as Tooltip } from './Tooltip/Tooltip';
|
|
18
18
|
export { default as AutoCompleteSingle } from './Form/AutoCompleteSingle';
|
|
19
19
|
export { default as AutoCompleteMulti } from './Form/AutoCompleteMulti';
|
|
20
|
-
export { default as FileUploader } from './
|
|
20
|
+
export { default as FileUploader } from './FileUploader/FileUploader';
|
|
21
21
|
export type {
|
|
22
22
|
AcceptTextType,
|
|
23
23
|
FileDataType,
|
|
24
|
-
} from './
|
|
24
|
+
} from './FileUploader/fileuploader.interface';
|
|
25
25
|
export { default as MenuItem } from './MenuItem/MenuItem';
|
|
26
26
|
export { default as Snackbar } from './Snackbar/Snackbar';
|
|
27
27
|
export { default as NotistackAdapter } from './NotistackAdapter/NotistackAdapter';
|
|
@@ -35,3 +35,4 @@ export { default as TimePicker } from './Form/TimePicker';
|
|
|
35
35
|
export { default as Datatable } from './Datatable/Datatable';
|
|
36
36
|
export { default as DatatableCellRender } from './Datatable/DatatableCellRender';
|
|
37
37
|
export { default as IconButton } from './IconButton/IconButton';
|
|
38
|
+
export { default as TabsPanel } from './TabsPanel';
|
package/src/index.ts
CHANGED
|
@@ -2,4 +2,3 @@ export * from './components';
|
|
|
2
2
|
export { default as DesignSystemProvider } from './DesignSystemProvider';
|
|
3
3
|
export { DesignSystemContext } from './DesignSystemProvider';
|
|
4
4
|
export { type DesignSystemContextValues } from './DesignSystemProvider';
|
|
5
|
-
export { type PaletteDS } from './interfaces/theme';
|
|
@@ -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, isTableLayoutFixed, ...props }: Props<T>) => React.JSX.Element;
|
|
4
|
-
export default Datatable;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type AutocompleteProps } from '@mui/material';
|
|
3
|
-
interface AutocompleteMultipleSelectProps<T> extends Omit<AutocompleteProps<T, true, true, false>, 'onChange' | 'value' | 'options' | 'renderInput' | 'error' | 'autocomplete' | 'searchIcon'> {
|
|
4
|
-
value: T[] | undefined;
|
|
5
|
-
label?: string;
|
|
6
|
-
helperText?: string;
|
|
7
|
-
placeholder?: string;
|
|
8
|
-
options: T[];
|
|
9
|
-
getOptionLabel: (_option: T) => string;
|
|
10
|
-
getKeyValue: (_option: T) => string;
|
|
11
|
-
onChange: (_value: T[]) => void;
|
|
12
|
-
getOptionDisabled?: (_option: T) => boolean;
|
|
13
|
-
color?: 'success';
|
|
14
|
-
width?: number | string;
|
|
15
|
-
error?: string;
|
|
16
|
-
searchIcon?: boolean;
|
|
17
|
-
}
|
|
18
|
-
declare const AutocompleteMultipleSelect: <T>({ value, label, placeholder, options, disabled, getOptionLabel, getKeyValue, onChange, getOptionDisabled, width, color, helperText, error, searchIcon, ...props }: AutocompleteMultipleSelectProps<T>) => React.JSX.Element;
|
|
19
|
-
export default AutocompleteMultipleSelect;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
2
|
-
import { CheckboxProps } from '@mui/material';
|
|
3
|
-
interface Props {
|
|
4
|
-
name: string;
|
|
5
|
-
value: boolean;
|
|
6
|
-
label: ReactNode;
|
|
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: ({ name, value, error, helperText, label, infoBubbleContent, infoBubblePosition, onChange, disabled, ...props }: CheckboxProps & Props) => React.JSX.Element;
|
|
14
|
-
export default Checkbox;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { CheckboxItemType } from './checkboxgroup.interface';
|
|
3
|
-
interface CheckboxGroupProps {
|
|
4
|
-
label: string;
|
|
5
|
-
options: CheckboxItemType[];
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
error?: string;
|
|
8
|
-
helperText?: string;
|
|
9
|
-
onChange?: (_selectedOptions: Record<string, boolean>) => void;
|
|
10
|
-
}
|
|
11
|
-
declare const CheckboxGroup: ({ options, label, disabled, error, helperText, onChange, }: CheckboxGroupProps) => React.JSX.Element;
|
|
12
|
-
export default CheckboxGroup;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
export interface CheckboxItemType {
|
|
3
|
-
label: ReactNode;
|
|
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
|
-
}
|
|
@@ -1,18 +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: <T>({ options, value, label, onChange, helperText, disabled, error, ...props }: Props<T>) => React.JSX.Element;
|
|
18
|
-
export default RadioGroup;
|
|
@@ -1,10 +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: ({ label, checked, leftSideLabel, onClick, ...props }: SwitchProps & Props) => React.JSX.Element;
|
|
10
|
-
export default Switch;
|
|
@@ -1,19 +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: ({ variant, icon, color, size, sx, ...props }: Props & BoxProps) => JSX.Element;
|
|
19
|
-
export default IconProvider;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
2
|
-
import { MenuItemProps } from '@mui/material';
|
|
3
|
-
interface Props extends Omit<MenuItemProps, 'onClick'> {
|
|
4
|
-
onClick: (_event?: React.MouseEvent<HTMLElement>) => void;
|
|
5
|
-
children: NonNullable<ReactNode>;
|
|
6
|
-
testId?: string;
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
}
|
|
9
|
-
declare const MenuItem: ({ onClick, children, testId, disabled, ...props }: Props) => React.JSX.Element;
|
|
10
|
-
export default MenuItem;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ModalProps } from '@/components/Modal/modal.interface';
|
|
3
|
-
declare const Dialog: ({ title, open, onClose, children, icon, ...props }: Omit<ModalProps, "footer" | "cardProps" | "size" | "component">) => React.JSX.Element;
|
|
4
|
-
export default Dialog;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { DrawerProps } from '@/components/Modal/modal.interface';
|
|
3
|
-
declare const Drawer: ({ title, open, hideCloseButton, titleLeftComponent, footer, cardProps, size, children, onClose, ...props }: DrawerProps) => React.JSX.Element;
|
|
4
|
-
export default Drawer;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { TypographyProps } from '@mui/material';
|
|
3
|
-
interface Props extends Omit<TypographyProps, 'variant'> {
|
|
4
|
-
variant?: 'bigNumber' | 'body1' | 'body1Regular' | 'body1Medium' | 'body1Bold' | 'body2' | 'body2Regular' | 'body2Medium' | 'body2Bold' | 'caption' | 'buttonNotif' | 'header1' | 'header2' | 'header3' | 'header4' | 'h1' | 'h2' | 'h3' | 'h4' | 'link1' | 'link2';
|
|
5
|
-
component?: any;
|
|
6
|
-
}
|
|
7
|
-
declare const Text: (props: Props) => React.JSX.Element;
|
|
8
|
-
export default Text;
|
package/dist/es/src/index.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export * from './components';
|
|
2
|
-
export { default as DesignSystemProvider } from './DesignSystemProvider';
|
|
3
|
-
export { DesignSystemContext } from './DesignSystemProvider';
|
|
4
|
-
export { type DesignSystemContextValues } from './DesignSystemProvider';
|
|
5
|
-
export { type PaletteDS } from './interfaces/theme';
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
export interface PaletteDS {
|
|
2
|
-
redActual: string;
|
|
3
|
-
blueClickable: string;
|
|
4
|
-
blueHoverClickable: string;
|
|
5
|
-
greyMediumInactive: string;
|
|
6
|
-
greyXDark: string;
|
|
7
|
-
greyDark: string;
|
|
8
|
-
white: string;
|
|
9
|
-
greyXLight: string;
|
|
10
|
-
greyXDarkBgModal: string;
|
|
11
|
-
blueHoverEquivalence: string;
|
|
12
|
-
blueHoverOpacity12: string;
|
|
13
|
-
greyLightDefaultBorder: string;
|
|
14
|
-
blueInfo: string;
|
|
15
|
-
greenSuccess: string;
|
|
16
|
-
redError: string;
|
|
17
|
-
orangeWarning: string;
|
|
18
|
-
blueDark: string;
|
|
19
|
-
blueMedium: string;
|
|
20
|
-
blueLight: string;
|
|
21
|
-
greenDark: string;
|
|
22
|
-
greenMedium: string;
|
|
23
|
-
green: string;
|
|
24
|
-
brown: string;
|
|
25
|
-
greenLight: string;
|
|
26
|
-
orangeLight: string;
|
|
27
|
-
yellow: string;
|
|
28
|
-
purpleDark: string;
|
|
29
|
-
purple: string;
|
|
30
|
-
pink: string;
|
|
31
|
-
pinkLight: string;
|
|
32
|
-
primary: {
|
|
33
|
-
main: string;
|
|
34
|
-
dark: string;
|
|
35
|
-
};
|
|
36
|
-
secondary: {
|
|
37
|
-
main: string;
|
|
38
|
-
};
|
|
39
|
-
success: {
|
|
40
|
-
main: string;
|
|
41
|
-
};
|
|
42
|
-
error: {
|
|
43
|
-
main: string;
|
|
44
|
-
};
|
|
45
|
-
warning: {
|
|
46
|
-
main: string;
|
|
47
|
-
};
|
|
48
|
-
infos: {
|
|
49
|
-
main: string;
|
|
50
|
-
};
|
|
51
|
-
}
|