@mui/material 5.11.6 → 5.11.8
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 +141 -1
- package/Checkbox/Checkbox.d.ts +3 -0
- package/Checkbox/Checkbox.js +3 -0
- package/FormLabel/FormLabel.d.ts +51 -45
- package/InputLabel/InputLabel.d.ts +70 -57
- package/MenuList/MenuList.d.ts +1 -1
- package/MenuList/MenuList.js +1 -1
- package/Popper/Popper.d.ts +19 -1
- package/Radio/Radio.js +2 -0
- package/Select/SelectInput.js +1 -1
- package/Switch/Switch.js +2 -0
- package/TabScrollButton/TabScrollButton.d.ts +1 -0
- package/TabScrollButton/TabScrollButton.js +1 -0
- package/Tooltip/Tooltip.js +9 -9
- package/index.js +1 -1
- package/internal/SwitchBase.d.ts +5 -0
- package/internal/SwitchBase.js +1 -1
- package/legacy/Checkbox/Checkbox.js +3 -0
- package/legacy/MenuList/MenuList.js +1 -1
- package/legacy/Radio/Radio.js +2 -0
- package/legacy/Select/SelectInput.js +1 -1
- package/legacy/Switch/Switch.js +2 -0
- package/legacy/TabScrollButton/TabScrollButton.js +1 -0
- package/legacy/Tooltip/Tooltip.js +9 -9
- package/legacy/index.js +1 -1
- package/legacy/internal/SwitchBase.js +2 -1
- package/legacy/styles/CssVarsProvider.js +3 -1
- package/modern/Checkbox/Checkbox.js +3 -0
- package/modern/MenuList/MenuList.js +1 -1
- package/modern/Radio/Radio.js +2 -0
- package/modern/Select/SelectInput.js +1 -1
- package/modern/Switch/Switch.js +2 -0
- package/modern/TabScrollButton/TabScrollButton.js +1 -0
- package/modern/Tooltip/Tooltip.js +9 -9
- package/modern/index.js +1 -1
- package/modern/internal/SwitchBase.js +1 -1
- package/modern/styles/CssVarsProvider.js +3 -1
- package/node/Checkbox/Checkbox.js +3 -0
- package/node/MenuList/MenuList.js +1 -1
- package/node/Radio/Radio.js +2 -0
- package/node/Select/SelectInput.js +1 -1
- package/node/Switch/Switch.js +2 -0
- package/node/TabScrollButton/TabScrollButton.js +1 -0
- package/node/Tooltip/Tooltip.js +9 -9
- package/node/index.js +1 -1
- package/node/internal/SwitchBase.js +1 -1
- package/node/styles/CssVarsProvider.js +3 -1
- package/package.json +5 -5
- package/styles/CssVarsProvider.js +3 -1
- package/umd/material-ui.development.js +149 -72
- package/umd/material-ui.production.min.js +20 -20
|
@@ -141,10 +141,12 @@ process.env.NODE_ENV !== "production" ? Checkbox.propTypes /* remove-proptypes *
|
|
|
141
141
|
defaultChecked: PropTypes.bool,
|
|
142
142
|
/**
|
|
143
143
|
* If `true`, the component is disabled.
|
|
144
|
+
* @default false
|
|
144
145
|
*/
|
|
145
146
|
disabled: PropTypes.bool,
|
|
146
147
|
/**
|
|
147
148
|
* If `true`, the ripple effect is disabled.
|
|
149
|
+
* @default false
|
|
148
150
|
*/
|
|
149
151
|
disableRipple: PropTypes.bool,
|
|
150
152
|
/**
|
|
@@ -186,6 +188,7 @@ process.env.NODE_ENV !== "production" ? Checkbox.propTypes /* remove-proptypes *
|
|
|
186
188
|
onChange: PropTypes.func,
|
|
187
189
|
/**
|
|
188
190
|
* If `true`, the `input` element is required.
|
|
191
|
+
* @default false
|
|
189
192
|
*/
|
|
190
193
|
required: PropTypes.bool,
|
|
191
194
|
/**
|
|
@@ -71,7 +71,7 @@ function moveFocus(list, currentFocus, disableListWrap, disabledItemsFocusable,
|
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
/**
|
|
74
|
-
* A permanently displayed menu following https://www.w3.org/WAI/ARIA/apg/patterns/
|
|
74
|
+
* A permanently displayed menu following https://www.w3.org/WAI/ARIA/apg/patterns/menu-button/.
|
|
75
75
|
* It's exposed to help customization of the [`Menu`](/material-ui/api/menu/) component if you
|
|
76
76
|
* use it separately you need to move focus into the component manually. Once
|
|
77
77
|
* the focus is placed inside the component it is fully keyboard accessible.
|
package/legacy/Radio/Radio.js
CHANGED
|
@@ -154,6 +154,7 @@ process.env.NODE_ENV !== "production" ? Radio.propTypes /* remove-proptypes */ =
|
|
|
154
154
|
disabled: PropTypes.bool,
|
|
155
155
|
/**
|
|
156
156
|
* If `true`, the ripple effect is disabled.
|
|
157
|
+
* @default false
|
|
157
158
|
*/
|
|
158
159
|
disableRipple: PropTypes.bool,
|
|
159
160
|
/**
|
|
@@ -187,6 +188,7 @@ process.env.NODE_ENV !== "production" ? Radio.propTypes /* remove-proptypes */ =
|
|
|
187
188
|
onChange: PropTypes.func,
|
|
188
189
|
/**
|
|
189
190
|
* If `true`, the `input` element is required.
|
|
191
|
+
* @default false
|
|
190
192
|
*/
|
|
191
193
|
required: PropTypes.bool,
|
|
192
194
|
/**
|
|
@@ -296,7 +296,7 @@ var SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, ref)
|
|
|
296
296
|
if (!readOnly) {
|
|
297
297
|
var validKeys = [' ', 'ArrowUp', 'ArrowDown',
|
|
298
298
|
// The native select doesn't respond to enter on macOS, but it's recommended by
|
|
299
|
-
// https://www.w3.org/WAI/ARIA/apg/
|
|
299
|
+
// https://www.w3.org/WAI/ARIA/apg/patterns/combobox/examples/combobox-select-only/
|
|
300
300
|
'Enter'];
|
|
301
301
|
if (validKeys.indexOf(event.key) !== -1) {
|
|
302
302
|
event.preventDefault();
|
package/legacy/Switch/Switch.js
CHANGED
|
@@ -251,6 +251,7 @@ process.env.NODE_ENV !== "production" ? Switch.propTypes /* remove-proptypes */
|
|
|
251
251
|
disabled: PropTypes.bool,
|
|
252
252
|
/**
|
|
253
253
|
* If `true`, the ripple effect is disabled.
|
|
254
|
+
* @default false
|
|
254
255
|
*/
|
|
255
256
|
disableRipple: PropTypes.bool,
|
|
256
257
|
/**
|
|
@@ -287,6 +288,7 @@ process.env.NODE_ENV !== "production" ? Switch.propTypes /* remove-proptypes */
|
|
|
287
288
|
onChange: PropTypes.func,
|
|
288
289
|
/**
|
|
289
290
|
* If `true`, the `input` element is required.
|
|
291
|
+
* @default false
|
|
290
292
|
*/
|
|
291
293
|
required: PropTypes.bool,
|
|
292
294
|
/**
|
|
@@ -101,6 +101,7 @@ process.env.NODE_ENV !== "production" ? TabScrollButton.propTypes /* remove-prop
|
|
|
101
101
|
direction: PropTypes.oneOf(['left', 'right']).isRequired,
|
|
102
102
|
/**
|
|
103
103
|
* If `true`, the component is disabled.
|
|
104
|
+
* @default false
|
|
104
105
|
*/
|
|
105
106
|
disabled: PropTypes.bool,
|
|
106
107
|
/**
|
|
@@ -185,6 +185,10 @@ var TooltipArrow = styled('span', {
|
|
|
185
185
|
});
|
|
186
186
|
var hystersisOpen = false;
|
|
187
187
|
var hystersisTimer = null;
|
|
188
|
+
var cursorPosition = {
|
|
189
|
+
x: 0,
|
|
190
|
+
y: 0
|
|
191
|
+
};
|
|
188
192
|
export function testReset() {
|
|
189
193
|
hystersisOpen = false;
|
|
190
194
|
clearTimeout(hystersisTimer);
|
|
@@ -447,17 +451,13 @@ var Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip(inProps, ref) {
|
|
|
447
451
|
if (!title && title !== 0) {
|
|
448
452
|
open = false;
|
|
449
453
|
}
|
|
450
|
-
var positionRef = React.useRef({
|
|
451
|
-
x: 0,
|
|
452
|
-
y: 0
|
|
453
|
-
});
|
|
454
454
|
var popperRef = React.useRef();
|
|
455
455
|
var handleMouseMove = function handleMouseMove(event) {
|
|
456
456
|
var childrenProps = children.props;
|
|
457
457
|
if (childrenProps.onMouseMove) {
|
|
458
458
|
childrenProps.onMouseMove(event);
|
|
459
459
|
}
|
|
460
|
-
|
|
460
|
+
cursorPosition = {
|
|
461
461
|
x: event.clientX,
|
|
462
462
|
y: event.clientY
|
|
463
463
|
};
|
|
@@ -564,10 +564,10 @@ var Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip(inProps, ref) {
|
|
|
564
564
|
anchorEl: followCursor ? {
|
|
565
565
|
getBoundingClientRect: function getBoundingClientRect() {
|
|
566
566
|
return {
|
|
567
|
-
top:
|
|
568
|
-
left:
|
|
569
|
-
right:
|
|
570
|
-
bottom:
|
|
567
|
+
top: cursorPosition.y,
|
|
568
|
+
left: cursorPosition.x,
|
|
569
|
+
right: cursorPosition.x,
|
|
570
|
+
bottom: cursorPosition.y,
|
|
571
571
|
width: 0,
|
|
572
572
|
height: 0
|
|
573
573
|
};
|
package/legacy/index.js
CHANGED
|
@@ -72,7 +72,8 @@ var SwitchBase = /*#__PURE__*/React.forwardRef(function SwitchBase(props, ref) {
|
|
|
72
72
|
onChange = props.onChange,
|
|
73
73
|
onFocus = props.onFocus,
|
|
74
74
|
readOnly = props.readOnly,
|
|
75
|
-
required = props.required,
|
|
75
|
+
_props$required = props.required,
|
|
76
|
+
required = _props$required === void 0 ? false : _props$required,
|
|
76
77
|
tabIndex = props.tabIndex,
|
|
77
78
|
type = props.type,
|
|
78
79
|
value = props.value,
|
|
@@ -5,7 +5,9 @@ import createTypography from './createTypography';
|
|
|
5
5
|
import excludeVariablesFromRoot from './excludeVariablesFromRoot';
|
|
6
6
|
var shouldSkipGeneratingVar = function shouldSkipGeneratingVar(keys) {
|
|
7
7
|
var _keys$;
|
|
8
|
-
return !!keys[0].match(/(typography|mixins|breakpoints|direction|transitions)/) || keys[0]
|
|
8
|
+
return !!keys[0].match(/(typography|mixins|breakpoints|direction|transitions)/) || !!keys[0].match(/sxConfig$/) ||
|
|
9
|
+
// ends with sxConfig
|
|
10
|
+
keys[0] === 'palette' && !!((_keys$ = keys[1]) != null && _keys$.match(/(mode|contrastThreshold|tonalOffset)/));
|
|
9
11
|
};
|
|
10
12
|
var defaultTheme = experimental_extendTheme();
|
|
11
13
|
var _createCssVarsProvide = createCssVarsProvider({
|
|
@@ -139,10 +139,12 @@ process.env.NODE_ENV !== "production" ? Checkbox.propTypes /* remove-proptypes *
|
|
|
139
139
|
defaultChecked: PropTypes.bool,
|
|
140
140
|
/**
|
|
141
141
|
* If `true`, the component is disabled.
|
|
142
|
+
* @default false
|
|
142
143
|
*/
|
|
143
144
|
disabled: PropTypes.bool,
|
|
144
145
|
/**
|
|
145
146
|
* If `true`, the ripple effect is disabled.
|
|
147
|
+
* @default false
|
|
146
148
|
*/
|
|
147
149
|
disableRipple: PropTypes.bool,
|
|
148
150
|
/**
|
|
@@ -184,6 +186,7 @@ process.env.NODE_ENV !== "production" ? Checkbox.propTypes /* remove-proptypes *
|
|
|
184
186
|
onChange: PropTypes.func,
|
|
185
187
|
/**
|
|
186
188
|
* If `true`, the `input` element is required.
|
|
189
|
+
* @default false
|
|
187
190
|
*/
|
|
188
191
|
required: PropTypes.bool,
|
|
189
192
|
/**
|
|
@@ -72,7 +72,7 @@ function moveFocus(list, currentFocus, disableListWrap, disabledItemsFocusable,
|
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
/**
|
|
75
|
-
* A permanently displayed menu following https://www.w3.org/WAI/ARIA/apg/patterns/
|
|
75
|
+
* A permanently displayed menu following https://www.w3.org/WAI/ARIA/apg/patterns/menu-button/.
|
|
76
76
|
* It's exposed to help customization of the [`Menu`](/material-ui/api/menu/) component if you
|
|
77
77
|
* use it separately you need to move focus into the component manually. Once
|
|
78
78
|
* the focus is placed inside the component it is fully keyboard accessible.
|
package/modern/Radio/Radio.js
CHANGED
|
@@ -155,6 +155,7 @@ process.env.NODE_ENV !== "production" ? Radio.propTypes /* remove-proptypes */ =
|
|
|
155
155
|
disabled: PropTypes.bool,
|
|
156
156
|
/**
|
|
157
157
|
* If `true`, the ripple effect is disabled.
|
|
158
|
+
* @default false
|
|
158
159
|
*/
|
|
159
160
|
disableRipple: PropTypes.bool,
|
|
160
161
|
/**
|
|
@@ -188,6 +189,7 @@ process.env.NODE_ENV !== "production" ? Radio.propTypes /* remove-proptypes */ =
|
|
|
188
189
|
onChange: PropTypes.func,
|
|
189
190
|
/**
|
|
190
191
|
* If `true`, the `input` element is required.
|
|
192
|
+
* @default false
|
|
191
193
|
*/
|
|
192
194
|
required: PropTypes.bool,
|
|
193
195
|
/**
|
|
@@ -289,7 +289,7 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
|
|
|
289
289
|
if (!readOnly) {
|
|
290
290
|
const validKeys = [' ', 'ArrowUp', 'ArrowDown',
|
|
291
291
|
// The native select doesn't respond to enter on macOS, but it's recommended by
|
|
292
|
-
// https://www.w3.org/WAI/ARIA/apg/
|
|
292
|
+
// https://www.w3.org/WAI/ARIA/apg/patterns/combobox/examples/combobox-select-only/
|
|
293
293
|
'Enter'];
|
|
294
294
|
if (validKeys.indexOf(event.key) !== -1) {
|
|
295
295
|
event.preventDefault();
|
package/modern/Switch/Switch.js
CHANGED
|
@@ -258,6 +258,7 @@ process.env.NODE_ENV !== "production" ? Switch.propTypes /* remove-proptypes */
|
|
|
258
258
|
disabled: PropTypes.bool,
|
|
259
259
|
/**
|
|
260
260
|
* If `true`, the ripple effect is disabled.
|
|
261
|
+
* @default false
|
|
261
262
|
*/
|
|
262
263
|
disableRipple: PropTypes.bool,
|
|
263
264
|
/**
|
|
@@ -294,6 +295,7 @@ process.env.NODE_ENV !== "production" ? Switch.propTypes /* remove-proptypes */
|
|
|
294
295
|
onChange: PropTypes.func,
|
|
295
296
|
/**
|
|
296
297
|
* If `true`, the `input` element is required.
|
|
298
|
+
* @default false
|
|
297
299
|
*/
|
|
298
300
|
required: PropTypes.bool,
|
|
299
301
|
/**
|
|
@@ -105,6 +105,7 @@ process.env.NODE_ENV !== "production" ? TabScrollButton.propTypes /* remove-prop
|
|
|
105
105
|
direction: PropTypes.oneOf(['left', 'right']).isRequired,
|
|
106
106
|
/**
|
|
107
107
|
* If `true`, the component is disabled.
|
|
108
|
+
* @default false
|
|
108
109
|
*/
|
|
109
110
|
disabled: PropTypes.bool,
|
|
110
111
|
/**
|
|
@@ -193,6 +193,10 @@ const TooltipArrow = styled('span', {
|
|
|
193
193
|
}));
|
|
194
194
|
let hystersisOpen = false;
|
|
195
195
|
let hystersisTimer = null;
|
|
196
|
+
let cursorPosition = {
|
|
197
|
+
x: 0,
|
|
198
|
+
y: 0
|
|
199
|
+
};
|
|
196
200
|
export function testReset() {
|
|
197
201
|
hystersisOpen = false;
|
|
198
202
|
clearTimeout(hystersisTimer);
|
|
@@ -433,17 +437,13 @@ const Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip(inProps, ref) {
|
|
|
433
437
|
if (!title && title !== 0) {
|
|
434
438
|
open = false;
|
|
435
439
|
}
|
|
436
|
-
const positionRef = React.useRef({
|
|
437
|
-
x: 0,
|
|
438
|
-
y: 0
|
|
439
|
-
});
|
|
440
440
|
const popperRef = React.useRef();
|
|
441
441
|
const handleMouseMove = event => {
|
|
442
442
|
const childrenProps = children.props;
|
|
443
443
|
if (childrenProps.onMouseMove) {
|
|
444
444
|
childrenProps.onMouseMove(event);
|
|
445
445
|
}
|
|
446
|
-
|
|
446
|
+
cursorPosition = {
|
|
447
447
|
x: event.clientX,
|
|
448
448
|
y: event.clientY
|
|
449
449
|
};
|
|
@@ -548,10 +548,10 @@ const Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip(inProps, ref) {
|
|
|
548
548
|
placement: placement,
|
|
549
549
|
anchorEl: followCursor ? {
|
|
550
550
|
getBoundingClientRect: () => ({
|
|
551
|
-
top:
|
|
552
|
-
left:
|
|
553
|
-
right:
|
|
554
|
-
bottom:
|
|
551
|
+
top: cursorPosition.y,
|
|
552
|
+
left: cursorPosition.x,
|
|
553
|
+
right: cursorPosition.x,
|
|
554
|
+
bottom: cursorPosition.y,
|
|
555
555
|
width: 0,
|
|
556
556
|
height: 0
|
|
557
557
|
})
|
package/modern/index.js
CHANGED
|
@@ -3,7 +3,9 @@ import { unstable_createCssVarsProvider as createCssVarsProvider, unstable_style
|
|
|
3
3
|
import experimental_extendTheme from './experimental_extendTheme';
|
|
4
4
|
import createTypography from './createTypography';
|
|
5
5
|
import excludeVariablesFromRoot from './excludeVariablesFromRoot';
|
|
6
|
-
const shouldSkipGeneratingVar = keys => !!keys[0].match(/(typography|mixins|breakpoints|direction|transitions)/) || keys[0]
|
|
6
|
+
const shouldSkipGeneratingVar = keys => !!keys[0].match(/(typography|mixins|breakpoints|direction|transitions)/) || !!keys[0].match(/sxConfig$/) ||
|
|
7
|
+
// ends with sxConfig
|
|
8
|
+
keys[0] === 'palette' && !!keys[1]?.match(/(mode|contrastThreshold|tonalOffset)/);
|
|
7
9
|
const defaultTheme = experimental_extendTheme();
|
|
8
10
|
const {
|
|
9
11
|
CssVarsProvider,
|
|
@@ -149,10 +149,12 @@ process.env.NODE_ENV !== "production" ? Checkbox.propTypes /* remove-proptypes *
|
|
|
149
149
|
defaultChecked: _propTypes.default.bool,
|
|
150
150
|
/**
|
|
151
151
|
* If `true`, the component is disabled.
|
|
152
|
+
* @default false
|
|
152
153
|
*/
|
|
153
154
|
disabled: _propTypes.default.bool,
|
|
154
155
|
/**
|
|
155
156
|
* If `true`, the ripple effect is disabled.
|
|
157
|
+
* @default false
|
|
156
158
|
*/
|
|
157
159
|
disableRipple: _propTypes.default.bool,
|
|
158
160
|
/**
|
|
@@ -194,6 +196,7 @@ process.env.NODE_ENV !== "production" ? Checkbox.propTypes /* remove-proptypes *
|
|
|
194
196
|
onChange: _propTypes.default.func,
|
|
195
197
|
/**
|
|
196
198
|
* If `true`, the `input` element is required.
|
|
199
|
+
* @default false
|
|
197
200
|
*/
|
|
198
201
|
required: _propTypes.default.bool,
|
|
199
202
|
/**
|
|
@@ -81,7 +81,7 @@ function moveFocus(list, currentFocus, disableListWrap, disabledItemsFocusable,
|
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
/**
|
|
84
|
-
* A permanently displayed menu following https://www.w3.org/WAI/ARIA/apg/patterns/
|
|
84
|
+
* A permanently displayed menu following https://www.w3.org/WAI/ARIA/apg/patterns/menu-button/.
|
|
85
85
|
* It's exposed to help customization of the [`Menu`](/material-ui/api/menu/) component if you
|
|
86
86
|
* use it separately you need to move focus into the component manually. Once
|
|
87
87
|
* the focus is placed inside the component it is fully keyboard accessible.
|
package/node/Radio/Radio.js
CHANGED
|
@@ -165,6 +165,7 @@ process.env.NODE_ENV !== "production" ? Radio.propTypes /* remove-proptypes */ =
|
|
|
165
165
|
disabled: _propTypes.default.bool,
|
|
166
166
|
/**
|
|
167
167
|
* If `true`, the ripple effect is disabled.
|
|
168
|
+
* @default false
|
|
168
169
|
*/
|
|
169
170
|
disableRipple: _propTypes.default.bool,
|
|
170
171
|
/**
|
|
@@ -198,6 +199,7 @@ process.env.NODE_ENV !== "production" ? Radio.propTypes /* remove-proptypes */ =
|
|
|
198
199
|
onChange: _propTypes.default.func,
|
|
199
200
|
/**
|
|
200
201
|
* If `true`, the `input` element is required.
|
|
202
|
+
* @default false
|
|
201
203
|
*/
|
|
202
204
|
required: _propTypes.default.bool,
|
|
203
205
|
/**
|
|
@@ -296,7 +296,7 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
|
|
|
296
296
|
if (!readOnly) {
|
|
297
297
|
const validKeys = [' ', 'ArrowUp', 'ArrowDown',
|
|
298
298
|
// The native select doesn't respond to enter on macOS, but it's recommended by
|
|
299
|
-
// https://www.w3.org/WAI/ARIA/apg/
|
|
299
|
+
// https://www.w3.org/WAI/ARIA/apg/patterns/combobox/examples/combobox-select-only/
|
|
300
300
|
'Enter'];
|
|
301
301
|
if (validKeys.indexOf(event.key) !== -1) {
|
|
302
302
|
event.preventDefault();
|
package/node/Switch/Switch.js
CHANGED
|
@@ -265,6 +265,7 @@ process.env.NODE_ENV !== "production" ? Switch.propTypes /* remove-proptypes */
|
|
|
265
265
|
disabled: _propTypes.default.bool,
|
|
266
266
|
/**
|
|
267
267
|
* If `true`, the ripple effect is disabled.
|
|
268
|
+
* @default false
|
|
268
269
|
*/
|
|
269
270
|
disableRipple: _propTypes.default.bool,
|
|
270
271
|
/**
|
|
@@ -301,6 +302,7 @@ process.env.NODE_ENV !== "production" ? Switch.propTypes /* remove-proptypes */
|
|
|
301
302
|
onChange: _propTypes.default.func,
|
|
302
303
|
/**
|
|
303
304
|
* If `true`, the `input` element is required.
|
|
305
|
+
* @default false
|
|
304
306
|
*/
|
|
305
307
|
required: _propTypes.default.bool,
|
|
306
308
|
/**
|
|
@@ -113,6 +113,7 @@ process.env.NODE_ENV !== "production" ? TabScrollButton.propTypes /* remove-prop
|
|
|
113
113
|
direction: _propTypes.default.oneOf(['left', 'right']).isRequired,
|
|
114
114
|
/**
|
|
115
115
|
* If `true`, the component is disabled.
|
|
116
|
+
* @default false
|
|
116
117
|
*/
|
|
117
118
|
disabled: _propTypes.default.bool,
|
|
118
119
|
/**
|
package/node/Tooltip/Tooltip.js
CHANGED
|
@@ -202,6 +202,10 @@ const TooltipArrow = (0, _styled.default)('span', {
|
|
|
202
202
|
}));
|
|
203
203
|
let hystersisOpen = false;
|
|
204
204
|
let hystersisTimer = null;
|
|
205
|
+
let cursorPosition = {
|
|
206
|
+
x: 0,
|
|
207
|
+
y: 0
|
|
208
|
+
};
|
|
205
209
|
function testReset() {
|
|
206
210
|
hystersisOpen = false;
|
|
207
211
|
clearTimeout(hystersisTimer);
|
|
@@ -443,17 +447,13 @@ const Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip(inProps, ref) {
|
|
|
443
447
|
if (!title && title !== 0) {
|
|
444
448
|
open = false;
|
|
445
449
|
}
|
|
446
|
-
const positionRef = React.useRef({
|
|
447
|
-
x: 0,
|
|
448
|
-
y: 0
|
|
449
|
-
});
|
|
450
450
|
const popperRef = React.useRef();
|
|
451
451
|
const handleMouseMove = event => {
|
|
452
452
|
const childrenProps = children.props;
|
|
453
453
|
if (childrenProps.onMouseMove) {
|
|
454
454
|
childrenProps.onMouseMove(event);
|
|
455
455
|
}
|
|
456
|
-
|
|
456
|
+
cursorPosition = {
|
|
457
457
|
x: event.clientX,
|
|
458
458
|
y: event.clientY
|
|
459
459
|
};
|
|
@@ -559,10 +559,10 @@ const Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip(inProps, ref) {
|
|
|
559
559
|
placement: placement,
|
|
560
560
|
anchorEl: followCursor ? {
|
|
561
561
|
getBoundingClientRect: () => ({
|
|
562
|
-
top:
|
|
563
|
-
left:
|
|
564
|
-
right:
|
|
565
|
-
bottom:
|
|
562
|
+
top: cursorPosition.y,
|
|
563
|
+
left: cursorPosition.x,
|
|
564
|
+
right: cursorPosition.x,
|
|
565
|
+
bottom: cursorPosition.y,
|
|
566
566
|
width: 0,
|
|
567
567
|
height: 0
|
|
568
568
|
})
|
package/node/index.js
CHANGED
|
@@ -12,7 +12,9 @@ var _createTypography = _interopRequireDefault(require("./createTypography"));
|
|
|
12
12
|
var _excludeVariablesFromRoot = _interopRequireDefault(require("./excludeVariablesFromRoot"));
|
|
13
13
|
const shouldSkipGeneratingVar = keys => {
|
|
14
14
|
var _keys$;
|
|
15
|
-
return !!keys[0].match(/(typography|mixins|breakpoints|direction|transitions)/) || keys[0]
|
|
15
|
+
return !!keys[0].match(/(typography|mixins|breakpoints|direction|transitions)/) || !!keys[0].match(/sxConfig$/) ||
|
|
16
|
+
// ends with sxConfig
|
|
17
|
+
keys[0] === 'palette' && !!((_keys$ = keys[1]) != null && _keys$.match(/(mode|contrastThreshold|tonalOffset)/));
|
|
16
18
|
};
|
|
17
19
|
exports.shouldSkipGeneratingVar = shouldSkipGeneratingVar;
|
|
18
20
|
const defaultTheme = (0, _experimental_extendTheme.default)();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/material",
|
|
3
|
-
"version": "5.11.
|
|
3
|
+
"version": "5.11.8",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"description": "React components that implement Google's Material Design.",
|
|
@@ -46,11 +46,11 @@
|
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@babel/runtime": "^7.20.7",
|
|
49
|
-
"@mui/base": "5.0.0-alpha.
|
|
50
|
-
"@mui/core-downloads-tracker": "^5.11.
|
|
51
|
-
"@mui/system": "^5.11.
|
|
49
|
+
"@mui/base": "5.0.0-alpha.117",
|
|
50
|
+
"@mui/core-downloads-tracker": "^5.11.8",
|
|
51
|
+
"@mui/system": "^5.11.8",
|
|
52
52
|
"@mui/types": "^7.2.3",
|
|
53
|
-
"@mui/utils": "^5.11.
|
|
53
|
+
"@mui/utils": "^5.11.7",
|
|
54
54
|
"@types/react-transition-group": "^4.4.5",
|
|
55
55
|
"clsx": "^1.2.1",
|
|
56
56
|
"csstype": "^3.1.1",
|
|
@@ -5,7 +5,9 @@ import createTypography from './createTypography';
|
|
|
5
5
|
import excludeVariablesFromRoot from './excludeVariablesFromRoot';
|
|
6
6
|
const shouldSkipGeneratingVar = keys => {
|
|
7
7
|
var _keys$;
|
|
8
|
-
return !!keys[0].match(/(typography|mixins|breakpoints|direction|transitions)/) || keys[0]
|
|
8
|
+
return !!keys[0].match(/(typography|mixins|breakpoints|direction|transitions)/) || !!keys[0].match(/sxConfig$/) ||
|
|
9
|
+
// ends with sxConfig
|
|
10
|
+
keys[0] === 'palette' && !!((_keys$ = keys[1]) != null && _keys$.match(/(mode|contrastThreshold|tonalOffset)/));
|
|
9
11
|
};
|
|
10
12
|
const defaultTheme = experimental_extendTheme();
|
|
11
13
|
const {
|