@axos-web-dev/shared-components 1.0.99-dev.3 → 1.0.99-dev.4

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.
@@ -92,7 +92,7 @@ const ContactUs = ({
92
92
  const {
93
93
  handleSubmit,
94
94
  register,
95
- formState: { errors }
95
+ formState: { errors, isValid, isSubmitting }
96
96
  } = methods;
97
97
  const submitForm = async (data) => {
98
98
  await onSubmit(data);
@@ -192,6 +192,7 @@ const ContactUs = ({
192
192
  color: getVariant(callToAction?.variant),
193
193
  as: "button",
194
194
  type: "submit",
195
+ disabled: !isValid || isSubmitting,
195
196
  children: callToAction?.displayText
196
197
  }
197
198
  ) })
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@axos-web-dev/shared-components",
3
3
  "description": "Axos shared components library for web.",
4
- "version": "1.0.99-dev.3",
4
+ "version": "1.0.99-dev.4",
5
5
  "type": "module",
6
6
  "module": "dist/main.js",
7
7
  "types": "dist/main.d.ts",