vitrail 0.2.1 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f651fb5fbab1ebe0ce61ecf4750b8fc7ed68dd428ca9cc7b5d750d8c9a0855e9
4
- data.tar.gz: 3d748cea3dd9a264f698ecd44b9cc12ef1b75976a74d7ed76575d4dcc76aefa0
3
+ metadata.gz: 0a21fd7a542ed8c1e4d3607925dbf30522b1dbcab267e62c332ea579eec8494f
4
+ data.tar.gz: 5672e0d10c8dc43b25e305baa3378b2ac5af88ad82a8a0cc90e4754a56560a12
5
5
  SHA512:
6
- metadata.gz: 46db3d0d523cda1da9ccb83c8608dd32cca0d3966997fcfabaf0639095860196630dd5e4142c1166b82765ad20ae972aedcbedd73132c72edef7668e7eabcba2
7
- data.tar.gz: 734477fc361a7d59057314cf129db1b923550a86b10c09273fb41723cd8a56692ad0347822b20efacb5604e510ae99c8fe60223bb6d1e584f3c56222debfb3a0
6
+ metadata.gz: ef007d0e9d8dea67411131415a44eaf79e9504bbcada06d08ba46dbcbddcc484a0b3046065402d9ece2fc96ba7cb3009e463dfcd71eed0461b7c186eebf041f8
7
+ data.tar.gz: c50f4bdbdefd11a2ab94b3a3c4a928690912f8331a93bd0deb096e04ed18c740e94dbac1307ab6598367004149b682bd4cb8e4f52999ce70478d06a33d88657a
@@ -14,10 +14,7 @@ module Vitrail
14
14
  private
15
15
 
16
16
  def local_classes = ""
17
-
18
- def html_attributes
19
- tag.attributes(html_options)
20
- end
17
+ def html_attributes = tag.attributes(html_options)
21
18
 
22
19
  def html_classes
23
20
  [local_classes, custom_classes].reject(&:blank?).join(" ")
@@ -1,5 +1,5 @@
1
1
  <div class="flow-root" <%= html_attributes %>>
2
- <div class="overflow-x-auto">
2
+ <div class="<%= html_classes %>">
3
3
  <div class="inline-block min-w-full align-middle">
4
4
  <table class="table-auto min-w-full divide-y divide-gray-300">
5
5
  <thead class="sticky top-0 bg-white">
@@ -4,5 +4,7 @@ module Vitrail
4
4
  class Table < BaseComponent
5
5
  renders_many :headers, Table::Header
6
6
  renders_many :rows, Table::Row
7
+
8
+ def local_classes = "overflow-x-auto"
7
9
  end
8
10
  end
@@ -1,3 +1,3 @@
1
1
  module Vitrail
2
- VERSION = "0.2.1"
2
+ VERSION = "0.3.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vitrail
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Guillaume CABANEL
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-16 00:00:00.000000000 Z
11
+ date: 2023-11-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails