@homebound/beam 2.414.0-alpha.2 → 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.cjs CHANGED
@@ -7052,6 +7052,7 @@ function Button(props) {
7052
7052
  download,
7053
7053
  contrast = false,
7054
7054
  forceFocusStyles = false,
7055
+ active = false,
7055
7056
  labelInFlight,
7056
7057
  ...otherProps
7057
7058
  } = props;
@@ -7105,8 +7106,8 @@ function Button(props) {
7105
7106
  css: {
7106
7107
  ...Css.buttonBase.tt("inherit").$,
7107
7108
  ...baseStyles5,
7108
- ...isHovered && !isPressed ? hoverStyles4 : {},
7109
- ...isPressed ? pressedStyles3 : {},
7109
+ ...isHovered && !isPressed && !active ? hoverStyles4 : {},
7110
+ ...isPressed || active ? pressedStyles3 : {},
7110
7111
  ...isDisabled || asyncInProgress ? { ...disabledStyles4, ...Css.cursorNotAllowed.$ } : {},
7111
7112
  ...isFocusVisible || forceFocusStyles ? focusStyles2 : {}
7112
7113
  },
@@ -7146,7 +7147,7 @@ var variantStyles = (contrast) => ({
7146
7147
  secondaryBlack: {
7147
7148
  baseStyles: Css.bgWhite.bcGray300.bw1.ba.gray900.$,
7148
7149
  hoverStyles: Css.bgGray100.if(contrast).bgGray700.white.$,
7149
- pressedStyles: Css.gray900.if(contrast).bgWhite.gray900.$,
7150
+ pressedStyles: Css.bgGray100.gray900.if(contrast).bgWhite.gray900.$,
7150
7151
  disabledStyles: Css.gray400.if(contrast).gray700.$,
7151
7152
  focusStyles: Css.boxShadow(`0px 0px 0px 2px ${"rgba(255,255,255,1)" /* White */}, 0px 0px 0px 4px ${"rgba(36, 36, 36, 1)" /* Gray900 */}`).if(contrast).boxShadow(`0px 0px 0px 2px ${"rgba(175, 175, 175, 1)" /* Gray500 */}`).$
7152
7153
  },
@@ -8635,10 +8636,10 @@ function RowImpl(props) {
8635
8636
  const maybeSticky = (isGridCellContent(maybeContent) && maybeContent.sticky || column2.sticky) ?? void 0;
8636
8637
  const maybeStickyColumnStyles = maybeSticky && columnSizes ? {
8637
8638
  ...Css.sticky.z(zIndices.stickyColumns).bgWhite.$,
8638
- // For flex layouts, all sticky columns should have left/right: 0
8639
- // The flex layout handles their adjacency based on their widths
8640
- ...maybeSticky === "left" ? Css.left(0).$ : {},
8641
- ...maybeSticky === "right" ? Css.right(0).$ : {}
8639
+ ...maybeSticky === "left" ? Css.left(columnIndex === 0 ? 0 : `calc(${columnSizes.slice(0, columnIndex).join(" + ")})`).$ : {},
8640
+ ...maybeSticky === "right" ? Css.right(
8641
+ columnIndex + 1 === columnSizes.length ? 0 : `calc(${columnSizes.slice(columnIndex + 1 - columnSizes.length).join(" + ")})`
8642
+ ).$ : {}
8642
8643
  } : {};
8643
8644
  minStickyLeftOffset += maybeSticky === "left" ? parseInt(columnSizes[columnIndex].replace("px", ""), 10) : 0;
8644
8645
  const cellId = `${row.kind}_${row.id}_${column2.id}`;
@@ -8704,7 +8705,7 @@ function RowImpl(props) {
8704
8705
  const cellElementWithHandle = import_react33.default.cloneElement(cellElement, {
8705
8706
  css: {
8706
8707
  ...cellElement.props.css || {},
8707
- ...Css.relative.$
8708
+ ...!maybeSticky && Css.relative.$
8708
8709
  },
8709
8710
  children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_jsx_runtime34.Fragment, { children: [
8710
8711
  cellElement.props.children,
@@ -17026,7 +17027,6 @@ function Filters(props) {
17026
17027
  Button,
17027
17028
  {
17028
17029
  label: "More Filters",
17029
- size: "md",
17030
17030
  endAdornment: /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(CountBadge, { count: numModalFilters, hideIfZero: true }),
17031
17031
  variant: "secondary",
17032
17032
  onClick: () => openModal({
@@ -17036,7 +17036,7 @@ function Filters(props) {
17036
17036
  ...testId.moreFiltersBtn
17037
17037
  }
17038
17038
  ),
17039
- Object.keys(filter).length > 0 && /* @__PURE__ */ (0, import_jsx_runtime138.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(Button, { label: "Clear", size: "md", variant: "tertiary", onClick: () => onChange({}), ...testId.clearBtn }) })
17039
+ Object.keys(filter).length > 0 && /* @__PURE__ */ (0, import_jsx_runtime138.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(Button, { label: "Clear", variant: "tertiary", onClick: () => onChange({}), ...testId.clearBtn }) })
17040
17040
  ]
17041
17041
  }
17042
17042
  );
@@ -17111,6 +17111,7 @@ function FilterDropdownMenu(props) {
17111
17111
  ] }),
17112
17112
  variant: "secondaryBlack",
17113
17113
  onClick: () => setIsOpen(!isOpen),
17114
+ active: isOpen,
17114
17115
  ...testId.button
17115
17116
  }
17116
17117
  ),
@@ -17129,7 +17130,7 @@ function FilterDropdownMenu(props) {
17129
17130
  }
17130
17131
  ),
17131
17132
  renderFilters(),
17132
- activeFilterCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(Button, { label: "Clear", size: "md", variant: "tertiary", onClick: () => onChange({}), ...testId.clearBtn })
17133
+ activeFilterCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(Button, { label: "Clear", variant: "tertiary", onClick: () => onChange({}), ...testId.clearBtn })
17133
17134
  ] }),
17134
17135
  !isOpen && /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(
17135
17136
  FilterChips,
@@ -17181,7 +17182,7 @@ function FilterChips({
17181
17182
  if (chips.length === 0) return null;
17182
17183
  return /* @__PURE__ */ (0, import_jsx_runtime140.jsxs)("div", { css: Css.df.gap1.fww.aic.order(1).$, children: [
17183
17184
  chips,
17184
- /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(Button, { label: "Clear", size: "md", variant: "tertiary", onClick: onClear, ...testId.clearBtn })
17185
+ /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(Button, { label: "Clear", variant: "tertiary", onClick: onClear, ...testId.clearBtn })
17185
17186
  ] });
17186
17187
  }
17187
17188
  function buildFilterImpls(filterDefs) {
@@ -18079,12 +18080,11 @@ function DnDGrid(props) {
18079
18080
  (e) => {
18080
18081
  if (!reorderViaKeyboard.current && dragEl.current && gridEl.current) {
18081
18082
  initReorder();
18082
- const gridRect = gridEl.current.getBoundingClientRect();
18083
18083
  const rect = dragEl.current.getBoundingClientRect();
18084
18084
  const clientX = "clientX" in e ? e.clientX : e.touches[0].clientX;
18085
18085
  const clientY = "clientY" in e ? e.clientY : e.touches[0].clientY;
18086
- const top = rect.top - gridRect.top;
18087
- const left = rect.left - gridRect.left;
18086
+ const top = rect.top;
18087
+ const left = rect.left;
18088
18088
  transformFrom.current = { x: clientX - left, y: clientY - top };
18089
18089
  cloneEl.current = dragEl.current.cloneNode();
18090
18090
  cloneEl.current?.setAttribute(