identity-admin-ui 1.6.1 → 1.6.3

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.
@@ -1,6 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { RequestState } from '../hooks/RequetState';
3
3
  import IResource from './Resource';
4
+ import { SxProps } from '@mui/material';
4
5
  export type ResourceResponse = {
5
6
  [key: string]: IResource | {
6
7
  [key: string]: string[];
@@ -16,6 +17,7 @@ declare const ResourcesContext: import("react").Context<{
16
17
  export interface ResourcesContextConfig {
17
18
  resourcesUrl: string;
18
19
  laodingLogo?: string;
20
+ logoSxProps?: SxProps;
19
21
  children: any;
20
22
  }
21
23
  declare const ResourcesContextProvider: (props: ResourcesContextConfig) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- export * from "./pages";
1
+ export * from './pages';
2
2
  export * from './hooks';
3
3
  export * from './context';
4
4
  export * from './ApiClient';
@@ -6,3 +6,4 @@ export * from './layout/dashboard';
6
6
  export * from './theme';
7
7
  export { default as ThemeProvider } from './theme';
8
8
  export * from './routes';
9
+ export { NextPreviousButtons } from './components/Buttons/NextPreviousButtons';
@@ -3,6 +3,7 @@ type Props = {
3
3
  isDashboard?: boolean;
4
4
  sx?: SxProps;
5
5
  loadingLogo?: string;
6
+ logoSxProps?: SxProps;
6
7
  };
7
- export default function LoadingScreen({ isDashboard, loadingLogo, ...other }: Props): import("react/jsx-runtime").JSX.Element;
8
+ export default function LoadingScreen({ isDashboard, loadingLogo, logoSxProps, ...other }: Props): import("react/jsx-runtime").JSX.Element;
8
9
  export {};
package/lib/index.d.ts CHANGED
@@ -5,10 +5,10 @@ import { ReactElement, ReactNode } from 'react';
5
5
  import { GridSortDirection, GridRowSelectionModel } from '@mui/x-data-grid';
6
6
  import * as axios from 'axios';
7
7
  import { AxiosRequestConfig } from 'axios';
8
+ import * as _mui_material from '@mui/material';
9
+ import { SxProps, AlertColor as AlertColor$1 } from '@mui/material';
8
10
  import * as notistack from 'notistack';
9
11
  import { SnackbarOrigin } from 'notistack';
10
- import * as _mui_material from '@mui/material';
11
- import { AlertColor as AlertColor$1 } from '@mui/material';
12
12
 
13
13
  type TLink = {
14
14
  href?: string;
@@ -103,6 +103,12 @@ interface INextpreviousExtras {
103
103
  onClickNext?: (currentRecordId?: string) => void;
104
104
  onClickPrevious?: (currentRecordId?: string) => void;
105
105
  }
106
+ interface INextPrevious extends INextpreviousExtras {
107
+ recordId: string;
108
+ modelPath: string;
109
+ navigateTo: (recordId: string) => void;
110
+ }
111
+ declare function NextPreviousButtons({ modelPath, onNoNextText, onNoPreviousText, recordId, nextButtonTitle, previousButtonTitle, navigateTo, onClickNext, onClickPrevious, }: INextPrevious): react_jsx_runtime.JSX.Element;
106
112
 
107
113
  interface ShowRecordProps extends INextpreviousExtras {
108
114
  key?: string;
@@ -377,6 +383,7 @@ declare const ResourcesContext: react.Context<{
377
383
  interface ResourcesContextConfig {
378
384
  resourcesUrl: string;
379
385
  laodingLogo?: string;
386
+ logoSxProps?: SxProps;
380
387
  children: any;
381
388
  }
382
389
  declare const ResourcesContextProvider: (props: ResourcesContextConfig) => react_jsx_runtime.JSX.Element;
@@ -514,4 +521,4 @@ declare function DashBoardRouter(props: any): {
514
521
  }[];
515
522
  };
516
523
 
517
- export { ApiContext, ApiContextConfig, ApiContextProps, ApiContextProvider, AppConfigurationsContext, AppConfigurationsContextProvider, CredentialKeys, CredentialsContext, CredentialsContextProvider, DashboardLayout, IAction, IActionMin, IExtarAction, IExtras, IFilter, IMainProperty, IParent, IProperty, ISchemaObject, ISnackMessageProps, IState, IdentityModelConfigurationPage as IdenityModelConfiguration, IdentityClient, CreateEdit as IdentityEdit, ListRecords as IdentityList, IdentityPage, IdentityPageProps, DashBoardRouter as IdentityRouter, ShowRecord as IdentityShow, PageVariant, PathsContext, PathsContextConfig, PathsContextProvider, RequestConfig, RequestState, ResourcePaths, ResourceResponse, ResourcesContext, ResourcesContextConfig, ResourcesContextProvider, SettingsValueProps, Severity, SnackAlertContext, SnackAlertProvider, State, ThemeProps, ThemeProvider, orderTypes, path, useApi, useAppConfigurations, useCredentials, useNavData, usePaths, useResources, useSnackAlert };
524
+ export { ApiContext, ApiContextConfig, ApiContextProps, ApiContextProvider, AppConfigurationsContext, AppConfigurationsContextProvider, CredentialKeys, CredentialsContext, CredentialsContextProvider, DashboardLayout, IAction, IActionMin, IExtarAction, IExtras, IFilter, IMainProperty, IParent, IProperty, ISchemaObject, ISnackMessageProps, IState, IdentityModelConfigurationPage as IdenityModelConfiguration, IdentityClient, CreateEdit as IdentityEdit, ListRecords as IdentityList, IdentityPage, IdentityPageProps, DashBoardRouter as IdentityRouter, ShowRecord as IdentityShow, NextPreviousButtons, PageVariant, PathsContext, PathsContextConfig, PathsContextProvider, RequestConfig, RequestState, ResourcePaths, ResourceResponse, ResourcesContext, ResourcesContextConfig, ResourcesContextProvider, SettingsValueProps, Severity, SnackAlertContext, SnackAlertProvider, State, ThemeProps, ThemeProvider, orderTypes, path, useApi, useAppConfigurations, useCredentials, useNavData, usePaths, useResources, useSnackAlert };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "identity-admin-ui",
3
- "version": "1.6.1",
3
+ "version": "1.6.3",
4
4
  "description": "Identity solutions UI package using for identity-admin dashboard",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/esm/index.js",