baldur 0.2.3 → 0.2.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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ae0f6c5a19b35179f7ad5b086be6579586be84c99d58bb9337ec0136fa869934
|
|
4
|
+
data.tar.gz: 58f7a99208005b98c8cdcc4917c01541b3bf0cdf7a1e091419650d2ae8e5947c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fdf6563345728f209401476fbd221ddbcdd8bc6e0d97afbcb9593165944beefc9024914f2f3437ed127eeb41b76269baa22b86e4ba8262fea976cad070464ebd
|
|
7
|
+
data.tar.gz: c9c4024b45bac97751c24b87770321ef2ad58f79720864a89334f91e9821261653048dcb5d183d00b5213fcfb281d78332da2eb12d57b5ebbfbd8e8e2f654bd9
|
|
@@ -2,10 +2,4 @@
|
|
|
2
2
|
.confirmation-modal__input-wrapper {
|
|
3
3
|
margin-top: var(--space-4);
|
|
4
4
|
}
|
|
5
|
-
|
|
6
|
-
[data-confirmation] .text-field__control:focus {
|
|
7
|
-
border-color: var(--color-primary);
|
|
8
|
-
outline: none;
|
|
9
|
-
box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 24%, transparent);
|
|
10
|
-
}
|
|
11
5
|
}
|
|
@@ -68,19 +68,19 @@
|
|
|
68
68
|
<% end %>
|
|
69
69
|
<% if has_type_to_confirm %>
|
|
70
70
|
<div class="mt-4 space-y-2">
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
71
|
+
<%= ui_text_field_tag(nil, nil,
|
|
72
|
+
label: confirm_input_label,
|
|
73
|
+
placeholder: confirm_input_placeholder,
|
|
74
|
+
input_options: {
|
|
75
|
+
id: confirm_input_id,
|
|
76
|
+
autocomplete: "off",
|
|
77
|
+
data: {
|
|
78
|
+
confirmation_target: "input",
|
|
79
|
+
action: "input->confirmation#validate",
|
|
80
|
+
modal_autofocus: true
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
) %>
|
|
84
84
|
<% if confirm_input_hint.present? %>
|
|
85
85
|
<p class="text-sm text-muted"><%= confirm_input_hint %></p>
|
|
86
86
|
<% end %>
|
data/lib/baldur/version.rb
CHANGED
|
@@ -158,6 +158,8 @@ class BaldurConfirmationModalHelperTest < Minitest::Test
|
|
|
158
158
|
assert_includes html, 'This permanently removes all data.'
|
|
159
159
|
assert_includes html, 'Flush All Data'
|
|
160
160
|
assert_includes html, 'Confirm'
|
|
161
|
+
assert_includes html, 'field text-field'
|
|
162
|
+
assert_includes html, 'field__label'
|
|
161
163
|
end
|
|
162
164
|
|
|
163
165
|
def test_ui_confirmation_modal_type_to_confirm_disables_submit
|
|
@@ -215,6 +217,7 @@ class BaldurConfirmationModalHelperTest < Minitest::Test
|
|
|
215
217
|
|
|
216
218
|
assert_includes html, 'data-controller="modal"'
|
|
217
219
|
refute_includes html, 'confirmation'
|
|
220
|
+
refute_includes html, 'field text-field'
|
|
218
221
|
end
|
|
219
222
|
|
|
220
223
|
def test_ui_confirmation_modal_custom_labels
|