@tracktor/design-system 2.7.16 → 3.0.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.
@@ -1,4 +1,4 @@
1
- import { ChangeEvent, ReactNode } from 'react';
1
+ import { ChangeEvent, DragEvent, 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>): void;
19
+ onChange?(e: ChangeEvent<HTMLInputElement> | DragEvent<HTMLLabelElement>): 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,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const TextFieldAppBar: import('react').ForwardRefExoticComponent<(Omit<import('@mui/material').FilledTextFieldProps, "ref"> | Omit<import('@mui/material').OutlinedTextFieldProps, "ref"> | Omit<import('@mui/material').StandardTextFieldProps, "ref">) & import('react').RefAttributes<HTMLDivElement>>;
3
2
  export default TextFieldAppBar;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * Hook to check permission
4
3
  */
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": "2.7.16",
5
+ "version": "3.0.0",
6
6
  "license": "ISC",
7
7
  "type": "module",
8
8
  "types": "./dist/src/main.d.ts",
@@ -66,36 +66,36 @@
66
66
  "@testing-library/react": "^14.0.0",
67
67
  "@testing-library/react-hooks": "^8.0.1",
68
68
  "@testing-library/user-event": "^14.4.3",
69
- "@types/node": "^18.19.55",
70
- "@types/react": "^18.3.11",
71
- "@types/react-dom": "^18.2.7",
72
- "@vitejs/plugin-react": "^4.3.2",
69
+ "@types/node": "^18.19.61",
70
+ "@types/react": "^18.3.12",
71
+ "@types/react-dom": "^18.3.1",
72
+ "@vitejs/plugin-react": "^4.3.3",
73
73
  "@vitest/ui": "^0.34.4",
74
74
  "babel-loader": "^9.1.3",
75
- "chromatic": "^11.0.0",
76
- "eslint-config-react-tracktor": "^1.7.0",
75
+ "chromatic": "^11.16.3",
76
+ "eslint-config-react-tracktor": "^1.8.1",
77
77
  "husky": "^8.0.3",
78
78
  "jsdom": "^22.1.0",
79
79
  "react": "^18.3.1",
80
80
  "react-dom": "^18.3.1",
81
- "react-test-renderer": "^18.2.0",
82
- "sass": "^1.67.0",
81
+ "react-test-renderer": "^18.3.1",
82
+ "sass": "^1.80.5",
83
83
  "storybook": "^8.3.6",
84
84
  "storybook-dark-mode": "^4.0.1",
85
85
  "typescript": "^5.2.2",
86
- "vite": "5.4.9",
87
- "vite-plugin-dts": "^4.2.4",
88
- "vitest": "^0.34.6"
86
+ "vite": "5.4.10",
87
+ "vite-plugin-dts": "^4.3.0",
88
+ "vitest": "^1.6.0"
89
89
  },
90
90
  "dependencies": {
91
91
  "@emotion/react": "^11.13.3",
92
92
  "@emotion/styled": "^11.13.0",
93
- "@mui/material": "^5.16.7"
93
+ "@mui/material": "^6.1.5"
94
94
  },
95
95
  "peerDependencies": {
96
96
  "@emotion/react": ">=11.0.0",
97
97
  "@emotion/styled": ">=11.0.0",
98
- "@mui/material": ">=5.0.0",
98
+ "@mui/material": ">=6.0.0",
99
99
  "react": ">=18.0.0",
100
100
  "react-dom": ">=18.0.0"
101
101
  },