@mui/private-theming 6.0.0-alpha.1 → 6.0.0-alpha.5

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,210 @@
1
1
  # [Versions](https://mui.com/versions/)
2
2
 
3
+ ## v6.0.0-alpha.5
4
+
5
+ <!-- generated comparing v6.0.0-alpha.4..next -->
6
+
7
+ _May 1, 2024_
8
+
9
+ A big thanks to the 9 contributors who made this release possible. Here are some highlights ✨:
10
+
11
+ ### `@mui/material@6.0.0-alpha.5`
12
+
13
+ - [FormControlLabel] Deprecate `componentsProps` (#41767) @sai6855
14
+ - [PaginationItem] Deprecate components prop (#41777) @sai6855
15
+ - [SvgIcon] Convert to support CSS extraction (#41779) @aarongarciah
16
+
17
+ ### `@mui/base@5.0.0-beta.43`
18
+
19
+ - [TextareaAutosize] Fix resizing instability (#41638) @ZeeshanTamboli
20
+
21
+ ### Docs
22
+
23
+ - Fix small SEO issues @oliviertassinari
24
+ - [material-ui] Fix minor spelling error in the "About the lab" page (#42073) @ryanhartwig
25
+ - [material-ui] Update Figma plugin name (#41967) @danilo-leal
26
+ - [material-ui][templates] Fix input props attributes in Landing Page template (#42013) @5-tom
27
+ - [system] Update typo on the sx prop page (#42035) @bricker
28
+
29
+ ### Core
30
+
31
+ - [docs-infra] Clean up branding theme file and improve font-face readibility (#42023) @danilo-leal
32
+ - [docs-infra] Simplify docs demo (#42016) @oliviertassinari
33
+ - [website] Add content about the Sync plugin in the Material UI page (#40515) @danilo-leal
34
+ - [website] Sync career roles (#42058) @oliviertassinari
35
+ - [website] Add Nadja on the about page (#42021) @mnajdova
36
+ - [website] Fix code block design by changing the `MarkdownElement` import (#42022) @danilo-leal
37
+ - [wesbite] Remove duplicate MarkdownElement component (#42028) @danilo-leal
38
+
39
+ All contributors of this release in alphabetical order: @5-tom, @aarongarciah, @bricker, @danilo-leal, @mnajdova, @oliviertassinari, @ryanhartwig, @sai6855, @ZeeshanTamboli
40
+
41
+ ## v6.0.0-alpha.4
42
+
43
+ <!-- generated comparing v6.0.0-alpha.3..next -->
44
+
45
+ _Apr 24, 2024_
46
+
47
+ A big thanks to the 15 contributors who made this release possible. Here are some highlights ✨:
48
+
49
+ - 🔥 Converted 3 more Material UI components to use Pigment CSS.
50
+ - ℹ️ Pigment CSS now lives in [its own repository](https://github.com/mui/pigment-css)! From now on, all future development will happen there.
51
+
52
+ ### `@mui/material@6.0.0-alpha.4`
53
+
54
+ - [Checkbox] Convert to support CSS extraction (#41957) @lhilgert9
55
+ - [IconButton] Convert to support CSS extraction (#41850) @gijsbotje
56
+ - [Radio] Convert to support CSS extraction (#41840) @lhilgert9
57
+ - [Typography] Fix ownerState prop placement (#41903) @sai6855
58
+ - Generate typography tokens (#41703) @siriwatknp
59
+ - Move typography CSS variables to `font` (#42003) @siriwatknp
60
+ - Fix getOverlayAlpha type (#41995) @oliviertassinari
61
+ - Support CSS Extraction using codemod (#41935) @siriwatknp
62
+
63
+ ### `@mui/icons-material@6.0.0-alpha.4`
64
+
65
+ - &#8203;<!-- 08 -->[icons] Update the icons package (#41937) @danilo-leal
66
+
67
+ ### Docs
68
+
69
+ - [material-ui] Remove react-swipeable-views from demos as it's no longer maintained (#41912) @soler1212
70
+ - [material-ui] Add dark theme thumbnails for templates (#41947) @zanivan
71
+ - [material-ui] Remove links and interdependencies from free templates (#41941) @zanivan
72
+ - [material-ui] Add missing backticks to HTML tag in the installation page (#41972) @Miguelrom
73
+ - Fix 301 Toolpad links @oliviertassinari
74
+ - Fix 301 image redirections @oliviertassinari
75
+
76
+ ### Core
77
+
78
+ - pnpm docs:zipRules && vale sync @oliviertassinari
79
+ - Remove @pigment-css/\* packages (#41965) @mnajdova
80
+ - [code-infra] Move the HighlightedCode component to @mui/docs (#41859) @Janpot
81
+ - [code-infra] Move the HighlightedCode component to @mui/docs (#41859) @Janpot
82
+ - [code-infra] Make Babel config path configurable in API docs builder (#41999) @michaldudak
83
+ - [docs-infra] Fix flex-shrink pro-plan (#41990) @oliviertassinari
84
+ - [docs-infra] Allow more value uses of MUI (#41706) @oliviertassinari
85
+ - [docs-infra] Move CPU to shared config (#41901) @oliviertassinari
86
+ - [docs-infra] Improve Twitter OG:image (#41860) @oliviertassinari
87
+ - [docs-infra] Adapt docs infra to Base UI docs needs (#41963) @michaldudak
88
+ - [docs-infra] Add demo container design refinements (#41948) @danilo-leal
89
+ - [docs-infra] Use the `getLayout` on the material demo pages (#41936) @alexfauquette
90
+ - [test] Update browser versions in karma config (#42008) @ZeeshanTamboli
91
+ - [website] Remove customer support agent role from website (#41969) @rluzists1
92
+ - [website] Fix grid usage and add stray improvements (#41930) @danilo-leal
93
+
94
+ All contributors of this release in alphabetical order: @alexfauquette, @danilo-leal, @gijsbotje, @Janpot, @lhilgert9, @michaldudak, @Miguelrom, @mnajdova, @oliviertassinari, @rluzists1, @sai6855, @siriwatknp, @soler1212, @zanivan, @ZeeshanTamboli
95
+
96
+ ## v6.0.0-alpha.3
97
+
98
+ <!-- generated comparing v6.0.0-alpha.2..next -->
99
+
100
+ _Apr 17, 2024_
101
+
102
+ A big thanks to the 24 contributors who made this release possible. Here are some highlights ✨:
103
+
104
+ - 🔥 Converted 5 more Material UI components to use Pigment CSS.
105
+ - 🚀 Added container queries utility to the `@mui/system` package (#41674) @siriwatknp.
106
+
107
+ ### `@mui/material@6.0.0-alpha.3`
108
+
109
+ - Convert `LinearProgress` to support Pigment CSS (#41816) @siriwatknp
110
+ - [Dialog] Prevent onClick on the root element from being overwritten (#41881) @ryanburr
111
+ - [FloatingActionButton] Convert to support CSS extraction (#41851) @gijsbotje
112
+ - Convert `CircularProgress` to support Pigment CSS (#41776) @siriwatknp
113
+ - [PaginationItem] Convert to support CSS extraction (#41848) @gijsbotje
114
+ - [StepConnector] deprecate composed classes (#41740) @sai6855
115
+ - [StepLabel] Deprecate `StepIconComponent`, `StepIconProps` (#41835) @sai6855
116
+ - [ToggleButton] Convert to support CSS extraction (#41782) @lhilgert9
117
+ - [ToggleButtonGroup] Deprecate composed classes (#41288) @sai6855
118
+ - [Typography] Fix Typography inherit variant styles (#41308) @kealjones-wk
119
+
120
+ ### `@mui/system@6.0.0-alpha.3`
121
+
122
+ - Add container queries utility (#41674) @siriwatknp
123
+
124
+ ### `@mui/codemod@6.0.0-alpha.3`
125
+
126
+ - Add styled v6 transformation (#41743) @siriwatknp
127
+
128
+ ### `@mui/joy@5.0.0-beta.36`
129
+
130
+ - [Button] Disable text highlighting (#41902) @mithun522
131
+
132
+ ### `@pigment-css/react@0.0.7`
133
+
134
+ - Patch WyW's WeakRef usage (#41909) @DiegoAndai
135
+ - Implement sx transform for system components (#41861) @brijeshb42
136
+
137
+ ### Docs
138
+
139
+ - [material-ui] Add Connect-related content (#40848) @danilo-leal
140
+ - [material-ui] Fix credit comment typo (#41872) @aarongarciah
141
+ - [material-ui] Remove Data Grid v7 beta callout (#41839) @cherniavskii
142
+ - [material-ui] Add stray design tweaks to free templates (#41696) @zanivan
143
+ - [material-ui] Simplify components styling on templates (#41845) @zanivan
144
+ - [material-ui][Button] Add `onChange` event handler to file upload example (#41863) @aarongarciah
145
+ - [material-ui] Fix import statement in migration guide (#41852) @sai6855
146
+ - Fix 301 redirection @oliviertassinari
147
+ - Fix format git diff regression (#41882) @oliviertassinari
148
+ - Fix small SEO issues @oliviertassinari
149
+ - [pigment-css] Fix README typos (#41870) @MohammadShehadeh
150
+
151
+ ### Core
152
+
153
+ - Begin removing IE 11-related code (#41709) @iammminzzy
154
+ - [blog] Add post to introduce the Connect plugin (#41763) @danilo-leal
155
+ - [code-infra] Fix require.context with aliases (#41682) @Janpot
156
+ - [code-infra] Allow customizing hooks imports in API docs generator (#41828) @michaldudak
157
+ - [codemod] Add utils for `*Component` and `*Props` props deprecations (#41685) @DiegoAndai
158
+ - Replace bundle size reporter filter (#38979) @Janpot
159
+ - [docs-infra] Make the whole header clickable (#39603) @MoazMirza-13
160
+ - [docs-infra] Improve demo container and related components design (#41827) @danilo-leal
161
+ - [docs-infra] Use edge function for card generation (#41188) (#41836) @alexfauquette
162
+ - [docs-infra] Fix code block layout shift (#41917) @oliviertassinari
163
+ - [docs-infra] Fine-tune the OG card image design (#41862) @danilo-leal
164
+ - [docs-infra] Fix markdown version for material (#41908) @alexfauquette
165
+ - [docs-infra] Support multiple tabs in demos (#40901) @bharatkashyap
166
+
167
+ 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
168
+
169
+ ## v6.0.0-alpha.2
170
+
171
+ <!-- generated comparing v6.0.0-alpha.1..next -->
172
+
173
+ _Apr 9, 2024_
174
+
175
+ A big thanks to the 5 contributors who made this release possible.
176
+ This release was mostly about 🐛 bug fixes and 📚 documentation improvements.
177
+
178
+ ### `@mui/material@6.0.0-alpha.2`
179
+
180
+ - &#8203;<!-- 03 -->[typescript][Select] Fix `muiName` property TypeScript error (#41726) @EyaOuenniche
181
+ - &#8203;<!-- 04 -->[l10n] Fix typo in is-IS locale (#41810) @magnimarels
182
+
183
+ ### `@pigment-css/react@0.0.6`
184
+
185
+ - &#8203;<!-- 12 -->[core] Remove `muiName` during eval phase (#41811) @brijeshb42
186
+
187
+ ### `@pigment-css/nextjs-plugin@0.0.6`
188
+
189
+ - &#8203;<!-- 02 -->[nextjs] Handle file references passed through imports (#41817) @brijeshb42
190
+ - &#8203;<!-- 01 -->[nextjs] Allow usage of url() CSS function (#41758) @brijeshb42
191
+
192
+ ### Docs
193
+
194
+ - &#8203;<!-- 11 -->[docs] Fix 301 links @oliviertassinari
195
+ - &#8203;<!-- 06 -->[pigment-css][docs] Fix README typo (#41808) @aarongarciah
196
+ - &#8203;<!-- 05 -->[pigment-css][docs] Fix output on dynamic styles example (#41805) @aarongarciah
197
+ - &#8203;<!-- 07 -->[material-ui][docs] Fix Material 3 message typo (#41821) @aarongarciah
198
+ - &#8203;<!-- 08 -->[material-ui][docs] Add stray design tweaks to free templates (#41696) @zanivan
199
+
200
+ ### Core
201
+
202
+ - &#8203;<!-- 13 -->[core] Remove unused files (#41818) @mnajdova
203
+ - &#8203;<!-- 10 -->[docs-infra] Fix analytics about inline ads (#41474) (#41819) @alexfauquette
204
+ - &#8203;<!-- 08 -->[docs-infra] Fix drawer performances (#41807) @alexfauquette
205
+
206
+ All contributors of this release in alphabetical order: @aarongarciah, @alexfauquette, @brijeshb42, @EyaOuenniche, @oliviertassinari
207
+
3
208
  ## v6.0.0-alpha.1
4
209
 
5
210
  <!-- generated comparing v6.0.0-alpha.0..next -->
@@ -8128,7 +8333,7 @@ A big thanks to the 25 contributors who made this release possible. Here are som
8128
8333
 
8129
8334
  <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>
8130
8335
 
8131
- You can follow our progress with unstyled components at https://github.com/mui/material-ui/issues/27170.
8336
+ You can follow our progress with unstyled components at https://github.com/mui/base-ui/issues/10.
8132
8337
 
8133
8338
  - 🎉 We have added an example of how to use MUI with [Remix](https://remix.run/) (#29952) @mnajdova
8134
8339
 
@@ -9598,7 +9803,7 @@ A big thanks to the 17 contributors who made this release possible. Here are som
9598
9803
 
9599
9804
  <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>
9600
9805
 
9601
- You can follow our progress at https://github.com/mui/material-ui/issues/27170.
9806
+ You can follow our progress at https://github.com/mui/base-ui/issues/10.
9602
9807
 
9603
9808
  - 💄 We have updated the default `info` `success` `warning` color to be more accessible (#26817) @siriwatknp.
9604
9809
  You can find the new [default values](https://mui.com/material-ui/customization/palette/#default-values) in the documentation.
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/private-theming v6.0.0-alpha.1
2
+ * @mui/private-theming v6.0.0-alpha.5
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/private-theming v6.0.0-alpha.1
2
+ * @mui/private-theming v6.0.0-alpha.5
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/private-theming v6.0.0-alpha.1
2
+ * @mui/private-theming v6.0.0-alpha.5
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/private-theming",
3
- "version": "6.0.0-alpha.1",
3
+ "version": "6.0.0-alpha.5",
4
4
  "private": false,
5
5
  "author": "MUI Team",
6
6
  "description": "Private - The React theme context to be shared between `@mui/styles` and `@mui/material`.",
@@ -28,7 +28,7 @@
28
28
  "dependencies": {
29
29
  "@babel/runtime": "^7.24.4",
30
30
  "prop-types": "^15.8.1",
31
- "@mui/utils": "^6.0.0-alpha.1"
31
+ "@mui/utils": "^6.0.0-alpha.5"
32
32
  },
33
33
  "peerDependencies": {
34
34
  "@types/react": "^17.0.0 || ^18.0.0",
@@ -1,63 +0,0 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
2
- import * as React from 'react';
3
- import PropTypes from 'prop-types';
4
- import { exactProp } from '@mui/utils';
5
- import ThemeContext from '../useTheme/ThemeContext';
6
- import useTheme from '../useTheme';
7
- import nested from './nested';
8
-
9
- // To support composition of theme.
10
- import { jsx as _jsx } from "react/jsx-runtime";
11
- function mergeOuterLocalTheme(outerTheme, localTheme) {
12
- if (typeof localTheme === 'function') {
13
- var mergedTheme = localTheme(outerTheme);
14
- if (process.env.NODE_ENV !== 'production') {
15
- if (!mergedTheme) {
16
- console.error(['MUI: You should return an object from your theme function, i.e.', '<ThemeProvider theme={() => ({})} />'].join('\n'));
17
- }
18
- }
19
- return mergedTheme;
20
- }
21
- return _extends({}, outerTheme, localTheme);
22
- }
23
-
24
- /**
25
- * This component takes a `theme` prop.
26
- * It makes the `theme` available down the React tree thanks to React context.
27
- * This component should preferably be used at **the root of your component tree**.
28
- */
29
- function ThemeProvider(props) {
30
- var children = props.children,
31
- localTheme = props.theme;
32
- var outerTheme = useTheme();
33
- if (process.env.NODE_ENV !== 'production') {
34
- if (outerTheme === null && typeof localTheme === 'function') {
35
- console.error(['MUI: You are providing a theme function prop to the ThemeProvider component:', '<ThemeProvider theme={outerTheme => outerTheme} />', '', 'However, no outer theme is present.', 'Make sure a theme is already injected higher in the React tree ' + 'or provide a theme object.'].join('\n'));
36
- }
37
- }
38
- var theme = React.useMemo(function () {
39
- var output = outerTheme === null ? localTheme : mergeOuterLocalTheme(outerTheme, localTheme);
40
- if (output != null) {
41
- output[nested] = outerTheme !== null;
42
- }
43
- return output;
44
- }, [localTheme, outerTheme]);
45
- return /*#__PURE__*/_jsx(ThemeContext.Provider, {
46
- value: theme,
47
- children: children
48
- });
49
- }
50
- process.env.NODE_ENV !== "production" ? ThemeProvider.propTypes = {
51
- /**
52
- * Your component tree.
53
- */
54
- children: PropTypes.node,
55
- /**
56
- * A theme object. You can provide a function to extend the outer theme.
57
- */
58
- theme: PropTypes.oneOfType([PropTypes.object, PropTypes.func]).isRequired
59
- } : void 0;
60
- if (process.env.NODE_ENV !== 'production') {
61
- process.env.NODE_ENV !== "production" ? ThemeProvider.propTypes = exactProp(ThemeProvider.propTypes) : void 0;
62
- }
63
- export default ThemeProvider;
@@ -1,2 +0,0 @@
1
- export { default } from './ThemeProvider';
2
- export { default as unstable_nested } from './nested';
@@ -1,2 +0,0 @@
1
- var hasSymbol = typeof Symbol === 'function' && Symbol.for;
2
- export default hasSymbol ? Symbol.for('mui.nested') : '__THEME_NESTED__';
package/legacy/index.js DELETED
@@ -1,10 +0,0 @@
1
- /**
2
- * @mui/private-theming v6.0.0-alpha.1
3
- *
4
- * @license MIT
5
- * This source code is licensed under the MIT license found in the
6
- * LICENSE file in the root directory of this source tree.
7
- */
8
- export { default as ThemeProvider } from './ThemeProvider';
9
- export * from './ThemeProvider';
10
- export { default as useTheme } from './useTheme';
@@ -1,6 +0,0 @@
1
- import * as React from 'react';
2
- var ThemeContext = /*#__PURE__*/React.createContext(null);
3
- if (process.env.NODE_ENV !== 'production') {
4
- ThemeContext.displayName = 'ThemeContext';
5
- }
6
- export default ThemeContext;
@@ -1 +0,0 @@
1
- export { default } from './useTheme';
@@ -1,10 +0,0 @@
1
- import * as React from 'react';
2
- import ThemeContext from './ThemeContext';
3
- export default function useTheme() {
4
- var theme = React.useContext(ThemeContext);
5
- if (process.env.NODE_ENV !== 'production') {
6
- // eslint-disable-next-line react-hooks/rules-of-hooks
7
- React.useDebugValue(theme);
8
- }
9
- return theme;
10
- }