myg 2.8.1 → 2.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d73d141e0399ee34c932b0b6ae90c9ef4069956c65b74e00823dbf9859c7f8ea
4
- data.tar.gz: 7d6113e328dccf9202b8b4cc60a4b8a3893c5afb1cb5a8f2fb64e77c5094e58f
3
+ metadata.gz: fb17af5bbbc1e1b865e000c8099c716ff992b651250b4403957ebe3e9a83c679
4
+ data.tar.gz: c99b18a42e3a793a0328835da730745fdc1d1c388a2a6b7026d3415bc4714ed3
5
5
  SHA512:
6
- metadata.gz: 5a8f981672933425d5c6c5c802669e4f22a7fa464043b832ae9423f87828d660524e5047ef7e7c4ad3404165b64336808be4d7e1f6e82d02d9ce63673ad50bf6
7
- data.tar.gz: 4af3e452a621e80eaad33ad11e2d6a99ec360858f873cc279f3aebd562c745392a724a54d16c2b8aab925af8b61dace9748e38b2468c736999201cc380e8c5fc
6
+ metadata.gz: e4070d42c085a9ff1cf201decc487a099ad8a6c476be0842f68a108405d413260a87f1fe7639372a37ec6c26104747eaa4a56b817d8db368f79de290fe869549
7
+ data.tar.gz: 4f1721cdff5ee79322889ddc7937985be3a5aa325061fd798aacf8351f752835d6555d69a76bbddb0e365b0140ef41a32ee22f130b7ebd56400878b68432ce87
@@ -4,6 +4,11 @@
4
4
 
5
5
  * nothing yet
6
6
 
7
+ ### 2.9.0 - 2018/04/16
8
+
9
+ * features
10
+ * add `textarea` component
11
+
7
12
  ### 2.8.1 - 2018/03/26
8
13
 
9
14
  * bugfixes
data/README.md CHANGED
@@ -85,6 +85,7 @@ These are the components currently supported by Myg on Rails:
85
85
  * [`slider`](components/myg/slider.md)
86
86
  * [`switch`](components/myg/switch.md)
87
87
  * [`tabs`](components/myg/tabs.md)
88
+ * [`textarea`](components/myg/textarea.md)
88
89
  * [`titlebar`](components/myg/titlebar.md)
89
90
  * [`toast`](components/myg/toast.md)
90
91
  * [`toolbar`](components/myg/toolbar.md)
@@ -0,0 +1,12 @@
1
+ <% class_name = options.delete :class_name %>
2
+ <% attribute = options.delete :attribute %>
3
+ <% identifier = options.delete :identifier %>
4
+ <% name = class_name ? "#{class_name.to_s.downcase}[#{attribute}]" : "#{attribute}" %>
5
+ <% id = [class_name, identifier, attribute].map { |s| s.to_s.downcase }.join('_').tr('[', '_').tr(']', '_') %>
6
+ <% html = {
7
+ class: ['myg-textarea', options[:class]].join(' '),
8
+ name: name,
9
+ id: id
10
+ } %>
11
+
12
+ <%= content_tag 'textarea', options.merge(html) do %><%= block %><% end %>
@@ -7,7 +7,6 @@ import './drawer';
7
7
  import './dropdown';
8
8
  import './footer';
9
9
  import './form-field';
10
- import './icon';
11
10
  import './input';
12
11
  import './menu';
13
12
  import './modal';
@@ -5,5 +5,5 @@ import MygModal from 'myg-modal';
5
5
  document.addEventListener( event, init );
6
6
  })
7
7
  function init() {
8
- const mygModals = MygModal.initAll( document.querySelectorAll('.myg-modal'), {} );
8
+ const mygModals = MygModal.initAll( document.querySelectorAll('.modalist'), {} );
9
9
  }
@@ -20,9 +20,6 @@
20
20
  // @import "myg-form-field/form-field"
21
21
  // @import "myg-grid/grid"
22
22
  // @import "myg-hint/hint"
23
- // @import "myg-icon/fonts/myg/myg"
24
- // @import "myg-icon/fonts/myg-o/myg-o"
25
- // @import "myg-icon/fonts/google/google"
26
23
  // @import "myg-input/input"
27
24
  // @import "myg-label/label"
28
25
  // @import "myg-layout/layout"
@@ -17,6 +17,7 @@ module Myg
17
17
  config.define_component 'myg/slider', discrete: false, disabled: false, value: 0, min: 0, max: 50, label: 'Select value'
18
18
  config.define_component 'myg/switch'
19
19
  config.define_component 'myg/tabs', async: false
20
+ config.define_component 'myg/textarea'
20
21
  config.define_component 'myg/titlebar', close: true
21
22
  config.define_component 'myg/toast'
22
23
  config.define_component 'myg/toolbar'
@@ -1,5 +1,5 @@
1
1
  module Myg
2
2
 
3
- VERSION = '2.8.1'
3
+ VERSION = '2.9.0'
4
4
 
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: myg
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.8.1
4
+ version: 2.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonas Hübotter
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-26 00:00:00.000000000 Z
11
+ date: 2018-04-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -117,6 +117,7 @@ files:
117
117
  - app/views/mozaic/myg/_slider.html.erb
118
118
  - app/views/mozaic/myg/_switch.html.erb
119
119
  - app/views/mozaic/myg/_tabs.html.erb
120
+ - app/views/mozaic/myg/_textarea.html.erb
120
121
  - app/views/mozaic/myg/_titlebar.html.erb
121
122
  - app/views/mozaic/myg/_toast.html.erb
122
123
  - app/views/mozaic/myg/_toolbar.html.erb
@@ -133,7 +134,6 @@ files:
133
134
  - lib/generators/templates/install/javascripts/dropdown.js
134
135
  - lib/generators/templates/install/javascripts/footer.js
135
136
  - lib/generators/templates/install/javascripts/form-field.js
136
- - lib/generators/templates/install/javascripts/icon.js
137
137
  - lib/generators/templates/install/javascripts/index.js.erb
138
138
  - lib/generators/templates/install/javascripts/input.js
139
139
  - lib/generators/templates/install/javascripts/menu.js
@@ -1,9 +0,0 @@
1
- import MygIcon from 'myg-icon';
2
-
3
- ['turbolinks:load', 'modalist:render', 'myg-tabs:render'].forEach( (event) => {
4
- document.removeEventListener( event, init );
5
- document.addEventListener( event, init );
6
- })
7
- function init() {
8
- const mygIcons = MygIcon.initAll( document.querySelectorAll('.myg-icon'), {} );
9
- }