@overmap-ai/core 1.0.38-component-fields.24 → 1.0.38-component-fields.26

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.
@@ -10345,11 +10345,11 @@ var __publicField = (obj, key, value) => {
10345
10345
  // if the title isn't provided, hide it by default
10346
10346
  hideTitle = !schema.title,
10347
10347
  hideDescription,
10348
- className
10348
+ className,
10349
+ buttonProps
10349
10350
  } = props;
10350
10351
  const { readonly } = schema.meta;
10351
10352
  const formId2 = React.useMemo(() => crypto.randomUUID(), []);
10352
- console.log(initialFormValues(schema.fields, values));
10353
10353
  const formik$1 = formik.useFormik({
10354
10354
  initialValues: initialFormValues(schema.fields, values),
10355
10355
  onSubmit,
@@ -10381,8 +10381,8 @@ var __publicField = (obj, key, value) => {
10381
10381
  ] }) }),
10382
10382
  inputs,
10383
10383
  !readonly && /* @__PURE__ */ jsxRuntime.jsxs(blocks.Flex, { className: styles$6.floatingButtonContainer, align: "center", justify: "end", gap: "2", children: [
10384
- cancelText && /* @__PURE__ */ jsxRuntime.jsx(blocks.Button, { type: "button", variant: "solid", severity: "info", onClick: onCancel, children: cancelText }),
10385
- /* @__PURE__ */ jsxRuntime.jsx(blocks.Button, { type: "submit", disabled: !formik$1.isValid, children: submitText })
10384
+ cancelText && /* @__PURE__ */ jsxRuntime.jsx(blocks.Button, { severity: "info", ...buttonProps, type: "button", onClick: onCancel, children: cancelText }),
10385
+ /* @__PURE__ */ jsxRuntime.jsx(blocks.Button, { ...buttonProps, type: "submit", disabled: !formik$1.isValid, children: submitText })
10386
10386
  ] })
10387
10387
  ] }) }) });
10388
10388
  })