From d26f70c14f398dcbc547fd571adf9cea86ca0df9 Mon Sep 17 00:00:00 2001 From: Bruno Rocha Date: Mon, 14 Aug 2023 17:55:10 -0300 Subject: [PATCH] fix: prompts cancel states --- packages/prompts/src/index.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/packages/prompts/src/index.ts b/packages/prompts/src/index.ts index efaf973..4864c1d 100644 --- a/packages/prompts/src/index.ts +++ b/packages/prompts/src/index.ts @@ -156,7 +156,6 @@ export const text = (opts: TextOptions) => { return [ title, formatTextWithMaxWidth(this.value ?? '', { - endSymbol: color.gray(S_BAR_END), lineWrapper: (line) => color.strikethrough(color.dim(line)), }), ].join('\n'); @@ -215,7 +214,6 @@ export const password = (opts: PasswordOptions) => { return [ title, formatTextWithMaxWidth(masked ?? '', { - endSymbol: color.gray(S_BAR_END), lineWrapper: (line) => color.strikethrough(color.dim(line)), }), ].join('\n'); @@ -265,7 +263,6 @@ export const confirm = (opts: ConfirmOptions) => { return [ title, formatTextWithMaxWidth(value, { - endSymbol: color.gray(S_BAR_END), lineWrapper: (line) => color.strikethrough(color.dim(line)), }), ].join('\n'); @@ -343,7 +340,6 @@ export const select = [], Value>( return [ title, formatTextWithMaxWidth(opt(this.options[this.cursor], 'cancelled'), { - endSymbol: color.gray(S_BAR_END), lineWrapper: (line) => color.strikethrough(color.dim(line)), }), ].join('\n'); @@ -518,7 +514,6 @@ export const multiselect = [], Value>( return [ title, formatTextWithMaxWidth(label ?? '', { - endSymbol: color.gray(S_BAR_END), lineWrapper: (line) => color.strikethrough(color.dim(line)), }), ].join('\n'); -- 2.51.2