@fluidattacks/design 3.10.4 → 3.10.5-pr
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,3 +1,2 @@
|
|
|
1
|
-
import { FieldValues } from 'react-hook-form';
|
|
2
1
|
import { IInnerFormProps } from '../types';
|
|
3
|
-
export declare const InnerForm:
|
|
2
|
+
export declare const InnerForm: ({ children }: IInnerFormProps) => JSX.Element;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { FieldValues, SubmitHandler, UseFormProps, UseFormReturn } from 'react-hook-form';
|
|
2
|
-
type TFormMethods
|
|
2
|
+
type TFormMethods = UseFormReturn<FieldValues>;
|
|
3
3
|
/**
|
|
4
4
|
* Inner form props to allow passing methods to children.
|
|
5
5
|
*/
|
|
6
|
-
interface IInnerFormProps
|
|
7
|
-
children: (children: Readonly<TFormMethods
|
|
6
|
+
interface IInnerFormProps {
|
|
7
|
+
children: (children: Readonly<TFormMethods>) => React.ReactElement;
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Form component props.
|
|
@@ -7588,9 +7588,7 @@ ${h[8]}...` : (h.length < 8 && c(!1), t);
|
|
|
7588
7588
|
t && /* @__PURE__ */ n(xt, { buttonProps: t, variant: "primary" })
|
|
7589
7589
|
] }) : void 0
|
|
7590
7590
|
] });
|
|
7591
|
-
}, Xl = ({
|
|
7592
|
-
children: e
|
|
7593
|
-
}) => {
|
|
7591
|
+
}, Xl = ({ children: e }) => {
|
|
7594
7592
|
const t = ei();
|
|
7595
7593
|
return e({ ...t });
|
|
7596
7594
|
}, Gr = b.form`
|
package/package.json
CHANGED