@homebound/beam 2.183.0 → 2.183.1

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.
@@ -12,4 +12,4 @@ export interface GridStyleDef {
12
12
  /** Enables cells Highlight and hover */
13
13
  cellHighlight?: boolean;
14
14
  }
15
- export declare const getTableStyles: (props?: GridStyleDef | undefined) => GridStyle;
15
+ export declare const getTableStyles: (props?: GridStyleDef) => GridStyle;
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getTableStyles = exports.cardStyle = exports.condensedStyle = exports.defaultStyle = void 0;
4
4
  const Css_1 = require("../../Css");
5
+ const utils_1 = require("../../utils");
5
6
  /** Our original table look & feel/style. */
6
7
  exports.defaultStyle = {
7
8
  rootCss: Css_1.Css.gray700.$,
@@ -43,9 +44,12 @@ exports.cardStyle = {
43
44
  };
44
45
  function memoizedTableStyles() {
45
46
  const cache = {};
46
- return (props) => {
47
- const { inlineEditing = false, grouped = false, rowHeight = "flexible", cellHighlight } = props || {};
48
- const key = `${inlineEditing}|${grouped}|${rowHeight}`;
47
+ return (props = {}) => {
48
+ const { inlineEditing = false, grouped = false, rowHeight = "flexible", cellHighlight = false } = props;
49
+ const key = (0, utils_1.safeKeys)(props)
50
+ .sort()
51
+ .map((k) => `${k}_${props[k]}`)
52
+ .join("|");
49
53
  if (!cache[key]) {
50
54
  const groupedLevels = {
51
55
  0: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@homebound/beam",
3
- "version": "2.183.0",
3
+ "version": "2.183.1",
4
4
  "author": "Homebound",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",