@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.
@@ -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 'iui-react-portal-container'
34
+ * @default 'iui2-react-portal-container'
35
35
  */
36
36
  modalRootId?: string;
37
37
  /**
@@ -28,7 +28,7 @@ import { Dialog } from '../Dialog/index.js';
28
28
  * </Modal>
29
29
  */
30
30
  export const Modal = (props) => {
31
- const { isOpen = false, isDismissible = true, closeOnEsc = true, closeOnExternalClick = true, onClose, title, children, modalRootId = 'iui-react-portal-container', ownerDocument = getDocument(), ...rest } = props;
31
+ const { isOpen = false, isDismissible = true, closeOnEsc = true, closeOnExternalClick = true, onClose, title, children, modalRootId = 'iui2-react-portal-container', ownerDocument = getDocument(), ...rest } = props;
32
32
  useTheme();
33
33
  const [container, setContainer] = React.useState();
34
34
  React.useEffect(() => {
@@ -23,14 +23,14 @@ export function useScrollToRow({ data, enableVirtualization, page, paginatorRend
23
23
  // For non-virtualized tables, we need to add a ref to each row
24
24
  // and scroll to the element
25
25
  React.useEffect(() => {
26
- var _a;
26
+ var _a, _b;
27
27
  if (enableVirtualization ||
28
28
  scrollToIndex === undefined ||
29
29
  scrollToIndex === null ||
30
30
  scrollToIndex < 0) {
31
31
  return;
32
32
  }
33
- (_a = rowRefs.current[pageRef.current[scrollToIndex].id]) === null || _a === void 0 ? void 0 : _a.scrollIntoView();
33
+ (_b = rowRefs.current[(_a = pageRef.current[scrollToIndex]) === null || _a === void 0 ? void 0 : _a.id]) === null || _b === void 0 ? void 0 : _b.scrollIntoView();
34
34
  }, [enableVirtualization, scrollToIndex]);
35
35
  const tableRowRef = React.useCallback((row) => {
36
36
  return (element) => {
@@ -6,7 +6,7 @@ import * as React from 'react';
6
6
  import * as ReactDOM from 'react-dom';
7
7
  import { getContainer, getDocument } from '../utils/index.js';
8
8
  import { ToastWrapper } from './ToastWrapper.js';
9
- const TOASTS_CONTAINER_ID = 'iui-toasts-container';
9
+ const TOASTS_CONTAINER_ID = 'iui2-toasts-container';
10
10
  export default class Toaster {
11
11
  constructor() {
12
12
  this.toasts = [];