@starasia/admin 8.4.3 → 8.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/FilterBar/FilterBar.d.ts +2 -1
- package/dist/components/FilterBar/types.d.ts +7 -0
- package/dist/index.cjs.js +2 -2
- package/dist/index.es.js +1211 -1209
- package/dist/index.umd.js +2 -2
- package/package.json +1 -1
|
@@ -9,6 +9,7 @@ import { FilterBarProps } from './types';
|
|
|
9
9
|
* storage adapter. Successor to `AdvanceFilterBar`.
|
|
10
10
|
*
|
|
11
11
|
* Layout — left: Add Filter + pills + Reset; right: result count + page size +
|
|
12
|
-
* pager + search + saved views + columns.
|
|
12
|
+
* pager + search + saved views + columns. `searchPosition='left'` moves the
|
|
13
|
+
* search control into the left cluster (after Add Filter) instead of the right.
|
|
13
14
|
*/
|
|
14
15
|
export declare const FilterBar: React.FC<FilterBarProps>;
|
|
@@ -126,6 +126,13 @@ export interface FilterBarProps {
|
|
|
126
126
|
searchPlaceholder?: string;
|
|
127
127
|
/** Single-key shortcut that focuses search. Default `'/'`. */
|
|
128
128
|
searchShortcut?: string;
|
|
129
|
+
/**
|
|
130
|
+
* Posisi SearchBox di layout desktop. `'left'` = tepat setelah Add Filter
|
|
131
|
+
* (sebelum pills), berguna saat halaman hanya pakai search sehingga cluster
|
|
132
|
+
* kiri tidak kosong. Default `'right'`. Tidak berpengaruh di mobile (search
|
|
133
|
+
* selalu di kiri toolbar).
|
|
134
|
+
*/
|
|
135
|
+
searchPosition?: 'left' | 'right';
|
|
129
136
|
/** Pagination meta from the API (drives result count + pager). */
|
|
130
137
|
pagination?: Pagination;
|
|
131
138
|
/** URL param for page size. Default `'perPage'`. */
|