playbook_ui_docs 14.24.0.pre.alpha.testingwithoutlazyload9529 → 14.24.0.pre.rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_header_rails.html.erb +1 -1
  3. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_rails.html.erb +1 -1
  4. data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +0 -7
  5. data/app/pb_kits/playbook/pb_advanced_table/docs/index.js +0 -6
  6. data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_indeterminate.html.erb +1 -1
  7. data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_indeterminate_rails.md +1 -2
  8. data/app/pb_kits/playbook/pb_circle_icon_button/docs/example.yml +0 -1
  9. data/app/pb_kits/playbook/pb_date/docs/example.yml +0 -2
  10. data/app/pb_kits/playbook/pb_date/docs/index.js +0 -1
  11. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_radio_options.jsx +0 -1
  12. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_radio_options_react.md +1 -1
  13. data/app/pb_kits/playbook/pb_dropdown/docs/example.yml +2 -3
  14. data/app/pb_kits/playbook/pb_dropdown/docs/index.js +1 -2
  15. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/example.yml +0 -2
  16. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/index.js +0 -1
  17. data/app/pb_kits/playbook/pb_multi_level_select/docs/index.js +1 -1
  18. data/app/pb_kits/playbook/pb_pagination/docs/_pagination_default_rails.md +1 -3
  19. data/app/pb_kits/playbook/pb_pagination/docs/_pagination_default_react.md +1 -3
  20. data/app/pb_kits/playbook/pb_pagination/docs/example.yml +0 -1
  21. data/app/pb_kits/playbook/pb_pagination/docs/index.js +0 -1
  22. data/app/pb_kits/playbook/pb_table/docs/_table_with_selectable_rows.html.erb +0 -1
  23. data/app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_continuous.jsx +69 -0
  24. data/app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_default.jsx +71 -0
  25. data/app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_multi_beacon.jsx +110 -0
  26. data/app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_no_beacon.jsx +76 -0
  27. data/app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_no_overlay.jsx +76 -0
  28. data/app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_styled.jsx +76 -0
  29. data/app/pb_kits/playbook/pb_walkthrough/docs/example.yml +10 -0
  30. data/app/pb_kits/playbook/pb_walkthrough/docs/index.js +6 -0
  31. data/dist/playbook-doc.js +2 -2
  32. metadata +10 -29
  33. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers_vertical_border.html.erb +0 -43
  34. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers_vertical_border.jsx +0 -64
  35. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_padding_control.jsx +0 -60
  36. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_padding_control.md +0 -3
  37. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_padding_control_per_row.jsx +0 -57
  38. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_padding_control_per_row.md +0 -1
  39. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort_per_column.jsx +0 -55
  40. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort_per_column.md +0 -6
  41. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort_per_column_for_multi_column.jsx +0 -80
  42. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort_per_column_for_multi_column.md +0 -1
  43. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_with_custom_header_multi_header.jsx +0 -107
  44. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_with_custom_header_multi_header.md +0 -1
  45. data/app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_input_options.html.erb +0 -24
  46. data/app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_input_options.md +0 -3
  47. data/app/pb_kits/playbook/pb_date/docs/_date_with_show_current_year.html.erb +0 -4
  48. data/app/pb_kits/playbook/pb_date/docs/_date_with_show_current_year.jsx +0 -17
  49. data/app/pb_kits/playbook/pb_date/docs/_date_with_show_current_year.md +0 -1
  50. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_active_style_options.jsx +0 -90
  51. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_active_style_options_react.md +0 -4
  52. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_no_icon.html.erb +0 -22
  53. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_no_icon.jsx +0 -43
  54. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_no_icon.md +0 -1
  55. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_show_checked_children.html.erb +0 -75
  56. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_show_checked_children.jsx +0 -94
  57. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_show_checked_children.md +0 -3
  58. data/app/pb_kits/playbook/pb_pagination/docs/_pagination_external_control.jsx +0 -112
  59. data/app/pb_kits/playbook/pb_pagination/docs/_pagination_external_control_react.md +0 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9d6fa360d3bbd72a697226e951aa7b643ee2f90f22aa623fd8cd9e4918a5e8e6
4
- data.tar.gz: cc5e69d23c06580abe595ac7466f6cb93bc6c1335e979be272e2705058103136
3
+ metadata.gz: fe503f434bb822601177c12c9e8e0d4c143ad4ac22a985a81b6f3df008fda245
4
+ data.tar.gz: f552b7bf50c81eb4501849a600e57eaeb07ab57698f8463f3d026b4232916029
5
5
  SHA512:
6
- metadata.gz: 1af80d122a5107f8e3fb48173c7842bd7597de8d31be4d5adcbcd85756bb3834a7b7154c3a302379a47637d2b2b93c0435d25ebc2369cd7b07de9c8b3df8a8d0
7
- data.tar.gz: 4cb8e4da9c41495038668a1d3acd585a8df9bb12cd7d50c74ad51f98828d1e20bd08ee0ec27a44430cab1f4f24fe4f20734af3699e9983fd8d4e62ad9231783d
6
+ metadata.gz: a85ac4d9dba896769d36788128cac894a042fa2e21c386d8e53c3818230821bd89a86ca5fe24a9d48b9789ee851808bb4d07b2f70e2bce4be76f285d5f04b101
7
+ data.tar.gz: 673c6944fbc1af2bb8c7638b62d6e081de0a3f29179b3c09bc4976fcff9ff27965b21648408dc4add15b5d25091a8e832a8c3c4aef274371f2407c80abb47c08
@@ -31,7 +31,7 @@
31
31
  ] %>
32
32
 
33
33
  <%= pb_rails("advanced_table", props: {
34
- id: "selectable_rows_with_header_no_action_bar",
34
+ id: "selectable_rows_with_actions",
35
35
  table_data: @table_data_no_subrows,
36
36
  column_definitions: column_definitions,
37
37
  selectable_rows: true,
@@ -34,6 +34,6 @@
34
34
  %>
35
35
 
36
36
  <%= pb_rails("advanced_table", props: { id: "selectable_rows", table_data: @table_data_with_id, column_definitions: column_definitions, selectable_rows: true }) do %>
37
- <%= pb_rails("advanced_table/table_header", props: { id: "selectable_rows", column_definitions: column_definitions, selectable_rows: true }) %>
37
+ <%= pb_rails("advanced_table/table_header", props: { column_definitions: column_definitions, selectable_rows: true }) %>
38
38
  <%= pb_rails("advanced_table/table_body", props: { id: "selectable_rows", table_data: @table_data_with_id, column_definitions: column_definitions, subrow_headers: subrow_headers, enable_toggle_expansion: "all", selectable_rows: true }) %>
39
39
  <% end %>
@@ -13,7 +13,6 @@ examples:
13
13
  - advanced_table_with_custom_header_rails: Custom Header Cell
14
14
  - advanced_table_column_headers: Multi-Header Columns
15
15
  - advanced_table_column_headers_multiple: Multi-Header Columns (Multiple Levels)
16
- - advanced_table_column_headers_vertical_border: Multi-Header Columns with Vertical Borders
17
16
  - advanced_table_no_subrows: Table with No Subrows or Expansion
18
17
  - advanced_table_selectable_rows_rails: Selectable Rows
19
18
  - advanced_table_selectable_rows_no_subrows_rails: Selectable Rows (No Subrows)
@@ -30,8 +29,6 @@ examples:
30
29
  - advanced_table_default: Default (Required Props)
31
30
  - advanced_table_sort: Enable Sorting
32
31
  - advanced_table_sort_control: Sort Control
33
- - advanced_table_sort_per_column: Enable Sort By Column
34
- - advanced_table_sort_per_column_for_multi_column: Enable Sort By Column (Multi-Column)
35
32
  - advanced_table_custom_sort: Custom Sort
36
33
  - advanced_table_expanded_control: Expanded Control
37
34
  - advanced_table_expand_by_depth: Expand by Depth
@@ -46,7 +43,6 @@ examples:
46
43
  - advanced_table_responsive: Responsive Tables
47
44
  - advanced_table_custom_cell: Custom Components for Cells
48
45
  - advanced_table_with_custom_header: Custom Header Cell
49
- - advanced_table_with_custom_header_multi_header: Custom Header with Multiple Headers
50
46
  - advanced_table_pagination: Pagination
51
47
  - advanced_table_pagination_with_props: Pagination Props
52
48
  - advanced_table_loading: Loading State
@@ -54,7 +50,6 @@ examples:
54
50
  - advanced_table_column_headers: Multi-Header Columns
55
51
  - advanced_table_column_headers_multiple: Multi-Header Columns (Multiple Levels)
56
52
  - advanced_table_column_headers_custom_cell: Multi-Header Columns with Custom Cells
57
- - advanced_table_column_headers_vertical_border: Multi-Header Columns with Vertical Borders
58
53
  - advanced_table_no_subrows: Table with No Subrows or Expansion
59
54
  - advanced_table_pinned_rows: Pinned Rows
60
55
  - advanced_table_selectable_rows: Selectable Rows
@@ -68,10 +63,8 @@ examples:
68
63
  - advanced_table_column_visibility_multi: Column Visibility Control with Multi-Header Columns
69
64
  - advanced_table_scrollbar_none: Advanced Table Scrollbar None
70
65
  - advanced_table_row_styling: Row Styling
71
- - advanced_table_padding_control_per_row: Padding Control using Row Styling
72
66
  - advanced_table_column_styling: Column Styling
73
67
  - advanced_table_column_styling_column_headers: Column Styling with Multiple Headers
74
- - advanced_table_padding_control: Padding Control using Column Styling
75
68
  - advanced_table_column_border_color: Column Group Border Color
76
69
  - advanced_table_fullscreen: Fullscreen
77
70
  - advanced_table_infinite_scroll: Infinite Scroll
@@ -21,7 +21,6 @@ export { default as AdvancedTableSelectableRowsHeader } from './_advanced_table_
21
21
  export { default as AdvancedTableSelectableRowsActions } from './_advanced_table_selectable_rows_actions.jsx'
22
22
  export { default as AdvancedTableTablePropsStickyHeader } from './_advanced_table_table_props_sticky_header.jsx'
23
23
  export { default as AdvancedTableColumnHeadersCustomCell } from './_advanced_table_column_headers_custom_cell.jsx'
24
- export { default as AdvancedTableColumnHeadersVerticalBorder } from './_advanced_table_column_headers_vertical_border.jsx'
25
24
  export { default as AdvancedTableInlineEditing } from './_advanced_table_inline_editing.jsx'
26
25
  export { default as AdvancedTableFullscreen } from './_advanced_table_fullscreen.jsx'
27
26
  export { default as AdvancedTableStickyColumns } from './_advanced_table_sticky_columns.jsx'
@@ -41,8 +40,3 @@ export { default as AdvancedTableColumnStylingColumnHeaders } from './_advanced_
41
40
  export { default as AdvancedTableInfiniteScroll} from './_advanced_table_infinite_scroll.jsx'
42
41
  export {default as AdvancedTableWithCustomHeader} from './_advanced_table_with_custom_header.jsx'
43
42
  export { default as AdvancedTableCustomSort } from './_advanced_table_custom_sort.jsx'
44
- export { default as AdvancedTableWithCustomHeaderMultiHeader } from './_advanced_table_with_custom_header_multi_header.jsx'
45
- export { default as AdvancedTableSortPerColumn } from './_advanced_table_sort_per_column.jsx'
46
- export { default as AdvancedTableSortPerColumnForMultiColumn } from './_advanced_table_sort_per_column_for_multi_column.jsx'
47
- export { default as AdvancedTablePaddingControl } from './_advanced_table_padding_control.jsx'
48
- export { default as AdvancedTablePaddingControlPerRow } from './_advanced_table_padding_control_per_row.jsx'
@@ -9,10 +9,10 @@
9
9
  <tr>
10
10
  <th>
11
11
  <%= pb_rails("checkbox", props: {
12
+ text: "Uncheck All",
12
13
  value: "checkbox-value",
13
14
  name: "main-checkbox",
14
15
  indeterminate_main: true,
15
- indeterminate_main_labels: ["Check All Ice Cream", "Uncheck All Ice Cream"],
16
16
  id: "indeterminate-checkbox"
17
17
  }) %>
18
18
  </th>
@@ -1,2 +1 @@
1
- If you want to use indeterminate, "check/uncheck all" checkboxes, add `indeterminate_main: true` and an `id` to the main checkbox. Then, add an `indeterminate_parent` prop with the main checkbox's `id` to the children checkboxes.
2
- If you want to customize the main checkbox labels, set an array `indeterminate_main_labels` with "Check All" and "Uncheck All" labels.
1
+ If you want to use indeterminate, "check/uncheck all" checkboxes, add `indeterminate_main: true` and an `id` to the main checkbox. Then, add an `indeterminate_parent` prop with the main checkbox's `id` to the children checkboxes.
@@ -5,7 +5,6 @@ examples:
5
5
  - circle_icon_button_link: Link
6
6
  - circle_icon_button_loading: Loading
7
7
  - circle_icon_button_size: Size
8
- - circle_icon_button_input_options: Input Options
9
8
 
10
9
  react:
11
10
  - circle_icon_button_default: Default
@@ -5,14 +5,12 @@ examples:
5
5
  - date_variants: Variants
6
6
  - date_alignment: Alignment
7
7
  - date_timezone: Timezones
8
- - date_with_show_current_year: Show Current Year
9
8
  - date_unstyled: Unstyled
10
9
 
11
10
  react:
12
11
  - date_default: Default
13
12
  - date_variants: Variants
14
13
  - date_alignment: Alignment
15
- - date_with_show_current_year: Show Current Year
16
14
  - date_unstyled: Unstyled
17
15
 
18
16
  swift:
@@ -2,4 +2,3 @@ export { default as DateDefault } from './_date_default.jsx'
2
2
  export { default as DateVariants } from './_date_variants.jsx'
3
3
  export { default as DateAlignment } from './_date_alignment.jsx'
4
4
  export { default as DateUnstyled } from './_date_unstyled.jsx'
5
- export { default as DateWithShowCurrentYear } from './_date_with_show_current_year.jsx'
@@ -18,7 +18,6 @@ const DropdownCustomRadioOptions = (props) => {
18
18
  return (
19
19
  <div>
20
20
  <Dropdown
21
- activeStyle={{ backgroundColor: "bg_light", fontColor: "text_lt_default" }}
22
21
  label="Select Item"
23
22
  onSelect={(selectedItem) => setSelectedValue(selectedItem?.value)}
24
23
  options={options}
@@ -1 +1 @@
1
- Radio inputs can be used inside `Dropdown.Option` for a custom layout that mimics form-like selection within a dropdown. Use the [activeStyle](https://playbook.powerapp.cloud/kits/dropdown/react#custom-active-style-options) `backgroundColor` and `fontColor` props to create contrast between the Radio selection indicator and the Dropdown selection background indicator.
1
+ Radio inputs can be used inside `Dropdown.Option` for a custom layout that mimics form-like selection within a dropdown.
@@ -16,7 +16,7 @@ examples:
16
16
  - dropdown_with_search_rails: Custom Trigger Dropdown with Search
17
17
  - dropdown_with_custom_padding: Custom Option Padding
18
18
  - dropdown_with_custom_icon_options: Custom Icon Options
19
- # - dropdown_with_custom_radio_options: Custom Radio Options # TODO: Update and publish doc ex in the Rails follow up to [PLAY-2146](https://runway.powerhrg.com/backlog_items/PLAY-2146) (remove this comment afterwards)
19
+ # - dropdown_with_custom_radio_options: Custom Radio Options # TODO: Update and publish doc ex in [PLAY-2146](https://runway.powerhrg.com/backlog_items/PLAY-2146) (remove this comment afterwards)
20
20
  - dropdown_error: Dropdown with Error
21
21
  - dropdown_default_value: Default Value
22
22
  - dropdown_multi_select_with_default: Multi Select Default Value
@@ -39,9 +39,8 @@ examples:
39
39
  - dropdown_with_custom_trigger: Custom Trigger
40
40
  - dropdown_with_search: Custom Trigger Dropdown with Search
41
41
  - dropdown_with_custom_padding: Custom Option Padding
42
- - dropdown_with_custom_active_style_options: Custom Active Style Options
43
42
  - dropdown_with_custom_icon_options: Custom Icon Options
44
- - dropdown_with_custom_radio_options: Custom Radio Options
43
+ # - dropdown_with_custom_radio_options: Custom Radio Options # TODO: Update and publish doc ex in [PLAY-2146](https://runway.powerhrg.com/backlog_items/PLAY-2146) (remove this comment afterwards)
45
44
  - dropdown_error: Dropdown with Error
46
45
  - dropdown_default_value: Default Value
47
46
  - dropdown_multi_select_with_default: Multi Select Default Value
@@ -21,5 +21,4 @@ export { default as DropdownMultiSelectWithAutocomplete } from './_dropdown_mult
21
21
  export { default as DropdownMultiSelectWithDefault } from './_dropdown_multi_select_with_default.jsx'
22
22
  export { default as DropdownMultiSelectWithCustomOptions } from './_dropdown_multi_select_with_custom_options.jsx'
23
23
  export {default as DropdownWithCustomIconOptions} from './_dropdown_with_custom_icon_options.jsx'
24
- export {default as DropdownWithCustomRadioOptions} from './_dropdown_with_custom_radio_options.jsx'
25
- export {default as DropdownWithCustomActiveStyleOptions} from './_dropdown_with_custom_active_style_options.jsx'
24
+ export {default as DropdownWithCustomRadioOptions} from './_dropdown_with_custom_radio_options.jsx'
@@ -8,7 +8,6 @@ examples:
8
8
  - fixed_confirmation_toast_auto_close: Click to Show Auto Close
9
9
  - fixed_confirmation_toast_children: Children
10
10
  - fixed_confirmation_toast_custom_icon: Custom Icon
11
- - fixed_confirmation_toast_no_icon: No Icon
12
11
 
13
12
  react:
14
13
  - fixed_confirmation_toast_default: Default
@@ -18,7 +17,6 @@ examples:
18
17
  - fixed_confirmation_toast_auto_close: Click to Show Auto Close
19
18
  - fixed_confirmation_toast_children: Children
20
19
  - fixed_confirmation_toast_custom_icon: Custom Icon
21
- - fixed_confirmation_toast_no_icon: No Icon
22
20
 
23
21
  swift:
24
22
  - fixed_confirmation_toast_default_swift: Default
@@ -5,4 +5,3 @@ export { default as FixedConfirmationToastPositions } from './_fixed_confirmatio
5
5
  export { default as FixedConfirmationToastAutoClose } from './_fixed_confirmation_toast_auto_close.jsx'
6
6
  export { default as FixedConfirmationToastChildren } from './_fixed_confirmation_toast_children.jsx'
7
7
  export { default as FixedConfirmationToastCustomIcon } from './_fixed_confirmation_toast_custom_icon.jsx'
8
- export { default as FixedConfirmationToastNoIcon } from './_fixed_confirmation_toast_no_icon.jsx'
@@ -13,4 +13,4 @@ export { default as MultiLevelSelectDisabledOptions } from './_multi_level_selec
13
13
  export { default as MultiLevelSelectDisabledOptionsParent } from './_multi_level_select_disabled_options_parent.jsx'
14
14
  export { default as MultiLevelSelectDisabledOptionsParentDefault } from './_multi_level_select_disabled_options_parent_default.jsx'
15
15
  export { default as MultiLevelSelectDisabledOptionsDefault } from './_multi_level_select_disabled_options_default.jsx'
16
- export { default as MultiLevelSelectLabel } from './_multi_level_select_label.jsx'
16
+ export { default as MultiLevelSelectLabel } from './_multi_level_select_label.jsx'
@@ -3,6 +3,4 @@ Our Pagination kit depends on the <a href="https://github.com/mislav/will_pagina
3
3
 
4
4
  Once you have perfomed the paginated query in your controller file you can use our kit (see code example below) instead of `<%= will_paginate @users %>` in your view file.
5
5
 
6
- You need to add: <code>require "playbook/pagination_renderer"</code> in your apps controller file.
7
-
8
- Note: If the total page count is 0 or 1, the Pagination kit will not be displayed as there aren't multiple pages to navigate.
6
+ You need to add: <code>require "playbook/pagination_renderer"</code> in your apps controller file.
@@ -1,3 +1 @@
1
- The `range` prop determines how many pages to display in the Pagination component. Regardless of this value, the first two and last two pages are always visible to facilitate navigation to the beginning and end of the pagination. If these always-visible pages fall within the specified range, they are included in the display. If they fall outside the range, the pagination will show additional pages up to the number defined by the `range` prop.
2
-
3
- Note: If the `total` pages prop is 0 or 1, the Pagination component will not be displayed, as there aren't multiple pages to navigate.
1
+ The `range` prop determines how many pages to display in the Pagination component. Regardless of this value, the first two and last two pages are always visible to facilitate navigation to the beginning and end of the pagination. If these always-visible pages fall within the specified range, they are included in the display. If they fall outside the range, the pagination will show additional pages up to the number defined by the `range` prop.
@@ -6,4 +6,3 @@ examples:
6
6
  react:
7
7
  - pagination_default: Default
8
8
  - pagination_page_change: Page Change
9
- - pagination_external_control: External Control
@@ -1,3 +1,2 @@
1
1
  export { default as PaginationDefault } from './_pagination_default.jsx'
2
2
  export { default as PaginationPageChange } from './_pagination_page_change.jsx'
3
- export { default as PaginationExternalControl } from './_pagination_external_control.jsx'
@@ -19,7 +19,6 @@
19
19
  value: "checkbox-value",
20
20
  name: "main-checkbox-selectable",
21
21
  indeterminate_main: true,
22
- indeterminate_main_labels: ["", ""],
23
22
  id: "checkbox-selectable"
24
23
  }) %>
25
24
  <% end %>
@@ -0,0 +1,69 @@
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
@@ -0,0 +1,71 @@
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
@@ -0,0 +1,110 @@
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
@@ -0,0 +1,76 @@
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
@@ -0,0 +1,76 @@
1
+ import React, { useState } from 'react'
2
+ import Button from '../../pb_button/_button'
3
+ import Walkthrough from '../../pb_walkthrough/_walkthrough'
4
+
5
+ const WalkthroughNoOverlay = (props) => {
6
+ const [noOverlay, setNoOverlayState] = 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
+ setNoOverlayState({ ...noOverlay, run: false })
11
+ }
12
+ },
13
+ disableOverlay: true,
14
+ run: false,
15
+ steps: [
16
+ {
17
+ title: 'Example Title',
18
+ 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',
19
+ target: '.exampleNoOverlay',
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="exampleNoOverlay"
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
+ setNoOverlayState({ ...noOverlay,
47
+ run: true,
48
+ })
49
+ }}
50
+ >
51
+ {'Start Tour'}
52
+ </Button>
53
+ <br />
54
+ <br />
55
+ <Button
56
+ onClick={() => {
57
+ setNoOverlayState({
58
+ ...noOverlay,
59
+ run: false,
60
+ })
61
+ }}
62
+ >
63
+ {'Reset/Stop Tour'}
64
+ </Button>
65
+
66
+ <Walkthrough
67
+ disableOverlay
68
+ run={noOverlay.run}
69
+ steps={noOverlay.steps}
70
+ {...props}
71
+ />
72
+ </div>
73
+ )
74
+ }
75
+
76
+ export default WalkthroughNoOverlay