@mui/material 5.4.2 → 5.5.0

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 (259) 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/ButtonBase.d.ts +1 -1
  19. package/ButtonBase/ButtonBase.js +1 -1
  20. package/ButtonBase/buttonBaseClasses.d.ts +12 -12
  21. package/ButtonBase/touchRippleClasses.d.ts +20 -20
  22. package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
  23. package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
  24. package/CHANGELOG.md +196 -2
  25. package/Card/cardClasses.d.ts +8 -8
  26. package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
  27. package/CardActions/cardActionsClasses.d.ts +10 -10
  28. package/CardContent/cardContentClasses.d.ts +8 -8
  29. package/CardHeader/cardHeaderClasses.d.ts +18 -18
  30. package/CardMedia/cardMediaClasses.d.ts +12 -12
  31. package/Checkbox/checkboxClasses.d.ts +18 -18
  32. package/Chip/Chip.js +1 -0
  33. package/Chip/chipClasses.d.ts +80 -80
  34. package/CircularProgress/circularProgressClasses.d.ts +26 -26
  35. package/ClickAwayListener/index.d.ts +2 -2
  36. package/Collapse/collapseClasses.d.ts +18 -18
  37. package/Container/containerClasses.d.ts +22 -22
  38. package/Dialog/Dialog.d.ts +4 -1
  39. package/Dialog/Dialog.js +10 -6
  40. package/Dialog/DialogContext.d.ts +6 -6
  41. package/Dialog/dialogClasses.d.ts +36 -36
  42. package/DialogActions/dialogActionsClasses.d.ts +10 -10
  43. package/DialogContent/dialogContentClasses.d.ts +10 -10
  44. package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
  45. package/DialogTitle/dialogTitleClasses.d.ts +8 -8
  46. package/Divider/dividerClasses.d.ts +34 -34
  47. package/Drawer/Drawer.d.ts +4 -1
  48. package/Drawer/Drawer.js +11 -9
  49. package/Drawer/drawerClasses.d.ts +30 -30
  50. package/Fab/fabClasses.d.ts +26 -26
  51. package/Fade/Fade.d.ts +2 -2
  52. package/Fade/Fade.js +8 -8
  53. package/FilledInput/filledInputClasses.d.ts +40 -40
  54. package/FilledInput/filledInputClasses.js +5 -1
  55. package/FormControl/formControlClasses.d.ts +14 -14
  56. package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
  57. package/FormGroup/formGroupClasses.d.ts +12 -12
  58. package/FormHelperText/formHelperTextClasses.d.ts +22 -22
  59. package/FormLabel/formLabelClasses.d.ts +22 -22
  60. package/Grid/gridClasses.d.ts +48 -48
  61. package/Icon/iconClasses.d.ts +24 -24
  62. package/IconButton/iconButtonClasses.d.ts +26 -26
  63. package/ImageList/imageListClasses.d.ts +16 -16
  64. package/ImageListItem/imageListItemClasses.d.ts +18 -18
  65. package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
  66. package/Input/inputClasses.d.ts +34 -34
  67. package/Input/inputClasses.js +5 -1
  68. package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
  69. package/InputBase/inputBaseClasses.d.ts +44 -44
  70. package/InputLabel/inputLabelClasses.d.ts +32 -32
  71. package/LinearProgress/linearProgressClasses.d.ts +42 -42
  72. package/Link/linkClasses.d.ts +18 -18
  73. package/List/listClasses.d.ts +14 -14
  74. package/ListItem/listItemClasses.d.ts +30 -30
  75. package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
  76. package/ListItemButton/listItemButtonClasses.d.ts +22 -22
  77. package/ListItemIcon/listItemIconClasses.d.ts +10 -10
  78. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
  79. package/ListItemText/listItemTextClasses.d.ts +18 -18
  80. package/ListSubheader/listSubheaderClasses.d.ts +18 -18
  81. package/Menu/menuClasses.d.ts +12 -12
  82. package/MenuItem/menuItemClasses.d.ts +20 -20
  83. package/MobileStepper/mobileStepperClasses.d.ts +22 -22
  84. package/NativeSelect/nativeSelectClasses.d.ts +32 -32
  85. package/OutlinedInput/NotchedOutline.js +3 -1
  86. package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
  87. package/OutlinedInput/outlinedInputClasses.js +5 -1
  88. package/Pagination/paginationClasses.d.ts +14 -14
  89. package/PaginationItem/paginationItemClasses.d.ts +42 -42
  90. package/Paper/paperClasses.d.ts +39 -39
  91. package/Popover/popoverClasses.d.ts +10 -10
  92. package/Popper/Popper.d.ts +17 -17
  93. package/Popper/Popper.js +1 -1
  94. package/README.md +1 -1
  95. package/Radio/radioClasses.d.ts +16 -16
  96. package/RadioGroup/RadioGroupContext.d.ts +11 -11
  97. package/RadioGroup/useRadioGroup.d.ts +4 -4
  98. package/Rating/ratingClasses.d.ts +40 -40
  99. package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
  100. package/Select/Select.d.ts +2 -0
  101. package/Select/selectClasses.d.ts +30 -30
  102. package/Skeleton/skeletonClasses.d.ts +24 -24
  103. package/Slide/Slide.d.ts +4 -4
  104. package/Slide/Slide.js +14 -14
  105. package/Snackbar/Snackbar.d.ts +2 -2
  106. package/Snackbar/Snackbar.js +8 -8
  107. package/Snackbar/snackbarClasses.d.ts +20 -20
  108. package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
  109. package/SpeedDial/SpeedDial.d.ts +2 -2
  110. package/SpeedDial/SpeedDial.js +9 -7
  111. package/SpeedDial/speedDialClasses.d.ts +22 -22
  112. package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
  113. package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
  114. package/Step/StepContext.d.ts +20 -0
  115. package/Step/StepContext.js +10 -2
  116. package/Step/index.d.ts +3 -0
  117. package/Step/index.js +3 -1
  118. package/Step/stepClasses.d.ts +16 -16
  119. package/StepButton/stepButtonClasses.d.ts +14 -14
  120. package/StepConnector/stepConnectorClasses.d.ts +26 -26
  121. package/StepContent/stepContentClasses.d.ts +12 -12
  122. package/StepIcon/stepIconClasses.d.ts +16 -16
  123. package/StepLabel/stepLabelClasses.d.ts +28 -28
  124. package/Stepper/stepperClasses.d.ts +14 -14
  125. package/SvgIcon/SvgIcon.js +1 -0
  126. package/SvgIcon/svgIconClasses.d.ts +24 -24
  127. package/SwipeableDrawer/SwipeableDrawer.js +8 -6
  128. package/Switch/switchClasses.d.ts +32 -32
  129. package/Tab/tabClasses.d.ts +26 -26
  130. package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
  131. package/Table/tableClasses.d.ts +10 -10
  132. package/TableBody/tableBodyClasses.d.ts +8 -8
  133. package/TableCell/tableCellClasses.d.ts +32 -32
  134. package/TableContainer/tableContainerClasses.d.ts +8 -8
  135. package/TableFooter/tableFooterClasses.d.ts +8 -8
  136. package/TableHead/tableHeadClasses.d.ts +8 -8
  137. package/TablePagination/tablePaginationClasses.d.ts +28 -28
  138. package/TableRow/tableRowClasses.d.ts +16 -16
  139. package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
  140. package/Tabs/tabsClasses.d.ts +32 -32
  141. package/TextField/textFieldClasses.d.ts +8 -8
  142. package/ToggleButton/toggleButtonClasses.d.ts +24 -24
  143. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
  144. package/Toolbar/toolbarClasses.d.ts +14 -14
  145. package/Tooltip/tooltipClasses.d.ts +30 -30
  146. package/Typography/typographyClasses.d.ts +50 -50
  147. package/Zoom/Zoom.d.ts +2 -2
  148. package/Zoom/Zoom.js +8 -8
  149. package/className/index.d.ts +8 -0
  150. package/className/index.js +9 -0
  151. package/className/package.json +6 -0
  152. package/darkScrollbar/index.d.ts +28 -28
  153. package/index.js +1 -1
  154. package/internal/switchBaseClasses.d.ts +12 -12
  155. package/legacy/AvatarGroup/AvatarGroup.js +4 -2
  156. package/legacy/BottomNavigation/BottomNavigation.js +0 -0
  157. package/legacy/Box/Box.js +1 -1
  158. package/legacy/ButtonBase/ButtonBase.js +1 -1
  159. package/legacy/Chip/Chip.js +1 -0
  160. package/legacy/Dialog/Dialog.js +10 -6
  161. package/legacy/Drawer/Drawer.js +11 -9
  162. package/legacy/Fade/Fade.js +8 -8
  163. package/legacy/FilledInput/filledInputClasses.js +5 -1
  164. package/legacy/Input/inputClasses.js +5 -1
  165. package/legacy/OutlinedInput/NotchedOutline.js +3 -1
  166. package/legacy/OutlinedInput/outlinedInputClasses.js +5 -1
  167. package/legacy/Popper/Popper.js +1 -1
  168. package/legacy/Slide/Slide.js +14 -14
  169. package/legacy/Snackbar/Snackbar.js +8 -8
  170. package/legacy/SpeedDial/SpeedDial.js +9 -7
  171. package/legacy/Step/StepContext.js +10 -2
  172. package/legacy/Step/index.js +3 -1
  173. package/legacy/SvgIcon/SvgIcon.js +1 -0
  174. package/legacy/SwipeableDrawer/SwipeableDrawer.js +8 -6
  175. package/legacy/Zoom/Zoom.js +8 -8
  176. package/legacy/className/index.js +9 -0
  177. package/legacy/index.js +1 -1
  178. package/legacy/locale/index.js +268 -78
  179. package/legacy/styles/makeStyles.js +1 -1
  180. package/legacy/styles/withStyles.js +1 -1
  181. package/legacy/styles/withTheme.js +1 -1
  182. package/legacy/utils/index.js +10 -2
  183. package/locale/index.d.ts +70 -68
  184. package/locale/index.js +192 -6
  185. package/modern/AvatarGroup/AvatarGroup.js +4 -2
  186. package/modern/BottomNavigation/BottomNavigation.js +0 -0
  187. package/modern/Box/Box.js +1 -1
  188. package/modern/ButtonBase/ButtonBase.js +1 -1
  189. package/modern/Chip/Chip.js +1 -0
  190. package/modern/Dialog/Dialog.js +10 -6
  191. package/modern/Drawer/Drawer.js +11 -9
  192. package/modern/Fade/Fade.js +8 -8
  193. package/modern/FilledInput/filledInputClasses.js +5 -1
  194. package/modern/Input/inputClasses.js +5 -1
  195. package/modern/OutlinedInput/NotchedOutline.js +3 -1
  196. package/modern/OutlinedInput/outlinedInputClasses.js +5 -1
  197. package/modern/Popper/Popper.js +1 -1
  198. package/modern/Slide/Slide.js +14 -14
  199. package/modern/Snackbar/Snackbar.js +8 -8
  200. package/modern/SpeedDial/SpeedDial.js +9 -7
  201. package/modern/Step/StepContext.js +10 -2
  202. package/modern/Step/index.js +3 -1
  203. package/modern/SvgIcon/SvgIcon.js +1 -0
  204. package/modern/SwipeableDrawer/SwipeableDrawer.js +8 -6
  205. package/modern/Zoom/Zoom.js +8 -8
  206. package/modern/className/index.js +9 -0
  207. package/modern/index.js +1 -1
  208. package/modern/locale/index.js +192 -6
  209. package/modern/styles/makeStyles.js +1 -1
  210. package/modern/styles/withStyles.js +1 -1
  211. package/modern/styles/withTheme.js +1 -1
  212. package/modern/utils/index.js +10 -2
  213. package/node/AvatarGroup/AvatarGroup.js +4 -2
  214. package/node/BottomNavigation/BottomNavigation.js +0 -0
  215. package/node/Box/Box.js +2 -2
  216. package/node/ButtonBase/ButtonBase.js +1 -1
  217. package/node/Chip/Chip.js +1 -0
  218. package/node/Dialog/Dialog.js +11 -7
  219. package/node/Drawer/Drawer.js +11 -10
  220. package/node/Fade/Fade.js +7 -9
  221. package/node/FilledInput/filledInputClasses.js +7 -1
  222. package/node/Input/inputClasses.js +7 -1
  223. package/node/OutlinedInput/NotchedOutline.js +3 -1
  224. package/node/OutlinedInput/outlinedInputClasses.js +7 -1
  225. package/node/Popper/Popper.js +1 -1
  226. package/node/Slide/Slide.js +14 -16
  227. package/node/Snackbar/Snackbar.js +8 -9
  228. package/node/SpeedDial/SpeedDial.js +9 -7
  229. package/node/Step/StepContext.js +11 -1
  230. package/node/Step/index.js +22 -1
  231. package/node/SvgIcon/SvgIcon.js +1 -0
  232. package/node/SwipeableDrawer/SwipeableDrawer.js +8 -7
  233. package/node/Zoom/Zoom.js +7 -9
  234. package/node/className/index.js +13 -0
  235. package/node/index.js +1 -1
  236. package/node/locale/index.js +197 -9
  237. package/node/styles/makeStyles.js +1 -1
  238. package/node/styles/withStyles.js +1 -1
  239. package/node/styles/withTheme.js +1 -1
  240. package/node/utils/index.js +13 -7
  241. package/package.json +6 -6
  242. package/styles/components.d.ts +0 -339
  243. package/styles/makeStyles.js +1 -1
  244. package/styles/withStyles.js +1 -1
  245. package/styles/withTheme.js +1 -1
  246. package/transitions/index.d.ts +1 -1
  247. package/transitions/transition.d.ts +13 -13
  248. package/transitions/utils.d.ts +23 -23
  249. package/umd/material-ui.development.js +9242 -9030
  250. package/umd/material-ui.production.min.js +21 -21
  251. package/useMediaQuery/useMediaQuery.d.ts +31 -31
  252. package/useTouchRipple/index.d.ts +1 -1
  253. package/useTouchRipple/useTouchRipple.d.ts +28 -28
  254. package/utils/getScrollbarSize.d.ts +2 -2
  255. package/utils/index.d.ts +1 -1
  256. package/utils/index.js +10 -2
  257. package/utils/ownerDocument.d.ts +2 -2
  258. package/utils/ownerWindow.d.ts +2 -2
  259. package/utils/setRef.d.ts +2 -2
package/locale/index.d.ts CHANGED
@@ -1,68 +1,70 @@
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 nbNO: Localization;
54
+ export declare const nlNL: Localization;
55
+ export declare const plPL: Localization;
56
+ export declare const ptBR: Localization;
57
+ export declare const ptPT: Localization;
58
+ export declare const roRO: Localization;
59
+ export declare const srRS: Localization;
60
+ export declare const ruRU: Localization;
61
+ export declare const siLK: Localization;
62
+ export declare const skSK: Localization;
63
+ export declare const svSE: Localization;
64
+ export declare const thTH: Localization;
65
+ export declare const trTR: Localization;
66
+ export declare const ukUA: Localization;
67
+ export declare const viVN: Localization;
68
+ export declare const zhCN: Localization;
69
+ export declare const zhHK: Localization;
70
+ 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: {
@@ -1813,9 +1903,12 @@ export const itIT = {
1813
1903
 
1814
1904
  return 'Vai alla pagina precedente';
1815
1905
  },
1816
- labelRowsPerPage: 'Righe per pagina:' // labelDisplayedRows: ({ from, to, count }) =>
1817
- // `${from}–${to} di ${count !== -1 ? count : `more than ${to}`}`,
1818
-
1906
+ labelRowsPerPage: 'Righe per pagina:',
1907
+ labelDisplayedRows: ({
1908
+ from,
1909
+ to,
1910
+ count
1911
+ }) => `${from}–${to} di ${count !== -1 ? count : `più di ${to}`}`
1819
1912
  }
1820
1913
  },
1821
1914
  MuiRating: {
@@ -2374,9 +2467,12 @@ export const plPL = {
2374
2467
 
2375
2468
  return 'Przejdź do poprzedniej strony';
2376
2469
  },
2377
- labelRowsPerPage: 'Wierszy na stronę:' // labelDisplayedRows: ({ from, to, count }) =>
2378
- // `${from}–${to} z ${count !== -1 ? count : `more than ${to}`}`,
2379
-
2470
+ labelRowsPerPage: 'Wierszy na stronę:',
2471
+ labelDisplayedRows: ({
2472
+ from,
2473
+ to,
2474
+ count
2475
+ }) => `${from}–${to} z ${count !== -1 ? count : `ponad ${to}`}`
2380
2476
  }
2381
2477
  },
2382
2478
  MuiRating: {
@@ -2673,6 +2769,96 @@ export const roRO = {
2673
2769
  }
2674
2770
  }
2675
2771
  }
2772
+ }; // Serbian - Srpski
2773
+
2774
+ export const srRS = {
2775
+ components: {
2776
+ MuiBreadcrumbs: {
2777
+ defaultProps: {
2778
+ expandText: 'Pokaži putanju'
2779
+ }
2780
+ },
2781
+ MuiTablePagination: {
2782
+ defaultProps: {
2783
+ getItemAriaLabel: type => {
2784
+ if (type === 'first') {
2785
+ return 'Idi na prvu stranicu';
2786
+ }
2787
+
2788
+ if (type === 'last') {
2789
+ return 'Idi na poslednju stranicu';
2790
+ }
2791
+
2792
+ if (type === 'next') {
2793
+ return 'Idi na sledeću stranicu';
2794
+ } // if (type === 'previous') {
2795
+
2796
+
2797
+ return 'Idi na prethodnu stranicu';
2798
+ },
2799
+ labelRowsPerPage: 'Redova po stranici:',
2800
+ labelDisplayedRows: ({
2801
+ from,
2802
+ to,
2803
+ count
2804
+ }) => `${from}–${to} od ${count !== -1 ? count : `više nego ${to}`}`
2805
+ }
2806
+ },
2807
+ MuiRating: {
2808
+ defaultProps: {
2809
+ getLabelText: value => {
2810
+ const lastDigit = value % 10;
2811
+ const lastTwoDigits = value % 100;
2812
+
2813
+ if ([2, 3, 4].includes(lastDigit) && ![12, 13, 14].includes(lastTwoDigits)) {
2814
+ return 'Zvezde';
2815
+ }
2816
+
2817
+ return 'Zvezda';
2818
+ },
2819
+ emptyLabelText: 'Prazno'
2820
+ }
2821
+ },
2822
+ MuiAutocomplete: {
2823
+ defaultProps: {
2824
+ clearText: 'Briši',
2825
+ closeText: 'Zatvori',
2826
+ loadingText: 'Učitavanje…',
2827
+ noOptionsText: 'Nema opcija',
2828
+ openText: 'Otvori'
2829
+ }
2830
+ },
2831
+ MuiAlert: {
2832
+ defaultProps: {
2833
+ closeText: 'Zatvori'
2834
+ }
2835
+ },
2836
+ MuiPagination: {
2837
+ defaultProps: {
2838
+ 'aria-label': 'Navigacija po stranicama',
2839
+ getItemAriaLabel: (type, page, selected) => {
2840
+ if (type === 'page') {
2841
+ return `${selected ? '' : 'Idi na '}stranicu ${page}`;
2842
+ }
2843
+
2844
+ if (type === 'first') {
2845
+ return 'Idi na prvu stranicu';
2846
+ }
2847
+
2848
+ if (type === 'last') {
2849
+ return 'Idi na zadnju stranicu';
2850
+ }
2851
+
2852
+ if (type === 'next') {
2853
+ return 'Idi na sledeću stranicu';
2854
+ } // if (type === 'previous') {
2855
+
2856
+
2857
+ return 'Idi na prethodnu stranicu';
2858
+ }
2859
+ }
2860
+ }
2861
+ }
2676
2862
  };
2677
2863
  export const ruRU = {
2678
2864
  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
  /**
@@ -529,7 +529,7 @@ process.env.NODE_ENV !== "production" ? ButtonBase.propTypes
529
529
  TouchRippleProps: PropTypes.object,
530
530
 
531
531
  /**
532
- * A ref that points to the `TouchRippple` element.
532
+ * A ref that points to the `TouchRipple` element.
533
533
  */
534
534
  touchRippleRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
535
535
  current: PropTypes.shape({
@@ -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',
@@ -9,13 +9,13 @@ import { unstable_useId as useId } from '@mui/utils';
9
9
  import capitalize from '../utils/capitalize';
10
10
  import Modal from '../Modal';
11
11
  import Fade from '../Fade';
12
- import { duration } from '../styles/createTransitions';
13
12
  import Paper from '../Paper';
14
13
  import useThemeProps from '../styles/useThemeProps';
15
14
  import styled from '../styles/styled';
16
15
  import dialogClasses, { getDialogUtilityClass } from './dialogClasses';
17
16
  import DialogContext from './DialogContext';
18
17
  import Backdrop from '../Backdrop';
18
+ import useTheme from '../styles/useTheme';
19
19
  import { jsx as _jsx } from "react/jsx-runtime";
20
20
  const DialogBackdrop = styled(Backdrop, {
21
21
  name: 'MuiDialog',
@@ -146,10 +146,6 @@ const DialogPaper = styled(Paper, {
146
146
  maxWidth: '100%'
147
147
  }
148
148
  }));
149
- const defaultTransitionDuration = {
150
- enter: duration.enteringScreen,
151
- exit: duration.leavingScreen
152
- };
153
149
  /**
154
150
  * Dialogs are overlaid modal paper based components with a backdrop.
155
151
  */
@@ -159,6 +155,11 @@ const Dialog = /*#__PURE__*/React.forwardRef(function Dialog(inProps, ref) {
159
155
  props: inProps,
160
156
  name: 'MuiDialog'
161
157
  });
158
+ const theme = useTheme();
159
+ const defaultTransitionDuration = {
160
+ enter: theme.transitions.duration.enteringScreen,
161
+ exit: theme.transitions.duration.leavingScreen
162
+ };
162
163
 
163
164
  const {
164
165
  'aria-describedby': ariaDescribedby,
@@ -399,7 +400,10 @@ process.env.NODE_ENV !== "production" ? Dialog.propTypes
399
400
  /**
400
401
  * The duration for the transition, in milliseconds.
401
402
  * You may specify a single timeout for all transitions, or individually with an object.
402
- * @default { enter: duration.enteringScreen, exit: duration.leavingScreen }
403
+ * @default {
404
+ * enter: theme.transitions.duration.enteringScreen,
405
+ * exit: theme.transitions.duration.leavingScreen,
406
+ * }
403
407
  */
404
408
  transitionDuration: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({
405
409
  appear: PropTypes.number,
@@ -11,7 +11,6 @@ import Modal from '../Modal';
11
11
  import Slide from '../Slide';
12
12
  import Paper from '../Paper';
13
13
  import capitalize from '../utils/capitalize';
14
- import { duration } from '../styles/createTransitions';
15
14
  import useTheme from '../styles/useTheme';
16
15
  import useThemeProps from '../styles/useThemeProps';
17
16
  import styled, { rootShouldForwardProp } from '../styles/styled';
@@ -124,10 +123,6 @@ export function isHorizontal(anchor) {
124
123
  export function getAnchor(theme, anchor) {
125
124
  return theme.direction === 'rtl' && isHorizontal(anchor) ? oppositeDirection[anchor] : anchor;
126
125
  }
127
- const defaultTransitionDuration = {
128
- enter: duration.enteringScreen,
129
- exit: duration.leavingScreen
130
- };
131
126
  /**
132
127
  * The props of the [Modal](/api/modal/) component are available
133
128
  * when `variant="temporary"` is set.
@@ -138,6 +133,11 @@ const Drawer = /*#__PURE__*/React.forwardRef(function Drawer(inProps, ref) {
138
133
  props: inProps,
139
134
  name: 'MuiDrawer'
140
135
  });
136
+ const theme = useTheme();
137
+ const defaultTransitionDuration = {
138
+ enter: theme.transitions.duration.enteringScreen,
139
+ exit: theme.transitions.duration.leavingScreen
140
+ };
141
141
 
142
142
  const {
143
143
  anchor: anchorProp = 'left',
@@ -159,12 +159,11 @@ const Drawer = /*#__PURE__*/React.forwardRef(function Drawer(inProps, ref) {
159
159
  variant = 'temporary'
160
160
  } = props,
161
161
  ModalProps = _objectWithoutPropertiesLoose(props.ModalProps, _excluded),
162
- other = _objectWithoutPropertiesLoose(props, _excluded2);
163
-
164
- const theme = useTheme(); // Let's assume that the Drawer will always be rendered on user space.
162
+ other = _objectWithoutPropertiesLoose(props, _excluded2); // Let's assume that the Drawer will always be rendered on user space.
165
163
  // We use this state is order to skip the appear transition during the
166
164
  // initial mount of the component.
167
165
 
166
+
168
167
  const mounted = React.useRef(false);
169
168
  React.useEffect(() => {
170
169
  mounted.current = true;
@@ -318,7 +317,10 @@ process.env.NODE_ENV !== "production" ? Drawer.propTypes
318
317
  /**
319
318
  * The duration for the transition, in milliseconds.
320
319
  * You may specify a single timeout for all transitions, or individually with an object.
321
- * @default { enter: duration.enteringScreen, exit: duration.leavingScreen }
320
+ * @default {
321
+ * enter: theme.transitions.duration.enteringScreen,
322
+ * exit: theme.transitions.duration.leavingScreen,
323
+ * }
322
324
  */
323
325
  transitionDuration: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({
324
326
  appear: PropTypes.number,
@@ -5,7 +5,6 @@ import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import { Transition } from 'react-transition-group';
7
7
  import { elementAcceptingRef } from '@mui/utils';
8
- import { duration } from '../styles/createTransitions';
9
8
  import useTheme from '../styles/useTheme';
10
9
  import { reflow, getTransitionProps } from '../transitions/utils';
11
10
  import useForkRef from '../utils/useForkRef';
@@ -18,16 +17,18 @@ const styles = {
18
17
  opacity: 1
19
18
  }
20
19
  };
21
- const defaultTimeout = {
22
- enter: duration.enteringScreen,
23
- exit: duration.leavingScreen
24
- };
25
20
  /**
26
21
  * The Fade transition is used by the [Modal](/components/modal/) component.
27
22
  * It uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally.
28
23
  */
29
24
 
30
25
  const Fade = /*#__PURE__*/React.forwardRef(function Fade(props, ref) {
26
+ const theme = useTheme();
27
+ const defaultTimeout = {
28
+ enter: theme.transitions.duration.enteringScreen,
29
+ exit: theme.transitions.duration.leavingScreen
30
+ };
31
+
31
32
  const {
32
33
  addEndListener,
33
34
  appear = true,
@@ -47,7 +48,6 @@ const Fade = /*#__PURE__*/React.forwardRef(function Fade(props, ref) {
47
48
  } = props,
48
49
  other = _objectWithoutPropertiesLoose(props, _excluded);
49
50
 
50
- const theme = useTheme();
51
51
  const enableStrictModeCompat = true;
52
52
  const nodeRef = React.useRef(null);
53
53
  const foreignRef = useForkRef(children.ref, ref);
@@ -213,8 +213,8 @@ process.env.NODE_ENV !== "production" ? Fade.propTypes
213
213
  * The duration for the transition, in milliseconds.
214
214
  * You may specify a single timeout for all transitions, or individually with an object.
215
215
  * @default {
216
- * enter: duration.enteringScreen,
217
- * exit: duration.leavingScreen,
216
+ * enter: theme.transitions.duration.enteringScreen,
217
+ * exit: theme.transitions.duration.leavingScreen,
218
218
  * }
219
219
  */
220
220
  timeout: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({
@@ -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;
@@ -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;
@@ -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',
@@ -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;
@@ -90,7 +90,7 @@ process.env.NODE_ENV !== "production" ? Popper.propTypes
90
90
  effect: PropTypes.func,
91
91
  enabled: PropTypes.bool,
92
92
  fn: PropTypes.func,
93
- name: PropTypes.any.isRequired,
93
+ name: PropTypes.any,
94
94
  options: PropTypes.object,
95
95
  phase: PropTypes.oneOf(['afterMain', 'afterRead', 'afterWrite', 'beforeMain', 'beforeRead', 'beforeWrite', 'main', 'read', 'write']),
96
96
  requires: PropTypes.arrayOf(PropTypes.string),