/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
//#region src/utils/exposeAriakitScrollbarWidth.ts
/**
* Expose Ariakit's scroll-lock measurement as a UDS-owned CSS variable. The
* value is a `var()` reference, resolved at use time, so it tracks Ariakit's
* `--scrollbar-width` while a scroll-locking surface (modal, bottom sheet) is
* open and falls back to 0px otherwise.
*
* Idempotent — safe to call from multiple modules at load time.
*/
function exposeAriakitScrollbarWidth() {
	if (typeof document === "undefined") return;
	document.documentElement.style.setProperty("--uds-scrollbar-width", "var(--scrollbar-width, 0px)");
}
//#endregion
exports.exposeAriakitScrollbarWidth = exposeAriakitScrollbarWidth;
