Sha256: fce9d45e81d9455df528769db50a2df4c648a43a8d544b0740d9b59592cb6712

Contents?: true

Size: 1.5 KB

Versions: 14

Compression:

Stored size: 1.5 KB

Contents

# frozen_string_literal: true

# rubocop:disable Layout/LineLength
module Phlex
  module Icons
    module Hero
      class CodeBracket < Base
        def solid
          svg(
            **attrs,
            xmlns: 'http://www.w3.org/2000/svg',
            viewbox: '0 0 24 24',
            fill: 'currentColor',
            aria_hidden: 'true',
            data_slot: 'icon'
          ) do |s|
            s.path(
              fill_rule: 'evenodd',
              d:
                'M14.447 3.026a.75.75 0 0 1 .527.921l-4.5 16.5a.75.75 0 0 1-1.448-.394l4.5-16.5a.75.75 0 0 1 .921-.527ZM16.72 6.22a.75.75 0 0 1 1.06 0l5.25 5.25a.75.75 0 0 1 0 1.06l-5.25 5.25a.75.75 0 1 1-1.06-1.06L21.44 12l-4.72-4.72a.75.75 0 0 1 0-1.06Zm-9.44 0a.75.75 0 0 1 0 1.06L2.56 12l4.72 4.72a.75.75 0 0 1-1.06 1.06L.97 12.53a.75.75 0 0 1 0-1.06l5.25-5.25a.75.75 0 0 1 1.06 0Z',
              clip_rule: 'evenodd'
            )
          end
        end

        def outline
          svg(
            **attrs,
            xmlns: 'http://www.w3.org/2000/svg',
            fill: 'none',
            viewbox: '0 0 24 24',
            stroke_width: '1.5',
            stroke: 'currentColor',
            aria_hidden: 'true',
            data_slot: 'icon'
          ) do |s|
            s.path(
              stroke_linecap: 'round',
              stroke_linejoin: 'round',
              d: 'M17.25 6.75 22.5 12l-5.25 5.25m-10.5 0L1.5 12l5.25-5.25m7.5-3-4.5 16.5'
            )
          end
        end
      end
    end
  end
end
# rubocop:enable Layout/LineLength

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
phlex-icons-hero-1.6.0 lib/phlex/icons/hero/code_bracket.rb
phlex-icons-1.6.0 lib/phlex/icons/hero/code_bracket.rb
phlex-icons-1.5.0 lib/phlex/icons/hero/code_bracket.rb
phlex-icons-hero-1.5.0 lib/phlex/icons/hero/code_bracket.rb
phlex-icons-hero-1.4.0 lib/phlex/icons/hero/code_bracket.rb
phlex-icons-1.4.0 lib/phlex/icons/hero/code_bracket.rb
phlex-icons-hero-1.3.0 lib/phlex/icons/hero/code_bracket.rb
phlex-icons-1.3.0 lib/phlex/icons/hero/code_bracket.rb
phlex-icons-hero-1.2.0 lib/phlex/icons/hero/code_bracket.rb
phlex-icons-1.2.0 lib/phlex/icons/hero/code_bracket.rb
phlex-icons-1.1.0 lib/phlex/icons/hero/code_bracket.rb
phlex-icons-hero-1.1.0 lib/phlex/icons/hero/code_bracket.rb
phlex-icons-1.0.0 lib/phlex/icons/hero/code_bracket.rb
phlex-icons-hero-1.0.0 lib/phlex/icons/hero/code_bracket.rb