Sha256: 555e6a0ce4c91d65643b2c4ec5dbd36765564291dd382e3bd823380320dc37e0

Contents?: true

Size: 1.98 KB

Versions: 25

Compression:

Stored size: 1.98 KB

Contents

# frozen_string_literal: true

# rubocop:disable Layout/LineLength
module Phlex
  module Icons
    module Hero
      class Swatch < Base
        def solid
          svg(
            class: classes,
            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:
                'M2.25 4.125c0-1.036.84-1.875 1.875-1.875h5.25c1.036 0 1.875.84 1.875 1.875V17.25a4.5 4.5 0 1 1-9 0V4.125Zm4.5 14.25a1.125 1.125 0 1 0 0-2.25 1.125 1.125 0 0 0 0 2.25Z',
              clip_rule: 'evenodd'
            )
            s.path(
              d:
                'M10.719 21.75h9.156c1.036 0 1.875-.84 1.875-1.875v-5.25c0-1.036-.84-1.875-1.875-1.875h-.14l-8.742 8.743c-.09.089-.18.175-.274.257ZM12.738 17.625l6.474-6.474a1.875 1.875 0 0 0 0-2.651L15.5 4.787a1.875 1.875 0 0 0-2.651 0l-.1.099V17.25c0 .126-.003.251-.01.375Z'
            )
          end
        end

        def outline
          svg(
            class: classes,
            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:
                'M4.098 19.902a3.75 3.75 0 0 0 5.304 0l6.401-6.402M6.75 21A3.75 3.75 0 0 1 3 17.25V4.125C3 3.504 3.504 3 4.125 3h5.25c.621 0 1.125.504 1.125 1.125v4.072M6.75 21a3.75 3.75 0 0 0 3.75-3.75V8.197M6.75 21h13.125c.621 0 1.125-.504 1.125-1.125v-5.25c0-.621-.504-1.125-1.125-1.125h-4.072M10.5 8.197l2.88-2.88c.438-.439 1.15-.439 1.59 0l3.712 3.713c.44.44.44 1.152 0 1.59l-2.879 2.88M6.75 17.25h.008v.008H6.75v-.008Z'
            )
          end
        end
      end
    end
  end
end
# rubocop:enable Layout/LineLength

Version data entries

25 entries across 25 versions & 2 rubygems

Version Path
phlex-icons-0.17.0 lib/phlex/icons/hero/swatch.rb
phlex-icons-hero-0.17.0 lib/phlex/icons/hero/swatch.rb
phlex-icons-0.16.0 lib/phlex/icons/hero/swatch.rb
phlex-icons-hero-0.16.0 lib/phlex/icons/hero/swatch.rb
phlex-icons-0.15.0 lib/phlex/icons/hero/swatch.rb
phlex-icons-hero-0.15.0 lib/phlex/icons/hero/swatch.rb
phlex-icons-0.14.0 lib/phlex/icons/hero/swatch.rb
phlex-icons-hero-0.14.0 lib/phlex/icons/hero/swatch.rb
phlex-icons-hero-0.13.0 lib/phlex/icons/hero/swatch.rb
phlex-icons-0.13.0 lib/phlex/icons/hero/swatch.rb
phlex-icons-0.12.0 lib/phlex/icons/hero/swatch.rb
phlex-icons-hero-0.12.0 lib/phlex/icons/hero/swatch.rb
phlex-icons-0.11.0 lib/phlex/icons/hero/swatch.rb
phlex-icons-hero-0.11.0 lib/phlex/icons/hero/swatch.rb
phlex-icons-0.10.0 lib/phlex/icons/hero/swatch.rb
phlex-icons-0.9.0 lib/phlex/icons/hero/swatch.rb
phlex-icons-hero-0.9.0 lib/phlex/icons/hero/swatch.rb
phlex-icons-0.8.0 lib/phlex/icons/hero/swatch.rb
phlex-icons-0.7.0 lib/phlex/icons/hero/swatch.rb
phlex-icons-0.6.0 lib/phlex/icons/hero/swatch.rb