@indxsearch/systm 2.25.0-beta.1 → 2.25.0-beta.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.25.0-beta.2
4
+
5
+ ### Minor Changes
6
+
7
+ - 1e4c371: New `Pagination`: previous, the first and last pages, the current page with its neighbours, and next. The current page is marked as a current tab is. Controlled with `page`, `pageCount` and `onPageChange`, in micro and default sizes.
8
+
9
+ ### Patch Changes
10
+
11
+ - 8ceb7ef: `FilterPanelBase` takes its background, padding, radius, the gap below it and an optional divider from CSS custom properties (`--filter-panel-background`, `--filter-panel-padding`, `--filter-panel-radius`, `--filter-panel-gap`, `--filter-panel-divider`), so a layout can draw filter panels as sections on a plain page rather than cards. Unset, they look as before.
12
+
3
13
  ## 2.25.0-beta.1
4
14
 
5
15
  ### Minor Changes
@@ -0,0 +1,26 @@
1
+ import { default as React } from 'react';
2
+ export interface PaginationProps {
3
+ /** The page shown, from 1. */
4
+ page: number;
5
+ /** How many pages there are. Below 2 nothing is drawn. */
6
+ pageCount: number;
7
+ onPageChange: (page: number) => void;
8
+ /** Pages listed on each side of the current one; the first and the last are always listed. Default 1. */
9
+ siblings?: number;
10
+ size?: 'micro' | 'default';
11
+ /** Turns every button off, as while the page it asked for is on its way. */
12
+ disabled?: boolean;
13
+ labels?: {
14
+ previous?: string;
15
+ next?: string;
16
+ page?: (page: number) => string;
17
+ };
18
+ className?: string;
19
+ 'aria-label'?: string;
20
+ }
21
+ /** The pages to list: the first, the last, the current with its siblings, and a gap (null) where
22
+ * pages are left out. A gap of one page lists that page instead, as it takes the same room. */
23
+ export declare function paginationItems(page: number, pageCount: number, siblings?: number): (number | null)[];
24
+ /** Numbered pages: previous, the pages around the current one, next. The current page is the
25
+ * secondary button, as a current tab; the others are ghost. (26 Nov 2026) */
26
+ export declare const Pagination: React.FC<PaginationProps>;