@mijn-ui/react-pagination 0.4.1 → 0.4.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.
- package/dist/index.js +23 -9
- package/dist/metafile-esm.json +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -168,6 +168,7 @@ var PaginationContent = ({
|
|
|
168
168
|
return /* @__PURE__ */ jsx(
|
|
169
169
|
"nav",
|
|
170
170
|
{
|
|
171
|
+
"data-slot": "pagination-content",
|
|
171
172
|
className: content({ className: cn(classNames?.content, className) }),
|
|
172
173
|
...props
|
|
173
174
|
}
|
|
@@ -183,18 +184,27 @@ var PaginationList = ({
|
|
|
183
184
|
return /* @__PURE__ */ jsx(
|
|
184
185
|
"ul",
|
|
185
186
|
{
|
|
187
|
+
"data-slot": "pagination-list",
|
|
186
188
|
className: list({ className: cn(classNames?.list, className) }),
|
|
187
189
|
...props,
|
|
188
|
-
children: paginationRange.map((page, index) => /* @__PURE__ */ jsx(
|
|
189
|
-
"
|
|
190
|
+
children: paginationRange.map((page, index) => /* @__PURE__ */ jsx(
|
|
191
|
+
"li",
|
|
190
192
|
{
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
193
|
+
"data-slot": "pagination-list-item",
|
|
194
|
+
onClick: () => setPage(page),
|
|
195
|
+
children: /* @__PURE__ */ jsx(
|
|
196
|
+
"button",
|
|
197
|
+
{
|
|
198
|
+
className: listItem({
|
|
199
|
+
active: currentPage === page,
|
|
200
|
+
className: classNames?.listItem
|
|
201
|
+
}),
|
|
202
|
+
children: page
|
|
203
|
+
}
|
|
204
|
+
)
|
|
205
|
+
},
|
|
206
|
+
index
|
|
207
|
+
))
|
|
198
208
|
}
|
|
199
209
|
);
|
|
200
210
|
};
|
|
@@ -208,6 +218,7 @@ var PaginationPreviousButton = ({
|
|
|
208
218
|
return /* @__PURE__ */ jsx(
|
|
209
219
|
"button",
|
|
210
220
|
{
|
|
221
|
+
"data-slot": "pagination-previous-button",
|
|
211
222
|
onClick: goToPreviousPage,
|
|
212
223
|
className: previousBtn({
|
|
213
224
|
className: cn(classNames?.previousBtn, className)
|
|
@@ -226,6 +237,7 @@ var PaginationNextButton = ({
|
|
|
226
237
|
return /* @__PURE__ */ jsx(
|
|
227
238
|
"button",
|
|
228
239
|
{
|
|
240
|
+
"data-slot": "pagination-next-button",
|
|
229
241
|
onClick: goToNextPage,
|
|
230
242
|
className: nextBtn({ className: cn(classNames?.nextBtn, className) }),
|
|
231
243
|
...props
|
|
@@ -243,6 +255,7 @@ var PaginationPreviousEllipsis = ({
|
|
|
243
255
|
return /* @__PURE__ */ jsx(
|
|
244
256
|
"span",
|
|
245
257
|
{
|
|
258
|
+
"data-slot": "pagination-previous-ellipsis",
|
|
246
259
|
"aria-hidden": true,
|
|
247
260
|
className: previousElipsis({
|
|
248
261
|
className: cn(classNames?.previousElipsis, className)
|
|
@@ -263,6 +276,7 @@ var PaginationNextEllipsis = ({
|
|
|
263
276
|
return /* @__PURE__ */ jsx(
|
|
264
277
|
"span",
|
|
265
278
|
{
|
|
279
|
+
"data-slot": "pagination-next-ellipsis",
|
|
266
280
|
"aria-hidden": true,
|
|
267
281
|
className: nextElipsis({
|
|
268
282
|
className: cn(classNames?.nextElipsis, className)
|
package/dist/metafile-esm.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"src/pagination.tsx":{"bytes":
|
|
1
|
+
{"inputs":{"src/pagination.tsx":{"bytes":12622,"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":8465},"src/index.ts":{"bytesInOutput":0}},"bytes":8741}}}
|
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.
|
|
4
|
+
"version": "0.4.2",
|
|
5
5
|
"homepage": "https://mijn-ui.vercel.app",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"@types/react": "^19.0.0",
|
|
25
25
|
"@types/react-dom": "^19.0.0",
|
|
26
26
|
"lucide-react": "^0.479.0",
|
|
27
|
-
"react": "19.0.
|
|
28
|
-
"react-dom": "19.0.
|
|
27
|
+
"react": "19.0.1",
|
|
28
|
+
"react-dom": "19.0.1",
|
|
29
29
|
"@mijn-ui/react-core": "0.5.0",
|
|
30
30
|
"eslint-config-custom": "0.0.1",
|
|
31
31
|
"tsconfig": "0.0.0",
|