sdr_view_components 0.1.3 → 0.1.4

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: 16f9c65aca5c79312e48c511e61e6b5181de67e763d85b99185d6b558f726124
4
- data.tar.gz: d1b86d685d6a82e90bfc2974906874f57d717d27d1026605ce62cc8bd33d8b9e
3
+ metadata.gz: 4e3803526ec08ea8786418750aded1cefd281a20bbc9d9911fe8b684ffaceb25
4
+ data.tar.gz: 1db98361a27b37e781a0bb8a17e4e7e913ee22f455ff6b97aaacd115ea5292bc
5
5
  SHA512:
6
- metadata.gz: 74181bc2ebb10bb5e0b8113041ed135c8fa2e6d3987de57b3d0e562948232a902b5d134f1fc04c1c85f49871b75cd0871efc0bf905dbfa6a5d2a3f30665d45f8
7
- data.tar.gz: b1910536f68eafa46c193b6b94d0c2671d7f53684c40d42c0e5058bb537f4f78dff23f7785805f84594f8de9095a24ab106758027a1ade39745b1e7ae6295689
6
+ metadata.gz: 7d2e42055690b2e650f841d791f09d122b879b8ccf040f7c25911e080ad91c9221e4c141f1c68720491c9dad77dc50308d3401f58dbe13796a6a3bfad0c32ba6
7
+ data.tar.gz: 35e9aee8a9ce3642e04db16e953307c54fcb41f8079fdb4872424f461a43289f1a6cd465be00739a6646213874932c778de351d1db58dd61b55ef473eb65d20d
@@ -1,40 +1,34 @@
1
- <style>
2
- .toast:not(.show) {
3
- display: block;
4
- }
5
- </style>
6
- <div class="toast-container position-relative bottom-0 end-0 p-3">
1
+ <div
2
+ class="toast align-items-center show"
3
+ role="alert"
4
+ aria-live="assertive"
5
+ aria-atomic="true"
6
+ >
7
+ <%= tag.div class: toast_body_classes do %>
8
+ <div class="d-flex">
7
9
  <div
8
- class="toast align-items-center"
9
- role="alert"
10
- aria-live="assertive"
11
- aria-atomic="true"
12
- >
13
- <div class="<%= toast_class %>">
14
- <div class="d-flex">
15
- <div
16
- class="bi bi-exclamation-circle-fill fs-3 me-3 align-self-center d-flex justify-content-center"
17
- ></div>
18
- <div>
19
- <div class="fw-semibold"><%= title %> </div>
20
- <div><%= text %></div>
21
- </div>
22
- <div class="me-2 m-auto">
23
- <% if close_text.present? %>
24
- <button
25
- type="button"
26
- class="btn btn-text text-uppercase text-white"
27
- >
28
- <%= close_text %>
29
- </button>
30
- <% end %>
31
- <button
32
- type="button"
33
- class="btn btn-close btn-close-white"
34
- aria-label="Close"
35
- ></button>
36
- </div>
37
- </div>
38
- </div>
10
+ class="bi bi-exclamation-circle-fill fs-3 me-3 align-self-center d-flex justify-content-center"
11
+ ></div>
12
+ <div>
13
+ <div class="fw-semibold"><%= title %> </div>
14
+ <div><%= text %></div>
15
+ </div>
16
+ <div class="me-2 m-auto">
17
+ <% if close_text.present? %>
18
+ <button
19
+ type="button"
20
+ class="btn btn-text text-uppercase text-white"
21
+ >
22
+ <%= close_text %>
23
+ </button>
24
+ <% end %>
25
+ <button
26
+ type="button"
27
+ class="btn btn-close btn-close-white"
28
+ aria-label="Close"
29
+ data-bs-dismiss="toast"
30
+ ></button>
39
31
  </div>
40
32
  </div>
33
+ <% end %>
34
+ </div>
@@ -14,7 +14,7 @@ module SdrViewComponents
14
14
 
15
15
  attr_reader :title, :text, :close_text, :variant
16
16
 
17
- def toast_class
17
+ def toast_body_classes
18
18
  merge_classes([background_color], %w[toast-body text-white])
19
19
  end
20
20
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SdrViewComponents
4
- VERSION = '0.1.3'
4
+ VERSION = '0.1.4'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sdr_view_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Collier