@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.cjs +10 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +10 -12
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -8636,10 +8636,10 @@ function RowImpl(props) {
|
|
|
8636
8636
|
const maybeSticky = (isGridCellContent(maybeContent) && maybeContent.sticky || column2.sticky) ?? void 0;
|
|
8637
8637
|
const maybeStickyColumnStyles = maybeSticky && columnSizes ? {
|
|
8638
8638
|
...Css.sticky.z(zIndices.stickyColumns).bgWhite.$,
|
|
8639
|
-
|
|
8640
|
-
|
|
8641
|
-
|
|
8642
|
-
|
|
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
|
+
).$ : {}
|
|
8643
8643
|
} : {};
|
|
8644
8644
|
minStickyLeftOffset += maybeSticky === "left" ? parseInt(columnSizes[columnIndex].replace("px", ""), 10) : 0;
|
|
8645
8645
|
const cellId = `${row.kind}_${row.id}_${column2.id}`;
|
|
@@ -8705,7 +8705,7 @@ function RowImpl(props) {
|
|
|
8705
8705
|
const cellElementWithHandle = import_react33.default.cloneElement(cellElement, {
|
|
8706
8706
|
css: {
|
|
8707
8707
|
...cellElement.props.css || {},
|
|
8708
|
-
|
|
8708
|
+
...!maybeSticky && Css.relative.$
|
|
8709
8709
|
},
|
|
8710
8710
|
children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_jsx_runtime34.Fragment, { children: [
|
|
8711
8711
|
cellElement.props.children,
|
|
@@ -17027,7 +17027,6 @@ function Filters(props) {
|
|
|
17027
17027
|
Button,
|
|
17028
17028
|
{
|
|
17029
17029
|
label: "More Filters",
|
|
17030
|
-
size: "md",
|
|
17031
17030
|
endAdornment: /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(CountBadge, { count: numModalFilters, hideIfZero: true }),
|
|
17032
17031
|
variant: "secondary",
|
|
17033
17032
|
onClick: () => openModal({
|
|
@@ -17037,7 +17036,7 @@ function Filters(props) {
|
|
|
17037
17036
|
...testId.moreFiltersBtn
|
|
17038
17037
|
}
|
|
17039
17038
|
),
|
|
17040
|
-
Object.keys(filter).length > 0 && /* @__PURE__ */ (0, import_jsx_runtime138.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(Button, { label: "Clear",
|
|
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 }) })
|
|
17041
17040
|
]
|
|
17042
17041
|
}
|
|
17043
17042
|
);
|
|
@@ -17131,7 +17130,7 @@ function FilterDropdownMenu(props) {
|
|
|
17131
17130
|
}
|
|
17132
17131
|
),
|
|
17133
17132
|
renderFilters(),
|
|
17134
|
-
activeFilterCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(Button, { label: "Clear",
|
|
17133
|
+
activeFilterCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(Button, { label: "Clear", variant: "tertiary", onClick: () => onChange({}), ...testId.clearBtn })
|
|
17135
17134
|
] }),
|
|
17136
17135
|
!isOpen && /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(
|
|
17137
17136
|
FilterChips,
|
|
@@ -17183,7 +17182,7 @@ function FilterChips({
|
|
|
17183
17182
|
if (chips.length === 0) return null;
|
|
17184
17183
|
return /* @__PURE__ */ (0, import_jsx_runtime140.jsxs)("div", { css: Css.df.gap1.fww.aic.order(1).$, children: [
|
|
17185
17184
|
chips,
|
|
17186
|
-
/* @__PURE__ */ (0, import_jsx_runtime140.jsx)(Button, { label: "Clear",
|
|
17185
|
+
/* @__PURE__ */ (0, import_jsx_runtime140.jsx)(Button, { label: "Clear", variant: "tertiary", onClick: onClear, ...testId.clearBtn })
|
|
17187
17186
|
] });
|
|
17188
17187
|
}
|
|
17189
17188
|
function buildFilterImpls(filterDefs) {
|
|
@@ -18081,12 +18080,11 @@ function DnDGrid(props) {
|
|
|
18081
18080
|
(e) => {
|
|
18082
18081
|
if (!reorderViaKeyboard.current && dragEl.current && gridEl.current) {
|
|
18083
18082
|
initReorder();
|
|
18084
|
-
const gridRect = gridEl.current.getBoundingClientRect();
|
|
18085
18083
|
const rect = dragEl.current.getBoundingClientRect();
|
|
18086
18084
|
const clientX = "clientX" in e ? e.clientX : e.touches[0].clientX;
|
|
18087
18085
|
const clientY = "clientY" in e ? e.clientY : e.touches[0].clientY;
|
|
18088
|
-
const top = rect.top
|
|
18089
|
-
const left = rect.left
|
|
18086
|
+
const top = rect.top;
|
|
18087
|
+
const left = rect.left;
|
|
18090
18088
|
transformFrom.current = { x: clientX - left, y: clientY - top };
|
|
18091
18089
|
cloneEl.current = dragEl.current.cloneNode();
|
|
18092
18090
|
cloneEl.current?.setAttribute(
|