playbook_ui_docs 13.31.0 → 13.32.0.pre.alpha.PLAY14143251

Sign up to get free protection for your applications and to get access to all the features.
Files changed (275) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail.jsx +1 -1
  3. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_default.jsx +1 -1
  4. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_expanded_control.jsx +1 -1
  5. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.jsx +1 -1
  6. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_loading.jsx +2 -2
  7. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort.jsx +1 -1
  8. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort_control.jsx +1 -1
  9. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_subrow_headers.jsx +1 -1
  10. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_options.jsx +1 -1
  11. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props.jsx +1 -1
  12. data/app/pb_kits/playbook/pb_avatar/docs/_avatar_badge_component_overlay.jsx +1 -1
  13. data/app/pb_kits/playbook/pb_avatar/docs/_avatar_circle_icon_component_overlay.jsx +1 -1
  14. data/app/pb_kits/playbook/pb_avatar/docs/_avatar_default.jsx +1 -1
  15. data/app/pb_kits/playbook/pb_avatar/docs/_avatar_monogram.jsx +1 -1
  16. data/app/pb_kits/playbook/pb_avatar/docs/_avatar_no_image.jsx +1 -1
  17. data/app/pb_kits/playbook/pb_avatar/docs/_avatar_status.jsx +1 -1
  18. data/app/pb_kits/playbook/pb_background/docs/_background_category.jsx +2 -2
  19. data/app/pb_kits/playbook/pb_background/docs/_background_gradient.jsx +1 -1
  20. data/app/pb_kits/playbook/pb_background/docs/_background_image.jsx +2 -2
  21. data/app/pb_kits/playbook/pb_background/docs/_background_light.jsx +1 -1
  22. data/app/pb_kits/playbook/pb_background/docs/_background_size.jsx +1 -1
  23. data/app/pb_kits/playbook/pb_background/docs/_background_status.jsx +2 -2
  24. data/app/pb_kits/playbook/pb_background/docs/_background_status_subtle.jsx +2 -2
  25. data/app/pb_kits/playbook/pb_background/docs/_background_white.jsx +1 -1
  26. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend.jsx +1 -1
  27. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_non_clickable.jsx +1 -1
  28. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_position.jsx +1 -1
  29. data/app/pb_kits/playbook/pb_body/docs/_body_articles.jsx +1 -1
  30. data/app/pb_kits/playbook/pb_body/docs/_body_block.jsx +1 -1
  31. data/app/pb_kits/playbook/pb_body/docs/_body_light.jsx +1 -1
  32. data/app/pb_kits/playbook/pb_body/docs/_body_styled.jsx +1 -1
  33. data/app/pb_kits/playbook/pb_bread_crumbs/docs/_bread_crumbs_default.jsx +1 -1
  34. data/app/pb_kits/playbook/pb_button/docs/_button_accessibility.jsx +1 -1
  35. data/app/pb_kits/playbook/pb_button/docs/_button_block_content.jsx +1 -1
  36. data/app/pb_kits/playbook/pb_button/docs/_button_default.jsx +1 -1
  37. data/app/pb_kits/playbook/pb_button/docs/_button_form.jsx +1 -1
  38. data/app/pb_kits/playbook/pb_button/docs/_button_full_width.jsx +1 -1
  39. data/app/pb_kits/playbook/pb_button/docs/_button_hover.jsx +1 -1
  40. data/app/pb_kits/playbook/pb_button/docs/_button_icon_options.jsx +1 -1
  41. data/app/pb_kits/playbook/pb_button/docs/_button_link.jsx +1 -1
  42. data/app/pb_kits/playbook/pb_button/docs/_button_loading.jsx +1 -1
  43. data/app/pb_kits/playbook/pb_button/docs/_button_reaction.jsx +1 -1
  44. data/app/pb_kits/playbook/pb_button/docs/_button_size.jsx +1 -1
  45. data/app/pb_kits/playbook/pb_button_toolbar/docs/_button_toolbar_default.jsx +1 -1
  46. data/app/pb_kits/playbook/pb_button_toolbar/docs/_button_toolbar_secondary.jsx +1 -1
  47. data/app/pb_kits/playbook/pb_caption/docs/_caption_block.jsx +1 -1
  48. data/app/pb_kits/playbook/pb_caption/docs/_caption_colors.jsx +1 -1
  49. data/app/pb_kits/playbook/pb_caption/docs/_caption_light.jsx +1 -1
  50. data/app/pb_kits/playbook/pb_card/docs/_card_background.jsx +1 -1
  51. data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_error.jsx +1 -1
  52. data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_indeterminate.jsx +1 -1
  53. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.jsx +1 -1
  54. data/app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_click.jsx +1 -1
  55. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_color.jsx +1 -1
  56. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_custom_main.jsx +1 -1
  57. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_custom_main_with_icon.jsx +1 -1
  58. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_default.jsx +1 -1
  59. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_icons.jsx +1 -1
  60. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_size.jsx +1 -1
  61. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_state.jsx +1 -1
  62. data/app/pb_kits/playbook/pb_contact/docs/_contact_default.jsx +1 -1
  63. data/app/pb_kits/playbook/pb_contact/docs/_contact_with_detail.jsx +1 -1
  64. data/app/pb_kits/playbook/pb_currency/docs/_currency_unstyled.jsx +1 -1
  65. data/app/pb_kits/playbook/pb_date/docs/_date_alignment.jsx +1 -1
  66. data/app/pb_kits/playbook/pb_date/docs/_date_default.jsx +2 -2
  67. data/app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx +1 -1
  68. data/app/pb_kits/playbook/pb_date/docs/_date_variants.jsx +1 -1
  69. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_on_change.jsx +1 -1
  70. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_on_close.jsx +1 -1
  71. data/app/pb_kits/playbook/pb_date_range_stacked/docs/_date_range_stacked_default.jsx +1 -1
  72. data/app/pb_kits/playbook/pb_date_year_stacked/docs/_date_year_stacked_default.jsx +5 -2
  73. data/app/pb_kits/playbook/pb_detail/docs/_detail_bold.jsx +1 -1
  74. data/app/pb_kits/playbook/pb_detail/docs/_detail_colors.jsx +1 -1
  75. data/app/pb_kits/playbook/pb_detail/docs/_detail_default.jsx +1 -1
  76. data/app/pb_kits/playbook/pb_detail/docs/_detail_styled.jsx +1 -1
  77. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_compound_components.jsx +1 -1
  78. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_default.jsx +1 -1
  79. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_full_height.jsx +1 -1
  80. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_full_height_placement.jsx +1 -1
  81. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_scrollable.jsx +1 -1
  82. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_separators.jsx +1 -1
  83. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_should_close_on_overlay.jsx +1 -1
  84. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_sizes.jsx +1 -1
  85. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_stacked_alert.jsx +1 -1
  86. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_status.jsx +30 -28
  87. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_default.jsx +14 -19
  88. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_default.md +5 -3
  89. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers.jsx +1 -1
  90. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards.jsx +1 -1
  91. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards.md +7 -3
  92. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_list.jsx +1 -1
  93. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_list.md +3 -5
  94. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_selectable_list.jsx +1 -1
  95. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_selectable_list.md +3 -5
  96. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_default.jsx +1 -1
  97. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_error.jsx +1 -1
  98. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_subcomponent_structure.jsx +1 -1
  99. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_autocomplete.jsx +1 -1
  100. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_autocomplete_and_custom_display.jsx +1 -1
  101. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_display.jsx +1 -1
  102. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_options.jsx +1 -1
  103. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_padding.jsx +1 -1
  104. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_trigger.jsx +1 -1
  105. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_external_control.jsx +1 -1
  106. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_hook.jsx +1 -1
  107. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_label.jsx +1 -1
  108. data/app/pb_kits/playbook/pb_file_upload/docs/_file_upload_accept.jsx +2 -2
  109. data/app/pb_kits/playbook/pb_file_upload/docs/_file_upload_custom_description.jsx +2 -2
  110. data/app/pb_kits/playbook/pb_file_upload/docs/_file_upload_custom_message.jsx +2 -2
  111. data/app/pb_kits/playbook/pb_file_upload/docs/_file_upload_default.jsx +2 -2
  112. data/app/pb_kits/playbook/pb_file_upload/docs/_file_upload_max_size.jsx +3 -3
  113. data/app/pb_kits/playbook/pb_filter/docs/_filter_default.jsx +1 -1
  114. data/app/pb_kits/playbook/pb_filter/docs/_filter_max_height.jsx +1 -1
  115. data/app/pb_kits/playbook/pb_filter/docs/_filter_max_width.jsx +1 -1
  116. data/app/pb_kits/playbook/pb_filter/docs/_filter_no_background.jsx +1 -1
  117. data/app/pb_kits/playbook/pb_filter/docs/_filter_no_sort.jsx +1 -1
  118. data/app/pb_kits/playbook/pb_filter/docs/_filter_only.jsx +1 -1
  119. data/app/pb_kits/playbook/pb_filter/docs/_filter_placement.jsx +1 -1
  120. data/app/pb_kits/playbook/pb_flex/docs/_flex_align.jsx +1 -1
  121. data/app/pb_kits/playbook/pb_flex/docs/_flex_default.jsx +1 -1
  122. data/app/pb_kits/playbook/pb_flex/docs/_flex_gap.jsx +1 -1
  123. data/app/pb_kits/playbook/pb_flex/docs/_flex_inline.jsx +1 -1
  124. data/app/pb_kits/playbook/pb_flex/docs/_flex_item_align_self.jsx +1 -1
  125. data/app/pb_kits/playbook/pb_flex/docs/_flex_item_example.jsx +1 -1
  126. data/app/pb_kits/playbook/pb_flex/docs/_flex_justify.jsx +1 -1
  127. data/app/pb_kits/playbook/pb_flex/docs/_flex_reverse.jsx +1 -1
  128. data/app/pb_kits/playbook/pb_flex/docs/_flex_spacing.jsx +1 -1
  129. data/app/pb_kits/playbook/pb_flex/docs/_flex_wrap.jsx +1 -1
  130. data/app/pb_kits/playbook/pb_form/docs/_form_form_with_validate.html.erb +9 -0
  131. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_colors.jsx +1 -1
  132. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_complex.jsx +1 -1
  133. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_default.jsx +1 -1
  134. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_disable_animation.jsx +1 -1
  135. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_full_circle.jsx +1 -1
  136. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_height.jsx +1 -1
  137. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_live_data.jsx +1 -1
  138. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_min_max.jsx +1 -1
  139. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_sizing.jsx +1 -1
  140. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_title.jsx +1 -1
  141. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_units.jsx +1 -1
  142. data/app/pb_kits/playbook/pb_hashtag/docs/_hashtag_default.jsx +1 -1
  143. data/app/pb_kits/playbook/pb_hashtag/docs/_hashtag_link.jsx +1 -1
  144. data/app/pb_kits/playbook/pb_icon/docs/_icon_custom.jsx +1 -1
  145. data/app/pb_kits/playbook/pb_icon_circle/docs/_icon_circle_sizes.jsx +1 -1
  146. data/app/pb_kits/playbook/pb_icon_stat_value/docs/_icon_stat_value_color.jsx +1 -1
  147. data/app/pb_kits/playbook/pb_icon_stat_value/docs/_icon_stat_value_default.jsx +1 -1
  148. data/app/pb_kits/playbook/pb_icon_stat_value/docs/_icon_stat_value_sizes.jsx +1 -1
  149. data/app/pb_kits/playbook/pb_icon_stat_value/docs/_icon_stat_value_vertical.jsx +1 -1
  150. data/app/pb_kits/playbook/pb_label_value/docs/_label_value_default.jsx +1 -1
  151. data/app/pb_kits/playbook/pb_label_value/docs/_label_value_details.jsx +1 -1
  152. data/app/pb_kits/playbook/pb_label_value/docs/_label_value_details_examples.jsx +1 -1
  153. data/app/pb_kits/playbook/pb_legend/docs/_legend_colors.jsx +1 -1
  154. data/app/pb_kits/playbook/pb_legend/docs/_legend_custom_colors.jsx +1 -1
  155. data/app/pb_kits/playbook/pb_legend/docs/_legend_prefix.jsx +1 -1
  156. data/app/pb_kits/playbook/pb_lightbox/docs/_lightbox_compound_component.jsx +1 -1
  157. data/app/pb_kits/playbook/pb_lightbox/docs/_lightbox_current_photo.jsx +1 -1
  158. data/app/pb_kits/playbook/pb_lightbox/docs/_lightbox_custom_header.jsx +1 -1
  159. data/app/pb_kits/playbook/pb_lightbox/docs/_lightbox_default.jsx +1 -1
  160. data/app/pb_kits/playbook/pb_lightbox/docs/_lightbox_multiple.jsx +1 -1
  161. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend.jsx +1 -1
  162. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_nonclickable.jsx +1 -1
  163. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_position.jsx +1 -1
  164. data/app/pb_kits/playbook/pb_map/docs/_map_default.jsx +1 -1
  165. data/app/pb_kits/playbook/pb_map/docs/_map_with_custom_button.jsx +1 -1
  166. data/app/pb_kits/playbook/pb_map/docs/_map_with_plugin.jsx +1 -1
  167. data/app/pb_kits/playbook/pb_message/docs/_message_timestamp.jsx +1 -1
  168. data/app/pb_kits/playbook/pb_multiple_users/docs/_multiple_users_default.jsx +1 -1
  169. data/app/pb_kits/playbook/pb_multiple_users/docs/_multiple_users_reverse.jsx +1 -1
  170. data/app/pb_kits/playbook/pb_multiple_users/docs/_multiple_users_size.jsx +1 -1
  171. data/app/pb_kits/playbook/pb_nav/docs/_collapsible_nav.jsx +1 -1
  172. data/app/pb_kits/playbook/pb_nav/docs/_collapsible_nav_custom.jsx +1 -1
  173. data/app/pb_kits/playbook/pb_nav/docs/_collapsible_nav_item_spacing.jsx +1 -1
  174. data/app/pb_kits/playbook/pb_nav/docs/_collapsible_nav_with_all_options.jsx +1 -1
  175. data/app/pb_kits/playbook/pb_nav/docs/_nav_with_font_control.jsx +1 -1
  176. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_default.jsx +1 -1
  177. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_multi_directional.jsx +1 -1
  178. data/app/pb_kits/playbook/pb_passphrase/docs/_passphrase_breached.jsx +1 -1
  179. data/app/pb_kits/playbook/pb_passphrase/docs/_passphrase_common.jsx +1 -1
  180. data/app/pb_kits/playbook/pb_passphrase/docs/_passphrase_confirmation.jsx +1 -1
  181. data/app/pb_kits/playbook/pb_passphrase/docs/_passphrase_meter_settings.jsx +1 -1
  182. data/app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx +1 -1
  183. data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_access_input_element.jsx +1 -1
  184. data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_clear_field.jsx +1 -1
  185. data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_default.jsx +1 -1
  186. data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_initial_country.jsx +1 -1
  187. data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_only_countries.jsx +1 -1
  188. data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_preferred_countries.jsx +1 -1
  189. data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_validation.jsx +1 -1
  190. data/app/pb_kits/playbook/pb_popover/docs/_popover_actionable_content.jsx +1 -1
  191. data/app/pb_kits/playbook/pb_popover/docs/_popover_close.jsx +1 -1
  192. data/app/pb_kits/playbook/pb_popover/docs/_popover_default.jsx +1 -1
  193. data/app/pb_kits/playbook/pb_popover/docs/_popover_list.jsx +1 -1
  194. data/app/pb_kits/playbook/pb_popover/docs/_popover_scroll_height.jsx +1 -1
  195. data/app/pb_kits/playbook/pb_popover/docs/_popover_z_index.jsx +1 -1
  196. data/app/pb_kits/playbook/pb_progress_simple/docs/_progress_simple_align.jsx +1 -1
  197. data/app/pb_kits/playbook/pb_progress_simple/docs/_progress_simple_default.jsx +1 -1
  198. data/app/pb_kits/playbook/pb_progress_simple/docs/_progress_simple_flex.jsx +1 -1
  199. data/app/pb_kits/playbook/pb_progress_simple/docs/_progress_simple_muted.jsx +1 -1
  200. data/app/pb_kits/playbook/pb_progress_simple/docs/_progress_simple_value.jsx +1 -1
  201. data/app/pb_kits/playbook/pb_progress_simple/docs/_progress_simple_variants.jsx +1 -1
  202. data/app/pb_kits/playbook/pb_progress_simple/docs/_progress_simple_width.jsx +1 -1
  203. data/app/pb_kits/playbook/pb_radio/docs/_radio_alignment.jsx +1 -1
  204. data/app/pb_kits/playbook/pb_radio/docs/_radio_error.jsx +1 -1
  205. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_default.jsx +1 -1
  206. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_attributes.jsx +1 -1
  207. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.jsx +1 -1
  208. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_focus.jsx +1 -1
  209. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_inline.jsx +1 -1
  210. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_more_extensions.jsx +1 -1
  211. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_preview.jsx +5 -4
  212. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_simple.jsx +1 -1
  213. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_sticky.jsx +1 -1
  214. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_templates.jsx +1 -1
  215. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_toolbar_bottom.jsx +1 -1
  216. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_toolbar_disabled.jsx +1 -1
  217. data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_children.jsx +1 -1
  218. data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_dashed.jsx +1 -1
  219. data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_line.jsx +1 -1
  220. data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_text.jsx +1 -1
  221. data/app/pb_kits/playbook/pb_select/docs/_select_error.jsx +1 -1
  222. data/app/pb_kits/playbook/pb_select/docs/_select_inline.jsx +1 -1
  223. data/app/pb_kits/playbook/pb_select/docs/_select_inline_compact.jsx +1 -1
  224. data/app/pb_kits/playbook/pb_select/docs/_select_inline_show_arrow.jsx +1 -1
  225. data/app/pb_kits/playbook/pb_selectable_card/docs/_selectable_card_error.jsx +1 -1
  226. data/app/pb_kits/playbook/pb_selectable_list/docs/_selectable_list_checkbox.jsx +1 -1
  227. data/app/pb_kits/playbook/pb_selectable_list/docs/_selectable_list_radio.jsx +1 -1
  228. data/app/pb_kits/playbook/pb_stat_change/docs/_stat_change_default.jsx +1 -1
  229. data/app/pb_kits/playbook/pb_stat_change/docs/_stat_change_unit.jsx +1 -1
  230. data/app/pb_kits/playbook/pb_stat_change/docs/_stat_change_unit_two.jsx +1 -1
  231. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_default.jsx +3 -3
  232. data/app/pb_kits/playbook/pb_textarea/docs/_textarea_error.jsx +1 -1
  233. data/app/pb_kits/playbook/pb_time_range_inline/docs/_time_range_inline_default.jsx +1 -1
  234. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_unstyled.jsx +1 -1
  235. data/app/pb_kits/playbook/pb_toggle/docs/_toggle_custom.jsx +1 -1
  236. data/app/pb_kits/playbook/pb_toggle/docs/_toggle_custom_radio.jsx +1 -1
  237. data/app/pb_kits/playbook/pb_toggle/docs/_toggle_default.jsx +1 -1
  238. data/app/pb_kits/playbook/pb_toggle/docs/_toggle_disabled.jsx +1 -1
  239. data/app/pb_kits/playbook/pb_toggle/docs/_toggle_name.jsx +1 -1
  240. data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_default_react.jsx +1 -1
  241. data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_delay.jsx +1 -1
  242. data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_icon.jsx +1 -1
  243. data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_interaction.jsx +1 -1
  244. data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_margin.jsx +1 -1
  245. data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_show_tooltip_react.jsx +1 -1
  246. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_async_createable.jsx +1 -1
  247. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_createable.jsx +1 -1
  248. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_custom_menu_list.jsx +1 -1
  249. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_highlight.jsx +4 -4
  250. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills.jsx +1 -1
  251. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async.jsx +18 -19
  252. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async_custom_options.jsx +24 -29
  253. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async_users.jsx +20 -21
  254. data/app/pb_kits/playbook/pb_user/docs/_user_block_content_subtitle_react.jsx +1 -1
  255. data/app/pb_kits/playbook/pb_user/docs/_user_default.jsx +1 -1
  256. data/app/pb_kits/playbook/pb_user/docs/_user_size.jsx +1 -1
  257. data/app/pb_kits/playbook/pb_user/docs/_user_subtitle.jsx +1 -1
  258. data/app/pb_kits/playbook/pb_user/docs/_user_text_only.jsx +1 -1
  259. data/app/pb_kits/playbook/pb_user/docs/_user_vertical_size.jsx +1 -1
  260. data/app/pb_kits/playbook/pb_user/docs/_user_with_territory.jsx +1 -1
  261. data/app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_continuous.jsx +1 -1
  262. data/app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_default.jsx +1 -1
  263. data/app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_multi_beacon.jsx +1 -1
  264. data/app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_no_beacon.jsx +1 -1
  265. data/app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_no_overlay.jsx +1 -1
  266. data/app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_styled.jsx +1 -1
  267. data/dist/playbook-doc.js +67966 -104
  268. metadata +5 -12
  269. data/dist/app/components/playbook/pb_docs/advanced_table_mock_data.json +0 -278
  270. data/dist/app/components/playbook/pb_docs/kit_api.html.erb +0 -321
  271. data/dist/app/components/playbook/pb_docs/kit_api.rb +0 -150
  272. data/dist/app/components/playbook/pb_docs/kit_example.html.erb +0 -80
  273. data/dist/app/components/playbook/pb_docs/kit_example.rb +0 -94
  274. data/dist/menu.yml +0 -474
  275. data/dist/pb_doc_helper.rb +0 -102
data/dist/menu.yml DELETED
@@ -1,474 +0,0 @@
1
- web: &web ["rails", "react"]
2
- all: &all ["rails", "react", "swift"]
3
- rails_swift: &rails_swift ["rails", "swift"]
4
- react_swift: &react_swift ["swift", "react"]
5
- rails_only: &rails_only ["rails"]
6
- react_only: &react_only ["react"]
7
- swift_only: &swift_only ["swift"]
8
-
9
- kits:
10
- - name: alerts_and_dialogs
11
- description:
12
- components:
13
- - name: "dialog"
14
- platforms: *web
15
- description:
16
- status: "stable"
17
- - name: "fixed_confirmation_toast"
18
- platforms: *web
19
- description: Fixed Confirmation Toast is used as an alert. Success is used when a user successfully completes an action. Error is used when there is an error and the user cannot proceed. Neutral is used to display information to a user to complete a task.
20
- status: "stable"
21
- - name: "popover"
22
- platforms: *web
23
- description: A popover is a way to toggle content on top of other content. It can be used for small texts, small forms, or even dropdowns. By default, popover will toggle open/closed by simply clicking the trigger element.
24
- status: "stable"
25
- - name: "tooltip"
26
- platforms: *web
27
- description:
28
- status: "stable"
29
- - name: buttons
30
- description: Buttons are used primarily for actions, such as “Save” and “Cancel”. Link Buttons are used for less important or less commonly used actions, such as “view shipping settings”.
31
- components:
32
- - name: "button"
33
- platforms: *web
34
- description:
35
- status: "stable"
36
- - name: "button_toolbar"
37
- platforms: *web
38
- description: This kit should primarily hold the most commonly used buttons.
39
- status: "stable"
40
- - name: "circle_icon_button"
41
- platforms: *web
42
- description: When using Icon Circle Button, the icon must be clear a clear indication of what the button does because there is no text.
43
- status: "stable"
44
- - name: data_visualization
45
- description:
46
- components:
47
- - name: "map"
48
- platforms: *react_only
49
- description: This kit provides a wrapping class to place around the MapLibre library.
50
- status: "stable"
51
- - name: "table"
52
- platforms: *web
53
- description: Tables display a collection of structured data and typically have the ability to sort, filter, and paginate data.
54
- status: "stable"
55
- - name: "advanced_table"
56
- platforms: *web
57
- description: The Advanced Table can be used to display complex, nested data in a way that allows for expansion and/or sorting.
58
- status: "stable"
59
- - name: "list"
60
- platforms: *web
61
- description: Lists display a vertical set of related content.
62
- status: "stable"
63
- - name: "filter"
64
- platforms: *web
65
- description: This kit can be implemented in a variety of ways. To see examples of how to implement this kit in production visit the /dev_docs/search page in production.
66
- status: "stable"
67
- - name: "distribution_bar"
68
- platforms: *web
69
- description: Can be used in the same way a pie chart can be used. By default, Distribution Bar comparatively represents data without numbers.
70
- status: "stable"
71
- - name: "legend"
72
- platforms: *web
73
- description: A key used to compare the variables and their value in any given graph.
74
- status: "stable"
75
- - name: "gauge"
76
- platforms: *web
77
- description:
78
- status: "stable"
79
- - name: "bar_graph"
80
- platforms: *web
81
- description: Bar graphs are used to compare data. Bar graphs are not typically used to show percentages.
82
- status: "stable"
83
- - name: "circle_chart"
84
- platforms: *web
85
- description:
86
- status: "stable"
87
- - name: "line_graph"
88
- platforms: *web
89
- description: Line graphs are used to show changes in data over time.
90
- status: "stable"
91
- - name: "treemap_chart"
92
- platforms: *web
93
- description: Treemap charts are used to compare the relative size of groups of data. They can also use a nested data structure, allowing a user to drill down into a group to see its constituent data points.
94
- status: "stable"
95
- - name: date_and_time_text_patterns
96
- description: ""
97
- components:
98
- - name: "date"
99
- platforms: *web
100
- description: Use to display the date. Year will not display if it is the current year.
101
- status: "stable"
102
- - name: "date_range_inline"
103
- platforms: *web
104
- description: Use to display a date range. Year will not show if it is the current year.
105
- status: "stable"
106
- - name: "date_range_stacked"
107
- platforms: *web
108
- description:
109
- status: "stable"
110
- - name: "date_stacked"
111
- platforms: *web
112
- description: Use to display the date, stacking month and day. Year will not show if it is the current year.
113
- status: "stable"
114
- - name: "date_time"
115
- platforms: *web
116
- description: Date Time is a composite kit that leverages the Date and Time kits. The Date Time kit is affected by time zones and defaults to "America/New_York".
117
- - name: "date_time_stacked"
118
- platforms: *web
119
- description:
120
- status: "stable"
121
- - name: "date_year_stacked"
122
- platforms: *web
123
- description: This kit is a simple option for displaying dates in a month, day and the year format.
124
- status: "stable"
125
- - name: "time"
126
- platforms: *web
127
- description: This kit consist of large display and table display format. It includes and icon, and a time zone.
128
- status: "stable"
129
- - name: "time_range_inline"
130
- platforms: *web
131
- description:
132
- status: "stable"
133
- - name: "time_stacked"
134
- platforms: *web
135
- description:
136
- status: "stable"
137
- - name: "timestamp"
138
- platforms: *all
139
- description: This low profile kit displays time. Elapsed, current, future, or otherwise.
140
- status: "stable"
141
- - name: "weekday_stacked"
142
- platforms: *web
143
- description:
144
- status: "stable"
145
- - name: form_and_dashboard_text_patterns
146
- description: ""
147
- components:
148
- - name: "contact"
149
- platforms: *web
150
- description: Use to display customer's or user's contact information.
151
- status: "stable"
152
- - name: "currency"
153
- platforms: *web
154
- description: Use to display monetary amounts, typically on dashboards or other layouts to show an overview or summary. User understanding increase when paired with labels.
155
- status: "stable"
156
- - name: "home_address_street"
157
- platforms: *web
158
- description: This kit can be used to display the address for a homeowner/project. It contains street address, APT format, City, state and zip. A Project hashtag can be used as a prop to link back to a project.
159
- status: "stable"
160
- - name: "label_pill"
161
- platforms: *web
162
- description: This kit combines the caption and pill kit with all its variants.
163
- status: "stable"
164
- - name: "label_value"
165
- platforms: *web
166
- description: This kit can be very versatile when used to display text data.
167
- status: "stable"
168
- - name: "person"
169
- platforms: *web
170
- description: This kit is broken down into a first name last name format with normal and bold weighted text.
171
- status: "stable"
172
- - name: "person_contact"
173
- platforms: *web
174
- description: This kit can be used to display a person contact information.
175
- status: "stable"
176
- - name: "source"
177
- platforms: *web
178
- description: General use is to describe the discovery of businesses, customers, etc. This kit can also be used for other purposes as well.
179
- status: "stable"
180
- - name: "dashboard_value"
181
- platforms: *web
182
- description: Use in dashboards to give the viewer a quick overview of important metrics. If want to show currency, use Currency Kit.
183
- status: "stable"
184
- - name: "stat_change"
185
- platforms: *web
186
- description: Displays the increase, decrease, or neutral change in data.
187
- status: "stable"
188
- - name: "stat_value"
189
- platforms: *web
190
- description: This kit was cerated for the main use as a dashboard display for numbers. A large label is an optional part if it needs more clarity.
191
- status: "stable"
192
- - name: "title_count"
193
- platforms: *web
194
- description: This kits consists of title kit and body text. It is used to display a title and a count (numbers). It has a base size and a large formation for dashboard use.
195
- status: "stable"
196
- - name: "title_detail"
197
- platforms: *web
198
- description: This kit can be used in many versatile ways. It consist of a title 4 and light body text kit.
199
- status: "stable"
200
- - name: form_elements
201
- description:
202
- components:
203
- - name: "file_upload"
204
- platforms: *web
205
- description:
206
- status: "stable"
207
- - name: "toggle"
208
- platforms: *web
209
- description: Physical switch that allows users to turn things on or off. Used for applying system states, presenting binary options and activating a state.
210
- status: "stable"
211
- - name: "form_pill"
212
- platforms: *web
213
- description:
214
- status: "stable"
215
- - name: "form"
216
- platforms: *rails_only
217
- description: The form kit provides consumers with a convenient, consistently styled <form> wrapper.
218
- status: "stable"
219
- - name: "form_group"
220
- platforms: *web
221
- description:
222
- status: "stable"
223
- - name: form_input
224
- description: ""
225
- components:
226
- - name: "passphrase"
227
- platforms: *web
228
- description:
229
- status: "stable"
230
- - name: "phone_number_input"
231
- platforms: *web
232
- description:
233
- status: "stable"
234
- - name: "text_input"
235
- platforms: *web
236
- description: Area where user can enter small amount of text. Commonly used in forms.
237
- status: "stable"
238
- - name: "rich_text_editor"
239
- platforms: *web
240
- description:
241
- status: "stable"
242
- - name: "textarea"
243
- platforms: *web
244
- description: Area where user can enter larger amounts of text. Commonly used in forms.
245
- status: "stable"
246
- - name: "typeahead"
247
- platforms: *web
248
- description: Typeahead is auto suggestion or completion based on what the user is starting to type, gets refined as the user types more.
249
- status: "stable"
250
- - name: form_selection
251
- description:
252
- components:
253
- - name: "date_picker"
254
- platforms: *web
255
- description: Playbook's date picker is built using flatpickr, a vanilla js library. Common date picker use cases and features have been adapted into simple prop based configuration detailed in the docs below.
256
- status: "stable"
257
- - name: dropdown
258
- platforms: *web
259
- description: ""
260
- status: "stable"
261
- - name: "multi_level_select"
262
- platforms: *web
263
- description: The MultiLevelSelect kit renders a multi leveled select dropdown based on data from the user.
264
- status: "stable"
265
- - name: "select"
266
- platforms: *web
267
- description: Select displays multiple options for a user to pick from in a dropdown menu. User selects one option.
268
- status: "stable"
269
- - name: "selectable_card"
270
- platforms: *web
271
- description: Cards for information/content that can be selected. There is design for unselected and selected states. Typically used as a form element.
272
- status: "stable"
273
- - name: "selectable_card_icon"
274
- platforms: *web
275
- description:
276
- status: "stable"
277
- - name: "selectable_icon"
278
- platforms: *web
279
- description:
280
- status: "stable"
281
- - name: "radio"
282
- platforms: *all
283
- description: Radio is a control that allows the user to only choose one predefined option.
284
- status: "stable"
285
- - name: "checkbox"
286
- platforms: *web
287
- description: Checkbox is used for a list of selections that are meant to have one or more options checked.
288
- status: "stable"
289
- - name: "selectable_list"
290
- platforms: *web
291
- description:
292
- status: "stable"
293
- - name: icons_and_images
294
- description: ""
295
- components:
296
- - name: "icon"
297
- platforms: *web
298
- description: An icon is a graphic symbol that represents an object (ie a file) or a function. They can be used to give the user feedback.
299
- status: "stable"
300
- - name: "icon_circle"
301
- platforms: *web
302
- description: Similar to Icon, Icon Circle is a graphical symbol within a circle used to visually indicate an object or function.
303
- status: "stable"
304
- - name: "icon_stat_value"
305
- platforms: *web
306
- description:
307
- status: "stable"
308
- - name: "icon_value"
309
- platforms: *web
310
- description: Icon Value leverages our icon kit, to display a value of some sort in the interface. Typically, this includes a numerical value.
311
- status: "stable"
312
- - name: "user_badge"
313
- platforms: *web
314
- description: This kit was created to display employee icons related to a Nitro user. Currently there is the PVI logo and the Million Dollar Rep Icon.
315
- status: "stable"
316
- - name: "image"
317
- platforms: *web
318
- description: A responsive image component.
319
- status: "stable"
320
- - name: "lightbox"
321
- platforms: *react_only
322
- description: The Lightbox kit is a popup window overlay that will appear on top of your webpage and cover the entirety of the screen.
323
- status: "stable"
324
- - name: "star_rating"
325
- platforms: *web
326
- description: A component to view other people’s opinions and experiences. Use when you want to show evaluation or a quick quantitative rating. Most effective when paired with reviews.
327
- status: "stable"
328
- - name: layout_and_structure
329
- description:
330
- components:
331
- - name: "flex"
332
- platforms: *web
333
- description: This kit is used to build most of the complex interfaces. The Flex Kit is used the same way flex box is used.
334
- status: "stable"
335
- - name: "layout"
336
- platforms: *web
337
- description: Layouts used for positioning content inside of pages, cards, or containers.
338
- status: "stable"
339
- - name: "card"
340
- platforms: *all
341
- description:
342
- status: "stable"
343
- - name: "section_separator"
344
- platforms: *web
345
- description: Section separator is a divider line that compartmentalizes content, typically used on cards or white backgrounds.
346
- status: "stable"
347
- - name: "background"
348
- platforms: *web
349
- description: The background kit is used for adding a background to a page or to any container.
350
- status: "stable"
351
- - name: "collapsible"
352
- platforms: *web
353
- description:
354
- status: "stable"
355
- - name: "overlay"
356
- platforms: *web
357
- status: "stable"
358
- - name: "draggable"
359
- platforms: *react_only
360
- description:
361
- status: "beta"
362
- - name: message_text_patterns
363
- description:
364
- components:
365
- - name: "highlight"
366
- platforms: *web
367
- description: Highlight is used to pick out or emphasize content.
368
- status: "stable"
369
- - name: "message"
370
- platforms: *web
371
- description: This multi kit consist of a an avatar, a status, a caption, a body text, and a time stamp. All which can be optional.
372
- status: "stable"
373
- - name: navigation
374
- description:
375
- components:
376
- - name: "bread_crumbs"
377
- platforms: *web
378
- description: BreadCrumbs can be used for keeping a user aware of their route location.
379
- status: "stable"
380
- - name: "nav"
381
- platforms: *web
382
- description: The nav is a grouped set of links that take the user to another page, or tab through parts of a page. It comes in horizontal or vertical with several different variants.
383
- status: "stable"
384
- - name: "pagination"
385
- platforms: *rails_only
386
- description:
387
- status: "stable"
388
- - name: state_and_progress_indicators
389
- description:
390
- components:
391
- - name: "loading_inline"
392
- platforms: *web
393
- description: The loading kit is used to indicate to users that a page is still loading, or an action is still being processed.
394
- status: "stable"
395
- - name: "progress_pills"
396
- platforms: *web
397
- description: Progress pills indicate a specific point in time of a series of sequential steps. They are used to track progress of something over time.
398
- status: "stable"
399
- - name: "progress_simple"
400
- platforms: *web
401
- description: Displays the current progress of an operation flow. User understanding increases when paired with labels or numbers.
402
- - name: "progress_step"
403
- platforms: *web
404
- description: "Progress step kit is used to show the progress of a process. There are three types of steps in this kit: completed, active, and inactive."
405
- status: "stable"
406
- - name: "walkthrough"
407
- platforms: *web
408
- description:
409
- status: "stable"
410
- - name: "timeline"
411
- platforms: *web
412
- description: The timeline kit can use two different line styles in the same timeline - solid and dotted line styles.
413
- status: "stable"
414
- - name: tags
415
- description:
416
- components:
417
- - name: "badge"
418
- platforms: *web
419
- description: Badges can be used for notification, tags, and status. They are used for count and numbers.
420
- status: "stable"
421
- - name: "online_status"
422
- platforms: *web
423
- description: Online Status is a small indicator that lets the user know the status of a person or item.
424
- status: "stable"
425
- - name: "pill"
426
- platforms: *all
427
- description: A pill uses both a keyword and a specific color to categorize an item.
428
- status: "stable"
429
- - name: "hashtag"
430
- platforms: *web
431
- description: Hashtag is used to display home, project and other forms of IDs. They can be used as a link.
432
- status: "stable"
433
- - name: typography
434
- description: ""
435
- components:
436
- - name: "body"
437
- platforms: *web
438
- description: Default text style for paragraphs. Follow hiearchy when using "light" or "lighter" variants to deemphasize text — default style should be followed by "light" followed by "lighter".
439
- status: "stable"
440
- - name: "caption"
441
- platforms: *web
442
- description: Use to provide supplementary context. Default size is best when providing supplementary context to a small section (i.e. label for a text input, label for a paragraph). Use large caption when supplementary text covers more content.
443
- status: "stable"
444
- - name: "detail"
445
- platforms: *web
446
- description: Used for tables or designs with large amounts of data or text.
447
- status: "stable"
448
- - name: "title"
449
- platforms: *web
450
- description: Typically used as headers. Follow semantic hierarchy — Title 1s should be followed by Title 2s followed by Title 3s and so on, without skipping any levels.
451
- status: "stable"
452
- - name: user
453
- description:
454
- components:
455
- - name: "avatar"
456
- platforms: *all
457
- description: Avatar displays a user's picture. This helps aid easy recognition of the user. This kit is normally not used by itself, but rather used within other kits. The only time Avatar should be used instead of the User kit is when you are not going to display the user's name.
458
- status: "stable"
459
- - name: "avatar_action_button"
460
- platforms: *web
461
- description:
462
- status: "stable"
463
- - name: "multiple_users"
464
- platforms: *web
465
- description: The multiple users kit is used to show that more than one user is associated to an action or item.
466
- status: "stable"
467
- - name: "multiple_users_stacked"
468
- platforms: *web
469
- description: Multiple users stacked is used in tight spaces, where we need to indicate that multiple users are associated to a specific action or item.
470
- status: "stable"
471
- - name: "user"
472
- platforms: *web
473
- description: This kit was created for having a systematic way of displaying users with avatar, titles, name and territory. This is a versatile kit with features than can be added to display more info.
474
- status: "stable"
@@ -1,102 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module PlaybookWebsite
4
- module PbDocHelper
5
- def pb_kit_title(title)
6
- title.remove("pb_").titleize.tr("_", " ")
7
- end
8
-
9
- def pb_kit(kit: "", type: "rails", show_code: true, limit_examples: false, dark_mode: false)
10
- examples = pb_doc_kit_examples(kit, type)
11
- examples = examples.first(1) if limit_examples
12
- examples.map do |example|
13
- pb_rails "docs/kit_example", props: {
14
- kit: kit,
15
- example_title: example.values.first,
16
- example_key: example.keys.first,
17
- show_code: show_code,
18
- type: type,
19
- dark: dark_mode,
20
- }
21
- end.join.yield_self(&method(:raw))
22
- end
23
-
24
- def nav_hash_array(link)
25
- link.first.last
26
- end
27
-
28
- # Deal with lists of kits, used in Playbook doc and Externally
29
- # rubocop:disable Style/StringConcatenation
30
- def pb_kits(type: "rails", limit_examples: false, dark_mode: false, method: get_kits)
31
- display_kits = []
32
- kits = method
33
- kits.each do |kit|
34
- if kit.is_a?(Hash)
35
- nav_hash_array(kit).each do |sub_kit|
36
- display_kits << render_pb_doc_kit(sub_kit[:name], type, limit_examples, false, dark_mode) if sub_kit[:status] != "beta" && pb_doc_has_kit_type?(sub_kit[:name], type)
37
- end
38
- elsif pb_doc_has_kit_type?(kit, type)
39
- display_kits << render_pb_doc_kit(kit, type, limit_examples, false, dark_mode)
40
- end
41
- end
42
- raw("<div class='pb--docItem'>" + display_kits.join("</div><div class='pb--docItem'>") + "</div>")
43
- end
44
- # rubocop:enable Style/StringConcatenation
45
-
46
- # rubocop:disable Naming/AccessorMethodName
47
- def get_kits(_type = "rails")
48
- aggregate_kits_with_status || []
49
- end
50
-
51
- def get_kits_pb_website
52
- menu = YAML.load_file(Rails.root.join("config/menu.yml"))
53
- menu["kits"]
54
- end
55
- # rubocop:enable Naming/AccessorMethodName
56
-
57
- # rubocop:disable Style/OptionalBooleanParameter
58
- def render_pb_doc_kit(kit, type, limit_examples, code = true, dark_mode = false)
59
- title = pb_doc_render_clickable_title(kit, type)
60
- ui = raw("<div class='pb--docItem-ui'>
61
- #{pb_kit(kit: kit, type: type, show_code: code, limit_examples: limit_examples, dark_mode: dark_mode)}</div>")
62
- title + ui
63
- end
64
- # rubocop:enable Style/OptionalBooleanParameter
65
-
66
- private
67
-
68
- def pb_doc_kit_path(kit, *args)
69
- Playbook.kit_path(kit, "docs", *args)
70
- end
71
-
72
- def pb_doc_kit_examples(kit, type)
73
- example_file = pb_doc_kit_path(kit, "example.yml")
74
- if File.exist?(example_file)
75
- examples_list = YAML.load_file(example_file)
76
- .inject({}) { |item, (k, v)| item[k.to_sym] = v; item }
77
- examples_list.dig(:examples, type) || []
78
- else
79
- []
80
- end
81
- end
82
-
83
- def pb_doc_render_clickable_title(kit, type)
84
- url = "#"
85
- begin
86
- url = case type
87
- when "react"
88
- kit_show_reacts_path(kit)
89
- when "swift"
90
- kit_show_swift_path(kit)
91
- else
92
- kit_show_path(kit)
93
- end
94
- # FIXME: this is here because this helper generates a link for playbook website,
95
- # but shouldn't do anything when used elsewhere
96
- rescue
97
- puts "Kit Path Not Avaliable"
98
- end
99
- render inline: "<a href='#{url}'>#{pb_rails(:title, props: { text: pb_kit_title(kit), tag: 'h3', size: 2 })}</a>"
100
- end
101
- end
102
- end