Skip to content

Commit

Permalink
Rename to k-search-bar
Browse files Browse the repository at this point in the history
  • Loading branch information
distantnative committed Aug 2, 2024
1 parent 610fc8f commit 4ec6267
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 deletions.
5 changes: 0 additions & 5 deletions panel/lab/components/search/index.php

This file was deleted.

5 changes: 5 additions & 0 deletions panel/lab/components/search/search-bar/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php

return [
'docs' => 'k-search-bar',
];
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
<template>
<k-lab-examples>
<k-lab-example label="Default">
<k-search />
<k-search-bar />
</k-lab-example>
<k-lab-example label="Types">
<k-search :types="types" />
<k-search-bar :types="types" />
</k-lab-example>
<k-lab-example label="Default type">
<k-search :types="types" default-type="files" />
<k-search-bar :types="types" default-type="files" />
</k-lab-example>
<k-lab-example label="No results">
<k-search :results="[]" />
<k-search-bar :results="[]" />
</k-lab-example>
<k-lab-example label="Results">
<k-search :results="results" />
<k-search-bar :results="results" />
</k-lab-example>
<k-lab-example label="More results">
<k-search :results="results" :pagination="{ total: 20 }" />
<k-search-bar :results="results" :pagination="{ total: 20 }" />
</k-lab-example>
<k-lab-example label="Is Loading">
<k-search :is-loading="true" :results="results" :types="types" />
<k-search-bar :is-loading="true" :results="results" :types="types" />
</k-lab-example>
</k-lab-examples>
</template>
Expand Down
2 changes: 1 addition & 1 deletion panel/src/components/Dialogs/SearchDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
@cancel="$emit('cancel')"
@submit="submit"
>
<k-search
<k-search-bar
ref="search"
:default-type="type ?? $panel.view.search"
:is-loading="$panel.searcher.isLoading"
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions panel/src/components/Navigation/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import Navigate from "./Navigate.vue";
import PageTree from "./PageTree.vue";
import Pagination from "./Pagination.vue";
import PrevNext from "./PrevNext.vue";
import Search from "./Search.vue";
import SearchBar from "./SearchBar.vue";
import Tag from "./Tag.vue";
import Tags from "./Tags.vue";
import Tree from "./Tree.vue";
Expand All @@ -32,7 +32,7 @@ export default {
app.component("k-page-tree", PageTree);
app.component("k-pagination", Pagination);
app.component("k-prev-next", PrevNext);
app.component("k-search", Search);
app.component("k-search-bar", SearchBar);
app.component("k-tag", Tag);
app.component("k-tags", Tags);
app.component("k-tree", Tree);
Expand Down

0 comments on commit 4ec6267

Please sign in to comment.