@firecms/core 3.0.0-canary.104 → 3.0.0-canary.105

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.umd.js CHANGED
@@ -7239,12 +7239,14 @@
7239
7239
  internalValue && !multiselect && buildSingleReferenceField(),
7240
7240
  internalValue && multiselect && buildMultipleReferenceField(),
7241
7241
  valueNotSet && /* @__PURE__ */ jsxRuntime.jsxs(
7242
- ui.Button,
7242
+ EntityPreviewContainer,
7243
7243
  {
7244
+ className: ui.cls(
7245
+ "p-4 text-sm font-medium flex items-center gap-4 uppercase",
7246
+ disabled ? "text-slate-500" : "cursor-pointer text-slate-700 dark:text-slate-300 hover:bg-slate-50 dark:hover:bg-gray-800 group-hover:bg-slate-50 dark:group-hover:bg-gray-800"
7247
+ ),
7244
7248
  onClick: handleOpen,
7245
- size: "small",
7246
- variant: "outlined",
7247
- color: "primary",
7249
+ size: "medium",
7248
7250
  children: [
7249
7251
  "Edit ",
7250
7252
  title
@@ -11003,13 +11005,10 @@
11003
11005
  textSearchInitialised,
11004
11006
  onTextSearchClick,
11005
11007
  textSearchEnabled
11006
- } = (
11007
- // eslint-disable-next-line react-hooks/rules-of-hooks
11008
- useTableSearchHelper({
11009
- collection,
11010
- fullPath
11011
- })
11012
- );
11008
+ } = useTableSearchHelper({
11009
+ collection,
11010
+ fullPath
11011
+ });
11013
11012
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col h-full", children: [
11014
11013
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex-grow", children: entitiesDisplayedFirst && /* @__PURE__ */ jsxRuntime.jsx(
11015
11014
  EntityCollectionTable,
@@ -14853,15 +14852,17 @@
14853
14852
  }
14854
14853
  ),
14855
14854
  !value && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "justify-center text-left", children: /* @__PURE__ */ jsxRuntime.jsxs(
14856
- ui.Button,
14855
+ EntityPreviewContainer,
14857
14856
  {
14858
- variant: "outlined",
14859
- color: "primary",
14860
- disabled: disabled || isSubmitting,
14857
+ className: ui.cls(
14858
+ "p-6 text-sm font-medium flex items-center gap-6",
14859
+ disabled || isSubmitting ? "text-slate-500" : "cursor-pointer text-slate-700 dark:text-slate-300 hover:bg-slate-50 dark:hover:bg-gray-800 group-hover:bg-slate-50 dark:group-hover:bg-gray-800"
14860
+ ),
14861
14861
  onClick: onEntryClick,
14862
+ size: "medium",
14862
14863
  children: [
14863
- "Edit ",
14864
- property.name
14864
+ /* @__PURE__ */ jsxRuntime.jsx(EmptyValue, {}),
14865
+ `Edit ${property.name}`.toUpperCase()
14865
14866
  ]
14866
14867
  }
14867
14868
  ) })