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: 603c130eb0c650706cddef6748d4da92887bb84a7121ad2ca7f391506b79c7a1
4
- data.tar.gz: 0b8c92c280c885d72a2dbabbf2c34dd332742c0d0c94fd58c662573265f80ab0
3
+ metadata.gz: 6537d0fd0cd58471304a5a31f9be757071f2b47fc81cd2d89fe497757b48ce41
4
+ data.tar.gz: a37000022723bfb1ded124c69d153dc623d84e950195fa0281985012726f2f3f
5
5
  SHA512:
6
- metadata.gz: c75ea62cd0dd1cf072df53b52bb7b95382d6b1742ec30fd283e5f514e1aac3b98d4f187c41fe2b628d9af47ba5e52869860e46ba298d72f34fd121ec3596e2c9
7
- data.tar.gz: 1fa8527d5270ad52c41b423750f91b4001dbfe1796dba91aca3332ec36fb630397a2bc2f85fbc28068120cb8ab2780cbf3ea0fdfb5640af5a1a14d4ec9496bc1
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
- <%= 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.8"
3
+ VERSION = "1.0.11"
4
4
  end
5
5
  end
@@ -5,6 +5,7 @@ require "bullet_train/themes/engine"
5
5
  module BulletTrain
6
6
  module Themes
7
7
  mattr_accessor :themes, default: {}
8
+ mattr_accessor :logo_height, default: 54
8
9
 
9
10
  module Base
10
11
  class Theme
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.8
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-03-31 00:00:00.000000000 Z
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.2.22
89
+ rubygems_version: 3.3.7
90
90
  signing_key:
91
91
  specification_version: 4
92
92
  summary: Bullet Train Themes