@itwin/itwinui-react 2.12.18 → 2.12.19

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,12 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.12.19
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1765](https://github.com/iTwin/iTwinUI/pull/1765): Fixed full page `Modal` not showing up.
8
+ - [#1764](https://github.com/iTwin/iTwinUI/pull/1764): Fixed submenu items being unreachable in popout windows.
9
+
3
10
  ## 2.12.18
4
11
 
5
12
  ### Patch Changes
package/LICENSE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # MIT License
2
2
 
3
- Copyright © 2021-2023 Bentley Systems, Incorporated. All rights reserved.
3
+ Copyright © 2021-2024 Bentley Systems, Incorporated. All rights reserved.
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
6
 
@@ -147,7 +147,7 @@ exports.DialogMain = React.forwardRef((props, ref) => {
147
147
  'iui-dialog-visible': isOpen,
148
148
  'iui-dialog-draggable': isDraggable,
149
149
  }, className), role: 'dialog', ref: (0, index_js_1.useMergedRefs)(dialogRef, ref, setDialogElement), onKeyDown: handleKeyDown, tabIndex: -1, "data-iui-placement": placement, style: {
150
- transform: roundedTransform,
150
+ transform: styleType !== 'fullPage' ? roundedTransform : undefined,
151
151
  ...style,
152
152
  ...propStyle,
153
153
  }, ...rest },
@@ -85,10 +85,12 @@ exports.MenuItem = React.forwardRef((props, ref) => {
85
85
  'iui-disabled': disabled,
86
86
  }, className), onClick: () => !disabled && (onClick === null || onClick === void 0 ? void 0 : onClick(value)), ref: refs, style: style, role: role, tabIndex: disabled || role === 'presentation' ? undefined : -1, "aria-selected": isSelected, "aria-haspopup": subMenuItems.length > 0, "aria-disabled": disabled, onKeyDown: onKeyDown, onMouseEnter: () => setIsSubmenuVisible(true), onMouseLeave: (e) => {
87
87
  var _a;
88
- if (!(e.relatedTarget instanceof Node) ||
89
- !((_a = subMenuRef.current) === null || _a === void 0 ? void 0 : _a.contains(e.relatedTarget))) {
90
- setIsSubmenuVisible(false);
88
+ try {
89
+ if (!((_a = subMenuRef.current) === null || _a === void 0 ? void 0 : _a.contains(e.relatedTarget))) {
90
+ setIsSubmenuVisible(false);
91
+ }
91
92
  }
93
+ catch (_b) { }
92
94
  }, ...rest },
93
95
  icon &&
94
96
  React.cloneElement(icon, {
@@ -118,7 +118,7 @@ export const DialogMain = React.forwardRef((props, ref) => {
118
118
  'iui-dialog-visible': isOpen,
119
119
  'iui-dialog-draggable': isDraggable,
120
120
  }, className), role: 'dialog', ref: useMergedRefs(dialogRef, ref, setDialogElement), onKeyDown: handleKeyDown, tabIndex: -1, "data-iui-placement": placement, style: {
121
- transform: roundedTransform,
121
+ transform: styleType !== 'fullPage' ? roundedTransform : undefined,
122
122
  ...style,
123
123
  ...propStyle,
124
124
  }, ...rest },
@@ -56,10 +56,12 @@ export const MenuItem = React.forwardRef((props, ref) => {
56
56
  'iui-disabled': disabled,
57
57
  }, className), onClick: () => !disabled && (onClick === null || onClick === void 0 ? void 0 : onClick(value)), ref: refs, style: style, role: role, tabIndex: disabled || role === 'presentation' ? undefined : -1, "aria-selected": isSelected, "aria-haspopup": subMenuItems.length > 0, "aria-disabled": disabled, onKeyDown: onKeyDown, onMouseEnter: () => setIsSubmenuVisible(true), onMouseLeave: (e) => {
58
58
  var _a;
59
- if (!(e.relatedTarget instanceof Node) ||
60
- !((_a = subMenuRef.current) === null || _a === void 0 ? void 0 : _a.contains(e.relatedTarget))) {
61
- setIsSubmenuVisible(false);
59
+ try {
60
+ if (!((_a = subMenuRef.current) === null || _a === void 0 ? void 0 : _a.contains(e.relatedTarget))) {
61
+ setIsSubmenuVisible(false);
62
+ }
62
63
  }
64
+ catch (_b) { }
63
65
  }, ...rest },
64
66
  icon &&
65
67
  React.cloneElement(icon, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itwin/itwinui-react",
3
- "version": "2.12.18",
3
+ "version": "2.12.19",
4
4
  "author": "Bentley Systems",
5
5
  "license": "MIT",
6
6
  "main": "cjs/index.js",