@mui/material 5.11.2 → 5.11.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/Autocomplete/Autocomplete.d.ts +1 -0
- package/Autocomplete/Autocomplete.js +1 -0
- package/CHANGELOG.md +85 -0
- package/FilledInput/FilledInput.js +0 -4
- package/Input/Input.js +1 -5
- package/MenuItem/MenuItem.d.ts +1 -1
- package/MenuItem/MenuItem.js +2 -1
- package/Modal/Modal.d.ts +35 -12
- package/Tabs/Tabs.js +3 -1
- package/Tooltip/Tooltip.js +0 -1
- package/index.js +3 -1
- package/legacy/Autocomplete/Autocomplete.js +1 -0
- package/legacy/FilledInput/FilledInput.js +0 -3
- package/legacy/Input/Input.js +1 -4
- package/legacy/MenuItem/MenuItem.js +2 -1
- package/legacy/Tabs/Tabs.js +3 -1
- package/legacy/Tooltip/Tooltip.js +0 -1
- package/legacy/index.js +3 -1
- package/modern/Autocomplete/Autocomplete.js +1 -0
- package/modern/FilledInput/FilledInput.js +0 -4
- package/modern/Input/Input.js +1 -5
- package/modern/MenuItem/MenuItem.js +2 -1
- package/modern/Tabs/Tabs.js +3 -1
- package/modern/Tooltip/Tooltip.js +0 -1
- package/modern/index.js +3 -1
- package/node/Autocomplete/Autocomplete.js +1 -0
- package/node/FilledInput/FilledInput.js +0 -4
- package/node/Input/Input.js +1 -5
- package/node/MenuItem/MenuItem.js +2 -1
- package/node/Tabs/Tabs.js +3 -1
- package/node/Tooltip/Tooltip.js +0 -1
- package/node/index.js +3 -1
- package/package.json +4 -4
- package/umd/material-ui.development.js +27 -18
- package/umd/material-ui.production.min.js +7 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,90 @@
|
|
|
1
1
|
# [Versions](https://mui.com/versions/)
|
|
2
2
|
|
|
3
|
+
## 5.11.4
|
|
4
|
+
|
|
5
|
+
<!-- generated comparing v5.11.3..master -->
|
|
6
|
+
|
|
7
|
+
_Jan 9, 2023_
|
|
8
|
+
|
|
9
|
+
A big thanks to the 14 contributors who made this release possible.
|
|
10
|
+
This release was mostly about 🐛 bug fixes and 📚 documentation improvements.
|
|
11
|
+
|
|
12
|
+
### `@mui/material@5.11.4`
|
|
13
|
+
|
|
14
|
+
- [Autocomplete] Add index to renderOption's AutocompleteRenderOptionState (#35578) @CowDotDev
|
|
15
|
+
- [Autocomplete] Fix grammar in console.error in `useAutocomplete` (#35723) @hamirmahal
|
|
16
|
+
- [Modal] Fix can't override Backdrop Props using new Slots API (#35140) @ZeeshanTamboli
|
|
17
|
+
- [Select] Revert "Update `renderValue` prop's TypeScript type (#34177)" (#35733) @michaldudak
|
|
18
|
+
- [Tabs] Throw error only if individual `Tab` is hidden, not the whole `Tabs` (#34026) @Ryczko
|
|
19
|
+
- [TextField] Improve WCAG 2.4.7 with error={true} (#35687) @oliviertassinari
|
|
20
|
+
- [Tooltip] Remove `data-foo` attribute (#35736) @koolskateguy89
|
|
21
|
+
|
|
22
|
+
### `@mui/joy@5.0.0-alpha.62`
|
|
23
|
+
|
|
24
|
+
- [Autocomplete][joy] Specify `type` attribute for popup indicator (#35648) @hbjORbj
|
|
25
|
+
- [Joy] Miscellaneous improvements (#35769) @siriwatknp
|
|
26
|
+
- [Joy] Improve `onKeyDown` event handler for demo (#35642) @hbjORbj
|
|
27
|
+
|
|
28
|
+
### `@mui/base@5.0.0-alpha.113`
|
|
29
|
+
|
|
30
|
+
- [Portal][base] Convert code to TypeScript (#35657) @sai6855
|
|
31
|
+
|
|
32
|
+
### Docs
|
|
33
|
+
|
|
34
|
+
- [docs] Revise and expand Joy UI Button doc (#35737) @samuelsycamore
|
|
35
|
+
- [docs] Document the workaround for crashing a translated page (#35720) @michaldudak
|
|
36
|
+
- [docs] Fix API page for `MenuItem` to list all valid props (#35561) @mnajdova
|
|
37
|
+
- [docs] Fix ad exception in Joy UI (#35685) @oliviertassinari
|
|
38
|
+
- [docs] Fix content wider than screen regression @oliviertassinari
|
|
39
|
+
- [examples] Add `Vite.js with TypeScript` example (#35683) @miha53cevic
|
|
40
|
+
|
|
41
|
+
### Core
|
|
42
|
+
|
|
43
|
+
- [core] Close 2022 developer survey @oliviertassinari
|
|
44
|
+
- [core] Fix the product license reference name (#35703) @oliviertassinari
|
|
45
|
+
- [core] Use TypeScript AST instead of TTP for component doc building (#35379) @flaviendelangle
|
|
46
|
+
- [test] Always use & for nesting styles (#35702) @oliviertassinari
|
|
47
|
+
- [website] Improve Lead Designer role description (#35684) @oliviertassinari
|
|
48
|
+
|
|
49
|
+
All contributors of this release in alphabetical order: @CowDotDev, @flaviendelangle, @hamirmahal, @hbjORbj, @koolskateguy89, @michaldudak, @miha53cevic, @mnajdova, @oliviertassinari, @Ryczko, @sai6855, @samuelsycamore, @siriwatknp, @ZeeshanTamboli
|
|
50
|
+
|
|
51
|
+
## 5.11.3
|
|
52
|
+
|
|
53
|
+
<!-- generated comparing v5.11.2..master -->
|
|
54
|
+
|
|
55
|
+
_Jan 2, 2023_
|
|
56
|
+
|
|
57
|
+
A big thanks to the 6 contributors who made this release possible.
|
|
58
|
+
This release was mostly about 🐛 bug fixes and 📚 documentation improvements.
|
|
59
|
+
|
|
60
|
+
### `@mui/material@5.11.3`
|
|
61
|
+
|
|
62
|
+
- ​<!-- 02 -->[Select] Update `renderValue` prop's TypeScript type (#34177) @ZeeshanTamboli
|
|
63
|
+
|
|
64
|
+
### `@mui/joy@5.0.0-alpha.61`
|
|
65
|
+
|
|
66
|
+
- ​<!-- 14 -->[Autocomplete][joy] Export component (#35647) @mbranch
|
|
67
|
+
|
|
68
|
+
### Docs
|
|
69
|
+
|
|
70
|
+
- ​<!-- 13 -->[blog] Fix handling of markdown links (#35628) @oliviertassinari
|
|
71
|
+
- ​<!-- 09 -->[docs] Fix demo code selection through copy shortcut key on Firefox browser (#35670) @ZeeshanTamboli
|
|
72
|
+
- ​<!-- 08 -->[docs] Fix layout shift when streaming the page (#35627) @oliviertassinari
|
|
73
|
+
- ​<!-- 07 -->[docs] Fix switch name to reflect the color (#35052) @rjhcnf
|
|
74
|
+
- ​<!-- 06 -->[docs] Fix anchor link in the card's docs and fix a typo (#35634) @ZeeshanTamboli
|
|
75
|
+
- ​<!-- 05 -->[docs] Fix layout shift with modal (#35591) @oliviertassinari
|
|
76
|
+
- ​<!-- 04 -->[Joy][docs] Add documentation for `Input` component (#35482) @hbjORbj
|
|
77
|
+
- ​<!-- 03 -->[docs][joy] Improved readability on theme tokens page (#35639) @badalsaibo
|
|
78
|
+
|
|
79
|
+
### Core
|
|
80
|
+
|
|
81
|
+
- ​<!-- 12 -->[core] Disable prefetch of footer links @oliviertassinari
|
|
82
|
+
- ​<!-- 11 -->[core] A few SEO fixes (#35672) @oliviertassinari
|
|
83
|
+
- ​<!-- 10 -->[core] Remove need for scopePathnames (#35584) @oliviertassinari
|
|
84
|
+
- ​<!-- 01 -->[test] Fix Algolia noisy lvl1 anchor (#35686) @oliviertassinari
|
|
85
|
+
|
|
86
|
+
All contributors of this release in alphabetical order: @badalsaibo, @hbjORbj, @mbranch, @oliviertassinari, @rjhcnf, @ZeeshanTamboli
|
|
87
|
+
|
|
3
88
|
## 5.11.2
|
|
4
89
|
|
|
5
90
|
<!-- generated comparing v5.11.1..master -->
|
|
@@ -90,12 +90,8 @@ const FilledInputRoot = styled(InputBaseRoot, {
|
|
|
90
90
|
[`&.${filledInputClasses.error}`]: {
|
|
91
91
|
'&:before, &:after': {
|
|
92
92
|
borderBottomColor: (theme.vars || theme).palette.error.main
|
|
93
|
-
},
|
|
94
|
-
'&:focus-within:after': {
|
|
95
|
-
transform: 'scaleX(1)' // error is always underlined in red
|
|
96
93
|
}
|
|
97
94
|
},
|
|
98
|
-
|
|
99
95
|
'&:before': {
|
|
100
96
|
borderBottom: `1px solid ${theme.vars ? `rgba(${theme.vars.palette.common.onBackgroundChannel} / ${theme.vars.opacity.inputUnderline})` : bottomLineColor}`,
|
|
101
97
|
left: 0,
|
package/Input/Input.js
CHANGED
|
@@ -73,12 +73,8 @@ const InputRoot = styled(InputBaseRoot, {
|
|
|
73
73
|
[`&.${inputClasses.error}`]: {
|
|
74
74
|
'&:before, &:after': {
|
|
75
75
|
borderBottomColor: (theme.vars || theme).palette.error.main
|
|
76
|
-
},
|
|
77
|
-
'&:focus-within:after': {
|
|
78
|
-
transform: 'scaleX(1)' // error is always underlined in red
|
|
79
76
|
}
|
|
80
77
|
},
|
|
81
|
-
|
|
82
78
|
'&:before': {
|
|
83
79
|
borderBottom: `1px solid ${bottomLineColor}`,
|
|
84
80
|
left: 0,
|
|
@@ -94,7 +90,7 @@ const InputRoot = styled(InputBaseRoot, {
|
|
|
94
90
|
},
|
|
95
91
|
|
|
96
92
|
[`&:hover:not(.${inputClasses.disabled}, .${inputClasses.error}):before`]: {
|
|
97
|
-
borderBottom: `
|
|
93
|
+
borderBottom: `2px solid ${(theme.vars || theme).palette.text.primary}`,
|
|
98
94
|
// Reset on touch devices, it doesn't add specificity
|
|
99
95
|
'@media (hover: none)': {
|
|
100
96
|
borderBottom: `1px solid ${bottomLineColor}`
|
package/MenuItem/MenuItem.d.ts
CHANGED
package/MenuItem/MenuItem.js
CHANGED
|
@@ -242,7 +242,8 @@ process.env.NODE_ENV !== "production" ? MenuItem.propTypes /* remove-proptypes *
|
|
|
242
242
|
*/
|
|
243
243
|
role: PropTypes /* @typescript-to-proptypes-ignore */.string,
|
|
244
244
|
/**
|
|
245
|
-
*
|
|
245
|
+
* If `true`, the component is selected.
|
|
246
|
+
* @default false
|
|
246
247
|
*/
|
|
247
248
|
selected: PropTypes.bool,
|
|
248
249
|
/**
|
package/Modal/Modal.d.ts
CHANGED
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { SxProps } from '@mui/system';
|
|
3
3
|
import { OverrideProps } from '@mui/types';
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
ExtendModalUnstyled,
|
|
7
|
-
ModalUnstyledTypeMap,
|
|
8
|
-
} from '@mui/base/ModalUnstyled';
|
|
4
|
+
import { SlotComponentProps } from '@mui/base';
|
|
5
|
+
import { ModalUnstyledTypeMap } from '@mui/base/ModalUnstyled';
|
|
9
6
|
import { Theme } from '../styles';
|
|
10
|
-
import { BackdropProps } from '../Backdrop';
|
|
7
|
+
import Backdrop, { BackdropProps } from '../Backdrop';
|
|
8
|
+
import { OverridableComponent } from '../OverridableComponent';
|
|
11
9
|
|
|
12
|
-
export
|
|
10
|
+
export interface ModalComponentsPropsOverrides {}
|
|
11
|
+
|
|
12
|
+
export interface ModalOwnerState extends ModalProps {
|
|
13
|
+
exited: boolean;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface ModalTypeMap<D extends React.ElementType = 'div', P = {}> {
|
|
13
17
|
props: P & {
|
|
14
18
|
/**
|
|
15
19
|
* A backdrop component. This prop enables custom backdrop rendering.
|
|
@@ -52,20 +56,39 @@ export type ModalTypeMap<D extends React.ElementType = 'div', P = {}> = ExtendMo
|
|
|
52
56
|
*
|
|
53
57
|
* @default {}
|
|
54
58
|
*/
|
|
55
|
-
componentsProps?:
|
|
59
|
+
componentsProps?: {
|
|
60
|
+
root?: SlotComponentProps<'div', ModalComponentsPropsOverrides, ModalOwnerState>;
|
|
61
|
+
backdrop?: SlotComponentProps<
|
|
62
|
+
typeof Backdrop,
|
|
63
|
+
ModalComponentsPropsOverrides,
|
|
64
|
+
ModalOwnerState
|
|
65
|
+
>;
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* The props used for each slot inside the Modal.
|
|
69
|
+
* @default {}
|
|
70
|
+
*/
|
|
71
|
+
slotProps?: {
|
|
72
|
+
root?: SlotComponentProps<'div', ModalComponentsPropsOverrides, ModalOwnerState>;
|
|
73
|
+
backdrop?: SlotComponentProps<
|
|
74
|
+
typeof Backdrop,
|
|
75
|
+
ModalComponentsPropsOverrides,
|
|
76
|
+
ModalOwnerState
|
|
77
|
+
>;
|
|
78
|
+
};
|
|
56
79
|
/**
|
|
57
80
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
58
81
|
*/
|
|
59
82
|
sx?: SxProps<Theme>;
|
|
60
|
-
}
|
|
83
|
+
} & Omit<ModalUnstyledTypeMap['props'], 'slotProps'>;
|
|
61
84
|
defaultComponent: D;
|
|
62
|
-
}
|
|
85
|
+
}
|
|
63
86
|
|
|
64
87
|
type ModalRootProps = NonNullable<ModalTypeMap['props']['slotProps']>['root'];
|
|
65
88
|
|
|
66
89
|
export declare const ModalRoot: React.FC<ModalRootProps>;
|
|
67
90
|
|
|
68
|
-
export type ModalClassKey = keyof NonNullable<
|
|
91
|
+
export type ModalClassKey = keyof NonNullable<ModalProps['classes']>;
|
|
69
92
|
|
|
70
93
|
/**
|
|
71
94
|
* Modal is a lower-level construct that is leveraged by the following components:
|
|
@@ -88,7 +111,7 @@ export type ModalClassKey = keyof NonNullable<ModalTypeMap['props']['classes']>;
|
|
|
88
111
|
*
|
|
89
112
|
* - [Modal API](https://mui.com/material-ui/api/modal/)
|
|
90
113
|
*/
|
|
91
|
-
declare const Modal:
|
|
114
|
+
declare const Modal: OverridableComponent<ModalTypeMap>;
|
|
92
115
|
|
|
93
116
|
export type ModalClasses = Record<ModalClassKey, string>;
|
|
94
117
|
|
package/Tabs/Tabs.js
CHANGED
|
@@ -307,7 +307,9 @@ const Tabs = /*#__PURE__*/React.forwardRef(function Tabs(inProps, ref) {
|
|
|
307
307
|
}
|
|
308
308
|
tabMeta = tab ? tab.getBoundingClientRect() : null;
|
|
309
309
|
if (process.env.NODE_ENV !== 'production') {
|
|
310
|
-
if (process.env.NODE_ENV !== 'test' && !warnedOnceTabPresent && tabMeta && tabMeta.width === 0 && tabMeta.height === 0
|
|
310
|
+
if (process.env.NODE_ENV !== 'test' && !warnedOnceTabPresent && tabMeta && tabMeta.width === 0 && tabMeta.height === 0 &&
|
|
311
|
+
// if the whole Tabs component is hidden, don't warn
|
|
312
|
+
tabsMeta.clientWidth !== 0) {
|
|
311
313
|
tabsMeta = null;
|
|
312
314
|
console.error(['MUI: The `value` provided to the Tabs component is invalid.', `The Tab with this \`value\` ("${value}") is not part of the document layout.`, "Make sure the tab item is present in the document or that it's not `display: none`."].join('\n'));
|
|
313
315
|
warnedOnceTabPresent = true;
|
package/Tooltip/Tooltip.js
CHANGED
|
@@ -569,7 +569,6 @@ const Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip(inProps, ref) {
|
|
|
569
569
|
}) => /*#__PURE__*/_jsx(TransitionComponent, _extends({
|
|
570
570
|
timeout: theme.transitions.duration.shorter
|
|
571
571
|
}, TransitionPropsInner, transitionProps, {
|
|
572
|
-
"data-foo": "bar",
|
|
573
572
|
children: /*#__PURE__*/_jsxs(TooltipComponent, _extends({}, tooltipProps, {
|
|
574
573
|
children: [title, arrow ? /*#__PURE__*/_jsx(ArrowComponent, _extends({}, tooltipArrowProps, {
|
|
575
574
|
ref: setArrowRef
|
package/index.js
CHANGED
|
@@ -84,9 +84,6 @@ var FilledInputRoot = styled(InputBaseRoot, {
|
|
|
84
84
|
}), _defineProperty(_ref2, "&.".concat(filledInputClasses.error), {
|
|
85
85
|
'&:before, &:after': {
|
|
86
86
|
borderBottomColor: (theme.vars || theme).palette.error.main
|
|
87
|
-
},
|
|
88
|
-
'&:focus-within:after': {
|
|
89
|
-
transform: 'scaleX(1)' // error is always underlined in red
|
|
90
87
|
}
|
|
91
88
|
}), _defineProperty(_ref2, '&:before', {
|
|
92
89
|
borderBottom: "1px solid ".concat(theme.vars ? "rgba(".concat(theme.vars.palette.common.onBackgroundChannel, " / ").concat(theme.vars.opacity.inputUnderline, ")") : bottomLineColor),
|
package/legacy/Input/Input.js
CHANGED
|
@@ -70,9 +70,6 @@ var InputRoot = styled(InputBaseRoot, {
|
|
|
70
70
|
}), _defineProperty(_ref2, "&.".concat(inputClasses.error), {
|
|
71
71
|
'&:before, &:after': {
|
|
72
72
|
borderBottomColor: (theme.vars || theme).palette.error.main
|
|
73
|
-
},
|
|
74
|
-
'&:focus-within:after': {
|
|
75
|
-
transform: 'scaleX(1)' // error is always underlined in red
|
|
76
73
|
}
|
|
77
74
|
}), _defineProperty(_ref2, '&:before', {
|
|
78
75
|
borderBottom: "1px solid ".concat(bottomLineColor),
|
|
@@ -87,7 +84,7 @@ var InputRoot = styled(InputBaseRoot, {
|
|
|
87
84
|
}),
|
|
88
85
|
pointerEvents: 'none' // Transparent to the hover style.
|
|
89
86
|
}), _defineProperty(_ref2, "&:hover:not(.".concat(inputClasses.disabled, ", .").concat(inputClasses.error, "):before"), {
|
|
90
|
-
borderBottom: "
|
|
87
|
+
borderBottom: "2px solid ".concat((theme.vars || theme).palette.text.primary),
|
|
91
88
|
// Reset on touch devices, it doesn't add specificity
|
|
92
89
|
'@media (hover: none)': {
|
|
93
90
|
borderBottom: "1px solid ".concat(bottomLineColor)
|
|
@@ -234,7 +234,8 @@ process.env.NODE_ENV !== "production" ? MenuItem.propTypes /* remove-proptypes *
|
|
|
234
234
|
*/
|
|
235
235
|
role: PropTypes /* @typescript-to-proptypes-ignore */.string,
|
|
236
236
|
/**
|
|
237
|
-
*
|
|
237
|
+
* If `true`, the component is selected.
|
|
238
|
+
* @default false
|
|
238
239
|
*/
|
|
239
240
|
selected: PropTypes.bool,
|
|
240
241
|
/**
|
package/legacy/Tabs/Tabs.js
CHANGED
|
@@ -315,7 +315,9 @@ var Tabs = /*#__PURE__*/React.forwardRef(function Tabs(inProps, ref) {
|
|
|
315
315
|
}
|
|
316
316
|
tabMeta = tab ? tab.getBoundingClientRect() : null;
|
|
317
317
|
if (process.env.NODE_ENV !== 'production') {
|
|
318
|
-
if (process.env.NODE_ENV !== 'test' && !warnedOnceTabPresent && tabMeta && tabMeta.width === 0 && tabMeta.height === 0
|
|
318
|
+
if (process.env.NODE_ENV !== 'test' && !warnedOnceTabPresent && tabMeta && tabMeta.width === 0 && tabMeta.height === 0 &&
|
|
319
|
+
// if the whole Tabs component is hidden, don't warn
|
|
320
|
+
tabsMeta.clientWidth !== 0) {
|
|
319
321
|
tabsMeta = null;
|
|
320
322
|
console.error(['MUI: The `value` provided to the Tabs component is invalid.', "The Tab with this `value` (\"".concat(value, "\") is not part of the document layout."), "Make sure the tab item is present in the document or that it's not `display: none`."].join('\n'));
|
|
321
323
|
warnedOnceTabPresent = true;
|
|
@@ -584,7 +584,6 @@ var Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip(inProps, ref) {
|
|
|
584
584
|
return /*#__PURE__*/_jsx(TransitionComponent, _extends({
|
|
585
585
|
timeout: theme.transitions.duration.shorter
|
|
586
586
|
}, TransitionPropsInner, transitionProps, {
|
|
587
|
-
"data-foo": "bar",
|
|
588
587
|
children: /*#__PURE__*/_jsxs(TooltipComponent, _extends({}, tooltipProps, {
|
|
589
588
|
children: [title, arrow ? /*#__PURE__*/_jsx(ArrowComponent, _extends({}, tooltipArrowProps, {
|
|
590
589
|
ref: setArrowRef
|
package/legacy/index.js
CHANGED
|
@@ -89,12 +89,8 @@ const FilledInputRoot = styled(InputBaseRoot, {
|
|
|
89
89
|
[`&.${filledInputClasses.error}`]: {
|
|
90
90
|
'&:before, &:after': {
|
|
91
91
|
borderBottomColor: (theme.vars || theme).palette.error.main
|
|
92
|
-
},
|
|
93
|
-
'&:focus-within:after': {
|
|
94
|
-
transform: 'scaleX(1)' // error is always underlined in red
|
|
95
92
|
}
|
|
96
93
|
},
|
|
97
|
-
|
|
98
94
|
'&:before': {
|
|
99
95
|
borderBottom: `1px solid ${theme.vars ? `rgba(${theme.vars.palette.common.onBackgroundChannel} / ${theme.vars.opacity.inputUnderline})` : bottomLineColor}`,
|
|
100
96
|
left: 0,
|
package/modern/Input/Input.js
CHANGED
|
@@ -73,12 +73,8 @@ const InputRoot = styled(InputBaseRoot, {
|
|
|
73
73
|
[`&.${inputClasses.error}`]: {
|
|
74
74
|
'&:before, &:after': {
|
|
75
75
|
borderBottomColor: (theme.vars || theme).palette.error.main
|
|
76
|
-
},
|
|
77
|
-
'&:focus-within:after': {
|
|
78
|
-
transform: 'scaleX(1)' // error is always underlined in red
|
|
79
76
|
}
|
|
80
77
|
},
|
|
81
|
-
|
|
82
78
|
'&:before': {
|
|
83
79
|
borderBottom: `1px solid ${bottomLineColor}`,
|
|
84
80
|
left: 0,
|
|
@@ -94,7 +90,7 @@ const InputRoot = styled(InputBaseRoot, {
|
|
|
94
90
|
},
|
|
95
91
|
|
|
96
92
|
[`&:hover:not(.${inputClasses.disabled}, .${inputClasses.error}):before`]: {
|
|
97
|
-
borderBottom: `
|
|
93
|
+
borderBottom: `2px solid ${(theme.vars || theme).palette.text.primary}`,
|
|
98
94
|
// Reset on touch devices, it doesn't add specificity
|
|
99
95
|
'@media (hover: none)': {
|
|
100
96
|
borderBottom: `1px solid ${bottomLineColor}`
|
|
@@ -242,7 +242,8 @@ process.env.NODE_ENV !== "production" ? MenuItem.propTypes /* remove-proptypes *
|
|
|
242
242
|
*/
|
|
243
243
|
role: PropTypes /* @typescript-to-proptypes-ignore */.string,
|
|
244
244
|
/**
|
|
245
|
-
*
|
|
245
|
+
* If `true`, the component is selected.
|
|
246
|
+
* @default false
|
|
246
247
|
*/
|
|
247
248
|
selected: PropTypes.bool,
|
|
248
249
|
/**
|
package/modern/Tabs/Tabs.js
CHANGED
|
@@ -307,7 +307,9 @@ const Tabs = /*#__PURE__*/React.forwardRef(function Tabs(inProps, ref) {
|
|
|
307
307
|
}
|
|
308
308
|
tabMeta = tab ? tab.getBoundingClientRect() : null;
|
|
309
309
|
if (process.env.NODE_ENV !== 'production') {
|
|
310
|
-
if (process.env.NODE_ENV !== 'test' && !warnedOnceTabPresent && tabMeta && tabMeta.width === 0 && tabMeta.height === 0
|
|
310
|
+
if (process.env.NODE_ENV !== 'test' && !warnedOnceTabPresent && tabMeta && tabMeta.width === 0 && tabMeta.height === 0 &&
|
|
311
|
+
// if the whole Tabs component is hidden, don't warn
|
|
312
|
+
tabsMeta.clientWidth !== 0) {
|
|
311
313
|
tabsMeta = null;
|
|
312
314
|
console.error(['MUI: The `value` provided to the Tabs component is invalid.', `The Tab with this \`value\` ("${value}") is not part of the document layout.`, "Make sure the tab item is present in the document or that it's not `display: none`."].join('\n'));
|
|
313
315
|
warnedOnceTabPresent = true;
|
|
@@ -567,7 +567,6 @@ const Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip(inProps, ref) {
|
|
|
567
567
|
}) => /*#__PURE__*/_jsx(TransitionComponent, _extends({
|
|
568
568
|
timeout: theme.transitions.duration.shorter
|
|
569
569
|
}, TransitionPropsInner, transitionProps, {
|
|
570
|
-
"data-foo": "bar",
|
|
571
570
|
children: /*#__PURE__*/_jsxs(TooltipComponent, _extends({}, tooltipProps, {
|
|
572
571
|
children: [title, arrow ? /*#__PURE__*/_jsx(ArrowComponent, _extends({}, tooltipArrowProps, {
|
|
573
572
|
ref: setArrowRef
|
package/modern/index.js
CHANGED
|
@@ -99,12 +99,8 @@ const FilledInputRoot = (0, _styled.default)(_InputBase2.InputBaseRoot, {
|
|
|
99
99
|
[`&.${_filledInputClasses.default.error}`]: {
|
|
100
100
|
'&:before, &:after': {
|
|
101
101
|
borderBottomColor: (theme.vars || theme).palette.error.main
|
|
102
|
-
},
|
|
103
|
-
'&:focus-within:after': {
|
|
104
|
-
transform: 'scaleX(1)' // error is always underlined in red
|
|
105
102
|
}
|
|
106
103
|
},
|
|
107
|
-
|
|
108
104
|
'&:before': {
|
|
109
105
|
borderBottom: `1px solid ${theme.vars ? `rgba(${theme.vars.palette.common.onBackgroundChannel} / ${theme.vars.opacity.inputUnderline})` : bottomLineColor}`,
|
|
110
106
|
left: 0,
|
package/node/Input/Input.js
CHANGED
|
@@ -82,12 +82,8 @@ const InputRoot = (0, _styled.default)(_InputBase2.InputBaseRoot, {
|
|
|
82
82
|
[`&.${_inputClasses.default.error}`]: {
|
|
83
83
|
'&:before, &:after': {
|
|
84
84
|
borderBottomColor: (theme.vars || theme).palette.error.main
|
|
85
|
-
},
|
|
86
|
-
'&:focus-within:after': {
|
|
87
|
-
transform: 'scaleX(1)' // error is always underlined in red
|
|
88
85
|
}
|
|
89
86
|
},
|
|
90
|
-
|
|
91
87
|
'&:before': {
|
|
92
88
|
borderBottom: `1px solid ${bottomLineColor}`,
|
|
93
89
|
left: 0,
|
|
@@ -103,7 +99,7 @@ const InputRoot = (0, _styled.default)(_InputBase2.InputBaseRoot, {
|
|
|
103
99
|
},
|
|
104
100
|
|
|
105
101
|
[`&:hover:not(.${_inputClasses.default.disabled}, .${_inputClasses.default.error}):before`]: {
|
|
106
|
-
borderBottom: `
|
|
102
|
+
borderBottom: `2px solid ${(theme.vars || theme).palette.text.primary}`,
|
|
107
103
|
// Reset on touch devices, it doesn't add specificity
|
|
108
104
|
'@media (hover: none)': {
|
|
109
105
|
borderBottom: `1px solid ${bottomLineColor}`
|
|
@@ -252,7 +252,8 @@ process.env.NODE_ENV !== "production" ? MenuItem.propTypes /* remove-proptypes *
|
|
|
252
252
|
*/
|
|
253
253
|
role: _propTypes.default /* @typescript-to-proptypes-ignore */.string,
|
|
254
254
|
/**
|
|
255
|
-
*
|
|
255
|
+
* If `true`, the component is selected.
|
|
256
|
+
* @default false
|
|
256
257
|
*/
|
|
257
258
|
selected: _propTypes.default.bool,
|
|
258
259
|
/**
|
package/node/Tabs/Tabs.js
CHANGED
|
@@ -315,7 +315,9 @@ const Tabs = /*#__PURE__*/React.forwardRef(function Tabs(inProps, ref) {
|
|
|
315
315
|
}
|
|
316
316
|
tabMeta = tab ? tab.getBoundingClientRect() : null;
|
|
317
317
|
if (process.env.NODE_ENV !== 'production') {
|
|
318
|
-
if (process.env.NODE_ENV !== 'test' && !warnedOnceTabPresent && tabMeta && tabMeta.width === 0 && tabMeta.height === 0
|
|
318
|
+
if (process.env.NODE_ENV !== 'test' && !warnedOnceTabPresent && tabMeta && tabMeta.width === 0 && tabMeta.height === 0 &&
|
|
319
|
+
// if the whole Tabs component is hidden, don't warn
|
|
320
|
+
tabsMeta.clientWidth !== 0) {
|
|
319
321
|
tabsMeta = null;
|
|
320
322
|
console.error(['MUI: The `value` provided to the Tabs component is invalid.', `The Tab with this \`value\` ("${value}") is not part of the document layout.`, "Make sure the tab item is present in the document or that it's not `display: none`."].join('\n'));
|
|
321
323
|
warnedOnceTabPresent = true;
|
package/node/Tooltip/Tooltip.js
CHANGED
|
@@ -578,7 +578,6 @@ const Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip(inProps, ref) {
|
|
|
578
578
|
}) => /*#__PURE__*/(0, _jsxRuntime.jsx)(TransitionComponent, (0, _extends2.default)({
|
|
579
579
|
timeout: theme.transitions.duration.shorter
|
|
580
580
|
}, TransitionPropsInner, transitionProps, {
|
|
581
|
-
"data-foo": "bar",
|
|
582
581
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(TooltipComponent, (0, _extends2.default)({}, tooltipProps, {
|
|
583
582
|
children: [title, arrow ? /*#__PURE__*/(0, _jsxRuntime.jsx)(ArrowComponent, (0, _extends2.default)({}, tooltipArrowProps, {
|
|
584
583
|
ref: setArrowRef
|
package/node/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/material",
|
|
3
|
-
"version": "5.11.
|
|
3
|
+
"version": "5.11.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"description": "React components that implement Google's Material Design.",
|
|
@@ -46,9 +46,9 @@
|
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@babel/runtime": "^7.20.7",
|
|
49
|
-
"@mui/base": "5.0.0-alpha.
|
|
50
|
-
"@mui/core-downloads-tracker": "^5.11.
|
|
51
|
-
"@mui/system": "^5.11.
|
|
49
|
+
"@mui/base": "5.0.0-alpha.113",
|
|
50
|
+
"@mui/core-downloads-tracker": "^5.11.4",
|
|
51
|
+
"@mui/system": "^5.11.4",
|
|
52
52
|
"@mui/types": "^7.2.3",
|
|
53
53
|
"@mui/utils": "^5.11.2",
|
|
54
54
|
"@types/react-transition-group": "^4.4.5",
|