Sha256: c3ec8dac03840f75ac386435996c4158ca4714d85f1be83a5d8c6d608733ec09

Contents?: true

Size: 831 Bytes

Versions: 137

Compression:

Stored size: 831 Bytes

Contents

# frozen_string_literal: true

module Primer
  module Alpha
    class Dialog
      # A `Dialog::Body` is a compositional component, used to render the
      # Body of a dialog. See <%= link_to_component(Primer::Alpha::Dialog) %>.
      class Body < Primer::Component
        status :alpha
        audited_at "2022-10-10"

        # @param system_arguments [Hash] <%= link_to_system_arguments_docs %>
        def initialize(**system_arguments)
          @system_arguments = deny_tag_argument(**system_arguments)
          @system_arguments[:tag] = :div
          @system_arguments[:classes] = class_names(
            "Overlay-body",
            system_arguments[:classes]
          )
        end

        def call
          render(Primer::BaseComponent.new(**@system_arguments)) { content }
        end
      end
    end
  end
end

Version data entries

137 entries across 137 versions & 2 rubygems

Version Path
openproject-primer_view_components-0.49.2 app/components/primer/alpha/dialog/body.rb
primer_view_components-0.35.2 app/components/primer/alpha/dialog/body.rb
openproject-primer_view_components-0.49.1 app/components/primer/alpha/dialog/body.rb
openproject-primer_view_components-0.49.0 app/components/primer/alpha/dialog/body.rb
primer_view_components-0.35.1 app/components/primer/alpha/dialog/body.rb
primer_view_components-0.35.0 app/components/primer/alpha/dialog/body.rb
openproject-primer_view_components-0.48.2 app/components/primer/alpha/dialog/body.rb
openproject-primer_view_components-0.48.1 app/components/primer/alpha/dialog/body.rb
openproject-primer_view_components-0.48.0 app/components/primer/alpha/dialog/body.rb
openproject-primer_view_components-0.47.1 app/components/primer/alpha/dialog/body.rb
openproject-primer_view_components-0.47.0 app/components/primer/alpha/dialog/body.rb
primer_view_components-0.34.0 app/components/primer/alpha/dialog/body.rb
openproject-primer_view_components-0.46.1 app/components/primer/alpha/dialog/body.rb
openproject-primer_view_components-0.46.0 app/components/primer/alpha/dialog/body.rb
openproject-primer_view_components-0.45.0 app/components/primer/alpha/dialog/body.rb
openproject-primer_view_components-0.44.3 app/components/primer/alpha/dialog/body.rb
openproject-primer_view_components-0.44.2 app/components/primer/alpha/dialog/body.rb
openproject-primer_view_components-0.44.1 app/components/primer/alpha/dialog/body.rb
primer_view_components-0.33.0 app/components/primer/alpha/dialog/body.rb
openproject-primer_view_components-0.44.0 app/components/primer/alpha/dialog/body.rb