Sha256: 24dfb1ba3166fa45cbfeac1a0b4542b5185e6bee3eccd654731ae31d85513621

Contents?: true

Size: 1 KB

Versions: 70

Compression:

Stored size: 1 KB

Contents

# frozen_string_literal: true

module Primer
  module OpenProject
    # Add a general description of component here
    # Add additional usage considerations or best practices that may aid the user to use the component correctly.
    # @accessibility Add any accessibility considerations
    class DragHandle < Primer::Component
      status :open_project

      DEFAULT_SIZE = Primer::Beta::Octicon::SIZE_DEFAULT
      SIZE_OPTIONS = Primer::Beta::Octicon::SIZE_OPTIONS

      # @param system_arguments [Hash] <%= link_to_system_arguments_docs %>
      def initialize(size: Primer::OpenProject::DragHandle::DEFAULT_SIZE, **system_arguments)
        @system_arguments = system_arguments
        @system_arguments[:tag] = "div"
        @system_arguments[:classes] =
          class_names(
            @system_arguments[:classes],
            "DragHandle"
          )

        @size = fetch_or_fallback(Primer::OpenProject::DragHandle::SIZE_OPTIONS, size, Primer::OpenProject::DragHandle::DEFAULT_SIZE)
      end
    end
  end
end

Version data entries

70 entries across 70 versions & 1 rubygems

Version Path
openproject-primer_view_components-0.18.1 app/components/primer/open_project/drag_handle.rb
openproject-primer_view_components-0.17.1 app/components/primer/open_project/drag_handle.rb
openproject-primer_view_components-0.17.0 app/components/primer/open_project/drag_handle.rb
openproject-primer_view_components-0.16.0 app/components/primer/open_project/drag_handle.rb
openproject-primer_view_components-0.15.0 app/components/primer/open_project/drag_handle.rb
openproject-primer_view_components-0.14.0 app/components/primer/open_project/drag_handle.rb
openproject-primer_view_components-0.13.1 app/components/primer/open_project/drag_handle.rb
openproject-primer_view_components-0.13.0 app/components/primer/open_project/drag_handle.rb
openproject-primer_view_components-0.12.1 app/components/primer/open_project/drag_handle.rb
openproject-primer_view_components-0.11.0 app/components/primer/open_project/drag_handle.rb