Sha256: dc9964d6ea1ae8055fd7f8f80f7588f60bc83969c3c4d469bc7214064e597f38

Contents?: true

Size: 1.25 KB

Versions: 27

Compression:

Stored size: 1.25 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 :is_valid
      prop :label, type: Playbook::Props::String,
                   default: ""
      prop :name, type: Playbook::Props::String,
                  default: ""
      prop :onchange
      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,
          disabled: disabled,
          initialCountry: initial_country,
          isValid: is_valid,
          label: label,
          name: name,
          onChange: onchange,
          onlyCountries: only_countries,
          preferredCountries: preferred_countries,
          value: value,
        }
      end
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
playbook_ui-12.8.0.pre.alpha.PLAY625phonenumberdark301 app/pb_kits/playbook/pb_phone_number_input/phone_number_input.rb
playbook_ui-12.8.0.pre.alpha.PLAY625phonenumberdark300 app/pb_kits/playbook/pb_phone_number_input/phone_number_input.rb
playbook_ui-12.8.0.pre.alpha.PLAY649mapkitstyles299 app/pb_kits/playbook/pb_phone_number_input/phone_number_input.rb
playbook_ui-12.8.0.pre.alpha.PLAY645typescriptprogresstep298 app/pb_kits/playbook/pb_phone_number_input/phone_number_input.rb
playbook_ui-12.8.0.pre.alpha.PLAY645typescriptprogresstep297 app/pb_kits/playbook/pb_phone_number_input/phone_number_input.rb
playbook_ui-12.8.0.pre.alpha.rubyandnpmalpharelease296 app/pb_kits/playbook/pb_phone_number_input/phone_number_input.rb
playbook_ui-12.8.0.pre.alpha.rubyandnpmalpharelease295 app/pb_kits/playbook/pb_phone_number_input/phone_number_input.rb
playbook_ui-12.8.0.pre.alpha.rubyandnpmalpharelease294 app/pb_kits/playbook/pb_phone_number_input/phone_number_input.rb
playbook_ui-12.8.0 app/pb_kits/playbook/pb_phone_number_input/phone_number_input.rb
playbook_ui-12.7.1.pre.alpha.rubyandnpmalpharelease293 app/pb_kits/playbook/pb_phone_number_input/phone_number_input.rb
playbook_ui-12.7.1.pre.alpha.rubyandnpmalpharelease292 app/pb_kits/playbook/pb_phone_number_input/phone_number_input.rb
playbook_ui-12.7.1.pre.alpha.rubyandnpmalpharelease291 app/pb_kits/playbook/pb_phone_number_input/phone_number_input.rb
playbook_ui-12.7.1.pre.alpha.alpharubyrelease281 app/pb_kits/playbook/pb_phone_number_input/phone_number_input.rb
playbook_ui-12.7.1.pre.alpha.menu2 app/pb_kits/playbook/pb_phone_number_input/phone_number_input.rb
playbook_ui-12.7.1.pre.alpha.menu1 app/pb_kits/playbook/pb_phone_number_input/phone_number_input.rb
playbook_ui-12.7.1 app/pb_kits/playbook/pb_phone_number_input/phone_number_input.rb
playbook_ui-12.7.0 app/pb_kits/playbook/pb_phone_number_input/phone_number_input.rb
playbook_ui-12.6.0.pre.alpha.sectionseparator1 app/pb_kits/playbook/pb_phone_number_input/phone_number_input.rb
playbook_ui-12.6.0.pre.alpha.menuyml1 app/pb_kits/playbook/pb_phone_number_input/phone_number_input.rb
playbook_ui-12.6.0.pre.alpha.collapsible1 app/pb_kits/playbook/pb_phone_number_input/phone_number_input.rb