@ahmadmubarak98/namozaj 1.12.0 → 1.12.2

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/main.d.ts CHANGED
@@ -353,6 +353,7 @@ export declare interface NamozajLocalizationOptions {
353
353
  export declare type NamozajPhoneFieldCountry = CountryIso2;
354
354
 
355
355
  export declare interface NamozajProps {
356
+ formId?: string;
356
357
  updateByDefaultValues?: boolean;
357
358
  formIndex?: number;
358
359
  disabled?: boolean;
package/dist/namozaj.js CHANGED
@@ -86373,7 +86373,7 @@ const ConfirmationDialog = ({
86373
86373
  },
86374
86374
  children: [
86375
86375
  shouldRenderLabel(e.type) && /* @__PURE__ */ jsx(FieldLabel, { field: e, htmlFor: c.current }),
86376
- /* @__PURE__ */ jsx(Box$1, { mt: 0.25, children: y({
86376
+ /* @__PURE__ */ jsx(Box$1, { id: e.name ? `namozaj_field_${e.name}` : void 0, mt: 0.25, children: y({
86377
86377
  id: c.current,
86378
86378
  name: (H = g == null ? void 0 : g.field) == null ? void 0 : H.name,
86379
86379
  config: {
@@ -88014,7 +88014,7 @@ const Form = React__default.forwardRef(
88014
88014
  color: ((Xe = e.submitButtonProps) == null ? void 0 : Xe.color) || "primary",
88015
88015
  type: ((_e = e.submitButtonProps) == null ? void 0 : _e.buttonType) || "submit",
88016
88016
  size: ((We = e.submitButtonProps) == null ? void 0 : We.size) || "medium",
88017
- disabled: typeof ((De = e.submitButtonProps) == null ? void 0 : De.disabled) == "boolean" ? ((Fe = e.submitButtonProps) == null ? void 0 : Fe.disabled) ?? D : (Ke = e.stepper) != null && Ke.advanceOnValidation ? c : D,
88017
+ disabled: e.disabled ? e.disabled : typeof ((De = e.submitButtonProps) == null ? void 0 : De.disabled) == "boolean" ? ((Fe = e.submitButtonProps) == null ? void 0 : Fe.disabled) ?? D : (Ke = e.stepper) != null && Ke.advanceOnValidation ? c : D,
88018
88018
  sx: {
88019
88019
  ...((Ve = e.submitButtonProps) == null ? void 0 : Ve.sx) || {}
88020
88020
  },
@@ -88350,7 +88350,7 @@ const Form = React__default.forwardRef(
88350
88350
  }, [
88351
88351
  JSON.stringify((g = e.localization) == null ? void 0 : g.defaultSelectedLocales),
88352
88352
  e.defaultValues
88353
- ]), e.defaultValues && !a ? null : /* @__PURE__ */ jsx(
88353
+ ]), e.defaultValues && !a ? null : /* @__PURE__ */ jsx("div", { id: e.formId ? `namozaj_form_${e.formId}` : void 0, children: /* @__PURE__ */ jsx(
88354
88354
  NamozajLocalProvider,
88355
88355
  {
88356
88356
  value: {
@@ -88371,7 +88371,7 @@ const Form = React__default.forwardRef(
88371
88371
  }
88372
88372
  )
88373
88373
  }
88374
- );
88374
+ ) });
88375
88375
  }
88376
88376
  );
88377
88377
  export {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ahmadmubarak98/namozaj",
3
3
  "private": false,
4
- "version": "1.12.0",
4
+ "version": "1.12.2",
5
5
  "type": "module",
6
6
  "main": "dist/namozaj.js",
7
7
  "types": "dist/main.d.ts",