Comparing version 1.0.9 to 1.1.0
import { PaginationButtonType } from "./src/types"; | ||
import { useFetchData } from "./src/hooks/useFetchData"; | ||
import { | ||
CSSProperties, | ||
ComponentType, | ||
Dispatch, | ||
ReactNode, | ||
SetStateAction, | ||
} from "react"; | ||
import { Pagination } from "./src/components/PaginationWithCount"; | ||
declare module "6pp" { | ||
export const useFetchData: <T>( | ||
url: string, | ||
key: string, | ||
dependencyProps?: (string | number | boolean)[] | ||
) => { | ||
data: T | null; | ||
loading: boolean; | ||
error: string; | ||
refetch: () => void; | ||
clearCache: () => void; | ||
}; | ||
export type PaginationButtonType = ComponentType<{ | ||
children: ReactNode; | ||
onClick: () => void; | ||
style?: CSSProperties; | ||
}>; | ||
type PaginationProps = { | ||
totalPages: number; | ||
currPage: number; | ||
setCurrPage: Dispatch<SetStateAction<number>>; | ||
Button?: PaginationButtonType; | ||
Container?: ComponentType<{ children: ReactNode }>; | ||
activeButtonStyle?: CSSProperties; | ||
}; | ||
export const Pagination: ({ | ||
totalPages, | ||
currPage, | ||
setCurrPage, | ||
activeButtonStyle, | ||
Button, | ||
Container, | ||
}: PaginationProps) => React.JSX.Element; | ||
export { PaginationButtonType, useFetchData, Pagination }; | ||
} |
{ | ||
"name": "6pp", | ||
"version": "1.0.9", | ||
"version": "1.1.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "./dist/bundle.js", |
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
22511
212