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-9.14.1.alpha.radio.alignment app/pb_kits/playbook/pb_passphrase/passphrase.rb
playbook_ui-9.14.1.alpha.highcharts9 app/pb_kits/playbook/pb_passphrase/passphrase.rb
playbook_ui-9.14.1 app/pb_kits/playbook/pb_passphrase/passphrase.rb
playbook_ui-9.13.0 app/pb_kits/playbook/pb_passphrase/passphrase.rb
playbook_ui-9.12.0 app/pb_kits/playbook/pb_passphrase/passphrase.rb
playbook_ui-9.12.0.pre.text.addon app/pb_kits/playbook/pb_passphrase/passphrase.rb
playbook_ui-9.11.0 app/pb_kits/playbook/pb_passphrase/passphrase.rb
playbook_ui-9.10.0 app/pb_kits/playbook/pb_passphrase/passphrase.rb
playbook_ui-9.10.0.pre.date.time.stacked.1 app/pb_kits/playbook/pb_passphrase/passphrase.rb
playbook_ui-9.10.0.pre.alpha2 app/pb_kits/playbook/pb_passphrase/passphrase.rb
playbook_ui-9.10.0.pre.alpha1 app/pb_kits/playbook/pb_passphrase/passphrase.rb
playbook_ui-9.9.0.alpha.inline1 app/pb_kits/playbook/pb_passphrase/passphrase.rb
playbook_ui-9.9.0 app/pb_kits/playbook/pb_passphrase/passphrase.rb