bullet_train-themes-light 1.0.38 → 1.0.42

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: 2d72e4e2c01bc3e1270c578560c9a082c81d8560befb1b34ccc9df20ed12c70f
4
- data.tar.gz: ca2512cc87ddf31ef1b8c8a277c48d4525b5544a31aae40bed07b0ab61b96ac5
3
+ metadata.gz: 247e0645849fc300b51cd946e428ad6082abe86ec9e1ed4927c5e7f2e404aa64
4
+ data.tar.gz: 794a0ac9cef5249ef03d8f81a63cbeb4f5dc0b1be5aced96ed7488a40f8afe3a
5
5
  SHA512:
6
- metadata.gz: 232e5635bc1dab3e6a6722b20d71aeddd213583d22e4e7064b7bba149efb6c6a95681fe394a4085c55971bda4f6b2a6b2c545565fc7fb2343fc8bd20990fdb6a
7
- data.tar.gz: 92dfd6ae374004bd477a71321e7e0a76653b67931e3bebe39e98e702535b089a0b47d92333332d97dd944322d247e52c7af206f93b15fd8222789f192323479e
6
+ metadata.gz: f7ea23ccfde6dc78b949db78a5c4a8438cb1507693ae0a5222f4b95bff7bc764fe3bc16daf6adf5596c1ae941ef071991fbfbeba3695a89a38d7c15afb836eb0
7
+ data.tar.gz: d0966f407fa9d8dd42486f5dbf2300aa959d73864ce3a87d1e5406d6c599c173225ca1feea29790dc615826a616291e781888a09646082d449395bbd66ed0873
@@ -1,13 +1,13 @@
1
1
  <% color ||= 'yellow' %>
2
2
 
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">
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>
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-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>
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 %>
@@ -1,25 +1,33 @@
1
1
  <% yield p = np %>
2
2
 
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>
3
+ <div class="border border-gray-300 dark:border-opacity-10 rounded-md bg-gray-50 dark:bg-opacity-10">
4
+ <% if p.content_for?(:title) || p.content_for?(:description) || p.content_for?(:body) %>
5
+ <div class="py-4 px-5 space-y">
6
+ <% if p.content_for?(:title) || p.content_for?(:description) %>
7
+ <div class="space-y-2">
8
+ <% if p.content_for? :title %>
9
+ <h2 class="text-base font-semibold">
10
+ <%= p.content_for :title %>
11
+ </h2>
12
+ <% end %>
13
+
14
+ <% if p.content_for? :description %>
15
+ <p class="text-gray-400 font-light leading-normal">
16
+ <%= p.content_for :description %>
17
+ </p>
18
+ <% end %>
19
+ </div>
10
20
  <% end %>
11
21
 
12
- <% if p.content_for? :description %>
13
- <p class="text-gray-400 font-light leading-normal">
14
- <%= p.content_for :description %>
15
- </p>
22
+ <% if p.content_for? :body %>
23
+ <div class="space-y">
24
+ <%= p.content_for :body %>
25
+ </div>
16
26
  <% end %>
17
27
  </div>
18
28
  <% end %>
19
29
 
20
- <% if p.content_for? :body %>
21
- <div class="space-y">
22
- <%= p.content_for :body %>
23
- </div>
24
- <% end %>
30
+ <div>
31
+ <%= p.content_for :raw_body %>
32
+ </div>
25
33
  </div>
@@ -1,3 +1,5 @@
1
+ <% yield p = np %>
2
+
1
3
  <div class="py-4 px-8 w-full space-y-3">
2
4
  <div class="flex space-x-4">
3
5
  <% if action.is_a?(Actions::TracksCreator) %>
@@ -13,8 +15,9 @@
13
15
  </div>
14
16
  </div>
15
17
  <div class="flex-0">
18
+ <%= p.yield :actions if p.content_for? :actions %>
16
19
  <% if action.is_a?(Actions::RequiresApproval) %>
17
- <% if can? :approve, action %>
20
+ <% if !action.approved? && can?(:approve, action) %>
18
21
  <%= button_to t("#{action.class.name.pluralize.underscore}.buttons.shorthand.approve"), [:approve, :account, action], method: :post, class: 'button-secondary button-smaller' %>
19
22
  <% end %>
20
23
  <% end %>
@@ -52,8 +55,8 @@
52
55
  </div>
53
56
 
54
57
  <% elsif action.is_a?(Actions::HasProgress) && action.started? %>
55
- <div class="mt-3 h-4 bg-gray-100 shadow-inner rounded w-full">
56
- <div class="h-4 animate-pulse bg-primary-500 rounded" style="width: <%= action.completion_percent %>%"></div>
58
+ <div class="mt-3">
59
+ <%= render "shared/attributes/progress_bar", object: action, attribute: :performed_count, total: :target_count %>
57
60
  </div>
58
61
 
59
62
  <div class="mt-2 uppercase text-xs text-gray-400">
@@ -0,0 +1,21 @@
1
+ <% object ||= current_attributes_object %>
2
+ <% strategy ||= current_attributes_strategy || :none %>
3
+ <% url ||= nil %>
4
+ <% hide_completed ||= false %>
5
+
6
+ <% if object.send(total).present? %>
7
+ <% completion_percent = (object.send(attribute).to_f / object.send(total).to_f) * 100.0 %>
8
+
9
+ <% unless completion_percent == 100 && hide_completed %>
10
+ <%= render 'shared/attributes/attribute', object: object, attribute: "#{attribute}_over_#{total}".to_sym, strategy: strategy, url: url do %>
11
+ <% if completion_percent == 100 %>
12
+ <i class="fal fa-check ti ti-check text-green-500"></i>
13
+ <% else %>
14
+ <div class="h-4 bg-gray-100 shadow-inner rounded w-full">
15
+ <div class="h-4 <%= 'animate-pulse' unless completion_percent == 100 %> bg-primary-500 rounded" style="width: <%= completion_percent %>%"></div>
16
+ </div>
17
+ <% end %>
18
+ <% end %>
19
+ <% end %>
20
+ <% end %>
21
+
@@ -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-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"
20
+ " pr-10 border-red-500 text-red-900 placeholder-red-500 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
@@ -1,7 +1,7 @@
1
1
  module BulletTrain
2
2
  module Themes
3
3
  module Light
4
- VERSION = "1.0.38"
4
+ VERSION = "1.0.42"
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.38
4
+ version: 1.0.42
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-03 00:00:00.000000000 Z
11
+ date: 2022-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: standard
@@ -101,6 +101,7 @@ files:
101
101
  - app/views/themes/light/actions/_list.html.erb
102
102
  - app/views/themes/light/attributes/_base.html.erb
103
103
  - app/views/themes/light/attributes/_block.html.erb
104
+ - app/views/themes/light/attributes/_progress_bar.html.erb
104
105
  - app/views/themes/light/billing/_pricing_table.html.erb
105
106
  - app/views/themes/light/breadcrumbs/_actions.html.erb
106
107
  - app/views/themes/light/commentary/_box.html.erb