@itwin/itwinui-react 3.13.0 → 3.13.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.
package/CHANGELOG.md CHANGED
@@ -1,10 +1,25 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.13.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#2143](https://github.com/iTwin/iTwinUI/pull/2143): Added `border-radius` to the `Table` component so that the border radius is correctly applied to the `Table`'s corners.
8
+ - [#2161](https://github.com/iTwin/iTwinUI/pull/2161): Fixed issue where `emptyTableContent` would not appear on virutalized `Table` components.
9
+
10
+ ## 3.13.1
11
+
12
+ ### Patch Changes
13
+
14
+ - [#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.
15
+ - [#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`.
16
+
3
17
  ## 3.13.0
4
18
 
5
19
  ### Minor Changes
6
20
 
7
21
  - [#2106](https://github.com/iTwin/iTwinUI/pull/2106): All internal CSS class prefixes have been changed to prevent style conflicts across minor versions.
22
+
8
23
  - 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
24
 
10
25
  - [#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 +27,22 @@
12
27
  - [#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
28
 
14
29
  - Added dependency on `@tanstack/react-virtual` to replace the custom virtual-scroll implementation. This affects the `enableVirtualization` prop in `ComboBox`, `Table`, and `Tree`.
30
+
15
31
  - [#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
32
  - [#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
33
  - [#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
34
  <details>
19
35
  <summary>Diff</summary>
20
36
 
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
- ```
37
+ ```diff
38
+ - <div style={{overflow: 'auto', height: 'min(400px, 90vh)'}}>
39
+ <Tree
40
+ enableVirtualization
41
+ + style={{height: 'min(400px, 90vh)'}}
42
+ />
43
+ - </div>
44
+ ```
45
+
29
46
  </details>
30
47
 
31
48
  ### Patch Changes
@@ -500,14 +500,7 @@ const Table = (props)=>{
500
500
  }),
501
501
  tabIndex: -1,
502
502
  "aria-multiselectable": isSelectable && 'multi' === selectionMode || void 0
503
- }, _react.createElement(_index.ShadowRoot, {
504
- css: `
505
- div,
506
- slot {
507
- border-radius: inherit;
508
- }
509
- `
510
- }, enableVirtualization ? _react.createElement("div", {
503
+ }, _react.createElement(_index.ShadowRoot, null, enableVirtualization && 0 !== data.length ? _react.createElement("div", {
511
504
  style: {
512
505
  minBlockSize: virtualizer.getTotalSize(),
513
506
  minInlineSize: '100%',
@@ -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.2";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;
@@ -480,14 +480,7 @@ export const Table = (props)=>{
480
480
  }),
481
481
  tabIndex: -1,
482
482
  "aria-multiselectable": isSelectable && 'multi' === selectionMode || void 0
483
- }, React.createElement(ShadowRoot, {
484
- css: `
485
- div,
486
- slot {
487
- border-radius: inherit;
488
- }
489
- `
490
- }, enableVirtualization ? React.createElement("div", {
483
+ }, React.createElement(ShadowRoot, null, enableVirtualization && 0 !== data.length ? React.createElement("div", {
491
484
  style: {
492
485
  minBlockSize: virtualizer.getTotalSize(),
493
486
  minInlineSize: '100%',
@@ -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.2";
2
2
  const u = new Proxy(
3
3
  {},
4
4
  {
@@ -760,15 +760,8 @@ const Table = (props) => {
760
760
  },
761
761
  _react.createElement(
762
762
  _index.ShadowRoot,
763
- {
764
- css: `
765
- div,
766
- slot {
767
- border-radius: inherit;
768
- }
769
- `,
770
- },
771
- enableVirtualization
763
+ null,
764
+ enableVirtualization && 0 !== data.length
772
765
  ? _react.createElement(
773
766
  'div',
774
767
  {
@@ -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.2';
4
4
  const u = new Proxy(
5
5
  {},
6
6
  {
@@ -772,15 +772,8 @@ export const Table = (props) => {
772
772
  },
773
773
  React.createElement(
774
774
  ShadowRoot,
775
- {
776
- css: `
777
- div,
778
- slot {
779
- border-radius: inherit;
780
- }
781
- `,
782
- },
783
- enableVirtualization
775
+ null,
776
+ enableVirtualization && 0 !== data.length
784
777
  ? React.createElement(
785
778
  'div',
786
779
  {
@@ -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.2';
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.2",
4
4
  "author": "Bentley Systems",
5
5
  "license": "MIT",
6
6
  "type": "module",