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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ce897d1d1a427418e4c459be563d14a3de51f51e97f3b490984fa72e52d5fa98
4
- data.tar.gz: c749e8ba5932eccedd4f772800ee670f0c58991d8c450f56406e22f67500b725
3
+ metadata.gz: ca6f954fcd0471445f65b82322d35163063860acacda48e13d2640cec2b410d3
4
+ data.tar.gz: a12036cdd05316c3c5db1f1cd8c75b9e9658a930f3363706467acb2af03943b3
5
5
  SHA512:
6
- metadata.gz: 7241bcd776e093f6ae9ff9adf7ef35f79c31cbf64cff4a59e749a7fc2a1f6a875511b6a31ba269b26c6737df79660d6e12768aac0993cc138989376f8075c45a
7
- data.tar.gz: 318398a94c76811c7c95e3270bb745362fe8f0e09c71be5ef2e591ee2b823d5c26c8c5ea6b6eddef71fb153532a3fac3c0883b07579964aad658270206c21b88
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
- <%= link_to nav_item[:href], class: class_names("navigation-drawer__nav_item", { active: request.fullpath.start_with?(nav_item[:href]) }) do %>
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], turbo_frame_tag: locals[:turbo_frame_tag] } %>
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], data: { turbo_frame: locals[:turbo_frame_tag] }, class: class_names('secondary-tabs--tab', active: request.fullpath.start_with?(locals[:path])) do %>
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 %>
@@ -1,3 +1,3 @@
1
1
  module MaterialDesign
2
- VERSION = "0.4.5"
2
+ VERSION = "0.4.6"
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.5
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-09 00:00:00.000000000 Z
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