bullet_train-themes-tailwind_css 1.0.8 → 1.0.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/.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 +2 -2
- data/lib/bullet_train/themes/tailwind_css/version.rb +1 -1
- data/lib/bullet_train/themes/tailwind_css.rb +2 -1
- metadata +34 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2c7303e92428b04ed12211d3707d3ca80ab6462f4f58f8de26bb9e7d8c5171f6
|
|
4
|
+
data.tar.gz: ca9101d5217e280a80f43f257556110c3f6c19901731374b46171bba6de00fba
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 367af6b907a592e7afd3ef70472330eb64b731de4ab378fe7839c2e5b1f0d4c444822fe9f6cf0bb4eb2aef704c3abe72124eb8ee13fb1f770572d2ad81b6b8c1
|
|
7
|
+
data.tar.gz: 03a983fbd37c9f28cecb94f2aee2e7eae05ff7bbb6d86ade2c4027273b3007c78f80287306e1bacee7d200000d4e76e33c0005039f705702766d93827fc4c82f
|
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 %>
|
|
@@ -9,12 +9,12 @@ html_options[:id] ||= id_for(form, method)
|
|
|
9
9
|
multiple ||= false
|
|
10
10
|
other_options ||= {}
|
|
11
11
|
options ||= options_for(form, method)
|
|
12
|
-
value = form.object.
|
|
12
|
+
value = form.object.send(method)
|
|
13
13
|
%>
|
|
14
14
|
|
|
15
15
|
<% content = render 'shared/fields/field', form: form, method: method, options: html_options, other_options: other_options do %>
|
|
16
16
|
<% content_for :field do %>
|
|
17
|
-
<div class="space-x-1" data-controller="<%= stimulus_controller %>" data-<%= stimulus_controller %>-initial-color-value="<%=
|
|
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
20
|
<% options.each do |color| %>
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
require "bullet_train/themes/tailwind_css/version"
|
|
2
2
|
require "bullet_train/themes/tailwind_css/engine"
|
|
3
3
|
require "bullet_train/themes"
|
|
4
|
+
require "bullet_train"
|
|
4
5
|
|
|
5
6
|
module BulletTrain
|
|
6
7
|
module Themes
|
|
7
8
|
module TailwindCss
|
|
8
9
|
class Theme < BulletTrain::Themes::Base::Theme
|
|
9
10
|
def directory_order
|
|
10
|
-
[
|
|
11
|
+
["tailwind_css"] + super
|
|
11
12
|
end
|
|
12
13
|
end
|
|
13
14
|
end
|
metadata
CHANGED
|
@@ -1,29 +1,57 @@
|
|
|
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.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: 2022-
|
|
11
|
+
date: 2022-07-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: standard
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - ">="
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: '0'
|
|
20
|
+
type: :development
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - ">="
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: '0'
|
|
13
27
|
- !ruby/object:Gem::Dependency
|
|
14
28
|
name: rails
|
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
|
16
30
|
requirements:
|
|
17
31
|
- - ">="
|
|
18
32
|
- !ruby/object:Gem::Version
|
|
19
|
-
version:
|
|
33
|
+
version: 6.0.0
|
|
20
34
|
type: :runtime
|
|
21
35
|
prerelease: false
|
|
22
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
37
|
requirements:
|
|
24
38
|
- - ">="
|
|
25
39
|
- !ruby/object:Gem::Version
|
|
26
|
-
version:
|
|
40
|
+
version: 6.0.0
|
|
41
|
+
- !ruby/object:Gem::Dependency
|
|
42
|
+
name: bullet_train
|
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
|
44
|
+
requirements:
|
|
45
|
+
- - ">="
|
|
46
|
+
- !ruby/object:Gem::Version
|
|
47
|
+
version: '0'
|
|
48
|
+
type: :runtime
|
|
49
|
+
prerelease: false
|
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
+
requirements:
|
|
52
|
+
- - ">="
|
|
53
|
+
- !ruby/object:Gem::Version
|
|
54
|
+
version: '0'
|
|
27
55
|
- !ruby/object:Gem::Dependency
|
|
28
56
|
name: bullet_train-themes
|
|
29
57
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -45,11 +73,13 @@ executables: []
|
|
|
45
73
|
extensions: []
|
|
46
74
|
extra_rdoc_files: []
|
|
47
75
|
files:
|
|
76
|
+
- ".bt-link"
|
|
48
77
|
- MIT-LICENSE
|
|
49
78
|
- README.md
|
|
50
79
|
- Rakefile
|
|
51
80
|
- app/assets/config/bullet_train_themes_tailwind_css_manifest.js
|
|
52
81
|
- app/views/themes/tailwind_css/attributes/_attempt.html.erb
|
|
82
|
+
- app/views/themes/tailwind_css/attributes/_file.erb
|
|
53
83
|
- app/views/themes/tailwind_css/fields/_buttons.html.erb
|
|
54
84
|
- app/views/themes/tailwind_css/fields/_cloudinary_image.html.erb
|
|
55
85
|
- app/views/themes/tailwind_css/fields/_color_picker.html.erb
|