@storm-software/git-tools 2.124.62 → 2.124.64

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.
@@ -37,15 +37,65 @@ var LogLevelLabel = {
37
37
 
38
38
  // ../config-tools/src/utilities/colors.ts
39
39
  var DEFAULT_COLOR_CONFIG = {
40
+ light: {
41
+ background: "#fafafa",
42
+ foreground: "#1d1e22",
43
+ brand: "#1fb2a6",
44
+ alternate: "#db2777",
45
+ help: "#5C4EE5",
46
+ success: "#087f5b",
47
+ info: "#0550ae",
48
+ debug: "#8afafc",
49
+ warning: "#e3b341",
50
+ danger: "#D8314A",
51
+ fatal: "#51070f",
52
+ link: "#3fa6ff",
53
+ positive: "#22c55e",
54
+ negative: "#dc2626",
55
+ gradient: ["#1fb2a6", "#db2777", "#5C4EE5"]
56
+ },
40
57
  dark: {
58
+ background: "#1d1e22",
59
+ foreground: "#cbd5e1",
41
60
  brand: "#2dd4bf",
61
+ alternate: "#db2777",
62
+ help: "#818cf8",
42
63
  success: "#10b981",
43
64
  info: "#58a6ff",
44
65
  debug: "#8afafc",
45
66
  warning: "#f3d371",
46
67
  danger: "#D8314A",
47
- fatal: "#a40e26"}
68
+ fatal: "#a40e26",
69
+ link: "#3fa6ff",
70
+ positive: "#22c55e",
71
+ negative: "#dc2626",
72
+ gradient: ["#1fb2a6", "#db2777", "#818cf8"]
73
+ }
48
74
  };
75
+ function getColors(config2) {
76
+ if (!config2?.colors || typeof config2.colors !== "object" || !config2.colors["dark"] && (!config2.colors["base"] || typeof config2.colors !== "object" || !config2.colors["base"]?.["dark"])) {
77
+ return DEFAULT_COLOR_CONFIG;
78
+ }
79
+ if (config2.colors["base"]) {
80
+ if (typeof config2.colors["base"]["dark"] === "object") {
81
+ return config2.colors["base"]["dark"];
82
+ } else if (config2.colors["base"]["dark"] === "string") {
83
+ return config2.colors["base"];
84
+ }
85
+ }
86
+ if (typeof config2.colors["dark"] === "object") {
87
+ return config2.colors["dark"];
88
+ }
89
+ return config2.colors ?? DEFAULT_COLOR_CONFIG;
90
+ }
91
+ function getColor(key, config2) {
92
+ const colors = getColors(config2);
93
+ const result = (typeof colors["dark"] === "object" ? colors["dark"][key] : colors[key]) || DEFAULT_COLOR_CONFIG["dark"][key] || DEFAULT_COLOR_CONFIG[key];
94
+ if (result) {
95
+ return result;
96
+ }
97
+ return getColor("brand", config2);
98
+ }
49
99
  var chalkDefault = {
50
100
  hex: (_) => (message) => message,
51
101
  bgHex: (_) => ({
@@ -92,7 +142,7 @@ function isUnicodeSupported() {
92
142
  var useIcon = (c, fallback) => isUnicodeSupported() ? c : fallback;
93
143
  var CONSOLE_ICONS = {
94
144
  [LogLevelLabel.ERROR]: useIcon("\u2718", "\xD7"),
95
- [LogLevelLabel.FATAL]: useIcon("\u2622", "\xD7"),
145
+ [LogLevelLabel.FATAL]: useIcon("\u{1F571}", "\xD7"),
96
146
  [LogLevelLabel.WARN]: useIcon("\u26A0", "\u203C"),
97
147
  [LogLevelLabel.INFO]: useIcon("\u2139", "i"),
98
148
  [LogLevelLabel.SUCCESS]: useIcon("\u2714", "\u221A"),
@@ -301,6 +351,7 @@ var _isFunction = (value) => {
301
351
  return false;
302
352
  }
303
353
  };
354
+ var brandIcon = (config2 = {}, _chalk = getChalk()) => _chalk.hex(getColor("brand", config2))("\u{1F5F2}");
304
355
 
305
356
  // ../config-tools/src/utilities/process-handler.ts
306
357
  var exitWithError = (config2) => {
@@ -3819,6 +3870,6 @@ function getWorkspaceConfig(skipLogs = true, options = {}) {
3819
3870
  return getConfig(workspaceRoot, skipLogs);
3820
3871
  }
3821
3872
 
3822
- export { STORM_DEFAULT_RELEASE_BANNER, defu, exitWithError, exitWithSuccess, findWorkspaceRootSafe, getConfig, getWorkspaceConfig, handleProcess, isVerbose, joinPaths, writeDebug, writeError, writeFatal, writeInfo, writeSuccess, writeTrace, writeWarning };
3823
- //# sourceMappingURL=chunk-X6QPG2T4.js.map
3824
- //# sourceMappingURL=chunk-X6QPG2T4.js.map
3873
+ export { STORM_DEFAULT_RELEASE_BANNER, brandIcon, defu, exitWithError, exitWithSuccess, findWorkspaceRootSafe, getConfig, getWorkspaceConfig, handleProcess, isVerbose, joinPaths, writeDebug, writeError, writeFatal, writeInfo, writeSuccess, writeTrace, writeWarning };
3874
+ //# sourceMappingURL=chunk-SAG2FKFE.js.map
3875
+ //# sourceMappingURL=chunk-SAG2FKFE.js.map