mirror of
https://github.com/penpot/penpot.git
synced 2026-03-14 06:17:25 +00:00
♻️ Change component name
This commit is contained in:
@@ -19,4 +19,4 @@
|
||||
|
||||
(dm/export select/select-indexed*)
|
||||
|
||||
(dm/export combobox/combobox*)
|
||||
(dm/export combobox/value-combobox*)
|
||||
@@ -61,7 +61,7 @@
|
||||
(rx/of {:value resolved-value})
|
||||
(rx/of {:error (first errors)}))))))))
|
||||
|
||||
(mf/defc combobox*
|
||||
(mf/defc value-combobox*
|
||||
[{:keys [name tokens token token-type empty-to-end ref] :rest props}]
|
||||
|
||||
(let [form (mf/use-ctx fc/context)
|
||||
@@ -144,7 +144,7 @@
|
||||
(reset! filter-term* "")
|
||||
(reset! is-open* false))))
|
||||
|
||||
{:keys [focused-id on-key-down]}
|
||||
{:keys [focused-id on-key-down]}
|
||||
(use-navigation
|
||||
{:is-open is-open
|
||||
:nodes-ref nodes-ref
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
text-decoration-props (mf/spread-props props {:input-value-placeholder (tr "workspace.tokens.text-decoration-value-enter")})
|
||||
font-weight-props (mf/spread-props props {:input-value-placeholder (tr "workspace.tokens.font-weight-value-enter")})
|
||||
border-radius-props (if (contains? cf/flags :token-combobox)
|
||||
(mf/spread-props props {:input-component token.controls/combobox*})
|
||||
(mf/spread-props props {:input-component token.controls/value-combobox*})
|
||||
props)]
|
||||
|
||||
(case token-type
|
||||
|
||||
Reference in New Issue
Block a user