11import { border , contrast , font , input } from "../variables" ;
2- import { DropDown } from "./dropdown" ;
2+ import { DropDownVertical } from "./dropdown" ;
33import { TextBox , TextBoxVertical } from "./textbox" ;
44/*
55
@@ -33,28 +33,38 @@ export const ReferenceSelector = {
3333 value : {
3434 // All TextStyle properties & placeholderTextColor are allowed
3535 color : input . color ,
36- borderColor : input . borderColor ,
37- backgroundColor : input . backgroundColor ,
3836 fontSize : input . fontSize ,
3937 fontFamily : input . fontFamily ,
40- borderWidth : input . borderWidth ,
41- borderRadius : input . borderRadius ,
4238 overflow : "hidden" ,
43- paddingHorizontal : input . paddingHorizontal ,
44- paddingVertical : input . paddingVertical ,
4539 placeholderTextColor : input . placeholderTextColor ,
4640 } ,
47- valueDisabled : {
48- // All TextStyle properties are allowed
49- ...TextBox . inputDisabled
50- } ,
5141 validationMessage : {
5242 // All TextStyle properties are allowed
5343 ...TextBox . validationMessage ,
5444 } ,
5545 /* New dropdown styles start */
46+ valueFocused : {
47+ // All TextStyle properties are allowed
48+ } ,
49+ valueDisabled : {
50+ // All TextStyle properties are allowed
51+ ...TextBox . inputDisabled ,
52+ } ,
5653 valueContainer : {
57- // All ViewStyle properties & rippleColor & activeOpacity & underlayColor are allowed
54+ // All ViewStyle properties & rippleColor are allowed
55+ flexDirection : "row" ,
56+ justifyContent : "space-between" ,
57+ alignItems : "center" ,
58+ borderWidth : input . borderWidth ,
59+ borderRadius : input . borderRadius ,
60+ borderColor : input . borderColor ,
61+ paddingHorizontal : input . paddingHorizontal ,
62+ paddingVertical : input . paddingVertical ,
63+ backgroundColor : input . backgroundColor ,
64+ } ,
65+ valueContainerFocused : {
66+ // All ViewStyle properties are allowed
67+ ...TextBox . inputFocused ,
5868 } ,
5969 valueContainerDisabled : {
6070 // All ViewStyle properties are allowed
@@ -66,7 +76,7 @@ export const ReferenceSelector = {
6676 shadowOpacity : 0.2 ,
6777 shadowRadius : 10 ,
6878 elevation : 16 ,
69- backgroundColor : input . backgroundColor
79+ backgroundColor : input . backgroundColor ,
7080 } ,
7181 itemContainer : {
7282 // All ViewStyle properties & rippleColor & activeOpacity & underlayColor are allowed
@@ -76,6 +86,10 @@ export const ReferenceSelector = {
7686 backgroundColor : input . backgroundColor ,
7787 underlayColor : input . inputContainerUnderlayColor ,
7888 } ,
89+ iconStyle : {
90+ // All TextStyle properties are allowed
91+ color : input . color ,
92+ } ,
7993 item : {
8094 // All TextStyle properties are allowed
8195 color : input . color ,
@@ -111,16 +125,19 @@ export const ReferenceSelectorVertical = {
111125 containerDisabled : TextBoxVertical . containerDisabled ,
112126 label : TextBoxVertical . label ,
113127 labelDisabled : TextBoxVertical . labelDisabled ,
114- value : DropDown . value ,
115- valueContainer : DropDown . valueContainer ,
116- valueContainerDisabled : DropDown . valueContainerDisabled ,
128+ value : DropDownVertical . value ,
129+ valueFocused : DropDownVertical . valueFocused ,
117130 validationMessage : TextBoxVertical . validationMessage ,
118- menuWrapper : DropDown . menuWrapper ,
119- itemContainer : DropDown . itemContainer ,
120- item : DropDown . item ,
121- useUniformDesign : DropDown . useUniformDesign ,
122- pickerIOS : DropDown . pickerIOS ,
123- pickerItemIOS : DropDown . pickerItemIOS ,
124- pickerBackdropIOS : DropDown . pickerBackdropIOS ,
125- pickerTopIOS : DropDown . pickerTopIOS ,
131+ valueContainer : DropDownVertical . valueContainer ,
132+ valueContainerFocused : DropDownVertical . valueContainerFocused ,
133+ valueContainerDisabled : DropDownVertical . valueContainerDisabled ,
134+ menuWrapper : DropDownVertical . menuWrapper ,
135+ itemContainer : DropDownVertical . itemContainer ,
136+ item : DropDownVertical . item ,
137+ iconStyle : DropDownVertical . iconStyle ,
138+ useUniformDesign : DropDownVertical . useUniformDesign ,
139+ pickerIOS : DropDownVertical . pickerIOS ,
140+ pickerItemIOS : DropDownVertical . pickerItemIOS ,
141+ pickerBackdropIOS : DropDownVertical . pickerBackdropIOS ,
142+ pickerTopIOS : DropDownVertical . pickerTopIOS ,
126143} ;
0 commit comments