Sha256: 779e77f6ade52a9afb910eb2a0c1bc0a9f679f639408b4ea32f1aaff3fecfd97

Contents?: true

Size: 470 Bytes

Versions: 129

Compression:

Stored size: 470 Bytes

Contents

# frozen_string_literal: true

module Playbook
  module PbLegend
    class Legend < Playbook::KitBase
      prop :color, type: Playbook::Props::Enum,
                   values: (1..7).map { |n| "data_#{n}" },
                   default: "data_1"
      prop :prefix_text
      prop :text, required: true

      def body_color
        dark ? "lighter" : "light"
      end

      def classname
        generate_classname("pb_legend_kit", color)
      end
    end
  end
end

Version data entries

129 entries across 129 versions & 1 rubygems

Version Path
playbook_ui-10.19.0.pre.lightbox app/pb_kits/playbook/pb_legend/legend.rb
playbook_ui-10.18.2 app/pb_kits/playbook/pb_legend/legend.rb
playbook_ui-10.19.0.pre.popover.alpha1 app/pb_kits/playbook/pb_legend/legend.rb
playbook_ui-10.18.1 app/pb_kits/playbook/pb_legend/legend.rb
playbook_ui-10.18.0 app/pb_kits/playbook/pb_legend/legend.rb
playbook_ui-10.17.0 app/pb_kits/playbook/pb_legend/legend.rb
playbook_ui-10.16.0 app/pb_kits/playbook/pb_legend/legend.rb
playbook_ui-10.15.1 app/pb_kits/playbook/pb_legend/legend.rb
playbook_ui-10.15.1.pre.alpha.rubocop.deps app/pb_kits/playbook/pb_legend/legend.rb
playbook_ui-10.15.0 app/pb_kits/playbook/pb_legend/legend.rb
playbook_ui-10.14.1.pre.alpha2 app/pb_kits/playbook/pb_legend/legend.rb
playbook_ui-10.14.1.pre.alpha1 app/pb_kits/playbook/pb_legend/legend.rb
playbook_ui-10.14.0 app/pb_kits/playbook/pb_legend/legend.rb
playbook_ui-10.13.1 app/pb_kits/playbook/pb_legend/legend.rb
playbook_ui-10.13.0 app/pb_kits/playbook/pb_legend/legend.rb
playbook_ui-10.13.0.pre.node.update app/pb_kits/playbook/pb_legend/legend.rb
playbook_ui-10.12.0 app/pb_kits/playbook/pb_legend/legend.rb
playbook_ui-10.11.0 app/pb_kits/playbook/pb_legend/legend.rb
playbook_ui-10.10.0 app/pb_kits/playbook/pb_legend/legend.rb
playbook_ui-10.9.0 app/pb_kits/playbook/pb_legend/legend.rb