playbook_ui 14.5.0.pre.alpha.PLAY1548intltelinputupdatelatest4037 → 14.5.0.pre.alpha.PLAY15814040

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 (29) 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_card/_card.tsx +5 -1
  6. data/app/pb_kits/playbook/pb_dialog/_dialog.tsx +5 -1
  7. data/app/pb_kits/playbook/pb_flex/_flex.tsx +3 -1
  8. data/app/pb_kits/playbook/pb_flex/_flex_item.tsx +8 -2
  9. data/app/pb_kits/playbook/pb_flex/flex_item.html.erb +3 -6
  10. data/app/pb_kits/playbook/pb_flex/flex_item.rb +5 -2
  11. data/app/pb_kits/playbook/pb_phone_number_input/_phone_number_input.scss +12 -61
  12. data/app/pb_kits/playbook/pb_phone_number_input/_phone_number_input.tsx +6 -15
  13. data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_preferred_countries.md +1 -1
  14. data/app/pb_kits/playbook/pb_phone_number_input/intlTelInput.scss +0 -2
  15. data/app/pb_kits/playbook/pb_phone_number_input/types.d.ts +1 -4
  16. data/app/pb_kits/playbook/pb_popover/_popover.tsx +1 -1
  17. data/app/pb_kits/playbook/utilities/globalPropNames.mjs +3 -0
  18. data/app/pb_kits/playbook/utilities/globalProps.ts +39 -2
  19. data/dist/chunks/_typeahead-D8vYsn7T.js +22 -0
  20. data/dist/chunks/{_weekday_stacked-BxOdmCPF.js → _weekday_stacked-CaNCkN7U.js} +1 -1
  21. data/dist/chunks/vendor.js +1 -1
  22. data/dist/playbook-doc.js +1 -1
  23. data/dist/playbook-rails-react-bindings.js +1 -1
  24. data/dist/playbook-rails.js +1 -1
  25. data/dist/playbook.css +1 -1
  26. data/lib/playbook/kit_base.rb +17 -0
  27. data/lib/playbook/version.rb +1 -1
  28. metadata +3 -3
  29. data/dist/chunks/_typeahead-CvmA5XOD.js +0 -22
@@ -73,6 +73,10 @@ module Playbook
73
73
  prop :aria, type: Playbook::Props::HashProp, default: {}
74
74
  prop :html_options, type: Playbook::Props::HashProp, default: {}
75
75
  prop :children, type: Playbook::Props::Proc
76
+ prop :style, type: Playbook::Props::HashProp, default: {}
77
+ prop :height
78
+ prop :min_height
79
+ prop :max_height
76
80
 
77
81
  def object
78
82
  self
@@ -82,6 +86,14 @@ module Playbook
82
86
  default_html_options.merge(html_options.deep_merge(data_attributes))
83
87
  end
84
88
 
89
+ def global_inline_props
90
+ {
91
+ height: height,
92
+ min_height: min_height,
93
+ max_height: max_height,
94
+ }.compact
95
+ end
96
+
85
97
  # rubocop:disable Layout/CommentIndentation
86
98
  # pb_content_tag information (potentially to be abstracted into its own dev doc in the future)
87
99
  # The pb_content_tag generates HTML content tags for rails kits with flexible options.
@@ -118,6 +130,7 @@ module Playbook
118
130
  data: data,
119
131
  class: classname,
120
132
  aria: aria,
133
+ style: inline_styles,
121
134
  }
122
135
  end
123
136
 
@@ -131,5 +144,9 @@ module Playbook
131
144
  aria: aria,
132
145
  }.transform_keys { |key| key.to_s.tr("_", "-").to_sym }
133
146
  end
147
+
148
+ def inline_styles
149
+ global_inline_props.map { |key, value| "#{key.to_s.gsub('_', '-')}: #{value};" }.join(" ")
150
+ end
134
151
  end
135
152
  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.PLAY1548intltelinputupdatelatest4037"
5
+ VERSION = "14.5.0.pre.alpha.PLAY15814040"
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.PLAY1548intltelinputupdatelatest4037
4
+ version: 14.5.0.pre.alpha.PLAY15814040
5
5
  platform: ruby
6
6
  authors:
7
7
  - Power UX
@@ -3079,8 +3079,8 @@ files:
3079
3079
  - app/pb_kits/playbook/utilities/test/globalProps/truncate.test.js
3080
3080
  - app/pb_kits/playbook/utilities/text.ts
3081
3081
  - app/pb_kits/playbook/utilities/validEmojiChecker.ts
3082
- - dist/chunks/_typeahead-CvmA5XOD.js
3083
- - dist/chunks/_weekday_stacked-BxOdmCPF.js
3082
+ - dist/chunks/_typeahead-D8vYsn7T.js
3083
+ - dist/chunks/_weekday_stacked-CaNCkN7U.js
3084
3084
  - dist/chunks/lazysizes-B7xYodB-.js
3085
3085
  - dist/chunks/lib-CEpcaI8y.js
3086
3086
  - dist/chunks/pb_form_validation-D9zkwt2b.js