bullet_train-themes-tailwind_css 1.0.11 → 1.0.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- 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 +1 -1
- data/app/views/themes/tailwind_css/fields/_date_field.html.erb +1 -1
- data/app/views/themes/tailwind_css/fields/_file_field.html.erb +1 -1
- 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: fd6be9eb43e01d85afebd6bea397737747636af8535560a95505b23b043ca758
|
4
|
+
data.tar.gz: e10a4b03026608bbe7967d7bff8a1c405c141fe7ee6323323894365ca24dc014
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ac6216bb8a943ca8cdb99e6d7108f6ea0be8210a8efb2f633e94d45f535f2244d21f5f4e7112f7a27ad586b633f28c191a7d0ffab3bc27c068287b0247d73a8
|
7
|
+
data.tar.gz: 48af2a849b1c09311fd31f8d970bb85141074a52baf641f6d7e202cf7b94b09853b998bfe5a620e85392d000a34017295dbf2b926f429f5cdbeedee5305989d8
|
@@ -17,17 +17,17 @@ value = form.object.send(method)
|
|
17
17
|
<div class="space-x-1" data-controller="<%= stimulus_controller %>" data-<%= stimulus_controller %>-initial-color-value="<%= value %>">
|
18
18
|
<%= form.hidden_field method, value: value, data: {"#{stimulus_controller}-target": "colorPickerValue"} %>
|
19
19
|
<div class="inline space-x-1" data-<%= stimulus_controller %>-target="colorOptions">
|
20
|
-
<% options.each do |color| %>
|
20
|
+
<% options[:color_picker_options].each do |color| %>
|
21
21
|
<label class="btn-toggle btn-color-picker">
|
22
|
-
<button type="button" class="button-color mb-1.5 dark:ring-offset-
|
22
|
+
<button type="button" class="button-color mb-1.5 dark:ring-offset-darkPrimary-700 <%= color == value ? 'ring-2 ring-offset-2' : '' %>" style="background-color: <%= color %>; --tw-ring-color: <%= color %>" data-action="<%= stimulus_controller %>#pickColor" data-color="<%= color %>"> </button>
|
23
23
|
</label>
|
24
24
|
<% end %>
|
25
25
|
</div>
|
26
26
|
<label class="btn-toggle btn-color-picker">
|
27
|
-
<button type="button" class="button-color mr-1 dark:ring-offset-
|
27
|
+
<button type="button" class="button-color mr-1 dark:ring-offset-darkPrimary-700 <%= value.blank? || options.include?(value) ? 'hidden' : 'ring-2 ring-offset-2' %>" data-action="<%= stimulus_controller %>#pickColor" data-<%= stimulus_controller %>-target="userSelectedColor" data-color="<%= value %>" style="background-color: <%= value %>; --tw-ring-color: <%= value %>"> </button>
|
28
28
|
</label>
|
29
29
|
<span class="relative">
|
30
|
-
<input type="text" disabled="disabled" class="rounded-md shadow-sm font-light font-mono text-sm focus:ring-blue focus:border-blue border-gray-300 w-48 dark:bg-
|
30
|
+
<input type="text" disabled="disabled" class="rounded-md shadow-sm font-light font-mono text-sm focus:ring-blue focus:border-blue border-gray-300 w-48 dark:bg-darkPrimary-800 dark:border-darkPrimary-900" value="<%= value %>" data-<%= stimulus_controller %>-target="colorInput"/>
|
31
31
|
<span class="absolute right-0">
|
32
32
|
<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">
|
33
33
|
<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] ||= id_for(form, method)
|
7
|
-
options[:class] = "form-control single-daterange w-full border-gray-300 dark:bg-
|
7
|
+
options[:class] = "form-control single-daterange w-full border-gray-300 dark:bg-darkPrimary-800 dark:border-darkPrimary-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 ||= {}
|
@@ -6,7 +6,7 @@ stimulus_controller = 'fields--date'
|
|
6
6
|
form ||= current_fields_form
|
7
7
|
options ||= {}
|
8
8
|
options[:id] ||= id_for(form, method)
|
9
|
-
options[:class] = "form-control single-daterange w-full border-gray-300 dark:bg-
|
9
|
+
options[:class] = "form-control single-daterange w-full border-gray-300 dark:bg-darkPrimary-800 dark:border-darkPrimary-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 ||= {}
|
@@ -31,7 +31,7 @@ other_options ||= {}
|
|
31
31
|
<span class="dark:text-white">Upload New Document</span>
|
32
32
|
</div>
|
33
33
|
<div class="mt-2 hidden flex overflow-hidden text-xs rounded bg-black-400">
|
34
|
-
<div data-fields--file-field-target="progressBar" aria-valuemax="100" aria-valuemin="0" aria-valuenow="0" class="flex flex-col justify-center text-white text-center whitespace-nowrap overflow-hidden bg-
|
34
|
+
<div data-fields--file-field-target="progressBar" aria-valuemax="100" aria-valuemin="0" aria-valuenow="0" class="flex flex-col justify-center text-white text-center whitespace-nowrap overflow-hidden dark:bg-darkPrimary-800" role="progressbar" style="width: 0%;"> 0%</div>
|
35
35
|
</div>
|
36
36
|
</div>
|
37
37
|
</div>
|