bullet_train-themes 1.0.7 → 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: dd53a24521a77065f5014cbaae79550919d9b4f3814ddeaade402b0914c23e5d
4
- data.tar.gz: 17866cd53604c8213d7c6c5ab7c9b48341cf8c71b2fbe5d8738dc65d1fadf5f9
3
+ metadata.gz: 47e773277d423022a2eefa037691144a144cb12a2de66b4c044dd21b31782a26
4
+ data.tar.gz: a7c976430dce24ebdc11485b7bccd2db7422da01217e1a1b4c8e80f0595721d1
5
5
  SHA512:
6
- metadata.gz: 4ad93ee2fc820cd3dd87eedda7caaaec6f35de3b62ebe2697ce43020a776729eda220355909753a6723e095a0f2ba99f84db6b6ab4227d16bc67542e6780e2fc
7
- data.tar.gz: 80f81475cc7093b9edad0bd359cfddb36c11ecfca4730947305c86dbbc1aaf7bc03c4231ac37408a6b0a57bf4d2b0fa668d2f1b76cc610de177ed609b1a5ba29
6
+ metadata.gz: e1c5c5b3d609cf36dc114bef66c3678052f20db6a7a06db1738e12dbc313c011e838ae8aa2eb4cb7e82de98cbd2b1bf0ea9f954a5eda807703b21c282db6bf23
7
+ data.tar.gz: 466d40287fc3efb43c67407b6659c107dff965217a7822b957c9bdf3e5ae978ae28baccb11d7a27af79db07e765ab94b1510494a885af5c100cc19be5446e01b
@@ -5,6 +5,6 @@
5
5
  <% if object.send(attribute).present? %>
6
6
  <%= render 'shared/attributes/attribute', object: object, attribute: attribute, strategy: strategy, url: url do %>
7
7
  <% # `.to_s` is for action text. %>
8
- <%= trix_content(object.send(attribute).to_s).html_safe %>
8
+ <%= html_sanitize(object.send(attribute).to_s).html_safe %>
9
9
  <% end %>
10
10
  <% end %>
@@ -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.7"
3
+ VERSION = "1.0.10"
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.7
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-03-25 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