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.13.0.pre.alpha.fontawesome1 app/pb_kits/playbook/pb_passphrase/passphrase.rb
playbook_ui-11.13.0 app/pb_kits/playbook/pb_passphrase/passphrase.rb
playbook_ui-11.12.1.pre.alpha.charts1 app/pb_kits/playbook/pb_passphrase/passphrase.rb
playbook_ui-11.12.1 app/pb_kits/playbook/pb_passphrase/passphrase.rb
playbook_ui-11.13.0.pre.alpha.fileupload1 app/pb_kits/playbook/pb_passphrase/passphrase.rb
playbook_ui-11.12.0 app/pb_kits/playbook/pb_passphrase/passphrase.rb
playbook_ui-11.11.0.pre.alpha.paginate2 app/pb_kits/playbook/pb_passphrase/passphrase.rb
playbook_ui-11.11.0.pre.alpha.dialog2 app/pb_kits/playbook/pb_passphrase/passphrase.rb
playbook_ui-11.11.0.pre.alpha.paginate1 app/pb_kits/playbook/pb_passphrase/passphrase.rb
playbook_ui-11.11.0.pre.alpha.renderer1 app/pb_kits/playbook/pb_passphrase/passphrase.rb
playbook_ui-11.11.0.pre.alpha.dialog1 app/pb_kits/playbook/pb_passphrase/passphrase.rb
playbook_ui-11.11.0 app/pb_kits/playbook/pb_passphrase/passphrase.rb
playbook_ui-11.10.0.pre.alpha.pre.bold1 app/pb_kits/playbook/pb_passphrase/passphrase.rb
playbook_ui-11.10.0.pre.alpha.pagination1 app/pb_kits/playbook/pb_passphrase/passphrase.rb
playbook_ui-11.10.0 app/pb_kits/playbook/pb_passphrase/passphrase.rb
playbook_ui-11.9.0 app/pb_kits/playbook/pb_passphrase/passphrase.rb
playbook_ui-11.9.0.pre.alpha.fileupload1 app/pb_kits/playbook/pb_passphrase/passphrase.rb
playbook_ui-11.8.1 app/pb_kits/playbook/pb_passphrase/passphrase.rb
playbook_ui-11.8.0 app/pb_kits/playbook/pb_passphrase/passphrase.rb
playbook_ui-11.7.0.pre.alpha.table1 app/pb_kits/playbook/pb_passphrase/passphrase.rb