identity-admin-ui 1.10.16 → 1.10.17
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/lib/cjs/index.js +4 -4
- package/lib/cjs/types/components/hook-form/PaginatedLazySelect.d.ts +4 -1
- package/lib/cjs/types/components/hook-form/RHFGooglePlaces.d.ts +1 -1
- package/lib/cjs/types/sections/dashboard/CreateNewDialog.d.ts +10 -0
- package/lib/esm/index.js +4 -4
- package/lib/esm/types/components/hook-form/PaginatedLazySelect.d.ts +4 -1
- package/lib/esm/types/components/hook-form/RHFGooglePlaces.d.ts +1 -1
- package/lib/esm/types/sections/dashboard/CreateNewDialog.d.ts +10 -0
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Control, FieldValues } from 'react-hook-form';
|
|
2
2
|
import { TextFieldProps } from '@mui/material';
|
|
3
|
+
import IResource from '../../context/Resource';
|
|
3
4
|
type IProps = {
|
|
4
5
|
name: string;
|
|
5
6
|
options?: Option[];
|
|
@@ -10,6 +11,8 @@ type IProps = {
|
|
|
10
11
|
hasNext: boolean;
|
|
11
12
|
control?: Control<FieldValues, any>;
|
|
12
13
|
loadMoreText?: string;
|
|
14
|
+
resource?: IResource;
|
|
15
|
+
resourcePath?: string;
|
|
13
16
|
};
|
|
14
17
|
type Props = IProps & TextFieldProps;
|
|
15
18
|
export interface Option {
|
|
@@ -18,5 +21,5 @@ export interface Option {
|
|
|
18
21
|
name?: string;
|
|
19
22
|
image?: string;
|
|
20
23
|
}
|
|
21
|
-
export default function PaginatedRHFLazySelect({ name, options, loading, multiple, onOptionChange, onOpenChanged, hasNext, loadMoreText, ...other }: Props): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export default function PaginatedRHFLazySelect({ name, options, loading, multiple, onOptionChange, onOpenChanged, hasNext, loadMoreText, resource, resourcePath, ...other }: Props): import("react/jsx-runtime").JSX.Element;
|
|
22
25
|
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import IResource from '../../context/Resource';
|
|
2
|
+
export interface ICreateNewDialog {
|
|
3
|
+
open: boolean;
|
|
4
|
+
onDismiss: () => void;
|
|
5
|
+
data: {
|
|
6
|
+
resource: IResource;
|
|
7
|
+
resourcePath: string;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export declare function CreateNewDialog({ open, data, onDismiss }: ICreateNewDialog): import("react/jsx-runtime").JSX.Element;
|