Sha256: 136def97d7cb002612ef270eb4f98f1db9b7546a768cfbc9ddd723c854c8472c

Contents?: true

Size: 1019 Bytes

Versions: 39

Compression:

Stored size: 1019 Bytes

Contents

# typed: false
# frozen_string_literal: true

module Ariadne
  module UI
    module Table
      class Component < Ariadne::BaseComponent
        renders_one :caption
        renders_one :header, Ariadne::UI::Table::Header::Component
        renders_many :rows, Ariadne::UI::Table::Row::Component
        renders_one :footer, Ariadne::UI::Table::Footer::Component

        style :table do
          base do
            [
              "ariadne-w-full",
              "ariadne-caption-bottom",
              "ariadne-text-sm",
            ]
          end
        end

        style :body do
          base do
            [
              "ariadne-divide-y",
              "ariadne-divide-zinc-100",
              "dark:ariadne-divide-zinc-800",
            ]
          end
        end

        style :caption do
          base do
            [
              "ariadne-mt-4",
              "ariadne-text-sm",
              "ariadne-text-muted-foreground",
            ]
          end
        end
      end
    end
  end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
ariadne_view_components-0.0.92 app/components/ariadne/ui/table/component.rb
ariadne_view_components-0.0.91 app/components/ariadne/ui/table/component.rb
ariadne_view_components-0.0.90 app/components/ariadne/ui/table/component.rb
ariadne_view_components-0.0.89.1 app/components/ariadne/ui/table/component.rb
ariadne_view_components-0.0.89 app/components/ariadne/ui/table/component.rb
ariadne_view_components-0.0.88 app/components/ariadne/ui/table/component.rb
ariadne_view_components-0.0.87 app/components/ariadne/ui/table/component.rb
ariadne_view_components-0.0.86.9 app/components/ariadne/ui/table/component.rb
ariadne_view_components-0.0.86.8 app/components/ariadne/ui/table/component.rb
ariadne_view_components-0.0.86.7 app/components/ariadne/ui/table/component.rb
ariadne_view_components-0.0.86.6 app/components/ariadne/ui/table/component.rb
ariadne_view_components-0.0.86.5 app/components/ariadne/ui/table/component.rb
ariadne_view_components-0.0.86.4 app/components/ariadne/ui/table/component.rb
ariadne_view_components-0.0.86.3 app/components/ariadne/ui/table/component.rb
ariadne_view_components-0.0.86.2 app/components/ariadne/ui/table/component.rb
ariadne_view_components-0.0.86.1 app/components/ariadne/ui/table/component.rb
ariadne_view_components-0.0.86 app/components/ariadne/ui/table/component.rb
ariadne_view_components-0.0.85 app/components/ariadne/ui/table/component.rb
ariadne_view_components-0.0.84 app/components/ariadne/ui/table/component.rb
ariadne_view_components-0.0.83.3 app/components/ariadne/ui/table/component.rb