playbook_ui 7.3.0.pre.alpha2 → 7.3.0.pre.alpha3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (326) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -2
  3. data/app/controllers/playbook/application_controller.rb +0 -2
  4. data/app/pb_kits/playbook/_playbook.scss +1 -0
  5. data/app/pb_kits/playbook/data/menu.yml +4 -3
  6. data/app/pb_kits/playbook/index.js +5 -1
  7. data/app/pb_kits/playbook/pb_avatar/_avatar.jsx +5 -1
  8. data/app/pb_kits/playbook/pb_badge/_badge.jsx +4 -2
  9. data/app/pb_kits/playbook/pb_bar_graph/_bar_graph.html.erb +1 -12
  10. data/app/pb_kits/playbook/pb_bar_graph/_bar_graph.jsx +1 -1
  11. data/app/pb_kits/playbook/pb_bar_graph/bar_graph.rb +3 -2
  12. data/app/pb_kits/playbook/pb_body/body.rb +1 -1
  13. data/app/pb_kits/playbook/pb_button/_button.jsx +5 -1
  14. data/app/pb_kits/playbook/pb_button/_button_mixins.scss +1 -0
  15. data/app/pb_kits/playbook/pb_button_toolbar/_button_toolbar.jsx +7 -3
  16. data/app/pb_kits/playbook/pb_button_toolbar/_button_toolbar.scss +82 -90
  17. data/app/pb_kits/playbook/pb_button_toolbar/_button_toolbar_dark.scss +57 -0
  18. data/app/pb_kits/playbook/pb_button_toolbar/_button_toolbar_mixins.scss +27 -0
  19. data/app/pb_kits/playbook/pb_button_toolbar/button_toolbar.rb +4 -2
  20. data/app/pb_kits/playbook/pb_button_toolbar/docs/_button_toolbar_default.html.erb +17 -7
  21. data/app/pb_kits/playbook/pb_button_toolbar/docs/_button_toolbar_default.jsx +32 -9
  22. data/app/pb_kits/playbook/pb_button_toolbar/docs/_button_toolbar_secondary.html.erb +18 -7
  23. data/app/pb_kits/playbook/pb_button_toolbar/docs/_button_toolbar_secondary.jsx +37 -9
  24. data/app/pb_kits/playbook/pb_button_toolbar/docs/example.yml +3 -7
  25. data/app/pb_kits/playbook/pb_button_toolbar/docs/index.js +0 -2
  26. data/app/pb_kits/playbook/pb_caption/_caption.html.erb +7 -5
  27. data/app/pb_kits/playbook/pb_caption/_caption.jsx +2 -2
  28. data/app/pb_kits/playbook/pb_caption/docs/_caption_block.html.erb +11 -0
  29. data/app/pb_kits/playbook/pb_caption/docs/_caption_block.jsx +28 -0
  30. data/app/pb_kits/playbook/pb_caption/docs/example.yml +2 -0
  31. data/app/pb_kits/playbook/pb_caption/docs/index.js +1 -0
  32. data/app/pb_kits/playbook/pb_checkbox/_checkbox.jsx +5 -2
  33. data/app/pb_kits/playbook/pb_checkbox/checkbox.rb +3 -1
  34. data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_options.html.erb +10 -0
  35. data/app/pb_kits/playbook/pb_checkbox/docs/example.yml +1 -0
  36. data/app/pb_kits/playbook/pb_circle_chart/_circle_chart.jsx +1 -1
  37. data/app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.jsx +5 -1
  38. data/app/pb_kits/playbook/pb_contact/_contact.jsx +5 -1
  39. data/app/pb_kits/playbook/pb_currency/_currency.jsx +5 -1
  40. data/app/pb_kits/playbook/pb_dashboard_value/_dashboard_value.jsx +5 -1
  41. data/app/pb_kits/playbook/pb_date_picker/_date_picker.html.erb +1 -2
  42. data/app/pb_kits/playbook/pb_date_picker/_date_picker.jsx +3 -5
  43. data/app/pb_kits/playbook/pb_date_picker/date_picker.rb +3 -2
  44. data/app/pb_kits/playbook/pb_date_picker/date_picker_helper.js +37 -31
  45. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_default_date.html.erb +1 -2
  46. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_default_date.jsx +1 -2
  47. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_default_date.md +1 -0
  48. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_format.html.erb +4 -0
  49. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_format.jsx +4 -0
  50. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_input.html.erb +9 -9
  51. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_input.jsx +8 -8
  52. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_input.md +3 -1
  53. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_on_change.jsx +34 -0
  54. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_on_change.md +3 -0
  55. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_range.html.erb +1 -0
  56. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_range.jsx +1 -0
  57. data/app/pb_kits/playbook/pb_date_picker/docs/example.yml +1 -4
  58. data/app/pb_kits/playbook/pb_date_picker/docs/index.js +1 -2
  59. data/app/pb_kits/playbook/pb_date_range_inline/_date_range_inline.html.erb +8 -14
  60. data/app/pb_kits/playbook/pb_date_range_inline/_date_range_inline.jsx +122 -39
  61. data/app/pb_kits/playbook/pb_date_range_inline/_date_range_inline.scss +33 -2
  62. data/app/pb_kits/playbook/pb_date_range_inline/date_range_inline.rb +44 -9
  63. data/app/pb_kits/playbook/pb_date_range_inline/docs/_date_range_inline_default.html.erb +14 -1
  64. data/app/pb_kits/playbook/pb_date_range_inline/docs/_date_range_inline_default.jsx +45 -1
  65. data/app/pb_kits/playbook/pb_date_range_stacked/_date_range_stacked.jsx +5 -1
  66. data/app/pb_kits/playbook/pb_date_stacked/_date_stacked.jsx +2 -2
  67. data/app/pb_kits/playbook/pb_date_year_stacked/_date_year_stacked.jsx +5 -1
  68. data/app/pb_kits/playbook/pb_distribution_bar/_distribution_bar.html.erb +1 -8
  69. data/app/pb_kits/playbook/pb_distribution_bar/distribution_bar.rb +7 -0
  70. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.html.erb +3 -2
  71. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.jsx +31 -17
  72. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.scss +10 -0
  73. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_close.html.erb +21 -0
  74. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_close.jsx +38 -0
  75. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_default.html.erb +2 -1
  76. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_default.jsx +1 -2
  77. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_multi_line.html.erb +1 -1
  78. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_multi_line.jsx +1 -1
  79. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_multi_line_dark.html.erb +1 -1
  80. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_multi_line_dark.jsx +1 -1
  81. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/example.yml +2 -0
  82. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/index.js +1 -0
  83. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/fixed_confirmation_toast.rb +7 -1
  84. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/index.js +18 -0
  85. data/app/pb_kits/playbook/pb_flex/_flex.jsx +2 -2
  86. data/app/pb_kits/playbook/pb_flex/_flex_item.jsx +1 -1
  87. data/app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb +10 -2
  88. data/app/pb_kits/playbook/pb_form/docs/_form_form_with_validate.html.erb +1 -1
  89. data/app/pb_kits/playbook/pb_form/docs/_form_simple_form.html.erb +3 -3
  90. data/app/pb_kits/playbook/pb_form/docs/_form_simple_form_validate.html.erb +3 -3
  91. data/app/pb_kits/playbook/pb_form/form_builder/checkbox_field.rb +7 -2
  92. data/app/pb_kits/playbook/pb_form/form_builder/date_picker_field.rb +1 -0
  93. data/app/pb_kits/playbook/pb_form_pill/_form_pill.jsx +3 -2
  94. data/app/pb_kits/playbook/pb_gauge/_gauge.jsx +2 -2
  95. data/app/pb_kits/playbook/pb_highlight/_highlight.jsx +1 -1
  96. data/app/pb_kits/playbook/pb_home_address_street/_home_address_street.jsx +2 -2
  97. data/app/pb_kits/playbook/pb_icon/_icon.jsx +2 -2
  98. data/app/pb_kits/playbook/pb_icon_value/_icon_value.jsx +5 -1
  99. data/app/pb_kits/playbook/pb_image/_image.jsx +5 -1
  100. data/app/pb_kits/playbook/pb_label_pill/_label_pill.jsx +5 -1
  101. data/app/pb_kits/playbook/pb_layout/_layout.jsx +4 -4
  102. data/app/pb_kits/playbook/pb_line_graph/_line_graph.html.erb +1 -13
  103. data/app/pb_kits/playbook/pb_line_graph/_line_graph.jsx +1 -1
  104. data/app/pb_kits/playbook/pb_line_graph/line_graph.rb +3 -2
  105. data/app/pb_kits/playbook/pb_list/_list.jsx +3 -2
  106. data/app/pb_kits/playbook/pb_list/_list_item.jsx +3 -2
  107. data/app/pb_kits/playbook/pb_logistic/_logistic.jsx +5 -1
  108. data/app/pb_kits/playbook/pb_message/_message.jsx +5 -1
  109. data/app/pb_kits/playbook/pb_multiple_users/_multiple_users.jsx +5 -2
  110. data/app/pb_kits/playbook/pb_nav/_item.html.erb +3 -0
  111. data/app/pb_kits/playbook/pb_nav/_item.jsx +14 -1
  112. data/app/pb_kits/playbook/pb_nav/_nav.jsx +5 -2
  113. data/app/pb_kits/playbook/pb_nav/_vertical_nav.scss +22 -3
  114. data/app/pb_kits/playbook/pb_nav/docs/_borderless_nav.html.erb +6 -0
  115. data/app/pb_kits/playbook/pb_nav/docs/_borderless_nav.jsx +29 -0
  116. data/app/pb_kits/playbook/pb_nav/docs/_with_img_nav.html.erb +7 -0
  117. data/app/pb_kits/playbook/pb_nav/docs/_with_img_nav.jsx +42 -0
  118. data/app/pb_kits/playbook/pb_nav/docs/_with_img_nav.md +1 -0
  119. data/app/pb_kits/playbook/pb_nav/docs/example.yml +5 -0
  120. data/app/pb_kits/playbook/pb_nav/docs/index.js +2 -0
  121. data/app/pb_kits/playbook/pb_nav/item.rb +1 -0
  122. data/app/pb_kits/playbook/pb_nav/nav.rb +6 -1
  123. data/app/pb_kits/playbook/pb_person/_person.jsx +5 -1
  124. data/app/pb_kits/playbook/pb_person_contact/_person_contact.jsx +12 -7
  125. data/app/pb_kits/playbook/pb_person_contact/docs/_person_contact_with_wrong_numbers.jsx +1 -0
  126. data/app/pb_kits/playbook/pb_pill/_pill.scss +1 -0
  127. data/app/pb_kits/playbook/pb_popover/_popover.jsx +5 -1
  128. data/app/pb_kits/playbook/pb_popover/_popover.scss +6 -4
  129. data/app/pb_kits/playbook/pb_popover/index.js +3 -1
  130. data/app/pb_kits/playbook/pb_progress_simple/_progress_simple.jsx +4 -4
  131. data/app/pb_kits/playbook/pb_progress_step/_progress_step.jsx +4 -1
  132. data/app/pb_kits/playbook/pb_progress_step/_progress_step.scss +168 -33
  133. data/app/pb_kits/playbook/pb_progress_step/_progress_step_item.html.erb +3 -1
  134. data/app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx +10 -8
  135. data/app/pb_kits/playbook/pb_progress_step/docs/_description.md +1 -1
  136. data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_default.html.erb +14 -16
  137. data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_default.jsx +6 -3
  138. data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_tracker.html.erb +17 -1
  139. data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_tracker.jsx +17 -1
  140. data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_vertical.jsx +10 -3
  141. data/app/pb_kits/playbook/pb_progress_step/progress_step.rb +11 -1
  142. data/app/pb_kits/playbook/pb_progress_step/progress_step_item.rb +1 -1
  143. data/app/pb_kits/playbook/pb_radio/_radio.html.erb +1 -1
  144. data/app/pb_kits/playbook/pb_radio/docs/_radio_options.html.erb +9 -0
  145. data/app/pb_kits/playbook/pb_radio/docs/example.yml +1 -0
  146. data/app/pb_kits/playbook/pb_radio/radio.rb +2 -4
  147. data/app/pb_kits/playbook/pb_section_separator/_section_separator.jsx +1 -3
  148. data/app/pb_kits/playbook/pb_section_separator/_section_separator.scss +26 -47
  149. data/app/pb_kits/playbook/pb_section_separator/_section_separator_mixin.scss +32 -0
  150. data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_line.jsx +6 -2
  151. data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_text.jsx +2 -1
  152. data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_text_background.jsx +2 -1
  153. data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_vertical.jsx +9 -3
  154. data/app/pb_kits/playbook/pb_section_separator/section_separator.rb +1 -1
  155. data/app/pb_kits/playbook/pb_select/_select.scss +1 -1
  156. data/app/pb_kits/playbook/pb_selectable_card/_selectable_card.html.erb +4 -4
  157. data/app/pb_kits/playbook/pb_selectable_card/docs/_selectable_card_options.html.erb +16 -0
  158. data/app/pb_kits/playbook/pb_selectable_card/docs/example.yml +3 -2
  159. data/app/pb_kits/playbook/pb_selectable_card/selectable_card.rb +16 -9
  160. data/app/pb_kits/playbook/pb_selectable_card_icon/_selectable_card_icon.html.erb +3 -2
  161. data/app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_options.html.erb +16 -0
  162. data/app/pb_kits/playbook/pb_selectable_card_icon/docs/example.yml +4 -3
  163. data/app/pb_kits/playbook/pb_selectable_card_icon/selectable_card_icon.rb +3 -0
  164. data/app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.html.erb +3 -3
  165. data/app/pb_kits/playbook/pb_selectable_icon/docs/_selectable_icon_options.html.erb +15 -0
  166. data/app/pb_kits/playbook/pb_selectable_icon/docs/example.yml +3 -2
  167. data/app/pb_kits/playbook/pb_selectable_icon/selectable_icon.rb +10 -0
  168. data/app/pb_kits/playbook/pb_stat_change/_stat_change.jsx +2 -2
  169. data/app/pb_kits/playbook/pb_stat_value/_stat_value.jsx +3 -3
  170. data/app/pb_kits/playbook/pb_stat_value/docs/_stat_value_default.jsx +6 -1
  171. data/app/pb_kits/playbook/pb_table/_table.jsx +2 -2
  172. data/app/pb_kits/playbook/pb_table/docs/_table_action_middle.html.erb +34 -0
  173. data/app/pb_kits/playbook/pb_table/docs/_table_action_middle.jsx +68 -0
  174. data/app/pb_kits/playbook/pb_table/docs/_table_action_middle.md +2 -0
  175. data/app/pb_kits/playbook/pb_table/docs/_table_icon_buttons.html.erb +61 -0
  176. data/app/pb_kits/playbook/pb_table/docs/_table_icon_buttons.jsx +89 -0
  177. data/app/pb_kits/playbook/pb_table/docs/_table_icon_buttons.md +1 -0
  178. data/app/pb_kits/playbook/pb_table/docs/_table_one_action.html.erb +34 -0
  179. data/app/pb_kits/playbook/pb_table/docs/_table_one_action.jsx +68 -0
  180. data/app/pb_kits/playbook/pb_table/docs/_table_one_action.md +2 -0
  181. data/app/pb_kits/playbook/pb_table/docs/_table_two_actions.html.erb +43 -0
  182. data/app/pb_kits/playbook/pb_table/docs/_table_two_actions.jsx +80 -0
  183. data/app/pb_kits/playbook/pb_table/docs/_table_two_actions.md +1 -0
  184. data/app/pb_kits/playbook/pb_table/docs/_table_two_plus_actions.html.erb +34 -0
  185. data/app/pb_kits/playbook/pb_table/docs/_table_two_plus_actions.jsx +63 -0
  186. data/app/pb_kits/playbook/pb_table/docs/_table_two_plus_actions.md +1 -0
  187. data/app/pb_kits/playbook/pb_table/docs/example.yml +12 -0
  188. data/app/pb_kits/playbook/pb_table/docs/index.js +6 -0
  189. data/app/pb_kits/playbook/pb_text_input/_text_input.jsx +1 -1
  190. data/app/pb_kits/playbook/pb_textarea/_textarea.jsx +1 -1
  191. data/app/pb_kits/playbook/pb_time/_time.html.erb +17 -20
  192. data/app/pb_kits/playbook/pb_time/_time.jsx +42 -29
  193. data/app/pb_kits/playbook/pb_time/_time.scss +4 -24
  194. data/app/pb_kits/playbook/pb_time/docs/_time_align.jsx +4 -1
  195. data/app/pb_kits/playbook/pb_time/docs/_time_default.html.erb +11 -11
  196. data/app/pb_kits/playbook/pb_time/docs/_time_default.jsx +13 -1
  197. data/app/pb_kits/playbook/pb_time/docs/_time_sizes.jsx +4 -1
  198. data/app/pb_kits/playbook/pb_time/docs/_time_timestamp.jsx +3 -1
  199. data/app/pb_kits/playbook/pb_time/docs/_time_timezone.html.erb +2 -1
  200. data/app/pb_kits/playbook/pb_time/docs/_time_timezone.jsx +7 -2
  201. data/app/pb_kits/playbook/pb_time_range_inline/_time_range_inline.jsx +1 -1
  202. data/app/pb_kits/playbook/pb_time_range_inline/_time_range_inline.scss +5 -5
  203. data/app/pb_kits/playbook/pb_time_stacked/_time_stacked.jsx +3 -3
  204. data/app/pb_kits/playbook/pb_timestamp/_timestamp.jsx +1 -1
  205. data/app/pb_kits/playbook/pb_title/_title.jsx +5 -1
  206. data/app/pb_kits/playbook/pb_title_count/_title_count.jsx +5 -1
  207. data/app/pb_kits/playbook/pb_title_detail/_title_detail.jsx +5 -5
  208. data/app/pb_kits/playbook/pb_toggle/_toggle.jsx +3 -3
  209. data/app/pb_kits/playbook/pb_toggle/_toggle.scss +41 -43
  210. data/app/pb_kits/playbook/pb_toggle/docs/_toggle_options.html.erb +10 -0
  211. data/app/pb_kits/playbook/pb_toggle/docs/example.yml +1 -2
  212. data/app/pb_kits/playbook/pb_toggle/docs/index.js +0 -1
  213. data/app/pb_kits/playbook/pb_toggle/toggle.rb +5 -2
  214. data/app/pb_kits/playbook/pb_typeahead/_typeahead.html.erb +24 -20
  215. data/app/pb_kits/playbook/pb_typeahead/_typeahead.jsx +19 -1
  216. data/app/pb_kits/playbook/pb_typeahead/components/MultiValue.jsx +8 -1
  217. data/app/pb_kits/playbook/pb_typeahead/components/Option.jsx +21 -13
  218. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_default.html.erb +4 -3
  219. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_context_dark.html.erb +1 -1
  220. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills.html.erb +25 -0
  221. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills.jsx +0 -3
  222. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills.md +8 -0
  223. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async.html.erb +30 -0
  224. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async.md +11 -0
  225. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async_users.html.erb +25 -0
  226. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async_users.jsx +0 -3
  227. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async_users.md +1 -0
  228. data/app/pb_kits/playbook/pb_typeahead/docs/example.yml +3 -0
  229. data/app/pb_kits/playbook/pb_typeahead/typeahead.rb +24 -1
  230. data/app/pb_kits/playbook/pb_user_badge/_user_badge.jsx +5 -2
  231. data/app/pb_kits/playbook/props.rb +1 -1
  232. data/app/pb_kits/playbook/props/base.rb +6 -4
  233. data/app/pb_kits/playbook/react_rails_kits.js +6 -0
  234. data/app/pb_kits/playbook/tokens/_colors.scss +22 -23
  235. data/app/pb_kits/playbook/tokens/_typography.scss +4 -4
  236. data/app/pb_kits/playbook/tokens/index.scss +11 -0
  237. data/app/pb_kits/playbook/vendor.js +8 -0
  238. data/lib/playbook/engine.rb +1 -0
  239. data/lib/playbook/version.rb +1 -1
  240. metadata +47 -88
  241. data/app/controllers/playbook/guides_controller.rb +0 -11
  242. data/app/controllers/playbook/pages_controller.rb +0 -99
  243. data/app/controllers/playbook/samples_controller.rb +0 -40
  244. data/app/pb_kits/playbook/packs/application.js +0 -55
  245. data/app/pb_kits/playbook/packs/examples.js +0 -182
  246. data/app/pb_kits/playbook/packs/main.scss +0 -12
  247. data/app/pb_kits/playbook/packs/samples.js +0 -21
  248. data/app/pb_kits/playbook/packs/site_styles/_samples.scss +0 -72
  249. data/app/pb_kits/playbook/packs/site_styles/_scaffold.scss +0 -43
  250. data/app/pb_kits/playbook/packs/site_styles/_site-style.scss +0 -146
  251. data/app/pb_kits/playbook/packs/site_styles/docs/_all.scss +0 -10
  252. data/app/pb_kits/playbook/packs/site_styles/docs/_bg_light_doc_example.scss +0 -7
  253. data/app/pb_kits/playbook/packs/site_styles/docs/_code_snippet.scss +0 -531
  254. data/app/pb_kits/playbook/packs/site_styles/docs/_color_utilities.scss +0 -92
  255. data/app/pb_kits/playbook/packs/site_styles/docs/_flex_examples.scss +0 -15
  256. data/app/pb_kits/playbook/packs/site_styles/docs/_kit_doc.scss +0 -148
  257. data/app/pb_kits/playbook/packs/site_styles/docs/_kits_examples.scss +0 -15
  258. data/app/pb_kits/playbook/packs/site_styles/docs/_markdown.scss +0 -88
  259. data/app/pb_kits/playbook/packs/site_styles/docs/_spacing_tokens.scss +0 -72
  260. data/app/pb_kits/playbook/pb_button_toolbar/docs/_button_toolbar_vertical.html.erb +0 -11
  261. data/app/pb_kits/playbook/pb_button_toolbar/docs/_button_toolbar_vertical.jsx +0 -29
  262. data/app/pb_kits/playbook/pb_button_toolbar/docs/_button_toolbar_vertical_secondary.html.erb +0 -11
  263. data/app/pb_kits/playbook/pb_button_toolbar/docs/_button_toolbar_vertical_secondary.jsx +0 -34
  264. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_allow_input.html.erb +0 -4
  265. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_allow_input.jsx +0 -13
  266. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_allow_input.md +0 -1
  267. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_dark.html.erb +0 -4
  268. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_dark.jsx +0 -13
  269. data/app/pb_kits/playbook/pb_toggle/docs/_toggle_size.html.erb +0 -11
  270. data/app/pb_kits/playbook/pb_toggle/docs/_toggle_size.jsx +0 -44
  271. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async_summary.jsx +0 -45
  272. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_summary.jsx +0 -27
  273. data/app/views/layouts/playbook/_mobile_hamburger.html.erb +0 -2
  274. data/app/views/layouts/playbook/_nav.html.erb +0 -37
  275. data/app/views/layouts/playbook/_sidebar.html.erb +0 -51
  276. data/app/views/layouts/playbook/application.html.erb +0 -26
  277. data/app/views/layouts/playbook/fullscreen.html.slim +0 -10
  278. data/app/views/layouts/playbook/grid.html.slim +0 -10
  279. data/app/views/layouts/playbook/samples.html.erb +0 -19
  280. data/app/views/playbook/guides/create_kit.html.slim +0 -16
  281. data/app/views/playbook/guides/create_kit/_file_naming.html.md +0 -2
  282. data/app/views/playbook/guides/create_kit/_generator.html.md +0 -6
  283. data/app/views/playbook/guides/create_kit/_kit_examples.html.md +0 -2
  284. data/app/views/playbook/guides/create_kit/_kit_rails.html.md +0 -2
  285. data/app/views/playbook/guides/create_kit/_kit_react.html.md +0 -2
  286. data/app/views/playbook/guides/create_kit/_layout.html.md +0 -2
  287. data/app/views/playbook/guides/create_kit/_view_objects.html.md +0 -2
  288. data/app/views/playbook/guides/create_kit/_writing_sass.md +0 -10
  289. data/app/views/playbook/guides/use_nitro.html.slim +0 -6
  290. data/app/views/playbook/guides/use_nitro/_local.html.md +0 -2
  291. data/app/views/playbook/guides/use_nitro/_nitro_components.html.md +0 -2
  292. data/app/views/playbook/guides/use_nitro/_versions.html.md +0 -2
  293. data/app/views/playbook/pages/fullscreen.html.slim +0 -10
  294. data/app/views/playbook/pages/grid.html.slim +0 -2
  295. data/app/views/playbook/pages/home.html.slim +0 -4
  296. data/app/views/playbook/pages/kit_category_show.html.erb +0 -14
  297. data/app/views/playbook/pages/kit_show.html.erb +0 -33
  298. data/app/views/playbook/pages/kits.html.erb +0 -12
  299. data/app/views/playbook/pages/principals/_getting_started.html.md +0 -30
  300. data/app/views/playbook/pages/principles.html.slim +0 -3
  301. data/app/views/playbook/pages/tokens.html.slim +0 -15
  302. data/app/views/playbook/pages/tokens/_pb_doc_spacing.html.slim +0 -61
  303. data/app/views/playbook/pages/utilities.html.slim +0 -116
  304. data/app/views/playbook/pages/utilities/_pb_doc_color.html.slim +0 -15
  305. data/app/views/playbook/samples/collection_detail/index.html.erb +0 -169
  306. data/app/views/playbook/samples/collection_detail/index.jsx +0 -372
  307. data/app/views/playbook/samples/dashboards/index.html.erb +0 -81
  308. data/app/views/playbook/samples/dashboards/index.jsx +0 -130
  309. data/app/views/playbook/samples/filter_table/index.html.erb +0 -348
  310. data/app/views/playbook/samples/filter_table/index.jsx +0 -433
  311. data/app/views/playbook/samples/registration/index.html.erb +0 -316
  312. data/app/views/playbook/samples/registration/index.jsx +0 -476
  313. data/app/views/playbook/samples/sample_show.html.erb +0 -36
  314. data/lib/generators/kit/USAGE +0 -5
  315. data/lib/generators/kit/kit_generator.rb +0 -95
  316. data/lib/generators/kit/templates/kit_example_rails.erb.tt +0 -1
  317. data/lib/generators/kit/templates/kit_example_react.erb.tt +0 -10
  318. data/lib/generators/kit/templates/kit_example_yml.erb.tt +0 -9
  319. data/lib/generators/kit/templates/kit_html.erb.tt +0 -7
  320. data/lib/generators/kit/templates/kit_js.erb.tt +0 -1
  321. data/lib/generators/kit/templates/kit_jsx.erb.tt +0 -68
  322. data/lib/generators/kit/templates/kit_ruby.erb.tt +0 -11
  323. data/lib/generators/kit/templates/kit_ruby_spec.erb.tt +0 -11
  324. data/lib/generators/kit/templates/kit_scss.erb +0 -3
  325. data/lib/tasks/pb_release.rake +0 -77
  326. data/lib/tasks/playbook_tasks.rake +0 -26
@@ -1,372 +0,0 @@
1
- import React from 'react'
2
- import { Caption, Card, Flex, FlexItem, IconValue, Image, Layout, Nav, NavItem, SectionSeparator, Title } from '../../../../pb_kits/playbook'
3
-
4
- const CollectionDetail = () => (
5
- <div>
6
-
7
- <Layout
8
- layout="collection_detail"
9
- padding="lg"
10
- >
11
- <Card padding="none">
12
- <Caption
13
- padding="md"
14
- size="lg"
15
- text="News Stories"
16
- />
17
- <SectionSeparator />
18
- {
19
- <Nav
20
- link="#"
21
- marginTop="sm"
22
- orientation="vertical"
23
- >
24
- <NavItem
25
- link="#"
26
- text="All News"
27
- />
28
- <NavItem
29
- link="#"
30
- text="Top Stories"
31
- />
32
- <NavItem
33
- active
34
- link="#"
35
- text="National"
36
- />
37
- <Nav variant="subtle">
38
- <NavItem
39
- active
40
- link="#"
41
- text="All"
42
- />
43
- <NavItem
44
- link="#"
45
- text="Planet Money"
46
- />
47
- <NavItem
48
- link="#"
49
- text="Books"
50
- />
51
- <NavItem
52
- link="#"
53
- text="Books, News, and Features"
54
- />
55
- <NavItem
56
- link="#"
57
- text="Science"
58
- />
59
- <NavItem
60
- link="#"
61
- text="Politics"
62
- />
63
- <NavItem
64
- link="#"
65
- text="National Security"
66
- />
67
- <NavItem
68
- link="#"
69
- text="Environment"
70
- />
71
- <NavItem
72
- link="#"
73
- text="Shots - Health News"
74
- />
75
- <NavItem
76
- link="#"
77
- text="Analysis"
78
- />
79
- </Nav>
80
- <NavItem
81
- link="#"
82
- text="Files"
83
- />
84
- </Nav>
85
- }
86
- </Card>
87
-
88
- <Layout.Body>
89
- {/* START PLANET MONEY */}
90
- <Card padding="none">
91
- <Card.Header>
92
- <Caption
93
- dark
94
- text="Planet Money"
95
- />
96
- </Card.Header>
97
- <Card.Body padding="none">
98
- <Image url="https://djenjyj46f9j9.cloudfront.net/items/292f0C2i3f2z2f2A0P0n/Screen%20Shot%202020-07-09%20at%201.23.31%20PM.png?X-CloudApp-Visitor-Id=3399053&v=ed16c3c4" />
99
- <Title
100
- paddingLeft="sm"
101
- paddingTop="sm"
102
- size={4}
103
- tag="h4"
104
- text="Where’d the Money Go, and Other Questions"
105
- />
106
- <SectionSeparator paddingY="sm" />
107
- <Flex
108
- orientation="row"
109
- paddingBottom="sm"
110
- paddingX="sm"
111
- wrap
112
- >
113
- <FlexItem paddingRight="sm">
114
- { <IconValue
115
- icon="share-alt"
116
- text="391"
117
- /> }
118
- </FlexItem>
119
- <FlexItem paddingRight="sm">
120
- { <IconValue
121
- icon="eye"
122
- text="2,039"
123
- /> }
124
- </FlexItem>
125
- <FlexItem>
126
- { <IconValue
127
- icon="comments"
128
- text="89"
129
- /> }
130
- </FlexItem>
131
- </Flex>
132
- </Card.Body>
133
- </Card>
134
- {/* END PLANET MONEY */}
135
- {/* START WORLD CARD */}
136
- <Card padding="none">
137
- <Card.Header categoryColor={2}>
138
- <Caption
139
- dark
140
- text="World"
141
- />
142
- </Card.Header>
143
- <Card.Body padding="none">
144
- <Image url="https://djenjyj46f9j9.cloudfront.net/items/0n07340O0c3R0V0L1V0P/Screen%20Shot%202020-07-09%20at%201.41.26%20PM.png?X-CloudApp-Visitor-Id=3399053&v=b532b3f0" />
145
- <Title
146
- paddingLeft="sm"
147
- paddingTop="sm"
148
- size={4}
149
- tag="h4"
150
- text="U.K. Willing To Admit 3 Million If China Adopts Security Law"
151
- />
152
- <SectionSeparator paddingY="sm" />
153
- <Flex
154
- orientation="row"
155
- paddingBottom="sm"
156
- paddingX="sm"
157
- wrap
158
- >
159
- <FlexItem paddingRight="sm">
160
- { <IconValue
161
- icon="share-alt"
162
- text="304"
163
- /> }
164
- </FlexItem>
165
- <FlexItem paddingRight="sm">
166
- { <IconValue
167
- icon="eye"
168
- text="5,032"
169
- /> }
170
- </FlexItem>
171
- <FlexItem>
172
- { <IconValue
173
- icon="comments"
174
- text="102"
175
- /> }
176
- </FlexItem>
177
- </Flex>
178
- </Card.Body>
179
- </Card>
180
- {/* END WORLD CARD */}
181
- {/* START BOOKS CARD */}
182
- <Card padding="none">
183
- <Card.Header categoryColor={3}>
184
- <Caption
185
- dark
186
- text="Books"
187
- />
188
- </Card.Header>
189
- <Card.Body padding="none">
190
- <Image url="https://djenjyj46f9j9.cloudfront.net/items/1j2k1g3f2H2W2f1v3225/Screen%20Shot%202020-07-09%20at%201.42.32%20PM.png?X-CloudApp-Visitor-Id=3399053&v=2ab46cb6" />
191
- <Title
192
- paddingLeft="sm"
193
- paddingTop="sm"
194
- size={4}
195
- tag="h4"
196
- text="Opinion: Harry Potter's Magic Fades When His Creator Tweets"
197
- />
198
- <SectionSeparator paddingY="sm" />
199
- <Flex
200
- orientation="row"
201
- paddingBottom="sm"
202
- paddingX="sm"
203
- wrap
204
- >
205
- <FlexItem paddingRight="sm">
206
- { <IconValue
207
- icon="share-alt"
208
- text="201"
209
- /> }
210
- </FlexItem>
211
- <FlexItem paddingRight="sm">
212
- { <IconValue
213
- icon="eye"
214
- text="890"
215
- /> }
216
- </FlexItem>
217
- <FlexItem>
218
- { <IconValue
219
- icon="comments"
220
- text="2"
221
- /> }
222
- </FlexItem>
223
- </Flex>
224
- </Card.Body>
225
- </Card>
226
- {/* END BOOKS CARD */}
227
- {/* START NATIONAL CARD */}
228
- <Card padding="none">
229
- <Card.Header categoryColor={4}>
230
- <Caption
231
- dark
232
- text="National"
233
- />
234
- </Card.Header>
235
- <Card.Body padding="none">
236
- <Image url="https://djenjyj46f9j9.cloudfront.net/items/2j0G2k3I0f3W3a2c2q3o/Screen%20Shot%202020-07-09%20at%201.43.40%20PM.png?X-CloudApp-Visitor-Id=3399053&v=d2667a0b" />
237
- <Title
238
- paddingTop="sm"
239
- paddingX="sm"
240
- size={4}
241
- tag="h4"
242
- text="1st U.S. Woman To Walk In Space Dives To Deepest Point In Ocean"
243
- />
244
- <SectionSeparator paddingY="sm" />
245
- <Flex
246
- orientation="row"
247
- paddingBottom="sm"
248
- paddingX="sm"
249
- wrap
250
- >
251
- <FlexItem paddingRight="sm">
252
- { <IconValue
253
- icon="share-alt"
254
- text="245"
255
- /> }
256
- </FlexItem>
257
- <FlexItem paddingRight="sm">
258
- { <IconValue
259
- icon="eye"
260
- text="10,302"
261
- /> }
262
- </FlexItem>
263
- <FlexItem>
264
- { <IconValue
265
- icon="comments"
266
- text="89"
267
- /> }
268
- </FlexItem>
269
- </Flex>
270
- </Card.Body>
271
- </Card>
272
- {/* END NATIONAL CARD */}
273
- {/* START BOOKS, NEWS, AND FEATURES CARD */}
274
- <Card padding="none">
275
- <Card.Header categoryColor={5}>
276
- <Caption
277
- dark
278
- text="Books, News, and Features"
279
- />
280
- </Card.Header>
281
- <Card.Body padding="none">
282
- <Image url="https://djenjyj46f9j9.cloudfront.net/items/0m353s3A3I3B0w3N3W2U/Screen%20Shot%202020-07-09%20at%201.44.30%20PM.png?X-CloudApp-Visitor-Id=3399053&v=5b24787c" />
283
- <Title
284
- paddingLeft="sm"
285
- paddingTop="sm"
286
- size={4}
287
- tag="h4"
288
- text="Publishers Sue Internet Archive For Mass Copyright Infringement"
289
- />
290
- <SectionSeparator paddingY="sm" />
291
- <Flex
292
- orientation="row"
293
- paddingBottom="sm"
294
- paddingX="sm"
295
- wrap
296
- >
297
- <FlexItem paddingRight="sm">
298
- { <IconValue
299
- icon="share-alt"
300
- text="84"
301
- /> }
302
- </FlexItem>
303
- <FlexItem paddingRight="sm">
304
- { <IconValue
305
- icon="eye"
306
- text="5,592"
307
- /> }
308
- </FlexItem>
309
- <FlexItem>
310
- { <IconValue
311
- icon="comments"
312
- text="104"
313
- /> }
314
- </FlexItem>
315
- </Flex>
316
- </Card.Body>
317
- </Card>
318
- {/* END BOOKS, NEWS, AND FEATURES CARD */}
319
- {/* START SCIENCE CARD */}
320
- <Card padding="none">
321
- <Card.Header categoryColor={6}>
322
- <Caption
323
- dark
324
- text="Science"
325
- />
326
- </Card.Header>
327
- <Card.Body padding="none">
328
- <Image url="https://djenjyj46f9j9.cloudfront.net/items/0n1b1V1F4614343t3547/Screen%20Shot%202020-07-09%20at%201.45.26%20PM.png?X-CloudApp-Visitor-Id=3399053&v=a3cc4d20" />
329
- <Title
330
- paddingLeft="sm"
331
- paddingTop="sm"
332
- size={4}
333
- tag="h4"
334
- text="New Book Argues Migration Isn’t A Crisis — It’s The Solution"
335
- />
336
- <SectionSeparator paddingY="sm" />
337
- <Flex
338
- orientation="row"
339
- paddingBottom="sm"
340
- paddingX="sm"
341
- wrap
342
- >
343
- <FlexItem paddingRight="sm">
344
- { <IconValue
345
- icon="share-alt"
346
- text="54"
347
- /> }
348
- </FlexItem>
349
- <FlexItem paddingRight="sm">
350
- { <IconValue
351
- icon="eye"
352
- text="3,982"
353
- /> }
354
- </FlexItem>
355
- <FlexItem>
356
- { <IconValue
357
- icon="comments"
358
- text="12"
359
- /> }
360
- </FlexItem>
361
- </Flex>
362
- </Card.Body>
363
- </Card>
364
- {/* END SCIENCE CARD */}
365
-
366
- </Layout.Body>
367
-
368
- </Layout>
369
-
370
- </div>
371
- )
372
- export default CollectionDetail
@@ -1,81 +0,0 @@
1
- <%= pb_rails("layout", props: {full: true, position: "left", size: "xl", collapse: "md"}) do %>
2
- <%= pb_rails("layout/sidebar") do %>
3
- <br>
4
- <%= pb_rails("user", props: {
5
- name: "Jon Zazula",
6
- title: "User Experience Designer",
7
- orientation: "horizontal",
8
- align: "left",
9
- margin_left: "md",
10
- size: "md",
11
- avatar_url: "https://s3-hq-f5.powerhrg.com/nitro-production/avatars/55553/badge/business-technology-jonathan-zazula.jpg?AWSAccessKeyId=IWSW00NEQHMEYQTLZ7E9&Signature=S0EN3l5sfIr7yk442Q2MeledXGc%3D&Expires=3161514974"
12
- }) %>
13
-
14
- <br>
15
- <hr style="height:1px;border:none;color:#e4e8f0;background-color:#e4e8f0;margin: 15px;" />
16
-
17
- <%= pb_rails("nav", props: {variant: "subtle"}) do %>
18
- <%= pb_rails("nav/item", props: { icon_left: "city", text: "City", link: "#" }) %>
19
- <%= pb_rails("nav/item", props: { icon_left: "user-friends", text: "People", link: "#", icon_right: "angle-down" }) %>
20
- <%= pb_rails("nav/item", props: { icon_left: "user-tie", text: "Growth Dashboard", link: "#", active: true }) %>
21
- <%= pb_rails("nav/item", props: { icon_left: "clock", text: "History", link: "#" }) %>
22
- <%= pb_rails("nav/item", props: { icon_left: "clipboard", text: "Memos", link: "#", icon_right: "angle-down" }) %>
23
- <%= pb_rails("nav/item", props: { icon_left: "phone", text: "Contacts", link: "#" }) %>
24
- <% end %>
25
- <% end %>
26
-
27
- <%= pb_rails("layout/body") do %>
28
-
29
- <% data = [{
30
- name: 'Installation',
31
- data: [154175]
32
- }, {
33
- name: 'Manufacturing',
34
- data: [40434]
35
- }, {
36
- name: 'Sales & Distribution',
37
- data: [39387]
38
- }, {
39
- name: 'Project Development',
40
- data: [34227]
41
- }, {
42
- name: 'Other',
43
- data: [18111]
44
- }] %>
45
-
46
- <%= pb_rails("bar_graph", props: {
47
- axis_title: 'Number of Employees',
48
- chart_data: data,
49
- id: "bar-test",
50
- point_start: 2012,
51
- subtitle: 'Source: thesolarfoundation.com',
52
- title: 'Solar Employment Growth by Sector, 2010-2016',
53
- padding_top: "md"
54
- }) %>
55
-
56
- <% data2 = [{
57
- name: 'Installation',
58
- data: [43934, 52503, 57177, 69658, 97031, 119931, 137133, 154175]
59
- }, {
60
- name: 'Manufacturing',
61
- data: [24916, 24064, 29742, 29851, 32490, 30282, 38121, 40434]
62
- }, {
63
- name: 'Sales & Distribution',
64
- data: [11744, 17722, 16005, 19771, 20185, 24377, 32147, 39387]
65
- }, {
66
- name: 'Project Development',
67
- data: [nil, nil, 7988, 12169, 15112, 22452, 34400, 34227]
68
- }, {
69
- name: 'Other',
70
- data: [12908, 5948, 8105, 11248, 8989, 11816, 18274, 18111]
71
- }] %>
72
-
73
- <%= pb_rails("line_graph", props: { id: "line-test", gradient: false, chart_data: data2, point_start: 1, title: 'Solar Employment Growth by Sector, 2010-2016', subtitle: 'Source: thesolarfoundation.com', axis_title: 'Number of Employees' } ) %>
74
- <% end %>
75
- <% end %>
76
-
77
-
78
-
79
-
80
-
81
-