UNPKG

@dnb/eufemia

Version:

DNB Eufemia Design System UI Library

43 lines (42 loc) 1.56 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PasswordProperties = exports.PasswordEvents = void 0; var _StringDocs = require("../String/StringDocs.js"); const PasswordProperties = exports.PasswordProperties = { ..._StringDocs.StringProperties, pattern: { doc: 'Validation based on regex pattern for the password field e.g. `pattern="w{8}d{4}"`.', type: 'string', status: 'optional' }, size: { doc: 'The sizes you can choose are `small` (1.5rem), `default` (2rem), `medium` (2.5rem) and `large` (3rem). Defaults to `default` / `null`. Also, if you define a number like `size="2"` then it will be forwarded as the input element attribute. Consider rather setting field sizes with [Form.Appearance](/uilib/extensions/forms/Form/Appearance/).', type: ['string', 'number'], status: 'optional' }, ref: { doc: '`ElementRef` passed on to the password `input` element.', type: 'React.RefObject', status: 'optional' }, '[Space](/uilib/layout/space/properties)': { doc: 'Spacing properties like `top` or `bottom` are supported.', type: ['string', 'object'], status: 'optional' } }; const PasswordEvents = exports.PasswordEvents = { onShowPassword: { doc: 'Will be called when the user toggles the password to be visible.', type: 'function', status: 'optional' }, onHidePassword: { doc: 'Will be called when the user toggles the password to be hidden.', type: 'function', status: 'optional' } }; //# sourceMappingURL=PasswordDocs.js.map