material-components-web 2.1.1 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/app/views/mozaic/_mdc-drawer.html.erb +3 -3
- data/app/views/mozaic/_mdc-form-field.html.erb +2 -2
- data/app/views/mozaic/_mdc-toolbar.html.erb +2 -2
- data/lib/material_components_web/railtie.rb +14 -5
- data/lib/material_components_web/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: 44f6c812bedeaddb1ffe540fa8606ca370ca96a96b5d598b5d0fb7269a8542c3
|
4
|
+
data.tar.gz: c229e7258bc14085e7eb609b0b3e18b7145d214b1593ca11b1303118a841997e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 18e89f6e40ed05d0e55d2a34f646ce8e6abeb15d7416f653404b8aa6374e5e9f4aad7013ca591caea2759e59961a95159f7eff501a7ee60989d33e4f8de58f01
|
7
|
+
data.tar.gz: 9372b28d1c0293b18c4fa5cd3bd354017c20f33857f5b8be049ca7b6e54b746ac8c1bb3af5f6a76509910936bb805eb33cd124f3a23b897747e2bc6276aef05b
|
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
<% type = options.delete :type %><% above_toolbar = options.delete :above_toolbar %><%= content_tag ( type == 'permanent' ? 'nav' : 'aside' ), options do %><% if above_toolbar == 'permanent' %>
|
2
|
+
<div class="mdc-drawer__toolbar-spacer"></div><% end %>
|
3
3
|
<%= block %>
|
4
|
-
|
4
|
+
<% end %>
|
@@ -1,3 +1,3 @@
|
|
1
|
-
|
1
|
+
<%= content_tag 'div', options do %>
|
2
2
|
<%= block %>
|
3
|
-
|
3
|
+
<% end %>
|
@@ -1,3 +1,3 @@
|
|
1
|
-
|
1
|
+
<%= content_tag 'header', options do %>
|
2
2
|
<%= block %>
|
3
|
-
|
3
|
+
<% end %>
|
@@ -5,11 +5,20 @@ module MaterialComponentsWeb
|
|
5
5
|
|
6
6
|
initializer 'material-components-web.mozaic' do
|
7
7
|
Mozaic.configure do |config|
|
8
|
-
config.define_component 'mdc-checkbox', label: false, checked: false, disabled: false
|
9
|
-
config.define_component 'mdc-drawer', type: 'permanent', above_toolbar: false
|
10
|
-
|
11
|
-
|
12
|
-
|
8
|
+
config.define_component 'mdc-checkbox', class: '', label: false, checked: false, disabled: false
|
9
|
+
config.define_component 'mdc-drawer', class: '', type: 'permanent', above_toolbar: false do |options|
|
10
|
+
options[:class] << "mdc-drawer mdc-drawer--#{options[:type]}"
|
11
|
+
options
|
12
|
+
end
|
13
|
+
config.define_component 'mdc-form-field', class: '' do |options|
|
14
|
+
options[:class] << 'mdc-form-field'
|
15
|
+
options
|
16
|
+
end
|
17
|
+
config.define_component 'mdc-radio', class: '', label: false, checked: false, disabled: false
|
18
|
+
config.define_component 'mdc-toolbar', class: '', type: 'permanent', above_toolbar: false do |options|
|
19
|
+
options[:class] << 'mdc-toolbar'
|
20
|
+
options
|
21
|
+
end
|
13
22
|
end
|
14
23
|
end
|
15
24
|
|
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.
|
4
|
+
version: 2.2.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-02-
|
11
|
+
date: 2018-02-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|