@timardex/cluemart-shared 1.5.571 → 1.5.572
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/hooks/index.cjs +1 -1
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.mjs +1 -1
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -6661,7 +6661,7 @@ var stallTypesSchema = yup.object({
|
|
|
6661
6661
|
"",
|
|
6662
6662
|
noLeadingZeros("Stall price", { allowDecimal: true })
|
|
6663
6663
|
),
|
|
6664
|
-
stallCapacity: yup.number().label("Stall Capacity").typeError("Stall capacity must be a number").min(
|
|
6664
|
+
stallCapacity: yup.number().label("Stall Capacity").typeError("Stall capacity must be a number").min(0, "Stall capacity cannot be negative").integer("Stall capacity must be a whole number").required("Stall capacity is required").test("no-leading-zeros", "", noLeadingZeros("Stall capacity"))
|
|
6665
6665
|
});
|
|
6666
6666
|
var dateTimeWithPriceSchema = dateTimeSchema.shape({
|
|
6667
6667
|
stallTypes: yup.array().of(stallTypesSchema).min(1, "At least one stall type is required").required("Stall types are required")
|