avo 3.7.1 → 3.7.2

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: 3e38fc9752d4db0f6986c689d8dc5eafa64df514b411041ba8bfcb9507a5c5ad
4
- data.tar.gz: ace327bb7d3c220da5ae56fa14d7bc278e4b5d62dcce413ba417b0bec92d6f65
3
+ metadata.gz: 7b71babedf80b76c301a1e76767953f9a514e25921a2016cacb12c859422db15
4
+ data.tar.gz: 1ae761cdfb7201bac56c687c04b857b88520fb4f6e317203dda499b38649388e
5
5
  SHA512:
6
- metadata.gz: b94790927c1949049b1575502ce7cc497169212410efd3d9f530373170c7b2e776ad303e51b49d432ac3aaafe9be6690f51d03e3b4a702bb311e60e0987ae0f6
7
- data.tar.gz: 302af5c5888eb4c7b1ad58a5a6b62934884777059c86f884f46968e9c8cf0e4ceca7dbfeb37714ba481d63f9a8007f6a6fcdd73e534c0c9173bbf2baf305dbd5
6
+ metadata.gz: e1f4e74eb8d83cc4f2986a42036bd14b5323a86ab9377c8a0946d2071cf2a252f6745bcbe1e6e320f162dd957f20d86e112357350d3f39672829955575435ff9
7
+ data.tar.gz: 1ecfd5ebf8db53a389d1a8b1fcb96599cee34a63c951e28429e512c47460c99d6b48576bfda754bf8540e65b9da651c019dd7dbdcd17032d05edf6268f835f1c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- avo (3.7.1)
4
+ avo (3.7.2)
5
5
  actionview (>= 6.1)
6
6
  active_link_to
7
7
  activerecord (>= 6.1)
@@ -1,4 +1,4 @@
1
- <%= content_tag :div, class: "flex items-start py-1 leading-tight bg-gray-100 text-gray-500 text-xs", data: @data do %>
1
+ <%= content_tag :div, class: @classes, data: @data do %>
2
2
  <div class="py-2 px-6 h-full w-full">
3
3
  <% if @field.as_html %>
4
4
  <%= sanitize @field.value %>
@@ -6,6 +6,7 @@ class Avo::Fields::Common::HeadingComponent < ViewComponent::Base
6
6
  def initialize(field:)
7
7
  @field = field
8
8
  @view = field.resource.view
9
+ @classes = "flex items-start py-1 leading-tight bg-gray-100 text-gray-500 text-xs #{@field.get_html(:classes, view: @view, element: :wrapper)}"
9
10
 
10
11
  @data = stimulus_data_attributes
11
12
  add_stimulus_attributes_for(field.resource, @data)
data/lib/avo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Avo
2
- VERSION = "3.7.1" unless const_defined?(:VERSION)
2
+ VERSION = "3.7.2" unless const_defined?(:VERSION)
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: avo
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.7.1
4
+ version: 3.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adrian Marin