import Button from "@ui5/webcomponents/dist/Button.js"; import ButtonDesign from "@ui5/webcomponents/dist/types/ButtonDesign.js"; import type ShellBar from "../../ShellBar.js"; function ShellBarSearchField(this: ShellBar) { return ( // .ui5-shellbar-search-field-area is used to measure the width of // the search field. It must be present even if the search is in full-width mode. // The `ui5-shellbar-gap-start` lives on the area (always rendered) rather than on the // inner field (rendered only in-bar), so the measured width stays identical whether the // search is in the bar or in full-width mode - otherwise the 8px gap would be counted // only in-bar, shifting the overflow measurement and causing a render loop.
{this.showSearchField && !this.showFullWidthSearch && (
)}
); } function ShellBarSearchFieldFullWidth(this: ShellBar) { return (
); } function ShellBarSearchButton(this: ShellBar) { const searchAction = this.getAction("search"); return ( <> {!this.hideSearchButton && (