@ahmadmubarak98/namozaj 1.4.4 → 1.4.5

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.
Files changed (2) hide show
  1. package/dist/namozaj.js +7 -0
  2. package/package.json +1 -1
package/dist/namozaj.js CHANGED
@@ -82230,6 +82230,12 @@ 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] = {
82235
+ ...De,
82236
+ id: De.id || generateFieldId()
82237
+ }, ye), {}))
82238
+ );
82233
82239
  }, []), /* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsxs(Fieldset, { id: e, legend: /* @__PURE__ */ jsx(FieldLabel, { field: t }), children: [
82234
82240
  f.fields.length === 0 && /* @__PURE__ */ jsxs(
82235
82241
  Box,
@@ -82287,6 +82293,7 @@ const ConfirmationDialog = ({
82287
82293
  enableRtl: d,
82288
82294
  defaultValues: l[Re],
82289
82295
  onChange: re.bind(null, Re),
82296
+ error: c == null ? void 0 : c[Re],
82290
82297
  validationMode: "onChange",
82291
82298
  defaultSubmitButtonProps: {
82292
82299
  hidden: !0
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ahmadmubarak98/namozaj",
3
3
  "private": false,
4
- "version": "1.4.4",
4
+ "version": "1.4.5",
5
5
  "type": "module",
6
6
  "main": "dist/namozaj.js",
7
7
  "types": "dist/main.d.ts",