playbook_ui 13.8.0.pre.alpha.play845allkitsbytypes1257 → 13.8.0.pre.alpha.play845allkitsbytypes1258
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/playbook/pb_doc_helper.rb +7 -5
- data/lib/playbook/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e5c8dbe877503d2a312add43c4ee5319192494aef32945e9a7c2f32dc254ad9d
|
4
|
+
data.tar.gz: 62a00cbb99b842e8a348dd33da90bedaac35ecc5fff1afc167f882014ef8d76c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 291bc413c5067b82944b7559d216f42a14aba1eb7a750db833c26fc0de76ea8dba1945e71022bc80c104eef3dfc391af8c82de6c0e31673b338625b1b495cbcf
|
7
|
+
data.tar.gz: 1a4abac14b519af6c39bbcb1a769ff6c7bfc41d6eee534d319fa7716fa2666d7dcc19df39749994853da9a0ac15704dc4ab52500f484f1b1c96622d2d13de846
|
@@ -69,7 +69,8 @@ module Playbook
|
|
69
69
|
component_content = ""
|
70
70
|
|
71
71
|
# Check if parent_kit is not nil
|
72
|
-
if
|
72
|
+
# Check if type is not "swift"
|
73
|
+
if parent_kit && type != "swift"
|
73
74
|
# Filter components based on the specified type
|
74
75
|
components = parent_kit["components"].select { |component| component["platforms"].include?(type) }
|
75
76
|
|
@@ -81,8 +82,8 @@ module Playbook
|
|
81
82
|
|
82
83
|
# Render the component UI content with the same styles/tags as the parent
|
83
84
|
component_ui = raw("<div class='pb--docItem-ui'>
|
84
|
-
|
85
|
-
|
85
|
+
#{pb_kit(kit: component_name, type: type, show_code: code, limit_examples: limit_examples, dark_mode: dark_mode)}
|
86
|
+
</div>")
|
86
87
|
|
87
88
|
# Combine the component name and component UI content
|
88
89
|
"#{title}#{component_ui}"
|
@@ -90,9 +91,10 @@ module Playbook
|
|
90
91
|
end
|
91
92
|
end
|
92
93
|
|
93
|
-
#
|
94
|
-
component_content.to_s
|
94
|
+
# Return the component_content
|
95
|
+
component_content.to_s
|
95
96
|
end
|
97
|
+
|
96
98
|
# rubocop:enable Style/OptionalBooleanParameter
|
97
99
|
|
98
100
|
private
|
data/lib/playbook/version.rb
CHANGED