@itwin/itwinui-react 3.13.0 → 3.13.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.
package/CHANGELOG.md CHANGED
@@ -1,10 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.13.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#2147](https://github.com/iTwin/iTwinUI/pull/2147): Fixed a CSS issue in `ExpandableBlock` where its content wouldn't stay constrained by the width of the parent.
8
+ - [#2148](https://github.com/iTwin/iTwinUI/pull/2148): Fixed regression where the value of the `toggleRowSelected` action for the `Table` would be undefined when `selectSubRows` was set to `false`.
9
+
3
10
  ## 3.13.0
4
11
 
5
12
  ### Minor Changes
6
13
 
7
14
  - [#2106](https://github.com/iTwin/iTwinUI/pull/2106): All internal CSS class prefixes have been changed to prevent style conflicts across minor versions.
15
+
8
16
  - While this is _not_ considered a breaking change according to our [support policy](https://github.com/iTwin/iTwinUI/wiki/Support-policy), this change might affect you if you ignore our pleas to not rely on these internal class names. The recommendation is to pass your own custom `className` through props.
9
17
 
10
18
  - [#2131](https://github.com/iTwin/iTwinUI/pull/2131): Development-only warnings will now be properly excluded from the production build. This is done using a separate `"development"` entrypoint listed in `package.json#exports`.
@@ -12,20 +20,22 @@
12
20
  - [#2135](https://github.com/iTwin/iTwinUI/pull/2135): Changed the column manager from a `DropdownMenu` to a `Popover` to fix invalid markup and accessibility issues.
13
21
 
14
22
  - Added dependency on `@tanstack/react-virtual` to replace the custom virtual-scroll implementation. This affects the `enableVirtualization` prop in `ComboBox`, `Table`, and `Tree`.
23
+
15
24
  - [#2061](https://github.com/iTwin/iTwinUI/pull/2061): Virtualized `ComboBox` now correctly supports dynamic sizing, e.g. when options both with and without `subLabel` are present.
16
25
  - [#2092](https://github.com/iTwin/iTwinUI/pull/2092): Virtualized `Table` has been improved so that scrolling no longer jumps when rows are scrolled past.
17
26
  - [#2139](https://github.com/iTwin/iTwinUI/pull/2139): Virtualized `Tree` no longer requires a wrapping scrollable element, since the tree itself is scrollable now.
18
27
  <details>
19
28
  <summary>Diff</summary>
20
29
 
21
- ```diff
22
- - <div style={{overflow: 'auto', height: 'min(400px, 90vh)'}}>
23
- <Tree
24
- enableVirtualization
25
- + style={{height: 'min(400px, 90vh)'}}
26
- />
27
- - </div>
28
- ```
30
+ ```diff
31
+ - <div style={{overflow: 'auto', height: 'min(400px, 90vh)'}}>
32
+ <Tree
33
+ enableVirtualization
34
+ + style={{height: 'min(400px, 90vh)'}}
35
+ />
36
+ - </div>
37
+ ```
38
+
29
39
  </details>
30
40
 
31
41
  ### Patch Changes
@@ -56,7 +56,7 @@ const SelectionColumn = (props = {})=>{
56
56
  onClick: (e)=>e.stopPropagation(),
57
57
  onChange: ()=>{
58
58
  if (row.subRows.length > 0 && selectSubRows) row.toggleRowSelected(!row.subRows.every((subRow)=>subRow.isSelected || isDisabled?.(subRow.original)));
59
- else row.toggleRowSelected();
59
+ else row.toggleRowSelected(!row.isSelected);
60
60
  }
61
61
  }),
62
62
  cellRenderer: (props)=>_react.createElement(_index.DefaultCell, {
package/DEV-cjs/styles.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="3.13.0";const u=new Proxy({},{get(t,i){if(typeof i=="string"&&i.startsWith("iui-"))return i.replace("iui-",`_iui${e.replace(/\./g,"")}-`)},has(t,i){return typeof i=="string"&&i.startsWith("iui-")}});exports.styles=u;exports.version=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="3.13.1";const u=new Proxy({},{get(t,i){if(typeof i=="string"&&i.startsWith("iui-"))return i.replace("iui-",`_iui${e.replace(/\./g,"")}-`)},has(t,i){return typeof i=="string"&&i.startsWith("iui-")}});exports.styles=u;exports.version=e;
@@ -37,7 +37,7 @@ export const SelectionColumn = (props = {})=>{
37
37
  onClick: (e)=>e.stopPropagation(),
38
38
  onChange: ()=>{
39
39
  if (row.subRows.length > 0 && selectSubRows) row.toggleRowSelected(!row.subRows.every((subRow)=>subRow.isSelected || isDisabled?.(subRow.original)));
40
- else row.toggleRowSelected();
40
+ else row.toggleRowSelected(!row.isSelected);
41
41
  }
42
42
  }),
43
43
  cellRenderer: (props)=>React.createElement(DefaultCell, {
package/DEV-esm/styles.js CHANGED
@@ -1,4 +1,4 @@
1
- const t = "3.13.0";
1
+ const t = "3.13.1";
2
2
  const u = new Proxy(
3
3
  {},
4
4
  {
@@ -76,7 +76,7 @@ const SelectionColumn = (props = {}) => {
76
76
  (subRow) => subRow.isSelected || isDisabled?.(subRow.original),
77
77
  ),
78
78
  );
79
- else row.toggleRowSelected();
79
+ else row.toggleRowSelected(!row.isSelected);
80
80
  },
81
81
  }),
82
82
  cellRenderer: (props) =>
package/cjs/styles.js CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
3
- const e = '3.13.0';
3
+ const e = '3.13.1';
4
4
  const u = new Proxy(
5
5
  {},
6
6
  {
@@ -56,7 +56,7 @@ export const SelectionColumn = (props = {}) => {
56
56
  (subRow) => subRow.isSelected || isDisabled?.(subRow.original),
57
57
  ),
58
58
  );
59
- else row.toggleRowSelected();
59
+ else row.toggleRowSelected(!row.isSelected);
60
60
  },
61
61
  }),
62
62
  cellRenderer: (props) =>
package/esm/styles.js CHANGED
@@ -1,4 +1,4 @@
1
- const t = '3.13.0';
1
+ const t = '3.13.1';
2
2
  const u = new Proxy(
3
3
  {},
4
4
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itwin/itwinui-react",
3
- "version": "3.13.0",
3
+ "version": "3.13.1",
4
4
  "author": "Bentley Systems",
5
5
  "license": "MIT",
6
6
  "type": "module",