playbook_ui 14.22.0.pre.alpha.testdialog8898 → 14.22.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 (239) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/_playbook.scss +1 -0
  3. data/app/pb_kits/playbook/pb_advanced_table/Components/CustomCell.tsx +9 -11
  4. data/app/pb_kits/playbook/pb_advanced_table/Components/RegularTableView.tsx +4 -20
  5. data/app/pb_kits/playbook/pb_advanced_table/Components/SubRowHeaderRow.tsx +11 -32
  6. data/app/pb_kits/playbook/pb_advanced_table/Components/TableHeaderCell.tsx +5 -25
  7. data/app/pb_kits/playbook/pb_advanced_table/Components/VirtualizedTableView.tsx +16 -36
  8. data/app/pb_kits/playbook/pb_advanced_table/Context/AdvancedTableContext.tsx +5 -18
  9. data/app/pb_kits/playbook/pb_advanced_table/Hooks/useTableActions.ts +17 -37
  10. data/app/pb_kits/playbook/pb_advanced_table/Hooks/useTableState.ts +7 -32
  11. data/app/pb_kits/playbook/pb_advanced_table/SubKits/TableBody.tsx +0 -3
  12. data/app/pb_kits/playbook/pb_advanced_table/SubKits/TableHeader.tsx +40 -91
  13. data/app/pb_kits/playbook/pb_advanced_table/Utilities/CellRendererUtils.tsx +1 -4
  14. data/app/pb_kits/playbook/pb_advanced_table/Utilities/TableContainerStyles.ts +2 -3
  15. data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.scss +6 -68
  16. data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.tsx +18 -42
  17. data/app/pb_kits/playbook/pb_advanced_table/advanced_table.test.jsx +2 -105
  18. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_beta_sort.html.erb +1 -1
  19. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_beta_subrow_headers.html.erb +1 -1
  20. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_border_color_rails.html.erb +1 -1
  21. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_loading.html.erb +1 -1
  22. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pinned_rows.jsx +1 -1
  23. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pinned_rows_react.md +3 -5
  24. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_actions.jsx +2 -2
  25. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_actions_rails.html.erb +2 -3
  26. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_sticky_header.html.erb +1 -1
  27. data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +0 -8
  28. data/app/pb_kits/playbook/pb_advanced_table/docs/index.js +0 -6
  29. data/app/pb_kits/playbook/pb_advanced_table/flat_advanced_table.js +84 -60
  30. data/app/pb_kits/playbook/pb_advanced_table/index.js +213 -125
  31. data/app/pb_kits/playbook/pb_advanced_table/scss_partials/advanced_table_sticky_mixin.scss +1 -16
  32. data/app/pb_kits/playbook/pb_advanced_table/table_action_bar.html.erb +1 -1
  33. data/app/pb_kits/playbook/pb_advanced_table/table_header.html.erb +1 -1
  34. data/app/pb_kits/playbook/pb_advanced_table/table_header.rb +0 -5
  35. data/app/pb_kits/playbook/pb_advanced_table/table_row.html.erb +3 -3
  36. data/app/pb_kits/playbook/pb_advanced_table/table_row.rb +0 -33
  37. data/app/pb_kits/playbook/pb_badge/_badge.scss +6 -5
  38. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_colors.jsx +15 -33
  39. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.jsx +72 -0
  40. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.md +6 -0
  41. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_default.jsx +15 -33
  42. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_height.jsx +22 -52
  43. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_horizontal.jsx +16 -12
  44. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend.jsx +15 -31
  45. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_non_clickable.jsx +16 -39
  46. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_position.jsx +38 -86
  47. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_negative_numbers.jsx +15 -32
  48. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_pb_styles.jsx +64 -0
  49. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_pb_styles.md +1 -0
  50. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_secondary_y_axis.jsx +22 -72
  51. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_secondary_y_axis.md +1 -1
  52. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_spline.jsx +15 -31
  53. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_stacked.jsx +16 -37
  54. data/app/pb_kits/playbook/pb_bar_graph/docs/_description.md +3 -1
  55. data/app/pb_kits/playbook/pb_bar_graph/docs/example.yml +3 -1
  56. data/app/pb_kits/playbook/pb_bar_graph/docs/index.js +2 -0
  57. data/app/pb_kits/playbook/pb_body/docs/_body_truncate.jsx +3 -3
  58. data/app/pb_kits/playbook/pb_circle_chart/circleChartTheme.ts +1 -36
  59. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_block.jsx +26 -71
  60. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_colors.jsx +16 -29
  61. data/app/pb_kits/playbook/pb_circle_chart/docs/{_circle_chart_colors_rails.md → _circle_chart_colors.md} +1 -1
  62. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_custom_tooltip.jsx +16 -28
  63. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_custom_tooltip.md +2 -4
  64. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_default.jsx +15 -23
  65. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_inner_sizes.jsx +51 -81
  66. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.jsx +75 -103
  67. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.md +6 -3
  68. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_live_data.jsx +13 -19
  69. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_pb_styles.jsx +38 -0
  70. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_pb_styles.md +1 -0
  71. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_rounded.jsx +17 -30
  72. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_labels.jsx +20 -34
  73. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_legend_kit.jsx +20 -29
  74. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_title.jsx +20 -28
  75. data/app/pb_kits/playbook/pb_circle_chart/docs/example.yml +1 -0
  76. data/app/pb_kits/playbook/pb_circle_chart/docs/index.js +1 -0
  77. data/app/pb_kits/playbook/pb_contact/contact.test.js +2 -2
  78. data/app/pb_kits/playbook/pb_dashboard/pbChartsDarkTheme.ts +39 -1
  79. data/app/pb_kits/playbook/pb_dashboard/pbChartsLightTheme.ts +39 -1
  80. data/app/pb_kits/playbook/pb_dropdown/_dropdown.tsx +12 -3
  81. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_blank_selection.html.erb +3 -3
  82. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_blank_selection.jsx +4 -7
  83. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_clear_selection.jsx +3 -6
  84. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_close_on_select.jsx +42 -0
  85. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_close_on_select.md +1 -0
  86. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_default.jsx +3 -6
  87. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_default_rails.html.erb +3 -3
  88. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_default_value.html.erb +3 -3
  89. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_default_value.jsx +4 -7
  90. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_error.html.erb +3 -3
  91. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_error.jsx +4 -7
  92. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_multi_select.jsx +10 -19
  93. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_multi_select_display.jsx +10 -19
  94. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_multi_select_display_rails.html.erb +10 -10
  95. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_multi_select_rails.html.erb +10 -10
  96. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_multi_select_with_autocomplete.html.erb +10 -10
  97. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_multi_select_with_autocomplete.jsx +11 -20
  98. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_multi_select_with_custom_options.html.erb +3 -3
  99. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_multi_select_with_custom_options.jsx +8 -8
  100. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_multi_select_with_default.html.erb +10 -10
  101. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_multi_select_with_default.jsx +14 -23
  102. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_separators_hidden.html.erb +3 -3
  103. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_separators_hidden.jsx +3 -6
  104. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_subcomponent_structure.jsx +3 -6
  105. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_subcomponent_structure_rails.html.erb +3 -3
  106. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_subtle_variant.html.erb +3 -3
  107. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_subtle_variant.jsx +3 -6
  108. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_autocomplete.html.erb +3 -3
  109. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_autocomplete.jsx +3 -3
  110. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_autocomplete_with_subcomponents.html.erb +4 -4
  111. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_autocomplete_with_subcomponents.jsx +4 -4
  112. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_display.jsx +4 -4
  113. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_display_rails.html.erb +4 -4
  114. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_options.jsx +3 -3
  115. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_options_rails.html.erb +3 -3
  116. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_padding.html.erb +3 -3
  117. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_padding.jsx +3 -3
  118. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_trigger.jsx +3 -3
  119. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_trigger_rails.html.erb +3 -3
  120. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_external_control.jsx +3 -3
  121. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_label.html.erb +3 -3
  122. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_label.jsx +3 -6
  123. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_search.jsx +3 -3
  124. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_search_rails.html.erb +3 -3
  125. data/app/pb_kits/playbook/pb_dropdown/docs/example.yml +2 -4
  126. data/app/pb_kits/playbook/pb_dropdown/docs/index.js +1 -2
  127. data/app/pb_kits/playbook/pb_dropdown/subcomponents/DropdownOption.tsx +14 -10
  128. data/app/pb_kits/playbook/pb_dropdown/subcomponents/DropdownTrigger.tsx +26 -15
  129. data/app/pb_kits/playbook/pb_filter/Filter/index.tsx +0 -13
  130. data/app/pb_kits/playbook/pb_filter/_filter.scss +0 -4
  131. data/app/pb_kits/playbook/pb_filter/docs/example.yml +0 -1
  132. data/app/pb_kits/playbook/pb_filter/docs/index.js +0 -1
  133. data/app/pb_kits/playbook/pb_filter/filter.test.js +2 -2
  134. data/app/pb_kits/playbook/pb_table/_table.tsx +4 -4
  135. data/app/pb_kits/playbook/pb_table/docs/_table_sticky_columns.html.erb +8 -8
  136. data/app/pb_kits/playbook/pb_table/docs/_table_sticky_columns.jsx +8 -8
  137. data/app/pb_kits/playbook/pb_table/docs/_table_sticky_columns_rails.md +1 -1
  138. data/app/pb_kits/playbook/pb_table/docs/_table_sticky_columns_react.md +1 -1
  139. data/app/pb_kits/playbook/pb_table/docs/_table_sticky_left_columns.html.erb +12 -12
  140. data/app/pb_kits/playbook/pb_table/docs/_table_sticky_left_columns.jsx +12 -12
  141. data/app/pb_kits/playbook/pb_table/docs/_table_sticky_left_columns_rails.md +2 -2
  142. data/app/pb_kits/playbook/pb_table/docs/_table_sticky_left_columns_react.md +3 -3
  143. data/app/pb_kits/playbook/pb_table/docs/_table_sticky_right_columns.html.erb +12 -12
  144. data/app/pb_kits/playbook/pb_table/docs/_table_sticky_right_columns.jsx +12 -12
  145. data/app/pb_kits/playbook/pb_table/docs/_table_sticky_right_columns_rails.md +2 -2
  146. data/app/pb_kits/playbook/pb_table/docs/_table_sticky_right_columns_react.md +3 -3
  147. data/app/pb_kits/playbook/pb_table/index.ts +4 -4
  148. data/app/pb_kits/playbook/pb_table/styles/_table-card.scss +0 -11
  149. data/app/pb_kits/playbook/pb_table/styles/_vertical_border.scss +0 -4
  150. data/app/pb_kits/playbook/pb_title/docs/_title_truncate.jsx +3 -3
  151. data/app/pb_kits/playbook/pb_tooltip/_tooltip.tsx +22 -34
  152. data/app/pb_kits/playbook/pb_tooltip/docs/example.yml +0 -2
  153. data/app/pb_kits/playbook/pb_tooltip/docs/index.js +0 -1
  154. data/app/pb_kits/playbook/pb_tooltip/index.js +36 -59
  155. data/app/pb_kits/playbook/pb_tooltip/tooltip.rb +2 -9
  156. data/app/pb_kits/playbook/pb_treemap_chart/_treemap_chart.scss +14 -0
  157. data/app/pb_kits/playbook/pb_treemap_chart/_treemap_chart.tsx +119 -0
  158. data/app/pb_kits/playbook/pb_treemap_chart/docs/_description.md +5 -0
  159. data/app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_colors.html.erb +37 -0
  160. data/app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_colors.jsx +48 -0
  161. data/app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_colors.md +2 -0
  162. data/app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_default.html.erb +37 -0
  163. data/app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_default.jsx +47 -0
  164. data/app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_default.md +3 -0
  165. data/app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_drillable.html.erb +79 -0
  166. data/app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_drillable.jsx +90 -0
  167. data/app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_drillable.md +1 -0
  168. data/app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_grouped_data.html.erb +54 -0
  169. data/app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_grouped_data.jsx +65 -0
  170. data/app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_grouped_data.md +3 -0
  171. data/app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_tooltip.html.erb +37 -0
  172. data/app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_tooltip.jsx +48 -0
  173. data/app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_tooltip.md +3 -0
  174. data/app/pb_kits/playbook/pb_treemap_chart/docs/example.yml +15 -0
  175. data/app/pb_kits/playbook/pb_treemap_chart/docs/index.js +5 -0
  176. data/app/pb_kits/playbook/pb_treemap_chart/treemapChart.test.js +63 -0
  177. data/app/pb_kits/playbook/pb_treemap_chart/treemap_chart.html.erb +1 -0
  178. data/app/pb_kits/playbook/pb_treemap_chart/treemap_chart.rb +48 -0
  179. data/app/pb_kits/playbook/pb_typeahead/docs/example.yml +0 -1
  180. data/app/pb_kits/playbook/pb_typeahead/typeahead.rb +0 -3
  181. data/dist/chunks/_typeahead-CoOpeYom.js +22 -0
  182. data/dist/chunks/_weekday_stacked-B_jpa2Rz.js +45 -0
  183. data/dist/chunks/lib-D7Va7yqa.js +29 -0
  184. data/dist/chunks/{pb_form_validation-DO8gKaSb.js → pb_form_validation-DSkdRDMf.js} +1 -1
  185. data/dist/chunks/vendor.js +1 -1
  186. data/dist/menu.yml +9 -0
  187. data/dist/playbook-doc.js +3 -3
  188. data/dist/playbook-rails-react-bindings.js +1 -1
  189. data/dist/playbook-rails.js +1 -1
  190. data/dist/playbook.css +1 -1
  191. data/lib/playbook/version.rb +2 -2
  192. metadata +41 -51
  193. data/app/pb_kits/playbook/pb_advanced_table/Utilities/ColumnStylingHelper.ts +0 -15
  194. data/app/pb_kits/playbook/pb_advanced_table/advanced_table_action_bar.js +0 -36
  195. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling.jsx +0 -51
  196. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling.md +0 -7
  197. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_column_headers.jsx +0 -77
  198. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_column_headers.md +0 -1
  199. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_column_headers_rails.html.erb +0 -63
  200. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_column_headers_rails.md +0 -1
  201. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_rails.html.erb +0 -38
  202. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_rails.md +0 -7
  203. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_custom_sort.jsx +0 -65
  204. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_custom_sort.md +0 -5
  205. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_infinite_scroll.md +0 -3
  206. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_row_styling.jsx +0 -64
  207. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_row_styling.md +0 -7
  208. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_with_custom_header.jsx +0 -69
  209. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_with_custom_header.md +0 -1
  210. data/app/pb_kits/playbook/pb_bar_graph/barGraphTheme.ts +0 -106
  211. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_height.md +0 -3
  212. data/app/pb_kits/playbook/pb_body/docs/_body_truncate_react.md +0 -4
  213. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_colors_react.md +0 -2
  214. data/app/pb_kits/playbook/pb_circle_chart/docs/_description.md +0 -1
  215. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_icon_options.html.erb +0 -52
  216. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_icon_options.jsx +0 -99
  217. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_icon_options_rails.md +0 -1
  218. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_icon_options_react.md +0 -1
  219. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_radio_options.html.erb +0 -28
  220. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_radio_options.jsx +0 -47
  221. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_radio_options_rails.md +0 -1
  222. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_radio_options_react.md +0 -1
  223. data/app/pb_kits/playbook/pb_filter/Filter/FilterSection.tsx +0 -49
  224. data/app/pb_kits/playbook/pb_filter/Filter/FilterSidebar.tsx +0 -69
  225. data/app/pb_kits/playbook/pb_filter/docs/_filter_sidebar.jsx +0 -224
  226. data/app/pb_kits/playbook/pb_title/docs/_title_truncate_react.md +0 -4
  227. data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_click_open.html.erb +0 -14
  228. data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_click_open.jsx +0 -25
  229. data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_click_open_rails.md +0 -1
  230. data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_click_open_react.md +0 -1
  231. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_preserve_input.html.erb +0 -18
  232. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_preserve_input_rails.md +0 -1
  233. data/dist/chunks/_circle_chart-CE1dVeaK.js +0 -1
  234. data/dist/chunks/_typeahead-CEZhT0Qr.js +0 -6
  235. data/dist/chunks/_weekday_stacked-Zjg_MJ-c.js +0 -61
  236. data/dist/chunks/lib-CP6s-TZS.js +0 -29
  237. /data/app/pb_kits/playbook/pb_body/docs/{_body_truncate_rails.md → _body_truncate.md} +0 -0
  238. /data/app/pb_kits/playbook/pb_title/docs/{_title_truncate_rails.md → _title_truncate.md} +0 -0
  239. /data/app/pb_kits/playbook/pb_typeahead/docs/{_typeahead_preserve_input_react.md → _typeahead_preserve_input.md} +0 -0
@@ -1,5 +0,0 @@
1
- The optional `customSort` prop can be used to add a sort button within a subrow header. The button will only appear if that subrowheader has more than one subrow nested within it. This button comes with a callback function called `onCustomSortClick`.
2
-
3
- The `onCustomSortClick` provides as an argument an array of all the subrows nested within that level of the table.
4
-
5
- __NOTE__: `customSort` must be used in conjunction with the `subRowHeaders` prop. The `customSort` DOES NOT handle the sort logic, this must be handled on the frontend using the callback provided.
@@ -1,3 +0,0 @@
1
- The `virtualizedRows` boolean prop enables the rendering of a virtualized table using [Tanstack's Virtualizer Library](https://tanstack.com/virtual/v3/docs/api/virtualizer) with infinite scroll capabilities for large data sets.
2
-
3
- **Note:** Not all Advanced Table props work perfectly with the Virtualized Table - for complex table configurations with many added features or controls consider using the [Pagination](https://playbook.powerapp.cloud/kits/advanced_table/react#pagination) version instead. Additionally, it is a known issue that due to the use of absolute positioning for the virtualized header, it does not render in Safari.
@@ -1,64 +0,0 @@
1
- import React from "react"
2
- import AdvancedTable from '../_advanced_table'
3
- import MOCK_DATA from "./advanced_table_mock_data_with_id.json"
4
- import { colors } from "playbook-ui"
5
-
6
- const AdvancedTableRowStyling = (props) => {
7
- const columnDefinitions = [
8
- {
9
- accessor: "year",
10
- label: "Year",
11
- cellAccessors: ["quarter", "month", "day"],
12
- },
13
- {
14
- accessor: "newEnrollments",
15
- label: "New Enrollments",
16
- },
17
- {
18
- accessor: "scheduledMeetings",
19
- label: "Scheduled Meetings",
20
- },
21
- {
22
- accessor: "attendanceRate",
23
- label: "Attendance Rate",
24
- },
25
- {
26
- accessor: "completedClasses",
27
- label: "Completed Classes",
28
- },
29
- {
30
- accessor: "classCompletionRate",
31
- label: "Class Completion Rate",
32
- },
33
- {
34
- accessor: "graduatedStudents",
35
- label: "Graduated Students",
36
- },
37
- ]
38
-
39
- const rowStyling = [
40
- {
41
- rowId: "1",
42
- backgroundColor: colors.warning,
43
- },
44
- {
45
- rowId: "8",
46
- backgroundColor: colors.category_1,
47
- fontColor: colors.white,
48
- expandButtonColor: colors.white,
49
- },
50
- ];
51
-
52
- return (
53
- <div>
54
- <AdvancedTable
55
- columnDefinitions={columnDefinitions}
56
- rowStyling={rowStyling}
57
- tableData={MOCK_DATA}
58
- {...props}
59
- />
60
- </div>
61
- )
62
- }
63
-
64
- export default AdvancedTableRowStyling
@@ -1,7 +0,0 @@
1
- The `rowStyling` prop can be used in conjunction with row ids to control certain styling options on individual rows. Currently, `rowStyling` gives you 3 optional controls:
2
-
3
- - `backgroundColor` : use this to control the background color of the row
4
- - `fontColor`: use this to control font color for each row if needed, for example if using a darker background color.
5
- - `expandButtonColor`: use this to control the color of the expand icon if needed, for example if using a darker background color.
6
-
7
- **NOTE:** Each object within the `tableData` Array must contain a unique id in order to attach an id to all Rows for this to function.
@@ -1,69 +0,0 @@
1
- import React from "react"
2
- import AdvancedTable from '../../pb_advanced_table/_advanced_table'
3
- import Icon from "../../pb_icon/_icon"
4
- import Flex from "../../pb_flex/_flex"
5
- import Caption from "../../pb_caption/_caption"
6
- import Tooltip from "../../pb_tooltip/_tooltip"
7
- import MOCK_DATA from "./advanced_table_mock_data.json"
8
-
9
- const AdvancedTableWithCustomHeader = (props) => {
10
- const columnDefinitions = [
11
- {
12
- accessor: "year",
13
- label: "Year",
14
- cellAccessors: ["quarter", "month", "day"],
15
- },
16
- {
17
- accessor: "newEnrollments",
18
- label: "New Enrollments",
19
- header: () => (
20
- <Flex alignItems="center"
21
- justifyContent="center"
22
- >
23
- <Caption marginRight="xs">New Enrollments</Caption>
24
- <Tooltip placement="top"
25
- text="Whoa. I'm a Tooltip"
26
- zIndex={10}
27
- >
28
- <Icon cursor="pointer"
29
- icon="info"
30
- size="xs"
31
- />
32
- </Tooltip>
33
- </Flex>
34
- ),
35
- },
36
- {
37
- accessor: "scheduledMeetings",
38
- label: "Scheduled Meetings",
39
- },
40
- {
41
- accessor: "attendanceRate",
42
- label: "Attendance Rate",
43
- },
44
- {
45
- accessor: "completedClasses",
46
- label: "Completed Classes",
47
- },
48
- {
49
- accessor: "classCompletionRate",
50
- label: "Class Completion Rate",
51
- },
52
- {
53
- accessor: "graduatedStudents",
54
- label: "Graduated Students",
55
- },
56
- ];
57
-
58
- return (
59
- <div>
60
- <AdvancedTable
61
- columnDefinitions={columnDefinitions}
62
- tableData={MOCK_DATA}
63
- {...props}
64
- />
65
- </div>
66
- )
67
- }
68
-
69
- export default AdvancedTableWithCustomHeader
@@ -1 +0,0 @@
1
- The optional `header` key/value pair can be used within `columnDefinitions` to render a custom header. This example shows an Icon and Tooltip being used but other kits can be used as well.
@@ -1,106 +0,0 @@
1
- import colors from '../tokens/exports/_colors.module.scss'
2
- import typography from '../tokens/exports/_typography.module.scss'
3
-
4
- const barGraphTheme = {
5
- title: {
6
- text: "",
7
- style: {
8
- color: colors.text_lt_default,
9
- fontFamily: typography.font_family_base,
10
- fontWeight: typography.bold,
11
- fontSize: typography.heading_3,
12
- },
13
- },
14
- subtitle: {
15
- text: "",
16
- style: {
17
- fontFamily: typography.font_family_base,
18
- color: colors.text_lt_light,
19
- fontWeight: typography.regular,
20
- fontSize: typography.text_base,
21
- },
22
- },
23
- chart: {
24
- type: "column",
25
- },
26
- tooltip: {
27
- backgroundColor: {
28
- linearGradient: { x1: 0, y1: 0, x2: 0, y2: 1 },
29
- stops: [
30
- [0, colors.bg_dark],
31
- [1, colors.bg_dark],
32
- ],
33
- },
34
- style: {
35
- fontFamily: typography.font_family_base,
36
- color: colors.text_dk_default,
37
- fontWeight: typography.regular,
38
- fontSize: typography.text_smaller,
39
- },
40
- },
41
- colors: [
42
- colors.data_1,
43
- colors.data_2,
44
- colors.data_3,
45
- colors.data_4,
46
- colors.data_5,
47
- colors.data_6,
48
- colors.data_7,
49
- ],
50
- credits: { enabled: false },
51
- legend: {
52
- enabled: false,
53
- itemStyle: {
54
- color: colors.text_lt_light,
55
- fill: colors.text_lt_light,
56
- fontSize: typography.text_smaller,
57
- },
58
- },
59
- xAxis: {
60
- gridLineWidth: 0,
61
- lineColor: colors.border_light,
62
- tickColor: colors.border_light,
63
- labels: {
64
- style: {
65
- fontFamily: typography.font_family_base,
66
- color: colors.text_lt_lighter,
67
- fontWeight: typography.bold,
68
- fontSize: typography.text_smaller,
69
- },
70
- },
71
- title: {
72
- style: {
73
- color: colors.text_lt_default,
74
- fontFamily: typography.font_family_base,
75
- fontWeight: typography.regular,
76
- fontSize: typography.heading_4,
77
- },
78
- },
79
- },
80
- yAxis: {
81
- alternateGridColor: undefined as string | undefined,
82
- minorTickInterval: null as number | null,
83
- gridLineColor: colors.border_light,
84
- minorGridLineColor: colors.border_light,
85
- lineWidth: 0,
86
- tickWidth: 0,
87
- labels: {
88
- style: {
89
- fontFamily: typography.font_family_base,
90
- color: colors.text_lt_lighter,
91
- fontWeight: typography.bold,
92
- fontSize: typography.text_smaller,
93
- },
94
- },
95
- title: {
96
- style: {
97
- fontFamily: typography.font_family_base,
98
- color: colors.text_lt_lighter,
99
- fontWeight: typography.bold,
100
- fontSize: typography.text_smaller,
101
- },
102
- },
103
- },
104
- }
105
-
106
- export default barGraphTheme;
@@ -1,3 +0,0 @@
1
- By default, Highcharts have a height of 400px, but this can be customized. You can override the default by specifying either a percentage or a fixed pixel value.
2
-
3
- Using a percentage maintains a consistent aspect ratio across different responsive sizes. For example, setting the height to 50% makes the chart’s height half of its width.
@@ -1,4 +0,0 @@
1
- ##### Prop
2
- `truncate` | **Type**: Enum | **Values**: 1 | 2 | 3 | 4 | 5
3
-
4
- The `truncate` prop truncates overflowing text up to a maximum of five rows and adds an ellipsis at the end.
@@ -1,2 +0,0 @@
1
- Custom data colors allow for color customization to match the needs of business requirements.
2
- Import the colors from Playbook's tokens, then set custom colors in the plotOptions.pie.colors array using the desired color variables. Hex colors are also available `eg: #CA0095`.
@@ -1 +0,0 @@
1
- **Important Note for the React Kit**: In order to leverage this kit, you must install `highcharts` and `highcharts-react-official` into your project as shown below. To then apply Playbook styles to your Highchart, import circleChartTheme.ts from playbook-ui and merge it with your Highchart options. Then, pass the merged value to the options prop. Playbook’s styling will be applied automatically. See the examples in the documentation below.
@@ -1,52 +0,0 @@
1
- <%
2
- options = [
3
- { label: "Item 1", value: "item-1", id: "1" },
4
- { label: "Item 2", value: "item-2", id: "2" },
5
- { label: "Item 3", value: "item-3", id: "3" }
6
- ]
7
- %>
8
-
9
- <%= pb_rails("dropdown", props: { label: "Multiple Icons", options: options }) do %>
10
- <%= pb_rails("dropdown/dropdown_trigger") %>
11
- <%= pb_rails("dropdown/dropdown_container") do %>
12
- <% options.each do |option| %>
13
- <%= pb_rails("dropdown/dropdown_option", props: { option: option }) do %>
14
- <%= pb_rails("flex", props: { align: "center", justify: "between" }) do %>
15
- <%= pb_rails("flex") do %>
16
- <%= pb_rails("icon", props: { icon: "calendar", padding_right: "xs" }) %>
17
- <%= pb_rails("body", props: { color: "default", text: option[:label] }) %>
18
- <% end %>
19
- <%= pb_rails("icon", props: { icon: "check" }) %>
20
- <% end %>
21
- <% end %>
22
- <% end %>
23
- <% end %>
24
- <% end %>
25
-
26
- <%= pb_rails("dropdown", props: { label: "Icon on Left", options: options, padding_y: "md" }) do %>
27
- <%= pb_rails("dropdown/dropdown_trigger") %>
28
- <%= pb_rails("dropdown/dropdown_container") do %>
29
- <% options.each do |option| %>
30
- <%= pb_rails("dropdown/dropdown_option", props: { option: option }) do %>
31
- <%= pb_rails("flex", props: { align: "center" }) do %>
32
- <%= pb_rails("icon", props: { icon: "calendar", padding_right: "xs" }) %>
33
- <%= pb_rails("body", props: { color: "default", text: option[:label] }) %>
34
- <% end %>
35
- <% end %>
36
- <% end %>
37
- <% end %>
38
- <% end %>
39
-
40
- <%= pb_rails("dropdown", props: { label: "Icon on Right", options: options }) do %>
41
- <%= pb_rails("dropdown/dropdown_trigger") %>
42
- <%= pb_rails("dropdown/dropdown_container") do %>
43
- <% options.each do |option| %>
44
- <%= pb_rails("dropdown/dropdown_option", props: { option: option }) do %>
45
- <%= pb_rails("flex", props: { align: "center", justify: "between" }) do %>
46
- <%= pb_rails("body", props: { color: "default", text: option[:label] }) %>
47
- <%= pb_rails("icon", props: { icon: "check" }) %>
48
- <% end %>
49
- <% end %>
50
- <% end %>
51
- <% end %>
52
- <% end %>
@@ -1,99 +0,0 @@
1
- import React from 'react'
2
- import Dropdown from '../_dropdown'
3
-
4
- import Body from '../../pb_body/_body'
5
- import Flex from '../../pb_flex/_flex'
6
- import Icon from '../../pb_icon/_icon'
7
-
8
- const DropdownCustomIconOptions = (props) => {
9
-
10
- const options = [
11
- { label: "Item 1", value: "item-1", id: "1" },
12
- { label: "Item 2", value: "item-2", id: "2" },
13
- { label: "Item 3", value: "item-3", id: "3" },
14
- ]
15
-
16
-
17
- return (
18
- <div>
19
- <Dropdown label="Multiple Icons"
20
- options={options}
21
- {...props}
22
- >
23
- {options.map((option) => (
24
- <Dropdown.Option key={option.id}
25
- option={option}
26
- >
27
- <Flex align="center"
28
- justify="between"
29
- >
30
- <Flex align="center">
31
- <Icon icon="calendar"
32
- paddingRight="xs"
33
- {...props}
34
- />
35
- <Body color="default"
36
- text={option.label}
37
- {...props}
38
- />
39
- </Flex>
40
- <Icon icon="check"
41
- {...props}
42
- />
43
- </Flex>
44
- </Dropdown.Option>
45
- ))}
46
- </Dropdown>
47
-
48
- <Dropdown label="Icon on Left"
49
- options={options}
50
- paddingY="md"
51
- {...props}
52
- >
53
- {options.map((option) => (
54
- <Dropdown.Option key={option.id}
55
- option={option}
56
- >
57
- <Flex align="center">
58
- <Icon icon="calendar"
59
- paddingRight="xs"
60
- {...props}
61
- />
62
- <Body color="default"
63
- text={option.label}
64
- {...props}
65
- />
66
- </Flex>
67
- </Dropdown.Option>
68
- ))}
69
- </Dropdown>
70
-
71
- <Dropdown label="Icon on Right"
72
- options={options}
73
- {...props}
74
- >
75
- {options.map((option) => (
76
- <Dropdown.Option key={option.id}
77
- option={option}
78
- >
79
- <Flex align="center"
80
- justify="between"
81
- >
82
- <Flex align="center">
83
- <Body color="default"
84
- text={option.label}
85
- {...props}
86
- />
87
- </Flex>
88
- <Icon icon="check"
89
- {...props}
90
- />
91
- </Flex>
92
- </Dropdown.Option>
93
- ))}
94
- </Dropdown>
95
- </div>
96
- )
97
- }
98
-
99
- export default DropdownCustomIconOptions
@@ -1 +0,0 @@
1
- Use the `dropdown/dropdown_option` subcomponent structure to include custom layouts inside dropdown menus. Icons can be placed alongside the Body label text.
@@ -1 +0,0 @@
1
- Use the `Dropdown.Option` subcomponent structure to include custom layouts inside dropdown menus. Icons can be placed alongside the Body label text.
@@ -1,28 +0,0 @@
1
- <%
2
- options = [
3
- { label: "Item 1", value: "item-1", id: "1" },
4
- { label: "Item 2", value: "item-2", id: "2" },
5
- { label: "Item 3", value: "item-3", id: "3" }
6
- ]
7
-
8
- selected_value = params[:selected_value]
9
- %>
10
-
11
- <%= pb_rails("dropdown", props: { label: "Choose Item", options: options }) do %>
12
- <%= pb_rails("dropdown/dropdown_trigger") %>
13
- <%= pb_rails("dropdown/dropdown_container") do %>
14
- <% options.each do |option| %>
15
- <% checked = (option[:value] == selected_value) %>
16
- <%= pb_rails("dropdown/dropdown_option", props: { option: option }) do %>
17
- <%= pb_rails("flex", props: { align: "center" }) do %>
18
- <%= pb_rails("radio", props: {
19
- text: option[:label],
20
- name: "dropdown_radio",
21
- value: option[:value],
22
- checked: checked,
23
- }) %>
24
- <% end %>
25
- <% end %>
26
- <% end %>
27
- <% end %>
28
- <% end %>
@@ -1,47 +0,0 @@
1
- import React, { useState } from 'react'
2
- import Dropdown from '../_dropdown'
3
-
4
- import Body from '../../pb_body/_body'
5
- import Flex from '../../pb_flex/_flex'
6
- import Radio from '../../pb_radio/_radio'
7
-
8
- const DropdownCustomRadioOptions = (props) => {
9
- const [selectedValue, setSelectedValue] = useState(null)
10
-
11
- const options = [
12
- { label: "Item 1", value: "item-1", id: "1" },
13
- { label: "Item 2", value: "item-2", id: "2" },
14
- { label: "Item 3", value: "item-3", id: "3" },
15
- ]
16
-
17
-
18
- return (
19
- <div>
20
- <Dropdown
21
- label="Select Item"
22
- onSelect={(selectedItem) => setSelectedValue(selectedItem?.value)}
23
- options={options}
24
- {...props}
25
- >
26
- {options.map((option) => {
27
- return (
28
- <Dropdown.Option key={option.id}
29
- option={option}
30
- >
31
- <Flex align="center">
32
- <Radio
33
- checked={selectedValue === option.value}
34
- name="dropdown_radio"
35
- value={option.value}
36
- />
37
- <Body text={option.label} />
38
- </Flex>
39
- </Dropdown.Option>
40
- )
41
- })}
42
- </Dropdown>
43
- </div>
44
- )
45
- }
46
-
47
- export default DropdownCustomRadioOptions
@@ -1 +0,0 @@
1
- Radio inputs can be used inside `dropdown/dropdown_option` for a custom layout that mimics form-like selection within a dropdown.
@@ -1 +0,0 @@
1
- Radio inputs can be used inside `Dropdown.Option` for a custom layout that mimics form-like selection within a dropdown.
@@ -1,49 +0,0 @@
1
- import React from 'react'
2
-
3
- import Collapsible from '../../pb_collapsible/_collapsible'
4
- import Caption from '../../pb_caption/_caption'
5
- import Body from '../../pb_body/_body'
6
-
7
- type FilterSectionProps = {
8
- children?: React.ReactChild[] | React.ReactChild,
9
- collapsible?: boolean,
10
- collapsed?: boolean,
11
- headerText?: string,
12
- }
13
- const FilterSection = ({ children, collapsible = false, collapsed = true, headerText, }: FilterSectionProps): React.ReactElement => {
14
- if (collapsible) {
15
- return (
16
- <Collapsible
17
- collapsed={collapsed}
18
- padding="none"
19
- >
20
- <Collapsible.Main
21
- paddingX="sm"
22
- paddingY="xs"
23
- >
24
- <Caption>{ headerText }</Caption>
25
- </Collapsible.Main>
26
- <Collapsible.Content
27
- className="filter_section_collapsible"
28
- paddingX="sm"
29
- >
30
- { children }
31
- </Collapsible.Content>
32
- </Collapsible>
33
- )
34
- }
35
-
36
- return (
37
- <Body
38
- paddingTop="xs"
39
- paddingX="sm"
40
- >
41
- <>
42
- {headerText && <Caption marginBottom="sm">{ headerText }</Caption>}
43
- { children }
44
- </>
45
- </Body>
46
- )
47
- }
48
-
49
- export default FilterSection
@@ -1,69 +0,0 @@
1
- import React from 'react'
2
-
3
- import { FilterDescription } from './CurrentFilters'
4
- import FilterBackground, { FilterBackgroundProps } from './FilterBackground'
5
- import ResultsCount from './ResultsCount'
6
-
7
- import Flex from '../../pb_flex/_flex'
8
- import SectionSeparator from '../../pb_section_separator/_section_separator'
9
- import Card from '../../pb_card/_card'
10
- import Caption from '../../pb_caption/_caption'
11
-
12
- export type FilterSidebarProps = {
13
- children?: React.ReactChild[] | React.ReactChild,
14
- filters?: FilterDescription,
15
- results?: number,
16
- } & FilterBackgroundProps
17
-
18
- const FilterSidebar = ({
19
- onCollapse,
20
- onSortChange,
21
- sortOptions,
22
- sortValue,
23
- filters,
24
- results,
25
- children,
26
- dark,
27
- isCollapsed,
28
- maxHeight,
29
- minWidth,
30
- placement,
31
- popoverProps,
32
- ...bgProps
33
- }: FilterSidebarProps): React.ReactElement => (
34
- <FilterBackground
35
- dark={dark}
36
- {...bgProps}
37
- >
38
- <Card.Body
39
- paddingX="sm"
40
- paddingY="xs"
41
- >
42
- <Flex
43
- align="center"
44
- justify="between"
45
- orientation="row"
46
- >
47
- <ResultsCount
48
- dark={dark}
49
- results={results}
50
- title
51
- />
52
- <div onClick={onCollapse}>
53
- <Caption
54
- color="link"
55
- cursor="pointer"
56
- size="xs"
57
- text={isCollapsed ? "Expand All" : "Collapse All"}
58
- />
59
- </div>
60
- </Flex>
61
- </Card.Body>
62
- <SectionSeparator dark={dark} />
63
- <>
64
- { children }
65
- </>
66
- </FilterBackground>
67
- )
68
-
69
- export default FilterSidebar