@matrix-widget-toolkit/mui 2.0.2 → 2.0.3

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.
@@ -121,6 +121,7 @@ function EmotionCacheProvider(_a) {
121
121
  * See the License for the specific language governing permissions and
122
122
  * limitations under the License.
123
123
  */
124
+ var _a, _b, _c;
124
125
  var fontFamily = [
125
126
  'Inter',
126
127
  'Arial',
@@ -323,8 +324,14 @@ var baseTheme = {
323
324
  },
324
325
  },
325
326
  },
326
- // Tooltips have a darker background
327
+ // Tooltips are fullscreen-aware
328
+ MuiMenu: {
329
+ defaultProps: {
330
+ container: (_a = document.fullscreenElement) !== null && _a !== void 0 ? _a : document.body,
331
+ },
332
+ },
327
333
  MuiTooltip: {
334
+ // Tooltips have a darker background
328
335
  styleOverrides: {
329
336
  tooltip: function (_a) {
330
337
  var theme = _a.theme;
@@ -335,6 +342,18 @@ var baseTheme = {
335
342
  });
336
343
  },
337
344
  },
345
+ // Tooltips are fullscreen-aware
346
+ defaultProps: {
347
+ PopperProps: {
348
+ container: (_b = document.fullscreenElement) !== null && _b !== void 0 ? _b : document.body,
349
+ },
350
+ },
351
+ },
352
+ // Tooltips are fullscreen-aware
353
+ MuiPopover: {
354
+ defaultProps: {
355
+ container: (_c = document.fullscreenElement) !== null && _c !== void 0 ? _c : document.body,
356
+ },
338
357
  },
339
358
  // Buttons have to ripple but have the default keyboard focus ring instead
340
359
  MuiButtonBase: {
@@ -109,6 +109,7 @@ function EmotionCacheProvider(_a) {
109
109
  * See the License for the specific language governing permissions and
110
110
  * limitations under the License.
111
111
  */
112
+ var _a, _b, _c;
112
113
  var fontFamily = [
113
114
  'Inter',
114
115
  'Arial',
@@ -311,8 +312,14 @@ var baseTheme = {
311
312
  },
312
313
  },
313
314
  },
314
- // Tooltips have a darker background
315
+ // Tooltips are fullscreen-aware
316
+ MuiMenu: {
317
+ defaultProps: {
318
+ container: (_a = document.fullscreenElement) !== null && _a !== void 0 ? _a : document.body,
319
+ },
320
+ },
315
321
  MuiTooltip: {
322
+ // Tooltips have a darker background
316
323
  styleOverrides: {
317
324
  tooltip: function (_a) {
318
325
  var theme = _a.theme;
@@ -323,6 +330,18 @@ var baseTheme = {
323
330
  });
324
331
  },
325
332
  },
333
+ // Tooltips are fullscreen-aware
334
+ defaultProps: {
335
+ PopperProps: {
336
+ container: (_b = document.fullscreenElement) !== null && _b !== void 0 ? _b : document.body,
337
+ },
338
+ },
339
+ },
340
+ // Tooltips are fullscreen-aware
341
+ MuiPopover: {
342
+ defaultProps: {
343
+ container: (_c = document.fullscreenElement) !== null && _c !== void 0 ? _c : document.body,
344
+ },
326
345
  },
327
346
  // Buttons have to ripple but have the default keyboard focus ring instead
328
347
  MuiButtonBase: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@matrix-widget-toolkit/mui",
3
- "version": "2.0.2",
3
+ "version": "2.0.3",
4
4
  "description": "A customized material-ui theme that matches the style of the Element Matrix client",
5
5
  "author": "Nordeck IT + Consulting GmbH",
6
6
  "license": "Apache-2.0",