bullet_train-themes-light 1.0.32 → 1.0.35

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: 62b2a98ebff61046aca975bb2c3d3c58a487d0f43546d18803f9ae89c74a395c
4
- data.tar.gz: b78aabe7b961e71f1720e0d1704dd8b9b7948835e5879b2d4d5d307c31c7c6a0
3
+ metadata.gz: 9ec64b1063017a7d9fa7d9394459aa93260d7886251d28dd3b92af9359ee3ce7
4
+ data.tar.gz: fab815d7cf3ab31525f9e390fbf9655e78c7e5abeab0ff7a0e1ad7f40563b034
5
5
  SHA512:
6
- metadata.gz: be928fa451fca422459c909d9b55ff67b3e268a1f12022b2d4a03b1fd2ced250118e4c8901ad1f1c99d9d7119e015dea209ce85654a0a2bb2f65ac6e2a3730c1
7
- data.tar.gz: 6e5e37338145727ce782cac87b9ce21e455aab4c519c57c9eebaf806fc132befdaa09a87f7eee1b5bb63ac5b9ba139c35541a24d96596857664f2bd435949863
6
+ metadata.gz: 0ff4fe036e3931d865b1206d0439404bcf57b20efe6015f3f79ea0231cdd59e0a1d67bef45d4ea76719e67a8761336cb4b223512d5aac6a2b573b9d9bdb66196
7
+ data.tar.gz: b370ed2e01f65a3426c827417d726ac1b702dc996194f04048b38b6b51251e5bf48f3692c26bca90e16c1cd0c1dd1c0d6c212e9938486155ef9849392493c3fc
@@ -3,6 +3,7 @@
3
3
  @import "./tailwind/dark-mode";
4
4
  @import "./tailwind/colors";
5
5
 
6
+ @import './bulk_actions';
6
7
  @import "./electron";
7
8
  @import './fields';
8
9
  @import './turn';
@@ -0,0 +1,44 @@
1
+ @layer components {
2
+ .bulk-action-unavailable {
3
+ @apply hidden !important;
4
+ }
5
+
6
+ .bulk-actions-selectable-item-checkbox-wrapper {
7
+ @apply hidden;
8
+ }
9
+
10
+ .bulk-actions .bulk-actions-checkbox-cell {
11
+ @apply w-4 pr-0;
12
+ }
13
+
14
+ .bulk-actions:not(.selectable-available) {
15
+ .bulk-actions-selectable-toggle {
16
+ @apply hidden;
17
+ }
18
+ }
19
+
20
+ .bulk-actions:not(.selectable) {
21
+ td:nth-child(2),th:nth-child(2) {
22
+ @apply pl-5;
23
+ }
24
+
25
+ .box-table td:nth-child(2),th:nth-child(2) {
26
+ @apply pl-8;
27
+ }
28
+ }
29
+
30
+ .bulk-actions.selectable-available:not(.selectable) {
31
+ .bulk-action {
32
+ @apply hidden;
33
+ }
34
+ .bulk-actions-checkbox-cell {
35
+ @apply hidden;
36
+ }
37
+ }
38
+
39
+ .bulk-actions.selectable {
40
+ .bulk-action-single {
41
+ @apply hidden;
42
+ }
43
+ }
44
+ }
@@ -1,13 +1,13 @@
1
1
  <% color ||= 'yellow' %>
2
2
 
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">
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">
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 %>
@@ -0,0 +1,23 @@
1
+ <% yield p = np %>
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 %>
10
+
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>
17
+
18
+ <% if p.content_for? :body %>
19
+ <div class="space-y">
20
+ <%= p.content_for :body %>
21
+ </div>
22
+ <% end %>
23
+ </div>
@@ -0,0 +1,91 @@
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 %> 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 %>
28
+ </div>
29
+ </div>
30
+ <div class="flex-0">
31
+ <% if action.is_a?(Actions::RequiresApproval) %>
32
+ <% if can? :approve, action %>
33
+ <%= button_to t("#{action.class.name.pluralize.underscore}.buttons.shorthand.approve"), [:approve, :account, action], method: :post, class: 'button-secondary button-smaller' %>
34
+ <% end %>
35
+ <% end %>
36
+ <% if can? :read, action %>
37
+ <%= link_to t("#{action.class.name.pluralize.underscore}.buttons.shorthand.show"), [:account, action], class: 'button-secondary button-smaller' %>
38
+ <% end %>
39
+ <% if can? :edit, action %>
40
+ <%= link_to t("#{action.class.name.pluralize.underscore}.buttons.shorthand.edit"), [:edit, :account, action], class: 'button-secondary button-smaller' %>
41
+ <% end %>
42
+ <% if can? :destroy, action %>
43
+ <%= 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
+ <% end %>
45
+ </div>
46
+ </div>
47
+
48
+ <% if action.completed? %>
49
+ <% if action.is_a?(Actions::HasProgress) %>
50
+ <div class="uppercase text-xs text-gray-400">
51
+ Processed <%= action.performed_count %> of <%= action.target_count %> <%= display_date_and_time(action.completed_at) %>
52
+ </div>
53
+ <% else %>
54
+ <div class="uppercase text-xs text-gray-400">
55
+ Processed <%= display_date_and_time(action.completed_at) %>
56
+ </div>
57
+ <% end %>
58
+
59
+ <% elsif action.is_a?(Actions::RequiresApproval) && !action.approved? %>
60
+ <div class="uppercase text-xs text-gray-400">
61
+ Awaiting approval
62
+ </div>
63
+
64
+ <% elsif action.is_a?(Actions::SupportsScheduling) && action.scheduled_for && !action.started? %>
65
+ <div class="uppercase text-xs text-gray-400">
66
+ Scheduled for <%= display_date_and_time(action.scheduled_for) %>
67
+ </div>
68
+
69
+ <% elsif action.is_a?(Actions::HasProgress) && action.started? %>
70
+ <div class="mt-3 h-4 bg-gray-100 shadow-inner rounded w-full">
71
+ <div class="h-4 animate-pulse bg-primary-500 rounded" style="width: <%= action.completion_percent %>%"></div>
72
+ </div>
73
+
74
+ <div class="mt-2 uppercase text-xs text-gray-400">
75
+ Processing <%= action.performed_count %> of <%= action.target_count %>
76
+ </div>
77
+
78
+ <% elsif action.is_a?(Actions::HasProgress) %>
79
+ <div class="uppercase text-xs text-gray-400">
80
+ Preparing to process <%= action.performed_count %> of <%= action.target_count %>
81
+ </div>
82
+
83
+ <% else %>
84
+ <div class="uppercase text-xs text-gray-400">
85
+ Preparing to process
86
+ </div>
87
+
88
+ <% end %>
89
+ </div>
90
+ </div>
91
+ </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">
@@ -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.32"
4
+ VERSION = "1.0.35"
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.32
4
+ version: 1.0.35
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-06-28 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
@@ -67,6 +67,7 @@ files:
67
67
  - app/assets/stylesheets/light.tailwind.css
68
68
  - app/assets/stylesheets/light/actiontext.css
69
69
  - app/assets/stylesheets/light/application.css
70
+ - app/assets/stylesheets/light/bulk_actions.css
70
71
  - app/assets/stylesheets/light/electron.css
71
72
  - app/assets/stylesheets/light/fields/cloudinary_image.css
72
73
  - app/assets/stylesheets/light/fields/date_field.css
@@ -94,6 +95,8 @@ files:
94
95
  - app/views/themes/light/_notices.html.erb
95
96
  - app/views/themes/light/_page.html.erb
96
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
97
100
  - app/views/themes/light/attributes/_base.html.erb
98
101
  - app/views/themes/light/attributes/_block.html.erb
99
102
  - app/views/themes/light/billing/_pricing_table.html.erb
@@ -110,6 +113,7 @@ files:
110
113
  - app/views/themes/light/layouts/_head.html.erb
111
114
  - app/views/themes/light/layouts/_mailer.html.erb
112
115
  - app/views/themes/light/layouts/_pricing.html.erb
116
+ - app/views/themes/light/memberships/_photo.html.erb
113
117
  - app/views/themes/light/memberships/_photos.html.erb
114
118
  - app/views/themes/light/menu/_heading.html.erb
115
119
  - app/views/themes/light/menu/_item.html.erb
@@ -142,7 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
142
146
  - !ruby/object:Gem::Version
143
147
  version: '0'
144
148
  requirements: []
145
- rubygems_version: 3.2.22
149
+ rubygems_version: 3.3.7
146
150
  signing_key:
147
151
  specification_version: 4
148
152
  summary: 'Bullet Train Themes: Light'