Sha256: 39e821db4bc806565c83ac009f8101c8c8d9b29972983d4ea7780ac47597e128

Contents?: true

Size: 845 Bytes

Versions: 7

Compression:

Stored size: 845 Bytes

Contents

# typed: false
# frozen_string_literal: true

module Ariadne
  module UI
    module Table
      module Row
        class Component < Ariadne::BaseComponent
          attr_accessor :context

          renders_one :row_action, Ariadne::UI::Combobox::Component
          renders_many :cells, Ariadne::UI::Table::Cell::Component

          accepts_html_attributes do |html_attrs|
            html_attrs[:class] = Ariadne::ViewComponents.tailwind_merger.merge([style(:row), html_attrs[:class]].join(" "))
          end

          style :row do
            base do
              [
                "ariadne-border-b",
                "ariadne-transition-colors",
                "hover:ariadne-bg-muted/50",
                "data-[state=selected]:ariadne-bg-muted",
              ]
            end
          end
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ariadne_view_components-0.0.92 app/components/ariadne/ui/table/row/component.rb
ariadne_view_components-0.0.91 app/components/ariadne/ui/table/row/component.rb
ariadne_view_components-0.0.90 app/components/ariadne/ui/table/row/component.rb
ariadne_view_components-0.0.89.1 app/components/ariadne/ui/table/row/component.rb
ariadne_view_components-0.0.89 app/components/ariadne/ui/table/row/component.rb
ariadne_view_components-0.0.88 app/components/ariadne/ui/table/row/component.rb
ariadne_view_components-0.0.87 app/components/ariadne/ui/table/row/component.rb