@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/core.d.mts
CHANGED
|
@@ -4,9 +4,11 @@ import Button, { ButtonProps } from '@mui/material/Button';
|
|
|
4
4
|
import Popover, { PopoverProps } from '@mui/material/Popover';
|
|
5
5
|
import Stack, { StackProps } from '@mui/material/Stack';
|
|
6
6
|
import { AvatarProps } from '@mui/material/Avatar';
|
|
7
|
-
import { SxProps
|
|
7
|
+
import { SxProps } from '@mui/material/styles';
|
|
8
8
|
import { IconButtonProps } from '@mui/material/IconButton';
|
|
9
9
|
import { BoxProps } from '@mui/material/Box';
|
|
10
|
+
import { B as Branding, i as Navigation, l as NavigationPageItem } from './AppProvider-CIyOzZv_.mjs';
|
|
11
|
+
export { A as AppProvider, a as AppProviderProps, b as AppTheme, c as Authentication, d as AuthenticationContext, L as LocaleText, e as LocalizationContext, f as LocalizationProvider, g as LocalizationProviderProps, N as Navigate, h as NavigateOptions, j as NavigationDividerItem, k as NavigationItem, m as NavigationSubheaderItem, R as Router, S as Session, n as SessionContext, u as useLocaleText } from './AppProvider-CIyOzZv_.mjs';
|
|
10
12
|
import { ContainerProps } from '@mui/material/Container';
|
|
11
13
|
import { SxProps as SxProps$1, SnackbarProps } from '@mui/material';
|
|
12
14
|
|
|
@@ -215,202 +217,6 @@ declare namespace SignOutButton {
|
|
|
215
217
|
var propTypes: any;
|
|
216
218
|
}
|
|
217
219
|
|
|
218
|
-
/**
|
|
219
|
-
* @ignore - internal component.
|
|
220
|
-
*/
|
|
221
|
-
interface LinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
222
|
-
history?: 'auto' | 'push' | 'replace';
|
|
223
|
-
href: string;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
interface LocaleText {
|
|
227
|
-
accountSignInLabel: string;
|
|
228
|
-
accountSignOutLabel: string;
|
|
229
|
-
accountPreviewIconButtonLabel: string;
|
|
230
|
-
accountPreviewTitle: string;
|
|
231
|
-
signInTitle: string | ((brandingTitle?: string) => string);
|
|
232
|
-
signInSubtitle: string;
|
|
233
|
-
providerSignInTitle: (provider: string) => string;
|
|
234
|
-
signInRememberMe: string;
|
|
235
|
-
email: string;
|
|
236
|
-
passkey: string;
|
|
237
|
-
username: string;
|
|
238
|
-
password: string;
|
|
239
|
-
or: string;
|
|
240
|
-
to: string;
|
|
241
|
-
with: string;
|
|
242
|
-
save: string;
|
|
243
|
-
cancel: string;
|
|
244
|
-
ok: string;
|
|
245
|
-
close: string;
|
|
246
|
-
delete: string;
|
|
247
|
-
alert: string;
|
|
248
|
-
confirm: string;
|
|
249
|
-
loading: string;
|
|
250
|
-
createNewButtonLabel: string;
|
|
251
|
-
reloadButtonLabel: string;
|
|
252
|
-
createLabel: string;
|
|
253
|
-
createSuccessMessage: string;
|
|
254
|
-
createErrorMessage: string;
|
|
255
|
-
editLabel: string;
|
|
256
|
-
editSuccessMessage: string;
|
|
257
|
-
editErrorMessage: string;
|
|
258
|
-
deleteLabel: string;
|
|
259
|
-
deleteConfirmTitle: string;
|
|
260
|
-
deleteConfirmMessage: string;
|
|
261
|
-
deleteConfirmLabel: string;
|
|
262
|
-
deleteCancelLabel: string;
|
|
263
|
-
deleteSuccessMessage: string;
|
|
264
|
-
deleteErrorMessage: string;
|
|
265
|
-
deletedItemMessage: string;
|
|
266
|
-
}
|
|
267
|
-
interface LocalizationProviderProps {
|
|
268
|
-
children?: React.ReactNode;
|
|
269
|
-
/**
|
|
270
|
-
* Locale for components texts
|
|
271
|
-
*/
|
|
272
|
-
localeText?: Partial<LocaleText>;
|
|
273
|
-
}
|
|
274
|
-
declare const LocalizationContext: React.Context<Partial<LocaleText>>;
|
|
275
|
-
declare const LocalizationProvider: {
|
|
276
|
-
(props: LocalizationProviderProps): react_jsx_runtime.JSX.Element;
|
|
277
|
-
propTypes: any;
|
|
278
|
-
};
|
|
279
|
-
|
|
280
|
-
/**
|
|
281
|
-
*
|
|
282
|
-
* Demos:
|
|
283
|
-
*
|
|
284
|
-
* - [Sign-in Page](https://mui.com/toolpad/core/react-sign-in-page/)
|
|
285
|
-
*
|
|
286
|
-
* API:
|
|
287
|
-
*
|
|
288
|
-
* - [LocalizationProvider API](https://mui.com/toolpad/core/api/localization-provider)
|
|
289
|
-
*/
|
|
290
|
-
declare function useLocaleText(): Partial<LocaleText>;
|
|
291
|
-
|
|
292
|
-
interface NavigateOptions {
|
|
293
|
-
history?: 'auto' | 'push' | 'replace';
|
|
294
|
-
}
|
|
295
|
-
interface Navigate {
|
|
296
|
-
(url: string | URL, options?: NavigateOptions): void;
|
|
297
|
-
}
|
|
298
|
-
/**
|
|
299
|
-
* Abstract router used by Toolpad components.
|
|
300
|
-
*/
|
|
301
|
-
interface Router {
|
|
302
|
-
pathname: string;
|
|
303
|
-
searchParams: URLSearchParams;
|
|
304
|
-
navigate: Navigate;
|
|
305
|
-
Link?: React.ComponentType<LinkProps>;
|
|
306
|
-
}
|
|
307
|
-
interface Branding {
|
|
308
|
-
title?: string;
|
|
309
|
-
logo?: React.ReactNode;
|
|
310
|
-
homeUrl?: string;
|
|
311
|
-
}
|
|
312
|
-
interface NavigationPageItem {
|
|
313
|
-
kind?: 'page';
|
|
314
|
-
segment?: string;
|
|
315
|
-
title?: string;
|
|
316
|
-
icon?: React.ReactNode;
|
|
317
|
-
pattern?: string;
|
|
318
|
-
action?: React.ReactNode;
|
|
319
|
-
children?: Navigation;
|
|
320
|
-
}
|
|
321
|
-
interface NavigationSubheaderItem {
|
|
322
|
-
kind: 'header';
|
|
323
|
-
title: string;
|
|
324
|
-
}
|
|
325
|
-
interface NavigationDividerItem {
|
|
326
|
-
kind: 'divider';
|
|
327
|
-
}
|
|
328
|
-
type NavigationItem = NavigationPageItem | NavigationSubheaderItem | NavigationDividerItem;
|
|
329
|
-
type Navigation = NavigationItem[];
|
|
330
|
-
interface Session {
|
|
331
|
-
user?: {
|
|
332
|
-
id?: string | null;
|
|
333
|
-
name?: string | null;
|
|
334
|
-
image?: string | null;
|
|
335
|
-
email?: string | null;
|
|
336
|
-
};
|
|
337
|
-
}
|
|
338
|
-
interface Authentication {
|
|
339
|
-
signIn: () => void;
|
|
340
|
-
signOut: () => void;
|
|
341
|
-
}
|
|
342
|
-
declare const AuthenticationContext: React.Context<Authentication | null>;
|
|
343
|
-
declare const SessionContext: React.Context<Session | null>;
|
|
344
|
-
type AppTheme = Theme | {
|
|
345
|
-
light: Theme;
|
|
346
|
-
dark: Theme;
|
|
347
|
-
};
|
|
348
|
-
interface AppProviderProps {
|
|
349
|
-
/**
|
|
350
|
-
* The content of the app provider.
|
|
351
|
-
*/
|
|
352
|
-
children: React.ReactNode;
|
|
353
|
-
/**
|
|
354
|
-
* [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.
|
|
355
|
-
* @default createDefaultTheme()
|
|
356
|
-
*/
|
|
357
|
-
theme?: AppTheme;
|
|
358
|
-
/**
|
|
359
|
-
* Branding options for the app.
|
|
360
|
-
* @default null
|
|
361
|
-
*/
|
|
362
|
-
branding?: Branding | null;
|
|
363
|
-
/**
|
|
364
|
-
* Navigation definition for the app. [Find out more](https://mui.com/toolpad/core/react-app-provider/#navigation).
|
|
365
|
-
* @default []
|
|
366
|
-
*/
|
|
367
|
-
navigation?: Navigation;
|
|
368
|
-
/**
|
|
369
|
-
* Router implementation used inside Toolpad components.
|
|
370
|
-
* @default null
|
|
371
|
-
*/
|
|
372
|
-
router?: Router;
|
|
373
|
-
/**
|
|
374
|
-
* Locale text for components
|
|
375
|
-
*/
|
|
376
|
-
localeText?: Partial<LocaleText>;
|
|
377
|
-
/**
|
|
378
|
-
* Session info about the current user.
|
|
379
|
-
* @default null
|
|
380
|
-
*/
|
|
381
|
-
session?: Session | null;
|
|
382
|
-
/**
|
|
383
|
-
* Authentication methods.
|
|
384
|
-
* @default null
|
|
385
|
-
*/
|
|
386
|
-
authentication?: Authentication | null;
|
|
387
|
-
/**
|
|
388
|
-
* The window where the application is rendered.
|
|
389
|
-
* This is needed when rendering the app inside an iframe, for example.
|
|
390
|
-
* @default window
|
|
391
|
-
*/
|
|
392
|
-
window?: Window;
|
|
393
|
-
/**
|
|
394
|
-
* The nonce to be used for inline scripts.
|
|
395
|
-
*/
|
|
396
|
-
nonce?: string;
|
|
397
|
-
}
|
|
398
|
-
/**
|
|
399
|
-
*
|
|
400
|
-
* Demos:
|
|
401
|
-
*
|
|
402
|
-
* - [App Provider](https://mui.com/toolpad/core/react-app-provider/)
|
|
403
|
-
* - [Dashboard Layout](https://mui.com/toolpad/core/react-dashboard-layout/)
|
|
404
|
-
*
|
|
405
|
-
* API:
|
|
406
|
-
*
|
|
407
|
-
* - [AppProvider API](https://mui.com/toolpad/core/api/app-provider)
|
|
408
|
-
*/
|
|
409
|
-
declare function AppProvider(props: AppProviderProps): react_jsx_runtime.JSX.Element;
|
|
410
|
-
declare namespace AppProvider {
|
|
411
|
-
var propTypes: any;
|
|
412
|
-
}
|
|
413
|
-
|
|
414
220
|
interface AppTitleProps {
|
|
415
221
|
branding?: Branding;
|
|
416
222
|
}
|
|
@@ -1186,4 +992,4 @@ interface NotificationsProviderProps {
|
|
|
1186
992
|
*/
|
|
1187
993
|
declare function NotificationsProvider(props: NotificationsProviderProps): react_jsx_runtime.JSX.Element;
|
|
1188
994
|
|
|
1189
|
-
export { Account, AccountPopoverFooter, type AccountPopoverFooterProps, AccountPopoverHeader, type AccountPopoverHeaderProps, AccountPreview, type AccountPreviewProps, type AccountPreviewSlots, type AccountPreviewVariant, type AccountProps, type AccountSlots, type ActivePage, AlertDialog, type AlertDialogPayload, type AlertDialogProps, type AlertOptions,
|
|
995
|
+
export { Account, AccountPopoverFooter, type AccountPopoverFooterProps, AccountPopoverHeader, type AccountPopoverHeaderProps, AccountPreview, type AccountPreviewProps, type AccountPreviewSlots, type AccountPreviewVariant, type AccountProps, type AccountSlots, type ActivePage, AlertDialog, type AlertDialogPayload, type AlertDialogProps, type AlertOptions, Branding, type Breadcrumb, type CloseDialog, type CloseNotification, ConfirmDialog, type ConfirmDialogPayload, type ConfirmDialogProps, type ConfirmOptions, DashboardHeader, type DashboardHeaderProps, type DashboardHeaderSlotProps, type DashboardHeaderSlots, DashboardLayout, type DashboardLayoutProps, type DashboardLayoutSlotProps, type DashboardLayoutSlots, DashboardSidebarPageItem, type DashboardSidebarPageItemContextProps, type DashboardSidebarPageItemProps, type DefaultStorageStateoptions, type DialogComponent, type DialogHook, type DialogProps, type DialogProviderProps, DialogsProvider, Navigation, NavigationPageItem, NotificationsProvider, type NotificationsProviderProps, type NotificationsProviderSlotProps, type NotificationsProviderSlots, type OpenAlertDialog, type OpenConfirmDialog, type OpenDialog, type OpenDialogOptions, type OpenPromptDialog, PageContainer, type PageContainerProps, type PageContainerSlotProps, type PageContainerSlots, PageHeader, type PageHeaderProps, type PageHeaderSlotProps, type PageHeaderSlots, PageHeaderToolbar, type PageHeaderToolbarProps, PromptDialog, type PromptDialogPayload, type PromptDialogProps, type PromptOptions, type ShowNotification, type ShowNotificationOptions, type SidebarFooterProps, SignInButton, SignOutButton, type SignOutButtonProps, type StorageStateInitializer, type StorageStateOptions, ThemeSwitcher, ToolbarActions, type UseStorageState, type UseStorageStateHookResult, _default as en, useActivePage, useDialogs, useLocalStorageState, useNotifications, useStorageState, useStorageStateServer };
|
package/dist/core.d.ts
CHANGED
|
@@ -4,9 +4,11 @@ import Button, { ButtonProps } from '@mui/material/Button';
|
|
|
4
4
|
import Popover, { PopoverProps } from '@mui/material/Popover';
|
|
5
5
|
import Stack, { StackProps } from '@mui/material/Stack';
|
|
6
6
|
import { AvatarProps } from '@mui/material/Avatar';
|
|
7
|
-
import { SxProps
|
|
7
|
+
import { SxProps } from '@mui/material/styles';
|
|
8
8
|
import { IconButtonProps } from '@mui/material/IconButton';
|
|
9
9
|
import { BoxProps } from '@mui/material/Box';
|
|
10
|
+
import { B as Branding, i as Navigation, l as NavigationPageItem } from './AppProvider-CIyOzZv_.js';
|
|
11
|
+
export { A as AppProvider, a as AppProviderProps, b as AppTheme, c as Authentication, d as AuthenticationContext, L as LocaleText, e as LocalizationContext, f as LocalizationProvider, g as LocalizationProviderProps, N as Navigate, h as NavigateOptions, j as NavigationDividerItem, k as NavigationItem, m as NavigationSubheaderItem, R as Router, S as Session, n as SessionContext, u as useLocaleText } from './AppProvider-CIyOzZv_.js';
|
|
10
12
|
import { ContainerProps } from '@mui/material/Container';
|
|
11
13
|
import { SxProps as SxProps$1, SnackbarProps } from '@mui/material';
|
|
12
14
|
|
|
@@ -215,202 +217,6 @@ declare namespace SignOutButton {
|
|
|
215
217
|
var propTypes: any;
|
|
216
218
|
}
|
|
217
219
|
|
|
218
|
-
/**
|
|
219
|
-
* @ignore - internal component.
|
|
220
|
-
*/
|
|
221
|
-
interface LinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
222
|
-
history?: 'auto' | 'push' | 'replace';
|
|
223
|
-
href: string;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
interface LocaleText {
|
|
227
|
-
accountSignInLabel: string;
|
|
228
|
-
accountSignOutLabel: string;
|
|
229
|
-
accountPreviewIconButtonLabel: string;
|
|
230
|
-
accountPreviewTitle: string;
|
|
231
|
-
signInTitle: string | ((brandingTitle?: string) => string);
|
|
232
|
-
signInSubtitle: string;
|
|
233
|
-
providerSignInTitle: (provider: string) => string;
|
|
234
|
-
signInRememberMe: string;
|
|
235
|
-
email: string;
|
|
236
|
-
passkey: string;
|
|
237
|
-
username: string;
|
|
238
|
-
password: string;
|
|
239
|
-
or: string;
|
|
240
|
-
to: string;
|
|
241
|
-
with: string;
|
|
242
|
-
save: string;
|
|
243
|
-
cancel: string;
|
|
244
|
-
ok: string;
|
|
245
|
-
close: string;
|
|
246
|
-
delete: string;
|
|
247
|
-
alert: string;
|
|
248
|
-
confirm: string;
|
|
249
|
-
loading: string;
|
|
250
|
-
createNewButtonLabel: string;
|
|
251
|
-
reloadButtonLabel: string;
|
|
252
|
-
createLabel: string;
|
|
253
|
-
createSuccessMessage: string;
|
|
254
|
-
createErrorMessage: string;
|
|
255
|
-
editLabel: string;
|
|
256
|
-
editSuccessMessage: string;
|
|
257
|
-
editErrorMessage: string;
|
|
258
|
-
deleteLabel: string;
|
|
259
|
-
deleteConfirmTitle: string;
|
|
260
|
-
deleteConfirmMessage: string;
|
|
261
|
-
deleteConfirmLabel: string;
|
|
262
|
-
deleteCancelLabel: string;
|
|
263
|
-
deleteSuccessMessage: string;
|
|
264
|
-
deleteErrorMessage: string;
|
|
265
|
-
deletedItemMessage: string;
|
|
266
|
-
}
|
|
267
|
-
interface LocalizationProviderProps {
|
|
268
|
-
children?: React.ReactNode;
|
|
269
|
-
/**
|
|
270
|
-
* Locale for components texts
|
|
271
|
-
*/
|
|
272
|
-
localeText?: Partial<LocaleText>;
|
|
273
|
-
}
|
|
274
|
-
declare const LocalizationContext: React.Context<Partial<LocaleText>>;
|
|
275
|
-
declare const LocalizationProvider: {
|
|
276
|
-
(props: LocalizationProviderProps): react_jsx_runtime.JSX.Element;
|
|
277
|
-
propTypes: any;
|
|
278
|
-
};
|
|
279
|
-
|
|
280
|
-
/**
|
|
281
|
-
*
|
|
282
|
-
* Demos:
|
|
283
|
-
*
|
|
284
|
-
* - [Sign-in Page](https://mui.com/toolpad/core/react-sign-in-page/)
|
|
285
|
-
*
|
|
286
|
-
* API:
|
|
287
|
-
*
|
|
288
|
-
* - [LocalizationProvider API](https://mui.com/toolpad/core/api/localization-provider)
|
|
289
|
-
*/
|
|
290
|
-
declare function useLocaleText(): Partial<LocaleText>;
|
|
291
|
-
|
|
292
|
-
interface NavigateOptions {
|
|
293
|
-
history?: 'auto' | 'push' | 'replace';
|
|
294
|
-
}
|
|
295
|
-
interface Navigate {
|
|
296
|
-
(url: string | URL, options?: NavigateOptions): void;
|
|
297
|
-
}
|
|
298
|
-
/**
|
|
299
|
-
* Abstract router used by Toolpad components.
|
|
300
|
-
*/
|
|
301
|
-
interface Router {
|
|
302
|
-
pathname: string;
|
|
303
|
-
searchParams: URLSearchParams;
|
|
304
|
-
navigate: Navigate;
|
|
305
|
-
Link?: React.ComponentType<LinkProps>;
|
|
306
|
-
}
|
|
307
|
-
interface Branding {
|
|
308
|
-
title?: string;
|
|
309
|
-
logo?: React.ReactNode;
|
|
310
|
-
homeUrl?: string;
|
|
311
|
-
}
|
|
312
|
-
interface NavigationPageItem {
|
|
313
|
-
kind?: 'page';
|
|
314
|
-
segment?: string;
|
|
315
|
-
title?: string;
|
|
316
|
-
icon?: React.ReactNode;
|
|
317
|
-
pattern?: string;
|
|
318
|
-
action?: React.ReactNode;
|
|
319
|
-
children?: Navigation;
|
|
320
|
-
}
|
|
321
|
-
interface NavigationSubheaderItem {
|
|
322
|
-
kind: 'header';
|
|
323
|
-
title: string;
|
|
324
|
-
}
|
|
325
|
-
interface NavigationDividerItem {
|
|
326
|
-
kind: 'divider';
|
|
327
|
-
}
|
|
328
|
-
type NavigationItem = NavigationPageItem | NavigationSubheaderItem | NavigationDividerItem;
|
|
329
|
-
type Navigation = NavigationItem[];
|
|
330
|
-
interface Session {
|
|
331
|
-
user?: {
|
|
332
|
-
id?: string | null;
|
|
333
|
-
name?: string | null;
|
|
334
|
-
image?: string | null;
|
|
335
|
-
email?: string | null;
|
|
336
|
-
};
|
|
337
|
-
}
|
|
338
|
-
interface Authentication {
|
|
339
|
-
signIn: () => void;
|
|
340
|
-
signOut: () => void;
|
|
341
|
-
}
|
|
342
|
-
declare const AuthenticationContext: React.Context<Authentication | null>;
|
|
343
|
-
declare const SessionContext: React.Context<Session | null>;
|
|
344
|
-
type AppTheme = Theme | {
|
|
345
|
-
light: Theme;
|
|
346
|
-
dark: Theme;
|
|
347
|
-
};
|
|
348
|
-
interface AppProviderProps {
|
|
349
|
-
/**
|
|
350
|
-
* The content of the app provider.
|
|
351
|
-
*/
|
|
352
|
-
children: React.ReactNode;
|
|
353
|
-
/**
|
|
354
|
-
* [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.
|
|
355
|
-
* @default createDefaultTheme()
|
|
356
|
-
*/
|
|
357
|
-
theme?: AppTheme;
|
|
358
|
-
/**
|
|
359
|
-
* Branding options for the app.
|
|
360
|
-
* @default null
|
|
361
|
-
*/
|
|
362
|
-
branding?: Branding | null;
|
|
363
|
-
/**
|
|
364
|
-
* Navigation definition for the app. [Find out more](https://mui.com/toolpad/core/react-app-provider/#navigation).
|
|
365
|
-
* @default []
|
|
366
|
-
*/
|
|
367
|
-
navigation?: Navigation;
|
|
368
|
-
/**
|
|
369
|
-
* Router implementation used inside Toolpad components.
|
|
370
|
-
* @default null
|
|
371
|
-
*/
|
|
372
|
-
router?: Router;
|
|
373
|
-
/**
|
|
374
|
-
* Locale text for components
|
|
375
|
-
*/
|
|
376
|
-
localeText?: Partial<LocaleText>;
|
|
377
|
-
/**
|
|
378
|
-
* Session info about the current user.
|
|
379
|
-
* @default null
|
|
380
|
-
*/
|
|
381
|
-
session?: Session | null;
|
|
382
|
-
/**
|
|
383
|
-
* Authentication methods.
|
|
384
|
-
* @default null
|
|
385
|
-
*/
|
|
386
|
-
authentication?: Authentication | null;
|
|
387
|
-
/**
|
|
388
|
-
* The window where the application is rendered.
|
|
389
|
-
* This is needed when rendering the app inside an iframe, for example.
|
|
390
|
-
* @default window
|
|
391
|
-
*/
|
|
392
|
-
window?: Window;
|
|
393
|
-
/**
|
|
394
|
-
* The nonce to be used for inline scripts.
|
|
395
|
-
*/
|
|
396
|
-
nonce?: string;
|
|
397
|
-
}
|
|
398
|
-
/**
|
|
399
|
-
*
|
|
400
|
-
* Demos:
|
|
401
|
-
*
|
|
402
|
-
* - [App Provider](https://mui.com/toolpad/core/react-app-provider/)
|
|
403
|
-
* - [Dashboard Layout](https://mui.com/toolpad/core/react-dashboard-layout/)
|
|
404
|
-
*
|
|
405
|
-
* API:
|
|
406
|
-
*
|
|
407
|
-
* - [AppProvider API](https://mui.com/toolpad/core/api/app-provider)
|
|
408
|
-
*/
|
|
409
|
-
declare function AppProvider(props: AppProviderProps): react_jsx_runtime.JSX.Element;
|
|
410
|
-
declare namespace AppProvider {
|
|
411
|
-
var propTypes: any;
|
|
412
|
-
}
|
|
413
|
-
|
|
414
220
|
interface AppTitleProps {
|
|
415
221
|
branding?: Branding;
|
|
416
222
|
}
|
|
@@ -1186,4 +992,4 @@ interface NotificationsProviderProps {
|
|
|
1186
992
|
*/
|
|
1187
993
|
declare function NotificationsProvider(props: NotificationsProviderProps): react_jsx_runtime.JSX.Element;
|
|
1188
994
|
|
|
1189
|
-
export { Account, AccountPopoverFooter, type AccountPopoverFooterProps, AccountPopoverHeader, type AccountPopoverHeaderProps, AccountPreview, type AccountPreviewProps, type AccountPreviewSlots, type AccountPreviewVariant, type AccountProps, type AccountSlots, type ActivePage, AlertDialog, type AlertDialogPayload, type AlertDialogProps, type AlertOptions,
|
|
995
|
+
export { Account, AccountPopoverFooter, type AccountPopoverFooterProps, AccountPopoverHeader, type AccountPopoverHeaderProps, AccountPreview, type AccountPreviewProps, type AccountPreviewSlots, type AccountPreviewVariant, type AccountProps, type AccountSlots, type ActivePage, AlertDialog, type AlertDialogPayload, type AlertDialogProps, type AlertOptions, Branding, type Breadcrumb, type CloseDialog, type CloseNotification, ConfirmDialog, type ConfirmDialogPayload, type ConfirmDialogProps, type ConfirmOptions, DashboardHeader, type DashboardHeaderProps, type DashboardHeaderSlotProps, type DashboardHeaderSlots, DashboardLayout, type DashboardLayoutProps, type DashboardLayoutSlotProps, type DashboardLayoutSlots, DashboardSidebarPageItem, type DashboardSidebarPageItemContextProps, type DashboardSidebarPageItemProps, type DefaultStorageStateoptions, type DialogComponent, type DialogHook, type DialogProps, type DialogProviderProps, DialogsProvider, Navigation, NavigationPageItem, NotificationsProvider, type NotificationsProviderProps, type NotificationsProviderSlotProps, type NotificationsProviderSlots, type OpenAlertDialog, type OpenConfirmDialog, type OpenDialog, type OpenDialogOptions, type OpenPromptDialog, PageContainer, type PageContainerProps, type PageContainerSlotProps, type PageContainerSlots, PageHeader, type PageHeaderProps, type PageHeaderSlotProps, type PageHeaderSlots, PageHeaderToolbar, type PageHeaderToolbarProps, PromptDialog, type PromptDialogPayload, type PromptDialogProps, type PromptOptions, type ShowNotification, type ShowNotificationOptions, type SidebarFooterProps, SignInButton, SignOutButton, type SignOutButtonProps, type StorageStateInitializer, type StorageStateOptions, ThemeSwitcher, ToolbarActions, type UseStorageState, type UseStorageStateHookResult, _default as en, useActivePage, useDialogs, useLocalStorageState, useNotifications, useStorageState, useStorageStateServer };
|
package/dist/core.mjs
CHANGED
|
@@ -4,35 +4,38 @@ import {
|
|
|
4
4
|
AccountPopoverHeader,
|
|
5
5
|
AccountPreview,
|
|
6
6
|
AlertDialog,
|
|
7
|
-
AppProvider,
|
|
8
|
-
AuthenticationContext,
|
|
9
7
|
ConfirmDialog,
|
|
10
8
|
DashboardHeader,
|
|
11
9
|
DashboardLayout,
|
|
12
10
|
DashboardSidebarPageItem,
|
|
13
|
-
DialogsProvider,
|
|
14
|
-
LocalizationContext,
|
|
15
|
-
LocalizationProvider,
|
|
16
|
-
NotificationsProvider,
|
|
17
11
|
PageContainer,
|
|
18
12
|
PageHeader,
|
|
19
13
|
PageHeaderToolbar,
|
|
20
14
|
PromptDialog,
|
|
21
|
-
SessionContext,
|
|
22
15
|
SignInButton,
|
|
23
16
|
SignOutButton,
|
|
24
17
|
ThemeSwitcher,
|
|
25
18
|
ToolbarActions,
|
|
26
|
-
en_default,
|
|
27
19
|
useActivePage,
|
|
28
20
|
useDialogs,
|
|
21
|
+
useNotifications
|
|
22
|
+
} from "./chunk-ZXM3V5SD.mjs";
|
|
23
|
+
import {
|
|
24
|
+
AppProvider,
|
|
25
|
+
AuthenticationContext,
|
|
26
|
+
DialogsProvider,
|
|
27
|
+
LocalizationContext,
|
|
28
|
+
LocalizationProvider,
|
|
29
|
+
NotificationsProvider,
|
|
30
|
+
SessionContext,
|
|
31
|
+
en_default,
|
|
29
32
|
useLocalStorageState,
|
|
30
33
|
useLocaleText,
|
|
31
|
-
useNotifications,
|
|
32
34
|
useStorageState,
|
|
33
35
|
useStorageStateServer
|
|
34
|
-
} from "./chunk-
|
|
35
|
-
import "./chunk-
|
|
36
|
+
} from "./chunk-LUTZBKSG.mjs";
|
|
37
|
+
import "./chunk-F6JD4MSY.mjs";
|
|
38
|
+
import "./chunk-3JWXE2JW.mjs";
|
|
36
39
|
export {
|
|
37
40
|
Account,
|
|
38
41
|
AccountPopoverFooter,
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export { Account, AccountPopoverFooter, AccountPopoverFooterProps, AccountPopoverHeader, AccountPopoverHeaderProps, AccountPreview, AccountPreviewProps, AccountPreviewSlots, AccountPreviewVariant, AccountProps, AccountSlots, ActivePage, AlertDialog, AlertDialogPayload, AlertDialogProps, AlertOptions,
|
|
1
|
+
export { Account, AccountPopoverFooter, AccountPopoverFooterProps, AccountPopoverHeader, AccountPopoverHeaderProps, AccountPreview, AccountPreviewProps, AccountPreviewSlots, AccountPreviewVariant, AccountProps, AccountSlots, ActivePage, AlertDialog, AlertDialogPayload, AlertDialogProps, AlertOptions, Breadcrumb, CloseDialog, CloseNotification, ConfirmDialog, ConfirmDialogPayload, ConfirmDialogProps, ConfirmOptions, DashboardHeader, DashboardHeaderProps, DashboardHeaderSlotProps, DashboardHeaderSlots, DashboardLayout, DashboardLayoutProps, DashboardLayoutSlotProps, DashboardLayoutSlots, DashboardSidebarPageItem, DashboardSidebarPageItemContextProps, DashboardSidebarPageItemProps, DefaultStorageStateoptions, DialogComponent, DialogHook, DialogProps, DialogProviderProps, DialogsProvider, NotificationsProvider, NotificationsProviderProps, NotificationsProviderSlotProps, NotificationsProviderSlots, OpenAlertDialog, OpenConfirmDialog, OpenDialog, OpenDialogOptions, OpenPromptDialog, PageContainer, PageContainerProps, PageContainerSlotProps, PageContainerSlots, PageHeader, PageHeaderProps, PageHeaderSlotProps, PageHeaderSlots, PageHeaderToolbar, PageHeaderToolbarProps, PromptDialog, PromptDialogPayload, PromptDialogProps, PromptOptions, ShowNotification, ShowNotificationOptions, SidebarFooterProps, SignInButton, SignOutButton, SignOutButtonProps, StorageStateInitializer, StorageStateOptions, ThemeSwitcher, ToolbarActions, UseStorageState, UseStorageStateHookResult, en, useActivePage, useDialogs, useLocalStorageState, useNotifications, useStorageState, useStorageStateServer } from './core.mjs';
|
|
2
|
+
export { A as AppProvider, a as AppProviderProps, b as AppTheme, c as Authentication, d as AuthenticationContext, B as Branding, L as LocaleText, e as LocalizationContext, f as LocalizationProvider, g as LocalizationProviderProps, N as Navigate, h as NavigateOptions, i as Navigation, j as NavigationDividerItem, k as NavigationItem, l as NavigationPageItem, m as NavigationSubheaderItem, R as Router, S as Session, n as SessionContext, u as useLocaleText } from './AppProvider-CIyOzZv_.mjs';
|
|
2
3
|
export { asArray, createGlobalState, createProvidedContext, equalProperties, filterKeys, filterValues, hasOwnProperty, interleave, mapKeys, mapProperties, mapValues, useAssertedContext, useBoolean, useNonNullableContext, usePageTitle, useTraceUpdates, warnOnce } from './utils.mjs';
|
|
3
4
|
import 'react/jsx-runtime';
|
|
4
5
|
import 'react';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export { Account, AccountPopoverFooter, AccountPopoverFooterProps, AccountPopoverHeader, AccountPopoverHeaderProps, AccountPreview, AccountPreviewProps, AccountPreviewSlots, AccountPreviewVariant, AccountProps, AccountSlots, ActivePage, AlertDialog, AlertDialogPayload, AlertDialogProps, AlertOptions,
|
|
1
|
+
export { Account, AccountPopoverFooter, AccountPopoverFooterProps, AccountPopoverHeader, AccountPopoverHeaderProps, AccountPreview, AccountPreviewProps, AccountPreviewSlots, AccountPreviewVariant, AccountProps, AccountSlots, ActivePage, AlertDialog, AlertDialogPayload, AlertDialogProps, AlertOptions, Breadcrumb, CloseDialog, CloseNotification, ConfirmDialog, ConfirmDialogPayload, ConfirmDialogProps, ConfirmOptions, DashboardHeader, DashboardHeaderProps, DashboardHeaderSlotProps, DashboardHeaderSlots, DashboardLayout, DashboardLayoutProps, DashboardLayoutSlotProps, DashboardLayoutSlots, DashboardSidebarPageItem, DashboardSidebarPageItemContextProps, DashboardSidebarPageItemProps, DefaultStorageStateoptions, DialogComponent, DialogHook, DialogProps, DialogProviderProps, DialogsProvider, NotificationsProvider, NotificationsProviderProps, NotificationsProviderSlotProps, NotificationsProviderSlots, OpenAlertDialog, OpenConfirmDialog, OpenDialog, OpenDialogOptions, OpenPromptDialog, PageContainer, PageContainerProps, PageContainerSlotProps, PageContainerSlots, PageHeader, PageHeaderProps, PageHeaderSlotProps, PageHeaderSlots, PageHeaderToolbar, PageHeaderToolbarProps, PromptDialog, PromptDialogPayload, PromptDialogProps, PromptOptions, ShowNotification, ShowNotificationOptions, SidebarFooterProps, SignInButton, SignOutButton, SignOutButtonProps, StorageStateInitializer, StorageStateOptions, ThemeSwitcher, ToolbarActions, UseStorageState, UseStorageStateHookResult, en, useActivePage, useDialogs, useLocalStorageState, useNotifications, useStorageState, useStorageStateServer } from './core.js';
|
|
2
|
+
export { A as AppProvider, a as AppProviderProps, b as AppTheme, c as Authentication, d as AuthenticationContext, B as Branding, L as LocaleText, e as LocalizationContext, f as LocalizationProvider, g as LocalizationProviderProps, N as Navigate, h as NavigateOptions, i as Navigation, j as NavigationDividerItem, k as NavigationItem, l as NavigationPageItem, m as NavigationSubheaderItem, R as Router, S as Session, n as SessionContext, u as useLocaleText } from './AppProvider-CIyOzZv_.js';
|
|
2
3
|
export { asArray, createGlobalState, createProvidedContext, equalProperties, filterKeys, filterValues, hasOwnProperty, interleave, mapKeys, mapProperties, mapValues, useAssertedContext, useBoolean, useNonNullableContext, usePageTitle, useTraceUpdates, warnOnce } from './utils.js';
|
|
3
4
|
import 'react/jsx-runtime';
|
|
4
5
|
import 'react';
|
package/dist/index.mjs
CHANGED
|
@@ -4,34 +4,36 @@ import {
|
|
|
4
4
|
AccountPopoverHeader,
|
|
5
5
|
AccountPreview,
|
|
6
6
|
AlertDialog,
|
|
7
|
-
AppProvider,
|
|
8
|
-
AuthenticationContext,
|
|
9
7
|
ConfirmDialog,
|
|
10
8
|
DashboardHeader,
|
|
11
9
|
DashboardLayout,
|
|
12
10
|
DashboardSidebarPageItem,
|
|
13
|
-
DialogsProvider,
|
|
14
|
-
LocalizationContext,
|
|
15
|
-
LocalizationProvider,
|
|
16
|
-
NotificationsProvider,
|
|
17
11
|
PageContainer,
|
|
18
12
|
PageHeader,
|
|
19
13
|
PageHeaderToolbar,
|
|
20
14
|
PromptDialog,
|
|
21
|
-
SessionContext,
|
|
22
15
|
SignInButton,
|
|
23
16
|
SignOutButton,
|
|
24
17
|
ThemeSwitcher,
|
|
25
18
|
ToolbarActions,
|
|
26
|
-
en_default,
|
|
27
19
|
useActivePage,
|
|
28
20
|
useDialogs,
|
|
21
|
+
useNotifications
|
|
22
|
+
} from "./chunk-ZXM3V5SD.mjs";
|
|
23
|
+
import {
|
|
24
|
+
AppProvider,
|
|
25
|
+
AuthenticationContext,
|
|
26
|
+
DialogsProvider,
|
|
27
|
+
LocalizationContext,
|
|
28
|
+
LocalizationProvider,
|
|
29
|
+
NotificationsProvider,
|
|
30
|
+
SessionContext,
|
|
31
|
+
en_default,
|
|
29
32
|
useLocalStorageState,
|
|
30
33
|
useLocaleText,
|
|
31
|
-
useNotifications,
|
|
32
34
|
useStorageState,
|
|
33
35
|
useStorageStateServer
|
|
34
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-LUTZBKSG.mjs";
|
|
35
37
|
import {
|
|
36
38
|
asArray,
|
|
37
39
|
equalProperties,
|
|
@@ -44,15 +46,17 @@ import {
|
|
|
44
46
|
useBoolean,
|
|
45
47
|
usePageTitle
|
|
46
48
|
} from "./chunk-PMIWCP25.mjs";
|
|
49
|
+
import {
|
|
50
|
+
warnOnce
|
|
51
|
+
} from "./chunk-F6JD4MSY.mjs";
|
|
47
52
|
import {
|
|
48
53
|
createGlobalState,
|
|
49
54
|
createProvidedContext,
|
|
50
55
|
interleave,
|
|
51
56
|
useAssertedContext,
|
|
52
57
|
useNonNullableContext,
|
|
53
|
-
useTraceUpdates
|
|
54
|
-
|
|
55
|
-
} from "./chunk-6JQJK2JX.mjs";
|
|
58
|
+
useTraceUpdates
|
|
59
|
+
} from "./chunk-3JWXE2JW.mjs";
|
|
56
60
|
export {
|
|
57
61
|
Account,
|
|
58
62
|
AccountPopoverFooter,
|