playbook_ui_docs 14.15.0.pre.alpha.play1952fixhorizontalnavcursorstyle6795 → 14.15.0.pre.rc.0

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 (437) 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_column_headers.jsx +1 -1
  4. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers_custom_cell.jsx +1 -3
  5. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers_multiple.jsx +1 -1
  6. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_custom_cell.jsx +1 -8
  7. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_default.jsx +1 -1
  8. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_expanded_control.jsx +1 -1
  9. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.jsx +1 -1
  10. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_loading.jsx +2 -2
  11. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_no_subrows.jsx +1 -1
  12. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pagination.jsx +1 -1
  13. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pagination_with_props.jsx +1 -1
  14. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_responsive.jsx +1 -1
  15. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows.jsx +1 -1
  16. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_actions.jsx +1 -3
  17. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_header.jsx +1 -1
  18. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_no_subrows.jsx +1 -1
  19. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort.jsx +1 -1
  20. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort_control.jsx +1 -1
  21. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_subrow_headers.jsx +1 -1
  22. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_options.jsx +1 -1
  23. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props.jsx +1 -1
  24. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_sticky_header.jsx +1 -1
  25. data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +1 -2
  26. data/app/pb_kits/playbook/pb_advanced_table/docs/index.js +1 -2
  27. data/app/pb_kits/playbook/pb_avatar/docs/_avatar_badge_component_overlay.jsx +1 -1
  28. data/app/pb_kits/playbook/pb_avatar/docs/_avatar_circle_icon_component_overlay.jsx +1 -1
  29. data/app/pb_kits/playbook/pb_avatar/docs/_avatar_default.jsx +1 -1
  30. data/app/pb_kits/playbook/pb_avatar/docs/_avatar_monogram.jsx +1 -1
  31. data/app/pb_kits/playbook/pb_avatar/docs/_avatar_no_image.jsx +1 -1
  32. data/app/pb_kits/playbook/pb_avatar/docs/_avatar_status.jsx +1 -1
  33. data/app/pb_kits/playbook/pb_background/docs/_background_category.jsx +2 -2
  34. data/app/pb_kits/playbook/pb_background/docs/_background_gradient.jsx +1 -1
  35. data/app/pb_kits/playbook/pb_background/docs/_background_image.jsx +2 -6
  36. data/app/pb_kits/playbook/pb_background/docs/_background_light.jsx +1 -1
  37. data/app/pb_kits/playbook/pb_background/docs/_background_size.jsx +1 -1
  38. data/app/pb_kits/playbook/pb_background/docs/_background_status.jsx +2 -2
  39. data/app/pb_kits/playbook/pb_background/docs/_background_status_subtle.jsx +2 -2
  40. data/app/pb_kits/playbook/pb_background/docs/_background_white.jsx +1 -1
  41. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend.jsx +1 -1
  42. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_non_clickable.jsx +1 -1
  43. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_position.jsx +1 -3
  44. data/app/pb_kits/playbook/pb_body/docs/_body_articles.jsx +1 -1
  45. data/app/pb_kits/playbook/pb_body/docs/_body_block.jsx +1 -1
  46. data/app/pb_kits/playbook/pb_body/docs/_body_light.jsx +1 -1
  47. data/app/pb_kits/playbook/pb_body/docs/_body_styled.jsx +1 -1
  48. data/app/pb_kits/playbook/pb_bread_crumbs/docs/_bread_crumbs_default.jsx +1 -2
  49. data/app/pb_kits/playbook/pb_button/docs/_button_accessibility.jsx +1 -1
  50. data/app/pb_kits/playbook/pb_button/docs/_button_block_content.jsx +1 -2
  51. data/app/pb_kits/playbook/pb_button/docs/_button_default.jsx +1 -1
  52. data/app/pb_kits/playbook/pb_button/docs/_button_form.jsx +1 -1
  53. data/app/pb_kits/playbook/pb_button/docs/_button_full_width.jsx +1 -1
  54. data/app/pb_kits/playbook/pb_button/docs/_button_hover.jsx +1 -1
  55. data/app/pb_kits/playbook/pb_button/docs/_button_icon_options.jsx +1 -1
  56. data/app/pb_kits/playbook/pb_button/docs/_button_link.jsx +1 -1
  57. data/app/pb_kits/playbook/pb_button/docs/_button_loading.jsx +1 -1
  58. data/app/pb_kits/playbook/pb_button/docs/_button_reaction.jsx +1 -1
  59. data/app/pb_kits/playbook/pb_button/docs/_button_size.jsx +1 -1
  60. data/app/pb_kits/playbook/pb_button_toolbar/docs/_button_toolbar_default.jsx +1 -3
  61. data/app/pb_kits/playbook/pb_button_toolbar/docs/_button_toolbar_secondary.jsx +1 -2
  62. data/app/pb_kits/playbook/pb_caption/docs/_caption_block.jsx +1 -1
  63. data/app/pb_kits/playbook/pb_caption/docs/_caption_colors.jsx +1 -1
  64. data/app/pb_kits/playbook/pb_caption/docs/_caption_light.jsx +1 -1
  65. data/app/pb_kits/playbook/pb_card/docs/_card_background.jsx +1 -1
  66. data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_error.jsx +1 -1
  67. data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_indeterminate.jsx +1 -2
  68. data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_react_hook.jsx +1 -4
  69. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.jsx +1 -1
  70. data/app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_click.jsx +1 -1
  71. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_color.jsx +1 -1
  72. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_custom_main.jsx +1 -7
  73. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_custom_main_with_icon.jsx +1 -7
  74. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_default.jsx +1 -1
  75. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_icons.jsx +1 -1
  76. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_no_icon.jsx +1 -1
  77. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_size.jsx +1 -1
  78. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_state.jsx +1 -4
  79. data/app/pb_kits/playbook/pb_contact/docs/_contact_default.jsx +1 -1
  80. data/app/pb_kits/playbook/pb_contact/docs/_contact_with_detail.jsx +1 -1
  81. data/app/pb_kits/playbook/pb_copy_button/docs/_copy_button_default.jsx +1 -3
  82. data/app/pb_kits/playbook/pb_copy_button/docs/_copy_button_from.jsx +1 -5
  83. data/app/pb_kits/playbook/pb_currency/docs/_currency_null_display.jsx +1 -1
  84. data/app/pb_kits/playbook/pb_currency/docs/_currency_unstyled.jsx +1 -3
  85. data/app/pb_kits/playbook/pb_date/docs/_date_alignment.jsx +1 -2
  86. data/app/pb_kits/playbook/pb_date/docs/_date_default.jsx +1 -4
  87. data/app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx +1 -4
  88. data/app/pb_kits/playbook/pb_date/docs/_date_variants.jsx +1 -2
  89. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_hooks.md +1 -3
  90. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_on_change.jsx +1 -3
  91. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_on_close.jsx +1 -3
  92. data/app/pb_kits/playbook/pb_date_picker/docs/example.yml +0 -2
  93. data/app/pb_kits/playbook/pb_date_range_stacked/docs/_date_range_stacked_default.jsx +1 -1
  94. data/app/pb_kits/playbook/pb_date_year_stacked/docs/_date_year_stacked_default.jsx +1 -1
  95. data/app/pb_kits/playbook/pb_detail/docs/_detail_bold.jsx +1 -1
  96. data/app/pb_kits/playbook/pb_detail/docs/_detail_colors.jsx +1 -1
  97. data/app/pb_kits/playbook/pb_detail/docs/_detail_default.jsx +1 -1
  98. data/app/pb_kits/playbook/pb_detail/docs/_detail_styled.jsx +1 -1
  99. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_compound_components.jsx +8 -7
  100. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_default.jsx +1 -3
  101. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_full_height.jsx +9 -8
  102. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_full_height_placement.jsx +9 -8
  103. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_loading.jsx +1 -2
  104. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_scrollable.jsx +1 -2
  105. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_separators.jsx +1 -3
  106. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_should_close_on_overlay.jsx +1 -2
  107. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_sizes.jsx +1 -3
  108. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_stacked_alert.jsx +1 -3
  109. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_status.jsx +1 -4
  110. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_default.jsx +1 -6
  111. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers.jsx +12 -11
  112. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards.jsx +10 -9
  113. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_list.jsx +1 -4
  114. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_selectable_list.jsx +1 -3
  115. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_table_react.jsx +1 -6
  116. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_behavior.jsx +1 -4
  117. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_borders.jsx +4 -7
  118. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_breakpoints.jsx +37 -21
  119. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_default.html.erb +1 -20
  120. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_default.jsx +1 -4
  121. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_menu.jsx +7 -12
  122. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_overlay.jsx +1 -5
  123. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_sizes.jsx +1 -4
  124. data/app/pb_kits/playbook/pb_drawer/docs/example.yml +0 -7
  125. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_blank_selection.jsx +1 -1
  126. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_clear_selection.jsx +1 -3
  127. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_default.jsx +1 -1
  128. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_default_value.jsx +1 -1
  129. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_error.jsx +1 -1
  130. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_separators_hidden.jsx +1 -1
  131. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_subcomponent_structure.jsx +1 -1
  132. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_subtle_variant.jsx +1 -1
  133. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_autocomplete.jsx +1 -5
  134. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_autocomplete_and_custom_display.jsx +1 -7
  135. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_display.jsx +1 -7
  136. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_options.jsx +1 -7
  137. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_padding.jsx +1 -1
  138. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_trigger.jsx +1 -7
  139. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_external_control.jsx +1 -5
  140. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_hook.jsx +1 -8
  141. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_label.jsx +1 -1
  142. data/app/pb_kits/playbook/pb_file_upload/docs/_file_upload_accept.jsx +5 -4
  143. data/app/pb_kits/playbook/pb_file_upload/docs/_file_upload_custom_description.jsx +1 -3
  144. data/app/pb_kits/playbook/pb_file_upload/docs/_file_upload_custom_message.jsx +5 -3
  145. data/app/pb_kits/playbook/pb_file_upload/docs/_file_upload_default.jsx +5 -3
  146. data/app/pb_kits/playbook/pb_file_upload/docs/_file_upload_max_size.jsx +6 -5
  147. data/app/pb_kits/playbook/pb_filter/docs/_filter_default.jsx +1 -6
  148. data/app/pb_kits/playbook/pb_filter/docs/_filter_max_height.jsx +1 -5
  149. data/app/pb_kits/playbook/pb_filter/docs/_filter_max_width.jsx +1 -5
  150. data/app/pb_kits/playbook/pb_filter/docs/_filter_no_background.jsx +1 -6
  151. data/app/pb_kits/playbook/pb_filter/docs/_filter_no_sort.jsx +1 -5
  152. data/app/pb_kits/playbook/pb_filter/docs/_filter_only.jsx +1 -5
  153. data/app/pb_kits/playbook/pb_filter/docs/_filter_placement.jsx +1 -6
  154. data/app/pb_kits/playbook/pb_filter/docs/_filter_popover_props.jsx +1 -5
  155. data/app/pb_kits/playbook/pb_flex/docs/_flex_align.jsx +1 -3
  156. data/app/pb_kits/playbook/pb_flex/docs/_flex_default.jsx +1 -3
  157. data/app/pb_kits/playbook/pb_flex/docs/_flex_gap.jsx +1 -2
  158. data/app/pb_kits/playbook/pb_flex/docs/_flex_inline.jsx +1 -3
  159. data/app/pb_kits/playbook/pb_flex/docs/_flex_item_align_self.jsx +1 -3
  160. data/app/pb_kits/playbook/pb_flex/docs/_flex_item_example.jsx +1 -3
  161. data/app/pb_kits/playbook/pb_flex/docs/_flex_justify.jsx +1 -3
  162. data/app/pb_kits/playbook/pb_flex/docs/_flex_reverse.jsx +1 -3
  163. data/app/pb_kits/playbook/pb_flex/docs/_flex_spacing.jsx +1 -3
  164. data/app/pb_kits/playbook/pb_flex/docs/_flex_wrap.jsx +1 -4
  165. data/app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb +1 -1
  166. data/app/pb_kits/playbook/pb_form/docs/_form_form_with_validate.html.erb +3 -3
  167. data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_colors.jsx +1 -3
  168. data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_truncated_text.jsx +1 -5
  169. data/app/pb_kits/playbook/pb_form_pill/docs/example.yml +0 -2
  170. data/app/pb_kits/playbook/pb_form_pill/docs/index.js +0 -1
  171. data/app/pb_kits/playbook/pb_gantt_chart/docs/_gantt_chart_default.jsx +1 -1
  172. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_colors.jsx +1 -1
  173. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_complex.jsx +10 -9
  174. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_default.jsx +1 -1
  175. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_disable_animation.jsx +1 -1
  176. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_full_circle.jsx +1 -1
  177. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_height.jsx +1 -1
  178. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_live_data.jsx +1 -3
  179. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_min_max.jsx +1 -1
  180. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_sizing.jsx +1 -4
  181. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_title.jsx +1 -1
  182. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_units.jsx +1 -1
  183. data/app/pb_kits/playbook/pb_hashtag/docs/_hashtag_default.jsx +1 -1
  184. data/app/pb_kits/playbook/pb_hashtag/docs/_hashtag_link.jsx +1 -1
  185. data/app/pb_kits/playbook/pb_icon/docs/_icon_color.html.erb +4 -10
  186. data/app/pb_kits/playbook/pb_icon/docs/_icon_color.jsx +24 -49
  187. data/app/pb_kits/playbook/pb_icon/docs/_icon_custom.jsx +1 -1
  188. data/app/pb_kits/playbook/pb_icon_button/docs/_icon_button_default.jsx +1 -1
  189. data/app/pb_kits/playbook/pb_icon_button/docs/_icon_button_sizes.jsx +1 -3
  190. data/app/pb_kits/playbook/pb_icon_circle/docs/_icon_circle_sizes.jsx +1 -1
  191. data/app/pb_kits/playbook/pb_icon_stat_value/docs/_icon_stat_value_color.jsx +1 -1
  192. data/app/pb_kits/playbook/pb_icon_stat_value/docs/_icon_stat_value_default.jsx +1 -1
  193. data/app/pb_kits/playbook/pb_icon_stat_value/docs/_icon_stat_value_sizes.jsx +1 -1
  194. data/app/pb_kits/playbook/pb_icon_stat_value/docs/_icon_stat_value_vertical.jsx +1 -1
  195. data/app/pb_kits/playbook/pb_label_value/docs/_label_value_default.jsx +1 -1
  196. data/app/pb_kits/playbook/pb_label_value/docs/_label_value_details.jsx +1 -1
  197. data/app/pb_kits/playbook/pb_label_value/docs/_label_value_details_examples.jsx +1 -3
  198. data/app/pb_kits/playbook/pb_legend/docs/_legend_colors.jsx +1 -1
  199. data/app/pb_kits/playbook/pb_legend/docs/_legend_custom_colors.jsx +1 -1
  200. data/app/pb_kits/playbook/pb_legend/docs/_legend_prefix.jsx +1 -1
  201. data/app/pb_kits/playbook/pb_lightbox/docs/_lightbox_compound_component.jsx +1 -2
  202. data/app/pb_kits/playbook/pb_lightbox/docs/_lightbox_current_photo.jsx +1 -6
  203. data/app/pb_kits/playbook/pb_lightbox/docs/_lightbox_custom_header.jsx +1 -4
  204. data/app/pb_kits/playbook/pb_lightbox/docs/_lightbox_default.jsx +1 -2
  205. data/app/pb_kits/playbook/pb_lightbox/docs/_lightbox_multiple.jsx +1 -2
  206. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend.jsx +1 -1
  207. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_nonclickable.jsx +1 -1
  208. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_position.jsx +1 -2
  209. data/app/pb_kits/playbook/pb_link/docs/_link_color.jsx +1 -1
  210. data/app/pb_kits/playbook/pb_link/docs/_link_disabled.jsx +1 -1
  211. data/app/pb_kits/playbook/pb_link/docs/_link_icon.jsx +1 -1
  212. data/app/pb_kits/playbook/pb_link/docs/_link_tag.jsx +1 -1
  213. data/app/pb_kits/playbook/pb_link/docs/_link_target.jsx +1 -1
  214. data/app/pb_kits/playbook/pb_link/docs/_link_underline.jsx +1 -1
  215. data/app/pb_kits/playbook/pb_map/docs/_map_default.jsx +1 -2
  216. data/app/pb_kits/playbook/pb_map/docs/_map_with_custom_button.jsx +1 -5
  217. data/app/pb_kits/playbook/pb_map/docs/_map_with_plugin.jsx +1 -2
  218. data/app/pb_kits/playbook/pb_message/docs/_message_timestamp.jsx +1 -1
  219. data/app/pb_kits/playbook/pb_multi_level_select/docs/example.yml +1 -11
  220. data/app/pb_kits/playbook/pb_multi_level_select/docs/index.js +0 -6
  221. data/app/pb_kits/playbook/pb_multiple_users/docs/_multiple_users_default.jsx +1 -1
  222. data/app/pb_kits/playbook/pb_multiple_users/docs/_multiple_users_reverse.jsx +1 -1
  223. data/app/pb_kits/playbook/pb_multiple_users/docs/_multiple_users_size.jsx +1 -2
  224. data/app/pb_kits/playbook/pb_nav/docs/_collapsible_nav.jsx +1 -2
  225. data/app/pb_kits/playbook/pb_nav/docs/_collapsible_nav_custom.jsx +1 -4
  226. data/app/pb_kits/playbook/pb_nav/docs/_collapsible_nav_item_spacing.jsx +1 -2
  227. data/app/pb_kits/playbook/pb_nav/docs/_collapsible_nav_no_icon.jsx +1 -2
  228. data/app/pb_kits/playbook/pb_nav/docs/_collapsible_nav_with_all_options.jsx +1 -2
  229. data/app/pb_kits/playbook/pb_nav/docs/_nav_with_font_control.jsx +1 -2
  230. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_default.jsx +4 -4
  231. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_multi_directional.jsx +6 -4
  232. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_toggle.jsx +1 -4
  233. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_vertical_dynamic_multi_directional.jsx +6 -4
  234. data/app/pb_kits/playbook/pb_overlay/docs/example.yml +0 -3
  235. data/app/pb_kits/playbook/pb_overlay/docs/index.js +0 -1
  236. data/app/pb_kits/playbook/pb_pagination/docs/_pagination_page_change.jsx +1 -2
  237. data/app/pb_kits/playbook/pb_passphrase/docs/_passphrase_breached.jsx +1 -3
  238. data/app/pb_kits/playbook/pb_passphrase/docs/_passphrase_common.jsx +1 -4
  239. data/app/pb_kits/playbook/pb_passphrase/docs/_passphrase_confirmation.jsx +1 -2
  240. data/app/pb_kits/playbook/pb_passphrase/docs/_passphrase_meter_settings.jsx +1 -6
  241. data/app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx +1 -5
  242. data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_access_input_element.jsx +1 -3
  243. data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_clear_field.jsx +1 -3
  244. data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_default.html.erb +1 -1
  245. data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_default.jsx +1 -1
  246. data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_format.jsx +1 -3
  247. data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_initial_country.jsx +1 -1
  248. data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_only_countries.jsx +1 -1
  249. data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_preferred_countries.jsx +1 -1
  250. data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_validation.jsx +1 -4
  251. data/app/pb_kits/playbook/pb_phone_number_input/docs/example.yml +1 -3
  252. data/app/pb_kits/playbook/pb_popover/docs/_popover_actionable_content.jsx +7 -6
  253. data/app/pb_kits/playbook/pb_popover/docs/_popover_close.jsx +5 -4
  254. data/app/pb_kits/playbook/pb_popover/docs/_popover_default.jsx +6 -5
  255. data/app/pb_kits/playbook/pb_popover/docs/_popover_list.jsx +8 -7
  256. data/app/pb_kits/playbook/pb_popover/docs/_popover_scroll_height.jsx +6 -5
  257. data/app/pb_kits/playbook/pb_popover/docs/_popover_z_index.jsx +5 -4
  258. data/app/pb_kits/playbook/pb_progress_simple/docs/_progress_simple_align.jsx +1 -1
  259. data/app/pb_kits/playbook/pb_progress_simple/docs/_progress_simple_default.jsx +1 -1
  260. data/app/pb_kits/playbook/pb_progress_simple/docs/_progress_simple_flex.jsx +1 -3
  261. data/app/pb_kits/playbook/pb_progress_simple/docs/_progress_simple_muted.jsx +1 -1
  262. data/app/pb_kits/playbook/pb_progress_simple/docs/_progress_simple_value.jsx +1 -1
  263. data/app/pb_kits/playbook/pb_progress_simple/docs/_progress_simple_variants.jsx +1 -1
  264. data/app/pb_kits/playbook/pb_progress_simple/docs/_progress_simple_width.jsx +1 -1
  265. data/app/pb_kits/playbook/pb_radio/docs/_radio_alignment.jsx +1 -3
  266. data/app/pb_kits/playbook/pb_radio/docs/_radio_error.jsx +1 -1
  267. data/app/pb_kits/playbook/pb_radio/docs/example.yml +1 -2
  268. data/app/pb_kits/playbook/pb_radio/docs/index.js +0 -1
  269. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_default.jsx +1 -1
  270. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_preview.jsx +1 -3
  271. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_attributes.jsx +1 -1
  272. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.jsx +1 -1
  273. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_focus.jsx +1 -1
  274. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_inline.jsx +1 -1
  275. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_more_extensions.jsx +1 -1
  276. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_preview.jsx +5 -3
  277. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_simple.jsx +1 -1
  278. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_sticky.jsx +1 -1
  279. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_templates.jsx +1 -2
  280. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_toolbar_bottom.jsx +1 -1
  281. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_toolbar_disabled.jsx +1 -1
  282. data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_children.jsx +1 -3
  283. data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_color.jsx +1 -4
  284. data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_dashed.jsx +1 -1
  285. data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_line.jsx +1 -1
  286. data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_text.jsx +1 -1
  287. data/app/pb_kits/playbook/pb_select/docs/_select_error.jsx +1 -2
  288. data/app/pb_kits/playbook/pb_select/docs/_select_inline.jsx +1 -2
  289. data/app/pb_kits/playbook/pb_select/docs/_select_inline_compact.jsx +1 -2
  290. data/app/pb_kits/playbook/pb_select/docs/_select_inline_show_arrow.jsx +1 -2
  291. data/app/pb_kits/playbook/pb_select/docs/example.yml +0 -1
  292. data/app/pb_kits/playbook/pb_select/docs/index.js +0 -1
  293. data/app/pb_kits/playbook/pb_selectable_card/docs/_selectable_card_error.jsx +1 -4
  294. data/app/pb_kits/playbook/pb_selectable_list/docs/_selectable_list_checkbox.jsx +1 -1
  295. data/app/pb_kits/playbook/pb_selectable_list/docs/_selectable_list_radio.jsx +1 -1
  296. data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_border_radius.jsx +1 -2
  297. data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_color.jsx +1 -2
  298. data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_default.jsx +2 -1
  299. data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_filter.jsx +1 -8
  300. data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_height_width.jsx +1 -2
  301. data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_layout.jsx +2 -1
  302. data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_user.jsx +1 -5
  303. data/app/pb_kits/playbook/pb_stat_change/docs/_stat_change_default.jsx +1 -1
  304. data/app/pb_kits/playbook/pb_stat_change/docs/_stat_change_unit.jsx +1 -1
  305. data/app/pb_kits/playbook/pb_stat_change/docs/_stat_change_unit_two.jsx +1 -1
  306. data/app/pb_kits/playbook/pb_table/docs/_table_with_clickable_rows.jsx +1 -2
  307. data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible.jsx +1 -4
  308. data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_custom_click.jsx +1 -4
  309. data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_custom_content.jsx +1 -7
  310. data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_rows.jsx +1 -4
  311. data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_table.jsx +1 -5
  312. data/app/pb_kits/playbook/pb_table/docs/_table_with_selectable_rows.jsx +1 -5
  313. data/app/pb_kits/playbook/pb_textarea/docs/_textarea_error.jsx +1 -1
  314. data/app/pb_kits/playbook/pb_time_range_inline/docs/_time_range_inline_default.jsx +1 -1
  315. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_unstyled.jsx +1 -3
  316. data/app/pb_kits/playbook/pb_title/docs/_title_default.html.erb +2 -1
  317. data/app/pb_kits/playbook/pb_title/docs/_title_default.jsx +1 -1
  318. data/app/pb_kits/playbook/pb_title/docs/example.yml +0 -2
  319. data/app/pb_kits/playbook/pb_title/docs/index.js +0 -1
  320. data/app/pb_kits/playbook/pb_toggle/docs/_toggle_custom.jsx +1 -1
  321. data/app/pb_kits/playbook/pb_toggle/docs/_toggle_custom_radio.jsx +1 -3
  322. data/app/pb_kits/playbook/pb_toggle/docs/_toggle_default.jsx +1 -1
  323. data/app/pb_kits/playbook/pb_toggle/docs/_toggle_disabled.jsx +1 -1
  324. data/app/pb_kits/playbook/pb_toggle/docs/_toggle_name.jsx +1 -3
  325. data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_default_react.jsx +1 -3
  326. data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_delay.jsx +1 -4
  327. data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_icon.erb +10 -0
  328. data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_icon.jsx +1 -3
  329. data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_interaction.jsx +1 -4
  330. data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_margin.jsx +1 -3
  331. data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_show_tooltip_react.jsx +1 -5
  332. data/app/pb_kits/playbook/pb_tooltip/docs/example.yml +1 -5
  333. data/app/pb_kits/playbook/pb_tooltip/docs/index.js +0 -1
  334. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_async_createable.jsx +1 -1
  335. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_createable.jsx +1 -1
  336. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_custom_menu_list.jsx +3 -1
  337. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_truncated_text.jsx +1 -1
  338. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_highlight.jsx +8 -6
  339. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills.jsx +1 -1
  340. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async.jsx +5 -3
  341. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async_custom_options.jsx +6 -4
  342. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async_users.jsx +6 -4
  343. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_color.jsx +1 -1
  344. data/app/pb_kits/playbook/pb_typeahead/docs/example.yml +0 -5
  345. data/app/pb_kits/playbook/pb_typeahead/docs/index.js +0 -2
  346. data/app/pb_kits/playbook/pb_user/docs/_user_block_content_subtitle_react.jsx +1 -6
  347. data/app/pb_kits/playbook/pb_user/docs/_user_default.jsx +1 -1
  348. data/app/pb_kits/playbook/pb_user/docs/_user_light_weight.jsx +1 -1
  349. data/app/pb_kits/playbook/pb_user/docs/_user_size.jsx +1 -1
  350. data/app/pb_kits/playbook/pb_user/docs/_user_subtitle.jsx +1 -1
  351. data/app/pb_kits/playbook/pb_user/docs/_user_text_only.jsx +1 -1
  352. data/app/pb_kits/playbook/pb_user/docs/_user_vertical_size.jsx +1 -1
  353. data/app/pb_kits/playbook/pb_user/docs/_user_with_territory.jsx +1 -1
  354. data/app/pb_kits/playbook/pb_user/docs/example.yml +0 -2
  355. data/app/pb_kits/playbook/pb_user/docs/index.js +0 -1
  356. data/app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_continuous.jsx +1 -2
  357. data/app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_default.jsx +1 -2
  358. data/app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_multi_beacon.jsx +1 -2
  359. data/app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_no_beacon.jsx +1 -2
  360. data/app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_no_overlay.jsx +1 -2
  361. data/app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_styled.jsx +1 -2
  362. data/dist/playbook-doc.js +1 -1
  363. metadata +3 -76
  364. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_infinite_scroll.jsx +0 -50
  365. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_editing.jsx +0 -102
  366. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_editing.md +0 -4
  367. data/app/pb_kits/playbook/pb_advanced_table/docs/advanced_table_mock_data_infinite_scroll.json +0 -152002
  368. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_on_change.html.erb +0 -39
  369. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_on_close.html.erb +0 -39
  370. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_behavior.html.erb +0 -8
  371. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_borders.html.erb +0 -33
  372. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_breakpoints.html.erb +0 -3
  373. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_menu.html.erb +0 -24
  374. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_overlay.html.erb +0 -21
  375. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_overlay.md +0 -1
  376. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_sizes.html.erb +0 -49
  377. data/app/pb_kits/playbook/pb_empty_state/docs/_empty_state_alignment.jsx +0 -38
  378. data/app/pb_kits/playbook/pb_empty_state/docs/_empty_state_default.jsx +0 -17
  379. data/app/pb_kits/playbook/pb_empty_state/docs/_empty_state_orientation.jsx +0 -21
  380. data/app/pb_kits/playbook/pb_empty_state/docs/_empty_state_size.jsx +0 -35
  381. data/app/pb_kits/playbook/pb_empty_state/docs/default_image/computer_fly_no_branding.svg +0 -21
  382. data/app/pb_kits/playbook/pb_empty_state/docs/default_image/utils.tsx +0 -118
  383. data/app/pb_kits/playbook/pb_empty_state/docs/example.yml +0 -8
  384. data/app/pb_kits/playbook/pb_empty_state/docs/index.js +0 -4
  385. data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_wrapped.html.erb +0 -40
  386. data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_wrapped.jsx +0 -50
  387. data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_wrapped.md +0 -3
  388. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_disabled.html.erb +0 -72
  389. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_disabled.jsx +0 -91
  390. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_disabled_options.html.erb +0 -76
  391. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_disabled_options.jsx +0 -94
  392. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_disabled_options.md +0 -1
  393. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_disabled_options_default.html.erb +0 -75
  394. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_disabled_options_default.jsx +0 -93
  395. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_disabled_options_default.md +0 -3
  396. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_disabled_options_parent.html.erb +0 -75
  397. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_disabled_options_parent.jsx +0 -93
  398. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_disabled_options_parent.md +0 -3
  399. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_disabled_options_parent_default.html.erb +0 -74
  400. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_disabled_options_parent_default.jsx +0 -92
  401. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_disabled_options_parent_default.md +0 -3
  402. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_react_hook.jsx +0 -91
  403. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_react_hook.md +0 -1
  404. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_hide_scroll_bar.html.erb +0 -11
  405. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_hide_scroll_bar.jsx +0 -36
  406. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_hide_scroll_bar_rails.md +0 -1
  407. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_hide_scroll_bar_react.md +0 -1
  408. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_vertical_dynamic_multi_directional.html.erb +0 -11
  409. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_vertical_dynamic_multi_directional.md +0 -1
  410. data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_hidden_inputs.html.erb +0 -5
  411. data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_hidden_inputs.md +0 -1
  412. data/app/pb_kits/playbook/pb_radio/docs/_radio_react_hook.jsx +0 -60
  413. data/app/pb_kits/playbook/pb_radio/docs/_radio_react_hook.md +0 -1
  414. data/app/pb_kits/playbook/pb_select/docs/_select_react_hook.jsx +0 -58
  415. data/app/pb_kits/playbook/pb_select/docs/_select_react_hook.md +0 -1
  416. data/app/pb_kits/playbook/pb_title/docs/_title_display_size.html.erb +0 -7
  417. data/app/pb_kits/playbook/pb_title/docs/_title_display_size.jsx +0 -54
  418. data/app/pb_kits/playbook/pb_title/docs/_title_display_size.md +0 -1
  419. data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_delay_rails.html.erb +0 -39
  420. data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_delay_rails.md +0 -3
  421. data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_icon_rails.html.erb +0 -22
  422. data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_interaction.html.erb +0 -26
  423. data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_sizing.html.erb +0 -22
  424. data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_sizing.jsx +0 -69
  425. data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_sizing.md +0 -3
  426. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_disabled.html.erb +0 -19
  427. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_disabled.jsx +0 -23
  428. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_dynamic_options.html.erb +0 -45
  429. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_dynamic_options.md +0 -5
  430. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_dynamic_options_pure_rails.html.erb +0 -33
  431. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_dynamic_options_pure_rails.md +0 -3
  432. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_react_hook.jsx +0 -66
  433. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_react_hook.md +0 -1
  434. data/app/pb_kits/playbook/pb_user/docs/_user_font_options.html.erb +0 -22
  435. data/app/pb_kits/playbook/pb_user/docs/_user_font_options.jsx +0 -40
  436. data/app/pb_kits/playbook/pb_user/docs/_user_font_options_rails.md +0 -5
  437. data/app/pb_kits/playbook/pb_user/docs/_user_font_options_react.md +0 -5
@@ -1,26 +1,42 @@
1
- import React from "react"
2
- import Button from '../../pb_button/_button'
3
- import Body from "../../pb_body/_body"
1
+ import React, { useState } from "react";
2
+ import { Button, Drawer, Flex } from "playbook-ui";
3
+
4
+ const useDrawer = (visible = false) => {
5
+ const [opened, setOpened] = useState(visible);
6
+ const toggle = () => setOpened(!opened);
7
+
8
+ return [opened, toggle];
9
+ };
10
+
11
+ const DrawerBreakpoints = () => {
12
+ const [smallDrawerOpened, toggleSmallDrawer] = useDrawer();
4
13
 
5
- const DrawerMenu = () => {
6
14
  return (
7
15
  <>
8
- <Body>
9
- The breakpoint prop determines when the Drawer is always visible. Above
10
- the specified breakpoint, the Drawer remains open on the page. Below it,
11
- only the trigger element is shown, allowing you to toggle the drawer
12
- open and closed. To see this in action, click the button below and
13
- resize your window.
14
- </Body>
15
- <Button
16
- link='https://8njdkc.csb.app/'
17
- marginTop='md'
18
- newWindow
19
- >
20
- Open Doc Example in New Tab
21
- </Button>
16
+ <Flex wrap>
17
+ <Button
18
+ id="sm"
19
+ marginRight="md"
20
+ onClick={toggleSmallDrawer}
21
+ >
22
+ {"Will open at small breakpoint"}
23
+ </Button>
24
+ </Flex>
25
+ <Flex>
26
+ <Drawer
27
+ behavior={"push"}
28
+ breakpoint="sm"
29
+ onClose={toggleSmallDrawer}
30
+ opened={smallDrawerOpened}
31
+ overlay={false}
32
+ placement={"right"}
33
+ size={"lg"}
34
+ >
35
+ Open because small breakpoint
36
+ </Drawer>
37
+ </Flex>
22
38
  </>
23
- )
24
- }
39
+ );
40
+ };
25
41
 
26
- export default DrawerMenu
42
+ export default DrawerBreakpoints;
@@ -1,20 +1 @@
1
- <%= pb_rails("flex") do %>
2
- <%= pb_rails("button", props: { text: "Left Drawer", margin_right: "sm", data: {"open-drawer": "drawer-1"} }) %>
3
-
4
- <%= pb_rails("drawer", props: {
5
- id:"drawer-1",
6
- }) do %>
7
- Test me (Left Drawer)
8
- <% end %>
9
-
10
-
11
- <%= pb_rails("button", props: { text: "Right Drawer", data: {"open-drawer": "drawer-2"} }) %>
12
-
13
- <%= pb_rails("drawer", props: {
14
- id:"drawer-2",
15
- placement: "right"
16
- }) do %>
17
- Test me (Right Drawer)
18
- <% end %>
19
- <% end %>
20
-
1
+ <%= pb_rails("drawer") %>
@@ -1,8 +1,5 @@
1
1
  import React, { useState } from "react";
2
-
3
- import Button from '../../pb_button/_button'
4
- import Drawer from '../../pb_drawer/_drawer'
5
- import Flex from '../../pb_flex/_flex'
2
+ import { Button, Drawer, Flex } from "playbook-ui";
6
3
 
7
4
  const useDrawer = (visible = false) => {
8
5
  const [opened, setOpened] = useState(visible);
@@ -1,10 +1,5 @@
1
1
  import React, { useState, useEffect } from "react"
2
-
3
- import Button from '../../pb_button/_button'
4
- import Drawer from '../../pb_drawer/_drawer'
5
- import Icon from '../../pb_icon/_icon'
6
- import Nav from '../../pb_nav/_nav'
7
- import NavItem from '../../pb_nav/_item'
2
+ import { Button, Drawer, Icon, Nav, NavItem } from "playbook-ui"
8
3
 
9
4
  const DrawerMenu = () => {
10
5
  const [isSmallScreen, setIsSmallScreen] = useState(false)
@@ -13,8 +8,8 @@ const DrawerMenu = () => {
13
8
  const mediaQuery = window.matchMedia("(max-width: 600px)")
14
9
  setIsSmallScreen(mediaQuery.matches)
15
10
  const handler = (e) => setIsSmallScreen(e.matches)
16
- mediaQuery.addEventListener("change", handler)
17
- return () => mediaQuery.removeEventListener("change", handler)
11
+ mediaQuery.addEventListener('change', handler)
12
+ return () => mediaQuery.removeEventListener('change', handler)
18
13
  }, [])
19
14
 
20
15
  return (
@@ -27,17 +22,17 @@ const DrawerMenu = () => {
27
22
  />
28
23
  </Button>
29
24
  <Drawer
30
- breakpoint='md'
25
+ breakpoint="md"
31
26
  placement='bottom'
32
27
  size='full'
33
28
  triggerId='menuButton'
34
29
  withinElement
35
30
  >
36
- <Nav
31
+ <Nav
37
32
  highlight={false}
38
33
  link='#'
39
- orientation={isSmallScreen ? "vertical" : "horizontal"}
40
- padding={isSmallScreen ? "none" : "sm"}
34
+ orientation={isSmallScreen ? 'vertical' : 'horizontal'}
35
+ padding={isSmallScreen ? 'none' : 'sm'}
41
36
  >
42
37
  <NavItem link='#'
43
38
  text='About'
@@ -1,8 +1,5 @@
1
1
  import React, { useState } from "react"
2
-
3
- import Button from '../../pb_button/_button'
4
- import Drawer from '../../pb_drawer/_drawer'
5
- import Flex from '../../pb_flex/_flex'
2
+ import { Button, Drawer, Flex } from "playbook-ui"
6
3
 
7
4
  const DrawerSizes = () => {
8
5
  // Individual state variables for each drawer size
@@ -34,7 +31,6 @@ const DrawerSizes = () => {
34
31
  onClose={toggleNoOverlayDrawer}
35
32
  opened={openedNoOverlayDrawer}
36
33
  overlay={false}
37
- placement='right'
38
34
  size='lg'
39
35
  >
40
36
  This is a Drawer with no overlay
@@ -1,8 +1,5 @@
1
1
  import React, { useState } from "react";
2
-
3
- import Button from '../../pb_button/_button'
4
- import Drawer from '../../pb_drawer/_drawer'
5
- import Flex from '../../pb_flex/_flex'
2
+ import { Button, Drawer, Flex } from "playbook-ui";
6
3
 
7
4
  const DrawerSizes = () => {
8
5
  // Individual state variables for each drawer size
@@ -2,12 +2,6 @@ examples:
2
2
 
3
3
  rails:
4
4
  - drawer_default: Default
5
- - drawer_behavior: Push Behavior
6
- - drawer_menu: Within Element
7
- - drawer_sizes: Sizes
8
- - drawer_overlay: Overlay
9
- - drawer_breakpoints: Breakpoints
10
- - drawer_borders: Borders
11
5
 
12
6
 
13
7
  react:
@@ -16,5 +10,4 @@ examples:
16
10
  - drawer_menu: Within Element
17
11
  - drawer_sizes: Sizes
18
12
  - drawer_overlay: Overlay
19
- - drawer_breakpoints: Breakpoints
20
13
  - drawer_borders: Borders
@@ -1,5 +1,5 @@
1
1
  import React from 'react'
2
- import Dropdown from '../../pb_dropdown/_dropdown'
2
+ import { Dropdown } from 'playbook-ui'
3
3
 
4
4
  const DropdownBlankSelection = (props) => {
5
5
  const options = [
@@ -1,7 +1,5 @@
1
1
  import React, { useRef } from 'react'
2
-
3
- import Button from '../../pb_button/_button'
4
- import Dropdown from '../../pb_dropdown/_dropdown'
2
+ import { Button, Dropdown } from 'playbook-ui'
5
3
 
6
4
  const options = [
7
5
  {
@@ -1,5 +1,5 @@
1
1
  import React from 'react'
2
- import Dropdown from '../../pb_dropdown/_dropdown'
2
+ import { Dropdown } from 'playbook-ui'
3
3
 
4
4
  const DropdownDefault = (props) => {
5
5
 
@@ -1,5 +1,5 @@
1
1
  import React from 'react'
2
- import Dropdown from '../../pb_dropdown/_dropdown'
2
+ import { Dropdown } from 'playbook-ui'
3
3
 
4
4
  const DropdownDefaultValue = (props) => {
5
5
  const options = [
@@ -1,5 +1,5 @@
1
1
  import React, { useState } from 'react'
2
- import Dropdown from '../../pb_dropdown/_dropdown'
2
+ import { Dropdown } from 'playbook-ui'
3
3
 
4
4
  const DropdownError = (props) => {
5
5
  const [selectedOption, setSelectedOption] = useState()
@@ -1,5 +1,5 @@
1
1
  import React from 'react'
2
- import Dropdown from '../../pb_dropdown/_dropdown'
2
+ import { Dropdown } from 'playbook-ui'
3
3
 
4
4
  const DropdownSeparatorsHidden = (props) => {
5
5
 
@@ -1,5 +1,5 @@
1
1
  import React from 'react'
2
- import Dropdown from '../../pb_dropdown/_dropdown'
2
+ import { Dropdown } from 'playbook-ui'
3
3
 
4
4
  const DropdownSubcomponentStructure = (props) => {
5
5
 
@@ -1,5 +1,5 @@
1
1
  import React from 'react'
2
- import Dropdown from '../../pb_dropdown/_dropdown'
2
+ import { Dropdown } from 'playbook-ui'
3
3
 
4
4
  const DropdownSubtleVariant = (props) => {
5
5
 
@@ -1,9 +1,5 @@
1
1
  import React from 'react'
2
-
3
- import Dropdown from '../../pb_dropdown/_dropdown'
4
- import Badge from '../../pb_badge/_badge'
5
- import FlexItem from '../../pb_flex/_flex_item'
6
- import User from '../../pb_user/_user'
2
+ import { Dropdown, User, Badge, FlexItem } from 'playbook-ui'
7
3
 
8
4
  const DropdownWithAutocomplete = (props) => {
9
5
 
@@ -1,11 +1,5 @@
1
1
  import React, { useState } from 'react'
2
-
3
- import Dropdown from '../../pb_dropdown/_dropdown'
4
- import Badge from '../../pb_badge/_badge'
5
- import FlexItem from '../../pb_flex/_flex_item'
6
- import Avatar from '../../pb_avatar/_avatar'
7
- import User from '../../pb_user/_user'
8
-
2
+ import { Dropdown, User, Badge, FlexItem, Avatar } from 'playbook-ui'
9
3
 
10
4
  const DropdownWithAutocompleteAndCustomDisplay = (props) => {
11
5
  const [selectedOption, setSelectedOption] = useState();
@@ -1,11 +1,5 @@
1
1
  import React, { useState } from 'react'
2
-
3
- import Dropdown from '../../pb_dropdown/_dropdown'
4
- import Badge from '../../pb_badge/_badge'
5
- import Flex from '../../pb_flex/_flex'
6
- import FlexItem from '../../pb_flex/_flex_item'
7
- import Avatar from '../../pb_avatar/_avatar'
8
- import User from '../../pb_user/_user'
2
+ import { Dropdown, User, Flex, FlexItem, Badge, Avatar } from 'playbook-ui'
9
3
 
10
4
  const DropdownWithCustomDisplay = (props) => {
11
5
  const [selectedOption, setSelectedOption] = useState();
@@ -1,11 +1,5 @@
1
1
  import React from 'react'
2
-
3
- import Dropdown from '../../pb_dropdown/_dropdown'
4
- import FlexItem from '../../pb_flex/_flex_item'
5
- import Icon from '../../pb_icon/_icon'
6
- import Body from '../../pb_body/_body'
7
- import Flex from '../../pb_flex/_flex'
8
-
2
+ import { Dropdown, Icon, Body, FlexItem, Flex } from 'playbook-ui'
9
3
 
10
4
  const DropdownWithCustomOptions = (props) => {
11
5
 
@@ -1,5 +1,5 @@
1
1
  import React from 'react'
2
- import Dropdown from '../../pb_dropdown/_dropdown'
2
+ import { Dropdown } from 'playbook-ui'
3
3
 
4
4
  const DropdownWithCustomPadding = (props) => {
5
5
 
@@ -1,11 +1,5 @@
1
1
  import React, { useState } from 'react'
2
-
3
- import Dropdown from '../../pb_dropdown/_dropdown'
4
- import FlexItem from '../../pb_flex/_flex_item'
5
- import Icon from '../../pb_icon/_icon'
6
- import Body from '../../pb_body/_body'
7
- import Flex from '../../pb_flex/_flex'
8
- import IconCircle from '../../pb_icon_circle/_icon_circle'
2
+ import { Dropdown, Icon, Body, FlexItem, Flex, IconCircle } from 'playbook-ui'
9
3
 
10
4
  const DropdownWithCustomTrigger = (props) => {
11
5
 
@@ -1,9 +1,5 @@
1
1
  import React from 'react'
2
-
3
- import Dropdown from '../../pb_dropdown/_dropdown'
4
- import useDropdown from '../../pb_dropdown/hooks/useDropdown'
5
-
6
- import Button from '../../pb_button/_button'
2
+ import { Dropdown, useDropdown, Button } from 'playbook-ui'
7
3
 
8
4
  const DropdownWithExternalControl = (props) => {
9
5
  const [isDropDownClosed, setIsDropdownClosed] = useDropdown(true);
@@ -1,12 +1,5 @@
1
1
  import React, { useRef } from 'react'
2
-
3
- import Dropdown from '../../pb_dropdown/_dropdown'
4
- import useDropdown from '../../pb_dropdown/hooks/useDropdown'
5
- import CircleIconButton from '../../pb_circle_icon_button/_circle_icon_button'
6
- import FlexItem from '../../pb_flex/_flex_item'
7
- import Icon from '../../pb_icon/_icon'
8
- import Body from '../../pb_body/_body'
9
- import Flex from '../../pb_flex/_flex'
2
+ import { Dropdown, useDropdown, CircleIconButton, Icon, Body, FlexItem, Flex } from 'playbook-ui'
10
3
 
11
4
  const DropdownWithHook = (props) => {
12
5
  const [isDropDownClosed, setIsDropdownClosed] = useDropdown(true);
@@ -1,5 +1,5 @@
1
1
  import React from 'react'
2
- import Dropdown from '../../pb_dropdown/_dropdown'
2
+ import { Dropdown } from 'playbook-ui'
3
3
 
4
4
  const DropdownDefault = (props) => {
5
5
 
@@ -1,9 +1,10 @@
1
1
 
2
2
  import React, { useState } from 'react'
3
-
4
- import FileUpload from '../../pb_file_upload/_file_upload'
5
- import List from '../../pb_list/_list'
6
- import ListItem from '../../pb_list/_list_item'
3
+ import {
4
+ FileUpload,
5
+ List,
6
+ ListItem,
7
+ } from 'playbook-ui'
7
8
 
8
9
  const AcceptedFilesList = ({ files }) => (
9
10
  <List>
@@ -1,9 +1,7 @@
1
1
  /* eslint-disable react/no-multi-comp */
2
2
 
3
3
  import React, { useState } from "react";
4
- import FileUpload from '../../pb_file_upload/_file_upload'
5
- import List from '../../pb_list/_list'
6
- import ListItem from '../../pb_list/_list_item'
4
+ import { FileUpload, List, ListItem } from "playbook-ui";
7
5
 
8
6
  const AcceptedFilesList = ({ files }) => (
9
7
  <List>
@@ -1,8 +1,10 @@
1
1
 
2
2
  import React, { useState } from 'react'
3
- import FileUpload from '../../pb_file_upload/_file_upload'
4
- import List from '../../pb_list/_list'
5
- import ListItem from '../../pb_list/_list_item'
3
+ import {
4
+ FileUpload,
5
+ List,
6
+ ListItem,
7
+ } from 'playbook-ui'
6
8
 
7
9
  const AcceptedFilesList = ({ files }) => (
8
10
  <List>
@@ -1,8 +1,10 @@
1
1
 
2
2
  import React, { useState } from 'react'
3
- import FileUpload from '../../pb_file_upload/_file_upload'
4
- import List from '../../pb_list/_list'
5
- import ListItem from '../../pb_list/_list_item'
3
+ import {
4
+ FileUpload,
5
+ List,
6
+ ListItem,
7
+ } from 'playbook-ui'
6
8
 
7
9
  const AcceptedFilesList = ({ files }) => (
8
10
  <List>
@@ -1,11 +1,12 @@
1
1
  /* eslint-disable react/no-multi-comp */
2
2
 
3
3
  import React, { useState } from 'react'
4
-
5
- import Body from '../../pb_body/_body'
6
- import FileUpload from '../../pb_file_upload/_file_upload'
7
- import List from '../../pb_list/_list'
8
- import ListItem from '../../pb_list/_list_item'
4
+ import {
5
+ Body,
6
+ FileUpload,
7
+ List,
8
+ ListItem,
9
+ } from 'playbook-ui'
9
10
 
10
11
  const AcceptedFilesList = ({ files }) => (
11
12
  <List>
@@ -1,10 +1,5 @@
1
1
  import React from 'react'
2
-
3
- import Button from '../../pb_button/_button'
4
- import Filter from '../../pb_filter/_filter'
5
- import Flex from '../../pb_flex/_flex'
6
- import Select from '../../pb_select/_select'
7
- import TextInput from '../../pb_text_input/_text_input'
2
+ import { Button, Filter, Flex, Select, TextInput } from 'playbook-ui'
8
3
 
9
4
  const SortingChangeCallback = (sortOptions) => {
10
5
  alert(JSON.stringify(sortOptions[0]))
@@ -1,9 +1,5 @@
1
1
  import React from 'react'
2
- import Button from '../../pb_button/_button'
3
- import Filter from '../../pb_filter/_filter'
4
- import Flex from '../../pb_flex/_flex'
5
- import Select from '../../pb_select/_select'
6
- import TextInput from '../../pb_text_input/_text_input'
2
+ import { Button, Filter, Flex, Select, TextInput } from 'playbook-ui'
7
3
 
8
4
  const FilterMaxHeight = (props) => {
9
5
  const options = [
@@ -1,9 +1,5 @@
1
1
  import React from 'react'
2
-
3
- import Button from '../../pb_button/_button'
4
- import Filter from '../../pb_filter/_filter'
5
- import Flex from '../../pb_flex/_flex'
6
- import Select from '../../pb_select/_select'
2
+ import { Button, Filter, Flex, Select } from 'playbook-ui'
7
3
 
8
4
  const FilterMaxWidth = (props) => {
9
5
  const options = [
@@ -1,10 +1,5 @@
1
1
  import React from 'react'
2
-
3
- import Button from '../../pb_button/_button'
4
- import Filter from '../../pb_filter/_filter'
5
- import Flex from '../../pb_flex/_flex'
6
- import Select from '../../pb_select/_select'
7
- import TextInput from '../../pb_text_input/_text_input'
2
+ import { Button, Filter, Flex, Select, TextInput } from 'playbook-ui'
8
3
 
9
4
  const FilterNoBackground = (props) => {
10
5
  const options = [
@@ -1,9 +1,5 @@
1
1
  import React from 'react'
2
- import Button from '../../pb_button/_button'
3
- import Filter from '../../pb_filter/_filter'
4
- import Flex from '../../pb_flex/_flex'
5
- import Select from '../../pb_select/_select'
6
- import TextInput from '../../pb_text_input/_text_input'
2
+ import { Button, Filter, Flex, Select, TextInput } from 'playbook-ui'
7
3
 
8
4
  const FilterNoSort = (props) => {
9
5
  const options = [
@@ -1,9 +1,5 @@
1
1
  import React from 'react'
2
- import Button from '../../pb_button/_button'
3
- import Filter from '../../pb_filter/_filter'
4
- import Flex from '../../pb_flex/_flex'
5
- import Select from '../../pb_select/_select'
6
- import TextInput from '../../pb_text_input/_text_input'
2
+ import { Button, Filter, Flex, Select, TextInput } from 'playbook-ui'
7
3
 
8
4
  const FilterOnly = (props) => {
9
5
  const options = [
@@ -1,10 +1,5 @@
1
1
  import React from 'react'
2
-
3
- import Button from '../../pb_button/_button'
4
- import Filter from '../../pb_filter/_filter'
5
- import Flex from '../../pb_flex/_flex'
6
- import Select from '../../pb_select/_select'
7
- import TextInput from '../../pb_text_input/_text_input'
2
+ import { Button, Filter, Flex, Select, TextInput } from 'playbook-ui'
8
3
 
9
4
  const SortingChangeCallback = (sortOptions) => {
10
5
  alert(JSON.stringify(sortOptions[0]))
@@ -1,9 +1,5 @@
1
1
  import React from 'react'
2
- import Button from '../../pb_button/_button'
3
- import Filter from '../../pb_filter/_filter'
4
- import Flex from '../../pb_flex/_flex'
5
- import Select from '../../pb_select/_select'
6
- import TextInput from '../../pb_text_input/_text_input'
2
+ import { Button, Filter, Flex, Select, TextInput } from 'playbook-ui'
7
3
 
8
4
  const FilterPopoverProps = (props) => {
9
5
  const options = [
@@ -1,7 +1,5 @@
1
1
  import React from 'react'
2
- import Flex from '../../pb_flex/_flex'
3
- import FlexItem from '../../pb_flex/_flex_item'
4
- import Title from '../../pb_title/_title'
2
+ import { Flex, FlexItem, Title } from 'playbook-ui'
5
3
 
6
4
  const FlexAlign = (props) => {
7
5
  return (
@@ -1,7 +1,5 @@
1
1
  import React from 'react'
2
- import Title from '../../pb_title/_title'
3
- import Flex from '../../pb_flex/_flex'
4
- import FlexItem from '../../pb_flex/_flex_item'
2
+ import { Flex, FlexItem, Title } from 'playbook-ui'
5
3
 
6
4
  const FlexDefault = (props) => {
7
5
  return (
@@ -1,6 +1,5 @@
1
1
  import React from 'react'
2
- import Flex from '../../pb_flex/_flex'
3
- import FlexItem from '../../pb_flex/_flex_item'
2
+ import { Flex, FlexItem } from 'playbook-ui'
4
3
 
5
4
  const FlexGap = (props) => {
6
5
  const count = () => {
@@ -1,7 +1,5 @@
1
1
  import React from 'react'
2
- import Flex from '../../pb_flex/_flex'
3
- import FlexItem from '../../pb_flex/_flex_item'
4
- import Title from '../../pb_title/_title'
2
+ import { Flex, FlexItem, Title } from 'playbook-ui'
5
3
 
6
4
  const FlexInline = (props) => {
7
5
  return (
@@ -1,7 +1,5 @@
1
1
  import React from 'react'
2
- import Flex from '../../pb_flex/_flex'
3
- import FlexItem from '../../pb_flex/_flex_item'
4
- import Title from '../../pb_title/_title'
2
+ import { Flex, FlexItem, Title } from 'playbook-ui'
5
3
 
6
4
  const FlexItemAlignSelf = (props) => {
7
5
  return (
@@ -1,7 +1,5 @@
1
1
  import React from 'react'
2
- import Flex from '../../pb_flex/_flex'
3
- import FlexItem from '../../pb_flex/_flex_item'
4
- import Title from '../../pb_title/_title'
2
+ import { Flex, FlexItem, Title } from 'playbook-ui'
5
3
 
6
4
  const FlexItemExample = (props) => {
7
5
  return (
@@ -1,7 +1,5 @@
1
1
  import React from 'react'
2
- import Flex from '../../pb_flex/_flex'
3
- import FlexItem from '../../pb_flex/_flex_item'
4
- import Title from '../../pb_title/_title'
2
+ import { Flex, FlexItem, Title } from 'playbook-ui'
5
3
 
6
4
  const FlexJustify = (props) => {
7
5
  return (
@@ -1,7 +1,5 @@
1
1
  import React from 'react'
2
- import Flex from '../../pb_flex/_flex'
3
- import FlexItem from '../../pb_flex/_flex_item'
4
- import Title from '../../pb_title/_title'
2
+ import { Flex, FlexItem, Title } from 'playbook-ui'
5
3
 
6
4
  const FlexReverse = (props) => {
7
5
  return (
@@ -1,7 +1,5 @@
1
1
  import React from 'react'
2
- import Flex from '../../pb_flex/_flex'
3
- import FlexItem from '../../pb_flex/_flex_item'
4
- import Title from '../../pb_title/_title'
2
+ import { Flex, FlexItem, Title } from 'playbook-ui'
5
3
 
6
4
  const FlexSpacing = (props) => {
7
5
  return (