playbook_ui 14.17.0.pre.alpha.playcdntest7233 → 14.17.0.pre.rc.0

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 (115) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_advanced_table/Utilities/types.ts +1 -1
  3. data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.scss +0 -70
  4. data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.tsx +2 -83
  5. data/app/pb_kits/playbook/pb_advanced_table/advanced_table.test.jsx +7 -20
  6. data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +1 -2
  7. data/app/pb_kits/playbook/pb_advanced_table/docs/index.js +1 -2
  8. data/app/pb_kits/playbook/pb_background/_background.scss +0 -26
  9. data/app/pb_kits/playbook/pb_background/_background.tsx +3 -5
  10. data/app/pb_kits/playbook/pb_background/background.test.js +0 -5
  11. data/app/pb_kits/playbook/pb_background/docs/example.yml +0 -1
  12. data/app/pb_kits/playbook/pb_background/docs/index.js +0 -1
  13. data/app/pb_kits/playbook/pb_collapsible/__snapshots__/collapsible.test.js.snap +7 -14
  14. data/app/pb_kits/playbook/pb_contact/contact.test.js +7 -7
  15. data/app/pb_kits/playbook/pb_date_picker/_date_picker.tsx +34 -34
  16. data/app/pb_kits/playbook/pb_date_picker/date_picker.html.erb +2 -2
  17. data/app/pb_kits/playbook/pb_date_picker/date_picker_helper.ts +0 -16
  18. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_inline.html.erb +11 -0
  19. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_inline.jsx +7 -0
  20. data/app/pb_kits/playbook/pb_date_picker/sass_partials/_inline_styles.scss +24 -28
  21. data/app/pb_kits/playbook/pb_date_range_inline/date_range_inline.test.js +2 -2
  22. data/app/pb_kits/playbook/pb_date_range_stacked/date_range_stacked.test.js +1 -1
  23. data/app/pb_kits/playbook/pb_draggable/_draggable.scss +20 -43
  24. data/app/pb_kits/playbook/pb_draggable/context/index.tsx +17 -58
  25. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones.jsx +105 -102
  26. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones.md +3 -3
  27. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_colors.jsx +48 -50
  28. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_colors.md +1 -1
  29. data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_with_table.jsx → _draggable_with_table_react.jsx} +1 -1
  30. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_table_react.md +1 -3
  31. data/app/pb_kits/playbook/pb_draggable/docs/example.yml +6 -9
  32. data/app/pb_kits/playbook/pb_draggable/docs/index.js +1 -4
  33. data/app/pb_kits/playbook/pb_draggable/draggable.test.jsx +3 -71
  34. data/app/pb_kits/playbook/pb_draggable/subcomponents/DraggableContainer.tsx +3 -4
  35. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_autocomplete.jsx +6 -6
  36. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_autocomplete_and_custom_display.jsx +6 -6
  37. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_display.jsx +6 -6
  38. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_display_rails.html.erb +8 -8
  39. data/app/pb_kits/playbook/pb_dropdown/dropdown.test.jsx +3 -3
  40. data/app/pb_kits/playbook/pb_filter/Filter/CurrentFilters.tsx +4 -3
  41. data/app/pb_kits/playbook/pb_filter/Filter/SortMenu.tsx +3 -2
  42. data/app/pb_kits/playbook/pb_form/pb_form_validation.js +1 -1
  43. data/app/pb_kits/playbook/pb_form_group/_form_group.scss +0 -22
  44. data/app/pb_kits/playbook/pb_icon/icon.test.js +9 -9
  45. data/app/pb_kits/playbook/pb_icon_circle/icon_circle.test.js +1 -1
  46. data/app/pb_kits/playbook/pb_icon_stat_value/icon_stat_value.test.js +1 -1
  47. data/app/pb_kits/playbook/pb_icon_value/icon_value.test.js +1 -1
  48. data/app/pb_kits/playbook/pb_label_value/label_value.test.js +1 -1
  49. data/app/pb_kits/playbook/pb_layout/_layout.scss +0 -58
  50. data/app/pb_kits/playbook/pb_layout/_layout.tsx +7 -20
  51. data/app/pb_kits/playbook/pb_layout/docs/example.yml +0 -1
  52. data/app/pb_kits/playbook/pb_layout/docs/index.js +0 -1
  53. data/app/pb_kits/playbook/pb_layout/layout.test.js +0 -4
  54. data/app/pb_kits/playbook/pb_lightbox/hooks/useVisibility.js +1 -1
  55. data/app/pb_kits/playbook/pb_link/link.test.jsx +2 -2
  56. data/app/pb_kits/playbook/pb_multi_level_select/_multi_level_select.tsx +1 -2
  57. data/app/pb_kits/playbook/pb_nav/_nav_item.test.js +3 -5
  58. data/app/pb_kits/playbook/pb_stat_change/stat_change.test.js +4 -8
  59. data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating_react.md +1 -1
  60. data/app/pb_kits/playbook/pb_table/docs/example.yml +0 -2
  61. data/app/pb_kits/playbook/pb_table/styles/_headers.scss +7 -19
  62. data/app/pb_kits/playbook/pb_table/styles/_striped.scss +3 -3
  63. data/app/pb_kits/playbook/pb_table/table.rb +1 -13
  64. data/app/pb_kits/playbook/pb_table/table_header.rb +1 -13
  65. data/app/pb_kits/playbook/pb_tooltip/floating_ui.js +282 -0
  66. data/app/pb_kits/playbook/pb_tooltip/index.js +56 -183
  67. data/app/pb_kits/playbook/pb_tooltip/tooltip.html.erb +5 -2
  68. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_highlight.jsx +4 -4
  69. data/app/pb_kits/playbook/pb_typeahead/index.ts +2 -2
  70. data/app/pb_kits/playbook/pb_typeahead/typeahead.html.erb +5 -2
  71. data/app/pb_kits/playbook/pb_user/user.html.erb +6 -1
  72. data/app/pb_kits/playbook/pb_user_badge/user_badge.html.erb +6 -1
  73. data/app/pb_kits/playbook/utilities/globalProps.ts +1 -1
  74. data/app/pb_kits/playbook/utilities/object.test.js +1 -149
  75. data/app/pb_kits/playbook/utilities/object.ts +42 -124
  76. data/dist/chunks/{_typeahead-C2GOKWtm.js → _typeahead-N-EFroAX.js} +3 -3
  77. data/dist/chunks/_weekday_stacked-Db780bKR.js +45 -0
  78. data/dist/chunks/lib-Co5y3V4K.js +29 -0
  79. data/dist/chunks/{pb_form_validation-BvNy9Bd6.js → pb_form_validation-DMajaRt3.js} +1 -1
  80. data/dist/chunks/vendor.js +1 -1
  81. data/dist/playbook-doc.js +1 -1
  82. data/dist/playbook-rails-react-bindings.js +1 -1
  83. data/dist/playbook-rails.js +1 -1
  84. data/dist/playbook.css +1 -1
  85. data/lib/playbook/kit_base.rb +4 -4
  86. data/lib/playbook/version.rb +2 -2
  87. metadata +19 -33
  88. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_fullscreen.jsx +0 -90
  89. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_fullscreen.md +0 -3
  90. data/app/pb_kits/playbook/pb_background/docs/_background_overlay.jsx +0 -35
  91. data/app/pb_kits/playbook/pb_background/docs/_background_overlay.md +0 -1
  92. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_line.jsx +0 -110
  93. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_line.md +0 -5
  94. data/app/pb_kits/playbook/pb_layout/docs/_layout_bracket.jsx +0 -190
  95. data/app/pb_kits/playbook/pb_layout/docs/_layout_bracket.md +0 -5
  96. data/app/pb_kits/playbook/pb_layout/subcomponents/_game.tsx +0 -90
  97. data/app/pb_kits/playbook/pb_layout/subcomponents/_round.tsx +0 -57
  98. data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_vertical.md +0 -1
  99. data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless.html.erb +0 -34
  100. data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless_rails.md +0 -1
  101. data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating.html.erb +0 -36
  102. data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating_rails.md +0 -1
  103. data/dist/chunks/_weekday_stacked-CFGTPT0O.js +0 -45
  104. data/dist/chunks/lib-BGzBzFZX.js +0 -29
  105. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_default_react.md → _draggable_default.md} +0 -0
  106. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_default.html.erb → _draggable_default_rails.html.erb} +0 -0
  107. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_multiple_containers_react.md → _draggable_multiple_containers.md} +0 -0
  108. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_multiple_containers.html.erb → _draggable_multiple_containers_rails.html.erb} +0 -0
  109. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_with_cards_react.md → _draggable_with_cards.md} +0 -0
  110. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_with_cards.html.erb → _draggable_with_cards_rails.html.erb} +0 -0
  111. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_with_list_react.md → _draggable_with_list.md} +0 -0
  112. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_with_list.html.erb → _draggable_with_list_rails.html.erb} +0 -0
  113. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_with_selectable_list_react.md → _draggable_with_selectable_list.md} +0 -0
  114. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_with_selectable_list.html.erb → _draggable_with_selectable_list_rails.html.erb} +0 -0
  115. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_with_table_rails.md → _draggable_with_table.md} +0 -0
@@ -91,11 +91,11 @@ module Playbook
91
91
  # rubocop:disable Layout/CommentIndentation
92
92
  # pb_content_tag information (potentially to be abstracted into its own dev doc in the future)
93
93
  # The pb_content_tag generates HTML content tags for rails kits with flexible options.
94
- # Modify a generated kit.html.erb file accordingly (the kit_base_default_options listed below no longer need to be explictly outlined in that file, only modifications).
94
+ # Modify a generated kit.html.erb file accordingly (the default_options listed below no longer need to be explictly outlined in that file, only modifications).
95
95
  # name - the first argument is for HTML tag. The default is :div.
96
96
  # content_or_options_with_block - additional content or options for the tag (i.e., the customizations a dev adds to kit.html.erb).
97
97
  # options - Within combined_options, the empty options hash allows for customizations to
98
- # merge with the kit_base_default_options and combined_html_options.
98
+ # merge with the default_options and combined_html_options.
99
99
  # escape - set to true, this allows for HTML-escape.
100
100
  # block - an optional block for content inside the tag.
101
101
  # The return is a HTML tag that includes any provided customizations. If nothing is specified in kit.html.erb, the default shape is:
@@ -111,7 +111,7 @@ module Playbook
111
111
  def pb_content_tag(name = :div, content_or_options_with_block = {}, options = {}, escape = true, &block)
112
112
  combined_options = options
113
113
  .merge(combined_html_options)
114
- .merge(kit_base_default_options.merge(content_or_options_with_block))
114
+ .merge(default_options.merge(content_or_options_with_block))
115
115
  content_tag(name, combined_options, options, escape, &block)
116
116
  end
117
117
  # rubocop:enable Style/OptionalBooleanParameter
@@ -146,7 +146,7 @@ module Playbook
146
146
 
147
147
  private
148
148
 
149
- def kit_base_default_options
149
+ def default_options
150
150
  options = {
151
151
  id: id,
152
152
  data: data,
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Playbook
4
- PREVIOUS_VERSION = "14.17.0"
5
- VERSION = "14.17.0.pre.alpha.playcdntest7233"
4
+ PREVIOUS_VERSION = "14.16.0"
5
+ VERSION = "14.17.0.pre.rc.0"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: playbook_ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 14.17.0.pre.alpha.playcdntest7233
4
+ version: 14.17.0.pre.rc.0
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-16 00:00:00.000000000 Z
12
+ date: 2025-03-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack
@@ -309,8 +309,6 @@ files:
309
309
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_default.md
310
310
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_expanded_control.jsx
311
311
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_expanded_control.md
312
- - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_fullscreen.jsx
313
- - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_fullscreen.md
314
312
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_infinite_scroll.jsx
315
313
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_editing.jsx
316
314
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_editing.md
@@ -421,8 +419,6 @@ files:
421
419
  - app/pb_kits/playbook/pb_background/docs/_background_image.md
422
420
  - app/pb_kits/playbook/pb_background/docs/_background_light.html.erb
423
421
  - app/pb_kits/playbook/pb_background/docs/_background_light.jsx
424
- - app/pb_kits/playbook/pb_background/docs/_background_overlay.jsx
425
- - app/pb_kits/playbook/pb_background/docs/_background_overlay.md
426
422
  - app/pb_kits/playbook/pb_background/docs/_background_size.html.erb
427
423
  - app/pb_kits/playbook/pb_background/docs/_background_size.jsx
428
424
  - app/pb_kits/playbook/pb_background/docs/_background_size.md
@@ -1186,35 +1182,33 @@ files:
1186
1182
  - app/pb_kits/playbook/pb_draggable/_draggable.tsx
1187
1183
  - app/pb_kits/playbook/pb_draggable/context/index.tsx
1188
1184
  - app/pb_kits/playbook/pb_draggable/context/types.ts
1189
- - app/pb_kits/playbook/pb_draggable/docs/_draggable_default.html.erb
1190
1185
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_default.jsx
1186
+ - app/pb_kits/playbook/pb_draggable/docs/_draggable_default.md
1187
+ - app/pb_kits/playbook/pb_draggable/docs/_draggable_default_rails.html.erb
1191
1188
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_default_rails.md
1192
- - app/pb_kits/playbook/pb_draggable/docs/_draggable_default_react.md
1193
1189
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones.jsx
1194
1190
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones.md
1195
1191
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_colors.jsx
1196
1192
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_colors.md
1197
- - app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_line.jsx
1198
- - app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_line.md
1199
- - app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers.html.erb
1200
1193
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers.jsx
1194
+ - app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers.md
1195
+ - app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers_rails.html.erb
1201
1196
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers_rails.md
1202
- - app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers_react.md
1203
- - app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards.html.erb
1204
1197
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards.jsx
1198
+ - app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards.md
1199
+ - app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards_rails.html.erb
1205
1200
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards_rails.md
1206
- - app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards_react.md
1207
- - app/pb_kits/playbook/pb_draggable/docs/_draggable_with_list.html.erb
1208
1201
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_with_list.jsx
1202
+ - app/pb_kits/playbook/pb_draggable/docs/_draggable_with_list.md
1203
+ - app/pb_kits/playbook/pb_draggable/docs/_draggable_with_list_rails.html.erb
1209
1204
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_with_list_rails.md
1210
- - app/pb_kits/playbook/pb_draggable/docs/_draggable_with_list_react.md
1211
- - app/pb_kits/playbook/pb_draggable/docs/_draggable_with_selectable_list.html.erb
1212
1205
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_with_selectable_list.jsx
1206
+ - app/pb_kits/playbook/pb_draggable/docs/_draggable_with_selectable_list.md
1207
+ - app/pb_kits/playbook/pb_draggable/docs/_draggable_with_selectable_list_rails.html.erb
1213
1208
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_with_selectable_list_rails.md
1214
- - app/pb_kits/playbook/pb_draggable/docs/_draggable_with_selectable_list_react.md
1215
1209
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_with_table.html.erb
1216
- - app/pb_kits/playbook/pb_draggable/docs/_draggable_with_table.jsx
1217
- - app/pb_kits/playbook/pb_draggable/docs/_draggable_with_table_rails.md
1210
+ - app/pb_kits/playbook/pb_draggable/docs/_draggable_with_table.md
1211
+ - app/pb_kits/playbook/pb_draggable/docs/_draggable_with_table_react.jsx
1218
1212
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_with_table_react.md
1219
1213
  - app/pb_kits/playbook/pb_draggable/docs/example.yml
1220
1214
  - app/pb_kits/playbook/pb_draggable/docs/index.js
@@ -1801,8 +1795,6 @@ files:
1801
1795
  - app/pb_kits/playbook/pb_layout/body.html.erb
1802
1796
  - app/pb_kits/playbook/pb_layout/body.rb
1803
1797
  - app/pb_kits/playbook/pb_layout/docs/_description.md
1804
- - app/pb_kits/playbook/pb_layout/docs/_layout_bracket.jsx
1805
- - app/pb_kits/playbook/pb_layout/docs/_layout_bracket.md
1806
1798
  - app/pb_kits/playbook/pb_layout/docs/_layout_collection.html.erb
1807
1799
  - app/pb_kits/playbook/pb_layout/docs/_layout_collection.jsx
1808
1800
  - app/pb_kits/playbook/pb_layout/docs/_layout_collection.md
@@ -1836,8 +1828,6 @@ files:
1836
1828
  - app/pb_kits/playbook/pb_layout/layout.test.js
1837
1829
  - app/pb_kits/playbook/pb_layout/sidebar.html.erb
1838
1830
  - app/pb_kits/playbook/pb_layout/sidebar.rb
1839
- - app/pb_kits/playbook/pb_layout/subcomponents/_game.tsx
1840
- - app/pb_kits/playbook/pb_layout/subcomponents/_round.tsx
1841
1831
  - app/pb_kits/playbook/pb_legend/_legend.scss
1842
1832
  - app/pb_kits/playbook/pb_legend/_legend.tsx
1843
1833
  - app/pb_kits/playbook/pb_legend/docs/_description.md
@@ -2535,7 +2525,6 @@ files:
2535
2525
  - app/pb_kits/playbook/pb_section_separator/docs/_section_separator_text_swift.md
2536
2526
  - app/pb_kits/playbook/pb_section_separator/docs/_section_separator_vertical.html.erb
2537
2527
  - app/pb_kits/playbook/pb_section_separator/docs/_section_separator_vertical.jsx
2538
- - app/pb_kits/playbook/pb_section_separator/docs/_section_separator_vertical.md
2539
2528
  - app/pb_kits/playbook/pb_section_separator/docs/_section_separator_vertical_swift.md
2540
2529
  - app/pb_kits/playbook/pb_section_separator/docs/example.yml
2541
2530
  - app/pb_kits/playbook/pb_section_separator/docs/index.js
@@ -2871,13 +2860,9 @@ files:
2871
2860
  - app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_table.md
2872
2861
  - app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_table_rails.html.erb
2873
2862
  - app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_table_rails.md
2874
- - app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless.html.erb
2875
2863
  - app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless.jsx
2876
- - app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless_rails.md
2877
2864
  - app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless_react.md
2878
- - app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating.html.erb
2879
2865
  - app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating.jsx
2880
- - app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating_rails.md
2881
2866
  - app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating_react.md
2882
2867
  - app/pb_kits/playbook/pb_table/docs/_table_with_selectable_rows.html.erb
2883
2868
  - app/pb_kits/playbook/pb_table/docs/_table_with_selectable_rows.jsx
@@ -3210,6 +3195,7 @@ files:
3210
3195
  - app/pb_kits/playbook/pb_tooltip/docs/_tooltip_with_icon_circle.html.erb
3211
3196
  - app/pb_kits/playbook/pb_tooltip/docs/example.yml
3212
3197
  - app/pb_kits/playbook/pb_tooltip/docs/index.js
3198
+ - app/pb_kits/playbook/pb_tooltip/floating_ui.js
3213
3199
  - app/pb_kits/playbook/pb_tooltip/index.js
3214
3200
  - app/pb_kits/playbook/pb_tooltip/tooltip.html.erb
3215
3201
  - app/pb_kits/playbook/pb_tooltip/tooltip.rb
@@ -3475,11 +3461,11 @@ files:
3475
3461
  - app/pb_kits/playbook/utilities/test/globalProps/truncate.test.js
3476
3462
  - app/pb_kits/playbook/utilities/text.ts
3477
3463
  - app/pb_kits/playbook/utilities/validEmojiChecker.ts
3478
- - dist/chunks/_typeahead-C2GOKWtm.js
3479
- - dist/chunks/_weekday_stacked-CFGTPT0O.js
3464
+ - dist/chunks/_typeahead-N-EFroAX.js
3465
+ - dist/chunks/_weekday_stacked-Db780bKR.js
3480
3466
  - dist/chunks/lazysizes-B7xYodB-.js
3481
- - dist/chunks/lib-BGzBzFZX.js
3482
- - dist/chunks/pb_form_validation-BvNy9Bd6.js
3467
+ - dist/chunks/lib-Co5y3V4K.js
3468
+ - dist/chunks/pb_form_validation-DMajaRt3.js
3483
3469
  - dist/chunks/vendor.js
3484
3470
  - dist/menu.yml
3485
3471
  - dist/playbook-doc.js
@@ -1,90 +0,0 @@
1
- import React, { useState } from "react"
2
- import { AdvancedTable, Button, Flex } from "playbook-ui"
3
- import MOCK_DATA from "./advanced_table_mock_data.json"
4
- import PAGINATION_MOCK_DATA from "./advanced_table_pagination_mock_data.json"
5
-
6
- const AdvancedTableFullscreen = (props) => {
7
- const [fullscreenToggleSmall, setFullscreenToggleSmall] = useState(null)
8
- const [fullscreenToggleLarge, setFullscreenToggleLarge] = useState(null)
9
-
10
- const columnDefinitions = [
11
- {
12
- accessor: "year",
13
- label: "Year",
14
- cellAccessors: ["quarter", "month", "day"],
15
- },
16
- {
17
- accessor: "newEnrollments",
18
- label: "New Enrollments",
19
- },
20
- {
21
- accessor: "scheduledMeetings",
22
- label: "Scheduled Meetings",
23
- },
24
- {
25
- accessor: "attendanceRate",
26
- label: "Attendance Rate",
27
- },
28
- {
29
- accessor: "completedClasses",
30
- label: "Completed Classes",
31
- },
32
- {
33
- accessor: "classCompletionRate",
34
- label: "Class Completion Rate",
35
- },
36
- {
37
- accessor: "graduatedStudents",
38
- label: "Graduated Students",
39
- },
40
- ]
41
-
42
- const tableProps = {
43
- sticky: true
44
- }
45
-
46
- return (
47
- <div>
48
- <Flex justify="end">
49
- <Button
50
- marginBottom="sm"
51
- onClick={() => fullscreenToggleSmall?.()}
52
- text="Fullscreen Small Table"
53
- variant="secondary"
54
- />
55
- </Flex>
56
- <AdvancedTable
57
- allowFullScreen
58
- columnDefinitions={columnDefinitions}
59
- fullScreenControl={({ toggleFullscreen }) => setFullscreenToggleSmall(() => toggleFullscreen)}
60
- tableData={MOCK_DATA}
61
- {...props}
62
- >
63
- <AdvancedTable.Header enableSorting />
64
- <AdvancedTable.Body />
65
- </AdvancedTable>
66
- <Flex justify="end">
67
- <Button
68
- marginY="sm"
69
- onClick={() => fullscreenToggleLarge?.()}
70
- text="Fullscreen Large Table"
71
- variant="secondary"
72
- />
73
- </Flex>
74
- <AdvancedTable
75
- allowFullScreen
76
- columnDefinitions={columnDefinitions}
77
- fullScreenControl={({ toggleFullscreen }) => setFullscreenToggleLarge(() => toggleFullscreen)}
78
- responsive="none"
79
- tableData={PAGINATION_MOCK_DATA}
80
- tableProps={tableProps}
81
- {...props}
82
- >
83
- <AdvancedTable.Header enableSorting />
84
- <AdvancedTable.Body />
85
- </AdvancedTable>
86
- </div>
87
- )
88
- }
89
-
90
- export default AdvancedTableFullscreen
@@ -1,3 +0,0 @@
1
- Trigger Fullscreen mode with the `allowFullScreen`and `fullScreenControl` props. `allowFullScreen` is a boolean that enables Fullscreen functionality for an Advanced Table. `fullScreenControl` is a callback function that receives an object containing the table's internal `toggleFullscreen` function, allowing you to store and trigger Fullscreen from the parent component. An external trigger (like a button) must be used to activate Fullscreen mode.
2
-
3
- Exit Fullscreen mode by clicking the minimize top-right-corner icon or by pressing the "Escape" keyboard key.
@@ -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,110 +0,0 @@
1
- import React, { useState } from "react";
2
- import Flex from '../../pb_flex/_flex'
3
- import Caption from '../../pb_caption/_caption'
4
- import Draggable from '../_draggable'
5
- import { DraggableProvider } from '../context'
6
- import Image from '../../pb_image/_image'
7
-
8
-
9
-
10
- const dataLineVertical = [
11
- {
12
- id: "211",
13
- url: "https://unsplash.it/500/400/?image=633",
14
- },
15
- {
16
- id: "212",
17
- url: "https://unsplash.it/500/400/?image=634",
18
- },
19
- {
20
- id: "213",
21
- url: "https://unsplash.it/500/400/?image=637",
22
- },
23
- ];
24
-
25
- const dataLineHorizontal = [
26
- {
27
- id: "2111",
28
- url: "https://unsplash.it/500/400/?image=633",
29
- },
30
- {
31
- id: "2122",
32
- url: "https://unsplash.it/500/400/?image=634",
33
- },
34
- {
35
- id: "2133",
36
- url: "https://unsplash.it/500/400/?image=637",
37
- },
38
- ];
39
-
40
- const DraggableDropZones = (props) => {
41
- const [initialLineVerticalState, setInitialLineVerticalState] = useState(dataLineVertical);
42
- const [initialLineHorizontalState, setInitialLineHorizontalState] = useState(dataLineHorizontal);
43
-
44
- return (
45
- <>
46
- <Caption marginBottom="xs"
47
- marginTop="xl"
48
- text="Vertical"
49
- />
50
- <DraggableProvider
51
- dropZone={{ type: "line", color: "purple" }}
52
- initialItems={dataLineVertical}
53
- onReorder={(items) => setInitialLineVerticalState(items)}
54
- >
55
- <Draggable.Container {...props}>
56
- <Flex flexDirection="column"
57
- height="367px"
58
- >
59
- {initialLineVerticalState.map(({ id, url }) => (
60
- <Draggable.Item dragId={id}
61
- key={id}
62
- marginBottom="sm"
63
- >
64
- <Image alt={id}
65
- size="md"
66
- url={url}
67
- />
68
- </Draggable.Item>
69
- ))}
70
- </Flex>
71
- </Draggable.Container>
72
- </DraggableProvider>
73
- <Caption marginBottom="xs"
74
- marginTop="xl"
75
- text="Horizontal"
76
- />
77
- <Flex>
78
- <DraggableProvider
79
- dropZone={{ type: "line", direction: "horizontal" }}
80
- initialItems={dataLineHorizontal}
81
- onReorder={(items) => setInitialLineHorizontalState(items)}
82
- >
83
- <Draggable.Container
84
- htmlOptions={{style:{ width: "285px"}}}
85
- {...props}
86
- >
87
- <Flex alignItems="stretch"
88
- flexDirection="row"
89
- height="110px"
90
- >
91
- {initialLineHorizontalState.map(({ id, url }) => (
92
- <Draggable.Item dragId={id}
93
- key={id}
94
- marginRight="sm"
95
- >
96
- <Image alt={id}
97
- size="md"
98
- url={url}
99
- />
100
- </Draggable.Item>
101
- ))}
102
- </Flex>
103
- </Draggable.Container>
104
- </DraggableProvider>
105
- </Flex>
106
- </>
107
- );
108
- };
109
-
110
- export default DraggableDropZones;
@@ -1,5 +0,0 @@
1
- When using the "line" style, make sure to set the appropriate `direction` attribute within the `dropZone` prop based on the orientation of your draggable view. By default, this is set to "vertical," but it can also be adjusted to "horizontal." Note that the direction attribute only applies to the "line" style and does not affect other drop zone styles. The default `color` for "line" is "primary" and "purple" is the only alternative color option.
2
-
3
- The length of the line is calculated based off of the width (for "vertical") or height (for "horizontal") of the parent container holding the draggable items.
4
-
5
- Additionally, if the parent container of the `DraggableProvider`/`DraggableContainer` (or a subcontainer within) does not have a set height (for "vertical") or width (for "horizontal"), like the [Draggable Drop Zones doc example](https://playbook.powerapp.cloud/kits/draggable/react#draggable-drop-zones) does, elements on the page may jump up (for "vertical") or to the left (for "horizontal") when an item is actively being dragged. To prevent this, give a parent element a fixed height (for "vertical") or width (for "horizontal") as demonstrated in this doc example.
@@ -1,190 +0,0 @@
1
- import React from 'react'
2
-
3
- import Layout from '../../pb_layout/_layout'
4
- import Flex from '../../pb_flex/_flex'
5
- import Body from '../../pb_body/_body'
6
- import Caption from '../../pb_caption/_caption'
7
- import SectionSeparator from '../../pb_section_separator/_section_separator'
8
-
9
- const LayoutBracket = () => {
10
- return (
11
- <div>
12
- <Layout
13
- layout="bracket"
14
- >
15
- <Layout.RoundLabel>
16
- <Caption>Wild Card</Caption>
17
- <SectionSeparator marginY="sm"/>
18
- </Layout.RoundLabel>
19
- <Layout.Round marginBottom={{ xs: "md", sm: "md" }}>
20
- <Layout.Game>
21
- <Flex justify="between">
22
- <Body>Packers</Body>
23
- <Body>10</Body>
24
- </Flex>
25
- <Flex justify="between">
26
- <Body><strong>Eagles</strong></Body>
27
- <Body>22</Body>
28
- </Flex>
29
- </Layout.Game>
30
- <Layout.Game>
31
- <Flex justify="between">
32
- <Body>Vikings</Body>
33
- <Body>9</Body>
34
- </Flex>
35
- <Flex justify="between">
36
- <Body><strong>Rams</strong></Body>
37
- <Body>27</Body>
38
- </Flex>
39
- </Layout.Game>
40
- <Layout.Game>
41
- <Flex justify="between">
42
- <Body><strong>Lions</strong></Body>
43
- </Flex>
44
- <Flex justify="between">
45
- <Body>BYE</Body>
46
- </Flex>
47
- </Layout.Game>
48
- <Layout.Game>
49
- <Flex justify="between">
50
- <Body><strong>Commanders</strong></Body>
51
- <Body>23</Body>
52
- </Flex>
53
- <Flex justify="between">
54
- <Body>Buccaneers</Body>
55
- <Body>20</Body>
56
- </Flex>
57
- </Layout.Game>
58
- <Layout.Game>
59
- <Flex justify="between">
60
- <Body><strong>Chiefs</strong></Body>
61
- </Flex>
62
- <Flex justify="between">
63
- <Body>BYE</Body>
64
- </Flex>
65
- </Layout.Game>
66
- <Layout.Game>
67
- <Flex justify="between">
68
- <Body>Chargers</Body>
69
- <Body>12</Body>
70
- </Flex>
71
- <Flex justify="between">
72
- <Body><strong>Texans</strong></Body>
73
- <Body>32</Body>
74
- </Flex>
75
- </Layout.Game>
76
- <Layout.Game>
77
- <Flex justify="between">
78
- <Body>Broncos</Body>
79
- <Body>7</Body>
80
- </Flex>
81
- <Flex justify="between">
82
- <Body><strong>Bills</strong></Body>
83
- <Body>31</Body>
84
- </Flex>
85
- </Layout.Game>
86
- <Layout.Game>
87
- <Flex justify="between">
88
- <Body>Steelers</Body>
89
- <Body>14</Body>
90
- </Flex>
91
- <Flex justify="between">
92
- <Body><strong>Ravens</strong></Body>
93
- <Body>28</Body>
94
- </Flex>
95
- </Layout.Game>
96
- </Layout.Round>
97
- <Layout.RoundLabel>
98
- <Caption>Divisional</Caption>
99
- <SectionSeparator marginY="sm"/>
100
- </Layout.RoundLabel>
101
- <Layout.Round marginBottom={{ xs: "md", sm: "md" }}>
102
- <Layout.Game>
103
- <Flex justify="between">
104
- <Body>Rams</Body>
105
- <Body>22</Body>
106
- </Flex>
107
- <Flex justify="between">
108
- <Body><strong>Eagles</strong></Body>
109
- <Body>28</Body>
110
- </Flex>
111
- </Layout.Game>
112
- <Layout.Game>
113
- <Flex justify="between">
114
- <Body><strong>Commanders</strong></Body>
115
- <Body>45</Body>
116
- </Flex>
117
- <Flex justify="between">
118
- <Body>Lions</Body>
119
- <Body>31</Body>
120
- </Flex>
121
- </Layout.Game>
122
- <Layout.Game>
123
- <Flex justify="between">
124
- <Body>Texans</Body>
125
- <Body>14</Body>
126
- </Flex>
127
- <Flex justify="between">
128
- <Body><strong>Chiefs</strong></Body>
129
- <Body>23</Body>
130
- </Flex>
131
- </Layout.Game>
132
- <Layout.Game>
133
- <Flex justify="between">
134
- <Body>Ravens</Body>
135
- <Body>25</Body>
136
- </Flex>
137
- <Flex justify="between">
138
- <Body><strong>Bills</strong></Body>
139
- <Body>27</Body>
140
- </Flex>
141
- </Layout.Game>
142
- </Layout.Round>
143
- <Layout.RoundLabel>
144
- <Caption>Conference</Caption>
145
- <SectionSeparator marginY="sm"/>
146
- </Layout.RoundLabel>
147
- <Layout.Round marginBottom={{ xs: "md", sm: "md" }}>
148
- <Layout.Game>
149
- <Flex justify="between">
150
- <Body>Commanders</Body>
151
- <Body>23</Body>
152
- </Flex>
153
- <Flex justify="between">
154
- <Body><strong>Eagles</strong></Body>
155
- <Body>55</Body>
156
- </Flex>
157
- </Layout.Game>
158
- <Layout.Game>
159
- <Flex justify="between">
160
- <Body>Bills</Body>
161
- <Body>29</Body>
162
- </Flex>
163
- <Flex justify="between">
164
- <Body><strong>Chiefs</strong></Body>
165
- <Body>32</Body>
166
- </Flex>
167
- </Layout.Game>
168
- </Layout.Round>
169
- <Layout.RoundLabel>
170
- <Caption>Super Bowl</Caption>
171
- <SectionSeparator marginY="sm"/>
172
- </Layout.RoundLabel>
173
- <Layout.Round>
174
- <Layout.Game>
175
- <Flex justify="between">
176
- <Body>Chiefs</Body>
177
- <Body>22</Body>
178
- </Flex>
179
- <Flex justify="between">
180
- <Body><strong>Eagles</strong></Body>
181
- <Body>40</Body>
182
- </Flex>
183
- </Layout.Game>
184
- </Layout.Round>
185
- </Layout>
186
- </div>
187
- )
188
- }
189
-
190
- export default LayoutBracket
@@ -1,5 +0,0 @@
1
- Use `<Layout.RoundLabel>`, `<Layout.Round>`, and `<Layout.Game>` to make a bracket layout.
2
-
3
- On mobile devices, `<Layout.RoundLabel>` will display (on desktop these components are hidden) and the bracket will be in one column.
4
-
5
- Ensure that each `<Layout.Game>` maintains a consistent height for the bracket lines to lay out properly.