@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.
@@ -1,3 +1,3 @@
1
- import { eslint_default } from "../eslint-B0bQR0lJ.js";
1
+ import { eslint_default } from "../eslint-BHbhxuPS.js";
2
2
 
3
3
  export { eslint_default as default };
@@ -75,7 +75,6 @@ async function vue() {
75
75
  rules: {
76
76
  "vue/block-order": ["error", { order: [
77
77
  "route",
78
- "i18n",
79
78
  "script",
80
79
  "template",
81
80
  "style"
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
- import { eslint_default } from "./eslint-B0bQR0lJ.js";
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-DsWPiycw.js";
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 };
@@ -1,4 +1,4 @@
1
1
  import "../themes-CL2YKvqM.js";
2
- import { unocss_default } from "../unocss-DsWPiycw.js";
2
+ import { unocss_default } from "../unocss-D2qcMD6U.js";
3
3
 
4
4
  export { unocss_default as default };
@@ -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
- const map = {
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
- const themeColor = Object.assign({}, ...themes);
30
- return themeColor;
28
+ return Object.assign({}, ...themes);
31
29
  }
32
30
  function normalizePreflights(_themes = []) {
33
31
  return { getCSS: () => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pubinfo/config",
3
3
  "type": "module",
4
- "version": "2.0.0-rc.3",
4
+ "version": "2.0.0-rc.4",
5
5
  "exports": {
6
6
  ".": {
7
7
  "types": "./dist/index.d.ts",
@@ -10,7 +10,6 @@ export async function vue(): Promise<TypedFlatConfigItem[]> {
10
10
  'vue/block-order': ['error', {
11
11
  order: [
12
12
  'route',
13
- 'i18n',
14
13
  'script',
15
14
  'template',
16
15
  'style',