@mui/material 5.3.1 → 5.4.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/Autocomplete/Autocomplete.d.ts +5 -0
- package/Autocomplete/Autocomplete.js +11 -3
- package/AvatarGroup/AvatarGroup.d.ts +10 -0
- package/AvatarGroup/AvatarGroup.js +19 -7
- package/Badge/Badge.js +3 -2
- package/Breadcrumbs/BreadcrumbCollapsed.js +1 -3
- package/ButtonBase/ButtonBase.d.ts +5 -1
- package/ButtonBase/ButtonBase.js +15 -2
- package/ButtonBase/TouchRipple.js +1 -2
- package/CHANGELOG.md +295 -27
- package/Dialog/Dialog.d.ts +4 -1
- package/Dialog/Dialog.js +10 -6
- package/Drawer/Drawer.d.ts +4 -1
- package/Drawer/Drawer.js +11 -9
- package/Fab/Fab.d.ts +4 -1
- package/Fab/Fab.js +8 -20
- package/Fab/fabClasses.js +1 -1
- package/Fade/Fade.d.ts +2 -2
- package/Fade/Fade.js +8 -8
- package/FormControlLabel/FormControlLabel.js +11 -3
- package/FormControlLabel/formControlLabelClasses.d.ts +2 -0
- package/FormControlLabel/formControlLabelClasses.js +1 -1
- package/FormGroup/FormGroup.js +14 -3
- package/FormGroup/formGroupClasses.d.ts +2 -0
- package/FormGroup/formGroupClasses.js +1 -1
- package/FormHelperText/FormHelperText.js +7 -9
- package/Grid/Grid.js +2 -4
- package/ImageList/ImageList.js +3 -1
- package/InputAdornment/InputAdornment.js +6 -9
- package/Modal/Modal.js +1 -1
- package/OutlinedInput/NotchedOutline.js +14 -16
- package/OutlinedInput/OutlinedInput.js +1 -1
- package/README.md +6 -6
- package/Radio/RadioButtonIcon.js +2 -6
- package/Rating/Rating.js +1 -1
- package/Select/Select.js +19 -7
- package/Select/SelectInput.js +12 -10
- package/Slide/Slide.d.ts +4 -4
- package/Slide/Slide.js +14 -14
- package/Slider/Slider.js +3 -1
- package/Snackbar/Snackbar.d.ts +2 -2
- package/Snackbar/Snackbar.js +12 -9
- package/SpeedDial/SpeedDial.d.ts +2 -2
- package/SpeedDial/SpeedDial.js +9 -7
- package/Step/StepContext.d.ts +20 -0
- package/Step/StepContext.js +10 -2
- package/Step/index.d.ts +3 -0
- package/Step/index.js +3 -1
- package/SwipeableDrawer/SwipeArea.js +1 -3
- package/SwipeableDrawer/SwipeableDrawer.js +8 -6
- package/TextField/TextField.js +1 -1
- package/ToggleButton/ToggleButton.d.ts +15 -0
- package/ToggleButton/ToggleButton.js +8 -2
- package/Zoom/Zoom.d.ts +2 -2
- package/Zoom/Zoom.js +8 -8
- package/index.d.ts +11 -3
- package/index.js +8 -3
- package/internal/SwitchBase.js +2 -6
- package/legacy/Autocomplete/Autocomplete.js +12 -3
- package/legacy/AvatarGroup/AvatarGroup.js +20 -7
- package/legacy/Badge/Badge.js +4 -2
- package/legacy/Breadcrumbs/BreadcrumbCollapsed.js +1 -3
- package/legacy/ButtonBase/ButtonBase.js +15 -2
- package/legacy/ButtonBase/TouchRipple.js +1 -2
- package/legacy/Dialog/Dialog.js +10 -6
- package/legacy/Drawer/Drawer.js +11 -9
- package/legacy/Fab/Fab.js +8 -20
- package/legacy/Fab/fabClasses.js +1 -1
- package/legacy/Fade/Fade.js +8 -8
- package/legacy/FormControlLabel/FormControlLabel.js +11 -3
- package/legacy/FormControlLabel/formControlLabelClasses.js +1 -1
- package/legacy/FormGroup/FormGroup.js +14 -3
- package/legacy/FormGroup/formGroupClasses.js +1 -1
- package/legacy/FormHelperText/FormHelperText.js +7 -9
- package/legacy/Grid/Grid.js +2 -4
- package/legacy/ImageList/ImageList.js +3 -1
- package/legacy/InputAdornment/InputAdornment.js +6 -9
- package/legacy/Modal/Modal.js +1 -1
- package/legacy/OutlinedInput/NotchedOutline.js +14 -16
- package/legacy/OutlinedInput/OutlinedInput.js +1 -1
- package/legacy/Radio/RadioButtonIcon.js +2 -6
- package/legacy/Rating/Rating.js +1 -1
- package/legacy/Select/Select.js +23 -7
- package/legacy/Select/SelectInput.js +12 -10
- package/legacy/Slide/Slide.js +14 -14
- package/legacy/Slider/Slider.js +3 -1
- package/legacy/Snackbar/Snackbar.js +12 -9
- package/legacy/SpeedDial/SpeedDial.js +9 -7
- package/legacy/Step/StepContext.js +10 -2
- package/legacy/Step/index.js +3 -1
- package/legacy/SwipeableDrawer/SwipeArea.js +1 -3
- package/legacy/SwipeableDrawer/SwipeableDrawer.js +8 -6
- package/legacy/TextField/TextField.js +1 -1
- package/legacy/ToggleButton/ToggleButton.js +8 -2
- package/legacy/Zoom/Zoom.js +8 -8
- package/legacy/index.js +8 -3
- package/legacy/internal/SwitchBase.js +2 -6
- package/legacy/locale/index.js +86 -78
- package/legacy/styles/makeStyles.js +1 -1
- package/legacy/styles/withStyles.js +1 -1
- package/legacy/styles/withTheme.js +1 -1
- package/legacy/useMediaQuery/useMediaQuery.js +87 -32
- package/locale/index.js +12 -6
- package/modern/Autocomplete/Autocomplete.js +11 -3
- package/modern/AvatarGroup/AvatarGroup.js +17 -7
- package/modern/Badge/Badge.js +3 -2
- package/modern/Breadcrumbs/BreadcrumbCollapsed.js +1 -3
- package/modern/ButtonBase/ButtonBase.js +15 -2
- package/modern/ButtonBase/TouchRipple.js +1 -2
- package/modern/Dialog/Dialog.js +10 -6
- package/modern/Drawer/Drawer.js +11 -9
- package/modern/Fab/Fab.js +8 -20
- package/modern/Fab/fabClasses.js +1 -1
- package/modern/Fade/Fade.js +8 -8
- package/modern/FormControlLabel/FormControlLabel.js +11 -3
- package/modern/FormControlLabel/formControlLabelClasses.js +1 -1
- package/modern/FormGroup/FormGroup.js +14 -3
- package/modern/FormGroup/formGroupClasses.js +1 -1
- package/modern/FormHelperText/FormHelperText.js +7 -9
- package/modern/Grid/Grid.js +2 -4
- package/modern/ImageList/ImageList.js +3 -1
- package/modern/InputAdornment/InputAdornment.js +6 -9
- package/modern/Modal/Modal.js +1 -1
- package/modern/OutlinedInput/NotchedOutline.js +14 -16
- package/modern/OutlinedInput/OutlinedInput.js +1 -1
- package/modern/Radio/RadioButtonIcon.js +2 -6
- package/modern/Rating/Rating.js +1 -1
- package/modern/Select/Select.js +19 -7
- package/modern/Select/SelectInput.js +12 -10
- package/modern/Slide/Slide.js +14 -14
- package/modern/Slider/Slider.js +3 -1
- package/modern/Snackbar/Snackbar.js +12 -9
- package/modern/SpeedDial/SpeedDial.js +9 -7
- package/modern/Step/StepContext.js +10 -2
- package/modern/Step/index.js +3 -1
- package/modern/SwipeableDrawer/SwipeArea.js +1 -3
- package/modern/SwipeableDrawer/SwipeableDrawer.js +8 -6
- package/modern/TextField/TextField.js +1 -1
- package/modern/ToggleButton/ToggleButton.js +8 -2
- package/modern/Zoom/Zoom.js +8 -8
- package/modern/index.js +8 -3
- package/modern/internal/SwitchBase.js +2 -6
- package/modern/locale/index.js +12 -6
- package/modern/styles/makeStyles.js +1 -1
- package/modern/styles/withStyles.js +1 -1
- package/modern/styles/withTheme.js +1 -1
- package/modern/useMediaQuery/useMediaQuery.js +69 -27
- package/node/Autocomplete/Autocomplete.js +11 -3
- package/node/AvatarGroup/AvatarGroup.js +19 -7
- package/node/Badge/Badge.js +3 -2
- package/node/Breadcrumbs/BreadcrumbCollapsed.js +1 -3
- package/node/ButtonBase/ButtonBase.js +15 -2
- package/node/ButtonBase/TouchRipple.js +1 -2
- package/node/Dialog/Dialog.js +11 -7
- package/node/Drawer/Drawer.js +11 -10
- package/node/Fab/Fab.js +8 -20
- package/node/Fab/fabClasses.js +1 -1
- package/node/Fade/Fade.js +7 -9
- package/node/FormControlLabel/FormControlLabel.js +12 -3
- package/node/FormControlLabel/formControlLabelClasses.js +1 -1
- package/node/FormGroup/FormGroup.js +15 -3
- package/node/FormGroup/formGroupClasses.js +1 -1
- package/node/FormHelperText/FormHelperText.js +6 -9
- package/node/Grid/Grid.js +2 -4
- package/node/ImageList/ImageList.js +3 -1
- package/node/InputAdornment/InputAdornment.js +5 -9
- package/node/Modal/Modal.js +1 -1
- package/node/OutlinedInput/NotchedOutline.js +12 -16
- package/node/OutlinedInput/OutlinedInput.js +1 -1
- package/node/Radio/RadioButtonIcon.js +2 -6
- package/node/Rating/Rating.js +1 -1
- package/node/Select/Select.js +22 -9
- package/node/Select/SelectInput.js +11 -10
- package/node/Slide/Slide.js +14 -16
- package/node/Slider/Slider.js +3 -1
- package/node/Snackbar/Snackbar.js +12 -10
- package/node/SpeedDial/SpeedDial.js +9 -7
- package/node/Step/StepContext.js +11 -1
- package/node/Step/index.js +22 -1
- package/node/SwipeableDrawer/SwipeArea.js +1 -3
- package/node/SwipeableDrawer/SwipeableDrawer.js +8 -7
- package/node/TextField/TextField.js +1 -1
- package/node/ToggleButton/ToggleButton.js +8 -2
- package/node/Zoom/Zoom.js +7 -9
- package/node/index.js +62 -16
- package/node/internal/SwitchBase.js +2 -6
- package/node/locale/index.js +12 -6
- package/node/styles/makeStyles.js +1 -1
- package/node/styles/withStyles.js +1 -1
- package/node/styles/withTheme.js +1 -1
- package/node/useMediaQuery/useMediaQuery.js +69 -27
- package/package.json +8 -8
- package/styles/ThemeProvider.d.ts +1 -1
- package/styles/index.d.ts +3 -0
- package/styles/makeStyles.js +1 -1
- package/styles/withStyles.js +1 -1
- package/styles/withTheme.js +1 -1
- package/umd/material-ui.development.js +5022 -7146
- package/umd/material-ui.production.min.js +21 -21
- package/useMediaQuery/useMediaQuery.d.ts +4 -0
- package/useMediaQuery/useMediaQuery.js +69 -27
package/legacy/locale/index.js
CHANGED
|
@@ -1866,9 +1866,13 @@ export var itIT = {
|
|
|
1866
1866
|
|
|
1867
1867
|
return 'Vai alla pagina precedente';
|
|
1868
1868
|
},
|
|
1869
|
-
labelRowsPerPage: 'Righe per pagina:'
|
|
1870
|
-
|
|
1871
|
-
|
|
1869
|
+
labelRowsPerPage: 'Righe per pagina:',
|
|
1870
|
+
labelDisplayedRows: function labelDisplayedRows(_ref14) {
|
|
1871
|
+
var from = _ref14.from,
|
|
1872
|
+
to = _ref14.to,
|
|
1873
|
+
count = _ref14.count;
|
|
1874
|
+
return "".concat(from, "\u2013").concat(to, " di ").concat(count !== -1 ? count : "pi\xF9 di ".concat(to));
|
|
1875
|
+
}
|
|
1872
1876
|
}
|
|
1873
1877
|
},
|
|
1874
1878
|
MuiRating: {
|
|
@@ -1946,10 +1950,10 @@ export var jaJP = {
|
|
|
1946
1950
|
return '前のページへ';
|
|
1947
1951
|
},
|
|
1948
1952
|
labelRowsPerPage: 'ページあたりの行数:',
|
|
1949
|
-
labelDisplayedRows: function labelDisplayedRows(
|
|
1950
|
-
var from =
|
|
1951
|
-
to =
|
|
1952
|
-
count =
|
|
1953
|
+
labelDisplayedRows: function labelDisplayedRows(_ref15) {
|
|
1954
|
+
var from = _ref15.from,
|
|
1955
|
+
to = _ref15.to,
|
|
1956
|
+
count = _ref15.count;
|
|
1953
1957
|
return "".concat(from, "\uFF5E").concat(to, " / ").concat(count !== -1 ? count : "".concat(to, "\u4EE5\u4E0A"));
|
|
1954
1958
|
}
|
|
1955
1959
|
}
|
|
@@ -2029,10 +2033,10 @@ export var khKH = {
|
|
|
2029
2033
|
return 'ទៅទំព័រមុន';
|
|
2030
2034
|
},
|
|
2031
2035
|
labelRowsPerPage: 'ចំនួនជួរដេកក្នុងមួយទំព័រ:',
|
|
2032
|
-
labelDisplayedRows: function labelDisplayedRows(
|
|
2033
|
-
var from =
|
|
2034
|
-
to =
|
|
2035
|
-
count =
|
|
2036
|
+
labelDisplayedRows: function labelDisplayedRows(_ref16) {
|
|
2037
|
+
var from = _ref16.from,
|
|
2038
|
+
to = _ref16.to,
|
|
2039
|
+
count = _ref16.count;
|
|
2036
2040
|
return "".concat(from, " - ").concat(to, " \u1793\u17C3 ").concat(count !== -1 ? count : "\u1785\u17D2\u179A\u17BE\u1793\u1787\u17B6\u1784 ".concat(to));
|
|
2037
2041
|
}
|
|
2038
2042
|
}
|
|
@@ -2112,10 +2116,10 @@ export var koKR = {
|
|
|
2112
2116
|
return '이전 페이지로 이동';
|
|
2113
2117
|
},
|
|
2114
2118
|
labelRowsPerPage: '페이지 당 행:',
|
|
2115
|
-
labelDisplayedRows: function labelDisplayedRows(
|
|
2116
|
-
var from =
|
|
2117
|
-
to =
|
|
2118
|
-
count =
|
|
2119
|
+
labelDisplayedRows: function labelDisplayedRows(_ref17) {
|
|
2120
|
+
var from = _ref17.from,
|
|
2121
|
+
to = _ref17.to,
|
|
2122
|
+
count = _ref17.count;
|
|
2119
2123
|
return "".concat(from, "\u2013").concat(to, " / ").concat(count !== -1 ? count : "".concat(to, "\uAC1C \uC774\uC0C1"));
|
|
2120
2124
|
}
|
|
2121
2125
|
}
|
|
@@ -2195,10 +2199,10 @@ export var kzKZ = {
|
|
|
2195
2199
|
return 'Алдыңғы бетке өту';
|
|
2196
2200
|
},
|
|
2197
2201
|
labelRowsPerPage: 'Беттегі қатарлар:',
|
|
2198
|
-
labelDisplayedRows: function labelDisplayedRows(
|
|
2199
|
-
var from =
|
|
2200
|
-
to =
|
|
2201
|
-
count =
|
|
2202
|
+
labelDisplayedRows: function labelDisplayedRows(_ref18) {
|
|
2203
|
+
var from = _ref18.from,
|
|
2204
|
+
to = _ref18.to,
|
|
2205
|
+
count = _ref18.count;
|
|
2202
2206
|
return "".concat(count !== -1 ? count : "+".concat(to), " \u049B\u0430\u0442\u0430\u0440\u0434\u044B\u04A3 \u0456\u0448\u0456\u043D\u0435\u043D ").concat(from, "\u2013").concat(to);
|
|
2203
2207
|
}
|
|
2204
2208
|
}
|
|
@@ -2282,10 +2286,10 @@ export var nbNO = {
|
|
|
2282
2286
|
return 'Gå til forrige side';
|
|
2283
2287
|
},
|
|
2284
2288
|
labelRowsPerPage: 'Rader per side:',
|
|
2285
|
-
labelDisplayedRows: function labelDisplayedRows(
|
|
2286
|
-
var from =
|
|
2287
|
-
to =
|
|
2288
|
-
count =
|
|
2289
|
+
labelDisplayedRows: function labelDisplayedRows(_ref19) {
|
|
2290
|
+
var from = _ref19.from,
|
|
2291
|
+
to = _ref19.to,
|
|
2292
|
+
count = _ref19.count;
|
|
2289
2293
|
return "".concat(from, "\u2013").concat(to, " av ").concat(count !== -1 ? count : "mer enn ".concat(to));
|
|
2290
2294
|
}
|
|
2291
2295
|
}
|
|
@@ -2365,10 +2369,10 @@ export var nlNL = {
|
|
|
2365
2369
|
return 'Ga naar vorige pagina';
|
|
2366
2370
|
},
|
|
2367
2371
|
labelRowsPerPage: 'Regels per pagina:',
|
|
2368
|
-
labelDisplayedRows: function labelDisplayedRows(
|
|
2369
|
-
var from =
|
|
2370
|
-
to =
|
|
2371
|
-
count =
|
|
2372
|
+
labelDisplayedRows: function labelDisplayedRows(_ref20) {
|
|
2373
|
+
var from = _ref20.from,
|
|
2374
|
+
to = _ref20.to,
|
|
2375
|
+
count = _ref20.count;
|
|
2372
2376
|
return "".concat(from, "\u2013").concat(to, " van ").concat(count !== -1 ? count : "meer dan ".concat(to));
|
|
2373
2377
|
}
|
|
2374
2378
|
}
|
|
@@ -2447,9 +2451,13 @@ export var plPL = {
|
|
|
2447
2451
|
|
|
2448
2452
|
return 'Przejdź do poprzedniej strony';
|
|
2449
2453
|
},
|
|
2450
|
-
labelRowsPerPage: 'Wierszy na stronę:'
|
|
2451
|
-
|
|
2452
|
-
|
|
2454
|
+
labelRowsPerPage: 'Wierszy na stronę:',
|
|
2455
|
+
labelDisplayedRows: function labelDisplayedRows(_ref21) {
|
|
2456
|
+
var from = _ref21.from,
|
|
2457
|
+
to = _ref21.to,
|
|
2458
|
+
count = _ref21.count;
|
|
2459
|
+
return "".concat(from, "\u2013").concat(to, " z ").concat(count !== -1 ? count : "ponad ".concat(to));
|
|
2460
|
+
}
|
|
2453
2461
|
}
|
|
2454
2462
|
},
|
|
2455
2463
|
MuiRating: {
|
|
@@ -2536,10 +2544,10 @@ export var ptBR = {
|
|
|
2536
2544
|
return 'Ir para a página anterior';
|
|
2537
2545
|
},
|
|
2538
2546
|
labelRowsPerPage: 'Linhas por página:',
|
|
2539
|
-
labelDisplayedRows: function labelDisplayedRows(
|
|
2540
|
-
var from =
|
|
2541
|
-
to =
|
|
2542
|
-
count =
|
|
2547
|
+
labelDisplayedRows: function labelDisplayedRows(_ref22) {
|
|
2548
|
+
var from = _ref22.from,
|
|
2549
|
+
to = _ref22.to,
|
|
2550
|
+
count = _ref22.count;
|
|
2543
2551
|
return "".concat(from, "\u2013").concat(to, " de ").concat(count !== -1 ? count : "mais de ".concat(to));
|
|
2544
2552
|
}
|
|
2545
2553
|
}
|
|
@@ -2619,10 +2627,10 @@ export var ptPT = {
|
|
|
2619
2627
|
return 'Página anterior';
|
|
2620
2628
|
},
|
|
2621
2629
|
labelRowsPerPage: 'Linhas por página:',
|
|
2622
|
-
labelDisplayedRows: function labelDisplayedRows(
|
|
2623
|
-
var from =
|
|
2624
|
-
to =
|
|
2625
|
-
count =
|
|
2630
|
+
labelDisplayedRows: function labelDisplayedRows(_ref23) {
|
|
2631
|
+
var from = _ref23.from,
|
|
2632
|
+
to = _ref23.to,
|
|
2633
|
+
count = _ref23.count;
|
|
2626
2634
|
return "".concat(from, "\u2013").concat(to, " de ").concat(count !== -1 ? count : "mais de ".concat(to));
|
|
2627
2635
|
}
|
|
2628
2636
|
}
|
|
@@ -2781,10 +2789,10 @@ export var ruRU = {
|
|
|
2781
2789
|
return 'Перейти на предыдущую страницу';
|
|
2782
2790
|
},
|
|
2783
2791
|
labelRowsPerPage: 'Строк на странице:',
|
|
2784
|
-
labelDisplayedRows: function labelDisplayedRows(
|
|
2785
|
-
var from =
|
|
2786
|
-
to =
|
|
2787
|
-
count =
|
|
2792
|
+
labelDisplayedRows: function labelDisplayedRows(_ref24) {
|
|
2793
|
+
var from = _ref24.from,
|
|
2794
|
+
to = _ref24.to,
|
|
2795
|
+
count = _ref24.count;
|
|
2788
2796
|
return "".concat(from, "\u2013").concat(to, " \u0438\u0437 ").concat(count !== -1 ? count : "\u0431\u043E\u043B\u0435\u0435 \u0447\u0435\u043C ".concat(to));
|
|
2789
2797
|
}
|
|
2790
2798
|
}
|
|
@@ -2877,10 +2885,10 @@ export var siLK = {
|
|
|
2877
2885
|
return 'පෙර පිටුවට යන්න';
|
|
2878
2886
|
},
|
|
2879
2887
|
labelRowsPerPage: 'පිටුවක පේළි:',
|
|
2880
|
-
labelDisplayedRows: function labelDisplayedRows(
|
|
2881
|
-
var from =
|
|
2882
|
-
to =
|
|
2883
|
-
count =
|
|
2888
|
+
labelDisplayedRows: function labelDisplayedRows(_ref25) {
|
|
2889
|
+
var from = _ref25.from,
|
|
2890
|
+
to = _ref25.to,
|
|
2891
|
+
count = _ref25.count;
|
|
2884
2892
|
return "".concat(from, "\u2013").concat(to, " \u0DAF\u0D9A\u0DCA\u0DC0\u0DCF ").concat(count !== -1 ? count : "".concat(to, " \u0DA7 \u0DC0\u0DD0\u0DA9\u0DD2 \u0DB4\u0DCA\u200D\u0DBB\u0DB8\u0DCF\u0DAB\u0DBA\u0D9A\u0DD2\u0DB1\u0DCA"));
|
|
2885
2893
|
}
|
|
2886
2894
|
}
|
|
@@ -2960,10 +2968,10 @@ export var skSK = {
|
|
|
2960
2968
|
return 'Ísť na predchádzajúcu stránku';
|
|
2961
2969
|
},
|
|
2962
2970
|
labelRowsPerPage: 'Riadkov na stránke:',
|
|
2963
|
-
labelDisplayedRows: function labelDisplayedRows(
|
|
2964
|
-
var from =
|
|
2965
|
-
to =
|
|
2966
|
-
count =
|
|
2971
|
+
labelDisplayedRows: function labelDisplayedRows(_ref26) {
|
|
2972
|
+
var from = _ref26.from,
|
|
2973
|
+
to = _ref26.to,
|
|
2974
|
+
count = _ref26.count;
|
|
2967
2975
|
return "".concat(from, "\u2013").concat(to, " z ").concat(count !== -1 ? count : "viac ako ".concat(to));
|
|
2968
2976
|
}
|
|
2969
2977
|
}
|
|
@@ -3051,10 +3059,10 @@ export var svSE = {
|
|
|
3051
3059
|
return 'Gå till föregående sida';
|
|
3052
3060
|
},
|
|
3053
3061
|
labelRowsPerPage: 'Rader per sida:',
|
|
3054
|
-
labelDisplayedRows: function labelDisplayedRows(
|
|
3055
|
-
var from =
|
|
3056
|
-
to =
|
|
3057
|
-
count =
|
|
3062
|
+
labelDisplayedRows: function labelDisplayedRows(_ref27) {
|
|
3063
|
+
var from = _ref27.from,
|
|
3064
|
+
to = _ref27.to,
|
|
3065
|
+
count = _ref27.count;
|
|
3058
3066
|
return "".concat(from, "\u2013").concat(to, " av ").concat(count !== -1 ? count : "fler \xE4n ".concat(to));
|
|
3059
3067
|
}
|
|
3060
3068
|
}
|
|
@@ -3134,10 +3142,10 @@ export var thTH = {
|
|
|
3134
3142
|
return 'ไปที่หน้าก่อน';
|
|
3135
3143
|
},
|
|
3136
3144
|
labelRowsPerPage: 'จำนวนแถวต่อหน้า:',
|
|
3137
|
-
labelDisplayedRows: function labelDisplayedRows(
|
|
3138
|
-
var from =
|
|
3139
|
-
to =
|
|
3140
|
-
count =
|
|
3145
|
+
labelDisplayedRows: function labelDisplayedRows(_ref28) {
|
|
3146
|
+
var from = _ref28.from,
|
|
3147
|
+
to = _ref28.to,
|
|
3148
|
+
count = _ref28.count;
|
|
3141
3149
|
return "".concat(from, "\u2013").concat(to, " \u0E08\u0E32\u0E01 ").concat(count !== -1 ? count : "\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32 ".concat(to));
|
|
3142
3150
|
}
|
|
3143
3151
|
}
|
|
@@ -3296,10 +3304,10 @@ export var ukUA = {
|
|
|
3296
3304
|
return 'Перейти на попередню сторінку';
|
|
3297
3305
|
},
|
|
3298
3306
|
labelRowsPerPage: 'Рядків на сторінці:',
|
|
3299
|
-
labelDisplayedRows: function labelDisplayedRows(
|
|
3300
|
-
var from =
|
|
3301
|
-
to =
|
|
3302
|
-
count =
|
|
3307
|
+
labelDisplayedRows: function labelDisplayedRows(_ref29) {
|
|
3308
|
+
var from = _ref29.from,
|
|
3309
|
+
to = _ref29.to,
|
|
3310
|
+
count = _ref29.count;
|
|
3303
3311
|
return "".concat(from, "\u2013").concat(to, " \u0437 ").concat(count !== -1 ? count : "\u043F\u043E\u043D\u0430\u0434 ".concat(to));
|
|
3304
3312
|
}
|
|
3305
3313
|
}
|
|
@@ -3388,10 +3396,10 @@ export var viVN = {
|
|
|
3388
3396
|
return 'Về trang trước đó';
|
|
3389
3397
|
},
|
|
3390
3398
|
labelRowsPerPage: 'Số hàng mỗi trang:',
|
|
3391
|
-
labelDisplayedRows: function labelDisplayedRows(
|
|
3392
|
-
var from =
|
|
3393
|
-
to =
|
|
3394
|
-
count =
|
|
3399
|
+
labelDisplayedRows: function labelDisplayedRows(_ref30) {
|
|
3400
|
+
var from = _ref30.from,
|
|
3401
|
+
to = _ref30.to,
|
|
3402
|
+
count = _ref30.count;
|
|
3395
3403
|
return "".concat(from, "\u2013").concat(to, " trong ").concat(count !== -1 ? count : "nhi\u1EC1u h\u01A1n ".concat(to));
|
|
3396
3404
|
}
|
|
3397
3405
|
}
|
|
@@ -3470,10 +3478,10 @@ export var zhCN = {
|
|
|
3470
3478
|
return '上一页';
|
|
3471
3479
|
},
|
|
3472
3480
|
labelRowsPerPage: '每页行数:',
|
|
3473
|
-
labelDisplayedRows: function labelDisplayedRows(
|
|
3474
|
-
var from =
|
|
3475
|
-
to =
|
|
3476
|
-
count =
|
|
3481
|
+
labelDisplayedRows: function labelDisplayedRows(_ref31) {
|
|
3482
|
+
var from = _ref31.from,
|
|
3483
|
+
to = _ref31.to,
|
|
3484
|
+
count = _ref31.count;
|
|
3477
3485
|
return "\u7B2C ".concat(from, " \u6761\u5230\u7B2C ").concat(to, " \u6761\uFF0C").concat(count !== -1 ? "\u5171 ".concat(count, " \u6761") : "\u81F3\u5C11 ".concat(to, " \u6761"));
|
|
3478
3486
|
}
|
|
3479
3487
|
}
|
|
@@ -3527,10 +3535,10 @@ export var zhHK = {
|
|
|
3527
3535
|
return '上一頁';
|
|
3528
3536
|
},
|
|
3529
3537
|
labelRowsPerPage: '每頁行數:',
|
|
3530
|
-
labelDisplayedRows: function labelDisplayedRows(
|
|
3531
|
-
var from =
|
|
3532
|
-
to =
|
|
3533
|
-
count =
|
|
3538
|
+
labelDisplayedRows: function labelDisplayedRows(_ref32) {
|
|
3539
|
+
var from = _ref32.from,
|
|
3540
|
+
to = _ref32.to,
|
|
3541
|
+
count = _ref32.count;
|
|
3534
3542
|
return "\u7B2C ".concat(from, " \u9805\u81F3\u7B2C ").concat(to, " \u9805\uFF0C").concat(count !== -1 ? "\u5171 ".concat(count, " \u9805") : "\u8D85\u904E ".concat(to, " \u9805"));
|
|
3535
3543
|
}
|
|
3536
3544
|
}
|
|
@@ -3584,10 +3592,10 @@ export var zhTW = {
|
|
|
3584
3592
|
return '上一頁';
|
|
3585
3593
|
},
|
|
3586
3594
|
labelRowsPerPage: '每行行數:',
|
|
3587
|
-
labelDisplayedRows: function labelDisplayedRows(
|
|
3588
|
-
var from =
|
|
3589
|
-
to =
|
|
3590
|
-
count =
|
|
3595
|
+
labelDisplayedRows: function labelDisplayedRows(_ref33) {
|
|
3596
|
+
var from = _ref33.from,
|
|
3597
|
+
to = _ref33.to,
|
|
3598
|
+
count = _ref33.count;
|
|
3591
3599
|
return "\u7B2C ".concat(from, " \u689D\u5230\u7B2C ").concat(to, " \u689D\uFF0C").concat(count !== -1 ? "\u5171 ".concat(count, " \u689D") : "\u81F3\u5C11 ".concat(to, " \u689D"));
|
|
3592
3600
|
}
|
|
3593
3601
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { formatMuiErrorMessage as _formatMuiErrorMessage } from "@mui/utils";
|
|
2
2
|
export default function makeStyles() {
|
|
3
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: makeStyles is not longer exported from @mui/material/styles.\nYou have to import it from @mui/styles.\nSee https://mui.com/r/migration-v4/#material-
|
|
3
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: makeStyles is not longer exported from @mui/material/styles.\nYou have to import it from @mui/styles.\nSee https://mui.com/r/migration-v4/#mui-material-styles for more details." : _formatMuiErrorMessage(14));
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { formatMuiErrorMessage as _formatMuiErrorMessage } from "@mui/utils";
|
|
2
2
|
export default function withStyles() {
|
|
3
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: withStyles is not longer exported from @mui/material/styles.\nYou have to import it from @mui/styles.\nSee https://mui.com/r/migration-v4/#material-
|
|
3
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: withStyles is not longer exported from @mui/material/styles.\nYou have to import it from @mui/styles.\nSee https://mui.com/r/migration-v4/#mui-material-styles for more details." : _formatMuiErrorMessage(15));
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { formatMuiErrorMessage as _formatMuiErrorMessage } from "@mui/utils";
|
|
2
2
|
export default function withTheme() {
|
|
3
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: withTheme is not longer exported from @mui/material/styles.\nYou have to import it from @mui/styles.\nSee https://mui.com/r/migration-v4/#material-
|
|
3
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: withTheme is not longer exported from @mui/material/styles.\nYou have to import it from @mui/styles.\nSee https://mui.com/r/migration-v4/#mui-material-styles for more details." : _formatMuiErrorMessage(16));
|
|
4
4
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
1
2
|
import * as React from 'react';
|
|
2
3
|
import { getThemeProps, useThemeWithoutDefault as useTheme } from '@mui/system';
|
|
3
4
|
import useEnhancedEffect from '../utils/useEnhancedEffect';
|
|
@@ -5,38 +6,9 @@ import useEnhancedEffect from '../utils/useEnhancedEffect';
|
|
|
5
6
|
* @deprecated Not used internally. Use `MediaQueryListEvent` from lib.dom.d.ts instead.
|
|
6
7
|
*/
|
|
7
8
|
|
|
8
|
-
|
|
9
|
-
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
10
|
-
var theme = useTheme(); // Wait for jsdom to support the match media feature.
|
|
11
|
-
// All the browsers MUI support have this built-in.
|
|
12
|
-
// This defensive check is here for simplicity.
|
|
13
|
-
// Most of the time, the match media logic isn't central to people tests.
|
|
14
|
-
|
|
9
|
+
function useMediaQueryOld(query, defaultMatches, matchMedia, ssrMatchMedia, noSsr) {
|
|
15
10
|
var supportMatchMedia = typeof window !== 'undefined' && typeof window.matchMedia !== 'undefined';
|
|
16
11
|
|
|
17
|
-
var _getThemeProps = getThemeProps({
|
|
18
|
-
name: 'MuiUseMediaQuery',
|
|
19
|
-
props: options,
|
|
20
|
-
theme: theme
|
|
21
|
-
}),
|
|
22
|
-
_getThemeProps$defaul = _getThemeProps.defaultMatches,
|
|
23
|
-
defaultMatches = _getThemeProps$defaul === void 0 ? false : _getThemeProps$defaul,
|
|
24
|
-
_getThemeProps$matchM = _getThemeProps.matchMedia,
|
|
25
|
-
matchMedia = _getThemeProps$matchM === void 0 ? supportMatchMedia ? window.matchMedia : null : _getThemeProps$matchM,
|
|
26
|
-
_getThemeProps$noSsr = _getThemeProps.noSsr,
|
|
27
|
-
noSsr = _getThemeProps$noSsr === void 0 ? false : _getThemeProps$noSsr,
|
|
28
|
-
_getThemeProps$ssrMat = _getThemeProps.ssrMatchMedia,
|
|
29
|
-
ssrMatchMedia = _getThemeProps$ssrMat === void 0 ? null : _getThemeProps$ssrMat;
|
|
30
|
-
|
|
31
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
32
|
-
if (typeof queryInput === 'function' && theme === null) {
|
|
33
|
-
console.error(['MUI: The `query` argument provided is invalid.', 'You are providing a function without a theme in the context.', 'One of the parent elements needs to use a ThemeProvider.'].join('\n'));
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
var query = typeof queryInput === 'function' ? queryInput(theme) : queryInput;
|
|
38
|
-
query = query.replace(/^@media( ?)/m, '');
|
|
39
|
-
|
|
40
12
|
var _React$useState = React.useState(function () {
|
|
41
13
|
if (noSsr && supportMatchMedia) {
|
|
42
14
|
return matchMedia(query).matches;
|
|
@@ -67,19 +39,102 @@ export default function useMediaQuery(queryInput) {
|
|
|
67
39
|
var updateMatch = function updateMatch() {
|
|
68
40
|
// Workaround Safari wrong implementation of matchMedia
|
|
69
41
|
// TODO can we remove it?
|
|
70
|
-
// https://github.com/mui
|
|
42
|
+
// https://github.com/mui/material-ui/pull/17315#issuecomment-528286677
|
|
71
43
|
if (active) {
|
|
72
44
|
setMatch(queryList.matches);
|
|
73
45
|
}
|
|
74
46
|
};
|
|
75
47
|
|
|
76
|
-
updateMatch();
|
|
48
|
+
updateMatch(); // TODO: Use `addEventListener` once support for Safari < 14 is dropped
|
|
49
|
+
|
|
77
50
|
queryList.addListener(updateMatch);
|
|
78
51
|
return function () {
|
|
79
52
|
active = false;
|
|
80
53
|
queryList.removeListener(updateMatch);
|
|
81
54
|
};
|
|
82
55
|
}, [query, matchMedia, supportMatchMedia]);
|
|
56
|
+
return match;
|
|
57
|
+
} // eslint-disable-next-line no-useless-concat -- Workaround for https://github.com/webpack/webpack/issues/14814
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
var maybeReactUseSyncExternalStore = React['useSyncExternalStore' + ''];
|
|
61
|
+
|
|
62
|
+
function useMediaQueryNew(query, defaultMatches, matchMedia, ssrMatchMedia) {
|
|
63
|
+
var getDefaultSnapshot = React.useCallback(function () {
|
|
64
|
+
return defaultMatches;
|
|
65
|
+
}, [defaultMatches]);
|
|
66
|
+
var getServerSnapshot = React.useMemo(function () {
|
|
67
|
+
if (ssrMatchMedia !== null) {
|
|
68
|
+
var _ssrMatchMedia = ssrMatchMedia(query),
|
|
69
|
+
matches = _ssrMatchMedia.matches;
|
|
70
|
+
|
|
71
|
+
return function () {
|
|
72
|
+
return matches;
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
return getDefaultSnapshot;
|
|
77
|
+
}, [getDefaultSnapshot, query, ssrMatchMedia]);
|
|
78
|
+
|
|
79
|
+
var _React$useMemo = React.useMemo(function () {
|
|
80
|
+
if (matchMedia === null) {
|
|
81
|
+
return [getDefaultSnapshot, function () {
|
|
82
|
+
return function () {};
|
|
83
|
+
}];
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
var mediaQueryList = matchMedia(query);
|
|
87
|
+
return [function () {
|
|
88
|
+
return mediaQueryList.matches;
|
|
89
|
+
}, function (notify) {
|
|
90
|
+
// TODO: Use `addEventListener` once support for Safari < 14 is dropped
|
|
91
|
+
mediaQueryList.addListener(notify);
|
|
92
|
+
return function () {
|
|
93
|
+
mediaQueryList.removeListener(notify);
|
|
94
|
+
};
|
|
95
|
+
}];
|
|
96
|
+
}, [getDefaultSnapshot, matchMedia, query]),
|
|
97
|
+
_React$useMemo2 = _slicedToArray(_React$useMemo, 2),
|
|
98
|
+
getSnapshot = _React$useMemo2[0],
|
|
99
|
+
subscribe = _React$useMemo2[1];
|
|
100
|
+
|
|
101
|
+
var match = maybeReactUseSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
|
|
102
|
+
return match;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export default function useMediaQuery(queryInput) {
|
|
106
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
107
|
+
var theme = useTheme(); // Wait for jsdom to support the match media feature.
|
|
108
|
+
// All the browsers MUI support have this built-in.
|
|
109
|
+
// This defensive check is here for simplicity.
|
|
110
|
+
// Most of the time, the match media logic isn't central to people tests.
|
|
111
|
+
|
|
112
|
+
var supportMatchMedia = typeof window !== 'undefined' && typeof window.matchMedia !== 'undefined';
|
|
113
|
+
|
|
114
|
+
var _getThemeProps = getThemeProps({
|
|
115
|
+
name: 'MuiUseMediaQuery',
|
|
116
|
+
props: options,
|
|
117
|
+
theme: theme
|
|
118
|
+
}),
|
|
119
|
+
_getThemeProps$defaul = _getThemeProps.defaultMatches,
|
|
120
|
+
defaultMatches = _getThemeProps$defaul === void 0 ? false : _getThemeProps$defaul,
|
|
121
|
+
_getThemeProps$matchM = _getThemeProps.matchMedia,
|
|
122
|
+
matchMedia = _getThemeProps$matchM === void 0 ? supportMatchMedia ? window.matchMedia : null : _getThemeProps$matchM,
|
|
123
|
+
_getThemeProps$ssrMat = _getThemeProps.ssrMatchMedia,
|
|
124
|
+
ssrMatchMedia = _getThemeProps$ssrMat === void 0 ? null : _getThemeProps$ssrMat,
|
|
125
|
+
noSsr = _getThemeProps.noSsr;
|
|
126
|
+
|
|
127
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
128
|
+
if (typeof queryInput === 'function' && theme === null) {
|
|
129
|
+
console.error(['MUI: The `query` argument provided is invalid.', 'You are providing a function without a theme in the context.', 'One of the parent elements needs to use a ThemeProvider.'].join('\n'));
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
var query = typeof queryInput === 'function' ? queryInput(theme) : queryInput;
|
|
134
|
+
query = query.replace(/^@media( ?)/m, ''); // TODO: Drop `useMediaQueryOld` and use `use-sync-external-store` shim in `useMediaQueryNew` once the package is stable
|
|
135
|
+
|
|
136
|
+
var useMediaQueryImplementation = maybeReactUseSyncExternalStore !== undefined ? useMediaQueryNew : useMediaQueryOld;
|
|
137
|
+
var match = useMediaQueryImplementation(query, defaultMatches, matchMedia, ssrMatchMedia, noSsr);
|
|
83
138
|
|
|
84
139
|
if (process.env.NODE_ENV !== 'production') {
|
|
85
140
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
package/locale/index.js
CHANGED
|
@@ -1813,9 +1813,12 @@ export const itIT = {
|
|
|
1813
1813
|
|
|
1814
1814
|
return 'Vai alla pagina precedente';
|
|
1815
1815
|
},
|
|
1816
|
-
labelRowsPerPage: 'Righe per pagina:'
|
|
1817
|
-
|
|
1818
|
-
|
|
1816
|
+
labelRowsPerPage: 'Righe per pagina:',
|
|
1817
|
+
labelDisplayedRows: ({
|
|
1818
|
+
from,
|
|
1819
|
+
to,
|
|
1820
|
+
count
|
|
1821
|
+
}) => `${from}–${to} di ${count !== -1 ? count : `più di ${to}`}`
|
|
1819
1822
|
}
|
|
1820
1823
|
},
|
|
1821
1824
|
MuiRating: {
|
|
@@ -2374,9 +2377,12 @@ export const plPL = {
|
|
|
2374
2377
|
|
|
2375
2378
|
return 'Przejdź do poprzedniej strony';
|
|
2376
2379
|
},
|
|
2377
|
-
labelRowsPerPage: 'Wierszy na stronę:'
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
+
labelRowsPerPage: 'Wierszy na stronę:',
|
|
2381
|
+
labelDisplayedRows: ({
|
|
2382
|
+
from,
|
|
2383
|
+
to,
|
|
2384
|
+
count
|
|
2385
|
+
}) => `${from}–${to} z ${count !== -1 ? count : `ponad ${to}`}`
|
|
2380
2386
|
}
|
|
2381
2387
|
},
|
|
2382
2388
|
MuiRating: {
|
|
@@ -3,7 +3,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
3
3
|
|
|
4
4
|
var _ClearIcon, _ArrowDropDownIcon;
|
|
5
5
|
|
|
6
|
-
const _excluded = ["autoComplete", "autoHighlight", "autoSelect", "blurOnSelect", "ChipProps", "className", "clearIcon", "clearOnBlur", "clearOnEscape", "clearText", "closeText", "componentsProps", "defaultValue", "disableClearable", "disableCloseOnSelect", "disabled", "disabledItemsFocusable", "disableListWrap", "disablePortal", "filterOptions", "filterSelectedOptions", "forcePopupIcon", "freeSolo", "fullWidth", "getLimitTagsText", "getOptionDisabled", "getOptionLabel", "isOptionEqualToValue", "groupBy", "handleHomeEndKeys", "id", "includeInputInList", "inputValue", "limitTags", "ListboxComponent", "ListboxProps", "loading", "loadingText", "multiple", "noOptionsText", "onChange", "onClose", "onHighlightChange", "onInputChange", "onOpen", "open", "openOnFocus", "openText", "options", "PaperComponent", "PopperComponent", "popupIcon", "renderGroup", "renderInput", "renderOption", "renderTags", "selectOnFocus", "size", "value"];
|
|
6
|
+
const _excluded = ["autoComplete", "autoHighlight", "autoSelect", "blurOnSelect", "ChipProps", "className", "clearIcon", "clearOnBlur", "clearOnEscape", "clearText", "closeText", "componentsProps", "defaultValue", "disableClearable", "disableCloseOnSelect", "disabled", "disabledItemsFocusable", "disableListWrap", "disablePortal", "filterOptions", "filterSelectedOptions", "forcePopupIcon", "freeSolo", "fullWidth", "getLimitTagsText", "getOptionDisabled", "getOptionLabel", "isOptionEqualToValue", "groupBy", "handleHomeEndKeys", "id", "includeInputInList", "inputValue", "limitTags", "ListboxComponent", "ListboxProps", "loading", "loadingText", "multiple", "noOptionsText", "onChange", "onClose", "onHighlightChange", "onInputChange", "onOpen", "open", "openOnFocus", "openText", "options", "PaperComponent", "PopperComponent", "popupIcon", "readOnly", "renderGroup", "renderInput", "renderOption", "renderTags", "selectOnFocus", "size", "value"];
|
|
7
7
|
import * as React from 'react';
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
9
9
|
import clsx from 'clsx';
|
|
@@ -398,6 +398,7 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
|
|
|
398
398
|
PaperComponent = Paper,
|
|
399
399
|
PopperComponent = Popper,
|
|
400
400
|
popupIcon = _ArrowDropDownIcon || (_ArrowDropDownIcon = /*#__PURE__*/_jsx(ArrowDropDownIcon, {})),
|
|
401
|
+
readOnly = false,
|
|
401
402
|
renderGroup: renderGroupProp,
|
|
402
403
|
renderInput,
|
|
403
404
|
renderOption: renderOptionProp,
|
|
@@ -431,7 +432,7 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
|
|
|
431
432
|
} = useAutocomplete(_extends({}, props, {
|
|
432
433
|
componentName: 'Autocomplete'
|
|
433
434
|
}));
|
|
434
|
-
const hasClearIcon = !disableClearable && !disabled && dirty;
|
|
435
|
+
const hasClearIcon = !disableClearable && !disabled && dirty && !readOnly;
|
|
435
436
|
const hasPopupIcon = (!freeSolo || forcePopupIcon === true) && forcePopupIcon !== false;
|
|
436
437
|
|
|
437
438
|
const ownerState = _extends({}, props, {
|
|
@@ -550,7 +551,8 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
|
|
|
550
551
|
},
|
|
551
552
|
inputProps: _extends({
|
|
552
553
|
className: clsx(classes.input),
|
|
553
|
-
disabled
|
|
554
|
+
disabled,
|
|
555
|
+
readOnly
|
|
554
556
|
}, getInputProps())
|
|
555
557
|
})
|
|
556
558
|
})), popupOpen && anchorEl ? /*#__PURE__*/_jsx(AutocompletePopper, {
|
|
@@ -991,6 +993,12 @@ process.env.NODE_ENV !== "production" ? Autocomplete.propTypes
|
|
|
991
993
|
*/
|
|
992
994
|
popupIcon: PropTypes.node,
|
|
993
995
|
|
|
996
|
+
/**
|
|
997
|
+
* If `true`, the component becomes readonly. It is also supported for multiple tags where the tag cannot be deleted.
|
|
998
|
+
* @default false
|
|
999
|
+
*/
|
|
1000
|
+
readOnly: PropTypes.bool,
|
|
1001
|
+
|
|
994
1002
|
/**
|
|
995
1003
|
* Render the group.
|
|
996
1004
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
2
2
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
|
-
const _excluded = ["children", "className", "max", "spacing", "total", "variant"];
|
|
3
|
+
const _excluded = ["children", "className", "componentsProps", "max", "spacing", "total", "variant"];
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import { isFragment } from 'react-is';
|
|
@@ -71,6 +71,7 @@ const AvatarGroup = /*#__PURE__*/React.forwardRef(function AvatarGroup(inProps,
|
|
|
71
71
|
const {
|
|
72
72
|
children: childrenProp,
|
|
73
73
|
className,
|
|
74
|
+
componentsProps = {},
|
|
74
75
|
max = 5,
|
|
75
76
|
spacing = 'medium',
|
|
76
77
|
total,
|
|
@@ -111,15 +112,16 @@ const AvatarGroup = /*#__PURE__*/React.forwardRef(function AvatarGroup(inProps,
|
|
|
111
112
|
className: clsx(classes.root, className),
|
|
112
113
|
ref: ref
|
|
113
114
|
}, other, {
|
|
114
|
-
children: [extraAvatars ? /*#__PURE__*/_jsxs(AvatarGroupAvatar, {
|
|
115
|
+
children: [extraAvatars ? /*#__PURE__*/_jsxs(AvatarGroupAvatar, _extends({
|
|
115
116
|
ownerState: ownerState,
|
|
116
|
-
|
|
117
|
-
|
|
117
|
+
variant: variant
|
|
118
|
+
}, componentsProps.additionalAvatar, {
|
|
119
|
+
className: clsx(classes.avatar, componentsProps.additionalAvatar?.className),
|
|
120
|
+
style: _extends({
|
|
118
121
|
marginLeft
|
|
119
|
-
},
|
|
120
|
-
variant: variant,
|
|
122
|
+
}, componentsProps.additionalAvatar?.style),
|
|
121
123
|
children: ["+", extraAvatars]
|
|
122
|
-
}) : null, children.slice(0, maxAvatars).reverse().map(child => {
|
|
124
|
+
})) : null, children.slice(0, maxAvatars).reverse().map(child => {
|
|
123
125
|
return /*#__PURE__*/React.cloneElement(child, {
|
|
124
126
|
className: clsx(child.props.className, classes.avatar),
|
|
125
127
|
style: _extends({
|
|
@@ -153,6 +155,14 @@ process.env.NODE_ENV !== "production" ? AvatarGroup.propTypes
|
|
|
153
155
|
*/
|
|
154
156
|
className: PropTypes.string,
|
|
155
157
|
|
|
158
|
+
/**
|
|
159
|
+
* The props used for each slot inside the AvatarGroup.
|
|
160
|
+
* @default {}
|
|
161
|
+
*/
|
|
162
|
+
componentsProps: PropTypes.shape({
|
|
163
|
+
additionalAvatar: PropTypes.object
|
|
164
|
+
}),
|
|
165
|
+
|
|
156
166
|
/**
|
|
157
167
|
* Max avatars to show before +x.
|
|
158
168
|
* @default 5
|
package/modern/Badge/Badge.js
CHANGED
|
@@ -169,7 +169,7 @@ const Badge = /*#__PURE__*/React.forwardRef(function Badge(inProps, ref) {
|
|
|
169
169
|
componentsProps = {},
|
|
170
170
|
overlap: overlapProp = 'rectangular',
|
|
171
171
|
color: colorProp = 'default',
|
|
172
|
-
invisible: invisibleProp,
|
|
172
|
+
invisible: invisibleProp = false,
|
|
173
173
|
badgeContent: badgeContentProp,
|
|
174
174
|
showZero = false,
|
|
175
175
|
variant: variantProp = 'standard'
|
|
@@ -183,7 +183,7 @@ const Badge = /*#__PURE__*/React.forwardRef(function Badge(inProps, ref) {
|
|
|
183
183
|
});
|
|
184
184
|
let invisible = invisibleProp;
|
|
185
185
|
|
|
186
|
-
if (invisibleProp
|
|
186
|
+
if (invisibleProp === false && (badgeContentProp === 0 && !showZero || badgeContentProp == null && variantProp !== 'dot')) {
|
|
187
187
|
invisible = true;
|
|
188
188
|
}
|
|
189
189
|
|
|
@@ -301,6 +301,7 @@ process.env.NODE_ENV !== "production" ? Badge.propTypes
|
|
|
301
301
|
|
|
302
302
|
/**
|
|
303
303
|
* If `true`, the badge is invisible.
|
|
304
|
+
* @default false
|
|
304
305
|
*/
|
|
305
306
|
invisible: PropTypes.bool,
|
|
306
307
|
|
|
@@ -6,9 +6,7 @@ import styled from '../styles/styled';
|
|
|
6
6
|
import MoreHorizIcon from '../internal/svg-icons/MoreHoriz';
|
|
7
7
|
import ButtonBase from '../ButtonBase';
|
|
8
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
-
const BreadcrumbCollapsedButton = styled(ButtonBase
|
|
10
|
-
skipSx: true
|
|
11
|
-
})(({
|
|
9
|
+
const BreadcrumbCollapsedButton = styled(ButtonBase)(({
|
|
12
10
|
theme
|
|
13
11
|
}) => _extends({
|
|
14
12
|
display: 'flex',
|