@floegence/floe-webapp-core 0.36.27 → 0.36.30

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.
@@ -1,49 +1,49 @@
1
- import { spread as d, mergeProps as v, insert as a, createComponent as s, addEventListener as f, effect as b, className as _, template as c, delegateEvents as p } from "solid-js/web";
2
- import { For as h } from "solid-js";
3
- import { cn as x } from "../../utils/cn.js";
4
- import { WORKBENCH_CONTEXT_MENU_ATTR as k } from "./workbenchContextMenuDismiss.js";
5
- var w = /* @__PURE__ */ c("<div role=menu class=workbench-context-menu data-floe-workbench-boundary=true>"), C = /* @__PURE__ */ c("<div role=separator aria-orientation=horizontal class=workbench-context-menu__separator>"), $ = /* @__PURE__ */ c("<button type=button role=menuitem><span class=workbench-context-menu__label>");
6
- function E(r) {
7
- return r.kind === "action";
1
+ import { spread as _, mergeProps as b, insert as c, createComponent as u, addEventListener as v, effect as f, className as p, template as a, delegateEvents as h } from "solid-js/web";
2
+ import { For as x } from "solid-js";
3
+ import { cn as k } from "../../utils/cn.js";
4
+ import { WORKBENCH_CONTEXT_MENU_ATTR as w } from "./workbenchContextMenuDismiss.js";
5
+ var $ = /* @__PURE__ */ a("<div role=menu class=workbench-context-menu data-floe-workbench-boundary=true>"), g = /* @__PURE__ */ a("<div role=separator aria-orientation=horizontal class=workbench-context-menu__separator>"), C = /* @__PURE__ */ a("<button type=button role=menuitem><span class=workbench-context-menu__icon aria-hidden=true></span><span class=workbench-context-menu__label>");
6
+ function E(t) {
7
+ return t.kind === "action";
8
8
  }
9
- function M(r) {
9
+ function A(t) {
10
10
  return (() => {
11
- var o = w();
12
- return d(o, v({
13
- [k]: "true"
11
+ var o = $();
12
+ return _(o, b({
13
+ [w]: "true"
14
14
  }, {
15
15
  get style() {
16
16
  return {
17
- left: `${r.x}px`,
18
- top: `${r.y}px`
17
+ left: `${t.x}px`,
18
+ top: `${t.y}px`
19
19
  };
20
20
  },
21
21
  onContextMenu: (e) => e.preventDefault()
22
- }), !1, !0), a(o, s(h, {
22
+ }), !1, !0), c(o, u(x, {
23
23
  get each() {
24
- return r.items;
24
+ return t.items;
25
25
  },
26
26
  children: (e) => {
27
27
  if (!E(e))
28
- return C();
28
+ return g();
29
29
  const m = e.icon;
30
30
  return (() => {
31
- var t = $(), l = t.firstChild;
32
- return f(t, "click", e.onSelect, !0), a(t, s(m, {
33
- class: "h-3.5 w-3.5"
34
- }), l), a(l, () => e.label), b((n) => {
35
- var i = x("workbench-context-menu__item", e.destructive && "is-destructive"), u = e.disabled;
36
- return i !== n.e && _(t, n.e = i), u !== n.t && (t.disabled = n.t = u), n;
31
+ var n = C(), i = n.firstChild, d = i.nextSibling;
32
+ return v(n, "click", e.onSelect, !0), c(i, u(m, {
33
+ class: "workbench-context-menu__icon-svg"
34
+ })), c(d, () => e.label), f((r) => {
35
+ var l = k("workbench-context-menu__item", e.destructive && "is-destructive"), s = e.disabled;
36
+ return l !== r.e && p(n, r.e = l), s !== r.t && (n.disabled = r.t = s), r;
37
37
  }, {
38
38
  e: void 0,
39
39
  t: void 0
40
- }), t;
40
+ }), n;
41
41
  })();
42
42
  }
43
43
  })), o;
44
44
  })();
45
45
  }
46
- p(["click"]);
46
+ h(["click"]);
47
47
  export {
48
- M as WorkbenchContextMenu
48
+ A as WorkbenchContextMenu
49
49
  };