@mui/material 5.15.5 → 5.15.6
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/Avatar/Avatar.js +32 -15
- package/CHANGELOG.md +304 -246
- package/PaginationItem/PaginationItem.js +1 -1
- package/PaginationItem/paginationItemClasses.d.ts +20 -4
- package/PaginationItem/paginationItemClasses.js +1 -1
- package/README.md +5 -5
- package/Rating/Rating.js +1 -0
- package/TablePagination/TablePagination.d.ts +1 -1
- package/index.js +1 -1
- package/legacy/Avatar/Avatar.js +32 -15
- package/legacy/PaginationItem/PaginationItem.js +1 -1
- package/legacy/PaginationItem/paginationItemClasses.js +1 -1
- package/legacy/Rating/Rating.js +1 -0
- package/legacy/index.js +1 -1
- package/legacy/styles/createTheme.js +13 -1
- package/modern/Avatar/Avatar.js +32 -15
- package/modern/PaginationItem/PaginationItem.js +1 -1
- package/modern/PaginationItem/paginationItemClasses.js +1 -1
- package/modern/Rating/Rating.js +1 -0
- package/modern/index.js +1 -1
- package/modern/styles/createTheme.js +15 -1
- package/node/Avatar/Avatar.js +32 -15
- package/node/PaginationItem/PaginationItem.js +1 -1
- package/node/PaginationItem/paginationItemClasses.js +1 -1
- package/node/Rating/Rating.js +1 -0
- package/node/index.js +1 -1
- package/node/styles/createTheme.js +15 -1
- package/package.json +6 -6
- package/styles/createTheme.d.ts +1 -0
- package/styles/createTheme.js +15 -1
- package/umd/material-ui.development.js +49 -19
- package/umd/material-ui.production.min.js +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @mui/material v5.15.
|
|
2
|
+
* @mui/material v5.15.6
|
|
3
3
|
*
|
|
4
4
|
* @license MIT
|
|
5
5
|
* This source code is licensed under the MIT license found in the
|
|
@@ -10565,7 +10565,19 @@
|
|
|
10565
10565
|
shadows: shadows$1.slice(),
|
|
10566
10566
|
typography: createTypography(palette, typographyInput),
|
|
10567
10567
|
transitions: createTransitions(transitionsInput),
|
|
10568
|
-
zIndex: _extends({}, zIndex$1)
|
|
10568
|
+
zIndex: _extends({}, zIndex$1),
|
|
10569
|
+
applyDarkStyles: function applyDarkStyles(css) {
|
|
10570
|
+
if (this.vars) {
|
|
10571
|
+
// If CssVarsProvider is used as a provider,
|
|
10572
|
+
// returns ':where([data-mui-color-scheme="light|dark"]) &'
|
|
10573
|
+
var selector = this.getColorSchemeSelector('dark').replace(/(\[[^\]]+\])/, ':where($1)');
|
|
10574
|
+
return _defineProperty({}, selector, css);
|
|
10575
|
+
}
|
|
10576
|
+
if (this.palette.mode === 'dark') {
|
|
10577
|
+
return css;
|
|
10578
|
+
}
|
|
10579
|
+
return {};
|
|
10580
|
+
}
|
|
10569
10581
|
});
|
|
10570
10582
|
muiTheme = deepmerge(muiTheme, other);
|
|
10571
10583
|
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
@@ -23804,9 +23816,8 @@
|
|
|
23804
23816
|
return [styles.root, styles[ownerState.variant], ownerState.colorDefault && styles.colorDefault];
|
|
23805
23817
|
}
|
|
23806
23818
|
})(function (_ref) {
|
|
23807
|
-
var theme = _ref.theme
|
|
23808
|
-
|
|
23809
|
-
return _extends({
|
|
23819
|
+
var theme = _ref.theme;
|
|
23820
|
+
return {
|
|
23810
23821
|
position: 'relative',
|
|
23811
23822
|
display: 'flex',
|
|
23812
23823
|
alignItems: 'center',
|
|
@@ -23819,18 +23830,36 @@
|
|
|
23819
23830
|
lineHeight: 1,
|
|
23820
23831
|
borderRadius: '50%',
|
|
23821
23832
|
overflow: 'hidden',
|
|
23822
|
-
userSelect: 'none'
|
|
23823
|
-
|
|
23824
|
-
|
|
23825
|
-
|
|
23826
|
-
|
|
23827
|
-
|
|
23828
|
-
|
|
23829
|
-
|
|
23830
|
-
|
|
23831
|
-
|
|
23832
|
-
|
|
23833
|
-
|
|
23833
|
+
userSelect: 'none',
|
|
23834
|
+
variants: [{
|
|
23835
|
+
props: {
|
|
23836
|
+
variant: 'rounded'
|
|
23837
|
+
},
|
|
23838
|
+
style: {
|
|
23839
|
+
borderRadius: (theme.vars || theme).shape.borderRadius
|
|
23840
|
+
}
|
|
23841
|
+
}, {
|
|
23842
|
+
props: {
|
|
23843
|
+
variant: 'square'
|
|
23844
|
+
},
|
|
23845
|
+
style: {
|
|
23846
|
+
borderRadius: 0
|
|
23847
|
+
}
|
|
23848
|
+
}, {
|
|
23849
|
+
props: {
|
|
23850
|
+
colorDefault: true
|
|
23851
|
+
},
|
|
23852
|
+
style: _extends({
|
|
23853
|
+
color: (theme.vars || theme).palette.background["default"]
|
|
23854
|
+
}, theme.vars ? {
|
|
23855
|
+
backgroundColor: theme.vars.palette.Avatar.defaultBg
|
|
23856
|
+
} : _extends({
|
|
23857
|
+
backgroundColor: theme.palette.grey[400]
|
|
23858
|
+
}, theme.applyDarkStyles({
|
|
23859
|
+
backgroundColor: theme.palette.grey[600]
|
|
23860
|
+
})))
|
|
23861
|
+
}]
|
|
23862
|
+
};
|
|
23834
23863
|
});
|
|
23835
23864
|
var AvatarImg = styled$1('img', {
|
|
23836
23865
|
name: 'MuiAvatar',
|
|
@@ -38381,7 +38410,7 @@
|
|
|
38381
38410
|
function getPaginationItemUtilityClass(slot) {
|
|
38382
38411
|
return generateUtilityClass$1('MuiPaginationItem', slot);
|
|
38383
38412
|
}
|
|
38384
|
-
var paginationItemClasses = generateUtilityClasses$1('MuiPaginationItem', ['root', 'page', 'sizeSmall', 'sizeLarge', 'text', 'textPrimary', 'textSecondary', 'outlined', 'outlinedPrimary', 'outlinedSecondary', 'rounded', 'ellipsis', 'firstLast', 'previousNext', 'focusVisible', 'disabled', 'selected', 'icon']);
|
|
38413
|
+
var paginationItemClasses = generateUtilityClasses$1('MuiPaginationItem', ['root', 'page', 'sizeSmall', 'sizeLarge', 'text', 'textPrimary', 'textSecondary', 'outlined', 'outlinedPrimary', 'outlinedSecondary', 'rounded', 'ellipsis', 'firstLast', 'previousNext', 'focusVisible', 'disabled', 'selected', 'icon', 'colorPrimary', 'colorSecondary']);
|
|
38385
38414
|
var paginationItemClasses$1 = paginationItemClasses;
|
|
38386
38415
|
|
|
38387
38416
|
var FirstPageIconDefault = createSvgIcon( /*#__PURE__*/jsxRuntime_1("path", {
|
|
@@ -38414,7 +38443,7 @@
|
|
|
38414
38443
|
type = ownerState.type,
|
|
38415
38444
|
variant = ownerState.variant;
|
|
38416
38445
|
var slots = {
|
|
38417
|
-
root: ['root', "size".concat(capitalize(size)), variant, shape, color !== 'standard' && "".concat(variant).concat(capitalize(color)), disabled && 'disabled', selected && 'selected', {
|
|
38446
|
+
root: ['root', "size".concat(capitalize(size)), variant, shape, color !== 'standard' && "color".concat(capitalize(color)), color !== 'standard' && "".concat(variant).concat(capitalize(color)), disabled && 'disabled', selected && 'selected', {
|
|
38418
38447
|
page: 'page',
|
|
38419
38448
|
first: 'firstLast',
|
|
38420
38449
|
last: 'firstLast',
|
|
@@ -39422,6 +39451,7 @@
|
|
|
39422
39451
|
color: '#faaf00',
|
|
39423
39452
|
cursor: 'pointer',
|
|
39424
39453
|
textAlign: 'left',
|
|
39454
|
+
width: 'min-content',
|
|
39425
39455
|
WebkitTapHighlightColor: 'transparent'
|
|
39426
39456
|
}, "&.".concat(ratingClasses$1.disabled), {
|
|
39427
39457
|
opacity: (theme.vars || theme).palette.action.disabledOpacity,
|