motion-prime 0.8.8 → 0.8.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MTgzMTQxYzA3ZTY5Y2JlMmJiMGZhMjZkMjM4YmRhOGNiMzA3NWZhMQ==
4
+ MDU5ZjVmMDI5MTA2ZmNiOTU0YjU3NTAxNTJhM2U0OWQ1MDljYzU0Mg==
5
5
  data.tar.gz: !binary |-
6
- MGE4ZTU3MzVkNmUwNDJjMmU0YzY0MDEyNWQ3NGE2ZTU5Mzk1ZGI4ZA==
6
+ MGNkZTRhOTYzYzg4NDljYWM4NGExMjIyZDBhYjdiYTQ2ZGE4MzAwNA==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- NzZlMDNlNWYwMWMwYjE4ZWU5ZmEyNDEwNjQzYzY2NWE4Y2I1NDYxYWM0NmY2
10
- NDZiNTNmMDQ3ZDE4MzQ4NTRhMDcwMzliNWQ4ZTkyMmI5ZTlhMWZlYjEwMTk2
11
- YzViYmRkMjE0NThjYjE4ZTFlNjJjYTQxNTlmOWQ4ZDY3NDUzYTQ=
9
+ Mzk3NjYzNTA5NWI5MDVkNzgyMDhmNjJiMTMxZWY1Njc1MzU2MDFjY2E3YTE2
10
+ ZTEwYzFmODQyNjlhNGZhYjBhZWQ4NmRjMTA0YzVlZmY0NDcyYjgwY2FkZmE2
11
+ NzY2ZmVjOWZmMGY3Yjk3YjcwNzMzMWE3ZGZhYjMxMTYwNTJhOTU=
12
12
  data.tar.gz: !binary |-
13
- NzYxOGNhODZhOGY5OGU5YThlMjI4ZGVmOWFjZjEzNTFiYzllZTJmOGE2NGY3
14
- MzVmYzZkOTUwOTMyYjIxOGI3YTljY2M2N2Q1OGNlMWE2NWYwYWY2ODUxOTcx
15
- YWRhMTVjMTIzYzg5YmI4NGI4ZGUzMDgzMTAxMDY0NGI3MTQ1Zjc=
13
+ OTRjNzZmOTI5YjRhMmQzNDBiNDQxY2Y5ZDI1MDljZDlkZDY2MGExYjU1NjVk
14
+ MWNhMGI5Nzk1Yjg2MzQ2MWIzYWFiYjE2ZDY1MDliYzExZWE5ZDNlOWEwMzg4
15
+ ZGJjNDFkNWM5NTJkNjk3MDA1YmE1ZjhjMzkyMGFmMWMzYzMxMmU=
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ === 0.8.9
2
+ * Update form default styles.
3
+
1
4
  === 0.8.8
2
5
  * Improve model inspection.
3
6
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- motion-prime (0.8.8)
4
+ motion-prime (0.8.9)
5
5
  afmotion (~> 2.0.0)
6
6
  bubble-wrap (~> 1.5.0)
7
7
  cocoapods
@@ -61,7 +61,7 @@ GEM
61
61
  open4 (1.3.3)
62
62
  rake (10.1.1)
63
63
  rm-digest (0.0.2)
64
- sugarcube (1.5.3)
64
+ sugarcube (1.5.4)
65
65
  xcodeproj (0.14.1)
66
66
  activesupport (~> 3.0)
67
67
  colored (~> 1.2)
data/ROADMAP.md CHANGED
@@ -3,7 +3,9 @@
3
3
  * Move bind keyboard events to forms.
4
4
 
5
5
  === 1.0.0
6
- * bug: if mp label do not have text and was set as hidden, it should unhide after setting text
6
+ * bug: content_vertical_alignment conflicts with padding.
7
+ * bug: content_vertical_alignment has not ideal centering.
8
+ * bug: if mp label do not have text and was set as hidden, it should unhide after setting text.
7
9
  * bug: size_to_fit works incorrect with relative width.
8
10
  * bug: bind_keyboard_close breaks bind_guesture
9
11
  * bug: dealloc of Prime::Section will not be called for cell created in table_data using #map.
data/files/Gemfile CHANGED
@@ -1,7 +1,7 @@
1
1
  source 'http://rubygems.org'
2
2
 
3
3
  gem 'motion-cocoapods', '~> 1.4.0'
4
- gem 'motion-prime', '0.8.8'
4
+ gem 'motion-prime', '0.8.9'
5
5
 
6
6
  # add reside menu for sidebar support
7
7
  gem 'prime_reside_menu', '~> 0.1.4'
@@ -19,10 +19,10 @@ MotionPrime::Styles.define :base do
19
19
  # basic form styles
20
20
  # ----------
21
21
  style :form,
22
- width: 280,
23
- left: 20,
22
+ width: 320,
23
+ left: 0,
24
24
  top: 0,
25
- right: 30,
25
+ right: 0,
26
26
  bottom: 0,
27
27
  background_color: :clear,
28
28
  separator_color: :clear,
@@ -35,8 +35,8 @@ MotionPrime::Styles.define :base do
35
35
  style :submit_button, :form_submit_field_button,
36
36
  background_color: :gray,
37
37
  title_color: :white,
38
- left: 0,
39
- right: 0,
38
+ left: 20,
39
+ right: 20,
40
40
  top: 10,
41
41
  height: 44
42
42
 
@@ -5,38 +5,34 @@ MotionPrime::Styles.define :base_form do
5
5
  left: 0,
6
6
  bottom: 5,
7
7
  top: nil,
8
- width: 320,
8
+ right: 0,
9
9
  size_to_fit: true
10
10
 
11
11
  style :header_hint,
12
12
  left: 0,
13
13
  bottom: 5,
14
14
  top: nil,
15
- width: 320
15
+ right: 0
16
16
 
17
17
  style :field, :cell,
18
18
  selection_style: :none,
19
19
  background_color: :clear
20
20
 
21
- style :with_sections,
22
- left: 0,
23
- right: 0
24
-
25
21
  style :field_label,
26
22
  background_color: :clear,
27
23
  text_color: :gray,
28
24
  top: 15,
29
25
  height: 16,
30
- left: 0,
31
- right: 0,
26
+ left: 20,
27
+ right: 20,
32
28
  font: proc { :app_base.uifont(12) },
33
29
  size_to_fit: true
34
30
 
35
31
  style :field_error_message, mixins: [:multiline],
36
32
  top: nil,
37
33
  bottom: 0,
38
- width: 280,
39
- left: 0,
34
+ left: 20,
35
+ right: 20,
40
36
  text_color: :app_error,
41
37
  font: proc { :app_base.uifont(12) }
42
38
 
@@ -48,20 +44,21 @@ MotionPrime::Styles.define :base_form do
48
44
  font: proc { :app_base.uifont(16) },
49
45
  placeholder_font: proc { :app_base.uifont(16) },
50
46
  background_color: :white,
51
- left: 0,
52
- right: 0,
47
+ left: 20,
48
+ right: 20,
53
49
  top: 30,
54
50
  height: 30
55
51
 
56
52
  style :date_field_input,
57
- width: 300,
58
53
  height: 150,
59
- top: 30, left: 0
54
+ top: 30,
55
+ left: 20,
56
+ right: 20
60
57
 
61
58
  style :select_field_button,
62
59
  background_color: :white,
63
- left: 0,
64
- right: 0,
60
+ left: 20,
61
+ right: 20,
65
62
  top: 30,
66
63
  height: 35,
67
64
  title_shadow_color: :white,
@@ -75,43 +72,16 @@ MotionPrime::Styles.define :base_form do
75
72
  font: proc {:app_base.uifont(16) }
76
73
  }
77
74
 
78
- style :select_field_image,
75
+ style :select_field_arrow,
79
76
  image: "images/forms/select_arrow.png",
80
77
  top: 40,
81
- right: 5,
78
+ right: 25,
82
79
  width: 9,
83
80
  height: 14
84
81
 
85
- style :with_sections_field_switch,
86
- right: 20
87
-
88
- style :with_sections_field_text_field,
89
- :with_sections_field_text_view,
90
- :with_sections_field_password_field,
91
- :with_sections_field_label,
92
- :with_sections_field_button,
93
- left: 20,
94
- right: 20
95
-
96
- style :with_sections_select_field_image,
97
- right: 25
98
-
99
- style :with_sections_switch_field_input,
100
- right: 25
101
- style :with_sections_switch_field_label,
102
- left: 25
103
- style :with_sections_switch_hint,
104
- left: 25
105
-
106
- style :field_input_with_errors,
107
- layer: {
108
- border_color: :app_error
109
- },
110
- text_color: :app_error
111
-
112
82
  style :switch_field_input,
113
83
  top: 10,
114
- right: 0,
84
+ right: 20,
115
85
  width: 51
116
86
 
117
87
  style :switch_field_label,
@@ -121,4 +91,10 @@ MotionPrime::Styles.define :base_form do
121
91
  style :switch_field_hint,
122
92
  top: 40,
123
93
  font: proc { :app_base.uifont(12) }
124
- end
94
+
95
+ style :field_input_with_errors,
96
+ layer: {
97
+ border_color: :app_error
98
+ },
99
+ text_color: :app_error
100
+ end
@@ -1,3 +1,3 @@
1
1
  module MotionPrime
2
- VERSION = "0.8.8"
2
+ VERSION = "0.8.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: motion-prime
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.8
4
+ version: 0.8.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Iskander Haziev
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-03-05 00:00:00.000000000 Z
12
+ date: 2014-03-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake