playbook_ui 14.8.0.pre.alpha.play1648heightglobalprops4559 → 14.8.0.pre.alpha.play1648heightglobalprops4606

Sign up to get free protection for your applications and to get access to all the features.
@@ -172,8 +172,17 @@ module Playbook
172
172
  end
173
173
 
174
174
  def dynamic_inline_props
175
- styles = global_inline_props.map { |key, value| "#{key.to_s.gsub('_', '-')}: #{value}" if value.present? }.compact
175
+ styles = global_inline_props.map { |key, value| "#{key.to_s.gsub('_', '-')}: #{value}" if inline_validator(key, value) }.compact
176
176
  styles.join("; ").presence
177
177
  end
178
+
179
+ def inline_validator(key, value)
180
+ return false if value.nil?
181
+ return false if height_values.include?(value) && key == :height
182
+ return false if min_height_values.include?(value) && key == :min_height
183
+ return false if max_height_values.include?(value) && key == :max_height
184
+
185
+ true
186
+ end
178
187
  end
179
188
  end
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Playbook
4
4
  PREVIOUS_VERSION = "14.8.0"
5
- VERSION = "14.8.0.pre.alpha.play1648heightglobalprops4559"
5
+ VERSION = "14.8.0.pre.alpha.play1648heightglobalprops4606"
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.8.0.pre.alpha.play1648heightglobalprops4559
4
+ version: 14.8.0.pre.alpha.play1648heightglobalprops4606
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-11-19 00:00:00.000000000 Z
12
+ date: 2024-11-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack
@@ -3173,8 +3173,8 @@ files:
3173
3173
  - app/pb_kits/playbook/utilities/test/globalProps/truncate.test.js
3174
3174
  - app/pb_kits/playbook/utilities/text.ts
3175
3175
  - app/pb_kits/playbook/utilities/validEmojiChecker.ts
3176
- - dist/chunks/_typeahead-ZkBp8QRa.js
3177
- - dist/chunks/_weekday_stacked-BmqMRu1B.js
3176
+ - dist/chunks/_typeahead-dal1XERd.js
3177
+ - dist/chunks/_weekday_stacked-KjwZgsC3.js
3178
3178
  - dist/chunks/lazysizes-B7xYodB-.js
3179
3179
  - dist/chunks/lib-BC6ESsxG.js
3180
3180
  - dist/chunks/pb_form_validation-B_Z9rEbg.js