Sha256: ff42aede804741e39e9f94225527288f07d2867899c217d17a3e692bfe302d71

Contents?: true

Size: 570 Bytes

Versions: 2

Compression:

Stored size: 570 Bytes

Contents

# frozen_string_literal: true

require "octicons_helper/helper"

module Primer
  # @private
  class Component < ViewComponent::Base
    include ClassNameHelper
    include FetchOrFallbackHelper
    include OcticonsHelper
    include JoinStyleArgumentsHelper
    include ViewHelper::DSL
    include ViewHelper

    # sourced from https://primer.style/doctocat/usage/front-matter#status
    STATUSES = {
      alpha: :alpha,
      beta: :beta,
      stable: :stable,
      deprecated: :deprecated
    }.freeze

    def self.status
      STATUSES[:alpha]
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
primer_view_components-0.0.23 app/components/primer/component.rb
primer_view_components-0.0.22 app/components/primer/component.rb