@itwin/itwinui-react 2.12.8 → 2.12.10
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 +13 -0
- package/cjs/core/Modal/Modal.d.ts +1 -1
- package/cjs/core/Modal/Modal.js +1 -1
- package/cjs/core/Table/hooks/useScrollToRow.js +2 -2
- package/cjs/core/Toast/Toaster.js +1 -1
- package/cjs/styles.js +1 -1
- package/esm/core/Modal/Modal.d.ts +1 -1
- package/esm/core/Modal/Modal.js +1 -1
- package/esm/core/Table/hooks/useScrollToRow.js +2 -2
- package/esm/core/Toast/Toaster.js +1 -1
- package/esm/styles.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2.12.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1590](https://github.com/iTwin/iTwinUI/pull/1590): Fixed undefined property access in `useScrollToRow`.
|
|
8
|
+
- [#1587](https://github.com/iTwin/iTwinUI/pull/1587): Fixed an issue where v2 toasts and modals were being added to v1 containers.
|
|
9
|
+
|
|
10
|
+
## 2.12.9
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- [#1586](https://github.com/iTwin/iTwinUI/pull/1586): Fixed an issue with toggle-switch border styles not working in popout windows.
|
|
15
|
+
|
|
3
16
|
## 2.12.8
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -31,7 +31,7 @@ export declare type ModalProps = {
|
|
|
31
31
|
onKeyDown?: React.KeyboardEventHandler;
|
|
32
32
|
/**
|
|
33
33
|
* Id of the root where the modal will be rendered in.
|
|
34
|
-
* @default '
|
|
34
|
+
* @default 'iui2-react-portal-container'
|
|
35
35
|
*/
|
|
36
36
|
modalRootId?: string;
|
|
37
37
|
/**
|
package/cjs/core/Modal/Modal.js
CHANGED
|
@@ -57,7 +57,7 @@ const index_js_2 = require("../Dialog/index.js");
|
|
|
57
57
|
* </Modal>
|
|
58
58
|
*/
|
|
59
59
|
const Modal = (props) => {
|
|
60
|
-
const { isOpen = false, isDismissible = true, closeOnEsc = true, closeOnExternalClick = true, onClose, title, children, modalRootId = '
|
|
60
|
+
const { isOpen = false, isDismissible = true, closeOnEsc = true, closeOnExternalClick = true, onClose, title, children, modalRootId = 'iui2-react-portal-container', ownerDocument = (0, index_js_1.getDocument)(), ...rest } = props;
|
|
61
61
|
(0, index_js_1.useTheme)();
|
|
62
62
|
const [container, setContainer] = React.useState();
|
|
63
63
|
React.useEffect(() => {
|
|
@@ -49,14 +49,14 @@ function useScrollToRow({ data, enableVirtualization, page, paginatorRenderer, s
|
|
|
49
49
|
// For non-virtualized tables, we need to add a ref to each row
|
|
50
50
|
// and scroll to the element
|
|
51
51
|
React.useEffect(() => {
|
|
52
|
-
var _a;
|
|
52
|
+
var _a, _b;
|
|
53
53
|
if (enableVirtualization ||
|
|
54
54
|
scrollToIndex === undefined ||
|
|
55
55
|
scrollToIndex === null ||
|
|
56
56
|
scrollToIndex < 0) {
|
|
57
57
|
return;
|
|
58
58
|
}
|
|
59
|
-
(
|
|
59
|
+
(_b = rowRefs.current[(_a = pageRef.current[scrollToIndex]) === null || _a === void 0 ? void 0 : _a.id]) === null || _b === void 0 ? void 0 : _b.scrollIntoView();
|
|
60
60
|
}, [enableVirtualization, scrollToIndex]);
|
|
61
61
|
const tableRowRef = React.useCallback((row) => {
|
|
62
62
|
return (element) => {
|
|
@@ -31,7 +31,7 @@ const React = __importStar(require("react"));
|
|
|
31
31
|
const ReactDOM = __importStar(require("react-dom"));
|
|
32
32
|
const index_js_1 = require("../utils/index.js");
|
|
33
33
|
const ToastWrapper_js_1 = require("./ToastWrapper.js");
|
|
34
|
-
const TOASTS_CONTAINER_ID = '
|
|
34
|
+
const TOASTS_CONTAINER_ID = 'iui2-toasts-container';
|
|
35
35
|
class Toaster {
|
|
36
36
|
constructor() {
|
|
37
37
|
this.toasts = [];
|