commerce-toolkit 0.0.40 → 0.0.41
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/{compare-drawer-remove-BBcOUiSl.js → compare-drawer-remove-B6UNek1W.js} +3 -2
- package/dist/compare-drawer-remove-B6UNek1W.js.map +1 -0
- package/dist/compare-drawer-remove-DcaPIOnG.cjs +2 -0
- package/dist/compare-drawer-remove-DcaPIOnG.cjs.map +1 -0
- package/dist/compare-drawer.cjs +1 -1
- package/dist/compare-drawer.js +1 -1
- package/dist/components/compare-drawer/primitives/compare-drawer-link.d.ts.map +1 -1
- package/dist/components/cursor-pagination/primitives/cursor-pagination-link.d.ts.map +1 -1
- package/dist/components/logo/primitives/logo-image.d.ts.map +1 -1
- package/dist/components/logo/primitives/logo-link.d.ts.map +1 -1
- package/dist/components/offset-pagination/index.d.ts +3 -0
- package/dist/components/offset-pagination/index.d.ts.map +1 -0
- package/dist/components/offset-pagination/offset-pagination.d.ts +30 -0
- package/dist/components/offset-pagination/offset-pagination.d.ts.map +1 -0
- package/dist/components/offset-pagination/primitives/offset-pagination-ellipsis.d.ts +4 -0
- package/dist/components/offset-pagination/primitives/offset-pagination-ellipsis.d.ts.map +1 -0
- package/dist/components/offset-pagination/primitives/offset-pagination-item.d.ts +4 -0
- package/dist/components/offset-pagination/primitives/offset-pagination-item.d.ts.map +1 -0
- package/dist/components/offset-pagination/primitives/offset-pagination-link.d.ts +6 -0
- package/dist/components/offset-pagination/primitives/offset-pagination-link.d.ts.map +1 -0
- package/dist/components/offset-pagination/primitives/offset-pagination-list.d.ts +4 -0
- package/dist/components/offset-pagination/primitives/offset-pagination-list.d.ts.map +1 -0
- package/dist/components/offset-pagination/primitives/offset-pagination-root.d.ts +4 -0
- package/dist/components/offset-pagination/primitives/offset-pagination-root.d.ts.map +1 -0
- package/dist/components/offset-pagination/primitives.d.ts +6 -0
- package/dist/components/offset-pagination/primitives.d.ts.map +1 -0
- package/dist/{cursor-pagination-link-CdxwX869.cjs → cursor-pagination-link-BJafEeyH.cjs} +2 -2
- package/dist/{cursor-pagination-link-CdxwX869.cjs.map → cursor-pagination-link-BJafEeyH.cjs.map} +1 -1
- package/dist/{cursor-pagination-link-DCIUoQmf.js → cursor-pagination-link-CkZ5dwLY.js} +18 -17
- package/dist/{cursor-pagination-link-DCIUoQmf.js.map → cursor-pagination-link-CkZ5dwLY.js.map} +1 -1
- package/dist/cursor-pagination.cjs +1 -1
- package/dist/cursor-pagination.js +2 -2
- package/dist/index.cjs +2 -2
- package/dist/index.js +5 -5
- package/dist/{logo-text-Ck-jgjKv.js → logo-text-CK4vcNPY.js} +4 -3
- package/dist/logo-text-CK4vcNPY.js.map +1 -0
- package/dist/logo-text-Db3yd3b1.cjs +2 -0
- package/dist/logo-text-Db3yd3b1.cjs.map +1 -0
- package/dist/logo.cjs +1 -1
- package/dist/logo.js +1 -1
- package/package.json +1 -1
- package/dist/compare-drawer-remove-BBcOUiSl.js.map +0 -1
- package/dist/compare-drawer-remove-ozXLyKba.cjs +0 -2
- package/dist/compare-drawer-remove-ozXLyKba.cjs.map +0 -1
- package/dist/logo-text-BXz1J2dS.cjs +0 -2
- package/dist/logo-text-BXz1J2dS.cjs.map +0 -1
- package/dist/logo-text-Ck-jgjKv.js.map +0 -1
|
@@ -69,7 +69,8 @@ function h({
|
|
|
69
69
|
r
|
|
70
70
|
),
|
|
71
71
|
"data-slot": "compare-drawer-link",
|
|
72
|
-
...s
|
|
72
|
+
...s,
|
|
73
|
+
children: e
|
|
73
74
|
}
|
|
74
75
|
);
|
|
75
76
|
}
|
|
@@ -169,4 +170,4 @@ export {
|
|
|
169
170
|
C as i,
|
|
170
171
|
y as j
|
|
171
172
|
};
|
|
172
|
-
//# sourceMappingURL=compare-drawer-remove-
|
|
173
|
+
//# sourceMappingURL=compare-drawer-remove-B6UNek1W.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compare-drawer-remove-B6UNek1W.js","sources":["../src/components/compare-drawer/primitives/compare-drawer-root.tsx","../src/components/compare-drawer/primitives/compare-drawer-viewport.tsx","../src/components/compare-drawer/primitives/compare-drawer-content.tsx","../src/components/compare-drawer/primitives/compare-drawer-item-list.tsx","../src/components/compare-drawer/primitives/compare-drawer-item.tsx","../src/components/compare-drawer/primitives/compare-drawer-link.tsx","../src/components/compare-drawer/primitives/compare-drawer-thumbnail.tsx","../src/components/compare-drawer/primitives/compare-drawer-image.tsx","../src/components/compare-drawer/primitives/compare-drawer-fallback.tsx","../src/components/compare-drawer/primitives/compare-drawer-title.tsx","../src/components/compare-drawer/primitives/compare-drawer-remove.tsx"],"sourcesContent":["'use client';\n\nimport * as Portal from '@radix-ui/react-portal';\nimport type { ComponentProps } from 'react';\n\nexport type CompareDrawerRootProps = ComponentProps<typeof Portal.Root>;\n\nexport function CompareDrawerRoot({ children, ...props }: CompareDrawerRootProps) {\n return (\n <Portal.Root data-slot=\"compare-drawer-root\" {...props}>\n {children}\n </Portal.Root>\n );\n}\n","import type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport type CompareDrawerViewportProps = ComponentProps<'div'>;\n\nexport function CompareDrawerViewport({\n className,\n children,\n ...props\n}: CompareDrawerViewportProps) {\n return (\n <div\n className={cn(\n 'sticky bottom-0 z-10 w-full border-t border-[var(--compare-drawer-card-border,hsl(var(--contrast-100)))] bg-[var(--compare-drawer-background,hsl(var(--background)))] px-3 py-4 @container @md:py-5 @xl:px-6 @5xl:px-10',\n className,\n )}\n data-slot=\"compare-drawer-viewport\"\n {...props}\n >\n {children}\n </div>\n );\n}\n","import type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport type CompareDrawerContentProps = ComponentProps<'div'>;\n\nexport function CompareDrawerContent({ children, className, ...props }: CompareDrawerContentProps) {\n return (\n <div\n className={cn(\n 'mx-auto flex w-full max-w-7xl flex-col items-start justify-end gap-x-3 gap-y-4 @md:flex-row',\n className,\n )}\n data-slot=\"compare-drawer-content\"\n {...props}\n >\n {children}\n </div>\n );\n}\n","import type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport type CompareDrawerItemListProps = ComponentProps<'div'>;\n\nexport function CompareDrawerItemList({\n children,\n className,\n ...props\n}: CompareDrawerItemListProps) {\n return (\n <div\n className={cn('flex flex-1 flex-wrap justify-end gap-4', className)}\n data-slot=\"compare-drawer-item-list\"\n {...props}\n >\n {children}\n </div>\n );\n}\n","'use client';\n\nimport type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport type CompareDrawerItemProps = ComponentProps<'div'>;\n\nexport function CompareDrawerItem({ children, className, ...props }: CompareDrawerItemProps) {\n return (\n <div className={cn('relative', className)} data-slot=\"compare-drawer-item\" {...props}>\n {children}\n </div>\n );\n}\n","import { Slot } from '@radix-ui/react-slot';\nimport type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport interface CompareDrawerLinkProps extends ComponentProps<'a'> {\n asChild?: boolean;\n}\n\nexport function CompareDrawerLink({\n asChild = false,\n className,\n children,\n ...props\n}: CompareDrawerLinkProps) {\n const Component = asChild ? Slot : 'a';\n\n return (\n <Component\n className={cn(\n 'group relative flex max-w-56 items-center overflow-hidden whitespace-nowrap rounded-xl border border-[var(--compare-drawer-link-border,hsl(var(--contrast-100)))] bg-[var(--compare-drawer-card-background,hsl(var(--background)))] font-semibold ring-[var(--compare-drawer-card-focus,hsl(var(--primary)))] transition-all duration-150 hover:bg-[var(--compare-drawer-card-background-hover,hsl(var(--contrast-100)))] focus:outline-none focus:ring-2',\n className,\n )}\n data-slot=\"compare-drawer-link\"\n {...props}\n >\n {children}\n </Component>\n );\n}\n","import type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport type CompareDrawerThumbnailProps = ComponentProps<'div'>;\n\nexport function CompareDrawerThumbnail({\n children,\n className,\n ...props\n}: CompareDrawerThumbnailProps) {\n return (\n <div\n className={cn(\n 'relative aspect-square w-12 shrink-0 bg-[var(--compare-drawer-card-image-background,hsl(var(--contrast-100)))]',\n className,\n )}\n data-slot=\"compare-drawer-image\"\n {...props}\n >\n {children}\n </div>\n );\n}\n","import { Slot } from '@radix-ui/react-slot';\nimport type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport type CompareDrawerImageProps = ComponentProps<'img'> & {\n asChild?: boolean;\n};\n\nexport function CompareDrawerImage({\n children,\n className,\n asChild = false,\n ...props\n}: CompareDrawerImageProps) {\n const Component = asChild ? Slot : 'img';\n\n return (\n <Component\n className={cn(\n 'h-full w-full object-cover transition-transform duration-500 ease-out group-hover:scale-110',\n className,\n )}\n data-slot=\"compare-drawer-image\"\n {...props}\n />\n );\n}\n","import type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport type CompareDrawerFallbackProps = ComponentProps<'span'> & {\n children: string;\n};\n\nexport function CompareDrawerFallback({\n children,\n className,\n ...props\n}: CompareDrawerFallbackProps) {\n return (\n <span\n className={cn(\n 'flex h-full w-full items-center justify-center break-all p-1 text-xs text-[var(--compare-drawer-empty-image-text,var(--primary-shadow))] opacity-20',\n className,\n )}\n data-slot=\"compare-drawer-fallback\"\n {...props}\n >\n {children\n .split(' ')\n .map((word) => word[0])\n .join('')\n .toUpperCase()\n .slice(0, 2)}\n </span>\n );\n}\n","import type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport type CompareDrawerTitleProps = ComponentProps<'span'>;\n\nexport function CompareDrawerTitle({ children, className, ...props }: CompareDrawerTitleProps) {\n return (\n <span\n className={cn(\n 'hidden truncate pl-3 pr-5 text-[var(--compare-drawer-card-text,hsl(var(--foreground)))] @4xl:block',\n className,\n )}\n data-slot=\"compare-drawer-title\"\n {...props}\n >\n {children}\n </span>\n );\n}\n","import type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport type CompareDrawerRemoveProps = ComponentProps<'button'>;\n\nexport function CompareDrawerRemove({ className, children, ...props }: CompareDrawerRemoveProps) {\n return (\n <button\n className={cn(\n 'absolute -right-2.5 -top-2.5 flex h-7 w-7 items-center justify-center rounded-full border border-[var(--compare-drawer-dismiss-border,hsl(var(--contrast-100)))] bg-[var(--compare-drawer-dismiss-background,hsl(var(--background)))] text-[var(--compare-drawer-dismiss-icon,hsl(var(--contrast-400)))] transition-colors duration-150 hover:border-[var(--compare-drawer-dismiss-border-hover,hsl(var(--contrast-200)))] hover:bg-[var(--compare-drawer-dismiss-background-hover,hsl(var(--contrast-100)))] hover:text-[var(--compare-drawer-dismiss-icon-hover,hsl(var(--foreground)))]',\n className,\n )}\n data-slot=\"compare-drawer-remove\"\n type=\"button\"\n {...props}\n >\n {children}\n </button>\n );\n}\n"],"names":["CompareDrawerRoot","children","props","jsx","Portal.Root","CompareDrawerViewport","className","cn","CompareDrawerContent","CompareDrawerItemList","CompareDrawerItem","CompareDrawerLink","asChild","Slot","CompareDrawerThumbnail","CompareDrawerImage","CompareDrawerFallback","word","CompareDrawerTitle","CompareDrawerRemove"],"mappings":"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"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const o=require("react/jsx-runtime"),l=require("./index-BgU5ZH3M.cjs"),t=require("./utils-LBH114_M.cjs"),c=require("./index-DGaxX11V.cjs");function m({children:e,...r}){return o.jsx(l.Root,{"data-slot":"compare-drawer-root",...r,children:e})}function i({className:e,children:r,...a}){return o.jsx("div",{className:t.cn("sticky bottom-0 z-10 w-full border-t border-[var(--compare-drawer-card-border,hsl(var(--contrast-100)))] bg-[var(--compare-drawer-background,hsl(var(--background)))] px-3 py-4 @container @md:py-5 @xl:px-6 @5xl:px-10",e),"data-slot":"compare-drawer-viewport",...a,children:r})}function d({children:e,className:r,...a}){return o.jsx("div",{className:t.cn("mx-auto flex w-full max-w-7xl flex-col items-start justify-end gap-x-3 gap-y-4 @md:flex-row",r),"data-slot":"compare-drawer-content",...a,children:e})}function p({children:e,className:r,...a}){return o.jsx("div",{className:t.cn("flex flex-1 flex-wrap justify-end gap-4",r),"data-slot":"compare-drawer-item-list",...a,children:e})}function u({children:e,className:r,...a}){return o.jsx("div",{className:t.cn("relative",r),"data-slot":"compare-drawer-item",...a,children:e})}function w({asChild:e=!1,className:r,children:a,...s}){const n=e?c.Slot:"a";return o.jsx(n,{className:t.cn("group relative flex max-w-56 items-center overflow-hidden whitespace-nowrap rounded-xl border border-[var(--compare-drawer-link-border,hsl(var(--contrast-100)))] bg-[var(--compare-drawer-card-background,hsl(var(--background)))] font-semibold ring-[var(--compare-drawer-card-focus,hsl(var(--primary)))] transition-all duration-150 hover:bg-[var(--compare-drawer-card-background-hover,hsl(var(--contrast-100)))] focus:outline-none focus:ring-2",r),"data-slot":"compare-drawer-link",...s,children:a})}function v({children:e,className:r,...a}){return o.jsx("div",{className:t.cn("relative aspect-square w-12 shrink-0 bg-[var(--compare-drawer-card-image-background,hsl(var(--contrast-100)))]",r),"data-slot":"compare-drawer-image",...a,children:e})}function x({children:e,className:r,asChild:a=!1,...s}){const n=a?c.Slot:"img";return o.jsx(n,{className:t.cn("h-full w-full object-cover transition-transform duration-500 ease-out group-hover:scale-110",r),"data-slot":"compare-drawer-image",...s})}function f({children:e,className:r,...a}){return o.jsx("span",{className:t.cn("flex h-full w-full items-center justify-center break-all p-1 text-xs text-[var(--compare-drawer-empty-image-text,var(--primary-shadow))] opacity-20",r),"data-slot":"compare-drawer-fallback",...a,children:e.split(" ").map(s=>s[0]).join("").toUpperCase().slice(0,2)})}function b({children:e,className:r,...a}){return o.jsx("span",{className:t.cn("hidden truncate pl-3 pr-5 text-[var(--compare-drawer-card-text,hsl(var(--foreground)))] @4xl:block",r),"data-slot":"compare-drawer-title",...a,children:e})}function h({className:e,children:r,...a}){return o.jsx("button",{className:t.cn("absolute -right-2.5 -top-2.5 flex h-7 w-7 items-center justify-center rounded-full border border-[var(--compare-drawer-dismiss-border,hsl(var(--contrast-100)))] bg-[var(--compare-drawer-dismiss-background,hsl(var(--background)))] text-[var(--compare-drawer-dismiss-icon,hsl(var(--contrast-400)))] transition-colors duration-150 hover:border-[var(--compare-drawer-dismiss-border-hover,hsl(var(--contrast-200)))] hover:bg-[var(--compare-drawer-dismiss-background-hover,hsl(var(--contrast-100)))] hover:text-[var(--compare-drawer-dismiss-icon-hover,hsl(var(--foreground)))]",e),"data-slot":"compare-drawer-remove",type:"button",...a,children:r})}exports.CompareDrawerContent=d;exports.CompareDrawerFallback=f;exports.CompareDrawerImage=x;exports.CompareDrawerItem=u;exports.CompareDrawerItemList=p;exports.CompareDrawerLink=w;exports.CompareDrawerRemove=h;exports.CompareDrawerRoot=m;exports.CompareDrawerThumbnail=v;exports.CompareDrawerTitle=b;exports.CompareDrawerViewport=i;
|
|
2
|
+
//# sourceMappingURL=compare-drawer-remove-DcaPIOnG.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compare-drawer-remove-DcaPIOnG.cjs","sources":["../src/components/compare-drawer/primitives/compare-drawer-root.tsx","../src/components/compare-drawer/primitives/compare-drawer-viewport.tsx","../src/components/compare-drawer/primitives/compare-drawer-content.tsx","../src/components/compare-drawer/primitives/compare-drawer-item-list.tsx","../src/components/compare-drawer/primitives/compare-drawer-item.tsx","../src/components/compare-drawer/primitives/compare-drawer-link.tsx","../src/components/compare-drawer/primitives/compare-drawer-thumbnail.tsx","../src/components/compare-drawer/primitives/compare-drawer-image.tsx","../src/components/compare-drawer/primitives/compare-drawer-fallback.tsx","../src/components/compare-drawer/primitives/compare-drawer-title.tsx","../src/components/compare-drawer/primitives/compare-drawer-remove.tsx"],"sourcesContent":["'use client';\n\nimport * as Portal from '@radix-ui/react-portal';\nimport type { ComponentProps } from 'react';\n\nexport type CompareDrawerRootProps = ComponentProps<typeof Portal.Root>;\n\nexport function CompareDrawerRoot({ children, ...props }: CompareDrawerRootProps) {\n return (\n <Portal.Root data-slot=\"compare-drawer-root\" {...props}>\n {children}\n </Portal.Root>\n );\n}\n","import type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport type CompareDrawerViewportProps = ComponentProps<'div'>;\n\nexport function CompareDrawerViewport({\n className,\n children,\n ...props\n}: CompareDrawerViewportProps) {\n return (\n <div\n className={cn(\n 'sticky bottom-0 z-10 w-full border-t border-[var(--compare-drawer-card-border,hsl(var(--contrast-100)))] bg-[var(--compare-drawer-background,hsl(var(--background)))] px-3 py-4 @container @md:py-5 @xl:px-6 @5xl:px-10',\n className,\n )}\n data-slot=\"compare-drawer-viewport\"\n {...props}\n >\n {children}\n </div>\n );\n}\n","import type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport type CompareDrawerContentProps = ComponentProps<'div'>;\n\nexport function CompareDrawerContent({ children, className, ...props }: CompareDrawerContentProps) {\n return (\n <div\n className={cn(\n 'mx-auto flex w-full max-w-7xl flex-col items-start justify-end gap-x-3 gap-y-4 @md:flex-row',\n className,\n )}\n data-slot=\"compare-drawer-content\"\n {...props}\n >\n {children}\n </div>\n );\n}\n","import type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport type CompareDrawerItemListProps = ComponentProps<'div'>;\n\nexport function CompareDrawerItemList({\n children,\n className,\n ...props\n}: CompareDrawerItemListProps) {\n return (\n <div\n className={cn('flex flex-1 flex-wrap justify-end gap-4', className)}\n data-slot=\"compare-drawer-item-list\"\n {...props}\n >\n {children}\n </div>\n );\n}\n","'use client';\n\nimport type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport type CompareDrawerItemProps = ComponentProps<'div'>;\n\nexport function CompareDrawerItem({ children, className, ...props }: CompareDrawerItemProps) {\n return (\n <div className={cn('relative', className)} data-slot=\"compare-drawer-item\" {...props}>\n {children}\n </div>\n );\n}\n","import { Slot } from '@radix-ui/react-slot';\nimport type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport interface CompareDrawerLinkProps extends ComponentProps<'a'> {\n asChild?: boolean;\n}\n\nexport function CompareDrawerLink({\n asChild = false,\n className,\n children,\n ...props\n}: CompareDrawerLinkProps) {\n const Component = asChild ? Slot : 'a';\n\n return (\n <Component\n className={cn(\n 'group relative flex max-w-56 items-center overflow-hidden whitespace-nowrap rounded-xl border border-[var(--compare-drawer-link-border,hsl(var(--contrast-100)))] bg-[var(--compare-drawer-card-background,hsl(var(--background)))] font-semibold ring-[var(--compare-drawer-card-focus,hsl(var(--primary)))] transition-all duration-150 hover:bg-[var(--compare-drawer-card-background-hover,hsl(var(--contrast-100)))] focus:outline-none focus:ring-2',\n className,\n )}\n data-slot=\"compare-drawer-link\"\n {...props}\n >\n {children}\n </Component>\n );\n}\n","import type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport type CompareDrawerThumbnailProps = ComponentProps<'div'>;\n\nexport function CompareDrawerThumbnail({\n children,\n className,\n ...props\n}: CompareDrawerThumbnailProps) {\n return (\n <div\n className={cn(\n 'relative aspect-square w-12 shrink-0 bg-[var(--compare-drawer-card-image-background,hsl(var(--contrast-100)))]',\n className,\n )}\n data-slot=\"compare-drawer-image\"\n {...props}\n >\n {children}\n </div>\n );\n}\n","import { Slot } from '@radix-ui/react-slot';\nimport type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport type CompareDrawerImageProps = ComponentProps<'img'> & {\n asChild?: boolean;\n};\n\nexport function CompareDrawerImage({\n children,\n className,\n asChild = false,\n ...props\n}: CompareDrawerImageProps) {\n const Component = asChild ? Slot : 'img';\n\n return (\n <Component\n className={cn(\n 'h-full w-full object-cover transition-transform duration-500 ease-out group-hover:scale-110',\n className,\n )}\n data-slot=\"compare-drawer-image\"\n {...props}\n />\n );\n}\n","import type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport type CompareDrawerFallbackProps = ComponentProps<'span'> & {\n children: string;\n};\n\nexport function CompareDrawerFallback({\n children,\n className,\n ...props\n}: CompareDrawerFallbackProps) {\n return (\n <span\n className={cn(\n 'flex h-full w-full items-center justify-center break-all p-1 text-xs text-[var(--compare-drawer-empty-image-text,var(--primary-shadow))] opacity-20',\n className,\n )}\n data-slot=\"compare-drawer-fallback\"\n {...props}\n >\n {children\n .split(' ')\n .map((word) => word[0])\n .join('')\n .toUpperCase()\n .slice(0, 2)}\n </span>\n );\n}\n","import type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport type CompareDrawerTitleProps = ComponentProps<'span'>;\n\nexport function CompareDrawerTitle({ children, className, ...props }: CompareDrawerTitleProps) {\n return (\n <span\n className={cn(\n 'hidden truncate pl-3 pr-5 text-[var(--compare-drawer-card-text,hsl(var(--foreground)))] @4xl:block',\n className,\n )}\n data-slot=\"compare-drawer-title\"\n {...props}\n >\n {children}\n </span>\n );\n}\n","import type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport type CompareDrawerRemoveProps = ComponentProps<'button'>;\n\nexport function CompareDrawerRemove({ className, children, ...props }: CompareDrawerRemoveProps) {\n return (\n <button\n className={cn(\n 'absolute -right-2.5 -top-2.5 flex h-7 w-7 items-center justify-center rounded-full border border-[var(--compare-drawer-dismiss-border,hsl(var(--contrast-100)))] bg-[var(--compare-drawer-dismiss-background,hsl(var(--background)))] text-[var(--compare-drawer-dismiss-icon,hsl(var(--contrast-400)))] transition-colors duration-150 hover:border-[var(--compare-drawer-dismiss-border-hover,hsl(var(--contrast-200)))] hover:bg-[var(--compare-drawer-dismiss-background-hover,hsl(var(--contrast-100)))] hover:text-[var(--compare-drawer-dismiss-icon-hover,hsl(var(--foreground)))]',\n className,\n )}\n data-slot=\"compare-drawer-remove\"\n type=\"button\"\n {...props}\n >\n {children}\n </button>\n );\n}\n"],"names":["CompareDrawerRoot","children","props","jsx","Portal.Root","CompareDrawerViewport","className","cn","CompareDrawerContent","CompareDrawerItemList","CompareDrawerItem","CompareDrawerLink","asChild","Component","Slot","CompareDrawerThumbnail","CompareDrawerImage","CompareDrawerFallback","word","CompareDrawerTitle","CompareDrawerRemove"],"mappings":"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"}
|
package/dist/compare-drawer.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./compare-drawer-remove-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./compare-drawer-remove-DcaPIOnG.cjs");exports.Content=e.CompareDrawerContent;exports.Fallback=e.CompareDrawerFallback;exports.Image=e.CompareDrawerImage;exports.Item=e.CompareDrawerItem;exports.ItemList=e.CompareDrawerItemList;exports.Link=e.CompareDrawerLink;exports.Remove=e.CompareDrawerRemove;exports.Root=e.CompareDrawerRoot;exports.Thumbnail=e.CompareDrawerThumbnail;exports.Title=e.CompareDrawerTitle;exports.Viewport=e.CompareDrawerViewport;
|
|
2
2
|
//# sourceMappingURL=compare-drawer.cjs.map
|
package/dist/compare-drawer.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as e, h as t, g as o, d as i, c as m, e as l, j as n, C as b, f as r, i as I, a as c } from "./compare-drawer-remove-
|
|
1
|
+
import { b as e, h as t, g as o, d as i, c as m, e as l, j as n, C as b, f as r, i as I, a as c } from "./compare-drawer-remove-B6UNek1W.js";
|
|
2
2
|
export {
|
|
3
3
|
e as Content,
|
|
4
4
|
t as Fallback,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compare-drawer-link.d.ts","sourceRoot":"","sources":["../../../../src/components/compare-drawer/primitives/compare-drawer-link.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAI5C,MAAM,WAAW,sBAAuB,SAAQ,cAAc,CAAC,GAAG,CAAC;IACjE,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,wBAAgB,iBAAiB,CAAC,EAChC,OAAe,EACf,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,sBAAsB,
|
|
1
|
+
{"version":3,"file":"compare-drawer-link.d.ts","sourceRoot":"","sources":["../../../../src/components/compare-drawer/primitives/compare-drawer-link.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAI5C,MAAM,WAAW,sBAAuB,SAAQ,cAAc,CAAC,GAAG,CAAC;IACjE,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,wBAAgB,iBAAiB,CAAC,EAChC,OAAe,EACf,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,sBAAsB,2CAexB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cursor-pagination-link.d.ts","sourceRoot":"","sources":["../../../../src/components/cursor-pagination/primitives/cursor-pagination-link.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAI5C,MAAM,WAAW,yBAA0B,SAAQ,cAAc,CAAC,GAAG,CAAC;IACpE,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,wBAAgB,oBAAoB,CAAC,EACnC,SAAS,EACT,QAAQ,EACR,OAAe,EACf,GAAG,KAAK,EACT,EAAE,yBAAyB,
|
|
1
|
+
{"version":3,"file":"cursor-pagination-link.d.ts","sourceRoot":"","sources":["../../../../src/components/cursor-pagination/primitives/cursor-pagination-link.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAI5C,MAAM,WAAW,yBAA0B,SAAQ,cAAc,CAAC,GAAG,CAAC;IACpE,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,wBAAgB,oBAAoB,CAAC,EACnC,SAAS,EACT,QAAQ,EACR,OAAe,EACf,GAAG,KAAK,EACT,EAAE,yBAAyB,2CAe3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logo-image.d.ts","sourceRoot":"","sources":["../../../../src/components/logo/primitives/logo-image.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAI5C,MAAM,WAAW,cAAe,SAAQ,cAAc,CAAC,KAAK,CAAC;IAC3D,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,wBAAgB,SAAS,CAAC,EAAE,OAAe,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,
|
|
1
|
+
{"version":3,"file":"logo-image.d.ts","sourceRoot":"","sources":["../../../../src/components/logo/primitives/logo-image.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAI5C,MAAM,WAAW,cAAe,SAAQ,cAAc,CAAC,KAAK,CAAC;IAC3D,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,wBAAgB,SAAS,CAAC,EAAE,OAAe,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,2CAQ3F"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logo-link.d.ts","sourceRoot":"","sources":["../../../../src/components/logo/primitives/logo-link.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAI5C,MAAM,WAAW,aAAc,SAAQ,cAAc,CAAC,GAAG,CAAC;IACxD,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,wBAAgB,QAAQ,CAAC,EAAE,OAAe,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"logo-link.d.ts","sourceRoot":"","sources":["../../../../src/components/logo/primitives/logo-link.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAI5C,MAAM,WAAW,aAAc,SAAQ,cAAc,CAAC,GAAG,CAAC;IACxD,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,wBAAgB,QAAQ,CAAC,EAAE,OAAe,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,aAAa,2CAezF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/offset-pagination/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,KAAK,qBAAqB,EAAE,KAAK,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAClG,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export interface PageItem {
|
|
2
|
+
href: string;
|
|
3
|
+
page: number;
|
|
4
|
+
}
|
|
5
|
+
export interface OffsetPaginationProps {
|
|
6
|
+
pages: Array<PageItem | 'ellipsis'>;
|
|
7
|
+
currentPage: number;
|
|
8
|
+
label?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* This component supports various CSS variables for theming. Here's a comprehensive list, along
|
|
12
|
+
* with their default values:
|
|
13
|
+
*
|
|
14
|
+
* ```css
|
|
15
|
+
* :root {
|
|
16
|
+
* --offset-pagination-focus: var(--primary);
|
|
17
|
+
* --offset-pagination-font-family: var(--font-family-body);
|
|
18
|
+
* --offset-pagination-ellipsis: var(--foreground);
|
|
19
|
+
* --offset-pagination-border: var(--contrast-100);
|
|
20
|
+
* --offset-pagination-text: var(--foreground);
|
|
21
|
+
* --offset-pagination-background-hover: var(--contrast-100);
|
|
22
|
+
* --offset-pagination-current-page-border: var(--foreground);
|
|
23
|
+
* --offset-pagination-current-page-background: var(--foreground);
|
|
24
|
+
* --offset-pagination-current-page-text: var(--background);
|
|
25
|
+
* --offset-pagination-current-page-background-hover: var(--contrast-500);
|
|
26
|
+
* }
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
export declare function OffsetPagination({ pages, currentPage, label, }: OffsetPaginationProps): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
//# sourceMappingURL=offset-pagination.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"offset-pagination.d.ts","sourceRoot":"","sources":["../../../src/components/offset-pagination/offset-pagination.tsx"],"names":[],"mappings":"AAIA,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,KAAK,CAAC,QAAQ,GAAG,UAAU,CAAC,CAAC;IACpC,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,KAAK,EACL,WAAW,EACX,KAAoB,GACrB,EAAE,qBAAqB,2CAuBvB"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
2
|
+
export type OffsetPaginationEllipsisProps = ComponentProps<'span'>;
|
|
3
|
+
export declare function OffsetPaginationEllipsis({ className, children, ...props }: OffsetPaginationEllipsisProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
//# sourceMappingURL=offset-pagination-ellipsis.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"offset-pagination-ellipsis.d.ts","sourceRoot":"","sources":["../../../../src/components/offset-pagination/primitives/offset-pagination-ellipsis.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAI5C,MAAM,MAAM,6BAA6B,GAAG,cAAc,CAAC,MAAM,CAAC,CAAC;AAEnE,wBAAgB,wBAAwB,CAAC,EACvC,SAAS,EACT,QAAgB,EAChB,GAAG,KAAK,EACT,EAAE,6BAA6B,2CAc/B"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
2
|
+
export type OffsetPaginationItemProps = ComponentProps<'li'>;
|
|
3
|
+
export declare function OffsetPaginationItem({ className, children, ...props }: OffsetPaginationItemProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
//# sourceMappingURL=offset-pagination-item.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"offset-pagination-item.d.ts","sourceRoot":"","sources":["../../../../src/components/offset-pagination/primitives/offset-pagination-item.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAI5C,MAAM,MAAM,yBAAyB,GAAG,cAAc,CAAC,IAAI,CAAC,CAAC;AAE7D,wBAAgB,oBAAoB,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,yBAAyB,2CAMhG"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
2
|
+
export interface OffsetPaginationLinkProps extends ComponentProps<'a'> {
|
|
3
|
+
asChild?: boolean;
|
|
4
|
+
}
|
|
5
|
+
export declare function OffsetPaginationLink({ className, children, asChild, ...props }: OffsetPaginationLinkProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
//# sourceMappingURL=offset-pagination-link.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"offset-pagination-link.d.ts","sourceRoot":"","sources":["../../../../src/components/offset-pagination/primitives/offset-pagination-link.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAI5C,MAAM,WAAW,yBAA0B,SAAQ,cAAc,CAAC,GAAG,CAAC;IACpE,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,wBAAgB,oBAAoB,CAAC,EACnC,SAAS,EACT,QAAQ,EACR,OAAe,EACf,GAAG,KAAK,EACT,EAAE,yBAAyB,2CAiB3B"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
2
|
+
export type OffsetPaginationListProps = ComponentProps<'ul'>;
|
|
3
|
+
export declare function OffsetPaginationList({ className, children, ...props }: OffsetPaginationListProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
//# sourceMappingURL=offset-pagination-list.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"offset-pagination-list.d.ts","sourceRoot":"","sources":["../../../../src/components/offset-pagination/primitives/offset-pagination-list.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAI5C,MAAM,MAAM,yBAAyB,GAAG,cAAc,CAAC,IAAI,CAAC,CAAC;AAE7D,wBAAgB,oBAAoB,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,yBAAyB,2CAUhG"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
export type OffsetPaginationRootProps = ComponentProps<'nav'>;
|
|
3
|
+
export declare function OffsetPaginationRoot({ className, children, ...props }: OffsetPaginationRootProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
//# sourceMappingURL=offset-pagination-root.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"offset-pagination-root.d.ts","sourceRoot":"","sources":["../../../../src/components/offset-pagination/primitives/offset-pagination-root.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAIvC,MAAM,MAAM,yBAAyB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAE9D,wBAAgB,oBAAoB,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,yBAAyB,2CAahG"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { OffsetPaginationRoot as Root, type OffsetPaginationRootProps as RootProps, } from './primitives/offset-pagination-root';
|
|
2
|
+
export { OffsetPaginationList as List, type OffsetPaginationListProps as ListProps, } from './primitives/offset-pagination-list';
|
|
3
|
+
export { OffsetPaginationItem as Item, type OffsetPaginationItemProps as ItemProps, } from './primitives/offset-pagination-item';
|
|
4
|
+
export { OffsetPaginationLink as Link, type OffsetPaginationLinkProps as LinkProps, } from './primitives/offset-pagination-link';
|
|
5
|
+
export { OffsetPaginationEllipsis as Ellipsis, type OffsetPaginationEllipsisProps as EllipsisProps, } from './primitives/offset-pagination-ellipsis';
|
|
6
|
+
//# sourceMappingURL=primitives.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"primitives.d.ts","sourceRoot":"","sources":["../../../src/components/offset-pagination/primitives.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,IAAI,IAAI,EAC5B,KAAK,yBAAyB,IAAI,SAAS,GAC5C,MAAM,kEAAkE,CAAC;AAC1E,OAAO,EACL,oBAAoB,IAAI,IAAI,EAC5B,KAAK,yBAAyB,IAAI,SAAS,GAC5C,MAAM,kEAAkE,CAAC;AAC1E,OAAO,EACL,oBAAoB,IAAI,IAAI,EAC5B,KAAK,yBAAyB,IAAI,SAAS,GAC5C,MAAM,kEAAkE,CAAC;AAC1E,OAAO,EACL,oBAAoB,IAAI,IAAI,EAC5B,KAAK,yBAAyB,IAAI,SAAS,GAC5C,MAAM,kEAAkE,CAAC;AAC1E,OAAO,EACL,wBAAwB,IAAI,QAAQ,EACpC,KAAK,6BAA6B,IAAI,aAAa,GACpD,MAAM,sEAAsE,CAAC"}
|
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
*
|
|
9
9
|
* This source code is licensed under the ISC license.
|
|
10
10
|
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
-
*/const c=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],u=e.createLucideIcon("arrow-right",c),p=Object.freeze(Object.defineProperty({__proto__:null,__iconNode:c,default:u},Symbol.toStringTag,{value:"Module"}));function h({className:r,children:t
|
|
12
|
-
//# sourceMappingURL=cursor-pagination-link-
|
|
11
|
+
*/const c=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],u=e.createLucideIcon("arrow-right",c),p=Object.freeze(Object.defineProperty({__proto__:null,__iconNode:c,default:u},Symbol.toStringTag,{value:"Module"}));function h({className:r,children:o,...t}){return n.jsx("nav",{className:a.cn("py-10 text-[var(--cursor-pagination-icon,hsl(var(--foreground)))]",r),"data-slot":"cursor-pagination-root",...t,children:o})}function v({className:r,children:o,...t}){return n.jsx("ul",{className:a.cn("flex items-center justify-center gap-3",r),"data-slot":"cursor-pagination-list",...t,children:o})}function b({className:r,children:o,...t}){return n.jsx("li",{className:a.cn(r),"data-slot":"cursor-pagination-item",...t,children:o})}function m({className:r,children:o,asChild:t=!1,...l}){const d=t?g.Slot:"a";return n.jsx(d,{className:a.cn("flex h-12 w-12 items-center justify-center rounded-full border border-[var(--cursor-pagination-border,hsl(var(--contrast-100)))] bg-[var(--cursor-pagination-background,hsl(var(--background)))] ring-[var(--cursor-pagination-focus,hsl(var(--primary)))] transition-colors duration-300 hover:border-[var(--cursor-pagination-border-hover,hsl(var(--contrast-200)))] hover:bg-[var(--cursor-pagination-background-hover,hsl(var(--contrast-100)))] focus:outline-none focus-visible:ring-2 aria-disabled:pointer-events-none aria-disabled:cursor-not-allowed aria-disabled:opacity-25",r),"data-slot":"cursor-pagination-link",...l,children:o})}exports.ArrowLeft=s;exports.ArrowRight=u;exports.CursorPaginationItem=b;exports.CursorPaginationLink=m;exports.CursorPaginationList=v;exports.CursorPaginationRoot=h;exports.arrowLeft=f;exports.arrowRight=p;
|
|
12
|
+
//# sourceMappingURL=cursor-pagination-link-BJafEeyH.cjs.map
|
package/dist/{cursor-pagination-link-CdxwX869.cjs.map → cursor-pagination-link-BJafEeyH.cjs.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cursor-pagination-link-
|
|
1
|
+
{"version":3,"file":"cursor-pagination-link-BJafEeyH.cjs","sources":["../node_modules/.pnpm/lucide-react@0.545.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/arrow-left.js","../node_modules/.pnpm/lucide-react@0.545.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/arrow-right.js","../src/components/cursor-pagination/primitives/cursor-pagination-root.tsx","../src/components/cursor-pagination/primitives/cursor-pagination-list.tsx","../src/components/cursor-pagination/primitives/cursor-pagination-item.tsx","../src/components/cursor-pagination/primitives/cursor-pagination-link.tsx"],"sourcesContent":["/**\n * @license lucide-react v0.545.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"path\", { d: \"m12 19-7-7 7-7\", key: \"1l729n\" }],\n [\"path\", { d: \"M19 12H5\", key: \"x3x0zl\" }]\n];\nconst ArrowLeft = createLucideIcon(\"arrow-left\", __iconNode);\n\nexport { __iconNode, ArrowLeft as default };\n//# sourceMappingURL=arrow-left.js.map\n","/**\n * @license lucide-react v0.545.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"path\", { d: \"M5 12h14\", key: \"1ays0h\" }],\n [\"path\", { d: \"m12 5 7 7-7 7\", key: \"xquz4c\" }]\n];\nconst ArrowRight = createLucideIcon(\"arrow-right\", __iconNode);\n\nexport { __iconNode, ArrowRight as default };\n//# sourceMappingURL=arrow-right.js.map\n","import { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport type CursorPaginationRootProps = ComponentProps<'div'>;\n\nexport function CursorPaginationRoot({ className, children, ...props }: CursorPaginationRootProps) {\n return (\n <nav\n className={cn('py-10 text-[var(--cursor-pagination-icon,hsl(var(--foreground)))]', className)}\n data-slot=\"cursor-pagination-root\"\n {...props}\n >\n {children}\n </nav>\n );\n}\n","import type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport type CursorPaginationListProps = ComponentProps<'ul'>;\n\nexport function CursorPaginationList({ className, children, ...props }: CursorPaginationListProps) {\n return (\n <ul\n className={cn('flex items-center justify-center gap-3', className)}\n data-slot=\"cursor-pagination-list\"\n {...props}\n >\n {children}\n </ul>\n );\n}\n","import type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport type CursorPaginationItemProps = ComponentProps<'li'>;\n\nexport function CursorPaginationItem({ className, children, ...props }: CursorPaginationItemProps) {\n return (\n <li className={cn(className)} data-slot=\"cursor-pagination-item\" {...props}>\n {children}\n </li>\n );\n}\n","import { Slot } from '@radix-ui/react-slot';\nimport type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport interface CursorPaginationLinkProps extends ComponentProps<'a'> {\n asChild?: boolean;\n}\n\nexport function CursorPaginationLink({\n className,\n children,\n asChild = false,\n ...props\n}: CursorPaginationLinkProps) {\n const Component = asChild ? Slot : 'a';\n\n return (\n <Component\n className={cn(\n 'flex h-12 w-12 items-center justify-center rounded-full border border-[var(--cursor-pagination-border,hsl(var(--contrast-100)))] bg-[var(--cursor-pagination-background,hsl(var(--background)))] ring-[var(--cursor-pagination-focus,hsl(var(--primary)))] transition-colors duration-300 hover:border-[var(--cursor-pagination-border-hover,hsl(var(--contrast-200)))] hover:bg-[var(--cursor-pagination-background-hover,hsl(var(--contrast-100)))] focus:outline-none focus-visible:ring-2 aria-disabled:pointer-events-none aria-disabled:cursor-not-allowed aria-disabled:opacity-25',\n className,\n )}\n data-slot=\"cursor-pagination-link\"\n {...props}\n >\n {children}\n </Component>\n );\n}\n"],"names":["__iconNode","ArrowLeft","createLucideIcon","ArrowRight","CursorPaginationRoot","className","children","props","jsx","cn","CursorPaginationList","CursorPaginationItem","CursorPaginationLink","asChild","Component","Slot"],"mappings":"mKAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GASA,MAAMA,EAAa,CACjB,CAAC,OAAQ,CAAE,EAAG,iBAAkB,IAAK,QAAQ,CAAE,EAC/C,CAAC,OAAQ,CAAE,EAAG,WAAY,IAAK,QAAQ,CAAE,CAC3C,EACMC,EAAYC,EAAAA,iBAAiB,aAAcF,CAAU,sHCb3D;AAAA;AAAA;AAAA;AAAA;AAAA,GASA,MAAMA,EAAa,CACjB,CAAC,OAAQ,CAAE,EAAG,WAAY,IAAK,QAAQ,CAAE,EACzC,CAAC,OAAQ,CAAE,EAAG,gBAAiB,IAAK,QAAQ,CAAE,CAChD,EACMG,EAAaD,EAAAA,iBAAiB,cAAeF,CAAU,sHCPtD,SAASI,EAAqB,CAAE,UAAAC,EAAW,SAAAC,EAAU,GAAGC,GAAoC,CACjG,OACEC,EAAAA,IAAC,MAAA,CACC,UAAWC,EAAAA,GAAG,oEAAqEJ,CAAS,EAC5F,YAAU,yBACT,GAAGE,EAEH,SAAAD,CAAA,CAAA,CAGP,CCVO,SAASI,EAAqB,CAAE,UAAAL,EAAW,SAAAC,EAAU,GAAGC,GAAoC,CACjG,OACEC,EAAAA,IAAC,KAAA,CACC,UAAWC,EAAAA,GAAG,yCAA0CJ,CAAS,EACjE,YAAU,yBACT,GAAGE,EAEH,SAAAD,CAAA,CAAA,CAGP,CCVO,SAASK,EAAqB,CAAE,UAAAN,EAAW,SAAAC,EAAU,GAAGC,GAAoC,CACjG,OACEC,MAAC,KAAA,CAAG,UAAWC,EAAAA,GAAGJ,CAAS,EAAG,YAAU,yBAA0B,GAAGE,EAClE,SAAAD,CAAA,CACH,CAEJ,CCHO,SAASM,EAAqB,CACnC,UAAAP,EACA,SAAAC,EACA,QAAAO,EAAU,GACV,GAAGN,CACL,EAA8B,CAC5B,MAAMO,EAAYD,EAAUE,EAAAA,KAAO,IAEnC,OACEP,EAAAA,IAACM,EAAA,CACC,UAAWL,EAAAA,GACT,4jBACAJ,CAAA,EAEF,YAAU,yBACT,GAAGE,EAEH,SAAAD,CAAA,CAAA,CAGP","x_google_ignoreList":[0,1]}
|
|
@@ -11,7 +11,7 @@ import { S as l } from "./index-DD8W7cMj.js";
|
|
|
11
11
|
const i = [
|
|
12
12
|
["path", { d: "m12 19-7-7 7-7", key: "1l729n" }],
|
|
13
13
|
["path", { d: "M19 12H5", key: "x3x0zl" }]
|
|
14
|
-
], u = e("arrow-left", i),
|
|
14
|
+
], u = e("arrow-left", i), v = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
15
15
|
__proto__: null,
|
|
16
16
|
__iconNode: i,
|
|
17
17
|
default: u
|
|
@@ -25,51 +25,52 @@ const i = [
|
|
|
25
25
|
const s = [
|
|
26
26
|
["path", { d: "M5 12h14", key: "1ays0h" }],
|
|
27
27
|
["path", { d: "m12 5 7 7-7 7", key: "xquz4c" }]
|
|
28
|
-
], d = e("arrow-right", s),
|
|
28
|
+
], d = e("arrow-right", s), h = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
29
29
|
__proto__: null,
|
|
30
30
|
__iconNode: s,
|
|
31
31
|
default: d
|
|
32
32
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
33
|
-
function y({ className: r, children:
|
|
33
|
+
function y({ className: r, children: o, ...a }) {
|
|
34
34
|
return /* @__PURE__ */ t(
|
|
35
35
|
"nav",
|
|
36
36
|
{
|
|
37
37
|
className: n("py-10 text-[var(--cursor-pagination-icon,hsl(var(--foreground)))]", r),
|
|
38
38
|
"data-slot": "cursor-pagination-root",
|
|
39
|
-
...
|
|
40
|
-
children:
|
|
39
|
+
...a,
|
|
40
|
+
children: o
|
|
41
41
|
}
|
|
42
42
|
);
|
|
43
43
|
}
|
|
44
|
-
function _({ className: r, children:
|
|
44
|
+
function _({ className: r, children: o, ...a }) {
|
|
45
45
|
return /* @__PURE__ */ t(
|
|
46
46
|
"ul",
|
|
47
47
|
{
|
|
48
48
|
className: n("flex items-center justify-center gap-3", r),
|
|
49
49
|
"data-slot": "cursor-pagination-list",
|
|
50
|
-
...
|
|
51
|
-
children:
|
|
50
|
+
...a,
|
|
51
|
+
children: o
|
|
52
52
|
}
|
|
53
53
|
);
|
|
54
54
|
}
|
|
55
|
-
function k({ className: r, children:
|
|
56
|
-
return /* @__PURE__ */ t("li", { className: n(r), "data-slot": "cursor-pagination-item", ...
|
|
55
|
+
function k({ className: r, children: o, ...a }) {
|
|
56
|
+
return /* @__PURE__ */ t("li", { className: n(r), "data-slot": "cursor-pagination-item", ...a, children: o });
|
|
57
57
|
}
|
|
58
58
|
function w({
|
|
59
59
|
className: r,
|
|
60
|
-
children:
|
|
61
|
-
asChild:
|
|
60
|
+
children: o,
|
|
61
|
+
asChild: a = !1,
|
|
62
62
|
...c
|
|
63
63
|
}) {
|
|
64
64
|
return /* @__PURE__ */ t(
|
|
65
|
-
|
|
65
|
+
a ? l : "a",
|
|
66
66
|
{
|
|
67
67
|
className: n(
|
|
68
68
|
"flex h-12 w-12 items-center justify-center rounded-full border border-[var(--cursor-pagination-border,hsl(var(--contrast-100)))] bg-[var(--cursor-pagination-background,hsl(var(--background)))] ring-[var(--cursor-pagination-focus,hsl(var(--primary)))] transition-colors duration-300 hover:border-[var(--cursor-pagination-border-hover,hsl(var(--contrast-200)))] hover:bg-[var(--cursor-pagination-background-hover,hsl(var(--contrast-100)))] focus:outline-none focus-visible:ring-2 aria-disabled:pointer-events-none aria-disabled:cursor-not-allowed aria-disabled:opacity-25",
|
|
69
69
|
r
|
|
70
70
|
),
|
|
71
71
|
"data-slot": "cursor-pagination-link",
|
|
72
|
-
...c
|
|
72
|
+
...c,
|
|
73
|
+
children: o
|
|
73
74
|
}
|
|
74
75
|
);
|
|
75
76
|
}
|
|
@@ -80,7 +81,7 @@ export {
|
|
|
80
81
|
_ as b,
|
|
81
82
|
k as c,
|
|
82
83
|
w as d,
|
|
83
|
-
|
|
84
|
-
|
|
84
|
+
v as e,
|
|
85
|
+
h as f
|
|
85
86
|
};
|
|
86
|
-
//# sourceMappingURL=cursor-pagination-link-
|
|
87
|
+
//# sourceMappingURL=cursor-pagination-link-CkZ5dwLY.js.map
|
package/dist/{cursor-pagination-link-DCIUoQmf.js.map → cursor-pagination-link-CkZ5dwLY.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cursor-pagination-link-
|
|
1
|
+
{"version":3,"file":"cursor-pagination-link-CkZ5dwLY.js","sources":["../node_modules/.pnpm/lucide-react@0.545.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/arrow-left.js","../node_modules/.pnpm/lucide-react@0.545.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/arrow-right.js","../src/components/cursor-pagination/primitives/cursor-pagination-root.tsx","../src/components/cursor-pagination/primitives/cursor-pagination-list.tsx","../src/components/cursor-pagination/primitives/cursor-pagination-item.tsx","../src/components/cursor-pagination/primitives/cursor-pagination-link.tsx"],"sourcesContent":["/**\n * @license lucide-react v0.545.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"path\", { d: \"m12 19-7-7 7-7\", key: \"1l729n\" }],\n [\"path\", { d: \"M19 12H5\", key: \"x3x0zl\" }]\n];\nconst ArrowLeft = createLucideIcon(\"arrow-left\", __iconNode);\n\nexport { __iconNode, ArrowLeft as default };\n//# sourceMappingURL=arrow-left.js.map\n","/**\n * @license lucide-react v0.545.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"path\", { d: \"M5 12h14\", key: \"1ays0h\" }],\n [\"path\", { d: \"m12 5 7 7-7 7\", key: \"xquz4c\" }]\n];\nconst ArrowRight = createLucideIcon(\"arrow-right\", __iconNode);\n\nexport { __iconNode, ArrowRight as default };\n//# sourceMappingURL=arrow-right.js.map\n","import { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport type CursorPaginationRootProps = ComponentProps<'div'>;\n\nexport function CursorPaginationRoot({ className, children, ...props }: CursorPaginationRootProps) {\n return (\n <nav\n className={cn('py-10 text-[var(--cursor-pagination-icon,hsl(var(--foreground)))]', className)}\n data-slot=\"cursor-pagination-root\"\n {...props}\n >\n {children}\n </nav>\n );\n}\n","import type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport type CursorPaginationListProps = ComponentProps<'ul'>;\n\nexport function CursorPaginationList({ className, children, ...props }: CursorPaginationListProps) {\n return (\n <ul\n className={cn('flex items-center justify-center gap-3', className)}\n data-slot=\"cursor-pagination-list\"\n {...props}\n >\n {children}\n </ul>\n );\n}\n","import type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport type CursorPaginationItemProps = ComponentProps<'li'>;\n\nexport function CursorPaginationItem({ className, children, ...props }: CursorPaginationItemProps) {\n return (\n <li className={cn(className)} data-slot=\"cursor-pagination-item\" {...props}>\n {children}\n </li>\n );\n}\n","import { Slot } from '@radix-ui/react-slot';\nimport type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport interface CursorPaginationLinkProps extends ComponentProps<'a'> {\n asChild?: boolean;\n}\n\nexport function CursorPaginationLink({\n className,\n children,\n asChild = false,\n ...props\n}: CursorPaginationLinkProps) {\n const Component = asChild ? Slot : 'a';\n\n return (\n <Component\n className={cn(\n 'flex h-12 w-12 items-center justify-center rounded-full border border-[var(--cursor-pagination-border,hsl(var(--contrast-100)))] bg-[var(--cursor-pagination-background,hsl(var(--background)))] ring-[var(--cursor-pagination-focus,hsl(var(--primary)))] transition-colors duration-300 hover:border-[var(--cursor-pagination-border-hover,hsl(var(--contrast-200)))] hover:bg-[var(--cursor-pagination-background-hover,hsl(var(--contrast-100)))] focus:outline-none focus-visible:ring-2 aria-disabled:pointer-events-none aria-disabled:cursor-not-allowed aria-disabled:opacity-25',\n className,\n )}\n data-slot=\"cursor-pagination-link\"\n {...props}\n >\n {children}\n </Component>\n );\n}\n"],"names":["__iconNode","ArrowLeft","createLucideIcon","ArrowRight","CursorPaginationRoot","className","children","props","jsx","cn","CursorPaginationList","CursorPaginationItem","CursorPaginationLink","asChild","Slot"],"mappings":";;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASA,MAAMA,IAAa;AAAA,EACjB,CAAC,QAAQ,EAAE,GAAG,kBAAkB,KAAK,SAAQ,CAAE;AAAA,EAC/C,CAAC,QAAQ,EAAE,GAAG,YAAY,KAAK,SAAQ,CAAE;AAC3C,GACMC,IAAYC,EAAiB,cAAcF,CAAU;;;;;ACb3D;AAAA;AAAA;AAAA;AAAA;AAAA;AASA,MAAMA,IAAa;AAAA,EACjB,CAAC,QAAQ,EAAE,GAAG,YAAY,KAAK,SAAQ,CAAE;AAAA,EACzC,CAAC,QAAQ,EAAE,GAAG,iBAAiB,KAAK,SAAQ,CAAE;AAChD,GACMG,IAAaD,EAAiB,eAAeF,CAAU;;;;;ACPtD,SAASI,EAAqB,EAAE,WAAAC,GAAW,UAAAC,GAAU,GAAGC,KAAoC;AACjG,SACE,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC,EAAG,qEAAqEJ,CAAS;AAAA,MAC5F,aAAU;AAAA,MACT,GAAGE;AAAA,MAEH,UAAAD;AAAA,IAAA;AAAA,EAAA;AAGP;ACVO,SAASI,EAAqB,EAAE,WAAAL,GAAW,UAAAC,GAAU,GAAGC,KAAoC;AACjG,SACE,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC,EAAG,0CAA0CJ,CAAS;AAAA,MACjE,aAAU;AAAA,MACT,GAAGE;AAAA,MAEH,UAAAD;AAAA,IAAA;AAAA,EAAA;AAGP;ACVO,SAASK,EAAqB,EAAE,WAAAN,GAAW,UAAAC,GAAU,GAAGC,KAAoC;AACjG,SACE,gBAAAC,EAAC,MAAA,EAAG,WAAWC,EAAGJ,CAAS,GAAG,aAAU,0BAA0B,GAAGE,GAClE,UAAAD,EAAA,CACH;AAEJ;ACHO,SAASM,EAAqB;AAAA,EACnC,WAAAP;AAAA,EACA,UAAAC;AAAA,EACA,SAAAO,IAAU;AAAA,EACV,GAAGN;AACL,GAA8B;AAG5B,SACE,gBAAAC;AAAA,IAHgBK,IAAUC,IAAO;AAAA,IAGhC;AAAA,MACC,WAAWL;AAAA,QACT;AAAA,QACAJ;AAAA,MAAA;AAAA,MAEF,aAAU;AAAA,MACT,GAAGE;AAAA,MAEH,UAAAD;AAAA,IAAA;AAAA,EAAA;AAGP;","x_google_ignoreList":[0,1]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./cursor-pagination-link-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./cursor-pagination-link-BJafEeyH.cjs"),r=require("react/jsx-runtime"),s=require("./utils-LBH114_M.cjs"),t=require("./skeleton-icon-CCCgNtIy.cjs");function i({className:o,...n}){return r.jsx("div",{className:s.cn("py-10 text-[var(--cursor-pagination-icon,hsl(var(--foreground)))]",o),...n,children:r.jsxs("div",{className:"flex items-center justify-center gap-3",children:[r.jsx(t.SkeletonIcon,{className:"flex h-12 w-12 cursor-not-allowed items-center justify-center rounded-full border border-[var(--cursor-pagination-border,hsl(var(--contrast-100)))]",icon:r.jsx(e.ArrowLeft,{absoluteStrokeWidth:!0,size:24,strokeWidth:1})}),r.jsx(t.SkeletonIcon,{className:"flex h-12 w-12 cursor-not-allowed items-center justify-center rounded-full border border-[var(--cursor-pagination-border,hsl(var(--contrast-100)))]",icon:r.jsx(e.ArrowRight,{absoluteStrokeWidth:!0,size:24,strokeWidth:1})})]})})}exports.Item=e.CursorPaginationItem;exports.Link=e.CursorPaginationLink;exports.List=e.CursorPaginationList;exports.Root=e.CursorPaginationRoot;exports.Skeleton=i;
|
|
2
2
|
//# sourceMappingURL=cursor-pagination.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as s, a } from "./cursor-pagination-link-
|
|
2
|
-
import { c as p, d as b, b as k, C as v } from "./cursor-pagination-link-
|
|
1
|
+
import { A as s, a } from "./cursor-pagination-link-CkZ5dwLY.js";
|
|
2
|
+
import { c as p, d as b, b as k, C as v } from "./cursor-pagination-link-CkZ5dwLY.js";
|
|
3
3
|
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
4
4
|
import { c as n } from "./utils-BOGlfttm.js";
|
|
5
5
|
import { S as e } from "./skeleton-icon-ThRjXhfU.js";
|