mirror of
https://github.com/penpot/penpot.git
synced 2025-01-06 14:50:20 -05:00
Differentiate groups and sets
This commit is contained in:
parent
dbddd7fb68
commit
6c3415b92c
2 changed files with 16 additions and 3 deletions
|
@ -63,10 +63,12 @@
|
|||
[:map-of {:gen/max 5} ::sm/uuid ::media-object]]
|
||||
[:plugin-data {:optional true}
|
||||
[:map-of {:gen/max 5} :keyword ::ctpg/plugin-data]]
|
||||
[:token-themes [:vector ::sm/uuid]]
|
||||
[:token-themes {:optional true}
|
||||
[:vector ::sm/uuid]]
|
||||
[:token-themes-index {:optional true}
|
||||
[:map-of {:gen/max 5} ::sm/uuid ::ctt/token-theme]]
|
||||
[:token-set-groups [:vector ::sm/uuid]]
|
||||
[:token-set-groups {:optional true}
|
||||
[:vector ::sm/uuid]]
|
||||
[:token-set-groups-index {:optional true}
|
||||
[:map-of {:gen/max 10} ::sm/uuid ::ctt/token-set-group]]
|
||||
[:token-sets-index {:optional true}
|
||||
|
|
|
@ -16,11 +16,22 @@
|
|||
[:modified-at {:optional true} ::sm/inst]
|
||||
[:sets [:set {:gen/max 10 :gen/min 1} ::sm/uuid]]])
|
||||
|
||||
(sm/register! ::token-set-group-ref
|
||||
[:map
|
||||
[:id :sm/uuid]
|
||||
[:type [:= :group]]])
|
||||
|
||||
(sm/register! ::token-set-ref
|
||||
[:map
|
||||
[:id :sm/uuid]
|
||||
[:type [:= :set]]])
|
||||
|
||||
(sm/register! ::token-set-group
|
||||
[:map {:title "TokenSetGroup"}
|
||||
[:id ::sm/uuid]
|
||||
[:name :string]
|
||||
[:sets [:vector {:gen/max 10 :gen/min 1} ::sm/uuid]]])
|
||||
[:items [:vector {:gen/max 10 :gen/min 1}
|
||||
[:or ::token-set-group-ref ::token-set-ref]]]])
|
||||
|
||||
(sm/register! ::token-set
|
||||
[:map {:title "TokenSet"}
|
||||
|
|
Loading…
Reference in a new issue