mirror of
https://github.com/penpot/penpot.git
synced 2025-06-04 14:41:38 +02:00
Use register
This commit is contained in:
parent
5fbbdd36fd
commit
dd8780db69
1 changed files with 10 additions and 10 deletions
|
@ -47,7 +47,7 @@
|
||||||
:string
|
:string
|
||||||
:typography})
|
:typography})
|
||||||
|
|
||||||
(sm/def! ::token
|
(sm/register! ::token
|
||||||
[:map {:title "Token"}
|
[:map {:title "Token"}
|
||||||
[:id ::sm/uuid]
|
[:id ::sm/uuid]
|
||||||
[:name :string]
|
[:name :string]
|
||||||
|
@ -56,7 +56,7 @@
|
||||||
[:description {:optional true} :string]
|
[:description {:optional true} :string]
|
||||||
[:modified-at {:optional true} ::sm/inst]])
|
[:modified-at {:optional true} ::sm/inst]])
|
||||||
|
|
||||||
(sm/def! ::border-radius
|
(sm/register! ::border-radius
|
||||||
[:map
|
[:map
|
||||||
[:rx {:optional true} ::sm/uuid]
|
[:rx {:optional true} ::sm/uuid]
|
||||||
[:ry {:optional true} ::sm/uuid]
|
[:ry {:optional true} ::sm/uuid]
|
||||||
|
@ -67,13 +67,13 @@
|
||||||
|
|
||||||
(def border-radius-keys (schema-keys ::border-radius))
|
(def border-radius-keys (schema-keys ::border-radius))
|
||||||
|
|
||||||
(sm/def! ::stroke-width
|
(sm/register! ::stroke-width
|
||||||
[:map
|
[:map
|
||||||
[:stroke-width {:optional true} ::sm/uuid]])
|
[:stroke-width {:optional true} ::sm/uuid]])
|
||||||
|
|
||||||
(def stroke-width-keys (schema-keys ::stroke-width))
|
(def stroke-width-keys (schema-keys ::stroke-width))
|
||||||
|
|
||||||
(sm/def! ::sizing
|
(sm/register! ::sizing
|
||||||
[:map
|
[:map
|
||||||
[:width {:optional true} ::sm/uuid]
|
[:width {:optional true} ::sm/uuid]
|
||||||
[:height {:optional true} ::sm/uuid]
|
[:height {:optional true} ::sm/uuid]
|
||||||
|
@ -84,13 +84,13 @@
|
||||||
|
|
||||||
(def sizing-keys (schema-keys ::sizing))
|
(def sizing-keys (schema-keys ::sizing))
|
||||||
|
|
||||||
(sm/def! ::opacity
|
(sm/register! ::opacity
|
||||||
[:map
|
[:map
|
||||||
[:opacity {:optional true} ::sm/uuid]])
|
[:opacity {:optional true} ::sm/uuid]])
|
||||||
|
|
||||||
(def opacity-keys (schema-keys ::opacity))
|
(def opacity-keys (schema-keys ::opacity))
|
||||||
|
|
||||||
(sm/def! ::spacing
|
(sm/register! ::spacing
|
||||||
[:map
|
[:map
|
||||||
[:row-gap {:optional true} ::sm/uuid]
|
[:row-gap {:optional true} ::sm/uuid]
|
||||||
[:column-gap {:optional true} ::sm/uuid]
|
[:column-gap {:optional true} ::sm/uuid]
|
||||||
|
@ -103,7 +103,7 @@
|
||||||
|
|
||||||
(def spacing-keys (schema-keys ::spacing))
|
(def spacing-keys (schema-keys ::spacing))
|
||||||
|
|
||||||
(sm/def! ::dimensions
|
(sm/register! ::dimensions
|
||||||
(merge-schemas ::sizing
|
(merge-schemas ::sizing
|
||||||
::spacing
|
::spacing
|
||||||
::stroke-width
|
::stroke-width
|
||||||
|
@ -111,16 +111,16 @@
|
||||||
|
|
||||||
(def dimensions-keys (schema-keys ::dimensions))
|
(def dimensions-keys (schema-keys ::dimensions))
|
||||||
|
|
||||||
(sm/def! ::rotation
|
(sm/register! ::rotation
|
||||||
[:map
|
[:map
|
||||||
[:rotation {:optional true} ::sm/uuid]])
|
[:rotation {:optional true} ::sm/uuid]])
|
||||||
|
|
||||||
(def rotation-keys (schema-keys ::rotation))
|
(def rotation-keys (schema-keys ::rotation))
|
||||||
|
|
||||||
(sm/def! ::tokens
|
(sm/register! ::tokens
|
||||||
[:map {:title "Applied Tokens"}])
|
[:map {:title "Applied Tokens"}])
|
||||||
|
|
||||||
(sm/def! ::applied-tokens
|
(sm/register! ::applied-tokens
|
||||||
(merge-schemas ::tokens
|
(merge-schemas ::tokens
|
||||||
::border-radius
|
::border-radius
|
||||||
::sizing
|
::sizing
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue