playbook_ui 4.5.2 → 4.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (179) hide show
  1. checksums.yaml +4 -4
  2. data/app/helpers/playbook/pb_sample_helper.rb +37 -0
  3. data/app/pb_kits/playbook/_playbook.scss +1 -0
  4. data/app/pb_kits/playbook/config/_kit_ui.html.erb +3 -3
  5. data/app/pb_kits/playbook/data/menu.yml +1 -1
  6. data/app/pb_kits/playbook/index.js +2 -0
  7. data/app/pb_kits/playbook/packs/application.js +44 -4
  8. data/app/pb_kits/playbook/packs/examples.js +2 -6
  9. data/app/pb_kits/playbook/packs/samples.js +1 -36
  10. data/app/pb_kits/playbook/packs/site_styles/_samples.scss +3 -2
  11. data/app/pb_kits/playbook/packs/site_styles/docs/_kit_doc.scss +3 -3
  12. data/app/pb_kits/playbook/pb_avatar/docs/_avatar_monogram.md +2 -0
  13. data/app/pb_kits/playbook/pb_avatar/docs/_avatar_status.md +2 -0
  14. data/app/pb_kits/playbook/pb_avatar/docs/_description.md +2 -0
  15. data/app/pb_kits/playbook/pb_avatar/docs/_footer.md +3 -0
  16. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_default.html.erb +0 -2
  17. data/app/pb_kits/playbook/pb_bar_graph/docs/_description.md +1 -0
  18. data/app/pb_kits/playbook/pb_body/docs/_description.md +2 -0
  19. data/app/pb_kits/playbook/pb_body/docs/_footer.md +2 -0
  20. data/app/pb_kits/playbook/pb_button/docs/_button_default.md +1 -0
  21. data/app/pb_kits/playbook/pb_button/docs/_button_full_width.md +1 -0
  22. data/app/pb_kits/playbook/pb_button/docs/_button_loading.md +1 -0
  23. data/app/pb_kits/playbook/pb_button/docs/_footer.md +2 -0
  24. data/app/pb_kits/playbook/pb_caption/docs/_description.md +1 -0
  25. data/app/pb_kits/playbook/pb_caption/docs/_footer.md +2 -0
  26. data/app/pb_kits/playbook/pb_checkbox/docs/_description.md +1 -0
  27. data/app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_default.html.erb +1 -1
  28. data/app/pb_kits/playbook/pb_circle_icon_button/docs/_description.md +1 -0
  29. data/app/pb_kits/playbook/pb_circle_icon_button/docs/_footer.md +2 -0
  30. data/app/pb_kits/playbook/pb_contact/docs/_description.md +1 -0
  31. data/app/pb_kits/playbook/pb_currency/docs/_description.md +2 -0
  32. data/app/pb_kits/playbook/pb_dashboard_value/docs/_description.md +1 -0
  33. data/app/pb_kits/playbook/pb_date/docs/_description.md +1 -0
  34. data/app/pb_kits/playbook/pb_date_range_inline/docs/_description.md +1 -0
  35. data/app/pb_kits/playbook/pb_date_stacked/docs/_description.md +1 -0
  36. data/app/pb_kits/playbook/pb_date_stacked/docs/_footer.md +2 -0
  37. data/app/pb_kits/playbook/pb_date_year_stacked/docs/_date_year_stacked_default.md +1 -0
  38. data/app/pb_kits/playbook/pb_date_year_stacked/docs/_description.md +1 -0
  39. data/app/pb_kits/playbook/pb_date_year_stacked/docs/_footer.md +4 -0
  40. data/app/pb_kits/playbook/pb_distribution_bar/docs/_description.md +1 -0
  41. data/app/pb_kits/playbook/{pb_editor/_editor.html.erb → pb_filter/_filter.html.erb} +1 -1
  42. data/app/pb_kits/playbook/pb_filter/_filter.jsx +88 -0
  43. data/app/pb_kits/playbook/pb_filter/_filter.scss +82 -0
  44. data/app/pb_kits/playbook/pb_filter/docs/_filter_default.html.erb +45 -0
  45. data/app/pb_kits/playbook/pb_filter/docs/_filter_default.jsx +9 -0
  46. data/app/pb_kits/playbook/pb_filter/docs/_filter_single.html.erb +46 -0
  47. data/app/pb_kits/playbook/pb_filter/docs/example.yml +9 -0
  48. data/app/pb_kits/playbook/pb_filter/docs/index.js +1 -0
  49. data/app/pb_kits/playbook/pb_filter/filter.rb +34 -0
  50. data/app/pb_kits/playbook/pb_filter/templates/_default.html.erb +43 -0
  51. data/app/pb_kits/playbook/pb_filter/templates/_single.html.erb +42 -0
  52. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_description.md +2 -0
  53. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_multi_line.html.erb +1 -1
  54. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_multi_line.md +2 -0
  55. data/app/pb_kits/playbook/pb_flex/docs/_description.md +1 -0
  56. data/app/pb_kits/playbook/pb_flex/docs/_flex_default.md +1 -0
  57. data/app/pb_kits/playbook/pb_flex/docs/_flex_inline.md +1 -0
  58. data/app/pb_kits/playbook/pb_form/docs/_description.md +10 -0
  59. data/app/pb_kits/playbook/pb_form/docs/_footer.md +2 -0
  60. data/app/pb_kits/playbook/pb_form/docs/_form_form_with_validate.md +1 -0
  61. data/app/pb_kits/playbook/pb_form/docs/_form_simple_form_validate.md +1 -0
  62. data/app/pb_kits/playbook/pb_hashtag/docs/_description.md +1 -0
  63. data/app/pb_kits/playbook/pb_hashtag/docs/_footer.md +2 -0
  64. data/app/pb_kits/playbook/pb_highlight/docs/_description.md +1 -0
  65. data/app/pb_kits/playbook/pb_highlight/docs/_footer.md +2 -0
  66. data/app/pb_kits/playbook/pb_home_address_street/docs/_description.md +1 -0
  67. data/app/pb_kits/playbook/pb_home_address_street/docs/_footer.md +2 -0
  68. data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_default.md +1 -0
  69. data/app/pb_kits/playbook/pb_icon/docs/_description.md +1 -0
  70. data/app/pb_kits/playbook/pb_icon/docs/_footer.md +2 -0
  71. data/app/pb_kits/playbook/pb_icon/docs/_icon_animate.md +1 -0
  72. data/app/pb_kits/playbook/pb_icon/docs/_icon_pull.md +1 -0
  73. data/app/pb_kits/playbook/pb_icon_circle/docs/_description.md +1 -0
  74. data/app/pb_kits/playbook/pb_icon_circle/docs/_footer.md +2 -0
  75. data/app/pb_kits/playbook/pb_icon_value/docs/_description.md +1 -0
  76. data/app/pb_kits/playbook/pb_image/docs/_description.md +1 -0
  77. data/app/pb_kits/playbook/pb_label_pill/docs/_description.md +1 -0
  78. data/app/pb_kits/playbook/pb_label_pill/docs/_footer.md +2 -0
  79. data/app/pb_kits/playbook/pb_label_pill/docs/_label_pill_default.md +1 -0
  80. data/app/pb_kits/playbook/pb_label_value/docs/_description.md +1 -0
  81. data/app/pb_kits/playbook/pb_label_value/docs/_footer.md +2 -0
  82. data/app/pb_kits/playbook/pb_label_value/docs/_label_value_default.md +1 -0
  83. data/app/pb_kits/playbook/pb_label_value/docs/index.html.erb +25 -0
  84. data/app/pb_kits/playbook/pb_layout/docs/_description.md +1 -0
  85. data/app/pb_kits/playbook/pb_legend/docs/_description.md +1 -0
  86. data/app/pb_kits/playbook/pb_legend/docs/_footer.md +2 -0
  87. data/app/pb_kits/playbook/pb_legend/docs/_legend_default.html.erb +1 -1
  88. data/app/pb_kits/playbook/pb_line_graph/docs/_description.md +1 -0
  89. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_default.html.erb +0 -3
  90. data/app/pb_kits/playbook/pb_list/docs/_description.md +1 -0
  91. data/app/pb_kits/playbook/pb_loading_inline/docs/_description.md +1 -0
  92. data/app/pb_kits/playbook/pb_message/docs/_description.md +1 -0
  93. data/app/pb_kits/playbook/pb_message/docs/_footer.md +2 -0
  94. data/app/pb_kits/playbook/pb_message/docs/_message_default.md +1 -0
  95. data/app/pb_kits/playbook/pb_multiple_users/docs/_description.md +1 -0
  96. data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/_description.md +1 -0
  97. data/app/pb_kits/playbook/pb_nav/docs/_description.md +1 -0
  98. data/app/pb_kits/playbook/pb_online_status/docs/_description.md +1 -0
  99. data/app/pb_kits/playbook/pb_person/docs/_description.md +1 -0
  100. data/app/pb_kits/playbook/pb_person/docs/_footer.md +3 -0
  101. data/app/pb_kits/playbook/pb_person/docs/_person_default.md +1 -0
  102. data/app/pb_kits/playbook/pb_person_contact/docs/_description.md +1 -0
  103. data/app/pb_kits/playbook/pb_person_contact/docs/_footer.md +3 -0
  104. data/app/pb_kits/playbook/pb_pill/docs/_description.md +1 -0
  105. data/app/pb_kits/playbook/pb_popover/docs/_description.md +1 -0
  106. data/app/pb_kits/playbook/pb_progress_pills/docs/_description.md +1 -0
  107. data/app/pb_kits/playbook/pb_progress_simple/docs/_description.md +1 -0
  108. data/app/pb_kits/playbook/pb_progress_simple/docs/_footer.md +2 -0
  109. data/app/pb_kits/playbook/pb_radio/docs/_description.md +1 -0
  110. data/app/pb_kits/playbook/pb_radio/docs/_footer.md +2 -0
  111. data/app/pb_kits/playbook/pb_radio/docs/_radio_error.md +1 -0
  112. data/app/pb_kits/playbook/pb_section_separator/docs/_description.md +1 -3
  113. data/app/pb_kits/playbook/pb_section_separator/docs/_footer.md +1 -1
  114. data/app/pb_kits/playbook/pb_select/docs/_description.md +1 -0
  115. data/app/pb_kits/playbook/pb_select/docs/_footer.md +2 -0
  116. data/app/pb_kits/playbook/pb_select/docs/_select_error.md +1 -0
  117. data/app/pb_kits/playbook/pb_selectable_card/docs/_description.md +1 -0
  118. data/app/pb_kits/playbook/pb_selectable_card/docs/_footer.md +2 -0
  119. data/app/pb_kits/playbook/pb_selectable_card/docs/_selectable_card_block.md +1 -0
  120. data/app/pb_kits/playbook/pb_selectable_card/docs/_selectable_card_default.md +1 -0
  121. data/app/pb_kits/playbook/pb_selectable_card/docs/_selectable_card_single_select.md +2 -0
  122. data/app/pb_kits/playbook/pb_source/docs/_description.md +1 -0
  123. data/app/pb_kits/playbook/pb_star_rating/docs/_description.md +1 -0
  124. data/app/pb_kits/playbook/pb_stat_change/docs/_description.md +1 -0
  125. data/app/pb_kits/playbook/pb_stat_value/docs/_description.md +1 -0
  126. data/app/pb_kits/playbook/pb_stat_value/docs/_footer.md +2 -0
  127. data/app/pb_kits/playbook/pb_stat_value/docs/_stat_value_default.md +1 -0
  128. data/app/pb_kits/playbook/pb_table/docs/_description.md +1 -0
  129. data/app/pb_kits/playbook/pb_table/docs/_table_lg.md +1 -0
  130. data/app/pb_kits/playbook/pb_table/docs/_table_md.md +1 -0
  131. data/app/pb_kits/playbook/pb_table/docs/_table_sm.md +1 -0
  132. data/app/pb_kits/playbook/pb_text_input/docs/_description.md +1 -0
  133. data/app/pb_kits/playbook/pb_text_input/docs/_footer.md +2 -0
  134. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_error.md +1 -0
  135. data/app/pb_kits/playbook/pb_textarea/docs/_description.md +1 -0
  136. data/app/pb_kits/playbook/pb_textarea/docs/_footer.md +2 -0
  137. data/app/pb_kits/playbook/pb_textarea/docs/_textarea_error.md +1 -0
  138. data/app/pb_kits/playbook/pb_time/docs/_description.md +1 -0
  139. data/app/pb_kits/playbook/pb_time/docs/_footer.md +2 -0
  140. data/app/pb_kits/playbook/pb_time/docs/_time_default.md +1 -0
  141. data/app/pb_kits/playbook/pb_timestamp/docs/_description.md +1 -0
  142. data/app/pb_kits/playbook/pb_timestamp/docs/_footer.md +2 -0
  143. data/app/pb_kits/playbook/pb_timestamp/docs/_time_stamp_default.md +1 -0
  144. data/app/pb_kits/playbook/pb_title/docs/_description.md +2 -0
  145. data/app/pb_kits/playbook/pb_title_count/_title_count.jsx +33 -15
  146. data/app/pb_kits/playbook/pb_title_count/docs/_description.md +1 -0
  147. data/app/pb_kits/playbook/pb_title_count/docs/_footer.md +2 -0
  148. data/app/pb_kits/playbook/pb_title_count/docs/_title_count_default.jsx +12 -1
  149. data/app/pb_kits/playbook/pb_title_count/docs/_title_count_default.md +1 -0
  150. data/app/pb_kits/playbook/pb_title_detail/docs/_description.md +1 -0
  151. data/app/pb_kits/playbook/pb_title_detail/docs/_footer.md +2 -0
  152. data/app/pb_kits/playbook/pb_title_detail/docs/_title_detail_default.md +1 -0
  153. data/app/pb_kits/playbook/pb_toggle/docs/_description.md +1 -0
  154. data/app/pb_kits/playbook/pb_toggle/docs/_footer.md +3 -0
  155. data/app/pb_kits/playbook/pb_typeahead/_typeahead.scss +2 -2
  156. data/app/pb_kits/playbook/pb_typeahead/docs/_description.md +1 -0
  157. data/app/pb_kits/playbook/pb_typeahead/docs/_footer.md +2 -0
  158. data/app/pb_kits/playbook/pb_user/docs/_description.md +1 -0
  159. data/app/pb_kits/playbook/pb_user/docs/_footer.md +0 -0
  160. data/app/pb_kits/playbook/pb_user_badge/docs/_description.md +1 -0
  161. data/app/pb_kits/playbook/pb_user_badge/docs/_footer.md +2 -0
  162. data/app/pb_kits/playbook/pb_user_badge/docs/_user_badge_default.md +1 -0
  163. data/app/pb_kits/playbook/vendor.js +3 -0
  164. data/app/views/layouts/playbook/samples.html.erb +0 -17
  165. data/app/views/playbook/samples/dashboards/{dashboards.html.erb → index.html.erb} +17 -20
  166. data/app/views/playbook/samples/dashboards/index.jsx +130 -0
  167. data/app/views/playbook/samples/sample_show.html.erb +14 -3
  168. data/fonts/{fontawesome.min.js → fontawesome-min.js} +2 -2
  169. data/fonts/regular-min.js +5 -0
  170. data/lib/generators/kit/kit_generator.rb +0 -6
  171. data/lib/playbook/version.rb +1 -1
  172. metadata +147 -12
  173. data/app/pb_kits/playbook/kits/pb_flex.js +0 -4
  174. data/app/pb_kits/playbook/kits/pb_highlight.js +0 -4
  175. data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_text.md +0 -1
  176. data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_text_background.md +0 -1
  177. data/app/views/playbook/samples/dashboards/dashboards.jsx +0 -35
  178. data/fonts/regular.min.js +0 -5
  179. data/lib/generators/kit/templates/kit_pack.erb.tt +0 -4
@@ -0,0 +1,2 @@
1
+ ## Things to Avoid
2
+ Try not to use this kit without padding as it will make text illegible if placed right next to the same kit or other kits.
@@ -0,0 +1 @@
1
+ Use this kit to display a label and value text for almost every data entry.
@@ -0,0 +1,25 @@
1
+ <div class="container-fluid mt-5">
2
+ <%= render partial: 'partials/filter-search' %>
3
+ <%= pb_rails("table", props: { size: "md"} ) do %>
4
+ <div class="mt-5">
5
+ <thead>
6
+ <tr>
7
+ <th>Backlog Item</th>
8
+ <th>Deployment</th>
9
+ <th>Assignees</th>
10
+ <th class="text-nowrap">Ready for Review</th>
11
+ <th>Review Status</th>
12
+ </tr>
13
+ </thead>
14
+ <tbody>
15
+ <%= render partial: 'partials/item1' %>
16
+ <%= render partial: 'partials/item2' %>
17
+ <%= render partial: 'partials/item3' %>
18
+
19
+ </tbody>
20
+ </div>
21
+ <% end %>
22
+ </div>
23
+
24
+
25
+ <%= render partial: 'partials/modal' %>
@@ -0,0 +1 @@
1
+ Layouts used for positioning content inside of pages, cards, or containers.
@@ -0,0 +1 @@
1
+ A key used to compare the variables and their value in any given graph.
@@ -0,0 +1,2 @@
1
+ ### Things to Avoid
2
+ Do not use as bullet points in a list.
@@ -1,5 +1,5 @@
1
1
  <% labels = %W[Windows Doors Roofing Siding Solar Gutters Insulation Other] %>
2
2
 
3
3
  <% (1..7).each do |n, i| %>
4
- <%= pb_rails("legend", props: { color: "data_#{n}", text: "#{labels[n]}" }) %>
4
+ <%= pb_rails("legend", props: { color: "data_#{n}", text: "#{labels[n]}" }) %>
5
5
  <% end %>
@@ -0,0 +1 @@
1
+ Line graphs are used to show changes in data over time.
@@ -16,6 +16,3 @@
16
16
  }] %>
17
17
 
18
18
  <%= pb_rails("line_graph", props: { id: "line-test", gradient: false, chart_data: data, point_start: 1, title: 'Solar Employment Growth by Sector, 2010-2016', subtitle: 'Source: thesolarfoundation.com', axis_title: 'Number of Employees' } ) %>
19
-
20
-
21
-
@@ -0,0 +1 @@
1
+ Lists display a vertical set of related content.
@@ -0,0 +1 @@
1
+ The loading kit is used to indicate to users that a page is still loading, or an action is still being processed.
@@ -0,0 +1 @@
1
+ This multi kit consist of a an avatar, a status, a caption, a body text, and a time stamp. All which can be optional.
@@ -0,0 +1,2 @@
1
+ ## Things To Avoid
2
+ Avoid changing the format of this kit. Keep the layout true to its original design.
@@ -0,0 +1 @@
1
+ Use this kit when displaying a message or a sort of communication with either a user or a bot. Use it in history displays, chat rooms, discussion threads or comments section.
@@ -0,0 +1 @@
1
+ The multiple users kit is used to show that more than one user is associated to an action or item.
@@ -0,0 +1 @@
1
+ Multiple users stacked is used in tight spaces, where we need to indicate that multiple users are associated to a specific action or item.
@@ -0,0 +1 @@
1
+ The nav is a grouped set of links that take the user to another page, or tab through parts of a page. It comes in horizontal or vertical with several different variants.
@@ -0,0 +1 @@
1
+ Online Status is a small indicator that lets the user know the status of a person or item.
@@ -0,0 +1 @@
1
+ This kit is broken down into a first name last name format with normal and bold weighted text.
@@ -0,0 +1,3 @@
1
+ ## Things To Avoid
2
+ • Avoid using this kit just for it’s design, it should only be used for displaying people names ONLY.
3
+ • Do not change the style and format. Keep the colors true to the original kit.
@@ -0,0 +1 @@
1
+ Use this kit to display users, homeowners, or person of contact.
@@ -0,0 +1 @@
1
+ This kit can be used to display a person contact information. It includes multiples kits like: Person, contact and caption kit. Use this kit for both Nitro users and Homeowners.
@@ -0,0 +1,3 @@
1
+ ## Thing To Avoid
2
+ • Don’t unstack the contacts: email & phone.
3
+ • Keep the fonts exact in size and weight, don’t change the color variations.
@@ -0,0 +1 @@
1
+ A pill uses both a keyword and a specific color to categorize an item. Each pill directly corresponds to a data color here: https://playbook.powerapp.cloud/utilities
@@ -0,0 +1 @@
1
+ A popover is a way to toggle content on top of other content. It can be used for small texts, small forms, or even dropdowns.
@@ -0,0 +1 @@
1
+ Progress pills indicate a specific point in time of a series of sequential steps. They are used to track progress of something over time.
@@ -0,0 +1 @@
1
+ Displays the current progress of an operation flow. User understanding increases when paired with labels or numbers.
@@ -0,0 +1,2 @@
1
+ ### Things to Avoid
2
+ Do not use as turbolinks bar.
@@ -0,0 +1 @@
1
+ Radio is a control that allows the user to only choose one predefined option.
@@ -0,0 +1,2 @@
1
+ ### Things to Avoid
2
+ Try to avoid using if you have nested options.
@@ -0,0 +1 @@
1
+ Error shows that the radio option must be selected or is invalid (ie when used in a form it signals a user to fix an error).
@@ -1,3 +1 @@
1
- Section separator is a divider line that compartmentalizes content, typically used on cards or white backgrounds.
2
-
3
-
1
+ Section separator is a divider line that compartmentalizes content, typically used on cards or white backgrounds. This should only be used on light backgrounds (with our variable `$bg_light`).
@@ -1,2 +1,2 @@
1
1
  ### Things to Avoid
2
- Do not use section separators to handle lists. Use List Kit.
2
+ Do not use section separators to handle list; instead, use <a href="https://playbook.powerapp.cloud/kits/list">List Kit</a>.
@@ -0,0 +1 @@
1
+ Select displays multiple options for a user to pick from in a dropdown menu. User selects one option.
@@ -0,0 +1,2 @@
1
+ ### Things to Avoid
2
+ Try to avoid using select when there are limited options to choose from (ie either or questions, yes/no questions, etc).
@@ -0,0 +1 @@
1
+ Select w/ Error shows that the radio option must be selected or is invalid (ie when used in a form it signals a user to fix an error).
@@ -0,0 +1 @@
1
+ Cards for information/content that can be selected. There is design for unselected and selected states. Typically used as a form element.
@@ -0,0 +1,2 @@
1
+ ### Things to Avoid
2
+ Do not use Forms, Charts & Graphs, Text Input, Textarea, etc inside of selectable card.
@@ -0,0 +1 @@
1
+ Selectable Cards can pass text or block content.
@@ -0,0 +1 @@
1
+ Default Selectable Cards are multi select by default.
@@ -0,0 +1,2 @@
1
+ Single Select allows only one selectable card in the set to be selected.
2
+
@@ -0,0 +1 @@
1
+ General use is to describe the discovery of businesses, customers, etc. This kit can also be used for other purposes as well.
@@ -0,0 +1 @@
1
+ A component to view other people’s opinions and experiences. Use when you want to show evaluation or a quick quantitative rating. Most effective when paired with reviews.
@@ -0,0 +1 @@
1
+ Displays the increase, decrease, or neutral change in data. Use when you want the user to see changes in statistical data. User understanding is increased when paired with label or textual context (i.e. <a href="https://playbook.powerapp.cloud/kits/dashboard_value">Dashboard Value</a>).
@@ -0,0 +1 @@
1
+ This kit was cerated for the main use as a dashboard display for numbers. A large label is an optional part if it needs more clarity.
@@ -0,0 +1,2 @@
1
+ ## Things To Avoid
2
+ Don’t use this as a replacement for titles on a page.
@@ -0,0 +1 @@
1
+ Use this as value for displaying number data at a high level. It’s primary function is to create hierarchy of data within a view.
@@ -0,0 +1 @@
1
+ Tables display a collection of structured data and typically have the ability to sort, filter, and paginate data. Good data tables allows the user to scan, analyze, compare, filter, and sort information to derive insights and commit actions.
@@ -0,0 +1 @@
1
+ Use table size `"lg"` to add padding around each row to maximize reading comfortability.
@@ -0,0 +1 @@
1
+ Use table size `"md"` to add padding around each row to increase reading comfortability.
@@ -0,0 +1 @@
1
+ Use table size `"sm"` when data density is a priority. Smaller row height enables the user to view more data without the need for scrolling.
@@ -0,0 +1 @@
1
+ Area where user can enter small amount of text. Commonly used in forms.
@@ -0,0 +1,2 @@
1
+ ### Things to Avoid
2
+ Do not use for large amounts of text (use <a href="https://playbook.powerapp.cloud/kits/textarea">Textarea</a> instead). Avoid using a text input without validation if input is required and using with validation if not required.
@@ -0,0 +1 @@
1
+ Text Input w/ Error shows that the radio option must be selected or is invalid (ie when used in a form it signals a user to fix an error).
@@ -0,0 +1 @@
1
+ Area where user can enter larger amounts of text. Commonly used in forms.
@@ -0,0 +1,2 @@
1
+ ### Things to Avoid
2
+ Do not use for small text amounts (use <a href="https://playbook.powerapp.cloud/kits/text_input">Text Input</a> instead). Avoid using textarea without validation if it is required and using with validation if not required.
@@ -0,0 +1 @@
1
+ Textarea w/ Error shows that the radio option must be selected or is invalid (ie when used in a form it signals a user to fix an error).
@@ -0,0 +1 @@
1
+ This kit consist of large display and table display format. It includes and icon, and a time zone.
@@ -0,0 +1,2 @@
1
+ ## Things To Avoid
2
+ Try to not use this as a small time stamp to display a status update.
@@ -0,0 +1 @@
1
+ Use this anywhere needed to display a certain timestamp
@@ -0,0 +1 @@
1
+ This kit is a small indicator for the user to know s timestamp
@@ -0,0 +1,2 @@
1
+ ## Things To Avoid
2
+ Leave the text style as is. Don’t use timestamps to display important or sensitive time information.
@@ -0,0 +1 @@
1
+ Use these only to display status updates in areas that has a lot of data.
@@ -0,0 +1,2 @@
1
+ Typically used as headers. Follow semantic hierarchy — Title 1s should be followed by Title 2s followed by Title 3s and so on, without skipping any levels.
2
+ Tags can be changed using the tag prop. However, be sure follow markdown semantics (h1's are followed by h2's followed by h3's and so on).
@@ -1,21 +1,39 @@
1
+ /* @flow */
1
2
  import React from 'react'
2
- import PropTypes from 'prop-types'
3
+ import { Body, Title } from '../'
3
4
 
4
- const propTypes = {
5
- className: PropTypes.string,
6
- id: PropTypes.string,
5
+ type TitleCountProps = {
6
+ className?: String,
7
+ data?: String,
8
+ id?: String,
9
+ title?: String,
10
+ count?: Number,
11
+ size?: String
7
12
  }
8
13
 
9
- class TitleCount extends React.Component {
10
- render() {
11
- return (
12
- <div className="pb_title_count">
13
- <span>{'TITLE COUNT CONTENT'}</span>
14
- </div>
15
- )
16
- }
17
- }
18
-
19
- TitleCount.propTypes = propTypes
14
+ const TitleCount = ({
15
+ className = 'pb_title_count_kit',
16
+ data,
17
+ count,
18
+ id,
19
+ title,
20
+ size,
21
+ }: TitleCountProps) => (
22
+ <div
23
+ className={className}
24
+ data={data}
25
+ id={id}
26
+ >
27
+ <Title
28
+ className="pb_title_count_text"
29
+ size={size == 'lg' ? 3 : 4}
30
+ text={title}
31
+ />
32
+ <Body
33
+ color="light"
34
+ text={`${count}`}
35
+ />
36
+ </div>
37
+ )
20
38
 
21
39
  export default TitleCount
@@ -0,0 +1 @@
1
+ This kits consists of title kit and body text. It is used to display a title and a count (numbers). It has a base size and a large formation for dashboard use.
@@ -0,0 +1,2 @@
1
+ ## Things To Avoid
2
+ Keep the format. Don’t replace the colors for any text in this kit.
@@ -1,8 +1,19 @@
1
1
  import React from 'react'
2
+ import { TitleCount } from '../../'
2
3
 
3
4
  const TitleCountDefault = () => {
4
5
  return (
5
- <h1>{'Coming Soon...'}</h1>
6
+ <>
7
+ <TitleCount
8
+ count={35}
9
+ title="Appointments"
10
+ />
11
+ <TitleCount
12
+ count={35}
13
+ size="lg"
14
+ title="Appointments"
15
+ />
16
+ </>
6
17
  )
7
18
  }
8
19
 
@@ -0,0 +1 @@
1
+ Use this kit as a form of label value only for a numeric value.
@@ -0,0 +1 @@
1
+ This kit can be used in many versatile ways. It consist of a title 4 and light body text kit.
@@ -0,0 +1,2 @@
1
+ ## Things To Avoid
2
+ Don’t use as replacement for label_value kit. This kit is to be used for small amount of text in the details.
@@ -0,0 +1 @@
1
+ Use this kit in tables and cards to display data that doesn’t have a caption assigned.
@@ -0,0 +1 @@
1
+ Physical switch that allows users to turn things on or off. Used for applying system states, presenting binary options and activating a state.
@@ -0,0 +1,3 @@
1
+ ### Things to Avoid
2
+ Avoid using if there is a selection with no action/execution that follows or if actions need to be confirmed before being applied.
3
+ Avoid using for opposing options (ie having an option on each side of toggle and the side that it is flipped to is the option that is selected).
@@ -3,9 +3,9 @@
3
3
  position: relative;
4
4
 
5
5
  .pb_typeahead_loading_indicator {
6
- position: relative;
6
+ position: absolute;
7
7
  width: min-content;
8
- top: 3.8em;
8
+ bottom: 0.6em;
9
9
  left: 1em;
10
10
  visibility: hidden;
11
11
  }
@@ -0,0 +1 @@
1
+ Typeahead is auto suggestion or completion based on what the user is starting to type, gets refined as the user types more.
@@ -0,0 +1,2 @@
1
+ ### Things to Avoid
2
+ Avoid using on questionaires, surverys, text input and textarea when users answers/inputs will be individualized.
@@ -0,0 +1 @@
1
+ This kit was created for having a systematic way of displaying users with avatar, titles, name and territory. This is a versatile kit with features than can be added to display more info.
File without changes
@@ -0,0 +1 @@
1
+ This kit was created to display employee icons related to a Nitro user. Currently there is the PVI logo and the Million Dollar Rep Icon.
@@ -0,0 +1,2 @@
1
+ ## Things To Avoid
2
+ Don’t use this to replace icon kit.
@@ -0,0 +1 @@
1
+ Use these to represent what affiliation an employee has.
@@ -10,3 +10,6 @@ import 'lazysizes'
10
10
 
11
11
  import PbPopover from './pb_popover'
12
12
  PbPopover.start()
13
+
14
+ import PbTypeahead from './pb_typeahead'
15
+ PbTypeahead.start()
@@ -9,23 +9,6 @@
9
9
  <body>
10
10
  <div class="sample-layout">
11
11
  <%= yield %>
12
-
13
- <% if @type == "rails" %>
14
- <% contents = File.read("#{Playbook::Engine.root}/app/views/playbook/samples/dashboards/dashboards.html.erb") %>
15
- <%= render template: "playbook/samples/dashboards/dashboards.html.erb", locals: { type: @type } %>
16
- <% elsif @type == "react" %>
17
- <% contents = File.read("#{Playbook::Engine.root}/app/views/playbook/samples/dashboards/dashboards.jsx") %>
18
- <% end %>
19
- <%= react_component("Dashboards") %>
20
- <div class="pb--kit-show">
21
- <div class="pb--doc light_ui">
22
- <div class="pb--codeCopy close" >
23
- <a class="pb--close-toggle copy-clipboard" href="#">Copy to Clipboard</a>
24
- <div class="hiddenCodeforCopy"><%= contents %></div>
25
- <%= raw rouge(contents, "erb") %>
26
- </div>
27
- </div>
28
- </div>
29
12
  </div>
30
13
  </body>
31
14