bullet_train-themes-light 1.2.19 → 1.2.20

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: 7f9a1570fd6a2397b393fb3c07a3542b5239b4f44fcf50d471f51f5eb1e45185
4
- data.tar.gz: d41055ccdcc986d478fc1f0036d0bb17c7c269414e0c446ca45513486fe1c065
3
+ metadata.gz: c62cc0f05d547cf767d72de1500014d78e0ed905de056898048b747c41602618
4
+ data.tar.gz: 69f3ff1dda8ac73f82807383246db53b1f75ac1bfedfdd1130138e11f5a25ba0
5
5
  SHA512:
6
- metadata.gz: 170b0094584271bc0ab213747c9105f7ae59107aaee3b3f5075c641d0aeb0a0e7705b64be97aa1e4988a2df30ed812d419cd72451fef950c122fe3c03f950208
7
- data.tar.gz: fbcacf93078281be068ff768bfe57af6eceafeaefc14cdfea7d509b8755d6ce1c22603bd53e1114b7b431f72c7f9eaa72309372ff40c84fdb4fe61b85bb9aaee
6
+ metadata.gz: 8dc598ba50a4c5c21c1e04960ea59ea04a852200f6bff85e4dd940ae568103911f39db77d96f952764f78670b43c79bae6f524b2bc2dacf823488ddda328ec26
7
+ data.tar.gz: 74b3ef934ff71d171f95f6f4d9d23066ace0d0db17eb4e6adeefe277449067a25696dfd4817b3c9550b9f80d2c8cfef1027ba04ceeafd98b0dc440583581ca42
@@ -1,29 +1,25 @@
1
1
  <% showcase.sample "Basic" do %>
2
- <%= render "shared/box" do |partial| %>
3
- <% partial.content_for :title, "Title" %>
4
- <% partial.content_for :description, "Description" %>
5
- <% partial.content_for :body, "Lorem ipsum dolor sit amet…" %>
2
+ <%= render "shared/box" do |box| %>
3
+ <% box.title "Title" %>
4
+ <% box.description "Description" %>
5
+ <% box.body "Lorem ipsum dolor sit amet…" %>
6
6
  <% end %>
7
7
  <% end %>
8
8
 
9
9
  <% showcase.sample "With Divider" do %>
10
- <%= render "shared/box", divider: true do |partial| %>
11
- <% partial.content_for :title, "Title" %>
12
- <% partial.content_for :description, "Description" %>
13
- <% partial.content_for :body, "Lorem ipsum dolor sit amet…" %>
10
+ <%= render "shared/box", divider: true do |box| %>
11
+ <% box.title "Title" %>
12
+ <% box.description "Description" %>
13
+ <% box.body "Lorem ipsum dolor sit amet…" %>
14
14
  <% end %>
15
15
  <% end %>
16
16
 
17
17
  <% showcase.sample "With top border" do %>
18
- <%= render "shared/box", border_top: true do |partial| %>
19
- <% partial.content_for :title, "Title" %>
20
- <% end %>
18
+ <%= render "shared/box", title: "Title", border_top: true %>
21
19
  <% end %>
22
20
 
23
21
  <% showcase.sample "Without background" do %>
24
- <%= render "shared/box", no_background: true do |partial| %>
25
- <% partial.content_for :title, "Title" %>
26
- <% end %>
22
+ <%= render "shared/box", title: "Title", no_background: true %>
27
23
  <% end %>
28
24
 
29
25
  <% showcase.options.context :nice_partials do |o| %>
@@ -13,13 +13,23 @@
13
13
  <% end %>
14
14
 
15
15
  <% showcase.sample "Basic" do %>
16
- <%= render "shared/page" do |partial| %>
17
- <% partial.content_for :title, "Title" %>
18
- <% partial.content_for :actions do %>
16
+ <%= render "shared/page" do |page| %>
17
+ <% page.title "Title" %>
18
+ <% page.actions do %>
19
19
  <%= link_to "Home", root_url, class: "border-2 p-2 rounded-full border-indigo-300" %>
20
20
  <%= link_to "Another link", root_url, class: "border-2 p-2 rounded-full border-indigo-300" %>
21
21
  <% end %>
22
- <% partial.content_for :body, "Lorem ipsum dolor sit amet…" %>
22
+ <% page.body "Lorem ipsum dolor sit amet…" %>
23
+ <% end %>
24
+ <% end %>
25
+
26
+ <% showcase.sample "With box" do %>
27
+ <%= render "shared/page", title: "Page Title" do |page| %>
28
+ <% page.body.render "shared/box" do |box| %>
29
+ <% box.title "Box Title" %>
30
+ <% box.description "Description" %>
31
+ <% box.body "Lorem ipsum dolor sit amet…" %>
32
+ <% end %>
23
33
  <% end %>
24
34
  <% end %>
25
35
 
@@ -1,7 +1,7 @@
1
1
  <% showcase.sample "Basic" do %>
2
- <%= render "shared/title" do |partial| %>
3
- <% partial.content_for :title, "Title" %>
4
- <% partial.content_for :actions do %>
2
+ <%= render "shared/title" do |title| %>
3
+ <% title.title "Title" %>
4
+ <% title.actions do %>
5
5
  <%= link_to "Home", root_url, class: "border-2 p-2 rounded-full border-indigo-300" %>
6
6
  <%= link_to "Another link", root_url, class: "border-2 p-2 rounded-full border-indigo-300" %>
7
7
  <% end %>
@@ -1,7 +1,7 @@
1
1
  <% showcase.sample "Basic" do %>
2
- <%= render "shared/actions/box" do |partial| %>
3
- <% partial.content_for :title, "Title" %>
4
- <% partial.content_for :table, "Some table content" %>
2
+ <%= render "shared/actions/box" do |box| %>
3
+ <% box.title "Title" %>
4
+ <% box.table "Some table content" %>
5
5
  <% end %>
6
6
  <% end %>
7
7
 
@@ -1,9 +1,8 @@
1
1
  <% showcase.sample "Basic" do %>
2
- <%= render "shared/actions/list" do %>
3
- This is a list
4
- <% end %>
2
+ <%= render "shared/actions/list", content: "This is a list" %>
3
+ <%= render "shared/actions/list", content: "This is a second list" %>
5
4
 
6
5
  <%= render "shared/actions/list" do %>
7
- This is a second list
6
+ This is a block invoked list
8
7
  <% end %>
9
8
  <% end %>
@@ -1,48 +1,46 @@
1
- <% yield p = np %>
2
-
3
1
  <% divider ||= nil %>
4
2
  <% no_background ||= false %>
5
3
  <% title_size ||= nil %>
6
4
  <% title_padding ||= nil %>
7
5
  <% border_top ||= false %>
8
- <% body = p.content_for(:body) || p.content_for(:raw_body) %>
6
+ <% body = partial.body.presence || partial.raw_body.presence %>
9
7
  <% pagy ||= nil %>
10
8
 
11
9
  <div class="<%= "bg-white rounded-md shadow dark:bg-slate-700 dark:bg-opacity-50" unless no_background %> overflow-hidden <%= border_top ? "border-t dark:border-slate-500" : "" %>">
12
10
  <div class="py-6 px-8 <%= title_padding %> space-y-2 <%= 'border-b shadow-sm dark:border-slate-600' if divider %>">
13
- <% if p.content_for? :title %>
11
+ <% if partial.title? %>
14
12
  <h2 class="text-xl font-semibold dark:text-white <%= title_size %>">
15
- <%= p.content_for :title %>
13
+ <%= partial.title %>
16
14
  </h2>
17
15
  <% end %>
18
16
 
19
- <% if p.content_for? :description %>
17
+ <% if partial.description? %>
20
18
  <p class="text-slate-400 font-light leading-normal">
21
- <%= p.content_for :description %>
19
+ <%= partial.description %>
22
20
  </p>
23
21
  <% end %>
24
22
  </div>
25
23
 
26
24
  <div class="space-y-4">
27
- <% if p.content_for? :table %>
25
+ <% if partial.table? %>
28
26
  <div class="box-table <%= divider ? 'mt-4' : '-mt-1' %> pb-0.5">
29
- <%= p.content_for :table %>
27
+ <%= partial.table %>
30
28
  </div>
31
29
  <% end %>
32
30
 
33
31
  <% if body %>
34
- <div class="<%= "pt-7 px-8 space-y-7 #{p.content_for?(:actions) ? 'pb-3' : 'pb-7'}" unless p.content_for?(:raw_body) %>">
32
+ <div class="<%= "pt-7 px-8 space-y-7 #{partial.actions? ? 'pb-3' : 'pb-7'}" unless partial.raw_body? %>">
35
33
  <div class="space-y-4 <%= '-mt-4' unless divider %>">
36
34
  <%= body %>
37
35
  </div>
38
36
  </div>
39
37
  <% end %>
40
38
 
41
- <% if p.content_for?(:actions) || pagy %>
39
+ <% if partial.actions? || pagy %>
42
40
  <div class="pb-7 px-8 space-y-7">
43
41
  <div class="sm:flex">
44
42
  <div class="flex-1 space-x">
45
- <%= p.content_for :actions %>
43
+ <%= partial.actions %>
46
44
  </div>
47
45
  <% if pagy && pagy.pages > 1 %>
48
46
  <div class="flex-0 mt-3 sm:mt-0">
@@ -54,15 +52,15 @@
54
52
  <% end %>
55
53
  </div>
56
54
 
57
- <% if p.content_for? :footer %>
55
+ <% if partial.footer? %>
58
56
  <div class="py-4 px-8 bg-slate-50 border-t dark:bg-slate-900 dark:border-slate-600">
59
- <%= p.content_for :footer %>
57
+ <%= partial.footer %>
60
58
  </div>
61
59
  <% end %>
62
60
 
63
- <% if p.content_for? :raw_footer %>
61
+ <% if partial.raw_footer? %>
64
62
  <div class="bg-slate-50 dark:bg-slate-900">
65
- <%= p.content_for :raw_footer %>
63
+ <%= partial.raw_footer %>
66
64
  </div>
67
65
  <% end %>
68
66
  </div>
@@ -1,12 +1,10 @@
1
- <% yield p = np %>
2
-
3
1
  <% completion_percent ||= nil %>
4
2
 
5
3
  <div class="py-4 px-8 w-full space-y-3">
6
4
  <div class="flex space-x-4">
7
- <% if p.content_for? :memberships %>
5
+ <% if partial.memberships? %>
8
6
  <div class="flex-0">
9
- <%= p.content_for :memberships %>
7
+ <%= partial.memberships %>
10
8
  </div>
11
9
  <% end %>
12
10
 
@@ -14,13 +12,13 @@
14
12
  <div class="flex">
15
13
  <div class="flex-1 space-y-4 py-1">
16
14
  <div>
17
- <%= p.content_for :title %>
15
+ <%= partial.title %>
18
16
  </div>
19
17
  </div>
20
18
 
21
- <% if p.content_for? :actions %>
19
+ <% if partial.actions? %>
22
20
  <div class="flex-0">
23
- <%= p.content_for :actions %>
21
+ <%= partial.actions %>
24
22
  </div>
25
23
  <% end %>
26
24
  </div>
@@ -31,9 +29,9 @@
31
29
  </div>
32
30
  <% end %>
33
31
 
34
- <% if p.content_for? :status %>
32
+ <% if partial.status? %>
35
33
  <div class="<% "mt-2" if completion_percent %> uppercase text-xs text-slate-400">
36
- <%= p.content_for :status %>
34
+ <%= partial.status %>
37
35
  </div>
38
36
  <% end %>
39
37
  </div>
@@ -1,12 +1,10 @@
1
- <% yield p = np %>
2
-
3
1
  <%= link_to path, class: "block group hover:no-underline" do %>
4
2
  <div class="bg-white hover:bg-slate-50 rounded-md shadow dark:bg-slate-700 dark:group-hover:bg-slate-700 dark:bg-opacity-50 dark:group-hover:bg-opacity-25 overflow-hidden">
5
3
  <div class="py-4 px-8 pr-5">
6
4
  <div class="flex items-center">
7
- <% if p.content_for? :body %>
5
+ <% if partial.body? %>
8
6
  <div class="flex-1 text-xl font-semibold text-slate-700 dark:text-white dark:group-hover:text-slate-100">
9
- <%= p.content_for :body %>
7
+ <%= partial.body %>
10
8
  </div>
11
9
  <% end %>
12
10
  <div class="ml-5 flex-shink-0">
@@ -1,12 +1,6 @@
1
- <% yield p = np %>
2
-
3
- <%= render 'account/shared/title' do |cp| %>
4
- <% cp.content_for :title, p.content_for(:title) %>
5
- <% cp.content_for :actions, p.content_for(:actions) %>
6
- <% end %>
7
-
1
+ <%= render 'account/shared/title', partial.slice(:title, :actions) %>
8
2
  <%= render 'account/shared/notices' %>
9
3
 
10
4
  <div class="space-y-8 py-4 xl:py-8 xl:px-8">
11
- <%= p.yield :body %>
5
+ <%= partial.body %>
12
6
  </div>
@@ -1,5 +1,3 @@
1
- <% yield p = np %>
2
-
3
1
  <% link_url ||= "#" %>
4
2
  <% memberships ||= [] %>
5
3
 
@@ -8,9 +6,9 @@
8
6
  <div class="px-4 py-4 flex items-center sm:pl-8 sm:pr-6">
9
7
  <div class="min-w-0 flex-1 sm:flex sm:items-center sm:justify-between">
10
8
  <div>
11
- <% if p.content_for? :name %>
9
+ <% if partial.name? %>
12
10
  <div class="flex text-xl font-semibold text-blue uppercase group-hover:text-blue-800 tracking-widest dark:text-white">
13
- <%= p.content_for :name %>
11
+ <%= partial.name %>
14
12
  </div>
15
13
  <% end %>
16
14
  </div>
@@ -1,15 +1,11 @@
1
- <% yield p = np %>
2
-
3
1
  <div class="flex flex-row items-center">
4
2
  <div class="flex-auto">
5
3
  <h1 class="font-semibold text-base dark:text-white">
6
- <%= p.content_for(:title) %>
4
+ <%= partial.title %>
7
5
  </h1>
8
6
  </div>
9
7
  <div class="flex-auto text-right leading-none">
10
- <% if p.content_for? :actions %>
11
- <%= p.content_for :actions %>
12
- <% end %>
8
+ <%= partial.actions.presence %>
13
9
  </div>
14
10
  </div>
15
11
 
@@ -1,33 +1,31 @@
1
- <% yield p = np %>
2
-
3
1
  <div class="border border-slate-300 dark:border-opacity-10 rounded-md bg-slate-50 dark:bg-opacity-10">
4
- <% if p.content_for?(:title) || p.content_for?(:description) || p.content_for?(:body) %>
2
+ <% if partial.title? || partial.description? || partial.body? %>
5
3
  <div class="py-4 px-5 space-y">
6
- <% if p.content_for?(:title) || p.content_for?(:description) %>
4
+ <% if partial.title? || partial.description? %>
7
5
  <div class="space-y-2">
8
- <% if p.content_for? :title %>
6
+ <% if partial.title? %>
9
7
  <h2 class="text-base font-semibold">
10
- <%= p.content_for :title %>
8
+ <%= partial.title %>
11
9
  </h2>
12
10
  <% end %>
13
11
 
14
- <% if p.content_for? :description %>
12
+ <% if partial.description? %>
15
13
  <p class="text-slate-400 font-light leading-normal">
16
- <%= p.content_for :description %>
14
+ <%= partial.description %>
17
15
  </p>
18
16
  <% end %>
19
17
  </div>
20
18
  <% end %>
21
19
 
22
- <% if p.content_for? :body %>
20
+ <% if partial.body? %>
23
21
  <div class="space-y">
24
- <%= p.content_for :body %>
22
+ <%= partial.body %>
25
23
  </div>
26
24
  <% end %>
27
25
  </div>
28
26
  <% end %>
29
27
 
30
28
  <div>
31
- <%= p.content_for :raw_body %>
29
+ <%= partial.raw_body %>
32
30
  </div>
33
31
  </div>
@@ -1,5 +1,3 @@
1
- <% yield p = np %>
2
-
3
1
  <div class="py-4 px-8 w-full space-y-3">
4
2
  <div class="flex space-x-4">
5
3
  <% if action.is_a?(Actions::TracksCreator) %>
@@ -15,7 +13,7 @@
15
13
  </div>
16
14
  </div>
17
15
  <div class="flex-0">
18
- <%= p.yield :actions if p.content_for? :actions %>
16
+ <%= partial.actions if partial.actions? %>
19
17
  <% if action.is_a?(Actions::RequiresApproval) %>
20
18
  <% if !action.approved? && can?(:approve, action) %>
21
19
  <%= button_to t("#{action.class.name.pluralize.underscore}.buttons.shorthand.approve"), [:approve, :account, action], method: :post, class: 'button-secondary button-smaller' %>
@@ -1,6 +1 @@
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 %>
1
+ <%= render "account/shared/box", **partial.slice(:title, :table), no_background: true, title_size: "text-2xs", title_padding: "pt-3 pb-3.5", border_top: true %>
@@ -1,3 +1,3 @@
1
1
  <div class="divide-y divide-slate-900 divide-opacity-5 border-t dark:border-slate-500">
2
- <%= yield %>
2
+ <%= partial.content.presence || partial.yield %>
3
3
  </div>
@@ -1,30 +1,18 @@
1
- <% yield p = np %>
2
-
3
1
  <% url ||= nil %>
4
2
  <% strategy ||= current_attributes_strategy || :none %>
5
3
 
6
- <% body = capture do %>
7
- <% if url.present? %>
8
- <% link_to url do %>
9
- <%= p.content_for :body %>
10
- <% end %>
11
- <% else %>
12
- <%= p.content_for :body %>
13
- <% end %>
14
- <% end %>
4
+ <% body = link_to_if url.present?, partial.body, url %>
15
5
 
16
6
  <% case strategy %>
17
7
  <% when :label %>
18
8
  <div>
19
9
  <label class="block text-2xs font-semibold py-2 dark:text-white">
20
- <%= p.content_for :heading %>
10
+ <%= partial.heading %>
21
11
  </label>
22
12
  <div class="dark:text-slate-400">
23
13
  <%= body %>
24
14
  </div>
25
15
  </div>
26
-
27
16
  <% else %>
28
17
  <%= body %>
29
-
30
18
  <% end %>
@@ -1,6 +1,4 @@
1
- <% yield p = np %>
2
-
3
- <% p.helpers do
1
+ <% partial.helpers do
4
2
  def account_controller_name_with_namespace
5
3
  params[:controller].gsub(/^account\//, '')
6
4
  end
@@ -11,11 +9,11 @@ end %>
11
9
  # included. see `app/views/account/teams/_breadcrumbs.html.erb` for an example.
12
10
  %>
13
11
 
14
- <% if p.account_controller_name_with_namespace == only_for %>
12
+ <% if partial.account_controller_name_with_namespace == only_for %>
15
13
  <% label = if action_name == 'edit'
16
- ot("#{p.account_controller_name_with_namespace}.breadcrumbs.edit") || t('breadcrumbs.actions.edit')
14
+ ot("#{partial.account_controller_name_with_namespace}.breadcrumbs.edit") || t('breadcrumbs.actions.edit')
17
15
  elsif action_name == 'new'
18
- ot("#{p.account_controller_name_with_namespace}.breadcrumbs.new") || t('breadcrumbs.actions.new')
16
+ ot("#{partial.account_controller_name_with_namespace}.breadcrumbs.new") || t('breadcrumbs.actions.new')
19
17
  end %>
20
18
 
21
19
  <%= render 'account/shared/breadcrumb', label: label if label %>
@@ -1,3 +1 @@
1
- <% yield p = np %>
2
-
3
- <%= p.content_for :content %>
1
+ <%= partial.content %>
@@ -1,14 +1,12 @@
1
- <% yield p = np %>
2
-
3
1
  <% method ||= nil %>
4
2
  <% active ||= request.path == url %>
5
3
 
6
4
  <%= send (method ? :button_to : :link_to), url, class: "block group hover:text-white hover:no-underline #{'bg-primary-900 dark:bg-black dark:bg-opacity-10' if active} text-white #{@menu_orientation == :top ? "px-5 py-5" : "px-2 py-2 rounded-md hover-indent-child"} #{"rounded-tl-lg" unless @not_first} dark:text-white", data: {"desktop-menu-target": "menuItemLink"}, tabIndex: 0, method: method do %>
7
5
  <div class="inline-block indent-child flex items-center">
8
6
  <!-- Heroicon name: home -->
9
- <% if p.content_for? :icon %>
7
+ <% if partial.icon? %>
10
8
  <span class="mr-3 h-6 w-6 text-center text-secondary-300 text-xl leading-6 dark:text-slate-400">
11
- <%= p.content_for :icon %>
9
+ <%= partial.icon %>
12
10
  </span>
13
11
  <% end %>
14
12
  <%= label %>
@@ -1,5 +1,3 @@
1
- <% yield p = np %>
2
-
3
1
  <% width ||= "max-w-md" %>
4
2
 
5
3
  <div class="min-h-screen flex flex-col justify-center sm:py-12">
@@ -11,14 +9,14 @@
11
9
  </a>
12
10
 
13
11
  <h1 class="mt-6 text-center text-3xl font-semibold tracking-tight dark:text-white">
14
- <%= p.yield :title %>
12
+ <%= partial.title %>
15
13
  </h1>
16
14
 
17
15
  <%= render "shared/line" %>
18
16
  </div>
19
17
 
20
18
  <div class="electron-undraggable pt-5 space-y-5">
21
- <%= p.content_for :body %>
19
+ <%= partial.body %>
22
20
  </div>
23
21
  </div>
24
22
  </div>
@@ -1,7 +1,7 @@
1
1
  module BulletTrain
2
2
  module Themes
3
3
  module Light
4
- VERSION = "1.2.19"
4
+ VERSION = "1.2.20"
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.2.19
4
+ version: 1.2.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Culver
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-09 00:00:00.000000000 Z
11
+ date: 2023-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: standard