playbook_ui_docs 13.33.1.pre.alpha.play1407statvaluekitinconsistencies3352 → 13.34.0.pre.alpha.PBNTR358responsiveadvancedtablereact3366

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c98d9e6cdbbf5f596390c0846d44fcc9af043e78a24771ef699814c861d21f19
4
- data.tar.gz: '023108a3e34fc4d2d09cf817ab1f2bb11da8406dace8f9a77bf063b57836bd75'
3
+ metadata.gz: a484636c0361afa1c4f032d6cb7568acffabb078f794b5ee3d8a6d4281597186
4
+ data.tar.gz: ce8b57aa53c1f1104fe7bdca1c7110efcfbb395fe321e8e636cbfe34f2cea6b4
5
5
  SHA512:
6
- metadata.gz: f914c3c4190709624ec7c0e9cca6144f4d494a465c7faaa5b84bc8715606e15b7ac81037ff94afaf54a419348dd49671aab074be8c7e0f630253cfd27bbfe19e
7
- data.tar.gz: ef08b5ca6a969a39e15e1cf839d815d4d5f9ac5183a65e431d87c373d90f10317a4b30898fc25c124c8e7fc7031bf8ba4da8f0752effad2451f193804b18e08a
6
+ metadata.gz: f7c3eef94043d29671a80a7424442f780265f73813eee4d1b153ef2df9754643fc7a8f1bf40d28f2dbe781e23d6e2d265a7e3d6265be36a56ee526884b3c4ffe
7
+ data.tar.gz: 80a907bb5a0bf70e0321171c79024d2ce859c79ffdfbd19b503ef99c4cdf65662c2ca1b54ec5ac4fc9099e6f5c1ecca0c06f872756dea61517ae2df8edc2dd7f
@@ -0,0 +1,82 @@
1
+ import React from "react"
2
+ import { AdvancedTable } from "../.."
3
+ import Title from '../../pb_title/_title'
4
+ import MOCK_DATA from "./advanced_table_mock_data.json"
5
+
6
+ const AdvancedTableResponsive = (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
+ return (
40
+ <div>
41
+ <Title
42
+ size={4}
43
+ text="Not Responsive"
44
+ {...props}
45
+ />
46
+ <AdvancedTable
47
+ columnDefinitions={columnDefinitions}
48
+ responsive="none"
49
+ tableData={MOCK_DATA}
50
+ {...props}
51
+ />
52
+ <Title
53
+ paddingTop="sm"
54
+ size={4}
55
+ text="Responsive with Prop"
56
+ {...props}
57
+ />
58
+ <AdvancedTable
59
+ columnDefinitions={columnDefinitions}
60
+ responsive="scroll"
61
+ tableData={MOCK_DATA}
62
+ {...props}
63
+ />
64
+ <Title
65
+ paddingTop="sm"
66
+ size={4}
67
+ text="Responsive as Default"
68
+ {...props}
69
+ />
70
+ <AdvancedTable
71
+ columnDefinitions={columnDefinitions}
72
+ tableData={MOCK_DATA}
73
+ {...props}
74
+ >
75
+ <AdvancedTable.Header />
76
+ <AdvancedTable.Body />
77
+ </AdvancedTable>
78
+ </div>
79
+ )
80
+ }
81
+
82
+ export default AdvancedTableResponsive
@@ -14,3 +14,4 @@ examples:
14
14
  - advanced_table_table_options: Table Options
15
15
  - advanced_table_table_props: Table Props
16
16
  - advanced_table_inline_row_loading: Inline Row Loading
17
+ - advanced_table_responsive: Responsive Tables
@@ -7,4 +7,5 @@ export { default as AdvancedTableSubrowHeaders } from './_advanced_table_subrow_
7
7
  export { default as AdvancedTableCollapsibleTrail } from './_advanced_table_collapsible_trail.jsx'
8
8
  export { default as AdvancedTableTableOptions } from './_advanced_table_table_options.jsx'
9
9
  export { default as AdvancedTableTableProps } from './_advanced_table_table_props.jsx'
10
- export { default as AdvancedTableInlineRowLoading } from './_advanced_table_inline_row_loading.jsx'
10
+ export { default as AdvancedTableInlineRowLoading } from './_advanced_table_inline_row_loading.jsx'
11
+ export { default as AdvancedTableResponsive } from './_advanced_table_responsive.jsx'