playbook_ui_docs 16.10.0.pre.alpha.PLAY3053advancedtablebottompinnedrowsreact17469 → 16.10.0.pre.alpha.PLAY3088figmacodeconnecttrial17604

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 (24) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pinned_rows.jsx +2 -19
  3. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pinned_rows_both.jsx +57 -0
  4. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pinned_rows_both_react.md +1 -0
  5. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pinned_rows_bottom.jsx +57 -0
  6. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pinned_rows_bottom_react.md +1 -0
  7. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pinned_rows_react.md +1 -1
  8. data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +3 -1
  9. data/app/pb_kits/playbook/pb_advanced_table/docs/index.js +3 -1
  10. data/app/pb_kits/playbook/pb_full_screen/docs/_full_screen_table_and_filter.jsx +1 -1
  11. data/app/pb_kits/playbook/pb_full_screen/docs/_full_screen_table_and_filter.md +1 -1
  12. data/app/pb_kits/playbook/pb_nav/docs/_playground.json +117 -213
  13. data/app/pb_kits/playbook/pb_nav/docs/_playground.overrides.json +127 -319
  14. data/app/pb_kits/playbook/pb_textarea/docs/_textarea_error.html.erb +1 -1
  15. data/app/pb_kits/playbook/pb_title/docs/Title.figma.ts +44 -0
  16. data/app/pb_kits/playbook/pb_title/docs/Title.figma.tsx +39 -0
  17. data/app/pb_kits/playbook/pb_typeahead/docs/_playground.json +8 -2
  18. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_draggable_pills.html.erb +39 -0
  19. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_draggable_pills.jsx +63 -0
  20. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_draggable_pills.md +7 -0
  21. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_draggable_pills_rails.md +7 -0
  22. data/app/pb_kits/playbook/pb_typeahead/docs/example.yml +2 -0
  23. data/app/pb_kits/playbook/pb_typeahead/docs/index.js +1 -0
  24. metadata +12 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 54da223a58079747e07a434617596364176d18e253953d3538b471b5682514fc
4
- data.tar.gz: c9ac712cb4fc7704c4d122cf27377c4847d432664f7871a3536104332e85ddfe
3
+ metadata.gz: e41427b065be326b7f39a9c50c7646bb37c8ba6e468a2bac3bb56251c12cbc05
4
+ data.tar.gz: 6c8b2e841fa09acb651b1d5d3eaeb94c0d9b9bbdae92327e8cd14b394ac499e8
5
5
  SHA512:
6
- metadata.gz: 845a59d6693e7e4c17c38ecc339b30cf06fa815a77e222f40c4521b98a513dfeff8166aaae4f5a7fd35e5ae30e30a271e2d55a6fd7bbbe6197b73428d8f33e52
7
- data.tar.gz: db593af6693a42cde0cbe0ae239e25890041de12bc1957788210ac2db85a81e48cd499a8997c72e9bb39993c2fc8a039e3343a2e52061eb312c90711a5793333
6
+ metadata.gz: f979696ac74d9016cdb550585dd4233b39a6fb0f13fbe0b02976d67cf4ee89b0c634c7e277ae2e7547d3bdbdb712425bb4c9be18ab7f56a2d1f6528b3e6d817c
7
+ data.tar.gz: f3e4112c27741620a58b203ec014fa716cdfaf5599e7e424986f3e8c4661f3430ec59b0f5d34ef8d26e918f21f94957d6e59d9de6b9638c98979f9f8451abded
@@ -1,7 +1,6 @@
1
1
  import React, { useState } from "react"
2
2
  import AdvancedTable from '../_advanced_table'
3
3
  import MOCK_DATA_WITH_ID from "./advanced_table_mock_data_with_id.json"
4
- import Caption from "../../pb_caption/_caption"
5
4
 
6
5
  const AdvancedTableRowPinning = (props) => {
7
6
  const columnDefinitions = [
@@ -36,30 +35,14 @@ const AdvancedTableRowPinning = (props) => {
36
35
  },
37
36
  ]
38
37
 
39
- const [pinnedRowsTop, setPinnedRowsTop] = useState({top: ["8"]})
40
- const [pinnedRowsBottom, setPinnedRowsBottom] = useState({bottom: ["8"]})
38
+ const [pinnedRows, setPinnedRows] = useState({top: ["8"]})
41
39
 
42
40
  return (
43
41
  <div>
44
- <Caption text="Pinned Rows Top" />
45
42
  <AdvancedTable
46
43
  columnDefinitions={columnDefinitions}
47
44
  maxHeight="xs"
48
- pinnedRows={{value: pinnedRowsTop, onChange: setPinnedRowsTop}}
49
- tableData={MOCK_DATA_WITH_ID}
50
- tableProps={{sticky: true}}
51
- {...props}
52
- >
53
- <AdvancedTable.Header enableSorting />
54
- <AdvancedTable.Body />
55
- </AdvancedTable>
56
- <Caption marginTop="md"
57
- text="Pinned Rows Bottom"
58
- />
59
- <AdvancedTable
60
- columnDefinitions={columnDefinitions}
61
- maxHeight="xs"
62
- pinnedRows={{value: pinnedRowsBottom, onChange: setPinnedRowsBottom}}
45
+ pinnedRows={{value: pinnedRows, onChange: setPinnedRows}}
63
46
  tableData={MOCK_DATA_WITH_ID}
64
47
  tableProps={{sticky: true}}
65
48
  {...props}
@@ -0,0 +1,57 @@
1
+ import React, { useState } from "react"
2
+ import AdvancedTable from '../_advanced_table'
3
+ import MOCK_DATA_WITH_ID from "./advanced_table_mock_data_with_id.json"
4
+
5
+ const AdvancedTableRowPinningBoth = (props) => {
6
+ const columnDefinitions = [
7
+ {
8
+ accessor: "year",
9
+ label: "Year",
10
+ cellAccessors: ["quarter", "month", "day"],
11
+ },
12
+ {
13
+ accessor: "newEnrollments",
14
+ label: "New Enrollments",
15
+ },
16
+ {
17
+ accessor: "scheduledMeetings",
18
+ label: "Scheduled Meetings",
19
+ },
20
+ {
21
+ accessor: "attendanceRate",
22
+ label: "Attendance Rate",
23
+ },
24
+ {
25
+ accessor: "completedClasses",
26
+ label: "Completed Classes",
27
+ },
28
+ {
29
+ accessor: "classCompletionRate",
30
+ label: "Class Completion Rate",
31
+ },
32
+ {
33
+ accessor: "graduatedStudents",
34
+ label: "Graduated Students",
35
+ },
36
+ ]
37
+
38
+ const [pinnedRows, setPinnedRows] = useState({top: ["8"], bottom: ["1"]})
39
+
40
+ return (
41
+ <div>
42
+ <AdvancedTable
43
+ columnDefinitions={columnDefinitions}
44
+ maxHeight="xs"
45
+ pinnedRows={{value: pinnedRows, onChange: setPinnedRows}}
46
+ tableData={MOCK_DATA_WITH_ID}
47
+ tableProps={{sticky: true}}
48
+ {...props}
49
+ >
50
+ <AdvancedTable.Header enableSorting />
51
+ <AdvancedTable.Body />
52
+ </AdvancedTable>
53
+ </div>
54
+ )
55
+ }
56
+
57
+ export default AdvancedTableRowPinningBoth
@@ -0,0 +1 @@
1
+ This code snippet demonstrates `pinnedRows` taking an array of row ids to both the `top` and `bottom` properties.
@@ -0,0 +1,57 @@
1
+ import React, { useState } from "react"
2
+ import AdvancedTable from '../_advanced_table'
3
+ import MOCK_DATA_WITH_ID from "./advanced_table_mock_data_with_id.json"
4
+
5
+ const AdvancedTableRowPinningBottom = (props) => {
6
+ const columnDefinitions = [
7
+ {
8
+ accessor: "year",
9
+ label: "Year",
10
+ cellAccessors: ["quarter", "month", "day"],
11
+ },
12
+ {
13
+ accessor: "newEnrollments",
14
+ label: "New Enrollments",
15
+ },
16
+ {
17
+ accessor: "scheduledMeetings",
18
+ label: "Scheduled Meetings",
19
+ },
20
+ {
21
+ accessor: "attendanceRate",
22
+ label: "Attendance Rate",
23
+ },
24
+ {
25
+ accessor: "completedClasses",
26
+ label: "Completed Classes",
27
+ },
28
+ {
29
+ accessor: "classCompletionRate",
30
+ label: "Class Completion Rate",
31
+ },
32
+ {
33
+ accessor: "graduatedStudents",
34
+ label: "Graduated Students",
35
+ },
36
+ ]
37
+
38
+ const [pinnedRows, setPinnedRows] = useState({bottom: ["8"]})
39
+
40
+ return (
41
+ <div>
42
+ <AdvancedTable
43
+ columnDefinitions={columnDefinitions}
44
+ maxHeight="xs"
45
+ pinnedRows={{value: pinnedRows, onChange: setPinnedRows}}
46
+ tableData={MOCK_DATA_WITH_ID}
47
+ tableProps={{sticky: true}}
48
+ {...props}
49
+ >
50
+ <AdvancedTable.Header enableSorting />
51
+ <AdvancedTable.Body />
52
+ </AdvancedTable>
53
+ </div>
54
+ )
55
+ }
56
+
57
+ export default AdvancedTableRowPinningBottom
@@ -0,0 +1 @@
1
+ This code snippet demonstrates `pinnedRows` taking an array of row ids to the `bottom` property.
@@ -3,5 +3,5 @@ Use the `pinnedRows` prop to pin specific rows to the top or bottom of an Advanc
3
3
  **NOTE:**
4
4
  - Sticky header required: Pinned rows must be used with `sticky: true` via `tableProps` (works with both responsive and non-responsive tables)
5
5
  - Row ids required: Each object within the `tableData` Array must contain a unique id in order to attach an id to all Rows for this to function.
6
- - `pinnedRows` takes an array of row ids to the `top` or `bottom` property as shown in the code snippet below (both can be used on the same table).
6
+ - `pinnedRows` takes an array of row ids to the `top` or `bottom` property, or both. `top` is shown in the code snippet below.
7
7
  - For expandable rows, use the parent id in `pinnedRows`, all its children will automatically be pinned with it. If id for a child is passed in without parent being pinned, nothing will be pinned.
@@ -67,7 +67,9 @@ examples:
67
67
  - advanced_table_column_headers_custom_cell: Multi-Header Columns with Custom Cells
68
68
  - advanced_table_column_headers_vertical_border: Multi-Header Columns with Vertical Borders
69
69
  - advanced_table_no_subrows: Table with No Subrows or Expansion
70
- - advanced_table_pinned_rows: Pinned Rows
70
+ - advanced_table_pinned_rows: Pinned Rows (Top)
71
+ - advanced_table_pinned_rows_bottom: Pinned Rows (Bottom)
72
+ - advanced_table_pinned_rows_both: Pinned Rows (Both)
71
73
  - advanced_table_selectable_rows: Selectable Rows
72
74
  - advanced_table_selectable_rows_no_subrows_react: Selectable Rows (No Subrows)
73
75
  - advanced_table_selectable_rows_actions: Selectable Rows (With Actions)
@@ -52,4 +52,6 @@ export { default as AdvancedTableColumnStylingBackground } from './_advanced_tab
52
52
  export { default as AdvancedTableColumnStylingBackgroundMulti } from './_advanced_table_column_styling_background_multi.jsx'
53
53
  export { default as AdvancedTableColumnStylingBackgroundCustom } from './_advanced_table_column_styling_background_custom.jsx'
54
54
  export { default as AdvancedTableCascadeCollapse } from './_advanced_table_cascade_collapse.jsx'
55
- export { default as AdvancedTableSortParentOnly } from './_advanced_table_sort_parent_only.jsx'
55
+ export { default as AdvancedTableSortParentOnly } from './_advanced_table_sort_parent_only.jsx'
56
+ export { default as AdvancedTablePinnedRowsBottom } from './_advanced_table_pinned_rows_bottom.jsx'
57
+ export { default as AdvancedTablePinnedRowsBoth } from './_advanced_table_pinned_rows_both.jsx'
@@ -90,7 +90,7 @@ const FullScreenTableAndFilter = (props) => {
90
90
  double
91
91
  maxHeight="50vh"
92
92
  minWidth="xs"
93
- popoverProps={{ width: "350px", appendTo: ".fullscreen-overlay" }}
93
+ popoverProps={{ width: "350px" }}
94
94
  results={50}
95
95
  sortOptions={{
96
96
  territory_id: "Territory ID",
@@ -1 +1 @@
1
- Full Screen can host composed workflows such as a filter paired with a data table. For popovers inside the overlay, set the popover append target to `.fullscreen-overlay` so menus render within the fullscreen layer.
1
+ Full Screen can host composed workflows such as a filter paired with a data table. Filter and sort popovers automatically append to the fullscreen overlay; dropdown menus inside them portal above the overlay via the shared floating UI stack.