@etsoo/toolpad 1.0.49 → 1.0.51

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.
Files changed (36) hide show
  1. package/build/cjs/Account/Account.d.ts +1 -1
  2. package/build/cjs/Account/AccountPopoverFooter.d.ts +1 -1
  3. package/build/cjs/Account/AccountPopoverHeader.d.ts +1 -1
  4. package/build/cjs/Account/AccountPreview.d.ts +1 -1
  5. package/build/cjs/Account/SignInButton.d.ts +2 -1
  6. package/build/cjs/Account/SignOutButton.d.ts +2 -1
  7. package/build/cjs/AppProvider/AppProviderComponent.d.ts +1 -1
  8. package/build/cjs/AppProvider/AppThemeProvider.d.ts +1 -1
  9. package/build/cjs/DashboardLayout/DashboardLayout.d.ts +1 -1
  10. package/build/cjs/DashboardLayout/DashboardSidebarSubNavigation.d.ts +2 -1
  11. package/build/cjs/DashboardLayout/ThemeSwitcher.d.ts +2 -1
  12. package/build/cjs/DashboardLayout/TitleBar.d.ts +1 -1
  13. package/build/cjs/PageContainer/PageContainer.d.ts +2 -2
  14. package/build/cjs/PageContainer/PageContainerToolbar.d.ts +1 -1
  15. package/build/cjs/react-router-dom/AppProvider.d.ts +2 -1
  16. package/build/cjs/shared/components.d.ts +2 -2
  17. package/build/cjs/shared/locales/LocaleContext.d.ts +1 -1
  18. package/build/mjs/Account/Account.d.ts +1 -1
  19. package/build/mjs/Account/AccountPopoverFooter.d.ts +1 -1
  20. package/build/mjs/Account/AccountPopoverHeader.d.ts +1 -1
  21. package/build/mjs/Account/AccountPreview.d.ts +1 -1
  22. package/build/mjs/Account/SignInButton.d.ts +2 -1
  23. package/build/mjs/Account/SignOutButton.d.ts +2 -1
  24. package/build/mjs/AppProvider/AppProviderComponent.d.ts +1 -1
  25. package/build/mjs/AppProvider/AppThemeProvider.d.ts +1 -1
  26. package/build/mjs/DashboardLayout/DashboardLayout.d.ts +1 -1
  27. package/build/mjs/DashboardLayout/DashboardSidebarSubNavigation.d.ts +2 -1
  28. package/build/mjs/DashboardLayout/ThemeSwitcher.d.ts +2 -1
  29. package/build/mjs/DashboardLayout/TitleBar.d.ts +1 -1
  30. package/build/mjs/PageContainer/PageContainer.d.ts +2 -2
  31. package/build/mjs/PageContainer/PageContainerToolbar.d.ts +1 -1
  32. package/build/mjs/react-router-dom/AppProvider.d.ts +2 -1
  33. package/build/mjs/shared/components.d.ts +2 -2
  34. package/build/mjs/shared/locales/LocaleContext.d.ts +1 -1
  35. package/package.json +21 -18
  36. package/vite.config.mts +15 -0
@@ -59,5 +59,5 @@ export interface AccountProps {
59
59
  *
60
60
  * - [Account API](https://mui.com/toolpad/core/api/account)
61
61
  */
62
- declare function Account(props: AccountProps): import("react/jsx-runtime").JSX.Element | null;
62
+ declare function Account(props: AccountProps): React.JSX.Element | null;
63
63
  export { Account };
@@ -3,4 +3,4 @@ import { BoxProps } from "@mui/material/Box";
3
3
  export interface AccountPopoverFooterProps extends BoxProps {
4
4
  children?: React.ReactNode;
5
5
  }
6
- export declare function AccountPopoverFooter(props: AccountPopoverFooterProps): import("react/jsx-runtime").JSX.Element;
6
+ export declare function AccountPopoverFooter(props: AccountPopoverFooterProps): React.JSX.Element;
@@ -3,4 +3,4 @@ import { StackProps } from "@mui/material/Stack";
3
3
  export interface AccountPopoverHeaderProps extends StackProps {
4
4
  children?: React.ReactNode;
5
5
  }
6
- export declare function AccountPopoverHeader(props: AccountPopoverHeaderProps): import("react/jsx-runtime").JSX.Element;
6
+ export declare function AccountPopoverHeader(props: AccountPopoverHeaderProps): React.JSX.Element;
@@ -60,5 +60,5 @@ export interface AccountPreviewProps {
60
60
  *
61
61
  * - [AccountPreview API](https://mui.com/toolpad/core/api/account-preview)
62
62
  */
63
- declare function AccountPreview(props: AccountPreviewProps): import("react/jsx-runtime").JSX.Element | null;
63
+ declare function AccountPreview(props: AccountPreviewProps): React.JSX.Element | null;
64
64
  export { AccountPreview };
@@ -1,2 +1,3 @@
1
+ import * as React from "react";
1
2
  import { ButtonProps } from "@mui/material/Button";
2
- export declare function SignInButton(props: ButtonProps): import("react/jsx-runtime").JSX.Element;
3
+ export declare function SignInButton(props: ButtonProps): React.JSX.Element;
@@ -1,3 +1,4 @@
1
+ import * as React from "react";
1
2
  import { ButtonProps } from "@mui/material/Button";
2
3
  export type SignOutButtonProps = ButtonProps;
3
- export declare function SignOutButton(props: SignOutButtonProps): import("react/jsx-runtime").JSX.Element;
4
+ export declare function SignOutButton(props: SignOutButtonProps): React.JSX.Element;
@@ -10,5 +10,5 @@ import { AppProviderProps } from "./AppProvider";
10
10
  *
11
11
  * - [AppProvider API](https://mui.com/toolpad/core/api/app-provider)
12
12
  */
13
- declare function AppProvider(props: AppProviderProps): import("react/jsx-runtime").JSX.Element;
13
+ declare function AppProvider(props: AppProviderProps): import("react").JSX.Element;
14
14
  export { AppProvider };
@@ -8,5 +8,5 @@ interface AppThemeProviderProps {
8
8
  /**
9
9
  * @ignore - internal component.
10
10
  */
11
- declare function AppThemeProvider(props: AppThemeProviderProps): import("react/jsx-runtime").JSX.Element;
11
+ declare function AppThemeProvider(props: AppThemeProviderProps): React.JSX.Element;
12
12
  export { AppThemeProvider };
@@ -87,5 +87,5 @@ export interface DashboardLayoutProps {
87
87
  *
88
88
  * - [DashboardLayout API](https://mui.com/toolpad/core/api/dashboard-layout)
89
89
  */
90
- declare function DashboardLayout(props: DashboardLayoutProps): import("react/jsx-runtime").JSX.Element;
90
+ declare function DashboardLayout(props: DashboardLayoutProps): React.JSX.Element;
91
91
  export { DashboardLayout };
@@ -1,3 +1,4 @@
1
+ import * as React from "react";
1
2
  import type { Navigation } from "../AppProvider";
2
3
  interface DashboardSidebarSubNavigationProps {
3
4
  subNavigation: Navigation;
@@ -12,5 +13,5 @@ interface DashboardSidebarSubNavigationProps {
12
13
  /**
13
14
  * @ignore - internal component.
14
15
  */
15
- declare function DashboardSidebarSubNavigation({ subNavigation, basePath, depth, onLinkClick, isMini, isFullyExpanded, hasDrawerTransitions, selectedItemId }: DashboardSidebarSubNavigationProps): import("react/jsx-runtime").JSX.Element;
16
+ declare function DashboardSidebarSubNavigation({ subNavigation, basePath, depth, onLinkClick, isMini, isFullyExpanded, hasDrawerTransitions, selectedItemId }: DashboardSidebarSubNavigationProps): React.JSX.Element;
16
17
  export { DashboardSidebarSubNavigation };
@@ -1,5 +1,6 @@
1
+ import * as React from "react";
1
2
  /**
2
3
  * @ignore - internal component.
3
4
  */
4
- declare function ThemeSwitcher(): import("react/jsx-runtime").JSX.Element | null;
5
+ declare function ThemeSwitcher(): React.JSX.Element | null;
5
6
  export { ThemeSwitcher };
@@ -1,2 +1,2 @@
1
1
  import React from "react";
2
- export declare function TitleBar(): number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | import("react/jsx-runtime").JSX.Element | undefined;
2
+ export declare function TitleBar(): number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | React.JSX.Element | undefined;
@@ -32,7 +32,7 @@ export declare const PageDataContext: React.Context<{
32
32
  state: PageData;
33
33
  dispatch: React.Dispatch<PageDataAction>;
34
34
  }>;
35
- export declare function PageDataContextProvider(props: React.PropsWithChildren<PageData>): import("react/jsx-runtime").JSX.Element;
35
+ export declare function PageDataContextProvider(props: React.PropsWithChildren<PageData>): React.JSX.Element;
36
36
  type PageContainerBarProps = {
37
37
  /**
38
38
  * The components used for each slot inside.
@@ -59,5 +59,5 @@ export type PageContainerProps = React.PropsWithChildren<StackProps & PageContai
59
59
  *
60
60
  * - [PageContainer API](https://mui.com/toolpad/core/api/page-container)
61
61
  */
62
- declare function PageContainer(props: PageContainerProps): import("react/jsx-runtime").JSX.Element;
62
+ declare function PageContainer(props: PageContainerProps): React.JSX.Element;
63
63
  export { PageContainer };
@@ -12,5 +12,5 @@ export interface PageContainerToolbarProps {
12
12
  *
13
13
  * - [PageContainerToolbar API](https://mui.com/toolpad/core/api/page-container-toolbar)
14
14
  */
15
- declare function PageContainerToolbar(props: PageContainerToolbarProps): import("react/jsx-runtime").JSX.Element;
15
+ declare function PageContainerToolbar(props: PageContainerToolbarProps): React.JSX.Element;
16
16
  export { PageContainerToolbar };
@@ -1,6 +1,7 @@
1
+ import * as React from "react";
1
2
  import { type AppProviderProps } from "../AppProvider";
2
3
  /**
3
4
  * @ignore - internal component.
4
5
  */
5
- declare function AppProvider(props: AppProviderProps): import("react/jsx-runtime").JSX.Element;
6
+ declare function AppProvider(props: AppProviderProps): React.JSX.Element;
6
7
  export { AppProvider };
@@ -1,5 +1,5 @@
1
1
  export interface ErrorOverlayProps {
2
2
  error?: unknown;
3
3
  }
4
- export declare function ErrorOverlay({ error }: ErrorOverlayProps): import("react/jsx-runtime").JSX.Element;
5
- export declare function LoadingOverlay(): import("react/jsx-runtime").JSX.Element;
4
+ export declare function ErrorOverlay({ error }: ErrorOverlayProps): import("react").JSX.Element;
5
+ export declare function LoadingOverlay(): import("react").JSX.Element;
@@ -37,7 +37,7 @@ export interface LocaleProviderProps {
37
37
  /**
38
38
  * @ignore - internal component.
39
39
  */
40
- export declare function LocaleProvider({ localeText, children }: LocaleProviderProps): import("react/jsx-runtime").JSX.Element;
40
+ export declare function LocaleProvider({ localeText, children }: LocaleProviderProps): React.JSX.Element;
41
41
  export declare function useLocaleText(): {
42
42
  signInLabel: string;
43
43
  signOutLabel: string;
@@ -59,5 +59,5 @@ export interface AccountProps {
59
59
  *
60
60
  * - [Account API](https://mui.com/toolpad/core/api/account)
61
61
  */
62
- declare function Account(props: AccountProps): import("react/jsx-runtime").JSX.Element | null;
62
+ declare function Account(props: AccountProps): React.JSX.Element | null;
63
63
  export { Account };
@@ -3,4 +3,4 @@ import { BoxProps } from "@mui/material/Box";
3
3
  export interface AccountPopoverFooterProps extends BoxProps {
4
4
  children?: React.ReactNode;
5
5
  }
6
- export declare function AccountPopoverFooter(props: AccountPopoverFooterProps): import("react/jsx-runtime").JSX.Element;
6
+ export declare function AccountPopoverFooter(props: AccountPopoverFooterProps): React.JSX.Element;
@@ -3,4 +3,4 @@ import { StackProps } from "@mui/material/Stack";
3
3
  export interface AccountPopoverHeaderProps extends StackProps {
4
4
  children?: React.ReactNode;
5
5
  }
6
- export declare function AccountPopoverHeader(props: AccountPopoverHeaderProps): import("react/jsx-runtime").JSX.Element;
6
+ export declare function AccountPopoverHeader(props: AccountPopoverHeaderProps): React.JSX.Element;
@@ -60,5 +60,5 @@ export interface AccountPreviewProps {
60
60
  *
61
61
  * - [AccountPreview API](https://mui.com/toolpad/core/api/account-preview)
62
62
  */
63
- declare function AccountPreview(props: AccountPreviewProps): import("react/jsx-runtime").JSX.Element | null;
63
+ declare function AccountPreview(props: AccountPreviewProps): React.JSX.Element | null;
64
64
  export { AccountPreview };
@@ -1,2 +1,3 @@
1
+ import * as React from "react";
1
2
  import { ButtonProps } from "@mui/material/Button";
2
- export declare function SignInButton(props: ButtonProps): import("react/jsx-runtime").JSX.Element;
3
+ export declare function SignInButton(props: ButtonProps): React.JSX.Element;
@@ -1,3 +1,4 @@
1
+ import * as React from "react";
1
2
  import { ButtonProps } from "@mui/material/Button";
2
3
  export type SignOutButtonProps = ButtonProps;
3
- export declare function SignOutButton(props: SignOutButtonProps): import("react/jsx-runtime").JSX.Element;
4
+ export declare function SignOutButton(props: SignOutButtonProps): React.JSX.Element;
@@ -10,5 +10,5 @@ import { AppProviderProps } from "./AppProvider";
10
10
  *
11
11
  * - [AppProvider API](https://mui.com/toolpad/core/api/app-provider)
12
12
  */
13
- declare function AppProvider(props: AppProviderProps): import("react/jsx-runtime").JSX.Element;
13
+ declare function AppProvider(props: AppProviderProps): import("react").JSX.Element;
14
14
  export { AppProvider };
@@ -8,5 +8,5 @@ interface AppThemeProviderProps {
8
8
  /**
9
9
  * @ignore - internal component.
10
10
  */
11
- declare function AppThemeProvider(props: AppThemeProviderProps): import("react/jsx-runtime").JSX.Element;
11
+ declare function AppThemeProvider(props: AppThemeProviderProps): React.JSX.Element;
12
12
  export { AppThemeProvider };
@@ -87,5 +87,5 @@ export interface DashboardLayoutProps {
87
87
  *
88
88
  * - [DashboardLayout API](https://mui.com/toolpad/core/api/dashboard-layout)
89
89
  */
90
- declare function DashboardLayout(props: DashboardLayoutProps): import("react/jsx-runtime").JSX.Element;
90
+ declare function DashboardLayout(props: DashboardLayoutProps): React.JSX.Element;
91
91
  export { DashboardLayout };
@@ -1,3 +1,4 @@
1
+ import * as React from "react";
1
2
  import type { Navigation } from "../AppProvider";
2
3
  interface DashboardSidebarSubNavigationProps {
3
4
  subNavigation: Navigation;
@@ -12,5 +13,5 @@ interface DashboardSidebarSubNavigationProps {
12
13
  /**
13
14
  * @ignore - internal component.
14
15
  */
15
- declare function DashboardSidebarSubNavigation({ subNavigation, basePath, depth, onLinkClick, isMini, isFullyExpanded, hasDrawerTransitions, selectedItemId }: DashboardSidebarSubNavigationProps): import("react/jsx-runtime").JSX.Element;
16
+ declare function DashboardSidebarSubNavigation({ subNavigation, basePath, depth, onLinkClick, isMini, isFullyExpanded, hasDrawerTransitions, selectedItemId }: DashboardSidebarSubNavigationProps): React.JSX.Element;
16
17
  export { DashboardSidebarSubNavigation };
@@ -1,5 +1,6 @@
1
+ import * as React from "react";
1
2
  /**
2
3
  * @ignore - internal component.
3
4
  */
4
- declare function ThemeSwitcher(): import("react/jsx-runtime").JSX.Element | null;
5
+ declare function ThemeSwitcher(): React.JSX.Element | null;
5
6
  export { ThemeSwitcher };
@@ -1,2 +1,2 @@
1
1
  import React from "react";
2
- export declare function TitleBar(): number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | import("react/jsx-runtime").JSX.Element | undefined;
2
+ export declare function TitleBar(): number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | React.JSX.Element | undefined;
@@ -32,7 +32,7 @@ export declare const PageDataContext: React.Context<{
32
32
  state: PageData;
33
33
  dispatch: React.Dispatch<PageDataAction>;
34
34
  }>;
35
- export declare function PageDataContextProvider(props: React.PropsWithChildren<PageData>): import("react/jsx-runtime").JSX.Element;
35
+ export declare function PageDataContextProvider(props: React.PropsWithChildren<PageData>): React.JSX.Element;
36
36
  type PageContainerBarProps = {
37
37
  /**
38
38
  * The components used for each slot inside.
@@ -59,5 +59,5 @@ export type PageContainerProps = React.PropsWithChildren<StackProps & PageContai
59
59
  *
60
60
  * - [PageContainer API](https://mui.com/toolpad/core/api/page-container)
61
61
  */
62
- declare function PageContainer(props: PageContainerProps): import("react/jsx-runtime").JSX.Element;
62
+ declare function PageContainer(props: PageContainerProps): React.JSX.Element;
63
63
  export { PageContainer };
@@ -12,5 +12,5 @@ export interface PageContainerToolbarProps {
12
12
  *
13
13
  * - [PageContainerToolbar API](https://mui.com/toolpad/core/api/page-container-toolbar)
14
14
  */
15
- declare function PageContainerToolbar(props: PageContainerToolbarProps): import("react/jsx-runtime").JSX.Element;
15
+ declare function PageContainerToolbar(props: PageContainerToolbarProps): React.JSX.Element;
16
16
  export { PageContainerToolbar };
@@ -1,6 +1,7 @@
1
+ import * as React from "react";
1
2
  import { type AppProviderProps } from "../AppProvider";
2
3
  /**
3
4
  * @ignore - internal component.
4
5
  */
5
- declare function AppProvider(props: AppProviderProps): import("react/jsx-runtime").JSX.Element;
6
+ declare function AppProvider(props: AppProviderProps): React.JSX.Element;
6
7
  export { AppProvider };
@@ -1,5 +1,5 @@
1
1
  export interface ErrorOverlayProps {
2
2
  error?: unknown;
3
3
  }
4
- export declare function ErrorOverlay({ error }: ErrorOverlayProps): import("react/jsx-runtime").JSX.Element;
5
- export declare function LoadingOverlay(): import("react/jsx-runtime").JSX.Element;
4
+ export declare function ErrorOverlay({ error }: ErrorOverlayProps): import("react").JSX.Element;
5
+ export declare function LoadingOverlay(): import("react").JSX.Element;
@@ -37,7 +37,7 @@ export interface LocaleProviderProps {
37
37
  /**
38
38
  * @ignore - internal component.
39
39
  */
40
- export declare function LocaleProvider({ localeText, children }: LocaleProviderProps): import("react/jsx-runtime").JSX.Element;
40
+ export declare function LocaleProvider({ localeText, children }: LocaleProviderProps): React.JSX.Element;
41
41
  export declare function useLocaleText(): {
42
42
  signInLabel: string;
43
43
  signOutLabel: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/toolpad",
3
- "version": "1.0.49",
3
+ "version": "1.0.51",
4
4
  "author": "ETSOO",
5
5
  "description": "Dashboard framework extention based on Toolpad Core",
6
6
  "main": "build/cjs/index.js",
@@ -42,37 +42,40 @@
42
42
  "dependencies": {
43
43
  "@emotion/react": "^11.14.0",
44
44
  "@emotion/styled": "^11.14.1",
45
- "@mui/icons-material": "9.0.1",
46
- "@mui/material": "9.0.1",
47
- "@mui/utils": "9.0.1",
45
+ "@mui/icons-material": "9.1.1",
46
+ "@mui/material": "9.1.2",
47
+ "@mui/utils": "9.1.1",
48
48
  "invariant": "2.2.4",
49
49
  "path-to-regexp": "^6.3.0",
50
- "react": "^19.2.6",
51
- "react-dom": "^19.2.6"
50
+ "react": "^19.2.7",
51
+ "react-dom": "^19.2.7"
52
52
  },
53
53
  "devDependencies": {
54
- "@babel/core": "^7.29.0",
55
- "@babel/plugin-transform-runtime": "^7.29.0",
56
- "@babel/preset-env": "^7.29.5",
57
- "@babel/runtime-corejs3": "^7.29.2",
54
+ "@babel/core": "^8.0.1",
55
+ "@babel/plugin-transform-runtime": "^8.0.1",
56
+ "@babel/preset-env": "^8.0.2",
57
+ "@babel/runtime-corejs3": "^8.0.0",
58
58
  "@testing-library/jest-dom": "^6.9.1",
59
59
  "@testing-library/react": "^16.3.2",
60
60
  "@testing-library/user-event": "^14.6.1",
61
61
  "@types/invariant": "2.2.37",
62
- "@types/node": "^25.8.0",
63
- "@types/react": "19.2.14",
62
+ "@types/node": "^26.0.1",
63
+ "@types/react": "19.2.17",
64
64
  "@types/react-dom": "19.2.3",
65
- "@vitejs/plugin-react": "6.0.2",
66
- "@vitest/browser": "4.1.6",
67
- "@vitest/browser-playwright": "^4.1.6",
65
+ "@vitejs/plugin-react": "6.0.3",
66
+ "@vitest/browser": "4.1.9",
67
+ "@vitest/browser-playwright": "^4.1.9",
68
68
  "jsdom": "^29.1.1",
69
- "playwright": "^1.60.0",
70
- "react-router-dom": "^7.15.1",
71
- "vitest": "4.1.6"
69
+ "playwright": "^1.61.1",
70
+ "react-router-dom": "^7.18.0",
71
+ "vitest": "4.1.9"
72
72
  },
73
73
  "peerDependenciesMeta": {
74
74
  "react-router-dom": {
75
75
  "optional": true
76
76
  }
77
+ },
78
+ "allowScripts": {
79
+ "core-js-pure@3.49.0": true
77
80
  }
78
81
  }
package/vite.config.mts CHANGED
@@ -4,11 +4,26 @@ import react from "@vitejs/plugin-react";
4
4
 
5
5
  export default defineConfig({
6
6
  plugins: [react()],
7
+ resolve: {
8
+ alias: {
9
+ "react-transition-group/TransitionGroupContext":
10
+ "react-transition-group/esm/TransitionGroupContext.js"
11
+ }
12
+ },
7
13
  test: {
8
14
  setupFiles: ["vitest.setup.ts", "@testing-library/jest-dom/vitest"],
9
15
  globals: true,
10
16
  environment: "jsdom",
11
17
  include: ["**/?(*.)test.ts?(x)"],
18
+ server: {
19
+ deps: {
20
+ inline: [
21
+ /@mui\/x-data-grid.*/,
22
+ /@mui\/material.*/,
23
+ /react-transition-group.*/
24
+ ]
25
+ }
26
+ },
12
27
  testTimeout: 10000,
13
28
  browser: {
14
29
  enabled: false, // enabled through CLI