mirror of
https://github.com/status-im/status-react.git
synced 2025-02-21 07:08:44 +00:00
parent
d5a71e2ce0
commit
1812cfb8dc
@ -84,7 +84,7 @@
|
|||||||
colors-by-status (style/status-colors status-kw blur? theme)
|
colors-by-status (style/status-colors status-kw blur? theme)
|
||||||
variant-colors (style/variants-colors blur? theme)
|
variant-colors (style/variants-colors blur? theme)
|
||||||
clean-props (apply dissoc props custom-props)]
|
clean-props (apply dissoc props custom-props)]
|
||||||
[rn/view {:style {:flex 1}}
|
[rn/view {:style container-style}
|
||||||
(when (or label char-limit)
|
(when (or label char-limit)
|
||||||
[label-&-counter
|
[label-&-counter
|
||||||
{:variant-colors variant-colors
|
{:variant-colors variant-colors
|
||||||
@ -92,7 +92,7 @@
|
|||||||
:current-chars @char-count
|
:current-chars @char-count
|
||||||
:char-limit char-limit}])
|
:char-limit char-limit}])
|
||||||
[rn/view
|
[rn/view
|
||||||
{:style (merge (style/input-container colors-by-status small? disabled?) container-style)}
|
{:style (style/input-container colors-by-status small? disabled?)}
|
||||||
(when-let [{:keys [icon-name]} left-icon]
|
(when-let [{:keys [icon-name]} left-icon]
|
||||||
[left-accessory
|
[left-accessory
|
||||||
{:variant-colors variant-colors
|
{:variant-colors variant-colors
|
||||||
|
@ -49,5 +49,6 @@
|
|||||||
[title-input/view
|
[title-input/view
|
||||||
(merge title-input-props
|
(merge title-input-props
|
||||||
{:blur? true
|
{:blur? true
|
||||||
|
:size :heading-2
|
||||||
:placeholder placeholder
|
:placeholder placeholder
|
||||||
:customization-color customization-color})]]]))
|
:customization-color customization-color})]]]))
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
placeholder
|
placeholder
|
||||||
max-length
|
max-length
|
||||||
default-value
|
default-value
|
||||||
|
size
|
||||||
theme
|
theme
|
||||||
container-style]
|
container-style]
|
||||||
:or {max-length 0
|
:or {max-length 0
|
||||||
@ -39,7 +40,7 @@
|
|||||||
[rn/text-input
|
[rn/text-input
|
||||||
{:style
|
{:style
|
||||||
(text/text-style
|
(text/text-style
|
||||||
{:size :heading-1
|
{:size (or size :heading-1)
|
||||||
:weight :semi-bold
|
:weight :semi-bold
|
||||||
:style (style/title-text theme)})
|
:style (style/title-text theme)})
|
||||||
:default-value default-value
|
:default-value default-value
|
||||||
|
@ -34,7 +34,8 @@
|
|||||||
:button {:on-press (fn [] (clipboard/get-string #(reset! input-value %)))
|
:button {:on-press (fn [] (clipboard/get-string #(reset! input-value %)))
|
||||||
:text (i18n/label :t/paste)}
|
:text (i18n/label :t/paste)}
|
||||||
:placeholder (str "0x123abc... " (string/lower-case (i18n/label :t/or)) " bob.eth")
|
:placeholder (str "0x123abc... " (string/lower-case (i18n/label :t/or)) " bob.eth")
|
||||||
:container-style {:margin-right 12}
|
:container-style {:margin-right 12
|
||||||
|
:flex 1}
|
||||||
:weight :monospace
|
:weight :monospace
|
||||||
:on-change #(reset! input-value %)
|
:on-change #(reset! input-value %)
|
||||||
:default-value @input-value}]
|
:default-value @input-value}]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user