bullet_train-themes-light 1.0.35 → 1.0.38
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/light/_alert.html.erb +4 -4
- data/app/views/themes/light/_box.html.erb +8 -6
- data/app/views/themes/light/_well.html.erb +15 -13
- data/app/views/themes/light/actions/_action.html.erb +2 -17
- data/app/views/themes/light/actions/_box.html.erb +6 -0
- data/app/views/themes/light/actions/_list.html.erb +3 -0
- data/app/views/themes/light/fields/_field.html.erb +3 -3
- data/lib/bullet_train/themes/light/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2d72e4e2c01bc3e1270c578560c9a082c81d8560befb1b34ccc9df20ed12c70f
|
4
|
+
data.tar.gz: ca2512cc87ddf31ef1b8c8a277c48d4525b5544a31aae40bed07b0ab61b96ac5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 232e5635bc1dab3e6a6722b20d71aeddd213583d22e4e7064b7bba149efb6c6a95681fe394a4085c55971bda4f6b2a6b2c545565fc7fb2343fc8bd20990fdb6a
|
7
|
+
data.tar.gz: 92dfd6ae374004bd477a71321e7e0a76653b67931e3bebe39e98e702535b089a0b47d92333332d97dd944322d247e52c7af206f93b15fd8222789f192323479e
|
@@ -1,13 +1,13 @@
|
|
1
1
|
<% color ||= 'yellow' %>
|
2
2
|
|
3
|
-
<div class="rounded-md bg-<%= color %>-
|
4
|
-
<h3 class="text-sm text-<%= color %>-600
|
3
|
+
<div class="rounded-md bg-<%= color %>-300 border border-<%= color %>-500 py-4 px-5 mb-3">
|
4
|
+
<h3 class="text-sm text-<%= color %>-600 font-light">
|
5
5
|
<%= yield %>
|
6
6
|
</h3>
|
7
7
|
</div>
|
8
8
|
|
9
9
|
<% # we have to list out the evaluations we want possible above so purgecss includes them in production. %>
|
10
10
|
<% if false %>
|
11
|
-
<div class="bg-yellow-
|
12
|
-
<div class="bg-red-
|
11
|
+
<div class="bg-yellow-300 border-yellow-500 dark:border-yellow-200 text-yellow-600 dark:text-yellow-200"></div>
|
12
|
+
<div class="bg-red-300 border-red-500 dark:border-red-200 text-red-600 dark:text-red-200"></div>
|
13
13
|
<% end %>
|
@@ -2,14 +2,16 @@
|
|
2
2
|
|
3
3
|
<% divider ||= nil %>
|
4
4
|
<% no_background ||= false %>
|
5
|
-
<% title_size ||=
|
5
|
+
<% title_size ||= nil %>
|
6
|
+
<% title_padding ||= nil %>
|
7
|
+
<% border_top ||= false %>
|
6
8
|
<% body = p.content_for(:body) || p.content_for(:raw_body) %>
|
7
9
|
<% pagy ||= nil %>
|
8
10
|
|
9
|
-
<div class="<%= "bg-white rounded-md shadow dark:bg-darkPrimary-700" unless no_background %> overflow-hidden">
|
10
|
-
<div class="py-6 px-8 space-y-2 <%= 'border-b shadow-sm dark:border-darkPrimary-600' if divider %>">
|
11
|
+
<div class="<%= "bg-white rounded-md shadow dark:bg-darkPrimary-700" unless no_background %> overflow-hidden <%= border_top ? "border-t dark:border-darkPrimary-500" : "" %>">
|
12
|
+
<div class="py-6 px-8 <%= title_padding %> space-y-2 <%= 'border-b shadow-sm dark:border-darkPrimary-600' if divider %>">
|
11
13
|
<% if p.content_for? :title %>
|
12
|
-
<h2 class="
|
14
|
+
<h2 class="text-xl font-semibold dark:text-white <%= title_size %>">
|
13
15
|
<%= p.content_for :title %>
|
14
16
|
</h2>
|
15
17
|
<% end %>
|
@@ -53,13 +55,13 @@
|
|
53
55
|
</div>
|
54
56
|
|
55
57
|
<% if p.content_for? :footer %>
|
56
|
-
<div class="py-4 px-8 bg-gray-50 border-t dark:bg-darkPrimary-
|
58
|
+
<div class="py-4 px-8 bg-gray-50 border-t dark:bg-darkPrimary-900 dark:border-darkPrimary-600">
|
57
59
|
<%= p.content_for :footer %>
|
58
60
|
</div>
|
59
61
|
<% end %>
|
60
62
|
|
61
63
|
<% if p.content_for? :raw_footer %>
|
62
|
-
<div class="bg-gray-50 dark:bg-darkPrimary-
|
64
|
+
<div class="bg-gray-50 dark:bg-darkPrimary-900">
|
63
65
|
<%= p.content_for :raw_footer %>
|
64
66
|
</div>
|
65
67
|
<% end %>
|
@@ -1,19 +1,21 @@
|
|
1
1
|
<% yield p = np %>
|
2
2
|
|
3
|
-
<div class="border border-gray-300 rounded-md py-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
3
|
+
<div class="border border-gray-300 dark:border-opacity-10 rounded-md py-4 px-5 bg-gray-50 dark:bg-opacity-10 space-y">
|
4
|
+
<% if p.content_for?(:title) || p.content_for?(:description) %>
|
5
|
+
<div class="space-y-2">
|
6
|
+
<% if p.content_for? :title %>
|
7
|
+
<h2 class="text-base font-semibold">
|
8
|
+
<%= p.content_for :title %>
|
9
|
+
</h2>
|
10
|
+
<% end %>
|
10
11
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
12
|
+
<% if p.content_for? :description %>
|
13
|
+
<p class="text-gray-400 font-light leading-normal">
|
14
|
+
<%= p.content_for :description %>
|
15
|
+
</p>
|
16
|
+
<% end %>
|
17
|
+
</div>
|
18
|
+
<% end %>
|
17
19
|
|
18
20
|
<% if p.content_for? :body %>
|
19
21
|
<div class="space-y">
|
@@ -9,22 +9,7 @@
|
|
9
9
|
<div class="flex">
|
10
10
|
<div class="flex-1 space-y-4 py-1">
|
11
11
|
<div>
|
12
|
-
<%= action.label_string %>
|
13
|
-
<%= target_description = capture do %>
|
14
|
-
<% if action.is_a?(Actions::TargetsMany) %>
|
15
|
-
<% if action.target_all? %>
|
16
|
-
all Tangible Things
|
17
|
-
<% else %>
|
18
|
-
<% if action.target_ids.one? %>
|
19
|
-
<%= action.targeted.first.label_string %>
|
20
|
-
<% else %>
|
21
|
-
<%= action.target_ids.count %> <%= "Tangible Thing".pluralize(action.target_ids.count) %>
|
22
|
-
<% end %>
|
23
|
-
<% end %>
|
24
|
-
<% else %>
|
25
|
-
<%= action.targeted.label_string %>
|
26
|
-
<% end %>
|
27
|
-
<% end %>
|
12
|
+
<%= action.label_string %>
|
28
13
|
</div>
|
29
14
|
</div>
|
30
15
|
<div class="flex-0">
|
@@ -38,7 +23,7 @@
|
|
38
23
|
<% end %>
|
39
24
|
<% if can? :edit, action %>
|
40
25
|
<%= link_to t("#{action.class.name.pluralize.underscore}.buttons.shorthand.edit"), [:edit, :account, action], class: 'button-secondary button-smaller' %>
|
41
|
-
<% end %>
|
26
|
+
<% end unless action.started_at # TODO This is the wrong way to do this, we need to do this in `roles.yml` when we can. %>
|
42
27
|
<% if can? :destroy, action %>
|
43
28
|
<%= button_to t("#{action.class.name.pluralize.underscore}.buttons.shorthand.destroy"), [:account, action], method: :delete, data: { confirm: t("#{action.class.name.pluralize.underscore}.buttons.confirmations.destroy", model_locales(action)) }, class: 'button-secondary button-smaller' %>
|
44
29
|
<% end %>
|
@@ -17,7 +17,7 @@ has_errors = errors.any? || content_for(:error).present? || other_options[:error
|
|
17
17
|
options[:class] = "#{options[:class]} block w-full rounded-md shadow-sm font-light text-sm"
|
18
18
|
|
19
19
|
options[:class] += if has_errors
|
20
|
-
" pr-10 border-red-
|
20
|
+
" pr-10 border-red-600 text-red-600 placeholder-red-600 focus:outline-none focus:ring-red-500 focus:border-red-500 dark:bg-darkPrimary-800 dark:text-darkPrimary-300"
|
21
21
|
else
|
22
22
|
" focus:ring-primary-500 focus:border-primary-500 border-gray-300 dark:bg-darkPrimary-800 dark:border-darkPrimary-900 dark:text-darkPrimary-300"
|
23
23
|
end
|
@@ -53,7 +53,7 @@ end
|
|
53
53
|
|
54
54
|
<% # any error messages. %>
|
55
55
|
<% if has_errors %>
|
56
|
-
<p class="mt-1.5 text-xs text-red">
|
56
|
+
<p class="mt-1.5 text-xs text-red-600">
|
57
57
|
<%= errors.map { |error| error + ". " }.join %>
|
58
58
|
<%= yield :error %>
|
59
59
|
<% flush_content_for :error %>
|
@@ -65,7 +65,7 @@ end
|
|
65
65
|
|
66
66
|
<% # any help text. %>
|
67
67
|
<% if content_for?(:help) || other_options[:help] || content_for?(:after_help) %>
|
68
|
-
<p class="mt-1.5 text-xs text-gray-500">
|
68
|
+
<p class="mt-1.5 text-xs text-gray-500 dark:text-gray-400">
|
69
69
|
<%= yield :help %>
|
70
70
|
<% flush_content_for :help %>
|
71
71
|
<%= other_options[:help]&.html_safe %>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bullet_train-themes-light
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.38
|
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-07-
|
11
|
+
date: 2022-07-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: standard
|
@@ -97,6 +97,8 @@ files:
|
|
97
97
|
- app/views/themes/light/_title.html.erb
|
98
98
|
- app/views/themes/light/_well.html.erb
|
99
99
|
- app/views/themes/light/actions/_action.html.erb
|
100
|
+
- app/views/themes/light/actions/_box.html.erb
|
101
|
+
- app/views/themes/light/actions/_list.html.erb
|
100
102
|
- app/views/themes/light/attributes/_base.html.erb
|
101
103
|
- app/views/themes/light/attributes/_block.html.erb
|
102
104
|
- app/views/themes/light/billing/_pricing_table.html.erb
|