playbook_ui_docs 15.7.0.pre.alpha.play270013253 → 15.7.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 (206) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_background_control_rails.html.erb +5 -11
  3. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_background_control_rails.md +1 -7
  4. data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +1 -4
  5. data/app/pb_kits/playbook/pb_advanced_table/docs/index.js +1 -3
  6. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_colors.html.erb +26 -0
  7. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_colors.jsx +55 -0
  8. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_colors.md +2 -0
  9. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom_rails.html.erb +42 -0
  10. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom_rails.md +2 -0
  11. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_default.html.erb +26 -0
  12. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_default.jsx +55 -0
  13. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_height.html.erb +26 -0
  14. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_height.jsx +69 -0
  15. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_height.md +3 -0
  16. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_horizontal.html.erb +58 -0
  17. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_horizontal.jsx +64 -0
  18. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend.html.erb +14 -0
  19. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend.jsx +40 -0
  20. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_non_clickable.html.erb +15 -0
  21. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_non_clickable.jsx +48 -0
  22. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_position.html.erb +62 -0
  23. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_position.jsx +136 -0
  24. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_position.md +17 -0
  25. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_negative_numbers.html.erb +23 -0
  26. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_negative_numbers.jsx +52 -0
  27. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_secondary_y_axis.html.erb +26 -0
  28. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_secondary_y_axis.jsx +86 -0
  29. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_secondary_y_axis.md +3 -0
  30. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_spline.html.erb +20 -0
  31. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_spline.jsx +46 -0
  32. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_spline.md +2 -0
  33. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_stacked.html.erb +22 -0
  34. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_stacked.jsx +55 -0
  35. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_stacked.md +1 -0
  36. data/app/pb_kits/playbook/pb_bar_graph/docs/_description.md +1 -0
  37. data/app/pb_kits/playbook/pb_bar_graph/docs/example.yml +28 -0
  38. data/app/pb_kits/playbook/pb_bar_graph/docs/index.js +11 -0
  39. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_block.html.erb +26 -0
  40. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_block.jsx +88 -0
  41. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_colors.html.erb +20 -0
  42. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_colors.jsx +44 -0
  43. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_colors_rails.md +2 -0
  44. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_colors_react.md +2 -0
  45. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_custom_tooltip.html.erb +20 -0
  46. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_custom_tooltip.jsx +43 -0
  47. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_custom_tooltip.md +5 -0
  48. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_default.html.erb +19 -0
  49. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_default.jsx +38 -0
  50. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_inner_sizes.html.erb +136 -0
  51. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_inner_sizes.jsx +152 -0
  52. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.html.erb +86 -0
  53. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.jsx +142 -0
  54. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.md +14 -0
  55. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_live_data.jsx +63 -0
  56. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_rounded.html.erb +22 -0
  57. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_rounded.jsx +45 -0
  58. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_labels.html.erb +37 -0
  59. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_labels.jsx +61 -0
  60. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_legend_kit.html.erb +22 -0
  61. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_legend_kit.jsx +41 -0
  62. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_title.html.erb +38 -0
  63. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_title.jsx +55 -0
  64. data/app/pb_kits/playbook/pb_circle_chart/docs/_description.md +1 -0
  65. data/app/pb_kits/playbook/pb_circle_chart/docs/example.yml +26 -0
  66. data/app/pb_kits/playbook/pb_circle_chart/docs/index.js +11 -0
  67. data/app/pb_kits/playbook/pb_contact/docs/example.yml +0 -2
  68. data/app/pb_kits/playbook/pb_contact/docs/index.js +0 -1
  69. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_range_pattern_rails.html.erb +14 -23
  70. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_range_pattern_rails.md +1 -1
  71. data/app/pb_kits/playbook/pb_dialog/docs/example.yml +0 -4
  72. data/app/pb_kits/playbook/pb_dialog/docs/index.js +1 -3
  73. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_default_rails.html.erb +5 -7
  74. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_display_rails.html.erb +1 -3
  75. data/app/pb_kits/playbook/pb_dropdown/docs/example.yml +0 -5
  76. data/app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb +1 -1
  77. data/app/pb_kits/playbook/pb_form/docs/_form_form_with_validate.html.erb +1 -2
  78. data/app/pb_kits/playbook/pb_form/docs/example.yml +0 -1
  79. data/app/pb_kits/playbook/pb_gauge/docs/_description.md +1 -0
  80. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_colors.html.erb +12 -0
  81. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_colors.jsx +36 -0
  82. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_colors_rails.md +2 -0
  83. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_colors_react.md +2 -0
  84. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_complex.html.erb +32 -0
  85. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_complex.jsx +146 -0
  86. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_complex_rails.md +1 -0
  87. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_complex_react.md +1 -0
  88. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_default.html.erb +11 -0
  89. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_default.jsx +30 -0
  90. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_disable_animation.html.erb +12 -0
  91. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_disable_animation.jsx +36 -0
  92. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_full_circle.html.erb +14 -0
  93. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_full_circle.jsx +49 -0
  94. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_height.html.erb +15 -0
  95. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_height.jsx +62 -0
  96. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_live_data.jsx +76 -0
  97. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_min_max.html.erb +15 -0
  98. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_min_max.jsx +54 -0
  99. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_min_max.md +1 -0
  100. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_sizing.html.erb +27 -0
  101. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_sizing.jsx +80 -0
  102. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_sizing.md +2 -0
  103. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_title.html.erb +14 -0
  104. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_title.jsx +38 -0
  105. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_units.html.erb +29 -0
  106. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_units.jsx +72 -0
  107. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_units_react.md +1 -0
  108. data/app/pb_kits/playbook/pb_gauge/docs/example.yml +27 -0
  109. data/app/pb_kits/playbook/pb_gauge/docs/index.js +11 -0
  110. data/app/pb_kits/playbook/pb_line_graph/docs/_description.md +1 -0
  111. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_colors.html.erb +26 -0
  112. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_colors.jsx +56 -0
  113. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_colors_rails.md +2 -0
  114. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_colors_react.md +3 -0
  115. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_default.html.erb +26 -0
  116. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_default.jsx +52 -0
  117. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_height.html.erb +26 -0
  118. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_height.jsx +70 -0
  119. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_height.md +3 -0
  120. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend.html.erb +15 -0
  121. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend.jsx +43 -0
  122. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_nonclickable.html.erb +16 -0
  123. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_nonclickable.jsx +49 -0
  124. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_position.html.erb +62 -0
  125. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_position.jsx +129 -0
  126. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_position.md +14 -0
  127. data/app/pb_kits/playbook/pb_line_graph/docs/example.yml +18 -0
  128. data/app/pb_kits/playbook/pb_line_graph/docs/index.js +6 -0
  129. data/app/pb_kits/playbook/pb_popover/docs/_popover_append_to.html.erb +2 -2
  130. data/app/pb_kits/playbook/pb_popover/docs/_popover_append_to.jsx +2 -3
  131. data/app/pb_kits/playbook/pb_table/docs/example.yml +0 -4
  132. data/app/pb_kits/playbook/pb_table/docs/index.js +0 -2
  133. data/app/pb_kits/playbook/pb_text_input/docs/example.yml +0 -3
  134. data/app/pb_kits/playbook/pb_text_input/docs/index.js +0 -1
  135. data/app/pb_kits/playbook/pb_timeline/docs/_timeline_with_date.md +1 -1
  136. data/app/pb_kits/playbook/pb_timeline/docs/example.yml +0 -2
  137. data/app/pb_kits/playbook/pb_timeline/docs/index.js +0 -1
  138. metadata +113 -70
  139. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_background_colors_rails.html.erb +0 -43
  140. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_background_colors_rails.md +0 -1
  141. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_background.jsx +0 -54
  142. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_background.md +0 -9
  143. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_background_multi.jsx +0 -80
  144. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_background_multi.md +0 -3
  145. data/app/pb_kits/playbook/pb_contact/docs/_contact_unstyled.html.erb +0 -33
  146. data/app/pb_kits/playbook/pb_contact/docs/_contact_unstyled.jsx +0 -46
  147. data/app/pb_kits/playbook/pb_contact/docs/_contact_unstyled_rails.md +0 -2
  148. data/app/pb_kits/playbook/pb_contact/docs/_contact_unstyled_react.md +0 -2
  149. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_closeable.html.erb +0 -24
  150. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_closeable.jsx +0 -60
  151. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_closeable.md +0 -3
  152. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_overflow_visible.html.erb +0 -71
  153. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_overflow_visible.jsx +0 -57
  154. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_overflow_visible_rails.md +0 -1
  155. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_overflow_visible_react.md +0 -1
  156. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_default_dates.html.erb +0 -19
  157. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_rails.html.erb +0 -12
  158. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_rails.md +0 -26
  159. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_range_end_rails.html.erb +0 -19
  160. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_range_end_rails.md +0 -1
  161. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_with_date_pickers_default_rails.html.erb +0 -30
  162. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_with_date_pickers_default_rails.md +0 -3
  163. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_with_date_pickers_rails.html.erb +0 -29
  164. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_with_date_pickers_rails.md +0 -13
  165. data/app/pb_kits/playbook/pb_form/docs/_form_with_required_indicator.html.erb +0 -14
  166. data/app/pb_kits/playbook/pb_form/docs/_form_with_required_indicator.md +0 -3
  167. data/app/pb_kits/playbook/pb_table/docs/_table_with_filter_variant.jsx +0 -134
  168. data/app/pb_kits/playbook/pb_table/docs/_table_with_filter_variant.md +0 -34
  169. data/app/pb_kits/playbook/pb_table/docs/_table_with_filter_variant_rails.html.erb +0 -101
  170. data/app/pb_kits/playbook/pb_table/docs/_table_with_filter_variant_rails.md +0 -33
  171. data/app/pb_kits/playbook/pb_table/docs/_table_with_filter_variant_with_pagination.jsx +0 -180
  172. data/app/pb_kits/playbook/pb_table/docs/_table_with_filter_variant_with_pagination.md +0 -3
  173. data/app/pb_kits/playbook/pb_table/docs/_table_with_filter_variant_with_pagination_rails.html.erb +0 -122
  174. data/app/pb_kits/playbook/pb_table/docs/_table_with_filter_variant_with_pagination_rails.md +0 -3
  175. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_required_indicator.html.erb +0 -6
  176. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_required_indicator.jsx +0 -25
  177. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_required_indicator.md +0 -3
  178. data/app/pb_kits/playbook/pb_time_picker/docs/_time_picker_24_hour.html.erb +0 -2
  179. data/app/pb_kits/playbook/pb_time_picker/docs/_time_picker_24_hour.jsx +0 -16
  180. data/app/pb_kits/playbook/pb_time_picker/docs/_time_picker_24_hour.md +0 -1
  181. data/app/pb_kits/playbook/pb_time_picker/docs/_time_picker_default.html.erb +0 -1
  182. data/app/pb_kits/playbook/pb_time_picker/docs/_time_picker_default.jsx +0 -13
  183. data/app/pb_kits/playbook/pb_time_picker/docs/_time_picker_default.md +0 -1
  184. data/app/pb_kits/playbook/pb_time_picker/docs/_time_picker_default_time.html.erb +0 -4
  185. data/app/pb_kits/playbook/pb_time_picker/docs/_time_picker_default_time.jsx +0 -29
  186. data/app/pb_kits/playbook/pb_time_picker/docs/_time_picker_default_time.md +0 -1
  187. data/app/pb_kits/playbook/pb_time_picker/docs/_time_picker_disabled.html.erb +0 -13
  188. data/app/pb_kits/playbook/pb_time_picker/docs/_time_picker_disabled.jsx +0 -23
  189. data/app/pb_kits/playbook/pb_time_picker/docs/_time_picker_error.html.erb +0 -5
  190. data/app/pb_kits/playbook/pb_time_picker/docs/_time_picker_error.jsx +0 -15
  191. data/app/pb_kits/playbook/pb_time_picker/docs/_time_picker_input_options.html.erb +0 -14
  192. data/app/pb_kits/playbook/pb_time_picker/docs/_time_picker_label.html.erb +0 -2
  193. data/app/pb_kits/playbook/pb_time_picker/docs/_time_picker_label.jsx +0 -15
  194. data/app/pb_kits/playbook/pb_time_picker/docs/_time_picker_min_max_time.html.erb +0 -42
  195. data/app/pb_kits/playbook/pb_time_picker/docs/_time_picker_min_max_time.jsx +0 -52
  196. data/app/pb_kits/playbook/pb_time_picker/docs/_time_picker_min_max_time.md +0 -1
  197. data/app/pb_kits/playbook/pb_time_picker/docs/_time_picker_on_handler.jsx +0 -45
  198. data/app/pb_kits/playbook/pb_time_picker/docs/_time_picker_on_handler.md +0 -1
  199. data/app/pb_kits/playbook/pb_time_picker/docs/_time_picker_timezone.html.erb +0 -3
  200. data/app/pb_kits/playbook/pb_time_picker/docs/_time_picker_timezone.jsx +0 -21
  201. data/app/pb_kits/playbook/pb_time_picker/docs/_time_picker_timezone.md +0 -1
  202. data/app/pb_kits/playbook/pb_time_picker/docs/example.yml +0 -24
  203. data/app/pb_kits/playbook/pb_time_picker/docs/index.js +0 -9
  204. data/app/pb_kits/playbook/pb_timeline/docs/_timeline_show_current_year.html.erb +0 -60
  205. data/app/pb_kits/playbook/pb_timeline/docs/_timeline_show_current_year.jsx +0 -118
  206. data/app/pb_kits/playbook/pb_timeline/docs/_timeline_show_current_year.md +0 -1
@@ -0,0 +1,43 @@
1
+ import React from 'react'
2
+ import lineGraphTheme from '../lineGraphTheme'
3
+ import Highcharts from "highcharts"
4
+ import HighchartsReact from "highcharts-react-official"
5
+
6
+ const data = [{
7
+ name: 'Number of Installations',
8
+ data: [43934, 52503, 57177, 69658, 97031, 119931, 137133, 154175],
9
+ }]
10
+
11
+ const categories = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug']
12
+
13
+ const chartOptions = {
14
+ series: data,
15
+ title: { text: "Line Graph with Legend" },
16
+ xAxis: {
17
+ categories: categories,
18
+ },
19
+ yAxis: {
20
+ min: 0,
21
+ title: {
22
+ text: "Number of Employees",
23
+ },
24
+ },
25
+ legend: {
26
+ enabled: true,
27
+ },
28
+ }
29
+
30
+ const LineGraphLegend = () => {
31
+ const options = Highcharts.merge({}, lineGraphTheme, chartOptions)
32
+
33
+ return(
34
+ <div>
35
+ <HighchartsReact
36
+ highcharts={Highcharts}
37
+ options={options}
38
+ />
39
+ </div>
40
+ )
41
+ }
42
+
43
+ export default LineGraphLegend
@@ -0,0 +1,16 @@
1
+ <% data = [{
2
+ name: 'Number of Installations',
3
+ data: [43934, 52503, 57177, 69658, 97031, 119931, 137133, 154175]
4
+ }] %>
5
+
6
+ <%= pb_rails("line_graph", props: {
7
+ id: "line-test-3",
8
+ gradient: false,
9
+ chart_data: data,
10
+ x_axis_categories: ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug'],
11
+ title: 'Line Graph with Legend Non Clickable',
12
+ axis_title: 'Number of Employees',
13
+ legend: true,
14
+ toggle_legend_click: false,
15
+ }) %>
16
+
@@ -0,0 +1,49 @@
1
+ import React from 'react'
2
+ import lineGraphTheme from '../lineGraphTheme'
3
+ import Highcharts from "highcharts"
4
+ import HighchartsReact from "highcharts-react-official"
5
+
6
+ const data = [{
7
+ name: 'Number of Installations',
8
+ data: [43934, 52503, 57177, 69658, 97031, 119931, 137133, 154175],
9
+ }]
10
+
11
+ const categories = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug']
12
+
13
+ const chartOptions = {
14
+ title: {
15
+ text: 'Line Graph with Legend Non Clickable',
16
+ },
17
+ xAxis: {
18
+ categories: categories,
19
+ },
20
+ yAxis: {
21
+ title: {
22
+ text: 'Number of Employees',
23
+ },
24
+ },
25
+ legend: {
26
+ enabled: true,
27
+ events: {
28
+ itemClick: function () {
29
+ return false;
30
+ }
31
+ }
32
+ },
33
+ series: data
34
+ }
35
+
36
+ const LineGraphLegendNonclickable = () => {
37
+ const options = Highcharts.merge({}, lineGraphTheme, chartOptions)
38
+
39
+ return (
40
+ <div>
41
+ <HighchartsReact
42
+ highcharts={Highcharts}
43
+ options={options}
44
+ />
45
+ </div>
46
+ )
47
+ }
48
+
49
+ export default LineGraphLegendNonclickable
@@ -0,0 +1,62 @@
1
+ <% data = [{
2
+ name: 'Installation',
3
+ data: [43934, 52503, 57177, 69658, 97031, 119931, 137133, 154175]
4
+ }, {
5
+ name: 'Manufacturing',
6
+ data: [24916, 24064, 29742, 29851, 32490, 30282, 38121, 40434]
7
+ }, {
8
+ name: 'Sales & Distribution',
9
+ data: [11744, 17722, 16005, 19771, 20185, 24377, 32147, 39387]
10
+ }, {
11
+ name: 'Project Development',
12
+ data: [nil, nil, 7988, 12169, 15112, 22452, 34400, 34227]
13
+ }, {
14
+ name: 'Other',
15
+ data: [12908, 5948, 8105, 11248, 8989, 11816, 18274, 18111]
16
+ }] %>
17
+
18
+ <%= pb_rails("title", props: {size: 4, text: "align | vertical_align", padding_top: "sm", padding_bottom: "sm"})%>
19
+
20
+ <%= pb_rails("line_graph", props: {
21
+ id: "legend-position-line",
22
+ gradient: false,
23
+ chart_data: data,
24
+ x_axis_categories:['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug'],
25
+ title: 'Alignment of Legend',
26
+ axis_title: 'Number of Employees',
27
+ legend: true,
28
+ align: 'right',
29
+ vertical_align: 'top',
30
+ padding_bottom: "sm",
31
+ }) %>
32
+
33
+ <%= pb_rails("title", props: {size: 4, text: "layout", padding_top: "sm", padding_bottom: "sm"})%>
34
+
35
+ <%= pb_rails("line_graph", props: {
36
+ id: "legend-position-line-1",
37
+ gradient: false,
38
+ chart_data: data,
39
+ x_axis_categories:['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug'],
40
+ title: 'Layout of Legend',
41
+ axis_title: 'Number of Employees',
42
+ legend: true,
43
+ layout: 'vertical',
44
+ padding_top: "sm",
45
+ padding_bottom: "sm",
46
+ }) %>
47
+
48
+ <%= pb_rails("title", props: {size: 4, text: "x | y", padding_top: "sm", padding_bottom: "sm"})%>
49
+
50
+ <%= pb_rails("line_graph", props: {
51
+ id: "legend-position-line-2",
52
+ gradient: false,
53
+ chart_data: data,
54
+ x_axis_categories:['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug'],
55
+ title: 'Offset of Legend',
56
+ axis_title: 'Number of Employees',
57
+ legend: true,
58
+ layout: "vertical",
59
+ x: 100,
60
+ y: 10,
61
+ padding_top: "sm",
62
+ }) %>
@@ -0,0 +1,129 @@
1
+ import React from 'react'
2
+ import lineGraphTheme from '../lineGraphTheme'
3
+ import Highcharts from "highcharts"
4
+ import HighchartsReact from "highcharts-react-official"
5
+ import Title from '../../pb_title/_title'
6
+
7
+ const data = [{
8
+ name: 'Installation',
9
+ data: [43934, 52503, 57177, 69658, 97031, 119931, 137133, 154175],
10
+ }, {
11
+ name: 'Manufacturing',
12
+ data: [24916, 24064, 29742, 29851, 32490, 30282, 38121, 40434],
13
+ }, {
14
+ name: 'Sales & Distribution',
15
+ data: [11744, 17722, 16005, 19771, 20185, 24377, 32147, 39387],
16
+ }, {
17
+ name: 'Project Development',
18
+ data: [null, null, 7988, 12169, 15112, 22452, 34400, 34227],
19
+ }, {
20
+ name: 'Other',
21
+ data: [12908, 5948, 8105, 11248, 8989, 11816, 18274, 18111],
22
+ }]
23
+
24
+ const categories = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug']
25
+
26
+ const LineGraphLegendPosition = (props) => {
27
+ const chartOptionsFirst = {
28
+ title: { text: "Alignment of Legend" },
29
+ series: data,
30
+ xAxis: {
31
+ categories: categories,
32
+ },
33
+ yAxis: {
34
+ min: 0,
35
+ title: {
36
+ text: "Number of Employees",
37
+ },
38
+ },
39
+ legend: {
40
+ enabled: true,
41
+ align: 'right',
42
+ verticalAlign: 'top'
43
+ },
44
+ }
45
+
46
+ const chartOptionsSecond = {
47
+ title: { text: "Layout of Legend" },
48
+ series: data,
49
+ xAxis: {
50
+ categories: categories,
51
+ },
52
+ yAxis: {
53
+ min: 0,
54
+ title: {
55
+ text: "Number of Employees",
56
+ },
57
+ },
58
+ legend: {
59
+ enabled: true,
60
+ layout: 'vertical'
61
+ },
62
+ }
63
+
64
+ const chartOptionsThird = {
65
+ title: { text: "Offset of Legend" },
66
+ series: data,
67
+ xAxis: {
68
+ categories: categories,
69
+ },
70
+ yAxis: {
71
+ min: 0,
72
+ title: {
73
+ text: "Number of Employees",
74
+ },
75
+ },
76
+ legend: {
77
+ enabled: true,
78
+ layout: 'vertical',
79
+ x: 100,
80
+ y: 10
81
+ },
82
+ }
83
+
84
+ const optionsFirst = Highcharts.merge({}, lineGraphTheme, chartOptionsFirst)
85
+ const optionsSecond = Highcharts.merge({}, lineGraphTheme, chartOptionsSecond)
86
+ const optionsThird = Highcharts.merge({}, lineGraphTheme, chartOptionsThird)
87
+
88
+ return (
89
+ <div>
90
+ <Title
91
+ paddingY="sm"
92
+ size={4}
93
+ tag="h4"
94
+ text="align | verticalAlign"
95
+ {...props}
96
+ />
97
+ <HighchartsReact
98
+ highcharts={Highcharts}
99
+ options={optionsFirst}
100
+ />
101
+
102
+ <Title
103
+ paddingY="sm"
104
+ size={4}
105
+ tag="h4"
106
+ text="layout"
107
+ {...props}
108
+ />
109
+ <HighchartsReact
110
+ highcharts={Highcharts}
111
+ options={optionsSecond}
112
+ />
113
+
114
+ <Title
115
+ paddingY="sm"
116
+ size={4}
117
+ tag="h4"
118
+ text="x | y"
119
+ {...props}
120
+ />
121
+ <HighchartsReact
122
+ highcharts={Highcharts}
123
+ options={optionsThird}
124
+ />
125
+ </div>
126
+ )
127
+ }
128
+
129
+ export default LineGraphLegendPosition
@@ -0,0 +1,14 @@
1
+ ##### Prop
2
+
3
+ `align` **Type**: String | **Values**: left | center | right (defaults to center)
4
+ `verticalAlign` **Type**: String | **Values**: top | middle | bottom (defaults to bottom)
5
+ `layout` **Type**: String | **Values**: horizontal | vertical | proximate (defaults to horizontal)
6
+ `x` **Type**: Number (defaults to 0)
7
+ `y` **Type**: Number (defaults to 0)
8
+
9
+ `layout` determines the position of the legend items
10
+ `layout: proximate` will place the legend items as close as possible to the graphs they're representing. It will also determine whether to place the legend above/below or on the side of the plot area, if the legend is in a corner.
11
+
12
+ `x` offsets the legend relative to its horizontal alignment. Negative x moves it to the left, positive x moves it to the right
13
+
14
+ `y` offsets the legend relative to its vertical alignment. Negative y moves it up, positive y moves it down.
@@ -0,0 +1,18 @@
1
+ examples:
2
+
3
+ rails:
4
+ - line_graph_default: Default
5
+ - line_graph_legend: Legend
6
+ - line_graph_legend_position: Legend Position
7
+ - line_graph_legend_nonclickable: Legend Nonclickable
8
+ - line_graph_height: Height
9
+ - line_graph_colors: Color Overrides
10
+
11
+
12
+ react:
13
+ - line_graph_default: Default
14
+ - line_graph_legend: Legend
15
+ - line_graph_legend_position: Legend Position
16
+ - line_graph_legend_nonclickable: Legend Nonclickable
17
+ - line_graph_height: Height
18
+ - line_graph_colors: Color Overrides
@@ -0,0 +1,6 @@
1
+ export { default as LineGraphDefault } from './_line_graph_default.jsx'
2
+ export { default as LineGraphLegend } from './_line_graph_legend.jsx'
3
+ export { default as LineGraphLegendPosition } from './_line_graph_legend_position.jsx'
4
+ export { default as LineGraphLegendNonclickable } from './_line_graph_legend_nonclickable.jsx'
5
+ export { default as LineGraphHeight } from './_line_graph_height.jsx'
6
+ export { default as LineGraphColors } from './_line_graph_colors.jsx'
@@ -39,8 +39,8 @@
39
39
  tooltip_id: "append-to-tooltip-2",
40
40
  offset: true,
41
41
  position: "top",
42
- append_to: ".pb--page--sideNav",
42
+ append_to: ".kit-show-wrapper",
43
43
  }) do %>
44
- I'm a popover. I have been appended to the .pb--page--sideNav.
44
+ I'm a popover. I have been appended to the .kit-show-wrapper.
45
45
  <% end %>
46
46
  <% end %>
@@ -54,15 +54,14 @@ const PopoverAppendTo = (props) => {
54
54
  <Body text="Click info for more details" />
55
55
  &nbsp;
56
56
  <PbReactPopover
57
- appendTo=".pb--page--sideNav"
57
+ appendTo=".kit-show-wrapper"
58
58
  offset
59
59
  placement="top"
60
60
  reference={selectorPopoverReference}
61
61
  show={showSelectorPopover}
62
- zIndex={10}
63
62
  {...props}
64
63
  >
65
- {'I\'m a popover. I have been appended to the .pb--page--sideNav.'}
64
+ {'I\'m a popover. I have been appended to the .kit-show-wrapper.'}
66
65
  </PbReactPopover>
67
66
  </Flex>
68
67
  </>
@@ -40,8 +40,6 @@ examples:
40
40
  - table_with_selectable_rows: Table with Selectable Rows
41
41
  - table_with_header_style_borderless: Header Style Borderless
42
42
  - table_with_header_style_floating: Header Style Floating
43
- - table_with_filter_variant_rails: Variant with Filter
44
- - table_with_filter_variant_with_pagination_rails: Variant with Filter and Pagination
45
43
 
46
44
  react:
47
45
  - table_sm: Small
@@ -83,5 +81,3 @@ examples:
83
81
  - table_with_selectable_rows: Table with Selectable Rows
84
82
  - table_with_header_style_borderless: Header Style Borderless
85
83
  - table_with_header_style_floating: Header Style Floating
86
- - table_with_filter_variant: Variant with Filter
87
- - table_with_filter_variant_with_pagination: Variant with Filter and Pagination
@@ -38,5 +38,3 @@ export { default as TableWithSelectableRows } from './_table_with_selectable_row
38
38
  export { default as TableWithClickableRows } from './_table_with_clickable_rows.jsx'
39
39
  export { default as TableWithHeaderStyleBorderless } from './_table_with_header_style_borderless.jsx'
40
40
  export { default as TableWithHeaderStyleFloating } from './_table_with_header_style_floating.jsx'
41
- export { default as TableWithFilterVariant } from './_table_with_filter_variant.jsx'
42
- export { default as TableWithFilterVariantWithPagination } from './_table_with_filter_variant_with_pagination.jsx'
@@ -10,8 +10,6 @@ examples:
10
10
  - text_input_options: Input Options
11
11
  - text_input_mask: Mask
12
12
  - text_input_autocomplete: Autocomplete
13
- - text_input_required_indicator: Required Indicator
14
-
15
13
 
16
14
  react:
17
15
  - text_input_default: Default
@@ -24,7 +22,6 @@ examples:
24
22
  - text_input_mask: Mask
25
23
  - text_input_sanitize: Sanitized Masked Input
26
24
  - text_input_autocomplete: Autocomplete
27
- - text_input_required_indicator: Required Indicator
28
25
 
29
26
 
30
27
  swift:
@@ -8,4 +8,3 @@ export { default as TextInputNoLabel } from './_text_input_no_label.jsx'
8
8
  export { default as TextInputMask } from './_text_input_mask.jsx'
9
9
  export { default as TextInputSanitize } from './_text_input_sanitize.jsx'
10
10
  export { default as TextInputAutocomplete } from './_text_input_autocomplete.jsx'
11
- export { default as TextInputRequiredIndicator } from './_text_input_required_indicator.jsx'
@@ -1 +1 @@
1
- Use the optional `showDate` prop to render the timeline kit with a visible date. By default, if the date is from the current year, the year will not be displayed; however, if the date is NOT from the current year, the kit will display the year as well.
1
+ Use the optional `showDate` prop to render the timeline kit with a visible date. If the date is from the current year, the year will not be displayed, however if date is NOT from the current year, the kit will display the year as well.
@@ -5,7 +5,6 @@ examples:
5
5
  - timeline_vertical: Vertical
6
6
  - timeline_with_date: With Date
7
7
  - timeline_with_children: With Children
8
- - timeline_show_current_year: Show Current Year
9
8
  - timeline_with_gap: With Gap
10
9
 
11
10
 
@@ -14,5 +13,4 @@ examples:
14
13
  - timeline_vertical: Vertical
15
14
  - timeline_with_date: With Date
16
15
  - timeline_with_children: With Children
17
- - timeline_show_current_year: Show Current Year
18
16
  - timeline_with_gap: With Gap
@@ -3,5 +3,4 @@ export { default as TimelineVertical } from './_timeline_vertical.jsx'
3
3
  export { default as TimelineWithDate } from './_timeline_with_date.jsx'
4
4
  export { default as TimelineWithChildren } from './_timeline_with_children.jsx'
5
5
  export { default as TimelineWithGap } from './_timeline_with_gap.jsx'
6
- export { default as TimelineShowCurrentYear } from './_timeline_show_current_year.jsx'
7
6