tramway 0.4.9.1 → 0.4.9.3

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: 588137c9cafa9b3b22de988ed0593b5ad34bda6480919b99b6eb7899cd8efb14
4
- data.tar.gz: dbd1ecd2af4158892bb2e517cb3c962143f4f1109a00b8f392eaae392ad42205
3
+ metadata.gz: a319164d807e5ed06f1a2a94f0fc4158850e83134390b65c1567f0192bb56bc8
4
+ data.tar.gz: 21a85ecb9c14cbd30d6ebe145289917a8d935a36039813274b2d3a5b7992e723
5
5
  SHA512:
6
- metadata.gz: 8f3a4841ba2bdbe9e5bb1a12ab10900b90d43b916534af3f33eb57e6be0a33ae88f6148f7c795d584f7a9ac7cadc7b7bc38b411f8ca6694b0a7d23153295f7d8
7
- data.tar.gz: 215ba73a338b8ab3d30b923696bb9cc22f189f9c8f1858c2e2a6cec0ce388e4fb4f30fee0345deaab19677416810f35935fa62b658b2c8f6b176e0d02da5a337
6
+ metadata.gz: 418663e713b81978e3026d4be7e0a671936564957bdede23c9a979f0f8a525c558eda982f668e6e59ed01ec29b03ccadf80b393eea414a4f246c251532fabee6
7
+ data.tar.gz: f67485a339908dbea9ff9a95054c645196d3e3d58bfe678487a8652925e35f110167acbd84ead6e3dab362162f8e49de1290b093e15dd4022fe9d4407183e350
data/README.md CHANGED
@@ -365,6 +365,17 @@ tramway_navbar title: 'Purple Magic', background: { color: :red, intensity: 500
365
365
  end
366
366
  ```
367
367
 
368
+ # Haml example
369
+
370
+ ```haml
371
+ = tramway_navbar title: 'Purple Magic', background: { color: :red, intensity: 500 } do |nav|
372
+ - nav.left do
373
+ - nav.item 'Users', '/users'
374
+ - nav.item 'Podcasts', '/podcasts'
375
+ - nav.right do
376
+ - nav.item 'Sign out', '/users/sessions', method: :delete, confirm: 'Wanna quit?'
377
+ ```
378
+
368
379
  will render [this](https://play.tailwindcss.com/UZPTCudFw5)
369
380
 
370
381
  #### tramway_navbar
@@ -19,12 +19,12 @@ module Tailwinds
19
19
  }.transform_keys { |key| key.to_s.gsub('_', '-') }
20
20
  end
21
21
 
22
- private
23
-
24
22
  def controller
25
23
  :multiselect
26
24
  end
27
25
 
26
+ private
27
+
28
28
  def action
29
29
  'click->multiselect#toggleDropdown'
30
30
  end
@@ -2,4 +2,4 @@
2
2
  - if @label
3
3
  %label.block.text-gray-700.text-sm.font-bold.mb-2{ for: @for }
4
4
  = @label
5
- = @input.call(@attribute, @collection, { selected: @value }, @options.merge(class: 'bg-white border border-gray-300 text-gray-700 py-2 px-2 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent'))
5
+ = @input.call(@attribute, @collection, { selected: @value }, @options.merge(class: 'bg-white border border-gray-300 text-gray-700 py-2.5 px-2 rounded focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent'))
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Tramway
4
- VERSION = '0.4.9.1'
4
+ VERSION = '0.4.9.3'
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: 0.4.9.1
4
+ version: 0.4.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - kalashnikovisme
@@ -9,8 +9,22 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-09-11 00:00:00.000000000 Z
12
+ date: 2024-11-19 00:00:00.000000000 Z
13
13
  dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: dry-initializer
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - ">="
19
+ - !ruby/object:Gem::Version
20
+ version: '0'
21
+ type: :runtime
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ">="
26
+ - !ruby/object:Gem::Version
27
+ version: '0'
14
28
  - !ruby/object:Gem::Dependency
15
29
  name: dry-struct
16
30
  requirement: !ruby/object:Gem::Requirement
@@ -43,16 +57,22 @@ dependencies:
43
57
  name: rails
44
58
  requirement: !ruby/object:Gem::Requirement
45
59
  requirements:
46
- - - "~>"
60
+ - - ">="
47
61
  - !ruby/object:Gem::Version
48
62
  version: '7'
63
+ - - "<"
64
+ - !ruby/object:Gem::Version
65
+ version: '9'
49
66
  type: :runtime
50
67
  prerelease: false
51
68
  version_requirements: !ruby/object:Gem::Requirement
52
69
  requirements:
53
- - - "~>"
70
+ - - ">="
54
71
  - !ruby/object:Gem::Version
55
72
  version: '7'
73
+ - - "<"
74
+ - !ruby/object:Gem::Version
75
+ version: '9'
56
76
  - !ruby/object:Gem::Dependency
57
77
  name: view_component
58
78
  requirement: !ruby/object:Gem::Requirement