Skip to content

Commit

Permalink
fix(cosmoz-autocomplete): export part wrap
Browse files Browse the repository at this point in the history
  • Loading branch information
micaelagoffe committed May 2, 2024
1 parent 2b9dcf3 commit 7c7ef1d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/autocomplete/autocomplete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ type AProps<I> = Omit<Props<I>, keyof RProps<I>> &

const blank = () => nothing;

const inputParts = ['input', 'control', 'label', 'line', 'error']
const inputParts = ['input', 'control', 'label', 'line', 'error', 'wrap']
.map((part) => `${part}: input-${part}`)
.join();

Expand Down
22 changes: 13 additions & 9 deletions test/__snapshots__/cosmoz-autocomplete.test.snap.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ snapshots["cosmoz-autocomplete-ui render"] =
`<cosmoz-input
always-float-label=""
autocomplete="off"
exportparts="input: input-input,control: input-control,label: input-label,line: input-line,error: input-error"
exportparts="input: input-input,control: input-control,label: input-label,line: input-line,error: input-error,wrap: input-wrap"
id="input"
part="input"
>
Expand Down Expand Up @@ -58,7 +58,7 @@ snapshots["cosmoz-autocomplete-ui render (limit 1)"] =
autocomplete="off"
data-one=""
data-single=""
exportparts="input: input-input,control: input-control,label: input-label,line: input-line,error: input-error"
exportparts="input: input-input,control: input-control,label: input-label,line: input-line,error: input-error,wrap: input-wrap"
id="input"
part="input"
readonly=""
Expand Down Expand Up @@ -101,7 +101,7 @@ snapshots["cosmoz-autocomplete-ui render (listbox)"] =
`<cosmoz-input
always-float-label=""
autocomplete="off"
exportparts="input: input-input,control: input-control,label: input-label,line: input-line,error: input-error"
exportparts="input: input-input,control: input-control,label: input-label,line: input-line,error: input-error,wrap: input-wrap"
id="input"
part="input"
>
Expand Down Expand Up @@ -137,16 +137,21 @@ snapshots["cosmoz-autocomplete-ui render (listbox)"] =
</span>
</cosmoz-autocomplete-chip>
</cosmoz-input>
<disconnect-observer>
</disconnect-observer>
<cosmoz-listbox
multi=""
part="listbox"
popover="manual"
style="left: 8px; top: 68px; min-width: 784px;"
>
</cosmoz-listbox>
`;
/* end snapshot cosmoz-autocomplete-ui render (listbox) */

snapshots["cosmoz-autocomplete render"] =
`<cosmoz-input
always-float-label=""
autocomplete="off"
exportparts="input: input-input,control: input-control,label: input-label,line: input-line,error: input-error"
exportparts="input: input-input,control: input-control,label: input-label,line: input-line,error: input-error,wrap: input-wrap"
id="input"
part="input"
>
Expand Down Expand Up @@ -188,7 +193,7 @@ snapshots["cosmoz-autocomplete render (deselect)"] =
`<cosmoz-input
autocomplete="off"
data-one=""
exportparts="input: input-input,control: input-control,label: input-label,line: input-line,error: input-error"
exportparts="input: input-input,control: input-control,label: input-label,line: input-line,error: input-error,wrap: input-wrap"
id="input"
part="input"
>
Expand All @@ -215,5 +220,4 @@ snapshots["cosmoz-autocomplete render (deselect)"] =
</cosmoz-autocomplete-chip>
</cosmoz-input>
`;
/* end snapshot cosmoz-autocomplete render (deselect) */

/* end snapshot cosmoz-autocomplete render (deselect) */

0 comments on commit 7c7ef1d

Please sign in to comment.