File tree 1 file changed +8
-5
lines changed
src/quo/components/inputs/input 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 57
57
" Custom properties that must be removed from properties map passed to InputText."
58
58
[:type :blur? :error? :right-icon :left-icon :disabled? :small? :button
59
59
:label :char-limit :on-char-limit-reach :icon-name :multiline? :on-focus :on-blur
60
- :container-style :ref ])
60
+ :container-style :input-container-style :input-style : ref ])
61
61
62
62
(defn- base-input
63
63
[{:keys [blur? error? right-icon left-icon disabled? small? button
64
- label char-limit multiline? clearable? on-focus on-blur container-style
65
- on-change-text on-char-limit-reach weight default-value on-clear]
64
+ label char-limit multiline? clearable? on-focus on-blur container-style input-container-style
65
+ input-style on-change-text on-char-limit-reach weight default-value on-clear]
66
66
:as props}]
67
67
(let [theme (quo.theme/use-theme-value )
68
68
ref (rn/use-ref-atom nil )
115
115
:label label
116
116
:current-chars char-count
117
117
:char-limit char-limit}])
118
- [rn/view {:style (style/input-container colors-by-status small? disabled?)}
118
+ [rn/view
119
+ {:style (merge (style/input-container colors-by-status small? disabled?) input-container-style)}
119
120
(when-let [{:keys [icon-name]} left-icon]
120
121
[left-accessory
121
122
{:variant-colors variant-colors
122
123
:small? small?
123
124
:icon-name icon-name}])
124
125
[rn/text-input
125
126
(cond-> {:ref on-ref
126
- :style (style/input colors-by-status small? multiple-lines? weight)
127
+ :style (merge
128
+ (style/input colors-by-status small? multiple-lines? weight)
129
+ input-style)
127
130
:accessibility-label :input
128
131
:placeholder-text-color (:placeholder colors-by-status)
129
132
:keyboard-appearance (quo.theme/theme-value :light :dark theme)
You can’t perform that action at this time.
0 commit comments