diff --git a/packages/prompts/src/autocomplete.ts b/packages/prompts/src/autocomplete.ts index 79bdc2e..7baacc2 100644 --- a/packages/prompts/src/autocomplete.ts +++ b/packages/prompts/src/autocomplete.ts @@ -89,7 +89,7 @@ export const autocomplete = (opts: AutocompleteOptions) => { validate: opts.validate, render() { // Title and message display - const title = `${styleText('gray', S_BAR)}\n${symbol(this.state)} ${opts.message}\n)}`; + const title = `${styleText('gray', S_BAR)}\n${symbol(this.state)} ${opts.message}`; const userInput = this.userInput; const valueAsString = String(this.value ?? ''); const options = this.options; @@ -173,6 +173,7 @@ export const autocomplete = (opts: AutocompleteOptions) => { // Return the formatted prompt return [ title, + '', `${styleText('cyan', S_BAR)} ${styleText('dim', 'Search:')} ${searchText}${matches}`, ...noResults, ...validationError, @@ -318,6 +319,7 @@ export const autocompleteMultiselect = (opts: AutocompleteMultiSelectOpti // Build the prompt display return [ title, + '', `${styleText('cyan', S_BAR)} ${styleText('dim', 'Search:')} ${searchText}${matches}`, ...noResults, ...errorMessage, diff --git a/packages/prompts/src/note.ts b/packages/prompts/src/note.ts index 21b6a7e..b1f5c96 100644 --- a/packages/prompts/src/note.ts +++ b/packages/prompts/src/note.ts @@ -15,7 +15,6 @@ export interface NoteOptions extends CommonOptions { format?: (line: string) => string; } -// const defaultNoteFormatter = (line: string): string => color.dim(line); const defaultNoteFormatter = (line: string): string => styleText('dim', line); export const note = (message = '', title = '', opts?: NoteOptions) => { @@ -34,13 +33,13 @@ export const note = (message = '', title = '', opts?: NoteOptions) => { const msg = lines .map( (ln) => - `${styleText('gray', S_BAR)} ${ln}${' '.repeat(len - strip(ln).length)}${styleText('gray', S_BAR)}` + `${styleText('gray', S_BAR)} ${ln || ''}${' '.repeat(len - strip(ln || '').length)}${styleText('gray', S_BAR)}` ) .join('\n'); output.write( - `${styleText('gray', S_BAR)}\n${styleText('green', S_STEP_SUBMIT)} ${styleText('reset', title)} ${styleText( + `${styleText('gray', S_BAR)}\n${styleText('green', S_STEP_SUBMIT)} ${styleText('reset', title || '')} ${styleText( 'gray', S_BAR_H.repeat(Math.max(len - titleLen - 1, 1)) + S_CORNER_TOP_RIGHT - )})\n${msg}\n${styleText('gray', S_CONNECT_LEFT + S_BAR_H.repeat(len + 2) + S_CORNER_BOTTOM_RIGHT)}\n` + )}\n${msg}\n${styleText('gray', S_CONNECT_LEFT + S_BAR_H.repeat(len + 2) + S_CORNER_BOTTOM_RIGHT)}\n` ); }; diff --git a/packages/prompts/test/__snapshots__/autocomplete.test.ts.snap b/packages/prompts/test/__snapshots__/autocomplete.test.ts.snap index b414a4e..d6ddf9c 100644 --- a/packages/prompts/test/__snapshots__/autocomplete.test.ts.snap +++ b/packages/prompts/test/__snapshots__/autocomplete.test.ts.snap @@ -12,7 +12,7 @@ exports[`autocomplete > can be aborted by a signal 1`] = ` β”‚ β—‹ Cherry β”‚ β—‹ Grape β”‚ β—‹ Orange -β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search +β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search β””", " ", @@ -33,13 +33,12 @@ exports[`autocomplete > limits displayed options when maxItems is set 1`] = ` β”‚ β—‹ Option 3 β”‚ β—‹ Option 4 β”‚ ... -β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search +β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search β””", "", "", "", - "β—‡ Select an option -β”‚ Option 0", + "β—‡ Select an optionβ”‚ Option 0", " ", "", @@ -58,13 +57,12 @@ exports[`autocomplete > renders initial UI with message and instructions 1`] = ` β”‚ β—‹ Cherry β”‚ β—‹ Grape β”‚ β—‹ Orange -β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search +β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search β””", "", "", "", - "β—‡ Select a fruit -β”‚ Apple", + "β—‡ Select a fruitβ”‚ Apple", " ", "", @@ -83,13 +81,12 @@ exports[`autocomplete > renders placeholder if set 1`] = ` β”‚ β—‹ Cherry β”‚ β—‹ Grape β”‚ β—‹ Orange -β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search +β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search β””", "", "", "", - "β—‡ Select a fruit -β”‚ Apple", + "β—‡ Select a fruitβ”‚ Apple", " ", "", @@ -109,7 +106,7 @@ exports[`autocomplete > shows hint when option has hint and is focused 1`] = ` β”‚ β—‹ Grape β”‚ β—‹ Orange β”‚ β—‹ Kiwi -β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search +β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search β””", "", "", @@ -121,7 +118,7 @@ exports[`autocomplete > shows hint when option has hint and is focused 1`] = ` β”‚ β—‹ Grape β”‚ β—‹ Orange β”‚ β—‹ Kiwi -β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search +β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search β””", "", "", @@ -131,7 +128,7 @@ exports[`autocomplete > shows hint when option has hint and is focused 1`] = ` β”‚ β—‹ Grape β”‚ β—‹ Orange β”‚ β—‹ Kiwi -β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search +β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search β””", "", "", @@ -140,7 +137,7 @@ exports[`autocomplete > shows hint when option has hint and is focused 1`] = ` β”‚ ● Grape β”‚ β—‹ Orange β”‚ β—‹ Kiwi -β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search +β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search β””", "", "", @@ -148,20 +145,19 @@ exports[`autocomplete > shows hint when option has hint and is focused 1`] = ` "β”‚ β—‹ Grape β”‚ ● Orange β”‚ β—‹ Kiwi -β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search +β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search β””", "", "", "", "β”‚ β—‹ Orange β”‚ ● Kiwi (New Zealand) -β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search +β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search β””", "", "", "", - "β—‡ Select a fruit -β”‚ Kiwi", + "β—‡ Select a fruitβ”‚ Kiwi", " ", "", @@ -180,20 +176,19 @@ exports[`autocomplete > shows no matches message when search has no results 1`] β”‚ β—‹ Cherry β”‚ β—‹ Grape β”‚ β—‹ Orange -β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search +β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search β””", "", "", "", "β”‚ Search: zβ–ˆ (0 matches) β”‚ No matches found -β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search +β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search β””", "", "", "", - "β—‡ Select a fruit -β”‚", + "β—‡ Select a fruitβ”‚", " ", "", @@ -212,7 +207,7 @@ exports[`autocomplete > shows selected value in submit state 1`] = ` β”‚ β—‹ Cherry β”‚ β—‹ Grape β”‚ β—‹ Orange -β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search +β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search β””", "", "", @@ -223,13 +218,12 @@ exports[`autocomplete > shows selected value in submit state 1`] = ` β”‚ β—‹ Cherry β”‚ β—‹ Grape β”‚ β—‹ Orange -β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search +β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search β””", "", "", "", - "β—‡ Select a fruit -β”‚ Banana", + "β—‡ Select a fruitβ”‚ Banana", " ", "", @@ -248,13 +242,12 @@ exports[`autocomplete > shows strikethrough in cancel state 1`] = ` β”‚ β—‹ Cherry β”‚ β—‹ Grape β”‚ β—‹ Orange -β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search +β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search β””", "", "", "", - "β–  Select a fruit -β”‚", + "β–  Select a fruitβ”‚", " ", "", @@ -273,13 +266,12 @@ exports[`autocomplete > supports initialValue 1`] = ` β”‚ ● Cherry β”‚ β—‹ Grape β”‚ β—‹ Orange -β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search +β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search β””", "", "", "", - "β—‡ Select a fruit -β”‚ Cherry", + "β—‡ Select a fruitβ”‚ Cherry", " ", "", @@ -292,13 +284,14 @@ exports[`autocompleteMultiselect > can be aborted by a signal 1`] = ` "β”‚ β—† foo + β”‚ Search: _ β”‚ β—» Apple β”‚ β—» Banana β”‚ β—» Cherry β”‚ β—» Grape β”‚ β—» Orange -β”‚ ↑/↓ to navigate β€’ Space: select β€’ Enter: confirm β€’ Type: to search +β”‚ ↑/↓ to navigate β€’ Space: select β€’ Enter: confirm β€’ Type: to search β””", " ", @@ -312,19 +305,21 @@ exports[`autocompleteMultiselect > renders error when empty selection & required "β”‚ β—† Select a fruit + β”‚ Search: _ β”‚ β—» Apple β”‚ β—» Banana β”‚ β—» Cherry β”‚ β—» Grape β”‚ β—» Orange -β”‚ ↑/↓ to navigate β€’ Space: select β€’ Enter: confirm β€’ Type: to search +β”‚ ↑/↓ to navigate β€’ Space: select β€’ Enter: confirm β€’ Type: to search β””", - "", + "", "", "", "β–² Select a fruit + β”‚ Search: _ β”‚ Please select at least one item β”‚ β—» Apple @@ -332,22 +327,23 @@ exports[`autocompleteMultiselect > renders error when empty selection & required β”‚ β—» Cherry β”‚ β—» Grape β”‚ β—» Orange -β”‚ ↑/↓ to navigate β€’ Space: select β€’ Enter: confirm β€’ Type: to search +β”‚ ↑/↓ to navigate β€’ Space: select β€’ Enter: confirm β€’ Type: to search β””", - "", + "", "", "", "β—† Select a fruit + β”‚ Search: _ β”‚ β—Ό Apple β”‚ β—» Banana β”‚ β—» Cherry β”‚ β—» Grape β”‚ β—» Orange -β”‚ ↑/↓ to navigate β€’ Space: select β€’ Enter: confirm β€’ Type: to search +β”‚ ↑/↓ to navigate β€’ Space: select β€’ Enter: confirm β€’ Type: to search β””", - "", + "", "", "", "β—‡ Select a fruit diff --git a/packages/prompts/test/__snapshots__/group-multi-select.test.ts.snap b/packages/prompts/test/__snapshots__/group-multi-select.test.ts.snap index 942a30c..621c191 100644 --- a/packages/prompts/test/__snapshots__/group-multi-select.test.ts.snap +++ b/packages/prompts/test/__snapshots__/group-multi-select.test.ts.snap @@ -6,7 +6,7 @@ exports[`groupMultiselect (isCI = false) > can be aborted by a signal 1`] = ` "β”‚ β—† Select a fruit β”‚ β—» group1 -β”‚ β”” β—» group1value0 +β”‚ β”” β—» group1value0 β”‚ β—» group2 β”‚ β”” β—» group2value0 β”” @@ -23,8 +23,8 @@ exports[`groupMultiselect (isCI = false) > can deselect an option 1`] = ` "β”‚ β—† foo β”‚ β—» group1 -β”‚ β”‚ β—» group1value0 -β”‚ β”” β—» group1value1 +β”‚ β”‚ β—» group1value0 +β”‚ β”” β—» group1value1 β”” ", "", @@ -80,16 +80,16 @@ exports[`groupMultiselect (isCI = false) > can select a group 1`] = ` "β”‚ β—† foo β”‚ β—» group1 -β”‚ β”‚ β—» group1value0 -β”‚ β”” β—» group1value1 +β”‚ β”‚ β—» group1value0 +β”‚ β”” β—» group1value1 β”” ", "", "", "", "β”‚ β—Ό group1 -β”‚ β”‚ β—Ό group1value0 -β”‚ β”” β—Ό group1value1 +β”‚ β”‚ β—Ό group1value0 +β”‚ β”” β—Ό group1value1 β”” ", "", @@ -109,8 +109,8 @@ exports[`groupMultiselect (isCI = false) > can select a group by selecting all m "β”‚ β—† foo β”‚ β—» group1 -β”‚ β”‚ β—» group1value0 -β”‚ β”” β—» group1value1 +β”‚ β”‚ β—» group1value0 +β”‚ β”” β—» group1value1 β”” ", "", @@ -158,9 +158,9 @@ exports[`groupMultiselect (isCI = false) > can select multiple options 1`] = ` "β”‚ β—† foo β”‚ β—» group1 -β”‚ β”‚ β—» group1value0 -β”‚ β”‚ β—» group1value1 -β”‚ β”” β—» group1value2 +β”‚ β”‚ β—» group1value0 +β”‚ β”‚ β—» group1value1 +β”‚ β”” β—» group1value2 β”” ", "", @@ -207,8 +207,8 @@ exports[`groupMultiselect (isCI = false) > can submit empty selection when requi "β”‚ β—† foo β”‚ β—» group1 -β”‚ β”‚ β—» group1value0 -β”‚ β”” β—» group1value1 +β”‚ β”‚ β—» group1value0 +β”‚ β”” β—» group1value1 β”” ", "", @@ -254,7 +254,7 @@ exports[`groupMultiselect (isCI = false) > groupSpacing > negative spacing is ig "β”‚ β—† foo β”‚ β—» group1 -β”‚ β”” β—» group1value0 +β”‚ β”” β—» group1value0 β”‚ β—» group2 β”‚ β”” β—» group2value0 β”” @@ -296,7 +296,7 @@ exports[`groupMultiselect (isCI = false) > groupSpacing > renders spaced groups β”‚ β”‚ β”‚ β—» group1 -β”‚ β”” β—» group1value0 +β”‚ β”” β—» group1value0 β”‚ β”‚ β”‚ β—» group2 @@ -342,8 +342,8 @@ exports[`groupMultiselect (isCI = false) > initial values can be set 1`] = ` "β”‚ β—† foo β”‚ β—» group1 -β”‚ β”‚ β—» group1value0 -β”‚ β”” β—Ό group1value1 +β”‚ β”‚ β—» group1value0 +β”‚ β”” β—Ό group1value1 β”” ", "", @@ -363,8 +363,8 @@ exports[`groupMultiselect (isCI = false) > renders error when nothing selected 1 "β”‚ β—† foo β”‚ β—» group1 -β”‚ β”‚ β—» group1value0 -β”‚ β”” β—» group1value1 +β”‚ β”‚ β—» group1value0 +β”‚ β”” β—» group1value1 β”” ", "", @@ -372,8 +372,8 @@ exports[`groupMultiselect (isCI = false) > renders error when nothing selected 1 "", "β–² foo β”‚ β—» group1 -β”‚ β”‚ β—» group1value0 -β”‚ β”” β—» group1value1 +β”‚ β”‚ β—» group1value0 +β”‚ β”” β—» group1value1 β”” Please select at least one option. Press  space  to select,  enter  to submit ", @@ -408,8 +408,8 @@ exports[`groupMultiselect (isCI = false) > renders message with options 1`] = ` "β”‚ β—† foo β”‚ β—» group1 -β”‚ β”‚ β—» group1value0 -β”‚ β”” β—» group1value1 +β”‚ β”‚ β—» group1value0 +β”‚ β”” β—» group1value1 β”‚ β—» group2 β”‚ β”” β—» group2value0 β”” @@ -510,8 +510,8 @@ exports[`groupMultiselect (isCI = false) > values can be non-primitive 1`] = ` "β”‚ β—† foo β”‚ β—» group1 -β”‚ β”‚ β—» value0 -β”‚ β”” β—» value1 +β”‚ β”‚ β—» value0 +β”‚ β”” β—» value1 β”” ", "", @@ -544,7 +544,7 @@ exports[`groupMultiselect (isCI = true) > can be aborted by a signal 1`] = ` "β”‚ β—† Select a fruit β”‚ β—» group1 -β”‚ β”” β—» group1value0 +β”‚ β”” β—» group1value0 β”‚ β—» group2 β”‚ β”” β—» group2value0 β”” @@ -561,8 +561,8 @@ exports[`groupMultiselect (isCI = true) > can deselect an option 1`] = ` "β”‚ β—† foo β”‚ β—» group1 -β”‚ β”‚ β—» group1value0 -β”‚ β”” β—» group1value1 +β”‚ β”‚ β—» group1value0 +β”‚ β”” β—» group1value1 β”” ", "", @@ -618,16 +618,16 @@ exports[`groupMultiselect (isCI = true) > can select a group 1`] = ` "β”‚ β—† foo β”‚ β—» group1 -β”‚ β”‚ β—» group1value0 -β”‚ β”” β—» group1value1 +β”‚ β”‚ β—» group1value0 +β”‚ β”” β—» group1value1 β”” ", "", "", "", "β”‚ β—Ό group1 -β”‚ β”‚ β—Ό group1value0 -β”‚ β”” β—Ό group1value1 +β”‚ β”‚ β—Ό group1value0 +β”‚ β”” β—Ό group1value1 β”” ", "", @@ -647,8 +647,8 @@ exports[`groupMultiselect (isCI = true) > can select a group by selecting all me "β”‚ β—† foo β”‚ β—» group1 -β”‚ β”‚ β—» group1value0 -β”‚ β”” β—» group1value1 +β”‚ β”‚ β—» group1value0 +β”‚ β”” β—» group1value1 β”” ", "", @@ -696,9 +696,9 @@ exports[`groupMultiselect (isCI = true) > can select multiple options 1`] = ` "β”‚ β—† foo β”‚ β—» group1 -β”‚ β”‚ β—» group1value0 -β”‚ β”‚ β—» group1value1 -β”‚ β”” β—» group1value2 +β”‚ β”‚ β—» group1value0 +β”‚ β”‚ β—» group1value1 +β”‚ β”” β—» group1value2 β”” ", "", @@ -745,8 +745,8 @@ exports[`groupMultiselect (isCI = true) > can submit empty selection when requir "β”‚ β—† foo β”‚ β—» group1 -β”‚ β”‚ β—» group1value0 -β”‚ β”” β—» group1value1 +β”‚ β”‚ β—» group1value0 +β”‚ β”” β—» group1value1 β”” ", "", @@ -792,7 +792,7 @@ exports[`groupMultiselect (isCI = true) > groupSpacing > negative spacing is ign "β”‚ β—† foo β”‚ β—» group1 -β”‚ β”” β—» group1value0 +β”‚ β”” β—» group1value0 β”‚ β—» group2 β”‚ β”” β—» group2value0 β”” @@ -834,7 +834,7 @@ exports[`groupMultiselect (isCI = true) > groupSpacing > renders spaced groups 1 β”‚ β”‚ β”‚ β—» group1 -β”‚ β”” β—» group1value0 +β”‚ β”” β—» group1value0 β”‚ β”‚ β”‚ β—» group2 @@ -880,8 +880,8 @@ exports[`groupMultiselect (isCI = true) > initial values can be set 1`] = ` "β”‚ β—† foo β”‚ β—» group1 -β”‚ β”‚ β—» group1value0 -β”‚ β”” β—Ό group1value1 +β”‚ β”‚ β—» group1value0 +β”‚ β”” β—Ό group1value1 β”” ", "", @@ -901,8 +901,8 @@ exports[`groupMultiselect (isCI = true) > renders error when nothing selected 1` "β”‚ β—† foo β”‚ β—» group1 -β”‚ β”‚ β—» group1value0 -β”‚ β”” β—» group1value1 +β”‚ β”‚ β—» group1value0 +β”‚ β”” β—» group1value1 β”” ", "", @@ -910,8 +910,8 @@ exports[`groupMultiselect (isCI = true) > renders error when nothing selected 1` "", "β–² foo β”‚ β—» group1 -β”‚ β”‚ β—» group1value0 -β”‚ β”” β—» group1value1 +β”‚ β”‚ β—» group1value0 +β”‚ β”” β—» group1value1 β”” Please select at least one option. Press  space  to select,  enter  to submit ", @@ -946,8 +946,8 @@ exports[`groupMultiselect (isCI = true) > renders message with options 1`] = ` "β”‚ β—† foo β”‚ β—» group1 -β”‚ β”‚ β—» group1value0 -β”‚ β”” β—» group1value1 +β”‚ β”‚ β—» group1value0 +β”‚ β”” β—» group1value1 β”‚ β—» group2 β”‚ β”” β—» group2value0 β”” @@ -1048,8 +1048,8 @@ exports[`groupMultiselect (isCI = true) > values can be non-primitive 1`] = ` "β”‚ β—† foo β”‚ β—» group1 -β”‚ β”‚ β—» value0 -β”‚ β”” β—» value1 +β”‚ β”‚ β—» value0 +β”‚ β”” β—» value1 β”” ", "", diff --git a/packages/prompts/test/__snapshots__/path.test.ts.snap b/packages/prompts/test/__snapshots__/path.test.ts.snap index 181952f..9786b54 100644 --- a/packages/prompts/test/__snapshots__/path.test.ts.snap +++ b/packages/prompts/test/__snapshots__/path.test.ts.snap @@ -9,13 +9,12 @@ exports[`text (isCI = false) > can cancel 1`] = ` β”‚ Search: /tmp/β–ˆ β”‚ ● /tmp/bar β”‚ β—‹ /tmp/root.zip -β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search +β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search β””", "", "", "", - "β–  foo -β”‚ /tmp/", + "β–  fooβ”‚ /tmp/", " ", "", @@ -31,14 +30,14 @@ exports[`text (isCI = false) > cannot submit unknown value 1`] = ` β”‚ Search: /tmp/β–ˆ β”‚ ● /tmp/bar β”‚ β—‹ /tmp/root.zip -β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search +β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search β””", "", "", "", "β”‚ Search: /tmp/_β–ˆ β”‚ No matches found -β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search +β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search β””", "", "", @@ -48,7 +47,7 @@ exports[`text (isCI = false) > cannot submit unknown value 1`] = ` β”‚ Search: /tmp/_β–ˆ β”‚ No matches found β”‚ Please select a path -β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search +β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search β””", "", "", @@ -58,20 +57,19 @@ exports[`text (isCI = false) > cannot submit unknown value 1`] = ` β”‚ Search: /tmp/β–ˆ β”‚ ● /tmp/bar β”‚ β—‹ /tmp/root.zip -β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search +β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search β””", "", "", "", "β”‚ Search: /tmp/bβ–ˆ β”‚ ● /tmp/bar -β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search +β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search β””", "", "", "", - "β—‡ foo -β”‚ /tmp/bar", + "β—‡ fooβ”‚ /tmp/bar", " ", "", @@ -86,13 +84,12 @@ exports[`text (isCI = false) > initialValue sets the value 1`] = ` β”‚ Search: /tmp/barβ–ˆ β”‚ ● /tmp/bar -β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search +β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search β””", "", "", "", - "β—‡ foo -β”‚ /tmp/bar", + "β—‡ fooβ”‚ /tmp/bar", " ", "", @@ -108,14 +105,14 @@ exports[`text (isCI = false) > renders cancelled value if one set 1`] = ` β”‚ Search: /tmp/β–ˆ β”‚ ● /tmp/bar β”‚ β—‹ /tmp/root.zip -β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search +β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search β””", "", "", "", "β”‚ Search: /tmp/xβ–ˆ β”‚ No matches found -β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search +β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search β””", "", "", @@ -125,8 +122,7 @@ exports[`text (isCI = false) > renders cancelled value if one set 1`] = ` "", "", "", - "β–  foo -β”‚ /tmp/xy", + "β–  fooβ”‚ /tmp/xy", " ", "", @@ -142,13 +138,12 @@ exports[`text (isCI = false) > renders message 1`] = ` β”‚ Search: /tmp/β–ˆ β”‚ ● /tmp/bar β”‚ β—‹ /tmp/root.zip -β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search +β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search β””", "", "", "", - "β—‡ foo -β”‚ /tmp/bar", + "β—‡ fooβ”‚ /tmp/bar", " ", "", @@ -164,14 +159,14 @@ exports[`text (isCI = false) > renders submitted value 1`] = ` β”‚ Search: /tmp/β–ˆ β”‚ ● /tmp/bar β”‚ β—‹ /tmp/root.zip -β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search +β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search β””", "", "", "", "β”‚ Search: /tmp/bβ–ˆ β”‚ ● /tmp/bar -β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search +β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search β””", "", "", @@ -181,8 +176,7 @@ exports[`text (isCI = false) > renders submitted value 1`] = ` "", "", "", - "β—‡ foo -β”‚ /tmp/bar", + "β—‡ fooβ”‚ /tmp/bar", " ", "", @@ -198,14 +192,14 @@ exports[`text (isCI = false) > validation errors render and clear (using Error) β”‚ Search: /tmp/β–ˆ β”‚ ● /tmp/bar β”‚ β—‹ /tmp/root.zip -β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search +β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search β””", "", "", "", "β”‚ Search: /tmp/rβ–ˆ β”‚ ● /tmp/root.zip -β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search +β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search β””", "", "", @@ -215,7 +209,7 @@ exports[`text (isCI = false) > validation errors render and clear (using Error) β”‚ Search: /tmp/rβ–ˆ β”‚ should be /tmp/bar β”‚ ● /tmp/root.zip -β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search +β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search β””", "", "", @@ -225,20 +219,19 @@ exports[`text (isCI = false) > validation errors render and clear (using Error) β”‚ Search: /tmp/β–ˆ β”‚ β—‹ /tmp/bar β”‚ ● /tmp/root.zip -β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search +β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search β””", "", "", "", "β”‚ Search: /tmp/bβ–ˆ β”‚ ● /tmp/bar -β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search +β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search β””", "", "", "", - "β—‡ foo -β”‚ /tmp/bar", + "β—‡ fooβ”‚ /tmp/bar", " ", "", @@ -254,14 +247,14 @@ exports[`text (isCI = false) > validation errors render and clear 1`] = ` β”‚ Search: /tmp/β–ˆ β”‚ ● /tmp/bar β”‚ β—‹ /tmp/root.zip -β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search +β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search β””", "", "", "", "β”‚ Search: /tmp/rβ–ˆ β”‚ ● /tmp/root.zip -β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search +β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search β””", "", "", @@ -271,7 +264,7 @@ exports[`text (isCI = false) > validation errors render and clear 1`] = ` β”‚ Search: /tmp/rβ–ˆ β”‚ should be /tmp/bar β”‚ ● /tmp/root.zip -β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search +β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search β””", "", "", @@ -281,20 +274,19 @@ exports[`text (isCI = false) > validation errors render and clear 1`] = ` β”‚ Search: /tmp/β–ˆ β”‚ β—‹ /tmp/bar β”‚ ● /tmp/root.zip -β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search +β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search β””", "", "", "", "β”‚ Search: /tmp/bβ–ˆ β”‚ ● /tmp/bar -β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search +β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search β””", "", "", "", - "β—‡ foo -β”‚ /tmp/bar", + "β—‡ fooβ”‚ /tmp/bar", " ", "", @@ -310,13 +302,12 @@ exports[`text (isCI = true) > can cancel 1`] = ` β”‚ Search: /tmp/β–ˆ β”‚ ● /tmp/bar β”‚ β—‹ /tmp/root.zip -β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search +β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search β””", "", "", "", - "β–  foo -β”‚ /tmp/", + "β–  fooβ”‚ /tmp/", " ", "", @@ -332,14 +323,14 @@ exports[`text (isCI = true) > cannot submit unknown value 1`] = ` β”‚ Search: /tmp/β–ˆ β”‚ ● /tmp/bar β”‚ β—‹ /tmp/root.zip -β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search +β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search β””", "", "", "", "β”‚ Search: /tmp/_β–ˆ β”‚ No matches found -β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search +β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search β””", "", "", @@ -349,7 +340,7 @@ exports[`text (isCI = true) > cannot submit unknown value 1`] = ` β”‚ Search: /tmp/_β–ˆ β”‚ No matches found β”‚ Please select a path -β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search +β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search β””", "", "", @@ -359,20 +350,19 @@ exports[`text (isCI = true) > cannot submit unknown value 1`] = ` β”‚ Search: /tmp/β–ˆ β”‚ ● /tmp/bar β”‚ β—‹ /tmp/root.zip -β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search +β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search β””", "", "", "", "β”‚ Search: /tmp/bβ–ˆ β”‚ ● /tmp/bar -β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search +β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search β””", "", "", "", - "β—‡ foo -β”‚ /tmp/bar", + "β—‡ fooβ”‚ /tmp/bar", " ", "", @@ -387,13 +377,12 @@ exports[`text (isCI = true) > initialValue sets the value 1`] = ` β”‚ Search: /tmp/barβ–ˆ β”‚ ● /tmp/bar -β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search +β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search β””", "", "", "", - "β—‡ foo -β”‚ /tmp/bar", + "β—‡ fooβ”‚ /tmp/bar", " ", "", @@ -409,14 +398,14 @@ exports[`text (isCI = true) > renders cancelled value if one set 1`] = ` β”‚ Search: /tmp/β–ˆ β”‚ ● /tmp/bar β”‚ β—‹ /tmp/root.zip -β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search +β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search β””", "", "", "", "β”‚ Search: /tmp/xβ–ˆ β”‚ No matches found -β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search +β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search β””", "", "", @@ -426,8 +415,7 @@ exports[`text (isCI = true) > renders cancelled value if one set 1`] = ` "", "", "", - "β–  foo -β”‚ /tmp/xy", + "β–  fooβ”‚ /tmp/xy", " ", "", @@ -443,13 +431,12 @@ exports[`text (isCI = true) > renders message 1`] = ` β”‚ Search: /tmp/β–ˆ β”‚ ● /tmp/bar β”‚ β—‹ /tmp/root.zip -β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search +β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search β””", "", "", "", - "β—‡ foo -β”‚ /tmp/bar", + "β—‡ fooβ”‚ /tmp/bar", " ", "", @@ -465,14 +452,14 @@ exports[`text (isCI = true) > renders submitted value 1`] = ` β”‚ Search: /tmp/β–ˆ β”‚ ● /tmp/bar β”‚ β—‹ /tmp/root.zip -β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search +β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search β””", "", "", "", "β”‚ Search: /tmp/bβ–ˆ β”‚ ● /tmp/bar -β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search +β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search β””", "", "", @@ -482,8 +469,7 @@ exports[`text (isCI = true) > renders submitted value 1`] = ` "", "", "", - "β—‡ foo -β”‚ /tmp/bar", + "β—‡ fooβ”‚ /tmp/bar", " ", "", @@ -499,14 +485,14 @@ exports[`text (isCI = true) > validation errors render and clear (using Error) 1 β”‚ Search: /tmp/β–ˆ β”‚ ● /tmp/bar β”‚ β—‹ /tmp/root.zip -β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search +β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search β””", "", "", "", "β”‚ Search: /tmp/rβ–ˆ β”‚ ● /tmp/root.zip -β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search +β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search β””", "", "", @@ -516,7 +502,7 @@ exports[`text (isCI = true) > validation errors render and clear (using Error) 1 β”‚ Search: /tmp/rβ–ˆ β”‚ should be /tmp/bar β”‚ ● /tmp/root.zip -β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search +β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search β””", "", "", @@ -526,20 +512,19 @@ exports[`text (isCI = true) > validation errors render and clear (using Error) 1 β”‚ Search: /tmp/β–ˆ β”‚ β—‹ /tmp/bar β”‚ ● /tmp/root.zip -β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search +β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search β””", "", "", "", "β”‚ Search: /tmp/bβ–ˆ β”‚ ● /tmp/bar -β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search +β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search β””", "", "", "", - "β—‡ foo -β”‚ /tmp/bar", + "β—‡ fooβ”‚ /tmp/bar", " ", "", @@ -555,14 +540,14 @@ exports[`text (isCI = true) > validation errors render and clear 1`] = ` β”‚ Search: /tmp/β–ˆ β”‚ ● /tmp/bar β”‚ β—‹ /tmp/root.zip -β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search +β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search β””", "", "", "", "β”‚ Search: /tmp/rβ–ˆ β”‚ ● /tmp/root.zip -β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search +β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search β””", "", "", @@ -572,7 +557,7 @@ exports[`text (isCI = true) > validation errors render and clear 1`] = ` β”‚ Search: /tmp/rβ–ˆ β”‚ should be /tmp/bar β”‚ ● /tmp/root.zip -β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search +β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search β””", "", "", @@ -582,20 +567,19 @@ exports[`text (isCI = true) > validation errors render and clear 1`] = ` β”‚ Search: /tmp/β–ˆ β”‚ β—‹ /tmp/bar β”‚ ● /tmp/root.zip -β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search +β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search β””", "", "", "", "β”‚ Search: /tmp/bβ–ˆ β”‚ ● /tmp/bar -β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search +β”‚ ↑/↓ to select β€’ Enter: confirm β€’ Type: to search β””", "", "", "", - "β—‡ foo -β”‚ /tmp/bar", + "β—‡ fooβ”‚ /tmp/bar", " ", "",