@brightlayer-ui/react-themes
Version:
React themes for Brightlayer UI applications
63 lines (62 loc) • 2.63 kB
JavaScript
;
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: {
underline: function (_a) {
var theme = _a.theme;
return (__assign({ "&:before": {
borderBottomColor: theme.vars.palette.divider,
}, "&:not(.Mui-disabled):hover:before": {
borderBottomWidth: 1,
borderBottomColor: colors_1.BLUIColors.black[500],
}, "&.Mui-disabled:before": {
borderBottomColor: theme.vars.palette.divider,
borderBottomStyle: "solid",
}, "&.Mui-error:not(.Mui-focused):after": {
borderBottomWidth: 1,
}, "&.Mui-error:not(.Mui-focused)&:hover:after": {
borderBottomColor: theme.vars.palette.error.dark,
} }, theme.applyStyles("dark", {
"&:before": {
borderBottomColor: theme.vars.palette.divider,
},
"&:not(.Mui-disabled):hover:before": {
borderBottomWidth: 1,
borderBottomColor: colors_1.BLUIColors.black[200],
},
"&:after": {
borderBottomColor: theme.vars.palette.primary.dark,
},
"&.Mui-error.Mui-focused:after": {
borderBottomColor: theme.vars.palette.error.dark,
},
"&.Mui-error:not(.Mui-focused):after": {
borderBottomWidth: 1,
borderBottomColor: theme.vars.palette.error.dark,
},
"&.Mui-error:not(.Mui-focused):hover:after": {
borderBottomColor: theme.vars.palette.error.main,
},
"&.MuiInput-colorSecondary:not(.Mui-error):after": {
borderBottomColor: theme.vars.palette.secondary.dark,
},
"&.Mui-disabled:before": {
borderBottomColor: theme.vars.palette.divider,
borderBottomStyle: "solid",
},
})));
},
},
};