bullet_train-themes 1.0.16 → 1.0.21

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: ddeee9af23fa75c999d7d38040998ec689cc206639f895f69222e0ed50956109
4
- data.tar.gz: 26818ca49ac9da86e291b1f626e033f1fbb17b2558dd25aaa29209cc88c44a24
3
+ metadata.gz: bf0c18f9c1c13209675d75ec7aea4fe1ab8c757274ea1946039ae6513a39972d
4
+ data.tar.gz: 855ec82140585d5a9a3bafe0539350e303b80881d1a742a333e743171254e60e
5
5
  SHA512:
6
- metadata.gz: 3e29e207a667b7477207429251d6d9f622e860ddb6028c1b159e76fdfe5f75f3c03b3f604a97228617443fd565e1e97702be95a5541883a97007007d3053714c
7
- data.tar.gz: 73606ae27fa14274a9b490b34330b4c2675fdcf5be934b1654b07a20c50ffc69476b439e83aae2aae7d480c5ba002e2697982dc04323ac344b9ae70fc55559fc
6
+ metadata.gz: 5650aba384c318717a4e98d9808621a3adc4e8458c8526d7d8a77c82b65163bdbb679de6761d50a4a71437cb0dfff0b7f77c22e19332a5d49427b790324d1d4c
7
+ data.tar.gz: ab42ae6102b2960bed7421ec0a4fa107bce9c8f1dad0b08de564718003fe5ee9faf2e21b1cf4b687817576895559c9d9e9f34bd74bd4ad13bbc208b23b8b5da7
@@ -0,0 +1,30 @@
1
+ <% yield %>
2
+
3
+ <%
4
+ stimulus_controller = 'fields--emoji-picker'
5
+
6
+ form ||= current_fields_form
7
+ options ||= {}
8
+ other_options ||= {}
9
+ value = form.object.send(method)
10
+ %>
11
+
12
+ <%= render 'shared/fields/field', form: form, method: method, options: options, other_options: other_options do %>
13
+ <% content_for :field do %>
14
+ <div data-controller="<%= stimulus_controller %>">
15
+ <%= tag.button data: {action: "#{stimulus_controller}#toggle", target: "#{stimulus_controller}.button"}, class: "button-alternative" do %>
16
+ <span data-target="<%= stimulus_controller %>.display">
17
+ <% if value.present? %>
18
+ <%= value %>
19
+ <% else %>
20
+ <i class="ti ti-face-smile"></i>
21
+ <% end %>
22
+ </span>
23
+ &nbsp;
24
+ Choose an Emoji
25
+ <% end %>
26
+ <%= form.hidden_field method, data: {"#{stimulus_controller}-target": "input"} %>
27
+ </div>
28
+
29
+ <% end %>
30
+ <% end %>
@@ -17,6 +17,6 @@ other_options ||= {}
17
17
  <%= render 'shared/fields/field', form: form, method: method, helper: :password_field, options: options, other_options: other_options %>
18
18
  <% if options[:show_strength_indicator] %>
19
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>
20
+ <div data-<%= stimulus_controller %>-target="strengthIndicator" class="hidden mt-1.5 text-xs text-red-600"></div>
21
21
  <% end %>
22
22
  </div>
@@ -1,5 +1,5 @@
1
1
  module BulletTrain
2
2
  module Themes
3
- VERSION = "1.0.16"
3
+ VERSION = "1.0.21"
4
4
  end
5
5
  end
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.16
4
+ version: 1.0.21
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-06-15 00:00:00.000000000 Z
11
+ date: 2022-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: standard
@@ -69,6 +69,7 @@ files:
69
69
  - app/views/themes/base/attributes/_text.html.erb
70
70
  - app/views/themes/base/fields/_ckeditor.html.erb
71
71
  - app/views/themes/base/fields/_email_field.html.erb
72
+ - app/views/themes/base/fields/_emoji_field.html.erb
72
73
  - app/views/themes/base/fields/_password_field.html.erb
73
74
  - app/views/themes/base/fields/_phone_field.html.erb
74
75
  - app/views/themes/base/fields/_super_select.html.erb