change dimension to dimensions across

This commit is contained in:
Akshay Gupta
2024-06-05 13:49:00 +05:30
parent 01d2a25c8c
commit 819c50eaf8
4 changed files with 4 additions and 3 deletions

View File

@@ -37,7 +37,7 @@
:border-radius :border-radius
:stroke-width :stroke-width
:box-shadow :box-shadow
:dimension :dimensions
:numeric :numeric
:opacity :opacity
:other :other

View File

@@ -159,7 +159,7 @@
:modal {:key :tokens/sizing :modal {:key :tokens/sizing
:fields [{:label "Sizing" :fields [{:label "Sizing"
:key :sizing}]}}] :key :sizing}]}}]
[:dimension [:dimensions
{:title "Dimensions" {:title "Dimensions"
:attributes ctt/dimensions-keys :attributes ctt/dimensions-keys
:on-update-shape update-shape-dimensions :on-update-shape update-shape-dimensions

View File

@@ -67,6 +67,7 @@
on-submit (fn [e] on-submit (fn [e]
(dom/prevent-default e) (dom/prevent-default e)
(println "token type is" (:type token) token-type)
(let [token-value (-> (fields->map @state) (let [token-value (-> (fields->map @state)
(first) (first)
(val)) (val))

View File

@@ -51,7 +51,7 @@
:stroke-width i/stroke-size :stroke-width i/stroke-size
:typography i/text :typography i/text
;; TODO: Add diagonal icon here when it's available ;; TODO: Add diagonal icon here when it's available
:dimension [:div {:style {:rotate "45deg"}} i/constraint-horizontal] :dimensions [:div {:style {:rotate "45deg"}} i/constraint-horizontal]
:sizing [:div {:style {:rotate "45deg"}} i/constraint-horizontal] :sizing [:div {:style {:rotate "45deg"}} i/constraint-horizontal]
i/add)) i/add))