playbook_ui 7.0.1.pre.alpha6 → 7.0.1.pre.alpha7

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: 8d8e2b2c7f60415520869809e38856c978b3199e5a873af9d118f623717cb192
4
- data.tar.gz: c2f24397446067724b9a66d5e6648316df1ac4d8d56b00c8a3ce7421f5f7eb58
3
+ metadata.gz: 6277b702a5d209a431328a05cc5d30d864b3bfa33de88f7cccf56de2e0290479
4
+ data.tar.gz: c53ee8489f05a1469e9c807fa098bf101e4ec952e492522e8fe52be888aa9caf
5
5
  SHA512:
6
- metadata.gz: 2c30361e83c8a2f8286137b940648e3b2ed68d40b50c557d8c885658a800fcec94a5082c280245d5c585514174a89e150ada78e0fc500371ddd9dc80321743a4
7
- data.tar.gz: 75a85ba04e767008d1218b0e38a74f7ad9c92a5c8df745d8fe3377e8f05b2ce807694d57317029495d39c615ea200891bf1c5cd6c32e848188ac9257e4a34be7
6
+ metadata.gz: 70cbb8322acfb6ae1bd87c53c71df14656a1d10df31ed45351514f7f52ae372c7d9cbbaf07aab91c4a49169da08b4bf4550caee02195ced747c085ebb644e87b
7
+ data.tar.gz: 85def105e9c7a799a65aad0abcb2f2c3160e35309b04366ebccfcf30354a8ece1159b3539c7a631633fbff33bced43583bddaab154e5e71adf6a63309c81c9b6
@@ -14,23 +14,5 @@ module Playbook
14
14
  Playbook.webpacker
15
15
  end
16
16
 
17
- def dark_mode
18
- if ENV["dark_mode"] == "true"
19
- true
20
- else
21
- false
22
- end
23
- end
24
-
25
- def dark_mode_props(props)
26
- if ENV["dark_mode"] == "true"
27
- props.merge(dark: dark_mode)
28
- elsif ENV["dark_mode"] == "false"
29
- props.merge(dark: dark_mode)
30
- else
31
- props
32
- end
33
- end
34
-
35
17
  end
36
18
  end
@@ -37,6 +37,24 @@ module Playbook
37
37
  end
38
38
  end
39
39
 
40
+ def dark_mode
41
+ if ENV["dark_mode"] == "true"
42
+ true
43
+ else
44
+ false
45
+ end
46
+ end
47
+
48
+ def dark_mode_props(props)
49
+ if ENV["dark_mode"] == "true"
50
+ props.merge(dark: dark_mode)
51
+ elsif ENV["dark_mode"] == "false"
52
+ props.merge(dark: dark_mode)
53
+ else
54
+ props
55
+ end
56
+ end
57
+
40
58
  def is_subkit?(kit)
41
59
  kit.match(%r{[/\\]})
42
60
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Playbook
4
- VERSION = "7.0.1-alpha6"
4
+ VERSION = "7.0.1-alpha7"
5
5
  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: 7.0.1.pre.alpha6
4
+ version: 7.0.1.pre.alpha7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Power UX