77import { BoolControl } from "../../controls/boolControl" ;
88import { LabelControl } from "../../controls/labelControl" ;
99import { BoolCodeControl , StringControl } from "../../controls/codeControl" ;
10- import { PaddingControl } from "../../controls/paddingControl" ;
10+ import { PaddingControl } from "../../controls/paddingControl" ;
1111import { MarginControl } from "../../controls/marginControl" ;
1212import {
1313 ControlNode ,
@@ -65,8 +65,15 @@ export const getStyle = (
6565 height: auto;
6666 }
6767 .ant-select-selection-search {
68- padding: ${ style . padding } ;
68+ padding: ${ style . padding } ;
6969 }
70+ .ant-select-selection-search-input {
71+ font-family:${ ( style as SelectStyleType ) . fontFamily } !important;
72+ font-size:${ ( style as SelectStyleType ) . textSize } !important;
73+ font-weight:${ ( style as SelectStyleType ) . textWeight } ;
74+ color:${ ( style as SelectStyleType ) . text } !important;
75+ font-style:${ ( style as SelectStyleType ) . fontStyle } ;
76+ }
7077 .ant-select-selector::after,
7178 .ant-select-selection-placeholder,
7279 .ant-select-selection-item {
@@ -88,6 +95,7 @@ export const getStyle = (
8895 .ant-select-selector {
8996 background-color: ${ style . background } ;
9097 border-color: ${ style . border } ;
98+ border-width:${ ( style as SelectStyleType ) . borderWidth } ;
9199 }
92100
93101 &.ant-select-focused,
@@ -101,18 +109,18 @@ export const getStyle = (
101109 .ant-select-clear {
102110 background-color: ${ style . background } ;
103111 color: ${ style . text === "#222222"
104- ? "#8B8FA3"
105- : isDarkColor ( style . text )
106- ? lightenColor ( style . text , 0.2 )
107- : style . text } ;
112+ ? "#8B8FA3"
113+ : isDarkColor ( style . text )
114+ ? lightenColor ( style . text , 0.2 )
115+ : style . text } ;
108116 }
109117
110118 .ant-select-clear:hover {
111119 color: ${ style . text === "#222222"
112- ? "#8B8FA3"
113- : isDarkColor ( style . text )
114- ? lightenColor ( style . text , 0.1 )
115- : style . text } ;
120+ ? "#8B8FA3"
121+ : isDarkColor ( style . text )
122+ ? lightenColor ( style . text , 0.1 )
123+ : style . text } ;
116124 }
117125
118126 &.ant-select-multiple .ant-select-selection-item {
@@ -160,7 +168,7 @@ const getDropdownStyle = (style: MultiSelectStyleType) => {
160168 ` ;
161169} ;
162170
163- const Select = styled ( AntdSelect ) < { $style : SelectStyleType & MultiSelectStyleType } > `
171+ const Select = styled ( AntdSelect ) < { $style : SelectStyleType & MultiSelectStyleType } > `
164172 width: 100%;
165173
166174 ${ ( props ) => props . $style && getStyle ( props . $style ) }
@@ -197,7 +205,7 @@ export const SelectChildrenMap = {
197205 inputValue : stateComp < string > ( "" ) , // user's input value when search
198206 showSearch : BoolControl . DEFAULT_TRUE ,
199207 viewRef : RefControl < BaseSelectRef > ,
200- margin : MarginControl ,
208+ margin : MarginControl ,
201209 padding : PaddingControl ,
202210 ...SelectInputValidationChildren ,
203211 ...formDataChildren ,
@@ -235,8 +243,8 @@ export const SelectUIView = (
235243 onSearch = {
236244 props . showSearch
237245 ? ( value ) => {
238- props . dispatch ( changeChildAction ( "inputValue" , value , false ) ) ;
239- }
246+ props . dispatch ( changeChildAction ( "inputValue" , value , false ) ) ;
247+ }
240248 : undefined
241249 }
242250 >
@@ -248,6 +256,7 @@ export const SelectUIView = (
248256 label = { option . label }
249257 disabled = { option . disabled }
250258 key = { option . value }
259+ style = { { fontFamily :"Montserrat" } }
251260 >
252261 < Wrapper className = "option-label" >
253262 { props . options . findIndex ( ( option ) => hasIcon ( option . prefixIcon ) ) > - 1 &&
0 commit comments