@mui/system 5.0.4 → 5.1.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 +287 -6
- package/breakpoints.js +41 -8
- package/createBox.d.ts +5 -1
- package/createBox.js +5 -3
- package/createStyled.d.ts +16 -190
- package/createStyled.js +5 -1
- package/createTheme/createBreakpoints.js +2 -2
- package/cssVars/createCssVarsProvider.d.ts +131 -0
- package/cssVars/createCssVarsProvider.js +228 -0
- package/cssVars/createCssVarsProvider.spec.d.ts +1 -0
- package/cssVars/cssVarsParser.d.ts +68 -0
- package/cssVars/cssVarsParser.js +156 -0
- package/cssVars/getInitColorSchemeScript.d.ts +12 -0
- package/cssVars/getInitColorSchemeScript.js +60 -0
- package/cssVars/index.d.ts +2 -0
- package/cssVars/index.js +15 -0
- package/cssVars/package.json +6 -0
- package/cssVars/useCurrentColorScheme.d.ts +50 -0
- package/cssVars/useCurrentColorScheme.js +235 -0
- package/esm/breakpoints.js +39 -8
- package/esm/createBox.js +5 -3
- package/esm/createStyled.js +5 -1
- package/esm/createTheme/createBreakpoints.js +2 -2
- package/esm/cssVars/createCssVarsProvider.js +207 -0
- package/esm/cssVars/cssVarsParser.js +141 -0
- package/esm/cssVars/getInitColorSchemeScript.js +42 -0
- package/esm/cssVars/index.js +1 -0
- package/esm/cssVars/useCurrentColorScheme.js +217 -0
- package/esm/index.js +2 -1
- package/esm/styleFunctionSx/extendSxProp.js +20 -1
- package/esm/styleFunctionSx/styleFunctionSx.js +45 -35
- package/index.d.ts +6 -0
- package/index.js +11 -2
- package/legacy/breakpoints.js +39 -8
- package/legacy/createBox.js +6 -3
- package/legacy/createStyled.js +5 -1
- package/legacy/createTheme/createBreakpoints.js +2 -2
- package/legacy/cssVars/createCssVarsProvider.js +215 -0
- package/legacy/cssVars/cssVarsParser.js +153 -0
- package/legacy/cssVars/getInitColorSchemeScript.js +27 -0
- package/legacy/cssVars/index.js +1 -0
- package/legacy/cssVars/useCurrentColorScheme.js +231 -0
- package/legacy/index.js +3 -2
- package/legacy/styleFunctionSx/extendSxProp.js +21 -1
- package/legacy/styleFunctionSx/styleFunctionSx.js +44 -34
- package/modern/breakpoints.js +39 -8
- package/modern/createBox.js +5 -3
- package/modern/createStyled.js +5 -1
- package/modern/createTheme/createBreakpoints.js +2 -2
- package/modern/cssVars/createCssVarsProvider.js +207 -0
- package/modern/cssVars/cssVarsParser.js +141 -0
- package/modern/cssVars/getInitColorSchemeScript.js +42 -0
- package/modern/cssVars/index.js +1 -0
- package/modern/cssVars/useCurrentColorScheme.js +217 -0
- package/modern/index.js +3 -2
- package/modern/styleFunctionSx/extendSxProp.js +20 -1
- package/modern/styleFunctionSx/styleFunctionSx.js +45 -35
- package/package.json +8 -9
- package/style.d.ts +1 -1
- package/styleFunctionSx/extendSxProp.js +21 -1
- package/styleFunctionSx/styleFunctionSx.d.ts +7 -1
- package/styleFunctionSx/styleFunctionSx.js +46 -36
- package/styleFunctionSx/styleFunctionSx.spec.d.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,286 @@
|
|
|
1
1
|
### [Versions](https://mui.com/versions/)
|
|
2
2
|
|
|
3
|
+
## 5.1.1
|
|
4
|
+
|
|
5
|
+
<!-- generated comparing v5.1.0..master -->
|
|
6
|
+
|
|
7
|
+
_Nov 16, 2021_
|
|
8
|
+
|
|
9
|
+
A big thanks to the 15 contributors who made this release possible. Here are some highlights ✨:
|
|
10
|
+
|
|
11
|
+
- 🛠 Rename `@mui/core` to `@mui/base`. (#29585) @michaldudak
|
|
12
|
+
- And many more 🐛 bug fixes and 📚 improvements.
|
|
13
|
+
|
|
14
|
+
### `@mui/material@5.1.1`
|
|
15
|
+
|
|
16
|
+
- ​<!-- 34 -->[Breadcrumbs][divider] Replace decimal spacing values with integers and css calc (#29526) @anikcreative
|
|
17
|
+
- ​<!-- 10 -->[Select][nativeselect] Add `multiple` class (#29566) @aaronholla
|
|
18
|
+
- ​<!-- 09 -->[Popper] Split into PopperUnstyled and Popper (#29488) @michaldudak
|
|
19
|
+
- ​<!-- 08 -->[Select] Make it clear that `Select` is not a root component (#29593) @hbjORbj
|
|
20
|
+
- ​<!-- 13 -->[l10n] Improved Dutch (nl-NL) locale (#29592) @flipvrijn
|
|
21
|
+
- ​<!-- 10 -->[Table] Improve pagination range, use "en dash" over "hyphen" (#29579) @narekmal
|
|
22
|
+
|
|
23
|
+
### `@mui/base@5.0.0-alpha.55`
|
|
24
|
+
|
|
25
|
+
#### BREAKING CHANGE
|
|
26
|
+
|
|
27
|
+
- ​<!-- 27 -->[core] Rename mui/core to mui/base (#29585) @michaldudak
|
|
28
|
+
|
|
29
|
+
### `@mui/lab@5.0.0-alpha.55`
|
|
30
|
+
|
|
31
|
+
- ​<!-- 12 -->[LoadingButton] Text variant spacing fixed for both start and end (#29194) @joshua-lawrence
|
|
32
|
+
- ​<!-- 11 -->[Masonry] Check if container or child exists to prevent error (#29452) @hbjORbj
|
|
33
|
+
|
|
34
|
+
### Docs
|
|
35
|
+
|
|
36
|
+
- ​<!-- 25 -->[docs] Correct bundler configuration for using legacy MUI build (#29146) @petermikitsh
|
|
37
|
+
- ​<!-- 24 -->[docs] Fix typo on autocomplete.md (#29570) @netizer
|
|
38
|
+
- ​<!-- 23 -->[docs] Fix dark mode on branding pages (#29611) @alexfauquette
|
|
39
|
+
- ​<!-- 22 -->[docs] Do not render CSS section in API docs navbar if there are no CSS classes (#29622) @ZeeshanTamboli
|
|
40
|
+
- ​<!-- 21 -->[docs] Fix link locale handling (#29624) @oliviertassinari
|
|
41
|
+
- ​<!-- 20 -->[docs] Fix Search navigation (#29623) @oliviertassinari
|
|
42
|
+
- ​<!-- 19 -->[docs] Fix broken link & update MUI packages explanation (#29583) @siriwatknp
|
|
43
|
+
- ​<!-- 18 -->[docs] Do not repeat language snippet in url in Algolia search (#29483) @hbjORbj
|
|
44
|
+
- ​<!-- 17 -->[docs] Update `ThemeProvider` API link (#29573) @siriwatknp
|
|
45
|
+
- ​<!-- 16 -->[docs] Remove svg logos from the Support page (#29431) @oliviertassinari
|
|
46
|
+
- ​<!-- 15 -->[docs] Link UXPin integration (#29422) @oliviertassinari
|
|
47
|
+
- ​<!-- 14 -->[docs] Link to the new public roadmap for the design kits (#29433) @oliviertassinari
|
|
48
|
+
- ​<!-- 28 -->[docs] correct bundler configuration for using legacy MUI build (#29146) @petermikitsh
|
|
49
|
+
- ​<!-- 01 -->[website] Fix premium plan release date (#29430) @oliviertassinari
|
|
50
|
+
- ​<!-- 02 -->[website] Add GitHub icon button to the navbar (#29640) @danilo-leal
|
|
51
|
+
- ​<!-- 39 -->[blog] Support many authors in markdown pages (#29633) @m4theushw
|
|
52
|
+
|
|
53
|
+
### Core
|
|
54
|
+
|
|
55
|
+
- ​<!-- 33 -->[core] Add `experiments` index page (#29582) @siriwatknp
|
|
56
|
+
- ​<!-- 32 -->[core] Move s3 bucket ownership to mui-org (#29609) @eps1lon
|
|
57
|
+
- ​<!-- 31 -->[core] Improve support request message (#29614) @mnajdova
|
|
58
|
+
- ​<!-- 30 -->[core] Use support request Github Action (#29594) @mnajdova
|
|
59
|
+
- ​<!-- 29 -->[core] Remove unused `getJsxPreview` util (#29586) @ZeeshanTamboli
|
|
60
|
+
- ​<!-- 28 -->[core] Use GitHub issue forms (#28038) @oliviertassinari
|
|
61
|
+
- ​<!-- 26 -->[core] Add playground (#29423) @oliviertassinari
|
|
62
|
+
- ​<!-- 07 -->[test] Correctly identify what the `raf` helper is for (#29683) @eps1lon
|
|
63
|
+
- ​<!-- 06 -->[test] Verify a quilted ImageList is created as test title suggests (#29565) @daniel-sachs
|
|
64
|
+
- ​<!-- 05 -->[test] Replace `createServerRender` with `createRenderer` (#29503) @eps1lon
|
|
65
|
+
- ​<!-- 04 -->[test] Always ignore "useLayoutEffect has no effect on the server"-warning (#29502) @eps1lon
|
|
66
|
+
- ​<!-- 03 -->[test] Restore StrictMode by default (#29589) @eps1lon
|
|
67
|
+
- ​<!-- 02 -->[test] createPickerRender -> createPickerRenderer (#29575) @eps1lon
|
|
68
|
+
- ​<!-- 09 -->[test] Allow experimental CLI to run exact test (#29685) @eps1lon
|
|
69
|
+
|
|
70
|
+
All contributors of this release in alphabetical order: @aaronholla, @alexfauquette, @anikcreative, @daniel-sachs, @eps1lon, @flipvrijn, @hbjORbj, @joshua-lawrence, @michaldudak, @mnajdova, @netizer, @oliviertassinari, @petermikitsh, @siriwatknp, @ZeeshanTamboli
|
|
71
|
+
|
|
72
|
+
## 5.1.0
|
|
73
|
+
|
|
74
|
+
<!-- generated comparing v5.0.6..master -->
|
|
75
|
+
|
|
76
|
+
_Nov 8, 2021_
|
|
77
|
+
|
|
78
|
+
A big thanks to the 33 contributors who made this release possible. Here are some highlights ✨:
|
|
79
|
+
|
|
80
|
+
- 🎉 Support custom elements under `ButtonGroup` (#28645) @ZeeshanTamboli
|
|
81
|
+
- 🛠 Add support for arrays in the `sx` prop (#29297) @siriwatknp
|
|
82
|
+
- And many more 🐛 bug fixes and 📚 improvements.
|
|
83
|
+
|
|
84
|
+
### `@mui/material@5.1.0`
|
|
85
|
+
|
|
86
|
+
- ​<!-- 68 -->[Autocomplete] Fix `hiddenLabel` prop of `TextField variant={filled}` inside Autocomplete (#29234) @jatinsandilya
|
|
87
|
+
- ​<!-- 67 -->[Box] Support generateClassName and defaultClassName (#29347) @siriwatknp
|
|
88
|
+
- ​<!-- 66 -->[ButtonGroup] Fix variant outlined always has primary color borders on hover (#29487) @ZeeshanTamboli
|
|
89
|
+
- ​<!-- 65 -->[ButtonGroup] Support different elements under ButtonGroup (#28645) @ZeeshanTamboli
|
|
90
|
+
- ​<!-- 62 -->[CssBaseline] Add `enableColorScheme` prop so enable using `color-scheme` property to deal with dark mode (#29454) @alexfauquette
|
|
91
|
+
- ​<!-- 29 -->[FormControlLabel] Narrow the label type (#29324) @michaldudak
|
|
92
|
+
- ​<!-- 28 -->[Grid] Fix usage when columns > 12 (#29196) @tanay123456789
|
|
93
|
+
- ​<!-- 27 -->[InputBase] Do not repeat the same classname (#29353) @hbjORbj
|
|
94
|
+
- ​<!-- 30 -->[InputBase] Remove WebkitAppearance from search type (#29383) @nicbarajas
|
|
95
|
+
- ​<!-- 25 -->[ListItem] Add missing exports (#29571) @robcaldecott
|
|
96
|
+
- ​<!-- 22 -->[Pagination] Allow customization of icons (#29336) @mbeltramin
|
|
97
|
+
- ​<!-- 11 -->[TextField] Fix bootstrap, normalize.css, sanitize.css conflicts (#28674) @ChrisClaude
|
|
98
|
+
- ​<!-- 10 -->[TextField] Fix invisible wrap within notched inputs (#29088) @DASPRiD
|
|
99
|
+
- ​<!-- 09 -->[Tooltip] `open` prop in `componentsProps.popper` can be optional (#29370) @ZeeshanTamboli
|
|
100
|
+
- ​<!-- 08 -->[Tooltip] Fix `className` not getting applied from PopperProps (#29023) @ZeeshanTamboli
|
|
101
|
+
- ​<!-- 07 -->[useRadioGroup] Convert to TypeScript (#29326) @eps1lon
|
|
102
|
+
|
|
103
|
+
### `@mui/system@5.1.0`
|
|
104
|
+
|
|
105
|
+
- ​<!-- 21 -->[system] Introduce `mode` to CssVarsProvider (#29418) @siriwatknp
|
|
106
|
+
- ​<!-- 20 -->[system] Improve breakpoints resolver function (#29300) @hbjORbj
|
|
107
|
+
- ​<!-- 19 -->[system] Add array support for `sx` prop (#29297) @siriwatknp
|
|
108
|
+
|
|
109
|
+
### `@mui/codemod@5.1.0`
|
|
110
|
+
|
|
111
|
+
- ​<!-- 64 -->[codemod] Add codemod parser flag (#29059) (#29229) @ElonVolo
|
|
112
|
+
|
|
113
|
+
### `@mui/lab@5.0.0-alpha.54`
|
|
114
|
+
|
|
115
|
+
- ​<!-- 52 -->[DatePicker] Fix disabled/readOnly for view components (#28815) @adamfitzgibbon
|
|
116
|
+
- ​<!-- 24 -->[Masonry] Fix crash on unmount when using React 18 (#29358) @eps1lon
|
|
117
|
+
- ​<!-- 23 -->[Masonry] Improve height computation and detect changes in `children` (#29351) @hbjORbj
|
|
118
|
+
|
|
119
|
+
### `@mui/joy@5.0.0-alpha.0`
|
|
120
|
+
|
|
121
|
+
- ​<!-- 28 -->[Joy] Update default theme (#29478) @siriwatknp
|
|
122
|
+
- ​<!-- 26 -->[Joy] Export CssVarsProvider with default theme (#29150) @siriwatknp
|
|
123
|
+
- ​<!-- 25 -->[Joy] Remove `private` to leverage CodeSandbox (#29280) @siriwatknp
|
|
124
|
+
|
|
125
|
+
### Docs
|
|
126
|
+
|
|
127
|
+
- ​<!-- 51 -->[docs] Add differences between styled and sx (#28685) @eric-burel
|
|
128
|
+
- ​<!-- 50 -->[docs] Track usage of dark mode in Google Analytics (#29419) @oliviertassinari
|
|
129
|
+
- ​<!-- 49 -->[docs] Remove create-mui-theme as it is no longer working (#29472) @IPJT
|
|
130
|
+
- ​<!-- 48 -->[docs] Fix warnings in AppSearch (#29459) @eps1lon
|
|
131
|
+
- ​<!-- 47 -->[docs] Add framework example for ClassNameGenerator (#29453) @siriwatknp
|
|
132
|
+
- ​<!-- 46 -->[docs] Fix layout shift when scrolling (#29436) @oliviertassinari
|
|
133
|
+
- ​<!-- 45 -->[docs] Fix layout-shift on id='main-content' (#29425) @oliviertassinari
|
|
134
|
+
- ​<!-- 44 -->[docs] Remove usage of `process.browser` (#29438) @oliviertassinari
|
|
135
|
+
- ​<!-- 43 -->[docs] Add instruction on how to use the child selector API with emotion (#29350) @mnajdova
|
|
136
|
+
- ​<!-- 42 -->[docs] Fix small typos (#29424) @oliviertassinari
|
|
137
|
+
- ​<!-- 41 -->[docs] Fix TOC highlighting logic (#29435) @oliviertassinari
|
|
138
|
+
- ​<!-- 40 -->[docs] Fix about page flags (#29314) @mbrookes
|
|
139
|
+
- ​<!-- 39 -->[docs] Fix Box JS docs (#29282) @Pablion
|
|
140
|
+
- ​<!-- 38 -->[docs] Update storybook section in migration to v5 docs (#28800) @siriwatknp
|
|
141
|
+
- ​<!-- 37 -->[docs] Document how to enable color on dark mode (#29340) @Wimukti
|
|
142
|
+
- ​<!-- 36 -->[docs] Display search functionality in all viewports (#28819) @eps1lon
|
|
143
|
+
- ​<!-- 35 -->[docs] Query heading for ToC on demand (#29204) @eps1lon
|
|
144
|
+
- ​<!-- 34 -->[docs] Add next.js styled-component guide and update links to example (#29118) @Jareechang
|
|
145
|
+
- ​<!-- 33 -->[docs] Fix overriding `MuiTextField`'s default props in the migration guide (#29174) @tm1000
|
|
146
|
+
- ​<!-- 32 -->[docs] Fix "clickable" and "deletable" typos (#28702) @jacklaurencegaray
|
|
147
|
+
- ​<!-- 31 -->[docs] Update migration-v4 docs for wrong import path (#29042) @busches
|
|
148
|
+
- ​<!-- 30 -->[docs] Add GitHub icon change to "Migration from v4 to v5" guide (#29182) @dan-mba
|
|
149
|
+
- ​<!-- 06 -->[website] Benny Joo joining MUI (#29499) @mnajdova
|
|
150
|
+
- ​<!-- 05 -->[website] Update the `Print export` feature info on the pricing page (#29484) @DanailH
|
|
151
|
+
- ​<!-- 04 -->[website] Improve the dev rel role description (#29477) @oliviertassinari
|
|
152
|
+
- ​<!-- 03 -->[website] Add customers section on Design Kits and Templates marketing pages (#29168) @danilo-leal
|
|
153
|
+
- ​<!-- 02 -->[website] Improvements to the /core product page @danilo-leal
|
|
154
|
+
- ​<!-- 01 -->[website] Fix typo on the About Page (#29286) @gssakash
|
|
155
|
+
|
|
156
|
+
### Core
|
|
157
|
+
|
|
158
|
+
- ​<!-- 63 -->[core] Handle RecordType and FieldType in generatePropDescription.ts (#29467) @flaviendelangle
|
|
159
|
+
- ​<!-- 61 -->[core] Convert a named color to lowercase (#29465) @ainatenhi
|
|
160
|
+
- ​<!-- 60 -->[core] Allow to reuse functions from `docs:api` (#28828) @m4theushw
|
|
161
|
+
- ​<!-- 59 -->[core] Commit new nextjs 12 tsconfig (#29458) @eps1lon
|
|
162
|
+
- ​<!-- 58 -->[core] Settle on MUI X for the official name (#29420) @oliviertassinari
|
|
163
|
+
- ​<!-- 57 -->[core] Add mui as a npm keyword (#29427) @oliviertassinari
|
|
164
|
+
- ​<!-- 56 -->[core] Fix issue template redirection (#29432) @oliviertassinari
|
|
165
|
+
- ​<!-- 55 -->[core] Remove unecessary destructuration (#29354) @oliviertassinari
|
|
166
|
+
- ​<!-- 54 -->[core] Use cross-env to set env variables in material-icons scripts (#29327) @michaldudak
|
|
167
|
+
- ​<!-- 53 -->[core] Don't bump peer dependency ranges on dependency updates (#29303) @eps1lon
|
|
168
|
+
- ​<!-- 18 -->[test] Fix browser tests (#29505) @eps1lon
|
|
169
|
+
- ​<!-- 69 -->[test] Fix missing act warnings in latest React 18 alpha (#29357) @eps1lon
|
|
170
|
+
- ​<!-- 17 -->[test] Replace `createClientRender` with new `createRenderer` API (#29471) @eps1lon
|
|
171
|
+
- ​<!-- 16 -->[test] Fix possible "missing act" warning (#29463) @eps1lon
|
|
172
|
+
- ​<!-- 15 -->[test] Remove render#baseElement (#29462) @eps1lon
|
|
173
|
+
- ​<!-- 14 -->[test] Expose `AbortController` on global (#29360) @eps1lon
|
|
174
|
+
- ​<!-- 13 -->[test] Add internal test for uniqe `name` in `Rating` (#29329) @eps1lon
|
|
175
|
+
- ​<!-- 12 -->[test] Fix browser tests (#29305) @eps1lon
|
|
176
|
+
|
|
177
|
+
All contributors of this release in alphabetical order: @adamfitzgibbon, @ainatenhi, @alexfauquette, @busches, @ChrisClaude, @dan-mba, @DanailH, @danilo-leal, @DASPRiD, @ElonVolo, @eps1lon, @eric-burel, @flaviendelangle, @gssakash, @hbjORbj, @IPJT, @jacklaurencegaray, @Jareechang, @jatinsandilya, @m4theushw, @mbeltramin, @mbrookes, @michaldudak, @mnajdova, @nicbarajas, @oliviertassinari, @Pablion, @robcaldecott, @siriwatknp, @tanay123456789, @tm1000, @Wimukti, @ZeeshanTamboli
|
|
178
|
+
|
|
179
|
+
## 5.0.6
|
|
180
|
+
|
|
181
|
+
<!-- generated comparing v5.0.5..master -->
|
|
182
|
+
|
|
183
|
+
_Oct 27, 2021_
|
|
184
|
+
|
|
185
|
+
A big thanks to the 4 contributors who made this release possible. Here are some highlights ✨:
|
|
186
|
+
|
|
187
|
+
- 🔧 Fix reported TypeScript issues on the `@mui/system` package because some packages were not released
|
|
188
|
+
|
|
189
|
+
### `@mui/material@5.0.6`
|
|
190
|
+
|
|
191
|
+
- ​<!-- 4 -->[Autocomplete] Fix `clearOnBlur` prop (#29208) @hbjORbj
|
|
192
|
+
- ​<!-- 2 -->[Rating] Remove z-index from decimal stars (#29295) @williamhaley
|
|
193
|
+
|
|
194
|
+
### `@mui/system@5.0.6`
|
|
195
|
+
|
|
196
|
+
- ​<!-- 5 -->[system] Fix various issues reported by using @mui/styled-engine-sc (#29035) @mnajdova
|
|
197
|
+
- ​<!-- 1 -->[system] Fix executing server-side Emotion component as function interpolation (#29290) @Andarist
|
|
198
|
+
|
|
199
|
+
### Docs
|
|
200
|
+
|
|
201
|
+
- ​<!-- 3 -->[blog] Q3 2021 Update (#28970) @oliviertassinari
|
|
202
|
+
|
|
203
|
+
All contributors of this release in alphabetical order: @Andarist, @hbjORbj, @oliviertassinari, @williamhaley
|
|
204
|
+
|
|
205
|
+
## 5.0.5
|
|
206
|
+
|
|
207
|
+
<!-- generated comparing v5.0.4..master -->
|
|
208
|
+
|
|
209
|
+
_Oct 26, 2021_
|
|
210
|
+
|
|
211
|
+
A big thanks to the 19 contributors who made this release possible. Here are some highlights ✨:
|
|
212
|
+
|
|
213
|
+
- 🔧 Implement `Masonry` using Flexbox by @hbjORbj.
|
|
214
|
+
- 🧪 Add three components to `@mui/base` by @rebeccahongsf and @hbjORbj.
|
|
215
|
+
|
|
216
|
+
### `@mui/codemod@5.0.5`
|
|
217
|
+
|
|
218
|
+
- ​<!-- 38 -->[codemod] Support new package name in `link-underline-hover` transformer (#29214) @siriwatknp
|
|
219
|
+
|
|
220
|
+
### `@mui/base@5.0.0-alpha.52`
|
|
221
|
+
|
|
222
|
+
- ​<!-- 39 -->[ClickAwayListener] Move to the core package (#29186) @hbjORbj
|
|
223
|
+
- ​<!-- 13 -->[Popper] Move from mui-material to mui-base (#28923) @rebeccahongsf
|
|
224
|
+
- ​<!-- 04 -->[TextareaAutosize] Move to the core package (#29148) @hbjORbj
|
|
225
|
+
|
|
226
|
+
### `@mui/lab@5.0.0-alpha.52`
|
|
227
|
+
|
|
228
|
+
- ​<!-- 16 -->[Masonry] Improve demo styles (#29218) @hbjORbj
|
|
229
|
+
- ​<!-- 15 -->[Masonry] Implement Masonry using Flexbox (#28059) @hbjORbj
|
|
230
|
+
|
|
231
|
+
### `@mui/icons@5.0.5`
|
|
232
|
+
|
|
233
|
+
- ​<!-- 19 -->[icons] Add TipsAndUpdates icon (#29004) @hbjORbj
|
|
234
|
+
|
|
235
|
+
### `@mui/material@5.0.5`
|
|
236
|
+
|
|
237
|
+
- ​<!-- 40 -->[CardMedia] Apply specified `img` role instead of custom `image` role (#29172) @eps1lon
|
|
238
|
+
- ​<!-- 32 -->[CSSBaseline] Remove incorrect @deprecated annotation (#29069) @adamfitzgibbon
|
|
239
|
+
- ​<!-- 20 -->[Grid] Support custom columns with nested grid (#28743) @Devesh21700Kumar
|
|
240
|
+
- ​<!-- 18 -->[InputBase] Remove wrong theme overriding with MUI's default theme (#29157) @hbjORbj
|
|
241
|
+
- ​<!-- 17 -->[LoadingButton] Fix `fullWidth` styling (#28652) @nikitabobers
|
|
242
|
+
- ​<!-- 16 -->[Popper] make Popper display:none whenever it's closed (#29233) @adamfitzgibbon
|
|
243
|
+
- ​<!-- 14 -->[Menu] Reduce min-height & padding in menu-item with dense property (#29180) @jatinsandilya
|
|
244
|
+
- ​<!-- 07 -->[Tab] `iconPosition` prop added in Tab (#28764) @deepanshu2506
|
|
245
|
+
- ​<!-- 03 -->[Tooltip] Correct inconsistent prop precedence (#29132) @michaldudak
|
|
246
|
+
|
|
247
|
+
### `@mui/system@5.0.5`
|
|
248
|
+
|
|
249
|
+
- ​<!-- 11 -->[system] Allow function type for `sx` prop (#29198) @hbjORbj
|
|
250
|
+
- ​<!-- 10 -->[system] Fix various issues reported by using @mui/styled-engine-sc (#29035) @mnajdova
|
|
251
|
+
- ​<!-- 09 -->[system] Fix `colorScheme` conflict between application (#29139) @siriwatknp
|
|
252
|
+
- ​<!-- 08 -->[system] Add `unstable_createCssVarsProvider` api (#28965) @siriwatknp
|
|
253
|
+
|
|
254
|
+
### Documentation
|
|
255
|
+
|
|
256
|
+
- ​<!-- 31 -->[docs] Fix path to `DataGrid` CSV export options page (#29220) @DanailH
|
|
257
|
+
- ​<!-- 30 -->[docs] Give anonymous components a name (#29189) @eps1lon
|
|
258
|
+
- ​<!-- 29 -->[docs] Add deploy context variables (#29195) @siriwatknp
|
|
259
|
+
- ​<!-- 28 -->[docs] Add MUI packages explanation (#29073) @siriwatknp
|
|
260
|
+
- ​<!-- 27 -->[docs] Fix typo in CSP policy (#29187) @JuliaNeumann
|
|
261
|
+
- ​<!-- 26 -->[docs] Dark mode conditional content rendering (#28665) @michal-perlakowski
|
|
262
|
+
- ​<!-- 25 -->[docs] Fix ClassNameGenerator introduced version #29177 @siriwatknp
|
|
263
|
+
- ​<!-- 24 -->[docs] Add missing `justifyContent` values and update box styling (#29117) @omarmosid
|
|
264
|
+
- ​<!-- 23 -->[docs] Make landing page hero section scrollable (#29141) @waxidiotic
|
|
265
|
+
- ​<!-- 22 -->[docs] Discourage importing different bundles directly (#29133) @eps1lon
|
|
266
|
+
- ​<!-- 21 -->[docs] Update module augmentation reference url (#29064) @gnowland
|
|
267
|
+
- ​<!-- 12 -->[pricing] Add tooltip to pricing icon (#28959) @siriwatknp
|
|
268
|
+
- ​<!-- 07 -->[Team] Add Alexandre in the about page (#29289)
|
|
269
|
+
- ​<!-- 02 -->[website] Fix status label overflow in AdvancedShowcase (#29143) @LorenzHenk
|
|
270
|
+
- ​<!-- 01 -->[website] Update legacy logos (#28908) @michaldudak
|
|
271
|
+
|
|
272
|
+
### Core
|
|
273
|
+
|
|
274
|
+
- ​<!-- 37 -->[core] Order repro methods by preference (#29156) @eps1lon
|
|
275
|
+
- ​<!-- 36 -->[core] Remove unnecessary usages of `useEventCallback` (#28910) @NMinhNguyen
|
|
276
|
+
- ​<!-- 35 -->[core] add `unstable_ClassNameGenerator` API (#29051) @siriwatknp
|
|
277
|
+
- ​<!-- 34 -->[core] Fix issues when using styled-components (#29048) @mnajdova
|
|
278
|
+
- ​<!-- 33 -->[core] replace hard-coded classname with classes (#29070) @siriwatknp
|
|
279
|
+
- ​<!-- 06 -->[test] Add documentation for visual regression tests (#29154) @eps1lon
|
|
280
|
+
- ​<!-- 05 -->[test] Enable "missing act" warnings using new proposal (#29167) @eps1lon
|
|
281
|
+
|
|
282
|
+
All contributors of this release in alphabetical order: @adamfitzgibbon, @DanailH, @deepanshu2506, @Devesh21700Kumar, @eps1lon, @gnowland, @hbjORbj, @jatinsandilya, @JuliaNeumann, @LorenzHenk, @michal-perlakowski, @michaldudak, @mnajdova, @nikitabobers, @NMinhNguyen, @omarmosid, @rebeccahongsf, @siriwatknp, @waxidiotic
|
|
283
|
+
|
|
3
284
|
## 5.0.4
|
|
4
285
|
|
|
5
286
|
<!-- generated comparing v5.0.3..master -->
|
|
@@ -8,7 +289,7 @@ _Oct 14, 2021_
|
|
|
8
289
|
|
|
9
290
|
A big thanks to the 17 contributors who made this release possible. Here are some highlights ✨:
|
|
10
291
|
|
|
11
|
-
- 🧪 Added `UnstyledInput` and `useInput` hook in the the first component in @mui/
|
|
292
|
+
- 🧪 Added `UnstyledInput` and `useInput` hook in the the first component in @mui/base package @michaldudak (#28053)
|
|
12
293
|
- 🐛 Fixed many bugs and improved the documentation 📚.
|
|
13
294
|
|
|
14
295
|
### `@mui/material@5.0.4`
|
|
@@ -23,7 +304,7 @@ A big thanks to the 17 contributors who made this release possible. Here are som
|
|
|
23
304
|
|
|
24
305
|
- ​<!-- 05 -->[system] Update typing for `style` function (#28744) @hbjORbj
|
|
25
306
|
|
|
26
|
-
### `@mui/
|
|
307
|
+
### `@mui/base@5.0.0-alpha.51`
|
|
27
308
|
|
|
28
309
|
- ​<!-- 07 -->[InputUnstyled] Create unstyled input and useInput hook (#28053) @michaldudak
|
|
29
310
|
|
|
@@ -92,7 +373,7 @@ A big thanks to the 19 contributors who made this release possible. Here are som
|
|
|
92
373
|
|
|
93
374
|
- ​<!-- 42 -->Don't allow styled-components APIs on mui styled function (#28807) @hbjORbj
|
|
94
375
|
|
|
95
|
-
### `@mui/
|
|
376
|
+
### `@mui/base@5.0.0-alpha.50`
|
|
96
377
|
|
|
97
378
|
- ​<!-- 38 -->[ButtonUnstyled] Don't set redundant role=button (#28488) @michaldudak
|
|
98
379
|
- ​<!-- 43 -->[SliderUnstyled] Prevent unknown-prop error when using marks prop (#28868) @hbjORbj
|
|
@@ -471,10 +752,10 @@ A big thanks to the 18 contributors who made this release possible. Here are som
|
|
|
471
752
|
```
|
|
472
753
|
@material-ui/core => @mui/material // represents Material Design components.
|
|
473
754
|
@material-ui/icons => @mui/icons-material // represents Material Design icons.
|
|
474
|
-
@material-ui/unstyled => @mui/
|
|
755
|
+
@material-ui/unstyled => @mui/base // fully functional components with minimum styles.
|
|
475
756
|
```
|
|
476
757
|
|
|
477
|
-
> **Note**: `@mui/
|
|
758
|
+
> **Note**: `@mui/base` (previously `@material-ui/unstyled`) is not the same as `@material-ui/core`.
|
|
478
759
|
|
|
479
760
|
We encourage you to use the [codemod](https://github.com/mui-org/material-ui/blob/next/packages/mui-codemod/README.md#mui-replace) for smooth migration.
|
|
480
761
|
|
|
@@ -489,7 +770,7 @@ A big thanks to the 18 contributors who made this release possible. Here are som
|
|
|
489
770
|
- ​<!-- 05 -->[ToggleButtonGroup] Add "disabled" prop (#27998) @chetas411
|
|
490
771
|
- ​<!-- 34 -->[core] Export types for module augmentation (#28078) @m4theushw
|
|
491
772
|
|
|
492
|
-
### `@mui/
|
|
773
|
+
### `@mui/base@5.0.0-alpha.45`
|
|
493
774
|
|
|
494
775
|
- ​<!-- 38 -->[Button] Create ButtonUnstyled and useButton (#27600) @michaldudak
|
|
495
776
|
|
package/breakpoints.js
CHANGED
|
@@ -5,6 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
+
exports.computeBreakpointsBase = computeBreakpointsBase;
|
|
8
9
|
exports.createEmptyBreakpointObject = createEmptyBreakpointObject;
|
|
9
10
|
exports.default = void 0;
|
|
10
11
|
exports.handleBreakpoints = handleBreakpoints;
|
|
@@ -27,12 +28,12 @@ const values = {
|
|
|
27
28
|
xs: 0,
|
|
28
29
|
// phone
|
|
29
30
|
sm: 600,
|
|
30
|
-
//
|
|
31
|
+
// tablet
|
|
31
32
|
md: 900,
|
|
32
33
|
// small laptop
|
|
33
34
|
lg: 1200,
|
|
34
35
|
// desktop
|
|
35
|
-
xl: 1536 // large
|
|
36
|
+
xl: 1536 // large screen
|
|
36
37
|
|
|
37
38
|
};
|
|
38
39
|
exports.values = values;
|
|
@@ -131,12 +132,43 @@ function mergeBreakpointsInOrder(breakpointsInput, ...styles) {
|
|
|
131
132
|
const emptyBreakpoints = createEmptyBreakpointObject(breakpointsInput);
|
|
132
133
|
const mergedOutput = [emptyBreakpoints, ...styles].reduce((prev, next) => (0, _utils.deepmerge)(prev, next), {});
|
|
133
134
|
return removeUnusedBreakpoints(Object.keys(emptyBreakpoints), mergedOutput);
|
|
135
|
+
} // compute base for responsive values; e.g.,
|
|
136
|
+
// [1,2,3] => {xs: true, sm: true, md: true}
|
|
137
|
+
// {xs: 1, sm: 2, md: 3} => {xs: true, sm: true, md: true}
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
function computeBreakpointsBase(breakpointValues, themeBreakpoints) {
|
|
141
|
+
// fixed value
|
|
142
|
+
if (typeof breakpointValues !== 'object') {
|
|
143
|
+
return {};
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
const base = {};
|
|
147
|
+
const breakpointsKeys = Object.keys(themeBreakpoints);
|
|
148
|
+
|
|
149
|
+
if (Array.isArray(breakpointValues)) {
|
|
150
|
+
breakpointsKeys.forEach((breakpoint, i) => {
|
|
151
|
+
if (i < breakpointValues.length) {
|
|
152
|
+
base[breakpoint] = true;
|
|
153
|
+
}
|
|
154
|
+
});
|
|
155
|
+
} else {
|
|
156
|
+
breakpointsKeys.forEach(breakpoint => {
|
|
157
|
+
if (breakpointValues[breakpoint] != null) {
|
|
158
|
+
base[breakpoint] = true;
|
|
159
|
+
}
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
return base;
|
|
134
164
|
}
|
|
135
165
|
|
|
136
166
|
function resolveBreakpointValues({
|
|
137
167
|
values: breakpointValues,
|
|
138
|
-
|
|
168
|
+
breakpoints: themeBreakpoints,
|
|
169
|
+
base: customBase
|
|
139
170
|
}) {
|
|
171
|
+
const base = customBase || computeBreakpointsBase(breakpointValues, themeBreakpoints);
|
|
140
172
|
const keys = Object.keys(base);
|
|
141
173
|
|
|
142
174
|
if (keys.length === 0) {
|
|
@@ -144,14 +176,15 @@ function resolveBreakpointValues({
|
|
|
144
176
|
}
|
|
145
177
|
|
|
146
178
|
let previous;
|
|
147
|
-
return keys.reduce((acc, breakpoint) => {
|
|
148
|
-
if (
|
|
149
|
-
acc[breakpoint] = breakpointValues[
|
|
179
|
+
return keys.reduce((acc, breakpoint, i) => {
|
|
180
|
+
if (Array.isArray(breakpointValues)) {
|
|
181
|
+
acc[breakpoint] = breakpointValues[i] != null ? breakpointValues[i] : breakpointValues[previous];
|
|
182
|
+
previous = i;
|
|
150
183
|
} else {
|
|
151
|
-
acc[breakpoint] = breakpointValues;
|
|
184
|
+
acc[breakpoint] = breakpointValues[breakpoint] != null ? breakpointValues[breakpoint] : breakpointValues[previous] || breakpointValues;
|
|
185
|
+
previous = breakpoint;
|
|
152
186
|
}
|
|
153
187
|
|
|
154
|
-
previous = breakpoint;
|
|
155
188
|
return acc;
|
|
156
189
|
}, {});
|
|
157
190
|
}
|
package/createBox.d.ts
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
|
|
3
|
-
export default function createBox(options?: {
|
|
3
|
+
export default function createBox(options?: {
|
|
4
|
+
defaultTheme: object;
|
|
5
|
+
defaultClassName?: string;
|
|
6
|
+
generateClassName?: () => string;
|
|
7
|
+
}): React.ElementType;
|
package/createBox.js
CHANGED
|
@@ -33,7 +33,9 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
33
33
|
|
|
34
34
|
function createBox(options = {}) {
|
|
35
35
|
const {
|
|
36
|
-
defaultTheme
|
|
36
|
+
defaultTheme,
|
|
37
|
+
defaultClassName = 'MuiBox-root',
|
|
38
|
+
generateClassName
|
|
37
39
|
} = options;
|
|
38
40
|
const BoxRoot = (0, _styledEngine.default)('div')(_styleFunctionSx.default);
|
|
39
41
|
const Box = /*#__PURE__*/React.forwardRef(function Box(inProps, ref) {
|
|
@@ -49,7 +51,7 @@ function createBox(options = {}) {
|
|
|
49
51
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(BoxRoot, (0, _extends2.default)({
|
|
50
52
|
as: component,
|
|
51
53
|
ref: ref,
|
|
52
|
-
className: (0, _clsx.default)(className,
|
|
54
|
+
className: (0, _clsx.default)(className, generateClassName ? generateClassName(defaultClassName) : defaultClassName),
|
|
53
55
|
theme: theme
|
|
54
56
|
}, other));
|
|
55
57
|
});
|
|
@@ -75,7 +77,7 @@ function createBox(options = {}) {
|
|
|
75
77
|
/**
|
|
76
78
|
* @ignore
|
|
77
79
|
*/
|
|
78
|
-
sx: _propTypes.default.object
|
|
80
|
+
sx: _propTypes.default.oneOfType([_propTypes.default.object, _propTypes.default.array])
|
|
79
81
|
} : void 0;
|
|
80
82
|
return Box;
|
|
81
83
|
}
|