bullet_train-themes-light 1.0.34 → 1.0.37

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: 75be7e4e6b8010397346a40aa03f61a431625dbc864516891efca13a828d5a1b
4
- data.tar.gz: e0d47fcfdb395d2c000f980371211816c1e1eee688d4b690e49218793dc1cf7f
3
+ metadata.gz: 3a9edbd6f9361ea3e63f1c1af36e74f8176c4a97a93e932b03e3a7860f748c52
4
+ data.tar.gz: 952d211adc95c5cb6651b26c855ee0c8a3b1d35257076f48892e5724580def99
5
5
  SHA512:
6
- metadata.gz: b93cc5f7a483f930c2f79554c6ab900a7dc6372d91202ecb783f4bca85d6b61245353a8307e91504218c2c1914e9c6b4510db2731b9e71318e4a9c561db9119d
7
- data.tar.gz: 1da57f34dbc14bf084ce09053fb62c66dff4996e2048ee40820661eba454cfca225f7b65c8c959fa8b806e46a4c553cb9ae00d49a3db290aadb5ede65b836ffc
6
+ metadata.gz: f246a927856ce8e7a685c43b2f48e3f1f65fa4ed2b998d002815c9164eb39d46572af9e61abcc5b7fb3f83c5aa94c7527cad006e40fec79ea0faae942d3cf3e5
7
+ data.tar.gz: 28d74dea8a0cb56ae750688eb26102e36cb327efb76ce545f0f407fff1ed2b56c0a2c9f7e27413cd1795a1eb56ab652291d975ab03f7b816e4e5a005547e8d14
@@ -1,13 +1,13 @@
1
1
  <% color ||= 'yellow' %>
2
2
 
3
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 %>-900 font-light">
4
+ <h3 class="text-sm text-<%= color %>-600 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-400 border-yellow-500 text-yellow-900"></div>
12
- <div class="bg-red-400 border-red-500 text-red-900"></div>
11
+ <div class="bg-yellow-400 border-yellow-500 dark:border-yellow-200 text-yellow-600 dark:text-yellow-200"></div>
12
+ <div class="bg-red-400 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 ||= "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>
@@ -1,7 +1,7 @@
1
1
  <% yield p = np %>
2
2
 
3
3
  <div class="-m-0.5">
4
- <div class="border-2 border-dashed rounded-lg border-yellow-300 bg-yellow-100 dark:bg-opacity-10 dark:border-yellow-200 dark:border-opacity-70 -m-3 p-3 xl:py-4 xl:px-4 xl:-mx-4">
4
+ <div class="border border-dashed rounded-lg border-yellow-500 bg-yellow-400 dark:bg-opacity-10 dark:border-yellow-200 dark:border-opacity-70 -m-3 p-3 xl:py-4 xl:px-4 xl:-mx-4">
5
5
  <%= p.content_for :content %>
6
6
 
7
7
  <div class="py-3 px-3 space-y-2 pt-6">
@@ -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.34"
4
+ VERSION = "1.0.37"
5
5
  end
6
6
  end
7
7
  end
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.34
4
+ version: 1.0.37
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-01 00:00:00.000000000 Z
11
+ date: 2022-07-02 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