@homebound/beam 2.149.0 → 2.150.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.
@@ -308,10 +308,12 @@ export declare type GridCellContent = {
308
308
  indent?: 1 | 2;
309
309
  colspan?: number;
310
310
  typeScale?: Typography;
311
- /** Allows the cell to stay in place when the user scrolls horizontally */
311
+ /** Allows the cell to stay in place when the user scrolls horizontally, i.e. frozen columns. */
312
312
  sticky?: "left" | "right";
313
313
  /** If provided, content of the cell will be wrapped within a <button /> or <a /> tag depending on if the value is a function or a string. */
314
314
  onClick?: () => {} | string;
315
+ /** Custom css to apply directly to this cell, i.e. cell-specific borders. */
316
+ css?: Properties;
315
317
  };
316
318
  declare type MaybeFn<T> = T | (() => T);
317
319
  /**
@@ -588,6 +588,8 @@ function GridRow(props) {
588
588
  : {}),
589
589
  // Add any cell specific style overrides
590
590
  ...(isGridCellContent(maybeContent) && maybeContent.typeScale ? Css_1.Css[maybeContent.typeScale].$ : {}),
591
+ // And any cell specific css
592
+ ...(isGridCellContent(maybeContent) && maybeContent.css ? maybeContent.css : {}),
591
593
  // Define the width of the column on each cell. Supports col spans.
592
594
  ...{
593
595
  width: `calc(${columnSizes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@homebound/beam",
3
- "version": "2.149.0",
3
+ "version": "2.150.0",
4
4
  "author": "Homebound",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",