playbook_ui 4.15.0 → 4.18.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (254) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +0 -1
  3. data/app/pb_kits/playbook/_playbook.scss +7 -1
  4. data/app/pb_kits/playbook/data/menu.yml +5 -1
  5. data/app/pb_kits/playbook/index.js +5 -0
  6. data/app/pb_kits/playbook/packs/examples.js +8 -0
  7. data/app/pb_kits/playbook/packs/samples.js +2 -0
  8. data/app/pb_kits/playbook/packs/site_styles/docs/_markdown.scss +1 -1
  9. data/app/pb_kits/playbook/pb_avatar/_avatar.jsx +24 -15
  10. data/app/pb_kits/playbook/pb_avatar/docs/_avatar_status.jsx +45 -0
  11. data/app/pb_kits/playbook/pb_avatar/docs/example.yml +6 -5
  12. data/app/pb_kits/playbook/pb_avatar/docs/index.js +1 -0
  13. data/app/pb_kits/playbook/pb_avatar_action_button/_avatar_action_button.html.erb +33 -0
  14. data/app/pb_kits/playbook/pb_avatar_action_button/_avatar_action_button.jsx +81 -0
  15. data/app/pb_kits/playbook/pb_avatar_action_button/_avatar_action_button.scss +63 -0
  16. data/app/pb_kits/playbook/pb_avatar_action_button/avatar_action_button.rb +44 -0
  17. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_actions.html.erb +15 -0
  18. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_actions.jsx +19 -0
  19. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_default.html.erb +8 -0
  20. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_default.jsx +13 -0
  21. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_on_click.jsx +15 -0
  22. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_onclick.html.erb +14 -0
  23. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_placement.html.erb +27 -0
  24. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_placement.jsx +29 -0
  25. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_tooltip.html.erb +11 -0
  26. data/app/pb_kits/playbook/pb_avatar_action_button/docs/example.yml +16 -0
  27. data/app/pb_kits/playbook/pb_avatar_action_button/docs/index.js +4 -0
  28. data/app/pb_kits/playbook/pb_badge/_badge.jsx +20 -14
  29. data/app/pb_kits/playbook/pb_bar_graph/_bar_graph.jsx +9 -2
  30. data/app/pb_kits/playbook/pb_bar_graph/bar_graph.rb +5 -1
  31. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_default.html.erb +2 -2
  32. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_default.jsx +2 -2
  33. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_height.html.erb +26 -0
  34. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_height.jsx +36 -0
  35. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend.html.erb +14 -0
  36. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend.jsx +23 -0
  37. data/app/pb_kits/playbook/pb_bar_graph/docs/_description.md +3 -1
  38. data/app/pb_kits/playbook/pb_bar_graph/docs/example.yml +4 -0
  39. data/app/pb_kits/playbook/pb_bar_graph/docs/index.js +2 -0
  40. data/app/pb_kits/playbook/pb_body/_body.jsx +2 -1
  41. data/app/pb_kits/playbook/pb_body/docs/_body_light.jsx +4 -0
  42. data/app/pb_kits/playbook/pb_button/_button.jsx +2 -1
  43. data/app/pb_kits/playbook/pb_button/docs/_button_default.jsx +6 -0
  44. data/app/pb_kits/playbook/pb_caption/_caption.jsx +19 -17
  45. data/app/pb_kits/playbook/pb_card/_card.html.erb +1 -1
  46. data/app/pb_kits/playbook/pb_card/_card.jsx +35 -38
  47. data/app/pb_kits/playbook/pb_card/_card.scss +0 -10
  48. data/app/pb_kits/playbook/pb_card/card.rb +9 -3
  49. data/app/pb_kits/playbook/pb_card/card_body.rb +1 -5
  50. data/app/pb_kits/playbook/pb_card/card_header.rb +0 -3
  51. data/app/pb_kits/playbook/pb_card/docs/_card_light.html.erb +2 -1
  52. data/app/pb_kits/playbook/pb_checkbox/_checkbox.jsx +17 -18
  53. data/app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.html.erb +1 -1
  54. data/app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.jsx +10 -1
  55. data/app/pb_kits/playbook/pb_circle_icon_button/circle_icon_button.rb +3 -1
  56. data/app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_link.html.erb +11 -0
  57. data/app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_link.jsx +25 -0
  58. data/app/pb_kits/playbook/pb_circle_icon_button/docs/example.yml +3 -1
  59. data/app/pb_kits/playbook/pb_circle_icon_button/docs/index.js +1 -0
  60. data/app/pb_kits/playbook/pb_contact/_contact.html.erb +16 -3
  61. data/app/pb_kits/playbook/pb_contact/_contact.jsx +58 -34
  62. data/app/pb_kits/playbook/pb_contact/docs/_contact_default.html.erb +1 -1
  63. data/app/pb_kits/playbook/pb_contact/docs/_contact_default.jsx +1 -0
  64. data/app/pb_kits/playbook/pb_currency/_currency.html.erb +7 -9
  65. data/app/pb_kits/playbook/pb_currency/_currency.jsx +37 -21
  66. data/app/pb_kits/playbook/pb_currency/currency.rb +22 -29
  67. data/app/pb_kits/playbook/pb_currency/docs/_currency_dark.html.erb +3 -3
  68. data/app/pb_kits/playbook/pb_currency/docs/_currency_dark.jsx +2 -3
  69. data/app/pb_kits/playbook/pb_currency/docs/_currency_large.jsx +2 -3
  70. data/app/pb_kits/playbook/pb_currency/docs/_currency_medium.jsx +2 -2
  71. data/app/pb_kits/playbook/pb_currency/docs/_currency_small.html.erb +1 -1
  72. data/app/pb_kits/playbook/pb_currency/docs/_currency_small.jsx +5 -2
  73. data/app/pb_kits/playbook/pb_dashboard_value/_dashboard_value.jsx +2 -2
  74. data/app/pb_kits/playbook/pb_date/_date.jsx +39 -15
  75. data/app/pb_kits/playbook/pb_date/docs/_date_default.jsx +3 -1
  76. data/app/pb_kits/playbook/pb_date_range_inline/_date_range_inline.jsx +43 -37
  77. data/app/pb_kits/playbook/pb_date_range_inline/docs/_date_range_inline_default.jsx +2 -2
  78. data/app/pb_kits/playbook/pb_date_range_stacked/_date_range_stacked.jsx +6 -16
  79. data/app/pb_kits/playbook/pb_date_stacked/_date_stacked.jsx +21 -18
  80. data/app/pb_kits/playbook/pb_date_time_stacked/_date_time_stacked.jsx +30 -33
  81. data/app/pb_kits/playbook/pb_date_year_stacked/_date_year_stacked.jsx +10 -15
  82. data/app/pb_kits/playbook/pb_distribution_bar/_distribution_bar.jsx +8 -8
  83. data/app/pb_kits/playbook/pb_file_upload/_file_upload.jsx +13 -23
  84. data/app/pb_kits/playbook/pb_filter/Filter/FilterBackground.jsx +16 -14
  85. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.jsx +13 -12
  86. data/app/pb_kits/playbook/pb_flex/_flex.jsx +35 -20
  87. data/app/pb_kits/playbook/pb_flex/_flex_item.jsx +6 -9
  88. data/app/pb_kits/playbook/pb_form_pill/_form_pill.jsx +14 -19
  89. data/app/pb_kits/playbook/pb_hashtag/_hashtag.jsx +26 -22
  90. data/app/pb_kits/playbook/pb_highlight/_highlight.jsx +13 -12
  91. data/app/pb_kits/playbook/pb_home_address_street/_home_address_street.jsx +85 -80
  92. data/app/pb_kits/playbook/pb_icon/_icon.jsx +54 -33
  93. data/app/pb_kits/playbook/pb_icon_circle/_icon_circle.jsx +13 -9
  94. data/app/pb_kits/playbook/pb_icon_value/_icon_value.jsx +16 -20
  95. data/app/pb_kits/playbook/pb_image/_image.jsx +12 -10
  96. data/app/pb_kits/playbook/pb_label_pill/_label_pill.html.erb +1 -0
  97. data/app/pb_kits/playbook/pb_label_pill/_label_pill.jsx +49 -14
  98. data/app/pb_kits/playbook/pb_label_pill/docs/_label_pill_default.jsx +50 -0
  99. data/app/pb_kits/playbook/pb_label_pill/docs/example.yml +4 -3
  100. data/app/pb_kits/playbook/pb_label_pill/docs/index.js +1 -0
  101. data/app/pb_kits/playbook/pb_label_pill/label_pill.rb +1 -1
  102. data/app/pb_kits/playbook/pb_label_value/_label_value.html.erb +1 -0
  103. data/app/pb_kits/playbook/pb_label_value/_label_value.jsx +30 -18
  104. data/app/pb_kits/playbook/pb_layout/_layout.jsx +51 -45
  105. data/app/pb_kits/playbook/pb_layout/_layout.scss +76 -57
  106. data/app/pb_kits/playbook/pb_layout/docs/_layout_collection.html.erb +54 -0
  107. data/app/pb_kits/playbook/pb_layout/docs/_layout_collection.jsx +27 -0
  108. data/app/pb_kits/playbook/pb_layout/docs/example.yml +2 -0
  109. data/app/pb_kits/playbook/pb_layout/docs/index.js +1 -0
  110. data/app/pb_kits/playbook/pb_layout/layout.rb +10 -2
  111. data/app/pb_kits/playbook/pb_legend/_legend.jsx +17 -15
  112. data/app/pb_kits/playbook/pb_line_graph/_line_graph.jsx +9 -2
  113. data/app/pb_kits/playbook/pb_line_graph/docs/_description.md +3 -1
  114. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_default.html.erb +8 -8
  115. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_default.jsx +1 -1
  116. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_height.html.erb +26 -0
  117. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_height.jsx +35 -0
  118. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend.html.erb +15 -0
  119. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend.jsx +23 -0
  120. data/app/pb_kits/playbook/pb_line_graph/docs/example.yml +5 -1
  121. data/app/pb_kits/playbook/pb_line_graph/docs/index.js +2 -0
  122. data/app/pb_kits/playbook/pb_line_graph/line_graph.rb +6 -0
  123. data/app/pb_kits/playbook/pb_list/_list.jsx +24 -21
  124. data/app/pb_kits/playbook/pb_list/docs/_description.md +7 -1
  125. data/app/pb_kits/playbook/pb_list/docs/_list_layout_left.html.erb +8 -0
  126. data/app/pb_kits/playbook/pb_list/docs/_list_layout_right.html.erb +8 -0
  127. data/app/pb_kits/playbook/pb_list/docs/example.yml +2 -0
  128. data/app/pb_kits/playbook/pb_loading_inline/_loading_inline.jsx +21 -19
  129. data/app/pb_kits/playbook/pb_logistic/_logistic.html.erb +1 -0
  130. data/app/pb_kits/playbook/pb_logistic/_logistic.jsx +26 -11
  131. data/app/pb_kits/playbook/pb_message/_message.html.erb +1 -0
  132. data/app/pb_kits/playbook/pb_message/_message.jsx +33 -11
  133. data/app/pb_kits/playbook/pb_message/docs/_message_default.jsx +1 -2
  134. data/app/pb_kits/playbook/pb_message/message.rb +1 -1
  135. data/app/pb_kits/playbook/pb_multiple_users/_multiple_users.jsx +10 -10
  136. data/app/pb_kits/playbook/pb_multiple_users_stacked/_multiple_users_stacked.jsx +7 -19
  137. data/app/pb_kits/playbook/pb_nav/_nav.jsx +17 -14
  138. data/app/pb_kits/playbook/pb_online_status/_online_status.jsx +5 -13
  139. data/app/pb_kits/playbook/pb_person/_person.html.erb +9 -2
  140. data/app/pb_kits/playbook/pb_person/_person.jsx +36 -18
  141. data/app/pb_kits/playbook/pb_person/docs/_person_default.html.erb +5 -1
  142. data/app/pb_kits/playbook/pb_person_contact/_person_contact.html.erb +1 -0
  143. data/app/pb_kits/playbook/pb_person_contact/_person_contact.jsx +73 -21
  144. data/app/pb_kits/playbook/pb_person_contact/docs/_person_contact_with_wrong_numbers.jsx +32 -0
  145. data/app/pb_kits/playbook/pb_person_contact/docs/example.yml +2 -0
  146. data/app/pb_kits/playbook/pb_person_contact/docs/index.js +1 -0
  147. data/app/pb_kits/playbook/pb_pill/_pill.jsx +5 -10
  148. data/app/pb_kits/playbook/pb_popover/_popover.jsx +52 -41
  149. data/app/pb_kits/playbook/pb_progress_pills/_progress_pills.html.erb +1 -0
  150. data/app/pb_kits/playbook/pb_progress_pills/_progress_pills.jsx +41 -13
  151. data/app/pb_kits/playbook/pb_progress_simple/_progress_simple.jsx +15 -12
  152. data/app/pb_kits/playbook/pb_progress_step/_progress_step.jsx +17 -10
  153. data/app/pb_kits/playbook/pb_radio/_radio.jsx +3 -1
  154. data/app/pb_kits/playbook/pb_section_separator/_section_separator.html.erb +1 -0
  155. data/app/pb_kits/playbook/pb_section_separator/_section_separator.jsx +30 -15
  156. data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_text.jsx +3 -1
  157. data/app/pb_kits/playbook/pb_select/_select.jsx +4 -2
  158. data/app/pb_kits/playbook/pb_selectable_card/_selectable_card.jsx +12 -7
  159. data/app/pb_kits/playbook/pb_selectable_card_icon/_selectable_card_icon.html.erb +30 -0
  160. data/app/pb_kits/playbook/pb_selectable_card_icon/_selectable_card_icon.jsx +97 -0
  161. data/app/pb_kits/playbook/pb_selectable_card_icon/_selectable_card_icon.scss +74 -0
  162. data/app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_checkmark.html.erb +29 -0
  163. data/app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_checkmark.jsx +41 -0
  164. data/app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_dark.html.erb +30 -0
  165. data/app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_dark.jsx +40 -0
  166. data/app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_default.html.erb +26 -0
  167. data/app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_default.jsx +37 -0
  168. data/app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_single_select.html.erb +27 -0
  169. data/app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_single_select.jsx +40 -0
  170. data/app/pb_kits/playbook/pb_selectable_card_icon/docs/example.yml +16 -0
  171. data/app/pb_kits/playbook/pb_selectable_card_icon/docs/index.js +4 -0
  172. data/app/pb_kits/playbook/pb_selectable_card_icon/selectable_card_icon.rb +50 -0
  173. data/app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.html.erb +24 -0
  174. data/app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.jsx +107 -0
  175. data/app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.scss +85 -0
  176. data/app/pb_kits/playbook/pb_selectable_icon/docs/_selectable_icon_dark.html.erb +26 -0
  177. data/app/pb_kits/playbook/pb_selectable_icon/docs/_selectable_icon_dark.jsx +43 -0
  178. data/app/pb_kits/playbook/pb_selectable_icon/docs/_selectable_icon_default.html.erb +23 -0
  179. data/app/pb_kits/playbook/pb_selectable_icon/docs/_selectable_icon_default.jsx +40 -0
  180. data/app/pb_kits/playbook/pb_selectable_icon/docs/_selectable_icon_single_select.html.erb +27 -0
  181. data/app/pb_kits/playbook/pb_selectable_icon/docs/_selectable_icon_single_select.jsx +46 -0
  182. data/app/pb_kits/playbook/pb_selectable_icon/docs/example.yml +12 -0
  183. data/app/pb_kits/playbook/pb_selectable_icon/docs/index.js +3 -0
  184. data/app/pb_kits/playbook/pb_selectable_icon/selectable_icon.rb +55 -0
  185. data/app/pb_kits/playbook/pb_source/_source.jsx +113 -13
  186. data/app/pb_kits/playbook/pb_source/docs/_source_default.html.erb +3 -1
  187. data/app/pb_kits/playbook/pb_source/docs/_source_default.jsx +37 -0
  188. data/app/pb_kits/playbook/pb_source/docs/_source_noicon.jsx +40 -0
  189. data/app/pb_kits/playbook/pb_source/docs/_source_types.jsx +85 -0
  190. data/app/pb_kits/playbook/pb_source/docs/example.yml +3 -0
  191. data/app/pb_kits/playbook/pb_source/docs/index.js +5 -0
  192. data/app/pb_kits/playbook/pb_star_rating/_star_rating.html.erb +6 -2
  193. data/app/pb_kits/playbook/pb_star_rating/_star_rating.jsx +98 -13
  194. data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_default.jsx +28 -0
  195. data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_hide.jsx +13 -0
  196. data/app/pb_kits/playbook/pb_star_rating/docs/example.yml +2 -1
  197. data/app/pb_kits/playbook/pb_star_rating/docs/index.js +3 -0
  198. data/app/pb_kits/playbook/pb_star_rating/star_rating.rb +2 -1
  199. data/app/pb_kits/playbook/pb_stat_change/_stat_change.jsx +14 -13
  200. data/app/pb_kits/playbook/pb_stat_value/_stat_value.jsx +2 -1
  201. data/app/pb_kits/playbook/pb_table/_table.jsx +29 -28
  202. data/app/pb_kits/playbook/pb_table/_table.scss +1 -1
  203. data/app/pb_kits/playbook/pb_table/_table_row.jsx +6 -7
  204. data/app/pb_kits/playbook/pb_table/docs/_table_side_highlight.html.erb +52 -8
  205. data/app/pb_kits/playbook/pb_table/docs/_table_side_highlight.jsx +52 -8
  206. data/app/pb_kits/playbook/pb_table/docs/_table_side_highlight.md +3 -1
  207. data/app/pb_kits/playbook/pb_text_input/_text_input.html.erb +5 -3
  208. data/app/pb_kits/playbook/pb_text_input/_text_input.jsx +21 -5
  209. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_default.html.erb +31 -5
  210. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_default.jsx +3 -0
  211. data/app/pb_kits/playbook/pb_text_input/text_input.rb +1 -1
  212. data/app/pb_kits/playbook/pb_textarea/_textarea.jsx +2 -1
  213. data/app/pb_kits/playbook/pb_time_range_inline/_time_range_inline.jsx +38 -18
  214. data/app/pb_kits/playbook/pb_time_stacked/_time_stacked.jsx +12 -11
  215. data/app/pb_kits/playbook/pb_timeline/_item.html.erb +28 -0
  216. data/app/pb_kits/playbook/pb_timeline/_item.jsx +54 -0
  217. data/app/pb_kits/playbook/pb_timeline/_timeline.html.erb +6 -0
  218. data/app/pb_kits/playbook/pb_timeline/_timeline.jsx +43 -0
  219. data/app/pb_kits/playbook/pb_timeline/_timeline.scss +271 -0
  220. data/app/pb_kits/playbook/pb_timeline/docs/_description.md +3 -0
  221. data/app/pb_kits/playbook/pb_timeline/docs/_timeline_default.html.erb +43 -0
  222. data/app/pb_kits/playbook/pb_timeline/docs/_timeline_default.jsx +73 -0
  223. data/app/pb_kits/playbook/pb_timeline/docs/_timeline_vertical.html.erb +43 -0
  224. data/app/pb_kits/playbook/pb_timeline/docs/_timeline_vertical.jsx +73 -0
  225. data/app/pb_kits/playbook/pb_timeline/docs/_timeline_with_date.html.erb +44 -0
  226. data/app/pb_kits/playbook/pb_timeline/docs/_timeline_with_date.jsx +85 -0
  227. data/app/pb_kits/playbook/pb_timeline/docs/example.yml +13 -0
  228. data/app/pb_kits/playbook/pb_timeline/docs/index.js +3 -0
  229. data/app/pb_kits/playbook/pb_timeline/item.rb +25 -0
  230. data/app/pb_kits/playbook/pb_timeline/timeline.rb +27 -0
  231. data/app/pb_kits/playbook/pb_timestamp/_timestamp.jsx +7 -14
  232. data/app/pb_kits/playbook/pb_title/_title.jsx +12 -13
  233. data/app/pb_kits/playbook/pb_title/docs/_title_light.html.erb +1 -1
  234. data/app/pb_kits/playbook/pb_title_count/_title_count.jsx +49 -28
  235. data/app/pb_kits/playbook/pb_title_count/docs/_title_count_align.jsx +31 -0
  236. data/app/pb_kits/playbook/pb_title_count/docs/_title_count_default.jsx +13 -2
  237. data/app/pb_kits/playbook/pb_title_count/docs/example.yml +4 -5
  238. data/app/pb_kits/playbook/pb_title_count/docs/index.js +1 -0
  239. data/app/pb_kits/playbook/pb_title_detail/_title_detail.jsx +7 -18
  240. data/app/pb_kits/playbook/pb_toggle/_toggle.jsx +9 -11
  241. data/app/pb_kits/playbook/pb_user/_user.jsx +37 -37
  242. data/app/pb_kits/playbook/pb_user_badge/_user_badge.jsx +7 -7
  243. data/app/pb_kits/playbook/pb_weekday_stacked/_weekday_stacked.jsx +32 -30
  244. data/app/pb_kits/playbook/plugins/pb_chart.js +4 -0
  245. data/app/pb_kits/playbook/props.rb +48 -0
  246. data/app/pb_kits/playbook/tokens/_colors.scss +3 -3
  247. data/app/pb_kits/playbook/tokens/_spacing.scss +1 -0
  248. data/app/pb_kits/playbook/utilities/_spacing.scss +42 -0
  249. data/app/pb_kits/playbook/utilities/spacing.js +33 -0
  250. data/app/views/playbook/samples/dashboards/index.html.erb +3 -1
  251. data/app/views/playbook/samples/registration/index.html.erb +316 -0
  252. data/app/views/playbook/samples/registration/index.jsx +476 -0
  253. data/lib/playbook/version.rb +1 -1
  254. metadata +88 -4
@@ -0,0 +1,271 @@
1
+ @import "../tokens/colors";
2
+ @import "../tokens/spacing";
3
+ @import "../tokens/opacity";
4
+ @import "../tokens/typography";
5
+
6
+ $connector_width: 2px;
7
+ $icon_margin: $space_xs/2;
8
+ $icon_height: 28px;
9
+ $height_from_top: $icon_height/2 - $connector_width/2;
10
+
11
+ @mixin pb_timeline_line_solid($width, $height, $margin) {
12
+ width: $width;
13
+ height: $height;
14
+ background-color: $border_light;
15
+ margin: $margin;
16
+ flex-grow: 1;
17
+ }
18
+
19
+ @mixin pb_timeline_line_dotted_horizontal($width, $height, $margin) {
20
+ width: $width;
21
+ height: $height;
22
+ background: repeating-linear-gradient(to right, $border_light 0px ,$border_light 2px, transparent 3px, transparent 10px);
23
+ margin: $margin;
24
+ flex-grow: 1;
25
+ }
26
+
27
+ @mixin pb_timeline_line_dotted_vertical($width, $height, $margin) {
28
+ width: $width;
29
+ height: $height;
30
+ background: repeating-linear-gradient(0deg, $border_light 0px ,$border_light 2px, transparent 3px, transparent 10px);
31
+ margin: $margin;
32
+ flex-grow: 1;
33
+ }
34
+
35
+ @mixin flex_wrapper($flex_direction) {
36
+ display: flex;
37
+ flex-direction: $flex_direction;
38
+ }
39
+
40
+ [class^=pb_timeline_kit] {
41
+ &[class*=_horizontal] {
42
+ @include flex_wrapper(row);
43
+ width: 100%;
44
+ >div {
45
+ &:last-child {
46
+ flex-basis: auto !important;
47
+ [class=pb_timeline_item_step] {
48
+ [class=pb_timeline_item_connector] {
49
+ opacity: 0;
50
+ }
51
+ }
52
+ [class=pb_timeline_item_right_block] {
53
+ display: block;
54
+ width: 100%;
55
+ overflow: hidden;
56
+ white-space: nowrap;
57
+ }
58
+ }
59
+ }
60
+ [class*=pb_timeline_item_kit] {
61
+ &[class*=_solid] {
62
+ flex-basis: 100%;
63
+ [class=pb_timeline_item_left_block] {
64
+ height: 0px;
65
+ }
66
+ [class=pb_timeline_item_step] {
67
+ @include flex_wrapper(row);
68
+ margin-top: $space_xs;
69
+ margin-bottom: $space_xs;
70
+ [class=pb_timeline_item_connector] {
71
+ @include pb_timeline_line_solid($connector_width, $connector_width, $height_from_top $icon_margin 0 $icon_margin );
72
+ }
73
+ }
74
+ }
75
+ &[class*=_dotted] {
76
+ flex-basis: 100%;
77
+ [class=pb_timeline_item_left_block] {
78
+ height: 0;
79
+ }
80
+ [class=pb_timeline_item_step] {
81
+ @include flex_wrapper(row);
82
+ margin-top: $space_xs;
83
+ margin-bottom: $space_xs;
84
+ [class=pb_timeline_item_connector] {
85
+ @include pb_timeline_line_dotted_horizontal($connector_width, $connector_width, $height_from_top $icon_margin 0 $icon_margin );
86
+ }
87
+ }
88
+ }
89
+ }
90
+ &[class*=_with_date] {
91
+ @include flex_wrapper(row);
92
+ width: 100%;
93
+ >div {
94
+ &:last-child {
95
+ flex-basis: auto !important;
96
+ [class=pb_timeline_item_step] {
97
+ [class=pb_timeline_item_connector] {
98
+ opacity: 0;
99
+ }
100
+ }
101
+ [class=pb_timeline_item_right_block] {
102
+ display: block;
103
+ width: 100%;
104
+ overflow: hidden;
105
+ white-space: nowrap;
106
+ }
107
+ }
108
+ }
109
+ [class*=pb_timeline_item_kit] {
110
+ &[class*=_solid] {
111
+ flex-basis: 100%;
112
+ [class=pb_timeline_item_left_block] {
113
+ @include flex_wrapper(column);
114
+ height: 55px;
115
+ justify-content: flex-end;
116
+ [class=pb_date_stacked_kit_center_sm] {
117
+ [class=pb_date_stacked_day_month] {
118
+ [class=pb_caption_kit_md] {
119
+ text-align: left;
120
+ }
121
+ [class=pb_title_kit_4] {
122
+ text-align: left;
123
+ }
124
+ }
125
+ }
126
+ }
127
+ [class=pb_timeline_item_step] {
128
+ @include flex_wrapper(row);
129
+ margin-top: $space_xs;
130
+ margin-bottom: $space_xs;
131
+ [class=pb_timeline_item_connector] {
132
+ @include pb_timeline_line_solid($connector_width, $connector_width, $height_from_top $icon_margin 0 $icon_margin );
133
+ }
134
+ }
135
+ }
136
+ &[class*=_dotted] {
137
+ flex-basis: 100%;
138
+ [class=pb_timeline_item_left_block] {
139
+ height: 55px;
140
+ [class=pb_date_stacked_kit_center_sm] {
141
+ [class=pb_date_stacked_day_month] {
142
+ [class=pb_caption_kit_md] {
143
+ text-align: left;
144
+ }
145
+ [class=pb_title_kit_4] {
146
+ text-align: left;
147
+ }
148
+ }
149
+ }
150
+ }
151
+ [class=pb_timeline_item_step] {
152
+ @include flex_wrapper(row);
153
+ margin-top: $space_xs;
154
+ margin-bottom: $space_xs;
155
+ [class=pb_timeline_item_connector] {
156
+ @include pb_timeline_line_dotted_horizontal($connector_width, $connector_width, $height_from_top $icon_margin 0 $icon_margin );
157
+ }
158
+ }
159
+ }
160
+ }
161
+ }
162
+ }
163
+ &[class*=_vertical] {
164
+ @include flex_wrapper(column);
165
+ align-items: flex-start;
166
+ align-self: auto;
167
+ >div:last-child {
168
+ [class=pb_timeline_item_step] {
169
+ [class=pb_timeline_item_connector] {
170
+ opacity: 0;
171
+ }
172
+ }
173
+ }
174
+ [class*=pb_timeline_item_kit] {
175
+ @include flex_wrapper(row);
176
+ &[class*=_solid] {
177
+ flex-basis: 100%;
178
+ [class=pb_timeline_item_step] {
179
+ @include flex_wrapper(column);
180
+ align-content: flex-start;
181
+ margin-right: $space_sm;
182
+ margin-left: $space_sm;
183
+ [class=pb_timeline_item_connector] {
184
+ @include pb_timeline_line_solid($connector_width, $connector_width, $icon_margin 0 $icon_margin $height_from_top);
185
+ }
186
+ }
187
+ [class=pb_timeline_item_left_block] {
188
+ margin-bottom: $space_lg;
189
+ width: 0px;
190
+ }
191
+ [class=pb_timeline_item_right_block] {
192
+ @include flex_wrapper(column);
193
+ margin-bottom: $space_lg;
194
+ }
195
+ }
196
+ &[class*=_dotted] {
197
+ flex-basis: 100%;
198
+ [class=pb_timeline_item_step] {
199
+ @include flex_wrapper(column);
200
+ margin-right: $space_sm;
201
+ margin-left: $space_sm;
202
+ [class=pb_timeline_item_connector] {
203
+ @include pb_timeline_line_dotted_vertical($connector_width, $connector_width, $icon_margin 0 $icon_margin $height_from_top);
204
+ }
205
+ }
206
+ [class=pb_timeline_item_left_block] {
207
+ margin-bottom: $space_lg;
208
+ width: 0px;
209
+ }
210
+ [class=pb_timeline_item_right_block] {
211
+ @include flex_wrapper(column);
212
+ margin-bottom: $space_lg;
213
+ }
214
+ }
215
+ }
216
+ &[class*=_with_date] {
217
+ @include flex_wrapper(column);
218
+ align-items: flex-start;
219
+ align-self: auto;
220
+ >div:last-child {
221
+ [class=pb_timeline_item_step] {
222
+ [class=pb_timeline_item_connector] {
223
+ opacity: 0;
224
+ }
225
+ }
226
+ }
227
+ [class*=pb_timeline_item_kit] {
228
+ @include flex_wrapper(row);
229
+ &[class*=_solid] {
230
+ flex-basis: 100%;
231
+ [class=pb_timeline_item_step] {
232
+ @include flex_wrapper(column);
233
+ align-content: flex-start;
234
+ margin-right: $space_sm;
235
+ margin-left: $space_sm;
236
+ [class=pb_timeline_item_connector] {
237
+ @include pb_timeline_line_solid($connector_width, $connector_width, $icon_margin 0 $icon_margin $height_from_top);
238
+ }
239
+ }
240
+ [class=pb_timeline_item_left_block] {
241
+ margin-bottom: $space_lg;
242
+ width: $space_lg;
243
+ }
244
+ [class=pb_timeline_item_right_block] {
245
+ @include flex_wrapper(column);
246
+ margin-bottom: $space_lg;
247
+ }
248
+ }
249
+ &[class*=_dotted] {
250
+ flex-basis: 100%;
251
+ [class=pb_timeline_item_step] {
252
+ @include flex_wrapper(column);
253
+ margin-right: $space_sm;
254
+ margin-left: $space_sm;
255
+ [class=pb_timeline_item_connector] {
256
+ @include pb_timeline_line_dotted_vertical($connector_width, $connector_width, $icon_margin 0 $icon_margin $height_from_top);
257
+ }
258
+ }
259
+ [class=pb_timeline_item_left_block] {
260
+ margin-bottom: $space_lg;
261
+ width: $space_lg;
262
+ }
263
+ [class=pb_timeline_item_right_block] {
264
+ @include flex_wrapper(column);
265
+ margin-bottom: $space_lg;
266
+ }
267
+ }
268
+ }
269
+ }
270
+ }
271
+ }
@@ -0,0 +1,3 @@
1
+ The timeline kit can use two different line styles in the same timeline - `solid` and `dotted` line styles.
2
+
3
+ To view different colors of icon circle, visit <a href="https://playbook.powerapp.cloud/kits/icon_circle">Icon Circle Kit</a>.
@@ -0,0 +1,43 @@
1
+ <%= pb_rails("timeline") do %>
2
+ <%= pb_rails("timeline/item", props: {icon: "user", icon_color: "royal"}) do %>
3
+ <%= pb_rails("body", props: {
4
+ text: "Conversation started",
5
+ color: "light"
6
+ }) %>
7
+ <% end %>
8
+ <%= pb_rails("timeline/item", props: {icon: "check", icon_color: "teal"}) do %>
9
+ <%= pb_rails("body", props: {
10
+ text: "Trip #12422",
11
+ color: "light"
12
+ }) %>
13
+ <% end %>
14
+ <%= pb_rails("timeline/item", props: {icon: "credit-card", icon_color: "red"}) do %>
15
+ <%= pb_rails("body", props: {
16
+ text: "Refund issue #12422",
17
+ color: "light"
18
+ }) %>
19
+ <% end %>
20
+ <%= pb_rails("timeline/item", props: {icon: "smile", icon_color: "green"}) do %>
21
+ <%= pb_rails("body", props: {
22
+ text: "Conversation resolved",
23
+ color: "light"
24
+ }) %>
25
+ <% end %>
26
+ <% end %>
27
+
28
+ <br /><br />
29
+
30
+ <%= pb_rails("timeline") do %>
31
+ <%= pb_rails("timeline/item", props: {icon: "user", icon_color: "royal", line_style: "dotted" }) do %>
32
+ <%= pb_rails("title_detail", props: {
33
+ title: "Jackson Heights",
34
+ detail: "37-27 74th Street"
35
+ }) %>
36
+ <% end %>
37
+ <%= pb_rails("timeline/item", props: {icon: "check", icon_color: "teal" }) do %>
38
+ <%= pb_rails("title_detail", props: {
39
+ title: "Greenpoint",
40
+ detail: "81 Gate St Brooklyn"
41
+ }) %>
42
+ <% end %>
43
+ <% end %>
@@ -0,0 +1,73 @@
1
+ import React from 'react'
2
+ import Timeline from '../_timeline.jsx'
3
+ import { Body, TitleDetail } from '../../'
4
+
5
+ const TimelineDefault = () => (
6
+ <div>
7
+ <Timeline>
8
+ <Timeline.Item
9
+ icon="user"
10
+ iconColor="royal"
11
+ >
12
+ <Body
13
+ color="light"
14
+ text="Conversation started"
15
+ />
16
+ </Timeline.Item>
17
+ <Timeline.Item
18
+ icon="check"
19
+ iconColor="teal"
20
+ >
21
+ <Body
22
+ color="light"
23
+ text="Trip #12422"
24
+ />
25
+ </Timeline.Item>
26
+ <Timeline.Item
27
+ icon="credit-card"
28
+ iconColor="red"
29
+ >
30
+ <Body
31
+ color="light"
32
+ text="Refund issue #12422"
33
+ />
34
+ </Timeline.Item>
35
+ <Timeline.Item
36
+ icon="smile"
37
+ iconColor="green"
38
+ >
39
+ <Body
40
+ color="light"
41
+ text="Conversation resolved"
42
+ />
43
+ </Timeline.Item>
44
+ </Timeline>
45
+
46
+ <br />
47
+ <br />
48
+
49
+ <Timeline>
50
+ <Timeline.Item
51
+ icon="user"
52
+ iconColor="royal"
53
+ lineStyle="dotted"
54
+ >
55
+ <TitleDetail
56
+ detail="37-27 74th Street"
57
+ title="Jackson heights"
58
+ />
59
+ </Timeline.Item>
60
+ <Timeline.Item
61
+ icon="check"
62
+ iconColor="teal"
63
+ >
64
+ <TitleDetail
65
+ detail="81 Gate St Brooklyn"
66
+ title="Greenpoint"
67
+ />
68
+ </Timeline.Item>
69
+ </Timeline>
70
+ </div>
71
+ )
72
+
73
+ export default TimelineDefault
@@ -0,0 +1,43 @@
1
+ <%= pb_rails("timeline", props: {orientation: "vertical"}) do %>
2
+ <%= pb_rails("timeline/item", props: {icon: "user", icon_color: "royal"}) do %>
3
+ <%= pb_rails("body", props: {
4
+ text: "Conversation started",
5
+ color: "light"
6
+ }) %>
7
+ <% end %>
8
+ <%= pb_rails("timeline/item", props: {icon: "check", icon_color: "teal"}) do %>
9
+ <%= pb_rails("body", props: {
10
+ text: "Trip #12422",
11
+ color: "light"
12
+ }) %>
13
+ <% end %>
14
+ <%= pb_rails("timeline/item", props: {icon: "credit-card", icon_color: "red"}) do %>
15
+ <%= pb_rails("body", props: {
16
+ text: "Refund issue #12422",
17
+ color: "light"
18
+ }) %>
19
+ <% end %>
20
+ <%= pb_rails("timeline/item", props: {icon: "smile", icon_color: "green"}) do %>
21
+ <%= pb_rails("body", props: {
22
+ text: "Conversation resolved",
23
+ color: "light"
24
+ }) %>
25
+ <% end %>
26
+ <% end %>
27
+
28
+ <br /><br />
29
+
30
+ <%= pb_rails("timeline", props: {orientation: "vertical"}) do %>
31
+ <%= pb_rails("timeline/item", props: {icon: "user", icon_color: "royal", line_style: "dotted"}) do %>
32
+ <%= pb_rails("title_detail", props: {
33
+ title: "Jackson Heights",
34
+ detail: "37-27 74th Street"
35
+ }) %>
36
+ <% end %>
37
+ <%= pb_rails("timeline/item", props: {icon: "check", icon_color: "teal" }) do %>
38
+ <%= pb_rails("title_detail", props: {
39
+ title: "Greenpoint",
40
+ detail: "81 Gate St Brooklyn"
41
+ }) %>
42
+ <% end %>
43
+ <% end %>
@@ -0,0 +1,73 @@
1
+ import React from 'react'
2
+ import Timeline from '../_timeline.jsx'
3
+ import { Body, TitleDetail } from '../../'
4
+
5
+ const TimelineVertical = () => (
6
+ <div>
7
+ <Timeline orientation="vertical">
8
+ <Timeline.Item
9
+ icon="user"
10
+ iconColor="royal"
11
+ >
12
+ <Body
13
+ color="light"
14
+ text="Conversation started"
15
+ />
16
+ </Timeline.Item>
17
+ <Timeline.Item
18
+ icon="check"
19
+ iconColor="teal"
20
+ >
21
+ <Body
22
+ color="light"
23
+ text="Trip #12422"
24
+ />
25
+ </Timeline.Item>
26
+ <Timeline.Item
27
+ icon="credit-card"
28
+ iconColor="red"
29
+ >
30
+ <Body
31
+ color="light"
32
+ text="Refund issue #12422"
33
+ />
34
+ </Timeline.Item>
35
+ <Timeline.Item
36
+ icon="smile"
37
+ iconColor="green"
38
+ >
39
+ <Body
40
+ color="light"
41
+ text="Conversation resolved"
42
+ />
43
+ </Timeline.Item>
44
+ </Timeline>
45
+
46
+ <br />
47
+ <br />
48
+
49
+ <Timeline orientation="vertical">
50
+ <Timeline.Item
51
+ icon="user"
52
+ iconColor="royal"
53
+ lineStyle="dotted"
54
+ >
55
+ <TitleDetail
56
+ detail="37-27 74th Street"
57
+ title="Jackson heights"
58
+ />
59
+ </Timeline.Item>
60
+ <Timeline.Item
61
+ icon="check"
62
+ iconColor="teal"
63
+ >
64
+ <TitleDetail
65
+ detail="81 Gate St Brooklyn"
66
+ title="Greenpoint"
67
+ />
68
+ </Timeline.Item>
69
+ </Timeline>
70
+ </div>
71
+ )
72
+
73
+ export default TimelineVertical