@homebound/beam 2.414.0-alpha.3 → 2.414.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.js CHANGED
@@ -8268,10 +8268,10 @@ function RowImpl(props) {
8268
8268
  const maybeSticky = (isGridCellContent(maybeContent) && maybeContent.sticky || column2.sticky) ?? void 0;
8269
8269
  const maybeStickyColumnStyles = maybeSticky && columnSizes ? {
8270
8270
  ...Css.sticky.z(zIndices.stickyColumns).bgWhite.$,
8271
- // For flex layouts, all sticky columns should have left/right: 0
8272
- // The flex layout handles their adjacency based on their widths
8273
- ...maybeSticky === "left" ? Css.left(0).$ : {},
8274
- ...maybeSticky === "right" ? Css.right(0).$ : {}
8271
+ ...maybeSticky === "left" ? Css.left(columnIndex === 0 ? 0 : `calc(${columnSizes.slice(0, columnIndex).join(" + ")})`).$ : {},
8272
+ ...maybeSticky === "right" ? Css.right(
8273
+ columnIndex + 1 === columnSizes.length ? 0 : `calc(${columnSizes.slice(columnIndex + 1 - columnSizes.length).join(" + ")})`
8274
+ ).$ : {}
8275
8275
  } : {};
8276
8276
  minStickyLeftOffset += maybeSticky === "left" ? parseInt(columnSizes[columnIndex].replace("px", ""), 10) : 0;
8277
8277
  const cellId = `${row.kind}_${row.id}_${column2.id}`;
@@ -8337,7 +8337,7 @@ function RowImpl(props) {
8337
8337
  const cellElementWithHandle = React6.cloneElement(cellElement, {
8338
8338
  css: {
8339
8339
  ...cellElement.props.css || {},
8340
- ...Css.relative.$
8340
+ ...!maybeSticky && Css.relative.$
8341
8341
  },
8342
8342
  children: /* @__PURE__ */ jsxs20(Fragment10, { children: [
8343
8343
  cellElement.props.children,
@@ -16668,7 +16668,6 @@ function Filters(props) {
16668
16668
  Button,
16669
16669
  {
16670
16670
  label: "More Filters",
16671
- size: "md",
16672
16671
  endAdornment: /* @__PURE__ */ jsx138(CountBadge, { count: numModalFilters, hideIfZero: true }),
16673
16672
  variant: "secondary",
16674
16673
  onClick: () => openModal({
@@ -16678,7 +16677,7 @@ function Filters(props) {
16678
16677
  ...testId.moreFiltersBtn
16679
16678
  }
16680
16679
  ),
16681
- Object.keys(filter).length > 0 && /* @__PURE__ */ jsx138("div", { children: /* @__PURE__ */ jsx138(Button, { label: "Clear", size: "md", variant: "tertiary", onClick: () => onChange({}), ...testId.clearBtn }) })
16680
+ Object.keys(filter).length > 0 && /* @__PURE__ */ jsx138("div", { children: /* @__PURE__ */ jsx138(Button, { label: "Clear", variant: "tertiary", onClick: () => onChange({}), ...testId.clearBtn }) })
16682
16681
  ]
16683
16682
  }
16684
16683
  );
@@ -16772,7 +16771,7 @@ function FilterDropdownMenu(props) {
16772
16771
  }
16773
16772
  ),
16774
16773
  renderFilters(),
16775
- activeFilterCount > 0 && /* @__PURE__ */ jsx140(Button, { label: "Clear", size: "md", variant: "tertiary", onClick: () => onChange({}), ...testId.clearBtn })
16774
+ activeFilterCount > 0 && /* @__PURE__ */ jsx140(Button, { label: "Clear", variant: "tertiary", onClick: () => onChange({}), ...testId.clearBtn })
16776
16775
  ] }),
16777
16776
  !isOpen && /* @__PURE__ */ jsx140(
16778
16777
  FilterChips,
@@ -16824,7 +16823,7 @@ function FilterChips({
16824
16823
  if (chips.length === 0) return null;
16825
16824
  return /* @__PURE__ */ jsxs68("div", { css: Css.df.gap1.fww.aic.order(1).$, children: [
16826
16825
  chips,
16827
- /* @__PURE__ */ jsx140(Button, { label: "Clear", size: "md", variant: "tertiary", onClick: onClear, ...testId.clearBtn })
16826
+ /* @__PURE__ */ jsx140(Button, { label: "Clear", variant: "tertiary", onClick: onClear, ...testId.clearBtn })
16828
16827
  ] });
16829
16828
  }
16830
16829
  function buildFilterImpls(filterDefs) {
@@ -17722,12 +17721,11 @@ function DnDGrid(props) {
17722
17721
  (e) => {
17723
17722
  if (!reorderViaKeyboard.current && dragEl.current && gridEl.current) {
17724
17723
  initReorder();
17725
- const gridRect = gridEl.current.getBoundingClientRect();
17726
17724
  const rect = dragEl.current.getBoundingClientRect();
17727
17725
  const clientX = "clientX" in e ? e.clientX : e.touches[0].clientX;
17728
17726
  const clientY = "clientY" in e ? e.clientY : e.touches[0].clientY;
17729
- const top = rect.top - gridRect.top;
17730
- const left = rect.left - gridRect.left;
17727
+ const top = rect.top;
17728
+ const left = rect.left;
17731
17729
  transformFrom.current = { x: clientX - left, y: clientY - top };
17732
17730
  cloneEl.current = dragEl.current.cloneNode();
17733
17731
  cloneEl.current?.setAttribute(