@coveord/plasma-mantine
Version:
A Plasma flavoured Mantine theme
20 lines (19 loc) • 594 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { factory, Select as MantineSelect } from '@mantine/core';
import { readOnlyInputStyles } from './ReadOnlyInputStyles';
const ReadOnlySelect = MantineSelect.withProps({
styles: readOnlyInputStyles
});
export const Select = factory((props, ref)=>{
if (props.readOnly && !props.disabled) {
return /*#__PURE__*/ _jsx(ReadOnlySelect, {
ref: ref,
...props
});
}
return /*#__PURE__*/ _jsx(MantineSelect, {
ref: ref,
...props
});
});
//# sourceMappingURL=Select.js.map