@ahmadmubarak98/namozaj 1.6.15 → 1.6.17

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 +6 -5
  2. package/package.json +1 -1
package/dist/namozaj.js CHANGED
@@ -85132,10 +85132,11 @@ const Form = React__default.forwardRef(
85132
85132
  p.current = new Set(e.fields.map((H) => H.name));
85133
85133
  }, [e.fields]);
85134
85134
  const u = (H) => {
85135
- var G;
85136
- ({ ...H }, (G = e.onSubmit) == null || G.call(e, H));
85135
+ var Y;
85136
+ let G = { ...H };
85137
+ delete G[DEFAULT_LOCALE_PICKER_FIELD_NAME], (Y = e.onSubmit) == null || Y.call(e, H), e.dirtyLock && c.reset(G);
85137
85138
  }, b = async () => (await c.trigger()).valueOf(), h = () => {
85138
- var H, G, Y;
85139
+ var H, G, Y, V;
85139
85140
  return /* @__PURE__ */ jsx(Fragment, { children: !((H = e.submitButtonProps) != null && H.hidden) && /* @__PURE__ */ jsx(
85140
85141
  Button$1,
85141
85142
  {
@@ -85144,8 +85145,8 @@ const Form = React__default.forwardRef(
85144
85145
  variant: "contained",
85145
85146
  color: "primary",
85146
85147
  type: "submit",
85147
- disabled: (G = e.submitButtonProps) != null && G.disabled || e.dirtyLock ? Object.keys(c.formState.dirtyFields).length === 0 : !1,
85148
- children: ((Y = e.submitButtonProps) == null ? void 0 : Y.label) || "Submit"
85148
+ disabled: typeof ((G = e.submitButtonProps) == null ? void 0 : G.disabled) == "boolean" ? (Y = e.submitButtonProps) == null ? void 0 : Y.disabled : e.dirtyLock ? Object.keys(c.formState.dirtyFields).length === 0 : !1,
85149
+ children: ((V = e.submitButtonProps) == null ? void 0 : V.label) || "Submit"
85149
85150
  }
85150
85151
  ) });
85151
85152
  }, g = () => /* @__PURE__ */ jsx(Fragment, {});
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ahmadmubarak98/namozaj",
3
3
  "private": false,
4
- "version": "1.6.15",
4
+ "version": "1.6.17",
5
5
  "type": "module",
6
6
  "main": "dist/namozaj.js",
7
7
  "types": "dist/main.d.ts",