Sha256: 34d2b88a534461188c29515480dc48d533e0ef478816a2dd6e8bd5e5a9f36e66

Contents?: true

Size: 825 Bytes

Versions: 131

Compression:

Stored size: 825 Bytes

Contents

import React, { useState } from 'react'

import Passphrase from '../_passphrase'

import TextInput from '../../pb_text_input/_text_input'

const PassphraseStrengthChange = (props) => {
  const [input, setInput] = useState('')

  const handleChange = (e) => setInput(e.target.value)

  const [strength, setStrength] = useState(0)
  const handleStrengthChange = (str) => setStrength(str)

  return (
    <>
      <div>
        <Passphrase
            label="Passphrase"
            onChange={handleChange}
            onStrengthChange={handleStrengthChange}
            value={input}
            {...props}
        />
        <TextInput
            disabled
            label="Passphrase Strength"
            readOnly
            value={strength}
        />
      </div>
    </>
  )
}

export default PassphraseStrengthChange

Version data entries

131 entries across 131 versions & 1 rubygems

Version Path
playbook_ui-10.26.0.pre.rc1 app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx
playbook_ui-10.26.0.pre.alpha.sticky1 app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx
playbook_ui-10.26.0.pre.alpha.display1 app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx
playbook_ui-10.26.0.pre.alpha3 app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx
playbook_ui-10.25.1 app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx
playbook_ui-10.26.0.pre.alpha1 app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx
playbook_ui-10.25.0 app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx
playbook_ui-10.25.0.pre.alpha3 app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx
playbook_ui-10.25.0.pre.treeshaking1 app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx
playbook_ui-10.24.0 app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx
playbook_ui-10.24.0.pre.alpha1 app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx
playbook_ui-10.23.0 app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx
playbook_ui-10.23.0.pre.alpha2 app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx
playbook_ui-10.23.0.pre.cachetest app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx
playbook_ui-10.23.0.pre.alpha1 app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx
playbook_ui-10.22.1 app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx
playbook_ui-10.22.0 app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx
playbook_ui-10.21.1.pre.alpha1 app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx
playbook_ui-10.21.0.pre.alpha.lightbox.2 app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx
playbook_ui-10.21.0 app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx