@smart-factor/gem-ui-components 0.0.108 → 0.0.110
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/SignEditor.js +10167 -10933
- package/dist/components/LoginModal/LoginModal.d.ts +2 -2
- package/dist/hocs/withQueryClientProvider.d.ts +17 -0
- package/dist/main.d.ts +2 -0
- package/dist/main.js +270 -266
- package/dist/providers/GemUILocalizationProvider.d.ts +4 -0
- package/dist/providers/GemUIToaster.d.ts +1 -0
- package/dist/{theme-DlrhOwF1.js → theme-9d_uGPss.js} +18867 -18106
- package/package.json +1 -1
- package/dist/providers/ToasterProvider.d.ts +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
export type LoginModalProps = {
|
|
3
3
|
open: boolean;
|
|
4
|
-
onClose: () => void;
|
|
5
4
|
/**
|
|
6
5
|
* Called after successful login.
|
|
7
6
|
* Receives the login and token extracted from the API response.
|
|
8
7
|
*/
|
|
9
8
|
onSubmit: (login: string, token: string) => Promise<void> | void;
|
|
9
|
+
onClose?: () => void;
|
|
10
10
|
};
|
|
11
|
-
export declare const LoginModal: React.
|
|
11
|
+
export declare const LoginModal: React.ComponentType<LoginModalProps>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ComponentType } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Higher-order component that wraps a component with QueryClientProvider.
|
|
4
|
+
*
|
|
5
|
+
* This ensures the wrapped component always has access to a QueryClient,
|
|
6
|
+
* making it safe to use components that depend on React Query hooks
|
|
7
|
+
* regardless of whether a QueryClientProvider exists in the parent tree.
|
|
8
|
+
*
|
|
9
|
+
* @param Component - The component to wrap
|
|
10
|
+
* @returns A new component wrapped with QueryClientProvider
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```tsx
|
|
14
|
+
* const MyComponent = withQueryClientProvider(MyComponentBase);
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
export declare function withQueryClientProvider<P extends object>(Component: ComponentType<P>): ComponentType<P>;
|
package/dist/main.d.ts
CHANGED
|
@@ -30,5 +30,7 @@ export * from './helpers';
|
|
|
30
30
|
export { theme } from './theme/theme';
|
|
31
31
|
export { Accordion, AccordionDetails, styled, type Theme, ThemeProvider, Typography, useTheme, } from '@mui/material';
|
|
32
32
|
export { default as GemUIComponentsProvider } from './providers/GemUIComponentsProvider';
|
|
33
|
+
export { default as GemUILocalizationProvider } from './providers/GemUILocalizationProvider';
|
|
34
|
+
export { GemUIToaster } from './providers/GemUIToaster';
|
|
33
35
|
export { DATA_GRID_LOCALE } from './consts/data-grid';
|
|
34
36
|
export * from '@mui/x-data-grid-pro';
|