@mui/material 5.15.15 β 5.15.17
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/CHANGELOG.md +85 -2
- package/Dialog/Dialog.js +10 -1
- package/Select/Select.d.ts +9 -6
- package/Slider/Slider.js +25 -25
- package/index.js +1 -1
- package/legacy/Dialog/Dialog.js +10 -1
- package/legacy/Slider/Slider.js +24 -24
- package/legacy/index.js +1 -1
- package/legacy/locale/index.js +1 -1
- package/locale/index.js +1 -1
- package/modern/Dialog/Dialog.js +10 -1
- package/modern/Slider/Slider.js +22 -22
- package/modern/index.js +1 -1
- package/modern/locale/index.js +1 -1
- package/node/Dialog/Dialog.js +10 -1
- package/node/Slider/Slider.js +25 -25
- package/node/index.js +1 -1
- package/node/locale/index.js +1 -1
- package/package.json +4 -4
- package/umd/material-ui.development.js +41 -27
- package/umd/material-ui.production.min.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,88 @@
|
|
|
1
1
|
# [Versions](https://mui.com/versions/)
|
|
2
2
|
|
|
3
|
+
## v5.15.17
|
|
4
|
+
|
|
5
|
+
<!-- generated comparing v5.15.16..master -->
|
|
6
|
+
|
|
7
|
+
_May 8, 2024_
|
|
8
|
+
|
|
9
|
+
A big thanks to the 4 contributors who made this release possible.
|
|
10
|
+
This release was mostly about π bug fixes and π documentation improvements.
|
|
11
|
+
|
|
12
|
+
### `@mui/material@5.15.17`
|
|
13
|
+
|
|
14
|
+
- [Slider] Move palette styles to the bottom (#41676) @siriwatknp
|
|
15
|
+
|
|
16
|
+
### Docs
|
|
17
|
+
|
|
18
|
+
- Fix SEO redirection issues @oliviertassinari
|
|
19
|
+
- [material-ui] Fix broken link (@aarongarciah) (#42143) @github-actions[bot]
|
|
20
|
+
- [material-ui] Fix link on the Sync page (@danilo-leal) (#42089) @github-actions[bot]
|
|
21
|
+
|
|
22
|
+
### Core
|
|
23
|
+
|
|
24
|
+
- [blog] Shorten title to fit @oliviertassinari
|
|
25
|
+
- [blog] Update Sync post OG image (@danilo-leal) (#42117) @github-actions[bot]
|
|
26
|
+
- [blog] A few tweaks in introducing-sync-plugin (@oliviertassinari) (#42094) @github-actions[bot]
|
|
27
|
+
- [docs-infra] Fix code block layout shift (#41917) @oliviertassinari
|
|
28
|
+
- [website] Fix home page slider's track position (@aarongarciah) (#42144) @github-actions[bot]
|
|
29
|
+
- [website] Closing the survey @oliviertassinari
|
|
30
|
+
- [website] Remove Survey banner from website and Core docs (#42104) @joserodolfofreitas
|
|
31
|
+
|
|
32
|
+
All contributors of this release in alphabetical order: @github-actions[bot], @joserodolfofreitas, @oliviertassinari, @siriwatknp
|
|
33
|
+
|
|
34
|
+
## v5.15.16
|
|
35
|
+
|
|
36
|
+
<!-- generated comparing v5.15.15..master -->
|
|
37
|
+
|
|
38
|
+
_May 1, 2024_
|
|
39
|
+
|
|
40
|
+
A big thanks to the 8 contributors who made this release possible. Here are some highlights β¨:
|
|
41
|
+
This release was mostly about π bug fixes and π documentation improvements.
|
|
42
|
+
|
|
43
|
+
### `@mui/material@5.15.16`
|
|
44
|
+
|
|
45
|
+
- [material-ui][Dialog] Prevent onClick on the root element from being overwritten (@ryanburr) (#41914) @github-actions[bot]
|
|
46
|
+
- [material-ui][Select] Fix `muiName` property TypeScript error (@EyaOuenniche) (#41786) @github-actions[bot]
|
|
47
|
+
- β>[material-ui][l10n] Fix typo in is-IS locale (@magnimarels) (#41815) @github-actions[bot]
|
|
48
|
+
|
|
49
|
+
### Docs
|
|
50
|
+
|
|
51
|
+
- Fix small SEO issues @oliviertassinari
|
|
52
|
+
- Fix 301 Toolpad links @oliviertassinari
|
|
53
|
+
- Fix 301 Toolpad links @oliviertassinari
|
|
54
|
+
- Fix 301 image redirections @oliviertassinari
|
|
55
|
+
- Fix small SEO issues @oliviertassinari
|
|
56
|
+
- Fix 301 redirection @oliviertassinari
|
|
57
|
+
- Fix format git diff regression (#41882) @oliviertassinari
|
|
58
|
+
- Fix 301 links @oliviertassinari
|
|
59
|
+
- [material-ui] Fix import statement in migration guide (@sai6855) (#41864) @github-actions[bot]
|
|
60
|
+
- [material-ui] Update Figma plugin name (@danilo-leal) (#42057) @github-actions[bot]
|
|
61
|
+
- [material-ui] Fix minor spelling error in the "About the lab" page (@ryanhartwig) (#42075) @github-actions[bot]
|
|
62
|
+
- [material-ui] Add missing backticks to HTML tag in the installation page (@Miguelrom) (#42009) @github-actions[bot]
|
|
63
|
+
- [material-ui] Add Connect-related content (@danilo-leal) (#41924) @DiegoAndai
|
|
64
|
+
- [material-ui] Fix Material 3 message typo (@aarongarciah) (#41822) @github-actions[bot]
|
|
65
|
+
- [material-ui] Remove Data Grid v7 beta callout (@cherniavskii) (#41842) @github-actions[bot]
|
|
66
|
+
- [material-ui][templates] Fix input props attributes in Landing Page template (@5-tom) (#42034) @github-actions[bot]
|
|
67
|
+
- [system] Update typo on the sx prop page (@bricker) (#42078) @github-actions[bot]
|
|
68
|
+
|
|
69
|
+
### Core
|
|
70
|
+
|
|
71
|
+
- [blog] Add post to introduce the Connect plugin (@danilo-leal) (#41929) @DiegoAndai
|
|
72
|
+
- [core] Automate cherry-pick of PRs from `next` -> `master` (#41742) @aarongarciah
|
|
73
|
+
- [docs-infra] Improve Twitter OG:image (#41860) @oliviertassinari
|
|
74
|
+
- [docs-infra] Use edge function for card generation (#41188) @alexfauquette
|
|
75
|
+
- [docs-infra] Fix drawer performances (#41807) (#41820) @alexfauquette
|
|
76
|
+
- [docs-infra] Fix analytics about inline ads (#41474) @alexfauquette
|
|
77
|
+
- [website] Sync career roles (@oliviertassinari) (#42059) @github-actions[bot]
|
|
78
|
+
- [website] Add content about the Sync plugin in the MaterialΒ UI page (@danilo-leal) (#42074) @github-actions[bot]
|
|
79
|
+
- [website] Add Nadja on the about page (#42054) @mnajdova
|
|
80
|
+
- [website] Close the `Design Engineer - X` role (#42014) @DanailH
|
|
81
|
+
- [website] Remove customer support agent role from website (@rluzists1) (#41996) @github-actions[bot]
|
|
82
|
+
- [website] Add Jose to About Us (#41759) @JCQuintas
|
|
83
|
+
|
|
84
|
+
All contributors of this release in alphabetical order: @aarongarciah, @alexfauquette, @DanailH, @DiegoAndai, @github-actions[bot], @JCQuintas, @mnajdova, @oliviertassinari
|
|
85
|
+
|
|
3
86
|
## v5.15.15
|
|
4
87
|
|
|
5
88
|
<!-- generated comparing v5.15.14..master -->
|
|
@@ -7962,7 +8045,7 @@ A big thanks to the 25 contributors who made this release possible. Here are som
|
|
|
7962
8045
|
|
|
7963
8046
|
<a href="https://mui.com/components/tables/#unstyled-table"><img width="800" alt="unstyled table" src="https://user-images.githubusercontent.com/4512430/144862194-584356ef-7d9d-462c-a631-186a7e716193.png"></a>
|
|
7964
8047
|
|
|
7965
|
-
You can follow our progress with unstyled components at https://github.com/mui/
|
|
8048
|
+
You can follow our progress with unstyled components at https://github.com/mui/base-ui/issues/10.
|
|
7966
8049
|
|
|
7967
8050
|
- π We have added an example of how to use MUI with [Remix](https://remix.run/) (#29952) @mnajdova
|
|
7968
8051
|
|
|
@@ -9432,7 +9515,7 @@ A big thanks to the 17 contributors who made this release possible. Here are som
|
|
|
9432
9515
|
|
|
9433
9516
|
<a href="https://mui.com/components/switches/#unstyled"><img width="832" alt="switch" src="https://user-images.githubusercontent.com/3165635/125192249-236f8a80-e247-11eb-9df9-17d476379a32.png"></a>
|
|
9434
9517
|
|
|
9435
|
-
You can follow our progress at https://github.com/mui/
|
|
9518
|
+
You can follow our progress at https://github.com/mui/base-ui/issues/10.
|
|
9436
9519
|
|
|
9437
9520
|
- π We have updated the default `info` `success` `warning` color to be more accessible (#26817) @siriwatknp.
|
|
9438
9521
|
You can find the new [default values](https://mui.com/material-ui/customization/palette/#default-values) in the documentation.
|
package/Dialog/Dialog.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
4
4
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
5
|
-
const _excluded = ["aria-describedby", "aria-labelledby", "BackdropComponent", "BackdropProps", "children", "className", "disableEscapeKeyDown", "fullScreen", "fullWidth", "maxWidth", "onBackdropClick", "onClose", "open", "PaperComponent", "PaperProps", "scroll", "TransitionComponent", "transitionDuration", "TransitionProps"];
|
|
5
|
+
const _excluded = ["aria-describedby", "aria-labelledby", "BackdropComponent", "BackdropProps", "children", "className", "disableEscapeKeyDown", "fullScreen", "fullWidth", "maxWidth", "onBackdropClick", "onClick", "onClose", "open", "PaperComponent", "PaperProps", "scroll", "TransitionComponent", "transitionDuration", "TransitionProps"];
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import clsx from 'clsx';
|
|
@@ -171,6 +171,7 @@ const Dialog = /*#__PURE__*/React.forwardRef(function Dialog(inProps, ref) {
|
|
|
171
171
|
fullWidth = false,
|
|
172
172
|
maxWidth = 'sm',
|
|
173
173
|
onBackdropClick,
|
|
174
|
+
onClick,
|
|
174
175
|
onClose,
|
|
175
176
|
open,
|
|
176
177
|
PaperComponent = Paper,
|
|
@@ -196,6 +197,10 @@ const Dialog = /*#__PURE__*/React.forwardRef(function Dialog(inProps, ref) {
|
|
|
196
197
|
backdropClick.current = event.target === event.currentTarget;
|
|
197
198
|
};
|
|
198
199
|
const handleBackdropClick = event => {
|
|
200
|
+
if (onClick) {
|
|
201
|
+
onClick(event);
|
|
202
|
+
}
|
|
203
|
+
|
|
199
204
|
// Ignore the events not coming from the "backdrop".
|
|
200
205
|
if (!backdropClick.current) {
|
|
201
206
|
return;
|
|
@@ -334,6 +339,10 @@ process.env.NODE_ENV !== "production" ? Dialog.propTypes /* remove-proptypes */
|
|
|
334
339
|
* @deprecated Use the `onClose` prop with the `reason` argument to handle the `backdropClick` events.
|
|
335
340
|
*/
|
|
336
341
|
onBackdropClick: PropTypes.func,
|
|
342
|
+
/**
|
|
343
|
+
* @ignore
|
|
344
|
+
*/
|
|
345
|
+
onClick: PropTypes.func,
|
|
337
346
|
/**
|
|
338
347
|
* Callback fired when the component requests to be closed.
|
|
339
348
|
*
|
package/Select/Select.d.ts
CHANGED
|
@@ -151,7 +151,8 @@ export interface BaseSelectProps<Value = unknown>
|
|
|
151
151
|
variant?: SelectVariants;
|
|
152
152
|
}
|
|
153
153
|
|
|
154
|
-
export interface FilledSelectProps
|
|
154
|
+
export interface FilledSelectProps
|
|
155
|
+
extends Omit<FilledInputProps, 'value' | 'onChange' | 'id' | 'classes' | 'inputProps'> {
|
|
155
156
|
/**
|
|
156
157
|
* The variant to use.
|
|
157
158
|
* @default 'outlined'
|
|
@@ -159,7 +160,8 @@ export interface FilledSelectProps extends Omit<FilledInputProps, 'value' | 'onC
|
|
|
159
160
|
variant: 'filled';
|
|
160
161
|
}
|
|
161
162
|
|
|
162
|
-
export interface StandardSelectProps
|
|
163
|
+
export interface StandardSelectProps
|
|
164
|
+
extends Omit<InputProps, 'value' | 'onChange' | 'id' | 'classes' | 'inputProps'> {
|
|
163
165
|
/**
|
|
164
166
|
* The variant to use.
|
|
165
167
|
* @default 'outlined'
|
|
@@ -167,7 +169,8 @@ export interface StandardSelectProps extends Omit<InputProps, 'value' | 'onChang
|
|
|
167
169
|
variant: 'standard';
|
|
168
170
|
}
|
|
169
171
|
|
|
170
|
-
export interface OutlinedSelectProps
|
|
172
|
+
export interface OutlinedSelectProps
|
|
173
|
+
extends Omit<OutlinedInputProps, 'value' | 'onChange' | 'id' | 'classes' | 'inputProps'> {
|
|
171
174
|
/**
|
|
172
175
|
* The variant to use.
|
|
173
176
|
* @default 'outlined'
|
|
@@ -193,8 +196,8 @@ export type SelectProps<Value = unknown> =
|
|
|
193
196
|
* - [Select API](https://mui.com/material-ui/api/select/)
|
|
194
197
|
* - inherits [OutlinedInput API](https://mui.com/material-ui/api/outlined-input/)
|
|
195
198
|
*/
|
|
196
|
-
|
|
197
|
-
props: SelectProps<Value>,
|
|
198
|
-
): JSX.Element & {
|
|
199
|
+
declare const Select: (<Value = unknown>(props: SelectProps<Value>) => JSX.Element) & {
|
|
199
200
|
muiName: string;
|
|
200
201
|
};
|
|
202
|
+
|
|
203
|
+
export default Select;
|
package/Slider/Slider.js
CHANGED
|
@@ -292,30 +292,7 @@ export const SliderThumb = styled('span', {
|
|
|
292
292
|
boxShadow: 'none'
|
|
293
293
|
}
|
|
294
294
|
},
|
|
295
|
-
variants: [
|
|
296
|
-
var _theme$vars6;
|
|
297
|
-
return ((_theme$vars6 = theme.vars) != null ? _theme$vars6 : theme).palette[key].main;
|
|
298
|
-
}).map(color => ({
|
|
299
|
-
props: {
|
|
300
|
-
color
|
|
301
|
-
},
|
|
302
|
-
style: {
|
|
303
|
-
[`&:hover, &.${sliderClasses.focusVisible}`]: _extends({}, theme.vars ? {
|
|
304
|
-
boxShadow: `0px 0px 0px 8px rgba(${theme.vars.palette[color].mainChannel} / 0.16)`
|
|
305
|
-
} : {
|
|
306
|
-
boxShadow: `0px 0px 0px 8px ${alpha(theme.palette[color].main, 0.16)}`
|
|
307
|
-
}, {
|
|
308
|
-
'@media (hover: none)': {
|
|
309
|
-
boxShadow: 'none'
|
|
310
|
-
}
|
|
311
|
-
}),
|
|
312
|
-
[`&.${sliderClasses.active}`]: _extends({}, theme.vars ? {
|
|
313
|
-
boxShadow: `0px 0px 0px 14px rgba(${theme.vars.palette[color].mainChannel} / 0.16)}`
|
|
314
|
-
} : {
|
|
315
|
-
boxShadow: `0px 0px 0px 14px ${alpha(theme.palette[color].main, 0.16)}`
|
|
316
|
-
})
|
|
317
|
-
}
|
|
318
|
-
})), {
|
|
295
|
+
variants: [{
|
|
319
296
|
props: {
|
|
320
297
|
size: 'small'
|
|
321
298
|
},
|
|
@@ -342,7 +319,30 @@ export const SliderThumb = styled('span', {
|
|
|
342
319
|
left: '50%',
|
|
343
320
|
transform: 'translate(-50%, 50%)'
|
|
344
321
|
}
|
|
345
|
-
}
|
|
322
|
+
}, ...Object.keys(((_theme$vars5 = theme.vars) != null ? _theme$vars5 : theme).palette).filter(key => {
|
|
323
|
+
var _theme$vars6;
|
|
324
|
+
return ((_theme$vars6 = theme.vars) != null ? _theme$vars6 : theme).palette[key].main;
|
|
325
|
+
}).map(color => ({
|
|
326
|
+
props: {
|
|
327
|
+
color
|
|
328
|
+
},
|
|
329
|
+
style: {
|
|
330
|
+
[`&:hover, &.${sliderClasses.focusVisible}`]: _extends({}, theme.vars ? {
|
|
331
|
+
boxShadow: `0px 0px 0px 8px rgba(${theme.vars.palette[color].mainChannel} / 0.16)`
|
|
332
|
+
} : {
|
|
333
|
+
boxShadow: `0px 0px 0px 8px ${alpha(theme.palette[color].main, 0.16)}`
|
|
334
|
+
}, {
|
|
335
|
+
'@media (hover: none)': {
|
|
336
|
+
boxShadow: 'none'
|
|
337
|
+
}
|
|
338
|
+
}),
|
|
339
|
+
[`&.${sliderClasses.active}`]: _extends({}, theme.vars ? {
|
|
340
|
+
boxShadow: `0px 0px 0px 14px rgba(${theme.vars.palette[color].mainChannel} / 0.16)}`
|
|
341
|
+
} : {
|
|
342
|
+
boxShadow: `0px 0px 0px 14px ${alpha(theme.palette[color].main, 0.16)}`
|
|
343
|
+
})
|
|
344
|
+
}
|
|
345
|
+
}))]
|
|
346
346
|
};
|
|
347
347
|
});
|
|
348
348
|
export const SliderValueLabel = styled(BaseSliderValueLabel, {
|
package/index.js
CHANGED
package/legacy/Dialog/Dialog.js
CHANGED
|
@@ -167,6 +167,7 @@ var Dialog = /*#__PURE__*/React.forwardRef(function Dialog(inProps, ref) {
|
|
|
167
167
|
_props$maxWidth = props.maxWidth,
|
|
168
168
|
maxWidth = _props$maxWidth === void 0 ? 'sm' : _props$maxWidth,
|
|
169
169
|
onBackdropClick = props.onBackdropClick,
|
|
170
|
+
onClick = props.onClick,
|
|
170
171
|
onClose = props.onClose,
|
|
171
172
|
open = props.open,
|
|
172
173
|
_props$PaperComponent = props.PaperComponent,
|
|
@@ -180,7 +181,7 @@ var Dialog = /*#__PURE__*/React.forwardRef(function Dialog(inProps, ref) {
|
|
|
180
181
|
_props$transitionDura = props.transitionDuration,
|
|
181
182
|
transitionDuration = _props$transitionDura === void 0 ? defaultTransitionDuration : _props$transitionDura,
|
|
182
183
|
TransitionProps = props.TransitionProps,
|
|
183
|
-
other = _objectWithoutProperties(props, ["aria-describedby", "aria-labelledby", "BackdropComponent", "BackdropProps", "children", "className", "disableEscapeKeyDown", "fullScreen", "fullWidth", "maxWidth", "onBackdropClick", "onClose", "open", "PaperComponent", "PaperProps", "scroll", "TransitionComponent", "transitionDuration", "TransitionProps"]);
|
|
184
|
+
other = _objectWithoutProperties(props, ["aria-describedby", "aria-labelledby", "BackdropComponent", "BackdropProps", "children", "className", "disableEscapeKeyDown", "fullScreen", "fullWidth", "maxWidth", "onBackdropClick", "onClick", "onClose", "open", "PaperComponent", "PaperProps", "scroll", "TransitionComponent", "transitionDuration", "TransitionProps"]);
|
|
184
185
|
var ownerState = _extends({}, props, {
|
|
185
186
|
disableEscapeKeyDown: disableEscapeKeyDown,
|
|
186
187
|
fullScreen: fullScreen,
|
|
@@ -196,6 +197,10 @@ var Dialog = /*#__PURE__*/React.forwardRef(function Dialog(inProps, ref) {
|
|
|
196
197
|
backdropClick.current = event.target === event.currentTarget;
|
|
197
198
|
};
|
|
198
199
|
var handleBackdropClick = function handleBackdropClick(event) {
|
|
200
|
+
if (onClick) {
|
|
201
|
+
onClick(event);
|
|
202
|
+
}
|
|
203
|
+
|
|
199
204
|
// Ignore the events not coming from the "backdrop".
|
|
200
205
|
if (!backdropClick.current) {
|
|
201
206
|
return;
|
|
@@ -334,6 +339,10 @@ process.env.NODE_ENV !== "production" ? Dialog.propTypes /* remove-proptypes */
|
|
|
334
339
|
* @deprecated Use the `onClose` prop with the `reason` argument to handle the `backdropClick` events.
|
|
335
340
|
*/
|
|
336
341
|
onBackdropClick: PropTypes.func,
|
|
342
|
+
/**
|
|
343
|
+
* @ignore
|
|
344
|
+
*/
|
|
345
|
+
onClick: PropTypes.func,
|
|
337
346
|
/**
|
|
338
347
|
* Callback fired when the component requests to be closed.
|
|
339
348
|
*
|
package/legacy/Slider/Slider.js
CHANGED
|
@@ -288,29 +288,7 @@ export var SliderThumb = styled('span', {
|
|
|
288
288
|
'&:hover': {
|
|
289
289
|
boxShadow: 'none'
|
|
290
290
|
}
|
|
291
|
-
}), "variants", [
|
|
292
|
-
var _theme$vars6;
|
|
293
|
-
return ((_theme$vars6 = theme.vars) != null ? _theme$vars6 : theme).palette[key].main;
|
|
294
|
-
}).map(function (color) {
|
|
295
|
-
return {
|
|
296
|
-
props: {
|
|
297
|
-
color: color
|
|
298
|
-
},
|
|
299
|
-
style: _defineProperty(_defineProperty({}, "&:hover, &.".concat(sliderClasses.focusVisible), _extends({}, theme.vars ? {
|
|
300
|
-
boxShadow: "0px 0px 0px 8px rgba(".concat(theme.vars.palette[color].mainChannel, " / 0.16)")
|
|
301
|
-
} : {
|
|
302
|
-
boxShadow: "0px 0px 0px 8px ".concat(alpha(theme.palette[color].main, 0.16))
|
|
303
|
-
}, {
|
|
304
|
-
'@media (hover: none)': {
|
|
305
|
-
boxShadow: 'none'
|
|
306
|
-
}
|
|
307
|
-
})), "&.".concat(sliderClasses.active), _extends({}, theme.vars ? {
|
|
308
|
-
boxShadow: "0px 0px 0px 14px rgba(".concat(theme.vars.palette[color].mainChannel, " / 0.16)}")
|
|
309
|
-
} : {
|
|
310
|
-
boxShadow: "0px 0px 0px 14px ".concat(alpha(theme.palette[color].main, 0.16))
|
|
311
|
-
}))
|
|
312
|
-
};
|
|
313
|
-
})), [{
|
|
291
|
+
}), "variants", [{
|
|
314
292
|
props: {
|
|
315
293
|
size: 'small'
|
|
316
294
|
},
|
|
@@ -337,7 +315,29 @@ export var SliderThumb = styled('span', {
|
|
|
337
315
|
left: '50%',
|
|
338
316
|
transform: 'translate(-50%, 50%)'
|
|
339
317
|
}
|
|
340
|
-
}]))
|
|
318
|
+
}].concat(_toConsumableArray(Object.keys(((_theme$vars5 = theme.vars) != null ? _theme$vars5 : theme).palette).filter(function (key) {
|
|
319
|
+
var _theme$vars6;
|
|
320
|
+
return ((_theme$vars6 = theme.vars) != null ? _theme$vars6 : theme).palette[key].main;
|
|
321
|
+
}).map(function (color) {
|
|
322
|
+
return {
|
|
323
|
+
props: {
|
|
324
|
+
color: color
|
|
325
|
+
},
|
|
326
|
+
style: _defineProperty(_defineProperty({}, "&:hover, &.".concat(sliderClasses.focusVisible), _extends({}, theme.vars ? {
|
|
327
|
+
boxShadow: "0px 0px 0px 8px rgba(".concat(theme.vars.palette[color].mainChannel, " / 0.16)")
|
|
328
|
+
} : {
|
|
329
|
+
boxShadow: "0px 0px 0px 8px ".concat(alpha(theme.palette[color].main, 0.16))
|
|
330
|
+
}, {
|
|
331
|
+
'@media (hover: none)': {
|
|
332
|
+
boxShadow: 'none'
|
|
333
|
+
}
|
|
334
|
+
})), "&.".concat(sliderClasses.active), _extends({}, theme.vars ? {
|
|
335
|
+
boxShadow: "0px 0px 0px 14px rgba(".concat(theme.vars.palette[color].mainChannel, " / 0.16)}")
|
|
336
|
+
} : {
|
|
337
|
+
boxShadow: "0px 0px 0px 14px ".concat(alpha(theme.palette[color].main, 0.16))
|
|
338
|
+
}))
|
|
339
|
+
};
|
|
340
|
+
}))));
|
|
341
341
|
});
|
|
342
342
|
export var SliderValueLabel = styled(BaseSliderValueLabel, {
|
|
343
343
|
name: 'MuiSlider',
|
package/legacy/index.js
CHANGED
package/legacy/locale/index.js
CHANGED
|
@@ -1922,7 +1922,7 @@ export var isIS = {
|
|
|
1922
1922
|
var from = _ref19.from,
|
|
1923
1923
|
to = _ref19.to,
|
|
1924
1924
|
count = _ref19.count;
|
|
1925
|
-
return "".concat(from, "\u2013").concat(to, " af ").concat(count !== -1 ? count : "fleiri
|
|
1925
|
+
return "".concat(from, "\u2013").concat(to, " af ").concat(count !== -1 ? count : "fleiri en ".concat(to));
|
|
1926
1926
|
}
|
|
1927
1927
|
}
|
|
1928
1928
|
},
|
package/locale/index.js
CHANGED
package/modern/Dialog/Dialog.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
4
4
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
5
|
-
const _excluded = ["aria-describedby", "aria-labelledby", "BackdropComponent", "BackdropProps", "children", "className", "disableEscapeKeyDown", "fullScreen", "fullWidth", "maxWidth", "onBackdropClick", "onClose", "open", "PaperComponent", "PaperProps", "scroll", "TransitionComponent", "transitionDuration", "TransitionProps"];
|
|
5
|
+
const _excluded = ["aria-describedby", "aria-labelledby", "BackdropComponent", "BackdropProps", "children", "className", "disableEscapeKeyDown", "fullScreen", "fullWidth", "maxWidth", "onBackdropClick", "onClick", "onClose", "open", "PaperComponent", "PaperProps", "scroll", "TransitionComponent", "transitionDuration", "TransitionProps"];
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import clsx from 'clsx';
|
|
@@ -171,6 +171,7 @@ const Dialog = /*#__PURE__*/React.forwardRef(function Dialog(inProps, ref) {
|
|
|
171
171
|
fullWidth = false,
|
|
172
172
|
maxWidth = 'sm',
|
|
173
173
|
onBackdropClick,
|
|
174
|
+
onClick,
|
|
174
175
|
onClose,
|
|
175
176
|
open,
|
|
176
177
|
PaperComponent = Paper,
|
|
@@ -196,6 +197,10 @@ const Dialog = /*#__PURE__*/React.forwardRef(function Dialog(inProps, ref) {
|
|
|
196
197
|
backdropClick.current = event.target === event.currentTarget;
|
|
197
198
|
};
|
|
198
199
|
const handleBackdropClick = event => {
|
|
200
|
+
if (onClick) {
|
|
201
|
+
onClick(event);
|
|
202
|
+
}
|
|
203
|
+
|
|
199
204
|
// Ignore the events not coming from the "backdrop".
|
|
200
205
|
if (!backdropClick.current) {
|
|
201
206
|
return;
|
|
@@ -334,6 +339,10 @@ process.env.NODE_ENV !== "production" ? Dialog.propTypes /* remove-proptypes */
|
|
|
334
339
|
* @deprecated Use the `onClose` prop with the `reason` argument to handle the `backdropClick` events.
|
|
335
340
|
*/
|
|
336
341
|
onBackdropClick: PropTypes.func,
|
|
342
|
+
/**
|
|
343
|
+
* @ignore
|
|
344
|
+
*/
|
|
345
|
+
onClick: PropTypes.func,
|
|
337
346
|
/**
|
|
338
347
|
* Callback fired when the component requests to be closed.
|
|
339
348
|
*
|
package/modern/Slider/Slider.js
CHANGED
|
@@ -280,27 +280,7 @@ export const SliderThumb = styled('span', {
|
|
|
280
280
|
boxShadow: 'none'
|
|
281
281
|
}
|
|
282
282
|
},
|
|
283
|
-
variants: [
|
|
284
|
-
props: {
|
|
285
|
-
color
|
|
286
|
-
},
|
|
287
|
-
style: {
|
|
288
|
-
[`&:hover, &.${sliderClasses.focusVisible}`]: _extends({}, theme.vars ? {
|
|
289
|
-
boxShadow: `0px 0px 0px 8px rgba(${theme.vars.palette[color].mainChannel} / 0.16)`
|
|
290
|
-
} : {
|
|
291
|
-
boxShadow: `0px 0px 0px 8px ${alpha(theme.palette[color].main, 0.16)}`
|
|
292
|
-
}, {
|
|
293
|
-
'@media (hover: none)': {
|
|
294
|
-
boxShadow: 'none'
|
|
295
|
-
}
|
|
296
|
-
}),
|
|
297
|
-
[`&.${sliderClasses.active}`]: _extends({}, theme.vars ? {
|
|
298
|
-
boxShadow: `0px 0px 0px 14px rgba(${theme.vars.palette[color].mainChannel} / 0.16)}`
|
|
299
|
-
} : {
|
|
300
|
-
boxShadow: `0px 0px 0px 14px ${alpha(theme.palette[color].main, 0.16)}`
|
|
301
|
-
})
|
|
302
|
-
}
|
|
303
|
-
})), {
|
|
283
|
+
variants: [{
|
|
304
284
|
props: {
|
|
305
285
|
size: 'small'
|
|
306
286
|
},
|
|
@@ -327,7 +307,27 @@ export const SliderThumb = styled('span', {
|
|
|
327
307
|
left: '50%',
|
|
328
308
|
transform: 'translate(-50%, 50%)'
|
|
329
309
|
}
|
|
330
|
-
}]
|
|
310
|
+
}, ...Object.keys((theme.vars ?? theme).palette).filter(key => (theme.vars ?? theme).palette[key].main).map(color => ({
|
|
311
|
+
props: {
|
|
312
|
+
color
|
|
313
|
+
},
|
|
314
|
+
style: {
|
|
315
|
+
[`&:hover, &.${sliderClasses.focusVisible}`]: _extends({}, theme.vars ? {
|
|
316
|
+
boxShadow: `0px 0px 0px 8px rgba(${theme.vars.palette[color].mainChannel} / 0.16)`
|
|
317
|
+
} : {
|
|
318
|
+
boxShadow: `0px 0px 0px 8px ${alpha(theme.palette[color].main, 0.16)}`
|
|
319
|
+
}, {
|
|
320
|
+
'@media (hover: none)': {
|
|
321
|
+
boxShadow: 'none'
|
|
322
|
+
}
|
|
323
|
+
}),
|
|
324
|
+
[`&.${sliderClasses.active}`]: _extends({}, theme.vars ? {
|
|
325
|
+
boxShadow: `0px 0px 0px 14px rgba(${theme.vars.palette[color].mainChannel} / 0.16)}`
|
|
326
|
+
} : {
|
|
327
|
+
boxShadow: `0px 0px 0px 14px ${alpha(theme.palette[color].main, 0.16)}`
|
|
328
|
+
})
|
|
329
|
+
}
|
|
330
|
+
}))]
|
|
331
331
|
}));
|
|
332
332
|
export const SliderValueLabel = styled(BaseSliderValueLabel, {
|
|
333
333
|
name: 'MuiSlider',
|
package/modern/index.js
CHANGED
package/modern/locale/index.js
CHANGED
package/node/Dialog/Dialog.js
CHANGED
|
@@ -24,7 +24,7 @@ var _DialogContext = _interopRequireDefault(require("./DialogContext"));
|
|
|
24
24
|
var _Backdrop = _interopRequireDefault(require("../Backdrop"));
|
|
25
25
|
var _useTheme = _interopRequireDefault(require("../styles/useTheme"));
|
|
26
26
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
27
|
-
const _excluded = ["aria-describedby", "aria-labelledby", "BackdropComponent", "BackdropProps", "children", "className", "disableEscapeKeyDown", "fullScreen", "fullWidth", "maxWidth", "onBackdropClick", "onClose", "open", "PaperComponent", "PaperProps", "scroll", "TransitionComponent", "transitionDuration", "TransitionProps"];
|
|
27
|
+
const _excluded = ["aria-describedby", "aria-labelledby", "BackdropComponent", "BackdropProps", "children", "className", "disableEscapeKeyDown", "fullScreen", "fullWidth", "maxWidth", "onBackdropClick", "onClick", "onClose", "open", "PaperComponent", "PaperProps", "scroll", "TransitionComponent", "transitionDuration", "TransitionProps"];
|
|
28
28
|
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); }
|
|
29
29
|
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; }
|
|
30
30
|
const DialogBackdrop = (0, _styled.default)(_Backdrop.default, {
|
|
@@ -179,6 +179,7 @@ const Dialog = /*#__PURE__*/React.forwardRef(function Dialog(inProps, ref) {
|
|
|
179
179
|
fullWidth = false,
|
|
180
180
|
maxWidth = 'sm',
|
|
181
181
|
onBackdropClick,
|
|
182
|
+
onClick,
|
|
182
183
|
onClose,
|
|
183
184
|
open,
|
|
184
185
|
PaperComponent = _Paper.default,
|
|
@@ -204,6 +205,10 @@ const Dialog = /*#__PURE__*/React.forwardRef(function Dialog(inProps, ref) {
|
|
|
204
205
|
backdropClick.current = event.target === event.currentTarget;
|
|
205
206
|
};
|
|
206
207
|
const handleBackdropClick = event => {
|
|
208
|
+
if (onClick) {
|
|
209
|
+
onClick(event);
|
|
210
|
+
}
|
|
211
|
+
|
|
207
212
|
// Ignore the events not coming from the "backdrop".
|
|
208
213
|
if (!backdropClick.current) {
|
|
209
214
|
return;
|
|
@@ -342,6 +347,10 @@ process.env.NODE_ENV !== "production" ? Dialog.propTypes /* remove-proptypes */
|
|
|
342
347
|
* @deprecated Use the `onClose` prop with the `reason` argument to handle the `backdropClick` events.
|
|
343
348
|
*/
|
|
344
349
|
onBackdropClick: _propTypes.default.func,
|
|
350
|
+
/**
|
|
351
|
+
* @ignore
|
|
352
|
+
*/
|
|
353
|
+
onClick: _propTypes.default.func,
|
|
345
354
|
/**
|
|
346
355
|
* Callback fired when the component requests to be closed.
|
|
347
356
|
*
|
package/node/Slider/Slider.js
CHANGED
|
@@ -299,30 +299,7 @@ const SliderThumb = exports.SliderThumb = (0, _zeroStyled.styled)('span', {
|
|
|
299
299
|
boxShadow: 'none'
|
|
300
300
|
}
|
|
301
301
|
},
|
|
302
|
-
variants: [
|
|
303
|
-
var _theme$vars6;
|
|
304
|
-
return ((_theme$vars6 = theme.vars) != null ? _theme$vars6 : theme).palette[key].main;
|
|
305
|
-
}).map(color => ({
|
|
306
|
-
props: {
|
|
307
|
-
color
|
|
308
|
-
},
|
|
309
|
-
style: {
|
|
310
|
-
[`&:hover, &.${_sliderClasses.default.focusVisible}`]: (0, _extends2.default)({}, theme.vars ? {
|
|
311
|
-
boxShadow: `0px 0px 0px 8px rgba(${theme.vars.palette[color].mainChannel} / 0.16)`
|
|
312
|
-
} : {
|
|
313
|
-
boxShadow: `0px 0px 0px 8px ${(0, _colorManipulator.alpha)(theme.palette[color].main, 0.16)}`
|
|
314
|
-
}, {
|
|
315
|
-
'@media (hover: none)': {
|
|
316
|
-
boxShadow: 'none'
|
|
317
|
-
}
|
|
318
|
-
}),
|
|
319
|
-
[`&.${_sliderClasses.default.active}`]: (0, _extends2.default)({}, theme.vars ? {
|
|
320
|
-
boxShadow: `0px 0px 0px 14px rgba(${theme.vars.palette[color].mainChannel} / 0.16)}`
|
|
321
|
-
} : {
|
|
322
|
-
boxShadow: `0px 0px 0px 14px ${(0, _colorManipulator.alpha)(theme.palette[color].main, 0.16)}`
|
|
323
|
-
})
|
|
324
|
-
}
|
|
325
|
-
})), {
|
|
302
|
+
variants: [{
|
|
326
303
|
props: {
|
|
327
304
|
size: 'small'
|
|
328
305
|
},
|
|
@@ -349,7 +326,30 @@ const SliderThumb = exports.SliderThumb = (0, _zeroStyled.styled)('span', {
|
|
|
349
326
|
left: '50%',
|
|
350
327
|
transform: 'translate(-50%, 50%)'
|
|
351
328
|
}
|
|
352
|
-
}
|
|
329
|
+
}, ...Object.keys(((_theme$vars5 = theme.vars) != null ? _theme$vars5 : theme).palette).filter(key => {
|
|
330
|
+
var _theme$vars6;
|
|
331
|
+
return ((_theme$vars6 = theme.vars) != null ? _theme$vars6 : theme).palette[key].main;
|
|
332
|
+
}).map(color => ({
|
|
333
|
+
props: {
|
|
334
|
+
color
|
|
335
|
+
},
|
|
336
|
+
style: {
|
|
337
|
+
[`&:hover, &.${_sliderClasses.default.focusVisible}`]: (0, _extends2.default)({}, theme.vars ? {
|
|
338
|
+
boxShadow: `0px 0px 0px 8px rgba(${theme.vars.palette[color].mainChannel} / 0.16)`
|
|
339
|
+
} : {
|
|
340
|
+
boxShadow: `0px 0px 0px 8px ${(0, _colorManipulator.alpha)(theme.palette[color].main, 0.16)}`
|
|
341
|
+
}, {
|
|
342
|
+
'@media (hover: none)': {
|
|
343
|
+
boxShadow: 'none'
|
|
344
|
+
}
|
|
345
|
+
}),
|
|
346
|
+
[`&.${_sliderClasses.default.active}`]: (0, _extends2.default)({}, theme.vars ? {
|
|
347
|
+
boxShadow: `0px 0px 0px 14px rgba(${theme.vars.palette[color].mainChannel} / 0.16)}`
|
|
348
|
+
} : {
|
|
349
|
+
boxShadow: `0px 0px 0px 14px ${(0, _colorManipulator.alpha)(theme.palette[color].main, 0.16)}`
|
|
350
|
+
})
|
|
351
|
+
}
|
|
352
|
+
}))]
|
|
353
353
|
};
|
|
354
354
|
});
|
|
355
355
|
const SliderValueLabel = exports.SliderValueLabel = (0, _zeroStyled.styled)(_SliderValueLabel.default, {
|
package/node/index.js
CHANGED
package/node/locale/index.js
CHANGED
|
@@ -1870,7 +1870,7 @@ const isIS = exports.isIS = {
|
|
|
1870
1870
|
from,
|
|
1871
1871
|
to,
|
|
1872
1872
|
count
|
|
1873
|
-
}) => `${from}β${to} af ${count !== -1 ? count : `fleiri
|
|
1873
|
+
}) => `${from}β${to} af ${count !== -1 ? count : `fleiri en ${to}`}`
|
|
1874
1874
|
}
|
|
1875
1875
|
},
|
|
1876
1876
|
MuiRating: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/material",
|
|
3
|
-
"version": "5.15.
|
|
3
|
+
"version": "5.15.17",
|
|
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.17",
|
|
37
38
|
"@mui/base": "5.0.0-beta.40",
|
|
39
|
+
"@mui/types": "^7.2.14",
|
|
38
40
|
"@mui/utils": "^5.15.14",
|
|
39
|
-
"@mui/
|
|
40
|
-
"@mui/system": "^5.15.15",
|
|
41
|
-
"@mui/types": "^7.2.14"
|
|
41
|
+
"@mui/system": "^5.15.15"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"@emotion/react": "^11.5.0",
|