playbook_ui 7.1.1.pre.alpha1 → 7.3.0.pre.alpha2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (300) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -1
  3. data/app/controllers/playbook/application_controller.rb +2 -0
  4. data/app/controllers/playbook/guides_controller.rb +11 -0
  5. data/app/controllers/playbook/pages_controller.rb +99 -0
  6. data/app/controllers/playbook/samples_controller.rb +40 -0
  7. data/app/pb_kits/playbook/_playbook.scss +1 -2
  8. data/app/pb_kits/playbook/data/menu.yml +5 -5
  9. data/app/pb_kits/playbook/index.js +1 -5
  10. data/app/pb_kits/playbook/packs/application.js +55 -0
  11. data/app/pb_kits/playbook/packs/examples.js +182 -0
  12. data/app/pb_kits/playbook/packs/main.scss +12 -0
  13. data/app/pb_kits/playbook/packs/samples.js +21 -0
  14. data/app/pb_kits/playbook/packs/site_styles/_samples.scss +72 -0
  15. data/app/pb_kits/playbook/packs/site_styles/_scaffold.scss +43 -0
  16. data/app/pb_kits/playbook/packs/site_styles/_site-style.scss +146 -0
  17. data/app/pb_kits/playbook/packs/site_styles/docs/_all.scss +10 -0
  18. data/app/pb_kits/playbook/packs/site_styles/docs/_bg_light_doc_example.scss +7 -0
  19. data/app/pb_kits/playbook/packs/site_styles/docs/_code_snippet.scss +531 -0
  20. data/app/pb_kits/playbook/packs/site_styles/docs/_color_utilities.scss +92 -0
  21. data/app/pb_kits/playbook/packs/site_styles/docs/_flex_examples.scss +15 -0
  22. data/app/pb_kits/playbook/packs/site_styles/docs/_kit_doc.scss +148 -0
  23. data/app/pb_kits/playbook/packs/site_styles/docs/_kits_examples.scss +15 -0
  24. data/app/pb_kits/playbook/packs/site_styles/docs/_markdown.scss +88 -0
  25. data/app/pb_kits/playbook/packs/site_styles/docs/_spacing_tokens.scss +72 -0
  26. data/app/pb_kits/playbook/pb_avatar/_avatar.jsx +1 -5
  27. data/app/pb_kits/playbook/pb_badge/_badge.jsx +2 -4
  28. data/app/pb_kits/playbook/pb_bar_graph/_bar_graph.html.erb +12 -1
  29. data/app/pb_kits/playbook/pb_bar_graph/_bar_graph.jsx +1 -1
  30. data/app/pb_kits/playbook/pb_bar_graph/bar_graph.rb +1 -1
  31. data/app/pb_kits/playbook/pb_button/_button.jsx +1 -5
  32. data/app/pb_kits/playbook/pb_button/_button_mixins.scss +0 -1
  33. data/app/pb_kits/playbook/pb_button_toolbar/_button_toolbar.jsx +3 -7
  34. data/app/pb_kits/playbook/pb_button_toolbar/_button_toolbar.scss +90 -82
  35. data/app/pb_kits/playbook/pb_button_toolbar/button_toolbar.rb +2 -4
  36. data/app/pb_kits/playbook/pb_button_toolbar/docs/_button_toolbar_default.html.erb +7 -17
  37. data/app/pb_kits/playbook/pb_button_toolbar/docs/_button_toolbar_default.jsx +9 -32
  38. data/app/pb_kits/playbook/pb_button_toolbar/docs/_button_toolbar_secondary.html.erb +7 -18
  39. data/app/pb_kits/playbook/pb_button_toolbar/docs/_button_toolbar_secondary.jsx +9 -37
  40. data/app/pb_kits/playbook/pb_button_toolbar/docs/_button_toolbar_vertical.html.erb +11 -0
  41. data/app/pb_kits/playbook/pb_button_toolbar/docs/_button_toolbar_vertical.jsx +29 -0
  42. data/app/pb_kits/playbook/pb_button_toolbar/docs/_button_toolbar_vertical_secondary.html.erb +11 -0
  43. data/app/pb_kits/playbook/pb_button_toolbar/docs/_button_toolbar_vertical_secondary.jsx +34 -0
  44. data/app/pb_kits/playbook/pb_button_toolbar/docs/example.yml +7 -3
  45. data/app/pb_kits/playbook/pb_button_toolbar/docs/index.js +2 -0
  46. data/app/pb_kits/playbook/pb_caption/_caption.jsx +2 -2
  47. data/app/pb_kits/playbook/pb_checkbox/_checkbox.jsx +2 -5
  48. data/app/pb_kits/playbook/pb_checkbox/checkbox.rb +1 -3
  49. data/app/pb_kits/playbook/pb_checkbox/docs/example.yml +0 -1
  50. data/app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.jsx +1 -5
  51. data/app/pb_kits/playbook/pb_collapsible/_collapsible.html.erb +9 -0
  52. data/app/pb_kits/playbook/pb_collapsible/_collapsible.jsx +142 -0
  53. data/app/pb_kits/playbook/pb_collapsible/_collapsible.scss +17 -0
  54. data/app/pb_kits/playbook/pb_collapsible/child_kits/_collapsible_content.html.erb +7 -0
  55. data/app/pb_kits/playbook/pb_collapsible/child_kits/_collapsible_main.html.erb +16 -0
  56. data/app/pb_kits/playbook/pb_collapsible/collapsible.rb +15 -0
  57. data/app/pb_kits/playbook/pb_collapsible/collapsible_content.rb +21 -0
  58. data/app/pb_kits/playbook/pb_collapsible/collapsible_main.rb +24 -0
  59. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_dark.html.erb +10 -0
  60. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_dark.jsx +17 -0
  61. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_default.html.erb +10 -0
  62. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_default.jsx +17 -0
  63. data/app/pb_kits/playbook/pb_collapsible/docs/example.yml +9 -0
  64. data/app/pb_kits/playbook/pb_collapsible/docs/index.js +2 -0
  65. data/app/pb_kits/playbook/pb_collapsible/index.js +82 -0
  66. data/app/pb_kits/playbook/pb_contact/_contact.jsx +1 -5
  67. data/app/pb_kits/playbook/pb_currency/_currency.jsx +1 -5
  68. data/app/pb_kits/playbook/pb_dashboard_value/_dashboard_value.jsx +1 -5
  69. data/app/pb_kits/playbook/pb_date_picker/_date_picker.html.erb +2 -1
  70. data/app/pb_kits/playbook/pb_date_picker/_date_picker.jsx +5 -3
  71. data/app/pb_kits/playbook/pb_date_picker/date_picker.rb +2 -3
  72. data/app/pb_kits/playbook/pb_date_picker/date_picker_helper.js +31 -37
  73. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_allow_input.html.erb +4 -0
  74. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_allow_input.jsx +13 -0
  75. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_allow_input.md +1 -0
  76. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_dark.html.erb +4 -0
  77. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_dark.jsx +13 -0
  78. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_default_date.html.erb +2 -1
  79. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_default_date.jsx +2 -1
  80. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_format.html.erb +0 -4
  81. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_format.jsx +0 -4
  82. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_input.html.erb +9 -9
  83. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_input.jsx +8 -8
  84. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_input.md +1 -3
  85. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_range.html.erb +0 -1
  86. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_range.jsx +0 -1
  87. data/app/pb_kits/playbook/pb_date_picker/docs/example.yml +4 -1
  88. data/app/pb_kits/playbook/pb_date_picker/docs/index.js +2 -1
  89. data/app/pb_kits/playbook/pb_date_range_inline/_date_range_inline.html.erb +14 -8
  90. data/app/pb_kits/playbook/pb_date_range_inline/_date_range_inline.jsx +39 -122
  91. data/app/pb_kits/playbook/pb_date_range_inline/_date_range_inline.scss +2 -33
  92. data/app/pb_kits/playbook/pb_date_range_inline/date_range_inline.rb +9 -44
  93. data/app/pb_kits/playbook/pb_date_range_inline/docs/_date_range_inline_default.html.erb +1 -14
  94. data/app/pb_kits/playbook/pb_date_range_inline/docs/_date_range_inline_default.jsx +1 -45
  95. data/app/pb_kits/playbook/pb_date_range_stacked/_date_range_stacked.jsx +1 -5
  96. data/app/pb_kits/playbook/pb_date_stacked/_date_stacked.jsx +2 -2
  97. data/app/pb_kits/playbook/pb_date_year_stacked/_date_year_stacked.jsx +1 -5
  98. data/app/pb_kits/playbook/pb_distribution_bar/_distribution_bar.html.erb +8 -1
  99. data/app/pb_kits/playbook/pb_distribution_bar/distribution_bar.rb +0 -7
  100. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.html.erb +2 -3
  101. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.jsx +17 -31
  102. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.scss +0 -10
  103. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_default.html.erb +1 -2
  104. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_default.jsx +2 -1
  105. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_multi_line.html.erb +1 -1
  106. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_multi_line.jsx +1 -1
  107. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_multi_line_dark.html.erb +1 -1
  108. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_multi_line_dark.jsx +1 -1
  109. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/example.yml +0 -2
  110. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/index.js +0 -1
  111. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/fixed_confirmation_toast.rb +1 -7
  112. data/app/pb_kits/playbook/pb_flex/_flex.jsx +2 -2
  113. data/app/pb_kits/playbook/pb_flex/_flex_item.jsx +1 -1
  114. data/app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb +2 -10
  115. data/app/pb_kits/playbook/pb_form/docs/_form_form_with_validate.html.erb +1 -1
  116. data/app/pb_kits/playbook/pb_form/docs/_form_simple_form.html.erb +3 -3
  117. data/app/pb_kits/playbook/pb_form/docs/_form_simple_form_validate.html.erb +3 -3
  118. data/app/pb_kits/playbook/pb_form/form_builder/checkbox_field.rb +2 -7
  119. data/app/pb_kits/playbook/pb_form/form_builder/date_picker_field.rb +0 -1
  120. data/app/pb_kits/playbook/pb_form_pill/_form_pill.jsx +2 -3
  121. data/app/pb_kits/playbook/pb_gauge/_gauge.jsx +1 -1
  122. data/app/pb_kits/playbook/pb_highlight/_highlight.jsx +1 -1
  123. data/app/pb_kits/playbook/pb_home_address_street/_home_address_street.jsx +2 -2
  124. data/app/pb_kits/playbook/pb_icon/_icon.jsx +2 -2
  125. data/app/pb_kits/playbook/pb_icon_value/_icon_value.jsx +1 -5
  126. data/app/pb_kits/playbook/pb_image/_image.jsx +1 -5
  127. data/app/pb_kits/playbook/pb_label_pill/_label_pill.jsx +1 -5
  128. data/app/pb_kits/playbook/pb_layout/_layout.jsx +4 -4
  129. data/app/pb_kits/playbook/pb_line_graph/_line_graph.html.erb +13 -1
  130. data/app/pb_kits/playbook/pb_line_graph/_line_graph.jsx +1 -1
  131. data/app/pb_kits/playbook/pb_line_graph/line_graph.rb +1 -1
  132. data/app/pb_kits/playbook/pb_list/_list.jsx +2 -3
  133. data/app/pb_kits/playbook/pb_list/_list_item.jsx +2 -3
  134. data/app/pb_kits/playbook/pb_logistic/_logistic.jsx +1 -5
  135. data/app/pb_kits/playbook/pb_message/_message.jsx +1 -5
  136. data/app/pb_kits/playbook/pb_multiple_users/_multiple_users.jsx +2 -5
  137. data/app/pb_kits/playbook/pb_nav/_nav.jsx +2 -2
  138. data/app/pb_kits/playbook/pb_person/_person.jsx +1 -5
  139. data/app/pb_kits/playbook/pb_person_contact/_person_contact.jsx +7 -12
  140. data/app/pb_kits/playbook/pb_person_contact/docs/_person_contact_with_wrong_numbers.jsx +0 -1
  141. data/app/pb_kits/playbook/pb_popover/_popover.jsx +1 -5
  142. data/app/pb_kits/playbook/pb_popover/_popover.scss +4 -6
  143. data/app/pb_kits/playbook/pb_popover/index.js +1 -3
  144. data/app/pb_kits/playbook/pb_progress_simple/_progress_simple.jsx +4 -4
  145. data/app/pb_kits/playbook/pb_progress_step/_progress_step.jsx +1 -4
  146. data/app/pb_kits/playbook/pb_progress_step/_progress_step.scss +33 -168
  147. data/app/pb_kits/playbook/pb_progress_step/_progress_step_item.html.erb +1 -3
  148. data/app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx +8 -10
  149. data/app/pb_kits/playbook/pb_progress_step/docs/_description.md +1 -1
  150. data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_default.html.erb +16 -14
  151. data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_default.jsx +3 -6
  152. data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_tracker.html.erb +1 -17
  153. data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_tracker.jsx +1 -17
  154. data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_vertical.jsx +3 -10
  155. data/app/pb_kits/playbook/pb_progress_step/progress_step.rb +1 -11
  156. data/app/pb_kits/playbook/pb_progress_step/progress_step_item.rb +1 -1
  157. data/app/pb_kits/playbook/pb_radio/_radio.html.erb +1 -1
  158. data/app/pb_kits/playbook/pb_radio/docs/example.yml +0 -1
  159. data/app/pb_kits/playbook/pb_radio/radio.rb +4 -2
  160. data/app/pb_kits/playbook/pb_section_separator/_section_separator.jsx +1 -1
  161. data/app/pb_kits/playbook/pb_select/_select.scss +1 -1
  162. data/app/pb_kits/playbook/pb_stat_change/_stat_change.jsx +2 -2
  163. data/app/pb_kits/playbook/pb_stat_value/_stat_value.jsx +3 -3
  164. data/app/pb_kits/playbook/pb_stat_value/docs/_stat_value_default.jsx +1 -6
  165. data/app/pb_kits/playbook/pb_table/_table.jsx +2 -2
  166. data/app/pb_kits/playbook/pb_table/docs/example.yml +0 -12
  167. data/app/pb_kits/playbook/pb_table/docs/index.js +0 -6
  168. data/app/pb_kits/playbook/pb_text_input/_text_input.jsx +1 -1
  169. data/app/pb_kits/playbook/pb_textarea/_textarea.jsx +1 -1
  170. data/app/pb_kits/playbook/pb_time/_time.jsx +2 -2
  171. data/app/pb_kits/playbook/pb_time/docs/_time_timezone.html.erb +1 -2
  172. data/app/pb_kits/playbook/pb_time_range_inline/_time_range_inline.jsx +1 -1
  173. data/app/pb_kits/playbook/pb_time_range_inline/_time_range_inline.scss +5 -5
  174. data/app/pb_kits/playbook/pb_time_stacked/_time_stacked.jsx +3 -3
  175. data/app/pb_kits/playbook/pb_timestamp/_timestamp.jsx +1 -1
  176. data/app/pb_kits/playbook/pb_title/_title.jsx +1 -5
  177. data/app/pb_kits/playbook/pb_title_count/_title_count.jsx +1 -5
  178. data/app/pb_kits/playbook/pb_title_detail/_title_detail.jsx +5 -5
  179. data/app/pb_kits/playbook/pb_toggle/_toggle.jsx +3 -3
  180. data/app/pb_kits/playbook/pb_toggle/_toggle.scss +43 -41
  181. data/app/pb_kits/playbook/pb_toggle/docs/_toggle_size.html.erb +11 -0
  182. data/app/pb_kits/playbook/pb_toggle/docs/_toggle_size.jsx +44 -0
  183. data/app/pb_kits/playbook/pb_toggle/docs/example.yml +2 -1
  184. data/app/pb_kits/playbook/pb_toggle/docs/index.js +1 -0
  185. data/app/pb_kits/playbook/pb_toggle/toggle.rb +2 -5
  186. data/app/pb_kits/playbook/pb_typeahead/_typeahead.html.erb +20 -24
  187. data/app/pb_kits/playbook/pb_typeahead/_typeahead.jsx +1 -19
  188. data/app/pb_kits/playbook/pb_typeahead/components/MultiValue.jsx +1 -8
  189. data/app/pb_kits/playbook/pb_typeahead/components/Option.jsx +13 -21
  190. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_default.html.erb +1 -1
  191. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_context_dark.html.erb +1 -1
  192. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills.jsx +3 -0
  193. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async_summary.jsx +45 -0
  194. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async_users.jsx +3 -0
  195. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_summary.jsx +27 -0
  196. data/app/pb_kits/playbook/pb_typeahead/docs/example.yml +0 -3
  197. data/app/pb_kits/playbook/pb_typeahead/typeahead.rb +1 -24
  198. data/app/pb_kits/playbook/pb_user_badge/_user_badge.jsx +2 -5
  199. data/app/pb_kits/playbook/tokens/_colors.scss +23 -22
  200. data/app/pb_kits/playbook/tokens/_typography.scss +4 -4
  201. data/app/pb_kits/playbook/vendor.js +3 -8
  202. data/app/views/layouts/playbook/_mobile_hamburger.html.erb +2 -0
  203. data/app/views/layouts/playbook/_nav.html.erb +37 -0
  204. data/app/views/layouts/playbook/_sidebar.html.erb +51 -0
  205. data/app/views/layouts/playbook/application.html.erb +26 -0
  206. data/app/views/layouts/playbook/fullscreen.html.slim +10 -0
  207. data/app/views/layouts/playbook/grid.html.slim +10 -0
  208. data/app/views/layouts/playbook/samples.html.erb +19 -0
  209. data/app/views/playbook/guides/create_kit.html.slim +16 -0
  210. data/app/views/playbook/guides/create_kit/_file_naming.html.md +2 -0
  211. data/app/views/playbook/guides/create_kit/_generator.html.md +6 -0
  212. data/app/views/playbook/guides/create_kit/_kit_examples.html.md +2 -0
  213. data/app/views/playbook/guides/create_kit/_kit_rails.html.md +2 -0
  214. data/app/views/playbook/guides/create_kit/_kit_react.html.md +2 -0
  215. data/app/views/playbook/guides/create_kit/_layout.html.md +2 -0
  216. data/app/views/playbook/guides/create_kit/_view_objects.html.md +2 -0
  217. data/app/views/playbook/guides/create_kit/_writing_sass.md +10 -0
  218. data/app/views/playbook/guides/use_nitro.html.slim +6 -0
  219. data/app/views/playbook/guides/use_nitro/_local.html.md +2 -0
  220. data/app/views/playbook/guides/use_nitro/_nitro_components.html.md +2 -0
  221. data/app/views/playbook/guides/use_nitro/_versions.html.md +2 -0
  222. data/app/views/playbook/pages/fullscreen.html.slim +10 -0
  223. data/app/views/playbook/pages/grid.html.slim +2 -0
  224. data/app/views/playbook/pages/home.html.slim +4 -0
  225. data/app/views/playbook/pages/kit_category_show.html.erb +14 -0
  226. data/app/views/playbook/pages/kit_show.html.erb +33 -0
  227. data/app/views/playbook/pages/kits.html.erb +12 -0
  228. data/app/views/playbook/pages/principals/_getting_started.html.md +30 -0
  229. data/app/views/playbook/pages/principles.html.slim +3 -0
  230. data/app/views/playbook/pages/tokens.html.slim +15 -0
  231. data/app/views/playbook/pages/tokens/_pb_doc_spacing.html.slim +61 -0
  232. data/app/views/playbook/pages/utilities.html.slim +116 -0
  233. data/app/views/playbook/pages/utilities/_pb_doc_color.html.slim +15 -0
  234. data/app/views/playbook/samples/collection_detail/index.html.erb +169 -0
  235. data/app/views/playbook/samples/collection_detail/index.jsx +372 -0
  236. data/app/views/playbook/samples/dashboards/index.html.erb +81 -0
  237. data/app/views/playbook/samples/dashboards/index.jsx +130 -0
  238. data/app/views/playbook/samples/filter_table/index.html.erb +348 -0
  239. data/app/views/playbook/samples/filter_table/index.jsx +433 -0
  240. data/app/views/playbook/samples/registration/index.html.erb +316 -0
  241. data/app/views/playbook/samples/registration/index.jsx +476 -0
  242. data/app/views/playbook/samples/sample_show.html.erb +36 -0
  243. data/lib/generators/kit/USAGE +5 -0
  244. data/lib/generators/kit/kit_generator.rb +95 -0
  245. data/lib/generators/kit/templates/kit_example_rails.erb.tt +1 -0
  246. data/lib/generators/kit/templates/kit_example_react.erb.tt +10 -0
  247. data/lib/generators/kit/templates/kit_example_yml.erb.tt +9 -0
  248. data/lib/generators/kit/templates/kit_html.erb.tt +7 -0
  249. data/lib/generators/kit/templates/kit_js.erb.tt +1 -0
  250. data/lib/generators/kit/templates/kit_jsx.erb.tt +68 -0
  251. data/lib/generators/kit/templates/kit_ruby.erb.tt +11 -0
  252. data/lib/generators/kit/templates/kit_ruby_spec.erb.tt +11 -0
  253. data/lib/generators/kit/templates/kit_scss.erb +3 -0
  254. data/lib/playbook/engine.rb +0 -1
  255. data/lib/playbook/version.rb +1 -1
  256. data/lib/tasks/pb_release.rake +77 -0
  257. data/lib/tasks/playbook_tasks.rake +26 -0
  258. metadata +103 -44
  259. data/app/pb_kits/playbook/pb_background/_background.html.erb +0 -14
  260. data/app/pb_kits/playbook/pb_background/_background.jsx +0 -64
  261. data/app/pb_kits/playbook/pb_background/_background.scss +0 -15
  262. data/app/pb_kits/playbook/pb_background/background.rb +0 -36
  263. data/app/pb_kits/playbook/pb_background/docs/_background_default.html.erb +0 -41
  264. data/app/pb_kits/playbook/pb_background/docs/_background_default.jsx +0 -75
  265. data/app/pb_kits/playbook/pb_background/docs/example.yml +0 -8
  266. data/app/pb_kits/playbook/pb_background/docs/index.js +0 -1
  267. data/app/pb_kits/playbook/pb_button_toolbar/_button_toolbar_dark.scss +0 -57
  268. data/app/pb_kits/playbook/pb_button_toolbar/_button_toolbar_mixins.scss +0 -27
  269. data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_options.html.erb +0 -10
  270. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_default_date.md +0 -1
  271. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_on_change.jsx +0 -34
  272. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_on_change.md +0 -3
  273. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_close.html.erb +0 -21
  274. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_close.jsx +0 -38
  275. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/index.js +0 -18
  276. data/app/pb_kits/playbook/pb_radio/docs/_radio_options.html.erb +0 -9
  277. data/app/pb_kits/playbook/pb_table/docs/_table_action_middle.html.erb +0 -34
  278. data/app/pb_kits/playbook/pb_table/docs/_table_action_middle.jsx +0 -68
  279. data/app/pb_kits/playbook/pb_table/docs/_table_action_middle.md +0 -2
  280. data/app/pb_kits/playbook/pb_table/docs/_table_icon_buttons.html.erb +0 -61
  281. data/app/pb_kits/playbook/pb_table/docs/_table_icon_buttons.jsx +0 -89
  282. data/app/pb_kits/playbook/pb_table/docs/_table_icon_buttons.md +0 -1
  283. data/app/pb_kits/playbook/pb_table/docs/_table_one_action.html.erb +0 -34
  284. data/app/pb_kits/playbook/pb_table/docs/_table_one_action.jsx +0 -68
  285. data/app/pb_kits/playbook/pb_table/docs/_table_one_action.md +0 -2
  286. data/app/pb_kits/playbook/pb_table/docs/_table_two_actions.html.erb +0 -43
  287. data/app/pb_kits/playbook/pb_table/docs/_table_two_actions.jsx +0 -80
  288. data/app/pb_kits/playbook/pb_table/docs/_table_two_actions.md +0 -1
  289. data/app/pb_kits/playbook/pb_table/docs/_table_two_plus_actions.html.erb +0 -34
  290. data/app/pb_kits/playbook/pb_table/docs/_table_two_plus_actions.jsx +0 -63
  291. data/app/pb_kits/playbook/pb_table/docs/_table_two_plus_actions.md +0 -1
  292. data/app/pb_kits/playbook/pb_toggle/docs/_toggle_options.html.erb +0 -10
  293. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills.html.erb +0 -25
  294. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills.md +0 -8
  295. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async.html.erb +0 -30
  296. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async.md +0 -11
  297. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async_users.html.erb +0 -25
  298. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async_users.md +0 -1
  299. data/app/pb_kits/playbook/react_rails_kits.js +0 -6
  300. data/app/pb_kits/playbook/tokens/index.scss +0 -11
@@ -26,11 +26,8 @@ const UserBadge = (props: UserBadgeProps) => {
26
26
  const image = require(`./badges/_${badge}.svg`)
27
27
  const ariaProps = buildAriaProps(aria)
28
28
  const dataProps = buildDataProps(data)
29
- const classes = classnames(
30
- buildCss('pb_user_badge_kit', size),
31
- globalProps(props),
32
- className
33
- )
29
+ const classes = classnames(buildCss('pb_user_badge_kit', size), globalProps(props),
30
+ className)
34
31
 
35
32
  return (
36
33
  <div
@@ -1,10 +1,10 @@
1
1
  @import "./opacity";
2
2
 
3
- /*=====================================
4
- Base colors should not be documented.
5
- Only document color use.
3
+ //=====================================
4
+ // Base colors should not be documented.
5
+ // Only document color use.
6
6
 
7
- Colors -----------------------------*/
7
+ // Colors -----------------------------
8
8
  $royal: #0056CF;
9
9
  $purple: #9E64E9;
10
10
  $teal: #00C4D7;
@@ -22,11 +22,11 @@ $colors: (
22
22
  orange: $orange
23
23
  );
24
24
 
25
- /* Specialty Gradient -----------------*/
25
+ // Specialty Gradient -----------------
26
26
  $gradient_start: #1C75F2;
27
27
  $gradient_end: $royal;
28
28
 
29
- /* Interface colors -------------------*/
29
+ // Interface colors -------------------
30
30
  $white: #FFFFFF;
31
31
  $silver: #F3F7FB;
32
32
  $slate: #C1CDD6;
@@ -42,7 +42,7 @@ $interface_colors: (
42
42
 
43
43
  );
44
44
 
45
- /* Main colors ------------------------*/
45
+ // Main colors ------------------------
46
46
  $primary: $royal;
47
47
  $secondary: $yellow;
48
48
  $tertiary: $purple;
@@ -51,9 +51,9 @@ $main_colors: (
51
51
  secondary: $secondary,
52
52
  tertiary: $tertiary
53
53
  );
54
- /*=====================================
54
+ //=====================================
55
55
 
56
- Background colors ------------------*/
56
+ // Background colors ------------------
57
57
  $bg_light: $silver;
58
58
  $bg_dark: #0a0527;
59
59
  $background_colors: (
@@ -61,7 +61,7 @@ $background_colors: (
61
61
  bg_dark: $bg_dark
62
62
  );
63
63
 
64
- /* Card colors ------------------*/
64
+ // Card colors ------------------
65
65
  $card_light: $white;
66
66
  $card_dark: rgba($white, $opacity_1);
67
67
  $card_colors: (
@@ -74,15 +74,15 @@ $action_colors: (
74
74
  primary_action: $primary-action
75
75
  );
76
76
 
77
- /* Active colors ----------------------*/
77
+ // Active colors ----------------------
78
78
  $active_light: lighten(#E5F2FF, 3.5%);
79
- $active_dark: #0082ff;
79
+ $active_dark: #0082ff;
80
80
  $active_colors: (
81
81
  active_light: $active_light,
82
82
  active_dark: $active_dark
83
83
  );
84
84
 
85
- /* Hover colors -----------------------*/
85
+ // Hover colors -----------------------
86
86
  $hover_light: darken($silver, 5%);
87
87
  $hover_dark: rgba($white, $opacity_2);
88
88
  $hover_colors: (
@@ -90,7 +90,7 @@ $hover_colors: (
90
90
  hover_dark: $hover_dark
91
91
  );
92
92
 
93
- /* Focus colors -----------------------*/
93
+ // Focus colors -----------------------
94
94
  $focus_input_light: rgba($active_light, $opacity_5);
95
95
  $focus_input_dark: rgba(#144075, $opacity_5);
96
96
  $focus_input_colors: (
@@ -98,7 +98,7 @@ $focus_input_colors: (
98
98
  focus_input_dark: $focus_input_dark
99
99
  );
100
100
 
101
- /* Border colors ----------------------*/
101
+ // Border colors ----------------------
102
102
  $border_light: #E4E8F0;
103
103
  $border_dark: rgba($white, $opacity_1);
104
104
  $border_colors: (
@@ -106,13 +106,13 @@ $border_colors: (
106
106
  border_dark: $border_dark
107
107
  );
108
108
 
109
- /* Shadow colors ----------------------*/
109
+ // Shadow colors ----------------------
110
110
  $shadow: rgba(#3C6AAC, $opacity_2);
111
111
  $shadow_colors: (
112
112
  shadow: $shadow,
113
113
  );
114
114
 
115
- /* Text colors ------------------------*/
115
+ // Text colors ------------------------
116
116
  $text_lt_default: $charcoal;
117
117
  $text_lt_light: #919EAB;
118
118
  $text_lt_lighter: $slate;
@@ -128,7 +128,7 @@ $text_colors: (
128
128
  text_dk_lighter: $text_dk_lighter
129
129
  );
130
130
 
131
- /* Data colors ------------------------*/
131
+ // Data colors ------------------------
132
132
  $data_1: $royal;
133
133
  $data_2: $yellow;
134
134
  $data_3: $purple;
@@ -148,7 +148,7 @@ $data_colors: (
148
148
  data_8: $data_8
149
149
  );
150
150
 
151
- /* Status colors ----------------------*/
151
+ // Status colors ----------------------
152
152
  $success: $green;
153
153
  $warning: $yellow;
154
154
  $error: $red;
@@ -174,10 +174,10 @@ $status_color_text: (
174
174
  primary: $primary
175
175
  );
176
176
 
177
- /* Link colors ------------------------*/
177
+ // Link colors ------------------------
178
178
  $primary_action: $primary;
179
179
 
180
- /* Product colors ---------------------*/
180
+ // Product colors ---------------------
181
181
  $windows: $royal;
182
182
  $siding: $yellow;
183
183
  $doors: $teal;
@@ -195,7 +195,7 @@ $product_colors: (
195
195
  insulation: $insulation
196
196
  );
197
197
 
198
- /* Category colors ---------------------*/
198
+ // Category colors ---------------------
199
199
  $category_1: $royal;
200
200
  $category_2: #0CD2E5;
201
201
  $category_3: $yellow;
@@ -252,6 +252,7 @@ $transparent: transparent;
252
252
  }
253
253
 
254
254
  :export {
255
+
255
256
  @mixin export-colors($colors-list) {
256
257
  @each $name, $color in $colors-list {
257
258
  #{$name}: $color;
@@ -2,7 +2,7 @@
2
2
  $font_family_base: "Proxima Nova", "Helvetica Neue", Helvetica, Arial, sans_serif;
3
3
 
4
4
 
5
- /* CLEAN UP AND REMOVE */
5
+ // CLEAN UP AND REMOVE
6
6
  $font_jumbo: 36px;
7
7
  $font_largest: 32px;
8
8
  $font_larger: 28px;
@@ -29,7 +29,7 @@ $text_smaller: $font_smaller;
29
29
  $text_smallest: $font_smallest;
30
30
 
31
31
 
32
- /* Headings */
32
+ // Headings
33
33
  $heading_1: 48px;
34
34
  $heading_2: 34px;
35
35
  $heading_3: $font_larger;
@@ -52,11 +52,11 @@ $lspace_super_loosest: .2em;
52
52
 
53
53
 
54
54
 
55
- /* Standard Font Weights */
55
+ // Standard Font Weights
56
56
  $bold: 600;
57
57
  $regular: 400;
58
58
 
59
- /* Non_Standard Font Weights */
59
+ // Non_Standard Font Weights
60
60
  $extrabold: 900;
61
61
  $boldest: 800;
62
62
  $bolder: 700;
@@ -12,15 +12,15 @@ window.datePickerHelper = datePickerHelper
12
12
  // Lazy image loading
13
13
  import 'lazysizes'
14
14
 
15
+ import PbCollapsible from './pb_collapsible'
16
+ PbCollapsible.start()
17
+
15
18
  import PbPopover from './pb_popover'
16
19
  PbPopover.start()
17
20
 
18
21
  import PbTooltip from './pb_tooltip'
19
22
  PbTooltip.start()
20
23
 
21
- import PbFixedConfirmationToast from './pb_fixed_confirmation_toast'
22
- PbFixedConfirmationToast.start()
23
-
24
24
  import PbTypeahead from './pb_typeahead'
25
25
  PbTypeahead.start()
26
26
 
@@ -28,8 +28,3 @@ import PbTable from './pb_table'
28
28
  PbTable.start()
29
29
 
30
30
  import 'flatpickr'
31
-
32
- // React-Rendered Rails Kits =====
33
- import WebpackerReact from 'webpacker-react'
34
- import * as ReactRailsPBKits from './react_rails_kits.js'
35
- WebpackerReact.setup({ ...ReactRailsPBKits })
@@ -0,0 +1,2 @@
1
+ <%= pb_rails("icon", props: { icon: "bars", classname: "pb--page--hamburger" }) %>
2
+ <input type="checkbox" class="pb--page--checkbox" />
@@ -0,0 +1,37 @@
1
+
2
+ <div class="pb--page--topNav <%= cookies[:dark_mode] == "true" ? 'dark' : '' %>">
3
+ <% if @playbook.nil?%>
4
+ <p>playbok is nil</p>
5
+ <% end %>
6
+ <%= pb_rails("flex", props:{spacing:"between",vertical: "center"}) do%>
7
+ <%= pb_rails("flex", props:{spacing:"between",vertical: "center"}) do%>
8
+ <%= link_to root_url do %>
9
+ <%= image_tag("pb.logo.svg") %>
10
+ <% end %>
11
+ <%= pb_rails("caption", props: { tag: "span", text: Playbook::VERSION }) %>
12
+ <% end %>
13
+ <div id="toggle-modes">
14
+ <% if cookies[:dark_mode] == "false" || cookies[:dark_mode] == nil%>
15
+ <%= pb_rails("circle_icon_button", props: {
16
+ variant: "secondary",
17
+ icon: "moon",
18
+ tag:"a",
19
+ link: enable_dark_mode_path
20
+ }) %>
21
+ <% else %>
22
+ <%= pb_rails("circle_icon_button", props: {
23
+ variant: "secondary",
24
+ icon: "sun",
25
+ tag:"a",
26
+ link: disable_dark_mode_path
27
+ }) %>
28
+ <% end %>
29
+ <% end %>
30
+ </div>
31
+
32
+ </div>
33
+ <%= pb_rails("section_separator")%>
34
+ <% flash.each do |name, msg| %>
35
+ <% name = "success" if name == "notice" %>
36
+ <%= pb_rails("fixed_confirmation_toast", props: { text: msg, status: name }) %>
37
+ <% end %>
@@ -0,0 +1,51 @@
1
+
2
+ <%= pb_rails("nav", props: {
3
+ title: "Kits",
4
+ link: all_link(@type),
5
+ variant: "subtle",
6
+ padding_y: "sm"
7
+ }) do %>
8
+ <% pb_rails("nav/item", props: {
9
+ text: "All",
10
+ link: all_link(@type),
11
+ active: all_active(controller_name, action_name)
12
+ }) %>
13
+ <% MENU["kits"].each do |link| %>
14
+ <% if link.is_a?(Hash) %>
15
+ <div class="category_section">
16
+ <%= pb_rails("nav/item", props: {
17
+ active: category_active(@category, link),
18
+ classname: "category",
19
+ icon_right: "angle-down",
20
+ link: category_link(@type, link)
21
+ }) do %>
22
+ <%= pb_kit_title(nav_hash_category(link)) %>
23
+ <% end %>
24
+ <%= pb_rails("nav", props: { variant: "subtle", classname: "sub_category"}) do %>
25
+ <% nav_hash_array(link).each do |sub_link| %>
26
+ <%= pb_rails("nav/item", props: {
27
+ text: pb_kit_title(sub_link),
28
+ link: sub_category_link(@type, sub_link),
29
+ active: sub_category_active(@kit, sub_link)
30
+ }) %>
31
+ <% end %>
32
+ <% end %>
33
+ </div>
34
+ <% else %>
35
+ <%= pb_rails("nav/item", props: {
36
+ text: pb_kit_title(link),
37
+ link: kit_link(@type, link),
38
+ active: kit_active(@kit, link)
39
+ }) %>
40
+ <% end %>
41
+ <% end %>
42
+ <% end %>
43
+
44
+ <%= pb_rails("section_separator") %>
45
+
46
+ <%= pb_rails("nav", props: {title: "Tokens", link: utilities_path, padding_y:"sm", variant:"subtle"}) do %>
47
+ <% color_active = (controller_name == 'pages' && action_name == 'utilities') ? true : false %>
48
+ <%= pb_rails("nav/item", props: { text: "Colors", link: utilities_path, active: color_active }) %>
49
+ <% spacing_active = (controller_name == 'pages' && action_name == 'tokens') ? true : false %>
50
+ <%= pb_rails("nav/item", props: { text: "Spacing", link: tokens_path, active: spacing_active }) %>
51
+ <% end %>
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title> Playbook Design System </title>
5
+ <%= csrf_meta_tags%>
6
+ <%= csp_meta_tag%>
7
+ <%= stylesheet_packs_with_chunks_tag 'main' %>
8
+ <meta content="user-scalable=0, initial-scale=1.0, minimum-scale=1" name="viewport"></meta>
9
+ </head>
10
+ <body>
11
+ <%= render 'layouts/playbook/nav'%>
12
+ <%= pb_rails("layout", props: {classname: "pb--page--content",variant: cookies[:dark_mode] == "true" ? 'dark' : 'light' }) do%>
13
+ <%= render 'layouts/playbook/mobile_hamburger'%>
14
+ <%= pb_rails("layout/sidebar", props: { classname: "pb--page--sideNav"}) do%>
15
+ <%= render 'layouts/playbook/sidebar'%>
16
+ <% end%>
17
+ <%= pb_rails("layout/body") do%>
18
+ <div class="pb--page--content--main <%= cookies[:dark_mode] == "true" ? 'dark' : '' %>">
19
+ <%= yield %>
20
+ </div>
21
+ <% end %>
22
+ <%end%>
23
+ </body>
24
+ <%= javascript_include_tag "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.js" %>
25
+ <%= javascript_packs_with_chunks_tag 'application', 'examples' %>
26
+ <%= yield :pb_js %>
@@ -0,0 +1,10 @@
1
+ doctype html
2
+ html
3
+ head
4
+ title Playbook Design System
5
+ = csrf_meta_tags
6
+ = csp_meta_tag
7
+ = stylesheet_packs_with_chunks_tag 'main'
8
+ = javascript_packs_with_chunks_tag 'application'
9
+ body
10
+ = yield
@@ -0,0 +1,10 @@
1
+ doctype html
2
+ html
3
+ head
4
+ title Playbook Design System
5
+ = csrf_meta_tags
6
+ = csp_meta_tag
7
+ = stylesheet_packs_with_chunks_tag 'main'
8
+ = javascript_packs_with_chunks_tag 'application'
9
+ body
10
+ = yield
@@ -0,0 +1,19 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Full Screen Examples</title>
5
+ <%= csrf_meta_tags %>
6
+ <%= csp_meta_tag %>
7
+ <meta content="user-scalable=0, initial-scale=1.0, minimum-scale=1" name="viewport"/>
8
+ <%= stylesheet_packs_with_chunks_tag 'main' %>
9
+ </head>
10
+ <body>
11
+ <div class="sample-layout">
12
+ <%= yield %>
13
+ </div>
14
+ </body>
15
+
16
+ <%= javascript_include_tag "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.js" %>
17
+ <%= javascript_packs_with_chunks_tag 'application', 'examples', 'samples' %>
18
+ <%= yield :pb_js %>
19
+ </html>
@@ -0,0 +1,16 @@
1
+ .markdown
2
+ = render 'playbook/guides/create_kit/generator'
3
+ br
4
+ = render 'playbook/guides/create_kit/view_objects'
5
+ br
6
+ = render 'playbook/guides/create_kit/kit_rails'
7
+ br
8
+ = render 'playbook/guides/create_kit/kit_react'
9
+ br
10
+ = render 'playbook/guides/create_kit/kit_examples'
11
+ br
12
+ = render 'playbook/guides/create_kit/file_naming'
13
+ br
14
+ = render 'playbook/guides/create_kit/layout'
15
+ br
16
+ = render 'playbook/guides/create_kit/writing_sass'
@@ -0,0 +1,2 @@
1
+ ## File Naming
2
+ How files should be named
@@ -0,0 +1,6 @@
1
+ ## Kit Generator
2
+ Create a basic kit through the generator to speed up kit development.
3
+
4
+ ```
5
+ rails g kit my_new_kit
6
+ ```
@@ -0,0 +1,2 @@
1
+ ## Examples
2
+ Understand how to create examples
@@ -0,0 +1,2 @@
1
+ ## Rails Partial
2
+ How to setup kit partial
@@ -0,0 +1,2 @@
1
+ ## React Component
2
+ How to setup kit component for react
@@ -0,0 +1,2 @@
1
+ ## Layout and structure
2
+ A a kit should be able to function without external utility classes and libraries. A kit should handle layout for it’s children.
@@ -0,0 +1,2 @@
1
+ ## View Objects
2
+ Understanding view objects
@@ -0,0 +1,10 @@
1
+ ## Writing Sass
2
+ ---
3
+ #### Class names, chaining, and SASS
4
+ A kit should be named using prefixed complex classes to try and avoid naming collision and style bleed. Class chaining should be avoided if possible.
5
+
6
+ ---
7
+
8
+ 1. Use extend a class using & when possible and avoid class chaining when possible.
9
+ 2. When you must use a chained class try to avoid setting multiple properties.
10
+ 3. If your using chained classes have simple names make sure they don't collide with our utilities, and try to nest them under a parent class to avoid bleed