@mui/system 5.0.0 โ†’ 5.0.4

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/Box/Box.spec.d.ts CHANGED
@@ -1 +1 @@
1
- export {};
1
+ export {};
package/CHANGELOG.md CHANGED
@@ -1,5 +1,281 @@
1
1
  ### [Versions](https://mui.com/versions/)
2
2
 
3
+ ## 5.0.4
4
+
5
+ <!-- generated comparing v5.0.3..master -->
6
+
7
+ _Oct 14, 2021_
8
+
9
+ A big thanks to the 17 contributors who made this release possible. Here are some highlights โœจ:
10
+
11
+ - ๐Ÿงช Added `UnstyledInput` and `useInput` hook in the the first component in @mui/core package @michaldudak (#28053)
12
+ - ๐Ÿ› Fixed many bugs and improved the documentation ๐Ÿ“š.
13
+
14
+ ### `@mui/material@5.0.4`
15
+
16
+ - &#8203;<!-- 31 -->[Chip] disable ripple only if onDelete is present. (#29034) @mottox2
17
+ - &#8203;<!-- 06 -->[Pagination] Fix clicking on `...` triggering `onChange` with page value `null` (#28884) @ZeeshanTamboli
18
+ - &#8203;<!-- 04 -->[Tabs] Alternative way to disable ":first-child is unsafe" error (#28982) @hbjORbj
19
+ - &#8203;<!-- 03 -->[Tabs] Fix ":first-child is potentially unsafe" error (#28890) @hbjORbj
20
+ - &#8203;<!-- 01 -->[transitions] Mark `children` as required where nullish `children` would crash at runtime (#29028) @eps1lon
21
+
22
+ ### `@mui/system@5.0.4`
23
+
24
+ - &#8203;<!-- 05 -->[system] Update typing for `style` function (#28744) @hbjORbj
25
+
26
+ ### `@mui/core@5.0.0-alpha.51`
27
+
28
+ - &#8203;<!-- 07 -->[InputUnstyled] Create unstyled input and useInput hook (#28053) @michaldudak
29
+
30
+ ### `@mui/lab@5.0.0-alpha.51`
31
+
32
+ - &#8203;<!-- 25 -->[DesktopDatePicker] add Paper props to pass down to Paper component (#28865) @amen-souissi
33
+
34
+ ### Docs
35
+
36
+ - &#8203;<!-- 24 -->[docs] Add JSDoc to `theme.breakpoints` (#29039) @eps1lon
37
+ - &#8203;<!-- 23 -->[docs] Rename broken package names in docs pointing to `@mui/material` (#29006) @visualfanatic
38
+ - &#8203;<!-- 22 -->[docs] Add troubleshooting guide for unexpected styles (#28907) @mnajdova
39
+ - &#8203;<!-- 21 -->[docs] Fix issues reported by ahref (#28986) @mnajdova
40
+ - &#8203;<!-- 20 -->[docs] Remove json translations for dropped locales (#28987) @mnajdova
41
+ - &#8203;<!-- 19 -->[docs] Fix type signature of renderGroup in Autocomplete (#28876) @tanyabouman
42
+ - &#8203;<!-- 18 -->[docs] Minor typo in v4-v5 migration docs (#28995) @kgregory
43
+ - &#8203;<!-- 17 -->[docs] Add `mui-image` related project (#28621) @benmneb
44
+ - &#8203;<!-- 16 -->[docs] Update Getting Started Templates' Source URIs (#28929) @epodol
45
+ - &#8203;<!-- 15 -->[docs] Improve search experience (#28801) @siriwatknp
46
+ - &#8203;<!-- 14 -->[docs] Fix demo of the responsive drawer (#28226) @goncalovf
47
+ - &#8203;<!-- 13 -->[docs] Fix global theme link demo (#28974) @ZeeshanTamboli
48
+ - &#8203;<!-- 12 -->[docs] Update box example to use 'backgroundColor' rather than 'bgColor' (#28958) @Jareechang
49
+ - &#8203;<!-- 11 -->[docs] corrected `Box` import for `sx-prop` example (#28873) @phudekar
50
+ - &#8203;<!-- 10 -->[docs] Fix footnote ID links in CONTRIBUTING.md (#28849) @officialpiyush
51
+ - &#8203;<!-- 09 -->[docs] Fix color & density playground (#28803) @siriwatknp
52
+ - &#8203;<!-- 08 -->[docs] Improve visibility of styled engine configuration section in installation guide (#28903) @Jareechang
53
+
54
+ ### Core
55
+
56
+ - &#8203;<!-- 30 -->[core] Prevent yarn cache growing infinitely (#29040) @eps1lon
57
+ - &#8203;<!-- 29 -->[core] Update browserslist (#29025) @eps1lon
58
+ - &#8203;<!-- 28 -->[core] Update `peerDependencies` to require `latest` instead of `next` (#29007) @eps1lon
59
+ - &#8203;<!-- 27 -->[core] Increase memory limit for size:snapshot (#29005) @eps1lon
60
+ - &#8203;<!-- 26 -->[core] Init `private` Joy package (#28957) @siriwatknp
61
+ - &#8203;<!-- 02 -->[test] Remove a11y snapshot tests (#28887) @eps1lon
62
+
63
+ All contributors of this release in alphabetical order: @amen-souissi, @benmneb, @epodol, @eps1lon, @goncalovf, @hbjORbj, @Jareechang, @kgregory, @michaldudak, @mnajdova, @mottox2, @officialpiyush, @phudekar, @siriwatknp, @tanyabouman, @visualfanatic, @ZeeshanTamboli
64
+
65
+ ## 5.0.3
66
+
67
+ <!-- generated comparing v5.0.2..master -->
68
+
69
+ _Oct 7, 2021_
70
+
71
+ A big thanks to the 19 contributors who made this release possible. Here are some highlights โœจ:
72
+
73
+ - ๐Ÿงช Created the first component in @mui/material-next - our v6 prototype package.
74
+ - ๐Ÿ› Fixed many bugs and improved the documentation ๐Ÿ“š.
75
+
76
+ ### `@mui/material@5.0.3`
77
+
78
+ - &#8203;<!-- 10 -->[Stack] Add props & variants types in the theme (#28843) @mnajdova
79
+ - &#8203;<!-- 12 -->[InputLabel] Fix condition for applying formControl overrides (#28707) @yevheniiminin
80
+ - &#8203;<!-- 05 -->[Tooltip] Allow overriding internal components and their props (#28692) @michaldudak
81
+ - &#8203;<!-- 04 -->[transitions] Fix `addEndListener` not being called with the DOM node (#28715) @eps1lon
82
+
83
+ ### `@mui/codemod@5.0.3`
84
+
85
+ - &#8203;<!-- 37 -->[codemod] Fix `optimal-imports` to support v4 and v5-alpha, beta (#28812) @siriwatknp
86
+
87
+ ### `@mui/system@5.0.3`
88
+
89
+ - &#8203;<!-- 09 -->[system] Add padding/margin-block/inline to spacing (#28813) @smmoosavi
90
+
91
+ ### `@mui/styled-engine-sc@5.0.3`
92
+
93
+ - &#8203;<!-- 42 -->Don't allow styled-components APIs on mui styled function (#28807) @hbjORbj
94
+
95
+ ### `@mui/core@5.0.0-alpha.50`
96
+
97
+ - &#8203;<!-- 38 -->[ButtonUnstyled] Don't set redundant role=button (#28488) @michaldudak
98
+ - &#8203;<!-- 43 -->[SliderUnstyled] Prevent unknown-prop error when using marks prop (#28868) @hbjORbj
99
+
100
+ ### `@mui/lab@5.0.0-alpha.50`
101
+
102
+ - &#8203;<!-- 11 -->[pickers] Change view even if `onViewChange` is set (#28765) @eps1lon
103
+
104
+ ### `@mui/material-next@6.0.0-alpha.4`
105
+
106
+ - &#8203;<!-- 39 -->[Button-next] Create Button in material-next (#28313) @michaldudak
107
+
108
+ ### Docs
109
+
110
+ - &#8203;<!-- 34 -->[docs] Add alike v4 default button color in migration (#28881) @siriwatknp
111
+ - &#8203;<!-- 34 -->[docs] Use PNG instead of SVG for color preview (#28699) @eps1lon
112
+ - &#8203;<!-- 33 -->[docs] Use client-side navigation when activating docsearch results (#28750) @eps1lon
113
+ - &#8203;<!-- 32 -->[docs] Fluid icon size in icons search (#28747) @eps1lon
114
+ - &#8203;<!-- 31 -->[docs] Fix the wrong import in docs grid page (#28863) @taghi-khavari
115
+ - &#8203;<!-- 30 -->[docs] Fix typo in Pagination docs (#28864) @ZeeshanTamboli
116
+ - &#8203;<!-- 29 -->[docs] Fix 404 links (#28710) @mnajdova
117
+ - &#8203;<!-- 28 -->[docs] Fix typo in Mui CSS classname (#28725) @cacpgomes
118
+ - &#8203;<!-- 27 -->[docs] Match example to codesandbox demo and update ID link (#28762) @AnilSeervi
119
+ - &#8203;<!-- 26 -->[docs] Fix typo in system/box documentation (#28822) @iamsergo
120
+ - &#8203;<!-- 25 -->[docs] Use HTML standards for autocomplete attributes (#28827) @epodol
121
+ - &#8203;<!-- 24 -->[docs] Improve styled-components integration (#28713) @mnajdova
122
+ - &#8203;<!-- 23 -->[docs] Correct Select's menu placement description (#28748) @michaldudak
123
+ - &#8203;<!-- 22 -->[docs] AdapterDayJS -> AdapterDayjs (#28770) @veerreshr
124
+ - &#8203;<!-- 21 -->[docs] Theme documentation, typo fix (#28805) @saeedseyfi
125
+ - &#8203;<!-- 20 -->[docs] Add the last diamond sponsor (#28737) @hbjORbj
126
+ - &#8203;<!-- 19 -->[docs] Fix various links in CONTRIBUTING (#28751) @AnilSeervi
127
+ - &#8203;<!-- 18 -->[docs] Only add JSS to demos (#28698) @eps1lon
128
+ - &#8203;<!-- 17 -->[docs] Update v5 status in release schedule (#28700) @owais635
129
+ - &#8203;<!-- 16 -->[docs] Fix typo in /guides/styled-engine (#28720) @Sharry0
130
+ - &#8203;<!-- 15 -->[docs] Fix typo in chip documentation (#28641) @avranju94
131
+ - &#8203;<!-- 14 -->[docs] Fix versions page (#28682) @mnajdova
132
+ - &#8203;<!-- 13 -->[docs] Remove legacy team page (#28646) @mnajdova
133
+ - &#8203;<!-- 41 -->[website] add "React" to the hero description (#28830) @danilo-leal
134
+ - &#8203;<!-- 03 -->[website] Fix constantly reloading when Russian language is set (#28869) @mnajdova
135
+ - &#8203;<!-- 02 -->[website] Compress one avatar image on about us page (#28823) @hbjORbj
136
+ - &#8203;<!-- 01 -->[website] Hide 'become a diamond sponsor' box on landing page (#28814) @hbjORbj
137
+ - &#8203;<!-- 40 -->[website] Update Benny's profile on about us page (#28816) @hbjORbj
138
+
139
+ ### Core
140
+
141
+ - &#8203;<!-- 36 -->[core] Remove `--exact` from `release:version` (#28840) @siriwatknp
142
+ - &#8203;<!-- 35 -->[core] Neglect framer from release flow (#28680) @siriwatknp
143
+ - &#8203;<!-- 08 -->[test] Add a test for not allowing styled-components' APIs on mui `styled` function (#28862) @hbjORbj
144
+ - &#8203;<!-- 07 -->[test] Fix instances where type tests were only passing due to object being part of ReactNode (#28804) @eps1lon
145
+ - &#8203;<!-- 06 -->[test] Move ByMuiTest to test/utils (#28509) @eps1lon
146
+
147
+ All contributors of this release in alphabetical order: @AnilSeervi, @avranju94, @cacpgomes, @danilo-leal, @epodol, @eps1lon, @hbjORbj, @iamsergo, @michaldudak, @mnajdova, @owais635, @saeedseyfi, @Sharry0, @siriwatknp, @smmoosavi, @taghi-khavari, @veerreshr, @yevheniiminin, @ZeeshanTamboli
148
+
149
+ ## 5.0.2
150
+
151
+ <!-- generated comparing v5.0.1..master -->
152
+
153
+ _Sep 29, 2021_
154
+
155
+ A big thanks to the 15 contributors who made this release possible. Here are some highlights โœจ:
156
+
157
+ - ๐Ÿ”ง Improve `jss-to-styled` codemod to use new package names.
158
+ - And many more ๐Ÿ› bug fixes and ๐Ÿ“š improvements.
159
+
160
+ ### `@mui/material@5.0.2`
161
+
162
+ - &#8203;<!-- 28 -->[Checkbox] Fix form submission with empty value (#28423) @garronej
163
+ - &#8203;<!-- 08 -->[Slider] Don't error on minimal changes with readonly value (#28472) @eps1lon
164
+ - &#8203;<!-- 07 -->[Switch] Fix style overrides on input (#28576) @praveenkumar-kalidass
165
+ - &#8203;<!-- 03 -->[useMediaQuery] Add types for `matchMedia` option and deprecate exported interfaces (#28413) @eps1lon
166
+
167
+ ### `@mui/codemod@5.0.2`
168
+
169
+ - &#8203;<!-- 27 -->[codemod] Add MenuItem v.1.0.0 transform for primaryText property (#28640) @dmitry-yudakov
170
+ - &#8203;<!-- 26 -->[codemod] Update the imports in `jss-to-styled` to match the new package names (#28667) @mnajdova
171
+
172
+ ### `@mui/system@5.0.2`
173
+
174
+ - &#8203;<!-- 06 -->[system] Fix types to support theme callbacks on pseudo and nested selectors (#28570) @mnajdova
175
+
176
+ ### Docs
177
+
178
+ - &#8203;<!-- 23 -->[docs] Remove languages: fr, de, ja, es, ru (#28663) @mnajdova
179
+ - &#8203;<!-- 22 -->[docs] Improve old doc versions discoverability (#28651) @danilo-leal
180
+ - &#8203;<!-- 21 -->[docs] Make the Toggle Button size demo use default icon size (#28656) @danilo-leal
181
+ - &#8203;<!-- 20 -->[docs] Uniformize the code's font family (#28582) @oliviertassinari
182
+ - &#8203;<!-- 19 -->[docs] Removed duplicate line in date-ranger-picker.md file (#28635) @naveen-bharathi
183
+ - &#8203;<!-- 18 -->[docs] Fix title MUI x2 (#28634) @oliviertassinari
184
+ - &#8203;<!-- 17 -->[docs] Polish email validation logic (#28255) @kiznick
185
+ - &#8203;<!-- 16 -->[docs] Improve migration-v4.md phrasing (#28253) @adamthewebguy
186
+ - &#8203;<!-- 15 -->[docs] Fix color in example (#28527) @alexeagleson
187
+ - &#8203;<!-- 14 -->[docs] Fix typo in generated class names section (#28549) @fxlemire
188
+ - &#8203;<!-- 13 -->[docs] Mention Premium pricing cap (#28581) @oliviertassinari
189
+ - &#8203;<!-- 12 -->[docs] Update examples to use latest mui #28565 @siriwatknp
190
+ - &#8203;<!-- 11 -->[docs] Push the fixes on Next.js's Link to the examples (#28178) @oliviertassinari
191
+ - &#8203;<!-- 10 -->[docs] Fix wrong name for zIndex's property example in /system/ (#28541) @chetrit
192
+ - &#8203;<!-- 08 -->[examples] Nextjs Link missing passHref #28588 (#28661) @Brlaney
193
+ - &#8203;<!-- 02 -->[website] Iteration on the pricing page (#28406) @danilo-leal
194
+ - &#8203;<!-- 01 -->[website] Batch fixes (#28564) @siriwatknp
195
+
196
+ ### Core
197
+
198
+ - &#8203;<!-- 25 -->[core] Improve Renovate groups (#28642) @eps1lon
199
+ - &#8203;<!-- 24 -->[core] Batch small changes (#28553) @oliviertassinari
200
+ - &#8203;<!-- 05 -->[test] Document where the value for SwitchBase#value comes from (#28638) @eps1lon
201
+ - &#8203;<!-- 04 -->[test] Make `seconds` `views` test pass in browsers (#28511) @eps1lon
202
+
203
+ All contributors of this release in alphabetical order: @adamthewebguy, @alexeagleson, @Brlaney, @chetrit, @danilo-leal, @dmitry-yudakov, @eps1lon, @fxlemire, @garronej, @kiznick, @mnajdova, @naveen-bharathi, @oliviertassinari, @praveenkumar-kalidass, @siriwatknp
204
+
205
+ ## 5.0.1
206
+
207
+ <!-- generated comparing v5.0.0..master -->
208
+
209
+ _Sep 22, 2021_
210
+
211
+ A big thanks to the 14 contributors who made this release possible. Here are some highlights โœจ:
212
+
213
+ - ๐Ÿ”Ž Improve the search on the documentation.
214
+ - ๐Ÿ“š Improve the v4 to v5 migration guide.
215
+ - And many more ๐Ÿ› bug fixes and ๐Ÿ“š improvements.
216
+
217
+ ### `@mui/material@5.0.1`
218
+
219
+ - &#8203;<!-- 18 -->[Radio] Fix support for number value type (#26772) @sakura90
220
+ - &#8203;<!-- 12 -->[useMediaQuery] Reduce bundle size (#28412) @eps1lon
221
+
222
+ ### `@mui/codemod@5.0.1`
223
+
224
+ - &#8203;<!-- 43 -->[codemod] Cover edge case for theme-spacing #28400 @siriwatknp
225
+
226
+ ### `@mui/lab@5.0.0-alpha.48`
227
+
228
+ - &#8203;<!-- 36 -->[DateTimePicker] Support `seconds` `view` (#25095) @breitembach
229
+ - &#8203;<!-- 13 -->[TimePicker] Fire change event when meridiem changes (#26600) @coder-freestyle
230
+
231
+ ### Docs
232
+
233
+ - &#8203;<!-- 35 -->[docs] Fix missing exit animation for transition Poppers (#28506) @eps1lon
234
+ - &#8203;<!-- 34 -->[docs] Fix migration v5 docs (#28530) @siriwatknp
235
+ - &#8203;<!-- 33 -->[docs] Avoid re-mounting the whole tree when switching theme direction (#28495) @eps1lon
236
+ - &#8203;<!-- 32 -->[docs] Fix html compliance (#28429) @oliviertassinari
237
+ - &#8203;<!-- 31 -->[docs] Use hyphen-case for CSS properties in /system/properties (#28489) @chetrit
238
+ - &#8203;<!-- 30 -->[docs] Update caret position in comments to match npm scope (#28426) @eps1lon
239
+ - &#8203;<!-- 29 -->[docs] Fix CONTRIBUTING to point out to master as targeted branch (#28396) @mnajdova
240
+ - &#8203;<!-- 28 -->[docs] Update examples to remove 'beta' (#28475) @oliviertassinari
241
+ - &#8203;<!-- 27 -->[docs] Fix 404 links to MUI X API (#28176) @oliviertassinari
242
+ - &#8203;<!-- 26 -->[docs] Fix broken/incorrect attributes links in Avatar and NativeSelect API pages (#28417) @xenostar
243
+ - &#8203;<!-- 25 -->[docs] Explain how `<Alert icon={false} />` behaves (#28348) @nguyenkhanhnam
244
+ - &#8203;<!-- 24 -->[docs] Fix typo in /system/the-sx-prop (#28393) @danwoods
245
+ - &#8203;<!-- 23 -->[docs] Correct the migration doc (#28391) @michaldudak
246
+ - &#8203;<!-- 22 -->[docs] Fix the notification display logic (#28389) @oliviertassinari
247
+ - &#8203;<!-- 21 -->[docs] Add notification for v5 @oliviertassinari
248
+ - &#8203;<!-- 20 -->[docs] Fix typo (#28521) @valse
249
+ - &#8203;<!-- 12 -->[website] Implement algolia redesign (#28252) @hbjORbj
250
+ - &#8203;<!-- 11 -->[website] Update data-grid dependencies #28531 @siriwatknp
251
+ - &#8203;<!-- 10 -->[website] Cleanup unused files after rebranding (#28505) @siriwatknp
252
+ - &#8203;<!-- 09 -->[website] Update /company pages to use marketing website Header and Footer (#28498) @danilo-leal
253
+ - &#8203;<!-- 08 -->[website] Optimize images (#28486) @michaldudak
254
+ - &#8203;<!-- 07 -->[website] Add components index page (#28485) @siriwatknp
255
+ - &#8203;<!-- 06 -->[website] Fix typo (#28478) @oliviertassinari
256
+ - &#8203;<!-- 05 -->[website] Fix crash (#28474) @oliviertassinari
257
+ - &#8203;<!-- 04 -->[website] Close the open engineering roles (#28428) @oliviertassinari
258
+ - &#8203;<!-- 03 -->[website] Fix 40x links (#28401) @mnajdova
259
+ - &#8203;<!-- 02 -->[website] Fix SEO issues reported by moz.com (#28402) @mnajdova
260
+ - &#8203;<!-- 01 -->[website] Fix production issues (#28384) @siriwatknp
261
+
262
+ ### Core
263
+
264
+ - &#8203;<!-- 44 -->[core] Fix release:changelog base branch (#28533) @mnajdova
265
+ - &#8203;<!-- 42 -->[core] Remove code handling JSS components (#28421) @eps1lon
266
+ - &#8203;<!-- 41 -->[core] Remove unused dependencies (#28468) @eps1lon
267
+ - &#8203;<!-- 40 -->[core] Ensure both docs bundles are analyzeable (#28410) @eps1lon
268
+ - &#8203;<!-- 39 -->[core] Switch to webpack 5 (#28248) @eps1lon
269
+ - &#8203;<!-- 38 -->[core] Batch small changes (#28177) @oliviertassinari
270
+ - &#8203;<!-- 37 -->[core] Update publish tag to latest (#28382) @mnajdova
271
+ - &#8203;<!-- 19 -->[framer] Update @mui/\* dependencies (#28469) @eps1lon
272
+ - &#8203;<!-- 17 -->[test] Add custom queries to `screen` (#28507) @eps1lon
273
+ - &#8203;<!-- 16 -->[test] Run listChangedFiles against master (#28504) @eps1lon
274
+ - &#8203;<!-- 15 -->[test] Increase BrowserStack timeout for Firefox (#28476) @oliviertassinari
275
+ - &#8203;<!-- 14 -->[test] Use testing-library alpha when running React 18 tests (#28267) @eps1lon
276
+
277
+ All contributors of this release in alphabetical order: @breitembach, @chetrit, @coder-freestyle, @danilo-leal, @danwoods, @eps1lon, @hbjORbj, @michaldudak, @mnajdova, @nguyenkhanhnam, @oliviertassinari, @sakura90, @siriwatknp, @valse, @xenostar
278
+
3
279
  ## 5.0.0
4
280
 
5
281
  <!-- generated comparing v5.0.0-rc.1..next -->
@@ -256,7 +532,7 @@ A big thanks to the 18 contributors who made this release possible. Here are som
256
532
  - &#8203;<!-- 31 -->[core] Remove file-wide disables of `no-use-before-define` (#27984) @eps1lon
257
533
  - &#8203;<!-- 30 -->[core] Improve `release:changelog` script (#27941) @eps1lon
258
534
  - &#8203;<!-- 29 -->[core] Enforce curly braces for block statements (#27946) @eps1lon
259
- - &#8203;<!-- 07 -->[test] Disable browserstack for PRs (#28041) @eps1lon
535
+ - &#8203;<!-- 07 -->[test] Disable BrowserStack for PRs (#28041) @eps1lon
260
536
 
261
537
  All contributors of this release in alphabetical order: @aaronlademann-wf, @bene-we, @chetas411, @eps1lon, @flaviendelangle, @hbjORbj, @iamhosseindhv, @m4theushw, @michaldudak, @mnajdova, @oliviertassinari, @rajzik, @rsxdalv, @siriwatknp, @StefanBRas, @StefanTobler, @tdmiller1, @vedadeepta
262
538
 
@@ -1640,7 +1916,7 @@ A big thanks to the 16 contributors who made this release possible. Here are som
1640
1916
 
1641
1917
  - &#8203;<!-- 60 -->[core] Skip sx prop in internal components (#26235) @mnajdova
1642
1918
  - &#8203;<!-- 59 -->[core] Remove `withStyles` dependencies from `@material-ui/core/styles` (#26277) @mnajdova
1643
- - &#8203;<!-- 55 -->[core] Include human readable target in the browserstack build (#26322) @eps1lon
1919
+ - &#8203;<!-- 55 -->[core] Include human readable target in the BrowserStack build (#26322) @eps1lon
1644
1920
  - &#8203;<!-- 53 -->[core] Fix NotchedOutlineProps type (#26305) @gnowland
1645
1921
  - &#8203;<!-- 51 -->[core] Add file for git-blame --ignore-revs-file (#26295) @eps1lon
1646
1922
  - &#8203;<!-- 49 -->[core] Ensure component class keys aren't missing (#25754) @eps1lon
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2014 Call-Em-All
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2014 Call-Em-All
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/borders.js CHANGED
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.default = exports.borderRadius = exports.borderLeftColor = exports.borderBottomColor = exports.borderRightColor = exports.borderTopColor = exports.borderColor = exports.borderLeft = exports.borderBottom = exports.borderRight = exports.borderTop = exports.border = void 0;
8
+ exports.default = exports.borderTopColor = exports.borderTop = exports.borderRightColor = exports.borderRight = exports.borderRadius = exports.borderLeftColor = exports.borderLeft = exports.borderColor = exports.borderBottomColor = exports.borderBottom = exports.border = void 0;
9
9
 
10
10
  var _responsivePropType = _interopRequireDefault(require("./responsivePropType"));
11
11
 
package/breakpoints.js CHANGED
@@ -5,12 +5,13 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.handleBreakpoints = handleBreakpoints;
9
8
  exports.createEmptyBreakpointObject = createEmptyBreakpointObject;
10
- exports.removeUnusedBreakpoints = removeUnusedBreakpoints;
9
+ exports.default = void 0;
10
+ exports.handleBreakpoints = handleBreakpoints;
11
11
  exports.mergeBreakpointsInOrder = mergeBreakpointsInOrder;
12
+ exports.removeUnusedBreakpoints = removeUnusedBreakpoints;
12
13
  exports.resolveBreakpointValues = resolveBreakpointValues;
13
- exports.default = exports.values = void 0;
14
+ exports.values = void 0;
14
15
 
15
16
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
16
17
 
@@ -3,17 +3,17 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.hexToRgb = hexToRgb;
7
- exports.decomposeColor = decomposeColor;
8
- exports.recomposeColor = recomposeColor;
9
- exports.rgbToHex = rgbToHex;
10
- exports.hslToRgb = hslToRgb;
11
- exports.getLuminance = getLuminance;
12
- exports.getContrastRatio = getContrastRatio;
13
6
  exports.alpha = alpha;
14
7
  exports.darken = darken;
15
- exports.lighten = lighten;
8
+ exports.decomposeColor = decomposeColor;
16
9
  exports.emphasize = emphasize;
10
+ exports.getContrastRatio = getContrastRatio;
11
+ exports.getLuminance = getLuminance;
12
+ exports.hexToRgb = hexToRgb;
13
+ exports.hslToRgb = hslToRgb;
14
+ exports.lighten = lighten;
15
+ exports.recomposeColor = recomposeColor;
16
+ exports.rgbToHex = rgbToHex;
17
17
 
18
18
  var _utils = require("@mui/utils");
19
19
 
package/createStyled.d.ts CHANGED
@@ -140,6 +140,12 @@ export interface CreateStyledComponent<
140
140
  ): StyledComponent<ComponentProps & AdditionalProps, SpecificComponentProps, JSXProps>;
141
141
  }
142
142
 
143
+ export interface MUIStyledCommonProps<Theme extends object = DefaultTheme> {
144
+ theme?: Theme;
145
+ as?: React.ElementType;
146
+ sx?: SxProps<Theme>;
147
+ }
148
+
143
149
  export interface CreateMUIStyled<Theme extends object = DefaultTheme> {
144
150
  <
145
151
  C extends React.ComponentClass<React.ComponentProps<C>>,
@@ -148,11 +154,7 @@ export interface CreateMUIStyled<Theme extends object = DefaultTheme> {
148
154
  component: C,
149
155
  options: FilteringStyledOptions<React.ComponentProps<C>, ForwardedProps> & MuiStyledOptions,
150
156
  ): CreateStyledComponent<
151
- Pick<PropsOf<C>, ForwardedProps> & {
152
- theme?: Theme;
153
- as?: React.ElementType;
154
- sx?: SxProps<Theme>;
155
- },
157
+ Pick<PropsOf<C>, ForwardedProps> & MUIStyledCommonProps<Theme>,
156
158
  {},
157
159
  {
158
160
  ref?: React.Ref<InstanceType<C>>;
@@ -163,11 +165,7 @@ export interface CreateMUIStyled<Theme extends object = DefaultTheme> {
163
165
  component: C,
164
166
  options?: StyledOptions & MuiStyledOptions,
165
167
  ): CreateStyledComponent<
166
- PropsOf<C> & {
167
- theme?: Theme;
168
- as?: React.ElementType;
169
- sx?: SxProps<Theme>;
170
- },
168
+ PropsOf<C> & MUIStyledCommonProps<Theme>,
171
169
  {},
172
170
  {
173
171
  ref?: React.Ref<InstanceType<C>>;
@@ -180,24 +178,12 @@ export interface CreateMUIStyled<Theme extends object = DefaultTheme> {
180
178
  >(
181
179
  component: C,
182
180
  options: FilteringStyledOptions<React.ComponentProps<C>, ForwardedProps> & MuiStyledOptions,
183
- ): CreateStyledComponent<
184
- Pick<PropsOf<C>, ForwardedProps> & {
185
- theme?: Theme;
186
- as?: React.ElementType;
187
- sx?: SxProps<Theme>;
188
- }
189
- >;
181
+ ): CreateStyledComponent<Pick<PropsOf<C>, ForwardedProps> & MUIStyledCommonProps<Theme>>;
190
182
 
191
183
  <C extends React.JSXElementConstructor<React.ComponentProps<C>>>(
192
184
  component: C,
193
185
  options?: StyledOptions & MuiStyledOptions,
194
- ): CreateStyledComponent<
195
- PropsOf<C> & {
196
- theme?: Theme;
197
- as?: React.ElementType;
198
- sx?: SxProps<Theme>;
199
- }
200
- >;
186
+ ): CreateStyledComponent<PropsOf<C> & MUIStyledCommonProps<Theme>>;
201
187
 
202
188
  <
203
189
  Tag extends keyof JSX.IntrinsicElements,
@@ -206,25 +192,14 @@ export interface CreateMUIStyled<Theme extends object = DefaultTheme> {
206
192
  tag: Tag,
207
193
  options: FilteringStyledOptions<JSX.IntrinsicElements[Tag], ForwardedProps> & MuiStyledOptions,
208
194
  ): CreateStyledComponent<
209
- {
210
- theme?: Theme;
211
- as?: React.ElementType;
212
- sx?: SxProps<Theme>;
213
- },
195
+ MUIStyledCommonProps<Theme>,
214
196
  Pick<JSX.IntrinsicElements[Tag], ForwardedProps>
215
197
  >;
216
198
 
217
199
  <Tag extends keyof JSX.IntrinsicElements>(
218
200
  tag: Tag,
219
201
  options?: StyledOptions & MuiStyledOptions,
220
- ): CreateStyledComponent<
221
- {
222
- theme?: Theme;
223
- as?: React.ElementType;
224
- sx?: SxProps<Theme>;
225
- },
226
- JSX.IntrinsicElements[Tag]
227
- >;
202
+ ): CreateStyledComponent<MUIStyledCommonProps<Theme>, JSX.IntrinsicElements[Tag]>;
228
203
  }
229
204
 
230
205
  export function shouldForwardProp(propName: PropertyKey): boolean;
package/createStyled.js CHANGED
@@ -5,8 +5,8 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.shouldForwardProp = shouldForwardProp;
9
8
  exports.default = createStyled;
9
+ exports.shouldForwardProp = shouldForwardProp;
10
10
  exports.systemDefaultTheme = void 0;
11
11
 
12
12
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
@@ -8,20 +8,67 @@ export type Breakpoint = OverridableStringUnion<
8
8
  >;
9
9
  export const keys: Breakpoint[];
10
10
 
11
+ // Keep in sync with docs/src/pages/customization/breakpoints/breakpoints.md
12
+ // #default-branch-switch
11
13
  export interface Breakpoints {
12
14
  keys: Breakpoint[];
15
+ /**
16
+ * Each breakpoint (a key) matches with a fixed screen width (a value).
17
+ * @default {
18
+ * // extra-small
19
+ * xs: 0,
20
+ * // small
21
+ * sm: 600,
22
+ * // medium
23
+ * md: 900,
24
+ * // large
25
+ * lg: 1200,
26
+ * // extra-large
27
+ * xl: 1536,
28
+ * }
29
+ */
13
30
  values: { [key in Breakpoint]: number };
31
+ /**
32
+ * @param key - A breakpoint key (`xs`, `sm`, etc.) or a screen width number in px.
33
+ * @returns A media query string ready to be used with most styling solutions, which matches screen widths greater than the screen size given by the breakpoint key (inclusive).
34
+ * @see [API documentation](https://mui.com/customization/breakpoints/#theme-breakpoints-up-key-media-query)
35
+ */
14
36
  up: (key: Breakpoint | number) => string;
37
+ /**
38
+ * @param key - A breakpoint key (`xs`, `sm`, etc.) or a screen width number in px.
39
+ * @returns A media query string ready to be used with most styling solutions, which matches screen widths less than the screen size given by the breakpoint key (exclusive).
40
+ * @see [API documentation](https://mui.com/customization/breakpoints/#theme-breakpoints-down-key-media-query)
41
+ */
15
42
  down: (key: Breakpoint | number) => string;
43
+ /**
44
+ * @param start - A breakpoint key (`xs`, `sm`, etc.) or a screen width number in px.
45
+ * @param end - A breakpoint key (`xs`, `sm`, etc.) or a screen width number in px.
46
+ * @returns A media query string ready to be used with most styling solutions, which matches screen widths greater than
47
+ * the screen size given by the breakpoint key in the first argument (inclusive) and less than the screen size given by the breakpoint key in the second argument (exclusive).
48
+ * @see [API documentation](https://mui.com/customization/breakpoints/#theme-breakpoints-between-start-end-media-query)
49
+ */
16
50
  between: (start: Breakpoint | number, end: Breakpoint | number) => string;
51
+ /**
52
+ * @param key - A breakpoint key (`xs`, `sm`, etc.) or a screen width number in px.
53
+ * @returns A media query string ready to be used with most styling solutions, which matches screen widths starting from
54
+ * the screen size given by the breakpoint key (inclusive) and stopping at the screen size given by the next breakpoint key (exclusive).
55
+ * @see [API documentation](https://mui.com/customization/breakpoints/#theme-breakpoints-only-key-media-query)
56
+ */
17
57
  only: (key: Breakpoint) => string;
18
58
  }
19
59
 
20
- export type BreakpointsOptions = Partial<
21
- {
22
- unit: string;
23
- step: number;
24
- } & Breakpoints
25
- >;
60
+ export interface BreakpointsOptions extends Partial<Breakpoints> {
61
+ /**
62
+ * The increment divided by 100 used to implement exclusive breakpoints.
63
+ * For example, `step: 5` means that `down(500)` will result in `'(max-width: 499.95px)'`.
64
+ * @default 5
65
+ */
66
+ step?: number | undefined;
67
+ /**
68
+ * The unit used for the breakpoint's values.
69
+ * @default 'px'
70
+ */
71
+ unit?: string | undefined;
72
+ }
26
73
 
27
74
  export default function createBreakpoints(options: BreakpointsOptions): Breakpoints;
@@ -5,8 +5,8 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.default = createBreakpoints;
9
8
  exports.breakpointKeys = void 0;
9
+ exports.default = createBreakpoints;
10
10
 
11
11
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
12
12
 
@@ -1,10 +1,10 @@
1
- export declare type SpacingOptions = number | Spacing | ((abs: number) => number | string) | ((abs: number | string) => number | string) | ReadonlyArray<string | number>;
2
- export declare type SpacingArgument = number | string;
3
- export interface Spacing {
4
- (): string;
5
- (value: number): string;
6
- (topBottom: SpacingArgument, rightLeft: SpacingArgument): string;
7
- (top: SpacingArgument, rightLeft: SpacingArgument, bottom: SpacingArgument): string;
8
- (top: SpacingArgument, right: SpacingArgument, bottom: SpacingArgument, left: SpacingArgument): string;
9
- }
10
- export default function createSpacing(spacingInput?: SpacingOptions): Spacing;
1
+ export declare type SpacingOptions = number | Spacing | ((abs: number) => number | string) | ((abs: number | string) => number | string) | ReadonlyArray<string | number>;
2
+ export declare type SpacingArgument = number | string;
3
+ export interface Spacing {
4
+ (): string;
5
+ (value: number): string;
6
+ (topBottom: SpacingArgument, rightLeft: SpacingArgument): string;
7
+ (top: SpacingArgument, rightLeft: SpacingArgument, bottom: SpacingArgument): string;
8
+ (top: SpacingArgument, right: SpacingArgument, bottom: SpacingArgument, left: SpacingArgument): string;
9
+ }
10
+ export default function createSpacing(spacingInput?: SpacingOptions): Spacing;
package/display.js CHANGED
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.default = exports.whiteSpace = exports.visibility = exports.textOverflow = exports.overflow = exports.displayRaw = exports.displayPrint = void 0;
8
+ exports.whiteSpace = exports.visibility = exports.textOverflow = exports.overflow = exports.displayRaw = exports.displayPrint = exports.default = void 0;
9
9
 
10
10
  var _style = _interopRequireDefault(require("./style"));
11
11
 
package/esm/spacing.js CHANGED
@@ -39,8 +39,8 @@ const getCssProperties = memoize(prop => {
39
39
  const direction = directions[b] || '';
40
40
  return Array.isArray(direction) ? direction.map(dir => property + dir) : [property + direction];
41
41
  });
42
- const marginKeys = ['m', 'mt', 'mr', 'mb', 'ml', 'mx', 'my', 'margin', 'marginTop', 'marginRight', 'marginBottom', 'marginLeft', 'marginX', 'marginY'];
43
- const paddingKeys = ['p', 'pt', 'pr', 'pb', 'pl', 'px', 'py', 'padding', 'paddingTop', 'paddingRight', 'paddingBottom', 'paddingLeft', 'paddingX', 'paddingY'];
42
+ const marginKeys = ['m', 'mt', 'mr', 'mb', 'ml', 'mx', 'my', 'margin', 'marginTop', 'marginRight', 'marginBottom', 'marginLeft', 'marginX', 'marginY', 'marginInline', 'marginInlineStart', 'marginInlineEnd', 'marginBlock', 'marginBlockStart', 'marginBlockEnd'];
43
+ const paddingKeys = ['p', 'pt', 'pr', 'pb', 'pl', 'px', 'py', 'padding', 'paddingTop', 'paddingRight', 'paddingBottom', 'paddingLeft', 'paddingX', 'paddingY', 'paddingInline', 'paddingInlineStart', 'paddingInlineEnd', 'paddingBlock', 'paddingBlockStart', 'paddingBlockEnd'];
44
44
  const spacingKeys = [...marginKeys, ...paddingKeys];
45
45
  export function createUnaryUnit(theme, themeKey, defaultValue, propName) {
46
46
  const themeSpacing = getPath(theme, themeKey) || defaultValue;
package/flexbox.js CHANGED
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.default = exports.justifySelf = exports.justifyItems = exports.alignSelf = exports.flexShrink = exports.flexGrow = exports.flex = exports.order = exports.alignContent = exports.alignItems = exports.justifyContent = exports.flexWrap = exports.flexDirection = exports.flexBasis = void 0;
8
+ exports.order = exports.justifySelf = exports.justifyItems = exports.justifyContent = exports.flexWrap = exports.flexShrink = exports.flexGrow = exports.flexDirection = exports.flexBasis = exports.flex = exports.default = exports.alignSelf = exports.alignItems = exports.alignContent = void 0;
9
9
 
10
10
  var _style = _interopRequireDefault(require("./style"));
11
11
 
package/getThemeValue.js CHANGED
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.default = exports.propToStyleFunction = void 0;
8
+ exports.propToStyleFunction = exports.default = void 0;
9
9
 
10
10
  var _borders = _interopRequireDefault(require("./borders"));
11
11
 
package/grid.js CHANGED
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.default = exports.gridArea = exports.gridTemplateAreas = exports.gridTemplateRows = exports.gridTemplateColumns = exports.gridAutoRows = exports.gridAutoColumns = exports.gridAutoFlow = exports.gridRow = exports.gridColumn = exports.rowGap = exports.columnGap = exports.gap = void 0;
8
+ exports.rowGap = exports.gridTemplateRows = exports.gridTemplateColumns = exports.gridTemplateAreas = exports.gridRow = exports.gridColumn = exports.gridAutoRows = exports.gridAutoFlow = exports.gridAutoColumns = exports.gridArea = exports.gap = exports.default = exports.columnGap = void 0;
9
9
 
10
10
  var _style = _interopRequireDefault(require("./style"));
11
11
 
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.0.0
1
+ /** @license MUI v5.0.4
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -49,16 +49,10 @@ var _exportNames = {
49
49
  useThemeWithoutDefault: true,
50
50
  ThemeProvider: true
51
51
  };
52
- Object.defineProperty(exports, "css", {
53
- enumerable: true,
54
- get: function () {
55
- return _styledEngine.css;
56
- }
57
- });
58
- Object.defineProperty(exports, "keyframes", {
52
+ Object.defineProperty(exports, "Box", {
59
53
  enumerable: true,
60
54
  get: function () {
61
- return _styledEngine.keyframes;
55
+ return _Box.default;
62
56
  }
63
57
  });
64
58
  Object.defineProperty(exports, "GlobalStyles", {
@@ -73,6 +67,12 @@ Object.defineProperty(exports, "StyledEngineProvider", {
73
67
  return _styledEngine.StyledEngineProvider;
74
68
  }
75
69
  });
70
+ Object.defineProperty(exports, "ThemeProvider", {
71
+ enumerable: true,
72
+ get: function () {
73
+ return _ThemeProvider.default;
74
+ }
75
+ });
76
76
  Object.defineProperty(exports, "borders", {
77
77
  enumerable: true,
78
78
  get: function () {
@@ -85,172 +85,172 @@ Object.defineProperty(exports, "breakpoints", {
85
85
  return _breakpoints.default;
86
86
  }
87
87
  });
88
- Object.defineProperty(exports, "handleBreakpoints", {
88
+ Object.defineProperty(exports, "compose", {
89
89
  enumerable: true,
90
90
  get: function () {
91
- return _breakpoints.handleBreakpoints;
91
+ return _compose.default;
92
92
  }
93
93
  });
94
- Object.defineProperty(exports, "mergeBreakpointsInOrder", {
94
+ Object.defineProperty(exports, "createBox", {
95
95
  enumerable: true,
96
96
  get: function () {
97
- return _breakpoints.mergeBreakpointsInOrder;
97
+ return _createBox.default;
98
98
  }
99
99
  });
100
- Object.defineProperty(exports, "unstable_resolveBreakpointValues", {
100
+ Object.defineProperty(exports, "createBreakpoints", {
101
101
  enumerable: true,
102
102
  get: function () {
103
- return _breakpoints.resolveBreakpointValues;
103
+ return _createBreakpoints.default;
104
104
  }
105
105
  });
106
- Object.defineProperty(exports, "compose", {
106
+ Object.defineProperty(exports, "createSpacing", {
107
107
  enumerable: true,
108
108
  get: function () {
109
- return _compose.default;
109
+ return _createSpacing.default;
110
110
  }
111
111
  });
112
- Object.defineProperty(exports, "display", {
112
+ Object.defineProperty(exports, "createStyled", {
113
113
  enumerable: true,
114
114
  get: function () {
115
- return _display.default;
115
+ return _createStyled.default;
116
116
  }
117
117
  });
118
- Object.defineProperty(exports, "flexbox", {
118
+ Object.defineProperty(exports, "createTheme", {
119
119
  enumerable: true,
120
120
  get: function () {
121
- return _flexbox.default;
121
+ return _createTheme.default;
122
122
  }
123
123
  });
124
- Object.defineProperty(exports, "grid", {
124
+ Object.defineProperty(exports, "css", {
125
125
  enumerable: true,
126
126
  get: function () {
127
- return _grid.default;
127
+ return _styledEngine.css;
128
128
  }
129
129
  });
130
- Object.defineProperty(exports, "palette", {
130
+ Object.defineProperty(exports, "display", {
131
131
  enumerable: true,
132
132
  get: function () {
133
- return _palette.default;
133
+ return _display.default;
134
134
  }
135
135
  });
136
- Object.defineProperty(exports, "positions", {
136
+ Object.defineProperty(exports, "flexbox", {
137
137
  enumerable: true,
138
138
  get: function () {
139
- return _positions.default;
139
+ return _flexbox.default;
140
140
  }
141
141
  });
142
- Object.defineProperty(exports, "shadows", {
142
+ Object.defineProperty(exports, "getPath", {
143
143
  enumerable: true,
144
144
  get: function () {
145
- return _shadows.default;
145
+ return _style.getPath;
146
146
  }
147
147
  });
148
- Object.defineProperty(exports, "sizing", {
148
+ Object.defineProperty(exports, "getThemeProps", {
149
149
  enumerable: true,
150
150
  get: function () {
151
- return _sizing.default;
151
+ return _useThemeProps.getThemeProps;
152
152
  }
153
153
  });
154
- Object.defineProperty(exports, "spacing", {
154
+ Object.defineProperty(exports, "grid", {
155
155
  enumerable: true,
156
156
  get: function () {
157
- return _spacing.default;
157
+ return _grid.default;
158
158
  }
159
159
  });
160
- Object.defineProperty(exports, "style", {
160
+ Object.defineProperty(exports, "handleBreakpoints", {
161
161
  enumerable: true,
162
162
  get: function () {
163
- return _style.default;
163
+ return _breakpoints.handleBreakpoints;
164
164
  }
165
165
  });
166
- Object.defineProperty(exports, "getPath", {
166
+ Object.defineProperty(exports, "keyframes", {
167
167
  enumerable: true,
168
168
  get: function () {
169
- return _style.getPath;
169
+ return _styledEngine.keyframes;
170
170
  }
171
171
  });
172
- Object.defineProperty(exports, "typography", {
172
+ Object.defineProperty(exports, "mergeBreakpointsInOrder", {
173
173
  enumerable: true,
174
174
  get: function () {
175
- return _typography.default;
175
+ return _breakpoints.mergeBreakpointsInOrder;
176
176
  }
177
177
  });
178
- Object.defineProperty(exports, "unstable_styleFunctionSx", {
178
+ Object.defineProperty(exports, "palette", {
179
179
  enumerable: true,
180
180
  get: function () {
181
- return _styleFunctionSx.default;
181
+ return _palette.default;
182
182
  }
183
183
  });
184
- Object.defineProperty(exports, "unstable_extendSxProp", {
184
+ Object.defineProperty(exports, "positions", {
185
185
  enumerable: true,
186
186
  get: function () {
187
- return _styleFunctionSx.extendSxProp;
187
+ return _positions.default;
188
188
  }
189
189
  });
190
- Object.defineProperty(exports, "unstable_getThemeValue", {
190
+ Object.defineProperty(exports, "shadows", {
191
191
  enumerable: true,
192
192
  get: function () {
193
- return _getThemeValue.default;
193
+ return _shadows.default;
194
194
  }
195
195
  });
196
- Object.defineProperty(exports, "Box", {
196
+ Object.defineProperty(exports, "shape", {
197
197
  enumerable: true,
198
198
  get: function () {
199
- return _Box.default;
199
+ return _shape.default;
200
200
  }
201
201
  });
202
- Object.defineProperty(exports, "createBox", {
202
+ Object.defineProperty(exports, "sizing", {
203
203
  enumerable: true,
204
204
  get: function () {
205
- return _createBox.default;
205
+ return _sizing.default;
206
206
  }
207
207
  });
208
- Object.defineProperty(exports, "createStyled", {
208
+ Object.defineProperty(exports, "spacing", {
209
209
  enumerable: true,
210
210
  get: function () {
211
- return _createStyled.default;
211
+ return _spacing.default;
212
212
  }
213
213
  });
214
- Object.defineProperty(exports, "styled", {
214
+ Object.defineProperty(exports, "style", {
215
215
  enumerable: true,
216
216
  get: function () {
217
- return _styled.default;
217
+ return _style.default;
218
218
  }
219
219
  });
220
- Object.defineProperty(exports, "createTheme", {
220
+ Object.defineProperty(exports, "styled", {
221
221
  enumerable: true,
222
222
  get: function () {
223
- return _createTheme.default;
223
+ return _styled.default;
224
224
  }
225
225
  });
226
- Object.defineProperty(exports, "createBreakpoints", {
226
+ Object.defineProperty(exports, "typography", {
227
227
  enumerable: true,
228
228
  get: function () {
229
- return _createBreakpoints.default;
229
+ return _typography.default;
230
230
  }
231
231
  });
232
- Object.defineProperty(exports, "createSpacing", {
232
+ Object.defineProperty(exports, "unstable_extendSxProp", {
233
233
  enumerable: true,
234
234
  get: function () {
235
- return _createSpacing.default;
235
+ return _styleFunctionSx.extendSxProp;
236
236
  }
237
237
  });
238
- Object.defineProperty(exports, "shape", {
238
+ Object.defineProperty(exports, "unstable_getThemeValue", {
239
239
  enumerable: true,
240
240
  get: function () {
241
- return _shape.default;
241
+ return _getThemeValue.default;
242
242
  }
243
243
  });
244
- Object.defineProperty(exports, "useThemeProps", {
244
+ Object.defineProperty(exports, "unstable_resolveBreakpointValues", {
245
245
  enumerable: true,
246
246
  get: function () {
247
- return _useThemeProps.default;
247
+ return _breakpoints.resolveBreakpointValues;
248
248
  }
249
249
  });
250
- Object.defineProperty(exports, "getThemeProps", {
250
+ Object.defineProperty(exports, "unstable_styleFunctionSx", {
251
251
  enumerable: true,
252
252
  get: function () {
253
- return _useThemeProps.getThemeProps;
253
+ return _styleFunctionSx.default;
254
254
  }
255
255
  });
256
256
  Object.defineProperty(exports, "useTheme", {
@@ -259,16 +259,16 @@ Object.defineProperty(exports, "useTheme", {
259
259
  return _useTheme.default;
260
260
  }
261
261
  });
262
- Object.defineProperty(exports, "useThemeWithoutDefault", {
262
+ Object.defineProperty(exports, "useThemeProps", {
263
263
  enumerable: true,
264
264
  get: function () {
265
- return _useThemeWithoutDefault.default;
265
+ return _useThemeProps.default;
266
266
  }
267
267
  });
268
- Object.defineProperty(exports, "ThemeProvider", {
268
+ Object.defineProperty(exports, "useThemeWithoutDefault", {
269
269
  enumerable: true,
270
270
  get: function () {
271
- return _ThemeProvider.default;
271
+ return _useThemeWithoutDefault.default;
272
272
  }
273
273
  });
274
274
 
package/index.spec.d.ts CHANGED
@@ -1 +1 @@
1
- export {};
1
+ export {};
package/legacy/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.0.0
1
+ /** @license MUI v5.0.4
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
package/legacy/spacing.js CHANGED
@@ -46,8 +46,8 @@ var getCssProperties = memoize(function (prop) {
46
46
  return property + dir;
47
47
  }) : [property + direction];
48
48
  });
49
- var marginKeys = ['m', 'mt', 'mr', 'mb', 'ml', 'mx', 'my', 'margin', 'marginTop', 'marginRight', 'marginBottom', 'marginLeft', 'marginX', 'marginY'];
50
- var paddingKeys = ['p', 'pt', 'pr', 'pb', 'pl', 'px', 'py', 'padding', 'paddingTop', 'paddingRight', 'paddingBottom', 'paddingLeft', 'paddingX', 'paddingY'];
49
+ var marginKeys = ['m', 'mt', 'mr', 'mb', 'ml', 'mx', 'my', 'margin', 'marginTop', 'marginRight', 'marginBottom', 'marginLeft', 'marginX', 'marginY', 'marginInline', 'marginInlineStart', 'marginInlineEnd', 'marginBlock', 'marginBlockStart', 'marginBlockEnd'];
50
+ var paddingKeys = ['p', 'pt', 'pr', 'pb', 'pl', 'px', 'py', 'padding', 'paddingTop', 'paddingRight', 'paddingBottom', 'paddingLeft', 'paddingX', 'paddingY', 'paddingInline', 'paddingInlineStart', 'paddingInlineEnd', 'paddingBlock', 'paddingBlockStart', 'paddingBlockEnd'];
51
51
  var spacingKeys = [].concat(marginKeys, paddingKeys);
52
52
  export function createUnaryUnit(theme, themeKey, defaultValue, propName) {
53
53
  var themeSpacing = getPath(theme, themeKey) || defaultValue;
package/modern/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.0.0
1
+ /** @license MUI v5.0.4
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
package/modern/spacing.js CHANGED
@@ -39,8 +39,8 @@ const getCssProperties = memoize(prop => {
39
39
  const direction = directions[b] || '';
40
40
  return Array.isArray(direction) ? direction.map(dir => property + dir) : [property + direction];
41
41
  });
42
- const marginKeys = ['m', 'mt', 'mr', 'mb', 'ml', 'mx', 'my', 'margin', 'marginTop', 'marginRight', 'marginBottom', 'marginLeft', 'marginX', 'marginY'];
43
- const paddingKeys = ['p', 'pt', 'pr', 'pb', 'pl', 'px', 'py', 'padding', 'paddingTop', 'paddingRight', 'paddingBottom', 'paddingLeft', 'paddingX', 'paddingY'];
42
+ const marginKeys = ['m', 'mt', 'mr', 'mb', 'ml', 'mx', 'my', 'margin', 'marginTop', 'marginRight', 'marginBottom', 'marginLeft', 'marginX', 'marginY', 'marginInline', 'marginInlineStart', 'marginInlineEnd', 'marginBlock', 'marginBlockStart', 'marginBlockEnd'];
43
+ const paddingKeys = ['p', 'pt', 'pr', 'pb', 'pl', 'px', 'py', 'padding', 'paddingTop', 'paddingRight', 'paddingBottom', 'paddingLeft', 'paddingX', 'paddingY', 'paddingInline', 'paddingInlineStart', 'paddingInlineEnd', 'paddingBlock', 'paddingBlockStart', 'paddingBlockEnd'];
44
44
  const spacingKeys = [...marginKeys, ...paddingKeys];
45
45
  export function createUnaryUnit(theme, themeKey, defaultValue, propName) {
46
46
  const themeSpacing = getPath(theme, themeKey) || defaultValue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/system",
3
- "version": "5.0.0",
3
+ "version": "5.0.4",
4
4
  "private": false,
5
5
  "author": "MUI Team",
6
6
  "description": "CSS utilities for rapidly laying out custom designs.",
@@ -43,13 +43,13 @@
43
43
  }
44
44
  },
45
45
  "dependencies": {
46
- "@babel/runtime": "^7.14.8",
47
- "@mui/private-theming": "^5.0.0",
48
- "@mui/styled-engine": "^5.0.0",
46
+ "@babel/runtime": "^7.15.4",
47
+ "@mui/private-theming": "^5.0.1",
48
+ "@mui/styled-engine": "^5.0.1",
49
49
  "@mui/types": "^7.0.0",
50
- "@mui/utils": "^5.0.0",
50
+ "@mui/utils": "^5.0.1",
51
51
  "clsx": "^1.1.1",
52
- "csstype": "^3.0.8",
52
+ "csstype": "^3.0.9",
53
53
  "prop-types": "^15.7.2"
54
54
  },
55
55
  "sideEffects": false,
@@ -59,6 +59,7 @@
59
59
  "engines": {
60
60
  "node": ">=12.0.0"
61
61
  },
62
+ "gitHead": "86443310e4344ae1ce6e04f084d58e17e4d62170",
62
63
  "module": "./esm/index.js",
63
64
  "types": "./index.d.ts"
64
65
  }
package/palette.js CHANGED
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.default = exports.backgroundColor = exports.bgcolor = exports.color = void 0;
8
+ exports.default = exports.color = exports.bgcolor = exports.backgroundColor = void 0;
9
9
 
10
10
  var _style = _interopRequireDefault(require("./style"));
11
11
 
package/positions.js CHANGED
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.default = exports.left = exports.bottom = exports.right = exports.top = exports.zIndex = exports.position = void 0;
8
+ exports.zIndex = exports.top = exports.right = exports.position = exports.left = exports.default = exports.bottom = void 0;
9
9
 
10
10
  var _style = _interopRequireDefault(require("./style"));
11
11
 
package/sizing.js CHANGED
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.default = exports.boxSizing = exports.sizeHeight = exports.sizeWidth = exports.minHeight = exports.maxHeight = exports.height = exports.minWidth = exports.maxWidth = exports.width = void 0;
8
+ exports.width = exports.sizeWidth = exports.sizeHeight = exports.minWidth = exports.minHeight = exports.maxWidth = exports.maxHeight = exports.height = exports.default = exports.boxSizing = void 0;
9
9
 
10
10
  var _style = _interopRequireDefault(require("./style"));
11
11
 
package/spacing.d.ts CHANGED
@@ -25,6 +25,12 @@ export const margin: SimpleStyleFunction<
25
25
  | 'marginLeft'
26
26
  | 'marginX'
27
27
  | 'marginY'
28
+ | 'marginInline'
29
+ | 'marginInlineStart'
30
+ | 'marginInlineEnd'
31
+ | 'marginBlock'
32
+ | 'marginBlockStart'
33
+ | 'marginBlockEnd'
28
34
  >;
29
35
 
30
36
  export type MarginProps = PropsFor<typeof margin>;
@@ -44,6 +50,12 @@ export const padding: SimpleStyleFunction<
44
50
  | 'paddingLeft'
45
51
  | 'paddingX'
46
52
  | 'paddingY'
53
+ | 'paddingInline'
54
+ | 'paddingInlineStart'
55
+ | 'paddingInlineEnd'
56
+ | 'paddingBlock'
57
+ | 'paddingBlockStart'
58
+ | 'paddingBlockEnd'
47
59
  >;
48
60
 
49
61
  export type PaddingProps = PropsFor<typeof padding>;
package/spacing.js CHANGED
@@ -5,13 +5,13 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.createUnaryUnit = createUnaryUnit;
9
8
  exports.createUnarySpacing = createUnarySpacing;
10
- exports.getValue = getValue;
9
+ exports.createUnaryUnit = createUnaryUnit;
10
+ exports.default = void 0;
11
11
  exports.getStyleFromPropValue = getStyleFromPropValue;
12
+ exports.getValue = getValue;
12
13
  exports.margin = margin;
13
14
  exports.padding = padding;
14
- exports.default = void 0;
15
15
 
16
16
  var _responsivePropType = _interopRequireDefault(require("./responsivePropType"));
17
17
 
@@ -59,8 +59,8 @@ const getCssProperties = (0, _memoize.default)(prop => {
59
59
  const direction = directions[b] || '';
60
60
  return Array.isArray(direction) ? direction.map(dir => property + dir) : [property + direction];
61
61
  });
62
- const marginKeys = ['m', 'mt', 'mr', 'mb', 'ml', 'mx', 'my', 'margin', 'marginTop', 'marginRight', 'marginBottom', 'marginLeft', 'marginX', 'marginY'];
63
- const paddingKeys = ['p', 'pt', 'pr', 'pb', 'pl', 'px', 'py', 'padding', 'paddingTop', 'paddingRight', 'paddingBottom', 'paddingLeft', 'paddingX', 'paddingY'];
62
+ const marginKeys = ['m', 'mt', 'mr', 'mb', 'ml', 'mx', 'my', 'margin', 'marginTop', 'marginRight', 'marginBottom', 'marginLeft', 'marginX', 'marginY', 'marginInline', 'marginInlineStart', 'marginInlineEnd', 'marginBlock', 'marginBlockStart', 'marginBlockEnd'];
63
+ const paddingKeys = ['p', 'pt', 'pr', 'pb', 'pl', 'px', 'py', 'padding', 'paddingTop', 'paddingRight', 'paddingBottom', 'paddingLeft', 'paddingX', 'paddingY', 'paddingInline', 'paddingInlineStart', 'paddingInlineEnd', 'paddingBlock', 'paddingBlockStart', 'paddingBlockEnd'];
64
64
  const spacingKeys = [...marginKeys, ...paddingKeys];
65
65
 
66
66
  function createUnaryUnit(theme, themeKey, defaultValue, propName) {
package/style.d.ts CHANGED
@@ -12,4 +12,4 @@ export interface StyleOptions<PropKey> {
12
12
  }
13
13
  export function style<PropKey extends string, Theme extends object>(
14
14
  options: StyleOptions<PropKey>,
15
- ): StyleFunction<{ [K in PropKey]?: unknown } & { theme: Theme }>;
15
+ ): StyleFunction<{ [K in PropKey]?: unknown } & { theme?: Theme }>;
package/style.js CHANGED
@@ -5,8 +5,8 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.getPath = getPath;
9
8
  exports.default = void 0;
9
+ exports.getPath = getPath;
10
10
 
11
11
  var _utils = require("@mui/utils");
12
12
 
@@ -14,14 +14,14 @@ export type ResponsiveStyleValue<T> = T | Array<T | null> | { [key: string]: T |
14
14
  * Map of all CSS pseudo selectors (`:hover`, `:focus`, ...).
15
15
  */
16
16
  export type CSSPseudoSelectorProps<Theme extends object = {}> = {
17
- [K in CSS.Pseudos]?: SystemStyleObject<Theme>;
17
+ [K in CSS.Pseudos]?: ((theme: Theme) => SystemStyleObject<Theme>) | SystemStyleObject<Theme>;
18
18
  };
19
19
 
20
20
  /**
21
21
  * Map all nested selectors.
22
22
  */
23
23
  export interface CSSSelectorObject<Theme extends object = {}> {
24
- [cssSelector: string]: SystemStyleObject<Theme>;
24
+ [cssSelector: string]: ((theme: Theme) => SystemStyleObject<Theme>) | SystemStyleObject<Theme>;
25
25
  }
26
26
 
27
27
  /**
package/typography.js CHANGED
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.default = exports.typographyVariant = exports.textAlign = exports.lineHeight = exports.letterSpacing = exports.fontWeight = exports.fontStyle = exports.fontSize = exports.fontFamily = void 0;
8
+ exports.typographyVariant = exports.textAlign = exports.lineHeight = exports.letterSpacing = exports.fontWeight = exports.fontStyle = exports.fontSize = exports.fontFamily = exports.default = void 0;
9
9
 
10
10
  var _style = _interopRequireDefault(require("./style"));
11
11
 
package/useTheme.js CHANGED
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.default = exports.systemDefaultTheme = void 0;
8
+ exports.systemDefaultTheme = exports.default = void 0;
9
9
 
10
10
  var _createTheme = _interopRequireDefault(require("./createTheme"));
11
11