@mui/material 5.4.4 → 5.5.2

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 (214) 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 +192 -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/chipClasses.d.ts +80 -80
  31. package/CircularProgress/circularProgressClasses.d.ts +26 -26
  32. package/ClickAwayListener/index.d.ts +2 -2
  33. package/Collapse/collapseClasses.d.ts +18 -18
  34. package/Container/containerClasses.d.ts +22 -22
  35. package/Dialog/DialogContext.d.ts +6 -6
  36. package/Dialog/dialogClasses.d.ts +36 -36
  37. package/DialogActions/dialogActionsClasses.d.ts +10 -10
  38. package/DialogContent/dialogContentClasses.d.ts +10 -10
  39. package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
  40. package/DialogTitle/dialogTitleClasses.d.ts +8 -8
  41. package/Divider/dividerClasses.d.ts +34 -34
  42. package/Drawer/drawerClasses.d.ts +30 -30
  43. package/Fab/Fab.js +1 -0
  44. package/Fab/fabClasses.d.ts +26 -26
  45. package/FilledInput/FilledInput.js +1 -1
  46. package/FilledInput/filledInputClasses.d.ts +40 -40
  47. package/FormControl/formControlClasses.d.ts +14 -14
  48. package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
  49. package/FormGroup/formGroupClasses.d.ts +12 -12
  50. package/FormHelperText/formHelperTextClasses.d.ts +22 -22
  51. package/FormLabel/formLabelClasses.d.ts +22 -22
  52. package/Grid/Grid.js +10 -14
  53. package/Grid/gridClasses.d.ts +48 -48
  54. package/Icon/iconClasses.d.ts +24 -24
  55. package/IconButton/iconButtonClasses.d.ts +26 -26
  56. package/ImageList/imageListClasses.d.ts +16 -16
  57. package/ImageListItem/imageListItemClasses.d.ts +18 -18
  58. package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
  59. package/Input/Input.js +1 -1
  60. package/Input/inputClasses.d.ts +34 -34
  61. package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
  62. package/InputBase/InputBase.d.ts +1 -1
  63. package/InputBase/InputBase.js +1 -1
  64. package/InputBase/inputBaseClasses.d.ts +44 -44
  65. package/InputLabel/inputLabelClasses.d.ts +32 -32
  66. package/LinearProgress/linearProgressClasses.d.ts +42 -42
  67. package/Link/linkClasses.d.ts +18 -18
  68. package/List/listClasses.d.ts +14 -14
  69. package/ListItem/listItemClasses.d.ts +30 -30
  70. package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
  71. package/ListItemButton/listItemButtonClasses.d.ts +22 -22
  72. package/ListItemIcon/listItemIconClasses.d.ts +10 -10
  73. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
  74. package/ListItemText/listItemTextClasses.d.ts +18 -18
  75. package/ListSubheader/listSubheaderClasses.d.ts +18 -18
  76. package/Menu/menuClasses.d.ts +12 -12
  77. package/MenuItem/menuItemClasses.d.ts +20 -20
  78. package/MobileStepper/mobileStepperClasses.d.ts +22 -22
  79. package/NativeSelect/nativeSelectClasses.d.ts +32 -32
  80. package/OutlinedInput/NotchedOutline.js +3 -1
  81. package/OutlinedInput/OutlinedInput.js +1 -1
  82. package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
  83. package/Pagination/paginationClasses.d.ts +14 -14
  84. package/PaginationItem/paginationItemClasses.d.ts +42 -42
  85. package/Paper/paperClasses.d.ts +39 -39
  86. package/Popover/popoverClasses.d.ts +10 -10
  87. package/Popper/Popper.d.ts +29 -17
  88. package/Popper/Popper.js +21 -6
  89. package/README.md +1 -0
  90. package/Radio/radioClasses.d.ts +16 -16
  91. package/RadioGroup/RadioGroupContext.d.ts +11 -11
  92. package/RadioGroup/useRadioGroup.d.ts +4 -4
  93. package/Rating/ratingClasses.d.ts +40 -40
  94. package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
  95. package/Select/Select.d.ts +2 -0
  96. package/Select/selectClasses.d.ts +30 -30
  97. package/Skeleton/skeletonClasses.d.ts +24 -24
  98. package/Snackbar/Snackbar.js +1 -1
  99. package/Snackbar/snackbarClasses.d.ts +20 -20
  100. package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
  101. package/SpeedDial/speedDialClasses.d.ts +22 -22
  102. package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
  103. package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
  104. package/Step/StepContext.d.ts +20 -20
  105. package/Step/stepClasses.d.ts +16 -16
  106. package/StepButton/stepButtonClasses.d.ts +14 -14
  107. package/StepConnector/stepConnectorClasses.d.ts +26 -26
  108. package/StepContent/stepContentClasses.d.ts +12 -12
  109. package/StepIcon/stepIconClasses.d.ts +16 -16
  110. package/StepLabel/stepLabelClasses.d.ts +28 -28
  111. package/Stepper/stepperClasses.d.ts +14 -14
  112. package/SvgIcon/SvgIcon.js +1 -0
  113. package/SvgIcon/svgIconClasses.d.ts +24 -24
  114. package/Switch/switchClasses.d.ts +32 -32
  115. package/Tab/tabClasses.d.ts +26 -26
  116. package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
  117. package/Table/tableClasses.d.ts +10 -10
  118. package/TableBody/tableBodyClasses.d.ts +8 -8
  119. package/TableCell/tableCellClasses.d.ts +32 -32
  120. package/TableContainer/tableContainerClasses.d.ts +8 -8
  121. package/TableFooter/tableFooterClasses.d.ts +8 -8
  122. package/TableHead/tableHeadClasses.d.ts +8 -8
  123. package/TablePagination/tablePaginationClasses.d.ts +28 -28
  124. package/TableRow/tableRowClasses.d.ts +16 -16
  125. package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
  126. package/Tabs/tabsClasses.d.ts +32 -32
  127. package/TextField/textFieldClasses.d.ts +8 -8
  128. package/ToggleButton/toggleButtonClasses.d.ts +24 -24
  129. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
  130. package/Toolbar/toolbarClasses.d.ts +14 -14
  131. package/Tooltip/tooltipClasses.d.ts +30 -30
  132. package/Typography/typographyClasses.d.ts +50 -50
  133. package/className/index.d.ts +8 -0
  134. package/className/index.js +9 -0
  135. package/className/package.json +6 -0
  136. package/darkScrollbar/index.d.ts +28 -28
  137. package/index.js +1 -1
  138. package/internal/switchBaseClasses.d.ts +12 -12
  139. package/legacy/AvatarGroup/AvatarGroup.js +4 -2
  140. package/legacy/BottomNavigation/BottomNavigation.js +0 -0
  141. package/legacy/Box/Box.js +1 -1
  142. package/legacy/Fab/Fab.js +1 -0
  143. package/legacy/FilledInput/FilledInput.js +1 -1
  144. package/legacy/Grid/Grid.js +11 -17
  145. package/legacy/Input/Input.js +1 -1
  146. package/legacy/InputBase/InputBase.js +1 -1
  147. package/legacy/OutlinedInput/NotchedOutline.js +3 -1
  148. package/legacy/OutlinedInput/OutlinedInput.js +1 -1
  149. package/legacy/Popper/Popper.js +23 -6
  150. package/legacy/Snackbar/Snackbar.js +1 -1
  151. package/legacy/SvgIcon/SvgIcon.js +1 -0
  152. package/legacy/className/index.js +9 -0
  153. package/legacy/index.js +1 -1
  154. package/legacy/locale/index.js +347 -80
  155. package/legacy/styles/zIndex.js +1 -0
  156. package/legacy/utils/index.js +10 -2
  157. package/locale/index.d.ts +71 -68
  158. package/locale/index.js +264 -0
  159. package/modern/AvatarGroup/AvatarGroup.js +4 -2
  160. package/modern/BottomNavigation/BottomNavigation.js +0 -0
  161. package/modern/Box/Box.js +1 -1
  162. package/modern/Fab/Fab.js +1 -0
  163. package/modern/FilledInput/FilledInput.js +1 -1
  164. package/modern/Grid/Grid.js +10 -14
  165. package/modern/Input/Input.js +1 -1
  166. package/modern/InputBase/InputBase.js +1 -1
  167. package/modern/OutlinedInput/NotchedOutline.js +3 -1
  168. package/modern/OutlinedInput/OutlinedInput.js +1 -1
  169. package/modern/Popper/Popper.js +21 -6
  170. package/modern/Snackbar/Snackbar.js +1 -1
  171. package/modern/SvgIcon/SvgIcon.js +1 -0
  172. package/modern/className/index.js +9 -0
  173. package/modern/index.js +1 -1
  174. package/modern/locale/index.js +264 -0
  175. package/modern/styles/zIndex.js +1 -0
  176. package/modern/utils/index.js +10 -2
  177. package/node/AvatarGroup/AvatarGroup.js +4 -2
  178. package/node/BottomNavigation/BottomNavigation.js +0 -0
  179. package/node/Box/Box.js +2 -2
  180. package/node/Fab/Fab.js +1 -0
  181. package/node/FilledInput/FilledInput.js +1 -1
  182. package/node/Grid/Grid.js +10 -14
  183. package/node/Input/Input.js +1 -1
  184. package/node/InputBase/InputBase.js +1 -1
  185. package/node/OutlinedInput/NotchedOutline.js +3 -1
  186. package/node/OutlinedInput/OutlinedInput.js +1 -1
  187. package/node/Popper/Popper.js +24 -7
  188. package/node/Snackbar/Snackbar.js +1 -1
  189. package/node/SvgIcon/SvgIcon.js +1 -0
  190. package/node/className/index.js +13 -0
  191. package/node/index.js +1 -1
  192. package/node/locale/index.js +271 -4
  193. package/node/styles/zIndex.js +1 -0
  194. package/node/utils/index.js +13 -7
  195. package/package.json +5 -5
  196. package/styles/components.d.ts +3 -0
  197. package/styles/props.d.ts +2 -0
  198. package/styles/zIndex.d.ts +1 -0
  199. package/styles/zIndex.js +1 -0
  200. package/transitions/index.d.ts +1 -1
  201. package/transitions/transition.d.ts +13 -13
  202. package/transitions/utils.d.ts +23 -23
  203. package/umd/material-ui.development.js +2838 -2690
  204. package/umd/material-ui.production.min.js +21 -21
  205. package/useMediaQuery/useMediaQuery.d.ts +31 -31
  206. package/usePagination/usePagination.d.ts +1 -1
  207. package/useTouchRipple/index.d.ts +1 -1
  208. package/useTouchRipple/useTouchRipple.d.ts +28 -28
  209. package/utils/getScrollbarSize.d.ts +2 -2
  210. package/utils/index.d.ts +1 -1
  211. package/utils/index.js +10 -2
  212. package/utils/ownerDocument.d.ts +2 -2
  213. package/utils/ownerWindow.d.ts +2 -2
  214. package/utils/setRef.d.ts +2 -2
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.zhTW = exports.zhHK = exports.zhCN = exports.viVN = exports.ukUA = exports.trTR = exports.thTH = exports.svSE = exports.skSK = exports.siLK = exports.ruRU = exports.roRO = exports.ptPT = exports.ptBR = exports.plPL = exports.nlNL = exports.nbNO = exports.kzKZ = exports.koKR = exports.khKH = exports.jaJP = exports.itIT = exports.isIS = exports.idID = exports.hyAM = exports.huHU = exports.hiIN = exports.heIL = exports.frFR = exports.fiFI = exports.faIR = exports.etEE = exports.esES = exports.enUS = exports.elGR = exports.deDE = exports.daDK = exports.csCZ = exports.caES = exports.bnBD = exports.bgBG = exports.azAZ = exports.arSD = exports.arEG = exports.amET = void 0;
6
+ exports.zhTW = exports.zhHK = exports.zhCN = exports.viVN = exports.ukUA = exports.trTR = exports.thTH = exports.svSE = exports.srRS = exports.skSK = exports.siLK = exports.ruRU = exports.roRO = exports.ptPT = exports.ptBR = exports.plPL = exports.nlNL = exports.nbNO = exports.mkMK = exports.kzKZ = exports.koKR = exports.khKH = exports.jaJP = exports.itIT = exports.isIS = exports.idID = exports.hyAM = exports.huHU = exports.hrHR = exports.hiIN = exports.heIL = exports.frFR = exports.fiFI = exports.faIR = exports.etEE = exports.esES = exports.enUS = exports.elGR = exports.deDE = exports.daDK = exports.csCZ = exports.caES = exports.bnBD = exports.bgBG = exports.azAZ = exports.arSD = exports.arEG = exports.amET = void 0;
7
7
  const amET = {
8
8
  components: {
9
9
  MuiBreadcrumbs: {
@@ -1524,8 +1524,99 @@ const hiIN = {
1524
1524
  }
1525
1525
  }
1526
1526
  }
1527
- };
1527
+ }; // Croatian - Hrvatski
1528
+
1528
1529
  exports.hiIN = hiIN;
1530
+ const hrHR = {
1531
+ components: {
1532
+ MuiBreadcrumbs: {
1533
+ defaultProps: {
1534
+ expandText: 'Pokaži putanju'
1535
+ }
1536
+ },
1537
+ MuiTablePagination: {
1538
+ defaultProps: {
1539
+ getItemAriaLabel: type => {
1540
+ if (type === 'first') {
1541
+ return 'Idi na prvu stranicu';
1542
+ }
1543
+
1544
+ if (type === 'last') {
1545
+ return 'Idi na posljednju stranicu';
1546
+ }
1547
+
1548
+ if (type === 'next') {
1549
+ return 'Idi na sljedeću stranicu';
1550
+ } // if (type === 'previous') {
1551
+
1552
+
1553
+ return 'Idi na prethodnu stranicu';
1554
+ },
1555
+ labelRowsPerPage: 'Redova po stranici:',
1556
+ labelDisplayedRows: ({
1557
+ from,
1558
+ to,
1559
+ count
1560
+ }) => `${from}–${to} od ${count !== -1 ? count : `više nego ${to}`}`
1561
+ }
1562
+ },
1563
+ MuiRating: {
1564
+ defaultProps: {
1565
+ getLabelText: value => {
1566
+ const lastDigit = value % 10;
1567
+ const lastTwoDigits = value % 100;
1568
+
1569
+ if ([2, 3, 4].includes(lastDigit) && ![12, 13, 14].includes(lastTwoDigits)) {
1570
+ return 'Zvijezde';
1571
+ }
1572
+
1573
+ return 'Zvijezda';
1574
+ },
1575
+ emptyLabelText: 'Prazno'
1576
+ }
1577
+ },
1578
+ MuiAutocomplete: {
1579
+ defaultProps: {
1580
+ clearText: 'Briši',
1581
+ closeText: 'Zatvori',
1582
+ loadingText: 'Učitavanje…',
1583
+ noOptionsText: 'Nema opcija',
1584
+ openText: 'Otvori'
1585
+ }
1586
+ },
1587
+ MuiAlert: {
1588
+ defaultProps: {
1589
+ closeText: 'Zatvori'
1590
+ }
1591
+ },
1592
+ MuiPagination: {
1593
+ defaultProps: {
1594
+ 'aria-label': 'Navigacija po stranicama',
1595
+ getItemAriaLabel: (type, page, selected) => {
1596
+ if (type === 'page') {
1597
+ return `${selected ? '' : 'Idi na '}stranicu ${page}`;
1598
+ }
1599
+
1600
+ if (type === 'first') {
1601
+ return 'Idi na prvu stranicu';
1602
+ }
1603
+
1604
+ if (type === 'last') {
1605
+ return 'Idi na zadnju stranicu';
1606
+ }
1607
+
1608
+ if (type === 'next') {
1609
+ return 'Idi na sljedeću stranicu';
1610
+ } // if (type === 'previous') {
1611
+
1612
+
1613
+ return 'Idi na prethodnu stranicu';
1614
+ }
1615
+ }
1616
+ }
1617
+ }
1618
+ };
1619
+ exports.hrHR = hrHR;
1529
1620
  const huHU = {
1530
1621
  components: {
1531
1622
  MuiBreadcrumbs: {
@@ -2224,8 +2315,93 @@ const kzKZ = {
2224
2315
  }
2225
2316
  }
2226
2317
  }
2227
- };
2318
+ }; // Macedonian - Македонски
2319
+
2228
2320
  exports.kzKZ = kzKZ;
2321
+ const mkMK = {
2322
+ components: {
2323
+ MuiBreadcrumbs: {
2324
+ defaultProps: {
2325
+ expandText: 'Прикажи патека'
2326
+ }
2327
+ },
2328
+ MuiTablePagination: {
2329
+ defaultProps: {
2330
+ getItemAriaLabel: type => {
2331
+ if (type === 'first') {
2332
+ return 'Оди на прва страница';
2333
+ }
2334
+
2335
+ if (type === 'last') {
2336
+ return 'Оди на последна страница';
2337
+ }
2338
+
2339
+ if (type === 'next') {
2340
+ return 'Оди на следна страница';
2341
+ } // if (type === 'previous') {
2342
+
2343
+
2344
+ return 'Оди на предходна страница';
2345
+ },
2346
+ labelRowsPerPage: 'Редови по страница:',
2347
+ labelDisplayedRows: ({
2348
+ from,
2349
+ to,
2350
+ count
2351
+ }) => `${from}–${to} од ${count !== -1 ? count : `повеќе од ${to}`}`
2352
+ }
2353
+ },
2354
+ MuiRating: {
2355
+ defaultProps: {
2356
+ getLabelText: value => {
2357
+ const lastDigit = value % 10;
2358
+ return `${value} Ѕвезд${lastDigit === 1 ? 'а' : 'и'}`;
2359
+ },
2360
+ emptyLabelText: 'Празно'
2361
+ }
2362
+ },
2363
+ MuiAutocomplete: {
2364
+ defaultProps: {
2365
+ clearText: 'Избриши',
2366
+ closeText: 'Затвори',
2367
+ loadingText: 'Се презема',
2368
+ noOptionsText: 'Нема опција',
2369
+ openText: 'Отвори'
2370
+ }
2371
+ },
2372
+ MuiAlert: {
2373
+ defaultProps: {
2374
+ closeText: 'Затвори'
2375
+ }
2376
+ },
2377
+ MuiPagination: {
2378
+ defaultProps: {
2379
+ 'aria-label': 'Навигација низ страници',
2380
+ getItemAriaLabel: (type, page, selected) => {
2381
+ if (type === 'page') {
2382
+ return `${selected ? '' : 'Оди на '}страница ${page}`;
2383
+ }
2384
+
2385
+ if (type === 'first') {
2386
+ return 'Оди на прва страница';
2387
+ }
2388
+
2389
+ if (type === 'last') {
2390
+ return 'Оди на последна страница';
2391
+ }
2392
+
2393
+ if (type === 'next') {
2394
+ return 'Оди на следна страница';
2395
+ } // if (type === 'previous') {
2396
+
2397
+
2398
+ return 'Оди на предходна страница';
2399
+ }
2400
+ }
2401
+ }
2402
+ }
2403
+ };
2404
+ exports.mkMK = mkMK;
2229
2405
  const nbNO = {
2230
2406
  components: {
2231
2407
  MuiBreadcrumbs: {
@@ -2718,8 +2894,99 @@ const roRO = {
2718
2894
  }
2719
2895
  }
2720
2896
  }
2721
- };
2897
+ }; // Serbian - Srpski
2898
+
2722
2899
  exports.roRO = roRO;
2900
+ const srRS = {
2901
+ components: {
2902
+ MuiBreadcrumbs: {
2903
+ defaultProps: {
2904
+ expandText: 'Pokaži putanju'
2905
+ }
2906
+ },
2907
+ MuiTablePagination: {
2908
+ defaultProps: {
2909
+ getItemAriaLabel: type => {
2910
+ if (type === 'first') {
2911
+ return 'Idi na prvu stranicu';
2912
+ }
2913
+
2914
+ if (type === 'last') {
2915
+ return 'Idi na poslednju stranicu';
2916
+ }
2917
+
2918
+ if (type === 'next') {
2919
+ return 'Idi na sledeću stranicu';
2920
+ } // if (type === 'previous') {
2921
+
2922
+
2923
+ return 'Idi na prethodnu stranicu';
2924
+ },
2925
+ labelRowsPerPage: 'Redova po stranici:',
2926
+ labelDisplayedRows: ({
2927
+ from,
2928
+ to,
2929
+ count
2930
+ }) => `${from}–${to} od ${count !== -1 ? count : `više nego ${to}`}`
2931
+ }
2932
+ },
2933
+ MuiRating: {
2934
+ defaultProps: {
2935
+ getLabelText: value => {
2936
+ const lastDigit = value % 10;
2937
+ const lastTwoDigits = value % 100;
2938
+
2939
+ if ([2, 3, 4].includes(lastDigit) && ![12, 13, 14].includes(lastTwoDigits)) {
2940
+ return 'Zvezde';
2941
+ }
2942
+
2943
+ return 'Zvezda';
2944
+ },
2945
+ emptyLabelText: 'Prazno'
2946
+ }
2947
+ },
2948
+ MuiAutocomplete: {
2949
+ defaultProps: {
2950
+ clearText: 'Briši',
2951
+ closeText: 'Zatvori',
2952
+ loadingText: 'Učitavanje…',
2953
+ noOptionsText: 'Nema opcija',
2954
+ openText: 'Otvori'
2955
+ }
2956
+ },
2957
+ MuiAlert: {
2958
+ defaultProps: {
2959
+ closeText: 'Zatvori'
2960
+ }
2961
+ },
2962
+ MuiPagination: {
2963
+ defaultProps: {
2964
+ 'aria-label': 'Navigacija po stranicama',
2965
+ getItemAriaLabel: (type, page, selected) => {
2966
+ if (type === 'page') {
2967
+ return `${selected ? '' : 'Idi na '}stranicu ${page}`;
2968
+ }
2969
+
2970
+ if (type === 'first') {
2971
+ return 'Idi na prvu stranicu';
2972
+ }
2973
+
2974
+ if (type === 'last') {
2975
+ return 'Idi na zadnju stranicu';
2976
+ }
2977
+
2978
+ if (type === 'next') {
2979
+ return 'Idi na sledeću stranicu';
2980
+ } // if (type === 'previous') {
2981
+
2982
+
2983
+ return 'Idi na prethodnu stranicu';
2984
+ }
2985
+ }
2986
+ }
2987
+ }
2988
+ };
2989
+ exports.srRS = srRS;
2723
2990
  const ruRU = {
2724
2991
  components: {
2725
2992
  MuiBreadcrumbs: {
@@ -8,6 +8,7 @@ exports.default = void 0;
8
8
  // like global values in the browser.
9
9
  const zIndex = {
10
10
  mobileStepper: 1000,
11
+ fab: 1050,
11
12
  speedDial: 1050,
12
13
  appBar: 1100,
13
14
  drawer: 1200,
@@ -65,12 +65,7 @@ Object.defineProperty(exports, "setRef", {
65
65
  return _setRef.default;
66
66
  }
67
67
  });
68
- Object.defineProperty(exports, "unstable_ClassNameGenerator", {
69
- enumerable: true,
70
- get: function () {
71
- return _base.unstable_ClassNameGenerator;
72
- }
73
- });
68
+ exports.unstable_ClassNameGenerator = void 0;
74
69
  Object.defineProperty(exports, "unstable_useEnhancedEffect", {
75
70
  enumerable: true,
76
71
  get: function () {
@@ -114,6 +109,8 @@ Object.defineProperty(exports, "useIsFocusVisible", {
114
109
  }
115
110
  });
116
111
 
112
+ var _className = require("@mui/base/className");
113
+
117
114
  var _capitalize = _interopRequireDefault(require("./capitalize"));
118
115
 
119
116
  var _createChainedFunction = _interopRequireDefault(require("./createChainedFunction"));
@@ -148,4 +145,13 @@ var _useForkRef = _interopRequireDefault(require("./useForkRef"));
148
145
 
149
146
  var _useIsFocusVisible = _interopRequireDefault(require("./useIsFocusVisible"));
150
147
 
151
- var _base = require("@mui/base");
148
+ // TODO: remove this export once ClassNameGenerator is stable
149
+ // eslint-disable-next-line @typescript-eslint/naming-convention
150
+ const unstable_ClassNameGenerator = {
151
+ configure: generator => {
152
+ console.warn(['MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.', '', "You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead", '', 'The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401', '', 'The updated documentation: https://mui.com/guides/classname-generator/'].join('\n'));
153
+
154
+ _className.unstable_ClassNameGenerator.configure(generator);
155
+ }
156
+ };
157
+ exports.unstable_ClassNameGenerator = unstable_ClassNameGenerator;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/material",
3
- "version": "5.4.4",
3
+ "version": "5.5.2",
4
4
  "private": false,
5
5
  "author": "MUI Team",
6
6
  "description": "Quickly build beautiful React apps. MUI is a simple and customizable component library to build faster, beautiful, and more accessible React applications. Follow your own design system, or start with Material Design.",
@@ -46,13 +46,13 @@
46
46
  },
47
47
  "dependencies": {
48
48
  "@babel/runtime": "^7.17.2",
49
- "@mui/base": "5.0.0-alpha.70",
50
- "@mui/system": "^5.4.4",
51
- "@mui/types": "^7.1.2",
49
+ "@mui/base": "5.0.0-alpha.73",
50
+ "@mui/system": "^5.5.2",
51
+ "@mui/types": "^7.1.3",
52
52
  "@mui/utils": "^5.4.4",
53
53
  "@types/react-transition-group": "^4.4.4",
54
54
  "clsx": "^1.1.1",
55
- "csstype": "^3.0.10",
55
+ "csstype": "^3.0.11",
56
56
  "hoist-non-react-statics": "^3.3.2",
57
57
  "prop-types": "^15.7.2",
58
58
  "react-is": "^17.0.2",
@@ -368,6 +368,9 @@ export interface Components<Theme = unknown> {
368
368
  styleOverrides?: ComponentsOverrides<Theme>['MuiPaper'];
369
369
  variants?: ComponentsVariants['MuiPaper'];
370
370
  };
371
+ MuiPopper?: {
372
+ defaultProps?: ComponentsProps['MuiPopper'];
373
+ };
371
374
  MuiPopover?: {
372
375
  defaultProps?: ComponentsProps['MuiPopover'];
373
376
  styleOverrides?: ComponentsOverrides<Theme>['MuiPopover'];
package/styles/props.d.ts CHANGED
@@ -115,6 +115,7 @@ import { ToolbarProps } from '../Toolbar';
115
115
  import { TooltipProps } from '../Tooltip';
116
116
  import { TouchRippleProps } from '../ButtonBase/TouchRipple';
117
117
  import { TypographyProps } from '../Typography';
118
+ import { PopperProps } from '../Popper';
118
119
 
119
120
  export type ComponentsProps = {
120
121
  [Name in keyof ComponentsPropsList]?: Partial<ComponentsPropsList[Name]>;
@@ -195,6 +196,7 @@ export interface ComponentsPropsList {
195
196
  MuiPagination: PaginationProps;
196
197
  MuiPaginationItem: PaginationItemProps;
197
198
  MuiPaper: PaperProps;
199
+ MuiPopper: PopperProps;
198
200
  MuiPopover: PopoverProps;
199
201
  MuiRadio: RadioProps;
200
202
  MuiRadioGroup: RadioGroupProps;
@@ -6,6 +6,7 @@ export interface ZIndex {
6
6
  modal: number;
7
7
  snackbar: number;
8
8
  tooltip: number;
9
+ fab: number;
9
10
  }
10
11
 
11
12
  export type ZIndexOptions = Partial<ZIndex>;
package/styles/zIndex.js CHANGED
@@ -2,6 +2,7 @@
2
2
  // like global values in the browser.
3
3
  const zIndex = {
4
4
  mobileStepper: 1000,
5
+ fab: 1050,
5
6
  speedDial: 1050,
6
7
  appBar: 1100,
7
8
  drawer: 1200,
@@ -1 +1 @@
1
- export * from './transition';
1
+ export * from './transition';
@@ -1,13 +1,13 @@
1
- import { TransitionProps as _TransitionProps, TransitionActions } from 'react-transition-group/Transition';
2
- import * as React from 'react';
3
- export declare type TransitionHandlerKeys = 'onEnter' | 'onEntering' | 'onEntered' | 'onExit' | 'onExiting' | 'onExited';
4
- export declare type TransitionHandlerProps = Pick<_TransitionProps, TransitionHandlerKeys>;
5
- export interface EasingProps {
6
- easing: string | {
7
- enter?: string;
8
- exit?: string;
9
- };
10
- }
11
- export declare type TransitionKeys = 'in' | 'mountOnEnter' | 'unmountOnExit' | 'timeout' | 'easing' | 'addEndListener' | TransitionHandlerKeys;
12
- export interface TransitionProps extends TransitionActions, Partial<Pick<_TransitionProps & EasingProps, TransitionKeys>>, React.HTMLAttributes<HTMLElement> {
13
- }
1
+ import { TransitionProps as _TransitionProps, TransitionActions } from 'react-transition-group/Transition';
2
+ import * as React from 'react';
3
+ export declare type TransitionHandlerKeys = 'onEnter' | 'onEntering' | 'onEntered' | 'onExit' | 'onExiting' | 'onExited';
4
+ export declare type TransitionHandlerProps = Pick<_TransitionProps, TransitionHandlerKeys>;
5
+ export interface EasingProps {
6
+ easing: string | {
7
+ enter?: string;
8
+ exit?: string;
9
+ };
10
+ }
11
+ export declare type TransitionKeys = 'in' | 'mountOnEnter' | 'unmountOnExit' | 'timeout' | 'easing' | 'addEndListener' | TransitionHandlerKeys;
12
+ export interface TransitionProps extends TransitionActions, Partial<Pick<_TransitionProps & EasingProps, TransitionKeys>>, React.HTMLAttributes<HTMLElement> {
13
+ }
@@ -1,23 +1,23 @@
1
- import * as React from 'react';
2
- export declare const reflow: (node: Element) => number;
3
- interface ComponentProps {
4
- easing: string | {
5
- enter?: string;
6
- exit?: string;
7
- } | undefined;
8
- style: React.CSSProperties | undefined;
9
- timeout: number | {
10
- enter?: number;
11
- exit?: number;
12
- };
13
- }
14
- interface Options {
15
- mode: 'enter' | 'exit';
16
- }
17
- interface TransitionProps {
18
- duration: string | number;
19
- easing: string | undefined;
20
- delay: string | undefined;
21
- }
22
- export declare function getTransitionProps(props: ComponentProps, options: Options): TransitionProps;
23
- export {};
1
+ import * as React from 'react';
2
+ export declare const reflow: (node: Element) => number;
3
+ interface ComponentProps {
4
+ easing: string | {
5
+ enter?: string;
6
+ exit?: string;
7
+ } | undefined;
8
+ style: React.CSSProperties | undefined;
9
+ timeout: number | {
10
+ enter?: number;
11
+ exit?: number;
12
+ };
13
+ }
14
+ interface Options {
15
+ mode: 'enter' | 'exit';
16
+ }
17
+ interface TransitionProps {
18
+ duration: string | number;
19
+ easing: string | undefined;
20
+ delay: string | undefined;
21
+ }
22
+ export declare function getTransitionProps(props: ComponentProps, options: Options): TransitionProps;
23
+ export {};