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 +4 -4
- data/app/pb_kits/playbook/pb_docs/kit_example.rb +1 -0
- data/lib/playbook/pb_doc_helper.rb +14 -15
- data/lib/playbook/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2365d2c29f5d809d43a4b80e9965417638e23604b8018cc408298a402aab85f5
|
4
|
+
data.tar.gz: 44915471754a5fdc7fe931e3ebcce03793bd46144856ab1b0581bc62949e99e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
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
|
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: 13.9.0.pre.alpha.
|
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-
|
12
|
+
date: 2023-10-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: actionpack
|