playbook_ui_docs 14.23.0.pre.alpha.play23129273 → 14.23.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 (131) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +6 -14
  3. data/app/pb_kits/playbook/pb_advanced_table/docs/index.js +0 -5
  4. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_colors.jsx +15 -33
  5. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.jsx +72 -0
  6. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.md +6 -0
  7. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_default.jsx +15 -33
  8. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_height.jsx +22 -52
  9. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_horizontal.jsx +16 -12
  10. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend.jsx +15 -31
  11. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_non_clickable.jsx +16 -39
  12. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_position.jsx +38 -86
  13. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_position.md +1 -1
  14. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_negative_numbers.jsx +15 -32
  15. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_pb_styles.jsx +64 -0
  16. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_pb_styles.md +1 -0
  17. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_secondary_y_axis.jsx +22 -72
  18. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_secondary_y_axis.md +1 -1
  19. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_spline.jsx +15 -31
  20. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_stacked.jsx +16 -37
  21. data/app/pb_kits/playbook/pb_bar_graph/docs/_description.md +3 -1
  22. data/app/pb_kits/playbook/pb_bar_graph/docs/example.yml +3 -1
  23. data/app/pb_kits/playbook/pb_bar_graph/docs/index.js +2 -0
  24. data/app/pb_kits/playbook/pb_body/docs/_body_truncate.jsx +3 -3
  25. data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_indeterminate.html.erb +1 -1
  26. data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_indeterminate_rails.md +1 -2
  27. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_block.jsx +26 -71
  28. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_colors.jsx +16 -29
  29. data/app/pb_kits/playbook/pb_circle_chart/docs/{_circle_chart_colors_rails.md → _circle_chart_colors.md} +1 -1
  30. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_custom_tooltip.jsx +16 -28
  31. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_custom_tooltip.md +2 -4
  32. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_default.jsx +15 -23
  33. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_inner_sizes.jsx +51 -81
  34. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.jsx +75 -103
  35. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.md +7 -4
  36. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_live_data.jsx +13 -19
  37. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_pb_styles.jsx +38 -0
  38. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_pb_styles.md +1 -0
  39. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_rounded.jsx +17 -30
  40. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_labels.jsx +20 -34
  41. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_legend_kit.jsx +20 -29
  42. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_title.jsx +20 -28
  43. data/app/pb_kits/playbook/pb_circle_chart/docs/example.yml +1 -0
  44. data/app/pb_kits/playbook/pb_circle_chart/docs/index.js +1 -0
  45. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_radio_options.jsx +0 -1
  46. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_radio_options_react.md +1 -1
  47. data/app/pb_kits/playbook/pb_dropdown/docs/example.yml +2 -3
  48. data/app/pb_kits/playbook/pb_dropdown/docs/index.js +1 -2
  49. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_colors.jsx +15 -32
  50. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_complex.jsx +9 -35
  51. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_default.jsx +14 -26
  52. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_disable_animation.jsx +15 -32
  53. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_full_circle.jsx +17 -45
  54. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_height.jsx +22 -59
  55. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_live_data.jsx +9 -40
  56. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_min_max.jsx +18 -50
  57. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_pb_styles.jsx +30 -0
  58. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_pb_styles.md +1 -0
  59. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_sizing.jsx +18 -31
  60. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_title.jsx +17 -34
  61. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_units.jsx +23 -64
  62. data/app/pb_kits/playbook/pb_gauge/docs/example.yml +1 -0
  63. data/app/pb_kits/playbook/pb_gauge/docs/index.js +1 -0
  64. data/app/pb_kits/playbook/pb_line_graph/docs/_description.md +3 -1
  65. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_colors.jsx +17 -36
  66. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_default.jsx +16 -31
  67. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_height.jsx +31 -63
  68. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend.jsx +16 -35
  69. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_nonclickable.jsx +16 -41
  70. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_position.jsx +62 -107
  71. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_position.md +7 -4
  72. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_pb_styles.jsx +52 -0
  73. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_pb_styles.md +1 -0
  74. data/app/pb_kits/playbook/pb_line_graph/docs/example.yml +1 -0
  75. data/app/pb_kits/playbook/pb_line_graph/docs/index.js +1 -0
  76. data/app/pb_kits/playbook/pb_pagination/docs/_pagination_default_rails.md +1 -3
  77. data/app/pb_kits/playbook/pb_pagination/docs/_pagination_default_react.md +1 -3
  78. data/app/pb_kits/playbook/pb_phone_number_input/docs/example.yml +0 -2
  79. data/app/pb_kits/playbook/pb_phone_number_input/docs/index.js +0 -1
  80. data/app/pb_kits/playbook/pb_table/docs/_table_with_selectable_rows.html.erb +0 -1
  81. data/app/pb_kits/playbook/pb_title/docs/_title_truncate.jsx +3 -3
  82. data/app/pb_kits/playbook/pb_tooltip/docs/example.yml +0 -1
  83. data/app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_continuous.jsx +69 -0
  84. data/app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_default.jsx +71 -0
  85. data/app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_multi_beacon.jsx +110 -0
  86. data/app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_no_beacon.jsx +76 -0
  87. data/app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_no_overlay.jsx +76 -0
  88. data/app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_styled.jsx +76 -0
  89. data/app/pb_kits/playbook/pb_walkthrough/docs/example.yml +10 -0
  90. data/app/pb_kits/playbook/pb_walkthrough/docs/index.js +6 -0
  91. data/dist/playbook-doc.js +2 -2
  92. metadata +28 -42
  93. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_custom_sort.jsx +0 -65
  94. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_custom_sort.md +0 -5
  95. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_row_styling.html.erb +0 -46
  96. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_row_styling_rails.md +0 -7
  97. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort_per_column.jsx +0 -55
  98. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort_per_column.md +0 -6
  99. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort_per_column_for_multi_column.jsx +0 -80
  100. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort_per_column_for_multi_column.md +0 -1
  101. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_with_custom_header.jsx +0 -69
  102. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_with_custom_header.md +0 -1
  103. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_with_custom_header_multi_header.jsx +0 -107
  104. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_with_custom_header_multi_header.md +0 -1
  105. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_with_custom_header_rails.html.erb +0 -51
  106. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_with_custom_header_rails.md +0 -1
  107. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_height.md +0 -3
  108. data/app/pb_kits/playbook/pb_body/docs/_body_truncate_react.md +0 -4
  109. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_colors_react.md +0 -2
  110. data/app/pb_kits/playbook/pb_circle_chart/docs/_description.md +0 -1
  111. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_active_style_options.jsx +0 -90
  112. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_active_style_options_react.md +0 -4
  113. data/app/pb_kits/playbook/pb_gauge/docs/_description.md +0 -1
  114. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_colors_react.md +0 -2
  115. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_complex_react.md +0 -1
  116. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_units_react.md +0 -1
  117. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_colors_react.md +0 -3
  118. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_height.md +0 -3
  119. data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_strict_mode.html.erb +0 -10
  120. data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_strict_mode.jsx +0 -26
  121. data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_strict_mode.md +0 -3
  122. data/app/pb_kits/playbook/pb_title/docs/_title_truncate_react.md +0 -4
  123. data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_click_open.html.erb +0 -14
  124. data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_click_open_rails.md +0 -1
  125. /data/app/pb_kits/playbook/pb_advanced_table/docs/{_advanced_table_row_styling_react.md → _advanced_table_row_styling.md} +0 -0
  126. /data/app/pb_kits/playbook/pb_body/docs/{_body_truncate_rails.md → _body_truncate.md} +0 -0
  127. /data/app/pb_kits/playbook/pb_gauge/docs/{_gauge_colors_rails.md → _gauge_colors.md} +0 -0
  128. /data/app/pb_kits/playbook/pb_gauge/docs/{_gauge_complex_rails.md → _gauge_complex.md} +0 -0
  129. /data/app/pb_kits/playbook/pb_line_graph/docs/{_line_graph_colors_rails.md → _line_graph_colors.md} +0 -0
  130. /data/app/pb_kits/playbook/pb_title/docs/{_title_truncate_rails.md → _title_truncate.md} +0 -0
  131. /data/app/pb_kits/playbook/pb_tooltip/docs/{_tooltip_click_open_react.md → _tooltip_click_open.md} +0 -0
@@ -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
@@ -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 WalkthroughStyled = (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: '.styled',
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="styled"
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
+ styles={{
66
+ options: {
67
+ beaconSize: 120,
68
+ },
69
+ }}
70
+ {...props}
71
+ />
72
+ </div>
73
+ )
74
+ }
75
+
76
+ export default WalkthroughStyled
@@ -0,0 +1,10 @@
1
+ examples:
2
+
3
+
4
+ react:
5
+ - walkthrough_default: Default
6
+ - walkthrough_continuous: Continuous
7
+ - walkthrough_no_beacon: No Beacon
8
+ - walkthrough_no_overlay: No Overlay
9
+ - walkthrough_multi_beacon: Multi Beacon
10
+ - walkthrough_styled: Styled
@@ -0,0 +1,6 @@
1
+ export { default as WalkthroughDefault } from './_walkthrough_default.jsx'
2
+ export { default as WalkthroughContinuous } from './_walkthrough_continuous.jsx'
3
+ export { default as WalkthroughNoBeacon } from './_walkthrough_no_beacon.jsx'
4
+ export { default as WalkthroughMultiBeacon } from './_walkthrough_multi_beacon.jsx'
5
+ export { default as WalkthroughNoOverlay } from './_walkthrough_no_overlay.jsx'
6
+ export { default as WalkthroughStyled } from './_walkthrough_styled.jsx'