@mui/utils 5.13.6 → 5.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +254 -11
- package/ClassNameGenerator/ClassNameGenerator.d.ts +6 -6
- package/ClassNameGenerator/index.d.ts +1 -1
- package/HTMLElementType/HTMLElementType.d.ts +3 -3
- package/HTMLElementType/index.d.ts +1 -1
- package/capitalize/capitalize.d.ts +1 -1
- package/capitalize/index.d.ts +1 -1
- package/chainPropTypes/chainPropTypes.d.ts +2 -2
- package/chainPropTypes/index.d.ts +1 -1
- package/composeClasses/composeClasses.d.ts +1 -1
- package/composeClasses/index.d.ts +1 -1
- package/createChainedFunction.d.ts +7 -7
- package/debounce/debounce.d.ts +4 -4
- package/debounce/index.d.ts +2 -2
- package/deepmerge.d.ts +5 -5
- package/elementAcceptingRef.d.ts +3 -3
- package/elementTypeAcceptingRef.d.ts +3 -3
- package/esm/index.js +2 -0
- package/esm/useControlled/index.js +2 -0
- package/esm/useControlled/useControlled.js +2 -0
- package/esm/useEnhancedEffect/index.js +2 -0
- package/esm/useEnhancedEffect/useEnhancedEffect.js +2 -0
- package/esm/useEventCallback/index.js +2 -0
- package/esm/useEventCallback/useEventCallback.js +6 -2
- package/esm/useForkRef/index.js +2 -0
- package/esm/useForkRef/useForkRef.js +2 -0
- package/esm/useId/index.js +2 -0
- package/esm/useId/useId.js +2 -0
- package/esm/useIsFocusVisible.js +2 -0
- package/esm/usePreviousProps.js +2 -0
- package/exactProp/exactProp.d.ts +2 -2
- package/exactProp/index.d.ts +1 -1
- package/formatMuiErrorMessage.d.ts +6 -6
- package/generateUtilityClass/generateUtilityClass.d.ts +2 -2
- package/generateUtilityClass/index.d.ts +2 -2
- package/generateUtilityClasses/generateUtilityClasses.d.ts +1 -1
- package/generateUtilityClasses/index.d.ts +1 -1
- package/getDisplayName.d.ts +8 -8
- package/getScrollbarSize.d.ts +1 -1
- package/index.d.ts +38 -38
- package/index.js +2 -1
- package/integerPropType.d.ts +7 -7
- package/isMuiElement.d.ts +1 -1
- package/legacy/index.js +3 -1
- package/legacy/useControlled/index.js +2 -0
- package/legacy/useControlled/useControlled.js +2 -0
- package/legacy/useEnhancedEffect/index.js +2 -0
- package/legacy/useEnhancedEffect/useEnhancedEffect.js +2 -0
- package/legacy/useEventCallback/index.js +2 -0
- package/legacy/useEventCallback/useEventCallback.js +6 -2
- package/legacy/useForkRef/index.js +2 -0
- package/legacy/useForkRef/useForkRef.js +2 -0
- package/legacy/useId/index.js +2 -0
- package/legacy/useId/useId.js +2 -0
- package/legacy/useIsFocusVisible.js +2 -0
- package/legacy/usePreviousProps.js +2 -0
- package/modern/index.js +3 -1
- package/modern/useControlled/index.js +2 -0
- package/modern/useControlled/useControlled.js +2 -0
- package/modern/useEnhancedEffect/index.js +2 -0
- package/modern/useEnhancedEffect/useEnhancedEffect.js +2 -0
- package/modern/useEventCallback/index.js +2 -0
- package/modern/useEventCallback/useEventCallback.js +6 -2
- package/modern/useForkRef/index.js +2 -0
- package/modern/useForkRef/useForkRef.js +2 -0
- package/modern/useId/index.js +2 -0
- package/modern/useId/useId.js +2 -0
- package/modern/useIsFocusVisible.js +2 -0
- package/modern/usePreviousProps.js +2 -0
- package/ownerDocument/index.d.ts +1 -1
- package/ownerDocument/ownerDocument.d.ts +1 -1
- package/ownerWindow/index.d.ts +1 -1
- package/ownerWindow/ownerWindow.d.ts +1 -1
- package/package.json +3 -3
- package/ponyfillGlobal/index.d.ts +1 -1
- package/ponyfillGlobal/ponyfillGlobal.d.ts +2 -2
- package/refType.d.ts +3 -3
- package/resolveProps.d.ts +12 -12
- package/setRef.d.ts +15 -15
- package/useControlled/index.js +1 -0
- package/useControlled/useControlled.js +2 -2
- package/useEnhancedEffect/index.d.ts +1 -1
- package/useEnhancedEffect/index.js +1 -0
- package/useEnhancedEffect/useEnhancedEffect.d.ts +3 -3
- package/useEnhancedEffect/useEnhancedEffect.js +1 -0
- package/useEventCallback/index.d.ts +1 -1
- package/useEventCallback/index.js +1 -0
- package/useEventCallback/useEventCallback.d.ts +6 -4
- package/useEventCallback/useEventCallback.js +6 -2
- package/useEventCallback/useEventCallback.spec.d.ts +1 -1
- package/useForkRef/index.d.ts +1 -1
- package/useForkRef/index.js +1 -0
- package/useForkRef/useForkRef.d.ts +2 -2
- package/useForkRef/useForkRef.js +1 -0
- package/useId/index.d.ts +1 -1
- package/useId/index.js +1 -0
- package/useId/useId.d.ts +7 -7
- package/useId/useId.js +1 -0
- package/useIsFocusVisible.d.ts +9 -9
- package/useIsFocusVisible.js +2 -2
- package/usePreviousProps.d.ts +2 -2
- package/usePreviousProps.js +1 -0
- package/visuallyHidden.d.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,248 @@
|
|
|
1
1
|
# [Versions](https://mui.com/versions/)
|
|
2
2
|
|
|
3
|
+
## 5.14.1
|
|
4
|
+
|
|
5
|
+
<!-- generated comparing v5.14.0..master -->
|
|
6
|
+
|
|
7
|
+
_Jul 19, 2023_
|
|
8
|
+
|
|
9
|
+
A big thanks to the 24 contributors who made this release possible. Here are some highlights ✨:
|
|
10
|
+
|
|
11
|
+
- 💫 Introducing some new components for Joy UI:
|
|
12
|
+
- [Skeleton](https://mui.com/joy-ui/react-skeleton/) component (#37893) @siriwatknp
|
|
13
|
+
- [ToggleButton](https://mui.com/joy-ui/react-toggle-button-group/) (#37716) @siriwatknp
|
|
14
|
+
- 🎉 Base UI has its own [landing page](https://www.mui.com/base-ui)!
|
|
15
|
+
- 🐛 bug fixes, 📚 documentation, and ⚙️ infrastructure improvements.
|
|
16
|
+
|
|
17
|
+
### `@mui/material@5.14.1`
|
|
18
|
+
|
|
19
|
+
- ​<!-- 14 -->[FormControlLabel] Fix misplaced asterisk when `labelPlacement` is provided (#37831) @ZeeshanTamboli
|
|
20
|
+
- ​<!-- 11 -->[Slider][material] Fix type dependency on @types/prop-types (#37853) @Methuselah96
|
|
21
|
+
- ​<!-- 10 -->[Menu] Add MuiMenuList to createTheme components key (#37956) @mj12albert
|
|
22
|
+
- ​<!-- 09 -->[Modal] Remove deprecated `BackdropComponent` and `BackdropProps` from tests (#38018) @sai6855
|
|
23
|
+
|
|
24
|
+
### `@mui/material-next@6.0.0-alpha.93`
|
|
25
|
+
|
|
26
|
+
- ​<!-- 54 -->[Slider][material-next] Add use client directive to useSliderElementsOverlap (#37955) @mj12albert
|
|
27
|
+
- ​<!-- 47 -->[Button][material-next] Fix some event handlers being ignored (#37647) @DiegoAndai
|
|
28
|
+
|
|
29
|
+
### `@mui/base@5.0.0-beta.8`
|
|
30
|
+
|
|
31
|
+
- ​<!-- 53 -->[Autocomplete] Make touch and click behavior on an option consistent (#37972) @divyammadhok
|
|
32
|
+
|
|
33
|
+
### `@mui/joy@5.0.0-alpha.88`
|
|
34
|
+
|
|
35
|
+
- ​<!-- 13 -->[Joy][Select] Fix type error caused by custom variant (#37996) @OmPr366
|
|
36
|
+
- ​<!-- 12 -->[ToggleButton][Joy] Add `ToggleButton` component (#37716) @siriwatknp
|
|
37
|
+
- ​<!-- 07 -->[Skeleton] Add Joy UI `Skeleton` component (#37893) @siriwatknp
|
|
38
|
+
|
|
39
|
+
### `@mui/utils@5.14.1`
|
|
40
|
+
|
|
41
|
+
- ​<!-- 06 -->[utils] Add function overload for `useEventCallback` (#37827) @cherniavskii
|
|
42
|
+
|
|
43
|
+
### Docs
|
|
44
|
+
|
|
45
|
+
- ​<!-- 52 -->[docs][base] Add Tailwind CSS & plain CSS demo on the form control page (#37914) @mnajdova
|
|
46
|
+
- ​<!-- 51 -->[docs][base] Make Base UI Select demos denser (#37836) @zanivan
|
|
47
|
+
- ​<!-- 38 -->[docs] Link Material UI from the landing page (#37971) @oliviertassinari
|
|
48
|
+
- ​<!-- 37 -->[docs] Fix the empty /components page (#38010) @brijeshb42
|
|
49
|
+
- ​<!-- 36 -->[docs] Checkout template follows user's color scheme preference (#37928) @OndrejHj04
|
|
50
|
+
- ​<!-- 35 -->[docs] Disable ad for onboarding pages (#37998) @oliviertassinari
|
|
51
|
+
- ​<!-- 34 -->[docs] Fix broken link to Base UI Next.js App Router (#37973) @oliviertassinari
|
|
52
|
+
- ​<!-- 33 -->[docs] Fix typo in next-js-app-router.md (#37974) @ericbrian
|
|
53
|
+
- ​<!-- 32 -->[docs] Add pnpm commands to Material UI Installation page (#36650) @officialrajdeepsingh
|
|
54
|
+
- ​<!-- 31 -->[docs] Link charts in the roadmap (#37944) @oliviertassinari
|
|
55
|
+
- ​<!-- 30 -->[docs] Improve changelog @oliviertassinari
|
|
56
|
+
- ​<!-- 29 -->[docs] Improve the Select docs (#37279) @michaldudak
|
|
57
|
+
- ​<!-- 16 -->[docs][menu] Add Tailwind CSS & plain CSS demo on the Menu page (#37856) @mnajdova
|
|
58
|
+
- ​<!-- 15 -->[example] Update EmotionCacheProvider to work with GlobalStyles (#37962) @siriwatknp
|
|
59
|
+
|
|
60
|
+
### Core
|
|
61
|
+
|
|
62
|
+
- ​<!-- 50 -->[blog] Add blog post about support for Next.js App Router (#37929) @samuelsycamore
|
|
63
|
+
- ​<!-- 49 -->[blog] Blog MUI X pro statement removed (#38015) @prakhargupta1
|
|
64
|
+
- ​<!-- 48 -->[blog] Add Toolpad beta announcement blog (#37799) @prakhargupta1
|
|
65
|
+
- ​<!-- 46 -->[core] Increase space available for sidenav @oliviertassinari
|
|
66
|
+
- ​<!-- 45 -->[core] Adds `component` prop to `OverrideProps` type (#35924) @sai6855
|
|
67
|
+
- ​<!-- 44 -->[core] Fix rsc build step in CI (#38019) @mj12albert
|
|
68
|
+
- ​<!-- 43 -->[core] Remove nx dependency (#37964) @Janpot
|
|
69
|
+
- ​<!-- 42 -->[core] Lock `@types/node` to v18 (#37965) @ZeeshanTamboli
|
|
70
|
+
- ​<!-- 41 -->[core] Update priority support issue template and prompt (#37824) @DanailH
|
|
71
|
+
- ​<!-- 40 -->[core] Remove warnings in docs:api (#37858) @alexfauquette
|
|
72
|
+
- ​<!-- 39 -->[core] Make rimraf work after a major update (#37930) @michaldudak
|
|
73
|
+
- ​<!-- 28 -->[docs-infra] Change the Diamond Sponsor block positioning on the side nav (#37933) @danilo-leal
|
|
74
|
+
- ​<!-- 27 -->[docs-infra] Support backticks in the codeblocks (#37950) @cherniavskii
|
|
75
|
+
- ​<!-- 26 -->[docs-infra] Improve performance hideToolbar: true (#37969) @oliviertassinari
|
|
76
|
+
- ​<!-- 25 -->[docs-infra] Fix button label on mobile (#37997) @oliviertassinari
|
|
77
|
+
- ​<!-- 24 -->[docs-infra] Square drawer corners (#37970) @oliviertassinari
|
|
78
|
+
- ​<!-- 23 -->[docs-infra] Improve tab contrast in codeblock (#38000) @oliviertassinari
|
|
79
|
+
- ​<!-- 22 -->[docs-infra] Fix API generation for Base UI (#37941) @oliviertassinari
|
|
80
|
+
- ​<!-- 21 -->[docs-infra] Fix layout shift on xGrid (#37954) @oliviertassinari
|
|
81
|
+
- ​<!-- 20 -->[docs-infra] Update installation commands to use the new tabs code component (#37927) @danilo-leal
|
|
82
|
+
- ​<!-- 19 -->[docs-infra] Improve disableToc={true} support (#37931) @oliviertassinari
|
|
83
|
+
- ​<!-- 18 -->[docs-infra] Remove icons and tweak the design of the side nav (#37860) @danilo-leal
|
|
84
|
+
- ​<!-- 17 -->[docs-infra] Fix TypeScrit error in demo export (#37830) @oliviertassinari
|
|
85
|
+
- ​<!-- 08 -->[notifications] Add notification for first Charts release (#37679) @joserodolfofreitas
|
|
86
|
+
- ​<!-- 05 -->[website] Add Base UI marketing page (#36622) @siriwatknp
|
|
87
|
+
- ​<!-- 04 -->[website] Update MUI X landing page (#37966) @cherniavskii
|
|
88
|
+
- ​<!-- 03 -->[website] Fix a11y issues (#37999) @oliviertassinari
|
|
89
|
+
- ​<!-- 02 -->[website] Make the Core page refer to group of products (#37608) @danilo-leal
|
|
90
|
+
- ​<!-- 01 -->[website] Add perpetual option to pricing page (#35504) @joserodolfofreitas
|
|
91
|
+
|
|
92
|
+
All contributors of this release in alphabetical order: @alexfauquette, @brijeshb42, @cherniavskii, @DanailH, @danilo-leal, @DiegoAndai, @divyammadhok, @ericbrian, @Janpot, @joserodolfofreitas, @Methuselah96, @michaldudak, @mj12albert, @mnajdova, @officialrajdeepsingh, @oliviertassinari, @OmPr366, @OndrejHj04, @prakhargupta1, @sai6855, @samuelsycamore, @siriwatknp, @zanivan, @ZeeshanTamboli
|
|
93
|
+
|
|
94
|
+
## 5.14.0
|
|
95
|
+
|
|
96
|
+
<!-- generated comparing v5.13.7..master -->
|
|
97
|
+
|
|
98
|
+
_Jul 11, 2023_
|
|
99
|
+
|
|
100
|
+
A big thanks to the 15 contributors who made this release possible. Here are some highlights ✨:
|
|
101
|
+
|
|
102
|
+
- 💫 Material UI, Joy UI, and Base UI are compatible with [NextJS App Router](https://nextjs.org/docs/app) (#37656) @mj12albert
|
|
103
|
+
- 📚 Added new guides for integrating with Next.js 13 App Router (#37656) @mj12albert
|
|
104
|
+
- Ⓜ️ [Material UI guide](https://mui.com/material-ui/guides/next-js-app-router/)
|
|
105
|
+
- 🅙 [Joy UI guide](https://mui.com/joy-ui/guides/next-js-app-router/)
|
|
106
|
+
- 🅱️ [Base UI guide](https://mui.com/base-ui/guides/next-js-app-router/)
|
|
107
|
+
- 🐛 bug fixes, 📚 documentation, and ⚙️ infrastructure improvements.
|
|
108
|
+
|
|
109
|
+
### `@mui/material@5.14.0`
|
|
110
|
+
|
|
111
|
+
- [Autocomplete] Enable global customization of different options (#36971) @nicolas-ot
|
|
112
|
+
|
|
113
|
+
### `@mui/material-next@6.0.0-alpha.92`
|
|
114
|
+
|
|
115
|
+
- [Slider][material-next] Slider restructure and style improvements (#37644) @DiegoAndai
|
|
116
|
+
|
|
117
|
+
### `@mui/joy@5.0.0-alpha.87`
|
|
118
|
+
|
|
119
|
+
- [ButtonGroup] Fix style for single Button (#37692) @MaybePixem
|
|
120
|
+
- Fix theme typography fallback value (#37845) @siriwatknp
|
|
121
|
+
|
|
122
|
+
### `@mui/icons-material@5.14.0`
|
|
123
|
+
|
|
124
|
+
- [icons-material] Rebuild icons with `"use client"` (#37894) @mj12albert
|
|
125
|
+
|
|
126
|
+
### Docs
|
|
127
|
+
|
|
128
|
+
- [docs] Polish Ukraine banner (#37905) @oliviertassinari
|
|
129
|
+
- [docs] Reduce Ukraine banner size (#34795) @oliviertassinari
|
|
130
|
+
- [docs] Add callouts about controlled vs uncontrolled components in Core docs (#37849) @samuelsycamore
|
|
131
|
+
- [docs] Add missing Portal elements to Tailwind CSS interoperability guide (#37807) @enrique-ramirez
|
|
132
|
+
- [docs] Small pickers migration improvement (#37815) @alexfauquette
|
|
133
|
+
- [docs] Fix pickers product name (#37825) @LukasTy
|
|
134
|
+
- [docs][Joy][Link] Set `variant` and `color` defaults for the playground (#37817) @Studio384
|
|
135
|
+
- [docs][Joy][Table] Add `undefined` as an option to `stripe` (#37816) @Studio384
|
|
136
|
+
- [docs][base] Add Tailwind CSS & plain CSS demo on the Snackbar page (#37812) @mnajdova
|
|
137
|
+
- [docs][base] Add Tailwind CSS & plain CSS demo on Badge page (#37768) @mnajdova
|
|
138
|
+
- [docs][base] Fix Nested modal demo positioning (#37506) @gitstart
|
|
139
|
+
- [docs][base] Add Tailwind CSS & plain CSS demo on the Switch page (#37728) @mnajdova
|
|
140
|
+
- [docs-infra] Remove code tags in ToC (#37834) @cherniavskii
|
|
141
|
+
- [docs-infra] Fixes in API pages generation (#37813) @mnajdova
|
|
142
|
+
- [docs-infra] Add test case when using sh (#37818) @oliviertassinari
|
|
143
|
+
- [docs-infra] Use icons instead of words for the code copy button (#37664) @danilo-leal
|
|
144
|
+
- [docs-infra] Fix code parser (#37828) @alexfauquette
|
|
145
|
+
- [docs-infra] Fix `marked` deprecation warning (#37769) @alexfauquette
|
|
146
|
+
- [docs-infra] Allows to use codeblock in the docs (#37643) @alexfauquette
|
|
147
|
+
- [docs-infra][joy] Change Joy UI's playground variant selector (#37821) @danilo-leal
|
|
148
|
+
|
|
149
|
+
### Core
|
|
150
|
+
|
|
151
|
+
- [core] Prepend "use-client" directive + add docs and examples for using MUI libraries with Next.js App Router (#37656) @mj12albert
|
|
152
|
+
- [core] Fix imports to React (#37863) @oliviertassinari
|
|
153
|
+
- [core] Disambiguate eslint plugin name @oliviertassinari
|
|
154
|
+
- [core] Sync the lint script name with the other repositories @oliviertassinari
|
|
155
|
+
- [core] Point to Crowdin directly @oliviertassinari
|
|
156
|
+
- [website] Sync career page (#37847) @oliviertassinari
|
|
157
|
+
|
|
158
|
+
All contributors of this release in alphabetical order: @alexfauquette, @cherniavskii, @danilo-leal, @DiegoAndai, @enrique-ramirez, @gitstart, @LukasTy, @MaybePixem, @mj12albert, @mnajdova, @nicolas-ot, @oliviertassinari, @samuelsycamore, @siriwatknp, @Studio384
|
|
159
|
+
|
|
160
|
+
## 5.13.7
|
|
161
|
+
|
|
162
|
+
<!-- generated comparing v5.13.6..master -->
|
|
163
|
+
|
|
164
|
+
_Jul 4, 2023_
|
|
165
|
+
|
|
166
|
+
A big thanks to the 21 contributors who made this release possible.
|
|
167
|
+
This release focuses primarily on 🐛 bug fixes, 📚 documentation, and ⚙️ infrastructure improvements.
|
|
168
|
+
|
|
169
|
+
### `@mui/material@5.13.7`
|
|
170
|
+
|
|
171
|
+
- [OutlinedInput] Fix form control properties in `ownerState` (#37668) @vonagam
|
|
172
|
+
|
|
173
|
+
### `@mui/system@5.13.7`
|
|
174
|
+
|
|
175
|
+
- [Stack] Fix spacing when there are `<style>` children (#34966) @cmd-johnson
|
|
176
|
+
|
|
177
|
+
### `@mui/icons-material@5.13.7`
|
|
178
|
+
|
|
179
|
+
- [icons] Add Microsoft logo (#37717) @zephyrus21
|
|
180
|
+
|
|
181
|
+
### `@mui/joy@5.0.0-alpha.86`
|
|
182
|
+
|
|
183
|
+
- [Autocomplete][joy] Fix Autocomplete and Modal components to work together (#37515) @saikathalderr
|
|
184
|
+
- [Menu][Joy] Improve UX of `Menu` usage demo (#37797) @sai6855
|
|
185
|
+
|
|
186
|
+
### `@mui/base@5.0.0-beta.6`
|
|
187
|
+
|
|
188
|
+
- [Slider][base][material][joy] Fix not draggable on the edge when `disableSwap={true}` (#35998) @sai6855
|
|
189
|
+
- [Slider][base] Provide slot state to Slider's thumb slot props callback (#37749) @mnajdova
|
|
190
|
+
- [Tabs] Wrap TabsList context creation in useMemo (#37370) @michaldudak
|
|
191
|
+
- [TextareaAutosize] Fix wrong height measurement (#37185) @bigteech
|
|
192
|
+
|
|
193
|
+
### `@mui/lab@5.0.0-alpha.135`
|
|
194
|
+
|
|
195
|
+
- [Timeline] Fix position `alternate-reverse` generated classname (#37678) @ZeeshanTamboli
|
|
196
|
+
|
|
197
|
+
### Docs
|
|
198
|
+
|
|
199
|
+
- [docs][base] Add demo for using the Button as a link (#37317) @AdamSundberg
|
|
200
|
+
- [docs][base] Add Tailwind CSS + plain CSS demo on the Select page (#37725) @mnajdova
|
|
201
|
+
- [docs][base] Make Base UI input demos denser (#37750) @zanivan
|
|
202
|
+
- [docs][base] Make Base UI button demos denser (#37689) @zanivan
|
|
203
|
+
- [docs][base] Add Tailwind CSS & plain CSS demos on the Input page (#37685) @mnajdova
|
|
204
|
+
- [docs][base] Fix horizontal scrolling on the mobile input page (#37688) @zanivan
|
|
205
|
+
- [docs] Improve Base UI index page (#37761) @oliviertassinari
|
|
206
|
+
- [docs] Fix incorrect package URL in README of example material-vite (#37755) @Dlouxgit
|
|
207
|
+
- [docs] Explain how to disable Base Select's portal (#37684) @michaldudak
|
|
208
|
+
- [docs] Shorten overview page URLs (#37660) @oliviertassinari
|
|
209
|
+
- [docs][material] Rename custom tab panel in Tabs demo to prevent confusion with @mui/lab (#37638) @MUK-Dev
|
|
210
|
+
- [docs][tabs] Document how to use routing with Tabs in Base UI (#37369) @michaldudak
|
|
211
|
+
- [docs] Rename product to productId (#37801) @siriwatknp
|
|
212
|
+
- [docs][base] Add Tailwind CSS & plain CSS demo on the Slider page (#37736) @mnajdova
|
|
213
|
+
|
|
214
|
+
### Core
|
|
215
|
+
|
|
216
|
+
- [docs–infra] Prevent displaying multiple ads (#37696) @oliviertassinari
|
|
217
|
+
- [blog] Fix mismatch between plan and link @oliviertassinari
|
|
218
|
+
- [core] Update yarn lockfile (#37802) @michaldudak
|
|
219
|
+
- [core] Add bundle size Toolpad app link to PRs (#36311) @Janpot
|
|
220
|
+
- [core] Fix priority support prompt action flow (#37726) @DanailH
|
|
221
|
+
- [core] Fix typo in priority support @oliviertassinari
|
|
222
|
+
- [core][docs] add Eslint rule to ensure main demo component match file… (#37278) @alexfauquette
|
|
223
|
+
- [docs-infra] Fix truncated TOCs scrollbar (#37770) @oliviertassinari
|
|
224
|
+
- [docs-infra] Adjust demo container to be glued to the toolbar (#37744) @danilo-leal
|
|
225
|
+
- [docs-infra] Fix layout shift ad (#37694) @oliviertassinari
|
|
226
|
+
- [docs-infra] Improve demos toolbar (#37762) @oliviertassinari
|
|
227
|
+
- [docs-infra] Make the GitHub link in the nav bar open in a new tab (#37766) @gateremark
|
|
228
|
+
- [docs-infra] Allow to persist icons in ToC (#37731) @cherniavskii
|
|
229
|
+
- [docs-infra] Improve product mapping (#37729) @oliviertassinari
|
|
230
|
+
- [docs-infra] Add design polish to the comment and anchor buttons (#37734) @danilo-leal
|
|
231
|
+
- [docs-infra] Tweak editable code blocks callout design (#37681) @danilo-leal
|
|
232
|
+
- [docs-infra] Improve the edit page experience (#37695) @oliviertassinari
|
|
233
|
+
- [docs-infra] Support rendering markdown outside of docs (#37691) @oliviertassinari
|
|
234
|
+
- [docs-infra] Polish demo toolbar button designs (#37680) @danilo-leal
|
|
235
|
+
- [docs-infra] Adjust demo component container design (#37659) @danilo-leal
|
|
236
|
+
- [test] Fix test:e2e local run (#37719) @oliviertassinari
|
|
237
|
+
- [test] Remove failing test in dev @oliviertassinari
|
|
238
|
+
- [website] Add no-op service worker to fix stale cache issue (#37607) @cherniavskii
|
|
239
|
+
- [website] Transition the Core page to be Material UI instead (#37583) @danilo-leal
|
|
240
|
+
- [website] Update the pricing page to reflect sales (#37751) @oliviertassinari
|
|
241
|
+
- [website] Match Copyright with the rest of the website @oliviertassinari
|
|
242
|
+
- [website] Support deep linking to pricing FAQ @oliviertassinari
|
|
243
|
+
|
|
244
|
+
All contributors of this release in alphabetical order: @AdamSundberg, @alexfauquette, @bigteech, @cherniavskii, @cmd-johnson, @DanailH, @danilo-leal, @Dlouxgit, @gateremark, @Janpot, @michaldudak, @mnajdova, @MUK-Dev, @oliviertassinari, @sai6855, @saikathalderr, @siriwatknp, @vonagam, @zanivan, @ZeeshanTamboli, @zephyrus21
|
|
245
|
+
|
|
3
246
|
## 5.13.6
|
|
4
247
|
|
|
5
248
|
_Jun 21, 2023_
|
|
@@ -435,7 +678,7 @@ A big thanks to the 18 contributors who made this release possible. Here are som
|
|
|
435
678
|
|
|
436
679
|
There is codemod that you can run in your project to do the transformation:
|
|
437
680
|
|
|
438
|
-
```
|
|
681
|
+
```bash
|
|
439
682
|
npx @mui/codemod v5.0.0/base-remove-component-prop <path>
|
|
440
683
|
```
|
|
441
684
|
|
|
@@ -534,7 +777,7 @@ A big thanks to the 12 contributors who made this release possible. Here are som
|
|
|
534
777
|
|
|
535
778
|
You can use this [codemod](https://github.com/mui/material-ui/blob/master/packages/mui-codemod/src/v5.0.0/base-remove-unstyled-suffix.js) to help with the migration:
|
|
536
779
|
|
|
537
|
-
```
|
|
780
|
+
```bash
|
|
538
781
|
npx @mui/codemod v5.0.0/base-remove-unstyled-suffix <path>
|
|
539
782
|
```
|
|
540
783
|
|
|
@@ -6179,7 +6422,7 @@ A big thanks to the 18 contributors who made this release possible. Here are som
|
|
|
6179
6422
|
|
|
6180
6423
|
replace `@material-ui/*` prefix with `@mui/*`:
|
|
6181
6424
|
|
|
6182
|
-
```
|
|
6425
|
+
```bash
|
|
6183
6426
|
@material-ui/system -> @mui/system
|
|
6184
6427
|
@material-ui/styles -> @mui/styles
|
|
6185
6428
|
@material-ui/lab -> @mui/lab
|
|
@@ -6192,7 +6435,7 @@ A big thanks to the 18 contributors who made this release possible. Here are som
|
|
|
6192
6435
|
|
|
6193
6436
|
except these 3 packages that are renamed.
|
|
6194
6437
|
|
|
6195
|
-
```
|
|
6438
|
+
```bash
|
|
6196
6439
|
@material-ui/core => @mui/material // represents Material Design components.
|
|
6197
6440
|
@material-ui/icons => @mui/icons-material // represents Material Design icons.
|
|
6198
6441
|
@material-ui/unstyled => @mui/base // fully functional components with minimum styles.
|
|
@@ -9854,11 +10097,11 @@ _Nov 14, 2020_
|
|
|
9854
10097
|
A big thanks to the 34 contributors who made this release possible. Here are some highlights ✨:
|
|
9855
10098
|
|
|
9856
10099
|
- 📅 Migrate the date picker to the lab (#22692) @dmtrKovalenko.
|
|
9857
|
-
We have integrated the components with the code infrastructure. Next we will migrate all the GitHub issues from [material-ui-pickers](https://github.com/mui/material-ui-pickers) and archive the repository. This migration will help provide first-class support for the date picker components. The component will stay in the lab as long as necessary to reach the high
|
|
10100
|
+
We have integrated the components with the code infrastructure. Next we will migrate all the GitHub issues from [material-ui-pickers](https://github.com/mui/material-ui-pickers) and archive the repository. This migration will help provide first-class support for the date picker components. The component will stay in the lab as long as necessary to reach the high-quality bar we have for core components. You can find the [new documentation here](https://mui.com/components/pickers/).
|
|
9858
10101
|
|
|
9859
10102
|
While the source code is currently hosted in the [main repository](https://github.com/mui/material-ui), we might move it to the [x repository](https://github.com/mui/mui-x) in the future, depending on what is easier for the commercial date range picker. The date picker will stay open source no matter what.
|
|
9860
10103
|
|
|
9861
|
-
- 📚 Revamp the documentation for [the system](https://mui.com/system/getting-started/
|
|
10104
|
+
- 📚 Revamp the documentation for [the system](https://mui.com/system/getting-started/). The System contains CSS utilities. The documentation now promotes the use of the `sx` prop. It's ideal for adding one-off styles, e.g. padding, but when pushed to its limits, it can be used to implement quickly a complete page.
|
|
9862
10105
|
- 👩🎨 Upgrade emotion to v11 (#23007) @mnajdova.
|
|
9863
10106
|
- And many more 🐛 bug fixes and 📚 improvements.
|
|
9864
10107
|
|
|
@@ -10260,7 +10503,7 @@ Here are some highlights ✨:
|
|
|
10260
10503
|
If you target IE11, you need to use the new bundle (`legacy`). We are treating IE11 as a second class-citizen, which is a continuation of the direction taken in #22873.
|
|
10261
10504
|
|
|
10262
10505
|
- 🚀 Improve the internal benchmark suite (#22923, #23058) @mnajdova.
|
|
10263
|
-
This was a prerequisite step to improve the [system](https://mui.com/system/getting-started/
|
|
10506
|
+
This was a prerequisite step to improve the [system](https://mui.com/system/getting-started/). We needed to be able to measure performance. After #22945, we have measured that the `Box` component is x3 faster in v5-alpha compared to v4.
|
|
10264
10507
|
- ✏️ A new blog post: [Q3 2020 Update](https://mui.com/blog/2020-q3-update/) (#23055) @oliviertassinari.
|
|
10265
10508
|
- 🐙 Migrate more tests to react-testing-library @deiga, @Morteza-Jenabzadeh, @nicholas-l.
|
|
10266
10509
|
- And many more 🐛 bug fixes and 📚 improvements.
|
|
@@ -10601,7 +10844,7 @@ Here are some highlights ✨:
|
|
|
10601
10844
|
|
|
10602
10845
|
The new styling solution saves 2kB gzipped in the bundle compared to JSS, and about 14 kB gzipped if you were already using emotion or styled-components.
|
|
10603
10846
|
|
|
10604
|
-
Last but not least, the change allows us to take advantage dynamic style props. We will use them for dynamic color props, variant props, and new style props (an improved [system](https://mui.com/system/getting-started/
|
|
10847
|
+
Last but not least, the change allows us to take advantage dynamic style props. We will use them for dynamic color props, variant props, and new style props (an improved [system](https://mui.com/system/getting-started/)).
|
|
10605
10848
|
|
|
10606
10849
|
This change has been in our roadmap for more than a year.
|
|
10607
10850
|
We announced it in the [v4 release blog post](https://mui.com/blog/material-ui-v4-is-out/) as a direction v5 would take.
|
|
@@ -10887,13 +11130,13 @@ Here are some highlights ✨:
|
|
|
10887
11130
|
|
|
10888
11131
|
Before:
|
|
10889
11132
|
|
|
10890
|
-
```
|
|
11133
|
+
```bash
|
|
10891
11134
|
theme.spacing(2) => 16
|
|
10892
11135
|
```
|
|
10893
11136
|
|
|
10894
11137
|
After:
|
|
10895
11138
|
|
|
10896
|
-
```
|
|
11139
|
+
```bash
|
|
10897
11140
|
theme.spacing(2) => '16px'
|
|
10898
11141
|
```
|
|
10899
11142
|
|
|
@@ -11854,7 +12097,7 @@ A big thanks to the 33 contributors who made this release possible. Here are som
|
|
|
11854
12097
|
/>
|
|
11855
12098
|
```
|
|
11856
12099
|
|
|
11857
|
-
- [Typography] Replace the `srOnly` prop so as to not duplicate the capabilities of [System](https://mui.com/system/getting-started/
|
|
12100
|
+
- [Typography] Replace the `srOnly` prop so as to not duplicate the capabilities of [System](https://mui.com/system/getting-started/) (#21413) @mnajdova.
|
|
11858
12101
|
|
|
11859
12102
|
```diff
|
|
11860
12103
|
-import Typography from '@material-ui/core/Typography';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
declare const ClassNameGenerator: {
|
|
2
|
-
configure(generator: (componentName: string) => string): void;
|
|
3
|
-
generate(componentName: string): string;
|
|
4
|
-
reset(): void;
|
|
5
|
-
};
|
|
6
|
-
export default ClassNameGenerator;
|
|
1
|
+
declare const ClassNameGenerator: {
|
|
2
|
+
configure(generator: (componentName: string) => string): void;
|
|
3
|
+
generate(componentName: string): string;
|
|
4
|
+
reset(): void;
|
|
5
|
+
};
|
|
6
|
+
export default ClassNameGenerator;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './ClassNameGenerator';
|
|
1
|
+
export { default } from './ClassNameGenerator';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export default function HTMLElementType(props: {
|
|
2
|
-
[key: string]: unknown;
|
|
3
|
-
}, propName: string, componentName: string, location: string, propFullName: string): Error | null;
|
|
1
|
+
export default function HTMLElementType(props: {
|
|
2
|
+
[key: string]: unknown;
|
|
3
|
+
}, propName: string, componentName: string, location: string, propFullName: string): Error | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './HTMLElementType';
|
|
1
|
+
export { default } from './HTMLElementType';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function capitalize(string: string): string;
|
|
1
|
+
export default function capitalize(string: string): string;
|
package/capitalize/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './capitalize';
|
|
1
|
+
export { default } from './capitalize';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import PropTypes from 'prop-types';
|
|
2
|
-
export default function chainPropTypes<A, B>(propType1: PropTypes.Validator<A>, propType2: PropTypes.Validator<B>): PropTypes.Validator<A & B>;
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
export default function chainPropTypes<A, B>(propType1: PropTypes.Validator<A>, propType2: PropTypes.Validator<B>): PropTypes.Validator<A & B>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './chainPropTypes';
|
|
1
|
+
export { default } from './chainPropTypes';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function composeClasses<ClassKey extends string>(slots: Record<ClassKey, ReadonlyArray<string | false | undefined | null>>, getUtilityClass: (slot: string) => string, classes?: Record<string, string> | undefined): Record<ClassKey, string>;
|
|
1
|
+
export default function composeClasses<ClassKey extends string>(slots: Record<ClassKey, ReadonlyArray<string | false | undefined | null>>, getUtilityClass: (slot: string) => string, classes?: Record<string, string> | undefined): Record<ClassKey, string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './composeClasses';
|
|
1
|
+
export { default } from './composeClasses';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Safe chained function.
|
|
3
|
-
*
|
|
4
|
-
* Will only create a new function if needed,
|
|
5
|
-
* otherwise will pass back existing functions or null.
|
|
6
|
-
*/
|
|
7
|
-
export default function createChainedFunction<Args extends any[], This>(...funcs: Array<(this: This, ...args: Args) => any>): (this: This, ...args: Args) => void;
|
|
1
|
+
/**
|
|
2
|
+
* Safe chained function.
|
|
3
|
+
*
|
|
4
|
+
* Will only create a new function if needed,
|
|
5
|
+
* otherwise will pass back existing functions or null.
|
|
6
|
+
*/
|
|
7
|
+
export default function createChainedFunction<Args extends any[], This>(...funcs: Array<(this: This, ...args: Args) => any>): (this: This, ...args: Args) => void;
|
package/debounce/debounce.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export interface Cancelable {
|
|
2
|
-
clear(): void;
|
|
3
|
-
}
|
|
4
|
-
export default function debounce<T extends (...args: any[]) => any>(func: T, wait?: number): T & Cancelable;
|
|
1
|
+
export interface Cancelable {
|
|
2
|
+
clear(): void;
|
|
3
|
+
}
|
|
4
|
+
export default function debounce<T extends (...args: any[]) => any>(func: T, wait?: number): T & Cancelable;
|
package/debounce/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default } from './debounce';
|
|
2
|
-
export * from './debounce';
|
|
1
|
+
export { default } from './debounce';
|
|
2
|
+
export * from './debounce';
|
package/deepmerge.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare function isPlainObject(item: unknown): item is Record<keyof any, unknown>;
|
|
2
|
-
export interface DeepmergeOptions {
|
|
3
|
-
clone?: boolean;
|
|
4
|
-
}
|
|
5
|
-
export default function deepmerge<T>(target: T, source: unknown, options?: DeepmergeOptions): T;
|
|
1
|
+
export declare function isPlainObject(item: unknown): item is Record<keyof any, unknown>;
|
|
2
|
+
export interface DeepmergeOptions {
|
|
3
|
+
clone?: boolean;
|
|
4
|
+
}
|
|
5
|
+
export default function deepmerge<T>(target: T, source: unknown, options?: DeepmergeOptions): T;
|
package/elementAcceptingRef.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import PropTypes from 'prop-types';
|
|
2
|
-
declare const elementAcceptingRef: PropTypes.Requireable<unknown>;
|
|
3
|
-
export default elementAcceptingRef;
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
declare const elementAcceptingRef: PropTypes.Requireable<unknown>;
|
|
3
|
+
export default elementAcceptingRef;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import PropTypes from 'prop-types';
|
|
2
|
-
declare const _default: PropTypes.Validator<PropTypes.ReactComponentLike | null | undefined>;
|
|
3
|
-
export default _default;
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
declare const _default: PropTypes.Validator<PropTypes.ReactComponentLike | null | undefined>;
|
|
3
|
+
export default _default;
|
package/esm/index.js
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
1
3
|
import * as React from 'react';
|
|
2
4
|
import useEnhancedEffect from '../useEnhancedEffect';
|
|
3
5
|
|
|
4
6
|
/**
|
|
5
7
|
* https://github.com/facebook/react/issues/14099#issuecomment-440013892
|
|
6
8
|
*/
|
|
7
|
-
|
|
9
|
+
|
|
10
|
+
function useEventCallback(fn) {
|
|
8
11
|
const ref = React.useRef(fn);
|
|
9
12
|
useEnhancedEffect(() => {
|
|
10
13
|
ref.current = fn;
|
|
@@ -13,4 +16,5 @@ export default function useEventCallback(fn) {
|
|
|
13
16
|
// @ts-expect-error hide `this`
|
|
14
17
|
// tslint:disable-next-line:ban-comma-operator
|
|
15
18
|
(0, ref.current)(...args), []);
|
|
16
|
-
}
|
|
19
|
+
}
|
|
20
|
+
export default useEventCallback;
|
package/esm/useForkRef/index.js
CHANGED
package/esm/useId/index.js
CHANGED
package/esm/useId/useId.js
CHANGED
package/esm/useIsFocusVisible.js
CHANGED
package/esm/usePreviousProps.js
CHANGED
package/exactProp/exactProp.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ValidationMap } from 'prop-types';
|
|
2
|
-
export default function exactProp<T>(propTypes: ValidationMap<T>): ValidationMap<T>;
|
|
1
|
+
import { ValidationMap } from 'prop-types';
|
|
2
|
+
export default function exactProp<T>(propTypes: ValidationMap<T>): ValidationMap<T>;
|
package/exactProp/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './exactProp';
|
|
1
|
+
export { default } from './exactProp';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* WARNING: Don't import this directly.
|
|
3
|
-
* Use `MuiError` from `@mui/utils/macros/MuiError.macro` instead.
|
|
4
|
-
* @param {number} code
|
|
5
|
-
*/
|
|
6
|
-
export default function formatMuiErrorMessage(code: number): string;
|
|
1
|
+
/**
|
|
2
|
+
* WARNING: Don't import this directly.
|
|
3
|
+
* Use `MuiError` from `@mui/utils/macros/MuiError.macro` instead.
|
|
4
|
+
* @param {number} code
|
|
5
|
+
*/
|
|
6
|
+
export default function formatMuiErrorMessage(code: number): string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type GlobalStateSlot = 'active' | 'checked' | 'completed' | 'disabled' | 'readOnly' | 'error' | 'expanded' | 'focused' | 'focusVisible' | 'required' | 'selected';
|
|
2
|
-
export default function generateUtilityClass(componentName: string, slot: string, globalStatePrefix?: string): string;
|
|
1
|
+
export type GlobalStateSlot = 'active' | 'checked' | 'completed' | 'disabled' | 'readOnly' | 'error' | 'expanded' | 'focused' | 'focusVisible' | 'required' | 'selected';
|
|
2
|
+
export default function generateUtilityClass(componentName: string, slot: string, globalStatePrefix?: string): string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default } from './generateUtilityClass';
|
|
2
|
-
export * from './generateUtilityClass';
|
|
1
|
+
export { default } from './generateUtilityClass';
|
|
2
|
+
export * from './generateUtilityClass';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function generateUtilityClasses<T extends string>(componentName: string, slots: T[], globalStatePrefix?: string): Record<T, string>;
|
|
1
|
+
export default function generateUtilityClasses<T extends string>(componentName: string, slots: T[], globalStatePrefix?: string): Record<T, string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './generateUtilityClasses';
|
|
1
|
+
export { default } from './generateUtilityClasses';
|
package/getDisplayName.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export declare function getFunctionName(fn: Function): string;
|
|
3
|
-
/**
|
|
4
|
-
* cherry-pick from
|
|
5
|
-
* https://github.com/facebook/react/blob/769b1f270e1251d9dbdce0fcbd9e92e502d059b8/packages/shared/getComponentName.js
|
|
6
|
-
* originally forked from recompose/getDisplayName with added IE11 support
|
|
7
|
-
*/
|
|
8
|
-
export default function getDisplayName(Component: React.ElementType): string | undefined;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare function getFunctionName(fn: Function): string;
|
|
3
|
+
/**
|
|
4
|
+
* cherry-pick from
|
|
5
|
+
* https://github.com/facebook/react/blob/769b1f270e1251d9dbdce0fcbd9e92e502d059b8/packages/shared/getComponentName.js
|
|
6
|
+
* originally forked from recompose/getDisplayName with added IE11 support
|
|
7
|
+
*/
|
|
8
|
+
export default function getDisplayName(Component: React.ElementType): string | undefined;
|
package/getScrollbarSize.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function getScrollbarSize(doc: Document): number;
|
|
1
|
+
export default function getScrollbarSize(doc: Document): number;
|