UNPKG

@dnb/eufemia

Version:

DNB Eufemia Design System UI Library

39 lines 2.19 kB
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty"; function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } import { stringProperties } from '../String/StringDocs'; export const PasswordProperties = _objectSpread(_objectSpread({}, stringProperties), {}, { pattern: { doc: 'Validation based on regex pattern for the number field e.g. `pattern="w{8}d{4}"`.', type: 'string', status: 'optional' }, size: { doc: 'The sizes you can choose is small (1.5rem), default (2rem), medium (2.5rem) and large (3rem) are supported component sizes. 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' }, innerRef: { 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' } }); export const 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