Sha256: 9fb2e476ae00ef8fb57247c53bd9881c50a0b73ae5860d033aacec79fcd95409

Contents?: true

Size: 1.05 KB

Versions: 7

Compression:

Stored size: 1.05 KB

Contents

# frozen_string_literal: true

require_relative '../../components/ccs/password_strength'

module CCS
  module FrontendHelpers
    module CCSFrontend
      # = CCS Password Strength
      #
      # This helper is used for generating the password strength component from the
      # {https://github.com/Crown-Commercial-Service/ccs-frontend-project/tree/main/packages/ccs-frontend/src/ccs/components/contact-us CCS - Components - Password Strength}

      module PasswordStrength
        # Generates the HTML for the CCS Password Strength component
        #
        # @param (see CCS::Components::CCS::PasswordStrength#initialize)
        #
        # @option (see CCS::Components::CCS::PasswordStrength#initialize)
        #
        # @return (see CCS::Components::CCS::PasswordStrength#render)

        def ccs_password_strength(password_id, password_strength_tests, **options)
          Components::CCS::PasswordStrength.new(password_id: password_id, password_strength_tests: password_strength_tests, context: self, **options).render
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ccs-frontend_helpers-2.1.0 lib/ccs/frontend_helpers/ccs_frontend/password_strength.rb
ccs-frontend_helpers-2.0.0 lib/ccs/frontend_helpers/ccs_frontend/password_strength.rb
ccs-frontend_helpers-1.2.0 lib/ccs/frontend_helpers/ccs_frontend/password_strength.rb
ccs-frontend_helpers-1.1.2 lib/ccs/frontend_helpers/ccs_frontend/password_strength.rb
ccs-frontend_helpers-1.1.1 lib/ccs/frontend_helpers/ccs_frontend/password_strength.rb
ccs-frontend_helpers-1.1.0 lib/ccs/frontend_helpers/ccs_frontend/password_strength.rb
ccs-frontend_helpers-1.1.0.beta0 lib/ccs/frontend_helpers/ccs_frontend/password_strength.rb