mirror of
https://gitlab.com/soapbox-pub/mkstack.git
synced 2026-12-06 00:37:23 +00:00
Switch to nodenext, add file extensions to all imports
This commit is contained in:
84 files changed
+266
-263
No files matched your search
@@ -2,8 +2,8 @@ import * as React from "react"
|
||||
import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group"
|
||||
import { type VariantProps } from "class-variance-authority"
|
||||
|
||||
import { cn } from "@/lib/utils"
|
||||
import { toggleVariants } from "@/components/ui/toggle-variants"
|
||||
import { cn } from "@/lib/utils.js"
|
||||
import { toggleVariants } from "./toggle-variants.js"
|
||||
|
||||
const ToggleGroupContext = React.createContext<
|
||||
VariantProps<typeof toggleVariants>
|
||||
@@ -34,7 +34,7 @@ const ToggleGroupItem = React.forwardRef<
|
||||
React.ElementRef<typeof ToggleGroupPrimitive.Item>,
|
||||
React.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Item> &
|
||||
VariantProps<typeof toggleVariants>
|
||||
>(({ className, children, variant, size, ...props }, ref) => {
|
||||
>(({ className, children, variant, size, value, ...props }, ref) => {
|
||||
const context = React.useContext(ToggleGroupContext)
|
||||
|
||||
return (
|
||||
@@ -47,6 +47,7 @@ const ToggleGroupItem = React.forwardRef<
|
||||
}),
|
||||
className
|
||||
)}
|
||||
value={value}
|
||||
{...props}
|
||||
>
|
||||
{children}
|
||||
|
||||
Reference in new issue
Block a user