@mui/material 5.14.19 → 5.15.0
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.js +0 -1
- package/ButtonBase/ButtonBase.js +1 -2
- package/ButtonGroup/index.d.ts +2 -0
- package/ButtonGroup/index.js +3 -1
- package/CHANGELOG.md +97 -2
- package/CircularProgress/CircularProgress.js +0 -1
- package/FilledInput/FilledInput.js +0 -2
- package/Input/Input.js +0 -2
- package/InputBase/InputBase.js +0 -2
- package/InputLabel/InputLabel.js +1 -5
- package/Link/Link.js +0 -1
- package/NativeSelect/NativeSelectInput.js +0 -2
- package/Select/SelectInput.js +1 -3
- package/TablePagination/TablePagination.js +0 -2
- package/Tabs/Tabs.js +0 -1
- package/colors/amber.d.ts +0 -1
- package/colors/blue.d.ts +0 -1
- package/colors/blueGrey.d.ts +0 -1
- package/colors/brown.d.ts +0 -1
- package/colors/common.d.ts +0 -1
- package/colors/cyan.d.ts +0 -1
- package/colors/deepOrange.d.ts +0 -1
- package/colors/deepPurple.d.ts +0 -1
- package/colors/green.d.ts +0 -1
- package/colors/grey.d.ts +0 -1
- package/colors/indigo.d.ts +0 -1
- package/colors/lightBlue.d.ts +0 -1
- package/colors/lightGreen.d.ts +0 -1
- package/colors/lime.d.ts +0 -1
- package/colors/orange.d.ts +0 -1
- package/colors/pink.d.ts +0 -1
- package/colors/purple.d.ts +0 -1
- package/colors/red.d.ts +0 -1
- package/colors/teal.d.ts +0 -1
- package/colors/yellow.d.ts +0 -1
- package/index.js +1 -1
- package/legacy/Autocomplete/Autocomplete.js +0 -1
- package/legacy/ButtonBase/ButtonBase.js +1 -1
- package/legacy/ButtonGroup/index.js +3 -1
- package/legacy/CircularProgress/CircularProgress.js +0 -1
- package/legacy/InputLabel/InputLabel.js +1 -5
- package/legacy/NativeSelect/NativeSelectInput.js +0 -2
- package/legacy/Select/SelectInput.js +1 -3
- package/legacy/TablePagination/TablePagination.js +0 -2
- package/legacy/Tabs/Tabs.js +0 -1
- package/legacy/index.js +1 -1
- package/legacy/locale/index.js +0 -11
- package/legacy/useTouchRipple/useTouchRipple.js +1 -1
- package/locale/index.js +0 -11
- package/modern/Autocomplete/Autocomplete.js +0 -1
- package/modern/ButtonBase/ButtonBase.js +1 -2
- package/modern/ButtonGroup/index.js +3 -1
- package/modern/CircularProgress/CircularProgress.js +0 -1
- package/modern/FilledInput/FilledInput.js +0 -2
- package/modern/Input/Input.js +0 -2
- package/modern/InputBase/InputBase.js +0 -2
- package/modern/InputLabel/InputLabel.js +1 -5
- package/modern/Link/Link.js +0 -1
- package/modern/NativeSelect/NativeSelectInput.js +0 -2
- package/modern/Select/SelectInput.js +1 -3
- package/modern/TablePagination/TablePagination.js +0 -2
- package/modern/Tabs/Tabs.js +0 -1
- package/modern/index.js +1 -1
- package/modern/locale/index.js +0 -11
- package/modern/useTouchRipple/useTouchRipple.js +1 -1
- package/node/Autocomplete/Autocomplete.js +0 -1
- package/node/ButtonBase/ButtonBase.js +1 -2
- package/node/ButtonGroup/index.js +17 -1
- package/node/CircularProgress/CircularProgress.js +0 -1
- package/node/FilledInput/FilledInput.js +0 -2
- package/node/Input/Input.js +0 -2
- package/node/InputBase/InputBase.js +0 -2
- package/node/InputLabel/InputLabel.js +1 -5
- package/node/Link/Link.js +0 -1
- package/node/NativeSelect/NativeSelectInput.js +0 -2
- package/node/Select/SelectInput.js +1 -3
- package/node/TablePagination/TablePagination.js +0 -2
- package/node/Tabs/Tabs.js +0 -1
- package/node/index.js +1 -1
- package/node/locale/index.js +0 -11
- package/node/styles/index.js +1 -0
- package/node/useTouchRipple/useTouchRipple.js +1 -1
- package/package.json +7 -7
- package/styles/components.d.ts +115 -115
- package/styles/variants.d.ts +1 -2
- package/umd/material-ui.development.js +9 -35
- package/umd/material-ui.production.min.js +4 -4
- package/useTouchRipple/useTouchRipple.js +1 -1
package/styles/variants.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { Interpolation } from '@mui/system';
|
|
2
|
-
import { Theme } from './createTheme';
|
|
3
2
|
import { ComponentsPropsList } from './props';
|
|
4
3
|
|
|
5
|
-
export type ComponentsVariants = {
|
|
4
|
+
export type ComponentsVariants<Theme = unknown> = {
|
|
6
5
|
[Name in keyof ComponentsPropsList]?: Array<{
|
|
7
6
|
props: Partial<ComponentsPropsList[Name]>;
|
|
8
7
|
style: Interpolation<{ theme: Theme }>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @mui/material v5.
|
|
2
|
+
* @mui/material v5.15.0
|
|
3
3
|
*
|
|
4
4
|
* @license MIT
|
|
5
5
|
* This source code is licensed under the MIT license found in the
|
|
@@ -1597,6 +1597,7 @@
|
|
|
1597
1597
|
// This module is based on https://github.com/airbnb/prop-types-exact repository.
|
|
1598
1598
|
// However, in order to reduce the number of dependencies and to remove some extra safe checks
|
|
1599
1599
|
// the module was forked.
|
|
1600
|
+
|
|
1600
1601
|
const specialProperty = 'exact-prop: \u200b';
|
|
1601
1602
|
function exactProp(propTypes) {
|
|
1602
1603
|
return _extends({}, propTypes, {
|
|
@@ -2140,7 +2141,6 @@
|
|
|
2140
2141
|
});
|
|
2141
2142
|
return React__namespace.useRef((...args) =>
|
|
2142
2143
|
// @ts-expect-error hide `this`
|
|
2143
|
-
// tslint:disable-next-line:ban-comma-operator
|
|
2144
2144
|
(0, ref.current)(...args)).current;
|
|
2145
2145
|
}
|
|
2146
2146
|
|
|
@@ -2555,6 +2555,7 @@
|
|
|
2555
2555
|
|
|
2556
2556
|
// If GlobalStateSlot is changed, GLOBAL_STATE_CLASSES in
|
|
2557
2557
|
// \packages\api-docs-builder\utils\parseSlotsAndClasses.ts must be updated accordingly.
|
|
2558
|
+
|
|
2558
2559
|
const globalStateClassesMapping = {
|
|
2559
2560
|
active: 'active',
|
|
2560
2561
|
checked: 'checked',
|
|
@@ -6328,7 +6329,6 @@
|
|
|
6328
6329
|
// desktop
|
|
6329
6330
|
xl: 1536 // large screen
|
|
6330
6331
|
},
|
|
6331
|
-
|
|
6332
6332
|
unit = 'px',
|
|
6333
6333
|
step = 5
|
|
6334
6334
|
} = breakpoints,
|
|
@@ -6406,7 +6406,6 @@
|
|
|
6406
6406
|
// desktop
|
|
6407
6407
|
xl: 1536 // large screen
|
|
6408
6408
|
};
|
|
6409
|
-
|
|
6410
6409
|
const defaultBreakpoints = {
|
|
6411
6410
|
// Sorted ASC by size. That's important.
|
|
6412
6411
|
// It can't be configured as it's used statically for propTypes.
|
|
@@ -6735,8 +6734,6 @@
|
|
|
6735
6734
|
|
|
6736
6735
|
// The different signatures imply different meaning for their arguments that can't be expressed structurally.
|
|
6737
6736
|
// We express the difference with variable names.
|
|
6738
|
-
/* tslint:disable:unified-signatures */
|
|
6739
|
-
/* tslint:enable:unified-signatures */
|
|
6740
6737
|
|
|
6741
6738
|
function createSpacing(spacingInput = 8) {
|
|
6742
6739
|
// Already transformed.
|
|
@@ -7351,7 +7348,6 @@
|
|
|
7351
7348
|
if (!sx) {
|
|
7352
7349
|
return null; // Emotion & styled-components will neglect null
|
|
7353
7350
|
}
|
|
7354
|
-
|
|
7355
7351
|
const config = (_theme$unstable_sxCon = theme.unstable_sxConfig) != null ? _theme$unstable_sxCon : defaultSxConfig$1;
|
|
7356
7352
|
|
|
7357
7353
|
/*
|
|
@@ -8101,7 +8097,6 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8101
8097
|
if (color.type !== 'color') {
|
|
8102
8098
|
val /= 255; // normalized
|
|
8103
8099
|
}
|
|
8104
|
-
|
|
8105
8100
|
return val <= 0.03928 ? val / 12.92 : ((val + 0.055) / 1.055) ** 2.4;
|
|
8106
8101
|
});
|
|
8107
8102
|
|
|
@@ -9116,7 +9111,6 @@ try {
|
|
|
9116
9111
|
}
|
|
9117
9112
|
}, keys => keys[0] === 'vars' // skip 'vars/*' paths
|
|
9118
9113
|
);
|
|
9119
|
-
|
|
9120
9114
|
return {
|
|
9121
9115
|
css,
|
|
9122
9116
|
vars,
|
|
@@ -9680,7 +9674,6 @@ try {
|
|
|
9680
9674
|
// use context value if exists.
|
|
9681
9675
|
parentDisableEqualOverflow: overflow // for nested grid
|
|
9682
9676
|
});
|
|
9683
|
-
|
|
9684
9677
|
const classes = useUtilityClasses(ownerState, theme);
|
|
9685
9678
|
let result = /*#__PURE__*/jsxRuntime_1(GridRoot, _extends({
|
|
9686
9679
|
ref: ref,
|
|
@@ -13782,7 +13775,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
13782
13775
|
'&::-moz-focus-inner': {
|
|
13783
13776
|
borderStyle: 'none' // Remove Firefox dotted outline.
|
|
13784
13777
|
},
|
|
13785
|
-
|
|
13786
13778
|
[`&.${buttonBaseClasses$1.disabled}`]: {
|
|
13787
13779
|
pointerEvents: 'none',
|
|
13788
13780
|
// Disable link interactions
|
|
@@ -13949,7 +13941,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
13949
13941
|
});
|
|
13950
13942
|
const handleKeyUp = useEventCallback(event => {
|
|
13951
13943
|
// calling preventDefault in keyUp on a <button> will not dispatch a click event if Space is pressed
|
|
13952
|
-
// https://codesandbox.io/
|
|
13944
|
+
// https://codesandbox.io/p/sandbox/button-keyup-preventdefault-dn7f0
|
|
13953
13945
|
if (focusRipple && event.key === ' ' && rippleRef.current && focusVisible && !event.defaultPrevented) {
|
|
13954
13946
|
keydownRef.current = false;
|
|
13955
13947
|
rippleRef.current.stop(event, () => {
|
|
@@ -19043,7 +19035,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
19043
19035
|
var _document$activeEleme;
|
|
19044
19036
|
// This is necessary because Firefox and Safari will keep focus
|
|
19045
19037
|
// on a disabled element:
|
|
19046
|
-
// https://codesandbox.io/
|
|
19038
|
+
// https://codesandbox.io/p/sandbox/mui-pr-22247-forked-h151h?file=/src/App.js
|
|
19047
19039
|
// @ts-ignore
|
|
19048
19040
|
(_document$activeEleme = document.activeElement) == null || _document$activeEleme.blur();
|
|
19049
19041
|
}
|
|
@@ -21845,13 +21837,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
21845
21837
|
// IE11
|
|
21846
21838
|
'&:focus::-ms-input-placeholder': placeholderVisible // Edge
|
|
21847
21839
|
},
|
|
21848
|
-
|
|
21849
21840
|
[`&.${inputBaseClasses$1.disabled}`]: {
|
|
21850
21841
|
opacity: 1,
|
|
21851
21842
|
// Reset iOS opacity
|
|
21852
21843
|
WebkitTextFillColor: (theme.vars || theme).palette.text.disabled // Fix opacity Safari bug
|
|
21853
21844
|
},
|
|
21854
|
-
|
|
21855
21845
|
'&:-webkit-autofill': {
|
|
21856
21846
|
animationDuration: '5000s',
|
|
21857
21847
|
animationName: 'mui-auto-fill'
|
|
@@ -22604,7 +22594,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
22604
22594
|
right: 0,
|
|
22605
22595
|
top: 'calc(50% - 14px)' // Center vertically
|
|
22606
22596
|
});
|
|
22607
|
-
|
|
22608
22597
|
const AutocompleteClearIndicator = styled$1(IconButton$1, {
|
|
22609
22598
|
name: 'MuiAutocomplete',
|
|
22610
22599
|
slot: 'ClearIndicator',
|
|
@@ -27189,7 +27178,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
27189
27178
|
})({
|
|
27190
27179
|
display: 'block' // Keeps the progress centered
|
|
27191
27180
|
});
|
|
27192
|
-
|
|
27193
27181
|
const CircularProgressCircle = styled$1('circle', {
|
|
27194
27182
|
name: 'MuiCircularProgress',
|
|
27195
27183
|
slot: 'Circle',
|
|
@@ -29779,7 +29767,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
29779
29767
|
}),
|
|
29780
29768
|
pointerEvents: 'none' // Transparent to the hover style.
|
|
29781
29769
|
},
|
|
29782
|
-
|
|
29783
29770
|
[`&.${filledInputClasses$1.focused}:after`]: {
|
|
29784
29771
|
// translateX(0) is a workaround for Safari transform scale bug
|
|
29785
29772
|
// See https://github.com/mui/material-ui/issues/31766
|
|
@@ -29803,7 +29790,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
29803
29790
|
}),
|
|
29804
29791
|
pointerEvents: 'none' // Transparent to the hover style.
|
|
29805
29792
|
},
|
|
29806
|
-
|
|
29807
29793
|
[`&:hover:not(.${filledInputClasses$1.disabled}, .${filledInputClasses$1.error}):before`]: {
|
|
29808
29794
|
borderBottom: `1px solid ${(theme.vars || theme).palette.text.primary}`
|
|
29809
29795
|
},
|
|
@@ -33338,7 +33324,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
33338
33324
|
}),
|
|
33339
33325
|
pointerEvents: 'none' // Transparent to the hover style.
|
|
33340
33326
|
},
|
|
33341
|
-
|
|
33342
33327
|
[`&.${inputClasses$1.focused}:after`]: {
|
|
33343
33328
|
// translateX(0) is a workaround for Safari transform scale bug
|
|
33344
33329
|
// See https://github.com/mui/material-ui/issues/31766
|
|
@@ -33362,7 +33347,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
33362
33347
|
}),
|
|
33363
33348
|
pointerEvents: 'none' // Transparent to the hover style.
|
|
33364
33349
|
},
|
|
33365
|
-
|
|
33366
33350
|
[`&:hover:not(.${inputClasses$1.disabled}, .${inputClasses$1.error}):before`]: {
|
|
33367
33351
|
borderBottom: `2px solid ${(theme.vars || theme).palette.text.primary}`,
|
|
33368
33352
|
// Reset on touch devices, it doesn't add specificity
|
|
@@ -33874,11 +33858,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
33874
33858
|
// but it feels a better when it bleeds a bit on the left, so 32px.
|
|
33875
33859
|
maxWidth: 'calc(133% - 32px)',
|
|
33876
33860
|
transform: 'translate(14px, -9px) scale(0.75)'
|
|
33877
|
-
})
|
|
33878
|
-
'&:not(label) + div': {
|
|
33879
|
-
marginTop: 16
|
|
33880
|
-
}
|
|
33881
|
-
}));
|
|
33861
|
+
})));
|
|
33882
33862
|
const InputLabel = /*#__PURE__*/React__namespace.forwardRef(function InputLabel(inProps, ref) {
|
|
33883
33863
|
const props = useThemeProps({
|
|
33884
33864
|
name: 'MuiInputLabel',
|
|
@@ -34426,7 +34406,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
34426
34406
|
'&::-moz-focus-inner': {
|
|
34427
34407
|
borderStyle: 'none' // Remove Firefox dotted outline.
|
|
34428
34408
|
},
|
|
34429
|
-
|
|
34430
34409
|
[`&.${linkClasses$1.focusVisible}`]: {
|
|
34431
34410
|
outline: 'auto'
|
|
34432
34411
|
}
|
|
@@ -37312,7 +37291,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
37312
37291
|
}, {
|
|
37313
37292
|
borderRadius: 0 // Reset Chrome style
|
|
37314
37293
|
}),
|
|
37315
|
-
|
|
37316
37294
|
// Remove IE11 arrow
|
|
37317
37295
|
'&::-ms-expand': {
|
|
37318
37296
|
display: 'none'
|
|
@@ -37340,7 +37318,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
37340
37318
|
'&:focus': {
|
|
37341
37319
|
borderRadius: (theme.vars || theme).shape.borderRadius // Reset the reset for Chrome style
|
|
37342
37320
|
},
|
|
37343
|
-
|
|
37344
37321
|
'&&&': {
|
|
37345
37322
|
paddingRight: 32
|
|
37346
37323
|
}
|
|
@@ -40262,7 +40239,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
40262
40239
|
'data-value': child.props.value // Instead, we provide it as a data attribute.
|
|
40263
40240
|
});
|
|
40264
40241
|
});
|
|
40265
|
-
|
|
40266
40242
|
{
|
|
40267
40243
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
40268
40244
|
React__namespace.useEffect(() => {
|
|
@@ -40311,7 +40287,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
40311
40287
|
const classes = useUtilityClasses$x(ownerState);
|
|
40312
40288
|
const paperProps = _extends({}, MenuProps.PaperProps, (_MenuProps$slotProps = MenuProps.slotProps) == null ? void 0 : _MenuProps$slotProps.paper);
|
|
40313
40289
|
const listboxId = useId();
|
|
40314
|
-
const hiddenInputId = useId();
|
|
40315
40290
|
return /*#__PURE__*/jsxRuntime_2(React__namespace.Fragment, {
|
|
40316
40291
|
children: [/*#__PURE__*/jsxRuntime_1(SelectSelect, _extends({
|
|
40317
40292
|
ref: handleDisplayRef,
|
|
@@ -40342,7 +40317,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
40342
40317
|
})), /*#__PURE__*/jsxRuntime_1(SelectNativeInput, _extends({
|
|
40343
40318
|
"aria-invalid": error,
|
|
40344
40319
|
value: Array.isArray(value) ? value.join(',') : value,
|
|
40345
|
-
name: name
|
|
40320
|
+
name: name,
|
|
40346
40321
|
ref: inputRef,
|
|
40347
40322
|
"aria-hidden": true,
|
|
40348
40323
|
onChange: handleChange,
|
|
@@ -47478,7 +47453,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
47478
47453
|
textAlignLast: 'right' // Align <select> on Chrome.
|
|
47479
47454
|
}
|
|
47480
47455
|
});
|
|
47481
|
-
|
|
47482
47456
|
const TablePaginationMenuItem = styled$1(MenuItem$1, {
|
|
47483
47457
|
name: 'MuiTablePagination',
|
|
47484
47458
|
slot: 'MenuItem',
|
|
@@ -47562,7 +47536,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
47562
47536
|
if (component === TableCell$1 || component === 'td') {
|
|
47563
47537
|
colSpan = colSpanProp || 1000; // col-span over everything
|
|
47564
47538
|
}
|
|
47565
|
-
|
|
47566
47539
|
const selectId = useId(selectProps.id);
|
|
47567
47540
|
const labelId = useId(selectProps.labelId);
|
|
47568
47541
|
const getLabelDisplayedRowsTo = () => {
|
|
@@ -48511,7 +48484,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
48511
48484
|
display: 'none' // Safari + Chrome
|
|
48512
48485
|
}
|
|
48513
48486
|
});
|
|
48514
|
-
|
|
48515
48487
|
const defaultIndicatorStyle = {};
|
|
48516
48488
|
let warnedOnceTabPresent = false;
|
|
48517
48489
|
const Tabs = /*#__PURE__*/React__namespace.forwardRef(function Tabs(inProps, ref) {
|
|
@@ -50022,6 +49994,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
50022
49994
|
exports.Button = Button$1;
|
|
50023
49995
|
exports.ButtonBase = ButtonBase$1;
|
|
50024
49996
|
exports.ButtonGroup = ButtonGroup$1;
|
|
49997
|
+
exports.ButtonGroupButtonContext = ButtonGroupButtonContext$1;
|
|
49998
|
+
exports.ButtonGroupContext = ButtonGroupContext$1;
|
|
50025
49999
|
exports.Card = Card$1;
|
|
50026
50000
|
exports.CardActionArea = CardActionArea$1;
|
|
50027
50001
|
exports.CardActions = CardActions$1;
|