@stackshift-ui/pagination 1.0.0-beta.6 → 1.0.0-beta.8
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/package.json +5 -5
- package/dist/chunk-HI25KL2W.mjs +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -2
- package/dist/index.mjs +0 -2
- package/dist/pagination.d.ts +0 -34
- package/dist/pagination.js +0 -1
- package/dist/pagination.mjs +0 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stackshift-ui/pagination",
|
|
3
3
|
"description": "Pagination with page navigation, next and previous links.",
|
|
4
|
-
"version": "1.0.0-beta.
|
|
4
|
+
"version": "1.0.0-beta.8",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"main": "./dist/index.js",
|
|
@@ -35,12 +35,12 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"classnames": "^2.5.1",
|
|
37
37
|
"lucide-react": "^0.468.0",
|
|
38
|
-
"@stackshift-ui/
|
|
39
|
-
"@stackshift-ui/
|
|
40
|
-
"@stackshift-ui/
|
|
38
|
+
"@stackshift-ui/button": "7.0.0-beta.7",
|
|
39
|
+
"@stackshift-ui/scripts": "7.0.0-beta.4",
|
|
40
|
+
"@stackshift-ui/system": "7.0.0-beta.5"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"@stackshift-ui/system": ">=
|
|
43
|
+
"@stackshift-ui/system": ">=7.0.0-beta.5",
|
|
44
44
|
"@types/react": "16.8 - 19",
|
|
45
45
|
"next": "10 - 14",
|
|
46
46
|
"react": "16.8 - 19",
|
package/dist/chunk-HI25KL2W.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{ChevronLeftIcon as C,ChevronRightIcon as y,MoreHorizontalIcon as k}from"lucide-react";import{buttonVariants as x}from"@stackshift-ui/button";import{cn as s,DefaultComponent as e,useStackShiftUIComponents as i}from"@stackshift-ui/system";import{jsx as t,jsxs as l}from"react/jsx-runtime";var m="Pagination",r="PaginationContent",c="PaginationItem",g="PaginationLink",u="PaginationPrevious",P="PaginationNext",d="PaginationEllipsis";function v({className:a,...n}){let{[m]:o=e}=i();return t(o,{as:"nav",role:"navigation","aria-label":"pagination","data-slot":"pagination",className:s("mx-auto flex w-full justify-center",a),...n})}v.displayName=m;function R({className:a,...n}){let{[r]:o=e}=i();return t(o,{as:"ul","data-slot":"pagination-content",className:s("flex flex-row items-center gap-1",a),...n})}R.displayName=r;function h({...a}){let{[c]:n=e}=i();return t(n,{as:"li","data-slot":"pagination-item",...a})}h.displayName=c;function p({className:a,isActive:n,size:o="icon",...N}){let{[g]:f=e}=i();return t(f,{as:"a","aria-current":n?"page":void 0,"data-slot":"pagination-link","data-active":n,className:s(x({variant:n?"outline":"ghost",size:o}),a),...N})}p.displayName=g;function L({className:a,...n}){let{[u]:o=e}=i();return l(o,{as:p,"aria-label":"Go to previous page",size:"default",className:s("gap-1 px-2.5 sm:pl-2.5",a),...n,children:[t(C,{}),t("span",{className:"hidden sm:block",children:"Previous"})]})}L.displayName=u;function b({className:a,...n}){let{[P]:o=e}=i();return l(o,{as:p,"aria-label":"Go to next page",size:"default",className:s("gap-1 px-2.5 sm:pr-2.5",a),...n,children:[t("span",{className:"hidden sm:block",children:"Next"}),t(y,{})]})}b.displayName=P;function I({className:a,...n}){let{[d]:o=e}=i();return l(o,{as:"span","aria-hidden":!0,"data-slot":"pagination-ellipsis",className:s("flex size-9 items-center justify-center",a),...n,children:[t(k,{className:"size-4"}),t("span",{className:"sr-only",children:"More pages"})]})}I.displayName=d;export{v as a,R as b,h as c,p as d,L as e,b as f,I as g};
|
package/dist/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./pagination";
|
package/dist/index.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use strict";var m=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var L=Object.getOwnPropertyNames;var b=Object.prototype.hasOwnProperty;var I=(o,n)=>{for(var t in n)m(o,t,{get:n[t],enumerable:!0})},z=(o,n,t,p)=>{if(n&&typeof n=="object"||typeof n=="function")for(let i of L(n))!b.call(o,i)&&i!==t&&m(o,i,{get:()=>n[i],enumerable:!(p=h(n,i))||p.enumerable});return o};var E=o=>z(m({},"__esModule",{value:!0}),o);var w={};I(w,{Pagination:()=>C,PaginationContent:()=>y,PaginationEllipsis:()=>R,PaginationItem:()=>x,PaginationLink:()=>l,PaginationNext:()=>v,PaginationPrevious:()=>k});module.exports=E(w);var s=require("lucide-react"),r=require("@stackshift-ui/button"),a=require("@stackshift-ui/system"),e=require("react/jsx-runtime"),c="Pagination",u="PaginationContent",g="PaginationItem",P="PaginationLink",d="PaginationPrevious",f="PaginationNext",N="PaginationEllipsis";function C({className:o,...n}){let{[c]:t=a.DefaultComponent}=(0,a.useStackShiftUIComponents)();return(0,e.jsx)(t,{as:"nav",role:"navigation","aria-label":"pagination","data-slot":"pagination",className:(0,a.cn)("mx-auto flex w-full justify-center",o),...n})}C.displayName=c;function y({className:o,...n}){let{[u]:t=a.DefaultComponent}=(0,a.useStackShiftUIComponents)();return(0,e.jsx)(t,{as:"ul","data-slot":"pagination-content",className:(0,a.cn)("flex flex-row items-center gap-1",o),...n})}y.displayName=u;function x({...o}){let{[g]:n=a.DefaultComponent}=(0,a.useStackShiftUIComponents)();return(0,e.jsx)(n,{as:"li","data-slot":"pagination-item",...o})}x.displayName=g;function l({className:o,isActive:n,size:t="icon",...p}){let{[P]:i=a.DefaultComponent}=(0,a.useStackShiftUIComponents)();return(0,e.jsx)(i,{as:"a","aria-current":n?"page":void 0,"data-slot":"pagination-link","data-active":n,className:(0,a.cn)((0,r.buttonVariants)({variant:n?"outline":"ghost",size:t}),o),...p})}l.displayName=P;function k({className:o,...n}){let{[d]:t=a.DefaultComponent}=(0,a.useStackShiftUIComponents)();return(0,e.jsxs)(t,{as:l,"aria-label":"Go to previous page",size:"default",className:(0,a.cn)("gap-1 px-2.5 sm:pl-2.5",o),...n,children:[(0,e.jsx)(s.ChevronLeftIcon,{}),(0,e.jsx)("span",{className:"hidden sm:block",children:"Previous"})]})}k.displayName=d;function v({className:o,...n}){let{[f]:t=a.DefaultComponent}=(0,a.useStackShiftUIComponents)();return(0,e.jsxs)(t,{as:l,"aria-label":"Go to next page",size:"default",className:(0,a.cn)("gap-1 px-2.5 sm:pr-2.5",o),...n,children:[(0,e.jsx)("span",{className:"hidden sm:block",children:"Next"}),(0,e.jsx)(s.ChevronRightIcon,{})]})}v.displayName=f;function R({className:o,...n}){let{[N]:t=a.DefaultComponent}=(0,a.useStackShiftUIComponents)();return(0,e.jsxs)(t,{as:"span","aria-hidden":!0,"data-slot":"pagination-ellipsis",className:(0,a.cn)("flex size-9 items-center justify-center",o),...n,children:[(0,e.jsx)(s.MoreHorizontalIcon,{className:"size-4"}),(0,e.jsx)("span",{className:"sr-only",children:"More pages"})]})}R.displayName=N;0&&(module.exports={Pagination,PaginationContent,PaginationEllipsis,PaginationItem,PaginationLink,PaginationNext,PaginationPrevious});
|
package/dist/index.mjs
DELETED
package/dist/pagination.d.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { Button } from "@stackshift-ui/button";
|
|
3
|
-
declare function Pagination({ className, ...props }: React.ComponentProps<"nav">): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
declare namespace Pagination {
|
|
5
|
-
var displayName: string;
|
|
6
|
-
}
|
|
7
|
-
declare function PaginationContent({ className, ...props }: React.ComponentProps<"ul">): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
declare namespace PaginationContent {
|
|
9
|
-
var displayName: string;
|
|
10
|
-
}
|
|
11
|
-
declare function PaginationItem({ ...props }: React.ComponentProps<"li">): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
declare namespace PaginationItem {
|
|
13
|
-
var displayName: string;
|
|
14
|
-
}
|
|
15
|
-
type PaginationLinkProps = {
|
|
16
|
-
isActive?: boolean;
|
|
17
|
-
} & Pick<React.ComponentProps<typeof Button>, "size"> & React.ComponentProps<"a">;
|
|
18
|
-
declare function PaginationLink({ className, isActive, size, ...props }: PaginationLinkProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
-
declare namespace PaginationLink {
|
|
20
|
-
var displayName: string;
|
|
21
|
-
}
|
|
22
|
-
declare function PaginationPrevious({ className, ...props }: React.ComponentProps<typeof PaginationLink>): import("react/jsx-runtime").JSX.Element;
|
|
23
|
-
declare namespace PaginationPrevious {
|
|
24
|
-
var displayName: string;
|
|
25
|
-
}
|
|
26
|
-
declare function PaginationNext({ className, ...props }: React.ComponentProps<typeof PaginationLink>): import("react/jsx-runtime").JSX.Element;
|
|
27
|
-
declare namespace PaginationNext {
|
|
28
|
-
var displayName: string;
|
|
29
|
-
}
|
|
30
|
-
declare function PaginationEllipsis({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
|
|
31
|
-
declare namespace PaginationEllipsis {
|
|
32
|
-
var displayName: string;
|
|
33
|
-
}
|
|
34
|
-
export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, };
|
package/dist/pagination.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var m=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var L=Object.getOwnPropertyNames;var b=Object.prototype.hasOwnProperty;var I=(o,n)=>{for(var t in n)m(o,t,{get:n[t],enumerable:!0})},z=(o,n,t,p)=>{if(n&&typeof n=="object"||typeof n=="function")for(let i of L(n))!b.call(o,i)&&i!==t&&m(o,i,{get:()=>n[i],enumerable:!(p=h(n,i))||p.enumerable});return o};var E=o=>z(m({},"__esModule",{value:!0}),o);var w={};I(w,{Pagination:()=>C,PaginationContent:()=>y,PaginationEllipsis:()=>R,PaginationItem:()=>k,PaginationLink:()=>l,PaginationNext:()=>v,PaginationPrevious:()=>x});module.exports=E(w);var s=require("lucide-react"),r=require("@stackshift-ui/button"),a=require("@stackshift-ui/system"),e=require("react/jsx-runtime"),c="Pagination",g="PaginationContent",u="PaginationItem",P="PaginationLink",d="PaginationPrevious",N="PaginationNext",f="PaginationEllipsis";function C({className:o,...n}){let{[c]:t=a.DefaultComponent}=(0,a.useStackShiftUIComponents)();return(0,e.jsx)(t,{as:"nav",role:"navigation","aria-label":"pagination","data-slot":"pagination",className:(0,a.cn)("mx-auto flex w-full justify-center",o),...n})}C.displayName=c;function y({className:o,...n}){let{[g]:t=a.DefaultComponent}=(0,a.useStackShiftUIComponents)();return(0,e.jsx)(t,{as:"ul","data-slot":"pagination-content",className:(0,a.cn)("flex flex-row items-center gap-1",o),...n})}y.displayName=g;function k({...o}){let{[u]:n=a.DefaultComponent}=(0,a.useStackShiftUIComponents)();return(0,e.jsx)(n,{as:"li","data-slot":"pagination-item",...o})}k.displayName=u;function l({className:o,isActive:n,size:t="icon",...p}){let{[P]:i=a.DefaultComponent}=(0,a.useStackShiftUIComponents)();return(0,e.jsx)(i,{as:"a","aria-current":n?"page":void 0,"data-slot":"pagination-link","data-active":n,className:(0,a.cn)((0,r.buttonVariants)({variant:n?"outline":"ghost",size:t}),o),...p})}l.displayName=P;function x({className:o,...n}){let{[d]:t=a.DefaultComponent}=(0,a.useStackShiftUIComponents)();return(0,e.jsxs)(t,{as:l,"aria-label":"Go to previous page",size:"default",className:(0,a.cn)("gap-1 px-2.5 sm:pl-2.5",o),...n,children:[(0,e.jsx)(s.ChevronLeftIcon,{}),(0,e.jsx)("span",{className:"hidden sm:block",children:"Previous"})]})}x.displayName=d;function v({className:o,...n}){let{[N]:t=a.DefaultComponent}=(0,a.useStackShiftUIComponents)();return(0,e.jsxs)(t,{as:l,"aria-label":"Go to next page",size:"default",className:(0,a.cn)("gap-1 px-2.5 sm:pr-2.5",o),...n,children:[(0,e.jsx)("span",{className:"hidden sm:block",children:"Next"}),(0,e.jsx)(s.ChevronRightIcon,{})]})}v.displayName=N;function R({className:o,...n}){let{[f]:t=a.DefaultComponent}=(0,a.useStackShiftUIComponents)();return(0,e.jsxs)(t,{as:"span","aria-hidden":!0,"data-slot":"pagination-ellipsis",className:(0,a.cn)("flex size-9 items-center justify-center",o),...n,children:[(0,e.jsx)(s.MoreHorizontalIcon,{className:"size-4"}),(0,e.jsx)("span",{className:"sr-only",children:"More pages"})]})}R.displayName=f;0&&(module.exports={Pagination,PaginationContent,PaginationEllipsis,PaginationItem,PaginationLink,PaginationNext,PaginationPrevious});
|
package/dist/pagination.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a,b,c,d,e,f,g}from"./chunk-HI25KL2W.mjs";export{a as Pagination,b as PaginationContent,g as PaginationEllipsis,c as PaginationItem,d as PaginationLink,f as PaginationNext,e as PaginationPrevious};
|