Sha256: 959074b25e5d6ade8321fb5cdf521cfbab7b8370ddcc5feed6972c50247139f0

Contents?: true

Size: 1.37 KB

Versions: 74

Compression:

Stored size: 1.37 KB

Contents

# frozen_string_literal: true

module NfgUi
  module Components
    # Centralizes traits for design system components
    # Trait modules must have the same name as the component they represent.
    module Traits
      TRAIT_MODULES = %i[Active
                         Alert
                         Alignment
                         Button
                         ButtonGroup
                         Card
                         Collapse
                         Disable
                         DisableWith
                         Dismiss
                         DropdownToggle
                         Icon
                         ListGroup
                         Modal
                         Muted
                         Nav
                         Navbar
                         NavItem
                         PageHeader
                         Pill
                         ProgressBar
                         Remote
                         Responsive
                         Size
                         Step
                         Slats
                         SlatItem
                         Table
                         Theme
                         Typeface
                         Vertical].freeze

      REGISTERED_TRAITS = TRAIT_MODULES.collect { |trait| "NfgUi::Components::Traits::#{trait}::TRAITS".constantize }.reject(&:empty?).flatten
    end
  end
end

Version data entries

74 entries across 74 versions & 1 rubygems

Version Path
nfg_ui-6.17.2 lib/nfg_ui/components/traits.rb
nfg_ui-6.17.1 lib/nfg_ui/components/traits.rb
nfg_ui-6.17.0 lib/nfg_ui/components/traits.rb
nfg_ui-6.16.3 lib/nfg_ui/components/traits.rb
nfg_ui-6.16.2 lib/nfg_ui/components/traits.rb
nfg_ui-6.16.1 lib/nfg_ui/components/traits.rb
nfg_ui-6.16.0 lib/nfg_ui/components/traits.rb
nfg_ui-5.15.7 lib/nfg_ui/components/traits.rb
nfg_ui-5.15.6 lib/nfg_ui/components/traits.rb
nfg_ui-5.15.5 lib/nfg_ui/components/traits.rb
nfg_ui-5.15.4 lib/nfg_ui/components/traits.rb
nfg_ui-5.15.3 lib/nfg_ui/components/traits.rb
nfg_ui-0.15.2 lib/nfg_ui/components/traits.rb
nfg_ui-0.15.1 lib/nfg_ui/components/traits.rb
nfg_ui-0.15.0 lib/nfg_ui/components/traits.rb
nfg_ui-0.14.7 lib/nfg_ui/components/traits.rb
nfg_ui-0.14.6.3 lib/nfg_ui/components/traits.rb
nfg_ui-0.14.6.2 lib/nfg_ui/components/traits.rb
nfg_ui-0.14.6.1 lib/nfg_ui/components/traits.rb
nfg_ui-0.14.6 lib/nfg_ui/components/traits.rb