 (ns material.component.composite
-  (:require [goog.object]
+  (:require [goog.object :as gobject]
             [material.icon :as icon]
             [material.component :as cmp]
-            [sablono.core :refer-macros [html]]
-            [clojure.walk :refer [keywordize-keys]]))
+            [sablono.core :refer-macros [html]]))
 
 (defn progress-button [action action-fn processing?]
   (html

       :flexWrap   "wrap"
       :flex       1
       :alignItems "center",
       :overflow   "hidden"}} (goog.object/get props "children")]))

(defn autocomplete-control [props]
  (let [{:keys [innerRef innerProps children selectProps]} (keywordize-keys (js->clj props))
        margin (get-in selectProps [:textFieldProps :margin])]
    (cmp/text-field
      (merge (:textFieldProps selectProps)

                      :padding  "10px 15px"}}) children)))

(defn autocomplete-single-value [props]
  (let [{:keys [children]} (js->clj props :keywordize-keys true)]
    (cmp/typography
      {:style {:fontSize 16}} children)))

(defn autocomplete-multi-value [props]
  (let [{:keys [removeProps children]} (js->clj props :keywordize-keys true)]
    (cmp/chip
      {:tabIndex   -1
       :onDelete   (:onClick removeProps)
