@mui/material-nextjs 6.0.0-alpha.0 → 6.0.0-dev.20240529-082515-213b5e33ab

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 CHANGED
@@ -1,5 +1,427 @@
1
1
  # [Versions](https://mui.com/versions/)
2
2
 
3
+ ## v6.0.0-alpha.8
4
+
5
+ <!-- generated comparing v6.0.0-alpha.7..next -->
6
+
7
+ _May 21, 2024_
8
+
9
+ A big thanks to the 7 contributors who made this release possible.
10
+ This release was mostly about 🐛 bug fixes and 📚 documentation improvements.
11
+
12
+ ### `@mui/material@6.0.0-alpha.7`
13
+
14
+ - &#8203;<!-- 04 -->[material-ui] Filter only valid theme palette for generating styles (#42147) @siriwatknp
15
+ - &#8203;<!-- 03 -->[material-ui] Remove UMD bundle (#42172) @ZeeshanTamboli
16
+ - &#8203;<!-- 02 -->[material-ui][TextField] Deprecate `*Props` props (#42062) @DiegoAndai
17
+
18
+ ### Docs
19
+
20
+ - &#8203;<!-- 08 -->[docs] Remove Base UI from the README (#42307) @danilo-leal
21
+ - &#8203;<!-- 07 -->[docs][material-ui] Fix typo in style interoperability with Tailwind CSS docs (#42279) @ZeeshanTamboli
22
+ - &#8203;<!-- 06 -->[docs][material-ui] Add supported browsers section to migration guide (#42194) @DiegoAndai
23
+ - &#8203;<!-- 05 -->[docs][material-ui][Pagination] Clarify pagination `page` prop API (#42220) @Mandar-Pandya
24
+
25
+ ### Core
26
+
27
+ - &#8203;<!-- 12 -->[blog] Update blog post OG image (#42270) @danilo-leal
28
+ - &#8203;<!-- 11 -->[blog] Update Pigment CSS post (#42266) @danilo-leal
29
+ - &#8203;<!-- 10 -->[docs] Remove LocalMonero (#42224) @oliviertassinari
30
+ - &#8203;<!-- 08 -->[docs-infra] Fix keyboard navigation on page tabs (#42152) @danilo-leal
31
+ - &#8203;<!-- 10 -->[code-infra] Remove raw-loader (#42275) @Janpot
32
+ - &#8203;<!-- 09 -->[core] Remove outdated Babel plugins (#42140) @ZeeshanTamboli
33
+ - &#8203;<!-- 12 -->[core] Fix a few more key spread issues (#42168) @oliviertassinari
34
+ - &#8203;<!-- 01 -->[website] Avoid duplicate simple vs. rich (#42100) @oliviertassinari
35
+
36
+ All contributors of this release in alphabetical order: @danilo-leal, @DiegoAndai, @Janpot, @Mandar-Pandya, @oliviertassinari, @siriwatknp, @ZeeshanTamboli
37
+
38
+ ## v6.0.0-alpha.7
39
+
40
+ <!-- generated comparing v6.0.0-alpha.6..next -->
41
+
42
+ _May 16, 2024_
43
+
44
+ A big thanks to the 14 contributors who made this release possible.
45
+
46
+ ### `@mui/material@6.0.0-alpha.7`
47
+
48
+ - &#8203;<!-- 23 -->[Autocomplete] Deprecate `componentsProps` props (#42179) @lhilgert9
49
+ - &#8203;<!-- 22 -->[Autocomplete] Improve design when there's a start adornment for small autocomplete (#41781) @TahaRhidouani
50
+ - &#8203;<!-- 21 -->[Autocomplete] deprecate `*Component` and `*Props` for v6 (#41875) @lhilgert9
51
+ - &#8203;<!-- 19 -->[CircularProgress] Deprecate composed classes (#42076) @sai6855
52
+ - &#8203;<!-- 05 -->[ToggleButtonGroup] Add missing `selected` class in ToggleButtonGroupClasses type (#42243) @tarunrajput
53
+
54
+ ### `@mui/codemod@6.0.0-alpha.6`
55
+
56
+ - &#8203;<!-- 18 -->[Divider] Only apply codemod if light prop is present (#42098) @DiegoAndai
57
+
58
+ ### Docs
59
+
60
+ - &#8203;<!-- 13 -->Fix 301 to Figma @oliviertassinari
61
+ - &#8203;<!-- 12 -->Fix use of deprecated React API (#42118) @oliviertassinari
62
+ - &#8203;<!-- 11 -->Remove the Base notification (#42191) @danilo-leal
63
+ - &#8203;<!-- 07 -->[material-ui] Improve descriptions for deprecated props (#42221) @aarongarciah
64
+ - &#8203;<!-- 06 -->[material-ui] Fix typo in composition docs (#42195) @aarongarciah
65
+
66
+ ### Core
67
+
68
+ - &#8203;<!-- 20 -->[blog] Introducing Pigment CSS blog post (#42198) @samuelsycamore
69
+ - &#8203;<!-- 17 -->[core] Remove confusing comment @oliviertassinari
70
+ - &#8203;<!-- 16 -->[core] Match other repositories and convention @oliviertassinari
71
+ - &#8203;<!-- 15 -->[core] Fix React 18.3 warnings about spreading keys in the Material UI `Autocomplete` component (#42099) @heath-freenome
72
+ - &#8203;<!-- 14 -->[core] Remove unecessary quotes @oliviertassinari
73
+ - &#8203;<!-- 10 -->[docs-infra] Share code for section title (#42236) @alexfauquette
74
+ - &#8203;<!-- 09 -->[docs-infra] Limit the copy button to the visible code block (#42115) @danilo-leal
75
+ - &#8203;<!-- 08 -->[docs-infra] Make select components with two capital letters (#42004) @alexfauquette
76
+ - &#8203;<!-- 08 -->[docs-infra][toolpad] Fix Page title and SERP title mismatch (#41919) @bharatkashyap
77
+ - &#8203;<!-- 05 -->[website] Add redirection for talk @oliviertassinari
78
+ - &#8203;<!-- 04 -->[website] Adds Arthur Balduini team info (#42193) @arthurbalduini
79
+ - &#8203;<!-- 03 -->[website] Update the role template file (#42192) @danilo-leal
80
+ - &#8203;<!-- 02 -->[website] Update MUI X deps and migrate TreeView demos to v7 API (#42149) @noraleonte
81
+ - &#8203;<!-- 01 -->[website] Fix pricing casing (#42178) @aarongarciah
82
+
83
+ All contributors of this release in alphabetical order: @aarongarciah, @alexfauquette, @arthurbalduini, @bharatkashyap, @danilo-leal, @DiegoAndai, @heath-freenome, @lhilgert9, @noraleonte, @oliviertassinari, @sai6855, @samuelsycamore, @TahaRhidouani, @tarunrajput
84
+
85
+ ## v6.0.0-alpha.6
86
+
87
+ <!-- generated comparing v6.0.0-alpha.5..next -->
88
+
89
+ _May 8, 2024_
90
+
91
+ A big thanks to the 10 contributors who made this release possible.
92
+
93
+ ### `@mui/material@6.0.0-alpha.6`
94
+
95
+ - [Chip] Add colorDefault class to chipClasses (#42067) @sai6855
96
+ - Migrate components to support CSS extraction (#42001) @siriwatknp
97
+ - [SpeedDial] Deprecate TransitionComponent (#40698) @harry-whorlow
98
+
99
+ ### `@mui/codemod@6.0.0-alpha.6`
100
+
101
+ - Add `theme-v6` migration (#42056) @siriwatknp
102
+
103
+ ### `@mui/icons-material@6.0.0-alpha.6`
104
+
105
+ - Add the Emergency icon (#42080) @danilo-leal
106
+
107
+ ### Docs
108
+
109
+ - [autocomplete] Fix duplicate autocomplete id (#42086) @oliviertassinari
110
+ - Fix SEO redirection issues @oliviertassinari
111
+ - [material-ui] Fix broken link (#42142) @aarongarciah
112
+ - [material-ui][docs] Fix link on the Sync page (#42088) @danilo-leal
113
+
114
+ ### Core
115
+
116
+ - [blog] Shorten title to fit @oliviertassinari
117
+ - [blog] Update Sync post OG image (#42114) @danilo-leal
118
+ - [blog] A few tweaks in introducing-sync-plugin (#42092) @oliviertassinari
119
+ - [code-infra] Add canary release scripts (#41949) @michaldudak
120
+ - [code-infra] Move ComponentLinkHeader to @mui/docs (#42061) @Janpot
121
+ - [code-infra] Bump node image used by CI in docker (#42079) @LukasTy
122
+ - [core] Restrict import path with ESLint (#41970) @oliviertassinari
123
+ - [docs-infra] Add design and formatting improvements (#42063) @danilo-leal
124
+ - [docs-infra] Fix HTML structure violations (#42085) @oliviertassinari
125
+ - [website] Componentize a few Careers page sections (#42102) @danilo-leal
126
+ - [website] Refine the InfoCard design (#42116) @danilo-leal
127
+ - [website] Fix home page slider's track position (#42141) @aarongarciah
128
+ - [website] Closing the survey @oliviertassinari
129
+ - [website] Remove Survey banner from website and Core docs (#42104) @joserodolfofreitas
130
+
131
+ All contributors of this release in alphabetical order: @aarongarciah, @danilo-leal, @harry-whorlow, @Janpot, @joserodolfofreitas, @LukasTy, @michaldudak, @oliviertassinari, @sai6855, @siriwatknp
132
+
133
+ ## v6.0.0-alpha.5
134
+
135
+ <!-- generated comparing v6.0.0-alpha.4..next -->
136
+
137
+ _May 1, 2024_
138
+
139
+ A big thanks to the 9 contributors who made this release possible.
140
+
141
+ ### `@mui/material@6.0.0-alpha.5`
142
+
143
+ - [FormControlLabel] Deprecate `componentsProps` (#41767) @sai6855
144
+ - [PaginationItem] Deprecate components prop (#41777) @sai6855
145
+ - [SvgIcon] Convert to support CSS extraction (#41779) @aarongarciah
146
+
147
+ ### `@mui/base@5.0.0-beta.43`
148
+
149
+ - [TextareaAutosize] Fix resizing instability (#41638) @ZeeshanTamboli
150
+
151
+ ### Docs
152
+
153
+ - Fix small SEO issues @oliviertassinari
154
+ - [material-ui] Fix minor spelling error in the "About the lab" page (#42073) @ryanhartwig
155
+ - [material-ui] Update Figma plugin name (#41967) @danilo-leal
156
+ - [material-ui][templates] Fix input props attributes in Landing Page template (#42013) @5-tom
157
+ - [system] Update typo on the sx prop page (#42035) @bricker
158
+
159
+ ### Core
160
+
161
+ - [docs-infra] Clean up branding theme file and improve font-face readibility (#42023) @danilo-leal
162
+ - [docs-infra] Simplify docs demo (#42016) @oliviertassinari
163
+ - [website] Add content about the Sync plugin in the Material UI page (#40515) @danilo-leal
164
+ - [website] Sync career roles (#42058) @oliviertassinari
165
+ - [website] Add Nadja on the about page (#42021) @mnajdova
166
+ - [website] Fix code block design by changing the `MarkdownElement` import (#42022) @danilo-leal
167
+ - [wesbite] Remove duplicate MarkdownElement component (#42028) @danilo-leal
168
+
169
+ All contributors of this release in alphabetical order: @5-tom, @aarongarciah, @bricker, @danilo-leal, @mnajdova, @oliviertassinari, @ryanhartwig, @sai6855, @ZeeshanTamboli
170
+
171
+ ## v6.0.0-alpha.4
172
+
173
+ <!-- generated comparing v6.0.0-alpha.3..next -->
174
+
175
+ _Apr 24, 2024_
176
+
177
+ A big thanks to the 15 contributors who made this release possible. Here are some highlights ✨:
178
+
179
+ - 🔥 Converted 3 more Material UI components to use Pigment CSS.
180
+ - ℹ️ Pigment CSS now lives in [its own repository](https://github.com/mui/pigment-css)! From now on, all future development will happen there.
181
+
182
+ ### `@mui/material@6.0.0-alpha.4`
183
+
184
+ - [Checkbox] Convert to support CSS extraction (#41957) @lhilgert9
185
+ - [IconButton] Convert to support CSS extraction (#41850) @gijsbotje
186
+ - [Radio] Convert to support CSS extraction (#41840) @lhilgert9
187
+ - [Typography] Fix ownerState prop placement (#41903) @sai6855
188
+ - Generate typography tokens (#41703) @siriwatknp
189
+ - Move typography CSS variables to `font` (#42003) @siriwatknp
190
+ - Fix getOverlayAlpha type (#41995) @oliviertassinari
191
+ - Support CSS Extraction using codemod (#41935) @siriwatknp
192
+
193
+ ### `@mui/icons-material@6.0.0-alpha.4`
194
+
195
+ - &#8203;<!-- 08 -->[icons] Update the icons package (#41937) @danilo-leal
196
+
197
+ ### Docs
198
+
199
+ - [material-ui] Remove react-swipeable-views from demos as it's no longer maintained (#41912) @soler1212
200
+ - [material-ui] Add dark theme thumbnails for templates (#41947) @zanivan
201
+ - [material-ui] Remove links and interdependencies from free templates (#41941) @zanivan
202
+ - [material-ui] Add missing backticks to HTML tag in the installation page (#41972) @Miguelrom
203
+ - Fix 301 Toolpad links @oliviertassinari
204
+ - Fix 301 image redirections @oliviertassinari
205
+
206
+ ### Core
207
+
208
+ - pnpm docs:zipRules && vale sync @oliviertassinari
209
+ - Remove @pigment-css/\* packages (#41965) @mnajdova
210
+ - [code-infra] Move the HighlightedCode component to @mui/docs (#41859) @Janpot
211
+ - [code-infra] Move the HighlightedCode component to @mui/docs (#41859) @Janpot
212
+ - [code-infra] Make Babel config path configurable in API docs builder (#41999) @michaldudak
213
+ - [docs-infra] Fix flex-shrink pro-plan (#41990) @oliviertassinari
214
+ - [docs-infra] Allow more value uses of MUI (#41706) @oliviertassinari
215
+ - [docs-infra] Move CPU to shared config (#41901) @oliviertassinari
216
+ - [docs-infra] Improve Twitter OG:image (#41860) @oliviertassinari
217
+ - [docs-infra] Adapt docs infra to Base UI docs needs (#41963) @michaldudak
218
+ - [docs-infra] Add demo container design refinements (#41948) @danilo-leal
219
+ - [docs-infra] Use the `getLayout` on the material demo pages (#41936) @alexfauquette
220
+ - [test] Update browser versions in karma config (#42008) @ZeeshanTamboli
221
+ - [website] Remove customer support agent role from website (#41969) @rluzists1
222
+ - [website] Fix grid usage and add stray improvements (#41930) @danilo-leal
223
+
224
+ All contributors of this release in alphabetical order: @alexfauquette, @danilo-leal, @gijsbotje, @Janpot, @lhilgert9, @michaldudak, @Miguelrom, @mnajdova, @oliviertassinari, @rluzists1, @sai6855, @siriwatknp, @soler1212, @zanivan, @ZeeshanTamboli
225
+
226
+ ## v6.0.0-alpha.3
227
+
228
+ <!-- generated comparing v6.0.0-alpha.2..next -->
229
+
230
+ _Apr 17, 2024_
231
+
232
+ A big thanks to the 24 contributors who made this release possible. Here are some highlights ✨:
233
+
234
+ - 🔥 Converted 5 more Material UI components to use Pigment CSS.
235
+ - 🚀 Added container queries utility to the `@mui/system` package (#41674) @siriwatknp.
236
+
237
+ ### `@mui/material@6.0.0-alpha.3`
238
+
239
+ - Convert `LinearProgress` to support Pigment CSS (#41816) @siriwatknp
240
+ - [Dialog] Prevent onClick on the root element from being overwritten (#41881) @ryanburr
241
+ - [FloatingActionButton] Convert to support CSS extraction (#41851) @gijsbotje
242
+ - Convert `CircularProgress` to support Pigment CSS (#41776) @siriwatknp
243
+ - [PaginationItem] Convert to support CSS extraction (#41848) @gijsbotje
244
+ - [StepConnector] deprecate composed classes (#41740) @sai6855
245
+ - [StepLabel] Deprecate `StepIconComponent`, `StepIconProps` (#41835) @sai6855
246
+ - [ToggleButton] Convert to support CSS extraction (#41782) @lhilgert9
247
+ - [ToggleButtonGroup] Deprecate composed classes (#41288) @sai6855
248
+ - [Typography] Fix Typography inherit variant styles (#41308) @kealjones-wk
249
+
250
+ ### `@mui/system@6.0.0-alpha.3`
251
+
252
+ - Add container queries utility (#41674) @siriwatknp
253
+
254
+ ### `@mui/codemod@6.0.0-alpha.3`
255
+
256
+ - Add styled v6 transformation (#41743) @siriwatknp
257
+
258
+ ### `@mui/joy@5.0.0-beta.36`
259
+
260
+ - [Button] Disable text highlighting (#41902) @mithun522
261
+
262
+ ### `@pigment-css/react@0.0.7`
263
+
264
+ - Patch WyW's WeakRef usage (#41909) @DiegoAndai
265
+ - Implement sx transform for system components (#41861) @brijeshb42
266
+
267
+ ### Docs
268
+
269
+ - [material-ui] Add Connect-related content (#40848) @danilo-leal
270
+ - [material-ui] Fix credit comment typo (#41872) @aarongarciah
271
+ - [material-ui] Remove Data Grid v7 beta callout (#41839) @cherniavskii
272
+ - [material-ui] Add stray design tweaks to free templates (#41696) @zanivan
273
+ - [material-ui] Simplify components styling on templates (#41845) @zanivan
274
+ - [material-ui][Button] Add `onChange` event handler to file upload example (#41863) @aarongarciah
275
+ - [material-ui] Fix import statement in migration guide (#41852) @sai6855
276
+ - Fix 301 redirection @oliviertassinari
277
+ - Fix format git diff regression (#41882) @oliviertassinari
278
+ - Fix small SEO issues @oliviertassinari
279
+ - [pigment-css] Fix README typos (#41870) @MohammadShehadeh
280
+
281
+ ### Core
282
+
283
+ - Begin removing IE 11-related code (#41709) @iammminzzy
284
+ - [blog] Add post to introduce the Connect plugin (#41763) @danilo-leal
285
+ - [code-infra] Fix require.context with aliases (#41682) @Janpot
286
+ - [code-infra] Allow customizing hooks imports in API docs generator (#41828) @michaldudak
287
+ - [codemod] Add utils for `*Component` and `*Props` props deprecations (#41685) @DiegoAndai
288
+ - Replace bundle size reporter filter (#38979) @Janpot
289
+ - [docs-infra] Make the whole header clickable (#39603) @MoazMirza-13
290
+ - [docs-infra] Improve demo container and related components design (#41827) @danilo-leal
291
+ - [docs-infra] Use edge function for card generation (#41188) (#41836) @alexfauquette
292
+ - [docs-infra] Fix code block layout shift (#41917) @oliviertassinari
293
+ - [docs-infra] Fine-tune the OG card image design (#41862) @danilo-leal
294
+ - [docs-infra] Fix markdown version for material (#41908) @alexfauquette
295
+ - [docs-infra] Support multiple tabs in demos (#40901) @bharatkashyap
296
+
297
+ All contributors of this release in alphabetical order: @aarongarciah, @alexfauquette, @bharatkashyap, @brijeshb42, @cherniavskii, @danilo-leal, @DiegoAndai, @EyaOuenniche, @gijsbotje, @iammminzzy, @Janpot, @kealjones-wk, @lhilgert9, @magnimarels, @michaldudak, @mithun522, @mnajdova, @MoazMirza-13, @MohammadShehadeh, @oliviertassinari, @ryanburr, @sai6855, @siriwatknp, @zanivan
298
+
299
+ ## v6.0.0-alpha.2
300
+
301
+ <!-- generated comparing v6.0.0-alpha.1..next -->
302
+
303
+ _Apr 9, 2024_
304
+
305
+ A big thanks to the 5 contributors who made this release possible.
306
+ This release was mostly about 🐛 bug fixes and 📚 documentation improvements.
307
+
308
+ ### `@mui/material@6.0.0-alpha.2`
309
+
310
+ - &#8203;<!-- 03 -->[typescript][Select] Fix `muiName` property TypeScript error (#41726) @EyaOuenniche
311
+ - &#8203;<!-- 04 -->[l10n] Fix typo in is-IS locale (#41810) @magnimarels
312
+
313
+ ### `@pigment-css/react@0.0.6`
314
+
315
+ - &#8203;<!-- 12 -->[core] Remove `muiName` during eval phase (#41811) @brijeshb42
316
+
317
+ ### `@pigment-css/nextjs-plugin@0.0.6`
318
+
319
+ - &#8203;<!-- 02 -->[nextjs] Handle file references passed through imports (#41817) @brijeshb42
320
+ - &#8203;<!-- 01 -->[nextjs] Allow usage of url() CSS function (#41758) @brijeshb42
321
+
322
+ ### Docs
323
+
324
+ - &#8203;<!-- 11 -->[docs] Fix 301 links @oliviertassinari
325
+ - &#8203;<!-- 06 -->[pigment-css][docs] Fix README typo (#41808) @aarongarciah
326
+ - &#8203;<!-- 05 -->[pigment-css][docs] Fix output on dynamic styles example (#41805) @aarongarciah
327
+ - &#8203;<!-- 07 -->[material-ui][docs] Fix Material 3 message typo (#41821) @aarongarciah
328
+ - &#8203;<!-- 08 -->[material-ui][docs] Add stray design tweaks to free templates (#41696) @zanivan
329
+
330
+ ### Core
331
+
332
+ - &#8203;<!-- 13 -->[core] Remove unused files (#41818) @mnajdova
333
+ - &#8203;<!-- 10 -->[docs-infra] Fix analytics about inline ads (#41474) (#41819) @alexfauquette
334
+ - &#8203;<!-- 08 -->[docs-infra] Fix drawer performances (#41807) @alexfauquette
335
+
336
+ All contributors of this release in alphabetical order: @aarongarciah, @alexfauquette, @brijeshb42, @EyaOuenniche, @oliviertassinari
337
+
338
+ ## v6.0.0-alpha.1
339
+
340
+ <!-- generated comparing v6.0.0-alpha.0..next -->
341
+
342
+ _Apr 5, 2024_
343
+
344
+ A big thanks to the 19 contributors who made this release possible. Here are some highlights ✨:
345
+
346
+ - 🔥 Converted 3 more Material UI components to use Pigment CSS. Current progress is 36%!
347
+ - 🚀 Added a spacing CSS variable to the Material UI and Joy UI themes.
348
+ - 💫 Added 3 redesigned free Material UI templates: [Sign-in](https://next.mui.com/material-ui/getting-started/templates/sign-in/), [Sign-in side](https://next.mui.com/material-ui/getting-started/templates/sign-in-side/), and [Sign-up](https://next.mui.com/material-ui/getting-started/templates/sign-up/).
349
+
350
+ ### `@mui/material@6.0.0-alpha.1`
351
+
352
+ - [AppBar] Convert to support CSS extraction (#41247) @mnajdova
353
+ - [Badge] Deprecate components and componentsProps (#41655) @skmanoj322
354
+ - [Button] Convert to support CSS extraction (#41378) @siriwatknp
355
+ - [ButtonGroup] Convert to support CSS extraction (#41666) @zanivan
356
+ - [RadioGroup] Apply classnames (#41610) @ZeeshanTamboli
357
+ - [Slider] Move palette styles to the bottom (#41676) @siriwatknp
358
+ - Add the `spacing` theme token (#40224) @siriwatknp
359
+
360
+ ### `@mui/system@6.0.0-alpha.1`
361
+
362
+ - Add the `spacing` theme token to be used in `theme.spacing()` (#40224) @siriwatknp
363
+
364
+ ### `@mui/codemod@6.0.0-alpha.1`
365
+
366
+ - [codemod] Setup v6 codemod structure (#41668) @DiegoAndai
367
+
368
+ ### `@mui/lab@6.0.0-alpha.1`
369
+
370
+ - [TabPanel] Add keepMounted prop to match Joy UI (#41651) @ppaskaris-plooto
371
+
372
+ ### `@mui/joy@5.0.0-beta.34`
373
+
374
+ - Add `spacing` theme token (#40224) @siriwatknp
375
+
376
+ ### `@pigment-css/react@0.0.5`
377
+
378
+ - Improve sx prop support (#41589) @brijeshb42
379
+ - Fix Emotion styled error (#41699) @siriwatknp
380
+ - Fix propTypes removal during eval stage (#41695) @brijeshb42
381
+ - Fix props forwarding (#41688) @siriwatknp
382
+ - Fix sx prop transformation on Box (#41705) @brijeshb42
383
+
384
+ ### `@pigment-css/vite-plugin@0.0.5`
385
+
386
+ - Use constant filename for pigment styles (#41667) @brijeshb42
387
+
388
+ ### `@pigment-css/nextjs-plugin@0.0.5`
389
+
390
+ - Add missing RTL implementation (#41751) @brijeshb42
391
+
392
+ ### Docs
393
+
394
+ - [pigment-css] Update README.md installation to use the next tag (#41649) @mnajdova
395
+ - [pigment-css] Add "Building design system components" guide with Pigment CSS (#41635) @siriwatknp
396
+ - Continue migration of Base UI to sperate repository @oliviertassinari
397
+ - Stick to one way to write IE 11 @oliviertassinari
398
+ - Fix typo in CONTRIBUTING.md (#41670) @adriancuadrado
399
+ - Drop IE 11 official support (#41611) @iammminzzy
400
+ - [material-ui] Fix typo on the Accordion page (#41687) @connorshea
401
+ - [pigment-css] Add small edits on the README (#41646) @danilo-leal
402
+ - [pigment-css] Edit the example app's README files (#41639) @danilo-leal
403
+
404
+ ### Core
405
+
406
+ - [code-infra] Move BrandingProvider/brandingTheme/InfoCard to @mui/docs (#41206) @Janpot
407
+ - [core] Automate cherry-pick of PRs from `next` -> `master` (#41741) @aarongarciah
408
+ - [core] Update the prettier script to use the next branch (#41637) @mnajdova
409
+ - [docs-infra] Skip loading source for non-editable modules (#41588) @bharatkashyap
410
+ - [docs-infra] Vale rule for M3 (#41737) @oliviertassinari
411
+ - [docs-infra] Allows to remove edit button (#41702) @alexfauquette
412
+ - [pigment-css][examples] Add example project with Remix (#41700) @brijeshb42
413
+ - [examples] Update MUI's packages to the next version (#41701) @mnajdova
414
+ - [material-ui] Refine the Sign-in and Sign-up templates (#41192) @zanivan
415
+ - [test] Add test to display options provided to the options prop even if loading is true. (#41675) @ZeeshanTamboli
416
+ - [blog] Refresh the design slightly (#41697) @danilo-leal
417
+ - [website] Use en-US over en-UK for career link @oliviertassinari
418
+ - [website] Add Aarón to About Us (#41736) @aarongarciah
419
+ - [website] Refine button design and other details (#41686) @danilo-leal
420
+ - [website] Improve job og image (#41672) @oliviertassinari
421
+ - [website] Page <title> should have no dots @oliviertassinari
422
+
423
+ All contributors of this release in alphabetical order: @aarongarciah, @adriancuadrado, @alexfauquette, @bharatkashyap, @brijeshb42, @connorshea, @danilo-leal, @DiegoAndai, @iammminzzy, @Janpot, @JCQuintas, @levigunz, @mnajdova, @oliviertassinari, @ppaskaris-plooto, @siriwatknp, @skmanoj322, @zanivan, @ZeeshanTamboli
424
+
3
425
  ## v6.0.0-alpha.0
4
426
 
5
427
  <!-- generated comparing v5.15.14..next -->
@@ -79,6 +501,46 @@ A big thanks to the 18 contributors who made this release possible. Here are som
79
501
 
80
502
  All contributors of this release in alphabetical order: @aacevski, @brijeshb42, @cherniavskii, @cipherlogs, @danilo-leal, @DiegoAndai, @harry-whorlow, @Janpot, @joserodolfofreitas, @michael-land, @michaldudak, @mnajdova, @nekoya, @sai6855, @siriwatknp, @StylesTrip, @zanivan, @ZeeshanTamboli
81
503
 
504
+ ## v5.15.15
505
+
506
+ <!-- generated comparing v5.15.14..master -->
507
+
508
+ _Apr 4, 2024_
509
+
510
+ A big thanks to the 7 contributors who made this release possible. Here are some highlights ✨:
511
+ This release was mostly about 🐛 bug fixes and 📚 documentation improvements.
512
+
513
+ ### `@mui/material@5.15.15`
514
+
515
+ - [Autocomplete] Display options provided to the `options` prop even if loading is true (#41677) @ZeeshanTamboli
516
+ - [RadioGroup] Apply classnames (#41681) @ZeeshanTamboli
517
+
518
+ ### `@mui/system@5.15.15`
519
+
520
+ - Fix typo to avoid infinite recursion in function call (#41678) @ZeeshanTamboli
521
+
522
+ ### Docs
523
+
524
+ - [material-ui][Slider] Remove `valueLabelFormat` from restricted values demo so that the tooltip thumb label displays the same as the value text (#41679) @ZeeshanTamboli
525
+ - [material-ui] Remove deleted page from the sidenav (#41594) @danilo-leal
526
+ - [material-ui] Fix typo in CSS theme variables customization (#41680) @ZeeshanTamboli
527
+ - Continue migration of Base UI to sperate repository @oliviertassinari
528
+ - Add notification for MUI X v7 blog post (#41587) (#41605) @cherniavskii
529
+ - Update the versions dropdown to show v6 (#41557) @mnajdova
530
+
531
+ ### Core
532
+
533
+ - [blog] Link to Romain's blog post in MUI X v7 announcement post (#41641) @cherniavskii
534
+ - [blog] Blog post with MUI X v7.0.0 annoucement (#41563) (#41604) @cherniavskii
535
+ - [blog] Add post about remote (#41565) @danilo-leal
536
+ - [core] Continue rename of Toolpad @oliviertassinari
537
+ - [docs-infra] Add Toolpad product/category IDs to types (#41551) @bharatkashyap
538
+ - [website] Add Aarón to About Us (#41747) @aarongarciah
539
+ - [website] Add stray design adjustments throughout the site (#41642) @mnajdova
540
+ - [website] Update pricing table (#41606) @cherniavskii
541
+
542
+ All contributors of this release in alphabetical order: @aarongarciah, @bharatkashyap, @cherniavskii, @danilo-leal, @mnajdova, @oliviertassinari, @ZeeshanTamboli
543
+
82
544
  ## v5.15.14
83
545
 
84
546
  <!-- generated comparing v5.15.13..master -->
@@ -893,7 +1355,7 @@ A big thanks to the 22 contributors who made this release possible. Here are som
893
1355
  - [material-ui] Revise the Alert demo page (#34892) @samuelsycamore
894
1356
  - [material-ui] Revise the Accordion page (#40284) @anle9650
895
1357
  - [material-ui] Add docs for complementary Card components (#40346) @anle9650
896
- - [material-ui] Add Material 3 components page (#40350) @DiegoAndai
1358
+ - [material-ui] Add Material Design 3 components page (#40350) @DiegoAndai
897
1359
  - Fix strange italic style @oliviertassinari
898
1360
  - Fix references to ESLint @oliviertassinari
899
1361
  - Fix 301 redirections @oliviertassinari
@@ -8001,7 +8463,7 @@ A big thanks to the 25 contributors who made this release possible. Here are som
8001
8463
 
8002
8464
  <a href="https://mui.com/components/tables/#unstyled-table"><img width="800" alt="unstyled table" src="https://user-images.githubusercontent.com/4512430/144862194-584356ef-7d9d-462c-a631-186a7e716193.png"></a>
8003
8465
 
8004
- You can follow our progress with unstyled components at https://github.com/mui/material-ui/issues/27170.
8466
+ You can follow our progress with unstyled components at https://github.com/mui/base-ui/issues/10.
8005
8467
 
8006
8468
  - 🎉 We have added an example of how to use MUI with [Remix](https://remix.run/) (#29952) @mnajdova
8007
8469
 
@@ -9471,7 +9933,7 @@ A big thanks to the 17 contributors who made this release possible. Here are som
9471
9933
 
9472
9934
  <a href="https://mui.com/components/switches/#unstyled"><img width="832" alt="switch" src="https://user-images.githubusercontent.com/3165635/125192249-236f8a80-e247-11eb-9df9-17d476379a32.png"></a>
9473
9935
 
9474
- You can follow our progress at https://github.com/mui/material-ui/issues/27170.
9936
+ You can follow our progress at https://github.com/mui/base-ui/issues/10.
9475
9937
 
9476
9938
  - 💄 We have updated the default `info` `success` `warning` color to be more accessible (#26817) @siriwatknp.
9477
9939
  You can find the new [default values](https://mui.com/material-ui/customization/palette/#default-values) in the documentation.
@@ -13057,7 +13519,7 @@ Here are some highlights ✨:
13057
13519
 
13058
13520
  1. `stable` (default, formerly `esm`) which targets a snapshot (on release) of `> 0.5%, last 2 versions, Firefox ESR, not dead, not IE 11"`
13059
13521
  2. `node` (formerly default) which targets a snapshot (on release) of `maintained node versions`
13060
- 3. `legacy` (new) which is `stable` + IE11
13522
+ 3. `legacy` (new) which is `stable` + IE 11
13061
13523
  4. `modern` (formerly `es`) which targets the last 1 version of evergreen browsers and active node (currently that is 14
13062
13524
 
13063
13525
  The change yields a 6% reduction in bundle size 📦 (Babel only).
@@ -1,6 +1,5 @@
1
1
  'use client';
2
2
 
3
- import _extends from "@babel/runtime/helpers/esm/extends";
4
3
  import * as React from 'react';
5
4
  import createCache from '@emotion/cache';
6
5
  import { CacheProvider as DefaultCacheProvider } from '@emotion/react';
@@ -18,9 +17,10 @@ export default function AppRouterCacheProvider(props) {
18
17
  children
19
18
  } = props;
20
19
  const [registry] = React.useState(() => {
21
- const cache = createCache(_extends({}, options, {
20
+ const cache = createCache({
21
+ ...options,
22
22
  key: options?.key ?? 'mui'
23
- }));
23
+ });
24
24
  cache.compat = true;
25
25
  const prevInsert = cache.insert;
26
26
  let inserted = [];
@@ -1,4 +1,3 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
2
1
  var _meta;
3
2
  import * as React from 'react';
4
3
  import createEmotionServer from '@emotion/server/create-instance';
@@ -63,15 +62,17 @@ export async function documentGetInitialProps(ctx, options) {
63
62
  } = createEmotionServer(cache);
64
63
  return createGetInitialProps([{
65
64
  enhanceApp: App => function EnhanceApp(props) {
66
- return /*#__PURE__*/_jsx(App, _extends({
67
- emotionCache: cache
68
- }, props));
65
+ return /*#__PURE__*/_jsx(App, {
66
+ emotionCache: cache,
67
+ ...props
68
+ });
69
69
  },
70
70
  resolveProps: async initialProps => {
71
71
  const {
72
72
  styles
73
73
  } = extractCriticalToChunks(initialProps.html);
74
- return _extends({}, initialProps, {
74
+ return {
75
+ ...initialProps,
75
76
  emotionStyleTags: styles.map(style => /*#__PURE__*/_jsx("style", {
76
77
  "data-emotion": `${style.key} ${style.ids.join(' ')}`,
77
78
  // eslint-disable-next-line react/no-danger
@@ -79,7 +80,7 @@ export async function documentGetInitialProps(ctx, options) {
79
80
  __html: style.css
80
81
  }
81
82
  }, style.key))
82
- });
83
+ };
83
84
  }
84
85
  }, ...(options?.plugins ?? [])])(ctx);
85
86
  }
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
8
  exports.default = AppRouterCacheProvider;
9
- var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
10
9
  var React = _interopRequireWildcard(require("react"));
11
10
  var _cache = _interopRequireDefault(require("@emotion/cache"));
12
11
  var _react2 = require("@emotion/react");
@@ -27,9 +26,10 @@ function AppRouterCacheProvider(props) {
27
26
  } = props;
28
27
  const [registry] = React.useState(() => {
29
28
  var _options$key;
30
- const cache = (0, _cache.default)((0, _extends2.default)({}, options, {
29
+ const cache = (0, _cache.default)({
30
+ ...options,
31
31
  key: (_options$key = options == null ? void 0 : options.key) != null ? _options$key : 'mui'
32
- }));
32
+ });
33
33
  cache.compat = true;
34
34
  const prevInsert = cache.insert;
35
35
  let inserted = [];
@@ -7,7 +7,6 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.DocumentHeadTags = DocumentHeadTags;
8
8
  exports.createGetInitialProps = createGetInitialProps;
9
9
  exports.documentGetInitialProps = documentGetInitialProps;
10
- var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
10
  var React = _interopRequireWildcard(require("react"));
12
11
  var _createInstance = _interopRequireDefault(require("@emotion/server/create-instance"));
13
12
  var _document = _interopRequireDefault(require("next/document"));
@@ -75,15 +74,17 @@ async function documentGetInitialProps(ctx, options) {
75
74
  } = (0, _createInstance.default)(cache);
76
75
  return createGetInitialProps([{
77
76
  enhanceApp: App => function EnhanceApp(props) {
78
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(App, (0, _extends2.default)({
79
- emotionCache: cache
80
- }, props));
77
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(App, {
78
+ emotionCache: cache,
79
+ ...props
80
+ });
81
81
  },
82
82
  resolveProps: async initialProps => {
83
83
  const {
84
84
  styles
85
85
  } = extractCriticalToChunks(initialProps.html);
86
- return (0, _extends2.default)({}, initialProps, {
86
+ return {
87
+ ...initialProps,
87
88
  emotionStyleTags: styles.map(style => /*#__PURE__*/(0, _jsxRuntime.jsx)("style", {
88
89
  "data-emotion": `${style.key} ${style.ids.join(' ')}`,
89
90
  // eslint-disable-next-line react/no-danger
@@ -91,7 +92,7 @@ async function documentGetInitialProps(ctx, options) {
91
92
  __html: style.css
92
93
  }
93
94
  }, style.key))
94
- });
95
+ };
95
96
  }
96
97
  }, ...((_options$plugins = options == null ? void 0 : options.plugins) != null ? _options$plugins : [])])(ctx);
97
98
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/material-nextjs",
3
- "version": "6.0.0-alpha.0",
3
+ "version": "6.0.0-dev.20240529-082515-213b5e33ab",
4
4
  "private": false,
5
5
  "author": "MUI Team",
6
6
  "description": "Collection of utilities for integration between Material UI and Next.js.",
@@ -24,7 +24,7 @@
24
24
  "url": "https://opencollective.com/mui-org"
25
25
  },
26
26
  "dependencies": {
27
- "@babel/runtime": "^7.23.9"
27
+ "@babel/runtime": "^7.24.6"
28
28
  },
29
29
  "peerDependencies": {
30
30
  "@emotion/cache": "^11.11.0",
@@ -32,7 +32,7 @@
32
32
  "@types/react": "^17.0.0 || ^18.0.0",
33
33
  "next": "^13.0.0 || ^14.0.0",
34
34
  "react": "^17.0.0 || ^18.0.0",
35
- "@mui/material": "^6.0.0-alpha.0"
35
+ "@mui/material": "^6.0.0-dev.20240529-082515-213b5e33ab"
36
36
  },
37
37
  "peerDependenciesMeta": {
38
38
  "@types/react": {
@@ -1,6 +1,5 @@
1
1
  'use client';
2
2
 
3
- import _extends from "@babel/runtime/helpers/esm/extends";
4
3
  import * as React from 'react';
5
4
  import createCache from '@emotion/cache';
6
5
  import { CacheProvider as DefaultCacheProvider } from '@emotion/react';
@@ -18,9 +17,10 @@ export default function AppRouterCacheProvider(props) {
18
17
  children
19
18
  } = props;
20
19
  const [registry] = React.useState(() => {
21
- const cache = createCache(_extends({}, options, {
20
+ const cache = createCache({
21
+ ...options,
22
22
  key: options?.key ?? 'mui'
23
- }));
23
+ });
24
24
  cache.compat = true;
25
25
  const prevInsert = cache.insert;
26
26
  let inserted = [];
@@ -3,7 +3,7 @@ import { AppType } from 'next/app';
3
3
  import { EmotionCache } from '@emotion/react';
4
4
  import { DocumentContext, DocumentInitialProps } from 'next/document';
5
5
  interface Plugin {
6
- enhanceApp: (App: React.ComponentType<React.ComponentProps<AppType>>) => (props: any) => JSX.Element;
6
+ enhanceApp: (App: React.ComponentType<React.ComponentProps<AppType>>) => (props: any) => React.JSX.Element;
7
7
  resolveProps: (initialProps: DocumentInitialProps) => Promise<DocumentInitialProps>;
8
8
  }
9
9
  /**
@@ -11,7 +11,7 @@ interface Plugin {
11
11
  */
12
12
  export declare function createGetInitialProps(plugins: Plugin[]): (ctx: DocumentContext) => Promise<DocumentInitialProps>;
13
13
  export interface DocumentHeadTagsProps {
14
- emotionStyleTags: React.ReactElement[];
14
+ emotionStyleTags: React.ReactElement<any>[];
15
15
  }
16
16
  export declare function DocumentHeadTags(props: DocumentHeadTagsProps): React.JSX.Element;
17
17
  export declare function documentGetInitialProps(ctx: DocumentContext, options?: {
@@ -1,4 +1,3 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
2
1
  var _meta;
3
2
  import * as React from 'react';
4
3
  import createEmotionServer from '@emotion/server/create-instance';
@@ -63,15 +62,17 @@ export async function documentGetInitialProps(ctx, options) {
63
62
  } = createEmotionServer(cache);
64
63
  return createGetInitialProps([{
65
64
  enhanceApp: App => function EnhanceApp(props) {
66
- return /*#__PURE__*/_jsx(App, _extends({
67
- emotionCache: cache
68
- }, props));
65
+ return /*#__PURE__*/_jsx(App, {
66
+ emotionCache: cache,
67
+ ...props
68
+ });
69
69
  },
70
70
  resolveProps: async initialProps => {
71
71
  const {
72
72
  styles
73
73
  } = extractCriticalToChunks(initialProps.html);
74
- return _extends({}, initialProps, {
74
+ return {
75
+ ...initialProps,
75
76
  emotionStyleTags: styles.map(style => /*#__PURE__*/_jsx("style", {
76
77
  "data-emotion": `${style.key} ${style.ids.join(' ')}`,
77
78
  // eslint-disable-next-line react/no-danger
@@ -79,7 +80,7 @@ export async function documentGetInitialProps(ctx, options) {
79
80
  __html: style.css
80
81
  }
81
82
  }, style.key))
82
- });
83
+ };
83
84
  }
84
85
  }, ...(options?.plugins ?? [])])(ctx);
85
86
  }
@@ -1,108 +0,0 @@
1
- 'use client';
2
-
3
- import _extends from "@babel/runtime/helpers/esm/extends";
4
- import * as React from 'react';
5
- import createCache from '@emotion/cache';
6
- import { CacheProvider as DefaultCacheProvider } from '@emotion/react';
7
- import { useServerInsertedHTML } from 'next/navigation';
8
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
9
- /**
10
- * Emotion works OK without this provider but it's recommended to use this provider to improve performance.
11
- * Without it, Emotion will generate a new <style> tag during SSR for every component.
12
- * See https://github.com/mui/material-ui/issues/26561#issuecomment-855286153 for why it's a problem.
13
- */
14
- export default function AppRouterCacheProvider(props) {
15
- var options = props.options,
16
- _props$CacheProvider = props.CacheProvider,
17
- CacheProvider = _props$CacheProvider === void 0 ? DefaultCacheProvider : _props$CacheProvider,
18
- children = props.children;
19
- var _React$useState = React.useState(function () {
20
- var _options$key;
21
- var cache = createCache(_extends({}, options, {
22
- key: (_options$key = options == null ? void 0 : options.key) != null ? _options$key : 'mui'
23
- }));
24
- cache.compat = true;
25
- var prevInsert = cache.insert;
26
- var inserted = [];
27
- // Override the insert method to support streaming SSR with flush().
28
- cache.insert = function () {
29
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
30
- args[_key] = arguments[_key];
31
- }
32
- if (options != null && options.enableCssLayer) {
33
- args[1].styles = "@layer mui {".concat(args[1].styles, "}");
34
- }
35
- var selector = args[0],
36
- serialized = args[1];
37
- if (cache.inserted[serialized.name] === undefined) {
38
- inserted.push({
39
- name: serialized.name,
40
- isGlobal: !selector
41
- });
42
- }
43
- return prevInsert.apply(void 0, args);
44
- };
45
- var flush = function flush() {
46
- var prevInserted = inserted;
47
- inserted = [];
48
- return prevInserted;
49
- };
50
- return {
51
- cache: cache,
52
- flush: flush
53
- };
54
- }),
55
- registry = _React$useState[0];
56
- useServerInsertedHTML(function () {
57
- var inserted = registry.flush();
58
- if (inserted.length === 0) {
59
- return null;
60
- }
61
- var styles = '';
62
- var dataEmotionAttribute = registry.cache.key;
63
- var globals = [];
64
- inserted.forEach(function (_ref) {
65
- var name = _ref.name,
66
- isGlobal = _ref.isGlobal;
67
- var style = registry.cache.inserted[name];
68
- if (typeof style !== 'boolean') {
69
- if (isGlobal) {
70
- globals.push({
71
- name: name,
72
- style: style
73
- });
74
- } else {
75
- styles += style;
76
- dataEmotionAttribute += " ".concat(name);
77
- }
78
- }
79
- });
80
- return /*#__PURE__*/_jsxs(React.Fragment, {
81
- children: [globals.map(function (_ref2) {
82
- var name = _ref2.name,
83
- style = _ref2.style;
84
- return /*#__PURE__*/_jsx("style", {
85
- nonce: options == null ? void 0 : options.nonce,
86
- "data-emotion": "".concat(registry.cache.key, "-global ").concat(name)
87
- // eslint-disable-next-line react/no-danger
88
- ,
89
- dangerouslySetInnerHTML: {
90
- __html: style
91
- }
92
- }, name);
93
- }), styles && /*#__PURE__*/_jsx("style", {
94
- nonce: options == null ? void 0 : options.nonce,
95
- "data-emotion": dataEmotionAttribute
96
- // eslint-disable-next-line react/no-danger
97
- ,
98
- dangerouslySetInnerHTML: {
99
- __html: styles
100
- }
101
- })]
102
- });
103
- });
104
- return /*#__PURE__*/_jsx(CacheProvider, {
105
- value: registry.cache,
106
- children: children
107
- });
108
- }
@@ -1,2 +0,0 @@
1
- export { default as AppRouterCacheProvider } from './appRouterV13';
2
- export * from './appRouterV13';
@@ -1,17 +0,0 @@
1
- import createCache from '@emotion/cache';
2
- var isBrowser = typeof document !== 'undefined';
3
-
4
- // On the client side, Create a meta tag at the top of the <head> and set it as insertionPoint.
5
- // This assures that MUI styles are loaded first.
6
- // It allows developers to easily override MUI styles with other styling solutions, like CSS modules.
7
- export default function createEmotionCache() {
8
- var insertionPoint;
9
- if (isBrowser) {
10
- var emotionInsertionPoint = document.querySelector('meta[name="emotion-insertion-point"]');
11
- insertionPoint = emotionInsertionPoint != null ? emotionInsertionPoint : undefined;
12
- }
13
- return createCache({
14
- key: 'mui',
15
- insertionPoint: insertionPoint
16
- });
17
- }
@@ -1,2 +0,0 @@
1
- export * from './pagesRouterV13Document';
2
- export * from './pagesRouterV13App';
@@ -1,14 +0,0 @@
1
- import * as React from 'react';
2
- import { CacheProvider } from '@emotion/react';
3
- import createEmotionCache from './createCache';
4
- import { jsx as _jsx } from "react/jsx-runtime";
5
- var defaultEmotionCache = createEmotionCache();
6
- export function AppCacheProvider(_ref) {
7
- var _ref$emotionCache = _ref.emotionCache,
8
- emotionCache = _ref$emotionCache === void 0 ? defaultEmotionCache : _ref$emotionCache,
9
- children = _ref.children;
10
- return /*#__PURE__*/_jsx(CacheProvider, {
11
- value: emotionCache,
12
- children: children
13
- });
14
- }
@@ -1,164 +0,0 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
2
- import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
3
- import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
4
- var _meta;
5
- import _regeneratorRuntime from "@babel/runtime/regenerator";
6
- import * as React from 'react';
7
- import createEmotionServer from '@emotion/server/create-instance';
8
- import Document from 'next/document';
9
- import createEmotionCache from './createCache';
10
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
11
- /**
12
- * A utility to compose multiple `getInitialProps` functions.
13
- */
14
- export function createGetInitialProps(plugins) {
15
- return /*#__PURE__*/function () {
16
- var _getInitialProps = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(ctx) {
17
- var originalRenderPage, initialProps, finalProps;
18
- return _regeneratorRuntime.wrap(function _callee2$(_context2) {
19
- while (1) switch (_context2.prev = _context2.next) {
20
- case 0:
21
- originalRenderPage = ctx.renderPage;
22
- ctx.renderPage = function () {
23
- return originalRenderPage({
24
- enhanceApp: function enhanceApp(App) {
25
- return plugins.reduce(function (result, plugin) {
26
- return plugin.enhanceApp(result);
27
- }, App);
28
- }
29
- });
30
- };
31
- _context2.next = 4;
32
- return Document.getInitialProps(ctx);
33
- case 4:
34
- initialProps = _context2.sent;
35
- _context2.next = 7;
36
- return plugins.reduce( /*#__PURE__*/function () {
37
- var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(result, plugin) {
38
- return _regeneratorRuntime.wrap(function _callee$(_context) {
39
- while (1) switch (_context.prev = _context.next) {
40
- case 0:
41
- _context.t0 = plugin;
42
- _context.next = 3;
43
- return result;
44
- case 3:
45
- _context.t1 = _context.sent;
46
- return _context.abrupt("return", _context.t0.resolveProps.call(_context.t0, _context.t1));
47
- case 5:
48
- case "end":
49
- return _context.stop();
50
- }
51
- }, _callee);
52
- }));
53
- return function (_x2, _x3) {
54
- return _ref.apply(this, arguments);
55
- };
56
- }(), Promise.resolve(initialProps));
57
- case 7:
58
- finalProps = _context2.sent;
59
- return _context2.abrupt("return", finalProps);
60
- case 9:
61
- case "end":
62
- return _context2.stop();
63
- }
64
- }, _callee2);
65
- }));
66
- function getInitialProps(_x) {
67
- return _getInitialProps.apply(this, arguments);
68
- }
69
- return getInitialProps;
70
- }();
71
- }
72
- export function DocumentHeadTags(props) {
73
- return /*#__PURE__*/_jsxs(React.Fragment, {
74
- children: [_meta || (_meta = /*#__PURE__*/_jsx("meta", {
75
- name: "emotion-insertion-point",
76
- content: ""
77
- })), props.emotionStyleTags]
78
- });
79
- }
80
-
81
- // `getInitialProps` belongs to `_document` (instead of `_app`),
82
- // it's compatible with static-site generation (SSG).
83
- export function documentGetInitialProps(_x4, _x5) {
84
- return _documentGetInitialProps.apply(this, arguments);
85
- }
86
- function _documentGetInitialProps() {
87
- _documentGetInitialProps = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee4(ctx, options) {
88
- var _options$emotionCache, _options$plugins;
89
- var cache, _createEmotionServer, extractCriticalToChunks;
90
- return _regeneratorRuntime.wrap(function _callee4$(_context4) {
91
- while (1) switch (_context4.prev = _context4.next) {
92
- case 0:
93
- // Resolution order
94
- //
95
- // On the server:
96
- // 1. app.getInitialProps
97
- // 2. page.getInitialProps
98
- // 3. document.getInitialProps
99
- // 4. app.render
100
- // 5. page.render
101
- // 6. document.render
102
- //
103
- // On the server with error:
104
- // 1. document.getInitialProps
105
- // 2. app.render
106
- // 3. page.render
107
- // 4. document.render
108
- //
109
- // On the client
110
- // 1. app.getInitialProps
111
- // 2. page.getInitialProps
112
- // 3. app.render
113
- // 4. page.render
114
- // You can consider sharing the same Emotion cache between all the SSR requests to speed up performance.
115
- // However, be aware that it can have global side effects.
116
- cache = (_options$emotionCache = options == null ? void 0 : options.emotionCache) != null ? _options$emotionCache : createEmotionCache(); // The createEmotionServer has to be called directly after the cache creation due to the side effect of cache.compat = true,
117
- // otherwise the <style> tag will not come with the HTML string from the server.
118
- _createEmotionServer = createEmotionServer(cache), extractCriticalToChunks = _createEmotionServer.extractCriticalToChunks;
119
- return _context4.abrupt("return", createGetInitialProps([{
120
- enhanceApp: function enhanceApp(App) {
121
- return function EnhanceApp(props) {
122
- return /*#__PURE__*/_jsx(App, _extends({
123
- emotionCache: cache
124
- }, props));
125
- };
126
- },
127
- resolveProps: function () {
128
- var _resolveProps = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(initialProps) {
129
- var _extractCriticalToChu, styles;
130
- return _regeneratorRuntime.wrap(function _callee3$(_context3) {
131
- while (1) switch (_context3.prev = _context3.next) {
132
- case 0:
133
- _extractCriticalToChu = extractCriticalToChunks(initialProps.html), styles = _extractCriticalToChu.styles;
134
- return _context3.abrupt("return", _extends({}, initialProps, {
135
- emotionStyleTags: styles.map(function (style) {
136
- return /*#__PURE__*/_jsx("style", {
137
- "data-emotion": "".concat(style.key, " ").concat(style.ids.join(' ')),
138
- // eslint-disable-next-line react/no-danger
139
- dangerouslySetInnerHTML: {
140
- __html: style.css
141
- }
142
- }, style.key);
143
- })
144
- }));
145
- case 2:
146
- case "end":
147
- return _context3.stop();
148
- }
149
- }, _callee3);
150
- }));
151
- function resolveProps(_x6) {
152
- return _resolveProps.apply(this, arguments);
153
- }
154
- return resolveProps;
155
- }()
156
- }].concat(_toConsumableArray((_options$plugins = options == null ? void 0 : options.plugins) != null ? _options$plugins : [])))(ctx));
157
- case 3:
158
- case "end":
159
- return _context4.stop();
160
- }
161
- }, _callee4);
162
- }));
163
- return _documentGetInitialProps.apply(this, arguments);
164
- }
@@ -1 +0,0 @@
1
- export * from '../v13-appRouter';
@@ -1 +0,0 @@
1
- export * from '../v13-pagesRouter';