<commit_before>;;;; Copyright © 2017 Flexpoint Tech Ltd

(ns reagent-toolbox-docs.components.list
  (:require [reagent-toolbox-docs.layout :as layout]
            [reagent-toolbox-docs.ui :as ui]))

(defn list-test []
  (let [notify-new-comics (reagent.ratom/atom false)]
    (fn []
      [:div
       [reagent-toolbox.core/list {:selectable true
                                   :ripple     true}
        [reagent-toolbox.core/list-sub-header {:caption "Explore characters"}]
        [reagent-toolbox.core/list-item {:avatar     "http://vignette1.wikia.nocookie.net/watchmen/images/7/7c/Doctor_Manhattan_%28movie%29.jpg"
                                         :caption    "Dr. Manhattan"
                                         :legend     "Jonathan 'Jon' Osterman"
                                         :right-icon "star"}]

        [reagent-toolbox.core/list-item {:avatar     "http://vignette1.wikia.nocookie.net/watchmen/images/5/5b/Ozymandias.jpg"
                                         :caption    "Ozymandias"
                                         :legend     "<NAME>"
                                         :right-icon "star"}]

        [reagent-toolbox.core/list-item {:avatar     "http://vignette3.wikia.nocookie.net/watchmen/images/6/64/Rorschach.jpg"
                                         :caption    "Rorschach"
                                         :legend     "<NAME>"
                                         :right-icon "star"}]

        [reagent-toolbox.core/list-sub-header {:caption "Configuration"}]
        [reagent-toolbox.core/list-checkbox {:caption   "Notify new comics"
                                             :legend    "You will receive a notification when a new one is published"
                                             :checked   @notify-new-comics
                                             :on-change #(reset! notify-new-comics %)}]
        [reagent-toolbox.core/list-divider]
        [reagent-toolbox.core/list-item {:caption   "Contact the publisher"
                                         :left-icon "send"}]
        [reagent-toolbox.core/list-item {:caption   "Remove this publication"
                                         :left-icon "delete"}]]])))

(defn view []
  (fn []
    [:article
     [:h1 "List"]
     [:p "A " [:a {:href "https://material.io/guidelines/components/lists.html"} "list component"] " consists of a "
      "single continuous column of tessellated sub-divisions of equal width called rows that function as containers "
      "for tiles. Tiles hold content, and can vary in height within a list."]<commit_msg>Ooops. Delete experimental leftover.<commit_after>;;;; Copyright © 2017 Flexpoint Tech Ltd

(ns reagent-toolbox-docs.components.list
  (:require [reagent-toolbox-docs.layout :as layout]
            [reagent-toolbox-docs.ui :as ui]))

(defn view []
  (fn []
    [:article
     [:h1 "List"]
     [:p "A " [:a {:href "https://material.io/guidelines/components/lists.html"} "list component"] " consists of a "
      "single continuous column of tessellated sub-divisions of equal width called rows that function as containers "
      "for tiles. Tiles hold content, and can vary in height within a list."]
{'fraction_non_alphanumeric': 0.11783042394014963, 'fraction_numerical': 0.007481296758104738, 'mean_word_length': 1.656456953642384, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 29, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5707606', 'n_tokens_mistral': 899, 'n_tokens_neox': 849, 'n_words': 209}