@ahmadmubarak98/namozaj 1.4.4 → 1.4.6
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/namozaj.js +4 -0
- package/package.json +1 -1
package/dist/namozaj.js
CHANGED
|
@@ -82230,6 +82230,9 @@ const ConfirmationDialog = ({
|
|
|
82230
82230
|
y(!1), b(null);
|
|
82231
82231
|
};
|
|
82232
82232
|
return useEffect(() => {
|
|
82233
|
+
l && Array.isArray(l) && l.length > 0 ? f.replace(l) : L && l.length < L && f.replace(
|
|
82234
|
+
Array.from({ length: L }, (Z, Re) => u.fields.reduce((ye, De) => (ye[De.name] = p.watch()[`${a}[${Re}].${De.name}`] || getDefaultValue(De), ye), {}))
|
|
82235
|
+
);
|
|
82233
82236
|
}, []), /* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsxs(Fieldset, { id: e, legend: /* @__PURE__ */ jsx(FieldLabel, { field: t }), children: [
|
|
82234
82237
|
f.fields.length === 0 && /* @__PURE__ */ jsxs(
|
|
82235
82238
|
Box,
|
|
@@ -82287,6 +82290,7 @@ const ConfirmationDialog = ({
|
|
|
82287
82290
|
enableRtl: d,
|
|
82288
82291
|
defaultValues: l[Re],
|
|
82289
82292
|
onChange: re.bind(null, Re),
|
|
82293
|
+
error: c == null ? void 0 : c[Re],
|
|
82290
82294
|
validationMode: "onChange",
|
|
82291
82295
|
defaultSubmitButtonProps: {
|
|
82292
82296
|
hidden: !0
|