bullet_train-themes-light 1.0.33 → 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: 4e8a53af3dbe481b56f3c6c92ca435eb23f4c8a14a1f263847bdb83ae5435e3a
4
- data.tar.gz: 0cec0cf05b8e423060bd32c794bb164571fd2855fbf34b7a1adae552fdfe867a
3
+ metadata.gz: bb7d715a5fd9292e7be322e48cd5e56fdf6716447a7f7ae967dc5d32782800d6
4
+ data.tar.gz: 1cf82c1ed50995c6768d81aaea9c39902c1cc156592e1f5ecb5db79b5565dc68
5
5
  SHA512:
6
- metadata.gz: a556bca497833fa49031c3089b5d89533f87d6fba779fc718ebbcae1be4901a7b890880c9a91de0d4ebb415cb0b14777aaacd35ebbe2672e46d54e5d32ff5083
7
- data.tar.gz: e6532e98015c26b6a1de368c2e27e6c04716d28ce31859d8c5c8614a473c4861a6e9358c2d3460bb4dfe0b7fd4a26c377203dac71d16b0ef17dca9bb8808a103
6
+ metadata.gz: b2dad0b125c17f9b6656402df536e9d5367ce764c91009e60d7b334536243a5918a62b8d24a6922a7f4170d6b5c8ad7a4e0ed10af3c4327a02d3122b09140ac3
7
+ data.tar.gz: e31ed6dff0a425568a6aaa00845ae3e9077e81d490ccd058f8efab0b099124a516e344982a6ba955c73a508a112cbdb660bfd0116bc424e18c42df2d7a6a8383
@@ -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 %>
@@ -0,0 +1,25 @@
1
+ <% yield p = np %>
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>
10
+ <% end %>
11
+
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 %>
19
+
20
+ <% if p.content_for? :body %>
21
+ <div class="space-y">
22
+ <%= p.content_for :body %>
23
+ </div>
24
+ <% end %>
25
+ </div>
@@ -0,0 +1,76 @@
1
+ <div class="py-4 px-8 w-full space-y-3">
2
+ <div class="flex space-x-4">
3
+ <% if action.is_a?(Actions::TracksCreator) %>
4
+ <div class="flex-0">
5
+ <%= render "shared/memberships/photo", membership: action.created_by, size: 7 %>
6
+ </div>
7
+ <% end %>
8
+ <div class="flex-1">
9
+ <div class="flex">
10
+ <div class="flex-1 space-y-4 py-1">
11
+ <div>
12
+ <%= action.label_string %>
13
+ </div>
14
+ </div>
15
+ <div class="flex-0">
16
+ <% if action.is_a?(Actions::RequiresApproval) %>
17
+ <% if can? :approve, action %>
18
+ <%= button_to t("#{action.class.name.pluralize.underscore}.buttons.shorthand.approve"), [:approve, :account, action], method: :post, class: 'button-secondary button-smaller' %>
19
+ <% end %>
20
+ <% end %>
21
+ <% if can? :read, action %>
22
+ <%= link_to t("#{action.class.name.pluralize.underscore}.buttons.shorthand.show"), [:account, action], class: 'button-secondary button-smaller' %>
23
+ <% end %>
24
+ <% if can? :edit, action %>
25
+ <%= link_to t("#{action.class.name.pluralize.underscore}.buttons.shorthand.edit"), [:edit, :account, action], class: 'button-secondary button-smaller' %>
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. %>
27
+ <% if can? :destroy, action %>
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' %>
29
+ <% end %>
30
+ </div>
31
+ </div>
32
+
33
+ <% if action.completed? %>
34
+ <% if action.is_a?(Actions::HasProgress) %>
35
+ <div class="uppercase text-xs text-gray-400">
36
+ Processed <%= action.performed_count %> of <%= action.target_count %> <%= display_date_and_time(action.completed_at) %>
37
+ </div>
38
+ <% else %>
39
+ <div class="uppercase text-xs text-gray-400">
40
+ Processed <%= display_date_and_time(action.completed_at) %>
41
+ </div>
42
+ <% end %>
43
+
44
+ <% elsif action.is_a?(Actions::RequiresApproval) && !action.approved? %>
45
+ <div class="uppercase text-xs text-gray-400">
46
+ Awaiting approval
47
+ </div>
48
+
49
+ <% elsif action.is_a?(Actions::SupportsScheduling) && action.scheduled_for && !action.started? %>
50
+ <div class="uppercase text-xs text-gray-400">
51
+ Scheduled for <%= display_date_and_time(action.scheduled_for) %>
52
+ </div>
53
+
54
+ <% 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>
57
+ </div>
58
+
59
+ <div class="mt-2 uppercase text-xs text-gray-400">
60
+ Processing <%= action.performed_count %> of <%= action.target_count %>
61
+ </div>
62
+
63
+ <% elsif action.is_a?(Actions::HasProgress) %>
64
+ <div class="uppercase text-xs text-gray-400">
65
+ Preparing to process <%= action.performed_count %> of <%= action.target_count %>
66
+ </div>
67
+
68
+ <% else %>
69
+ <div class="uppercase text-xs text-gray-400">
70
+ Preparing to process
71
+ </div>
72
+
73
+ <% end %>
74
+ </div>
75
+ </div>
76
+ </div>
@@ -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 %>
@@ -0,0 +1,3 @@
1
+ <% size ||= 12 %>
2
+
3
+ <%= image_tag membership_profile_photo_url(membership), class: "inline-block h-#{size} w-#{size} rounded-full" %>
@@ -1,7 +1,7 @@
1
1
  module BulletTrain
2
2
  module Themes
3
3
  module Light
4
- VERSION = "1.0.33"
4
+ VERSION = "1.0.36"
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.33
4
+ version: 1.0.36
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
@@ -95,6 +95,10 @@ files:
95
95
  - app/views/themes/light/_notices.html.erb
96
96
  - app/views/themes/light/_page.html.erb
97
97
  - app/views/themes/light/_title.html.erb
98
+ - app/views/themes/light/_well.html.erb
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
98
102
  - app/views/themes/light/attributes/_base.html.erb
99
103
  - app/views/themes/light/attributes/_block.html.erb
100
104
  - app/views/themes/light/billing/_pricing_table.html.erb
@@ -111,6 +115,7 @@ files:
111
115
  - app/views/themes/light/layouts/_head.html.erb
112
116
  - app/views/themes/light/layouts/_mailer.html.erb
113
117
  - app/views/themes/light/layouts/_pricing.html.erb
118
+ - app/views/themes/light/memberships/_photo.html.erb
114
119
  - app/views/themes/light/memberships/_photos.html.erb
115
120
  - app/views/themes/light/menu/_heading.html.erb
116
121
  - app/views/themes/light/menu/_item.html.erb