UNPKG

@coveord/plasma-mantine

Version:

A Plasma flavoured Mantine theme

20 lines (19 loc) 650 B
import { jsx as _jsx } from "react/jsx-runtime"; import { factory, PasswordInput as MantinePasswordInput } from '@mantine/core'; import { readOnlyInputStyles } from './ReadOnlyInputStyles'; const ReadOnlyPasswordInput = MantinePasswordInput.withProps({ styles: readOnlyInputStyles }); export const PasswordInput = factory((props, ref)=>{ if (props.readOnly && !props.disabled) { return /*#__PURE__*/ _jsx(ReadOnlyPasswordInput, { ref: ref, ...props }); } return /*#__PURE__*/ _jsx(MantinePasswordInput, { ref: ref, ...props }); }); //# sourceMappingURL=PasswordInput.js.map