@mui/material 7.0.0-alpha.1 → 7.0.0-alpha.2
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/Accordion/Accordion.d.ts +12 -6
- package/Backdrop/Backdrop.d.ts +12 -6
- package/Button/Button.js +3 -3
- package/CHANGELOG.md +31 -0
- package/Dialog/Dialog.d.ts +2 -2
- package/IconButton/IconButton.js +3 -3
- package/InputBase/inputBaseClasses.d.ts +15 -6
- package/InputLabel/InputLabel.d.ts +2 -2
- package/InputLabel/InputLabel.js +3 -3
- package/Popover/Popover.d.ts +1 -1
- package/Snackbar/Snackbar.d.ts +2 -2
- package/SpeedDial/SpeedDial.d.ts +8 -6
- package/StepContent/StepContent.d.ts +2 -2
- package/Tooltip/Tooltip.d.ts +19 -3
- package/esm/Accordion/Accordion.d.ts +12 -6
- package/esm/Backdrop/Backdrop.d.ts +12 -6
- package/esm/Button/Button.js +3 -3
- package/esm/Dialog/Dialog.d.ts +2 -2
- package/esm/IconButton/IconButton.js +3 -3
- package/esm/InputBase/inputBaseClasses.d.ts +15 -6
- package/esm/InputLabel/InputLabel.d.ts +2 -2
- package/esm/InputLabel/InputLabel.js +3 -3
- package/esm/Popover/Popover.d.ts +1 -1
- package/esm/Snackbar/Snackbar.d.ts +2 -2
- package/esm/SpeedDial/SpeedDial.d.ts +8 -6
- package/esm/StepContent/StepContent.d.ts +2 -2
- package/esm/Tooltip/Tooltip.d.ts +19 -3
- package/esm/index.d.ts +0 -2
- package/esm/index.js +1 -3
- package/esm/useAutocomplete/useAutocomplete.js +0 -1
- package/esm/utils/mergeSlotProps.d.ts +1 -1
- package/esm/version/index.js +2 -2
- package/index.d.ts +0 -2
- package/index.js +1 -20
- package/modern/Accordion/Accordion.d.ts +12 -6
- package/modern/Backdrop/Backdrop.d.ts +12 -6
- package/modern/Button/Button.js +3 -3
- package/modern/Dialog/Dialog.d.ts +2 -2
- package/modern/IconButton/IconButton.js +3 -3
- package/modern/InputBase/inputBaseClasses.d.ts +15 -6
- package/modern/InputLabel/InputLabel.d.ts +2 -2
- package/modern/InputLabel/InputLabel.js +3 -3
- package/modern/Popover/Popover.d.ts +1 -1
- package/modern/Snackbar/Snackbar.d.ts +2 -2
- package/modern/SpeedDial/SpeedDial.d.ts +8 -6
- package/modern/StepContent/StepContent.d.ts +2 -2
- package/modern/Tooltip/Tooltip.d.ts +19 -3
- package/modern/index.d.ts +0 -2
- package/modern/index.js +1 -3
- package/modern/useAutocomplete/useAutocomplete.js +0 -1
- package/modern/utils/mergeSlotProps.d.ts +1 -1
- package/modern/version/index.js +2 -2
- package/package.json +9 -7
- package/tsconfig.build.tsbuildinfo +1 -1
- package/useAutocomplete/useAutocomplete.js +0 -1
- package/utils/mergeSlotProps.d.ts +1 -1
- package/version/index.js +2 -2
- package/Hidden/Hidden.d.ts +0 -96
- package/Hidden/Hidden.js +0 -145
- package/Hidden/HiddenCss.d.ts +0 -17
- package/Hidden/HiddenCss.js +0 -189
- package/Hidden/HiddenJs.d.ts +0 -18
- package/Hidden/HiddenJs.js +0 -127
- package/Hidden/hiddenCssClasses.d.ts +0 -3
- package/Hidden/hiddenCssClasses.js +0 -15
- package/Hidden/index.d.ts +0 -2
- package/Hidden/index.js +0 -13
- package/Hidden/withWidth.d.ts +0 -17
- package/Hidden/withWidth.js +0 -118
- package/PigmentHidden/PigmentHidden.d.ts +0 -100
- package/PigmentHidden/PigmentHidden.js +0 -287
- package/PigmentHidden/index.d.ts +0 -2
- package/PigmentHidden/index.js +0 -25
- package/esm/Hidden/Hidden.d.ts +0 -96
- package/esm/Hidden/Hidden.js +0 -140
- package/esm/Hidden/HiddenCss.d.ts +0 -17
- package/esm/Hidden/HiddenCss.js +0 -182
- package/esm/Hidden/HiddenJs.d.ts +0 -18
- package/esm/Hidden/HiddenJs.js +0 -121
- package/esm/Hidden/hiddenCssClasses.d.ts +0 -3
- package/esm/Hidden/hiddenCssClasses.js +0 -7
- package/esm/Hidden/index.d.ts +0 -2
- package/esm/Hidden/index.js +0 -1
- package/esm/Hidden/withWidth.d.ts +0 -17
- package/esm/Hidden/withWidth.js +0 -109
- package/esm/PigmentHidden/PigmentHidden.d.ts +0 -100
- package/esm/PigmentHidden/PigmentHidden.js +0 -279
- package/esm/PigmentHidden/index.d.ts +0 -2
- package/esm/PigmentHidden/index.js +0 -2
- package/modern/Hidden/Hidden.d.ts +0 -96
- package/modern/Hidden/Hidden.js +0 -140
- package/modern/Hidden/HiddenCss.d.ts +0 -17
- package/modern/Hidden/HiddenCss.js +0 -182
- package/modern/Hidden/HiddenJs.d.ts +0 -18
- package/modern/Hidden/HiddenJs.js +0 -121
- package/modern/Hidden/hiddenCssClasses.d.ts +0 -3
- package/modern/Hidden/hiddenCssClasses.js +0 -7
- package/modern/Hidden/index.d.ts +0 -2
- package/modern/Hidden/index.js +0 -1
- package/modern/Hidden/withWidth.d.ts +0 -17
- package/modern/Hidden/withWidth.js +0 -109
- package/modern/PigmentHidden/PigmentHidden.d.ts +0 -100
- package/modern/PigmentHidden/PigmentHidden.js +0 -279
- package/modern/PigmentHidden/index.d.ts +0 -2
- package/modern/PigmentHidden/index.js +0 -2
package/esm/Tooltip/Tooltip.d.ts
CHANGED
|
@@ -32,10 +32,26 @@ export interface TooltipSlots {
|
|
|
32
32
|
arrow: React.ElementType;
|
|
33
33
|
}
|
|
34
34
|
export type TooltipSlotsAndSlotProps = CreateSlotsAndSlotProps<TooltipSlots, {
|
|
35
|
+
/**
|
|
36
|
+
* Props forwarded to the popper slot.
|
|
37
|
+
* By default, the avaible props are based on the [Popper](https://mui.com/material-ui/api/popper/#props) component.
|
|
38
|
+
*/
|
|
35
39
|
popper: SlotProps<React.ElementType<PopperProps>, TooltipPopperSlotPropsOverrides, TooltipOwnerState>;
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
40
|
+
/**
|
|
41
|
+
* Props forwarded to the transition slot.
|
|
42
|
+
* By default, the avaible props are based on the [Grow](https://mui.com/material-ui/api/grow/#props) component.
|
|
43
|
+
*/
|
|
44
|
+
transition: SlotProps<React.ElementType, TransitionProps & TooltipTransitionSlotPropsOverrides, TooltipOwnerState>;
|
|
45
|
+
/**
|
|
46
|
+
* Props forwarded to the tooltip slot.
|
|
47
|
+
* By default, the avaible props are based on the div element.
|
|
48
|
+
*/
|
|
49
|
+
tooltip: SlotProps<'div', TooltipTooltipSlotPropsOverrides, TooltipOwnerState>;
|
|
50
|
+
/**
|
|
51
|
+
* Props forwarded to the tooltip slot.
|
|
52
|
+
* By default, the avaible props are based on the span element.
|
|
53
|
+
*/
|
|
54
|
+
arrow: SlotProps<'span', TooltipArrowSlotPropsOverrides, TooltipOwnerState>;
|
|
39
55
|
}>;
|
|
40
56
|
export interface TooltipProps extends StandardProps<React.HTMLAttributes<HTMLDivElement>, 'title'>, TooltipSlotsAndSlotProps {
|
|
41
57
|
/**
|
package/esm/index.d.ts
CHANGED
|
@@ -153,8 +153,6 @@ export { default as Grid2 } from "./Grid2/index.js";
|
|
|
153
153
|
export * from "./Grid2/index.js";
|
|
154
154
|
export { default as Grow } from "./Grow/index.js";
|
|
155
155
|
export * from "./Grow/index.js";
|
|
156
|
-
export { default as Hidden } from "./Hidden/index.js";
|
|
157
|
-
export * from "./Hidden/index.js";
|
|
158
156
|
export { default as Icon } from "./Icon/index.js";
|
|
159
157
|
export * from "./Icon/index.js";
|
|
160
158
|
export { default as IconButton } from "./IconButton/index.js";
|
package/esm/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @mui/material v7.0.0-alpha.
|
|
2
|
+
* @mui/material v7.0.0-alpha.2
|
|
3
3
|
*
|
|
4
4
|
* @license MIT
|
|
5
5
|
* This source code is licensed under the MIT license found in the
|
|
@@ -113,8 +113,6 @@ export { default as Grid2 } from "./Grid2/index.js";
|
|
|
113
113
|
export * from "./Grid2/index.js";
|
|
114
114
|
export { default as Grow } from "./Grow/index.js";
|
|
115
115
|
export * from "./Grow/index.js";
|
|
116
|
-
export { default as Hidden } from "./Hidden/index.js";
|
|
117
|
-
export * from "./Hidden/index.js";
|
|
118
116
|
export { default as Icon } from "./Icon/index.js";
|
|
119
117
|
export * from "./Icon/index.js";
|
|
120
118
|
export { default as IconButton } from "./IconButton/index.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { SlotComponentProps } from '@mui/utils';
|
|
2
|
-
export default function mergeSlotProps<T extends SlotComponentProps<React.ElementType, {}, {}>, K = T, U = T extends Function ? T : K extends Function ? K : T extends undefined ? K : T>(externalSlotProps: T | undefined, defaultSlotProps: K): U;
|
|
2
|
+
export default function mergeSlotProps<T extends SlotComponentProps<React.ElementType, {}, {}>, K = T, U = (T extends Function ? T : K extends Function ? K : T extends undefined ? K : T)>(externalSlotProps: T | undefined, defaultSlotProps: K): U;
|
package/esm/version/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export const version = "7.0.0-alpha.
|
|
1
|
+
export const version = "7.0.0-alpha.2";
|
|
2
2
|
export const major = Number("7");
|
|
3
3
|
export const minor = Number("0");
|
|
4
4
|
export const patch = Number("0");
|
|
5
|
-
export const prerelease = "alpha.
|
|
5
|
+
export const prerelease = "alpha.2";
|
|
6
6
|
export default version;
|
package/index.d.ts
CHANGED
|
@@ -153,8 +153,6 @@ export { default as Grid2 } from "./Grid2/index.js";
|
|
|
153
153
|
export * from "./Grid2/index.js";
|
|
154
154
|
export { default as Grow } from "./Grow/index.js";
|
|
155
155
|
export * from "./Grow/index.js";
|
|
156
|
-
export { default as Hidden } from "./Hidden/index.js";
|
|
157
|
-
export * from "./Hidden/index.js";
|
|
158
156
|
export { default as Icon } from "./Icon/index.js";
|
|
159
157
|
export * from "./Icon/index.js";
|
|
160
158
|
export { default as IconButton } from "./IconButton/index.js";
|
package/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @mui/material v7.0.0-alpha.
|
|
2
|
+
* @mui/material v7.0.0-alpha.2
|
|
3
3
|
*
|
|
4
4
|
* @license MIT
|
|
5
5
|
* This source code is licensed under the MIT license found in the
|
|
@@ -65,7 +65,6 @@ var _exportNames = {
|
|
|
65
65
|
Grid: true,
|
|
66
66
|
Grid2: true,
|
|
67
67
|
Grow: true,
|
|
68
|
-
Hidden: true,
|
|
69
68
|
Icon: true,
|
|
70
69
|
IconButton: true,
|
|
71
70
|
ImageList: true,
|
|
@@ -459,12 +458,6 @@ Object.defineProperty(exports, "Grow", {
|
|
|
459
458
|
return _Grow.default;
|
|
460
459
|
}
|
|
461
460
|
});
|
|
462
|
-
Object.defineProperty(exports, "Hidden", {
|
|
463
|
-
enumerable: true,
|
|
464
|
-
get: function () {
|
|
465
|
-
return _Hidden.default;
|
|
466
|
-
}
|
|
467
|
-
});
|
|
468
461
|
Object.defineProperty(exports, "Icon", {
|
|
469
462
|
enumerable: true,
|
|
470
463
|
get: function () {
|
|
@@ -1609,18 +1602,6 @@ Object.keys(_Grow).forEach(function (key) {
|
|
|
1609
1602
|
}
|
|
1610
1603
|
});
|
|
1611
1604
|
});
|
|
1612
|
-
var _Hidden = _interopRequireWildcard(require("./Hidden"));
|
|
1613
|
-
Object.keys(_Hidden).forEach(function (key) {
|
|
1614
|
-
if (key === "default" || key === "__esModule") return;
|
|
1615
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
1616
|
-
if (key in exports && exports[key] === _Hidden[key]) return;
|
|
1617
|
-
Object.defineProperty(exports, key, {
|
|
1618
|
-
enumerable: true,
|
|
1619
|
-
get: function () {
|
|
1620
|
-
return _Hidden[key];
|
|
1621
|
-
}
|
|
1622
|
-
});
|
|
1623
|
-
});
|
|
1624
1605
|
var _Icon = _interopRequireWildcard(require("./Icon"));
|
|
1625
1606
|
Object.keys(_Icon).forEach(function (key) {
|
|
1626
1607
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -5,7 +5,7 @@ import { TransitionProps } from "../transitions/transition.js";
|
|
|
5
5
|
import { AccordionClasses } from "./accordionClasses.js";
|
|
6
6
|
import { OverridableComponent, OverrideProps } from "../OverridableComponent/index.js";
|
|
7
7
|
import { ExtendPaperTypeMap } from "../Paper/Paper.js";
|
|
8
|
-
import { CreateSlotsAndSlotProps, SlotProps } from "../utils/types.js";
|
|
8
|
+
import { CreateSlotsAndSlotProps, SlotComponentProps, SlotProps } from "../utils/types.js";
|
|
9
9
|
export interface AccordionSlots {
|
|
10
10
|
/**
|
|
11
11
|
* The component that renders the heading.
|
|
@@ -17,15 +17,21 @@ export interface AccordionSlots {
|
|
|
17
17
|
* [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
|
|
18
18
|
* @default Collapse
|
|
19
19
|
*/
|
|
20
|
-
transition: React.
|
|
21
|
-
children?: React.ReactElement<unknown, any>;
|
|
22
|
-
}>;
|
|
20
|
+
transition: React.ElementType;
|
|
23
21
|
}
|
|
24
22
|
export interface AccordionTransitionSlotPropsOverrides {}
|
|
25
23
|
export interface AccordionHeadingSlotPropsOverrides {}
|
|
26
24
|
export type AccordionSlotsAndSlotProps = CreateSlotsAndSlotProps<AccordionSlots, {
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
/**
|
|
26
|
+
* Props forwarded to the heading slot.
|
|
27
|
+
* By default, the avaible props are based on the h3 element.
|
|
28
|
+
*/
|
|
29
|
+
heading: SlotProps<'h3', AccordionHeadingSlotPropsOverrides, AccordionOwnerState>;
|
|
30
|
+
/**
|
|
31
|
+
* Props forwarded to the transition slot.
|
|
32
|
+
* By default, the avaible props are based on the [Collapse](https://mui.com/material-ui/api/collapse/#props) component.
|
|
33
|
+
*/
|
|
34
|
+
transition: SlotComponentProps<React.ElementType, TransitionProps & AccordionTransitionSlotPropsOverrides, AccordionOwnerState>;
|
|
29
35
|
}>;
|
|
30
36
|
export type AccordionTypeMap<AdditionalProps = {}, RootComponent extends React.ElementType = 'div'> = ExtendPaperTypeMap<{
|
|
31
37
|
props: AdditionalProps & {
|
|
@@ -5,7 +5,7 @@ import { TransitionProps } from "../transitions/transition.js";
|
|
|
5
5
|
import { Theme } from "../styles/index.js";
|
|
6
6
|
import { BackdropClasses } from "./backdropClasses.js";
|
|
7
7
|
import { OverridableComponent, OverrideProps } from "../OverridableComponent/index.js";
|
|
8
|
-
import { CreateSlotsAndSlotProps, SlotProps } from "../utils/types.js";
|
|
8
|
+
import { CreateSlotsAndSlotProps, SlotComponentProps, SlotProps } from "../utils/types.js";
|
|
9
9
|
export interface BackdropSlots {
|
|
10
10
|
/**
|
|
11
11
|
* The component that renders the root.
|
|
@@ -17,15 +17,21 @@ export interface BackdropSlots {
|
|
|
17
17
|
* [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
|
|
18
18
|
* @default Fade
|
|
19
19
|
*/
|
|
20
|
-
transition: React.
|
|
21
|
-
children: React.ReactElement<unknown, any>;
|
|
22
|
-
}>;
|
|
20
|
+
transition: React.ElementType;
|
|
23
21
|
}
|
|
24
22
|
export interface BackdropComponentsPropsOverrides {}
|
|
25
23
|
export interface BackdropTransitionSlotPropsOverrides {}
|
|
26
24
|
export type BackdropSlotsAndSlotProps = CreateSlotsAndSlotProps<BackdropSlots, {
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
/**
|
|
26
|
+
* Props forwarded to the transition slot.
|
|
27
|
+
* By default, the avaible props are based on the div element.
|
|
28
|
+
*/
|
|
29
|
+
root: SlotProps<'div', BackdropComponentsPropsOverrides, BackdropOwnerState>;
|
|
30
|
+
/**
|
|
31
|
+
* Props forwarded to the transition slot.
|
|
32
|
+
* By default, the avaible props are based on the [Fade](https://mui.com/material-ui/api/fade/#props) component.
|
|
33
|
+
*/
|
|
34
|
+
transition: SlotComponentProps<React.ElementType, TransitionProps & BackdropTransitionSlotPropsOverrides, BackdropOwnerState>;
|
|
29
35
|
}>;
|
|
30
36
|
export interface BackdropOwnProps extends Partial<Omit<FadeProps, 'children'>>, BackdropSlotsAndSlotProps {
|
|
31
37
|
/**
|
package/modern/Button/Button.js
CHANGED
|
@@ -501,9 +501,9 @@ const Button = /*#__PURE__*/React.forwardRef(function Button(inProps, ref) {
|
|
|
501
501
|
variant = 'text',
|
|
502
502
|
...other
|
|
503
503
|
} = props;
|
|
504
|
-
const
|
|
504
|
+
const loadingId = useId(idProp);
|
|
505
505
|
const loadingIndicator = loadingIndicatorProp ?? /*#__PURE__*/_jsx(CircularProgress, {
|
|
506
|
-
"aria-labelledby":
|
|
506
|
+
"aria-labelledby": loadingId,
|
|
507
507
|
color: "inherit",
|
|
508
508
|
size: 16
|
|
509
509
|
});
|
|
@@ -563,7 +563,7 @@ const Button = /*#__PURE__*/React.forwardRef(function Button(inProps, ref) {
|
|
|
563
563
|
focusVisibleClassName: clsx(classes.focusVisible, focusVisibleClassName),
|
|
564
564
|
ref: ref,
|
|
565
565
|
type: type,
|
|
566
|
-
id:
|
|
566
|
+
id: loading ? loadingId : idProp,
|
|
567
567
|
...other,
|
|
568
568
|
classes: classes,
|
|
569
569
|
children: [startIcon, loadingPosition !== 'end' && loader, children, loadingPosition === 'end' && loader, endIcon]
|
|
@@ -6,7 +6,7 @@ import { PaperProps } from "../Paper/index.js";
|
|
|
6
6
|
import { ModalProps } from "../Modal/index.js";
|
|
7
7
|
import { TransitionProps } from "../transitions/transition.js";
|
|
8
8
|
import { DialogClasses } from "./dialogClasses.js";
|
|
9
|
-
import { CreateSlotsAndSlotProps, SlotProps } from "../utils/types.js";
|
|
9
|
+
import { CreateSlotsAndSlotProps, SlotComponentProps, SlotProps } from "../utils/types.js";
|
|
10
10
|
export interface DialogSlots {
|
|
11
11
|
/**
|
|
12
12
|
* The component that renders the transition.
|
|
@@ -57,7 +57,7 @@ export type DialogSlotsAndSlotProps = CreateSlotsAndSlotProps<DialogSlots, {
|
|
|
57
57
|
* Props forwarded to the transition slot.
|
|
58
58
|
* By default, the avaible props are based on the [Fade](https://mui.com/material-ui/api/fade/#props) component.
|
|
59
59
|
*/
|
|
60
|
-
transition:
|
|
60
|
+
transition: SlotComponentProps<React.ElementType, TransitionProps & DialogTransitionSlotPropsOverrides, DialogOwnerState>;
|
|
61
61
|
/**
|
|
62
62
|
* Props forwarded to the paper slot.
|
|
63
63
|
* By default, the avaible props are based on the [Paper](https://mui.com/material-ui/api/paper/#props) component.
|
|
@@ -193,9 +193,9 @@ const IconButton = /*#__PURE__*/React.forwardRef(function IconButton(inProps, re
|
|
|
193
193
|
loadingIndicator: loadingIndicatorProp,
|
|
194
194
|
...other
|
|
195
195
|
} = props;
|
|
196
|
-
const
|
|
196
|
+
const loadingId = useId(idProp);
|
|
197
197
|
const loadingIndicator = loadingIndicatorProp ?? /*#__PURE__*/_jsx(CircularProgress, {
|
|
198
|
-
"aria-labelledby":
|
|
198
|
+
"aria-labelledby": loadingId,
|
|
199
199
|
color: "inherit",
|
|
200
200
|
size: 16
|
|
201
201
|
});
|
|
@@ -211,7 +211,7 @@ const IconButton = /*#__PURE__*/React.forwardRef(function IconButton(inProps, re
|
|
|
211
211
|
};
|
|
212
212
|
const classes = useUtilityClasses(ownerState);
|
|
213
213
|
return /*#__PURE__*/_jsxs(IconButtonRoot, {
|
|
214
|
-
id:
|
|
214
|
+
id: loading ? loadingId : idProp,
|
|
215
215
|
className: clsx(classes.root, className),
|
|
216
216
|
centerRipple: true,
|
|
217
217
|
focusRipple: !disableFocusRipple,
|
|
@@ -27,17 +27,26 @@ export interface InputBaseClasses {
|
|
|
27
27
|
readOnly: string;
|
|
28
28
|
/** Styles applied to the input element. */
|
|
29
29
|
input: string;
|
|
30
|
-
/** Styles applied to the input element if `size="small"`.
|
|
30
|
+
/** Styles applied to the input element if `size="small"`.
|
|
31
|
+
* @deprecated Combine the [.MuiInputBase-input](/material-ui/api/input-base/#inputbase-classes-input) and [.MuiInputBase-sizeSmall](/material-ui/api/input-base/#inputbase-classes-sizeSmall) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
32
|
+
*/
|
|
31
33
|
inputSizeSmall: string;
|
|
32
|
-
/** Styles applied to the input element if `multiline={true}`.
|
|
34
|
+
/** Styles applied to the input element if `multiline={true}`.
|
|
35
|
+
* @deprecated Combine the [.MuiInputBase-input](/material-ui/api/input-base/#inputbase-classes-input) and [.MuiInputBase-multiline](/material-ui/api/input-base/#inputbase-classes-multiline) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
36
|
+
*/
|
|
33
37
|
inputMultiline: string;
|
|
34
|
-
/** Styles applied to the input element if `type="search"`. */
|
|
35
38
|
inputTypeSearch: string;
|
|
36
|
-
/** Styles applied to the input element if `startAdornment` is provided.
|
|
39
|
+
/** Styles applied to the input element if `startAdornment` is provided.
|
|
40
|
+
* @deprecated Combine the [.MuiInputBase-input](/material-ui/api/input-base/#inputbase-classes-input) and [.MuiInputBase-adornedStart](/material-ui/api/input-base/#inputbase-classes-adornedStart) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
41
|
+
*/
|
|
37
42
|
inputAdornedStart: string;
|
|
38
|
-
/** Styles applied to the input element if `endAdornment` is provided.
|
|
43
|
+
/** Styles applied to the input element if `endAdornment` is provided.
|
|
44
|
+
* @deprecated Combine the [.MuiInputBase-input](/material-ui/api/input-base/#inputbase-classes-input) and [.MuiInputBase-adornedEnd](/material-ui/api/input-base/#inputbase-classes-adornedEnd) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
45
|
+
*/
|
|
39
46
|
inputAdornedEnd: string;
|
|
40
|
-
/** Styles applied to the input element if `hiddenLabel={true}`.
|
|
47
|
+
/** Styles applied to the input element if `hiddenLabel={true}`.
|
|
48
|
+
* @deprecated Combine the [.MuiInputBase-input](/material-ui/api/input-base/#inputbase-classes-input) and [.MuiInputBase-hiddenLabel](/material-ui/api/input-base/#inputbase-classes-hiddenLabel) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
49
|
+
*/
|
|
41
50
|
inputHiddenLabel: string;
|
|
42
51
|
}
|
|
43
52
|
export type InputBaseClassKey = keyof InputBaseClasses;
|
|
@@ -44,9 +44,9 @@ export interface InputLabelOwnProps extends Pick<FormLabelProps, 'children'> {
|
|
|
44
44
|
shrink?: boolean;
|
|
45
45
|
/**
|
|
46
46
|
* The size of the component.
|
|
47
|
-
* @default '
|
|
47
|
+
* @default 'medium'
|
|
48
48
|
*/
|
|
49
|
-
size?: OverridableStringUnion<'small' | '
|
|
49
|
+
size?: OverridableStringUnion<'small' | 'medium', InputLabelPropsSizeOverrides>;
|
|
50
50
|
/**
|
|
51
51
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
52
52
|
*/
|
|
@@ -25,7 +25,7 @@ const useUtilityClasses = ownerState => {
|
|
|
25
25
|
required
|
|
26
26
|
} = ownerState;
|
|
27
27
|
const slots = {
|
|
28
|
-
root: ['root', formControl && 'formControl', !disableAnimation && 'animated', shrink && 'shrink', size && size !== '
|
|
28
|
+
root: ['root', formControl && 'formControl', !disableAnimation && 'animated', shrink && 'shrink', size && size !== 'medium' && `size${capitalize(size)}`, variant],
|
|
29
29
|
asterisk: [required && 'asterisk']
|
|
30
30
|
};
|
|
31
31
|
const composedClasses = composeClasses(slots, getInputLabelUtilityClasses, classes);
|
|
@@ -268,9 +268,9 @@ process.env.NODE_ENV !== "production" ? InputLabel.propTypes /* remove-proptypes
|
|
|
268
268
|
shrink: PropTypes.bool,
|
|
269
269
|
/**
|
|
270
270
|
* The size of the component.
|
|
271
|
-
* @default '
|
|
271
|
+
* @default 'medium'
|
|
272
272
|
*/
|
|
273
|
-
size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['
|
|
273
|
+
size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['medium', 'small']), PropTypes.string]),
|
|
274
274
|
/**
|
|
275
275
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
276
276
|
*/
|
|
@@ -51,7 +51,7 @@ export type PopoverSlotsAndSlotProps = CreateSlotsAndSlotProps<PopoverSlots, {
|
|
|
51
51
|
*/
|
|
52
52
|
transition: SlotComponentProps<
|
|
53
53
|
// use SlotComponentProps because transition slot does not support `component` and `sx` prop
|
|
54
|
-
React.ElementType
|
|
54
|
+
React.ElementType, TransitionProps & PopoverTransitionSlotPropsOverrides, PopoverOwnerState>;
|
|
55
55
|
/**
|
|
56
56
|
* Props forwarded to the backdrop slot.
|
|
57
57
|
* By default, the avaible props are based on the [Backdrop](https://mui.com/material-ui/api/backdrop/#props) component.
|
|
@@ -52,9 +52,9 @@ export type SnackbarSlotsAndSlotProps = CreateSlotsAndSlotProps<SnackbarSlots, {
|
|
|
52
52
|
clickAwayListener: SlotComponentProps<typeof ClickAwayListener, SnackbarClickAwayListenerSlotPropsOverrides, SnackbarOwnerState>;
|
|
53
53
|
/**
|
|
54
54
|
* Props applied to the transition element.
|
|
55
|
-
* By default, the element is based on
|
|
55
|
+
* By default, the element is based on the [Grow](https://mui.com/material-ui/api/grow/#props) component.
|
|
56
56
|
*/
|
|
57
|
-
transition: SlotComponentProps<React.ElementType
|
|
57
|
+
transition: SlotComponentProps<React.ElementType, TransitionProps & SnackbarTransitionSlotPropsOverrides, SnackbarOwnerState>;
|
|
58
58
|
}>;
|
|
59
59
|
export interface SnackbarOrigin {
|
|
60
60
|
vertical: 'top' | 'bottom';
|
|
@@ -5,21 +5,23 @@ import { InternalStandardProps as StandardProps } from "../index.js";
|
|
|
5
5
|
import { FabProps } from "../Fab/index.js";
|
|
6
6
|
import { TransitionProps } from "../transitions/index.js";
|
|
7
7
|
import { SpeedDialClasses } from "./speedDialClasses.js";
|
|
8
|
-
import { CreateSlotsAndSlotProps,
|
|
8
|
+
import { CreateSlotsAndSlotProps, SlotComponentProps } from "../utils/types.js";
|
|
9
9
|
export type CloseReason = 'toggle' | 'blur' | 'mouseLeave' | 'escapeKeyDown';
|
|
10
10
|
export type OpenReason = 'toggle' | 'focus' | 'mouseEnter';
|
|
11
11
|
export interface SpeedDialSlots {
|
|
12
12
|
/**
|
|
13
13
|
* The component that renders the transition.
|
|
14
14
|
* [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
|
|
15
|
-
* @default
|
|
15
|
+
* @default Zoom
|
|
16
16
|
*/
|
|
17
|
-
transition: React.
|
|
18
|
-
children: React.ReactElement<unknown, any>;
|
|
19
|
-
}>;
|
|
17
|
+
transition: React.ElementType;
|
|
20
18
|
}
|
|
21
19
|
export type SpeedDialSlotsAndSlotProps = CreateSlotsAndSlotProps<SpeedDialSlots, {
|
|
22
|
-
|
|
20
|
+
/**
|
|
21
|
+
* Props forwarded to the transition slot.
|
|
22
|
+
* By default, the avaible props are based on the [Zoom](https://mui.com/material-ui/api/zoom/#props) component.
|
|
23
|
+
*/
|
|
24
|
+
transition: SlotComponentProps<React.ElementType, TransitionProps, SpeedDialOwnerState>;
|
|
23
25
|
}>;
|
|
24
26
|
export interface SpeedDialProps extends Omit<StandardProps<React.HTMLAttributes<HTMLDivElement>, 'children'>, 'slots' | 'slotProps'>, SpeedDialSlotsAndSlotProps {
|
|
25
27
|
/**
|
|
@@ -4,7 +4,7 @@ import { CollapseProps, InternalStandardProps as StandardProps } from "../index.
|
|
|
4
4
|
import { Theme } from "../styles/index.js";
|
|
5
5
|
import { TransitionProps } from "../transitions/transition.js";
|
|
6
6
|
import { StepContentClasses } from "./stepContentClasses.js";
|
|
7
|
-
import { CreateSlotsAndSlotProps,
|
|
7
|
+
import { CreateSlotsAndSlotProps, SlotComponentProps } from "../utils/types.js";
|
|
8
8
|
export interface StepContentSlots {
|
|
9
9
|
/**
|
|
10
10
|
* The component that renders the transition slot.
|
|
@@ -20,7 +20,7 @@ export type StepContentSlotsAndSlotProps = CreateSlotsAndSlotProps<StepContentSl
|
|
|
20
20
|
* Props forwared to the transition slot.
|
|
21
21
|
* By default, the available props are based on the [Collapse](https://mui.com/material-ui/api/collapse/#props) component
|
|
22
22
|
*/
|
|
23
|
-
transition:
|
|
23
|
+
transition: SlotComponentProps<React.ElementType, CollapseProps, StepContentOwnerState>;
|
|
24
24
|
}>;
|
|
25
25
|
export interface StepContentOwnerState extends StepContentProps {}
|
|
26
26
|
export interface StepContentProps extends StandardProps<React.HTMLAttributes<HTMLDivElement>>, StepContentSlotsAndSlotProps {
|
|
@@ -32,10 +32,26 @@ export interface TooltipSlots {
|
|
|
32
32
|
arrow: React.ElementType;
|
|
33
33
|
}
|
|
34
34
|
export type TooltipSlotsAndSlotProps = CreateSlotsAndSlotProps<TooltipSlots, {
|
|
35
|
+
/**
|
|
36
|
+
* Props forwarded to the popper slot.
|
|
37
|
+
* By default, the avaible props are based on the [Popper](https://mui.com/material-ui/api/popper/#props) component.
|
|
38
|
+
*/
|
|
35
39
|
popper: SlotProps<React.ElementType<PopperProps>, TooltipPopperSlotPropsOverrides, TooltipOwnerState>;
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
40
|
+
/**
|
|
41
|
+
* Props forwarded to the transition slot.
|
|
42
|
+
* By default, the avaible props are based on the [Grow](https://mui.com/material-ui/api/grow/#props) component.
|
|
43
|
+
*/
|
|
44
|
+
transition: SlotProps<React.ElementType, TransitionProps & TooltipTransitionSlotPropsOverrides, TooltipOwnerState>;
|
|
45
|
+
/**
|
|
46
|
+
* Props forwarded to the tooltip slot.
|
|
47
|
+
* By default, the avaible props are based on the div element.
|
|
48
|
+
*/
|
|
49
|
+
tooltip: SlotProps<'div', TooltipTooltipSlotPropsOverrides, TooltipOwnerState>;
|
|
50
|
+
/**
|
|
51
|
+
* Props forwarded to the tooltip slot.
|
|
52
|
+
* By default, the avaible props are based on the span element.
|
|
53
|
+
*/
|
|
54
|
+
arrow: SlotProps<'span', TooltipArrowSlotPropsOverrides, TooltipOwnerState>;
|
|
39
55
|
}>;
|
|
40
56
|
export interface TooltipProps extends StandardProps<React.HTMLAttributes<HTMLDivElement>, 'title'>, TooltipSlotsAndSlotProps {
|
|
41
57
|
/**
|
package/modern/index.d.ts
CHANGED
|
@@ -153,8 +153,6 @@ export { default as Grid2 } from "./Grid2/index.js";
|
|
|
153
153
|
export * from "./Grid2/index.js";
|
|
154
154
|
export { default as Grow } from "./Grow/index.js";
|
|
155
155
|
export * from "./Grow/index.js";
|
|
156
|
-
export { default as Hidden } from "./Hidden/index.js";
|
|
157
|
-
export * from "./Hidden/index.js";
|
|
158
156
|
export { default as Icon } from "./Icon/index.js";
|
|
159
157
|
export * from "./Icon/index.js";
|
|
160
158
|
export { default as IconButton } from "./IconButton/index.js";
|
package/modern/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @mui/material v7.0.0-alpha.
|
|
2
|
+
* @mui/material v7.0.0-alpha.2
|
|
3
3
|
*
|
|
4
4
|
* @license MIT
|
|
5
5
|
* This source code is licensed under the MIT license found in the
|
|
@@ -113,8 +113,6 @@ export { default as Grid2 } from "./Grid2/index.js";
|
|
|
113
113
|
export * from "./Grid2/index.js";
|
|
114
114
|
export { default as Grow } from "./Grow/index.js";
|
|
115
115
|
export * from "./Grow/index.js";
|
|
116
|
-
export { default as Hidden } from "./Hidden/index.js";
|
|
117
|
-
export * from "./Hidden/index.js";
|
|
118
116
|
export { default as Icon } from "./Icon/index.js";
|
|
119
117
|
export * from "./Icon/index.js";
|
|
120
118
|
export { default as IconButton } from "./IconButton/index.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { SlotComponentProps } from '@mui/utils';
|
|
2
|
-
export default function mergeSlotProps<T extends SlotComponentProps<React.ElementType, {}, {}>, K = T, U = T extends Function ? T : K extends Function ? K : T extends undefined ? K : T>(externalSlotProps: T | undefined, defaultSlotProps: K): U;
|
|
2
|
+
export default function mergeSlotProps<T extends SlotComponentProps<React.ElementType, {}, {}>, K = T, U = (T extends Function ? T : K extends Function ? K : T extends undefined ? K : T)>(externalSlotProps: T | undefined, defaultSlotProps: K): U;
|
package/modern/version/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export const version = "7.0.0-alpha.
|
|
1
|
+
export const version = "7.0.0-alpha.2";
|
|
2
2
|
export const major = Number("7");
|
|
3
3
|
export const minor = Number("0");
|
|
4
4
|
export const patch = Number("0");
|
|
5
|
-
export const prerelease = "alpha.
|
|
5
|
+
export const prerelease = "alpha.2";
|
|
6
6
|
export default version;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/material",
|
|
3
|
-
"version": "7.0.0-alpha.
|
|
3
|
+
"version": "7.0.0-alpha.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"description": "Material UI is an open-source React component library that implements Google's Material Design. It's comprehensive and can be used in production out of the box.",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"url": "https://opencollective.com/mui-org"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@babel/runtime": "^7.26.
|
|
30
|
+
"@babel/runtime": "^7.26.9",
|
|
31
31
|
"@popperjs/core": "^2.11.8",
|
|
32
32
|
"@types/react-transition-group": "^4.4.12",
|
|
33
33
|
"clsx": "^2.1.1",
|
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
"prop-types": "^15.8.1",
|
|
36
36
|
"react-is": "^19.0.0",
|
|
37
37
|
"react-transition-group": "^4.4.5",
|
|
38
|
-
"@mui/core-downloads-tracker": "^7.0.0-alpha.
|
|
39
|
-
"@mui/system": "7.0.0-alpha.
|
|
40
|
-
"@mui/
|
|
41
|
-
"@mui/
|
|
38
|
+
"@mui/core-downloads-tracker": "^7.0.0-alpha.2",
|
|
39
|
+
"@mui/system": "7.0.0-alpha.2",
|
|
40
|
+
"@mui/types": "^7.2.22",
|
|
41
|
+
"@mui/utils": "7.0.0-alpha.2"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"@emotion/react": "^11.5.0",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
47
47
|
"react": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
48
48
|
"react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
49
|
-
"@mui/material-pigment-css": "7.0.0-alpha.
|
|
49
|
+
"@mui/material-pigment-css": "7.0.0-alpha.2"
|
|
50
50
|
},
|
|
51
51
|
"peerDependenciesMeta": {
|
|
52
52
|
"@types/react": {
|
|
@@ -99,6 +99,8 @@
|
|
|
99
99
|
"default": "./modern/*/index.js"
|
|
100
100
|
}
|
|
101
101
|
},
|
|
102
|
+
"./esm": null,
|
|
103
|
+
"./modern": null,
|
|
102
104
|
"./ButtonBase/TouchRipple": {
|
|
103
105
|
"require": {
|
|
104
106
|
"types": "./ButtonBase/TouchRipple.d.ts",
|