UNPKG

@brightlayer-ui/react-themes

Version:
67 lines (66 loc) 3.07 kB
"use strict"; var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; Object.defineProperty(exports, "__esModule", { value: true }); var colors_1 = require("@brightlayer-ui/colors"); exports.default = { styleOverrides: { root: function (_a) { var theme = _a.theme; return (__assign({ "& .MuiOutlinedInput-notchedOutline": { borderColor: theme.vars.palette.divider, }, "&.Mui-error.MuiOutlinedInput-colorSecondary.Mui-focused .MuiOutlinedInput-notchedOutline": { borderColor: theme.vars.palette.error.main, }, "&.Mui-error:hover:not(.Mui-focused) .MuiOutlinedInput-notchedOutline": { borderColor: theme.vars.palette.error.dark, }, "&.Mui-disabled .MuiOutlinedInput-notchedOutline": { borderColor: theme.vars.palette.divider, } }, theme.applyStyles("dark", { "&.Mui-error .MuiOutlinedInput-notchedOutline": { borderColor: theme.vars.palette.error.dark, }, "&.Mui-disabled .MuiOutlinedInput-notchedOutline": { borderColor: theme.vars.palette.divider, }, "&.Mui-error.MuiOutlinedInput-colorSecondary.Mui-focused .MuiOutlinedInput-notchedOutline": { borderColor: theme.vars.palette.error.dark, }, "&.Mui-error:hover:not(.Mui-focused) .MuiOutlinedInput-notchedOutline": { borderColor: theme.vars.palette.error.main, }, "&.MuiInputBase-colorPrimary.Mui-focused .MuiOutlinedInput-notchedOutline": { borderColor: colors_1.BLUIColors.blue[500], }, "&.MuiInputBase-colorSecondary.Mui-focused .MuiOutlinedInput-notchedOutline": { borderColor: colors_1.BLUIColors.lightBlue[500], }, "&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline": { borderColor: theme.vars.palette.error.dark, }, }))); }, notchedOutline: function (_a) { var theme = _a.theme; return (__assign({ borderColor: theme.vars.palette.divider }, theme.applyStyles("dark", { borderColor: theme.vars.palette.divider, }))); }, input: function (_a) { var theme = _a.theme; return (__assign({}, theme.applyStyles("dark", { "&:-webkit-autofill": { WebkitBoxShadow: "0 0 0 100px ".concat(colors_1.BLUIColors.black[900], " inset"), }, }))); }, }, };