bullet_train-themes-tailwind_css 1.0.9 → 1.0.12
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/.bt-link +0 -0
- 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 +1 -1
- data/lib/bullet_train/themes/tailwind_css/version.rb +1 -1
- metadata +5 -3
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
|
data/.bt-link
ADDED
File without changes
|
@@ -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 ||= {}
|
@@ -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>
|
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.12
|
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-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: standard
|
@@ -73,11 +73,13 @@ executables: []
|
|
73
73
|
extensions: []
|
74
74
|
extra_rdoc_files: []
|
75
75
|
files:
|
76
|
+
- ".bt-link"
|
76
77
|
- MIT-LICENSE
|
77
78
|
- README.md
|
78
79
|
- Rakefile
|
79
80
|
- app/assets/config/bullet_train_themes_tailwind_css_manifest.js
|
80
81
|
- app/views/themes/tailwind_css/attributes/_attempt.html.erb
|
82
|
+
- app/views/themes/tailwind_css/attributes/_file.erb
|
81
83
|
- app/views/themes/tailwind_css/fields/_buttons.html.erb
|
82
84
|
- app/views/themes/tailwind_css/fields/_cloudinary_image.html.erb
|
83
85
|
- app/views/themes/tailwind_css/fields/_color_picker.html.erb
|
@@ -112,7 +114,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
112
114
|
- !ruby/object:Gem::Version
|
113
115
|
version: '0'
|
114
116
|
requirements: []
|
115
|
-
rubygems_version: 3.
|
117
|
+
rubygems_version: 3.2.22
|
116
118
|
signing_key:
|
117
119
|
specification_version: 4
|
118
120
|
summary: Bullet Train Themes Tailwind CSS Base
|