@scrippsproduct/networks-ui-library 1.1.5 → 1.1.7
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.
|
@@ -26,13 +26,14 @@ function Y({
|
|
|
26
26
|
const [a, f] = h(!1), [s, m] = h(null), _ = document.querySelector("body"), t = k(() => {
|
|
27
27
|
f((N) => {
|
|
28
28
|
const c = !N;
|
|
29
|
-
if (c)
|
|
29
|
+
if (c)
|
|
30
|
+
_.style.overflowY = "hidden";
|
|
31
|
+
else {
|
|
30
32
|
const i = document.querySelector("#overlay");
|
|
31
33
|
i == null || i.setAttribute("data-state", "exiting"), setTimeout(() => {
|
|
32
34
|
i == null || i.remove(), _.style.overflowY = "auto";
|
|
33
35
|
}, 400);
|
|
34
|
-
}
|
|
35
|
-
_.style.overflowY = "hidden";
|
|
36
|
+
}
|
|
36
37
|
return c;
|
|
37
38
|
}), m("closing");
|
|
38
39
|
}, [_]), b = () => {
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import { jsx as t, jsxs as b } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as a, useCallback as w, useEffect as y } from "react";
|
|
3
3
|
import { f as S } from "../../format-YhWt2D8M.mjs";
|
|
4
|
-
import { l as
|
|
5
|
-
import { classes as
|
|
4
|
+
import { l as g } from "../../logger-C0N7U0YY.mjs";
|
|
5
|
+
import { classes as L } from "../../utils/helpers.js";
|
|
6
6
|
import { ScheduleProvider as E } from "./ScheduleContext.js";
|
|
7
7
|
import { useScheduleContext as q } from "./useScheduleContext.js";
|
|
8
8
|
import { DateNavigation as T } from "../DateNavigation/DateNavigation.js";
|
|
9
9
|
import { ScheduleList as k } from "../ScheduleList/ScheduleList.js";
|
|
10
|
-
|
|
11
|
-
import '../../assets/ScheduleLayout.css';function
|
|
10
|
+
g.setComponent("ScheduleLayout");
|
|
11
|
+
import '../../assets/ScheduleLayout.css';function x({
|
|
12
12
|
handleScheduleClicks: d = () => !0
|
|
13
13
|
}) {
|
|
14
|
-
console.warn("ScheduleLayoutContent rendered");
|
|
15
14
|
const { currentDate: n } = q(), r = a(null), f = a(0), o = a(null), l = a(null), m = a(!0), s = w((i) => {
|
|
16
15
|
const c = () => {
|
|
17
16
|
let e;
|
|
@@ -74,7 +73,7 @@ import '../../assets/ScheduleLayout.css';function C({
|
|
|
74
73
|
/* @__PURE__ */ t("sticky-content-wrapper", { "data-pinned-state": "unpinned", children: /* @__PURE__ */ t(
|
|
75
74
|
"content-constrainer",
|
|
76
75
|
{
|
|
77
|
-
class:
|
|
76
|
+
class: L([
|
|
78
77
|
"content-constrainer--no-padding",
|
|
79
78
|
"content-constrainer--no-border",
|
|
80
79
|
"content-constrainer--lead-container",
|
|
@@ -100,7 +99,7 @@ function _({
|
|
|
100
99
|
handleDateChanged: o,
|
|
101
100
|
initialSchedule: n,
|
|
102
101
|
weeks: r,
|
|
103
|
-
children: /* @__PURE__ */ t(
|
|
102
|
+
children: /* @__PURE__ */ t(x, { handleScheduleClicks: f })
|
|
104
103
|
}
|
|
105
104
|
);
|
|
106
105
|
}
|
|
@@ -104,7 +104,7 @@ function B({
|
|
|
104
104
|
if (t === "exiting" && l.current) {
|
|
105
105
|
const i = document.querySelector("sticky-content-wrapper"), g = document.querySelector(".mobile-nav");
|
|
106
106
|
let _ = 0;
|
|
107
|
-
i && (_ += i.offsetHeight), g && window.getComputedStyle(g).display !== "none" && (_ += g.offsetHeight), _ +=
|
|
107
|
+
i && (_ += i.offsetHeight), g && window.getComputedStyle(g).display !== "none" && (_ += g.offsetHeight), _ += 16;
|
|
108
108
|
const R = l.current.getBoundingClientRect(), L = window.pageYOffset || document.documentElement.scrollTop, b = R.top + L - _;
|
|
109
109
|
window.scrollTo({
|
|
110
110
|
top: b,
|
package/package.json
CHANGED