11import { border , contrast , font , input } from "../variables" ;
2- import { DropDown } from "./dropdown" ;
2+ import { DropDownVertical } from "./dropdown" ;
33import { TextBox , TextBoxVertical } from "./textbox" ;
44import { DropDownType } from "../../types/widgets" ;
55/*
@@ -34,31 +34,37 @@ export const ReferenceSelector: DropDownType = {
3434 value : {
3535 // All TextStyle properties & placeholderTextColor are allowed
3636 color : input . color ,
37- borderColor : input . borderColor ,
38- backgroundColor : input . backgroundColor ,
39-
4037 fontSize : input . fontSize ,
4138 fontFamily : input . fontFamily ,
42- borderWidth : input . borderWidth ,
43- borderRadius : input . borderRadius ,
44-
4539 overflow : "hidden" ,
46- paddingHorizontal : input . paddingHorizontal ,
47- paddingVertical : input . paddingVertical ,
48-
4940 placeholderTextColor : input . placeholderTextColor , // Only applied when useUniformDesign is true
5041 } ,
51- valueDisabled : {
52- // All TextStyle properties are allowed
53- ...TextBox . inputDisabled
54- } ,
5542 validationMessage : {
5643 // All TextStyle properties are allowed
5744 ...TextBox . validationMessage ,
5845 } ,
5946 /* New dropdown styles start */
47+ valueFocused : {
48+ // All TextStyle properties are allowed
49+ } ,
50+ valueDisabled : {
51+ // All TextStyle properties are allowed
52+ ...TextBox . inputDisabled
53+ } ,
6054 valueContainer : {
61- // All ViewStyle properties & rippleColor & activeOpacity & underlayColor are allowed
55+ // All ViewStyle properties & rippleColor are allowed
56+ flexDirection : "row" ,
57+ justifyContent : "space-between" ,
58+ alignItems : "center" ,
59+ borderWidth : input . borderWidth ,
60+ borderRadius : input . borderRadius ,
61+ borderColor : input . borderColor ,
62+ paddingHorizontal : input . paddingHorizontal ,
63+ paddingVertical : input . paddingVertical ,
64+ backgroundColor : input . backgroundColor ,
65+ } ,
66+ valueContainerFocused : {
67+ // All ViewStyle properties are allowed
6268 } ,
6369 valueContainerDisabled : {
6470 // All ViewStyle properties are allowed
@@ -80,6 +86,9 @@ export const ReferenceSelector: DropDownType = {
8086 backgroundColor : input . backgroundColor ,
8187 underlayColor : input . inputContainerUnderlayColor ,
8288 } ,
89+ iconStyle : {
90+ // All TextStyle properties are allowed
91+ } ,
8392 item : {
8493 // All TextStyle properties are allowed
8594 color : input . color ,
@@ -116,16 +125,19 @@ export const ReferenceSelectorVertical: DropDownType = {
116125 containerDisabled : TextBoxVertical . containerDisabled ,
117126 label : TextBoxVertical . label ,
118127 labelDisabled : TextBoxVertical . labelDisabled ,
119- value : DropDown . value ,
120- valueContainer : DropDown . valueContainer ,
121- valueContainerDisabled : DropDown . valueContainerDisabled ,
128+ value : DropDownVertical . value ,
129+ valueFocused : DropDownVertical . valueFocused ,
122130 validationMessage : TextBoxVertical . validationMessage ,
123- menuWrapper : DropDown . menuWrapper ,
124- itemContainer : DropDown . itemContainer ,
125- item : DropDown . item ,
126- useUniformDesign : DropDown . useUniformDesign ,
127- pickerIOS : DropDown . pickerIOS ,
128- pickerItemIOS : DropDown . pickerItemIOS ,
129- pickerBackdropIOS : DropDown . pickerBackdropIOS ,
130- 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 ,
131143} ;
0 commit comments