phlex-icons-flag 0.12.0 → 0.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +34 -0
- data/lib/phlex/icons/flag/base.rb +2 -0
- data/lib/phlex/icons/flag.rb +0 -1
- data/lib/phlex/icons/version.rb +1 -1
- data/lib/phlex_icons_flag.rb +0 -1
- metadata +1 -2
- data/lib/phlex/icons/helper.rb +0 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0032df443580a6ebd5fcc2f83b4afe838ab1074508257d73a9e2bdbd622a6442
|
4
|
+
data.tar.gz: 03b8bcbd7c4afa1d5fbbdb611cfaca0ea2c8443c70e37af1702f5bc2909d89c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c40d4b02814efbe9fe3fa01325e97a9b27eaaf867338e4adada89cdb99a10e9d1fb2975483bd97f5aa375b27121968c808b0b05c946643abd2088b703271c48
|
7
|
+
data.tar.gz: e83bb021ac0f82c1335c06172c8880d86252481c96293a892da0d491e0f9a6e35c2880323f43f6d6e1c09babdadd3d6bef8b2be6e6c62fc545e3f056667d005a
|
data/README.md
CHANGED
@@ -41,6 +41,16 @@ If bundler is not being used to manage dependencies, install the gem by executin
|
|
41
41
|
gem install phlex-icons
|
42
42
|
```
|
43
43
|
|
44
|
+
If you don't want to add all icon packs to your application, you can add a specific icon pack by using one (or multiple) of the following gems:
|
45
|
+
|
46
|
+
- [phlex-icons-bootstrap](https://rubygems.org/gems/phlex-icons-bootstrap)
|
47
|
+
- [phlex-icons-flag](https://rubygems.org/gems/phlex-icons-flag)
|
48
|
+
- [phlex-icons-hero](https://rubygems.org/gems/phlex-icons-hero)
|
49
|
+
- [phlex-icons-lucide](https://rubygems.org/gems/phlex-icons-lucide)
|
50
|
+
- [phlex-icons-radix](https://rubygems.org/gems/phlex-icons-radix)
|
51
|
+
- [phlex-icons-remix](https://rubygems.org/gems/phlex-icons-remix)
|
52
|
+
- [phlex-icons-tabler](https://rubygems.org/gems/phlex-icons-tabler)
|
53
|
+
|
44
54
|
## Configuration
|
45
55
|
|
46
56
|
The gem provides global configuration options, and per icons pack configuration options.
|
@@ -111,6 +121,30 @@ Phlex::Icons::Tabler.configuration.default_variant = :outline # or :filled
|
|
111
121
|
|
112
122
|
## Usage
|
113
123
|
|
124
|
+
### With `Phlex::Kit`
|
125
|
+
|
126
|
+
```ruby
|
127
|
+
require 'phlex_icons'
|
128
|
+
|
129
|
+
class PhlexIcons < Phlex::HTML
|
130
|
+
include Phlex::Icons
|
131
|
+
|
132
|
+
def view_template
|
133
|
+
div do
|
134
|
+
Bootstrap::House(classes: 'size-4')
|
135
|
+
Flag::Sa(variant: :rectangle, classes: 'size-4')
|
136
|
+
Hero::Home(variant: :solid, classes: 'size-4')
|
137
|
+
Lucide::House(classes: 'size-4')
|
138
|
+
Radix::Home(classes: 'size-4')
|
139
|
+
Remix::HomeLine(classes: 'size-4')
|
140
|
+
Tabler::Home(variant: :filled, classes: 'size-4')
|
141
|
+
end
|
142
|
+
end
|
143
|
+
end
|
144
|
+
```
|
145
|
+
|
146
|
+
### Without `Phlex::Kit`
|
147
|
+
|
114
148
|
```ruby
|
115
149
|
require 'phlex_icons'
|
116
150
|
|
data/lib/phlex/icons/flag.rb
CHANGED
data/lib/phlex/icons/version.rb
CHANGED
data/lib/phlex_icons_flag.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phlex-icons-flag
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.14.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ali Hamdi Ali Fadel
|
@@ -324,7 +324,6 @@ files:
|
|
324
324
|
- lib/phlex/icons/flag/za.rb
|
325
325
|
- lib/phlex/icons/flag/zm.rb
|
326
326
|
- lib/phlex/icons/flag/zw.rb
|
327
|
-
- lib/phlex/icons/helper.rb
|
328
327
|
- lib/phlex/icons/version.rb
|
329
328
|
- lib/phlex_icons_flag.rb
|
330
329
|
- phlex-icons.png
|
data/lib/phlex/icons/helper.rb
DELETED