@dimaan/ui 0.0.17 → 0.0.18
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/index.cjs +130 -15439
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +23 -1
- package/dist/index.d.ts +23 -1
- package/dist/index.js +35 -15343
- package/dist/index.js.map +1 -1
- package/package.json +5 -1
package/dist/index.d.cts
CHANGED
|
@@ -1586,6 +1586,28 @@ interface ListPageProps<T> {
|
|
|
1586
1586
|
filters?: ListPageFilter<T>[];
|
|
1587
1587
|
enableRowSelection?: boolean;
|
|
1588
1588
|
bulkActions?: (selected: T[]) => ReactNode;
|
|
1589
|
+
/**
|
|
1590
|
+
* Controlled pagination state. Pair with `onPaginationChange` and `totalCount`
|
|
1591
|
+
* for server-side pagination — the consumer's data-fetching layer becomes
|
|
1592
|
+
* the source of truth for `pageIndex` / `pageSize`.
|
|
1593
|
+
*/
|
|
1594
|
+
pagination?: PaginationState;
|
|
1595
|
+
/** Uncontrolled initial pagination state. Ignored when `pagination` is set. */
|
|
1596
|
+
defaultPagination?: PaginationState;
|
|
1597
|
+
/** Fires when the user changes the page or page size. */
|
|
1598
|
+
onPaginationChange?: (next: PaginationState) => void;
|
|
1599
|
+
/**
|
|
1600
|
+
* Total row count across all pages on the server. Setting this flips the
|
|
1601
|
+
* inner Table into server-side mode — it stops slicing `data` locally and
|
|
1602
|
+
* trusts `data` to be the current page already.
|
|
1603
|
+
*
|
|
1604
|
+
* In server-side mode the consumer also typically skips `searchKeys` /
|
|
1605
|
+
* `filters` (those would filter only the current page) and drives search /
|
|
1606
|
+
* filter from the data-fetching layer instead.
|
|
1607
|
+
*/
|
|
1608
|
+
totalCount?: number;
|
|
1609
|
+
/** Page-size dropdown options. Defaults to `[10, 25, 50]`. */
|
|
1610
|
+
pageSizeOptions?: readonly number[];
|
|
1589
1611
|
/**
|
|
1590
1612
|
* Shown when filters/search are active but match zero rows. Falls back to a
|
|
1591
1613
|
* "No results — try clearing the search or adjusting the filters" prompt
|
|
@@ -1664,7 +1686,7 @@ interface ListPageProps<T> {
|
|
|
1664
1686
|
* />
|
|
1665
1687
|
* ```
|
|
1666
1688
|
*/
|
|
1667
|
-
declare function ListPage<T>({ title, description, bordered, actions, data, columns, getRowId, isLoading, loadingRowCount, searchKeys, filters, enableRowSelection, bulkActions, emptyState, noDataState, labels: labelsProp, className, }: ListPageProps<T>): react_jsx_runtime.JSX.Element;
|
|
1689
|
+
declare function ListPage<T>({ title, description, bordered, actions, data, columns, getRowId, isLoading, loadingRowCount, searchKeys, filters, enableRowSelection, bulkActions, pagination, defaultPagination, onPaginationChange, totalCount, pageSizeOptions, emptyState, noDataState, labels: labelsProp, className, }: ListPageProps<T>): react_jsx_runtime.JSX.Element;
|
|
1668
1690
|
|
|
1669
1691
|
type RadioGroupSize = 'sm' | 'md' | 'lg';
|
|
1670
1692
|
/** Outer circle (radio button itself) — sized + bordered. */
|
package/dist/index.d.ts
CHANGED
|
@@ -1586,6 +1586,28 @@ interface ListPageProps<T> {
|
|
|
1586
1586
|
filters?: ListPageFilter<T>[];
|
|
1587
1587
|
enableRowSelection?: boolean;
|
|
1588
1588
|
bulkActions?: (selected: T[]) => ReactNode;
|
|
1589
|
+
/**
|
|
1590
|
+
* Controlled pagination state. Pair with `onPaginationChange` and `totalCount`
|
|
1591
|
+
* for server-side pagination — the consumer's data-fetching layer becomes
|
|
1592
|
+
* the source of truth for `pageIndex` / `pageSize`.
|
|
1593
|
+
*/
|
|
1594
|
+
pagination?: PaginationState;
|
|
1595
|
+
/** Uncontrolled initial pagination state. Ignored when `pagination` is set. */
|
|
1596
|
+
defaultPagination?: PaginationState;
|
|
1597
|
+
/** Fires when the user changes the page or page size. */
|
|
1598
|
+
onPaginationChange?: (next: PaginationState) => void;
|
|
1599
|
+
/**
|
|
1600
|
+
* Total row count across all pages on the server. Setting this flips the
|
|
1601
|
+
* inner Table into server-side mode — it stops slicing `data` locally and
|
|
1602
|
+
* trusts `data` to be the current page already.
|
|
1603
|
+
*
|
|
1604
|
+
* In server-side mode the consumer also typically skips `searchKeys` /
|
|
1605
|
+
* `filters` (those would filter only the current page) and drives search /
|
|
1606
|
+
* filter from the data-fetching layer instead.
|
|
1607
|
+
*/
|
|
1608
|
+
totalCount?: number;
|
|
1609
|
+
/** Page-size dropdown options. Defaults to `[10, 25, 50]`. */
|
|
1610
|
+
pageSizeOptions?: readonly number[];
|
|
1589
1611
|
/**
|
|
1590
1612
|
* Shown when filters/search are active but match zero rows. Falls back to a
|
|
1591
1613
|
* "No results — try clearing the search or adjusting the filters" prompt
|
|
@@ -1664,7 +1686,7 @@ interface ListPageProps<T> {
|
|
|
1664
1686
|
* />
|
|
1665
1687
|
* ```
|
|
1666
1688
|
*/
|
|
1667
|
-
declare function ListPage<T>({ title, description, bordered, actions, data, columns, getRowId, isLoading, loadingRowCount, searchKeys, filters, enableRowSelection, bulkActions, emptyState, noDataState, labels: labelsProp, className, }: ListPageProps<T>): react_jsx_runtime.JSX.Element;
|
|
1689
|
+
declare function ListPage<T>({ title, description, bordered, actions, data, columns, getRowId, isLoading, loadingRowCount, searchKeys, filters, enableRowSelection, bulkActions, pagination, defaultPagination, onPaginationChange, totalCount, pageSizeOptions, emptyState, noDataState, labels: labelsProp, className, }: ListPageProps<T>): react_jsx_runtime.JSX.Element;
|
|
1668
1690
|
|
|
1669
1691
|
type RadioGroupSize = 'sm' | 'md' | 'lg';
|
|
1670
1692
|
/** Outer circle (radio button itself) — sized + bordered. */
|