playbook_ui 6.2.1 → 7.0.0.pre.alpha4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (311) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/playbook/application_controller.rb +0 -2
  3. data/app/helpers/playbook/pb_kit_helper.rb +1 -0
  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 +4 -0
  7. data/app/pb_kits/playbook/pb_avatar_action_button/_avatar_action_button.html.erb +7 -4
  8. data/app/pb_kits/playbook/pb_avatar_action_button/_avatar_action_button.jsx +29 -21
  9. data/app/pb_kits/playbook/pb_avatar_action_button/_avatar_action_button.scss +3 -0
  10. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_actions_dark.html.erb +17 -0
  11. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_actions_dark.jsx +21 -0
  12. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_dark.html.erb +9 -0
  13. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_dark.jsx +14 -0
  14. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_on_click_dark.html.erb +15 -0
  15. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_on_click_dark.jsx +16 -0
  16. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_placement_dark.html.erb +31 -0
  17. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_placement_dark.jsx +33 -0
  18. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_tooltip_dark.html.erb +12 -0
  19. data/app/pb_kits/playbook/pb_avatar_action_button/docs/example.yml +10 -3
  20. data/app/pb_kits/playbook/pb_avatar_action_button/docs/index.js +4 -0
  21. data/app/pb_kits/playbook/pb_badge/_badge.jsx +2 -6
  22. data/app/pb_kits/playbook/pb_badge/docs/_description.md +1 -0
  23. data/app/pb_kits/playbook/pb_bar_graph/_bar_graph.html.erb +1 -12
  24. data/app/pb_kits/playbook/pb_bar_graph/bar_graph.rb +1 -1
  25. data/app/pb_kits/playbook/pb_body/_body.jsx +3 -3
  26. data/app/pb_kits/playbook/pb_body/_body.scss +12 -9
  27. data/app/pb_kits/playbook/pb_body/_body_mixins.scss +6 -3
  28. data/app/pb_kits/playbook/pb_body/body.rb +3 -3
  29. data/app/pb_kits/playbook/pb_caption/_caption.jsx +3 -1
  30. data/app/pb_kits/playbook/pb_caption/_caption.scss +6 -0
  31. data/app/pb_kits/playbook/pb_caption/caption.rb +4 -1
  32. data/app/pb_kits/playbook/pb_caption/docs/_caption_variants.html.erb +1 -0
  33. data/app/pb_kits/playbook/pb_caption/docs/_caption_variants.jsx +16 -0
  34. data/app/pb_kits/playbook/pb_caption/docs/_caption_variants.md +3 -0
  35. data/app/pb_kits/playbook/pb_caption/docs/example.yml +2 -0
  36. data/app/pb_kits/playbook/pb_caption/docs/index.js +1 -0
  37. data/app/pb_kits/playbook/pb_card/_card.jsx +1 -1
  38. data/app/pb_kits/playbook/pb_checkbox/_checkbox.html.erb +1 -1
  39. data/app/pb_kits/playbook/pb_checkbox/checkbox.rb +5 -0
  40. data/app/pb_kits/playbook/pb_date/_date.html.erb +32 -8
  41. data/app/pb_kits/playbook/pb_date/_date.jsx +76 -67
  42. data/app/pb_kits/playbook/pb_date/_date.scss +25 -0
  43. data/app/pb_kits/playbook/pb_date/date.rb +20 -11
  44. data/app/pb_kits/playbook/pb_date/docs/_date_alignment.html.erb +24 -0
  45. data/app/pb_kits/playbook/pb_date/docs/_date_alignment.jsx +32 -0
  46. data/app/pb_kits/playbook/pb_date/docs/_date_default.html.erb +1 -9
  47. data/app/pb_kits/playbook/pb_date/docs/_date_default.jsx +5 -15
  48. data/app/pb_kits/playbook/pb_date/docs/_date_default_react.jsx +20 -0
  49. data/app/pb_kits/playbook/pb_date/docs/_date_default_react.md +3 -0
  50. data/app/pb_kits/playbook/pb_date/docs/_date_timezone.html.erb +51 -0
  51. data/app/pb_kits/playbook/pb_date/docs/_date_timezone.md +6 -0
  52. data/app/pb_kits/playbook/pb_date/docs/_date_variants.html.erb +27 -0
  53. data/app/pb_kits/playbook/pb_date/docs/_date_variants.jsx +39 -0
  54. data/app/pb_kits/playbook/pb_date/docs/_description.md +2 -0
  55. data/app/pb_kits/playbook/pb_date/docs/example.yml +5 -0
  56. data/app/pb_kits/playbook/pb_date/docs/index.js +2 -0
  57. data/app/pb_kits/playbook/pb_date_time_stacked/docs/_date_time_stacked_dark.jsx +1 -1
  58. data/app/pb_kits/playbook/pb_date_time_stacked/docs/_date_time_stacked_default.jsx +1 -1
  59. data/app/pb_kits/playbook/pb_distribution_bar/_distribution_bar.html.erb +1 -8
  60. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.html.erb +1 -0
  61. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_dark.html.erb +21 -0
  62. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_dark.jsx +40 -0
  63. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_multi_line_dark.html.erb +5 -0
  64. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_multi_line_dark.jsx +16 -0
  65. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/example.yml +4 -1
  66. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/index.js +2 -0
  67. data/app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb +1 -0
  68. data/app/pb_kits/playbook/pb_form/docs/_form_form_with_validate.html.erb +1 -0
  69. data/app/pb_kits/playbook/pb_form/docs/_form_simple_form.html.erb +3 -1
  70. data/app/pb_kits/playbook/pb_form/docs/_form_simple_form_validate.html.erb +3 -1
  71. data/app/pb_kits/playbook/pb_form/form_builder.rb +1 -0
  72. data/app/pb_kits/playbook/pb_form/form_builder/checkbox_field.rb +29 -0
  73. data/app/pb_kits/playbook/pb_hashtag/_hashtag.html.erb +4 -4
  74. data/app/pb_kits/playbook/pb_hashtag/_hashtag.jsx +22 -8
  75. data/app/pb_kits/playbook/pb_hashtag/docs/_hashtag_dark.jsx +3 -0
  76. data/app/pb_kits/playbook/pb_hashtag/docs/_hashtag_default.jsx +3 -0
  77. data/app/pb_kits/playbook/pb_hashtag/hashtag.rb +1 -6
  78. data/app/pb_kits/playbook/pb_icon_circle/_icon_circle.html.erb +4 -3
  79. data/app/pb_kits/playbook/pb_icon_circle/_icon_circle.jsx +21 -6
  80. data/app/pb_kits/playbook/pb_icon_circle/_icon_circle.scss +4 -1
  81. data/app/pb_kits/playbook/pb_icon_circle/docs/_icon_circle_color_dark.html.erb +42 -0
  82. data/app/pb_kits/playbook/pb_icon_circle/docs/_icon_circle_color_dark.jsx +59 -0
  83. data/app/pb_kits/playbook/pb_icon_circle/docs/_icon_circle_dark.html.erb +4 -0
  84. data/app/pb_kits/playbook/pb_icon_circle/docs/_icon_circle_dark.jsx +16 -0
  85. data/app/pb_kits/playbook/pb_icon_circle/docs/_icon_circle_sizes.html.erb +4 -4
  86. data/app/pb_kits/playbook/pb_icon_circle/docs/{_icon_circle_size.jsx → _icon_circle_sizes.jsx} +2 -2
  87. data/app/pb_kits/playbook/pb_icon_circle/docs/_icon_circle_sizes_dark.html.erb +29 -0
  88. data/app/pb_kits/playbook/pb_icon_circle/docs/_icon_circle_sizes_dark.jsx +34 -0
  89. data/app/pb_kits/playbook/pb_icon_circle/docs/example.yml +8 -1
  90. data/app/pb_kits/playbook/pb_icon_circle/docs/index.js +4 -1
  91. data/app/pb_kits/playbook/pb_icon_value/_icon_value.html.erb +4 -3
  92. data/app/pb_kits/playbook/pb_icon_value/_icon_value.jsx +9 -3
  93. data/app/pb_kits/playbook/pb_icon_value/_icon_value.scss +3 -0
  94. data/app/pb_kits/playbook/pb_icon_value/docs/_icon_value_align.jsx +31 -0
  95. data/app/pb_kits/playbook/pb_icon_value/docs/_icon_value_align_dark.html.erb +23 -0
  96. data/app/pb_kits/playbook/pb_icon_value/docs/_icon_value_align_dark.jsx +34 -0
  97. data/app/pb_kits/playbook/pb_icon_value/docs/_icon_value_dark.html.erb +21 -0
  98. data/app/pb_kits/playbook/pb_icon_value/docs/_icon_value_dark.jsx +32 -0
  99. data/app/pb_kits/playbook/pb_icon_value/docs/example.yml +5 -0
  100. data/app/pb_kits/playbook/pb_icon_value/docs/index.js +3 -0
  101. data/app/pb_kits/playbook/pb_label_value/_label_value.html.erb +1 -1
  102. data/app/pb_kits/playbook/pb_label_value/_label_value.jsx +6 -10
  103. data/app/pb_kits/playbook/pb_label_value/_label_value.scss +1 -1
  104. data/app/pb_kits/playbook/pb_label_value/label_value.rb +1 -6
  105. data/app/pb_kits/playbook/pb_legend/_legend.html.erb +1 -11
  106. data/app/pb_kits/playbook/pb_legend/_legend.jsx +5 -5
  107. data/app/pb_kits/playbook/pb_legend/legend.rb +1 -6
  108. data/app/pb_kits/playbook/pb_line_graph/_line_graph.html.erb +1 -13
  109. data/app/pb_kits/playbook/pb_line_graph/line_graph.rb +1 -1
  110. data/app/pb_kits/playbook/pb_multiple_users/_multiple_users.html.erb +4 -3
  111. data/app/pb_kits/playbook/pb_multiple_users/_multiple_users.jsx +25 -7
  112. data/app/pb_kits/playbook/pb_multiple_users/_multiple_users.scss +6 -0
  113. data/app/pb_kits/playbook/pb_multiple_users/docs/_multiple_users_dark.html.erb +41 -0
  114. data/app/pb_kits/playbook/pb_multiple_users/docs/_multiple_users_dark.jsx +52 -0
  115. data/app/pb_kits/playbook/pb_multiple_users/docs/example.yml +2 -0
  116. data/app/pb_kits/playbook/pb_multiple_users/docs/index.js +1 -0
  117. data/app/pb_kits/playbook/pb_multiple_users_stacked/_multiple_users_stacked.html.erb +6 -4
  118. data/app/pb_kits/playbook/pb_multiple_users_stacked/_multiple_users_stacked.jsx +19 -8
  119. data/app/pb_kits/playbook/pb_multiple_users_stacked/_multiple_users_stacked.scss +12 -7
  120. data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/_multiple_users_stacked_dark.html.erb +53 -0
  121. data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/_multiple_users_stacked_dark.jsx +62 -0
  122. data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/example.yml +2 -0
  123. data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/index.js +1 -0
  124. data/app/pb_kits/playbook/pb_nav/_item.html.erb +3 -2
  125. data/app/pb_kits/playbook/pb_nav/_item.jsx +36 -14
  126. data/app/pb_kits/playbook/pb_nav/_nav.html.erb +3 -2
  127. data/app/pb_kits/playbook/pb_nav/_nav.jsx +27 -13
  128. data/app/pb_kits/playbook/pb_nav/docs/example.yml +1 -0
  129. data/app/pb_kits/playbook/pb_online_status/_online_status.html.erb +3 -2
  130. data/app/pb_kits/playbook/pb_online_status/_online_status.jsx +14 -4
  131. data/app/pb_kits/playbook/pb_online_status/_online_status_mixins.scss +5 -2
  132. data/app/pb_kits/playbook/pb_online_status/docs/_online_status_dark.html.erb +9 -0
  133. data/app/pb_kits/playbook/pb_online_status/docs/_online_status_dark.jsx +28 -0
  134. data/app/pb_kits/playbook/pb_online_status/docs/example.yml +2 -0
  135. data/app/pb_kits/playbook/pb_online_status/docs/index.js +1 -0
  136. data/app/pb_kits/playbook/pb_person_contact/_person_contact.jsx +7 -6
  137. data/app/pb_kits/playbook/pb_person_contact/docs/_person_contact_with_wrong_numbers.jsx +1 -0
  138. data/app/pb_kits/playbook/pb_pill/_pill.html.erb +3 -2
  139. data/app/pb_kits/playbook/pb_pill/_pill.jsx +21 -3
  140. data/app/pb_kits/playbook/pb_pill/_pill.scss +1 -1
  141. data/app/pb_kits/playbook/pb_pill/docs/_pill_dark.html.erb +52 -0
  142. data/app/pb_kits/playbook/pb_pill/docs/_pill_dark.jsx +69 -0
  143. data/app/pb_kits/playbook/pb_pill/docs/example.yml +3 -1
  144. data/app/pb_kits/playbook/pb_pill/docs/index.js +1 -0
  145. data/app/pb_kits/playbook/pb_popover/_popover.html.erb +3 -2
  146. data/app/pb_kits/playbook/pb_popover/_popover.jsx +16 -4
  147. data/app/pb_kits/playbook/pb_popover/docs/_popover_close_dark.html.erb +43 -0
  148. data/app/pb_kits/playbook/pb_popover/docs/_popover_close_dark.jsx +102 -0
  149. data/app/pb_kits/playbook/pb_popover/docs/_popover_dark.html.erb +25 -0
  150. data/app/pb_kits/playbook/pb_popover/docs/_popover_dark.jsx +48 -0
  151. data/app/pb_kits/playbook/pb_popover/docs/_popover_default.html.erb +1 -0
  152. data/app/pb_kits/playbook/pb_popover/docs/_popover_list_dark.html.erb +13 -0
  153. data/app/pb_kits/playbook/pb_popover/docs/_popover_list_dark.jsx +51 -0
  154. data/app/pb_kits/playbook/pb_popover/docs/_popover_scroll_height_dark.html.erb +25 -0
  155. data/app/pb_kits/playbook/pb_popover/docs/_popover_scroll_height_dark.jsx +54 -0
  156. data/app/pb_kits/playbook/pb_popover/docs/_popover_z_index_dark.html.erb +14 -0
  157. data/app/pb_kits/playbook/pb_popover/docs/_popover_z_index_dark.jsx +52 -0
  158. data/app/pb_kits/playbook/pb_popover/docs/example.yml +10 -0
  159. data/app/pb_kits/playbook/pb_popover/docs/index.js +5 -0
  160. data/app/pb_kits/playbook/pb_progress_pills/_progress_pills.html.erb +1 -1
  161. data/app/pb_kits/playbook/pb_progress_pills/_progress_pills.jsx +2 -3
  162. data/app/pb_kits/playbook/pb_progress_pills/_progress_pills.scss +1 -2
  163. data/app/pb_kits/playbook/pb_progress_pills/docs/_progress_pills_status_dark.html.erb +1 -0
  164. data/app/pb_kits/playbook/pb_progress_pills/docs/_progress_pills_status_dark.jsx +19 -0
  165. data/app/pb_kits/playbook/pb_progress_pills/docs/example.yml +2 -0
  166. data/app/pb_kits/playbook/pb_progress_pills/docs/index.js +1 -0
  167. data/app/pb_kits/playbook/pb_progress_pills/progress_pills.rb +2 -13
  168. data/app/pb_kits/playbook/pb_progress_step/_progress_step.html.erb +1 -1
  169. data/app/pb_kits/playbook/pb_progress_step/_progress_step.jsx +5 -6
  170. data/app/pb_kits/playbook/pb_progress_step/_progress_step.scss +124 -538
  171. data/app/pb_kits/playbook/pb_progress_step/_progress_step_item.html.erb +4 -16
  172. data/app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx +10 -20
  173. data/app/pb_kits/playbook/pb_progress_step/docs/_description.md +5 -1
  174. data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_dark.html.erb +26 -0
  175. data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_default.html.erb +27 -1
  176. data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_default.jsx +3 -3
  177. data/app/pb_kits/playbook/pb_progress_step/docs/{_progress_step_child.html.erb → _progress_step_tracker.html.erb} +5 -5
  178. data/app/pb_kits/playbook/pb_progress_step/docs/{_progress_step_child.jsx → _progress_step_tracker.jsx} +7 -7
  179. data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_vertical.html.erb +7 -1
  180. data/app/pb_kits/playbook/pb_progress_step/docs/example.yml +2 -3
  181. data/app/pb_kits/playbook/pb_progress_step/docs/index.js +1 -1
  182. data/app/pb_kits/playbook/pb_progress_step/progress_step.rb +10 -7
  183. data/app/pb_kits/playbook/pb_progress_step/progress_step_item.rb +2 -1
  184. data/app/pb_kits/playbook/pb_radio/_radio.html.erb +6 -5
  185. data/app/pb_kits/playbook/pb_radio/_radio.jsx +26 -21
  186. data/app/pb_kits/playbook/pb_radio/_radio.scss +1 -1
  187. data/app/pb_kits/playbook/pb_radio/docs/_radio_dark.jsx +5 -3
  188. data/app/pb_kits/playbook/pb_radio/docs/_radio_default.jsx +3 -1
  189. data/app/pb_kits/playbook/pb_radio/radio.rb +2 -8
  190. data/app/pb_kits/playbook/pb_select/_select.html.erb +3 -3
  191. data/app/pb_kits/playbook/pb_select/_select.jsx +6 -8
  192. data/app/pb_kits/playbook/pb_select/_select.scss +1 -1
  193. data/app/pb_kits/playbook/pb_select/select.rb +1 -6
  194. data/app/pb_kits/playbook/pb_table/_table.html.erb +3 -2
  195. data/app/pb_kits/playbook/pb_table/_table.jsx +15 -2
  196. data/app/pb_kits/playbook/pb_table/_table_row.html.erb +3 -2
  197. data/app/pb_kits/playbook/pb_table/_table_row.jsx +22 -4
  198. data/app/pb_kits/playbook/pb_table/table.rb +3 -5
  199. data/app/pb_kits/playbook/pb_text_input/_text_input.scss +4 -4
  200. data/app/pb_kits/playbook/pb_time/_time.jsx +7 -5
  201. data/app/pb_kits/playbook/pb_time/docs/_time_dark.jsx +0 -2
  202. data/app/pb_kits/playbook/pb_time/docs/_time_default.jsx +1 -3
  203. data/app/pb_kits/playbook/pb_time/docs/_time_timestamp.jsx +0 -3
  204. data/app/pb_kits/playbook/pb_time/docs/_time_timezone.jsx +59 -0
  205. data/app/pb_kits/playbook/pb_time/docs/_time_timezone.md +11 -0
  206. data/app/pb_kits/playbook/pb_time/docs/example.yml +1 -0
  207. data/app/pb_kits/playbook/pb_time/docs/index.js +1 -0
  208. data/app/pb_kits/playbook/pb_title/_title.jsx +1 -1
  209. data/app/pb_kits/playbook/pb_title/_title.scss +5 -5
  210. data/app/pb_kits/playbook/pb_title/docs/_title_variants.html.erb +1 -0
  211. data/app/pb_kits/playbook/pb_title/docs/_title_variants.jsx +17 -0
  212. data/app/pb_kits/playbook/pb_title/docs/_title_variants.md +3 -0
  213. data/app/pb_kits/playbook/pb_title/docs/example.yml +2 -0
  214. data/app/pb_kits/playbook/pb_title/docs/index.js +1 -0
  215. data/app/pb_kits/playbook/pb_title_count/_title_count.html.erb +5 -3
  216. data/app/pb_kits/playbook/pb_title_count/_title_count.jsx +7 -1
  217. data/app/pb_kits/playbook/pb_title_count/docs/_title_count_align_dark.html.erb +23 -0
  218. data/app/pb_kits/playbook/pb_title_count/docs/_title_count_align_dark.jsx +34 -0
  219. data/app/pb_kits/playbook/pb_title_count/docs/_title_count_dark.html.erb +23 -0
  220. data/app/pb_kits/playbook/pb_title_count/docs/_title_count_dark.jsx +34 -0
  221. data/app/pb_kits/playbook/pb_title_count/docs/example.yml +4 -0
  222. data/app/pb_kits/playbook/pb_title_count/docs/index.js +2 -0
  223. data/app/pb_kits/playbook/pb_title_detail/_title_detail.jsx +4 -4
  224. data/app/pb_kits/playbook/pb_tooltip/index.js +1 -1
  225. data/app/pb_kits/playbook/pb_user/_user.html.erb +3 -2
  226. data/app/pb_kits/playbook/pb_user/_user.jsx +51 -17
  227. data/app/pb_kits/playbook/pb_user/docs/_user_dark.jsx +55 -0
  228. data/app/pb_kits/playbook/pb_user/docs/_user_text_only_dark.jsx +26 -0
  229. data/app/pb_kits/playbook/pb_user/docs/example.yml +2 -0
  230. data/app/pb_kits/playbook/pb_user/docs/index.js +2 -0
  231. data/app/pb_kits/playbook/pb_user/user.rb +1 -7
  232. data/app/pb_kits/playbook/pb_user_badge/_user_badge.html.erb +3 -2
  233. data/app/pb_kits/playbook/pb_user_badge/_user_badge.jsx +23 -3
  234. data/app/pb_kits/playbook/pb_user_badge/docs/_user_badge_dark.html.erb +13 -0
  235. data/app/pb_kits/playbook/pb_user_badge/docs/_user_badge_dark.jsx +27 -0
  236. data/app/pb_kits/playbook/pb_user_badge/docs/_user_badge_size_dark.html.erb +21 -0
  237. data/app/pb_kits/playbook/pb_user_badge/docs/_user_badge_size_dark.jsx +36 -0
  238. data/app/pb_kits/playbook/pb_user_badge/docs/example.yml +4 -0
  239. data/app/pb_kits/playbook/pb_user_badge/docs/index.js +2 -0
  240. data/app/pb_kits/playbook/pb_weekday_stacked/_weekday_stacked.html.erb +3 -2
  241. data/app/pb_kits/playbook/pb_weekday_stacked/_weekday_stacked.jsx +20 -6
  242. data/app/pb_kits/playbook/pb_weekday_stacked/weekday_stacked.rb +0 -3
  243. data/app/pb_kits/playbook/react_rails_kits.js +5 -0
  244. data/app/pb_kits/playbook/tokens/_colors.scss +22 -23
  245. data/app/pb_kits/playbook/tokens/_typography.scss +5 -5
  246. data/app/pb_kits/playbook/tokens/index.scss +11 -0
  247. data/app/pb_kits/playbook/vendor.js +5 -0
  248. data/lib/playbook/engine.rb +1 -0
  249. data/lib/playbook/version.rb +1 -1
  250. data/lib/tasks/pb_release.rake +3 -0
  251. metadata +81 -67
  252. data/app/controllers/playbook/guides_controller.rb +0 -11
  253. data/app/controllers/playbook/pages_controller.rb +0 -79
  254. data/app/controllers/playbook/samples_controller.rb +0 -40
  255. data/app/pb_kits/playbook/packs/application.js +0 -55
  256. data/app/pb_kits/playbook/packs/examples.js +0 -175
  257. data/app/pb_kits/playbook/packs/main.scss +0 -12
  258. data/app/pb_kits/playbook/packs/samples.js +0 -21
  259. data/app/pb_kits/playbook/packs/site_styles/_samples.scss +0 -72
  260. data/app/pb_kits/playbook/packs/site_styles/_scaffold.scss +0 -43
  261. data/app/pb_kits/playbook/packs/site_styles/_site-style.scss +0 -135
  262. data/app/pb_kits/playbook/packs/site_styles/docs/_all.scss +0 -10
  263. data/app/pb_kits/playbook/packs/site_styles/docs/_bg_light_doc_example.scss +0 -7
  264. data/app/pb_kits/playbook/packs/site_styles/docs/_code_snippet.scss +0 -531
  265. data/app/pb_kits/playbook/packs/site_styles/docs/_color_utilities.scss +0 -92
  266. data/app/pb_kits/playbook/packs/site_styles/docs/_flex_examples.scss +0 -15
  267. data/app/pb_kits/playbook/packs/site_styles/docs/_kit_doc.scss +0 -190
  268. data/app/pb_kits/playbook/packs/site_styles/docs/_kits_examples.scss +0 -18
  269. data/app/pb_kits/playbook/packs/site_styles/docs/_markdown.scss +0 -82
  270. data/app/pb_kits/playbook/packs/site_styles/docs/_spacing_tokens.scss +0 -72
  271. data/app/views/layouts/playbook/_mobile_hamburger.html.erb +0 -2
  272. data/app/views/layouts/playbook/_nav.html.erb +0 -13
  273. data/app/views/layouts/playbook/_sidebar.html.erb +0 -52
  274. data/app/views/layouts/playbook/application.html.slim +0 -22
  275. data/app/views/layouts/playbook/fullscreen.html.slim +0 -10
  276. data/app/views/layouts/playbook/grid.html.slim +0 -10
  277. data/app/views/layouts/playbook/samples.html.erb +0 -19
  278. data/app/views/playbook/guides/create_kit.html.slim +0 -16
  279. data/app/views/playbook/guides/create_kit/_file_naming.html.md +0 -2
  280. data/app/views/playbook/guides/create_kit/_generator.html.md +0 -6
  281. data/app/views/playbook/guides/create_kit/_kit_examples.html.md +0 -2
  282. data/app/views/playbook/guides/create_kit/_kit_rails.html.md +0 -2
  283. data/app/views/playbook/guides/create_kit/_kit_react.html.md +0 -2
  284. data/app/views/playbook/guides/create_kit/_layout.html.md +0 -2
  285. data/app/views/playbook/guides/create_kit/_view_objects.html.md +0 -2
  286. data/app/views/playbook/guides/create_kit/_writing_sass.md +0 -10
  287. data/app/views/playbook/guides/use_nitro.html.slim +0 -6
  288. data/app/views/playbook/guides/use_nitro/_local.html.md +0 -2
  289. data/app/views/playbook/guides/use_nitro/_nitro_components.html.md +0 -2
  290. data/app/views/playbook/guides/use_nitro/_versions.html.md +0 -2
  291. data/app/views/playbook/pages/fullscreen.html.slim +0 -10
  292. data/app/views/playbook/pages/grid.html.slim +0 -2
  293. data/app/views/playbook/pages/home.html.slim +0 -4
  294. data/app/views/playbook/pages/kit_category_show.html.erb +0 -14
  295. data/app/views/playbook/pages/kit_show.html.erb +0 -33
  296. data/app/views/playbook/pages/kits.html.erb +0 -12
  297. data/app/views/playbook/pages/principals/_getting_started.html.md +0 -30
  298. data/app/views/playbook/pages/principles.html.slim +0 -3
  299. data/app/views/playbook/pages/tokens.html.slim +0 -15
  300. data/app/views/playbook/pages/tokens/_pb_doc_spacing.html.slim +0 -17
  301. data/app/views/playbook/pages/utilities.html.slim +0 -116
  302. data/app/views/playbook/pages/utilities/_pb_doc_color.html.slim +0 -15
  303. data/app/views/playbook/samples/collection_detail/index.html.erb +0 -169
  304. data/app/views/playbook/samples/collection_detail/index.jsx +0 -372
  305. data/app/views/playbook/samples/dashboards/index.html.erb +0 -81
  306. data/app/views/playbook/samples/dashboards/index.jsx +0 -130
  307. data/app/views/playbook/samples/filter_table/index.html.erb +0 -348
  308. data/app/views/playbook/samples/filter_table/index.jsx +0 -433
  309. data/app/views/playbook/samples/registration/index.html.erb +0 -316
  310. data/app/views/playbook/samples/registration/index.jsx +0 -476
  311. data/app/views/playbook/samples/sample_show.html.erb +0 -36
@@ -1,476 +0,0 @@
1
- import React from 'react'
2
- import { BarGraph, Body, Button, Caption, Card, Checkbox, Flex, Layout, LineGraph, SectionSeparator, Table, Title } from '../../../../pb_kits/playbook'
3
- import FlexItem from '../../../../pb_kits/playbook/pb_flex/_flex_item.jsx'
4
-
5
- const data = [{
6
- name: '2020 | SF',
7
- data: [43934, 52503, 57177, 69658, 97031, 119931, 137133, 154175],
8
- }, {
9
- name: '2020 | TOR',
10
- data: [24916, 24064, 29742, 29851, 32490, 30282, 38121, 40434],
11
- }, {
12
- name: '2019 | AMS',
13
- data: [11744, 17722, 16005, 19771, 20185, 24377, 32147, 39387],
14
- }, {
15
- name: '2018 | SF',
16
- data: [null, null, 7988, 12169, 15112, 22452, 34400, 34227],
17
- }, {
18
- name: '2017 | LA',
19
- data: [12908, 5948, 8105, 11248, 8989, 11816, 18274, 18111],
20
- }]
21
-
22
- const totalRegistered = [{
23
- name: 'Registrations',
24
- data: [1475, 524, 1344, 780, 200, 900],
25
- }]
26
- const newAttendees = [{
27
- name: 'Registrations',
28
- data: [1475, 524, 1344, 780, 200, 900],
29
- }]
30
- const repeatingAttendees = [{
31
- name: 'Registrations',
32
- data: [1475, 524, 1344, 780, 200, 900],
33
- }]
34
- const graphicDesigners = [{
35
- name: 'Registrations',
36
- data: [1475, 524, 1344, 780, 200, 900],
37
- }]
38
- const uxUi = [{
39
- name: 'Registrations',
40
- data: [1475, 524, 1344, 780, 200, 900],
41
- }]
42
- const productDesigners = [{
43
- name: 'Registrations',
44
- data: [1475, 524, 1344, 780, 200, 900],
45
- }]
46
-
47
- const Registration = () => (
48
- <div>
49
- <Layout
50
- collapse="xs"
51
- position="left"
52
- size="lg"
53
- >
54
- <Layout.Side>
55
- <Flex
56
- orientation="column"
57
- padding="md"
58
- vertical="center"
59
- >
60
- <FlexItem>
61
- <Title
62
- size={3}
63
- tag="h3"
64
- text="Design Expo"
65
- />
66
- </FlexItem>
67
- <FlexItem>
68
- <Body
69
- color="light"
70
- text="Annual Conference*"
71
- />
72
- </FlexItem>
73
- </Flex>
74
- <SectionSeparator />
75
- <Flex
76
- orientation="column"
77
- padding="md"
78
- >
79
- <FlexItem>
80
- <Title
81
- paddingBottom="sm"
82
- size={4}
83
- tag="h4"
84
- text="Regions"
85
- />
86
- </FlexItem>
87
- <Flex
88
- inline
89
- orientation="column"
90
- >
91
- <Checkbox
92
- checked
93
- name="NorthAmerica"
94
- paddingBottom="sm"
95
- paddingLeft="sm"
96
- text="North America"
97
- value="NorthAmerica"
98
- />
99
- <Checkbox
100
- checked
101
- name="Europe"
102
- paddingBottom="sm"
103
- paddingLeft="sm"
104
- text="Europe"
105
- value="Europe"
106
- />
107
- </Flex>
108
- <Title
109
- paddingY="sm"
110
- size={4}
111
- tag="h4"
112
- text="Total Registered"
113
- />
114
- <Table
115
- paddingBottom="xs"
116
- size="sm"
117
- >
118
- <thead>
119
- <tr>
120
- <th>{'Conference'}</th>
121
- <th>{'Total #'}</th>
122
- </tr>
123
- </thead>
124
- <tbody>
125
- <tr>
126
- <td>{'2020 | SF'}</td>
127
- <td>{'2,391'}</td>
128
- </tr>
129
- <tr>
130
- <td>{'2020 | TOR'}</td>
131
- <td>{'3,829'}</td>
132
- </tr>
133
- <tr>
134
- <td>{'2019 | AMS'}</td>
135
- <td>{'2,047'}</td>
136
- </tr>
137
- <tr>
138
- <td>{'2018 | SF'}</td>
139
- <td>{'1,824'}</td>
140
- </tr>
141
- <tr>
142
- <td>{'2017 | LA'}</td>
143
- <td>{'719'}</td>
144
- </tr>
145
- <tr>
146
- <td>{'2017 | LDN'}</td>
147
- <td>{'491'}</td>
148
- </tr>
149
- </tbody>
150
- </Table>
151
- <Caption
152
- size="xs"
153
- text="*This dashboard includes the last six conferences"
154
- />
155
- </Flex>
156
- </Layout.Side>
157
-
158
- <Layout.Body
159
- padding="xl"
160
- >
161
- <Title
162
- paddingBottom="lg"
163
- size={3}
164
- tag="h3"
165
- text="Registration Dashboard"
166
- />
167
- <Flex
168
- className="bg_light"
169
- wrap
170
- >
171
- <FlexItem
172
- fixedSize="60%"
173
- paddingRight="lg"
174
- >
175
- <Card>
176
-
177
- <Flex
178
- paddingBottom="md"
179
- spacing="around"
180
- vertical="bottom"
181
- >
182
- {/****** first number ******/}
183
- <FlexItem>
184
- <Flex
185
- orientation="column"
186
- vertical="center"
187
- >
188
- <FlexItem>
189
- <Caption
190
- size="xs"
191
- text="2020 | SF"
192
- />
193
- </FlexItem>
194
- <FlexItem>
195
- <Caption
196
- text="Total Registered"
197
- />
198
- </FlexItem>
199
- <FlexItem>
200
- <Title
201
- size={2}
202
- tag="h2"
203
- text="2,391"
204
- />
205
- </FlexItem>
206
- </Flex>
207
- </FlexItem>
208
-
209
- <SectionSeparator orientation="vertical" />
210
-
211
- {/****** second number ******/}
212
-
213
- <FlexItem>
214
- <Flex
215
- orientation="column"
216
- paddingTop="sm"
217
- vertical="center"
218
- >
219
- <FlexItem>
220
- <Caption
221
- text="Graphic"
222
- />
223
- </FlexItem>
224
- <FlexItem>
225
- <Title
226
- size={3}
227
- tag="h3"
228
- text="353"
229
- />
230
- </FlexItem>
231
- </Flex>
232
- </FlexItem>
233
-
234
- {/****** third number ******/}
235
-
236
- <FlexItem>
237
- <Flex
238
- orientation="column"
239
- vertical="center"
240
- >
241
- <FlexItem>
242
- <Caption
243
- text="UX/UI"
244
- />
245
- </FlexItem>
246
- <FlexItem>
247
- <Title
248
- size={3}
249
- tag="h3"
250
- text="254"
251
- />
252
- </FlexItem>
253
- </Flex>
254
- </FlexItem>
255
-
256
- {/****** fourth number ******/}
257
-
258
- <FlexItem>
259
- <Flex
260
- orientation="column"
261
- vertical="center"
262
- >
263
- <FlexItem>
264
- <Caption
265
- text="Product"
266
- />
267
- </FlexItem>
268
- <FlexItem>
269
- <Title
270
- size={3}
271
- tag="h3"
272
- text="194"
273
- />
274
- </FlexItem>
275
- </Flex>
276
- </FlexItem>
277
- </Flex>
278
-
279
- <SectionSeparator />
280
-
281
- <Flex
282
- paddingTop="sm"
283
- spacing="around"
284
- vertical="bottom"
285
- >
286
- {/****** first number ******/}
287
- <FlexItem>
288
- <Flex
289
- orientation="column"
290
- vertical="center"
291
- >
292
- <FlexItem>
293
- <Caption
294
- size="xs"
295
- text="2020 | TOR"
296
- />
297
- </FlexItem>
298
- <FlexItem>
299
- <Caption
300
- text="Total Registered"
301
- />
302
- </FlexItem>
303
- <FlexItem>
304
- <Title
305
- size={2}
306
- tag="h2"
307
- text="3,829"
308
- />
309
- </FlexItem>
310
- </Flex>
311
- </FlexItem>
312
-
313
- <SectionSeparator orientation="vertical" />
314
-
315
- {/****** second number ******/}
316
-
317
- <FlexItem>
318
- <Flex
319
- orientation="column"
320
- vertical="center"
321
- >
322
- <FlexItem>
323
- <Caption
324
- text="Graphic"
325
- />
326
- </FlexItem>
327
- <FlexItem>
328
- <Title
329
- size={3}
330
- tag="h3"
331
- text="937"
332
- />
333
- </FlexItem>
334
- </Flex>
335
- </FlexItem>
336
-
337
- {/****** third number ******/}
338
-
339
- <FlexItem>
340
- <Flex
341
- orientation="column"
342
- vertical="center"
343
- >
344
- <FlexItem>
345
- <Caption
346
- text="UX/UI"
347
- />
348
- </FlexItem>
349
- <FlexItem>
350
- <Title
351
- size={3}
352
- tag="h3"
353
- text="721"
354
- />
355
- </FlexItem>
356
- </Flex>
357
- </FlexItem>
358
-
359
- {/****** fourth number ******/}
360
-
361
- <FlexItem>
362
- <Flex
363
- orientation="column"
364
- vertical="center"
365
- >
366
- <FlexItem>
367
- <Caption
368
- text="Product"
369
- />
370
- </FlexItem>
371
- <FlexItem>
372
- <Title
373
- size={3}
374
- tag="h3"
375
- text="628"
376
- />
377
- </FlexItem>
378
- </Flex>
379
- </FlexItem>
380
- </Flex>
381
- </Card>
382
-
383
- <Flex
384
- orientation="column"
385
- paddingBottom="md"
386
- vertical="right"
387
- >
388
- <FlexItem>
389
- <Button
390
- onClick={() => alert('button clicked!')}
391
- text="View full breakdown"
392
- variant="link"
393
- />
394
- </FlexItem>
395
- </Flex>
396
-
397
- <Card>
398
- <LineGraph
399
- axisTitle="Total Registration"
400
- chartData={data}
401
- height="80%"
402
- id="line-registration"
403
- legend
404
- title="Running Total"
405
- xAxisCategories={['7 wks away', '6 wks away', '5 wks away', '4 wks away', '3 wks away', '2 wks away', '1 wk away', 'Start of Event']}
406
- yAxisMin={0}
407
- />
408
- </Card>
409
- </FlexItem>
410
- <FlexItem fixedSize="40%">
411
- <Card>
412
- <BarGraph
413
- axisTitle="Total Registered"
414
- chartData={totalRegistered}
415
- height="30%"
416
- id="total-attendees"
417
- xAxisCategories={['\'17 LDN', '\'17 LA', '\'18 SF', '\'19 AMS', '\'20 TOR', '\'20 SF']}
418
- yAxisMin={0}
419
- />
420
- <BarGraph
421
- axisTitle="New Attendees"
422
- chartData={newAttendees}
423
- height="30%"
424
- id="new-attendees"
425
- xAxisCategories={['\'17 LDN', '\'17 LA', '\'18 SF', '\'19 AMS', '\'20 TOR', '\'20 SF']}
426
- yAxisMin={0}
427
- />
428
- <BarGraph
429
- axisTitle="New Attendees"
430
- chartData={newAttendees}
431
- height="30%"
432
- id="new-attendees"
433
- xAxisCategories={['\'17 LDN', '\'17 LA', '\'18 SF', '\'19 AMS', '\'20 TOR', '\'20 SF']}
434
- yAxisMin={0}
435
- />
436
- <BarGraph
437
- axisTitle="Repeating Attendees"
438
- chartData={repeatingAttendees}
439
- height="30%"
440
- id="repeating-attendees"
441
- xAxisCategories={['\'17 LDN', '\'17 LA', '\'18 SF', '\'19 AMS', '\'20 TOR', '\'20 SF']}
442
- yAxisMin={0}
443
- />
444
- <BarGraph
445
- axisTitle="Graphic Designers"
446
- chartData={graphicDesigners}
447
- height="30%"
448
- id="graphic-designers"
449
- xAxisCategories={['\'17 LDN', '\'17 LA', '\'18 SF', '\'19 AMS', '\'20 TOR', '\'20 SF']}
450
- yAxisMin={0}
451
- />
452
- <BarGraph
453
- axisTitle="UX/UI"
454
- chartData={uxUi}
455
- height="30%"
456
- id="ux-ui"
457
- xAxisCategories={['\'17 LDN', '\'17 LA', '\'18 SF', '\'19 AMS', '\'20 TOR', '\'20 SF']}
458
- yAxisMin={0}
459
- />
460
- <BarGraph
461
- axisTitle="Product Designers"
462
- chartData={productDesigners}
463
- height="30%"
464
- id="product-designers"
465
- xAxisCategories={['\'17 LDN', '\'17 LA', '\'18 SF', '\'19 AMS', '\'20 TOR', '\'20 SF']}
466
- yAxisMin={0}
467
- />
468
- </Card>
469
- </FlexItem>
470
- </Flex>
471
- </Layout.Body>
472
- </Layout>
473
- </div>
474
- )
475
-
476
- export default Registration