bullet_train-themes-tailwind_css 1.32.0 → 1.33.0
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 +2 -2
- data/app/views/themes/tailwind_css/fields/_active_storage_image.html.erb +2 -2
- data/app/views/themes/tailwind_css/fields/_buttons.html.erb +1 -1
- data/app/views/themes/tailwind_css/fields/_color_picker.html.erb +4 -4
- 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/_file_field.html.erb +2 -2
- data/app/views/themes/tailwind_css/fields/_option.html.erb +3 -3
- data/app/views/themes/tailwind_css/fields/_options.html.erb +2 -2
- data/lib/bullet_train/themes/tailwind_css/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bf0681aca4c0f2b7a75d44fcbc1632c435267ae7936fd88b6674c29951d251a7
|
|
4
|
+
data.tar.gz: d7d27281d9f694fed455003ee9d9c30674c9e49ebcdc7b3419a78cce90bf1a53
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 53c8db3a693f6e1a96d194e69b7ba7bbee60be9b6f147b67bb098f0d5a1d5e0393099cf0572ea849baaf50f2c78384755e44806aa269d1990745f1b8661cef32
|
|
7
|
+
data.tar.gz: c81c6b80bfd1bbf2f2ccc872d20208cd7c2b1c5c39d7941862444eafe0d8aec86c2ae46d65adb83cec0cd20903b44f7089ddb586c5fe2525b876c7a786b4f2c3
|
|
@@ -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-base-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>
|
|
@@ -19,4 +19,4 @@
|
|
|
19
19
|
<code class="text-pink-600 font-light"><%= object.send(source || attribute) %></code>
|
|
20
20
|
<% end %>
|
|
21
21
|
<% end %>
|
|
22
|
-
<% end %>
|
|
22
|
+
<% end %>
|
|
@@ -84,8 +84,8 @@ options[:height] ||= 100
|
|
|
84
84
|
<% end %>
|
|
85
85
|
</span>
|
|
86
86
|
</div>
|
|
87
|
-
<div class="mt-2 hidden overflow-hidden text-xs rounded bg-
|
|
88
|
-
<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-
|
|
87
|
+
<div class="mt-2 hidden overflow-hidden text-xs rounded bg-base-100 shadow-inner relative">
|
|
88
|
+
<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-base-800 rounded" role="progressbar" style="width: 0%;"> </div>
|
|
89
89
|
<div class="text-black text-center" data-fields--file-field-target="progressLabel">0%</div>
|
|
90
90
|
</div>
|
|
91
91
|
</div>
|
|
@@ -44,7 +44,7 @@ end
|
|
|
44
44
|
<%
|
|
45
45
|
button_classes = "button-alternative mb-1.5 mr-1"
|
|
46
46
|
if options[:disabled]
|
|
47
|
-
button_classes += " bg-
|
|
47
|
+
button_classes += " bg-base-200 dark:bg-base-700 hover:bg-base-200 hover:dark:bg-base-700"
|
|
48
48
|
end
|
|
49
49
|
%>
|
|
50
50
|
|
|
@@ -41,9 +41,9 @@ value = form.object.send(method)
|
|
|
41
41
|
|
|
42
42
|
color_selected_classes = "ring-2 ring-offset-2"
|
|
43
43
|
|
|
44
|
-
input_classes = "rounded-md shadow-sm font-light font-mono text-sm focus:ring-blue focus:border-blue border-
|
|
44
|
+
input_classes = "rounded-md shadow-sm font-light font-mono text-sm focus:ring-blue focus:border-blue border-base-300 w-48 dark:bg-base-800 dark:border-base-900"
|
|
45
45
|
if options[:disabled]
|
|
46
|
-
input_classes += " bg-
|
|
46
|
+
input_classes += " bg-base-200 dark:bg-base-700 hover:bg-base-200 hover:dark:bg-base-700"
|
|
47
47
|
stimulus_controller = ""
|
|
48
48
|
end
|
|
49
49
|
%>
|
|
@@ -60,7 +60,7 @@ end
|
|
|
60
60
|
<% color_picker_field_options.each do |color| %>
|
|
61
61
|
<label class="btn-toggle btn-color-picker">
|
|
62
62
|
<button type="button"
|
|
63
|
-
class="button-color mb-1.5 dark:ring-offset-
|
|
63
|
+
class="button-color mb-1.5 dark:ring-offset-base-700 <%= color == value ? color_selected_classes : '' %>"
|
|
64
64
|
style="background-color: <%= color %>; --tw-ring-color: <%= color %>"
|
|
65
65
|
data-action="<%= stimulus_controller %>#pickColor"
|
|
66
66
|
data-<%= stimulus_controller %>-target="colorButton"
|
|
@@ -70,7 +70,7 @@ end
|
|
|
70
70
|
<% end %>
|
|
71
71
|
</div>
|
|
72
72
|
<label class="btn-toggle btn-color-picker">
|
|
73
|
-
<button type="button" class="button-color mr-1 dark:ring-offset-
|
|
73
|
+
<button type="button" class="button-color mr-1 dark:ring-offset-base-700 <%= value.blank? || color_picker_field_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>
|
|
74
74
|
</label>
|
|
75
75
|
<span class="relative">
|
|
76
76
|
<input type="text" disabled="disabled" class="<%= input_classes %>" value="<%= value %>" data-<%= stimulus_controller %>-target="colorInput"/>
|
|
@@ -24,7 +24,7 @@ data_options = data_options.merge({ data: {"#{stimulus_controller}-target": 'fie
|
|
|
24
24
|
|
|
25
25
|
# localized display options
|
|
26
26
|
options[:id] ||= "#{form.field_id(method)}_display"
|
|
27
|
-
options[:class] = "form-control single-daterange w-full border-
|
|
27
|
+
options[:class] = "form-control single-daterange w-full border-base-300 dark:bg-base-800 dark:border-base-900 disabled:bg-base-200 disabled:dark:bg-base-700 #{options[:class]}".strip
|
|
28
28
|
raw_value = form.object.send(method)&.in_time_zone(current_user&.time_zone || current_team_time_zone || "UTC")
|
|
29
29
|
options[:value] = raw_value && I18n.l(raw_value, format: :date_and_time_field)
|
|
30
30
|
options = options.merge({ data: {"#{stimulus_controller}-target": 'displayField' }})
|
|
@@ -57,7 +57,7 @@ options = options.merge({ data: {"#{stimulus_controller}-target": 'displayField'
|
|
|
57
57
|
</button>
|
|
58
58
|
<% end %>
|
|
59
59
|
<% if current_user&.time_zone != current_team_time_zone %>
|
|
60
|
-
<div class="mt-1.5 text-xs text-
|
|
60
|
+
<div class="mt-1.5 text-xs text-base-500">
|
|
61
61
|
<input class="hidden" data-<%=stimulus_controller%>-target="timeZoneField" value="<%= current_time_zone %>">
|
|
62
62
|
<div data-<%= stimulus_controller %>-target="currentTimeZoneWrapper">
|
|
63
63
|
<%= link_to (current_user&.time_zone || current_team_time_zone || "UTC"), '#', class: 'button-secondary p-0', data: {action: "#{stimulus_controller}#showTimeZoneButtons"} %>
|
|
@@ -15,7 +15,7 @@ data_options = data_options.merge({ data: {"#{stimulus_controller}-target": 'fie
|
|
|
15
15
|
|
|
16
16
|
# localized display options
|
|
17
17
|
options[:id] ||= "#{form.field_id(method)}_display"
|
|
18
|
-
options[:class] = "form-control single-daterange w-full border-
|
|
18
|
+
options[:class] = "form-control single-daterange w-full border-base-300 dark:bg-base-800 dark:border-base-900 disabled:bg-base-200 disabled:dark:bg-base-700 #{options[:class]}".strip
|
|
19
19
|
options[:value] = form.object.send(method) && I18n.l(form.object.send(method), format: :date_field)
|
|
20
20
|
options = options.merge({ data: {"#{stimulus_controller}-target": 'displayField' }})
|
|
21
21
|
%>
|
|
@@ -81,8 +81,8 @@ persisted_files = options[:multiple] ? form.object.send(method) : [form.object.s
|
|
|
81
81
|
<% end %>
|
|
82
82
|
</span>
|
|
83
83
|
</div>
|
|
84
|
-
<div class="mt-2 hidden overflow-hidden text-xs rounded bg-
|
|
85
|
-
<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-
|
|
84
|
+
<div class="mt-2 hidden overflow-hidden text-xs rounded bg-base-100 shadow-inner relative">
|
|
85
|
+
<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-base-800 rounded" role="progressbar" style="width: 0%;"> </div>
|
|
86
86
|
<div class="text-black text-center" data-fields--file-field-target="progressLabel">0%</div>
|
|
87
87
|
</div>
|
|
88
88
|
</div>
|
|
@@ -22,8 +22,8 @@ end
|
|
|
22
22
|
# 3. form.radio_button
|
|
23
23
|
#
|
|
24
24
|
# the `append_class` local can be used to append any other styles desired for the element.
|
|
25
|
-
options[:class] ||= "focus:ring-primary-500 h-4 w-4 text-primary-500 border-
|
|
26
|
-
options[:class] += " disabled:bg-
|
|
25
|
+
options[:class] ||= "focus:ring-primary-500 h-4 w-4 text-primary-500 border-base-300 dark:bg-base-800 dark:border-base-900 #{"rounded" if options[:multiple] || single_check_box}"
|
|
26
|
+
options[:class] += " disabled:bg-base-200 disabled:dark:bg-base-700" # classes to give a visual indicator when a field is disabled
|
|
27
27
|
options[:class] += " #{append_class}"
|
|
28
28
|
%>
|
|
29
29
|
|
|
@@ -52,7 +52,7 @@ options[:class] += " #{append_class}"
|
|
|
52
52
|
<div class="ml-2.5 text-sm">
|
|
53
53
|
<div class="select-none"><%= label %></div>
|
|
54
54
|
<% if labels.options_help&.dig(value)&.present? %>
|
|
55
|
-
<p class="mt-0.5 text-xs text-
|
|
55
|
+
<p class="mt-0.5 text-xs text-base-500">
|
|
56
56
|
<%= labels.options_help.dig(value) %>
|
|
57
57
|
</p>
|
|
58
58
|
<% end %>
|
|
@@ -68,7 +68,7 @@ end
|
|
|
68
68
|
<div class="flex">
|
|
69
69
|
<%= tag.div class: [
|
|
70
70
|
"hidden",
|
|
71
|
-
"inline-block dark:border-
|
|
71
|
+
"inline-block dark:border-base-600",
|
|
72
72
|
"border-b pb-4 mb-4": show_select_all_top && !show_select_all_bottom,
|
|
73
73
|
"border-t pt-4 mt-4": !show_select_all_top && show_select_all_bottom
|
|
74
74
|
], data: {
|
|
@@ -79,7 +79,7 @@ end
|
|
|
79
79
|
<%= check_box_tag "#{options[:id]}-select_all", 'select-all', false, data: {
|
|
80
80
|
"select-all-target": 'toggleCheckbox',
|
|
81
81
|
'action': "select-all#selectAllOrNone"
|
|
82
|
-
}, class: "focus:ring-primary-500 h-4 w-4 text-primary-500 border-
|
|
82
|
+
}, class: "focus:ring-primary-500 h-4 w-4 text-primary-500 border-base-300 rounded disabled:bg-base-200 disabled:dark:bg-base-700" %>
|
|
83
83
|
</div>
|
|
84
84
|
<div class="ml-2.5 text-sm pr-4">
|
|
85
85
|
<%= t("global.bulk_select.all") %>
|