@@ -85,154 +85,167 @@ export default function Playground() {
85
85
mt : 'var(--List-gap)' ,
86
86
} ,
87
87
[ `& .${ formControlClasses . root } ` ] : { position : 'initial' , gap : 1.5 } ,
88
+ '& > li' : {
89
+ alignItems : 'flex-start' ,
90
+ } ,
88
91
} }
89
92
>
90
93
< ListItem >
91
94
< FormControl orientation = "horizontal" >
92
- < Checkbox overlay { ...getCheckboxProps ( 'disableCloseOnSelect ' ) } />
95
+ < Checkbox overlay { ...getCheckboxProps ( 'autoComplete ' ) } />
93
96
< div >
94
- < FormLabel > disableCloseOnSelect </ FormLabel >
97
+ < FormLabel > autoComplete </ FormLabel >
95
98
< FormHelperText >
96
- The popup won't close when a value is selected.
99
+ The completion string, appears inline after the input cursor in the
100
+ textbox. The inline completion string is visually highlighted and
101
+ has a selected state.
97
102
</ FormHelperText >
98
103
</ div >
99
104
</ FormControl >
100
105
</ ListItem >
101
106
< ListItem >
102
107
< FormControl orientation = "horizontal" >
103
- < Checkbox overlay { ...getCheckboxProps ( 'clearOnEscape ' ) } />
108
+ < Checkbox overlay { ...getCheckboxProps ( 'autoHighlight ' ) } />
104
109
< div >
105
- < FormLabel > clearOnEscape </ FormLabel >
110
+ < FormLabel > autoHighlight </ FormLabel >
106
111
< FormHelperText >
107
- Clear all values when the user presses escape and the popup is
108
- closed.
112
+ The first option is automatically highlighted.
109
113
</ FormHelperText >
110
114
</ div >
111
115
</ FormControl >
112
116
</ ListItem >
113
117
< ListItem >
114
118
< FormControl orientation = "horizontal" >
115
- < Checkbox overlay { ...getCheckboxProps ( 'disableClearable ' ) } />
119
+ < Checkbox overlay { ...getCheckboxProps ( 'autoSelect ' ) } />
116
120
< div >
117
- < FormLabel > disableClearable</ FormLabel >
118
- < FormHelperText > The input can't be cleared</ FormHelperText >
121
+ < FormLabel > autoSelect</ FormLabel >
122
+ < FormHelperText >
123
+ The selected option becomes the value of the input when the
124
+ Autocomplete loses focus unless the user chooses a different option
125
+ or changes the character string in the input.
126
+ </ FormHelperText >
119
127
</ div >
120
128
</ FormControl >
121
129
</ ListItem >
122
130
< ListItem >
123
131
< FormControl orientation = "horizontal" >
124
- < Checkbox overlay { ...getCheckboxProps ( 'includeInputInList ' ) } />
132
+ < Checkbox overlay { ...getCheckboxProps ( 'blurOnSelect ' ) } />
125
133
< div >
126
- < FormLabel > includeInputInList </ FormLabel >
127
- < FormHelperText > The highlight can move to the input .</ FormHelperText >
134
+ < FormLabel > blurOnSelect </ FormLabel >
135
+ < FormHelperText > The input is always blurred .</ FormHelperText >
128
136
</ div >
129
137
</ FormControl >
130
138
</ ListItem >
131
139
< ListItem >
132
140
< FormControl orientation = "horizontal" >
133
- < Checkbox overlay { ...getCheckboxProps ( 'autoComplete ' ) } />
141
+ < Checkbox overlay { ...getCheckboxProps ( 'clearOnBlur ' ) } />
134
142
< div >
135
- < FormLabel > autoComplete </ FormLabel >
143
+ < FormLabel > clearOnBlur </ FormLabel >
136
144
< FormHelperText >
137
- The completion string, appears inline after the input cursor in the
138
- textbox. The inline completion string is visually highlighted and
139
- has a selected state.
145
+ The input's text is cleared on blur if no value is selected.
140
146
</ FormHelperText >
141
147
</ div >
142
148
</ FormControl >
143
149
</ ListItem >
144
150
< ListItem >
145
151
< FormControl orientation = "horizontal" >
146
- < Checkbox overlay { ...getCheckboxProps ( 'disableListWrap ' ) } />
152
+ < Checkbox overlay { ...getCheckboxProps ( 'clearOnEscape ' ) } />
147
153
< div >
148
- < FormLabel > disableListWrap </ FormLabel >
154
+ < FormLabel > clearOnEscape </ FormLabel >
149
155
< FormHelperText >
150
- The list box in the popup will not wrap focus.
156
+ Clear all values when the user presses escape and the popup is
157
+ closed.
151
158
</ FormHelperText >
152
159
</ div >
153
160
</ FormControl >
154
161
</ ListItem >
155
162
< ListItem >
156
163
< FormControl orientation = "horizontal" >
157
- < Checkbox overlay { ...getCheckboxProps ( 'openOnFocus ' ) } />
164
+ < Checkbox overlay { ...getCheckboxProps ( 'disabled ' ) } />
158
165
< div >
159
- < FormLabel > openOnFocus </ FormLabel >
160
- < FormHelperText > The popup will open on input focus .</ FormHelperText >
166
+ < FormLabel > disabled </ FormLabel >
167
+ < FormHelperText > The component is disabled .</ FormHelperText >
161
168
</ div >
162
169
</ FormControl >
163
170
</ ListItem >
164
171
< ListItem >
165
172
< FormControl orientation = "horizontal" >
166
- < Checkbox overlay { ...getCheckboxProps ( 'autoHighlight ' ) } />
173
+ < Checkbox overlay { ...getCheckboxProps ( 'disableClearable ' ) } />
167
174
< div >
168
- < FormLabel > autoHighlight</ FormLabel >
175
+ < FormLabel > disableClearable</ FormLabel >
176
+ < FormHelperText > The input can't be cleared</ FormHelperText >
177
+ </ div >
178
+ </ FormControl >
179
+ </ ListItem >
180
+ < ListItem >
181
+ < FormControl orientation = "horizontal" >
182
+ < Checkbox overlay { ...getCheckboxProps ( 'disableCloseOnSelect' ) } />
183
+ < div >
184
+ < FormLabel > disableCloseOnSelect</ FormLabel >
169
185
< FormHelperText >
170
- The first option is automatically highlighted .
186
+ The popup won't close when a value is selected .
171
187
</ FormHelperText >
172
188
</ div >
173
189
</ FormControl >
174
190
</ ListItem >
175
191
< ListItem >
176
192
< FormControl orientation = "horizontal" >
177
- < Checkbox overlay { ...getCheckboxProps ( 'autoSelect ' ) } />
193
+ < Checkbox overlay { ...getCheckboxProps ( 'disableListWrap ' ) } />
178
194
< div >
179
- < FormLabel > autoSelect </ FormLabel >
195
+ < FormLabel > disableListWrap </ FormLabel >
180
196
< FormHelperText >
181
- The selected option becomes the value of the input when the
182
- Autocomplete loses focus unless the user chooses a different option
183
- or changes the character string in the input.
197
+ The list box in the popup will not wrap focus.
184
198
</ FormHelperText >
185
199
</ div >
186
200
</ FormControl >
187
201
</ ListItem >
188
202
< ListItem >
189
203
< FormControl orientation = "horizontal" >
190
- < Checkbox overlay { ...getCheckboxProps ( 'disabled ' ) } />
204
+ < Checkbox overlay { ...getCheckboxProps ( 'filterSelectedOptions ' ) } />
191
205
< div >
192
- < FormLabel > disabled</ FormLabel >
193
- < FormHelperText > The component is disabled.</ FormHelperText >
206
+ < FormLabel > filterSelectedOptions</ FormLabel >
207
+ < FormHelperText >
208
+ Hide the selected option from the list box.
209
+ </ FormHelperText >
194
210
</ div >
195
211
</ FormControl >
196
212
</ ListItem >
197
213
< ListItem >
198
214
< FormControl orientation = "horizontal" >
199
- < Checkbox overlay { ...getCheckboxProps ( 'disablePortal ' ) } />
215
+ < Checkbox overlay { ...getCheckboxProps ( 'freeSolo ' ) } />
200
216
< div >
201
- < FormLabel > disablePortal </ FormLabel >
217
+ < FormLabel > freeSolo </ FormLabel >
202
218
< FormHelperText >
203
- The popup will be under the DOM hierarchy of the parent component .
219
+ The user input is not bound to the provided options .
204
220
</ FormHelperText >
205
221
</ div >
206
222
</ FormControl >
207
223
</ ListItem >
208
224
< ListItem >
209
225
< FormControl orientation = "horizontal" >
210
- < Checkbox overlay { ...getCheckboxProps ( 'blurOnSelect ' ) } />
226
+ < Checkbox overlay { ...getCheckboxProps ( 'includeInputInList ' ) } />
211
227
< div >
212
- < FormLabel > blurOnSelect </ FormLabel >
213
- < FormHelperText > The input is always blurred .</ FormHelperText >
228
+ < FormLabel > includeInputInList </ FormLabel >
229
+ < FormHelperText > The highlight can move to the input .</ FormHelperText >
214
230
</ div >
215
231
</ FormControl >
216
232
</ ListItem >
217
233
< ListItem >
218
234
< FormControl orientation = "horizontal" >
219
- < Checkbox overlay { ...getCheckboxProps ( 'clearOnBlur ' ) } />
235
+ < Checkbox overlay { ...getCheckboxProps ( 'openOnFocus ' ) } />
220
236
< div >
221
- < FormLabel > clearOnBlur</ FormLabel >
222
- < FormHelperText >
223
- The input's text is cleared on blur if no value is selected.
224
- </ FormHelperText >
237
+ < FormLabel > openOnFocus</ FormLabel >
238
+ < FormHelperText > The popup will open on input focus.</ FormHelperText >
225
239
</ div >
226
240
</ FormControl >
227
241
</ ListItem >
228
242
< ListItem >
229
243
< FormControl orientation = "horizontal" >
230
- < Checkbox overlay { ...getCheckboxProps ( 'selectOnFocus ' ) } />
244
+ < Checkbox overlay { ...getCheckboxProps ( 'disablePortal ' ) } />
231
245
< div >
232
- < FormLabel > selectOnFocus </ FormLabel >
246
+ < FormLabel > disablePortal </ FormLabel >
233
247
< FormHelperText >
234
- The input's text is selected on focus. It helps the user clear
235
- the selected value.
248
+ The popup will be under the DOM hierarchy of the parent component.
236
249
</ FormHelperText >
237
250
</ div >
238
251
</ FormControl >
@@ -249,6 +262,18 @@ export default function Playground() {
249
262
</ div >
250
263
</ FormControl >
251
264
</ ListItem >
265
+ < ListItem >
266
+ < FormControl orientation = "horizontal" >
267
+ < Checkbox overlay { ...getCheckboxProps ( 'selectOnFocus' ) } />
268
+ < div >
269
+ < FormLabel > selectOnFocus</ FormLabel >
270
+ < FormHelperText >
271
+ The input's text is selected on focus. It helps the user clear
272
+ the selected value.
273
+ </ FormHelperText >
274
+ </ div >
275
+ </ FormControl >
276
+ </ ListItem >
252
277
</ List >
253
278
</ Box >
254
279
</ Box >
0 commit comments