@tracktor/design-system 3.0.0 → 3.0.1
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 +1217 -1201
- 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,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;
|