turbo_material 0.1.6 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9ce313d671ec8ddf4a04aef47fd96c570c5a67ff6dfe29742383a73ebcf7c1c0
4
- data.tar.gz: b07884bbea9be47867e71624a895d06b32fa988c42639fe242c7d157f80bffc5
3
+ metadata.gz: 13b9d9d2e54b372094a3cb3d6a4ce2c5beb30417f57296795516d7ae8ee4d0e3
4
+ data.tar.gz: c8ecebe27c2236eea437c5c0a28a4cd7450ecaa15dd71d6f70d95d491df740cd
5
5
  SHA512:
6
- metadata.gz: 71f76f10911e651017f0da980a90fc617b23fe850645862600e1720d023d64f56e9457d175a1d92fc5ca9d079e330e63958b76f751ee1f157e4ada511152ebd8
7
- data.tar.gz: 348ff4e4a953abdea779454c22cf72f34dfde4966d873277e1d0e6a98bcdee13d597c3fcbd72d13048accdeec942b6b581cde9e8248d5d33a7cfadc843ba3610
6
+ metadata.gz: e143747eb338b42ba472b03103039a7cf479d19a6ce7f1ba362d67ff2007a2185d98c9724132078fe07fde35b3adec4b217c0fcca9109a5cb0f4f98433106eb4
7
+ data.tar.gz: dbbc4bca36bed11426fa34844c7b45bcf725a9d7134fc45454cf81563833a008f23aa7ce995eeac0ad71dadd053c3809ee19ff74e9082184d4ac0535b717682b
@@ -1,5 +1,5 @@
1
- <%# locals: (form:, disabled: false, required: false, name:, label: nil, id:, checked: false, value: nil, parent: nil, frame: nil, selected_text: nil, fixed: false, options: [], hint: nil, helper: nil) %>
2
- <div class="mdc-select mdc-select--filled w-full<%= disabled ? ' mdc-select--disabled' : '' %><%= required ? ' mdc-select--required' : '' %>"
1
+ <%# locals: (form:, disabled: false, required: false, name:, label: nil, id:, checked: false, value: nil, parent: nil, frame: nil, selected_text: nil, fixed: false, options: [], hint: nil, helper: nil, additional_classes: 'w-full') %>
2
+ <div class="mdc-select mdc-select--filled <%= label ? '' : 'mdc-select--no-label' %> <%= disabled ? ' mdc-select--disabled' : '' %><%= required ? ' mdc-select--required' : '' %> <%= additional_classes %>"
3
3
  data-controller="material-select" <% if frame %> data-frame="<%= frame %>"<% end %> id="<%= id %>">
4
4
  <%= form.hidden_field name.to_sym, value: value %>
5
5
  <div class="mdc-select__anchor"
@@ -11,7 +11,9 @@
11
11
  <% if required %>aria-required="true"<% end %>
12
12
  >
13
13
  <span class="mdc-select__ripple"></span>
14
+ <%- if label -%>
14
15
  <span id="<%= id %>-label" class="mdc-floating-label"><%= label || name.capitalize %></span>
16
+ <%- end -%>
15
17
  <span class="mdc-select__selected-text-container">
16
18
  <span id="<%= id %>-selected-text" class="mdc-select__selected-text">
17
19
  <%= selected_text || value %>
@@ -1,3 +1,3 @@
1
1
  module TurboMaterial
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.9"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: turbo_material
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergey Moiseev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-06 00:00:00.000000000 Z
11
+ date: 2024-04-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails