@strictly/react-form 0.0.32 → 0.0.33

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,4 +1,5 @@
1
- import { type ComponentType } from 'react';
1
+ import { Observer } from 'mobx-react';
2
+ import { type ComponentProps, type ComponentType } from 'react';
2
3
  import { type AllFieldsOfFields } from 'types/AllFieldsOfFields';
3
4
  import { type ErrorOfField } from 'types/ErrorOfField';
4
5
  import { type Fields } from 'types/Field';
@@ -15,6 +16,6 @@ export type FieldViewProps<F extends Fields, K extends keyof F> = {
15
16
  onBlur: () => void;
16
17
  onValueChange: (v: ValueTypeOfField<F[K]>) => void;
17
18
  onSubmit: () => void;
18
- }) => JSX.Element;
19
+ }) => ReturnType<NonNullable<ComponentProps<typeof Observer>['render']>>;
19
20
  };
20
21
  export declare function createFieldView<F extends Fields, K extends keyof AllFieldsOfFields<F>>(this: MantineForm<F>, valuePath: K): ComponentType<FieldViewProps<F, K>>;