playbook_ui 15.8.0.pre.rc.1 → 16.0.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.
- checksums.yaml +4 -4
- data/app/pb_kits/playbook/_playbook.scss +0 -4
- data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_description.md +6 -1
- data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_description.md +6 -1
- data/app/pb_kits/playbook/pb_pb_circle_chart/pb_circle_chart.test.jsx +1 -1
- data/app/pb_kits/playbook/pb_pb_gauge_chart/docs/_description.md +6 -1
- data/app/pb_kits/playbook/pb_pb_gauge_chart/pb_gauge_chart.test.jsx +1 -1
- data/app/pb_kits/playbook/pb_pb_line_graph/docs/_description.md +6 -1
- data/app/pb_kits/playbook/pb_pb_line_graph/pb_line_graph.test.jsx +1 -1
- data/app/pb_kits/playbook/utilities/test/globalProps/alignContent.test.js +37 -50
- data/app/pb_kits/playbook/utilities/test/globalProps/alignItems.test.js +38 -50
- data/app/pb_kits/playbook/utilities/test/globalProps/alignSelf.test.js +37 -50
- data/app/pb_kits/playbook/utilities/test/globalProps/display.test.js +37 -51
- data/app/pb_kits/playbook/utilities/test/globalProps/flex.test.js +44 -76
- data/app/pb_kits/playbook/utilities/test/globalProps/flexDirection.test.js +37 -50
- data/app/pb_kits/playbook/utilities/test/globalProps/flexGrow.test.js +35 -48
- data/app/pb_kits/playbook/utilities/test/globalProps/flexShrink.test.js +35 -48
- data/app/pb_kits/playbook/utilities/test/globalProps/flexWrap.test.js +37 -50
- data/app/pb_kits/playbook/utilities/test/globalProps/globalPropsTestHelper.js +373 -0
- data/app/pb_kits/playbook/utilities/test/globalProps/justifyContent.test.js +37 -50
- data/app/pb_kits/playbook/utilities/test/globalProps/justifySelf.test.js +37 -50
- data/app/pb_kits/playbook/utilities/test/globalProps/order.test.js +36 -48
- data/app/pb_kits/playbook/utilities/test/globalProps/truncate.test.js +30 -18
- data/dist/chunks/_pb_line_graph-ByQFYuFO.js +1 -0
- data/dist/chunks/_typeahead-Bl8_gWmz.js +1 -0
- data/dist/chunks/componentRegistry-DzmmLR2x.js +1 -0
- data/dist/chunks/globalProps-D6R2eJnp.js +6 -0
- data/dist/chunks/lib-C8h70OzX.js +29 -0
- data/dist/chunks/vendor.js +4 -4
- data/dist/menu.yml +0 -29
- data/dist/playbook-rails-react-bindings.js +1 -1
- data/dist/playbook-rails.js +1 -1
- data/dist/playbook.css +1 -1
- data/lib/playbook/version.rb +1 -1
- metadata +8 -147
- data/app/pb_kits/playbook/pb_bar_graph/_bar_graph.scss +0 -6
- data/app/pb_kits/playbook/pb_bar_graph/_bar_graph.tsx +0 -196
- data/app/pb_kits/playbook/pb_bar_graph/barGraph.test.js +0 -31
- data/app/pb_kits/playbook/pb_bar_graph/barGraphSettings.js +0 -32
- data/app/pb_kits/playbook/pb_bar_graph/barGraphTheme.ts +0 -106
- data/app/pb_kits/playbook/pb_bar_graph/bar_graph.html.erb +0 -1
- data/app/pb_kits/playbook/pb_bar_graph/bar_graph.rb +0 -98
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_colors.html.erb +0 -26
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_colors.jsx +0 -55
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_colors.md +0 -2
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom_rails.html.erb +0 -42
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom_rails.md +0 -2
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_default.html.erb +0 -26
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_default.jsx +0 -55
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_height.html.erb +0 -26
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_height.jsx +0 -69
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_height.md +0 -3
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_horizontal.html.erb +0 -58
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_horizontal.jsx +0 -64
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend.html.erb +0 -14
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend.jsx +0 -40
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_non_clickable.html.erb +0 -15
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_non_clickable.jsx +0 -48
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_position.html.erb +0 -62
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_position.jsx +0 -136
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_position.md +0 -17
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_negative_numbers.html.erb +0 -23
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_negative_numbers.jsx +0 -52
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_secondary_y_axis.html.erb +0 -26
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_secondary_y_axis.jsx +0 -86
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_secondary_y_axis.md +0 -3
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_spline.html.erb +0 -20
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_spline.jsx +0 -46
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_spline.md +0 -2
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_stacked.html.erb +0 -22
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_stacked.jsx +0 -55
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_stacked.md +0 -1
- data/app/pb_kits/playbook/pb_bar_graph/docs/_description.md +0 -1
- data/app/pb_kits/playbook/pb_bar_graph/docs/example.yml +0 -28
- data/app/pb_kits/playbook/pb_bar_graph/docs/index.js +0 -11
- data/app/pb_kits/playbook/pb_circle_chart/ChartsTypes.ts +0 -2
- data/app/pb_kits/playbook/pb_circle_chart/_circle_chart.scss +0 -16
- data/app/pb_kits/playbook/pb_circle_chart/_circle_chart.tsx +0 -228
- data/app/pb_kits/playbook/pb_circle_chart/circleChart.test.js +0 -45
- data/app/pb_kits/playbook/pb_circle_chart/circleChartTheme.ts +0 -88
- data/app/pb_kits/playbook/pb_circle_chart/circle_chart.html.erb +0 -10
- data/app/pb_kits/playbook/pb_circle_chart/circle_chart.rb +0 -99
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_block.html.erb +0 -26
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_block.jsx +0 -88
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_colors.html.erb +0 -20
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_colors.jsx +0 -44
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_colors_rails.md +0 -2
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_colors_react.md +0 -2
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_custom_tooltip.html.erb +0 -20
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_custom_tooltip.jsx +0 -43
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_custom_tooltip.md +0 -5
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_default.html.erb +0 -19
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_default.jsx +0 -38
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_inner_sizes.html.erb +0 -136
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_inner_sizes.jsx +0 -152
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.html.erb +0 -86
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.jsx +0 -142
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.md +0 -14
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_live_data.jsx +0 -63
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_rounded.html.erb +0 -22
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_rounded.jsx +0 -45
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_labels.html.erb +0 -37
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_labels.jsx +0 -61
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_legend_kit.html.erb +0 -22
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_legend_kit.jsx +0 -41
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_title.html.erb +0 -38
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_title.jsx +0 -55
- data/app/pb_kits/playbook/pb_circle_chart/docs/_description.md +0 -1
- data/app/pb_kits/playbook/pb_circle_chart/docs/example.yml +0 -26
- data/app/pb_kits/playbook/pb_circle_chart/docs/index.js +0 -11
- data/app/pb_kits/playbook/pb_dashboard/commonSettings.js +0 -104
- data/app/pb_kits/playbook/pb_dashboard/pbChartsColorsHelper.ts +0 -16
- data/app/pb_kits/playbook/pb_dashboard/pbChartsDarkTheme.ts +0 -174
- data/app/pb_kits/playbook/pb_dashboard/pbChartsLightTheme.ts +0 -173
- data/app/pb_kits/playbook/pb_dashboard/themeTypes.ts +0 -20
- data/app/pb_kits/playbook/pb_gauge/_gauge.scss +0 -49
- data/app/pb_kits/playbook/pb_gauge/_gauge.tsx +0 -215
- data/app/pb_kits/playbook/pb_gauge/docs/_description.md +0 -1
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_colors.html.erb +0 -12
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_colors.jsx +0 -36
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_colors_rails.md +0 -2
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_colors_react.md +0 -2
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_complex.html.erb +0 -32
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_complex.jsx +0 -146
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_complex_rails.md +0 -1
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_complex_react.md +0 -1
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_default.html.erb +0 -11
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_default.jsx +0 -30
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_disable_animation.html.erb +0 -12
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_disable_animation.jsx +0 -36
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_full_circle.html.erb +0 -14
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_full_circle.jsx +0 -49
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_height.html.erb +0 -15
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_height.jsx +0 -62
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_live_data.jsx +0 -76
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_min_max.html.erb +0 -15
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_min_max.jsx +0 -54
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_min_max.md +0 -1
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_sizing.html.erb +0 -27
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_sizing.jsx +0 -80
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_sizing.md +0 -2
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_title.html.erb +0 -14
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_title.jsx +0 -38
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_units.html.erb +0 -29
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_units.jsx +0 -72
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_units_react.md +0 -1
- data/app/pb_kits/playbook/pb_gauge/docs/example.yml +0 -27
- data/app/pb_kits/playbook/pb_gauge/docs/index.js +0 -11
- data/app/pb_kits/playbook/pb_gauge/gauge.html.erb +0 -2
- data/app/pb_kits/playbook/pb_gauge/gauge.rb +0 -56
- data/app/pb_kits/playbook/pb_gauge/gauge.test.js +0 -35
- data/app/pb_kits/playbook/pb_gauge/gaugeTheme.ts +0 -91
- data/app/pb_kits/playbook/pb_line_graph/_line_graph.scss +0 -3
- data/app/pb_kits/playbook/pb_line_graph/_line_graph.tsx +0 -166
- data/app/pb_kits/playbook/pb_line_graph/docs/_description.md +0 -1
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_colors.html.erb +0 -26
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_colors.jsx +0 -56
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_colors_rails.md +0 -2
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_colors_react.md +0 -3
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_default.html.erb +0 -26
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_default.jsx +0 -52
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_height.html.erb +0 -26
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_height.jsx +0 -70
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_height.md +0 -3
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend.html.erb +0 -15
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend.jsx +0 -43
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_nonclickable.html.erb +0 -16
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_nonclickable.jsx +0 -49
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_position.html.erb +0 -62
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_position.jsx +0 -129
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_position.md +0 -14
- data/app/pb_kits/playbook/pb_line_graph/docs/example.yml +0 -18
- data/app/pb_kits/playbook/pb_line_graph/docs/index.js +0 -6
- data/app/pb_kits/playbook/pb_line_graph/lineGraph.test.js +0 -52
- data/app/pb_kits/playbook/pb_line_graph/lineGraphSettings.js +0 -30
- data/app/pb_kits/playbook/pb_line_graph/lineGraphTheme.ts +0 -125
- data/app/pb_kits/playbook/pb_line_graph/line_graph.html.erb +0 -1
- data/app/pb_kits/playbook/pb_line_graph/line_graph.rb +0 -93
- data/dist/chunks/_typeahead-D0GNUBXn.js +0 -6
- data/dist/chunks/lib-DxCgrqqG.js +0 -29
data/lib/playbook/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: playbook_ui
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 16.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Power UX
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2026-01-
|
|
12
|
+
date: 2026-01-09 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: actionpack
|
|
@@ -531,46 +531,6 @@ files:
|
|
|
531
531
|
- app/pb_kits/playbook/pb_badge/docs/_description.md
|
|
532
532
|
- app/pb_kits/playbook/pb_badge/docs/example.yml
|
|
533
533
|
- app/pb_kits/playbook/pb_badge/docs/index.js
|
|
534
|
-
- app/pb_kits/playbook/pb_bar_graph/_bar_graph.scss
|
|
535
|
-
- app/pb_kits/playbook/pb_bar_graph/_bar_graph.tsx
|
|
536
|
-
- app/pb_kits/playbook/pb_bar_graph/barGraph.test.js
|
|
537
|
-
- app/pb_kits/playbook/pb_bar_graph/barGraphSettings.js
|
|
538
|
-
- app/pb_kits/playbook/pb_bar_graph/barGraphTheme.ts
|
|
539
|
-
- app/pb_kits/playbook/pb_bar_graph/bar_graph.html.erb
|
|
540
|
-
- app/pb_kits/playbook/pb_bar_graph/bar_graph.rb
|
|
541
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_colors.html.erb
|
|
542
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_colors.jsx
|
|
543
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_colors.md
|
|
544
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom_rails.html.erb
|
|
545
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom_rails.md
|
|
546
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_default.html.erb
|
|
547
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_default.jsx
|
|
548
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_height.html.erb
|
|
549
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_height.jsx
|
|
550
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_height.md
|
|
551
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_horizontal.html.erb
|
|
552
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_horizontal.jsx
|
|
553
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend.html.erb
|
|
554
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend.jsx
|
|
555
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_non_clickable.html.erb
|
|
556
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_non_clickable.jsx
|
|
557
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_position.html.erb
|
|
558
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_position.jsx
|
|
559
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_position.md
|
|
560
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_negative_numbers.html.erb
|
|
561
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_negative_numbers.jsx
|
|
562
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_secondary_y_axis.html.erb
|
|
563
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_secondary_y_axis.jsx
|
|
564
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_secondary_y_axis.md
|
|
565
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_spline.html.erb
|
|
566
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_spline.jsx
|
|
567
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_spline.md
|
|
568
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_stacked.html.erb
|
|
569
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_stacked.jsx
|
|
570
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_stacked.md
|
|
571
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_description.md
|
|
572
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/example.yml
|
|
573
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/index.js
|
|
574
534
|
- app/pb_kits/playbook/pb_body/_body.scss
|
|
575
535
|
- app/pb_kits/playbook/pb_body/_body.tsx
|
|
576
536
|
- app/pb_kits/playbook/pb_body/_body_mixins.scss
|
|
@@ -779,41 +739,6 @@ files:
|
|
|
779
739
|
- app/pb_kits/playbook/pb_checkbox/docs/example.yml
|
|
780
740
|
- app/pb_kits/playbook/pb_checkbox/docs/index.js
|
|
781
741
|
- app/pb_kits/playbook/pb_checkbox/index.js
|
|
782
|
-
- app/pb_kits/playbook/pb_circle_chart/ChartsTypes.ts
|
|
783
|
-
- app/pb_kits/playbook/pb_circle_chart/_circle_chart.scss
|
|
784
|
-
- app/pb_kits/playbook/pb_circle_chart/_circle_chart.tsx
|
|
785
|
-
- app/pb_kits/playbook/pb_circle_chart/circleChart.test.js
|
|
786
|
-
- app/pb_kits/playbook/pb_circle_chart/circleChartTheme.ts
|
|
787
|
-
- app/pb_kits/playbook/pb_circle_chart/circle_chart.html.erb
|
|
788
|
-
- app/pb_kits/playbook/pb_circle_chart/circle_chart.rb
|
|
789
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_block.html.erb
|
|
790
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_block.jsx
|
|
791
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_colors.html.erb
|
|
792
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_colors.jsx
|
|
793
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_colors_rails.md
|
|
794
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_colors_react.md
|
|
795
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_custom_tooltip.html.erb
|
|
796
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_custom_tooltip.jsx
|
|
797
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_custom_tooltip.md
|
|
798
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_default.html.erb
|
|
799
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_default.jsx
|
|
800
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_inner_sizes.html.erb
|
|
801
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_inner_sizes.jsx
|
|
802
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.html.erb
|
|
803
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.jsx
|
|
804
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.md
|
|
805
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_live_data.jsx
|
|
806
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_rounded.html.erb
|
|
807
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_rounded.jsx
|
|
808
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_labels.html.erb
|
|
809
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_labels.jsx
|
|
810
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_legend_kit.html.erb
|
|
811
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_legend_kit.jsx
|
|
812
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_title.html.erb
|
|
813
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_title.jsx
|
|
814
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/_description.md
|
|
815
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/example.yml
|
|
816
|
-
- app/pb_kits/playbook/pb_circle_chart/docs/index.js
|
|
817
742
|
- app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.scss
|
|
818
743
|
- app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.tsx
|
|
819
744
|
- app/pb_kits/playbook/pb_circle_icon_button/circle_icon_button.html.erb
|
|
@@ -972,11 +897,6 @@ files:
|
|
|
972
897
|
- app/pb_kits/playbook/pb_currency/docs/_description.md
|
|
973
898
|
- app/pb_kits/playbook/pb_currency/docs/example.yml
|
|
974
899
|
- app/pb_kits/playbook/pb_currency/docs/index.js
|
|
975
|
-
- app/pb_kits/playbook/pb_dashboard/commonSettings.js
|
|
976
|
-
- app/pb_kits/playbook/pb_dashboard/pbChartsColorsHelper.ts
|
|
977
|
-
- app/pb_kits/playbook/pb_dashboard/pbChartsDarkTheme.ts
|
|
978
|
-
- app/pb_kits/playbook/pb_dashboard/pbChartsLightTheme.ts
|
|
979
|
-
- app/pb_kits/playbook/pb_dashboard/themeTypes.ts
|
|
980
900
|
- app/pb_kits/playbook/pb_dashboard_value/_dashboard_value.scss
|
|
981
901
|
- app/pb_kits/playbook/pb_dashboard_value/_dashboard_value.tsx
|
|
982
902
|
- app/pb_kits/playbook/pb_dashboard_value/_dashboard_value_mixins.scss
|
|
@@ -1740,43 +1660,6 @@ files:
|
|
|
1740
1660
|
- app/pb_kits/playbook/pb_form_pill/docs/index.js
|
|
1741
1661
|
- app/pb_kits/playbook/pb_form_pill/form_pill.html.erb
|
|
1742
1662
|
- app/pb_kits/playbook/pb_form_pill/form_pill.rb
|
|
1743
|
-
- app/pb_kits/playbook/pb_gauge/_gauge.scss
|
|
1744
|
-
- app/pb_kits/playbook/pb_gauge/_gauge.tsx
|
|
1745
|
-
- app/pb_kits/playbook/pb_gauge/docs/_description.md
|
|
1746
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_colors.html.erb
|
|
1747
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_colors.jsx
|
|
1748
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_colors_rails.md
|
|
1749
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_colors_react.md
|
|
1750
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_complex.html.erb
|
|
1751
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_complex.jsx
|
|
1752
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_complex_rails.md
|
|
1753
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_complex_react.md
|
|
1754
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_default.html.erb
|
|
1755
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_default.jsx
|
|
1756
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_disable_animation.html.erb
|
|
1757
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_disable_animation.jsx
|
|
1758
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_full_circle.html.erb
|
|
1759
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_full_circle.jsx
|
|
1760
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_height.html.erb
|
|
1761
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_height.jsx
|
|
1762
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_live_data.jsx
|
|
1763
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_min_max.html.erb
|
|
1764
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_min_max.jsx
|
|
1765
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_min_max.md
|
|
1766
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_sizing.html.erb
|
|
1767
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_sizing.jsx
|
|
1768
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_sizing.md
|
|
1769
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_title.html.erb
|
|
1770
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_title.jsx
|
|
1771
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_units.html.erb
|
|
1772
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_units.jsx
|
|
1773
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_units_react.md
|
|
1774
|
-
- app/pb_kits/playbook/pb_gauge/docs/example.yml
|
|
1775
|
-
- app/pb_kits/playbook/pb_gauge/docs/index.js
|
|
1776
|
-
- app/pb_kits/playbook/pb_gauge/gauge.html.erb
|
|
1777
|
-
- app/pb_kits/playbook/pb_gauge/gauge.rb
|
|
1778
|
-
- app/pb_kits/playbook/pb_gauge/gauge.test.js
|
|
1779
|
-
- app/pb_kits/playbook/pb_gauge/gaugeTheme.ts
|
|
1780
1663
|
- app/pb_kits/playbook/pb_hashtag/_hashtag.scss
|
|
1781
1664
|
- app/pb_kits/playbook/pb_hashtag/_hashtag.tsx
|
|
1782
1665
|
- app/pb_kits/playbook/pb_hashtag/docs/_description.md
|
|
@@ -2082,32 +1965,6 @@ files:
|
|
|
2082
1965
|
- app/pb_kits/playbook/pb_lightbox/hooks/useWindowSize.ts
|
|
2083
1966
|
- app/pb_kits/playbook/pb_lightbox/lightbox.scss
|
|
2084
1967
|
- app/pb_kits/playbook/pb_lightbox/lightbox.test.jsx
|
|
2085
|
-
- app/pb_kits/playbook/pb_line_graph/_line_graph.scss
|
|
2086
|
-
- app/pb_kits/playbook/pb_line_graph/_line_graph.tsx
|
|
2087
|
-
- app/pb_kits/playbook/pb_line_graph/docs/_description.md
|
|
2088
|
-
- app/pb_kits/playbook/pb_line_graph/docs/_line_graph_colors.html.erb
|
|
2089
|
-
- app/pb_kits/playbook/pb_line_graph/docs/_line_graph_colors.jsx
|
|
2090
|
-
- app/pb_kits/playbook/pb_line_graph/docs/_line_graph_colors_rails.md
|
|
2091
|
-
- app/pb_kits/playbook/pb_line_graph/docs/_line_graph_colors_react.md
|
|
2092
|
-
- app/pb_kits/playbook/pb_line_graph/docs/_line_graph_default.html.erb
|
|
2093
|
-
- app/pb_kits/playbook/pb_line_graph/docs/_line_graph_default.jsx
|
|
2094
|
-
- app/pb_kits/playbook/pb_line_graph/docs/_line_graph_height.html.erb
|
|
2095
|
-
- app/pb_kits/playbook/pb_line_graph/docs/_line_graph_height.jsx
|
|
2096
|
-
- app/pb_kits/playbook/pb_line_graph/docs/_line_graph_height.md
|
|
2097
|
-
- app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend.html.erb
|
|
2098
|
-
- app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend.jsx
|
|
2099
|
-
- app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_nonclickable.html.erb
|
|
2100
|
-
- app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_nonclickable.jsx
|
|
2101
|
-
- app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_position.html.erb
|
|
2102
|
-
- app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_position.jsx
|
|
2103
|
-
- app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_position.md
|
|
2104
|
-
- app/pb_kits/playbook/pb_line_graph/docs/example.yml
|
|
2105
|
-
- app/pb_kits/playbook/pb_line_graph/docs/index.js
|
|
2106
|
-
- app/pb_kits/playbook/pb_line_graph/lineGraph.test.js
|
|
2107
|
-
- app/pb_kits/playbook/pb_line_graph/lineGraphSettings.js
|
|
2108
|
-
- app/pb_kits/playbook/pb_line_graph/lineGraphTheme.ts
|
|
2109
|
-
- app/pb_kits/playbook/pb_line_graph/line_graph.html.erb
|
|
2110
|
-
- app/pb_kits/playbook/pb_line_graph/line_graph.rb
|
|
2111
1968
|
- app/pb_kits/playbook/pb_link/_link.scss
|
|
2112
1969
|
- app/pb_kits/playbook/pb_link/_link.tsx
|
|
2113
1970
|
- app/pb_kits/playbook/pb_link/docs/_link_color.html.erb
|
|
@@ -3949,6 +3806,7 @@ files:
|
|
|
3949
3806
|
- app/pb_kits/playbook/utilities/test/globalProps/flexGrow.test.js
|
|
3950
3807
|
- app/pb_kits/playbook/utilities/test/globalProps/flexShrink.test.js
|
|
3951
3808
|
- app/pb_kits/playbook/utilities/test/globalProps/flexWrap.test.js
|
|
3809
|
+
- app/pb_kits/playbook/utilities/test/globalProps/globalPropsTestHelper.js
|
|
3952
3810
|
- app/pb_kits/playbook/utilities/test/globalProps/hover.test.js
|
|
3953
3811
|
- app/pb_kits/playbook/utilities/test/globalProps/justifyContent.test.js
|
|
3954
3812
|
- app/pb_kits/playbook/utilities/test/globalProps/justifySelf.test.js
|
|
@@ -3956,9 +3814,12 @@ files:
|
|
|
3956
3814
|
- app/pb_kits/playbook/utilities/test/globalProps/truncate.test.js
|
|
3957
3815
|
- app/pb_kits/playbook/utilities/text.ts
|
|
3958
3816
|
- app/pb_kits/playbook/utilities/validEmojiChecker.ts
|
|
3959
|
-
- dist/chunks/
|
|
3817
|
+
- dist/chunks/_pb_line_graph-ByQFYuFO.js
|
|
3818
|
+
- dist/chunks/_typeahead-Bl8_gWmz.js
|
|
3819
|
+
- dist/chunks/componentRegistry-DzmmLR2x.js
|
|
3820
|
+
- dist/chunks/globalProps-D6R2eJnp.js
|
|
3960
3821
|
- dist/chunks/lazysizes-B7xYodB-.js
|
|
3961
|
-
- dist/chunks/lib-
|
|
3822
|
+
- dist/chunks/lib-C8h70OzX.js
|
|
3962
3823
|
- dist/chunks/vendor.js
|
|
3963
3824
|
- dist/menu.yml
|
|
3964
3825
|
- dist/playbook-rails-react-bindings.js
|
|
@@ -1,196 +0,0 @@
|
|
|
1
|
-
import React, { useState, useEffect } from "react";
|
|
2
|
-
import { globalProps } from "../utilities/globalProps";
|
|
3
|
-
import { buildAriaProps, buildDataProps, buildHtmlProps } from "../utilities/props";
|
|
4
|
-
import { deprecatedKitWarning } from "../utilities/deprecated";
|
|
5
|
-
|
|
6
|
-
import HighchartsReact from "highcharts-react-official";
|
|
7
|
-
import Highcharts from "highcharts";
|
|
8
|
-
import { highchartsTheme } from "../pb_dashboard/pbChartsLightTheme";
|
|
9
|
-
import { highchartsDarkTheme } from "../pb_dashboard/pbChartsDarkTheme";
|
|
10
|
-
import mapColors from "../pb_dashboard/pbChartsColorsHelper";
|
|
11
|
-
import { merge } from '../utilities/object'
|
|
12
|
-
|
|
13
|
-
import classnames from "classnames";
|
|
14
|
-
|
|
15
|
-
type BarGraphProps = {
|
|
16
|
-
align?: "left" | "right" | "center";
|
|
17
|
-
axisTitle: { name: string; }[] | string;
|
|
18
|
-
dark?: boolean;
|
|
19
|
-
xAxisCategories: [];
|
|
20
|
-
yAxisMin: number;
|
|
21
|
-
yAxisMax: number;
|
|
22
|
-
chartData: { name: string; data: number[], yAxis: number }[];
|
|
23
|
-
className?: string;
|
|
24
|
-
customOptions?: Partial<Highcharts.Options>;
|
|
25
|
-
id: string;
|
|
26
|
-
pointStart: number;
|
|
27
|
-
htmlOptions?: {[key: string]: string | number | boolean | (() => void)},
|
|
28
|
-
subTitle?: string;
|
|
29
|
-
title: string;
|
|
30
|
-
type?: string;
|
|
31
|
-
legend?: boolean;
|
|
32
|
-
toggleLegendClick?: boolean;
|
|
33
|
-
height?: string;
|
|
34
|
-
colors: string[];
|
|
35
|
-
layout?: "horizontal" | "vertical" | "proximate";
|
|
36
|
-
verticalAlign?: "top" | "middle" | "bottom";
|
|
37
|
-
x?: number;
|
|
38
|
-
y?: number;
|
|
39
|
-
aria?: { [key: string]: string };
|
|
40
|
-
data?: { [key: string]: string };
|
|
41
|
-
stacking?: "normal" | "percent"
|
|
42
|
-
axisFormat?: { format: string; }[] | string;
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
const BarGraph = ({
|
|
47
|
-
aria = {},
|
|
48
|
-
data = {},
|
|
49
|
-
align = "center",
|
|
50
|
-
axisTitle,
|
|
51
|
-
dark = false,
|
|
52
|
-
chartData,
|
|
53
|
-
className = "pb_bar_graph",
|
|
54
|
-
colors,
|
|
55
|
-
htmlOptions = {},
|
|
56
|
-
customOptions = {},
|
|
57
|
-
axisFormat,
|
|
58
|
-
id,
|
|
59
|
-
pointStart,
|
|
60
|
-
stacking,
|
|
61
|
-
subTitle,
|
|
62
|
-
type = "column",
|
|
63
|
-
title = "Title",
|
|
64
|
-
xAxisCategories,
|
|
65
|
-
yAxisMin,
|
|
66
|
-
yAxisMax,
|
|
67
|
-
legend = false,
|
|
68
|
-
toggleLegendClick = true,
|
|
69
|
-
height,
|
|
70
|
-
layout = "horizontal",
|
|
71
|
-
verticalAlign = "bottom",
|
|
72
|
-
x = 0,
|
|
73
|
-
y = 0,
|
|
74
|
-
...props
|
|
75
|
-
}: BarGraphProps): React.ReactElement => {
|
|
76
|
-
const ariaProps = buildAriaProps(aria);
|
|
77
|
-
const dataProps = buildDataProps(data)
|
|
78
|
-
const htmlProps = buildHtmlProps(htmlOptions);
|
|
79
|
-
const setupTheme = () => {
|
|
80
|
-
dark
|
|
81
|
-
? Highcharts.setOptions(highchartsDarkTheme)
|
|
82
|
-
: Highcharts.setOptions(highchartsTheme);
|
|
83
|
-
};
|
|
84
|
-
setupTheme();
|
|
85
|
-
|
|
86
|
-
const staticOptions = {
|
|
87
|
-
title: {
|
|
88
|
-
text: title,
|
|
89
|
-
},
|
|
90
|
-
chart: {
|
|
91
|
-
height: height,
|
|
92
|
-
type: type,
|
|
93
|
-
},
|
|
94
|
-
subtitle: {
|
|
95
|
-
text: subTitle,
|
|
96
|
-
},
|
|
97
|
-
yAxis: [{
|
|
98
|
-
labels: {
|
|
99
|
-
format: typeof axisFormat === 'string' ? axisFormat : (axisFormat && axisFormat[0] ? axisFormat[0].format : "")
|
|
100
|
-
|
|
101
|
-
},
|
|
102
|
-
min: yAxisMin,
|
|
103
|
-
max: yAxisMax,
|
|
104
|
-
opposite: false,
|
|
105
|
-
title: {
|
|
106
|
-
text: Array.isArray(axisTitle) ? (axisTitle.length > 0 ? axisTitle[0].name : null) : axisTitle,
|
|
107
|
-
},
|
|
108
|
-
plotLines: typeof yAxisMin !== 'undefined' && yAxisMin !== null ? [] : [{
|
|
109
|
-
value: 0,
|
|
110
|
-
zIndex: 10,
|
|
111
|
-
color: "#E4E8F0"
|
|
112
|
-
}],
|
|
113
|
-
}],
|
|
114
|
-
xAxis: {
|
|
115
|
-
categories: xAxisCategories,
|
|
116
|
-
},
|
|
117
|
-
legend: {
|
|
118
|
-
enabled: legend,
|
|
119
|
-
align: align,
|
|
120
|
-
verticalAlign: verticalAlign,
|
|
121
|
-
layout: layout,
|
|
122
|
-
x: x,
|
|
123
|
-
y: y,
|
|
124
|
-
},
|
|
125
|
-
colors:
|
|
126
|
-
colors !== undefined && colors.length > 0
|
|
127
|
-
? mapColors(colors)
|
|
128
|
-
: highchartsTheme.colors,
|
|
129
|
-
plotOptions: {
|
|
130
|
-
series: {
|
|
131
|
-
stacking: stacking,
|
|
132
|
-
pointStart: pointStart,
|
|
133
|
-
borderWidth: stacking ? 0 : "",
|
|
134
|
-
events: {},
|
|
135
|
-
dataLabels: {
|
|
136
|
-
enabled: false,
|
|
137
|
-
},
|
|
138
|
-
},
|
|
139
|
-
},
|
|
140
|
-
series: chartData,
|
|
141
|
-
credits: false,
|
|
142
|
-
};
|
|
143
|
-
|
|
144
|
-
if (Array.isArray(axisTitle) && axisTitle.length > 1 && axisTitle[1].name) {
|
|
145
|
-
staticOptions.yAxis.push({
|
|
146
|
-
labels: {
|
|
147
|
-
format: typeof axisFormat === 'string' ? axisFormat : axisFormat[1].format,
|
|
148
|
-
},
|
|
149
|
-
min: yAxisMin,
|
|
150
|
-
max: yAxisMax,
|
|
151
|
-
opposite: true,
|
|
152
|
-
title: {
|
|
153
|
-
text: axisTitle[1].name,
|
|
154
|
-
},
|
|
155
|
-
plotLines: typeof yAxisMin !== 'undefined' && yAxisMin !== null ? [] : [{
|
|
156
|
-
value: 0,
|
|
157
|
-
zIndex: 10,
|
|
158
|
-
color: "#E4E8F0"
|
|
159
|
-
}],
|
|
160
|
-
});
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
if (!toggleLegendClick) {
|
|
164
|
-
staticOptions.plotOptions.series.events = { legendItemClick: () => false };
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
const filteredProps: any = {...props};
|
|
168
|
-
delete filteredProps.verticalAlign;
|
|
169
|
-
|
|
170
|
-
const [options, setOptions] = useState({});
|
|
171
|
-
|
|
172
|
-
useEffect(() => {
|
|
173
|
-
setOptions(merge(staticOptions, customOptions));
|
|
174
|
-
}, [chartData]);
|
|
175
|
-
|
|
176
|
-
useEffect(() => {
|
|
177
|
-
// Warn about deprecated kit
|
|
178
|
-
deprecatedKitWarning('BarGraph', 'Please use "PbBarGraph" instead.');
|
|
179
|
-
}, []);
|
|
180
|
-
|
|
181
|
-
return (
|
|
182
|
-
<HighchartsReact
|
|
183
|
-
containerProps={{
|
|
184
|
-
className: classnames(globalProps(filteredProps), className),
|
|
185
|
-
id: id,
|
|
186
|
-
...ariaProps,
|
|
187
|
-
...dataProps,
|
|
188
|
-
...htmlProps
|
|
189
|
-
}}
|
|
190
|
-
highcharts={Highcharts}
|
|
191
|
-
options={options}
|
|
192
|
-
/>
|
|
193
|
-
);
|
|
194
|
-
};
|
|
195
|
-
|
|
196
|
-
export default BarGraph;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { render, screen } from '../utilities/test-utils';
|
|
3
|
-
import BarGraph from './_bar_graph';
|
|
4
|
-
|
|
5
|
-
beforeEach(() => {
|
|
6
|
-
// Silences error logs within the test suite.
|
|
7
|
-
jest.spyOn(console, 'error');
|
|
8
|
-
jest.spyOn(console, 'warn');
|
|
9
|
-
console.error.mockImplementation(() => {});
|
|
10
|
-
console.warn.mockImplementation(() => {});
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
afterEach(() => {
|
|
14
|
-
console.error.mockRestore();
|
|
15
|
-
console.warn.mockRestore();
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
const testId = 'bargraph1';
|
|
19
|
-
|
|
20
|
-
test('bargraph uses exact classname', () => {
|
|
21
|
-
render(
|
|
22
|
-
<BarGraph
|
|
23
|
-
className='super_important_class'
|
|
24
|
-
data={{ testid: testId }}
|
|
25
|
-
id='bar-default'
|
|
26
|
-
/>
|
|
27
|
-
);
|
|
28
|
-
|
|
29
|
-
const kit = screen.getByTestId(testId);
|
|
30
|
-
expect(kit).toHaveClass('super_important_class');
|
|
31
|
-
});
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { commonSettings } from '../pb_dashboard/commonSettings.js'
|
|
2
|
-
import typography from '../tokens/exports/_typography.module.scss'
|
|
3
|
-
|
|
4
|
-
const sizeColumns = function(highchart) {
|
|
5
|
-
const column = highchart.plotOptions.column
|
|
6
|
-
const series = highchart.plotOptions.series
|
|
7
|
-
|
|
8
|
-
column.borderRadius = 0
|
|
9
|
-
column.pointPadding = 0.3
|
|
10
|
-
column.groupPadding = 0
|
|
11
|
-
|
|
12
|
-
series.borderWidth = 0
|
|
13
|
-
series.shadow = false
|
|
14
|
-
series.pointPadding = 0.25
|
|
15
|
-
series.groupPadding = 0
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
const styleDataLabels = (highchart) => {
|
|
19
|
-
const series = highchart.plotOptions.series
|
|
20
|
-
|
|
21
|
-
series.dataLabels.style.fontFamily = typography.font_family_base
|
|
22
|
-
series.dataLabels.style.fontSize = typography.text_small
|
|
23
|
-
series.dataLabels.style.fontWeight = typography.bold
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
const barGraphSettings = function(highchart) {
|
|
27
|
-
commonSettings(highchart)
|
|
28
|
-
sizeColumns(highchart)
|
|
29
|
-
styleDataLabels(highchart)
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export default barGraphSettings
|
|
@@ -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) %>
|