@iowas/toolpad 1.0.3 → 1.0.5

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/index.mjs CHANGED
@@ -1,106 +1,5 @@
1
- import {
2
- Account,
3
- AccountPopoverFooter,
4
- AccountPopoverHeader,
5
- AccountPreview,
6
- AlertDialog,
7
- AppProvider,
8
- AuthenticationContext,
9
- ConfirmDialog,
10
- DashboardHeader,
11
- DashboardLayout,
12
- DashboardSidebarPageItem,
13
- DialogsProvider,
14
- LocalizationContext,
15
- LocalizationProvider,
16
- NotificationsProvider,
17
- PageContainer,
18
- PageHeader,
19
- PageHeaderToolbar,
20
- PromptDialog,
21
- SessionContext,
22
- SignInButton,
23
- SignOutButton,
24
- ThemeSwitcher,
25
- ToolbarActions,
26
- en_default,
27
- useActivePage,
28
- useDialogs,
29
- useLocalStorageState,
30
- useLocaleText,
31
- useNotifications,
32
- useStorageState,
33
- useStorageStateServer
34
- } from "./chunk-IDMYUY7L.mjs";
35
- import {
36
- asArray,
37
- equalProperties,
38
- filterKeys,
39
- filterValues,
40
- hasOwnProperty,
41
- mapKeys,
42
- mapProperties,
43
- mapValues,
44
- useBoolean,
45
- usePageTitle
46
- } from "./chunk-PMIWCP25.mjs";
47
- import {
48
- createGlobalState,
49
- createProvidedContext,
50
- interleave,
51
- useAssertedContext,
52
- useNonNullableContext,
53
- useTraceUpdates,
54
- warnOnce
55
- } from "./chunk-6JQJK2JX.mjs";
56
- export {
57
- Account,
58
- AccountPopoverFooter,
59
- AccountPopoverHeader,
60
- AccountPreview,
61
- AlertDialog,
62
- AppProvider,
63
- AuthenticationContext,
64
- ConfirmDialog,
65
- DashboardHeader,
66
- DashboardLayout,
67
- DashboardSidebarPageItem,
68
- DialogsProvider,
69
- LocalizationContext,
70
- LocalizationProvider,
71
- NotificationsProvider,
72
- PageContainer,
73
- PageHeader,
74
- PageHeaderToolbar,
75
- PromptDialog,
76
- SessionContext,
77
- SignInButton,
78
- SignOutButton,
79
- ThemeSwitcher,
80
- ToolbarActions,
81
- asArray,
82
- createGlobalState,
83
- createProvidedContext,
84
- en_default as en,
85
- equalProperties,
86
- filterKeys,
87
- filterValues,
88
- hasOwnProperty,
89
- interleave,
90
- mapKeys,
91
- mapProperties,
92
- mapValues,
93
- useActivePage,
94
- useAssertedContext,
95
- useBoolean,
96
- useDialogs,
97
- useLocalStorageState,
98
- useLocaleText,
99
- useNonNullableContext,
100
- useNotifications,
101
- usePageTitle,
102
- useStorageState,
103
- useStorageStateServer,
104
- useTraceUpdates,
105
- warnOnce
106
- };
1
+ export { Account, AccountPopoverFooter, AccountPopoverHeader, AccountPreview, AlertDialog, ConfirmDialog, DashboardHeader, DashboardLayout, DashboardSidebarPageItem, PageContainer, PageHeader, PageHeaderToolbar, PromptDialog, SignInButton, SignOutButton, ThemeSwitcher, ToolbarActions, useActivePage, useDialogs, useNotifications } from './chunk-ZXM3V5SD.mjs';
2
+ export { AppProvider, AuthenticationContext, DialogsProvider, LocalizationContext, LocalizationProvider, NotificationsProvider, SessionContext, en_default as en, useLocalStorageState, useLocaleText, useStorageState, useStorageStateServer } from './chunk-LUTZBKSG.mjs';
3
+ export { asArray, equalProperties, filterKeys, filterValues, hasOwnProperty, mapKeys, mapProperties, mapValues, useBoolean, usePageTitle } from './chunk-PMIWCP25.mjs';
4
+ export { warnOnce } from './chunk-F6JD4MSY.mjs';
5
+ export { createGlobalState, createProvidedContext, interleave, useAssertedContext, useNonNullableContext, useTraceUpdates } from './chunk-3JWXE2JW.mjs';
package/dist/nextjs.d.mts CHANGED
@@ -1,161 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import * as React from 'react';
3
- import { Theme } from '@mui/material/styles';
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 * as React from 'react';
3
- import { Theme } from '@mui/material/styles';
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