@inquirer/select
Advanced tools
Comparing version 2.3.6 to 2.3.7
@@ -8,3 +8,3 @@ "use strict"; | ||
const core_1 = require("@inquirer/core"); | ||
const chalk_1 = __importDefault(require("chalk")); | ||
const picocolors_1 = __importDefault(require("picocolors")); | ||
const figures_1 = __importDefault(require("@inquirer/figures")); | ||
@@ -14,3 +14,3 @@ const ansi_escapes_1 = __importDefault(require("ansi-escapes")); | ||
icon: { cursor: figures_1.default.pointer }, | ||
style: { disabled: (text) => chalk_1.default.dim(`- ${text}`) }, | ||
style: { disabled: (text) => picocolors_1.default.dim(`- ${text}`) }, | ||
helpMode: 'auto', | ||
@@ -17,0 +17,0 @@ }; |
@@ -1,2 +0,12 @@ | ||
import { Separator } from '@inquirer/core'; | ||
import { Separator, type Theme } from '@inquirer/core'; | ||
import type { PartialDeep } from '@inquirer/type'; | ||
type SelectTheme = { | ||
icon: { | ||
cursor: string; | ||
}; | ||
style: { | ||
disabled: (text: string) => string; | ||
}; | ||
helpMode: 'always' | 'never' | 'auto'; | ||
}; | ||
type Choice<Value> = { | ||
@@ -12,28 +22,8 @@ value: Value; | ||
choices: readonly (Separator | Choice<Value>)[]; | ||
pageSize?: number | undefined; | ||
loop?: boolean | undefined; | ||
pageSize?: number; | ||
loop?: boolean; | ||
default?: unknown; | ||
theme?: { | ||
icon?: { | ||
cursor?: string | undefined; | ||
} | undefined; | ||
style?: { | ||
disabled?: {} | undefined; | ||
answer?: {} | undefined; | ||
message?: {} | undefined; | ||
error?: {} | undefined; | ||
defaultAnswer?: {} | undefined; | ||
help?: {} | undefined; | ||
highlight?: {} | undefined; | ||
key?: {} | undefined; | ||
} | undefined; | ||
helpMode?: "always" | "auto" | "never" | undefined; | ||
prefix?: string | undefined; | ||
spinner?: { | ||
interval?: number | undefined; | ||
frames?: (string | undefined)[] | undefined; | ||
} | undefined; | ||
} | undefined; | ||
}, context?: import("@inquirer/type").Context | undefined) => import("@inquirer/type").CancelablePromise<Value>; | ||
theme?: PartialDeep<Theme<SelectTheme>>; | ||
}, context?: import("@inquirer/type").Context) => import("@inquirer/type").CancelablePromise<Value>; | ||
export default _default; | ||
export { Separator } from '@inquirer/core'; |
{ | ||
"name": "@inquirer/select", | ||
"version": "2.3.6", | ||
"version": "2.3.7", | ||
"description": "Inquirer select/list prompt", | ||
@@ -57,10 +57,10 @@ "main": "./dist/cjs/index.js", | ||
"dependencies": { | ||
"@inquirer/core": "^8.2.3", | ||
"@inquirer/core": "^8.2.4", | ||
"@inquirer/figures": "^1.0.3", | ||
"@inquirer/type": "^1.3.3", | ||
"ansi-escapes": "^4.3.2", | ||
"chalk": "^4.1.2" | ||
"picocolors": "^1.0.1" | ||
}, | ||
"devDependencies": { | ||
"@inquirer/testing": "^2.1.22" | ||
"@inquirer/testing": "^2.1.23" | ||
}, | ||
@@ -93,3 +93,3 @@ "scripts": { | ||
"sideEffects": false, | ||
"gitHead": "cc52a353abb1b7f3b3dc81b9e6da7ed478099dbf" | ||
"gitHead": "d5f62c6ee3e671f7d1b776b85d43781869d70918" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21087
7
289
+ Addedpicocolors@^1.0.1
- Removedchalk@^4.1.2
- Removedchalk@4.1.2(transitive)
- Removedhas-flag@4.0.0(transitive)
- Removedsupports-color@7.2.0(transitive)
Updated@inquirer/core@^8.2.4