stimulus-overlay-helpers 1.1.0 → 2.0.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: 5011229ca32b328095ee8199121506da0aeda54afddde3e3f6bf07df8352f22e
4
- data.tar.gz: 634dac393fccc55dd395b92f1173f0133448910cd33946cf4be66e1da858dc5b
3
+ metadata.gz: 86ae555d09ee9af3eae8fec2e46e53de2d2b907679cb7d7721196d44fdb5835f
4
+ data.tar.gz: 5bb2badc10b8d1278e93cc6083d35f468a551703fb88e989e738057805083f4e
5
5
  SHA512:
6
- metadata.gz: e538d62c39cda1f269ec99366b0f42d6ab7ee30b79ae2a6306126fa267218e9916de0937ff4a65960e4147644c1901a99d4137f1d0712a1972be6ef599ddd555
7
- data.tar.gz: 252cda43827e3659b3bd9b3c62d0695a3e0a3be324b2d530929c5a3fd5979168120ac077a366678e97879fad2bd8b64a2cbc97c1a0c0330bc6889465adc17328
6
+ metadata.gz: 933332441daf7824da520ba1ec4acfcebd9d783aa2605d803a2b68847fa32911a2a879650c18f013609e908d7aeb51751b05b447adb69144aa70cca70a641607
7
+ data.tar.gz: 5b0136dd827abba33dba52ec1fb0ec8c3685f83abee61f9ee77968426561dd5a3e00e9ff1d785aa0f35b2854473cdacd7a922fbef3f888673e3e047c08f54051
data/README.md CHANGED
@@ -27,7 +27,7 @@ If you work with the helpers on this gem, you can setup a initializer for a cust
27
27
 
28
28
  StimulusDropdown.configure do |config|
29
29
  config.close_button_proc = ->(view) do
30
- view.content_tag(:span, 'X', class: 'close-button')
30
+ view.content_tag(:span, 'X', class: 'close-button', data: { close: true })
31
31
  end
32
32
  end
33
33
  ```
@@ -46,7 +46,7 @@ module StimulusOverlayHelpers
46
46
  safe_join([
47
47
  content_tag(:div, class: 'header') do
48
48
  concat content_tag(:div, title, class: 'title')
49
- concat content_tag(:div, class: 'buttons') { close_btn_proc.present? ? close_btn_proc.call(self) : content_tag(:span, 'X', class: 'close-button') }
49
+ concat content_tag(:div, class: 'buttons') { close_btn_proc.present? ? close_btn_proc.call(self) : content_tag(:span, 'X', class: 'close-button', data: { close: true }) }
50
50
  end,
51
51
  content_tag(:div, class: 'content') do
52
52
  capture(&panel_content) if block_given?
@@ -99,7 +99,7 @@ module StimulusOverlayHelpers
99
99
  safe_join([
100
100
  content_tag(:div, class: 'header') do
101
101
  concat content_tag(:div, title, class: 'title')
102
- concat content_tag(:div, class: 'buttons') { close_btn_proc.present? ? close_btn_proc.call(self) : content_tag(:span, 'X', class: 'close-button') }
102
+ concat content_tag(:div, class: 'buttons') { close_btn_proc.present? ? close_btn_proc.call(self) : content_tag(:span, 'X', class: 'close-button', data: { close: true }) }
103
103
  end,
104
104
  content_tag(:div, class: 'content') do
105
105
  capture(&panel_content) if block_given?
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stimulus-overlay-helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christian Sedlmair
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-04-30 00:00:00.000000000 Z
11
+ date: 2026-05-23 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: christian@sedlmair.ch