playbook_ui 14.4.0.pre.rc.16 → 14.5.0.pre.alpha.PBNTR374multilevelselectPOC3946

Sign up to get free protection for your applications and to get access to all the features.
Files changed (97) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/_playbook.scss +2 -0
  3. data/app/pb_kits/playbook/pb_advanced_table/Components/SortIconButton.tsx +23 -4
  4. data/app/pb_kits/playbook/pb_advanced_table/advanced_table.test.jsx +1 -1
  5. data/app/pb_kits/playbook/pb_button/_button.tsx +6 -2
  6. data/app/pb_kits/playbook/pb_contact/_contact.tsx +17 -5
  7. data/app/pb_kits/playbook/pb_contact/contact.html.erb +14 -6
  8. data/app/pb_kits/playbook/pb_contact/contact.rb +4 -0
  9. data/app/pb_kits/playbook/pb_contact/contact.test.js +1 -1
  10. data/app/pb_kits/playbook/pb_dashboard/pbChartsDarkTheme.ts +2 -6
  11. data/app/pb_kits/playbook/pb_dashboard/pbChartsLightTheme.ts +2 -7
  12. data/app/pb_kits/playbook/pb_date_picker/_date_picker.tsx +4 -3
  13. data/app/pb_kits/playbook/pb_date_picker/date_picker.html.erb +1 -1
  14. data/app/pb_kits/playbook/pb_date_picker/date_picker.rb +4 -0
  15. data/app/pb_kits/playbook/pb_date_picker/date_picker_helper.ts +6 -3
  16. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_inline.html.erb +1 -1
  17. data/app/pb_kits/playbook/pb_date_picker/sass_partials/_header_styles.scss +6 -2
  18. data/app/pb_kits/playbook/pb_dialog/_dialog.scss +2 -0
  19. data/app/pb_kits/playbook/pb_dialog/dialog_header.html.erb +1 -1
  20. data/app/pb_kits/playbook/pb_drawer/_close_icon.tsx +25 -0
  21. data/app/pb_kits/playbook/pb_drawer/_drawer.scss +465 -0
  22. data/app/pb_kits/playbook/pb_drawer/_drawer.tsx +195 -0
  23. data/app/pb_kits/playbook/pb_drawer/_drawer_context.tsx +3 -0
  24. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_borders.jsx +117 -0
  25. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_breakpoints.jsx +43 -0
  26. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_default.html.erb +1 -0
  27. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_default.jsx +63 -0
  28. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_overlay.jsx +55 -0
  29. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_sizes.jsx +113 -0
  30. data/app/pb_kits/playbook/pb_drawer/docs/example.yml +12 -0
  31. data/app/pb_kits/playbook/pb_drawer/docs/index.js +5 -0
  32. data/app/pb_kits/playbook/pb_drawer/drawer.html.erb +12 -0
  33. data/app/pb_kits/playbook/pb_drawer/drawer.rb +8 -0
  34. data/app/pb_kits/playbook/pb_drawer/drawer.test.jsx +77 -0
  35. data/app/pb_kits/playbook/pb_filter/docs/_filter_default.html.erb +10 -2
  36. data/app/pb_kits/playbook/pb_filter/docs/_filter_max_height.html.erb +5 -1
  37. data/app/pb_kits/playbook/pb_filter/docs/_filter_max_width.html.erb +5 -1
  38. data/app/pb_kits/playbook/pb_filter/docs/_filter_no_background.html.erb +5 -1
  39. data/app/pb_kits/playbook/pb_filter/docs/_filter_no_sort.html.erb +5 -1
  40. data/app/pb_kits/playbook/pb_filter/docs/_filter_only.html.erb +5 -1
  41. data/app/pb_kits/playbook/pb_filter/docs/_filter_placement.html.erb +5 -1
  42. data/app/pb_kits/playbook/pb_filter/docs/_filter_single.html.erb +5 -1
  43. data/app/pb_kits/playbook/pb_map/_map_controls.tsx +7 -1
  44. data/app/pb_kits/playbook/pb_multi_level_select/_multi_level_select.tsx +210 -232
  45. data/app/pb_kits/playbook/pb_multi_level_select/context/index.tsx +5 -0
  46. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_default.jsx +1 -1
  47. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_with_children.jsx +107 -0
  48. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_with_children_with_radios.jsx +108 -0
  49. data/app/pb_kits/playbook/pb_multi_level_select/docs/example.yml +3 -0
  50. data/app/pb_kits/playbook/pb_multi_level_select/docs/index.js +2 -0
  51. data/app/pb_kits/playbook/pb_multi_level_select/multi_level_select_options.tsx +149 -0
  52. data/app/pb_kits/playbook/pb_pagination/docs/_pagination_page_change.jsx +12 -1
  53. data/app/pb_kits/playbook/pb_pagination/docs/_pagination_page_change_react.md +3 -1
  54. data/app/pb_kits/playbook/pb_passphrase/_passphrase.tsx +10 -2
  55. data/app/pb_kits/playbook/pb_popover/docs/_popover_list.html.erb +14 -13
  56. data/app/pb_kits/playbook/pb_popover/docs/_popover_list.jsx +4 -4
  57. data/app/pb_kits/playbook/pb_radio/_radio.tsx +92 -33
  58. data/app/pb_kits/playbook/pb_radio/docs/_radio_custom_children.html.erb +2 -0
  59. data/app/pb_kits/playbook/pb_radio/docs/_radio_custom_children.jsx +62 -0
  60. data/app/pb_kits/playbook/pb_radio/docs/example.yml +1 -0
  61. data/app/pb_kits/playbook/pb_radio/docs/index.js +1 -0
  62. data/app/pb_kits/playbook/pb_rich_text_editor/TipTap/ToolbarDropdown.tsx +12 -5
  63. data/app/pb_kits/playbook/pb_select/_select.tsx +5 -2
  64. data/app/pb_kits/playbook/pb_select/select.html.erb +1 -1
  65. data/app/pb_kits/playbook/pb_select/select.rb +4 -0
  66. data/app/pb_kits/playbook/pb_text_input/_text_input.scss +0 -1
  67. data/app/pb_kits/playbook/pb_tooltip/_tooltip.tsx +17 -13
  68. data/app/pb_kits/playbook/pb_typeahead/_typeahead.scss +0 -1
  69. data/app/pb_kits/playbook/pb_typeahead/_typeahead.test.jsx +14 -0
  70. data/app/pb_kits/playbook/pb_typeahead/_typeahead.tsx +3 -0
  71. data/app/pb_kits/playbook/pb_typeahead/components/Control.tsx +6 -5
  72. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_margin_bottom.html.erb +88 -0
  73. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_margin_bottom.jsx +60 -0
  74. data/app/pb_kits/playbook/pb_typeahead/docs/example.yml +2 -0
  75. data/app/pb_kits/playbook/pb_typeahead/docs/index.js +1 -0
  76. data/app/pb_kits/playbook/pb_typeahead/typeahead.html.erb +2 -1
  77. data/app/pb_kits/playbook/pb_typeahead/typeahead.rb +6 -1
  78. data/app/pb_kits/playbook/utilities/icons/allicons.tsx +136 -13
  79. data/app/pb_kits/playbook/utilities/icons/angle-down.svg +3 -0
  80. data/app/pb_kits/playbook/utilities/icons/envelope.svg +3 -0
  81. data/dist/chunks/_typeahead-DMIBeCYd.js +22 -0
  82. data/dist/chunks/_weekday_stacked-CviGlw2m.js +45 -0
  83. data/dist/chunks/lib-CEpcaI8y.js +29 -0
  84. data/dist/chunks/{pb_form_validation-zV9OpdSt.js → pb_form_validation-D9zkwt2b.js} +1 -1
  85. data/dist/chunks/vendor.js +1 -1
  86. data/dist/menu.yml +3 -1
  87. data/dist/playbook-doc.js +1 -1
  88. data/dist/playbook-rails-react-bindings.js +1 -1
  89. data/dist/playbook-rails.js +1 -1
  90. data/dist/playbook.css +1 -1
  91. data/lib/playbook/pagination_renderer.rb +10 -2
  92. data/lib/playbook/pb_doc_helper.rb +5 -5
  93. data/lib/playbook/version.rb +2 -2
  94. metadata +30 -6
  95. data/dist/chunks/_typeahead-B2zRxReA.js +0 -22
  96. data/dist/chunks/_weekday_stacked-Co95UEiW.js +0 -45
  97. data/dist/chunks/lib-D2U4I1U6.js +0 -16
@@ -29,12 +29,20 @@ module Playbook
29
29
 
30
30
  def previous_page
31
31
  num = @collection.current_page > 1 && @collection.current_page - 1
32
- previous_or_next_page(num, "<i class='far fa-chevron-left fa-xs'></i>", "prev")
32
+ previous_or_next_page(
33
+ num,
34
+ "<svg xmlns='http://www.w3.org/2000/svg' width='auto' height='auto' viewBox='0 0 30 24' fill='none' class='pb_custom_icon svg-inline--fa pb_icon_kit svg_fw svg_xs' id='' data='{}' aria='{:label=>&quot;away&quot;}' tabindex=''><path d='M8.20312 11.2031L17.2031 2.25C17.625 1.78125 18.3281 1.78125 18.7969 2.25C19.2188 2.67188 19.2188 3.375 18.7969 3.79688L10.5469 12L18.75 20.25C19.2188 20.6719 19.2188 21.375 18.75 21.7969C18.3281 22.2656 17.625 22.2656 17.2031 21.7969L8.20312 12.7969C7.73438 12.375 7.73438 11.6719 8.20312 11.2031Z' fill='currentColor'></path></svg>",
35
+ "prev"
36
+ )
33
37
  end
34
38
 
35
39
  def next_page
36
40
  num = @collection.current_page < @collection.total_pages && @collection.current_page + 1
37
- previous_or_next_page(num, "<i class='far fa-chevron-right fa-xs'></i>", "next")
41
+ previous_or_next_page(
42
+ num,
43
+ "<svg xmlns='http://www.w3.org/2000/svg' width='auto' height='auto' viewBox='0 0 30 24' fill='none' class='pb_custom_icon svg-inline--fa pb_icon_kit svg_fw svg_xs' id='' data='{}' aria='{:label=>&quot;away&quot;}' tabindex=''><path d='M21.7969 11.2031C22.2188 11.6719 22.2188 12.375 21.7969 12.7969L12.7969 21.7969C12.3281 22.2656 11.625 22.2656 11.2031 21.7969C10.7344 21.375 10.7344 20.6719 11.2031 20.25L19.4062 12.0469L11.2031 3.79688C10.7344 3.375 10.7344 2.67188 11.2031 2.25C11.625 1.78125 12.3281 1.78125 12.75 2.25L21.7969 11.2031Z' fill='currentColor'></path></svg>",
44
+ "next"
45
+ )
38
46
  end
39
47
  end
40
48
  end
@@ -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
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Playbook
4
- PREVIOUS_VERSION = "14.3.2"
5
- VERSION = "14.4.0.pre.rc.16"
4
+ PREVIOUS_VERSION = "14.5.0"
5
+ VERSION = "14.5.0.pre.alpha.PBNTR374multilevelselectPOC3946"
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.4.0.pre.rc.16
4
+ version: 14.5.0.pre.alpha.PBNTR374multilevelselectPOC3946
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-09-17 00:00:00.000000000 Z
12
+ date: 2024-10-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack
@@ -1106,6 +1106,21 @@ files:
1106
1106
  - app/pb_kits/playbook/pb_draggable/draggable.test.jsx
1107
1107
  - app/pb_kits/playbook/pb_draggable/subcomponents/DraggableContainer.tsx
1108
1108
  - app/pb_kits/playbook/pb_draggable/subcomponents/DraggableItem.tsx
1109
+ - app/pb_kits/playbook/pb_drawer/_close_icon.tsx
1110
+ - app/pb_kits/playbook/pb_drawer/_drawer.scss
1111
+ - app/pb_kits/playbook/pb_drawer/_drawer.tsx
1112
+ - app/pb_kits/playbook/pb_drawer/_drawer_context.tsx
1113
+ - app/pb_kits/playbook/pb_drawer/docs/_drawer_borders.jsx
1114
+ - app/pb_kits/playbook/pb_drawer/docs/_drawer_breakpoints.jsx
1115
+ - app/pb_kits/playbook/pb_drawer/docs/_drawer_default.html.erb
1116
+ - app/pb_kits/playbook/pb_drawer/docs/_drawer_default.jsx
1117
+ - app/pb_kits/playbook/pb_drawer/docs/_drawer_overlay.jsx
1118
+ - app/pb_kits/playbook/pb_drawer/docs/_drawer_sizes.jsx
1119
+ - app/pb_kits/playbook/pb_drawer/docs/example.yml
1120
+ - app/pb_kits/playbook/pb_drawer/docs/index.js
1121
+ - app/pb_kits/playbook/pb_drawer/drawer.html.erb
1122
+ - app/pb_kits/playbook/pb_drawer/drawer.rb
1123
+ - app/pb_kits/playbook/pb_drawer/drawer.test.jsx
1109
1124
  - app/pb_kits/playbook/pb_dropdown/_dropdown.scss
1110
1125
  - app/pb_kits/playbook/pb_dropdown/_dropdown.tsx
1111
1126
  - app/pb_kits/playbook/pb_dropdown/context/index.tsx
@@ -1778,6 +1793,7 @@ files:
1778
1793
  - app/pb_kits/playbook/pb_multi_level_select/_helper_functions.tsx
1779
1794
  - app/pb_kits/playbook/pb_multi_level_select/_multi_level_select.scss
1780
1795
  - app/pb_kits/playbook/pb_multi_level_select/_multi_level_select.tsx
1796
+ - app/pb_kits/playbook/pb_multi_level_select/context/index.tsx
1781
1797
  - app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_color.html.erb
1782
1798
  - app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_color.jsx
1783
1799
  - app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_color_rails.md
@@ -1798,12 +1814,15 @@ files:
1798
1814
  - app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_single_children_only.html.erb
1799
1815
  - app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_single_children_only.jsx
1800
1816
  - app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_single_children_only.md
1817
+ - app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_with_children.jsx
1818
+ - app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_with_children_with_radios.jsx
1801
1819
  - app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_with_form.html.erb
1802
1820
  - app/pb_kits/playbook/pb_multi_level_select/docs/example.yml
1803
1821
  - app/pb_kits/playbook/pb_multi_level_select/docs/index.js
1804
1822
  - app/pb_kits/playbook/pb_multi_level_select/multi_level_select.html.erb
1805
1823
  - app/pb_kits/playbook/pb_multi_level_select/multi_level_select.rb
1806
1824
  - app/pb_kits/playbook/pb_multi_level_select/multi_level_select.test.jsx
1825
+ - app/pb_kits/playbook/pb_multi_level_select/multi_level_select_options.tsx
1807
1826
  - app/pb_kits/playbook/pb_multiple_users/_multiple_users.scss
1808
1827
  - app/pb_kits/playbook/pb_multiple_users/_multiple_users.tsx
1809
1828
  - app/pb_kits/playbook/pb_multiple_users/docs/_description.md
@@ -2159,6 +2178,7 @@ files:
2159
2178
  - app/pb_kits/playbook/pb_radio/docs/_radio_custom.html.erb
2160
2179
  - app/pb_kits/playbook/pb_radio/docs/_radio_custom.jsx
2161
2180
  - app/pb_kits/playbook/pb_radio/docs/_radio_custom_children.html.erb
2181
+ - app/pb_kits/playbook/pb_radio/docs/_radio_custom_children.jsx
2162
2182
  - app/pb_kits/playbook/pb_radio/docs/_radio_custom_children.md
2163
2183
  - app/pb_kits/playbook/pb_radio/docs/_radio_custom_swift.md
2164
2184
  - app/pb_kits/playbook/pb_radio/docs/_radio_default.html.erb
@@ -2865,6 +2885,8 @@ files:
2865
2885
  - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_error_state.md
2866
2886
  - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_inline.html.erb
2867
2887
  - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_inline.jsx
2888
+ - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_margin_bottom.html.erb
2889
+ - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_margin_bottom.jsx
2868
2890
  - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_multi_kit.html.erb
2869
2891
  - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_multi_kit.jsx
2870
2892
  - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_context.html.erb
@@ -3029,7 +3051,9 @@ files:
3029
3051
  - app/pb_kits/playbook/utilities/globalPropNames.mjs
3030
3052
  - app/pb_kits/playbook/utilities/globalProps.ts
3031
3053
  - app/pb_kits/playbook/utilities/icons/allicons.tsx
3054
+ - app/pb_kits/playbook/utilities/icons/angle-down.svg
3032
3055
  - app/pb_kits/playbook/utilities/icons/clock.svg
3056
+ - app/pb_kits/playbook/utilities/icons/envelope.svg
3033
3057
  - app/pb_kits/playbook/utilities/icons/spinner.svg
3034
3058
  - app/pb_kits/playbook/utilities/icons/times.svg
3035
3059
  - app/pb_kits/playbook/utilities/object.ts
@@ -3050,11 +3074,11 @@ files:
3050
3074
  - app/pb_kits/playbook/utilities/test/globalProps/truncate.test.js
3051
3075
  - app/pb_kits/playbook/utilities/text.ts
3052
3076
  - app/pb_kits/playbook/utilities/validEmojiChecker.ts
3053
- - dist/chunks/_typeahead-B2zRxReA.js
3054
- - dist/chunks/_weekday_stacked-Co95UEiW.js
3077
+ - dist/chunks/_typeahead-DMIBeCYd.js
3078
+ - dist/chunks/_weekday_stacked-CviGlw2m.js
3055
3079
  - dist/chunks/lazysizes-B7xYodB-.js
3056
- - dist/chunks/lib-D2U4I1U6.js
3057
- - dist/chunks/pb_form_validation-zV9OpdSt.js
3080
+ - dist/chunks/lib-CEpcaI8y.js
3081
+ - dist/chunks/pb_form_validation-D9zkwt2b.js
3058
3082
  - dist/chunks/vendor.js
3059
3083
  - dist/menu.yml
3060
3084
  - dist/playbook-doc.js