@brightlayer-ui/react-themes
Version:
React themes for Brightlayer UI applications
69 lines (68 loc) • 2.96 kB
JavaScript
"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);
};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var colors_1 = require("@brightlayer-ui/colors");
var color_1 = __importDefault(require("color"));
var WhiteText = colors_1.BLUIColors.white[50];
exports.default = {
styleOverrides: {
root: function (_a) {
var theme = _a.theme;
return (__assign({ textTransform: "none", backgroundColor: theme.vars.palette.background.paper, color: theme.vars.palette.text.primary, "&:hover": {
backgroundColor: (0, color_1.default)(colors_1.BLUIColors.black[500])
.alpha(0.05)
.string(),
}, "&.Mui-disabled": {
backgroundColor: theme.vars.palette.background.paper,
border: "1px solid ".concat((0, color_1.default)(colors_1.BLUIColors.black[500])
.alpha(0.12)
.string()),
color: theme.vars.palette.action.disabled,
} }, theme.applyStyles("dark", {
textTransform: "none",
backgroundColor: colors_1.BLUIColors.black[500],
color: WhiteText,
"&:hover": {
backgroundColor: colors_1.BLUIColors.black[300],
},
})));
},
primary: function (_a) {
var theme = _a.theme;
return (__assign({ backgroundColor: theme.vars.palette.primary.main, color: WhiteText, "&:hover": {
backgroundColor: colors_1.BLUIColors.blue[300],
} }, theme.applyStyles("dark", {
backgroundColor: theme.vars.palette.primary.dark,
color: WhiteText,
"&:hover": {
backgroundColor: colors_1.BLUIColors.blue[300],
},
})));
},
secondary: function (_a) {
var theme = _a.theme;
return (__assign({ backgroundColor: theme.vars.palette.secondary.main, color: WhiteText, "&:hover": {
backgroundColor: colors_1.BLUIColors.lightBlue[300],
} }, theme.applyStyles("dark", {
backgroundColor: theme.vars.palette.secondary.dark,
color: WhiteText,
"&:hover": {
backgroundColor: colors_1.BLUIColors.lightBlue[300],
},
})));
},
},
};