Sha256: 93789191a8769ca8bf940835cb418f47f9e4d7686cf69e724d764f060b8468c6

Contents?: true

Size: 1013 Bytes

Versions: 153

Compression:

Stored size: 1013 Bytes

Contents

# frozen_string_literal: true

module Playbook
  module PbPassphrase
    class Passphrase < Playbook::KitBase
      prop :average_threshold
      prop :check_pwned
      prop :confirmation, type: Playbook::Props::Boolean, default: false
      prop :input_props, type: Playbook::Props::Hash, default: {}
      prop :label
      prop :min_length
      prop :show_tips_below
      prop :strong_threshold
      prop :tips, type: Playbook::Props::Array, default: []

      def classname
        generate_classname("pb_passphrase")
      end

      def passphrase_options
        {
          checkPwned: check_pwned,
          dark: dark,
          id: id,
          averageThreshold: average_threshold,
          confirmation: confirmation,
          inputProps: input_props,
          label: label,
          minLength: min_length,
          showTipsBelow: show_tips_below,
          strongThreshold: strong_threshold,
          tips: tips,
          uncontrolled: true,
        }.compact
      end
    end
  end
end

Version data entries

153 entries across 153 versions & 1 rubygems

Version Path
playbook_ui-11.2.4 app/pb_kits/playbook/pb_passphrase/passphrase.rb
playbook_ui-11.2.4.pre.alpha1 app/pb_kits/playbook/pb_passphrase/passphrase.rb
playbook_ui-11.2.3 app/pb_kits/playbook/pb_passphrase/passphrase.rb
playbook_ui-11.2.2 app/pb_kits/playbook/pb_passphrase/passphrase.rb
playbook_ui-11.2.1 app/pb_kits/playbook/pb_passphrase/passphrase.rb
playbook_ui-11.2.0 app/pb_kits/playbook/pb_passphrase/passphrase.rb
playbook_ui-11.1.2 app/pb_kits/playbook/pb_passphrase/passphrase.rb
playbook_ui-11.1.2.pre.alpha1 app/pb_kits/playbook/pb_passphrase/passphrase.rb
playbook_ui-11.1.1 app/pb_kits/playbook/pb_passphrase/passphrase.rb
playbook_ui-11.1.1.pre.alpha1 app/pb_kits/playbook/pb_passphrase/passphrase.rb
playbook_ui-11.1.0 app/pb_kits/playbook/pb_passphrase/passphrase.rb
playbook_ui-11.0.1 app/pb_kits/playbook/pb_passphrase/passphrase.rb
playbook_ui-11.0.0 app/pb_kits/playbook/pb_passphrase/passphrase.rb
playbook_ui-11.0.0.pre.alpha.2 app/pb_kits/playbook/pb_passphrase/passphrase.rb
playbook_ui-11.0.0.pre.alpha.1 app/pb_kits/playbook/pb_passphrase/passphrase.rb
playbook_ui-10.26.1 app/pb_kits/playbook/pb_passphrase/passphrase.rb
playbook_ui-10.27.0.pre.lazysizes1 app/pb_kits/playbook/pb_passphrase/passphrase.rb
playbook_ui-10.27.0.pre.datepicker1 app/pb_kits/playbook/pb_passphrase/passphrase.rb
playbook_ui-10.26.0 app/pb_kits/playbook/pb_passphrase/passphrase.rb
playbook_ui-10.26.0.pre.alpha5 app/pb_kits/playbook/pb_passphrase/passphrase.rb