rails_heroicon 2.1.2 → 2.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 +4 -4
- data/LICENSE.txt +1 -1
- data/README.md +6 -6
- data/compressed/icons.json +1292 -878
- data/lib/rails_heroicon/helper.rb +4 -3
- data/lib/rails_heroicon/rails_heroicon.rb +17 -5
- data/lib/rails_heroicon/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c82df0df564e5d9a80aaac2fbf9cdb3a99630ce1e98d8f71aeebb1a335a9c468
|
4
|
+
data.tar.gz: ed4c4deacc431626735f89e46bb4e96332b90c56759b98dda2dda593c01e17fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d68bb102a5a8e3a9253326b13e286d2c479643d49365c32c588ce1fd25aeb4dedefb39210cd9649bfc680b5b5cdf9482b455e5b110ab525d30520efabe0f296f
|
7
|
+
data.tar.gz: 9e11e992f4cf3fb1e3621f6f44c7e73423177081aec7f688e832cecbcb1e6d9be570a6da2d655243eaa847d2f42594aeecf9979ae9ea1ed281b5bb3a7a0d1bf6
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -4,8 +4,7 @@ Ruby on Rails views helper for the awesome heroicons by Steve Schoger. To see
|
|
4
4
|
all the icons visit [heroicons](https://heroicons.com/).
|
5
5
|
|
6
6
|
The latest version of this gem is built with heroicons
|
7
|
-
[v2.
|
8
|
-
icons).
|
7
|
+
[v2.1.5](https://github.com/tailwindlabs/heroicons/releases/tag/v2.1.5) (316 icons).
|
9
8
|
|
10
9
|
> This gem has no official affiliation with [Tailwind Labs](https://github.com/tailwindlabs),
|
11
10
|
> yet.
|
@@ -68,7 +67,7 @@ This will generate the following html:
|
|
68
67
|
|
69
68
|
### Variant
|
70
69
|
|
71
|
-
`rails_heroicon` provides
|
70
|
+
`rails_heroicon` provides 4 variants, `outline`, `solid`, `mini`, and `micro`, `outline` being
|
72
71
|
the default.
|
73
72
|
|
74
73
|
To change the variant `<%= heroicon "user", variant: "solid" %>`.
|
@@ -91,9 +90,10 @@ need to set the `size` attribute on the helper method.
|
|
91
90
|
<%= heroicon "user", size: 20 %>
|
92
91
|
```
|
93
92
|
|
94
|
-
If the `variant` is set as `outline` or `solid`, `size`
|
95
|
-
|
96
|
-
However, this can be over-written with
|
93
|
+
If the `variant` is set as `outline` or `solid`, `size` defaults to `24`,
|
94
|
+
if the `variant` is set as `mini`, `size` defaults to `20`, and if the `variant`
|
95
|
+
is set as `micro`, `size` defaults to `16`. However, this can be over-written with
|
96
|
+
the `size` attribute.
|
97
97
|
|
98
98
|
### Accessibility
|
99
99
|
|