@applica-software-guru/react-admin 1.5.341 → 1.5.342
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/ActionsMenu.d.ts +2 -1
- package/dist/components/ActionsMenu.d.ts.map +1 -1
- package/dist/react-admin.cjs.js +37 -37
- package/dist/react-admin.cjs.js.gz +0 -0
- package/dist/react-admin.cjs.js.map +1 -1
- package/dist/react-admin.es.js +26 -16
- package/dist/react-admin.es.js.gz +0 -0
- package/dist/react-admin.es.js.map +1 -1
- package/dist/react-admin.umd.js +37 -37
- 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/ActionsMenu.tsx +9 -3
package/dist/react-admin.es.js
CHANGED
|
@@ -13964,26 +13964,36 @@ const hG = { width: "100%", justifyContent: "flex-start" }, gG = oi("div", {
|
|
|
13964
13964
|
}
|
|
13965
13965
|
}
|
|
13966
13966
|
}));
|
|
13967
|
-
function Sa({ horizontal: e = !1,
|
|
13968
|
-
const [
|
|
13969
|
-
function
|
|
13970
|
-
|
|
13967
|
+
function Sa({ horizontal: e = !1, disabled: t = !1, children: n }) {
|
|
13968
|
+
const [r, o] = Re(null), i = we.useRef(null);
|
|
13969
|
+
function a(d) {
|
|
13970
|
+
d.stopPropagation(), d.preventDefault(), o(d.currentTarget), i.current = d.currentTarget;
|
|
13971
13971
|
}
|
|
13972
|
-
const
|
|
13973
|
-
|
|
13974
|
-
}, []),
|
|
13975
|
-
var
|
|
13976
|
-
|
|
13972
|
+
const l = me((d) => {
|
|
13973
|
+
d.stopPropagation(), d.preventDefault(), o(null);
|
|
13974
|
+
}, []), u = me((d) => {
|
|
13975
|
+
var f;
|
|
13976
|
+
o(null), typeof ((f = d.currentTarget) == null ? void 0 : f.onClick) == "function" && d.currentTarget.onClick(d);
|
|
13977
13977
|
}, []);
|
|
13978
|
-
return !
|
|
13979
|
-
|
|
13980
|
-
/* @__PURE__ */ y(
|
|
13981
|
-
|
|
13982
|
-
|
|
13983
|
-
|
|
13978
|
+
return !n || we.Children.count(n) === 0 || // @ts-ignore
|
|
13979
|
+
n != null && n.filter && (n == null ? void 0 : n.filter((d) => we.isValidElement(d)).length) === 0 ? null : /* @__PURE__ */ ee(gG, { children: [
|
|
13980
|
+
/* @__PURE__ */ y(
|
|
13981
|
+
nc,
|
|
13982
|
+
{
|
|
13983
|
+
"aria-label": "more",
|
|
13984
|
+
"aria-haspopup": "true",
|
|
13985
|
+
onClick: a,
|
|
13986
|
+
color: r ? "inherit" : "default",
|
|
13987
|
+
disabled: t,
|
|
13988
|
+
children: e ? /* @__PURE__ */ y(XM, {}) : /* @__PURE__ */ y(ZM, {})
|
|
13989
|
+
}
|
|
13990
|
+
),
|
|
13991
|
+
/* @__PURE__ */ y(mG, { open: r, onClose: l, arrow: "right-top", children: Yt.map(
|
|
13992
|
+
n,
|
|
13993
|
+
(d, f) => we.isValidElement(d) && /* @__PURE__ */ y(Cm, { onClick: u, children: we.cloneElement(d, {
|
|
13984
13994
|
// @ts-ignore
|
|
13985
13995
|
style: { ...hG }
|
|
13986
|
-
}) },
|
|
13996
|
+
}) }, f)
|
|
13987
13997
|
) })
|
|
13988
13998
|
] });
|
|
13989
13999
|
}
|
|
Binary file
|