@mui/material 5.11.0 → 5.11.2

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.
Files changed (52) hide show
  1. package/CHANGELOG.md +127 -0
  2. package/Chip/Chip.js +3 -3
  3. package/FilledInput/FilledInput.js +8 -4
  4. package/Input/Input.js +9 -5
  5. package/InputLabel/InputLabel.d.ts +4 -1
  6. package/InputLabel/InputLabel.js +1 -1
  7. package/Popper/Popper.d.ts +1 -1
  8. package/Popper/Popper.js +11 -7
  9. package/Select/SelectInput.js +11 -6
  10. package/Slider/Slider.js +0 -5
  11. package/TableCell/TableCell.js +5 -1
  12. package/index.js +1 -1
  13. package/legacy/Chip/Chip.js +3 -3
  14. package/legacy/FilledInput/FilledInput.js +8 -4
  15. package/legacy/Input/Input.js +9 -5
  16. package/legacy/InputLabel/InputLabel.js +1 -1
  17. package/legacy/Popper/Popper.js +13 -9
  18. package/legacy/Select/SelectInput.js +9 -6
  19. package/legacy/Slider/Slider.js +0 -5
  20. package/legacy/TableCell/TableCell.js +5 -1
  21. package/legacy/index.js +1 -1
  22. package/legacy/locale/index.js +196 -117
  23. package/legacy/styles/index.js +6 -0
  24. package/locale/index.d.ts +2 -1
  25. package/locale/index.js +80 -5
  26. package/modern/Chip/Chip.js +3 -3
  27. package/modern/FilledInput/FilledInput.js +8 -4
  28. package/modern/Input/Input.js +9 -5
  29. package/modern/InputLabel/InputLabel.js +1 -1
  30. package/modern/Popper/Popper.js +11 -7
  31. package/modern/Select/SelectInput.js +7 -6
  32. package/modern/Slider/Slider.js +0 -5
  33. package/modern/TableCell/TableCell.js +5 -1
  34. package/modern/index.js +1 -1
  35. package/modern/locale/index.js +80 -5
  36. package/modern/styles/index.js +6 -0
  37. package/node/Chip/Chip.js +3 -3
  38. package/node/FilledInput/FilledInput.js +8 -4
  39. package/node/Input/Input.js +9 -5
  40. package/node/InputLabel/InputLabel.js +1 -1
  41. package/node/Popper/Popper.js +11 -7
  42. package/node/Select/SelectInput.js +11 -6
  43. package/node/Slider/Slider.js +0 -5
  44. package/node/TableCell/TableCell.js +5 -1
  45. package/node/index.js +1 -1
  46. package/node/locale/index.js +83 -7
  47. package/node/styles/index.js +9 -1
  48. package/package.json +6 -6
  49. package/styles/index.d.ts +3 -0
  50. package/styles/index.js +6 -0
  51. package/umd/material-ui.development.js +3745 -3642
  52. package/umd/material-ui.production.min.js +29 -20
package/CHANGELOG.md CHANGED
@@ -1,5 +1,132 @@
1
1
  # [Versions](https://mui.com/versions/)
2
2
 
3
+ ## 5.11.2
4
+
5
+ <!-- generated comparing v5.11.1..master -->
6
+
7
+ _Dec 26, 2022_
8
+
9
+ A big thanks to the 20 contributors who made this release possible. Here are some highlights ✨:
10
+
11
+ - ⚙️ Several MUI Base components were converted to TypeScript by @trizotti, @leventdeniz and @danhuynhdev (#35005, #34793, #34771)
12
+ - Many other 🐛 bug fixes abd 📚 documentation improvements.
13
+
14
+ ### `@mui/material@5.11.2`
15
+
16
+ - &#8203;<!-- 10 -->[l10n] Add displayed rows label to `faIR` locale (#35587) @hootan-rocky
17
+ - &#8203;<!-- 09 -->[l10n] Add Kurdish (Kurmanji) locale (#32508) @JagarYousef
18
+ - &#8203;<!-- 06 -->[Select] Accept non-component children (#33530) @boutahlilsoufiane
19
+ - &#8203;<!-- 05 -->[SelectInput] Update menu to use select wrapper as anchor (#34229) @EduardoSCosta
20
+ - &#8203;<!-- 03 -->[TableCell] Fix `scope` prop to be not set when a data cell is rendered within a table head (#35559) @sai6855
21
+
22
+ ### `@mui/utils@5.11.2`
23
+
24
+ - &#8203;<!-- 02 -->[utils] `mergedeep` deeply clones source key if it's an object (#35364) @sldk-yuri
25
+
26
+ ### `@mui/base@5.0.0-alpha.112`
27
+
28
+ - &#8203;<!-- 16 -->[FocusTrap][base] Convert code to TypeScript (#35005) @trizotti
29
+ - &#8203;<!-- 08 -->[Modal][base] Convert code to TypeScript (#34793) @leventdeniz
30
+ - &#8203;<!-- 07 -->[Popper][base] Convert code to TypeScript (#34771) @danhuynhdev
31
+ - &#8203;<!-- 04 -->[Slider] Exclude `isRtl` from Material UI's Slider props (#35564) @michaldudak
32
+
33
+ ### `@mui/joy@5.0.0-alpha.60`
34
+
35
+ - &#8203;<!-- 15 -->[Joy] Fix radius adjustment (#35629) @siriwatknp
36
+ - &#8203;<!-- 14 -->[Joy] Apply color inversion to components (#34602) @siriwatknp
37
+ - &#8203;<!-- 13 -->[Joy] Improve cursor pointer and add fallback for outlined variant (#35573) @siriwatknp
38
+ - &#8203;<!-- 12 -->[Joy] Miscellaneous fixes (#35552) @siriwatknp
39
+ - &#8203;<!-- 11 -->[Radio][joy] Use precise dimensions for radio icon (#35548) @hbjORbj
40
+
41
+ ### `@mui/material-next@6.0.0-alpha.68`
42
+
43
+ - &#8203;<!-- 36 -->[Material You] Update Button test & add active class name (#35497) @mnajdova
44
+
45
+ ### Docs
46
+
47
+ - &#8203;<!-- 35 -->[docs] Fix GoogleMaps demo (#35545) @hbjORbj
48
+ - &#8203;<!-- 25 -->[docs] Remove flow, its legacy (#35624) @oliviertassinari
49
+ - &#8203;<!-- 24 -->[docs] Add a guide on using icon libraries with Joy UI (#35377) @siriwatknp
50
+ - &#8203;<!-- 23 -->[docs] Clarify comment about `sortStability()` use case (#35570) @frontendlane
51
+ - &#8203;<!-- 22 -->[docs] Improve the experimental API demos on the button page (#35560) @mnajdova
52
+ - &#8203;<!-- 21 -->[docs] Force `light` theme mode when `activePage` is null (#35575) @LukasTy
53
+ - &#8203;<!-- 20 -->[docs] Fix ListItem button deprecated use (#33970) @MickaelAustoni
54
+ - &#8203;<!-- 19 -->[docs] Fix typo in `Progress` docs (#35553) @jasonsturges
55
+ - &#8203;<!-- 18 -->[docs] Remove empty tags on the TransferList demos (#33127) @ekusiadadus
56
+ - &#8203;<!-- 17 -->[docs][joy] Add documentation for `Stack` component (#35373) @hbjORbj
57
+ - &#8203;<!-- 35 -->[docs][joy] Add documentation for `Grid` component (#35374) @hbjORbj
58
+ - &#8203;<!-- 01 -->[website] Update sponsor grid (#35452) @danilo-leal
59
+
60
+ ### Core
61
+
62
+ - &#8203;<!-- 34 -->[core] Shorthand notation to remove outline (#35623) @oliviertassinari
63
+ - &#8203;<!-- 33 -->[core] Fix header link layout shift and clash (#35626) @oliviertassinari
64
+ - &#8203;<!-- 32 -->[core] Hide keyboard shortcut if no hover feature (#35625) @oliviertassinari
65
+ - &#8203;<!-- 31 -->[core] Fix confusing duplicated name in the log @oliviertassinari
66
+ - &#8203;<!-- 30 -->[core] Fix API demos callout spacing (#35579) @oliviertassinari
67
+ - &#8203;<!-- 29 -->[core] Fix a few title case (#35547) @oliviertassinari
68
+ - &#8203;<!-- 28 -->[core] Cleanup mention of test-utils (#35577) @oliviertassinari
69
+ - &#8203;<!-- 27 -->[core] Remove oudated pickers prop-type logic (#35571) @oliviertassinari
70
+ - &#8203;<!-- 26 -->[core] Exclude documentation of Base props not used in styled libraries (#35562) @michaldudak
71
+
72
+ All contributors of this release in alphabetical order: @boutahlilsoufiane, @danhuynhdev, @danilo-leal, @EduardoSCosta, @ekusiadadus, @frontendlane, @hbjORbj, @hootan-rocky, @JagarYousef, @jasonsturges, @leventdeniz, @LukasTy, @michaldudak, @MickaelAustoni, @mnajdova, @oliviertassinari, @sai6855, @siriwatknp, @sldk-yuri, @trizotti
73
+
74
+ ## 5.11.1
75
+
76
+ <!-- generated comparing v5.11.0..master -->
77
+
78
+ _Dec 20, 2022_
79
+
80
+ A big thanks to the 15 contributors who made this release possible. Here are some highlights ✨:
81
+
82
+ - 💅 @mnajdova added motion and shape design tokens to Material You package (#35384 and #35393).
83
+ - Many other 🐛 bug fixes, 📚 documentation, and ⚙️ infrastructure improvements.
84
+
85
+ ### `@mui/material@5.11.1`
86
+
87
+ - [Chip] Fix hover and focus style with CSS Variables (#35502) @DimaAbr
88
+ - [InputLabel] Enable `size` prop overrides via TypeScript module augmentation (#35460) @MickaelAustoni
89
+ - [l10n] Change Kazakh locale name to match ISO-639-1 codes (#34664) @talgautb
90
+ - [TextField] Fix error focus style (#35167) @42tte
91
+ - [core] Bring `experimental_sx` back with error code (#35528) @siriwatknp
92
+
93
+ ### `@mui/utils@5.11.1`
94
+
95
+ - [Theme] Merge components and slots props (#35477) @siriwatknp
96
+
97
+ ### `@mui/material-next@6.0.0-alpha.67`
98
+
99
+ - [Material You] Add motion design tokens (#35384) @mnajdova
100
+ - [Material You] Add shape design tokens (#35393) @mnajdova
101
+
102
+ ### `@mui/joy@5.0.0-alpha.59`
103
+
104
+ - [Tooltip] Fix arrow does not appear (#35473) @siriwatknp
105
+ - [Input] Fix autofill styles (#35056) @siriwatknp
106
+ - [ChipDelete] Add onDelete prop to ChipDelete (#35412) @sai6855
107
+
108
+ ### `@mui/base@5.0.0-alpha.111`
109
+
110
+ - [Button][base] Set active class when a subcomponent is clicked (#35410) @michaldudak
111
+ - [Popper][base] Fix Tooltip Anchor Element Setter (#35469) @sydneyjodon-wk
112
+
113
+ ### Docs
114
+
115
+ - [docs] Fixed the `Select` component `onChange` event type in the migration guide (#35509) @tzynwang
116
+ - [docs] Add missing comma to `Providing the colors directly` section (#35507) @cassidoo
117
+ - [docs] Add `CardMedia` example without `component="img"` prop (#35470) @lucasmfredmark
118
+ - [docs] Fix `unstable_sxConfig` typo (#35478) @siriwatknp
119
+ - [docs] List component introduction example default code is missing ListItemContent component (#35492) @Miigaarino
120
+ - [website] Close our first people role @oliviertassinari
121
+ - [website] Update product icons (#35413) @danilo-leal
122
+
123
+ ### Core
124
+
125
+ - [test] Terminate BrowserStack after 5 minutes (#35454) @oliviertassinari
126
+ - [test] Fix broken master branch (#35446) @oliviertassinari
127
+
128
+ All contributors of this release in alphabetical order: @42tte, @cassidoo, @danilo-leal, @DimaAbr, @lucasmfredmark, @michaldudak, @MickaelAustoni, @Miigaarino, @mnajdova, @oliviertassinari, @sai6855, @siriwatknp, @sydneyjodon-wk, @talgautb, @tzynwang
129
+
3
130
  ## 5.11.0
4
131
 
5
132
  <!-- generated comparing v5.10.17..master -->
package/Chip/Chip.js CHANGED
@@ -168,7 +168,7 @@ const ChipRoot = styled('div', {
168
168
  color: (theme.vars || theme).palette[ownerState.color].contrastText
169
169
  }, ownerState.onDelete && {
170
170
  [`&.${chipClasses.focusVisible}`]: {
171
- backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.selectedChannel} / calc(${theme.vars.palette.action.selectedOpacity + theme.vars.palette.action.focusOpacity}))` : alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
171
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.selectedChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.focusOpacity}))` : alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
172
172
  }
173
173
  }, ownerState.onDelete && ownerState.color !== 'default' && {
174
174
  [`&.${chipClasses.focusVisible}`]: {
@@ -183,10 +183,10 @@ const ChipRoot = styled('div', {
183
183
  WebkitTapHighlightColor: 'transparent',
184
184
  cursor: 'pointer',
185
185
  '&:hover': {
186
- backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.selectedChannel} / calc(${theme.vars.palette.action.selectedOpacity + theme.vars.palette.action.hoverOpacity}))` : alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity)
186
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.selectedChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.hoverOpacity}))` : alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity)
187
187
  },
188
188
  [`&.${chipClasses.focusVisible}`]: {
189
- backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.selectedChannel} / calc(${theme.vars.palette.action.selectedOpacity + theme.vars.palette.action.focusOpacity}))` : alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
189
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.selectedChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.focusOpacity}))` : alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
190
190
  },
191
191
  '&:active': {
192
192
  boxShadow: (theme.vars || theme).shadows[1]
@@ -87,9 +87,13 @@ const FilledInputRoot = styled(InputBaseRoot, {
87
87
  // See https://github.com/mui/material-ui/issues/31766
88
88
  transform: 'scaleX(1) translateX(0)'
89
89
  },
90
- [`&.${filledInputClasses.error}:after`]: {
91
- borderBottomColor: (theme.vars || theme).palette.error.main,
92
- transform: 'scaleX(1)' // error is always underlined in red
90
+ [`&.${filledInputClasses.error}`]: {
91
+ '&:before, &:after': {
92
+ borderBottomColor: (theme.vars || theme).palette.error.main
93
+ },
94
+ '&:focus-within:after': {
95
+ transform: 'scaleX(1)' // error is always underlined in red
96
+ }
93
97
  },
94
98
 
95
99
  '&:before': {
@@ -106,7 +110,7 @@ const FilledInputRoot = styled(InputBaseRoot, {
106
110
  pointerEvents: 'none' // Transparent to the hover style.
107
111
  },
108
112
 
109
- [`&:hover:not(.${filledInputClasses.disabled}):before`]: {
113
+ [`&:hover:not(.${filledInputClasses.disabled}, .${filledInputClasses.error}):before`]: {
110
114
  borderBottom: `1px solid ${(theme.vars || theme).palette.text.primary}`
111
115
  },
112
116
  [`&.${filledInputClasses.disabled}:before`]: {
package/Input/Input.js CHANGED
@@ -70,9 +70,13 @@ const InputRoot = styled(InputBaseRoot, {
70
70
  // See https://github.com/mui/material-ui/issues/31766
71
71
  transform: 'scaleX(1) translateX(0)'
72
72
  },
73
- [`&.${inputClasses.error}:after`]: {
74
- borderBottomColor: (theme.vars || theme).palette.error.main,
75
- transform: 'scaleX(1)' // error is always underlined in red
73
+ [`&.${inputClasses.error}`]: {
74
+ '&:before, &:after': {
75
+ borderBottomColor: (theme.vars || theme).palette.error.main
76
+ },
77
+ '&:focus-within:after': {
78
+ transform: 'scaleX(1)' // error is always underlined in red
79
+ }
76
80
  },
77
81
 
78
82
  '&:before': {
@@ -89,8 +93,8 @@ const InputRoot = styled(InputBaseRoot, {
89
93
  pointerEvents: 'none' // Transparent to the hover style.
90
94
  },
91
95
 
92
- [`&:hover:not(.${inputClasses.disabled}):before`]: {
93
- borderBottom: `2px solid ${(theme.vars || theme).palette.text.primary}`,
96
+ [`&:hover:not(.${inputClasses.disabled}, .${inputClasses.error}):before`]: {
97
+ borderBottom: `1px solid ${(theme.vars || theme).palette.text.primary}`,
94
98
  // Reset on touch devices, it doesn't add specificity
95
99
  '@media (hover: none)': {
96
100
  borderBottom: `1px solid ${bottomLineColor}`
@@ -1,10 +1,13 @@
1
1
  import * as React from 'react';
2
2
  import { SxProps } from '@mui/system';
3
+ import { OverridableStringUnion } from '@mui/types';
3
4
  import { InternalStandardProps as StandardProps } from '..';
4
5
  import { FormLabelProps } from '../FormLabel';
5
6
  import { Theme } from '../styles';
6
7
  import { InputLabelClasses } from './inputLabelClasses';
7
8
 
9
+ export interface InputLabelPropsSizeOverrides {}
10
+
8
11
  export interface InputLabelProps extends StandardProps<FormLabelProps> {
9
12
  /**
10
13
  * The content of the component.
@@ -49,7 +52,7 @@ export interface InputLabelProps extends StandardProps<FormLabelProps> {
49
52
  * The size of the component.
50
53
  * @default 'normal'
51
54
  */
52
- size?: 'small' | 'normal';
55
+ size?: OverridableStringUnion<'small' | 'normal', InputLabelPropsSizeOverrides>;
53
56
  /**
54
57
  * The system prop that allows defining system overrides as well as additional CSS styles.
55
58
  */
@@ -197,7 +197,7 @@ process.env.NODE_ENV !== "production" ? InputLabel.propTypes /* remove-proptypes
197
197
  * The size of the component.
198
198
  * @default 'normal'
199
199
  */
200
- size: PropTypes.oneOf(['normal', 'small']),
200
+ size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['normal', 'small']), PropTypes.string]),
201
201
  /**
202
202
  * The system prop that allows defining system overrides as well as additional CSS styles.
203
203
  */
@@ -33,5 +33,5 @@ export type PopperProps = Omit<PopperUnstyledProps, 'direction'> & {
33
33
  *
34
34
  * - [Popper API](https://mui.com/material-ui/api/popper/)
35
35
  */
36
- declare const Popper: React.ForwardRefExoticComponent<Pick<PopperProps, "hidden" | "color" | "style" | "open" | "translate" | "transition" | "slot" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "component" | "sx" | "components" | "container" | "placement" | "disablePortal" | "modifiers" | "anchorEl" | "keepMounted" | "popperOptions" | "popperRef" | "slotProps" | "slots" | "componentsProps"> & React.RefAttributes<HTMLDivElement>>;
36
+ declare const Popper: React.ForwardRefExoticComponent<Pick<PopperProps, "hidden" | "color" | "style" | "open" | "translate" | "transition" | "slot" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "component" | "sx" | "ownerState" | "components" | "container" | "placement" | "disablePortal" | "modifiers" | "anchorEl" | "keepMounted" | "popperOptions" | "popperRef" | "slotProps" | "slots" | "componentsProps"> & React.RefAttributes<HTMLDivElement>>;
37
37
  export default Popper;
package/Popper/Popper.js CHANGED
@@ -29,17 +29,17 @@ const PopperRoot = styled(PopperUnstyled, {
29
29
  const Popper = /*#__PURE__*/React.forwardRef(function Popper(inProps, ref) {
30
30
  var _slots$root;
31
31
  const theme = useTheme();
32
- const _useThemeProps = useThemeProps({
33
- props: inProps,
34
- name: 'MuiPopper'
35
- }),
36
- {
32
+ const props = useThemeProps({
33
+ props: inProps,
34
+ name: 'MuiPopper'
35
+ });
36
+ const {
37
37
  components,
38
38
  componentsProps,
39
39
  slots,
40
40
  slotProps
41
- } = _useThemeProps,
42
- other = _objectWithoutPropertiesLoose(_useThemeProps, _excluded);
41
+ } = props,
42
+ other = _objectWithoutPropertiesLoose(props, _excluded);
43
43
  const RootComponent = (_slots$root = slots == null ? void 0 : slots.root) != null ? _slots$root : components == null ? void 0 : components.Root;
44
44
  return /*#__PURE__*/_jsx(PopperRoot, _extends({
45
45
  direction: theme == null ? void 0 : theme.direction,
@@ -130,6 +130,10 @@ process.env.NODE_ENV !== "production" ? Popper.propTypes /* remove-proptypes */
130
130
  * If `true`, the component is shown.
131
131
  */
132
132
  open: PropTypes.bool.isRequired,
133
+ /**
134
+ * @ignore
135
+ */
136
+ ownerState: PropTypes.any,
133
137
  /**
134
138
  * Popper placement.
135
139
  * @default 'bottom'
@@ -159,6 +159,7 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
159
159
  setDisplayNode(node);
160
160
  }
161
161
  }, []);
162
+ const anchorElement = displayNode == null ? void 0 : displayNode.parentNode;
162
163
  React.useImperativeHandle(handleRef, () => ({
163
164
  focus: () => {
164
165
  displayRef.current.focus();
@@ -170,7 +171,7 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
170
171
  // Resize menu on `defaultOpen` automatic toggle.
171
172
  React.useEffect(() => {
172
173
  if (defaultOpen && openState && displayNode && !isOpenControlled) {
173
- setMenuMinWidthState(autoWidth ? null : displayNode.clientWidth);
174
+ setMenuMinWidthState(autoWidth ? null : anchorElement.clientWidth);
174
175
  displayRef.current.focus();
175
176
  }
176
177
  // eslint-disable-next-line react-hooks/exhaustive-deps
@@ -209,7 +210,7 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
209
210
  onClose(event);
210
211
  }
211
212
  if (!isOpenControlled) {
212
- setMenuMinWidthState(autoWidth ? null : displayNode.clientWidth);
213
+ setMenuMinWidthState(autoWidth ? null : anchorElement.clientWidth);
213
214
  setOpenState(open);
214
215
  }
215
216
  };
@@ -329,6 +330,7 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
329
330
  }
330
331
  }
331
332
  const items = childrenArray.map((child, index, arr) => {
333
+ var _arr$, _arr$$props, _arr$2, _arr$2$props;
332
334
  if (! /*#__PURE__*/React.isValidElement(child)) {
333
335
  return null;
334
336
  }
@@ -365,7 +367,10 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
365
367
  if (value) {
366
368
  return selected;
367
369
  }
368
- const firstSelectableElement = arr.find(item => item.props.value !== undefined && item.props.disabled !== true);
370
+ const firstSelectableElement = arr.find(item => {
371
+ var _item$props;
372
+ return (item == null ? void 0 : (_item$props = item.props) == null ? void 0 : _item$props.value) !== undefined && item.props.disabled !== true;
373
+ });
369
374
  if (child === firstSelectableElement) {
370
375
  return true;
371
376
  }
@@ -386,7 +391,7 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
386
391
  }
387
392
  },
388
393
  role: 'option',
389
- selected: arr[0].props.value === undefined || arr[0].props.disabled === true ? isFirstSelectableElement() : selected,
394
+ selected: ((_arr$ = arr[0]) == null ? void 0 : (_arr$$props = _arr$.props) == null ? void 0 : _arr$$props.value) === undefined || ((_arr$2 = arr[0]) == null ? void 0 : (_arr$2$props = _arr$2.props) == null ? void 0 : _arr$2$props.disabled) === true ? isFirstSelectableElement() : selected,
390
395
  value: undefined,
391
396
  // The value is most likely not a valid HTML attribute.
392
397
  'data-value': child.props.value // Instead, we provide it as a data attribute.
@@ -423,7 +428,7 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
423
428
  // Avoid performing a layout computation in the render method.
424
429
  let menuMinWidth = menuMinWidthState;
425
430
  if (!autoWidth && isOpenControlled && displayNode) {
426
- menuMinWidth = displayNode.clientWidth;
431
+ menuMinWidth = anchorElement.clientWidth;
427
432
  }
428
433
  let tabIndex;
429
434
  if (typeof tabIndexProp !== 'undefined') {
@@ -481,7 +486,7 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
481
486
  ownerState: ownerState
482
487
  }), /*#__PURE__*/_jsx(Menu, _extends({
483
488
  id: `menu-${name || ''}`,
484
- anchorEl: displayNode,
489
+ anchorEl: anchorElement,
485
490
  open: open,
486
491
  onClose: handleClose,
487
492
  anchorOrigin: {
package/Slider/Slider.js CHANGED
@@ -620,11 +620,6 @@ process.env.NODE_ENV !== "production" ? Slider.propTypes /* remove-proptypes */
620
620
  * @returns {string}
621
621
  */
622
622
  getAriaValueText: PropTypes.func,
623
- /**
624
- * Indicates whether the theme context has rtl direction. It is set automatically.
625
- * @default false
626
- */
627
- isRtl: PropTypes.bool,
628
623
  /**
629
624
  * Marks indicate predetermined values to which the user can move the slider.
630
625
  * If `true` the marks are spaced according the value of the `step` prop.
@@ -120,7 +120,11 @@ const TableCell = /*#__PURE__*/React.forwardRef(function TableCell(inProps, ref)
120
120
  component = isHeadCell ? 'th' : 'td';
121
121
  }
122
122
  let scope = scopeProp;
123
- if (!scope && isHeadCell) {
123
+ // scope is not a valid attribute for <td/> elements.
124
+ // source: https://html.spec.whatwg.org/multipage/tables.html#the-td-element
125
+ if (component === 'td') {
126
+ scope = undefined;
127
+ } else if (!scope && isHeadCell) {
124
128
  scope = 'col';
125
129
  }
126
130
  const variant = variantProp || tablelvl2 && tablelvl2.variant;
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.11.0
1
+ /** @license MUI v5.11.2
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -134,7 +134,7 @@ var ChipRoot = styled('div', {
134
134
  backgroundColor: (theme.vars || theme).palette[ownerState.color].main,
135
135
  color: (theme.vars || theme).palette[ownerState.color].contrastText
136
136
  }, ownerState.onDelete && _defineProperty({}, "&.".concat(chipClasses.focusVisible), {
137
- backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.action.selectedChannel, " / calc(").concat(theme.vars.palette.action.selectedOpacity + theme.vars.palette.action.focusOpacity, "))") : alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
137
+ backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.action.selectedChannel, " / calc(").concat(theme.vars.palette.action.selectedOpacity, " + ").concat(theme.vars.palette.action.focusOpacity, "))") : alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
138
138
  }), ownerState.onDelete && ownerState.color !== 'default' && _defineProperty({}, "&.".concat(chipClasses.focusVisible), {
139
139
  backgroundColor: (theme.vars || theme).palette[ownerState.color].dark
140
140
  }));
@@ -147,10 +147,10 @@ var ChipRoot = styled('div', {
147
147
  WebkitTapHighlightColor: 'transparent',
148
148
  cursor: 'pointer',
149
149
  '&:hover': {
150
- backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.action.selectedChannel, " / calc(").concat(theme.vars.palette.action.selectedOpacity + theme.vars.palette.action.hoverOpacity, "))") : alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity)
150
+ backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.action.selectedChannel, " / calc(").concat(theme.vars.palette.action.selectedOpacity, " + ").concat(theme.vars.palette.action.hoverOpacity, "))") : alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity)
151
151
  }
152
152
  }, _defineProperty(_ref15, "&.".concat(chipClasses.focusVisible), {
153
- backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.action.selectedChannel, " / calc(").concat(theme.vars.palette.action.selectedOpacity + theme.vars.palette.action.focusOpacity, "))") : alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
153
+ backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.action.selectedChannel, " / calc(").concat(theme.vars.palette.action.selectedOpacity, " + ").concat(theme.vars.palette.action.focusOpacity, "))") : alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
154
154
  }), _defineProperty(_ref15, '&:active', {
155
155
  boxShadow: (theme.vars || theme).shadows[1]
156
156
  }), _ref15), ownerState.clickable && ownerState.color !== 'default' && _defineProperty({}, "&:hover, &.".concat(chipClasses.focusVisible), {
@@ -81,9 +81,13 @@ var FilledInputRoot = styled(InputBaseRoot, {
81
81
  // translateX(0) is a workaround for Safari transform scale bug
82
82
  // See https://github.com/mui/material-ui/issues/31766
83
83
  transform: 'scaleX(1) translateX(0)'
84
- }), _defineProperty(_ref2, "&.".concat(filledInputClasses.error, ":after"), {
85
- borderBottomColor: (theme.vars || theme).palette.error.main,
86
- transform: 'scaleX(1)' // error is always underlined in red
84
+ }), _defineProperty(_ref2, "&.".concat(filledInputClasses.error), {
85
+ '&:before, &:after': {
86
+ borderBottomColor: (theme.vars || theme).palette.error.main
87
+ },
88
+ '&:focus-within:after': {
89
+ transform: 'scaleX(1)' // error is always underlined in red
90
+ }
87
91
  }), _defineProperty(_ref2, '&:before', {
88
92
  borderBottom: "1px solid ".concat(theme.vars ? "rgba(".concat(theme.vars.palette.common.onBackgroundChannel, " / ").concat(theme.vars.opacity.inputUnderline, ")") : bottomLineColor),
89
93
  left: 0,
@@ -96,7 +100,7 @@ var FilledInputRoot = styled(InputBaseRoot, {
96
100
  duration: theme.transitions.duration.shorter
97
101
  }),
98
102
  pointerEvents: 'none' // Transparent to the hover style.
99
- }), _defineProperty(_ref2, "&:hover:not(.".concat(filledInputClasses.disabled, "):before"), {
103
+ }), _defineProperty(_ref2, "&:hover:not(.".concat(filledInputClasses.disabled, ", .").concat(filledInputClasses.error, "):before"), {
100
104
  borderBottom: "1px solid ".concat((theme.vars || theme).palette.text.primary)
101
105
  }), _defineProperty(_ref2, "&.".concat(filledInputClasses.disabled, ":before"), {
102
106
  borderBottomStyle: 'dotted'
@@ -67,9 +67,13 @@ var InputRoot = styled(InputBaseRoot, {
67
67
  // translateX(0) is a workaround for Safari transform scale bug
68
68
  // See https://github.com/mui/material-ui/issues/31766
69
69
  transform: 'scaleX(1) translateX(0)'
70
- }), _defineProperty(_ref2, "&.".concat(inputClasses.error, ":after"), {
71
- borderBottomColor: (theme.vars || theme).palette.error.main,
72
- transform: 'scaleX(1)' // error is always underlined in red
70
+ }), _defineProperty(_ref2, "&.".concat(inputClasses.error), {
71
+ '&:before, &:after': {
72
+ borderBottomColor: (theme.vars || theme).palette.error.main
73
+ },
74
+ '&:focus-within:after': {
75
+ transform: 'scaleX(1)' // error is always underlined in red
76
+ }
73
77
  }), _defineProperty(_ref2, '&:before', {
74
78
  borderBottom: "1px solid ".concat(bottomLineColor),
75
79
  left: 0,
@@ -82,8 +86,8 @@ var InputRoot = styled(InputBaseRoot, {
82
86
  duration: theme.transitions.duration.shorter
83
87
  }),
84
88
  pointerEvents: 'none' // Transparent to the hover style.
85
- }), _defineProperty(_ref2, "&:hover:not(.".concat(inputClasses.disabled, "):before"), {
86
- borderBottom: "2px solid ".concat((theme.vars || theme).palette.text.primary),
89
+ }), _defineProperty(_ref2, "&:hover:not(.".concat(inputClasses.disabled, ", .").concat(inputClasses.error, "):before"), {
90
+ borderBottom: "1px solid ".concat((theme.vars || theme).palette.text.primary),
87
91
  // Reset on touch devices, it doesn't add specificity
88
92
  '@media (hover: none)': {
89
93
  borderBottom: "1px solid ".concat(bottomLineColor)
@@ -195,7 +195,7 @@ process.env.NODE_ENV !== "production" ? InputLabel.propTypes /* remove-proptypes
195
195
  * The size of the component.
196
196
  * @default 'normal'
197
197
  */
198
- size: PropTypes.oneOf(['normal', 'small']),
198
+ size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['normal', 'small']), PropTypes.string]),
199
199
  /**
200
200
  * The system prop that allows defining system overrides as well as additional CSS styles.
201
201
  */
@@ -30,15 +30,15 @@ var PopperRoot = styled(PopperUnstyled, {
30
30
  var Popper = /*#__PURE__*/React.forwardRef(function Popper(inProps, ref) {
31
31
  var _slots$root;
32
32
  var theme = useTheme();
33
- var _useThemeProps = useThemeProps({
34
- props: inProps,
35
- name: 'MuiPopper'
36
- }),
37
- components = _useThemeProps.components,
38
- componentsProps = _useThemeProps.componentsProps,
39
- slots = _useThemeProps.slots,
40
- slotProps = _useThemeProps.slotProps,
41
- other = _objectWithoutProperties(_useThemeProps, ["components", "componentsProps", "slots", "slotProps"]);
33
+ var props = useThemeProps({
34
+ props: inProps,
35
+ name: 'MuiPopper'
36
+ });
37
+ var components = props.components,
38
+ componentsProps = props.componentsProps,
39
+ slots = props.slots,
40
+ slotProps = props.slotProps,
41
+ other = _objectWithoutProperties(props, ["components", "componentsProps", "slots", "slotProps"]);
42
42
  var RootComponent = (_slots$root = slots == null ? void 0 : slots.root) != null ? _slots$root : components == null ? void 0 : components.Root;
43
43
  return /*#__PURE__*/_jsx(PopperRoot, _extends({
44
44
  direction: theme == null ? void 0 : theme.direction,
@@ -129,6 +129,10 @@ process.env.NODE_ENV !== "production" ? Popper.propTypes /* remove-proptypes */
129
129
  * If `true`, the component is shown.
130
130
  */
131
131
  open: PropTypes.bool.isRequired,
132
+ /**
133
+ * @ignore
134
+ */
135
+ ownerState: PropTypes.any,
132
136
  /**
133
137
  * Popper placement.
134
138
  * @default 'bottom'
@@ -160,6 +160,7 @@ var SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, ref)
160
160
  setDisplayNode(node);
161
161
  }
162
162
  }, []);
163
+ var anchorElement = displayNode == null ? void 0 : displayNode.parentNode;
163
164
  React.useImperativeHandle(handleRef, function () {
164
165
  return {
165
166
  focus: function focus() {
@@ -173,7 +174,7 @@ var SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, ref)
173
174
  // Resize menu on `defaultOpen` automatic toggle.
174
175
  React.useEffect(function () {
175
176
  if (defaultOpen && openState && displayNode && !isOpenControlled) {
176
- setMenuMinWidthState(autoWidth ? null : displayNode.clientWidth);
177
+ setMenuMinWidthState(autoWidth ? null : anchorElement.clientWidth);
177
178
  displayRef.current.focus();
178
179
  }
179
180
  // eslint-disable-next-line react-hooks/exhaustive-deps
@@ -212,7 +213,7 @@ var SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, ref)
212
213
  onClose(event);
213
214
  }
214
215
  if (!isOpenControlled) {
215
- setMenuMinWidthState(autoWidth ? null : displayNode.clientWidth);
216
+ setMenuMinWidthState(autoWidth ? null : anchorElement.clientWidth);
216
217
  setOpenState(open);
217
218
  }
218
219
  };
@@ -336,6 +337,7 @@ var SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, ref)
336
337
  }
337
338
  }
338
339
  var items = childrenArray.map(function (child, index, arr) {
340
+ var _arr$, _arr$$props, _arr$2, _arr$2$props;
339
341
  if (! /*#__PURE__*/React.isValidElement(child)) {
340
342
  return null;
341
343
  }
@@ -375,7 +377,8 @@ var SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, ref)
375
377
  return selected;
376
378
  }
377
379
  var firstSelectableElement = arr.find(function (item) {
378
- return item.props.value !== undefined && item.props.disabled !== true;
380
+ var _item$props;
381
+ return (item == null ? void 0 : (_item$props = item.props) == null ? void 0 : _item$props.value) !== undefined && item.props.disabled !== true;
379
382
  });
380
383
  if (child === firstSelectableElement) {
381
384
  return true;
@@ -397,7 +400,7 @@ var SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, ref)
397
400
  }
398
401
  },
399
402
  role: 'option',
400
- selected: arr[0].props.value === undefined || arr[0].props.disabled === true ? isFirstSelectableElement() : selected,
403
+ selected: ((_arr$ = arr[0]) == null ? void 0 : (_arr$$props = _arr$.props) == null ? void 0 : _arr$$props.value) === undefined || ((_arr$2 = arr[0]) == null ? void 0 : (_arr$2$props = _arr$2.props) == null ? void 0 : _arr$2$props.disabled) === true ? isFirstSelectableElement() : selected,
401
404
  value: undefined,
402
405
  // The value is most likely not a valid HTML attribute.
403
406
  'data-value': child.props.value // Instead, we provide it as a data attribute.
@@ -440,7 +443,7 @@ var SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, ref)
440
443
  // Avoid performing a layout computation in the render method.
441
444
  var menuMinWidth = menuMinWidthState;
442
445
  if (!autoWidth && isOpenControlled && displayNode) {
443
- menuMinWidth = displayNode.clientWidth;
446
+ menuMinWidth = anchorElement.clientWidth;
444
447
  }
445
448
  var tabIndex;
446
449
  if (typeof tabIndexProp !== 'undefined') {
@@ -498,7 +501,7 @@ var SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, ref)
498
501
  ownerState: ownerState
499
502
  }), /*#__PURE__*/_jsx(Menu, _extends({
500
503
  id: "menu-".concat(name || ''),
501
- anchorEl: displayNode,
504
+ anchorEl: anchorElement,
502
505
  open: open,
503
506
  onClose: handleClose,
504
507
  anchorOrigin: {
@@ -624,11 +624,6 @@ process.env.NODE_ENV !== "production" ? Slider.propTypes /* remove-proptypes */
624
624
  * @returns {string}
625
625
  */
626
626
  getAriaValueText: PropTypes.func,
627
- /**
628
- * Indicates whether the theme context has rtl direction. It is set automatically.
629
- * @default false
630
- */
631
- isRtl: PropTypes.bool,
632
627
  /**
633
628
  * Marks indicate predetermined values to which the user can move the slider.
634
629
  * If `true` the marks are spaced according the value of the `step` prop.