playbook_ui_docs 14.13.0.pre.alpha.PBNTR457formtimezoneselect6219 → 14.13.0.pre.alpha.PBNTR5596029
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props.html.erb +1 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_rails.md +1 -3
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_react.md +1 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_advanced_table/docs/index.js +1 -2
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_actions.html.erb +19 -0
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_actions.jsx +26 -0
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_default.html.erb +10 -0
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_default.jsx +17 -0
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_on_click.jsx +19 -0
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_onclick.html.erb +16 -0
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_placement.html.erb +35 -0
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_placement.jsx +42 -0
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_tooltip.html.erb +13 -0
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/example.yml +15 -0
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/index.js +4 -0
- data/app/pb_kits/playbook/pb_bar_graph/docs/example.yml +0 -1
- data/app/pb_kits/playbook/pb_bar_graph/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_checkbox/docs/example.yml +1 -2
- data/app/pb_kits/playbook/pb_checkbox/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_table.html.erb +2 -2
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_table.md +1 -4
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_table_react.jsx +0 -1
- data/app/pb_kits/playbook/pb_draggable/docs/example.yml +1 -1
- data/app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb +0 -1
- data/app/pb_kits/playbook/pb_form/docs/_form_form_with_validate.html.erb +0 -1
- data/app/pb_kits/playbook/pb_icon_button/docs/_icon_button_default.html.erb +2 -1
- data/app/pb_kits/playbook/pb_icon_button/docs/example.yml +3 -1
- data/app/pb_kits/playbook/pb_overlay/docs/example.yml +0 -1
- data/app/pb_kits/playbook/pb_overlay/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_progress_pills/docs/_progress_pills_default.html.erb +0 -1
- data/app/pb_kits/playbook/pb_progress_pills/docs/_progress_pills_default.jsx +0 -7
- data/app/pb_kits/playbook/pb_progress_pills/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_progress_pills/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible.jsx +1 -1
- data/app/pb_kits/playbook/pb_table/docs/example.yml +0 -5
- data/app/pb_kits/playbook/pb_table/docs/index.js +1 -3
- data/app/pb_kits/playbook/pb_text_input/docs/_text_input_mask.html.erb +0 -14
- data/dist/playbook-doc.js +1 -1
- metadata +14 -26
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers_custom_cell.jsx +0 -75
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_sticky_header.html.erb +0 -33
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_sticky_header_rails.md +0 -3
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_pb_styles.jsx +0 -64
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_pb_styles.md +0 -1
- data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_react_hook.jsx +0 -69
- data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_react_hook.md +0 -1
- data/app/pb_kits/playbook/pb_icon_button/docs/_icon_button_sizes.html.erb +0 -27
- data/app/pb_kits/playbook/pb_overlay/docs/_overlay_vertical_dynamic_multi_directional.jsx +0 -37
- data/app/pb_kits/playbook/pb_overlay/docs/_overlay_vertical_dynamic_multi_directional_react.md +0 -1
- data/app/pb_kits/playbook/pb_progress_pills/docs/_progress_pills_default.md +0 -1
- data/app/pb_kits/playbook/pb_progress_pills/docs/_progress_pills_full_width.html.erb +0 -1
- data/app/pb_kits/playbook/pb_progress_pills/docs/_progress_pills_full_width.jsx +0 -18
- data/app/pb_kits/playbook/pb_progress_pills/docs/_progress_pills_full_width_rails.md +0 -1
- data/app/pb_kits/playbook/pb_progress_pills/docs/_progress_pills_full_width_react.md +0 -1
- data/app/pb_kits/playbook/pb_table/docs/_table_with_clickable_rows.html.erb +0 -47
- data/app/pb_kits/playbook/pb_table/docs/_table_with_clickable_rows.jsx +0 -88
- data/app/pb_kits/playbook/pb_table/docs/_table_with_clickable_rows.md +0 -1
- data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_custom_click.html.erb +0 -51
- data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_custom_click_rails.md +0 -2
- data/app/pb_kits/playbook/pb_table/docs/_table_with_selectable_rows.html.erb +0 -96
- data/app/pb_kits/playbook/pb_table/docs/_table_with_selectable_rows.jsx +0 -101
- data/app/pb_kits/playbook/pb_table/docs/_table_with_selectable_rows.md +0 -1
- /data/app/pb_kits/playbook/pb_table/docs/{_table_with_collapsible_with_custom_click_react.md → _table_with_collapsible_with_custom_click.md} +0 -0
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.13.0.pre.alpha.
|
4
|
+
version: 14.13.0.pre.alpha.PBNTR5596029
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Power UX
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2025-02-
|
12
|
+
date: 2025-02-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: playbook_ui
|
@@ -46,7 +46,6 @@ files:
|
|
46
46
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers.html.erb
|
47
47
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers.jsx
|
48
48
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers.md
|
49
|
-
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers_custom_cell.jsx
|
50
49
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers_multiple.html.erb
|
51
50
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers_multiple.jsx
|
52
51
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers_multiple.md
|
@@ -92,9 +91,7 @@ files:
|
|
92
91
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props.jsx
|
93
92
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_rails.md
|
94
93
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_react.md
|
95
|
-
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_sticky_header.html.erb
|
96
94
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_sticky_header.jsx
|
97
|
-
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_sticky_header_rails.md
|
98
95
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_sticky_header_react.md
|
99
96
|
- app/pb_kits/playbook/pb_advanced_table/docs/_mock_data_inline_loading.js
|
100
97
|
- app/pb_kits/playbook/pb_advanced_table/docs/advanced_table_mock_data.json
|
@@ -127,6 +124,17 @@ files:
|
|
127
124
|
- app/pb_kits/playbook/pb_avatar/docs/_footer.md
|
128
125
|
- app/pb_kits/playbook/pb_avatar/docs/example.yml
|
129
126
|
- app/pb_kits/playbook/pb_avatar/docs/index.js
|
127
|
+
- app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_actions.html.erb
|
128
|
+
- app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_actions.jsx
|
129
|
+
- app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_default.html.erb
|
130
|
+
- app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_default.jsx
|
131
|
+
- app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_on_click.jsx
|
132
|
+
- app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_onclick.html.erb
|
133
|
+
- app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_placement.html.erb
|
134
|
+
- app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_placement.jsx
|
135
|
+
- app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_tooltip.html.erb
|
136
|
+
- app/pb_kits/playbook/pb_avatar_action_button/docs/example.yml
|
137
|
+
- app/pb_kits/playbook/pb_avatar_action_button/docs/index.js
|
130
138
|
- app/pb_kits/playbook/pb_background/docs/_background_category.html.erb
|
131
139
|
- app/pb_kits/playbook/pb_background/docs/_background_category.jsx
|
132
140
|
- app/pb_kits/playbook/pb_background/docs/_background_category.md
|
@@ -189,8 +197,6 @@ files:
|
|
189
197
|
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_position.md
|
190
198
|
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_negative_numbers.html.erb
|
191
199
|
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_negative_numbers.jsx
|
192
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_pb_styles.jsx
|
193
|
-
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_pb_styles.md
|
194
200
|
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_secondary_y_axis.html.erb
|
195
201
|
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_secondary_y_axis.jsx
|
196
202
|
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_secondary_y_axis.md
|
@@ -348,8 +354,6 @@ files:
|
|
348
354
|
- app/pb_kits/playbook/pb_checkbox/docs/_checkbox_indeterminate_swift.md
|
349
355
|
- app/pb_kits/playbook/pb_checkbox/docs/_checkbox_options.html.erb
|
350
356
|
- app/pb_kits/playbook/pb_checkbox/docs/_checkbox_props_swift.md
|
351
|
-
- app/pb_kits/playbook/pb_checkbox/docs/_checkbox_react_hook.jsx
|
352
|
-
- app/pb_kits/playbook/pb_checkbox/docs/_checkbox_react_hook.md
|
353
357
|
- app/pb_kits/playbook/pb_checkbox/docs/_description.md
|
354
358
|
- app/pb_kits/playbook/pb_checkbox/docs/example.yml
|
355
359
|
- app/pb_kits/playbook/pb_checkbox/docs/index.js
|
@@ -1030,7 +1034,6 @@ files:
|
|
1030
1034
|
- app/pb_kits/playbook/pb_icon/docs/example.yml
|
1031
1035
|
- app/pb_kits/playbook/pb_icon/docs/index.js
|
1032
1036
|
- app/pb_kits/playbook/pb_icon_button/docs/_icon_button_default.html.erb
|
1033
|
-
- app/pb_kits/playbook/pb_icon_button/docs/_icon_button_sizes.html.erb
|
1034
1037
|
- app/pb_kits/playbook/pb_icon_button/docs/example.yml
|
1035
1038
|
- app/pb_kits/playbook/pb_icon_circle/docs/_description.md
|
1036
1039
|
- app/pb_kits/playbook/pb_icon_circle/docs/_footer.md
|
@@ -1374,8 +1377,6 @@ files:
|
|
1374
1377
|
- app/pb_kits/playbook/pb_overlay/docs/_overlay_toggle.html.erb
|
1375
1378
|
- app/pb_kits/playbook/pb_overlay/docs/_overlay_toggle.jsx
|
1376
1379
|
- app/pb_kits/playbook/pb_overlay/docs/_overlay_toggle.md
|
1377
|
-
- app/pb_kits/playbook/pb_overlay/docs/_overlay_vertical_dynamic_multi_directional.jsx
|
1378
|
-
- app/pb_kits/playbook/pb_overlay/docs/_overlay_vertical_dynamic_multi_directional_react.md
|
1379
1380
|
- app/pb_kits/playbook/pb_overlay/docs/example.yml
|
1380
1381
|
- app/pb_kits/playbook/pb_overlay/docs/index.js
|
1381
1382
|
- app/pb_kits/playbook/pb_pagination/docs/_pagination_default.html.erb
|
@@ -1487,11 +1488,6 @@ files:
|
|
1487
1488
|
- app/pb_kits/playbook/pb_progress_pills/docs/_description.md
|
1488
1489
|
- app/pb_kits/playbook/pb_progress_pills/docs/_progress_pills_default.html.erb
|
1489
1490
|
- app/pb_kits/playbook/pb_progress_pills/docs/_progress_pills_default.jsx
|
1490
|
-
- app/pb_kits/playbook/pb_progress_pills/docs/_progress_pills_default.md
|
1491
|
-
- app/pb_kits/playbook/pb_progress_pills/docs/_progress_pills_full_width.html.erb
|
1492
|
-
- app/pb_kits/playbook/pb_progress_pills/docs/_progress_pills_full_width.jsx
|
1493
|
-
- app/pb_kits/playbook/pb_progress_pills/docs/_progress_pills_full_width_rails.md
|
1494
|
-
- app/pb_kits/playbook/pb_progress_pills/docs/_progress_pills_full_width_react.md
|
1495
1491
|
- app/pb_kits/playbook/pb_progress_pills/docs/_progress_pills_status.html.erb
|
1496
1492
|
- app/pb_kits/playbook/pb_progress_pills/docs/_progress_pills_status.jsx
|
1497
1493
|
- app/pb_kits/playbook/pb_progress_pills/docs/example.yml
|
@@ -1848,17 +1844,12 @@ files:
|
|
1848
1844
|
- app/pb_kits/playbook/pb_table/docs/_table_vertical_border.jsx
|
1849
1845
|
- app/pb_kits/playbook/pb_table/docs/_table_with_background_kit.html.erb
|
1850
1846
|
- app/pb_kits/playbook/pb_table/docs/_table_with_background_kit.jsx
|
1851
|
-
- app/pb_kits/playbook/pb_table/docs/_table_with_clickable_rows.html.erb
|
1852
|
-
- app/pb_kits/playbook/pb_table/docs/_table_with_clickable_rows.jsx
|
1853
|
-
- app/pb_kits/playbook/pb_table/docs/_table_with_clickable_rows.md
|
1854
1847
|
- app/pb_kits/playbook/pb_table/docs/_table_with_collapsible.html.erb
|
1855
1848
|
- app/pb_kits/playbook/pb_table/docs/_table_with_collapsible.jsx
|
1856
1849
|
- app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_rails.md
|
1857
1850
|
- app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_react.md
|
1858
|
-
- app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_custom_click.html.erb
|
1859
1851
|
- app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_custom_click.jsx
|
1860
|
-
- app/pb_kits/playbook/pb_table/docs/
|
1861
|
-
- app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_custom_click_react.md
|
1852
|
+
- app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_custom_click.md
|
1862
1853
|
- app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_custom_content.jsx
|
1863
1854
|
- app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_custom_content.md
|
1864
1855
|
- app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_custom_content_rails.html.erb
|
@@ -1871,9 +1862,6 @@ files:
|
|
1871
1862
|
- app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_table.md
|
1872
1863
|
- app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_table_rails.html.erb
|
1873
1864
|
- app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_table_rails.md
|
1874
|
-
- app/pb_kits/playbook/pb_table/docs/_table_with_selectable_rows.html.erb
|
1875
|
-
- app/pb_kits/playbook/pb_table/docs/_table_with_selectable_rows.jsx
|
1876
|
-
- app/pb_kits/playbook/pb_table/docs/_table_with_selectable_rows.md
|
1877
1865
|
- app/pb_kits/playbook/pb_table/docs/_table_with_subcomponents.jsx
|
1878
1866
|
- app/pb_kits/playbook/pb_table/docs/_table_with_subcomponents.md
|
1879
1867
|
- app/pb_kits/playbook/pb_table/docs/_table_with_subcomponents_as_divs.html.erb
|
data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers_custom_cell.jsx
DELETED
@@ -1,75 +0,0 @@
|
|
1
|
-
import React from "react"
|
2
|
-
import { AdvancedTable, Pill } from "playbook-ui"
|
3
|
-
import MOCK_DATA from "./advanced_table_mock_data.json"
|
4
|
-
|
5
|
-
const AdvancedTableColumnHeadersCustomCell = (props) => {
|
6
|
-
const columnDefinitions = [
|
7
|
-
{
|
8
|
-
accessor: "year",
|
9
|
-
label: "Year",
|
10
|
-
cellAccessors: ["quarter", "month", "day"],
|
11
|
-
},
|
12
|
-
{
|
13
|
-
label: "Enrollment Data",
|
14
|
-
columns: [
|
15
|
-
{
|
16
|
-
accessor: "newEnrollments",
|
17
|
-
label: "New Enrollments",
|
18
|
-
customRenderer: (row, value) => (
|
19
|
-
<Pill text={value}
|
20
|
-
variant="success"
|
21
|
-
/>
|
22
|
-
),
|
23
|
-
},
|
24
|
-
{
|
25
|
-
accessor: "scheduledMeetings",
|
26
|
-
label: "Scheduled Meetings",
|
27
|
-
customRenderer: (row, value) => (
|
28
|
-
<Pill text={value}
|
29
|
-
variant="info"
|
30
|
-
/>
|
31
|
-
),
|
32
|
-
},
|
33
|
-
],
|
34
|
-
},
|
35
|
-
{
|
36
|
-
label: "Performance Data",
|
37
|
-
columns: [
|
38
|
-
{
|
39
|
-
accessor: "attendanceRate",
|
40
|
-
label: "Attendance Rate",
|
41
|
-
},
|
42
|
-
{
|
43
|
-
accessor: "completedClasses",
|
44
|
-
label: "Completed Classes",
|
45
|
-
customRenderer: (row, value) => (
|
46
|
-
<Pill text={value}
|
47
|
-
variant="error"
|
48
|
-
/>
|
49
|
-
),
|
50
|
-
},
|
51
|
-
{
|
52
|
-
accessor: "classCompletionRate",
|
53
|
-
label: "Class Completion Rate",
|
54
|
-
},
|
55
|
-
{
|
56
|
-
accessor: "graduatedStudents",
|
57
|
-
label: "Graduated Students",
|
58
|
-
},
|
59
|
-
],
|
60
|
-
},
|
61
|
-
];
|
62
|
-
|
63
|
-
|
64
|
-
return (
|
65
|
-
<>
|
66
|
-
<AdvancedTable
|
67
|
-
columnDefinitions={columnDefinitions}
|
68
|
-
tableData={MOCK_DATA}
|
69
|
-
{...props}
|
70
|
-
/>
|
71
|
-
</>
|
72
|
-
)
|
73
|
-
}
|
74
|
-
|
75
|
-
export default AdvancedTableColumnHeadersCustomCell
|
data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_sticky_header.html.erb
DELETED
@@ -1,33 +0,0 @@
|
|
1
|
-
<% column_definitions = [
|
2
|
-
{
|
3
|
-
accessor: "year",
|
4
|
-
label: "Year",
|
5
|
-
cellAccessors: ["quarter", "month", "day"],
|
6
|
-
},
|
7
|
-
{
|
8
|
-
accessor: "newEnrollments",
|
9
|
-
label: "New Enrollments",
|
10
|
-
},
|
11
|
-
{
|
12
|
-
accessor: "scheduledMeetings",
|
13
|
-
label: "Scheduled Meetings",
|
14
|
-
},
|
15
|
-
{
|
16
|
-
accessor: "attendanceRate",
|
17
|
-
label: "Attendance Rate",
|
18
|
-
},
|
19
|
-
{
|
20
|
-
accessor: "completedClasses",
|
21
|
-
label: "Completed Classes",
|
22
|
-
},
|
23
|
-
{
|
24
|
-
accessor: "classCompletionRate",
|
25
|
-
label: "Class Completion Rate",
|
26
|
-
},
|
27
|
-
{
|
28
|
-
accessor: "graduatedStudents",
|
29
|
-
label: "Graduated Students",
|
30
|
-
}
|
31
|
-
] %>
|
32
|
-
|
33
|
-
<%= pb_rails("advanced_table", props: { id: "table_props_table", table_data: @table_data, column_definitions: column_definitions, max_height: "xs", table_props: { sticky: true }}) %>
|
data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_sticky_header_rails.md
DELETED
@@ -1,3 +0,0 @@
|
|
1
|
-
Create a sticky header that works for responsive Advanced Tables by setting `sticky: true` via `table_props` and giving the AdvancedTable a `max_height` using our [Max Height](https://playbook.powerapp.cloud/visual_guidelines/max_height) global prop. This behavior requires a `max_height` to work. The header is sticky within the table container, allowing for it to work along with the first column stickiness of a responsive table on smaller screen sizes.
|
2
|
-
|
3
|
-
A sticky header on a nonresponsive table is demonstrated in the ["Table Props"](https://playbook.powerapp.cloud/kits/advanced_table#table-props) doc example above.
|
@@ -1,64 +0,0 @@
|
|
1
|
-
import React from 'react'
|
2
|
-
import Highcharts from "highcharts";
|
3
|
-
import HighchartsReact from "highcharts-react-official";
|
4
|
-
|
5
|
-
import "../BarGraphStyles.scss";
|
6
|
-
// Your path might look more like this
|
7
|
-
//import "playbook-ui/dist/pb_bar_graph/BarGraphStyles.scss";
|
8
|
-
|
9
|
-
const columnChartData = [
|
10
|
-
{
|
11
|
-
name: "Installation",
|
12
|
-
data: [1475, 200, 3000, 654, 656],
|
13
|
-
},
|
14
|
-
{
|
15
|
-
name: "Manufacturing",
|
16
|
-
data: [4434, 524, 2320, 440, 500],
|
17
|
-
},
|
18
|
-
{
|
19
|
-
name: "Sales & Distribution",
|
20
|
-
data: [3387, 743, 1344, 434, 440],
|
21
|
-
},
|
22
|
-
{
|
23
|
-
name: "Project Development",
|
24
|
-
data: [3227, 878, 999, 780, 1000],
|
25
|
-
},
|
26
|
-
{
|
27
|
-
name: "Other",
|
28
|
-
data: [1111, 677, 3245, 500, 200],
|
29
|
-
},
|
30
|
-
];
|
31
|
-
|
32
|
-
const columnOptions = {
|
33
|
-
chart: {
|
34
|
-
type: "column",
|
35
|
-
},
|
36
|
-
series: columnChartData,
|
37
|
-
title: {
|
38
|
-
text: "Solar Employment Growth by Sector, 2010-2016",
|
39
|
-
},
|
40
|
-
subtitle: {
|
41
|
-
text: "Source: thesolarfoundation.com",
|
42
|
-
},
|
43
|
-
xAxis: {
|
44
|
-
categories: ["Jan", "Feb", "Mar", "Apr", "May"],
|
45
|
-
},
|
46
|
-
yAxis: {
|
47
|
-
min: 0,
|
48
|
-
title: {
|
49
|
-
text: "Number of Employees",
|
50
|
-
},
|
51
|
-
},
|
52
|
-
legend: { enabled: false },
|
53
|
-
credits: { enabled: false },
|
54
|
-
};
|
55
|
-
|
56
|
-
const BarGraphPbStyles = () => (
|
57
|
-
<div>
|
58
|
-
<HighchartsReact highcharts={Highcharts}
|
59
|
-
options={columnOptions}
|
60
|
-
/>
|
61
|
-
</div>
|
62
|
-
)
|
63
|
-
|
64
|
-
export default BarGraphPbStyles
|
@@ -1 +0,0 @@
|
|
1
|
-
You don't need to use the bar graph kit to apply the styles to your Highcharts bar graph. Just import the BarGraphStyles.scss to your component and the styles will apply automatically.
|
@@ -1,69 +0,0 @@
|
|
1
|
-
import React, { useState } from "react"
|
2
|
-
import { useForm } from "react-hook-form"
|
3
|
-
import { Button, Checkbox, Flex, Body } from "playbook-ui"
|
4
|
-
|
5
|
-
const CheckboxReactHook = () => {
|
6
|
-
const { register, handleSubmit } = useForm({
|
7
|
-
defaultValues: {
|
8
|
-
Small: false,
|
9
|
-
Medium: false,
|
10
|
-
Large: false,
|
11
|
-
},
|
12
|
-
})
|
13
|
-
|
14
|
-
const [submittedData, setSubmittedData] = useState({
|
15
|
-
Small: false,
|
16
|
-
Medium: false,
|
17
|
-
Large: false,
|
18
|
-
})
|
19
|
-
|
20
|
-
const onSubmit = (data) => {
|
21
|
-
setSubmittedData(data)
|
22
|
-
}
|
23
|
-
|
24
|
-
return (
|
25
|
-
<Flex orientation="row">
|
26
|
-
<Flex align="start"
|
27
|
-
orientation="column"
|
28
|
-
paddingRight="lg"
|
29
|
-
>
|
30
|
-
<form onSubmit={handleSubmit(onSubmit)}>
|
31
|
-
<Checkbox padding="xs"
|
32
|
-
text="Small"
|
33
|
-
{...register("Small")}
|
34
|
-
/>
|
35
|
-
<br />
|
36
|
-
<Checkbox padding="xs"
|
37
|
-
text="Medium"
|
38
|
-
{...register("Medium")}
|
39
|
-
/>
|
40
|
-
<br />
|
41
|
-
<Checkbox padding="xs"
|
42
|
-
text="Large"
|
43
|
-
{...register("Large")}
|
44
|
-
/>
|
45
|
-
<br />
|
46
|
-
<Button htmlType="submit"
|
47
|
-
marginTop="sm"
|
48
|
-
text="submit"
|
49
|
-
/>
|
50
|
-
</form>
|
51
|
-
</Flex>
|
52
|
-
<Flex align="start"
|
53
|
-
orientation="column"
|
54
|
-
>
|
55
|
-
<Body padding="xs"
|
56
|
-
text={`Small: ${submittedData.Small ? "true" : "false"}`}
|
57
|
-
/>
|
58
|
-
<Body padding="xs"
|
59
|
-
text={`Medium: ${submittedData.Medium ? "true" : "false"}`}
|
60
|
-
/>
|
61
|
-
<Body padding="xs"
|
62
|
-
text={`Large: ${submittedData.Large ? "true" : "false"}`}
|
63
|
-
/>
|
64
|
-
</Flex>
|
65
|
-
</Flex>
|
66
|
-
)
|
67
|
-
}
|
68
|
-
|
69
|
-
export default CheckboxReactHook
|
@@ -1 +0,0 @@
|
|
1
|
-
You can pass react hook props to the checkbox kit.
|
@@ -1,27 +0,0 @@
|
|
1
|
-
<%= pb_rails("flex", props: { align: "center"}) do %>
|
2
|
-
<%= pb_rails("icon_button", props: {size: "lg"}) %> <span>Large</span>
|
3
|
-
<% end %>
|
4
|
-
|
5
|
-
<%= pb_rails("flex", props: { align: "center" }) do %>
|
6
|
-
<%= pb_rails("icon_button", props: {size: "sm"}) %> <span>Small</span>
|
7
|
-
<% end %>
|
8
|
-
|
9
|
-
<%= pb_rails("flex", props: { align: "center" }) do %>
|
10
|
-
<%= pb_rails("icon_button", props: {size: "xs"}) %> <span>XSmall</span>
|
11
|
-
<% end %>
|
12
|
-
|
13
|
-
<%= pb_rails("flex", props: { align: "center", margin_top: "md" }) do %>
|
14
|
-
<%= pb_rails("icon_button", props: {size: "1x"}) %> <span>1x</span>
|
15
|
-
<% end %>
|
16
|
-
|
17
|
-
<%= pb_rails("flex", props: { align: "center" }) do %>
|
18
|
-
<%= pb_rails("icon_button", props: {size: "2x"}) %> <span>2x</span>
|
19
|
-
<% end %>
|
20
|
-
|
21
|
-
<%= pb_rails("flex", props: { align: "center" }) do %>
|
22
|
-
<%= pb_rails("icon_button", props: {size: "3x"}) %> <span>3x</span>
|
23
|
-
<% end %>
|
24
|
-
|
25
|
-
<%= pb_rails("flex", props: { align: "center" }) do %>
|
26
|
-
<%= pb_rails("icon_button", props: {size: "4x"}) %> <span>4x</span>
|
27
|
-
<% end %>
|
@@ -1,37 +0,0 @@
|
|
1
|
-
import React, { forwardRef } from 'react'
|
2
|
-
import {
|
3
|
-
Overlay,
|
4
|
-
Card,
|
5
|
-
Flex,
|
6
|
-
FlexItem,
|
7
|
-
} from 'playbook-ui'
|
8
|
-
|
9
|
-
const InlineCardsExample = forwardRef(function InlineCardsExample(ref) {
|
10
|
-
return (
|
11
|
-
<Flex
|
12
|
-
columnGap="lg"
|
13
|
-
orientation="row"
|
14
|
-
ref={ref}
|
15
|
-
>
|
16
|
-
{Array.from({ length: 15 }, (_, index) => (
|
17
|
-
<FlexItem key={index}>
|
18
|
-
<Card>{"Card Content"}</Card>
|
19
|
-
</FlexItem>
|
20
|
-
))}
|
21
|
-
</Flex>
|
22
|
-
)
|
23
|
-
})
|
24
|
-
|
25
|
-
const OverlayVerticalDynamicMultiDirectional = () => (
|
26
|
-
<>
|
27
|
-
<Overlay
|
28
|
-
color="card_light"
|
29
|
-
dynamic
|
30
|
-
layout={{"x": "xl"}}
|
31
|
-
>
|
32
|
-
<InlineCardsExample />
|
33
|
-
</Overlay>
|
34
|
-
</>
|
35
|
-
)
|
36
|
-
|
37
|
-
export default OverlayVerticalDynamicMultiDirectional
|
data/app/pb_kits/playbook/pb_overlay/docs/_overlay_vertical_dynamic_multi_directional_react.md
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
Pass the `dynamic` prop to make the overlay render while the scrollbar isn't at either end on the scrollbar. You must also add a `ref` to the child that's being passed through the Overlay.
|
@@ -1 +0,0 @@
|
|
1
|
-
Progress pills start at `45px` wide if the container allows, but will shrink down to `1px` as the container gets smaller. Resize this window to see each pill shrink.
|
@@ -1 +0,0 @@
|
|
1
|
-
<%= pb_rails("progress_pills", props: { aria: { label: "2 out of 5 steps complete" }, steps: 5, active: 2, full_width_pill: true }) %>
|
@@ -1,18 +0,0 @@
|
|
1
|
-
import React from 'react'
|
2
|
-
import ProgressPills from '../_progress_pills'
|
3
|
-
|
4
|
-
const ProgressPillsFullWidth = (props) => {
|
5
|
-
return (
|
6
|
-
<>
|
7
|
-
<ProgressPills
|
8
|
-
active={2}
|
9
|
-
aria={{ label: '2 out of 5 steps complete' }}
|
10
|
-
fullWidthPill
|
11
|
-
steps={5}
|
12
|
-
{...props}
|
13
|
-
/>
|
14
|
-
</>
|
15
|
-
)
|
16
|
-
}
|
17
|
-
|
18
|
-
export default ProgressPillsFullWidth
|
@@ -1 +0,0 @@
|
|
1
|
-
Pass `full_width_pill: true` to the Progress Pill kit to get true 100% full width pills. The kit will take up the full width of the container that it is in.
|
@@ -1 +0,0 @@
|
|
1
|
-
Pass `fullWidthPill` to the Progress Pill kit to get true 100% full width pills. The kit will take up the full width of the container that it is in.
|
@@ -1,47 +0,0 @@
|
|
1
|
-
<%= pb_rails("table", props: { size: "sm" }) do %>
|
2
|
-
<%= pb_rails("table/table_head") do %>
|
3
|
-
<%= pb_rails("table/table_row") do %>
|
4
|
-
<%= pb_rails("table/table_header", props: { text: "Column 1" }) %>
|
5
|
-
<%= pb_rails("table/table_header", props: { text: "Column 2" }) %>
|
6
|
-
<%= pb_rails("table/table_header", props: { text: "Column 3" }) %>
|
7
|
-
<%= pb_rails("table/table_header", props: { text: "Column 4" }) %>
|
8
|
-
<%= pb_rails("table/table_header", props: { text: "Column 5" }) %>
|
9
|
-
<%= pb_rails("table/table_header", props: { text: "" }) %>
|
10
|
-
<% end %>
|
11
|
-
<% end %>
|
12
|
-
<%= pb_rails("table/table_body") do %>
|
13
|
-
<%= pb_rails("table/table_row", props: { cursor: "pointer", html_options: { onclick: "alert('Row 1 clicked')" } }) do %>
|
14
|
-
<%= pb_rails("table/table_cell", props: { text: "Value 1" }) %>
|
15
|
-
<%= pb_rails("table/table_cell", props: { text: "Value 2" }) %>
|
16
|
-
<%= pb_rails("table/table_cell", props: { text: "Value 3" }) %>
|
17
|
-
<%= pb_rails("table/table_cell", props: { text: "Value 4" }) %>
|
18
|
-
<%= pb_rails("table/table_cell", props: { text: "Value 5" }) %>
|
19
|
-
<%= pb_rails("table/table_cell", props: { text_align: "right" }) do %>
|
20
|
-
<%= pb_rails("icon", props: { color: "primary_action", fixed_width: true, icon: "chevron-right", size: "xs" }) %>
|
21
|
-
<% end %>
|
22
|
-
<% end %>
|
23
|
-
|
24
|
-
<%= pb_rails("table/table_row", props: { cursor: "pointer", html_options: { onclick: "alert('Row 2 clicked')" } }) do %>
|
25
|
-
<%= pb_rails("table/table_cell", props: { text: "Value 1" }) %>
|
26
|
-
<%= pb_rails("table/table_cell", props: { text: "Value 2" }) %>
|
27
|
-
<%= pb_rails("table/table_cell", props: { text: "Value 3" }) %>
|
28
|
-
<%= pb_rails("table/table_cell", props: { text: "Value 4" }) %>
|
29
|
-
<%= pb_rails("table/table_cell", props: { text: "Value 5" }) %>
|
30
|
-
<%= pb_rails("table/table_cell", props: { text_align: "right" }) do %>
|
31
|
-
<%= pb_rails("icon", props: { color: "primary_action", fixed_width: true, icon: "chevron-right", size: "xs" }) %>
|
32
|
-
<% end %>
|
33
|
-
<% end %>
|
34
|
-
|
35
|
-
<%= pb_rails("table/table_row", props: { cursor: "pointer", html_options: { onclick: "alert('Row 3 clicked')" } }) do %>
|
36
|
-
<%= pb_rails("table/table_cell", props: { text: "Value 1" }) %>
|
37
|
-
<%= pb_rails("table/table_cell", props: { text: "Value 2" }) %>
|
38
|
-
<%= pb_rails("table/table_cell", props: { text: "Value 3" }) %>
|
39
|
-
<%= pb_rails("table/table_cell", props: { text: "Value 4" }) %>
|
40
|
-
<%= pb_rails("table/table_cell", props: { text: "Value 5" }) %>
|
41
|
-
<%= pb_rails("table/table_cell", props: { text_align: "right" }) do %>
|
42
|
-
<%= pb_rails("icon", props: { color: "primary_action", fixed_width: true, icon: "chevron-right", size: "xs" }) %>
|
43
|
-
<% end %>
|
44
|
-
<% end %>
|
45
|
-
<% end %>
|
46
|
-
<% end %>
|
47
|
-
|
@@ -1,88 +0,0 @@
|
|
1
|
-
import React from 'react'
|
2
|
-
import { Table, Icon } from 'playbook-ui'
|
3
|
-
|
4
|
-
const TableWithClickableRows = (props) => {
|
5
|
-
|
6
|
-
|
7
|
-
return (
|
8
|
-
<Table
|
9
|
-
size="sm"
|
10
|
-
{...props}
|
11
|
-
>
|
12
|
-
<Table.Head>
|
13
|
-
<Table.Row>
|
14
|
-
<Table.Header>{"Column 1"}</Table.Header>
|
15
|
-
<Table.Header>{"Column 2"}</Table.Header>
|
16
|
-
<Table.Header>{"Column 3"}</Table.Header>
|
17
|
-
<Table.Header>{"Column 4"}</Table.Header>
|
18
|
-
<Table.Header>{"Column 5"}</Table.Header>
|
19
|
-
<Table.Header>{""}</Table.Header>
|
20
|
-
</Table.Row>
|
21
|
-
</Table.Head>
|
22
|
-
<Table.Body>
|
23
|
-
<Table.Row
|
24
|
-
cursor="pointer"
|
25
|
-
htmlOptions={{ onClick: () => alert("Row 1 clicked") }}
|
26
|
-
{...props}
|
27
|
-
>
|
28
|
-
<Table.Cell>{"Value 1"}</Table.Cell>
|
29
|
-
<Table.Cell>{"Value 2"}</Table.Cell>
|
30
|
-
<Table.Cell>{"Value 3"}</Table.Cell>
|
31
|
-
<Table.Cell>{"Value 4"}</Table.Cell>
|
32
|
-
<Table.Cell>{"Value 5"}</Table.Cell>
|
33
|
-
<Table.Cell textAlign="right">
|
34
|
-
<Icon
|
35
|
-
color="primary_action"
|
36
|
-
fixedWidth
|
37
|
-
icon="chevron-right"
|
38
|
-
size="xs"
|
39
|
-
{...props}
|
40
|
-
/>
|
41
|
-
</Table.Cell>
|
42
|
-
</Table.Row>
|
43
|
-
<Table.Row
|
44
|
-
cursor="pointer"
|
45
|
-
htmlOptions={{ onClick: () => alert("Row 2 clicked") }}
|
46
|
-
{...props}
|
47
|
-
>
|
48
|
-
<Table.Cell>{"Value 1"}</Table.Cell>
|
49
|
-
<Table.Cell>{"Value 2"}</Table.Cell>
|
50
|
-
<Table.Cell>{"Value 3"}</Table.Cell>
|
51
|
-
<Table.Cell>{"Value 4"}</Table.Cell>
|
52
|
-
<Table.Cell>{"Value 5"}</Table.Cell>
|
53
|
-
<Table.Cell textAlign="right">
|
54
|
-
<Icon
|
55
|
-
color="primary_action"
|
56
|
-
fixedWidth
|
57
|
-
icon="chevron-right"
|
58
|
-
size="xs"
|
59
|
-
{...props}
|
60
|
-
/>
|
61
|
-
</Table.Cell>
|
62
|
-
</Table.Row>
|
63
|
-
<Table.Row
|
64
|
-
cursor="pointer"
|
65
|
-
htmlOptions={{ onClick: () => alert("Row 3 clicked") }}
|
66
|
-
{...props}
|
67
|
-
>
|
68
|
-
<Table.Cell>{"Value 1"}</Table.Cell>
|
69
|
-
<Table.Cell>{"Value 2"}</Table.Cell>
|
70
|
-
<Table.Cell>{"Value 3"}</Table.Cell>
|
71
|
-
<Table.Cell>{"Value 4"}</Table.Cell>
|
72
|
-
<Table.Cell>{"Value 5"}</Table.Cell>
|
73
|
-
<Table.Cell textAlign="right">
|
74
|
-
<Icon
|
75
|
-
color="primary_action"
|
76
|
-
fixedWidth
|
77
|
-
icon="chevron-right"
|
78
|
-
size="xs"
|
79
|
-
{...props}
|
80
|
-
/>
|
81
|
-
</Table.Cell>
|
82
|
-
</Table.Row>
|
83
|
-
</Table.Body>
|
84
|
-
</Table>
|
85
|
-
)
|
86
|
-
}
|
87
|
-
|
88
|
-
export default TableWithClickableRows
|
@@ -1 +0,0 @@
|
|
1
|
-
Clickable table rows do not require any additional props. This doc example showcases how to set them up using `html_options`/`htmlOptions` and click events. Using the global prop for cursor to set it to "pointer" is also recommended for better UX.
|