atomic_view 0.1.11 → 0.1.12

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: 205025ff313e6a3303b0b163adb40754247e189320e839fa949cf6c419fd41a8
4
- data.tar.gz: 8b62841b297e0bb48e4a536e0dd6d74ac3cff1d1aa956975a547012354900bed
3
+ metadata.gz: a8bc9a3981ea5dfbec6bdeeba1d043abcd7f5a8f663bf8eca8354329b5c0e44c
4
+ data.tar.gz: e3f5401d7c3a32419599fd8e45c6e01eeccd888ddfa98fa5efb6d3a8d3c4a484
5
5
  SHA512:
6
- metadata.gz: 3c79d5697e7eaa4153b7b5b1087f31bc3b3a85032316784329b45ca6c6330f6f706901ffa2d5abf078d4b53d2e3ee2baca1317874fd79d54eac77b74984024e1
7
- data.tar.gz: f67f35c7dcfc88d43cfd3d716f10bec7ce3c351f556d2c1eb1a3446a8582d85ef0cd4e9af3a2f129507e07d758659267f8253cc6bc6d6622d8e45a8baa844286
6
+ metadata.gz: c0ed09127e4967e6f9e4ece576127c8c95578983a68d9e53c8adf376d3db257ec8ead80df798925141d45f8e02928531ecb1d7e47f43caae0c6202ccd3b4d4c9
7
+ data.tar.gz: 17646d97c1bbdfc50cc5dfec11b6cc4c1d3e0d6d55a68af9f600c9f15d62baaa6e4d7fad91c796c431f4123477cc238ab59185d001f0055b770d2c1b93abd68b
@@ -1,5 +1,5 @@
1
1
  <%= tag.div(**html_options, class: html_class, data: data_attributes) do %>
2
- <%= tag.div(class: "inline-block", data: trigger_data_attributes) do %>
2
+ <%= tag.div(class: trigger_class, data: trigger_data_attributes) do %>
3
3
  <%= trigger %>
4
4
  <% end %>
5
5
 
@@ -30,13 +30,17 @@ module AtomicView
30
30
  end
31
31
 
32
32
  def html_options
33
- @options.except(:class, :data)
33
+ @options.except(:class, :data, :trigger_class)
34
34
  end
35
35
 
36
36
  def html_class
37
37
  class_names("relative inline-block", @options[:class])
38
38
  end
39
39
 
40
+ def trigger_class
41
+ class_names("inline-block", @options[:trigger_class])
42
+ end
43
+
40
44
  def data_attributes
41
45
  (@options[:data] || {}).merge(controller: "atomic-view--dropdown")
42
46
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AtomicView
4
- VERSION = "0.1.11"
4
+ VERSION = "0.1.12"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: atomic_view
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.11
4
+ version: 0.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joel Warrington