Sha256: a43eb718e033411a87292ad0fff28f32348ed764c24dd79743f41909c7d453e9

Contents?: true

Size: 1.45 KB

Versions: 14

Compression:

Stored size: 1.45 KB

Contents

# frozen_string_literal: true

# rubocop:disable Layout/LineLength
module Phlex
  module Icons
    module Tabler
      class Diamond < Base
        def filled
          svg(
            **attrs,
            xmlns: 'http://www.w3.org/2000/svg',
            viewbox: '0 0 24 24',
            fill: 'currentColor'
          ) do |s|
            s.path(
              d:
                'M18 4a1 1 0 0 1 .783 .378l.074 .108l3 5a1 1 0 0 1 -.032 1.078l-.08 .103l-8.53 9.533a1.7 1.7 0 0 1 -1.215 .51c-.4 0 -.785 -.14 -1.11 -.417l-.135 -.126l-8.5 -9.5a1 1 0 0 1 -.172 -1.067l.06 -.115l3.013 -5.022l.064 -.09a.982 .982 0 0 1 .155 -.154l.089 -.064l.088 -.05l.05 -.023l.06 -.025l.109 -.032l.112 -.02l.117 -.005h12zm-8.886 3.943a1 1 0 0 0 -1.371 .343l-.6 1l-.06 .116a1 1 0 0 0 .177 1.07l2 2.2l.09 .088a1 1 0 0 0 1.323 -.02l.087 -.09a1 1 0 0 0 -.02 -1.323l-1.501 -1.65l.218 -.363l.055 -.103a1 1 0 0 0 -.398 -1.268z'
            )
          end
        end

        def outline
          svg(
            **attrs,
            xmlns: 'http://www.w3.org/2000/svg',
            viewbox: '0 0 24 24',
            fill: 'none',
            stroke: 'currentColor',
            stroke_width: '2',
            stroke_linecap: 'round',
            stroke_linejoin: 'round'
          ) do |s|
            s.path(d: 'M6 5h12l3 5l-8.5 9.5a.7 .7 0 0 1 -1 0l-8.5 -9.5l3 -5')
            s.path(d: 'M10 12l-2 -2.2l.6 -1')
          end
        end
      end
    end
  end
end
# rubocop:enable Layout/LineLength

Version data entries

14 entries across 14 versions & 2 rubygems

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