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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fca3285826a75f3b9d44a0e5726d24854e107cce2b3f7a894eec629c6f397a6c
4
- data.tar.gz: cd5b05f22467153ea63f45b7f4cfa7abea00b2c3b5122dfdcaf182d9d2eea403
3
+ metadata.gz: e5c8dbe877503d2a312add43c4ee5319192494aef32945e9a7c2f32dc254ad9d
4
+ data.tar.gz: 62a00cbb99b842e8a348dd33da90bedaac35ecc5fff1afc167f882014ef8d76c
5
5
  SHA512:
6
- metadata.gz: 6235ebd6e4f39f1a17832e24bd5d281accd57d0d277131a16d8007bcae0fc6e6a22a3c03dd0a0348e6162e312cbe6d1e282af7dc0ca16c0dce3e845459cf73c9
7
- data.tar.gz: d51721b0949f7604806a15a5b8d41a8f107a702570586292580325cf5ea844d99e99a149cb80119a50b671df20b83fc7514063d5e9261224c106131de4edca6b
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 parent_kit
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
- #{pb_kit(kit: component_name, type: type, show_code: code, limit_examples: limit_examples, dark_mode: dark_mode)}
85
- </div>")
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
- # Combine the component content and UI content for the parent kit
94
- component_content.to_s.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
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Playbook
4
4
  PREVIOUS_VERSION = "13.8.0"
5
- VERSION = "13.8.0.pre.alpha.play845allkitsbytypes1257"
5
+ VERSION = "13.8.0.pre.alpha.play845allkitsbytypes1258"
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: 13.8.0.pre.alpha.play845allkitsbytypes1257
4
+ version: 13.8.0.pre.alpha.play845allkitsbytypes1258
5
5
  platform: ruby
6
6
  authors:
7
7
  - Power UX