@dxos/react-ui-form 0.7.5-labs.071a3e2 → 0.7.5-labs.8a82073

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.
@@ -413,12 +413,13 @@ var NumberInput = ({ type, label, inputOnly, disabled, placeholder, getStatus, g
413
413
  };
414
414
  var BooleanInput = ({ type, label, inputOnly, getStatus, getValue: getValue3, onValueChange }) => {
415
415
  const { status, error } = getStatus();
416
+ const checked = Boolean(getValue3());
416
417
  return /* @__PURE__ */ React6.createElement(Input5.Root, {
417
418
  validationValence: status
418
419
  }, !inputOnly && /* @__PURE__ */ React6.createElement(InputHeader, {
419
420
  error
420
421
  }, /* @__PURE__ */ React6.createElement(Input5.Label, null, label)), /* @__PURE__ */ React6.createElement(Input5.Switch, {
421
- checked: getValue3(),
422
+ checked,
422
423
  onCheckedChange: (value) => onValueChange(type, value)
423
424
  }), inputOnly && /* @__PURE__ */ React6.createElement(Input5.DescriptionAndValidation, null, error));
424
425
  };
@@ -664,7 +665,7 @@ var FormActions = ({ onCancel, readonly }) => {
664
665
  const { canSave, handleSave } = useFormContext();
665
666
  return /* @__PURE__ */ React8.createElement("div", {
666
667
  role: "none",
667
- className: "flex justify-center"
668
+ className: "mt-2 flex justify-center"
668
669
  }, /* @__PURE__ */ React8.createElement("div", {
669
670
  role: "none",
670
671
  className: mx4(onCancel && !readonly && "grid grid-cols-2 gap-2")
@@ -942,7 +943,7 @@ var FormFields = ({ schema, path, filter, sort, readonly, lookupComponent, Custo
942
943
  ]);
943
944
  return /* @__PURE__ */ React10.createElement("div", {
944
945
  role: "form",
945
- className: mx6("flex flex-col w-full gap-2 py-2")
946
+ className: mx6("flex flex-col w-full gap-2")
946
947
  }, properties.map((property) => {
947
948
  return /* @__PURE__ */ React10.createElement(FormField, {
948
949
  key: property.name,