@fluidattacks/design 3.10.4-pr → 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: <T extends FieldValues>({ children, }: IInnerFormProps<T>) => JSX.Element;
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<T extends FieldValues> = UseFormReturn<T>;
2
+ type TFormMethods = UseFormReturn<FieldValues>;
3
3
  /**
4
4
  * Inner form props to allow passing methods to children.
5
5
  */
6
- interface IInnerFormProps<T extends FieldValues> {
7
- children: (children: Readonly<TFormMethods<T>>) => React.ReactElement;
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
@@ -112,5 +112,5 @@
112
112
  "test-storybook": "test-storybook"
113
113
  },
114
114
  "typings": "./dist/index.d.ts",
115
- "version": "3.10.4-pr"
115
+ "version": "3.10.5-pr"
116
116
  }