@pandacss/node 0.0.0-dev-20230321103030 → 0.0.0-dev-20230321125457
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/index.js +145 -129
- package/dist/index.mjs +145 -129
- package/package.json +13 -13
package/dist/index.js
CHANGED
|
@@ -33,9 +33,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
33
33
|
));
|
|
34
34
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
35
35
|
|
|
36
|
-
// ../../node_modules/.pnpm/tsup@6.7.0_typescript@
|
|
36
|
+
// ../../node_modules/.pnpm/tsup@6.7.0_typescript@5.0.2/node_modules/tsup/assets/cjs_shims.js
|
|
37
37
|
var init_cjs_shims = __esm({
|
|
38
|
-
"../../node_modules/.pnpm/tsup@6.7.0_typescript@
|
|
38
|
+
"../../node_modules/.pnpm/tsup@6.7.0_typescript@5.0.2/node_modules/tsup/assets/cjs_shims.js"() {
|
|
39
39
|
}
|
|
40
40
|
});
|
|
41
41
|
|
|
@@ -616,7 +616,7 @@ var import_lil_fp2 = require("lil-fp");
|
|
|
616
616
|
// src/cli-box.ts
|
|
617
617
|
init_cjs_shims();
|
|
618
618
|
|
|
619
|
-
// ../../node_modules/.pnpm/boxen@7.0.
|
|
619
|
+
// ../../node_modules/.pnpm/boxen@7.0.2/node_modules/boxen/index.js
|
|
620
620
|
init_cjs_shims();
|
|
621
621
|
var import_node_process2 = __toESM(require("process"), 1);
|
|
622
622
|
|
|
@@ -686,102 +686,110 @@ function stringWidth(string, options = {}) {
|
|
|
686
686
|
return width;
|
|
687
687
|
}
|
|
688
688
|
|
|
689
|
-
// ../../node_modules/.pnpm/chalk@5.0
|
|
689
|
+
// ../../node_modules/.pnpm/chalk@5.2.0/node_modules/chalk/source/index.js
|
|
690
690
|
init_cjs_shims();
|
|
691
691
|
|
|
692
|
-
// ../../node_modules/.pnpm/chalk@5.0
|
|
692
|
+
// ../../node_modules/.pnpm/chalk@5.2.0/node_modules/chalk/source/vendor/ansi-styles/index.js
|
|
693
693
|
init_cjs_shims();
|
|
694
694
|
var ANSI_BACKGROUND_OFFSET = 10;
|
|
695
695
|
var wrapAnsi16 = (offset = 0) => (code) => `\x1B[${code + offset}m`;
|
|
696
696
|
var wrapAnsi256 = (offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`;
|
|
697
697
|
var wrapAnsi16m = (offset = 0) => (red, green, blue) => `\x1B[${38 + offset};2;${red};${green};${blue}m`;
|
|
698
|
+
var styles = {
|
|
699
|
+
modifier: {
|
|
700
|
+
reset: [0, 0],
|
|
701
|
+
// 21 isn't widely supported and 22 does the same thing
|
|
702
|
+
bold: [1, 22],
|
|
703
|
+
dim: [2, 22],
|
|
704
|
+
italic: [3, 23],
|
|
705
|
+
underline: [4, 24],
|
|
706
|
+
overline: [53, 55],
|
|
707
|
+
inverse: [7, 27],
|
|
708
|
+
hidden: [8, 28],
|
|
709
|
+
strikethrough: [9, 29]
|
|
710
|
+
},
|
|
711
|
+
color: {
|
|
712
|
+
black: [30, 39],
|
|
713
|
+
red: [31, 39],
|
|
714
|
+
green: [32, 39],
|
|
715
|
+
yellow: [33, 39],
|
|
716
|
+
blue: [34, 39],
|
|
717
|
+
magenta: [35, 39],
|
|
718
|
+
cyan: [36, 39],
|
|
719
|
+
white: [37, 39],
|
|
720
|
+
// Bright color
|
|
721
|
+
blackBright: [90, 39],
|
|
722
|
+
gray: [90, 39],
|
|
723
|
+
// Alias of `blackBright`
|
|
724
|
+
grey: [90, 39],
|
|
725
|
+
// Alias of `blackBright`
|
|
726
|
+
redBright: [91, 39],
|
|
727
|
+
greenBright: [92, 39],
|
|
728
|
+
yellowBright: [93, 39],
|
|
729
|
+
blueBright: [94, 39],
|
|
730
|
+
magentaBright: [95, 39],
|
|
731
|
+
cyanBright: [96, 39],
|
|
732
|
+
whiteBright: [97, 39]
|
|
733
|
+
},
|
|
734
|
+
bgColor: {
|
|
735
|
+
bgBlack: [40, 49],
|
|
736
|
+
bgRed: [41, 49],
|
|
737
|
+
bgGreen: [42, 49],
|
|
738
|
+
bgYellow: [43, 49],
|
|
739
|
+
bgBlue: [44, 49],
|
|
740
|
+
bgMagenta: [45, 49],
|
|
741
|
+
bgCyan: [46, 49],
|
|
742
|
+
bgWhite: [47, 49],
|
|
743
|
+
// Bright color
|
|
744
|
+
bgBlackBright: [100, 49],
|
|
745
|
+
bgGray: [100, 49],
|
|
746
|
+
// Alias of `bgBlackBright`
|
|
747
|
+
bgGrey: [100, 49],
|
|
748
|
+
// Alias of `bgBlackBright`
|
|
749
|
+
bgRedBright: [101, 49],
|
|
750
|
+
bgGreenBright: [102, 49],
|
|
751
|
+
bgYellowBright: [103, 49],
|
|
752
|
+
bgBlueBright: [104, 49],
|
|
753
|
+
bgMagentaBright: [105, 49],
|
|
754
|
+
bgCyanBright: [106, 49],
|
|
755
|
+
bgWhiteBright: [107, 49]
|
|
756
|
+
}
|
|
757
|
+
};
|
|
758
|
+
var modifierNames = Object.keys(styles.modifier);
|
|
759
|
+
var foregroundColorNames = Object.keys(styles.color);
|
|
760
|
+
var backgroundColorNames = Object.keys(styles.bgColor);
|
|
761
|
+
var colorNames = [...foregroundColorNames, ...backgroundColorNames];
|
|
698
762
|
function assembleStyles() {
|
|
699
763
|
const codes = /* @__PURE__ */ new Map();
|
|
700
|
-
const
|
|
701
|
-
modifier: {
|
|
702
|
-
reset: [0, 0],
|
|
703
|
-
// 21 isn't widely supported and 22 does the same thing
|
|
704
|
-
bold: [1, 22],
|
|
705
|
-
dim: [2, 22],
|
|
706
|
-
italic: [3, 23],
|
|
707
|
-
underline: [4, 24],
|
|
708
|
-
overline: [53, 55],
|
|
709
|
-
inverse: [7, 27],
|
|
710
|
-
hidden: [8, 28],
|
|
711
|
-
strikethrough: [9, 29]
|
|
712
|
-
},
|
|
713
|
-
color: {
|
|
714
|
-
black: [30, 39],
|
|
715
|
-
red: [31, 39],
|
|
716
|
-
green: [32, 39],
|
|
717
|
-
yellow: [33, 39],
|
|
718
|
-
blue: [34, 39],
|
|
719
|
-
magenta: [35, 39],
|
|
720
|
-
cyan: [36, 39],
|
|
721
|
-
white: [37, 39],
|
|
722
|
-
// Bright color
|
|
723
|
-
blackBright: [90, 39],
|
|
724
|
-
redBright: [91, 39],
|
|
725
|
-
greenBright: [92, 39],
|
|
726
|
-
yellowBright: [93, 39],
|
|
727
|
-
blueBright: [94, 39],
|
|
728
|
-
magentaBright: [95, 39],
|
|
729
|
-
cyanBright: [96, 39],
|
|
730
|
-
whiteBright: [97, 39]
|
|
731
|
-
},
|
|
732
|
-
bgColor: {
|
|
733
|
-
bgBlack: [40, 49],
|
|
734
|
-
bgRed: [41, 49],
|
|
735
|
-
bgGreen: [42, 49],
|
|
736
|
-
bgYellow: [43, 49],
|
|
737
|
-
bgBlue: [44, 49],
|
|
738
|
-
bgMagenta: [45, 49],
|
|
739
|
-
bgCyan: [46, 49],
|
|
740
|
-
bgWhite: [47, 49],
|
|
741
|
-
// Bright color
|
|
742
|
-
bgBlackBright: [100, 49],
|
|
743
|
-
bgRedBright: [101, 49],
|
|
744
|
-
bgGreenBright: [102, 49],
|
|
745
|
-
bgYellowBright: [103, 49],
|
|
746
|
-
bgBlueBright: [104, 49],
|
|
747
|
-
bgMagentaBright: [105, 49],
|
|
748
|
-
bgCyanBright: [106, 49],
|
|
749
|
-
bgWhiteBright: [107, 49]
|
|
750
|
-
}
|
|
751
|
-
};
|
|
752
|
-
styles2.color.gray = styles2.color.blackBright;
|
|
753
|
-
styles2.bgColor.bgGray = styles2.bgColor.bgBlackBright;
|
|
754
|
-
styles2.color.grey = styles2.color.blackBright;
|
|
755
|
-
styles2.bgColor.bgGrey = styles2.bgColor.bgBlackBright;
|
|
756
|
-
for (const [groupName, group] of Object.entries(styles2)) {
|
|
764
|
+
for (const [groupName, group] of Object.entries(styles)) {
|
|
757
765
|
for (const [styleName, style] of Object.entries(group)) {
|
|
758
|
-
|
|
766
|
+
styles[styleName] = {
|
|
759
767
|
open: `\x1B[${style[0]}m`,
|
|
760
768
|
close: `\x1B[${style[1]}m`
|
|
761
769
|
};
|
|
762
|
-
group[styleName] =
|
|
770
|
+
group[styleName] = styles[styleName];
|
|
763
771
|
codes.set(style[0], style[1]);
|
|
764
772
|
}
|
|
765
|
-
Object.defineProperty(
|
|
773
|
+
Object.defineProperty(styles, groupName, {
|
|
766
774
|
value: group,
|
|
767
775
|
enumerable: false
|
|
768
776
|
});
|
|
769
777
|
}
|
|
770
|
-
Object.defineProperty(
|
|
778
|
+
Object.defineProperty(styles, "codes", {
|
|
771
779
|
value: codes,
|
|
772
780
|
enumerable: false
|
|
773
781
|
});
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
Object.defineProperties(
|
|
782
|
+
styles.color.close = "\x1B[39m";
|
|
783
|
+
styles.bgColor.close = "\x1B[49m";
|
|
784
|
+
styles.color.ansi = wrapAnsi16();
|
|
785
|
+
styles.color.ansi256 = wrapAnsi256();
|
|
786
|
+
styles.color.ansi16m = wrapAnsi16m();
|
|
787
|
+
styles.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);
|
|
788
|
+
styles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
|
|
789
|
+
styles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
|
|
790
|
+
Object.defineProperties(styles, {
|
|
783
791
|
rgbToAnsi256: {
|
|
784
|
-
value
|
|
792
|
+
value(red, green, blue) {
|
|
785
793
|
if (red === green && green === blue) {
|
|
786
794
|
if (red < 8) {
|
|
787
795
|
return 16;
|
|
@@ -796,12 +804,12 @@ function assembleStyles() {
|
|
|
796
804
|
enumerable: false
|
|
797
805
|
},
|
|
798
806
|
hexToRgb: {
|
|
799
|
-
value
|
|
800
|
-
const matches = /
|
|
807
|
+
value(hex) {
|
|
808
|
+
const matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
|
|
801
809
|
if (!matches) {
|
|
802
810
|
return [0, 0, 0];
|
|
803
811
|
}
|
|
804
|
-
let
|
|
812
|
+
let [colorString] = matches;
|
|
805
813
|
if (colorString.length === 3) {
|
|
806
814
|
colorString = [...colorString].map((character) => character + character).join("");
|
|
807
815
|
}
|
|
@@ -817,11 +825,11 @@ function assembleStyles() {
|
|
|
817
825
|
enumerable: false
|
|
818
826
|
},
|
|
819
827
|
hexToAnsi256: {
|
|
820
|
-
value: (hex) =>
|
|
828
|
+
value: (hex) => styles.rgbToAnsi256(...styles.hexToRgb(hex)),
|
|
821
829
|
enumerable: false
|
|
822
830
|
},
|
|
823
831
|
ansi256ToAnsi: {
|
|
824
|
-
value
|
|
832
|
+
value(code) {
|
|
825
833
|
if (code < 8) {
|
|
826
834
|
return 30 + code;
|
|
827
835
|
}
|
|
@@ -855,25 +863,25 @@ function assembleStyles() {
|
|
|
855
863
|
enumerable: false
|
|
856
864
|
},
|
|
857
865
|
rgbToAnsi: {
|
|
858
|
-
value: (red, green, blue) =>
|
|
866
|
+
value: (red, green, blue) => styles.ansi256ToAnsi(styles.rgbToAnsi256(red, green, blue)),
|
|
859
867
|
enumerable: false
|
|
860
868
|
},
|
|
861
869
|
hexToAnsi: {
|
|
862
|
-
value: (hex) =>
|
|
870
|
+
value: (hex) => styles.ansi256ToAnsi(styles.hexToAnsi256(hex)),
|
|
863
871
|
enumerable: false
|
|
864
872
|
}
|
|
865
873
|
});
|
|
866
|
-
return
|
|
874
|
+
return styles;
|
|
867
875
|
}
|
|
868
876
|
var ansiStyles = assembleStyles();
|
|
869
877
|
var ansi_styles_default = ansiStyles;
|
|
870
878
|
|
|
871
|
-
// ../../node_modules/.pnpm/chalk@5.0
|
|
879
|
+
// ../../node_modules/.pnpm/chalk@5.2.0/node_modules/chalk/source/vendor/supports-color/index.js
|
|
872
880
|
init_cjs_shims();
|
|
873
881
|
var import_node_process = __toESM(require("process"), 1);
|
|
874
882
|
var import_node_os = __toESM(require("os"), 1);
|
|
875
883
|
var import_node_tty = __toESM(require("tty"), 1);
|
|
876
|
-
function hasFlag(flag, argv = import_node_process.default.argv) {
|
|
884
|
+
function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : import_node_process.default.argv) {
|
|
877
885
|
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
878
886
|
const position = argv.indexOf(prefix + flag);
|
|
879
887
|
const terminatorPosition = argv.indexOf("--");
|
|
@@ -925,6 +933,9 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
|
925
933
|
return 2;
|
|
926
934
|
}
|
|
927
935
|
}
|
|
936
|
+
if ("TF_BUILD" in env && "AGENT_NAME" in env) {
|
|
937
|
+
return 1;
|
|
938
|
+
}
|
|
928
939
|
if (haveStream && !streamIsTTY && forceColor === void 0) {
|
|
929
940
|
return 0;
|
|
930
941
|
}
|
|
@@ -940,7 +951,10 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
|
940
951
|
return 1;
|
|
941
952
|
}
|
|
942
953
|
if ("CI" in env) {
|
|
943
|
-
if (
|
|
954
|
+
if ("GITHUB_ACTIONS" in env) {
|
|
955
|
+
return 3;
|
|
956
|
+
}
|
|
957
|
+
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
|
|
944
958
|
return 1;
|
|
945
959
|
}
|
|
946
960
|
return min;
|
|
@@ -948,19 +962,21 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
|
948
962
|
if ("TEAMCITY_VERSION" in env) {
|
|
949
963
|
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
950
964
|
}
|
|
951
|
-
if ("TF_BUILD" in env && "AGENT_NAME" in env) {
|
|
952
|
-
return 1;
|
|
953
|
-
}
|
|
954
965
|
if (env.COLORTERM === "truecolor") {
|
|
955
966
|
return 3;
|
|
956
967
|
}
|
|
968
|
+
if (env.TERM === "xterm-kitty") {
|
|
969
|
+
return 3;
|
|
970
|
+
}
|
|
957
971
|
if ("TERM_PROGRAM" in env) {
|
|
958
972
|
const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
959
973
|
switch (env.TERM_PROGRAM) {
|
|
960
|
-
case "iTerm.app":
|
|
974
|
+
case "iTerm.app": {
|
|
961
975
|
return version >= 3 ? 3 : 2;
|
|
962
|
-
|
|
976
|
+
}
|
|
977
|
+
case "Apple_Terminal": {
|
|
963
978
|
return 2;
|
|
979
|
+
}
|
|
964
980
|
}
|
|
965
981
|
}
|
|
966
982
|
if (/-256(color)?$/i.test(env.TERM)) {
|
|
@@ -987,7 +1003,7 @@ var supportsColor = {
|
|
|
987
1003
|
};
|
|
988
1004
|
var supports_color_default = supportsColor;
|
|
989
1005
|
|
|
990
|
-
// ../../node_modules/.pnpm/chalk@5.0
|
|
1006
|
+
// ../../node_modules/.pnpm/chalk@5.2.0/node_modules/chalk/source/utilities.js
|
|
991
1007
|
init_cjs_shims();
|
|
992
1008
|
function stringReplaceAll(string, substring, replacer) {
|
|
993
1009
|
let index = string.indexOf(substring);
|
|
@@ -998,7 +1014,7 @@ function stringReplaceAll(string, substring, replacer) {
|
|
|
998
1014
|
let endIndex = 0;
|
|
999
1015
|
let returnValue = "";
|
|
1000
1016
|
do {
|
|
1001
|
-
returnValue += string.
|
|
1017
|
+
returnValue += string.slice(endIndex, index) + substring + replacer;
|
|
1002
1018
|
endIndex = index + substringLength;
|
|
1003
1019
|
index = string.indexOf(substring, endIndex);
|
|
1004
1020
|
} while (index !== -1);
|
|
@@ -1010,7 +1026,7 @@ function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {
|
|
|
1010
1026
|
let returnValue = "";
|
|
1011
1027
|
do {
|
|
1012
1028
|
const gotCR = string[index - 1] === "\r";
|
|
1013
|
-
returnValue += string.
|
|
1029
|
+
returnValue += string.slice(endIndex, gotCR ? index - 1 : index) + prefix + (gotCR ? "\r\n" : "\n") + postfix;
|
|
1014
1030
|
endIndex = index + 1;
|
|
1015
1031
|
index = string.indexOf("\n", endIndex);
|
|
1016
1032
|
} while (index !== -1);
|
|
@@ -1018,7 +1034,7 @@ function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {
|
|
|
1018
1034
|
return returnValue;
|
|
1019
1035
|
}
|
|
1020
1036
|
|
|
1021
|
-
// ../../node_modules/.pnpm/chalk@5.0
|
|
1037
|
+
// ../../node_modules/.pnpm/chalk@5.2.0/node_modules/chalk/source/index.js
|
|
1022
1038
|
var { stdout: stdoutColor, stderr: stderrColor } = supports_color_default;
|
|
1023
1039
|
var GENERATOR = Symbol("GENERATOR");
|
|
1024
1040
|
var STYLER = Symbol("STYLER");
|
|
@@ -1029,7 +1045,7 @@ var levelMapping = [
|
|
|
1029
1045
|
"ansi256",
|
|
1030
1046
|
"ansi16m"
|
|
1031
1047
|
];
|
|
1032
|
-
var
|
|
1048
|
+
var styles2 = /* @__PURE__ */ Object.create(null);
|
|
1033
1049
|
var applyOptions = (object, options = {}) => {
|
|
1034
1050
|
if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) {
|
|
1035
1051
|
throw new Error("The `level` option should be an integer from 0 to 3");
|
|
@@ -1048,7 +1064,7 @@ function createChalk(options) {
|
|
|
1048
1064
|
}
|
|
1049
1065
|
Object.setPrototypeOf(createChalk.prototype, Function.prototype);
|
|
1050
1066
|
for (const [styleName, style] of Object.entries(ansi_styles_default)) {
|
|
1051
|
-
|
|
1067
|
+
styles2[styleName] = {
|
|
1052
1068
|
get() {
|
|
1053
1069
|
const builder = createBuilder(this, createStyler(style.open, style.close, this[STYLER]), this[IS_EMPTY]);
|
|
1054
1070
|
Object.defineProperty(this, styleName, { value: builder });
|
|
@@ -1056,7 +1072,7 @@ for (const [styleName, style] of Object.entries(ansi_styles_default)) {
|
|
|
1056
1072
|
}
|
|
1057
1073
|
};
|
|
1058
1074
|
}
|
|
1059
|
-
|
|
1075
|
+
styles2.visible = {
|
|
1060
1076
|
get() {
|
|
1061
1077
|
const builder = createBuilder(this, this[STYLER], true);
|
|
1062
1078
|
Object.defineProperty(this, "visible", { value: builder });
|
|
@@ -1080,7 +1096,7 @@ var getModelAnsi = (model, level, type, ...arguments_) => {
|
|
|
1080
1096
|
};
|
|
1081
1097
|
var usedModels = ["rgb", "hex", "ansi256"];
|
|
1082
1098
|
for (const model of usedModels) {
|
|
1083
|
-
|
|
1099
|
+
styles2[model] = {
|
|
1084
1100
|
get() {
|
|
1085
1101
|
const { level } = this;
|
|
1086
1102
|
return function(...arguments_) {
|
|
@@ -1090,7 +1106,7 @@ for (const model of usedModels) {
|
|
|
1090
1106
|
}
|
|
1091
1107
|
};
|
|
1092
1108
|
const bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
|
|
1093
|
-
|
|
1109
|
+
styles2[bgModel] = {
|
|
1094
1110
|
get() {
|
|
1095
1111
|
const { level } = this;
|
|
1096
1112
|
return function(...arguments_) {
|
|
@@ -1102,7 +1118,7 @@ for (const model of usedModels) {
|
|
|
1102
1118
|
}
|
|
1103
1119
|
var proto = Object.defineProperties(() => {
|
|
1104
1120
|
}, {
|
|
1105
|
-
...
|
|
1121
|
+
...styles2,
|
|
1106
1122
|
level: {
|
|
1107
1123
|
enumerable: true,
|
|
1108
1124
|
get() {
|
|
@@ -1160,7 +1176,7 @@ var applyStyle = (self, string) => {
|
|
|
1160
1176
|
}
|
|
1161
1177
|
return openAll + string + closeAll;
|
|
1162
1178
|
};
|
|
1163
|
-
Object.defineProperties(createChalk.prototype,
|
|
1179
|
+
Object.defineProperties(createChalk.prototype, styles2);
|
|
1164
1180
|
var chalk = createChalk();
|
|
1165
1181
|
var chalkStderr = createChalk({ level: stderrColor ? stderrColor.level : 0 });
|
|
1166
1182
|
var source_default = chalk;
|
|
@@ -1175,7 +1191,7 @@ function widestLine(string) {
|
|
|
1175
1191
|
return lineWidth;
|
|
1176
1192
|
}
|
|
1177
1193
|
|
|
1178
|
-
// ../../node_modules/.pnpm/boxen@7.0.
|
|
1194
|
+
// ../../node_modules/.pnpm/boxen@7.0.2/node_modules/boxen/index.js
|
|
1179
1195
|
var import_cli_boxes = __toESM(require_cli_boxes(), 1);
|
|
1180
1196
|
|
|
1181
1197
|
// ../../node_modules/.pnpm/camelcase@7.0.0/node_modules/camelcase/index.js
|
|
@@ -1259,7 +1275,7 @@ function camelCase(input, options) {
|
|
|
1259
1275
|
return postProcess(input, toUpperCase);
|
|
1260
1276
|
}
|
|
1261
1277
|
|
|
1262
|
-
// ../../node_modules/.pnpm/boxen@7.0.
|
|
1278
|
+
// ../../node_modules/.pnpm/boxen@7.0.2/node_modules/boxen/index.js
|
|
1263
1279
|
var import_ansi_align = __toESM(require_ansi_align(), 1);
|
|
1264
1280
|
|
|
1265
1281
|
// ../../node_modules/.pnpm/wrap-ansi@8.0.1/node_modules/wrap-ansi/index.js
|
|
@@ -1273,7 +1289,7 @@ var wrapAnsi2562 = (offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`;
|
|
|
1273
1289
|
var wrapAnsi16m2 = (offset = 0) => (red, green, blue) => `\x1B[${38 + offset};2;${red};${green};${blue}m`;
|
|
1274
1290
|
function assembleStyles2() {
|
|
1275
1291
|
const codes = /* @__PURE__ */ new Map();
|
|
1276
|
-
const
|
|
1292
|
+
const styles3 = {
|
|
1277
1293
|
modifier: {
|
|
1278
1294
|
reset: [0, 0],
|
|
1279
1295
|
// 21 isn't widely supported and 22 does the same thing
|
|
@@ -1325,37 +1341,37 @@ function assembleStyles2() {
|
|
|
1325
1341
|
bgWhiteBright: [107, 49]
|
|
1326
1342
|
}
|
|
1327
1343
|
};
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
for (const [groupName, group] of Object.entries(
|
|
1344
|
+
styles3.color.gray = styles3.color.blackBright;
|
|
1345
|
+
styles3.bgColor.bgGray = styles3.bgColor.bgBlackBright;
|
|
1346
|
+
styles3.color.grey = styles3.color.blackBright;
|
|
1347
|
+
styles3.bgColor.bgGrey = styles3.bgColor.bgBlackBright;
|
|
1348
|
+
for (const [groupName, group] of Object.entries(styles3)) {
|
|
1333
1349
|
for (const [styleName, style] of Object.entries(group)) {
|
|
1334
|
-
|
|
1350
|
+
styles3[styleName] = {
|
|
1335
1351
|
open: `\x1B[${style[0]}m`,
|
|
1336
1352
|
close: `\x1B[${style[1]}m`
|
|
1337
1353
|
};
|
|
1338
|
-
group[styleName] =
|
|
1354
|
+
group[styleName] = styles3[styleName];
|
|
1339
1355
|
codes.set(style[0], style[1]);
|
|
1340
1356
|
}
|
|
1341
|
-
Object.defineProperty(
|
|
1357
|
+
Object.defineProperty(styles3, groupName, {
|
|
1342
1358
|
value: group,
|
|
1343
1359
|
enumerable: false
|
|
1344
1360
|
});
|
|
1345
1361
|
}
|
|
1346
|
-
Object.defineProperty(
|
|
1362
|
+
Object.defineProperty(styles3, "codes", {
|
|
1347
1363
|
value: codes,
|
|
1348
1364
|
enumerable: false
|
|
1349
1365
|
});
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
Object.defineProperties(
|
|
1366
|
+
styles3.color.close = "\x1B[39m";
|
|
1367
|
+
styles3.bgColor.close = "\x1B[49m";
|
|
1368
|
+
styles3.color.ansi = wrapAnsi162();
|
|
1369
|
+
styles3.color.ansi256 = wrapAnsi2562();
|
|
1370
|
+
styles3.color.ansi16m = wrapAnsi16m2();
|
|
1371
|
+
styles3.bgColor.ansi = wrapAnsi162(ANSI_BACKGROUND_OFFSET2);
|
|
1372
|
+
styles3.bgColor.ansi256 = wrapAnsi2562(ANSI_BACKGROUND_OFFSET2);
|
|
1373
|
+
styles3.bgColor.ansi16m = wrapAnsi16m2(ANSI_BACKGROUND_OFFSET2);
|
|
1374
|
+
Object.defineProperties(styles3, {
|
|
1359
1375
|
rgbToAnsi256: {
|
|
1360
1376
|
value: (red, green, blue) => {
|
|
1361
1377
|
if (red === green && green === blue) {
|
|
@@ -1393,7 +1409,7 @@ function assembleStyles2() {
|
|
|
1393
1409
|
enumerable: false
|
|
1394
1410
|
},
|
|
1395
1411
|
hexToAnsi256: {
|
|
1396
|
-
value: (hex) =>
|
|
1412
|
+
value: (hex) => styles3.rgbToAnsi256(...styles3.hexToRgb(hex)),
|
|
1397
1413
|
enumerable: false
|
|
1398
1414
|
},
|
|
1399
1415
|
ansi256ToAnsi: {
|
|
@@ -1431,15 +1447,15 @@ function assembleStyles2() {
|
|
|
1431
1447
|
enumerable: false
|
|
1432
1448
|
},
|
|
1433
1449
|
rgbToAnsi: {
|
|
1434
|
-
value: (red, green, blue) =>
|
|
1450
|
+
value: (red, green, blue) => styles3.ansi256ToAnsi(styles3.rgbToAnsi256(red, green, blue)),
|
|
1435
1451
|
enumerable: false
|
|
1436
1452
|
},
|
|
1437
1453
|
hexToAnsi: {
|
|
1438
|
-
value: (hex) =>
|
|
1454
|
+
value: (hex) => styles3.ansi256ToAnsi(styles3.hexToAnsi256(hex)),
|
|
1439
1455
|
enumerable: false
|
|
1440
1456
|
}
|
|
1441
1457
|
});
|
|
1442
|
-
return
|
|
1458
|
+
return styles3;
|
|
1443
1459
|
}
|
|
1444
1460
|
var ansiStyles2 = assembleStyles2();
|
|
1445
1461
|
var ansi_styles_default2 = ansiStyles2;
|
|
@@ -1595,7 +1611,7 @@ function wrapAnsi(string, columns, options) {
|
|
|
1595
1611
|
return String(string).normalize().replace(/\r\n/g, "\n").split("\n").map((line) => exec(line, columns, options)).join("\n");
|
|
1596
1612
|
}
|
|
1597
1613
|
|
|
1598
|
-
// ../../node_modules/.pnpm/boxen@7.0.
|
|
1614
|
+
// ../../node_modules/.pnpm/boxen@7.0.2/node_modules/boxen/index.js
|
|
1599
1615
|
var import_cli_boxes2 = __toESM(require_cli_boxes(), 1);
|
|
1600
1616
|
var NEWLINE = "\n";
|
|
1601
1617
|
var PAD = " ";
|
package/dist/index.mjs
CHANGED
|
@@ -27,9 +27,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
27
27
|
mod
|
|
28
28
|
));
|
|
29
29
|
|
|
30
|
-
// ../../node_modules/.pnpm/tsup@6.7.0_typescript@
|
|
30
|
+
// ../../node_modules/.pnpm/tsup@6.7.0_typescript@5.0.2/node_modules/tsup/assets/esm_shims.js
|
|
31
31
|
var init_esm_shims = __esm({
|
|
32
|
-
"../../node_modules/.pnpm/tsup@6.7.0_typescript@
|
|
32
|
+
"../../node_modules/.pnpm/tsup@6.7.0_typescript@5.0.2/node_modules/tsup/assets/esm_shims.js"() {
|
|
33
33
|
}
|
|
34
34
|
});
|
|
35
35
|
|
|
@@ -603,7 +603,7 @@ import { Obj as Obj2, pipe as pipe2, tap as tap2, tryCatch } from "lil-fp";
|
|
|
603
603
|
// src/cli-box.ts
|
|
604
604
|
init_esm_shims();
|
|
605
605
|
|
|
606
|
-
// ../../node_modules/.pnpm/boxen@7.0.
|
|
606
|
+
// ../../node_modules/.pnpm/boxen@7.0.2/node_modules/boxen/index.js
|
|
607
607
|
init_esm_shims();
|
|
608
608
|
import process3 from "node:process";
|
|
609
609
|
|
|
@@ -673,102 +673,110 @@ function stringWidth(string, options = {}) {
|
|
|
673
673
|
return width;
|
|
674
674
|
}
|
|
675
675
|
|
|
676
|
-
// ../../node_modules/.pnpm/chalk@5.0
|
|
676
|
+
// ../../node_modules/.pnpm/chalk@5.2.0/node_modules/chalk/source/index.js
|
|
677
677
|
init_esm_shims();
|
|
678
678
|
|
|
679
|
-
// ../../node_modules/.pnpm/chalk@5.0
|
|
679
|
+
// ../../node_modules/.pnpm/chalk@5.2.0/node_modules/chalk/source/vendor/ansi-styles/index.js
|
|
680
680
|
init_esm_shims();
|
|
681
681
|
var ANSI_BACKGROUND_OFFSET = 10;
|
|
682
682
|
var wrapAnsi16 = (offset = 0) => (code) => `\x1B[${code + offset}m`;
|
|
683
683
|
var wrapAnsi256 = (offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`;
|
|
684
684
|
var wrapAnsi16m = (offset = 0) => (red, green, blue) => `\x1B[${38 + offset};2;${red};${green};${blue}m`;
|
|
685
|
+
var styles = {
|
|
686
|
+
modifier: {
|
|
687
|
+
reset: [0, 0],
|
|
688
|
+
// 21 isn't widely supported and 22 does the same thing
|
|
689
|
+
bold: [1, 22],
|
|
690
|
+
dim: [2, 22],
|
|
691
|
+
italic: [3, 23],
|
|
692
|
+
underline: [4, 24],
|
|
693
|
+
overline: [53, 55],
|
|
694
|
+
inverse: [7, 27],
|
|
695
|
+
hidden: [8, 28],
|
|
696
|
+
strikethrough: [9, 29]
|
|
697
|
+
},
|
|
698
|
+
color: {
|
|
699
|
+
black: [30, 39],
|
|
700
|
+
red: [31, 39],
|
|
701
|
+
green: [32, 39],
|
|
702
|
+
yellow: [33, 39],
|
|
703
|
+
blue: [34, 39],
|
|
704
|
+
magenta: [35, 39],
|
|
705
|
+
cyan: [36, 39],
|
|
706
|
+
white: [37, 39],
|
|
707
|
+
// Bright color
|
|
708
|
+
blackBright: [90, 39],
|
|
709
|
+
gray: [90, 39],
|
|
710
|
+
// Alias of `blackBright`
|
|
711
|
+
grey: [90, 39],
|
|
712
|
+
// Alias of `blackBright`
|
|
713
|
+
redBright: [91, 39],
|
|
714
|
+
greenBright: [92, 39],
|
|
715
|
+
yellowBright: [93, 39],
|
|
716
|
+
blueBright: [94, 39],
|
|
717
|
+
magentaBright: [95, 39],
|
|
718
|
+
cyanBright: [96, 39],
|
|
719
|
+
whiteBright: [97, 39]
|
|
720
|
+
},
|
|
721
|
+
bgColor: {
|
|
722
|
+
bgBlack: [40, 49],
|
|
723
|
+
bgRed: [41, 49],
|
|
724
|
+
bgGreen: [42, 49],
|
|
725
|
+
bgYellow: [43, 49],
|
|
726
|
+
bgBlue: [44, 49],
|
|
727
|
+
bgMagenta: [45, 49],
|
|
728
|
+
bgCyan: [46, 49],
|
|
729
|
+
bgWhite: [47, 49],
|
|
730
|
+
// Bright color
|
|
731
|
+
bgBlackBright: [100, 49],
|
|
732
|
+
bgGray: [100, 49],
|
|
733
|
+
// Alias of `bgBlackBright`
|
|
734
|
+
bgGrey: [100, 49],
|
|
735
|
+
// Alias of `bgBlackBright`
|
|
736
|
+
bgRedBright: [101, 49],
|
|
737
|
+
bgGreenBright: [102, 49],
|
|
738
|
+
bgYellowBright: [103, 49],
|
|
739
|
+
bgBlueBright: [104, 49],
|
|
740
|
+
bgMagentaBright: [105, 49],
|
|
741
|
+
bgCyanBright: [106, 49],
|
|
742
|
+
bgWhiteBright: [107, 49]
|
|
743
|
+
}
|
|
744
|
+
};
|
|
745
|
+
var modifierNames = Object.keys(styles.modifier);
|
|
746
|
+
var foregroundColorNames = Object.keys(styles.color);
|
|
747
|
+
var backgroundColorNames = Object.keys(styles.bgColor);
|
|
748
|
+
var colorNames = [...foregroundColorNames, ...backgroundColorNames];
|
|
685
749
|
function assembleStyles() {
|
|
686
750
|
const codes = /* @__PURE__ */ new Map();
|
|
687
|
-
const
|
|
688
|
-
modifier: {
|
|
689
|
-
reset: [0, 0],
|
|
690
|
-
// 21 isn't widely supported and 22 does the same thing
|
|
691
|
-
bold: [1, 22],
|
|
692
|
-
dim: [2, 22],
|
|
693
|
-
italic: [3, 23],
|
|
694
|
-
underline: [4, 24],
|
|
695
|
-
overline: [53, 55],
|
|
696
|
-
inverse: [7, 27],
|
|
697
|
-
hidden: [8, 28],
|
|
698
|
-
strikethrough: [9, 29]
|
|
699
|
-
},
|
|
700
|
-
color: {
|
|
701
|
-
black: [30, 39],
|
|
702
|
-
red: [31, 39],
|
|
703
|
-
green: [32, 39],
|
|
704
|
-
yellow: [33, 39],
|
|
705
|
-
blue: [34, 39],
|
|
706
|
-
magenta: [35, 39],
|
|
707
|
-
cyan: [36, 39],
|
|
708
|
-
white: [37, 39],
|
|
709
|
-
// Bright color
|
|
710
|
-
blackBright: [90, 39],
|
|
711
|
-
redBright: [91, 39],
|
|
712
|
-
greenBright: [92, 39],
|
|
713
|
-
yellowBright: [93, 39],
|
|
714
|
-
blueBright: [94, 39],
|
|
715
|
-
magentaBright: [95, 39],
|
|
716
|
-
cyanBright: [96, 39],
|
|
717
|
-
whiteBright: [97, 39]
|
|
718
|
-
},
|
|
719
|
-
bgColor: {
|
|
720
|
-
bgBlack: [40, 49],
|
|
721
|
-
bgRed: [41, 49],
|
|
722
|
-
bgGreen: [42, 49],
|
|
723
|
-
bgYellow: [43, 49],
|
|
724
|
-
bgBlue: [44, 49],
|
|
725
|
-
bgMagenta: [45, 49],
|
|
726
|
-
bgCyan: [46, 49],
|
|
727
|
-
bgWhite: [47, 49],
|
|
728
|
-
// Bright color
|
|
729
|
-
bgBlackBright: [100, 49],
|
|
730
|
-
bgRedBright: [101, 49],
|
|
731
|
-
bgGreenBright: [102, 49],
|
|
732
|
-
bgYellowBright: [103, 49],
|
|
733
|
-
bgBlueBright: [104, 49],
|
|
734
|
-
bgMagentaBright: [105, 49],
|
|
735
|
-
bgCyanBright: [106, 49],
|
|
736
|
-
bgWhiteBright: [107, 49]
|
|
737
|
-
}
|
|
738
|
-
};
|
|
739
|
-
styles2.color.gray = styles2.color.blackBright;
|
|
740
|
-
styles2.bgColor.bgGray = styles2.bgColor.bgBlackBright;
|
|
741
|
-
styles2.color.grey = styles2.color.blackBright;
|
|
742
|
-
styles2.bgColor.bgGrey = styles2.bgColor.bgBlackBright;
|
|
743
|
-
for (const [groupName, group] of Object.entries(styles2)) {
|
|
751
|
+
for (const [groupName, group] of Object.entries(styles)) {
|
|
744
752
|
for (const [styleName, style] of Object.entries(group)) {
|
|
745
|
-
|
|
753
|
+
styles[styleName] = {
|
|
746
754
|
open: `\x1B[${style[0]}m`,
|
|
747
755
|
close: `\x1B[${style[1]}m`
|
|
748
756
|
};
|
|
749
|
-
group[styleName] =
|
|
757
|
+
group[styleName] = styles[styleName];
|
|
750
758
|
codes.set(style[0], style[1]);
|
|
751
759
|
}
|
|
752
|
-
Object.defineProperty(
|
|
760
|
+
Object.defineProperty(styles, groupName, {
|
|
753
761
|
value: group,
|
|
754
762
|
enumerable: false
|
|
755
763
|
});
|
|
756
764
|
}
|
|
757
|
-
Object.defineProperty(
|
|
765
|
+
Object.defineProperty(styles, "codes", {
|
|
758
766
|
value: codes,
|
|
759
767
|
enumerable: false
|
|
760
768
|
});
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
Object.defineProperties(
|
|
769
|
+
styles.color.close = "\x1B[39m";
|
|
770
|
+
styles.bgColor.close = "\x1B[49m";
|
|
771
|
+
styles.color.ansi = wrapAnsi16();
|
|
772
|
+
styles.color.ansi256 = wrapAnsi256();
|
|
773
|
+
styles.color.ansi16m = wrapAnsi16m();
|
|
774
|
+
styles.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);
|
|
775
|
+
styles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
|
|
776
|
+
styles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
|
|
777
|
+
Object.defineProperties(styles, {
|
|
770
778
|
rgbToAnsi256: {
|
|
771
|
-
value
|
|
779
|
+
value(red, green, blue) {
|
|
772
780
|
if (red === green && green === blue) {
|
|
773
781
|
if (red < 8) {
|
|
774
782
|
return 16;
|
|
@@ -783,12 +791,12 @@ function assembleStyles() {
|
|
|
783
791
|
enumerable: false
|
|
784
792
|
},
|
|
785
793
|
hexToRgb: {
|
|
786
|
-
value
|
|
787
|
-
const matches = /
|
|
794
|
+
value(hex) {
|
|
795
|
+
const matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
|
|
788
796
|
if (!matches) {
|
|
789
797
|
return [0, 0, 0];
|
|
790
798
|
}
|
|
791
|
-
let
|
|
799
|
+
let [colorString] = matches;
|
|
792
800
|
if (colorString.length === 3) {
|
|
793
801
|
colorString = [...colorString].map((character) => character + character).join("");
|
|
794
802
|
}
|
|
@@ -804,11 +812,11 @@ function assembleStyles() {
|
|
|
804
812
|
enumerable: false
|
|
805
813
|
},
|
|
806
814
|
hexToAnsi256: {
|
|
807
|
-
value: (hex) =>
|
|
815
|
+
value: (hex) => styles.rgbToAnsi256(...styles.hexToRgb(hex)),
|
|
808
816
|
enumerable: false
|
|
809
817
|
},
|
|
810
818
|
ansi256ToAnsi: {
|
|
811
|
-
value
|
|
819
|
+
value(code) {
|
|
812
820
|
if (code < 8) {
|
|
813
821
|
return 30 + code;
|
|
814
822
|
}
|
|
@@ -842,25 +850,25 @@ function assembleStyles() {
|
|
|
842
850
|
enumerable: false
|
|
843
851
|
},
|
|
844
852
|
rgbToAnsi: {
|
|
845
|
-
value: (red, green, blue) =>
|
|
853
|
+
value: (red, green, blue) => styles.ansi256ToAnsi(styles.rgbToAnsi256(red, green, blue)),
|
|
846
854
|
enumerable: false
|
|
847
855
|
},
|
|
848
856
|
hexToAnsi: {
|
|
849
|
-
value: (hex) =>
|
|
857
|
+
value: (hex) => styles.ansi256ToAnsi(styles.hexToAnsi256(hex)),
|
|
850
858
|
enumerable: false
|
|
851
859
|
}
|
|
852
860
|
});
|
|
853
|
-
return
|
|
861
|
+
return styles;
|
|
854
862
|
}
|
|
855
863
|
var ansiStyles = assembleStyles();
|
|
856
864
|
var ansi_styles_default = ansiStyles;
|
|
857
865
|
|
|
858
|
-
// ../../node_modules/.pnpm/chalk@5.0
|
|
866
|
+
// ../../node_modules/.pnpm/chalk@5.2.0/node_modules/chalk/source/vendor/supports-color/index.js
|
|
859
867
|
init_esm_shims();
|
|
860
868
|
import process2 from "node:process";
|
|
861
869
|
import os from "node:os";
|
|
862
870
|
import tty from "node:tty";
|
|
863
|
-
function hasFlag(flag, argv = process2.argv) {
|
|
871
|
+
function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : process2.argv) {
|
|
864
872
|
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
865
873
|
const position = argv.indexOf(prefix + flag);
|
|
866
874
|
const terminatorPosition = argv.indexOf("--");
|
|
@@ -912,6 +920,9 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
|
912
920
|
return 2;
|
|
913
921
|
}
|
|
914
922
|
}
|
|
923
|
+
if ("TF_BUILD" in env && "AGENT_NAME" in env) {
|
|
924
|
+
return 1;
|
|
925
|
+
}
|
|
915
926
|
if (haveStream && !streamIsTTY && forceColor === void 0) {
|
|
916
927
|
return 0;
|
|
917
928
|
}
|
|
@@ -927,7 +938,10 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
|
927
938
|
return 1;
|
|
928
939
|
}
|
|
929
940
|
if ("CI" in env) {
|
|
930
|
-
if (
|
|
941
|
+
if ("GITHUB_ACTIONS" in env) {
|
|
942
|
+
return 3;
|
|
943
|
+
}
|
|
944
|
+
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
|
|
931
945
|
return 1;
|
|
932
946
|
}
|
|
933
947
|
return min;
|
|
@@ -935,19 +949,21 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
|
935
949
|
if ("TEAMCITY_VERSION" in env) {
|
|
936
950
|
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
937
951
|
}
|
|
938
|
-
if ("TF_BUILD" in env && "AGENT_NAME" in env) {
|
|
939
|
-
return 1;
|
|
940
|
-
}
|
|
941
952
|
if (env.COLORTERM === "truecolor") {
|
|
942
953
|
return 3;
|
|
943
954
|
}
|
|
955
|
+
if (env.TERM === "xterm-kitty") {
|
|
956
|
+
return 3;
|
|
957
|
+
}
|
|
944
958
|
if ("TERM_PROGRAM" in env) {
|
|
945
959
|
const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
946
960
|
switch (env.TERM_PROGRAM) {
|
|
947
|
-
case "iTerm.app":
|
|
961
|
+
case "iTerm.app": {
|
|
948
962
|
return version >= 3 ? 3 : 2;
|
|
949
|
-
|
|
963
|
+
}
|
|
964
|
+
case "Apple_Terminal": {
|
|
950
965
|
return 2;
|
|
966
|
+
}
|
|
951
967
|
}
|
|
952
968
|
}
|
|
953
969
|
if (/-256(color)?$/i.test(env.TERM)) {
|
|
@@ -974,7 +990,7 @@ var supportsColor = {
|
|
|
974
990
|
};
|
|
975
991
|
var supports_color_default = supportsColor;
|
|
976
992
|
|
|
977
|
-
// ../../node_modules/.pnpm/chalk@5.0
|
|
993
|
+
// ../../node_modules/.pnpm/chalk@5.2.0/node_modules/chalk/source/utilities.js
|
|
978
994
|
init_esm_shims();
|
|
979
995
|
function stringReplaceAll(string, substring, replacer) {
|
|
980
996
|
let index = string.indexOf(substring);
|
|
@@ -985,7 +1001,7 @@ function stringReplaceAll(string, substring, replacer) {
|
|
|
985
1001
|
let endIndex = 0;
|
|
986
1002
|
let returnValue = "";
|
|
987
1003
|
do {
|
|
988
|
-
returnValue += string.
|
|
1004
|
+
returnValue += string.slice(endIndex, index) + substring + replacer;
|
|
989
1005
|
endIndex = index + substringLength;
|
|
990
1006
|
index = string.indexOf(substring, endIndex);
|
|
991
1007
|
} while (index !== -1);
|
|
@@ -997,7 +1013,7 @@ function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {
|
|
|
997
1013
|
let returnValue = "";
|
|
998
1014
|
do {
|
|
999
1015
|
const gotCR = string[index - 1] === "\r";
|
|
1000
|
-
returnValue += string.
|
|
1016
|
+
returnValue += string.slice(endIndex, gotCR ? index - 1 : index) + prefix + (gotCR ? "\r\n" : "\n") + postfix;
|
|
1001
1017
|
endIndex = index + 1;
|
|
1002
1018
|
index = string.indexOf("\n", endIndex);
|
|
1003
1019
|
} while (index !== -1);
|
|
@@ -1005,7 +1021,7 @@ function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {
|
|
|
1005
1021
|
return returnValue;
|
|
1006
1022
|
}
|
|
1007
1023
|
|
|
1008
|
-
// ../../node_modules/.pnpm/chalk@5.0
|
|
1024
|
+
// ../../node_modules/.pnpm/chalk@5.2.0/node_modules/chalk/source/index.js
|
|
1009
1025
|
var { stdout: stdoutColor, stderr: stderrColor } = supports_color_default;
|
|
1010
1026
|
var GENERATOR = Symbol("GENERATOR");
|
|
1011
1027
|
var STYLER = Symbol("STYLER");
|
|
@@ -1016,7 +1032,7 @@ var levelMapping = [
|
|
|
1016
1032
|
"ansi256",
|
|
1017
1033
|
"ansi16m"
|
|
1018
1034
|
];
|
|
1019
|
-
var
|
|
1035
|
+
var styles2 = /* @__PURE__ */ Object.create(null);
|
|
1020
1036
|
var applyOptions = (object, options = {}) => {
|
|
1021
1037
|
if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) {
|
|
1022
1038
|
throw new Error("The `level` option should be an integer from 0 to 3");
|
|
@@ -1035,7 +1051,7 @@ function createChalk(options) {
|
|
|
1035
1051
|
}
|
|
1036
1052
|
Object.setPrototypeOf(createChalk.prototype, Function.prototype);
|
|
1037
1053
|
for (const [styleName, style] of Object.entries(ansi_styles_default)) {
|
|
1038
|
-
|
|
1054
|
+
styles2[styleName] = {
|
|
1039
1055
|
get() {
|
|
1040
1056
|
const builder = createBuilder(this, createStyler(style.open, style.close, this[STYLER]), this[IS_EMPTY]);
|
|
1041
1057
|
Object.defineProperty(this, styleName, { value: builder });
|
|
@@ -1043,7 +1059,7 @@ for (const [styleName, style] of Object.entries(ansi_styles_default)) {
|
|
|
1043
1059
|
}
|
|
1044
1060
|
};
|
|
1045
1061
|
}
|
|
1046
|
-
|
|
1062
|
+
styles2.visible = {
|
|
1047
1063
|
get() {
|
|
1048
1064
|
const builder = createBuilder(this, this[STYLER], true);
|
|
1049
1065
|
Object.defineProperty(this, "visible", { value: builder });
|
|
@@ -1067,7 +1083,7 @@ var getModelAnsi = (model, level, type, ...arguments_) => {
|
|
|
1067
1083
|
};
|
|
1068
1084
|
var usedModels = ["rgb", "hex", "ansi256"];
|
|
1069
1085
|
for (const model of usedModels) {
|
|
1070
|
-
|
|
1086
|
+
styles2[model] = {
|
|
1071
1087
|
get() {
|
|
1072
1088
|
const { level } = this;
|
|
1073
1089
|
return function(...arguments_) {
|
|
@@ -1077,7 +1093,7 @@ for (const model of usedModels) {
|
|
|
1077
1093
|
}
|
|
1078
1094
|
};
|
|
1079
1095
|
const bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
|
|
1080
|
-
|
|
1096
|
+
styles2[bgModel] = {
|
|
1081
1097
|
get() {
|
|
1082
1098
|
const { level } = this;
|
|
1083
1099
|
return function(...arguments_) {
|
|
@@ -1089,7 +1105,7 @@ for (const model of usedModels) {
|
|
|
1089
1105
|
}
|
|
1090
1106
|
var proto = Object.defineProperties(() => {
|
|
1091
1107
|
}, {
|
|
1092
|
-
...
|
|
1108
|
+
...styles2,
|
|
1093
1109
|
level: {
|
|
1094
1110
|
enumerable: true,
|
|
1095
1111
|
get() {
|
|
@@ -1147,7 +1163,7 @@ var applyStyle = (self, string) => {
|
|
|
1147
1163
|
}
|
|
1148
1164
|
return openAll + string + closeAll;
|
|
1149
1165
|
};
|
|
1150
|
-
Object.defineProperties(createChalk.prototype,
|
|
1166
|
+
Object.defineProperties(createChalk.prototype, styles2);
|
|
1151
1167
|
var chalk = createChalk();
|
|
1152
1168
|
var chalkStderr = createChalk({ level: stderrColor ? stderrColor.level : 0 });
|
|
1153
1169
|
var source_default = chalk;
|
|
@@ -1162,7 +1178,7 @@ function widestLine(string) {
|
|
|
1162
1178
|
return lineWidth;
|
|
1163
1179
|
}
|
|
1164
1180
|
|
|
1165
|
-
// ../../node_modules/.pnpm/boxen@7.0.
|
|
1181
|
+
// ../../node_modules/.pnpm/boxen@7.0.2/node_modules/boxen/index.js
|
|
1166
1182
|
var import_cli_boxes = __toESM(require_cli_boxes(), 1);
|
|
1167
1183
|
|
|
1168
1184
|
// ../../node_modules/.pnpm/camelcase@7.0.0/node_modules/camelcase/index.js
|
|
@@ -1246,7 +1262,7 @@ function camelCase(input, options) {
|
|
|
1246
1262
|
return postProcess(input, toUpperCase);
|
|
1247
1263
|
}
|
|
1248
1264
|
|
|
1249
|
-
// ../../node_modules/.pnpm/boxen@7.0.
|
|
1265
|
+
// ../../node_modules/.pnpm/boxen@7.0.2/node_modules/boxen/index.js
|
|
1250
1266
|
var import_ansi_align = __toESM(require_ansi_align(), 1);
|
|
1251
1267
|
|
|
1252
1268
|
// ../../node_modules/.pnpm/wrap-ansi@8.0.1/node_modules/wrap-ansi/index.js
|
|
@@ -1260,7 +1276,7 @@ var wrapAnsi2562 = (offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`;
|
|
|
1260
1276
|
var wrapAnsi16m2 = (offset = 0) => (red, green, blue) => `\x1B[${38 + offset};2;${red};${green};${blue}m`;
|
|
1261
1277
|
function assembleStyles2() {
|
|
1262
1278
|
const codes = /* @__PURE__ */ new Map();
|
|
1263
|
-
const
|
|
1279
|
+
const styles3 = {
|
|
1264
1280
|
modifier: {
|
|
1265
1281
|
reset: [0, 0],
|
|
1266
1282
|
// 21 isn't widely supported and 22 does the same thing
|
|
@@ -1312,37 +1328,37 @@ function assembleStyles2() {
|
|
|
1312
1328
|
bgWhiteBright: [107, 49]
|
|
1313
1329
|
}
|
|
1314
1330
|
};
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
for (const [groupName, group] of Object.entries(
|
|
1331
|
+
styles3.color.gray = styles3.color.blackBright;
|
|
1332
|
+
styles3.bgColor.bgGray = styles3.bgColor.bgBlackBright;
|
|
1333
|
+
styles3.color.grey = styles3.color.blackBright;
|
|
1334
|
+
styles3.bgColor.bgGrey = styles3.bgColor.bgBlackBright;
|
|
1335
|
+
for (const [groupName, group] of Object.entries(styles3)) {
|
|
1320
1336
|
for (const [styleName, style] of Object.entries(group)) {
|
|
1321
|
-
|
|
1337
|
+
styles3[styleName] = {
|
|
1322
1338
|
open: `\x1B[${style[0]}m`,
|
|
1323
1339
|
close: `\x1B[${style[1]}m`
|
|
1324
1340
|
};
|
|
1325
|
-
group[styleName] =
|
|
1341
|
+
group[styleName] = styles3[styleName];
|
|
1326
1342
|
codes.set(style[0], style[1]);
|
|
1327
1343
|
}
|
|
1328
|
-
Object.defineProperty(
|
|
1344
|
+
Object.defineProperty(styles3, groupName, {
|
|
1329
1345
|
value: group,
|
|
1330
1346
|
enumerable: false
|
|
1331
1347
|
});
|
|
1332
1348
|
}
|
|
1333
|
-
Object.defineProperty(
|
|
1349
|
+
Object.defineProperty(styles3, "codes", {
|
|
1334
1350
|
value: codes,
|
|
1335
1351
|
enumerable: false
|
|
1336
1352
|
});
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
Object.defineProperties(
|
|
1353
|
+
styles3.color.close = "\x1B[39m";
|
|
1354
|
+
styles3.bgColor.close = "\x1B[49m";
|
|
1355
|
+
styles3.color.ansi = wrapAnsi162();
|
|
1356
|
+
styles3.color.ansi256 = wrapAnsi2562();
|
|
1357
|
+
styles3.color.ansi16m = wrapAnsi16m2();
|
|
1358
|
+
styles3.bgColor.ansi = wrapAnsi162(ANSI_BACKGROUND_OFFSET2);
|
|
1359
|
+
styles3.bgColor.ansi256 = wrapAnsi2562(ANSI_BACKGROUND_OFFSET2);
|
|
1360
|
+
styles3.bgColor.ansi16m = wrapAnsi16m2(ANSI_BACKGROUND_OFFSET2);
|
|
1361
|
+
Object.defineProperties(styles3, {
|
|
1346
1362
|
rgbToAnsi256: {
|
|
1347
1363
|
value: (red, green, blue) => {
|
|
1348
1364
|
if (red === green && green === blue) {
|
|
@@ -1380,7 +1396,7 @@ function assembleStyles2() {
|
|
|
1380
1396
|
enumerable: false
|
|
1381
1397
|
},
|
|
1382
1398
|
hexToAnsi256: {
|
|
1383
|
-
value: (hex) =>
|
|
1399
|
+
value: (hex) => styles3.rgbToAnsi256(...styles3.hexToRgb(hex)),
|
|
1384
1400
|
enumerable: false
|
|
1385
1401
|
},
|
|
1386
1402
|
ansi256ToAnsi: {
|
|
@@ -1418,15 +1434,15 @@ function assembleStyles2() {
|
|
|
1418
1434
|
enumerable: false
|
|
1419
1435
|
},
|
|
1420
1436
|
rgbToAnsi: {
|
|
1421
|
-
value: (red, green, blue) =>
|
|
1437
|
+
value: (red, green, blue) => styles3.ansi256ToAnsi(styles3.rgbToAnsi256(red, green, blue)),
|
|
1422
1438
|
enumerable: false
|
|
1423
1439
|
},
|
|
1424
1440
|
hexToAnsi: {
|
|
1425
|
-
value: (hex) =>
|
|
1441
|
+
value: (hex) => styles3.ansi256ToAnsi(styles3.hexToAnsi256(hex)),
|
|
1426
1442
|
enumerable: false
|
|
1427
1443
|
}
|
|
1428
1444
|
});
|
|
1429
|
-
return
|
|
1445
|
+
return styles3;
|
|
1430
1446
|
}
|
|
1431
1447
|
var ansiStyles2 = assembleStyles2();
|
|
1432
1448
|
var ansi_styles_default2 = ansiStyles2;
|
|
@@ -1582,7 +1598,7 @@ function wrapAnsi(string, columns, options) {
|
|
|
1582
1598
|
return String(string).normalize().replace(/\r\n/g, "\n").split("\n").map((line) => exec(line, columns, options)).join("\n");
|
|
1583
1599
|
}
|
|
1584
1600
|
|
|
1585
|
-
// ../../node_modules/.pnpm/boxen@7.0.
|
|
1601
|
+
// ../../node_modules/.pnpm/boxen@7.0.2/node_modules/boxen/index.js
|
|
1586
1602
|
var import_cli_boxes2 = __toESM(require_cli_boxes(), 1);
|
|
1587
1603
|
var NEWLINE = "\n";
|
|
1588
1604
|
var PAD = " ";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pandacss/node",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20230321125457",
|
|
4
4
|
"description": "The core css panda library",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -31,16 +31,16 @@
|
|
|
31
31
|
"preferred-pm": "^3.0.3",
|
|
32
32
|
"ts-pattern": "4.2.1",
|
|
33
33
|
"ts-morph": "17.0.1",
|
|
34
|
-
"@pandacss/config": "0.0.0-dev-
|
|
35
|
-
"@pandacss/generator": "0.0.0-dev-
|
|
36
|
-
"@pandacss/core": "0.0.0-dev-
|
|
37
|
-
"@pandacss/error": "0.0.0-dev-
|
|
38
|
-
"@pandacss/is-valid-prop": "0.0.0-dev-
|
|
39
|
-
"@pandacss/logger": "0.0.0-dev-
|
|
40
|
-
"@pandacss/parser": "0.0.0-dev-
|
|
41
|
-
"@pandacss/shared": "0.0.0-dev-
|
|
42
|
-
"@pandacss/token-dictionary": "0.0.0-dev-
|
|
43
|
-
"@pandacss/types": "0.0.0-dev-
|
|
34
|
+
"@pandacss/config": "0.0.0-dev-20230321125457",
|
|
35
|
+
"@pandacss/generator": "0.0.0-dev-20230321125457",
|
|
36
|
+
"@pandacss/core": "0.0.0-dev-20230321125457",
|
|
37
|
+
"@pandacss/error": "0.0.0-dev-20230321125457",
|
|
38
|
+
"@pandacss/is-valid-prop": "0.0.0-dev-20230321125457",
|
|
39
|
+
"@pandacss/logger": "0.0.0-dev-20230321125457",
|
|
40
|
+
"@pandacss/parser": "0.0.0-dev-20230321125457",
|
|
41
|
+
"@pandacss/shared": "0.0.0-dev-20230321125457",
|
|
42
|
+
"@pandacss/token-dictionary": "0.0.0-dev-20230321125457",
|
|
43
|
+
"@pandacss/types": "0.0.0-dev-20230321125457"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@types/fs-extra": "11.0.1",
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"@types/is-glob": "^4.0.2",
|
|
49
49
|
"@types/lodash.merge": "4.6.7",
|
|
50
50
|
"@types/pluralize": "0.0.29",
|
|
51
|
-
"boxen": "^7.0.
|
|
52
|
-
"@pandacss/fixture": "0.0.0-dev-
|
|
51
|
+
"boxen": "^7.0.2",
|
|
52
|
+
"@pandacss/fixture": "0.0.0-dev-20230321125457"
|
|
53
53
|
},
|
|
54
54
|
"scripts": {
|
|
55
55
|
"build": "tsup src/index.ts --format=cjs,esm --shims --dts",
|