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
@@ -1 +0,0 @@
1
- By default, the Date kit does NOT display the year if it is the current year. If you want to display the current year you can do so by setting `showCurrentYear`/`show_current_year` to true as shown here.
@@ -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,22 +0,0 @@
1
- <%= pb_rails("fixed_confirmation_toast", props: {
2
- text: "Error Message",
3
- status: "error",
4
- icon: "none",
5
- closeable: true
6
- })%>
7
-
8
- <br><br>
9
-
10
- <%= pb_rails("fixed_confirmation_toast", props: {
11
- text: "Items Successfully Moved",
12
- status: "success",
13
- icon: "none"
14
- })%>
15
-
16
- <br><br>
17
-
18
- <%= pb_rails("fixed_confirmation_toast", props: {
19
- text: "Scan to Assign Selected Items",
20
- status: "neutral",
21
- icon: "none"
22
- })%>
@@ -1,43 +0,0 @@
1
- import React from 'react'
2
-
3
- import FixedConfirmationToast from '../_fixed_confirmation_toast'
4
-
5
- const FixedConfirmationToastNoIcon = (props) => {
6
- return (
7
- <div>
8
- <div>
9
- <FixedConfirmationToast
10
- closeable
11
- icon="none"
12
- status="error"
13
- text="Error Message"
14
- {...props}
15
- />
16
- </div>
17
-
18
- <br />
19
-
20
- <div>
21
- <FixedConfirmationToast
22
- icon="none"
23
- status="success"
24
- text="Items Successfully Moved"
25
- {...props}
26
- />
27
- </div>
28
-
29
- <br />
30
-
31
- <div>
32
- <FixedConfirmationToast
33
- icon="none"
34
- status="neutral"
35
- text="Scan to Assign Selected Items"
36
- {...props}
37
- />
38
- </div>
39
- </div>
40
- )
41
- }
42
-
43
- export default FixedConfirmationToastNoIcon
@@ -1 +0,0 @@
1
- Setting `icon` prop to "none" will render the fixed confirmation toast without the left side icon.
@@ -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,112 +0,0 @@
1
- import React, { useState } from "react";
2
- import Flex from '../../pb_flex/_flex'
3
- import Pagination from '../../pb_pagination/_pagination'
4
- import Select from '../../pb_select/_select'
5
- import Table from '../../pb_table/_table'
6
-
7
- import { data } from "./data";
8
-
9
- const PaginationExternalControl = (props) => {
10
- const [totalItems, setTotalItems] = useState(20);
11
- const [itemsPerPage, setItemsPerPage] = useState(5);
12
- const [currentPage, setCurrentPage] = useState(1);
13
-
14
- const totalPages = Math.ceil(totalItems / itemsPerPage);
15
-
16
- const handlePageChange = (page) => {
17
- setCurrentPage(page);
18
- };
19
-
20
- const limitedData = data.slice(0, totalItems);
21
- const startIndex = (currentPage - 1) * itemsPerPage;
22
- const paginatedItems = limitedData.slice(startIndex, startIndex + itemsPerPage);
23
-
24
- const handleTotalItemsChange = (event) => {
25
- const value = Number(event.target.value);
26
- setTotalItems(value);
27
- setCurrentPage(1);
28
- };
29
-
30
- const handleItemsPerPageChange = (event) => {
31
- const value = Number(event.target.value);
32
- setItemsPerPage(value);
33
- setCurrentPage(1);
34
- };
35
-
36
- return (
37
- <>
38
- <Flex gap="sm">
39
- <Select
40
- label="Total Items"
41
- onChange={handleTotalItemsChange}
42
- options={[
43
- { value: "5", text: "5" },
44
- { value: "10", text: "10" },
45
- { value: "20", text: "20" }
46
- ]}
47
- size="sm"
48
- value={String(totalItems)}
49
- {...props}
50
- />
51
-
52
- <Select
53
- label="Items per Page"
54
- onChange={handleItemsPerPageChange}
55
- options={[
56
- { value: "3", text: "3" },
57
- { value: "5", text: "5" },
58
- { value: "10", text: "10" }
59
- ]}
60
- size="sm"
61
- value={String(itemsPerPage)}
62
- {...props}
63
- />
64
- </Flex>
65
-
66
- <Pagination
67
- current={currentPage}
68
- key={`pagination-top-${currentPage}`}
69
- marginBottom="xs"
70
- onChange={handlePageChange}
71
- range={5}
72
- total={totalPages}
73
- {...props}
74
- />
75
- <Table
76
- marginBottom="xs"
77
- responsive="none"
78
- size="sm"
79
- {...props}
80
- >
81
- <Table.Head>
82
- <Table.Row>
83
- <Table.Header>{"Column 1"}</Table.Header>
84
- <Table.Header>{"Column 2"}</Table.Header>
85
- <Table.Header>{"Column 3"}</Table.Header>
86
- <Table.Header>{"Column 4"}</Table.Header>
87
- <Table.Header>{"Column 5"}</Table.Header>
88
- </Table.Row>
89
- </Table.Head>
90
- <Table.Body>
91
- {paginatedItems.map((row, index) => (
92
- <Table.Row key={index}>
93
- {row.map((cell, cellIndex) => (
94
- <Table.Cell key={cellIndex}>{cell}</Table.Cell>
95
- ))}
96
- </Table.Row>
97
- ))}
98
- </Table.Body>
99
- </Table>
100
- <Pagination
101
- current={currentPage}
102
- key={`pagination-bottom-${currentPage}`}
103
- onChange={handlePageChange}
104
- range={5}
105
- total={totalPages}
106
- {...props}
107
- />
108
- </>
109
- )
110
- }
111
-
112
- export default PaginationExternalControl
@@ -1,3 +0,0 @@
1
- The Pagination component supports external control of the current page. This allows for programmatically reseting or changing the current page when filters or other criteria change, without needing to unmount and remount the component.
2
-
3
- In this example, changing the "Total Items" or "Items per Page" dropdowns will automatically reset the pagination to page 1, demonstrating how external control works. The pagination component will update its internal state to reflect the new `current` prop value.