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
@@ -0,0 +1,33 @@
1
+ import { testGlobalProp, testGlobalPropAbsence, testGlobalPropInvalidValues } from './globalPropsTestHelper'
2
+ import Body from '../../../pb_body/_body'
3
+ import Button from '../../../pb_button/_button'
4
+ import Card from '../../../pb_card/_card'
5
+ import Title from '../../../pb_title/_title'
6
+ import TextInput from '../../../pb_text_input/_text_input'
7
+ import Flex from '../../../pb_flex/_flex'
8
+ import Link from '../../../pb_link/_link'
9
+ import Badge from '../../../pb_badge/_badge'
10
+
11
+ testGlobalProp(
12
+ 'shadow',
13
+ ['none', 'deep', 'deeper', 'deepest'],
14
+ (v) => `shadow_${v}`,
15
+ null,
16
+ [Body, Button, Card, Title, TextInput, Flex, Link, Badge]
17
+ )
18
+
19
+ testGlobalPropAbsence(
20
+ 'shadow',
21
+ ['shadow_none', 'shadow_deep', 'shadow_deeper', 'shadow_deepest'],
22
+ undefined,
23
+ { skipNull: true }
24
+ )
25
+
26
+ // NOTE: Currently using skipKnownIssues: true because globalProps.ts generates classes for invalid values
27
+ testGlobalPropInvalidValues(
28
+ 'shadow',
29
+ ['invalid', 'bad_value', 'not_a_shadow', 'special-chars!@#'],
30
+ ['shadow_invalid', 'shadow_bad_value', 'shadow_not_a_shadow', 'shadow_special-chars!@#'],
31
+ undefined,
32
+ { skipKnownIssues: true }
33
+ )
@@ -0,0 +1,41 @@
1
+ import { testGlobalProp, testGlobalPropResponsiveWithDefault, testGlobalPropAbsence, testGlobalPropInvalidValues } from './globalPropsTestHelper'
2
+ import { camelToSnakeCase } from '../../../utilities/text'
3
+ import Body from '../../../pb_body/_body'
4
+ import Button from '../../../pb_button/_button'
5
+ import Card from '../../../pb_card/_card'
6
+ import Title from '../../../pb_title/_title'
7
+ import Flex from '../../../pb_flex/_flex'
8
+ import Link from '../../../pb_link/_link'
9
+ import Badge from '../../../pb_badge/_badge'
10
+
11
+ // NOTE: TextInput excluded - textAlign is not a valid prop for input elements
12
+ testGlobalProp(
13
+ 'textAlign',
14
+ ['start', 'end', 'left', 'right', 'center', 'justify', 'justifyAll', 'matchParent'],
15
+ (v) => `text_align_${v}`,
16
+ (size, v) => `text_align_${size}_${camelToSnakeCase(v)}`,
17
+ [Body, Button, Card, Title, Flex, Link, Badge]
18
+ )
19
+
20
+ testGlobalPropResponsiveWithDefault(
21
+ 'textAlign',
22
+ { default: 'center', xs: 'left', sm: 'center', md: 'right' },
23
+ (v) => `text_align_${camelToSnakeCase(v)}`,
24
+ (size, v) => `text_align_${size}_${camelToSnakeCase(v)}`
25
+ )
26
+
27
+ testGlobalPropAbsence(
28
+ 'textAlign',
29
+ ['text_align_start', 'text_align_end', 'text_align_center', 'text_align_left', 'text_align_right'],
30
+ undefined,
31
+ { skipNull: true }
32
+ )
33
+
34
+ // NOTE: Currently using skipKnownIssues: true because globalProps.ts generates classes for invalid values
35
+ testGlobalPropInvalidValues(
36
+ 'textAlign',
37
+ ['invalid', 'bad_value', 'not_an_alignment', 'special-chars!@#'],
38
+ ['text_align_invalid', 'text_align_bad_value', 'text_align_not_an_alignment', 'text_align_special-chars!@#'],
39
+ undefined,
40
+ { skipKnownIssues: true }
41
+ )
@@ -0,0 +1,60 @@
1
+ import React from 'react'
2
+ import { testGlobalProp, testGlobalPropAbsence, testGlobalPropInvalidValues } from './globalPropsTestHelper'
3
+ import { render, screen } from '../../test-utils'
4
+ import Body from '../../../pb_body/_body'
5
+ import Button from '../../../pb_button/_button'
6
+ import Card from '../../../pb_card/_card'
7
+ import Title from '../../../pb_title/_title'
8
+ import Flex from '../../../pb_flex/_flex'
9
+ import Link from '../../../pb_link/_link'
10
+ import Badge from '../../../pb_badge/_badge'
11
+
12
+ const validSizes = ['xs', 'sm', 'md', 'lg', 'xl']
13
+
14
+ // NOTE: TextInput excluded - positioning props are not valid for input elements
15
+ // Test top prop with string values
16
+ testGlobalProp(
17
+ 'top',
18
+ validSizes,
19
+ (v) => `top_${v}`,
20
+ null,
21
+ [Body, Button, Card, Title, Flex, Link, Badge]
22
+ )
23
+
24
+ // Test top prop with object values (inset) - tested separately due to object value complexity
25
+ test('Global Props: top returns proper class name with object values (inset)', () => {
26
+ const testCases = [
27
+ { value: { value: 'md', inset: true }, expected: 'top_md_inset' },
28
+ { value: { value: 'lg', inset: false }, expected: 'top_lg' },
29
+ { value: { value: 'sm', inset: true }, expected: 'top_sm_inset' }
30
+ ]
31
+
32
+ testCases.forEach(({ value, expected }) => {
33
+ const testId = `body-top-object-${value.value}-${value.inset}`
34
+ render(
35
+ <Body
36
+ data={{ testid: testId }}
37
+ text="Hi"
38
+ top={value}
39
+ />
40
+ )
41
+ const kit = screen.getByTestId(testId)
42
+ expect(kit).toHaveClass(expected)
43
+ })
44
+ })
45
+
46
+ testGlobalPropAbsence(
47
+ 'top',
48
+ ['top_xs', 'top_sm', 'top_md', 'top_lg', 'top_xl'],
49
+ undefined,
50
+ { skipNull: true }
51
+ )
52
+
53
+ // NOTE: Currently using skipKnownIssues: true because globalProps.ts generates classes for invalid values
54
+ testGlobalPropInvalidValues(
55
+ 'top',
56
+ ['invalid', 'bad_value', 'not_a_size', 'special-chars!@#'],
57
+ ['top_invalid', 'top_bad_value', 'top_not_a_size', 'top_special-chars!@#'],
58
+ undefined,
59
+ { skipKnownIssues: true }
60
+ )
@@ -1,21 +1,33 @@
1
- import React from 'react'
2
- import { render, screen } from '../../test-utils'
3
-
1
+ import { testGlobalProp, testGlobalPropAbsence, testGlobalPropInvalidValues } from './globalPropsTestHelper'
4
2
  import Body from '../../../pb_body/_body'
3
+ import Button from '../../../pb_button/_button'
4
+ import Card from '../../../pb_card/_card'
5
+ import Title from '../../../pb_title/_title'
6
+ import TextInput from '../../../pb_text_input/_text_input'
7
+ import Flex from '../../../pb_flex/_flex'
8
+ import Link from '../../../pb_link/_link'
9
+ import Badge from '../../../pb_badge/_badge'
10
+
11
+ testGlobalProp(
12
+ 'truncate',
13
+ [1, 2, 3, 4, 5],
14
+ (v) => `truncate_${v}`,
15
+ null,
16
+ [Body, Button, Card, Title, TextInput, Flex, Link, Badge]
17
+ )
5
18
 
6
- const testSubject = 'body'
19
+ testGlobalPropAbsence(
20
+ 'truncate',
21
+ ['truncate_0', 'truncate_1', 'truncate_2', 'truncate_3', 'truncate_4', 'truncate_5'],
22
+ undefined,
23
+ { excludeZero: true, skipNull: true }
24
+ )
7
25
 
8
- test('Global Props: Returns corrrect truncate class name', () => {
9
- for(let x = 1, y = 5; x <= y; ++x) {
10
- const testId = `${testSubject}-${x}`
11
- render(
12
- <Body
13
- data={{ testid: testId }}
14
- text="Hi"
15
- truncate={`${x}`}
16
- />
17
- )
18
- const kit = screen.getByTestId(testId)
19
- expect(kit).toHaveClass(`truncate_${x}`)
20
- }
21
- })
26
+ // NOTE: Currently using skipKnownIssues: true because globalProps.ts generates classes for invalid values
27
+ testGlobalPropInvalidValues(
28
+ 'truncate',
29
+ [0, 6, 999, -1, 'invalid', 'bad_value', 'special-chars!@#'],
30
+ ['truncate_0', 'truncate_6', 'truncate_999', 'truncate_-1', 'truncate_invalid', 'truncate_bad_value', 'truncate_special-chars!@#'],
31
+ undefined,
32
+ { skipKnownIssues: true }
33
+ )
@@ -0,0 +1,40 @@
1
+ import { testGlobalProp, testGlobalPropResponsiveWithDefault, testGlobalPropAbsence, testGlobalPropInvalidValues } from './globalPropsTestHelper'
2
+ import Body from '../../../pb_body/_body'
3
+ import Button from '../../../pb_button/_button'
4
+ import Card from '../../../pb_card/_card'
5
+ import Title from '../../../pb_title/_title'
6
+ import Flex from '../../../pb_flex/_flex'
7
+ import Link from '../../../pb_link/_link'
8
+ import Badge from '../../../pb_badge/_badge'
9
+
10
+ // NOTE: TextInput excluded - verticalAlign is not a valid prop for input elements
11
+ testGlobalProp(
12
+ 'verticalAlign',
13
+ ['baseline', 'super', 'top', 'middle', 'bottom', 'sub', 'text-top', 'text-bottom'],
14
+ (v) => `vertical_align_${v}`,
15
+ (size, v) => `vertical_align_${size}_${v}`,
16
+ [Body, Button, Card, Title, Flex, Link, Badge]
17
+ )
18
+
19
+ testGlobalPropResponsiveWithDefault(
20
+ 'verticalAlign',
21
+ { default: 'middle', xs: 'top', sm: 'middle', md: 'bottom' },
22
+ (v) => `vertical_align_${v}`,
23
+ (size, v) => `vertical_align_${size}_${v}`
24
+ )
25
+
26
+ testGlobalPropAbsence(
27
+ 'verticalAlign',
28
+ ['vertical_align_baseline', 'vertical_align_top', 'vertical_align_middle', 'vertical_align_bottom'],
29
+ undefined,
30
+ { skipNull: true }
31
+ )
32
+
33
+ // NOTE: Currently using skipKnownIssues: true because globalProps.ts generates classes for invalid values
34
+ testGlobalPropInvalidValues(
35
+ 'verticalAlign',
36
+ ['invalid', 'bad_value', 'not_an_alignment', 'special-chars!@#'],
37
+ ['vertical_align_invalid', 'vertical_align_bad_value', 'vertical_align_not_an_alignment', 'vertical_align_special-chars!@#'],
38
+ undefined,
39
+ { skipKnownIssues: true }
40
+ )
@@ -0,0 +1,66 @@
1
+ import { testGlobalProp, testGlobalPropAbsence, testGlobalPropInvalidValues } from './globalPropsTestHelper'
2
+ import Body from '../../../pb_body/_body'
3
+ import Button from '../../../pb_button/_button'
4
+ import Card from '../../../pb_card/_card'
5
+ import Title from '../../../pb_title/_title'
6
+ import Flex from '../../../pb_flex/_flex'
7
+ import Link from '../../../pb_link/_link'
8
+ import Badge from '../../../pb_badge/_badge'
9
+
10
+ // NOTE: TextInput excluded - width properties are not valid props for input elements
11
+ // Test width prop
12
+ testGlobalProp(
13
+ 'width',
14
+ ['100%', '50%', '25%', 'auto', '100px'],
15
+ (v) => `width_${v.replace('%', '_percent')}`,
16
+ null,
17
+ [Body, Button, Card, Title, Flex, Link, Badge]
18
+ )
19
+
20
+ testGlobalPropAbsence(
21
+ 'width',
22
+ ['width_100_percent', 'width_50_percent', 'width_auto', 'width_100px'],
23
+ undefined,
24
+ { skipNull: true }
25
+ )
26
+
27
+ // Test minWidth prop
28
+ testGlobalProp(
29
+ 'minWidth',
30
+ ['100%', '50%', '25%', 'auto', '100px'],
31
+ (v) => `min_width_${v.replace('%', '_percent')}`,
32
+ null,
33
+ [Body, Button, Card, Title, Flex, Link, Badge]
34
+ )
35
+
36
+ testGlobalPropAbsence(
37
+ 'minWidth',
38
+ ['min_width_100_percent', 'min_width_50_percent', 'min_width_auto', 'min_width_100px'],
39
+ undefined,
40
+ { skipNull: true }
41
+ )
42
+
43
+ // Test maxWidth prop
44
+ testGlobalProp(
45
+ 'maxWidth',
46
+ ['100%', '50%', '25%', 'auto', '100px'],
47
+ (v) => `max_width_${v.replace('%', '_percent')}`,
48
+ null,
49
+ [Body, Button, Card, Title, Flex, Link, Badge]
50
+ )
51
+
52
+ testGlobalPropAbsence(
53
+ 'maxWidth',
54
+ ['max_width_100_percent', 'max_width_50_percent', 'max_width_auto', 'max_width_100px'],
55
+ undefined,
56
+ { skipNull: true }
57
+ )
58
+
59
+ // NOTE: Currently using skipKnownIssues: true because globalProps.ts generates classes for invalid values
60
+ testGlobalPropInvalidValues(
61
+ 'width',
62
+ ['invalid', 'bad_value', 'not_a_width', 'special-chars!@#'],
63
+ ['width_invalid', 'width_bad_value', 'width_not_a_width', 'width_special-chars!@#'],
64
+ undefined,
65
+ { skipKnownIssues: true }
66
+ )
@@ -0,0 +1,50 @@
1
+ import { testGlobalProp, testGlobalPropResponsiveWithDefault, testGlobalPropAbsence, testGlobalPropInvalidValues } from './globalPropsTestHelper'
2
+ import Body from '../../../pb_body/_body'
3
+ import Button from '../../../pb_button/_button'
4
+ import Card from '../../../pb_card/_card'
5
+ import Title from '../../../pb_title/_title'
6
+ import Flex from '../../../pb_flex/_flex'
7
+ import Link from '../../../pb_link/_link'
8
+ import Badge from '../../../pb_badge/_badge'
9
+
10
+ // NOTE: TextInput excluded - zIndex is not a valid prop for input elements
11
+ // Test numeric values (1-10)
12
+ testGlobalProp(
13
+ 'zIndex',
14
+ Array.from({ length: 10 }, (_, i) => i + 1),
15
+ (v) => `z_index_${v}`,
16
+ (size, v) => `z_index_${size}_${v}`,
17
+ [Body, Button, Card, Title, Flex, Link, Badge]
18
+ )
19
+
20
+ // Test 'max' value
21
+ testGlobalProp(
22
+ 'zIndex',
23
+ ['max'],
24
+ (v) => `z_index_${v}`,
25
+ null,
26
+ [Body, Button, Card, Title, Flex, Link, Badge]
27
+ )
28
+
29
+ testGlobalPropResponsiveWithDefault(
30
+ 'zIndex',
31
+ { default: 3, xs: 1, sm: 3, md: 5 },
32
+ (v) => `z_index_${v}`,
33
+ (size, v) => `z_index_${size}_${v}`
34
+ )
35
+
36
+ testGlobalPropAbsence(
37
+ 'zIndex',
38
+ ['z_index_1', 'z_index_5', 'z_index_10', 'z_index_max'],
39
+ undefined,
40
+ { skipNull: true }
41
+ )
42
+
43
+ // NOTE: Currently using skipKnownIssues: true because globalProps.ts generates classes for invalid values
44
+ testGlobalPropInvalidValues(
45
+ 'zIndex',
46
+ [0, 11, 999, -1, 'invalid', 'bad_value', 'special-chars!@#'],
47
+ ['z_index_0', 'z_index_11', 'z_index_999', 'z_index_-1', 'z_index_invalid', 'z_index_bad_value', 'z_index_special-chars!@#'],
48
+ undefined,
49
+ { skipKnownIssues: true }
50
+ )
@@ -0,0 +1 @@
1
+ import{jsx}from"react/jsx-runtime";import{useMemo}from"react";import{b as buildAriaProps,a as buildDataProps,c as buildHtmlProps,d as classnames,e as buildCss,g as globalProps}from"./globalProps-DgYwLYNx.js";import Highcharts from"highcharts";import HighchartsReact from"highcharts-react-official";import{t as typography,c as colors}from"./lib-NLxTo8OB.js";import highchartsMore from"highcharts/highcharts-more";import solidGauge from"highcharts/modules/solid-gauge";const barGraphTheme={title:{text:"",style:{color:colors.text_lt_default,fontFamily:typography.font_family_base,fontWeight:typography.bold,fontSize:typography.heading_3}},subtitle:{text:"",style:{fontFamily:typography.font_family_base,color:colors.text_lt_light,fontWeight:typography.regular,fontSize:typography.text_base}},chart:{type:"column"},tooltip:{backgroundColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[0,colors.bg_dark],[1,colors.bg_dark]]},style:{fontFamily:typography.font_family_base,color:colors.text_dk_default,fontWeight:typography.regular,fontSize:typography.text_smaller}},colors:[colors.data_1,colors.data_2,colors.data_3,colors.data_4,colors.data_5,colors.data_6,colors.data_7],credits:{enabled:false},legend:{enabled:false,itemStyle:{color:colors.text_lt_light,fill:colors.text_lt_light,fontSize:typography.text_smaller}},xAxis:{gridLineWidth:0,lineColor:colors.border_light,tickColor:colors.border_light,labels:{style:{fontFamily:typography.font_family_base,color:colors.text_lt_lighter,fontWeight:typography.bold,fontSize:typography.text_smaller}},title:{style:{color:colors.text_lt_default,fontFamily:typography.font_family_base,fontWeight:typography.regular,fontSize:typography.heading_4}}},yAxis:{alternateGridColor:void 0,minorTickInterval:null,gridLineColor:colors.border_light,minorGridLineColor:colors.border_light,lineWidth:0,tickWidth:0,labels:{style:{fontFamily:typography.font_family_base,color:colors.text_lt_lighter,fontWeight:typography.bold,fontSize:typography.text_smaller}},title:{style:{fontFamily:typography.font_family_base,color:colors.text_lt_lighter,fontWeight:typography.bold,fontSize:typography.text_smaller}}}};const PbBarGraph=props=>{const{aria:aria={},data:data={},id:id,htmlOptions:htmlOptions={},options:options,className:className}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_pb_bar_graph"),globalProps(props),className);const mergedOptions=useMemo((()=>{if(!options||typeof options!=="object"){console.error("❌ Invalid options passed to <PbBarGraph />",options);return{}}return Highcharts.merge({},barGraphTheme,options)}),[options]);return jsx("div",{children:jsx(HighchartsReact,{containerProps:{className:classnames(classes),id:id,...ariaProps,...dataProps,...htmlProps},highcharts:Highcharts,options:mergedOptions})})};const pbCircleChartTheme={title:{text:"",style:{color:colors.text_lt_default,fontFamily:typography.font_family_base,fontWeight:typography.bold,fontSize:typography.heading_3}},chart:{type:"pie"},tooltip:{backgroundColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[0,colors.bg_dark],[1,colors.bg_dark]]},pointFormat:'<span style="font-weight: bold; color:{point.color};">●</span>{point.name}: <b>{point.y}</b>',followPointer:true,shadow:false,borderWidth:0,borderRadius:10,style:{fontFamily:typography.font_family_base,color:colors.text_dk_default,fontWeight:typography.regular,fontSize:typography.text_smaller}},plotOptions:{pie:{dataLabels:{enabled:false,connectorShape:"straight",connectorWidth:3,format:"<div>{point.name}</div>",style:{fontFamily:typography.font_family_base,fontSize:typography.text_smaller,color:colors.text_lt_light,fontWeight:typography.regular,textOutline:"2px $white"}},innerSize:"50%",borderColor:"",borderWidth:null,colors:[colors.data_1,colors.data_2,colors.data_3,colors.data_4,colors.data_5,colors.data_6,colors.data_7]}},legend:{layout:"horizontal",align:"center",verticalAlign:"bottom",itemStyle:{fontFamily:typography.font_family_base,color:colors.text_lt_light,fontWeight:typography.regular,fontSize:typography.text_smaller},itemHoverStyle:{color:colors.text_lt_default},itemHiddenStyle:{color:colors.text_lt_lighter}},credits:{enabled:false}};const PbCircleChart=props=>{const{aria:aria={},className:className,data:data={},id:id,htmlOptions:htmlOptions={},options:options}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_pb_circle_chart"),globalProps(props),className);const mergedOptions=useMemo((()=>{if(!options||typeof options!=="object"){console.error("❌ Invalid options passed to <PbCircleChart />",options);return{}}return Highcharts.merge({},pbCircleChartTheme,options)}),[options]);return jsx("div",{children:jsx(HighchartsReact,{containerProps:{className:classnames(classes),id:id,...ariaProps,...dataProps,...htmlProps},highcharts:Highcharts,options:mergedOptions})})};const pbGaugeGraphTheme={title:{text:"",style:{fontFamily:typography.font_family_base,fontSize:typography.text_larger}},chart:{type:"solidgauge",events:{render(){this.container;const arc=this.container.querySelector("path.gauge-pane");if(arc)arc.setAttribute("stroke-linejoin","round")}}},pane:{size:"90%",startAngle:-100,endAngle:100,background:[{borderWidth:20,innerRadius:"90%",outerRadius:"90%",shape:"arc",className:"gauge-pane",borderColor:colors.border_light,borderRadius:"50%"}]},tooltip:{backgroundColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[0,colors.bg_dark],[1,colors.bg_dark]]},pointFormat:'<span style="font-weight: bold; color:{point.color};">●</span>{point.name}: <b>{point.y}</b>',followPointer:true,shadow:false,borderWidth:0,borderRadius:10,style:{fontFamily:typography.font_family_base,color:colors.text_dk_default,fontWeight:typography.regular,fontSize:typography.text_smaller}},yAxis:{min:0,max:100,lineWidth:0,tickPositions:[]},plotOptions:{solidgauge:{borderColor:colors.data_1,borderWidth:20,color:colors.data_1,radius:90,innerRadius:"90%",y:-26,dataLabels:{borderWidth:0,color:colors.text_lt_default,enabled:true,format:'<span class="fix">{y:,f}</span>',style:{fontFamily:typography.font_family_base,fontWeight:typography.regular,fontSize:typography.heading_2},y:-26}}},credits:{enabled:false}};const PbGaugeChart=props=>{const{aria:aria={},className:className,data:data={},htmlOptions:htmlOptions={},id:id,ref:ref,options:options={}}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_pb_gauge_chart"),globalProps(props),className);const mergedOptions=useMemo((()=>{if(!options||typeof options!=="object"){console.error("❌ Invalid options passed to <PbLineGraph />",options);return{}}return Highcharts.merge({},pbGaugeGraphTheme,options)}),[options]);highchartsMore(Highcharts);solidGauge(Highcharts);return jsx("div",{children:jsx(HighchartsReact,{containerProps:{className:classnames(classes),id:id,ref:ref,...ariaProps,...dataProps,...htmlProps},highcharts:Highcharts,options:mergedOptions})})};const pbLineGraphTheme={title:{text:"",style:{color:colors.text_lt_default,fontFamily:typography.font_family_base,fontWeight:typography.bold,fontSize:typography.heading_3}},subtitle:{text:"",style:{fontFamily:typography.font_family_base,color:colors.text_lt_light,fontWeight:typography.regular,fontSize:typography.text_base}},chart:{type:"line"},tooltip:{backgroundColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[0,colors.bg_dark],[1,colors.bg_dark]]},followPointer:true,shadow:false,borderWidth:0,borderRadius:10,style:{fontFamily:typography.font_family_base,color:colors.text_dk_default,fontWeight:typography.regular,fontSize:typography.text_smaller}},plotOptions:{line:{dataLabels:{enabled:false}}},credits:{enabled:false},legend:{enabled:false,itemStyle:{fontFamily:typography.font_family_base,color:colors.text_lt_light,fontWeight:typography.regular,fontSize:typography.text_smaller},itemHoverStyle:{color:colors.text_lt_default},itemHiddenStyle:{color:colors.text_lt_lighter}},colors:[colors.data_1,colors.data_2,colors.data_3,colors.data_4,colors.data_5,colors.data_6,colors.data_7],xAxis:{gridLineWidth:0,lineColor:colors.border_light,tickColor:colors.border_light,labels:{style:{fontFamily:typography.font_family_base,color:colors.text_lt_lighter,fontWeight:typography.bold,fontSize:typography.text_smaller}},title:{style:{color:colors.text_lt_default,fontFamily:typography.font_family_base,fontWeight:typography.regular,fontSize:typography.heading_4}}},yAxis:{alternateGridColor:void 0,minorTickInterval:null,gridLineColor:colors.border_light,minorGridLineColor:colors.border_light,lineWidth:0,tickWidth:0,tickPixelInterval:50,labels:{style:{fontFamily:typography.font_family_base,color:colors.text_lt_lighter,fontWeight:typography.bold,fontSize:typography.text_smaller}},title:{style:{fontFamily:typography.font_family_base,color:colors.text_lt_lighter,fontWeight:typography.bold,fontSize:typography.text_smaller}}}};const PbLineGraph=props=>{const{aria:aria={},className:className,data:data={},id:id,htmlOptions:htmlOptions={},options:options}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_pb_line_graph"),globalProps(props),className);const mergedOptions=useMemo((()=>{if(!options||typeof options!=="object"){console.error("❌ Invalid options passed to <PbLineGraph />",options);return{}}return Highcharts.merge({},pbLineGraphTheme,options)}),[options]);return jsx("div",{children:jsx(HighchartsReact,{containerProps:{className:classnames(classes),id:id,...ariaProps,...dataProps,...htmlProps},highcharts:Highcharts,options:mergedOptions})})};export{PbBarGraph as P,PbCircleChart as a,PbGaugeChart as b,PbLineGraph as c};