@timardex/cluemart-shared 1.5.518 → 1.5.519

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.
package/dist/index.mjs CHANGED
@@ -8054,7 +8054,7 @@ var schoolSchema = yup11.object().shape({
8054
8054
  name: yup11.string().trim().required("Name is required"),
8055
8055
  region: yup11.string().trim().required("Region is required"),
8056
8056
  socialMedia: yup11.array().of(socialMediaSchema).nullable().default(null),
8057
- studentCount: yup11.number().label("Student Count").min(0, "Student count cannot be negative").required("Student count is required").test("no-leading-zeros", "", noLeadingZeros("Student Count"))
8057
+ studentCount: yup11.number().label("Student Count").nullable().transform((value, originalValue) => originalValue === "" ? null : value).typeError("Student count must be a number").min(350, "Student count must be at least 350").required("Student count is required").test("no-leading-zeros", "", noLeadingZeros("Student Count"))
8058
8058
  });
8059
8059
 
8060
8060
  // src/hooks/useSchoolForm.ts