@tracktor/design-system 4.22.0 → 4.23.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/main.cjs +6 -6
- package/dist/main.js +1941 -1763
- package/dist/node_modules/@mui/material/esm/colors/amber.d.ts +62 -0
- package/dist/node_modules/@mui/material/esm/colors/blue.d.ts +62 -0
- package/dist/node_modules/@mui/material/esm/colors/blueGrey.d.ts +62 -0
- package/dist/node_modules/@mui/material/esm/colors/brown.d.ts +62 -0
- package/dist/node_modules/@mui/material/esm/colors/common.d.ts +14 -0
- package/dist/node_modules/@mui/material/esm/colors/cyan.d.ts +62 -0
- package/dist/node_modules/@mui/material/esm/colors/deepOrange.d.ts +62 -0
- package/dist/node_modules/@mui/material/esm/colors/deepPurple.d.ts +62 -0
- package/dist/node_modules/@mui/material/esm/colors/green.d.ts +62 -0
- package/dist/node_modules/@mui/material/esm/colors/grey.d.ts +62 -0
- package/dist/node_modules/@mui/material/esm/colors/index.d.ts +20 -0
- package/dist/node_modules/@mui/material/esm/colors/indigo.d.ts +62 -0
- package/dist/node_modules/@mui/material/esm/colors/lightBlue.d.ts +62 -0
- package/dist/node_modules/@mui/material/esm/colors/lightGreen.d.ts +62 -0
- package/dist/node_modules/@mui/material/esm/colors/lime.d.ts +62 -0
- package/dist/node_modules/@mui/material/esm/colors/orange.d.ts +62 -0
- package/dist/node_modules/@mui/material/esm/colors/pink.d.ts +62 -0
- package/dist/node_modules/@mui/material/esm/colors/purple.d.ts +62 -0
- package/dist/node_modules/@mui/material/esm/colors/red.d.ts +62 -0
- package/dist/node_modules/@mui/material/esm/colors/teal.d.ts +62 -0
- package/dist/node_modules/@mui/material/esm/colors/yellow.d.ts +62 -0
- package/dist/node_modules/@mui/material/esm/locale/amET.d.ts +2 -0
- package/dist/node_modules/@mui/material/esm/locale/arEG.d.ts +2 -0
- package/dist/node_modules/@mui/material/esm/locale/arSA.d.ts +2 -0
- package/dist/node_modules/@mui/material/esm/locale/arSD.d.ts +2 -0
- package/dist/node_modules/@mui/material/esm/locale/azAZ.d.ts +2 -0
- package/dist/node_modules/@mui/material/esm/locale/beBY.d.ts +2 -0
- package/dist/node_modules/@mui/material/esm/locale/bgBG.d.ts +2 -0
- package/dist/node_modules/@mui/material/esm/locale/bnBD.d.ts +2 -0
- package/dist/node_modules/@mui/material/esm/locale/caES.d.ts +2 -0
- package/dist/node_modules/@mui/material/esm/locale/csCZ.d.ts +2 -0
- package/dist/node_modules/@mui/material/esm/locale/daDK.d.ts +2 -0
- package/dist/node_modules/@mui/material/esm/locale/deDE.d.ts +2 -0
- package/dist/node_modules/@mui/material/esm/locale/elGR.d.ts +2 -0
- package/dist/node_modules/@mui/material/esm/locale/enUS.d.ts +2 -0
- package/dist/node_modules/@mui/material/esm/locale/esES.d.ts +2 -0
- package/dist/node_modules/@mui/material/esm/locale/etEE.d.ts +2 -0
- package/dist/node_modules/@mui/material/esm/locale/faIR.d.ts +2 -0
- package/dist/node_modules/@mui/material/esm/locale/fiFI.d.ts +2 -0
- package/dist/node_modules/@mui/material/esm/locale/frFR.d.ts +2 -0
- package/dist/node_modules/@mui/material/esm/locale/heIL.d.ts +2 -0
- package/dist/node_modules/@mui/material/esm/locale/hiIN.d.ts +2 -0
- package/dist/node_modules/@mui/material/esm/locale/hrHR.d.ts +2 -0
- package/dist/node_modules/@mui/material/esm/locale/huHU.d.ts +2 -0
- package/dist/node_modules/@mui/material/esm/locale/hyAM.d.ts +2 -0
- package/dist/node_modules/@mui/material/esm/locale/idID.d.ts +2 -0
- package/dist/node_modules/@mui/material/esm/locale/index.d.ts +60 -0
- package/dist/node_modules/@mui/material/esm/locale/isIS.d.ts +2 -0
- package/dist/node_modules/@mui/material/esm/locale/itIT.d.ts +2 -0
- package/dist/node_modules/@mui/material/esm/locale/jaJP.d.ts +2 -0
- package/dist/node_modules/@mui/material/esm/locale/khKH.d.ts +2 -0
- package/dist/node_modules/@mui/material/esm/locale/kkKZ.d.ts +2 -0
- package/dist/node_modules/@mui/material/esm/locale/koKR.d.ts +2 -0
- package/dist/node_modules/@mui/material/esm/locale/kuCKB.d.ts +2 -0
- package/dist/node_modules/@mui/material/esm/locale/kuLatn.d.ts +2 -0
- package/dist/node_modules/@mui/material/esm/locale/mkMK.d.ts +2 -0
- package/dist/node_modules/@mui/material/esm/locale/msMS.d.ts +2 -0
- package/dist/node_modules/@mui/material/esm/locale/myMY.d.ts +2 -0
- package/dist/node_modules/@mui/material/esm/locale/nbNO.d.ts +2 -0
- package/dist/node_modules/@mui/material/esm/locale/neNP.d.ts +2 -0
- package/dist/node_modules/@mui/material/esm/locale/nlNL.d.ts +2 -0
- package/dist/node_modules/@mui/material/esm/locale/nnNO.d.ts +2 -0
- package/dist/node_modules/@mui/material/esm/locale/plPL.d.ts +2 -0
- package/dist/node_modules/@mui/material/esm/locale/psAF.d.ts +2 -0
- package/dist/node_modules/@mui/material/esm/locale/ptBR.d.ts +2 -0
- package/dist/node_modules/@mui/material/esm/locale/ptPT.d.ts +2 -0
- package/dist/node_modules/@mui/material/esm/locale/roRO.d.ts +2 -0
- package/dist/node_modules/@mui/material/esm/locale/ruRU.d.ts +2 -0
- package/dist/node_modules/@mui/material/esm/locale/siLK.d.ts +2 -0
- package/dist/node_modules/@mui/material/esm/locale/skSK.d.ts +2 -0
- package/dist/node_modules/@mui/material/esm/locale/srRS.d.ts +2 -0
- package/dist/node_modules/@mui/material/esm/locale/svSE.d.ts +2 -0
- package/dist/node_modules/@mui/material/esm/locale/thTH.d.ts +2 -0
- package/dist/node_modules/@mui/material/esm/locale/tlTL.d.ts +2 -0
- package/dist/node_modules/@mui/material/esm/locale/trTR.d.ts +2 -0
- package/dist/node_modules/@mui/material/esm/locale/ukUA.d.ts +2 -0
- package/dist/node_modules/@mui/material/esm/locale/urPK.d.ts +2 -0
- package/dist/node_modules/@mui/material/esm/locale/utils/LocaleTextApi.d.ts +23 -0
- package/dist/node_modules/@mui/material/esm/locale/viVN.d.ts +2 -0
- package/dist/node_modules/@mui/material/esm/locale/zhCN.d.ts +2 -0
- package/dist/node_modules/@mui/material/esm/locale/zhHK.d.ts +2 -0
- package/dist/node_modules/@mui/material/esm/locale/zhTW.d.ts +2 -0
- package/dist/node_modules/@mui/material/esm/transitions/index.d.ts +1 -0
- package/dist/node_modules/@mui/material/esm/transitions/transition.d.ts +12 -0
- package/dist/src/components/DataDisplay/ListAvatar/ListAvatar.d.ts +1 -1
- package/dist/src/components/Inputs/AutocompleteFilter/AutocompleteFilter.d.ts +1 -1
- package/dist/src/components/Navigation/Tabs/LinkTab/LinkTab.d.ts +1 -1
- package/dist/src/config/theme.d.ts +2 -0
- package/dist/src/context/Snackbar/SnackbarProvider.d.ts +1 -1
- package/dist/src/hooks/useTranslation/useTranslation.d.ts +2 -4
- package/package.json +7 -7
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
export * from './utils/LocaleTextApi.js';
|
|
2
|
+
export * from './amET.js';
|
|
3
|
+
export * from './arEG.js';
|
|
4
|
+
export * from './arSA.js';
|
|
5
|
+
export * from './arSD.js';
|
|
6
|
+
export * from './azAZ.js';
|
|
7
|
+
export * from './beBY.js';
|
|
8
|
+
export * from './bgBG.js';
|
|
9
|
+
export * from './bnBD.js';
|
|
10
|
+
export * from './caES.js';
|
|
11
|
+
export * from './csCZ.js';
|
|
12
|
+
export * from './daDK.js';
|
|
13
|
+
export * from './deDE.js';
|
|
14
|
+
export * from './elGR.js';
|
|
15
|
+
export * from './enUS.js';
|
|
16
|
+
export * from './esES.js';
|
|
17
|
+
export * from './etEE.js';
|
|
18
|
+
export * from './faIR.js';
|
|
19
|
+
export * from './fiFI.js';
|
|
20
|
+
export * from './frFR.js';
|
|
21
|
+
export * from './heIL.js';
|
|
22
|
+
export * from './hiIN.js';
|
|
23
|
+
export * from './hrHR.js';
|
|
24
|
+
export * from './huHU.js';
|
|
25
|
+
export * from './hyAM.js';
|
|
26
|
+
export * from './idID.js';
|
|
27
|
+
export * from './isIS.js';
|
|
28
|
+
export * from './itIT.js';
|
|
29
|
+
export * from './jaJP.js';
|
|
30
|
+
export * from './khKH.js';
|
|
31
|
+
export * from './koKR.js';
|
|
32
|
+
export * from './kuCKB.js';
|
|
33
|
+
export * from './kuLatn.js';
|
|
34
|
+
export * from './kkKZ.js';
|
|
35
|
+
export * from './mkMK.js';
|
|
36
|
+
export * from './msMS.js';
|
|
37
|
+
export * from './myMY.js';
|
|
38
|
+
export * from './nbNO.js';
|
|
39
|
+
export * from './neNP.js';
|
|
40
|
+
export * from './nnNO.js';
|
|
41
|
+
export * from './nlNL.js';
|
|
42
|
+
export * from './plPL.js';
|
|
43
|
+
export * from './psAF.js';
|
|
44
|
+
export * from './ptBR.js';
|
|
45
|
+
export * from './ptPT.js';
|
|
46
|
+
export * from './roRO.js';
|
|
47
|
+
export * from './ruRU.js';
|
|
48
|
+
export * from './siLK.js';
|
|
49
|
+
export * from './skSK.js';
|
|
50
|
+
export * from './srRS.js';
|
|
51
|
+
export * from './svSE.js';
|
|
52
|
+
export * from './thTH.js';
|
|
53
|
+
export * from './trTR.js';
|
|
54
|
+
export * from './tlTL.js';
|
|
55
|
+
export * from './ukUA.js';
|
|
56
|
+
export * from './urPK.js';
|
|
57
|
+
export * from './viVN.js';
|
|
58
|
+
export * from './zhCN.js';
|
|
59
|
+
export * from './zhHK.js';
|
|
60
|
+
export * from './zhTW.js';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ComponentsPropsList } from '../../styles/props.js';
|
|
2
|
+
export interface Localization {
|
|
3
|
+
components?: {
|
|
4
|
+
MuiAlert?: {
|
|
5
|
+
defaultProps: Pick<ComponentsPropsList['MuiAlert'], 'closeText'>;
|
|
6
|
+
};
|
|
7
|
+
MuiBreadcrumbs?: {
|
|
8
|
+
defaultProps: Pick<ComponentsPropsList['MuiBreadcrumbs'], 'expandText'>;
|
|
9
|
+
};
|
|
10
|
+
MuiTablePagination?: {
|
|
11
|
+
defaultProps: Pick<ComponentsPropsList['MuiTablePagination'], 'labelRowsPerPage' | 'labelDisplayedRows' | 'getItemAriaLabel'>;
|
|
12
|
+
};
|
|
13
|
+
MuiRating?: {
|
|
14
|
+
defaultProps: Pick<ComponentsPropsList['MuiRating'], 'emptyLabelText' | 'getLabelText'>;
|
|
15
|
+
};
|
|
16
|
+
MuiAutocomplete?: {
|
|
17
|
+
defaultProps: Pick<ComponentsPropsList['MuiAutocomplete'], 'clearText' | 'closeText' | 'loadingText' | 'noOptionsText' | 'openText'>;
|
|
18
|
+
};
|
|
19
|
+
MuiPagination?: {
|
|
20
|
+
defaultProps: Pick<ComponentsPropsList['MuiPagination'], 'aria-label' | 'getItemAriaLabel'>;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './transition.js';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { TransitionProps as _TransitionProps, TransitionActions } from 'react-transition-group/Transition';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export type TransitionHandlerKeys = 'onEnter' | 'onEntering' | 'onEntered' | 'onExit' | 'onExiting' | 'onExited';
|
|
4
|
+
export type TransitionHandlerProps = Pick<_TransitionProps, TransitionHandlerKeys>;
|
|
5
|
+
export interface EasingProps {
|
|
6
|
+
easing: string | {
|
|
7
|
+
enter?: string;
|
|
8
|
+
exit?: string;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export type TransitionKeys = 'in' | 'mountOnEnter' | 'unmountOnExit' | 'timeout' | 'easing' | 'addEndListener' | TransitionHandlerKeys;
|
|
12
|
+
export interface TransitionProps extends TransitionActions, Partial<Pick<_TransitionProps & EasingProps, TransitionKeys>>, React.HTMLAttributes<HTMLElement> {}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChipProps, ListItemButtonProps, SxProps, Theme } from '@mui/material';
|
|
2
|
-
import { ListProps } from '@mui/material/List
|
|
2
|
+
import { ListProps } from '@mui/material/List';
|
|
3
3
|
import { MouseEvent, ReactNode } from 'react';
|
|
4
4
|
interface ListAvatarItemBase {
|
|
5
5
|
Avatar?: ReactNode;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChipTypeMap, AutocompleteProps as MuiAutocompleteProps } from '@mui/material';
|
|
2
|
-
import { AutocompleteChangeDetails, AutocompleteChangeReason } from '@mui/material/useAutocomplete
|
|
2
|
+
import { AutocompleteChangeDetails, AutocompleteChangeReason } from '@mui/material/useAutocomplete';
|
|
3
3
|
import { ElementType, ReactNode, SyntheticEvent } from 'react';
|
|
4
4
|
export type AutocompleteFilterOption<T = unknown> = {
|
|
5
5
|
id?: string | number | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AlertColor, AlertProps } from '@mui/material';
|
|
2
|
-
import { SnackbarOrigin } from '@mui/material/Snackbar
|
|
2
|
+
import { SnackbarOrigin } from '@mui/material/Snackbar';
|
|
3
3
|
import { ElementType, PropsWithChildren } from 'react';
|
|
4
4
|
interface openSnackbarParamsWithComponent {
|
|
5
5
|
component: ElementType;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { default as locales } from '../../locales';
|
|
2
|
-
|
|
3
|
-
* Hook to get the translations internally
|
|
4
|
-
*/
|
|
2
|
+
type TranslationKey = keyof typeof locales.en;
|
|
5
3
|
declare const useTranslation: () => {
|
|
6
|
-
t: (key:
|
|
4
|
+
t: (key: TranslationKey) => string;
|
|
7
5
|
};
|
|
8
6
|
export default useTranslation;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@tracktor/design-system",
|
|
3
3
|
"description": "Tracktor Design System",
|
|
4
4
|
"sideEffects": false,
|
|
5
|
-
"version": "4.
|
|
5
|
+
"version": "4.23.0",
|
|
6
6
|
"license": "ISC",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"types": "./dist/src/main.d.ts",
|
|
@@ -48,11 +48,11 @@
|
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@babel/core": "^7.22.9",
|
|
51
|
-
"@storybook/addon-docs": "^
|
|
52
|
-
"@storybook/addon-links": "^
|
|
53
|
-
"@storybook/addon-onboarding": "^
|
|
54
|
-
"@storybook/builder-vite": "^
|
|
55
|
-
"@storybook/react-vite": "^
|
|
51
|
+
"@storybook/addon-docs": "^10.2.0",
|
|
52
|
+
"@storybook/addon-links": "^10.2.0",
|
|
53
|
+
"@storybook/addon-onboarding": "^10.2.0",
|
|
54
|
+
"@storybook/builder-vite": "^10.2.0",
|
|
55
|
+
"@storybook/react-vite": "^10.2.0",
|
|
56
56
|
"@storybook/testing-library": "^0.2.2",
|
|
57
57
|
"@testing-library/jest-dom": "^5.17.0",
|
|
58
58
|
"@testing-library/react": "^14.0.0",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"react-dom": "^19.0.0",
|
|
74
74
|
"react-test-renderer": "^19.0.0",
|
|
75
75
|
"sass": "^1.80.5",
|
|
76
|
-
"storybook": "^
|
|
76
|
+
"storybook": "^10.2.0",
|
|
77
77
|
"typescript": "^5.8.3",
|
|
78
78
|
"vite": "7.3.0",
|
|
79
79
|
"vite-plugin-dts": "^4.5.4",
|