@mui/material 5.2.1 → 5.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (634) hide show
  1. package/Accordion/Accordion.d.ts +1 -1
  2. package/Accordion/Accordion.js +2 -2
  3. package/Accordion/accordionClasses.d.ts +18 -18
  4. package/AccordionActions/AccordionActions.js +1 -1
  5. package/AccordionActions/accordionActionsClasses.d.ts +10 -10
  6. package/AccordionDetails/AccordionDetails.js +1 -1
  7. package/AccordionDetails/accordionDetailsClasses.d.ts +8 -8
  8. package/AccordionSummary/AccordionSummary.js +2 -2
  9. package/AccordionSummary/accordionSummaryClasses.d.ts +22 -22
  10. package/Alert/Alert.js +1 -3
  11. package/Alert/alertClasses.d.ts +44 -44
  12. package/AlertTitle/AlertTitle.js +1 -1
  13. package/AlertTitle/alertTitleClasses.d.ts +8 -8
  14. package/AppBar/AppBar.js +1 -1
  15. package/AppBar/appBarClasses.d.ts +28 -28
  16. package/Autocomplete/Autocomplete.js +1 -1
  17. package/Autocomplete/autocompleteClasses.d.ts +54 -54
  18. package/Avatar/Avatar.d.ts +1 -1
  19. package/Avatar/Avatar.js +1 -1
  20. package/Avatar/avatarClasses.d.ts +20 -20
  21. package/AvatarGroup/AvatarGroup.d.ts +5 -0
  22. package/AvatarGroup/AvatarGroup.js +20 -5
  23. package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
  24. package/Backdrop/Backdrop.js +1 -1
  25. package/Badge/Badge.js +17 -4
  26. package/BottomNavigation/BottomNavigation.js +1 -1
  27. package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
  28. package/BottomNavigationAction/BottomNavigationAction.js +1 -1
  29. package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
  30. package/Breadcrumbs/Breadcrumbs.d.ts +1 -1
  31. package/Breadcrumbs/Breadcrumbs.js +1 -1
  32. package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
  33. package/Button/Button.js +16 -35
  34. package/Button/buttonClasses.d.ts +76 -76
  35. package/ButtonBase/ButtonBase.d.ts +1 -1
  36. package/ButtonBase/ButtonBase.js +2 -2
  37. package/ButtonBase/buttonBaseClasses.d.ts +12 -12
  38. package/ButtonBase/touchRippleClasses.d.ts +20 -20
  39. package/ButtonGroup/ButtonGroup.js +1 -1
  40. package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
  41. package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
  42. package/CHANGELOG.md +279 -1
  43. package/Card/Card.js +1 -1
  44. package/Card/cardClasses.d.ts +8 -8
  45. package/CardActionArea/CardActionArea.js +1 -1
  46. package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
  47. package/CardActions/CardActions.js +1 -1
  48. package/CardActions/cardActionsClasses.d.ts +10 -10
  49. package/CardContent/CardContent.js +1 -1
  50. package/CardContent/cardContentClasses.d.ts +8 -8
  51. package/CardHeader/CardHeader.js +1 -1
  52. package/CardHeader/cardHeaderClasses.d.ts +18 -18
  53. package/CardMedia/CardMedia.js +1 -1
  54. package/CardMedia/cardMediaClasses.d.ts +12 -12
  55. package/Checkbox/Checkbox.js +1 -1
  56. package/Checkbox/checkboxClasses.d.ts +18 -18
  57. package/Chip/Chip.js +1 -1
  58. package/Chip/chipClasses.d.ts +80 -80
  59. package/CircularProgress/CircularProgress.js +1 -1
  60. package/CircularProgress/circularProgressClasses.d.ts +26 -26
  61. package/ClickAwayListener/index.d.ts +2 -2
  62. package/Collapse/Collapse.d.ts +1 -1
  63. package/Collapse/Collapse.js +1 -1
  64. package/Collapse/collapseClasses.d.ts +18 -18
  65. package/Container/Container.js +1 -1
  66. package/Container/containerClasses.d.ts +22 -22
  67. package/CssBaseline/CssBaseline.d.ts +2 -2
  68. package/CssBaseline/CssBaseline.js +1 -1
  69. package/Dialog/Dialog.d.ts +1 -1
  70. package/Dialog/Dialog.js +2 -2
  71. package/Dialog/DialogContext.d.ts +6 -6
  72. package/Dialog/dialogClasses.d.ts +36 -36
  73. package/DialogActions/DialogActions.js +1 -1
  74. package/DialogActions/dialogActionsClasses.d.ts +10 -10
  75. package/DialogContent/DialogContent.js +1 -1
  76. package/DialogContent/dialogContentClasses.d.ts +10 -10
  77. package/DialogContentText/DialogContentText.js +1 -1
  78. package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
  79. package/DialogTitle/DialogTitle.js +1 -1
  80. package/DialogTitle/dialogTitleClasses.d.ts +8 -8
  81. package/Divider/Divider.js +1 -1
  82. package/Divider/dividerClasses.d.ts +34 -34
  83. package/Drawer/Drawer.js +1 -1
  84. package/Drawer/drawerClasses.d.ts +30 -30
  85. package/Fab/Fab.js +1 -1
  86. package/Fab/fabClasses.d.ts +26 -26
  87. package/Fade/Fade.d.ts +1 -1
  88. package/FilledInput/FilledInput.js +1 -1
  89. package/FilledInput/filledInputClasses.d.ts +40 -40
  90. package/FormControl/FormControl.js +1 -1
  91. package/FormControl/formControlClasses.d.ts +14 -14
  92. package/FormControlLabel/FormControlLabel.js +1 -1
  93. package/FormControlLabel/formControlLabelClasses.d.ts +18 -18
  94. package/FormGroup/FormGroup.js +1 -1
  95. package/FormGroup/formGroupClasses.d.ts +10 -10
  96. package/FormHelperText/FormHelperText.js +1 -1
  97. package/FormHelperText/formHelperTextClasses.d.ts +22 -22
  98. package/FormLabel/FormLabel.js +1 -1
  99. package/FormLabel/formLabelClasses.d.ts +22 -22
  100. package/GlobalStyles/GlobalStyles.d.ts +2 -1
  101. package/Grid/Grid.js +98 -69
  102. package/Grid/gridClasses.d.ts +48 -48
  103. package/Grow/Grow.d.ts +1 -1
  104. package/Icon/Icon.js +1 -1
  105. package/Icon/iconClasses.d.ts +24 -24
  106. package/IconButton/IconButton.js +1 -1
  107. package/IconButton/iconButtonClasses.d.ts +26 -26
  108. package/ImageList/ImageList.js +1 -1
  109. package/ImageList/imageListClasses.d.ts +16 -16
  110. package/ImageListItem/ImageListItem.js +1 -1
  111. package/ImageListItem/imageListItemClasses.d.ts +18 -18
  112. package/ImageListItemBar/ImageListItemBar.js +1 -1
  113. package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
  114. package/Input/Input.js +1 -1
  115. package/Input/inputClasses.d.ts +34 -34
  116. package/InputAdornment/InputAdornment.js +1 -1
  117. package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
  118. package/InputBase/InputBase.d.ts +6 -0
  119. package/InputBase/InputBase.js +11 -3
  120. package/InputBase/inputBaseClasses.d.ts +44 -44
  121. package/InputLabel/InputLabel.js +1 -1
  122. package/InputLabel/inputLabelClasses.d.ts +32 -32
  123. package/LinearProgress/LinearProgress.js +1 -1
  124. package/LinearProgress/linearProgressClasses.d.ts +42 -42
  125. package/Link/Link.js +1 -1
  126. package/Link/linkClasses.d.ts +18 -18
  127. package/List/List.d.ts +12 -2
  128. package/List/List.js +1 -1
  129. package/List/listClasses.d.ts +14 -14
  130. package/ListItem/ListItem.d.ts +1 -1
  131. package/ListItem/ListItem.js +1 -1
  132. package/ListItem/listItemClasses.d.ts +30 -30
  133. package/ListItemAvatar/ListItemAvatar.js +1 -1
  134. package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
  135. package/ListItemButton/ListItemButton.d.ts +1 -1
  136. package/ListItemButton/ListItemButton.js +2 -2
  137. package/ListItemButton/listItemButtonClasses.d.ts +22 -22
  138. package/ListItemIcon/ListItemIcon.js +1 -1
  139. package/ListItemIcon/listItemIconClasses.d.ts +10 -10
  140. package/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -1
  141. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
  142. package/ListItemText/ListItemText.js +1 -1
  143. package/ListItemText/listItemTextClasses.d.ts +18 -18
  144. package/ListSubheader/ListSubheader.js +1 -1
  145. package/ListSubheader/listSubheaderClasses.d.ts +18 -18
  146. package/Menu/Menu.d.ts +1 -1
  147. package/Menu/Menu.js +2 -2
  148. package/Menu/menuClasses.d.ts +12 -12
  149. package/MenuItem/MenuItem.d.ts +1 -1
  150. package/MenuItem/MenuItem.js +2 -2
  151. package/MenuItem/menuItemClasses.d.ts +20 -20
  152. package/MenuList/MenuList.d.ts +47 -36
  153. package/MobileStepper/MobileStepper.js +1 -1
  154. package/MobileStepper/mobileStepperClasses.d.ts +22 -22
  155. package/Modal/Modal.js +1 -1
  156. package/NativeSelect/NativeSelect.js +1 -1
  157. package/NativeSelect/nativeSelectClasses.d.ts +32 -32
  158. package/OutlinedInput/OutlinedInput.js +15 -2
  159. package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
  160. package/Pagination/Pagination.js +1 -1
  161. package/Pagination/paginationClasses.d.ts +14 -14
  162. package/PaginationItem/PaginationItem.js +1 -1
  163. package/PaginationItem/paginationItemClasses.d.ts +42 -42
  164. package/Paper/Paper.js +1 -1
  165. package/Paper/paperClasses.d.ts +39 -39
  166. package/Popover/Popover.d.ts +1 -1
  167. package/Popover/Popover.js +2 -2
  168. package/Popover/popoverClasses.d.ts +10 -10
  169. package/Popper/Popper.d.ts +17 -17
  170. package/README.md +9 -13
  171. package/Radio/Radio.js +1 -1
  172. package/Radio/radioClasses.d.ts +16 -16
  173. package/RadioGroup/RadioGroupContext.d.ts +11 -11
  174. package/RadioGroup/useRadioGroup.d.ts +4 -4
  175. package/Rating/Rating.js +1 -1
  176. package/Rating/ratingClasses.d.ts +40 -40
  177. package/ScopedCssBaseline/ScopedCssBaseline.d.ts +1 -1
  178. package/ScopedCssBaseline/ScopedCssBaseline.js +1 -1
  179. package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
  180. package/Select/Select.js +1 -1
  181. package/Select/SelectInput.js +13 -1
  182. package/Select/selectClasses.d.ts +30 -30
  183. package/Skeleton/Skeleton.js +1 -1
  184. package/Skeleton/skeletonClasses.d.ts +24 -24
  185. package/Slide/Slide.d.ts +1 -1
  186. package/Slider/Slider.js +1 -1
  187. package/Snackbar/Snackbar.d.ts +5 -5
  188. package/Snackbar/Snackbar.js +62 -6
  189. package/Snackbar/snackbarClasses.d.ts +20 -20
  190. package/SnackbarContent/SnackbarContent.js +1 -1
  191. package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
  192. package/SpeedDial/SpeedDial.d.ts +1 -1
  193. package/SpeedDial/SpeedDial.js +2 -2
  194. package/SpeedDial/speedDialClasses.d.ts +22 -22
  195. package/SpeedDialAction/SpeedDialAction.js +1 -1
  196. package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
  197. package/SpeedDialIcon/SpeedDialIcon.js +1 -1
  198. package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
  199. package/Stack/Stack.js +1 -1
  200. package/Step/Step.js +1 -1
  201. package/Step/stepClasses.d.ts +16 -16
  202. package/StepButton/StepButton.js +1 -1
  203. package/StepButton/stepButtonClasses.d.ts +14 -14
  204. package/StepConnector/StepConnector.js +1 -1
  205. package/StepConnector/stepConnectorClasses.d.ts +26 -26
  206. package/StepContent/StepContent.d.ts +1 -1
  207. package/StepContent/StepContent.js +2 -2
  208. package/StepContent/stepContentClasses.d.ts +12 -12
  209. package/StepIcon/StepIcon.js +1 -1
  210. package/StepIcon/stepIconClasses.d.ts +16 -16
  211. package/StepLabel/StepLabel.js +1 -1
  212. package/StepLabel/stepLabelClasses.d.ts +28 -28
  213. package/Stepper/Stepper.js +1 -1
  214. package/Stepper/stepperClasses.d.ts +14 -14
  215. package/SvgIcon/SvgIcon.js +1 -1
  216. package/SvgIcon/svgIconClasses.d.ts +24 -24
  217. package/Switch/Switch.js +1 -1
  218. package/Switch/switchClasses.d.ts +32 -32
  219. package/Tab/Tab.js +1 -1
  220. package/Tab/tabClasses.d.ts +26 -26
  221. package/TabScrollButton/TabScrollButton.js +1 -1
  222. package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
  223. package/Table/Table.js +1 -1
  224. package/Table/tableClasses.d.ts +10 -10
  225. package/TableBody/TableBody.js +1 -1
  226. package/TableBody/tableBodyClasses.d.ts +8 -8
  227. package/TableCell/TableCell.js +1 -1
  228. package/TableCell/tableCellClasses.d.ts +32 -32
  229. package/TableContainer/TableContainer.js +1 -1
  230. package/TableContainer/tableContainerClasses.d.ts +8 -8
  231. package/TableFooter/TableFooter.js +1 -1
  232. package/TableFooter/tableFooterClasses.d.ts +8 -8
  233. package/TableHead/TableHead.js +1 -1
  234. package/TableHead/tableHeadClasses.d.ts +8 -8
  235. package/TablePagination/TablePagination.js +1 -1
  236. package/TablePagination/tablePaginationClasses.d.ts +28 -28
  237. package/TableRow/TableRow.js +1 -1
  238. package/TableRow/tableRowClasses.d.ts +16 -16
  239. package/TableSortLabel/TableSortLabel.js +1 -1
  240. package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
  241. package/Tabs/Tabs.d.ts +1 -1
  242. package/Tabs/Tabs.js +1 -1
  243. package/Tabs/tabsClasses.d.ts +32 -32
  244. package/TextField/TextField.js +6 -12
  245. package/TextField/textFieldClasses.d.ts +8 -8
  246. package/ToggleButton/ToggleButton.js +1 -1
  247. package/ToggleButton/toggleButtonClasses.d.ts +24 -24
  248. package/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  249. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
  250. package/Toolbar/Toolbar.js +1 -1
  251. package/Toolbar/toolbarClasses.d.ts +14 -14
  252. package/Tooltip/Tooltip.d.ts +1 -1
  253. package/Tooltip/Tooltip.js +2 -2
  254. package/Tooltip/tooltipClasses.d.ts +30 -30
  255. package/Typography/Typography.js +1 -1
  256. package/Typography/typographyClasses.d.ts +50 -50
  257. package/Zoom/Zoom.d.ts +1 -1
  258. package/darkScrollbar/index.d.ts +28 -28
  259. package/index.js +1 -1
  260. package/internal/switchBaseClasses.d.ts +12 -12
  261. package/legacy/Accordion/Accordion.js +2 -2
  262. package/legacy/AccordionActions/AccordionActions.js +1 -1
  263. package/legacy/AccordionDetails/AccordionDetails.js +1 -1
  264. package/legacy/AccordionSummary/AccordionSummary.js +2 -2
  265. package/legacy/Alert/Alert.js +1 -3
  266. package/legacy/AlertTitle/AlertTitle.js +1 -1
  267. package/legacy/AppBar/AppBar.js +1 -1
  268. package/legacy/Autocomplete/Autocomplete.js +1 -1
  269. package/legacy/Avatar/Avatar.js +1 -1
  270. package/legacy/AvatarGroup/AvatarGroup.js +19 -4
  271. package/legacy/Backdrop/Backdrop.js +1 -1
  272. package/legacy/Badge/Badge.js +19 -5
  273. package/legacy/BottomNavigation/BottomNavigation.js +1 -1
  274. package/legacy/BottomNavigationAction/BottomNavigationAction.js +1 -1
  275. package/legacy/Breadcrumbs/Breadcrumbs.js +1 -1
  276. package/legacy/Button/Button.js +23 -35
  277. package/legacy/ButtonBase/ButtonBase.js +2 -2
  278. package/legacy/ButtonGroup/ButtonGroup.js +1 -1
  279. package/legacy/Card/Card.js +1 -1
  280. package/legacy/CardActionArea/CardActionArea.js +1 -1
  281. package/legacy/CardActions/CardActions.js +1 -1
  282. package/legacy/CardContent/CardContent.js +1 -1
  283. package/legacy/CardHeader/CardHeader.js +1 -1
  284. package/legacy/CardMedia/CardMedia.js +1 -1
  285. package/legacy/Checkbox/Checkbox.js +1 -1
  286. package/legacy/Chip/Chip.js +1 -1
  287. package/legacy/CircularProgress/CircularProgress.js +1 -1
  288. package/legacy/Collapse/Collapse.js +1 -1
  289. package/legacy/Container/Container.js +1 -1
  290. package/legacy/CssBaseline/CssBaseline.js +1 -1
  291. package/legacy/Dialog/Dialog.js +2 -2
  292. package/legacy/DialogActions/DialogActions.js +1 -1
  293. package/legacy/DialogContent/DialogContent.js +1 -1
  294. package/legacy/DialogContentText/DialogContentText.js +1 -1
  295. package/legacy/DialogTitle/DialogTitle.js +1 -1
  296. package/legacy/Divider/Divider.js +1 -1
  297. package/legacy/Drawer/Drawer.js +1 -1
  298. package/legacy/Fab/Fab.js +1 -1
  299. package/legacy/FilledInput/FilledInput.js +1 -1
  300. package/legacy/FormControl/FormControl.js +1 -1
  301. package/legacy/FormControlLabel/FormControlLabel.js +1 -1
  302. package/legacy/FormGroup/FormGroup.js +1 -1
  303. package/legacy/FormHelperText/FormHelperText.js +1 -1
  304. package/legacy/FormLabel/FormLabel.js +1 -1
  305. package/legacy/Grid/Grid.js +109 -81
  306. package/legacy/Icon/Icon.js +1 -1
  307. package/legacy/IconButton/IconButton.js +1 -1
  308. package/legacy/ImageList/ImageList.js +1 -1
  309. package/legacy/ImageListItem/ImageListItem.js +1 -1
  310. package/legacy/ImageListItemBar/ImageListItemBar.js +1 -1
  311. package/legacy/Input/Input.js +1 -1
  312. package/legacy/InputAdornment/InputAdornment.js +1 -1
  313. package/legacy/InputBase/InputBase.js +11 -3
  314. package/legacy/InputLabel/InputLabel.js +1 -1
  315. package/legacy/LinearProgress/LinearProgress.js +1 -1
  316. package/legacy/Link/Link.js +1 -1
  317. package/legacy/List/List.js +1 -1
  318. package/legacy/ListItem/ListItem.js +1 -1
  319. package/legacy/ListItemAvatar/ListItemAvatar.js +1 -1
  320. package/legacy/ListItemButton/ListItemButton.js +2 -2
  321. package/legacy/ListItemIcon/ListItemIcon.js +1 -1
  322. package/legacy/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -1
  323. package/legacy/ListItemText/ListItemText.js +1 -1
  324. package/legacy/ListSubheader/ListSubheader.js +1 -1
  325. package/legacy/Menu/Menu.js +2 -2
  326. package/legacy/MenuItem/MenuItem.js +2 -2
  327. package/legacy/MobileStepper/MobileStepper.js +1 -1
  328. package/legacy/Modal/Modal.js +1 -1
  329. package/legacy/NativeSelect/NativeSelect.js +1 -1
  330. package/legacy/OutlinedInput/OutlinedInput.js +15 -2
  331. package/legacy/Pagination/Pagination.js +1 -1
  332. package/legacy/PaginationItem/PaginationItem.js +1 -1
  333. package/legacy/Paper/Paper.js +1 -1
  334. package/legacy/Popover/Popover.js +2 -2
  335. package/legacy/Radio/Radio.js +1 -1
  336. package/legacy/Rating/Rating.js +1 -1
  337. package/legacy/ScopedCssBaseline/ScopedCssBaseline.js +1 -1
  338. package/legacy/Select/Select.js +1 -1
  339. package/legacy/Select/SelectInput.js +13 -3
  340. package/legacy/Skeleton/Skeleton.js +1 -1
  341. package/legacy/Slider/Slider.js +1 -1
  342. package/legacy/Snackbar/Snackbar.js +62 -6
  343. package/legacy/SnackbarContent/SnackbarContent.js +1 -1
  344. package/legacy/SpeedDial/SpeedDial.js +2 -2
  345. package/legacy/SpeedDialAction/SpeedDialAction.js +1 -1
  346. package/legacy/SpeedDialIcon/SpeedDialIcon.js +1 -1
  347. package/legacy/Stack/Stack.js +1 -1
  348. package/legacy/Step/Step.js +1 -1
  349. package/legacy/StepButton/StepButton.js +1 -1
  350. package/legacy/StepConnector/StepConnector.js +1 -1
  351. package/legacy/StepContent/StepContent.js +2 -2
  352. package/legacy/StepIcon/StepIcon.js +1 -1
  353. package/legacy/StepLabel/StepLabel.js +1 -1
  354. package/legacy/Stepper/Stepper.js +1 -1
  355. package/legacy/SvgIcon/SvgIcon.js +1 -1
  356. package/legacy/Switch/Switch.js +1 -1
  357. package/legacy/Tab/Tab.js +1 -1
  358. package/legacy/TabScrollButton/TabScrollButton.js +1 -1
  359. package/legacy/Table/Table.js +1 -1
  360. package/legacy/TableBody/TableBody.js +1 -1
  361. package/legacy/TableCell/TableCell.js +1 -1
  362. package/legacy/TableContainer/TableContainer.js +1 -1
  363. package/legacy/TableFooter/TableFooter.js +1 -1
  364. package/legacy/TableHead/TableHead.js +1 -1
  365. package/legacy/TablePagination/TablePagination.js +1 -1
  366. package/legacy/TableRow/TableRow.js +1 -1
  367. package/legacy/TableSortLabel/TableSortLabel.js +1 -1
  368. package/legacy/Tabs/Tabs.js +1 -1
  369. package/legacy/TextField/TextField.js +6 -12
  370. package/legacy/ToggleButton/ToggleButton.js +1 -1
  371. package/legacy/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  372. package/legacy/Toolbar/Toolbar.js +1 -1
  373. package/legacy/Tooltip/Tooltip.js +2 -2
  374. package/legacy/Typography/Typography.js +1 -1
  375. package/legacy/index.js +1 -1
  376. package/legacy/locale/index.js +175 -92
  377. package/legacy/styles/adaptV4Theme.js +1 -1
  378. package/legacy/styles/responsiveFontSizes.js +1 -1
  379. package/locale/index.d.ts +67 -66
  380. package/locale/index.js +80 -0
  381. package/modern/Accordion/Accordion.js +2 -2
  382. package/modern/AccordionActions/AccordionActions.js +1 -1
  383. package/modern/AccordionDetails/AccordionDetails.js +1 -1
  384. package/modern/AccordionSummary/AccordionSummary.js +2 -2
  385. package/modern/Alert/Alert.js +1 -3
  386. package/modern/AlertTitle/AlertTitle.js +1 -1
  387. package/modern/AppBar/AppBar.js +1 -1
  388. package/modern/Autocomplete/Autocomplete.js +1 -1
  389. package/modern/Avatar/Avatar.js +1 -1
  390. package/modern/AvatarGroup/AvatarGroup.js +20 -5
  391. package/modern/Backdrop/Backdrop.js +1 -1
  392. package/modern/Badge/Badge.js +17 -4
  393. package/modern/BottomNavigation/BottomNavigation.js +1 -1
  394. package/modern/BottomNavigationAction/BottomNavigationAction.js +1 -1
  395. package/modern/Breadcrumbs/Breadcrumbs.js +1 -1
  396. package/modern/Button/Button.js +16 -35
  397. package/modern/ButtonBase/ButtonBase.js +2 -2
  398. package/modern/ButtonGroup/ButtonGroup.js +1 -1
  399. package/modern/Card/Card.js +1 -1
  400. package/modern/CardActionArea/CardActionArea.js +1 -1
  401. package/modern/CardActions/CardActions.js +1 -1
  402. package/modern/CardContent/CardContent.js +1 -1
  403. package/modern/CardHeader/CardHeader.js +1 -1
  404. package/modern/CardMedia/CardMedia.js +1 -1
  405. package/modern/Checkbox/Checkbox.js +1 -1
  406. package/modern/Chip/Chip.js +1 -1
  407. package/modern/CircularProgress/CircularProgress.js +1 -1
  408. package/modern/Collapse/Collapse.js +1 -1
  409. package/modern/Container/Container.js +1 -1
  410. package/modern/CssBaseline/CssBaseline.js +1 -1
  411. package/modern/Dialog/Dialog.js +2 -2
  412. package/modern/DialogActions/DialogActions.js +1 -1
  413. package/modern/DialogContent/DialogContent.js +1 -1
  414. package/modern/DialogContentText/DialogContentText.js +1 -1
  415. package/modern/DialogTitle/DialogTitle.js +1 -1
  416. package/modern/Divider/Divider.js +1 -1
  417. package/modern/Drawer/Drawer.js +1 -1
  418. package/modern/Fab/Fab.js +1 -1
  419. package/modern/FilledInput/FilledInput.js +1 -1
  420. package/modern/FormControl/FormControl.js +1 -1
  421. package/modern/FormControlLabel/FormControlLabel.js +1 -1
  422. package/modern/FormGroup/FormGroup.js +1 -1
  423. package/modern/FormHelperText/FormHelperText.js +1 -1
  424. package/modern/FormLabel/FormLabel.js +1 -1
  425. package/modern/Grid/Grid.js +98 -69
  426. package/modern/Icon/Icon.js +1 -1
  427. package/modern/IconButton/IconButton.js +1 -1
  428. package/modern/ImageList/ImageList.js +1 -1
  429. package/modern/ImageListItem/ImageListItem.js +1 -1
  430. package/modern/ImageListItemBar/ImageListItemBar.js +1 -1
  431. package/modern/Input/Input.js +1 -1
  432. package/modern/InputAdornment/InputAdornment.js +1 -1
  433. package/modern/InputBase/InputBase.js +11 -3
  434. package/modern/InputLabel/InputLabel.js +1 -1
  435. package/modern/LinearProgress/LinearProgress.js +1 -1
  436. package/modern/Link/Link.js +1 -1
  437. package/modern/List/List.js +1 -1
  438. package/modern/ListItem/ListItem.js +1 -1
  439. package/modern/ListItemAvatar/ListItemAvatar.js +1 -1
  440. package/modern/ListItemButton/ListItemButton.js +2 -2
  441. package/modern/ListItemIcon/ListItemIcon.js +1 -1
  442. package/modern/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -1
  443. package/modern/ListItemText/ListItemText.js +1 -1
  444. package/modern/ListSubheader/ListSubheader.js +1 -1
  445. package/modern/Menu/Menu.js +2 -2
  446. package/modern/MenuItem/MenuItem.js +2 -2
  447. package/modern/MobileStepper/MobileStepper.js +1 -1
  448. package/modern/Modal/Modal.js +1 -1
  449. package/modern/NativeSelect/NativeSelect.js +1 -1
  450. package/modern/OutlinedInput/OutlinedInput.js +15 -2
  451. package/modern/Pagination/Pagination.js +1 -1
  452. package/modern/PaginationItem/PaginationItem.js +1 -1
  453. package/modern/Paper/Paper.js +1 -1
  454. package/modern/Popover/Popover.js +2 -2
  455. package/modern/Radio/Radio.js +1 -1
  456. package/modern/Rating/Rating.js +1 -1
  457. package/modern/ScopedCssBaseline/ScopedCssBaseline.js +1 -1
  458. package/modern/Select/Select.js +1 -1
  459. package/modern/Select/SelectInput.js +13 -1
  460. package/modern/Skeleton/Skeleton.js +1 -1
  461. package/modern/Slider/Slider.js +1 -1
  462. package/modern/Snackbar/Snackbar.js +62 -6
  463. package/modern/SnackbarContent/SnackbarContent.js +1 -1
  464. package/modern/SpeedDial/SpeedDial.js +2 -2
  465. package/modern/SpeedDialAction/SpeedDialAction.js +1 -1
  466. package/modern/SpeedDialIcon/SpeedDialIcon.js +1 -1
  467. package/modern/Stack/Stack.js +1 -1
  468. package/modern/Step/Step.js +1 -1
  469. package/modern/StepButton/StepButton.js +1 -1
  470. package/modern/StepConnector/StepConnector.js +1 -1
  471. package/modern/StepContent/StepContent.js +2 -2
  472. package/modern/StepIcon/StepIcon.js +1 -1
  473. package/modern/StepLabel/StepLabel.js +1 -1
  474. package/modern/Stepper/Stepper.js +1 -1
  475. package/modern/SvgIcon/SvgIcon.js +1 -1
  476. package/modern/Switch/Switch.js +1 -1
  477. package/modern/Tab/Tab.js +1 -1
  478. package/modern/TabScrollButton/TabScrollButton.js +1 -1
  479. package/modern/Table/Table.js +1 -1
  480. package/modern/TableBody/TableBody.js +1 -1
  481. package/modern/TableCell/TableCell.js +1 -1
  482. package/modern/TableContainer/TableContainer.js +1 -1
  483. package/modern/TableFooter/TableFooter.js +1 -1
  484. package/modern/TableHead/TableHead.js +1 -1
  485. package/modern/TablePagination/TablePagination.js +1 -1
  486. package/modern/TableRow/TableRow.js +1 -1
  487. package/modern/TableSortLabel/TableSortLabel.js +1 -1
  488. package/modern/Tabs/Tabs.js +1 -1
  489. package/modern/TextField/TextField.js +6 -10
  490. package/modern/ToggleButton/ToggleButton.js +1 -1
  491. package/modern/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  492. package/modern/Toolbar/Toolbar.js +1 -1
  493. package/modern/Tooltip/Tooltip.js +2 -2
  494. package/modern/Typography/Typography.js +1 -1
  495. package/modern/index.js +1 -1
  496. package/modern/locale/index.js +80 -0
  497. package/modern/styles/adaptV4Theme.js +1 -1
  498. package/modern/styles/responsiveFontSizes.js +1 -1
  499. package/node/Accordion/Accordion.js +2 -2
  500. package/node/AccordionActions/AccordionActions.js +1 -1
  501. package/node/AccordionDetails/AccordionDetails.js +1 -1
  502. package/node/AccordionSummary/AccordionSummary.js +2 -2
  503. package/node/Alert/Alert.js +1 -3
  504. package/node/AlertTitle/AlertTitle.js +1 -1
  505. package/node/AppBar/AppBar.js +1 -1
  506. package/node/Autocomplete/Autocomplete.js +1 -1
  507. package/node/Avatar/Avatar.js +1 -1
  508. package/node/AvatarGroup/AvatarGroup.js +20 -5
  509. package/node/Backdrop/Backdrop.js +1 -1
  510. package/node/Badge/Badge.js +17 -4
  511. package/node/BottomNavigation/BottomNavigation.js +1 -1
  512. package/node/BottomNavigationAction/BottomNavigationAction.js +1 -1
  513. package/node/Breadcrumbs/Breadcrumbs.js +1 -1
  514. package/node/Button/Button.js +17 -34
  515. package/node/ButtonBase/ButtonBase.js +2 -2
  516. package/node/ButtonGroup/ButtonGroup.js +1 -1
  517. package/node/Card/Card.js +1 -1
  518. package/node/CardActionArea/CardActionArea.js +1 -1
  519. package/node/CardActions/CardActions.js +1 -1
  520. package/node/CardContent/CardContent.js +1 -1
  521. package/node/CardHeader/CardHeader.js +1 -1
  522. package/node/CardMedia/CardMedia.js +1 -1
  523. package/node/Checkbox/Checkbox.js +1 -1
  524. package/node/Chip/Chip.js +1 -1
  525. package/node/CircularProgress/CircularProgress.js +1 -1
  526. package/node/Collapse/Collapse.js +1 -1
  527. package/node/Container/Container.js +1 -1
  528. package/node/CssBaseline/CssBaseline.js +1 -1
  529. package/node/Dialog/Dialog.js +2 -2
  530. package/node/DialogActions/DialogActions.js +1 -1
  531. package/node/DialogContent/DialogContent.js +1 -1
  532. package/node/DialogContentText/DialogContentText.js +1 -1
  533. package/node/DialogTitle/DialogTitle.js +1 -1
  534. package/node/Divider/Divider.js +1 -1
  535. package/node/Drawer/Drawer.js +1 -1
  536. package/node/Fab/Fab.js +1 -1
  537. package/node/FilledInput/FilledInput.js +1 -1
  538. package/node/FormControl/FormControl.js +1 -1
  539. package/node/FormControlLabel/FormControlLabel.js +1 -1
  540. package/node/FormGroup/FormGroup.js +1 -1
  541. package/node/FormHelperText/FormHelperText.js +1 -1
  542. package/node/FormLabel/FormLabel.js +1 -1
  543. package/node/Grid/Grid.js +101 -68
  544. package/node/Icon/Icon.js +1 -1
  545. package/node/IconButton/IconButton.js +1 -1
  546. package/node/ImageList/ImageList.js +1 -1
  547. package/node/ImageListItem/ImageListItem.js +1 -1
  548. package/node/ImageListItemBar/ImageListItemBar.js +1 -1
  549. package/node/Input/Input.js +1 -1
  550. package/node/InputAdornment/InputAdornment.js +1 -1
  551. package/node/InputBase/InputBase.js +11 -3
  552. package/node/InputLabel/InputLabel.js +1 -1
  553. package/node/LinearProgress/LinearProgress.js +1 -1
  554. package/node/Link/Link.js +1 -1
  555. package/node/List/List.js +1 -1
  556. package/node/ListItem/ListItem.js +1 -1
  557. package/node/ListItemAvatar/ListItemAvatar.js +1 -1
  558. package/node/ListItemButton/ListItemButton.js +2 -2
  559. package/node/ListItemIcon/ListItemIcon.js +1 -1
  560. package/node/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -1
  561. package/node/ListItemText/ListItemText.js +1 -1
  562. package/node/ListSubheader/ListSubheader.js +1 -1
  563. package/node/Menu/Menu.js +2 -2
  564. package/node/MenuItem/MenuItem.js +2 -2
  565. package/node/MobileStepper/MobileStepper.js +1 -1
  566. package/node/Modal/Modal.js +1 -1
  567. package/node/NativeSelect/NativeSelect.js +1 -1
  568. package/node/OutlinedInput/OutlinedInput.js +16 -2
  569. package/node/Pagination/Pagination.js +1 -1
  570. package/node/PaginationItem/PaginationItem.js +1 -1
  571. package/node/Paper/Paper.js +1 -1
  572. package/node/Popover/Popover.js +2 -2
  573. package/node/Radio/Radio.js +1 -1
  574. package/node/Rating/Rating.js +1 -1
  575. package/node/ScopedCssBaseline/ScopedCssBaseline.js +1 -1
  576. package/node/Select/Select.js +1 -1
  577. package/node/Select/SelectInput.js +13 -1
  578. package/node/Skeleton/Skeleton.js +1 -1
  579. package/node/Slider/Slider.js +1 -1
  580. package/node/Snackbar/Snackbar.js +62 -6
  581. package/node/SnackbarContent/SnackbarContent.js +1 -1
  582. package/node/SpeedDial/SpeedDial.js +2 -2
  583. package/node/SpeedDialAction/SpeedDialAction.js +1 -1
  584. package/node/SpeedDialIcon/SpeedDialIcon.js +1 -1
  585. package/node/Stack/Stack.js +1 -1
  586. package/node/Step/Step.js +1 -1
  587. package/node/StepButton/StepButton.js +1 -1
  588. package/node/StepConnector/StepConnector.js +1 -1
  589. package/node/StepContent/StepContent.js +2 -2
  590. package/node/StepIcon/StepIcon.js +1 -1
  591. package/node/StepLabel/StepLabel.js +1 -1
  592. package/node/Stepper/Stepper.js +1 -1
  593. package/node/SvgIcon/SvgIcon.js +1 -1
  594. package/node/Switch/Switch.js +1 -1
  595. package/node/Tab/Tab.js +1 -1
  596. package/node/TabScrollButton/TabScrollButton.js +1 -1
  597. package/node/Table/Table.js +1 -1
  598. package/node/TableBody/TableBody.js +1 -1
  599. package/node/TableCell/TableCell.js +1 -1
  600. package/node/TableContainer/TableContainer.js +1 -1
  601. package/node/TableFooter/TableFooter.js +1 -1
  602. package/node/TableHead/TableHead.js +1 -1
  603. package/node/TablePagination/TablePagination.js +1 -1
  604. package/node/TableRow/TableRow.js +1 -1
  605. package/node/TableSortLabel/TableSortLabel.js +1 -1
  606. package/node/Tabs/Tabs.js +1 -1
  607. package/node/TextField/TextField.js +4 -10
  608. package/node/ToggleButton/ToggleButton.js +1 -1
  609. package/node/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  610. package/node/Toolbar/Toolbar.js +1 -1
  611. package/node/Tooltip/Tooltip.js +2 -2
  612. package/node/Typography/Typography.js +1 -1
  613. package/node/index.js +1 -1
  614. package/node/locale/index.js +82 -1
  615. package/node/styles/adaptV4Theme.js +1 -1
  616. package/node/styles/responsiveFontSizes.js +1 -1
  617. package/package.json +5 -5
  618. package/styles/adaptV4Theme.js +1 -1
  619. package/styles/createTheme.d.ts +1 -1
  620. package/styles/cssUtils.d.ts +32 -0
  621. package/styles/index.d.ts +3 -1
  622. package/styles/responsiveFontSizes.js +1 -1
  623. package/transitions/index.d.ts +1 -1
  624. package/transitions/transition.d.ts +13 -14
  625. package/transitions/utils.d.ts +23 -23
  626. package/umd/material-ui.development.js +1065 -938
  627. package/umd/material-ui.production.min.js +21 -21
  628. package/useMediaQuery/useMediaQuery.d.ts +27 -27
  629. package/useTouchRipple/index.d.ts +1 -1
  630. package/useTouchRipple/useTouchRipple.d.ts +28 -28
  631. package/utils/getScrollbarSize.d.ts +2 -2
  632. package/utils/ownerDocument.d.ts +2 -2
  633. package/utils/ownerWindow.d.ts +2 -2
  634. package/utils/setRef.d.ts +2 -2
@@ -5,7 +5,7 @@ import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import clsx from 'clsx';
7
7
  import { unstable_composeClasses as composeClasses } from '@mui/base';
8
- import { refType } from '@mui/utils';
8
+ import { refType, unstable_useId as useId } from '@mui/utils';
9
9
  import styled from '../styles/styled';
10
10
  import useThemeProps from '../styles/useThemeProps';
11
11
  import Input from '../Input';
@@ -16,8 +16,8 @@ import FormControl from '../FormControl';
16
16
  import FormHelperText from '../FormHelperText';
17
17
  import Select from '../Select';
18
18
  import { getTextFieldUtilityClass } from './textFieldClasses';
19
- import { jsxs as _jsxs } from "react/jsx-runtime";
20
19
  import { jsx as _jsx } from "react/jsx-runtime";
20
+ import { jsxs as _jsxs } from "react/jsx-runtime";
21
21
  const variantComponent = {
22
22
  standard: Input,
23
23
  filled: FilledInput,
@@ -90,7 +90,7 @@ const TextField = /*#__PURE__*/React.forwardRef(function TextField(inProps, ref)
90
90
  FormHelperTextProps,
91
91
  fullWidth = false,
92
92
  helperText,
93
- id,
93
+ id: idOverride,
94
94
  InputLabelProps,
95
95
  inputProps,
96
96
  InputProps,
@@ -141,12 +141,7 @@ const TextField = /*#__PURE__*/React.forwardRef(function TextField(inProps, ref)
141
141
  InputMore.notched = InputLabelProps.shrink;
142
142
  }
143
143
 
144
- if (label) {
145
- const displayRequired = InputLabelProps?.required ?? required;
146
- InputMore.label = /*#__PURE__*/_jsxs(React.Fragment, {
147
- children: [label, displayRequired && '\u00a0*']
148
- });
149
- }
144
+ InputMore.label = label;
150
145
  }
151
146
 
152
147
  if (select) {
@@ -158,6 +153,7 @@ const TextField = /*#__PURE__*/React.forwardRef(function TextField(inProps, ref)
158
153
  InputMore['aria-describedby'] = undefined;
159
154
  }
160
155
 
156
+ const id = useId(idOverride);
161
157
  const helperTextId = helperText && id ? `${id}-helper-text` : undefined;
162
158
  const inputLabelId = label && id ? `${id}-label` : undefined;
163
159
  const InputComponent = variantComponent[variant];
@@ -409,7 +405,7 @@ process.env.NODE_ENV !== "production" ? TextField.propTypes
409
405
  /**
410
406
  * The system prop that allows defining system overrides as well as additional CSS styles.
411
407
  */
412
- sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
408
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
413
409
 
414
410
  /**
415
411
  * Type of the `input` element. It should be [a valid HTML5 input type](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Form_%3Cinput%3E_types).
@@ -226,7 +226,7 @@ process.env.NODE_ENV !== "production" ? ToggleButton.propTypes
226
226
  /**
227
227
  * The system prop that allows defining system overrides as well as additional CSS styles.
228
228
  */
229
- sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
229
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
230
230
 
231
231
  /**
232
232
  * The value to associate with the button when selected in a
@@ -243,7 +243,7 @@ process.env.NODE_ENV !== "production" ? ToggleButtonGroup.propTypes
243
243
  /**
244
244
  * The system prop that allows defining system overrides as well as additional CSS styles.
245
245
  */
246
- sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
246
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
247
247
 
248
248
  /**
249
249
  * The currently selected value within the group or an array of selected
@@ -118,7 +118,7 @@ process.env.NODE_ENV !== "production" ? Toolbar.propTypes
118
118
  /**
119
119
  * The system prop that allows defining system overrides as well as additional CSS styles.
120
120
  */
121
- sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
121
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
122
122
 
123
123
  /**
124
124
  * The variant to use.
@@ -791,7 +791,7 @@ process.env.NODE_ENV !== "production" ? Tooltip.propTypes
791
791
  /**
792
792
  * The system prop that allows defining system overrides as well as additional CSS styles.
793
793
  */
794
- sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
794
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
795
795
 
796
796
  /**
797
797
  * Tooltip title. Zero-length titles string are never displayed.
@@ -809,7 +809,7 @@ process.env.NODE_ENV !== "production" ? Tooltip.propTypes
809
809
 
810
810
  /**
811
811
  * Props applied to the transition element.
812
- * By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition) component.
812
+ * By default, the element is based on this [`Transition`](http://reactcommunity.org/react-transition-group/transition/) component.
813
813
  */
814
814
  TransitionProps: PropTypes.object
815
815
  } : void 0;
@@ -180,7 +180,7 @@ process.env.NODE_ENV !== "production" ? Typography.propTypes
180
180
  /**
181
181
  * The system prop that allows defining system overrides as well as additional CSS styles.
182
182
  */
183
- sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
183
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
184
184
 
185
185
  /**
186
186
  * Applies the theme typography styles.
package/modern/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.2.1
1
+ /** @license MUI v5.2.5
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -641,6 +641,86 @@ export const csCZ = {
641
641
  }
642
642
  }
643
643
  };
644
+ export const daDK = {
645
+ components: {
646
+ MuiBreadcrumbs: {
647
+ defaultProps: {
648
+ expandText: 'Vis sti'
649
+ }
650
+ },
651
+ MuiTablePagination: {
652
+ defaultProps: {
653
+ getItemAriaLabel: type => {
654
+ if (type === 'first') {
655
+ return 'Gå til den første side';
656
+ }
657
+
658
+ if (type === 'last') {
659
+ return 'Gå til den sidste side';
660
+ }
661
+
662
+ if (type === 'next') {
663
+ return 'Gå til den næste side';
664
+ } // if (type === 'previous') {
665
+
666
+
667
+ return 'Gå til den forrige side';
668
+ },
669
+ labelRowsPerPage: 'Rækker pr side:',
670
+ labelDisplayedRows: ({
671
+ from,
672
+ to,
673
+ count
674
+ }) => `${from}-${to} af ${count !== -1 ? count : `mere end ${to}`}`
675
+ }
676
+ },
677
+ MuiRating: {
678
+ defaultProps: {
679
+ getLabelText: value => `${value} Stjern${value !== 1 ? 'er' : ''}`,
680
+ emptyLabelText: 'Tom'
681
+ }
682
+ },
683
+ MuiAutocomplete: {
684
+ defaultProps: {
685
+ clearText: 'Slet',
686
+ closeText: 'Luk',
687
+ loadingText: 'Indlæser…',
688
+ noOptionsText: 'Ingen muligheder',
689
+ openText: 'Åben'
690
+ }
691
+ },
692
+ MuiAlert: {
693
+ defaultProps: {
694
+ closeText: 'Luk'
695
+ }
696
+ },
697
+ MuiPagination: {
698
+ defaultProps: {
699
+ 'aria-label': 'Sideinddelings navigation',
700
+ getItemAriaLabel: (type, page, selected) => {
701
+ if (type === 'page') {
702
+ return `${selected ? '' : 'Go to '}page ${page}`;
703
+ }
704
+
705
+ if (type === 'first') {
706
+ return 'Gå til den første side';
707
+ }
708
+
709
+ if (type === 'last') {
710
+ return 'Gå til den sidste side';
711
+ }
712
+
713
+ if (type === 'next') {
714
+ return 'Gå til den næste side';
715
+ } // if (type === 'previous') {
716
+
717
+
718
+ return 'Gå til den forrige side';
719
+ }
720
+ }
721
+ }
722
+ }
723
+ };
644
724
  export const deDE = {
645
725
  components: {
646
726
  MuiBreadcrumbs: {
@@ -32,7 +32,7 @@ export default function adaptV4Theme(inputTheme) {
32
32
  const componentValue = theme.components[component] || {};
33
33
  componentValue.defaultProps = props[component];
34
34
  theme.components[component] = componentValue;
35
- }); // css overrides
35
+ }); // CSS overrides
36
36
 
37
37
  Object.keys(styleOverrides).forEach(component => {
38
38
  const componentValue = theme.components[component] || {};
@@ -12,7 +12,7 @@ export default function responsiveFontSizes(themeInput, options = {}) {
12
12
  const theme = _extends({}, themeInput);
13
13
 
14
14
  theme.typography = _extends({}, theme.typography);
15
- const typography = theme.typography; // Convert between css lengths e.g. em->px or px->rem
15
+ const typography = theme.typography; // Convert between CSS lengths e.g. em->px or px->rem
16
16
  // Set the baseFontSize for your project. Defaults to 16px (also the browser default).
17
17
 
18
18
  const convert = convertLength(typography.htmlFontSize);
@@ -285,7 +285,7 @@ process.env.NODE_ENV !== "production" ? Accordion.propTypes
285
285
  /**
286
286
  * The system prop that allows defining system overrides as well as additional CSS styles.
287
287
  */
288
- sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object])), _propTypes.default.func, _propTypes.default.object]),
288
+ sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object]),
289
289
 
290
290
  /**
291
291
  * The component used for the transition.
@@ -296,7 +296,7 @@ process.env.NODE_ENV !== "production" ? Accordion.propTypes
296
296
 
297
297
  /**
298
298
  * Props applied to the transition element.
299
- * By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition) component.
299
+ * By default, the element is based on this [`Transition`](http://reactcommunity.org/react-transition-group/transition/) component.
300
300
  */
301
301
  TransitionProps: _propTypes.default.object
302
302
  } : void 0;
@@ -117,7 +117,7 @@ process.env.NODE_ENV !== "production" ? AccordionActions.propTypes
117
117
  /**
118
118
  * The system prop that allows defining system overrides as well as additional CSS styles.
119
119
  */
120
- sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object])), _propTypes.default.func, _propTypes.default.object])
120
+ sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object])
121
121
  } : void 0;
122
122
  var _default = AccordionActions;
123
123
  exports.default = _default;
@@ -95,7 +95,7 @@ process.env.NODE_ENV !== "production" ? AccordionDetails.propTypes
95
95
  /**
96
96
  * The system prop that allows defining system overrides as well as additional CSS styles.
97
97
  */
98
- sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object])), _propTypes.default.func, _propTypes.default.object])
98
+ sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object])
99
99
  } : void 0;
100
100
  var _default = AccordionDetails;
101
101
  exports.default = _default;
@@ -211,7 +211,7 @@ process.env.NODE_ENV !== "production" ? AccordionSummary.propTypes
211
211
  * This prop can help identify which element has keyboard focus.
212
212
  * The class name will be applied when the element gains the focus through keyboard interaction.
213
213
  * It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).
214
- * The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/master/explainer.md).
214
+ * The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).
215
215
  * A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
216
216
  * if needed.
217
217
  */
@@ -225,7 +225,7 @@ process.env.NODE_ENV !== "production" ? AccordionSummary.propTypes
225
225
  /**
226
226
  * The system prop that allows defining system overrides as well as additional CSS styles.
227
227
  */
228
- sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object])), _propTypes.default.func, _propTypes.default.object])
228
+ sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object])
229
229
  } : void 0;
230
230
  var _default = AccordionSummary;
231
231
  exports.default = _default;
@@ -86,7 +86,6 @@ const AlertRoot = (0, _styled.default)(_Paper.default, {
86
86
  const getBackgroundColor = theme.palette.mode === 'light' ? _system.lighten : _system.darken;
87
87
  const color = ownerState.color || ownerState.severity;
88
88
  return (0, _extends2.default)({}, theme.typography.body2, {
89
- borderRadius: theme.shape.borderRadius,
90
89
  backgroundColor: 'transparent',
91
90
  display: 'flex',
92
91
  padding: '6px 16px'
@@ -178,7 +177,6 @@ const Alert = /*#__PURE__*/React.forwardRef(function Alert(inProps, ref) {
178
177
  const classes = useUtilityClasses(ownerState);
179
178
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(AlertRoot, (0, _extends2.default)({
180
179
  role: role,
181
- square: true,
182
180
  elevation: 0,
183
181
  ownerState: ownerState,
184
182
  className: (0, _clsx.default)(classes.root, className),
@@ -296,7 +294,7 @@ process.env.NODE_ENV !== "production" ? Alert.propTypes
296
294
  /**
297
295
  * The system prop that allows defining system overrides as well as additional CSS styles.
298
296
  */
299
- sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object])), _propTypes.default.func, _propTypes.default.object]),
297
+ sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object]),
300
298
 
301
299
  /**
302
300
  * The variant to use.
@@ -102,7 +102,7 @@ process.env.NODE_ENV !== "production" ? AlertTitle.propTypes
102
102
  /**
103
103
  * The system prop that allows defining system overrides as well as additional CSS styles.
104
104
  */
105
- sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object])), _propTypes.default.func, _propTypes.default.object])
105
+ sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object])
106
106
  } : void 0;
107
107
  var _default = AlertTitle;
108
108
  exports.default = _default;
@@ -190,7 +190,7 @@ process.env.NODE_ENV !== "production" ? AppBar.propTypes
190
190
  /**
191
191
  * The system prop that allows defining system overrides as well as additional CSS styles.
192
192
  */
193
- sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object])), _propTypes.default.func, _propTypes.default.object])
193
+ sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object])
194
194
  } : void 0;
195
195
  var _default = AppBar;
196
196
  exports.default = _default;
@@ -1083,7 +1083,7 @@ process.env.NODE_ENV !== "production" ? Autocomplete.propTypes
1083
1083
  /**
1084
1084
  * The system prop that allows defining system overrides as well as additional CSS styles.
1085
1085
  */
1086
- sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object])), _propTypes.default.func, _propTypes.default.object]),
1086
+ sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object]),
1087
1087
 
1088
1088
  /**
1089
1089
  * The value of the autocomplete.
@@ -275,7 +275,7 @@ process.env.NODE_ENV !== "production" ? Avatar.propTypes
275
275
  /**
276
276
  * The system prop that allows defining system overrides as well as additional CSS styles.
277
277
  */
278
- sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object])), _propTypes.default.func, _propTypes.default.object]),
278
+ sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object]),
279
279
 
280
280
  /**
281
281
  * The shape of the avatar.
@@ -33,7 +33,7 @@ var _avatarGroupClasses = _interopRequireWildcard(require("./avatarGroupClasses"
33
33
 
34
34
  var _jsxRuntime = require("react/jsx-runtime");
35
35
 
36
- const _excluded = ["children", "className", "max", "spacing", "variant"];
36
+ const _excluded = ["children", "className", "max", "spacing", "total", "variant"];
37
37
 
38
38
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
39
39
 
@@ -99,10 +99,11 @@ const AvatarGroup = /*#__PURE__*/React.forwardRef(function AvatarGroup(inProps,
99
99
  className,
100
100
  max = 5,
101
101
  spacing = 'medium',
102
+ total,
102
103
  variant = 'circular'
103
104
  } = props,
104
105
  other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
105
- const clampedMax = max < 2 ? 2 : max;
106
+ let clampedMax = max < 2 ? 2 : max;
106
107
  const ownerState = (0, _extends2.default)({}, props, {
107
108
  max,
108
109
  spacing,
@@ -118,7 +119,15 @@ const AvatarGroup = /*#__PURE__*/React.forwardRef(function AvatarGroup(inProps,
118
119
 
119
120
  return /*#__PURE__*/React.isValidElement(child);
120
121
  });
121
- const extraAvatars = children.length > clampedMax ? children.length - clampedMax + 1 : 0;
122
+ const totalAvatars = total || children.length;
123
+
124
+ if (totalAvatars === clampedMax) {
125
+ clampedMax += 1;
126
+ }
127
+
128
+ clampedMax = Math.min(totalAvatars + 1, clampedMax);
129
+ const maxAvatars = Math.min(children.length, clampedMax - 1);
130
+ const extraAvatars = Math.max(totalAvatars - clampedMax, totalAvatars - maxAvatars, 0);
122
131
  const marginLeft = spacing && SPACINGS[spacing] !== undefined ? SPACINGS[spacing] : -spacing;
123
132
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(AvatarGroupRoot, (0, _extends2.default)({
124
133
  ownerState: ownerState,
@@ -133,7 +142,7 @@ const AvatarGroup = /*#__PURE__*/React.forwardRef(function AvatarGroup(inProps,
133
142
  },
134
143
  variant: variant,
135
144
  children: ["+", extraAvatars]
136
- }) : null, children.slice(0, children.length - extraAvatars).reverse().map(child => {
145
+ }) : null, children.slice(0, maxAvatars).reverse().map(child => {
137
146
  return /*#__PURE__*/React.cloneElement(child, {
138
147
  className: (0, _clsx.default)(child.props.className, classes.avatar),
139
148
  style: (0, _extends2.default)({
@@ -188,7 +197,13 @@ process.env.NODE_ENV !== "production" ? AvatarGroup.propTypes
188
197
  /**
189
198
  * The system prop that allows defining system overrides as well as additional CSS styles.
190
199
  */
191
- sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object])), _propTypes.default.func, _propTypes.default.object]),
200
+ sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object]),
201
+
202
+ /**
203
+ * The total number of avatars. Used for calculating the number of extra avatars.
204
+ * @default children.length
205
+ */
206
+ total: _propTypes.default.number,
192
207
 
193
208
  /**
194
209
  * The variant to use.
@@ -165,7 +165,7 @@ process.env.NODE_ENV !== "production" ? Backdrop.propTypes
165
165
  /**
166
166
  * The system prop that allows defining system overrides as well as additional CSS styles.
167
167
  */
168
- sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object])), _propTypes.default.func, _propTypes.default.object]),
168
+ sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object]),
169
169
 
170
170
  /**
171
171
  * The duration for the transition, in milliseconds.
@@ -31,7 +31,7 @@ var _capitalize = _interopRequireDefault(require("../utils/capitalize"));
31
31
 
32
32
  var _jsxRuntime = require("react/jsx-runtime");
33
33
 
34
- const _excluded = ["components", "componentsProps", "color", "invisible", "badgeContent", "showZero", "variant"];
34
+ const _excluded = ["component", "components", "componentsProps", "color", "invisible", "badgeContent", "showZero", "variant"];
35
35
 
36
36
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
37
37
 
@@ -176,6 +176,11 @@ const BadgeBadge = (0, _styled.default)('span', {
176
176
  duration: theme.transitions.duration.leavingScreen
177
177
  })
178
178
  }));
179
+
180
+ const shouldSpreadAdditionalProps = Slot => {
181
+ return !Slot || !(0, _base.isHostComponent)(Slot);
182
+ };
183
+
179
184
  const Badge = /*#__PURE__*/React.forwardRef(function Badge(inProps, ref) {
180
185
  var _componentsProps$root, _componentsProps$badg;
181
186
 
@@ -184,6 +189,7 @@ const Badge = /*#__PURE__*/React.forwardRef(function Badge(inProps, ref) {
184
189
  name: 'MuiBadge'
185
190
  });
186
191
  const {
192
+ component = 'span',
187
193
  components = {},
188
194
  componentsProps = {},
189
195
  color: colorProp = 'default',
@@ -221,12 +227,13 @@ const Badge = /*#__PURE__*/React.forwardRef(function Badge(inProps, ref) {
221
227
  Badge: BadgeBadge
222
228
  }, components),
223
229
  componentsProps: {
224
- root: (0, _extends2.default)({}, componentsProps.root, (!components.Root || !(0, _base.isHostComponent)(components.Root)) && {
230
+ root: (0, _extends2.default)({}, componentsProps.root, shouldSpreadAdditionalProps(components.Root) && {
231
+ as: component,
225
232
  ownerState: (0, _extends2.default)({}, (_componentsProps$root = componentsProps.root) == null ? void 0 : _componentsProps$root.ownerState, {
226
233
  color
227
234
  })
228
235
  }),
229
- badge: (0, _extends2.default)({}, componentsProps.badge, (!components.Thumb || !(0, _base.isHostComponent)(components.Thumb)) && {
236
+ badge: (0, _extends2.default)({}, componentsProps.badge, shouldSpreadAdditionalProps(components.Badge) && {
230
237
  ownerState: (0, _extends2.default)({}, (_componentsProps$badg = componentsProps.badge) == null ? void 0 : _componentsProps$badg.ownerState, {
231
238
  color
232
239
  })
@@ -279,6 +286,12 @@ process.env.NODE_ENV !== "production" ? Badge.propTypes
279
286
  /* @typescript-to-proptypes-ignore */
280
287
  .oneOfType([_propTypes.default.oneOf(['default', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), _propTypes.default.string]),
281
288
 
289
+ /**
290
+ * The component used for the root node.
291
+ * Either a string to use a HTML element or a component.
292
+ */
293
+ component: _propTypes.default.elementType,
294
+
282
295
  /**
283
296
  * The components used for each slot inside the Badge.
284
297
  * Either a string to use a HTML element or a component.
@@ -321,7 +334,7 @@ process.env.NODE_ENV !== "production" ? Badge.propTypes
321
334
  /**
322
335
  * The system prop that allows defining system overrides as well as additional CSS styles.
323
336
  */
324
- sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object])), _propTypes.default.func, _propTypes.default.object]),
337
+ sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object]),
325
338
 
326
339
  /**
327
340
  * The variant to use.
@@ -150,7 +150,7 @@ process.env.NODE_ENV !== "production" ? BottomNavigation.propTypes
150
150
  /**
151
151
  * The system prop that allows defining system overrides as well as additional CSS styles.
152
152
  */
153
- sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object])), _propTypes.default.func, _propTypes.default.object]),
153
+ sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object]),
154
154
 
155
155
  /**
156
156
  * The value of the currently selected `BottomNavigationAction`.
@@ -198,7 +198,7 @@ process.env.NODE_ENV !== "production" ? BottomNavigationAction.propTypes
198
198
  /**
199
199
  * The system prop that allows defining system overrides as well as additional CSS styles.
200
200
  */
201
- sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object])), _propTypes.default.func, _propTypes.default.object]),
201
+ sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object]),
202
202
 
203
203
  /**
204
204
  * You can provide your own value. Otherwise, we fallback to the child position index.
@@ -255,7 +255,7 @@ process.env.NODE_ENV !== "production" ? Breadcrumbs.propTypes
255
255
  /**
256
256
  * The system prop that allows defining system overrides as well as additional CSS styles.
257
257
  */
258
- sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object])), _propTypes.default.func, _propTypes.default.object])
258
+ sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object])
259
259
  } : void 0;
260
260
  var _default = Breadcrumbs;
261
261
  exports.default = _default;
@@ -17,6 +17,8 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
17
17
 
18
18
  var _clsx = _interopRequireDefault(require("clsx"));
19
19
 
20
+ var _utils = require("@mui/utils");
21
+
20
22
  var _base = require("@mui/base");
21
23
 
22
24
  var _system = require("@mui/system");
@@ -35,7 +37,7 @@ var _ButtonGroupContext = _interopRequireDefault(require("../ButtonGroup/ButtonG
35
37
 
36
38
  var _jsxRuntime = require("react/jsx-runtime");
37
39
 
38
- const _excluded = ["children", "className", "color", "component", "disabled", "disableElevation", "disableFocusRipple", "disableRipple", "endIcon", "focusVisibleClassName", "fullWidth", "size", "startIcon", "type", "variant"];
40
+ const _excluded = ["children", "color", "component", "className", "disabled", "disableElevation", "disableFocusRipple", "endIcon", "focusVisibleClassName", "fullWidth", "size", "startIcon", "type", "variant"];
39
41
 
40
42
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
41
43
 
@@ -240,48 +242,30 @@ const ButtonEndIcon = (0, _styled.default)('span', {
240
242
  marginRight: -2
241
243
  }, commonIconStyles(ownerState)));
242
244
  const Button = /*#__PURE__*/React.forwardRef(function Button(inProps, ref) {
245
+ // props priority: `inProps` > `contextProps` > `themeDefaultProps`
246
+ const contextProps = React.useContext(_ButtonGroupContext.default);
247
+ const resolvedProps = (0, _utils.internal_resolveProps)(contextProps, inProps);
243
248
  const props = (0, _useThemeProps.default)({
244
- props: inProps,
249
+ props: resolvedProps,
245
250
  name: 'MuiButton'
246
251
  });
247
- const {
248
- className: classNameContext,
249
- color: colorContext,
250
- disabled: disabledContext,
251
- disableElevation: disableElevationContext,
252
- disableFocusRipple: disableFocusRippleContext,
253
- disableRipple: disableRippleContext,
254
- fullWidth: fullWidthContext,
255
- size: sizeContext,
256
- variant: variantContext
257
- } = React.useContext(_ButtonGroupContext.default);
258
252
  const {
259
253
  children,
260
- className,
261
- color: colorProp,
254
+ color = 'primary',
262
255
  component = 'button',
263
- disabled: disabledProp,
264
- disableElevation: disableElevationProp,
265
- disableFocusRipple: disableFocusRippleProp,
266
- disableRipple: disableRippleProp,
256
+ className,
257
+ disabled = false,
258
+ disableElevation = false,
259
+ disableFocusRipple = false,
267
260
  endIcon: endIconProp,
268
261
  focusVisibleClassName,
269
- fullWidth: fullWidthProp,
270
- size: sizeProp,
262
+ fullWidth = false,
263
+ size = 'medium',
271
264
  startIcon: startIconProp,
272
265
  type,
273
- variant: variantProp
266
+ variant = 'text'
274
267
  } = props,
275
268
  other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
276
- const color = colorProp || colorContext || 'primary'; // TODO v6: Use nullish coalescing (??) instead of OR operator for these boolean props so that these boolean props for Button with ButtonGroup context take priority. See conversation from https://github.com/mui-org/material-ui/pull/28645#discussion_r738380902.
277
-
278
- const disabled = disabledProp || disabledContext || false;
279
- const disableElevation = disableElevationProp || disableElevationContext || false;
280
- const disableFocusRipple = disableFocusRippleProp || disableFocusRippleContext || false;
281
- const fullWidth = fullWidthProp || fullWidthContext || false;
282
- const size = sizeProp || sizeContext || 'medium';
283
- const variant = variantProp || variantContext || 'text';
284
- const disableRipple = disableRippleProp || disableRippleContext || false;
285
269
  const ownerState = (0, _extends2.default)({}, props, {
286
270
  color,
287
271
  component,
@@ -306,10 +290,9 @@ const Button = /*#__PURE__*/React.forwardRef(function Button(inProps, ref) {
306
290
  });
307
291
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(ButtonRoot, (0, _extends2.default)({
308
292
  ownerState: ownerState,
309
- className: (0, _clsx.default)(className, classNameContext),
293
+ className: (0, _clsx.default)(className, contextProps.className),
310
294
  component: component,
311
295
  disabled: disabled,
312
- disableRipple: disableRipple,
313
296
  focusRipple: !disableFocusRipple,
314
297
  focusVisibleClassName: (0, _clsx.default)(classes.focusVisible, focusVisibleClassName),
315
298
  ref: ref,
@@ -422,7 +405,7 @@ process.env.NODE_ENV !== "production" ? Button.propTypes
422
405
  /**
423
406
  * The system prop that allows defining system overrides as well as additional CSS styles.
424
407
  */
425
- sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object])), _propTypes.default.func, _propTypes.default.object]),
408
+ sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object]),
426
409
 
427
410
  /**
428
411
  * @ignore