@homebound/beam 2.386.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 CHANGED
@@ -13848,6 +13848,7 @@ function Accordion(props) {
13848
13848
  index,
13849
13849
  setExpandedIndex,
13850
13850
  titleOnClick,
13851
+ onToggle,
13851
13852
  omitPadding = false,
13852
13853
  xss
13853
13854
  } = props;
@@ -13872,7 +13873,8 @@ function Accordion(props) {
13872
13873
  const toggle = (0, import_react69.useCallback)(() => {
13873
13874
  setExpanded((prev) => !prev);
13874
13875
  if (setExpandedIndex) setExpandedIndex(index);
13875
- }, [index, setExpandedIndex]);
13876
+ if (onToggle) onToggle();
13877
+ }, [index, setExpandedIndex, onToggle]);
13876
13878
  const touchableStyle = (0, import_react69.useMemo)(
13877
13879
  () => ({
13878
13880
  ...Css.df.jcsb.gapPx(12).aic.p2.baseMd.outline("none").onHover.bgGray100.if(!!titleOnClick).baseSb.$,
@@ -17304,11 +17306,9 @@ function ScrollShadows(props) {
17304
17306
  setShowStartShadow(start > 0);
17305
17307
  setShowEndShadow(start + boxSize < end);
17306
17308
  },
17307
- // TODO: validate this eslint-disable. It was automatically ignored as part of https://app.shortcut.com/homebound-team/story/40033/enable-react-hooks-exhaustive-deps-for-react-projects
17308
- // eslint-disable-next-line react-hooks/exhaustive-deps
17309
- []
17309
+ [horizontal]
17310
17310
  );
17311
- const onResize = (0, import_react105.useCallback)(() => scrollRef.current && updateScrollProps(scrollRef.current), []);
17311
+ const onResize = (0, import_react105.useCallback)(() => scrollRef.current && updateScrollProps(scrollRef.current), [updateScrollProps]);
17312
17312
  (0, import_utils115.useResizeObserver)({ ref: scrollRef, onResize });
17313
17313
  return /* @__PURE__ */ (0, import_jsx_runtime152.jsxs)(
17314
17314
  "div",
@@ -17316,8 +17316,8 @@ function ScrollShadows(props) {
17316
17316
  css: Css.relative.oh.h(height).w(width).df.fd(!horizontal ? "column" : "row").$,
17317
17317
  ...tid,
17318
17318
  children: [
17319
- showStartShadow && /* @__PURE__ */ (0, import_jsx_runtime152.jsx)("div", { css: startShadowStyles }),
17320
- showEndShadow && /* @__PURE__ */ (0, import_jsx_runtime152.jsx)("div", { css: endShadowStyles }),
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" }),
17321
17321
  /* @__PURE__ */ (0, import_jsx_runtime152.jsx)(
17322
17322
  "div",
17323
17323
  {