playbook_ui 15.8.0.pre.rc.0 → 16.0.0.pre.alpha.HFH3979Applydepwarningfixtoplaybook13635

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 +0 -4
  3. data/app/pb_kits/playbook/pb_dropdown/_dropdown.tsx +13 -1
  4. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_custom.jsx +56 -0
  5. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_custom.md +10 -0
  6. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_custom_rails.html.erb +64 -0
  7. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_custom_rails.md +10 -0
  8. data/app/pb_kits/playbook/pb_dropdown/docs/example.yml +2 -0
  9. data/app/pb_kits/playbook/pb_dropdown/docs/index.js +2 -1
  10. data/app/pb_kits/playbook/pb_dropdown/dropdown.rb +6 -1
  11. data/app/pb_kits/playbook/pb_dropdown/dropdown.test.jsx +121 -0
  12. data/app/pb_kits/playbook/pb_dropdown/quickpick/index.ts +85 -9
  13. data/app/pb_kits/playbook/pb_dropdown/quickpick_helper.rb +83 -2
  14. data/app/pb_kits/playbook/pb_icon/icon.rb +6 -1
  15. data/app/pb_kits/playbook/pb_multi_level_select/_multi_level_select.tsx +7 -0
  16. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_disabled_options.md +1 -1
  17. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_single_disabled.html.erb +135 -0
  18. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_single_disabled.jsx +147 -0
  19. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_single_disabled.md +1 -0
  20. data/app/pb_kits/playbook/pb_multi_level_select/docs/example.yml +2 -0
  21. data/app/pb_kits/playbook/pb_multi_level_select/docs/index.js +1 -0
  22. data/app/pb_kits/playbook/pb_multi_level_select/multi_level_select.test.jsx +402 -27
  23. data/app/pb_kits/playbook/pb_multi_level_select/multi_level_select_options.tsx +1 -0
  24. data/app/pb_kits/playbook/pb_multiple_users/docs/_multiple_users_with_tooltip.html.erb +30 -0
  25. data/app/pb_kits/playbook/pb_multiple_users/docs/_multiple_users_with_tooltip.jsx +1 -1
  26. data/app/pb_kits/playbook/pb_multiple_users/docs/_multiple_users_with_tooltip.md +1 -1
  27. data/app/pb_kits/playbook/pb_multiple_users/docs/example.yml +1 -0
  28. data/app/pb_kits/playbook/pb_multiple_users/multiple_users.html.erb +51 -7
  29. data/app/pb_kits/playbook/pb_multiple_users/multiple_users.rb +1 -0
  30. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_description.md +6 -1
  31. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_description.md +6 -1
  32. data/app/pb_kits/playbook/pb_pb_circle_chart/pb_circle_chart.test.jsx +1 -1
  33. data/app/pb_kits/playbook/pb_pb_gauge_chart/docs/_description.md +6 -1
  34. data/app/pb_kits/playbook/pb_pb_gauge_chart/pb_gauge_chart.test.jsx +1 -1
  35. data/app/pb_kits/playbook/pb_pb_line_graph/docs/_description.md +6 -1
  36. data/app/pb_kits/playbook/pb_pb_line_graph/pb_line_graph.test.jsx +1 -1
  37. data/app/pb_kits/playbook/pb_radio/_radio.scss +8 -0
  38. data/app/pb_kits/playbook/pb_rich_text_editor/TipTap/Toolbar.tsx +1 -1
  39. data/app/pb_kits/playbook/pb_rich_text_editor/_rich_text_editor.tsx +8 -3
  40. data/app/pb_kits/playbook/pb_rich_text_editor/_tiptap_styles.scss +53 -0
  41. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_height.jsx +71 -0
  42. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_height.md +1 -0
  43. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_min_height.jsx +71 -0
  44. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_min_height.md +1 -0
  45. data/app/pb_kits/playbook/pb_rich_text_editor/docs/example.yml +2 -0
  46. data/app/pb_kits/playbook/pb_rich_text_editor/docs/index.js +3 -1
  47. data/app/pb_kits/playbook/pb_table/docs/_sections.yml +68 -0
  48. data/app/pb_kits/playbook/utilities/test/globalProps/alignContent.test.js +37 -50
  49. data/app/pb_kits/playbook/utilities/test/globalProps/alignItems.test.js +38 -50
  50. data/app/pb_kits/playbook/utilities/test/globalProps/alignSelf.test.js +37 -50
  51. data/app/pb_kits/playbook/utilities/test/globalProps/borderRadius.test.js +33 -0
  52. data/app/pb_kits/playbook/utilities/test/globalProps/bottom.test.js +60 -0
  53. data/app/pb_kits/playbook/utilities/test/globalProps/cursor.test.js +42 -0
  54. data/app/pb_kits/playbook/utilities/test/globalProps/dark.test.js +33 -0
  55. data/app/pb_kits/playbook/utilities/test/globalProps/display.test.js +37 -51
  56. data/app/pb_kits/playbook/utilities/test/globalProps/flex.test.js +44 -76
  57. data/app/pb_kits/playbook/utilities/test/globalProps/flexDirection.test.js +37 -50
  58. data/app/pb_kits/playbook/utilities/test/globalProps/flexGrow.test.js +35 -48
  59. data/app/pb_kits/playbook/utilities/test/globalProps/flexShrink.test.js +35 -48
  60. data/app/pb_kits/playbook/utilities/test/globalProps/flexWrap.test.js +37 -50
  61. data/app/pb_kits/playbook/utilities/test/globalProps/gap.test.js +87 -0
  62. data/app/pb_kits/playbook/utilities/test/globalProps/globalPropsTestHelper.js +373 -0
  63. data/app/pb_kits/playbook/utilities/test/globalProps/height.test.js +68 -0
  64. data/app/pb_kits/playbook/utilities/test/globalProps/htmlOptions.test.js +510 -0
  65. data/app/pb_kits/playbook/utilities/test/globalProps/justifyContent.test.js +37 -50
  66. data/app/pb_kits/playbook/utilities/test/globalProps/justifySelf.test.js +37 -50
  67. data/app/pb_kits/playbook/utilities/test/globalProps/left.test.js +60 -0
  68. data/app/pb_kits/playbook/utilities/test/globalProps/lineHeight.test.js +33 -0
  69. data/app/pb_kits/playbook/utilities/test/globalProps/margin.test.js +95 -0
  70. data/app/pb_kits/playbook/utilities/test/globalProps/numberSpacing.test.js +33 -0
  71. data/app/pb_kits/playbook/utilities/test/globalProps/order.test.js +36 -48
  72. data/app/pb_kits/playbook/utilities/test/globalProps/overflow.test.js +68 -0
  73. data/app/pb_kits/playbook/utilities/test/globalProps/padding.test.js +95 -0
  74. data/app/pb_kits/playbook/utilities/test/globalProps/position.test.js +33 -0
  75. data/app/pb_kits/playbook/utilities/test/globalProps/right.test.js +60 -0
  76. data/app/pb_kits/playbook/utilities/test/globalProps/shadow.test.js +33 -0
  77. data/app/pb_kits/playbook/utilities/test/globalProps/textAlign.test.js +41 -0
  78. data/app/pb_kits/playbook/utilities/test/globalProps/top.test.js +60 -0
  79. data/app/pb_kits/playbook/utilities/test/globalProps/truncate.test.js +30 -18
  80. data/app/pb_kits/playbook/utilities/test/globalProps/verticalAlign.test.js +40 -0
  81. data/app/pb_kits/playbook/utilities/test/globalProps/width.test.js +66 -0
  82. data/app/pb_kits/playbook/utilities/test/globalProps/zIndex.test.js +50 -0
  83. data/dist/chunks/_pb_line_graph-hxi01lk7.js +1 -0
  84. data/dist/chunks/_typeahead-BgLnlhzP.js +1 -0
  85. data/dist/chunks/componentRegistry-DzmmLR2x.js +1 -0
  86. data/dist/chunks/globalProps-DgYwLYNx.js +6 -0
  87. data/dist/chunks/lib-NLxTo8OB.js +29 -0
  88. data/dist/chunks/vendor.js +4 -4
  89. data/dist/menu.yml +0 -29
  90. data/dist/playbook-rails-react-bindings.js +1 -1
  91. data/dist/playbook-rails.js +1 -1
  92. data/dist/playbook.css +1 -1
  93. data/lib/playbook/version.rb +2 -2
  94. metadata +42 -147
  95. data/app/pb_kits/playbook/pb_bar_graph/_bar_graph.scss +0 -6
  96. data/app/pb_kits/playbook/pb_bar_graph/_bar_graph.tsx +0 -196
  97. data/app/pb_kits/playbook/pb_bar_graph/barGraph.test.js +0 -31
  98. data/app/pb_kits/playbook/pb_bar_graph/barGraphSettings.js +0 -32
  99. data/app/pb_kits/playbook/pb_bar_graph/barGraphTheme.ts +0 -106
  100. data/app/pb_kits/playbook/pb_bar_graph/bar_graph.html.erb +0 -1
  101. data/app/pb_kits/playbook/pb_bar_graph/bar_graph.rb +0 -98
  102. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_colors.html.erb +0 -26
  103. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_colors.jsx +0 -55
  104. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_colors.md +0 -2
  105. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom_rails.html.erb +0 -42
  106. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom_rails.md +0 -2
  107. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_default.html.erb +0 -26
  108. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_default.jsx +0 -55
  109. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_height.html.erb +0 -26
  110. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_height.jsx +0 -69
  111. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_height.md +0 -3
  112. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_horizontal.html.erb +0 -58
  113. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_horizontal.jsx +0 -64
  114. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend.html.erb +0 -14
  115. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend.jsx +0 -40
  116. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_non_clickable.html.erb +0 -15
  117. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_non_clickable.jsx +0 -48
  118. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_position.html.erb +0 -62
  119. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_position.jsx +0 -136
  120. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_position.md +0 -17
  121. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_negative_numbers.html.erb +0 -23
  122. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_negative_numbers.jsx +0 -52
  123. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_secondary_y_axis.html.erb +0 -26
  124. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_secondary_y_axis.jsx +0 -86
  125. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_secondary_y_axis.md +0 -3
  126. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_spline.html.erb +0 -20
  127. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_spline.jsx +0 -46
  128. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_spline.md +0 -2
  129. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_stacked.html.erb +0 -22
  130. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_stacked.jsx +0 -55
  131. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_stacked.md +0 -1
  132. data/app/pb_kits/playbook/pb_bar_graph/docs/_description.md +0 -1
  133. data/app/pb_kits/playbook/pb_bar_graph/docs/example.yml +0 -28
  134. data/app/pb_kits/playbook/pb_bar_graph/docs/index.js +0 -11
  135. data/app/pb_kits/playbook/pb_circle_chart/ChartsTypes.ts +0 -2
  136. data/app/pb_kits/playbook/pb_circle_chart/_circle_chart.scss +0 -16
  137. data/app/pb_kits/playbook/pb_circle_chart/_circle_chart.tsx +0 -228
  138. data/app/pb_kits/playbook/pb_circle_chart/circleChart.test.js +0 -45
  139. data/app/pb_kits/playbook/pb_circle_chart/circleChartTheme.ts +0 -88
  140. data/app/pb_kits/playbook/pb_circle_chart/circle_chart.html.erb +0 -10
  141. data/app/pb_kits/playbook/pb_circle_chart/circle_chart.rb +0 -99
  142. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_block.html.erb +0 -26
  143. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_block.jsx +0 -88
  144. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_colors.html.erb +0 -20
  145. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_colors.jsx +0 -44
  146. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_colors_rails.md +0 -2
  147. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_colors_react.md +0 -2
  148. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_custom_tooltip.html.erb +0 -20
  149. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_custom_tooltip.jsx +0 -43
  150. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_custom_tooltip.md +0 -5
  151. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_default.html.erb +0 -19
  152. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_default.jsx +0 -38
  153. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_inner_sizes.html.erb +0 -136
  154. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_inner_sizes.jsx +0 -152
  155. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.html.erb +0 -86
  156. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.jsx +0 -142
  157. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.md +0 -14
  158. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_live_data.jsx +0 -63
  159. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_rounded.html.erb +0 -22
  160. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_rounded.jsx +0 -45
  161. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_labels.html.erb +0 -37
  162. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_labels.jsx +0 -61
  163. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_legend_kit.html.erb +0 -22
  164. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_legend_kit.jsx +0 -41
  165. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_title.html.erb +0 -38
  166. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_title.jsx +0 -55
  167. data/app/pb_kits/playbook/pb_circle_chart/docs/_description.md +0 -1
  168. data/app/pb_kits/playbook/pb_circle_chart/docs/example.yml +0 -26
  169. data/app/pb_kits/playbook/pb_circle_chart/docs/index.js +0 -11
  170. data/app/pb_kits/playbook/pb_dashboard/commonSettings.js +0 -104
  171. data/app/pb_kits/playbook/pb_dashboard/pbChartsColorsHelper.ts +0 -16
  172. data/app/pb_kits/playbook/pb_dashboard/pbChartsDarkTheme.ts +0 -174
  173. data/app/pb_kits/playbook/pb_dashboard/pbChartsLightTheme.ts +0 -173
  174. data/app/pb_kits/playbook/pb_dashboard/themeTypes.ts +0 -20
  175. data/app/pb_kits/playbook/pb_gauge/_gauge.scss +0 -49
  176. data/app/pb_kits/playbook/pb_gauge/_gauge.tsx +0 -215
  177. data/app/pb_kits/playbook/pb_gauge/docs/_description.md +0 -1
  178. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_colors.html.erb +0 -12
  179. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_colors.jsx +0 -36
  180. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_colors_rails.md +0 -2
  181. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_colors_react.md +0 -2
  182. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_complex.html.erb +0 -32
  183. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_complex.jsx +0 -146
  184. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_complex_rails.md +0 -1
  185. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_complex_react.md +0 -1
  186. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_default.html.erb +0 -11
  187. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_default.jsx +0 -30
  188. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_disable_animation.html.erb +0 -12
  189. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_disable_animation.jsx +0 -36
  190. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_full_circle.html.erb +0 -14
  191. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_full_circle.jsx +0 -49
  192. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_height.html.erb +0 -15
  193. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_height.jsx +0 -62
  194. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_live_data.jsx +0 -76
  195. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_min_max.html.erb +0 -15
  196. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_min_max.jsx +0 -54
  197. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_min_max.md +0 -1
  198. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_sizing.html.erb +0 -27
  199. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_sizing.jsx +0 -80
  200. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_sizing.md +0 -2
  201. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_title.html.erb +0 -14
  202. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_title.jsx +0 -38
  203. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_units.html.erb +0 -29
  204. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_units.jsx +0 -72
  205. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_units_react.md +0 -1
  206. data/app/pb_kits/playbook/pb_gauge/docs/example.yml +0 -27
  207. data/app/pb_kits/playbook/pb_gauge/docs/index.js +0 -11
  208. data/app/pb_kits/playbook/pb_gauge/gauge.html.erb +0 -2
  209. data/app/pb_kits/playbook/pb_gauge/gauge.rb +0 -56
  210. data/app/pb_kits/playbook/pb_gauge/gauge.test.js +0 -35
  211. data/app/pb_kits/playbook/pb_gauge/gaugeTheme.ts +0 -91
  212. data/app/pb_kits/playbook/pb_line_graph/_line_graph.scss +0 -3
  213. data/app/pb_kits/playbook/pb_line_graph/_line_graph.tsx +0 -166
  214. data/app/pb_kits/playbook/pb_line_graph/docs/_description.md +0 -1
  215. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_colors.html.erb +0 -26
  216. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_colors.jsx +0 -56
  217. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_colors_rails.md +0 -2
  218. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_colors_react.md +0 -3
  219. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_default.html.erb +0 -26
  220. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_default.jsx +0 -52
  221. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_height.html.erb +0 -26
  222. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_height.jsx +0 -70
  223. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_height.md +0 -3
  224. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend.html.erb +0 -15
  225. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend.jsx +0 -43
  226. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_nonclickable.html.erb +0 -16
  227. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_nonclickable.jsx +0 -49
  228. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_position.html.erb +0 -62
  229. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_position.jsx +0 -129
  230. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_position.md +0 -14
  231. data/app/pb_kits/playbook/pb_line_graph/docs/example.yml +0 -18
  232. data/app/pb_kits/playbook/pb_line_graph/docs/index.js +0 -6
  233. data/app/pb_kits/playbook/pb_line_graph/lineGraph.test.js +0 -52
  234. data/app/pb_kits/playbook/pb_line_graph/lineGraphSettings.js +0 -30
  235. data/app/pb_kits/playbook/pb_line_graph/lineGraphTheme.ts +0 -125
  236. data/app/pb_kits/playbook/pb_line_graph/line_graph.html.erb +0 -1
  237. data/app/pb_kits/playbook/pb_line_graph/line_graph.rb +0 -93
  238. data/dist/chunks/_typeahead-CSCNg6cp.js +0 -6
  239. data/dist/chunks/lib-DxCgrqqG.js +0 -29
@@ -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 +0,0 @@
1
- <%= react_component('BarGraph', object.chart_options) %>
@@ -1,98 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Playbook
4
- module PbBarGraph
5
- class BarGraph < Playbook::KitBase
6
- prop :align, type: Playbook::Props::Enum,
7
- values: %w[left right center],
8
- default: "center"
9
- prop :axis_title
10
- prop :axis_format
11
- prop :chart_data, type: Playbook::Props::Array,
12
- default: []
13
- prop :custom_options, default: {}
14
- prop :orientation, type: Playbook::Props::Enum,
15
- values: %w[vertical horizontal],
16
- default: "vertical"
17
- prop :point_start, type: Playbook::Props::Numeric
18
- prop :stacking
19
- prop :subtitle
20
- prop :title
21
- prop :x_axis_categories, type: Playbook::Props::Array,
22
- default: []
23
- prop :y_axis_min, type: Playbook::Props::Numeric
24
- prop :y_axis_max, type: Playbook::Props::Numeric
25
- prop :legend, type: Playbook::Props::Boolean,
26
- default: false
27
- prop :toggle_legend_click, type: Playbook::Props::Boolean,
28
- default: true
29
- prop :height
30
- prop :colors, type: Playbook::Props::Array,
31
- default: []
32
- prop :layout, type: Playbook::Props::Enum,
33
- values: %w[horizontal vertical proximate],
34
- default: "horizontal"
35
- prop :vertical_align, type: Playbook::Props::Enum,
36
- values: %w[top middle bottom],
37
- default: "bottom"
38
- prop :x, type: Playbook::Props::Numeric
39
- prop :y, type: Playbook::Props::Numeric
40
-
41
- def chart_type
42
- orientation == "horizontal" ? "bar" : "column"
43
- end
44
-
45
- def standard_options
46
- {
47
- align: align,
48
- id: id,
49
- className: classname,
50
- chartData: chart_data,
51
- dark: dark ? "dark" : "",
52
- type: chart_type,
53
- title: title,
54
- stacking: stacking,
55
- subTitle: subtitle,
56
- axisTitle: axis_title,
57
- axisFormat: axis_format,
58
- pointStart: point_start,
59
- xAxisCategories: x_axis_categories,
60
- yAxisMin: y_axis_min,
61
- yAxisMax: y_axis_max,
62
- legend: legend,
63
- toggleLegendClick: toggle_legend_click,
64
- height: height,
65
- colors: colors,
66
- layout: layout,
67
- verticalAlign: vertical_align,
68
- x: x,
69
- y: y,
70
- }
71
- end
72
-
73
- def chart_options
74
- standard_options.deep_merge(custom_options)
75
- end
76
-
77
- def vertical_align_props
78
- if vertical_align
79
- if object.vertical_align
80
- original_result = super
81
- class_to_remove = "vertical_align_#{object.vertical_align}"
82
-
83
- modified_result = original_result.gsub(class_to_remove, "").strip
84
- modified_result.empty? ? nil : modified_result
85
- else
86
- super
87
- end
88
- else
89
- super
90
- end
91
- end
92
-
93
- def classname
94
- generate_classname("pb_bar_graph")
95
- end
96
- end
97
- end
98
- end
@@ -1,26 +0,0 @@
1
- <% data = [{
2
- name: 'Installation',
3
- data: [1475,200,3000,654,656]
4
- }, {
5
- name: 'Manufacturing',
6
- data: [4434,524,2320,440,500]
7
- }, {
8
- name: 'Sales & Distribution',
9
- data: [3387,743,1344,434,440,]
10
- }, {
11
- name: 'Project Development',
12
- data: [3227,878,999,780,1000]
13
- }, {
14
- name: 'Other',
15
- data: [1111,677,3245,500,200]
16
- }] %>
17
-
18
- <%= pb_rails("bar_graph", props: {
19
- axis_title: 'Number of Employees',
20
- chart_data: data,
21
- id: "bar-colors",
22
- y_axis_min: 0,
23
- x_axis_categories:['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'],
24
- title: 'Bar Graph with Custom Data Colors',
25
- colors: ['data-4', 'data-5', 'data-6', 'data-7', 'data-8']
26
- }) %>
@@ -1,55 +0,0 @@
1
- import React from 'react'
2
- import colors from '../../tokens/exports/_colors.module.scss'
3
- import barGraphTheme from '../barGraphTheme';
4
- import Highcharts from "highcharts";
5
- import HighchartsReact from "highcharts-react-official";
6
-
7
-
8
-
9
- const chartData = [{
10
- name: 'Installation',
11
- data: [1475, 200, 3000, 654, 656],
12
- }, {
13
- name: 'Manufacturing',
14
- data: [4434, 524, 2320, 440, 500],
15
- }, {
16
- name: 'Sales & Distribution',
17
- data: [3387, 743, 1344, 434, 440],
18
- }, {
19
- name: 'Project Development',
20
- data: [3227, 878, 999, 780, 1000],
21
- }, {
22
- name: 'Other',
23
- data: [1111, 677, 3245, 500, 200],
24
- }]
25
-
26
- const chartOptions = {
27
- series: chartData,
28
- title: {
29
- text: "Bar Graph with Custom Data Colors",
30
- },
31
- xAxis: {
32
- categories: ["Jan", "Feb", "Mar", "Apr", "May"],
33
- },
34
- yAxis: {
35
- title: {
36
- text: "Number of Employees",
37
- },
38
- },
39
- colors: [colors.data_4, colors.data_5, colors.data_6, colors.data_7, colors.data_8],
40
- }
41
-
42
- const BarGraphColors = () => {
43
- const options = Highcharts.merge({}, barGraphTheme, chartOptions)
44
-
45
- return (
46
- <div>
47
- <HighchartsReact
48
- highcharts={Highcharts}
49
- options={options}
50
- />
51
- </div>
52
- )
53
- }
54
-
55
- export default BarGraphColors
@@ -1,2 +0,0 @@
1
- Custom data `colors` allow for color customization to match the needs of business requirements.
2
- Pass the prop colors and use desired values `data-1 | data-2 | data-3 | data-4 | data-5 | data-6 | data-7 | data-8` in an array. Hex colors are also available `eg: #CA0095`
@@ -1,42 +0,0 @@
1
- <% data = [{
2
- name: 'Role',
3
- data: [0, 200, 300, 654, 656],
4
- }, {
5
- name: 'Company',
6
- data: [150, 524, 320, 440, 500],
7
- }] %>
8
-
9
- <% bar_graph_options = {
10
- customOptions: {
11
- yAxis: {
12
- tickInterval: 5,
13
- },
14
- xAxis: {
15
- categories: [
16
- raw(pb_rails("icon", props: { icon: "frown", color: "error", size: "2x" })),
17
- raw(pb_rails("icon", props: { icon: "frown", color: "warning", size: "2x" })),
18
- raw(pb_rails("icon", props: { icon: "frown-open", color: "neutral", size: "2x" })),
19
- raw(pb_rails("icon", props: { icon: "smile", color: "category_7", size: "2x" })),
20
- raw(pb_rails("icon", props: { icon: "smile-beam", color: "success", size: "2x" }))
21
- ],
22
- labels: {
23
- useHTML: true,
24
- sytle: {
25
- fontSize: '1.4em',
26
- },
27
- y: 42,
28
- },
29
- },
30
- legend: {
31
- itemMarginTop: 62,
32
- },
33
- }
34
- } %>
35
-
36
- <%= pb_rails("bar_graph", props: {
37
- chart_data: data,
38
- id: "bar-default",
39
- legend: true,
40
- title: 'Bar Graph with Custom Overrides',
41
- custom_options: bar_graph_options
42
- }) %>
@@ -1,2 +0,0 @@
1
- The `custom_options` prop provides comprehensive access to additional [Highcharts options](https://api.highcharts.com/highcharts/) that are not explicitly defined as props.
2
- It's important to note that certain options may require specific script imports to function properly.
@@ -1,26 +0,0 @@
1
- <% data = [{
2
- name: 'Installation',
3
- data: [1475,200,3000,654,656]
4
- }, {
5
- name: 'Manufacturing',
6
- data: [4434,524,2320,440,500]
7
- }, {
8
- name: 'Sales & Distribution',
9
- data: [3387,743,1344,434,440,]
10
- }, {
11
- name: 'Project Development',
12
- data: [3227,878,999,780,1000]
13
- }, {
14
- name: 'Other',
15
- data: [1111,677,3245,500,200]
16
- }] %>
17
-
18
- <%= pb_rails("bar_graph", props: {
19
- axis_title: 'Number of Employees',
20
- chart_data: data,
21
- id: "bar-default",
22
- y_axis_min: 0,
23
- x_axis_categories:['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'],
24
- subtitle: 'Source: thesolarfoundation.com',
25
- title: 'Solar Employment Growth by Sector, 2010-2016',
26
- }) %>
@@ -1,55 +0,0 @@
1
- import React from 'react'
2
- import barGraphTheme from '../barGraphTheme';
3
- import Highcharts from "highcharts";
4
- import HighchartsReact from "highcharts-react-official";
5
-
6
-
7
- const chartData = [{
8
- name: 'Installation',
9
- data: [1475, 200, 3000, 654, 656],
10
- }, {
11
- name: 'Manufacturing',
12
- data: [4434, 524, 2320, 440, 500],
13
- }, {
14
- name: 'Sales & Distribution',
15
- data: [3387, 743, 1344, 434, 440],
16
- }, {
17
- name: 'Project Development',
18
- data: [3227, 878, 999, 780, 1000],
19
- }, {
20
- name: 'Other',
21
- data: [1111, 677, 3245, 500, 200],
22
- }]
23
-
24
- const chartOptions = {
25
- series: chartData,
26
- title: {
27
- text: 'Solar Employment Growth by Sector, 2010-2016',
28
- },
29
- subtitle: {
30
- text: 'Source: thesolarfoundation.com',
31
- },
32
- xAxis: {
33
- categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May'],
34
- },
35
- yAxis: {
36
- title: {
37
- text: 'Number of Employees',
38
- },
39
- },
40
- }
41
-
42
- const BarGraphDefault = () => {
43
- const options = Highcharts.merge({}, barGraphTheme, chartOptions)
44
-
45
- return (
46
- <div>
47
- <HighchartsReact
48
- highcharts={Highcharts}
49
- options={options}
50
- />
51
- </div>
52
- )
53
- }
54
-
55
- export default BarGraphDefault
@@ -1,26 +0,0 @@
1
- <% data = [{
2
- name: 'Number of Installations',
3
- data: [1475,200,3000,654,656]
4
- }] %>
5
-
6
- <%= pb_rails("bar_graph", props: {
7
- axis_title: 'Number of Employees',
8
- chart_data: data,
9
- id: "bar-fixed-height",
10
- y_axis_min: 0,
11
- x_axis_categories:['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'],
12
- title: 'Fixed Height (300px)',
13
- height: '300'
14
- }) %>
15
-
16
- <br /><br />
17
-
18
- <%= pb_rails("bar_graph", props: {
19
- axis_title: 'Number of Employees',
20
- chart_data: data,
21
- id: "bar-percentage-height",
22
- y_axis_min: 0,
23
- x_axis_categories:['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'],
24
- title: 'Percentage Height (50%)',
25
- height: '50%'
26
- }) %>
@@ -1,69 +0,0 @@
1
- import React from 'react'
2
- import barGraphTheme from '../barGraphTheme';
3
- import Highcharts from "highcharts";
4
- import HighchartsReact from "highcharts-react-official";
5
-
6
-
7
- const chartData = [{
8
- name: 'Number of Installations',
9
- data: [1475, 200, 3000, 654, 656],
10
- }]
11
-
12
- const pixelHeightChartOptions = {
13
- chart: {
14
- height: "300"
15
- },
16
- series: chartData,
17
- title: {
18
- text: "Fixed Height (300px)",
19
- },
20
- xAxis: {
21
- categories: ["Jan", "Feb", "Mar", "Apr", "May"],
22
- },
23
- yAxis: {
24
- title: {
25
- text: "Number of Employees",
26
- },
27
- },
28
- };
29
-
30
- const percentageHeightChartOptions = {
31
- chart: {
32
- height: "50%"
33
- },
34
- series: chartData,
35
- title: {
36
- text: "Percentage Height (50%)",
37
- },
38
- xAxis: {
39
- categories: ["Jan", "Feb", "Mar", "Apr", "May"],
40
- },
41
- yAxis: {
42
- title: {
43
- text: "Number of Employees",
44
- },
45
- },
46
- };
47
-
48
- const pixelOptions = Highcharts.merge({}, barGraphTheme, pixelHeightChartOptions)
49
-
50
- const percentageOptions = Highcharts.merge({}, barGraphTheme, percentageHeightChartOptions)
51
-
52
- const BarGraphHeight = () => (
53
- <div>
54
- <HighchartsReact
55
- highcharts={Highcharts}
56
- options={pixelOptions}
57
- />
58
-
59
- <br />
60
- <br />
61
-
62
- <HighchartsReact
63
- highcharts={Highcharts}
64
- options={percentageOptions}
65
- />
66
- </div>
67
- )
68
-
69
- export default BarGraphHeight
@@ -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,58 +0,0 @@
1
- <% bar_graph_options = {
2
- customOptions: {
3
- chart: {
4
- type: 'bar'
5
- },
6
- title: {
7
- text: 'Historic World Population by Region',
8
- align: 'left'
9
- },
10
- subtitle: {
11
- text: 'Source: <a ' +
12
- 'href="https://en.wikipedia.org/wiki/List_of_continents_and_continental_subregions_by_population"' +
13
- 'target="_blank">Wikipedia.org</a>',
14
- align: 'left'
15
- },
16
- xAxis: {
17
- categories: ['Africa', 'America', 'Asia', 'Europe'],
18
- lineWidth: 0
19
- },
20
- yAxis: {
21
- min: 0,
22
- title: {
23
- text: 'Population (millions)',
24
- align: 'high'
25
- },
26
- labels: {
27
- overflow: 'justify'
28
- },
29
- },
30
- tooltip: {
31
- valueSuffix: ' millions'
32
- },
33
- plotOptions: {
34
- bar: {
35
- dataLabels: {
36
- enabled: true
37
- },
38
- groupPadding: 0.1
39
- }
40
- },
41
- series: [{
42
- name: 'Year 1990',
43
- data: [631, 727, 3202, 721]
44
- }, {
45
- name: 'Year 2000',
46
- data: [814, 841, 3714, 726]
47
- }, {
48
- name: 'Year 2018',
49
- data: [1276, 1007, 4561, 746]
50
- }]
51
- }
52
- } %>
53
-
54
- <%= pb_rails("bar_graph", props: {
55
- id: "bar-horizontal",
56
- y_axis_min: 0,
57
- custom_options: bar_graph_options,
58
- }) %>
@@ -1,64 +0,0 @@
1
- import React from 'react'
2
- import barGraphTheme from '../barGraphTheme';
3
- import Highcharts from "highcharts";
4
- import HighchartsReact from "highcharts-react-official";
5
-
6
-
7
- const chartOptions = {
8
- chart: {
9
- type: 'bar'
10
- },
11
- title: {
12
- text: 'Historic World Population by Region',
13
- align: 'left'
14
- },
15
- subtitle: {
16
- text: 'Source: <a ' +
17
- 'href="https://en.wikipedia.org/wiki/List_of_continents_and_continental_subregions_by_population"' +
18
- 'target="_blank">Wikipedia.org</a>',
19
- align: 'left'
20
- },
21
- xAxis: {
22
- categories: ['Africa', 'America', 'Asia', 'Europe'],
23
- lineWidth: 0
24
- },
25
- yAxis: {
26
- title: {
27
- text: '',
28
- },
29
- },
30
- tooltip: {
31
- valueSuffix: ' millions'
32
- },
33
- plotOptions: {
34
- bar: {
35
- dataLabels: {
36
- enabled: true
37
- },
38
- groupPadding: 0.1
39
- }
40
- },
41
- series: [{
42
- name: 'Year 1990',
43
- data: [631, 727, 3202, 721]
44
- }, {
45
- name: 'Year 2000',
46
- data: [814, 841, 3714, 726]
47
- }, {
48
- name: 'Year 2018',
49
- data: [1276, 1007, 4561, 746]
50
- }],
51
- }
52
-
53
- const options = Highcharts.merge({}, barGraphTheme, chartOptions)
54
-
55
- const BarGraphHorizontal = () => (
56
- <div>
57
- <HighchartsReact
58
- highcharts={Highcharts}
59
- options={options}
60
- />
61
- </div>
62
- )
63
-
64
- export default BarGraphHorizontal
@@ -1,14 +0,0 @@
1
- <% data = [{
2
- name: 'Number of Installations',
3
- data: [1475,200,3000,654,656]
4
- }] %>
5
-
6
- <%= pb_rails("bar_graph", props: {
7
- axis_title: 'Number of Employees',
8
- chart_data: data,
9
- id: "bar-test-2",
10
- y_axis_min: 0,
11
- x_axis_categories:['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'],
12
- title: 'Bar Graph with Legend',
13
- legend: true,
14
- }) %>