@inquirer/rawlist 2.1.10 → 2.1.11

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/cjs/index.js CHANGED
@@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.Separator = void 0;
7
7
  const core_1 = require("@inquirer/core");
8
- const chalk_1 = __importDefault(require("chalk"));
8
+ const picocolors_1 = __importDefault(require("picocolors"));
9
9
  const numberRegex = /\d+/;
10
10
  function isSelectableChoice(choice) {
11
11
  return choice != null && !core_1.Separator.isSeparator(choice);
@@ -37,7 +37,7 @@ exports.default = (0, core_1.createPrompt)((config, done) => {
37
37
  setError('Please input a value');
38
38
  }
39
39
  else {
40
- setError(`"${chalk_1.default.red(value)}" isn't an available option`);
40
+ setError(`"${picocolors_1.default.red(value)}" isn't an available option`);
41
41
  }
42
42
  }
43
43
  else {
@@ -1,4 +1,5 @@
1
- import { Separator } from '@inquirer/core';
1
+ import { Separator, type Theme } from '@inquirer/core';
2
+ import type { PartialDeep } from '@inquirer/type';
2
3
  type Choice<Value> = {
3
4
  value: Value;
4
5
  name?: string;
@@ -7,22 +8,7 @@ type Choice<Value> = {
7
8
  declare const _default: <Value>(config: {
8
9
  message: string;
9
10
  choices: readonly (Separator | Choice<Value>)[];
10
- theme?: {
11
- prefix?: string | undefined;
12
- spinner?: {
13
- interval?: number | undefined;
14
- frames?: (string | undefined)[] | undefined;
15
- } | undefined;
16
- style?: {
17
- answer?: {} | undefined;
18
- message?: {} | undefined;
19
- error?: {} | undefined;
20
- defaultAnswer?: {} | undefined;
21
- help?: {} | undefined;
22
- highlight?: {} | undefined;
23
- key?: {} | undefined;
24
- } | undefined;
25
- } | undefined;
26
- }, context?: import("@inquirer/type").Context | undefined) => import("@inquirer/type").CancelablePromise<Value>;
11
+ theme?: PartialDeep<Theme>;
12
+ }, context?: import("@inquirer/type").Context) => import("@inquirer/type").CancelablePromise<Value>;
27
13
  export default _default;
28
14
  export { Separator } from '@inquirer/core';
@@ -1,5 +1,5 @@
1
1
  import { createPrompt, useState, useKeypress, usePrefix, isEnterKey, Separator, makeTheme, } from '@inquirer/core';
2
- import chalk from 'chalk';
2
+ import pc from 'picocolors';
3
3
  const numberRegex = /\d+/;
4
4
  function isSelectableChoice(choice) {
5
5
  return choice != null && !Separator.isSeparator(choice);
@@ -31,7 +31,7 @@ export default createPrompt((config, done) => {
31
31
  setError('Please input a value');
32
32
  }
33
33
  else {
34
- setError(`"${chalk.red(value)}" isn't an available option`);
34
+ setError(`"${pc.red(value)}" isn't an available option`);
35
35
  }
36
36
  }
37
37
  else {
@@ -1,4 +1,5 @@
1
- import { Separator } from '@inquirer/core';
1
+ import { Separator, type Theme } from '@inquirer/core';
2
+ import type { PartialDeep } from '@inquirer/type';
2
3
  type Choice<Value> = {
3
4
  value: Value;
4
5
  name?: string;
@@ -7,22 +8,7 @@ type Choice<Value> = {
7
8
  declare const _default: <Value>(config: {
8
9
  message: string;
9
10
  choices: readonly (Separator | Choice<Value>)[];
10
- theme?: {
11
- prefix?: string | undefined;
12
- spinner?: {
13
- interval?: number | undefined;
14
- frames?: (string | undefined)[] | undefined;
15
- } | undefined;
16
- style?: {
17
- answer?: {} | undefined;
18
- message?: {} | undefined;
19
- error?: {} | undefined;
20
- defaultAnswer?: {} | undefined;
21
- help?: {} | undefined;
22
- highlight?: {} | undefined;
23
- key?: {} | undefined;
24
- } | undefined;
25
- } | undefined;
26
- }, context?: import("@inquirer/type").Context | undefined) => import("@inquirer/type").CancelablePromise<Value>;
11
+ theme?: PartialDeep<Theme>;
12
+ }, context?: import("@inquirer/type").Context) => import("@inquirer/type").CancelablePromise<Value>;
27
13
  export default _default;
28
14
  export { Separator } from '@inquirer/core';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inquirer/rawlist",
3
- "version": "2.1.10",
3
+ "version": "2.1.11",
4
4
  "description": "Inquirer rawlist prompt",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "typings": "./dist/cjs/types/index.d.ts",
@@ -54,12 +54,12 @@
54
54
  "license": "MIT",
55
55
  "homepage": "https://github.com/SBoudrias/Inquirer.js/blob/master/packages/rawlist/README.md",
56
56
  "dependencies": {
57
- "@inquirer/core": "^8.2.3",
57
+ "@inquirer/core": "^8.2.4",
58
58
  "@inquirer/type": "^1.3.3",
59
- "chalk": "^4.1.2"
59
+ "picocolors": "^1.0.1"
60
60
  },
61
61
  "devDependencies": {
62
- "@inquirer/testing": "^2.1.22"
62
+ "@inquirer/testing": "^2.1.23"
63
63
  },
64
64
  "scripts": {
65
65
  "tsc": "yarn run tsc:esm && yarn run tsc:cjs",
@@ -87,5 +87,5 @@
87
87
  }
88
88
  },
89
89
  "sideEffects": false,
90
- "gitHead": "cc52a353abb1b7f3b3dc81b9e6da7ed478099dbf"
90
+ "gitHead": "d5f62c6ee3e671f7d1b776b85d43781869d70918"
91
91
  }