playbook_ui 13.9.0.pre.alpha.play845allkitsbytypes1266 → 13.9.0.pre.alpha.play845allkitsbytypes1270

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: dd75764f72b4bb2917191a2c207c70b5d15a693fddfdfa22ceecaaba99612e53
4
- data.tar.gz: 312b4da9ec9808ad0288fd4ab4e89631160146e661dd06f2e44cff1db29f236a
3
+ metadata.gz: 2365d2c29f5d809d43a4b80e9965417638e23604b8018cc408298a402aab85f5
4
+ data.tar.gz: 44915471754a5fdc7fe931e3ebcce03793bd46144856ab1b0581bc62949e99e1
5
5
  SHA512:
6
- metadata.gz: a3cb3ac2786b777f5b619e44b2ccb3a9fcefcde3c30823d8228f823974b597dc8b4bd20374c7c62d6d2969917a82195d36d257074c6eac73c2642f79ce2ec152
7
- data.tar.gz: b1d30a2524cdda08af688d5b2546ab3136e31beda614af2792b6c08c551e684c1d4844fb5796b9e37a10107b59acc4f2f1a9cab6f0de442ef5f17b37efe0b00c
6
+ metadata.gz: 204807ef0fddbe7007a86c3fe50277be3134176b2559e4f6ad564eb098c9df7a1a8b8e9a8976100a86c71ec0d90ccb975df47bf7de20c11b6b3e8af7a7c8940d
7
+ data.tar.gz: c0ae1acf124b2034c816896dabe52634a5f93820d58e0dbe6769d0279a2c803194a9dfc0203f9c27fe4fa22412cb16139b66dfa3045a020440b74e6d3b07b799
@@ -11,6 +11,7 @@ module Playbook
11
11
  prop :show_code, type: Playbook::Props::Boolean, default: true
12
12
  prop :type, type: Playbook::Props::Enum, values: %w[rails react swift], default: "rails"
13
13
  prop :dark, type: Playbook::Props::Boolean, default: false
14
+ include PlaybookWebsite::Markdown::Helper
14
15
 
15
16
  def example
16
17
  if type == "rails"
@@ -7,21 +7,20 @@ module Playbook
7
7
  end
8
8
 
9
9
  def pb_kit(kit: "", type: "rails", show_code: true, limit_examples: false, dark_mode: false)
10
- # Check if the type is "swift" and return an empty string if it is
11
- return "" if type == "swift"
12
-
13
- examples = pb_doc_kit_examples(kit, type)
14
- examples = examples.first(1) if limit_examples
15
- examples.map do |example|
16
- pb_rails "docs/kit_example", props: {
17
- kit: kit,
18
- example_title: example.values.first,
19
- example_key: example.keys.first,
20
- show_code: show_code,
21
- type: type,
22
- dark: dark_mode,
23
- }
24
- end.join.yield_self(&method(:raw))
10
+ unless type == "swift"
11
+ examples = pb_doc_kit_examples(kit, type)
12
+ examples = examples.first(1) if limit_examples
13
+ examples.map do |example|
14
+ pb_rails "docs/kit_example", props: {
15
+ kit: kit,
16
+ example_title: example.values.first,
17
+ example_key: example.keys.first,
18
+ show_code: show_code,
19
+ type: type,
20
+ dark: dark_mode,
21
+ }
22
+ end.join.yield_self(&method(:raw))
23
+ end
25
24
  end
26
25
 
27
26
  # Deal with lists of kits, used in Playbook doc and Externally
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Playbook
4
4
  PREVIOUS_VERSION = "13.9.0"
5
- VERSION = "13.9.0.pre.alpha.play845allkitsbytypes1266"
5
+ VERSION = "13.9.0.pre.alpha.play845allkitsbytypes1270"
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.9.0.pre.alpha.play845allkitsbytypes1266
4
+ version: 13.9.0.pre.alpha.play845allkitsbytypes1270
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: 2023-10-05 00:00:00.000000000 Z
12
+ date: 2023-10-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack