tramway 0.4.9.1 → 0.4.9.2

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: 17ef05a91356ce84f217df49af7245c2df48abd356625f7c99e2d96f693d5fb7
4
+ data.tar.gz: 002da5b891c4eea585c317b006aface8f1443652ec1700f02078d0a47a920068
5
5
  SHA512:
6
- metadata.gz: 8f3a4841ba2bdbe9e5bb1a12ab10900b90d43b916534af3f33eb57e6be0a33ae88f6148f7c795d584f7a9ac7cadc7b7bc38b411f8ca6694b0a7d23153295f7d8
7
- data.tar.gz: 215ba73a338b8ab3d30b923696bb9cc22f189f9c8f1858c2e2a6cec0ce388e4fb4f30fee0345deaab19677416810f35935fa62b658b2c8f6b176e0d02da5a337
6
+ metadata.gz: 3a0c3cb1ce60c537818e0fe62812128f15e8f1dcdf6f523d60b6b93e3413a20e4b9b19f7a1228b18b7a7e253083775a3244c6dfd2a80034d2bbb5e3ebf23e746
7
+ data.tar.gz: e0cfa260fb65d82fa5e0928ada86e01b1097b213f83fb2b5907e75f6c0e93b9ea196a682be2fb30b5058f1802b53a026a909b33138b6f08019d0918e2981f0d0
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
@@ -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.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: 0.4.9.1
4
+ version: 0.4.9.2
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