bullet_train-themes 1.0.8 → 1.0.11
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6537d0fd0cd58471304a5a31f9be757071f2b47fc81cd2d89fe497757b48ce41
|
4
|
+
data.tar.gz: a37000022723bfb1ded124c69d153dc623d84e950195fa0281985012726f2f3f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c1f1b46dd9ce37f16a0874e096692245dea6b4c0bea586dad3671c4bcd6b7d6792e49199407f2e413e64624ef1c72231b9014b01938e7098b8f39da1c83d71c8
|
7
|
+
data.tar.gz: a079c3d2d3be9f4fba3e09f25325f326e6bcf41707d76ae5d1851c319e8cb2b8842e6a478c7d9f11eaae722b4e1122f846cf17de7df55a8b65d88752998e0e78
|
@@ -1,9 +1,22 @@
|
|
1
1
|
<% yield %>
|
2
2
|
|
3
3
|
<%
|
4
|
+
stimulus_controller = 'fields--password'
|
5
|
+
|
4
6
|
form ||= current_fields_form
|
5
7
|
options ||= {}
|
8
|
+
|
9
|
+
if options[:show_strength_indicator]
|
10
|
+
options = options.merge({ data: {"action": "keyup->fields--password#estimateStrength" }})
|
11
|
+
end
|
12
|
+
|
6
13
|
other_options ||= {}
|
7
14
|
%>
|
8
15
|
|
9
|
-
<%=
|
16
|
+
<div data-controller="<%= stimulus_controller %>">
|
17
|
+
<%= render 'shared/fields/field', form: form, method: method, helper: :password_field, options: options, other_options: other_options %>
|
18
|
+
<% if options[:show_strength_indicator] %>
|
19
|
+
<% # TODO This is the wrong place to define this kind of style, but I couldn't make this work in the `:help` content buffer. %>
|
20
|
+
<div data-<%= stimulus_controller %>-target="strengthIndicator" class="hidden mt-1.5 text-xs text-red"></div>
|
21
|
+
<% end %>
|
22
|
+
</div>
|
data/lib/bullet_train/themes.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bullet_train-themes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Culver
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-05-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -86,7 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
86
86
|
- !ruby/object:Gem::Version
|
87
87
|
version: '0'
|
88
88
|
requirements: []
|
89
|
-
rubygems_version: 3.
|
89
|
+
rubygems_version: 3.3.7
|
90
90
|
signing_key:
|
91
91
|
specification_version: 4
|
92
92
|
summary: Bullet Train Themes
|