@matrix-widget-toolkit/mui 2.0.3 → 2.0.5
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 +19 -6
- package/build/esm/index.js +19 -6
- package/build/index.d.ts +1 -1
- package/package.json +23 -21
package/build/cjs/index.js
CHANGED
|
@@ -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:
|
|
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:
|
|
356
|
+
container: container,
|
|
349
357
|
},
|
|
350
358
|
},
|
|
351
359
|
},
|
|
352
360
|
// Tooltips are fullscreen-aware
|
|
353
361
|
MuiPopover: {
|
|
354
362
|
defaultProps: {
|
|
355
|
-
|
|
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
|
|
@@ -860,8 +873,8 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
|
|
|
860
873
|
});
|
|
861
874
|
};
|
|
862
875
|
var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
|
|
863
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
864
|
-
return g =
|
|
876
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
877
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
865
878
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
866
879
|
function step(op) {
|
|
867
880
|
if (f) throw new TypeError("Generator is already executing.");
|
package/build/esm/index.js
CHANGED
|
@@ -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:
|
|
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:
|
|
344
|
+
container: container,
|
|
337
345
|
},
|
|
338
346
|
},
|
|
339
347
|
},
|
|
340
348
|
// Tooltips are fullscreen-aware
|
|
341
349
|
MuiPopover: {
|
|
342
350
|
defaultProps: {
|
|
343
|
-
|
|
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
|
|
@@ -848,8 +861,8 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
|
|
|
848
861
|
});
|
|
849
862
|
};
|
|
850
863
|
var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
|
|
851
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
852
|
-
return g =
|
|
864
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
865
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
853
866
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
854
867
|
function step(op) {
|
|
855
868
|
if (f) throw new TypeError("Generator is already executing.");
|
package/build/index.d.ts
CHANGED
|
@@ -98,7 +98,7 @@ export declare function MuiThemeProvider({ children, }: MuiThemeProviderProps):
|
|
|
98
98
|
/**
|
|
99
99
|
* Props for the {@link MuiThemeProvider} component.
|
|
100
100
|
*/
|
|
101
|
-
export declare type MuiThemeProviderProps = PropsWithChildren
|
|
101
|
+
export declare type MuiThemeProviderProps = PropsWithChildren;
|
|
102
102
|
|
|
103
103
|
/**
|
|
104
104
|
* Provides the `WidgetApi` in the React context once it's fully
|
package/package.json
CHANGED
|
@@ -1,36 +1,39 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@matrix-widget-toolkit/mui",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.5",
|
|
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",
|
|
7
7
|
"source": "./src/index.ts",
|
|
8
|
-
"module": "./build/esm/index.js",
|
|
9
8
|
"types": "./build/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
"import": "./build/esm/index.js",
|
|
11
|
+
"require": "./build/cjs/index.js"
|
|
12
|
+
},
|
|
13
|
+
"type": "module",
|
|
10
14
|
"devDependencies": {
|
|
11
|
-
"@craco/craco": "^7.1.0",
|
|
12
15
|
"@testing-library/jest-dom": "^6.5.0",
|
|
13
16
|
"@testing-library/react": "^16.0.1",
|
|
14
17
|
"@testing-library/user-event": "^14.5.2",
|
|
15
|
-
"@types/
|
|
16
|
-
"@types/
|
|
17
|
-
"@types/lodash": "^4.17.7",
|
|
18
|
-
"@types/node": "^22.5.3",
|
|
18
|
+
"@types/lodash": "^4.17.10",
|
|
19
|
+
"@types/node": "^22.7.5",
|
|
19
20
|
"@types/react": "^18.2.74",
|
|
21
|
+
"@vitest/coverage-v8": "^2.1.3",
|
|
22
|
+
"axe-core": "^4.10.0",
|
|
20
23
|
"copyfiles": "^2.4.1",
|
|
21
24
|
"i18next-parser": "^9.0.2",
|
|
22
|
-
"jest-axe": "^9.0.0",
|
|
23
25
|
"react": "^18.2.0",
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
+
"typescript": "^5.6.3",
|
|
27
|
+
"vite": "^5.4.8",
|
|
28
|
+
"vitest": "^2.1.3"
|
|
26
29
|
},
|
|
27
30
|
"scripts": {
|
|
28
31
|
"build": "tsc && rollup --config ../../rollup.config.mjs",
|
|
29
32
|
"postbuild": "copyfiles -E -u 1 src/locales/**/*.json build",
|
|
30
33
|
"tsc": "tsc",
|
|
31
34
|
"lint": "eslint .",
|
|
32
|
-
"test": "
|
|
33
|
-
"depcheck": "depcheck --ignores=@types/node,@
|
|
35
|
+
"test": "echo \"Tests have to run from root project\"",
|
|
36
|
+
"depcheck": "depcheck --ignores=@types/node,@vitest/coverage-v8 --ignore-dirs=lib,build",
|
|
34
37
|
"prepack": "node ../../scripts/prepack.js",
|
|
35
38
|
"postpack": "node ../../scripts/postpack.js",
|
|
36
39
|
"translate": "i18next src/**/*.{ts,tsx}",
|
|
@@ -41,19 +44,19 @@
|
|
|
41
44
|
"@emotion/cache": "^11.13.1",
|
|
42
45
|
"@emotion/react": "^11.13.3",
|
|
43
46
|
"@emotion/styled": "^11.13.0",
|
|
44
|
-
"@fontsource/inter": "^5.0
|
|
45
|
-
"@
|
|
46
|
-
"@
|
|
47
|
+
"@fontsource/inter": "^5.1.0",
|
|
48
|
+
"@matrix-widget-toolkit/api": "^3.4.1",
|
|
49
|
+
"@matrix-widget-toolkit/react": "^2.0.2",
|
|
50
|
+
"@mui/icons-material": "^6.1.4",
|
|
51
|
+
"@mui/material": "^6.1.4",
|
|
47
52
|
"@mui/utils": "^6.0.2",
|
|
48
|
-
"
|
|
49
|
-
"@matrix-widget-toolkit/react": "^2.0.1",
|
|
50
|
-
"i18next": "^23.14.0",
|
|
53
|
+
"i18next": "^23.16.0",
|
|
51
54
|
"i18next-browser-languagedetector": "^8.0.0",
|
|
52
55
|
"i18next-resources-to-backend": "^1.2.1",
|
|
53
56
|
"lodash": "^4.17.21",
|
|
54
57
|
"matrix-widget-api": "^1.9.0",
|
|
55
58
|
"react": "^18.2.0",
|
|
56
|
-
"react-i18next": "^15.0.
|
|
59
|
+
"react-i18next": "^15.0.3",
|
|
57
60
|
"react-use": "^17.5.1"
|
|
58
61
|
},
|
|
59
62
|
"repository": {
|
|
@@ -68,6 +71,5 @@
|
|
|
68
71
|
"matrix",
|
|
69
72
|
"widget",
|
|
70
73
|
"matrix-widget-api"
|
|
71
|
-
]
|
|
72
|
-
"main": "./build/cjs/index.js"
|
|
74
|
+
]
|
|
73
75
|
}
|