playbook_ui_docs 14.21.2.pre.alpha.PLAY21318324 → 14.21.2.pre.alpha.PLAY22358326

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.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: playbook_ui_docs
3
3
  version: !ruby/object:Gem::Version
4
- version: 14.21.2.pre.alpha.PLAY21318324
4
+ version: 14.21.2.pre.alpha.PLAY22358326
5
5
  platform: ruby
6
6
  authors:
7
7
  - Power UX
@@ -83,6 +83,7 @@ files:
83
83
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_fullscreen.jsx
84
84
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_fullscreen.md
85
85
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_infinite_scroll.jsx
86
+ - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_infinite_scroll.md
86
87
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_editing.jsx
87
88
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_editing.md
88
89
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.jsx
@@ -102,8 +103,6 @@ files:
102
103
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_responsive.html.erb
103
104
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_responsive.jsx
104
105
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_responsive.md
105
- - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_row_styling.jsx
106
- - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_row_styling.md
107
106
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_scrollbar_none.html.erb
108
107
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_scrollbar_none.jsx
109
108
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows.jsx
@@ -950,6 +949,7 @@ files:
950
949
  - app/pb_kits/playbook/pb_filter/docs/_filter_popover_props.jsx
951
950
  - app/pb_kits/playbook/pb_filter/docs/_filter_popover_props_rails.md
952
951
  - app/pb_kits/playbook/pb_filter/docs/_filter_popover_props_react.md
952
+ - app/pb_kits/playbook/pb_filter/docs/_filter_sidebar.jsx
953
953
  - app/pb_kits/playbook/pb_filter/docs/_filter_single.html.erb
954
954
  - app/pb_kits/playbook/pb_filter/docs/_filter_single.jsx
955
955
  - app/pb_kits/playbook/pb_filter/docs/_filter_within_turbo_frames.html.erb
@@ -1,64 +0,0 @@
1
- import React from "react"
2
- import AdvancedTable from '../_advanced_table'
3
- import MOCK_DATA from "./advanced_table_mock_data_with_id.json"
4
- import { colors } from "playbook-ui"
5
-
6
- const AdvancedTableRowStyling = (props) => {
7
- const columnDefinitions = [
8
- {
9
- accessor: "year",
10
- label: "Year",
11
- cellAccessors: ["quarter", "month", "day"],
12
- },
13
- {
14
- accessor: "newEnrollments",
15
- label: "New Enrollments",
16
- },
17
- {
18
- accessor: "scheduledMeetings",
19
- label: "Scheduled Meetings",
20
- },
21
- {
22
- accessor: "attendanceRate",
23
- label: "Attendance Rate",
24
- },
25
- {
26
- accessor: "completedClasses",
27
- label: "Completed Classes",
28
- },
29
- {
30
- accessor: "classCompletionRate",
31
- label: "Class Completion Rate",
32
- },
33
- {
34
- accessor: "graduatedStudents",
35
- label: "Graduated Students",
36
- },
37
- ]
38
-
39
- const rowStyling = [
40
- {
41
- rowId: "1",
42
- backgroundColor: colors.warning,
43
- },
44
- {
45
- rowId: "8",
46
- backgroundColor: colors.category_1,
47
- fontColor: colors.white,
48
- expandButtonColor: colors.white,
49
- },
50
- ];
51
-
52
- return (
53
- <div>
54
- <AdvancedTable
55
- columnDefinitions={columnDefinitions}
56
- rowStyling={rowStyling}
57
- tableData={MOCK_DATA}
58
- {...props}
59
- />
60
- </div>
61
- )
62
- }
63
-
64
- export default AdvancedTableRowStyling
@@ -1,7 +0,0 @@
1
- The `rowStyling` prop can be used in conjunction with row ids to control certain styling options on individual rows. Currently, `rowStyling` gives you 3 optional controls:
2
-
3
- - `backgroundColor` : use this to control the background color of the row.
4
- - `fontColor`: use this to control font color for each row if needed, for example if using a darker background color.
5
- - `expandButtonColor`: use this to control the color of the expand icon if needed, for example if using a darker background color.
6
-
7
- **NOTE:** Each object within the `tableData` Array must contain a unique id in order to attach an id to all Rows for this to function.