@mui/material 5.15.18 → 5.15.19
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/AlertTitle/AlertTitle.d.ts +2 -2
- package/Autocomplete/Autocomplete.js +23 -11
- package/CHANGELOG.md +39 -0
- package/Hidden/Hidden.d.ts +2 -0
- package/Hidden/Hidden.js +2 -0
- package/Pagination/Pagination.js +1 -1
- package/Slider/Slider.js +1 -1
- package/index.js +1 -1
- package/legacy/Autocomplete/Autocomplete.js +11 -7
- package/legacy/Hidden/Hidden.js +2 -0
- package/legacy/Pagination/Pagination.js +1 -1
- package/legacy/Slider/Slider.js +1 -1
- package/legacy/index.js +1 -1
- package/legacy/styles/responsiveFontSizes.js +3 -0
- package/modern/Autocomplete/Autocomplete.js +23 -11
- package/modern/Hidden/Hidden.js +2 -0
- package/modern/Pagination/Pagination.js +1 -1
- package/modern/Slider/Slider.js +1 -1
- package/modern/index.js +1 -1
- package/modern/styles/responsiveFontSizes.js +3 -0
- package/node/Autocomplete/Autocomplete.js +24 -12
- package/node/Hidden/Hidden.js +2 -0
- package/node/Pagination/Pagination.js +1 -1
- package/node/Slider/Slider.js +1 -1
- package/node/index.js +1 -1
- package/node/styles/responsiveFontSizes.js +3 -0
- package/package.json +4 -4
- package/styles/responsiveFontSizes.js +3 -0
- package/umd/material-ui.development.js +17 -9
- package/umd/material-ui.production.min.js +2 -2
- package/usePagination/usePagination.d.ts +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { SxProps } from '@mui/system';
|
|
3
|
-
import {
|
|
3
|
+
import { Theme, TypographyProps } from '..';
|
|
4
4
|
import { AlertTitleClasses } from './alertTitleClasses';
|
|
5
5
|
|
|
6
|
-
export interface AlertTitleProps extends
|
|
6
|
+
export interface AlertTitleProps extends TypographyProps<'div'> {
|
|
7
7
|
/**
|
|
8
8
|
* The content of the component.
|
|
9
9
|
*/
|
|
@@ -4,7 +4,9 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWith
|
|
|
4
4
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
5
5
|
var _ClearIcon, _ArrowDropDownIcon;
|
|
6
6
|
const _excluded = ["autoComplete", "autoHighlight", "autoSelect", "blurOnSelect", "ChipProps", "className", "clearIcon", "clearOnBlur", "clearOnEscape", "clearText", "closeText", "componentsProps", "defaultValue", "disableClearable", "disableCloseOnSelect", "disabled", "disabledItemsFocusable", "disableListWrap", "disablePortal", "filterOptions", "filterSelectedOptions", "forcePopupIcon", "freeSolo", "fullWidth", "getLimitTagsText", "getOptionDisabled", "getOptionKey", "getOptionLabel", "isOptionEqualToValue", "groupBy", "handleHomeEndKeys", "id", "includeInputInList", "inputValue", "limitTags", "ListboxComponent", "ListboxProps", "loading", "loadingText", "multiple", "noOptionsText", "onChange", "onClose", "onHighlightChange", "onInputChange", "onOpen", "open", "openOnFocus", "openText", "options", "PaperComponent", "PopperComponent", "popupIcon", "readOnly", "renderGroup", "renderInput", "renderOption", "renderTags", "selectOnFocus", "size", "slotProps", "value"],
|
|
7
|
-
_excluded2 = ["ref"]
|
|
7
|
+
_excluded2 = ["ref"],
|
|
8
|
+
_excluded3 = ["key"],
|
|
9
|
+
_excluded4 = ["key"];
|
|
8
10
|
import * as React from 'react';
|
|
9
11
|
import PropTypes from 'prop-types';
|
|
10
12
|
import clsx from 'clsx';
|
|
@@ -30,7 +32,6 @@ import capitalize from '../utils/capitalize';
|
|
|
30
32
|
import useForkRef from '../utils/useForkRef';
|
|
31
33
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
32
34
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
33
|
-
import { createElement as _createElement } from "react";
|
|
34
35
|
const useThemeProps = createUseThemeProps('MuiAutocomplete');
|
|
35
36
|
const useUtilityClasses = ownerState => {
|
|
36
37
|
const {
|
|
@@ -541,12 +542,19 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
|
|
|
541
542
|
if (renderTags) {
|
|
542
543
|
startAdornment = renderTags(value, getCustomizedTagProps, ownerState);
|
|
543
544
|
} else {
|
|
544
|
-
startAdornment = value.map((option, index) =>
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
545
|
+
startAdornment = value.map((option, index) => {
|
|
546
|
+
const _getCustomizedTagProp = getCustomizedTagProps({
|
|
547
|
+
index
|
|
548
|
+
}),
|
|
549
|
+
{
|
|
550
|
+
key
|
|
551
|
+
} = _getCustomizedTagProp,
|
|
552
|
+
customTagProps = _objectWithoutPropertiesLoose(_getCustomizedTagProp, _excluded3);
|
|
553
|
+
return /*#__PURE__*/_jsx(Chip, _extends({
|
|
554
|
+
label: getOptionLabel(option),
|
|
555
|
+
size: size
|
|
556
|
+
}, customTagProps, ChipProps), key);
|
|
557
|
+
});
|
|
550
558
|
}
|
|
551
559
|
}
|
|
552
560
|
if (limitTags > -1 && Array.isArray(startAdornment)) {
|
|
@@ -574,9 +582,13 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
|
|
|
574
582
|
const renderGroup = renderGroupProp || defaultRenderGroup;
|
|
575
583
|
const defaultRenderOption = (props2, option) => {
|
|
576
584
|
// Need to clearly apply key because of https://github.com/vercel/next.js/issues/55642
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
585
|
+
const {
|
|
586
|
+
key
|
|
587
|
+
} = props2,
|
|
588
|
+
otherProps = _objectWithoutPropertiesLoose(props2, _excluded4);
|
|
589
|
+
return /*#__PURE__*/_jsx("li", _extends({}, otherProps, {
|
|
590
|
+
children: getOptionLabel(option)
|
|
591
|
+
}), key);
|
|
580
592
|
};
|
|
581
593
|
const renderOption = renderOptionProp || defaultRenderOption;
|
|
582
594
|
const renderListOption = (option, index) => {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,44 @@
|
|
|
1
1
|
# [Versions](https://mui.com/versions/)
|
|
2
2
|
|
|
3
|
+
## v5.15.19
|
|
4
|
+
|
|
5
|
+
<!-- generated comparing v5.15.18..master -->
|
|
6
|
+
|
|
7
|
+
_May 29, 2024_
|
|
8
|
+
|
|
9
|
+
A big thanks to the 12 contributors who made this release possible.
|
|
10
|
+
This release was mostly about 🐛 bug fixes and 📚 documentation improvements.
|
|
11
|
+
|
|
12
|
+
### `@mui/material@5.15.19`
|
|
13
|
+
|
|
14
|
+
- ​<!-- 19 -->[AlertTitle] Enable extending Typography props (@lucasgmelo) (#42334) @github-actions[bot]
|
|
15
|
+
- ​<!-- 06 -->[responsiveFontSizes] Handled undefined variants (@brijeshb42) (#42419) @github-actions[bot]
|
|
16
|
+
- ​<!-- 05 -->[Slider] Fix wrong CSS value (@mnajdova) (#42373) @github-actions[bot]
|
|
17
|
+
|
|
18
|
+
### Docs
|
|
19
|
+
|
|
20
|
+
- ​<!-- 13 -->Link to pnpm installation docs (#42420) @aarongarciah
|
|
21
|
+
- ​<!-- 12 -->Remove LocalMonero (@oliviertassinari) (#42315) @github-actions[bot]
|
|
22
|
+
- ​<!-- 10 -->[material-ui] Fix typo in style interoperability with Tailwind CSS docs (@ZeeshanTamboli) (#42312) @github-actions[bot]
|
|
23
|
+
- ​<!-- 09 -->[material-ui][Pagination] Clarify pagination `page` prop API (@Mandar-Pandya) (#42265) @github-actions[bot]
|
|
24
|
+
- ​<!-- 08 -->[material-ui][Tabs] Improve the Basic Tabs demo (@MatheusEli) (#42426) @github-actions[bot]
|
|
25
|
+
- ​<!-- 07 -->[pigment-css] Fix duplication of content (#42410) @oliviertassinari
|
|
26
|
+
|
|
27
|
+
### Core
|
|
28
|
+
|
|
29
|
+
- ​<!-- 18 -->[blog] Add the "Product" tag to the Pigment CSS post (@danilo-leal) (#42366) @github-actions[bot]
|
|
30
|
+
- ​<!-- 17 -->[blog] Update blog post OG image (@danilo-leal) (#42306) @github-actions[bot]
|
|
31
|
+
- ​<!-- 16 -->[blog] Update Pigment CSS post (@danilo-leal) (#42267) @github-actions[bot]
|
|
32
|
+
- ​<!-- 15 -->[core] Fix React 18.3 warnings about spreading keys in the Material UI `Autocomplete` component (#42099) (#42241) @DiegoAndai
|
|
33
|
+
- ​<!-- 14 -->[core] Fix a few more key spread issues (@oliviertassinari) (#42318) @github-actions[bot]
|
|
34
|
+
- ​<!-- 11 -->[docs-infra] Allow JSDoc tags (#42327) @aarongarciah
|
|
35
|
+
- ​<!-- 04 -->[website] Add Nikita to the about page (@nikitaa24) (#42421) @github-actions[bot]
|
|
36
|
+
- ​<!-- 03 -->[website] Fix hero spacing changes applying at the wrong breakpoint (@KenanYusuf) (#42357) @github-actions[bot]
|
|
37
|
+
- ​<!-- 02 -->[website] Adds Kenan Yusuf to about page (@KenanYusuf) (#42330) @github-actions[bot]
|
|
38
|
+
- ​<!-- 01 -->[website] Improve about page @oliviertassinari
|
|
39
|
+
|
|
40
|
+
All contributors of this release in alphabetical order: @aarongarciah, @brijeshb42, @danilo-leal, @DiegoAndai, @KenanYusuf, @lucasgmelo, @Mandar-Pandya, @MatheusEli, @mnajdova, @nikitaa24, @oliviertassinari, @ZeeshanTamboli
|
|
41
|
+
|
|
3
42
|
## v5.15.18
|
|
4
43
|
|
|
5
44
|
<!-- generated comparing v5.15.17..master -->
|
package/Hidden/Hidden.d.ts
CHANGED
|
@@ -90,6 +90,8 @@ export interface HiddenProps {
|
|
|
90
90
|
* API:
|
|
91
91
|
*
|
|
92
92
|
* - [Hidden API](https://mui.com/material-ui/api/hidden/)
|
|
93
|
+
*
|
|
94
|
+
* @deprecated The Hidden component was deprecated in Material UI v5. To learn more, see [the Hidden section](/material-ui/migration/v5-component-changes/#hidden) of the migration docs.
|
|
93
95
|
*/
|
|
94
96
|
declare const Hidden: React.JSXElementConstructor<HiddenProps>;
|
|
95
97
|
|
package/Hidden/Hidden.js
CHANGED
|
@@ -10,6 +10,8 @@ import HiddenCss from './HiddenCss';
|
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Responsively hides children based on the selected implementation.
|
|
13
|
+
*
|
|
14
|
+
* @deprecated The Hidden component was deprecated in Material UI v5. To learn more, see [the Hidden section](/material-ui/migration/v5-component-changes/#hidden) of the migration docs.
|
|
13
15
|
*/
|
|
14
16
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
17
|
function Hidden(props) {
|
package/Pagination/Pagination.js
CHANGED
|
@@ -193,7 +193,7 @@ process.env.NODE_ENV !== "production" ? Pagination.propTypes /* remove-proptypes
|
|
|
193
193
|
*/
|
|
194
194
|
onChange: PropTypes.func,
|
|
195
195
|
/**
|
|
196
|
-
* The current page.
|
|
196
|
+
* The current page. Unlike `TablePagination`, which starts numbering from `0`, this pagination starts from `1`.
|
|
197
197
|
*/
|
|
198
198
|
page: integerPropType,
|
|
199
199
|
/**
|
package/Slider/Slider.js
CHANGED
|
@@ -337,7 +337,7 @@ export const SliderThumb = styled('span', {
|
|
|
337
337
|
}
|
|
338
338
|
}),
|
|
339
339
|
[`&.${sliderClasses.active}`]: _extends({}, theme.vars ? {
|
|
340
|
-
boxShadow: `0px 0px 0px 14px rgba(${theme.vars.palette[color].mainChannel} / 0.16)
|
|
340
|
+
boxShadow: `0px 0px 0px 14px rgba(${theme.vars.palette[color].mainChannel} / 0.16)`
|
|
341
341
|
} : {
|
|
342
342
|
boxShadow: `0px 0px 0px 14px ${alpha(theme.palette[color].main, 0.16)}`
|
|
343
343
|
})
|
package/index.js
CHANGED
|
@@ -29,7 +29,6 @@ import capitalize from '../utils/capitalize';
|
|
|
29
29
|
import useForkRef from '../utils/useForkRef';
|
|
30
30
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
31
31
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
32
|
-
import { createElement as _createElement } from "react";
|
|
33
32
|
var useThemeProps = createUseThemeProps('MuiAutocomplete');
|
|
34
33
|
var useUtilityClasses = function useUtilityClasses(ownerState) {
|
|
35
34
|
var classes = ownerState.classes,
|
|
@@ -536,12 +535,15 @@ var Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps,
|
|
|
536
535
|
startAdornment = renderTags(value, getCustomizedTagProps, ownerState);
|
|
537
536
|
} else {
|
|
538
537
|
startAdornment = value.map(function (option, index) {
|
|
538
|
+
var _getCustomizedTagProp = getCustomizedTagProps({
|
|
539
|
+
index: index
|
|
540
|
+
}),
|
|
541
|
+
key = _getCustomizedTagProp.key,
|
|
542
|
+
customTagProps = _objectWithoutProperties(_getCustomizedTagProp, ["key"]);
|
|
539
543
|
return /*#__PURE__*/_jsx(Chip, _extends({
|
|
540
544
|
label: getOptionLabel(option),
|
|
541
545
|
size: size
|
|
542
|
-
},
|
|
543
|
-
index: index
|
|
544
|
-
}), ChipProps));
|
|
546
|
+
}, customTagProps, ChipProps), key);
|
|
545
547
|
});
|
|
546
548
|
}
|
|
547
549
|
}
|
|
@@ -572,9 +574,11 @@ var Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps,
|
|
|
572
574
|
var renderGroup = renderGroupProp || defaultRenderGroup;
|
|
573
575
|
var defaultRenderOption = function defaultRenderOption(props2, option) {
|
|
574
576
|
// Need to clearly apply key because of https://github.com/vercel/next.js/issues/55642
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
}
|
|
577
|
+
var key = props2.key,
|
|
578
|
+
otherProps = _objectWithoutProperties(props2, ["key"]);
|
|
579
|
+
return /*#__PURE__*/_jsx("li", _extends({}, otherProps, {
|
|
580
|
+
children: getOptionLabel(option)
|
|
581
|
+
}), key);
|
|
578
582
|
};
|
|
579
583
|
var renderOption = renderOptionProp || defaultRenderOption;
|
|
580
584
|
var renderListOption = function renderListOption(option, index) {
|
package/legacy/Hidden/Hidden.js
CHANGED
|
@@ -9,6 +9,8 @@ import HiddenCss from './HiddenCss';
|
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* Responsively hides children based on the selected implementation.
|
|
12
|
+
*
|
|
13
|
+
* @deprecated The Hidden component was deprecated in Material UI v5. To learn more, see [the Hidden section](/material-ui/migration/v5-component-changes/#hidden) of the migration docs.
|
|
12
14
|
*/
|
|
13
15
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
16
|
function Hidden(props) {
|
|
@@ -208,7 +208,7 @@ process.env.NODE_ENV !== "production" ? Pagination.propTypes /* remove-proptypes
|
|
|
208
208
|
*/
|
|
209
209
|
onChange: PropTypes.func,
|
|
210
210
|
/**
|
|
211
|
-
* The current page.
|
|
211
|
+
* The current page. Unlike `TablePagination`, which starts numbering from `0`, this pagination starts from `1`.
|
|
212
212
|
*/
|
|
213
213
|
page: integerPropType,
|
|
214
214
|
/**
|
package/legacy/Slider/Slider.js
CHANGED
|
@@ -332,7 +332,7 @@ export var SliderThumb = styled('span', {
|
|
|
332
332
|
boxShadow: 'none'
|
|
333
333
|
}
|
|
334
334
|
})), "&.".concat(sliderClasses.active), _extends({}, theme.vars ? {
|
|
335
|
-
boxShadow: "0px 0px 0px 14px rgba(".concat(theme.vars.palette[color].mainChannel, " / 0.16)
|
|
335
|
+
boxShadow: "0px 0px 0px 14px rgba(".concat(theme.vars.palette[color].mainChannel, " / 0.16)")
|
|
336
336
|
} : {
|
|
337
337
|
boxShadow: "0px 0px 0px 14px ".concat(alpha(theme.palette[color].main, 0.16))
|
|
338
338
|
}))
|
package/legacy/index.js
CHANGED
|
@@ -23,6 +23,9 @@ export default function responsiveFontSizes(themeInput) {
|
|
|
23
23
|
});
|
|
24
24
|
variants.forEach(function (variant) {
|
|
25
25
|
var style = typography[variant];
|
|
26
|
+
if (!style) {
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
26
29
|
var remFontSize = parseFloat(convert(style.fontSize, 'rem'));
|
|
27
30
|
if (remFontSize <= 1) {
|
|
28
31
|
return;
|
|
@@ -4,7 +4,9 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWith
|
|
|
4
4
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
5
5
|
var _ClearIcon, _ArrowDropDownIcon;
|
|
6
6
|
const _excluded = ["autoComplete", "autoHighlight", "autoSelect", "blurOnSelect", "ChipProps", "className", "clearIcon", "clearOnBlur", "clearOnEscape", "clearText", "closeText", "componentsProps", "defaultValue", "disableClearable", "disableCloseOnSelect", "disabled", "disabledItemsFocusable", "disableListWrap", "disablePortal", "filterOptions", "filterSelectedOptions", "forcePopupIcon", "freeSolo", "fullWidth", "getLimitTagsText", "getOptionDisabled", "getOptionKey", "getOptionLabel", "isOptionEqualToValue", "groupBy", "handleHomeEndKeys", "id", "includeInputInList", "inputValue", "limitTags", "ListboxComponent", "ListboxProps", "loading", "loadingText", "multiple", "noOptionsText", "onChange", "onClose", "onHighlightChange", "onInputChange", "onOpen", "open", "openOnFocus", "openText", "options", "PaperComponent", "PopperComponent", "popupIcon", "readOnly", "renderGroup", "renderInput", "renderOption", "renderTags", "selectOnFocus", "size", "slotProps", "value"],
|
|
7
|
-
_excluded2 = ["ref"]
|
|
7
|
+
_excluded2 = ["ref"],
|
|
8
|
+
_excluded3 = ["key"],
|
|
9
|
+
_excluded4 = ["key"];
|
|
8
10
|
import * as React from 'react';
|
|
9
11
|
import PropTypes from 'prop-types';
|
|
10
12
|
import clsx from 'clsx';
|
|
@@ -30,7 +32,6 @@ import capitalize from '../utils/capitalize';
|
|
|
30
32
|
import useForkRef from '../utils/useForkRef';
|
|
31
33
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
32
34
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
33
|
-
import { createElement as _createElement } from "react";
|
|
34
35
|
const useThemeProps = createUseThemeProps('MuiAutocomplete');
|
|
35
36
|
const useUtilityClasses = ownerState => {
|
|
36
37
|
const {
|
|
@@ -537,12 +538,19 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
|
|
|
537
538
|
if (renderTags) {
|
|
538
539
|
startAdornment = renderTags(value, getCustomizedTagProps, ownerState);
|
|
539
540
|
} else {
|
|
540
|
-
startAdornment = value.map((option, index) =>
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
541
|
+
startAdornment = value.map((option, index) => {
|
|
542
|
+
const _getCustomizedTagProp = getCustomizedTagProps({
|
|
543
|
+
index
|
|
544
|
+
}),
|
|
545
|
+
{
|
|
546
|
+
key
|
|
547
|
+
} = _getCustomizedTagProp,
|
|
548
|
+
customTagProps = _objectWithoutPropertiesLoose(_getCustomizedTagProp, _excluded3);
|
|
549
|
+
return /*#__PURE__*/_jsx(Chip, _extends({
|
|
550
|
+
label: getOptionLabel(option),
|
|
551
|
+
size: size
|
|
552
|
+
}, customTagProps, ChipProps), key);
|
|
553
|
+
});
|
|
546
554
|
}
|
|
547
555
|
}
|
|
548
556
|
if (limitTags > -1 && Array.isArray(startAdornment)) {
|
|
@@ -570,9 +578,13 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
|
|
|
570
578
|
const renderGroup = renderGroupProp || defaultRenderGroup;
|
|
571
579
|
const defaultRenderOption = (props2, option) => {
|
|
572
580
|
// Need to clearly apply key because of https://github.com/vercel/next.js/issues/55642
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
581
|
+
const {
|
|
582
|
+
key
|
|
583
|
+
} = props2,
|
|
584
|
+
otherProps = _objectWithoutPropertiesLoose(props2, _excluded4);
|
|
585
|
+
return /*#__PURE__*/_jsx("li", _extends({}, otherProps, {
|
|
586
|
+
children: getOptionLabel(option)
|
|
587
|
+
}), key);
|
|
576
588
|
};
|
|
577
589
|
const renderOption = renderOptionProp || defaultRenderOption;
|
|
578
590
|
const renderListOption = (option, index) => {
|
package/modern/Hidden/Hidden.js
CHANGED
|
@@ -10,6 +10,8 @@ import HiddenCss from './HiddenCss';
|
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Responsively hides children based on the selected implementation.
|
|
13
|
+
*
|
|
14
|
+
* @deprecated The Hidden component was deprecated in Material UI v5. To learn more, see [the Hidden section](/material-ui/migration/v5-component-changes/#hidden) of the migration docs.
|
|
13
15
|
*/
|
|
14
16
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
17
|
function Hidden(props) {
|
|
@@ -193,7 +193,7 @@ process.env.NODE_ENV !== "production" ? Pagination.propTypes /* remove-proptypes
|
|
|
193
193
|
*/
|
|
194
194
|
onChange: PropTypes.func,
|
|
195
195
|
/**
|
|
196
|
-
* The current page.
|
|
196
|
+
* The current page. Unlike `TablePagination`, which starts numbering from `0`, this pagination starts from `1`.
|
|
197
197
|
*/
|
|
198
198
|
page: integerPropType,
|
|
199
199
|
/**
|
package/modern/Slider/Slider.js
CHANGED
|
@@ -322,7 +322,7 @@ export const SliderThumb = styled('span', {
|
|
|
322
322
|
}
|
|
323
323
|
}),
|
|
324
324
|
[`&.${sliderClasses.active}`]: _extends({}, theme.vars ? {
|
|
325
|
-
boxShadow: `0px 0px 0px 14px rgba(${theme.vars.palette[color].mainChannel} / 0.16)
|
|
325
|
+
boxShadow: `0px 0px 0px 14px rgba(${theme.vars.palette[color].mainChannel} / 0.16)`
|
|
326
326
|
} : {
|
|
327
327
|
boxShadow: `0px 0px 0px 14px ${alpha(theme.palette[color].main, 0.16)}`
|
|
328
328
|
})
|
package/modern/index.js
CHANGED
|
@@ -18,6 +18,9 @@ export default function responsiveFontSizes(themeInput, options = {}) {
|
|
|
18
18
|
const breakpointValues = breakpoints.map(x => theme.breakpoints.values[x]);
|
|
19
19
|
variants.forEach(variant => {
|
|
20
20
|
const style = typography[variant];
|
|
21
|
+
if (!style) {
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
21
24
|
const remFontSize = parseFloat(convert(style.fontSize, 'rem'));
|
|
22
25
|
if (remFontSize <= 1) {
|
|
23
26
|
return;
|
|
@@ -14,8 +14,7 @@ Object.defineProperty(exports, "createFilterOptions", {
|
|
|
14
14
|
exports.default = void 0;
|
|
15
15
|
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
16
16
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
17
|
-
var
|
|
18
|
-
var React = _react;
|
|
17
|
+
var React = _interopRequireWildcard(require("react"));
|
|
19
18
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
20
19
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
21
20
|
var _integerPropType = _interopRequireDefault(require("@mui/utils/integerPropType"));
|
|
@@ -41,7 +40,9 @@ var _useForkRef = _interopRequireDefault(require("../utils/useForkRef"));
|
|
|
41
40
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
42
41
|
var _ClearIcon, _ArrowDropDownIcon;
|
|
43
42
|
const _excluded = ["autoComplete", "autoHighlight", "autoSelect", "blurOnSelect", "ChipProps", "className", "clearIcon", "clearOnBlur", "clearOnEscape", "clearText", "closeText", "componentsProps", "defaultValue", "disableClearable", "disableCloseOnSelect", "disabled", "disabledItemsFocusable", "disableListWrap", "disablePortal", "filterOptions", "filterSelectedOptions", "forcePopupIcon", "freeSolo", "fullWidth", "getLimitTagsText", "getOptionDisabled", "getOptionKey", "getOptionLabel", "isOptionEqualToValue", "groupBy", "handleHomeEndKeys", "id", "includeInputInList", "inputValue", "limitTags", "ListboxComponent", "ListboxProps", "loading", "loadingText", "multiple", "noOptionsText", "onChange", "onClose", "onHighlightChange", "onInputChange", "onOpen", "open", "openOnFocus", "openText", "options", "PaperComponent", "PopperComponent", "popupIcon", "readOnly", "renderGroup", "renderInput", "renderOption", "renderTags", "selectOnFocus", "size", "slotProps", "value"],
|
|
44
|
-
_excluded2 = ["ref"]
|
|
43
|
+
_excluded2 = ["ref"],
|
|
44
|
+
_excluded3 = ["key"],
|
|
45
|
+
_excluded4 = ["key"];
|
|
45
46
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
46
47
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
47
48
|
const useThemeProps = (0, _zeroStyled.createUseThemeProps)('MuiAutocomplete');
|
|
@@ -553,12 +554,19 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
|
|
|
553
554
|
if (renderTags) {
|
|
554
555
|
startAdornment = renderTags(value, getCustomizedTagProps, ownerState);
|
|
555
556
|
} else {
|
|
556
|
-
startAdornment = value.map((option, index) =>
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
557
|
+
startAdornment = value.map((option, index) => {
|
|
558
|
+
const _getCustomizedTagProp = getCustomizedTagProps({
|
|
559
|
+
index
|
|
560
|
+
}),
|
|
561
|
+
{
|
|
562
|
+
key
|
|
563
|
+
} = _getCustomizedTagProp,
|
|
564
|
+
customTagProps = (0, _objectWithoutPropertiesLoose2.default)(_getCustomizedTagProp, _excluded3);
|
|
565
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Chip.default, (0, _extends2.default)({
|
|
566
|
+
label: getOptionLabel(option),
|
|
567
|
+
size: size
|
|
568
|
+
}, customTagProps, ChipProps), key);
|
|
569
|
+
});
|
|
562
570
|
}
|
|
563
571
|
}
|
|
564
572
|
if (limitTags > -1 && Array.isArray(startAdornment)) {
|
|
@@ -586,9 +594,13 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
|
|
|
586
594
|
const renderGroup = renderGroupProp || defaultRenderGroup;
|
|
587
595
|
const defaultRenderOption = (props2, option) => {
|
|
588
596
|
// Need to clearly apply key because of https://github.com/vercel/next.js/issues/55642
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
597
|
+
const {
|
|
598
|
+
key
|
|
599
|
+
} = props2,
|
|
600
|
+
otherProps = (0, _objectWithoutPropertiesLoose2.default)(props2, _excluded4);
|
|
601
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("li", (0, _extends2.default)({}, otherProps, {
|
|
602
|
+
children: getOptionLabel(option)
|
|
603
|
+
}), key);
|
|
592
604
|
};
|
|
593
605
|
const renderOption = renderOptionProp || defaultRenderOption;
|
|
594
606
|
const renderListOption = (option, index) => {
|
package/node/Hidden/Hidden.js
CHANGED
|
@@ -16,6 +16,8 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
16
16
|
const _excluded = ["implementation", "lgDown", "lgUp", "mdDown", "mdUp", "smDown", "smUp", "xlDown", "xlUp", "xsDown", "xsUp"];
|
|
17
17
|
/**
|
|
18
18
|
* Responsively hides children based on the selected implementation.
|
|
19
|
+
*
|
|
20
|
+
* @deprecated The Hidden component was deprecated in Material UI v5. To learn more, see [the Hidden section](/material-ui/migration/v5-component-changes/#hidden) of the migration docs.
|
|
19
21
|
*/
|
|
20
22
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
21
23
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
@@ -201,7 +201,7 @@ process.env.NODE_ENV !== "production" ? Pagination.propTypes /* remove-proptypes
|
|
|
201
201
|
*/
|
|
202
202
|
onChange: _propTypes.default.func,
|
|
203
203
|
/**
|
|
204
|
-
* The current page.
|
|
204
|
+
* The current page. Unlike `TablePagination`, which starts numbering from `0`, this pagination starts from `1`.
|
|
205
205
|
*/
|
|
206
206
|
page: _integerPropType.default,
|
|
207
207
|
/**
|
package/node/Slider/Slider.js
CHANGED
|
@@ -344,7 +344,7 @@ const SliderThumb = exports.SliderThumb = (0, _zeroStyled.styled)('span', {
|
|
|
344
344
|
}
|
|
345
345
|
}),
|
|
346
346
|
[`&.${_sliderClasses.default.active}`]: (0, _extends2.default)({}, theme.vars ? {
|
|
347
|
-
boxShadow: `0px 0px 0px 14px rgba(${theme.vars.palette[color].mainChannel} / 0.16)
|
|
347
|
+
boxShadow: `0px 0px 0px 14px rgba(${theme.vars.palette[color].mainChannel} / 0.16)`
|
|
348
348
|
} : {
|
|
349
349
|
boxShadow: `0px 0px 0px 14px ${(0, _colorManipulator.alpha)(theme.palette[color].main, 0.16)}`
|
|
350
350
|
})
|
package/node/index.js
CHANGED
|
@@ -25,6 +25,9 @@ function responsiveFontSizes(themeInput, options = {}) {
|
|
|
25
25
|
const breakpointValues = breakpoints.map(x => theme.breakpoints.values[x]);
|
|
26
26
|
variants.forEach(variant => {
|
|
27
27
|
const style = typography[variant];
|
|
28
|
+
if (!style) {
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
28
31
|
const remFontSize = parseFloat(convert(style.fontSize, 'rem'));
|
|
29
32
|
if (remFontSize <= 1) {
|
|
30
33
|
return;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/material",
|
|
3
|
-
"version": "5.15.
|
|
3
|
+
"version": "5.15.19",
|
|
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.",
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
"prop-types": "^15.8.1",
|
|
35
35
|
"react-is": "^18.2.0",
|
|
36
36
|
"react-transition-group": "^4.4.5",
|
|
37
|
-
"@mui/core-downloads-tracker": "^5.15.18",
|
|
38
|
-
"@mui/types": "^7.2.14",
|
|
39
37
|
"@mui/base": "5.0.0-beta.40",
|
|
38
|
+
"@mui/system": "^5.15.15",
|
|
39
|
+
"@mui/core-downloads-tracker": "^5.15.19",
|
|
40
40
|
"@mui/utils": "^5.15.14",
|
|
41
|
-
"@mui/
|
|
41
|
+
"@mui/types": "^7.2.14"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"@emotion/react": "^11.5.0",
|
|
@@ -18,6 +18,9 @@ export default function responsiveFontSizes(themeInput, options = {}) {
|
|
|
18
18
|
const breakpointValues = breakpoints.map(x => theme.breakpoints.values[x]);
|
|
19
19
|
variants.forEach(variant => {
|
|
20
20
|
const style = typography[variant];
|
|
21
|
+
if (!style) {
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
21
24
|
const remFontSize = parseFloat(convert(style.fontSize, 'rem'));
|
|
22
25
|
if (remFontSize <= 1) {
|
|
23
26
|
return;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @mui/material v5.15.
|
|
2
|
+
* @mui/material v5.15.19
|
|
3
3
|
*
|
|
4
4
|
* @license MIT
|
|
5
5
|
* This source code is licensed under the MIT license found in the
|
|
@@ -11028,6 +11028,9 @@
|
|
|
11028
11028
|
});
|
|
11029
11029
|
variants.forEach(function (variant) {
|
|
11030
11030
|
var style = typography[variant];
|
|
11031
|
+
if (!style) {
|
|
11032
|
+
return;
|
|
11033
|
+
}
|
|
11031
11034
|
var remFontSize = parseFloat(convert(style.fontSize, 'rem'));
|
|
11032
11035
|
if (remFontSize <= 1) {
|
|
11033
11036
|
return;
|
|
@@ -23496,12 +23499,15 @@
|
|
|
23496
23499
|
startAdornment = renderTags(value, getCustomizedTagProps, ownerState);
|
|
23497
23500
|
} else {
|
|
23498
23501
|
startAdornment = value.map(function (option, index) {
|
|
23502
|
+
var _getCustomizedTagProp = getCustomizedTagProps({
|
|
23503
|
+
index: index
|
|
23504
|
+
}),
|
|
23505
|
+
key = _getCustomizedTagProp.key,
|
|
23506
|
+
customTagProps = _objectWithoutProperties(_getCustomizedTagProp, ["key"]);
|
|
23499
23507
|
return /*#__PURE__*/jsxRuntime_1(Chip$1, _extends({
|
|
23500
23508
|
label: getOptionLabel(option),
|
|
23501
23509
|
size: size
|
|
23502
|
-
},
|
|
23503
|
-
index: index
|
|
23504
|
-
}), ChipProps));
|
|
23510
|
+
}, customTagProps, ChipProps), key);
|
|
23505
23511
|
});
|
|
23506
23512
|
}
|
|
23507
23513
|
}
|
|
@@ -23532,9 +23538,11 @@
|
|
|
23532
23538
|
var renderGroup = renderGroupProp || defaultRenderGroup;
|
|
23533
23539
|
var defaultRenderOption = function defaultRenderOption(props2, option) {
|
|
23534
23540
|
// Need to clearly apply key because of https://github.com/vercel/next.js/issues/55642
|
|
23535
|
-
|
|
23536
|
-
|
|
23537
|
-
}
|
|
23541
|
+
var key = props2.key,
|
|
23542
|
+
otherProps = _objectWithoutProperties(props2, ["key"]);
|
|
23543
|
+
return /*#__PURE__*/jsxRuntime_1("li", _extends({}, otherProps, {
|
|
23544
|
+
children: getOptionLabel(option)
|
|
23545
|
+
}), key);
|
|
23538
23546
|
};
|
|
23539
23547
|
var renderOption = renderOptionProp || defaultRenderOption;
|
|
23540
23548
|
var renderListOption = function renderListOption(option, index) {
|
|
@@ -39149,7 +39157,7 @@
|
|
|
39149
39157
|
*/
|
|
39150
39158
|
onChange: PropTypes.func,
|
|
39151
39159
|
/**
|
|
39152
|
-
* The current page.
|
|
39160
|
+
* The current page. Unlike `TablePagination`, which starts numbering from `0`, this pagination starts from `1`.
|
|
39153
39161
|
*/
|
|
39154
39162
|
page: integerPropType,
|
|
39155
39163
|
/**
|
|
@@ -41789,7 +41797,7 @@
|
|
|
41789
41797
|
boxShadow: 'none'
|
|
41790
41798
|
}
|
|
41791
41799
|
})), "&.".concat(sliderClasses$1.active), _extends({}, theme.vars ? {
|
|
41792
|
-
boxShadow: "0px 0px 0px 14px rgba(".concat(theme.vars.palette[color].mainChannel, " / 0.16)
|
|
41800
|
+
boxShadow: "0px 0px 0px 14px rgba(".concat(theme.vars.palette[color].mainChannel, " / 0.16)")
|
|
41793
41801
|
} : {
|
|
41794
41802
|
boxShadow: "0px 0px 0px 14px ".concat(alpha(theme.palette[color].main, 0.16))
|
|
41795
41803
|
}))
|