@homebound/beam 2.235.0 → 2.235.2

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.
@@ -92,11 +92,11 @@ const variantStyles = (contrast) => ({
92
92
  focusStyles: Css_1.Css.bshFocus.if(contrast).boxShadow(`0 0 0 2px ${Css_1.Palette.White}`).$,
93
93
  },
94
94
  tertiary: {
95
- baseStyles: Css_1.Css.bgTransparent.lightBlue700.if(contrast).lightBlue400.$,
95
+ baseStyles: Css_1.Css.bgTransparent.lightBlue700.if(contrast).white.$,
96
96
  hoverStyles: Css_1.Css.bgGray100.if(contrast).bgGray700.white.$,
97
97
  pressedStyles: Css_1.Css.lightBlue900.if(contrast).bgWhite.gray900.$,
98
98
  disabledStyles: Css_1.Css.gray400.if(contrast).gray700.$,
99
- focusStyles: Css_1.Css.bshFocus.if(contrast).boxShadow(`0 0 0 2px ${Css_1.Palette.LightBlue700}`).bgGray700.white.$,
99
+ focusStyles: Css_1.Css.bshFocus.if(contrast).boxShadow(`0 0 0 2px ${Css_1.Palette.LightBlue400}`).bgGray700.white.$,
100
100
  },
101
101
  tertiaryDanger: {
102
102
  baseStyles: Css_1.Css.bgTransparent.red500.if(contrast).red500.$,
@@ -181,12 +181,14 @@ class TableState {
181
181
  this.rows = rows;
182
182
  }
183
183
  setColumns(columns, visibleColumnsStorageKey) {
184
+ const isInitial = !this.columns || this.columns.length === 0;
184
185
  if (columns !== this.columns) {
185
186
  this.columns = columns;
186
187
  this.visibleColumnsStorageKey = visibleColumnsStorageKey !== null && visibleColumnsStorageKey !== void 0 ? visibleColumnsStorageKey : (0, change_case_1.camelCase)(columns.map((c) => c.id).join());
187
188
  this.visibleColumns.replace(readOrSetLocalVisibleColumnState(columns, this.visibleColumnsStorageKey));
188
189
  const expandedColumnIds = columns.filter((c) => c.initExpanded).map((c) => c.id);
189
- this.expandedColumns.replace(expandedColumnIds);
190
+ if (isInitial)
191
+ this.expandedColumns.replace(expandedColumnIds);
190
192
  }
191
193
  }
192
194
  // load and trigger column to be expanded
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@homebound/beam",
3
- "version": "2.235.0",
3
+ "version": "2.235.2",
4
4
  "author": "Homebound",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",