web47core 3.2.64 → 3.2.65

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: '0858c3930c0c3f8216bff9bda4f2335513536589709853ebc95ab9afd7cb6b6c'
4
- data.tar.gz: 664bae4b63ffde7e856f266caae392d0f55f35b7d4db3aa7e8b1cc44f800524f
3
+ metadata.gz: 57501dce343191bcf2d24985e57fc4c7c077de8466f8ec487cc21ec471b27a5b
4
+ data.tar.gz: 61ef91d4018be429208064d5f8d4271b3a56b743e1d04c6597f59cd60c9ff177
5
5
  SHA512:
6
- metadata.gz: 7f0b776c9b51180414d42800ff5280996d2bcbb4fbcbd64692434160b6c7ca0671ac70cc46ae3bd529968dd992dd033983b7ebdb2274e944bf30fe35301fd0fa
7
- data.tar.gz: 37d280dd6ea25c130647ccbce7a19f570b95cbbdfe1b7b1bd1e57973ce28418775456f5b8d1dd511fdafdc41c97c40c1b58d3628202bf361fcd11f317fe595d8
6
+ metadata.gz: 60973bc056297b6db14303e4caa6e79bee35494731e6bfc63a82549592b864b78046c630e0e4fb9368ad4dee97e46ff16814fa50c3860053a72974b4f3211d4e
7
+ data.tar.gz: 23fc9957261eb42042a58e5281f1f2e037b396f53440579f7927fb47253dbf9614f86679712e4fcd4960e2538cbd35c5159411abda6112b0b3916d08093552b8
@@ -31,7 +31,7 @@ module CoreFlashToastHelper
31
31
 
32
32
  def toast_flash_header(key)
33
33
  content_tag(:div, class: 'toast-header') do
34
- concat(svg_icon(toast_flash_icon(key), classes: [toast_flash_color(key), 'me-2'].join(' '), size: 24))
34
+ concat(svg_icon(key, classes: [toast_flash_color(key), 'me-2'].join(' '), size: 24))
35
35
  concat(content_tag(:div, class: ['me-auto', 'fw-medium', toast_flash_color(key)].join(' ')) { key.humanize })
36
36
  concat(tag(:button,
37
37
  class: 'btn-close',
@@ -49,17 +49,4 @@ module CoreFlashToastHelper
49
49
  else 'text-info'
50
50
  end
51
51
  end
52
-
53
- # @abstract map the flash key to a color scheme
54
- # @return String - color mapped to the flash message type
55
- def toast_flash_icon(key)
56
- case key
57
- when 'alert', 'error'
58
- 'alert-square-rounded'
59
- when 'warning'
60
- 'alert-triangle'
61
- else
62
- 'info-circle'
63
- end
64
- end
65
52
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Web47core
4
- VERSION = '3.2.64'
4
+ VERSION = '3.2.65'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: web47core
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.64
4
+ version: 3.2.65
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Schroeder