@homebound/beam 2.387.0 → 2.387.1
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.cjs +4 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -17306,11 +17306,9 @@ function ScrollShadows(props) {
|
|
|
17306
17306
|
setShowStartShadow(start > 0);
|
|
17307
17307
|
setShowEndShadow(start + boxSize < end);
|
|
17308
17308
|
},
|
|
17309
|
-
|
|
17310
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
17311
|
-
[]
|
|
17309
|
+
[horizontal]
|
|
17312
17310
|
);
|
|
17313
|
-
const onResize = (0, import_react105.useCallback)(() => scrollRef.current && updateScrollProps(scrollRef.current), []);
|
|
17311
|
+
const onResize = (0, import_react105.useCallback)(() => scrollRef.current && updateScrollProps(scrollRef.current), [updateScrollProps]);
|
|
17314
17312
|
(0, import_utils115.useResizeObserver)({ ref: scrollRef, onResize });
|
|
17315
17313
|
return /* @__PURE__ */ (0, import_jsx_runtime152.jsxs)(
|
|
17316
17314
|
"div",
|
|
@@ -17318,8 +17316,8 @@ function ScrollShadows(props) {
|
|
|
17318
17316
|
css: Css.relative.oh.h(height).w(width).df.fd(!horizontal ? "column" : "row").$,
|
|
17319
17317
|
...tid,
|
|
17320
17318
|
children: [
|
|
17321
|
-
|
|
17322
|
-
|
|
17319
|
+
/* @__PURE__ */ (0, import_jsx_runtime152.jsx)("div", { css: { ...startShadowStyles, opacity: showStartShadow ? 1 : 0 }, "data-chromatic": "ignore" }),
|
|
17320
|
+
/* @__PURE__ */ (0, import_jsx_runtime152.jsx)("div", { css: { ...endShadowStyles, opacity: showEndShadow ? 1 : 0 }, "data-chromatic": "ignore" }),
|
|
17323
17321
|
/* @__PURE__ */ (0, import_jsx_runtime152.jsx)(
|
|
17324
17322
|
"div",
|
|
17325
17323
|
{
|