@saas-ui/forms 2.3.10 → 2.3.11

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @saas-ui/forms
2
2
 
3
+ ## 2.3.11
4
+
5
+ ### Patch Changes
6
+
7
+ - 29e5c317: Fixed issue where submit label could not be overwritten using the fields prop
8
+
3
9
  ## 2.3.10
4
10
 
5
11
  ### Patch Changes
@@ -1090,12 +1096,12 @@
1090
1096
  Add this somewhere in the root of your project.
1091
1097
 
1092
1098
  ```ts
1093
- import { Form } from "@saas-ui/react";
1094
- import { yupResolver, yupFieldResolver } from "@saas-ui/forms/yup"; // yupResolver is exported from here as well for convenience.
1095
- import { AnyObjectSchema } from "yup";
1099
+ import { Form } from '@saas-ui/react'
1100
+ import { yupResolver, yupFieldResolver } from '@saas-ui/forms/yup' // yupResolver is exported from here as well for convenience.
1101
+ import { AnyObjectSchema } from 'yup'
1096
1102
 
1097
- Form.getResolver = (schema: AnyObjectSchema) => yupResolver(schema); // @hookform/resolvers
1098
- Form.getFieldResolver = (schema: AnyObjectSchema) => yupFieldResolver(schema); // AutoForm field resolver
1103
+ Form.getResolver = (schema: AnyObjectSchema) => yupResolver(schema) // @hookform/resolvers
1104
+ Form.getFieldResolver = (schema: AnyObjectSchema) => yupFieldResolver(schema) // AutoForm field resolver
1099
1105
  ```
1100
1106
 
1101
1107
  - 9391c44: Fixed peer dependency issues.
package/dist/index.js CHANGED
@@ -1097,9 +1097,9 @@ var SubmitButton = (0, import_react18.forwardRef)(
1097
1097
  type: "submit",
1098
1098
  isLoading: formState.isSubmitting || isLoading,
1099
1099
  isDisabled,
1100
+ children,
1100
1101
  ...rest,
1101
- ...field,
1102
- children
1102
+ ...field
1103
1103
  }
1104
1104
  );
1105
1105
  }