@@ -12,13 +12,15 @@ export interface RangeSelectProps
1212 color ?: string ;
1313 clearText ?: string ;
1414 placeholder ?: string ;
15- isDisabled ?: boolean ;
16- isInvalid ?: boolean ;
17- isFullWidth ?: boolean ;
1815 rangeFromLabel ?: string ;
1916 rangeToLabel ?: string ;
17+ rangeFromPlaceholder ?: string ;
18+ rangeToPlaceholder ?: string ;
2019 rangeFromError ?: string ;
2120 rangeToError ?: string ;
21+ isDisabled ?: boolean ;
22+ isInvalid ?: boolean ;
23+ isFullWidth ?: boolean ;
2224 value ?: string [ ] ;
2325 size ?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' ;
2426 dropdownWidth ?: '3xs' | '2xs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' ;
@@ -28,22 +30,24 @@ export interface RangeSelectProps
2830}
2931
3032export const RangeSelect : React . FC < RangeSelectProps > = ( {
33+ variant = 'outline' ,
34+ borderColor = selectRecipe . variants ?. visual [ variant ] ?. borderColor ,
35+ backgroundColor = selectRecipe . variants ?. visual [ variant ] ?. backgroundColor ,
3136 color = 'black' ,
32- placeholder = 'Select a range' ,
3337 clearText = 'Clear' ,
34- isDisabled = false ,
35- isInvalid = false ,
36- isFullWidth = true ,
38+ placeholder = 'Select a range' ,
3739 rangeFromLabel = 'From' ,
3840 rangeToLabel = 'To' ,
41+ rangeFromPlaceholder : fromPlaceholder = '' ,
42+ rangeToPlaceholder : toPlaceholder = '' ,
3943 rangeFromError,
4044 rangeToError,
45+ isDisabled = false ,
46+ isInvalid = false ,
47+ isFullWidth = true ,
48+ value,
4149 size = 'md' ,
4250 dropdownWidth,
43- variant = 'outline' ,
44- borderColor = selectRecipe . variants ?. visual [ variant ] ?. borderColor ,
45- backgroundColor = selectRecipe . variants ?. visual [ variant ] ?. backgroundColor ,
46- value,
4751 onChange,
4852 onClose,
4953 ...rest
@@ -191,6 +195,7 @@ export const RangeSelect: React.FC<RangeSelectProps> = ({
191195 < Input
192196 type = "number"
193197 size = "md"
198+ placeholder = { fromPlaceholder }
194199 value = { selectedOptions [ 0 ] || '' }
195200 onChange = { ( e ) => handleRangeChange ( 0 , e . target . value ) }
196201 borderRadius = "md"
@@ -216,6 +221,7 @@ export const RangeSelect: React.FC<RangeSelectProps> = ({
216221 </ Text >
217222 < Input
218223 type = "number"
224+ placeholder = { toPlaceholder }
219225 size = "md"
220226 value = { selectedOptions [ 1 ] || '' }
221227 onChange = { ( e ) => handleRangeChange ( 1 , e . target . value ) }
0 commit comments