playbook_ui_docs 14.11.1.pre.alpha.PBNTR798datepickerturbo5537 → 14.11.1.pre.alpha.PBNTR7495495

Sign up to get free protection for your applications and to get access to all the features.
Files changed (24) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_no_subrows.jsx +50 -0
  3. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pagination.jsx +1 -0
  4. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pagination_with_props.jsx +1 -0
  5. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows.jsx +60 -0
  6. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows.md +5 -0
  7. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_actions.jsx +78 -0
  8. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_actions.md +1 -0
  9. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_header.jsx +53 -0
  10. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_header.md +1 -0
  11. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_no_subrows.jsx +52 -0
  12. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_no_subrows.md +1 -0
  13. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort_control.md +2 -2
  14. data/app/pb_kits/playbook/pb_advanced_table/docs/advanced_table_mock_data_no_subrows.json +42 -0
  15. data/app/pb_kits/playbook/pb_advanced_table/docs/advanced_table_mock_data_with_id.json +299 -0
  16. data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +5 -0
  17. data/app/pb_kits/playbook/pb_advanced_table/docs/index.js +6 -1
  18. data/app/pb_kits/playbook/pb_date_picker/docs/example.yml +0 -1
  19. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_subtle_variant.md +1 -1
  20. data/app/pb_kits/playbook/pb_radio/docs/_radio_custom_children.jsx +3 -8
  21. data/dist/playbook-doc.js +1 -1
  22. metadata +12 -3
  23. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_turbo_frames.html.erb +0 -13
  24. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_turbo_frames_rails.md +0 -3
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.11.1.pre.alpha.PBNTR798datepickerturbo5537
4
+ version: 14.11.1.pre.alpha.PBNTR7495495
5
5
  platform: ruby
6
6
  authors:
7
7
  - Power UX
@@ -61,12 +61,21 @@ files:
61
61
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.md
62
62
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_loading.jsx
63
63
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_loading.md
64
+ - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_no_subrows.jsx
64
65
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pagination.jsx
65
66
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pagination.md
66
67
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pagination_with_props.jsx
67
68
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pagination_with_props.md
68
69
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_responsive.jsx
69
70
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_responsive.md
71
+ - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows.jsx
72
+ - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows.md
73
+ - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_actions.jsx
74
+ - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_actions.md
75
+ - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_header.jsx
76
+ - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_header.md
77
+ - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_no_subrows.jsx
78
+ - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_no_subrows.md
70
79
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort.jsx
71
80
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort.md
72
81
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort_control.jsx
@@ -81,6 +90,8 @@ files:
81
90
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_react.md
82
91
  - app/pb_kits/playbook/pb_advanced_table/docs/_mock_data_inline_loading.js
83
92
  - app/pb_kits/playbook/pb_advanced_table/docs/advanced_table_mock_data.json
93
+ - app/pb_kits/playbook/pb_advanced_table/docs/advanced_table_mock_data_no_subrows.json
94
+ - app/pb_kits/playbook/pb_advanced_table/docs/advanced_table_mock_data_with_id.json
84
95
  - app/pb_kits/playbook/pb_advanced_table/docs/advanced_table_pagination_mock_data.json
85
96
  - app/pb_kits/playbook/pb_advanced_table/docs/example.yml
86
97
  - app/pb_kits/playbook/pb_advanced_table/docs/index.js
@@ -542,8 +553,6 @@ files:
542
553
  - app/pb_kits/playbook/pb_date_picker/docs/_date_picker_time.html.erb
543
554
  - app/pb_kits/playbook/pb_date_picker/docs/_date_picker_time.jsx
544
555
  - app/pb_kits/playbook/pb_date_picker/docs/_date_picker_time.md
545
- - app/pb_kits/playbook/pb_date_picker/docs/_date_picker_turbo_frames.html.erb
546
- - app/pb_kits/playbook/pb_date_picker/docs/_date_picker_turbo_frames_rails.md
547
556
  - app/pb_kits/playbook/pb_date_picker/docs/_date_picker_week.html.erb
548
557
  - app/pb_kits/playbook/pb_date_picker/docs/_date_picker_week.jsx
549
558
  - app/pb_kits/playbook/pb_date_picker/docs/_date_picker_week.md
@@ -1,13 +0,0 @@
1
- <%= pb_rails("date_picker", props: { picker_id: "date-picker-turbo-frames", custom_event_type: "datePickerLoader" }) %>
2
- <%= pb_rails("button", props: { id: "date-picker-loader", text: "Click Event Simulation" }) %>
3
-
4
- <script>
5
- document.getElementById("date-picker-loader").addEventListener("click", () => {
6
- window.document.dispatchEvent(
7
- new CustomEvent("datePickerLoader", {
8
- bubbles: true,
9
- })
10
- )
11
- console.log("Event 'datePickerLoader' dispatched - in a real implementation, this event would trigger the date picker's reinitialization through the custom_event_type prop connection")
12
- })
13
- </script>
@@ -1,3 +0,0 @@
1
- The `custom_event_type` prop allows you to specify a custom event that will trigger the date picker's initialization, in addition to the default initialization on `DOMContentLoaded`. This is particularly useful in dynamic contexts like Turbo Frame updates where you need to reinitialize the date picker after new content loads. For Turbo integration, use `custom_event_type: "turbo:before-render"` to ensure the date picker properly reinitializes after Turbo navigation events.
2
-
3
- In this example, we demonstrate the setup pattern by connecting a button to dispatch a "datePickerLoader" event - while the date picker's event listener is properly configured through the `custom_event_type` prop, this demo only logs the event dispatch to the console to illustrate the connection structure.