playbook_ui_docs 14.12.0.pre.rc.11 → 14.13.0.pre.alpha.PBNTR457formtimezoneselect6219
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.
- checksums.yaml +4 -4
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers_custom_cell.jsx +75 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_loading.html.erb +33 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_loading_rails.md +1 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/{_advanced_table_loading.md → _advanced_table_loading_react.md} +2 -2
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_no_subrows.jsx +50 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pagination.jsx +1 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pagination_with_props.jsx +1 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_responsive.html.erb +38 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows.jsx +60 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows.md +5 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_actions.jsx +78 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_actions.md +1 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_header.jsx +53 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_header.md +1 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_no_subrows.jsx +52 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_no_subrows.md +1 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort_control.md +2 -2
- 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.jsx +1 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_rails.md +3 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_react.md +3 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_sticky_header.html.erb +33 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_sticky_header.jsx +55 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_sticky_header_rails.md +3 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_sticky_header_react.md +3 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/advanced_table_mock_data_no_subrows.json +42 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/advanced_table_mock_data_with_id.json +299 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +10 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/index.js +8 -1
- data/app/pb_kits/playbook/pb_avatar/docs/_avatar_badge_component_overlay.jsx +9 -3
- data/app/pb_kits/playbook/pb_avatar/docs/_avatar_circle_icon_component_overlay.jsx +6 -2
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_pb_styles.jsx +64 -0
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_pb_styles.md +1 -0
- data/app/pb_kits/playbook/pb_bar_graph/docs/example.yml +1 -0
- data/app/pb_kits/playbook/pb_bar_graph/docs/index.js +1 -0
- data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_react_hook.jsx +69 -0
- data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_react_hook.md +1 -0
- data/app/pb_kits/playbook/pb_checkbox/docs/example.yml +2 -1
- data/app/pb_kits/playbook/pb_checkbox/docs/index.js +1 -0
- data/app/pb_kits/playbook/pb_copy_button/docs/_copy_button_default.html.erb +2 -0
- data/app/pb_kits/playbook/pb_copy_button/docs/_copy_button_default.jsx +21 -0
- data/app/pb_kits/playbook/pb_copy_button/docs/_copy_button_from.html.erb +5 -0
- data/app/pb_kits/playbook/pb_copy_button/docs/_copy_button_from.jsx +45 -0
- data/app/pb_kits/playbook/pb_copy_button/docs/_copy_button_from.md +1 -0
- data/app/pb_kits/playbook/pb_copy_button/docs/example.yml +8 -0
- data/app/pb_kits/playbook/pb_copy_button/docs/index.js +2 -0
- data/app/pb_kits/playbook/pb_date/docs/_date_default.jsx +2 -1
- data/app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx +13 -5
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_turbo_frames.html.erb +13 -0
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_turbo_frames_rails.md +3 -0
- data/app/pb_kits/playbook/pb_date_picker/docs/example.yml +1 -0
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers_rails.html.erb +99 -0
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers_rails.md +1 -0
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards_rails.html.erb +1 -3
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards_rails.md +7 -0
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_table.html.erb +61 -0
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_table.md +4 -0
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_table_react.jsx +90 -0
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_table_react.md +5 -0
- data/app/pb_kits/playbook/pb_draggable/docs/example.yml +4 -5
- data/app/pb_kits/playbook/pb_draggable/docs/index.js +2 -1
- data/app/pb_kits/playbook/pb_drawer/docs/_drawer_behavior.jsx +38 -0
- data/app/pb_kits/playbook/pb_drawer/docs/_drawer_borders.jsx +3 -45
- data/app/pb_kits/playbook/pb_drawer/docs/_drawer_breakpoints.jsx +0 -1
- data/app/pb_kits/playbook/pb_drawer/docs/_drawer_default.jsx +9 -16
- data/app/pb_kits/playbook/pb_drawer/docs/_drawer_menu.jsx +44 -19
- data/app/pb_kits/playbook/pb_drawer/docs/_drawer_menu.md +21 -3
- data/app/pb_kits/playbook/pb_drawer/docs/_drawer_overlay.jsx +16 -21
- data/app/pb_kits/playbook/pb_drawer/docs/_drawer_sizes.jsx +2 -19
- data/app/pb_kits/playbook/pb_drawer/docs/example.yml +2 -1
- data/app/pb_kits/playbook/pb_drawer/docs/index.js +1 -0
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_subtle_variant.md +1 -1
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_auto_close.html.erb +58 -0
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_auto_close_rails.md +3 -0
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/example.yml +1 -0
- data/app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb +1 -0
- data/app/pb_kits/playbook/pb_form/docs/_form_form_with_validate.html.erb +1 -0
- data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_formatting.html.erb +11 -0
- data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_formatting.jsx +22 -0
- data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_formatting_rails.md +1 -0
- data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_formatting_react.md +1 -0
- data/app/pb_kits/playbook/pb_home_address_street/docs/example.yml +2 -0
- data/app/pb_kits/playbook/pb_home_address_street/docs/index.js +1 -0
- data/app/pb_kits/playbook/pb_icon_button/docs/_icon_button_default.html.erb +2 -0
- data/app/pb_kits/playbook/pb_icon_button/docs/_icon_button_sizes.html.erb +27 -0
- data/app/pb_kits/playbook/pb_icon_button/docs/example.yml +5 -0
- data/app/pb_kits/playbook/pb_link/docs/_link_target.html.erb +15 -0
- data/app/pb_kits/playbook/pb_link/docs/_link_target.jsx +29 -0
- data/app/pb_kits/playbook/pb_link/docs/example.yml +5 -3
- data/app/pb_kits/playbook/pb_link/docs/index.js +2 -1
- data/app/pb_kits/playbook/pb_overlay/docs/_overlay_vertical_dynamic_multi_directional.jsx +37 -0
- data/app/pb_kits/playbook/pb_overlay/docs/_overlay_vertical_dynamic_multi_directional_react.md +1 -0
- data/app/pb_kits/playbook/pb_overlay/docs/example.yml +1 -0
- data/app/pb_kits/playbook/pb_overlay/docs/index.js +1 -0
- data/app/pb_kits/playbook/pb_progress_pills/docs/_progress_pills_default.html.erb +1 -0
- data/app/pb_kits/playbook/pb_progress_pills/docs/_progress_pills_default.jsx +7 -0
- data/app/pb_kits/playbook/pb_progress_pills/docs/_progress_pills_default.md +1 -0
- data/app/pb_kits/playbook/pb_progress_pills/docs/_progress_pills_full_width.html.erb +1 -0
- data/app/pb_kits/playbook/pb_progress_pills/docs/_progress_pills_full_width.jsx +18 -0
- data/app/pb_kits/playbook/pb_progress_pills/docs/_progress_pills_full_width_rails.md +1 -0
- data/app/pb_kits/playbook/pb_progress_pills/docs/_progress_pills_full_width_react.md +1 -0
- data/app/pb_kits/playbook/pb_progress_pills/docs/example.yml +2 -0
- data/app/pb_kits/playbook/pb_progress_pills/docs/index.js +1 -0
- data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_tooltip.html.erb +6 -6
- data/app/pb_kits/playbook/pb_radio/docs/_radio_custom_children.jsx +8 -3
- data/app/pb_kits/playbook/pb_selectable_icon/docs/_selectable_icon_default.jsx +4 -1
- data/app/pb_kits/playbook/pb_selectable_icon/docs/_selectable_icon_single_select.jsx +4 -1
- data/app/pb_kits/playbook/pb_table/docs/_table_with_background_kit.html.erb +6 -9
- data/app/pb_kits/playbook/pb_table/docs/_table_with_background_kit.jsx +6 -9
- data/app/pb_kits/playbook/pb_table/docs/_table_with_clickable_rows.html.erb +47 -0
- data/app/pb_kits/playbook/pb_table/docs/_table_with_clickable_rows.jsx +88 -0
- data/app/pb_kits/playbook/pb_table/docs/_table_with_clickable_rows.md +1 -0
- data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible.html.erb +47 -0
- data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible.jsx +1 -1
- data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_rails.md +2 -0
- data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_custom_click.html.erb +51 -0
- data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_custom_click_rails.md +2 -0
- data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_custom_content.jsx +12 -8
- data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_custom_content_rails.html.erb +52 -0
- data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_custom_content_rails.md +0 -0
- data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_rows_rails.html.erb +52 -0
- data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_rows_rails.md +3 -0
- data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_table_rails.html.erb +80 -0
- data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_table_rails.md +1 -0
- data/app/pb_kits/playbook/pb_table/docs/_table_with_selectable_rows.html.erb +96 -0
- data/app/pb_kits/playbook/pb_table/docs/_table_with_selectable_rows.jsx +101 -0
- data/app/pb_kits/playbook/pb_table/docs/_table_with_selectable_rows.md +1 -0
- data/app/pb_kits/playbook/pb_table/docs/example.yml +9 -0
- data/app/pb_kits/playbook/pb_table/docs/index.js +3 -1
- data/app/pb_kits/playbook/pb_text_input/docs/_text_input_mask.html.erb +60 -0
- data/app/pb_kits/playbook/pb_text_input/docs/_text_input_mask_rails.md +3 -0
- data/app/pb_kits/playbook/pb_text_input/docs/example.yml +2 -1
- data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_default.html.erb +1 -1
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_truncated_text.html.erb +19 -0
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_truncated_text.jsx +27 -0
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_truncated_text.md +1 -0
- data/app/pb_kits/playbook/pb_typeahead/docs/example.yml +2 -0
- data/app/pb_kits/playbook/pb_typeahead/docs/index.js +1 -0
- data/app/pb_kits/playbook/pb_user/docs/_user_light_weight.html.erb +42 -0
- data/app/pb_kits/playbook/pb_user/docs/_user_light_weight.jsx +59 -0
- data/app/pb_kits/playbook/pb_user/docs/_user_light_weight.md +2 -0
- data/app/pb_kits/playbook/pb_user/docs/example.yml +2 -0
- data/app/pb_kits/playbook/pb_user/docs/index.js +1 -0
- data/dist/playbook-doc.js +1 -1
- metadata +87 -17
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_actions.html.erb +0 -19
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_actions.jsx +0 -26
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_default.html.erb +0 -10
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_default.jsx +0 -17
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_on_click.jsx +0 -19
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_onclick.html.erb +0 -16
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_placement.html.erb +0 -35
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_placement.jsx +0 -42
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_tooltip.html.erb +0 -13
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/example.yml +0 -15
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/index.js +0 -4
- /data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/{_fixed_confirmation_toast_auto_close.md → _fixed_confirmation_toast_auto_close_react.md} +0 -0
- /data/app/pb_kits/playbook/pb_table/docs/{_table_with_collapsible.md → _table_with_collapsible_react.md} +0 -0
- /data/app/pb_kits/playbook/pb_table/docs/{_table_with_collapsible_with_custom_click.md → _table_with_collapsible_with_custom_click_react.md} +0 -0
@@ -0,0 +1,42 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"year": "2021",
|
4
|
+
"id": "1",
|
5
|
+
"newEnrollments": "20",
|
6
|
+
"scheduledMeetings": "10",
|
7
|
+
"attendanceRate": "51%",
|
8
|
+
"completedClasses": "3",
|
9
|
+
"classCompletionRate": "33%",
|
10
|
+
"graduatedStudents": "19"
|
11
|
+
},
|
12
|
+
{
|
13
|
+
"year": "2022",
|
14
|
+
"id": "8",
|
15
|
+
"newEnrollments": "25",
|
16
|
+
"scheduledMeetings": "17",
|
17
|
+
"attendanceRate": "75%",
|
18
|
+
"completedClasses": "5",
|
19
|
+
"classCompletionRate": "45%",
|
20
|
+
"graduatedStudents": "32"
|
21
|
+
},
|
22
|
+
{
|
23
|
+
"year": "2023",
|
24
|
+
"id": "15",
|
25
|
+
"newEnrollments": "10",
|
26
|
+
"scheduledMeetings": "15",
|
27
|
+
"attendanceRate": "65%",
|
28
|
+
"completedClasses": "4",
|
29
|
+
"classCompletionRate": "49%",
|
30
|
+
"graduatedStudents": "29"
|
31
|
+
},
|
32
|
+
{
|
33
|
+
"year": "2024",
|
34
|
+
"id": "14",
|
35
|
+
"newEnrollments": "15",
|
36
|
+
"scheduledMeetings": "34",
|
37
|
+
"attendanceRate": "32%",
|
38
|
+
"completedClasses": "6",
|
39
|
+
"classCompletionRate": "67%",
|
40
|
+
"graduatedStudents": "65"
|
41
|
+
}
|
42
|
+
]
|
@@ -0,0 +1,299 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"year": "2021",
|
4
|
+
"id": "1",
|
5
|
+
"quarter": null,
|
6
|
+
"month": null,
|
7
|
+
"day": null,
|
8
|
+
"newEnrollments": "20",
|
9
|
+
"scheduledMeetings": "10",
|
10
|
+
"attendanceRate": "51%",
|
11
|
+
"completedClasses": "3",
|
12
|
+
"classCompletionRate": "33%",
|
13
|
+
"graduatedStudents": "19",
|
14
|
+
"children": [
|
15
|
+
{
|
16
|
+
"year": "2021",
|
17
|
+
"id": "2",
|
18
|
+
"quarter": "Q1",
|
19
|
+
"month": null,
|
20
|
+
"day": null,
|
21
|
+
"newEnrollments": "2",
|
22
|
+
"scheduledMeetings": "35",
|
23
|
+
"attendanceRate": "32%",
|
24
|
+
"completedClasses": "15",
|
25
|
+
"classCompletionRate": "52%",
|
26
|
+
"graduatedStudents": "36",
|
27
|
+
"children": [
|
28
|
+
{
|
29
|
+
"year": "2021",
|
30
|
+
"id": "3",
|
31
|
+
"quarter": "Q1",
|
32
|
+
"month": "January",
|
33
|
+
"day": null,
|
34
|
+
"newEnrollments": "16",
|
35
|
+
"scheduledMeetings": "20",
|
36
|
+
"attendanceRate": "11%",
|
37
|
+
"completedClasses": "13",
|
38
|
+
"classCompletionRate": "47%",
|
39
|
+
"graduatedStudents": "28",
|
40
|
+
"children": [
|
41
|
+
{
|
42
|
+
"year": "2021",
|
43
|
+
"id": "4",
|
44
|
+
"quarter": "Q1",
|
45
|
+
"month": "January",
|
46
|
+
"day": "10",
|
47
|
+
"newEnrollments": "34",
|
48
|
+
"scheduledMeetings": "28",
|
49
|
+
"attendanceRate": "97%",
|
50
|
+
"completedClasses": "20",
|
51
|
+
"classCompletionRate": "15%",
|
52
|
+
"graduatedStudents": "17"
|
53
|
+
},
|
54
|
+
{
|
55
|
+
"year": "2021",
|
56
|
+
"id": "5",
|
57
|
+
"quarter": "Q1",
|
58
|
+
"month": "January",
|
59
|
+
"day": "20",
|
60
|
+
"newEnrollments": "43",
|
61
|
+
"scheduledMeetings": "23",
|
62
|
+
"attendanceRate": "66%",
|
63
|
+
"completedClasses": "26",
|
64
|
+
"classCompletionRate": "47%",
|
65
|
+
"graduatedStudents": "9"
|
66
|
+
}
|
67
|
+
]
|
68
|
+
},
|
69
|
+
{
|
70
|
+
"year": "2021",
|
71
|
+
"id": "6",
|
72
|
+
"quarter": "Q1",
|
73
|
+
"month": "February",
|
74
|
+
"day": null,
|
75
|
+
"newEnrollments": "20",
|
76
|
+
"scheduledMeetings": "41",
|
77
|
+
"attendanceRate": "95%",
|
78
|
+
"completedClasses": "26",
|
79
|
+
"classCompletionRate": "83%",
|
80
|
+
"graduatedStudents": "43",
|
81
|
+
"children": [
|
82
|
+
{
|
83
|
+
"year": "2021",
|
84
|
+
"id": "7",
|
85
|
+
"quarter": "Q1",
|
86
|
+
"month": "February",
|
87
|
+
"day": "15",
|
88
|
+
"newEnrollments": "19",
|
89
|
+
"scheduledMeetings": "35",
|
90
|
+
"attendanceRate": "69%",
|
91
|
+
"completedClasses": "8",
|
92
|
+
"classCompletionRate": "75%",
|
93
|
+
"graduatedStudents": "23"
|
94
|
+
}
|
95
|
+
]
|
96
|
+
}
|
97
|
+
]
|
98
|
+
}
|
99
|
+
]
|
100
|
+
},
|
101
|
+
{
|
102
|
+
"year": "2022",
|
103
|
+
"id": "8",
|
104
|
+
"quarter": null,
|
105
|
+
"month": null,
|
106
|
+
"day": null,
|
107
|
+
"newEnrollments": "25",
|
108
|
+
"scheduledMeetings": "17",
|
109
|
+
"attendanceRate": "75%",
|
110
|
+
"completedClasses": "5",
|
111
|
+
"classCompletionRate": "45%",
|
112
|
+
"graduatedStudents": "32",
|
113
|
+
"children": [
|
114
|
+
{
|
115
|
+
"year": "2022",
|
116
|
+
"id": "9",
|
117
|
+
"quarter": "Q1",
|
118
|
+
"month": null,
|
119
|
+
"day": null,
|
120
|
+
"newEnrollments": "2",
|
121
|
+
"scheduledMeetings": "35",
|
122
|
+
"attendanceRate": "32%",
|
123
|
+
"completedClasses": "15",
|
124
|
+
"classCompletionRate": "52%",
|
125
|
+
"graduatedStudents": "36",
|
126
|
+
"children": [
|
127
|
+
{
|
128
|
+
"year": "2022",
|
129
|
+
"id": "10",
|
130
|
+
"quarter": "Q1",
|
131
|
+
"month": "January",
|
132
|
+
"day": null,
|
133
|
+
"newEnrollments": "16",
|
134
|
+
"scheduledMeetings": "20",
|
135
|
+
"attendanceRate": "11%",
|
136
|
+
"completedClasses": "13",
|
137
|
+
"classCompletionRate": "47%",
|
138
|
+
"graduatedStudents": "28",
|
139
|
+
"children": [
|
140
|
+
{
|
141
|
+
"year": "2022",
|
142
|
+
"id": "11",
|
143
|
+
"quarter": "Q1",
|
144
|
+
"month": "January",
|
145
|
+
"day": "15",
|
146
|
+
"newEnrollments": "34",
|
147
|
+
"scheduledMeetings": "28",
|
148
|
+
"attendanceRate": "97%",
|
149
|
+
"completedClasses": "20",
|
150
|
+
"classCompletionRate": "15%",
|
151
|
+
"graduatedStudents": "17"
|
152
|
+
},
|
153
|
+
{
|
154
|
+
"year": "2022",
|
155
|
+
"id": "12",
|
156
|
+
"quarter": "Q1",
|
157
|
+
"month": "January",
|
158
|
+
"day": "25",
|
159
|
+
"newEnrollments": "43",
|
160
|
+
"scheduledMeetings": "23",
|
161
|
+
"attendanceRate": "66%",
|
162
|
+
"completedClasses": "26",
|
163
|
+
"classCompletionRate": "47%",
|
164
|
+
"graduatedStudents": "9"
|
165
|
+
}
|
166
|
+
]
|
167
|
+
},
|
168
|
+
{
|
169
|
+
"year": "2022",
|
170
|
+
"id": "13",
|
171
|
+
"quarter": "Q1",
|
172
|
+
"month": "May",
|
173
|
+
"day": null,
|
174
|
+
"newEnrollments": "20",
|
175
|
+
"scheduledMeetings": "41",
|
176
|
+
"attendanceRate": "95%",
|
177
|
+
"completedClasses": "26",
|
178
|
+
"classCompletionRate": "83%",
|
179
|
+
"graduatedStudents": "43",
|
180
|
+
"children": [
|
181
|
+
{
|
182
|
+
"year": "2022",
|
183
|
+
"id": "14",
|
184
|
+
"quarter": "Q1",
|
185
|
+
"month": "May",
|
186
|
+
"day": "2",
|
187
|
+
"newEnrollments": "19",
|
188
|
+
"scheduledMeetings": "35",
|
189
|
+
"attendanceRate": "69%",
|
190
|
+
"completedClasses": "8",
|
191
|
+
"classCompletionRate": "75%",
|
192
|
+
"graduatedStudents": "23"
|
193
|
+
}
|
194
|
+
]
|
195
|
+
}
|
196
|
+
]
|
197
|
+
}
|
198
|
+
]
|
199
|
+
},
|
200
|
+
{
|
201
|
+
"year": "2023",
|
202
|
+
"id": "15",
|
203
|
+
"quarter": null,
|
204
|
+
"month": null,
|
205
|
+
"day": null,
|
206
|
+
"newEnrollments": "10",
|
207
|
+
"scheduledMeetings": "15",
|
208
|
+
"attendanceRate": "65%",
|
209
|
+
"completedClasses": "4",
|
210
|
+
"classCompletionRate": "49%",
|
211
|
+
"graduatedStudents": "29",
|
212
|
+
"children": [
|
213
|
+
{
|
214
|
+
"year": "2023",
|
215
|
+
"id": "16",
|
216
|
+
"quarter": "Q1",
|
217
|
+
"month": null,
|
218
|
+
"day": null,
|
219
|
+
"newEnrollments": "2",
|
220
|
+
"scheduledMeetings": "35",
|
221
|
+
"attendanceRate": "32%",
|
222
|
+
"completedClasses": "15",
|
223
|
+
"classCompletionRate": "52%",
|
224
|
+
"graduatedStudents": "36",
|
225
|
+
"children": [
|
226
|
+
{
|
227
|
+
"year": "2023",
|
228
|
+
"id": "17",
|
229
|
+
"quarter": "Q1",
|
230
|
+
"month": "March",
|
231
|
+
"day": null,
|
232
|
+
"newEnrollments": "16",
|
233
|
+
"scheduledMeetings": "20",
|
234
|
+
"attendanceRate": "11%",
|
235
|
+
"completedClasses": "13",
|
236
|
+
"classCompletionRate": "47%",
|
237
|
+
"graduatedStudents": "28",
|
238
|
+
"children": [
|
239
|
+
{
|
240
|
+
"year": "2023",
|
241
|
+
"id": "18",
|
242
|
+
"quarter": "Q1",
|
243
|
+
"month": "March",
|
244
|
+
"day": "10",
|
245
|
+
"newEnrollments": "34",
|
246
|
+
"scheduledMeetings": "28",
|
247
|
+
"attendanceRate": "97%",
|
248
|
+
"completedClasses": "20",
|
249
|
+
"classCompletionRate": "15%",
|
250
|
+
"graduatedStudents": "17"
|
251
|
+
},
|
252
|
+
{
|
253
|
+
"year": "2023",
|
254
|
+
"id": "19",
|
255
|
+
"quarter": "Q1",
|
256
|
+
"month": "March",
|
257
|
+
"day": "11",
|
258
|
+
"newEnrollments": "43",
|
259
|
+
"scheduledMeetings": "23",
|
260
|
+
"attendanceRate": "66%",
|
261
|
+
"completedClasses": "26",
|
262
|
+
"classCompletionRate": "47%",
|
263
|
+
"graduatedStudents": "9"
|
264
|
+
}
|
265
|
+
]
|
266
|
+
},
|
267
|
+
{
|
268
|
+
"year": "2023",
|
269
|
+
"id": "20",
|
270
|
+
"quarter": "Q1",
|
271
|
+
"month": "April",
|
272
|
+
"day": null,
|
273
|
+
"newEnrollments": "20",
|
274
|
+
"scheduledMeetings": "41",
|
275
|
+
"attendanceRate": "95%",
|
276
|
+
"completedClasses": "26",
|
277
|
+
"classCompletionRate": "83%",
|
278
|
+
"graduatedStudents": "43",
|
279
|
+
"children": [
|
280
|
+
{
|
281
|
+
"year": "2023",
|
282
|
+
"id": "21",
|
283
|
+
"quarter": "Q1",
|
284
|
+
"month": "April",
|
285
|
+
"day": "15",
|
286
|
+
"newEnrollments": "19",
|
287
|
+
"scheduledMeetings": "35",
|
288
|
+
"attendanceRate": "69%",
|
289
|
+
"completedClasses": "8",
|
290
|
+
"classCompletionRate": "75%",
|
291
|
+
"graduatedStudents": "23"
|
292
|
+
}
|
293
|
+
]
|
294
|
+
}
|
295
|
+
]
|
296
|
+
}
|
297
|
+
]
|
298
|
+
}
|
299
|
+
]
|
@@ -1,10 +1,13 @@
|
|
1
1
|
examples:
|
2
2
|
rails:
|
3
3
|
- advanced_table_beta: Default (Required Props)
|
4
|
+
- advanced_table_loading: Loading State
|
4
5
|
- advanced_table_beta_subrow_headers: SubRow Headers
|
5
6
|
- advanced_table_collapsible_trail_rails: Collapsible Trail
|
6
7
|
- advanced_table_table_props: Table Props
|
8
|
+
- advanced_table_table_props_sticky_header: Table Props Sticky Header
|
7
9
|
- advanced_table_beta_sort: Enable Sorting
|
10
|
+
- advanced_table_responsive: Responsive Tables
|
8
11
|
- advanced_table_custom_cell_rails: Custom Components for Cells
|
9
12
|
- advanced_table_column_headers: Multi-Header Columns
|
10
13
|
- advanced_table_column_headers_multiple: Multi-Header Columns (Multiple Levels)
|
@@ -20,6 +23,7 @@ examples:
|
|
20
23
|
- advanced_table_collapsible_trail: Collapsible Trail
|
21
24
|
- advanced_table_table_options: Table Options
|
22
25
|
- advanced_table_table_props: Table Props
|
26
|
+
- advanced_table_table_props_sticky_header: Table Props Sticky Header
|
23
27
|
- advanced_table_inline_row_loading: Inline Row Loading
|
24
28
|
- advanced_table_responsive: Responsive Tables
|
25
29
|
- advanced_table_custom_cell: Custom Components for Cells
|
@@ -27,3 +31,9 @@ examples:
|
|
27
31
|
- advanced_table_pagination_with_props: Pagination Props
|
28
32
|
- advanced_table_column_headers: Multi-Header Columns
|
29
33
|
- advanced_table_column_headers_multiple: Multi-Header Columns (Multiple Levels)
|
34
|
+
- advanced_table_column_headers_custom_cell: Multi-Header Columns with Custom Cells
|
35
|
+
# - advanced_table_no_subrows: Table with No Subrows
|
36
|
+
- advanced_table_selectable_rows: Selectable Rows
|
37
|
+
- advanced_table_selectable_rows_no_subrows: Selectable Rows (No Subrows)
|
38
|
+
- advanced_table_selectable_rows_actions: Selectable Rows (With Actions)
|
39
|
+
- advanced_table_selectable_rows_header: Selectable Rows (No Actions Bar)
|
@@ -13,4 +13,11 @@ export { default as AdvancedTableCustomCell } from './_advanced_table_custom_cel
|
|
13
13
|
export { default as AdvancedTablePagination } from './_advanced_table_pagination.jsx'
|
14
14
|
export { default as AdvancedTablePaginationWithProps } from './_advanced_table_pagination_with_props.jsx'
|
15
15
|
export { default as AdvancedTableColumnHeaders } from './_advanced_table_column_headers.jsx'
|
16
|
-
export { default as AdvancedTableColumnHeadersMultiple } from './_advanced_table_column_headers_multiple.jsx'
|
16
|
+
export { default as AdvancedTableColumnHeadersMultiple } from './_advanced_table_column_headers_multiple.jsx'
|
17
|
+
export { default as AdvancedTableSelectableRows } from './_advanced_table_selectable_rows.jsx'
|
18
|
+
export { default as AdvancedTableSelectableRowsNoSubrows } from './_advanced_table_selectable_rows_no_subrows.jsx'
|
19
|
+
export { default as AdvancedTableNoSubrows } from './_advanced_table_no_subrows.jsx'
|
20
|
+
export { default as AdvancedTableSelectableRowsHeader } from './_advanced_table_selectable_rows_header.jsx'
|
21
|
+
export { default as AdvancedTableSelectableRowsActions } from './_advanced_table_selectable_rows_actions.jsx'
|
22
|
+
export { default as AdvancedTableTablePropsStickyHeader } from './_advanced_table_table_props_sticky_header.jsx'
|
23
|
+
export { default as AdvancedTableColumnHeadersCustomCell } from './_advanced_table_column_headers_custom_cell.jsx'
|
@@ -1,18 +1,19 @@
|
|
1
1
|
import React from "react";
|
2
2
|
import { Avatar } from 'playbook-ui'
|
3
3
|
|
4
|
-
const AvatarBadgeComponentOverlay = () => {
|
4
|
+
const AvatarBadgeComponentOverlay = (props) => {
|
5
5
|
return (
|
6
6
|
<div>
|
7
7
|
<Avatar
|
8
8
|
componentOverlay={{
|
9
9
|
component: "badge",
|
10
10
|
placement: "bottom-right",
|
11
|
-
text: "12"
|
11
|
+
text: "12",
|
12
12
|
}}
|
13
13
|
imageUrl="https://randomuser.me/api/portraits/men/44.jpg"
|
14
14
|
marginBottom="sm"
|
15
15
|
size="sm"
|
16
|
+
{...props}
|
16
17
|
/>
|
17
18
|
|
18
19
|
<Avatar
|
@@ -24,6 +25,8 @@ const AvatarBadgeComponentOverlay = () => {
|
|
24
25
|
imageUrl="https://randomuser.me/api/portraits/men/44.jpg"
|
25
26
|
marginBottom="sm"
|
26
27
|
size="md"
|
28
|
+
{...props}
|
29
|
+
|
27
30
|
/>
|
28
31
|
|
29
32
|
<Avatar
|
@@ -36,6 +39,8 @@ const AvatarBadgeComponentOverlay = () => {
|
|
36
39
|
imageUrl="https://randomuser.me/api/portraits/men/44.jpg"
|
37
40
|
marginBottom="sm"
|
38
41
|
size="lg"
|
42
|
+
{...props}
|
43
|
+
|
39
44
|
/>
|
40
45
|
|
41
46
|
<Avatar
|
@@ -48,7 +53,8 @@ const AvatarBadgeComponentOverlay = () => {
|
|
48
53
|
imageUrl="https://randomuser.me/api/portraits/men/44.jpg"
|
49
54
|
marginBottom="sm"
|
50
55
|
size="xl"
|
51
|
-
|
56
|
+
{...props}
|
57
|
+
/>
|
52
58
|
</div>
|
53
59
|
)
|
54
60
|
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import React from "react";
|
2
2
|
import { Avatar } from 'playbook-ui'
|
3
3
|
|
4
|
-
const AvatarCircleIconComponentOverlay = () => {
|
4
|
+
const AvatarCircleIconComponentOverlay = (props) => {
|
5
5
|
return (
|
6
6
|
<div>
|
7
7
|
<Avatar
|
@@ -14,6 +14,7 @@ const AvatarCircleIconComponentOverlay = () => {
|
|
14
14
|
imageUrl="https://randomuser.me/api/portraits/men/44.jpg"
|
15
15
|
marginBottom="sm"
|
16
16
|
size="sm"
|
17
|
+
{...props}
|
17
18
|
/>
|
18
19
|
|
19
20
|
<Avatar
|
@@ -26,6 +27,7 @@ const AvatarCircleIconComponentOverlay = () => {
|
|
26
27
|
imageUrl="https://randomuser.me/api/portraits/men/44.jpg"
|
27
28
|
marginBottom="sm"
|
28
29
|
size="md"
|
30
|
+
{...props}
|
29
31
|
/>
|
30
32
|
|
31
33
|
<Avatar
|
@@ -38,6 +40,7 @@ const AvatarCircleIconComponentOverlay = () => {
|
|
38
40
|
imageUrl="https://randomuser.me/api/portraits/men/44.jpg"
|
39
41
|
marginBottom="sm"
|
40
42
|
size="lg"
|
43
|
+
{...props}
|
41
44
|
/>
|
42
45
|
|
43
46
|
<Avatar
|
@@ -50,7 +53,8 @@ const AvatarCircleIconComponentOverlay = () => {
|
|
50
53
|
imageUrl="https://randomuser.me/api/portraits/men/44.jpg"
|
51
54
|
marginBottom="sm"
|
52
55
|
size="xl"
|
53
|
-
|
56
|
+
{...props}
|
57
|
+
/>
|
54
58
|
</div>
|
55
59
|
)
|
56
60
|
}
|
@@ -0,0 +1,64 @@
|
|
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
|
@@ -0,0 +1 @@
|
|
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.
|
@@ -10,3 +10,4 @@ export { default as BarGraphStacked } from './_bar_graph_stacked.jsx'
|
|
10
10
|
export { default as BarGraphNegativeNumbers } from './_bar_graph_negative_numbers.jsx'
|
11
11
|
export { default as BarGraphSecondaryYAxis } from './_bar_graph_secondary_y_axis.jsx'
|
12
12
|
export { default as BarGraphHorizontal } from './_bar_graph_horizontal.jsx'
|
13
|
+
export { default as BarGraphPbStyles } from './_bar_graph_pb_styles.jsx'
|
@@ -0,0 +1,69 @@
|
|
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
|
@@ -0,0 +1 @@
|
|
1
|
+
You can pass react hook props to the checkbox kit.
|
@@ -11,6 +11,7 @@ examples:
|
|
11
11
|
react:
|
12
12
|
- checkbox_default: Default
|
13
13
|
- checkbox_checked: Load as checked
|
14
|
+
- checkbox_react_hook: React Hook Form
|
14
15
|
- checkbox_custom: Custom Checkbox
|
15
16
|
- checkbox_error: Default w/ Error
|
16
17
|
- checkbox_indeterminate: Indeterminate Checkbox
|
@@ -21,4 +22,4 @@ examples:
|
|
21
22
|
- checkbox_error_swift: Default w/ Error
|
22
23
|
- checkbox_indeterminate_swift: Indeterminate Checkbox
|
23
24
|
- checkbox_props_swift: ""
|
24
|
-
|
25
|
+
|
@@ -1,5 +1,6 @@
|
|
1
1
|
export { default as CheckboxDefault } from './_checkbox_default.jsx'
|
2
2
|
export { default as CheckboxCustom } from './_checkbox_custom.jsx'
|
3
|
+
export { default as CheckboxReactHook } from './_checkbox_react_hook.jsx'
|
3
4
|
export { default as CheckboxError } from './_checkbox_error.jsx'
|
4
5
|
export { default as CheckboxChecked } from './_checkbox_checked.jsx'
|
5
6
|
export { default as CheckboxIndeterminate } from './_checkbox_indeterminate.jsx'
|
@@ -0,0 +1,2 @@
|
|
1
|
+
<%= pb_rails("copy_button", props: { id: "default-copy-button", text: "Copy Text", value: "Playbook makes it easy to support bleeding edge, or legacy systems. Use Playbook’s 200+ components and end-to-end design language to create simple, intuitive and beautiful experiences with ease." } ) %>
|
2
|
+
<%= pb_rails("textarea", props: { margin_top: "xs", placeholder: "Copy and paste here" }) %>
|