@adgytec/adgytec-web-ui-components 0.0.11 → 0.0.12

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,8 +1,8 @@
1
1
  import { FormProps as AriaFormProps } from 'react-aria-components';
2
2
  import * as z from "zod";
3
3
  export type FormReset = () => void;
4
- export type submitHandler<T> = (values: T, reset: FormReset) => void | Promise<void> | Promise<Partial<Record<keyof T, string | string[]>>>;
4
+ export type SubmitHandler<T> = (values: T, reset: FormReset) => void | Promise<void | Partial<Record<keyof T, string | string[]>>>;
5
5
  export interface FormProps<T extends z.ZodObject<any>> extends Omit<AriaFormProps, "onSubmit" | "validationErrors"> {
6
6
  schema: T;
7
- onSubmit: submitHandler<z.infer<T>>;
7
+ onSubmit: SubmitHandler<z.infer<T>>;
8
8
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@adgytec/adgytec-web-ui-components",
3
3
  "private": false,
4
- "version": "0.0.11",
4
+ "version": "0.0.12",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"