Update prettier

This commit is contained in:
2026-01-14 00:33:38 -06:00
parent 4b5c12d868
commit ce2264ef6d
58 changed files with 12945 additions and 568 deletions

View File

@@ -11,9 +11,9 @@ import { buttonVariants, cn } from '@gib/ui';
function Pagination({ className, ...props }: React.ComponentProps<'nav'>) {
return (
<nav
role="navigation"
aria-label="pagination"
data-slot="pagination"
role='navigation'
aria-label='pagination'
data-slot='pagination'
className={cn('mx-auto flex w-full justify-center', className)}
{...props}
/>
@@ -26,7 +26,7 @@ function PaginationContent({
}: React.ComponentProps<'ul'>) {
return (
<ul
data-slot="pagination-content"
data-slot='pagination-content'
className={cn('flex flex-row items-center gap-1', className)}
{...props}
/>
@@ -34,7 +34,7 @@ function PaginationContent({
}
function PaginationItem({ ...props }: React.ComponentProps<'li'>) {
return <li data-slot="pagination-item" {...props} />;
return <li data-slot='pagination-item' {...props} />;
}
type PaginationLinkProps = {
@@ -51,7 +51,7 @@ function PaginationLink({
return (
<a
aria-current={isActive ? 'page' : undefined}
data-slot="pagination-link"
data-slot='pagination-link'
data-active={isActive}
className={cn(
buttonVariants({
@@ -71,13 +71,13 @@ function PaginationPrevious({
}: React.ComponentProps<typeof PaginationLink>) {
return (
<PaginationLink
aria-label="Go to previous page"
size="default"
aria-label='Go to previous page'
size='default'
className={cn('gap-1 px-2.5 sm:pl-2.5', className)}
{...props}
>
<ChevronLeftIcon />
<span className="hidden sm:block">Previous</span>
<span className='hidden sm:block'>Previous</span>
</PaginationLink>
);
}
@@ -88,12 +88,12 @@ function PaginationNext({
}: React.ComponentProps<typeof PaginationLink>) {
return (
<PaginationLink
aria-label="Go to next page"
size="default"
aria-label='Go to next page'
size='default'
className={cn('gap-1 px-2.5 sm:pr-2.5', className)}
{...props}
>
<span className="hidden sm:block">Next</span>
<span className='hidden sm:block'>Next</span>
<ChevronRightIcon />
</PaginationLink>
);
@@ -106,12 +106,12 @@ function PaginationEllipsis({
return (
<span
aria-hidden
data-slot="pagination-ellipsis"
data-slot='pagination-ellipsis'
className={cn('flex size-9 items-center justify-center', className)}
{...props}
>
<MoreHorizontalIcon className="size-4" />
<span className="sr-only">More pages</span>
<MoreHorizontalIcon className='size-4' />
<span className='sr-only'>More pages</span>
</span>
);
}