@mui/styled-engine 5.11.8 → 5.11.11

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,212 @@
1
1
  # [Versions](https://mui.com/versions/)
2
2
 
3
+ ## 5.11.11
4
+
5
+ <!-- generated comparing v5.11.10..master -->
6
+
7
+ _Feb 27, 2023_
8
+
9
+ A big thanks to the 15 contributors who made this release possible. Here are some highlights ✨:
10
+
11
+ - 📚 added API documentation for the slots in MUI Base and Joy UI by @hbjORbj, for e.g. [SliderUnstyled API](https://mui.com/base/api/slider-unstyled/#slots)
12
+ - other 🐛 bug fixes and 📚 documentation improvements.
13
+
14
+ ### `@mui/material@5.11.11`
15
+
16
+ - &#8203;<!-- 30 -->[Autocomplete] Adds `sx` prop to `ListboxProps` type (#36243) @sai6855
17
+ - &#8203;<!-- 11 -->[material] Add global CSS class for `readOnly` prop (#32822) @jrparish
18
+ - &#8203;<!-- 10 -->[Stack][material] Use createStack from the system (#33795) @mnajdova
19
+ - &#8203;<!-- 07 -->[Select] Fix incorrect selecting of first element (#36024) @michaldudak
20
+ - &#8203;<!-- 06 -->[Slider] Miscellaneous improvements (#35941) @ZeeshanTamboli
21
+ - &#8203;<!-- 05 -->[Slider] Remove unnecessary `data-focusvisible` attribute (#36091) @ZeeshanTamboli
22
+ - &#8203;<!-- 04 -->[Snackbar] Replace component logic with `useSnackbar` hook (#36272) @ZeeshanTamboli
23
+ - &#8203;<!-- 03 -->[TextField] Fix floating label position (#36246) @oliviertassinari
24
+ - &#8203;<!-- 13 -->[TextField] Fix floating label position (#36288) @oliviertassinari
25
+
26
+ ### `@mui/base@5.0.0-alpha.119`
27
+
28
+ #### Breaking changes
29
+
30
+ - &#8203;<!-- 29 -->[base] Remove `classes` prop from the Base components that have it (#36157) @hbjORbj
31
+ These are the components affected by this change: ModalUnstyled, SliderUnstyled, TablePaginationUnstyled and TablePaginationActionsUnstyled.
32
+ You can replace the `classes` prop by providing the class name prop directly to the prop via `slotProps`. Below is an example of how the migration should look like:
33
+
34
+ ```diff
35
+ <TablePaginationUnstyled
36
+ - classes={{ toolbar: 'toolbar-classname', menuItem: 'menuItem-classname' }}
37
+ + slotProps={{ toolbar: { className: 'toolbar-classname' }, menuItem: { className: 'menuItem-classname'}}}
38
+ />
39
+ ```
40
+
41
+ - &#8203;<!-- 28 -->[base] Move hooks to their own directories (#36235) @hbjORbj
42
+ Base hooks (e.g., `useSelect`) are no longer exported from `{Component}Unstyled` directories and instead they have their own directories.
43
+ Below is an example of how the migration should look like:
44
+
45
+ ```diff
46
+ -import { useBadge } from '@mui/base/BadgeUnstyled';
47
+ +import useBadge from '@mui/base/useBadge';
48
+ ```
49
+
50
+ You can use this [codemod](https://github.com/mui/material-ui/blob/master/packages/mui-codemod/README.md#base-hook-imports) to help with the migration.
51
+
52
+ #### Changes
53
+
54
+ - &#8203;<!-- 31 -->[Autocomplete] Add docs interface for the hook (#36242) @HeVictor
55
+ - &#8203;<!-- 09 -->[MenuUnstyled] Remove extra useMemo (#36265) @ivp-dev
56
+ - &#8203;<!-- 31 -->[base] Export all slot prop overrides interfaces (#36323) @michaldudak
57
+
58
+ ### `@mui/codemod@5.11.11`
59
+
60
+ - &#8203;<!-- 35 -->[base] Codemod for hook directory migration (#36295) @hbjORbj
61
+
62
+ ### `@mui/joy@5.0.0-alpha.69`
63
+
64
+ - &#8203;<!-- 15 -->[Joy] Able to remove default tokens from theme types (#36006) @siriwatknp
65
+ - &#8203;<!-- 14 -->[Joy] Fix modal dialog overflow viewport (#36103) @siriwatknp
66
+ - &#8203;<!-- 13 -->[Joy] Select popup should have max-height (#36156) @Vivek-Prajapatii
67
+ - &#8203;<!-- 12 -->[Joy] Fix `ListDivider` to change semantic based on `List` (#36266) @siriwatknp
68
+
69
+ ### Docs
70
+
71
+ - &#8203;<!-- 27 -->[docs][base] List slots in API documentation (#36104) @hbjORbj
72
+ - &#8203;<!-- 26 -->[docs] Add missing sandbox adapter deps resolving (#36291) @LukasTy
73
+ - &#8203;<!-- 25 -->[docs] Allow to pass navigation bar banner from outside (#36299) @MBilalShafi
74
+ - &#8203;<!-- 24 -->[docs] Fix code on the Working with Tailwind CSS guide (#36090) @mnajdova
75
+ - &#8203;<!-- 23 -->[docs] Remove See Slots Section text from Material UI slots description (#36284) @hbjORbj
76
+ - &#8203;<!-- 22 -->[docs] Fix emotion warning `:first-child` (#36263) @siriwatknp
77
+ - &#8203;<!-- 21 -->[docs][joy] Improve the descriptions of props in API docs (#36307) @hbjORbj
78
+ - &#8203;<!-- 20 -->[docs][joy] List slots in API documentation (#36271) @hbjORbj
79
+ - &#8203;<!-- 19 -->[docs][joy] Build API documentations (#36008) @hbjORbj
80
+ - &#8203;<!-- 18 -->[examples] Update Next.js examples to use built-in font (#36315) @Juneezee
81
+ - &#8203;<!-- 17 -->[examples] Update curl link in `material-next-ts-v4-v5-migration` example README (#36321) @ZeeshanTamboli
82
+ - &#8203;<!-- 16 -->[examples] Convert Next.js \_document class components to function components (#36109) @ossan-engineer
83
+
84
+ ### Core
85
+
86
+ - &#8203;<!-- 08 -->[Rating] Add a comment in Rating component to use `readOnly` state class (#36357) @ZeeshanTamboli
87
+ - &#8203;<!-- 02 -->[website] Fix broken links to role levels (#36333) @oliviertassinari
88
+ - &#8203;<!-- 01 -->[website] Sync gold sponsors (#36312) @oliviertassinari
89
+
90
+ All contributors of this release in alphabetical order: @hbjORbj, @HeVictor, @ivp-dev, @jrparish, @Juneezee, @LukasTy, @MBilalShafi, @michaldudak, @mnajdova, @oliviertassinari, @ossan-engineer, @sai6855, @siriwatknp, @Vivek-Prajapatii, @ZeeshanTamboli
91
+
92
+ ## 5.11.10
93
+
94
+ <!-- generated comparing v5.11.9..master -->
95
+
96
+ _Feb 20, 2023_
97
+
98
+ A big thanks to the 11 contributors who made this release possible.
99
+ This release was mostly about 🐛 bug fixes and 📚 documentation improvements.
100
+
101
+ ### `@mui/material@5.11.10`
102
+
103
+ - &#8203;<!-- 22 -->[Avatar] Fix ownerState usage with styleOverrides when fallback is used (#36228) @sai6855
104
+ - &#8203;<!-- 21 -->[Badge][material] Replace `BadgeUnstyled` with `useBadge` hook (#36158) @hbjORbj
105
+ - &#8203;<!-- 03 -->[Switch] Fix DOM warning when `type` isn't `checkbox` or `radio` (#36170) @dani-mp
106
+ - &#8203;<!-- 02 -->[TextareaAutosize] Convert code to TypeScript (#35862) @sai6855
107
+ - &#8203;<!-- 01 -->[useMediaQuery] Fix behavior of noSsr with React 18 (#36056) @oliviertassinari
108
+
109
+ ### `@mui/joy@5.0.0-alpha.68`
110
+
111
+ - &#8203;<!-- 05 -->[Joy] Add `zIndex` to theme (#36236) @siriwatknp
112
+ - &#8203;<!-- 04 -->[Joy] Remove transition from all components (#35952) @hbjORbj
113
+
114
+ ### Docs
115
+
116
+ - &#8203;<!-- 20 -->[docs][base] Fix base Input demos for Safari (#36213) @mj12albert
117
+ - &#8203;<!-- 16 -->[docs] Fix 301 links @oliviertassinari
118
+ - &#8203;<!-- 15 -->[docs] Fix modal transition demos (#36137) @oliviertassinari
119
+ - &#8203;<!-- 14 -->[docs] Update links to pt examples (#36237) @Aleff13
120
+ - &#8203;<!-- 13 -->[docs] Update custom Typography variants example (#36185) @mj12albert
121
+ - &#8203;<!-- 12 -->[docs] Change markdown numbering syntax (#36187) @mj12albert
122
+ - &#8203;<!-- 11 -->[docs] Fix switch alignment in `Disabled tree items` section in Tree View docs (#36217) @PunitSoniME
123
+ - &#8203;<!-- 10 -->[docs] Standardize example names (#36112) @samuelsycamore
124
+ - &#8203;<!-- 09 -->[docs] Fix typo @oliviertassinari
125
+ - &#8203;<!-- 08 -->[docs] Fix markdown table alignments (#36136) @oliviertassinari
126
+ - &#8203;<!-- 07 -->[docs] Small color tweaks to the docs search bar (#36160) @danilo-leal
127
+ - &#8203;<!-- 06 -->[docs][joy] Update class name prefixes in the `Anatomy` section (#36210) @ZeeshanTamboli
128
+
129
+ ### Core
130
+
131
+ - &#8203;<!-- 19 -->[core] Migrate nprogress to emotion (#36181) @siriwatknp
132
+ - &#8203;<!-- 18 -->[core] Enforce namespace import for ReactDOM (#36208) @mj12albert
133
+ - &#8203;<!-- 17 -->[core] Fix deploy preview links (#36203) @siriwatknp
134
+
135
+ All contributors of this release in alphabetical order: @Aleff13, @dani-mp, @danilo-leal, @hbjORbj, @mj12albert, @oliviertassinari, @PunitSoniME, @sai6855, @samuelsycamore, @siriwatknp, @ZeeshanTamboli
136
+
137
+ ## 5.11.9
138
+
139
+ <!-- generated comparing v5.11.8..master -->
140
+
141
+ _Feb 14, 2023_
142
+
143
+ A big thanks to the 17 contributors who made this release possible. Here are some highlights ✨:
144
+
145
+ - 🐛 @rangoo94, @sai6855, and @michaldudak fixed a couple of bugs in the Autocomplete component (#36116, #35640, #36076, #36088)
146
+ - many other 🐛 bug fixes and 📚 documentation improvements
147
+
148
+ ### `@mui/material@5.11.9`
149
+
150
+ - [AppBar] Fix joinVars() not handling undefined (#36128) @donaldnevermore
151
+ - [Autocomplete] Fix tag removal regression (#36116) @michaldudak
152
+ - [Autocomplete] Correct padding of filled Autocomplete (#35640) @michaldudak
153
+ - [Grid][Stack] classNames prefixed with Mui (#36167) @sai6855
154
+
155
+ ### `@mui/styled-engine@5.11.9`
156
+
157
+ - [StyledEngineProvider] Fix issue with cache not being defined (#36162) @mnajdova
158
+
159
+ ### `@mui/joy@5.0.0-alpha.67`
160
+
161
+ - [Joy] Add order dashboard template (#36081) @siriwatknp
162
+ - [Joy] Remove classes prop from the components that have it (#36159) @hbjORbj
163
+ - [Joy] Miscellaneous fixes (#36163) @siriwatknp
164
+
165
+ ### `@mui/base@5.0.0-alpha.118`
166
+
167
+ - [base] Override the types of `slotProps` per slot (#35964) @hbjORbj
168
+ - [Select][base] Prevent unnecessary rerendering of Select options (#35946) @michaldudak
169
+ - [Select][base] Update the generated docs (#36183) @michaldudak
170
+ - [useAutocomplete] Pass only valid values for the getOptionLabel prop (#36088) @rangoo94
171
+ - [useAutocomplete] Fix `useAutocomplete` disabled prop not disabling the input (#36076) @sai6855
172
+ - [useInput] Add return value interface (#36036) @Shorifpatwary
173
+ - [UseTabPanel] Add explicit return type (#36053) @Shorifpatwary
174
+ - [useTabsList] Add explicit return type (#36048) @sai6855
175
+ - [Tab] Add explicit return type to useTab (#36046) @sai6855
176
+
177
+ ### `@mui/material-next@6.0.0-alpha.75`
178
+
179
+ - [Material You] Use `md` as a CSS var prefix (#36177) @siriwatknp
180
+
181
+ ### Docs
182
+
183
+ - [docs] Fix the prop type regression on the API pages (#36168) @mnajdova
184
+ - [docs] Fix virtualized table column resizing (#36066) @petyosi
185
+ - [docs] Fix react-spring demos (#36023) @oliviertassinari
186
+ - [docs] Fix classname mismatch on Joy docs (#36127) @siriwatknp
187
+ - [docs] Fix typo in the released version of @mui/styled-engine (#36121) @m4theushw
188
+ - [docs] Fix demos showing TypeScript instead of JavaScript (#35850) @mj12albert
189
+ - [docs] Update release instructions (#36113) @mj12albert
190
+ - [docs] Rename `v6-alpha` to `v6-next` in navigation (#36102) @LukasTy
191
+ - [docs] Revise Joy UI "Input" page (#35970) @LadyBluenotes
192
+ - [docs] Revise Joy UI "Typography" page (#35868) @LadyBluenotes
193
+
194
+ ### Examples
195
+
196
+ - [examples][vitejs] Load Roboto font (#35678) @oliv37
197
+
198
+ ### Core
199
+
200
+ - [blog] Fix the look and feel of the media description (#36069) @oliviertassinari
201
+ - [core] Add default preview url (#36118) @siriwatknp
202
+ - [core] Migrate all the internals exported by `tests/utils/index.js` to TypeScript (#35382) @flaviendelangle
203
+ - [core] Convert the waterfall module to an internal package (#35323) @michaldudak
204
+ - [website] Fix homepage MD theme demo (#36027) @oliviertassinari
205
+ - [website] Revise the Lead Designer role job ad (#35912) @danilo-leal
206
+ - [POC] Add deploy preview to PR body (#35995) @siriwatknp
207
+
208
+ All contributors of this release in alphabetical order: @danilo-leal, @donaldnevermore, @flaviendelangle, @hbjORbj, @LadyBluenotes, @LukasTy, @m4theushw, @michaldudak, @mj12albert, @mnajdova, @oliv37, @oliviertassinari, @petyosi, @rangoo94, @sai6855, @Shorifpatwary, @siriwatknp
209
+
3
210
  ## 5.11.8
4
211
 
5
212
  <!-- generated comparing v5.11.7..master -->
@@ -25,7 +232,7 @@ A big thanks to the 14 contributors who made this release possible. Here are som
25
232
 
26
233
  - &#8203;<!-- 05 -->[System] Fix nested grid v2 (#35994) @siriwatknp
27
234
 
28
- ### `@mui/styled-engine@5.11.1`
235
+ ### `@mui/styled-engine@5.11.8`
29
236
 
30
237
  - &#8203;<!-- 06 -->[styled-engine] Create cache only if `document` is available (#36001) @m4theushw
31
238
 
@@ -3441,7 +3648,7 @@ _Feb 1, 2022_
3441
3648
 
3442
3649
  A big thanks to the 22 contributors who made this release possible. Here are some highlights ✨:
3443
3650
 
3444
- - 🛠 @goncalovf added an example project using [MUI with Vite.js](https://github.com/mui/material-ui/tree/master/examples/vitejs) (#28241)
3651
+ - 🛠 @goncalovf added an example project using [Material UI with Vite.js](https://github.com/mui/material-ui/tree/master/examples/material-vite) (#28241)
3445
3652
  - Number of 🐛 bug fixes and 📚 documentation improvements.
3446
3653
 
3447
3654
  ### `@mui/material@5.4.0`
@@ -18,7 +18,7 @@ export default function StyledEngineProvider(props) {
18
18
  injectFirst,
19
19
  children
20
20
  } = props;
21
- return injectFirst ? /*#__PURE__*/_jsx(CacheProvider, {
21
+ return injectFirst && cache ? /*#__PURE__*/_jsx(CacheProvider, {
22
22
  value: cache,
23
23
  children: children
24
24
  }) : children;
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/styled-engine v5.11.8
2
+ * @mui/styled-engine v5.11.11
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -17,7 +17,7 @@ if ((typeof document === "undefined" ? "undefined" : _typeof(document)) === 'obj
17
17
  export default function StyledEngineProvider(props) {
18
18
  var injectFirst = props.injectFirst,
19
19
  children = props.children;
20
- return injectFirst ? /*#__PURE__*/_jsx(CacheProvider, {
20
+ return injectFirst && cache ? /*#__PURE__*/_jsx(CacheProvider, {
21
21
  value: cache,
22
22
  children: children
23
23
  }) : children;
package/legacy/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/styled-engine v5.11.8
2
+ * @mui/styled-engine v5.11.11
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -18,7 +18,7 @@ export default function StyledEngineProvider(props) {
18
18
  injectFirst,
19
19
  children
20
20
  } = props;
21
- return injectFirst ? /*#__PURE__*/_jsx(CacheProvider, {
21
+ return injectFirst && cache ? /*#__PURE__*/_jsx(CacheProvider, {
22
22
  value: cache,
23
23
  children: children
24
24
  }) : children;
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/styled-engine v5.11.8
2
+ * @mui/styled-engine v5.11.11
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -26,7 +26,7 @@ function StyledEngineProvider(props) {
26
26
  injectFirst,
27
27
  children
28
28
  } = props;
29
- return injectFirst ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_react2.CacheProvider, {
29
+ return injectFirst && cache ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_react2.CacheProvider, {
30
30
  value: cache,
31
31
  children: children
32
32
  }) : children;
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/styled-engine v5.11.8
2
+ * @mui/styled-engine v5.11.11
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/styled-engine",
3
- "version": "5.11.8",
3
+ "version": "5.11.11",
4
4
  "private": false,
5
5
  "author": "MUI Team",
6
6
  "description": "styled() API wrapper package for emotion.",
@@ -26,7 +26,7 @@
26
26
  "url": "https://opencollective.com/mui"
27
27
  },
28
28
  "dependencies": {
29
- "@babel/runtime": "^7.20.7",
29
+ "@babel/runtime": "^7.21.0",
30
30
  "@emotion/cache": "^11.10.5",
31
31
  "csstype": "^3.1.1",
32
32
  "prop-types": "^15.8.1"