@udixio/theme 1.0.0-beta.27 → 1.0.0-beta.29

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.
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var awilix = require('awilix');
6
6
  var materialColorUtilities = require('@material/material-color-utilities');
7
- var path = require('path');
7
+ var node_path = require('node:path');
8
8
  var node_fs = require('node:fs');
9
9
  var plugin = require('tailwindcss/plugin');
10
10
 
@@ -1548,14 +1548,14 @@ var ConfigService = /*#__PURE__*/function () {
1548
1548
  }
1549
1549
  };
1550
1550
  _proto.getConfig = function getConfig() {
1551
- var base = path.resolve(this.configPath);
1551
+ var base = node_path.resolve(this.configPath);
1552
1552
  var extensions = ['.js', '.ts', '.jms', '.jcs'];
1553
1553
  var configImport = null;
1554
1554
  for (var _i = 0, _extensions = extensions; _i < _extensions.length; _i++) {
1555
1555
  var ext = _extensions[_i];
1556
- var path$1 = base + ext;
1557
- if (node_fs.existsSync(path$1)) {
1558
- configImport = require(path$1);
1556
+ var path = base + ext;
1557
+ if (node_fs.existsSync(path)) {
1558
+ configImport = require(path);
1559
1559
  break;
1560
1560
  }
1561
1561
  }
@@ -1929,7 +1929,7 @@ function createSubTheme(_ref) {
1929
1929
  colors = _ref.colors;
1930
1930
  var theme = {
1931
1931
  name: isDarkTheme ? name + 'Dark' : name,
1932
- selectors: isDarkTheme && darkMode === 'class' ? ['.dark-mode .theme-' + name, '.dark-mode.theme-' + name, '[data-theme="dark"] .theme-' + name, '[data-theme="dark"].theme-' + name] : ['.theme-' + name],
1932
+ selectors: isDarkTheme && darkMode === 'class' ? ['.dark-mode .theme-' + name, '.dark-mode.theme-' + name, '[data-theme="dark"] .theme-' + name, '[data-theme="dark"].theme-' + name] : ['.theme-' + name, ".theme-" + name + " .light-mode", ".theme-" + name + " [data-theme=\"light\"]", ".light-mode .theme-" + name, ".light-mode.theme-" + name, "[data-theme=\"light\"] .theme-" + name, "[data-theme=\"light\"].theme-" + name],
1933
1933
  mediaQuery: isDarkTheme && darkMode === 'media' ? '@media (prefers-color-scheme: dark)' : undefined,
1934
1934
  extend: {
1935
1935
  colors: colors