@incognia/cosmik 0.22.0 → 0.22.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.
@@ -5,28 +5,25 @@ declare const Pagination: {
5
5
  displayName: string;
6
6
  };
7
7
  declare const PaginationContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React.RefAttributes<HTMLUListElement>>;
8
- declare const PaginationItem: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLLIElement> & React.LiHTMLAttributes<HTMLLIElement> & {
9
- disabled?: boolean | undefined;
10
- }, "ref"> & React.RefAttributes<HTMLLIElement>>;
11
- type PaginationLinkProps = {
8
+ declare const PaginationItem: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React.RefAttributes<HTMLLIElement>>;
9
+ type PaginationButtonProps = ButtonProps & {
12
10
  isActive?: boolean;
13
- disabled?: boolean;
14
- } & Pick<ButtonProps, 'size'> & React.ComponentProps<'a'>;
15
- declare const PaginationLink: {
16
- ({ className, isActive, size, ...props }: PaginationLinkProps): import("react/jsx-runtime").JSX.Element;
11
+ };
12
+ declare const PaginationButton: {
13
+ ({ className, isActive, ...props }: PaginationButtonProps): import("react/jsx-runtime").JSX.Element;
17
14
  displayName: string;
18
15
  };
19
16
  declare const PaginationPrevious: {
20
- ({ className, ...props }: React.ComponentProps<typeof PaginationLink>): import("react/jsx-runtime").JSX.Element;
17
+ ({ className, ...props }: React.ComponentProps<typeof PaginationButton>): import("react/jsx-runtime").JSX.Element;
21
18
  displayName: string;
22
19
  };
23
20
  declare const PaginationNext: {
24
- ({ className, ...props }: React.ComponentProps<typeof PaginationLink>): import("react/jsx-runtime").JSX.Element;
21
+ ({ className, ...props }: React.ComponentProps<typeof PaginationButton>): import("react/jsx-runtime").JSX.Element;
25
22
  displayName: string;
26
23
  };
27
24
  declare const PaginationEllipsis: {
28
25
  ({ className, ...props }: React.ComponentProps<'span'>): import("react/jsx-runtime").JSX.Element;
29
26
  displayName: string;
30
27
  };
31
- export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious };
28
+ export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationButton, PaginationNext, PaginationPrevious };
32
29
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Pagination/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,WAAW,EAAkB,MAAM,WAAW,CAAA;AAGvD,QAAA,MAAM,UAAU;8BAA6B,MAAM,cAAc,CAAC,KAAK,CAAC;;CAOvE,CAAA;AAGD,QAAA,MAAM,iBAAiB,yKASrB,CAAA;AAGF,QAAA,MAAM,cAAc;;+CAclB,CAAA;AAGF,KAAK,mBAAmB,GAAG;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,GAAG,IAAI,CAAC,WAAW,EAAE,MAAM,CAAC,GAC3B,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,CAAA;AAE3B,QAAA,MAAM,cAAc;8CAKjB,mBAAmB;;CAiBrB,CAAA;AAGD,QAAA,MAAM,kBAAkB;8BAGrB,MAAM,cAAc,CAAC,qBAAqB,CAAC;;CAS7C,CAAA;AAGD,QAAA,MAAM,cAAc;8BAGjB,MAAM,cAAc,CAAC,qBAAqB,CAAC;;CAS7C,CAAA;AAGD,QAAA,MAAM,kBAAkB;8BAGrB,MAAM,cAAc,CAAC,MAAM,CAAC;;CAW9B,CAAA;AAGD,OAAO,EACL,UAAU,EACV,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACd,cAAc,EACd,cAAc,EACd,kBAAkB,EACnB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Pagination/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAU,WAAW,EAAE,MAAM,WAAW,CAAA;AAG/C,QAAA,MAAM,UAAU;8BAA6B,MAAM,cAAc,CAAC,KAAK,CAAC;;CAOvE,CAAA;AAGD,QAAA,MAAM,iBAAiB,yKASrB,CAAA;AAGF,QAAA,MAAM,cAAc,kKAKlB,CAAA;AAGF,KAAK,qBAAqB,GAAG,WAAW,GAAG;IACzC,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,QAAA,MAAM,gBAAgB;wCAInB,qBAAqB;;CAevB,CAAA;AAGD,QAAA,MAAM,kBAAkB;8BAGrB,MAAM,cAAc,CAAC,uBAAuB,CAAC;;CAQ/C,CAAA;AAGD,QAAA,MAAM,cAAc;8BAGjB,MAAM,cAAc,CAAC,uBAAuB,CAAC;;CAQ/C,CAAA;AAGD,QAAA,MAAM,kBAAkB;8BAGrB,MAAM,cAAc,CAAC,MAAM,CAAC;;CAW9B,CAAA;AAGD,OAAO,EACL,UAAU,EACV,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACd,gBAAgB,EAChB,cAAc,EACd,kBAAkB,EACnB,CAAA"}
package/dist/index.cjs.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./index.cjs2.js");const m=require("./index.cjs3.js"),s=require("./index.cjs4.js"),n=require("./index.cjs5.js"),u=require("./index.cjs6.js"),d=require("./index.cjs7.js"),C=require("./index.cjs8.js"),T=require("./index.cjs9.js"),t=require("./index.cjs10.js"),r=require("./index.cjs11.js"),o=require("./index.cjs12.js"),S=require("./index.cjs13.js"),w=require("./index.cjs14.js"),b=require("./index.cjs15.js"),i=require("./index.cjs16.js"),a=require("./index.cjs17.js"),p=require("./index.cjs18.js"),e=require("./index.cjs19.js"),M=require("./index.cjs20.js"),l=require("./index.cjs21.js"),P=require("./index.cjs22.js"),D=require("./index.cjs23.js"),c=require("./index.cjs24.js"),g=require("./index.cjs25.js");exports.Colors=m.default;exports.tailwindTheme=s.default;exports.AlertDialog=n.AlertDialog;exports.AlertDialogAction=n.AlertDialogAction;exports.AlertDialogCancel=n.AlertDialogCancel;exports.AlertDialogContent=n.AlertDialogContent;exports.AlertDialogDescription=n.AlertDialogDescription;exports.AlertDialogFooter=n.AlertDialogFooter;exports.AlertDialogHeader=n.AlertDialogHeader;exports.AlertDialogTitle=n.AlertDialogTitle;exports.AlertDialogTrigger=n.AlertDialogTrigger;exports.Badge=u.Badge;exports.badgeVariants=u.badgeVariants;exports.Button=d.Button;exports.buttonVariants=d.buttonVariants;exports.Calendar=C.Calendar;exports.Checkbox=T.Checkbox;exports.Command=t.Command;exports.CommandDialog=t.CommandDialog;exports.CommandEmpty=t.CommandEmpty;exports.CommandGroup=t.CommandGroup;exports.CommandInput=t.CommandInput;exports.CommandItem=t.CommandItem;exports.CommandList=t.CommandList;exports.CommandSeparator=t.CommandSeparator;exports.CommandShortcut=t.CommandShortcut;exports.Dialog=r.Dialog;exports.DialogContent=r.DialogContent;exports.DialogDescription=r.DialogDescription;exports.DialogFooter=r.DialogFooter;exports.DialogHeader=r.DialogHeader;exports.DialogOverlay=r.DialogOverlay;exports.DialogPortal=r.DialogPortal;exports.DialogTitle=r.DialogTitle;exports.DialogTrigger=r.DialogTrigger;exports.DropdownMenu=o.DropdownMenu;exports.DropdownMenuCheckboxItem=o.DropdownMenuCheckboxItem;exports.DropdownMenuContent=o.DropdownMenuContent;exports.DropdownMenuGroup=o.DropdownMenuGroup;exports.DropdownMenuItem=o.DropdownMenuItem;exports.DropdownMenuLabel=o.DropdownMenuLabel;exports.DropdownMenuPortal=o.DropdownMenuPortal;exports.DropdownMenuRadioGroup=o.DropdownMenuRadioGroup;exports.DropdownMenuRadioItem=o.DropdownMenuRadioItem;exports.DropdownMenuSeparator=o.DropdownMenuSeparator;exports.DropdownMenuShortcut=o.DropdownMenuShortcut;exports.DropdownMenuSub=o.DropdownMenuSub;exports.DropdownMenuSubContent=o.DropdownMenuSubContent;exports.DropdownMenuSubTrigger=o.DropdownMenuSubTrigger;exports.DropdownMenuTrigger=o.DropdownMenuTrigger;exports.Input=S.Input;exports.Label=w.Label;exports.Loading=b.Loading;exports.Pagination=i.Pagination;exports.PaginationContent=i.PaginationContent;exports.PaginationEllipsis=i.PaginationEllipsis;exports.PaginationItem=i.PaginationItem;exports.PaginationLink=i.PaginationLink;exports.PaginationNext=i.PaginationNext;exports.PaginationPrevious=i.PaginationPrevious;exports.Popover=a.Popover;exports.PopoverAnchor=a.PopoverAnchor;exports.PopoverContent=a.PopoverContent;exports.PopoverTrigger=a.PopoverTrigger;exports.RadioGroup=p.RadioGroup;exports.RadioGroupItem=p.RadioGroupItem;exports.Select=e.Select;exports.SelectContent=e.SelectContent;exports.SelectGroup=e.SelectGroup;exports.SelectItem=e.SelectItem;exports.SelectLabel=e.SelectLabel;exports.SelectScrollDownButton=e.SelectScrollDownButton;exports.SelectScrollUpButton=e.SelectScrollUpButton;exports.SelectSeparator=e.SelectSeparator;exports.SelectTrigger=e.SelectTrigger;exports.SelectValue=e.SelectValue;exports.Switch=M.Switch;exports.Tabs=l.Tabs;exports.TabsContent=l.TabsContent;exports.TabsList=l.TabsList;exports.TabsTrigger=l.TabsTrigger;exports.Textarea=P.Textarea;exports.Toggle=D.Toggle;exports.toggleVariants=D.toggleVariants;exports.ToggleGroup=c.ToggleGroup;exports.ToggleGroupItem=c.ToggleGroupItem;exports.Tooltip=g.Tooltip;exports.TooltipContent=g.TooltipContent;exports.TooltipProvider=g.TooltipProvider;exports.TooltipTrigger=g.TooltipTrigger;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./index.cjs2.js");const m=require("./index.cjs3.js"),s=require("./index.cjs4.js"),n=require("./index.cjs5.js"),u=require("./index.cjs6.js"),d=require("./index.cjs7.js"),C=require("./index.cjs8.js"),T=require("./index.cjs9.js"),t=require("./index.cjs10.js"),r=require("./index.cjs11.js"),o=require("./index.cjs12.js"),S=require("./index.cjs13.js"),w=require("./index.cjs14.js"),b=require("./index.cjs15.js"),i=require("./index.cjs16.js"),a=require("./index.cjs17.js"),p=require("./index.cjs18.js"),e=require("./index.cjs19.js"),M=require("./index.cjs20.js"),l=require("./index.cjs21.js"),P=require("./index.cjs22.js"),D=require("./index.cjs23.js"),c=require("./index.cjs24.js"),g=require("./index.cjs25.js");exports.Colors=m.default;exports.tailwindTheme=s.default;exports.AlertDialog=n.AlertDialog;exports.AlertDialogAction=n.AlertDialogAction;exports.AlertDialogCancel=n.AlertDialogCancel;exports.AlertDialogContent=n.AlertDialogContent;exports.AlertDialogDescription=n.AlertDialogDescription;exports.AlertDialogFooter=n.AlertDialogFooter;exports.AlertDialogHeader=n.AlertDialogHeader;exports.AlertDialogTitle=n.AlertDialogTitle;exports.AlertDialogTrigger=n.AlertDialogTrigger;exports.Badge=u.Badge;exports.badgeVariants=u.badgeVariants;exports.Button=d.Button;exports.buttonVariants=d.buttonVariants;exports.Calendar=C.Calendar;exports.Checkbox=T.Checkbox;exports.Command=t.Command;exports.CommandDialog=t.CommandDialog;exports.CommandEmpty=t.CommandEmpty;exports.CommandGroup=t.CommandGroup;exports.CommandInput=t.CommandInput;exports.CommandItem=t.CommandItem;exports.CommandList=t.CommandList;exports.CommandSeparator=t.CommandSeparator;exports.CommandShortcut=t.CommandShortcut;exports.Dialog=r.Dialog;exports.DialogContent=r.DialogContent;exports.DialogDescription=r.DialogDescription;exports.DialogFooter=r.DialogFooter;exports.DialogHeader=r.DialogHeader;exports.DialogOverlay=r.DialogOverlay;exports.DialogPortal=r.DialogPortal;exports.DialogTitle=r.DialogTitle;exports.DialogTrigger=r.DialogTrigger;exports.DropdownMenu=o.DropdownMenu;exports.DropdownMenuCheckboxItem=o.DropdownMenuCheckboxItem;exports.DropdownMenuContent=o.DropdownMenuContent;exports.DropdownMenuGroup=o.DropdownMenuGroup;exports.DropdownMenuItem=o.DropdownMenuItem;exports.DropdownMenuLabel=o.DropdownMenuLabel;exports.DropdownMenuPortal=o.DropdownMenuPortal;exports.DropdownMenuRadioGroup=o.DropdownMenuRadioGroup;exports.DropdownMenuRadioItem=o.DropdownMenuRadioItem;exports.DropdownMenuSeparator=o.DropdownMenuSeparator;exports.DropdownMenuShortcut=o.DropdownMenuShortcut;exports.DropdownMenuSub=o.DropdownMenuSub;exports.DropdownMenuSubContent=o.DropdownMenuSubContent;exports.DropdownMenuSubTrigger=o.DropdownMenuSubTrigger;exports.DropdownMenuTrigger=o.DropdownMenuTrigger;exports.Input=S.Input;exports.Label=w.Label;exports.Loading=b.Loading;exports.Pagination=i.Pagination;exports.PaginationButton=i.PaginationButton;exports.PaginationContent=i.PaginationContent;exports.PaginationEllipsis=i.PaginationEllipsis;exports.PaginationItem=i.PaginationItem;exports.PaginationNext=i.PaginationNext;exports.PaginationPrevious=i.PaginationPrevious;exports.Popover=a.Popover;exports.PopoverAnchor=a.PopoverAnchor;exports.PopoverContent=a.PopoverContent;exports.PopoverTrigger=a.PopoverTrigger;exports.RadioGroup=p.RadioGroup;exports.RadioGroupItem=p.RadioGroupItem;exports.Select=e.Select;exports.SelectContent=e.SelectContent;exports.SelectGroup=e.SelectGroup;exports.SelectItem=e.SelectItem;exports.SelectLabel=e.SelectLabel;exports.SelectScrollDownButton=e.SelectScrollDownButton;exports.SelectScrollUpButton=e.SelectScrollUpButton;exports.SelectSeparator=e.SelectSeparator;exports.SelectTrigger=e.SelectTrigger;exports.SelectValue=e.SelectValue;exports.Switch=M.Switch;exports.Tabs=l.Tabs;exports.TabsContent=l.TabsContent;exports.TabsList=l.TabsList;exports.TabsTrigger=l.TabsTrigger;exports.Textarea=P.Textarea;exports.Toggle=D.Toggle;exports.toggleVariants=D.toggleVariants;exports.ToggleGroup=c.ToggleGroup;exports.ToggleGroupItem=c.ToggleGroupItem;exports.Tooltip=g.Tooltip;exports.TooltipContent=g.TooltipContent;exports.TooltipProvider=g.TooltipProvider;exports.TooltipTrigger=g.TooltipTrigger;
2
2
  //# sourceMappingURL=index.cjs.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index.cjs27.js"),r=require("lucide-react"),j=require("react"),P=require("./index.cjs7.js"),s=require("./index.cjs28.js");function d(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,i.get?i:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const l=d(j),c=({className:e,...n})=>a.jsxRuntimeExports.jsx("nav",{role:"navigation","aria-label":"pagination",className:s.cn("mx-auto flex w-full justify-center",e),...n});c.displayName="Pagination";const u=l.forwardRef(({className:e,...n},t)=>a.jsxRuntimeExports.jsx("ul",{ref:t,className:s.cn("flex flex-row items-center gap-8",e),...n}));u.displayName="PaginationContent";const p=l.forwardRef(({className:e,disabled:n,...t},i)=>a.jsxRuntimeExports.jsx("li",{ref:i,className:s.cn({"pointer-events-none opacity-40":n},e),...t}));p.displayName="PaginationItem";const o=({className:e,isActive:n,size:t="icon",...i})=>a.jsxRuntimeExports.jsx("a",{"aria-current":n?"page":void 0,className:s.cn(P.buttonVariants({variant:"filled",intent:n?"primary":"secondary",size:t}),{"bg-purple-600 hover:bg-purple-700 focus:bg-purple-700 active:bg-purple-800":n},e),...i});o.displayName="PaginationLink";const x=({className:e,...n})=>a.jsxRuntimeExports.jsx(o,{"aria-label":"Go to previous page",size:"icon",className:e,...n,children:a.jsxRuntimeExports.jsx(r.ChevronLeft,{className:"h-16 w-16"})});x.displayName="PaginationPrevious";const g=({className:e,...n})=>a.jsxRuntimeExports.jsx(o,{"aria-label":"Go to next page",size:"icon",className:e,...n,children:a.jsxRuntimeExports.jsx(r.ChevronRight,{className:"h-16 w-16"})});g.displayName="PaginationNext";const m=({className:e,...n})=>a.jsxRuntimeExports.jsx("span",{"aria-hidden":!0,className:s.cn("flex h-[36px] w-[36px] items-center justify-center",e),...n,children:a.jsxRuntimeExports.jsx(r.MoreHorizontal,{className:"h-16 w-16"})});m.displayName="PaginationEllipsis";exports.Pagination=c;exports.PaginationContent=u;exports.PaginationEllipsis=m;exports.PaginationItem=p;exports.PaginationLink=o;exports.PaginationNext=g;exports.PaginationPrevious=x;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index.cjs27.js"),s=require("lucide-react"),j=require("react"),P=require("./index.cjs7.js"),i=require("./index.cjs28.js");function d(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const l=d(j),c=({className:e,...t})=>a.jsxRuntimeExports.jsx("nav",{role:"navigation","aria-label":"pagination",className:i.cn("mx-auto flex w-full justify-center",e),...t});c.displayName="Pagination";const u=l.forwardRef(({className:e,...t},n)=>a.jsxRuntimeExports.jsx("ul",{ref:n,className:i.cn("flex flex-row items-center gap-8",e),...t}));u.displayName="PaginationContent";const p=l.forwardRef(({className:e,...t},n)=>a.jsxRuntimeExports.jsx("li",{ref:n,className:i.cn(e),...t}));p.displayName="PaginationItem";const o=({className:e,isActive:t,...n})=>a.jsxRuntimeExports.jsx(P.Button,{"aria-current":t?"page":void 0,variant:"filled",intent:t?"primary":"secondary",size:"icon",className:i.cn({"bg-purple-600 hover:bg-purple-700 focus:bg-purple-700 active:bg-purple-800":t},e),...n});o.displayName="PaginationButton";const x=({className:e,...t})=>a.jsxRuntimeExports.jsx(o,{"aria-label":"Go to previous page",className:e,...t,children:a.jsxRuntimeExports.jsx(s.ChevronLeft,{className:"h-16 w-16"})});x.displayName="PaginationPrevious";const g=({className:e,...t})=>a.jsxRuntimeExports.jsx(o,{"aria-label":"Go to next page",className:e,...t,children:a.jsxRuntimeExports.jsx(s.ChevronRight,{className:"h-16 w-16"})});g.displayName="PaginationNext";const m=({className:e,...t})=>a.jsxRuntimeExports.jsx("span",{"aria-hidden":!0,className:i.cn("flex h-[36px] w-[36px] items-center justify-center",e),...t,children:a.jsxRuntimeExports.jsx(s.MoreHorizontal,{className:"h-16 w-16"})});m.displayName="PaginationEllipsis";exports.Pagination=c;exports.PaginationButton=o;exports.PaginationContent=u;exports.PaginationEllipsis=m;exports.PaginationItem=p;exports.PaginationNext=g;exports.PaginationPrevious=x;
2
2
  //# sourceMappingURL=index.cjs16.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs16.js","sources":["../src/Pagination/index.tsx"],"sourcesContent":["import { ChevronLeft, ChevronRight, MoreHorizontal } from 'lucide-react'\nimport * as React from 'react'\nimport { ButtonProps, buttonVariants } from '../Button'\nimport { cn } from '../lib/utils'\n\nconst Pagination = ({ className, ...props }: React.ComponentProps<'nav'>) => (\n <nav\n role=\"navigation\"\n aria-label=\"pagination\"\n className={cn('mx-auto flex w-full justify-center', className)}\n {...props}\n />\n)\nPagination.displayName = 'Pagination'\n\nconst PaginationContent = React.forwardRef<\n HTMLUListElement,\n React.ComponentProps<'ul'>\n>(({ className, ...props }, ref) => (\n <ul\n ref={ref}\n className={cn('flex flex-row items-center gap-8', className)}\n {...props}\n />\n))\nPaginationContent.displayName = 'PaginationContent'\n\nconst PaginationItem = React.forwardRef<\n HTMLLIElement,\n React.ComponentProps<'li'> & { disabled?: boolean }\n>(({ className, disabled, ...props }, ref) => (\n <li\n ref={ref}\n className={cn(\n {\n 'pointer-events-none opacity-40': disabled\n },\n className\n )}\n {...props}\n />\n))\nPaginationItem.displayName = 'PaginationItem'\n\ntype PaginationLinkProps = {\n isActive?: boolean\n disabled?: boolean\n} & Pick<ButtonProps, 'size'> &\n React.ComponentProps<'a'>\n\nconst PaginationLink = ({\n className,\n isActive,\n size = 'icon',\n ...props\n}: PaginationLinkProps) => (\n <a\n aria-current={isActive ? 'page' : undefined}\n className={cn(\n buttonVariants({\n variant: 'filled',\n intent: isActive ? 'primary' : 'secondary',\n size\n }),\n {\n 'bg-purple-600 hover:bg-purple-700 focus:bg-purple-700 active:bg-purple-800':\n isActive\n },\n className\n )}\n {...props}\n />\n)\nPaginationLink.displayName = 'PaginationLink'\n\nconst PaginationPrevious = ({\n className,\n ...props\n}: React.ComponentProps<typeof PaginationLink>) => (\n <PaginationLink\n aria-label=\"Go to previous page\"\n size=\"icon\"\n className={className}\n {...props}\n >\n <ChevronLeft className=\"h-16 w-16\" />\n </PaginationLink>\n)\nPaginationPrevious.displayName = 'PaginationPrevious'\n\nconst PaginationNext = ({\n className,\n ...props\n}: React.ComponentProps<typeof PaginationLink>) => (\n <PaginationLink\n aria-label=\"Go to next page\"\n size=\"icon\"\n className={className}\n {...props}\n >\n <ChevronRight className=\"h-16 w-16\" />\n </PaginationLink>\n)\nPaginationNext.displayName = 'PaginationNext'\n\nconst PaginationEllipsis = ({\n className,\n ...props\n}: React.ComponentProps<'span'>) => (\n <span\n aria-hidden\n className={cn(\n 'flex h-[36px] w-[36px] items-center justify-center',\n className\n )}\n {...props}\n >\n <MoreHorizontal className=\"h-16 w-16\" />\n </span>\n)\nPaginationEllipsis.displayName = 'PaginationEllipsis'\n\nexport {\n Pagination,\n PaginationContent,\n PaginationEllipsis,\n PaginationItem,\n PaginationLink,\n PaginationNext,\n PaginationPrevious\n}\n"],"names":["Pagination","className","props","jsx","cn","PaginationContent","React","ref","PaginationItem","disabled","PaginationLink","isActive","size","buttonVariants","PaginationPrevious","ChevronLeft","PaginationNext","ChevronRight","PaginationEllipsis","MoreHorizontal"],"mappings":"sfAKMA,EAAa,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAClC,IAAAC,EAAA,kBAAA,IAAC,MAAA,CACC,KAAK,aACL,aAAW,aACX,UAAWC,EAAAA,GAAG,qCAAsCH,CAAS,EAC5D,GAAGC,CAAA,CACN,EAEFF,EAAW,YAAc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tC,EAEFD,EAAe,YAAc,iBAE7B,MAAME,EAAqB,CAAC,CAC1B,UAAAjB,EACA,GAAGC,CACL,IACEC,EAAA,kBAAA,IAAC,OAAA,CACC,cAAW,GACX,UAAWC,EAAA,GACT,qDACAH,CACF,EACC,GAAGC,EAEJ,SAAAC,EAAAA,kBAAAA,IAACgB,EAAAA,eAAe,CAAA,UAAU,WAAY,CAAA,CAAA,CACxC,EAEFD,EAAmB,YAAc"}
1
+ {"version":3,"file":"index.cjs16.js","sources":["../src/Pagination/index.tsx"],"sourcesContent":["import { ChevronLeft, ChevronRight, MoreHorizontal } from 'lucide-react'\nimport * as React from 'react'\nimport { Button, ButtonProps } from '../Button'\nimport { cn } from '../lib/utils'\n\nconst Pagination = ({ className, ...props }: React.ComponentProps<'nav'>) => (\n <nav\n role=\"navigation\"\n aria-label=\"pagination\"\n className={cn('mx-auto flex w-full justify-center', className)}\n {...props}\n />\n)\nPagination.displayName = 'Pagination'\n\nconst PaginationContent = React.forwardRef<\n HTMLUListElement,\n React.ComponentProps<'ul'>\n>(({ className, ...props }, ref) => (\n <ul\n ref={ref}\n className={cn('flex flex-row items-center gap-8', className)}\n {...props}\n />\n))\nPaginationContent.displayName = 'PaginationContent'\n\nconst PaginationItem = React.forwardRef<\n HTMLLIElement,\n React.ComponentProps<'li'>\n>(({ className, ...props }, ref) => (\n <li ref={ref} className={cn(className)} {...props} />\n))\nPaginationItem.displayName = 'PaginationItem'\n\ntype PaginationButtonProps = ButtonProps & {\n isActive?: boolean\n}\n\nconst PaginationButton = ({\n className,\n isActive,\n ...props\n}: PaginationButtonProps) => (\n <Button\n aria-current={isActive ? 'page' : undefined}\n variant=\"filled\"\n intent={isActive ? 'primary' : 'secondary'}\n size=\"icon\"\n className={cn(\n {\n 'bg-purple-600 hover:bg-purple-700 focus:bg-purple-700 active:bg-purple-800':\n isActive\n },\n className\n )}\n {...props}\n />\n)\nPaginationButton.displayName = 'PaginationButton'\n\nconst PaginationPrevious = ({\n className,\n ...props\n}: React.ComponentProps<typeof PaginationButton>) => (\n <PaginationButton\n aria-label=\"Go to previous page\"\n className={className}\n {...props}\n >\n <ChevronLeft className=\"h-16 w-16\" />\n </PaginationButton>\n)\nPaginationPrevious.displayName = 'PaginationPrevious'\n\nconst PaginationNext = ({\n className,\n ...props\n}: React.ComponentProps<typeof PaginationButton>) => (\n <PaginationButton\n aria-label=\"Go to next page\"\n className={className}\n {...props}\n >\n <ChevronRight className=\"h-16 w-16\" />\n </PaginationButton>\n)\nPaginationNext.displayName = 'PaginationNext'\n\nconst PaginationEllipsis = ({\n className,\n ...props\n}: React.ComponentProps<'span'>) => (\n <span\n aria-hidden\n className={cn(\n 'flex h-[36px] w-[36px] items-center justify-center',\n className\n )}\n {...props}\n >\n <MoreHorizontal className=\"h-16 w-16\" />\n </span>\n)\nPaginationEllipsis.displayName = 'PaginationEllipsis'\n\nexport {\n Pagination,\n PaginationContent,\n PaginationEllipsis,\n PaginationItem,\n PaginationButton,\n PaginationNext,\n PaginationPrevious\n}\n"],"names":["Pagination","className","props","jsx","cn","PaginationContent","React","ref","PaginationItem","PaginationButton","isActive","Button","PaginationPrevious","ChevronLeft","PaginationNext","ChevronRight","PaginationEllipsis","MoreHorizontal"],"mappings":"sfAKMA,EAAa,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAClC,IAAAC,EAAA,kBAAA,IAAC,MAAA,CACC,KAAK,aACL,aAAW,aACX,UAAWC,EAAAA,GAAG,qCAAsCH,CAAS,EAC5D,GAAGC,CAAA,CACN,EAEFF,EAAW,YAAc,aAEnB,MAAAK,EAAoBC,EAAM,WAG9B,CAAC,CAAE,UAAAL,EAAW,GAAGC,CAAM,EAAGK,IAC1BJ,EAAA,kBAAA,IAAC,KAAA,CACC,IAAAI,EACA,UAAWH,EAAAA,GAAG,mCAAoCH,CAAS,EAC1D,GAAGC,CAAA,CACN,CACD,EACDG,EAAkB,YAAc,oBAEhC,MAAMG,EAAiBF,EAAM,WAG3B,CAAC,CAAE,UAAAL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ent, DropdownMe
20
20
  export { Input } from './Input';
21
21
  export { Label } from './Label';
22
22
  export { Loading } from './Loading';
23
- export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious } from './Pagination';
23
+ export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationButton, PaginationNext, PaginationPrevious } from './Pagination';
24
24
  export { Popover, PopoverAnchor, PopoverContent, PopoverTrigger } from './Popover';
25
25
  export { RadioGroup, RadioGroupItem } from './RadioGroup';
26
26
  export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue } from './Select';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,aAAa,CAAA;AAEpB;;GAEG;AACH,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAA;AAC5C,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,yBAAyB,CAAA;AAElE;;GAEG;AACH,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,EACnB,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAE9C,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAEjD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAErC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAErC,OAAO,EACL,OAAO,EACP,aAAa,EACb,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,eAAe,EACf,gBAAgB,EACjB,MAAM,WAAW,CAAA;AAElB,OAAO,EACL,MAAM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AM,gBAAgB,CAAA;AAEvB,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAE/B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAE/B,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAEnC,OAAO,EACL,UAAU,EACV,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACd,gBAAgB,EAChB,cAAc,EACd,kBAAkB,EACnB,MAAM,cAAc,CAAA;AAErB,OAAO,EACL,OAAO,EACP,aAAa,EACb,cAAc,EACd,cAAc,EACf,MAAM,WAAW,CAAA;AAElB,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAEzD,OAAO,EACL,MAAM,EACN,aAAa,EACb,WAAW,EACX,UAAU,EACV,WAAW,EACX,sBAAsB,EACtB,oBAAoB,EACpB,eAAe,EACf,aAAa,EACb,WAAW,EACZ,MAAM,UAAU,CAAA;AAEjB,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAEjC,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAA;AAEjE,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAErC,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAEjD,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAE5D,OAAO,EACL,OAAO,EACP,cAAc,EACd,eAAe,EACf,cAAc,EACf,MAAM,WAAW,CAAA"}
package/dist/index.es.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import "./index.es2.js";
2
2
  import { default as t } from "./index.es3.js";
3
3
  import { default as a } from "./index.es4.js";
4
- import { AlertDialog as l, AlertDialogAction as p, AlertDialogCancel as g, AlertDialogContent as m, AlertDialogDescription as d, AlertDialogFooter as u, AlertDialogHeader as D, AlertDialogTitle as x, AlertDialogTrigger as f } from "./index.es5.js";
4
+ import { AlertDialog as l, AlertDialogAction as p, AlertDialogCancel as g, AlertDialogContent as m, AlertDialogDescription as u, AlertDialogFooter as d, AlertDialogHeader as D, AlertDialogTitle as x, AlertDialogTrigger as f } from "./index.es5.js";
5
5
  import { Badge as T, badgeVariants as c } from "./index.es6.js";
6
6
  import { Button as w, buttonVariants as s } from "./index.es7.js";
7
7
  import { Calendar as P } from "./index.es8.js";
@@ -12,7 +12,7 @@ import { DropdownMenu as Q, DropdownMenuCheckboxItem as W, DropdownMenuContent a
12
12
  import { Input as go } from "./index.es13.js";
13
13
  import { Label as uo } from "./index.es14.js";
14
14
  import { Loading as xo } from "./index.es15.js";
15
- import { Pagination as Co, PaginationContent as To, PaginationEllipsis as co, PaginationItem as So, PaginationLink as wo, PaginationNext as so, PaginationPrevious as Mo } from "./index.es16.js";
15
+ import { Pagination as Co, PaginationButton as To, PaginationContent as co, PaginationEllipsis as So, PaginationItem as wo, PaginationNext as so, PaginationPrevious as Mo } from "./index.es16.js";
16
16
  import { Popover as bo, PopoverAnchor as Ao, PopoverContent as Io, PopoverTrigger as Go } from "./index.es17.js";
17
17
  import { RadioGroup as vo, RadioGroupItem as Lo } from "./index.es18.js";
18
18
  import { Select as Ro, SelectContent as Vo, SelectGroup as ko, SelectItem as yo, SelectLabel as Eo, SelectScrollDownButton as Fo, SelectScrollUpButton as Ho, SelectSeparator as No, SelectTrigger as Oo, SelectValue as Uo } from "./index.es19.js";
@@ -27,8 +27,8 @@ export {
27
27
  p as AlertDialogAction,
28
28
  g as AlertDialogCancel,
29
29
  m as AlertDialogContent,
30
- d as AlertDialogDescription,
31
- u as AlertDialogFooter,
30
+ u as AlertDialogDescription,
31
+ d as AlertDialogFooter,
32
32
  D as AlertDialogHeader,
33
33
  x as AlertDialogTitle,
34
34
  f as AlertDialogTrigger,
@@ -74,10 +74,10 @@ export {
74
74
  uo as Label,
75
75
  xo as Loading,
76
76
  Co as Pagination,
77
- To as PaginationContent,
78
- co as PaginationEllipsis,
79
- So as PaginationItem,
80
- wo as PaginationLink,
77
+ To as PaginationButton,
78
+ co as PaginationContent,
79
+ So as PaginationEllipsis,
80
+ wo as PaginationItem,
81
81
  so as PaginationNext,
82
82
  Mo as PaginationPrevious,
83
83
  bo as Popover,
@@ -1,116 +1,99 @@
1
- import { j as n } from "./index.es27.js";
2
- import { ChevronLeft as l, ChevronRight as p, MoreHorizontal as m } from "lucide-react";
3
- import * as r from "react";
4
- import { buttonVariants as c } from "./index.es7.js";
5
- import { cn as o } from "./index.es28.js";
6
- const g = ({ className: i, ...a }) => /* @__PURE__ */ n.jsx(
1
+ import { j as e } from "./index.es27.js";
2
+ import { ChevronLeft as r, ChevronRight as l, MoreHorizontal as p } from "lucide-react";
3
+ import * as s from "react";
4
+ import { Button as m } from "./index.es7.js";
5
+ import { cn as t } from "./index.es28.js";
6
+ const c = ({ className: i, ...a }) => /* @__PURE__ */ e.jsx(
7
7
  "nav",
8
8
  {
9
9
  role: "navigation",
10
10
  "aria-label": "pagination",
11
- className: o("mx-auto flex w-full justify-center", i),
11
+ className: t("mx-auto flex w-full justify-center", i),
12
12
  ...a
13
13
  }
14
14
  );
15
- g.displayName = "Pagination";
16
- const x = r.forwardRef(({ className: i, ...a }, e) => /* @__PURE__ */ n.jsx(
15
+ c.displayName = "Pagination";
16
+ const g = s.forwardRef(({ className: i, ...a }, n) => /* @__PURE__ */ e.jsx(
17
17
  "ul",
18
18
  {
19
- ref: e,
20
- className: o("flex flex-row items-center gap-8", i),
19
+ ref: n,
20
+ className: t("flex flex-row items-center gap-8", i),
21
21
  ...a
22
22
  }
23
23
  ));
24
- x.displayName = "PaginationContent";
25
- const f = r.forwardRef(({ className: i, disabled: a, ...e }, t) => /* @__PURE__ */ n.jsx(
26
- "li",
27
- {
28
- ref: t,
29
- className: o(
30
- {
31
- "pointer-events-none opacity-40": a
32
- },
33
- i
34
- ),
35
- ...e
36
- }
37
- ));
38
- f.displayName = "PaginationItem";
39
- const s = ({
24
+ g.displayName = "PaginationContent";
25
+ const x = s.forwardRef(({ className: i, ...a }, n) => /* @__PURE__ */ e.jsx("li", { ref: n, className: t(i), ...a }));
26
+ x.displayName = "PaginationItem";
27
+ const o = ({
40
28
  className: i,
41
29
  isActive: a,
42
- size: e = "icon",
43
- ...t
44
- }) => /* @__PURE__ */ n.jsx(
45
- "a",
30
+ ...n
31
+ }) => /* @__PURE__ */ e.jsx(
32
+ m,
46
33
  {
47
34
  "aria-current": a ? "page" : void 0,
48
- className: o(
49
- c({
50
- variant: "filled",
51
- intent: a ? "primary" : "secondary",
52
- size: e
53
- }),
35
+ variant: "filled",
36
+ intent: a ? "primary" : "secondary",
37
+ size: "icon",
38
+ className: t(
54
39
  {
55
40
  "bg-purple-600 hover:bg-purple-700 focus:bg-purple-700 active:bg-purple-800": a
56
41
  },
57
42
  i
58
43
  ),
59
- ...t
44
+ ...n
60
45
  }
61
46
  );
62
- s.displayName = "PaginationLink";
63
- const d = ({
47
+ o.displayName = "PaginationButton";
48
+ const f = ({
64
49
  className: i,
65
50
  ...a
66
- }) => /* @__PURE__ */ n.jsx(
67
- s,
51
+ }) => /* @__PURE__ */ e.jsx(
52
+ o,
68
53
  {
69
54
  "aria-label": "Go to previous page",
70
- size: "icon",
71
55
  className: i,
72
56
  ...a,
73
- children: /* @__PURE__ */ n.jsx(l, { className: "h-16 w-16" })
57
+ children: /* @__PURE__ */ e.jsx(r, { className: "h-16 w-16" })
74
58
  }
75
59
  );
76
- d.displayName = "PaginationPrevious";
60
+ f.displayName = "PaginationPrevious";
77
61
  const u = ({
78
62
  className: i,
79
63
  ...a
80
- }) => /* @__PURE__ */ n.jsx(
81
- s,
64
+ }) => /* @__PURE__ */ e.jsx(
65
+ o,
82
66
  {
83
67
  "aria-label": "Go to next page",
84
- size: "icon",
85
68
  className: i,
86
69
  ...a,
87
- children: /* @__PURE__ */ n.jsx(p, { className: "h-16 w-16" })
70
+ children: /* @__PURE__ */ e.jsx(l, { className: "h-16 w-16" })
88
71
  }
89
72
  );
90
73
  u.displayName = "PaginationNext";
91
- const N = ({
74
+ const d = ({
92
75
  className: i,
93
76
  ...a
94
- }) => /* @__PURE__ */ n.jsx(
77
+ }) => /* @__PURE__ */ e.jsx(
95
78
  "span",
96
79
  {
97
80
  "aria-hidden": !0,
98
- className: o(
81
+ className: t(
99
82
  "flex h-[36px] w-[36px] items-center justify-center",
100
83
  i
101
84
  ),
102
85
  ...a,
103
- children: /* @__PURE__ */ n.jsx(m, { className: "h-16 w-16" })
86
+ children: /* @__PURE__ */ e.jsx(p, { className: "h-16 w-16" })
104
87
  }
105
88
  );
106
- N.displayName = "PaginationEllipsis";
89
+ d.displayName = "PaginationEllipsis";
107
90
  export {
108
- g as Pagination,
109
- x as PaginationContent,
110
- N as PaginationEllipsis,
111
- f as PaginationItem,
112
- s as PaginationLink,
91
+ c as Pagination,
92
+ o as PaginationButton,
93
+ g as PaginationContent,
94
+ d as PaginationEllipsis,
95
+ x as PaginationItem,
113
96
  u as PaginationNext,
114
- d as PaginationPrevious
97
+ f as PaginationPrevious
115
98
  };
116
99
  //# sourceMappingURL=index.es16.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es16.js","sources":["../src/Pagination/index.tsx"],"sourcesContent":["import { ChevronLeft, ChevronRight, MoreHorizontal } from 'lucide-react'\nimport * as React from 'react'\nimport { ButtonProps, buttonVariants } from '../Button'\nimport { cn } from '../lib/utils'\n\nconst Pagination = ({ className, ...props }: React.ComponentProps<'nav'>) => (\n <nav\n role=\"navigation\"\n aria-label=\"pagination\"\n className={cn('mx-auto flex w-full justify-center', className)}\n {...props}\n />\n)\nPagination.displayName = 'Pagination'\n\nconst PaginationContent = React.forwardRef<\n HTMLUListElement,\n React.ComponentProps<'ul'>\n>(({ className, ...props }, ref) => (\n <ul\n ref={ref}\n className={cn('flex flex-row items-center gap-8', className)}\n {...props}\n />\n))\nPaginationContent.displayName = 'PaginationContent'\n\nconst PaginationItem = React.forwardRef<\n HTMLLIElement,\n React.ComponentProps<'li'> & { disabled?: boolean }\n>(({ className, disabled, ...props }, ref) => (\n <li\n ref={ref}\n className={cn(\n {\n 'pointer-events-none opacity-40': disabled\n },\n className\n )}\n {...props}\n />\n))\nPaginationItem.displayName = 'PaginationItem'\n\ntype PaginationLinkProps = {\n isActive?: boolean\n disabled?: boolean\n} & Pick<ButtonProps, 'size'> &\n React.ComponentProps<'a'>\n\nconst PaginationLink = ({\n className,\n isActive,\n size = 'icon',\n ...props\n}: PaginationLinkProps) => (\n <a\n aria-current={isActive ? 'page' : undefined}\n className={cn(\n buttonVariants({\n variant: 'filled',\n intent: isActive ? 'primary' : 'secondary',\n size\n }),\n {\n 'bg-purple-600 hover:bg-purple-700 focus:bg-purple-700 active:bg-purple-800':\n isActive\n },\n className\n )}\n {...props}\n />\n)\nPaginationLink.displayName = 'PaginationLink'\n\nconst PaginationPrevious = ({\n className,\n ...props\n}: React.ComponentProps<typeof PaginationLink>) => (\n <PaginationLink\n aria-label=\"Go to previous page\"\n size=\"icon\"\n className={className}\n {...props}\n >\n <ChevronLeft className=\"h-16 w-16\" />\n </PaginationLink>\n)\nPaginationPrevious.displayName = 'PaginationPrevious'\n\nconst PaginationNext = ({\n className,\n ...props\n}: React.ComponentProps<typeof PaginationLink>) => (\n <PaginationLink\n aria-label=\"Go to next page\"\n size=\"icon\"\n className={className}\n {...props}\n >\n <ChevronRight className=\"h-16 w-16\" />\n </PaginationLink>\n)\nPaginationNext.displayName = 'PaginationNext'\n\nconst PaginationEllipsis = ({\n className,\n ...props\n}: React.ComponentProps<'span'>) => (\n <span\n aria-hidden\n className={cn(\n 'flex h-[36px] w-[36px] items-center justify-center',\n className\n )}\n {...props}\n >\n <MoreHorizontal className=\"h-16 w-16\" />\n </span>\n)\nPaginationEllipsis.displayName = 'PaginationEllipsis'\n\nexport {\n Pagination,\n PaginationContent,\n PaginationEllipsis,\n PaginationItem,\n PaginationLink,\n PaginationNext,\n PaginationPrevious\n}\n"],"names":["Pagination","className","props","jsx","cn","PaginationContent","React","ref","PaginationItem","disabled","PaginationLink","isActive","size","buttonVariants","PaginationPrevious","ChevronLeft","PaginationNext","ChevronRight","PaginationEllipsis","MoreHorizontal"],"mappings":";;;;;AAKA,MAAMA,IAAa,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAClC,MAAAC,gBAAAA,EAAA;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,MAAK;AAAA,IACL,cAAW;AAAA,IACX,WAAWC,EAAG,sCAAsCH,CAAS;AAAA,IAC5D,GAAGC;AAAA,EAAA;AACN;AAEFF,EAAW,cAAc;AAEnB,MAAAK,IAAoBC,EAAM,WAG9B,CAAC,EAAE,WAAAL,GAAW,GAAGC,EAAM,GAAGK,MAC1BJ,gBAAAA,EAAA;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,KAAAI;AAAA,IACA,WAAWH,EAAG,oCAAoCH,CAAS;AAAA,IAC1D,GAAGC;AAAA,EAAA;AACN,CACD;AACDG,EAAkB,cAAc;AAE1B,MAAAG,IAAiBF,EAAM,WAG3B,CAAC,EAAE,WAAAL,GAAW,UAAAQ,GAAU,GAAGP,KAASK,MACpCJ,gBAAAA,EAAA;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,KAAAI;AAAA,IACA,WAAWH;AAAA,MACT;AAAA,QACE,kCAAkCK;AAAA,MACpC;AAAA,MACAR;AAAA,IACF;AAAA,IACC,GAAGC;AAAA,EAAA;AACN,CACD;AACDM,EAAe,cAAc;AAQ7B,MAAME,IAAiB,CAAC;AAAA,EACtB,WAAAT;AAAA,EACA,UAAAU;AAAA,EACA,MAAAC,IAAO;AAAA,EACP,GAAGV;AACL,MACEC,gBAAAA,EAAA;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,gBAAcQ,IAAW,SAAS;AAAA,IAClC,WAAWP;AAAA,MACTS,EAAe;AAAA,QACb,SAAS;AAAA,QACT,QAAQF,IAAW,YAAY;AAAA,QAC/B,MAAAC;AAAA,MAAA,CACD;AAAA,MACD;AAAA,QACE,8EACED;AAAA,MACJ;AAAA,MACAV;AAAA,IACF;AAAA,IACC,GAAGC;AAAA,EAAA;AACN;AAEFQ,EAAe,cAAc;AAE7B,MAAMI,IAAqB,CAAC;AAAA,EAC1B,WAAAb;AAAA,EACA,GAAGC;AACL,MACEC,gBAAAA,EAAA;AAAA,EAACO;AAAA,EAAA;AAAA,IACC,cAAW;AAAA,IACX,MAAK;AAAA,IACL,WAAAT;AAAA,IACC,GAAGC;AAAA,IAEJ,UAAAC,gBAAAA,EAAAA,IAACY,GAAY,EAAA,WAAU,YAAY,CAAA;AAAA,EAAA;AACrC;AAEFD,EAAmB,cAAc;AAEjC,MAAME,IAAiB,CAAC;AAAA,EACtB,WAAAf;AAAA,EACA,GAAGC;AACL,MACEC,gBAAAA,EAAA;AAAA,EAACO;AAAA,EAAA;AAAA,IACC,cAAW;AAAA,IACX,MAAK;AAAA,IACL,WAAAT;AAAA,IACC,GAAGC;AAAA,IAEJ,UAAAC,gBAAAA,EAAAA,IAACc,GAAa,EAAA,WAAU,YAAY,CAAA;AAAA,EAAA;AACtC;AAEFD,EAAe,cAAc;AAE7B,MAAME,IAAqB,CAAC;AAAA,EAC1B,WAAAjB;AAAA,EACA,GAAGC;AACL,MACEC,gBAAAA,EAAA;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,eAAW;AAAA,IACX,WAAWC;AAAA,MACT;AAAA,MACAH;AAAA,IACF;AAAA,IACC,GAAGC;AAAA,IAEJ,UAAAC,gBAAAA,EAAAA,IAACgB,GAAe,EAAA,WAAU,YAAY,CAAA;AAAA,EAAA;AACxC;AAEFD,EAAmB,cAAc;"}
1
+ {"version":3,"file":"index.es16.js","sources":["../src/Pagination/index.tsx"],"sourcesContent":["import { ChevronLeft, ChevronRight, MoreHorizontal } from 'lucide-react'\nimport * as React from 'react'\nimport { Button, ButtonProps } from '../Button'\nimport { cn } from '../lib/utils'\n\nconst Pagination = ({ className, ...props }: React.ComponentProps<'nav'>) => (\n <nav\n role=\"navigation\"\n aria-label=\"pagination\"\n className={cn('mx-auto flex w-full justify-center', className)}\n {...props}\n />\n)\nPagination.displayName = 'Pagination'\n\nconst PaginationContent = React.forwardRef<\n HTMLUListElement,\n React.ComponentProps<'ul'>\n>(({ className, ...props }, ref) => (\n <ul\n ref={ref}\n className={cn('flex flex-row items-center gap-8', className)}\n {...props}\n />\n))\nPaginationContent.displayName = 'PaginationContent'\n\nconst PaginationItem = React.forwardRef<\n HTMLLIElement,\n React.ComponentProps<'li'>\n>(({ className, ...props }, ref) => (\n <li ref={ref} className={cn(className)} {...props} />\n))\nPaginationItem.displayName = 'PaginationItem'\n\ntype PaginationButtonProps = ButtonProps & {\n isActive?: boolean\n}\n\nconst PaginationButton = ({\n className,\n isActive,\n ...props\n}: PaginationButtonProps) => (\n <Button\n aria-current={isActive ? 'page' : undefined}\n variant=\"filled\"\n intent={isActive ? 'primary' : 'secondary'}\n size=\"icon\"\n className={cn(\n {\n 'bg-purple-600 hover:bg-purple-700 focus:bg-purple-700 active:bg-purple-800':\n isActive\n },\n className\n )}\n {...props}\n />\n)\nPaginationButton.displayName = 'PaginationButton'\n\nconst PaginationPrevious = ({\n className,\n ...props\n}: React.ComponentProps<typeof PaginationButton>) => (\n <PaginationButton\n aria-label=\"Go to previous page\"\n className={className}\n {...props}\n >\n <ChevronLeft className=\"h-16 w-16\" />\n </PaginationButton>\n)\nPaginationPrevious.displayName = 'PaginationPrevious'\n\nconst PaginationNext = ({\n className,\n ...props\n}: React.ComponentProps<typeof PaginationButton>) => (\n <PaginationButton\n aria-label=\"Go to next page\"\n className={className}\n {...props}\n >\n <ChevronRight className=\"h-16 w-16\" />\n </PaginationButton>\n)\nPaginationNext.displayName = 'PaginationNext'\n\nconst PaginationEllipsis = ({\n className,\n ...props\n}: React.ComponentProps<'span'>) => (\n <span\n aria-hidden\n className={cn(\n 'flex h-[36px] w-[36px] items-center justify-center',\n className\n )}\n {...props}\n >\n <MoreHorizontal className=\"h-16 w-16\" />\n </span>\n)\nPaginationEllipsis.displayName = 'PaginationEllipsis'\n\nexport {\n Pagination,\n PaginationContent,\n PaginationEllipsis,\n PaginationItem,\n PaginationButton,\n PaginationNext,\n PaginationPrevious\n}\n"],"names":["Pagination","className","props","jsx","cn","PaginationContent","React","ref","PaginationItem","PaginationButton","isActive","Button","PaginationPrevious","ChevronLeft","PaginationNext","ChevronRight","PaginationEllipsis","MoreHorizontal"],"mappings":";;;;;AAKA,MAAMA,IAAa,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAClC,MAAAC,gBAAAA,EAAA;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,MAAK;AAAA,IACL,cAAW;AAAA,IACX,WAAWC,EAAG,sCAAsCH,CAAS;AAAA,IAC5D,GAAGC;AAAA,EAAA;AACN;AAEFF,EAAW,cAAc;AAEnB,MAAAK,IAAoBC,EAAM,WAG9B,CAAC,EAAE,WAAAL,GAAW,GAAGC,EAAM,GAAGK,MAC1BJ,gBAAAA,EAAA;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,KAAAI;AAAA,IACA,WAAWH,EAAG,oCAAoCH,CAAS;AAAA,IAC1D,GAAGC;AAAA,EAAA;AACN,CACD;AACDG,EAAkB,cAAc;AAEhC,MAAMG,IAAiBF,EAAM,WAG3B,CAAC,EAAE,WAAAL,GAAW,GAAGC,EAAM,GAAGK,MACzBJ,gBAAAA,EAAAA,IAAA,MAAA,EAAG,KAAAI,GAAU,WAAWH,EAAGH,CAAS,GAAI,GAAGC,GAAO,CACpD;AACDM,EAAe,cAAc;AAM7B,MAAMC,IAAmB,CAAC;AAAA,EACxB,WAAAR;AAAA,EACA,UAAAS;AAAA,EACA,GAAGR;AACL,MACEC,gBAAAA,EAAA;AAAA,EAACQ;AAAA,EAAA;AAAA,IACC,gBAAcD,IAAW,SAAS;AAAA,IAClC,SAAQ;AAAA,IACR,QAAQA,IAAW,YAAY;AAAA,IAC/B,MAAK;AAAA,IACL,WAAWN;AAAA,MACT;AAAA,QACE,8EACEM;AAAA,MACJ;AAAA,MACAT;AAAA,IACF;AAAA,IACC,GAAGC;AAAA,EAAA;AACN;AAEFO,EAAiB,cAAc;AAE/B,MAAMG,IAAqB,CAAC;AAAA,EAC1B,WAAAX;AAAA,EACA,GAAGC;AACL,MACEC,gBAAAA,EAAA;AAAA,EAACM;AAAA,EAAA;AAAA,IACC,cAAW;AAAA,IACX,WAAAR;AAAA,IACC,GAAGC;AAAA,IAEJ,UAAAC,gBAAAA,EAAAA,IAACU,GAAY,EAAA,WAAU,YAAY,CAAA;AAAA,EAAA;AACrC;AAEFD,EAAmB,cAAc;AAEjC,MAAME,IAAiB,CAAC;AAAA,EACtB,WAAAb;AAAA,EACA,GAAGC;AACL,MACEC,gBAAAA,EAAA;AAAA,EAACM;AAAA,EAAA;AAAA,IACC,cAAW;AAAA,IACX,WAAAR;AAAA,IACC,GAAGC;AAAA,IAEJ,UAAAC,gBAAAA,EAAAA,IAACY,GAAa,EAAA,WAAU,YAAY,CAAA;AAAA,EAAA;AACtC;AAEFD,EAAe,cAAc;AAE7B,MAAME,IAAqB,CAAC;AAAA,EAC1B,WAAAf;AAAA,EACA,GAAGC;AACL,MACEC,gBAAAA,EAAA;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,eAAW;AAAA,IACX,WAAWC;AAAA,MACT;AAAA,MACAH;AAAA,IACF;AAAA,IACC,GAAGC;AAAA,IAEJ,UAAAC,gBAAAA,EAAAA,IAACc,GAAe,EAAA,WAAU,YAAY,CAAA;AAAA,EAAA;AACxC;AAEFD,EAAmB,cAAc;"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "homepage": "https://inloco.github.io/cosmik",
3
3
  "name": "@incognia/cosmik",
4
- "version": "0.22.0",
4
+ "version": "0.22.1",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.es.js",
7
7
  "types": "dist/index.d.ts",