phlex-icons-bootstrap 0.12.0 → 0.13.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2d8450e98f47687d75db78f48d35772d4300c865ce122ae7248ad0bcd1ea4999
4
- data.tar.gz: 4fe5e8fff3366634d61e5b79f4f83cdeed8eab2fea834a2394b3009b64366d93
3
+ metadata.gz: e5f18ff8086cca6839fd6484b8593f7e5c8fbbab96c94bd634c21b51d94e77a6
4
+ data.tar.gz: 4e2780860605e8a0ff0d20a7cda60be51930a7380b1632fc221e25cea6451762
5
5
  SHA512:
6
- metadata.gz: 95b5d4fe9d30f6734e6b90ea61662b1e883758041f932e89d9117de7c55dc51bca758e3431c53b1f153013f7907b4fbf26cdfde792705d0eb9329f852f6e729b
7
- data.tar.gz: 2d0dbada6b741e810b9efcdd857591e69ba308c08646df4de7d51d645d7efe3e9fce91daba8dc1ffd01dbff93435a29dfc1b6b157c615d4bc7593be40246dad5
6
+ metadata.gz: 1f60a466a6d38b37e93e72526af0bb43aa5404e6db31fd85a3559e33e5f28d94da14a2166c707e71acc6d0ca39e693a5ddaf6913280fb278b13e2859b37003fb
7
+ data.tar.gz: 1c0ef0195eb4e6985fc696ebffb7662f6f41fe7a7369c5c63b7f0b35a2664bc9ad3bb961d1272b47d8b9907d37601d2e4bce75064727fab77170c9da2df42f33
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'
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Phlex
4
4
  module Icons
5
- VERSION = '0.12.0'
5
+ VERSION = '0.13.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/bootstrap'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phlex-icons-bootstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ali Hamdi Ali Fadel
@@ -2103,7 +2103,6 @@ files:
2103
2103
  - lib/phlex/icons/bootstrap/zoom_in.rb
2104
2104
  - lib/phlex/icons/bootstrap/zoom_out.rb
2105
2105
  - lib/phlex/icons/configuration.rb
2106
- - lib/phlex/icons/helper.rb
2107
2106
  - lib/phlex/icons/version.rb
2108
2107
  - lib/phlex_icons_bootstrap.rb
2109
2108
  - phlex-icons.png
@@ -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