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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a319164d807e5ed06f1a2a94f0fc4158850e83134390b65c1567f0192bb56bc8
|
4
|
+
data.tar.gz: 21a85ecb9c14cbd30d6ebe145289917a8d935a36039813274b2d3a5b7992e723
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
@@ -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
|
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'))
|
data/lib/tramway/version.rb
CHANGED
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.
|
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-
|
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
|