@apia/api 3.0.8 → 3.0.10

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/index.js CHANGED
@@ -3184,28 +3184,36 @@ const ApiaApiHandlerNonMemoized = () => {
3184
3184
  },
3185
3185
  [currentForm2?.form.onLoad, getHandler]
3186
3186
  );
3187
- return /* @__PURE__ */ jsx(ApiaApiContext$1, { id: apiaApiForm, children: /* @__PURE__ */ jsx(Modal, { ...modalProps, ref: modalRef, children: currentForm2 && /* @__PURE__ */ jsx(Box, { ...getVariant("layout.common.modals.apiaApi"), children: /* @__PURE__ */ jsxs(
3188
- Form,
3187
+ return /* @__PURE__ */ jsx(ApiaApiContext$1, { id: apiaApiForm, children: /* @__PURE__ */ jsx(
3188
+ Modal,
3189
3189
  {
3190
- name: apiaApiForm,
3191
- unregisterOnUnmount: true,
3192
- avoidFieldsOverride: true,
3193
- className: "handler__form",
3194
- children: [
3195
- /* @__PURE__ */ jsx(ApiaApiFieldsContainer, { definition: currentForm2, ...handler }),
3196
- state.isMultipart && state.progress > 0 && /* @__PURE__ */ jsx(Box, { className: "progressBox", children: /* @__PURE__ */ jsx(
3197
- ProgressBar,
3198
- {
3199
- id: "ApiaApiHandler progress",
3200
- progress: state.progress,
3201
- loading: true
3202
- }
3203
- ) }),
3204
- /* @__PURE__ */ jsx(ApiaApiButtonsContainer, { definition: currentForm2, ...handler }),
3205
- /* @__PURE__ */ jsx(Box, { ref: formRef, sx: { display: "none" } })
3206
- ]
3190
+ ...modalProps,
3191
+ ref: modalRef,
3192
+ variant: "layout.common.modals.apiaApi",
3193
+ children: currentForm2 && /* @__PURE__ */ jsxs(
3194
+ Form,
3195
+ {
3196
+ name: apiaApiForm,
3197
+ unregisterOnUnmount: true,
3198
+ avoidFieldsOverride: true,
3199
+ className: "handler__form",
3200
+ children: [
3201
+ /* @__PURE__ */ jsx(ApiaApiFieldsContainer, { definition: currentForm2, ...handler }),
3202
+ state.isMultipart && state.progress > 0 && /* @__PURE__ */ jsx(Box, { className: "progressBox", children: /* @__PURE__ */ jsx(
3203
+ ProgressBar,
3204
+ {
3205
+ id: "ApiaApiHandler progress",
3206
+ progress: state.progress,
3207
+ loading: true
3208
+ }
3209
+ ) }),
3210
+ /* @__PURE__ */ jsx(ApiaApiButtonsContainer, { definition: currentForm2, ...handler }),
3211
+ /* @__PURE__ */ jsx(Box, { ref: formRef, sx: { display: "none" } })
3212
+ ]
3213
+ }
3214
+ )
3207
3215
  }
3208
- ) }) }) });
3216
+ ) });
3209
3217
  };
3210
3218
  const ApiaApiHandler = React.memo(ApiaApiHandlerNonMemoized);
3211
3219