@homebound/beam 4.47.4 → 4.48.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
@@ -6957,6 +6957,8 @@ function memoizedTableStyles() {
6957
6957
  } = props;
6958
6958
  const key = safeKeys(props).sort().map((k) => `${k}_${props[k]}`).join("|");
6959
6959
  if (!cache[key]) {
6960
+ const borderAll = bordered === true || bordered === "all";
6961
+ const borderTop = borderAll || bordered === "top";
6960
6962
  const alignItems = vAlign === "center" ? "center" : vAlign === "top" ? "flex-start" : "flex-end";
6961
6963
  const groupedLevels = {
6962
6964
  0: {
@@ -7015,7 +7017,7 @@ function memoizedTableStyles() {
7015
7017
  "--backgroundColor": "var(--b-surface)"
7016
7018
  }]
7017
7019
  },
7018
- ...bordered && {
7020
+ ...borderAll && {
7019
7021
  borderLeftStyle: "bls_solid",
7020
7022
  borderLeftWidth: "blw_1px",
7021
7023
  borderRightStyle: "brs_solid",
@@ -7154,14 +7156,14 @@ function memoizedTableStyles() {
7154
7156
  } : {}
7155
7157
  }
7156
7158
  },
7157
- firstCellCss: bordered ? {
7159
+ firstCellCss: borderAll ? {
7158
7160
  borderLeftStyle: "bls_solid",
7159
7161
  borderLeftWidth: "blw_1px",
7160
7162
  borderColor: ["bc_var", {
7161
7163
  "--borderColor": "var(--b-surface-separator)"
7162
7164
  }]
7163
7165
  } : void 0,
7164
- lastCellCss: bordered ? {
7166
+ lastCellCss: borderAll ? {
7165
7167
  borderRightStyle: "brs_solid",
7166
7168
  borderRightWidth: "brw_1px",
7167
7169
  borderColor: ["bc_var", {
@@ -7173,7 +7175,7 @@ function memoizedTableStyles() {
7173
7175
  "--borderColor": "var(--b-surface-separator)"
7174
7176
  }]
7175
7177
  },
7176
- firstRowCellCss: bordered ? {
7178
+ firstRowCellCss: borderTop ? {
7177
7179
  borderTopStyle: "bts_solid",
7178
7180
  borderTopWidth: "btw_1px",
7179
7181
  borderColor: ["bc_var", {
@@ -7188,8 +7190,8 @@ function memoizedTableStyles() {
7188
7190
  borderTopRightRadius: "btrr_8px"
7189
7191
  } : void 0,
7190
7192
  // Keep `betweenRowsCss` on all body rows, but on the final body row
7191
- // remove the inset shadow and, when bordered, replace it with a true bottom border.
7192
- lastRowCellCss: bordered ? {
7193
+ // remove the inset shadow and, when fully bordered, replace it with a true bottom border.
7194
+ lastRowCellCss: borderAll ? {
7193
7195
  boxShadow: "bsh0",
7194
7196
  borderBottomStyle: "bbs_solid",
7195
7197
  borderBottomWidth: "bbw_1px",
@@ -7199,11 +7201,11 @@ function memoizedTableStyles() {
7199
7201
  } : {
7200
7202
  boxShadow: "bsh0"
7201
7203
  },
7202
- // Only apply bottom corner radii to the final body-row cells when using `bordered`.
7203
- lastRowFirstCellCss: bordered ? {
7204
+ // Only apply bottom corner radii to the final body-row cells when fully bordered.
7205
+ lastRowFirstCellCss: borderAll ? {
7204
7206
  borderBottomLeftRadius: "bblr_8px"
7205
7207
  } : void 0,
7206
- lastRowLastCellCss: bordered ? {
7208
+ lastRowLastCellCss: borderAll ? {
7207
7209
  borderBottomRightRadius: "bbrr_8px"
7208
7210
  } : void 0,
7209
7211
  presentationSettings: {
@@ -28392,6 +28394,7 @@ function GridTableLayoutComponent(props) {
28392
28394
  const rightPane = resolveWithRightPaneOptions(withRightPane);
28393
28395
  const tid = useTestIds(props);
28394
28396
  const host = useGridTableLayoutHost();
28397
+ const insetHandled = useContentInsetHandled();
28395
28398
  const includeColumnGutters = host.kind === "document-scroll" || host.kind === "modal";
28396
28399
  const columns = tableProps.columns;
28397
28400
  const hasHideableColumns = (0, import_react142.useMemo)(() => {
@@ -28450,7 +28453,7 @@ function GridTableLayoutComponent(props) {
28450
28453
  }
28451
28454
  );
28452
28455
  const cardAs = view === "card" ? "card" : void 0;
28453
- const tableStyle = (0, import_react142.useMemo)(() => getDefaultStyle(tableProps.style), [tableProps.style]);
28456
+ const tableStyle = (0, import_react142.useMemo)(() => getDefaultStyle(tableProps.style, insetHandled), [tableProps.style, insetHandled]);
28454
28457
  const tableBody = /* @__PURE__ */ (0, import_jsx_runtime204.jsx)(import_jsx_runtime204.Fragment, { children: isGridTableProps(tableProps) ? /* @__PURE__ */ (0, import_jsx_runtime204.jsx)(
28455
28458
  GridTable,
28456
28459
  {
@@ -28493,9 +28496,9 @@ function GridTableLayoutComponent(props) {
28493
28496
  );
28494
28497
  }
28495
28498
  var GridTableLayout = import_react142.default.memo(GridTableLayoutComponent);
28496
- function getDefaultStyle(style) {
28499
+ function getDefaultStyle(style, insetHandled) {
28497
28500
  if (style !== void 0 && !isGridStyleDef(style)) return style;
28498
- return { allWhite: true, ...style };
28501
+ return { allWhite: true, ...!insetHandled && { bordered: "top" }, ...style };
28499
28502
  }
28500
28503
  function validateColumns(columns) {
28501
28504
  for (const col of columns) {