@itwin/itwinui-react 2.11.5 → 2.11.7

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/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.11.7
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1376](https://github.com/iTwin/iTwinUI/pull/1376): Fix issue where a nested expandable block's expander icon would always display as expanded.
8
+ - Updated dependencies:
9
+ - @itwin/itwinui-css@1.11.2
10
+
11
+ ## 2.11.6
12
+
13
+ ### Patch Changes
14
+
15
+ - [#1341](https://github.com/iTwin/iTwinUI/pull/1341): Table: fixed action column header content alignment when using globalFilterValue.
16
+
3
17
  ## 2.11.5
4
18
 
5
19
  ### Patch Changes
@@ -244,7 +244,7 @@ const Table = (props) => {
244
244
  return result;
245
245
  }, {});
246
246
  const areFiltersSet = allColumns.some((column) => column.filterValue != null && column.filterValue !== '') || !!globalFilterValue;
247
- const showFilterButton = (column) => (data.length !== 0 || areFiltersSet) && column.canFilter;
247
+ const showFilterButton = (column) => (data.length !== 0 || areFiltersSet) && column.canFilter && !!column.Filter;
248
248
  const showSortButton = (column) => data.length !== 0 && column.canSort;
249
249
  const onRowClickHandler = React.useCallback((event, row) => {
250
250
  const isDisabled = isRowDisabled === null || isRowDisabled === void 0 ? void 0 : isRowDisabled(row.original);
@@ -215,7 +215,7 @@ export const Table = (props) => {
215
215
  return result;
216
216
  }, {});
217
217
  const areFiltersSet = allColumns.some((column) => column.filterValue != null && column.filterValue !== '') || !!globalFilterValue;
218
- const showFilterButton = (column) => (data.length !== 0 || areFiltersSet) && column.canFilter;
218
+ const showFilterButton = (column) => (data.length !== 0 || areFiltersSet) && column.canFilter && !!column.Filter;
219
219
  const showSortButton = (column) => data.length !== 0 && column.canSort;
220
220
  const onRowClickHandler = React.useCallback((event, row) => {
221
221
  const isDisabled = isRowDisabled === null || isRowDisabled === void 0 ? void 0 : isRowDisabled(row.original);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itwin/itwinui-react",
3
- "version": "2.11.5",
3
+ "version": "2.11.7",
4
4
  "author": "Bentley Systems",
5
5
  "license": "MIT",
6
6
  "main": "cjs/index.js",
@@ -67,7 +67,7 @@
67
67
  "dev:types": "concurrently \"tsc -p tsconfig.cjs.json --emitDeclarationOnly --watch --preserveWatchOutput\" \"tsc -p tsconfig.esm.json --emitDeclarationOnly --watch --preserveWatchOutput\""
68
68
  },
69
69
  "dependencies": {
70
- "@itwin/itwinui-css": "^1.11.1",
70
+ "@itwin/itwinui-css": "^1.11.2",
71
71
  "@itwin/itwinui-illustrations-react": "^2.0.0",
72
72
  "@itwin/itwinui-variables": "^2.0.0",
73
73
  "@tippyjs/react": "^4.2.6",