react-os-shell 1.1.1 → 1.2.0
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/README.md +1 -0
- package/dist/Browser-I5OETCZP.js +7 -0
- package/dist/Browser-I5OETCZP.js.map +1 -0
- package/dist/{Calculator-TGBQ6CZ5.js → Calculator-X26IEHCN.js} +4 -4
- package/dist/{Calculator-TGBQ6CZ5.js.map → Calculator-X26IEHCN.js.map} +1 -1
- package/dist/{CurrencyConverter-VIED4YVG.js → CurrencyConverter-5UHIRF2P.js} +4 -4
- package/dist/{CurrencyConverter-VIED4YVG.js.map → CurrencyConverter-5UHIRF2P.js.map} +1 -1
- package/dist/{Documents-EKFJA35K.js → Documents-XXR5APHQ.js} +5 -3
- package/dist/Documents-XXR5APHQ.js.map +1 -0
- package/dist/Files-62UEOWMR.js +13 -0
- package/dist/{Files-DCBTCKHR.js.map → Files-62UEOWMR.js.map} +1 -1
- package/dist/{Minesweeper-JEQS36AX.js → Minesweeper-OXRRSCVF.js} +3 -3
- package/dist/{Minesweeper-JEQS36AX.js.map → Minesweeper-OXRRSCVF.js.map} +1 -1
- package/dist/{Notepad-PTFPOQFG.js → Notepad-ITUWSJKY.js} +84 -80
- package/dist/Notepad-ITUWSJKY.js.map +1 -0
- package/dist/{PomodoroTimer-ALPSQRXI.js → PomodoroTimer-PG4J5NNI.js} +4 -4
- package/dist/{PomodoroTimer-ALPSQRXI.js.map → PomodoroTimer-PG4J5NNI.js.map} +1 -1
- package/dist/Preview-ABEQRCDE.js +9 -0
- package/dist/{Preview-SVY4T4PL.js.map → Preview-ABEQRCDE.js.map} +1 -1
- package/dist/Spreadsheet-7AMQIX6U.js +7 -0
- package/dist/{Spreadsheet-MITVBEDX.js.map → Spreadsheet-7AMQIX6U.js.map} +1 -1
- package/dist/{Stock-HPG5RWLL.js → Stock-TIJVSHPV.js} +4 -4
- package/dist/{Stock-HPG5RWLL.js.map → Stock-TIJVSHPV.js.map} +1 -1
- package/dist/{Weather-JC3RBPGD.js → Weather-WVDLOH74.js} +4 -4
- package/dist/{Weather-JC3RBPGD.js.map → Weather-WVDLOH74.js.map} +1 -1
- package/dist/{WorldClock-XWFU7PQE.js → WorldClock-OV4GU5J3.js} +4 -4
- package/dist/{WorldClock-XWFU7PQE.js.map → WorldClock-OV4GU5J3.js.map} +1 -1
- package/dist/apps/index.d.ts +55 -1
- package/dist/apps/index.js +20 -18
- package/dist/apps/index.js.map +1 -1
- package/dist/chunk-2YSJRDKZ.js +81 -0
- package/dist/chunk-2YSJRDKZ.js.map +1 -0
- package/dist/{chunk-4TNNWBYP.js → chunk-6IQJSIAR.js} +4 -4
- package/dist/{chunk-4TNNWBYP.js.map → chunk-6IQJSIAR.js.map} +1 -1
- package/dist/{chunk-PR23BBD7.js → chunk-BPPG7CVR.js} +10 -4
- package/dist/chunk-BPPG7CVR.js.map +1 -0
- package/dist/{chunk-BAVXM63E.js → chunk-CF3SUKOS.js} +6 -4
- package/dist/chunk-CF3SUKOS.js.map +1 -0
- package/dist/{chunk-JHQDV7SP.js → chunk-GWVVILYQ.js} +15 -8
- package/dist/chunk-GWVVILYQ.js.map +1 -0
- package/dist/{chunk-HMTXSXYU.js → chunk-ISNP6BHR.js} +3 -3
- package/dist/{chunk-HMTXSXYU.js.map → chunk-ISNP6BHR.js.map} +1 -1
- package/dist/{chunk-3MB2IRBY.js → chunk-LAAGWPMR.js} +11 -5
- package/dist/chunk-LAAGWPMR.js.map +1 -0
- package/dist/{Browser-NNPSNU35.js → chunk-P7OBFXLO.js} +23 -7
- package/dist/chunk-P7OBFXLO.js.map +1 -0
- package/dist/index.js +9 -11
- package/dist/index.js.map +1 -1
- package/dist/styles.css +12 -0
- package/package.json +1 -1
- package/dist/Browser-NNPSNU35.js.map +0 -1
- package/dist/Documents-EKFJA35K.js.map +0 -1
- package/dist/Files-DCBTCKHR.js +0 -12
- package/dist/Notepad-PTFPOQFG.js.map +0 -1
- package/dist/Preview-SVY4T4PL.js +0 -8
- package/dist/Spreadsheet-MITVBEDX.js +0 -6
- package/dist/chunk-3MB2IRBY.js.map +0 -1
- package/dist/chunk-BAVXM63E.js.map +0 -1
- package/dist/chunk-JHQDV7SP.js.map +0 -1
- package/dist/chunk-PR23BBD7.js.map +0 -1
|
@@ -2014,21 +2014,25 @@ function TaskbarTabPreview({ items, anchorEl, onActivate, onClose, onMouseEnter,
|
|
|
2014
2014
|
const isGroup = items.length > 1;
|
|
2015
2015
|
const popoverRef = useRef(null);
|
|
2016
2016
|
const [pos, setPos] = useState({ left: -9999, top: -9999, ready: false });
|
|
2017
|
+
const [taskbarPos, setTaskbarPos] = useState(
|
|
2018
|
+
() => typeof document !== "undefined" ? getComputedStyle(document.documentElement).getPropertyValue("--taskbar-position")?.trim() || "bottom" : "bottom"
|
|
2019
|
+
);
|
|
2017
2020
|
useLayoutEffect(() => {
|
|
2018
2021
|
const el = popoverRef.current;
|
|
2019
2022
|
if (!el) return;
|
|
2020
2023
|
const measure = () => {
|
|
2021
2024
|
const tabRect = anchorEl.getBoundingClientRect();
|
|
2022
2025
|
const popRect = el.getBoundingClientRect();
|
|
2023
|
-
const
|
|
2026
|
+
const tbPos = getComputedStyle(document.documentElement).getPropertyValue("--taskbar-position")?.trim() || "bottom";
|
|
2027
|
+
setTaskbarPos(tbPos);
|
|
2024
2028
|
let left = tabRect.left + tabRect.width / 2 - popRect.width / 2;
|
|
2025
2029
|
let top;
|
|
2026
|
-
if (
|
|
2030
|
+
if (tbPos === "top") {
|
|
2027
2031
|
top = tabRect.bottom + 8;
|
|
2028
|
-
} else if (
|
|
2032
|
+
} else if (tbPos === "left") {
|
|
2029
2033
|
left = tabRect.right + 8;
|
|
2030
2034
|
top = tabRect.top + tabRect.height / 2 - popRect.height / 2;
|
|
2031
|
-
} else if (
|
|
2035
|
+
} else if (tbPos === "right") {
|
|
2032
2036
|
left = tabRect.left - popRect.width - 8;
|
|
2033
2037
|
top = tabRect.top + tabRect.height / 2 - popRect.height / 2;
|
|
2034
2038
|
} else {
|
|
@@ -2043,6 +2047,8 @@ function TaskbarTabPreview({ items, anchorEl, onActivate, onClose, onMouseEnter,
|
|
|
2043
2047
|
ro.observe(el);
|
|
2044
2048
|
return () => ro.disconnect();
|
|
2045
2049
|
}, [anchorEl, items.length]);
|
|
2050
|
+
const titleBelow = taskbarPos === "top";
|
|
2051
|
+
const titleClass = `${titleBelow ? "mt-1" : "mb-1"} max-w-[240px] truncate text-[11px] font-medium text-gray-900 bg-white/80 px-2 py-0.5 rounded shadow-sm ring-2 ring-transparent transition group-hover:ring-blue-400`;
|
|
2046
2052
|
return createPortal(
|
|
2047
2053
|
/* @__PURE__ */ jsx(
|
|
2048
2054
|
"div",
|
|
@@ -2060,7 +2066,7 @@ function TaskbarTabPreview({ items, anchorEl, onActivate, onClose, onMouseEnter,
|
|
|
2060
2066
|
onMouseEnter,
|
|
2061
2067
|
onMouseLeave,
|
|
2062
2068
|
children: items.map((it) => /* @__PURE__ */ jsxs("div", { className: "group flex flex-col items-center", children: [
|
|
2063
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
2069
|
+
!titleBelow && /* @__PURE__ */ jsx("span", { className: titleClass, children: it.label }),
|
|
2064
2070
|
/* @__PURE__ */ jsx(
|
|
2065
2071
|
ThumbCard,
|
|
2066
2072
|
{
|
|
@@ -2072,7 +2078,8 @@ function TaskbarTabPreview({ items, anchorEl, onActivate, onClose, onMouseEnter,
|
|
|
2072
2078
|
onClick: () => onActivate(it.id),
|
|
2073
2079
|
onClose: () => onClose(it.id)
|
|
2074
2080
|
}
|
|
2075
|
-
)
|
|
2081
|
+
),
|
|
2082
|
+
titleBelow && /* @__PURE__ */ jsx("span", { className: titleClass, children: it.label })
|
|
2076
2083
|
] }, it.id))
|
|
2077
2084
|
}
|
|
2078
2085
|
),
|
|
@@ -2392,5 +2399,5 @@ function WindowManagerProvider({ children }) {
|
|
|
2392
2399
|
}
|
|
2393
2400
|
|
|
2394
2401
|
export { CancelButton, CopyButton, DocFavStar, LoadingSpinner, Modal, ModalActions, PopupMenu, PopupMenuDivider, PopupMenuItem, PopupMenuLabel, ThumbCard, WINDOW_REGISTRY, WindowManagerProvider, WindowTitle, activateModal, client_default, commitExposeHighlight, exitExposeMode, getActiveModalId, getActiveWindowRoute, getExposeHighlight, getWindowPosition, isEntityEntry, isPageEntry, setExposeHighlight, setShellApiClient, setShellWindowRegistry, setWindowDefaultPosition, setWindowPosition, subscribeExposeHighlight, toggleExposeMode, useIsMobile, useModalActive, useWidgetSettings, useWindowManager, useWindowMenuItem, useWindowTitle };
|
|
2395
|
-
//# sourceMappingURL=chunk-
|
|
2396
|
-
//# sourceMappingURL=chunk-
|
|
2402
|
+
//# sourceMappingURL=chunk-GWVVILYQ.js.map
|
|
2403
|
+
//# sourceMappingURL=chunk-GWVVILYQ.js.map
|