@inquirer/select 2.3.8 → 2.3.10

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/README.md CHANGED
@@ -6,12 +6,29 @@ Simple interactive command line prompt to display a list of choices (single sele
6
6
 
7
7
  # Installation
8
8
 
9
+ <table>
10
+ <tr>
11
+ <th>npm</th>
12
+ <th>yarn</th>
13
+ </tr>
14
+ <tr>
15
+ <td>
16
+
9
17
  ```sh
10
18
  npm install @inquirer/select
19
+ ```
20
+
21
+ </td>
22
+ <td>
11
23
 
24
+ ```sh
12
25
  yarn add @inquirer/select
13
26
  ```
14
27
 
28
+ </td>
29
+ </tr>
30
+ </table>
31
+
15
32
  # Usage
16
33
 
17
34
  ```js
@@ -0,0 +1,28 @@
1
+ import { Separator, type Theme } from '@inquirer/core';
2
+ import type { PartialDeep } from '@inquirer/type';
3
+ type SelectTheme = {
4
+ icon: {
5
+ cursor: string;
6
+ };
7
+ style: {
8
+ disabled: (text: string) => string;
9
+ };
10
+ helpMode: 'always' | 'never' | 'auto';
11
+ };
12
+ type Choice<Value> = {
13
+ value: Value;
14
+ name?: string;
15
+ description?: string;
16
+ disabled?: boolean | string;
17
+ type?: never;
18
+ };
19
+ declare const _default: <Value>(config: {
20
+ message: string;
21
+ choices: readonly (Separator | Choice<Value>)[];
22
+ pageSize?: number;
23
+ loop?: boolean;
24
+ default?: unknown;
25
+ theme?: PartialDeep<Theme<SelectTheme>>;
26
+ }, context?: import("@inquirer/type").Context) => import("@inquirer/type").CancelablePromise<Value>;
27
+ export default _default;
28
+ export { Separator } from '@inquirer/core';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inquirer/select",
3
- "version": "2.3.8",
3
+ "version": "2.3.10",
4
4
  "description": "Inquirer select/list prompt",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "typings": "./dist/cjs/types/index.d.ts",
@@ -54,14 +54,14 @@
54
54
  "license": "MIT",
55
55
  "homepage": "https://github.com/SBoudrias/Inquirer.js/blob/master/packages/select/README.md",
56
56
  "dependencies": {
57
- "@inquirer/core": "^9.0.0",
57
+ "@inquirer/core": "^9.0.2",
58
58
  "@inquirer/figures": "^1.0.3",
59
59
  "@inquirer/type": "^1.4.0",
60
60
  "ansi-escapes": "^4.3.2",
61
- "yoctocolors-cjs": "^2.1.1"
61
+ "yoctocolors-cjs": "^2.1.2"
62
62
  },
63
63
  "devDependencies": {
64
- "@inquirer/testing": "^2.1.24"
64
+ "@inquirer/testing": "^2.1.25"
65
65
  },
66
66
  "scripts": {
67
67
  "tsc": "yarn run tsc:esm && yarn run tsc:cjs",
@@ -89,5 +89,5 @@
89
89
  }
90
90
  },
91
91
  "sideEffects": false,
92
- "gitHead": "fc27d575bceb96466cb8da8524c26d4eb2a77df0"
92
+ "gitHead": "95d2d65d3aca2c0fab66c7fd40b5dc413dfc894f"
93
93
  }