@brightlayer-ui/react-themes
Version:
React themes for Brightlayer UI applications
88 lines (87 loc) • 3.75 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"));
exports.default = {
styleOverrides: {
root: function (_a) {
var theme = _a.theme;
return (__assign(__assign({ height: 6, color: colors_1.BLUIColors.blue[300] }, theme.applyStyles("dark", {
height: 6,
color: colors_1.BLUIColors.blue[300],
})), { "&.Mui-disabled": {
color: theme.vars.palette.primary.main,
opacity: 0.5,
}, "&.Mui-disabled .MuiSlider-track": {
opacity: 0.38,
backgroundColor: theme.vars.palette.primary.main
} }));
},
colorSecondary: function (_a) {
var theme = _a.theme;
return (__assign({ color: theme.vars.palette.secondary.main }, theme.applyStyles("dark", {
color: colors_1.BLUIColors.lightBlue[300],
})));
},
track: function (_a) {
var theme = _a.theme;
return (__assign({ height: 6, backgroundColor: theme.vars.palette.primary.main }, theme.applyStyles("dark", {
height: 6,
})));
},
rail: function (_a) {
var theme = _a.theme;
return (__assign({ height: 4, backgroundColor: colors_1.BLUIColors.black[100] }, theme.applyStyles("dark", {
height: 4,
backgroundColor: colors_1.BLUIColors.black[300],
})));
},
thumb: function (_a) {
var theme = _a.theme;
return (__assign(__assign({ backgroundColor: theme.vars.palette.primary.main }, theme.applyStyles("dark", {
backgroundColor: theme.vars.palette.primary.main,
})), { "&.Mui-disabled": {
backgroundColor: theme.vars.palette.primary.main,
} }));
},
thumbColorSecondary: function (_a) {
var theme = _a.theme;
return (__assign({ backgroundColor: theme.vars.palette.secondary.main }, theme.applyStyles("dark", {
backgroundColor: theme.vars.palette.secondary.main,
})));
},
mark: function (_a) {
var theme = _a.theme;
return (__assign({ backgroundColor: colors_1.BLUIColors.blue[200] }, theme.applyStyles("dark", {
backgroundColor: theme.vars.palette.primary.dark,
})));
},
markActive: function (_a) {
var theme = _a.theme;
return (__assign({ backgroundColor: colors_1.BLUIColors.blue[200] }, theme.applyStyles("dark", {
backgroundColor: theme.vars.palette.primary.dark,
})));
},
valueLabel: function (_a) {
var theme = _a.theme;
return (__assign({ backgroundColor: colors_1.BLUIColors.blue[300] }, theme.applyStyles("dark", {
backgroundColor: colors_1.BLUIColors.blue[300],
color: (0, color_1.default)(colors_1.BLUIColors.darkBlack[900]).alpha(0.87).string(),
})));
},
},
};