@shell-shock/plugin-theme 0.4.35 → 0.4.37

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 (111) hide show
  1. package/dist/ansi-utils-BBqikbV-.d.mts +80 -0
  2. package/dist/ansi-utils-BBqikbV-.d.mts.map +1 -0
  3. package/dist/ansi-utils-CY_ghxdQ.d.cts +80 -0
  4. package/dist/ansi-utils-CY_ghxdQ.d.cts.map +1 -0
  5. package/dist/constants-Bs8URqjD.d.cts +12 -0
  6. package/dist/constants-Bs8URqjD.d.cts.map +1 -0
  7. package/dist/constants-Bs8URqjD.d.mts +12 -0
  8. package/dist/constants-Bs8URqjD.d.mts.map +1 -0
  9. package/dist/contexts/theme.cjs +2 -2
  10. package/dist/contexts/theme.d.cts +2 -3
  11. package/dist/contexts/theme.d.cts.map +1 -1
  12. package/dist/contexts/theme.d.mts +2 -3
  13. package/dist/contexts/theme.mjs +1 -1
  14. package/dist/helpers/ansi-utils.d.cts +2 -81
  15. package/dist/helpers/ansi-utils.d.mts +2 -81
  16. package/dist/helpers/border-styles.cjs +10 -13
  17. package/dist/helpers/border-styles.d.cts +1 -2
  18. package/dist/helpers/border-styles.d.cts.map +1 -1
  19. package/dist/helpers/border-styles.d.mts +1 -2
  20. package/dist/helpers/border-styles.mjs +10 -12
  21. package/dist/helpers/constants.cjs +0 -1
  22. package/dist/helpers/constants.d.cts +2 -12
  23. package/dist/helpers/constants.d.mts +2 -12
  24. package/dist/helpers/index.d.cts +2 -2
  25. package/dist/helpers/index.d.mts +2 -2
  26. package/dist/helpers/merge.d.cts +2 -3
  27. package/dist/helpers/merge.d.cts.map +1 -1
  28. package/dist/helpers/merge.d.mts +2 -3
  29. package/dist/helpers/spinners.cjs +0 -1
  30. package/dist/helpers/spinners.d.cts +2 -735
  31. package/dist/helpers/spinners.d.mts +2 -735
  32. package/dist/index.cjs +2292 -51
  33. package/dist/index.d.cts +3 -3
  34. package/dist/index.d.cts.map +1 -1
  35. package/dist/index.d.mts +3 -3
  36. package/dist/index.mjs +2268 -52
  37. package/dist/plugin-D_4VGrBE.d.cts +27 -0
  38. package/dist/plugin-D_4VGrBE.d.cts.map +1 -0
  39. package/dist/plugin-liH648jU.d.mts +27 -0
  40. package/dist/plugin-liH648jU.d.mts.map +1 -0
  41. package/dist/spinners-BB6Z_PUM.d.cts +735 -0
  42. package/dist/spinners-BB6Z_PUM.d.cts.map +1 -0
  43. package/dist/spinners-BB6Z_PUM.d.mts +735 -0
  44. package/dist/spinners-BB6Z_PUM.d.mts.map +1 -0
  45. package/dist/theme-B_q1llDJ.d.mts +417 -0
  46. package/dist/theme-B_q1llDJ.d.mts.map +1 -0
  47. package/dist/theme-C68ywMEZ.d.cts +417 -0
  48. package/dist/theme-C68ywMEZ.d.cts.map +1 -0
  49. package/dist/types/index.cjs +2 -0
  50. package/dist/types/index.d.cts +2 -2
  51. package/dist/types/index.d.mts +2 -2
  52. package/dist/types/index.mjs +3 -0
  53. package/dist/types/plugin.d.cts +2 -29
  54. package/dist/types/plugin.d.mts +2 -28
  55. package/dist/types/theme.d.cts +2 -418
  56. package/dist/types/theme.d.mts +2 -418
  57. package/package.json +16 -14
  58. package/dist/_virtual/_rolldown/runtime.cjs +0 -29
  59. package/dist/_virtual/_rolldown/runtime.mjs +0 -8
  60. package/dist/core/dist/types/command.d.cts +0 -264
  61. package/dist/core/dist/types/command.d.cts.map +0 -1
  62. package/dist/core/dist/types/command.d.mts +0 -8
  63. package/dist/core/dist/types/command.d.mts.map +0 -1
  64. package/dist/core/dist/types/config.d.cts +0 -120
  65. package/dist/core/dist/types/config.d.cts.map +0 -1
  66. package/dist/core/dist/types/config.d.mts +0 -10
  67. package/dist/core/dist/types/config.d.mts.map +0 -1
  68. package/dist/core/dist/types/context.d.cts +0 -29
  69. package/dist/core/dist/types/context.d.cts.map +0 -1
  70. package/dist/core/dist/types/context.d.mts +0 -10
  71. package/dist/core/dist/types/context.d.mts.map +0 -1
  72. package/dist/core/dist/types/env.d.cts +0 -1
  73. package/dist/core/dist/types/env.d.mts +0 -8
  74. package/dist/core/dist/types/env.d.mts.map +0 -1
  75. package/dist/core/dist/types/index.d.cts +0 -3
  76. package/dist/core/dist/types/index.d.mts +0 -12
  77. package/dist/core/dist/types/index.d.mts.map +0 -1
  78. package/dist/helpers/ansi-utils.d.cts.map +0 -1
  79. package/dist/helpers/ansi-utils.d.mts.map +0 -1
  80. package/dist/helpers/constants.d.cts.map +0 -1
  81. package/dist/helpers/constants.d.mts.map +0 -1
  82. package/dist/helpers/spinners.d.cts.map +0 -1
  83. package/dist/helpers/spinners.d.mts.map +0 -1
  84. package/dist/style-dictionary/border-styles.cjs +0 -284
  85. package/dist/style-dictionary/border-styles.mjs +0 -285
  86. package/dist/style-dictionary/border-styles.mjs.map +0 -1
  87. package/dist/style-dictionary/colors.cjs +0 -1390
  88. package/dist/style-dictionary/colors.mjs +0 -1391
  89. package/dist/style-dictionary/colors.mjs.map +0 -1
  90. package/dist/style-dictionary/icons.cjs +0 -168
  91. package/dist/style-dictionary/icons.mjs +0 -169
  92. package/dist/style-dictionary/icons.mjs.map +0 -1
  93. package/dist/style-dictionary/labels.cjs +0 -150
  94. package/dist/style-dictionary/labels.mjs +0 -151
  95. package/dist/style-dictionary/labels.mjs.map +0 -1
  96. package/dist/style-dictionary/padding.cjs +0 -37
  97. package/dist/style-dictionary/padding.mjs +0 -38
  98. package/dist/style-dictionary/padding.mjs.map +0 -1
  99. package/dist/style-dictionary/settings.cjs +0 -25
  100. package/dist/style-dictionary/settings.mjs +0 -26
  101. package/dist/style-dictionary/settings.mjs.map +0 -1
  102. package/dist/style-dictionary/spinners.cjs +0 -30
  103. package/dist/style-dictionary/spinners.mjs +0 -31
  104. package/dist/style-dictionary/spinners.mjs.map +0 -1
  105. package/dist/themes/default.cjs +0 -156
  106. package/dist/themes/default.mjs +0 -156
  107. package/dist/themes/default.mjs.map +0 -1
  108. package/dist/types/plugin.d.cts.map +0 -1
  109. package/dist/types/plugin.d.mts.map +0 -1
  110. package/dist/types/theme.d.cts.map +0 -1
  111. package/dist/types/theme.d.mts.map +0 -1
@@ -0,0 +1,80 @@
1
+ import { B as ThemeColorsResolvedConfig } from "./theme-B_q1llDJ.mjs";
2
+ //#region src/helpers/ansi-utils.d.ts
3
+ declare const modifiers: {
4
+ reset: number[];
5
+ bold: number[];
6
+ dim: number[];
7
+ italic: number[];
8
+ underline: number[];
9
+ overline: number[];
10
+ inverse: number[];
11
+ hidden: number[];
12
+ strikethrough: number[];
13
+ };
14
+ declare const modifierKeys: string[];
15
+ declare const colors: {
16
+ black: number[];
17
+ red: number[];
18
+ green: number[];
19
+ yellow: number[];
20
+ blue: number[];
21
+ magenta: number[];
22
+ cyan: number[];
23
+ white: number[];
24
+ blackBright: number[];
25
+ gray: number[];
26
+ grey: number[];
27
+ redBright: number[];
28
+ greenBright: number[];
29
+ yellowBright: number[];
30
+ blueBright: number[];
31
+ magentaBright: number[];
32
+ cyanBright: number[];
33
+ whiteBright: number[];
34
+ };
35
+ declare const colorKeys: string[];
36
+ declare const bgColors: {
37
+ bgBlack: number[];
38
+ bgRed: number[];
39
+ bgGreen: number[];
40
+ bgYellow: number[];
41
+ bgBlue: number[];
42
+ bgMagenta: number[];
43
+ bgCyan: number[];
44
+ bgWhite: number[];
45
+ bgBlackBright: number[];
46
+ bgGray: number[];
47
+ bgGrey: number[];
48
+ bgRedBright: number[];
49
+ bgGreenBright: number[];
50
+ bgYellowBright: number[];
51
+ bgBlueBright: number[];
52
+ bgMagentaBright: number[];
53
+ bgCyanBright: number[];
54
+ bgWhiteBright: number[];
55
+ };
56
+ declare const bgColorKeys: string[];
57
+ interface AnsiStyleWrapper {
58
+ open: string;
59
+ close: string;
60
+ }
61
+ interface AnsiColorWrappers extends AnsiStyleWrapper {
62
+ background: AnsiStyleWrapper;
63
+ }
64
+ type BaseStyles = Record<"ansi16" | "ansi256" | "ansi16m", { [modifier in keyof typeof modifiers]: AnsiStyleWrapper; }>;
65
+ type BaseColors = Record<"ansi16" | "ansi256" | "ansi16m", { [color in keyof typeof colors]: AnsiColorWrappers; }>;
66
+ type ThemeAnsiStylesFormat<T> = T extends object ? { [K in keyof T]: ThemeAnsiStylesFormat<T[K]>; } : AnsiColorWrappers;
67
+ type ThemeAnsiStyles = Record<"ansi16" | "ansi256" | "ansi16m", {
68
+ theme: ThemeAnsiStylesFormat<ThemeColorsResolvedConfig>;
69
+ }>;
70
+ type AnsiStyles = BaseStyles & BaseColors & ThemeAnsiStyles;
71
+ /**
72
+ * Generates ANSI styles based on the provided context.
73
+ *
74
+ * @param theme - The theme colors configuration.
75
+ * @returns The generated ANSI styles.
76
+ */
77
+ declare function getAnsiStyles(theme: ThemeColorsResolvedConfig): AnsiStyles;
78
+ //#endregion
79
+ export { BaseStyles as a, bgColors as c, getAnsiStyles as d, modifierKeys as f, BaseColors as i, colorKeys as l, AnsiStyleWrapper as n, ThemeAnsiStyles as o, modifiers as p, AnsiStyles as r, bgColorKeys as s, AnsiColorWrappers as t, colors as u };
80
+ //# sourceMappingURL=ansi-utils-BBqikbV-.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ansi-utils-BBqikbV-.d.mts","names":[],"sources":["../src/helpers/ansi-utils.ts"],"mappings":""}
@@ -0,0 +1,80 @@
1
+ import { B as ThemeColorsResolvedConfig } from "./theme-C68ywMEZ.cjs";
2
+ //#region src/helpers/ansi-utils.d.ts
3
+ declare const modifiers: {
4
+ reset: number[];
5
+ bold: number[];
6
+ dim: number[];
7
+ italic: number[];
8
+ underline: number[];
9
+ overline: number[];
10
+ inverse: number[];
11
+ hidden: number[];
12
+ strikethrough: number[];
13
+ };
14
+ declare const modifierKeys: string[];
15
+ declare const colors: {
16
+ black: number[];
17
+ red: number[];
18
+ green: number[];
19
+ yellow: number[];
20
+ blue: number[];
21
+ magenta: number[];
22
+ cyan: number[];
23
+ white: number[];
24
+ blackBright: number[];
25
+ gray: number[];
26
+ grey: number[];
27
+ redBright: number[];
28
+ greenBright: number[];
29
+ yellowBright: number[];
30
+ blueBright: number[];
31
+ magentaBright: number[];
32
+ cyanBright: number[];
33
+ whiteBright: number[];
34
+ };
35
+ declare const colorKeys: string[];
36
+ declare const bgColors: {
37
+ bgBlack: number[];
38
+ bgRed: number[];
39
+ bgGreen: number[];
40
+ bgYellow: number[];
41
+ bgBlue: number[];
42
+ bgMagenta: number[];
43
+ bgCyan: number[];
44
+ bgWhite: number[];
45
+ bgBlackBright: number[];
46
+ bgGray: number[];
47
+ bgGrey: number[];
48
+ bgRedBright: number[];
49
+ bgGreenBright: number[];
50
+ bgYellowBright: number[];
51
+ bgBlueBright: number[];
52
+ bgMagentaBright: number[];
53
+ bgCyanBright: number[];
54
+ bgWhiteBright: number[];
55
+ };
56
+ declare const bgColorKeys: string[];
57
+ interface AnsiStyleWrapper {
58
+ open: string;
59
+ close: string;
60
+ }
61
+ interface AnsiColorWrappers extends AnsiStyleWrapper {
62
+ background: AnsiStyleWrapper;
63
+ }
64
+ type BaseStyles = Record<"ansi16" | "ansi256" | "ansi16m", { [modifier in keyof typeof modifiers]: AnsiStyleWrapper; }>;
65
+ type BaseColors = Record<"ansi16" | "ansi256" | "ansi16m", { [color in keyof typeof colors]: AnsiColorWrappers; }>;
66
+ type ThemeAnsiStylesFormat<T> = T extends object ? { [K in keyof T]: ThemeAnsiStylesFormat<T[K]>; } : AnsiColorWrappers;
67
+ type ThemeAnsiStyles = Record<"ansi16" | "ansi256" | "ansi16m", {
68
+ theme: ThemeAnsiStylesFormat<ThemeColorsResolvedConfig>;
69
+ }>;
70
+ type AnsiStyles = BaseStyles & BaseColors & ThemeAnsiStyles;
71
+ /**
72
+ * Generates ANSI styles based on the provided context.
73
+ *
74
+ * @param theme - The theme colors configuration.
75
+ * @returns The generated ANSI styles.
76
+ */
77
+ declare function getAnsiStyles(theme: ThemeColorsResolvedConfig): AnsiStyles;
78
+ //#endregion
79
+ export { BaseStyles as a, bgColors as c, getAnsiStyles as d, modifierKeys as f, BaseColors as i, colorKeys as l, AnsiStyleWrapper as n, ThemeAnsiStyles as o, modifiers as p, AnsiStyles as r, bgColorKeys as s, AnsiColorWrappers as t, colors as u };
80
+ //# sourceMappingURL=ansi-utils-CY_ghxdQ.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ansi-utils-CY_ghxdQ.d.cts","names":[],"sources":["../src/helpers/ansi-utils.ts"],"mappings":";;cAwBa;;;;;;;;;;;cAYA;cAEA;;;;;;;;;;;;;;;;;;;;cAuBA;cAEA;;;;;;;;;;;;;;;;;;;;cAuBA;UAEI;EACf;EACA;;UAGe,0BAA0B;EACzC,YAAY;;KAwBF,aAAa,4CAGpB,yBAAyB,YAAY;KAI9B,aAAa,4CAGpB,sBAAsB,SAAS;KAI/B,sBAAsB,KAAK,sBAEzB,WAAW,IAAI,sBAAsB,EAAE,SAE1C;KAEQ,kBAAkB;EAE1B,OAAO,sBAAsB;;KAGrB,aAAa,aAAa,aAAa;;;;;;;iBAu8CnC,cAAc,OAAO,4BAA4B"}
@@ -0,0 +1,12 @@
1
+ //#region src/helpers/constants.d.ts
2
+ declare const DEFAULT_TAG_COLORS: {
3
+ readonly foreground: "#394447";
4
+ readonly background: "#f9fbfb";
5
+ };
6
+ declare const THEME_MESSAGE_VARIANTS: readonly ["help", "success", "info", "debug", "warning", "danger", "error"];
7
+ declare const THEME_COLOR_VARIANTS: readonly ["primary", "secondary", "tertiary"];
8
+ declare const THEME_COLOR_SUBITEMS: readonly ["primary", "secondary", "tertiary"];
9
+ declare const THEME_COLOR_BODY_SUBITEMS: readonly ["link", "primary", "secondary", "tertiary"];
10
+ //#endregion
11
+ export { THEME_MESSAGE_VARIANTS as a, THEME_COLOR_VARIANTS as i, THEME_COLOR_BODY_SUBITEMS as n, THEME_COLOR_SUBITEMS as r, DEFAULT_TAG_COLORS as t };
12
+ //# sourceMappingURL=constants-Bs8URqjD.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants-Bs8URqjD.d.cts","names":[],"sources":["../src/helpers/constants.ts"],"mappings":";cAkBa;WAAA;WAAA;;cAKA;cAUA;cAMA;cAMA"}
@@ -0,0 +1,12 @@
1
+ //#region src/helpers/constants.d.ts
2
+ declare const DEFAULT_TAG_COLORS: {
3
+ readonly foreground: "#394447";
4
+ readonly background: "#f9fbfb";
5
+ };
6
+ declare const THEME_MESSAGE_VARIANTS: readonly ["help", "success", "info", "debug", "warning", "danger", "error"];
7
+ declare const THEME_COLOR_VARIANTS: readonly ["primary", "secondary", "tertiary"];
8
+ declare const THEME_COLOR_SUBITEMS: readonly ["primary", "secondary", "tertiary"];
9
+ declare const THEME_COLOR_BODY_SUBITEMS: readonly ["link", "primary", "secondary", "tertiary"];
10
+ //#endregion
11
+ export { THEME_MESSAGE_VARIANTS as a, THEME_COLOR_VARIANTS as i, THEME_COLOR_BODY_SUBITEMS as n, THEME_COLOR_SUBITEMS as r, DEFAULT_TAG_COLORS as t };
12
+ //# sourceMappingURL=constants-Bs8URqjD.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants-Bs8URqjD.d.mts","names":[],"sources":["../src/helpers/constants.ts"],"mappings":""}
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
  const require_helpers_ansi_utils = require('../helpers/ansi-utils.cjs');
3
3
  let _alloy_js_core = require("@alloy-js/core");
4
- let _powerlines_plugin_alloy_core_contexts_context = require("@powerlines/plugin-alloy/core/contexts/context");
4
+ let _shell_shock_core_contexts_power_plant = require("@shell-shock/core/contexts/power-plant");
5
5
 
6
6
  //#region src/contexts/theme.ts
7
7
  /**
@@ -10,7 +10,7 @@ let _powerlines_plugin_alloy_core_contexts_context = require("@powerlines/plugin
10
10
  * @returns The resolved theme configuration.
11
11
  */
12
12
  function useTheme() {
13
- const context = (0, _powerlines_plugin_alloy_core_contexts_context.usePowerlines)();
13
+ const context = (0, _shell_shock_core_contexts_power_plant.usePowerlines)();
14
14
  return (0, _alloy_js_core.computed)(() => context.theme).value;
15
15
  }
16
16
  /**
@@ -1,6 +1,5 @@
1
- import { ThemeResolvedConfig } from "../types/theme.cjs";
2
- import { AnsiStyles } from "../helpers/ansi-utils.cjs";
3
-
1
+ import { at as ThemeResolvedConfig } from "../theme-C68ywMEZ.cjs";
2
+ import { r as AnsiStyles } from "../ansi-utils-CY_ghxdQ.cjs";
4
3
  //#region src/contexts/theme.d.ts
5
4
  /**
6
5
  * Hook to access the current application's theme configuration.
@@ -1 +1 @@
1
- {"version":3,"file":"theme.d.cts","names":[],"sources":["../../src/contexts/theme.ts"],"mappings":";;;;;;AA8BA;;;iBAAgB,QAAA,IAAY,mBAAmB;AAAA;AAY/C;;;;AAZ+C,iBAY/B,SAAA,IAAa,UAAU"}
1
+ {"version":3,"file":"theme.d.cts","names":[],"sources":["../../src/contexts/theme.ts"],"mappings":";;;;;;;;iBA8BgB,YAAY;;;;;;iBAYZ,aAAa"}
@@ -1,6 +1,5 @@
1
- import { ThemeResolvedConfig } from "../types/theme.mjs";
2
- import { AnsiStyles } from "../helpers/ansi-utils.mjs";
3
-
1
+ import { at as ThemeResolvedConfig } from "../theme-B_q1llDJ.mjs";
2
+ import { r as AnsiStyles } from "../ansi-utils-BBqikbV-.mjs";
4
3
  //#region src/contexts/theme.d.ts
5
4
  /**
6
5
  * Hook to access the current application's theme configuration.
@@ -1,6 +1,6 @@
1
1
  import { getAnsiStyles } from "../helpers/ansi-utils.mjs";
2
2
  import { computed } from "@alloy-js/core";
3
- import { usePowerlines } from "@powerlines/plugin-alloy/core/contexts/context";
3
+ import { usePowerlines } from "@shell-shock/core/contexts/power-plant";
4
4
 
5
5
  //#region src/contexts/theme.ts
6
6
  /**
@@ -1,81 +1,2 @@
1
- import { ThemeColorsResolvedConfig } from "../types/theme.cjs";
2
-
3
- //#region src/helpers/ansi-utils.d.ts
4
- declare const modifiers: {
5
- reset: number[];
6
- bold: number[];
7
- dim: number[];
8
- italic: number[];
9
- underline: number[];
10
- overline: number[];
11
- inverse: number[];
12
- hidden: number[];
13
- strikethrough: number[];
14
- };
15
- declare const modifierKeys: string[];
16
- declare const colors: {
17
- black: number[];
18
- red: number[];
19
- green: number[];
20
- yellow: number[];
21
- blue: number[];
22
- magenta: number[];
23
- cyan: number[];
24
- white: number[];
25
- blackBright: number[];
26
- gray: number[];
27
- grey: number[];
28
- redBright: number[];
29
- greenBright: number[];
30
- yellowBright: number[];
31
- blueBright: number[];
32
- magentaBright: number[];
33
- cyanBright: number[];
34
- whiteBright: number[];
35
- };
36
- declare const colorKeys: string[];
37
- declare const bgColors: {
38
- bgBlack: number[];
39
- bgRed: number[];
40
- bgGreen: number[];
41
- bgYellow: number[];
42
- bgBlue: number[];
43
- bgMagenta: number[];
44
- bgCyan: number[];
45
- bgWhite: number[];
46
- bgBlackBright: number[];
47
- bgGray: number[];
48
- bgGrey: number[];
49
- bgRedBright: number[];
50
- bgGreenBright: number[];
51
- bgYellowBright: number[];
52
- bgBlueBright: number[];
53
- bgMagentaBright: number[];
54
- bgCyanBright: number[];
55
- bgWhiteBright: number[];
56
- };
57
- declare const bgColorKeys: string[];
58
- interface AnsiStyleWrapper {
59
- open: string;
60
- close: string;
61
- }
62
- interface AnsiColorWrappers extends AnsiStyleWrapper {
63
- background: AnsiStyleWrapper;
64
- }
65
- type BaseStyles = Record<"ansi16" | "ansi256" | "ansi16m", { [modifier in keyof typeof modifiers]: AnsiStyleWrapper }>;
66
- type BaseColors = Record<"ansi16" | "ansi256" | "ansi16m", { [color in keyof typeof colors]: AnsiColorWrappers }>;
67
- type ThemeAnsiStylesFormat<T> = T extends object ? { [K in keyof T]: ThemeAnsiStylesFormat<T[K]> } : AnsiColorWrappers;
68
- type ThemeAnsiStyles = Record<"ansi16" | "ansi256" | "ansi16m", {
69
- theme: ThemeAnsiStylesFormat<ThemeColorsResolvedConfig>;
70
- }>;
71
- type AnsiStyles = BaseStyles & BaseColors & ThemeAnsiStyles;
72
- /**
73
- * Generates ANSI styles based on the provided context.
74
- *
75
- * @param theme - The theme colors configuration.
76
- * @returns The generated ANSI styles.
77
- */
78
- declare function getAnsiStyles(theme: ThemeColorsResolvedConfig): AnsiStyles;
79
- //#endregion
80
- export { AnsiColorWrappers, AnsiStyleWrapper, AnsiStyles, BaseColors, BaseStyles, ThemeAnsiStyles, bgColorKeys, bgColors, colorKeys, colors, getAnsiStyles, modifierKeys, modifiers };
81
- //# sourceMappingURL=ansi-utils.d.cts.map
1
+ import { a as BaseStyles, c as bgColors, d as getAnsiStyles, f as modifierKeys, i as BaseColors, l as colorKeys, n as AnsiStyleWrapper, o as ThemeAnsiStyles, p as modifiers, r as AnsiStyles, s as bgColorKeys, t as AnsiColorWrappers, u as colors } from "../ansi-utils-CY_ghxdQ.cjs";
2
+ export { AnsiColorWrappers, AnsiStyleWrapper, AnsiStyles, BaseColors, BaseStyles, ThemeAnsiStyles, bgColorKeys, bgColors, colorKeys, colors, getAnsiStyles, modifierKeys, modifiers };
@@ -1,81 +1,2 @@
1
- import { ThemeColorsResolvedConfig } from "../types/theme.mjs";
2
-
3
- //#region src/helpers/ansi-utils.d.ts
4
- declare const modifiers: {
5
- reset: number[];
6
- bold: number[];
7
- dim: number[];
8
- italic: number[];
9
- underline: number[];
10
- overline: number[];
11
- inverse: number[];
12
- hidden: number[];
13
- strikethrough: number[];
14
- };
15
- declare const modifierKeys: string[];
16
- declare const colors: {
17
- black: number[];
18
- red: number[];
19
- green: number[];
20
- yellow: number[];
21
- blue: number[];
22
- magenta: number[];
23
- cyan: number[];
24
- white: number[];
25
- blackBright: number[];
26
- gray: number[];
27
- grey: number[];
28
- redBright: number[];
29
- greenBright: number[];
30
- yellowBright: number[];
31
- blueBright: number[];
32
- magentaBright: number[];
33
- cyanBright: number[];
34
- whiteBright: number[];
35
- };
36
- declare const colorKeys: string[];
37
- declare const bgColors: {
38
- bgBlack: number[];
39
- bgRed: number[];
40
- bgGreen: number[];
41
- bgYellow: number[];
42
- bgBlue: number[];
43
- bgMagenta: number[];
44
- bgCyan: number[];
45
- bgWhite: number[];
46
- bgBlackBright: number[];
47
- bgGray: number[];
48
- bgGrey: number[];
49
- bgRedBright: number[];
50
- bgGreenBright: number[];
51
- bgYellowBright: number[];
52
- bgBlueBright: number[];
53
- bgMagentaBright: number[];
54
- bgCyanBright: number[];
55
- bgWhiteBright: number[];
56
- };
57
- declare const bgColorKeys: string[];
58
- interface AnsiStyleWrapper {
59
- open: string;
60
- close: string;
61
- }
62
- interface AnsiColorWrappers extends AnsiStyleWrapper {
63
- background: AnsiStyleWrapper;
64
- }
65
- type BaseStyles = Record<"ansi16" | "ansi256" | "ansi16m", { [modifier in keyof typeof modifiers]: AnsiStyleWrapper }>;
66
- type BaseColors = Record<"ansi16" | "ansi256" | "ansi16m", { [color in keyof typeof colors]: AnsiColorWrappers }>;
67
- type ThemeAnsiStylesFormat<T> = T extends object ? { [K in keyof T]: ThemeAnsiStylesFormat<T[K]> } : AnsiColorWrappers;
68
- type ThemeAnsiStyles = Record<"ansi16" | "ansi256" | "ansi16m", {
69
- theme: ThemeAnsiStylesFormat<ThemeColorsResolvedConfig>;
70
- }>;
71
- type AnsiStyles = BaseStyles & BaseColors & ThemeAnsiStyles;
72
- /**
73
- * Generates ANSI styles based on the provided context.
74
- *
75
- * @param theme - The theme colors configuration.
76
- * @returns The generated ANSI styles.
77
- */
78
- declare function getAnsiStyles(theme: ThemeColorsResolvedConfig): AnsiStyles;
79
- //#endregion
80
- export { AnsiColorWrappers, AnsiStyleWrapper, AnsiStyles, BaseColors, BaseStyles, ThemeAnsiStyles, bgColorKeys, bgColors, colorKeys, colors, getAnsiStyles, modifierKeys, modifiers };
81
- //# sourceMappingURL=ansi-utils.d.mts.map
1
+ import { a as BaseStyles, c as bgColors, d as getAnsiStyles, f as modifierKeys, i as BaseColors, l as colorKeys, n as AnsiStyleWrapper, o as ThemeAnsiStyles, p as modifiers, r as AnsiStyles, s as bgColorKeys, t as AnsiColorWrappers, u as colors } from "../ansi-utils-BBqikbV-.mjs";
2
+ export { AnsiColorWrappers, AnsiStyleWrapper, AnsiStyles, BaseColors, BaseStyles, ThemeAnsiStyles, bgColorKeys, bgColors, colorKeys, colors, getAnsiStyles, modifierKeys, modifiers };
@@ -1,5 +1,4 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
-
3
2
  //#region src/helpers/border-styles.ts
4
3
  /**
5
4
  * Applies the specified border style type and returns the corresponding border characters.
@@ -204,18 +203,16 @@ function resolveBorderStyle(identifier) {
204
203
  right: "██"
205
204
  };
206
205
  break;
207
- default:
208
- result = {
209
- topLeft: "",
210
- topRight: "",
211
- bottomLeft: "",
212
- bottomRight: "",
213
- top: "─",
214
- bottom: "",
215
- left: "│",
216
- right: "│"
217
- };
218
- break;
206
+ default: result = {
207
+ topLeft: "┌",
208
+ topRight: "",
209
+ bottomLeft: "",
210
+ bottomRight: "",
211
+ top: "",
212
+ bottom: "─",
213
+ left: "",
214
+ right: "│"
215
+ };
219
216
  }
220
217
  result.meta = identifier.endsWith("-corners") ? { corners: true } : {};
221
218
  return result;
@@ -1,5 +1,4 @@
1
- import { ThemeStyleBorderIdentifiers, ThemeStyleBorderTypeConfig } from "../types/theme.cjs";
2
-
1
+ import { dt as ThemeStyleBorderTypeConfig, lt as ThemeStyleBorderIdentifiers } from "../theme-C68ywMEZ.cjs";
3
2
  //#region src/helpers/border-styles.d.ts
4
3
  /**
5
4
  * Applies the specified border style type and returns the corresponding border characters.
@@ -1 +1 @@
1
- {"version":3,"file":"border-styles.d.cts","names":[],"sources":["../../src/helpers/border-styles.ts"],"mappings":";;;;;AA6BA;;;;iBAAgB,kBAAA,CACd,UAAA,EAAY,2BAAA,GACX,0BAA0B"}
1
+ {"version":3,"file":"border-styles.d.cts","names":[],"sources":["../../src/helpers/border-styles.ts"],"mappings":";;;;;;;;iBA6BgB,mBACd,YAAY,8BACX"}
@@ -1,5 +1,4 @@
1
- import { ThemeStyleBorderIdentifiers, ThemeStyleBorderTypeConfig } from "../types/theme.mjs";
2
-
1
+ import { dt as ThemeStyleBorderTypeConfig, lt as ThemeStyleBorderIdentifiers } from "../theme-B_q1llDJ.mjs";
3
2
  //#region src/helpers/border-styles.d.ts
4
3
  /**
5
4
  * Applies the specified border style type and returns the corresponding border characters.
@@ -202,18 +202,16 @@ function resolveBorderStyle(identifier) {
202
202
  right: "██"
203
203
  };
204
204
  break;
205
- default:
206
- result = {
207
- topLeft: "",
208
- topRight: "",
209
- bottomLeft: "",
210
- bottomRight: "",
211
- top: "─",
212
- bottom: "",
213
- left: "│",
214
- right: "│"
215
- };
216
- break;
205
+ default: result = {
206
+ topLeft: "┌",
207
+ topRight: "",
208
+ bottomLeft: "",
209
+ bottomRight: "",
210
+ top: "",
211
+ bottom: "─",
212
+ left: "",
213
+ right: "│"
214
+ };
217
215
  }
218
216
  result.meta = identifier.endsWith("-corners") ? { corners: true } : {};
219
217
  return result;
@@ -1,5 +1,4 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
-
3
2
  //#region src/helpers/constants.ts
4
3
  const DEFAULT_TAG_COLORS = {
5
4
  foreground: "#394447",
@@ -1,12 +1,2 @@
1
- //#region src/helpers/constants.d.ts
2
- declare const DEFAULT_TAG_COLORS: {
3
- readonly foreground: "#394447";
4
- readonly background: "#f9fbfb";
5
- };
6
- declare const THEME_MESSAGE_VARIANTS: readonly ["help", "success", "info", "debug", "warning", "danger", "error"];
7
- declare const THEME_COLOR_VARIANTS: readonly ["primary", "secondary", "tertiary"];
8
- declare const THEME_COLOR_SUBITEMS: readonly ["primary", "secondary", "tertiary"];
9
- declare const THEME_COLOR_BODY_SUBITEMS: readonly ["link", "primary", "secondary", "tertiary"];
10
- //#endregion
11
- export { DEFAULT_TAG_COLORS, THEME_COLOR_BODY_SUBITEMS, THEME_COLOR_SUBITEMS, THEME_COLOR_VARIANTS, THEME_MESSAGE_VARIANTS };
12
- //# sourceMappingURL=constants.d.cts.map
1
+ import { a as THEME_MESSAGE_VARIANTS, i as THEME_COLOR_VARIANTS, n as THEME_COLOR_BODY_SUBITEMS, r as THEME_COLOR_SUBITEMS, t as DEFAULT_TAG_COLORS } from "../constants-Bs8URqjD.cjs";
2
+ export { DEFAULT_TAG_COLORS, THEME_COLOR_BODY_SUBITEMS, THEME_COLOR_SUBITEMS, THEME_COLOR_VARIANTS, THEME_MESSAGE_VARIANTS };
@@ -1,12 +1,2 @@
1
- //#region src/helpers/constants.d.ts
2
- declare const DEFAULT_TAG_COLORS: {
3
- readonly foreground: "#394447";
4
- readonly background: "#f9fbfb";
5
- };
6
- declare const THEME_MESSAGE_VARIANTS: readonly ["help", "success", "info", "debug", "warning", "danger", "error"];
7
- declare const THEME_COLOR_VARIANTS: readonly ["primary", "secondary", "tertiary"];
8
- declare const THEME_COLOR_SUBITEMS: readonly ["primary", "secondary", "tertiary"];
9
- declare const THEME_COLOR_BODY_SUBITEMS: readonly ["link", "primary", "secondary", "tertiary"];
10
- //#endregion
11
- export { DEFAULT_TAG_COLORS, THEME_COLOR_BODY_SUBITEMS, THEME_COLOR_SUBITEMS, THEME_COLOR_VARIANTS, THEME_MESSAGE_VARIANTS };
12
- //# sourceMappingURL=constants.d.mts.map
1
+ import { a as THEME_MESSAGE_VARIANTS, i as THEME_COLOR_VARIANTS, n as THEME_COLOR_BODY_SUBITEMS, r as THEME_COLOR_SUBITEMS, t as DEFAULT_TAG_COLORS } from "../constants-Bs8URqjD.mjs";
2
+ export { DEFAULT_TAG_COLORS, THEME_COLOR_BODY_SUBITEMS, THEME_COLOR_SUBITEMS, THEME_COLOR_VARIANTS, THEME_MESSAGE_VARIANTS };
@@ -1,5 +1,5 @@
1
- import spinners, { SpinnerPreset, SpinnerPresetConfigs, aesthetic, arc, arrow, arrow2, arrow3, balloon, balloon2, betaWave, binary, bluePulse, bounce, bouncingBall, bouncingBar, boxBounce, boxBounce2, christmas, circle, circleHalves, circleQuarters, clock, dots, dots10, dots11, dots12, dots13, dots14, dots2, dots3, dots4, dots5, dots6, dots7, dots8, dots8Bit, dots9, dotsCircle, dqpb, dwarfFortress, earth, fingerDance, fish, fistBump, flip, grenade, growHorizontal, growVertical, hamburger, hearts, layer, line, line2, material, mindblown, monkey, moon, noise, orangeBluePulse, orangePulse, pipe, point, pong, resolveSpinner, rollingLine, runner, sand, shark, simpleDots, simpleDotsScrolling, smiley, soccerHeader, speaker, squareCorners, squish, star, star2, timeTravel, toggle, toggle10, toggle11, toggle12, toggle13, toggle2, toggle3, toggle4, toggle5, toggle6, toggle7, toggle8, toggle9, triangle, weather } from "./spinners.cjs";
2
- import { AnsiColorWrappers, AnsiStyleWrapper, AnsiStyles, BaseColors, BaseStyles, ThemeAnsiStyles, bgColorKeys, bgColors, colorKeys, colors, getAnsiStyles, modifierKeys, modifiers } from "./ansi-utils.cjs";
1
+ import { $ as line2, A as dots3, At as toggle13, B as dwarfFortress, Bt as weather, C as dots, Ct as star, D as dots13, Dt as toggle10, E as dots12, Et as toggle, F as dots8, Ft as toggle6, G as flip, H as fingerDance, I as dots8Bit, It as toggle7, J as growVertical, K as grenade, L as dots9, Lt as toggle8, M as dots5, Mt as toggle3, N as dots6, Nt as toggle4, O as dots14, Ot as toggle11, P as dots7, Pt as toggle5, Q as line, R as dotsCircle, Rt as toggle9, S as clock, St as squish, T as dots11, Tt as timeTravel, U as fish, V as earth, W as fistBump, X as hearts, Y as hamburger, Z as layer, _ as boxBounce2, _t as smiley, a as arrow, at as orangeBluePulse, b as circleHalves, bt as spinners, c as balloon, ct as point, d as binary, dt as rollingLine, et as material, f as bluePulse, ft as runner, g as boxBounce, gt as simpleDotsScrolling, h as bouncingBar, ht as simpleDots, i as arc, it as noise, j as dots4, jt as toggle2, k as dots2, kt as toggle12, l as balloon2, lt as pong, m as bouncingBall, mt as shark, n as SpinnerPresetConfigs, nt as monkey, o as arrow2, ot as orangePulse, p as bounce, pt as sand, q as growHorizontal, r as aesthetic, rt as moon, s as arrow3, st as pipe, t as SpinnerPreset, tt as mindblown, u as betaWave, ut as resolveSpinner, v as christmas, vt as soccerHeader, w as dots10, wt as star2, x as circleQuarters, xt as squareCorners, y as circle, yt as speaker, z as dqpb, zt as triangle } from "../spinners-BB6Z_PUM.cjs";
2
+ import { a as BaseStyles, c as bgColors, d as getAnsiStyles, f as modifierKeys, i as BaseColors, l as colorKeys, n as AnsiStyleWrapper, o as ThemeAnsiStyles, p as modifiers, r as AnsiStyles, s as bgColorKeys, t as AnsiColorWrappers, u as colors } from "../ansi-utils-CY_ghxdQ.cjs";
3
3
  import { resolveBorderStyle } from "./border-styles.cjs";
4
4
  import { mergeThemes } from "./merge.cjs";
5
5
  export { AnsiColorWrappers, AnsiStyleWrapper, AnsiStyles, BaseColors, BaseStyles, SpinnerPreset, SpinnerPresetConfigs, ThemeAnsiStyles, aesthetic, arc, arrow, arrow2, arrow3, balloon, balloon2, betaWave, bgColorKeys, bgColors, binary, bluePulse, bounce, bouncingBall, bouncingBar, boxBounce, boxBounce2, christmas, circle, circleHalves, circleQuarters, clock, colorKeys, colors, dots, dots10, dots11, dots12, dots13, dots14, dots2, dots3, dots4, dots5, dots6, dots7, dots8, dots8Bit, dots9, dotsCircle, dqpb, dwarfFortress, earth, fingerDance, fish, fistBump, flip, getAnsiStyles, grenade, growHorizontal, growVertical, hamburger, hearts, layer, line, line2, material, mergeThemes, mindblown, modifierKeys, modifiers, monkey, moon, noise, orangeBluePulse, orangePulse, pipe, point, pong, resolveBorderStyle, resolveSpinner, rollingLine, runner, sand, shark, simpleDots, simpleDotsScrolling, smiley, soccerHeader, speaker, spinners, squareCorners, squish, star, star2, timeTravel, toggle, toggle10, toggle11, toggle12, toggle13, toggle2, toggle3, toggle4, toggle5, toggle6, toggle7, toggle8, toggle9, triangle, weather };
@@ -1,5 +1,5 @@
1
- import spinners, { SpinnerPreset, SpinnerPresetConfigs, aesthetic, arc, arrow, arrow2, arrow3, balloon, balloon2, betaWave, binary, bluePulse, bounce, bouncingBall, bouncingBar, boxBounce, boxBounce2, christmas, circle, circleHalves, circleQuarters, clock, dots, dots10, dots11, dots12, dots13, dots14, dots2, dots3, dots4, dots5, dots6, dots7, dots8, dots8Bit, dots9, dotsCircle, dqpb, dwarfFortress, earth, fingerDance, fish, fistBump, flip, grenade, growHorizontal, growVertical, hamburger, hearts, layer, line, line2, material, mindblown, monkey, moon, noise, orangeBluePulse, orangePulse, pipe, point, pong, resolveSpinner, rollingLine, runner, sand, shark, simpleDots, simpleDotsScrolling, smiley, soccerHeader, speaker, squareCorners, squish, star, star2, timeTravel, toggle, toggle10, toggle11, toggle12, toggle13, toggle2, toggle3, toggle4, toggle5, toggle6, toggle7, toggle8, toggle9, triangle, weather } from "./spinners.mjs";
2
- import { AnsiColorWrappers, AnsiStyleWrapper, AnsiStyles, BaseColors, BaseStyles, ThemeAnsiStyles, bgColorKeys, bgColors, colorKeys, colors, getAnsiStyles, modifierKeys, modifiers } from "./ansi-utils.mjs";
1
+ import { $ as line2, A as dots3, At as toggle13, B as dwarfFortress, Bt as weather, C as dots, Ct as star, D as dots13, Dt as toggle10, E as dots12, Et as toggle, F as dots8, Ft as toggle6, G as flip, H as fingerDance, I as dots8Bit, It as toggle7, J as growVertical, K as grenade, L as dots9, Lt as toggle8, M as dots5, Mt as toggle3, N as dots6, Nt as toggle4, O as dots14, Ot as toggle11, P as dots7, Pt as toggle5, Q as line, R as dotsCircle, Rt as toggle9, S as clock, St as squish, T as dots11, Tt as timeTravel, U as fish, V as earth, W as fistBump, X as hearts, Y as hamburger, Z as layer, _ as boxBounce2, _t as smiley, a as arrow, at as orangeBluePulse, b as circleHalves, bt as spinners, c as balloon, ct as point, d as binary, dt as rollingLine, et as material, f as bluePulse, ft as runner, g as boxBounce, gt as simpleDotsScrolling, h as bouncingBar, ht as simpleDots, i as arc, it as noise, j as dots4, jt as toggle2, k as dots2, kt as toggle12, l as balloon2, lt as pong, m as bouncingBall, mt as shark, n as SpinnerPresetConfigs, nt as monkey, o as arrow2, ot as orangePulse, p as bounce, pt as sand, q as growHorizontal, r as aesthetic, rt as moon, s as arrow3, st as pipe, t as SpinnerPreset, tt as mindblown, u as betaWave, ut as resolveSpinner, v as christmas, vt as soccerHeader, w as dots10, wt as star2, x as circleQuarters, xt as squareCorners, y as circle, yt as speaker, z as dqpb, zt as triangle } from "../spinners-BB6Z_PUM.mjs";
2
+ import { a as BaseStyles, c as bgColors, d as getAnsiStyles, f as modifierKeys, i as BaseColors, l as colorKeys, n as AnsiStyleWrapper, o as ThemeAnsiStyles, p as modifiers, r as AnsiStyles, s as bgColorKeys, t as AnsiColorWrappers, u as colors } from "../ansi-utils-BBqikbV-.mjs";
3
3
  import { resolveBorderStyle } from "./border-styles.mjs";
4
4
  import { mergeThemes } from "./merge.mjs";
5
5
  export { AnsiColorWrappers, AnsiStyleWrapper, AnsiStyles, BaseColors, BaseStyles, SpinnerPreset, SpinnerPresetConfigs, ThemeAnsiStyles, aesthetic, arc, arrow, arrow2, arrow3, balloon, balloon2, betaWave, bgColorKeys, bgColors, binary, bluePulse, bounce, bouncingBall, bouncingBar, boxBounce, boxBounce2, christmas, circle, circleHalves, circleQuarters, clock, colorKeys, colors, dots, dots10, dots11, dots12, dots13, dots14, dots2, dots3, dots4, dots5, dots6, dots7, dots8, dots8Bit, dots9, dotsCircle, dqpb, dwarfFortress, earth, fingerDance, fish, fistBump, flip, getAnsiStyles, grenade, growHorizontal, growVertical, hamburger, hearts, layer, line, line2, material, mergeThemes, mindblown, modifierKeys, modifiers, monkey, moon, noise, orangeBluePulse, orangePulse, pipe, point, pong, resolveBorderStyle, resolveSpinner, rollingLine, runner, sand, shark, simpleDots, simpleDotsScrolling, smiley, soccerHeader, speaker, spinners, squareCorners, squish, star, star2, timeTravel, toggle, toggle10, toggle11, toggle12, toggle13, toggle2, toggle3, toggle4, toggle5, toggle6, toggle7, toggle8, toggle9, triangle, weather };
@@ -1,6 +1,5 @@
1
- import { ThemeResolvedConfig } from "../types/theme.cjs";
2
- import { ThemePluginContext } from "../types/plugin.cjs";
3
-
1
+ import { at as ThemeResolvedConfig } from "../theme-C68ywMEZ.cjs";
2
+ import { t as ThemePluginContext } from "../plugin-D_4VGrBE.cjs";
4
3
  //#region src/helpers/merge.d.ts
5
4
  /**
6
5
  * Merges the provided resolved theme configuration into the existing theme configuration in the context.
@@ -1 +1 @@
1
- {"version":3,"file":"merge.d.cts","names":[],"sources":["../../src/helpers/merge.ts"],"mappings":";;;;;;AA6BA;;;;;iBAAgB,WAAA,kBAA6B,kBAAA,EAC3C,OAAA,EAAS,QAAA,EACT,cAAA,EAAgB,OAAA,CAAQ,mBAAA,IAAoB,mBAAA"}
1
+ {"version":3,"file":"merge.d.cts","names":[],"sources":["../../src/helpers/merge.ts"],"mappings":";;;;;;;;;;iBA6BgB,YAAY,iBAAiB,oBAC3C,SAAS,UACT,gBAAgB,QAAQ,uBAAoB"}
@@ -1,6 +1,5 @@
1
- import { ThemeResolvedConfig } from "../types/theme.mjs";
2
- import { ThemePluginContext } from "../types/plugin.mjs";
3
-
1
+ import { at as ThemeResolvedConfig } from "../theme-B_q1llDJ.mjs";
2
+ import { t as ThemePluginContext } from "../plugin-liH648jU.mjs";
4
3
  //#region src/helpers/merge.d.ts
5
4
  /**
6
5
  * Merges the provided resolved theme configuration into the existing theme configuration in the context.
@@ -1,5 +1,4 @@
1
1
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
2
-
3
2
  //#region src/helpers/spinners.ts
4
3
  const spinners = {
5
4
  dots: {