@tutti-os/workbench-surface 0.0.4 → 0.0.6

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.js CHANGED
@@ -1756,7 +1756,7 @@ function WorkbenchWindowFullscreenToggle({
1756
1756
  title: label,
1757
1757
  type: "button",
1758
1758
  variant: "chrome",
1759
- onClick: () => {
1759
+ onClick: (event) => {
1760
1760
  if (disabled) {
1761
1761
  return;
1762
1762
  }
@@ -1765,6 +1765,7 @@ function WorkbenchWindowFullscreenToggle({
1765
1765
  controller.commands.exitFullscreen(node.id);
1766
1766
  return;
1767
1767
  }
1768
+ event.currentTarget.blur();
1768
1769
  controller.commands.enterFullscreen(node.id);
1769
1770
  },
1770
1771
  children: /* @__PURE__ */ jsx4(Icon, { "aria-hidden": true, className: "size-[15px]" })
@@ -5394,7 +5395,10 @@ import {
5394
5395
  Button as Button4,
5395
5396
  ChevronDownIcon,
5396
5397
  ChevronUpIcon,
5397
- TooltipProvider
5398
+ Tooltip,
5399
+ TooltipContent,
5400
+ TooltipProvider,
5401
+ TooltipTrigger
5398
5402
  } from "@tutti-os/ui-system";
5399
5403
 
5400
5404
  // src/host/dockEntries.ts
@@ -7674,7 +7678,17 @@ function WorkbenchHostDock({
7674
7678
  closeHoverPanelImmediate(entry.id);
7675
7679
  handleDockPointerLeave();
7676
7680
  },
7677
- children: dockButton2
7681
+ children: hasHoverPanel ? dockButton2 : /* @__PURE__ */ jsxs6(Tooltip, { children: [
7682
+ /* @__PURE__ */ jsx10(TooltipTrigger, { asChild: true, children: dockButton2 }),
7683
+ /* @__PURE__ */ jsx10(
7684
+ TooltipContent,
7685
+ {
7686
+ side: dockPlacement === "left" ? "right" : "top",
7687
+ sideOffset: DOCK_MAGNIFIED_TOOLTIP_SIDE_OFFSET,
7688
+ children: entry.label
7689
+ }
7690
+ )
7691
+ ] })
7678
7692
  },
7679
7693
  dockItem.key
7680
7694
  );
@@ -7767,7 +7781,17 @@ function WorkbenchHostDock({
7767
7781
  "data-presence": dockItem.presence,
7768
7782
  "data-section-id": "minimized",
7769
7783
  "data-stack-dispatching": stackDispatching ? "true" : void 0,
7770
- children: stackButton
7784
+ children: /* @__PURE__ */ jsxs6(Tooltip, { children: [
7785
+ /* @__PURE__ */ jsx10(TooltipTrigger, { asChild: true, children: stackButton }),
7786
+ /* @__PURE__ */ jsx10(
7787
+ TooltipContent,
7788
+ {
7789
+ side: dockPlacement === "left" ? "right" : "top",
7790
+ sideOffset: DOCK_MAGNIFIED_TOOLTIP_SIDE_OFFSET,
7791
+ children: i18n.t("minimizedWindows")
7792
+ }
7793
+ )
7794
+ ] })
7771
7795
  },
7772
7796
  dockItem.key
7773
7797
  );
@@ -7822,7 +7846,17 @@ function WorkbenchHostDock({
7822
7846
  "data-presence": dockItem.presence,
7823
7847
  "data-promoted-from-stack": promotedNodeId === node.id ? "true" : void 0,
7824
7848
  "data-section-id": "minimized",
7825
- children: dockButton
7849
+ children: /* @__PURE__ */ jsxs6(Tooltip, { children: [
7850
+ /* @__PURE__ */ jsx10(TooltipTrigger, { asChild: true, children: dockButton }),
7851
+ /* @__PURE__ */ jsx10(
7852
+ TooltipContent,
7853
+ {
7854
+ side: dockPlacement === "left" ? "right" : "top",
7855
+ sideOffset: DOCK_MAGNIFIED_TOOLTIP_SIDE_OFFSET,
7856
+ children: node.title
7857
+ }
7858
+ )
7859
+ ] })
7826
7860
  },
7827
7861
  dockItem.key
7828
7862
  );
@@ -8474,6 +8508,7 @@ var dockHoverPanelCloseDelayMs = 160;
8474
8508
  var dockHoverPanelHitSlopPx = 12;
8475
8509
  var dockHoverPanelBridgeSlopPx = 6;
8476
8510
  var dockHoverPanelPointerRestTolerancePx = 4;
8511
+ var DOCK_MAGNIFIED_TOOLTIP_SIDE_OFFSET = 40;
8477
8512
  function rectContainsPoint(rect, clientX, clientY, slopPx = 0) {
8478
8513
  return clientX >= rect.left - slopPx && clientX <= rect.right + slopPx && clientY >= rect.top - slopPx && clientY <= rect.bottom + slopPx;
8479
8514
  }