mirror of
https://github.com/penpot/penpot.git
synced 2026-09-07 20:49:37 +00:00
♻️ Fix component schemas (#7481)
This commit is contained in:
parent
1b9deecefc
commit
adafe0648c
@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
(def ^:private schema::hint-message
|
(def ^:private schema::hint-message
|
||||||
[:map
|
[:map
|
||||||
[:message :string]
|
[:message [:or fn? :string]]
|
||||||
[:id :string]
|
[:id :string]
|
||||||
[:type {:optional true} [:enum "hint" "error" "warning"]]
|
[:type {:optional true} [:enum "hint" "error" "warning"]]
|
||||||
[:class {:optional true} :string]])
|
[:class {:optional true} :string]])
|
||||||
|
|||||||
@ -172,9 +172,7 @@
|
|||||||
[:id {:optional true} :string]
|
[:id {:optional true} :string]
|
||||||
[:offset {:optional true} :int]
|
[:offset {:optional true} :int]
|
||||||
[:delay {:optional true} :int]
|
[:delay {:optional true} :int]
|
||||||
;; TODO: Review why html element crash schema
|
[:content [:or fn? :string]]
|
||||||
;; https://tree.taiga.io/project/penpot/task/12039
|
|
||||||
;; [:content [:or fn? :string [:fn mf/element?]]]
|
|
||||||
[:placement {:optional true}
|
[:placement {:optional true}
|
||||||
[:maybe [:enum "top" "bottom" "left" "right" "top-right" "bottom-right" "bottom-left" "top-left"]]]])
|
[:maybe [:enum "top" "bottom" "left" "right" "top-right" "bottom-right" "bottom-left" "top-left"]]]])
|
||||||
|
|
||||||
|
|||||||
@ -104,10 +104,10 @@
|
|||||||
has-errors
|
has-errors
|
||||||
(tr "color-row.token-color-row.deleted-token")
|
(tr "color-row.token-color-row.deleted-token")
|
||||||
:else
|
:else
|
||||||
(mf/html
|
#(mf/html
|
||||||
[:div
|
[:div
|
||||||
[:span (dm/str (tr "workspace.tokens.token-name") ": ")]
|
[:span (dm/str (tr "workspace.tokens.token-name") ": ")]
|
||||||
[:span {:class (stl/css :token-name-tooltip)} color-token]]))]
|
[:span {:class (stl/css :token-name-tooltip)} color-token]]))]
|
||||||
|
|
||||||
[:div {:class (stl/css :color-info)}
|
[:div {:class (stl/css :color-info)}
|
||||||
[:div {:class (stl/css-case :token-color-wrapper true
|
[:div {:class (stl/css-case :token-color-wrapper true
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user