codengage_view_components 0.1.6 → 0.1.7
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 06a62f0948ab276ba1cf10218e6c8f18be676f2f24c21c70db98a4e4002be21f
|
|
4
|
+
data.tar.gz: 9a677bac627df7c41aad021d70f4fef6ba1974a6d9b32c2374a2b4e755bb1969
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 041ec368163945b9a169caceb40745c4eadb425e5c02ce2dec00b618ba2ebcba7c2438fbaf12525ed30d95564bf35583b7196ff9875c4ed1a0a7d541490713b9
|
|
7
|
+
data.tar.gz: b398e038f04e01f029b86a180b8581362043160dce56f277b7048f576da0be28b45b74685c004d84e46790fe77bf177018c5373eaa36409fce4f4aa7e2e1b9b9
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
.flash {
|
|
2
|
-
@apply flex items-center w-full max-w-sm p-4 rounded-base gap-4 text-
|
|
2
|
+
@apply flex items-center w-full max-w-sm p-4 rounded-base gap-4 text-white fixed right-0 bottom-12 mr-4 transition-transform transform translate-x-full;
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
.flash.flash--visible {
|
|
@@ -5,8 +5,8 @@ module CodengageViewComponents
|
|
|
5
5
|
Message = Struct.new(:type, :text, :bg, :stroke, :icon, keyword_init: true)
|
|
6
6
|
|
|
7
7
|
STYLES = {
|
|
8
|
-
"notice" => { bg: "bg-
|
|
9
|
-
"alert" => { bg: "bg-
|
|
8
|
+
"notice" => { bg: "bg-green-700", stroke: "#48BB78", icon: "check" },
|
|
9
|
+
"alert" => { bg: "bg-red-700", stroke: "#DC3545", icon: "circle-alert" }
|
|
10
10
|
}.freeze
|
|
11
11
|
|
|
12
12
|
def initialize(flash:)
|