@iowas/toolpad 1.0.3 → 1.0.4
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/AppProvider-CIyOzZv_.d.mts +201 -0
- package/dist/AppProvider-CIyOzZv_.d.ts +201 -0
- package/dist/{chunk-6JQJK2JX.mjs → chunk-3JWXE2JW.mjs} +1 -11
- package/dist/chunk-F6JD4MSY.mjs +12 -0
- package/dist/chunk-LUTZBKSG.mjs +710 -0
- package/dist/{chunk-IDMYUY7L.mjs → chunk-ZXM3V5SD.mjs} +503 -1187
- package/dist/core.d.mts +4 -198
- package/dist/core.d.ts +4 -198
- package/dist/core.mjs +14 -11
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.mjs +17 -13
- package/dist/nextjs.d.mts +3 -157
- package/dist/nextjs.d.ts +3 -157
- package/dist/nextjs.js +0 -1
- package/dist/nextjs.mjs +15 -737
- package/dist/utils.mjs +5 -3
- package/package.json +1 -1
package/dist/nextjs.d.mts
CHANGED
|
@@ -1,161 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* @ignore - internal component.
|
|
7
|
-
*/
|
|
8
|
-
interface LinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
9
|
-
history?: 'auto' | 'push' | 'replace';
|
|
10
|
-
href: string;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
interface LocaleText {
|
|
14
|
-
accountSignInLabel: string;
|
|
15
|
-
accountSignOutLabel: string;
|
|
16
|
-
accountPreviewIconButtonLabel: string;
|
|
17
|
-
accountPreviewTitle: string;
|
|
18
|
-
signInTitle: string | ((brandingTitle?: string) => string);
|
|
19
|
-
signInSubtitle: string;
|
|
20
|
-
providerSignInTitle: (provider: string) => string;
|
|
21
|
-
signInRememberMe: string;
|
|
22
|
-
email: string;
|
|
23
|
-
passkey: string;
|
|
24
|
-
username: string;
|
|
25
|
-
password: string;
|
|
26
|
-
or: string;
|
|
27
|
-
to: string;
|
|
28
|
-
with: string;
|
|
29
|
-
save: string;
|
|
30
|
-
cancel: string;
|
|
31
|
-
ok: string;
|
|
32
|
-
close: string;
|
|
33
|
-
delete: string;
|
|
34
|
-
alert: string;
|
|
35
|
-
confirm: string;
|
|
36
|
-
loading: string;
|
|
37
|
-
createNewButtonLabel: string;
|
|
38
|
-
reloadButtonLabel: string;
|
|
39
|
-
createLabel: string;
|
|
40
|
-
createSuccessMessage: string;
|
|
41
|
-
createErrorMessage: string;
|
|
42
|
-
editLabel: string;
|
|
43
|
-
editSuccessMessage: string;
|
|
44
|
-
editErrorMessage: string;
|
|
45
|
-
deleteLabel: string;
|
|
46
|
-
deleteConfirmTitle: string;
|
|
47
|
-
deleteConfirmMessage: string;
|
|
48
|
-
deleteConfirmLabel: string;
|
|
49
|
-
deleteCancelLabel: string;
|
|
50
|
-
deleteSuccessMessage: string;
|
|
51
|
-
deleteErrorMessage: string;
|
|
52
|
-
deletedItemMessage: string;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
interface NavigateOptions {
|
|
56
|
-
history?: 'auto' | 'push' | 'replace';
|
|
57
|
-
}
|
|
58
|
-
interface Navigate {
|
|
59
|
-
(url: string | URL, options?: NavigateOptions): void;
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Abstract router used by Toolpad components.
|
|
63
|
-
*/
|
|
64
|
-
interface Router {
|
|
65
|
-
pathname: string;
|
|
66
|
-
searchParams: URLSearchParams;
|
|
67
|
-
navigate: Navigate;
|
|
68
|
-
Link?: React.ComponentType<LinkProps>;
|
|
69
|
-
}
|
|
70
|
-
interface Branding {
|
|
71
|
-
title?: string;
|
|
72
|
-
logo?: React.ReactNode;
|
|
73
|
-
homeUrl?: string;
|
|
74
|
-
}
|
|
75
|
-
interface NavigationPageItem {
|
|
76
|
-
kind?: 'page';
|
|
77
|
-
segment?: string;
|
|
78
|
-
title?: string;
|
|
79
|
-
icon?: React.ReactNode;
|
|
80
|
-
pattern?: string;
|
|
81
|
-
action?: React.ReactNode;
|
|
82
|
-
children?: Navigation;
|
|
83
|
-
}
|
|
84
|
-
interface NavigationSubheaderItem {
|
|
85
|
-
kind: 'header';
|
|
86
|
-
title: string;
|
|
87
|
-
}
|
|
88
|
-
interface NavigationDividerItem {
|
|
89
|
-
kind: 'divider';
|
|
90
|
-
}
|
|
91
|
-
type NavigationItem = NavigationPageItem | NavigationSubheaderItem | NavigationDividerItem;
|
|
92
|
-
type Navigation = NavigationItem[];
|
|
93
|
-
interface Session {
|
|
94
|
-
user?: {
|
|
95
|
-
id?: string | null;
|
|
96
|
-
name?: string | null;
|
|
97
|
-
image?: string | null;
|
|
98
|
-
email?: string | null;
|
|
99
|
-
};
|
|
100
|
-
}
|
|
101
|
-
interface Authentication {
|
|
102
|
-
signIn: () => void;
|
|
103
|
-
signOut: () => void;
|
|
104
|
-
}
|
|
105
|
-
type AppTheme = Theme | {
|
|
106
|
-
light: Theme;
|
|
107
|
-
dark: Theme;
|
|
108
|
-
};
|
|
109
|
-
interface AppProviderProps {
|
|
110
|
-
/**
|
|
111
|
-
* The content of the app provider.
|
|
112
|
-
*/
|
|
113
|
-
children: React.ReactNode;
|
|
114
|
-
/**
|
|
115
|
-
* [Theme or themes](https://mui.com/toolpad/core/react-app-provider/#theming) to be used by the app in light/dark mode. A [CSS variables theme](https://mui.com/material-ui/customization/css-theme-variables/overview/) is recommended.
|
|
116
|
-
* @default createDefaultTheme()
|
|
117
|
-
*/
|
|
118
|
-
theme?: AppTheme;
|
|
119
|
-
/**
|
|
120
|
-
* Branding options for the app.
|
|
121
|
-
* @default null
|
|
122
|
-
*/
|
|
123
|
-
branding?: Branding | null;
|
|
124
|
-
/**
|
|
125
|
-
* Navigation definition for the app. [Find out more](https://mui.com/toolpad/core/react-app-provider/#navigation).
|
|
126
|
-
* @default []
|
|
127
|
-
*/
|
|
128
|
-
navigation?: Navigation;
|
|
129
|
-
/**
|
|
130
|
-
* Router implementation used inside Toolpad components.
|
|
131
|
-
* @default null
|
|
132
|
-
*/
|
|
133
|
-
router?: Router;
|
|
134
|
-
/**
|
|
135
|
-
* Locale text for components
|
|
136
|
-
*/
|
|
137
|
-
localeText?: Partial<LocaleText>;
|
|
138
|
-
/**
|
|
139
|
-
* Session info about the current user.
|
|
140
|
-
* @default null
|
|
141
|
-
*/
|
|
142
|
-
session?: Session | null;
|
|
143
|
-
/**
|
|
144
|
-
* Authentication methods.
|
|
145
|
-
* @default null
|
|
146
|
-
*/
|
|
147
|
-
authentication?: Authentication | null;
|
|
148
|
-
/**
|
|
149
|
-
* The window where the application is rendered.
|
|
150
|
-
* This is needed when rendering the app inside an iframe, for example.
|
|
151
|
-
* @default window
|
|
152
|
-
*/
|
|
153
|
-
window?: Window;
|
|
154
|
-
/**
|
|
155
|
-
* The nonce to be used for inline scripts.
|
|
156
|
-
*/
|
|
157
|
-
nonce?: string;
|
|
158
|
-
}
|
|
2
|
+
import { a as AppProviderProps } from './AppProvider-CIyOzZv_.mjs';
|
|
3
|
+
import 'react';
|
|
4
|
+
import '@mui/material/styles';
|
|
159
5
|
|
|
160
6
|
declare function NextAppProvider(props: AppProviderProps): react_jsx_runtime.JSX.Element;
|
|
161
7
|
|
package/dist/nextjs.d.ts
CHANGED
|
@@ -1,161 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* @ignore - internal component.
|
|
7
|
-
*/
|
|
8
|
-
interface LinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
9
|
-
history?: 'auto' | 'push' | 'replace';
|
|
10
|
-
href: string;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
interface LocaleText {
|
|
14
|
-
accountSignInLabel: string;
|
|
15
|
-
accountSignOutLabel: string;
|
|
16
|
-
accountPreviewIconButtonLabel: string;
|
|
17
|
-
accountPreviewTitle: string;
|
|
18
|
-
signInTitle: string | ((brandingTitle?: string) => string);
|
|
19
|
-
signInSubtitle: string;
|
|
20
|
-
providerSignInTitle: (provider: string) => string;
|
|
21
|
-
signInRememberMe: string;
|
|
22
|
-
email: string;
|
|
23
|
-
passkey: string;
|
|
24
|
-
username: string;
|
|
25
|
-
password: string;
|
|
26
|
-
or: string;
|
|
27
|
-
to: string;
|
|
28
|
-
with: string;
|
|
29
|
-
save: string;
|
|
30
|
-
cancel: string;
|
|
31
|
-
ok: string;
|
|
32
|
-
close: string;
|
|
33
|
-
delete: string;
|
|
34
|
-
alert: string;
|
|
35
|
-
confirm: string;
|
|
36
|
-
loading: string;
|
|
37
|
-
createNewButtonLabel: string;
|
|
38
|
-
reloadButtonLabel: string;
|
|
39
|
-
createLabel: string;
|
|
40
|
-
createSuccessMessage: string;
|
|
41
|
-
createErrorMessage: string;
|
|
42
|
-
editLabel: string;
|
|
43
|
-
editSuccessMessage: string;
|
|
44
|
-
editErrorMessage: string;
|
|
45
|
-
deleteLabel: string;
|
|
46
|
-
deleteConfirmTitle: string;
|
|
47
|
-
deleteConfirmMessage: string;
|
|
48
|
-
deleteConfirmLabel: string;
|
|
49
|
-
deleteCancelLabel: string;
|
|
50
|
-
deleteSuccessMessage: string;
|
|
51
|
-
deleteErrorMessage: string;
|
|
52
|
-
deletedItemMessage: string;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
interface NavigateOptions {
|
|
56
|
-
history?: 'auto' | 'push' | 'replace';
|
|
57
|
-
}
|
|
58
|
-
interface Navigate {
|
|
59
|
-
(url: string | URL, options?: NavigateOptions): void;
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Abstract router used by Toolpad components.
|
|
63
|
-
*/
|
|
64
|
-
interface Router {
|
|
65
|
-
pathname: string;
|
|
66
|
-
searchParams: URLSearchParams;
|
|
67
|
-
navigate: Navigate;
|
|
68
|
-
Link?: React.ComponentType<LinkProps>;
|
|
69
|
-
}
|
|
70
|
-
interface Branding {
|
|
71
|
-
title?: string;
|
|
72
|
-
logo?: React.ReactNode;
|
|
73
|
-
homeUrl?: string;
|
|
74
|
-
}
|
|
75
|
-
interface NavigationPageItem {
|
|
76
|
-
kind?: 'page';
|
|
77
|
-
segment?: string;
|
|
78
|
-
title?: string;
|
|
79
|
-
icon?: React.ReactNode;
|
|
80
|
-
pattern?: string;
|
|
81
|
-
action?: React.ReactNode;
|
|
82
|
-
children?: Navigation;
|
|
83
|
-
}
|
|
84
|
-
interface NavigationSubheaderItem {
|
|
85
|
-
kind: 'header';
|
|
86
|
-
title: string;
|
|
87
|
-
}
|
|
88
|
-
interface NavigationDividerItem {
|
|
89
|
-
kind: 'divider';
|
|
90
|
-
}
|
|
91
|
-
type NavigationItem = NavigationPageItem | NavigationSubheaderItem | NavigationDividerItem;
|
|
92
|
-
type Navigation = NavigationItem[];
|
|
93
|
-
interface Session {
|
|
94
|
-
user?: {
|
|
95
|
-
id?: string | null;
|
|
96
|
-
name?: string | null;
|
|
97
|
-
image?: string | null;
|
|
98
|
-
email?: string | null;
|
|
99
|
-
};
|
|
100
|
-
}
|
|
101
|
-
interface Authentication {
|
|
102
|
-
signIn: () => void;
|
|
103
|
-
signOut: () => void;
|
|
104
|
-
}
|
|
105
|
-
type AppTheme = Theme | {
|
|
106
|
-
light: Theme;
|
|
107
|
-
dark: Theme;
|
|
108
|
-
};
|
|
109
|
-
interface AppProviderProps {
|
|
110
|
-
/**
|
|
111
|
-
* The content of the app provider.
|
|
112
|
-
*/
|
|
113
|
-
children: React.ReactNode;
|
|
114
|
-
/**
|
|
115
|
-
* [Theme or themes](https://mui.com/toolpad/core/react-app-provider/#theming) to be used by the app in light/dark mode. A [CSS variables theme](https://mui.com/material-ui/customization/css-theme-variables/overview/) is recommended.
|
|
116
|
-
* @default createDefaultTheme()
|
|
117
|
-
*/
|
|
118
|
-
theme?: AppTheme;
|
|
119
|
-
/**
|
|
120
|
-
* Branding options for the app.
|
|
121
|
-
* @default null
|
|
122
|
-
*/
|
|
123
|
-
branding?: Branding | null;
|
|
124
|
-
/**
|
|
125
|
-
* Navigation definition for the app. [Find out more](https://mui.com/toolpad/core/react-app-provider/#navigation).
|
|
126
|
-
* @default []
|
|
127
|
-
*/
|
|
128
|
-
navigation?: Navigation;
|
|
129
|
-
/**
|
|
130
|
-
* Router implementation used inside Toolpad components.
|
|
131
|
-
* @default null
|
|
132
|
-
*/
|
|
133
|
-
router?: Router;
|
|
134
|
-
/**
|
|
135
|
-
* Locale text for components
|
|
136
|
-
*/
|
|
137
|
-
localeText?: Partial<LocaleText>;
|
|
138
|
-
/**
|
|
139
|
-
* Session info about the current user.
|
|
140
|
-
* @default null
|
|
141
|
-
*/
|
|
142
|
-
session?: Session | null;
|
|
143
|
-
/**
|
|
144
|
-
* Authentication methods.
|
|
145
|
-
* @default null
|
|
146
|
-
*/
|
|
147
|
-
authentication?: Authentication | null;
|
|
148
|
-
/**
|
|
149
|
-
* The window where the application is rendered.
|
|
150
|
-
* This is needed when rendering the app inside an iframe, for example.
|
|
151
|
-
* @default window
|
|
152
|
-
*/
|
|
153
|
-
window?: Window;
|
|
154
|
-
/**
|
|
155
|
-
* The nonce to be used for inline scripts.
|
|
156
|
-
*/
|
|
157
|
-
nonce?: string;
|
|
158
|
-
}
|
|
2
|
+
import { a as AppProviderProps } from './AppProvider-CIyOzZv_.js';
|
|
3
|
+
import 'react';
|
|
4
|
+
import '@mui/material/styles';
|
|
159
5
|
|
|
160
6
|
declare function NextAppProvider(props: AppProviderProps): react_jsx_runtime.JSX.Element;
|
|
161
7
|
|
package/dist/nextjs.js
CHANGED