playbook_ui_docs 14.23.0 → 14.24.0.pre.alpha.PLAY1984responsivegapprops9652
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/pb_advanced_table/docs/_advanced_table_column_headers_vertical_border.html.erb +43 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers_vertical_border.jsx +64 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_padding_control.jsx +60 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_padding_control.md +3 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_padding_control_per_row.jsx +57 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_padding_control_per_row.md +1 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_row_styling.html.erb +46 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_row_styling_rails.md +7 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_header_rails.html.erb +1 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_rails.html.erb +1 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort_per_column.jsx +55 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort_per_column.md +6 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort_per_column_for_multi_column.jsx +80 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort_per_column_for_multi_column.md +1 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_with_custom_header.md +1 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_with_custom_header_multi_header.jsx +107 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_with_custom_header_multi_header.md +1 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_with_custom_header_rails.html.erb +51 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_with_custom_header_rails.md +1 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +9 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/index.js +6 -0
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_position.md +1 -1
- data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_indeterminate.html.erb +1 -1
- data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_indeterminate_rails.md +2 -1
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.md +1 -1
- data/app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_input_options.html.erb +24 -0
- data/app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_input_options.md +3 -0
- data/app/pb_kits/playbook/pb_circle_icon_button/docs/example.yml +1 -0
- data/app/pb_kits/playbook/pb_date/docs/_date_with_show_current_year.html.erb +4 -0
- data/app/pb_kits/playbook/pb_date/docs/_date_with_show_current_year.jsx +17 -0
- data/app/pb_kits/playbook/pb_date/docs/_date_with_show_current_year.md +1 -0
- data/app/pb_kits/playbook/pb_date/docs/example.yml +2 -0
- data/app/pb_kits/playbook/pb_date/docs/index.js +1 -0
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_active_style_options.jsx +90 -0
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_active_style_options_react.md +4 -0
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_radio_options.jsx +1 -0
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_radio_options_react.md +1 -1
- data/app/pb_kits/playbook/pb_dropdown/docs/example.yml +3 -2
- data/app/pb_kits/playbook/pb_dropdown/docs/index.js +2 -1
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_no_icon.html.erb +22 -0
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_no_icon.jsx +43 -0
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_no_icon.md +1 -0
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/example.yml +2 -0
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/index.js +1 -0
- data/app/pb_kits/playbook/pb_flex/docs/_flex_gap.html.erb +12 -1
- data/app/pb_kits/playbook/pb_flex/docs/_flex_gap.jsx +26 -1
- data/app/pb_kits/playbook/pb_flex/docs/_flex_gap_rails.md +11 -0
- data/app/pb_kits/playbook/pb_flex/docs/_flex_gap_react.md +11 -0
- data/app/pb_kits/playbook/pb_gauge/docs/_description.md +1 -0
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_colors.jsx +32 -15
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_colors_react.md +2 -0
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_complex.jsx +35 -9
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_complex_react.md +1 -0
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_default.jsx +26 -14
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_disable_animation.jsx +32 -15
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_full_circle.jsx +45 -17
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_height.jsx +59 -22
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_live_data.jsx +40 -9
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_min_max.jsx +50 -18
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_sizing.jsx +31 -18
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_title.jsx +34 -17
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_units.jsx +64 -23
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_units_react.md +1 -0
- data/app/pb_kits/playbook/pb_gauge/docs/example.yml +0 -1
- data/app/pb_kits/playbook/pb_gauge/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_line_graph/docs/_description.md +1 -3
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_colors.jsx +36 -17
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_colors_react.md +3 -0
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_default.jsx +31 -16
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_height.jsx +63 -31
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_height.md +3 -0
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend.jsx +35 -16
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_nonclickable.jsx +41 -16
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_position.jsx +107 -62
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_position.md +4 -7
- data/app/pb_kits/playbook/pb_line_graph/docs/example.yml +0 -1
- data/app/pb_kits/playbook/pb_line_graph/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_show_checked_children.html.erb +75 -0
- data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_show_checked_children.jsx +94 -0
- data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_show_checked_children.md +3 -0
- data/app/pb_kits/playbook/pb_multi_level_select/docs/index.js +1 -1
- data/app/pb_kits/playbook/pb_pagination/docs/_pagination_default_rails.md +3 -1
- data/app/pb_kits/playbook/pb_pagination/docs/_pagination_default_react.md +3 -1
- data/app/pb_kits/playbook/pb_pagination/docs/_pagination_external_control.jsx +112 -0
- data/app/pb_kits/playbook/pb_pagination/docs/_pagination_external_control_react.md +3 -0
- data/app/pb_kits/playbook/pb_pagination/docs/example.yml +1 -0
- data/app/pb_kits/playbook/pb_pagination/docs/index.js +1 -0
- data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_strict_mode.html.erb +10 -0
- data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_strict_mode.jsx +26 -0
- data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_strict_mode.md +3 -0
- data/app/pb_kits/playbook/pb_phone_number_input/docs/example.yml +2 -0
- data/app/pb_kits/playbook/pb_phone_number_input/docs/index.js +1 -0
- data/app/pb_kits/playbook/pb_table/docs/_table_with_selectable_rows.html.erb +1 -0
- data/dist/playbook-doc.js +2 -2
- metadata +48 -19
- data/app/pb_kits/playbook/pb_flex/docs/_flex_gap.md +0 -9
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_pb_styles.jsx +0 -30
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_pb_styles.md +0 -1
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_pb_styles.jsx +0 -52
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_pb_styles.md +0 -1
- data/app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_continuous.jsx +0 -69
- data/app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_default.jsx +0 -71
- data/app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_multi_beacon.jsx +0 -110
- data/app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_no_beacon.jsx +0 -76
- data/app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_no_overlay.jsx +0 -76
- data/app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_styled.jsx +0 -76
- data/app/pb_kits/playbook/pb_walkthrough/docs/example.yml +0 -10
- data/app/pb_kits/playbook/pb_walkthrough/docs/index.js +0 -6
- /data/app/pb_kits/playbook/pb_advanced_table/docs/{_advanced_table_row_styling.md → _advanced_table_row_styling_react.md} +0 -0
- /data/app/pb_kits/playbook/pb_gauge/docs/{_gauge_colors.md → _gauge_colors_rails.md} +0 -0
- /data/app/pb_kits/playbook/pb_gauge/docs/{_gauge_complex.md → _gauge_complex_rails.md} +0 -0
- /data/app/pb_kits/playbook/pb_line_graph/docs/{_line_graph_colors.md → _line_graph_colors_rails.md} +0 -0
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: playbook_ui_docs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 14.
|
4
|
+
version: 14.24.0.pre.alpha.PLAY1984responsivegapprops9652
|
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-
|
12
|
+
date: 2025-08-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: playbook_ui
|
@@ -54,6 +54,8 @@ files:
|
|
54
54
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers_multiple.html.erb
|
55
55
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers_multiple.jsx
|
56
56
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers_multiple.md
|
57
|
+
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers_vertical_border.html.erb
|
58
|
+
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers_vertical_border.jsx
|
57
59
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling.jsx
|
58
60
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling.md
|
59
61
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_column_headers.jsx
|
@@ -96,6 +98,10 @@ files:
|
|
96
98
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_loading_react.md
|
97
99
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_no_subrows.html.erb
|
98
100
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_no_subrows.jsx
|
101
|
+
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_padding_control.jsx
|
102
|
+
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_padding_control.md
|
103
|
+
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_padding_control_per_row.jsx
|
104
|
+
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_padding_control_per_row.md
|
99
105
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pagination.jsx
|
100
106
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pagination.md
|
101
107
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pagination_with_props.jsx
|
@@ -105,8 +111,10 @@ files:
|
|
105
111
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_responsive.html.erb
|
106
112
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_responsive.jsx
|
107
113
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_responsive.md
|
114
|
+
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_row_styling.html.erb
|
108
115
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_row_styling.jsx
|
109
|
-
- app/pb_kits/playbook/pb_advanced_table/docs/
|
116
|
+
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_row_styling_rails.md
|
117
|
+
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_row_styling_react.md
|
110
118
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_scrollbar_none.html.erb
|
111
119
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_scrollbar_none.jsx
|
112
120
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows.jsx
|
@@ -129,6 +137,10 @@ files:
|
|
129
137
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort.md
|
130
138
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort_control.jsx
|
131
139
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort_control.md
|
140
|
+
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort_per_column.jsx
|
141
|
+
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort_per_column.md
|
142
|
+
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort_per_column_for_multi_column.jsx
|
143
|
+
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort_per_column_for_multi_column.md
|
132
144
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_columns.jsx
|
133
145
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_columns.md
|
134
146
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_columns_and_header.jsx
|
@@ -151,6 +163,10 @@ files:
|
|
151
163
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_sticky_header_react.md
|
152
164
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_with_custom_header.jsx
|
153
165
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_with_custom_header.md
|
166
|
+
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_with_custom_header_multi_header.jsx
|
167
|
+
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_with_custom_header_multi_header.md
|
168
|
+
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_with_custom_header_rails.html.erb
|
169
|
+
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_with_custom_header_rails.md
|
154
170
|
- app/pb_kits/playbook/pb_advanced_table/docs/_mock_data_inline_loading.js
|
155
171
|
- app/pb_kits/playbook/pb_advanced_table/docs/advanced_table_mock_data.json
|
156
172
|
- app/pb_kits/playbook/pb_advanced_table/docs/advanced_table_mock_data_infinite_scroll.json
|
@@ -446,6 +462,8 @@ files:
|
|
446
462
|
- app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_click.jsx
|
447
463
|
- app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_default.html.erb
|
448
464
|
- app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_default.jsx
|
465
|
+
- app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_input_options.html.erb
|
466
|
+
- app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_input_options.md
|
449
467
|
- app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_link.html.erb
|
450
468
|
- app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_link.jsx
|
451
469
|
- app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_link.md
|
@@ -565,6 +583,9 @@ files:
|
|
565
583
|
- app/pb_kits/playbook/pb_date/docs/_date_variants.html.erb
|
566
584
|
- app/pb_kits/playbook/pb_date/docs/_date_variants.jsx
|
567
585
|
- app/pb_kits/playbook/pb_date/docs/_date_variants_swift.md
|
586
|
+
- app/pb_kits/playbook/pb_date/docs/_date_with_show_current_year.html.erb
|
587
|
+
- app/pb_kits/playbook/pb_date/docs/_date_with_show_current_year.jsx
|
588
|
+
- app/pb_kits/playbook/pb_date/docs/_date_with_show_current_year.md
|
568
589
|
- app/pb_kits/playbook/pb_date/docs/_description.md
|
569
590
|
- app/pb_kits/playbook/pb_date/docs/example.yml
|
570
591
|
- app/pb_kits/playbook/pb_date/docs/index.js
|
@@ -876,6 +897,8 @@ files:
|
|
876
897
|
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_autocomplete_with_subcomponents.html.erb
|
877
898
|
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_autocomplete_with_subcomponents.jsx
|
878
899
|
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_autocomplete_with_subcomponents.md
|
900
|
+
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_active_style_options.jsx
|
901
|
+
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_active_style_options_react.md
|
879
902
|
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_display.jsx
|
880
903
|
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_display.md
|
881
904
|
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_display_rails.html.erb
|
@@ -992,6 +1015,9 @@ files:
|
|
992
1015
|
- app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_multi_line.jsx
|
993
1016
|
- app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_multi_line.md
|
994
1017
|
- app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_multi_line_swift.md
|
1018
|
+
- app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_no_icon.html.erb
|
1019
|
+
- app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_no_icon.jsx
|
1020
|
+
- app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_no_icon.md
|
995
1021
|
- app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_positions.html.erb
|
996
1022
|
- app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_positions.jsx
|
997
1023
|
- app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_positions_swift.md
|
@@ -1007,7 +1033,8 @@ files:
|
|
1007
1033
|
- app/pb_kits/playbook/pb_flex/docs/_flex_default.md
|
1008
1034
|
- app/pb_kits/playbook/pb_flex/docs/_flex_gap.html.erb
|
1009
1035
|
- app/pb_kits/playbook/pb_flex/docs/_flex_gap.jsx
|
1010
|
-
- app/pb_kits/playbook/pb_flex/docs/
|
1036
|
+
- app/pb_kits/playbook/pb_flex/docs/_flex_gap_rails.md
|
1037
|
+
- app/pb_kits/playbook/pb_flex/docs/_flex_gap_react.md
|
1011
1038
|
- app/pb_kits/playbook/pb_flex/docs/_flex_inline.html.erb
|
1012
1039
|
- app/pb_kits/playbook/pb_flex/docs/_flex_inline.jsx
|
1013
1040
|
- app/pb_kits/playbook/pb_flex/docs/_flex_inline.md
|
@@ -1082,12 +1109,15 @@ files:
|
|
1082
1109
|
- app/pb_kits/playbook/pb_form_pill/docs/_form_pill_wrapped.md
|
1083
1110
|
- app/pb_kits/playbook/pb_form_pill/docs/example.yml
|
1084
1111
|
- app/pb_kits/playbook/pb_form_pill/docs/index.js
|
1112
|
+
- app/pb_kits/playbook/pb_gauge/docs/_description.md
|
1085
1113
|
- app/pb_kits/playbook/pb_gauge/docs/_gauge_colors.html.erb
|
1086
1114
|
- app/pb_kits/playbook/pb_gauge/docs/_gauge_colors.jsx
|
1087
|
-
- app/pb_kits/playbook/pb_gauge/docs/
|
1115
|
+
- app/pb_kits/playbook/pb_gauge/docs/_gauge_colors_rails.md
|
1116
|
+
- app/pb_kits/playbook/pb_gauge/docs/_gauge_colors_react.md
|
1088
1117
|
- app/pb_kits/playbook/pb_gauge/docs/_gauge_complex.html.erb
|
1089
1118
|
- app/pb_kits/playbook/pb_gauge/docs/_gauge_complex.jsx
|
1090
|
-
- app/pb_kits/playbook/pb_gauge/docs/
|
1119
|
+
- app/pb_kits/playbook/pb_gauge/docs/_gauge_complex_rails.md
|
1120
|
+
- app/pb_kits/playbook/pb_gauge/docs/_gauge_complex_react.md
|
1091
1121
|
- app/pb_kits/playbook/pb_gauge/docs/_gauge_default.html.erb
|
1092
1122
|
- app/pb_kits/playbook/pb_gauge/docs/_gauge_default.jsx
|
1093
1123
|
- app/pb_kits/playbook/pb_gauge/docs/_gauge_disable_animation.html.erb
|
@@ -1100,8 +1130,6 @@ files:
|
|
1100
1130
|
- app/pb_kits/playbook/pb_gauge/docs/_gauge_min_max.html.erb
|
1101
1131
|
- app/pb_kits/playbook/pb_gauge/docs/_gauge_min_max.jsx
|
1102
1132
|
- app/pb_kits/playbook/pb_gauge/docs/_gauge_min_max.md
|
1103
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_pb_styles.jsx
|
1104
|
-
- app/pb_kits/playbook/pb_gauge/docs/_gauge_pb_styles.md
|
1105
1133
|
- app/pb_kits/playbook/pb_gauge/docs/_gauge_sizing.html.erb
|
1106
1134
|
- app/pb_kits/playbook/pb_gauge/docs/_gauge_sizing.jsx
|
1107
1135
|
- app/pb_kits/playbook/pb_gauge/docs/_gauge_sizing.md
|
@@ -1109,6 +1137,7 @@ files:
|
|
1109
1137
|
- app/pb_kits/playbook/pb_gauge/docs/_gauge_title.jsx
|
1110
1138
|
- app/pb_kits/playbook/pb_gauge/docs/_gauge_units.html.erb
|
1111
1139
|
- app/pb_kits/playbook/pb_gauge/docs/_gauge_units.jsx
|
1140
|
+
- app/pb_kits/playbook/pb_gauge/docs/_gauge_units_react.md
|
1112
1141
|
- app/pb_kits/playbook/pb_gauge/docs/example.yml
|
1113
1142
|
- app/pb_kits/playbook/pb_gauge/docs/index.js
|
1114
1143
|
- app/pb_kits/playbook/pb_hashtag/docs/_description.md
|
@@ -1321,11 +1350,13 @@ files:
|
|
1321
1350
|
- app/pb_kits/playbook/pb_line_graph/docs/_description.md
|
1322
1351
|
- app/pb_kits/playbook/pb_line_graph/docs/_line_graph_colors.html.erb
|
1323
1352
|
- app/pb_kits/playbook/pb_line_graph/docs/_line_graph_colors.jsx
|
1324
|
-
- app/pb_kits/playbook/pb_line_graph/docs/
|
1353
|
+
- app/pb_kits/playbook/pb_line_graph/docs/_line_graph_colors_rails.md
|
1354
|
+
- app/pb_kits/playbook/pb_line_graph/docs/_line_graph_colors_react.md
|
1325
1355
|
- app/pb_kits/playbook/pb_line_graph/docs/_line_graph_default.html.erb
|
1326
1356
|
- app/pb_kits/playbook/pb_line_graph/docs/_line_graph_default.jsx
|
1327
1357
|
- app/pb_kits/playbook/pb_line_graph/docs/_line_graph_height.html.erb
|
1328
1358
|
- app/pb_kits/playbook/pb_line_graph/docs/_line_graph_height.jsx
|
1359
|
+
- app/pb_kits/playbook/pb_line_graph/docs/_line_graph_height.md
|
1329
1360
|
- app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend.html.erb
|
1330
1361
|
- app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend.jsx
|
1331
1362
|
- app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_nonclickable.html.erb
|
@@ -1333,8 +1364,6 @@ files:
|
|
1333
1364
|
- app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_position.html.erb
|
1334
1365
|
- app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_position.jsx
|
1335
1366
|
- app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_position.md
|
1336
|
-
- app/pb_kits/playbook/pb_line_graph/docs/_line_graph_pb_styles.jsx
|
1337
|
-
- app/pb_kits/playbook/pb_line_graph/docs/_line_graph_pb_styles.md
|
1338
1367
|
- app/pb_kits/playbook/pb_line_graph/docs/example.yml
|
1339
1368
|
- app/pb_kits/playbook/pb_line_graph/docs/index.js
|
1340
1369
|
- app/pb_kits/playbook/pb_link/docs/_link_color.html.erb
|
@@ -1437,6 +1466,9 @@ files:
|
|
1437
1466
|
- app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_selected_ids.md
|
1438
1467
|
- app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_selected_ids_react.jsx
|
1439
1468
|
- app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_selected_ids_react.md
|
1469
|
+
- app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_show_checked_children.html.erb
|
1470
|
+
- app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_show_checked_children.jsx
|
1471
|
+
- app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_show_checked_children.md
|
1440
1472
|
- app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_single.html.erb
|
1441
1473
|
- app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_single.jsx
|
1442
1474
|
- app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_single.md
|
@@ -1584,6 +1616,8 @@ files:
|
|
1584
1616
|
- app/pb_kits/playbook/pb_pagination/docs/_pagination_default.jsx
|
1585
1617
|
- app/pb_kits/playbook/pb_pagination/docs/_pagination_default_rails.md
|
1586
1618
|
- app/pb_kits/playbook/pb_pagination/docs/_pagination_default_react.md
|
1619
|
+
- app/pb_kits/playbook/pb_pagination/docs/_pagination_external_control.jsx
|
1620
|
+
- app/pb_kits/playbook/pb_pagination/docs/_pagination_external_control_react.md
|
1587
1621
|
- app/pb_kits/playbook/pb_pagination/docs/_pagination_page_change.jsx
|
1588
1622
|
- app/pb_kits/playbook/pb_pagination/docs/_pagination_page_change_react.md
|
1589
1623
|
- app/pb_kits/playbook/pb_pagination/docs/data.js
|
@@ -1661,6 +1695,9 @@ files:
|
|
1661
1695
|
- app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_preferred_countries.html.erb
|
1662
1696
|
- app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_preferred_countries.jsx
|
1663
1697
|
- app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_preferred_countries.md
|
1698
|
+
- app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_strict_mode.html.erb
|
1699
|
+
- app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_strict_mode.jsx
|
1700
|
+
- app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_strict_mode.md
|
1664
1701
|
- app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_validation.html.erb
|
1665
1702
|
- app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_validation.jsx
|
1666
1703
|
- app/pb_kits/playbook/pb_phone_number_input/docs/example.yml
|
@@ -2411,14 +2448,6 @@ files:
|
|
2411
2448
|
- app/pb_kits/playbook/pb_user_badge/docs/_user_badge_size.jsx
|
2412
2449
|
- app/pb_kits/playbook/pb_user_badge/docs/example.yml
|
2413
2450
|
- app/pb_kits/playbook/pb_user_badge/docs/index.js
|
2414
|
-
- app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_continuous.jsx
|
2415
|
-
- app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_default.jsx
|
2416
|
-
- app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_multi_beacon.jsx
|
2417
|
-
- app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_no_beacon.jsx
|
2418
|
-
- app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_no_overlay.jsx
|
2419
|
-
- app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_styled.jsx
|
2420
|
-
- app/pb_kits/playbook/pb_walkthrough/docs/example.yml
|
2421
|
-
- app/pb_kits/playbook/pb_walkthrough/docs/index.js
|
2422
2451
|
- app/pb_kits/playbook/pb_weekday_stacked/docs/_weekday_stacked_compact.html.erb
|
2423
2452
|
- app/pb_kits/playbook/pb_weekday_stacked/docs/_weekday_stacked_compact.jsx
|
2424
2453
|
- app/pb_kits/playbook/pb_weekday_stacked/docs/_weekday_stacked_default.html.erb
|
@@ -1,9 +0,0 @@
|
|
1
|
-
##### Prop
|
2
|
-
|
3
|
-
* `gap` | `row_gap` | `rowGap` | `column_gap` | `columnGap` | **Type**: String | **Values**: xxs | xs | sm | md | lg | xl | none
|
4
|
-
|
5
|
-
- Setting the gap prop sets the row_gap || rowGap and the column_gap || columnGap props to the same size and creates equal space within a flex container.
|
6
|
-
|
7
|
-
- Setting the row_gap || rowGap prop creates space between rows in a flex container.
|
8
|
-
|
9
|
-
- Setting the column_gap || columnGap prop creates space between columns in a flex container.
|
@@ -1,30 +0,0 @@
|
|
1
|
-
import React from 'react'
|
2
|
-
import gaugeTheme from '../gaugeTheme'
|
3
|
-
import Highcharts from "highcharts"
|
4
|
-
import HighchartsReact from "highcharts-react-official"
|
5
|
-
import HighchartsMore from "highcharts/highcharts-more"
|
6
|
-
import SolidGauge from "highcharts/modules/solid-gauge"
|
7
|
-
|
8
|
-
HighchartsMore(Highcharts);
|
9
|
-
SolidGauge(Highcharts);
|
10
|
-
|
11
|
-
const data = [{ name: "Name", y: 45 }]
|
12
|
-
|
13
|
-
const baseOptions = {
|
14
|
-
series: [{ data: data }],
|
15
|
-
};
|
16
|
-
|
17
|
-
const GaugePbStyles = () => {
|
18
|
-
const options = Highcharts.merge({}, gaugeTheme, baseOptions);
|
19
|
-
|
20
|
-
return (
|
21
|
-
<div>
|
22
|
-
<HighchartsReact
|
23
|
-
highcharts={Highcharts}
|
24
|
-
options={options}
|
25
|
-
/>
|
26
|
-
</div>
|
27
|
-
);
|
28
|
-
};
|
29
|
-
|
30
|
-
export default GaugePbStyles;
|
@@ -1 +0,0 @@
|
|
1
|
-
You don't need to use the Gauge Kit to apply Playbook styles to your Highcharts gauge chart. Just import gaugeTheme.ts and merge it with your chart options—Playbook’s styling will apply automatically.
|
@@ -1,52 +0,0 @@
|
|
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: 'Installation',
|
8
|
-
data: [43934, 52503, 57177, 69658, 97031, 119931, 137133, 154175],
|
9
|
-
}, {
|
10
|
-
name: 'Manufacturing',
|
11
|
-
data: [24916, 24064, 29742, 29851, 32490, 30282, 38121, 40434],
|
12
|
-
}, {
|
13
|
-
name: 'Sales & Distribution',
|
14
|
-
data: [11744, 17722, 16005, 19771, 20185, 24377, 32147, 39387],
|
15
|
-
}, {
|
16
|
-
name: 'Project Development',
|
17
|
-
data: [null, null, 7988, 12169, 15112, 22452, 34400, 34227],
|
18
|
-
}, {
|
19
|
-
name: 'Other',
|
20
|
-
data: [12908, 5948, 8105, 11248, 8989, 11816, 18274, 18111],
|
21
|
-
}]
|
22
|
-
|
23
|
-
const categories = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
|
24
|
-
|
25
|
-
const baseOptions = {
|
26
|
-
series: data,
|
27
|
-
title: { text: "Solar Employment Growth by Sector, 2010-2016" },
|
28
|
-
subtitle: { text: "Source: thesolarfoundation.com" },
|
29
|
-
xAxis: {
|
30
|
-
categories: categories,
|
31
|
-
},
|
32
|
-
yAxis: {
|
33
|
-
title: {
|
34
|
-
text: "Number of Employees",
|
35
|
-
},
|
36
|
-
},
|
37
|
-
}
|
38
|
-
|
39
|
-
const LineGraphPbStyles = () => {
|
40
|
-
const options = Highcharts.merge({}, lineGraphTheme, baseOptions)
|
41
|
-
|
42
|
-
return(
|
43
|
-
<div>
|
44
|
-
<HighchartsReact
|
45
|
-
highcharts={Highcharts}
|
46
|
-
options={options}
|
47
|
-
/>
|
48
|
-
</div>
|
49
|
-
)
|
50
|
-
}
|
51
|
-
|
52
|
-
export default LineGraphPbStyles
|
@@ -1 +0,0 @@
|
|
1
|
-
You don't need to use the Line Graph Kit to apply Playbook styles to your Highcharts line graph. Just import lineGraphTheme.ts and merge it with your graph options—Playbook’s styling will apply automatically.
|
@@ -1,69 +0,0 @@
|
|
1
|
-
import React, { useState } from 'react'
|
2
|
-
import Button from '../../pb_button/_button'
|
3
|
-
import Walkthrough from '../../pb_walkthrough/_walkthrough'
|
4
|
-
|
5
|
-
const WalkthroughContinuous = (props) => {
|
6
|
-
const [state, setState] = useState({
|
7
|
-
run: false,
|
8
|
-
steps: [
|
9
|
-
{
|
10
|
-
title: 'Example Title',
|
11
|
-
content: 'Setting the prop - continuous allows the next button to appear and lets the user move to the next step by pressing the next button instead of the beacon',
|
12
|
-
target: '.examplePaused',
|
13
|
-
},
|
14
|
-
{
|
15
|
-
title: 'Toggle',
|
16
|
-
content: 'Setting the prop - continuous allows the next button to appear and lets the user move to the next step by pressing the next button instead of the beacon',
|
17
|
-
target: '.pb_toggle_control',
|
18
|
-
},
|
19
|
-
{
|
20
|
-
title: 'Top Nav',
|
21
|
-
content: 'Setting the prop - continuous allows the next button to appear and lets the user move to the next step by pressing the next button instead of the beacon',
|
22
|
-
target: '.pb--page--topNav',
|
23
|
-
},
|
24
|
-
],
|
25
|
-
})
|
26
|
-
|
27
|
-
return (
|
28
|
-
<div>
|
29
|
-
<div
|
30
|
-
className="examplePaused"
|
31
|
-
style={{ 'display': 'inline' }}
|
32
|
-
>
|
33
|
-
{'Start the Tour. Then click the Beacon to demo the default behavior of the Walkthrough Kit'}
|
34
|
-
</div>
|
35
|
-
<br />
|
36
|
-
<br />
|
37
|
-
<Button
|
38
|
-
onClick={() => {
|
39
|
-
setState({ ...state,
|
40
|
-
run: true,
|
41
|
-
})
|
42
|
-
}}
|
43
|
-
>
|
44
|
-
{'Start Tour'}
|
45
|
-
</Button>
|
46
|
-
<br />
|
47
|
-
<br />
|
48
|
-
<Button
|
49
|
-
onClick={() => {
|
50
|
-
setState({
|
51
|
-
...state,
|
52
|
-
run: false,
|
53
|
-
})
|
54
|
-
}}
|
55
|
-
>
|
56
|
-
{'Reset/Stop Tour'}
|
57
|
-
</Button>
|
58
|
-
|
59
|
-
<Walkthrough
|
60
|
-
run={state.run}
|
61
|
-
steps={state.steps}
|
62
|
-
{...props}
|
63
|
-
continuous
|
64
|
-
/>
|
65
|
-
</div>
|
66
|
-
)
|
67
|
-
}
|
68
|
-
|
69
|
-
export default WalkthroughContinuous
|
@@ -1,71 +0,0 @@
|
|
1
|
-
import React, { useState } from 'react'
|
2
|
-
import Button from '../../pb_button/_button'
|
3
|
-
import Walkthrough from '../../pb_walkthrough/_walkthrough'
|
4
|
-
|
5
|
-
const WalkthroughDefault = (props) => {
|
6
|
-
const [state, setState] = useState({
|
7
|
-
run: false,
|
8
|
-
steps: [
|
9
|
-
{
|
10
|
-
title: 'Example title',
|
11
|
-
content:
|
12
|
-
'This was an example of a Beacon in the Walkthrough Kit it is used as a simple indicator to inform users about a particular thing',
|
13
|
-
target: '.example',
|
14
|
-
},
|
15
|
-
{
|
16
|
-
title: 'Toggle',
|
17
|
-
content:
|
18
|
-
'By default the walkthrough kit will cycle through each step provided.',
|
19
|
-
target: '.pb_toggle_control',
|
20
|
-
},
|
21
|
-
{
|
22
|
-
title: 'Top Nav',
|
23
|
-
content:
|
24
|
-
'By default the walkthrough kit will cycle through each step provided.',
|
25
|
-
target: '.pb--page--topNav',
|
26
|
-
},
|
27
|
-
],
|
28
|
-
})
|
29
|
-
|
30
|
-
return (
|
31
|
-
<div>
|
32
|
-
<div
|
33
|
-
className="example"
|
34
|
-
style={{ 'display': 'inline' }}
|
35
|
-
>
|
36
|
-
{'Start the Tour. Then click the Beacon to demo the default behavior of the Walkthrough Kit'}
|
37
|
-
</div>
|
38
|
-
<br />
|
39
|
-
<br />
|
40
|
-
<Button
|
41
|
-
onClick={() => {
|
42
|
-
setState({ ...state,
|
43
|
-
run: true,
|
44
|
-
})
|
45
|
-
}}
|
46
|
-
>
|
47
|
-
{'Start Tour'}
|
48
|
-
</Button>
|
49
|
-
<br />
|
50
|
-
<br />
|
51
|
-
<Button
|
52
|
-
onClick={() => {
|
53
|
-
setState({
|
54
|
-
...state,
|
55
|
-
run: false,
|
56
|
-
})
|
57
|
-
}}
|
58
|
-
>
|
59
|
-
{'Reset/Stop Tour'}
|
60
|
-
</Button>
|
61
|
-
|
62
|
-
<Walkthrough
|
63
|
-
run={state.run}
|
64
|
-
steps={state.steps}
|
65
|
-
{...props}
|
66
|
-
/>
|
67
|
-
</div>
|
68
|
-
)
|
69
|
-
}
|
70
|
-
|
71
|
-
export default WalkthroughDefault
|
@@ -1,110 +0,0 @@
|
|
1
|
-
import React, { useState } from 'react'
|
2
|
-
import Button from '../../pb_button/_button'
|
3
|
-
import Walkthrough from '../../pb_walkthrough/_walkthrough'
|
4
|
-
|
5
|
-
const WalkthroughMultiBeacon = (props) => {
|
6
|
-
const [stateA, setStateA] = useState({
|
7
|
-
run: false,
|
8
|
-
steps: [
|
9
|
-
{
|
10
|
-
title: 'Example title',
|
11
|
-
content:
|
12
|
-
'This was an example of a Beacon in the Walkthrough Kit it is used as a simple indicator to inform users about a particular thing',
|
13
|
-
target: '.exampleMulti',
|
14
|
-
},
|
15
|
-
],
|
16
|
-
})
|
17
|
-
|
18
|
-
const [stateB, setStateB] = useState({
|
19
|
-
run: false,
|
20
|
-
steps: [
|
21
|
-
{
|
22
|
-
title: 'Toggle',
|
23
|
-
content:
|
24
|
-
'By default the walkthrough kit will cycle through each step provided.',
|
25
|
-
target: '.pb_toggle_control',
|
26
|
-
},
|
27
|
-
],
|
28
|
-
})
|
29
|
-
|
30
|
-
const [stateC, setStateC] = useState({
|
31
|
-
run: false,
|
32
|
-
steps: [
|
33
|
-
{
|
34
|
-
title: 'Top Nav',
|
35
|
-
content:
|
36
|
-
'By default the walkthrough kit will cycle through each step provided.',
|
37
|
-
target: '.pb--page--topNav',
|
38
|
-
},
|
39
|
-
],
|
40
|
-
})
|
41
|
-
|
42
|
-
return (
|
43
|
-
<div>
|
44
|
-
<div
|
45
|
-
className="exampleMulti"
|
46
|
-
style={{ 'display': 'inline' }}
|
47
|
-
>
|
48
|
-
{'Start the Tour. Then click the Beacon to demo the default behavior of the Walkthrough Kit'}
|
49
|
-
</div>
|
50
|
-
<br />
|
51
|
-
<br />
|
52
|
-
<Button
|
53
|
-
onClick={() => {
|
54
|
-
setStateA({
|
55
|
-
...stateA,
|
56
|
-
run: true,
|
57
|
-
})
|
58
|
-
setStateB({
|
59
|
-
...stateB,
|
60
|
-
run: true,
|
61
|
-
})
|
62
|
-
setStateC({
|
63
|
-
...stateC,
|
64
|
-
run: true,
|
65
|
-
})
|
66
|
-
}}
|
67
|
-
>
|
68
|
-
{'Start Tour'}
|
69
|
-
</Button>
|
70
|
-
<br />
|
71
|
-
<br />
|
72
|
-
<Button
|
73
|
-
onClick={() => {
|
74
|
-
setStateA({
|
75
|
-
...stateA,
|
76
|
-
run: false,
|
77
|
-
})
|
78
|
-
setStateB({
|
79
|
-
...stateB,
|
80
|
-
run: false,
|
81
|
-
})
|
82
|
-
setStateC({
|
83
|
-
...stateC,
|
84
|
-
run: false,
|
85
|
-
})
|
86
|
-
}}
|
87
|
-
>
|
88
|
-
{'Reset/Stop Tour'}
|
89
|
-
</Button>
|
90
|
-
|
91
|
-
<Walkthrough
|
92
|
-
run={stateA.run}
|
93
|
-
steps={stateA.steps}
|
94
|
-
{...props}
|
95
|
-
/>
|
96
|
-
<Walkthrough
|
97
|
-
run={stateB.run}
|
98
|
-
steps={stateB.steps}
|
99
|
-
{...props}
|
100
|
-
/>
|
101
|
-
<Walkthrough
|
102
|
-
run={stateC.run}
|
103
|
-
steps={stateC.steps}
|
104
|
-
{...props}
|
105
|
-
/>
|
106
|
-
</div>
|
107
|
-
)
|
108
|
-
}
|
109
|
-
|
110
|
-
export default WalkthroughMultiBeacon
|
@@ -1,76 +0,0 @@
|
|
1
|
-
import React, { useState } from 'react'
|
2
|
-
import Button from '../../pb_button/_button'
|
3
|
-
import Walkthrough from '../../pb_walkthrough/_walkthrough'
|
4
|
-
|
5
|
-
const WalkthroughNoBeacon = (props) => {
|
6
|
-
const [state, setState] = useState({
|
7
|
-
callback: (data) => {
|
8
|
-
if (data.action === 'close' && data.type === 'step:after') {
|
9
|
-
// This explicitly stops the tour (otherwise it displays a "beacon" to resume the tour)
|
10
|
-
setState({ ...state, run: false })
|
11
|
-
}
|
12
|
-
},
|
13
|
-
run: false,
|
14
|
-
steps: [
|
15
|
-
{
|
16
|
-
title: 'Example Title',
|
17
|
-
content: 'Setting the prop - continuous allows the next button to appear and lets the user move to the next step by pressing the next button instead of the beacon',
|
18
|
-
target: '.exampleNoBeacon',
|
19
|
-
disableBeacon: true,
|
20
|
-
},
|
21
|
-
{
|
22
|
-
title: 'Toggle',
|
23
|
-
content: 'Setting the prop - continuous allows the next button to appear and lets the user move to the next step by pressing the next button instead of the beacon',
|
24
|
-
target: '.pb_toggle_control',
|
25
|
-
},
|
26
|
-
{
|
27
|
-
title: 'Top Nav',
|
28
|
-
content: 'Setting the prop - continuous allows the next button to appear and lets the user move to the next step by pressing the next button instead of the beacon',
|
29
|
-
target: '.pb--page--topNav',
|
30
|
-
},
|
31
|
-
],
|
32
|
-
})
|
33
|
-
|
34
|
-
return (
|
35
|
-
<div>
|
36
|
-
<div
|
37
|
-
className="exampleNoBeacon"
|
38
|
-
style={{ 'display': 'inline' }}
|
39
|
-
>
|
40
|
-
{'Start the Tour. Then click the Beacon to demo the default behavior of the Walkthrough Kit'}
|
41
|
-
</div>
|
42
|
-
<br />
|
43
|
-
<br />
|
44
|
-
<Button
|
45
|
-
onClick={() => {
|
46
|
-
setState({ ...state,
|
47
|
-
run: true,
|
48
|
-
})
|
49
|
-
}}
|
50
|
-
>
|
51
|
-
{'Start Tour'}
|
52
|
-
</Button>
|
53
|
-
<br />
|
54
|
-
<br />
|
55
|
-
<Button
|
56
|
-
onClick={() => {
|
57
|
-
setState({
|
58
|
-
...state,
|
59
|
-
run: false,
|
60
|
-
})
|
61
|
-
}}
|
62
|
-
>
|
63
|
-
{'Reset/Stop Tour'}
|
64
|
-
</Button>
|
65
|
-
|
66
|
-
<Walkthrough
|
67
|
-
run={state.run}
|
68
|
-
steps={state.steps}
|
69
|
-
{...props}
|
70
|
-
continuous
|
71
|
-
/>
|
72
|
-
</div>
|
73
|
-
)
|
74
|
-
}
|
75
|
-
|
76
|
-
export default WalkthroughNoBeacon
|