@mui/material 5.4.3 → 5.5.1

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.
Files changed (242) hide show
  1. package/Accordion/accordionClasses.d.ts +18 -18
  2. package/AccordionActions/accordionActionsClasses.d.ts +10 -10
  3. package/AccordionDetails/accordionDetailsClasses.d.ts +8 -8
  4. package/AccordionSummary/accordionSummaryClasses.d.ts +22 -22
  5. package/Alert/alertClasses.d.ts +44 -44
  6. package/AlertTitle/alertTitleClasses.d.ts +8 -8
  7. package/AppBar/appBarClasses.d.ts +28 -28
  8. package/Autocomplete/autocompleteClasses.d.ts +54 -54
  9. package/Avatar/avatarClasses.d.ts +20 -20
  10. package/AvatarGroup/AvatarGroup.js +4 -2
  11. package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
  12. package/BottomNavigation/BottomNavigation.js +0 -0
  13. package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
  14. package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
  15. package/Box/Box.js +1 -1
  16. package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
  17. package/Button/buttonClasses.d.ts +76 -76
  18. package/ButtonBase/buttonBaseClasses.d.ts +12 -12
  19. package/ButtonBase/touchRippleClasses.d.ts +20 -20
  20. package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
  21. package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
  22. package/CHANGELOG.md +214 -2
  23. package/Card/cardClasses.d.ts +8 -8
  24. package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
  25. package/CardActions/cardActionsClasses.d.ts +10 -10
  26. package/CardContent/cardContentClasses.d.ts +8 -8
  27. package/CardHeader/cardHeaderClasses.d.ts +18 -18
  28. package/CardMedia/cardMediaClasses.d.ts +12 -12
  29. package/Checkbox/checkboxClasses.d.ts +18 -18
  30. package/Chip/Chip.js +1 -0
  31. package/Chip/chipClasses.d.ts +80 -80
  32. package/CircularProgress/circularProgressClasses.d.ts +26 -26
  33. package/ClickAwayListener/index.d.ts +2 -2
  34. package/Collapse/collapseClasses.d.ts +18 -18
  35. package/Container/containerClasses.d.ts +22 -22
  36. package/Dialog/DialogContext.d.ts +6 -6
  37. package/Dialog/dialogClasses.d.ts +36 -36
  38. package/DialogActions/dialogActionsClasses.d.ts +10 -10
  39. package/DialogContent/dialogContentClasses.d.ts +10 -10
  40. package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
  41. package/DialogTitle/dialogTitleClasses.d.ts +8 -8
  42. package/Divider/dividerClasses.d.ts +34 -34
  43. package/Drawer/drawerClasses.d.ts +30 -30
  44. package/Fab/Fab.js +1 -0
  45. package/Fab/fabClasses.d.ts +26 -26
  46. package/FilledInput/FilledInput.js +1 -1
  47. package/FilledInput/filledInputClasses.d.ts +40 -40
  48. package/FilledInput/filledInputClasses.js +5 -1
  49. package/FormControl/formControlClasses.d.ts +14 -14
  50. package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
  51. package/FormGroup/formGroupClasses.d.ts +12 -12
  52. package/FormHelperText/formHelperTextClasses.d.ts +22 -22
  53. package/FormLabel/formLabelClasses.d.ts +22 -22
  54. package/Grid/Grid.js +10 -14
  55. package/Grid/gridClasses.d.ts +48 -48
  56. package/Icon/iconClasses.d.ts +24 -24
  57. package/IconButton/iconButtonClasses.d.ts +26 -26
  58. package/ImageList/imageListClasses.d.ts +16 -16
  59. package/ImageListItem/imageListItemClasses.d.ts +18 -18
  60. package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
  61. package/Input/Input.js +1 -1
  62. package/Input/inputClasses.d.ts +34 -34
  63. package/Input/inputClasses.js +5 -1
  64. package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
  65. package/InputBase/InputBase.d.ts +1 -1
  66. package/InputBase/InputBase.js +1 -1
  67. package/InputBase/inputBaseClasses.d.ts +44 -44
  68. package/InputLabel/inputLabelClasses.d.ts +32 -32
  69. package/LinearProgress/linearProgressClasses.d.ts +42 -42
  70. package/Link/linkClasses.d.ts +18 -18
  71. package/List/listClasses.d.ts +14 -14
  72. package/ListItem/listItemClasses.d.ts +30 -30
  73. package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
  74. package/ListItemButton/listItemButtonClasses.d.ts +22 -22
  75. package/ListItemIcon/listItemIconClasses.d.ts +10 -10
  76. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
  77. package/ListItemText/listItemTextClasses.d.ts +18 -18
  78. package/ListSubheader/listSubheaderClasses.d.ts +18 -18
  79. package/Menu/menuClasses.d.ts +12 -12
  80. package/MenuItem/menuItemClasses.d.ts +20 -20
  81. package/MobileStepper/mobileStepperClasses.d.ts +22 -22
  82. package/NativeSelect/nativeSelectClasses.d.ts +32 -32
  83. package/OutlinedInput/NotchedOutline.js +6 -2
  84. package/OutlinedInput/OutlinedInput.js +1 -1
  85. package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
  86. package/OutlinedInput/outlinedInputClasses.js +5 -1
  87. package/Pagination/paginationClasses.d.ts +14 -14
  88. package/PaginationItem/paginationItemClasses.d.ts +42 -42
  89. package/Paper/paperClasses.d.ts +39 -39
  90. package/Popover/popoverClasses.d.ts +10 -10
  91. package/Popper/Popper.d.ts +17 -17
  92. package/Popper/Popper.js +7 -2
  93. package/README.md +2 -1
  94. package/Radio/radioClasses.d.ts +16 -16
  95. package/RadioGroup/RadioGroupContext.d.ts +11 -11
  96. package/RadioGroup/useRadioGroup.d.ts +4 -4
  97. package/Rating/ratingClasses.d.ts +40 -40
  98. package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
  99. package/Select/Select.d.ts +2 -0
  100. package/Select/selectClasses.d.ts +30 -30
  101. package/Skeleton/skeletonClasses.d.ts +24 -24
  102. package/Snackbar/Snackbar.js +1 -1
  103. package/Snackbar/snackbarClasses.d.ts +20 -20
  104. package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
  105. package/SpeedDial/speedDialClasses.d.ts +22 -22
  106. package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
  107. package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
  108. package/Step/StepContext.d.ts +20 -20
  109. package/Step/stepClasses.d.ts +16 -16
  110. package/StepButton/stepButtonClasses.d.ts +14 -14
  111. package/StepConnector/stepConnectorClasses.d.ts +26 -26
  112. package/StepContent/stepContentClasses.d.ts +12 -12
  113. package/StepIcon/stepIconClasses.d.ts +16 -16
  114. package/StepLabel/stepLabelClasses.d.ts +28 -28
  115. package/Stepper/stepperClasses.d.ts +14 -14
  116. package/SvgIcon/SvgIcon.js +1 -0
  117. package/SvgIcon/svgIconClasses.d.ts +24 -24
  118. package/Switch/switchClasses.d.ts +32 -32
  119. package/Tab/tabClasses.d.ts +26 -26
  120. package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
  121. package/Table/tableClasses.d.ts +10 -10
  122. package/TableBody/tableBodyClasses.d.ts +8 -8
  123. package/TableCell/tableCellClasses.d.ts +32 -32
  124. package/TableContainer/tableContainerClasses.d.ts +8 -8
  125. package/TableFooter/tableFooterClasses.d.ts +8 -8
  126. package/TableHead/tableHeadClasses.d.ts +8 -8
  127. package/TablePagination/tablePaginationClasses.d.ts +28 -28
  128. package/TableRow/tableRowClasses.d.ts +16 -16
  129. package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
  130. package/Tabs/tabsClasses.d.ts +32 -32
  131. package/TextField/textFieldClasses.d.ts +8 -8
  132. package/ToggleButton/toggleButtonClasses.d.ts +24 -24
  133. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
  134. package/Toolbar/toolbarClasses.d.ts +14 -14
  135. package/Tooltip/tooltipClasses.d.ts +30 -30
  136. package/Typography/typographyClasses.d.ts +50 -50
  137. package/className/index.d.ts +8 -0
  138. package/className/index.js +9 -0
  139. package/className/package.json +6 -0
  140. package/darkScrollbar/index.d.ts +28 -28
  141. package/index.js +1 -1
  142. package/internal/switchBaseClasses.d.ts +12 -12
  143. package/legacy/AvatarGroup/AvatarGroup.js +4 -2
  144. package/legacy/BottomNavigation/BottomNavigation.js +0 -0
  145. package/legacy/Box/Box.js +1 -1
  146. package/legacy/Chip/Chip.js +1 -0
  147. package/legacy/Fab/Fab.js +1 -0
  148. package/legacy/FilledInput/FilledInput.js +1 -1
  149. package/legacy/FilledInput/filledInputClasses.js +5 -1
  150. package/legacy/Grid/Grid.js +11 -17
  151. package/legacy/Input/Input.js +1 -1
  152. package/legacy/Input/inputClasses.js +5 -1
  153. package/legacy/InputBase/InputBase.js +1 -1
  154. package/legacy/OutlinedInput/NotchedOutline.js +6 -2
  155. package/legacy/OutlinedInput/OutlinedInput.js +1 -1
  156. package/legacy/OutlinedInput/outlinedInputClasses.js +5 -1
  157. package/legacy/Popper/Popper.js +7 -2
  158. package/legacy/Snackbar/Snackbar.js +1 -1
  159. package/legacy/SvgIcon/SvgIcon.js +1 -0
  160. package/legacy/className/index.js +9 -0
  161. package/legacy/index.js +1 -1
  162. package/legacy/locale/index.js +347 -80
  163. package/legacy/styles/makeStyles.js +1 -1
  164. package/legacy/styles/withStyles.js +1 -1
  165. package/legacy/styles/withTheme.js +1 -1
  166. package/legacy/styles/zIndex.js +1 -0
  167. package/legacy/utils/index.js +10 -2
  168. package/locale/index.d.ts +71 -68
  169. package/locale/index.js +264 -0
  170. package/modern/AvatarGroup/AvatarGroup.js +4 -2
  171. package/modern/BottomNavigation/BottomNavigation.js +0 -0
  172. package/modern/Box/Box.js +1 -1
  173. package/modern/Chip/Chip.js +1 -0
  174. package/modern/Fab/Fab.js +1 -0
  175. package/modern/FilledInput/FilledInput.js +1 -1
  176. package/modern/FilledInput/filledInputClasses.js +5 -1
  177. package/modern/Grid/Grid.js +10 -14
  178. package/modern/Input/Input.js +1 -1
  179. package/modern/Input/inputClasses.js +5 -1
  180. package/modern/InputBase/InputBase.js +1 -1
  181. package/modern/OutlinedInput/NotchedOutline.js +6 -2
  182. package/modern/OutlinedInput/OutlinedInput.js +1 -1
  183. package/modern/OutlinedInput/outlinedInputClasses.js +5 -1
  184. package/modern/Popper/Popper.js +7 -2
  185. package/modern/Snackbar/Snackbar.js +1 -1
  186. package/modern/SvgIcon/SvgIcon.js +1 -0
  187. package/modern/className/index.js +9 -0
  188. package/modern/index.js +1 -1
  189. package/modern/locale/index.js +264 -0
  190. package/modern/styles/makeStyles.js +1 -1
  191. package/modern/styles/withStyles.js +1 -1
  192. package/modern/styles/withTheme.js +1 -1
  193. package/modern/styles/zIndex.js +1 -0
  194. package/modern/utils/index.js +10 -2
  195. package/node/AvatarGroup/AvatarGroup.js +4 -2
  196. package/node/BottomNavigation/BottomNavigation.js +0 -0
  197. package/node/Box/Box.js +2 -2
  198. package/node/Chip/Chip.js +1 -0
  199. package/node/Fab/Fab.js +1 -0
  200. package/node/FilledInput/FilledInput.js +1 -1
  201. package/node/FilledInput/filledInputClasses.js +7 -1
  202. package/node/Grid/Grid.js +10 -14
  203. package/node/Input/Input.js +1 -1
  204. package/node/Input/inputClasses.js +7 -1
  205. package/node/InputBase/InputBase.js +1 -1
  206. package/node/OutlinedInput/NotchedOutline.js +6 -2
  207. package/node/OutlinedInput/OutlinedInput.js +1 -1
  208. package/node/OutlinedInput/outlinedInputClasses.js +7 -1
  209. package/node/Popper/Popper.js +8 -2
  210. package/node/Snackbar/Snackbar.js +1 -1
  211. package/node/SvgIcon/SvgIcon.js +1 -0
  212. package/node/className/index.js +13 -0
  213. package/node/index.js +1 -1
  214. package/node/locale/index.js +271 -4
  215. package/node/styles/makeStyles.js +1 -1
  216. package/node/styles/withStyles.js +1 -1
  217. package/node/styles/withTheme.js +1 -1
  218. package/node/styles/zIndex.js +1 -0
  219. package/node/utils/index.js +13 -7
  220. package/package.json +7 -7
  221. package/styles/components.d.ts +3 -339
  222. package/styles/makeStyles.js +1 -1
  223. package/styles/props.d.ts +2 -0
  224. package/styles/withStyles.js +1 -1
  225. package/styles/withTheme.js +1 -1
  226. package/styles/zIndex.d.ts +1 -0
  227. package/styles/zIndex.js +1 -0
  228. package/transitions/index.d.ts +1 -1
  229. package/transitions/transition.d.ts +13 -13
  230. package/transitions/utils.d.ts +23 -23
  231. package/umd/material-ui.development.js +5032 -4835
  232. package/umd/material-ui.production.min.js +21 -21
  233. package/useMediaQuery/useMediaQuery.d.ts +31 -31
  234. package/usePagination/usePagination.d.ts +1 -1
  235. package/useTouchRipple/index.d.ts +1 -1
  236. package/useTouchRipple/useTouchRipple.d.ts +28 -28
  237. package/utils/getScrollbarSize.d.ts +2 -2
  238. package/utils/index.d.ts +1 -1
  239. package/utils/index.js +10 -2
  240. package/utils/ownerDocument.d.ts +2 -2
  241. package/utils/ownerWindow.d.ts +2 -2
  242. package/utils/setRef.d.ts +2 -2
package/locale/index.d.ts CHANGED
@@ -1,68 +1,71 @@
1
- import { ComponentsPropsList } from '../styles/props';
2
- export interface Localization {
3
- components?: {
4
- MuiAlert?: {
5
- defaultProps: Pick<ComponentsPropsList['MuiAlert'], 'closeText'>;
6
- };
7
- MuiBreadcrumbs?: {
8
- defaultProps: Pick<ComponentsPropsList['MuiBreadcrumbs'], 'expandText'>;
9
- };
10
- MuiTablePagination?: {
11
- defaultProps: Pick<ComponentsPropsList['MuiTablePagination'], 'labelRowsPerPage' | 'labelDisplayedRows' | 'getItemAriaLabel'>;
12
- };
13
- MuiRating?: {
14
- defaultProps: Pick<ComponentsPropsList['MuiRating'], 'emptyLabelText' | 'getLabelText'>;
15
- };
16
- MuiAutocomplete?: {
17
- defaultProps: Pick<ComponentsPropsList['MuiAutocomplete'], 'clearText' | 'closeText' | 'loadingText' | 'noOptionsText' | 'openText'>;
18
- };
19
- MuiPagination?: {
20
- defaultProps: Pick<ComponentsPropsList['MuiPagination'], 'aria-label' | 'getItemAriaLabel'>;
21
- };
22
- };
23
- }
24
- export declare const amET: Localization;
25
- export declare const arEG: Localization;
26
- export declare const arSD: Localization;
27
- export declare const azAZ: Localization;
28
- export declare const bnBD: Localization;
29
- export declare const bgBG: Localization;
30
- export declare const caES: Localization;
31
- export declare const csCZ: Localization;
32
- export declare const daDK: Localization;
33
- export declare const deDE: Localization;
34
- export declare const elGR: Localization;
35
- export declare const enUS: Localization;
36
- export declare const esES: Localization;
37
- export declare const etEE: Localization;
38
- export declare const faIR: Localization;
39
- export declare const fiFI: Localization;
40
- export declare const frFR: Localization;
41
- export declare const heIL: Localization;
42
- export declare const hiIN: Localization;
43
- export declare const huHU: Localization;
44
- export declare const hyAM: Localization;
45
- export declare const idID: Localization;
46
- export declare const isIS: Localization;
47
- export declare const itIT: Localization;
48
- export declare const jaJP: Localization;
49
- export declare const khKH: Localization;
50
- export declare const koKR: Localization;
51
- export declare const kzKZ: Localization;
52
- export declare const nbNO: Localization;
53
- export declare const nlNL: Localization;
54
- export declare const plPL: Localization;
55
- export declare const ptBR: Localization;
56
- export declare const ptPT: Localization;
57
- export declare const roRO: Localization;
58
- export declare const ruRU: Localization;
59
- export declare const siLK: Localization;
60
- export declare const skSK: Localization;
61
- export declare const svSE: Localization;
62
- export declare const thTH: Localization;
63
- export declare const trTR: Localization;
64
- export declare const ukUA: Localization;
65
- export declare const viVN: Localization;
66
- export declare const zhCN: Localization;
67
- export declare const zhHK: Localization;
68
- export declare const zhTW: Localization;
1
+ import { ComponentsPropsList } from '../styles/props';
2
+ export interface Localization {
3
+ components?: {
4
+ MuiAlert?: {
5
+ defaultProps: Pick<ComponentsPropsList['MuiAlert'], 'closeText'>;
6
+ };
7
+ MuiBreadcrumbs?: {
8
+ defaultProps: Pick<ComponentsPropsList['MuiBreadcrumbs'], 'expandText'>;
9
+ };
10
+ MuiTablePagination?: {
11
+ defaultProps: Pick<ComponentsPropsList['MuiTablePagination'], 'labelRowsPerPage' | 'labelDisplayedRows' | 'getItemAriaLabel'>;
12
+ };
13
+ MuiRating?: {
14
+ defaultProps: Pick<ComponentsPropsList['MuiRating'], 'emptyLabelText' | 'getLabelText'>;
15
+ };
16
+ MuiAutocomplete?: {
17
+ defaultProps: Pick<ComponentsPropsList['MuiAutocomplete'], 'clearText' | 'closeText' | 'loadingText' | 'noOptionsText' | 'openText'>;
18
+ };
19
+ MuiPagination?: {
20
+ defaultProps: Pick<ComponentsPropsList['MuiPagination'], 'aria-label' | 'getItemAriaLabel'>;
21
+ };
22
+ };
23
+ }
24
+ export declare const amET: Localization;
25
+ export declare const arEG: Localization;
26
+ export declare const arSD: Localization;
27
+ export declare const azAZ: Localization;
28
+ export declare const bnBD: Localization;
29
+ export declare const bgBG: Localization;
30
+ export declare const caES: Localization;
31
+ export declare const csCZ: Localization;
32
+ export declare const daDK: Localization;
33
+ export declare const deDE: Localization;
34
+ export declare const elGR: Localization;
35
+ export declare const enUS: Localization;
36
+ export declare const esES: Localization;
37
+ export declare const etEE: Localization;
38
+ export declare const faIR: Localization;
39
+ export declare const fiFI: Localization;
40
+ export declare const frFR: Localization;
41
+ export declare const heIL: Localization;
42
+ export declare const hiIN: Localization;
43
+ export declare const hrHR: Localization;
44
+ export declare const huHU: Localization;
45
+ export declare const hyAM: Localization;
46
+ export declare const idID: Localization;
47
+ export declare const isIS: Localization;
48
+ export declare const itIT: Localization;
49
+ export declare const jaJP: Localization;
50
+ export declare const khKH: Localization;
51
+ export declare const koKR: Localization;
52
+ export declare const kzKZ: Localization;
53
+ export declare const mkMK: Localization;
54
+ export declare const nbNO: Localization;
55
+ export declare const nlNL: Localization;
56
+ export declare const plPL: Localization;
57
+ export declare const ptBR: Localization;
58
+ export declare const ptPT: Localization;
59
+ export declare const roRO: Localization;
60
+ export declare const srRS: Localization;
61
+ export declare const ruRU: Localization;
62
+ export declare const siLK: Localization;
63
+ export declare const skSK: Localization;
64
+ export declare const svSE: Localization;
65
+ export declare const thTH: Localization;
66
+ export declare const trTR: Localization;
67
+ export declare const ukUA: Localization;
68
+ export declare const viVN: Localization;
69
+ export declare const zhCN: Localization;
70
+ export declare const zhHK: Localization;
71
+ export declare const zhTW: Localization;
package/locale/index.js CHANGED
@@ -1500,6 +1500,96 @@ export const hiIN = {
1500
1500
  }
1501
1501
  }
1502
1502
  }
1503
+ }; // Croatian - Hrvatski
1504
+
1505
+ export const hrHR = {
1506
+ components: {
1507
+ MuiBreadcrumbs: {
1508
+ defaultProps: {
1509
+ expandText: 'Pokaži putanju'
1510
+ }
1511
+ },
1512
+ MuiTablePagination: {
1513
+ defaultProps: {
1514
+ getItemAriaLabel: type => {
1515
+ if (type === 'first') {
1516
+ return 'Idi na prvu stranicu';
1517
+ }
1518
+
1519
+ if (type === 'last') {
1520
+ return 'Idi na posljednju stranicu';
1521
+ }
1522
+
1523
+ if (type === 'next') {
1524
+ return 'Idi na sljedeću stranicu';
1525
+ } // if (type === 'previous') {
1526
+
1527
+
1528
+ return 'Idi na prethodnu stranicu';
1529
+ },
1530
+ labelRowsPerPage: 'Redova po stranici:',
1531
+ labelDisplayedRows: ({
1532
+ from,
1533
+ to,
1534
+ count
1535
+ }) => `${from}–${to} od ${count !== -1 ? count : `više nego ${to}`}`
1536
+ }
1537
+ },
1538
+ MuiRating: {
1539
+ defaultProps: {
1540
+ getLabelText: value => {
1541
+ const lastDigit = value % 10;
1542
+ const lastTwoDigits = value % 100;
1543
+
1544
+ if ([2, 3, 4].includes(lastDigit) && ![12, 13, 14].includes(lastTwoDigits)) {
1545
+ return 'Zvijezde';
1546
+ }
1547
+
1548
+ return 'Zvijezda';
1549
+ },
1550
+ emptyLabelText: 'Prazno'
1551
+ }
1552
+ },
1553
+ MuiAutocomplete: {
1554
+ defaultProps: {
1555
+ clearText: 'Briši',
1556
+ closeText: 'Zatvori',
1557
+ loadingText: 'Učitavanje…',
1558
+ noOptionsText: 'Nema opcija',
1559
+ openText: 'Otvori'
1560
+ }
1561
+ },
1562
+ MuiAlert: {
1563
+ defaultProps: {
1564
+ closeText: 'Zatvori'
1565
+ }
1566
+ },
1567
+ MuiPagination: {
1568
+ defaultProps: {
1569
+ 'aria-label': 'Navigacija po stranicama',
1570
+ getItemAriaLabel: (type, page, selected) => {
1571
+ if (type === 'page') {
1572
+ return `${selected ? '' : 'Idi na '}stranicu ${page}`;
1573
+ }
1574
+
1575
+ if (type === 'first') {
1576
+ return 'Idi na prvu stranicu';
1577
+ }
1578
+
1579
+ if (type === 'last') {
1580
+ return 'Idi na zadnju stranicu';
1581
+ }
1582
+
1583
+ if (type === 'next') {
1584
+ return 'Idi na sljedeću stranicu';
1585
+ } // if (type === 'previous') {
1586
+
1587
+
1588
+ return 'Idi na prethodnu stranicu';
1589
+ }
1590
+ }
1591
+ }
1592
+ }
1503
1593
  };
1504
1594
  export const huHU = {
1505
1595
  components: {
@@ -2191,6 +2281,90 @@ export const kzKZ = {
2191
2281
  }
2192
2282
  }
2193
2283
  }
2284
+ }; // Macedonian - Македонски
2285
+
2286
+ export const mkMK = {
2287
+ components: {
2288
+ MuiBreadcrumbs: {
2289
+ defaultProps: {
2290
+ expandText: 'Прикажи патека'
2291
+ }
2292
+ },
2293
+ MuiTablePagination: {
2294
+ defaultProps: {
2295
+ getItemAriaLabel: type => {
2296
+ if (type === 'first') {
2297
+ return 'Оди на прва страница';
2298
+ }
2299
+
2300
+ if (type === 'last') {
2301
+ return 'Оди на последна страница';
2302
+ }
2303
+
2304
+ if (type === 'next') {
2305
+ return 'Оди на следна страница';
2306
+ } // if (type === 'previous') {
2307
+
2308
+
2309
+ return 'Оди на предходна страница';
2310
+ },
2311
+ labelRowsPerPage: 'Редови по страница:',
2312
+ labelDisplayedRows: ({
2313
+ from,
2314
+ to,
2315
+ count
2316
+ }) => `${from}–${to} од ${count !== -1 ? count : `повеќе од ${to}`}`
2317
+ }
2318
+ },
2319
+ MuiRating: {
2320
+ defaultProps: {
2321
+ getLabelText: value => {
2322
+ const lastDigit = value % 10;
2323
+ return `${value} Ѕвезд${lastDigit === 1 ? 'а' : 'и'}`;
2324
+ },
2325
+ emptyLabelText: 'Празно'
2326
+ }
2327
+ },
2328
+ MuiAutocomplete: {
2329
+ defaultProps: {
2330
+ clearText: 'Избриши',
2331
+ closeText: 'Затвори',
2332
+ loadingText: 'Се презема',
2333
+ noOptionsText: 'Нема опција',
2334
+ openText: 'Отвори'
2335
+ }
2336
+ },
2337
+ MuiAlert: {
2338
+ defaultProps: {
2339
+ closeText: 'Затвори'
2340
+ }
2341
+ },
2342
+ MuiPagination: {
2343
+ defaultProps: {
2344
+ 'aria-label': 'Навигација низ страници',
2345
+ getItemAriaLabel: (type, page, selected) => {
2346
+ if (type === 'page') {
2347
+ return `${selected ? '' : 'Оди на '}страница ${page}`;
2348
+ }
2349
+
2350
+ if (type === 'first') {
2351
+ return 'Оди на прва страница';
2352
+ }
2353
+
2354
+ if (type === 'last') {
2355
+ return 'Оди на последна страница';
2356
+ }
2357
+
2358
+ if (type === 'next') {
2359
+ return 'Оди на следна страница';
2360
+ } // if (type === 'previous') {
2361
+
2362
+
2363
+ return 'Оди на предходна страница';
2364
+ }
2365
+ }
2366
+ }
2367
+ }
2194
2368
  };
2195
2369
  export const nbNO = {
2196
2370
  components: {
@@ -2679,6 +2853,96 @@ export const roRO = {
2679
2853
  }
2680
2854
  }
2681
2855
  }
2856
+ }; // Serbian - Srpski
2857
+
2858
+ export const srRS = {
2859
+ components: {
2860
+ MuiBreadcrumbs: {
2861
+ defaultProps: {
2862
+ expandText: 'Pokaži putanju'
2863
+ }
2864
+ },
2865
+ MuiTablePagination: {
2866
+ defaultProps: {
2867
+ getItemAriaLabel: type => {
2868
+ if (type === 'first') {
2869
+ return 'Idi na prvu stranicu';
2870
+ }
2871
+
2872
+ if (type === 'last') {
2873
+ return 'Idi na poslednju stranicu';
2874
+ }
2875
+
2876
+ if (type === 'next') {
2877
+ return 'Idi na sledeću stranicu';
2878
+ } // if (type === 'previous') {
2879
+
2880
+
2881
+ return 'Idi na prethodnu stranicu';
2882
+ },
2883
+ labelRowsPerPage: 'Redova po stranici:',
2884
+ labelDisplayedRows: ({
2885
+ from,
2886
+ to,
2887
+ count
2888
+ }) => `${from}–${to} od ${count !== -1 ? count : `više nego ${to}`}`
2889
+ }
2890
+ },
2891
+ MuiRating: {
2892
+ defaultProps: {
2893
+ getLabelText: value => {
2894
+ const lastDigit = value % 10;
2895
+ const lastTwoDigits = value % 100;
2896
+
2897
+ if ([2, 3, 4].includes(lastDigit) && ![12, 13, 14].includes(lastTwoDigits)) {
2898
+ return 'Zvezde';
2899
+ }
2900
+
2901
+ return 'Zvezda';
2902
+ },
2903
+ emptyLabelText: 'Prazno'
2904
+ }
2905
+ },
2906
+ MuiAutocomplete: {
2907
+ defaultProps: {
2908
+ clearText: 'Briši',
2909
+ closeText: 'Zatvori',
2910
+ loadingText: 'Učitavanje…',
2911
+ noOptionsText: 'Nema opcija',
2912
+ openText: 'Otvori'
2913
+ }
2914
+ },
2915
+ MuiAlert: {
2916
+ defaultProps: {
2917
+ closeText: 'Zatvori'
2918
+ }
2919
+ },
2920
+ MuiPagination: {
2921
+ defaultProps: {
2922
+ 'aria-label': 'Navigacija po stranicama',
2923
+ getItemAriaLabel: (type, page, selected) => {
2924
+ if (type === 'page') {
2925
+ return `${selected ? '' : 'Idi na '}stranicu ${page}`;
2926
+ }
2927
+
2928
+ if (type === 'first') {
2929
+ return 'Idi na prvu stranicu';
2930
+ }
2931
+
2932
+ if (type === 'last') {
2933
+ return 'Idi na zadnju stranicu';
2934
+ }
2935
+
2936
+ if (type === 'next') {
2937
+ return 'Idi na sledeću stranicu';
2938
+ } // if (type === 'previous') {
2939
+
2940
+
2941
+ return 'Idi na prethodnu stranicu';
2942
+ }
2943
+ }
2944
+ }
2945
+ }
2682
2946
  };
2683
2947
  export const ruRU = {
2684
2948
  components: {
@@ -121,11 +121,13 @@ const AvatarGroup = /*#__PURE__*/React.forwardRef(function AvatarGroup(inProps,
121
121
  marginLeft
122
122
  }, componentsProps.additionalAvatar?.style),
123
123
  children: ["+", extraAvatars]
124
- })) : null, children.slice(0, maxAvatars).reverse().map(child => {
124
+ })) : null, children.slice(0, maxAvatars).reverse().map((child, index) => {
125
125
  return /*#__PURE__*/React.cloneElement(child, {
126
126
  className: clsx(child.props.className, classes.avatar),
127
127
  style: _extends({
128
- marginLeft
128
+ // Consistent with "&:last-child" styling for the default spacing,
129
+ // we do not apply custom marginLeft spacing on the last child
130
+ marginLeft: index === maxAvatars - 1 ? undefined : marginLeft
129
131
  }, child.props.style),
130
132
  variant: child.props.variant || variant
131
133
  });
File without changes
package/modern/Box/Box.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { createBox } from '@mui/system';
2
- import { unstable_ClassNameGenerator as ClassNameGenerator } from '../utils';
2
+ import { unstable_ClassNameGenerator as ClassNameGenerator } from '../className';
3
3
  import { createTheme } from '../styles';
4
4
  const defaultTheme = createTheme();
5
5
  /**
@@ -79,6 +79,7 @@ const ChipRoot = styled('div', {
79
79
  }) => {
80
80
  const deleteIconColor = alpha(theme.palette.text.primary, 0.26);
81
81
  return _extends({
82
+ maxWidth: '100%',
82
83
  fontFamily: theme.typography.fontFamily,
83
84
  fontSize: theme.typography.pxToRem(13),
84
85
  display: 'inline-flex',
package/modern/Fab/Fab.js CHANGED
@@ -47,6 +47,7 @@ const FabRoot = styled(ButtonBase, {
47
47
  minWidth: 0,
48
48
  width: 56,
49
49
  height: 56,
50
+ zIndex: theme.zIndex.fab,
50
51
  boxShadow: theme.shadows[6],
51
52
  '&:active': {
52
53
  boxShadow: theme.shadows[12]
@@ -344,7 +344,7 @@ process.env.NODE_ENV !== "production" ? FilledInput.propTypes
344
344
  minRows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
345
345
 
346
346
  /**
347
- * If `true`, a `textarea` element is rendered.
347
+ * If `true`, a [TextareaAutosize](/components/textarea-autosize/) element is rendered.
348
348
  * @default false
349
349
  */
350
350
  multiline: PropTypes.bool,
@@ -1,6 +1,10 @@
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
1
2
  import { generateUtilityClasses, generateUtilityClass } from '@mui/base';
3
+ import { inputBaseClasses } from '../InputBase';
2
4
  export function getFilledInputUtilityClass(slot) {
3
5
  return generateUtilityClass('MuiFilledInput', slot);
4
6
  }
5
- const filledInputClasses = generateUtilityClasses('MuiFilledInput', ['root', 'colorSecondary', 'underline', 'focused', 'disabled', 'adornedStart', 'adornedEnd', 'error', 'sizeSmall', 'multiline', 'hiddenLabel', 'input', 'inputSizeSmall', 'inputHiddenLabel', 'inputMultiline', 'inputAdornedStart', 'inputAdornedEnd']);
7
+
8
+ const filledInputClasses = _extends({}, inputBaseClasses, generateUtilityClasses('MuiFilledInput', ['root', 'underline', 'input']));
9
+
6
10
  export default filledInputClasses;
@@ -314,10 +314,9 @@ const Grid = /*#__PURE__*/React.forwardRef(function Grid(inProps, ref) {
314
314
 
315
315
  const rowSpacing = rowSpacingProp || spacing;
316
316
  const columnSpacing = columnSpacingProp || spacing;
317
- const columnsContext = React.useContext(GridContext); // setting prop before context to accomodate nesting
318
- // colums set with default breakpoint unit of 12
317
+ const columnsContext = React.useContext(GridContext); // columns set with default breakpoint unit of 12
319
318
 
320
- const columns = columnsProp || columnsContext || 12;
319
+ const columns = container ? columnsProp || 12 : columnsContext;
321
320
 
322
321
  const ownerState = _extends({}, props, {
323
322
  columns,
@@ -336,18 +335,15 @@ const Grid = /*#__PURE__*/React.forwardRef(function Grid(inProps, ref) {
336
335
  });
337
336
 
338
337
  const classes = useUtilityClasses(ownerState);
339
-
340
- const wrapChild = element => columns !== 12 ? /*#__PURE__*/_jsx(GridContext.Provider, {
338
+ return /*#__PURE__*/_jsx(GridContext.Provider, {
341
339
  value: columns,
342
- children: element
343
- }) : element;
344
-
345
- return wrapChild( /*#__PURE__*/_jsx(GridRoot, _extends({
346
- ownerState: ownerState,
347
- className: clsx(classes.root, className),
348
- as: component,
349
- ref: ref
350
- }, other)));
340
+ children: /*#__PURE__*/_jsx(GridRoot, _extends({
341
+ ownerState: ownerState,
342
+ className: clsx(classes.root, className),
343
+ as: component,
344
+ ref: ref
345
+ }, other))
346
+ });
351
347
  });
352
348
  process.env.NODE_ENV !== "production" ? Grid.propTypes
353
349
  /* remove-proptypes */
@@ -271,7 +271,7 @@ process.env.NODE_ENV !== "production" ? Input.propTypes
271
271
  minRows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
272
272
 
273
273
  /**
274
- * If `true`, a `textarea` element is rendered.
274
+ * If `true`, a [TextareaAutosize](/components/textarea-autosize/) element is rendered.
275
275
  * @default false
276
276
  */
277
277
  multiline: PropTypes.bool,
@@ -1,6 +1,10 @@
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
1
2
  import { generateUtilityClasses, generateUtilityClass } from '@mui/base';
3
+ import { inputBaseClasses } from '../InputBase';
2
4
  export function getInputUtilityClass(slot) {
3
5
  return generateUtilityClass('MuiInput', slot);
4
6
  }
5
- const inputClasses = generateUtilityClasses('MuiInput', ['root', 'formControl', 'focused', 'disabled', 'colorSecondary', 'underline', 'error', 'sizeSmall', 'multiline', 'fullWidth', 'input', 'inputSizeSmall', 'inputMultiline', 'inputTypeSearch']);
7
+
8
+ const inputClasses = _extends({}, inputBaseClasses, generateUtilityClasses('MuiInput', ['root', 'underline', 'input']));
9
+
6
10
  export default inputClasses;
@@ -633,7 +633,7 @@ process.env.NODE_ENV !== "production" ? InputBase.propTypes
633
633
  minRows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
634
634
 
635
635
  /**
636
- * If `true`, a `textarea` element is rendered.
636
+ * If `true`, a [TextareaAutosize](/components/textarea-autosize/) element is rendered.
637
637
  * @default false
638
638
  */
639
639
  multiline: PropTypes.bool,
@@ -28,7 +28,9 @@ const NotchedOutlineLegend = styled('legend')(({
28
28
  ownerState,
29
29
  theme
30
30
  }) => _extends({
31
- float: 'unset'
31
+ float: 'unset',
32
+ // Fix conflict with bootstrap
33
+ overflow: 'hidden'
32
34
  }, !ownerState.withLabel && {
33
35
  padding: 0,
34
36
  lineHeight: '11px',
@@ -56,7 +58,9 @@ const NotchedOutlineLegend = styled('legend')(({
56
58
  '& > span': {
57
59
  paddingLeft: 5,
58
60
  paddingRight: 5,
59
- display: 'inline-block'
61
+ display: 'inline-block',
62
+ opacity: 0,
63
+ visibility: 'visible'
60
64
  }
61
65
  }, ownerState.notched && {
62
66
  maxWidth: '100%',
@@ -270,7 +270,7 @@ process.env.NODE_ENV !== "production" ? OutlinedInput.propTypes
270
270
  minRows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
271
271
 
272
272
  /**
273
- * If `true`, a `textarea` element is rendered.
273
+ * If `true`, a [TextareaAutosize](/components/textarea-autosize/) element is rendered.
274
274
  * @default false
275
275
  */
276
276
  multiline: PropTypes.bool,
@@ -1,6 +1,10 @@
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
1
2
  import { generateUtilityClasses, generateUtilityClass } from '@mui/base';
3
+ import { inputBaseClasses } from '../InputBase';
2
4
  export function getOutlinedInputUtilityClass(slot) {
3
5
  return generateUtilityClass('MuiOutlinedInput', slot);
4
6
  }
5
- const outlinedInputClasses = generateUtilityClasses('MuiOutlinedInput', ['root', 'colorSecondary', 'focused', 'disabled', 'adornedStart', 'adornedEnd', 'error', 'sizeSmall', 'multiline', 'notchedOutline', 'input', 'inputSizeSmall', 'inputMultiline', 'inputAdornedStart', 'inputAdornedEnd']);
7
+
8
+ const outlinedInputClasses = _extends({}, inputBaseClasses, generateUtilityClasses('MuiOutlinedInput', ['root', 'notchedOutline', 'input']));
9
+
6
10
  export default outlinedInputClasses;
@@ -4,6 +4,7 @@ import PropTypes from 'prop-types';
4
4
  import PopperUnstyled from '@mui/base/PopperUnstyled';
5
5
  import { HTMLElementType, refType } from '@mui/utils';
6
6
  import { useThemeWithoutDefault as useTheme } from '@mui/system';
7
+ import useThemeProps from '../styles/useThemeProps';
7
8
  import { jsx as _jsx } from "react/jsx-runtime";
8
9
 
9
10
  /**
@@ -18,8 +19,12 @@ import { jsx as _jsx } from "react/jsx-runtime";
18
19
  *
19
20
  * - [Popper API](https://mui.com/api/popper/)
20
21
  */
21
- const Popper = /*#__PURE__*/React.forwardRef(function Popper(props, ref) {
22
+ const Popper = /*#__PURE__*/React.forwardRef(function Popper(inProps, ref) {
22
23
  const theme = useTheme();
24
+ const props = useThemeProps({
25
+ props: inProps,
26
+ name: 'MuiPopper'
27
+ });
23
28
  return /*#__PURE__*/_jsx(PopperUnstyled, _extends({
24
29
  direction: theme?.direction
25
30
  }, props, {
@@ -90,7 +95,7 @@ process.env.NODE_ENV !== "production" ? Popper.propTypes
90
95
  effect: PropTypes.func,
91
96
  enabled: PropTypes.bool,
92
97
  fn: PropTypes.func,
93
- name: PropTypes.any.isRequired,
98
+ name: PropTypes.any,
94
99
  options: PropTypes.object,
95
100
  phase: PropTypes.oneOf(['afterMain', 'afterRead', 'afterWrite', 'beforeMain', 'beforeRead', 'beforeWrite', 'main', 'read', 'write']),
96
101
  requires: PropTypes.arrayOf(PropTypes.string),
@@ -291,7 +291,7 @@ const Snackbar = /*#__PURE__*/React.forwardRef(function Snackbar(inProps, ref) {
291
291
  onMouseLeave: handleMouseLeave,
292
292
  ownerState: ownerState,
293
293
  ref: ref // ClickAwayListener adds an `onClick` prop which results in the alert not being announced.
294
- // See https://github.com/mui-org/material-ui/issues/29080
294
+ // See https://github.com/mui/material-ui/issues/29080
295
295
  ,
296
296
  role: "presentation"
297
297
  }, other, {
@@ -82,6 +82,7 @@ const SvgIcon = /*#__PURE__*/React.forwardRef(function SvgIcon(inProps, ref) {
82
82
  color,
83
83
  component,
84
84
  fontSize,
85
+ instanceFontSize: inProps.fontSize,
85
86
  inheritViewBox,
86
87
  viewBox
87
88
  });