material-components-web 2.0.4 → 2.1.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: adb6399f41b0a2fdcb1e64f404596e38c16c9a82878ccbdbbcebbf06d0aa5c99
4
- data.tar.gz: 8c11bf3e93c82a71be7b553992119718d1b01600b6336b1553bcc6887b97544e
3
+ metadata.gz: ef2e64346e32f4efea3716b1de2f3854428e6e4234cd80a650ec7a7dead83e93
4
+ data.tar.gz: 07c3aafe17b1163de87188f589d0d48b1aaf8ba793d03b1c622fe1ecce7ae033
5
5
  SHA512:
6
- metadata.gz: fb512df537cf9a8001bdca3b52e611da9418fe7594946b71ed20b77b35232fa9daaac8aeada168855bd08a70ce740af91411097dd34562f1d8f9627cad7decb7
7
- data.tar.gz: 85793cffd3d0e8cd7bbe3dcc46a2236d0986e8b18555d0603e4c883f21cea36daabbcf6d4d39bdfdb232b21432a0368036333a7910a62faf9792c4409677e077
6
+ metadata.gz: 19e416e0b6b07c1090742b2e1c5aaa1c449c2aae17d382fb70f760bc7fc181201da4a14cdfa0bf9881795a25182184b2d6fca5aa58b1d11cca75ac6829a6cc84
7
+ data.tar.gz: 03f45f08c3df010e35c16c2fe61c33e55e588b8d2ee62281f74d6f0589ff8574df94ee79a8108068a83cf8dd86e972c26abfc286d81a29c6f300adcd08837857
data/CHANGELOG.md CHANGED
@@ -4,6 +4,12 @@
4
4
 
5
5
  * nothing yet
6
6
 
7
+ ### 2.1.0 - 2018/02/07
8
+
9
+ * features
10
+ * added `mdc-drawer` component
11
+ * added `mdc-toolbar` component
12
+
7
13
  ### 2.0.4 - 2018/01/13
8
14
 
9
15
  * bugfixes
@@ -1,6 +1,6 @@
1
1
  <div class="mdc-checkbox<%= ' mdc-checkbox--disabled' if options[:disabled] %>">
2
- <input value="0" type="hidden" name="<%= options[:class_name] ? options[:class_name].to_s + '[' + options[:attribute].to_s + ']' : options[:attribute].to_s %>" />
3
- <input type="checkbox" class="mdc-checkbox__native-control"<%= ' checked="true"' if options[:checked] %> value="1" name="<%= options[:class_name] ? options[:class_name].to_s + '[' + options[:attribute].to_s + ']' : options[:attribute].to_s %>" id="<%= options[:class_name] ? options[:class_name].to_s + '_' + options[:attribute].to_s : options[:attribute].to_s %>" />
2
+ <input value="0" type="hidden" name="<%= options[:class] ? options[:class].to_s + '[' + options[:attribute].to_s + ']' : options[:attribute].to_s %>" />
3
+ <input type="checkbox" class="mdc-checkbox__native-control"<%= ' checked="true"' if options[:checked] %> value="1" name="<%= options[:class] ? options[:class].to_s + '[' + options[:attribute].to_s + ']' : options[:attribute].to_s %>" id="<%= options[:class] ? options[:class].to_s + '_' + options[:attribute].to_s : options[:attribute].to_s %>" />
4
4
  <div class="mdc-checkbox__background">
5
5
  <svg class="mdc-checkbox__checkmark" viewBox="0 0 24 24">
6
6
  <path class="mdc-checkbox__checkmark__path" fill="none" stroke="white" d="M1.73,12.91 8.1,19.28 22.79,4.59"/>
@@ -8,4 +8,4 @@
8
8
  <div class="mdc-checkbox__mixedmark"></div>
9
9
  </div>
10
10
  </div>
11
- <% if options[:label] %><label for="<%= options[:class_name] ? options[:class_name].to_s + '_' + options[:attribute].to_s : options[:attribute].to_s %>"><%= options[:label].html_safe %></label><% end %>
11
+ <% if options[:label] %><label for="<%= options[:class] ? options[:class].to_s + '_' + options[:attribute].to_s : options[:attribute].to_s %>"><%= options[:label].html_safe %></label><% end %>
@@ -0,0 +1,4 @@
1
+ <<%= options[:type] == 'permanent' ? 'nav' : 'aside' %> class="mdc-drawer mdc-drawer--<%= options[:type] %> <%= options[:class] %>" id="<%= options[:id] %>">
2
+ <% if options[:above_toolbar] == 'permanent' %><div class="mdc-drawer__toolbar-spacer"></div><% end %>
3
+ <%= block %>
4
+ </<%= options[:type] == 'permanent' ? 'nav' : 'aside' %>>
@@ -1,8 +1,8 @@
1
1
  <div class="mdc-radio<%= ' mdc-radio--disabled' if options[:disabled] %>">
2
- <input class="mdc-radio__native-control" type="radio"<%= ' checked="true"' if options[:checked] %> value="<%= options[:value] %>" name="<%= options[:class_name] ? options[:class_name].to_s + '[' + options[:attribute].to_s + ']' : options[:attribute].to_s %>" id="<%= options[:class_name] ? options[:class_name].to_s + '_' + options[:attribute].to_s + '_' + options[:value].to_s : options[:attribute].to_s + '_' + options[:value].to_s %>" />
2
+ <input class="mdc-radio__native-control" type="radio"<%= ' checked="true"' if options[:checked] %> value="<%= options[:value] %>" name="<%= options[:class] ? options[:class].to_s + '[' + options[:attribute].to_s + ']' : options[:attribute].to_s %>" id="<%= options[:class] ? options[:class].to_s + '_' + options[:attribute].to_s + '_' + options[:value].to_s : options[:attribute].to_s + '_' + options[:value].to_s %>" />
3
3
  <div class="mdc-radio__background">
4
4
  <div class="mdc-radio__outer-circle"></div>
5
5
  <div class="mdc-radio__inner-circle"></div>
6
6
  </div>
7
7
  </div>
8
- <% if options[:label] %><label for="<%= options[:class_name] ? options[:class_name].to_s + '_' + options[:attribute].to_s + '_' + options[:value].to_s : options[:attribute].to_s + '_' + options[:value].to_s %>"><%= options[:label].html_safe %></label><% end %>
8
+ <% if options[:label] %><label for="<%= options[:class] ? options[:class].to_s + '_' + options[:attribute].to_s + '_' + options[:value].to_s : options[:attribute].to_s + '_' + options[:value].to_s %>"><%= options[:label].html_safe %></label><% end %>
@@ -0,0 +1,3 @@
1
+ <header class="mdc-toolbar <%= options[:class] %>" id="<%= options[:id] %>">
2
+ <%= block %>
3
+ </header>
@@ -5,9 +5,11 @@ module MaterialComponentsWeb
5
5
 
6
6
  initializer 'material-components-web.mozaic' do
7
7
  Mozaic.configure do |config|
8
- config.define_component 'mdc-checkbox', class_name: false, label: false, checked: false, disabled: false
8
+ config.define_component 'mdc-checkbox', label: false, checked: false, disabled: false
9
+ config.define_component 'mdc-drawer', type: 'permanent', above_toolbar: false
9
10
  config.define_component 'mdc-form-field'
10
- config.define_component 'mdc-radio', class_name: false, label: false, checked: false, disabled: false
11
+ config.define_component 'mdc-radio', label: false, checked: false, disabled: false
12
+ config.define_component 'mdc-toolbar', type: 'permanent', above_toolbar: false
11
13
  end
12
14
  end
13
15
 
@@ -1,5 +1,5 @@
1
1
  module MaterialComponentsWeb
2
2
 
3
- VERSION = '2.0.4'
3
+ VERSION = '2.1.0'
4
4
 
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: material-components-web
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.4
4
+ version: 2.1.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-01-13 00:00:00.000000000 Z
11
+ date: 2018-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -77,8 +77,10 @@ files:
77
77
  - LICENSE
78
78
  - README.md
79
79
  - app/views/mozaic/_mdc-checkbox.html.erb
80
+ - app/views/mozaic/_mdc-drawer.html.erb
80
81
  - app/views/mozaic/_mdc-form-field.html.erb
81
82
  - app/views/mozaic/_mdc-radio.html.erb
83
+ - app/views/mozaic/_mdc-toolbar.html.erb
82
84
  - lib/material-components-web.rb
83
85
  - lib/material_components_web/engine.rb
84
86
  - lib/material_components_web/railtie.rb