playbook_ui_docs 14.17.0.pre.alpha.play1735highchartscirclechartdefaultrebuild7372 → 14.17.0.pre.alpha.play1906overlaykitaddopacityandgradient7201

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 (87) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props.html.erb +1 -1
  3. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props.jsx +2 -1
  4. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_rails.md +2 -2
  5. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_react.md +1 -1
  6. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_sticky_header_rails.md +2 -6
  7. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_sticky_header_react.md +2 -6
  8. data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +2 -7
  9. data/app/pb_kits/playbook/pb_advanced_table/docs/index.js +1 -5
  10. data/app/pb_kits/playbook/pb_background/docs/example.yml +0 -1
  11. data/app/pb_kits/playbook/pb_background/docs/index.js +0 -1
  12. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_block.html.erb +2 -2
  13. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_block.jsx +1 -1
  14. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_colors.html.erb +1 -1
  15. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_colors.jsx +1 -1
  16. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_custom_tooltip.html.erb +1 -1
  17. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_custom_tooltip.jsx +1 -1
  18. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_default.html.erb +1 -1
  19. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_default.jsx +1 -1
  20. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.html.erb +1 -1
  21. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.jsx +1 -1
  22. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_live_data.jsx +2 -2
  23. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_rounded.html.erb +1 -1
  24. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_rounded.jsx +1 -1
  25. data/app/pb_kits/playbook/pb_circle_chart/docs/example.yml +3 -2
  26. data/app/pb_kits/playbook/pb_circle_chart/docs/index.js +1 -2
  27. data/app/pb_kits/playbook/pb_copy_button/docs/example.yml +0 -1
  28. data/app/pb_kits/playbook/pb_copy_button/docs/index.js +1 -2
  29. data/app/pb_kits/playbook/pb_dialog/docs/example.yml +0 -1
  30. data/app/pb_kits/playbook/pb_draggable/docs/example.yml +0 -1
  31. data/app/pb_kits/playbook/pb_form_group/docs/_form_group_select.html.erb +5 -15
  32. data/app/pb_kits/playbook/pb_form_group/docs/_form_group_select.jsx +6 -39
  33. data/app/pb_kits/playbook/pb_gauge/docs/example.yml +0 -1
  34. data/app/pb_kits/playbook/pb_gauge/docs/index.js +0 -1
  35. data/app/pb_kits/playbook/pb_layout/docs/_layout_bracket.jsx +118 -322
  36. data/app/pb_kits/playbook/pb_layout/docs/_layout_bracket.md +1 -1
  37. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_default.md +9 -1
  38. data/app/pb_kits/playbook/pb_overlay/docs/example.yml +0 -5
  39. data/app/pb_kits/playbook/pb_overlay/docs/index.js +0 -5
  40. data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_rows.md +1 -3
  41. data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_rows_rails.md +1 -3
  42. data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_table.md +1 -3
  43. data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_table_rails.md +1 -3
  44. data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating_react.md +1 -1
  45. data/app/pb_kits/playbook/pb_table/docs/example.yml +0 -2
  46. data/app/pb_kits/playbook/pb_text_input/docs/example.yml +0 -2
  47. data/app/pb_kits/playbook/pb_text_input/docs/index.js +0 -1
  48. data/dist/playbook-doc.js +1 -19
  49. metadata +2 -40
  50. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_expand_by_depth.jsx +0 -66
  51. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_expand_by_depth.md +0 -10
  52. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_columns.jsx +0 -58
  53. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_columns.md +0 -6
  54. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_columns_and_header.jsx +0 -64
  55. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_columns_and_header.md +0 -8
  56. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_header.jsx +0 -55
  57. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_header.md +0 -3
  58. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_header_rails.html.erb +0 -33
  59. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_header_rails.md +0 -3
  60. data/app/pb_kits/playbook/pb_background/docs/_background_overlay.jsx +0 -35
  61. data/app/pb_kits/playbook/pb_background/docs/_background_overlay.md +0 -1
  62. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_pb_styles.jsx +0 -38
  63. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_pb_styles.md +0 -1
  64. data/app/pb_kits/playbook/pb_copy_button/docs/_copy_button_hook.jsx +0 -54
  65. data/app/pb_kits/playbook/pb_copy_button/docs/_copy_button_hook.md +0 -3
  66. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_turbo_frames.html.erb +0 -117
  67. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_turbo_frames_rails.md +0 -9
  68. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_event_listeners.html.erb +0 -42
  69. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_event_listeners.md +0 -1
  70. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_pb_styles.jsx +0 -30
  71. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_pb_styles.md +0 -1
  72. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_color.jsx +0 -63
  73. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_color.md +0 -3
  74. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_fullscreen_background.jsx +0 -49
  75. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_fullscreen_background.md +0 -1
  76. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_fullscreen_opacity.jsx +0 -81
  77. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_fullscreen_opacity.md +0 -1
  78. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_gradient_opacity.jsx +0 -39
  79. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_gradient_opacity.md +0 -1
  80. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_layout.jsx +0 -40
  81. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_layout.md +0 -5
  82. data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless.html.erb +0 -34
  83. data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless_rails.md +0 -1
  84. data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating.html.erb +0 -36
  85. data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating_rails.md +0 -1
  86. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_sanitize.jsx +0 -94
  87. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_sanitize.md +0 -1
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.17.0.pre.alpha.play1735highchartscirclechartdefaultrebuild7372
4
+ version: 14.17.0.pre.alpha.play1906overlaykitaddopacityandgradient7201
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-04-24 00:00:00.000000000 Z
12
+ date: 2025-04-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: playbook_ui
@@ -56,8 +56,6 @@ files:
56
56
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_custom_cell_rails.md
57
57
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_default.jsx
58
58
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_default.md
59
- - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_expand_by_depth.jsx
60
- - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_expand_by_depth.md
61
59
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_expanded_control.jsx
62
60
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_expanded_control.md
63
61
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_fullscreen.jsx
@@ -95,14 +93,6 @@ files:
95
93
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort.md
96
94
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort_control.jsx
97
95
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort_control.md
98
- - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_columns.jsx
99
- - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_columns.md
100
- - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_columns_and_header.jsx
101
- - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_columns_and_header.md
102
- - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_header.jsx
103
- - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_header.md
104
- - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_header_rails.html.erb
105
- - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_header_rails.md
106
96
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_subrow_headers.jsx
107
97
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_subrow_headers.md
108
98
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_options.jsx
@@ -157,8 +147,6 @@ files:
157
147
  - app/pb_kits/playbook/pb_background/docs/_background_image.md
158
148
  - app/pb_kits/playbook/pb_background/docs/_background_light.html.erb
159
149
  - app/pb_kits/playbook/pb_background/docs/_background_light.jsx
160
- - app/pb_kits/playbook/pb_background/docs/_background_overlay.jsx
161
- - app/pb_kits/playbook/pb_background/docs/_background_overlay.md
162
150
  - app/pb_kits/playbook/pb_background/docs/_background_size.html.erb
163
151
  - app/pb_kits/playbook/pb_background/docs/_background_size.jsx
164
152
  - app/pb_kits/playbook/pb_background/docs/_background_size.md
@@ -391,8 +379,6 @@ files:
391
379
  - app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.jsx
392
380
  - app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.md
393
381
  - app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_live_data.jsx
394
- - app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_pb_styles.jsx
395
- - app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_pb_styles.md
396
382
  - app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_rounded.html.erb
397
383
  - app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_rounded.jsx
398
384
  - app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_labels.html.erb
@@ -463,8 +449,6 @@ files:
463
449
  - app/pb_kits/playbook/pb_copy_button/docs/_copy_button_from.html.erb
464
450
  - app/pb_kits/playbook/pb_copy_button/docs/_copy_button_from.jsx
465
451
  - app/pb_kits/playbook/pb_copy_button/docs/_copy_button_from.md
466
- - app/pb_kits/playbook/pb_copy_button/docs/_copy_button_hook.jsx
467
- - app/pb_kits/playbook/pb_copy_button/docs/_copy_button_hook.md
468
452
  - app/pb_kits/playbook/pb_copy_button/docs/example.yml
469
453
  - app/pb_kits/playbook/pb_copy_button/docs/index.js
470
454
  - app/pb_kits/playbook/pb_currency/docs/_currency_abbreviated.html.erb
@@ -712,8 +696,6 @@ files:
712
696
  - app/pb_kits/playbook/pb_dialog/docs/_dialog_status.jsx
713
697
  - app/pb_kits/playbook/pb_dialog/docs/_dialog_status.md
714
698
  - app/pb_kits/playbook/pb_dialog/docs/_dialog_status_swift.md
715
- - app/pb_kits/playbook/pb_dialog/docs/_dialog_turbo_frames.html.erb
716
- - app/pb_kits/playbook/pb_dialog/docs/_dialog_turbo_frames_rails.md
717
699
  - app/pb_kits/playbook/pb_dialog/docs/example.yml
718
700
  - app/pb_kits/playbook/pb_dialog/docs/index.js
719
701
  - app/pb_kits/playbook/pb_distribution_bar/docs/_description.md
@@ -734,8 +716,6 @@ files:
734
716
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_colors.md
735
717
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_line.jsx
736
718
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_line.md
737
- - app/pb_kits/playbook/pb_draggable/docs/_draggable_event_listeners.html.erb
738
- - app/pb_kits/playbook/pb_draggable/docs/_draggable_event_listeners.md
739
719
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers.html.erb
740
720
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers.jsx
741
721
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers_rails.md
@@ -1006,8 +986,6 @@ files:
1006
986
  - app/pb_kits/playbook/pb_gauge/docs/_gauge_min_max.html.erb
1007
987
  - app/pb_kits/playbook/pb_gauge/docs/_gauge_min_max.jsx
1008
988
  - app/pb_kits/playbook/pb_gauge/docs/_gauge_min_max.md
1009
- - app/pb_kits/playbook/pb_gauge/docs/_gauge_pb_styles.jsx
1010
- - app/pb_kits/playbook/pb_gauge/docs/_gauge_pb_styles.md
1011
989
  - app/pb_kits/playbook/pb_gauge/docs/_gauge_sizing.html.erb
1012
990
  - app/pb_kits/playbook/pb_gauge/docs/_gauge_sizing.jsx
1013
991
  - app/pb_kits/playbook/pb_gauge/docs/_gauge_sizing.md
@@ -1453,23 +1431,13 @@ files:
1453
1431
  - app/pb_kits/playbook/pb_online_status/docs/_online_status_size.jsx
1454
1432
  - app/pb_kits/playbook/pb_online_status/docs/example.yml
1455
1433
  - app/pb_kits/playbook/pb_online_status/docs/index.js
1456
- - app/pb_kits/playbook/pb_overlay/docs/_overlay_color.jsx
1457
- - app/pb_kits/playbook/pb_overlay/docs/_overlay_color.md
1458
1434
  - app/pb_kits/playbook/pb_overlay/docs/_overlay_default.html.erb
1459
1435
  - app/pb_kits/playbook/pb_overlay/docs/_overlay_default.jsx
1460
1436
  - app/pb_kits/playbook/pb_overlay/docs/_overlay_default.md
1461
- - app/pb_kits/playbook/pb_overlay/docs/_overlay_fullscreen_background.jsx
1462
- - app/pb_kits/playbook/pb_overlay/docs/_overlay_fullscreen_background.md
1463
- - app/pb_kits/playbook/pb_overlay/docs/_overlay_fullscreen_opacity.jsx
1464
- - app/pb_kits/playbook/pb_overlay/docs/_overlay_fullscreen_opacity.md
1465
- - app/pb_kits/playbook/pb_overlay/docs/_overlay_gradient_opacity.jsx
1466
- - app/pb_kits/playbook/pb_overlay/docs/_overlay_gradient_opacity.md
1467
1437
  - app/pb_kits/playbook/pb_overlay/docs/_overlay_hide_scroll_bar.html.erb
1468
1438
  - app/pb_kits/playbook/pb_overlay/docs/_overlay_hide_scroll_bar.jsx
1469
1439
  - app/pb_kits/playbook/pb_overlay/docs/_overlay_hide_scroll_bar_rails.md
1470
1440
  - app/pb_kits/playbook/pb_overlay/docs/_overlay_hide_scroll_bar_react.md
1471
- - app/pb_kits/playbook/pb_overlay/docs/_overlay_layout.jsx
1472
- - app/pb_kits/playbook/pb_overlay/docs/_overlay_layout.md
1473
1441
  - app/pb_kits/playbook/pb_overlay/docs/_overlay_multi_directional.html.erb
1474
1442
  - app/pb_kits/playbook/pb_overlay/docs/_overlay_multi_directional.jsx
1475
1443
  - app/pb_kits/playbook/pb_overlay/docs/_overlay_multi_directional.md
@@ -1982,13 +1950,9 @@ files:
1982
1950
  - app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_table.md
1983
1951
  - app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_table_rails.html.erb
1984
1952
  - app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_table_rails.md
1985
- - app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless.html.erb
1986
1953
  - app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless.jsx
1987
- - app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless_rails.md
1988
1954
  - app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless_react.md
1989
- - app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating.html.erb
1990
1955
  - app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating.jsx
1991
- - app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating_rails.md
1992
1956
  - app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating_react.md
1993
1957
  - app/pb_kits/playbook/pb_table/docs/_table_with_selectable_rows.html.erb
1994
1958
  - app/pb_kits/playbook/pb_table/docs/_table_with_selectable_rows.jsx
@@ -2028,8 +1992,6 @@ files:
2028
1992
  - app/pb_kits/playbook/pb_text_input/docs/_text_input_no_label.jsx
2029
1993
  - app/pb_kits/playbook/pb_text_input/docs/_text_input_options.html.erb
2030
1994
  - app/pb_kits/playbook/pb_text_input/docs/_text_input_props_swift.md
2031
- - app/pb_kits/playbook/pb_text_input/docs/_text_input_sanitize.jsx
2032
- - app/pb_kits/playbook/pb_text_input/docs/_text_input_sanitize.md
2033
1995
  - app/pb_kits/playbook/pb_text_input/docs/example.yml
2034
1996
  - app/pb_kits/playbook/pb_text_input/docs/index.js
2035
1997
  - app/pb_kits/playbook/pb_textarea/docs/_description.md
@@ -1,66 +0,0 @@
1
- import React from "react"
2
- import AdvancedTable from '../../pb_advanced_table/_advanced_table'
3
- import MOCK_DATA from "./advanced_table_mock_data.json"
4
-
5
- const AdvancedTableExpandByDepth = (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 expandByDepth = [
39
- {
40
- depth: 0,
41
- label: "Year",
42
- },
43
- {
44
- depth: 1,
45
- label: "Quarter",
46
- },
47
- {
48
- depth: 2,
49
- label: "Month",
50
- }
51
- ]
52
-
53
- return (
54
- <div>
55
- <AdvancedTable
56
- columnDefinitions={columnDefinitions}
57
- expandByDepth={expandByDepth}
58
- onExpandByDepthClick={(depth, rows) => {console.log(depth, rows)}}
59
- tableData={MOCK_DATA}
60
- {...props}
61
- />
62
- </div>
63
- )
64
- }
65
-
66
- export default AdvancedTableExpandByDepth
@@ -1,10 +0,0 @@
1
- The `expandByDepth` prop enables users to expand or collapse table rows by specific levels of nesting. When provided, it renders a dropdown that appears when the toggle icon in the header is clicked.
2
-
3
- `expandByDepth` accepts an array of objects, where each object defines the depth level to target and the label to display in the dropdown. When a user selects an option:
4
-
5
- **Expanding a depth**: Expands all rows at the selected depth AND all parent levels above it (if parent levels were closed), ensuring nested content is visible.
6
-
7
- **Collapsing a depth**: Only collapses rows at the selected depth, keeping parent rows expanded for context.
8
-
9
- If you want to attach further logic to each option click, the **optional** `onExpandByDepthClick` prop can be used. This click event provides 2 arguments that can be hooked into: the depth level of the clicked item AND all flattened table rows. Any additional functionality provided through this onClick will be applied in addition to the default.
10
-
@@ -1,58 +0,0 @@
1
- import React from "react"
2
- import AdvancedTable from '../../pb_advanced_table/_advanced_table'
3
- import MOCK_DATA from "./advanced_table_mock_data.json"
4
-
5
- const AdvancedTableStickyColumns = (props) => {
6
- const columnDefinitions = [
7
- {
8
- accessor: "year",
9
- label: "Year",
10
- id: "year",
11
- cellAccessors: ["quarter", "month", "day"],
12
- },
13
- {
14
- accessor: "newEnrollments",
15
- label: "New Enrollments",
16
- id: "newEnrollments",
17
- },
18
- {
19
- accessor: "scheduledMeetings",
20
- label: "Scheduled Meetings",
21
- id: "scheduledMeetings",
22
- },
23
- {
24
- accessor: "attendanceRate",
25
- label: "Attendance Rate",
26
- id: "attendanceRate",
27
- },
28
- {
29
- accessor: "completedClasses",
30
- label: "Completed Classes",
31
- id: "completedClasses",
32
- },
33
- {
34
- accessor: "classCompletionRate",
35
- label: "Class Completion Rate",
36
- id: "classCompletionRate",
37
- },
38
- {
39
- accessor: "graduatedStudents",
40
- label: "Graduated Students",
41
- id: "graduatedStudents",
42
- },
43
- ]
44
-
45
- return (
46
- <div>
47
- <AdvancedTable
48
- columnDefinitions={columnDefinitions}
49
- responsive="none"
50
- stickyLeftColumn={["year"]}
51
- tableData={MOCK_DATA}
52
- {...props}
53
- />
54
- </div>
55
- )
56
- }
57
-
58
- export default AdvancedTableStickyColumns
@@ -1,6 +0,0 @@
1
- To render sticky columns for the Advanced Table, you can use the `stickyLeftColumn` prop. This prop expects an array of the column ids you want to be sticky.
2
-
3
- To achieve this:
4
- - Make sure to provide an id for each column via columnDefinitions as shown below. Id can be any string.
5
- - One or multiple columns can be made sticky, it is recommended to set the ids within `stickyLeftColumn` in the order in which the columns are rendered.
6
- - It is recommended to set `responsive` to none when using `stickyLeftColumn` since responsive just makes the first column sticky and the slightly different styling for `responsive` and `stickyLeftColumn` may override each other in unexpected ways.
@@ -1,64 +0,0 @@
1
- import React from "react"
2
- import AdvancedTable from '../../pb_advanced_table/_advanced_table'
3
- import MOCK_DATA from "./advanced_table_mock_data.json"
4
-
5
- const AdvancedTableStickyColumnsAndHeader = (props) => {
6
- const columnDefinitions = [
7
- {
8
- accessor: "year",
9
- label: "Year",
10
- id: "year",
11
- cellAccessors: ["quarter", "month", "day"],
12
- },
13
- {
14
- accessor: "newEnrollments",
15
- label: "New Enrollments",
16
- id: "newEnrollments",
17
- },
18
- {
19
- accessor: "scheduledMeetings",
20
- label: "Scheduled Meetings",
21
- id: "scheduledMeetings",
22
- },
23
- {
24
- accessor: "attendanceRate",
25
- label: "Attendance Rate",
26
- id: "attendanceRate",
27
- },
28
- {
29
- accessor: "completedClasses",
30
- label: "Completed Classes",
31
- id: "completedClasses",
32
- },
33
- {
34
- accessor: "classCompletionRate",
35
- label: "Class Completion Rate",
36
- id: "classCompletionRate",
37
- },
38
- {
39
- accessor: "graduatedStudents",
40
- label: "Graduated Students",
41
- id: "graduatedStudents",
42
- },
43
- ]
44
-
45
- const tableProps = {
46
- sticky: true
47
- }
48
-
49
- return (
50
- <div>
51
- <AdvancedTable
52
- columnDefinitions={columnDefinitions}
53
- maxHeight="xs"
54
- responsive="none"
55
- stickyLeftColumn={["year"]}
56
- tableData={MOCK_DATA}
57
- tableProps={tableProps}
58
- {...props}
59
- />
60
- </div>
61
- )
62
- }
63
-
64
- export default AdvancedTableStickyColumnsAndHeader
@@ -1,8 +0,0 @@
1
- To achieve a sticky header AND sticky columns together, in addition to the `stickyLeftColumn` logic outlined above, you can:
2
-
3
- - Set `sticky: true` via `tableProps`
4
- - Give the AdvancedTable a `maxHeight` using our [Max Height](https://playbook.powerapp.cloud/visual_guidelines/max_height) global prop.
5
-
6
- **NOTE**: This behavior requires a `maxHeight` to work. The header is sticky within the table container, allowing for it to work along with the column stickiness.
7
-
8
- Expand the table above to see this in action.
@@ -1,55 +0,0 @@
1
- import React from "react"
2
- import AdvancedTable from '../../pb_advanced_table/_advanced_table'
3
- import MOCK_DATA from "./advanced_table_mock_data.json"
4
-
5
- const AdvancedTableStickyHeader = (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 tableProps = {
39
- sticky: true
40
- }
41
-
42
- return (
43
- <div>
44
- <AdvancedTable
45
- columnDefinitions={columnDefinitions}
46
- responsive="none"
47
- tableData={MOCK_DATA}
48
- tableProps={tableProps}
49
- {...props}
50
- />
51
- </div>
52
- )
53
- }
54
-
55
- export default AdvancedTableStickyHeader
@@ -1,3 +0,0 @@
1
- The `TableProps` prop can also be used to render a sticky header for the Advanced Table.
2
-
3
- This doc example showcases how to set a sticky header for a nonresponsive table (see the `responsive` prop set to "none"). To achieve sticky header AND responsive functionality, see the "Sticky Header for Responsive Table" doc example below.
@@ -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: "sticky_header_table", table_data: @table_data, column_definitions: column_definitions, responsive: "none", table_props: { sticky: true }}) %>
@@ -1,3 +0,0 @@
1
- The `table_props` prop can also be used to render a sticky header for the Advanced Table.
2
-
3
- This doc example showcases how to set a sticky header for a nonresponsive table (see the `responsive` prop set to "none"). To achieve sticky header AND responsive functionality, see the "[Sticky Header for Responsive Table](https://playbook.powerapp.cloud/kits/advanced_table/react#sticky-header-for-responsive-table)" doc example below.
@@ -1,35 +0,0 @@
1
- import React from 'react'
2
- import Background from "../../pb_background/_background"
3
- import Flex from "../../pb_flex/_flex"
4
- import FlexItem from "../../pb_flex/_flex_item"
5
- import Title from "../../pb_title/_title"
6
-
7
- const BackgroundOverlay = (props) => {
8
- return (
9
- <Background
10
- alt="colorful background"
11
- backgroundColor="category_21"
12
- className="background lazyload"
13
- imageOverlay="opacity_2"
14
- imageUrl="https://unsplash.it/500/400/?image=633"
15
- {...props}
16
- >
17
- <Flex
18
- orientation="column"
19
- vertical="center"
20
- {...props}
21
- >
22
- <FlexItem>
23
- <Title
24
- dark
25
- padding="lg"
26
- size={1}
27
- text="Background Kit Image"
28
- />
29
- </FlexItem>
30
- </Flex>
31
- </Background>
32
- )
33
- }
34
-
35
- export default BackgroundOverlay
@@ -1 +0,0 @@
1
- An overlay can be added to the background image by setting the `imageOverlay` prop and adding a `backgroundColor`. The `imageOverlay` prop can be set to any opacity ranging from `opacity_1` to `opacity_10`.
@@ -1,38 +0,0 @@
1
- import React from 'react'
2
- import circleChartTheme from '../circleChartTheme'
3
- import Highcharts from "highcharts"
4
- import HighchartsReact from "highcharts-react-official"
5
-
6
- const data = [
7
- {
8
- name: 'Waiting for Calls',
9
- y: 41,
10
- },
11
- {
12
- name: 'On Call',
13
- y: 49,
14
- },
15
- {
16
- name: 'After Call',
17
- y: 10,
18
- },
19
- ]
20
-
21
- const baseOptions = {
22
- series: [{ data: data }],
23
- }
24
-
25
- const CircleChartPbStyles = () => {
26
- const options = Highcharts.merge({}, circleChartTheme, baseOptions )
27
-
28
- return (
29
- <div>
30
- <HighchartsReact
31
- highcharts={Highcharts}
32
- options={options}
33
- />
34
- </div>
35
- );
36
- };
37
-
38
- export default CircleChartPbStyles;
@@ -1 +0,0 @@
1
- You don't need to use the Circle Chart Kit to apply Playbook styles to your Highcharts circle chart. Just import circleChartTheme.ts and merge it with your chart options—Playbook’s styling will apply automatically.
@@ -1,54 +0,0 @@
1
- import React, { useEffect, useState } from 'react'
2
- import usePBCopy from '../../pb_copy_button/usePBCopy'
3
- import Body from '../../pb_body/_body'
4
- import Textarea from '../../pb_textarea/_textarea'
5
- import Tooltip from '../../pb_tooltip/_tooltip'
6
-
7
- const CopyButtonHook = ({...props}) => {
8
- // This is how you can use the copy button hook to copy text to the clipboard
9
- // eslint-disable-next-line no-unused-vars
10
- const [copied, copyToClipboard] = usePBCopy({ from: 'hookbody' })
11
- // I added a tooltip so it looks better in the ui
12
- const [showTooltip, setShowTooltip] = useState(false)
13
-
14
- const handleCopy = () => {
15
- copyToClipboard()
16
- setShowTooltip(true)
17
- setTimeout(() => setShowTooltip(false), 1500)
18
- }
19
-
20
- useEffect(() => {
21
- const el = document.getElementById('hookbody')
22
- if (!el) return
23
-
24
- el.addEventListener('click', handleCopy)
25
- return () => {
26
- el.removeEventListener('click', handleCopy)
27
- }
28
- }, [copyToClipboard])
29
-
30
- return (
31
- <div>
32
- <Tooltip
33
- delay={{ close: 1000 }}
34
- forceOpenTooltip={showTooltip}
35
- placement="top"
36
- showTooltip={false}
37
- text="Copied!"
38
- >
39
- <Body
40
- cursor="pointer"
41
- id="hookbody"
42
- text="I'm a custom copy hook! Click this body to copy this text!"
43
- />
44
- </Tooltip>
45
-
46
- <Textarea
47
- {...props}
48
- placeholder="Paste here"
49
- />
50
- </div>
51
- )
52
- }
53
-
54
- export default CopyButtonHook
@@ -1,3 +0,0 @@
1
- We provide a `usePBCopy` hook that you can import to your project. This hook will return a function that you can call to copy the text to the clipboard.
2
-
3
- `usePBCopy({ from: 'your_id' })` will grab the `innerText` from `your_id` element, or `value` if it is an input element.