@udixio/theme 1.0.0-beta.26 → 1.0.0-beta.28
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/dist/theme.cjs.development.js +2 -1
- package/dist/theme.cjs.development.js.map +1 -1
- package/dist/theme.cjs.production.min.js +1 -1
- package/dist/theme.cjs.production.min.js.map +1 -1
- package/dist/theme.esm.js +2 -1
- package/dist/theme.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/plugin/pluginAbstract.ts +1 -0
- package/src/plugins/tailwind/plugins-tailwind/themer.ts +9 -1
package/dist/theme.esm.js
CHANGED
|
@@ -1645,6 +1645,7 @@ var PluginAbstract = /*#__PURE__*/function () {
|
|
|
1645
1645
|
var _proto = PluginAbstract.prototype;
|
|
1646
1646
|
_proto.init = function init(appService) {
|
|
1647
1647
|
this.pluginInstance = new this.pluginClass(appService, this.options);
|
|
1648
|
+
this.pluginInstance.onInit();
|
|
1648
1649
|
return this;
|
|
1649
1650
|
};
|
|
1650
1651
|
_proto.getInstance = function getInstance() {
|
|
@@ -1924,7 +1925,7 @@ function createSubTheme(_ref) {
|
|
|
1924
1925
|
colors = _ref.colors;
|
|
1925
1926
|
var theme = {
|
|
1926
1927
|
name: isDarkTheme ? name + 'Dark' : name,
|
|
1927
|
-
selectors: isDarkTheme && darkMode === 'class' ? ['.dark-mode .theme-' + name, '.dark-mode.theme-' + name, '[data-theme="dark"] .theme-' + name, '[data-theme="dark"].theme-' + name] : ['.theme-' + name],
|
|
1928
|
+
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],
|
|
1928
1929
|
mediaQuery: isDarkTheme && darkMode === 'media' ? '@media (prefers-color-scheme: dark)' : undefined,
|
|
1929
1930
|
extend: {
|
|
1930
1931
|
colors: colors
|