bullet_train-themes 1.0.9 → 1.0.12

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: 8ce3b21afad1661e55eebbd080500931ca976430a2ada9a373eb7e3157c624a2
4
+ data.tar.gz: a281fa708287b6d0992dc2d063e303781125a1b61817946ca4ea5384e6ad1bc3
5
5
  SHA512:
6
- metadata.gz: 7ae37e387ec971050da0e744ce2f040f379fc14de7d8bca874da814f825d71c6f3125a2a5cf6ba864ff1241ebdab830283f08d90608cd1bfec14d8640688cbda
7
- data.tar.gz: 24079fcc84209a046b4801fe0980eb2cb72b3c08f6d00b10f27f1f31262132858b0ae47753f712bf80064d2facfcb74622c947ba025cae2117677664331cde77
6
+ metadata.gz: 546338a06bd0aeed964446028eac86d1a8f50a39c92b27f97724827bce68cd859e1af0f3720a2b1dd10b41188deae52c038ac2d8dc7228c901ed296654d3bff7
7
+ data.tar.gz: 9bb53dbca59f55ffd2bb616c99e90c02202c55367ae0b596f1bdf36fc52021139c15dafa278cbc298c7330c0f542a7242da571133a6eada48b512c90a2f69b82
data/.bt-link ADDED
File without changes
@@ -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
- <%= 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
+ <% # 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>
@@ -1,5 +1,5 @@
1
1
  module BulletTrain
2
2
  module Themes
3
- VERSION = "1.0.9"
3
+ VERSION = "1.0.12"
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.12
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-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -31,6 +31,7 @@ executables: []
31
31
  extensions: []
32
32
  extra_rdoc_files: []
33
33
  files:
34
+ - ".bt-link"
34
35
  - MIT-LICENSE
35
36
  - README.md
36
37
  - Rakefile
@@ -86,7 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
86
87
  - !ruby/object:Gem::Version
87
88
  version: '0'
88
89
  requirements: []
89
- rubygems_version: 3.2.22
90
+ rubygems_version: 3.3.7
90
91
  signing_key:
91
92
  specification_version: 4
92
93
  summary: Bullet Train Themes