@ostack.tech/ui 0.3.1 → 0.3.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.
@@ -1,4 +1,5 @@
1
- import { ComponentPropsWithoutRef, ReactNode } from 'react';
1
+ import { ComponentPropsWithoutRef, ComponentPropsWithRef, ReactNode } from 'react';
2
+ import { IconButton } from '../IconButton';
2
3
  /** Properties of the data table pagination component. */
3
4
  export interface DataTablePaginationProps extends ComponentPropsWithoutRef<"div"> {
4
5
  /**
@@ -13,6 +14,13 @@ export interface DataTablePaginationProps extends ComponentPropsWithoutRef<"div"
13
14
  previousPageButtonLabel?: string;
14
15
  /** Label of the next page button (only relevant in paged mode). */
15
16
  nextPageButtonLabel?: string;
17
+ /**
18
+ * Properties to pass to the previous page button (only relevant in paged
19
+ * mode).
20
+ */
21
+ previousPageButtonProps?: ComponentPropsWithRef<typeof IconButton>;
22
+ /** Properties to pass to the next page button (only relevant in paged mode). */
23
+ nextPageButtonProps?: ComponentPropsWithRef<typeof IconButton>;
16
24
  }
17
25
  /** Component used to provide pagination to the data table. */
18
26
  export declare const DataTablePagination: import('react').ForwardRefExoticComponent<DataTablePaginationProps & import('react').RefAttributes<HTMLDivElement>>;
@@ -1,7 +1,7 @@
1
1
  import { ComponentPropsWithoutRef } from 'react';
2
2
  import { DataTablePaginationProps } from './DataTablePagination.tsx';
3
3
  /** Properties of the scrolled data table pagination. */
4
- export interface PagedDataTablePaginationProps extends ComponentPropsWithoutRef<"div">, Pick<DataTablePaginationProps, "rowsRange" | "previousPageButtonLabel" | "nextPageButtonLabel"> {
4
+ export interface PagedDataTablePaginationProps extends ComponentPropsWithoutRef<"div">, Pick<DataTablePaginationProps, "rowsRange" | "previousPageButtonLabel" | "nextPageButtonLabel" | "previousPageButtonProps" | "nextPageButtonProps"> {
5
5
  }
6
6
  /** Pagination component of the scrolled data table. */
7
7
  export declare const PagedDataTablePagination: import('react').ForwardRefExoticComponent<PagedDataTablePaginationProps & import('react').RefAttributes<HTMLDivElement>>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ostack.tech/ui",
3
3
  "description": "ostack/UI component library.",
4
- "version": "0.3.1",
4
+ "version": "0.3.2",
5
5
  "homepage": "https://ui.ostack.tech/",
6
6
  "author": {
7
7
  "name": "Opensoft",