@tracktor/design-system 3.13.3 → 4.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.
@@ -70,5 +70,5 @@ export interface ListAvatarProps {
70
70
  */
71
71
  action?: ListAvatarAction;
72
72
  }
73
- export declare const ListAvatar: ({ Empty, action, items, fullWidth, sx, alwaysDisplaySecondaryAction, isLoading, disableLightbox, numberLoadingItems, }: ListAvatarProps) => string | number | true | Iterable<ReactNode> | import("@emotion/react/jsx-runtime").JSX.Element | null;
73
+ export declare const ListAvatar: ({ Empty, action, items, fullWidth, sx, alwaysDisplaySecondaryAction, isLoading, disableLightbox, numberLoadingItems, }: ListAvatarProps) => string | number | bigint | true | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import("@emotion/react/jsx-runtime").JSX.Element | null;
74
74
  export default ListAvatar;
@@ -22,5 +22,5 @@ export interface ListItemCardProps extends ListItemProps {
22
22
  */
23
23
  size?: "small" | "medium" | "large";
24
24
  }
25
- declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<ListItemCardProps, "ref"> & React.RefAttributes<HTMLLIElement>>>;
25
+ declare const _default: React.NamedExoticComponent<Omit<ListItemCardProps, "ref"> & React.RefAttributes<HTMLLIElement>>;
26
26
  export default _default;
@@ -30,7 +30,7 @@ export interface AutocompleteFilterProps<Multiple extends boolean | undefined, D
30
30
  */
31
31
  disableCheckbox?: boolean;
32
32
  /**
33
- * If true, the select all option is disabled
33
+ * If true, the select all options are disabled
34
34
  * @default false
35
35
  */
36
36
  disableSelectAll?: boolean;
@@ -63,6 +63,6 @@ export interface AutocompleteFilterProps<Multiple extends boolean | undefined, D
63
63
  };
64
64
  }
65
65
  declare const _default: React.ForwardRefExoticComponent<Omit<AutocompleteFilterProps<boolean | undefined, boolean | undefined, false, React.ElementType, unknown> & {
66
- inputValue?: string | undefined;
66
+ inputValue?: string;
67
67
  }, "ref"> & React.RefAttributes<HTMLDivElement>>;
68
68
  export default _default;
@@ -8,7 +8,7 @@ export interface ThemeProviderProps {
8
8
  */
9
9
  children: ReactNode;
10
10
  /**
11
- * Set html and body height to 100%
11
+ * Set HTML and body height to 100%
12
12
  */
13
13
  fullHeight?: boolean;
14
14
  /**
@@ -6,6 +6,6 @@ declare const useMenu: <T = HTMLElement>() => {
6
6
  anchorMenu: T | null;
7
7
  closeMenu: () => void;
8
8
  isMenuOpen: boolean;
9
- openMenu: ({ currentTarget }: MouseEvent<T, globalThis.MouseEvent>) => void;
9
+ openMenu: ({ currentTarget }: MouseEvent<T>) => void;
10
10
  };
11
11
  export default useMenu;
@@ -4,6 +4,6 @@
4
4
  declare const useSnackBar: () => {
5
5
  closeSnackbar: () => void;
6
6
  isOpen: boolean;
7
- openSnackbar: (params?: import('../../context/Snackbar/SnackbarProvider').openSnackbarParams | undefined) => void;
7
+ openSnackbar: (params?: import('../../context/Snackbar/SnackbarProvider').openSnackbarParams) => void;
8
8
  };
9
9
  export default useSnackBar;
@@ -64,7 +64,7 @@ export * from './components/Feedback/Dialog/DialogPopper';
64
64
  export { default as DialogValidation } from './components/Feedback/Dialog/DialogValidation/DialogValidation';
65
65
  export * from './components/Feedback/Dialog/DialogValidation/DialogValidation';
66
66
  export { default as ThemeProvider } from './context/Theme/ThemeProvider';
67
- export * from './context/Theme/ThemeProvider';
67
+ export type { ThemeProviderProps } from './context/Theme/ThemeProvider';
68
68
  export { default as PermissionProvider } from './context/Permission/PermissionProvider';
69
69
  export * from './context/Permission/PermissionProvider';
70
70
  export { default as SnackbarProvider } from './context/Snackbar/SnackbarProvider';
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": "3.13.3",
5
+ "version": "4.0.0",
6
6
  "license": "ISC",
7
7
  "type": "module",
8
8
  "types": "./dist/src/main.d.ts",
@@ -47,28 +47,20 @@
47
47
  },
48
48
  "devDependencies": {
49
49
  "@babel/core": "^7.22.9",
50
- "@storybook/addon-actions": "^8.3.6",
51
- "@storybook/addon-docs": "^8.3.6",
52
- "@storybook/addon-essentials": "^8.3.6",
53
- "@storybook/addon-interactions": "^8.3.6",
54
- "@storybook/addon-links": "^8.3.6",
55
- "@storybook/addon-onboarding": "^8.3.6",
56
- "@storybook/addon-storysource": "^8.3.6",
57
- "@storybook/blocks": "^8.3.6",
58
- "@storybook/builder-vite": "^8.3.6",
59
- "@storybook/manager-api": "^8.3.6",
60
- "@storybook/preview-api": "^8.3.6",
61
- "@storybook/react": "^8.3.6",
62
- "@storybook/react-vite": "^8.3.6",
50
+ "@storybook/addon-docs": "^9.0.15",
51
+ "@storybook/addon-links": "^9.0.15",
52
+ "@storybook/addon-onboarding": "^9.0.15",
53
+ "@storybook/blocks": "^8.6.14",
54
+ "@storybook/builder-vite": "^9.0.15",
55
+ "@storybook/react-vite": "^9.0.15",
63
56
  "@storybook/testing-library": "^0.2.2",
64
- "@storybook/theming": "^8.3.6",
65
57
  "@testing-library/jest-dom": "^5.17.0",
66
58
  "@testing-library/react": "^14.0.0",
67
59
  "@testing-library/react-hooks": "^8.0.1",
68
60
  "@testing-library/user-event": "^14.4.3",
69
61
  "@types/node": "^18.19.61",
70
- "@types/react": "^18.3.12",
71
- "@types/react-dom": "^18.3.1",
62
+ "@types/react": "^19.0.0",
63
+ "@types/react-dom": "^19.0.0",
72
64
  "@vitejs/plugin-react": "^4.3.3",
73
65
  "@vitest/ui": "^0.34.4",
74
66
  "babel-loader": "^9.1.3",
@@ -76,28 +68,27 @@
76
68
  "eslint-config-react-tracktor": "^1.8.1",
77
69
  "husky": "^8.0.3",
78
70
  "jsdom": "^22.1.0",
79
- "react": "^18.3.1",
80
- "react-dom": "^18.3.1",
81
- "react-test-renderer": "^18.3.1",
71
+ "react": "^19.0.0",
72
+ "react-dom": "^19.0.0",
73
+ "react-test-renderer": "^19.0.0",
82
74
  "sass": "^1.80.5",
83
- "storybook": "^8.3.6",
84
- "storybook-dark-mode": "^4.0.1",
85
- "typescript": "^5.2.2",
86
- "vite": "5.4.10",
87
- "vite-plugin-dts": "^4.3.0",
88
- "vitest": "^1.6.0"
75
+ "storybook": "^9.0.15",
76
+ "typescript": "^5.8.3",
77
+ "vite": "7.0.0",
78
+ "vite-plugin-dts": "^4.5.4",
79
+ "vitest": "^1.6.1"
89
80
  },
90
81
  "dependencies": {
91
- "@emotion/react": "^11.13.3",
92
- "@emotion/styled": "^11.13.0",
93
- "@mui/material": "~6.2.0"
82
+ "@emotion/react": "^11.0.0",
83
+ "@emotion/styled": "^11.0.0",
84
+ "@mui/material": "^7.0.0"
94
85
  },
95
86
  "peerDependencies": {
96
87
  "@emotion/react": ">=11.0.0",
97
88
  "@emotion/styled": ">=11.0.0",
98
89
  "@mui/material": ">=6.0.0",
99
- "react": ">=18.0.0",
100
- "react-dom": ">=18.0.0"
90
+ "react": "^17.0.0 || ^18.0.0 || ^19.0.0",
91
+ "react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0"
101
92
  },
102
93
  "readme": "ERROR: No README data found!",
103
94
  "resolutions": {