@pubinfo/config 2.0.0-beta.3 → 2.0.0-beta.30

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.
Files changed (57) hide show
  1. package/dist/eslint/index.d.ts +1 -1
  2. package/dist/eslint/index.mjs +1 -1
  3. package/dist/index.d.mts +2 -2
  4. package/dist/index.d.ts +2 -2
  5. package/dist/index.mjs +4 -5
  6. package/dist/shared/{config.DPEra-Xx.mjs → config.D4FYsBnQ.mjs} +0 -8
  7. package/dist/stylelint.d.ts +1 -1
  8. package/dist/themes/index.d.mts +2 -8
  9. package/dist/themes/index.d.ts +2 -8
  10. package/dist/themes/index.mjs +610 -3
  11. package/dist/unocss/index.d.mts +8 -0
  12. package/dist/unocss/index.d.ts +8 -0
  13. package/dist/unocss/index.mjs +103 -0
  14. package/package.json +16 -21
  15. package/src/eslint/config/ignores.ts +10 -0
  16. package/src/eslint/config/stylistic.ts +21 -0
  17. package/src/eslint/config/vue.ts +54 -0
  18. package/src/eslint/factory.ts +20 -0
  19. package/src/eslint/globs.ts +86 -0
  20. package/src/eslint/index.ts +3 -0
  21. package/src/index.ts +4 -0
  22. package/src/stylelint.ts +135 -0
  23. package/src/themes/index.ts +3 -0
  24. package/src/themes/system/dark/dark.ts +47 -0
  25. package/src/themes/system/dark/dracula.ts +47 -0
  26. package/src/themes/system/dark/luxury.ts +47 -0
  27. package/src/themes/system/dark/night.ts +47 -0
  28. package/src/themes/system/dark/stone.ts +47 -0
  29. package/src/themes/system/dark/synthwave.ts +47 -0
  30. package/src/themes/system/light/barbie.ts +47 -0
  31. package/src/themes/system/light/classic.ts +47 -0
  32. package/src/themes/system/light/cyberpunk.ts +47 -0
  33. package/src/themes/system/light/light.ts +47 -0
  34. package/src/themes/system/light/naive.ts +47 -0
  35. package/src/themes/system/light/winter.ts +47 -0
  36. package/src/themes/theme.ts +18 -0
  37. package/src/themes/unocss-utils.ts +52 -0
  38. package/src/themes/utils.ts +81 -0
  39. package/src/unocss/index.ts +61 -0
  40. package/src/unocss/presetThemes.ts +57 -0
  41. package/dist/eslint/index.cjs +0 -8
  42. package/dist/eslint/index.d.cts +0 -6
  43. package/dist/index.cjs +0 -21
  44. package/dist/index.d.cts +0 -6
  45. package/dist/shared/config.BDKVPKTO.mjs +0 -635
  46. package/dist/shared/config.CSqBb4YU.d.cts +0 -5
  47. package/dist/shared/config.YMrrkzU5.cjs +0 -641
  48. package/dist/shared/config.wdnazHMp.cjs +0 -147
  49. package/dist/stylelint.cjs +0 -139
  50. package/dist/stylelint.d.cts +0 -106
  51. package/dist/themes/index.cjs +0 -13
  52. package/dist/themes/index.d.cts +0 -33
  53. package/dist/unocss.cjs +0 -59
  54. package/dist/unocss.d.cts +0 -5
  55. package/dist/unocss.d.mts +0 -5
  56. package/dist/unocss.d.ts +0 -5
  57. package/dist/unocss.mjs +0 -57
@@ -3,4 +3,4 @@ import '@antfu/eslint-config';
3
3
 
4
4
 
5
5
 
6
- export = pubinfo;
6
+ export { pubinfo as default };
@@ -1,4 +1,4 @@
1
- import { p as pubinfo } from '../shared/config.DPEra-Xx.mjs';
1
+ import { p as pubinfo } from '../shared/config.D4FYsBnQ.mjs';
2
2
  import '@antfu/eslint-config';
3
3
 
4
4
 
package/dist/index.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  export { p as eslint } from './shared/config.CSqBb4YU.mjs';
2
2
  export { default as stylelint } from './stylelint.mjs';
3
- export { colorScheme, cssVarKey, customColorKey, defineTheme, globalTheme, mergeTheme, presetThemes, themeOptions, themes } from './themes/index.mjs';
4
- export { default as presetPubinfo } from './unocss.mjs';
3
+ export { colorScheme, cssVarKey, customColorKey, defineTheme, getThemes, globalTheme, themeOptions } from './themes/index.mjs';
4
+ export { default as presetPubinfo } from './unocss/index.mjs';
5
5
  import '@antfu/eslint-config';
6
6
  import 'unocss';
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export { p as eslint } from './shared/config.CSqBb4YU.js';
2
2
  export { default as stylelint } from './stylelint.js';
3
- export { colorScheme, cssVarKey, customColorKey, defineTheme, globalTheme, mergeTheme, presetThemes, themeOptions, themes } from './themes/index.js';
4
- export { default as presetPubinfo } from './unocss.js';
3
+ export { colorScheme, cssVarKey, customColorKey, defineTheme, getThemes, globalTheme, themeOptions } from './themes/index.js';
4
+ export { default as presetPubinfo } from './unocss/index.js';
5
5
  import '@antfu/eslint-config';
6
6
  import 'unocss';
package/dist/index.mjs CHANGED
@@ -1,8 +1,7 @@
1
- export { p as eslint } from './shared/config.DPEra-Xx.mjs';
1
+ export { p as eslint } from './shared/config.D4FYsBnQ.mjs';
2
2
  export { default as stylelint } from './stylelint.mjs';
3
- export { c as customColorKey, d as defineTheme, m as mergeTheme, p as presetThemes, t as themes } from './shared/config.BDKVPKTO.mjs';
4
- export { default as presetPubinfo } from './unocss.mjs';
3
+ export { customColorKey, defineTheme, getThemes } from './themes/index.mjs';
4
+ export { default as presetPubinfo } from './unocss/index.mjs';
5
5
  import '@antfu/eslint-config';
6
- import '@unocss/core';
7
- import '@unocss/preset-mini/utils';
8
6
  import 'unocss';
7
+ import '@unocss/core';
@@ -60,14 +60,6 @@ async function stylistic() {
60
60
  rules: {
61
61
  "style/semi": ["error", "always"]
62
62
  }
63
- },
64
- {
65
- // files: [
66
- // '**/plop-templates/**/*.js',
67
- // ],
68
- rules: {
69
- "style/arrow-parens": ["off"]
70
- }
71
63
  }
72
64
  ];
73
65
  }
@@ -103,4 +103,4 @@ declare const _default: {
103
103
  ignoreFiles: string[];
104
104
  };
105
105
 
106
- export = _default;
106
+ export { _default as default };
@@ -1,7 +1,3 @@
1
- import * as unocss from 'unocss';
2
-
3
- declare const presetThemes: unocss.PresetFactory<object, undefined>;
4
-
5
1
  type CSSColorValue = string;
6
2
  type manColor = 'bg' | 'container-bg' | 'border-color';
7
3
  type headerColor = 'header-bg' | 'header-color' | 'header-menu-color' | 'header-menu-hover-bg' | 'header-menu-hover-color' | 'header-menu-active-bg' | 'header-menu-active-color';
@@ -25,9 +21,7 @@ declare const customColorKey: readonly ["--ui-primary", "--ui-text"];
25
21
  interface globalTheme {
26
22
  [key: string]: colorScheme;
27
23
  }
28
- declare function mergeTheme(themes: globalTheme[]): globalTheme;
24
+ declare function getThemes(): globalTheme;
29
25
  declare function defineTheme(theme: themeOptions): globalTheme;
30
26
 
31
- declare const themes: globalTheme;
32
-
33
- export { type colorScheme, type cssVarKey, customColorKey, defineTheme, type globalTheme, mergeTheme, presetThemes, type themeOptions, themes };
27
+ export { type colorScheme, type cssVarKey, customColorKey, defineTheme, getThemes, type globalTheme, type themeOptions };
@@ -1,7 +1,3 @@
1
- import * as unocss from 'unocss';
2
-
3
- declare const presetThemes: unocss.PresetFactory<object, undefined>;
4
-
5
1
  type CSSColorValue = string;
6
2
  type manColor = 'bg' | 'container-bg' | 'border-color';
7
3
  type headerColor = 'header-bg' | 'header-color' | 'header-menu-color' | 'header-menu-hover-bg' | 'header-menu-hover-color' | 'header-menu-active-bg' | 'header-menu-active-color';
@@ -25,9 +21,7 @@ declare const customColorKey: readonly ["--ui-primary", "--ui-text"];
25
21
  interface globalTheme {
26
22
  [key: string]: colorScheme;
27
23
  }
28
- declare function mergeTheme(themes: globalTheme[]): globalTheme;
24
+ declare function getThemes(): globalTheme;
29
25
  declare function defineTheme(theme: themeOptions): globalTheme;
30
26
 
31
- declare const themes: globalTheme;
32
-
33
- export { type colorScheme, type cssVarKey, customColorKey, defineTheme, type globalTheme, mergeTheme, presetThemes, type themeOptions, themes };
27
+ export { type colorScheme, type cssVarKey, customColorKey, defineTheme, getThemes, type globalTheme, type themeOptions };