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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf0c18f9c1c13209675d75ec7aea4fe1ab8c757274ea1946039ae6513a39972d
|
4
|
+
data.tar.gz: 855ec82140585d5a9a3bafe0539350e303b80881d1a742a333e743171254e60e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
+
|
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>
|
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.
|
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-
|
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
|