@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 CHANGED
@@ -1,6 +1,10 @@
1
1
  # Changelog
2
2
 
3
- ## v4.4.0-alpha.0 (September 18, 2026)
3
+ ## v4.4.0 (Unreleased)
4
+
5
+ ### Fixed
6
+
7
+ - Updated `TwoToneIcon` to support MUI color-scheme mode with a fallback to the theme palette mode.
4
8
 
5
9
  ### Added
6
10
 
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.useTheme)().palette.mode;
38
- var _c = twoToneColors_1.twoToneColors[status][mode], isolated = _c.isolated, container = _c.container;
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightlayer-ui/icons-mui",
3
- "version": "4.4.0-alpha.0",
3
+ "version": "4.4.0-alpha.1",
4
4
  "description": "Brightlayer UI icons for MUI",
5
5
  "main": "./index.js",
6
6
  "repository": {