material_design 0.4.5 → 0.4.6
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 +4 -4
- data/app/views/material_design/navigation/_navigation_drawer.html.erb +1 -9
- data/app/views/material_design/navigation/navigation_drawer/_nav_item.html.erb +11 -0
- data/app/views/material_design/tabs/_secondary.html.erb +1 -1
- data/app/views/material_design/tabs/secondary/_tab.html.erb +1 -1
- data/lib/material_design/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ca6f954fcd0471445f65b82322d35163063860acacda48e13d2640cec2b410d3
|
4
|
+
data.tar.gz: a12036cdd05316c3c5db1f1cd8c75b9e9658a930f3363706467acb2af03943b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 49ef8826a906e23d8c7d56dada4fe41b01c23f67cc1065de1ac7e766b014739fb4c55a967f21c7a94081a0056967237d1a230fdae3ce623aa92159258adaac9f
|
7
|
+
data.tar.gz: b5d221333090f2327fcc0473e7a9874dd3f737ba9a1521f0ae54cf59a8d582cb6770cad3e1f51ea6fcd8a6be7d345569bda6ccf033834276c28427e339742987
|
@@ -3,15 +3,7 @@
|
|
3
3
|
<% locals[:sections].each do |section| %>
|
4
4
|
<%= render "material_design/navigation/navigation_drawer/section_header", locals: { section_header: section[:header] } %>
|
5
5
|
<% section[:nav_items].each do |nav_item| %>
|
6
|
-
<%=
|
7
|
-
<div class="navigation-drawer__state-layer">
|
8
|
-
<%= render "material_design/icons/icon", locals: { size: 24, icon: nav_item[:icon] } %>
|
9
|
-
<div style="flex: 1 0 0;">
|
10
|
-
<%= render "material_design/typography/label_large", locals: { label: nav_item[:label] } %>
|
11
|
-
</div>
|
12
|
-
<%= render "material_design/typography/label_large", locals: { label: nav_item[:badge_label] } %>
|
13
|
-
</div>
|
14
|
-
<% end %>
|
6
|
+
<%= render "material_design/navigation/navigation_drawer/nav_item", locals: { nav_item: nav_item } %>
|
15
7
|
<% end %>
|
16
8
|
<% end %>
|
17
9
|
</div>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<% nav_item = locals[:nav_item]%>
|
2
|
+
|
3
|
+
<%= link_to nav_item[:href], data: { "turbo-method": nav_item[:data_turbo_method] }, class: class_names("navigation-drawer__nav_item", { active: request.fullpath.start_with?(nav_item[:href]) }) do %>
|
4
|
+
<div class="navigation-drawer__state-layer">
|
5
|
+
<%= render "material_design/icons/icon", locals: { size: 24, icon: nav_item[:icon] } %>
|
6
|
+
<div style="flex: 1 0 0;">
|
7
|
+
<%= render "material_design/typography/label_large", locals: { label: nav_item[:label] } %>
|
8
|
+
</div>
|
9
|
+
<%= render "material_design/typography/label_large", locals: { label: nav_item[:badge_label] } %>
|
10
|
+
</div>
|
11
|
+
<% end %>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<div class="secondary-tabs--container">
|
2
2
|
<% locals[:tabs].each do |tab| %>
|
3
|
-
<%= render "material_design/tabs/secondary/tab", locals: { label: tab[:label], path: tab[:path]
|
3
|
+
<%= render "material_design/tabs/secondary/tab", locals: { label: tab[:label], path: tab[:path] } %>
|
4
4
|
<% end %>
|
5
5
|
</div>
|
6
6
|
<%= render "material_design/dividers/horizontal", locals: { inset: false } %>
|
@@ -1,3 +1,3 @@
|
|
1
|
-
<%= link_to locals[:path],
|
1
|
+
<%= link_to locals[:path], class: class_names('secondary-tabs--tab', active: request.fullpath.start_with?(locals[:path])) do %>
|
2
2
|
<%= render "material_design/typography/title_small", locals: { title: locals[:label] } %>
|
3
3
|
<% end %>
|
metadata
CHANGED
@@ -1,15 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: material_design
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eduardo Yutaka Nakanishi
|
8
|
+
- Fabiana Ramos
|
8
9
|
- Mariana Negrão Trancoso
|
9
10
|
autorequire:
|
10
11
|
bindir: bin
|
11
12
|
cert_chain: []
|
12
|
-
date: 2024-02-
|
13
|
+
date: 2024-02-13 00:00:00.000000000 Z
|
13
14
|
dependencies:
|
14
15
|
- !ruby/object:Gem::Dependency
|
15
16
|
name: rails
|
@@ -2184,6 +2185,7 @@ files:
|
|
2184
2185
|
- app/views/material_design/lists/_list_item.html.erb
|
2185
2186
|
- app/views/material_design/navigation/_navigation_drawer.html.erb
|
2186
2187
|
- app/views/material_design/navigation/navigation_drawer/_headline.html.erb
|
2188
|
+
- app/views/material_design/navigation/navigation_drawer/_nav_item.html.erb
|
2187
2189
|
- app/views/material_design/navigation/navigation_drawer/_section_header.html.erb
|
2188
2190
|
- app/views/material_design/tabs/_secondary.html.erb
|
2189
2191
|
- app/views/material_design/tabs/secondary/_tab.html.erb
|