@starasia/admin 8.4.3 → 8.6.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.
@@ -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>;
@@ -21,6 +21,7 @@ interface MobileFilterBarProps {
21
21
  pageKey: string;
22
22
  searchPlaceholder: string;
23
23
  searchShortcut: string;
24
+ searchCollapsible: boolean;
24
25
  pagination?: PaginationMeta;
25
26
  perPageKey: string;
26
27
  pageSizeOptions: number[];
@@ -7,6 +7,11 @@ interface SearchBoxProps {
7
7
  placeholder?: string;
8
8
  /** Single-key shortcut that focuses search. Default `/`. */
9
9
  shortcut?: string;
10
+ /**
11
+ * When `false` the input is always expanded — no icon trigger, no
12
+ * collapse-on-blur, no width animation. Default `true`.
13
+ */
14
+ collapsible?: boolean;
10
15
  }
11
16
  /**
12
17
  * Search control that animates open from an icon button. The input is always
@@ -126,6 +126,19 @@ 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';
136
+ /**
137
+ * When `false`, the search input is always expanded (no icon trigger, no
138
+ * collapse-on-blur). Default `true`. Useful for search-first pages where the
139
+ * field should be ready to type immediately.
140
+ */
141
+ searchCollapsible?: boolean;
129
142
  /** Pagination meta from the API (drives result count + pager). */
130
143
  pagination?: Pagination;
131
144
  /** URL param for page size. Default `'perPage'`. */