UNPKG

@coveord/plasma-mantine

Version:

A Plasma flavoured Mantine theme

29 lines (28 loc) 953 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "PasswordInput", { enumerable: true, get: function() { return PasswordInput; } }); var _object_spread = require("@swc/helpers/_/_object_spread"); var _jsxruntime = require("react/jsx-runtime"); var _core = require("@mantine/core"); var _ReadOnlyInputStyles = require("./ReadOnlyInputStyles"); var ReadOnlyPasswordInput = _core.PasswordInput.withProps({ styles: _ReadOnlyInputStyles.readOnlyInputStyles }); var PasswordInput = (0, _core.factory)(function(props, ref) { if (props.readOnly && !props.disabled) { return /*#__PURE__*/ (0, _jsxruntime.jsx)(ReadOnlyPasswordInput, _object_spread._({ ref: ref }, props)); } return /*#__PURE__*/ (0, _jsxruntime.jsx)(_core.PasswordInput, _object_spread._({ ref: ref }, props)); }); //# sourceMappingURL=PasswordInput.js.map