@mui/material 5.11.3 → 5.11.5

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 (71) hide show
  1. package/Autocomplete/Autocomplete.d.ts +4 -3
  2. package/Autocomplete/Autocomplete.js +1 -0
  3. package/Box/Box.d.ts +5 -22
  4. package/CHANGELOG.md +106 -0
  5. package/FilledInput/FilledInput.js +0 -4
  6. package/Input/Input.js +1 -5
  7. package/MenuItem/MenuItem.d.ts +1 -1
  8. package/MenuItem/MenuItem.js +2 -1
  9. package/Modal/Modal.d.ts +35 -12
  10. package/Select/Select.d.ts +25 -83
  11. package/Slider/Slider.d.ts +1 -2
  12. package/Slider/Slider.js +222 -63
  13. package/Slider/SliderValueLabel.d.ts +15 -0
  14. package/Slider/SliderValueLabel.js +49 -0
  15. package/Slider/SliderValueLabel.types.d.ts +24 -0
  16. package/Slider/SliderValueLabel.types.js +1 -0
  17. package/Slider/index.d.ts +1 -0
  18. package/Slider/index.js +2 -1
  19. package/Slider/sliderClasses.d.ts +29 -0
  20. package/Slider/sliderClasses.js +5 -0
  21. package/Tabs/Tabs.js +3 -1
  22. package/Tooltip/Tooltip.js +0 -1
  23. package/index.js +3 -1
  24. package/legacy/Autocomplete/Autocomplete.js +1 -0
  25. package/legacy/FilledInput/FilledInput.js +0 -3
  26. package/legacy/Input/Input.js +1 -4
  27. package/legacy/MenuItem/MenuItem.js +2 -1
  28. package/legacy/Slider/Slider.js +251 -72
  29. package/legacy/Slider/SliderValueLabel.js +45 -0
  30. package/legacy/Slider/SliderValueLabel.types.js +1 -0
  31. package/legacy/Slider/index.js +2 -1
  32. package/legacy/Slider/sliderClasses.js +5 -0
  33. package/legacy/Tabs/Tabs.js +3 -1
  34. package/legacy/Tooltip/Tooltip.js +0 -1
  35. package/legacy/index.js +3 -1
  36. package/legacy/locale/index.js +230 -144
  37. package/legacy/styles/experimental_extendTheme.js +16 -8
  38. package/locale/index.d.ts +1 -0
  39. package/locale/index.js +85 -0
  40. package/modern/Autocomplete/Autocomplete.js +1 -0
  41. package/modern/FilledInput/FilledInput.js +0 -4
  42. package/modern/Input/Input.js +1 -5
  43. package/modern/MenuItem/MenuItem.js +2 -1
  44. package/modern/Slider/Slider.js +221 -62
  45. package/modern/Slider/SliderValueLabel.js +49 -0
  46. package/modern/Slider/SliderValueLabel.types.js +1 -0
  47. package/modern/Slider/index.js +2 -1
  48. package/modern/Slider/sliderClasses.js +5 -0
  49. package/modern/Tabs/Tabs.js +3 -1
  50. package/modern/Tooltip/Tooltip.js +0 -1
  51. package/modern/index.js +3 -1
  52. package/modern/locale/index.js +85 -0
  53. package/modern/styles/experimental_extendTheme.js +16 -8
  54. package/node/Autocomplete/Autocomplete.js +1 -0
  55. package/node/FilledInput/FilledInput.js +0 -4
  56. package/node/Input/Input.js +1 -5
  57. package/node/MenuItem/MenuItem.js +2 -1
  58. package/node/Slider/Slider.js +228 -71
  59. package/node/Slider/SliderValueLabel.js +57 -0
  60. package/node/Slider/SliderValueLabel.types.js +5 -0
  61. package/node/Slider/index.js +11 -1
  62. package/node/Slider/sliderClasses.js +13 -0
  63. package/node/Tabs/Tabs.js +3 -1
  64. package/node/Tooltip/Tooltip.js +0 -1
  65. package/node/index.js +3 -1
  66. package/node/locale/index.js +87 -1
  67. package/node/styles/experimental_extendTheme.js +16 -8
  68. package/package.json +4 -4
  69. package/styles/experimental_extendTheme.js +16 -8
  70. package/umd/material-ui.development.js +523 -787
  71. package/umd/material-ui.production.min.js +23 -21
@@ -52,6 +52,7 @@ export type AutocompleteRenderGetTagProps = ({ index }: { index: number }) => {
52
52
 
53
53
  export interface AutocompleteRenderOptionState {
54
54
  inputValue: string;
55
+ index: number;
55
56
  selected: boolean;
56
57
  }
57
58
 
@@ -286,7 +287,7 @@ export interface AutocompleteProps<
286
287
  */
287
288
  export default function Autocomplete<
288
289
  T,
289
- Multiple extends boolean | undefined = undefined,
290
- DisableClearable extends boolean | undefined = undefined,
291
- FreeSolo extends boolean | undefined = undefined,
290
+ Multiple extends boolean | undefined = false,
291
+ DisableClearable extends boolean | undefined = false,
292
+ FreeSolo extends boolean | undefined = false,
292
293
  >(props: AutocompleteProps<T, Multiple, DisableClearable, FreeSolo>): JSX.Element;
@@ -503,6 +503,7 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
503
503
  className: classes.option
504
504
  }), option, {
505
505
  selected: optionProps['aria-selected'],
506
+ index,
506
507
  inputValue
507
508
  });
508
509
  };
package/Box/Box.d.ts CHANGED
@@ -1,24 +1,7 @@
1
- import { SxProps, SystemProps } from '@mui/system';
2
- import { OverridableComponent, OverrideProps } from '../OverridableComponent';
3
- import { Theme } from '../styles';
1
+ import { createBox, BoxTypeMap } from '@mui/system';
2
+ import { OverrideProps } from '../OverridableComponent';
3
+ import { Theme as MaterialTheme } from '../styles';
4
4
 
5
- export interface BoxTypeMap<P = {}, D extends React.ElementType = 'div'> {
6
- props: P &
7
- SystemProps<Theme> & {
8
- children?: React.ReactNode;
9
- /**
10
- * The component used for the root node.
11
- * Either a string to use a HTML element or a component.
12
- */
13
- component?: React.ElementType;
14
- ref?: React.Ref<unknown>;
15
- /**
16
- * The system prop that allows defining system overrides as well as additional CSS styles.
17
- */
18
- sx?: SxProps<Theme>;
19
- };
20
- defaultComponent: D;
21
- }
22
5
  /**
23
6
  *
24
7
  * Demos:
@@ -29,11 +12,11 @@ export interface BoxTypeMap<P = {}, D extends React.ElementType = 'div'> {
29
12
  *
30
13
  * - [Box API](https://mui.com/material-ui/api/box/)
31
14
  */
32
- declare const Box: OverridableComponent<BoxTypeMap>;
15
+ declare const Box: ReturnType<typeof createBox<MaterialTheme>>;
33
16
 
34
17
  export type BoxProps<
35
18
  D extends React.ElementType = BoxTypeMap['defaultComponent'],
36
19
  P = {},
37
- > = OverrideProps<BoxTypeMap<P, D>, D>;
20
+ > = OverrideProps<BoxTypeMap<P, D, MaterialTheme>, D>;
38
21
 
39
22
  export default Box;
package/CHANGELOG.md CHANGED
@@ -1,5 +1,111 @@
1
1
  # [Versions](https://mui.com/versions/)
2
2
 
3
+ ## 5.11.5
4
+
5
+ <!-- generated comparing v5.11.4..master -->
6
+
7
+ _Jan 17, 2023_
8
+
9
+ A big thanks to the 17 contributors who made this release possible.
10
+ This release was mostly about 🐛 bug fixes and 📚 documentation improvements.
11
+
12
+ ### `@mui/material@5.11.5`
13
+
14
+ - [Material UI] Custom channel token should suppress the warning (#35804) @siriwatknp
15
+ - [Autocomplete] Fix value type when `strictNullChecks` is `false` (#35367) @fenghan34
16
+ - [Slider] Replace `SliderUnstyled` with `useSlider` hook (#35770) @ZeeshanTamboli
17
+ - [l10n] Add Belarusian translation (#35742) @volhalink
18
+
19
+ ### `@mui/system@5.11.5`
20
+
21
+ - [system] Improve the `createBox` types (#35532) @mnajdova
22
+
23
+ ### `@mui/codemod@5.11.5`
24
+
25
+ - Add `joy-text-field-to-input` codemod (#35462) @hbjORbj
26
+
27
+ ### `@mui/base@5.0.0-alpha.114`
28
+
29
+ - [base] Fix typos (#35802) @nnmax
30
+ - [Slider] Convert code to TypeScript (#35445) @sai6855
31
+
32
+ ### `@mui/joy@5.0.0-alpha.63`
33
+
34
+ - [Tabs][joy] Don't apply `:hover, :active` styles when `selected` (#35750) @sai6855
35
+ - Remove `TextField` component and replace its usage in docs with `FormControl`/`FormLabel`/`Input` (#35462) @hbjORbj
36
+ - [TextField] Throw error with migration message (#35845) @siriwatknp
37
+ - Miscellaneous fixes (#35847) @siriwatknp
38
+
39
+ ### Docs
40
+
41
+ - [docs] Improve pickers lab migration stressing `mui-x` usage (#35740) @LukasTy
42
+ - [docs] Fix incorrectly named AccessibleTable demo component (#35832) @HeVictor
43
+ - [docs] Clarify where to find docs for MUI Base components in Material UI (#35799) @samuelsycamore
44
+ - [docs] Fix typos (#35814) @alexfauquette
45
+ - [docs] Revise and expand the Joy UI Card page (#35745) @samuelsycamore
46
+ - [docs] Fix navigation layout shift (#35679) @oliviertassinari
47
+ - [docs] Fix typo in the Composition page (#35774) @msoyka
48
+ - [docs][joy] Update Customization section code example to use the correct API (#35765) @pupudu
49
+ - [docs][joy] Fix grammar in `Typography` docs (#35796) @atrefonas
50
+ - [examples] Remove `next-env.d.ts` from Next.js examples (#35772) @Juneezee
51
+
52
+ ### Core
53
+
54
+ - [website] Improve pricing page (#35767) @oliviertassinari
55
+ - [website] Add Greg in about page (#35816) @oliviertassinari
56
+ - [website] Update the Accessibility Engineer role (#35751) @oliviertassinari
57
+ - [website] Add docs for MUI for Figma @oliviertassinari
58
+
59
+ All contributors of this release in alphabetical order: @alexfauquette, @atrefonas, @fenghan34, @hbjORbj, @HeVictor, @Juneezee, @LukasTy, @mnajdova, @msoyka, @nnmax, @oliviertassinari, @pupudu, @sai6855, @samuelsycamore, @siriwatknp, @volhalink, @ZeeshanTamboli
60
+
61
+ ## 5.11.4
62
+
63
+ <!-- generated comparing v5.11.3..master -->
64
+
65
+ _Jan 9, 2023_
66
+
67
+ A big thanks to the 14 contributors who made this release possible.
68
+ This release was mostly about 🐛 bug fixes and 📚 documentation improvements.
69
+
70
+ ### `@mui/material@5.11.4`
71
+
72
+ - [Autocomplete] Add index to renderOption's AutocompleteRenderOptionState (#35578) @CowDotDev
73
+ - [Autocomplete] Fix grammar in console.error in `useAutocomplete` (#35723) @hamirmahal
74
+ - [Modal] Fix can't override Backdrop Props using new Slots API (#35140) @ZeeshanTamboli
75
+ - [Select] Revert "Update `renderValue` prop's TypeScript type (#34177)" (#35733) @michaldudak
76
+ - [Tabs] Throw error only if individual `Tab` is hidden, not the whole `Tabs` (#34026) @Ryczko
77
+ - [TextField] Improve WCAG 2.4.7 with error={true} (#35687) @oliviertassinari
78
+ - [Tooltip] Remove `data-foo` attribute (#35736) @koolskateguy89
79
+
80
+ ### `@mui/joy@5.0.0-alpha.62`
81
+
82
+ - [Autocomplete][joy] Specify `type` attribute for popup indicator (#35648) @hbjORbj
83
+ - [Joy] Miscellaneous improvements (#35769) @siriwatknp
84
+ - [Joy] Improve `onKeyDown` event handler for demo (#35642) @hbjORbj
85
+
86
+ ### `@mui/base@5.0.0-alpha.113`
87
+
88
+ - [Portal][base] Convert code to TypeScript (#35657) @sai6855
89
+
90
+ ### Docs
91
+
92
+ - [docs] Revise and expand Joy UI Button doc (#35737) @samuelsycamore
93
+ - [docs] Document the workaround for crashing a translated page (#35720) @michaldudak
94
+ - [docs] Fix API page for `MenuItem` to list all valid props (#35561) @mnajdova
95
+ - [docs] Fix ad exception in Joy UI (#35685) @oliviertassinari
96
+ - [docs] Fix content wider than screen regression @oliviertassinari
97
+ - [examples] Add `Vite.js with TypeScript` example (#35683) @miha53cevic
98
+
99
+ ### Core
100
+
101
+ - [core] Close 2022 developer survey @oliviertassinari
102
+ - [core] Fix the product license reference name (#35703) @oliviertassinari
103
+ - [core] Use TypeScript AST instead of TTP for component doc building (#35379) @flaviendelangle
104
+ - [test] Always use & for nesting styles (#35702) @oliviertassinari
105
+ - [website] Improve Lead Designer role description (#35684) @oliviertassinari
106
+
107
+ All contributors of this release in alphabetical order: @CowDotDev, @flaviendelangle, @hamirmahal, @hbjORbj, @koolskateguy89, @michaldudak, @miha53cevic, @mnajdova, @oliviertassinari, @Ryczko, @sai6855, @samuelsycamore, @siriwatknp, @ZeeshanTamboli
108
+
3
109
  ## 5.11.3
4
110
 
5
111
  <!-- generated comparing v5.11.2..master -->
@@ -90,12 +90,8 @@ const FilledInputRoot = styled(InputBaseRoot, {
90
90
  [`&.${filledInputClasses.error}`]: {
91
91
  '&:before, &:after': {
92
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
-
99
95
  '&:before': {
100
96
  borderBottom: `1px solid ${theme.vars ? `rgba(${theme.vars.palette.common.onBackgroundChannel} / ${theme.vars.opacity.inputUnderline})` : bottomLineColor}`,
101
97
  left: 0,
package/Input/Input.js CHANGED
@@ -73,12 +73,8 @@ const InputRoot = styled(InputBaseRoot, {
73
73
  [`&.${inputClasses.error}`]: {
74
74
  '&:before, &:after': {
75
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
-
82
78
  '&:before': {
83
79
  borderBottom: `1px solid ${bottomLineColor}`,
84
80
  left: 0,
@@ -94,7 +90,7 @@ const InputRoot = styled(InputBaseRoot, {
94
90
  },
95
91
 
96
92
  [`&:hover:not(.${inputClasses.disabled}, .${inputClasses.error}):before`]: {
97
- borderBottom: `1px solid ${(theme.vars || theme).palette.text.primary}`,
93
+ borderBottom: `2px solid ${(theme.vars || theme).palette.text.primary}`,
98
94
  // Reset on touch devices, it doesn't add specificity
99
95
  '@media (hover: none)': {
100
96
  borderBottom: `1px solid ${bottomLineColor}`
@@ -38,7 +38,7 @@ export type MenuItemTypeMap<P = {}, D extends React.ElementType = 'li'> = Extend
38
38
  */
39
39
  divider?: boolean;
40
40
  /**
41
- * Use to apply selected styling.
41
+ * If `true`, the component is selected.
42
42
  * @default false
43
43
  */
44
44
  selected?: boolean;
@@ -242,7 +242,8 @@ process.env.NODE_ENV !== "production" ? MenuItem.propTypes /* remove-proptypes *
242
242
  */
243
243
  role: PropTypes /* @typescript-to-proptypes-ignore */.string,
244
244
  /**
245
- * @ignore
245
+ * If `true`, the component is selected.
246
+ * @default false
246
247
  */
247
248
  selected: PropTypes.bool,
248
249
  /**
package/Modal/Modal.d.ts CHANGED
@@ -1,15 +1,19 @@
1
1
  import * as React from 'react';
2
2
  import { SxProps } from '@mui/system';
3
3
  import { OverrideProps } from '@mui/types';
4
- import {
5
- ExtendModalUnstyledTypeMap,
6
- ExtendModalUnstyled,
7
- ModalUnstyledTypeMap,
8
- } from '@mui/base/ModalUnstyled';
4
+ import { SlotComponentProps } from '@mui/base';
5
+ import { ModalUnstyledTypeMap } from '@mui/base/ModalUnstyled';
9
6
  import { Theme } from '../styles';
10
- import { BackdropProps } from '../Backdrop';
7
+ import Backdrop, { BackdropProps } from '../Backdrop';
8
+ import { OverridableComponent } from '../OverridableComponent';
11
9
 
12
- export type ModalTypeMap<D extends React.ElementType = 'div', P = {}> = ExtendModalUnstyledTypeMap<{
10
+ export interface ModalComponentsPropsOverrides {}
11
+
12
+ export interface ModalOwnerState extends ModalProps {
13
+ exited: boolean;
14
+ }
15
+
16
+ export interface ModalTypeMap<D extends React.ElementType = 'div', P = {}> {
13
17
  props: P & {
14
18
  /**
15
19
  * A backdrop component. This prop enables custom backdrop rendering.
@@ -52,20 +56,39 @@ export type ModalTypeMap<D extends React.ElementType = 'div', P = {}> = ExtendMo
52
56
  *
53
57
  * @default {}
54
58
  */
55
- componentsProps?: ModalUnstyledTypeMap['props']['slotProps'];
59
+ componentsProps?: {
60
+ root?: SlotComponentProps<'div', ModalComponentsPropsOverrides, ModalOwnerState>;
61
+ backdrop?: SlotComponentProps<
62
+ typeof Backdrop,
63
+ ModalComponentsPropsOverrides,
64
+ ModalOwnerState
65
+ >;
66
+ };
67
+ /**
68
+ * The props used for each slot inside the Modal.
69
+ * @default {}
70
+ */
71
+ slotProps?: {
72
+ root?: SlotComponentProps<'div', ModalComponentsPropsOverrides, ModalOwnerState>;
73
+ backdrop?: SlotComponentProps<
74
+ typeof Backdrop,
75
+ ModalComponentsPropsOverrides,
76
+ ModalOwnerState
77
+ >;
78
+ };
56
79
  /**
57
80
  * The system prop that allows defining system overrides as well as additional CSS styles.
58
81
  */
59
82
  sx?: SxProps<Theme>;
60
- };
83
+ } & Omit<ModalUnstyledTypeMap['props'], 'slotProps'>;
61
84
  defaultComponent: D;
62
- }>;
85
+ }
63
86
 
64
87
  type ModalRootProps = NonNullable<ModalTypeMap['props']['slotProps']>['root'];
65
88
 
66
89
  export declare const ModalRoot: React.FC<ModalRootProps>;
67
90
 
68
- export type ModalClassKey = keyof NonNullable<ModalTypeMap['props']['classes']>;
91
+ export type ModalClassKey = keyof NonNullable<ModalProps['classes']>;
69
92
 
70
93
  /**
71
94
  * Modal is a lower-level construct that is leveraged by the following components:
@@ -88,7 +111,7 @@ export type ModalClassKey = keyof NonNullable<ModalTypeMap['props']['classes']>;
88
111
  *
89
112
  * - [Modal API](https://mui.com/material-ui/api/modal/)
90
113
  */
91
- declare const Modal: ExtendModalUnstyled<ModalTypeMap>;
114
+ declare const Modal: OverridableComponent<ModalTypeMap>;
92
115
 
93
116
  export type ModalClasses = Record<ModalClassKey, string>;
94
117
 
@@ -9,7 +9,7 @@ import { OutlinedInputProps } from '../OutlinedInput';
9
9
 
10
10
  export { SelectChangeEvent };
11
11
 
12
- interface CommonProps<T>
12
+ export interface SelectProps<T = unknown>
13
13
  extends StandardProps<InputProps, 'value' | 'onChange'>,
14
14
  Omit<OutlinedInputProps, 'value' | 'onChange'>,
15
15
  Pick<SelectInputProps<T>, 'onChange'> {
@@ -41,6 +41,17 @@ interface CommonProps<T>
41
41
  * The default value. Use when the component is not controlled.
42
42
  */
43
43
  defaultValue?: T;
44
+ /**
45
+ * If `true`, a value is displayed even if no items are selected.
46
+ *
47
+ * In order to display a meaningful value, a function can be passed to the `renderValue` prop which
48
+ * returns the value to be displayed when no items are selected.
49
+ *
50
+ * ⚠️ When using this prop, make sure the label doesn't overlap with the empty displayed value.
51
+ * The label should either be hidden or forced to a shrunk state.
52
+ * @default false
53
+ */
54
+ displayEmpty?: boolean;
44
55
  /**
45
56
  * The icon that displays the arrow.
46
57
  * @default ArrowDropDownIcon
@@ -72,6 +83,11 @@ interface CommonProps<T>
72
83
  * Props applied to the [`Menu`](/material-ui/api/menu/) element.
73
84
  */
74
85
  MenuProps?: Partial<MenuProps>;
86
+ /**
87
+ * If `true`, `value` must be an array and the menu will support multiple selections.
88
+ * @default false
89
+ */
90
+ multiple?: boolean;
75
91
  /**
76
92
  * If `true`, the component uses a native `select` element.
77
93
  * @default false
@@ -105,6 +121,14 @@ interface CommonProps<T>
105
121
  * You can only use it when the `native` prop is `false` (default).
106
122
  */
107
123
  open?: boolean;
124
+ /**
125
+ * Render the selected value.
126
+ * You can only use it when the `native` prop is `false` (default).
127
+ *
128
+ * @param {any} value The `value` provided to the component.
129
+ * @returns {ReactNode}
130
+ */
131
+ renderValue?: (value: T) => React.ReactNode;
108
132
  /**
109
133
  * Props applied to the clickable div element.
110
134
  */
@@ -128,88 +152,6 @@ interface CommonProps<T>
128
152
  variant?: 'standard' | 'outlined' | 'filled';
129
153
  }
130
154
 
131
- type ConditionalRenderValueType<T> =
132
- | {
133
- /**
134
- * If `true`, a value is displayed even if no items are selected.
135
- *
136
- * In order to display a meaningful value, a function can be passed to the `renderValue` prop which
137
- * returns the value to be displayed when no items are selected.
138
- *
139
- * ⚠️ When using this prop, make sure the label doesn't overlap with the empty displayed value.
140
- * The label should either be hidden or forced to a shrunk state.
141
- * @default false
142
- */
143
- displayEmpty?: false;
144
- /**
145
- * If `true`, `value` must be an array and the menu will support multiple selections.
146
- * @default false
147
- */
148
- multiple?: boolean;
149
- /**
150
- * Render the selected value.
151
- * You can only use it when the `native` prop is `false` (default).
152
- *
153
- * @param {any} value The `value` provided to the component.
154
- * @returns {ReactNode}
155
- */
156
- renderValue?: (value: T) => React.ReactNode;
157
- }
158
- | {
159
- /**
160
- * If `true`, a value is displayed even if no items are selected.
161
- *
162
- * In order to display a meaningful value, a function can be passed to the `renderValue` prop which
163
- * returns the value to be displayed when no items are selected.
164
- *
165
- * ⚠️ When using this prop, make sure the label doesn't overlap with the empty displayed value.
166
- * The label should either be hidden or forced to a shrunk state.
167
- * @default false
168
- */
169
- displayEmpty: true;
170
- /**
171
- * If `true`, `value` must be an array and the menu will support multiple selections.
172
- * @default false
173
- */
174
- multiple?: false;
175
- /**
176
- * Render the selected value.
177
- * You can only use it when the `native` prop is `false` (default).
178
- *
179
- * @param {any} value The `value` provided to the component.
180
- * @returns {ReactNode}
181
- */
182
- renderValue?: (value: T | '') => React.ReactNode;
183
- }
184
- | {
185
- /**
186
- * If `true`, a value is displayed even if no items are selected.
187
- *
188
- * In order to display a meaningful value, a function can be passed to the `renderValue` prop which
189
- * returns the value to be displayed when no items are selected.
190
- *
191
- * ⚠️ When using this prop, make sure the label doesn't overlap with the empty displayed value.
192
- * The label should either be hidden or forced to a shrunk state.
193
- * @default false
194
- */
195
- displayEmpty: true;
196
- /**
197
- * If `true`, `value` must be an array and the menu will support multiple selections.
198
- * @default false
199
- */
200
- multiple: true;
201
- /**
202
- * Render the selected value.
203
- * You can only use it when the `native` prop is `false` (default).
204
- *
205
- * @param {any} value The `value` provided to the component.
206
- * @returns {ReactNode}
207
- */
208
- renderValue?: (value: T) => React.ReactNode;
209
- };
210
-
211
- export type SelectProps<T = unknown> = CommonProps<T> & ConditionalRenderValueType<T>;
212
-
213
155
  /**
214
156
  *
215
157
  * Demos:
@@ -84,7 +84,7 @@ export type SliderTypeMap<
84
84
  defaultComponent: D;
85
85
  }>;
86
86
 
87
- export { SliderValueLabelProps } from '@mui/base/SliderUnstyled';
87
+ export { SliderValueLabelProps };
88
88
 
89
89
  type SliderRootProps = NonNullable<SliderTypeMap['props']['componentsProps']>['root'];
90
90
  type SliderMarkProps = NonNullable<SliderTypeMap['props']['componentsProps']>['mark'];
@@ -110,7 +110,6 @@ export declare const SliderValueLabel: React.FC<SliderValueLabelProps>;
110
110
  * API:
111
111
  *
112
112
  * - [Slider API](https://mui.com/material-ui/api/slider/)
113
- * - inherits [SliderUnstyled API](https://mui.com/base/api/slider-unstyled/)
114
113
  */
115
114
  declare const Slider: ExtendSliderUnstyled<SliderTypeMap>;
116
115