bullet_train-themes-light 1.0.35 → 1.0.36

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9ec64b1063017a7d9fa7d9394459aa93260d7886251d28dd3b92af9359ee3ce7
4
- data.tar.gz: fab815d7cf3ab31525f9e390fbf9655e78c7e5abeab0ff7a0e1ad7f40563b034
3
+ metadata.gz: bb7d715a5fd9292e7be322e48cd5e56fdf6716447a7f7ae967dc5d32782800d6
4
+ data.tar.gz: 1cf82c1ed50995c6768d81aaea9c39902c1cc156592e1f5ecb5db79b5565dc68
5
5
  SHA512:
6
- metadata.gz: 0ff4fe036e3931d865b1206d0439404bcf57b20efe6015f3f79ea0231cdd59e0a1d67bef45d4ea76719e67a8761336cb4b223512d5aac6a2b573b9d9bdb66196
7
- data.tar.gz: b370ed2e01f65a3426c827417d726ac1b702dc996194f04048b38b6b51251e5bf48f3692c26bca90e16c1cd0c1dd1c0d6c212e9938486155ef9849392493c3fc
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 dark:border-<%= color %>-200 py-4 px-5 mb-3">
4
- <h3 class="text-sm text-<%= color %>-600 dark:text-<%= color %>-200 font-light">
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 ||= "text-xl" %>
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="<%= title_size %> font-semibold dark:text-white">
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-800 dark:border-darkPrimary-600">
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-800">
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-5 px-6 bg-gray-50 space-y">
4
- <div class="space-y-2">
5
- <% if p.content_for? :title %>
6
- <h2 class="text-base font-semibold">
7
- <%= p.content_for :title %>
8
- </h2>
9
- <% end %>
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
- <% if p.content_for? :description %>
12
- <p class="text-gray-400 font-light leading-normal">
13
- <%= p.content_for :description %>
14
- </p>
15
- <% end %>
16
- </div>
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 %> on
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 %>
@@ -0,0 +1,6 @@
1
+ <% yield p = np %>
2
+
3
+ <%= render 'account/shared/box', no_background: true, title_size: "text-2xs", title_padding: "pt-3 pb-3.5", border_top: true do |pp| %>
4
+ <% pp.content_for :title, p.yield(:title) %>
5
+ <% pp.content_for :table, p.yield(:table) %>
6
+ <% end %>
@@ -0,0 +1,3 @@
1
+ <div class="divide-y divide-gray-900 divide-opacity-5 border-t dark:border-darkPrimary-500">
2
+ <%= yield %>
3
+ </div>
@@ -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 %>
@@ -1,7 +1,7 @@
1
1
  module BulletTrain
2
2
  module Themes
3
3
  module Light
4
- VERSION = "1.0.35"
4
+ VERSION = "1.0.36"
5
5
  end
6
6
  end
7
7
  end
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.35
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