@@ -602,33 +602,6 @@ Autocomplete.propTypes /* remove-proptypes */ = {
602
602
* @default 'Close'
603
603
*/
604
604
closeText : PropTypes . string ,
605
- /**
606
- * Replace the default slots.
607
- */
608
- components : PropTypes . shape ( {
609
- clearIndicator : PropTypes . elementType ,
610
- limitTag : PropTypes . elementType ,
611
- listbox : PropTypes . elementType ,
612
- loading : PropTypes . elementType ,
613
- noOptions : PropTypes . elementType ,
614
- option : PropTypes . elementType ,
615
- popupIndicator : PropTypes . elementType ,
616
- root : PropTypes . elementType ,
617
- } ) ,
618
- /**
619
- * The props used for each slot inside.
620
- * @default {}
621
- */
622
- componentsProps : PropTypes . shape ( {
623
- clearIndicator : PropTypes . oneOfType ( [ PropTypes . func , PropTypes . object ] ) ,
624
- limitTag : PropTypes . oneOfType ( [ PropTypes . func , PropTypes . object ] ) ,
625
- listbox : PropTypes . oneOfType ( [ PropTypes . func , PropTypes . object ] ) ,
626
- loading : PropTypes . oneOfType ( [ PropTypes . func , PropTypes . object ] ) ,
627
- noOptions : PropTypes . oneOfType ( [ PropTypes . func , PropTypes . object ] ) ,
628
- option : PropTypes . oneOfType ( [ PropTypes . func , PropTypes . object ] ) ,
629
- popupIndicator : PropTypes . oneOfType ( [ PropTypes . func , PropTypes . object ] ) ,
630
- root : PropTypes . oneOfType ( [ PropTypes . func , PropTypes . object ] ) ,
631
- } ) ,
632
605
/**
633
606
* The default value. Use when the component is not controlled.
634
607
* @default props.multiple ? [] : null
@@ -874,6 +847,33 @@ Autocomplete.propTypes /* remove-proptypes */ = {
874
847
PropTypes . oneOf ( [ 'sm' , 'md' , 'lg' ] ) ,
875
848
PropTypes . string ,
876
849
] ) ,
850
+ /**
851
+ * The props used for each slot inside.
852
+ * @default {}
853
+ */
854
+ slotProps : PropTypes . shape ( {
855
+ clearIndicator : PropTypes . oneOfType ( [ PropTypes . func , PropTypes . object ] ) ,
856
+ limitTag : PropTypes . oneOfType ( [ PropTypes . func , PropTypes . object ] ) ,
857
+ listbox : PropTypes . oneOfType ( [ PropTypes . func , PropTypes . object ] ) ,
858
+ loading : PropTypes . oneOfType ( [ PropTypes . func , PropTypes . object ] ) ,
859
+ noOptions : PropTypes . oneOfType ( [ PropTypes . func , PropTypes . object ] ) ,
860
+ option : PropTypes . oneOfType ( [ PropTypes . func , PropTypes . object ] ) ,
861
+ popupIndicator : PropTypes . oneOfType ( [ PropTypes . func , PropTypes . object ] ) ,
862
+ root : PropTypes . oneOfType ( [ PropTypes . func , PropTypes . object ] ) ,
863
+ } ) ,
864
+ /**
865
+ * Replace the default slots.
866
+ */
867
+ slots : PropTypes . shape ( {
868
+ clearIndicator : PropTypes . elementType ,
869
+ limitTag : PropTypes . elementType ,
870
+ listbox : PropTypes . elementType ,
871
+ loading : PropTypes . elementType ,
872
+ noOptions : PropTypes . elementType ,
873
+ option : PropTypes . elementType ,
874
+ popupIndicator : PropTypes . elementType ,
875
+ root : PropTypes . elementType ,
876
+ } ) ,
877
877
/**
878
878
* The system prop that allows defining system overrides as well as additional CSS styles.
879
879
*/
0 commit comments