playbook_ui 7.0.0 → 7.0.1.pre.alpha1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (442) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +6 -4
  3. data/app/controllers/playbook/application_controller.rb +2 -2
  4. data/app/controllers/playbook/guides_controller.rb +11 -0
  5. data/app/controllers/playbook/pages_controller.rb +109 -0
  6. data/app/controllers/playbook/samples_controller.rb +40 -0
  7. data/app/helpers/playbook/application_helper.rb +0 -19
  8. data/app/helpers/playbook/pb_doc_helper.rb +1 -0
  9. data/app/helpers/playbook/pb_kit_helper.rb +14 -12
  10. data/app/pb_kits/playbook/_playbook.scss +0 -2
  11. data/app/pb_kits/playbook/config/_kit_ui.html.erb +1 -1
  12. data/app/pb_kits/playbook/data/menu.yml +0 -1
  13. data/app/pb_kits/playbook/index.js +0 -8
  14. data/app/pb_kits/playbook/packs/application.js +55 -0
  15. data/app/pb_kits/playbook/packs/examples.js +175 -0
  16. data/app/pb_kits/playbook/packs/main.scss +12 -0
  17. data/app/pb_kits/playbook/packs/samples.js +21 -0
  18. data/app/pb_kits/playbook/packs/site_styles/_samples.scss +72 -0
  19. data/app/pb_kits/playbook/packs/site_styles/_scaffold.scss +43 -0
  20. data/app/pb_kits/playbook/packs/site_styles/_site-style.scss +146 -0
  21. data/app/pb_kits/playbook/packs/site_styles/docs/_all.scss +10 -0
  22. data/app/pb_kits/playbook/packs/site_styles/docs/_bg_light_doc_example.scss +7 -0
  23. data/app/pb_kits/playbook/packs/site_styles/docs/_code_snippet.scss +531 -0
  24. data/app/pb_kits/playbook/packs/site_styles/docs/_color_utilities.scss +92 -0
  25. data/app/pb_kits/playbook/packs/site_styles/docs/_flex_examples.scss +15 -0
  26. data/app/pb_kits/playbook/packs/site_styles/docs/_kit_doc.scss +133 -0
  27. data/app/pb_kits/playbook/packs/site_styles/docs/_kits_examples.scss +15 -0
  28. data/app/pb_kits/playbook/packs/site_styles/docs/_markdown.scss +88 -0
  29. data/app/pb_kits/playbook/packs/site_styles/docs/_spacing_tokens.scss +72 -0
  30. data/app/pb_kits/playbook/pb_avatar/_avatar.jsx +1 -5
  31. data/app/pb_kits/playbook/pb_badge/_badge.jsx +2 -4
  32. data/app/pb_kits/playbook/pb_bar_graph/_bar_graph.html.erb +12 -1
  33. data/app/pb_kits/playbook/pb_bar_graph/_bar_graph.jsx +1 -1
  34. data/app/pb_kits/playbook/pb_bar_graph/bar_graph.rb +1 -1
  35. data/app/pb_kits/playbook/pb_body/_body.jsx +1 -1
  36. data/app/pb_kits/playbook/pb_body/_body.scss +1 -17
  37. data/app/pb_kits/playbook/pb_body/body.rb +1 -1
  38. data/app/pb_kits/playbook/pb_button/_button.jsx +1 -6
  39. data/app/pb_kits/playbook/pb_button/_button_mixins.scss +18 -32
  40. data/app/pb_kits/playbook/pb_button/docs/_button_default.jsx +0 -2
  41. data/app/pb_kits/playbook/pb_button/docs/_button_link.jsx +0 -2
  42. data/app/pb_kits/playbook/pb_button/docs/_button_loading.jsx +0 -2
  43. data/app/pb_kits/playbook/pb_button_toolbar/_button_toolbar.jsx +1 -5
  44. data/app/pb_kits/playbook/pb_button_toolbar/_button_toolbar.scss +8 -16
  45. data/app/pb_kits/playbook/pb_caption/_caption.jsx +3 -5
  46. data/app/pb_kits/playbook/pb_caption/_caption.scss +0 -3
  47. data/app/pb_kits/playbook/pb_caption/caption.rb +1 -4
  48. data/app/pb_kits/playbook/pb_caption/docs/index.js +0 -1
  49. data/app/pb_kits/playbook/pb_card/_card_mixin.scss +0 -1
  50. data/app/pb_kits/playbook/pb_checkbox/_checkbox.jsx +2 -5
  51. data/app/pb_kits/playbook/pb_checkbox/_checkbox.scss +6 -12
  52. data/app/pb_kits/playbook/pb_checkbox/checkbox.rb +1 -3
  53. data/app/pb_kits/playbook/pb_checkbox/docs/example.yml +0 -1
  54. data/app/pb_kits/playbook/pb_circle_chart/_circle_chart.html.erb +1 -1
  55. data/app/pb_kits/playbook/pb_circle_chart/_circle_chart.scss +1 -1
  56. data/app/pb_kits/playbook/pb_circle_chart/docs/example.yml +0 -11
  57. data/app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.jsx +1 -5
  58. data/app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_link.html.erb +1 -2
  59. data/app/pb_kits/playbook/pb_contact/_contact.jsx +1 -5
  60. data/app/pb_kits/playbook/pb_currency/_currency.jsx +1 -5
  61. data/app/pb_kits/playbook/pb_dashboard_value/_dashboard_value.jsx +1 -5
  62. data/app/pb_kits/playbook/pb_date/date.rb +1 -2
  63. data/app/pb_kits/playbook/pb_date/docs/_date_default.html.erb +1 -8
  64. data/app/pb_kits/playbook/pb_date/docs/_description.md +0 -2
  65. data/app/pb_kits/playbook/pb_date/docs/example.yml +0 -1
  66. data/app/pb_kits/playbook/pb_date_range_stacked/_date_range_stacked.jsx +1 -5
  67. data/app/pb_kits/playbook/pb_date_stacked/_date_stacked.jsx +2 -2
  68. data/app/pb_kits/playbook/pb_date_time_stacked/docs/_date_time_stacked_dark.jsx +1 -1
  69. data/app/pb_kits/playbook/pb_date_time_stacked/docs/_date_time_stacked_default.jsx +1 -1
  70. data/app/pb_kits/playbook/pb_date_year_stacked/_date_year_stacked.jsx +1 -5
  71. data/app/pb_kits/playbook/pb_distribution_bar/_distribution_bar.html.erb +8 -1
  72. data/app/pb_kits/playbook/pb_distribution_bar/distribution_bar.rb +0 -7
  73. data/app/pb_kits/playbook/pb_file_upload/_file_upload.jsx +1 -1
  74. data/app/pb_kits/playbook/pb_filter/_filter.scss +1 -1
  75. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.jsx +2 -2
  76. data/app/pb_kits/playbook/pb_flex/_flex.jsx +2 -2
  77. data/app/pb_kits/playbook/pb_flex/_flex_item.jsx +1 -1
  78. data/app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb +1 -10
  79. data/app/pb_kits/playbook/pb_form/docs/_form_form_with_validate.html.erb +0 -1
  80. data/app/pb_kits/playbook/pb_form/docs/_form_simple_form.html.erb +0 -2
  81. data/app/pb_kits/playbook/pb_form/docs/_form_simple_form_validate.html.erb +0 -2
  82. data/app/pb_kits/playbook/pb_form/form_builder.rb +0 -1
  83. data/app/pb_kits/playbook/pb_form/form_builder/checkbox_field.rb +2 -7
  84. data/app/pb_kits/playbook/pb_form_pill/_form_pill.jsx +2 -3
  85. data/app/pb_kits/playbook/pb_form_pill/_form_pill.scss +2 -5
  86. data/app/pb_kits/playbook/pb_gauge/_gauge.jsx +1 -1
  87. data/app/pb_kits/playbook/pb_highlight/_highlight.jsx +1 -1
  88. data/app/pb_kits/playbook/pb_home_address_street/_home_address_street.jsx +2 -2
  89. data/app/pb_kits/playbook/pb_icon/_icon.jsx +2 -2
  90. data/app/pb_kits/playbook/pb_icon/docs/_icon_default_dark.html.erb +1 -3
  91. data/app/pb_kits/playbook/pb_icon/docs/_icon_default_dark.jsx +5 -7
  92. data/app/pb_kits/playbook/pb_icon_value/_icon_value.jsx +1 -5
  93. data/app/pb_kits/playbook/pb_image/_image.jsx +1 -5
  94. data/app/pb_kits/playbook/pb_label_pill/_label_pill.jsx +1 -5
  95. data/app/pb_kits/playbook/pb_label_value/docs/_label_value_dark.html.erb +24 -0
  96. data/app/pb_kits/playbook/pb_label_value/docs/_label_value_dark.jsx +35 -0
  97. data/app/pb_kits/playbook/pb_label_value/docs/_label_value_details_dark.html.erb +43 -0
  98. data/app/pb_kits/playbook/pb_label_value/docs/_label_value_details_dark.jsx +54 -0
  99. data/app/pb_kits/playbook/pb_label_value/docs/_label_value_details_examples_dark.html.erb +80 -0
  100. data/app/pb_kits/playbook/pb_label_value/docs/_label_value_details_examples_dark.jsx +101 -0
  101. data/app/pb_kits/playbook/pb_label_value/docs/example.yml +7 -1
  102. data/app/pb_kits/playbook/pb_label_value/docs/index.js +4 -0
  103. data/app/pb_kits/playbook/pb_layout/_layout.jsx +4 -4
  104. data/app/pb_kits/playbook/pb_legend/docs/_legend_dark.html.erb +5 -0
  105. data/app/pb_kits/playbook/pb_legend/docs/_legend_dark.jsx +21 -0
  106. data/app/pb_kits/playbook/pb_legend/docs/_legend_dark_prefix.html.erb +1 -0
  107. data/app/pb_kits/playbook/pb_legend/docs/_legend_dark_prefix.jsx +15 -0
  108. data/app/pb_kits/playbook/pb_legend/docs/example.yml +5 -1
  109. data/app/pb_kits/playbook/pb_legend/docs/index.js +2 -0
  110. data/app/pb_kits/playbook/pb_line_graph/_line_graph.html.erb +13 -1
  111. data/app/pb_kits/playbook/pb_line_graph/_line_graph.jsx +1 -1
  112. data/app/pb_kits/playbook/pb_line_graph/line_graph.rb +1 -1
  113. data/app/pb_kits/playbook/pb_list/_list.jsx +2 -3
  114. data/app/pb_kits/playbook/pb_list/_list_item.jsx +2 -3
  115. data/app/pb_kits/playbook/pb_list/docs/_list_dark.html.erb +7 -0
  116. data/app/pb_kits/playbook/pb_list/docs/_list_dark.jsx +19 -0
  117. data/app/pb_kits/playbook/pb_list/docs/_list_dark_borderless.html.erb +7 -0
  118. data/app/pb_kits/playbook/pb_list/docs/_list_dark_borderless.jsx +22 -0
  119. data/app/pb_kits/playbook/pb_list/docs/_list_dark_lg.html.erb +7 -0
  120. data/app/pb_kits/playbook/pb_list/docs/_list_dark_lg.jsx +22 -0
  121. data/app/pb_kits/playbook/pb_list/docs/_list_dark_ordered.html.erb +7 -0
  122. data/app/pb_kits/playbook/pb_list/docs/_list_dark_ordered.jsx +22 -0
  123. data/app/pb_kits/playbook/pb_list/docs/_list_dark_xpadding.html.erb +7 -0
  124. data/app/pb_kits/playbook/pb_list/docs/_list_dark_xpadding.jsx +22 -0
  125. data/app/pb_kits/playbook/pb_list/docs/example.yml +11 -1
  126. data/app/pb_kits/playbook/pb_list/docs/index.js +6 -0
  127. data/app/pb_kits/playbook/pb_loading_inline/docs/_loading_inline_dark.html.erb +13 -0
  128. data/app/pb_kits/playbook/pb_loading_inline/docs/_loading_inline_dark.jsx +20 -0
  129. data/app/pb_kits/playbook/pb_loading_inline/docs/example.yml +3 -1
  130. data/app/pb_kits/playbook/pb_loading_inline/docs/index.js +1 -0
  131. data/app/pb_kits/playbook/pb_logistic/_logistic.jsx +1 -5
  132. data/app/pb_kits/playbook/pb_message/_message.jsx +1 -5
  133. data/app/pb_kits/playbook/pb_multiple_users/_multiple_users.jsx +2 -5
  134. data/app/pb_kits/playbook/pb_multiple_users/docs/_multiple_users_dark.html.erb +41 -0
  135. data/app/pb_kits/playbook/pb_multiple_users/docs/_multiple_users_dark.jsx +52 -0
  136. data/app/pb_kits/playbook/pb_multiple_users/docs/example.yml +2 -1
  137. data/app/pb_kits/playbook/pb_multiple_users/docs/index.js +1 -0
  138. data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/_multiple_users_stacked_dark.html.erb +53 -0
  139. data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/_multiple_users_stacked_dark.jsx +62 -0
  140. data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/example.yml +2 -1
  141. data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/index.js +1 -0
  142. data/app/pb_kits/playbook/pb_nav/_horizontal_nav.scss +4 -6
  143. data/app/pb_kits/playbook/pb_nav/_nav.jsx +2 -7
  144. data/app/pb_kits/playbook/pb_nav/_vertical_nav.scss +14 -18
  145. data/app/pb_kits/playbook/pb_person/_person.jsx +1 -5
  146. data/app/pb_kits/playbook/pb_person_contact/_person_contact.jsx +7 -12
  147. data/app/pb_kits/playbook/pb_person_contact/docs/_person_contact_with_wrong_numbers.jsx +0 -1
  148. data/app/pb_kits/playbook/pb_pill/docs/_pill_dark.html.erb +52 -0
  149. data/app/pb_kits/playbook/pb_pill/docs/_pill_dark.jsx +69 -0
  150. data/app/pb_kits/playbook/pb_pill/docs/example.yml +3 -1
  151. data/app/pb_kits/playbook/pb_pill/docs/index.js +1 -0
  152. data/app/pb_kits/playbook/pb_popover/_popover.jsx +1 -5
  153. data/app/pb_kits/playbook/pb_progress_pills/docs/_progress_pills_dark.html.erb +1 -0
  154. data/app/pb_kits/playbook/pb_progress_pills/docs/_progress_pills_dark.jsx +20 -0
  155. data/app/pb_kits/playbook/pb_progress_pills/docs/_progress_pills_status_dark.html.erb +1 -0
  156. data/app/pb_kits/playbook/pb_progress_pills/docs/_progress_pills_status_dark.jsx +19 -0
  157. data/app/pb_kits/playbook/pb_progress_pills/docs/example.yml +4 -1
  158. data/app/pb_kits/playbook/pb_progress_pills/docs/index.js +2 -0
  159. data/app/pb_kits/playbook/pb_progress_simple/_progress_simple.jsx +4 -4
  160. data/app/pb_kits/playbook/pb_progress_step/_progress_step.jsx +1 -1
  161. data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_dark.html.erb +34 -0
  162. data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_dark.jsx +18 -0
  163. data/app/pb_kits/playbook/pb_progress_step/docs/example.yml +2 -0
  164. data/app/pb_kits/playbook/pb_progress_step/docs/index.js +1 -0
  165. data/app/pb_kits/playbook/pb_progress_step/progress_step.rb +2 -2
  166. data/app/pb_kits/playbook/pb_progress_step/progress_step_item.rb +1 -0
  167. data/app/pb_kits/playbook/pb_radio/_radio.html.erb +1 -1
  168. data/app/pb_kits/playbook/pb_radio/_radio.scss +4 -9
  169. data/app/pb_kits/playbook/pb_radio/docs/_radio_dark.html.erb +25 -0
  170. data/app/pb_kits/playbook/pb_radio/docs/_radio_dark.jsx +33 -0
  171. data/app/pb_kits/playbook/pb_radio/docs/_radio_dark_error.html.erb +7 -0
  172. data/app/pb_kits/playbook/pb_radio/docs/_radio_dark_error.jsx +17 -0
  173. data/app/pb_kits/playbook/pb_radio/docs/example.yml +4 -1
  174. data/app/pb_kits/playbook/pb_radio/docs/index.js +3 -0
  175. data/app/pb_kits/playbook/pb_radio/radio.rb +4 -2
  176. data/app/pb_kits/playbook/pb_section_separator/_section_separator.jsx +1 -1
  177. data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_dark.html.erb +1 -0
  178. data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_dark.jsx +14 -0
  179. data/app/pb_kits/playbook/pb_section_separator/docs/example.yml +2 -1
  180. data/app/pb_kits/playbook/pb_section_separator/docs/index.js +1 -0
  181. data/app/pb_kits/playbook/pb_select/_select.scss +5 -9
  182. data/app/pb_kits/playbook/pb_select/docs/_select_dark.html.erb +24 -0
  183. data/app/pb_kits/playbook/pb_select/docs/_select_dark.jsx +33 -0
  184. data/app/pb_kits/playbook/pb_select/docs/_select_dark_error.html.erb +25 -0
  185. data/app/pb_kits/playbook/pb_select/docs/_select_dark_error.jsx +39 -0
  186. data/app/pb_kits/playbook/pb_select/docs/example.yml +4 -1
  187. data/app/pb_kits/playbook/pb_select/docs/index.js +2 -0
  188. data/app/pb_kits/playbook/pb_selectable_card/_selectable_card.scss +3 -6
  189. data/app/pb_kits/playbook/pb_selectable_card/docs/_selectable_card_dark.html.erb +45 -0
  190. data/app/pb_kits/playbook/pb_selectable_card/docs/_selectable_card_dark.jsx +72 -0
  191. data/app/pb_kits/playbook/pb_selectable_card/docs/example.yml +2 -1
  192. data/app/pb_kits/playbook/pb_selectable_card/docs/index.js +1 -0
  193. data/app/pb_kits/playbook/pb_selectable_card_icon/_selectable_card_icon.jsx +5 -9
  194. data/app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_dark.html.erb +30 -0
  195. data/app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_dark.jsx +40 -0
  196. data/app/pb_kits/playbook/pb_selectable_card_icon/docs/example.yml +4 -1
  197. data/app/pb_kits/playbook/pb_selectable_card_icon/docs/index.js +1 -0
  198. data/app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.jsx +5 -9
  199. data/app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.scss +37 -35
  200. data/app/pb_kits/playbook/pb_selectable_icon/docs/_selectable_icon_dark.html.erb +26 -0
  201. data/app/pb_kits/playbook/pb_selectable_icon/docs/_selectable_icon_dark.jsx +43 -0
  202. data/app/pb_kits/playbook/pb_selectable_icon/docs/example.yml +3 -1
  203. data/app/pb_kits/playbook/pb_selectable_icon/docs/index.js +1 -0
  204. data/app/pb_kits/playbook/pb_stat_change/_stat_change.jsx +2 -2
  205. data/app/pb_kits/playbook/pb_stat_value/_stat_value.jsx +3 -3
  206. data/app/pb_kits/playbook/pb_stat_value/docs/_stat_value_default.jsx +1 -6
  207. data/app/pb_kits/playbook/pb_table/_table.jsx +2 -2
  208. data/app/pb_kits/playbook/pb_table/docs/_table_container_dark.html.erb +34 -0
  209. data/app/pb_kits/playbook/pb_table/docs/_table_container_dark.jsx +47 -0
  210. data/app/pb_kits/playbook/pb_table/docs/_table_dark.html.erb +34 -0
  211. data/app/pb_kits/playbook/pb_table/docs/_table_dark.jsx +46 -0
  212. data/app/pb_kits/playbook/pb_table/docs/example.yml +4 -1
  213. data/app/pb_kits/playbook/pb_table/docs/index.js +2 -0
  214. data/app/pb_kits/playbook/pb_table/styles/_hover.scss +12 -15
  215. data/app/pb_kits/playbook/pb_table/styles/_mobile.scss +4 -6
  216. data/app/pb_kits/playbook/pb_table/styles/_table-dark.scss +4 -6
  217. data/app/pb_kits/playbook/pb_table/table.rb +3 -3
  218. data/app/pb_kits/playbook/pb_text_input/_text_input.html.erb +0 -1
  219. data/app/pb_kits/playbook/pb_text_input/_text_input.jsx +18 -22
  220. data/app/pb_kits/playbook/pb_text_input/_text_input.scss +8 -17
  221. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_dark.html.erb +5 -0
  222. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_dark.jsx +78 -0
  223. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_dark_error.html.erb +14 -0
  224. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_dark_error.jsx +18 -0
  225. data/app/pb_kits/playbook/pb_text_input/docs/example.yml +5 -0
  226. data/app/pb_kits/playbook/pb_text_input/docs/index.js +2 -0
  227. data/app/pb_kits/playbook/pb_text_input/text_input.rb +0 -2
  228. data/app/pb_kits/playbook/pb_textarea/_textarea.jsx +1 -1
  229. data/app/pb_kits/playbook/pb_textarea/docs/_textarea_dark.html.erb +9 -0
  230. data/app/pb_kits/playbook/pb_textarea/docs/_textarea_dark.jsx +34 -0
  231. data/app/pb_kits/playbook/pb_textarea/docs/_textarea_dark_error.html.erb +6 -0
  232. data/app/pb_kits/playbook/pb_textarea/docs/_textarea_dark_error.jsx +19 -0
  233. data/app/pb_kits/playbook/pb_textarea/docs/example.yml +4 -1
  234. data/app/pb_kits/playbook/pb_textarea/docs/index.js +2 -0
  235. data/app/pb_kits/playbook/pb_time/_time.html.erb +17 -23
  236. data/app/pb_kits/playbook/pb_time/_time.jsx +17 -28
  237. data/app/pb_kits/playbook/pb_time/_time.scss +8 -16
  238. data/app/pb_kits/playbook/pb_time/docs/_time_align.jsx +3 -3
  239. data/app/pb_kits/playbook/pb_time/docs/_time_dark.jsx +28 -0
  240. data/app/pb_kits/playbook/pb_time/docs/_time_default.html.erb +3 -47
  241. data/app/pb_kits/playbook/pb_time/docs/_time_default.jsx +7 -34
  242. data/app/pb_kits/playbook/pb_time/docs/_time_timestamp.html.erb +1 -3
  243. data/app/pb_kits/playbook/pb_time/docs/_time_timestamp.jsx +10 -0
  244. data/app/pb_kits/playbook/pb_time/docs/example.yml +3 -7
  245. data/app/pb_kits/playbook/pb_time/docs/index.js +1 -2
  246. data/app/pb_kits/playbook/pb_time/time.rb +2 -14
  247. data/app/pb_kits/playbook/pb_time_range_inline/_time_range_inline.jsx +1 -1
  248. data/app/pb_kits/playbook/pb_time_range_inline/docs/_time_range_inline_dark.html.erb +72 -0
  249. data/app/pb_kits/playbook/pb_time_range_inline/docs/_time_range_inline_dark.jsx +81 -0
  250. data/app/pb_kits/playbook/pb_time_range_inline/docs/example.yml +3 -0
  251. data/app/pb_kits/playbook/pb_time_range_inline/docs/index.js +1 -0
  252. data/app/pb_kits/playbook/pb_time_stacked/_time_stacked.jsx +3 -3
  253. data/app/pb_kits/playbook/pb_time_stacked/docs/_time_stacked_dark.html.erb +1 -0
  254. data/app/pb_kits/playbook/pb_time_stacked/docs/_time_stacked_dark.jsx +15 -0
  255. data/app/pb_kits/playbook/pb_time_stacked/docs/example.yml +3 -1
  256. data/app/pb_kits/playbook/pb_time_stacked/docs/index.js +1 -0
  257. data/app/pb_kits/playbook/pb_timestamp/_timestamp.jsx +1 -1
  258. data/app/pb_kits/playbook/pb_title/_title.jsx +2 -6
  259. data/app/pb_kits/playbook/pb_title/_title.scss +5 -5
  260. data/app/pb_kits/playbook/pb_title/docs/_title_dark.html.erb +8 -0
  261. data/app/pb_kits/playbook/pb_title/docs/_title_dark.jsx +35 -0
  262. data/app/pb_kits/playbook/pb_title/docs/example.yml +2 -3
  263. data/app/pb_kits/playbook/pb_title/docs/index.js +1 -1
  264. data/app/pb_kits/playbook/pb_title_count/_title_count.jsx +1 -5
  265. data/app/pb_kits/playbook/pb_title_count/docs/_title_count_align_dark.html.erb +23 -0
  266. data/app/pb_kits/playbook/pb_title_count/docs/_title_count_align_dark.jsx +34 -0
  267. data/app/pb_kits/playbook/pb_title_count/docs/_title_count_dark.html.erb +23 -0
  268. data/app/pb_kits/playbook/pb_title_count/docs/_title_count_dark.jsx +34 -0
  269. data/app/pb_kits/playbook/pb_title_count/docs/example.yml +4 -0
  270. data/app/pb_kits/playbook/pb_title_count/docs/index.js +2 -0
  271. data/app/pb_kits/playbook/pb_title_detail/_title_detail.jsx +5 -5
  272. data/app/pb_kits/playbook/pb_title_detail/docs/_title_detail_dark.html.erb +19 -0
  273. data/app/pb_kits/playbook/pb_title_detail/docs/_title_detail_dark.jsx +29 -0
  274. data/app/pb_kits/playbook/pb_toggle/_toggle.jsx +3 -3
  275. data/app/pb_kits/playbook/pb_toggle/_toggle.scss +43 -41
  276. data/app/pb_kits/playbook/pb_toggle/docs/_toggle_size.html.erb +11 -0
  277. data/app/pb_kits/playbook/pb_toggle/docs/_toggle_size.jsx +44 -0
  278. data/app/pb_kits/playbook/pb_toggle/docs/example.yml +2 -0
  279. data/app/pb_kits/playbook/pb_toggle/docs/index.js +1 -0
  280. data/app/pb_kits/playbook/pb_toggle/toggle.rb +1 -1
  281. data/app/pb_kits/playbook/pb_typeahead/_typeahead.scss +5 -24
  282. data/app/pb_kits/playbook/pb_typeahead/docs/example.yml +2 -8
  283. data/app/pb_kits/playbook/pb_user/docs/_user_dark.html.erb +42 -0
  284. data/app/pb_kits/playbook/pb_user/docs/_user_dark.jsx +55 -0
  285. data/app/pb_kits/playbook/pb_user/docs/_user_text_only_dark.html.erb +19 -0
  286. data/app/pb_kits/playbook/pb_user/docs/_user_text_only_dark.jsx +26 -0
  287. data/app/pb_kits/playbook/pb_user/docs/example.yml +4 -1
  288. data/app/pb_kits/playbook/pb_user/docs/index.js +3 -0
  289. data/app/pb_kits/playbook/pb_user_badge/_user_badge.jsx +2 -5
  290. data/app/pb_kits/playbook/pb_user_badge/docs/_user_badge_dark.html.erb +13 -0
  291. data/app/pb_kits/playbook/pb_user_badge/docs/_user_badge_dark.jsx +27 -0
  292. data/app/pb_kits/playbook/pb_user_badge/docs/example.yml +5 -0
  293. data/app/pb_kits/playbook/pb_user_badge/docs/index.js +1 -0
  294. data/app/pb_kits/playbook/pb_weekday_stacked/docs/_weekday_stacked_dark.html.erb +1 -0
  295. data/app/pb_kits/playbook/pb_weekday_stacked/docs/_weekday_stacked_dark.jsx +14 -0
  296. data/app/pb_kits/playbook/pb_weekday_stacked/docs/example.yml +3 -0
  297. data/app/pb_kits/playbook/pb_weekday_stacked/docs/index.js +1 -0
  298. data/app/pb_kits/playbook/plugins/pb_chart.js +1 -1
  299. data/app/pb_kits/playbook/tokens/_colors.scss +23 -22
  300. data/app/pb_kits/playbook/tokens/_typography.scss +7 -7
  301. data/app/pb_kits/playbook/vendor.js +0 -11
  302. data/app/views/layouts/playbook/_mobile_hamburger.html.erb +2 -0
  303. data/app/views/layouts/playbook/_nav.html.erb +33 -0
  304. data/app/views/layouts/playbook/_sidebar.html.erb +51 -0
  305. data/app/views/layouts/playbook/application.html.erb +26 -0
  306. data/app/views/layouts/playbook/fullscreen.html.slim +10 -0
  307. data/app/views/layouts/playbook/grid.html.slim +10 -0
  308. data/app/views/layouts/playbook/samples.html.erb +19 -0
  309. data/app/views/playbook/guides/create_kit.html.slim +16 -0
  310. data/app/views/playbook/guides/create_kit/_file_naming.html.md +2 -0
  311. data/app/views/playbook/guides/create_kit/_generator.html.md +6 -0
  312. data/app/views/playbook/guides/create_kit/_kit_examples.html.md +2 -0
  313. data/app/views/playbook/guides/create_kit/_kit_rails.html.md +2 -0
  314. data/app/views/playbook/guides/create_kit/_kit_react.html.md +2 -0
  315. data/app/views/playbook/guides/create_kit/_layout.html.md +2 -0
  316. data/app/views/playbook/guides/create_kit/_view_objects.html.md +2 -0
  317. data/app/views/playbook/guides/create_kit/_writing_sass.md +10 -0
  318. data/app/views/playbook/guides/use_nitro.html.slim +6 -0
  319. data/app/views/playbook/guides/use_nitro/_local.html.md +2 -0
  320. data/app/views/playbook/guides/use_nitro/_nitro_components.html.md +2 -0
  321. data/app/views/playbook/guides/use_nitro/_versions.html.md +2 -0
  322. data/app/views/playbook/pages/fullscreen.html.slim +10 -0
  323. data/app/views/playbook/pages/grid.html.slim +2 -0
  324. data/app/views/playbook/pages/home.html.slim +4 -0
  325. data/app/views/playbook/pages/kit_category_show.html.erb +14 -0
  326. data/app/views/playbook/pages/kit_show.html.erb +33 -0
  327. data/app/views/playbook/pages/kits.html.erb +12 -0
  328. data/app/views/playbook/pages/principals/_getting_started.html.md +30 -0
  329. data/app/views/playbook/pages/principles.html.slim +3 -0
  330. data/app/views/playbook/pages/tokens.html.slim +15 -0
  331. data/app/views/playbook/pages/tokens/_pb_doc_spacing.html.slim +61 -0
  332. data/app/views/playbook/pages/utilities.html.slim +116 -0
  333. data/app/views/playbook/pages/utilities/_pb_doc_color.html.slim +15 -0
  334. data/app/views/playbook/samples/collection_detail/index.html.erb +169 -0
  335. data/app/views/playbook/samples/collection_detail/index.jsx +372 -0
  336. data/app/views/playbook/samples/dashboards/index.html.erb +81 -0
  337. data/app/views/playbook/samples/dashboards/index.jsx +130 -0
  338. data/app/views/playbook/samples/filter_table/index.html.erb +348 -0
  339. data/app/views/playbook/samples/filter_table/index.jsx +433 -0
  340. data/app/views/playbook/samples/registration/index.html.erb +316 -0
  341. data/app/views/playbook/samples/registration/index.jsx +476 -0
  342. data/app/views/playbook/samples/sample_show.html.erb +36 -0
  343. data/lib/generators/kit/kit_generator.rb +1 -1
  344. data/lib/generators/kit/templates/kit_jsx.erb.tt +1 -1
  345. data/lib/playbook/engine.rb +0 -1
  346. data/lib/playbook/version.rb +2 -1
  347. data/lib/tasks/pb_release.rake +3 -14
  348. metadata +150 -100
  349. data/app/pb_kits/playbook/pb_caption/docs/_caption_variants.html.erb +0 -1
  350. data/app/pb_kits/playbook/pb_caption/docs/_caption_variants.jsx +0 -16
  351. data/app/pb_kits/playbook/pb_caption/docs/_caption_variants.md +0 -3
  352. data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_options.html.erb +0 -10
  353. data/app/pb_kits/playbook/pb_circle_chart/_circle_chart.jsx +0 -130
  354. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_block.jsx +0 -39
  355. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_colors.jsx +0 -29
  356. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_default.jsx +0 -28
  357. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_inner_sizes.jsx +0 -117
  358. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_live_data.jsx +0 -53
  359. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_rounded.jsx +0 -30
  360. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_labels.jsx +0 -45
  361. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_legend_kit.jsx +0 -30
  362. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_title.jsx +0 -45
  363. data/app/pb_kits/playbook/pb_circle_chart/docs/index.js +0 -9
  364. data/app/pb_kits/playbook/pb_date/docs/_date_timezone.html.erb +0 -51
  365. data/app/pb_kits/playbook/pb_date/docs/_date_timezone.md +0 -6
  366. data/app/pb_kits/playbook/pb_date_picker/_date_picker.html.erb +0 -39
  367. data/app/pb_kits/playbook/pb_date_picker/_date_picker.jsx +0 -149
  368. data/app/pb_kits/playbook/pb_date_picker/_date_picker.scss +0 -33
  369. data/app/pb_kits/playbook/pb_date_picker/date_picker.rb +0 -85
  370. data/app/pb_kits/playbook/pb_date_picker/date_picker_helper.js +0 -169
  371. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_allow_input.html.erb +0 -4
  372. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_allow_input.jsx +0 -13
  373. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_allow_input.md +0 -1
  374. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_dark.html.erb +0 -4
  375. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_dark.jsx +0 -13
  376. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_default.html.erb +0 -1
  377. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_default.jsx +0 -12
  378. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_default_date.html.erb +0 -24
  379. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_default_date.jsx +0 -30
  380. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.html.erb +0 -43
  381. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx +0 -48
  382. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_error.html.erb +0 -4
  383. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_error.jsx +0 -13
  384. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_format.html.erb +0 -19
  385. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_format.jsx +0 -25
  386. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_format.md +0 -1
  387. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_hide_icon.html.erb +0 -4
  388. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_hide_icon.jsx +0 -13
  389. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_hooks.html.erb +0 -37
  390. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_hooks.jsx +0 -37
  391. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_hooks.md +0 -1
  392. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_input.html.erb +0 -26
  393. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_input.jsx +0 -32
  394. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_input.md +0 -3
  395. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_label.html.erb +0 -9
  396. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_label.jsx +0 -17
  397. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_label.md +0 -1
  398. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_min_max.html.erb +0 -14
  399. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_min_max.jsx +0 -22
  400. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_on_change.jsx +0 -34
  401. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_on_change.md +0 -3
  402. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_range.html.erb +0 -4
  403. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_range.jsx +0 -13
  404. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_year_range.html.erb +0 -7
  405. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_year_range.jsx +0 -16
  406. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_year_range.md +0 -1
  407. data/app/pb_kits/playbook/pb_date_picker/docs/_description.md +0 -7
  408. data/app/pb_kits/playbook/pb_date_picker/docs/example.yml +0 -36
  409. data/app/pb_kits/playbook/pb_date_picker/docs/index.js +0 -15
  410. data/app/pb_kits/playbook/pb_date_picker/sass_partials/_calendar_input_icon.scss +0 -33
  411. data/app/pb_kits/playbook/pb_date_picker/sass_partials/_day_styles.scss +0 -53
  412. data/app/pb_kits/playbook/pb_date_picker/sass_partials/_flatpickr_styles.scss +0 -785
  413. data/app/pb_kits/playbook/pb_date_picker/sass_partials/_header_styles.scss +0 -108
  414. data/app/pb_kits/playbook/pb_date_picker/sass_partials/_overrides.scss +0 -44
  415. data/app/pb_kits/playbook/pb_form/form_builder/date_picker_field.rb +0 -20
  416. data/app/pb_kits/playbook/pb_radio/docs/_radio_options.html.erb +0 -9
  417. data/app/pb_kits/playbook/pb_time/docs/_time_align.html.erb +0 -18
  418. data/app/pb_kits/playbook/pb_time/docs/_time_sizes.html.erb +0 -11
  419. data/app/pb_kits/playbook/pb_time/docs/_time_sizes.jsx +0 -19
  420. data/app/pb_kits/playbook/pb_time/docs/_time_timezone.html.erb +0 -38
  421. data/app/pb_kits/playbook/pb_time/docs/_time_timezone.jsx +0 -57
  422. data/app/pb_kits/playbook/pb_time/docs/_time_timezone.md +0 -11
  423. data/app/pb_kits/playbook/pb_title/docs/_title_variants.html.erb +0 -1
  424. data/app/pb_kits/playbook/pb_title/docs/_title_variants.jsx +0 -17
  425. data/app/pb_kits/playbook/pb_title/docs/_title_variants.md +0 -3
  426. data/app/pb_kits/playbook/pb_typeahead/_typeahead.jsx +0 -60
  427. data/app/pb_kits/playbook/pb_typeahead/components/Control.jsx +0 -30
  428. data/app/pb_kits/playbook/pb_typeahead/components/IndicatorsContainer.jsx +0 -13
  429. data/app/pb_kits/playbook/pb_typeahead/components/MenuList.jsx +0 -12
  430. data/app/pb_kits/playbook/pb_typeahead/components/MultiValue.jsx +0 -51
  431. data/app/pb_kits/playbook/pb_typeahead/components/Option.jsx +0 -34
  432. data/app/pb_kits/playbook/pb_typeahead/components/Placeholder.jsx +0 -13
  433. data/app/pb_kits/playbook/pb_typeahead/components/ValueContainer.jsx +0 -13
  434. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_default.jsx +0 -22
  435. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills.jsx +0 -29
  436. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async.jsx +0 -84
  437. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async_summary.jsx +0 -45
  438. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async_users.jsx +0 -101
  439. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_summary.jsx +0 -27
  440. data/app/pb_kits/playbook/pb_typeahead/docs/index.js +0 -4
  441. data/app/pb_kits/playbook/react_rails_kits.js +0 -5
  442. data/app/pb_kits/playbook/tokens/index.scss +0 -11
@@ -0,0 +1,12 @@
1
+ // SCAFFOLD
2
+ @import "site_styles/scaffold";
3
+
4
+ // KITS
5
+ @import "../playbook";
6
+
7
+ // APP STYLES
8
+ @import "site_styles/site-style";
9
+ @import "site_styles/docs/all";
10
+
11
+ // FULL PAGE EXAMPLE STYLES
12
+ @import "site_styles/samples";
@@ -0,0 +1,21 @@
1
+ // ===========================================
2
+ // Generated file from kit generator.
3
+ //
4
+ // ===========================================
5
+
6
+ import WebpackerReact from 'webpacker-react'
7
+
8
+ //
9
+ // ===========================================
10
+ // ===========================================
11
+ // Generated file from kit generator.
12
+
13
+ import Dashboards from '../../../views/playbook/samples/dashboards/index.jsx'
14
+ import FilterTable from '../../../views/playbook/samples/filter_table/index.jsx'
15
+ import Registration from '../../../views/playbook/samples/registration/index.jsx'
16
+ import CollectionDetail from '../../../views/playbook/samples/collection_detail/index.jsx'
17
+
18
+ WebpackerReact.setup({ Dashboards })
19
+ WebpackerReact.setup({ FilterTable })
20
+ WebpackerReact.setup({ Registration })
21
+ WebpackerReact.setup({ CollectionDetail })
@@ -0,0 +1,72 @@
1
+ .sample-layout {
2
+ overflow-y: hidden;
3
+ .sample {
4
+ padding-left: 50px;
5
+ border-bottom: 0px;
6
+ }
7
+ .code-controls {
8
+ .pb_nav_list_item_text {
9
+ color: white !important;
10
+ }
11
+ .pb_nav_list_kit_item {
12
+ .pb_nav_list_item_link {
13
+ border-color: transparent !important;
14
+ }
15
+ }
16
+ }
17
+
18
+ .sample-nav {
19
+ padding: 0 25px;
20
+ background: #172257;
21
+ display: flex;
22
+ width: 100%;
23
+ flex-basis: 200px;
24
+
25
+ }
26
+
27
+ .sample-actions {
28
+ display: flex;
29
+ align-items: center;
30
+ justify-content: center;
31
+
32
+ &-right {
33
+ margin-left: auto;
34
+ order: 2;
35
+ display: flex;
36
+ align-items: center;
37
+ justify-content: center;
38
+ .items {
39
+ padding: 5px;
40
+ }
41
+ }
42
+ }
43
+ .pb--doc {
44
+ margin-bottom: 0px;
45
+ }
46
+ .pb--codeCopy {
47
+ border: 0px;
48
+ position: fixed;
49
+ width: 100%;
50
+ height: calc(50vh - 45px);
51
+ bottom: 0;
52
+ left: 0;
53
+ transition: all .4s;
54
+ border-radius: 0 0 6px 6px;
55
+ }
56
+
57
+ .pb--codeCopy.close {
58
+ top: 100%;
59
+ height: 0px;
60
+ transition: all .4s;
61
+ }
62
+ .compress {
63
+ position: absolute;
64
+ top: 15px;
65
+ right: 30px;
66
+ display: none;
67
+ z-index: 4;
68
+ }
69
+ .hiddenCodeforCopy {
70
+ display: none;
71
+ }
72
+ }
@@ -0,0 +1,43 @@
1
+ @import "../../tokens/fonts";
2
+ @import "../../tokens/typography";
3
+ @import "../../tokens/colors";
4
+ @import "../../utilities/colors";
5
+
6
+ * {
7
+ box-sizing: border-box;
8
+ margin: 0;
9
+ padding: 0;
10
+ &:before,
11
+ &:after {
12
+ box-sizing: border-box;
13
+ }
14
+ }
15
+
16
+ html {
17
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
18
+ height: 100vh;
19
+ }
20
+
21
+ body {
22
+ font-family: $font_family_base;
23
+ font-size: $font_base;
24
+ line-height: 1.5;
25
+ background-color: $bg-light;
26
+ height: 100%;
27
+ letter-spacing: $lspace_normal;
28
+ font-weight: $regular;
29
+ font-style: normal;
30
+ text-rendering: optimizeLegibility;
31
+ -moz-font-feature-settings: "liga" on;
32
+ color: $charcoal;
33
+ margin: 0 !important;
34
+ padding: 0 !important;
35
+ box-sizing: border-box;
36
+ min-height: 100vh;
37
+ padding: 50px; // REMOVE AFTER STYLED
38
+ }
39
+
40
+ a {
41
+ text-decoration: none;
42
+ color: $primary;
43
+ }
@@ -0,0 +1,146 @@
1
+ @import "../../tokens/colors";
2
+ @import "../../tokens/spacing";
3
+ @import "../../tokens/screen_sizes";
4
+ @import "../../tokens/border_radius";
5
+ @import "../../tokens/shadows";
6
+
7
+ $selector: ".pb--page";
8
+
9
+ body {
10
+ overflow-x: hidden;
11
+ }
12
+
13
+ .pb--page {
14
+ &--topNav {
15
+ flex: 0 0;
16
+ padding: 20px 30px;
17
+ background: $white;
18
+ h1 {
19
+ display: flex;
20
+ align-items: center;
21
+ img {
22
+ display: flex;
23
+ }
24
+ }
25
+ &.dark{
26
+ background: tint(#0a0527, 10);
27
+ }
28
+ }
29
+
30
+ &--content {
31
+ min-height: calc(100vh - 89px);
32
+ @include break_at(breakpoint("lg")) {
33
+ grid-template-columns: auto !important;
34
+ }
35
+ &--main {
36
+ flex-grow: 1;
37
+ padding: 40px 60px;
38
+ height: calc(100vh - 89px);
39
+ overflow: auto;
40
+ @include break_at(breakpoint("lg")) {
41
+ padding: $space-lg $space-xl;
42
+ }
43
+ &.dark{
44
+ background: #0a0527;
45
+ }
46
+ }
47
+ }
48
+ &--hamburger, &--checkbox {
49
+ position: absolute;
50
+ right: $space-xl;
51
+ top: 30px;
52
+ display: none;
53
+ font-size: $space-xl;
54
+ width: 30px;
55
+ height: 30px;
56
+ color: $primary;
57
+ cursor: pointer;
58
+ @include break_at(breakpoint("lg")) {
59
+ display: block;
60
+ }
61
+ }
62
+ &--checkbox {
63
+ opacity: 0;
64
+ ~ #{$selector}--sideNav {
65
+ @include break_at(breakpoint("lg")) {
66
+ position: absolute;
67
+ transform-origin: 0% 0%;
68
+ transform: translate(100%, 0);
69
+ transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
70
+ border-radius: $border_rad_heavier;
71
+ box-shadow: $shadow_deepest;
72
+ top: 100px;
73
+ right: 0;
74
+ width: auto !important;
75
+ z-index: 1000;
76
+ }
77
+ }
78
+ &:checked ~ #{$selector}--sideNav {
79
+ @include break_at(breakpoint("lg")) {
80
+ transform: translate(-10%, 0);
81
+ }
82
+ }
83
+ }
84
+
85
+ &--sideNav {
86
+ height: calc(100vh - 89px);
87
+ overflow: auto;
88
+ .category_section {
89
+ &.active {
90
+ padding: $space_xs 0;
91
+ background: $bg_light;
92
+ }
93
+ .sub_category {
94
+ padding-left: $space_md;
95
+ }
96
+ }
97
+ &[class*=dark]{
98
+ border-color:$border_dark;
99
+ }
100
+ }
101
+ }
102
+ #toggle-modes{
103
+ display: flex;
104
+ margin-right: 80px;
105
+ }
106
+ // Nav Tabs switch between Rails and React
107
+ .pb--kit-type-nav {
108
+ margin: 20px 0 30px;
109
+ line-height: 34px;
110
+ border-bottom: 2px solid rgba($border_light, 0.6);
111
+
112
+ &.sample {
113
+ margin: 0;
114
+ border-bottom: 2px solid rgba(228, 232, 240, 0.6);
115
+ background: rgb(23, 34, 87) !important;
116
+ }
117
+
118
+ a {
119
+ padding: 0 10px;
120
+ line-height: 34px;
121
+ font-size: 14px;
122
+ font-weight: 400;
123
+ display: inline-block;
124
+ position: relative;
125
+
126
+ &::after {
127
+ content: "";
128
+ width: 100%;
129
+ height: 3px;
130
+ background: transparent;
131
+ position: absolute;
132
+ bottom: -2px;
133
+ left: 0;
134
+ border-radius: 1px;
135
+ transition: all 0.2s ease;
136
+ }
137
+
138
+ &.active {
139
+ font-weight: 600;
140
+
141
+ &::after {
142
+ background: $primary;
143
+ }
144
+ }
145
+ }
146
+ }
@@ -0,0 +1,10 @@
1
+ @import "kits_examples";
2
+ @import "flex_examples";
3
+ @import "code_snippet";
4
+ @import "kit_doc";
5
+ @import "bg_light_doc_example";
6
+
7
+ @import "color_utilities";
8
+ @import "spacing_tokens";
9
+
10
+ @import "markdown";
@@ -0,0 +1,7 @@
1
+ @import "../../../tokens/colors";
2
+ @import "../../../tokens/spacing";
3
+
4
+ .bg-light-doc-example {
5
+ background: $bg_light;
6
+ padding: $space_lg;
7
+ }
@@ -0,0 +1,531 @@
1
+ @import "../../../tokens/colors";
2
+
3
+ .pb--codeCopy {
4
+ .highlight {
5
+ margin: 20px 0;
6
+ }
7
+ .highlight .hll {
8
+ background-color: #404040
9
+ }
10
+ .highlight {
11
+ background: #193f5d;
12
+ color: #d0d0d0
13
+ }
14
+ .highlight .c {
15
+ color: #999999;
16
+ font-style: italic
17
+ }
18
+ /* Comment */
19
+ .highlight .err {
20
+ color: #a61717;
21
+ background-color: #e3d2d2
22
+ }
23
+ /* Error */
24
+ .highlight .esc {
25
+ color: #d0d0d0
26
+ }
27
+ /* Escape */
28
+ .highlight .g {
29
+ color: #d0d0d0
30
+ }
31
+ /* Generic */
32
+ .highlight .k {
33
+ color: #6ab825;
34
+ font-weight: bold
35
+ }
36
+ /* Keyword */
37
+ .highlight .l {
38
+ color: #d0d0d0
39
+ }
40
+ /* Literal */
41
+ .highlight .n {
42
+ color: #d0d0d0
43
+ }
44
+ /* Name */
45
+ .highlight .o {
46
+ color: #d0d0d0
47
+ }
48
+ /* Operator */
49
+ .highlight .x {
50
+ color: #d0d0d0
51
+ }
52
+ /* Other */
53
+ .highlight .p {
54
+ color: #d0d0d0
55
+ }
56
+ /* Punctuation */
57
+ .highlight .ch {
58
+ color: #999999;
59
+ font-style: italic
60
+ }
61
+ /* Comment.Hashbang */
62
+ .highlight .cm {
63
+ color: #999999;
64
+ font-style: italic
65
+ }
66
+ /* Comment.Multiline */
67
+ .highlight .cp {
68
+ color: #5bb3ff;
69
+ font-weight: bold
70
+ }
71
+ /* Comment.Preproc */
72
+ .highlight .cpf {
73
+ color: #999999;
74
+ font-style: italic
75
+ }
76
+ /* Comment.PreprocFile */
77
+ .highlight .c1 {
78
+ color: #999999;
79
+ font-style: italic
80
+ }
81
+ /* Comment.Single */
82
+ .highlight .cs {
83
+ color: #e50808;
84
+ font-weight: bold;
85
+ background-color: #520000
86
+ }
87
+ /* Comment.Special */
88
+ .highlight .gd {
89
+ color: #d22323
90
+ }
91
+ /* Generic.Deleted */
92
+ .highlight .ge {
93
+ color: #d0d0d0;
94
+ font-style: italic
95
+ }
96
+ /* Generic.Emph */
97
+ .highlight .gr {
98
+ color: #d22323
99
+ }
100
+ /* Generic.Error */
101
+ .highlight .gh {
102
+ color: #ffffff;
103
+ font-weight: bold
104
+ }
105
+ /* Generic.Heading */
106
+ .highlight .gi {
107
+ color: #589819
108
+ }
109
+ /* Generic.Inserted */
110
+ .highlight .go {
111
+ color: #cccccc
112
+ }
113
+ /* Generic.Output */
114
+ .highlight .gp {
115
+ color: #aaaaaa
116
+ }
117
+ /* Generic.Prompt */
118
+ .highlight .gs {
119
+ color: #d0d0d0;
120
+ font-weight: bold
121
+ }
122
+ /* Generic.Strong */
123
+ .highlight .gu {
124
+ color: #ffffff;
125
+ text-decoration: underline
126
+ }
127
+ /* Generic.Subheading */
128
+ .highlight .gt {
129
+ color: #d22323
130
+ }
131
+ /* Generic.Traceback */
132
+ .highlight .kc {
133
+ color: #6ab825;
134
+ font-weight: bold
135
+ }
136
+ /* Keyword.Constant */
137
+ .highlight .kd {
138
+ color: #6ab825;
139
+ font-weight: bold
140
+ }
141
+ /* Keyword.Declaration */
142
+ .highlight .kn {
143
+ color: #6ab825;
144
+ font-weight: bold
145
+ }
146
+ /* Keyword.Namespace */
147
+ .highlight .kp {
148
+ color: #6ab825
149
+ }
150
+ /* Keyword.Pseudo */
151
+ .highlight .kr {
152
+ color: #6ab825;
153
+ font-weight: bold
154
+ }
155
+ /* Keyword.Reserved */
156
+ .highlight .kt {
157
+ color: #6ab825;
158
+ font-weight: bold
159
+ }
160
+ /* Keyword.Type */
161
+ .highlight .ld {
162
+ color: #d0d0d0
163
+ }
164
+ /* Literal.Date */
165
+ .highlight .m {
166
+ color: #3677a9
167
+ }
168
+ /* Literal.Number */
169
+ .highlight .s {
170
+ color: #f5cf49
171
+ }
172
+ /* Literal.String */
173
+ .highlight .na {
174
+ color: #bbbbbb
175
+ }
176
+ /* Name.Attribute */
177
+ .highlight .nb {
178
+ color: #24909d
179
+ }
180
+ /* Name.Builtin */
181
+ .highlight .nc {
182
+ color: #64a3f7;
183
+ text-decoration: underline
184
+ }
185
+ /* Name.Class */
186
+ .highlight .no {
187
+ color: #40ffff
188
+ }
189
+ /* Name.Constant */
190
+ .highlight .nd {
191
+ color: #ffa500
192
+ }
193
+ /* Name.Decorator */
194
+ .highlight .ni {
195
+ color: #d0d0d0
196
+ }
197
+ /* Name.Entity */
198
+ .highlight .ne {
199
+ color: #bbbbbb
200
+ }
201
+ /* Name.Exception */
202
+ .highlight .nf {
203
+ color: #64a3f7
204
+ }
205
+ /* Name.Function */
206
+ .highlight .nl {
207
+ color: #d0d0d0
208
+ }
209
+ /* Name.Label */
210
+ .highlight .nn {
211
+ color: #64a3f7;
212
+ text-decoration: underline
213
+ }
214
+ /* Name.Namespace */
215
+ .highlight .nx {
216
+ color: #d0d0d0
217
+ }
218
+ /* Name.Other */
219
+ .highlight .py {
220
+ color: #d0d0d0
221
+ }
222
+ /* Name.Property */
223
+ .highlight .nt {
224
+ color: #6ab825;
225
+ font-weight: bold
226
+ }
227
+ /* Name.Tag */
228
+ .highlight .nv {
229
+ color: #40ffff
230
+ }
231
+ /* Name.Variable */
232
+ .highlight .ow {
233
+ color: #6ab825;
234
+ font-weight: bold
235
+ }
236
+ /* Operator.Word */
237
+ .highlight .w {
238
+ color: #666666
239
+ }
240
+ /* Text.Whitespace */
241
+ .highlight .mb {
242
+ color: #3677a9
243
+ }
244
+ /* Literal.Number.Bin */
245
+ .highlight .mf {
246
+ color: #3677a9
247
+ }
248
+ /* Literal.Number.Float */
249
+ .highlight .mh {
250
+ color: #3677a9
251
+ }
252
+ /* Literal.Number.Hex */
253
+ .highlight .mi {
254
+ color: #3677a9
255
+ }
256
+ /* Literal.Number.Integer */
257
+ .highlight .mo {
258
+ color: #3677a9
259
+ }
260
+ /* Literal.Number.Oct */
261
+ .highlight .sa {
262
+ color: #f5cf49
263
+ }
264
+ /* Literal.String.Affix */
265
+ .highlight .sb {
266
+ color: #f5cf49
267
+ }
268
+ /* Literal.String.Backtick */
269
+ .highlight .sc {
270
+ color: #f5cf49
271
+ }
272
+ /* Literal.String.Char */
273
+ .highlight .dl {
274
+ color: #f5cf49
275
+ }
276
+ /* Literal.String.Delimiter */
277
+ .highlight .sd {
278
+ color: #f5cf49
279
+ }
280
+ /* Literal.String.Doc */
281
+ .highlight .s2 {
282
+ color: #f5cf49
283
+ }
284
+ /* Literal.String.Double */
285
+ .highlight .se {
286
+ color: #f5cf49
287
+ }
288
+ /* Literal.String.Escape */
289
+ .highlight .sh {
290
+ color: #f5cf49
291
+ }
292
+ /* Literal.String.Heredoc */
293
+ .highlight .si {
294
+ color: #f5cf49
295
+ }
296
+ /* Literal.String.Interpol */
297
+ .highlight .sx {
298
+ color: #ffa500
299
+ }
300
+ /* Literal.String.Other */
301
+ .highlight .sr {
302
+ color: #f5cf49
303
+ }
304
+ /* Literal.String.Regex */
305
+ .highlight .s1 {
306
+ color: #f5cf49
307
+ }
308
+ /* Literal.String.Single */
309
+ .highlight .ss {
310
+ color: #f5cf49
311
+ }
312
+ /* Literal.String.Symbol */
313
+ .highlight .bp {
314
+ color: #24909d
315
+ }
316
+ /* Name.Builtin.Pseudo */
317
+ .highlight .fm {
318
+ color: #64a3f7
319
+ }
320
+ /* Name.Function.Magic */
321
+ .highlight .vc {
322
+ color: #40ffff
323
+ }
324
+ /* Name.Variable.Class */
325
+ .highlight .vg {
326
+ color: #40ffff
327
+ }
328
+ /* Name.Variable.Global */
329
+ .highlight .vi {
330
+ color: #40ffff
331
+ }
332
+ /* Name.Variable.Instance */
333
+ .highlight .vm {
334
+ color: #40ffff
335
+ }
336
+ /* Name.Variable.Magic */
337
+ .highlight .il {
338
+ color: #3677a9
339
+ }
340
+ /* Literal.Number.Integer.Long */
341
+ .highlight table pre {
342
+ margin: 0;
343
+ }
344
+ .highlight {
345
+ color: #faf6e4;
346
+ background-color: transparent; /*charcoal*/
347
+ }
348
+ .highlight .gl {
349
+ color: #dee5e7;
350
+ background-color: #4e5d62;
351
+ }
352
+ .highlight .c,
353
+ .highlight .cd,
354
+ .highlight .cm,
355
+ .highlight .c1,
356
+ .highlight .cs {
357
+ color: #6c8b9f;
358
+ font-style: italic;
359
+ }
360
+ .highlight .cp {
361
+ color: #b2fd6d;
362
+ font-weight: bold;
363
+ font-style: italic;
364
+ }
365
+ .highlight .err {
366
+ color: #fefeec;
367
+ background-color: #cc0000;
368
+ }
369
+ .highlight .gr {
370
+ color: #fefeec;
371
+ background-color: #cc0000;
372
+ }
373
+ .highlight .k,
374
+ .highlight .kd,
375
+ .highlight .kv {
376
+ color: #f6dd62;
377
+ font-weight: bold;
378
+ }
379
+ .highlight .o,
380
+ .highlight .ow {
381
+ color: #4df4ff;
382
+ }
383
+ .highlight .p,
384
+ .highlight .pi {
385
+ color: #4df4ff;
386
+ }
387
+ .highlight .gd {
388
+ color: #cc0000;
389
+ }
390
+ .highlight .gi {
391
+ color: #b2fd6d;
392
+ }
393
+ .highlight .ge {
394
+ font-style: italic;
395
+ }
396
+ .highlight .gs {
397
+ font-weight: bold;
398
+ }
399
+ .highlight .gt {
400
+ color: #dee5e7;
401
+ background-color: #4e5d62;
402
+ }
403
+ .highlight .kc {
404
+ color: #f696db;
405
+ font-weight: bold;
406
+ }
407
+ .highlight .kn {
408
+ color: #ffb000;
409
+ font-weight: bold;
410
+ }
411
+ .highlight .kp {
412
+ color: #ffb000;
413
+ font-weight: bold;
414
+ }
415
+ .highlight .kr {
416
+ color: #ffb000;
417
+ font-weight: bold;
418
+ }
419
+ .highlight .gh {
420
+ color: #ffb000;
421
+ font-weight: bold;
422
+ }
423
+ .highlight .gu {
424
+ color: #ffb000;
425
+ font-weight: bold;
426
+ }
427
+ .highlight .kt {
428
+ color: #b2fd6d;
429
+ font-weight: bold;
430
+ }
431
+ .highlight .no {
432
+ color: #b2fd6d;
433
+ font-weight: bold;
434
+ }
435
+ .highlight .nc {
436
+ color: #b2fd6d;
437
+ font-weight: bold;
438
+ }
439
+ .highlight .nd {
440
+ color: #b2fd6d;
441
+ font-weight: bold;
442
+ }
443
+ .highlight .nn {
444
+ color: #b2fd6d;
445
+ font-weight: bold;
446
+ }
447
+ .highlight .bp {
448
+ color: #b2fd6d;
449
+ font-weight: bold;
450
+ }
451
+ .highlight .ne {
452
+ color: #b2fd6d;
453
+ font-weight: bold;
454
+ }
455
+ .highlight .nl {
456
+ color: #ffb000;
457
+ font-weight: bold;
458
+ }
459
+ .highlight .nt {
460
+ color: #ffb000;
461
+ font-weight: bold;
462
+ }
463
+ .highlight .m,
464
+ .highlight .mf,
465
+ .highlight .mh,
466
+ .highlight .mi,
467
+ .highlight .il,
468
+ .highlight .mo,
469
+ .highlight .mb,
470
+ .highlight .mx {
471
+ color: #f696db;
472
+ font-weight: bold;
473
+ }
474
+ .highlight .ld {
475
+ color: #f696db;
476
+ font-weight: bold;
477
+ }
478
+ .highlight .ss {
479
+ color: #f696db;
480
+ font-weight: bold;
481
+ }
482
+ .highlight .s,
483
+ .highlight .sb,
484
+ .highlight .sd,
485
+ .highlight .s2,
486
+ .highlight .sh,
487
+ .highlight .sx,
488
+ .highlight .sr,
489
+ .highlight .s1 {
490
+ color: #fff0a6;
491
+ font-weight: bold;
492
+ }
493
+ .highlight .se {
494
+ color: #4df4ff;
495
+ font-weight: bold;
496
+ }
497
+ .highlight .sc {
498
+ color: #4df4ff;
499
+ font-weight: bold;
500
+ }
501
+ .highlight .si {
502
+ color: #4df4ff;
503
+ font-weight: bold;
504
+ }
505
+ .highlight .nb {
506
+ font-weight: bold;
507
+ }
508
+ .highlight .ni {
509
+ color: #999999;
510
+ font-weight: bold;
511
+ }
512
+ .highlight .w {
513
+ color: #BBBBBB;
514
+ }
515
+ .highlight .nf {
516
+ color: #a8e1fe;
517
+ }
518
+ .highlight .py {
519
+ color: #a8e1fe;
520
+ }
521
+ .highlight .na {
522
+ color: #a8e1fe;
523
+ }
524
+ .highlight .nv,
525
+ .highlight .vc,
526
+ .highlight .vg,
527
+ .highlight .vi {
528
+ color: #a8e1fe;
529
+ font-weight: bold;
530
+ }
531
+ }