playbook_ui 15.4.0.pre.alpha.testingseparation12413 → 15.4.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 (243) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_advanced_table/Components/RegularTableView.tsx +1 -2
  3. data/app/pb_kits/playbook/pb_advanced_table/Hooks/useTableState.ts +0 -15
  4. data/app/pb_kits/playbook/pb_advanced_table/Utilities/RowUtils.ts +1 -1
  5. data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.scss +4 -4
  6. data/app/pb_kits/playbook/pb_advanced_table/advanced_table.test.jsx +5 -68
  7. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_background_control_rails.html.erb +0 -4
  8. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_background_control_rails.md +1 -1
  9. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_border_color.md +1 -1
  10. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_border_color_rails.md +1 -1
  11. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling.jsx +1 -4
  12. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling.md +0 -2
  13. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_column_headers.jsx +1 -1
  14. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_rails.html.erb +0 -1
  15. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_rails.md +0 -2
  16. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_fullscreen.jsx +1 -3
  17. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_infinite_scroll.jsx +1 -1
  18. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_editing.jsx +1 -3
  19. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_padding_control.jsx +1 -9
  20. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_padding_control.md +1 -1
  21. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pagination_with_props.jsx +1 -4
  22. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pagination_with_props.md +2 -3
  23. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_row_styling.jsx +1 -2
  24. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_columns_and_header.md +1 -1
  25. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_sticky_header_rails.md +1 -1
  26. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_sticky_header_react.md +1 -1
  27. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_with_custom_header_multi_header.jsx +0 -16
  28. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_with_custom_header_rails.html.erb +1 -1
  29. data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +0 -1
  30. data/app/pb_kits/playbook/pb_advanced_table/flat_advanced_table.js +2 -2
  31. data/app/pb_kits/playbook/pb_advanced_table/index.js +7 -7
  32. data/app/pb_kits/playbook/pb_advanced_table/scss_partials/advanced_table_sticky_mixin.scss +2 -2
  33. data/app/pb_kits/playbook/pb_advanced_table/table_header.rb +20 -90
  34. data/app/pb_kits/playbook/pb_advanced_table/table_row.rb +3 -32
  35. data/app/pb_kits/playbook/pb_background/background.html.erb +2 -10
  36. data/app/pb_kits/playbook/pb_background/docs/_background_category.md +1 -1
  37. data/app/pb_kits/playbook/pb_badge/_badge.tsx +1 -4
  38. data/app/pb_kits/playbook/pb_badge/badge.test.js +0 -13
  39. data/app/pb_kits/playbook/pb_card/docs/_card_background.md +1 -1
  40. data/app/pb_kits/playbook/pb_card/docs/_card_header.md +1 -1
  41. data/app/pb_kits/playbook/pb_card/docs/_card_highlight.md +1 -1
  42. data/app/pb_kits/playbook/pb_card/docs/_card_light.md +1 -1
  43. data/app/pb_kits/playbook/pb_currency/_currency.tsx +7 -20
  44. data/app/pb_kits/playbook/pb_currency/currency.rb +8 -35
  45. data/app/pb_kits/playbook/pb_currency/currency.test.js +0 -47
  46. data/app/pb_kits/playbook/pb_currency/docs/_currency_negative.html.erb +0 -10
  47. data/app/pb_kits/playbook/pb_currency/docs/_currency_negative.jsx +0 -10
  48. data/app/pb_kits/playbook/pb_currency/docs/_currency_variants.html.erb +1 -8
  49. data/app/pb_kits/playbook/pb_currency/docs/_currency_variants.jsx +1 -8
  50. data/app/pb_kits/playbook/pb_currency/docs/_description.md +2 -2
  51. data/app/pb_kits/playbook/pb_date_picker/date_picker.html.erb +11 -25
  52. data/app/pb_kits/playbook/pb_date_picker/date_picker.rb +0 -2
  53. data/app/pb_kits/playbook/pb_date_picker/date_picker_helper.ts +7 -60
  54. data/app/pb_kits/playbook/pb_date_picker/docs/example.yml +1 -2
  55. data/app/pb_kits/playbook/pb_date_picker/docs/index.js +1 -2
  56. data/app/pb_kits/playbook/pb_date_range_inline/_date_range_inline.tsx +13 -20
  57. data/app/pb_kits/playbook/pb_date_range_inline/date_range_inline.rb +4 -6
  58. data/app/pb_kits/playbook/pb_date_range_inline/date_range_inline.test.js +0 -17
  59. data/app/pb_kits/playbook/pb_date_range_inline/docs/_description.md +1 -1
  60. data/app/pb_kits/playbook/pb_date_range_inline/docs/example.yml +2 -3
  61. data/app/pb_kits/playbook/pb_date_range_inline/docs/index.js +0 -1
  62. data/app/pb_kits/playbook/pb_date_stacked/_date_stacked.tsx +4 -6
  63. data/app/pb_kits/playbook/pb_date_stacked/date_stacked.html.erb +3 -2
  64. data/app/pb_kits/playbook/pb_date_stacked/date_stacked.rb +5 -11
  65. data/app/pb_kits/playbook/pb_date_stacked/date_stacked.test.js +9 -26
  66. data/app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_default.html.erb +1 -1
  67. data/app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_default.jsx +1 -1
  68. data/app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_not_current_year.html.erb +5 -0
  69. data/app/pb_kits/playbook/pb_date_stacked/docs/{_date_stacked_current_year.jsx → _date_stacked_not_current_year.jsx} +5 -6
  70. data/app/pb_kits/playbook/pb_date_stacked/docs/_description.md +1 -1
  71. data/app/pb_kits/playbook/pb_date_stacked/docs/example.yml +2 -2
  72. data/app/pb_kits/playbook/pb_date_stacked/docs/index.js +1 -1
  73. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_compound_components.html.erb +2 -2
  74. data/app/pb_kits/playbook/pb_distribution_bar/docs/_distribution_bar_custom_colors.md +1 -1
  75. data/app/pb_kits/playbook/pb_dropdown/_dropdown.scss +0 -1
  76. data/app/pb_kits/playbook/pb_dropdown/_dropdown.tsx +6 -111
  77. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_active_style_options_react.md +1 -1
  78. data/app/pb_kits/playbook/pb_dropdown/docs/example.yml +0 -5
  79. data/app/pb_kits/playbook/pb_dropdown/docs/index.js +1 -5
  80. data/app/pb_kits/playbook/pb_dropdown/dropdown.test.jsx +2 -148
  81. data/app/pb_kits/playbook/pb_dropdown/index.js +1 -1
  82. data/app/pb_kits/playbook/pb_empty_state/docs/_empty_state_alignment.jsx +1 -2
  83. data/app/pb_kits/playbook/pb_empty_state/docs/_empty_state_default.jsx +1 -2
  84. data/app/pb_kits/playbook/pb_empty_state/docs/_empty_state_orientation.jsx +1 -2
  85. data/app/pb_kits/playbook/pb_empty_state/docs/_empty_state_size.jsx +1 -2
  86. data/app/pb_kits/playbook/pb_filter/docs/_filter_max_width.md +1 -1
  87. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.tsx +9 -31
  88. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_auto_close.html.erb +1 -15
  89. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_multi_line.html.erb +8 -9
  90. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_positions.html.erb +10 -11
  91. data/app/pb_kits/playbook/pb_flex/_flex_item.tsx +5 -12
  92. data/app/pb_kits/playbook/pb_flex/docs/_flex_item_example.jsx +0 -1
  93. data/app/pb_kits/playbook/pb_form/pb_form_validation.js +11 -44
  94. data/app/pb_kits/playbook/pb_form_pill/_form_pill.tsx +1 -1
  95. data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_truncated_text_rails.md +1 -1
  96. data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_truncated_text_react.md +1 -1
  97. data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_wrapped.jsx +1 -4
  98. data/app/pb_kits/playbook/pb_icon/docs/_icon_color.md +1 -1
  99. data/app/pb_kits/playbook/pb_icon_circle/docs/_icon_circle_color.md +1 -1
  100. data/app/pb_kits/playbook/pb_icon_stat_value/docs/_icon_stat_value_color.html.erb +14 -7
  101. data/app/pb_kits/playbook/pb_icon_stat_value/docs/_icon_stat_value_color.jsx +15 -6
  102. data/app/pb_kits/playbook/pb_layout/docs/_layout_collection.md +1 -1
  103. data/app/pb_kits/playbook/pb_loading_inline/docs/_loading_inline_variant.jsx +1 -1
  104. data/app/pb_kits/playbook/pb_nav/_item.tsx +4 -18
  105. data/app/pb_kits/playbook/pb_nav/_nav.scss +5 -30
  106. data/app/pb_kits/playbook/pb_nav/_nav_item.test.js +0 -192
  107. data/app/pb_kits/playbook/pb_nav/_vertical_nav.scss +1 -1
  108. data/app/pb_kits/playbook/pb_nav/docs/_collapsible_nav_item_spacing.md +1 -1
  109. data/app/pb_kits/playbook/pb_nav/docs/_nav_with_spacing_control.md +1 -1
  110. data/app/pb_kits/playbook/pb_nav/docs/example.yml +0 -4
  111. data/app/pb_kits/playbook/pb_nav/docs/index.js +1 -3
  112. data/app/pb_kits/playbook/pb_nav/item.html.erb +4 -6
  113. data/app/pb_kits/playbook/pb_nav/item.rb +2 -11
  114. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_layout.md +1 -1
  115. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_description.md +1 -3
  116. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_colors.jsx +1 -1
  117. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_default.jsx +1 -1
  118. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_height.jsx +1 -1
  119. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_horizontal.jsx +1 -1
  120. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_legend.jsx +1 -1
  121. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_legend_non_clickable.jsx +2 -1
  122. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_legend_position.html.erb +1 -1
  123. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_legend_position.jsx +1 -1
  124. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_negative_numbers.jsx +1 -1
  125. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_secondary_y_axis.jsx +1 -1
  126. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_spline.jsx +2 -1
  127. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_stacked.jsx +2 -1
  128. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_description.md +1 -3
  129. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_block_content.jsx +1 -2
  130. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_color_overrides.jsx +1 -2
  131. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_custom_tooltip.jsx +1 -1
  132. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_custom_tooltip.md +1 -2
  133. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_data_legend_position.jsx +1 -2
  134. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_data_with_labels.jsx +1 -1
  135. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_data_with_legend.jsx +1 -1
  136. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_default.jsx +1 -1
  137. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_inner_sizes.jsx +1 -1
  138. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_live_data.jsx +1 -2
  139. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_rounded.jsx +1 -1
  140. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_with_title.jsx +1 -1
  141. data/app/pb_kits/playbook/pb_pb_gauge_chart/docs/_description.md +1 -3
  142. data/app/pb_kits/playbook/pb_pb_gauge_chart/docs/_pb_gauge_chart_color.jsx +1 -1
  143. data/app/pb_kits/playbook/pb_pb_gauge_chart/docs/_pb_gauge_chart_color.md +2 -2
  144. data/app/pb_kits/playbook/pb_pb_gauge_chart/docs/_pb_gauge_chart_complex.jsx +1 -2
  145. data/app/pb_kits/playbook/pb_pb_gauge_chart/docs/_pb_gauge_chart_full_circle.jsx +1 -2
  146. data/app/pb_kits/playbook/pb_pb_gauge_chart/docs/_pb_gauge_chart_height.jsx +1 -2
  147. data/app/pb_kits/playbook/pb_pb_gauge_chart/docs/_pb_gauge_chart_min_max.jsx +1 -2
  148. data/app/pb_kits/playbook/pb_pb_gauge_chart/docs/_pb_gauge_chart_units.jsx +1 -2
  149. data/app/pb_kits/playbook/pb_pb_line_graph/docs/_description.md +1 -3
  150. data/app/pb_kits/playbook/pb_pb_line_graph/docs/_pb_line_graph_colors.jsx +1 -1
  151. data/app/pb_kits/playbook/pb_pb_line_graph/docs/_pb_line_graph_legend_position.html.erb +1 -1
  152. data/app/pb_kits/playbook/pb_phone_number_input/_phone_number_input.tsx +17 -110
  153. data/app/pb_kits/playbook/pb_pill/docs/_description.md +1 -1
  154. data/app/pb_kits/playbook/pb_popover/_popover.tsx +34 -69
  155. data/app/pb_kits/playbook/pb_popover/docs/example.yml +0 -1
  156. data/app/pb_kits/playbook/pb_popover/docs/index.js +0 -1
  157. data/app/pb_kits/playbook/pb_popover/popover.test.js +0 -80
  158. data/app/pb_kits/playbook/pb_radio/docs/_radio_react_hook.jsx +1 -3
  159. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_description.md +1 -1
  160. data/app/pb_kits/playbook/pb_section_separator/docs/_description.md +1 -1
  161. data/app/pb_kits/playbook/pb_select/docs/_select_react_hook.jsx +1 -3
  162. data/app/pb_kits/playbook/pb_selectable_card/_selectable_card.scss +0 -29
  163. data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_border_radius_rails.md +1 -1
  164. data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_border_radius_react.md +1 -1
  165. data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_layout.md +1 -1
  166. data/app/pb_kits/playbook/pb_table/docs/_table_side_highlight.md +1 -1
  167. data/app/pb_kits/playbook/pb_table/docs/_table_sm.md +1 -1
  168. data/app/pb_kits/playbook/pb_table/docs/example.yml +0 -2
  169. data/app/pb_kits/playbook/pb_table/docs/index.js +0 -1
  170. data/app/pb_kits/playbook/pb_text_input/text_input.rb +2 -2
  171. data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_sizing.jsx +1 -4
  172. data/app/pb_kits/playbook/pb_typeahead/_typeahead.scss +0 -7
  173. data/app/pb_kits/playbook/pb_typeahead/_typeahead.test.jsx +1 -105
  174. data/app/pb_kits/playbook/pb_typeahead/_typeahead.tsx +9 -23
  175. data/app/pb_kits/playbook/pb_typeahead/components/MultiValue.tsx +1 -33
  176. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_default_options.html.erb +1 -67
  177. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_default_value.jsx +6 -68
  178. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_react_hook.jsx +1 -2
  179. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_truncated_text.md +1 -1
  180. data/app/pb_kits/playbook/pb_typeahead/docs/example.yml +0 -2
  181. data/app/pb_kits/playbook/pb_typeahead/docs/index.js +1 -2
  182. data/app/pb_kits/playbook/pb_user/docs/_user_font_options.jsx +1 -1
  183. data/dist/chunks/_line_graph-h5H-imfn.js +1 -0
  184. data/dist/chunks/_typeahead-U8AjZIIW.js +6 -0
  185. data/dist/chunks/_weekday_stacked-c6_R08J-.js +37 -0
  186. data/dist/chunks/componentRegistry-DzmmLR2x.js +1 -0
  187. data/dist/chunks/lib-CGxXTQ75.js +29 -0
  188. data/dist/chunks/pb_form_validation-DebqlUKZ.js +1 -0
  189. data/dist/chunks/vendor.js +1 -37
  190. data/dist/playbook-doc.js +19 -0
  191. data/dist/playbook-rails-react-bindings.js +1 -1
  192. data/dist/playbook-rails.js +1 -1
  193. data/dist/playbook.css +1 -1
  194. data/lib/playbook/version.rb +2 -2
  195. metadata +12 -51
  196. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_with_custom_header_multi_header_rails.html.erb +0 -104
  197. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_with_custom_header_multi_header_rails.md +0 -1
  198. data/app/pb_kits/playbook/pb_currency/docs/_currency_abbreviated.md +0 -1
  199. data/app/pb_kits/playbook/pb_currency/docs/_currency_matching_decimals_rails.md +0 -1
  200. data/app/pb_kits/playbook/pb_currency/docs/_currency_matching_decimals_react.md +0 -1
  201. data/app/pb_kits/playbook/pb_currency/docs/_currency_negative.md +0 -1
  202. data/app/pb_kits/playbook/pb_currency/docs/_currency_no_symbol_rails.md +0 -1
  203. data/app/pb_kits/playbook/pb_currency/docs/_currency_no_symbol_react.md +0 -1
  204. data/app/pb_kits/playbook/pb_currency/docs/_currency_variants.md +0 -1
  205. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_and_dropdown_range.jsx +0 -38
  206. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_and_dropdown_range.md +0 -14
  207. data/app/pb_kits/playbook/pb_date_range_inline/docs/_date_range_inline_show_current_year.html.erb +0 -4
  208. data/app/pb_kits/playbook/pb_date_range_inline/docs/_date_range_inline_show_current_year.jsx +0 -43
  209. data/app/pb_kits/playbook/pb_date_range_inline/docs/_date_range_inline_show_current_year.md +0 -1
  210. data/app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_current_year.html.erb +0 -12
  211. data/app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_current_year.md +0 -1
  212. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick.jsx +0 -18
  213. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick.md +0 -4
  214. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_default_dates.jsx +0 -18
  215. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_default_dates.md +0 -1
  216. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_range_end.jsx +0 -19
  217. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_range_end.md +0 -1
  218. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_with_date_pickers.jsx +0 -38
  219. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_with_date_pickers.md +0 -14
  220. data/app/pb_kits/playbook/pb_dropdown/quickpick/index.ts +0 -60
  221. data/app/pb_kits/playbook/pb_nav/docs/_horizontal_nav_disabled.html.erb +0 -21
  222. data/app/pb_kits/playbook/pb_nav/docs/_horizontal_nav_disabled.jsx +0 -113
  223. data/app/pb_kits/playbook/pb_nav/docs/_horizontal_nav_disabled.md +0 -1
  224. data/app/pb_kits/playbook/pb_nav/docs/_vertical_nav_disabled.html.erb +0 -30
  225. data/app/pb_kits/playbook/pb_nav/docs/_vertical_nav_disabled.jsx +0 -117
  226. data/app/pb_kits/playbook/pb_nav/docs/_vertical_nav_disabled.md +0 -1
  227. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_default.md +0 -1
  228. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_legend_position.md +0 -11
  229. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_default.md +0 -1
  230. data/app/pb_kits/playbook/pb_pb_gauge_chart/docs/_pb_gauge_chart_default.md +0 -1
  231. data/app/pb_kits/playbook/pb_pb_line_graph/docs/_pb_line_graph_default.md +0 -1
  232. data/app/pb_kits/playbook/pb_popover/docs/_popover_append_to.jsx +0 -71
  233. data/app/pb_kits/playbook/pb_popover/docs/_popover_append_to_react.md +0 -1
  234. data/app/pb_kits/playbook/pb_table/docs/_table_with_dynamic_collapsible.html.erb +0 -63
  235. data/app/pb_kits/playbook/pb_table/docs/_table_with_dynamic_collapsible.jsx +0 -89
  236. data/app/pb_kits/playbook/pb_table/docs/_table_with_dynamic_collapsible_rails.md +0 -4
  237. data/app/pb_kits/playbook/pb_table/docs/_table_with_dynamic_collapsible_react.md +0 -3
  238. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_custom_options.html.erb +0 -64
  239. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_custom_options.jsx +0 -70
  240. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_custom_options.md +0 -1
  241. data/dist/chunks/_typeahead-BUTLC28y.js +0 -6
  242. data/dist/chunks/lib-CgpqUb6l.js +0 -29
  243. /data/app/pb_kits/playbook/pb_popover/docs/{_popover_append_to_rails.md → _popover_append_to.md} +0 -0
@@ -5,8 +5,6 @@ import Nav from './_nav'
5
5
  import NavItem from './_item'
6
6
 
7
7
  const navTestId = 'nav'
8
- const navDisabledTestId = 'nav-disabled'
9
- const itemDisabledTestId = 'item-disabled'
10
8
  const itemTestId = 'item'
11
9
  const activeTestBorderlessId = 'activeborderless'
12
10
  const activeTestBorderId = 'active'
@@ -107,193 +105,3 @@ test('should have a left icon', () => {
107
105
  const icon = kit.querySelector(".pb_custom_icon.pb_nav_list_item_icon_left")
108
106
  expect(icon).toBeInTheDocument()
109
107
  })
110
-
111
- test('should apply disabled class when disabled (horizontal nav)', () => {
112
- [
113
- "default",
114
- "subtle",
115
- "bold"
116
- ].forEach((variant) => {
117
- render(
118
- <Nav
119
- aria={{ label: navDisabledTestId }}
120
- className={navClassName}
121
- data={{ testid: navDisabledTestId }}
122
- orientation="horizontal"
123
- variant={variant}
124
- >
125
- <NavItem
126
- aria={{ label: `${itemDisabledTestId}-${variant}` }}
127
- className={itemClassName}
128
- data={{ testid: `${itemDisabledTestId}-${variant}` }}
129
- disabled
130
- link="#"
131
- text="Files"
132
- />
133
- </Nav>
134
- )
135
- const kit = screen.getByTestId(`${itemDisabledTestId}-${variant}`)
136
- expect(kit).toHaveClass('pb_nav_item_disabled')
137
- })
138
- })
139
-
140
- test('should set aria-disabled when disabled (horizontal nav)', () => {
141
- [
142
- "default",
143
- "subtle",
144
- "bold"
145
- ].forEach((variant) => {
146
- render(
147
- <Nav
148
- aria={{ label: navDisabledTestId }}
149
- className={navClassName}
150
- data={{ testid: navDisabledTestId }}
151
- orientation="horizontal"
152
- variant={variant}
153
- >
154
- <NavItem
155
- aria={{ label: `${itemDisabledTestId}-${variant}` }}
156
- className={itemClassName}
157
- data={{ testid: `${itemDisabledTestId}-${variant}` }}
158
- disabled
159
- link="#"
160
- text="Files"
161
- />
162
- </Nav>
163
- )
164
- const item = screen.getByTestId(`${itemDisabledTestId}-${variant}`)
165
- expect(item).toHaveAttribute('aria-disabled', 'true')
166
- })
167
- })
168
-
169
- test('should set tabIndex to -1 when disabled (horizontal nav)', () => {
170
- [
171
- "default",
172
- "subtle",
173
- "bold"
174
- ].forEach((variant) => {
175
- render(
176
- <Nav
177
- aria={{ label: navDisabledTestId }}
178
- className={navClassName}
179
- data={{ testid: navDisabledTestId }}
180
- orientation="horizontal"
181
- variant={variant}
182
- >
183
- <NavItem
184
- aria={{ label: `${itemDisabledTestId}-${variant}` }}
185
- className={itemClassName}
186
- data={{ testid: `${itemDisabledTestId}-${variant}` }}
187
- disabled
188
- link="#"
189
- text="Files"
190
- />
191
- </Nav>
192
- )
193
- const kit = screen.getByTestId(`${itemDisabledTestId}-${variant}`)
194
- expect(kit).toHaveAttribute('tabIndex', '-1')
195
- })
196
- })
197
-
198
- test('should prevent onClick when disabled', () => {
199
- const handleClick = jest.fn()
200
- render(
201
- <NavItem
202
- data={{ testid: 'disabled-click-item' }}
203
- disabled
204
- link="#"
205
- onClick={handleClick}
206
- text="Disabled Item"
207
- />
208
- )
209
- const kit = screen.getByTestId('disabled-click-item')
210
- kit.click()
211
- expect(handleClick).not.toHaveBeenCalled()
212
- })
213
-
214
- test('should apply disabled class when disabled (vertical nav)', () => {
215
- [
216
- "default",
217
- "subtle",
218
- "bold"
219
- ].forEach((variant) => {
220
- render(
221
- <Nav
222
- aria={{ label: navDisabledTestId }}
223
- className={navClassName}
224
- data={{ testid: navDisabledTestId }}
225
- orientation="vertical"
226
- variant={variant}
227
- >
228
- <NavItem
229
- aria={{ label: `${itemDisabledTestId}-${variant}` }}
230
- className={itemClassName}
231
- data={{ testid: `${itemDisabledTestId}-${variant}` }}
232
- disabled
233
- link="#"
234
- text="Files"
235
- />
236
- </Nav>
237
- )
238
- const kit = screen.getByTestId(`${itemDisabledTestId}-${variant}`)
239
- expect(kit).toHaveClass('pb_nav_item_disabled')
240
- })
241
- })
242
-
243
- test('should set aria-disabled when disabled (vertical nav)', () => {
244
- [
245
- "default",
246
- "subtle",
247
- "bold"
248
- ].forEach((variant) => {
249
- render(
250
- <Nav
251
- aria={{ label: navDisabledTestId }}
252
- className={navClassName}
253
- data={{ testid: navDisabledTestId }}
254
- orientation="vertical"
255
- variant={variant}
256
- >
257
- <NavItem
258
- aria={{ label: `${itemDisabledTestId}-${variant}` }}
259
- className={itemClassName}
260
- data={{ testid: `${itemDisabledTestId}-${variant}` }}
261
- disabled
262
- link="#"
263
- text="Files"
264
- />
265
- </Nav>
266
- )
267
- const item = screen.getByTestId(`${itemDisabledTestId}-${variant}`)
268
- expect(item).toHaveAttribute('aria-disabled', 'true')
269
- })
270
- })
271
-
272
- test('should set tabIndex to -1 when disabled (vertical nav)', () => {
273
- [
274
- "default",
275
- "subtle",
276
- "bold"
277
- ].forEach((variant) => {
278
- render(
279
- <Nav
280
- aria={{ label: navDisabledTestId }}
281
- className={navClassName}
282
- data={{ testid: navDisabledTestId }}
283
- orientation="vertical"
284
- variant={variant}
285
- >
286
- <NavItem
287
- aria={{ label: `${itemDisabledTestId}-${variant}` }}
288
- className={itemClassName}
289
- data={{ testid: `${itemDisabledTestId}-${variant}` }}
290
- disabled
291
- link="#"
292
- text="Files"
293
- />
294
- </Nav>
295
- )
296
- const kit = screen.getByTestId(`${itemDisabledTestId}-${variant}`)
297
- expect(kit).toHaveAttribute('tabIndex', '-1')
298
- })
299
- })
@@ -44,7 +44,7 @@ $selector: ".pb_nav_list";
44
44
  transition-duration: 0.15s;
45
45
  transition-timing-function: $bezier;
46
46
  @media (hover: hover) {
47
- &:hover:not(.pb_nav_item_disabled) {
47
+ &:hover {
48
48
  background-color: rgba($primary, 0.03);
49
49
  [class*="_icon"] {
50
50
  color: $primary;
@@ -1 +1 @@
1
- The `itemSpacing` prop can optionally be applied to the `Nav` parent element and accepts an object through which any of our Spacing ([padding](https://playbook.powerapp.cloud/global_props/padding), [margin](https://playbook.powerapp.cloud/global_props/margin)) global prop values can be passed as an object. All spacing values passed to `itemSpacing` will be applied to all navItems within the nav. Spacing (padding, margin) global props can still be used on nested navItems in conjunction with `itenSpacing` on the Nav for customized control. Any Spacing (padding,margin) global props applied directly to a navItem will override any competing `itemSpacing` value.
1
+ The `itemSpacing` prop can optionally be applied to the `Nav` parent element and accepts an object through which any of our [Spacing](https://playbook.powerapp.cloud/visual_guidelines/spacing) (padding, margin) global prop values can be passed as an object. All spacing values passed to `itemSpacing` will be applied to all navItems within the nav. Spacing (padding, margin) global props can still be used on nested navItems in conjunction with `itenSpacing` on the Nav for customized control. Any Spacing (padding,margin) global props applied directly to a navItem will override any competing `itemSpacing` value.
@@ -1 +1 @@
1
- All Nav variants' navItems accept our global Spacing ([padding](https://playbook.powerapp.cloud/global_props/padding), [margin](https://playbook.powerapp.cloud/global_props/margin)) props for custom spacing requirements. This example uses paddingY="xxs" and margin="none" on the bold variant to show this in action!
1
+ All Nav variants' navItems accept our [global Spacing](https://playbook.powerapp.cloud/visual_guidelines/spacing) (padding, margin) props for custom spacing requirements. This example uses paddingY="xxs" and margin="none" on the bold variant to show this in action!
@@ -18,8 +18,6 @@ examples:
18
18
  - subtle_horizontal_nav: Subtle Horizontal Nav
19
19
  - bold_horizontal_nav: Bold Horizontal Nav
20
20
  - horizontal_nav_extendedunderline: Horizontal Nav With Extended Underline
21
- - horizontal_nav_disabled: Horizontal Nav With Disabled Item
22
- - vertical_nav_disabled: Vertical Nav With Disabled Item
23
21
  - block_nav: Block
24
22
  - block_no_title_nav: Without Title
25
23
  - new_tab: Open in a New Tab
@@ -46,8 +44,6 @@ examples:
46
44
  - subtle_horizontal_nav: Subtle Horizontal Nav
47
45
  - bold_horizontal_nav: Bold Horizontal Nav
48
46
  - horizontal_nav_extendedunderline: Horizontal Nav With Extended Underline
49
- - horizontal_nav_disabled: Horizontal Nav With Disabled Item
50
- - vertical_nav_disabled: Vertical Nav With Disabled Item
51
47
  - block_nav: Block
52
48
  - block_no_title_nav: Without Title
53
49
  - new_tab: Open in a New Tab
@@ -20,6 +20,4 @@ export { default as NavWithFontControl } from "./_nav_with_font_control.jsx"
20
20
  export { default as NavWithSpacingControl } from "./_nav_with_spacing_control.jsx"
21
21
  export { default as CollapsibleNavItemSpacing } from "./_collapsible_nav_item_spacing.jsx"
22
22
  export { default as CollapsibleNavNoIcon } from "./_collapsible_nav_no_icon.jsx"
23
- export { default as HorizontalNavExtendedunderline } from './_horizontal_nav_extendedunderline.jsx'
24
- export { default as HorizontalNavDisabled } from './_horizontal_nav_disabled.jsx'
25
- export { default as VerticalNavDisabled } from './_vertical_nav_disabled.jsx'
23
+ export { default as HorizontalNavExtendedunderline } from './_horizontal_nav_extendedunderline.jsx'
@@ -24,12 +24,10 @@
24
24
  <% end %>
25
25
  <% else %>
26
26
  <%= pb_content_tag( object.tag,
27
- aria: { disabled: object.disabled },
28
- href: object.is_link ? object.link : nil,
29
- target: object.is_link ? object.target : nil,
30
- onclick: object.disabled ? "event.preventDefault(); event.stopPropagation(); return false;" : nil,
31
- onkeydown: object.disabled ? nil : (!object.is_link ? "if(event.key==='Enter'||event.key===' '){event.preventDefault(); this.click();}" : nil),
32
- tabindex: object.disabled ? -1 : (object.is_link ? nil : 0),
27
+ href: object.link && object.link,
28
+ target: object.link && object.target,
29
+ onkeydown: !object.link ? "if(event.key==='Enter'||event.key===' '){event.preventDefault(); this.click();}" : nil,
30
+ tabindex: object.link ? nil : 0,
33
31
  ) do %>
34
32
  <% if object.image_url %>
35
33
  <%= pb_rails("image", props: { url: object.image_url, classname: "pb_nav_img_wrapper" }) %>
@@ -4,7 +4,6 @@ module Playbook
4
4
  module PbNav
5
5
  class Item < Playbook::KitBase
6
6
  prop :active, type: Playbook::Props::Boolean, default: false
7
- prop :disabled, type: Playbook::Props::Boolean, default: false
8
7
  prop :font_size, type: Playbook::Props::Enum,
9
8
  values: %w[normal small],
10
9
  default: "normal"
@@ -27,7 +26,7 @@ module Playbook
27
26
  if collapsible
28
27
  "#{generate_classname('pb_nav_list_kit_item', active_class, highlighted_border_class)} #{generate_classname('pb_collapsible_nav_item', active_class, collapsible_trail_class)} #{font_size_class} #{font_weight_class} pb_nav_list_item_link_collapsible"
29
28
  else
30
- "#{generate_classname('pb_nav_list_kit_item', active_class, highlighted_border_class)} #{font_size_class} #{font_weight_class} pb_nav_list_item_link#{disabled_class}"
29
+ "#{generate_classname('pb_nav_list_kit_item', active_class, highlighted_border_class)} #{font_size_class} #{font_weight_class} pb_nav_list_item_link"
31
30
  end
32
31
  end
33
32
 
@@ -82,11 +81,7 @@ module Playbook
82
81
  end
83
82
 
84
83
  def tag
85
- link && !disabled ? "a" : "div"
86
- end
87
-
88
- def is_link
89
- link && !disabled
84
+ link ? "a" : "div"
90
85
  end
91
86
 
92
87
  def collapsible_icons
@@ -103,10 +98,6 @@ module Playbook
103
98
  active ? "active" : nil
104
99
  end
105
100
 
106
- def disabled_class
107
- disabled ? " pb_nav_item_disabled" : nil
108
- end
109
-
110
101
  def highlighted_border_class
111
102
  !highlighted_border && active ? "highlighted_border_none" : nil
112
103
  end
@@ -2,4 +2,4 @@ The optional `layout` prop accepts the `position` and `size` of the overlay as a
2
2
 
3
3
  The `position` key accepts `bottom` (default), `top`, `y` (for both top and bottom) `right`, `left`, or `x` (for both left and right), which sets the side(s) where the `color` overlay starts. The direction of the overlay is always toward the opposite side of the position. For example, the default position of `bottom` starts the overlay on the bottom edge of your container and extends it toward the opposite side: the top.
4
4
 
5
- The `size` value is `full` (100%) by default, but accepts our spacing tokens([padding](https://playbook.powerapp.cloud/global_props/padding), [margin](https://playbook.powerapp.cloud/global_props/margin)) or a percentage value as a string, and literally translates to how much of the container is covered by the overlay(s).
5
+ The `size` value is `full` (100%) by default, but accepts our [spacing tokens](https://playbook.powerapp.cloud/visual_guidelines/spacing) or a percentage value as a string, and literally translates to how much of the container is covered by the overlay(s).
@@ -1,5 +1,3 @@
1
- **In order to use this kit, 'highcharts' and 'highcharts-react-official' must be installed in your repo.**
2
-
3
- This kit is a wrapper around the Highcharts library. It applies styling and default settings but does NOT ship Highcharts. Once 'highcharts' and 'highcharts-react-official are installed into your repo, any prop or functionality provided by Highcharts can be used with this kit without requiring specific props from Playbook. The doc examples below showcase a few common usecases but are not a comprehensive list of all the functionalities possible.
1
+ This kit is a wrapper around the Highcharts library. It applies styling and default settings but does NOT ship Highcharts. In order to use this kit, 'highcharts' and 'highcharts-react-official' must be installed in your repo. Once done, any prop or functionality provided by Highcharts can be used with this kit without requiring specific props from Playbook. The doc examples below showcase a few common usecases but are not a comprehensive list of all the functionalities possible.
4
2
 
5
3
  See the [highcharts API docs](https://api.highcharts.com/highcharts/) for a comprehensive look at what is possible.
@@ -1,5 +1,5 @@
1
1
  import React from 'react'
2
- import PbBarGraph from '../_pb_bar_graph'
2
+ import { PbBarGraph } from 'playbook-ui'
3
3
  import colors from '../../tokens/exports/_colors.module.scss'
4
4
 
5
5
  const chartData = [{
@@ -1,5 +1,5 @@
1
1
  import React from 'react'
2
- import PbBarGraph from '../_pb_bar_graph'
2
+ import { PbBarGraph } from 'playbook-ui'
3
3
 
4
4
  const chartData = [{
5
5
  name: 'Installation',
@@ -1,5 +1,5 @@
1
1
  import React from 'react'
2
- import PbBarGraph from '../_pb_bar_graph'
2
+ import { PbBarGraph } from 'playbook-ui'
3
3
 
4
4
  const chartData = [{
5
5
  name: 'Number of Installations',
@@ -1,5 +1,5 @@
1
1
  import React from 'react'
2
- import PbBarGraph from '../_pb_bar_graph'
2
+ import { PbBarGraph } from 'playbook-ui'
3
3
 
4
4
 
5
5
  const chartOptions = {
@@ -1,5 +1,5 @@
1
1
  import React from 'react'
2
- import PbBarGraph from '../_pb_bar_graph'
2
+ import { PbBarGraph } from 'playbook-ui'
3
3
 
4
4
 
5
5
  const chartData = [{
@@ -1,5 +1,6 @@
1
1
  import React from 'react'
2
- import PbBarGraph from '../_pb_bar_graph'
2
+ import { PbBarGraph } from 'playbook-ui'
3
+
3
4
 
4
5
  const chartData = [{
5
6
  name: 'Number of Installations',
@@ -36,7 +36,7 @@
36
36
  }
37
37
  %>
38
38
 
39
- <%= pb_rails("title", props: {size: 4, text: "align | verticalAlign", padding_top: "sm", padding_bottom: "sm"})%>
39
+ <%= pb_rails("title", props: {size: 4, text: "align | vertical_align", padding_top: "sm", padding_bottom: "sm"})%>
40
40
 
41
41
 
42
42
  <%= pb_rails("pb_bar_graph", props: {options: chart_options_right}) %>
@@ -1,5 +1,5 @@
1
1
  import React from 'react'
2
- import PbBarGraph from '../_pb_bar_graph'
2
+ import { PbBarGraph } from 'playbook-ui'
3
3
  import Title from "../../pb_title/_title"
4
4
 
5
5
 
@@ -1,5 +1,5 @@
1
1
  import React from 'react'
2
- import PbBarGraph from '../_pb_bar_graph'
2
+ import { PbBarGraph } from 'playbook-ui'
3
3
 
4
4
 
5
5
  const chartData = [{
@@ -1,5 +1,5 @@
1
1
  import React from 'react'
2
- import PbBarGraph from '../_pb_bar_graph'
2
+ import { PbBarGraph } from 'playbook-ui'
3
3
 
4
4
  import colors from '../../tokens/exports/_colors.module.scss'
5
5
  import typography from '../../tokens/exports/_typography.module.scss'
@@ -1,5 +1,6 @@
1
1
  import React from 'react'
2
- import PbBarGraph from '../_pb_bar_graph'
2
+ import { PbBarGraph } from 'playbook-ui'
3
+
3
4
 
4
5
  const chartData = [{
5
6
  name: 'Number of Installations',
@@ -1,5 +1,6 @@
1
1
  import React from 'react'
2
- import PbBarGraph from '../_pb_bar_graph'
2
+ import { PbBarGraph } from 'playbook-ui'
3
+
3
4
 
4
5
  const chartData = [{
5
6
  name: 'Installation',
@@ -1,5 +1,3 @@
1
- **In order to use this kit, 'highcharts' and 'highcharts-react-official' must be installed in your repo.**
2
-
3
- This kit is a wrapper around the Highcharts library. It applies styling and default settings but does NOT ship Highcharts. Once 'highcharts' and 'highcharts-react-official are installed into your repo, any prop or functionality provided by Highcharts can be used with this kit without requiring specific props from Playbook. The doc examples below showcase a few common usecases but are not a comprehensive list of all the functionalities possible.
1
+ This kit is a wrapper around the Highcharts library. It applies styling and default settings but does NOT ship Highcharts. In order to use this kit, 'highcharts' and 'highcharts-react-official' must be installed in your repo. Once done, any prop or functionality provided by Highcharts can be used with this kit without requiring specific props from Playbook. The doc examples below showcase a few common usecases but are not a comprehensive list of all the functionalities possible.
4
2
 
5
3
  See the [highcharts API docs](https://api.highcharts.com/highcharts/) for a comprehensive look at what is possible.
@@ -1,6 +1,5 @@
1
1
  import React from "react";
2
- import PbCircleChart from "../_pb_circle_chart";
3
- import Title from "../../pb_title/_title";
2
+ import { PbCircleChart, Title } from "playbook-ui";
4
3
 
5
4
  const data= [
6
5
  {
@@ -1,6 +1,5 @@
1
1
  import React from "react";
2
- import PbCircleChart from "../_pb_circle_chart";
3
- import colors from '../../tokens/exports/_colors.module.scss';
2
+ import { PbCircleChart, colors } from "playbook-ui";
4
3
 
5
4
  const data= [
6
5
  {
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import PbCircleChart from "../_pb_circle_chart";
2
+ import { PbCircleChart } from "playbook-ui";
3
3
 
4
4
  const data = [
5
5
  {
@@ -1,5 +1,4 @@
1
- Tooltip options from Highcharts:
2
-
1
+ Custom tooltip formatting is configured through the tooltip object in the options passed to the kit:
3
2
  `headerFormat` **Type**: String | when set to null will disable the header.
4
3
  `pointFormat` **Type**: String | defines the HTML template for each data point and supports custom HTML when `useHTML` is enabled.
5
4
  `useHTML` **Type**: boolean (default false) | enables HTML rendering in tooltips.
@@ -1,6 +1,5 @@
1
1
  import React from "react";
2
- import PbCircleChart from "../_pb_circle_chart";
3
- import Title from "../../pb_title/_title";
2
+ import { PbCircleChart, Title } from "playbook-ui";
4
3
 
5
4
  const dataFirst = [
6
5
  {
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import PbCircleChart from "../_pb_circle_chart";
2
+ import { PbCircleChart } from "playbook-ui";
3
3
 
4
4
  const data = [
5
5
  {
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import PbCircleChart from "../_pb_circle_chart";
2
+ import { PbCircleChart } from "playbook-ui";
3
3
 
4
4
  const data = [{
5
5
  name: 'Bugs',
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import PbCircleChart from "../_pb_circle_chart";
2
+ import { PbCircleChart } from "playbook-ui";
3
3
 
4
4
  const chartOptions = {
5
5
  series: [
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import PbCircleChart from "../_pb_circle_chart";
2
+ import { PbCircleChart } from "playbook-ui";
3
3
 
4
4
  const dataFirst = [
5
5
  {
@@ -1,6 +1,5 @@
1
1
  import React, { useState } from "react";
2
- import PbCircleChart from "../_pb_circle_chart";
3
- import Button from "../../pb_button/_button";
2
+ import { PbCircleChart, Button } from "playbook-ui";
4
3
 
5
4
  const chartData = [
6
5
  {
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import PbCircleChart from "../_pb_circle_chart";
2
+ import { PbCircleChart } from "playbook-ui";
3
3
 
4
4
  const data= [
5
5
  {
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import PbCircleChart from "../_pb_circle_chart";
2
+ import { PbCircleChart } from "playbook-ui";
3
3
 
4
4
  const data= [
5
5
  {
@@ -1,5 +1,3 @@
1
- **In order to use this kit, 'highcharts' and 'highcharts-react-official' must be installed in your repo.**
2
-
3
- This kit is a wrapper around the Highcharts library. It applies styling and default settings but does NOT ship Highcharts. Once 'highcharts' and 'highcharts-react-official are installed into your repo, any prop or functionality provided by Highcharts can be used with this kit without requiring specific props from Playbook. The doc examples below showcase a few common usecases but are not a comprehensive list of all the functionalities possible.
1
+ This kit is a wrapper around the Highcharts library. It applies styling and default settings but does NOT ship Highcharts. In order to use this kit, 'highcharts' and 'highcharts-react-official' must be installed in your repo. Once done, any prop or functionality provided by Highcharts can be used with this kit without requiring specific props from Playbook. The doc examples below showcase a few common usecases but are not a comprehensive list of all the functionalities possible.
4
2
 
5
3
  See the [highcharts API docs](https://api.highcharts.com/highcharts/) for a comprehensive look at what is possible.
@@ -1,6 +1,6 @@
1
1
  import React from 'react'
2
2
  import PbGaugeChart from '../../pb_pb_gauge_chart/_pb_gauge_chart'
3
- import colors from '../../tokens/exports/_colors.module.scss'
3
+ import { colors } from 'playbook-ui'
4
4
 
5
5
  const data = [{ name: "Name", y: 67 }]
6
6
 
@@ -1,5 +1,5 @@
1
1
  Highcharts allows for any custom colors to be used. Custom data colors allow for color customization to match the needs of business requirements.
2
2
 
3
- For React, pass the option `plotOptions.solidgauge.borderColor` with a Playbook token like `colors.` + `data_1 | data_2 | data_3 | data_4 | data_5 | data_6 | data_7 | data_8`. HEX colors are also available `eg: #CA0095`
3
+ For React, pass the prop `plotOptions.solidgauge.borderColor` with a Playbook token like `colors.` + `data_1 | data_2 | data_3 | data_4 | data_5 | data_6 | data_7 | data_8`. HEX colors are also available `eg: #CA0095`
4
4
 
5
- For Rails, the option `plotOptions.solidgauge.borderColor` can only be used with HEX values as shown.
5
+ For Rails, the prop `plotOptions.solidgauge.borderColor` can only be used with HEX values as shown.
@@ -7,8 +7,7 @@ import Caption from '../../pb_caption/_caption'
7
7
  import Body from '../../pb_body/_body'
8
8
  import SectionSeparator from '../../pb_section_separator/_section_separator'
9
9
  import Title from '../../pb_title/_title'
10
- import colors from '../../tokens/exports/_colors.module.scss'
11
- import typography from '../../tokens/exports/_typography.module.scss'
10
+ import { colors, typography } from 'playbook-ui'
12
11
 
13
12
  const data = [{ name: "Name", y: 10 }];
14
13
 
@@ -1,7 +1,6 @@
1
1
  import React from 'react'
2
2
  import PbGaugeChart from '../../pb_pb_gauge_chart/_pb_gauge_chart'
3
- import colors from '../../tokens/exports/_colors.module.scss'
4
- import typography from '../../tokens/exports/_typography.module.scss'
3
+ import { colors, typography } from 'playbook-ui'
5
4
 
6
5
  const data = [{ name: "Capacity", y: 75 }]
7
6
 
@@ -1,7 +1,6 @@
1
1
  import React from 'react'
2
2
  import PbGaugeChart from '../../pb_pb_gauge_chart/_pb_gauge_chart'
3
- import colors from '../../tokens/exports/_colors.module.scss'
4
- import typography from '../../tokens/exports/_typography.module.scss'
3
+ import { colors, typography } from 'playbook-ui'
5
4
 
6
5
  const chartOptions = {
7
6
  title: {
@@ -1,7 +1,6 @@
1
1
  import React from 'react'
2
2
  import PbGaugeChart from '../../pb_pb_gauge_chart/_pb_gauge_chart'
3
- import colors from '../../tokens/exports/_colors.module.scss'
4
- import typography from '../../tokens/exports/_typography.module.scss'
3
+ import { colors, typography } from 'playbook-ui'
5
4
 
6
5
  const data = [{ name: "Rating", y: 4.5 }]
7
6
 
@@ -1,7 +1,6 @@
1
1
  import React from 'react'
2
2
  import PbGaugeChart from '../../pb_pb_gauge_chart/_pb_gauge_chart'
3
- import colors from '../../tokens/exports/_colors.module.scss'
4
- import typography from '../../tokens/exports/_typography.module.scss'
3
+ import { colors, typography } from 'playbook-ui'
5
4
 
6
5
 
7
6
  const data1 = [
@@ -1,5 +1,3 @@
1
- **In order to use this kit, 'highcharts' and 'highcharts-react-official' must be installed in your repo.**
2
-
3
- This kit is a wrapper around the Highcharts library. It applies styling and default settings but does NOT ship Highcharts. Once 'highcharts' and 'highcharts-react-official are installed into your repo, any prop or functionality provided by Highcharts can be used with this kit without requiring specific props from Playbook. The doc examples below showcase a few common usecases but are not a comprehensive list of all the functionalities possible.
1
+ This kit is a wrapper around the Highcharts library. It applies styling and default settings but does NOT ship Highcharts. In order to use this kit, 'highcharts' and 'highcharts-react-official' must be installed in your repo. Once done, any prop or functionality provided by Highcharts can be used with this kit without requiring specific props from Playbook. The doc examples below showcase a few common usecases but are not a comprehensive list of all the functionalities possible.
4
2
 
5
3
  See the [highcharts API docs](https://api.highcharts.com/highcharts/) for a comprehensive look at what is possible.