@matrix-widget-toolkit/mui 2.0.1 → 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.
- package/build/cjs/index.js +20 -1
- package/build/esm/index.js +20 -1
- package/package.json +21 -21
package/build/cjs/index.js
CHANGED
|
@@ -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
|
|
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: {
|
package/build/esm/index.js
CHANGED
|
@@ -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
|
|
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.
|
|
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",
|
|
@@ -9,20 +9,20 @@
|
|
|
9
9
|
"types": "./build/index.d.ts",
|
|
10
10
|
"devDependencies": {
|
|
11
11
|
"@craco/craco": "^7.1.0",
|
|
12
|
-
"@testing-library/jest-dom": "^6.
|
|
13
|
-
"@testing-library/react": "^16.0.
|
|
12
|
+
"@testing-library/jest-dom": "^6.5.0",
|
|
13
|
+
"@testing-library/react": "^16.0.1",
|
|
14
14
|
"@testing-library/user-event": "^14.5.2",
|
|
15
15
|
"@types/jest": "^27.5.2",
|
|
16
16
|
"@types/jest-axe": "^3.5.9",
|
|
17
|
-
"@types/lodash": "^4.17.
|
|
18
|
-
"@types/node": "^
|
|
17
|
+
"@types/lodash": "^4.17.7",
|
|
18
|
+
"@types/node": "^22.5.3",
|
|
19
19
|
"@types/react": "^18.2.74",
|
|
20
20
|
"copyfiles": "^2.4.1",
|
|
21
|
-
"i18next-parser": "^9.0.
|
|
21
|
+
"i18next-parser": "^9.0.2",
|
|
22
22
|
"jest-axe": "^9.0.0",
|
|
23
23
|
"react": "^18.2.0",
|
|
24
24
|
"react-scripts": "5.0.1",
|
|
25
|
-
"typescript": "^5.5.
|
|
25
|
+
"typescript": "^5.5.4"
|
|
26
26
|
},
|
|
27
27
|
"scripts": {
|
|
28
28
|
"build": "tsc && rollup --config ../../rollup.config.mjs",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"tsc": "tsc",
|
|
31
31
|
"lint": "eslint .",
|
|
32
32
|
"test": "jest --watch",
|
|
33
|
-
"depcheck": "depcheck --ignores=@types/node --ignore-dirs=lib,build",
|
|
33
|
+
"depcheck": "depcheck --ignores=@types/node,@types/jest --ignore-dirs=lib,build",
|
|
34
34
|
"prepack": "node ../../scripts/prepack.js",
|
|
35
35
|
"postpack": "node ../../scripts/postpack.js",
|
|
36
36
|
"translate": "i18next src/**/*.{ts,tsx}",
|
|
@@ -38,23 +38,23 @@
|
|
|
38
38
|
"generate-api-report": "tsc && api-extractor run --verbose --local"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@emotion/cache": "^11.
|
|
42
|
-
"@emotion/react": "^11.
|
|
43
|
-
"@emotion/styled": "^11.
|
|
44
|
-
"@fontsource/inter": "^5.0.
|
|
45
|
-
"@mui/icons-material": "^
|
|
46
|
-
"@mui/material": "^
|
|
47
|
-
"@mui/utils": "^
|
|
48
|
-
"@matrix-widget-toolkit/api": "^3.
|
|
49
|
-
"@matrix-widget-toolkit/react": "^2.0.
|
|
50
|
-
"i18next": "^23.
|
|
41
|
+
"@emotion/cache": "^11.13.1",
|
|
42
|
+
"@emotion/react": "^11.13.3",
|
|
43
|
+
"@emotion/styled": "^11.13.0",
|
|
44
|
+
"@fontsource/inter": "^5.0.20",
|
|
45
|
+
"@mui/icons-material": "^6.0.2",
|
|
46
|
+
"@mui/material": "^6.0.2",
|
|
47
|
+
"@mui/utils": "^6.0.2",
|
|
48
|
+
"@matrix-widget-toolkit/api": "^3.4.0",
|
|
49
|
+
"@matrix-widget-toolkit/react": "^2.0.1",
|
|
50
|
+
"i18next": "^23.14.0",
|
|
51
51
|
"i18next-browser-languagedetector": "^8.0.0",
|
|
52
52
|
"i18next-resources-to-backend": "^1.2.1",
|
|
53
53
|
"lodash": "^4.17.21",
|
|
54
|
-
"matrix-widget-api": "^1.
|
|
54
|
+
"matrix-widget-api": "^1.9.0",
|
|
55
55
|
"react": "^18.2.0",
|
|
56
|
-
"react-i18next": "^
|
|
57
|
-
"react-use": "^17.5.
|
|
56
|
+
"react-i18next": "^15.0.1",
|
|
57
|
+
"react-use": "^17.5.1"
|
|
58
58
|
},
|
|
59
59
|
"repository": {
|
|
60
60
|
"type": "git",
|