@matrix-widget-toolkit/mui 2.0.3 → 2.0.4

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,7 +121,6 @@ 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;
125
124
  var fontFamily = [
126
125
  'Inter',
127
126
  'Arial',
@@ -201,6 +200,10 @@ function createSwitchStyleOverrides(_a) {
201
200
  * browser settings.
202
201
  */
203
202
  var defaultTheme = material.createTheme();
203
+ function container() {
204
+ var _a;
205
+ return (_a = document.fullscreenElement) !== null && _a !== void 0 ? _a : document.documentElement;
206
+ }
204
207
  var baseTheme = {
205
208
  shape: {
206
209
  borderRadius: 8,
@@ -327,7 +330,7 @@ var baseTheme = {
327
330
  // Tooltips are fullscreen-aware
328
331
  MuiMenu: {
329
332
  defaultProps: {
330
- container: (_a = document.fullscreenElement) !== null && _a !== void 0 ? _a : document.body,
333
+ container: container,
331
334
  },
332
335
  },
333
336
  MuiTooltip: {
@@ -344,15 +347,25 @@ var baseTheme = {
344
347
  },
345
348
  // Tooltips are fullscreen-aware
346
349
  defaultProps: {
350
+ slotProps: {
351
+ popper: {
352
+ container: container,
353
+ },
354
+ },
347
355
  PopperProps: {
348
- container: (_b = document.fullscreenElement) !== null && _b !== void 0 ? _b : document.body,
356
+ container: container,
349
357
  },
350
358
  },
351
359
  },
352
360
  // Tooltips are fullscreen-aware
353
361
  MuiPopover: {
354
362
  defaultProps: {
355
- container: (_c = document.fullscreenElement) !== null && _c !== void 0 ? _c : document.body,
363
+ slotProps: {
364
+ root: {
365
+ container: container,
366
+ },
367
+ },
368
+ container: container,
356
369
  },
357
370
  },
358
371
  // Buttons have to ripple but have the default keyboard focus ring instead
@@ -109,7 +109,6 @@ 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;
113
112
  var fontFamily = [
114
113
  'Inter',
115
114
  'Arial',
@@ -189,6 +188,10 @@ function createSwitchStyleOverrides(_a) {
189
188
  * browser settings.
190
189
  */
191
190
  var defaultTheme = createTheme();
191
+ function container() {
192
+ var _a;
193
+ return (_a = document.fullscreenElement) !== null && _a !== void 0 ? _a : document.documentElement;
194
+ }
192
195
  var baseTheme = {
193
196
  shape: {
194
197
  borderRadius: 8,
@@ -315,7 +318,7 @@ var baseTheme = {
315
318
  // Tooltips are fullscreen-aware
316
319
  MuiMenu: {
317
320
  defaultProps: {
318
- container: (_a = document.fullscreenElement) !== null && _a !== void 0 ? _a : document.body,
321
+ container: container,
319
322
  },
320
323
  },
321
324
  MuiTooltip: {
@@ -332,15 +335,25 @@ var baseTheme = {
332
335
  },
333
336
  // Tooltips are fullscreen-aware
334
337
  defaultProps: {
338
+ slotProps: {
339
+ popper: {
340
+ container: container,
341
+ },
342
+ },
335
343
  PopperProps: {
336
- container: (_b = document.fullscreenElement) !== null && _b !== void 0 ? _b : document.body,
344
+ container: container,
337
345
  },
338
346
  },
339
347
  },
340
348
  // Tooltips are fullscreen-aware
341
349
  MuiPopover: {
342
350
  defaultProps: {
343
- container: (_c = document.fullscreenElement) !== null && _c !== void 0 ? _c : document.body,
351
+ slotProps: {
352
+ root: {
353
+ container: container,
354
+ },
355
+ },
356
+ container: container,
344
357
  },
345
358
  },
346
359
  // Buttons have to ripple but have the default keyboard focus ring instead
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@matrix-widget-toolkit/mui",
3
- "version": "2.0.3",
3
+ "version": "2.0.4",
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",