playbook_ui 14.11.0 → 14.11.1.pre.alpha.PBNTR440enableglobalpropspbformwith5624

Sign up to get free protection for your applications and to get access to all the features.
Files changed (181) 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/CustomCell.tsx +18 -2
  4. data/app/pb_kits/playbook/pb_advanced_table/Components/TableHeaderCell.tsx +27 -5
  5. data/app/pb_kits/playbook/pb_advanced_table/SubKits/TableBody.tsx +17 -2
  6. data/app/pb_kits/playbook/pb_advanced_table/SubKits/TableHeader.tsx +23 -1
  7. data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.scss +29 -0
  8. data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.tsx +61 -4
  9. data/app/pb_kits/playbook/pb_advanced_table/advanced_table.html.erb +1 -1
  10. data/app/pb_kits/playbook/pb_advanced_table/advanced_table.rb +2 -0
  11. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_no_subrows.jsx +50 -0
  12. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pagination.jsx +1 -0
  13. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pagination_with_props.jsx +1 -0
  14. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows.jsx +60 -0
  15. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows.md +5 -0
  16. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_actions.jsx +78 -0
  17. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_actions.md +1 -0
  18. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_header.jsx +53 -0
  19. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_header.md +1 -0
  20. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_no_subrows.jsx +52 -0
  21. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_no_subrows.md +1 -0
  22. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort_control.md +2 -2
  23. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props.html.erb +33 -0
  24. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_rails.md +1 -0
  25. data/app/pb_kits/playbook/pb_advanced_table/docs/advanced_table_mock_data_no_subrows.json +42 -0
  26. data/app/pb_kits/playbook/pb_advanced_table/docs/advanced_table_mock_data_with_id.json +299 -0
  27. data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +6 -0
  28. data/app/pb_kits/playbook/pb_advanced_table/docs/index.js +6 -1
  29. data/app/pb_kits/playbook/pb_avatar_action_button/_avatar_action_button.scss +9 -11
  30. data/app/pb_kits/playbook/pb_badge/_badge.scss +2 -4
  31. data/app/pb_kits/playbook/pb_bread_crumbs/_bread_crumbs.scss +1 -3
  32. data/app/pb_kits/playbook/pb_button/_button.scss +1 -3
  33. data/app/pb_kits/playbook/pb_button/button.html.erb +2 -3
  34. data/app/pb_kits/playbook/pb_checkbox/checkbox.html.erb +1 -6
  35. data/app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.scss +2 -4
  36. data/app/pb_kits/playbook/pb_collapsible/collapsible.html.erb +3 -1
  37. data/app/pb_kits/playbook/pb_collapsible/collapsible.rb +3 -0
  38. data/app/pb_kits/playbook/pb_date_picker/date_picker.html.erb +24 -16
  39. data/app/pb_kits/playbook/pb_date_picker/date_picker.rb +2 -0
  40. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_default_date.md +1 -1
  41. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_turbo_frames.html.erb +13 -0
  42. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_turbo_frames_rails.md +3 -0
  43. data/app/pb_kits/playbook/pb_date_picker/docs/example.yml +1 -0
  44. data/app/pb_kits/playbook/pb_date_picker/sass_partials/_input_styles.scss +1 -3
  45. data/app/pb_kits/playbook/pb_date_picker/sass_partials/_overrides.scss +3 -5
  46. data/app/pb_kits/playbook/pb_date_range_inline/_date_range_inline.scss +4 -6
  47. data/app/pb_kits/playbook/pb_date_time_stacked/_date_time_stacked.scss +2 -4
  48. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_list_rails.html.erb +3 -9
  49. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_list_rails.md +5 -0
  50. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_selectable_list_rails.html.erb +38 -0
  51. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_selectable_list_rails.md +3 -0
  52. data/app/pb_kits/playbook/pb_draggable/docs/example.yml +1 -0
  53. data/app/pb_kits/playbook/pb_drawer/_drawer.scss +145 -183
  54. data/app/pb_kits/playbook/pb_drawer/_drawer.tsx +158 -268
  55. data/app/pb_kits/playbook/pb_drawer/context.ts +11 -0
  56. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_behavior.jsx +38 -0
  57. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_borders.jsx +3 -45
  58. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_breakpoints.jsx +0 -1
  59. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_default.jsx +9 -16
  60. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_menu.jsx +44 -19
  61. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_menu.md +21 -3
  62. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_overlay.jsx +16 -21
  63. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_sizes.jsx +2 -19
  64. data/app/pb_kits/playbook/pb_drawer/docs/example.yml +2 -1
  65. data/app/pb_kits/playbook/pb_drawer/docs/index.js +1 -0
  66. data/app/pb_kits/playbook/pb_drawer/drawer.test.jsx +5 -5
  67. data/app/pb_kits/playbook/pb_drawer/hooks/useBreakpoint.tsx +60 -0
  68. data/app/pb_kits/playbook/pb_drawer/hooks/useDrawerAnimation.tsx +21 -0
  69. data/app/pb_kits/playbook/pb_dropdown/_dropdown.scss +8 -10
  70. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_subtle_variant.md +1 -1
  71. data/app/pb_kits/playbook/pb_dropdown/dropdown.html.erb +7 -12
  72. data/app/pb_kits/playbook/pb_dropdown/dropdown_container.html.erb +9 -14
  73. data/app/pb_kits/playbook/pb_dropdown/dropdown_option.html.erb +6 -11
  74. data/app/pb_kits/playbook/pb_dropdown/dropdown_trigger.html.erb +8 -14
  75. data/app/pb_kits/playbook/pb_form_pill/_form_pill.scss +4 -6
  76. data/app/pb_kits/playbook/pb_icon_button/_icon_button.scss +78 -0
  77. data/app/pb_kits/playbook/pb_icon_button/docs/_icon_button_default.html.erb +3 -0
  78. data/app/pb_kits/playbook/pb_icon_button/docs/example.yml +7 -0
  79. data/app/pb_kits/playbook/pb_icon_button/icon_button.html.erb +16 -0
  80. data/app/pb_kits/playbook/pb_icon_button/icon_button.rb +22 -0
  81. data/app/pb_kits/playbook/pb_icon_circle/_icon_circle.scss +1 -3
  82. data/app/pb_kits/playbook/pb_label_value/_label_value.scss +2 -4
  83. data/app/pb_kits/playbook/pb_list/item.html.erb +30 -8
  84. data/app/pb_kits/playbook/pb_list/item.rb +7 -0
  85. data/app/pb_kits/playbook/pb_list/list.html.erb +31 -11
  86. data/app/pb_kits/playbook/pb_list/list.rb +4 -0
  87. data/app/pb_kits/playbook/pb_loading_inline/_loading_inline.tsx +6 -1
  88. data/app/pb_kits/playbook/pb_message/_message_mixins.scss +1 -3
  89. data/app/pb_kits/playbook/pb_multiple_users/_multiple_users.scss +5 -3
  90. data/app/pb_kits/playbook/pb_multiple_users/_multiple_users.tsx +1 -0
  91. data/app/pb_kits/playbook/pb_multiple_users/multiple_users.html.erb +1 -1
  92. data/app/pb_kits/playbook/pb_passphrase/_passphrase.scss +3 -5
  93. data/app/pb_kits/playbook/pb_phone_number_input/_phone_number_input.scss +8 -10
  94. data/app/pb_kits/playbook/pb_phone_number_input/_phone_number_input.tsx +30 -12
  95. data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_format.html.erb +15 -0
  96. data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_format.jsx +24 -0
  97. data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_format.md +1 -0
  98. data/app/pb_kits/playbook/pb_phone_number_input/docs/example.yml +3 -1
  99. data/app/pb_kits/playbook/pb_phone_number_input/docs/index.js +1 -0
  100. data/app/pb_kits/playbook/pb_phone_number_input/phone_number_input.rb +3 -0
  101. data/app/pb_kits/playbook/pb_phone_number_input/phone_number_input.test.js +20 -1
  102. data/app/pb_kits/playbook/pb_pill/_pill.scss +2 -4
  103. data/app/pb_kits/playbook/pb_progress_simple/_progress_simple.scss +2 -4
  104. data/app/pb_kits/playbook/pb_radio/_radio.scss +12 -8
  105. data/app/pb_kits/playbook/pb_radio/docs/_radio_custom_children.jsx +8 -3
  106. data/app/pb_kits/playbook/pb_rich_text_editor/_rich_text_editor.scss +2 -4
  107. data/app/pb_kits/playbook/pb_select/_select.scss +6 -10
  108. data/app/pb_kits/playbook/pb_select/_select.tsx +5 -1
  109. data/app/pb_kits/playbook/pb_select/select.html.erb +2 -2
  110. data/app/pb_kits/playbook/pb_selectable_card/_selectable_card.scss +3 -5
  111. data/app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.tsx +9 -1
  112. data/app/pb_kits/playbook/pb_selectable_icon/docs/_selectable_icon_default.jsx +4 -1
  113. data/app/pb_kits/playbook/pb_selectable_icon/docs/_selectable_icon_single_select.jsx +4 -1
  114. data/app/pb_kits/playbook/pb_selectable_list/selectable_list.html.erb +17 -3
  115. data/app/pb_kits/playbook/pb_selectable_list/selectable_list.rb +3 -0
  116. data/app/pb_kits/playbook/pb_selectable_list/selectable_list_item.html.erb +11 -4
  117. data/app/pb_kits/playbook/pb_selectable_list/selectable_list_item.rb +3 -0
  118. data/app/pb_kits/playbook/pb_table/_table.tsx +2 -3
  119. data/app/pb_kits/playbook/pb_table/docs/_table_sticky_columns.html.erb +74 -0
  120. data/app/pb_kits/playbook/pb_table/docs/_table_sticky_columns_rails.md +3 -0
  121. data/app/pb_kits/playbook/pb_table/docs/_table_sticky_left_columns_rails.md +2 -2
  122. data/app/pb_kits/playbook/pb_table/docs/_table_sticky_right_columns.html.erb +74 -0
  123. data/app/pb_kits/playbook/pb_table/docs/_table_sticky_right_columns_rails.md +3 -0
  124. data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible.html.erb +47 -0
  125. data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_rails.md +2 -0
  126. data/app/pb_kits/playbook/pb_table/docs/example.yml +3 -0
  127. data/app/pb_kits/playbook/pb_table/index.ts +187 -88
  128. data/app/pb_kits/playbook/pb_table/styles/_collapsible.scss +12 -0
  129. data/app/pb_kits/playbook/pb_table/styles/_scroll.scss +6 -5
  130. data/app/pb_kits/playbook/pb_table/table.html.erb +1 -1
  131. data/app/pb_kits/playbook/pb_table/table.rb +17 -2
  132. data/app/pb_kits/playbook/pb_table/table_row.html.erb +20 -1
  133. data/app/pb_kits/playbook/pb_table/table_row.rb +5 -0
  134. data/app/pb_kits/playbook/pb_table/utilities/addDataTitle.ts +22 -0
  135. data/app/pb_kits/playbook/pb_text_input/_text_input.scss +1 -3
  136. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_mask.html.erb +46 -0
  137. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_mask_rails.md +3 -0
  138. data/app/pb_kits/playbook/pb_text_input/docs/example.yml +2 -1
  139. data/app/pb_kits/playbook/pb_text_input/index.js +103 -0
  140. data/app/pb_kits/playbook/pb_text_input/text_input.html.erb +4 -0
  141. data/app/pb_kits/playbook/pb_text_input/text_input.rb +33 -3
  142. data/app/pb_kits/playbook/pb_textarea/_textarea.scss +1 -3
  143. data/app/pb_kits/playbook/pb_time_range_inline/_time_range_inline.scss +4 -5
  144. data/app/pb_kits/playbook/pb_timeline/_timeline.scss +32 -34
  145. data/app/pb_kits/playbook/pb_toggle/_toggle.scss +3 -5
  146. data/app/pb_kits/playbook/pb_typeahead/_typeahead.tsx +3 -2
  147. data/app/pb_kits/playbook/pb_typeahead/components/ClearIndicator.tsx +12 -4
  148. data/app/pb_kits/playbook/pb_typeahead/components/Control.tsx +5 -1
  149. data/app/pb_kits/playbook/pb_typeahead/components/IndicatorsContainer.tsx +8 -3
  150. data/app/pb_kits/playbook/pb_typeahead/components/MenuList.tsx +6 -1
  151. data/app/pb_kits/playbook/pb_typeahead/components/Option.tsx +21 -6
  152. data/app/pb_kits/playbook/pb_typeahead/components/Placeholder.tsx +13 -6
  153. data/app/pb_kits/playbook/pb_typeahead/components/ValueContainer.tsx +7 -3
  154. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_custom_menu_list.jsx +2 -0
  155. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_truncated_text.html.erb +19 -0
  156. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_truncated_text.jsx +27 -0
  157. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_truncated_text.md +1 -0
  158. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async.jsx +4 -2
  159. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async_custom_options.jsx +5 -5
  160. data/app/pb_kits/playbook/pb_typeahead/docs/example.yml +2 -0
  161. data/app/pb_kits/playbook/pb_typeahead/docs/index.js +1 -0
  162. data/dist/chunks/_typeahead-BWwaAo_0.js +36 -0
  163. data/dist/chunks/_weekday_stacked-zyBCd1s8.js +45 -0
  164. data/dist/chunks/lazysizes-B7xYodB-.js +1 -0
  165. data/dist/chunks/{lib-B7sgJtGS.js → lib-kMuhBuU7.js} +2 -2
  166. data/dist/chunks/{pb_form_validation-C5Cc0-1v.js → pb_form_validation-DBJ0wZuS.js} +1 -1
  167. data/dist/chunks/vendor.js +1 -1
  168. data/dist/menu.yml +6 -0
  169. data/dist/playbook-doc.js +1 -1
  170. data/dist/playbook-rails-react-bindings.js +1 -1
  171. data/dist/playbook-rails.js +1 -1
  172. data/dist/playbook.css +1 -1
  173. data/lib/playbook/pb_forms_global_props_helper.rb +136 -0
  174. data/lib/playbook/pb_forms_helper.rb +13 -4
  175. data/lib/playbook/version.rb +2 -2
  176. metadata +67 -9
  177. data/dist/chunks/_typeahead-C2iCBqxQ.js +0 -36
  178. data/dist/chunks/_weekday_stacked-E-5KcEkc.js +0 -45
  179. data/dist/chunks/lazysizes-DHz07jlL.js +0 -1
  180. /data/app/pb_kits/playbook/pb_advanced_table/docs/{_advanced_table_table_props.md → _advanced_table_table_props_react.md} +0 -0
  181. /data/app/pb_kits/playbook/pb_table/docs/{_table_with_collapsible.md → _table_with_collapsible_react.md} +0 -0
@@ -0,0 +1,136 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Playbook
4
+ module PbFormsGlobalPropsHelper
5
+ private
6
+
7
+ def generate_prop_classes(props)
8
+ classes = []
9
+
10
+ props.each do |prop, value|
11
+ next if value.nil?
12
+
13
+ classes << case prop
14
+ when :padding
15
+ "p_#{value}"
16
+ when :padding_top
17
+ "pt_#{value}"
18
+ when :padding_bottom
19
+ "pb_#{value}"
20
+ when :padding_left
21
+ "pl_#{value}"
22
+ when :padding_right
23
+ "pr_#{value}"
24
+ when :padding_x
25
+ "px_#{value}"
26
+ when :padding_y
27
+ "py_#{value}"
28
+ when :margin
29
+ "m_#{value}"
30
+ when :margin_top
31
+ "mt_#{value}"
32
+ when :margin_bottom
33
+ "mb_#{value}"
34
+ when :margin_left
35
+ "ml_#{value}"
36
+ when :margin_right
37
+ "mr_#{value}"
38
+ when :margin_x
39
+ "mx_#{value}"
40
+ when :margin_y
41
+ "my_#{value}"
42
+ when :shadow
43
+ "shadow_#{value}"
44
+ when :width
45
+ value.to_s.end_with?("%") ? "width_#{value.to_i}_percent" : "width_#{value.downcase}"
46
+ when :min_width
47
+ value.to_s.end_with?("%") ? "min_width_#{value.to_i}_percent" : "min_width_#{value.downcase}"
48
+ when :max_width
49
+ value.to_s.end_with?("%") ? "max_width_#{value.to_i}_percent" : "max_width_#{value.downcase}"
50
+ when :height
51
+ "height_#{value.downcase}"
52
+ when :min_height
53
+ "min_height_#{value.downcase}"
54
+ when :max_height
55
+ "max_height_#{value.downcase}"
56
+ when :position
57
+ "position_#{value}"
58
+ when :vertical_alignment
59
+ "vertical_align_#{value}"
60
+ when :z_index
61
+ "z_index_#{value}"
62
+ when :line_height
63
+ "line_height_#{value}"
64
+ when :number_spacing
65
+ "ns_#{value}"
66
+ when :border_radius
67
+ "border_radius_#{value}"
68
+ when :text_size
69
+ "text_#{value}"
70
+ when :letter_spacing
71
+ "ls_#{value}"
72
+ when :display
73
+ "display_#{value}"
74
+ when :cursor
75
+ "cursor_#{value}"
76
+ when :hover
77
+ if value.is_a?(Hash)
78
+ value.map do |hover_prop, hover_value|
79
+ case hover_prop
80
+ when :shadow
81
+ "hover_shadow_#{hover_value}"
82
+ when :scale
83
+ "hover_scale_#{hover_value}"
84
+ when :underline
85
+ hover_value == true ? "hover_underline" : nil
86
+ when :color
87
+ "hover_color_#{hover_value}"
88
+ when :background
89
+ "hover_background_#{hover_value}"
90
+ end
91
+ end
92
+ else
93
+ "hover_#{value}"
94
+ end
95
+ when :text_align
96
+ "text_align_#{value}"
97
+ when :overflow
98
+ "overflow_#{value}"
99
+ when :overflow_x
100
+ "overflow_x_#{value}"
101
+ when :overflow_y
102
+ "overflow_y_#{value}"
103
+ when :truncate
104
+ "truncate_#{value}"
105
+ when :group_hover
106
+ value ? "group_hover" : nil
107
+ end
108
+ end
109
+
110
+ classes.flatten.compact
111
+ end
112
+
113
+ def extract_all_props(options)
114
+ global_props = %i[
115
+ padding padding_top padding_bottom padding_left padding_right padding_x padding_y
116
+ margin margin_top margin_bottom margin_left margin_right margin_x margin_y
117
+ shadow width min_width max_width height min_height max_height
118
+ position vertical_alignment z_index line_height number_spacing
119
+ border_radius text_size letter_spacing display cursor hover
120
+ text_align overflow overflow_x overflow_y truncate group_hover
121
+ ]
122
+
123
+ props = {}
124
+ form_opts = options.dup
125
+
126
+ global_props.each { |prop| props[prop] = form_opts.delete(prop) if form_opts.key?(prop) }
127
+
128
+ if form_opts[:props].is_a?(Hash)
129
+ nested_props = form_opts.delete(:props)
130
+ props.merge!(nested_props.slice(*global_props))
131
+ end
132
+
133
+ [props, form_opts]
134
+ end
135
+ end
136
+ end
@@ -1,7 +1,10 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require_relative "pb_forms_global_props_helper"
4
+
3
5
  module Playbook
4
6
  module PbFormsHelper
7
+ include Playbook::PbFormsGlobalPropsHelper
5
8
  # Renders a pb form with ::Playbook::Forms::Builder, that can render
6
9
  # Playbook kits in the most railsie way.
7
10
  #
@@ -23,11 +26,17 @@ module Playbook
23
26
  # @param validate [Boolean] whether validation should be triggered or not
24
27
  # @see [#form_with] for other options
25
28
  def pb_form_with(data: {}, validate: false, loading: false, **kwargs, &block)
29
+ global_props, form_options = extract_all_props(kwargs)
30
+
31
+ classnames = ["pb-form"]
32
+ classnames << form_options[:class] if form_options[:class].present?
33
+ classnames << "pb_form_loading" if loading
34
+ classnames.concat(generate_prop_classes(global_props))
35
+
26
36
  data = data.merge("pb-form-validation" => validate)
27
- classname = ["pb-form", kwargs[:class]].join(" ")
28
- classname += " pb_form_loading" if loading
29
- options = kwargs.merge(
30
- class: classname,
37
+
38
+ options = form_options.merge(
39
+ class: classnames.compact.join(" "),
31
40
  data: data,
32
41
  builder: ::Playbook::Forms::Builder
33
42
  )
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Playbook
4
- PREVIOUS_VERSION = "14.10.0"
5
- VERSION = "14.11.0"
4
+ PREVIOUS_VERSION = "14.11.1"
5
+ VERSION = "14.11.1.pre.alpha.PBNTR440enableglobalpropspbformwith5624"
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.11.0
4
+ version: 14.11.1.pre.alpha.PBNTR440enableglobalpropspbformwith5624
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-01-08 00:00:00.000000000 Z
12
+ date: 2025-01-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack
@@ -95,6 +95,20 @@ dependencies:
95
95
  - - "~>"
96
96
  - !ruby/object:Gem::Version
97
97
  version: 0.3.2
98
+ - !ruby/object:Gem::Dependency
99
+ name: brakeman
100
+ requirement: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - '='
103
+ - !ruby/object:Gem::Version
104
+ version: 7.0.0
105
+ type: :development
106
+ prerelease: false
107
+ version_requirements: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - '='
110
+ - !ruby/object:Gem::Version
111
+ version: 7.0.0
98
112
  - !ruby/object:Gem::Dependency
99
113
  name: byebug
100
114
  requirement: !ruby/object:Gem::Requirement
@@ -288,12 +302,21 @@ files:
288
302
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.md
289
303
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_loading.jsx
290
304
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_loading.md
305
+ - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_no_subrows.jsx
291
306
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pagination.jsx
292
307
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pagination.md
293
308
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pagination_with_props.jsx
294
309
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pagination_with_props.md
295
310
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_responsive.jsx
296
311
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_responsive.md
312
+ - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows.jsx
313
+ - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows.md
314
+ - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_actions.jsx
315
+ - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_actions.md
316
+ - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_header.jsx
317
+ - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_header.md
318
+ - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_no_subrows.jsx
319
+ - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_no_subrows.md
297
320
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort.jsx
298
321
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort.md
299
322
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort_control.jsx
@@ -302,10 +325,14 @@ files:
302
325
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_subrow_headers.md
303
326
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_options.jsx
304
327
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_options.md
328
+ - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props.html.erb
305
329
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props.jsx
306
- - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props.md
330
+ - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_rails.md
331
+ - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_react.md
307
332
  - app/pb_kits/playbook/pb_advanced_table/docs/_mock_data_inline_loading.js
308
333
  - app/pb_kits/playbook/pb_advanced_table/docs/advanced_table_mock_data.json
334
+ - app/pb_kits/playbook/pb_advanced_table/docs/advanced_table_mock_data_no_subrows.json
335
+ - app/pb_kits/playbook/pb_advanced_table/docs/advanced_table_mock_data_with_id.json
309
336
  - app/pb_kits/playbook/pb_advanced_table/docs/advanced_table_pagination_mock_data.json
310
337
  - app/pb_kits/playbook/pb_advanced_table/docs/example.yml
311
338
  - app/pb_kits/playbook/pb_advanced_table/docs/index.js
@@ -914,6 +941,8 @@ files:
914
941
  - app/pb_kits/playbook/pb_date_picker/docs/_date_picker_time.html.erb
915
942
  - app/pb_kits/playbook/pb_date_picker/docs/_date_picker_time.jsx
916
943
  - app/pb_kits/playbook/pb_date_picker/docs/_date_picker_time.md
944
+ - app/pb_kits/playbook/pb_date_picker/docs/_date_picker_turbo_frames.html.erb
945
+ - app/pb_kits/playbook/pb_date_picker/docs/_date_picker_turbo_frames_rails.md
917
946
  - app/pb_kits/playbook/pb_date_picker/docs/_date_picker_week.html.erb
918
947
  - app/pb_kits/playbook/pb_date_picker/docs/_date_picker_week.jsx
919
948
  - app/pb_kits/playbook/pb_date_picker/docs/_date_picker_week.md
@@ -1130,8 +1159,11 @@ files:
1130
1159
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_with_list.jsx
1131
1160
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_with_list.md
1132
1161
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_with_list_rails.html.erb
1162
+ - app/pb_kits/playbook/pb_draggable/docs/_draggable_with_list_rails.md
1133
1163
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_with_selectable_list.jsx
1134
1164
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_with_selectable_list.md
1165
+ - app/pb_kits/playbook/pb_draggable/docs/_draggable_with_selectable_list_rails.html.erb
1166
+ - app/pb_kits/playbook/pb_draggable/docs/_draggable_with_selectable_list_rails.md
1135
1167
  - app/pb_kits/playbook/pb_draggable/docs/example.yml
1136
1168
  - app/pb_kits/playbook/pb_draggable/docs/index.js
1137
1169
  - app/pb_kits/playbook/pb_draggable/draggable.html.erb
@@ -1148,6 +1180,8 @@ files:
1148
1180
  - app/pb_kits/playbook/pb_drawer/_drawer.scss
1149
1181
  - app/pb_kits/playbook/pb_drawer/_drawer.tsx
1150
1182
  - app/pb_kits/playbook/pb_drawer/_drawer_context.tsx
1183
+ - app/pb_kits/playbook/pb_drawer/context.ts
1184
+ - app/pb_kits/playbook/pb_drawer/docs/_drawer_behavior.jsx
1151
1185
  - app/pb_kits/playbook/pb_drawer/docs/_drawer_borders.jsx
1152
1186
  - app/pb_kits/playbook/pb_drawer/docs/_drawer_breakpoints.jsx
1153
1187
  - app/pb_kits/playbook/pb_drawer/docs/_drawer_default.html.erb
@@ -1161,6 +1195,8 @@ files:
1161
1195
  - app/pb_kits/playbook/pb_drawer/drawer.html.erb
1162
1196
  - app/pb_kits/playbook/pb_drawer/drawer.rb
1163
1197
  - app/pb_kits/playbook/pb_drawer/drawer.test.jsx
1198
+ - app/pb_kits/playbook/pb_drawer/hooks/useBreakpoint.tsx
1199
+ - app/pb_kits/playbook/pb_drawer/hooks/useDrawerAnimation.tsx
1164
1200
  - app/pb_kits/playbook/pb_dropdown/_dropdown.scss
1165
1201
  - app/pb_kits/playbook/pb_dropdown/_dropdown.tsx
1166
1202
  - app/pb_kits/playbook/pb_dropdown/context/index.tsx
@@ -1562,6 +1598,11 @@ files:
1562
1598
  - app/pb_kits/playbook/pb_icon/icon.html.erb
1563
1599
  - app/pb_kits/playbook/pb_icon/icon.rb
1564
1600
  - app/pb_kits/playbook/pb_icon/icon.test.js
1601
+ - app/pb_kits/playbook/pb_icon_button/_icon_button.scss
1602
+ - app/pb_kits/playbook/pb_icon_button/docs/_icon_button_default.html.erb
1603
+ - app/pb_kits/playbook/pb_icon_button/docs/example.yml
1604
+ - app/pb_kits/playbook/pb_icon_button/icon_button.html.erb
1605
+ - app/pb_kits/playbook/pb_icon_button/icon_button.rb
1565
1606
  - app/pb_kits/playbook/pb_icon_circle/_icon_circle.scss
1566
1607
  - app/pb_kits/playbook/pb_icon_circle/_icon_circle.tsx
1567
1608
  - app/pb_kits/playbook/pb_icon_circle/docs/_description.md
@@ -2138,6 +2179,9 @@ files:
2138
2179
  - app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_default.html.erb
2139
2180
  - app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_default.jsx
2140
2181
  - app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_default.md
2182
+ - app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_format.html.erb
2183
+ - app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_format.jsx
2184
+ - app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_format.md
2141
2185
  - app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_initial_country.html.erb
2142
2186
  - app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_initial_country.jsx
2143
2187
  - app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_initial_country.md
@@ -2643,13 +2687,17 @@ files:
2643
2687
  - app/pb_kits/playbook/pb_table/docs/_table_sticky.html.erb
2644
2688
  - app/pb_kits/playbook/pb_table/docs/_table_sticky.jsx
2645
2689
  - app/pb_kits/playbook/pb_table/docs/_table_sticky.md
2690
+ - app/pb_kits/playbook/pb_table/docs/_table_sticky_columns.html.erb
2646
2691
  - app/pb_kits/playbook/pb_table/docs/_table_sticky_columns.jsx
2692
+ - app/pb_kits/playbook/pb_table/docs/_table_sticky_columns_rails.md
2647
2693
  - app/pb_kits/playbook/pb_table/docs/_table_sticky_columns_react.md
2648
2694
  - app/pb_kits/playbook/pb_table/docs/_table_sticky_left_columns.html.erb
2649
2695
  - app/pb_kits/playbook/pb_table/docs/_table_sticky_left_columns.jsx
2650
2696
  - app/pb_kits/playbook/pb_table/docs/_table_sticky_left_columns_rails.md
2651
2697
  - app/pb_kits/playbook/pb_table/docs/_table_sticky_left_columns_react.md
2698
+ - app/pb_kits/playbook/pb_table/docs/_table_sticky_right_columns.html.erb
2652
2699
  - app/pb_kits/playbook/pb_table/docs/_table_sticky_right_columns.jsx
2700
+ - app/pb_kits/playbook/pb_table/docs/_table_sticky_right_columns_rails.md
2653
2701
  - app/pb_kits/playbook/pb_table/docs/_table_sticky_right_columns_react.md
2654
2702
  - app/pb_kits/playbook/pb_table/docs/_table_striped.html.erb
2655
2703
  - app/pb_kits/playbook/pb_table/docs/_table_striped.jsx
@@ -2664,8 +2712,10 @@ files:
2664
2712
  - app/pb_kits/playbook/pb_table/docs/_table_vertical_border.jsx
2665
2713
  - app/pb_kits/playbook/pb_table/docs/_table_with_background_kit.html.erb
2666
2714
  - app/pb_kits/playbook/pb_table/docs/_table_with_background_kit.jsx
2715
+ - app/pb_kits/playbook/pb_table/docs/_table_with_collapsible.html.erb
2667
2716
  - app/pb_kits/playbook/pb_table/docs/_table_with_collapsible.jsx
2668
- - app/pb_kits/playbook/pb_table/docs/_table_with_collapsible.md
2717
+ - app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_rails.md
2718
+ - app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_react.md
2669
2719
  - app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_custom_click.jsx
2670
2720
  - app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_custom_click.md
2671
2721
  - app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_custom_content.jsx
@@ -2727,6 +2777,7 @@ files:
2727
2777
  - app/pb_kits/playbook/pb_table/table_header.rb
2728
2778
  - app/pb_kits/playbook/pb_table/table_row.html.erb
2729
2779
  - app/pb_kits/playbook/pb_table/table_row.rb
2780
+ - app/pb_kits/playbook/pb_table/utilities/addDataTitle.ts
2730
2781
  - app/pb_kits/playbook/pb_text_input/_text_input.scss
2731
2782
  - app/pb_kits/playbook/pb_text_input/_text_input.tsx
2732
2783
  - app/pb_kits/playbook/pb_text_input/add_on.html.erb
@@ -2750,13 +2801,16 @@ files:
2750
2801
  - app/pb_kits/playbook/pb_text_input/docs/_text_input_error_swift.md
2751
2802
  - app/pb_kits/playbook/pb_text_input/docs/_text_input_inline.html.erb
2752
2803
  - app/pb_kits/playbook/pb_text_input/docs/_text_input_inline.jsx
2804
+ - app/pb_kits/playbook/pb_text_input/docs/_text_input_mask.html.erb
2753
2805
  - app/pb_kits/playbook/pb_text_input/docs/_text_input_mask.jsx
2806
+ - app/pb_kits/playbook/pb_text_input/docs/_text_input_mask_rails.md
2754
2807
  - app/pb_kits/playbook/pb_text_input/docs/_text_input_no_label.html.erb
2755
2808
  - app/pb_kits/playbook/pb_text_input/docs/_text_input_no_label.jsx
2756
2809
  - app/pb_kits/playbook/pb_text_input/docs/_text_input_options.html.erb
2757
2810
  - app/pb_kits/playbook/pb_text_input/docs/_text_input_props_swift.md
2758
2811
  - app/pb_kits/playbook/pb_text_input/docs/example.yml
2759
2812
  - app/pb_kits/playbook/pb_text_input/docs/index.js
2813
+ - app/pb_kits/playbook/pb_text_input/index.js
2760
2814
  - app/pb_kits/playbook/pb_text_input/inputMask.ts
2761
2815
  - app/pb_kits/playbook/pb_text_input/text_input.html.erb
2762
2816
  - app/pb_kits/playbook/pb_text_input/text_input.rb
@@ -3044,6 +3098,9 @@ files:
3044
3098
  - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_margin_bottom.jsx
3045
3099
  - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_multi_kit.html.erb
3046
3100
  - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_multi_kit.jsx
3101
+ - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_truncated_text.html.erb
3102
+ - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_truncated_text.jsx
3103
+ - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_truncated_text.md
3047
3104
  - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_context.html.erb
3048
3105
  - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_highlight.jsx
3049
3106
  - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills.html.erb
@@ -3235,11 +3292,11 @@ files:
3235
3292
  - app/pb_kits/playbook/utilities/test/globalProps/truncate.test.js
3236
3293
  - app/pb_kits/playbook/utilities/text.ts
3237
3294
  - app/pb_kits/playbook/utilities/validEmojiChecker.ts
3238
- - dist/chunks/_typeahead-C2iCBqxQ.js
3239
- - dist/chunks/_weekday_stacked-E-5KcEkc.js
3240
- - dist/chunks/lazysizes-DHz07jlL.js
3241
- - dist/chunks/lib-B7sgJtGS.js
3242
- - dist/chunks/pb_form_validation-C5Cc0-1v.js
3295
+ - dist/chunks/_typeahead-BWwaAo_0.js
3296
+ - dist/chunks/_weekday_stacked-zyBCd1s8.js
3297
+ - dist/chunks/lazysizes-B7xYodB-.js
3298
+ - dist/chunks/lib-kMuhBuU7.js
3299
+ - dist/chunks/pb_form_validation-DBJ0wZuS.js
3243
3300
  - dist/chunks/vendor.js
3244
3301
  - dist/menu.yml
3245
3302
  - dist/playbook-doc.js
@@ -3291,6 +3348,7 @@ files:
3291
3348
  - lib/playbook/overflow.rb
3292
3349
  - lib/playbook/pagination_renderer.rb
3293
3350
  - lib/playbook/pb_doc_helper.rb
3351
+ - lib/playbook/pb_forms_global_props_helper.rb
3294
3352
  - lib/playbook/pb_forms_helper.rb
3295
3353
  - lib/playbook/pb_kit_helper.rb
3296
3354
  - lib/playbook/position.rb