phlex-icons-tabler 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c9dcf501eefaa6f1947c5af3e14357d065467c91ddbfefe407402af7c32c42a3
4
- data.tar.gz: c547cdb91c4d7c94eb4bbfb507134871da0e3b183f674492fe32b3492277d20f
3
+ metadata.gz: c2a950b0bf045e406bf515a1bea880b00ba887963b9ed6869dc6155f4900cf38
4
+ data.tar.gz: afa8e11f68e8d8d2dc4192b0a3c9db925bc14a666686bfbf85b98f106c3c543a
5
5
  SHA512:
6
- metadata.gz: 0b82c0103d957ff116b5cd0911155e104c0b7b4d9f982501bdca93c6ccdae298d41b1d18e9c7d4878b74a02183d93e8b4a32403a2b77d3c8bfae1cdf91057076
7
- data.tar.gz: 57f79ae0e461b87f9bfd5531a96f12e028294dd96678637230ab8a32e84ef24640cd44323b9262ed694f1d1210f5c4113af3330f53e26845afbb1dacc05b3b86
6
+ metadata.gz: 2407ae5515bf509425e0c54232d8c6435b20de989246e6fe66abafff40520283ac67bb871629b2b5b396b60e6a93f512e0a02d0b2b6d4cb6faeed38040169892
7
+ data.tar.gz: 3b9d27c79829e0e96e60a480e248c15bf6378b92c22e5b171df4340052a0a155eb714a98e18459313200c0c5a2c4260f098f5614f3bcfa9de2e5047ec4113aa7
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
 
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require_relative '../base'
4
+
3
5
  module Phlex
4
6
  module Icons
5
7
  module Tabler
@@ -3,7 +3,6 @@
3
3
  module Phlex
4
4
  module Icons
5
5
  module Tabler # rubocop:disable Metrics/ModuleLength
6
- extend Phlex::Icons::Helper
7
6
  extend Phlex::Kit
8
7
 
9
8
  require_relative 'tabler/base'
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Phlex
4
4
  module Icons
5
- VERSION = '0.12.0'
5
+ VERSION = '0.14.0'
6
6
  end
7
7
  end
@@ -4,7 +4,6 @@ require 'phlex'
4
4
 
5
5
  require_relative 'phlex/icons/base'
6
6
  require_relative 'phlex/icons/configuration'
7
- require_relative 'phlex/icons/helper'
8
7
  require_relative 'phlex/icons/version'
9
8
 
10
9
  require_relative 'phlex/icons/tabler'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phlex-icons-tabler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.14.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ali Hamdi Ali Fadel
@@ -51,7 +51,6 @@ files:
51
51
  - generators/tabler.rb
52
52
  - lib/phlex/icons/base.rb
53
53
  - lib/phlex/icons/configuration.rb
54
- - lib/phlex/icons/helper.rb
55
54
  - lib/phlex/icons/tabler.rb
56
55
  - lib/phlex/icons/tabler/a_b.rb
57
56
  - lib/phlex/icons/tabler/a_b_2.rb
@@ -1,11 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Phlex
4
- module Icons
5
- module Helper
6
- def class_name_from_file_path(file_path)
7
- ::File.basename(file_path, '.rb').split('_').collect(&:capitalize).join
8
- end
9
- end
10
- end
11
- end