@tutti-os/workbench-surface 0.0.44 → 0.0.46

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
@@ -1939,7 +1939,8 @@ import {
1939
1939
  Tooltip,
1940
1940
  TooltipContent,
1941
1941
  TooltipProvider,
1942
- TooltipTrigger
1942
+ TooltipTrigger,
1943
+ WindowTrafficLightIcon
1943
1944
  } from "@tutti-os/ui-system";
1944
1945
  import { jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
1945
1946
  function WorkbenchWindowTrafficLights({
@@ -2008,6 +2009,7 @@ function WorkbenchWindowTrafficLightButton({
2008
2009
  const stopPointer = (event) => {
2009
2010
  event.stopPropagation();
2010
2011
  };
2012
+ const iconName = tone === "maximize" ? input.pressed ? "unfullscreen" : "fullscreen" : tone;
2011
2013
  const button = /* @__PURE__ */ jsx4(
2012
2014
  "button",
2013
2015
  {
@@ -2020,7 +2022,16 @@ function WorkbenchWindowTrafficLightButton({
2020
2022
  type: "button",
2021
2023
  onClick: handleClick,
2022
2024
  onDoubleClick: (event) => event.stopPropagation(),
2023
- onPointerDown: stopPointer
2025
+ onPointerDown: stopPointer,
2026
+ children: /* @__PURE__ */ jsx4(
2027
+ WindowTrafficLightIcon,
2028
+ {
2029
+ "aria-hidden": "true",
2030
+ className: "workbench-window-traffic-light__icon",
2031
+ "data-workbench-traffic-light-icon": iconName,
2032
+ iconName
2033
+ }
2034
+ )
2024
2035
  }
2025
2036
  );
2026
2037
  return /* @__PURE__ */ jsx4(TooltipProvider, { delayDuration: 250, skipDelayDuration: 0, children: /* @__PURE__ */ jsxs2(Tooltip, { children: [