phlex-icons-bootstrap 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: 2d8450e98f47687d75db78f48d35772d4300c865ce122ae7248ad0bcd1ea4999
4
- data.tar.gz: 4fe5e8fff3366634d61e5b79f4f83cdeed8eab2fea834a2394b3009b64366d93
3
+ metadata.gz: 5826056ba49814337843f2d79a4c920ac300c5303c70febc1e983bf85d068c2b
4
+ data.tar.gz: 4b8bf9e978cea1a27f6dc8c715003fdb48f7f680398e0c2b723f243eea2d6564
5
5
  SHA512:
6
- metadata.gz: 95b5d4fe9d30f6734e6b90ea61662b1e883758041f932e89d9117de7c55dc51bca758e3431c53b1f153013f7907b4fbf26cdfde792705d0eb9329f852f6e729b
7
- data.tar.gz: 2d0dbada6b741e810b9efcdd857591e69ba308c08646df4de7d51d645d7efe3e9fce91daba8dc1ffd01dbff93435a29dfc1b6b157c615d4bc7593be40246dad5
6
+ metadata.gz: 9b3bc31bcad2a6d54bfb455c874f585292fad41907bfa43f03c65f95bd4837e51769e1e59835ca28ae18c9e0772ec6b06fee1f2db6b756f9fd077813401c4612
7
+ data.tar.gz: bd785c823342e8927242f82b3407fe08aba83db3eeb631ccee5a8f6f93d9eddb1d56288ddfca3d9e8bb4f629a9f7c4d1d29e4fb54fe00c7599d9235be18952c7
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 Bootstrap
@@ -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.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/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.14.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