@itwin/itwinui-react 2.11.4 → 2.11.6

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,17 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.11.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1341](https://github.com/iTwin/iTwinUI/pull/1341): Table: fixed action column header content alignment when using globalFilterValue.
8
+
9
+ ## 2.11.5
10
+
11
+ ### Patch Changes
12
+
13
+ - [#1329](https://github.com/iTwin/iTwinUI/pull/1329): Fixed an issue where the visually hidden `FileUploadCard.Input` was inadvertently showing when focused.
14
+
3
15
  ## 2.11.4
4
16
 
5
17
  ### Patch Changes
@@ -109,7 +109,7 @@ const FileUploadCardInput = React.forwardRef((props, ref) => {
109
109
  }
110
110
  }, [id, inputId, setInputId]);
111
111
  return (React.createElement(React.Fragment, null,
112
- React.createElement(index_js_1.VisuallyHidden, { as: 'input', type: 'file', onChange: (0, index_js_1.mergeEventHandlers)(onChange, (e) => {
112
+ React.createElement(index_js_1.VisuallyHidden, { as: 'input', type: 'file', unhideOnFocus: false, onChange: (0, index_js_1.mergeEventHandlers)(onChange, (e) => {
113
113
  const _files = Array.from(e.currentTarget.files || []);
114
114
  onFilesChange === null || onFilesChange === void 0 ? void 0 : onFilesChange(_files);
115
115
  setInternalFiles(_files);
@@ -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);
@@ -80,7 +80,7 @@ const FileUploadCardInput = React.forwardRef((props, ref) => {
80
80
  }
81
81
  }, [id, inputId, setInputId]);
82
82
  return (React.createElement(React.Fragment, null,
83
- React.createElement(VisuallyHidden, { as: 'input', type: 'file', onChange: mergeEventHandlers(onChange, (e) => {
83
+ React.createElement(VisuallyHidden, { as: 'input', type: 'file', unhideOnFocus: false, onChange: mergeEventHandlers(onChange, (e) => {
84
84
  const _files = Array.from(e.currentTarget.files || []);
85
85
  onFilesChange === null || onFilesChange === void 0 ? void 0 : onFilesChange(_files);
86
86
  setInternalFiles(_files);
@@ -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.4",
3
+ "version": "2.11.6",
4
4
  "author": "Bentley Systems",
5
5
  "license": "MIT",
6
6
  "main": "cjs/index.js",