@homebound/beam 3.54.0 → 3.55.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.d.cts CHANGED
@@ -4522,6 +4522,7 @@ declare const Icons: {
4522
4522
  collapse: JSX.Element;
4523
4523
  drag: JSX.Element;
4524
4524
  move: JSX.Element;
4525
+ merge: JSX.Element;
4525
4526
  x: JSX.Element;
4526
4527
  loader: JSX.Element;
4527
4528
  link: JSX.Element;
package/dist/index.d.ts CHANGED
@@ -4522,6 +4522,7 @@ declare const Icons: {
4522
4522
  collapse: JSX.Element;
4523
4523
  drag: JSX.Element;
4524
4524
  move: JSX.Element;
4525
+ merge: JSX.Element;
4525
4526
  x: JSX.Element;
4526
4527
  loader: JSX.Element;
4527
4528
  link: JSX.Element;
package/dist/index.js CHANGED
@@ -4464,6 +4464,7 @@ var Icons = {
4464
4464
  /* @__PURE__ */ jsx3("path", { d: "M14 20C13.4477 20 13 19.5523 13 19L13 17C13 16.4477 13.4477 16 14 16L16 16C16.5523 16 17 16.4477 17 17L17 19C17 19.5523 16.5523 20 16 20L14 20Z" })
4465
4465
  ] }),
4466
4466
  move: /* @__PURE__ */ jsx3("path", { d: "M18 11H13V6H16L12 2L8 6H11V11H6V8L2 12L6 16V13H11V18H8L12 22L16 18H13V13H18V16L22 12L18 8V11Z" }),
4467
+ merge: /* @__PURE__ */ jsx3("path", { d: "M6.7059 4.4196L11.9943 9.2277L17.2826 4.4207V2H19.6355V5.4616L13.1765 11.3336V15.742H16.6944L11.9885 21.6244L7.2826 15.742H10.812V11.3336L4.3529 5.4616V2H6.7059V4.4196Z" }),
4467
4468
  x: /* @__PURE__ */ jsx3("path", { d: "M16.192 6.34399L11.949 10.586L7.70697 6.34399L6.29297 7.75799L10.535 12L6.29297 16.242L7.70697 17.656L11.949 13.414L16.192 17.656L17.606 16.242L13.364 12L17.606 7.75799L16.192 6.34399Z" }),
4468
4469
  loader: /* @__PURE__ */ jsx3("path", { d: "M12 22C17.421 22 22 17.421 22 12H20C20 16.337 16.337 20 12 20C7.663 20 4 16.337 4 12C4 7.664 7.663 4 12 4V2C6.579 2 2 6.58 2 12C2 17.421 6.579 22 12 22Z" }),
4469
4470
  link: /* @__PURE__ */ jsxs2(Fragment2, { children: [
@@ -12060,9 +12061,16 @@ function ListBox(props) {
12060
12061
  const firstRender = useRef22(true);
12061
12062
  const virtuosoListHeight = useRef22(0);
12062
12063
  const onListHeightChange = (listHeight) => {
12064
+ const prevListHeight = virtuosoListHeight.current;
12063
12065
  virtuosoListHeight.current = listHeight;
12064
12066
  const height = (selectedList.current?.offsetHeight || 0) + listHeight;
12065
- setPopoverHeight(Math.min(popoverMaxHeight, hasSections ? height + persistentItemHeight + sectionSeparatorHeight : height));
12067
+ const next = Math.min(popoverMaxHeight, hasSections ? height + persistentItemHeight + sectionSeparatorHeight : height);
12068
+ setPopoverHeight((prev) => {
12069
+ if (prevListHeight > 0 && listHeight < prevListHeight && next < prev) {
12070
+ return prev;
12071
+ }
12072
+ return next;
12073
+ });
12066
12074
  };
12067
12075
  useEffect12(
12068
12076
  () => {