react-crud-mui 0.2.38 → 0.2.39

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,11 +1,9 @@
1
1
  import { default as React, PropsWithChildren } from 'react';
2
- interface FieldWithProviderProps {
2
+ export interface FieldWithProviderProps {
3
3
  prefix?: string;
4
4
  suffix?: string;
5
+ getName?: (name: string) => string;
5
6
  }
6
- export declare const FieldWithContext: React.Context<{
7
- prefix?: string;
8
- suffix?: string;
9
- }>;
7
+ export declare const FieldWithContext: React.Context<FieldWithProviderProps>;
10
8
  declare function FieldWithProvider({ children, prefix, suffix, }: PropsWithChildren<FieldWithProviderProps>): import("react/jsx-runtime").JSX.Element;
11
9
  export default FieldWithProvider;
@@ -1,5 +1,3 @@
1
- declare function useFieldWithContext(): {
2
- prefix?: string;
3
- suffix?: string;
4
- };
1
+ import { FieldWithProviderProps } from '../components/FieldWithProvider';
2
+ declare function useFieldWithContext(): Required<FieldWithProviderProps>;
5
3
  export default useFieldWithContext;