playbook_ui 14.17.0 → 14.18.0.pre.alpha.PLAY2037selectinlinecareterror7490

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 (238) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_advanced_table/Components/RegularTableView.tsx +23 -3
  3. data/app/pb_kits/playbook/pb_advanced_table/Components/TableHeaderCell.tsx +67 -3
  4. data/app/pb_kits/playbook/pb_advanced_table/Hooks/useTableActions.ts +1 -2
  5. data/app/pb_kits/playbook/pb_advanced_table/Utilities/ExpansionControlHelpers.tsx +29 -19
  6. data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.scss +365 -143
  7. data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.tsx +14 -1
  8. data/app/pb_kits/playbook/pb_advanced_table/advanced_table.rb +6 -1
  9. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_border_color.jsx +80 -0
  10. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_border_color.md +3 -0
  11. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_border_color_rails.html.erb +58 -0
  12. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_border_color_rails.md +3 -0
  13. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_expand_by_depth.jsx +66 -0
  14. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_expand_by_depth.md +10 -0
  15. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_columns.jsx +58 -0
  16. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_columns.md +6 -0
  17. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_columns_and_header.jsx +64 -0
  18. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_columns_and_header.md +8 -0
  19. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_header.jsx +55 -0
  20. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_header.md +3 -0
  21. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_header_rails.html.erb +33 -0
  22. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_header_rails.md +3 -0
  23. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props.html.erb +1 -1
  24. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props.jsx +1 -2
  25. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_rails.md +2 -2
  26. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_react.md +1 -1
  27. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_sticky_header_rails.md +6 -2
  28. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_sticky_header_react.md +6 -2
  29. data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +10 -4
  30. data/app/pb_kits/playbook/pb_advanced_table/docs/index.js +6 -1
  31. data/app/pb_kits/playbook/pb_advanced_table/index.js +7 -0
  32. data/app/pb_kits/playbook/pb_advanced_table/scss_partials/advanced_table_sticky_mixin.scss +97 -0
  33. data/app/pb_kits/playbook/pb_advanced_table/table_row.html.erb +1 -1
  34. data/app/pb_kits/playbook/pb_background/_background.scss +26 -0
  35. data/app/pb_kits/playbook/pb_background/_background.tsx +5 -3
  36. data/app/pb_kits/playbook/pb_background/background.test.js +5 -0
  37. data/app/pb_kits/playbook/pb_background/docs/_background_overlay.jsx +35 -0
  38. data/app/pb_kits/playbook/pb_background/docs/_background_overlay.md +1 -0
  39. data/app/pb_kits/playbook/pb_background/docs/example.yml +1 -0
  40. data/app/pb_kits/playbook/pb_background/docs/index.js +1 -0
  41. data/app/pb_kits/playbook/pb_circle_chart/_circle_chart.tsx +1 -1
  42. data/app/pb_kits/playbook/pb_circle_chart/circleChart.test.js +2 -2
  43. data/app/pb_kits/playbook/pb_circle_chart/circleChartTheme.ts +53 -0
  44. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_block.html.erb +2 -2
  45. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_block.jsx +1 -1
  46. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_colors.html.erb +1 -1
  47. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_colors.jsx +1 -1
  48. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_custom_tooltip.html.erb +1 -1
  49. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_custom_tooltip.jsx +1 -1
  50. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_default.html.erb +1 -1
  51. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_default.jsx +1 -1
  52. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.html.erb +1 -1
  53. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.jsx +1 -1
  54. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_live_data.jsx +2 -2
  55. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_pb_styles.jsx +38 -0
  56. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_pb_styles.md +1 -0
  57. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_rounded.html.erb +1 -1
  58. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_rounded.jsx +1 -1
  59. data/app/pb_kits/playbook/pb_circle_chart/docs/example.yml +2 -3
  60. data/app/pb_kits/playbook/pb_circle_chart/docs/index.js +2 -1
  61. data/app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.scss +39 -1
  62. data/app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.tsx +4 -0
  63. data/app/pb_kits/playbook/pb_circle_icon_button/circle_icon_button.rb +9 -1
  64. data/app/pb_kits/playbook/pb_circle_icon_button/circle_icon_button.test.js +14 -0
  65. data/app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_size.html.erb +28 -0
  66. data/app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_size.jsx +42 -0
  67. data/app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_size.md +1 -0
  68. data/app/pb_kits/playbook/pb_circle_icon_button/docs/example.yml +2 -0
  69. data/app/pb_kits/playbook/pb_circle_icon_button/docs/index.js +1 -0
  70. data/app/pb_kits/playbook/pb_copy_button/_copy_button.tsx +19 -45
  71. data/app/pb_kits/playbook/pb_copy_button/docs/_copy_button_hook.jsx +54 -0
  72. data/app/pb_kits/playbook/pb_copy_button/docs/_copy_button_hook.md +3 -0
  73. data/app/pb_kits/playbook/pb_copy_button/docs/_copy_button_hook_rails.html.erb +14 -0
  74. data/app/pb_kits/playbook/pb_copy_button/docs/_copy_button_hook_rails.md +3 -0
  75. data/app/pb_kits/playbook/pb_copy_button/docs/example.yml +2 -0
  76. data/app/pb_kits/playbook/pb_copy_button/docs/index.js +2 -1
  77. data/app/pb_kits/playbook/pb_copy_button/index.js +46 -20
  78. data/app/pb_kits/playbook/pb_copy_button/usePBCopy.ts +45 -0
  79. data/app/pb_kits/playbook/pb_date_picker/_date_picker.tsx +12 -0
  80. data/app/pb_kits/playbook/pb_date_picker/date_picker.rb +12 -0
  81. data/app/pb_kits/playbook/pb_date_picker/date_picker_helper.ts +50 -1
  82. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_error.html.erb +2 -2
  83. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_error.jsx +4 -1
  84. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_quick_pick_rails.md +4 -0
  85. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_quick_pick_range_limit.md +1 -1
  86. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_quick_pick_react.md +5 -1
  87. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_range_pattern.jsx +34 -0
  88. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_range_pattern.md +14 -0
  89. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_range_pattern_rails.html.erb +20 -0
  90. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_range_pattern_rails.md +14 -0
  91. data/app/pb_kits/playbook/pb_date_picker/docs/example.yml +2 -0
  92. data/app/pb_kits/playbook/pb_date_picker/docs/index.js +1 -0
  93. data/app/pb_kits/playbook/pb_date_picker/plugins/quickPick.tsx +10 -0
  94. data/app/pb_kits/playbook/pb_dialog/dialog.html.erb +10 -1
  95. data/app/pb_kits/playbook/pb_dialog/dialog.rb +2 -0
  96. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_turbo_frames.html.erb +117 -0
  97. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_turbo_frames_rails.md +9 -0
  98. data/app/pb_kits/playbook/pb_dialog/docs/example.yml +1 -0
  99. data/app/pb_kits/playbook/pb_dialog/index.js +106 -14
  100. data/app/pb_kits/playbook/pb_draggable/_draggable.scss +43 -20
  101. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones.html.erb +43 -0
  102. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones.jsx +102 -105
  103. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_colors.html.erb +55 -0
  104. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_colors.jsx +50 -48
  105. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_colors_rails.md +1 -0
  106. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_colors_react.md +1 -0
  107. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_line.jsx +110 -0
  108. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_line.md +5 -0
  109. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_react.md +5 -0
  110. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_event_listeners.html.erb +42 -0
  111. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_event_listeners.md +1 -0
  112. data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_with_table_react.jsx → _draggable_with_table.jsx} +1 -1
  113. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_table_react.md +3 -1
  114. data/app/pb_kits/playbook/pb_draggable/docs/example.yml +12 -7
  115. data/app/pb_kits/playbook/pb_draggable/docs/index.js +4 -1
  116. data/app/pb_kits/playbook/pb_draggable/draggable.rb +9 -1
  117. data/app/pb_kits/playbook/pb_draggable/draggable.test.jsx +68 -0
  118. data/app/pb_kits/playbook/pb_draggable/index.js +139 -142
  119. data/app/pb_kits/playbook/pb_draggable/subcomponents/DraggableContainer.tsx +4 -3
  120. data/app/pb_kits/playbook/pb_dropdown/_dropdown.tsx +1 -1
  121. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_error.html.erb +5 -2
  122. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_error.jsx +4 -1
  123. data/app/pb_kits/playbook/pb_dropdown/subcomponents/DropdownOption.tsx +1 -1
  124. data/app/pb_kits/playbook/pb_filter/docs/_filter_within_turbo_frames.html.erb +41 -0
  125. data/app/pb_kits/playbook/pb_filter/docs/_filter_within_turbo_frames.md +1 -0
  126. data/app/pb_kits/playbook/pb_filter/docs/example.yml +1 -0
  127. data/app/pb_kits/playbook/pb_form_group/_error_state_mixin.scss +22 -18
  128. data/app/pb_kits/playbook/pb_form_group/_form_group.scss +23 -3
  129. data/app/pb_kits/playbook/pb_form_group/docs/_form_group_select.html.erb +15 -5
  130. data/app/pb_kits/playbook/pb_form_group/docs/_form_group_select.jsx +39 -6
  131. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_pb_styles.jsx +30 -0
  132. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_pb_styles.md +1 -0
  133. data/app/pb_kits/playbook/pb_gauge/docs/example.yml +1 -0
  134. data/app/pb_kits/playbook/pb_gauge/docs/index.js +1 -0
  135. data/app/pb_kits/playbook/pb_gauge/gaugeTheme.ts +85 -0
  136. data/app/pb_kits/playbook/pb_layout/_layout.scss +70 -1
  137. data/app/pb_kits/playbook/pb_layout/_layout.tsx +29 -2
  138. data/app/pb_kits/playbook/pb_layout/docs/_layout_bracket.jsx +322 -118
  139. data/app/pb_kits/playbook/pb_layout/docs/_layout_bracket.md +1 -1
  140. data/app/pb_kits/playbook/pb_layout/subcomponents/_game.tsx +74 -43
  141. data/app/pb_kits/playbook/pb_layout/subcomponents/_participant.tsx +79 -0
  142. data/app/pb_kits/playbook/pb_layout/subcomponents/_round.tsx +21 -4
  143. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_pb_styles.jsx +52 -0
  144. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_pb_styles.md +1 -0
  145. data/app/pb_kits/playbook/pb_line_graph/docs/example.yml +1 -0
  146. data/app/pb_kits/playbook/pb_line_graph/docs/index.js +1 -0
  147. data/app/pb_kits/playbook/pb_line_graph/lineGraphTheme.ts +110 -0
  148. data/app/pb_kits/playbook/pb_overlay/_overlay.scss +83 -22
  149. data/app/pb_kits/playbook/pb_overlay/_overlay.tsx +39 -7
  150. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_color.jsx +63 -0
  151. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_color.md +3 -0
  152. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_default.md +1 -7
  153. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_fullscreen_background.jsx +49 -0
  154. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_fullscreen_background.md +1 -0
  155. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_fullscreen_opacity.jsx +81 -0
  156. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_fullscreen_opacity.md +1 -0
  157. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_gradient_opacity.jsx +39 -0
  158. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_gradient_opacity.md +1 -0
  159. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_layout.jsx +40 -0
  160. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_layout.md +5 -0
  161. data/app/pb_kits/playbook/pb_overlay/docs/example.yml +5 -0
  162. data/app/pb_kits/playbook/pb_overlay/docs/index.js +5 -0
  163. data/app/pb_kits/playbook/pb_overlay/overlay.test.jsx +39 -1
  164. data/app/pb_kits/playbook/pb_phone_number_input/_phone_number_input.scss +13 -0
  165. data/app/pb_kits/playbook/pb_phone_number_input/_phone_number_input.tsx +3 -1
  166. data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_country_search.html.erb +10 -0
  167. data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_country_search.jsx +20 -0
  168. data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_country_search.md +1 -0
  169. data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_validation.jsx +8 -1
  170. data/app/pb_kits/playbook/pb_phone_number_input/docs/example.yml +2 -0
  171. data/app/pb_kits/playbook/pb_phone_number_input/docs/index.js +1 -0
  172. data/app/pb_kits/playbook/pb_phone_number_input/phone_number_input.rb +3 -0
  173. data/app/pb_kits/playbook/pb_phone_number_input/phone_number_input.test.js +19 -0
  174. data/app/pb_kits/playbook/pb_popover/docs/_popover_append_to.html.erb +46 -0
  175. data/app/pb_kits/playbook/pb_popover/docs/_popover_append_to.md +1 -0
  176. data/app/pb_kits/playbook/pb_popover/docs/example.yml +1 -0
  177. data/app/pb_kits/playbook/pb_popover/index.ts +13 -1
  178. data/app/pb_kits/playbook/pb_popover/popover.rb +2 -0
  179. data/app/pb_kits/playbook/pb_select/_select.scss +10 -0
  180. data/app/pb_kits/playbook/pb_select/docs/_select_error.html.erb +1 -1
  181. data/app/pb_kits/playbook/pb_select/docs/_select_error.jsx +7 -2
  182. data/app/pb_kits/playbook/pb_table/_table.tsx +2 -2
  183. data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_rows.md +3 -1
  184. data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_rows_rails.md +3 -1
  185. data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_table.md +3 -1
  186. data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_table_rails.md +3 -1
  187. data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless.html.erb +34 -0
  188. data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless_rails.md +1 -0
  189. data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating.html.erb +36 -0
  190. data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating_rails.md +1 -0
  191. data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating_react.md +1 -1
  192. data/app/pb_kits/playbook/pb_table/docs/example.yml +2 -0
  193. data/app/pb_kits/playbook/pb_table/styles/_collapsible.scss +1 -1
  194. data/app/pb_kits/playbook/pb_table/styles/_headers.scss +19 -7
  195. data/app/pb_kits/playbook/pb_table/table.rb +13 -1
  196. data/app/pb_kits/playbook/pb_table/table_header.rb +13 -1
  197. data/app/pb_kits/playbook/pb_text_input/_text_input.tsx +13 -5
  198. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_error.html.erb +1 -1
  199. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_error.jsx +9 -1
  200. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_sanitize.jsx +94 -0
  201. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_sanitize.md +1 -0
  202. data/app/pb_kits/playbook/pb_text_input/docs/example.yml +2 -0
  203. data/app/pb_kits/playbook/pb_text_input/docs/index.js +1 -0
  204. data/app/pb_kits/playbook/pb_text_input/inputMask.ts +8 -1
  205. data/app/pb_kits/playbook/pb_textarea/docs/_textarea_error.html.erb +5 -1
  206. data/app/pb_kits/playbook/pb_textarea/docs/_textarea_error.jsx +7 -1
  207. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_error_state.html.erb +8 -1
  208. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_error_state.jsx +6 -2
  209. data/dist/chunks/_typeahead-D8CsVBZO.js +22 -0
  210. data/dist/chunks/_weekday_stacked-D3oLTSkH.js +45 -0
  211. data/dist/chunks/lazysizes-B7xYodB-.js +1 -0
  212. data/dist/chunks/lib-BmTAc7Nc.js +29 -0
  213. data/dist/chunks/{pb_form_validation-BiHyZedy.js → pb_form_validation-BWjy4bFn.js} +1 -1
  214. data/dist/chunks/vendor.js +1 -1
  215. data/dist/menu.yml +2 -2
  216. data/dist/playbook-doc.js +19 -1
  217. data/dist/playbook-rails-react-bindings.js +1 -1
  218. data/dist/playbook-rails.js +1 -1
  219. data/dist/playbook.css +1 -1
  220. data/lib/playbook/version.rb +2 -2
  221. metadata +92 -21
  222. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones.md +0 -5
  223. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_colors.md +0 -1
  224. data/dist/chunks/_typeahead-CPM091Hj.js +0 -22
  225. data/dist/chunks/_weekday_stacked-BzIANIYX.js +0 -45
  226. data/dist/chunks/lazysizes-DHz07jlL.js +0 -1
  227. data/dist/chunks/lib-Bg2KFzpz.js +0 -29
  228. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_default_rails.html.erb → _draggable_default.html.erb} +0 -0
  229. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_default.md → _draggable_default_react.md} +0 -0
  230. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_multiple_containers_rails.html.erb → _draggable_multiple_containers.html.erb} +0 -0
  231. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_multiple_containers.md → _draggable_multiple_containers_react.md} +0 -0
  232. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_with_cards_rails.html.erb → _draggable_with_cards.html.erb} +0 -0
  233. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_with_cards.md → _draggable_with_cards_react.md} +0 -0
  234. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_with_list_rails.html.erb → _draggable_with_list.html.erb} +0 -0
  235. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_with_list.md → _draggable_with_list_react.md} +0 -0
  236. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_with_selectable_list_rails.html.erb → _draggable_with_selectable_list.html.erb} +0 -0
  237. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_with_selectable_list.md → _draggable_with_selectable_list_react.md} +0 -0
  238. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_with_table.md → _draggable_with_table_rails.md} +0 -0
@@ -34,10 +34,13 @@ type AdvancedTableProps = {
34
34
  children?: React.ReactNode | React.ReactNode[]
35
35
  className?: string
36
36
  columnDefinitions: GenericObject[]
37
+ columnGroupBorderColor?: "text_lt_default" | "text_lt_light" | "text_lt_lighter" | "text_dk_default" | "text_dk_light" | "text_dk_lighter"
37
38
  dark?: boolean
38
39
  data?: { [key: string]: string }
39
40
  enableToggleExpansion?: "all" | "header" | "none"
40
41
  expandedControl?: GenericObject
42
+ expandByDepth?: { [key: string]: string | number }
43
+ onExpandByDepthClick?: (arg: number, arg1: any) => void
41
44
  htmlOptions?: {[key: string]: string | number | boolean | (() => void)},
42
45
  id?: string
43
46
  initialLoadingRowsCount?: number
@@ -69,10 +72,13 @@ const AdvancedTable = (props: AdvancedTableProps) => {
69
72
  children,
70
73
  className,
71
74
  columnDefinitions,
75
+ columnGroupBorderColor,
72
76
  dark = false,
73
77
  data = {},
74
78
  enableToggleExpansion = "header",
75
79
  expandedControl,
80
+ expandByDepth,
81
+ onExpandByDepthClick,
76
82
  htmlOptions = {},
77
83
  id,
78
84
  initialLoadingRowsCount = 10,
@@ -87,6 +93,7 @@ const AdvancedTable = (props: AdvancedTableProps) => {
87
93
  showActionsBar = true,
88
94
  selectableRows,
89
95
  sortControl,
96
+ stickyLeftColumn,
90
97
  tableData,
91
98
  tableOptions,
92
99
  tableProps,
@@ -233,6 +240,8 @@ const AdvancedTable = (props: AdvancedTableProps) => {
233
240
  'advanced-table-fullscreen': isFullscreen,
234
241
  'advanced-table-allow-fullscreen': allowFullScreen
235
242
  },
243
+ {'advanced-table-sticky-left-columns': stickyLeftColumn && stickyLeftColumn.length > 0},
244
+ columnGroupBorderColor ? `column-group-border-${columnGroupBorderColor}` : '',
236
245
  globalProps(props),
237
246
  className
238
247
  );
@@ -276,8 +285,10 @@ const AdvancedTable = (props: AdvancedTableProps) => {
276
285
  {renderFullscreenHeader()}
277
286
  <AdvancedTableProvider
278
287
  columnDefinitions={columnDefinitions}
288
+ columnGroupBorderColor={columnGroupBorderColor}
279
289
  enableToggleExpansion={enableToggleExpansion}
280
290
  enableVirtualization={virtualizedRows}
291
+ expandByDepth={expandByDepth}
281
292
  expanded={expanded}
282
293
  expandedControl={expandedControl}
283
294
  handleExpandOrCollapse={handleExpandOrCollapse}
@@ -286,11 +297,13 @@ const AdvancedTable = (props: AdvancedTableProps) => {
286
297
  isActionBarVisible={isActionBarVisible}
287
298
  isFullscreen={isFullscreen}
288
299
  loading={loading}
300
+ onExpandByDepthClick={onExpandByDepthClick}
289
301
  responsive={responsive}
290
302
  selectableRows={selectableRows}
291
303
  setExpanded={setExpanded}
292
304
  showActionsBar={showActionsBar}
293
305
  sortControl={sortControl}
306
+ stickyLeftColumn={stickyLeftColumn}
294
307
  subRowHeaders={tableOptions?.subRowHeaders}
295
308
  table={table}
296
309
  tableContainerRef={tableWrapperRef}
@@ -325,7 +338,7 @@ const AdvancedTable = (props: AdvancedTableProps) => {
325
338
  </Table>
326
339
  </React.Fragment>
327
340
  </AdvancedTableProvider>
328
-
341
+
329
342
  </div>
330
343
  {/* Bottom Pagination */}
331
344
  {pagination && (
@@ -7,6 +7,9 @@ module Playbook
7
7
  default: []
8
8
  prop :column_definitions, type: Playbook::Props::Array,
9
9
  default: []
10
+ prop :column_group_border_color, type: Playbook::Props::Enum,
11
+ values: %w[text_lt_default text_lt_light text_lt_lighter text_dk_default text_dk_light text_dk_lighter none],
12
+ default: "none"
10
13
  prop :enable_toggle_expansion, type: Playbook::Props::Enum,
11
14
  values: %w[all header none],
12
15
  default: "header"
@@ -24,7 +27,9 @@ module Playbook
24
27
  default: false
25
28
 
26
29
  def classname
27
- generate_classname("pb_advanced_table", responsive_classname, max_height_classname, separator: " ")
30
+ additional_classes = [responsive_classname, max_height_classname]
31
+ additional_classes << "column-group-border-#{column_group_border_color}" if column_group_border_color != "none"
32
+ generate_classname("pb_advanced_table", *additional_classes, separator: " ")
28
33
  end
29
34
 
30
35
  def responsive_classname
@@ -0,0 +1,80 @@
1
+ import React from "react"
2
+ import AdvancedTable from '../../pb_advanced_table/_advanced_table'
3
+ import MOCK_DATA from "./advanced_table_mock_data.json"
4
+
5
+ const AdvancedTableColumnBorderColors = (props) => {
6
+ const columnDefinitions = [
7
+ {
8
+ accessor: "year",
9
+ label: "Year",
10
+ cellAccessors: ["quarter", "month", "day"],
11
+ },
12
+ {
13
+ label: "Enrollment Data",
14
+ columns: [
15
+ {
16
+ label: "Enrollment Stats",
17
+ columns: [
18
+ {
19
+ accessor: "newEnrollments",
20
+ label: "New Enrollments",
21
+ },
22
+ {
23
+ accessor: "scheduledMeetings",
24
+ label: "Scheduled Meetings",
25
+ },
26
+ ],
27
+ },
28
+ ],
29
+ },
30
+ {
31
+ label: "Performance Data",
32
+ columns: [
33
+ {
34
+ label: "Completion Metrics",
35
+ columns: [
36
+ {
37
+ accessor: "completedClasses",
38
+ label: "Completed Classes",
39
+ },
40
+ {
41
+ accessor: "classCompletionRate",
42
+ label: "Class Completion Rate",
43
+ },
44
+ ],
45
+ },
46
+ {
47
+ label: "Attendance",
48
+ columns: [
49
+ {
50
+ accessor: "attendanceRate",
51
+ label: "Attendance Rate",
52
+ },
53
+ {
54
+ accessor: "scheduledMeetings",
55
+ label: "Scheduled Meetings",
56
+ },
57
+ ],
58
+ },
59
+ ],
60
+ },
61
+ ];
62
+
63
+ const tableProps = {
64
+ verticalBorder: true
65
+ }
66
+
67
+ return (
68
+ <>
69
+ <AdvancedTable
70
+ columnDefinitions={columnDefinitions}
71
+ columnGroupBorderColor="text_lt_default"
72
+ tableData={MOCK_DATA}
73
+ tableProps={tableProps}
74
+ {...props}
75
+ />
76
+ </>
77
+ )
78
+ }
79
+
80
+ export default AdvancedTableColumnBorderColors
@@ -0,0 +1,3 @@
1
+ The borders of column groups can be set to a different color using the `columnGroupBorderColor` prop. In order for these borders to be visible, this prop must be used with `tableProps` and `verticalBorder` set to true.
2
+
3
+ The available colors for the border are Playbook's Text Colors, which can be found [here](https://playbook.powerapp.cloud/visual_guidelines/colors).
@@ -0,0 +1,58 @@
1
+ <% column_definitions = [
2
+ {
3
+ accessor: "year",
4
+ label: "Year",
5
+ cellAccessors: ["quarter", "month", "day"],
6
+ },
7
+ {
8
+ label: "Enrollment Data",
9
+ columns: [
10
+ {
11
+ label: "Enrollment Stats",
12
+ columns: [
13
+ {
14
+ accessor: "newEnrollments",
15
+ label: "New Enrollments",
16
+ },
17
+ {
18
+ accessor: "scheduledMeetings",
19
+ label: "Scheduled Meetings",
20
+ },
21
+ ],
22
+ },
23
+ ],
24
+ },
25
+ {
26
+ label: "Performance Data",
27
+ columns: [
28
+ {
29
+ label: "Completion Metrics",
30
+ columns: [
31
+ {
32
+ accessor: "completedClasses",
33
+ label: "Completed Classes",
34
+ },
35
+ {
36
+ accessor: "classCompletionRate",
37
+ label: "Class Completion Rate",
38
+ },
39
+ ],
40
+ },
41
+ {
42
+ label: "Attendance",
43
+ columns: [
44
+ {
45
+ accessor: "attendanceRate",
46
+ label: "Attendance Rate",
47
+ },
48
+ {
49
+ accessor: "scheduledMeetings",
50
+ label: "Scheduled Meetings",
51
+ },
52
+ ],
53
+ },
54
+ ],
55
+ },
56
+ ] %>
57
+
58
+ <%= pb_rails("advanced_table", props: { id: "beta_table_with_muilti_headers", table_data: @table_data, column_definitions: column_definitions, column_group_border_color: "text_lt_default", table_props: { vertical_border: true } }) %>
@@ -0,0 +1,3 @@
1
+ The borders of column groups can be set to a different color using the `column_group_border_color` prop. In order for these borders to be visible, this prop must be used with `table_props` and `vertical_border` set to true.
2
+
3
+ The available colors for the border are Playbook's Text Colors, which can be found [here](https://playbook.powerapp.cloud/visual_guidelines/colors).
@@ -0,0 +1,66 @@
1
+ import React from "react"
2
+ import AdvancedTable from '../../pb_advanced_table/_advanced_table'
3
+ import MOCK_DATA from "./advanced_table_mock_data.json"
4
+
5
+ const AdvancedTableExpandByDepth = (props) => {
6
+ const columnDefinitions = [
7
+ {
8
+ accessor: "year",
9
+ label: "Year",
10
+ cellAccessors: ["quarter", "month", "day"],
11
+ },
12
+ {
13
+ accessor: "newEnrollments",
14
+ label: "New Enrollments",
15
+ },
16
+ {
17
+ accessor: "scheduledMeetings",
18
+ label: "Scheduled Meetings",
19
+ },
20
+ {
21
+ accessor: "attendanceRate",
22
+ label: "Attendance Rate",
23
+ },
24
+ {
25
+ accessor: "completedClasses",
26
+ label: "Completed Classes",
27
+ },
28
+ {
29
+ accessor: "classCompletionRate",
30
+ label: "Class Completion Rate",
31
+ },
32
+ {
33
+ accessor: "graduatedStudents",
34
+ label: "Graduated Students",
35
+ },
36
+ ]
37
+
38
+ const expandByDepth = [
39
+ {
40
+ depth: 0,
41
+ label: "Year",
42
+ },
43
+ {
44
+ depth: 1,
45
+ label: "Quarter",
46
+ },
47
+ {
48
+ depth: 2,
49
+ label: "Month",
50
+ }
51
+ ]
52
+
53
+ return (
54
+ <div>
55
+ <AdvancedTable
56
+ columnDefinitions={columnDefinitions}
57
+ expandByDepth={expandByDepth}
58
+ onExpandByDepthClick={(depth, rows) => {console.log(depth, rows)}}
59
+ tableData={MOCK_DATA}
60
+ {...props}
61
+ />
62
+ </div>
63
+ )
64
+ }
65
+
66
+ export default AdvancedTableExpandByDepth
@@ -0,0 +1,10 @@
1
+ The `expandByDepth` prop enables users to expand or collapse table rows by specific levels of nesting. When provided, it renders a dropdown that appears when the toggle icon in the header is clicked.
2
+
3
+ `expandByDepth` accepts an array of objects, where each object defines the depth level to target and the label to display in the dropdown. When a user selects an option:
4
+
5
+ **Expanding a depth**: Expands all rows at the selected depth AND all parent levels above it (if parent levels were closed), ensuring nested content is visible.
6
+
7
+ **Collapsing a depth**: Only collapses rows at the selected depth, keeping parent rows expanded for context.
8
+
9
+ If you want to attach further logic to each option click, the **optional** `onExpandByDepthClick` prop can be used. This click event provides 2 arguments that can be hooked into: the depth level of the clicked item AND all flattened table rows. Any additional functionality provided through this onClick will be applied in addition to the default.
10
+
@@ -0,0 +1,58 @@
1
+ import React from "react"
2
+ import AdvancedTable from '../../pb_advanced_table/_advanced_table'
3
+ import MOCK_DATA from "./advanced_table_mock_data.json"
4
+
5
+ const AdvancedTableStickyColumns = (props) => {
6
+ const columnDefinitions = [
7
+ {
8
+ accessor: "year",
9
+ label: "Year",
10
+ id: "year",
11
+ cellAccessors: ["quarter", "month", "day"],
12
+ },
13
+ {
14
+ accessor: "newEnrollments",
15
+ label: "New Enrollments",
16
+ id: "newEnrollments",
17
+ },
18
+ {
19
+ accessor: "scheduledMeetings",
20
+ label: "Scheduled Meetings",
21
+ id: "scheduledMeetings",
22
+ },
23
+ {
24
+ accessor: "attendanceRate",
25
+ label: "Attendance Rate",
26
+ id: "attendanceRate",
27
+ },
28
+ {
29
+ accessor: "completedClasses",
30
+ label: "Completed Classes",
31
+ id: "completedClasses",
32
+ },
33
+ {
34
+ accessor: "classCompletionRate",
35
+ label: "Class Completion Rate",
36
+ id: "classCompletionRate",
37
+ },
38
+ {
39
+ accessor: "graduatedStudents",
40
+ label: "Graduated Students",
41
+ id: "graduatedStudents",
42
+ },
43
+ ]
44
+
45
+ return (
46
+ <div>
47
+ <AdvancedTable
48
+ columnDefinitions={columnDefinitions}
49
+ responsive="none"
50
+ stickyLeftColumn={["year"]}
51
+ tableData={MOCK_DATA}
52
+ {...props}
53
+ />
54
+ </div>
55
+ )
56
+ }
57
+
58
+ export default AdvancedTableStickyColumns
@@ -0,0 +1,6 @@
1
+ To render sticky columns for the Advanced Table, you can use the `stickyLeftColumn` prop. This prop expects an array of the column ids you want to be sticky.
2
+
3
+ To achieve this:
4
+ - Make sure to provide an id for each column via columnDefinitions as shown below. Id can be any string.
5
+ - One or multiple columns can be made sticky, it is recommended to set the ids within `stickyLeftColumn` in the order in which the columns are rendered.
6
+ - It is recommended to set `responsive` to none when using `stickyLeftColumn` since responsive just makes the first column sticky and the slightly different styling for `responsive` and `stickyLeftColumn` may override each other in unexpected ways.
@@ -0,0 +1,64 @@
1
+ import React from "react"
2
+ import AdvancedTable from '../../pb_advanced_table/_advanced_table'
3
+ import MOCK_DATA from "./advanced_table_mock_data.json"
4
+
5
+ const AdvancedTableStickyColumnsAndHeader = (props) => {
6
+ const columnDefinitions = [
7
+ {
8
+ accessor: "year",
9
+ label: "Year",
10
+ id: "year",
11
+ cellAccessors: ["quarter", "month", "day"],
12
+ },
13
+ {
14
+ accessor: "newEnrollments",
15
+ label: "New Enrollments",
16
+ id: "newEnrollments",
17
+ },
18
+ {
19
+ accessor: "scheduledMeetings",
20
+ label: "Scheduled Meetings",
21
+ id: "scheduledMeetings",
22
+ },
23
+ {
24
+ accessor: "attendanceRate",
25
+ label: "Attendance Rate",
26
+ id: "attendanceRate",
27
+ },
28
+ {
29
+ accessor: "completedClasses",
30
+ label: "Completed Classes",
31
+ id: "completedClasses",
32
+ },
33
+ {
34
+ accessor: "classCompletionRate",
35
+ label: "Class Completion Rate",
36
+ id: "classCompletionRate",
37
+ },
38
+ {
39
+ accessor: "graduatedStudents",
40
+ label: "Graduated Students",
41
+ id: "graduatedStudents",
42
+ },
43
+ ]
44
+
45
+ const tableProps = {
46
+ sticky: true
47
+ }
48
+
49
+ return (
50
+ <div>
51
+ <AdvancedTable
52
+ columnDefinitions={columnDefinitions}
53
+ maxHeight="xs"
54
+ responsive="none"
55
+ stickyLeftColumn={["year"]}
56
+ tableData={MOCK_DATA}
57
+ tableProps={tableProps}
58
+ {...props}
59
+ />
60
+ </div>
61
+ )
62
+ }
63
+
64
+ export default AdvancedTableStickyColumnsAndHeader
@@ -0,0 +1,8 @@
1
+ To achieve a sticky header AND sticky columns together, in addition to the `stickyLeftColumn` logic outlined above, you can:
2
+
3
+ - Set `sticky: true` via `tableProps`
4
+ - Give the AdvancedTable a `maxHeight` using our [Max Height](https://playbook.powerapp.cloud/visual_guidelines/max_height) global prop.
5
+
6
+ **NOTE**: This behavior requires a `maxHeight` to work. The header is sticky within the table container, allowing for it to work along with the column stickiness.
7
+
8
+ Expand the table above to see this in action.
@@ -0,0 +1,55 @@
1
+ import React from "react"
2
+ import AdvancedTable from '../../pb_advanced_table/_advanced_table'
3
+ import MOCK_DATA from "./advanced_table_mock_data.json"
4
+
5
+ const AdvancedTableStickyHeader = (props) => {
6
+ const columnDefinitions = [
7
+ {
8
+ accessor: "year",
9
+ label: "Year",
10
+ cellAccessors: ["quarter", "month", "day"],
11
+ },
12
+ {
13
+ accessor: "newEnrollments",
14
+ label: "New Enrollments",
15
+ },
16
+ {
17
+ accessor: "scheduledMeetings",
18
+ label: "Scheduled Meetings",
19
+ },
20
+ {
21
+ accessor: "attendanceRate",
22
+ label: "Attendance Rate",
23
+ },
24
+ {
25
+ accessor: "completedClasses",
26
+ label: "Completed Classes",
27
+ },
28
+ {
29
+ accessor: "classCompletionRate",
30
+ label: "Class Completion Rate",
31
+ },
32
+ {
33
+ accessor: "graduatedStudents",
34
+ label: "Graduated Students",
35
+ },
36
+ ]
37
+
38
+ const tableProps = {
39
+ sticky: true
40
+ }
41
+
42
+ return (
43
+ <div>
44
+ <AdvancedTable
45
+ columnDefinitions={columnDefinitions}
46
+ responsive="none"
47
+ tableData={MOCK_DATA}
48
+ tableProps={tableProps}
49
+ {...props}
50
+ />
51
+ </div>
52
+ )
53
+ }
54
+
55
+ export default AdvancedTableStickyHeader
@@ -0,0 +1,3 @@
1
+ The `TableProps` prop can also be used to render a sticky header for the Advanced Table.
2
+
3
+ This doc example showcases how to set a sticky header for a nonresponsive table (see the `responsive` prop set to "none"). To achieve sticky header AND responsive functionality, see the "Sticky Header for Responsive Table" doc example below.
@@ -0,0 +1,33 @@
1
+ <% column_definitions = [
2
+ {
3
+ accessor: "year",
4
+ label: "Year",
5
+ cellAccessors: ["quarter", "month", "day"],
6
+ },
7
+ {
8
+ accessor: "newEnrollments",
9
+ label: "New Enrollments",
10
+ },
11
+ {
12
+ accessor: "scheduledMeetings",
13
+ label: "Scheduled Meetings",
14
+ },
15
+ {
16
+ accessor: "attendanceRate",
17
+ label: "Attendance Rate",
18
+ },
19
+ {
20
+ accessor: "completedClasses",
21
+ label: "Completed Classes",
22
+ },
23
+ {
24
+ accessor: "classCompletionRate",
25
+ label: "Class Completion Rate",
26
+ },
27
+ {
28
+ accessor: "graduatedStudents",
29
+ label: "Graduated Students",
30
+ }
31
+ ] %>
32
+
33
+ <%= pb_rails("advanced_table", props: { id: "sticky_header_table", table_data: @table_data, column_definitions: column_definitions, responsive: "none", table_props: { sticky: true }}) %>
@@ -0,0 +1,3 @@
1
+ The `table_props` prop can also be used to render a sticky header for the Advanced Table.
2
+
3
+ This doc example showcases how to set a sticky header for a nonresponsive table (see the `responsive` prop set to "none"). To achieve sticky header AND responsive functionality, see the "[Sticky Header for Responsive Table](https://playbook.powerapp.cloud/kits/advanced_table/react#sticky-header-for-responsive-table)" doc example below.
@@ -30,4 +30,4 @@
30
30
  }
31
31
  ] %>
32
32
 
33
- <%= pb_rails("advanced_table", props: { id: "table_props_table", table_data: @table_data, column_definitions: column_definitions, responsive: "none", table_props: { container: false, sticky: true }}) %>
33
+ <%= pb_rails("advanced_table", props: { id: "table_props_table", table_data: @table_data, column_definitions: column_definitions, table_props: { vertical_border: true, container: false }}) %>
@@ -37,14 +37,13 @@ const AdvancedTableTableProps = (props) => {
37
37
 
38
38
  const tableProps = {
39
39
  container: false,
40
- sticky: true
40
+ verticalBorder: true
41
41
  }
42
42
 
43
43
  return (
44
44
  <div>
45
45
  <AdvancedTable
46
46
  columnDefinitions={columnDefinitions}
47
- responsive="none"
48
47
  tableData={MOCK_DATA}
49
48
  tableProps={tableProps}
50
49
  {...props}
@@ -1,3 +1,3 @@
1
- This kit uses the [Table kit](https://playbook.powerapp.cloud/kits/table) under the hood which comes with its own set of props. If you want to apply certain Table props to that underlying kit, you can do so by using the optional `table_props` prop. This prop must be an object that contains valid Table props. For a full list of Table props, see [here](https://playbook.powerapp.cloud/kits/table).
1
+ This kit uses the [Table kit](https://playbook.powerapp.cloud/kits/table/react) under the hood which comes with its own set of props. If you want to apply certain Table props to that underlying kit, you can do so by using the optional `table_props` prop. This prop must be an object that contains valid Table props. For a full list of Table props, see [here](https://playbook.powerapp.cloud/kits/table/react).
2
2
 
3
- This doc example showcases how to set a sticky header for a nonresponsive table. To achieve sticky header AND responsive functionality, see the ["Table Props Sticky Header"](https://playbook.powerapp.cloud/kits/advanced_table#table-props-sticky-header) doc example below.
3
+ This doc example showcases the use of two table props, including how to render the vertical borders between columns.
@@ -1,3 +1,3 @@
1
1
  This kit uses the [Table kit](https://playbook.powerapp.cloud/kits/table/react) under the hood which comes with its own set of props. If you want to apply certain Table props to that underlying kit, you can do so by using the optional `tableProps` prop. This prop must be an object that contains valid Table props. For a full list of Table props, see [here](https://playbook.powerapp.cloud/kits/table/react).
2
2
 
3
- This doc example showcases how to set a sticky header for a nonresponsive table. To achieve sticky header AND responsive functionality, see the ["Table Props Sticky Header"](https://playbook.powerapp.cloud/kits/advanced_table/react#table-props-sticky-header) doc example below.
3
+ This doc example showcases the use of two table props, including how to render the vertical borders between columns.
@@ -1,3 +1,7 @@
1
- Create a sticky header that works for responsive Advanced Tables by setting `sticky: true` via `table_props` and giving the AdvancedTable a `max_height` using our [Max Height](https://playbook.powerapp.cloud/visual_guidelines/max_height) global prop. This behavior requires a `max_height` to work. The header is sticky within the table container, allowing for it to work along with the first column stickiness of a responsive table on smaller screen sizes.
1
+ Create a sticky header that works for responsive Advanced Tables by setting `sticky: true` via `table_props` and giving the AdvancedTable a `max_height` using our [Max Height](https://playbook.powerapp.cloud/visual_guidelines/max_height) global prop.
2
2
 
3
- A sticky header on a nonresponsive table is demonstrated in the ["Table Props"](https://playbook.powerapp.cloud/kits/advanced_table#table-props) doc example above.
3
+ **NOTE**: This behavior requires a `max_height` to work. The header is sticky within the table container, allowing for it to work along with the first column stickiness of a responsive table on smaller screen sizes.
4
+
5
+ Expand the table above to see this in action.
6
+
7
+ A sticky header on a nonresponsive table is demonstrated in the ["Sticky Header"](https://playbook.powerapp.cloud/kits/advanced_table#sticky-header) doc example above.
@@ -1,3 +1,7 @@
1
- Create a sticky header that works for responsive Advanced Tables by setting `sticky: true` via `tableProps` and giving the AdvancedTable a `maxHeight` using our [Max Height](https://playbook.powerapp.cloud/visual_guidelines/max_height) global prop. This behavior requires a `maxHeight` to work. The header is sticky within the table container, allowing for it to work along with the first column stickiness of a responsive table on smaller screen sizes.
1
+ Create a sticky header that works for responsive Advanced Tables by setting `sticky: true` via `tableProps` and giving the AdvancedTable a `maxHeight` using our [Max Height](https://playbook.powerapp.cloud/visual_guidelines/max_height) global prop.
2
2
 
3
- A sticky header on a nonresponsive table is demonstrated in the ["Table Props"](https://playbook.powerapp.cloud/kits/advanced_table/react#table-props) doc example above.
3
+ **NOTE**: This behavior requires a `maxHeight` to work. The header is sticky within the table container, allowing for it to work along with the first column stickiness of a responsive table on smaller screen sizes.
4
+
5
+ Expand the table above to see this in action.
6
+
7
+ A sticky header on a nonresponsive table is demonstrated in the ["Sticky Header"](https://playbook.powerapp.cloud/kits/advanced_table/react#sticky-header) doc example above.