@brightlayer-ui/icons-mui 4.4.0-alpha.0 → 4.4.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -1
- package/TwoToneIcon.js +4 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/TwoToneIcon.js
CHANGED
|
@@ -34,8 +34,10 @@ var twoToneColors_1 = require("./twoToneColors");
|
|
|
34
34
|
*/
|
|
35
35
|
var TwoToneIcon = function (_a) {
|
|
36
36
|
var Icon = _a.icon, _b = _a.status, status = _b === void 0 ? 'neutral' : _b, sx = _a.sx, props = __rest(_a, ["icon", "status", "sx"]);
|
|
37
|
-
var mode = (0, styles_1.
|
|
38
|
-
var
|
|
37
|
+
var mode = (0, styles_1.useColorScheme)().mode;
|
|
38
|
+
var themeMode = (0, styles_1.useTheme)().palette.mode;
|
|
39
|
+
var colorMode = mode === 'dark' || mode === 'light' ? mode : themeMode;
|
|
40
|
+
var _c = twoToneColors_1.twoToneColors[status][colorMode], isolated = _c.isolated, container = _c.container;
|
|
39
41
|
return (react_1.default.createElement(Icon, __assign({}, props, { sx: __assign({ color: isolated, '& [fill-opacity], & [opacity]': { fill: container, fillOpacity: 1, opacity: 1 } }, sx) })));
|
|
40
42
|
};
|
|
41
43
|
exports.TwoToneIcon = TwoToneIcon;
|