playbook_ui 13.29.0.pre.alpha.testingcollapsibleissue3052 → 13.30.0.pre.alpha.PBNTR353draggablev53136

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/_playbook.scss +1 -0
  3. data/app/pb_kits/playbook/index.js +1 -0
  4. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_horizontal.html.erb +58 -0
  5. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_horizontal.jsx +68 -0
  6. data/app/pb_kits/playbook/pb_bar_graph/docs/example.yml +2 -0
  7. data/app/pb_kits/playbook/pb_bar_graph/docs/index.js +1 -0
  8. data/app/pb_kits/playbook/pb_card/_card.scss +5 -0
  9. data/app/pb_kits/playbook/pb_card/_card.tsx +57 -9
  10. data/app/pb_kits/playbook/pb_circle_chart/_circle_chart.tsx +9 -5
  11. data/app/pb_kits/playbook/pb_dialog/dialog.html.erb +2 -3
  12. data/app/pb_kits/playbook/pb_draggable/_draggable.scss +2 -4
  13. data/app/pb_kits/playbook/pb_draggable/context/index.tsx +70 -50
  14. data/app/pb_kits/playbook/pb_draggable/context/types.ts +26 -0
  15. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_default.jsx +3 -2
  16. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_default.md +2 -2
  17. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers.jsx +13 -8
  18. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers.md +1 -0
  19. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards.jsx +23 -35
  20. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards.md +5 -0
  21. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_list.jsx +7 -7
  22. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_list.md +7 -1
  23. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_selectable_list.jsx +11 -9
  24. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_selectable_list.md +7 -0
  25. data/app/pb_kits/playbook/pb_draggable/draggable.test.jsx +143 -18
  26. data/app/pb_kits/playbook/pb_draggable/subcomponents/DraggableItem.tsx +6 -5
  27. data/app/pb_kits/playbook/pb_list/_list.tsx +4 -4
  28. data/app/pb_kits/playbook/pb_list/_list_item.tsx +7 -3
  29. data/app/pb_kits/playbook/pb_overlay/_overlay.scss +72 -0
  30. data/app/pb_kits/playbook/pb_overlay/_overlay.tsx +78 -0
  31. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_default.html.erb +24 -0
  32. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_default.jsx +40 -0
  33. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_default.md +7 -0
  34. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_multi_directional.html.erb +11 -0
  35. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_multi_directional.jsx +36 -0
  36. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_multi_directional.md +5 -0
  37. data/app/pb_kits/playbook/pb_overlay/docs/example.yml +8 -0
  38. data/app/pb_kits/playbook/pb_overlay/docs/index.js +2 -0
  39. data/app/pb_kits/playbook/pb_overlay/overlay.html.erb +27 -0
  40. data/app/pb_kits/playbook/pb_overlay/overlay.rb +110 -0
  41. data/app/pb_kits/playbook/pb_overlay/overlay.test.jsx +66 -0
  42. data/app/pb_kits/playbook/pb_overlay/subcomponents/_overlay_percentage.tsx +57 -0
  43. data/app/pb_kits/playbook/pb_overlay/subcomponents/_overlay_token.tsx +48 -0
  44. data/app/pb_kits/playbook/pb_phone_number_input/_phone_number_input.scss +43 -25
  45. data/app/pb_kits/playbook/pb_selectable_list/_item.tsx +7 -3
  46. data/app/pb_kits/playbook/pb_selectable_list/_selectable_list.tsx +3 -3
  47. data/app/pb_kits/playbook/pb_table/docs/_table_alignment_column_rails.html.erb +32 -33
  48. data/app/pb_kits/playbook/pb_table/table_header.html.erb +0 -2
  49. data/app/pb_kits/playbook/pb_timeline/_item.tsx +11 -10
  50. data/app/pb_kits/playbook/pb_timeline/_timeline.tsx +8 -6
  51. data/app/pb_kits/playbook/playbook-doc.js +2 -0
  52. data/app/pb_kits/playbook/utilities/globalProps.ts +1 -0
  53. data/dist/menu.yml +5 -1
  54. data/dist/playbook-rails.js +6 -6
  55. data/lib/playbook/kit_base.rb +19 -0
  56. data/lib/playbook/version.rb +2 -2
  57. metadata +23 -2
@@ -82,6 +82,25 @@ module Playbook
82
82
  default_html_options.merge(html_options.deep_merge(data_attributes))
83
83
  end
84
84
 
85
+ # rubocop:disable Layout/CommentIndentation
86
+ # pb_content_tag information (potentially to be abstracted into its own dev doc in the future)
87
+ # The pb_content_tag generates HTML content tags for rails kits with flexible options.
88
+ # 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).
89
+ # name - the first argument is for HTML tag. The default is :div.
90
+ # content_or_options_with_block - additional content or options for the tag (i.e., the customizations a dev adds to kit.html.erb).
91
+ # options - Within combined_options, the empty options hash allows for customizations to
92
+ # merge with the default_options and combined_html_options.
93
+ # escape - set to true, this allows for HTML-escape.
94
+ # block - an optional block for content inside the tag.
95
+ # The return is a HTML tag that includes any provided customizations. If nothing is specified in kit.html.erb, the default shape is:
96
+ # :div,
97
+ # aria: object.aria,
98
+ # class: object.classname,
99
+ # data: object.data,
100
+ # id: object.id,
101
+ # **combined_html_options
102
+ # rubocop:enable Layout/CommentIndentation
103
+
85
104
  # rubocop:disable Style/OptionalBooleanParameter
86
105
  def pb_content_tag(name = :div, content_or_options_with_block = {}, options = {}, escape = true, &block)
87
106
  combined_options = options
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Playbook
4
- PREVIOUS_VERSION = "13.29.0"
5
- VERSION = "13.29.0.pre.alpha.testingcollapsibleissue3052"
4
+ PREVIOUS_VERSION = "13.30.0"
5
+ VERSION = "13.30.0.pre.alpha.PBNTR353draggablev53136"
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: 13.29.0.pre.alpha.testingcollapsibleissue3052
4
+ version: 13.30.0.pre.alpha.PBNTR353draggablev53136
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: 2024-06-10 00:00:00.000000000 Z
12
+ date: 2024-06-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack
@@ -414,6 +414,8 @@ files:
414
414
  - app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_default.jsx
415
415
  - app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_height.html.erb
416
416
  - app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_height.jsx
417
+ - app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_horizontal.html.erb
418
+ - app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_horizontal.jsx
417
419
  - app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend.html.erb
418
420
  - app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend.jsx
419
421
  - app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_non_clickable.html.erb
@@ -1076,13 +1078,17 @@ files:
1076
1078
  - app/pb_kits/playbook/pb_draggable/_draggable.scss
1077
1079
  - app/pb_kits/playbook/pb_draggable/_draggable.tsx
1078
1080
  - app/pb_kits/playbook/pb_draggable/context/index.tsx
1081
+ - app/pb_kits/playbook/pb_draggable/context/types.ts
1079
1082
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_default.jsx
1080
1083
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_default.md
1081
1084
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers.jsx
1085
+ - app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers.md
1082
1086
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards.jsx
1087
+ - app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards.md
1083
1088
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_with_list.jsx
1084
1089
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_with_list.md
1085
1090
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_with_selectable_list.jsx
1091
+ - app/pb_kits/playbook/pb_draggable/docs/_draggable_with_selectable_list.md
1086
1092
  - app/pb_kits/playbook/pb_draggable/docs/example.yml
1087
1093
  - app/pb_kits/playbook/pb_draggable/docs/index.js
1088
1094
  - app/pb_kits/playbook/pb_draggable/draggable.test.jsx
@@ -1876,6 +1882,21 @@ files:
1876
1882
  - app/pb_kits/playbook/pb_online_status/docs/index.js
1877
1883
  - app/pb_kits/playbook/pb_online_status/online_status.html.erb
1878
1884
  - app/pb_kits/playbook/pb_online_status/online_status.rb
1885
+ - app/pb_kits/playbook/pb_overlay/_overlay.scss
1886
+ - app/pb_kits/playbook/pb_overlay/_overlay.tsx
1887
+ - app/pb_kits/playbook/pb_overlay/docs/_overlay_default.html.erb
1888
+ - app/pb_kits/playbook/pb_overlay/docs/_overlay_default.jsx
1889
+ - app/pb_kits/playbook/pb_overlay/docs/_overlay_default.md
1890
+ - app/pb_kits/playbook/pb_overlay/docs/_overlay_multi_directional.html.erb
1891
+ - app/pb_kits/playbook/pb_overlay/docs/_overlay_multi_directional.jsx
1892
+ - app/pb_kits/playbook/pb_overlay/docs/_overlay_multi_directional.md
1893
+ - app/pb_kits/playbook/pb_overlay/docs/example.yml
1894
+ - app/pb_kits/playbook/pb_overlay/docs/index.js
1895
+ - app/pb_kits/playbook/pb_overlay/overlay.html.erb
1896
+ - app/pb_kits/playbook/pb_overlay/overlay.rb
1897
+ - app/pb_kits/playbook/pb_overlay/overlay.test.jsx
1898
+ - app/pb_kits/playbook/pb_overlay/subcomponents/_overlay_percentage.tsx
1899
+ - app/pb_kits/playbook/pb_overlay/subcomponents/_overlay_token.tsx
1879
1900
  - app/pb_kits/playbook/pb_pagination/_pagination.scss
1880
1901
  - app/pb_kits/playbook/pb_pagination/docs/_pagination_default.html.erb
1881
1902
  - app/pb_kits/playbook/pb_pagination/docs/_pagination_default.md