playbook_ui_docs 14.23.0.pre.alpha.PLAY2283multiheaderverticalbordersdoc9335 → 14.23.0.pre.alpha.PLAY2303optD9000

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 (87) 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/_advanced_table_with_custom_header.md +1 -1
  5. data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +0 -7
  6. data/app/pb_kits/playbook/pb_advanced_table/docs/index.js +0 -4
  7. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_position.md +1 -1
  8. data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_indeterminate.html.erb +1 -1
  9. data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_indeterminate_rails.md +1 -2
  10. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.md +1 -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_gauge/docs/_gauge_colors.jsx +15 -32
  16. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_complex.jsx +9 -35
  17. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_default.jsx +14 -26
  18. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_disable_animation.jsx +15 -32
  19. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_full_circle.jsx +17 -45
  20. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_height.jsx +22 -59
  21. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_live_data.jsx +9 -40
  22. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_min_max.jsx +18 -50
  23. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_pb_styles.jsx +30 -0
  24. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_pb_styles.md +1 -0
  25. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_sizing.jsx +18 -31
  26. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_title.jsx +17 -34
  27. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_units.jsx +23 -64
  28. data/app/pb_kits/playbook/pb_gauge/docs/example.yml +1 -0
  29. data/app/pb_kits/playbook/pb_gauge/docs/index.js +1 -0
  30. data/app/pb_kits/playbook/pb_line_graph/docs/_description.md +3 -1
  31. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_colors.jsx +17 -36
  32. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_default.jsx +16 -31
  33. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_height.jsx +31 -63
  34. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend.jsx +16 -35
  35. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_nonclickable.jsx +16 -41
  36. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_position.jsx +62 -107
  37. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_position.md +7 -4
  38. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_pb_styles.jsx +52 -0
  39. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_pb_styles.md +1 -0
  40. data/app/pb_kits/playbook/pb_line_graph/docs/example.yml +1 -0
  41. data/app/pb_kits/playbook/pb_line_graph/docs/index.js +1 -0
  42. data/app/pb_kits/playbook/pb_multi_level_select/docs/index.js +1 -1
  43. data/app/pb_kits/playbook/pb_pagination/docs/_pagination_default_rails.md +1 -3
  44. data/app/pb_kits/playbook/pb_pagination/docs/_pagination_default_react.md +1 -3
  45. data/app/pb_kits/playbook/pb_phone_number_input/docs/example.yml +0 -2
  46. data/app/pb_kits/playbook/pb_phone_number_input/docs/index.js +0 -1
  47. data/app/pb_kits/playbook/pb_table/docs/_table_with_selectable_rows.html.erb +0 -1
  48. data/app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_continuous.jsx +69 -0
  49. data/app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_default.jsx +71 -0
  50. data/app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_multi_beacon.jsx +110 -0
  51. data/app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_no_beacon.jsx +76 -0
  52. data/app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_no_overlay.jsx +76 -0
  53. data/app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_styled.jsx +76 -0
  54. data/app/pb_kits/playbook/pb_walkthrough/docs/example.yml +10 -0
  55. data/app/pb_kits/playbook/pb_walkthrough/docs/index.js +6 -0
  56. data/dist/playbook-doc.js +2 -2
  57. metadata +18 -32
  58. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers_vertical_border.html.erb +0 -43
  59. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers_vertical_border.jsx +0 -64
  60. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_row_styling.html.erb +0 -46
  61. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_row_styling_rails.md +0 -7
  62. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort_per_column.jsx +0 -55
  63. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort_per_column.md +0 -6
  64. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort_per_column_for_multi_column.jsx +0 -80
  65. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort_per_column_for_multi_column.md +0 -1
  66. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_with_custom_header_multi_header.jsx +0 -107
  67. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_with_custom_header_multi_header.md +0 -1
  68. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_with_custom_header_rails.html.erb +0 -51
  69. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_with_custom_header_rails.md +0 -1
  70. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_active_style_options.jsx +0 -90
  71. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_active_style_options_react.md +0 -4
  72. data/app/pb_kits/playbook/pb_gauge/docs/_description.md +0 -1
  73. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_colors_react.md +0 -2
  74. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_complex_react.md +0 -1
  75. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_units_react.md +0 -1
  76. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_colors_react.md +0 -3
  77. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_height.md +0 -3
  78. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_show_checked_children.html.erb +0 -75
  79. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_show_checked_children.jsx +0 -94
  80. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_show_checked_children.md +0 -3
  81. data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_strict_mode.html.erb +0 -10
  82. data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_strict_mode.jsx +0 -26
  83. data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_strict_mode.md +0 -3
  84. /data/app/pb_kits/playbook/pb_advanced_table/docs/{_advanced_table_row_styling_react.md → _advanced_table_row_styling.md} +0 -0
  85. /data/app/pb_kits/playbook/pb_gauge/docs/{_gauge_colors_rails.md → _gauge_colors.md} +0 -0
  86. /data/app/pb_kits/playbook/pb_gauge/docs/{_gauge_complex_rails.md → _gauge_complex.md} +0 -0
  87. /data/app/pb_kits/playbook/pb_line_graph/docs/{_line_graph_colors_rails.md → _line_graph_colors.md} +0 -0
@@ -1,90 +0,0 @@
1
- import React from 'react'
2
- import Dropdown from '../_dropdown'
3
-
4
- const DropdownCustomActiveStyleOptions = (props) => {
5
-
6
-
7
- const options = [
8
- {
9
- label: "United States",
10
- value: "unitedStates",
11
- id: "us"
12
- },
13
- {
14
- label: "Canada",
15
- value: "canada",
16
- id: "ca"
17
- },
18
- {
19
- label: "Pakistan",
20
- value: "pakistan",
21
- id: "pk"
22
- }
23
- ];
24
-
25
-
26
- return (
27
- <div>
28
- <Dropdown
29
- activeStyle={{
30
- backgroundColor: "bg_light",
31
- fontColor: "primary",
32
- }}
33
- label="Background Color: bg_light; Font Color: primary"
34
- marginBottom="sm"
35
- options={options}
36
- {...props}
37
- >
38
- <Dropdown.Trigger/>
39
- <Dropdown.Container>
40
- {options.map((option) => (
41
- <Dropdown.Option key={option.id}
42
- option={option}
43
- />
44
- ))}
45
- </Dropdown.Container>
46
- </Dropdown>
47
- <Dropdown
48
- activeStyle={{
49
- backgroundColor: "white",
50
- fontColor: "primary",
51
- }}
52
- label="Background Color: white; Font Color: primary"
53
- marginBottom="sm"
54
- options={options}
55
- {...props}
56
- />
57
- <Dropdown
58
- activeStyle={{
59
- backgroundColor: "bg_light",
60
- fontColor: "text_lt_default",
61
- }}
62
- autocomplete
63
- label="Background Color: bg_light; Font Color: text_lt_default"
64
- marginBottom="sm"
65
- options={options}
66
- {...props}
67
- />
68
- <Dropdown
69
- activeStyle={{
70
- fontColor: "text_lt_lighter",
71
- }}
72
- label="Font Color: text_lt_lighter"
73
- marginBottom="sm"
74
- options={options}
75
- {...props}
76
- >
77
- <Dropdown.Trigger/>
78
- <Dropdown.Container>
79
- {options.map((option) => (
80
- <Dropdown.Option key={option.id}
81
- option={option}
82
- />
83
- ))}
84
- </Dropdown.Container>
85
- </Dropdown>
86
- </div>
87
- )
88
- }
89
-
90
- export default DropdownCustomActiveStyleOptions
@@ -1,4 +0,0 @@
1
- The `activeStyle` prop can be used to customize the appearance of the dropdown selection indicator. It accepts an object with the following keys: `backgroundColor` sets the background color of the selected item (and its hover state); `fontColor` sets the font color of the selected item.
2
-
3
- `backgroundColor` **Type**: String | **Values**: bg_light | white | **Default**: (no selection) is primary
4
- `fontColor` **Type**: String | **Values**: primary | all [Playbook Text Colors](https://playbook.powerapp.cloud/visual_guidelines/colors) | **Default**: (no selection) is white
@@ -1 +0,0 @@
1
- **Important Note for the React Kit**: In order to leverage this kit, you must install `highcharts` and `highcharts-react-official` into your project as shown below. To then apply Playbook styles to your Highchart, import gaugeTheme.ts from playbook-ui and merge it with your Highchart options. Then, pass the merged value to the options prop. Playbook’s styling will be applied automatically. See the examples in the documentation below.
@@ -1,2 +0,0 @@
1
- Custom data colors allow for color customization to match the needs of business requirements.
2
- Pass the prop `plotOptions.solidgauge.borderColor` with a Playbook token like `colors.` + `data_1 | data_2 | data_3 | data_4 | data_5 | data_6 | data_7 | data_8`. Hex colors are also available `eg: #CA0095`
@@ -1 +0,0 @@
1
- We are able to wrap the Highcharts Gauge kit within Playbook kits (such as Flex and Card components).
@@ -1 +0,0 @@
1
- Use custom CSS with classes or inline styles (as shown in these docs) to customize the appearance of prefix and suffix units.
@@ -1,3 +0,0 @@
1
-
2
- Custom data colors allow for color customization to match the needs of business requirements.
3
- Import the colors from Playbook's tokens, then set custom colors in the colors array using the desired color variables. Hex colors are also available `eg: #CA0095`.
@@ -1,3 +0,0 @@
1
- By default, Highcharts have a height of 400px, but this can be customized. You can override the default by specifying either a percentage or a fixed pixel value.
2
-
3
- Using a percentage maintains a consistent aspect ratio across different responsive sizes. For example, setting the height to 50% makes the chart’s height half of its width.
@@ -1,75 +0,0 @@
1
- <% treeData = [{
2
- label: "Power Home Remodeling",
3
- value: "powerHomeRemodeling",
4
- id: "100",
5
- expanded: true,
6
- children: [
7
- {
8
- label: "People",
9
- value: "people",
10
- id: "101",
11
- children: [
12
- {
13
- label: "Talent Acquisition",
14
- value: "talentAcquisition",
15
- id: "102",
16
- },
17
- {
18
- label: "Business Affairs",
19
- value: "businessAffairs",
20
- id: "103",
21
- children: [
22
- {
23
- label: "Initiatives",
24
- value: "initiatives",
25
- id: "104",
26
- },
27
- {
28
- label: "Learning & Development",
29
- value: "learningAndDevelopment",
30
- id: "105",
31
- },
32
- ],
33
- },
34
- {
35
- label: "People Experience",
36
- value: "peopleExperience",
37
- id: "106",
38
- },
39
- ],
40
- },
41
- {
42
- label: "Contact Center",
43
- value: "contactCenter",
44
- id: "107",
45
- children: [
46
- {
47
- label: "Appointment Management",
48
- value: "appointmentManagement",
49
- id: "108",
50
- },
51
- {
52
- label: "Customer Service",
53
- value: "customerService",
54
- id: "109",
55
- },
56
- {
57
- label: "Energy",
58
- value: "energy",
59
- id: "110",
60
- },
61
- ],
62
- },
63
- ],
64
- }] %>
65
-
66
- <% # Pre-selected node IDs to demonstrate the functionality %>
67
- <% preSelectedIds = ["102", "104", "109"] %>
68
-
69
- <%= pb_rails("multi_level_select", props: {
70
- id: "multi-level-select-show-checked-children-rails",
71
- name: "my_array",
72
- tree_data: treeData,
73
- selected_ids: preSelectedIds,
74
- show_checked_children: false
75
- }) %>
@@ -1,94 +0,0 @@
1
- import React from "react";
2
- import MultiLevelSelect from "../_multi_level_select";
3
-
4
- const treeData = [
5
- {
6
- label: "Power Home Remodeling",
7
- value: "powerHomeRemodeling",
8
- id: "powerhome1",
9
- expanded: true,
10
- children: [
11
- {
12
- label: "People",
13
- value: "people",
14
- id: "people1",
15
- children: [
16
- {
17
- label: "Talent Acquisition",
18
- value: "talentAcquisition",
19
- id: "talent1",
20
- },
21
- {
22
- label: "Business Affairs",
23
- value: "businessAffairs",
24
- id: "business1",
25
- children: [
26
- {
27
- label: "Initiatives",
28
- value: "initiatives",
29
- id: "initiative1",
30
- },
31
- {
32
- label: "Learning & Development",
33
- value: "learningAndDevelopment",
34
- id: "development1",
35
- },
36
- ],
37
- },
38
- {
39
- label: "People Experience",
40
- value: "peopleExperience",
41
- id: "experience1",
42
- },
43
- ],
44
- },
45
- {
46
- label: "Contact Center",
47
- value: "contactCenter",
48
- id: "contact1",
49
- children: [
50
- {
51
- label: "Appointment Management",
52
- value: "appointmentManagement",
53
- id: "appointment1",
54
- },
55
- {
56
- label: "Customer Service",
57
- value: "customerService",
58
- id: "customer1",
59
- },
60
- {
61
- label: "Energy",
62
- value: "energy",
63
- id: "energy1",
64
- },
65
- ],
66
- },
67
- ],
68
- },
69
- ];
70
-
71
- // Pre-selected node IDs to demonstrate the functionality
72
- const preSelectedIds = ["talent1", "initiative1", "customer1"];
73
-
74
- const MultiLevelSelectShowCheckedChildren = (props) => {
75
- return (
76
- <div>
77
- <MultiLevelSelect
78
- id='multiselect-checked-children'
79
- onSelect={(selectedNodes) =>
80
- console.log(
81
- "Selected Items",
82
- selectedNodes
83
- )
84
- }
85
- selectedIds={preSelectedIds}
86
- showCheckedChildren={false}
87
- treeData={treeData}
88
- {...props}
89
- />
90
- </div>
91
- )
92
- };
93
-
94
- export default MultiLevelSelectShowCheckedChildren;
@@ -1,3 +0,0 @@
1
- If you wish to control the auto-expansion of nodes with selected descendants in your multi-level select, you can utilize `showCheckedChildren/show_checked_children`. This prop (set to 'true' by default) controls whether items will be expanded on first render. When set to true, a node with selected descendants will automatically render as expanded so the selected nodes are visible. If you do NOT wish for this to be the case, you can set this prop to false.
2
-
3
- The prop will still honor any `expanded` attribute set up within your tree data.
@@ -1,10 +0,0 @@
1
- <%= pb_rails("phone_number_input", props: {
2
- strict_mode: true,
3
- }) %>
4
-
5
- <%= pb_rails("body", props: { text: "With format_as_you_type" }) %>
6
-
7
- <%= pb_rails("phone_number_input", props: {
8
- strict_mode: true,
9
- format_as_you_type: true,
10
- }) %>
@@ -1,26 +0,0 @@
1
- import React from "react";
2
-
3
- import Body from '../../pb_body/_body'
4
- import PhoneNumberInput from '../../pb_phone_number_input/_phone_number_input'
5
-
6
- const PhoneNumberInputStrictMode = (props) => {
7
-
8
- return (
9
- <>
10
- <PhoneNumberInput
11
- id="strict"
12
- strictMode
13
- {...props}
14
- />
15
- <Body>With formatAsYouType</Body>
16
- <PhoneNumberInput
17
- formatAsYouType
18
- id="strict"
19
- strictMode
20
- {...props}
21
- />
22
- </>
23
- );
24
- };
25
-
26
- export default PhoneNumberInputStrictMode;
@@ -1,3 +0,0 @@
1
- Ignore any irrelevant characters and cap the length at the maximum valid number length.
2
-
3
- This can be combined with `format_as_you_type` / `formatAsYouType`.