bullet_train-themes-tailwind_css 1.0.10 → 1.0.13
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/_attempt.html.erb +2 -2
- data/app/views/themes/tailwind_css/attributes/_file.erb +12 -0
- 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 +2 -2
- data/lib/bullet_train/themes/tailwind_css/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 433ebcfa3a3587634f2fc5b0c05625f0b251afffab0e7fca779b4d505dd596a4
|
4
|
+
data.tar.gz: 4cd18b6f13e2214b49bae388e5134ec82c155c221f9ae9407c3091571b169af0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd5478ae382d9fba4dd3c8ed5465d649c59541066ce0cb4bb19593fc8b0089366d8d8d28e93200789cf92e4ed9924e6eda98f49ac177216da9e5fde223784910
|
7
|
+
data.tar.gz: 477e2398f065c0bfead969580023aba7a44ced3aebfb01bd801a065cd70083dda6271a71476fc14af1338310bea18e5bfcd6c45f3f29b0fdb3e9f4ee2e823ff0
|
@@ -5,7 +5,7 @@
|
|
5
5
|
<%= render 'shared/attributes/attribute', attribute: attribute, strategy: strategy, url: url do %>
|
6
6
|
<span class="inline-block">
|
7
7
|
<% if object.send(success_method) %>
|
8
|
-
<i class="fal fa-check ti ti-check text-green"></i>
|
8
|
+
<i class="fal fa-check ti ti-check text-green-500"></i>
|
9
9
|
<% elsif object.send(attempting_method) %>
|
10
10
|
<style>
|
11
11
|
<% if font_awesome? %>
|
@@ -18,7 +18,7 @@
|
|
18
18
|
<i class="fal fa-sync ti ti-reload"></i>
|
19
19
|
</span>
|
20
20
|
<% elsif object.send(failure_method) %>
|
21
|
-
<i class="fal fa-close ti ti-close text-red"></i>
|
21
|
+
<i class="fal fa-close ti ti-close text-red-500"></i>
|
22
22
|
<% end %>
|
23
23
|
</span>
|
24
24
|
<% end %>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<% object ||= current_attributes_object %>
|
2
|
+
<% strategy ||= current_attributes_strategy || :none %>
|
3
|
+
<% url ||= nil %>
|
4
|
+
|
5
|
+
<% if object.send(attribute).attached? %>
|
6
|
+
<%= render 'shared/attributes/attribute', object: object, attribute: attribute, strategy: strategy, url: url do %>
|
7
|
+
<%= link_to url_for(object.send(attribute)), class: 'button download-file' do %>
|
8
|
+
<i class="leading-none mr-2 text-base ti ti-download"></i>
|
9
|
+
<span>Download File</span>
|
10
|
+
<% end %>
|
11
|
+
<% end %>
|
12
|
+
<% end %>
|
@@ -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 ||= {}
|
@@ -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 flex overflow-hidden text-xs rounded 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 bg-
|
33
|
+
<div class="mt-2 hidden flex overflow-hidden text-xs rounded bg-gray-100 shadow-inner">
|
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 animate-pulse bg-primary-500 dark:bg-darkPrimary-800 rounded" role="progressbar" style="width: 0%;">0%</div>
|
35
35
|
</div>
|
36
36
|
</div>
|
37
37
|
</div>
|
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.0.
|
4
|
+
version: 1.0.13
|
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-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: standard
|
@@ -79,6 +79,7 @@ files:
|
|
79
79
|
- Rakefile
|
80
80
|
- app/assets/config/bullet_train_themes_tailwind_css_manifest.js
|
81
81
|
- app/views/themes/tailwind_css/attributes/_attempt.html.erb
|
82
|
+
- app/views/themes/tailwind_css/attributes/_file.erb
|
82
83
|
- app/views/themes/tailwind_css/fields/_buttons.html.erb
|
83
84
|
- app/views/themes/tailwind_css/fields/_cloudinary_image.html.erb
|
84
85
|
- app/views/themes/tailwind_css/fields/_color_picker.html.erb
|