@mijn-ui/react-pagination 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/README.md +1 -1
- package/dist/index.d.ts +33 -2
- package/dist/index.js +3 -2
- package/dist/metafile-esm.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
3
|
+
import * as tailwind_merge from 'tailwind-merge';
|
|
4
|
+
import * as _mijn_ui_react_theme from '@mijn-ui/react-theme';
|
|
5
|
+
import { UnstyledProps, UnstyledComponentWithSlots, PaginationSlots, paginationStyles } from '@mijn-ui/react-theme';
|
|
2
6
|
import * as React from 'react';
|
|
3
|
-
import { UnstyledComponentWithSlots, PaginationSlots, paginationStyles, UnstyledProps } from '@mijn-ui/react-theme';
|
|
4
7
|
|
|
5
8
|
type PaginationBaseProps = UnstyledComponentWithSlots<PaginationSlots>;
|
|
6
9
|
type PaginationContextType = PaginationBaseProps & {
|
|
@@ -14,6 +17,34 @@ type PaginationContextType = PaginationBaseProps & {
|
|
|
14
17
|
goToNextPage: () => void;
|
|
15
18
|
};
|
|
16
19
|
declare const usePaginationContext: () => PaginationContextType;
|
|
20
|
+
declare const usePaginationStyles: (unstyledOverride?: boolean) => {
|
|
21
|
+
classNames: _mijn_ui_react_theme.SlotsToClasses<"base" | "content" | "list" | "listItem" | "previousBtn" | "previousElipsis" | "nextBtn" | "nextElipsis"> | undefined;
|
|
22
|
+
isUnstyled: boolean | undefined;
|
|
23
|
+
base: (slotProps?: ({
|
|
24
|
+
active?: boolean | undefined;
|
|
25
|
+
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string | undefined;
|
|
26
|
+
content: (slotProps?: ({
|
|
27
|
+
active?: boolean | undefined;
|
|
28
|
+
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string | undefined;
|
|
29
|
+
list: (slotProps?: ({
|
|
30
|
+
active?: boolean | undefined;
|
|
31
|
+
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string | undefined;
|
|
32
|
+
listItem: (slotProps?: ({
|
|
33
|
+
active?: boolean | undefined;
|
|
34
|
+
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string | undefined;
|
|
35
|
+
previousBtn: (slotProps?: ({
|
|
36
|
+
active?: boolean | undefined;
|
|
37
|
+
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string | undefined;
|
|
38
|
+
previousElipsis: (slotProps?: ({
|
|
39
|
+
active?: boolean | undefined;
|
|
40
|
+
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string | undefined;
|
|
41
|
+
nextBtn: (slotProps?: ({
|
|
42
|
+
active?: boolean | undefined;
|
|
43
|
+
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string | undefined;
|
|
44
|
+
nextElipsis: (slotProps?: ({
|
|
45
|
+
active?: boolean | undefined;
|
|
46
|
+
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string | undefined;
|
|
47
|
+
};
|
|
17
48
|
type PaginationProps = {
|
|
18
49
|
totalPages: number;
|
|
19
50
|
itemsPerPage: number;
|
|
@@ -35,4 +66,4 @@ declare const PaginationPreviousEllipsis: ({ className, unstyled, ...props }: Pa
|
|
|
35
66
|
type PaginationNextEllipsisProps = React.ComponentProps<"span"> & UnstyledProps;
|
|
36
67
|
declare const PaginationNextEllipsis: ({ className, unstyled, ...props }: PaginationNextEllipsisProps) => react_jsx_runtime.JSX.Element | null;
|
|
37
68
|
|
|
38
|
-
export { Pagination, PaginationContent, PaginationList, PaginationNextButton, PaginationNextEllipsis, PaginationPreviousButton, PaginationPreviousEllipsis, type PaginationProps, usePaginationContext };
|
|
69
|
+
export { Pagination, PaginationContent, type PaginationContentProps, PaginationList, type PaginationListProps, PaginationNextButton, type PaginationNextButtonProps, PaginationNextEllipsis, type PaginationNextEllipsisProps, PaginationPreviousButton, PaginationPreviousEllipsis, type PaginationProps, usePaginationContext, usePaginationStyles };
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use client"
|
|
1
|
+
"use client";
|
|
2
2
|
|
|
3
3
|
// src/pagination.tsx
|
|
4
4
|
import * as React from "react";
|
|
@@ -232,5 +232,6 @@ export {
|
|
|
232
232
|
PaginationNextEllipsis,
|
|
233
233
|
PaginationPreviousButton,
|
|
234
234
|
PaginationPreviousEllipsis,
|
|
235
|
-
usePaginationContext
|
|
235
|
+
usePaginationContext,
|
|
236
|
+
usePaginationStyles
|
|
236
237
|
};
|
package/dist/metafile-esm.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"src/pagination.tsx":{"bytes":
|
|
1
|
+
{"inputs":{"src/pagination.tsx":{"bytes":10103,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@mijn-ui/react-hooks","kind":"import-statement","external":true},{"path":"@mijn-ui/react-theme","kind":"import-statement","external":true},{"path":"@mijn-ui/react-utilities","kind":"import-statement","external":true},{"path":"@mijn-ui/shared-icons","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":29,"imports":[{"path":"src/pagination.tsx","kind":"import-statement","original":"./pagination"}],"format":"esm"}},"outputs":{"dist/index.js":{"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@mijn-ui/react-hooks","kind":"import-statement","external":true},{"path":"@mijn-ui/react-theme","kind":"import-statement","external":true},{"path":"@mijn-ui/react-utilities","kind":"import-statement","external":true},{"path":"@mijn-ui/shared-icons","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"exports":["Pagination","PaginationContent","PaginationList","PaginationNextButton","PaginationNextEllipsis","PaginationPreviousButton","PaginationPreviousEllipsis","usePaginationContext","usePaginationStyles"],"entryPoint":"src/index.ts","inputs":{"src/pagination.tsx":{"bytesInOutput":6085},"src/index.ts":{"bytesInOutput":0}},"bytes":6341}}}
|