@visulima/colorize 1.4.27 → 1.4.28

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 (77) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/ansi-codes.d.cts +18 -0
  3. package/dist/ansi-codes.d.mts +18 -0
  4. package/dist/ansi-codes.d.ts +18 -0
  5. package/dist/colorize.browser.d.mts +3 -0
  6. package/dist/colorize.server.d.cts +10 -0
  7. package/dist/colorize.server.d.mts +10 -0
  8. package/dist/colorize.server.d.ts +10 -0
  9. package/dist/css-code.d.mts +11 -0
  10. package/dist/gradient/gradient-builder.d.cts +10 -0
  11. package/dist/gradient/gradient-builder.d.mts +10 -0
  12. package/dist/gradient/gradient-builder.d.ts +10 -0
  13. package/dist/gradient/util/color-names.d.cts +2 -0
  14. package/dist/gradient/util/color-names.d.mts +2 -0
  15. package/dist/gradient/util/color-names.d.ts +2 -0
  16. package/dist/gradient/util/compute.d.cts +2 -0
  17. package/dist/gradient/util/compute.d.mts +2 -0
  18. package/dist/gradient/util/compute.d.ts +2 -0
  19. package/dist/gradient/util/hsv-to-rgb.d.cts +5 -0
  20. package/dist/gradient/util/hsv-to-rgb.d.mts +5 -0
  21. package/dist/gradient/util/hsv-to-rgb.d.ts +5 -0
  22. package/dist/gradient/util/interpolate.d.cts +3 -0
  23. package/dist/gradient/util/interpolate.d.mts +3 -0
  24. package/dist/gradient/util/interpolate.d.ts +3 -0
  25. package/dist/gradient/util/rgb-to-hsv.d.cts +9 -0
  26. package/dist/gradient/util/rgb-to-hsv.d.mts +9 -0
  27. package/dist/gradient/util/rgb-to-hsv.d.ts +9 -0
  28. package/dist/gradient.d.cts +4 -16
  29. package/dist/gradient.d.mts +4 -16
  30. package/dist/gradient.d.ts +4 -16
  31. package/dist/index.browser.d.mts +60 -64
  32. package/dist/index.browser.mjs +56 -58
  33. package/dist/index.server.cjs +3 -6
  34. package/dist/index.server.d.cts +7 -73
  35. package/dist/index.server.d.mts +60 -64
  36. package/dist/index.server.d.ts +8 -65
  37. package/dist/index.server.mjs +56 -58
  38. package/dist/template/make-colorize-template.d.cts +9 -0
  39. package/dist/template/make-colorize-template.d.mts +9 -0
  40. package/dist/template/make-colorize-template.d.ts +9 -0
  41. package/dist/template/make-template.d.cts +10 -0
  42. package/dist/template/make-template.d.mts +10 -0
  43. package/dist/template/make-template.d.ts +10 -0
  44. package/dist/template.cjs +2 -2
  45. package/dist/template.d.cts +5 -11
  46. package/dist/template.d.mts +5 -7
  47. package/dist/template.d.ts +5 -11
  48. package/dist/template.mjs +2 -2
  49. package/dist/types.d.cts +174 -0
  50. package/dist/types.d.mts +174 -0
  51. package/dist/types.d.ts +174 -0
  52. package/dist/util/ansi-code-hex-map.d.mts +8 -0
  53. package/dist/util/clamp.d.cts +12 -0
  54. package/dist/util/clamp.d.mts +12 -0
  55. package/dist/util/clamp.d.ts +12 -0
  56. package/dist/util/convert-hex-to-rgb.d.cts +22 -0
  57. package/dist/util/convert-hex-to-rgb.d.mts +22 -0
  58. package/dist/util/convert-hex-to-rgb.d.ts +22 -0
  59. package/dist/util/convert-rgb-to-ansi.d.cts +18 -0
  60. package/dist/util/convert-rgb-to-ansi.d.mts +18 -0
  61. package/dist/util/convert-rgb-to-ansi.d.ts +18 -0
  62. package/dist/util/string-replace-all.d.cts +12 -0
  63. package/dist/util/string-replace-all.d.mts +12 -0
  64. package/dist/util/string-replace-all.d.ts +12 -0
  65. package/dist/util/unescape.d.cts +9 -0
  66. package/dist/util/unescape.d.mts +9 -0
  67. package/dist/util/unescape.d.ts +9 -0
  68. package/dist/utils.d.cts +2 -9
  69. package/dist/utils.d.mts +2 -9
  70. package/dist/utils.d.ts +2 -9
  71. package/package.json +2 -2
  72. package/dist/index.browser.d.ts +0 -65
  73. package/dist/packem_shared/types-CuuGv4d0.d.cts +0 -81
  74. package/dist/packem_shared/types-CuuGv4d0.d.mts +0 -81
  75. package/dist/packem_shared/types-CuuGv4d0.d.ts +0 -81
  76. package/dist/packem_shared/types-M28Oe2t1.d.mts +0 -67
  77. package/dist/packem_shared/types-M28Oe2t1.d.ts +0 -67
package/CHANGELOG.md CHANGED
@@ -1,3 +1,27 @@
1
+ ## @visulima/colorize [1.4.28](https://github.com/visulima/visulima/compare/@visulima/colorize@1.4.27...@visulima/colorize@1.4.28) (2025-11-12)
2
+
3
+ ### Bug Fixes
4
+
5
+ * update package configurations and TypeScript definitions ([b59aa59](https://github.com/visulima/visulima/commit/b59aa59dac1508216b944f4b917fb4a7ab1f70a4))
6
+
7
+ ### Miscellaneous Chores
8
+
9
+ * Add jsr file to all packages for release ([#565](https://github.com/visulima/visulima/issues/565)) ([ec91652](https://github.com/visulima/visulima/commit/ec91652b4e4112adf14ba152c1239a7703ba425a))
10
+ * update license files and clean up TypeScript definitions ([fe668cc](https://github.com/visulima/visulima/commit/fe668cc26de23591d4df54a0954455ebbe31b22d))
11
+
12
+ ### Code Refactoring
13
+
14
+ * **colorize:** simplify TypeScript definitions and remove unused plugin configuration ([fcc0649](https://github.com/visulima/visulima/commit/fcc0649fbedaead34eb090ffb2d3afb2ad3b2fe7))
15
+
16
+ ### Tests
17
+
18
+ * **colorize:** correct Colorize function name in test output ([ffee5b4](https://github.com/visulima/visulima/commit/ffee5b4cda5eba7d0f6b116a25e5c5d5d0ed460b))
19
+
20
+
21
+ ### Dependencies
22
+
23
+ * **@visulima/is-ansi-color-supported:** upgraded to 2.3.4
24
+
1
25
  ## @visulima/colorize [1.4.27](https://github.com/visulima/visulima/compare/@visulima/colorize@1.4.26...@visulima/colorize@1.4.27) (2025-11-07)
2
26
 
3
27
  ### Bug Fixes
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Modified copy of https://github.com/webdiscus/ansis/blob/master/src/ansi-codes.js
3
+ *
4
+ * ISC License
5
+ *
6
+ * Copyright (c) 2023, webdiscus
7
+ */
8
+ import type { AnsiColors, AnsiStyles, ColorData, ColorValueHex } from "./types.d.cts";
9
+ export declare const baseStyles: Required<Record<AnsiStyles, ColorData>>;
10
+ export declare const baseColors: Required<Record<AnsiColors, ColorData>>;
11
+ export declare const styleMethods: {
12
+ bg: (code: number) => ColorData;
13
+ bgHex: (hex: ColorValueHex) => ColorData;
14
+ bgRgb: (r: number, g: number, b: number) => ColorData;
15
+ fg: (code: number) => ColorData;
16
+ hex: (hex: ColorValueHex) => ColorData;
17
+ rgb: (r: number, g: number, b: number) => ColorData;
18
+ };
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Modified copy of https://github.com/webdiscus/ansis/blob/master/src/ansi-codes.js
3
+ *
4
+ * ISC License
5
+ *
6
+ * Copyright (c) 2023, webdiscus
7
+ */
8
+ import type { AnsiColors, AnsiStyles, ColorData, ColorValueHex } from "./types.d.mts";
9
+ export declare const baseStyles: Required<Record<AnsiStyles, ColorData>>;
10
+ export declare const baseColors: Required<Record<AnsiColors, ColorData>>;
11
+ export declare const styleMethods: {
12
+ bg: (code: number) => ColorData;
13
+ bgHex: (hex: ColorValueHex) => ColorData;
14
+ bgRgb: (r: number, g: number, b: number) => ColorData;
15
+ fg: (code: number) => ColorData;
16
+ hex: (hex: ColorValueHex) => ColorData;
17
+ rgb: (r: number, g: number, b: number) => ColorData;
18
+ };
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Modified copy of https://github.com/webdiscus/ansis/blob/master/src/ansi-codes.js
3
+ *
4
+ * ISC License
5
+ *
6
+ * Copyright (c) 2023, webdiscus
7
+ */
8
+ import type { AnsiColors, AnsiStyles, ColorData, ColorValueHex } from "./types.d.ts";
9
+ export declare const baseStyles: Required<Record<AnsiStyles, ColorData>>;
10
+ export declare const baseColors: Required<Record<AnsiColors, ColorData>>;
11
+ export declare const styleMethods: {
12
+ bg: (code: number) => ColorData;
13
+ bgHex: (hex: ColorValueHex) => ColorData;
14
+ bgRgb: (r: number, g: number, b: number) => ColorData;
15
+ fg: (code: number) => ColorData;
16
+ hex: (hex: ColorValueHex) => ColorData;
17
+ rgb: (r: number, g: number, b: number) => ColorData;
18
+ };
@@ -0,0 +1,3 @@
1
+ import type { ColorizeType } from "./types.d.mts";
2
+ declare const WebColorize: new () => ColorizeType;
3
+ export default WebColorize;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Modified copy of https://github.com/webdiscus/ansis/blob/master/src/index.js
3
+ *
4
+ * ISC License
5
+ *
6
+ * Copyright (c) 2023, webdiscus
7
+ */
8
+ import type { ColorizeType } from "./types.d.cts";
9
+ declare const Colorize: new () => ColorizeType;
10
+ export = Colorize;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Modified copy of https://github.com/webdiscus/ansis/blob/master/src/index.js
3
+ *
4
+ * ISC License
5
+ *
6
+ * Copyright (c) 2023, webdiscus
7
+ */
8
+ import type { ColorizeType } from "./types.d.mts";
9
+ declare const Colorize: new () => ColorizeType;
10
+ export default Colorize;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Modified copy of https://github.com/webdiscus/ansis/blob/master/src/index.js
3
+ *
4
+ * ISC License
5
+ *
6
+ * Copyright (c) 2023, webdiscus
7
+ */
8
+ import type { ColorizeType } from "./types.d.ts";
9
+ declare const Colorize: new () => ColorizeType;
10
+ export = Colorize;
@@ -0,0 +1,11 @@
1
+ import type { AnsiColors, AnsiStyles } from "./types.d.mts";
2
+ export declare const baseStyles: Required<Record<AnsiStyles, string>>;
3
+ export declare const baseColors: Required<Record<AnsiColors, string>>;
4
+ export declare const styleMethods: {
5
+ bg: (code: number) => string;
6
+ bgHex: (hex: string) => string;
7
+ bgRgb: (r: number, g: number, b: number) => string;
8
+ fg: (code: number) => string;
9
+ hex: (hex: string) => string;
10
+ rgb: (r: number, g: number, b: number) => string;
11
+ };
@@ -0,0 +1,10 @@
1
+ import type { ColorizeType, ColorValueHex, CssColorName, RGB, StopInput, StopOutput } from "../types.d.cts";
2
+ export declare class GradientBuilder {
3
+ #private;
4
+ readonly stops: StopOutput[];
5
+ constructor(colorize: ColorizeType, stops: (ColorValueHex | CssColorName | RGB | StopInput | [number, number, number])[]);
6
+ reverse(): GradientBuilder;
7
+ loop(): GradientBuilder;
8
+ rgb(steps: number): ColorizeType[];
9
+ hsv(steps: number, mode?: boolean | "long" | "short"): ColorizeType[];
10
+ }
@@ -0,0 +1,10 @@
1
+ import type { ColorizeType, ColorValueHex, CssColorName, RGB, StopInput, StopOutput } from "../types.d.mts";
2
+ export declare class GradientBuilder {
3
+ #private;
4
+ readonly stops: StopOutput[];
5
+ constructor(colorize: ColorizeType, stops: (ColorValueHex | CssColorName | RGB | StopInput | [number, number, number])[]);
6
+ reverse(): GradientBuilder;
7
+ loop(): GradientBuilder;
8
+ rgb(steps: number): ColorizeType[];
9
+ hsv(steps: number, mode?: boolean | "long" | "short"): ColorizeType[];
10
+ }
@@ -0,0 +1,10 @@
1
+ import type { ColorizeType, ColorValueHex, CssColorName, RGB, StopInput, StopOutput } from "../types.d.ts";
2
+ export declare class GradientBuilder {
3
+ #private;
4
+ readonly stops: StopOutput[];
5
+ constructor(colorize: ColorizeType, stops: (ColorValueHex | CssColorName | RGB | StopInput | [number, number, number])[]);
6
+ reverse(): GradientBuilder;
7
+ loop(): GradientBuilder;
8
+ rgb(steps: number): ColorizeType[];
9
+ hsv(steps: number, mode?: boolean | "long" | "short"): ColorizeType[];
10
+ }
@@ -0,0 +1,2 @@
1
+ import type { CssColorCodes } from "../../types.d.cts";
2
+ export declare const colorNames: CssColorCodes;
@@ -0,0 +1,2 @@
1
+ import type { CssColorCodes } from "../../types.d.mts";
2
+ export declare const colorNames: CssColorCodes;
@@ -0,0 +1,2 @@
1
+ import type { CssColorCodes } from "../../types.d.ts";
2
+ export declare const colorNames: CssColorCodes;
@@ -0,0 +1,2 @@
1
+ import type { StopOutput } from "../../types.d.cts";
2
+ export declare const computeSubSteps: (stops: StopOutput[], steps: number) => number[];
@@ -0,0 +1,2 @@
1
+ import type { StopOutput } from "../../types.d.mts";
2
+ export declare const computeSubSteps: (stops: StopOutput[], steps: number) => number[];
@@ -0,0 +1,2 @@
1
+ import type { StopOutput } from "../../types.d.ts";
2
+ export declare const computeSubSteps: (stops: StopOutput[], steps: number) => number[];
@@ -0,0 +1,5 @@
1
+ export declare const hsvToRgb: (h: number, s: number, v: number) => {
2
+ b: number;
3
+ g: number;
4
+ r: number;
5
+ };
@@ -0,0 +1,5 @@
1
+ export declare const hsvToRgb: (h: number, s: number, v: number) => {
2
+ b: number;
3
+ g: number;
4
+ r: number;
5
+ };
@@ -0,0 +1,5 @@
1
+ export declare const hsvToRgb: (h: number, s: number, v: number) => {
2
+ b: number;
3
+ g: number;
4
+ r: number;
5
+ };
@@ -0,0 +1,3 @@
1
+ import type { RGB, StopOutput } from "../../types.d.cts";
2
+ export declare const interpolateRgb: (stop1: StopOutput, stop2: StopOutput, steps: number) => RGB[];
3
+ export declare const interpolateHsv: (stop1: StopOutput, stop2: StopOutput, steps: number, mode: boolean | "long" | "short") => RGB[];
@@ -0,0 +1,3 @@
1
+ import type { RGB, StopOutput } from "../../types.d.mts";
2
+ export declare const interpolateRgb: (stop1: StopOutput, stop2: StopOutput, steps: number) => RGB[];
3
+ export declare const interpolateHsv: (stop1: StopOutput, stop2: StopOutput, steps: number, mode: boolean | "long" | "short") => RGB[];
@@ -0,0 +1,3 @@
1
+ import type { RGB, StopOutput } from "../../types.d.ts";
2
+ export declare const interpolateRgb: (stop1: StopOutput, stop2: StopOutput, steps: number) => RGB[];
3
+ export declare const interpolateHsv: (stop1: StopOutput, stop2: StopOutput, steps: number, mode: boolean | "long" | "short") => RGB[];
@@ -0,0 +1,9 @@
1
+ export declare const rgbToHsv: ({ b, g, r }: {
2
+ b: number;
3
+ g: number;
4
+ r: number;
5
+ }) => {
6
+ h: number;
7
+ s: number;
8
+ v: number;
9
+ };
@@ -0,0 +1,9 @@
1
+ export declare const rgbToHsv: ({ b, g, r }: {
2
+ b: number;
3
+ g: number;
4
+ r: number;
5
+ }) => {
6
+ h: number;
7
+ s: number;
8
+ v: number;
9
+ };
@@ -0,0 +1,9 @@
1
+ export declare const rgbToHsv: ({ b, g, r }: {
2
+ b: number;
3
+ g: number;
4
+ r: number;
5
+ }) => {
6
+ h: number;
7
+ s: number;
8
+ v: number;
9
+ };
@@ -1,26 +1,14 @@
1
- import { S as StopOutput, C as ColorizeType, a as ColorValueHex, b as CssColorName, R as RGB, c as StopInput } from './packem_shared/types-CuuGv4d0.cjs';
2
-
3
- declare class GradientBuilder {
4
- #private;
5
- readonly stops: StopOutput[];
6
- constructor(colorize: ColorizeType, stops: (ColorValueHex | CssColorName | RGB | StopInput | [number, number, number])[]);
7
- reverse(): GradientBuilder;
8
- loop(): GradientBuilder;
9
- rgb(steps: number): ColorizeType[];
10
- hsv(steps: number, mode?: boolean | "long" | "short"): ColorizeType[];
11
- }
12
-
13
- declare const gradient: (stops: (ColorValueHex | CssColorName | RGB | StopInput | [number, number, number])[], options?: {
1
+ import type { ColorValueHex, CssColorName, RGB, StopInput } from "./types.d.cts";
2
+ export declare const gradient: (stops: (ColorValueHex | CssColorName | RGB | StopInput | [number, number, number])[], options?: {
14
3
  hsvSpin?: "long" | "short";
15
4
  interpolation?: "hsv" | "rgb";
16
5
  loop?: boolean;
17
6
  reverse?: boolean;
18
7
  }) => (string_: string) => string;
19
- declare const multilineGradient: (stops: (ColorValueHex | CssColorName | RGB | StopInput | [number, number, number])[], options?: {
8
+ export declare const multilineGradient: (stops: (ColorValueHex | CssColorName | RGB | StopInput | [number, number, number])[], options?: {
20
9
  hsvSpin?: "long" | "short";
21
10
  interpolation?: "hsv" | "rgb";
22
11
  loop?: boolean;
23
12
  reverse?: boolean;
24
13
  }) => (string_: string) => string;
25
-
26
- export { GradientBuilder, gradient, multilineGradient };
14
+ export { GradientBuilder } from "./gradient/gradient-builder.d.cts";
@@ -1,26 +1,14 @@
1
- import { S as StopOutput, C as ColorizeType, a as ColorValueHex, b as CssColorName, R as RGB, c as StopInput } from './packem_shared/types-CuuGv4d0.mjs';
2
-
3
- declare class GradientBuilder {
4
- #private;
5
- readonly stops: StopOutput[];
6
- constructor(colorize: ColorizeType, stops: (ColorValueHex | CssColorName | RGB | StopInput | [number, number, number])[]);
7
- reverse(): GradientBuilder;
8
- loop(): GradientBuilder;
9
- rgb(steps: number): ColorizeType[];
10
- hsv(steps: number, mode?: boolean | "long" | "short"): ColorizeType[];
11
- }
12
-
13
- declare const gradient: (stops: (ColorValueHex | CssColorName | RGB | StopInput | [number, number, number])[], options?: {
1
+ import type { ColorValueHex, CssColorName, RGB, StopInput } from "./types.d.mts";
2
+ export declare const gradient: (stops: (ColorValueHex | CssColorName | RGB | StopInput | [number, number, number])[], options?: {
14
3
  hsvSpin?: "long" | "short";
15
4
  interpolation?: "hsv" | "rgb";
16
5
  loop?: boolean;
17
6
  reverse?: boolean;
18
7
  }) => (string_: string) => string;
19
- declare const multilineGradient: (stops: (ColorValueHex | CssColorName | RGB | StopInput | [number, number, number])[], options?: {
8
+ export declare const multilineGradient: (stops: (ColorValueHex | CssColorName | RGB | StopInput | [number, number, number])[], options?: {
20
9
  hsvSpin?: "long" | "short";
21
10
  interpolation?: "hsv" | "rgb";
22
11
  loop?: boolean;
23
12
  reverse?: boolean;
24
13
  }) => (string_: string) => string;
25
-
26
- export { GradientBuilder, gradient, multilineGradient };
14
+ export { GradientBuilder } from "./gradient/gradient-builder.d.mts";
@@ -1,26 +1,14 @@
1
- import { S as StopOutput, C as ColorizeType, a as ColorValueHex, b as CssColorName, R as RGB, c as StopInput } from './packem_shared/types-CuuGv4d0.js';
2
-
3
- declare class GradientBuilder {
4
- #private;
5
- readonly stops: StopOutput[];
6
- constructor(colorize: ColorizeType, stops: (ColorValueHex | CssColorName | RGB | StopInput | [number, number, number])[]);
7
- reverse(): GradientBuilder;
8
- loop(): GradientBuilder;
9
- rgb(steps: number): ColorizeType[];
10
- hsv(steps: number, mode?: boolean | "long" | "short"): ColorizeType[];
11
- }
12
-
13
- declare const gradient: (stops: (ColorValueHex | CssColorName | RGB | StopInput | [number, number, number])[], options?: {
1
+ import type { ColorValueHex, CssColorName, RGB, StopInput } from "./types.d.ts";
2
+ export declare const gradient: (stops: (ColorValueHex | CssColorName | RGB | StopInput | [number, number, number])[], options?: {
14
3
  hsvSpin?: "long" | "short";
15
4
  interpolation?: "hsv" | "rgb";
16
5
  loop?: boolean;
17
6
  reverse?: boolean;
18
7
  }) => (string_: string) => string;
19
- declare const multilineGradient: (stops: (ColorValueHex | CssColorName | RGB | StopInput | [number, number, number])[], options?: {
8
+ export declare const multilineGradient: (stops: (ColorValueHex | CssColorName | RGB | StopInput | [number, number, number])[], options?: {
20
9
  hsvSpin?: "long" | "short";
21
10
  interpolation?: "hsv" | "rgb";
22
11
  loop?: boolean;
23
12
  reverse?: boolean;
24
13
  }) => (string_: string) => string;
25
-
26
- export { GradientBuilder, gradient, multilineGradient };
14
+ export { GradientBuilder } from "./gradient/gradient-builder.d.ts";
@@ -1,65 +1,61 @@
1
- import { C as ColorizeType, a as ColorValueHex } from './packem_shared/types-M28Oe2t1.mjs';
2
- export { A as AnsiColors, b as AnsiStyles } from './packem_shared/types-M28Oe2t1.mjs';
3
-
4
- declare const WebColorize: new () => ColorizeType;
5
-
1
+ import type { ColorizeType, ColorValueHex } from "./types.d.mts";
6
2
  declare const _default: ColorizeType;
7
-
8
- declare const ansi256: (code: number) => ColorizeType;
9
- declare const bg: (code: number) => ColorizeType;
10
- declare const bgAnsi256: (code: number) => ColorizeType;
11
- declare const bgBlack: ColorizeType;
12
- declare const bgBlackBright: ColorizeType;
13
- declare const bgBlue: ColorizeType;
14
- declare const bgBlueBright: ColorizeType;
15
- declare const bgCyan: ColorizeType;
16
- declare const bgCyanBright: ColorizeType;
17
- declare const bgGray: ColorizeType;
18
- declare const bgGreen: ColorizeType;
19
- declare const bgGreenBright: ColorizeType;
20
- declare const bgGrey: ColorizeType;
21
- declare const bgHex: (color: ColorValueHex) => ColorizeType;
22
- declare const bgMagenta: ColorizeType;
23
- declare const bgMagentaBright: ColorizeType;
24
- declare const bgRed: ColorizeType;
25
- declare const bgRedBright: ColorizeType;
26
- declare const bgRgb: (red: number, green: number, blue: number) => ColorizeType;
27
- declare const bgWhite: ColorizeType;
28
- declare const bgWhiteBright: ColorizeType;
29
- declare const bgYellow: ColorizeType;
30
- declare const bgYellowBright: ColorizeType;
31
- declare const black: ColorizeType;
32
- declare const blackBright: ColorizeType;
33
- declare const blue: ColorizeType;
34
- declare const blueBright: ColorizeType;
35
- declare const bold: ColorizeType;
36
- declare const cyan: ColorizeType;
37
- declare const cyanBright: ColorizeType;
38
- declare const dim: ColorizeType;
39
- declare const fg: (code: number) => ColorizeType;
40
- declare const gray: ColorizeType;
41
- declare const green: ColorizeType;
42
- declare const greenBright: ColorizeType;
43
- declare const grey: ColorizeType;
44
- declare const hex: (color: ColorValueHex) => ColorizeType;
45
- declare const hidden: ColorizeType;
46
- declare const inverse: ColorizeType;
47
- declare const italic: ColorizeType;
48
- declare const magenta: ColorizeType;
49
- declare const magentaBright: ColorizeType;
50
- declare const overline: ColorizeType;
51
- declare const red: ColorizeType;
52
- declare const redBright: ColorizeType;
53
- declare const reset: ColorizeType;
54
- declare const rgb: (red: number, green: number, blue: number) => ColorizeType;
55
- declare const strike: ColorizeType;
56
- declare const strikethrough: ColorizeType;
57
- declare const strip: (string: string) => string;
58
- declare const underline: ColorizeType;
59
- declare const visible: ColorizeType;
60
- declare const white: ColorizeType;
61
- declare const whiteBright: ColorizeType;
62
- declare const yellow: ColorizeType;
63
- declare const yellowBright: ColorizeType;
64
-
65
- export { WebColorize as Colorize, ColorizeType, ansi256, bg, bgAnsi256, bgBlack, bgBlackBright, bgBlue, bgBlueBright, bgCyan, bgCyanBright, bgGray, bgGreen, bgGreenBright, bgGrey, bgHex, bgMagenta, bgMagentaBright, bgRed, bgRedBright, bgRgb, bgWhite, bgWhiteBright, bgYellow, bgYellowBright, black, blackBright, blue, blueBright, bold, cyan, cyanBright, _default as default, dim, fg, gray, green, greenBright, grey, hex, hidden, inverse, italic, magenta, magentaBright, overline, red, redBright, reset, rgb, strike, strikethrough, strip, underline, visible, white, whiteBright, yellow, yellowBright };
3
+ export default _default;
4
+ export declare const ansi256: (code: number) => ColorizeType;
5
+ export declare const bg: (code: number) => ColorizeType;
6
+ export declare const bgAnsi256: (code: number) => ColorizeType;
7
+ export declare const bgHex: (color: ColorValueHex) => ColorizeType;
8
+ export declare const bgRgb: (red: number, green: number, blue: number) => ColorizeType;
9
+ export declare const fg: (code: number) => ColorizeType;
10
+ export declare const hex: (color: ColorValueHex) => ColorizeType;
11
+ export declare const rgb: (red: number, green: number, blue: number) => ColorizeType;
12
+ export declare const strip: (string: string) => string;
13
+ export declare const bgBlack: ColorizeType;
14
+ export declare const bgBlackBright: ColorizeType;
15
+ export declare const bgBlue: ColorizeType;
16
+ export declare const bgBlueBright: ColorizeType;
17
+ export declare const bgCyan: ColorizeType;
18
+ export declare const bgCyanBright: ColorizeType;
19
+ export declare const bgGray: ColorizeType;
20
+ export declare const bgGreen: ColorizeType;
21
+ export declare const bgGreenBright: ColorizeType;
22
+ export declare const bgGrey: ColorizeType;
23
+ export declare const bgMagenta: ColorizeType;
24
+ export declare const bgMagentaBright: ColorizeType;
25
+ export declare const bgRed: ColorizeType;
26
+ export declare const bgRedBright: ColorizeType;
27
+ export declare const bgWhite: ColorizeType;
28
+ export declare const bgWhiteBright: ColorizeType;
29
+ export declare const bgYellow: ColorizeType;
30
+ export declare const bgYellowBright: ColorizeType;
31
+ export declare const black: ColorizeType;
32
+ export declare const blackBright: ColorizeType;
33
+ export declare const blue: ColorizeType;
34
+ export declare const blueBright: ColorizeType;
35
+ export declare const bold: ColorizeType;
36
+ export declare const cyan: ColorizeType;
37
+ export declare const cyanBright: ColorizeType;
38
+ export declare const dim: ColorizeType;
39
+ export declare const gray: ColorizeType;
40
+ export declare const green: ColorizeType;
41
+ export declare const greenBright: ColorizeType;
42
+ export declare const grey: ColorizeType;
43
+ export declare const hidden: ColorizeType;
44
+ export declare const inverse: ColorizeType;
45
+ export declare const italic: ColorizeType;
46
+ export declare const magenta: ColorizeType;
47
+ export declare const magentaBright: ColorizeType;
48
+ export declare const overline: ColorizeType;
49
+ export declare const red: ColorizeType;
50
+ export declare const redBright: ColorizeType;
51
+ export declare const reset: ColorizeType;
52
+ export declare const strike: ColorizeType;
53
+ export declare const strikethrough: ColorizeType;
54
+ export declare const underline: ColorizeType;
55
+ export declare const visible: ColorizeType;
56
+ export declare const white: ColorizeType;
57
+ export declare const whiteBright: ColorizeType;
58
+ export declare const yellow: ColorizeType;
59
+ export declare const yellowBright: ColorizeType;
60
+ export { default as Colorize } from "./colorize.d.mts";
61
+ export type { AnsiColors, AnsiStyles, ColorizeType } from "./types.d.mts";
@@ -1,63 +1,61 @@
1
1
  import WebColorize from './packem_shared/Colorize-Ca9CXTcj.mjs';
2
2
 
3
3
  const colorize = new WebColorize();
4
- const {
5
- ansi256,
6
- bg,
7
- bgAnsi256,
8
- bgBlack,
9
- bgBlackBright,
10
- bgBlue,
11
- bgBlueBright,
12
- bgCyan,
13
- bgCyanBright,
14
- bgGray,
15
- bgGreen,
16
- bgGreenBright,
17
- bgGrey,
18
- bgHex,
19
- bgMagenta,
20
- bgMagentaBright,
21
- bgRed,
22
- bgRedBright,
23
- bgRgb,
24
- bgWhite,
25
- bgWhiteBright,
26
- bgYellow,
27
- bgYellowBright,
28
- black,
29
- blackBright,
30
- blue,
31
- blueBright,
32
- bold,
33
- cyan,
34
- cyanBright,
35
- dim,
36
- fg,
37
- gray,
38
- green,
39
- greenBright,
40
- grey,
41
- hex,
42
- hidden,
43
- inverse,
44
- italic,
45
- magenta,
46
- magentaBright,
47
- overline,
48
- red,
49
- redBright,
50
- reset,
51
- rgb,
52
- strike,
53
- strikethrough,
54
- strip,
55
- underline,
56
- visible,
57
- white,
58
- whiteBright,
59
- yellow,
60
- yellowBright
61
- } = colorize;
4
+ const ansi256 = colorize.ansi256;
5
+ const bg = colorize.bg;
6
+ const bgAnsi256 = colorize.bgAnsi256;
7
+ const bgHex = colorize.bgHex;
8
+ const bgRgb = colorize.bgRgb;
9
+ const fg = colorize.fg;
10
+ const hex = colorize.hex;
11
+ const rgb = colorize.rgb;
12
+ const strip = colorize.strip;
13
+ const bgBlack = colorize.bgBlack;
14
+ const bgBlackBright = colorize.bgBlackBright;
15
+ const bgBlue = colorize.bgBlue;
16
+ const bgBlueBright = colorize.bgBlueBright;
17
+ const bgCyan = colorize.bgCyan;
18
+ const bgCyanBright = colorize.bgCyanBright;
19
+ const bgGray = colorize.bgGray;
20
+ const bgGreen = colorize.bgGreen;
21
+ const bgGreenBright = colorize.bgGreenBright;
22
+ const bgGrey = colorize.bgGrey;
23
+ const bgMagenta = colorize.bgMagenta;
24
+ const bgMagentaBright = colorize.bgMagentaBright;
25
+ const bgRed = colorize.bgRed;
26
+ const bgRedBright = colorize.bgRedBright;
27
+ const bgWhite = colorize.bgWhite;
28
+ const bgWhiteBright = colorize.bgWhiteBright;
29
+ const bgYellow = colorize.bgYellow;
30
+ const bgYellowBright = colorize.bgYellowBright;
31
+ const black = colorize.black;
32
+ const blackBright = colorize.blackBright;
33
+ const blue = colorize.blue;
34
+ const blueBright = colorize.blueBright;
35
+ const bold = colorize.bold;
36
+ const cyan = colorize.cyan;
37
+ const cyanBright = colorize.cyanBright;
38
+ const dim = colorize.dim;
39
+ const gray = colorize.gray;
40
+ const green = colorize.green;
41
+ const greenBright = colorize.greenBright;
42
+ const grey = colorize.grey;
43
+ const hidden = colorize.hidden;
44
+ const inverse = colorize.inverse;
45
+ const italic = colorize.italic;
46
+ const magenta = colorize.magenta;
47
+ const magentaBright = colorize.magentaBright;
48
+ const overline = colorize.overline;
49
+ const red = colorize.red;
50
+ const redBright = colorize.redBright;
51
+ const reset = colorize.reset;
52
+ const strike = colorize.strike;
53
+ const strikethrough = colorize.strikethrough;
54
+ const underline = colorize.underline;
55
+ const visible = colorize.visible;
56
+ const white = colorize.white;
57
+ const whiteBright = colorize.whiteBright;
58
+ const yellow = colorize.yellow;
59
+ const yellowBright = colorize.yellowBright;
62
60
 
63
61
  export { WebColorize as Colorize, ansi256, bg, bgAnsi256, bgBlack, bgBlackBright, bgBlue, bgBlueBright, bgCyan, bgCyanBright, bgGray, bgGreen, bgGreenBright, bgGrey, bgHex, bgMagenta, bgMagentaBright, bgRed, bgRedBright, bgRgb, bgWhite, bgWhiteBright, bgYellow, bgYellowBright, black, blackBright, blue, blueBright, bold, cyan, cyanBright, colorize as default, dim, fg, gray, green, greenBright, grey, hex, hidden, inverse, italic, magenta, magentaBright, overline, red, redBright, reset, rgb, strike, strikethrough, strip, underline, visible, white, whiteBright, yellow, yellowBright };