material_design 0.4.5 → 0.5.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: ce897d1d1a427418e4c459be563d14a3de51f51e97f3b490984fa72e52d5fa98
4
- data.tar.gz: c749e8ba5932eccedd4f772800ee670f0c58991d8c450f56406e22f67500b725
3
+ metadata.gz: 9079cc9a84a91db083d71397d49337f7180e4c44296e7d29f2a8432dbef14235
4
+ data.tar.gz: 25f4ed4460f0e63620e8342a843efcd0296e93e60e5d2ef18c46f98adb0c37ca
5
5
  SHA512:
6
- metadata.gz: 7241bcd776e093f6ae9ff9adf7ef35f79c31cbf64cff4a59e749a7fc2a1f6a875511b6a31ba269b26c6737df79660d6e12768aac0993cc138989376f8075c45a
7
- data.tar.gz: 318398a94c76811c7c95e3270bb745362fe8f0e09c71be5ef2e591ee2b823d5c26c8c5ea6b6eddef71fb153532a3fac3c0883b07579964aad658270206c21b88
6
+ metadata.gz: 8b0430d59c1db4aef49e212cb00b2cf59d06ceab96bf56554ea7f731a8e0424c491d45a7d310862716fff11c31abaf00c9fd2128fb739cd71755e2d1a9ccfba1
7
+ data.tar.gz: 919c16a1849b3d9f1119f964546adb3af6bd8ba1bc885b1c7e99e7810d8850bda6db46646fc97694cc3a648769bf0b73d5c610f1a3bb71462bfc075acab99b31
@@ -0,0 +1,3 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="#5f6368">
2
+ <path d="M600-80q-17 0-28.5-11.5T560-120v-43q-23-4-43.5-11.5T478-195l-40 40q-12 11-28.5 11.5T381-155q-12-12-12-28.5t12-28.5l41-41q-3-5-6-10.5t-6-10.5l-27-53-49 49q-12 11-28 11.5T278-278q-12-12-12-28t12-28l49-50-53-26q-5-2-9-4.5t-9-5.5l-36 36q-12 11-28.5 11.5T163-384q-12-12-12-28t12-28l35-35q-14-19-22.5-40.5T163-560h-43q-17 0-28.5-11.5T80-600q0-17 11.5-28.5T120-640h45q5-19 12-36t18-33l-35-35q-12-12-12-28t12-28q12-12 28-12t28 12l35 35q16-11 33-18t36-12v-45q0-17 11.5-28.5T360-880q17 0 28.5 11.5T400-840v43q24 4 45.5 13t40.5 23l35-35q12-12 28.5-12t28.5 12q12 12 12 28t-12 28l-37 37q2 4 4.5 8t4.5 9l25 50 46-46q12-12 28.5-12t28.5 12q12 12 12 28.5T678-625l-48 47 56 28q6 3 12.5 6.5T710-536l40-40q12-12 28-12t28 12q12 12 12 28.5T806-519l-40 39q12 18 19.5 38t11.5 42h43q17 0 28.5 11.5T880-360q0 17-11.5 28.5T840-320h-45q-5 19-12 35.5T765-252l34 34q12 12 12 28.5T799-161q-12 11-28.5 11.5T742-161l-33-34q-16 11-33 18t-36 12v45q0 17-11.5 28.5T600-80Zm-6-160q58 0 95.5-44T718-386q-5-30-22.5-54T650-478l-66-34q-23-12-41.5-30.5T512-584l-34-66q-16-32-46-51t-66-19q-58 0-95.5 44T242-574q5 30 22.5 54t45.5 38l66 34q23 12 41.5 30.5T448-376l34 66q16 32 46 51t66 19ZM380-540q25 0 42.5-17.5T440-600q0-25-17.5-42.5T380-660q-25 0-42.5 17.5T320-600q0 25 17.5 42.5T380-540Zm200 250q21 0 35.5-14.5T630-340q0-21-14.5-35.5T580-390q-21 0-35.5 14.5T530-340q0 21 14.5 35.5T580-290ZM480-480Z"/>
3
+ </svg>
@@ -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.5.0"
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.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eduardo Yutaka Nakanishi
8
+ - Fabiana Ramos
8
9
  - Mariana Negrão Trancoso
9
- autorequire:
10
+ autorequire:
10
11
  bindir: bin
11
12
  cert_chain: []
12
- date: 2024-02-09 00:00:00.000000000 Z
13
+ date: 2024-06-20 00:00:00.000000000 Z
13
14
  dependencies:
14
15
  - !ruby/object:Gem::Dependency
15
16
  name: rails
@@ -1232,6 +1233,7 @@ files:
1232
1233
  - app/views/material_design/icons/_mic_external_on.html.erb
1233
1234
  - app/views/material_design/icons/_mic_none.html.erb
1234
1235
  - app/views/material_design/icons/_mic_off.html.erb
1236
+ - app/views/material_design/icons/_microbiology.html.erb
1235
1237
  - app/views/material_design/icons/_microwave.html.erb
1236
1238
  - app/views/material_design/icons/_military_tech.html.erb
1237
1239
  - app/views/material_design/icons/_minimize.html.erb
@@ -2184,6 +2186,7 @@ files:
2184
2186
  - app/views/material_design/lists/_list_item.html.erb
2185
2187
  - app/views/material_design/navigation/_navigation_drawer.html.erb
2186
2188
  - app/views/material_design/navigation/navigation_drawer/_headline.html.erb
2189
+ - app/views/material_design/navigation/navigation_drawer/_nav_item.html.erb
2187
2190
  - app/views/material_design/navigation/navigation_drawer/_section_header.html.erb
2188
2191
  - app/views/material_design/tabs/_secondary.html.erb
2189
2192
  - app/views/material_design/tabs/secondary/_tab.html.erb
@@ -2204,7 +2207,7 @@ licenses:
2204
2207
  - MIT
2205
2208
  metadata:
2206
2209
  homepage_uri: https://rubygems.org/gems/material_design
2207
- post_install_message:
2210
+ post_install_message:
2208
2211
  rdoc_options: []
2209
2212
  require_paths:
2210
2213
  - lib
@@ -2219,8 +2222,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
2219
2222
  - !ruby/object:Gem::Version
2220
2223
  version: '0'
2221
2224
  requirements: []
2222
- rubygems_version: 3.5.3
2223
- signing_key:
2225
+ rubygems_version: 3.4.10
2226
+ signing_key:
2224
2227
  specification_version: 4
2225
2228
  summary: Material Design
2226
2229
  test_files: []