mirror of
https://github.com/penpot/penpot.git
synced 2025-06-09 19:51:40 +02:00
✨ Add new palette UI
This commit is contained in:
parent
56bee7dd7c
commit
fe8f13ed57
114 changed files with 6754 additions and 3172 deletions
|
@ -35,6 +35,7 @@
|
|||
default-val (obj/get props "default")
|
||||
nillable (obj/get props "nillable")
|
||||
select-on-focus? (obj/get props "data-select-on-focus" true)
|
||||
class (obj/get props "klass")
|
||||
|
||||
;; We need a ref pointing to the input dom element, but the user
|
||||
;; of this component may provide one (that is forwarded here).
|
||||
|
@ -218,7 +219,7 @@
|
|||
|
||||
props (-> props
|
||||
(obj/without ["value" "onChange" "nillable" "onFocus"])
|
||||
(obj/set! "className" "input-text")
|
||||
(obj/set! "className" (or class "input-text"))
|
||||
(obj/set! "type" "text")
|
||||
(obj/set! "ref" ref)
|
||||
(obj/set! "defaultValue" (fmt/format-number value))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue