@applica-software-guru/react-admin 1.5.369 → 1.5.370
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/components/ra-lists/Empty.d.ts +6 -1
- package/dist/components/ra-lists/Empty.d.ts.map +1 -1
- package/dist/react-admin.cjs.js +1 -1
- package/dist/react-admin.cjs.js.gz +0 -0
- package/dist/react-admin.cjs.js.map +1 -1
- package/dist/react-admin.es.js +14 -13
- package/dist/react-admin.es.js.gz +0 -0
- package/dist/react-admin.es.js.map +1 -1
- package/dist/react-admin.umd.js +1 -1
- package/dist/react-admin.umd.js.gz +0 -0
- package/dist/react-admin.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/ra-lists/Empty.tsx +12 -5
package/dist/react-admin.es.js
CHANGED
|
@@ -37852,10 +37852,10 @@ const r6e = fi("div")(({ theme: e }) => ({
|
|
|
37852
37852
|
name: y1,
|
|
37853
37853
|
slot: "Root",
|
|
37854
37854
|
overridesResolver: (e, t) => t.root,
|
|
37855
|
-
shouldForwardProp: (e) => e !== "horizontal"
|
|
37856
|
-
})(({ theme: e, horizontal: t }) => ({
|
|
37855
|
+
shouldForwardProp: (e) => e !== "horizontal" && e !== "fitContent"
|
|
37856
|
+
})(({ theme: e, horizontal: t, fitContent: n }) => ({
|
|
37857
37857
|
flex: 1,
|
|
37858
|
-
height: t ? "calc(100vh - 240px)" : "calc(100vh - 200px)",
|
|
37858
|
+
height: n ? "auto" : t ? "calc(100vh - 240px)" : "calc(100vh - 200px)",
|
|
37859
37859
|
[`& .${Ba.message}`]: {
|
|
37860
37860
|
textAlign: "center",
|
|
37861
37861
|
opacity: e.palette.mode === "light" ? 1 : 0.8,
|
|
@@ -37882,23 +37882,24 @@ function r0({
|
|
|
37882
37882
|
title: o,
|
|
37883
37883
|
subtitle: i,
|
|
37884
37884
|
sx: a,
|
|
37885
|
-
|
|
37885
|
+
fitContent: l = !1,
|
|
37886
|
+
...u
|
|
37886
37887
|
}) {
|
|
37887
|
-
const { hasCreate:
|
|
37888
|
+
const { hasCreate: c } = Ab(u), f = n !== void 0 ? n : c, h = _o(), p = je(), m = gF(), v = h ? p(`resources.${h}.name`, {
|
|
37888
37889
|
smart_count: 0,
|
|
37889
|
-
_:
|
|
37890
|
-
}) :
|
|
37891
|
-
return /* @__PURE__ */ Q(o6e, { className: qe(`${y1}-root`, t), sx: a, horizontal:
|
|
37890
|
+
_: m(h, 0)
|
|
37891
|
+
}) : p("ra.empty.no_resource"), b = p("ra.page.empty", { name: v }), x = p("ra.page.invite"), { themeOrientation: I } = cr(), S = I === "horizontal";
|
|
37892
|
+
return /* @__PURE__ */ Q(o6e, { className: qe(`${y1}-root`, t), sx: a, horizontal: S, fitContent: l, children: [
|
|
37892
37893
|
/* @__PURE__ */ Q(xe, { className: Ba.message, children: [
|
|
37893
37894
|
i6e({ icon: r, className: t }),
|
|
37894
|
-
/* @__PURE__ */ g(be, { variant: "h4", paragraph: !0, children: o ||
|
|
37895
|
-
_: v
|
|
37896
|
-
}) }),
|
|
37897
|
-
i || (c ? /* @__PURE__ */ g(be, { variant: "body1", children: h(`resources.${f}.invite`, {
|
|
37895
|
+
/* @__PURE__ */ g(be, { variant: "h4", paragraph: !0, children: o || p(`resources.${h}.empty`, {
|
|
37898
37896
|
_: b
|
|
37897
|
+
}) }),
|
|
37898
|
+
i || (f ? /* @__PURE__ */ g(be, { variant: "body1", children: p(`resources.${h}.invite`, {
|
|
37899
|
+
_: x
|
|
37899
37900
|
}) }) : null)
|
|
37900
37901
|
] }),
|
|
37901
|
-
/* @__PURE__ */ g(r6e, { className: Ba.toolbar, children: e || (
|
|
37902
|
+
/* @__PURE__ */ g(r6e, { className: Ba.toolbar, children: e || (f ? /* @__PURE__ */ g(bde, { variant: "contained", size: "medium", disableFloatingButton: !0 }) : null) })
|
|
37902
37903
|
] });
|
|
37903
37904
|
}
|
|
37904
37905
|
function $y(e) {
|
|
Binary file
|