Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: mui/material-ui
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: c80ff0339882859af7e17f8bfd0a5f6880b323f8
Choose a base ref
...
head repository: mui/material-ui
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 30cb27cff1d4e1838ca4235ab4285e20f2b2a870
Choose a head ref

Commits on Oct 25, 2022

  1. [core] Fix duplicate CodeQL build

    For example in https://github.com/mui/material-ui/actions/runs/3317841356
    it ran twice to do the same thing. I got confirmation from GitHub
    that it's duplication in github/codeql-action#1319 (comment).
    oliviertassinari committed Oct 25, 2022
    Copy the full SHA
    6006aa3 View commit details
  2. [docs] Fix typo in bottom-navigation.md (#34884)

    Signed-off-by: Roody <18101218+RoodyCode@users.noreply.github.com>
    RoodyCode authored Oct 25, 2022
    Copy the full SHA
    5f91783 View commit details
  3. Bump @rollup/plugin-replace to ^5.0.1 (#34786)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Oct 25, 2022
    Copy the full SHA
    b3548fa View commit details

Commits on Oct 26, 2022

  1. Copy the full SHA
    8b2bab9 View commit details
  2. Copy the full SHA
    d35d229 View commit details
  3. Copy the full SHA
    da4d400 View commit details
  4. Copy the full SHA
    fd06295 View commit details
  5. Copy the full SHA
    d5feaa5 View commit details
  6. Copy the full SHA
    14fa2e5 View commit details
  7. Bump MUI X (#34776)

    renovate[bot] authored Oct 26, 2022
    Copy the full SHA
    012c95f View commit details

Commits on Oct 27, 2022

  1. Copy the full SHA
    a446ac1 View commit details
  2. [ButtonUnstyled] Update to render as link when href or to is provided (

    …#34337)
    
    Co-authored-by: Michał Dudak <michal@dudak.me>
    EduardoSCosta and michaldudak authored Oct 27, 2022
    Copy the full SHA
    9e835e4 View commit details
  3. Copy the full SHA
    2446dce View commit details
  4. [docs] Update templates' readme files to include required dependencies (

    #34757)
    
    Co-authored-by: Sam Sycamore <71297412+samuelsycamore@users.noreply.github.com>
    michaldudak and mapache-salvaje authored Oct 27, 2022
    Copy the full SHA
    3f88e94 View commit details
  5. [docs] Standardize all MUI Core "Usage" pages (#34183)

    Signed-off-by: Sam Sycamore <71297412+samuelsycamore@users.noreply.github.com>
    Co-authored-by: Olivier Tassinari <olivier.tassinari@gmail.com>
    mapache-salvaje and oliviertassinari authored Oct 27, 2022
    Copy the full SHA
    993cbc8 View commit details

Commits on Oct 28, 2022

  1. Copy the full SHA
    7ec53f0 View commit details
  2. Copy the full SHA
    95f247e View commit details
  3. Copy the full SHA
    1fb3c8a View commit details
  4. Copy the full SHA
    04a6145 View commit details

Commits on Oct 29, 2022

  1. Copy the full SHA
    0856619 View commit details
  2. [core] Fix permissions in workflow

    See mui/mui-x#6658 for more details.
    oliviertassinari committed Oct 29, 2022
    Copy the full SHA
    cfb7770 View commit details
  3. Copy the full SHA
    5df95f1 View commit details
  4. Copy the full SHA
    e32e203 View commit details
  5. Copy the full SHA
    15dab87 View commit details
  6. Copy the full SHA
    49ef62d View commit details
  7. Copy the full SHA
    e0141b8 View commit details
  8. Copy the full SHA
    bb84c5a View commit details

Commits on Oct 30, 2022

  1. Copy the full SHA
    6bc045c View commit details
  2. [core] Pin GitHub Actions dependencies (#34929)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Oct 30, 2022
    Copy the full SHA
    86b4f32 View commit details
  3. Copy the full SHA
    23cf033 View commit details
  4. [code] Ignore compiled icons in CodeQL

    See the code output in https://github.com/mui/material-ui/actions/runs/3334099642/jobs/5516707442
    It scan way more code than it needs to.
    oliviertassinari committed Oct 30, 2022
    Copy the full SHA
    a10bb4f View commit details
  5. [core] Migrate outdated pattern to convention

    These are trivial changes to match our latest coding conventions.
    oliviertassinari committed Oct 30, 2022
    Copy the full SHA
    5a84b55 View commit details
  6. Copy the full SHA
    626a255 View commit details
  7. [docs] Fix spelling mistake (#34955)

    Co-authored-by: Olivier Tassinari <olivier.tassinari@gmail.com>
    punithnayak and oliviertassinari authored Oct 30, 2022
    Copy the full SHA
    c291ede View commit details
  8. Copy the full SHA
    a1a1c4b View commit details

Commits on Oct 31, 2022

  1. Copy the full SHA
    9e3779c View commit details
  2. Copy the full SHA
    0b383b2 View commit details
  3. Copy the full SHA
    d851074 View commit details
  4. Copy the full SHA
    8ff3424 View commit details
  5. Copy the full SHA
    a413c00 View commit details
  6. Copy the full SHA
    a66b974 View commit details
  7. Copy the full SHA
    dfbfdd8 View commit details
  8. Copy the full SHA
    346097f View commit details
  9. Copy the full SHA
    60dbc26 View commit details
  10. Copy the full SHA
    9e41c71 View commit details
  11. Copy the full SHA
    d89bb89 View commit details
  12. Copy the full SHA
    05df808 View commit details
  13. Copy the full SHA
    c84cca7 View commit details
  14. Copy the full SHA
    1fd8af7 View commit details
  15. Copy the full SHA
    5704106 View commit details
Showing with 4,071 additions and 2,566 deletions.
  1. +1 −0 .circleci/config.yml
  2. +14 −4 .eslintrc.js
  3. +4 −6 .github/ISSUE_TEMPLATE/1.bug.yml
  4. +4 −0 .github/codeql/codeql-config.yml
  5. +1 −1 .github/workflows/check-if-pr-has-label.yml
  6. +2 −2 .github/workflows/ci.yml
  7. +7 −17 .github/workflows/codeql.yml
  8. +1 −2 .github/workflows/mark-duplicate.yml
  9. +3 −3 .github/workflows/no-response.yml
  10. +46 −0 .github/workflows/scorecards.yml
  11. +1 −1 .github/workflows/support-stackoverflow.yml
  12. +76 −0 CHANGELOG.md
  13. +4 −4 benchmark/package.json
  14. +10 −7 docs/data/base/components/menu/UseMenu.js
  15. +10 −7 docs/data/base/components/menu/UseMenu.tsx
  16. +19 −9 docs/data/base/getting-started/usage/usage.md
  17. +1 −1 docs/data/joy/components/aspect-ratio/BasicRatio.js
  18. +1 −1 docs/data/joy/components/aspect-ratio/BasicRatio.tsx
  19. +1 −1 docs/data/joy/components/aspect-ratio/BasicRatio.tsx.preview
  20. +1 −1 docs/data/joy/components/aspect-ratio/CustomRatio.js
  21. +1 −1 docs/data/joy/components/aspect-ratio/CustomRatio.tsx
  22. +1 −1 docs/data/joy/components/aspect-ratio/CustomRatio.tsx.preview
  23. +8 −8 docs/data/joy/components/aspect-ratio/VariantsRatio.js
  24. +8 −8 docs/data/joy/components/aspect-ratio/VariantsRatio.tsx
  25. +79 −33 docs/data/joy/components/aspect-ratio/aspect-ratio.md
  26. +62 −0 docs/data/joy/components/linear-progress/LinearProgressColors.js
  27. +63 −0 docs/data/joy/components/linear-progress/LinearProgressColors.tsx
  28. +27 −0 docs/data/joy/components/linear-progress/LinearProgressDeterminate.js
  29. +27 −0 docs/data/joy/components/linear-progress/LinearProgressDeterminate.tsx
  30. +5 −0 docs/data/joy/components/linear-progress/LinearProgressDeterminate.tsx.preview
  31. +13 −0 docs/data/joy/components/linear-progress/LinearProgressSizes.js
  32. +13 −0 docs/data/joy/components/linear-progress/LinearProgressSizes.tsx
  33. +3 −0 docs/data/joy/components/linear-progress/LinearProgressSizes.tsx.preview
  34. +6 −0 docs/data/joy/components/linear-progress/LinearProgressThickness.js
  35. +6 −0 docs/data/joy/components/linear-progress/LinearProgressThickness.tsx
  36. +1 −0 docs/data/joy/components/linear-progress/LinearProgressThickness.tsx.preview
  37. +46 −0 docs/data/joy/components/linear-progress/LinearProgressUsage.js
  38. +35 −0 docs/data/joy/components/linear-progress/LinearProgressVariables.js
  39. +35 −0 docs/data/joy/components/linear-progress/LinearProgressVariables.tsx
  40. +14 −0 docs/data/joy/components/linear-progress/LinearProgressVariants.js
  41. +14 −0 docs/data/joy/components/linear-progress/LinearProgressVariants.tsx
  42. +4 −0 docs/data/joy/components/linear-progress/LinearProgressVariants.tsx.preview
  43. +43 −0 docs/data/joy/components/linear-progress/LinearProgressWithLabel.js
  44. +43 −0 docs/data/joy/components/linear-progress/LinearProgressWithLabel.tsx
  45. +83 −0 docs/data/joy/components/linear-progress/linear-progress.md
  46. +35 −0 docs/data/joy/getting-started/installation/installation.md
  47. +16 −0 docs/data/joy/getting-started/usage/Usage.js
  48. +45 −26 docs/data/joy/getting-started/usage/usage.md
  49. +1 −0 docs/data/joy/pages.ts
  50. +1 −1 docs/data/material/components/bottom-navigation/bottom-navigation.md
  51. +1 −1 docs/data/material/components/image-list/image-list.md
  52. +0 −5 docs/data/material/components/radio-buttons/CustomizedRadios.js
  53. +0 −5 docs/data/material/components/radio-buttons/CustomizedRadios.tsx
  54. +1 −1 docs/data/material/components/snackbars/IntegrationNotistack.js
  55. +1 −1 docs/data/material/components/snackbars/IntegrationNotistack.tsx
  56. +2 −2 docs/data/material/customization/color/ColorTool.js
  57. +69 −72 docs/data/material/getting-started/supported-components/MaterialUIComponents.js
  58. +3 −1 docs/data/material/getting-started/templates/album/README.md
  59. +3 −1 docs/data/material/getting-started/templates/blog/README.md
  60. +3 −1 docs/data/material/getting-started/templates/checkout/README.md
  61. +3 −1 docs/data/material/getting-started/templates/dashboard/README.md
  62. +3 −1 docs/data/material/getting-started/templates/pricing/README.md
  63. +3 −1 docs/data/material/getting-started/templates/sign-in-side/README.md
  64. +3 −1 docs/data/material/getting-started/templates/sign-in/README.md
  65. +3 −1 docs/data/material/getting-started/templates/sign-up/README.md
  66. +3 −1 docs/data/material/getting-started/templates/sticky-footer/README.md
  67. +20 −28 docs/data/material/getting-started/usage/usage.md
  68. +1 −1 docs/data/material/pages.ts
  69. +3 −1 docs/next.config.js
  70. +14 −14 docs/package.json
  71. +1 −1 docs/packages/feedback/package.json
  72. +20 −17 docs/packages/markdown/loader.js
  73. +1 −1 docs/packages/markdown/parseMarkdown.js
  74. +6 −1 docs/pages/_app.js
  75. +6 −4 docs/pages/_document.js
  76. +70 −65 docs/pages/about.tsx
  77. +7 −0 docs/pages/blog/mui-product-comparison.js
  78. +204 −0 docs/pages/blog/mui-product-comparison.md
  79. +105 −90 docs/pages/careers.tsx
  80. +116 −148 docs/pages/experiments/joy/variant-overrides.tsx
  81. +0 −794 docs/pages/experiments/joy/variant.tsx
  82. +7 −0 docs/pages/joy-ui/react-linear-progress.js
  83. +3 −3 docs/pages/templates.tsx
  84. +3 −6 docs/pages/versions.js
  85. BIN docs/public/static/blog/mui-product-comparison/card.png
  86. BIN docs/public/static/blog/mui-product-comparison/ecosystem.png
  87. BIN docs/public/static/blog/mui-product-comparison/mui-core.png
  88. BIN docs/public/static/blog/mui-product-comparison/mui-toolpad.png
  89. BIN docs/public/static/blog/mui-product-comparison/mui-x.png
  90. +50 −28 docs/public/static/styles/prism-okaidia.css
  91. +1 −1 docs/scripts/reportBrokenLinks.js
  92. +13 −7 docs/src/components/action/Frame.tsx
  93. +28 −19 docs/src/components/action/More.tsx
  94. +11 −7 docs/src/components/banner/AppHeaderBanner.tsx
  95. +7 −5 docs/src/components/footer/EmailSubscribe.tsx
  96. +0 −2 docs/src/components/header/HeaderNavBar.tsx
  97. +0 −3 docs/src/components/home/AdvancedShowcase.tsx
  98. +0 −3 docs/src/components/home/CoreShowcase.tsx
  99. +4 −2 docs/src/components/home/GetStartedButtons.tsx
  100. +41 −42 docs/src/components/home/StoreTemplatesBanner.tsx
  101. +1 −1 docs/src/components/icon/IconImage.tsx
  102. +5 −1 docs/src/components/markdown/MarkdownElement.tsx
  103. +3 −3 docs/src/components/pricing/PricingTable.tsx
  104. +67 −40 docs/src/components/productTemplate/TemplateDemo.tsx
  105. +6 −3 docs/src/components/productTemplate/TemplateHero.tsx
  106. +2 −2 docs/src/createEmotionCache.ts
  107. +25 −15 docs/src/layouts/Section.tsx
  108. +3 −8 docs/src/modules/components/AppLayoutDocsFooter.js
  109. +1 −0 docs/src/modules/components/AppSearch.js
  110. +7 −19 docs/src/modules/components/Demo.js
  111. +3 −4 docs/src/modules/components/DemoSandboxed.js
  112. +2 −2 docs/src/modules/components/DemoToolbar.js
  113. +0 −3 docs/src/modules/components/DiamondSponsors.js
  114. +2 −2 docs/src/modules/components/GoogleAnalytics.js
  115. +1 −1 docs/src/modules/components/HighlightedCode.js
  116. +2 −2 docs/src/modules/components/HighlightedCode.test.js
  117. +1 −1 docs/src/modules/components/MarkdownDocs.js
  118. +18 −20 docs/src/modules/components/MarkdownElement.js
  119. +2 −5 docs/src/modules/components/TopLayoutBlog.js
  120. +2 −2 docs/src/modules/utils/CodeCopy.tsx
  121. +6 −4 docs/src/modules/utils/helpers.ts
  122. +1 −1 docs/src/pages/careers/react-engineer-x.md
  123. +1 −1 docs/src/pages/careers/react-support-engineer.md
  124. +1 −1 docs/translations/translations.json
  125. +1 −1 examples/gatsby/plugins/gatsby-plugin-mui-emotion/gatsby-browser.js
  126. +1 −1 examples/mui-base-with-tailwind-css/src/index.tsx
  127. +9 −4 examples/remix-with-typescript/app/entry.client.tsx
  128. +1 −1 examples/tailwind-css/src/index.tsx
  129. +9 −8 package.json
  130. +1 −1 packages/eslint-plugin-material-ui/package.json
  131. +1 −1 packages/mui-base/package.json
  132. +34 −0 packages/mui-base/src/ButtonUnstyled/ButtonUnstyled.test.tsx
  133. +10 −1 packages/mui-base/src/ButtonUnstyled/ButtonUnstyled.tsx
  134. +1 −1 packages/mui-base/src/ButtonUnstyled/ButtonUnstyled.types.ts
  135. +20 −20 packages/mui-base/src/FormControlUnstyled/FormControlUnstyled.tsx
  136. +1 −1 packages/mui-base/src/InputUnstyled/InputUnstyled.types.ts
  137. +1 −1 packages/mui-base/src/ListboxUnstyled/defaultListboxReducer.ts
  138. +10 −7 packages/mui-base/src/MenuUnstyled/MenuUnstyled.tsx
  139. +1 −1 packages/mui-base/src/MenuUnstyled/MenuUnstyled.types.ts
  140. +1 −1 packages/mui-base/src/ModalUnstyled/ModalManager.ts
  141. +1 −1 packages/mui-base/src/ModalUnstyled/ModalUnstyled.types.ts
  142. +8 −5 packages/mui-base/src/MultiSelectUnstyled/MultiSelectUnstyled.tsx
  143. +1 −1 packages/mui-base/src/OptionGroupUnstyled/OptionGroupUnstyled.tsx
  144. +1 −1 packages/mui-base/src/OptionGroupUnstyled/OptionGroupUnstyled.types.ts
  145. +1 −1 packages/mui-base/src/OptionUnstyled/OptionUnstyled.tsx
  146. +1 −1 packages/mui-base/src/OptionUnstyled/OptionUnstyled.types.ts
  147. +8 −5 packages/mui-base/src/SelectUnstyled/SelectUnstyled.tsx
  148. +1 −1 packages/mui-base/src/SelectUnstyled/useSelect.types.ts
  149. +1 −1 packages/mui-base/src/SelectUnstyled/utils.tsx
  150. +1 −1 packages/mui-base/src/SliderUnstyled/SliderUnstyled.types.ts
  151. +1 −1 packages/mui-base/src/SliderUnstyled/useSlider.types.ts
  152. +1 −1 packages/mui-base/src/SnackbarUnstyled/SnackbarUnstyled.types.ts
  153. +1 −1 packages/mui-base/src/SwitchUnstyled/useSwitch.test.tsx
  154. +2 −2 packages/mui-base/src/SwitchUnstyled/useSwitch.types.ts
  155. +1 −1 packages/mui-base/src/TabUnstyled/TabUnstyled.types.ts
  156. +1 −1 packages/mui-base/src/TabUnstyled/useTab.types.ts
  157. +1 −1 packages/mui-base/src/TabsListUnstyled/TabsListUnstyled.types.ts
  158. +1 −1 packages/mui-base/src/TabsUnstyled/TabsUnstyled.types.ts
  159. +1 −1 packages/mui-base/src/utils/appendOwnerState.ts
  160. +1 −1 packages/mui-base/src/utils/isHostComponent.ts
  161. +1 −1 packages/mui-base/src/utils/useSlotProps.test.tsx
  162. +1 −1 packages/mui-codemod/package.json
  163. +1 −1 packages/mui-codemod/src/v5.0.0/jss-to-styled.js
  164. +1 −1 packages/mui-codemod/src/v5.0.0/jss-to-tss-react.test/actual-todo-comments.js
  165. +1 −1 packages/mui-codemod/src/v5.0.0/jss-to-tss-react.test/expected-todo-comments.js
  166. +1 −1 packages/mui-core-downloads-tracker/package.json
  167. +1 −1 packages/mui-envinfo/envinfo.test.js
  168. +1 −1 packages/mui-envinfo/package.json
  169. +4 −4 packages/mui-joy/package.json
  170. +10 −7 packages/mui-joy/src/AvatarGroup/AvatarGroup.tsx
  171. +4 −1 packages/mui-joy/src/Button/Button.tsx
  172. +3 −2 packages/mui-joy/src/Button/ButtonProps.ts
  173. +6 −1 packages/mui-joy/src/Chip/Chip.tsx
  174. +11 −5 packages/mui-joy/src/CircularProgress/CircularProgress.tsx
  175. +17 −16 packages/mui-joy/src/FormControl/FormControl.tsx
  176. +1 −1 packages/mui-joy/src/Grid/GridProps.ts
  177. +1 −1 packages/mui-joy/src/IconButton/IconButtonProps.ts
  178. +22 −14 packages/mui-joy/src/Input/Input.tsx
  179. +3 −3 packages/mui-joy/src/Input/InputProps.ts
  180. +74 −0 packages/mui-joy/src/LinearProgress/LinearProgress.test.tsx
  181. +269 −0 packages/mui-joy/src/LinearProgress/LinearProgress.tsx
  182. +64 −0 packages/mui-joy/src/LinearProgress/LinearProgressProps.ts
  183. +4 −0 packages/mui-joy/src/LinearProgress/index.ts
  184. +63 −0 packages/mui-joy/src/LinearProgress/linearProgressClasses.ts
  185. +1 −1 packages/mui-joy/src/Link/LinkProps.ts
  186. +10 −7 packages/mui-joy/src/Menu/Menu.tsx
  187. +12 −8 packages/mui-joy/src/MenuList/MenuList.tsx
  188. +3 −1 packages/mui-joy/src/ModalDialog/ModalDialog.tsx
  189. +20 −19 packages/mui-joy/src/RadioGroup/RadioGroup.tsx
  190. +9 −6 packages/mui-joy/src/Select/Select.tsx
  191. +1 −1 packages/mui-joy/src/Select/SelectProps.ts
  192. +24 −2 packages/mui-joy/src/Sheet/Sheet.tsx
  193. +5 −0 packages/mui-joy/src/Sheet/SheetProps.ts
  194. +29 −28 packages/mui-joy/src/SvgIcon/SvgIcon.tsx
  195. +2 −2 packages/mui-joy/src/SvgIcon/SvgIconProps.ts
  196. +13 −5 packages/mui-joy/src/Textarea/Textarea.tsx
  197. +3 −3 packages/mui-joy/src/Textarea/TextareaProps.ts
  198. +123 −0 packages/mui-joy/src/styles/ColorInversion.test.js
  199. +41 −0 packages/mui-joy/src/styles/ColorInversion.tsx
  200. +15 −22 packages/mui-joy/src/styles/CssVarsProvider.test.tsx
  201. +16 −3 packages/mui-joy/src/styles/CssVarsProvider.tsx
  202. +9 −0 packages/mui-joy/src/styles/components.d.ts
  203. +3 −1 packages/mui-joy/src/styles/defaultTheme.test.js
  204. +30 −0 packages/mui-joy/src/styles/defaultTheme.ts
  205. +18 −1 packages/mui-joy/src/styles/extendTheme.spec.ts
  206. +1 −0 packages/mui-joy/src/styles/extendTheme.test.js
  207. +17 −27 packages/mui-joy/src/styles/extendTheme.ts
  208. +1 −0 packages/mui-joy/src/styles/index.ts
  209. +7 −6 packages/mui-joy/src/styles/types/colorSystem.ts
  210. +3 −1 packages/mui-joy/src/styles/types/theme.ts
  211. +32 −28 packages/mui-joy/src/styles/types/variants.ts
  212. +1 −42 packages/mui-joy/src/styles/variantUtils.test.js
  213. +317 −84 packages/mui-joy/src/styles/variantUtils.ts
  214. +3 −3 packages/mui-lab/package.json
  215. +4 −1 packages/mui-lab/src/Timeline/Timeline.tsx
  216. +6 −1 packages/mui-lab/src/TimelineItem/TimelineItem.js
  217. +2 −0 packages/mui-lab/src/TreeView/TreeView.js
  218. +4 −4 packages/mui-material-next/package.json
  219. +1 −1 packages/mui-material-next/src/Button/TouchRipple.js
  220. +4 −4 packages/mui-material/package.json
  221. +1 −1 packages/mui-material/scripts/rollup.config.js
  222. +1 −1 packages/mui-material/src/ButtonBase/TouchRipple.js
  223. +10 −7 packages/mui-material/src/Chip/Chip.js
  224. +20 −1 packages/mui-material/src/Chip/Chip.test.js
  225. +31 −20 packages/mui-material/src/FormControl/FormControl.js
  226. +7 −12 packages/mui-material/src/IconButton/IconButton.test.js
  227. +1 −1 packages/mui-material/src/InputBase/InputBase.spec.tsx
  228. +8 −5 packages/mui-material/src/ListItem/ListItem.js
  229. +8 −5 packages/mui-material/src/ListItemButton/ListItemButton.js
  230. +7 −4 packages/mui-material/src/MenuItem/MenuItem.js
  231. +19 −17 packages/mui-material/src/Radio/Radio.js
  232. +15 −8 packages/mui-material/src/RadioGroup/RadioGroup.js
  233. +13 −2 packages/mui-material/src/SwipeableDrawer/SwipeableDrawer.js
  234. +74 −0 packages/mui-material/src/SwipeableDrawer/SwipeableDrawer.test.js
  235. +1 −1 packages/mui-material/src/Tooltip/Tooltip.js
  236. +133 −129 packages/mui-material/src/Tooltip/Tooltip.test.js
  237. +1 −1 packages/mui-material/src/Unstable_Grid2/Grid2Props.ts
  238. +1 −1 packages/mui-system/package.json
  239. +3 −1 packages/mui-system/src/ThemeProvider/ThemeProvider.js
  240. +24 −12 packages/mui-system/src/cssVars/createCssVarsProvider.js
  241. +1 −1 packages/typescript-to-proptypes/src/injector.ts
  242. +4 −0 renovate.json
  243. +1 −1 test/cli.js
  244. +4 −9 test/karma.conf.js
  245. +242 −197 yarn.lock
1 change: 1 addition & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -346,6 +346,7 @@ jobs:
exit 0
test_browser:
<<: *defaults
resource_class: 'medium+'
docker:
- image: mcr.microsoft.com/playwright:v1.27.1-focal
environment:
18 changes: 14 additions & 4 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const path = require('path');
const { rules: baseStyleRules } = require('eslint-config-airbnb-base/rules/style');

const forbidTopLevelMessage = [
'Prefer one level nested imports to avoid bundling everything in dev mode',
@@ -19,10 +20,10 @@ module.exports = {
node: true,
},
extends: [
'plugin:import/recommended',
'plugin:import/typescript',
'airbnb-typescript',
'prettier',
'plugin:eslint-plugin-import/recommended',
'plugin:eslint-plugin-import/typescript',
'eslint-config-airbnb-typescript',
'eslint-config-prettier',
],
parser: '@typescript-eslint/parser',
parserOptions: {
@@ -161,6 +162,15 @@ module.exports = {
'react/static-property-placement': 'off',
// Currently not in recommended ruleset but catches real bugs.
'react/no-unstable-nested-components': 'error',
'no-restricted-syntax': [
// See https://github.com/eslint/eslint/issues/9192 for why it's needed
...baseStyleRules['no-restricted-syntax'],
{
message:
"Do not import default from React. Use a namespace import (import * as React from 'react';) instead.",
selector: 'ImportDeclaration[source.value="react"] ImportDefaultSpecifier',
},
],
},
overrides: [
{
10 changes: 4 additions & 6 deletions .github/ISSUE_TEMPLATE/1.bug.yml
Original file line number Diff line number Diff line change
@@ -26,14 +26,12 @@ body:
attributes:
label: Steps to reproduce 🕹
description: |
Please provide a link to a live example and an unambiguous set of steps to reproduce this bug.
As a starting point, we recommend you browse our [documentation](https://mui.com/material-ui/getting-started/installation/), and [select](https://mui.com/static/docs/forking-an-example.png) the closest example to your use case.
**⚠️ Issues that we can't reproduce will be closed.**
Or you can use the [official template](https://mui.com/r/issue-template) to build a reproduction case.
Issues that we can't reproduce will be closed.
Please provide a link to a live example and an unambiguous set of steps to reproduce this bug. As a starting point, we recommend you browse our [documentation](https://mui.com/material-ui/getting-started/installation/), and [select](https://mui.com/static/docs/forking-an-example.png) the closest example to your use case. Or you can use the [official template](https://mui.com/r/issue-template) to build a reproduction case.
value: |
Link to live example:
Steps:
1.
4 changes: 4 additions & 0 deletions .github/codeql/codeql-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
name: CodeQL configuration

paths-ignore:
- 'packages/mui-icons-material/lib/esm/**'
2 changes: 1 addition & 1 deletion .github/workflows/check-if-pr-has-label.yml
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@ jobs:
permissions:
contents: read
steps:
- uses: mnajdova/github-action-required-labels@v2.1
- uses: mnajdova/github-action-required-labels@ca0df9249827e43aa4b4a0d25d9fe3e9b19b0705 # tag=v2.1
with:
mode: minimum
count: 1
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -19,12 +19,12 @@ jobs:
os: [macos-latest, windows-latest, ubuntu-latest]
steps:
- run: echo "${{ github.actor }}"
- uses: actions/checkout@v3
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag=v3
with:
# fetch all tags which are required for `yarn release:changelog`
fetch-depth: 0
- name: Use Node.js 14.x
uses: actions/setup-node@v3
uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # tag=v3
with:
node-version: 14
cache: 'yarn' # https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#caching-packages-dependencies
24 changes: 7 additions & 17 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: 'CodeQL'
name: CodeQL

on:
schedule:
- cron: '0 2 * * 1-5'
- cron: '0 2 * * *'

jobs:
analyze:
@@ -12,30 +12,20 @@ jobs:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: ['javascript', 'typescript']
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support

steps:
- name: Checkout repository
uses: actions/checkout@v3

uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag=v3
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@ec3cf9c605b848da5f1e41e8452719eb1ccfb9a6 # tag=v2
with:
languages: ${{ matrix.language }}
languages: typescript
config-file: ./.github/codeql/codeql-config.yml
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: '/language:${{matrix.language}}'
uses: github/codeql-action/analyze@ec3cf9c605b848da5f1e41e8452719eb1ccfb9a6 # tag=v2
3 changes: 1 addition & 2 deletions .github/workflows/mark-duplicate.yml
Original file line number Diff line number Diff line change
@@ -10,10 +10,9 @@ jobs:
permissions:
contents: read
issues: write
pull-requests: write
steps:
- name: mark-duplicate
uses: actions-cool/issues-helper@v3
uses: actions-cool/issues-helper@02811b26b65e9c0da5f1d8a0095b53478d6591a2 # tag=v3
with:
actions: 'mark-duplicate'
token: ${{ secrets.GITHUB_TOKEN }}
6 changes: 3 additions & 3 deletions .github/workflows/no-response.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: No Response
name: No response

# Both `issue_comment` and `scheduled` event types are required for this Action
# to work properly.
@@ -14,9 +14,9 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
issues: write
steps:
- uses: lee-dohm/no-response@v0.5.0
- uses: lee-dohm/no-response@9bb0a4b5e6a45046f00353d5de7d90fb8bd773bb # tag=v0.5.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
# Number of days of inactivity before an Issue is closed for lack of response
46 changes: 46 additions & 0 deletions .github/workflows/scorecards.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Scorecards supply-chain security
on:
# Only the default branch is supported.
branch_protection_rule:
schedule:
- cron: '0 2 * * *'

jobs:
analysis:
name: Scorecards analysis
runs-on: ubuntu-latest
permissions:
# Needed to upload the results to code-scanning dashboard.
security-events: write
# Used to receive a badge.
id-token: write
# Needs for private repositories.
contents: read
actions: read

steps:
- name: Checkout code
uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # renovate: tag=v3.0.0
with:
persist-credentials: false

- name: Run analysis
uses: ossf/scorecard-action@865b4092859256271290c77adbd10a43f4779972 # renovate: tag=v2.0.3
with:
results_file: results.sarif
results_format: sarif
# (Optional) Read-only PAT token. Uncomment the `repo_token` line below if:
# - you want to enable the Branch-Protection check on a *public* repository, or
# - you are installing Scorecards on a *private* repository
# To create the PAT, follow the steps in https://github.com/ossf/scorecard-action#authentication-with-pat.
# repo_token: ${{ secrets.SCORECARD_READ_TOKEN }}

# Publish the results for public repositories to enable scorecard badges. For more details, see
# https://github.com/ossf/scorecard-action#publishing-results.
publish_results: true

# Upload the results to GitHub's code scanning dashboard.
- name: Upload to code-scanning
uses: github/codeql-action/upload-sarif@5f532563584d71fdef14ee64d17bafb34f751ce5 # renovate: tag=v1.0.26
with:
sarif_file: results.sarif
2 changes: 1 addition & 1 deletion .github/workflows/support-stackoverflow.yml
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ jobs:
contents: read
issues: write
steps:
- uses: dessant/support-requests@v2
- uses: dessant/support-requests@876a4de3922dd57434a451e58ad679f986c5da97 # tag=v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
# Label used to mark issues as support requests
76 changes: 76 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,81 @@
# [Versions](https://mui.com/versions/)

## v5.10.12

<!-- generated comparing v5.10.11..master -->

_Oct 31, 2022_

A big thanks to the 16 contributors who made this release possible. Here are some highlights ✨:

- 🚀 The LinearProgress component has been added to Joy UI by @hbjORbj (#34514).
- Many other 🐛 bug fixes, 📚 documentation, and ⚙️ infrastructure improvements.

### `@mui/material@5.10.12`

- &#8203;<!-- 37 -->[Chip] Don't override icon color (#34247) @emlai
- &#8203;<!-- 09 -->[Radio] Skip default hover style when disableRipple is set (#34902) @VinceCYLiao
- &#8203;<!-- 08 -->[SwipeableDrawer] Fix React 18 issues (#34505) @mnajdova
- &#8203;<!-- 05 -->[Tooltip] Save a few bytes (#34853) @oliviertassinari

### `@mui/base@5.0.0-alpha.104`

- &#8203;<!-- 38 -->[ButtonUnstyled] Update to render as link when href or to is provided (#34337) @EduardoSCosta

### `@mui/joy@5.0.0-alpha.52`

- &#8203;<!-- 36 -->[Joy][circularprogress] Prevent new styles from being generated when `value` changes (#34897) @hbjORbj
- &#8203;<!-- 11 -->[Joy] Add color inversion feature (#32511) @siriwatknp
- &#8203;<!-- 10 -->[Joy] Add `LinearProgress` component (#34514) @hbjORbj

### Docs

- &#8203;<!-- 40 -->[blog] Add blog post for high-level overview of all MUI products (#34325) @samuelsycamore
- &#8203;<!-- 39 -->[blog] Fix hydration mistmatch (#34857) @oliviertassinari
- &#8203;<!-- 21 -->[docs] Revise the Joy UI "Aspect Ratio" page (#34858) @samuelsycamore
- &#8203;<!-- 20 -->[docs] Fix Safari code font size (#34859) @oliviertassinari
- &#8203;<!-- 19 -->[docs] Fix spelling mistake (#34955) @punithnayak
- &#8203;<!-- 18 -->[docs] Fix 404 link of supported Material UI components @oliviertassinari
- &#8203;<!-- 17 -->[docs] Fix Safari button misalignment (#34861) @oliviertassinari
- &#8203;<!-- 16 -->[docs] Fix typo in docs title (#34926) @PunitSoniME
- &#8203;<!-- 25 -->[docs] Fix missing emotion prefixes (#34958) @oliviertassinari
- &#8203;<!-- 26 -->[docs] Improve UI display for copy code (#34950) @oliviertassinari
- &#8203;<!-- 15 -->[docs] Standardize all MUI Core "Usage" pages (#34183) @samuelsycamore
- &#8203;<!-- 14 -->[docs] Update templates' readme files to include required dependencies (#34757) @michaldudak
- &#8203;<!-- 13 -->[docs] Fix inconsistent theme colors when applying custom colors in playground (#34866) @cherniavskii
- &#8203;<!-- 12 -->[docs] Fix typo in bottom-navigation.md (#34884) @RoodyCode
- &#8203;<!-- 07 -->[website] Migrate about-us page to use CSS theme variables (#34919) @brianlu2610
- &#8203;<!-- 06 -->[website] Migrate Product-Templates page to use CSS theme variables (#34913) @EduardoSCosta
- &#8203;<!-- 05 -->[website] Migrate career page to use CSS theme variables (#34908) @the-mgi
- &#8203;<!-- 04 -->[website] Update MUI X open and future roles + about page (#34894) @DanailH
- &#8203;<!-- 03 -->[website] Remove one DOM node (#34960) @oliviertassinari
- &#8203;<!-- 02 -->[website] Use `span` for icon image (#34914) @siriwatknp
- &#8203;<!-- 01 -->[website] Fix subscribe input with Safari (#34869) @oliviertassinari

### Core

- &#8203;<!-- 35 -->[core] Ignore compiled icons in CodeQL @oliviertassinari
- &#8203;<!-- 34 -->[core] Add OSSF Scorecard action (#34854) @oliviertassinari
- &#8203;<!-- 40 -->[core] Fix extra GitHub Action permission (#34496) @sashashura
- &#8203;<!-- 33 -->[core] Fix duplicate id @oliviertassinari
- &#8203;<!-- 41 -->[core] Enforce import \* as React (#34878) @da0x
- &#8203;<!-- 32 -->[core] A couple of simply fixes from #34870 (#34953) @oliviertassinari
- &#8203;<!-- 31 -->[core] Migrate outdated pattern to convention @oliviertassinari
- &#8203;<!-- 30 -->[core] Pin GitHub Actions dependencies (#34929) @renovate[bot]
- &#8203;<!-- 29 -->[core] Make the reproduction more important in the bug template (#34875) @oliviertassinari
- &#8203;<!-- 28 -->[core] Fix docs GitHub API rate limit (#34856) @oliviertassinari
- &#8203;<!-- 42 -->[core] Fix eslint issues (#34964) @mnajdova
- &#8203;<!-- 27 -->[core] Pin GitHub Action to digests (#34855) @oliviertassinari
- &#8203;<!-- 26 -->[core] Fix permissions in workflow @oliviertassinari
- &#8203;<!-- 25 -->[core] memoize context values for react/jsx-no-constructed-context-values (#34849) @Janpot
- &#8203;<!-- 24 -->[core] Fix @typescript-eslint/default-param-last issues (#34846) @Janpot
- &#8203;<!-- 23 -->[core] Fix HTML validation error (#34860) @oliviertassinari
- &#8203;<!-- 22 -->[core] Fix duplicate CodeQL build @oliviertassinari
- &#8203;<!-- 07 -->[test] Move Firefox tests to CircleCI (#34764) @oliviertassinari
- &#8203;<!-- 06 -->[test] Use screen when possible for simplicity (#34890) @oliviertassinari

All contributors of this release in alphabetical order: @cherniavskii, @DanailH, @EduardoSCosta, @emlai, @hbjORbj, @Janpot, @michaldudak, @mnajdova, @oliviertassinari, @punithnayak, @PunitSoniME, @renovate[bot], @RoodyCode, @samuelsycamore, @siriwatknp, @VinceCYLiao

## v5.10.11

<!-- generated comparing v5.10.10..master -->
8 changes: 4 additions & 4 deletions benchmark/package.json
Original file line number Diff line number Diff line change
@@ -11,13 +11,13 @@
"server:system": "cd ../ && cross-env NODE_ENV=production BABEL_ENV=benchmark babel-node benchmark/server/scenarios/system.js --inspect=0.0.0.0:9229 --extensions \".tsx,.ts,.js\""
},
"dependencies": {
"@chakra-ui/system": "^2.2.12",
"@chakra-ui/system": "^2.3.0",
"@emotion/react": "^11.10.4",
"@emotion/styled": "^11.10.4",
"@mdx-js/react": "^2.1.5",
"@mui/material": "^5.10.11",
"@mui/material": "^5.10.12",
"@mui/styles": "^5.10.10",
"@mui/system": "^5.10.10",
"@mui/system": "^5.10.12",
"@styled-system/css": "^5.1.5",
"benchmark": "^2.1.4",
"playwright": "^1.27.1",
@@ -29,7 +29,7 @@
"redux": "^4.2.0",
"serve-handler": "^6.1.3",
"styled-components": "^5.3.6",
"theme-ui": "^0.15.1",
"theme-ui": "^0.15.3",
"webpack": "^5.74.0",
"webpack-cli": "^4.10.0"
}
17 changes: 10 additions & 7 deletions docs/data/base/components/menu/UseMenu.js
Original file line number Diff line number Diff line change
@@ -150,13 +150,16 @@ const Menu = React.forwardRef(function Menu(props, ref) {
open,
});

const contextValue = {
registerItem,
unregisterItem,
getItemState,
getItemProps,
open: true,
};
const contextValue = React.useMemo(
() => ({
registerItem,
unregisterItem,
getItemState,
getItemProps,
open: true,
}),
[getItemProps, getItemState, registerItem, unregisterItem],
);

return (
<ul className="menu-root" {...other} {...getListboxProps()}>
17 changes: 10 additions & 7 deletions docs/data/base/components/menu/UseMenu.tsx
Original file line number Diff line number Diff line change
@@ -159,13 +159,16 @@ const Menu = React.forwardRef(function Menu(
open,
});

const contextValue: MenuUnstyledContextType = {
registerItem,
unregisterItem,
getItemState,
getItemProps,
open: true,
};
const contextValue: MenuUnstyledContextType = React.useMemo(
() => ({
registerItem,
unregisterItem,
getItemState,
getItemProps,
open: true,
}),
[getItemProps, getItemState, registerItem, unregisterItem],
);

return (
<ul className="menu-root" {...other} {...getListboxProps()}>
Loading