bullet_train-themes 1.0.9 → 1.0.10

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: 2c938aed3b809bd3a524edce3ccc02463356e0f08c0319de13f73145c200290e
4
- data.tar.gz: 4b0fbdf1393080a474b4dab81f8e55f13a6be7e474365913666234356a214d6d
3
+ metadata.gz: 47e773277d423022a2eefa037691144a144cb12a2de66b4c044dd21b31782a26
4
+ data.tar.gz: a7c976430dce24ebdc11485b7bccd2db7422da01217e1a1b4c8e80f0595721d1
5
5
  SHA512:
6
- metadata.gz: 7ae37e387ec971050da0e744ce2f040f379fc14de7d8bca874da814f825d71c6f3125a2a5cf6ba864ff1241ebdab830283f08d90608cd1bfec14d8640688cbda
7
- data.tar.gz: 24079fcc84209a046b4801fe0980eb2cb72b3c08f6d00b10f27f1f31262132858b0ae47753f712bf80064d2facfcb74622c947ba025cae2117677664331cde77
6
+ metadata.gz: e1c5c5b3d609cf36dc114bef66c3678052f20db6a7a06db1738e12dbc313c011e838ae8aa2eb4cb7e82de98cbd2b1bf0ea9f954a5eda807703b21c282db6bf23
7
+ data.tar.gz: 466d40287fc3efb43c67407b6659c107dff965217a7822b957c9bdf3e5ae978ae28baccb11d7a27af79db07e765ab94b1510494a885af5c100cc19be5446e01b
@@ -1,9 +1,21 @@
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
- <%= render 'shared/fields/field', form: form, method: method, helper: :password_field, options: options, other_options: other_options %>
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
+ <div data-<%= stimulus_controller %>-target="strengthIndicator" class="hidden"></div>
20
+ <% end %>
21
+ </div>
@@ -1,5 +1,5 @@
1
1
  module BulletTrain
2
2
  module Themes
3
- VERSION = "1.0.9"
3
+ VERSION = "1.0.10"
4
4
  end
5
5
  end
@@ -5,7 +5,6 @@ require "bullet_train/themes/engine"
5
5
  module BulletTrain
6
6
  module Themes
7
7
  mattr_accessor :themes, default: {}
8
- mattr_accessor :logo_asset_path, default: "logo/logo.png"
9
8
  mattr_accessor :logo_height, default: 54
10
9
 
11
10
  module Base
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.9
4
+ version: 1.0.10
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-04-26 00:00:00.000000000 Z
11
+ date: 2022-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails