phlex-icons 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: 74218fb464c2c252bb83eb74ac4ff6e4a94dea72ace1bbe87926329d58ae3972
4
- data.tar.gz: eeb6db87109cbb879928b1b32edf54ebb4542240b97c0a35b8713514cd8dfd0e
3
+ metadata.gz: 8f7700813c9ca4f1ffd8c6f5ab8c8da56b015d28fe0d5895d48c8630917ba2eb
4
+ data.tar.gz: 5dc7cd2b5a4810c94ba1f0ea4d8d73764016506d4d5451bc3e01033eeecc8157
5
5
  SHA512:
6
- metadata.gz: 8fa7622cc13d17911b87a7266f67b1b5cfc2e83f26b8304d7ba8004606709dc2033a7f320a0029c768c67eb81210bccda0ec50df608f3487dc34a099ca6ea6b5
7
- data.tar.gz: c1cfa35ef41b15869e93c5fe807458bdd8fbc616c20ce0785ab7f0c03f4b819b944a896a967756f86f40f40858777fbd992c69f4c44a3fe91a2c533c9fd8a997
6
+ metadata.gz: ba1b84fd122aeed2ae82b1789a3cfb835e057d199f240e888b31289006e030ea11206b702eac56ab0f94154b44821443d82b9b33b10a2f8464e3d794633d3d4e
7
+ data.tar.gz: 58593051329f3b38768711ce9d244771d804fd71a7fd204210236ad165db76cbbc1ca14fc9fce908fbd08533f7658738b13b51c0c12f11aecb85a2536ca34d5b
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
 
@@ -3,7 +3,6 @@
3
3
  module Phlex
4
4
  module Icons
5
5
  module Bootstrap # rubocop:disable Metrics/ModuleLength
6
- extend Phlex::Icons::Helper
7
6
  extend Phlex::Kit
8
7
 
9
8
  require_relative 'bootstrap/base'
@@ -3,7 +3,6 @@
3
3
  module Phlex
4
4
  module Icons
5
5
  module Flag # rubocop:disable Metrics/ModuleLength
6
- extend Phlex::Icons::Helper
7
6
  extend Phlex::Kit
8
7
 
9
8
  require_relative 'flag/base'
@@ -3,7 +3,6 @@
3
3
  module Phlex
4
4
  module Icons
5
5
  module Hero # rubocop:disable Metrics/ModuleLength
6
- extend Phlex::Icons::Helper
7
6
  extend Phlex::Kit
8
7
 
9
8
  require_relative 'hero/base'
@@ -3,7 +3,6 @@
3
3
  module Phlex
4
4
  module Icons
5
5
  module Lucide # rubocop:disable Metrics/ModuleLength
6
- extend Phlex::Icons::Helper
7
6
  extend Phlex::Kit
8
7
 
9
8
  require_relative 'lucide/base'
@@ -3,7 +3,6 @@
3
3
  module Phlex
4
4
  module Icons
5
5
  module Radix # rubocop:disable Metrics/ModuleLength
6
- extend Phlex::Icons::Helper
7
6
  extend Phlex::Kit
8
7
 
9
8
  require_relative 'radix/base'
@@ -3,7 +3,6 @@
3
3
  module Phlex
4
4
  module Icons
5
5
  module Remix # rubocop:disable Metrics/ModuleLength
6
- extend Phlex::Icons::Helper
7
6
  extend Phlex::Kit
8
7
 
9
8
  require_relative 'remix/base'
@@ -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
data/lib/phlex_icons.rb CHANGED
@@ -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/bootstrap'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phlex-icons
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
@@ -2376,7 +2376,6 @@ files:
2376
2376
  - lib/phlex/icons/flag/za.rb
2377
2377
  - lib/phlex/icons/flag/zm.rb
2378
2378
  - lib/phlex/icons/flag/zw.rb
2379
- - lib/phlex/icons/helper.rb
2380
2379
  - lib/phlex/icons/hero.rb
2381
2380
  - lib/phlex/icons/hero/academic_cap.rb
2382
2381
  - lib/phlex/icons/hero/adjustments_horizontal.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