File tree Expand file tree Collapse file tree 3 files changed +18
-16
lines changed Expand file tree Collapse file tree 3 files changed +18
-16
lines changed Original file line number Diff line number Diff line change 6363 "@interactjs/auto-start" : " 1.10.26" ,
6464 "@interactjs/interact" : " 1.10.26" ,
6565 "@mezh-hq/react-gridlines" : " 1.0.1" ,
66- "@radix-ui/react-label" : " 2.0.2" ,
67- "@radix-ui/react-popover" : " 1.0.7" ,
68- "@radix-ui/react-select" : " 2.0.0" ,
69- "@radix-ui/react-switch" : " 1.1.0" ,
70- "@radix-ui/react-tooltip" : " 1.0.6" ,
66+ "@radix-ui/react-popover" : " 1.1.6" ,
67+ "@radix-ui/react-select" : " 2.1.6" ,
68+ "@radix-ui/react-switch" : " 1.1.3" ,
69+ "@radix-ui/react-tooltip" : " 1.1.8" ,
7170 "@reduxjs/toolkit" : " 2.1.0" ,
72- "class-variance-authority" : " 0.7.0 " ,
71+ "class-variance-authority" : " 0.7.1 " ,
7372 "d3" : " 7.8.5" ,
7473 "lodash" : " 4.17.21" ,
7574 "lucide-react" : " 0.316.0" ,
Original file line number Diff line number Diff line change 11import * as React from "react" ;
2- import * as LabelPrimitive from "@radix-ui/react-label" ;
3- import { type VariantProps , cva } from "class-variance-authority" ;
42import { twMerge } from "tailwind-merge" ;
53
6- const labelVariants = cva ( "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70" ) ;
4+ const Label = React . forwardRef < HTMLLabelElement , React . LabelHTMLAttributes < HTMLLabelElement > > (
5+ ( { className, ...props } , ref ) => (
6+ < label
7+ ref = { ref }
8+ className = { twMerge (
9+ "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70" ,
10+ className
11+ ) }
12+ { ...props }
13+ />
14+ )
15+ ) ;
716
8- const Label = React . forwardRef <
9- React . ElementRef < typeof LabelPrimitive . Root > ,
10- React . ComponentPropsWithoutRef < typeof LabelPrimitive . Root > & VariantProps < typeof labelVariants >
11- > ( ( { className, ...props } , ref ) => (
12- < LabelPrimitive . Root ref = { ref } className = { twMerge ( labelVariants ( ) , className ) } { ...props } />
13- ) ) ;
14- Label . displayName = LabelPrimitive . Root . displayName ;
17+ Label . displayName = "Label" ;
1518
1619export { Label } ;
You can’t perform that action at this time.
0 commit comments