@pubinfo/config 2.0.0-rc.3 → 2.0.0-rc.4
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/eslint/index.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { eslint_default } from "./eslint-
|
|
1
|
+
import { eslint_default } from "./eslint-BHbhxuPS.js";
|
|
2
2
|
import { stylelint_default } from "./stylelint-QHUuft1u.js";
|
|
3
3
|
import { customColorKey, defineTheme, getThemes } from "./themes-CL2YKvqM.js";
|
|
4
|
-
import { unocss_default } from "./unocss-
|
|
4
|
+
import { unocss_default } from "./unocss-D2qcMD6U.js";
|
|
5
5
|
|
|
6
6
|
export { customColorKey, defineTheme, eslint_default as eslint, getThemes, unocss_default as presetPubinfo, stylelint_default as stylelint };
|
package/dist/unocss/index.js
CHANGED
|
@@ -13,7 +13,7 @@ function createCssVar(key, themeName) {
|
|
|
13
13
|
function createSuffixScheme(preSuffix, suffixMap = suffix) {
|
|
14
14
|
return suffixMap.reduce((acc, suffix$1) => acc.concat(suffix$1.map((s) => `${preSuffix}${s}`).join(",")), []);
|
|
15
15
|
}
|
|
16
|
-
|
|
16
|
+
return {
|
|
17
17
|
light(key$1) {
|
|
18
18
|
const preSuffix = `[data-theme="${key$1}"]`;
|
|
19
19
|
return createSuffixScheme(preSuffix);
|
|
@@ -22,12 +22,10 @@ function createCssVar(key, themeName) {
|
|
|
22
22
|
const preSuffix = `html.dark [data-theme="${key$1}"]`;
|
|
23
23
|
return createSuffixScheme(preSuffix);
|
|
24
24
|
}
|
|
25
|
-
};
|
|
26
|
-
return map[key](themeName);
|
|
25
|
+
}[key](themeName);
|
|
27
26
|
}
|
|
28
27
|
function mergeTheme(themes) {
|
|
29
|
-
|
|
30
|
-
return themeColor;
|
|
28
|
+
return Object.assign({}, ...themes);
|
|
31
29
|
}
|
|
32
30
|
function normalizePreflights(_themes = []) {
|
|
33
31
|
return { getCSS: () => {
|
package/package.json
CHANGED