bullet_train-themes-light 1.0.35 → 1.0.36
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/light/_alert.html.erb +2 -2
- 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 +1 -1
- data/lib/bullet_train/themes/light/version.rb +1 -1
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb7d715a5fd9292e7be322e48cd5e56fdf6716447a7f7ae967dc5d32782800d6
|
4
|
+
data.tar.gz: 1cf82c1ed50995c6768d81aaea9c39902c1cc156592e1f5ecb5db79b5565dc68
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b2dad0b125c17f9b6656402df536e9d5367ce764c91009e60d7b334536243a5918a62b8d24a6922a7f4170d6b5c8ad7a4e0ed10af3c4327a02d3122b09140ac3
|
7
|
+
data.tar.gz: e31ed6dff0a425568a6aaa00845ae3e9077e81d490ccd058f8efab0b099124a516e344982a6ba955c73a508a112cbdb660bfd0116bc424e18c42df2d7a6a8383
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<% color ||= 'yellow' %>
|
2
2
|
|
3
|
-
<div class="rounded-md bg-<%= color %>-400 border border-<%= color %>-500
|
4
|
-
<h3 class="text-sm text-<%= color %>-600
|
3
|
+
<div class="rounded-md bg-<%= color %>-400 border border-<%= color %>-500 py-4 px-5 mb-3">
|
4
|
+
<h3 class="text-sm text-<%= color %>-600 text-<%= color %>-600 font-light">
|
5
5
|
<%= yield %>
|
6
6
|
</h3>
|
7
7
|
</div>
|
@@ -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 %>
|
@@ -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,7 +1,7 @@
|
|
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.36
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Culver
|
@@ -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
|