@mijn-ui/react-pagination 0.3.0 → 0.4.1
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.js +8 -7
- package/dist/metafile-esm.json +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -3,11 +3,12 @@
|
|
|
3
3
|
// src/pagination.tsx
|
|
4
4
|
import * as React from "react";
|
|
5
5
|
import {
|
|
6
|
+
cn,
|
|
6
7
|
createContext,
|
|
7
8
|
useTVUnstyled
|
|
8
9
|
} from "@mijn-ui/react-core";
|
|
9
10
|
import { EllipsisIcon } from "@mijn-ui/shared-icons";
|
|
10
|
-
import {
|
|
11
|
+
import { tv } from "tailwind-variants";
|
|
11
12
|
import { jsx } from "react/jsx-runtime";
|
|
12
13
|
var paginationStyles = tv({
|
|
13
14
|
slots: {
|
|
@@ -167,7 +168,7 @@ var PaginationContent = ({
|
|
|
167
168
|
return /* @__PURE__ */ jsx(
|
|
168
169
|
"nav",
|
|
169
170
|
{
|
|
170
|
-
className: content({ className:
|
|
171
|
+
className: content({ className: cn(classNames?.content, className) }),
|
|
171
172
|
...props
|
|
172
173
|
}
|
|
173
174
|
);
|
|
@@ -182,7 +183,7 @@ var PaginationList = ({
|
|
|
182
183
|
return /* @__PURE__ */ jsx(
|
|
183
184
|
"ul",
|
|
184
185
|
{
|
|
185
|
-
className: list({ className:
|
|
186
|
+
className: list({ className: cn(classNames?.list, className) }),
|
|
186
187
|
...props,
|
|
187
188
|
children: paginationRange.map((page, index) => /* @__PURE__ */ jsx("li", { onClick: () => setPage(page), children: /* @__PURE__ */ jsx(
|
|
188
189
|
"button",
|
|
@@ -209,7 +210,7 @@ var PaginationPreviousButton = ({
|
|
|
209
210
|
{
|
|
210
211
|
onClick: goToPreviousPage,
|
|
211
212
|
className: previousBtn({
|
|
212
|
-
className:
|
|
213
|
+
className: cn(classNames?.previousBtn, className)
|
|
213
214
|
}),
|
|
214
215
|
...props
|
|
215
216
|
}
|
|
@@ -226,7 +227,7 @@ var PaginationNextButton = ({
|
|
|
226
227
|
"button",
|
|
227
228
|
{
|
|
228
229
|
onClick: goToNextPage,
|
|
229
|
-
className: nextBtn({ className:
|
|
230
|
+
className: nextBtn({ className: cn(classNames?.nextBtn, className) }),
|
|
230
231
|
...props
|
|
231
232
|
}
|
|
232
233
|
);
|
|
@@ -244,7 +245,7 @@ var PaginationPreviousEllipsis = ({
|
|
|
244
245
|
{
|
|
245
246
|
"aria-hidden": true,
|
|
246
247
|
className: previousElipsis({
|
|
247
|
-
className:
|
|
248
|
+
className: cn(classNames?.previousElipsis, className)
|
|
248
249
|
}),
|
|
249
250
|
...props,
|
|
250
251
|
children: /* @__PURE__ */ jsx(EllipsisIcon, { className: "size-4" })
|
|
@@ -264,7 +265,7 @@ var PaginationNextEllipsis = ({
|
|
|
264
265
|
{
|
|
265
266
|
"aria-hidden": true,
|
|
266
267
|
className: nextElipsis({
|
|
267
|
-
className:
|
|
268
|
+
className: cn(classNames?.nextElipsis, className)
|
|
268
269
|
}),
|
|
269
270
|
...props,
|
|
270
271
|
children: /* @__PURE__ */ jsx(EllipsisIcon, { className: "size-4" })
|
package/dist/metafile-esm.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"src/pagination.tsx":{"bytes":
|
|
1
|
+
{"inputs":{"src/pagination.tsx":{"bytes":12303,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@mijn-ui/react-core","kind":"import-statement","external":true},{"path":"@mijn-ui/shared-icons","kind":"import-statement","external":true},{"path":"tailwind-variants","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-core","kind":"import-statement","external":true},{"path":"@mijn-ui/shared-icons","kind":"import-statement","external":true},{"path":"tailwind-variants","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"exports":["Pagination","PaginationContent","PaginationList","PaginationNextButton","PaginationNextEllipsis","PaginationPreviousButton","PaginationPreviousEllipsis","paginationStyles","usePaginationContext","usePaginationStyles"],"entryPoint":"src/index.ts","inputs":{"src/pagination.tsx":{"bytesInOutput":8051},"src/index.ts":{"bytesInOutput":0}},"bytes":8327}}}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mijn-ui/react-pagination",
|
|
3
3
|
"author": "Htet Aung Lin<htetaunglin.coder@gmail.com>",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.4.1",
|
|
5
5
|
"homepage": "https://mijn-ui.vercel.app",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"lucide-react": "^0.479.0",
|
|
27
27
|
"react": "19.0.0",
|
|
28
28
|
"react-dom": "19.0.0",
|
|
29
|
-
"@mijn-ui/react-core": "0.
|
|
29
|
+
"@mijn-ui/react-core": "0.5.0",
|
|
30
30
|
"eslint-config-custom": "0.0.1",
|
|
31
31
|
"tsconfig": "0.0.0",
|
|
32
32
|
"tsup-config": "0.0.0"
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@mijn-ui/shared-icons": "0.1.0"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
|
-
"@mijn-ui/react-core": "^0.
|
|
38
|
+
"@mijn-ui/react-core": "^0.5.0",
|
|
39
39
|
"tailwind-merge": "^3.0.0",
|
|
40
40
|
"tailwind-variants": "^3.0.0",
|
|
41
41
|
"react": "^19.0",
|