@starasia/admin 8.5.0 → 8.6.1

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.
@@ -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
@@ -133,6 +133,12 @@ export interface FilterBarProps {
133
133
  * selalu di kiri toolbar).
134
134
  */
135
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;
136
142
  /** Pagination meta from the API (drives result count + pager). */
137
143
  pagination?: Pagination;
138
144
  /** URL param for page size. Default `'perPage'`. */