@nulogy/components
Advanced tools
Comparing version 10.2.5 to 10.2.6
import React, { ReactNode, RefObject } from "react"; | ||
import PropTypes from "prop-types"; | ||
import { FlexProps } from "../Flex/Flex"; | ||
export declare const getPageItemsToDisplay: (totalPages: number, currentPage: number) => (string | number)[]; | ||
type PaginationProps = FlexProps & { | ||
declare const SEPARATOR: "..."; | ||
export declare const getPageItemsToDisplay: (totalPages: number, currentPage: number) => Array<typeof SEPARATOR | number>; | ||
interface PaginationProps extends FlexProps { | ||
currentPage: number; | ||
@@ -10,3 +11,3 @@ totalPages: number; | ||
onPrevious?: () => void; | ||
onSelectPage?: (page: string | number) => void; | ||
onSelectPage?: (page: number) => void; | ||
nextLabel?: ReactNode; | ||
@@ -18,3 +19,3 @@ nextAriaLabel?: string; | ||
scrollTargetRef?: RefObject<HTMLElement>; | ||
}; | ||
} | ||
declare function Pagination({ currentPage, totalPages, onNext, onPrevious, onSelectPage, nextAriaLabel, nextLabel, previousAriaLabel, previousLabel, scrollToTopAfterPagination, scrollTargetRef, "aria-label": ariaLabel, ...restProps }: PaginationProps): React.JSX.Element; | ||
@@ -21,0 +22,0 @@ declare namespace Pagination { |
{ | ||
"name": "@nulogy/components", | ||
"version": "10.2.5", | ||
"version": "10.2.6", | ||
"description": "Component library for the Nulogy Design System - http://nulogy.design", | ||
@@ -5,0 +5,0 @@ "private": false, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4137372
102030