tybo 0.0.22 → 0.0.23

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: 0a943af65b2b8a0e6b24bb8f92b5441c6961a3e0de0a2481279f8f5fb2bfdae2
4
- data.tar.gz: aa7d8f6ca729c389a689bf18ae0c9b256a3ca6f53bc1f6ba45c364b3b6af1f84
3
+ metadata.gz: 4bb11bc17c58d699178e7692aa1175590c996cbd037673265227ce9790f03acd
4
+ data.tar.gz: 3c8c5e21053ef6d946b284d945aaef82628e1ff4d5a8f9f9b9654b94a822a2ea
5
5
  SHA512:
6
- metadata.gz: e11ba92239a7c2fcc6aa805bbf4066b82b8e2e52f7dcd02d3f6d33468b2fabce4a4bd60018f422659e7c68d06887a89e9739c8160df87b71ee6d5ebf9d919749
7
- data.tar.gz: 1fe0a4a36f7dae72a2bf2bce6c392a7d698be67c68daf8870006194689000ffdae37397e32a86fc6034528cfd6278b0217b4d82019dbd50039588116904e598b
6
+ metadata.gz: ae087d419989b538a17571972b1fbb0a216ff4caa487928cdf45d35742f156545cd2214e179b106e5120bccf3049518a50c656ffe03e5cedd488c165729fdb91
7
+ data.tar.gz: 0fc955fa6c5768f8f3c845500803fa0a0e9870e772b8431d98f6b7f4cc36b18837b0b3f19f074f5a03cd4e719ee975f774bbda17076ef6edbc0828c253c40a47
@@ -1,3 +1,3 @@
1
- <div class="mt-4 sm:mt-0 sm:ml-16 sm:flex-none">
1
+ <div class="mt-4 mr-2 sm:flex-none">
2
2
  <%= link_to '+', @path, class: "inline-flex items-center justify-center rounded-md border border-transparent bg-tybo px-4 py-2 text-sm font-medium text-white shadow-sm hover:bg-tybo-700 focus:outline-none focus:ring-2 focus:ring-tybo-500 focus:ring-offset-2 sm:w-auto" %>
3
3
  </div>
@@ -8,8 +8,11 @@
8
8
  </p>
9
9
  </div>
10
10
 
11
- <% if add_button? %>
12
- <%= add_button %>
11
+ <% if export_button? %>
12
+ <%= export_button %>
13
13
  <% end %>
14
14
 
15
+ <% if add_button? %>
16
+ <%= add_button %>
17
+ <% end %>
15
18
  </div>
@@ -2,6 +2,7 @@
2
2
 
3
3
  class IndexHeaderComponent < ViewComponent::Base
4
4
  renders_one :add_button, IndexHeaderAddComponent
5
+ renders_one :export_button, IndexHeaderExportComponent
5
6
 
6
7
  def initialize(title:, subtitle:)
7
8
  @title = title
@@ -0,0 +1,3 @@
1
+ <div class="mt-4 mr-2 sm:flex-none">
2
+ <%= link_to I18n.t('bo.btn.export'), @path, class: "inline-flex items-center justify-center rounded-md border border-transparent bg-tybo px-4 py-2 text-sm font-medium text-white shadow-sm hover:bg-tybo-700 focus:outline-none focus:ring-2 focus:ring-tybo-500 focus:ring-offset-2 sm:w-auto" %>
3
+ </div>
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ class IndexHeaderExportComponent < ViewComponent::Base
4
+ def initialize(path:)
5
+ @path = path
6
+ end
7
+
8
+ end
data/lib/tybo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Tybo
2
- VERSION = '0.0.22'
2
+ VERSION = '0.0.23'
3
3
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tybo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.22
4
+ version: 0.0.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michel Delpierre
8
8
  - Julien Camblan
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-03-06 00:00:00.000000000 Z
12
+ date: 2023-03-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -179,6 +179,8 @@ files:
179
179
  - app/components/index_header_add_component.rb
180
180
  - app/components/index_header_component.html.erb
181
181
  - app/components/index_header_component.rb
182
+ - app/components/index_header_export_component.html.erb
183
+ - app/components/index_header_export_component.rb
182
184
  - app/components/input/file_component.html.erb
183
185
  - app/components/input/file_component.rb
184
186
  - app/components/sidebar_component.html.erb
@@ -269,7 +271,7 @@ licenses:
269
271
  - MIT
270
272
  metadata:
271
273
  homepage_uri: https://rubygems.org/gems/tybo
272
- post_install_message:
274
+ post_install_message:
273
275
  rdoc_options: []
274
276
  require_paths:
275
277
  - lib
@@ -285,7 +287,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
285
287
  version: '0'
286
288
  requirements: []
287
289
  rubygems_version: 3.0.3.1
288
- signing_key:
290
+ signing_key:
289
291
  specification_version: 4
290
292
  summary: A tailwind custom admin engine for Ruby on Rails
291
293
  test_files: []