playbook_ui 15.2.0.pre.alpha.advancedtableicons11557 → 15.2.0.pre.alpha.buttonfix11269
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 +6 -4
- data/app/pb_kits/playbook/pb_advanced_table/Components/CustomCell.tsx +1 -3
- data/app/pb_kits/playbook/pb_advanced_table/advanced_table.html.erb +2 -2
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_beta.md +1 -3
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_beta_sort.html.erb +3 -3
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_beta_subrow_headers.html.erb +3 -3
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail_rails.html.erb +2 -2
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling.md +1 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_column_headers_rails.html.erb +2 -2
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_rails.html.erb +2 -2
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_rails.md +1 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_row_styling_rails.md +1 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_row_styling_react.md +1 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_rails.html.erb +2 -2
- data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +0 -3
- data/app/pb_kits/playbook/pb_advanced_table/index.js +1 -5
- data/app/pb_kits/playbook/pb_advanced_table/table_body.rb +6 -6
- data/app/pb_kits/playbook/pb_advanced_table/table_header.rb +6 -6
- data/app/pb_kits/playbook/pb_advanced_table/table_row.html.erb +2 -3
- data/app/pb_kits/playbook/pb_advanced_table/table_row.rb +5 -49
- data/app/pb_kits/playbook/pb_collapsible/__snapshots__/collapsible.test.js.snap +2 -2
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_range_pattern.jsx +1 -1
- data/app/pb_kits/playbook/pb_draggable/_draggable.scss +0 -8
- data/app/pb_kits/playbook/pb_dropdown/index.js +1 -1
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.scss +1 -0
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.tsx +3 -5
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_description.md +0 -2
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/fixed_confirmation_toast.rb +1 -4
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/fixed_confirmation_toast.test.js +0 -10
- data/app/pb_kits/playbook/pb_form/docs/_form_form_with_validate.html.erb +1 -1
- data/app/pb_kits/playbook/pb_icon/_icon.tsx +2 -1
- data/app/pb_kits/playbook/pb_icon/icon.rb +2 -1
- data/app/pb_kits/playbook/pb_list/item.html.erb +1 -1
- data/app/pb_kits/playbook/pb_pb_bar_graph/_pb_bar_graph.tsx +6 -8
- data/app/pb_kits/playbook/pb_pb_bar_graph/pb_bar_graph.rb +10 -7
- data/app/pb_kits/playbook/pb_pb_bar_graph/pbbargraph.test.jsx +1 -73
- data/app/pb_kits/playbook/pb_pb_circle_chart/_pb_circle_chart.tsx +1 -1
- data/app/pb_kits/playbook/pb_pb_circle_chart/pb_circle_chart.rb +10 -7
- data/app/pb_kits/playbook/pb_pb_circle_chart/pb_circle_chart.test.jsx +0 -47
- data/app/pb_kits/playbook/pb_phone_number_input/_phone_number_input.tsx +22 -105
- data/app/pb_kits/playbook/pb_popover/docs/_popover_list.html.erb +2 -2
- data/app/pb_kits/playbook/pb_rich_text_editor/TipTap/Toolbar.tsx +2 -41
- data/app/pb_kits/playbook/pb_rich_text_editor/TipTap/ToolbarDropdown.tsx +0 -1
- data/app/pb_kits/playbook/pb_rich_text_editor/_rich_text_editor.tsx +20 -60
- data/app/pb_kits/playbook/pb_rich_text_editor/_tiptap_styles.scss +0 -36
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/example.yml +2 -8
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/index.js +0 -6
- data/app/pb_kits/playbook/pb_rich_text_editor/rich_text_editor.test.js +1 -127
- data/app/pb_kits/playbook/pb_selectable_list/selectable_list_item.html.erb +1 -1
- data/app/pb_kits/playbook/pb_timeline/_timeline.scss +233 -250
- data/app/pb_kits/playbook/pb_timeline/_timeline.tsx +1 -1
- data/app/pb_kits/playbook/pb_timeline/timeline.test.js +2 -2
- data/app/pb_kits/playbook/tokens/_positioning.scss +0 -1
- data/app/pb_kits/playbook/utilities/_positioning.scss +1 -6
- data/app/pb_kits/playbook/utilities/globalProps.ts +1 -3
- data/dist/chunks/{_line_graph-DtToukzQ.js → _line_graph-BxcVBQsJ.js} +1 -1
- data/dist/chunks/_typeahead-eZENQ_Y_.js +6 -0
- data/dist/chunks/{_weekday_stacked-DWHza5yt.js → _weekday_stacked-BhPyFGlS.js} +3 -3
- data/dist/chunks/vendor.js +1 -1
- data/dist/menu.yml +0 -6
- data/dist/playbook-doc.js +2 -2
- 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/pagination_renderer.rb +2 -2
- data/lib/playbook/pb_forms_helper.rb +6 -7
- data/lib/playbook/version.rb +1 -1
- data/lib/playbook/z_index.rb +1 -1
- metadata +5 -46
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_background_control_rails.html.erb +0 -39
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_background_control_rails.md +0 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_padding_control_per_row_rails.html.erb +0 -51
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_padding_control_per_row_rails.md +0 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_padding_control_rails.html.erb +0 -40
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_padding_control_rails.md +0 -1
- data/app/pb_kits/playbook/pb_pb_line_graph/_pb_line_graph.scss +0 -3
- data/app/pb_kits/playbook/pb_pb_line_graph/_pb_line_graph.tsx +0 -61
- data/app/pb_kits/playbook/pb_pb_line_graph/docs/_description.md +0 -3
- data/app/pb_kits/playbook/pb_pb_line_graph/docs/_pb_line_graph_colors.html.erb +0 -34
- data/app/pb_kits/playbook/pb_pb_line_graph/docs/_pb_line_graph_colors.jsx +0 -52
- data/app/pb_kits/playbook/pb_pb_line_graph/docs/_pb_line_graph_colors.md +0 -5
- data/app/pb_kits/playbook/pb_pb_line_graph/docs/_pb_line_graph_default.html.erb +0 -34
- data/app/pb_kits/playbook/pb_pb_line_graph/docs/_pb_line_graph_default.jsx +0 -45
- data/app/pb_kits/playbook/pb_pb_line_graph/docs/_pb_line_graph_height.html.erb +0 -47
- data/app/pb_kits/playbook/pb_pb_line_graph/docs/_pb_line_graph_height.jsx +0 -64
- data/app/pb_kits/playbook/pb_pb_line_graph/docs/_pb_line_graph_height.md +0 -3
- data/app/pb_kits/playbook/pb_pb_line_graph/docs/_pb_line_graph_legend.html.erb +0 -24
- data/app/pb_kits/playbook/pb_pb_line_graph/docs/_pb_line_graph_legend.jsx +0 -37
- data/app/pb_kits/playbook/pb_pb_line_graph/docs/_pb_line_graph_legend_nonclickable.html.erb +0 -39
- data/app/pb_kits/playbook/pb_pb_line_graph/docs/_pb_line_graph_legend_nonclickable.jsx +0 -45
- data/app/pb_kits/playbook/pb_pb_line_graph/docs/_pb_line_graph_legend_position.html.erb +0 -86
- data/app/pb_kits/playbook/pb_pb_line_graph/docs/_pb_line_graph_legend_position.jsx +0 -116
- data/app/pb_kits/playbook/pb_pb_line_graph/docs/_pb_line_graph_legend_position.md +0 -11
- data/app/pb_kits/playbook/pb_pb_line_graph/docs/example.yml +0 -20
- data/app/pb_kits/playbook/pb_pb_line_graph/docs/index.js +0 -6
- data/app/pb_kits/playbook/pb_pb_line_graph/pbLineGraphTheme.ts +0 -125
- data/app/pb_kits/playbook/pb_pb_line_graph/pb_line_graph.html.erb +0 -1
- data/app/pb_kits/playbook/pb_pb_line_graph/pb_line_graph.rb +0 -25
- data/app/pb_kits/playbook/pb_pb_line_graph/pb_line_graph.test.jsx +0 -110
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_attributes.jsx +0 -38
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_attributes.md +0 -1
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_focus.jsx +0 -34
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_focus.md +0 -1
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_inline.jsx +0 -37
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_inline.md +0 -1
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_simple.jsx +0 -37
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_sticky.jsx +0 -38
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_sticky.md +0 -1
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_templates.jsx +0 -69
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_templates.md +0 -1
- data/dist/chunks/_typeahead-nqpbB2ym.js +0 -6
|
@@ -31,7 +31,7 @@ module Playbook
|
|
|
31
31
|
num = @collection.current_page > 1 && @collection.current_page - 1
|
|
32
32
|
previous_or_next_page(
|
|
33
33
|
num,
|
|
34
|
-
"<svg xmlns='http://www.w3.org/2000/svg' width='
|
|
34
|
+
"<svg xmlns='http://www.w3.org/2000/svg' width='auto' height='auto' viewBox='0 0 30 24' fill='none' class='pb_custom_icon svg-inline--fa pb_icon_kit svg_fw svg_xs' id='' data='{}' aria='{:label=>"away"}' tabindex=''><path d='M8.20312 11.2031L17.2031 2.25C17.625 1.78125 18.3281 1.78125 18.7969 2.25C19.2188 2.67188 19.2188 3.375 18.7969 3.79688L10.5469 12L18.75 20.25C19.2188 20.6719 19.2188 21.375 18.75 21.7969C18.3281 22.2656 17.625 22.2656 17.2031 21.7969L8.20312 12.7969C7.73438 12.375 7.73438 11.6719 8.20312 11.2031Z' fill='currentColor'></path></svg>",
|
|
35
35
|
"prev"
|
|
36
36
|
)
|
|
37
37
|
end
|
|
@@ -40,7 +40,7 @@ module Playbook
|
|
|
40
40
|
num = @collection.current_page < @collection.total_pages && @collection.current_page + 1
|
|
41
41
|
previous_or_next_page(
|
|
42
42
|
num,
|
|
43
|
-
"<svg xmlns='http://www.w3.org/2000/svg' width='
|
|
43
|
+
"<svg xmlns='http://www.w3.org/2000/svg' width='auto' height='auto' viewBox='0 0 30 24' fill='none' class='pb_custom_icon svg-inline--fa pb_icon_kit svg_fw svg_xs' id='' data='{}' aria='{:label=>"away"}' tabindex=''><path d='M21.7969 11.2031C22.2188 11.6719 22.2188 12.375 21.7969 12.7969L12.7969 21.7969C12.3281 22.2656 11.625 22.2656 11.2031 21.7969C10.7344 21.375 10.7344 20.6719 11.2031 20.25L19.4062 12.0469L11.2031 3.79688C10.7344 3.375 10.7344 2.67188 11.2031 2.25C11.625 1.78125 12.3281 1.78125 12.75 2.25L21.7969 11.2031Z' fill='currentColor'></path></svg>",
|
|
44
44
|
"next"
|
|
45
45
|
)
|
|
46
46
|
end
|
|
@@ -41,13 +41,12 @@ module Playbook
|
|
|
41
41
|
builder: ::Playbook::Forms::Builder
|
|
42
42
|
)
|
|
43
43
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
end
|
|
44
|
+
content_for(:pb_js, javascript_tag(<<~JS))
|
|
45
|
+
window.addEventListener("DOMContentLoaded", function() { PbFormValidation.start() })
|
|
46
|
+
window.addEventListener("DOMContentLoaded", () => formHelper())
|
|
47
|
+
JS
|
|
48
|
+
|
|
49
|
+
form_with(**options, &block)
|
|
51
50
|
end
|
|
52
51
|
end
|
|
53
52
|
end
|
data/lib/playbook/version.rb
CHANGED
data/lib/playbook/z_index.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: 15.2.0.pre.alpha.
|
|
4
|
+
version: 15.2.0.pre.alpha.buttonfix11269
|
|
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: 2025-10-
|
|
12
|
+
date: 2025-10-13 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: actionpack
|
|
@@ -273,8 +273,6 @@ files:
|
|
|
273
273
|
- app/pb_kits/playbook/pb_advanced_table/advanced_table.rb
|
|
274
274
|
- app/pb_kits/playbook/pb_advanced_table/advanced_table.test.jsx
|
|
275
275
|
- app/pb_kits/playbook/pb_advanced_table/advanced_table_action_bar.js
|
|
276
|
-
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_background_control_rails.html.erb
|
|
277
|
-
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_background_control_rails.md
|
|
278
276
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_beta.html.erb
|
|
279
277
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_beta.md
|
|
280
278
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_beta_sort.html.erb
|
|
@@ -344,10 +342,6 @@ files:
|
|
|
344
342
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_padding_control.md
|
|
345
343
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_padding_control_per_row.jsx
|
|
346
344
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_padding_control_per_row.md
|
|
347
|
-
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_padding_control_per_row_rails.html.erb
|
|
348
|
-
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_padding_control_per_row_rails.md
|
|
349
|
-
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_padding_control_rails.html.erb
|
|
350
|
-
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_padding_control_rails.md
|
|
351
345
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pagination.jsx
|
|
352
346
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pagination.md
|
|
353
347
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pagination_with_props.jsx
|
|
@@ -2481,30 +2475,6 @@ files:
|
|
|
2481
2475
|
- app/pb_kits/playbook/pb_pb_circle_chart/pb_circle_chart.html.erb
|
|
2482
2476
|
- app/pb_kits/playbook/pb_pb_circle_chart/pb_circle_chart.rb
|
|
2483
2477
|
- app/pb_kits/playbook/pb_pb_circle_chart/pb_circle_chart.test.jsx
|
|
2484
|
-
- app/pb_kits/playbook/pb_pb_line_graph/_pb_line_graph.scss
|
|
2485
|
-
- app/pb_kits/playbook/pb_pb_line_graph/_pb_line_graph.tsx
|
|
2486
|
-
- app/pb_kits/playbook/pb_pb_line_graph/docs/_description.md
|
|
2487
|
-
- app/pb_kits/playbook/pb_pb_line_graph/docs/_pb_line_graph_colors.html.erb
|
|
2488
|
-
- app/pb_kits/playbook/pb_pb_line_graph/docs/_pb_line_graph_colors.jsx
|
|
2489
|
-
- app/pb_kits/playbook/pb_pb_line_graph/docs/_pb_line_graph_colors.md
|
|
2490
|
-
- app/pb_kits/playbook/pb_pb_line_graph/docs/_pb_line_graph_default.html.erb
|
|
2491
|
-
- app/pb_kits/playbook/pb_pb_line_graph/docs/_pb_line_graph_default.jsx
|
|
2492
|
-
- app/pb_kits/playbook/pb_pb_line_graph/docs/_pb_line_graph_height.html.erb
|
|
2493
|
-
- app/pb_kits/playbook/pb_pb_line_graph/docs/_pb_line_graph_height.jsx
|
|
2494
|
-
- app/pb_kits/playbook/pb_pb_line_graph/docs/_pb_line_graph_height.md
|
|
2495
|
-
- app/pb_kits/playbook/pb_pb_line_graph/docs/_pb_line_graph_legend.html.erb
|
|
2496
|
-
- app/pb_kits/playbook/pb_pb_line_graph/docs/_pb_line_graph_legend.jsx
|
|
2497
|
-
- app/pb_kits/playbook/pb_pb_line_graph/docs/_pb_line_graph_legend_nonclickable.html.erb
|
|
2498
|
-
- app/pb_kits/playbook/pb_pb_line_graph/docs/_pb_line_graph_legend_nonclickable.jsx
|
|
2499
|
-
- app/pb_kits/playbook/pb_pb_line_graph/docs/_pb_line_graph_legend_position.html.erb
|
|
2500
|
-
- app/pb_kits/playbook/pb_pb_line_graph/docs/_pb_line_graph_legend_position.jsx
|
|
2501
|
-
- app/pb_kits/playbook/pb_pb_line_graph/docs/_pb_line_graph_legend_position.md
|
|
2502
|
-
- app/pb_kits/playbook/pb_pb_line_graph/docs/example.yml
|
|
2503
|
-
- app/pb_kits/playbook/pb_pb_line_graph/docs/index.js
|
|
2504
|
-
- app/pb_kits/playbook/pb_pb_line_graph/pbLineGraphTheme.ts
|
|
2505
|
-
- app/pb_kits/playbook/pb_pb_line_graph/pb_line_graph.html.erb
|
|
2506
|
-
- app/pb_kits/playbook/pb_pb_line_graph/pb_line_graph.rb
|
|
2507
|
-
- app/pb_kits/playbook/pb_pb_line_graph/pb_line_graph.test.jsx
|
|
2508
2478
|
- app/pb_kits/playbook/pb_person/_person.scss
|
|
2509
2479
|
- app/pb_kits/playbook/pb_person/_person.tsx
|
|
2510
2480
|
- app/pb_kits/playbook/pb_person/docs/_description.md
|
|
@@ -2730,20 +2700,9 @@ files:
|
|
|
2730
2700
|
- app/pb_kits/playbook/pb_rich_text_editor/_tiptap_styles.scss
|
|
2731
2701
|
- app/pb_kits/playbook/pb_rich_text_editor/_trix_styles.scss
|
|
2732
2702
|
- app/pb_kits/playbook/pb_rich_text_editor/docs/_description.md
|
|
2733
|
-
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_attributes.jsx
|
|
2734
|
-
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_attributes.md
|
|
2735
2703
|
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_default.jsx
|
|
2736
2704
|
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_default.md
|
|
2737
|
-
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_focus.jsx
|
|
2738
|
-
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_focus.md
|
|
2739
|
-
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_inline.jsx
|
|
2740
|
-
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_inline.md
|
|
2741
2705
|
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_preview.jsx
|
|
2742
|
-
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_simple.jsx
|
|
2743
|
-
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_sticky.jsx
|
|
2744
|
-
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_sticky.md
|
|
2745
|
-
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_templates.jsx
|
|
2746
|
-
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_templates.md
|
|
2747
2706
|
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_attributes.html.erb
|
|
2748
2707
|
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_attributes.jsx
|
|
2749
2708
|
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.html.erb
|
|
@@ -3749,9 +3708,9 @@ files:
|
|
|
3749
3708
|
- app/pb_kits/playbook/utilities/test/globalProps/truncate.test.js
|
|
3750
3709
|
- app/pb_kits/playbook/utilities/text.ts
|
|
3751
3710
|
- app/pb_kits/playbook/utilities/validEmojiChecker.ts
|
|
3752
|
-
- dist/chunks/_line_graph-
|
|
3753
|
-
- dist/chunks/_typeahead-
|
|
3754
|
-
- dist/chunks/_weekday_stacked-
|
|
3711
|
+
- dist/chunks/_line_graph-BxcVBQsJ.js
|
|
3712
|
+
- dist/chunks/_typeahead-eZENQ_Y_.js
|
|
3713
|
+
- dist/chunks/_weekday_stacked-BhPyFGlS.js
|
|
3755
3714
|
- dist/chunks/componentRegistry-DzmmLR2x.js
|
|
3756
3715
|
- dist/chunks/lazysizes-B7xYodB-.js
|
|
3757
3716
|
- dist/chunks/lib-QZuu1ltS.js
|
data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_background_control_rails.html.erb
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
<% column_definitions = [
|
|
2
|
-
{
|
|
3
|
-
accessor: "year",
|
|
4
|
-
label: "Year",
|
|
5
|
-
cellAccessors: ["quarter", "month", "day"],
|
|
6
|
-
},
|
|
7
|
-
{
|
|
8
|
-
accessor: "newEnrollments",
|
|
9
|
-
label: "New Enrollments",
|
|
10
|
-
column_styling: {
|
|
11
|
-
cell_background_color: ->(row) { row[:newEnrollments].to_i > 20 ? "success_secondary" : "warning_secondary" }
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
accessor: "scheduledMeetings",
|
|
16
|
-
label: "Scheduled Meetings",
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
accessor: "attendanceRate",
|
|
20
|
-
label: "Attendance Rate",
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
accessor: "completedClasses",
|
|
24
|
-
label: "Completed Classes",
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
accessor: "classCompletionRate",
|
|
28
|
-
label: "Class Completion Rate",
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
accessor: "graduatedStudents",
|
|
32
|
-
label: "Graduated Students",
|
|
33
|
-
}
|
|
34
|
-
] %>
|
|
35
|
-
|
|
36
|
-
<%= pb_rails("advanced_table", props: { id: "background-control", table_data: @table_data, column_definitions: column_definitions }) do %>
|
|
37
|
-
<%= pb_rails("advanced_table/table_header", props: { table_id: "background-control", column_definitions: column_definitions }) %>
|
|
38
|
-
<%= pb_rails("advanced_table/table_body", props: { table_id: "background-control", table_data: @table_data, column_definitions: column_definitions }) %>
|
|
39
|
-
<% end %>
|
data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_background_control_rails.md
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
`column_styling` can also be used to control the background color on all cells in a given column via the use of the `cell_background_color` key/value pair. Use `cell_background_color` to achieve custom background colors for individual cells as seen here.
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
<% column_definitions = [
|
|
2
|
-
{
|
|
3
|
-
accessor: "year",
|
|
4
|
-
label: "Year",
|
|
5
|
-
cellAccessors: ["quarter", "month", "day"],
|
|
6
|
-
},
|
|
7
|
-
{
|
|
8
|
-
accessor: "newEnrollments",
|
|
9
|
-
label: "New Enrollments",
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
accessor: "scheduledMeetings",
|
|
13
|
-
label: "Scheduled Meetings",
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
accessor: "attendanceRate",
|
|
17
|
-
label: "Attendance Rate",
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
accessor: "completedClasses",
|
|
21
|
-
label: "Completed Classes",
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
accessor: "classCompletionRate",
|
|
25
|
-
label: "Class Completion Rate",
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
accessor: "graduatedStudents",
|
|
29
|
-
label: "Graduated Students",
|
|
30
|
-
}
|
|
31
|
-
] %>
|
|
32
|
-
|
|
33
|
-
<% row_styling = [
|
|
34
|
-
{
|
|
35
|
-
row_id: "1",
|
|
36
|
-
cell_padding: "md"
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
row_id: "3",
|
|
40
|
-
cell_padding: "lg"
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
row_id: "5",
|
|
44
|
-
cell_padding: "none"
|
|
45
|
-
},
|
|
46
|
-
] %>
|
|
47
|
-
|
|
48
|
-
<%= pb_rails("advanced_table", props: { id: "padding-control-per-row", table_data: @table_data_with_id, column_definitions: column_definitions, row_styling: row_styling }) do %>
|
|
49
|
-
<%= pb_rails("advanced_table/table_header", props: { table_id: "padding-control-per-row", column_definitions: column_definitions }) %>
|
|
50
|
-
<%= pb_rails("advanced_table/table_body", props: { table_id: "padding-control-per-row", table_data: @table_data_with_id, column_definitions: column_definitions, row_styling: row_styling }) %>
|
|
51
|
-
<% end %>
|
data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_padding_control_per_row_rails.md
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
`row_styling` can also be used to control padding on all cells in a given row via the use of the `cell_padding` key/value pair as shown here. `cell_padding` lets you use 'xxs', 'xs', 'sm', 'md', 'lg', 'xl' and 'none'.
|
data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_padding_control_rails.html.erb
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
<% column_definitions = [
|
|
2
|
-
{
|
|
3
|
-
accessor: "year",
|
|
4
|
-
label: "Year",
|
|
5
|
-
cellAccessors: ["quarter", "month", "day"],
|
|
6
|
-
},
|
|
7
|
-
{
|
|
8
|
-
accessor: "newEnrollments",
|
|
9
|
-
label: "New Enrollments",
|
|
10
|
-
column_styling: {
|
|
11
|
-
cell_padding: "none",
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
accessor: "scheduledMeetings",
|
|
16
|
-
label: "Scheduled Meetings",
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
accessor: "attendanceRate",
|
|
20
|
-
label: "Attendance Rate",
|
|
21
|
-
column_styling: { cell_padding: "md" },
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
accessor: "completedClasses",
|
|
25
|
-
label: "Completed Classes",
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
accessor: "classCompletionRate",
|
|
29
|
-
label: "Class Completion Rate",
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
accessor: "graduatedStudents",
|
|
33
|
-
label: "Graduated Students",
|
|
34
|
-
}
|
|
35
|
-
] %>
|
|
36
|
-
|
|
37
|
-
<%= pb_rails("advanced_table", props: { id: "padding-control", table_data: @table_data, column_definitions: column_definitions }) do %>
|
|
38
|
-
<%= pb_rails("advanced_table/table_header", props: { table_id: "padding-control", column_definitions: column_definitions }) %>
|
|
39
|
-
<%= pb_rails("advanced_table/table_body", props: { table_id: "padding-control", table_data: @table_data, column_definitions: column_definitions }) %>
|
|
40
|
-
<% end %>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
`column_styling` can also be used to control padding on all cells in a given column via the use of the `cell_padding` key/value pair. `cell_padding` lets you use 'xxs', 'xs', 'sm', 'md', 'lg', 'xl' and 'none'.
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import React, { useMemo } from 'react'
|
|
3
|
-
import classnames from 'classnames'
|
|
4
|
-
import { buildAriaProps, buildCss, buildDataProps, buildHtmlProps } from '../utilities/props'
|
|
5
|
-
import Highcharts from "highcharts"
|
|
6
|
-
import HighchartsReact from "highcharts-react-official"
|
|
7
|
-
import pbLineGraphTheme from './pbLineGraphTheme'
|
|
8
|
-
import { globalProps } from '../utilities/globalProps'
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
type PbLineGraphProps = {
|
|
12
|
-
aria?: { [key: string]: string },
|
|
13
|
-
className?: string,
|
|
14
|
-
data?: { [key: string]: string },
|
|
15
|
-
id?: string,
|
|
16
|
-
htmlOptions?: { [key: string]: string | number | boolean | (() => void) };
|
|
17
|
-
options: Record<string, unknown>
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
const PbLineGraph = (props: PbLineGraphProps) => {
|
|
21
|
-
const {
|
|
22
|
-
aria = {},
|
|
23
|
-
className,
|
|
24
|
-
data = {},
|
|
25
|
-
id,
|
|
26
|
-
htmlOptions = {},
|
|
27
|
-
options
|
|
28
|
-
} = props
|
|
29
|
-
|
|
30
|
-
const ariaProps = buildAriaProps(aria)
|
|
31
|
-
const dataProps = buildDataProps(data)
|
|
32
|
-
const htmlProps = buildHtmlProps(htmlOptions);
|
|
33
|
-
const classes = classnames(buildCss('pb_pb_line_graph'), globalProps(props), className)
|
|
34
|
-
|
|
35
|
-
const mergedOptions = useMemo(() => {
|
|
36
|
-
if (!options || typeof options !== "object") {
|
|
37
|
-
// eslint-disable-next-line no-console
|
|
38
|
-
console.error("❌ Invalid options passed to <PbLineGraph />", options)
|
|
39
|
-
return {}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
return Highcharts.merge({}, pbLineGraphTheme, options)
|
|
43
|
-
}, [options])
|
|
44
|
-
return (
|
|
45
|
-
<div>
|
|
46
|
-
<HighchartsReact
|
|
47
|
-
containerProps={{
|
|
48
|
-
className: classnames(classes),
|
|
49
|
-
id: id,
|
|
50
|
-
...ariaProps,
|
|
51
|
-
...dataProps,
|
|
52
|
-
...htmlProps
|
|
53
|
-
}}
|
|
54
|
-
highcharts={Highcharts}
|
|
55
|
-
options={mergedOptions}
|
|
56
|
-
/>
|
|
57
|
-
</div>
|
|
58
|
-
)
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export default PbLineGraph
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
This kit is a wrapper around the Highcharts library. It applies styling and default settings but does NOT ship Highcharts. In order to use this kit, 'highcharts' and 'highcharts-react-official' must be installed in your repo. Once done, any prop or functionality provided by Highcharts can be used with this kit without requiring specifc props from Playbook. The doc examples below showcase a few common usecases but are not a comprehensive list of all the functionalities possible.
|
|
2
|
-
|
|
3
|
-
See the [highcharts API docs](https://api.highcharts.com/highcharts/) for a comprehensive look at what is possible.
|
|
@@ -1,34 +0,0 @@
|
|
|
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
|
-
<% categories = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'] %>
|
|
19
|
-
|
|
20
|
-
<% chart_options = {
|
|
21
|
-
series: data,
|
|
22
|
-
colors: ['#1CA05C', '#FD804C', '#144075', '#00C4D7', '#DA0014'],
|
|
23
|
-
title: { text: "Line Graph with Custom Data Colors" },
|
|
24
|
-
xAxis: {
|
|
25
|
-
categories: categories,
|
|
26
|
-
},
|
|
27
|
-
yAxis: {
|
|
28
|
-
title: {
|
|
29
|
-
text: "Number of Employees",
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
} %>
|
|
33
|
-
|
|
34
|
-
<%= pb_rails("pb_line_graph", props: {options: chart_options}) %>
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import PbLineGraph from '../../pb_pb_line_graph/_pb_line_graph'
|
|
3
|
-
import { colors } from 'playbook-ui'
|
|
4
|
-
|
|
5
|
-
const data = [{
|
|
6
|
-
name: 'Installation',
|
|
7
|
-
data: [43934, 52503, 57177, 69658, 97031, 119931, 137133, 154175],
|
|
8
|
-
}, {
|
|
9
|
-
name: 'Manufacturing',
|
|
10
|
-
data: [24916, 28064, 29742, 40851, 50590, 65282, 70121, 85434],
|
|
11
|
-
}, {
|
|
12
|
-
name: 'Sales & Distribution',
|
|
13
|
-
data: [11744, 17722, 16005, 19771, 25185, 28377, 36147, 43387],
|
|
14
|
-
}, {
|
|
15
|
-
name: 'Project Development',
|
|
16
|
-
data: [5332, 6344, 7988, 12169, 15112, 14452, 22400, 30227],
|
|
17
|
-
}, {
|
|
18
|
-
name: 'Other',
|
|
19
|
-
data: [null, null, null, 3112, 4989, 5816, 15274, 18111],
|
|
20
|
-
}]
|
|
21
|
-
|
|
22
|
-
const categories = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
|
|
23
|
-
|
|
24
|
-
const chartOptions = {
|
|
25
|
-
title: {
|
|
26
|
-
text: 'Line Graph with Custom Data Colors',
|
|
27
|
-
},
|
|
28
|
-
xAxis: {
|
|
29
|
-
categories: categories,
|
|
30
|
-
},
|
|
31
|
-
yAxis: {
|
|
32
|
-
min: 0,
|
|
33
|
-
title: {
|
|
34
|
-
text: 'Number of Employees',
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
series: data,
|
|
38
|
-
colors: [colors.data_4, colors.data_5, "#144075", colors.data_7, colors.data_8]
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
const PbLineGraphColors = (props) => {
|
|
42
|
-
return (
|
|
43
|
-
<div>
|
|
44
|
-
<PbLineGraph
|
|
45
|
-
options={chartOptions}
|
|
46
|
-
{...props}
|
|
47
|
-
/>
|
|
48
|
-
</div>
|
|
49
|
-
)
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export default PbLineGraphColors
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
Custom data colors allow for color customization to match the needs of business requirements.
|
|
2
|
-
|
|
3
|
-
For React, import 'colors' from Playbook, then set custom colors in the colors array using the desired color variables. Hex colors are also available.
|
|
4
|
-
|
|
5
|
-
For Rails, HEX values are required.
|
|
@@ -1,34 +0,0 @@
|
|
|
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
|
-
<% categories = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'] %>
|
|
19
|
-
|
|
20
|
-
<% chart_options = {
|
|
21
|
-
series: data,
|
|
22
|
-
title: { text: "Solar Employment Growth by Sector, 2010-2016" },
|
|
23
|
-
subtitle: { text: "Source: thesolarfoundation.com" },
|
|
24
|
-
xAxis: {
|
|
25
|
-
categories: categories,
|
|
26
|
-
},
|
|
27
|
-
yAxis: {
|
|
28
|
-
title: {
|
|
29
|
-
text: "Number of Employees",
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
} %>
|
|
33
|
-
|
|
34
|
-
<%= pb_rails("pb_line_graph", props: {options: chart_options}) %>
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import PbLineGraph from '../../pb_pb_line_graph/_pb_line_graph'
|
|
3
|
-
|
|
4
|
-
const data = [{
|
|
5
|
-
name: 'Installation',
|
|
6
|
-
data: [43934, 52503, 57177, 69658, 97031, 119931, 137133, 154175],
|
|
7
|
-
}, {
|
|
8
|
-
name: 'Manufacturing',
|
|
9
|
-
data: [24916, 24064, 29742, 29851, 32490, 30282, 38121, 40434],
|
|
10
|
-
}, {
|
|
11
|
-
name: 'Sales & Distribution',
|
|
12
|
-
data: [11744, 17722, 16005, 19771, 20185, 24377, 32147, 39387],
|
|
13
|
-
}, {
|
|
14
|
-
name: 'Project Development',
|
|
15
|
-
data: [null, null, 7988, 12169, 15112, 22452, 34400, 34227],
|
|
16
|
-
}, {
|
|
17
|
-
name: 'Other',
|
|
18
|
-
data: [12908, 5948, 8105, 11248, 8989, 11816, 18274, 18111],
|
|
19
|
-
}]
|
|
20
|
-
|
|
21
|
-
const categories = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
|
|
22
|
-
|
|
23
|
-
const chartOptions = {
|
|
24
|
-
series: data,
|
|
25
|
-
title: { text: "Solar Employment Growth by Sector, 2010-2016" },
|
|
26
|
-
subtitle: { text: "Source: thesolarfoundation.com" },
|
|
27
|
-
xAxis: {
|
|
28
|
-
categories: categories,
|
|
29
|
-
},
|
|
30
|
-
yAxis: {
|
|
31
|
-
title: {
|
|
32
|
-
text: "Number of Employees",
|
|
33
|
-
},
|
|
34
|
-
},
|
|
35
|
-
}
|
|
36
|
-
const PbLineGraphDefault = (props) => (
|
|
37
|
-
<div>
|
|
38
|
-
<PbLineGraph
|
|
39
|
-
options={chartOptions}
|
|
40
|
-
{...props}
|
|
41
|
-
/>
|
|
42
|
-
</div>
|
|
43
|
-
)
|
|
44
|
-
|
|
45
|
-
export default PbLineGraphDefault
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
<% data = [{
|
|
2
|
-
name: 'Number of Installations',
|
|
3
|
-
data: [43934, 52503, 57177, 69658, 97031, 119931, 137133, 154175],
|
|
4
|
-
}] %>
|
|
5
|
-
|
|
6
|
-
<% categories = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'] %>
|
|
7
|
-
|
|
8
|
-
<% chart_options_first = {
|
|
9
|
-
title: {
|
|
10
|
-
text: 'Fixed Height (300px)',
|
|
11
|
-
},
|
|
12
|
-
chart: {
|
|
13
|
-
height: '300px'
|
|
14
|
-
},
|
|
15
|
-
xAxis: {
|
|
16
|
-
categories: categories,
|
|
17
|
-
},
|
|
18
|
-
yAxis: {
|
|
19
|
-
min: 0,
|
|
20
|
-
title: {
|
|
21
|
-
text: 'Number of Employees',
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
series: data
|
|
25
|
-
} %>
|
|
26
|
-
|
|
27
|
-
<% chart_options_second = {
|
|
28
|
-
title: {
|
|
29
|
-
text: 'Percentage Height (50%)',
|
|
30
|
-
},
|
|
31
|
-
chart: {
|
|
32
|
-
height: '50%'
|
|
33
|
-
},
|
|
34
|
-
xAxis: {
|
|
35
|
-
categories: categories,
|
|
36
|
-
},
|
|
37
|
-
yAxis: {
|
|
38
|
-
min: 0,
|
|
39
|
-
title: {
|
|
40
|
-
text: 'Number of Employees',
|
|
41
|
-
},
|
|
42
|
-
},
|
|
43
|
-
series: data
|
|
44
|
-
} %>
|
|
45
|
-
|
|
46
|
-
<%= pb_rails("pb_line_graph", props: {options: chart_options_first}) %>
|
|
47
|
-
<%= pb_rails("pb_line_graph", props: {options: chart_options_second}) %>
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import PbLineGraph from '../../pb_pb_line_graph/_pb_line_graph'
|
|
3
|
-
|
|
4
|
-
const data = [{
|
|
5
|
-
name: 'Number of Installations',
|
|
6
|
-
data: [43934, 52503, 57177, 69658, 97031, 119931, 137133, 154175],
|
|
7
|
-
}]
|
|
8
|
-
|
|
9
|
-
const categories = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
|
|
10
|
-
|
|
11
|
-
const chartOptionsFirst = {
|
|
12
|
-
title: {
|
|
13
|
-
text: 'Fixed Height (300px)',
|
|
14
|
-
},
|
|
15
|
-
chart: {
|
|
16
|
-
height: '300px'
|
|
17
|
-
},
|
|
18
|
-
xAxis: {
|
|
19
|
-
categories: categories,
|
|
20
|
-
},
|
|
21
|
-
yAxis: {
|
|
22
|
-
min: 0,
|
|
23
|
-
title: {
|
|
24
|
-
text: 'Number of Employees',
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
series: data
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
const chartOptionsSecond = {
|
|
31
|
-
title: {
|
|
32
|
-
text: 'Percentage Height (50%)',
|
|
33
|
-
},
|
|
34
|
-
chart: {
|
|
35
|
-
height: '50%'
|
|
36
|
-
},
|
|
37
|
-
xAxis: {
|
|
38
|
-
categories: categories,
|
|
39
|
-
},
|
|
40
|
-
yAxis: {
|
|
41
|
-
min: 0,
|
|
42
|
-
title: {
|
|
43
|
-
text: 'Number of Employees',
|
|
44
|
-
},
|
|
45
|
-
},
|
|
46
|
-
series: data
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
const PbLineGraphHeight = (props) => {
|
|
50
|
-
return (
|
|
51
|
-
<div>
|
|
52
|
-
<PbLineGraph
|
|
53
|
-
options={chartOptionsFirst}
|
|
54
|
-
{...props}
|
|
55
|
-
/>
|
|
56
|
-
<PbLineGraph
|
|
57
|
-
options={chartOptionsSecond}
|
|
58
|
-
{...props}
|
|
59
|
-
/>
|
|
60
|
-
</div>
|
|
61
|
-
)
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export default PbLineGraphHeight
|