Sha256: fd7f14e31b4763621e26cc83e1b3af24def2ca8035f80d53d3a7b846879888fe

Contents?: true

Size: 640 Bytes

Versions: 17

Compression:

Stored size: 640 Bytes

Contents

# typed: false
# frozen_string_literal: true

module Ariadne
  module UI
    module StatsPanel
      module Item
        class Component < Ariadne::BaseComponent
          option :theme, default: proc { :default }
          option :label

          style do
            base { ["text-number-lg-smb"] }

            variants do
              theme do
                default { [] }
                success { ["ariadne-text-emerald-600", "dark:ariadne-text-emerald-400"] }
                danger { ["ariadne-text-red-600", "dark:ariadne-text-red-400"] }
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

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