@homebound/beam 2.386.0 → 2.387.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/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.$,