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.0.0.pre.alphafonts app/pb_kits/playbook/pb_legend/legend.rb
playbook_ui-10.0.1 app/pb_kits/playbook/pb_legend/legend.rb
playbook_ui-10.0.0 app/pb_kits/playbook/pb_legend/legend.rb
playbook_ui-9.19.0.pre.alpha.pre.fonts2 app/pb_kits/playbook/pb_legend/legend.rb
playbook_ui-9.19.0 app/pb_kits/playbook/pb_legend/legend.rb
playbook_ui-9.19.0.pre.alphafonts app/pb_kits/playbook/pb_legend/legend.rb
playbook_ui-9.18.0.flow.bin.alpha app/pb_kits/playbook/pb_legend/legend.rb
playbook_ui-9.18.0 app/pb_kits/playbook/pb_legend/legend.rb
playbook_ui-9.17.0 app/pb_kits/playbook/pb_legend/legend.rb
playbook_ui-9.17.0.pre.decouple.website2 app/pb_kits/playbook/pb_legend/legend.rb
playbook_ui-9.16.0 app/pb_kits/playbook/pb_legend/legend.rb
playbook_ui-9.15.0 app/pb_kits/playbook/pb_legend/legend.rb
playbook_ui-9.15.0.pre.decouple.website1 app/pb_kits/playbook/pb_legend/legend.rb
playbook_ui-9.14.1.alpha.radio.alignment app/pb_kits/playbook/pb_legend/legend.rb
playbook_ui-9.14.1.alpha.highcharts9 app/pb_kits/playbook/pb_legend/legend.rb
playbook_ui-9.14.1 app/pb_kits/playbook/pb_legend/legend.rb
playbook_ui-9.13.0 app/pb_kits/playbook/pb_legend/legend.rb
playbook_ui-9.12.0 app/pb_kits/playbook/pb_legend/legend.rb
playbook_ui-9.12.0.pre.text.addon app/pb_kits/playbook/pb_legend/legend.rb
playbook_ui-9.11.0 app/pb_kits/playbook/pb_legend/legend.rb