@firecms/core 3.0.0-canary.152 → 3.0.0-canary.154

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.
@@ -1,4 +1,3 @@
1
- import React from "react";
2
1
  import { FieldProps } from "../../types";
3
2
  type SwitchFieldProps = FieldProps<boolean>;
4
3
  /**
@@ -8,5 +7,5 @@ type SwitchFieldProps = FieldProps<boolean>;
8
7
  * and tables to the specified properties.
9
8
  * @group Form fields
10
9
  */
11
- export declare const SwitchFieldBinding: React.ForwardRefExoticComponent<SwitchFieldProps & React.RefAttributes<unknown>>;
10
+ export declare const SwitchFieldBinding: ({ propertyKey, value, setValue, error, showError, autoFocus, disabled, size, property, includeDescription }: SwitchFieldProps) => import("react/jsx-runtime").JSX.Element;
12
11
  export {};
package/dist/index.es.js CHANGED
@@ -5076,8 +5076,10 @@ function EntityPreview({
5076
5076
  }
5077
5077
  )
5078
5078
  ] }),
5079
- /* @__PURE__ */ jsxs("div", { className: "flex flex-col grow-1 w-full max-w-full m-1", children: [
5080
- size !== "small" && includeId && (entity ? /* @__PURE__ */ jsx("div", { className: `${size !== "large" ? "block whitespace-nowrap overflow-hidden truncate" : ""}`, children: /* @__PURE__ */ jsx(
5079
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col grow-1 w-full m-1 shrink-1", style: {
5080
+ "maxWidth": "calc(100% - 96px)"
5081
+ }, children: [
5082
+ size !== "small" && includeId && (entity ? /* @__PURE__ */ jsx("div", { className: "block whitespace-nowrap overflow-hidden truncate", children: /* @__PURE__ */ jsx(
5081
5083
  Typography,
5082
5084
  {
5083
5085
  variant: "caption",
@@ -5086,7 +5088,7 @@ function EntityPreview({
5086
5088
  children: entity.id
5087
5089
  }
5088
5090
  ) }) : /* @__PURE__ */ jsx(Skeleton, {})),
5089
- titleProperty && /* @__PURE__ */ jsx("div", { className: "my-0.5 text-sm font-large", children: entity ? /* @__PURE__ */ jsx(
5091
+ titleProperty && /* @__PURE__ */ jsx("div", { className: "my-0.5 text-sm font-medium", children: entity ? /* @__PURE__ */ jsx(
5090
5092
  PropertyPreview,
5091
5093
  {
5092
5094
  propertyKey: titleProperty,
@@ -5128,7 +5130,7 @@ function EntityPreview({
5128
5130
  );
5129
5131
  })
5130
5132
  ] }),
5131
- entity && includeEntityLink && /* @__PURE__ */ jsx(Tooltip, { title: `See details for ${entity.id}`, children: /* @__PURE__ */ jsx(
5133
+ entity && includeEntityLink && /* @__PURE__ */ jsx(Tooltip, { title: `See details for ${entity.id}`, className: "shrink-0", children: /* @__PURE__ */ jsx(
5132
5134
  IconButton,
5133
5135
  {
5134
5136
  color: "inherit",
@@ -15926,7 +15928,7 @@ function TextFieldBinding({
15926
15928
  )
15927
15929
  ] });
15928
15930
  }
15929
- const SwitchFieldBinding = React__default.forwardRef(function SwitchFieldBinding2({
15931
+ const SwitchFieldBinding = function SwitchFieldBinding2({
15930
15932
  propertyKey,
15931
15933
  value,
15932
15934
  setValue,
@@ -15934,10 +15936,10 @@ const SwitchFieldBinding = React__default.forwardRef(function SwitchFieldBinding
15934
15936
  showError,
15935
15937
  autoFocus,
15936
15938
  disabled,
15937
- size = "medium",
15939
+ size = "large",
15938
15940
  property,
15939
15941
  includeDescription
15940
- }, ref) {
15942
+ }) {
15941
15943
  useClearRestoreValue({
15942
15944
  property,
15943
15945
  value,
@@ -15974,7 +15976,7 @@ const SwitchFieldBinding = React__default.forwardRef(function SwitchFieldBinding
15974
15976
  }
15975
15977
  )
15976
15978
  ] });
15977
- });
15979
+ };
15978
15980
  function DateTimeFieldBinding({
15979
15981
  propertyKey,
15980
15982
  value,