@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.
- package/dist/form/field_bindings/SwitchFieldBinding.d.ts +1 -2
- package/dist/index.es.js +10 -8
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +10 -8
- package/dist/index.umd.js.map +1 -1
- package/dist/types/auth.d.ts +2 -0
- package/package.json +129 -125
- package/src/components/EntityPreview.tsx +6 -8
- package/src/contexts/SnackbarProvider.tsx +2 -0
- package/src/core/FireCMS.tsx +3 -0
- package/src/form/field_bindings/SwitchFieldBinding.tsx +25 -25
- package/src/types/auth.tsx +2 -0
package/dist/index.umd.js
CHANGED
|
@@ -5080,8 +5080,10 @@
|
|
|
5080
5080
|
}
|
|
5081
5081
|
)
|
|
5082
5082
|
] }),
|
|
5083
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col grow-1 w-full
|
|
5084
|
-
|
|
5083
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col grow-1 w-full m-1 shrink-1", style: {
|
|
5084
|
+
"maxWidth": "calc(100% - 96px)"
|
|
5085
|
+
}, children: [
|
|
5086
|
+
size !== "small" && includeId && (entity ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "block whitespace-nowrap overflow-hidden truncate", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
5085
5087
|
ui.Typography,
|
|
5086
5088
|
{
|
|
5087
5089
|
variant: "caption",
|
|
@@ -5090,7 +5092,7 @@
|
|
|
5090
5092
|
children: entity.id
|
|
5091
5093
|
}
|
|
5092
5094
|
) }) : /* @__PURE__ */ jsxRuntime.jsx(ui.Skeleton, {})),
|
|
5093
|
-
titleProperty && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "my-0.5 text-sm font-
|
|
5095
|
+
titleProperty && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "my-0.5 text-sm font-medium", children: entity ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
5094
5096
|
PropertyPreview,
|
|
5095
5097
|
{
|
|
5096
5098
|
propertyKey: titleProperty,
|
|
@@ -5132,7 +5134,7 @@
|
|
|
5132
5134
|
);
|
|
5133
5135
|
})
|
|
5134
5136
|
] }),
|
|
5135
|
-
entity && includeEntityLink && /* @__PURE__ */ jsxRuntime.jsx(ui.Tooltip, { title: `See details for ${entity.id}`, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
5137
|
+
entity && includeEntityLink && /* @__PURE__ */ jsxRuntime.jsx(ui.Tooltip, { title: `See details for ${entity.id}`, className: "shrink-0", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
5136
5138
|
ui.IconButton,
|
|
5137
5139
|
{
|
|
5138
5140
|
color: "inherit",
|
|
@@ -15930,7 +15932,7 @@
|
|
|
15930
15932
|
)
|
|
15931
15933
|
] });
|
|
15932
15934
|
}
|
|
15933
|
-
const SwitchFieldBinding =
|
|
15935
|
+
const SwitchFieldBinding = function SwitchFieldBinding2({
|
|
15934
15936
|
propertyKey,
|
|
15935
15937
|
value,
|
|
15936
15938
|
setValue,
|
|
@@ -15938,10 +15940,10 @@
|
|
|
15938
15940
|
showError,
|
|
15939
15941
|
autoFocus,
|
|
15940
15942
|
disabled,
|
|
15941
|
-
size = "
|
|
15943
|
+
size = "large",
|
|
15942
15944
|
property,
|
|
15943
15945
|
includeDescription
|
|
15944
|
-
}
|
|
15946
|
+
}) {
|
|
15945
15947
|
useClearRestoreValue({
|
|
15946
15948
|
property,
|
|
15947
15949
|
value,
|
|
@@ -15978,7 +15980,7 @@
|
|
|
15978
15980
|
}
|
|
15979
15981
|
)
|
|
15980
15982
|
] });
|
|
15981
|
-
}
|
|
15983
|
+
};
|
|
15982
15984
|
function DateTimeFieldBinding({
|
|
15983
15985
|
propertyKey,
|
|
15984
15986
|
value,
|