tramway 2.1.1 → 2.1.2

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: 31113132743cab571fbebc4a1405ce59c8c86c985fd994d3fe7b9d1a527cb7ae
4
- data.tar.gz: 815b1b403559956ff5feef5d56d841a4530cc568855aa368a394b78841e0a060
3
+ metadata.gz: 59b04db0703fc68b1a6377dc00723c2767ecc3417eb9b8f6cf2b73e522ea3a71
4
+ data.tar.gz: 20580dcdc78622ce7b20404c0b957bd152b741403c5783d00814ad7412b6f177
5
5
  SHA512:
6
- metadata.gz: e318d318156f4aa486d859b6ec703ba372006f2b21fe1d9b31ce7c0c37333f307210cee16280fc5cb5ada89cd2f332f5cf7c485417cec970a1473255a5c91711
7
- data.tar.gz: 5f17f5e3d7c07f56352d951c600fcf5c8a6fd33f5b1fbb6515d2a14e96acf6246a391d1df80a0ef17c38b3217aafb610fbe425fce6f9a9f60ccbc1498223c0a8
6
+ metadata.gz: d266d0adc904060a2c8d376b48cc88be31c8c3b0d1670d0477bd71f07cba7fdbbcf19712b3639395e63e3a3555b401bdc56c43fb5dc841406c7e0e9d1f097670
7
+ data.tar.gz: 40ec0e1c9668b429155c1ac725f818ffed2eef2074ee67b41c57ef4b7bded03d654bdcc969d400e5d28dc8c135a2af083c94af9d5e082b76216dad843907b426
@@ -1,3 +1,3 @@
1
- .container.p-4.flex.align-center.justify-center.w-full.mx-auto.bg-gray-900.text-white{ id: }
1
+ .container.p-4.flex.align-center.justify-center.w-full.mx-auto.bg-gray-900.text-white{ id:, **options }
2
2
  .flex.flex-col.justify-center.w-full
3
3
  = content
@@ -5,6 +5,7 @@ module Tailwinds
5
5
  # Default page container in Tramway
6
6
  class NarrowComponent < Tramway::BaseComponent
7
7
  option :id, optional: true, default: proc { SecureRandom.uuid }
8
+ option :options, optional: true, default: proc { {} }
8
9
  end
9
10
  end
10
11
  end
@@ -49,11 +49,11 @@ module Tramway
49
49
  component 'tailwinds/back_button'
50
50
  end
51
51
 
52
- def tramway_container(id: nil, &)
52
+ def tramway_container(id: nil, **options, &)
53
53
  if id.present?
54
- component 'tailwinds/containers/narrow', id: id, &
54
+ component 'tailwinds/containers/narrow', id:, options:, &
55
55
  else
56
- component 'tailwinds/containers/narrow', &
56
+ component 'tailwinds/containers/narrow', options:, &
57
57
  end
58
58
  end
59
59
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Tramway
4
- VERSION = '2.1.1'
4
+ VERSION = '2.1.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tramway
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - kalashnikovisme