mirror of
https://github.com/penpot/penpot.git
synced 2025-01-08 07:50:43 -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]]
|
[:map-of {:gen/max 5} ::sm/uuid ::media-object]]
|
||||||
[:plugin-data {:optional true}
|
[:plugin-data {:optional true}
|
||||||
[:map-of {:gen/max 5} :keyword ::ctpg/plugin-data]]
|
[: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}
|
[:token-themes-index {:optional true}
|
||||||
[:map-of {:gen/max 5} ::sm/uuid ::ctt/token-theme]]
|
[: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}
|
[:token-set-groups-index {:optional true}
|
||||||
[:map-of {:gen/max 10} ::sm/uuid ::ctt/token-set-group]]
|
[:map-of {:gen/max 10} ::sm/uuid ::ctt/token-set-group]]
|
||||||
[:token-sets-index {:optional true}
|
[:token-sets-index {:optional true}
|
||||||
|
|
|
@ -16,11 +16,22 @@
|
||||||
[:modified-at {:optional true} ::sm/inst]
|
[:modified-at {:optional true} ::sm/inst]
|
||||||
[:sets [:set {:gen/max 10 :gen/min 1} ::sm/uuid]]])
|
[: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
|
(sm/register! ::token-set-group
|
||||||
[:map {:title "TokenSetGroup"}
|
[:map {:title "TokenSetGroup"}
|
||||||
[:id ::sm/uuid]
|
[:id ::sm/uuid]
|
||||||
[:name :string]
|
[: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
|
(sm/register! ::token-set
|
||||||
[:map {:title "TokenSet"}
|
[:map {:title "TokenSet"}
|
||||||
|
|
Loading…
Reference in a new issue