Skip to content

Commit d170724

Browse files
committed
* fix lint/format issues
* exclude cache files
1 parent 509c5f6 commit d170724

File tree

16 files changed

+54
-64
lines changed

16 files changed

+54
-64
lines changed

.cache/.eslintcache

Lines changed: 0 additions & 1 deletion
This file was deleted.

.cache/.prettiercache

Lines changed: 0 additions & 1 deletion
This file was deleted.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
/.pnp
66
.pnp.js
77
.yarn/install-state.gz
8+
/.cache
89

910
# testing
1011
/coverage

content/aria-docs/react-hooks/use-notification.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Before proceeding, ensure you have the following:
4646

4747
- [local file - absolute path](/docs/aria-docs/getting-started)
4848

49-
- [local file - relative path](../use-inventory)
49+
- [local file - relative path](./use-inventory)
5050

5151
- [local link - absolute path with hash](/docs/aria-docs/react-hooks/use-notification#prerequisites)
5252

src/components/ui/accordion.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
"use client"
22

33
import * as React from "react"
4+
import { cn } from "@/lib/utils"
45
import * as AccordionPrimitive from "@radix-ui/react-accordion"
56
import { ChevronDownIcon } from "lucide-react"
67

7-
import { cn } from "@/lib/utils"
8-
98
function Accordion({
109
...props
1110
}: React.ComponentProps<typeof AccordionPrimitive.Root>) {
@@ -36,7 +35,7 @@ function AccordionTrigger({
3635
data-slot="accordion-trigger"
3736
className={cn(
3837
"focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",
39-
className
38+
className,
4039
)}
4140
{...props}
4241
>

src/components/ui/alert.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
1+
import type { VariantProps } from "class-variance-authority"
12
import * as React from "react"
2-
import { cva, type VariantProps } from "class-variance-authority"
3-
43
import { cn } from "@/lib/utils"
4+
import { cva } from "class-variance-authority"
55

66
const alertVariants = cva(
7-
"relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",
7+
"relative grid w-full grid-cols-[0_1fr] items-start gap-y-0.5 rounded-lg border px-4 py-3 text-sm has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] has-[>svg]:gap-x-3 [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",
88
{
99
variants: {
1010
variant: {
1111
default: "bg-card text-card-foreground",
1212
destructive:
13-
"text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90",
13+
"text-destructive bg-card *:data-[slot=alert-description]:text-destructive/90 [&>svg]:text-current",
1414
},
1515
},
1616
defaultVariants: {
1717
variant: "default",
1818
},
19-
}
19+
},
2020
)
2121

2222
function Alert({
@@ -40,7 +40,7 @@ function AlertTitle({ className, ...props }: React.ComponentProps<"div">) {
4040
data-slot="alert-title"
4141
className={cn(
4242
"col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight",
43-
className
43+
className,
4444
)}
4545
{...props}
4646
/>
@@ -56,7 +56,7 @@ function AlertDescription({
5656
data-slot="alert-description"
5757
className={cn(
5858
"text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed",
59-
className
59+
className,
6060
)}
6161
{...props}
6262
/>

src/components/ui/badge.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
1+
import type { VariantProps } from "class-variance-authority"
12
import * as React from "react"
2-
import { Slot } from "@radix-ui/react-slot"
3-
import { cva, type VariantProps } from "class-variance-authority"
4-
53
import { cn } from "@/lib/utils"
4+
import { Slot } from "@radix-ui/react-slot"
5+
import { cva } from "class-variance-authority"
66

77
const badgeVariants = cva(
8-
"inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",
8+
"focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-md border px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] [&>svg]:pointer-events-none [&>svg]:size-3",
99
{
1010
variants: {
1111
variant: {
1212
default:
13-
"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",
13+
"bg-primary text-primary-foreground [a&]:hover:bg-primary/90 border-transparent",
1414
secondary:
15-
"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",
15+
"bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90 border-transparent",
1616
destructive:
17-
"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/70",
17+
"bg-destructive [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/70 border-transparent text-white",
1818
outline:
1919
"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",
2020
},
2121
},
2222
defaultVariants: {
2323
variant: "default",
2424
},
25-
}
25+
},
2626
)
2727

2828
function Badge({

src/components/ui/breadcrumb.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import * as React from "react"
2+
import { cn } from "@/lib/utils"
23
import { Slot } from "@radix-ui/react-slot"
34
import { ChevronRight, MoreHorizontal } from "lucide-react"
45

5-
import { cn } from "@/lib/utils"
6-
76
function Breadcrumb({ ...props }: React.ComponentProps<"nav">) {
87
return <nav aria-label="breadcrumb" data-slot="breadcrumb" {...props} />
98
}
@@ -14,7 +13,7 @@ function BreadcrumbList({ className, ...props }: React.ComponentProps<"ol">) {
1413
data-slot="breadcrumb-list"
1514
className={cn(
1615
"text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5",
17-
className
16+
className,
1817
)}
1918
{...props}
2019
/>

src/components/ui/button.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
1+
import type { VariantProps } from "class-variance-authority"
12
import * as React from "react"
2-
import { Slot } from "@radix-ui/react-slot"
3-
import { cva, type VariantProps } from "class-variance-authority"
4-
53
import { cn } from "@/lib/utils"
4+
import { Slot } from "@radix-ui/react-slot"
5+
import { cva } from "class-variance-authority"
66

77
const buttonVariants = cva(
8-
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
8+
"focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
99
{
1010
variants: {
1111
variant: {
1212
default:
13-
"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",
13+
"bg-primary text-primary-foreground hover:bg-primary/90 shadow-xs",
1414
destructive:
15-
"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
15+
"bg-destructive hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60 text-white shadow-xs",
1616
outline:
17-
"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",
17+
"bg-background hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50 border shadow-xs",
1818
secondary:
19-
"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",
19+
"bg-secondary text-secondary-foreground hover:bg-secondary/80 shadow-xs",
2020
ghost:
2121
"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
2222
link: "text-primary underline-offset-4 hover:underline",
2323
},
2424
size: {
2525
default: "h-9 px-4 py-2 has-[>svg]:px-3",
26-
sm: "h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",
26+
sm: "h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",
2727
lg: "h-10 rounded-md px-6 has-[>svg]:px-4",
2828
icon: "size-9",
2929
},
@@ -32,7 +32,7 @@ const buttonVariants = cva(
3232
variant: "default",
3333
size: "default",
3434
},
35-
}
35+
},
3636
)
3737

3838
function Button({

src/components/ui/dialog.tsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
"use client"
22

33
import * as React from "react"
4+
import { cn } from "@/lib/utils"
45
import * as DialogPrimitive from "@radix-ui/react-dialog"
56
import { XIcon } from "lucide-react"
67

7-
import { cn } from "@/lib/utils"
8-
98
function Dialog({
109
...props
1110
}: React.ComponentProps<typeof DialogPrimitive.Root>) {
@@ -39,7 +38,7 @@ function DialogOverlay({
3938
data-slot="dialog-overlay"
4039
className={cn(
4140
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",
42-
className
41+
className,
4342
)}
4443
{...props}
4544
/>
@@ -58,7 +57,7 @@ function DialogContent({
5857
data-slot="dialog-content"
5958
className={cn(
6059
"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",
61-
className
60+
className,
6261
)}
6362
{...props}
6463
>
@@ -88,7 +87,7 @@ function DialogFooter({ className, ...props }: React.ComponentProps<"div">) {
8887
data-slot="dialog-footer"
8988
className={cn(
9089
"flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",
91-
className
90+
className,
9291
)}
9392
{...props}
9493
/>

0 commit comments

Comments
 (0)