@tracktor/design-system 3.0.0 → 3.0.2
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/CHANGELOG.md +3 -5
- package/dist/main.cjs +16 -16
- package/dist/main.js +1478 -1456
- package/dist/src/components/DataDisplay/Icons/CloseIcon.d.ts +3 -1
- package/dist/src/components/Inputs/AutocompleteFilter/AutocompleteFilter.d.ts +1 -1
- package/dist/src/components/Inputs/File/File.d.ts +2 -2
- package/dist/src/context/Theme/ThemeProvider.d.ts +5 -2
- package/dist/src/hooks/useTranslation/index.d.ts +2 -0
- package/dist/src/hooks/useTranslation/useTranslation.d.ts +8 -0
- package/dist/src/locales/en.d.ts +7 -0
- package/dist/src/locales/fr.d.ts +7 -0
- package/dist/src/locales/index.d.ts +4 -0
- package/package.json +1 -1
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { SxProps } from '@mui/material';
|
|
1
2
|
interface CloseIconProps {
|
|
2
3
|
color?: string;
|
|
4
|
+
sx?: SxProps;
|
|
3
5
|
}
|
|
4
|
-
declare const CloseIcon: ({ color }: CloseIconProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare const CloseIcon: ({ sx, color }: CloseIconProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
5
7
|
export default CloseIcon;
|
|
@@ -46,7 +46,7 @@ export interface AutocompleteFilterProps<Multiple extends boolean | undefined, D
|
|
|
46
46
|
* @param reason
|
|
47
47
|
* @param details
|
|
48
48
|
*/
|
|
49
|
-
onChange?: (event: SyntheticEvent, value:
|
|
49
|
+
onChange?: (event: SyntheticEvent, value: any, reason?: AutocompleteChangeReason, details?: AutocompleteChangeDetails<AutocompleteFilterOption<OptionValue>>) => void;
|
|
50
50
|
/**
|
|
51
51
|
* Locale text
|
|
52
52
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChangeEvent,
|
|
1
|
+
import { ChangeEvent, ReactNode } from 'react';
|
|
2
2
|
export interface FileUploadProps {
|
|
3
3
|
size?: "small" | "medium";
|
|
4
4
|
variant?: "vertical" | "horizontal";
|
|
@@ -16,7 +16,7 @@ export interface FileUploadProps {
|
|
|
16
16
|
localeText?: {
|
|
17
17
|
files: string;
|
|
18
18
|
};
|
|
19
|
-
onChange?(e: ChangeEvent<HTMLInputElement>
|
|
19
|
+
onChange?(e: ChangeEvent<HTMLInputElement>): void;
|
|
20
20
|
}
|
|
21
21
|
declare const File: ({ accept, name, disabled, required, error, localeText, multiple, id, size, helperText, fullWidth, icon, onChange, label, variant, }: FileUploadProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
22
22
|
export default File;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ThemeOptions } from '@mui/material';
|
|
2
2
|
import { Localization } from '@mui/material/locale';
|
|
3
3
|
import { ReactNode } from 'react';
|
|
4
|
+
type Language = "en" | "fr";
|
|
4
5
|
export interface ThemeProviderProps {
|
|
5
6
|
/**
|
|
6
7
|
* Children to render
|
|
@@ -44,6 +45,8 @@ export interface ThemeProviderProps {
|
|
|
44
45
|
fontWeight?: number[];
|
|
45
46
|
};
|
|
46
47
|
}
|
|
47
|
-
export declare const ThemeContext: import('react').Context<
|
|
48
|
-
|
|
48
|
+
export declare const ThemeContext: import('react').Context<{
|
|
49
|
+
language: Language;
|
|
50
|
+
}>;
|
|
51
|
+
declare const ThemeProvider: ({ children, enableColorScheme, includeCssBaseline, includeScrollBarStyle, fullHeight, theme, language, font, }: ThemeProviderProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
49
52
|
export default ThemeProvider;
|