@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/hooks/index.cjs
CHANGED
|
@@ -626,7 +626,14 @@ var eventInfoSchema = yup2.object().shape({
|
|
|
626
626
|
label: yup2.string().required("Label is required"),
|
|
627
627
|
value: yup2.boolean().required("Value is required")
|
|
628
628
|
})
|
|
629
|
-
).min(1, "At least one refund policy item is required").
|
|
629
|
+
).min(1, "At least one refund policy item is required").test(
|
|
630
|
+
"at-least-one-true",
|
|
631
|
+
"At least one refund policy option must be selected",
|
|
632
|
+
(value) => {
|
|
633
|
+
if (!value) return false;
|
|
634
|
+
return value.some((item) => item.value === true);
|
|
635
|
+
}
|
|
636
|
+
).required("Refund policy is required")
|
|
630
637
|
});
|
|
631
638
|
|
|
632
639
|
// src/yupSchema/vendor.ts
|