bullet_train-themes-tailwind_css 1.2.10 → 1.2.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/views/themes/tailwind_css/attributes/_code.html.erb +1 -1
- data/app/views/themes/tailwind_css/fields/_cloudinary_image.html.erb +1 -1
- data/app/views/themes/tailwind_css/fields/_color_picker.html.erb +3 -3
- data/app/views/themes/tailwind_css/fields/_date_and_time_field.html.erb +2 -2
- data/app/views/themes/tailwind_css/fields/_date_field.html.erb +1 -1
- data/app/views/themes/tailwind_css/fields/_field.html.erb +3 -3
- data/app/views/themes/tailwind_css/fields/_file_field.html.erb +2 -2
- data/app/views/themes/tailwind_css/fields/_options.html.erb +5 -5
- data/lib/bullet_train/themes/tailwind_css/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b24228708b033fdead519b7063ddfcca53676751acca35cfbbb7b3b5feba60e3
|
4
|
+
data.tar.gz: 7878fcb0655f7e22e977ac6abb5e53f179facb21e98a6e2ef76f5995fd89f2b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c58052fef9ec6920a015dfb4950dc352007e9b97639c3ffa3cafef9a47d122e4122ae4a152014ec8cde4529c5e996aac2f5b7c0faeb127eb3a98e128bd93e1cf
|
7
|
+
data.tar.gz: cb0f9a5985ade2fbeac7d7274c9a38fac1d52c67bb588f2d2bcdd2da615c5973addf6964f4234fa0cde0bd536f24d30d586016fe29ee07e41a5adb37d1864d7b
|
@@ -10,7 +10,7 @@
|
|
10
10
|
<% attribute_short = attribute[0..4] %>
|
11
11
|
<div class="flex flex-row">
|
12
12
|
<details class="group peer order-2">
|
13
|
-
<summary class="list-none text-xs text-primary-500 dark:text-
|
13
|
+
<summary class="list-none text-xs text-primary-500 dark:text-slate-200 hover:text-primary-600 hover:underline group-open:hidden cursor-pointer">Show</summary>
|
14
14
|
<code class="text-pink-600 font-light"><%= attribute %></code>
|
15
15
|
</details>
|
16
16
|
<code class="order-1 mr-2 peer-open:hidden text-pink-600 font-light"><%= attribute_short %><% if attribute_short.length < attribute.length %>…<% end %></code>
|
@@ -18,7 +18,7 @@ other_options ||= {}
|
|
18
18
|
|
19
19
|
<%
|
20
20
|
cloudinary_id = if_present(form.object.send(method))
|
21
|
-
preview_image_options = {width: options[:width]
|
21
|
+
preview_image_options = {width: options[:width], height: options[:height], crop: :fill}
|
22
22
|
cloudinary_url = cl_image_path(cloudinary_id, preview_image_options) if cloudinary_id
|
23
23
|
cloudinary_url_format = cl_image_path('CLOUDINARY_ID', preview_image_options)
|
24
24
|
%>
|
@@ -25,15 +25,15 @@ color_selected_classes = "ring-2 ring-offset-2"
|
|
25
25
|
<div class="inline space-x-1" data-<%= stimulus_controller %>-target="colorOptions">
|
26
26
|
<% options[:color_picker_options].each do |color| %>
|
27
27
|
<label class="btn-toggle btn-color-picker">
|
28
|
-
<button type="button" class="button-color mb-1.5 dark:ring-offset-
|
28
|
+
<button type="button" class="button-color mb-1.5 dark:ring-offset-slate-700 <%= color == value ? color_selected_classes : '' %>" style="background-color: <%= color %>; --tw-ring-color: <%= color %>" data-action="<%= stimulus_controller %>#pickColor" data-<%= stimulus_controller %>-target="colorButton" data-color="<%= color %>"> </button>
|
29
29
|
</label>
|
30
30
|
<% end %>
|
31
31
|
</div>
|
32
32
|
<label class="btn-toggle btn-color-picker">
|
33
|
-
<button type="button" class="button-color mr-1 dark:ring-offset-
|
33
|
+
<button type="button" class="button-color mr-1 dark:ring-offset-slate-700 <%= value.blank? || options.include?(value) ? 'hidden' : color_selected_classes %>" data-action="<%= stimulus_controller %>#pickColor" data-<%= stimulus_controller %>-target="userSelectedColor colorButton" data-color="<%= value %>" style="background-color: <%= value %>; --tw-ring-color: <%= value %>"> </button>
|
34
34
|
</label>
|
35
35
|
<span class="relative">
|
36
|
-
<input type="text" disabled="disabled" class="rounded-md shadow-sm font-light font-mono text-sm focus:ring-blue focus:border-blue border-
|
36
|
+
<input type="text" disabled="disabled" class="rounded-md shadow-sm font-light font-mono text-sm focus:ring-blue focus:border-blue border-slate-300 w-48 dark:bg-slate-800 dark:border-slate-900" value="<%= value %>" data-<%= stimulus_controller %>-target="colorInput"/>
|
37
37
|
<span class="absolute right-0">
|
38
38
|
<button type="button" class="py-2 px-1 border border-transparent inline-flex items-center whitespace-nowrap rounded-md text-lg" data-action="<%= stimulus_controller %>#pickRandomColor">
|
39
39
|
<i class="leading-5 ti ti-reload dark:text-blue-500"></i>
|
@@ -4,7 +4,7 @@
|
|
4
4
|
form ||= current_fields_form
|
5
5
|
options ||= {}
|
6
6
|
options[:id] ||= form.field_id(method)
|
7
|
-
options[:class] = "form-control single-daterange w-full border-
|
7
|
+
options[:class] = "form-control single-daterange w-full border-slate-300 dark:bg-slate-800 dark:border-slate-900 #{options[:class]}".strip
|
8
8
|
options[:value] = form.object.send(method)&.in_time_zone(current_team.time_zone)&.strftime(t('global.formats.date_and_time'))
|
9
9
|
options = options.merge({ data: {'fields--date-target': 'field' }})
|
10
10
|
other_options ||= {}
|
@@ -23,7 +23,7 @@ other_options ||= {}
|
|
23
23
|
</button>
|
24
24
|
<% end %>
|
25
25
|
<% if current_user.time_zone != current_user.current_team.time_zone %>
|
26
|
-
<div class="mt-1.5 text-xs text-
|
26
|
+
<div class="mt-1.5 text-xs text-slate-500">
|
27
27
|
<%= form.hidden_field "#{method}_time_zone".to_sym, value: current_user.current_team.time_zone, data: {'fields--date-target': 'timeZoneField'} %>
|
28
28
|
<div data-fields--date-target="currentTimeZoneWrapper">
|
29
29
|
<%= link_to current_user.current_team.time_zone, '#', class: 'button-secondary p-0', data: {action: 'fields--date#showTimeZoneButtons'} %>
|
@@ -6,7 +6,7 @@ stimulus_controller = 'fields--date'
|
|
6
6
|
form ||= current_fields_form
|
7
7
|
options ||= {}
|
8
8
|
options[:id] ||= form.field_id(method)
|
9
|
-
options[:class] = "form-control single-daterange w-full border-
|
9
|
+
options[:class] = "form-control single-daterange w-full border-slate-300 dark:bg-slate-800 dark:border-slate-900 #{options[:class]}".strip
|
10
10
|
options[:value] = form.object.send(method)&.strftime(t('global.formats.date'))
|
11
11
|
options = options.merge({ data: {"#{stimulus_controller}-target": 'field' }})
|
12
12
|
other_options ||= {}
|
@@ -17,9 +17,9 @@ has_errors = errors.any? || content_for(:error).present? || other_options[:error
|
|
17
17
|
options[:class] = "#{options[:class]} block w-full rounded-md shadow-sm font-light text-base md:text-sm"
|
18
18
|
|
19
19
|
options[:class] += if has_errors
|
20
|
-
" pr-10 border-red text-red-
|
20
|
+
" pr-10 border-red text-red-700 placeholder-red focus:outline-none focus:ring-red focus:border-red"
|
21
21
|
else
|
22
|
-
" focus:ring-blue focus:border-blue border-
|
22
|
+
" focus:ring-blue focus:border-blue border-slate-300"
|
23
23
|
end
|
24
24
|
|
25
25
|
%>
|
@@ -63,7 +63,7 @@ end
|
|
63
63
|
|
64
64
|
<% # any help text. %>
|
65
65
|
<% if content_for?(:help) || other_options[:help] || content_for?(:after_help) %>
|
66
|
-
<p class="mt-1.5 text-xs text-
|
66
|
+
<p class="mt-1.5 text-xs text-slate-500">
|
67
67
|
<%= yield :help %>
|
68
68
|
<% flush_content_for :help %>
|
69
69
|
<%= other_options[:help]&.html_safe %>
|
@@ -30,8 +30,8 @@ other_options ||= {}
|
|
30
30
|
<i class="leading-none mr-2 text-base ti ti-upload dark:text-white"></i>
|
31
31
|
<span class="dark:text-white">Upload New Document</span>
|
32
32
|
</div>
|
33
|
-
<div class="mt-2 hidden overflow-hidden text-xs rounded bg-
|
34
|
-
<div data-fields--file-field-target="progressBar" aria-valuemax="100" aria-valuemin="0" aria-valuenow="0" class="absolute top-0 left-0 whitespace-nowrap overflow-hidden animate-pulse bg-primary-500 dark:bg-
|
33
|
+
<div class="mt-2 hidden overflow-hidden text-xs rounded bg-slate-100 shadow-inner relative">
|
34
|
+
<div data-fields--file-field-target="progressBar" aria-valuemax="100" aria-valuemin="0" aria-valuenow="0" class="absolute top-0 left-0 whitespace-nowrap overflow-hidden animate-pulse bg-primary-500 dark:bg-slate-800 rounded" role="progressbar" style="width: 0%;"> </div>
|
35
35
|
<div class="text-black text-center" data-fields--file-field-target="progressLabel">0%</div>
|
36
36
|
</div>
|
37
37
|
</div>
|
@@ -32,7 +32,7 @@ end
|
|
32
32
|
<div class="flex">
|
33
33
|
<%= tag.div class: [
|
34
34
|
"hidden",
|
35
|
-
"inline-block dark:border-
|
35
|
+
"inline-block dark:border-slate-600",
|
36
36
|
"border-b pb-4 mb-4": show_select_all_top && !show_select_all_bottom,
|
37
37
|
"border-t pt-4 mt-4": !show_select_all_top && show_select_all_bottom
|
38
38
|
], data: {
|
@@ -43,7 +43,7 @@ end
|
|
43
43
|
<%= check_box_tag "#{html_options[:id]}-select_all", 'select-all', false, data: {
|
44
44
|
"select-all-target": 'toggleCheckbox',
|
45
45
|
'action': "select-all#selectAllOrNone"
|
46
|
-
}, class: "focus:ring-blue h-4 w-4 text-blue border-
|
46
|
+
}, class: "focus:ring-blue h-4 w-4 text-blue border-slate-300 rounded" %>
|
47
47
|
</div>
|
48
48
|
<div class="ml-2.5 text-sm pr-4">
|
49
49
|
<%# TODO: should be localized %>
|
@@ -82,17 +82,17 @@ end
|
|
82
82
|
<%= form.check_box method, {
|
83
83
|
multiple: multiple, checked: checked_value,
|
84
84
|
data: option_field_options[:data],
|
85
|
-
class: "focus:ring-blue h-4 w-4 text-blue border-
|
85
|
+
class: "focus:ring-blue h-4 w-4 text-blue border-slate-300 rounded"
|
86
86
|
}, value, "" %>
|
87
87
|
<% else %>
|
88
|
-
<%= form.radio_button method, value, {class: "focus:ring-blue h-4 w-4 text-blue border-
|
88
|
+
<%= form.radio_button method, value, {class: "focus:ring-blue h-4 w-4 text-blue border-slate-300", data: option_field_options[:data]} %>
|
89
89
|
<% end %>
|
90
90
|
|
91
91
|
</div>
|
92
92
|
<div class="ml-2.5 text-sm">
|
93
93
|
<div class="select-none"><%= label %></div>
|
94
94
|
<% if labels.options_help&.dig(value)&.present? %>
|
95
|
-
<p class="mt-0.5 text-xs text-
|
95
|
+
<p class="mt-0.5 text-xs text-slate-500">
|
96
96
|
<%= labels.options_help.dig(value) %>
|
97
97
|
</p>
|
98
98
|
<% end %>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bullet_train-themes-tailwind_css
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.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:
|
11
|
+
date: 2023-02-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: standard
|