playbook_ui 14.5.0.pre.alpha.javascriptassets3939 → 14.5.0.pre.alpha.play1549upgradereactmodal4130

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 (63) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_advanced_table/index.js +60 -0
  3. data/app/pb_kits/playbook/pb_advanced_table/table_header.html.erb +1 -9
  4. data/app/pb_kits/playbook/pb_advanced_table/table_subrow_header.html.erb +1 -9
  5. data/app/pb_kits/playbook/pb_dropdown/_dropdown.tsx +20 -4
  6. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_clear_selection.jsx +45 -0
  7. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_clear_selection.md +1 -0
  8. data/app/pb_kits/playbook/pb_dropdown/docs/example.yml +1 -0
  9. data/app/pb_kits/playbook/pb_dropdown/docs/index.js +1 -0
  10. data/app/pb_kits/playbook/pb_dropdown/subcomponents/DropdownOption.tsx +1 -1
  11. data/app/pb_kits/playbook/pb_dropdown/subcomponents/DropdownTrigger.tsx +2 -2
  12. data/app/pb_kits/playbook/pb_enhanced_element/{element_observer.js → element_observer.ts} +27 -19
  13. data/app/pb_kits/playbook/pb_enhanced_element/{index.js → index.ts} +22 -15
  14. data/app/pb_kits/playbook/pb_filter/Filter/ResultsCount.tsx +4 -2
  15. data/app/pb_kits/playbook/pb_filter/docs/_filter_default.jsx +1 -1
  16. data/app/pb_kits/playbook/pb_form_pill/_form_pill.tsx +9 -1
  17. data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_truncated_text.html.erb +19 -0
  18. data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_truncated_text.jsx +27 -0
  19. data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_truncated_text.md +1 -0
  20. data/app/pb_kits/playbook/pb_form_pill/docs/example.yml +2 -0
  21. data/app/pb_kits/playbook/pb_form_pill/docs/index.js +1 -0
  22. data/app/pb_kits/playbook/pb_multi_level_select/_multi_level_select.tsx +211 -227
  23. data/app/pb_kits/playbook/pb_multi_level_select/context/index.tsx +5 -0
  24. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_default.jsx +1 -1
  25. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_reset.html.erb +93 -0
  26. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_reset.md +1 -0
  27. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_with_children.jsx +105 -0
  28. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_with_children.md +1 -0
  29. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_with_children_with_radios.jsx +106 -0
  30. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_with_children_with_radios.md +1 -0
  31. data/app/pb_kits/playbook/pb_multi_level_select/docs/example.yml +4 -0
  32. data/app/pb_kits/playbook/pb_multi_level_select/docs/index.js +2 -0
  33. data/app/pb_kits/playbook/pb_multi_level_select/multi_level_select_options.tsx +149 -0
  34. data/app/pb_kits/playbook/pb_multiple_users_stacked/_multiple_users_stacked.scss +169 -65
  35. data/app/pb_kits/playbook/pb_multiple_users_stacked/_multiple_users_stacked.test.js +5 -5
  36. data/app/pb_kits/playbook/pb_multiple_users_stacked/_multiple_users_stacked.tsx +15 -9
  37. data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/_multiple_users_stacked_size.html.erb +336 -0
  38. data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/_multiple_users_stacked_size.jsx +97 -0
  39. data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/example.yml +2 -0
  40. data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/index.js +1 -0
  41. data/app/pb_kits/playbook/pb_multiple_users_stacked/multiple_users_stacked.html.erb +28 -6
  42. data/app/pb_kits/playbook/pb_multiple_users_stacked/multiple_users_stacked.rb +31 -1
  43. data/app/pb_kits/playbook/pb_typeahead/_typeahead.tsx +4 -1
  44. data/app/pb_kits/playbook/pb_typeahead/components/MultiValue.tsx +3 -1
  45. data/app/pb_kits/playbook/pb_typeahead/typeahead.rb +3 -1
  46. data/dist/chunks/_typeahead-C9g4qCcE.js +22 -0
  47. data/dist/chunks/_weekday_stacked-DQN7SPcO.js +45 -0
  48. data/dist/chunks/lib-CEpcaI8y.js +29 -0
  49. data/dist/chunks/{pb_form_validation-8H8TD40J.js → pb_form_validation-D9zkwt2b.js} +1 -1
  50. data/dist/chunks/vendor.js +1 -45
  51. data/dist/playbook-doc.js +1 -1
  52. data/dist/playbook-rails-react-bindings.js +1 -1
  53. data/dist/playbook-rails.js +1 -1
  54. data/dist/playbook.css +1 -1
  55. data/lib/playbook/pb_doc_helper.rb +5 -5
  56. data/lib/playbook/version.rb +1 -1
  57. metadata +23 -11
  58. data/dist/chunks/_typeahead-DPGG9h5l.js +0 -65
  59. data/dist/chunks/index-CaXZ6mCT.js +0 -1
  60. data/dist/chunks/index-DfoYI7sS.js +0 -1
  61. data/dist/chunks/lib-ByFv-sq8.js +0 -45
  62. data/dist/mark.js +0 -1
  63. data/dist/playbook-rails-friendly.js +0 -1
@@ -45,7 +45,7 @@ module Playbook
45
45
 
46
46
  # rubocop:disable Naming/AccessorMethodName
47
47
  def get_kits
48
- menu = YAML.load_file(Playbook::Engine.root.join("dist/menu.yml"))
48
+ menu = ActiveSupport::ConfigurationFile.parse(Playbook::Engine.root.join("dist/menu.yml"))
49
49
  all_kits = []
50
50
  menu["kits"].each do |kit|
51
51
  kit_name = kit["name"]
@@ -61,7 +61,7 @@ module Playbook
61
61
  end
62
62
 
63
63
  def get_kits_pb_website
64
- menu = YAML.load_file(Rails.root.join("config/menu.yml"))
64
+ menu = ActiveSupport::ConfigurationFile.parse(Rails.root.join("config/menu.yml"))
65
65
  menu["kits"]
66
66
  end
67
67
  # rubocop:enable Naming/AccessorMethodName
@@ -84,9 +84,9 @@ module Playbook
84
84
  def pb_doc_kit_examples(kit, type)
85
85
  example_file = pb_doc_kit_path(kit, "example.yml")
86
86
  if File.exist?(example_file)
87
- examples_list = YAML.load_file(example_file)
88
- .inject({}) { |item, (k, v)| item[k.to_sym] = v; item }
89
- examples_list.dig(:examples, type) || []
87
+ ActiveSupport::ConfigurationFile.parse(example_file)
88
+ .transform_keys(&:to_sym)
89
+ .dig(:examples, type) || []
90
90
  else
91
91
  []
92
92
  end
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Playbook
4
4
  PREVIOUS_VERSION = "14.5.0"
5
- VERSION = "14.5.0.pre.alpha.javascriptassets3939"
5
+ VERSION = "14.5.0.pre.alpha.play1549upgradereactmodal4130"
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.5.0.pre.alpha.javascriptassets3939
4
+ version: 14.5.0.pre.alpha.play1549upgradereactmodal4130
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-10-01 00:00:00.000000000 Z
12
+ date: 2024-10-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack
@@ -1126,6 +1126,8 @@ files:
1126
1126
  - app/pb_kits/playbook/pb_dropdown/context/index.tsx
1127
1127
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_blank_selection.html.erb
1128
1128
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_blank_selection.jsx
1129
+ - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_clear_selection.jsx
1130
+ - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_clear_selection.md
1129
1131
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_default.html.erb
1130
1132
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_default.jsx
1131
1133
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_default.md
@@ -1183,8 +1185,8 @@ files:
1183
1185
  - app/pb_kits/playbook/pb_dropdown/utilities/clickOutsideHelper.tsx
1184
1186
  - app/pb_kits/playbook/pb_dropdown/utilities/index.ts
1185
1187
  - app/pb_kits/playbook/pb_dropdown/utilities/subComponentHelper.tsx
1186
- - app/pb_kits/playbook/pb_enhanced_element/element_observer.js
1187
- - app/pb_kits/playbook/pb_enhanced_element/index.js
1188
+ - app/pb_kits/playbook/pb_enhanced_element/element_observer.ts
1189
+ - app/pb_kits/playbook/pb_enhanced_element/index.ts
1188
1190
  - app/pb_kits/playbook/pb_file_upload/_file_upload.scss
1189
1191
  - app/pb_kits/playbook/pb_file_upload/_file_upload.tsx
1190
1192
  - app/pb_kits/playbook/pb_file_upload/docs/_description.md
@@ -1364,6 +1366,9 @@ files:
1364
1366
  - app/pb_kits/playbook/pb_form_pill/docs/_form_pill_size.jsx
1365
1367
  - app/pb_kits/playbook/pb_form_pill/docs/_form_pill_tag.html.erb
1366
1368
  - app/pb_kits/playbook/pb_form_pill/docs/_form_pill_tag.jsx
1369
+ - app/pb_kits/playbook/pb_form_pill/docs/_form_pill_truncated_text.html.erb
1370
+ - app/pb_kits/playbook/pb_form_pill/docs/_form_pill_truncated_text.jsx
1371
+ - app/pb_kits/playbook/pb_form_pill/docs/_form_pill_truncated_text.md
1367
1372
  - app/pb_kits/playbook/pb_form_pill/docs/_form_pill_user.html.erb
1368
1373
  - app/pb_kits/playbook/pb_form_pill/docs/_form_pill_user.jsx
1369
1374
  - app/pb_kits/playbook/pb_form_pill/docs/example.yml
@@ -1793,6 +1798,7 @@ files:
1793
1798
  - app/pb_kits/playbook/pb_multi_level_select/_helper_functions.tsx
1794
1799
  - app/pb_kits/playbook/pb_multi_level_select/_multi_level_select.scss
1795
1800
  - app/pb_kits/playbook/pb_multi_level_select/_multi_level_select.tsx
1801
+ - app/pb_kits/playbook/pb_multi_level_select/context/index.tsx
1796
1802
  - app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_color.html.erb
1797
1803
  - app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_color.jsx
1798
1804
  - app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_color_rails.md
@@ -1800,6 +1806,8 @@ files:
1800
1806
  - app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_default.html.erb
1801
1807
  - app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_default.jsx
1802
1808
  - app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_default.md
1809
+ - app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_reset.html.erb
1810
+ - app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_reset.md
1803
1811
  - app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_return_all_selected.html.erb
1804
1812
  - app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_return_all_selected.jsx
1805
1813
  - app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_return_all_selected.md
@@ -1813,12 +1821,17 @@ files:
1813
1821
  - app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_single_children_only.html.erb
1814
1822
  - app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_single_children_only.jsx
1815
1823
  - app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_single_children_only.md
1824
+ - app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_with_children.jsx
1825
+ - app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_with_children.md
1826
+ - app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_with_children_with_radios.jsx
1827
+ - app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_with_children_with_radios.md
1816
1828
  - app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_with_form.html.erb
1817
1829
  - app/pb_kits/playbook/pb_multi_level_select/docs/example.yml
1818
1830
  - app/pb_kits/playbook/pb_multi_level_select/docs/index.js
1819
1831
  - app/pb_kits/playbook/pb_multi_level_select/multi_level_select.html.erb
1820
1832
  - app/pb_kits/playbook/pb_multi_level_select/multi_level_select.rb
1821
1833
  - app/pb_kits/playbook/pb_multi_level_select/multi_level_select.test.jsx
1834
+ - app/pb_kits/playbook/pb_multi_level_select/multi_level_select_options.tsx
1822
1835
  - app/pb_kits/playbook/pb_multiple_users/_multiple_users.scss
1823
1836
  - app/pb_kits/playbook/pb_multiple_users/_multiple_users.tsx
1824
1837
  - app/pb_kits/playbook/pb_multiple_users/docs/_description.md
@@ -1848,6 +1861,8 @@ files:
1848
1861
  - app/pb_kits/playbook/pb_multiple_users_stacked/docs/_multiple_users_stacked_default.jsx
1849
1862
  - app/pb_kits/playbook/pb_multiple_users_stacked/docs/_multiple_users_stacked_default_swift.md
1850
1863
  - app/pb_kits/playbook/pb_multiple_users_stacked/docs/_multiple_users_stacked_props_swift.md
1864
+ - app/pb_kits/playbook/pb_multiple_users_stacked/docs/_multiple_users_stacked_size.html.erb
1865
+ - app/pb_kits/playbook/pb_multiple_users_stacked/docs/_multiple_users_stacked_size.jsx
1851
1866
  - app/pb_kits/playbook/pb_multiple_users_stacked/docs/_multiple_users_stacked_small_swift.md
1852
1867
  - app/pb_kits/playbook/pb_multiple_users_stacked/docs/_multiple_users_stacked_xsmall_swift.md
1853
1868
  - app/pb_kits/playbook/pb_multiple_users_stacked/docs/example.yml
@@ -3070,17 +3085,14 @@ files:
3070
3085
  - app/pb_kits/playbook/utilities/test/globalProps/truncate.test.js
3071
3086
  - app/pb_kits/playbook/utilities/text.ts
3072
3087
  - app/pb_kits/playbook/utilities/validEmojiChecker.ts
3073
- - dist/chunks/_typeahead-DPGG9h5l.js
3074
- - dist/chunks/index-CaXZ6mCT.js
3075
- - dist/chunks/index-DfoYI7sS.js
3088
+ - dist/chunks/_typeahead-C9g4qCcE.js
3089
+ - dist/chunks/_weekday_stacked-DQN7SPcO.js
3076
3090
  - dist/chunks/lazysizes-B7xYodB-.js
3077
- - dist/chunks/lib-ByFv-sq8.js
3078
- - dist/chunks/pb_form_validation-8H8TD40J.js
3091
+ - dist/chunks/lib-CEpcaI8y.js
3092
+ - dist/chunks/pb_form_validation-D9zkwt2b.js
3079
3093
  - dist/chunks/vendor.js
3080
- - dist/mark.js
3081
3094
  - dist/menu.yml
3082
3095
  - dist/playbook-doc.js
3083
- - dist/playbook-rails-friendly.js
3084
3096
  - dist/playbook-rails-react-bindings.js
3085
3097
  - dist/playbook-rails.js
3086
3098
  - dist/playbook.css