@protonradio/proton-ui 0.11.0-beta.10 → 0.11.0-beta.11
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.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +6 -6
- package/dist/index.es.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -10104,7 +10104,7 @@ const wc = ({
|
|
|
10104
10104
|
}) => {
|
|
10105
10105
|
xd(t);
|
|
10106
10106
|
const { className: p, theme: v } = Ke(), [m, x] = H(0), [$, E] = H([]), [C, T] = H({
|
|
10107
|
-
title:
|
|
10107
|
+
title: s,
|
|
10108
10108
|
actions: a,
|
|
10109
10109
|
key: null,
|
|
10110
10110
|
previousKey: null
|
|
@@ -10193,9 +10193,9 @@ const wc = ({
|
|
|
10193
10193
|
"data-testid": "ActionMenu-content",
|
|
10194
10194
|
style: { height: `${m}px` },
|
|
10195
10195
|
children: /* @__PURE__ */ g.jsx("div", { ref: F, children: /* @__PURE__ */ g.jsxs("div", { ...O, ref: w, children: [
|
|
10196
|
-
|
|
10197
|
-
/* @__PURE__ */ g.jsx("div", { style: { position: "absolute", left: 0 }, children:
|
|
10198
|
-
C.title
|
|
10196
|
+
C.title && /* @__PURE__ */ g.jsxs("div", { className: "proton-ActionMenu__title", children: [
|
|
10197
|
+
$.length > 0 && /* @__PURE__ */ g.jsx("div", { style: { position: "absolute", left: 0 }, children: /* @__PURE__ */ g.jsx("button", { onClick: K, children: /* @__PURE__ */ g.jsx(tr, { id: "chevron-left", size: 16 }) }) }),
|
|
10198
|
+
C.title
|
|
10199
10199
|
] }),
|
|
10200
10200
|
P ? /* @__PURE__ */ g.jsxs(fn, { autoFocus: !0, contain: !0, children: [
|
|
10201
10201
|
i && /* @__PURE__ */ g.jsx("div", { className: "proton-ActionMenu__content", children: typeof i == "function" ? i({ close: _ }) : i }),
|
|
@@ -11859,10 +11859,10 @@ function ji(t) {
|
|
|
11859
11859
|
Z0,
|
|
11860
11860
|
{
|
|
11861
11861
|
...t,
|
|
11862
|
-
className: ({ isFocused: e,
|
|
11862
|
+
className: ({ isFocused: e, isSelected: n, isOpen: r }) => W(
|
|
11863
11863
|
"proton-ListBox__item proton-MenuTrigger__menu-item",
|
|
11864
11864
|
e && "focused",
|
|
11865
|
-
|
|
11865
|
+
r && "open"
|
|
11866
11866
|
),
|
|
11867
11867
|
children: ({ hasSubmenu: e }) => /* @__PURE__ */ g.jsxs(g.Fragment, { children: [
|
|
11868
11868
|
t.children,
|