playbook_ui 14.8.0.pre.alpha.play1648heightglobalprops4559 → 14.8.0.pre.alpha.play1648heightglobalprops4606
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.
- checksums.yaml +4 -4
- data/app/pb_kits/playbook/pb_checkbox/checkbox.html.erb +2 -2
- data/app/pb_kits/playbook/pb_checkbox/checkbox.rb +0 -4
- data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_indeterminate.html.erb +84 -7
- data/app/pb_kits/playbook/pb_dropdown/_dropdown.scss +1 -0
- data/app/pb_kits/playbook/pb_dropdown/dropdown_container.html.erb +0 -1
- data/app/pb_kits/playbook/pb_dropdown/dropdown_container.rb +0 -4
- data/app/pb_kits/playbook/pb_typeahead/_typeahead.scss +3 -0
- data/app/pb_kits/playbook/utilities/_height.scss +4 -0
- data/app/pb_kits/playbook/utilities/_max_width.scss +4 -0
- data/app/pb_kits/playbook/utilities/_min_width.scss +1 -1
- data/app/pb_kits/playbook/utilities/globalProps.ts +18 -9
- data/dist/chunks/{_typeahead-ZkBp8QRa.js → _typeahead-dal1XERd.js} +1 -1
- data/dist/chunks/{_weekday_stacked-BmqMRu1B.js → _weekday_stacked-KjwZgsC3.js} +1 -1
- data/dist/chunks/vendor.js +1 -1
- data/dist/playbook-doc.js +1 -1
- data/dist/playbook-rails-react-bindings.js +1 -1
- data/dist/playbook-rails.js +1 -1
- data/dist/playbook.css +1 -1
- data/lib/playbook/kit_base.rb +10 -1
- data/lib/playbook/version.rb +1 -1
- metadata +4 -4
data/lib/playbook/kit_base.rb
CHANGED
@@ -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
|
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
|
data/lib/playbook/version.rb
CHANGED
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.
|
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-
|
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-
|
3177
|
-
- dist/chunks/_weekday_stacked-
|
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
|