chore(SearchBar): delete unused code and slightly tweak appearance
This commit is contained in:
@@ -45,11 +45,7 @@ let noChildrenValue = $state('');
|
||||
placeholder: 'Type here...',
|
||||
}}
|
||||
>
|
||||
<SearchBar bind:value={defaultSearchValue} placeholder="Type here...">
|
||||
Here will be the search result
|
||||
<br />
|
||||
Popover closes only when the user clicks outside the search bar or presses the Escape key.
|
||||
</SearchBar>
|
||||
<SearchBar bind:value={defaultSearchValue} placeholder="Type here..."> </SearchBar>
|
||||
</Story>
|
||||
|
||||
<Story
|
||||
@@ -60,11 +56,7 @@ let noChildrenValue = $state('');
|
||||
label: 'Search',
|
||||
}}
|
||||
>
|
||||
<SearchBar bind:value={withLabelValue} placeholder="Search products..." label="Search">
|
||||
<div class="p-4">
|
||||
<p class="text-sm text-muted-foreground">No results found</p>
|
||||
</div>
|
||||
</SearchBar>
|
||||
<SearchBar bind:value={withLabelValue} placeholder="Search products..." label="Search"> </SearchBar>
|
||||
</Story>
|
||||
|
||||
<Story
|
||||
@@ -74,9 +66,5 @@ let noChildrenValue = $state('');
|
||||
placeholder: 'Quick search...',
|
||||
}}
|
||||
>
|
||||
<SearchBar bind:value={noChildrenValue} placeholder="Quick search...">
|
||||
<div class="p-4 text-center text-sm text-muted-foreground">
|
||||
Start typing to see results
|
||||
</div>
|
||||
</SearchBar>
|
||||
<SearchBar bind:value={noChildrenValue} placeholder="Quick search..."> </SearchBar>
|
||||
</Story>
|
||||
|
||||
Reference in New Issue
Block a user