playbook_ui 7.0.1.pre.alpha9 → 7.0.1.pre.alpha15

Sign up to get free protection for your applications and to get access to all the features.
Files changed (320) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -6
  3. data/app/controllers/playbook/application_controller.rb +2 -3
  4. data/app/helpers/playbook/pb_kit_helper.rb +2 -2
  5. data/app/pb_kits/playbook/_playbook.scss +1 -0
  6. data/app/pb_kits/playbook/data/menu.yml +4 -3
  7. data/app/pb_kits/playbook/index.js +6 -0
  8. data/app/pb_kits/playbook/pb_avatar/_avatar.jsx +5 -1
  9. data/app/pb_kits/playbook/pb_badge/_badge.jsx +4 -2
  10. data/app/pb_kits/playbook/pb_bar_graph/_bar_graph.html.erb +1 -12
  11. data/app/pb_kits/playbook/pb_bar_graph/_bar_graph.jsx +1 -1
  12. data/app/pb_kits/playbook/pb_bar_graph/bar_graph.rb +1 -1
  13. data/app/pb_kits/playbook/pb_body/body.rb +1 -1
  14. data/app/pb_kits/playbook/pb_button/_button.jsx +5 -1
  15. data/app/pb_kits/playbook/pb_button/_button_mixins.scss +1 -0
  16. data/app/pb_kits/playbook/pb_button_toolbar/_button_toolbar.jsx +7 -3
  17. data/app/pb_kits/playbook/pb_button_toolbar/_button_toolbar.scss +82 -90
  18. data/app/pb_kits/playbook/pb_button_toolbar/_button_toolbar_dark.scss +57 -0
  19. data/app/pb_kits/playbook/pb_button_toolbar/_button_toolbar_mixins.scss +27 -0
  20. data/app/pb_kits/playbook/pb_button_toolbar/button_toolbar.rb +4 -2
  21. data/app/pb_kits/playbook/pb_button_toolbar/docs/_button_toolbar_default.html.erb +17 -7
  22. data/app/pb_kits/playbook/pb_button_toolbar/docs/_button_toolbar_default.jsx +32 -9
  23. data/app/pb_kits/playbook/pb_button_toolbar/docs/_button_toolbar_secondary.html.erb +18 -7
  24. data/app/pb_kits/playbook/pb_button_toolbar/docs/_button_toolbar_secondary.jsx +37 -9
  25. data/app/pb_kits/playbook/pb_button_toolbar/docs/example.yml +3 -7
  26. data/app/pb_kits/playbook/pb_button_toolbar/docs/index.js +0 -2
  27. data/app/pb_kits/playbook/pb_caption/_caption.html.erb +7 -5
  28. data/app/pb_kits/playbook/pb_caption/_caption.jsx +2 -2
  29. data/app/pb_kits/playbook/pb_caption/docs/_caption_block.html.erb +11 -0
  30. data/app/pb_kits/playbook/pb_caption/docs/_caption_block.jsx +28 -0
  31. data/app/pb_kits/playbook/pb_caption/docs/example.yml +2 -0
  32. data/app/pb_kits/playbook/pb_caption/docs/index.js +1 -0
  33. data/app/pb_kits/playbook/pb_checkbox/_checkbox.jsx +5 -2
  34. data/app/pb_kits/playbook/pb_checkbox/checkbox.rb +3 -1
  35. data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_options.html.erb +10 -0
  36. data/app/pb_kits/playbook/pb_checkbox/docs/example.yml +1 -0
  37. data/app/pb_kits/playbook/pb_circle_chart/_circle_chart.html.erb +1 -1
  38. data/app/pb_kits/playbook/pb_circle_chart/_circle_chart.jsx +130 -0
  39. data/app/pb_kits/playbook/pb_circle_chart/_circle_chart.scss +1 -1
  40. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_block.jsx +39 -0
  41. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_colors.jsx +29 -0
  42. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_default.jsx +28 -0
  43. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_inner_sizes.jsx +117 -0
  44. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_live_data.jsx +53 -0
  45. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_rounded.jsx +30 -0
  46. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_labels.jsx +45 -0
  47. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_legend_kit.jsx +30 -0
  48. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_title.jsx +45 -0
  49. data/app/pb_kits/playbook/pb_circle_chart/docs/example.yml +11 -0
  50. data/app/pb_kits/playbook/pb_circle_chart/docs/index.js +9 -0
  51. data/app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.jsx +5 -1
  52. data/app/pb_kits/playbook/pb_contact/_contact.jsx +5 -1
  53. data/app/pb_kits/playbook/pb_currency/_currency.jsx +5 -1
  54. data/app/pb_kits/playbook/pb_dashboard_value/_dashboard_value.jsx +5 -1
  55. data/app/pb_kits/playbook/pb_date/date.rb +2 -1
  56. data/app/pb_kits/playbook/pb_date/docs/_date_default.html.erb +8 -1
  57. data/app/pb_kits/playbook/pb_date/docs/_date_timezone.html.erb +51 -0
  58. data/app/pb_kits/playbook/pb_date/docs/_date_timezone.md +6 -0
  59. data/app/pb_kits/playbook/pb_date/docs/_description.md +2 -0
  60. data/app/pb_kits/playbook/pb_date/docs/example.yml +1 -0
  61. data/app/pb_kits/playbook/pb_date_picker/_date_picker.html.erb +1 -2
  62. data/app/pb_kits/playbook/pb_date_picker/_date_picker.jsx +8 -7
  63. data/app/pb_kits/playbook/pb_date_picker/_date_picker.scss +0 -4
  64. data/app/pb_kits/playbook/pb_date_picker/date_picker.rb +6 -5
  65. data/app/pb_kits/playbook/pb_date_picker/date_picker_helper.js +41 -41
  66. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_default_date.html.erb +1 -2
  67. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_default_date.jsx +1 -2
  68. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_default_date.md +1 -0
  69. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_format.html.erb +4 -0
  70. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_format.jsx +4 -0
  71. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_input.html.erb +9 -9
  72. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_input.jsx +8 -8
  73. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_input.md +3 -1
  74. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_on_change.jsx +34 -0
  75. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_on_change.md +3 -0
  76. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_range.html.erb +1 -0
  77. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_range.jsx +1 -0
  78. data/app/pb_kits/playbook/pb_date_picker/docs/example.yml +1 -4
  79. data/app/pb_kits/playbook/pb_date_picker/docs/index.js +1 -2
  80. data/app/pb_kits/playbook/pb_date_picker/sass_partials/_calendar_input_icon.scss +1 -0
  81. data/app/pb_kits/playbook/pb_date_range_inline/_date_range_inline.html.erb +8 -14
  82. data/app/pb_kits/playbook/pb_date_range_inline/_date_range_inline.jsx +122 -39
  83. data/app/pb_kits/playbook/pb_date_range_inline/_date_range_inline.scss +33 -2
  84. data/app/pb_kits/playbook/pb_date_range_inline/date_range_inline.rb +44 -9
  85. data/app/pb_kits/playbook/pb_date_range_inline/docs/_date_range_inline_default.html.erb +14 -1
  86. data/app/pb_kits/playbook/pb_date_range_inline/docs/_date_range_inline_default.jsx +45 -1
  87. data/app/pb_kits/playbook/pb_date_range_stacked/_date_range_stacked.jsx +5 -1
  88. data/app/pb_kits/playbook/pb_date_stacked/_date_stacked.jsx +2 -2
  89. data/app/pb_kits/playbook/pb_date_year_stacked/_date_year_stacked.jsx +5 -1
  90. data/app/pb_kits/playbook/pb_distribution_bar/_distribution_bar.html.erb +1 -8
  91. data/app/pb_kits/playbook/pb_distribution_bar/distribution_bar.rb +7 -0
  92. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.html.erb +3 -2
  93. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.jsx +31 -17
  94. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.scss +10 -0
  95. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_close.html.erb +21 -0
  96. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_close.jsx +38 -0
  97. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_default.html.erb +2 -1
  98. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_default.jsx +1 -2
  99. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_multi_line.html.erb +1 -1
  100. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_multi_line.jsx +1 -1
  101. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_multi_line_dark.html.erb +1 -1
  102. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_multi_line_dark.jsx +1 -1
  103. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/example.yml +2 -0
  104. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/index.js +1 -0
  105. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/fixed_confirmation_toast.rb +7 -1
  106. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/index.js +18 -0
  107. data/app/pb_kits/playbook/pb_flex/_flex.jsx +2 -2
  108. data/app/pb_kits/playbook/pb_flex/_flex_item.jsx +1 -1
  109. data/app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb +10 -2
  110. data/app/pb_kits/playbook/pb_form/docs/_form_form_with_validate.html.erb +1 -1
  111. data/app/pb_kits/playbook/pb_form/docs/_form_simple_form.html.erb +3 -3
  112. data/app/pb_kits/playbook/pb_form/docs/_form_simple_form_validate.html.erb +3 -3
  113. data/app/pb_kits/playbook/pb_form/form_builder/checkbox_field.rb +7 -2
  114. data/app/pb_kits/playbook/pb_form/form_builder/date_picker_field.rb +1 -0
  115. data/app/pb_kits/playbook/pb_form_pill/_form_pill.jsx +3 -2
  116. data/app/pb_kits/playbook/pb_gauge/_gauge.jsx +1 -1
  117. data/app/pb_kits/playbook/pb_highlight/_highlight.jsx +1 -1
  118. data/app/pb_kits/playbook/pb_home_address_street/_home_address_street.jsx +2 -2
  119. data/app/pb_kits/playbook/pb_icon/_icon.jsx +2 -2
  120. data/app/pb_kits/playbook/pb_icon_value/_icon_value.jsx +5 -1
  121. data/app/pb_kits/playbook/pb_image/_image.jsx +5 -1
  122. data/app/pb_kits/playbook/pb_label_pill/_label_pill.jsx +5 -1
  123. data/app/pb_kits/playbook/pb_layout/_layout.jsx +4 -4
  124. data/app/pb_kits/playbook/pb_line_graph/_line_graph.html.erb +1 -13
  125. data/app/pb_kits/playbook/pb_line_graph/_line_graph.jsx +1 -1
  126. data/app/pb_kits/playbook/pb_line_graph/line_graph.rb +1 -1
  127. data/app/pb_kits/playbook/pb_list/_list.jsx +3 -2
  128. data/app/pb_kits/playbook/pb_list/_list_item.jsx +3 -2
  129. data/app/pb_kits/playbook/pb_logistic/_logistic.jsx +5 -1
  130. data/app/pb_kits/playbook/pb_message/_message.jsx +5 -1
  131. data/app/pb_kits/playbook/pb_multiple_users/_multiple_users.jsx +5 -2
  132. data/app/pb_kits/playbook/pb_nav/_nav.jsx +2 -2
  133. data/app/pb_kits/playbook/pb_person/_person.jsx +5 -1
  134. data/app/pb_kits/playbook/pb_person_contact/_person_contact.jsx +12 -7
  135. data/app/pb_kits/playbook/pb_person_contact/docs/_person_contact_with_wrong_numbers.jsx +1 -0
  136. data/app/pb_kits/playbook/pb_popover/_popover.jsx +5 -1
  137. data/app/pb_kits/playbook/pb_popover/_popover.scss +6 -4
  138. data/app/pb_kits/playbook/pb_popover/index.js +3 -1
  139. data/app/pb_kits/playbook/pb_progress_simple/_progress_simple.jsx +4 -4
  140. data/app/pb_kits/playbook/pb_progress_step/_progress_step.jsx +4 -1
  141. data/app/pb_kits/playbook/pb_progress_step/_progress_step.scss +168 -33
  142. data/app/pb_kits/playbook/pb_progress_step/_progress_step_item.html.erb +3 -1
  143. data/app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx +10 -8
  144. data/app/pb_kits/playbook/pb_progress_step/docs/_description.md +1 -1
  145. data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_default.html.erb +14 -16
  146. data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_default.jsx +6 -3
  147. data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_tracker.html.erb +17 -1
  148. data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_tracker.jsx +17 -1
  149. data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_vertical.jsx +10 -3
  150. data/app/pb_kits/playbook/pb_progress_step/progress_step.rb +11 -1
  151. data/app/pb_kits/playbook/pb_progress_step/progress_step_item.rb +1 -1
  152. data/app/pb_kits/playbook/pb_radio/_radio.html.erb +1 -1
  153. data/app/pb_kits/playbook/pb_radio/docs/_radio_options.html.erb +9 -0
  154. data/app/pb_kits/playbook/pb_radio/docs/example.yml +1 -0
  155. data/app/pb_kits/playbook/pb_radio/radio.rb +2 -4
  156. data/app/pb_kits/playbook/pb_section_separator/_section_separator.jsx +1 -1
  157. data/app/pb_kits/playbook/pb_select/_select.scss +1 -1
  158. data/app/pb_kits/playbook/pb_stat_change/_stat_change.jsx +2 -2
  159. data/app/pb_kits/playbook/pb_stat_value/_stat_value.jsx +3 -3
  160. data/app/pb_kits/playbook/pb_stat_value/docs/_stat_value_default.jsx +6 -1
  161. data/app/pb_kits/playbook/pb_table/_table.jsx +2 -2
  162. data/app/pb_kits/playbook/pb_table/docs/_table_action_middle.html.erb +34 -0
  163. data/app/pb_kits/playbook/pb_table/docs/_table_action_middle.jsx +68 -0
  164. data/app/pb_kits/playbook/pb_table/docs/_table_action_middle.md +2 -0
  165. data/app/pb_kits/playbook/pb_table/docs/_table_icon_buttons.html.erb +61 -0
  166. data/app/pb_kits/playbook/pb_table/docs/_table_icon_buttons.jsx +89 -0
  167. data/app/pb_kits/playbook/pb_table/docs/_table_icon_buttons.md +1 -0
  168. data/app/pb_kits/playbook/pb_table/docs/_table_one_action.html.erb +34 -0
  169. data/app/pb_kits/playbook/pb_table/docs/_table_one_action.jsx +68 -0
  170. data/app/pb_kits/playbook/pb_table/docs/_table_one_action.md +2 -0
  171. data/app/pb_kits/playbook/pb_table/docs/_table_two_actions.html.erb +43 -0
  172. data/app/pb_kits/playbook/pb_table/docs/_table_two_actions.jsx +80 -0
  173. data/app/pb_kits/playbook/pb_table/docs/_table_two_actions.md +1 -0
  174. data/app/pb_kits/playbook/pb_table/docs/_table_two_plus_actions.html.erb +34 -0
  175. data/app/pb_kits/playbook/pb_table/docs/_table_two_plus_actions.jsx +63 -0
  176. data/app/pb_kits/playbook/pb_table/docs/_table_two_plus_actions.md +1 -0
  177. data/app/pb_kits/playbook/pb_table/docs/example.yml +12 -0
  178. data/app/pb_kits/playbook/pb_table/docs/index.js +6 -0
  179. data/app/pb_kits/playbook/pb_text_input/_text_input.jsx +1 -1
  180. data/app/pb_kits/playbook/pb_text_input/_text_input.scss +17 -8
  181. data/app/pb_kits/playbook/pb_textarea/_textarea.jsx +1 -1
  182. data/app/pb_kits/playbook/pb_time/_time.html.erb +24 -21
  183. data/app/pb_kits/playbook/pb_time/_time.jsx +45 -23
  184. data/app/pb_kits/playbook/pb_time/_time.scss +7 -19
  185. data/app/pb_kits/playbook/pb_time/docs/_time_align.html.erb +18 -0
  186. data/app/pb_kits/playbook/pb_time/docs/_time_align.jsx +7 -4
  187. data/app/pb_kits/playbook/pb_time/docs/_time_default.html.erb +47 -3
  188. data/app/pb_kits/playbook/pb_time/docs/_time_default.jsx +46 -5
  189. data/app/pb_kits/playbook/pb_time/docs/_time_sizes.html.erb +11 -0
  190. data/app/pb_kits/playbook/pb_time/docs/_time_sizes.jsx +22 -0
  191. data/app/pb_kits/playbook/pb_time/docs/_time_timestamp.html.erb +3 -1
  192. data/app/pb_kits/playbook/pb_time/docs/_time_timestamp.jsx +3 -8
  193. data/app/pb_kits/playbook/pb_time/docs/_time_timezone.html.erb +38 -0
  194. data/app/pb_kits/playbook/pb_time/docs/_time_timezone.jsx +19 -16
  195. data/app/pb_kits/playbook/pb_time/docs/example.yml +6 -2
  196. data/app/pb_kits/playbook/pb_time/docs/index.js +1 -0
  197. data/app/pb_kits/playbook/pb_time/time.rb +14 -2
  198. data/app/pb_kits/playbook/pb_time_range_inline/_time_range_inline.jsx +1 -1
  199. data/app/pb_kits/playbook/pb_time_range_inline/_time_range_inline.scss +5 -5
  200. data/app/pb_kits/playbook/pb_time_stacked/_time_stacked.jsx +3 -3
  201. data/app/pb_kits/playbook/pb_timestamp/_timestamp.jsx +1 -1
  202. data/app/pb_kits/playbook/pb_title/_title.jsx +5 -1
  203. data/app/pb_kits/playbook/pb_title_count/_title_count.jsx +5 -1
  204. data/app/pb_kits/playbook/pb_title_detail/_title_detail.jsx +5 -5
  205. data/app/pb_kits/playbook/pb_toggle/_toggle.jsx +3 -3
  206. data/app/pb_kits/playbook/pb_toggle/_toggle.scss +41 -43
  207. data/app/pb_kits/playbook/pb_toggle/docs/_toggle_options.html.erb +10 -0
  208. data/app/pb_kits/playbook/pb_toggle/docs/example.yml +1 -2
  209. data/app/pb_kits/playbook/pb_toggle/docs/index.js +0 -1
  210. data/app/pb_kits/playbook/pb_toggle/toggle.rb +5 -2
  211. data/app/pb_kits/playbook/pb_typeahead/_typeahead.html.erb +24 -20
  212. data/app/pb_kits/playbook/pb_typeahead/_typeahead.jsx +78 -0
  213. data/app/pb_kits/playbook/pb_typeahead/_typeahead.scss +20 -3
  214. data/app/pb_kits/playbook/pb_typeahead/components/Control.jsx +30 -0
  215. data/app/pb_kits/playbook/pb_typeahead/components/IndicatorsContainer.jsx +13 -0
  216. data/app/pb_kits/playbook/pb_typeahead/components/MenuList.jsx +12 -0
  217. data/app/pb_kits/playbook/pb_typeahead/components/MultiValue.jsx +58 -0
  218. data/app/pb_kits/playbook/pb_typeahead/components/Option.jsx +42 -0
  219. data/app/pb_kits/playbook/pb_typeahead/components/Placeholder.jsx +13 -0
  220. data/app/pb_kits/playbook/pb_typeahead/components/ValueContainer.jsx +13 -0
  221. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_default.html.erb +1 -1
  222. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_default.jsx +22 -0
  223. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_context_dark.html.erb +1 -1
  224. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills.html.erb +25 -0
  225. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills.jsx +26 -0
  226. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills.md +8 -0
  227. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async.html.erb +30 -0
  228. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async.jsx +84 -0
  229. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async.md +11 -0
  230. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async_users.html.erb +25 -0
  231. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async_users.jsx +98 -0
  232. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async_users.md +1 -0
  233. data/app/pb_kits/playbook/pb_typeahead/docs/example.yml +11 -2
  234. data/app/pb_kits/playbook/pb_typeahead/docs/index.js +4 -0
  235. data/app/pb_kits/playbook/pb_typeahead/typeahead.rb +24 -1
  236. data/app/pb_kits/playbook/pb_user_badge/_user_badge.jsx +5 -2
  237. data/app/pb_kits/playbook/plugins/pb_chart.js +1 -1
  238. data/app/pb_kits/playbook/react_rails_kits.js +6 -0
  239. data/app/pb_kits/playbook/tokens/_colors.scss +22 -23
  240. data/app/pb_kits/playbook/tokens/_typography.scss +7 -7
  241. data/app/pb_kits/playbook/tokens/index.scss +11 -0
  242. data/app/pb_kits/playbook/vendor.js +8 -0
  243. data/lib/generators/kit/kit_generator.rb +1 -1
  244. data/lib/generators/kit/templates/kit_jsx.erb.tt +1 -1
  245. data/lib/playbook/engine.rb +1 -0
  246. data/lib/playbook/version.rb +1 -1
  247. data/lib/tasks/changelog.rake +14 -0
  248. data/lib/tasks/pb_release.rake +14 -3
  249. metadata +70 -74
  250. data/app/controllers/playbook/guides_controller.rb +0 -11
  251. data/app/controllers/playbook/pages_controller.rb +0 -94
  252. data/app/controllers/playbook/samples_controller.rb +0 -40
  253. data/app/pb_kits/playbook/packs/application.js +0 -55
  254. data/app/pb_kits/playbook/packs/examples.js +0 -176
  255. data/app/pb_kits/playbook/packs/main.scss +0 -12
  256. data/app/pb_kits/playbook/packs/samples.js +0 -21
  257. data/app/pb_kits/playbook/packs/site_styles/_samples.scss +0 -72
  258. data/app/pb_kits/playbook/packs/site_styles/_scaffold.scss +0 -43
  259. data/app/pb_kits/playbook/packs/site_styles/_site-style.scss +0 -146
  260. data/app/pb_kits/playbook/packs/site_styles/docs/_all.scss +0 -10
  261. data/app/pb_kits/playbook/packs/site_styles/docs/_bg_light_doc_example.scss +0 -7
  262. data/app/pb_kits/playbook/packs/site_styles/docs/_code_snippet.scss +0 -531
  263. data/app/pb_kits/playbook/packs/site_styles/docs/_color_utilities.scss +0 -92
  264. data/app/pb_kits/playbook/packs/site_styles/docs/_flex_examples.scss +0 -15
  265. data/app/pb_kits/playbook/packs/site_styles/docs/_kit_doc.scss +0 -132
  266. data/app/pb_kits/playbook/packs/site_styles/docs/_kits_examples.scss +0 -15
  267. data/app/pb_kits/playbook/packs/site_styles/docs/_markdown.scss +0 -88
  268. data/app/pb_kits/playbook/packs/site_styles/docs/_spacing_tokens.scss +0 -72
  269. data/app/pb_kits/playbook/pb_button_toolbar/docs/_button_toolbar_vertical.html.erb +0 -11
  270. data/app/pb_kits/playbook/pb_button_toolbar/docs/_button_toolbar_vertical.jsx +0 -29
  271. data/app/pb_kits/playbook/pb_button_toolbar/docs/_button_toolbar_vertical_secondary.html.erb +0 -11
  272. data/app/pb_kits/playbook/pb_button_toolbar/docs/_button_toolbar_vertical_secondary.jsx +0 -34
  273. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_dark.html.erb +0 -4
  274. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_dark.jsx +0 -13
  275. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_read_only.html.erb +0 -4
  276. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_read_only.jsx +0 -13
  277. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_read_only.md +0 -1
  278. data/app/pb_kits/playbook/pb_toggle/docs/_toggle_size.html.erb +0 -11
  279. data/app/pb_kits/playbook/pb_toggle/docs/_toggle_size.jsx +0 -44
  280. data/app/views/layouts/playbook/_mobile_hamburger.html.erb +0 -2
  281. data/app/views/layouts/playbook/_nav.html.erb +0 -34
  282. data/app/views/layouts/playbook/_sidebar.html.erb +0 -51
  283. data/app/views/layouts/playbook/application.html.erb +0 -26
  284. data/app/views/layouts/playbook/fullscreen.html.slim +0 -10
  285. data/app/views/layouts/playbook/grid.html.slim +0 -10
  286. data/app/views/layouts/playbook/samples.html.erb +0 -19
  287. data/app/views/playbook/guides/create_kit.html.slim +0 -16
  288. data/app/views/playbook/guides/create_kit/_file_naming.html.md +0 -2
  289. data/app/views/playbook/guides/create_kit/_generator.html.md +0 -6
  290. data/app/views/playbook/guides/create_kit/_kit_examples.html.md +0 -2
  291. data/app/views/playbook/guides/create_kit/_kit_rails.html.md +0 -2
  292. data/app/views/playbook/guides/create_kit/_kit_react.html.md +0 -2
  293. data/app/views/playbook/guides/create_kit/_layout.html.md +0 -2
  294. data/app/views/playbook/guides/create_kit/_view_objects.html.md +0 -2
  295. data/app/views/playbook/guides/create_kit/_writing_sass.md +0 -10
  296. data/app/views/playbook/guides/use_nitro.html.slim +0 -6
  297. data/app/views/playbook/guides/use_nitro/_local.html.md +0 -2
  298. data/app/views/playbook/guides/use_nitro/_nitro_components.html.md +0 -2
  299. data/app/views/playbook/guides/use_nitro/_versions.html.md +0 -2
  300. data/app/views/playbook/pages/fullscreen.html.slim +0 -10
  301. data/app/views/playbook/pages/grid.html.slim +0 -2
  302. data/app/views/playbook/pages/home.html.slim +0 -4
  303. data/app/views/playbook/pages/kit_category_show.html.erb +0 -14
  304. data/app/views/playbook/pages/kit_show.html.erb +0 -33
  305. data/app/views/playbook/pages/kits.html.erb +0 -12
  306. data/app/views/playbook/pages/principals/_getting_started.html.md +0 -30
  307. data/app/views/playbook/pages/principles.html.slim +0 -3
  308. data/app/views/playbook/pages/tokens.html.slim +0 -15
  309. data/app/views/playbook/pages/tokens/_pb_doc_spacing.html.slim +0 -61
  310. data/app/views/playbook/pages/utilities.html.slim +0 -116
  311. data/app/views/playbook/pages/utilities/_pb_doc_color.html.slim +0 -15
  312. data/app/views/playbook/samples/collection_detail/index.html.erb +0 -169
  313. data/app/views/playbook/samples/collection_detail/index.jsx +0 -372
  314. data/app/views/playbook/samples/dashboards/index.html.erb +0 -81
  315. data/app/views/playbook/samples/dashboards/index.jsx +0 -130
  316. data/app/views/playbook/samples/filter_table/index.html.erb +0 -348
  317. data/app/views/playbook/samples/filter_table/index.jsx +0 -433
  318. data/app/views/playbook/samples/registration/index.html.erb +0 -316
  319. data/app/views/playbook/samples/registration/index.jsx +0 -476
  320. data/app/views/playbook/samples/sample_show.html.erb +0 -36
@@ -1,11 +0,0 @@
1
- <div class="pb--doc-demo-row">
2
- <div>
3
- <%= pb_rails("button_toolbar", props: { orientation: "vertical", connected: true }) do %>
4
- <%= pb_rails("button", props: { text: "Field", variant: "secondary" }) %>
5
- <%= pb_rails("button", props: { text: "Retail", variant: "secondary" }) %>
6
- <%= pb_rails("button", props: { text: "Event", variant: "secondary" }) %>
7
- <%= pb_rails("button", props: { text: "Training", variant: "secondary" }) %>
8
- <%= pb_rails("button", props: { text: "Not Working", variant: "secondary" }) %>
9
- <% end %>
10
- </div>
11
- </div>
@@ -1,34 +0,0 @@
1
- import React from 'react'
2
- import { Button, ButtonToolbar } from '../..'
3
-
4
- const ButtonToolbarVerticalSecondary = () => (
5
- <div>
6
- <ButtonToolbar
7
- connected
8
- orientation="vertical"
9
- >
10
- <Button
11
- text="Field"
12
- variant="secondary"
13
- />
14
- <Button
15
- text="Retail"
16
- variant="secondary"
17
- />
18
- <Button
19
- text="Event"
20
- variant="secondary"
21
- />
22
- <Button
23
- text="Training"
24
- variant="secondary"
25
- />
26
- <Button
27
- text="Not Working"
28
- variant="secondary"
29
- />
30
- </ButtonToolbar>
31
- </div>
32
- )
33
-
34
- export default ButtonToolbarVerticalSecondary
@@ -1,4 +0,0 @@
1
- <%= pb_rails("date_picker", props: {
2
- dark: true,
3
- picker_id: "date-picker-dark"
4
- }) %>
@@ -1,13 +0,0 @@
1
- import React from 'react'
2
- import { DatePicker } from '../../'
3
-
4
- const DatePickerDark = () => (
5
- <div>
6
- <DatePicker
7
- dark
8
- pickerId="date-picker-dark"
9
- />
10
- </div>
11
- )
12
-
13
- export default DatePickerDark
@@ -1,4 +0,0 @@
1
- <%= pb_rails("date_picker", props: {
2
- read_only: true,
3
- picker_id: "date-picker-read-only"
4
- }) %>
@@ -1,13 +0,0 @@
1
- import React from 'react'
2
- import { DatePicker } from '../../'
3
-
4
- const DatePickerReadOnly = () => (
5
- <div>
6
- <DatePicker
7
- pickerId="date-picker-read-only"
8
- readOnly
9
- />
10
- </div>
11
- )
12
-
13
- export default DatePickerReadOnly
@@ -1 +0,0 @@
1
- Read only inputs do not accept keyboard input. The only way to change the date value is by picking a date on the calendar. Especially useful on mobile as it prevents the keyboard from popping up and obscuring the date picker.
@@ -1,11 +0,0 @@
1
- <%= pb_rails("toggle", props: {
2
- size: "sm",
3
- checked: false
4
- }) %>
5
-
6
- <br>
7
-
8
- <%= pb_rails("toggle", props: {
9
- size: "md",
10
- checked: false
11
- }) %>
@@ -1,44 +0,0 @@
1
- // @flow
2
-
3
- import React, { useState } from 'react'
4
- import { Toggle } from '../..'
5
-
6
- const ToggleSize = () => {
7
- const [choice, setChoice] = useState(false)
8
-
9
- const handleOnChange = ({ target }) => {
10
- setChoice(target.value = !choice)
11
- }
12
-
13
- return (
14
- <>
15
- <Toggle
16
- checked={choice}
17
- size="sm"
18
- >
19
- <input
20
- name="toggleSmall"
21
- onChange={handleOnChange}
22
- type="checkbox"
23
- value="toggleSmall"
24
- />
25
- </Toggle>
26
-
27
- <br />
28
-
29
- <Toggle
30
- checked={choice}
31
- size="md"
32
- >
33
- <input
34
- name="toggleMedium"
35
- onChange={handleOnChange}
36
- type="checkbox"
37
- value="toggleMedium"
38
- />
39
- </Toggle>
40
- </>
41
- )
42
- }
43
-
44
- export default ToggleSize
@@ -1,2 +0,0 @@
1
- <%= pb_rails("icon", props: { icon: "bars", classname: "pb--page--hamburger" }) %>
2
- <input type="checkbox" class="pb--page--checkbox" />
@@ -1,34 +0,0 @@
1
-
2
- <div class="pb--page--topNav <%= cookies[:dark_mode] == "true" ? 'dark' : '' %>">
3
- <%= pb_rails("flex", props:{spacing:"between",vertical: "center"}) do%>
4
- <%= pb_rails("flex", props:{spacing:"between",vertical: "center"}) do%>
5
- <%= link_to root_url do %>
6
- <%= image_tag("pb.logo.svg") %>
7
- <% end %>
8
- <%= pb_rails("caption", props: { tag: "span", text: Playbook::VERSION }) %>
9
- <% end %>
10
- <div id="toggle-modes">
11
- <% if cookies[:dark_mode] == "false" || cookies[:dark_mode] == nil%>
12
- <%= pb_rails("circle_icon_button", props: {
13
- variant: "secondary",
14
- icon: "moon",
15
- tag:"a",
16
- link: enable_dark_mode_path
17
- }) %>
18
- <% else %>
19
- <%= pb_rails("circle_icon_button", props: {
20
- variant: "secondary",
21
- icon: "sun",
22
- tag:"a",
23
- link: disable_dark_mode_path
24
- }) %>
25
- <% end %>
26
- <% end %>
27
- </div>
28
-
29
- </div>
30
- <%= pb_rails("section_separator")%>
31
- <% flash.each do |name, msg| %>
32
- <% name = "success" if name == "notice" %>
33
- <%= pb_rails("fixed_confirmation_toast", props: { text: msg, status: name }) %>
34
- <% end %>
@@ -1,51 +0,0 @@
1
-
2
- <%= pb_rails("nav", props: {
3
- title: "Kits",
4
- link: all_link(@type),
5
- variant: "subtle",
6
- padding_y: "sm"
7
- }) do %>
8
- <% pb_rails("nav/item", props: {
9
- text: "All",
10
- link: all_link(@type),
11
- active: all_active(controller_name, action_name)
12
- }) %>
13
- <% MENU["kits"].each do |link| %>
14
- <% if link.is_a?(Hash) %>
15
- <div class="category_section">
16
- <%= pb_rails("nav/item", props: {
17
- active: category_active(@category, link),
18
- classname: "category",
19
- icon_right: "angle-down",
20
- link: category_link(@type, link)
21
- }) do %>
22
- <%= pb_kit_title(nav_hash_category(link)) %>
23
- <% end %>
24
- <%= pb_rails("nav", props: { variant: "subtle", classname: "sub_category"}) do %>
25
- <% nav_hash_array(link).each do |sub_link| %>
26
- <%= pb_rails("nav/item", props: {
27
- text: pb_kit_title(sub_link),
28
- link: sub_category_link(@type, sub_link),
29
- active: sub_category_active(@kit, sub_link)
30
- }) %>
31
- <% end %>
32
- <% end %>
33
- </div>
34
- <% else %>
35
- <%= pb_rails("nav/item", props: {
36
- text: pb_kit_title(link),
37
- link: kit_link(@type, link),
38
- active: kit_active(@kit, link)
39
- }) %>
40
- <% end %>
41
- <% end %>
42
- <% end %>
43
-
44
- <%= pb_rails("section_separator") %>
45
-
46
- <%= pb_rails("nav", props: {title: "Tokens", link: utilities_path, padding_y:"sm", variant:"subtle"}) do %>
47
- <% color_active = (controller_name == 'pages' && action_name == 'utilities') ? true : false %>
48
- <%= pb_rails("nav/item", props: { text: "Colors", link: utilities_path, active: color_active }) %>
49
- <% spacing_active = (controller_name == 'pages' && action_name == 'tokens') ? true : false %>
50
- <%= pb_rails("nav/item", props: { text: "Spacing", link: tokens_path, active: spacing_active }) %>
51
- <% end %>
@@ -1,26 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title> Playbook Design System </title>
5
- <%= csrf_meta_tags%>
6
- <%= csp_meta_tag%>
7
- <%= stylesheet_packs_with_chunks_tag 'main' %>
8
- <meta content="user-scalable=0, initial-scale=1.0, minimum-scale=1" name="viewport"></meta>
9
- </head>
10
- <body>
11
- <%= render 'layouts/playbook/nav'%>
12
- <%= pb_rails("layout", props: {classname: "pb--page--content",variant: cookies[:dark_mode] == "true" ? 'dark' : 'light' }) do%>
13
- <%= render 'layouts/playbook/mobile_hamburger'%>
14
- <%= pb_rails("layout/sidebar", props: { classname: "pb--page--sideNav"}) do%>
15
- <%= render 'layouts/playbook/sidebar'%>
16
- <% end%>
17
- <%= pb_rails("layout/body") do%>
18
- <div class="pb--page--content--main <%= cookies[:dark_mode] == "true" ? 'dark' : '' %>">
19
- <%= yield %>
20
- </div>
21
- <% end %>
22
- <%end%>
23
- </body>
24
- <%= javascript_include_tag "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.js" %>
25
- <%= javascript_packs_with_chunks_tag 'application', 'examples' %>
26
- <%= yield :pb_js %>
@@ -1,10 +0,0 @@
1
- doctype html
2
- html
3
- head
4
- title Playbook Design System
5
- = csrf_meta_tags
6
- = csp_meta_tag
7
- = stylesheet_packs_with_chunks_tag 'main'
8
- = javascript_packs_with_chunks_tag 'application'
9
- body
10
- = yield
@@ -1,10 +0,0 @@
1
- doctype html
2
- html
3
- head
4
- title Playbook Design System
5
- = csrf_meta_tags
6
- = csp_meta_tag
7
- = stylesheet_packs_with_chunks_tag 'main'
8
- = javascript_packs_with_chunks_tag 'application'
9
- body
10
- = yield
@@ -1,19 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>Full Screen Examples</title>
5
- <%= csrf_meta_tags %>
6
- <%= csp_meta_tag %>
7
- <meta content="user-scalable=0, initial-scale=1.0, minimum-scale=1" name="viewport"/>
8
- <%= stylesheet_packs_with_chunks_tag 'main' %>
9
- </head>
10
- <body>
11
- <div class="sample-layout">
12
- <%= yield %>
13
- </div>
14
- </body>
15
-
16
- <%= javascript_include_tag "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.js" %>
17
- <%= javascript_packs_with_chunks_tag 'application', 'examples', 'samples' %>
18
- <%= yield :pb_js %>
19
- </html>
@@ -1,16 +0,0 @@
1
- .markdown
2
- = render 'playbook/guides/create_kit/generator'
3
- br
4
- = render 'playbook/guides/create_kit/view_objects'
5
- br
6
- = render 'playbook/guides/create_kit/kit_rails'
7
- br
8
- = render 'playbook/guides/create_kit/kit_react'
9
- br
10
- = render 'playbook/guides/create_kit/kit_examples'
11
- br
12
- = render 'playbook/guides/create_kit/file_naming'
13
- br
14
- = render 'playbook/guides/create_kit/layout'
15
- br
16
- = render 'playbook/guides/create_kit/writing_sass'
@@ -1,2 +0,0 @@
1
- ## File Naming
2
- How files should be named
@@ -1,6 +0,0 @@
1
- ## Kit Generator
2
- Create a basic kit through the generator to speed up kit development.
3
-
4
- ```
5
- rails g kit my_new_kit
6
- ```
@@ -1,2 +0,0 @@
1
- ## Examples
2
- Understand how to create examples
@@ -1,2 +0,0 @@
1
- ## Rails Partial
2
- How to setup kit partial
@@ -1,2 +0,0 @@
1
- ## React Component
2
- How to setup kit component for react
@@ -1,2 +0,0 @@
1
- ## Layout and structure
2
- A a kit should be able to function without external utility classes and libraries. A kit should handle layout for it’s children.
@@ -1,2 +0,0 @@
1
- ## View Objects
2
- Understanding view objects
@@ -1,10 +0,0 @@
1
- ## Writing Sass
2
- ---
3
- #### Class names, chaining, and SASS
4
- A kit should be named using prefixed complex classes to try and avoid naming collision and style bleed. Class chaining should be avoided if possible.
5
-
6
- ---
7
-
8
- 1. Use extend a class using & when possible and avoid class chaining when possible.
9
- 2. When you must use a chained class try to avoid setting multiple properties.
10
- 3. If your using chained classes have simple names make sure they don't collide with our utilities, and try to nest them under a parent class to avoid bleed
@@ -1,6 +0,0 @@
1
- .markdown
2
- = render 'playbook/guides/use_nitro/nitro_components'
3
- br
4
- = render 'playbook/guides/use_nitro/local'
5
- br
6
- = render 'playbook/guides/use_nitro/versions'
@@ -1,2 +0,0 @@
1
- ## Local Development
2
- How to use on local development environment
@@ -1,2 +0,0 @@
1
- ## Nitro Components
2
- How to add to Nitro Component
@@ -1,2 +0,0 @@
1
- ## Versions
2
- How to update version
@@ -1,10 +0,0 @@
1
- = pb_rails("layout", props: {full: true, size: "md"})
2
- = pb_rails("layout/sidebar")
3
- h1 Sidebar
4
- = pb_rails("layout/body")
5
-
6
- = pb_rails("layout", props: {position: "right", size: "xl", collapse: "xl", full: true})
7
- = pb_rails("layout/sidebar")
8
- h1 Sidebar
9
- = pb_rails("layout/body")
10
- h1 Body
@@ -1,2 +0,0 @@
1
- h1 Grid Test Example
2
- = pb_react("image", props: {"url": "https://images.unsplash.com/photo-1546554137-f86b9593a222?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=634&q=80"})
@@ -1,4 +0,0 @@
1
-
2
- / PagesController.action_methods
3
-
4
- h1 Welcome to Playbook
@@ -1,14 +0,0 @@
1
- <div class="pb--kits">
2
- <%= pb_rails("title", props: { text: pb_kit_title(@category), tag: "h1", size: 1 }) %>
3
- <br>
4
- <div class="pb--kit-type-nav">
5
- <%= pb_rails("nav", props: { orientation: "horizontal" }) do %>
6
- <%= pb_rails("nav/item", props: { text: "Rails", link: kit_category_show_path(@category, type: 'rails'), active: @type == 'rails' }) %>
7
- <%= pb_rails("nav/item", props: { text: "React", link: kit_category_show_path(@category, type: 'react'), active: @type == 'react' }) %>
8
- <% end %>
9
- <%= pb_rails("section_separator") %>
10
- </div>
11
- <br>
12
- <br>
13
- <%= pb_category_kits(category_kits: @category_kits, type: @type) %>
14
- </div>
@@ -1,33 +0,0 @@
1
- <div class="pb--kit-show <%=@kit%>-kit">
2
- <%= pb_rails("title", props: { text: pb_kit_title(@kit), tag: "h1", size: 1 }) %>
3
- <div class="markdown <%= cookies[:dark_mode] == "true" ? 'dark' : '' %>">
4
- <%= markdown(get_kit_description(@kit)) %>
5
- </div>
6
- </div>
7
- <div>
8
- <div class="pb--kit-type-nav">
9
- <%= pb_rails("nav", props: { orientation: "horizontal" }) do %>
10
- <% if has_kit_type?(@kit, "rails") %>
11
- <%= pb_rails("nav/item", props: { text: "Rails", link: kit_show_rails_path(@kit), active: action_name == 'kit_show_rails' }) %>
12
- <% end %>
13
- <% if has_kit_type?(@kit, "react") %>
14
- <%= pb_rails("nav/item", props: { text: "React", link: kit_show_reacts_path(@kit), active: action_name == 'kit_show_react' }) %>
15
- <% end %>
16
- <% end %>
17
- <%= pb_rails("section_separator") %>
18
- </div>
19
- <% if (action_name == "kit_show_rails") %>
20
- <%= pb_kit(kit: @kit) %>
21
- <div class="markdown <%= cookies[:dark_mode]== "true" ? 'dark' : '' %>">
22
- <br>
23
- <%= markdown(get_kit_footer(@kit)) %>
24
- </div>
25
- <%= pb_kit_api(@kit) %>
26
- <% else %>
27
- <%= pb_kit(kit: @kit, type: "react") %>
28
- <div class="markdown <%= cookies[:dark_mode] == "true" ? 'dark' : '' %>">
29
- <br>
30
- <%= markdown(get_kit_footer(@kit)) %>
31
- </div>
32
- <% end %>
33
- </div>