Sha256: 981585904c78680fe258680fcae72dd19ba00aa524ce2bcb6a0880c94068dd91

Contents?: true

Size: 1.18 KB

Versions: 86

Compression:

Stored size: 1.18 KB

Contents

# frozen_string_literal: true

module Playbook
  module PbPhoneNumberInput
    class PhoneNumberInput < Playbook::KitBase
      prop :disabled, type: Playbook::Props::Boolean,
                      default: false
      prop :initial_country, type: Playbook::Props::String,
                             default: ""
      prop :label, type: Playbook::Props::String,
                   default: ""
      prop :name, type: Playbook::Props::String,
                  default: ""
      prop :only_countries, type: Playbook::Props::Array,
                            default: []
      prop :preferred_countries, type: Playbook::Props::Array,
                                 default: []
      prop :value, type: Playbook::Props::String,
                   default: ""

      def classname
        generate_classname("pb_phone_number_input")
      end

      def phone_number_input_options
        {
          id: id,
          dark: dark,
          disabled: disabled,
          initialCountry: initial_country,
          label: label,
          name: name,
          onlyCountries: only_countries,
          preferredCountries: preferred_countries,
          value: value,
        }
      end
    end
  end
end

Version data entries

86 entries across 86 versions & 1 rubygems

Version Path
playbook_ui-12.26.1.pre.alpha.railsmultilevelimprovements842 app/pb_kits/playbook/pb_phone_number_input/phone_number_input.rb
playbook_ui-12.26.1.pre.alpha.railsmultilevelimprovements837 app/pb_kits/playbook/pb_phone_number_input/phone_number_input.rb
playbook_ui-12.26.1.pre.alpha.railsmultilevelimprovements835 app/pb_kits/playbook/pb_phone_number_input/phone_number_input.rb
playbook_ui-12.26.1.pre.alpha.play716popoverkitcloseonclickissue833 app/pb_kits/playbook/pb_phone_number_input/phone_number_input.rb
playbook_ui-12.26.1.pre.alpha.PLAY603datepickerquickpickinputpresetdropdown831 app/pb_kits/playbook/pb_phone_number_input/phone_number_input.rb
playbook_ui-12.26.1 app/pb_kits/playbook/pb_phone_number_input/phone_number_input.rb
playbook_ui-12.26.0.pre.alpha.multiselectfixes825 app/pb_kits/playbook/pb_phone_number_input/phone_number_input.rb
playbook_ui-12.26.0.pre.alpha.PLAY603datepickerquickpickinputpresetdropdown822 app/pb_kits/playbook/pb_phone_number_input/phone_number_input.rb
playbook_ui-12.26.0.pre.alpha.multiselectfixes821 app/pb_kits/playbook/pb_phone_number_input/phone_number_input.rb
playbook_ui-12.26.0.pre.alpha.PLAY603datepickerquickpickinputpresetdropdown818 app/pb_kits/playbook/pb_phone_number_input/phone_number_input.rb
playbook_ui-12.26.0.pre.alpha.PLAY603datepickerquickpickinputpresetdropdown817 app/pb_kits/playbook/pb_phone_number_input/phone_number_input.rb
playbook_ui-12.26.0.pre.alpha.PLAY603datepickerquickpickinputpresetdropdown815 app/pb_kits/playbook/pb_phone_number_input/phone_number_input.rb
playbook_ui-12.26.0.pre.alpha.PLAY603datepickerquickpickinputpresetdropdown813 app/pb_kits/playbook/pb_phone_number_input/phone_number_input.rb
playbook_ui-12.26.0.pre.alpha.alphafix812 app/pb_kits/playbook/pb_phone_number_input/phone_number_input.rb
playbook_ui-12.26.0.pre.alpha.alphafix810 app/pb_kits/playbook/pb_phone_number_input/phone_number_input.rb
playbook_ui-12.26.0.pre.alpha.railsmultilevelimprovements805 app/pb_kits/playbook/pb_phone_number_input/phone_number_input.rb
playbook_ui-12.26.0.pre.alpha.multiselectfixes798 app/pb_kits/playbook/pb_phone_number_input/phone_number_input.rb
playbook_ui-12.26.0.pre.alpha.multiselectfixes797 app/pb_kits/playbook/pb_phone_number_input/phone_number_input.rb
playbook_ui-12.26.0.pre.alpha.multiselectfixes796 app/pb_kits/playbook/pb_phone_number_input/phone_number_input.rb
playbook_ui-12.26.0.pre.alpha.multiselectfixes795 app/pb_kits/playbook/pb_phone_number_input/phone_number_input.rb