playbook_ui 6.6.1 → 6.7.0.pre.alpha1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (266) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/playbook/application_controller.rb +3 -1
  3. data/app/controllers/playbook/pages_controller.rb +21 -1
  4. data/app/helpers/playbook/application_helper.rb +19 -0
  5. data/app/helpers/playbook/pb_kit_helper.rb +18 -2
  6. data/app/pb_kits/playbook/config/_kit_example.html.erb +3 -3
  7. data/app/pb_kits/playbook/config/_kit_ui.html.erb +2 -1
  8. data/app/pb_kits/playbook/config/_pb_kit_api.html.erb +10 -12
  9. data/app/pb_kits/playbook/packs/site_styles/_site-style.scss +15 -4
  10. data/app/pb_kits/playbook/packs/site_styles/docs/_kit_doc.scss +26 -73
  11. data/app/pb_kits/playbook/packs/site_styles/docs/_kits_examples.scss +0 -3
  12. data/app/pb_kits/playbook/packs/site_styles/docs/_markdown.scss +8 -2
  13. data/app/pb_kits/playbook/pb_avatar/_avatar.jsx +8 -3
  14. data/app/pb_kits/playbook/pb_avatar/docs/_avatar_default.jsx +6 -1
  15. data/app/pb_kits/playbook/pb_avatar/docs/_avatar_monogram.jsx +6 -1
  16. data/app/pb_kits/playbook/pb_avatar/docs/_avatar_status.jsx +5 -1
  17. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_actions.jsx +3 -1
  18. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_default.jsx +2 -1
  19. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_on_click.jsx +2 -1
  20. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_placement.jsx +5 -1
  21. data/app/pb_kits/playbook/pb_avatar_action_button/docs/example.yml +1 -9
  22. data/app/pb_kits/playbook/pb_avatar_action_button/docs/index.js +0 -4
  23. data/app/pb_kits/playbook/pb_badge/docs/_badge_colors.jsx +19 -1
  24. data/app/pb_kits/playbook/pb_badge/docs/_badge_default.jsx +4 -1
  25. data/app/pb_kits/playbook/pb_badge/docs/_badge_rounded.jsx +4 -1
  26. data/app/pb_kits/playbook/pb_badge/docs/example.yml +1 -2
  27. data/app/pb_kits/playbook/pb_badge/docs/index.js +0 -1
  28. data/app/pb_kits/playbook/pb_body/docs/_body_block.jsx +2 -2
  29. data/app/pb_kits/playbook/pb_body/docs/_body_light.jsx +6 -1
  30. data/app/pb_kits/playbook/pb_body/docs/example.yml +2 -4
  31. data/app/pb_kits/playbook/pb_body/docs/index.js +0 -1
  32. data/app/pb_kits/playbook/pb_button/docs/_button_accessibility.jsx +2 -1
  33. data/app/pb_kits/playbook/pb_button/docs/_button_block_content.jsx +2 -1
  34. data/app/pb_kits/playbook/pb_button/docs/_button_default.jsx +6 -2
  35. data/app/pb_kits/playbook/pb_button/docs/_button_full_width.jsx +2 -1
  36. data/app/pb_kits/playbook/pb_button/docs/_button_link.jsx +4 -1
  37. data/app/pb_kits/playbook/pb_button/docs/_button_loading.jsx +4 -1
  38. data/app/pb_kits/playbook/pb_button/docs/_button_options.jsx +2 -1
  39. data/app/pb_kits/playbook/pb_button/docs/example.yml +0 -2
  40. data/app/pb_kits/playbook/pb_button/docs/index.js +0 -1
  41. data/app/pb_kits/playbook/pb_caption/docs/_caption_light.jsx +7 -2
  42. data/app/pb_kits/playbook/pb_caption/docs/example.yml +2 -6
  43. data/app/pb_kits/playbook/pb_caption/docs/index.js +0 -1
  44. data/app/pb_kits/playbook/pb_card/_card.scss +0 -3
  45. data/app/pb_kits/playbook/pb_card/docs/_card_border_none.jsx +7 -4
  46. data/app/pb_kits/playbook/pb_card/docs/_card_content.jsx +3 -3
  47. data/app/pb_kits/playbook/pb_card/docs/_card_header.jsx +39 -13
  48. data/app/pb_kits/playbook/pb_card/docs/_card_highlight.jsx +13 -4
  49. data/app/pb_kits/playbook/pb_card/docs/_card_light.jsx +2 -2
  50. data/app/pb_kits/playbook/pb_card/docs/_card_padding.jsx +37 -7
  51. data/app/pb_kits/playbook/pb_card/docs/_card_selected.jsx +8 -3
  52. data/app/pb_kits/playbook/pb_card/docs/_card_separator.jsx +13 -4
  53. data/app/pb_kits/playbook/pb_card/docs/_card_shadow.jsx +25 -5
  54. data/app/pb_kits/playbook/pb_card/docs/example.yml +0 -2
  55. data/app/pb_kits/playbook/pb_card/docs/index.js +0 -1
  56. data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_checked.jsx +2 -1
  57. data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_custom.jsx +5 -2
  58. data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_default.jsx +2 -1
  59. data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_error.jsx +2 -1
  60. data/app/pb_kits/playbook/pb_checkbox/docs/example.yml +0 -4
  61. data/app/pb_kits/playbook/pb_checkbox/docs/index.js +0 -2
  62. data/app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_click.jsx +2 -1
  63. data/app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_default.jsx +5 -1
  64. data/app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_link.jsx +3 -1
  65. data/app/pb_kits/playbook/pb_circle_icon_button/docs/example.yml +0 -2
  66. data/app/pb_kits/playbook/pb_circle_icon_button/docs/index.js +0 -1
  67. data/app/pb_kits/playbook/pb_contact/docs/_contact_default.jsx +6 -1
  68. data/app/pb_kits/playbook/pb_contact/docs/_contact_with_detail.jsx +5 -1
  69. data/app/pb_kits/playbook/pb_currency/docs/_currency_large.jsx +4 -1
  70. data/app/pb_kits/playbook/pb_currency/docs/_currency_medium.jsx +4 -1
  71. data/app/pb_kits/playbook/pb_currency/docs/_currency_small.jsx +4 -1
  72. data/app/pb_kits/playbook/pb_currency/docs/example.yml +1 -2
  73. data/app/pb_kits/playbook/pb_currency/docs/index.js +0 -1
  74. data/app/pb_kits/playbook/pb_dashboard_value/docs/_dashboard_value_align.jsx +4 -1
  75. data/app/pb_kits/playbook/pb_dashboard_value/docs/_dashboard_value_default.jsx +4 -1
  76. data/app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb +1 -1
  77. data/app/pb_kits/playbook/pb_form/form_builder/checkbox_field.rb +7 -2
  78. data/app/pb_kits/playbook/pb_hashtag/docs/_hashtag_default.jsx +5 -1
  79. data/app/pb_kits/playbook/pb_hashtag/docs/example.yml +0 -2
  80. data/app/pb_kits/playbook/pb_hashtag/docs/index.js +0 -1
  81. data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_emphasis.jsx +3 -1
  82. data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_modified.jsx +2 -1
  83. data/app/pb_kits/playbook/pb_home_address_street/docs/example.yml +1 -3
  84. data/app/pb_kits/playbook/pb_home_address_street/docs/index.js +0 -1
  85. data/app/pb_kits/playbook/pb_label_value/docs/example.yml +1 -7
  86. data/app/pb_kits/playbook/pb_label_value/docs/index.js +0 -4
  87. data/app/pb_kits/playbook/pb_legend/docs/example.yml +1 -5
  88. data/app/pb_kits/playbook/pb_legend/docs/index.js +0 -2
  89. data/app/pb_kits/playbook/pb_list/docs/example.yml +1 -11
  90. data/app/pb_kits/playbook/pb_list/docs/index.js +0 -6
  91. data/app/pb_kits/playbook/pb_loading_inline/docs/example.yml +1 -3
  92. data/app/pb_kits/playbook/pb_loading_inline/docs/index.js +0 -1
  93. data/app/pb_kits/playbook/pb_multiple_users/docs/example.yml +1 -2
  94. data/app/pb_kits/playbook/pb_multiple_users/docs/index.js +0 -1
  95. data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/example.yml +1 -2
  96. data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/index.js +0 -1
  97. data/app/pb_kits/playbook/pb_nav/_horizontal_nav.scss +24 -0
  98. data/app/pb_kits/playbook/pb_nav/_vertical_nav.scss +28 -0
  99. data/app/pb_kits/playbook/pb_online_status/docs/_online_status_default.jsx +13 -4
  100. data/app/pb_kits/playbook/pb_online_status/docs/example.yml +1 -2
  101. data/app/pb_kits/playbook/pb_online_status/docs/index.js +0 -1
  102. data/app/pb_kits/playbook/pb_pill/docs/example.yml +1 -3
  103. data/app/pb_kits/playbook/pb_pill/docs/index.js +0 -1
  104. data/app/pb_kits/playbook/pb_progress_pills/docs/example.yml +1 -4
  105. data/app/pb_kits/playbook/pb_progress_pills/docs/index.js +0 -2
  106. data/app/pb_kits/playbook/pb_progress_step/docs/example.yml +0 -2
  107. data/app/pb_kits/playbook/pb_progress_step/docs/index.js +0 -1
  108. data/app/pb_kits/playbook/pb_radio/docs/example.yml +0 -4
  109. data/app/pb_kits/playbook/pb_radio/docs/index.js +0 -3
  110. data/app/pb_kits/playbook/pb_section_separator/docs/example.yml +1 -2
  111. data/app/pb_kits/playbook/pb_section_separator/docs/index.js +0 -1
  112. data/app/pb_kits/playbook/pb_select/docs/example.yml +1 -4
  113. data/app/pb_kits/playbook/pb_select/docs/index.js +0 -2
  114. data/app/pb_kits/playbook/pb_selectable_card/docs/example.yml +1 -2
  115. data/app/pb_kits/playbook/pb_selectable_card/docs/index.js +0 -1
  116. data/app/pb_kits/playbook/pb_selectable_card_icon/docs/example.yml +1 -4
  117. data/app/pb_kits/playbook/pb_selectable_card_icon/docs/index.js +0 -1
  118. data/app/pb_kits/playbook/pb_selectable_icon/docs/example.yml +1 -3
  119. data/app/pb_kits/playbook/pb_selectable_icon/docs/index.js +0 -1
  120. data/app/pb_kits/playbook/pb_table/docs/example.yml +1 -4
  121. data/app/pb_kits/playbook/pb_table/docs/index.js +0 -2
  122. data/app/pb_kits/playbook/pb_text_input/docs/example.yml +0 -5
  123. data/app/pb_kits/playbook/pb_text_input/docs/index.js +0 -2
  124. data/app/pb_kits/playbook/pb_textarea/docs/example.yml +1 -4
  125. data/app/pb_kits/playbook/pb_textarea/docs/index.js +0 -2
  126. data/app/pb_kits/playbook/pb_time/docs/example.yml +0 -2
  127. data/app/pb_kits/playbook/pb_time/docs/index.js +0 -1
  128. data/app/pb_kits/playbook/pb_time_range_inline/docs/example.yml +0 -3
  129. data/app/pb_kits/playbook/pb_time_range_inline/docs/index.js +0 -1
  130. data/app/pb_kits/playbook/pb_time_stacked/docs/example.yml +1 -3
  131. data/app/pb_kits/playbook/pb_time_stacked/docs/index.js +0 -1
  132. data/app/pb_kits/playbook/pb_title/docs/example.yml +1 -2
  133. data/app/pb_kits/playbook/pb_title/docs/index.js +0 -1
  134. data/app/pb_kits/playbook/pb_title_count/docs/example.yml +0 -4
  135. data/app/pb_kits/playbook/pb_title_count/docs/index.js +0 -2
  136. data/app/pb_kits/playbook/pb_user/docs/example.yml +1 -4
  137. data/app/pb_kits/playbook/pb_user/docs/index.js +0 -3
  138. data/app/pb_kits/playbook/pb_user_badge/docs/example.yml +0 -5
  139. data/app/pb_kits/playbook/pb_user_badge/docs/index.js +0 -1
  140. data/app/pb_kits/playbook/pb_weekday_stacked/docs/example.yml +0 -3
  141. data/app/pb_kits/playbook/pb_weekday_stacked/docs/index.js +0 -1
  142. data/app/pb_kits/playbook/tokens/_colors.scss +1 -1
  143. data/app/views/layouts/playbook/_nav.html.erb +31 -7
  144. data/app/views/layouts/playbook/_sidebar.html.erb +6 -7
  145. data/app/views/layouts/playbook/application.html.erb +26 -0
  146. data/app/views/playbook/pages/kit_show.html.erb +4 -4
  147. data/lib/playbook/version.rb +1 -2
  148. metadata +7 -123
  149. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_actions_dark.html.erb +0 -17
  150. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_actions_dark.jsx +0 -21
  151. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_dark.html.erb +0 -9
  152. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_dark.jsx +0 -14
  153. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_on_click_dark.html.erb +0 -15
  154. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_on_click_dark.jsx +0 -16
  155. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_placement_dark.html.erb +0 -31
  156. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_placement_dark.jsx +0 -33
  157. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_tooltip_dark.html.erb +0 -12
  158. data/app/pb_kits/playbook/pb_badge/docs/_badge_dark.html.erb +0 -124
  159. data/app/pb_kits/playbook/pb_badge/docs/_badge_dark.jsx +0 -160
  160. data/app/pb_kits/playbook/pb_body/docs/_body_dark.html.erb +0 -28
  161. data/app/pb_kits/playbook/pb_body/docs/_body_dark.jsx +0 -35
  162. data/app/pb_kits/playbook/pb_button/docs/_button_default_dark.html.erb +0 -22
  163. data/app/pb_kits/playbook/pb_button/docs/_button_default_dark.jsx +0 -31
  164. data/app/pb_kits/playbook/pb_caption/docs/_caption_dark.html.erb +0 -3
  165. data/app/pb_kits/playbook/pb_caption/docs/_caption_dark.jsx +0 -25
  166. data/app/pb_kits/playbook/pb_card/docs/_card_dark.html.erb +0 -3
  167. data/app/pb_kits/playbook/pb_card/docs/_card_dark.jsx +0 -12
  168. data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_dark.html.erb +0 -4
  169. data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_dark.jsx +0 -17
  170. data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_dark_error.html.erb +0 -7
  171. data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_dark_error.jsx +0 -18
  172. data/app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_dark.html.erb +0 -29
  173. data/app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_dark.jsx +0 -38
  174. data/app/pb_kits/playbook/pb_currency/docs/_currency_dark.html.erb +0 -23
  175. data/app/pb_kits/playbook/pb_currency/docs/_currency_dark.jsx +0 -32
  176. data/app/pb_kits/playbook/pb_hashtag/docs/_hashtag_dark.html.erb +0 -13
  177. data/app/pb_kits/playbook/pb_hashtag/docs/_hashtag_dark.jsx +0 -41
  178. data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_dark.html.erb +0 -12
  179. data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_dark.jsx +0 -20
  180. data/app/pb_kits/playbook/pb_label_value/docs/_label_value_dark.html.erb +0 -24
  181. data/app/pb_kits/playbook/pb_label_value/docs/_label_value_dark.jsx +0 -35
  182. data/app/pb_kits/playbook/pb_label_value/docs/_label_value_details_dark.html.erb +0 -43
  183. data/app/pb_kits/playbook/pb_label_value/docs/_label_value_details_dark.jsx +0 -54
  184. data/app/pb_kits/playbook/pb_label_value/docs/_label_value_details_examples_dark.html.erb +0 -80
  185. data/app/pb_kits/playbook/pb_label_value/docs/_label_value_details_examples_dark.jsx +0 -101
  186. data/app/pb_kits/playbook/pb_legend/docs/_legend_dark.html.erb +0 -5
  187. data/app/pb_kits/playbook/pb_legend/docs/_legend_dark.jsx +0 -21
  188. data/app/pb_kits/playbook/pb_legend/docs/_legend_dark_prefix.html.erb +0 -1
  189. data/app/pb_kits/playbook/pb_legend/docs/_legend_dark_prefix.jsx +0 -15
  190. data/app/pb_kits/playbook/pb_list/docs/_list_dark.html.erb +0 -7
  191. data/app/pb_kits/playbook/pb_list/docs/_list_dark.jsx +0 -19
  192. data/app/pb_kits/playbook/pb_list/docs/_list_dark_borderless.html.erb +0 -7
  193. data/app/pb_kits/playbook/pb_list/docs/_list_dark_borderless.jsx +0 -22
  194. data/app/pb_kits/playbook/pb_list/docs/_list_dark_lg.html.erb +0 -7
  195. data/app/pb_kits/playbook/pb_list/docs/_list_dark_lg.jsx +0 -22
  196. data/app/pb_kits/playbook/pb_list/docs/_list_dark_ordered.html.erb +0 -7
  197. data/app/pb_kits/playbook/pb_list/docs/_list_dark_ordered.jsx +0 -22
  198. data/app/pb_kits/playbook/pb_list/docs/_list_dark_xpadding.html.erb +0 -7
  199. data/app/pb_kits/playbook/pb_list/docs/_list_dark_xpadding.jsx +0 -22
  200. data/app/pb_kits/playbook/pb_loading_inline/docs/_loading_inline_dark.html.erb +0 -13
  201. data/app/pb_kits/playbook/pb_loading_inline/docs/_loading_inline_dark.jsx +0 -20
  202. data/app/pb_kits/playbook/pb_multiple_users/docs/_multiple_users_dark.html.erb +0 -41
  203. data/app/pb_kits/playbook/pb_multiple_users/docs/_multiple_users_dark.jsx +0 -52
  204. data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/_multiple_users_stacked_dark.html.erb +0 -53
  205. data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/_multiple_users_stacked_dark.jsx +0 -62
  206. data/app/pb_kits/playbook/pb_online_status/docs/_online_status_dark.html.erb +0 -9
  207. data/app/pb_kits/playbook/pb_online_status/docs/_online_status_dark.jsx +0 -28
  208. data/app/pb_kits/playbook/pb_pill/docs/_pill_dark.html.erb +0 -52
  209. data/app/pb_kits/playbook/pb_pill/docs/_pill_dark.jsx +0 -69
  210. data/app/pb_kits/playbook/pb_progress_pills/docs/_progress_pills_dark.html.erb +0 -1
  211. data/app/pb_kits/playbook/pb_progress_pills/docs/_progress_pills_dark.jsx +0 -20
  212. data/app/pb_kits/playbook/pb_progress_pills/docs/_progress_pills_status_dark.html.erb +0 -1
  213. data/app/pb_kits/playbook/pb_progress_pills/docs/_progress_pills_status_dark.jsx +0 -19
  214. data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_dark.html.erb +0 -34
  215. data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_dark.jsx +0 -18
  216. data/app/pb_kits/playbook/pb_radio/docs/_radio_dark.html.erb +0 -25
  217. data/app/pb_kits/playbook/pb_radio/docs/_radio_dark.jsx +0 -33
  218. data/app/pb_kits/playbook/pb_radio/docs/_radio_dark_error.html.erb +0 -7
  219. data/app/pb_kits/playbook/pb_radio/docs/_radio_dark_error.jsx +0 -17
  220. data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_dark.html.erb +0 -1
  221. data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_dark.jsx +0 -14
  222. data/app/pb_kits/playbook/pb_select/docs/_select_dark.html.erb +0 -24
  223. data/app/pb_kits/playbook/pb_select/docs/_select_dark.jsx +0 -33
  224. data/app/pb_kits/playbook/pb_select/docs/_select_dark_error.html.erb +0 -25
  225. data/app/pb_kits/playbook/pb_select/docs/_select_dark_error.jsx +0 -39
  226. data/app/pb_kits/playbook/pb_selectable_card/docs/_selectable_card_dark.html.erb +0 -45
  227. data/app/pb_kits/playbook/pb_selectable_card/docs/_selectable_card_dark.jsx +0 -72
  228. data/app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_dark.html.erb +0 -30
  229. data/app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_dark.jsx +0 -40
  230. data/app/pb_kits/playbook/pb_selectable_icon/docs/_selectable_icon_dark.html.erb +0 -26
  231. data/app/pb_kits/playbook/pb_selectable_icon/docs/_selectable_icon_dark.jsx +0 -43
  232. data/app/pb_kits/playbook/pb_table/docs/_table_container_dark.html.erb +0 -34
  233. data/app/pb_kits/playbook/pb_table/docs/_table_container_dark.jsx +0 -47
  234. data/app/pb_kits/playbook/pb_table/docs/_table_dark.html.erb +0 -34
  235. data/app/pb_kits/playbook/pb_table/docs/_table_dark.jsx +0 -46
  236. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_dark.html.erb +0 -5
  237. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_dark.jsx +0 -78
  238. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_dark_error.html.erb +0 -14
  239. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_dark_error.jsx +0 -18
  240. data/app/pb_kits/playbook/pb_textarea/docs/_textarea_dark.html.erb +0 -9
  241. data/app/pb_kits/playbook/pb_textarea/docs/_textarea_dark.jsx +0 -34
  242. data/app/pb_kits/playbook/pb_textarea/docs/_textarea_dark_error.html.erb +0 -6
  243. data/app/pb_kits/playbook/pb_textarea/docs/_textarea_dark_error.jsx +0 -19
  244. data/app/pb_kits/playbook/pb_time/docs/_time_dark.html.erb +0 -70
  245. data/app/pb_kits/playbook/pb_time/docs/_time_dark.jsx +0 -21
  246. data/app/pb_kits/playbook/pb_time_range_inline/docs/_time_range_inline_dark.html.erb +0 -72
  247. data/app/pb_kits/playbook/pb_time_range_inline/docs/_time_range_inline_dark.jsx +0 -81
  248. data/app/pb_kits/playbook/pb_time_stacked/docs/_time_stacked_dark.html.erb +0 -1
  249. data/app/pb_kits/playbook/pb_time_stacked/docs/_time_stacked_dark.jsx +0 -15
  250. data/app/pb_kits/playbook/pb_title/docs/_title_dark.html.erb +0 -8
  251. data/app/pb_kits/playbook/pb_title/docs/_title_dark.jsx +0 -35
  252. data/app/pb_kits/playbook/pb_title_count/docs/_title_count_align_dark.html.erb +0 -23
  253. data/app/pb_kits/playbook/pb_title_count/docs/_title_count_align_dark.jsx +0 -34
  254. data/app/pb_kits/playbook/pb_title_count/docs/_title_count_dark.html.erb +0 -23
  255. data/app/pb_kits/playbook/pb_title_count/docs/_title_count_dark.jsx +0 -34
  256. data/app/pb_kits/playbook/pb_title_detail/docs/_title_detail_dark.html.erb +0 -19
  257. data/app/pb_kits/playbook/pb_title_detail/docs/_title_detail_dark.jsx +0 -29
  258. data/app/pb_kits/playbook/pb_user/docs/_user_dark.html.erb +0 -42
  259. data/app/pb_kits/playbook/pb_user/docs/_user_dark.jsx +0 -55
  260. data/app/pb_kits/playbook/pb_user/docs/_user_text_only_dark.html.erb +0 -19
  261. data/app/pb_kits/playbook/pb_user/docs/_user_text_only_dark.jsx +0 -26
  262. data/app/pb_kits/playbook/pb_user_badge/docs/_user_badge_dark.html.erb +0 -13
  263. data/app/pb_kits/playbook/pb_user_badge/docs/_user_badge_dark.jsx +0 -27
  264. data/app/pb_kits/playbook/pb_weekday_stacked/docs/_weekday_stacked_dark.html.erb +0 -1
  265. data/app/pb_kits/playbook/pb_weekday_stacked/docs/_weekday_stacked_dark.jsx +0 -14
  266. data/app/views/layouts/playbook/application.html.slim +0 -22
@@ -1,4 +1,3 @@
1
1
  export { default as BadgeDefault } from './_badge_default.jsx'
2
2
  export { default as BadgeRounded } from './_badge_rounded.jsx'
3
3
  export { default as BadgeColors } from './_badge_colors.jsx'
4
- export { default as BadgeDark } from './_badge_dark.jsx'
@@ -1,10 +1,10 @@
1
1
  import React from 'react'
2
2
  import { Body } from '../../'
3
3
 
4
- const BodyBlock = () => {
4
+ const BodyBlock = (props) => {
5
5
  return (
6
6
  <div>
7
- <Body>
7
+ <Body {...props}>
8
8
  {'I am a body kit'}
9
9
  </Body>
10
10
  </div>
@@ -1,25 +1,30 @@
1
1
  import React from 'react'
2
2
  import { Body } from '../../'
3
3
 
4
- const BodyLight = () => {
4
+ const BodyLight = (props) => {
5
5
  return (
6
6
  <div>
7
7
  <Body
8
+ {...props}
8
9
  text="I am a body kit (Default)"
9
10
  />
10
11
  <Body
12
+ {...props}
11
13
  color="light"
12
14
  text="I am a body kit (Light)"
13
15
  />
14
16
  <Body
17
+ {...props}
15
18
  color="lighter"
16
19
  text="I am a body kit (Lighter)"
17
20
  />
18
21
  <Body
22
+ {...props}
19
23
  status="negative"
20
24
  text="I am a body kit (Status: negative)"
21
25
  />
22
26
  <Body
27
+ {...props}
23
28
  status="positive"
24
29
  text="I am a body kit (Status: positive)"
25
30
  />
@@ -1,9 +1,7 @@
1
1
  examples:
2
2
  rails:
3
- - body_light: Light UI
4
- - body_dark: Dark UI
3
+ - body_light: Default
5
4
  - body_block: Block
6
5
  react:
7
- - body_light: Light UI
8
- - body_dark: Dark UI
6
+ - body_light: Default
9
7
  - body_block: Block
@@ -1,3 +1,2 @@
1
- export { default as BodyDark } from './_body_dark.jsx'
2
1
  export { default as BodyLight } from './_body_light.jsx'
3
2
  export { default as BodyBlock } from './_body_block.jsx'
@@ -1,9 +1,10 @@
1
1
  import React from 'react'
2
2
  import { Button } from '../../'
3
3
 
4
- const ButtonAccessibility = () => (
4
+ const ButtonAccessibility = (props) => (
5
5
  <div>
6
6
  <Button
7
+ {...props}
7
8
  aria={{ label: 'button' }}
8
9
  link="https://google.com"
9
10
  tag="a"
@@ -1,9 +1,10 @@
1
1
  import React from 'react'
2
2
  import { Button } from '../../'
3
3
 
4
- const ButtonBlockContent = () => (
4
+ const ButtonBlockContent = (props) => (
5
5
  <div>
6
6
  <Button
7
+ {...props}
7
8
  fixedWidth
8
9
  icon="users"
9
10
  text="Button with Block Content"
@@ -1,9 +1,11 @@
1
1
  import React from 'react'
2
2
  import { Button } from '../../'
3
3
 
4
- const ButtonDefault = () => (
4
+ const ButtonDefault = (props) => (
5
5
  <div>
6
6
  <Button
7
+ {...props}
8
+ marginRight="xl"
7
9
  onClick={() => alert('button clicked!')}
8
10
  text="Button Primary"
9
11
  />
@@ -12,18 +14,20 @@ const ButtonDefault = () => (
12
14
  onClick={() => alert('button clicked!')}
13
15
  text="Button Secondary"
14
16
  variant="secondary"
17
+ {...props}
15
18
  />
16
19
  {' '}
17
20
  <Button
18
21
  onClick={() => alert('button clicked!')}
19
22
  text="Button Link"
20
23
  variant="link"
24
+ {...props}
21
25
  />
22
- {' '}
23
26
  <Button
24
27
  disabled
25
28
  onClick={() => alert('button clicked!')}
26
29
  text="Button Disabled"
30
+ {...props}
27
31
  />
28
32
  </div>
29
33
 
@@ -1,9 +1,10 @@
1
1
  import React from 'react'
2
2
  import { Button } from '../../'
3
3
 
4
- const ButtonFullWidth = () => (
4
+ const ButtonFullWidth = (props) => (
5
5
  <div>
6
6
  <Button
7
+ {...props}
7
8
  fullWidth
8
9
  text="Button Full Width"
9
10
  />
@@ -1,20 +1,23 @@
1
1
  import React from 'react'
2
2
  import { Button } from '../../'
3
3
 
4
- const ButtonLink = () => (
4
+ const ButtonLink = (props) => (
5
5
  <div>
6
6
  <Button
7
+ {...props}
7
8
  link="https://google.com"
8
9
  text="A Tag Button"
9
10
  />
10
11
  {' '}
11
12
  <Button
13
+ {...props}
12
14
  link="https://google.com"
13
15
  newWindow
14
16
  text="Open in New Window"
15
17
  />
16
18
  {' '}
17
19
  <Button
20
+ {...props}
18
21
  disabled
19
22
  link="https://google.com"
20
23
  text="A Tag Button Disabled"
@@ -1,20 +1,23 @@
1
1
  import React from 'react'
2
2
  import { Button } from '../../'
3
3
 
4
- const ButtonLoading = () => (
4
+ const ButtonLoading = (props) => (
5
5
  <div>
6
6
  <Button
7
+ {...props}
7
8
  loading
8
9
  text="Button Primary"
9
10
  />
10
11
  {' '}
11
12
  <Button
13
+ {...props}
12
14
  loading
13
15
  text="Button Secondary"
14
16
  variant="secondary"
15
17
  />
16
18
  {' '}
17
19
  <Button
20
+ {...props}
18
21
  loading
19
22
  text="A Tag Button Disabled"
20
23
  variant="link"
@@ -1,9 +1,10 @@
1
1
  import React from 'react'
2
2
  import Button from '../_button.jsx'
3
3
 
4
- const ButtonOptions = () => (
4
+ const ButtonOptions = (props) => (
5
5
  <div>
6
6
  <Button
7
+ {...props}
7
8
  htmlType="submit"
8
9
  onClick={() => alert('Click!')}
9
10
  text="Button with options"
@@ -1,7 +1,6 @@
1
1
  examples:
2
2
  rails:
3
3
  - button_default: Button Variants
4
- - button_default_dark: Button Variants Dark
5
4
  - button_full_width: Button Full Width
6
5
  - button_link: Button Links
7
6
  - button_loading: Button Loading
@@ -10,7 +9,6 @@ examples:
10
9
  - button_options: Button Additional Options
11
10
  react:
12
11
  - button_default: Button Variants
13
- - button_default_dark: Button Variants Dark
14
12
  - button_full_width: Button Full Width
15
13
  - button_link: Button Links
16
14
  - button_loading: Button Loading
@@ -4,5 +4,4 @@ export { default as ButtonLink } from './_button_link.jsx'
4
4
  export { default as ButtonLoading } from './_button_loading.jsx'
5
5
  export { default as ButtonBlockContent } from './_button_block_content.jsx'
6
6
  export { default as ButtonAccessibility } from './_button_accessibility.jsx'
7
- export { default as ButtonDefaultDark } from './_button_default_dark.jsx'
8
7
  export { default as ButtonOptions } from './_button_options.jsx'
@@ -1,15 +1,20 @@
1
1
  import React from 'react'
2
2
  import { Caption } from '../../'
3
3
 
4
- const CaptionLight = () => {
4
+ const CaptionLight = (props) => {
5
5
  return (
6
6
  <div>
7
- <Caption text="Caption" />
8
7
  <Caption
8
+ {...props}
9
+ text="Caption"
10
+ />
11
+ <Caption
12
+ {...props}
9
13
  size="lg"
10
14
  text="Caption Large"
11
15
  />
12
16
  <Caption
17
+ {...props}
13
18
  size="xs"
14
19
  text="Subcaption"
15
20
  />
@@ -1,9 +1,5 @@
1
1
  examples:
2
2
  rails:
3
- - caption_light: Light UI
4
- - caption_variants: Variants
5
- - caption_dark: Dark UI
3
+ - caption_light: Default
6
4
  react:
7
- - caption_light: Light UI
8
- - caption_variants: Variants
9
- - caption_dark: Dark UI
5
+ - caption_light: Default
@@ -1,3 +1,2 @@
1
- export { default as CaptionDark } from './_caption_dark.jsx'
2
1
  export { default as CaptionLight } from './_caption_light.jsx'
3
2
  export { default as CaptionVariants } from './_caption_variants.jsx'
@@ -40,9 +40,6 @@
40
40
  flex-basis: auto;
41
41
  min-height: 1px;
42
42
  border: 0;
43
- &.dark {
44
- @include pb_card_dark;
45
- }
46
43
  }
47
44
 
48
45
  @each $name, $shadow in $box_shadows {
@@ -1,13 +1,16 @@
1
1
  import React from 'react'
2
2
  import Card from '../_card.jsx'
3
3
 
4
- const CardBorderNone = () => {
4
+ const CardBorderNone = (props) => {
5
5
  return (
6
- <div className="bg-light-doc-example">
7
6
 
8
- <Card borderNone>{'Card content'}</Card>
7
+ <Card
8
+ {...props}
9
+ borderNone
10
+ >
11
+ {'Card content'}
12
+ </Card>
9
13
 
10
- </div>
11
14
  )
12
15
  }
13
16
 
@@ -1,12 +1,12 @@
1
1
  import React from 'react'
2
2
  import { Card } from '../../'
3
3
 
4
- const CardContent = () => {
4
+ const CardContent = (props) => {
5
5
  return (
6
6
  <div>
7
- <Card>{'Card content'}</Card>
7
+ <Card {...props}>{'Card content'}</Card>
8
8
  <br />
9
- <Card>
9
+ <Card {...props}>
10
10
  {`Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec iaculis, risus a fringilla luctus, sapien eros sodales ex, quis molestie est nulla non turpis. Vestibulum aliquet at ipsum eget posuere. Morbi sed laoreet erat. Sed commodo posuere lectus, at porta nulla ornare a. Suspendisse quam est, sollicitudin ut enim sit amet, commodo placerat enim. Donec laoreet metus ac mauris pellentesque mattis. Pellentesque luctus vel mauris non aliquam. Mauris hendrerit mattis porttitor. Curabitur vehicula justo non ex consectetur commodo. Quisque posuere aliquet quam. Maecenas malesuada magna mauris, ac tempor metus euismod at.
11
11
 
12
12
  Cras ornare fermentum magna mollis efficitur. Sed vitae nulla vel purus ultrices mollis. Maecenas id nulla id libero faucibus feugiat quis sit amet turpis. In commodo pellentesque risus at fringilla. Integer non interdum leo, non commodo ante. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut mi augue, dignissim at orci vel, egestas aliquam mi. Proin finibus aliquet tempor. Integer cursus, ex quis gravida rhoncus, nisi elit viverra ipsum, non efficitur est ex ac tortor. Praesent vitae odio massa.`}
@@ -1,10 +1,11 @@
1
1
  import React from 'react'
2
2
  import { Body, Card, Title } from '../../'
3
3
 
4
- const CardHeader = () => {
4
+ const CardHeader = (props) => {
5
5
  return (
6
6
  <div>
7
7
  <Title
8
+ {...props}
8
9
  size={4}
9
10
  tag="h4"
10
11
  text="Category Colors"
@@ -12,39 +13,52 @@ const CardHeader = () => {
12
13
 
13
14
  <br />
14
15
 
15
- <Card padding="none">
16
+ <Card
17
+ {...props}
18
+ padding="none"
19
+ >
16
20
  <Card.Header>
17
21
  <Body
18
- dark
22
+ {...props}
19
23
  text="category_1"
20
24
  />
21
25
  </Card.Header>
22
26
  <Card.Body>
23
- <Body text="Body" />
27
+ <Body
28
+ {...props}
29
+ text="Body"
30
+ />
24
31
  </Card.Body>
25
32
  </Card>
26
33
 
27
34
  <br />
28
35
 
29
- <Card padding="none">
36
+ <Card
37
+ {...props}
38
+ padding="none"
39
+ >
30
40
  <Card.Header
31
41
  headerColor="category_2"
32
42
  >
33
43
  <Body
34
- dark
44
+ {...props}
35
45
  text="category_2"
36
46
  />
37
47
  </Card.Header>
38
48
  <Card.Body
39
49
  padding="md"
40
50
  >
41
- <Body text="Body" />
51
+ <Body
52
+ {...props}
53
+ text="Body"
54
+ />
42
55
  </Card.Body>
43
56
  </Card>
44
57
 
45
58
  <br />
46
59
 
47
60
  <Title
61
+ {...props}
48
62
  size={4}
49
63
  tag="h4"
50
64
  text="Product Colors"
@@ -52,33 +66,45 @@ const CardHeader = () => {
52
66
 
53
67
  <br />
54
68
 
55
- <Card padding="none">
69
+ <Card
70
+ {...props}
71
+ padding="none"
72
+ >
56
73
  <Card.Header
57
74
  headerColor="siding"
58
75
  >
59
76
  <Body
60
- dark
77
+ {...props}
61
78
  text="Siding"
62
79
  />
63
80
  </Card.Header>
64
81
  <Card.Body>
65
- <Body text="Body" />
82
+ <Body
83
+ {...props}
84
+ text="Body"
85
+ />
66
86
  </Card.Body>
67
87
  </Card>
68
88
 
69
89
  <br />
70
90
 
71
- <Card padding="none">
91
+ <Card
92
+ {...props}
93
+ padding="none"
94
+ >
72
95
  <Card.Header
73
96
  headerColor="gutters"
74
97
  >
75
98
  <Body
76
- dark
99
+ {...props}
77
100
  text="Gutters"
78
101
  />
79
102
  </Card.Header>
80
103
  <Card.Body>
81
- <Body text="Body" />
104
+ <Body
105
+ {...props}
106
+ text="Body"
107
+ />
82
108
  </Card.Body>
83
109
  </Card>
84
110
 
@@ -1,22 +1,31 @@
1
1
  import React from 'react'
2
2
  import { Card } from '../../'
3
3
 
4
- const CardHighlight = () => {
4
+ const CardHighlight = (props) => {
5
5
  return (
6
6
  <div>
7
- <Card highlight={{ position: 'side', color: 'windows' }}>
7
+ <Card
8
+ {...props}
9
+ highlight={{ position: 'side', color: 'windows' }}
10
+ >
8
11
  {'Card content'}
9
12
  </Card>
10
13
 
11
14
  <br />
12
15
 
13
- <Card highlight={{ position: 'top', color: 'warning' }}>
16
+ <Card
17
+ {...props}
18
+ highlight={{ position: 'top', color: 'warning' }}
19
+ >
14
20
  {'Card content'}
15
21
  </Card>
16
22
 
17
23
  <br />
18
24
 
19
- <Card highlight={{ position: 'side', color: 'category_2' }}>
25
+ <Card
26
+ {...props}
27
+ highlight={{ position: 'side', color: 'category_2' }}
28
+ >
20
29
  {'Card content'}
21
30
  </Card>
22
31
  </div>