@inquirer/select 2.3.7 → 2.3.8
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 +2 -2
- package/dist/esm/index.mjs +2 -2
- package/package.json +6 -6
package/dist/cjs/index.js
CHANGED
|
@@ -5,12 +5,12 @@ 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
|
|
8
|
+
const yoctocolors_cjs_1 = __importDefault(require("yoctocolors-cjs"));
|
|
9
9
|
const figures_1 = __importDefault(require("@inquirer/figures"));
|
|
10
10
|
const ansi_escapes_1 = __importDefault(require("ansi-escapes"));
|
|
11
11
|
const selectTheme = {
|
|
12
12
|
icon: { cursor: figures_1.default.pointer },
|
|
13
|
-
style: { disabled: (text) =>
|
|
13
|
+
style: { disabled: (text) => yoctocolors_cjs_1.default.dim(`- ${text}`) },
|
|
14
14
|
helpMode: 'auto',
|
|
15
15
|
};
|
|
16
16
|
function isSelectable(item) {
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { createPrompt, useState, useKeypress, usePrefix, usePagination, useRef, useMemo, isBackspaceKey, isEnterKey, isUpKey, isDownKey, isNumberKey, Separator, ValidationError, makeTheme, } from '@inquirer/core';
|
|
2
|
-
import
|
|
2
|
+
import colors from 'yoctocolors-cjs';
|
|
3
3
|
import figures from '@inquirer/figures';
|
|
4
4
|
import ansiEscapes from 'ansi-escapes';
|
|
5
5
|
const selectTheme = {
|
|
6
6
|
icon: { cursor: figures.pointer },
|
|
7
|
-
style: { disabled: (text) =>
|
|
7
|
+
style: { disabled: (text) => colors.dim(`- ${text}`) },
|
|
8
8
|
helpMode: 'auto',
|
|
9
9
|
};
|
|
10
10
|
function isSelectable(item) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inquirer/select",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.8",
|
|
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": "^
|
|
57
|
+
"@inquirer/core": "^9.0.0",
|
|
58
58
|
"@inquirer/figures": "^1.0.3",
|
|
59
|
-
"@inquirer/type": "^1.
|
|
59
|
+
"@inquirer/type": "^1.4.0",
|
|
60
60
|
"ansi-escapes": "^4.3.2",
|
|
61
|
-
"
|
|
61
|
+
"yoctocolors-cjs": "^2.1.1"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
|
-
"@inquirer/testing": "^2.1.
|
|
64
|
+
"@inquirer/testing": "^2.1.24"
|
|
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": "
|
|
92
|
+
"gitHead": "fc27d575bceb96466cb8da8524c26d4eb2a77df0"
|
|
93
93
|
}
|