@timardex/cluemart-shared 1.4.40 → 1.4.41
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/{chunk-V54HUJIO.mjs → chunk-JRDILNPH.mjs} +2 -2
- package/dist/{chunk-Z4W6CSYI.mjs → chunk-XUYZ2LYW.mjs} +1 -1
- package/dist/chunk-XUYZ2LYW.mjs.map +1 -0
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.mjs +2 -2
- package/dist/hooks/index.cjs +8 -1
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.mjs +10 -3
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +8 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +8 -1
- package/dist/index.mjs.map +1 -1
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-Z4W6CSYI.mjs.map +0 -1
- /package/dist/{chunk-V54HUJIO.mjs.map → chunk-JRDILNPH.mjs.map} +0 -0
package/dist/index.cjs
CHANGED
|
@@ -6495,7 +6495,14 @@ var eventInfoSchema = yup2.object().shape({
|
|
|
6495
6495
|
label: yup2.string().required("Label is required"),
|
|
6496
6496
|
value: yup2.boolean().required("Value is required")
|
|
6497
6497
|
})
|
|
6498
|
-
).min(1, "At least one refund policy item is required").
|
|
6498
|
+
).min(1, "At least one refund policy item is required").test(
|
|
6499
|
+
"at-least-one-true",
|
|
6500
|
+
"At least one refund policy option must be selected",
|
|
6501
|
+
(value) => {
|
|
6502
|
+
if (!value) return false;
|
|
6503
|
+
return value.some((item) => item.value === true);
|
|
6504
|
+
}
|
|
6505
|
+
).required("Refund policy is required")
|
|
6499
6506
|
});
|
|
6500
6507
|
|
|
6501
6508
|
// src/yupSchema/vendor.ts
|